Ocideck/assets/web_export/mermaid.min.js

2025 lines
3.2 MiB
JavaScript
Raw Normal View History

(function(ZM,Dg){typeof exports=="object"&&typeof module<"u"?module.exports=Dg():typeof define=="function"&&define.amd?define(Dg):(ZM=typeof globalThis<"u"?globalThis:ZM||self,ZM.mermaid=Dg())})(this,function(){var dYe,gYe;"use strict";function ZM(i){for(var a=[],u=1;u<arguments.length;u++)a[u-1]=arguments[u];var d=Array.from(typeof i=="string"?[i]:i);d[d.length-1]=d[d.length-1].replace(/\r?\n([\t ]*)$/,"");var p=d.reduce(function(y,E){var _=E.match(/\n([\t ]+|(?!\s).)/g);return _?y.concat(_.map(function(A){var P,R;return(R=(P=A.match(/[\t ]/g))===null||P===void 0?void 0:P.length)!==null&&R!==void 0?R:0})):y},[]);if(p.length){var v=new RegExp(`
[ ]{`+Math.min.apply(Math,p)+"}","g");d=d.map(function(y){return y.replace(v,`
`)})}d[0]=d[0].replace(/^\r?\n/,"");var b=d[0];return a.forEach(function(y,E){var _=b.match(/(?:^|\n)( *)$/),A=_?_[1]:"",P=y;typeof y=="string"&&y.includes(`
`)&&(P=String(y).split(`
`).map(function(R,B){return B===0?R:""+A+R}).join(`
`)),b+=P+d[E+1]}),b}var Dg=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function dC(i){return i&&i.__esModule&&Object.prototype.hasOwnProperty.call(i,"default")?i.default:i}var CBe={exports:{}};(function(i,a){(function(u,d){i.exports=d()})(Dg,function(){var u=1e3,d=6e4,p=36e5,v="millisecond",b="second",y="minute",E="hour",_="day",A="week",P="month",R="quarter",B="year",j="date",W="Invalid Date",ee=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,ie=/\[([^\]]+)]|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,oe={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(Be){var Pe=["th","st","nd","rd"],je=Be%100;return"["+Be+(Pe[(je-20)%10]||Pe[je]||Pe[0])+"]"}},be=function(Be,Pe,je){var Ie=String(Be);return!Ie||Ie.length>=Pe?Be:""+Array(Pe+1-Ie.length).join(je)+Be},ge={s:be,z:function(Be){var Pe=-Be.utcOffset(),je=Math.abs(Pe),Ie=Math.floor(je/60),Se=je%60;return(Pe<=0?"+":"-")+be(Ie,2,"0")+":"+be(Se,2,"0")},m:function Be(Pe,je){if(Pe.date()<je.date())return-Be(je,Pe);var Ie=12*(je.year()-Pe.year())+(je.month()-Pe.month()),Se=Pe.clone().add(Ie,P),Ce=je-Se<0,ke=Pe.clone().add(Ie+(Ce?-1:1),P);return+(-(Ie+(je-Se)/(Ce?Se-ke:ke-Se))||0)},a:function(Be){return Be<0?Math.ceil(Be)||0:Math.floor(Be)},p:function(Be){return{M:P,y:B,w:A,d:_,D:j,h:E,m:y,s:b,ms:v,Q:R}[Be]||String(Be||"").toLowerCase().replace(/s$/,"")},u:function(Be){return Be===void 0}},ae="en",ne={};ne[ae]=oe;var se="$isDayjsObject",de=function(Be){return Be instanceof xe||!(!Be||!Be[se])},X=function Be(Pe,je,Ie){var Se;if(!Pe)return ae;if(typeof Pe=="string"){var Ce=Pe.toLowerCase();ne[Ce]&&(Se=Ce),je&&(ne[Ce]=je,Se=Ce);var ke=Pe.split("-");if(!Se&&ke.length>1)return Be(ke[0])}else{var Ke=Pe.name;ne[Ke]=Pe,Se=Ke}return!Ie&&Se&&(ae=Se),Se||!Ie&&ae},pe=function(Be,Pe){if(de(Be))return Be.clone();var je=typeof Pe=="object"?Pe:{};return je.date=Be,je.args=arguments,new xe(je)},G=ge;G.l=X,G.i=de,G.w=function(Be,Pe){return pe(Be,{locale:Pe.$L,utc:Pe.$u,x:Pe.$x,$offset:Pe.$offset})};var xe=function(){function Be(je){this.$L=X(je.locale,null,!0),this.parse(je),this.$x=this.$x||je.x||{},this[se]=!0}var Pe=Be.prototype;return Pe.parse=function(je){this.$d=function(Ie){var Se=Ie.date,Ce=Ie.utc;if(Se===null)return new Date(NaN);if(G.u(Se))return new Date;if(Se instanceof Date)return new Date(Se);if(typeof Se=="string"&&!/Z$/i.test(Se)){var ke=Se.match(ee);if(ke){var Ke=ke[2]-1||0,zt=(ke[7]||"0").substring(0,3);return Ce?new Date(Date.UTC(ke[1],Ke,ke[3]||1,ke[4]||0,ke[5]||0,ke[6]||0,zt)):new Date(ke[1],Ke,ke[3]||1,ke[4]||0,ke[5]||0,ke[6]||0,zt)}}return new Date(Se)}(je),this.init()},Pe.init=function(){var je=this.$d;this.$y=je.getFullYear(),this.$M=je.getMonth(),this.$D=je.getDate(),this.$W=je.getDay(),this.$H=je.getHours(),this.$m=je.getMinutes(),this.$s=je.getSeconds(),this.$ms=je.getMilliseconds()},Pe.$utils=function(){return G},Pe.isValid=function(){return this.$d.toString()!==W},Pe.isSame=function(je,Ie){var Se=pe(je);return this.startOf(Ie)<=Se&&Se<=this.endOf(Ie)},Pe.isAfter=function(je,Ie){return pe(je)<this.startOf(Ie)},Pe.isBefore=function(je,Ie){return this.endOf(Ie)<pe(je)},Pe.$g=function(je,Ie,Se){return G.u(je)?this[Ie]:this.set(Se,je)},Pe.unix=function(){return Math.floor(this.valueOf()/1e3)},Pe.valueOf=function(){return this.$d.getTime()},Pe.startOf=function(je,Ie){var Se=this,Ce=!!G.u(Ie)||Ie,ke=G.p(je),Ke=function(yt,Bt){var Ze=G.w(Se.$u?Date.UTC(Se.$y,Bt,yt):new Date(Se.$y,Bt,yt),Se);return Ce?Ze:Ze.endOf(_)},zt=function(yt,Bt){return G.w(Se.toDate()[yt].apply(Se.toDate("s"),(Ce?[0,0,0,0]:[23,59,59,999]).slice(Bt)),Se)},Ne=this.$W,pn=this.$M,Tt=this.$D,Et="set"+(this.$u?"UTC":"");switch(ke){case B:return Ce?Ke(1,0):Ke(31,11);case P:return Ce?Ke(1,pn):Ke(0,pn+1);case A:var Wt=this.$locale().weekStart||0,un=(Ne<Wt?Ne+7:Ne)-Wt;return Ke(Ce?Tt-un:Tt+(6-un),pn);case _:case j:return
`+zs),kt&&KF([xe,U,Be],gi=>{zs=dD(zs,gi," ")}),ge&&ia?ge.createHTML(zs):zs},a.setConfig=function(){let bs=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Fa(bs),qr=!0},a.clearConfig=function(){ha=null,qr=!1},a.isValidAttribute=function(bs,Vt,jr){ha||Fa({});const Ji=Ba(bs),Qo=Ba(Vt);return Yd(Ji,Qo,jr)},a.addHook=function(bs,Vt){typeof Vt=="function"&&WF(G[bs],Vt)},a.removeHook=function(bs,Vt){if(Vt!==void 0){const jr=EPt(G[bs],Vt);return jr===-1?void 0:CPt(G[bs],jr,1)[0]}return ARe(G[bs])},a.removeHooks=function(bs){G[bs]=[]},a.removeAllHooks=function(){G=$Re()},a}var pD=zRe();const bD=/<br\s*\/?>/gi,VPt=i=>i?URe(i).replace(/\\n/g,"#br#").split("#br#"):[""],GPt=(()=>{let i=!1;return()=>{i||(KPt(),i=!0)}})();function KPt(){const i="data-temp-href-target";pD.addHook("beforeSanitizeAttributes",a=>{a.tagName==="A"&&a.hasAttribute("target")&&a.setAttribute(i,a.getAttribute("target")??"")}),pD.addHook("afterSanitizeAttributes",a=>{a.tagName==="A"&&a.hasAttribute(i)&&(a.setAttribute("target",a.getAttribute(i)??""),a.removeAttribute(i),a.getAttribute("target")==="_blank"&&a.setAttribute("rel","noopener"))})}const qRe=i=>(GPt(),pD.sanitize(i)),HRe=(i,a)=>{var u;if(((u=a.flowchart)==null?void 0:u.htmlLabels)!==!1){const d=a.securityLevel;d==="antiscript"||d==="strict"?i=qRe(i):d!=="loose"&&(i=URe(i),i=i.replace(/</g,"&lt;").replace(/>/g,"&gt;"),i=i.replace(/=/g,"&equals;"),i=QPt(i))}return i},bh=(i,a)=>i&&(a.dompurifyConfig?i=pD.sanitize(HRe(i,a),a.dompurifyConfig).toString():i=pD.sanitize(HRe(i,a),{FORBID_TAGS:["style"]}).toString(),i),WPt=(i,a)=>typeof i=="string"?bh(i,a):i.flat().map(u=>bh(u,a)),YPt=i=>bD.test(i),XPt=i=>i.split(bD),QPt=i=>i.replace(/#br#/g,"<br/>"),URe=i=>i.replace(bD,"#br#"),JPt=i=>{let a="";return i&&(a=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,a=a.replaceAll(/\(/g,"\\("),a=a.replaceAll(/\)/g,"\\)")),a},h1=i=>!(i===!1||["false","null","0"].includes(String(i).trim().toLowerCase())),ZPt=function(...i){const a=i.filter(u=>!isNaN(u));return Math.max(...a)},eBt=function(...i){const a=i.filter(u=>!isNaN(u));return Math.min(...a)},JF=function(i){const a=i.split(/(,)/),u=[];for(let d=0;d<a.length;d++){let p=a[d];if(p===","&&d>0&&d+1<a.length){const v=a[d-1],b=a[d+1];tBt(v,b)&&(p=v+","+b,d++,u.pop())}u.push(nBt(p))}return u.join("")},E2e=(i,a)=>Math.max(0,i.split(a).length-1),tBt=(i,a)=>{const u=E2e(i,"~"),d=E2e(a,"~");return u===1&&d===1},nBt=i=>{const a=E2e(i,"~");let u=!1;if(a<=1)return i;a%2!==0&&i.startsWith("~")&&(i=i.substring(1),u=!0);const d=[...i];let p=d.indexOf("~"),v=d.lastIndexOf("~");for(;p!==-1&&v!==-1&&p!==v;)d[p]="<",d[v]=">",p=d.indexOf("~"),v=d.lastIndexOf("~");return u&&d.unshift("~"),d.join("")},VRe=()=>window.MathMLElement!==void 0,C2e=/\$\$(.*)\$\$/g,$v=i=>{var a;return(((a=i.match(C2e))==null?void 0:a.length)??0)>0},ZF=async(i,a)=>{const u=document.createElement("div");u.innerHTML=await SC(i,a),u.id="katex-temp",u.style.visibility="hidden",u.style.position="absolute",u.style.top="0";const d=document.querySelector("body");d==null||d.insertAdjacentElement("beforeend",u);const p={width:u.clientWidth,height:u.clientHeight};return u.remove(),p},rBt=async(i,a)=>{if(!$v(i))return i;if(!VRe()&&!a.legacyMathML)return i.replace(C2e,"MathML is unsupported in this environment.");const{default:u}=await Promise.resolve().then(()=>QUt);return i.split(bD).map(d=>$v(d)?`
<div style="display: flex; align-items: center; justify-content: center; white-space: nowrap;">
${d}
</div>
`:`<div>${d}</div>`).join("").replace(C2e,(d,p)=>u.renderToString(p,{throwOnError:!0,displayMode:!0,output:VRe()?"mathml":"htmlAndMathml"}).replace(/\n/g," ").replace(/<annotation.*<\/annotation>/g,""))},SC=async(i,a)=>bh(await rBt(i,a),a),oi={getRows:VPt,sanitizeText:bh,sanitizeTextOrArray:WPt,hasBreaks:YPt,splitBreaks:XPt,lineBreakRegex:bD,removeScript:qRe,getUrl:JPt,evaluate:h1,getMax:ZPt,getMin:eBt},TX={min:{r:0,g:0,b:0,s:0,l:0,a:0},max:{r:255,g:255,b:255,h:360,s:100,l:100,a:1},clamp:{r:i=>i>=255?255:i<0?0:i,g:i=>i>=255?255:i<0?0:i,b:i=>i>=255?255:i<0?0:i,h:i=>i%360,s:i=>i>=100?100:i<0?0:i,l:i=>i>=100?100:i<0?0:i,a:i=>i>=1?1:i<0?0:i},toLinear:i=>{const a=i/255;return i>.03928?Math.pow((a+.055)/1.055,2.4):a/12.92},hue2rgb:(i,a,u)=>(u<0&&(u+=1),u>1&&(u-=1),u<1/6?i+(a-i)*6*u:u<1/2?a:u<2/3?i+(a-i)*(2/3-u)*6:i),hsl2rgb:({h:i,s:a,l:u},d)=>{if(!a)return u*2.55;i/=360,a/=100,u/=100;const p=u<.5?u*(1+a):u+a-u*a,v=2*u-p;switch(d){case"r":return TX.hue2rgb(v,p,i+1/3)*255;case"g":return TX.hue2rgb(v,p,i)*255;case"b":return TX.hue2rgb(v,p,i-1/3)*255}},rgb2hsl:({r:i,g:a,b:u},d)=>{i/=255,a/=255,u/=255;const p=Math.max(i,a,u),v=Math.min(i,a,u),b=(p+v)/2;if(d==="l")return b*100;if(p===v)return 0;const y=p-v,E=b>.5?y/(2-p-v):y/(p+v);if(d==="s")return E*100;switch(p){case i:return((a-u)/y+(a<u?6:0))*60;case a:return((u-i)/y+2)*60;case u:return((i-a)/y+4)*60;default:return-1}}},Ka={channel:TX,lang:{clamp:(i,a,u)=>a>u?Math.min(a,Math.max(u,i)):Math.min(u,Math.max(a,i)),round:i=>Math.round(i*1e10)/1e10},unit:{dec2hex:i=>{const a=Math.round(i).toString(16);return a.length>1?a:`0${a}`}}},w9={};for(let i=0;i<=255;i++)w9[i]=Ka.unit.dec2hex(i);const Bg={ALL:0,RGB:1,HSL:2};class iBt{constructor(){this.type=Bg.ALL}get(){return this.type}set(a){if(this.type&&this.type!==a)throw new Error("Cannot change both RGB and HSL channels at the same time");this.type=a}reset(){this.type=Bg.ALL}is(a){return this.type===a}}const sBt=iBt;class aBt{constructor(a,u){this.color=u,this.changed=!1,this.data=a,this.type=new sBt}set(a,u){return this.color=u,this.changed=!1,this.data=a,this.type.type=Bg.ALL,this}_ensureHSL(){const a=this.data,{h:u,s:d,l:p}=a;u===void 0&&(a.h=Ka.channel.rgb2hsl(a,"h")),d===void 0&&(a.s=Ka.channel.rgb2hsl(a,"s")),p===void 0&&(a.l=Ka.channel.rgb2hsl(a,"l"))}_ensureRGB(){const a=this.data,{r:u,g:d,b:p}=a;u===void 0&&(a.r=Ka.channel.hsl2rgb(a,"r")),d===void 0&&(a.g=Ka.channel.hsl2rgb(a,"g")),p===void 0&&(a.b=Ka.channel.hsl2rgb(a,"b"))}get r(){const a=this.data,u=a.r;return!this.type.is(Bg.HSL)&&u!==void 0?u:(this._ensureHSL(),Ka.channel.hsl2rgb(a,"r"))}get g(){const a=this.data,u=a.g;return!this.type.is(Bg.HSL)&&u!==void 0?u:(this._ensureHSL(),Ka.channel.hsl2rgb(a,"g"))}get b(){const a=this.data,u=a.b;return!this.type.is(Bg.HSL)&&u!==void 0?u:(this._ensureHSL(),Ka.channel.hsl2rgb(a,"b"))}get h(){const a=this.data,u=a.h;return!this.type.is(Bg.RGB)&&u!==void 0?u:(this._ensureRGB(),Ka.channel.rgb2hsl(a,"h"))}get s(){const a=this.data,u=a.s;return!this.type.is(Bg.RGB)&&u!==void 0?u:(this._ensureRGB(),Ka.channel.rgb2hsl(a,"s"))}get l(){const a=this.data,u=a.l;return!this.type.is(Bg.RGB)&&u!==void 0?u:(this._ensureRGB(),Ka.channel.rgb2hsl(a,"l"))}get a(){return this.data.a}set r(a){this.type.set(Bg.RGB),this.changed=!0,this.data.r=a}set g(a){this.type.set(Bg.RGB),this.changed=!0,this.data.g=a}set b(a){this.type.set(Bg.RGB),this.changed=!0,this.data.b=a}set h(a){this.type.set(Bg.HSL),this.changed=!0,this.data.h=a}set s(a){this.type.set(Bg.HSL),this.changed=!0,this.data.s=a}set l(a){this.type.set(Bg.HSL),this.changed=!0,this.data.l=a}set a(a){this.changed=!0,this.data.a=a}}const oBt=aBt,EX=new oBt({r:0,g:0,b:0,a:0},"transparent"),GRe={re:/^#((?:[a-f0-9]{2}){2,4}|[a-f0-9]{3})$/i,parse:i=>{if(i.charCodeAt(0)!==35)return;const a=i.match(GRe.re);if(!a)return;const u=a[1],d=parseInt(u,16),p=u.length,v=p%4===0,b=p>4,y=b?1:17,E=b?8:4,_=v?0:-1,A=b?255:15;return EX.set({r:(d>>E*(_+3)&A)*y,g:(d>>E*(_+2)&A)*y,b:(d>>E*(_+1)&A)*y,a:v?(d&A)*y/255:1},i)},stringify:i=>{const{r:a,g:u,b:d,a:p}=i;return p<1?`#${w9[Math.round(a)]}${w9[Math.round(u)]}${w9[M
`);for(const[u,{detector:d}]of Object.entries(mD))if(d(i,a))return u;throw new nje(`No diagram type detected matching given configuration for text: ${i}`)},rje=(...i)=>{for(const{id:a,detector:u,loader:d}of i)ije(a,u,d)},ije=(i,a,u)=>{mD[i]?Xe.error(`Detector with key ${i} already exists`):mD[i]={detector:a,loader:u},Xe.debug(`Detector with key ${i} added${u?" with loader":""}`)},xBt=i=>mD[i].loader,_2e=(i,a,{depth:u=2,clobber:d=!1}={})=>{const p={depth:u,clobber:d};return Array.isArray(a)&&!Array.isArray(i)?(a.forEach(v=>_2e(i,v,p)),i):Array.isArray(a)&&Array.isArray(i)?(a.forEach(v=>{i.includes(v)||i.push(v)}),i):i===void 0||u<=0?i!=null&&typeof i=="object"&&typeof a=="object"?Object.assign(i,a):a:(a!==void 0&&typeof i=="object"&&typeof a=="object"&&Object.keys(a).forEach(v=>{typeof a[v]=="object"&&(i[v]===void 0||typeof i[v]=="object")?(i[v]===void 0&&(i[v]=Array.isArray(a[v])?[]:{}),i[v]=_2e(i[v],a[v],{depth:u-1,clobber:d})):(d||typeof i[v]!="object"&&typeof a[v]!="object")&&(i[v]=a[v])}),i)},id=_2e;var kBt=typeof global=="object"&&global&&global.Object===Object&&global;const sje=kBt;var TBt=typeof self=="object"&&self&&self.Object===Object&&self,EBt=sje||TBt||Function("return this")();const j3=EBt;var CBt=j3.Symbol;const zv=CBt;var aje=Object.prototype,SBt=aje.hasOwnProperty,_Bt=aje.toString,nR=zv?zv.toStringTag:void 0;function ABt(i){var a=SBt.call(i,nR),u=i[nR];try{i[nR]=void 0;var d=!0}catch{}var p=_Bt.call(i);return d&&(a?i[nR]=u:delete i[nR]),p}var LBt=Object.prototype,MBt=LBt.toString;function DBt(i){return MBt.call(i)}var IBt="[object Null]",OBt="[object Undefined]",oje=zv?zv.toStringTag:void 0;function LC(i){return i==null?i===void 0?OBt:IBt:oje&&oje in Object(i)?ABt(i):DBt(i)}function dm(i){var a=typeof i;return i!=null&&(a=="object"||a=="function")}var NBt="[object AsyncFunction]",PBt="[object Function]",BBt="[object GeneratorFunction]",FBt="[object Proxy]";function vD(i){if(!dm(i))return!1;var a=LC(i);return a==PBt||a==BBt||a==NBt||a==FBt}var RBt=j3["__core-js_shared__"];const A2e=RBt;var cje=function(){var i=/[^.]+$/.exec(A2e&&A2e.keys&&A2e.keys.IE_PROTO||"");return i?"Symbol(src)_1."+i:""}();function jBt(i){return!!cje&&cje in i}var $Bt=Function.prototype,zBt=$Bt.toString;function MC(i){if(i!=null){try{return zBt.call(i)}catch{}try{return i+""}catch{}}return""}var qBt=/[\\^$.*+?()[\]{}|]/g,HBt=/^\[object .+?Constructor\]$/,UBt=Function.prototype,VBt=Object.prototype,GBt=UBt.toString,KBt=VBt.hasOwnProperty,WBt=RegExp("^"+GBt.call(KBt).replace(qBt,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function YBt(i){if(!dm(i)||jBt(i))return!1;var a=vD(i)?WBt:HBt;return a.test(MC(i))}function XBt(i,a){return i==null?void 0:i[a]}function DC(i,a){var u=XBt(i,a);return YBt(u)?u:void 0}var QBt=DC(Object,"create");const rR=QBt;function JBt(){this.__data__=rR?rR(null):{},this.size=0}function ZBt(i){var a=this.has(i)&&delete this.__data__[i];return this.size-=a?1:0,a}var eFt="__lodash_hash_undefined__",tFt=Object.prototype,nFt=tFt.hasOwnProperty;function rFt(i){var a=this.__data__;if(rR){var u=a[i];return u===eFt?void 0:u}return nFt.call(a,i)?a[i]:void 0}var iFt=Object.prototype,sFt=iFt.hasOwnProperty;function aFt(i){var a=this.__data__;return rR?a[i]!==void 0:sFt.call(a,i)}var oFt="__lodash_hash_undefined__";function cFt(i,a){var u=this.__data__;return this.size+=this.has(i)?0:1,u[i]=rR&&a===void 0?oFt:a,this}function IC(i){var a=-1,u=i==null?0:i.length;for(this.clear();++a<u;){var d=i[a];this.set(d[0],d[1])}}IC.prototype.clear=JBt,IC.prototype.delete=ZBt,IC.prototype.get=rFt,IC.prototype.has=aFt,IC.prototype.set=cFt;function uFt(){this.__data__=[],this.size=0}function wD(i,a){return i===a||i!==i&&a!==a}function OX(i,a){for(var u=i.length;u--;)if(wD(i[u][0],a))return u;return-1}var lFt=Array.prototype,hFt=lFt.splice;function fFt(i){var a=this.__data__,u=OX(a,i);if(u<0)return!1;var d=a.length-1;return u==d?a.pop():hFt.call(a,u,1),--this.size,!0}function dFt(i){var a=this.__data__,u=OX(a,i);return u<0?void 0:a[u][1]}function gFt(i){return OX(this.__data__,i)>-1}function pFt(i,a){v
`,"ig");i=i.trim().replace(u,"").replace(/'/gm,'"'),Xe.debug(`Detecting diagram directive${a!==null?" type:"+a:""} based on the text:${i}`);let d;const p=[];for(;(d=tR.exec(i))!==null;)if(d.index===tR.lastIndex&&tR.lastIndex++,d&&!a||a&&d[1]&&d[1].match(a)||a&&d[2]&&d[2].match(a)){const v=d[1]?d[1]:d[2],b=d[3]?d[3].trim():d[4]?JSON.parse(d[4].trim()):null;p.push({type:v,args:b})}return p.length===0?{type:i,args:null}:p.length===1?p[0]:p}catch(u){return Xe.error(`ERROR: ${u.message} - Unable to parse directive type: '${a}' based on the text: '${i}'`),{type:void 0,args:null}}},ejt=function(i){return i.replace(tR,"")},tjt=function(i,a){for(const[u,d]of a.entries())if(d.match(i))return u;return-1};function qv(i,a){if(!i)return a;const u=`curve${i.charAt(0).toUpperCase()+i.slice(1)}`;return QRt[u]??a}function njt(i,a){const u=i.trim();if(u)return a.securityLevel!=="loose"?b9.sanitizeUrl(u):u}const rjt=(i,...a)=>{const u=i.split("."),d=u.length-1,p=u[d];let v=window;for(let b=0;b<d;b++)if(v=v[u[b]],!v){Xe.error(`Function name: ${i} not found in window`);return}v[p](...a)};function Bje(i,a){return!i||!a?0:Math.sqrt(Math.pow(a.x-i.x,2)+Math.pow(a.y-i.y,2))}function ijt(i){let a,u=0;i.forEach(p=>{u+=Bje(p,a),a=p});const d=u/2;return B2e(i,d)}function sjt(i){return i.length===1?i[0]:ijt(i)}const Fje=(i,a=2)=>{const u=Math.pow(10,a);return Math.round(i*u)/u},B2e=(i,a)=>{let u,d=a;for(const p of i){if(u){const v=Bje(p,u);if(v<d)d-=v;else{const b=d/v;if(b<=0)return u;if(b>=1)return{x:p.x,y:p.y};if(b>0&&b<1)return{x:Fje((1-b)*u.x+b*p.x,5),y:Fje((1-b)*u.y+b*p.y,5)}}}u=p}throw new Error("Could not find a suitable point for the given distance")},ajt=(i,a,u)=>{Xe.info(`our points ${JSON.stringify(a)}`),a[0]!==u&&(a=a.reverse());const p=B2e(a,25),v=i?10:5,b=Math.atan2(a[0].y-p.y,a[0].x-p.x),y={x:0,y:0};return y.x=Math.sin(b)*v+(a[0].x+p.x)/2,y.y=-Math.cos(b)*v+(a[0].y+p.y)/2,y};function ojt(i,a,u){const d=structuredClone(u);Xe.info("our points",d),a!=="start_left"&&a!=="start_right"&&d.reverse();const p=25+i,v=B2e(d,p),b=10+i*.5,y=Math.atan2(d[0].y-v.y,d[0].x-v.x),E={x:0,y:0};return a==="start_left"?(E.x=Math.sin(y+Math.PI)*b+(d[0].x+v.x)/2,E.y=-Math.cos(y+Math.PI)*b+(d[0].y+v.y)/2):a==="end_right"?(E.x=Math.sin(y-Math.PI)*b+(d[0].x+v.x)/2-5,E.y=-Math.cos(y-Math.PI)*b+(d[0].y+v.y)/2-5):a==="end_left"?(E.x=Math.sin(y)*b+(d[0].x+v.x)/2-5,E.y=-Math.cos(y)*b+(d[0].y+v.y)/2-5):(E.x=Math.sin(y)*b+(d[0].x+v.x)/2,E.y=-Math.cos(y)*b+(d[0].y+v.y)/2),E}function gm(i){let a="",u="";for(const d of i)d!==void 0&&(d.startsWith("color:")||d.startsWith("text-align:")?u=u+d+";":a=a+d+";");return{style:a,labelStyle:u}}let Rje=0;const jje=()=>(Rje++,"id-"+Math.random().toString(36).substr(2,12)+"-"+Rje);function cjt(i){let a="";const u="0123456789abcdef",d=u.length;for(let p=0;p<i;p++)a+=u.charAt(Math.floor(Math.random()*d));return a}const $je=i=>cjt(i.length),ujt=function(){return{x:0,y:0,fill:void 0,anchor:"start",style:"#666",width:100,height:100,textMargin:0,rx:0,ry:0,valign:void 0,text:""}},ljt=function(i,a){const u=a.text.replace(oi.lineBreakRegex," "),[,d]=PC(a.fontSize),p=i.append("text");p.attr("x",a.x),p.attr("y",a.y),p.style("text-anchor",a.anchor),p.style("font-family",a.fontFamily),p.style("font-size",d),p.style("font-weight",a.fontWeight),p.attr("fill",a.fill),a.class!==void 0&&p.attr("class",a.class);const v=p.append("tspan");return v.attr("x",a.x+a.textMargin*2),v.attr("fill",a.fill),v.text(u),p},zje=yD((i,a,u)=>{if(!i||(u=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",joinWith:"<br/>"},u),oi.lineBreakRegex.test(i)))return i;const d=i.split(" "),p=[];let v="";return d.forEach((b,y)=>{const E=G4(`${b} `,u),_=G4(v,u);if(E>a){const{hyphenatedStrings:R,remainingWord:B}=hjt(b,a,"-",u);p.push(v,...R),v=B}else _+E>=a?(p.push(v),v=b):v=[v,b].filter(Boolean).join(" ");y+1===d.length&&p.push(v)}),p.filter(b=>b!=="").join(u.joinWith)},(i,a,u)=>`${i}${a}${u.fontSize}${u.fontWeight}${u.fontFamily}${u.joinWith}`),hjt=yD((i,a,u="-",d)=>{d=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",margin:0},d);const p=[...i],v=[];let b="";ret
`)}const r$t=(i,a,u)=>{let d="";return i in eQ&&eQ[i]?d=eQ[i](u):Xe.warn(`No theme found for ${i}`),` & {
font-family: ${u.fontFamily};
font-size: ${u.fontSize};
fill: ${u.textColor}
}
/* Classes common for multiple diagrams */
& .error-icon {
fill: ${u.errorBkgColor};
}
& .error-text {
fill: ${u.errorTextColor};
stroke: ${u.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: ${u.lineColor};
stroke: ${u.lineColor};
}
& .marker.cross {
stroke: ${u.lineColor};
}
& svg {
font-family: ${u.fontFamily};
font-size: ${u.fontSize};
}
${d}
${a}
`},i$t=(i,a)=>{a!==void 0&&(eQ[i]=a)},s$t=r$t;let K2e="",W2e="",Y2e="";const X2e=i=>bh(i,mh()),Rg=()=>{K2e="",Y2e="",W2e=""},jg=i=>{K2e=X2e(i).replace(/^\s+/g,"")},Mp=()=>K2e,Dp=i=>{Y2e=X2e(i).replace(/\n\s+/g,`
`)},Ip=()=>Y2e,pm=i=>{W2e=X2e(i)},Op=()=>W2e,T$e=Object.freeze(Object.defineProperty({__proto__:null,clear:Rg,getAccDescription:Ip,getAccTitle:Mp,getDiagramTitle:Op,setAccDescription:Dp,setAccTitle:jg,setDiagramTitle:pm},Symbol.toStringTag,{value:"Module"})),a$t=Xe,o$t=Spe,qt=mh,c$t=t$e,E$e=_D,u$t=i=>bh(i,qt()),C$e=x9,l$t=()=>T$e,tQ={},nQ=(i,a,u)=>{var d;if(tQ[i])throw new Error(`Diagram ${i} already registered.`);tQ[i]=a,u&&ije(i,u),i$t(i,a.styles),(d=a.injectUtils)==null||d.call(a,a$t,o$t,qt,u$t,C$e,l$t(),()=>{})},Q2e=i=>{if(i in tQ)return tQ[i];throw new h$t(i)};class h$t extends Error{constructor(a){super(`Diagram ${a} not found.`)}}const dR=i=>{var p;const{securityLevel:a}=qt();let u=Dr("body");if(a==="sandbox"){const b=((p=Dr(`#i${i}`).node())==null?void 0:p.contentDocument)??document;u=Dr(b.body)}return u.select(`#${i}`)},S$e={draw:(i,a,u)=>{Xe.debug(`rendering svg for syntax error
`);const d=dR(a),p=d.append("g");d.attr("viewBox","0 0 2412 512"),Fg(d,100,512,!0),p.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"),p.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"),p.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"),p.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"),p.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"),p.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"),p.append("text").attr("class","error-text").attr("x",1440).attr("y",250).attr("font-size","150px").style("text-anchor","middle").text("Syntax error in text"),p.append("text").attr("class","error-text").attr("x",1250).attr("y",400).attr("font-size","100px").style("text-anchor","middle").text(`mermaid version ${u}`)}},f$t=S$e,d$t={db:{},renderer:S$e,parser:{parser:{yy:{}},parse:()=>{}}},_$e="flowchart-elk",g$t={id:_$e,detector:(i,a)=>{var u;return!!(/^\s*flowchart-elk/.test(i)||/^\s*flowchart|graph/.test(i)&&((u=a==null?void 0:a.flowchart)==null?void 0:u.defaultRenderer)==="elk")},loader:async()=>{const{diagram:i}=await Promise.resolve().then(()=>aon);return{id:_$e,diagram:i}}},A$e="timeline",p$t={id:A$e,detector:i=>/^\s*timeline/.test(i),loader:async()=>{const{diagram:i}=await Promise.resolve().then(()=>Con);return{id:A$e,diagram:i}}},L$e="mindmap",b$t={id:L$e,detector:i=>/^\s*mindmap/.test(i),loader:async()=>{const{diagram:i}=await Promise.resolve().then(()=>Zon);return{id:L$e,diagram:i}}},M$e="sankey",m$t={id:M$e,detector:i=>/^\s*sankey-beta/.test(i),loader:async()=>{const{diagram:i}=await Promise.resolve().then(()=>Lcn);return{id:M$e,diagram:i}}},D$e="block",v$t={id:D$e,detector:i=>/^\s*block-beta/.test(i),loader:async()=>{const{diagram:i}=await Promise.resolve().then(()=>Qcn);return{id:D$e,diagram:i}}};let I$e=!1;const J2e=()=>{I$e||(I$e=!0,nQ("error",d$t,i=>i.toLowerCase().trim()==="error"),nQ("---",{db:{clear:()=>{}},styles:{},renderer:{draw:()=>{}},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 un-indented `---` blocks")}},init:()=>null},i=>i.toLowerCase().trimStart().startsWith("---")),rje(Rjt,Qjt,Xjt,zjt,Hjt,Ujt,Vjt,Wjt,Yjt,g$t,$jt,jjt,b$t,p$t,qjt,Zjt,Jjt,e$t,Gjt,m$t,Kjt,v$t))};class O$e{constructor(a,u={}){this.text=a,this.metadata=u,this.type="graph",this.text=pjt(a),this.text+=`
`;const d=mh();try{this.type=IX(a,d)}catch(v){this.type="error",this.detectError=v}const p=Q2e(this.type);Xe.debug("Type "+this.type),this.db=p.db,this.renderer=p.renderer,this.parser=p.parser,this.parser.parser.yy=this.db,this.init=p.init,this.parse()}parse(){var u,d,p,v,b;if(this.detectError)throw this.detectError;(d=(u=this.db).clear)==null||d.call(u);const a=mh();(p=this.init)==null||p.call(this,a),this.metadata.title&&((b=(v=this.db).setDiagramTitle)==null||b.call(v,this.metadata.title)),this.parser.parse(this.text)}async render(a,u){await this.renderer.draw(this.text,a,u,this)}getParser(){return this.parser}getType(){return this.type}}const w$t=async(i,a={})=>{const u=IX(i,mh());try{Q2e(u)}catch{const p=xBt(u);if(!p)throw new nje(`Diagram ${u} not found.`);const{id:v,diagram:b}=await p();nQ(v,b)}return new O$e(i,a)};let N$e=[];const y$t=()=>{N$e.forEach(i=>{i()}),N$e=[]};var x$t=mje(Object.keys,Object);const k$t=x$t;var T$t=Object.prototype,E$t=T$t.hasOwnProperty;function P$e(i){if(!RX(i))return k$t(i);var a=[];for(var u in Object(i))E$t.call(i,u)&&u!="constructor"&&a.push(u);return a}var C$t=DC(j3,"DataView");const Z2e=C$t;var S$t=DC(j3,"Promise");const ebe=S$t;var _$t=DC(j3,"Set");const LD=_$t;var A$t=DC(j3,"WeakMap");const tbe=A$t;var B$e="[object Map]",L$t="[object Object]",F$e="[object Promise]",R$e="[object Set]",j$e="[object WeakMap]",$$e="[object DataView]",M$t=MC(Z2e),D$t=MC(iR),I$t=MC(ebe),O$t=MC(LD),N$t=MC(tbe),FC=LC;(Z2e&&FC(new Z2e(new ArrayBuffer(1)))!=$$e||iR&&FC(new iR)!=B$e||ebe&&FC(ebe.resolve())!=F$e||LD&&FC(new LD)!=R$e||tbe&&FC(new tbe)!=j$e)&&(FC=function(i){var a=LC(i),u=a==L$t?i.constructor:void 0,d=u?MC(u):"";if(d)switch(d){case M$t:return $$e;case D$t:return B$e;case I$t:return F$e;case O$t:return R$e;case N$t:return j$e}return a});const MD=FC;var P$t="[object Map]",B$t="[object Set]",F$t=Object.prototype,R$t=F$t.hasOwnProperty;function gR(i){if(i==null)return!0;if(y9(i)&&(D0(i)||typeof i=="string"||typeof i.splice=="function"||kD(i)||$X(i)||xD(i)))return!i.length;var a=MD(i);if(a==P$t||a==B$t)return!i.size;if(RX(i))return!P$e(i).length;for(var u in i)if(R$t.call(i,u))return!1;return!0}const j$t="graphics-document document";function $$t(i,a){i.attr("role",j$t),a!==""&&i.attr("aria-roledescription",a)}function z$t(i,a,u,d){if(i.insert!==void 0){if(u){const p=`chart-desc-${d}`;i.attr("aria-describedby",p),i.insert("desc",":first-child").attr("id",p).text(u)}if(a){const p=`chart-title-${d}`;i.attr("aria-labelledby",p),i.insert("title",":first-child").attr("id",p).text(a)}}}const q$t=i=>i.replace(/^\s*%%(?!{)[^\n]+\n?/gm,"").trimStart();/*! js-yaml 4.1.0 https://github.com/nodeca/js-yaml @license MIT */function z$e(i){return typeof i>"u"||i===null}function H$t(i){return typeof i=="object"&&i!==null}function U$t(i){return Array.isArray(i)?i:z$e(i)?[]:[i]}function V$t(i,a){var u,d,p,v;if(a)for(v=Object.keys(a),u=0,d=v.length;u<d;u+=1)p=v[u],i[p]=a[p];return i}function G$t(i,a){var u="",d;for(d=0;d<a;d+=1)u+=i;return u}function K$t(i){return i===0&&Number.NEGATIVE_INFINITY===1/i}var W$t=z$e,Y$t=H$t,X$t=U$t,Q$t=G$t,J$t=K$t,Z$t=V$t,Np={isNothing:W$t,isObject:Y$t,toArray:X$t,repeat:Q$t,isNegativeZero:J$t,extend:Z$t};function q$e(i,a){var u="",d=i.reason||"(unknown reason)";return i.mark?(i.mark.name&&(u+='in "'+i.mark.name+'" '),u+="("+(i.mark.line+1)+":"+(i.mark.column+1)+")",!a&&i.mark.snippet&&(u+=`
`+i.mark.snippet),d+" "+u):d}function pR(i,a){Error.call(this),this.name="YAMLException",this.reason=i,this.mark=a,this.message=q$e(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}pR.prototype=Object.create(Error.prototype),pR.prototype.constructor=pR,pR.prototype.toString=function(a){return this.name+": "+q$e(this,a)};var M7=pR;function nbe(i,a,u,d,p){var v="",b="",y=Math.floor(p/2)-1;return d-a>y&&(v=" ... ",a=d-y+v.length),u-d>y&&(b=" ...",u=d+y-b.length),{str:v+i.slice(a,u).replace(/\t/g,"→")+b,pos:d-a+v.length}}function rbe(i,a){return Np.repeat(" ",a-i.length)+i}function ezt(i,a){if(a=Object.create(a||null),!i.buffer)return null;a.maxLength||(a.maxLength=79),typeof a.indent!="number"&&(a.indent=1),typeof a.linesBefore!="number"&&(a.linesBefore=3),typeof a.linesAfter!="number"&&(a.linesAfter=2);for(var u=/\r?\n|\r|\0/g,d=[0],p=[],v,b=-1;v=u.exec(i.buffer);)p.push(v.index),d.push(v.index+v[0].length),i.position<=v.index&&b<0&&(b=d.length-2);b<0&&(b=d.length-1);var y="",E,_,A=Math.min(i.line+a.linesAfter,p.length).toString().length,P=a.maxLength-(a.indent+A+3);for(E=1;E<=a.linesBefore&&!(b-E<0);E++)_=nbe(i.buffer,d[b-E],p[b-E],i.position-(d[b]-d[b-E]),P),y=Np.repeat(" ",a.indent)+rbe((i.line-E+1).toString(),A)+" | "+_.str+`
`+y;for(_=nbe(i.buffer,d[b],p[b],i.position,P),y+=Np.repeat(" ",a.indent)+rbe((i.line+1).toString(),A)+" | "+_.str+`
`,y+=Np.repeat("-",a.indent+A+3+_.pos)+`^
`,E=1;E<=a.linesAfter&&!(b+E>=p.length);E++)_=nbe(i.buffer,d[b+E],p[b+E],i.position-(d[b]-d[b+E]),P),y+=Np.repeat(" ",a.indent)+rbe((i.line+E+1).toString(),A)+" | "+_.str+`
`;return y.replace(/\n$/,"")}var tzt=ezt,nzt=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],rzt=["scalar","sequence","mapping"];function izt(i){var a={};return i!==null&&Object.keys(i).forEach(function(u){i[u].forEach(function(d){a[String(d)]=u})}),a}function szt(i,a){if(a=a||{},Object.keys(a).forEach(function(u){if(nzt.indexOf(u)===-1)throw new M7('Unknown option "'+u+'" is met in definition of "'+i+'" YAML type.')}),this.options=a,this.tag=i,this.kind=a.kind||null,this.resolve=a.resolve||function(){return!0},this.construct=a.construct||function(u){return u},this.instanceOf=a.instanceOf||null,this.predicate=a.predicate||null,this.represent=a.represent||null,this.representName=a.representName||null,this.defaultStyle=a.defaultStyle||null,this.multi=a.multi||!1,this.styleAliases=izt(a.styleAliases||null),rzt.indexOf(this.kind)===-1)throw new M7('Unknown kind "'+this.kind+'" is specified for "'+i+'" YAML type.')}var $g=szt;function H$e(i,a){var u=[];return i[a].forEach(function(d){var p=u.length;u.forEach(function(v,b){v.tag===d.tag&&v.kind===d.kind&&v.multi===d.multi&&(p=b)}),u[p]=d}),u}function azt(){var i={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},a,u;function d(p){p.multi?(i.multi[p.kind].push(p),i.multi.fallback.push(p)):i[p.kind][p.tag]=i.fallback[p.tag]=p}for(a=0,u=arguments.length;a<u;a+=1)arguments[a].forEach(d);return i}function ibe(i){return this.extend(i)}ibe.prototype.extend=function(a){var u=[],d=[];if(a instanceof $g)d.push(a);else if(Array.isArray(a))d=d.concat(a);else if(a&&(Array.isArray(a.implicit)||Array.isArray(a.explicit)))a.implicit&&(u=u.concat(a.implicit)),a.explicit&&(d=d.concat(a.explicit));else throw new M7("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");u.forEach(function(v){if(!(v instanceof $g))throw new M7("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(v.loadKind&&v.loadKind!=="scalar")throw new M7("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(v.multi)throw new M7("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),d.forEach(function(v){if(!(v instanceof $g))throw new M7("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var p=Object.create(ibe.prototype);return p.implicit=(this.implicit||[]).concat(u),p.explicit=(this.explicit||[]).concat(d),p.compiledImplicit=H$e(p,"implicit"),p.compiledExplicit=H$e(p,"explicit"),p.compiledTypeMap=azt(p.compiledImplicit,p.compiledExplicit),p};var ozt=ibe,czt=new $g("tag:yaml.org,2002:str",{kind:"scalar",construct:function(i){return i!==null?i:""}}),uzt=new $g("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(i){return i!==null?i:[]}}),lzt=new $g("tag:yaml.org,2002:map",{kind:"mapping",construct:function(i){return i!==null?i:{}}}),hzt=new ozt({explicit:[czt,uzt,lzt]});function fzt(i){if(i===null)return!0;var a=i.length;return a===1&&i==="~"||a===4&&(i==="null"||i==="Null"||i==="NULL")}function dzt(){return null}function gzt(i){return i===null}var pzt=new $g("tag:yaml.org,2002:null",{kind:"scalar",resolve:fzt,construct:dzt,predicate:gzt,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"});function bzt(i){if(i===null)return!1;var a=i.length;return a===4&&(i==="true"||i==="True"||i==="TRUE")||a===5&&(i==="false"||i==="False"||i==="FALSE")}function mzt(i){return i==="true"||i==="True"||i==="TRUE"}function vzt(i){return Object.prototype.toString.call(i)==="[object Boolean]"}var wzt=new $g("tag:yaml.org,2002:bool",{kind:"scalar",resolve:bzt,construct:mzt,predicate:vzt,represent:{lowercase:function(i){return i?"true":"false"},uppercase:function(i){return i?"TRUE":"FALSE"},camelcase:function(i){return i?"True":"F
\r`;function zzt(i){if(i===null)return!1;var a,u,d=0,p=i.length,v=sbe;for(u=0;u<p;u++)if(a=v.indexOf(i.charAt(u)),!(a>64)){if(a<0)return!1;d+=6}return d%8===0}function qzt(i){var a,u,d=i.replace(/[\r\n=]/g,""),p=d.length,v=sbe,b=0,y=[];for(a=0;a<p;a++)a%4===0&&a&&(y.push(b>>16&255),y.push(b>>8&255),y.push(b&255)),b=b<<6|v.indexOf(d.charAt(a));return u=p%4*6,u===0?(y.push(b>>16&255),y.push(b>>8&255),y.push(b&255)):u===18?(y.push(b>>10&255),y.push(b>>2&255)):u===12&&y.push(b>>4&255),new Uint8Array(y)}function Hzt(i){var a="",u=0,d,p,v=i.length,b=sbe;for(d=0;d<v;d++)d%3===0&&d&&(a+=b[u>>18&63],a+=b[u>>12&63],a+=b[u>>6&63],a+=b[u&63]),u=(u<<8)+i[d];return p=v%3,p===0?(a+=b[u>>18&63],a+=b[u>>12&63],a+=b[u>>6&63],a+=b[u&63]):p===2?(a+=b[u>>10&63],a+=b[u>>4&63],a+=b[u<<2&63],a+=b[64]):p===1&&(a+=b[u>>2&63],a+=b[u<<4&63],a+=b[64],a+=b[64]),a}function Uzt(i){return Object.prototype.toString.call(i)==="[object Uint8Array]"}var Vzt=new $g("tag:yaml.org,2002:binary",{kind:"scalar",resolve:zzt,construct:qzt,predicate:Uzt,represent:Hzt}),Gzt=Object.prototype.hasOwnProperty,Kzt=Object.prototype.toString;function Wzt(i){if(i===null)return!0;var a=[],u,d,p,v,b,y=i;for(u=0,d=y.length;u<d;u+=1){if(p=y[u],b=!1,Kzt.call(p)!=="[object Object]")return!1;for(v in p)if(Gzt.call(p,v))if(!b)b=!0;else return!1;if(!b)return!1;if(a.indexOf(v)===-1)a.push(v);else return!1}return!0}function Yzt(i){return i!==null?i:[]}var Xzt=new $g("tag:yaml.org,2002:omap",{kind:"sequence",resolve:Wzt,construct:Yzt}),Qzt=Object.prototype.toString;function Jzt(i){if(i===null)return!0;var a,u,d,p,v,b=i;for(v=new Array(b.length),a=0,u=b.length;a<u;a+=1){if(d=b[a],Qzt.call(d)!=="[object Object]"||(p=Object.keys(d),p.length!==1))return!1;v[a]=[p[0],d[p[0]]]}return!0}function Zzt(i){if(i===null)return[];var a,u,d,p,v,b=i;for(v=new Array(b.length),a=0,u=b.length;a<u;a+=1)d=b[a],p=Object.keys(d),v[a]=[p[0],d[p[0]]];return v}var eqt=new $g("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:Jzt,construct:Zzt}),tqt=Object.prototype.hasOwnProperty;function nqt(i){if(i===null)return!0;var a,u=i;for(a in u)if(tqt.call(u,a)&&u[a]!==null)return!1;return!0}function rqt(i){return i!==null?i:{}}var iqt=new $g("tag:yaml.org,2002:set",{kind:"mapping",resolve:nqt,construct:rqt}),sqt=Nzt.extend({implicit:[Rzt,$zt],explicit:[Vzt,Xzt,eqt,iqt]}),k9=Object.prototype.hasOwnProperty,rQ=1,K$e=2,W$e=3,iQ=4,abe=1,aqt=2,Y$e=3,oqt=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,cqt=/[\x85\u2028\u2029]/,uqt=/[,\[\]\{\}]/,X$e=/^(?:!|!!|![a-z\-]+!)$/i,Q$e=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function J$e(i){return Object.prototype.toString.call(i)}function K4(i){return i===10||i===13}function RC(i){return i===9||i===32}function K2(i){return i===9||i===32||i===10||i===13}function DD(i){return i===44||i===91||i===93||i===123||i===125}function lqt(i){var a;return 48<=i&&i<=57?i-48:(a=i|32,97<=a&&a<=102?a-97+10:-1)}function hqt(i){return i===120?2:i===117?4:i===85?8:0}function fqt(i){return 48<=i&&i<=57?i-48:-1}function Z$e(i){return i===48?"\0":i===97?"\x07":i===98?"\b":i===116||i===9?" ":i===110?`
`:i===118?"\v":i===102?"\f":i===114?"\r":i===101?"\x1B":i===32?" ":i===34?'"':i===47?"/":i===92?"\\":i===78?"…":i===95?" ":i===76?"\u2028":i===80?"\u2029":""}function dqt(i){return i<=65535?String.fromCharCode(i):String.fromCharCode((i-65536>>10)+55296,(i-65536&1023)+56320)}for(var eze=new Array(256),tze=new Array(256),ID=0;ID<256;ID++)eze[ID]=Z$e(ID)?1:0,tze[ID]=Z$e(ID);function gqt(i,a){this.input=i,this.filename=a.filename||null,this.schema=a.schema||sqt,this.onWarning=a.onWarning||null,this.legacy=a.legacy||!1,this.json=a.json||!1,this.listener=a.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=i.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}function nze(i,a){var u={name:i.filename,buffer:i.input.slice(0,-1),position:i.position,line:i.line,column:i.position-i.lineStart};return u.snippet=tzt(u),new M7(a,u)}function la(i,a){throw nze(i,a)}function sQ(i,a){i.onWarning&&i.onWarning.call(null,nze(i,a))}var rze={YAML:function(a,u,d){var p,v,b;a.version!==null&&la(a,"duplication of %YAML directive"),d.length!==1&&la(a,"YAML directive accepts exactly one argument"),p=/^([0-9]+)\.([0-9]+)$/.exec(d[0]),p===null&&la(a,"ill-formed argument of the YAML directive"),v=parseInt(p[1],10),b=parseInt(p[2],10),v!==1&&la(a,"unacceptable YAML version of the document"),a.version=d[0],a.checkLineBreaks=b<2,b!==1&&b!==2&&sQ(a,"unsupported YAML version of the document")},TAG:function(a,u,d){var p,v;d.length!==2&&la(a,"TAG directive accepts exactly two arguments"),p=d[0],v=d[1],X$e.test(p)||la(a,"ill-formed tag handle (first argument) of the TAG directive"),k9.call(a.tagMap,p)&&la(a,'there is a previously declared suffix for "'+p+'" tag handle'),Q$e.test(v)||la(a,"ill-formed tag prefix (second argument) of the TAG directive");try{v=decodeURIComponent(v)}catch{la(a,"tag prefix is malformed: "+v)}a.tagMap[p]=v}};function T9(i,a,u,d){var p,v,b,y;if(a<u){if(y=i.input.slice(a,u),d)for(p=0,v=y.length;p<v;p+=1)b=y.charCodeAt(p),b===9||32<=b&&b<=1114111||la(i,"expected valid JSON character");else oqt.test(y)&&la(i,"the stream contains non-printable characters");i.result+=y}}function ize(i,a,u,d){var p,v,b,y;for(Np.isObject(u)||la(i,"cannot merge mappings; the provided source object is unacceptable"),p=Object.keys(u),b=0,y=p.length;b<y;b+=1)v=p[b],k9.call(a,v)||(a[v]=u[v],d[v]=!0)}function OD(i,a,u,d,p,v,b,y,E){var _,A;if(Array.isArray(p))for(p=Array.prototype.slice.call(p),_=0,A=p.length;_<A;_+=1)Array.isArray(p[_])&&la(i,"nested arrays are not supported inside keys"),typeof p=="object"&&J$e(p[_])==="[object Object]"&&(p[_]="[object Object]");if(typeof p=="object"&&J$e(p)==="[object Object]"&&(p="[object Object]"),p=String(p),a===null&&(a={}),d==="tag:yaml.org,2002:merge")if(Array.isArray(v))for(_=0,A=v.length;_<A;_+=1)ize(i,a,v[_],u);else ize(i,a,v,u);else!i.json&&!k9.call(u,p)&&k9.call(a,p)&&(i.line=b||i.line,i.lineStart=y||i.lineStart,i.position=E||i.position,la(i,"duplicated mapping key")),p==="__proto__"?Object.defineProperty(a,p,{configurable:!0,enumerable:!0,writable:!0,value:v}):a[p]=v,delete u[p];return a}function obe(i){var a;a=i.input.charCodeAt(i.position),a===10?i.position++:a===13?(i.position++,i.input.charCodeAt(i.position)===10&&i.position++):la(i,"a line break is expected"),i.line+=1,i.lineStart=i.position,i.firstTabInLine=-1}function O0(i,a,u){for(var d=0,p=i.input.charCodeAt(i.position);p!==0;){for(;RC(p);)p===9&&i.firstTabInLine===-1&&(i.firstTabInLine=i.position),p=i.input.charCodeAt(++i.position);if(a&&p===35)do p=i.input.charCodeAt(++i.position);while(p!==10&&p!==13&&p!==0);if(K4(p))for(obe(i),p=i.input.charCodeAt(i.position),d++,i.lineIndent=0;p===32;)i.lineIndent++,p=i.input.charCodeAt(++i.position);else break}return u!==-1&&d!==0&&i.lineIndent<u&&sQ(i,"deficient indentation"),d}function aQ(i){var a=i.position,u;return u=i.input.charCodeAt(a),!!((u===45||u===46)&&u===i.input.charCodeAt(a+1)&&u===i.input.charCodeAt(a+2)&&(a+=3,u=i.input.charCodeAt(a),u===0||K2(u)))}function cbe(i,a){a===1?i.resu
`,a-1))}function pqt(i,a,u){var d,p,v,b,y,E,_,A,P=i.kind,R=i.result,B;if(B=i.input.charCodeAt(i.position),K2(B)||DD(B)||B===35||B===38||B===42||B===33||B===124||B===62||B===39||B===34||B===37||B===64||B===96||(B===63||B===45)&&(p=i.input.charCodeAt(i.position+1),K2(p)||u&&DD(p)))return!1;for(i.kind="scalar",i.result="",v=b=i.position,y=!1;B!==0;){if(B===58){if(p=i.input.charCodeAt(i.position+1),K2(p)||u&&DD(p))break}else if(B===35){if(d=i.input.charCodeAt(i.position-1),K2(d))break}else{if(i.position===i.lineStart&&aQ(i)||u&&DD(B))break;if(K4(B))if(E=i.line,_=i.lineStart,A=i.lineIndent,O0(i,!1,-1),i.lineIndent>=a){y=!0,B=i.input.charCodeAt(i.position);continue}else{i.position=b,i.line=E,i.lineStart=_,i.lineIndent=A;break}}y&&(T9(i,v,b,!1),cbe(i,i.line-E),v=b=i.position,y=!1),RC(B)||(b=i.position+1),B=i.input.charCodeAt(++i.position)}return T9(i,v,b,!1),i.result?!0:(i.kind=P,i.result=R,!1)}function bqt(i,a){var u,d,p;if(u=i.input.charCodeAt(i.position),u!==39)return!1;for(i.kind="scalar",i.result="",i.position++,d=p=i.position;(u=i.input.charCodeAt(i.position))!==0;)if(u===39)if(T9(i,d,i.position,!0),u=i.input.charCodeAt(++i.position),u===39)d=i.position,i.position++,p=i.position;else return!0;else K4(u)?(T9(i,d,p,!0),cbe(i,O0(i,!1,a)),d=p=i.position):i.position===i.lineStart&&aQ(i)?la(i,"unexpected end of the document within a single quoted scalar"):(i.position++,p=i.position);la(i,"unexpected end of the stream within a single quoted scalar")}function mqt(i,a){var u,d,p,v,b,y;if(y=i.input.charCodeAt(i.position),y!==34)return!1;for(i.kind="scalar",i.result="",i.position++,u=d=i.position;(y=i.input.charCodeAt(i.position))!==0;){if(y===34)return T9(i,u,i.position,!0),i.position++,!0;if(y===92){if(T9(i,u,i.position,!0),y=i.input.charCodeAt(++i.position),K4(y))O0(i,!1,a);else if(y<256&&eze[y])i.result+=tze[y],i.position++;else if((b=hqt(y))>0){for(p=b,v=0;p>0;p--)y=i.input.charCodeAt(++i.position),(b=lqt(y))>=0?v=(v<<4)+b:la(i,"expected hexadecimal character");i.result+=dqt(v),i.position++}else la(i,"unknown escape sequence");u=d=i.position}else K4(y)?(T9(i,u,d,!0),cbe(i,O0(i,!1,a)),u=d=i.position):i.position===i.lineStart&&aQ(i)?la(i,"unexpected end of the document within a double quoted scalar"):(i.position++,d=i.position)}la(i,"unexpected end of the stream within a double quoted scalar")}function vqt(i,a){var u=!0,d,p,v,b=i.tag,y,E=i.anchor,_,A,P,R,B,j=Object.create(null),W,ee,ie,oe;if(oe=i.input.charCodeAt(i.position),oe===91)A=93,B=!1,y=[];else if(oe===123)A=125,B=!0,y={};else return!1;for(i.anchor!==null&&(i.anchorMap[i.anchor]=y),oe=i.input.charCodeAt(++i.position);oe!==0;){if(O0(i,!0,a),oe=i.input.charCodeAt(i.position),oe===A)return i.position++,i.tag=b,i.anchor=E,i.kind=B?"mapping":"sequence",i.result=y,!0;u?oe===44&&la(i,"expected the node content, but found ','"):la(i,"missed comma between flow collection entries"),ee=W=ie=null,P=R=!1,oe===63&&(_=i.input.charCodeAt(i.position+1),K2(_)&&(P=R=!0,i.position++,O0(i,!0,a))),d=i.line,p=i.lineStart,v=i.position,ND(i,a,rQ,!1,!0),ee=i.tag,W=i.result,O0(i,!0,a),oe=i.input.charCodeAt(i.position),(R||i.line===d)&&oe===58&&(P=!0,oe=i.input.charCodeAt(++i.position),O0(i,!0,a),ND(i,a,rQ,!1,!0),ie=i.result),B?OD(i,y,j,ee,W,ie,d,p,v):P?y.push(OD(i,null,j,ee,W,ie,d,p,v)):y.push(W),O0(i,!0,a),oe=i.input.charCodeAt(i.position),oe===44?(u=!0,oe=i.input.charCodeAt(++i.position)):u=!1}la(i,"unexpected end of the stream within a flow collection")}function wqt(i,a){var u,d,p=abe,v=!1,b=!1,y=a,E=0,_=!1,A,P;if(P=i.input.charCodeAt(i.position),P===124)d=!1;else if(P===62)d=!0;else return!1;for(i.kind="scalar",i.result="";P!==0;)if(P=i.input.charCodeAt(++i.position),P===43||P===45)abe===p?p=P===43?Y$e:aqt:la(i,"repeat of a chomping mode identifier");else if((A=fqt(P))>=0)A===0?la(i,"bad explicit indentation width of a block scalar; it cannot be less than one"):b?la(i,"repeat of an indentation width identifier"):(y=a+A-1,b=!0);else break;if(RC(P)){do P=i.input.charCodeAt(++i.position);while(RC(P));if(P===35)do P=i.input.charCodeAt(++i.position);while(!K4(P)&&P!==0)}for(;P!==0;){for(obe(i),i.li
`,v?1+E:E):p===abe&&v&&(i.result+=`
`);break}for(d?RC(P)?(_=!0,i.result+=Np.repeat(`
`,v?1+E:E)):_?(_=!1,i.result+=Np.repeat(`
`,E+1)):E===0?v&&(i.result+=" "):i.result+=Np.repeat(`
`,E):i.result+=Np.repeat(`
`,v?1+E:E),v=!0,b=!0,E=0,u=i.position;!K4(P)&&P!==0;)P=i.input.charCodeAt(++i.position);T9(i,u,i.position,!1)}return!0}function sze(i,a){var u,d=i.tag,p=i.anchor,v=[],b,y=!1,E;if(i.firstTabInLine!==-1)return!1;for(i.anchor!==null&&(i.anchorMap[i.anchor]=v),E=i.input.charCodeAt(i.position);E!==0&&(i.firstTabInLine!==-1&&(i.position=i.firstTabInLine,la(i,"tab characters must not be used in indentation")),!(E!==45||(b=i.input.charCodeAt(i.position+1),!K2(b))));){if(y=!0,i.position++,O0(i,!0,-1)&&i.lineIndent<=a){v.push(null),E=i.input.charCodeAt(i.position);continue}if(u=i.line,ND(i,a,W$e,!1,!0),v.push(i.result),O0(i,!0,-1),E=i.input.charCodeAt(i.position),(i.line===u||i.lineIndent>a)&&E!==0)la(i,"bad indentation of a sequence entry");else if(i.lineIndent<a)break}return y?(i.tag=d,i.anchor=p,i.kind="sequence",i.result=v,!0):!1}function yqt(i,a,u){var d,p,v,b,y,E,_=i.tag,A=i.anchor,P={},R=Object.create(null),B=null,j=null,W=null,ee=!1,ie=!1,oe;if(i.firstTabInLine!==-1)return!1;for(i.anchor!==null&&(i.anchorMap[i.anchor]=P),oe=i.input.charCodeAt(i.position);oe!==0;){if(!ee&&i.firstTabInLine!==-1&&(i.position=i.firstTabInLine,la(i,"tab characters must not be used in indentation")),d=i.input.charCodeAt(i.position+1),v=i.line,(oe===63||oe===58)&&K2(d))oe===63?(ee&&(OD(i,P,R,B,j,null,b,y,E),B=j=W=null),ie=!0,ee=!0,p=!0):ee?(ee=!1,p=!0):la(i,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),i.position+=1,oe=d;else{if(b=i.line,y=i.lineStart,E=i.position,!ND(i,u,K$e,!1,!0))break;if(i.line===v){for(oe=i.input.charCodeAt(i.position);RC(oe);)oe=i.input.charCodeAt(++i.position);if(oe===58)oe=i.input.charCodeAt(++i.position),K2(oe)||la(i,"a whitespace character is expected after the key-value separator within a block mapping"),ee&&(OD(i,P,R,B,j,null,b,y,E),B=j=W=null),ie=!0,ee=!1,p=!1,B=i.tag,j=i.result;else if(ie)la(i,"can not read an implicit mapping pair; a colon is missed");else return i.tag=_,i.anchor=A,!0}else if(ie)la(i,"can not read a block mapping entry; a multiline key may not be an implicit key");else return i.tag=_,i.anchor=A,!0}if((i.line===v||i.lineIndent>a)&&(ee&&(b=i.line,y=i.lineStart,E=i.position),ND(i,a,iQ,!0,p)&&(ee?j=i.result:W=i.result),ee||(OD(i,P,R,B,j,W,b,y,E),B=j=W=null),O0(i,!0,-1),oe=i.input.charCodeAt(i.position)),(i.line===v||i.lineIndent>a)&&oe!==0)la(i,"bad indentation of a mapping entry");else if(i.lineIndent<a)break}return ee&&OD(i,P,R,B,j,null,b,y,E),ie&&(i.tag=_,i.anchor=A,i.kind="mapping",i.result=P),ie}function xqt(i){var a,u=!1,d=!1,p,v,b;if(b=i.input.charCodeAt(i.position),b!==33)return!1;if(i.tag!==null&&la(i,"duplication of a tag property"),b=i.input.charCodeAt(++i.position),b===60?(u=!0,b=i.input.charCodeAt(++i.position)):b===33?(d=!0,p="!!",b=i.input.charCodeAt(++i.position)):p="!",a=i.position,u){do b=i.input.charCodeAt(++i.position);while(b!==0&&b!==62);i.position<i.length?(v=i.input.slice(a,i.position),b=i.input.charCodeAt(++i.position)):la(i,"unexpected end of the stream within a verbatim tag")}else{for(;b!==0&&!K2(b);)b===33&&(d?la(i,"tag suffix cannot contain exclamation marks"):(p=i.input.slice(a-1,i.position+1),X$e.test(p)||la(i,"named tag handle cannot contain such characters"),d=!0,a=i.position+1)),b=i.input.charCodeAt(++i.position);v=i.input.slice(a,i.position),uqt.test(v)&&la(i,"tag suffix cannot contain flow indicator characters")}v&&!Q$e.test(v)&&la(i,"tag name cannot contain such characters: "+v);try{v=decodeURIComponent(v)}catch{la(i,"tag name is malformed: "+v)}return u?i.tag=v:k9.call(i.tagMap,p)?i.tag=i.tagMap[p]+v:p==="!"?i.tag="!"+v:p==="!!"?i.tag="tag:yaml.org,2002:"+v:la(i,'undeclared tag handle "'+p+'"'),!0}function kqt(i){var a,u;if(u=i.input.charCodeAt(i.position),u!==38)return!1;for(i.anchor!==null&&la(i,"duplication of an anchor property"),u=i.input.charCodeAt(++i.position),a=i.position;u!==0&&!K2(u)&&!DD(u);)u=i.input.charCodeAt(++i.position);return i.position===a&&la(i,"name of an anchor node must contain at least one character"),i.anchor=i.input.slice(a,i.position),!0}function Tqt(i){var a,u,d;if(d=i.input.charCo
`),i.charCodeAt(0)===65279&&(i=i.slice(1)));var u=new gqt(i,a),d=i.indexOf("\0");for(d!==-1&&(u.position=d,la(u,"null byte is not allowed in input")),u.input+="\0";u.input.charCodeAt(u.position)===32;)u.lineIndent+=1,u.position+=1;for(;u.position<u.length-1;)Eqt(u);return u.documents}function Cqt(i,a,u){a!==null&&typeof a=="object"&&typeof u>"u"&&(u=a,a=null);var d=aze(i,u);if(typeof a!="function")return d;for(var p=0,v=d.length;p<v;p+=1)a(d[p])}function Sqt(i,a){var u=aze(i,a);if(u.length!==0){if(u.length===1)return u[0];throw new M7("expected a single document in the stream, but found more")}}var _qt=Cqt,Aqt=Sqt,Lqt={loadAll:_qt,load:Aqt},Mqt=U$e,Dqt=Lqt.load;function Iqt(i){const a=i.match(tje);if(!a)return{text:i,metadata:{}};let u=Dqt(a[1],{schema:Mqt})??{};u=typeof u=="object"&&!Array.isArray(u)?u:{};const d={};return u.displayMode&&(d.displayMode=u.displayMode.toString()),u.title&&(d.title=u.title.toString()),u.config&&(d.config=u.config),{text:i.slice(a[0].length),metadata:d}}const Oqt=i=>i.replace(/\r\n?/g,`
`).replace(/<(\w+)([^>]*)>/g,(a,u,d)=>"<"+u+d.replace(/="([^"]*)"/g,"='$1'")+">"),Nqt=i=>{const{text:a,metadata:u}=Iqt(i),{displayMode:d,title:p,config:v={}}=u;return d&&(v.gantt||(v.gantt={}),v.gantt.displayMode=d),{title:p,config:v,text:a}},Pqt=i=>{const a=So.detectInit(i)??{},u=So.detectDirective(i,"wrap");return Array.isArray(u)?a.wrap=u.some(({type:d})=>{}):(u==null?void 0:u.type)==="wrap"&&(a.wrap=!0),{text:ejt(i),directive:a}};function oze(i){const a=Oqt(i),u=Nqt(a),d=Pqt(u.text),p=cR(u.config,d.directive);return i=q$t(d.text),{code:i,title:u.title,config:p}}const Bqt=5e4,Fqt="graph TB;a[Maximum text size in diagram exceeded];style a fill:#faa",Rqt="sandbox",jqt="loose",$qt="http://www.w3.org/2000/svg",zqt="http://www.w3.org/1999/xlink",qqt="http://www.w3.org/1999/xhtml",Hqt="100%",Uqt="100%",Vqt="border:0;margin:0;",Gqt="margin:0",Kqt="allow-top-navigation-by-user-activation allow-popups",Wqt='The "iframe" tag is not supported by your browser.',Yqt=["foreignobject"],Xqt=["dominant-baseline"];function cze(i){const a=oze(i);return ZX(),Pjt(a.config??{}),a}async function Qqt(i,a){J2e(),i=cze(i).code;try{await ube(i)}catch(u){if(a!=null&&a.suppressErrors)return!1;throw u}return!0}const uze=(i,a,u=[])=>{const d=eje(`{ ${u.join(" !important; ")} !important; }`);return`.${i} ${a} ${d}`},Jqt=(i,a={})=>{var p;const u=new CSSStyleSheet;if(i.fontFamily!==void 0&&u.insertRule(`:root { --mermaid-font-family: ${i.fontFamily}}`,u.cssRules.length),i.altFontFamily!==void 0&&u.insertRule(`:root { --mermaid-alt-font-family: ${i.altFontFamily}}`,u.cssRules.length),!gR(a)){const E=i.htmlLabels||((p=i.flowchart)==null?void 0:p.htmlLabels)?["> *","span"]:["rect","polygon","ellipse","circle","path"];for(const _ in a){const A=a[_];gR(A.styles)||E.forEach(P=>{u.insertRule(uze(A.id,P,A.styles),u.cssRules.length)}),gR(A.textStyles)||u.insertRule(uze(A.id,"tspan",A.textStyles),u.cssRules.length)}}let d="";if(i.themeCSS!==void 0)if(typeof u.replaceSync=="function"){const v=new CSSStyleSheet;v.replaceSync(i.themeCSS),d=k$e(v)+`
`}else d+=`${i.themeCSS}
`;return d+k$e(u)},Zqt=(i,a)=>G2e(Ajt(`${i}{${a}}`),Djt([function(d,p,v,b){if(d.type==="rule"&&Array.isArray(d.props)){if(d.parent&&d.parent.type===$2e)return;d.props=d.props.map(y=>y.startsWith(i)?y:`${i} ${y}`)}else d.type.startsWith("@")&&([...[bjt,vjt,Vje,"@scope","@container","@starting-style"],$2e].includes(d.type)||(Xe.warn(`Removing unsupported at-rule ${d.type} from CSS`),d.type=j2e))},Mjt])),eHt=(i,a,u,d)=>{const p=Jqt(i,u),v=s$t(a,p,i.themeVariables);return Zqt(d,v)},tHt=(i="",a,u)=>{let d=i;return!u&&!a&&(d=d.replace(/marker-end="url\([\d+./:=?A-Za-z-]*?#/g,'marker-end="url(#')),d=uR(d),d=d.replace(/<br>/g,"<br/>"),d},nHt=(i="",a)=>{var p,v;const u=(v=(p=a==null?void 0:a.viewBox)==null?void 0:p.baseVal)!=null&&v.height?a.viewBox.baseVal.height+"px":Uqt,d=btoa('<body style="'+Gqt+'">'+i+"</body>");return`<iframe style="width:${Hqt};height:${u};${Vqt}" src="data:text/html;base64,${d}" sandbox="${Kqt}">
${Wqt}
</iframe>`},lze=(i,a,u,d,p)=>{const v=i.append("div");v.attr("id",u),d&&v.attr("style",d);const b=v.append("svg").attr("id",a).attr("width","100%").attr("xmlns",$qt);return p&&b.attr("xmlns:xlink",p),b.append("g"),i};function hze(i,a){return i.append("iframe").attr("id",a).attr("style","width: 100%; height: 100%;").attr("sandbox","")}const rHt=(i,a,u,d)=>{var p,v,b;(p=i.getElementById(a))==null||p.remove(),(v=i.getElementById(u))==null||v.remove(),(b=i.getElementById(d))==null||b.remove()},iHt=async function(i,a,u){var U,Be,Pe,je,Ie,Se;J2e();const d=cze(a);a=d.code;const p=mh();Xe.debug(p),a.length>((p==null?void 0:p.maxTextSize)??Bqt)&&(a=Fqt);const v=`#${i}`,b="i"+i,y="#"+b,E="d"+i,_="#"+E;let A=Dr(document.body);const P=p.securityLevel===Rqt,R=p.securityLevel===jqt,B=p.fontFamily;if(u!==void 0){if(u&&(u.innerHTML=""),P){const Ce=hze(Dr(u),b);A=Dr(Ce.nodes()[0].contentDocument.body),A.node().style.margin="0"}else A=Dr(u);lze(A,i,E,`font-family: ${B}`,zqt)}else{if(rHt(document,i,E,b),P){const Ce=hze(Dr(document.body),b);A=Dr(Ce.nodes()[0].contentDocument.body),A.node().style.margin="0"}else A=Dr("body");lze(A,i,E)}let j,W;try{j=await ube(a,{title:d.title})}catch(Ce){j=new O$e("error"),W=Ce}const ee=A.select(_).node(),ie=j.type,oe=ee.firstChild,be=oe.firstChild,ge=(Be=(U=j.renderer).getClasses)==null?void 0:Be.call(U,a,j),ae=eHt(p,ie,ge,v),ne=document.createElement("style");ne.innerHTML=ae,oe.insertBefore(ne,be);try{await j.renderer.draw(a,i,Jje,j)}catch(Ce){throw f$t.draw(a,i,Jje),Ce}const se=A.select(`${_} svg`),de=(je=(Pe=j.db).getAccTitle)==null?void 0:je.call(Pe),X=(Se=(Ie=j.db).getAccDescription)==null?void 0:Se.call(Ie);aHt(ie,se,de,X),A.select(`[id="${i}"]`).selectAll("foreignobject > *").attr("xmlns",qqt);let pe=A.select(_).node().innerHTML;if(Xe.debug("config.arrowMarkerAbsolute",p.arrowMarkerAbsolute),pe=tHt(pe,P,h1(p.arrowMarkerAbsolute)),P){const Ce=A.select(_+" svg").node();pe=nHt(pe,Ce)}else R||(pe=pD.sanitize(pe,{ADD_TAGS:Yqt,ADD_ATTR:Xqt,HTML_INTEGRATION_POINTS:{foreignobject:!0}}));if(y$t(),W)throw W;const xe=Dr(P?y:_).node();return xe&&"remove"in xe&&xe.remove(),{svg:pe,bindFunctions:j.db.bindFunctions}};function sHt(i={}){var u;i!=null&&i.fontFamily&&!((u=i.themeVariables)!=null&&u.fontFamily)&&(i.themeVariables||(i.themeVariables={}),i.themeVariables.fontFamily=i.fontFamily),Ojt(i),i!=null&&i.theme&&i.theme in C7?i.themeVariables=C7[i.theme].getThemeVariables(i.themeVariables):i&&(i.themeVariables=C7.default.getThemeVariables(i.themeVariables));const a=typeof i=="object"?Ijt(i):e$e();Spe(a.logLevel),J2e()}const ube=(i,a={})=>{const{code:u}=oze(i);return w$t(u,a)};function aHt(i,a,u,d){$$t(a,i),z$t(a,u,d,a.attr("id"))}const jC=Object.freeze({render:iHt,parse:Qqt,getDiagramFromText:ube,initialize:sHt,getConfig:mh,setConfig:t$e,getSiteConfig:e$e,updateSiteConfig:Njt,reset:()=>{ZX()},globalReset:()=>{ZX(_D)},defaultConfig:_D});Spe(mh().logLevel),ZX(mh());const oHt=async()=>{Xe.debug("Loading registered diagrams");const a=(await Promise.allSettled(Object.entries(mD).map(async([u,{detector:d,loader:p}])=>{if(p)try{Q2e(u)}catch{try{const{diagram:b,id:y}=await p();nQ(y,b,d)}catch(b){throw Xe.error(`Failed to load external diagram with key ${u}. Removing from detectors.`),delete mD[u],b}}}))).filter(u=>u.status==="rejected");if(a.length>0){Xe.error(`Failed to load ${a.length} external diagrams`);for(const u of a)Xe.error(u);throw new Error(`Failed to load ${a.length} external diagrams`)}},cHt=(i,a,u)=>{Xe.warn(i),qje(i)?(u&&u(i.str,i.hash),a.push({...i,message:i.str,error:i})):(u&&u(i),i instanceof Error&&a.push({str:i.message,message:i.message,hash:i.name,error:i}))},fze=async function(i={querySelector:".mermaid"}){try{await uHt(i)}catch(a){if(qje(a)&&Xe.error(a.str),bm.parseError&&bm.parseError(a),!i.suppressErrors)throw Xe.error("Use the suppressErrors option to suppress these errors"),a}},uHt=async function({postRenderCallback:i,querySelector:a,nodes:u}={querySelector:".mermaid"}){const d=jC.getConfig();Xe.debug(`${i?"":"No "}Callback function found`);let p;if(u)p=u;else if(a)p=document.querySelectorAll(
* Wait for document loaded before starting the execution
*/window.addEventListener("load",gze,!1)}const fHt=function(i){bm.parseError=i},oQ=[];let lbe=!1;const pze=async()=>{if(!lbe){for(lbe=!0;oQ.length>0;){const i=oQ.shift();if(i)try{await i()}catch(a){Xe.error("Error executing queue",a)}}lbe=!1}},dHt=async(i,a)=>new Promise((u,d)=>{const p=()=>new Promise((v,b)=>{jC.parse(i,a).then(y=>{v(y),u(y)},y=>{var E;Xe.error("Error parsing",y),(E=bm.parseError)==null||E.call(bm,y),b(y),d(y)})});oQ.push(p),pze().catch(d)}),bze=(i,a,u)=>new Promise((d,p)=>{const v=()=>new Promise((b,y)=>{jC.render(i,a,u).then(E=>{b(E),d(E)},E=>{var _;Xe.error("Error parsing",E),(_=bm.parseError)==null||_.call(bm,E),y(E),p(E)})});oQ.push(v),pze().catch(p)}),bm={startOnLoad:!0,mermaidAPI:jC,parse:dHt,render:bze,init:lHt,run:fze,registerExternalDiagrams:hHt,initialize:dze,parseError:void 0,contentLoaded:gze,setParseErrorHandler:fHt,detectType:IX};class ki extends Error{constructor(a,u){var d="KaTeX parse error: "+a,p,v,b=u&&u.loc;if(b&&b.start<=b.end){var y=b.lexer.input;p=b.start,v=b.end,p===y.length?d+=" at end of input: ":d+=" at position "+(p+1)+": ";var E=y.slice(p,v).replace(/[^]/g,"$&̲"),_;p>15?_="…"+y.slice(p-15,p):_=y.slice(0,p);var A;v+15<y.length?A=y.slice(v,v+15)+"…":A=y.slice(v),d+=_+E+A}super(d),this.name="ParseError",Object.setPrototypeOf(this,ki.prototype),this.position=p,p!=null&&v!=null&&(this.length=v-p),this.rawMessage=a}}var gHt=/([A-Z])/g,hbe=i=>i.replace(gHt,"-$1").toLowerCase(),pHt={"&":"&amp;",">":"&gt;","<":"&lt;",'"':"&quot;","'":"&#x27;"},bHt=/[&><"']/g,zg=i=>String(i).replace(bHt,a=>pHt[a]),cQ=i=>i.type==="ordgroup"||i.type==="color"?i.body.length===1?cQ(i.body[0]):i:i.type==="font"?cQ(i.body):i,mHt=new Set(["mathord","textord","atom"]),D7=i=>mHt.has(cQ(i).type),vHt=i=>{var a=/^[\x00-\x20]*([^\\/#?]*?)(:|&#0*58|&#x0*3a|&colon)/i.exec(i);return a?a[2]!==":"||!/^[a-zA-Z][a-zA-Z0-9+\-.]*$/.test(a[1])?null:a[1].toLowerCase():"_relative"},uQ={displayMode:{type:"boolean",description:"Render math in display mode, which puts the math in display style (so \\int and \\sum are large, for example), and centers the math on the page on its own line.",cli:"-d, --display-mode"},output:{type:{enum:["htmlAndMathml","html","mathml"]},description:"Determines the markup language of the output.",cli:"-F, --format <type>"},leqno:{type:"boolean",description:"Render display math in leqno style (left-justified tags)."},fleqn:{type:"boolean",description:"Render display math flush left."},throwOnError:{type:"boolean",default:!0,cli:"-t, --no-throw-on-error",cliDescription:"Render errors (in the color given by --error-color) instead of throwing a ParseError exception when encountering an error."},errorColor:{type:"string",default:"#cc0000",cli:"-c, --error-color <color>",cliDescription:"A color string given in the format 'rgb' or 'rrggbb' (no #). This option determines the color of errors rendered by the -t option.",cliProcessor:i=>"#"+i},macros:{type:"object",cli:"-m, --macro <def>",cliDescription:"Define custom macro of the form '\\foo:expansion' (use multiple -m arguments for multiple macros).",cliDefault:[],cliProcessor:(i,a)=>(a.push(i),a)},minRuleThickness:{type:"number",description:"Specifies a minimum thickness, in ems, for fraction lines, `\\sqrt` top lines, `{array}` vertical lines, `\\hline`, `\\hdashline`, `\\underline`, `\\overline`, and the borders of `\\fbox`, `\\boxed`, and `\\fcolorbox`.",processor:i=>Math.max(0,i),cli:"--min-rule-thickness <size>",cliProcessor:parseFloat},colorIsTextColor:{type:"boolean",description:"Makes \\color behave like LaTeX's 2-argument \\textcolor, instead of LaTeX's one-argument \\color mode change.",cli:"-b, --color-is-text-color"},strict:{type:[{enum:["warn","ignore","error"]},"boolean","function"],description:"Turn on strict / LaTeX faithfulness mode, which throws an error if the input uses features that are not supported by LaTeX.",cli:"-S, --strict",cliDefault:!1},trust:{type:["boolean","function"],description:"Trust the input, enabling all HTML features such as \\url.",cli:"-T, --trust"},maxSize:{type:"number",default:1/0,description:"If non-zero,
c-2.7,0,-7.17,-2.7,-13.5,-8c-5.8,-5.3,-9.5,-10,-9.5,-14
c0,-2,0.3,-3.3,1,-4c1.3,-2.7,23.83,-20.7,67.5,-54
c44.2,-33.3,65.8,-50.3,66.5,-51c1.3,-1.3,3,-2,5,-2c4.7,0,8.7,3.3,12,10
s173,378,173,378c0.7,0,35.3,-71,104,-213c68.7,-142,137.5,-285,206.5,-429
c69,-144,104.5,-217.7,106.5,-221
l`+a/2.075+" -"+a+`
c5.3,-9.3,12,-14,20,-14
H400000v`+(40+a)+`H845.2724
s-225.272,467,-225.272,467s-235,486,-235,486c-2.7,4.7,-9,7,-19,7
c-6,0,-10,-1,-12,-3s-194,-422,-194,-422s-65,47,-65,47z
M`+(834+a)+" "+u+"h400000v"+(40+a)+"h-400000z"},AHt=function(a,u){return"M263,"+(601+a+u)+`c0.7,0,18,39.7,52,119
c34,79.3,68.167,158.7,102.5,238c34.3,79.3,51.8,119.3,52.5,120
c340,-704.7,510.7,-1060.3,512,-1067
l`+a/2.084+" -"+a+`
c4.7,-7.3,11,-11,19,-11
H40000v`+(40+a)+`H1012.3
s-271.3,567,-271.3,567c-38.7,80.7,-84,175,-136,283c-52,108,-89.167,185.3,-111.5,232
c-22.3,46.7,-33.8,70.3,-34.5,71c-4.7,4.7,-12.3,7,-23,7s-12,-1,-12,-1
s-109,-253,-109,-253c-72.7,-168,-109.3,-252,-110,-252c-10.7,8,-22,16.7,-34,26
c-22,17.3,-33.3,26,-34,26s-26,-26,-26,-26s76,-59,76,-59s76,-60,76,-60z
M`+(1001+a)+" "+u+"h400000v"+(40+a)+"h-400000z"},LHt=function(a,u){return"M983 "+(10+a+u)+`
l`+a/3.13+" -"+a+`
c4,-6.7,10,-10,18,-10 H400000v`+(40+a)+`
H1013.1s-83.4,268,-264.1,840c-180.7,572,-277,876.3,-289,913c-4.7,4.7,-12.7,7,-24,7
s-12,0,-12,0c-1.3,-3.3,-3.7,-11.7,-7,-25c-35.3,-125.3,-106.7,-373.3,-214,-744
c-10,12,-21,25,-33,39s-32,39,-32,39c-6,-5.3,-15,-14,-27,-26s25,-30,25,-30
c26.7,-32.7,52,-63,76,-91s52,-60,52,-60s208,722,208,722
c56,-175.3,126.3,-397.3,211,-666c84.7,-268.7,153.8,-488.2,207.5,-658.5
c53.7,-170.3,84.5,-266.8,92.5,-289.5z
M`+(1001+a)+" "+u+"h400000v"+(40+a)+"h-400000z"},MHt=function(a,u){return"M424,"+(2398+a+u)+`
c-1.3,-0.7,-38.5,-172,-111.5,-514c-73,-342,-109.8,-513.3,-110.5,-514
c0,-2,-10.7,14.3,-32,49c-4.7,7.3,-9.8,15.7,-15.5,25c-5.7,9.3,-9.8,16,-12.5,20
s-5,7,-5,7c-4,-3.3,-8.3,-7.7,-13,-13s-13,-13,-13,-13s76,-122,76,-122s77,-121,77,-121
s209,968,209,968c0,-2,84.7,-361.7,254,-1079c169.3,-717.3,254.7,-1077.7,256,-1081
l`+a/4.223+" -"+a+`c4,-6.7,10,-10,18,-10 H400000
v`+(40+a)+`H1014.6
s-87.3,378.7,-272.6,1166c-185.3,787.3,-279.3,1182.3,-282,1185
c-2,6,-10,9,-24,9
c-8,0,-12,-0.7,-12,-2z M`+(1001+a)+" "+u+`
h400000v`+(40+a)+"h-400000z"},DHt=function(a,u){return"M473,"+(2713+a+u)+`
c339.3,-1799.3,509.3,-2700,510,-2702 l`+a/5.298+" -"+a+`
c3.3,-7.3,9.3,-11,18,-11 H400000v`+(40+a)+`H1017.7
s-90.5,478,-276.2,1466c-185.7,988,-279.5,1483,-281.5,1485c-2,6,-10,9,-24,9
c-8,0,-12,-0.7,-12,-2c0,-1.3,-5.3,-32,-16,-92c-50.7,-293.3,-119.7,-693.3,-207,-1200
c0,-1.3,-5.3,8.7,-16,30c-10.7,21.3,-21.3,42.7,-32,64s-16,33,-16,33s-26,-26,-26,-26
s76,-153,76,-153s77,-151,77,-151c0.7,0.7,35.7,202,105,604c67.3,400.7,102,602.7,104,
606zM`+(1001+a)+" "+u+"h400000v"+(40+a)+"H1017.7z"},IHt=function(a){var u=a/2;return"M400000 "+a+" H0 L"+u+" 0 l65 45 L145 "+(a-80)+" H400000z"},OHt=function(a,u,d){var p=d-54-u-a;return"M702 "+(a+u)+"H400000"+(40+a)+`
H742v`+p+`l-4 4-4 4c-.667.7 -2 1.5-4 2.5s-4.167 1.833-6.5 2.5-5.5 1-9.5 1
h-12l-28-84c-16.667-52-96.667 -294.333-240-727l-212 -643 -85 170
c-4-3.333-8.333-7.667-13 -13l-13-13l77-155 77-156c66 199.333 139 419.667
219 661 l218 661zM702 `+u+"H400000v"+(40+a)+"H742z"},NHt=function(a,u,d){u=1e3*u;var p="";switch(a){case"sqrtMain":p=_Ht(u,FD);break;case"sqrtSize1":p=AHt(u,FD);break;case"sqrtSize2":p=LHt(u,FD);break;case"sqrtSize3":p=MHt(u,FD);break;case"sqrtSize4":p=DHt(u,FD);break;case"sqrtTall":p=OHt(u,FD,d)}return p},PHt=function(a,u){switch(a){case"⎜":return f1("M291 0 H417 V"+u+" H291z");case"":return f1("M145 0 H188 V"+u+" H145z");case"∥":return f1("M145 0 H188 V"+u+" H145z")+f1("M367 0 H410 V"+u+" H367z");case"⎟":return f1("M457 0 H583 V"+u+" H457z");case"⎢":return f1("M319 0 H403 V"+u+" H319z");case"⎥":return f1("M263 0 H347 V"+u+" H263z");case"⎪":return f1("M384 0 H504 V"+u+" H384z");case"⏐":return f1("M312 0 H355 V"+u+" H312z");case"‖":return f1("M257 0 H300 V"+u+" H257z")+f1("M478 0 H521 V"+u+" H478z");default:return""}},vze={doubleleftarrow:`M262 157
l10-10c34-36 62.7-77 86-123 3.3-8 5-13.3 5-16 0-5.3-6.7-8-20-8-7.3
0-12.2.5-14.5 1.5-2.3 1-4.8 4.5-7.5 10.5-49.3 97.3-121.7 169.3-217 216-28
14-57.3 25-88 33-6.7 2-11 3.8-13 5.5-2 1.7-3 4.2-3 7.5s1 5.8 3 7.5
c2 1.7 6.3 3.5 13 5.5 68 17.3 128.2 47.8 180.5 91.5 52.3 43.7 93.8 96.2 124.5
157.5 9.3 8 15.3 12.3 18 13h6c12-.7 18-4 18-10 0-2-1.7-7-5-15-23.3-46-52-87
-86-123l-10-10h399738v-40H218c328 0 0 0 0 0l-10-8c-26.7-20-65.7-43-117-69 2.7
-2 6-3.7 10-5 36.7-16 72.3-37.3 107-64l10-8h399782v-40z
m8 0v40h399730v-40zm0 194v40h399730v-40z`,doublerightarrow:`M399738 392l
-10 10c-34 36-62.7 77-86 123-3.3 8-5 13.3-5 16 0 5.3 6.7 8 20 8 7.3 0 12.2-.5
14.5-1.5 2.3-1 4.8-4.5 7.5-10.5 49.3-97.3 121.7-169.3 217-216 28-14 57.3-25 88
-33 6.7-2 11-3.8 13-5.5 2-1.7 3-4.2 3-7.5s-1-5.8-3-7.5c-2-1.7-6.3-3.5-13-5.5-68
-17.3-128.2-47.8-180.5-91.5-52.3-43.7-93.8-96.2-124.5-157.5-9.3-8-15.3-12.3-18
-13h-6c-12 .7-18 4-18 10 0 2 1.7 7 5 15 23.3 46 52 87 86 123l10 10H0v40h399782
c-328 0 0 0 0 0l10 8c26.7 20 65.7 43 117 69-2.7 2-6 3.7-10 5-36.7 16-72.3 37.3
-107 64l-10 8H0v40zM0 157v40h399730v-40zm0 194v40h399730v-40z`,leftarrow:`M400000 241H110l3-3c68.7-52.7 113.7-120
135-202 4-14.7 6-23 6-25 0-7.3-7-11-21-11-8 0-13.2.8-15.5 2.5-2.3 1.7-4.2 5.8
-5.5 12.5-1.3 4.7-2.7 10.3-4 17-12 48.7-34.8 92-68.5 130S65.3 228.3 18 247
c-10 4-16 7.7-18 11 0 8.7 6 14.3 18 17 47.3 18.7 87.8 47 121.5 85S196 441.3 208
490c.7 2 1.3 5 2 9s1.2 6.7 1.5 8c.3 1.3 1 3.3 2 6s2.2 4.5 3.5 5.5c1.3 1 3.3
1.8 6 2.5s6 1 10 1c14 0 21-3.7 21-11 0-2-2-10.3-6-25-20-79.3-65-146.7-135-202
l-3-3h399890zM100 241v40h399900v-40z`,leftbrace:`M6 548l-6-6v-35l6-11c56-104 135.3-181.3 238-232 57.3-28.7 117
-45 179-50h399577v120H403c-43.3 7-81 15-113 26-100.7 33-179.7 91-237 174-2.7
5-6 9-10 13-.7 1-7.3 1-20 1H6z`,leftbraceunder:`M0 6l6-6h17c12.688 0 19.313.3 20 1 4 4 7.313 8.3 10 13
35.313 51.3 80.813 93.8 136.5 127.5 55.688 33.7 117.188 55.8 184.5 66.5.688
0 2 .3 4 1 18.688 2.7 76 4.3 172 5h399450v120H429l-6-1c-124.688-8-235-61.7
-331-161C60.687 138.7 32.312 99.3 7 54L0 41V6z`,leftgroup:`M400000 80
H435C64 80 168.3 229.4 21 260c-5.9 1.2-18 0-18 0-2 0-3-1-3-3v-38C76 61 257 0
435 0h399565z`,leftgroupunder:`M400000 262
H435C64 262 168.3 112.6 21 82c-5.9-1.2-18 0-18 0-2 0-3 1-3 3v38c76 158 257 219
435 219h399565z`,leftharpoon:`M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3
-3.3 10.2-9.5 20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5
-18.3 3-21-1.3-4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7
-196 228-6.7 4.7-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40z`,leftharpoonplus:`M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3-3.3 10.2-9.5
20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5-18.3 3-21-1.3
-4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7-196 228-6.7 4.7
-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40zM0 435v40h400000v-40z
m0 0v40h400000v-40z`,leftharpoondown:`M7 241c-4 4-6.333 8.667-7 14 0 5.333.667 9 2 11s5.333
5.333 12 10c90.667 54 156 130 196 228 3.333 10.667 6.333 16.333 9 17 2 .667 5
1 9 1h5c10.667 0 16.667-2 18-6 2-2.667 1-9.667-3-21-32-87.333-82.667-157.667
-152-211l-3-3h399907v-40zM93 281 H400000 v-40L7 241z`,leftharpoondownplus:`M7 435c-4 4-6.3 8.7-7 14 0 5.3.7 9 2 11s5.3 5.3 12
10c90.7 54 156 130 196 228 3.3 10.7 6.3 16.3 9 17 2 .7 5 1 9 1h5c10.7 0 16.7
-2 18-6 2-2.7 1-9.7-3-21-32-87.3-82.7-157.7-152-211l-3-3h399907v-40H7zm93 0
v40h399900v-40zM0 241v40h399900v-40zm0 0v40h399900v-40z`,lefthook:`M400000 281 H103s-33-11.2-61-33.5S0 197.3 0 164s14.2-61.2 42.5
-83.5C70.8 58.2 104 47 142 47 c16.7 0 25 6.7 25 20 0 12-8.7 18.7-26 20-40 3.3
-68.7 15.7-86 37-10 12-15 25.3-15 40 0 22.7 9.8 40.7 29.5 54 19.7 13.3 43.5 21
71.5 23h399859zM103 281v-40h399897v40z`,leftlinesegment:f1("M40 281 V428 H0 V94 H40 V241 H400000 v40z"),leftbracketunder:f1("M0 0 h120 V290 H399995 v120 H0z"),leftbracketover:f1("M0 440 h120 V150 H399995 v-120 H0z"),leftmapsto:f1("M40 281 V448H0V74H40V241H400000v40z"),leftToFrom:`M0 147h400000v40H0zm0 214c68 40 115.7 95.7 143 167h22c15.3 0 23
-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69-70-101l-7-8h399905v-40H95l7-8
c28.7-32 52-65.7 70-101 10.7-23.3 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 265.3
68 321 0 361zm0-174v-40h399900v40zm100 154v40h399900v-40z`,longequal:f1("M0 50 h400000 v40H0z m0 194h40000v40H0z"),midbrace:`M200428 334
c-100.7-8.3-195.3-44-280-108-55.3-42-101.7-93-139-153l-9-14c-2.7 4-5.7 8.7-9 14
-53.3 86.7-123.7 153-211 199-66.7 36-137.3 56.3-212 62H0V214h199568c178.3-11.7
311.7-78.3 403-201 6-8 9.7-12 11-12 .7-.7 6.7-1 18-1s17.3.3 18 1c1.3 0 5 4 11
12 44.7 59.3 101.3 106.3 170 141s145.3 54.3 229 60h199572v120z`,midbraceunder:`M199572 214
c100.7 8.3 195.3 44 280 108 55.3 42 101.7 93 139 153l9 14c2.7-4 5.7-8.7 9-14
53.3-86.7 123.7-153 211-199 66.7-36 137.3-56.3 212-62h199568v120H200432c-178.3
11.7-311.7 78.3-403 201-6 8-9.7 12-11 12-.7.7-6.7 1-18 1s-17.3-.3-18-1c-1.3 0
-5-4-11-12-44.7-59.3-101.3-106.3-170-141s-145.3-54.3-229-60H0V214z`,oiintSize1:`M512.6 71.6c272.6 0 320.3 106.8 320.3 178.2 0 70.8-47.7 177.6
-320.3 177.6S193.1 320.6 193.1 249.8c0-71.4 46.9-178.2 319.5-178.2z
m368.1 178.2c0-86.4-60.9-215.4-368.1-215.4-306.4 0-367.3 129-367.3 215.4 0 85.8
60.9 214.8 367.3 214.8 307.2 0 368.1-129 368.1-214.8z`,oiintSize2:`M757.8 100.1c384.7 0 451.1 137.6 451.1 230 0 91.3-66.4 228.8
-451.1 228.8-386.3 0-452.7-137.5-452.7-228.8 0-92.4 66.4-230 452.7-230z
m502.4 230c0-111.2-82.4-277.2-502.4-277.2s-504 166-504 277.2
c0 110 84 276 504 276s502.4-166 502.4-276z`,oiiintSize1:`M681.4 71.6c408.9 0 480.5 106.8 480.5 178.2 0 70.8-71.6 177.6
-480.5 177.6S202.1 320.6 202.1 249.8c0-71.4 70.5-178.2 479.3-178.2z
m525.8 178.2c0-86.4-86.8-215.4-525.7-215.4-437.9 0-524.7 129-524.7 215.4 0
85.8 86.8 214.8 524.7 214.8 438.9 0 525.7-129 525.7-214.8z`,oiiintSize2:`M1021.2 53c603.6 0 707.8 165.8 707.8 277.2 0 110-104.2 275.8
-707.8 275.8-606 0-710.2-165.8-710.2-275.8C311 218.8 415.2 53 1021.2 53z
m770.4 277.1c0-131.2-126.4-327.6-770.5-327.6S248.4 198.9 248.4 330.1
c0 130 128.8 326.4 772.7 326.4s770.5-196.4 770.5-326.4z`,rightarrow:`M0 241v40h399891c-47.3 35.3-84 78-110 128
-16.7 32-27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20
11 8 0 13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7
39-84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85
-40.5-119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5
-12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67
151.7 139 205zm0 0v40h399900v-40z`,rightbrace:`M400000 542l
-6 6h-17c-12.7 0-19.3-.3-20-1-4-4-7.3-8.3-10-13-35.3-51.3-80.8-93.8-136.5-127.5
s-117.2-55.8-184.5-66.5c-.7 0-2-.3-4-1-18.7-2.7-76-4.3-172-5H0V214h399571l6 1
c124.7 8 235 61.7 331 161 31.3 33.3 59.7 72.7 85 118l7 13v35z`,rightbraceunder:`M399994 0l6 6v35l-6 11c-56 104-135.3 181.3-238 232-57.3
28.7-117 45-179 50H-300V214h399897c43.3-7 81-15 113-26 100.7-33 179.7-91 237
-174 2.7-5 6-9 10-13 .7-1 7.3-1 20-1h17z`,rightgroup:`M0 80h399565c371 0 266.7 149.4 414 180 5.9 1.2 18 0 18 0 2 0
3-1 3-3v-38c-76-158-257-219-435-219H0z`,rightgroupunder:`M0 262h399565c371 0 266.7-149.4 414-180 5.9-1.2 18 0 18
0 2 0 3 1 3 3v38c-76 158-257 219-435 219H0z`,rightharpoon:`M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3
-3.7-15.3-11-18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2
-10.7 0-16.7 2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58
69.2 92 94.5zm0 0v40h399900v-40z`,rightharpoonplus:`M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3-3.7-15.3-11
-18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2-10.7 0-16.7
2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58 69.2 92 94.5z
m0 0v40h399900v-40z m100 194v40h399900v-40zm0 0v40h399900v-40z`,rightharpoondown:`M399747 511c0 7.3 6.7 11 20 11 8 0 13-.8 15-2.5s4.7-6.8
8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3 8.5-5.8 9.5
-7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3-64.7 57-92 95
-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 241v40h399900v-40z`,rightharpoondownplus:`M399747 705c0 7.3 6.7 11 20 11 8 0 13-.8
15-2.5s4.7-6.8 8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3
8.5-5.8 9.5-7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3
-64.7 57-92 95-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 435v40h399900v-40z
m0-194v40h400000v-40zm0 0v40h400000v-40z`,righthook:`M399859 241c-764 0 0 0 0 0 40-3.3 68.7-15.7 86-37 10-12 15-25.3
15-40 0-22.7-9.8-40.7-29.5-54-19.7-13.3-43.5-21-71.5-23-17.3-1.3-26-8-26-20 0
-13.3 8.7-20 26-20 38 0 71 11.2 99 33.5 0 0 7 5.6 21 16.7 14 11.2 21 33.5 21
66.8s-14 61.2-42 83.5c-28 22.3-61 33.5-99 33.5L0 241z M0 281v-40h399859v40z`,rightlinesegment:f1("M399960 241 V94 h40 V428 h-40 V281 H0 v-40z"),rightbracketunder:f1("M399995 0 h-120 V290 H0 v120 H400000z"),rightbracketover:f1("M399995 440 h-120 V150 H0 v-120 H399995z"),rightToFrom:`M400000 167c-70.7-42-118-97.7-142-167h-23c-15.3 0-23 .3-23
1 0 1.3 5.3 13.7 16 37 18 35.3 41.3 69 70 101l7 8H0v40h399905l-7 8c-28.7 32
-52 65.7-70 101-10.7 23.3-16 35.7-16 37 0 .7 7.7 1 23 1h23c24-69.3 71.3-125 142
-167z M100 147v40h399900v-40zM0 341v40h399900v-40z`,twoheadleftarrow:`M0 167c68 40
115.7 95.7 143 167h22c15.3 0 23-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69
-70-101l-7-8h125l9 7c50.7 39.3 85 86 103 140h46c0-4.7-6.3-18.7-19-42-18-35.3
-40-67.3-66-96l-9-9h399716v-40H284l9-9c26-28.7 48-60.7 66-96 12.7-23.333 19
-37.333 19-42h-46c-18 54-52.3 100.7-103 140l-9 7H95l7-8c28.7-32 52-65.7 70-101
10.7-23.333 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 71.3 68 127 0 167z`,twoheadrightarrow:`M400000 167
c-68-40-115.7-95.7-143-167h-22c-15.3 0-23 .3-23 1 0 1.3 5.3 13.7 16 37 18 35.3
41.3 69 70 101l7 8h-125l-9-7c-50.7-39.3-85-86-103-140h-46c0 4.7 6.3 18.7 19 42
18 35.3 40 67.3 66 96l9 9H0v40h399716l-9 9c-26 28.7-48 60.7-66 96-12.7 23.333
-19 37.333-19 42h46c18-54 52.3-100.7 103-140l9-7h125l-7 8c-28.7 32-52 65.7-70
101-10.7 23.333-16 35.7-16 37 0 .7 7.7 1 23 1h22c27.3-71.3 75-127 143-167z`,tilde1:`M200 55.538c-77 0-168 73.953-177 73.953-3 0-7
-2.175-9-5.437L2 97c-1-2-2-4-2-6 0-4 2-7 5-9l20-12C116 12 171 0 207 0c86 0
114 68 191 68 78 0 168-68 177-68 4 0 7 2 9 5l12 19c1 2.175 2 4.35 2 6.525 0
4.35-2 7.613-5 9.788l-19 13.05c-92 63.077-116.937 75.308-183 76.128
-68.267.847-113-73.952-191-73.952z`,tilde2:`M344 55.266c-142 0-300.638 81.316-311.5 86.418
-8.01 3.762-22.5 10.91-23.5 5.562L1 120c-1-2-1-3-1-4 0-5 3-9 8-10l18.4-9C160.9
31.9 283 0 358 0c148 0 188 122 331 122s314-97 326-97c4 0 8 2 10 7l7 21.114
c1 2.14 1 3.21 1 4.28 0 5.347-3 9.626-7 10.696l-22.3 12.622C852.6 158.372 751
181.476 676 181.476c-149 0-189-126.21-332-126.21z`,tilde3:`M786 59C457 59 32 175.242 13 175.242c-6 0-10-3.457
-11-10.37L.15 138c-1-7 3-12 10-13l19.2-6.4C378.4 40.7 634.3 0 804.3 0c337 0
411.8 157 746.8 157 328 0 754-112 773-112 5 0 10 3 11 9l1 14.075c1 8.066-.697
16.595-6.697 17.492l-21.052 7.31c-367.9 98.146-609.15 122.696-778.15 122.696
-338 0-409-156.573-744-156.573z`,tilde4:`M786 58C457 58 32 177.487 13 177.487c-6 0-10-3.345
-11-10.035L.15 143c-1-7 3-12 10-13l22-6.7C381.2 35 637.15 0 807.15 0c337 0 409
177 744 177 328 0 754-127 773-127 5 0 10 3 11 9l1 14.794c1 7.805-3 13.38-9
14.495l-20.7 5.574c-366.85 99.79-607.3 139.372-776.3 139.372-338 0-409
-175.236-744-175.236z`,vec:`M377 20c0-5.333 1.833-10 5.5-14S391 0 397 0c4.667 0 8.667 1.667 12 5
3.333 2.667 6.667 9 10 19 6.667 24.667 20.333 43.667 41 57 7.333 4.667 11
10.667 11 18 0 6-1 10-3 12s-6.667 5-14 9c-28.667 14.667-53.667 35.667-75 63
-1.333 1.333-3.167 3.5-5.5 6.5s-4 4.833-5 5.5c-1 .667-2.5 1.333-4.5 2s-4.333 1
-7 1c-4.667 0-9.167-1.833-13.5-5.5S337 184 337 178c0-12.667 15.667-32.333 47-59
H213l-171-1c-8.667-6-13-12.333-13-19 0-4.667 4.333-11.333 13-20h359
c-16-25.333-24-45-24-59z`,widehat1:`M529 0h5l519 115c5 1 9 5 9 10 0 1-1 2-1 3l-4 22
c-1 5-5 9-11 9h-2L532 67 19 159h-2c-5 0-9-4-11-9l-5-22c-1-6 2-12 8-13z`,widehat2:`M1181 0h2l1171 176c6 0 10 5 10 11l-2 23c-1 6-5 10
-11 10h-1L1182 67 15 220h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widehat3:`M1181 0h2l1171 236c6 0 10 5 10 11l-2 23c-1 6-5 10
-11 10h-1L1182 67 15 280h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widehat4:`M1181 0h2l1171 296c6 0 10 5 10 11l-2 23c-1 6-5 10
-11 10h-1L1182 67 15 340h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widecheck1:`M529,159h5l519,-115c5,-1,9,-5,9,-10c0,-1,-1,-2,-1,-3l-4,-22c-1,
-5,-5,-9,-11,-9h-2l-512,92l-513,-92h-2c-5,0,-9,4,-11,9l-5,22c-1,6,2,12,8,13z`,widecheck2:`M1181,220h2l1171,-176c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,
-11,-10h-1l-1168,153l-1167,-153h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,widecheck3:`M1181,280h2l1171,-236c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,
-11,-10h-1l-1168,213l-1167,-213h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,widecheck4:`M1181,340h2l1171,-296c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,
-11,-10h-1l-1168,273l-1167,-273h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,baraboveleftarrow:`M400000 620h-399890l3 -3c68.7 -52.7 113.7 -120 135 -202
c4 -14.7 6 -23 6 -25c0 -7.3 -7 -11 -21 -11c-8 0 -13.2 0.8 -15.5 2.5
c-2.3 1.7 -4.2 5.8 -5.5 12.5c-1.3 4.7 -2.7 10.3 -4 17c-12 48.7 -34.8 92 -68.5 130
s-74.2 66.3 -121.5 85c-10 4 -16 7.7 -18 11c0 8.7 6 14.3 18 17c47.3 18.7 87.8 47
121.5 85s56.5 81.3 68.5 130c0.7 2 1.3 5 2 9s1.2 6.7 1.5 8c0.3 1.3 1 3.3 2 6
s2.2 4.5 3.5 5.5c1.3 1 3.3 1.8 6 2.5s6 1 10 1c14 0 21 -3.7 21 -11
c0 -2 -2 -10.3 -6 -25c-20 -79.3 -65 -146.7 -135 -202l-3 -3h399890z
M100 620v40h399900v-40z M0 241v40h399900v-40zM0 241v40h399900v-40z`,rightarrowabovebar:`M0 241v40h399891c-47.3 35.3-84 78-110 128-16.7 32
-27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20 11 8 0
13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7 39
-84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85-40.5
-119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5
-12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67
151.7 139 205zm96 379h399894v40H0zm0 0h399904v40H0z`,baraboveshortleftharpoon:`M507,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11
c1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17
c2,0.7,5,1,9,1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21
c-32,-87.3,-82.7,-157.7,-152,-211c0,0,-3,-3,-3,-3l399351,0l0,-40
c-398570,0,-399437,0,-399437,0z M593 435 v40 H399500 v-40z
M0 281 v-40 H399908 v40z M0 281 v-40 H399908 v40z`,rightharpoonaboveshortbar:`M0,241 l0,40c399126,0,399993,0,399993,0
c4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199,
-231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6
c-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z
M0 241 v40 H399908 v-40z M0 475 v-40 H399500 v40z M0 475 v-40 H399500 v40z`,shortbaraboveleftharpoon:`M7,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11
c1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17c2,0.7,5,1,9,
1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21c-32,-87.3,-82.7,-157.7,
-152,-211c0,0,-3,-3,-3,-3l399907,0l0,-40c-399126,0,-399993,0,-399993,0z
M93 435 v40 H400000 v-40z M500 241 v40 H400000 v-40z M500 241 v40 H400000 v-40z`,shortrightharpoonabovebar:`M53,241l0,40c398570,0,399437,0,399437,0
c4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199,
-231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6
c-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z
M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`},BHt=function(a,u){switch(a){case"lbrack":return"M403 1759 V84 H666 V0 H319 V1759 v"+u+` v1759 h347 v-84
H403z M403 1759 V0 H319 V1759 v`+u+" v1759 h84z";case"rbrack":return"M347 1759 V0 H0 V84 H263 V1759 v"+u+` v1759 H0 v84 H347z
M347 1759 V0 H263 V1759 v`+u+" v1759 h84z";case"vert":return"M145 15 v585 v"+u+` v585 c2.667,10,9.667,15,21,15
c10,0,16.667,-5,20,-15 v-585 v`+-u+` v-585 c-2.667,-10,-9.667,-15,-21,-15
c-10,0,-16.667,5,-20,15z M188 15 H145 v585 v`+u+" v585 h43z";case"doublevert":return"M145 15 v585 v"+u+` v585 c2.667,10,9.667,15,21,15
c10,0,16.667,-5,20,-15 v-585 v`+-u+` v-585 c-2.667,-10,-9.667,-15,-21,-15
c-10,0,-16.667,5,-20,15z M188 15 H145 v585 v`+u+` v585 h43z
M367 15 v585 v`+u+` v585 c2.667,10,9.667,15,21,15
c10,0,16.667,-5,20,-15 v-585 v`+-u+` v-585 c-2.667,-10,-9.667,-15,-21,-15
c-10,0,-16.667,5,-20,15z M410 15 H367 v585 v`+u+" v585 h43z";case"lfloor":return"M319 602 V0 H403 V602 v"+u+` v1715 h263 v84 H319z
MM319 602 V0 H403 V602 v`+u+" v1715 H319z";case"rfloor":return"M319 602 V0 H403 V602 v"+u+` v1799 H0 v-84 H319z
MM319 602 V0 H403 V602 v`+u+" v1715 H319z";case"lceil":return"M403 1759 V84 H666 V0 H319 V1759 v"+u+` v602 h84z
M403 1759 V0 H319 V1759 v`+u+" v602 h84z";case"rceil":return"M347 1759 V0 H0 V84 H263 V1759 v"+u+` v602 h84z
M347 1759 V0 h-84 V1759 v`+u+" v602 h84z";case"lparen":return`M863,9c0,-2,-2,-5,-6,-9c0,0,-17,0,-17,0c-12.7,0,-19.3,0.3,-20,1
c-5.3,5.3,-10.3,11,-15,17c-242.7,294.7,-395.3,682,-458,1162c-21.3,163.3,-33.3,349,
-36,557 l0,`+(u+84)+`c0.2,6,0,26,0,60c2,159.3,10,310.7,24,454c53.3,528,210,
949.7,470,1265c4.7,6,9.7,11.7,15,17c0.7,0.7,7,1,19,1c0,0,18,0,18,0c4,-4,6,-7,6,-9
c0,-2.7,-3.3,-8.7,-10,-18c-135.3,-192.7,-235.5,-414.3,-300.5,-665c-65,-250.7,-102.5,
-544.7,-112.5,-882c-2,-104,-3,-167,-3,-189
l0,-`+(u+92)+`c0,-162.7,5.7,-314,17,-454c20.7,-272,63.7,-513,129,-723c65.3,
-210,155.3,-396.3,270,-559c6.7,-9.3,10,-15.3,10,-18z`;case"rparen":return`M76,0c-16.7,0,-25,3,-25,9c0,2,2,6.3,6,13c21.3,28.7,42.3,60.3,
63,95c96.7,156.7,172.8,332.5,228.5,527.5c55.7,195,92.8,416.5,111.5,664.5
c11.3,139.3,17,290.7,17,454c0,28,1.7,43,3.3,45l0,`+(u+9)+`
c-3,4,-3.3,16.7,-3.3,38c0,162,-5.7,313.7,-17,455c-18.7,248,-55.8,469.3,-111.5,664
c-55.7,194.7,-131.8,370.3,-228.5,527c-20.7,34.7,-41.7,66.3,-63,95c-2,3.3,-4,7,-6,11
c0,7.3,5.7,11,17,11c0,0,11,0,11,0c9.3,0,14.3,-0.3,15,-1c5.3,-5.3,10.3,-11,15,-17
c242.7,-294.7,395.3,-681.7,458,-1161c21.3,-164.7,33.3,-350.7,36,-558
l0,-`+(u+144)+`c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7,
-470,-1265c-4.7,-6,-9.7,-11.7,-15,-17c-0.7,-0.7,-6.7,-1,-18,-1z`;default:throw new Error("Unknown stretchy delimiter.")}};class RD{constructor(a){this.children=a,this.classes=[],this.height=0,this.depth=0,this.maxFontSize=0,this.style={}}hasClass(a){return this.classes.includes(a)}toNode(){for(var a=document.createDocumentFragment(),u=0;u<this.children.length;u++)a.appendChild(this.children[u].toNode());return a}toMarkup(){for(var a="",u=0;u<this.children.length;u++)a+=this.children[u].toMarkup();return a}toText(){var a=u=>u.toText();return this.children.map(a).join("")}}var pbe={pt:1,mm:7227/2540,cm:7227/254,in:72.27,bp:803/800,pc:12,dd:1238/1157,cc:14856/1157,nd:685/642,nc:1370/107,sp:1/65536,px:803/800},FHt={ex:!0,em:!0,mu:!0},wze=function(a){return typeof a!="string"&&(a=a.unit),a in pbe||a in FHt||a==="ex"},Uh=function(a,u){var d;if(a.unit in pbe)d=pbe[a.unit]/u.fontMetrics().ptPerEm/u.sizeMultiplier;else if(a.unit==="mu")d=u.fontMetrics().cssEmPerMu;else{var p;if(u.style.isTight()?p=u.havingStyle(u.style.text()):p=u,a.unit==="ex")d=p.fontMetrics().xHeight;else if(a.unit==="em")d=p.fontMetrics().quad;else throw new ki("Invalid unit: '"+a.unit+"'");p!==u&&(d*=p.sizeMultiplier/u.sizeMultiplier)}return Math.min(a.number*d,u.maxSize)},Oi=function(a){return+a.toFixed(4)+"em"},C9=function(a){return a.filter(u=>u).join(" ")},yze=function(a,u,d){if(this.classes=a||[],this.attributes={},this.height=0,this.depth=0,this.maxFontSize=0,this.style=d||{},u){u.style.isTight()&&this.classes.push("mtight");var p=u.getColor();p&&(this.style.color=p)}},xze=function(a){var u=document.createElement(a);u.className=C9(this.classes);for(var d of Object.keys(this.style))u.style[d]=this.style[d];for(var p of Object.keys(this.attributes))u.setAttribute(p,this.attributes[p]);for(var v=0;v<this.children.length;v++)u.appendChild(this.children[v].toNode());return u},RHt=/[\s"'>/=\x00-\x1f]/,kze=function(a){var u="<"+a;this.classes.length&&(u+=' class="'+zg(C9(this.classes))+'"');var d="";for(var p of Object.keys(this.style))d+=hbe(p)+":"+this.style[p]+";";d&&(u+=' style="'+zg(d)+'"');for(var v of Object.keys(this.attributes)){if(RHt.test(v))throw new ki("Invalid attribute name '"+v+"'");u+=" "+v+'="'+zg(this.attributes[v])+'"'}u+=">";for(var b=0;b<this.children.length;b++)u+=this.children[b].toMarkup();return u+="</"+a+">",u};class jD{constructor(a,u,d,p){yze.call(this,a,d,p),this.children=u||[]}setAttribute(a,u){this.attributes[a]=u}hasClass(a){return this.classes.includes(a)}toNode(){return xze.call(this,"span")}toMarkup(){return kze.call(this,"span")}}class fQ{constructor(a,u,d,p){yze.call(this,u,p),this.children=d||[],this.setAttribute("href",a)}setAttribute(a,u){this.attributes[a]=u}hasClass(a){return this.classes.includes(a)}toNode(){return xze.call(this,"a")}toMarkup(){return kze.call(this,"a")}}class jHt{constructor(a,u,d){this.alt=u,this.src=a,this.classes=["mord"],this.height=0,this.depth=0,this.maxFontSize=0,this.style=d}hasClass(a){return this.classes.includes(a)}toNode(){var a=document.createElement("img");a.src=this.src,a.alt=this.alt,a.className="mord";for(var u of Object.keys(this.style))a.style[u]=this.style[u];return a}toMarkup(){var a='<img src="'+zg(this.src)+'"'+(' alt="'+zg(this.alt)+'"'),u="";for(var d of Object.keys(this.style))u+=hbe(d)+":"+this.style[d]+";";return u&&(a+=' style="'+zg(u)+'"'),a+="'/>",a}}var $Ht={î:"ı̂",ï:"ı̈",í:"ı́",ì:"ı̀"};class mm{constructor(a,u,d,p,v,b,y,E){this.text=a,this.height=u||0,this.depth=d||0,this.italic=p||0,this.skew=v||0,this.width=b||0,this.classes=y||[],this.style=E||{},this.maxFontSize=0;var _=SHt(this.text.charCodeAt(0));_&&this.classes.push(_+"_fallback"),/[îïíì]/.test(this.text)&&(this.text=$Ht[this.text])}hasClass(a){return this.classes.includes(a)}toNode(){var a=document.createTextNode(this.text),u=null;this.italic>0&&(u=document.createElement("span"),u.style.marginRight=Oi(this.italic)),this.classes.length>0&&(u=u||document.createElement("span"),u.className=C9(this.classes));for(var d of Object.keys(this.style))u=u||document.createElement("span"),u.style[d]=this.
`+se+" children.");for(var G=0;G<se;G++){var xe=new S9(be[G]),U=new O7([xe],{width:"400em",height:Oi(ne),viewBox:"0 0 "+y+" "+ae,preserveAspectRatio:X[G]+" slice"}),Be=A9([de[G]],[U],u);if(se===1)return{span:Be,minWidth:ge,height:ne};Be.style.height=Oi(ne),ie.push(Be)}return{span:di(["stretchy"],ie,u),minWidth:ge,height:ne}}}var{span:p,minWidth:v,height:b}=d();return p.height=b,p.style.height=Oi(b),v>0&&(p.style.minWidth=Oi(v)),p},fUt=function(a,u,d,p,v){var b,y=a.height+a.depth+d+p;if(/fbox|color|angl/.test(u)){if(b=di(["stretchy",u],[],v),u==="fbox"){var E=v.color&&v.getColor();E&&(b.style.borderColor=E)}}else{var _=[];/^[bx]cancel$/.test(u)&&_.push(new bbe({x1:"0",y1:"0",x2:"100%",y2:"100%","stroke-width":"0.046em"})),/^x?cancel$/.test(u)&&_.push(new bbe({x1:"0",y1:"100%",x2:"100%",y2:"0","stroke-width":"0.046em"}));var A=new O7(_,{width:"100%",height:Oi(y)});b=A9([],[A],v)}return b.height=y,b.style.height=Oi(y),b};function Xo(i,a){if(!i||i.type!==a)throw new Error("Expected node of type "+a+", but got "+(i?"node of type "+i.type:String(i)));return i}function _Q(i){var a=AQ(i);if(!a)throw new Error("Expected node of symbol group type, but got "+(i?"node of type "+i.type:String(i)));return a}function AQ(i){return i&&(i.type==="atom"||GHt.hasOwnProperty(i.type))?i:null}var Uze=i=>{if(i instanceof mm)return i;if(HHt(i)&&i.children.length===1)return Uze(i.children[0])},Nbe=(i,a)=>{var u,d,p;i&&i.type==="supsub"?(d=Xo(i.base,"accent"),u=d.base,i.base=u,p=qHt(Du(i,a)),i.base=d):(d=Xo(i,"accent"),u=d.base);var v=Du(u,a.havingCrampedStyle()),b=d.isShifty&&D7(u),y=0;if(b){var E,_;y=(E=(_=Uze(v))==null?void 0:_.skew)!=null?E:0}var A=d.label==="\\c",P=A?v.height+v.depth:Math.min(v.height,a.fontMetrics().xHeight),R;if(d.isStretchy)R=SQ(d,a),R=Mu({positionType:"firstBaseline",children:[{type:"elem",elem:v},{type:"elem",elem:R,wrapperClasses:["svg-align"],wrapperStyle:y>0?{width:"calc(100% - "+Oi(2*y)+")",marginLeft:Oi(2*y)}:void 0}]});else{var B,j;d.label==="\\vec"?(B=Nze("vec",a),j=Oze.vec[1]):(B=wQ({type:"textord",mode:d.mode,text:d.label},a,"textord"),B=zHt(B),B.italic=0,j=B.width,A&&(P+=B.depth)),R=di(["accent-body"],[B]);var W=d.label==="\\textcircled";W&&(R.classes.push("accent-full"),P=v.height);var ee=y;W||(ee-=j/2),R.style.left=Oi(ee),d.label==="\\textcircled"&&(R.style.top=".2em"),R=Mu({positionType:"firstBaseline",children:[{type:"elem",elem:v},{type:"kern",size:-P},{type:"elem",elem:R}]})}var ie=di(["mord","accent"],[R],a);return p?(p.children[0]=ie,p.height=Math.max(ie.height,p.height),p.classes[0]="mord",p):ie},Vze=(i,a)=>{var u=i.isStretchy?CQ(i.label):new Si("mo",[Vv(i.label,i.mode)]),d=new Si("mover",[Al(i.base,a),u]);return d.setAttribute("accent","true"),d},dUt=new RegExp(["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring"].map(i=>"\\"+i).join("|"));es({type:"accent",names:["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring","\\widecheck","\\widehat","\\widetilde","\\overrightarrow","\\overleftarrow","\\Overrightarrow","\\overleftrightarrow","\\overgroup","\\overlinesegment","\\overleftharpoon","\\overrightharpoon"],props:{numArgs:1},handler:(i,a)=>{var u=TQ(a[0]),d=!dUt.test(i.funcName),p=!d||i.funcName==="\\widehat"||i.funcName==="\\widetilde"||i.funcName==="\\widecheck";return{type:"accent",mode:i.parser.mode,label:i.funcName,isStretchy:d,isShifty:p,base:u}},htmlBuilder:Nbe,mathmlBuilder:Vze}),es({type:"accent",names:["\\'","\\`","\\^","\\~","\\=","\\u","\\.",'\\"',"\\c","\\r","\\H","\\v","\\textcircled"],props:{numArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["primitive"]},handler:(i,a)=>{var u=a[0],d=i.parser.mode;return d==="math"&&(i.parser.settings.reportNonstrict("mathVsTextAccents","LaTeX's accent "+i.funcName+" works only in text mode"),d="text"),{type:"accent",mode:d,label:i.funcName,isStretchy:!1,isShifty:!0,base:u}},htmlBuilder:Nbe,mathmlBuilder:Vze}),es({type:"accentUnder",names:["\\underleftarrow","\\underrightarrow","\\underleftrightarrow","\\undergroup","\\underline
]`,$Ut="\\\\[a-zA-Z@]+",zUt="\\\\[^\uD800-\uDFFF]",qUt="("+$Ut+")"+Pqe+"*",HUt=`\\\\(
|[ \r ]+
?)[ \r ]*`,Xbe="[̀-ͯ]",UUt=new RegExp(Xbe+"+$"),VUt="("+Pqe+"+)|"+(HUt+"|")+"([!-\\[\\]-‧‪-퟿豈-￿]"+(Xbe+"*")+"|[\uD800-\uDBFF][\uDC00-\uDFFF]"+(Xbe+"*")+"|\\\\verb\\*([^]).*?\\4|\\\\verb([^*a-zA-Z]).*?\\5"+("|"+qUt)+("|"+zUt+")");class Bqe{constructor(a,u){this.input=a,this.settings=u,this.tokenRegex=new RegExp(VUt,"g"),this.catcodes={"%":14,"~":13}}setCatcode(a,u){this.catcodes[a]=u}lex(){var a=this.input,u=this.tokenRegex.lastIndex;if(u===a.length)return new ym("EOF",new W2(this,u,u));var d=this.tokenRegex.exec(a);if(d===null||d.index!==u)throw new ki("Unexpected character: '"+a[u]+"'",new ym(a[u],new W2(this,u,u+1)));var p=d[6]||d[3]||(d[2]?"\\ ":" ");if(this.catcodes[p]===14){var v=a.indexOf(`
`,this.tokenRegex.lastIndex);return v===-1?(this.tokenRegex.lastIndex=a.length,this.settings.reportNonstrict("commentAtEnd","% comment has no terminating newline; LaTeX would fail because of commenting the end of math mode (e.g. $)")):this.tokenRegex.lastIndex=v+1,this.lex()}return new ym(p,new W2(this,u,this.tokenRegex.lastIndex))}}class GUt{constructor(a,u){a===void 0&&(a={}),u===void 0&&(u={}),this.current=u,this.builtins=a,this.undefStack=[]}beginGroup(){this.undefStack.push({})}endGroup(){if(this.undefStack.length===0)throw new ki("Unbalanced namespace destruction: attempt to pop global namespace; please report this as a bug");var a=this.undefStack.pop();for(var u in a)a.hasOwnProperty(u)&&(a[u]==null?delete this.current[u]:this.current[u]=a[u])}endGroups(){for(;this.undefStack.length>0;)this.endGroup()}has(a){return this.current.hasOwnProperty(a)||this.builtins.hasOwnProperty(a)}get(a){return this.current.hasOwnProperty(a)?this.current[a]:this.builtins[a]}set(a,u,d){if(d===void 0&&(d=!1),d){for(var p=0;p<this.undefStack.length;p++)delete this.undefStack[p][a];this.undefStack.length>0&&(this.undefStack[this.undefStack.length-1][a]=u)}else{var v=this.undefStack[this.undefStack.length-1];v&&!v.hasOwnProperty(a)&&(v[a]=this.current[a])}u==null?delete this.current[a]:this.current[a]=u}}var KUt=hqe;et("\\noexpand",function(i){var a=i.popToken();return i.isExpandable(a.text)&&(a.noexpand=!0,a.treatAsRelax=!0),{tokens:[a],numArgs:0}}),et("\\expandafter",function(i){var a=i.popToken();return i.expandOnce(!0),{tokens:[a],numArgs:0}}),et("\\@firstoftwo",function(i){var a=i.consumeArgs(2);return{tokens:a[0],numArgs:0}}),et("\\@secondoftwo",function(i){var a=i.consumeArgs(2);return{tokens:a[1],numArgs:0}}),et("\\@ifnextchar",function(i){var a=i.consumeArgs(3);i.consumeSpaces();var u=i.future();return a[0].length===1&&a[0][0].text===u.text?{tokens:a[1],numArgs:0}:{tokens:a[2],numArgs:0}}),et("\\@ifstar","\\@ifnextchar *{\\@firstoftwo{#1}}"),et("\\TextOrMath",function(i){var a=i.consumeArgs(2);return i.mode==="text"?{tokens:a[0],numArgs:0}:{tokens:a[1],numArgs:0}});var Fqe={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,a:10,A:10,b:11,B:11,c:12,C:12,d:13,D:13,e:14,E:14,f:15,F:15};et("\\char",function(i){var a=i.popToken(),u,d=0;if(a.text==="'")u=8,a=i.popToken();else if(a.text==='"')u=16,a=i.popToken();else if(a.text==="`")if(a=i.popToken(),a.text[0]==="\\")d=a.text.charCodeAt(1);else{if(a.text==="EOF")throw new ki("\\char` missing argument");d=a.text.charCodeAt(0)}else u=10;if(u){if(d=Fqe[a.text],d==null||d>=u)throw new ki("Invalid base-"+u+" digit "+a.text);for(var p;(p=Fqe[i.future().text])!=null&&p<u;)d*=u,d+=p,i.popToken()}return"\\@char{"+d+"}"});var Qbe=(i,a,u,d)=>{var p=i.consumeArg().tokens;if(p.length!==1)throw new ki("\\newcommand's first argument must be a macro name");var v=p[0].text,b=i.isDefined(v);if(b&&!a)throw new ki("\\newcommand{"+v+"} attempting to redefine "+(v+"; use \\renewcommand"));if(!b&&!u)throw new ki("\\renewcommand{"+v+"} when command "+v+" does not yet exist; use \\newcommand");var y=0;if(p=i.consumeArg().tokens,p.length===1&&p[0].text==="["){for(var E="",_=i.expandNextToken();_.text!=="]"&&_.text!=="EOF";)E+=_.text,_=i.expandNextToken();if(!E.match(/^\s*[0-9]+\s*$/))throw new ki("Invalid number of arguments: "+E);y=parseInt(E),p=i.consumeArg().tokens}return b&&d||i.macros.set(v,{tokens:p,numArgs:y}),""};et("\\newcommand",i=>Qbe(i,!1,!0,!1)),et("\\renewcommand",i=>Qbe(i,!0,!1,!1)),et("\\providecommand",i=>Qbe(i,!0,!0,!0)),et("\\message",i=>{var a=i.consumeArgs(1)[0];return console.log(a.reverse().map(u=>u.text).join("")),""}),et("\\errmessage",i=>{var a=i.consumeArgs(1)[0];return console.error(a.reverse().map(u=>u.text).join("")),""}),et("\\show",i=>{var a=i.popToken(),u=a.text;return console.log(a,i.macros.get(u),D9[u],vh.math[u],vh.text[u]),""}),et("\\bgroup","{"),et("\\egroup","}"),et("~","\\nobreakspace"),et("\\lq","`"),et("\\rq","'"),et("\\aa","\\r a"),et("\\AA","\\r A"),et("\\textcopyright","\\html@mathml{\\textcircled{c}}{\\char`©}"),et("\\copyright","\\TextOrMath{\\textcopyright}{\\text{\\textco
please report what input caused this bug`);return d=d.slice(1,-1),{type:"verb",mode:"text",body:d,star:p}}Hqe.hasOwnProperty(u[0])&&!vh[this.mode][u[0]]&&(this.settings.strict&&this.mode==="math"&&this.settings.reportNonstrict("unicodeTextInMathMode",'Accented Unicode text character "'+u[0]+'" used in math mode',a),u=Hqe[u[0]]+u.slice(1));var v=UUt.exec(u);v&&(u=u.substring(0,v.index),u==="i"?u="ı":u==="j"&&(u="ȷ"));var b;if(vh[this.mode][u]){this.settings.strict&&this.mode==="math"&&kbe.includes(u)&&this.settings.reportNonstrict("unicodeTextInMathMode",'Latin-1/Unicode text character "'+u[0]+'" used in math mode',a);var y=vh[this.mode][u].group,E=W2.range(a),_;if(VHt.hasOwnProperty(y)){var A=y;_={type:"atom",mode:this.mode,family:A,loc:E,text:u}}else _={type:y,mode:this.mode,loc:E,text:u};b=_}else if(u.charCodeAt(0)>=128)this.settings.strict&&(mze(u.charCodeAt(0))?this.mode==="math"&&this.settings.reportNonstrict("unicodeTextInMathMode",'Unicode text character "'+u[0]+'" used in math mode',a):this.settings.reportNonstrict("unknownSymbol",'Unrecognized Unicode character "'+u[0]+'"'+(" ("+u.charCodeAt(0)+")"),a)),b={type:"textord",mode:"text",loc:W2.range(a),text:u};else return null;if(this.consume(),v)for(var P=0;P<v[0].length;P++){var R=v[0][P];if(!Zbe[R])throw new ki("Unknown accent ' "+R+"'",a);var B=Zbe[R][this.mode]||Zbe[R].text;if(!B)throw new ki("Accent "+R+" unsupported in "+this.mode+" mode",a);b={type:"accent",mode:this.mode,loc:W2.range(a),label:B,isStretchy:!1,isShifty:!0,base:b}}return b}}FQ.endOfExpression=new Set(["}","\\endgroup","\\end","\\right","&"]);var eme=function(a,u){if(!(typeof a=="string"||a instanceof String))throw new TypeError("KaTeX can only parse string typed expression");var d=new FQ(a,u);delete d.gullet.macros.current["\\df@tag"];var p=d.parse();if(delete d.gullet.macros.current["\\current@color"],delete d.gullet.macros.current["\\color"],d.gullet.macros.get("\\df@tag")){if(!u.displayMode)throw new ki("\\tag works only in display equations");p=[{type:"tag",mode:"text",body:p,tag:d.subparse([new ym("\\df@tag")])}]}return p},tme=function(a,u,d){u.textContent="";var p=RQ(a,d).toNode();u.appendChild(p)};typeof document<"u"&&document.compatMode!=="CSS1Compat"&&(typeof console<"u"&&console.warn("Warning: KaTeX doesn't work in quirks mode. Make sure your website has a suitable doctype."),tme=function(){throw new ki("KaTeX doesn't work in quirks mode.")});var Uqe=function(a,u){var d=RQ(a,u).toMarkup();return d},Vqe=function(a,u){var d=new fbe(u);return eme(a,d)},Gqe=function(a,u,d){if(d.throwOnError||!(a instanceof ki))throw a;var p=di(["katex-error"],[new mm(u)]);return p.setAttribute("title",a.toString()),p.setAttribute("style","color:"+d.errorColor),p},RQ=function(a,u){var d=new fbe(u);try{var p=eme(a,d);return oUt(p,a,d)}catch(v){return Gqe(v,a,d)}},Kqe=function(a,u){var d=new fbe(u);try{var p=eme(a,d);return cUt(p,a,d)}catch(v){return Gqe(v,a,d)}},Wqe="0.16.45",Yqe={Span:jD,Anchor:fQ,SymbolNode:mm,SvgNode:O7,PathNode:S9,LineNode:bbe},XUt={version:Wqe,render:tme,renderToString:Uqe,ParseError:ki,SETTINGS_SCHEMA:uQ,__parse:Vqe,__renderToDomTree:RQ,__renderToHTMLTree:Kqe,__setFontMetrics:Eze,__defineSymbol:we,__defineFunction:es,__defineMacro:et,__domTree:Yqe};const QUt=Object.freeze(Object.defineProperty({__proto__:null,ParseError:ki,SETTINGS_SCHEMA:uQ,__defineFunction:es,__defineMacro:et,__defineSymbol:we,__domTree:Yqe,__parse:Vqe,__renderToDomTree:RQ,__renderToHTMLTree:Kqe,__setFontMetrics:Eze,default:XUt,get render(){return tme},renderToString:Uqe,version:Wqe},Symbol.toStringTag,{value:"Module"}));var jQ=function(){var i=function(Tr,On,Rn,zn){for(Rn=Rn||{},zn=Tr.length;zn--;Rn[Tr[zn]]=On);return Rn},a=[1,24],u=[1,25],d=[1,26],p=[1,27],v=[1,28],b=[1,63],y=[1,64],E=[1,65],_=[1,66],A=[1,67],P=[1,68],R=[1,69],B=[1,29],j=[1,30],W=[1,31],ee=[1,32],ie=[1,33],oe=[1,34],be=[1,35],ge=[1,36],ae=[1,37],ne=[1,38],se=[1,39],de=[1,40],X=[1,41],pe=[1,42],G=[1,43],xe=[1,44],U=[1,45],Be=[1,46],Pe=[1,47],je=[1,48],Ie=[1,50],Se=[1,51],Ce=[1,52],ke=[1,53],Ke=[1,54],zt=[1,55],Ne=[1,56],pn=[
`+Es.showPosition()+`
Expecting `+Ra.join(", ")+", got '"+(this.terminals_[Ac]||Ac)+"'":ma="Parse error on line "+(Io+1)+": Unexpected "+(Ac==Us?"end of input":"'"+(this.terminals_[Ac]||Ac)+"'"),this.parseError(ma,{text:Es.match,token:this.terminals_[Ac]||Ac,line:Es.yylineno,loc:Kd,expected:Ra})}if(Ya[0]instanceof Array&&Ya.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Jc+", token: "+Ac);switch(Ya[0]){case 1:zn.push(Ac),gt.push(Es.yytext),on.push(Es.yylloc),zn.push(Ya[1]),Ac=null,Oo=Es.yyleng,Ln=Es.yytext,Io=Es.yylineno,Kd=Es.yylloc;break;case 2:if(Lc=this.productions_[Ya[1]][1],ha.$=gt[gt.length-Lc],ha._$={first_line:on[on.length-(Lc||1)].first_line,last_line:on[on.length-1].last_line,first_column:on[on.length-(Lc||1)].first_column,last_column:on[on.length-1].last_column},qp&&(ha._$.range=[on[on.length-(Lc||1)].range[0],on[on.length-1].range[1]]),Ba=this.performAction.apply(ha,[Ln,Oo,Io,Ou.yy,Ya[1],gt,on].concat(uo)),typeof Ba<"u")return Ba;Lc&&(zn=zn.slice(0,-1*Lc*2),gt=gt.slice(0,-1*Lc),on=on.slice(0,-1*Lc)),zn.push(this.productions_[Ya[1]][0]),gt.push(ha.$),on.push(ha._$),Fa=dn[zn[zn.length-2]][zn[zn.length-1]],zn.push(Fa);break;case 3:return!0}}return!0}},Hs=function(){var Tr={EOF:1,parseError:function(Rn,zn){if(this.yy.parser)this.yy.parser.parseError(Rn,zn);else throw new Error(Rn)},setInput:function(On,Rn){return this.yy=Rn||this.yy||{},this._input=On,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 On=this._input[0];this.yytext+=On,this.yyleng++,this.offset++,this.match+=On,this.matched+=On;var Rn=On.match(/(?:\r\n?|\n).*/g);return Rn?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),On},unput:function(On){var Rn=On.length,zn=On.split(/(?:\r\n?|\n)/g);this._input=On+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-Rn),this.offset-=Rn;var Ct=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),zn.length-1&&(this.yylineno-=zn.length-1);var gt=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:zn?(zn.length===Ct.length?this.yylloc.first_column:0)+Ct[Ct.length-zn.length].length-zn[0].length:this.yylloc.first_column-Rn},this.options.ranges&&(this.yylloc.range=[gt[0],gt[0]+this.yyleng-Rn]),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(On){this.unput(this.match.slice(On))},pastInput:function(){var On=this.matched.substr(0,this.matched.length-this.match.length);return(On.length>20?"...":"")+On.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var On=this.match;return On.length<20&&(On+=this._input.substr(0,20-On.length)),(On.substr(0,20)+(On.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var On=this.pastInput(),Rn=new Array(On.length+1).join("-");return On+this.upcomingInput()+`
`+Rn+"^"},test_match:function(On,Rn){var zn,Ct,gt;if(this.options.backtrack_lexer&&(gt={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&&(gt.yylloc.range=this.yylloc.range.slice(0))),Ct=On[0].match(/(?:\r\n?|\n).*/g),Ct&&(this.yylineno+=Ct.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:Ct?Ct[Ct.length-1].length-Ct[Ct.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+On[0].length},this.yytext+=On[0],this.match+=On[0],this.matches=On,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(On[0].length),this.matched+=On[0],zn=this.performAction.call(this,this.yy,this,Rn,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),zn)return zn;if(this._backtrack){for(var on in gt)this[on]=gt[on];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var On,Rn,zn,Ct;this._more||(this.yytext="",this.match="");for(var gt=this._currentRules(),on=0;on<gt.length;on++)if(zn=this._input.match(this.rules[gt[on]]),zn&&(!Rn||zn[0].length>Rn[0].length)){if(Rn=zn,Ct=on,this.options.backtrack_lexer){if(On=this.test_match(zn,gt[on]),On!==!1)return On;if(this._backtrack){Rn=!1;continue}else return!1}else if(!this.options.flex)break}return Rn?(On=this.test_match(Rn,gt[Ct]),On!==!1?On:!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 Rn=this.next();return Rn||this.lex()},begin:function(Rn){this.conditionStack.push(Rn)},popState:function(){var Rn=this.conditionStack.length-1;return Rn>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(Rn){return Rn=this.conditionStack.length-1-Math.abs(Rn||0),Rn>=0?this.conditionStack[Rn]:"INITIAL"},pushState:function(Rn){this.begin(Rn)},stateStackSize:function(){return this.conditionStack.length},options:{},performAction:function(Rn,zn,Ct,gt){switch(Ct){case 0:return 6;case 1:return 7;case 2:return 8;case 3:return 9;case 4:return 22;case 5:return 23;case 6:return this.begin("acc_title"),24;case 7:return this.popState(),"acc_title_value";case 8:return this.begin("acc_descr"),26;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:break;case 14:c;break;case 15:return 12;case 16:break;case 17:return 11;case 18:return 15;case 19:return 16;case 20:return 17;case 21:return 18;case 22:return this.begin("person_ext"),45;case 23:return this.begin("person"),44;case 24:return this.begin("system_ext_queue"),51;case 25:return this.begin("system_ext_db"),50;case 26:return this.begin("system_ext"),49;case 27:return this.begin("system_queue"),48;case 28:return this.begin("system_db"),47;case 29:return this.begin("system"),46;case 30:return this.begin("boundary"),37;case 31:return this.begin("enterprise_boundary"),34;case 32:return this.begin("system_boundary"),36;case 33:return this.begin("container_ext_queue"),57;case 34:return this.begin("container_ext_db"),56;case 35:return this.begin("container_ext"),55;case 36:return this.begin("container_queue"),54;case 37:return this.begin("container_db"),53;case 38:return this.begin("container"),52;case 39:return this.begin("container_boundary"),38;case 40:return this.begin("component_ext_queue"),63;case 41:return this.begin("component_ext_db"),62;case 42:return this.begin("component_ext"),61;case 43:return this.begin("component_queue"),60;case 44:return this.begin("component_db"),59;case 45:return this.begin("component"),58;case 46:return this.begin("node"),39;case 47:return this.begin("node"),39;case 48:return this.begin("node_l"),40;case 49:return this.begin("node_r"),41;case 50:return this.begin("rel"),64;case 51:return this.begin("birel"),65;case 52:return this.begin("rel_u"),66;case 53:return this.begin("rel_u"),66;case 54:return this.begin("rel_d"),67;case 55:return this.begin("rel_d"),67;case 56:return this.begin("rel_l"),68;case 57:return this.begin("rel_l"),68;case 58:return this.begin("rel_r"),69;case 59:return this.begin("rel_r"),69;case 60:return this.begin("rel_b"),70;case 61:return this.begin("rel_index"),71;case 62:return this.begin("update_el_style"),72;case 63:return this.begin("update_rel_style"),73;case 64:return this.begin("update_layout_config"),74;case 65:return"EOF_IN_STRUCT";case 66:return this.begin("attribute"),"ATTRIBUTE_EMPTY";case 67:this.begin("attribute");break;case 68:this.popState(),this.popState();break;case 69:return 80;case 70:break;case 71:return 80;case 72:this.begin("string");break;case 73:this.popState();break;case 74:return"STR";case 75:this.begin("string_kv");break;case 76:return this.begin("string_kv_key"),"STR_KEY";case 77:this.popState(),this.begin("string_kv_value");break;case 78:return"STR_VALUE";case 79:this.popState(),this.popState();break;case 80:return"STR";case 81:return"LBRACE";case 82:return"RBRACE";case 83:return"SPACE";case 84:return"EOL";case 85:return 14}},rules:[/^(?:.*direction\s+TB[^\n]*)/,/^(?:.*direction\s+BT[^\n]*)/,/^(?:.*direction\s+RL[^\n]*)/,/^(?:.*direction\s+LR[^\n]*)/,/^(?:title\s[^#\n;]+)/,/^(?:accDescription\s[^#\n;]+)/,/^(?:accTitle\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*:\s*)/
stroke: ${i.personBorder};
fill: ${i.personBkg};
}
`,init:({c4:i,wrap:a})=>{oHe.setConf(i),ime.setWrap(a)}}},Symbol.toStringTag,{value:"Module"}));var ume=function(){var i=function(Qo,Hi,Ui,zs){for(Ui=Ui||{},zs=Qo.length;zs--;Ui[Qo[zs]]=Hi);return Ui},a=[1,4],u=[1,3],d=[1,5],p=[1,8,9,10,11,27,34,36,38,42,58,81,82,83,84,85,86,99,102,103,106,108,111,112,113,118,119,120,121],v=[2,2],b=[1,13],y=[1,14],E=[1,15],_=[1,16],A=[1,23],P=[1,25],R=[1,26],B=[1,27],j=[1,49],W=[1,48],ee=[1,29],ie=[1,30],oe=[1,31],be=[1,32],ge=[1,33],ae=[1,44],ne=[1,46],se=[1,42],de=[1,47],X=[1,43],pe=[1,50],G=[1,45],xe=[1,51],U=[1,52],Be=[1,34],Pe=[1,35],je=[1,36],Ie=[1,37],Se=[1,57],Ce=[1,8,9,10,11,27,32,34,36,38,42,58,81,82,83,84,85,86,99,102,103,106,108,111,112,113,118,119,120,121],ke=[1,61],Ke=[1,60],zt=[1,62],Ne=[8,9,11,73,75],pn=[1,88],Tt=[1,93],Et=[1,92],Wt=[1,89],un=[1,85],yt=[1,91],Bt=[1,87],Ze=[1,94],Dt=[1,90],kt=[1,95],Nn=[1,86],ht=[8,9,10,11,73,75],qr=[8,9,10,11,44,73,75],xt=[8,9,10,11,29,42,44,46,48,50,52,54,56,58,61,63,65,66,68,73,75,86,99,102,103,106,108,111,112,113],Ri=[8,9,11,42,58,73,75,86,99,102,103,106,108,111,112,113],wi=[42,58,86,99,102,103,106,108,111,112,113],ia=[1,121],Hs=[1,120],mo=[1,128],Tr=[1,142],On=[1,143],Rn=[1,144],zn=[1,145],Ct=[1,130],gt=[1,132],on=[1,136],dn=[1,137],Ln=[1,138],Io=[1,139],Oo=[1,140],No=[1,141],Us=[1,146],uo=[1,147],Es=[1,126],Ou=[1,127],_c=[1,134],Kd=[1,129],qp=[1,133],Ul=[1,131],Ac=[8,9,10,11,27,32,34,36,38,42,58,81,82,83,84,85,86,99,102,103,106,108,111,112,113,118,119,120,121],Jc=[1,149],Ya=[8,9,11],Ba=[8,9,10,11,14,42,58,86,102,103,106,108,111,112,113],ha=[1,169],$o=[1,165],Lc=[1,166],Fa=[1,170],Ra=[1,167],ma=[1,168],Kh=[75,113,116],Po=[8,9,10,11,12,14,27,29,32,42,58,73,81,82,83,84,85,86,87,102,106,108,111,112,113],Hp=[10,103],Ug=[31,47,49,51,53,55,60,62,64,65,67,69,113,114,115],od=[1,235],cd=[1,233],w1=[1,237],kh=[1,231],Wd=[1,232],Yd=[1,234],Xd=[1,236],Zf=[1,238],Up=[1,255],u5=[8,9,11,103],bs=[8,9,10,11,58,81,102,103,106,107,108,109],Vt={trace:function(){},yy:{},symbols_:{error:2,start:3,graphConfig:4,document:5,line:6,statement:7,SEMI:8,NEWLINE:9,SPACE:10,EOF:11,GRAPH:12,NODIR:13,DIR:14,FirstStmtSeparator:15,ending:16,endToken:17,spaceList:18,spaceListNewline:19,vertexStatement:20,separator:21,styleStatement:22,linkStyleStatement:23,classDefStatement:24,classStatement:25,clickStatement:26,subgraph:27,textNoTags:28,SQS:29,text:30,SQE:31,end:32,direction:33,acc_title:34,acc_title_value:35,acc_descr:36,acc_descr_value:37,acc_descr_multiline_value:38,link:39,node:40,styledVertex:41,AMP:42,vertex:43,STYLE_SEPARATOR:44,idString:45,DOUBLECIRCLESTART:46,DOUBLECIRCLEEND:47,PS:48,PE:49,"(-":50,"-)":51,STADIUMSTART:52,STADIUMEND:53,SUBROUTINESTART:54,SUBROUTINEEND:55,VERTEX_WITH_PROPS_START:56,"NODE_STRING[field]":57,COLON:58,"NODE_STRING[value]":59,PIPE:60,CYLINDERSTART:61,CYLINDEREND:62,DIAMOND_START:63,DIAMOND_STOP:64,TAGEND:65,TRAPSTART:66,TRAPEND:67,INVTRAPSTART:68,INVTRAPEND:69,linkStatement:70,arrowText:71,TESTSTR:72,START_LINK:73,edgeText:74,LINK:75,edgeTextToken:76,STR:77,MD_STR:78,textToken:79,keywords:80,STYLE:81,LINKSTYLE:82,CLASSDEF:83,CLASS:84,CLICK:85,DOWN:86,UP:87,textNoTagsToken:88,stylesOpt:89,"idString[vertex]":90,"idString[class]":91,CALLBACKNAME:92,CALLBACKARGS:93,HREF:94,LINK_TARGET:95,"STR[link]":96,"STR[tooltip]":97,alphaNum:98,DEFAULT:99,numList:100,INTERPOLATE:101,NUM:102,COMMA:103,style:104,styleComponent:105,NODE_STRING:106,UNIT:107,BRKT:108,PCT:109,idStringToken:110,MINUS:111,MULT:112,UNICODE_TEXT:113,TEXT:114,TAGSTART:115,EDGE_TEXT:116,alphaNumToken:117,direction_tb:118,direction_bt:119,direction_rl:120,direction_lr:121,$accept:0,$end:1},terminals_:{2:"error",8:"SEMI",9:"NEWLINE",10:"SPACE",11:"EOF",12:"GRAPH",13:"NODIR",14:"DIR",27:"subgraph",29:"SQS",31:"SQE",32:"end",34:"acc_title",35:"acc_title_value",36:"acc_descr",37:"acc_descr_value",38:"acc_descr_multiline_value",42:"AMP",44:"STYLE_SEPARATOR",46:"DOUBLECIRCLESTART",47:"DOUBLECIRCLEEND",48:"PS",49:"PE",50:"(-",51:"-)",52:"STADIUMSTART",53:"STADIUMEND",54:"SUBROUTINESTART",55:"SUBROUTINEEND",56:"VERTEX_WITH_PROPS_START",57:"NODE_STRING[field]",58:"COLON",59:"NODE_STRING[
`+Th.showPosition()+`
Expecting `+f5.join(", ")+", got '"+(this.terminals_[y1]||y1)+"'":Z3="Parse error on line "+(Wh+1)+": Unexpected "+(y1==q9?"end of input":"'"+(this.terminals_[y1]||y1)+"'"),this.parseError(Z3,{text:Th.match,token:this.terminals_[y1]||y1,line:Th.yylineno,loc:H9,expected:f5})}if(ld[0]instanceof Array&&ld.length>1)throw new Error("Parse Error: multiple actions possible at state: "+ud+", token: "+y1);switch(ld[0]){case 1:zs.push(y1),Bo.push(Th.yytext),Ot.push(Th.yylloc),zs.push(ld[1]),y1=null,Vp=Th.yyleng,Gt=Th.yytext,Wh=Th.yylineno,H9=Th.yylloc;break;case 2:if(tb=this.productions_[ld[1]][1],Qv.$=Bo[Bo.length-tb],Qv._$={first_line:Ot[Ot.length-(tb||1)].first_line,last_line:Ot[Ot.length-1].last_line,first_column:Ot[Ot.length-(tb||1)].first_column,last_column:Ot[Ot.length-1].last_column},Cm&&(Qv._$.range=[Ot[Ot.length-(tb||1)].range[0],Ot[Ot.length-1].range[1]]),U9=this.performAction.apply(Qv,[Gt,Vp,Wh,Vg.yy,ld[1],Bo,Ot].concat(l5)),typeof U9<"u")return U9;tb&&(zs=zs.slice(0,-1*tb*2),Bo=Bo.slice(0,-1*tb),Ot=Ot.slice(0,-1*tb)),zs.push(this.productions_[ld[1]][0]),Bo.push(Qv.$),Ot.push(Qv._$),Q7=zu[zs[zs.length-2]][zs[zs.length-1]],zs.push(Q7);break;case 3:return!0}}return!0}},jr=function(){var Qo={EOF:1,parseError:function(Ui,zs){if(this.yy.parser)this.yy.parser.parseError(Ui,zs);else throw new Error(Ui)},setInput:function(Hi,Ui){return this.yy=Ui||this.yy||{},this._input=Hi,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 Hi=this._input[0];this.yytext+=Hi,this.yyleng++,this.offset++,this.match+=Hi,this.matched+=Hi;var Ui=Hi.match(/(?:\r\n?|\n).*/g);return Ui?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),Hi},unput:function(Hi){var Ui=Hi.length,zs=Hi.split(/(?:\r\n?|\n)/g);this._input=Hi+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-Ui),this.offset-=Ui;var gi=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),zs.length-1&&(this.yylineno-=zs.length-1);var Bo=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:zs?(zs.length===gi.length?this.yylloc.first_column:0)+gi[gi.length-zs.length].length-zs[0].length:this.yylloc.first_column-Ui},this.options.ranges&&(this.yylloc.range=[Bo[0],Bo[0]+this.yyleng-Ui]),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(Hi){this.unput(this.match.slice(Hi))},pastInput:function(){var Hi=this.matched.substr(0,this.matched.length-this.match.length);return(Hi.length>20?"...":"")+Hi.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var Hi=this.match;return Hi.length<20&&(Hi+=this._input.substr(0,20-Hi.length)),(Hi.substr(0,20)+(Hi.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var Hi=this.pastInput(),Ui=new Array(Hi.length+1).join("-");return Hi+this.upcomingInput()+`
`+Ui+"^"},test_match:function(Hi,Ui){var zs,gi,Bo;if(this.options.backtrack_lexer&&(Bo={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&&(Bo.yylloc.range=this.yylloc.range.slice(0))),gi=Hi[0].match(/(?:\r\n?|\n).*/g),gi&&(this.yylineno+=gi.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:gi?gi[gi.length-1].length-gi[gi.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+Hi[0].length},this.yytext+=Hi[0],this.match+=Hi[0],this.matches=Hi,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(Hi[0].length),this.matched+=Hi[0],zs=this.performAction.call(this,this.yy,this,Ui,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),zs)return zs;if(this._backtrack){for(var Ot in Bo)this[Ot]=Bo[Ot];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var Hi,Ui,zs,gi;this._more||(this.yytext="",this.match="");for(var Bo=this._currentRules(),Ot=0;Ot<Bo.length;Ot++)if(zs=this._input.match(this.rules[Bo[Ot]]),zs&&(!Ui||zs[0].length>Ui[0].length)){if(Ui=zs,gi=Ot,this.options.backtrack_lexer){if(Hi=this.test_match(zs,Bo[Ot]),Hi!==!1)return Hi;if(this._backtrack){Ui=!1;continue}else return!1}else if(!this.options.flex)break}return Ui?(Hi=this.test_match(Ui,Bo[gi]),Hi!==!1?Hi:!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 Ui=this.next();return Ui||this.lex()},begin:function(Ui){this.conditionStack.push(Ui)},popState:function(){var Ui=this.conditionStack.length-1;return Ui>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(Ui){return Ui=this.conditionStack.length-1-Math.abs(Ui||0),Ui>=0?this.conditionStack[Ui]:"INITIAL"},pushState:function(Ui){this.begin(Ui)},stateStackSize:function(){return this.conditionStack.length},options:{},performAction:function(Ui,zs,gi,Bo){switch(gi){case 0:return this.begin("acc_title"),34;case 1:return this.popState(),"acc_title_value";case 2:return this.begin("acc_descr"),36;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:this.begin("callbackname");break;case 8:this.popState();break;case 9:this.popState(),this.begin("callbackargs");break;case 10:return 92;case 11:this.popState();break;case 12:return 93;case 13:return"MD_STR";case 14:this.popState();break;case 15:this.begin("md_string");break;case 16:return"STR";case 17:this.popState();break;case 18:this.pushState("string");break;case 19:return 81;case 20:return 99;case 21:return 82;case 22:return 101;case 23:return 83;case 24:return 84;case 25:return 94;case 26:this.begin("click");break;case 27:this.popState();break;case 28:return 85;case 29:return Ui.lex.firstGraph()&&this.begin("dir"),12;case 30:return Ui.lex.firstGraph()&&this.begin("dir"),12;case 31:return Ui.lex.firstGraph()&&this.begin("dir"),12;case 32:return 27;case 33:return 32;case 34:return 95;case 35:return 95;case 36:return 95;case 37:return 95;case 38:return this.popState(),13;case 39:return this.popState(),14;case 40:return this.popState(),14;case 41:return this.popState(),14;case 42:return this.popState(),14;case 43:return this.popState(),14;case 44:return this.popState(),14;case 45:return this.popState(),14;case 46:return this.popState(),14;case 47:return this.popState(),14;case 48:return this.popState(),14;case 49:return 118;case 50:return 119;case 51:return 120;case 52:return 121;case 53:return 102;case 54:return 108;case 55:return 44;case 56:return 58;case 57:return 42;case 58:return 8;case 59:return 103;case 60:return 112;case 61:return this.popState(),75;case 62:return this.pushState("edgeText"),73;case 63:return 116;case 64:return this.popState(),75;case 65:return this.pushState("thickEdgeText"),73;case 66:return 116;case 67:return this.popState(),75;case 68:return this.pushState("dottedEdgeText"),73;case 69:return 116;case 70:return 75;case 71:return this.popState(),51;case 72:return"TEXT";case 73:return this.pushState("ellipseText"),50;case 74:return this.popState(),53;case 75:return this.pushState("text"),52;case 76:return this.popState(),55;case 77:return this.pushState("text"),54;case 78:return 56;case 79:return this.pushState("text"),65;case 80:return this.popState(),62;case 81:return this.pushState("text"),61;case 82:return this.popState(),47;case 83:return this.pushState("text"),46;case 84:return this.popState(),67;case 85:return this.popState(),69;case 86:return 114;case 87:return this.pushState("trapText"),66;case 88:return this.pushState("trapText"),68;case 89:return 115;case 90:return 65;case 91:return 87;case 92:return"SEP";case 93:return 86;case 94:return 112;case 95:return 108;case 96:return 42;case 97:return 106;case 98:return 111;case 99:return 113;case 100:return this.popState(),60;case 101:return this.pushState("text"),60;case 102:return this.popState(),49;case 103:return this.pushState("text"),48;case 104:return this.popState(),31;case 105:return this.pushState("text"),29;case 106:return this.popState(),64;case 107:return this.pushState("text"),63;case 108:return"TEXT";case 109:return"QUOTE";case 110:return 9;case 111:return 10;case 112
Initialize mermaid with maxEdges set to a higher number to allow more edges.
You cannot set this config via configuration inside the diagram as it is a secure config.
You have to call mermaid.initialize.`)},hHe=function(i,a,u){Xe.info("addLink (abc78)",i,a,u);let d,p;for(d=0;d<i.length;d++)for(p=0;p<a.length;p++)lHe(i[d],a[p],u)},fHe=function(i,a){i.forEach(function(u){u==="default"?V3.defaultInterpolate=a:V3[u].interpolate=a})},dHe=function(i,a){i.forEach(function(u){if(u>=V3.length)throw new Error(`The index ${u} for linkStyle is out of bounds. Valid indices for linkStyle are between 0 and ${V3.length-1}. (Help: Ensure that the index is within the range of existing edges.)`);u==="default"?V3.defaultStyle=a:(So.isSubstringInArray("fill",a)===-1&&a.push("fill:none"),V3[u].style=a)})},gHe=function(i,a){i.split(",").forEach(function(u){VD[u]===void 0&&(VD[u]={id:u,styles:[],textStyles:[]}),a!=null&&a.forEach(function(d){if(d.match("color")){const p=d.replace("fill","bgFill").replace("color","fill");VD[u].textStyles.push(p)}VD[u].styles.push(d)})})},pHe=function(i){Kv=i,Kv.match(/.*</)&&(Kv="RL"),Kv.match(/.*\^/)&&(Kv="BT"),Kv.match(/.*>/)&&(Kv="LR"),Kv.match(/.*v/)&&(Kv="TB"),Kv==="TD"&&(Kv="TB")},JQ=function(i,a){i.split(",").forEach(function(u){let d=u;ih[d]!==void 0&&ih[d].classes.push(a),GQ[d]!==void 0&&GQ[d].classes.push(a)})},qVt=function(i,a){i.split(",").forEach(function(u){a!==void 0&&(KQ[YQ==="gen-1"?ER(u):u]=QQ(a))})},HVt=function(i,a,u){let d=ER(i);if(qt().securityLevel!=="loose"||a===void 0)return;let p=[];if(typeof u=="string"){p=u.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(let v=0;v<p.length;v++){let b=p[v].trim();b.charAt(0)==='"'&&b.charAt(b.length-1)==='"'&&(b=b.substr(1,b.length-2)),p[v]=b}}p.length===0&&p.push(i),ih[i]!==void 0&&(ih[i].haveCallback=!0,XQ.push(function(){const v=document.querySelector(`[id="${d}"]`);v!==null&&v.addEventListener("click",function(){So.runFunc(a,...p)},!1)}))},bHe=function(i,a,u){i.split(",").forEach(function(d){ih[d]!==void 0&&(ih[d].link=So.formatUrl(a,UD),ih[d].linkTarget=u)}),JQ(i,"clickable")},mHe=function(i){if(KQ.hasOwnProperty(i))return KQ[i]},vHe=function(i,a,u){i.split(",").forEach(function(d){HVt(d,a,u)}),JQ(i,"clickable")},wHe=function(i){XQ.forEach(function(a){a(i)})},yHe=function(){return Kv.trim()},xHe=function(){return ih},kHe=function(){return V3},THe=function(){return VD},EHe=function(i){let a=Dr(".mermaidTooltip");(a._groups||a)[0][0]===null&&(a=Dr("body").append("div").attr("class","mermaidTooltip").style("opacity",0)),Dr(i).select("svg").selectAll("g.node").on("mouseover",function(){const p=Dr(this);if(p.attr("title")===null)return;const b=this.getBoundingClientRect();a.transition().duration(200).style("opacity",".9"),a.text(p.attr("title")).style("left",window.scrollX+b.left+(b.right-b.left)/2+"px").style("top",window.scrollY+b.bottom+"px"),a.html(a.html().replace(/&lt;br\/&gt;/g,"<br/>")),p.classed("hover",!0)}).on("mouseout",function(){a.transition().duration(500).style("opacity",0),Dr(this).classed("hover",!1)})};XQ.push(EHe);const CHe=function(i="gen-1"){ih={},VD={},V3=[],XQ=[EHe],j7=[],GQ={},WQ=0,KQ={},hme=!0,YQ=i,UD=qt(),Rg()},SHe=i=>{YQ=i||"gen-2"},_He=function(){return"fill:#ffa;stroke: #f66; stroke-width: 3px; stroke-dasharray: 5, 5;fill:#ffa;stroke: #666;"},AHe=function(i,a,u){let d=i.text.trim(),p=u.text;i===u&&u.text.match(/\s/)&&(d=void 0);function v(A){const P={boolean:{},number:{},string:{}},R=[];let B;return{nodeList:A.filter(function(W){const ee=typeof W;return W.stmt&&W.stmt==="dir"?(B=W.value,!1):W.trim()===""?!1:ee in P?P[ee].hasOwnProperty(W)?!1:P[ee][W]=!0:R.includes(W)?!1:R.push(W)}),dir:B}}let b=[];const{nodeList:y,dir:E}=v(b.concat.apply(b,a));if(b=y,YQ==="gen-1")for(let A=0;A<b.length;A++)b[A]=ER(b[A]);d=d||"subGraph"+WQ,p=p||"",p=QQ(p),WQ=WQ+1;const _={id:d,nodes:b,title:p.trim(),classes:[],dir:E,labelType:u.type};return Xe.info("Adding",_.id,_.nodes,_.dir),_.nodes=FHe(_,j7).nodes,j7.push(_),GQ[d]=_,d},UVt=function(i){for(const[a,u]of j7.entries())if(u.id===i)return a;return-1};let CR=-1;const LHe=[],MHe=function(i,a){const u=j7[a].nodes;if(CR=CR+1,CR>2e3)return;if(LHe[CR]=a,j7[a].id===i)return{result:!0,count:0};let d=0,p=1;for(;d<u.length;){const v=UVt(u[d]);if(v>=0){const b=MHe(i,v);if
`),p=0;p<d.length;p++)u.append("tspan").attr("xml:space","preserve").attr("dy","1em").attr("x","1").text(d[p]);return t5(u,a.labelStyle),u}function wQt(i){for(var a="",u=!1,d,p=0;p<i.length;++p)if(d=i[p],u){switch(d){case"n":a+=`
`;break;default:a+=d}u=!1}else d==="\\"?u=!0:a+=d;return a}function Fme(i,a,u){var d=a.label,p=i.append("g");a.labelType==="svg"?mQt(p,a):typeof d!="string"||a.labelType==="html"?Bme(p,a):vQt(p,a);var v=p.node().getBBox(),b;switch(u){case"top":b=-a.height/2;break;case"bottom":b=a.height/2-v.height;break;default:b=-v.height/2}return p.attr("transform","translate("+-v.width/2+","+b+")"),p}var Rme=function(i,a){var u=a.nodes().filter(function(v){return YUe(a,v)}),d=i.selectAll("g.cluster").data(u,function(v){return v});G3(d.exit(),a).style("opacity",0).remove();var p=d.enter().append("g").attr("class","cluster").attr("id",function(v){var b=a.node(v);return b.id}).style("opacity",0).each(function(v){var b=a.node(v),y=Dr(this);Dr(this).append("rect");var E=y.append("g").attr("class","label");Fme(E,b,b.clusterLabelPos)});return d=d.merge(p),d=G3(d,a).style("opacity",1),d.selectAll("rect").each(function(v){var b=a.node(v),y=Dr(this);t5(y,b.style)}),d};function yQt(i){Rme=i}let jme=function(i,a){var u=i.selectAll("g.edgeLabel").data(a.edges(),function(p){return XUe(p)}).classed("update",!0);u.exit().remove(),u.enter().append("g").classed("edgeLabel",!0).style("opacity",0),u=i.selectAll("g.edgeLabel"),u.each(function(p){var v=Dr(this);v.select(".label").remove();var b=a.edge(p),y=Fme(v,a.edge(p),0).classed("label",!0),E=y.node().getBBox();b.labelId&&y.attr("id",b.labelId),Object.prototype.hasOwnProperty.call(b,"width")||(b.width=E.width),Object.prototype.hasOwnProperty.call(b,"height")||(b.height=E.height)});var d;return u.exit?d=u.exit():d=u.selectAll(null),G3(d,a).style("opacity",0).remove(),u};function xQt(i){jme=i}function JUe(i,a){return i.intersect(a)}var $me=function(i,a,u){var d=i.selectAll("g.edgePath").data(a.edges(),function(b){return XUe(b)}).classed("update",!0),p=SQt(d,a);_Qt(d,a);var v=d.merge!==void 0?d.merge(p):d;return G3(v,a).style("opacity",1),v.each(function(b){var y=Dr(this),E=a.edge(b);E.elem=this,E.id&&y.attr("id",E.id),QUe(y,E.class,(y.classed("update")?"update ":"")+"edgePath")}),v.selectAll("path.path").each(function(b){var y=a.edge(b);y.arrowheadId=oJ("arrowhead");var E=Dr(this).attr("marker-end",function(){return"url("+TQt(location.href,y.arrowheadId)+")"}).style("fill","none");G3(E,a).attr("d",function(_){return EQt(a,_)}),t5(E,y.style)}),v.selectAll("defs *").remove(),v.selectAll("defs").each(function(b){var y=a.edge(b),E=u[y.arrowhead];E(Dr(this),y.arrowheadId,y,"arrowhead")}),v};function kQt(i){$me=i}function TQt(i,a){var u=i.split("#")[0];return u+"#"+a}function EQt(i,a){var u=i.edge(a),d=i.node(a.v),p=i.node(a.w),v=u.points.slice(1,u.points.length-1);return v.unshift(JUe(d,v[0])),v.push(JUe(p,v[v.length-1])),ZUe(u,v)}function ZUe(i,a){var u=(E7||hOt.line)().x(function(d){return d.x}).y(function(d){return d.y});return(u.curve||u.interpolate)(i.curve),u(a)}function CQt(i){var a=i.getBBox(),u=i.ownerSVGElement.getScreenCTM().inverse().multiply(i.getScreenCTM()).translate(a.width/2,a.height/2);return{x:u.e,y:u.f}}function SQt(i,a){var u=i.enter().append("g").attr("class","edgePath").style("opacity",0);return u.append("path").attr("class","path").attr("d",function(d){var p=a.edge(d),v=a.node(d.v).elem,b=KC(p.points.length).map(function(){return CQt(v)});return ZUe(p,b)}),u.append("defs"),u}function _Qt(i,a){var u=i.exit();G3(u,a).style("opacity",0).remove()}var zme=function(i,a,u){var d=a.nodes().filter(function(b){return!YUe(a,b)}),p=i.selectAll("g.node").data(d,function(b){return b}).classed("update",!0);p.exit().remove(),p.enter().append("g").attr("class","node").style("opacity",0),p=i.selectAll("g.node"),p.each(function(b){var y=a.node(b),E=Dr(this);QUe(E,y.class,(E.classed("update")?"update ":"")+"node"),E.select("g.label").remove();var _=E.append("g").attr("class","label"),A=Fme(_,y),P=u[y.shape],R=MR(A.node().getBBox(),"width","height");y.elem=this,y.id&&E.attr("id",y.id),y.labelId&&_.attr("id",y.labelId),Object.prototype.hasOwnProperty.call(y,"width")&&(R.width=y.width),Object.prototype.hasOwnProperty.call(y,"height")&&(R.height=y.height),R.width+=y.paddingLeft+y.paddingRight,R.height+=y.pad
`),b.style===void 0&&(A.style=A.style||"stroke: #333; stroke-width: 1.5px;fill:none"),A.labelStyle=A.labelStyle.replace("color:","fill:"))),A.id=y,A.class=E+" "+_,A.minlen=b.length||1,a.setEdge(u.db.lookUpDomId(b.start),u.db.lookUpDomId(b.end),A,d)}},WQt={setConf:KQt,addVertices:gVe,addEdges:pVe,getClasses:function(i,a){return Xe.info("Extracting classes"),a.db.getClasses()},draw:async function(i,a,u,d){Xe.info("Drawing flowchart");const{securityLevel:p,flowchart:v}=qt();let b;p==="sandbox"&&(b=Dr("#i"+a));const y=Dr(p==="sandbox"?b.nodes()[0].contentDocument.body:"body"),E=p==="sandbox"?b.nodes()[0].contentDocument:document;let _=d.db.getDirection();_===void 0&&(_="TD");const A=v.nodeSpacing||50,P=v.rankSpacing||50,R=new R0({multigraph:!0,compound:!0}).setGraph({rankdir:_,nodesep:A,ranksep:P,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}});let B;const j=d.db.getSubGraphs();for(let ne=j.length-1;ne>=0;ne--)B=j[ne],d.db.addVertex(B.id,B.title,"group",void 0,B.classes);const W=d.db.getVertices();Xe.warn("Get vertices",W);const ee=d.db.getEdges();let ie=0;for(ie=j.length-1;ie>=0;ie--){B=j[ie],VBe("cluster").append("text");for(let ne=0;ne<B.nodes.length;ne++)Xe.warn("Setting subgraph",B.nodes[ne],d.db.lookUpDomId(B.nodes[ne]),d.db.lookUpDomId(B.id)),R.setParent(d.db.lookUpDomId(B.nodes[ne]),d.db.lookUpDomId(B.id))}await gVe(W,R,a,y,E,d),await pVe(ee,R,d);const oe=new jQt;GQt.addToRender(oe),oe.arrows().none=function(se,de,X,pe){const xe=se.append("marker").attr("id",de).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");t5(xe,X[pe+"Style"])},oe.arrows().normal=function(se,de){se.append("marker").attr("id",de).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=y.select(`[id="${a}"]`),ge=y.select("#"+a+" g");for(oe(ge,R),ge.selectAll("g.node").attr("title",function(){return d.db.getTooltip(this.id)}),d.db.indexNodes("subGraph"+ie),ie=0;ie<j.length;ie++)if(B=j[ie],B.title!=="undefined"){const ne=E.querySelectorAll("#"+a+' [id="'+d.db.lookUpDomId(B.id)+'"] rect'),se=E.querySelectorAll("#"+a+' [id="'+d.db.lookUpDomId(B.id)+'"]'),de=ne[0].x.baseVal.value,X=ne[0].y.baseVal.value,pe=ne[0].width.baseVal.value,xe=Dr(se[0]).select(".label");xe.attr("transform",`translate(${de+pe/2}, ${X+14})`),xe.attr("id",a+"Text");for(let U=0;U<B.classes.length;U++)se[0].classList.add(B.classes[U])}if(!v.htmlLabels){const ne=E.querySelectorAll('[id="'+a+'"] .edgeLabel .label');for(const se of ne){const de=se.getBBox(),X=E.createElementNS("http://www.w3.org/2000/svg","rect");X.setAttribute("rx",0),X.setAttribute("ry",0),X.setAttribute("width",de.width),X.setAttribute("height",de.height),se.insertBefore(X,se.firstChild)}}x9(R,be,v.diagramPadding,v.useMaxWidth),Object.keys(W).forEach(function(ne){const se=W[ne];if(se.link){const de=y.select("#"+a+' [id="'+d.db.lookUpDomId(ne)+'"]');if(de){const X=E.createElementNS("http://www.w3.org/2000/svg","a");X.setAttributeNS("http://www.w3.org/2000/svg","class",se.classes.join(" ")),X.setAttributeNS("http://www.w3.org/2000/svg","href",se.link),X.setAttributeNS("http://www.w3.org/2000/svg","rel","noopener"),p==="sandbox"?X.setAttributeNS("http://www.w3.org/2000/svg","target","_top"):se.linkTarget&&X.setAttributeNS("http://www.w3.org/2000/svg","target",se.linkTarget);const pe=de.insert(function(){return X},":first-child"),G=de.select(".label-container");G&&pe.append(function(){return G.node()});const xe=de.select(".label");xe&&pe.append(function(){return xe.node()})}}})}};function H7(i){var a={options:{directed:i.isDirected(),multigraph:i.isMultigraph(),compound:i.isCompound()},nodes:YQt(i),edges:XQt(i)};return Yf(i.graph())||(a.value=aUe(i.graph())),a}function YQt(i){return F0(i.nodes(),function(a){
`;break}case-3:{b=`\r
`;break}case-2:{b=a?" ":" ";break}case-1:{if(!a&&p)continue;b=" ";break}default:b=String.fromCharCode(v)}p=v===-2,d.push(b)}return d.join("")}const zZt=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:{null:[42,95]},contentInitial:{91:HJt},disable:{null:[]},document:{42:Q2,43:Q2,45:Q2,48:Q2,49:Q2,50:Q2,51:Q2,52:Q2,53:Q2,54:Q2,55:Q2,56:Q2,57:Q2,62:kVe},flow:{35:YJt,42:lJ,45:[OVe,lJ],60:ZJt,61:OVe,95:lJ,96:_Ve,126:_Ve},flowInitial:{[-2]:Xme,[-1]:Xme,32:Xme},insideSpan:{null:[Wme,NZt]},string:{38:CVe,92:TVe},text:{[-5]:Jme,[-4]:Jme,[-3]:Jme,33:mZt,38:CVe,42:Wme,60:[yJt,aZt],91:wZt,92:[KJt,TVe],93:Qme,95:Wme,96:OJt}},Symbol.toStringTag,{value:"Module"}));function qZt(i){const u=iJt([zZt,...(i||{}).extensions||[]]),d={defined:[],lazy:{},constructs:u,content:p(dJt),document:p(pJt),flow:p(IZt),string:p(PZt),text:p(BZt)};return d;function p(v){return b;function b(y){return RZt(d,v,y)}}}const BVe=/[\0\t\n\r]/g;function HZt(){let i=1,a="",u=!0,d;return p;function p(v,b,y){const E=[];let _,A,P,R,B;for(v=a+v.toString(b),P=0,a="",u&&(v.charCodeAt(0)===65279&&P++,u=void 0);P<v.length;){if(BVe.lastIndex=P,_=BVe.exec(v),R=_&&_.index!==void 0?_.index:v.length,B=v.charCodeAt(R),!_){a=v.slice(P);break}if(B===10&&P===R&&d)E.push(-3),d=void 0;else switch(d&&(E.push(-5),d=void 0),P<R&&(E.push(v.slice(P,R)),i+=R-P),B){case 0:{E.push(65533),i++;break}case 9:{for(A=Math.ceil(i/4)*4,E.push(-2);i++<A;)E.push(-1);break}case 10:{E.push(-4),i=1;break}default:d=!0,i=1}P=R+1}return y&&(d&&E.push(-5),a&&E.push(a),E.push(null)),E}}function UZt(i){for(;!AVe(i););return i}function FVe(i,a){const u=Number.parseInt(i,a);return u<9||u===11||u>13&&u<32||u>126&&u<160||u>55295&&u<57344||u>64975&&u<65008||(u&65535)===65535||(u&65535)===65534||u>1114111?"<22>":String.fromCharCode(u)}const VZt=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function GZt(i){return i.replace(VZt,KZt)}function KZt(i,a,u){if(a)return a;if(u.charCodeAt(0)===35){const p=u.charCodeAt(1),v=p===120||p===88;return FVe(u.slice(v?2:1),v?16:10)}return Yme(u)||i}function hJ(i){return!i||typeof i!="object"?"":"position"in i||"type"in i?RVe(i.position):"start"in i||"end"in i?RVe(i):"line"in i||"column"in i?Zme(i):""}function Zme(i){return jVe(i&&i.line)+":"+jVe(i&&i.column)}function RVe(i){return Zme(i&&i.start)+"-"+Zme(i&&i.end)}function jVe(i){return i&&typeof i=="number"?i:1}const $Ve={}.hasOwnProperty,zVe=function(i,a,u){return typeof a!="string"&&(u=a,a=void 0),WZt(u)(UZt(qZt(u).document().write(HZt()(i,a,!0))))};function WZt(i){const a={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:y(ia),autolinkProtocol:G,autolinkEmail:G,atxHeading:y(qr),blockQuote:y(Ze),characterEscape:G,characterReference:G,codeFenced:y(Dt),codeFencedFenceInfo:E,codeFencedFenceMeta:E,codeIndented:y(Dt,E),codeText:y(kt,E),codeTextData:G,data:G,codeFlowValue:G,definition:y(Nn),definitionDestinationString:E,definitionLabelString:E,definitionTitleString:E,emphasis:y(ht),hardBreakEscape:y(xt),hardBreakTrailing:y(xt),htmlFlow:y(Ri,E),htmlFlowData:G,htmlText:y(Ri,E),htmlTextData:G,image:y(wi),label:E,link:y(ia),listItem:y(mo),listItemValue:j,listOrdered:y(Hs,B),listUnordered:y(Hs),paragraph:y(Tr),reference:Tt,referenceString:E,resourceDestinationString:E,resourceTitleString:E,setextHeading:y(qr),strong:y(On),thematicBreak:y(zn)},exit:{atxHeading:A(),atxHeadingSequence:se,autolink:A(),autolinkEmail:Bt,autolinkProtocol:yt,blockQuote:A(),characterEscapeValue:xe,characterReferenceMarkerHexadecimal:Wt,characterReferenceMarkerNumeric:Wt,characterReferenceValue:un,codeFenced:A(oe),codeFencedFence:ie,codeFencedFenceInfo:W,codeFencedFenceMeta:ee,codeFlowValue:xe,codeIndented:A(be),codeText:A(Ie),codeTextData:xe,data:xe,definition:A(),definitionDestinationString:ne,definitionLabelString:ge,definitionTitleString:ae,emphasis:A(),hardBreakEscape:A(Be),hardBreakTrailing:A(Be),htmlFlow:A(Pe),htmlFlowData:xe,htmlText:A(je),htmlTextData:xe,image:A(Ce),label:Ke,labelText:ke,lineEnding:U,link:A(Se),listItem:A(),listOrdered:A(),listUnordered:A(),paragraph:
`);return ZM(a)}function QZt(i){const a=XZt(i),{children:u}=zVe(a),d=[[]];let p=0;function v(b,y="normal"){b.type==="text"?b.value.split(`
`).forEach((_,A)=>{A!==0&&(p++,d.push([])),_.split(" ").forEach(P=>{P&&d[p].push({content:P,type:y})})}):(b.type==="strong"||b.type==="emphasis")&&b.children.forEach(E=>{v(E,b.type)})}return u.forEach(b=>{b.type==="paragraph"&&b.children.forEach(y=>{v(y)})}),d}function JZt(i){const{children:a}=zVe(i);function u(d){return d.type==="text"?d.value.replace(/\n/g,"<br/>"):d.type==="strong"?`<strong>${d.children.map(u).join("")}</strong>`:d.type==="emphasis"?`<em>${d.children.map(u).join("")}</em>`:d.type==="paragraph"?`<p>${d.children.map(u).join("")}</p>`:`Unsupported markdown: ${d.type}`}return a.map(u).join("")}function ZZt(i){return Intl.Segmenter?[...new Intl.Segmenter().segment(i)].map(a=>a.segment):[...i]}function een(i,a){const u=ZZt(a.content);return UVe(i,[],u,a.type)}function UVe(i,a,u,d){if(u.length===0)return[{content:a.join(""),type:d},{content:"",type:d}];const[p,...v]=u,b=[...a,p];return i([{content:b.join(""),type:d}])?UVe(i,b,v,d):(a.length===0&&p&&(a.push(p),u.shift()),[{content:a.join(""),type:d},{content:u.join(""),type:d}])}function ten(i,a){if(i.some(({content:u})=>u.includes(`
`)))throw new Error("splitLineToFitWidth does not support newlines in the line");return eve(i,a)}function eve(i,a,u=[],d=[]){if(i.length===0)return d.length>0&&u.push(d),u.length>0?u:[];let p="";i[0].content===" "&&(p=" ",i.shift());const v=i.shift()??{content:" ",type:"normal"},b=[...d];if(p!==""&&b.push({content:p,type:"normal"}),b.push(v),a(b))return eve(i,a,u,b);if(d.length>0)u.push(d),i.unshift(v);else if(v.content){const[y,E]=een(a,v);u.push([y]),E.content&&i.unshift(E)}return eve(i,a,u)}function nen(i,a){a&&i.attr("style",a)}function ren(i,a,u,d,p=!1){const v=i.append("foreignObject"),b=v.append("xhtml:div"),y=a.label,E=a.isNode?"nodeLabel":"edgeLabel";b.html(bh(`
<span class="${E} ${d}" `+(a.labelStyle?'style="'+a.labelStyle+'"':"")+">"+y+"</span>",mh())),nen(b,a.labelStyle),b.style("display","table-cell"),b.style("white-space","nowrap"),b.style("max-width",u+"px"),b.attr("xmlns","http://www.w3.org/1999/xhtml"),p&&b.attr("class","labelBkg");let _=b.node().getBoundingClientRect();return _.width===u&&(b.style("display","table"),b.style("white-space","break-spaces"),b.style("width",u+"px"),_=b.node().getBoundingClientRect()),v.style("width",_.width),v.style("height",_.height),v.node()}function tve(i,a,u){return i.append("tspan").attr("class","text-outer-tspan").attr("x",0).attr("y",a*u-.1+"em").attr("dy",u+"em")}function ien(i,a,u){const d=i.append("text"),p=tve(d,1,a);nve(p,u);const v=p.node().getComputedTextLength();return d.remove(),v}function sen(i,a,u){var b;const d=i.append("text"),p=tve(d,1,a);nve(p,[{content:u,type:"normal"}]);const v=(b=p.node())==null?void 0:b.getBoundingClientRect();return v&&d.remove(),v}function aen(i,a,u,d=!1){const v=a.append("g"),b=v.insert("rect").attr("class","background"),y=v.append("text").attr("y","-10.1");let E=0;for(const _ of u){const A=R=>ien(v,1.1,R)<=i,P=A(_)?[_]:ten(_,A);for(const R of P){const B=tve(y,E,1.1);nve(B,R),E++}}if(d){const _=y.node().getBBox(),A=2;return b.attr("x",-A).attr("y",-A).attr("width",_.width+2*A).attr("height",_.height+2*A),v.node()}else return y.node()}function nve(i,a){i.text(""),a.forEach((u,d)=>{const p=i.append("tspan").attr("font-style",u.type==="emphasis"?"italic":"normal").attr("class","text-inner-tspan").attr("font-weight",u.type==="strong"?"bold":"normal");d===0?p.text(u.content):p.text(" "+u.content)})}const fJ=(i,a="",{style:u="",isTitle:d=!1,classes:p="",useHtmlLabels:v=!0,isNode:b=!0,width:y=200,addSvgBackground:E=!1}={})=>{if(Xe.info("createText",a,u,d,p,v,b,E),v){const _=JZt(a),A={isNode:b,label:uR(_).replace(/fa[blrs]?:fa-[\w-]+/g,R=>`<i class='${R.replace(":"," ")}'></i>`),labelStyle:u.replace("fill:","color:")};return ren(i,A,y,p,E)}else{const _=QZt(a);return aen(y,i,_,E)}},g1=async(i,a,u,d)=>{let p;const v=a.useHtmlLabels||h1(qt().flowchart.htmlLabels);u?p=u:p="node default";const b=i.insert("g").attr("class",p).attr("id",a.domId||a.id),y=b.insert("g").attr("class","label").attr("style",a.labelStyle);let E;a.labelText===void 0?E="":E=typeof a.labelText=="string"?a.labelText:a.labelText[0];const _=y.node();let A;a.labelType==="markdown"?A=fJ(y,bh(uR(E),qt()),{useHtmlLabels:v,width:a.width||qt().flowchart.wrappingWidth,classes:"markdown-node-label"}):A=_.appendChild(Y2(bh(uR(E),qt()),a.labelStyle,!1,d));let P=A.getBBox();const R=a.padding/2;if(h1(qt().flowchart.htmlLabels)){const B=A.children[0],j=Dr(A),W=B.getElementsByTagName("img");if(W){const ee=E.replace(/<img[^>]*>/g,"").trim()==="";await Promise.all([...W].map(ie=>new Promise(oe=>{function be(){if(ie.style.display="flex",ie.style.flexDirection="column",ee){const ge=qt().fontSize?qt().fontSize:window.getComputedStyle(document.body).fontSize,ae=5,ne=parseInt(ge,10)*ae+"px";ie.style.minWidth=ne,ie.style.maxWidth=ne}else ie.style.width="100%";oe(ie)}setTimeout(()=>{ie.complete&&be()}),ie.addEventListener("error",be),ie.addEventListener("load",be)})))}P=B.getBoundingClientRect(),j.attr("width",P.width),j.attr("height",P.height)}return v?y.attr("transform","translate("+-P.width/2+", "+-P.height/2+")"):y.attr("transform","translate(0, "+-P.height/2+")"),a.centerLabel&&y.attr("transform","translate("+-P.width/2+", "+-P.height/2+")"),y.insert("rect",":first-child"),{shapeSvg:b,bbox:P,halfPadding:R,label:y}},Gh=(i,a)=>{const u=a.node().getBBox();i.width=u.width,i.height=u.height};function s5(i,a,u,d){return i.insert("polygon",":first-child").attr("points",d.map(function(p){return p.x+","+p.y}).join(" ")).attr("class","label-container").attr("transform","translate("+-a/2+","+u/2+")")}let _o={},W3={},VVe={};const oen=()=>{W3={},VVe={},_o={}},dJ=(i,a)=>(Xe.trace("In isDescendant",a," ",i," = ",W3[a].includes(i)),!!W3[a].includes(i)),cen=(i,a)=>(Xe.info("Descendants of ",a," is ",W3[a]),Xe.info("Edge is ",i),i.v===a||i.w===a?!1:W3[a]?W3[a].includes(i
outsidePoint: ${JSON.stringify(a)}
insidePoint : ${JSON.stringify(u)}
node : x:${i.x} y:${i.y} w:${i.width} h:${i.height}`);const d=i.x,p=i.y,v=Math.abs(d-u.x),b=i.width/2;let y=u.x<a.x?b-v:b+v;const E=i.height/2,_=Math.abs(a.y-u.y),A=Math.abs(a.x-u.x);if(Math.abs(p-a.y)*b>Math.abs(d-a.x)*E){let P=u.y<a.y?a.y-E-p:p-E-a.y;y=A*P/_;const R={x:u.x<a.x?u.x+y:u.x-A+y,y:u.y<a.y?u.y+_-P:u.y-_+P};return y===0&&(R.x=a.x,R.y=a.y),A===0&&(R.x=a.x),_===0&&(R.y=a.y),Xe.debug(`abc89 topp/bott calc, Q ${_}, q ${P}, R ${A}, r ${y}`,R),R}else{u.x<a.x?y=a.x-b-d:y=d-b-a.x;let P=_*y/A,R=u.x<a.x?u.x+A-y:u.x-A+y,B=u.y<a.y?u.y+P:u.y-P;return Xe.debug(`sides calc abc89, Q ${_}, q ${P}, R ${A}, r ${y}`,{_x:R,_y:B}),y===0&&(R=a.x,B=a.y),A===0&&(R=a.x),_===0&&(B=a.y),{x:R,y:B}}},oGe=(i,a)=>{Xe.debug("abc88 cutPathAtIntersect",i,a);let u=[],d=i[0],p=!1;return i.forEach(v=>{if(!Uen(a,v)&&!p){const b=Ven(a,d,v);let y=!1;u.forEach(E=>{y=y||E.x===b.x&&E.y===b.y}),u.some(E=>E.x===b.x&&E.y===b.y)||u.push(b),p=!0}else d=v,p||u.push(v)}),u},cGe=function(i,a,u,d,p,v,b){let y=u.points;Xe.debug("abc88 InsertEdge: edge=",u,"e=",a);let E=!1;const _=v.node(a.v);var A=v.node(a.w);A!=null&&A.intersect&&(_!=null&&_.intersect)&&(y=y.slice(1,u.points.length-1),y.unshift(_.intersect(y[0])),y.push(A.intersect(y[y.length-1]))),u.toCluster&&(Xe.debug("to cluster abc88",d[u.toCluster]),y=oGe(u.points,d[u.toCluster].node),E=!0),u.fromCluster&&(Xe.debug("from cluster abc88",d[u.fromCluster]),y=oGe(y.reverse(),d[u.fromCluster].node).reverse(),E=!0);const P=y.filter(ge=>!Number.isNaN(ge.y));let R=VF;u.curve&&(p==="graph"||p==="flowchart")&&(R=u.curve);const{x:B,y:j}=rGe(u),W=E7().x(B).y(j).curve(R);let ee;switch(u.thickness){case"normal":ee="edge-thickness-normal";break;case"thick":ee="edge-thickness-thick";break;case"invisible":ee="edge-thickness-thick";break;default:ee=""}switch(u.pattern){case"solid":ee+=" edge-pattern-solid";break;case"dotted":ee+=" edge-pattern-dotted";break;case"dashed":ee+=" edge-pattern-dashed";break}const ie=i.append("path").attr("d",W(P)).attr("id",u.id).attr("class"," "+ee+(u.classes?" "+u.classes:"")).attr("style",u.style);let oe="";(qt().flowchart.arrowMarkerAbsolute||qt().state.arrowMarkerAbsolute)&&(oe=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,oe=oe.replace(/\(/g,"\\("),oe=oe.replace(/\)/g,"\\)")),iGe(ie,u,oe,b,p);let be={};return E&&(be.updatedPath=y),be.originalPath=u.points,be},uGe=async(i,a,u,d,p,v)=>{Xe.info("Graph in recursive render: XXX",H7(a),p);const b=a.graph().rankdir;Xe.trace("Dir in recursive render - dir:",b);const y=i.insert("g").attr("class","root");a.nodes()?Xe.info("Recursive render XXX",a.nodes()):Xe.info("No nodes found for",a),a.edges().length>0&&Xe.trace("Recursive edges",a.edge(a.edges()[0]));const E=y.insert("g").attr("class","clusters"),_=y.insert("g").attr("class","edgePaths"),A=y.insert("g").attr("class","edgeLabels"),P=y.insert("g").attr("class","nodes");await Promise.all(a.nodes().map(async function(j){const W=a.node(j);if(p!==void 0){const ee=JSON.parse(JSON.stringify(p.clusterData));Xe.info("Setting data for cluster XXX (",j,") ",ee,p),a.setNode(p.id,ee),a.parent(j)||(Xe.trace("Setting parent",j,p.id),a.setParent(j,p.id,ee))}if(Xe.info("(Insert) Node XXX"+j+": "+JSON.stringify(a.node(j))),W&&W.clusterNode){Xe.info("Cluster identified",j,W.width,a.node(j));const ee=await uGe(P,W.graph,u,d,a.node(j),v),ie=ee.elem;Gh(W,ie),W.diff=ee.diff||0,Xe.info("Node bounds (abc123)",j,W,W.width,W.x,W.y),Fen(ie,W),Xe.warn("Recursive render complete ",ie,W)}else a.children(j).length>0?(Xe.info("Cluster - the non recursive path XXX",j,W.id,W,a),Xe.info(FR(W.id,a)),_o[W.id]={id:FR(W.id,a),node:W}):(Xe.info("Node - the non recursive path",j,W.id,W),await pJ(P,a.node(j),b))})),a.edges().forEach(function(j){const W=a.edge(j.v,j.w,j.name);Xe.info("Edge "+j.v+" -> "+j.w+": "+JSON.stringify(j)),Xe.info("Edge "+j.v+" -> "+j.w+": ",j," ",JSON.stringify(a.edge(j))),Xe.info("Fix",_o,"ids:",j.v,j.w,"Translating: ",_o[j.v],_o[j.w]),sve(A,W)}),a.edges().forEach(function(j){Xe.info("Edge "+j.v+" -> "+j.w+": "+JSON.stringify(j))}),Xe.info("##########
`),qt()),y.style===void 0&&(R.style=R.style||"stroke: #333; stroke-width: 1.5px;fill:none;"),R.labelStyle=R.labelStyle.replace("color:","fill:"),R.id=_,R.classes="flowchart-link "+A+" "+P,a.setEdge(y.start,y.end,R,d)}},ove={setConf:Gen,addVertices:hGe,addEdges:fGe,getClasses:function(i,a){return a.db.getClasses()},draw:async function(i,a,u,d){Xe.info("Drawing flowchart");let p=d.db.getDirection();p===void 0&&(p="TD");const{securityLevel:v,flowchart:b}=qt(),y=b.nodeSpacing||50,E=b.rankSpacing||50;let _;v==="sandbox"&&(_=Dr("#i"+a));const A=Dr(v==="sandbox"?_.nodes()[0].contentDocument.body:"body"),P=v==="sandbox"?_.nodes()[0].contentDocument:document,R=new R0({multigraph:!0,compound:!0}).setGraph({rankdir:p,nodesep:y,ranksep:E,marginx:0,marginy:0}).setDefaultEdgeLabel(function(){return{}});let B;const j=d.db.getSubGraphs();Xe.info("Subgraphs - ",j);for(let ae=j.length-1;ae>=0;ae--)B=j[ae],Xe.info("Subgraph - ",B),d.db.addVertex(B.id,{text:B.title,type:B.labelType},"group",void 0,B.classes,B.dir);const W=d.db.getVertices(),ee=d.db.getEdges();Xe.info("Edges",ee);let ie=0;for(ie=j.length-1;ie>=0;ie--){B=j[ie],VBe("cluster").append("text");for(let ae=0;ae<B.nodes.length;ae++)Xe.info("Setting up subgraphs",B.nodes[ae],B.id),R.setParent(B.nodes[ae],B.id)}await hGe(W,R,a,A,P,d),await fGe(ee,R);const oe=A.select(`[id="${a}"]`),be=A.select("#"+a+" g");if(await ave(be,R,["point","circle","cross"],"flowchart",a),So.insertTitle(oe,"flowchartTitleText",b.titleTopMargin,d.db.getDiagramTitle()),x9(R,oe,b.diagramPadding,b.useMaxWidth),d.db.indexNodes("subGraph"+ie),!b.htmlLabels){const ae=P.querySelectorAll('[id="'+a+'"] .edgeLabel .label');for(const ne of ae){const se=ne.getBBox(),de=P.createElementNS("http://www.w3.org/2000/svg","rect");de.setAttribute("rx",0),de.setAttribute("ry",0),de.setAttribute("width",se.width),de.setAttribute("height",se.height),ne.insertBefore(de,ne.firstChild)}}Object.keys(W).forEach(function(ae){const ne=W[ae];if(ne.link){const se=Dr("#"+a+' [id="'+ae+'"]');if(se){const de=P.createElementNS("http://www.w3.org/2000/svg","a");de.setAttributeNS("http://www.w3.org/2000/svg","class",ne.classes.join(" ")),de.setAttributeNS("http://www.w3.org/2000/svg","href",ne.link),de.setAttributeNS("http://www.w3.org/2000/svg","rel","noopener"),v==="sandbox"?de.setAttributeNS("http://www.w3.org/2000/svg","target","_top"):ne.linkTarget&&de.setAttributeNS("http://www.w3.org/2000/svg","target",ne.linkTarget);const X=se.insert(function(){return de},":first-child"),pe=se.select(".label-container");pe&&X.append(function(){return pe.node()});const G=se.select(".label");G&&X.append(function(){return G.node()})}}})}},Ken=(i,a)=>{const u=XRe,d=u(i,"r"),p=u(i,"g"),v=u(i,"b");return _C(d,p,v,a)},dGe=i=>`.label {
font-family: ${i.fontFamily};
color: ${i.nodeTextColor||i.textColor};
}
.cluster-label text {
fill: ${i.titleColor};
}
.cluster-label span,p {
color: ${i.titleColor};
}
.label text,span,p {
fill: ${i.nodeTextColor||i.textColor};
color: ${i.nodeTextColor||i.textColor};
}
.node rect,
.node circle,
.node ellipse,
.node polygon,
.node path {
fill: ${i.mainBkg};
stroke: ${i.nodeBorder};
stroke-width: 1px;
}
.flowchart-label text {
text-anchor: middle;
}
// .flowchart-label .text-outer-tspan {
// text-anchor: middle;
// }
// .flowchart-label .text-inner-tspan {
// text-anchor: start;
// }
.node .katex path {
fill: #000;
stroke: #000;
stroke-width: 1px;
}
.node .label {
text-align: center;
}
.node.clickable {
cursor: pointer;
}
.arrowheadPath {
fill: ${i.arrowheadColor};
}
.edgePath .path {
stroke: ${i.lineColor};
stroke-width: 2.0px;
}
.flowchart-link {
stroke: ${i.lineColor};
fill: none;
}
.edgeLabel {
background-color: ${i.edgeLabelBackground};
rect {
opacity: 0.5;
background-color: ${i.edgeLabelBackground};
fill: ${i.edgeLabelBackground};
}
text-align: center;
}
/* For html labels only */
.labelBkg {
background-color: ${Ken(i.edgeLabelBackground,.5)};
// background-color:
}
.cluster rect {
fill: ${i.clusterBkg};
stroke: ${i.clusterBorder};
stroke-width: 1px;
}
.cluster text {
fill: ${i.titleColor};
}
.cluster span,p {
color: ${i.titleColor};
}
/* .cluster div {
color: ${i.titleColor};
} */
div.mermaidTooltip {
position: absolute;
text-align: center;
max-width: 200px;
padding: 2px;
font-family: ${i.fontFamily};
font-size: 12px;
background: ${i.tertiaryColor};
border: 1px solid ${i.border2};
border-radius: 2px;
pointer-events: none;
z-index: 100;
}
.flowchartTitleText {
text-anchor: middle;
font-size: 18px;
fill: ${i.textColor};
}
`,Wen=Object.freeze(Object.defineProperty({__proto__:null,diagram:{parser:lme,db:UC,renderer:ove,styles:dGe,init:i=>{i.flowchart||(i.flowchart={}),i.flowchart.arrowMarkerAbsolute=i.arrowMarkerAbsolute,WQt.setConf(i.flowchart),UC.clear(),UC.setGen("gen-1")}}},Symbol.toStringTag,{value:"Module"})),Yen=Object.freeze(Object.defineProperty({__proto__:null,diagram:{parser:lme,db:UC,renderer:ove,styles:dGe,init:i=>{i.flowchart||(i.flowchart={}),i.flowchart.arrowMarkerAbsolute=i.arrowMarkerAbsolute,c$t({flowchart:{arrowMarkerAbsolute:i.arrowMarkerAbsolute}}),ove.setConf(i.flowchart),UC.clear(),UC.setGen("gen-2")}}},Symbol.toStringTag,{value:"Module"}));var cve=function(){var i=function(de,X,pe,G){for(pe=pe||{},G=de.length;G--;pe[de[G]]=X);return pe},a=[6,8,10,20,22,24,26,27,28],u=[1,10],d=[1,11],p=[1,12],v=[1,13],b=[1,14],y=[1,15],E=[1,21],_=[1,22],A=[1,23],P=[1,24],R=[1,25],B=[6,8,10,13,15,18,19,20,22,24,26,27,28,41,42,43,44,45],j=[1,34],W=[27,28,46,47],ee=[41,42,43,44,45],ie=[17,34],oe=[1,54],be=[1,53],ge=[17,34,36,38],ae={trace:function(){},yy:{},symbols_:{error:2,start:3,ER_DIAGRAM:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NEWLINE:10,entityName:11,relSpec:12,":":13,role:14,BLOCK_START:15,attributes:16,BLOCK_STOP:17,SQS:18,SQE:19,title:20,title_value:21,acc_title:22,acc_title_value:23,acc_descr:24,acc_descr_value:25,acc_descr_multiline_value:26,ALPHANUM:27,ENTITY_NAME:28,attribute:29,attributeType:30,attributeName:31,attributeKeyTypeList:32,attributeComment:33,ATTRIBUTE_WORD:34,attributeKeyType:35,COMMA:36,ATTRIBUTE_KEY:37,COMMENT:38,cardinality:39,relType:40,ZERO_OR_ONE:41,ZERO_OR_MORE:42,ONE_OR_MORE:43,ONLY_ONE:44,MD_PARENT:45,NON_IDENTIFYING:46,IDENTIFYING:47,WORD:48,$accept:0,$end:1},terminals_:{2:"error",4:"ER_DIAGRAM",6:"EOF",8:"SPACE",10:"NEWLINE",13:":",15:"BLOCK_START",17:"BLOCK_STOP",18:"SQS",19:"SQE",20:"title",21:"title_value",22:"acc_title",23:"acc_title_value",24:"acc_descr",25:"acc_descr_value",26:"acc_descr_multiline_value",27:"ALPHANUM",28:"ENTITY_NAME",34:"ATTRIBUTE_WORD",36:"COMMA",37:"ATTRIBUTE_KEY",38:"COMMENT",41:"ZERO_OR_ONE",42:"ZERO_OR_MORE",43:"ONE_OR_MORE",44:"ONLY_ONE",45:"MD_PARENT",46:"NON_IDENTIFYING",47:"IDENTIFYING",48:"WORD"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[9,5],[9,4],[9,3],[9,1],[9,7],[9,6],[9,4],[9,2],[9,2],[9,2],[9,1],[11,1],[11,1],[16,1],[16,2],[29,2],[29,3],[29,3],[29,4],[30,1],[31,1],[32,1],[32,3],[35,1],[33,1],[12,3],[39,1],[39,1],[39,1],[39,1],[39,1],[40,1],[40,1],[14,1],[14,1],[14,1]],performAction:function(X,pe,G,xe,U,Be,Pe){var je=Be.length-1;switch(U){case 1:break;case 2:this.$=[];break;case 3:Be[je-1].push(Be[je]),this.$=Be[je-1];break;case 4:case 5:this.$=Be[je];break;case 6:case 7:this.$=[];break;case 8:xe.addEntity(Be[je-4]),xe.addEntity(Be[je-2]),xe.addRelationship(Be[je-4],Be[je],Be[je-2],Be[je-3]);break;case 9:xe.addEntity(Be[je-3]),xe.addAttributes(Be[je-3],Be[je-1]);break;case 10:xe.addEntity(Be[je-2]);break;case 11:xe.addEntity(Be[je]);break;case 12:xe.addEntity(Be[je-6],Be[je-4]),xe.addAttributes(Be[je-6],Be[je-1]);break;case 13:xe.addEntity(Be[je-5],Be[je-3]);break;case 14:xe.addEntity(Be[je-3],Be[je-1]);break;case 15:case 16:this.$=Be[je].trim(),xe.setAccTitle(this.$);break;case 17:case 18:this.$=Be[je].trim(),xe.setAccDescription(this.$);break;case 19:case 43:this.$=Be[je];break;case 20:case 41:case 42:this.$=Be[je].replace(/"/g,"");break;case 21:case 29:this.$=[Be[je]];break;case 22:Be[je].push(Be[je-1]),this.$=Be[je];break;case 23:this.$={attributeType:Be[je-1],attributeName:Be[je]};break;case 24:this.$={attributeType:Be[je-2],attributeName:Be[je-1],attributeKeyTypeList:Be[je]};break;case 25:this.$={attributeType:Be[je-2],attributeName:Be[je-1],attributeComment:Be[je]};break;case 26:this.$={attributeType:Be[je-3],attributeName:Be[je-2],attributeKeyTypeList:Be[je-1],attributeComment:Be[je]};break;case 27:case 28:case 31:this.$=Be[je];break;case 30:Be[je-2].push(Be[je]),this.$=Be[je-2];break;case 32:this.$=Be[je].replace(/"/g,"");break;case 33:this.$={cardA:Be[je],relType:Be[je-1],cardB:Be[je-2]};break;case 34:this.$=xe.Cardinality.ZER
`+zt.showPosition()+`
Expecting `+qr.join(", ")+", got '"+(this.terminals_[un]||un)+"'":xt="Parse error on line "+(Ie+1)+": Unexpected "+(un==ke?"end of input":"'"+(this.terminals_[un]||un)+"'"),this.parseError(xt,{text:zt.match,token:this.terminals_[un]||un,line:zt.yylineno,loc:Tt,expected:qr})}if(Bt[0]instanceof Array&&Bt.length>1)throw new Error("Parse Error: multiple actions possible at state: "+yt+", token: "+un);switch(Bt[0]){case 1:G.push(un),U.push(zt.yytext),Be.push(zt.yylloc),G.push(Bt[1]),un=null,Se=zt.yyleng,je=zt.yytext,Ie=zt.yylineno,Tt=zt.yylloc;break;case 2:if(Nn=this.productions_[Bt[1]][1],Dt.$=U[U.length-Nn],Dt._$={first_line:Be[Be.length-(Nn||1)].first_line,last_line:Be[Be.length-1].last_line,first_column:Be[Be.length-(Nn||1)].first_column,last_column:Be[Be.length-1].last_column},Et&&(Dt._$.range=[Be[Be.length-(Nn||1)].range[0],Be[Be.length-1].range[1]]),Ze=this.performAction.apply(Dt,[je,Se,Ie,Ne.yy,Bt[1],U,Be].concat(Ke)),typeof Ze<"u")return Ze;Nn&&(G=G.slice(0,-1*Nn*2),U=U.slice(0,-1*Nn),Be=Be.slice(0,-1*Nn)),G.push(this.productions_[Bt[1]][0]),U.push(Dt.$),Be.push(Dt._$),ht=Pe[G[G.length-2]][G[G.length-1]],G.push(ht);break;case 3:return!0}}return!0}},ne=function(){var de={EOF:1,parseError:function(pe,G){if(this.yy.parser)this.yy.parser.parseError(pe,G);else throw new Error(pe)},setInput:function(X,pe){return this.yy=pe||this.yy||{},this._input=X,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 X=this._input[0];this.yytext+=X,this.yyleng++,this.offset++,this.match+=X,this.matched+=X;var pe=X.match(/(?:\r\n?|\n).*/g);return pe?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),X},unput:function(X){var pe=X.length,G=X.split(/(?:\r\n?|\n)/g);this._input=X+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-pe),this.offset-=pe;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),G.length-1&&(this.yylineno-=G.length-1);var U=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:G?(G.length===xe.length?this.yylloc.first_column:0)+xe[xe.length-G.length].length-G[0].length:this.yylloc.first_column-pe},this.options.ranges&&(this.yylloc.range=[U[0],U[0]+this.yyleng-pe]),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(X){this.unput(this.match.slice(X))},pastInput:function(){var X=this.matched.substr(0,this.matched.length-this.match.length);return(X.length>20?"...":"")+X.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var X=this.match;return X.length<20&&(X+=this._input.substr(0,20-X.length)),(X.substr(0,20)+(X.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var X=this.pastInput(),pe=new Array(X.length+1).join("-");return X+this.upcomingInput()+`
`+pe+"^"},test_match:function(X,pe){var G,xe,U;if(this.options.backtrack_lexer&&(U={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(U.yylloc.range=this.yylloc.range.slice(0))),xe=X[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+X[0].length},this.yytext+=X[0],this.match+=X[0],this.matches=X,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(X[0].length),this.matched+=X[0],G=this.performAction.call(this,this.yy,this,pe,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),G)return G;if(this._backtrack){for(var Be in U)this[Be]=U[Be];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var X,pe,G,xe;this._more||(this.yytext="",this.match="");for(var U=this._currentRules(),Be=0;Be<U.length;Be++)if(G=this._input.match(this.rules[U[Be]]),G&&(!pe||G[0].length>pe[0].length)){if(pe=G,xe=Be,this.options.backtrack_lexer){if(X=this.test_match(G,U[Be]),X!==!1)return X;if(this._backtrack){pe=!1;continue}else return!1}else if(!this.options.flex)break}return pe?(X=this.test_match(pe,U[xe]),X!==!1?X:!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 pe=this.next();return pe||this.lex()},begin:function(pe){this.conditionStack.push(pe)},popState:function(){var pe=this.conditionStack.length-1;return pe>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(pe){return pe=this.conditionStack.length-1-Math.abs(pe||0),pe>=0?this.conditionStack[pe]:"INITIAL"},pushState:function(pe){this.begin(pe)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(pe,G,xe,U){switch(xe){case 0:return this.begin("acc_title"),22;case 1:return this.popState(),"acc_title_value";case 2:return this.begin("acc_descr"),24;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 10;case 8:break;case 9:return 8;case 10:return 28;case 11:return 48;case 12:return 4;case 13:return this.begin("block"),15;case 14:return 36;case 15:break;case 16:return 37;case 17:return 34;case 18:return 34;case 19:return 38;case 20:break;case 21:return this.popState(),17;case 22:return G.yytext[0];case 23:return 18;case 24:return 19;case 25:return 41;case 26:return 43;case 27:return 43;case 28:return 43;case 29:return 41;case 30:return 41;case 31:return 42;case 32:return 42;case 33:return 42;case 34:return 42;case 35:return 42;case 36:return 43;case 37:return 42;case 38:return 43;case 39:return 44;case 40:return 44;case 41:return 44;case 42:return 44;case 43:return 41;case 44:return 42;case 45:return 43;case 46:return 45;case 47:return 46;case 48:return 47;case 49:return 47;case 50:return 46;case 51:return 46;case 52:return 46;case 53:return 27;case 54:return G.yytext[0];case 55:return 6}},rules:[/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/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,/^(?:\[)/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,/^(?:\s*u\b)/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},block:{rules:[14,15,16,17,18,19,20,21,22],inclusive:!1},INITIAL:{rules:[0,2,4,7,8,9,10,11,12,13,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55],inclusive:!0}}};return de}();ae.lexer=ne;function se(){this.yy={}}return se.prototype=ae,ae.Parser=se,new se}();cve.parser=cve;const Xen=cve;let R9={},uve=[];const Qen={ZERO_OR_ONE:"ZERO_OR_ONE",ZERO_OR_MORE:"ZERO_OR_MORE",ONE_OR_MORE:"ONE_OR_MORE",ONLY_ONE:"ONLY_ONE",MD_PARENT:"MD_PARENT"},Jen={NON_IDENTIFYING:"NON_IDENTIFYING",IDENTIFYING:"IDENTIFYING"},gGe=function(i,a=void 0){return R9[i]===void 0?(R9[i]={attributes:[],alias:a},Xe.info("Added new entity :",i)):R9[i]&&!R9[i].alias&&a&&(R9[i].alias=a,Xe.info(`Add alias '${a}' to entity '${i}'`)),R9[i]},Zen={Cardinality:Qen,Identification:Jen,getConfig:()=>qt().er,addEntity:gGe,addAttributes:function(i,a){let u=gGe(i),d;for(d=a.length-1;d>=0;d--)u.attributes.push(a[d]),Xe.debug("Added attribute ",a[d].attributeName)},getEntities
.entityBox {
fill: ${i.mainBkg};
stroke: ${i.nodeBorder};
}
.attributeBoxOdd {
fill: ${i.attributeBackgroundColorOdd};
stroke: ${i.nodeBorder};
}
.attributeBoxEven {
fill: ${i.attributeBackgroundColorEven};
stroke: ${i.nodeBorder};
}
.relationshipLabelBox {
fill: ${i.tertiaryColor};
opacity: 0.7;
background-color: ${i.tertiaryColor};
rect {
opacity: 0.5;
}
}
.relationshipLine {
stroke: ${i.lineColor};
}
.entityTitleText {
text-anchor: middle;
font-size: 18px;
fill: ${i.textColor};
}
#MD_PARENT_START {
fill: #f5f5f5 !important;
stroke: ${i.lineColor} !important;
stroke-width: 1;
}
#MD_PARENT_END {
fill: #f5f5f5 !important;
stroke: ${i.lineColor} !important;
stroke-width: 1;
}
`}},Symbol.toStringTag,{value:"Module"}));var hve=function(){var i=function(ae,ne,se,de){for(se=se||{},de=ae.length;de--;se[ae[de]]=ne);return se},a=[1,3],u=[1,6],d=[1,4],p=[1,5],v=[2,5],b=[1,12],y=[5,7,13,19,21,23,24,26,28,31,37,40,47],E=[7,13,19,21,23,24,26,28,31,37,40],_=[7,12,13,19,21,23,24,26,28,31,37,40],A=[7,13,47],P=[1,42],R=[1,41],B=[7,13,29,32,35,38,47],j=[1,55],W=[1,56],ee=[1,57],ie=[7,13,32,35,42,47],oe={trace:function(){},yy:{},symbols_:{error:2,start:3,eol:4,GG:5,document:6,EOF:7,":":8,DIR:9,options:10,body:11,OPT:12,NL:13,line:14,statement:15,commitStatement:16,mergeStatement:17,cherryPickStatement:18,acc_title:19,acc_title_value:20,acc_descr:21,acc_descr_value:22,acc_descr_multiline_value:23,section:24,branchStatement:25,CHECKOUT:26,ref:27,BRANCH:28,ORDER:29,NUM:30,CHERRY_PICK:31,COMMIT_ID:32,STR:33,PARENT_COMMIT: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,ID:46,";":47,$accept:0,$end:1},terminals_:{2:"error",5:"GG",7:"EOF",8:":",9:"DIR",12:"OPT",13:"NL",19:"acc_title",20:"acc_title_value",21:"acc_descr",22:"acc_descr_value",23:"acc_descr_multiline_value",24:"section",26:"CHECKOUT",28:"BRANCH",29:"ORDER",30:"NUM",31:"CHERRY_PICK",32:"COMMIT_ID",33:"STR",34:"PARENT_COMMIT",35:"COMMIT_TAG",36:"EMPTYSTR",37:"MERGE",38:"COMMIT_TYPE",40:"COMMIT",42:"COMMIT_MSG",43:"NORMAL",44:"REVERSE",45:"HIGHLIGHT",46:"ID",47:";"},productions_:[0,[3,2],[3,3],[3,4],[3,5],[6,0],[6,2],[10,2],[10,1],[11,0],[11,2],[14,2],[14,1],[15,1],[15,1],[15,1],[15,2],[15,2],[15,1],[15,1],[15,1],[15,2],[25,2],[25,4],[18,3],[18,5],[18,5],[18,7],[18,7],[18,5],[18,5],[18,5],[18,7],[18,7],[18,7],[18,7],[17,2],[17,4],[17,4],[17,4],[17,6],[17,6],[17,6],[17,6],[17,6],[17,6],[17,8],[17,8],[17,8],[17,8],[17,8],[17,8],[16,2],[16,3],[16,3],[16,5],[16,5],[16,3],[16,5],[16,5],[16,5],[16,5],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,3],[16,5],[16,5],[16,5],[16,5],[16,5],[16,5],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,7],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[16,9],[41,0],[41,1],[39,1],[39,1],[39,1],[27,1],[27,1],[4,1],[4,1],[4,1]],performAction:function(ne,se,de,X,pe,G,xe){var U=G.length-1;switch(pe){case 2:return G[U];case 3:return G[U-1];case 4:return X.setDirection(G[U-3]),G[U-1];case 6:X.setOptions(G[U-1]),this.$=G[U];break;case 7:G[U-1]+=G[U],this.$=G[U-1];break;case 9:this.$=[];break;case 10:G[U-1].push(G[U]),this.$=G[U-1];break;case 11:this.$=G[U-1];break;case 16:this.$=G[U].trim(),X.setAccTitle(this.$);break;case 17:case 18:this.$=G[U].trim(),X.setAccDescription(this.$);break;case 19:X.addSection(G[U].substr(8)),this.$=G[U].substr(8);break;case 21:X.checkout(G[U]);break;case 22:X.branch(G[U]);break;case 23:X.branch(G[U-2],G[U]);break;case 24:X.cherryPick(G[U],"",void 0);break;case 25:X.cherryPick(G[U-2],"",void 0,G[U]);break;case 26:X.cherryPick(G[U-2],"",G[U]);break;case 27:X.cherryPick(G[U-4],"",G[U],G[U-2]);break;case 28:X.cherryPick(G[U-4],"",G[U-2],G[U]);break;case 29:X.cherryPick(G[U],"",G[U-2]);break;case 30:X.cherryPick(G[U],"","");break;case 31:X.cherryPick(G[U-2],"","");break;case 32:X.cherryPick(G[U-4],"","",G[U-2]);break;case 33:X.cherryPick(G[U-4],"","",G[U]);break;case 34:X.cherryPick(G[U-2],"",G[U-4],G[U]);break;case 35:X.cherryPick(G[U-2],"","",G[U]);break;case 36:X.merge(G[U],"","","");break;case 37:X.merge(G[U-2],G[U],"","");break;case 38:X.merge(G[U-2],"",G[U],"");break;case 39:X.merge(G[U-2],"","",G[U]);break;case 40:X.merge(G[U-4],G[U],"",G[U-2]);break;case 41:X.merge(G[U-4],"",G[U],G[U-2]);break;case 42:X.merge(G[U-4],"",G[U-2],G[U]);break;case 43:X.merge(G[U-4],G[U-2],G[U],"");break;case 44:X.merge(G[U-4],G[U-2],"",G[U]);break;case 45:X.merge(G[U-4],G[U],G[U-2],"");break;case 46:X.merge(G[U-6],G[U-4],G[U-2],G[U]);break;case 47:X.merge(G[U-6],G[U],G[U-4],G[U-2]);break;case 48:X.merge(G[U-6],G[U-4],G[U],G[U-2]);break;case 49:X.mer
`+Ce.showPosition()+`
Expecting `+kt.join(", ")+", got '"+(this.terminals_[Tt]||Tt)+"'":Nn="Parse error on line "+(Be+1)+": Unexpected "+(Tt==Ie?"end of input":"'"+(this.terminals_[Tt]||Tt)+"'"),this.parseError(Nn,{text:Ce.match,token:this.terminals_[Tt]||Tt,line:Ce.yylineno,loc:zt,expected:kt})}if(Wt[0]instanceof Array&&Wt.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Et+", token: "+Tt);switch(Wt[0]){case 1:de.push(Tt),pe.push(Ce.yytext),G.push(Ce.yylloc),de.push(Wt[1]),Tt=null,Pe=Ce.yyleng,U=Ce.yytext,Be=Ce.yylineno,zt=Ce.yylloc;break;case 2:if(Ze=this.productions_[Wt[1]][1],yt.$=pe[pe.length-Ze],yt._$={first_line:G[G.length-(Ze||1)].first_line,last_line:G[G.length-1].last_line,first_column:G[G.length-(Ze||1)].first_column,last_column:G[G.length-1].last_column},Ne&&(yt._$.range=[G[G.length-(Ze||1)].range[0],G[G.length-1].range[1]]),un=this.performAction.apply(yt,[U,Pe,Be,ke.yy,Wt[1],pe,G].concat(Se)),typeof un<"u")return un;Ze&&(de=de.slice(0,-1*Ze*2),pe=pe.slice(0,-1*Ze),G=G.slice(0,-1*Ze)),de.push(this.productions_[Wt[1]][0]),pe.push(yt.$),G.push(yt._$),Dt=xe[de[de.length-2]][de[de.length-1]],de.push(Dt);break;case 3:return!0}}return!0}},be=function(){var ae={EOF:1,parseError:function(se,de){if(this.yy.parser)this.yy.parser.parseError(se,de);else throw new Error(se)},setInput:function(ne,se){return this.yy=se||this.yy||{},this._input=ne,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 ne=this._input[0];this.yytext+=ne,this.yyleng++,this.offset++,this.match+=ne,this.matched+=ne;var se=ne.match(/(?:\r\n?|\n).*/g);return se?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),ne},unput:function(ne){var se=ne.length,de=ne.split(/(?:\r\n?|\n)/g);this._input=ne+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-se),this.offset-=se;var X=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),de.length-1&&(this.yylineno-=de.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:de?(de.length===X.length?this.yylloc.first_column:0)+X[X.length-de.length].length-de[0].length:this.yylloc.first_column-se},this.options.ranges&&(this.yylloc.range=[pe[0],pe[0]+this.yyleng-se]),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(ne){this.unput(this.match.slice(ne))},pastInput:function(){var ne=this.matched.substr(0,this.matched.length-this.match.length);return(ne.length>20?"...":"")+ne.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var ne=this.match;return ne.length<20&&(ne+=this._input.substr(0,20-ne.length)),(ne.substr(0,20)+(ne.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var ne=this.pastInput(),se=new Array(ne.length+1).join("-");return ne+this.upcomingInput()+`
`+se+"^"},test_match:function(ne,se){var de,X,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))),X=ne[0].match(/(?:\r\n?|\n).*/g),X&&(this.yylineno+=X.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:X?X[X.length-1].length-X[X.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+ne[0].length},this.yytext+=ne[0],this.match+=ne[0],this.matches=ne,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(ne[0].length),this.matched+=ne[0],de=this.performAction.call(this,this.yy,this,se,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),de)return de;if(this._backtrack){for(var G in pe)this[G]=pe[G];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var ne,se,de,X;this._more||(this.yytext="",this.match="");for(var pe=this._currentRules(),G=0;G<pe.length;G++)if(de=this._input.match(this.rules[pe[G]]),de&&(!se||de[0].length>se[0].length)){if(se=de,X=G,this.options.backtrack_lexer){if(ne=this.test_match(de,pe[G]),ne!==!1)return ne;if(this._backtrack){se=!1;continue}else return!1}else if(!this.options.flex)break}return se?(ne=this.test_match(se,pe[X]),ne!==!1?ne:!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 se=this.next();return se||this.lex()},begin:function(se){this.conditionStack.push(se)},popState:function(){var se=this.conditionStack.length-1;return se>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(se){return se=this.conditionStack.length-1-Math.abs(se||0),se>=0?this.conditionStack[se]:"INITIAL"},pushState:function(se){this.begin(se)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(se,de,X,pe){switch(X){case 0:return this.begin("acc_title"),19;case 1:return this.popState(),"acc_title_value";case 2:return this.begin("acc_descr"),21;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 13;case 8:break;case 9:break;case 10:return 5;case 11:return 40;case 12:return 32;case 13:return 38;case 14:return 42;case 15:return 43;case 16:return 44;case 17:return 45;case 18:return 35;case 19:return 28;case 20:return 29;case 21:return 37;case 22:return 31;case 23:return 34;case 24:return 26;case 25:return 9;case 26:return 9;case 27:return 8;case 28:return"CARET";case 29:this.begin("options");break;case 30:this.popState();break;case 31:return 12;case 32:return 36;case 33:this.begin("string");break;case 34:this.popState();break;case 35:return 33;case 36:return 30;case 37:return 46;case 38:return 7}},rules:[/^(?: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,/^(?:parent:)/i,/^(?:checkout(?=\s|$))/i,/^(?:LR\b)/i,/^(?:TB\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:[5,6],inclusive:!1},acc_descr:{rules:[3],inclusive:!1},acc_title:{rules:[1],inclusive:!1},options:{rules:[30,31],inclusive:!1},string:{rules:[34,35],inclusive:!1},INITIAL:{rules:[0,2,4,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,32,33,36,37,38,39],inclusive:!0}}};return ae}();oe.lexer=be;function ge(){this.yy={}}return ge.prototype=oe,oe.Parser=ge,new ge}();hve.parser=hve;const ktn=hve;let xJ=qt().gitGraph.mainBranchName,Ttn=qt().gitGraph.mainBranchOrder,b1={},$p=null,$R={};$R[xJ]={name:xJ,order:Ttn};let j0={};j0[xJ]=$p;let sd=xJ,vGe="LR",XC=0;function fve(){return $je({length:7})}function Etn(i,a){const u=Object.create(null);return i.reduce((d,p)=>{const v=a(p);return u[v]||(u[v]=!0,d.push(p)),d},[])}const Ctn=function(i){vGe=i};let wGe={};const Stn=function(i){Xe.debug("options str",i),i=i&&i.trim(),i=i||"{}";try{wGe=JSON.parse(i)}catch(a){Xe.error("error while parsing gitGraph options",a.message)}},_tn=function(){return wGe},Atn=function(i,a,u,d){Xe.debug("Entering commit:",i,a,u,d),a=oi.sanitizeText(a,qt()),i=oi.sanitizeText(i,qt()),d=oi.sanitizeText(d,qt());const p={id:a||XC+"-"+fve(),message:i,seq:XC++,type:u||ZD.NORMAL,tag:d||"",parents:$p==null?[]:[$p.id],branch:sd};$p=p,b1[p.id]=p,j0[sd]=p.id,Xe.debug("in pushCommit "+p.id)},Ltn=function(i,a){if(i=oi.sanitizeText(i,qt()),j0[i]===void 0)j0[i]=$p!=null?$p.id:null,$R[i]={name:i,order:a?parseInt(a,10):null},yGe(i),Xe.debug("in createBranch");else{let u=new Error('Trying to create an existing branch. (Help: Either use a new name if you want create a new branch or try using "checkout '+i+'")');throw u.h
${b-ne.width/2-4/2},${de+2}
${b-ne.width/2-4/2},${de-2}
${j-ne.width/2-4},${de-se-2}
${j+ne.width/2+4},${de-se-2}
${j+ne.width/2+4},${de+se+2}
${j-ne.width/2-4},${de+se+2}`),ge.attr("cx",b-ne.width/2+4/2).attr("cy",de).attr("r",1.5).attr("class","tag-hole"),$0==="TB"&&(be.attr("class","tag-label-bkg").attr("points",`
${ee},${b+2}
${ee},${b-2}
${ee+A},${b-se-2}
${ee+A+ne.width+4},${b-se-2}
${ee+A+ne.width+4},${b+se+2}
${ee+A},${b+se+2}`).attr("transform","translate(12,12) rotate(45, "+ee+","+b+")"),ge.attr("cx",ee+4/2).attr("cy",b).attr("transform","translate(12,12) rotate(45, "+ee+","+b+")"),ae.attr("x",ee+5).attr("y",b+3).attr("transform","translate(14,14) rotate(45, "+ee+","+b+")"))}}b+=P+A,b>qR&&(qR=b)})},Htn=(i,a,u,d,p)=>{const b=($0==="TB"?u.x<d.x:u.y<d.y)?a.branch:i.branch,y=_=>_.branch===b,E=_=>_.seq>i.seq&&_.seq<a.seq;return Object.values(p).some(_=>E(_)&&y(_))},HR=(i,a,u=0)=>{const d=i+Math.abs(i-a)/2;if(u>5)return d;if(kJ.every(b=>Math.abs(b-d)>=10))return kJ.push(d),d;const v=Math.abs(i-a);return HR(i,a-v/5,u+1)},Utn=(i,a,u,d)=>{const p=U7[a.id],v=U7[u.id],b=Htn(a,u,p,v,d);let y="",E="",_=0,A=0,P=J2[u.branch].index;u.type===ad.MERGE&&a.id!==u.parents[0]&&(P=J2[a.branch].index);let R;if(b){y="A 10 10, 0, 0, 0,",E="A 10 10, 0, 0, 1,",_=10,A=10;const B=p.y<v.y?HR(p.y,v.y):HR(v.y,p.y),j=p.x<v.x?HR(p.x,v.x):HR(v.x,p.x);$0==="TB"?p.x<v.x?R=`M ${p.x} ${p.y} L ${j-_} ${p.y} ${E} ${j} ${p.y+A} L ${j} ${v.y-_} ${y} ${j+A} ${v.y} L ${v.x} ${v.y}`:(P=J2[a.branch].index,R=`M ${p.x} ${p.y} L ${j+_} ${p.y} ${y} ${j} ${p.y+A} L ${j} ${v.y-_} ${E} ${j-A} ${v.y} L ${v.x} ${v.y}`):p.y<v.y?R=`M ${p.x} ${p.y} L ${p.x} ${B-_} ${y} ${p.x+A} ${B} L ${v.x-_} ${B} ${E} ${v.x} ${B+A} L ${v.x} ${v.y}`:(P=J2[a.branch].index,R=`M ${p.x} ${p.y} L ${p.x} ${B+_} ${E} ${p.x+A} ${B} L ${v.x-_} ${B} ${y} ${v.x} ${B-A} L ${v.x} ${v.y}`)}else y="A 20 20, 0, 0, 0,",E="A 20 20, 0, 0, 1,",_=20,A=20,$0==="TB"?(p.x<v.x&&(u.type===ad.MERGE&&a.id!==u.parents[0]?R=`M ${p.x} ${p.y} L ${p.x} ${v.y-_} ${y} ${p.x+A} ${v.y} L ${v.x} ${v.y}`:R=`M ${p.x} ${p.y} L ${v.x-_} ${p.y} ${E} ${v.x} ${p.y+A} L ${v.x} ${v.y}`),p.x>v.x&&(y="A 20 20, 0, 0, 0,",E="A 20 20, 0, 0, 1,",_=20,A=20,u.type===ad.MERGE&&a.id!==u.parents[0]?R=`M ${p.x} ${p.y} L ${p.x} ${v.y-_} ${E} ${p.x-A} ${v.y} L ${v.x} ${v.y}`:R=`M ${p.x} ${p.y} L ${v.x+_} ${p.y} ${y} ${v.x} ${p.y+A} L ${v.x} ${v.y}`),p.x===v.x&&(R=`M ${p.x} ${p.y} L ${v.x} ${v.y}`)):(p.y<v.y&&(u.type===ad.MERGE&&a.id!==u.parents[0]?R=`M ${p.x} ${p.y} L ${v.x-_} ${p.y} ${E} ${v.x} ${p.y+A} L ${v.x} ${v.y}`:R=`M ${p.x} ${p.y} L ${p.x} ${v.y-_} ${y} ${p.x+A} ${v.y} L ${v.x} ${v.y}`),p.y>v.y&&(u.type===ad.MERGE&&a.id!==u.parents[0]?R=`M ${p.x} ${p.y} L ${v.x-_} ${p.y} ${y} ${v.x} ${p.y-A} L ${v.x} ${v.y}`:R=`M ${p.x} ${p.y} L ${p.x} ${v.y+_} ${E} ${p.x+A} ${v.y} L ${v.x} ${v.y}`),p.y===v.y&&(R=`M ${p.x} ${p.y} L ${v.x} ${v.y}`));i.append("path").attr("d",R).attr("class","arrow arrow"+P%QC)},Vtn=(i,a)=>{const u=i.append("g").attr("class","commit-arrows");Object.keys(a).forEach(d=>{const p=a[d];p.parents&&p.parents.length>0&&p.parents.forEach(v=>{Utn(u,a[v],p,a)})})},Gtn=(i,a)=>{const u=qt().gitGraph,d=i.append("g");a.forEach((p,v)=>{const b=v%QC,y=J2[p.name].pos,E=d.append("line");E.attr("x1",0),E.attr("y1",y),E.attr("x2",qR),E.attr("y2",y),E.attr("class","branch branch"+b),$0==="TB"&&(E.attr("y1",30),E.attr("x1",y),E.attr("y2",qR),E.attr("x2",y)),kJ.push(y);let _=p.name;const A=EGe(_),P=d.insert("rect"),B=d.insert("g").attr("class","branchLabel").insert("g").attr("class","label branch-label"+b);B.node().appendChild(A);let j=A.getBBox();P.attr("class","branchLabelBkg label"+b).attr("rx",4).attr("ry",4).attr("x",-j.width-4-(u.rotateCommitLabel===!0?30:0)).attr("y",-j.height/2+8).attr("width",j.width+18).attr("height",j.height+4),B.attr("transform","translate("+(-j.width-14-(u.rotateCommitLabel===!0?30:0))+", "+(y-j.height/2-1)+")"),$0==="TB"&&(P.attr("x",y-j.width/2-10).attr("y",0),B.attr("transform","translate("+(y-j.width/2-5)+", 0)")),$0!=="TB"&&P.attr("transform","translate(-19, "+(y-j.height/2)+")")})},Ktn=Object.freeze(Object.defineProperty({__proto__:null,diagram:{parser:ktn,db:$tn,renderer:{draw:function(i,a,u,d){ztn();const p=qt(),v=p.gitGraph;Xe.debug("in gitgraph renderer",i+`
`,"id:",a,u),zR=d.db.getCommits();const b=d.db.getBranchesAsObjArray();$0=d.db.getDirection();const y=Dr(`[id="${a}"]`);let E=0;b.forEach((_,A)=>{const P=EGe(_.name),R=y.append("g"),B=R.insert("g").attr("class","branchLabel"),j=B.insert("g").attr("class","label branch-label");j.node().appendChild(P);let W=P.getBBox();J2[_.name]={pos:E,index:A},E+=50+(v.rotateCommitLabel?40:0)+($0==="TB"?W.width/2:0),j.remove(),B.remove(),R.remove()}),CGe(y,zR,!1),v.showBranches&&Gtn(y,b),Vtn(y,zR),CGe(y,zR,!0),So.insertTitle(y,"gitTitleText",v.titleTopMargin,d.db.getDiagramTitle()),C$e(void 0,y,v.diagramPadding,v.useMaxWidth??p.useMaxWidth)}},styles:i=>`
.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(a=>`
.branch-label${a} { fill: ${i["gitBranchLabel"+a]}; }
.commit${a} { stroke: ${i["git"+a]}; fill: ${i["git"+a]}; }
.commit-highlight${a} { stroke: ${i["gitInv"+a]}; fill: ${i["gitInv"+a]}; }
.label${a} { fill: ${i["git"+a]}; }
.arrow${a} { stroke: ${i["git"+a]}; }
`).join(`
`)}
.branch {
stroke-width: 1;
stroke: ${i.lineColor};
stroke-dasharray: 2;
}
.commit-label { font-size: ${i.commitLabelFontSize}; fill: ${i.commitLabelColor};}
.commit-label-bkg { font-size: ${i.commitLabelFontSize}; fill: ${i.commitLabelBackground}; opacity: 0.5; }
.tag-label { font-size: ${i.tagLabelFontSize}; fill: ${i.tagLabelColor};}
.tag-label-bkg { fill: ${i.tagLabelBackground}; stroke: ${i.tagLabelBorder}; }
.tag-hole { fill: ${i.textColor}; }
.commit-merge {
stroke: ${i.primaryColor};
fill: ${i.primaryColor};
}
.commit-reverse {
stroke: ${i.primaryColor};
fill: ${i.primaryColor};
stroke-width: 3;
}
.commit-highlight-outer {
}
.commit-highlight-inner {
stroke: ${i.primaryColor};
fill: ${i.primaryColor};
}
.arrow { stroke-width: 8; stroke-linecap: round; fill: none}
.gitTitleText {
text-anchor: middle;
font-size: 18px;
fill: ${i.textColor};
}
`}},Symbol.toStringTag,{value:"Module"}));var dve=function(){var i=function(G,xe,U,Be){for(U=U||{},Be=G.length;Be--;U[G[Be]]=xe);return U},a=[6,8,10,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,30,32,33,35,37],u=[1,25],d=[1,26],p=[1,27],v=[1,28],b=[1,29],y=[1,30],E=[1,31],_=[1,9],A=[1,10],P=[1,11],R=[1,12],B=[1,13],j=[1,14],W=[1,15],ee=[1,16],ie=[1,18],oe=[1,19],be=[1,20],ge=[1,21],ae=[1,22],ne=[1,24],se=[1,32],de={trace:function(){},yy:{},symbols_:{error:2,start:3,gantt:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NL:10,weekday:11,weekday_monday:12,weekday_tuesday:13,weekday_wednesday:14,weekday_thursday:15,weekday_friday:16,weekday_saturday:17,weekday_sunday:18,dateFormat:19,inclusiveEndDates:20,topAxis:21,axisFormat:22,tickInterval:23,excludes:24,includes:25,todayMarker:26,title:27,acc_title:28,acc_title_value:29,acc_descr:30,acc_descr_value:31,acc_descr_multiline_value:32,section:33,clickStatement:34,taskTxt:35,taskData:36,click:37,callbackname:38,callbackargs:39,href:40,clickStatementDebug:41,$accept:0,$end:1},terminals_:{2:"error",4:"gantt",6:"EOF",8:"SPACE",10:"NL",12:"weekday_monday",13:"weekday_tuesday",14:"weekday_wednesday",15:"weekday_thursday",16:"weekday_friday",17:"weekday_saturday",18:"weekday_sunday",19:"dateFormat",20:"inclusiveEndDates",21:"topAxis",22:"axisFormat",23:"tickInterval",24:"excludes",25:"includes",26:"todayMarker",27:"title",28:"acc_title",29:"acc_title_value",30:"acc_descr",31:"acc_descr_value",32:"acc_descr_multiline_value",33:"section",35:"taskTxt",36:"taskData",37:"click",38:"callbackname",39:"callbackargs",40:"href"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[11,1],[11,1],[11,1],[11,1],[11,1],[11,1],[11,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,2],[9,2],[9,1],[9,1],[9,1],[9,2],[34,2],[34,3],[34,3],[34,4],[34,3],[34,4],[34,2],[41,2],[41,3],[41,3],[41,4],[41,3],[41,4],[41,2]],performAction:function(xe,U,Be,Pe,je,Ie,Se){var Ce=Ie.length-1;switch(je){case 1:return Ie[Ce-1];case 2:this.$=[];break;case 3:Ie[Ce-1].push(Ie[Ce]),this.$=Ie[Ce-1];break;case 4:case 5:this.$=Ie[Ce];break;case 6:case 7:this.$=[];break;case 8:Pe.setWeekday("monday");break;case 9:Pe.setWeekday("tuesday");break;case 10:Pe.setWeekday("wednesday");break;case 11:Pe.setWeekday("thursday");break;case 12:Pe.setWeekday("friday");break;case 13:Pe.setWeekday("saturday");break;case 14:Pe.setWeekday("sunday");break;case 15:Pe.setDateFormat(Ie[Ce].substr(11)),this.$=Ie[Ce].substr(11);break;case 16:Pe.enableInclusiveEndDates(),this.$=Ie[Ce].substr(18);break;case 17:Pe.TopAxis(),this.$=Ie[Ce].substr(8);break;case 18:Pe.setAxisFormat(Ie[Ce].substr(11)),this.$=Ie[Ce].substr(11);break;case 19:Pe.setTickInterval(Ie[Ce].substr(13)),this.$=Ie[Ce].substr(13);break;case 20:Pe.setExcludes(Ie[Ce].substr(9)),this.$=Ie[Ce].substr(9);break;case 21:Pe.setIncludes(Ie[Ce].substr(9)),this.$=Ie[Ce].substr(9);break;case 22:Pe.setTodayMarker(Ie[Ce].substr(12)),this.$=Ie[Ce].substr(12);break;case 24:Pe.setDiagramTitle(Ie[Ce].substr(6)),this.$=Ie[Ce].substr(6);break;case 25:this.$=Ie[Ce].trim(),Pe.setAccTitle(this.$);break;case 26:case 27:this.$=Ie[Ce].trim(),Pe.setAccDescription(this.$);break;case 28:Pe.addSection(Ie[Ce].substr(8)),this.$=Ie[Ce].substr(8);break;case 30:Pe.addTask(Ie[Ce-1],Ie[Ce]),this.$="task";break;case 31:this.$=Ie[Ce-1],Pe.setClickEvent(Ie[Ce-1],Ie[Ce],null);break;case 32:this.$=Ie[Ce-2],Pe.setClickEvent(Ie[Ce-2],Ie[Ce-1],Ie[Ce]);break;case 33:this.$=Ie[Ce-2],Pe.setClickEvent(Ie[Ce-2],Ie[Ce-1],null),Pe.setLink(Ie[Ce-2],Ie[Ce]);break;case 34:this.$=Ie[Ce-3],Pe.setClickEvent(Ie[Ce-3],Ie[Ce-2],Ie[Ce-1]),Pe.setLink(Ie[Ce-3],Ie[Ce]);break;case 35:this.$=Ie[Ce-2],Pe.setClickEvent(Ie[Ce-2],Ie[Ce],null),Pe.setLink(Ie[Ce-2],Ie[Ce-1]);break;case 36:this.$=Ie[Ce-3],Pe.setClickEvent(Ie[Ce-3],Ie[Ce-1],Ie[Ce]),Pe.setLink(Ie[Ce-3],Ie[Ce-2]);break;case 37:this.$=Ie[Ce-1],Pe.setLink(Ie[Ce-1],Ie[Ce]);break;case 38:case 44:this.$=Ie[Ce-1]+" "+Ie[Ce];break;case 39:case 40:case 42:this.$=Ie[Ce-2]+" "+Ie[Ce-1]+" "+Ie[Ce];break;case 41:case 43:this.$=Ie[Ce-3]+" "+Ie[Ce-2]+" "+Ie[Ce-1]+" "+Ie[Ce];break}},tabl
`+Tt.showPosition()+`
Expecting `+wi.join(", ")+", got '"+(this.terminals_[Ze]||Ze)+"'":ia="Parse error on line "+(ke+1)+": Unexpected "+(Ze==Ne?"end of input":"'"+(this.terminals_[Ze]||Ze)+"'"),this.parseError(ia,{text:Tt.match,token:this.terminals_[Ze]||Ze,line:Tt.yylineno,loc:un,expected:wi})}if(kt[0]instanceof Array&&kt.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Dt+", token: "+Ze);switch(kt[0]){case 1:Be.push(Ze),je.push(Tt.yytext),Ie.push(Tt.yylloc),Be.push(kt[1]),Ze=null,Ke=Tt.yyleng,Ce=Tt.yytext,ke=Tt.yylineno,un=Tt.yylloc;break;case 2:if(xt=this.productions_[kt[1]][1],ht.$=je[je.length-xt],ht._$={first_line:Ie[Ie.length-(xt||1)].first_line,last_line:Ie[Ie.length-1].last_line,first_column:Ie[Ie.length-(xt||1)].first_column,last_column:Ie[Ie.length-1].last_column},yt&&(ht._$.range=[Ie[Ie.length-(xt||1)].range[0],Ie[Ie.length-1].range[1]]),Nn=this.performAction.apply(ht,[Ce,Ke,ke,Et.yy,kt[1],je,Ie].concat(pn)),typeof Nn<"u")return Nn;xt&&(Be=Be.slice(0,-1*xt*2),je=je.slice(0,-1*xt),Ie=Ie.slice(0,-1*xt)),Be.push(this.productions_[kt[1]][0]),je.push(ht.$),Ie.push(ht._$),Ri=Se[Be[Be.length-2]][Be[Be.length-1]],Be.push(Ri);break;case 3:return!0}}return!0}},X=function(){var G={EOF:1,parseError:function(U,Be){if(this.yy.parser)this.yy.parser.parseError(U,Be);else throw new Error(U)},setInput:function(xe,U){return this.yy=U||this.yy||{},this._input=xe,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 xe=this._input[0];this.yytext+=xe,this.yyleng++,this.offset++,this.match+=xe,this.matched+=xe;var U=xe.match(/(?:\r\n?|\n).*/g);return U?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),xe},unput:function(xe){var U=xe.length,Be=xe.split(/(?:\r\n?|\n)/g);this._input=xe+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-U),this.offset-=U;var Pe=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),Be.length-1&&(this.yylineno-=Be.length-1);var je=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===Pe.length?this.yylloc.first_column:0)+Pe[Pe.length-Be.length].length-Be[0].length:this.yylloc.first_column-U},this.options.ranges&&(this.yylloc.range=[je[0],je[0]+this.yyleng-U]),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(xe){this.unput(this.match.slice(xe))},pastInput:function(){var xe=this.matched.substr(0,this.matched.length-this.match.length);return(xe.length>20?"...":"")+xe.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var xe=this.match;return xe.length<20&&(xe+=this._input.substr(0,20-xe.length)),(xe.substr(0,20)+(xe.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var xe=this.pastInput(),U=new Array(xe.length+1).join("-");return xe+this.upcomingInput()+`
`+U+"^"},test_match:function(xe,U){var Be,Pe,je;if(this.options.backtrack_lexer&&(je={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&&(je.yylloc.range=this.yylloc.range.slice(0))),Pe=xe[0].match(/(?:\r\n?|\n).*/g),Pe&&(this.yylineno+=Pe.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:Pe?Pe[Pe.length-1].length-Pe[Pe.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+xe[0].length},this.yytext+=xe[0],this.match+=xe[0],this.matches=xe,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(xe[0].length),this.matched+=xe[0],Be=this.performAction.call(this,this.yy,this,U,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),Be)return Be;if(this._backtrack){for(var Ie in je)this[Ie]=je[Ie];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var xe,U,Be,Pe;this._more||(this.yytext="",this.match="");for(var je=this._currentRules(),Ie=0;Ie<je.length;Ie++)if(Be=this._input.match(this.rules[je[Ie]]),Be&&(!U||Be[0].length>U[0].length)){if(U=Be,Pe=Ie,this.options.backtrack_lexer){if(xe=this.test_match(Be,je[Ie]),xe!==!1)return xe;if(this._backtrack){U=!1;continue}else return!1}else if(!this.options.flex)break}return U?(xe=this.test_match(U,je[Pe]),xe!==!1?xe:!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 U=this.next();return U||this.lex()},begin:function(U){this.conditionStack.push(U)},popState:function(){var U=this.conditionStack.length-1;return U>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(U){return U=this.conditionStack.length-1-Math.abs(U||0),U>=0?this.conditionStack[U]:"INITIAL"},pushState:function(U){this.begin(U)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(U,Be,Pe,je){switch(Pe){case 0:return this.begin("open_directive"),"open_directive";case 1:return this.begin("acc_title"),28;case 2:return this.popState(),"acc_title_value";case 3:return this.begin("acc_descr"),30;case 4:return this.popState(),"acc_descr_value";case 5:this.begin("acc_descr_multiline");break;case 6:this.popState();break;case 7:return"acc_descr_multiline_value";case 8:break;case 9:break;case 10:break;case 11:return 10;case 12:break;case 13:break;case 14:this.begin("href");break;case 15:this.popState();break;case 16:return 40;case 17:this.begin("callbackname");break;case 18:this.popState();break;case 19:this.popState(),this.begin("callbackargs");break;case 20:return 38;case 21:this.popState();break;case 22:return 39;case 23:this.begin("click");break;case 24:this.popState();break;case 25:return 37;case 26:return 4;case 27:return 19;case 28:return 20;case 29:return 21;case 30:return 22;case 31:return 23;case 32:return 25;case 33:return 24;case 34:return 26;case 35:return 12;case 36:return 13;case 37:return 14;case 38:return 15;case 39:return 16;case 40:return 17;case 41:return 18;case 42:return"date";case 43:return 27;case 44:return"accDescription";case 45:return 33;case 46:return 35;case 47:return 36;case 48:return":";case 49:return 6;case 50:return"INVALID"}},rules:[/^(?:%%\{)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:%%(?!\{)*[^\n]*)/i,/^(?:[^\}]%%*[^\n]*)/i,/^(?:%%*[^\n]*[\n]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:%[^\n]*)/i,/^(?:href[\s]+["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:call[\s]+)/i,/^(?:\([\s]*\))/i,/^(?:\()/i,/^(?:[^(]*)/i,/^(?:\))/i,/^(?:[^)]*)/i,/^(?:click[\s]+)/i,/^(?:[\s\n])/i,/^(?:[^\s\n]*)/i,/^(?:gantt\b)/i,/^(?:dateFormat\s[^#\n;]+)/i,/^(?:inclusiveEndDates\b)/i,/^(?:topAxis\b)/i,/^(?:axisFormat\s[^#\n;]+)/i,/^(?:tickInterval\s[^#\n;]+)/i,/^(?:includes\s[^#\n;]+)/i,/^(?:excludes\s[^#\n;]+)/i,/^(?:todayMarker\s[^\n;]+)/i,/^(?:weekday\s+monday\b)/i,/^(?:weekday\s+tuesday\b)/i,/^(?:weekday\s+wednesday\b)/i,/^(?:weekday\s+thursday\b)/i,/^(?:weekday\s+friday\b)/i,/^(?:weekday\s+saturday\b)/i,/^(?:weekday\s+sunday\b)/i,/^(?:\d\d\d\d-\d\d-\d\d\b)/i,/^(?:title\s[^\n]+)/i,/^(?:accDescription\s[^#\n;]+)/i,/^(?:section\s[^\n]+)/i,/^(?:[^:\n]+)/i,/^(?::[^#\n;]+)/i,/^(?::)/i,/^(?:$)/i,/^(?:.)/i],conditions:{acc_descr_multiline:{rules:[6,7],inclusive:!1},acc_descr:{rules:[4],inclusive:!1},acc_title:{rules:[2],inclusive:!1},callbackargs:{rules:[21,22],inclusive:!1},callbackname:{rules:[18,19,20],inclusive:!1},href:{rules:[15,16],inclusive:!1},click:{rules:[24,25],inclusive:!1},INITIAL:{rules:[0,1,3,5,8,9,10,11,12,13,14,17,23,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50],inclusive:!0}}};return G}();de.lexer=X;function pe(){this.yy={}}return pe.prototype=de,de.Parser=pe,new pe}();dve.parser=dve;const Wtn=dve;var SGe={exports:{}};(function(i,a){(function(u,d){i.exports=d()})(Dg,function(){var u="day";return function(d,p,v){var b=function(_){return _.add(4-_.isoWeekday(),u)},y=p.prototype;y.isoWeekYear=function(){return b(this).year()},y.isoWeek=function(_){if(!this.$utils().u(_))return this.add(7*(_-this.isoWeek()),u);var A,P,R,B,j=b(this),W=(A=this.isoWeekYear(),P=this.$u,R=(P?v.utc:v)().year(A).startOf("year"),B=4-R.isoWe
.mermaid-main-font {
font-family: var(--mermaid-font-family, "trebuchet ms", verdana, arial, sans-serif);
}
.exclude-range {
fill: ${i.excludeBkgColor};
}
.section {
stroke: none;
opacity: 0.2;
}
.section0 {
fill: ${i.sectionBkgColor};
}
.section2 {
fill: ${i.sectionBkgColor2};
}
.section1,
.section3 {
fill: ${i.altSectionBkgColor};
opacity: 0.2;
}
.sectionTitle0 {
fill: ${i.titleColor};
}
.sectionTitle1 {
fill: ${i.titleColor};
}
.sectionTitle2 {
fill: ${i.titleColor};
}
.sectionTitle3 {
fill: ${i.titleColor};
}
.sectionTitle {
text-anchor: start;
font-family: var(--mermaid-font-family, "trebuchet ms", verdana, arial, sans-serif);
}
/* Grid and axis */
.grid .tick {
stroke: ${i.gridColor};
opacity: 0.8;
shape-rendering: crispEdges;
}
.grid .tick text {
font-family: ${i.fontFamily};
fill: ${i.textColor};
}
.grid path {
stroke-width: 0;
}
/* Today line */
.today {
fill: none;
stroke: ${i.todayLineColor};
stroke-width: 2px;
}
/* Task styling */
/* Default task */
.task {
stroke-width: 2;
}
.taskText {
text-anchor: middle;
font-family: var(--mermaid-font-family, "trebuchet ms", verdana, arial, sans-serif);
}
.taskTextOutsideRight {
fill: ${i.taskTextDarkColor};
text-anchor: start;
font-family: var(--mermaid-font-family, "trebuchet ms", verdana, arial, sans-serif);
}
.taskTextOutsideLeft {
fill: ${i.taskTextDarkColor};
text-anchor: end;
}
/* Special case clickable */
.task.clickable {
cursor: pointer;
}
.taskText.clickable {
cursor: pointer;
fill: ${i.taskTextClickableColor} !important;
font-weight: bold;
}
.taskTextOutsideLeft.clickable {
cursor: pointer;
fill: ${i.taskTextClickableColor} !important;
font-weight: bold;
}
.taskTextOutsideRight.clickable {
cursor: pointer;
fill: ${i.taskTextClickableColor} !important;
font-weight: bold;
}
/* Specific task settings for the sections*/
.taskText0,
.taskText1,
.taskText2,
.taskText3 {
fill: ${i.taskTextColor};
}
.task0,
.task1,
.task2,
.task3 {
fill: ${i.taskBkgColor};
stroke: ${i.taskBorderColor};
}
.taskTextOutside0,
.taskTextOutside2
{
fill: ${i.taskTextOutsideColor};
}
.taskTextOutside1,
.taskTextOutside3 {
fill: ${i.taskTextOutsideColor};
}
/* Active task */
.active0,
.active1,
.active2,
.active3 {
fill: ${i.activeTaskBkgColor};
stroke: ${i.activeTaskBorderColor};
}
.activeText0,
.activeText1,
.activeText2,
.activeText3 {
fill: ${i.taskTextDarkColor} !important;
}
/* Completed task */
.done0,
.done1,
.done2,
.done3 {
stroke: ${i.doneTaskBorderColor};
fill: ${i.doneTaskBkgColor};
stroke-width: 2;
}
.doneText0,
.doneText1,
.doneText2,
.doneText3 {
fill: ${i.taskTextDarkColor} !important;
}
/* Tasks on the critical line */
.crit0,
.crit1,
.crit2,
.crit3 {
stroke: ${i.critBorderColor};
fill: ${i.critBkgColor};
stroke-width: 2;
}
.activeCrit0,
.activeCrit1,
.activeCrit2,
.activeCrit3 {
stroke: ${i.critBorderColor};
fill: ${i.activeTaskBkgColor};
stroke-width: 2;
}
.doneCrit0,
.doneCrit1,
.doneCrit2,
.doneCrit3 {
stroke: ${i.critBorderColor};
fill: ${i.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: ${i.taskTextDarkColor} !important;
}
.activeCritText0,
.activeCritText1,
.activeCritText2,
.activeCritText3 {
fill: ${i.taskTextDarkColor} !important;
}
.titleText {
text-anchor: middle;
font-size: 18px;
fill: ${i.titleColor||i.textColor};
font-family: var(--mermaid-font-family, "trebuchet ms", verdana, arial, sans-serif);
}
`}},Symbol.toStringTag,{value:"Module"}));var Sve=function(){var i=function(v,b,y,E){for(y=y||{},E=v.length;E--;y[v[E]]=b);return y},a=[6,9,10],u={trace:function(){},yy:{},symbols_:{error:2,start:3,info:4,document:5,EOF:6,line:7,statement:8,NL:9,showInfo:10,$accept:0,$end:1},terminals_:{2:"error",4:"info",6:"EOF",9:"NL",10:"showInfo"},productions_:[0,[3,3],[5,0],[5,2],[7,1],[7,1],[8,1]],performAction:function(b,y,E,_,A,P,R){switch(P.length-1,A){case 1:return _;case 4:break;case 6:_.setInfo(!0);break}},table:[{3:1,4:[1,2]},{1:[3]},i(a,[2,2],{5:3}),{6:[1,4],7:5,8:6,9:[1,7],10:[1,8]},{1:[2,1]},i(a,[2,3]),i(a,[2,4]),i(a,[2,5]),i(a,[2,6])],defaultActions:{4:[2,1]},parseError:function(b,y){if(y.recoverable)this.trace(b);else{var E=new Error(b);throw E.hash=y,E}},parse:function(b){var y=this,E=[0],_=[],A=[null],P=[],R=this.table,B="",j=0,W=0,ee=2,ie=1,oe=P.slice.call(arguments,1),be=Object.create(this.lexer),ge={yy:{}};for(var ae in this.yy)Object.prototype.hasOwnProperty.call(this.yy,ae)&&(ge.yy[ae]=this.yy[ae]);be.setInput(b,ge.yy),ge.yy.lexer=be,ge.yy.parser=this,typeof be.yylloc>"u"&&(be.yylloc={});var ne=be.yylloc;P.push(ne);var se=be.options&&be.options.ranges;typeof ge.yy.parseError=="function"?this.parseError=ge.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function de(){var Ce;return Ce=_.pop()||be.lex()||ie,typeof Ce!="number"&&(Ce instanceof Array&&(_=Ce,Ce=_.pop()),Ce=y.symbols_[Ce]||Ce),Ce}for(var X,pe,G,xe,U={},Be,Pe,je,Ie;;){if(pe=E[E.length-1],this.defaultActions[pe]?G=this.defaultActions[pe]:((X===null||typeof X>"u")&&(X=de()),G=R[pe]&&R[pe][X]),typeof G>"u"||!G.length||!G[0]){var Se="";Ie=[];for(Be in R[pe])this.terminals_[Be]&&Be>ee&&Ie.push("'"+this.terminals_[Be]+"'");be.showPosition?Se="Parse error on line "+(j+1)+`:
`+be.showPosition()+`
Expecting `+Ie.join(", ")+", got '"+(this.terminals_[X]||X)+"'":Se="Parse error on line "+(j+1)+": Unexpected "+(X==ie?"end of input":"'"+(this.terminals_[X]||X)+"'"),this.parseError(Se,{text:be.match,token:this.terminals_[X]||X,line:be.yylineno,loc:ne,expected:Ie})}if(G[0]instanceof Array&&G.length>1)throw new Error("Parse Error: multiple actions possible at state: "+pe+", token: "+X);switch(G[0]){case 1:E.push(X),A.push(be.yytext),P.push(be.yylloc),E.push(G[1]),X=null,W=be.yyleng,B=be.yytext,j=be.yylineno,ne=be.yylloc;break;case 2:if(Pe=this.productions_[G[1]][1],U.$=A[A.length-Pe],U._$={first_line:P[P.length-(Pe||1)].first_line,last_line:P[P.length-1].last_line,first_column:P[P.length-(Pe||1)].first_column,last_column:P[P.length-1].last_column},se&&(U._$.range=[P[P.length-(Pe||1)].range[0],P[P.length-1].range[1]]),xe=this.performAction.apply(U,[B,W,j,ge.yy,G[1],A,P].concat(oe)),typeof xe<"u")return xe;Pe&&(E=E.slice(0,-1*Pe*2),A=A.slice(0,-1*Pe),P=P.slice(0,-1*Pe)),E.push(this.productions_[G[1]][0]),A.push(U.$),P.push(U._$),je=R[E[E.length-2]][E[E.length-1]],E.push(je);break;case 3:return!0}}return!0}},d=function(){var v={EOF:1,parseError:function(y,E){if(this.yy.parser)this.yy.parser.parseError(y,E);else throw new Error(y)},setInput:function(b,y){return this.yy=y||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 y=b.match(/(?:\r\n?|\n).*/g);return y?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),b},unput:function(b){var y=b.length,E=b.split(/(?:\r\n?|\n)/g);this._input=b+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-y),this.offset-=y;var _=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),E.length-1&&(this.yylineno-=E.length-1);var A=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:E?(E.length===_.length?this.yylloc.first_column:0)+_[_.length-E.length].length-E[0].length:this.yylloc.first_column-y},this.options.ranges&&(this.yylloc.range=[A[0],A[0]+this.yyleng-y]),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(),y=new Array(b.length+1).join("-");return b+this.upcomingInput()+`
`+y+"^"},test_match:function(b,y){var E,_,A;if(this.options.backtrack_lexer&&(A={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&&(A.yylloc.range=this.yylloc.range.slice(0))),_=b[0].match(/(?:\r\n?|\n).*/g),_&&(this.yylineno+=_.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:_?_[_.length-1].length-_[_.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+b[0].length},this.yytext+=b[0],this.match+=b[0],this.matches=b,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(b[0].length),this.matched+=b[0],E=this.performAction.call(this,this.yy,this,y,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),E)return E;if(this._backtrack){for(var P in A)this[P]=A[P];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var b,y,E,_;this._more||(this.yytext="",this.match="");for(var A=this._currentRules(),P=0;P<A.length;P++)if(E=this._input.match(this.rules[A[P]]),E&&(!y||E[0].length>y[0].length)){if(y=E,_=P,this.options.backtrack_lexer){if(b=this.test_match(E,A[P]),b!==!1)return b;if(this._backtrack){y=!1;continue}else return!1}else if(!this.options.flex)break}return y?(b=this.test_match(y,A[_]),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 y=this.next();return y||this.lex()},begin:function(y){this.conditionStack.push(y)},popState:function(){var y=this.conditionStack.length-1;return y>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(y){return y=this.conditionStack.length-1-Math.abs(y||0),y>=0?this.conditionStack[y]:"INITIAL"},pushState:function(y){this.begin(y)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(y,E,_,A){switch(_){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 v}();u.lexer=d;function p(){this.yy={}}return p.prototype=u,u.Parser=p,new p}();Sve.parser=Sve;const Fnn=Sve,$Ge={info:!1};let _ve=$Ge.info;const Rnn=Object.freeze(Object.defineProperty({__proto__:null,diagram:{parser:Fnn,db:{clear:()=>{_ve=$Ge.info},setInfo:i=>{_ve=i},getInfo:()=>_ve},renderer:{draw:(i,a,u)=>{Xe.debug(`rendering info diagram
`+i);const d=dR(a);Fg(d,100,400,!0),d.append("g").append("text").attr("x",100).attr("y",40).attr("class","version").attr("font-size",32).style("text-anchor","middle").text(`v${u}`)}}}},Symbol.toStringTag,{value:"Module"}));var Ave=function(){var i=function(be,ge,ae,ne){for(ae=ae||{},ne=be.length;ne--;ae[be[ne]]=ge);return ae},a=[1,3],u=[1,4],d=[1,5],p=[1,6],v=[1,10,12,14,16,18,19,20,21,22],b=[2,4],y=[1,5,10,12,14,16,18,19,20,21,22],E=[20,21,22],_=[2,7],A=[1,12],P=[1,13],R=[1,14],B=[1,15],j=[1,16],W=[1,17],ee={trace:function(){},yy:{},symbols_:{error:2,start:3,eol:4,PIE:5,document:6,showData:7,line:8,statement:9,txt:10,value:11,title:12,title_value:13,acc_title:14,acc_title_value:15,acc_descr:16,acc_descr_value:17,acc_descr_multiline_value:18,section:19,NEWLINE:20,";":21,EOF:22,$accept:0,$end:1},terminals_:{2:"error",5:"PIE",7:"showData",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:"NEWLINE",21:";",22:"EOF"},productions_:[0,[3,2],[3,2],[3,3],[6,0],[6,2],[8,2],[9,0],[9,2],[9,2],[9,2],[9,2],[9,1],[9,1],[4,1],[4,1],[4,1]],performAction:function(ge,ae,ne,se,de,X,pe){var G=X.length-1;switch(de){case 3:se.setShowData(!0);break;case 6:this.$=X[G-1];break;case 8:se.addSection(X[G-1],se.cleanupValue(X[G]));break;case 9:this.$=X[G].trim(),se.setDiagramTitle(this.$);break;case 10:this.$=X[G].trim(),se.setAccTitle(this.$);break;case 11:case 12:this.$=X[G].trim(),se.setAccDescription(this.$);break;case 13:se.addSection(X[G].substr(8)),this.$=X[G].substr(8);break}},table:[{3:1,4:2,5:a,20:u,21:d,22:p},{1:[3]},{3:7,4:2,5:a,20:u,21:d,22:p},i(v,b,{6:8,7:[1,9]}),i(y,[2,14]),i(y,[2,15]),i(y,[2,16]),{1:[2,1]},i(E,_,{8:10,9:11,1:[2,2],10:A,12:P,14:R,16:B,18:j,19:W}),i(v,b,{6:18}),i(v,[2,5]),{4:19,20:u,21:d,22:p},{11:[1,20]},{13:[1,21]},{15:[1,22]},{17:[1,23]},i(E,[2,12]),i(E,[2,13]),i(E,_,{8:10,9:11,1:[2,3],10:A,12:P,14:R,16:B,18:j,19:W}),i(v,[2,6]),i(E,[2,8]),i(E,[2,9]),i(E,[2,10]),i(E,[2,11])],defaultActions:{7:[2,1]},parseError:function(ge,ae){if(ae.recoverable)this.trace(ge);else{var ne=new Error(ge);throw ne.hash=ae,ne}},parse:function(ge){var ae=this,ne=[0],se=[],de=[null],X=[],pe=this.table,G="",xe=0,U=0,Be=2,Pe=1,je=X.slice.call(arguments,1),Ie=Object.create(this.lexer),Se={yy:{}};for(var Ce in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Ce)&&(Se.yy[Ce]=this.yy[Ce]);Ie.setInput(ge,Se.yy),Se.yy.lexer=Ie,Se.yy.parser=this,typeof Ie.yylloc>"u"&&(Ie.yylloc={});var ke=Ie.yylloc;X.push(ke);var Ke=Ie.options&&Ie.options.ranges;typeof Se.yy.parseError=="function"?this.parseError=Se.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function zt(){var kt;return kt=se.pop()||Ie.lex()||Pe,typeof kt!="number"&&(kt instanceof Array&&(se=kt,kt=se.pop()),kt=ae.symbols_[kt]||kt),kt}for(var Ne,pn,Tt,Et,Wt={},un,yt,Bt,Ze;;){if(pn=ne[ne.length-1],this.defaultActions[pn]?Tt=this.defaultActions[pn]:((Ne===null||typeof Ne>"u")&&(Ne=zt()),Tt=pe[pn]&&pe[pn][Ne]),typeof Tt>"u"||!Tt.length||!Tt[0]){var Dt="";Ze=[];for(un in pe[pn])this.terminals_[un]&&un>Be&&Ze.push("'"+this.terminals_[un]+"'");Ie.showPosition?Dt="Parse error on line "+(xe+1)+`:
`+Ie.showPosition()+`
Expecting `+Ze.join(", ")+", got '"+(this.terminals_[Ne]||Ne)+"'":Dt="Parse error on line "+(xe+1)+": Unexpected "+(Ne==Pe?"end of input":"'"+(this.terminals_[Ne]||Ne)+"'"),this.parseError(Dt,{text:Ie.match,token:this.terminals_[Ne]||Ne,line:Ie.yylineno,loc:ke,expected:Ze})}if(Tt[0]instanceof Array&&Tt.length>1)throw new Error("Parse Error: multiple actions possible at state: "+pn+", token: "+Ne);switch(Tt[0]){case 1:ne.push(Ne),de.push(Ie.yytext),X.push(Ie.yylloc),ne.push(Tt[1]),Ne=null,U=Ie.yyleng,G=Ie.yytext,xe=Ie.yylineno,ke=Ie.yylloc;break;case 2:if(yt=this.productions_[Tt[1]][1],Wt.$=de[de.length-yt],Wt._$={first_line:X[X.length-(yt||1)].first_line,last_line:X[X.length-1].last_line,first_column:X[X.length-(yt||1)].first_column,last_column:X[X.length-1].last_column},Ke&&(Wt._$.range=[X[X.length-(yt||1)].range[0],X[X.length-1].range[1]]),Et=this.performAction.apply(Wt,[G,U,xe,Se.yy,Tt[1],de,X].concat(je)),typeof Et<"u")return Et;yt&&(ne=ne.slice(0,-1*yt*2),de=de.slice(0,-1*yt),X=X.slice(0,-1*yt)),ne.push(this.productions_[Tt[1]][0]),de.push(Wt.$),X.push(Wt._$),Bt=pe[ne[ne.length-2]][ne[ne.length-1]],ne.push(Bt);break;case 3:return!0}}return!0}},ie=function(){var be={EOF:1,parseError:function(ae,ne){if(this.yy.parser)this.yy.parser.parseError(ae,ne);else throw new Error(ae)},setInput:function(ge,ae){return this.yy=ae||this.yy||{},this._input=ge,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 ge=this._input[0];this.yytext+=ge,this.yyleng++,this.offset++,this.match+=ge,this.matched+=ge;var ae=ge.match(/(?:\r\n?|\n).*/g);return ae?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),ge},unput:function(ge){var ae=ge.length,ne=ge.split(/(?:\r\n?|\n)/g);this._input=ge+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-ae),this.offset-=ae;var se=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),ne.length-1&&(this.yylineno-=ne.length-1);var 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:ne?(ne.length===se.length?this.yylloc.first_column:0)+se[se.length-ne.length].length-ne[0].length:this.yylloc.first_column-ae},this.options.ranges&&(this.yylloc.range=[de[0],de[0]+this.yyleng-ae]),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(ge){this.unput(this.match.slice(ge))},pastInput:function(){var ge=this.matched.substr(0,this.matched.length-this.match.length);return(ge.length>20?"...":"")+ge.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var ge=this.match;return ge.length<20&&(ge+=this._input.substr(0,20-ge.length)),(ge.substr(0,20)+(ge.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var ge=this.pastInput(),ae=new Array(ge.length+1).join("-");return ge+this.upcomingInput()+`
`+ae+"^"},test_match:function(ge,ae){var ne,se,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))),se=ge[0].match(/(?:\r\n?|\n).*/g),se&&(this.yylineno+=se.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:se?se[se.length-1].length-se[se.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+ge[0].length},this.yytext+=ge[0],this.match+=ge[0],this.matches=ge,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(ge[0].length),this.matched+=ge[0],ne=this.performAction.call(this,this.yy,this,ae,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),ne)return ne;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 ge,ae,ne,se;this._more||(this.yytext="",this.match="");for(var de=this._currentRules(),X=0;X<de.length;X++)if(ne=this._input.match(this.rules[de[X]]),ne&&(!ae||ne[0].length>ae[0].length)){if(ae=ne,se=X,this.options.backtrack_lexer){if(ge=this.test_match(ne,de[X]),ge!==!1)return ge;if(this._backtrack){ae=!1;continue}else return!1}else if(!this.options.flex)break}return ae?(ge=this.test_match(ae,de[se]),ge!==!1?ge:!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 ae=this.next();return ae||this.lex()},begin:function(ae){this.conditionStack.push(ae)},popState:function(){var ae=this.conditionStack.length-1;return ae>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(ae){return ae=this.conditionStack.length-1-Math.abs(ae||0),ae>=0?this.conditionStack[ae]:"INITIAL"},pushState:function(ae){this.begin(ae)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(ae,ne,se,de){switch(se){case 0:break;case 1:break;case 2:return 20;case 3:break;case 4:break;case 5:return this.begin("title"),12;case 6:return this.popState(),"title_value";case 7:return this.begin("acc_title"),14;case 8:return this.popState(),"acc_title_value";case 9:return this.begin("acc_descr"),16;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"txt";case 17:return 5;case 18:return 7;case 19:return"value";case 20:return 22}},rules:[/^(?:%%(?!\{)[^\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:[12,13],inclusive:!1},acc_descr:{rules:[10],inclusive:!1},acc_title:{rules:[8],inclusive:!1},title:{rules:[6],inclusive:!1},string:{rules:[15,16],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,7,9,11,14,17,18,19,20],inclusive:!0}}};return be}();ee.lexer=ie;function oe(){this.yy={}}return oe.prototype=ee,ee.Parser=oe,new oe}();Ave.parser=Ave;const jnn=Ave,zGe=nh.pie,SJ={sections:{},showData:!1,config:zGe};let _J=SJ.sections,Lve=SJ.showData;const $nn=structuredClone(zGe),znn={getConfig:()=>structuredClone($nn),clear:()=>{_J=structuredClone(SJ.sections),Lve=SJ.showData,Rg()},setDiagramTitle:pm,getDiagramTitle:Op,setAccTitle:jg,getAccTitle:Mp,setAccDescription:Dp,getAccDescription:Ip,addSection:(i,a)=>{i=bh(i,qt()),_J[i]===void 0&&(_J[i]=a,Xe.debug(`added new section: ${i}, with value: ${a}`))},getSections:()=>_J,cleanupValue:i=>(i.substring(0,1)===":"&&(i=i.substring(1).trim()),Number(i.trim())),setShowData:i=>{Lve=i},getShowData:()=>Lve},qnn=i=>`
.pieCircle{
stroke: ${i.pieStrokeColor};
stroke-width : ${i.pieStrokeWidth};
opacity : ${i.pieOpacity};
}
.pieOuterCircle{
stroke: ${i.pieOuterStrokeColor};
stroke-width: ${i.pieOuterStrokeWidth};
fill: none;
}
.pieTitleText {
text-anchor: middle;
font-size: ${i.pieTitleTextSize};
fill: ${i.pieTitleTextColor};
font-family: ${i.fontFamily};
}
.slice {
font-family: ${i.fontFamily};
fill: ${i.pieSectionTextColor};
font-size:${i.pieSectionTextSize};
// fill: white;
}
.legend text {
fill: ${i.pieLegendTextColor};
font-family: ${i.fontFamily};
font-size: ${i.pieLegendTextSize};
}
`,Hnn=i=>{const a=Object.entries(i).map(d=>({label:d[0],value:d[1]})).sort((d,p)=>p.value-d.value);return nPt().value(d=>d.value)(a)},Unn=Object.freeze(Object.defineProperty({__proto__:null,diagram:{parser:jnn,db:znn,renderer:{draw:(i,a,u,d)=>{Xe.debug(`rendering pie chart
`+i);const p=d.db,v=qt(),b=cR(p.getConfig(),v.pie),y=40,E=18,_=4,A=450,P=A,R=dR(a),B=R.append("g"),j=p.getSections();B.attr("transform","translate("+P/2+","+A/2+")");const{themeVariables:W}=v;let[ee]=PC(W.pieOuterStrokeWidth);ee??(ee=2);const ie=b.textPosition,oe=Math.min(P,A)/2-y,be=hD().innerRadius(0).outerRadius(oe),ge=hD().innerRadius(oe*ie).outerRadius(oe*ie);B.append("circle").attr("cx",0).attr("cy",0).attr("r",oe+ee/2).attr("class","pieOuterCircle");const ae=Hnn(j),ne=[W.pie1,W.pie2,W.pie3,W.pie4,W.pie5,W.pie6,W.pie7,W.pie8,W.pie9,W.pie10,W.pie11,W.pie12],se=PF(ne);B.selectAll("mySlices").data(ae).enter().append("path").attr("d",be).attr("fill",xe=>se(xe.data.label)).attr("class","pieCircle");let de=0;Object.keys(j).forEach(xe=>{de+=j[xe]}),B.selectAll("mySlices").data(ae).enter().append("text").text(xe=>(xe.data.value/de*100).toFixed(0)+"%").attr("transform",xe=>"translate("+ge.centroid(xe)+")").style("text-anchor","middle").attr("class","slice"),B.append("text").text(p.getDiagramTitle()).attr("x",0).attr("y",-(A-50)/2).attr("class","pieTitleText");const X=B.selectAll(".legend").data(se.domain()).enter().append("g").attr("class","legend").attr("transform",(xe,U)=>{const Be=E+_,Pe=Be*se.domain().length/2,je=12*E,Ie=U*Be-Pe;return"translate("+je+","+Ie+")"});X.append("rect").attr("width",E).attr("height",E).style("fill",se).style("stroke",se),X.data(ae).append("text").attr("x",E+_).attr("y",E-_).text(xe=>{const{label:U,value:Be}=xe.data;return p.getShowData()?`${U} [${Be}]`:U});const pe=Math.max(...X.selectAll("text").nodes().map(xe=>(xe==null?void 0:xe.getBoundingClientRect().width)??0)),G=P+y+E+_+pe;R.attr("viewBox",`0 0 ${G} ${A}`),Fg(R,A,G,b.useMaxWidth)}},styles:qnn}},Symbol.toStringTag,{value:"Module"}));var Mve=function(){var i=function(Tt,Et,Wt,un){for(Wt=Wt||{},un=Tt.length;un--;Wt[Tt[un]]=Et);return Wt},a=[1,3],u=[1,4],d=[1,5],p=[1,6],v=[1,7],b=[1,5,13,15,17,19,20,25,27,28,29,30,31,32,33,34,37,38,40,41,42,43,44,45,46,47,48,49,50],y=[1,5,6,13,15,17,19,20,25,27,28,29,30,31,32,33,34,37,38,40,41,42,43,44,45,46,47,48,49,50],E=[32,33,34],_=[2,7],A=[1,13],P=[1,17],R=[1,18],B=[1,19],j=[1,20],W=[1,21],ee=[1,22],ie=[1,23],oe=[1,24],be=[1,25],ge=[1,26],ae=[1,27],ne=[1,30],se=[1,31],de=[1,32],X=[1,33],pe=[1,34],G=[1,35],xe=[1,36],U=[1,37],Be=[1,38],Pe=[1,39],je=[1,40],Ie=[1,41],Se=[1,42],Ce=[1,57],ke=[1,58],Ke=[5,22,26,32,33,34,40,41,42,43,44,45,46,47,48,49,50,51],zt={trace:function(){},yy:{},symbols_:{error:2,start:3,eol:4,SPACE:5,QUADRANT:6,document:7,line:8,statement:9,axisDetails:10,quadrantDetails:11,points: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,text:21,point_start:22,point_x:23,point_y:24,"X-AXIS":25,"AXIS-TEXT-DELIMITER":26,"Y-AXIS":27,QUADRANT_1:28,QUADRANT_2:29,QUADRANT_3:30,QUADRANT_4:31,NEWLINE:32,SEMI:33,EOF:34,alphaNumToken:35,textNoTagsToken:36,STR:37,MD_STR:38,alphaNum:39,PUNCTUATION:40,AMP:41,NUM:42,ALPHA:43,COMMA:44,PLUS:45,EQUALS:46,MULT:47,DOT:48,BRKT:49,UNDERSCORE:50,MINUS:51,$accept:0,$end:1},terminals_:{2:"error",5:"SPACE",6:"QUADRANT",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",22:"point_start",23:"point_x",24:"point_y",25:"X-AXIS",26:"AXIS-TEXT-DELIMITER",27:"Y-AXIS",28:"QUADRANT_1",29:"QUADRANT_2",30:"QUADRANT_3",31:"QUADRANT_4",32:"NEWLINE",33:"SEMI",34:"EOF",37:"STR",38:"MD_STR",40:"PUNCTUATION",41:"AMP",42:"NUM",43:"ALPHA",44:"COMMA",45:"PLUS",46:"EQUALS",47:"MULT",48:"DOT",49:"BRKT",50:"UNDERSCORE",51:"MINUS"},productions_:[0,[3,2],[3,2],[3,2],[7,0],[7,2],[8,2],[9,0],[9,2],[9,1],[9,1],[9,1],[9,2],[9,2],[9,2],[9,1],[9,1],[12,4],[10,4],[10,3],[10,2],[10,4],[10,3],[10,2],[11,2],[11,2],[11,2],[11,2],[4,1],[4,1],[4,1],[21,1],[21,2],[21,1],[21,1],[39,1],[39,2],[35,1],[35,1],[35,1],[35,1],[35,1],[35,1],[35,1],[35,1],[35,1],[35,1],[35,1],[36,1],[36,1],[36,1]],performAction:function(Et,Wt,un,yt,Bt,Ze,Dt){var kt=Ze.length-1;switch(Bt){case 12:this.$=Ze[kt].trim(),yt.setDiagramTitle(this.$);break;case 13:this.
`+wi.showPosition()+`
Expecting `+Oo.join(", ")+", got '"+(this.terminals_[Rn]||Rn)+"'":No="Parse error on line "+(Nn+1)+": Unexpected "+(Rn==xt?"end of input":"'"+(this.terminals_[Rn]||Rn)+"'"),this.parseError(No,{text:wi.match,token:this.terminals_[Rn]||Rn,line:wi.yylineno,loc:mo,expected:Oo})}if(Ct[0]instanceof Array&&Ct.length>1)throw new Error("Parse Error: multiple actions possible at state: "+zn+", token: "+Rn);switch(Ct[0]){case 1:un.push(Rn),Bt.push(wi.yytext),Ze.push(wi.yylloc),un.push(Ct[1]),Rn=null,ht=wi.yyleng,kt=wi.yytext,Nn=wi.yylineno,mo=wi.yylloc;break;case 2:if(Ln=this.productions_[Ct[1]][1],on.$=Bt[Bt.length-Ln],on._$={first_line:Ze[Ze.length-(Ln||1)].first_line,last_line:Ze[Ze.length-1].last_line,first_column:Ze[Ze.length-(Ln||1)].first_column,last_column:Ze[Ze.length-1].last_column},Tr&&(on._$.range=[Ze[Ze.length-(Ln||1)].range[0],Ze[Ze.length-1].range[1]]),gt=this.performAction.apply(on,[kt,ht,Nn,ia.yy,Ct[1],Bt,Ze].concat(Ri)),typeof gt<"u")return gt;Ln&&(un=un.slice(0,-1*Ln*2),Bt=Bt.slice(0,-1*Ln),Ze=Ze.slice(0,-1*Ln)),un.push(this.productions_[Ct[1]][0]),Bt.push(on.$),Ze.push(on._$),Io=Dt[un[un.length-2]][un[un.length-1]],un.push(Io);break;case 3:return!0}}return!0}},Ne=function(){var Tt={EOF:1,parseError:function(Wt,un){if(this.yy.parser)this.yy.parser.parseError(Wt,un);else throw new Error(Wt)},setInput:function(Et,Wt){return this.yy=Wt||this.yy||{},this._input=Et,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 Et=this._input[0];this.yytext+=Et,this.yyleng++,this.offset++,this.match+=Et,this.matched+=Et;var Wt=Et.match(/(?:\r\n?|\n).*/g);return Wt?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),Et},unput:function(Et){var Wt=Et.length,un=Et.split(/(?:\r\n?|\n)/g);this._input=Et+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-Wt),this.offset-=Wt;var yt=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),un.length-1&&(this.yylineno-=un.length-1);var Bt=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:un?(un.length===yt.length?this.yylloc.first_column:0)+yt[yt.length-un.length].length-un[0].length:this.yylloc.first_column-Wt},this.options.ranges&&(this.yylloc.range=[Bt[0],Bt[0]+this.yyleng-Wt]),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(Et){this.unput(this.match.slice(Et))},pastInput:function(){var Et=this.matched.substr(0,this.matched.length-this.match.length);return(Et.length>20?"...":"")+Et.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var Et=this.match;return Et.length<20&&(Et+=this._input.substr(0,20-Et.length)),(Et.substr(0,20)+(Et.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var Et=this.pastInput(),Wt=new Array(Et.length+1).join("-");return Et+this.upcomingInput()+`
`+Wt+"^"},test_match:function(Et,Wt){var un,yt,Bt;if(this.options.backtrack_lexer&&(Bt={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&&(Bt.yylloc.range=this.yylloc.range.slice(0))),yt=Et[0].match(/(?:\r\n?|\n).*/g),yt&&(this.yylineno+=yt.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:yt?yt[yt.length-1].length-yt[yt.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+Et[0].length},this.yytext+=Et[0],this.match+=Et[0],this.matches=Et,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(Et[0].length),this.matched+=Et[0],un=this.performAction.call(this,this.yy,this,Wt,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),un)return un;if(this._backtrack){for(var Ze in Bt)this[Ze]=Bt[Ze];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var Et,Wt,un,yt;this._more||(this.yytext="",this.match="");for(var Bt=this._currentRules(),Ze=0;Ze<Bt.length;Ze++)if(un=this._input.match(this.rules[Bt[Ze]]),un&&(!Wt||un[0].length>Wt[0].length)){if(Wt=un,yt=Ze,this.options.backtrack_lexer){if(Et=this.test_match(un,Bt[Ze]),Et!==!1)return Et;if(this._backtrack){Wt=!1;continue}else return!1}else if(!this.options.flex)break}return Wt?(Et=this.test_match(Wt,Bt[yt]),Et!==!1?Et:!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 Wt=this.next();return Wt||this.lex()},begin:function(Wt){this.conditionStack.push(Wt)},popState:function(){var Wt=this.conditionStack.length-1;return Wt>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(Wt){return Wt=this.conditionStack.length-1-Math.abs(Wt||0),Wt>=0?this.conditionStack[Wt]:"INITIAL"},pushState:function(Wt){this.begin(Wt)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(Wt,un,yt,Bt){switch(yt){case 0:break;case 1:break;case 2:return 32;case 3:break;case 4:return this.begin("title"),13;case 5:return this.popState(),"title_value";case 6:return this.begin("acc_title"),15;case 7:return this.popState(),"acc_title_value";case 8:return this.begin("acc_descr"),17;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 25;case 14:return 27;case 15:return 26;case 16:return 28;case 17:return 29;case 18:return 30;case 19:return 31;case 20:this.begin("md_string");break;case 21:return"MD_STR";case 22:this.popState();break;case 23:this.begin("string");break;case 24:this.popState();break;case 25:return"STR";case 26:return this.begin("point_start"),22;case 27:return this.begin("point_x"),23;case 28:this.popState();break;case 29:this.popState(),this.begin("point_y");break;case 30:return this.popState(),24;case 31:return 6;case 32:return 43;case 33:return"COLON";case 34:return 45;case 35:return 44;case 36:return 46;case 37:return 46;case 38:return 47;case 39:return 49;case 40:return 50;case 41:return 48;case 42:return 41;case 43:return 51;case 44:return 42;case 45:return 5;case 46:return 33;case 47:return 40;case 48:return 34}},rules:[/^(?:%%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n\r]+)/i,/^(?:%%[^\n]*)/i,/^(?:title\b)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?: *x-axis *)/i,/^(?: *y-axis *)/i,/^(?: *--+> *)/i,/^(?: *quadrant-1 *)/i,/^(?: *quadrant-2 *)/i,/^(?: *quadrant-3 *)/i,/^(?: *quadrant-4 *)/i,/^(?:["][`])/i,/^(?:[^`"]+)/i,/^(?:[`]["])/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:\s*:\s*\[\s*)/i,/^(?:(1)|(0(.\d+)?))/i,/^(?:\s*\] *)/i,/^(?:\s*,\s*)/i,/^(?:(1)|(0(.\d+)?))/i,/^(?: *quadrantChart *)/i,/^(?:[A-Za-z]+)/i,/^(?::)/i,/^(?:\+)/i,/^(?:,)/i,/^(?:=)/i,/^(?:=)/i,/^(?:\*)/i,/^(?:#)/i,/^(?:[\_])/i,/^(?:\.)/i,/^(?:&)/i,/^(?:-)/i,/^(?:[0-9]+)/i,/^(?:\s)/i,/^(?:;)/i,/^(?:[!"#$%&'*+,-.`?\\_/])/i,/^(?:$)/i],conditions:{point_y:{rules:[30],inclusive:!1},point_x:{rules:[29],inclusive:!1},point_start:{rules:[27,28],inclusive:!1},acc_descr_multiline:{rules:[11,12],inclusive:!1},acc_descr:{rules:[9],inclusive:!1},acc_title:{rules:[7],inclusive:!1},title:{rules:[5],inclusive:!1},md_string:{rules:[21,22],inclusive:!1},string:{rules:[24,25],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,6,8,10,13,14,15,16,17,18,19,20,23,26,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48],inclusive:!0}}};return Tt}();zt.lexer=Ne;function pn(){this.yy={}}return pn.prototype=zt,zt.Parser=pn,new pn}();Mve.parser=Mve;const Vnn=Mve,zp=S2e();class Gnn{constructor(){this.config=this.getDefaultConfig(),this.themeConfig=this.getDefaultThemeConfig(),this.data=this.getDefaultData()}getDefaultData(){return{titleText:"",quadrant1Text:"",quadrant2Text:"",quadrant3Text:"",quadrant4Text:"",xAxisLeftText:"",xAxisRightText:"",yAxisBottomText:"",yAxisTopText:"",points:[]}}getDefaultConfig(){var a,u,d,p,v,b,y,E,_,A,P,R,B,j,W,ee,ie,oe;return{showXAxis:!0,showYAxis:!0,showTitle:!0,chartHeight:((a=nh.quadrantChart)==null?void 0:a.chartWidth)||500,chartWidth:((u=nh.quadrantChart)==null?void 0:u.chartHeight)||500,titlePadding:(
`+i);const E=y.securityLevel;let _;E==="sandbox"&&(_=Dr("#i"+a));const P=Dr(E==="sandbox"?_.nodes()[0].contentDocument.body:"body").select(`[id="${a}"]`),R=P.append("g").attr("class","main"),B=((de=y.quadrantChart)==null?void 0:de.chartWidth)||500,j=((X=y.quadrantChart)==null?void 0:X.chartHeight)||500;Fg(P,j,B,((pe=y.quadrantChart)==null?void 0:pe.useMaxWidth)||!0),P.attr("viewBox","0 0 "+B+" "+j),d.db.setHeight(j),d.db.setWidth(B);const W=d.db.getQuadrantData(),ee=R.append("g").attr("class","quadrants"),ie=R.append("g").attr("class","border"),oe=R.append("g").attr("class","data-points"),be=R.append("g").attr("class","labels"),ge=R.append("g").attr("class","title");W.title&&ge.append("text").attr("x",0).attr("y",0).attr("fill",W.title.fill).attr("font-size",W.title.fontSize).attr("dominant-baseline",p(W.title.horizontalPos)).attr("text-anchor",v(W.title.verticalPos)).attr("transform",b(W.title)).text(W.title.text),W.borderLines&&ie.selectAll("line").data(W.borderLines).enter().append("line").attr("x1",G=>G.x1).attr("y1",G=>G.y1).attr("x2",G=>G.x2).attr("y2",G=>G.y2).style("stroke",G=>G.strokeFill).style("stroke-width",G=>G.strokeWidth);const ae=ee.selectAll("g.quadrant").data(W.quadrants).enter().append("g").attr("class","quadrant");ae.append("rect").attr("x",G=>G.x).attr("y",G=>G.y).attr("width",G=>G.width).attr("height",G=>G.height).attr("fill",G=>G.fill),ae.append("text").attr("x",0).attr("y",0).attr("fill",G=>G.text.fill).attr("font-size",G=>G.text.fontSize).attr("dominant-baseline",G=>p(G.text.horizontalPos)).attr("text-anchor",G=>v(G.text.verticalPos)).attr("transform",G=>b(G.text)).text(G=>G.text.text),be.selectAll("g.label").data(W.axisLabels).enter().append("g").attr("class","label").append("text").attr("x",0).attr("y",0).text(G=>G.text).attr("fill",G=>G.fill).attr("font-size",G=>G.fontSize).attr("dominant-baseline",G=>p(G.horizontalPos)).attr("text-anchor",G=>v(G.verticalPos)).attr("transform",G=>b(G));const se=oe.selectAll("g.data-point").data(W.points).enter().append("g").attr("class","data-point");se.append("circle").attr("cx",G=>G.x).attr("cy",G=>G.y).attr("r",G=>G.radius).attr("fill",G=>G.fill),se.append("text").attr("x",0).attr("y",0).text(G=>G.text.text).attr("fill",G=>G.text.fill).attr("font-size",G=>G.text.fontSize).attr("dominant-baseline",G=>p(G.text.horizontalPos)).attr("text-anchor",G=>v(G.text.verticalPos)).attr("transform",G=>b(G.text))}},styles:()=>""}},Symbol.toStringTag,{value:"Module"}));var Dve=function(){var i=function(Pe,je,Ie,Se){for(Ie=Ie||{},Se=Pe.length;Se--;Ie[Pe[Se]]=je);return Ie},a=[1,10,12,14,16,18,19,21,23],u=[2,6],d=[1,3],p=[1,5],v=[1,6],b=[1,7],y=[1,5,10,12,14,16,18,19,21,23,34,35,36],E=[1,25],_=[1,26],A=[1,28],P=[1,29],R=[1,30],B=[1,31],j=[1,32],W=[1,33],ee=[1,34],ie=[1,35],oe=[1,36],be=[1,37],ge=[1,43],ae=[1,42],ne=[1,47],se=[1,50],de=[1,10,12,14,16,18,19,21,23,34,35,36],X=[1,10,12,14,16,18,19,21,23,24,26,27,28,34,35,36],pe=[1,10,12,14,16,18,19,21,23,24,26,27,28,34,35,36,41,42,43,44,45,46,47,48,49,50],G=[1,64],xe={trace:function(){},yy:{},symbols_:{error:2,start:3,eol:4,XYCHART:5,chartConfig:6,document:7,CHART_ORIENTATION:8,statement:9,title:10,text:11,X_AXIS:12,parseXAxis:13,Y_AXIS:14,parseYAxis:15,LINE:16,plotData:17,BAR:18,acc_title:19,acc_title_value:20,acc_descr:21,acc_descr_value:22,acc_descr_multiline_value:23,SQUARE_BRACES_START:24,commaSeparatedNumbers:25,SQUARE_BRACES_END:26,NUMBER_WITH_DECIMAL:27,COMMA:28,xAxisData:29,bandData:30,ARROW_DELIMITER:31,commaSeparatedTexts:32,yAxisData:33,NEWLINE:34,SEMI:35,EOF:36,alphaNum:37,STR:38,MD_STR:39,alphaNumToken:40,AMP:41,NUM:42,ALPHA:43,PLUS:44,EQUALS:45,MULT:46,DOT:47,BRKT:48,MINUS:49,UNDERSCORE:50,$accept:0,$end:1},terminals_:{2:"error",5:"XYCHART",8:"CHART_ORIENTATION",10:"title",12:"X_AXIS",14:"Y_AXIS",16:"LINE",18:"BAR",19:"acc_title",20:"acc_title_value",21:"acc_descr",22:"acc_descr_value",23:"acc_descr_multiline_value",24:"SQUARE_BRACES_START",26:"SQUARE_BRACES_END",27:"NUMBER_WITH_DECIMAL",28:"COMMA",31:"ARROW_DELIMITER",34:"NEWLINE",35:"SEMI",36:"EOF",38:"STR",39:"MD_STR",41:"AMP",42:"NUM",43:"ALPHA",44:"PLUS",45:
`+yt.showPosition()+`
Expecting `+Tr.join(", ")+", got '"+(this.terminals_[ht]||ht)+"'":On="Parse error on line "+(pn+1)+": Unexpected "+(ht==Wt?"end of input":"'"+(this.terminals_[ht]||ht)+"'"),this.parseError(On,{text:yt.match,token:this.terminals_[ht]||ht,line:yt.yylineno,loc:Dt,expected:Tr})}if(xt[0]instanceof Array&&xt.length>1)throw new Error("Parse Error: multiple actions possible at state: "+qr+", token: "+ht);switch(xt[0]){case 1:Se.push(ht),ke.push(yt.yytext),Ke.push(yt.yylloc),Se.push(xt[1]),ht=null,Tt=yt.yyleng,Ne=yt.yytext,pn=yt.yylineno,Dt=yt.yylloc;break;case 2:if(Hs=this.productions_[xt[1]][1],wi.$=ke[ke.length-Hs],wi._$={first_line:Ke[Ke.length-(Hs||1)].first_line,last_line:Ke[Ke.length-1].last_line,first_column:Ke[Ke.length-(Hs||1)].first_column,last_column:Ke[Ke.length-1].last_column},kt&&(wi._$.range=[Ke[Ke.length-(Hs||1)].range[0],Ke[Ke.length-1].range[1]]),Ri=this.performAction.apply(wi,[Ne,Tt,pn,Bt.yy,xt[1],ke,Ke].concat(un)),typeof Ri<"u")return Ri;Hs&&(Se=Se.slice(0,-1*Hs*2),ke=ke.slice(0,-1*Hs),Ke=Ke.slice(0,-1*Hs)),Se.push(this.productions_[xt[1]][0]),ke.push(wi.$),Ke.push(wi._$),mo=zt[Se[Se.length-2]][Se[Se.length-1]],Se.push(mo);break;case 3:return!0}}return!0}},U=function(){var Pe={EOF:1,parseError:function(Ie,Se){if(this.yy.parser)this.yy.parser.parseError(Ie,Se);else throw new Error(Ie)},setInput:function(je,Ie){return this.yy=Ie||this.yy||{},this._input=je,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 je=this._input[0];this.yytext+=je,this.yyleng++,this.offset++,this.match+=je,this.matched+=je;var Ie=je.match(/(?:\r\n?|\n).*/g);return Ie?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),je},unput:function(je){var Ie=je.length,Se=je.split(/(?:\r\n?|\n)/g);this._input=je+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-Ie),this.offset-=Ie;var Ce=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),Se.length-1&&(this.yylineno-=Se.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:Se?(Se.length===Ce.length?this.yylloc.first_column:0)+Ce[Ce.length-Se.length].length-Se[0].length:this.yylloc.first_column-Ie},this.options.ranges&&(this.yylloc.range=[ke[0],ke[0]+this.yyleng-Ie]),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(je){this.unput(this.match.slice(je))},pastInput:function(){var je=this.matched.substr(0,this.matched.length-this.match.length);return(je.length>20?"...":"")+je.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var je=this.match;return je.length<20&&(je+=this._input.substr(0,20-je.length)),(je.substr(0,20)+(je.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var je=this.pastInput(),Ie=new Array(je.length+1).join("-");return je+this.upcomingInput()+`
`+Ie+"^"},test_match:function(je,Ie){var Se,Ce,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))),Ce=je[0].match(/(?:\r\n?|\n).*/g),Ce&&(this.yylineno+=Ce.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:Ce?Ce[Ce.length-1].length-Ce[Ce.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+je[0].length},this.yytext+=je[0],this.match+=je[0],this.matches=je,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(je[0].length),this.matched+=je[0],Se=this.performAction.call(this,this.yy,this,Ie,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),Se)return Se;if(this._backtrack){for(var Ke in ke)this[Ke]=ke[Ke];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var je,Ie,Se,Ce;this._more||(this.yytext="",this.match="");for(var ke=this._currentRules(),Ke=0;Ke<ke.length;Ke++)if(Se=this._input.match(this.rules[ke[Ke]]),Se&&(!Ie||Se[0].length>Ie[0].length)){if(Ie=Se,Ce=Ke,this.options.backtrack_lexer){if(je=this.test_match(Se,ke[Ke]),je!==!1)return je;if(this._backtrack){Ie=!1;continue}else return!1}else if(!this.options.flex)break}return Ie?(je=this.test_match(Ie,ke[Ce]),je!==!1?je:!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 Ie=this.next();return Ie||this.lex()},begin:function(Ie){this.conditionStack.push(Ie)},popState:function(){var Ie=this.conditionStack.length-1;return Ie>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(Ie){return Ie=this.conditionStack.length-1-Math.abs(Ie||0),Ie>=0?this.conditionStack[Ie]:"INITIAL"},pushState:function(Ie){this.begin(Ie)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(Ie,Se,Ce,ke){switch(Ce){case 0:break;case 1:break;case 2:return this.popState(),34;case 3:return this.popState(),34;case 4:return 34;case 5:break;case 6:return 10;case 7:return this.pushState("acc_title"),19;case 8:return this.popState(),"acc_title_value";case 9:return this.pushState("acc_descr"),21;case 10:return this.popState(),"acc_descr_value";case 11:this.pushState("acc_descr_multiline");break;case 12:this.popState();break;case 13:return"acc_descr_multiline_value";case 14:return 5;case 15:return 8;case 16:return this.pushState("axis_data"),"X_AXIS";case 17:return this.pushState("axis_data"),"Y_AXIS";case 18:return this.pushState("axis_band_data"),24;case 19:return 31;case 20:return this.pushState("data"),16;case 21:return this.pushState("data"),18;case 22:return this.pushState("data_inner"),24;case 23:return 27;case 24:return this.popState(),26;case 25:this.popState();break;case 26:this.pushState("string");break;case 27:this.popState();break;case 28:return"STR";case 29:return 24;case 30:return 26;case 31:return 43;case 32:return"COLON";case 33:return 44;case 34:return 28;case 35:return 45;case 36:return 46;case 37:return 48;case 38:return 50;case 39:return 47;case 40:return 41;case 41:return 49;case 42:return 42;case 43:break;case 44:return 35;case 45:return 36}},rules:[/^(?:%%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:(\r?\n))/i,/^(?:(\r?\n))/i,/^(?:[\n\r]+)/i,/^(?:%%[^\n]*)/i,/^(?:title\b)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:\{)/i,/^(?:[^\}]*)/i,/^(?:xychart-beta\b)/i,/^(?:(?:vertical|horizontal))/i,/^(?:x-axis\b)/i,/^(?:y-axis\b)/i,/^(?:\[)/i,/^(?:-->)/i,/^(?:line\b)/i,/^(?:bar\b)/i,/^(?:\[)/i,/^(?:[+-]?(?:\d+(?:\.\d+)?|\.\d+))/i,/^(?:\])/i,/^(?:(?:`\) \{ this\.pushState\(md_string\); \}\n<md_string>\(\?:\(\?!`"\)\.\)\+ \{ return MD_STR; \}\n<md_string>\(\?:`))/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:\[)/i,/^(?:\])/i,/^(?:[A-Za-z]+)/i,/^(?::)/i,/^(?:\+)/i,/^(?:,)/i,/^(?:=)/i,/^(?:\*)/i,/^(?:#)/i,/^(?:[\_])/i,/^(?:\.)/i,/^(?:&)/i,/^(?:-)/i,/^(?:[0-9]+)/i,/^(?:\s+)/i,/^(?:;)/i,/^(?:$)/i],conditions:{data_inner:{rules:[0,1,4,5,6,7,9,11,14,15,16,17,20,21,23,24,25,26,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45],inclusive:!0},data:{rules:[0,1,3,4,5,6,7,9,11,14,15,16,17,20,21,22,25,26,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45],inclusive:!0},axis_band_data:{rules:[0,1,4,5,6,7,9,11,14,15,16,17,20,21,24,25,26,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45],inclusive:!0},axis_data:{rules:[0,1,2,4,5,6,7,9,11,14,15,16,17,18,19,20,21,23,25,26,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45],inclusive:!0},acc_descr_multiline:{rules:[12,13],inclusive:!1},acc_descr:{rules:[10],inclusive:!1},acc_title:{rules:[8],inclusive:!1},title:{rules:[],inclusive:!1},md_string:{rules:[],inclusive:!1},string:{rules:[27,28],inclusive:!1},INITIAL:{rules:[0,1,4,5,6,7,9,11,14,15,16,17,20,21,25,26,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45],inclusive:!0}}};return Pe}();xe.lexer=U;function Be(){this.yy={}}return Be.prototype=xe,xe.Parser=Be,new Be}();Dve.parser=Dve;const orn=Dve;function qGe(i){return i.type==="bar"}function HGe(i){return i.type==="band"}function KR(i){return i.type==="linear"}class UGe{construc
`+i);const A=dR(a),P=A.append("g").attr("class","main"),R=P.append("rect").attr("width",b.width).attr("height",b.height).attr("class","background");Fg(A,b.height,b.width,!0),A.attr("viewBox",`0 0 ${b.width} ${b.height}`),R.attr("fill",v.backgroundColor),p.setTmpSVGG(A.append("g").attr("class","mermaid-tmp-group"));const B=p.getDrawableElem(),j={};function W(ee){let ie=P,oe="";for(const[be]of ee.entries()){let ge=P;be>0&&j[oe]&&(ge=j[oe]),oe+=ee[be],ie=j[oe],ie||(ie=j[oe]=ge.append("g").attr("class",ee[be]))}return ie}for(const ee of B){if(ee.data.length===0)continue;const ie=W(ee.groupTexts);switch(ee.type){case"rect":ie.selectAll("rect").data(ee.data).enter().append("rect").attr("x",oe=>oe.x).attr("y",oe=>oe.y).attr("width",oe=>oe.width).attr("height",oe=>oe.height).attr("fill",oe=>oe.fill).attr("stroke",oe=>oe.strokeFill).attr("stroke-width",oe=>oe.strokeWidth);break;case"text":ie.selectAll("text").data(ee.data).enter().append("text").attr("x",0).attr("y",0).attr("fill",oe=>oe.fill).attr("font-size",oe=>oe.fontSize).attr("dominant-baseline",oe=>y(oe.verticalPos)).attr("text-anchor",oe=>E(oe.horizontalPos)).attr("transform",oe=>_(oe)).text(oe=>oe.text);break;case"path":ie.selectAll("path").data(ee.data).enter().append("path").attr("d",oe=>oe.path).attr("fill",oe=>oe.fill?oe.fill:"none").attr("stroke",oe=>oe.strokeFill).attr("stroke-width",oe=>oe.strokeWidth);break}}}}}},Symbol.toStringTag,{value:"Module"}));var Pve=function(){var i=function(Tt,Et,Wt,un){for(Wt=Wt||{},un=Tt.length;un--;Wt[Tt[un]]=Et);return Wt},a=[1,3],u=[1,4],d=[1,5],p=[1,6],v=[5,6,8,9,11,13,31,32,33,34,35,36,44,62,63],b=[1,18],y=[2,7],E=[1,22],_=[1,23],A=[1,24],P=[1,25],R=[1,26],B=[1,27],j=[1,20],W=[1,28],ee=[1,29],ie=[62,63],oe=[5,8,9,11,13,31,32,33,34,35,36,44,51,53,62,63],be=[1,47],ge=[1,48],ae=[1,49],ne=[1,50],se=[1,51],de=[1,52],X=[1,53],pe=[53,54],G=[1,64],xe=[1,60],U=[1,61],Be=[1,62],Pe=[1,63],je=[1,65],Ie=[1,69],Se=[1,70],Ce=[1,67],ke=[1,68],Ke=[5,8,9,11,13,31,32,33,34,35,36,44,62,63],zt={trace:function(){},yy:{},symbols_:{error:2,start:3,directive:4,NEWLINE:5,RD:6,diagram:7,EOF:8,acc_title:9,acc_title_value:10,acc_descr:11,acc_descr_value:12,acc_descr_multiline_value:13,requirementDef:14,elementDef:15,relationshipDef:16,requirementType:17,requirementName:18,STRUCT_START:19,requirementBody:20,ID:21,COLONSEP:22,id:23,TEXT:24,text:25,RISK:26,riskLevel:27,VERIFYMTHD:28,verifyType:29,STRUCT_STOP:30,REQUIREMENT:31,FUNCTIONAL_REQUIREMENT:32,INTERFACE_REQUIREMENT:33,PERFORMANCE_REQUIREMENT:34,PHYSICAL_REQUIREMENT:35,DESIGN_CONSTRAINT:36,LOW_RISK:37,MED_RISK:38,HIGH_RISK:39,VERIFY_ANALYSIS:40,VERIFY_DEMONSTRATION:41,VERIFY_INSPECTION:42,VERIFY_TEST:43,ELEMENT:44,elementName:45,elementBody:46,TYPE:47,type:48,DOCREF:49,ref:50,END_ARROW_L:51,relationship:52,LINE:53,END_ARROW_R:54,CONTAINS:55,COPIES:56,DERIVES:57,SATISFIES:58,VERIFIES:59,REFINES:60,TRACES:61,unqString:62,qString:63,$accept:0,$end:1},terminals_:{2:"error",5:"NEWLINE",6:"RD",8:"EOF",9:"acc_title",10:"acc_title_value",11:"acc_descr",12:"acc_descr_value",13:"acc_descr_multiline_value",19:"STRUCT_START",21:"ID",22:"COLONSEP",24:"TEXT",26:"RISK",28:"VERIFYMTHD",30:"STRUCT_STOP",31:"REQUIREMENT",32:"FUNCTIONAL_REQUIREMENT",33:"INTERFACE_REQUIREMENT",34:"PERFORMANCE_REQUIREMENT",35:"PHYSICAL_REQUIREMENT",36:"DESIGN_CONSTRAINT",37:"LOW_RISK",38:"MED_RISK",39:"HIGH_RISK",40:"VERIFY_ANALYSIS",41:"VERIFY_DEMONSTRATION",42:"VERIFY_INSPECTION",43:"VERIFY_TEST",44:"ELEMENT",47:"TYPE",49:"DOCREF",51:"END_ARROW_L",53:"LINE",54:"END_ARROW_R",55:"CONTAINS",56:"COPIES",57:"DERIVES",58:"SATISFIES",59:"VERIFIES",60:"REFINES",61:"TRACES",62:"unqString",63:"qString"},productions_:[0,[3,3],[3,2],[3,4],[4,2],[4,2],[4,1],[7,0],[7,2],[7,2],[7,2],[7,2],[7,2],[14,5],[20,5],[20,5],[20,5],[20,5],[20,2],[20,1],[17,1],[17,1],[17,1],[17,1],[17,1],[17,1],[27,1],[27,1],[27,1],[29,1],[29,1],[29,1],[29,1],[15,5],[46,5],[46,5],[46,2],[46,1],[16,5],[16,5],[52,1],[52,1],[52,1],[52,1],[52,1],[52,1],[52,1],[18,1],[18,1],[23,1],[23,1],[25,1],[25,1],[45,1],[45,1],[48,1],[48,1],[50,1],[50,1]],performAction:function(Et,Wt,un,yt,Bt,Ze,D
`+wi.showPosition()+`
Expecting `+Oo.join(", ")+", got '"+(this.terminals_[Rn]||Rn)+"'":No="Parse error on line "+(Nn+1)+": Unexpected "+(Rn==xt?"end of input":"'"+(this.terminals_[Rn]||Rn)+"'"),this.parseError(No,{text:wi.match,token:this.terminals_[Rn]||Rn,line:wi.yylineno,loc:mo,expected:Oo})}if(Ct[0]instanceof Array&&Ct.length>1)throw new Error("Parse Error: multiple actions possible at state: "+zn+", token: "+Rn);switch(Ct[0]){case 1:un.push(Rn),Bt.push(wi.yytext),Ze.push(wi.yylloc),un.push(Ct[1]),Rn=null,ht=wi.yyleng,kt=wi.yytext,Nn=wi.yylineno,mo=wi.yylloc;break;case 2:if(Ln=this.productions_[Ct[1]][1],on.$=Bt[Bt.length-Ln],on._$={first_line:Ze[Ze.length-(Ln||1)].first_line,last_line:Ze[Ze.length-1].last_line,first_column:Ze[Ze.length-(Ln||1)].first_column,last_column:Ze[Ze.length-1].last_column},Tr&&(on._$.range=[Ze[Ze.length-(Ln||1)].range[0],Ze[Ze.length-1].range[1]]),gt=this.performAction.apply(on,[kt,ht,Nn,ia.yy,Ct[1],Bt,Ze].concat(Ri)),typeof gt<"u")return gt;Ln&&(un=un.slice(0,-1*Ln*2),Bt=Bt.slice(0,-1*Ln),Ze=Ze.slice(0,-1*Ln)),un.push(this.productions_[Ct[1]][0]),Bt.push(on.$),Ze.push(on._$),Io=Dt[un[un.length-2]][un[un.length-1]],un.push(Io);break;case 3:return!0}}return!0}},Ne=function(){var Tt={EOF:1,parseError:function(Wt,un){if(this.yy.parser)this.yy.parser.parseError(Wt,un);else throw new Error(Wt)},setInput:function(Et,Wt){return this.yy=Wt||this.yy||{},this._input=Et,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 Et=this._input[0];this.yytext+=Et,this.yyleng++,this.offset++,this.match+=Et,this.matched+=Et;var Wt=Et.match(/(?:\r\n?|\n).*/g);return Wt?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),Et},unput:function(Et){var Wt=Et.length,un=Et.split(/(?:\r\n?|\n)/g);this._input=Et+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-Wt),this.offset-=Wt;var yt=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),un.length-1&&(this.yylineno-=un.length-1);var Bt=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:un?(un.length===yt.length?this.yylloc.first_column:0)+yt[yt.length-un.length].length-un[0].length:this.yylloc.first_column-Wt},this.options.ranges&&(this.yylloc.range=[Bt[0],Bt[0]+this.yyleng-Wt]),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(Et){this.unput(this.match.slice(Et))},pastInput:function(){var Et=this.matched.substr(0,this.matched.length-this.match.length);return(Et.length>20?"...":"")+Et.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var Et=this.match;return Et.length<20&&(Et+=this._input.substr(0,20-Et.length)),(Et.substr(0,20)+(Et.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var Et=this.pastInput(),Wt=new Array(Et.length+1).join("-");return Et+this.upcomingInput()+`
`+Wt+"^"},test_match:function(Et,Wt){var un,yt,Bt;if(this.options.backtrack_lexer&&(Bt={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&&(Bt.yylloc.range=this.yylloc.range.slice(0))),yt=Et[0].match(/(?:\r\n?|\n).*/g),yt&&(this.yylineno+=yt.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:yt?yt[yt.length-1].length-yt[yt.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+Et[0].length},this.yytext+=Et[0],this.match+=Et[0],this.matches=Et,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(Et[0].length),this.matched+=Et[0],un=this.performAction.call(this,this.yy,this,Wt,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),un)return un;if(this._backtrack){for(var Ze in Bt)this[Ze]=Bt[Ze];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var Et,Wt,un,yt;this._more||(this.yytext="",this.match="");for(var Bt=this._currentRules(),Ze=0;Ze<Bt.length;Ze++)if(un=this._input.match(this.rules[Bt[Ze]]),un&&(!Wt||un[0].length>Wt[0].length)){if(Wt=un,yt=Ze,this.options.backtrack_lexer){if(Et=this.test_match(un,Bt[Ze]),Et!==!1)return Et;if(this._backtrack){Wt=!1;continue}else return!1}else if(!this.options.flex)break}return Wt?(Et=this.test_match(Wt,Bt[yt]),Et!==!1?Et:!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 Wt=this.next();return Wt||this.lex()},begin:function(Wt){this.conditionStack.push(Wt)},popState:function(){var Wt=this.conditionStack.length-1;return Wt>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(Wt){return Wt=this.conditionStack.length-1-Math.abs(Wt||0),Wt>=0?this.conditionStack[Wt]:"INITIAL"},pushState:function(Wt){this.begin(Wt)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(Wt,un,yt,Bt){switch(yt){case 0:return"title";case 1:return this.begin("acc_title"),9;case 2:return this.popState(),"acc_title_value";case 3:return this.begin("acc_descr"),11;case 4:return this.popState(),"acc_descr_value";case 5:this.begin("acc_descr_multiline");break;case 6:this.popState();break;case 7:return"acc_descr_multiline_value";case 8:return 5;case 9:break;case 10:break;case 11:break;case 12:return 8;case 13:return 6;case 14:return 19;case 15:return 30;case 16:return 22;case 17:return 21;case 18:return 24;case 19:return 26;case 20:return 28;case 21:return 31;case 22:return 32;case 23:return 33;case 24:return 34;case 25:return 35;case 26:return 36;case 27:return 37;case 28:return 38;case 29:return 39;case 30:return 40;case 31:return 41;case 32:return 42;case 33:return 43;case 34:return 44;case 35:return 55;case 36:return 56;case 37:return 57;case 38:return 58;case 39:return 59;case 40:return 60;case 41:return 61;case 42:return 47;case 43:return 49;case 44:return 51;case 45:return 54;case 46:return 53;case 47:this.begin("string");break;case 48:this.popState();break;case 49:return"qString";case 50:return un.yytext=un.yytext.trim(),62}},rules:[/^(?:title\s[^#\n;]+)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:(\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:[6,7],inclusive:!1},acc_descr:{rules:[4],inclusive:!1},acc_title:{rules:[2],inclusive:!1},unqString:{rules:[],inclusive:!1},token:{rules:[],inclusive:!1},string:{rules:[48,49],inclusive:!1},INITIAL:{rules:[0,1,3,5,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,50],inclusive:!0}}};return Tt}();zt.lexer=Ne;function pn(){this.yy={}}return pn.prototype=zt,zt.Parser=pn,new pn}();Pve.parser=Pve;const Drn=Pve;let Bve=[],Z2={},QR={},j9={},JR={};const Irn={RequirementType:{REQUIREMENT:"Requirement",FUNCTIONAL_REQUIREMENT:"Functional Requirement",INTERFACE_REQUIREMENT:"Interface Requirement",PERFORMANCE_REQUIREMENT:"Performance Requirement",PHYSICAL_REQUIREMENT:"Physical Requirement",DESIGN_CONSTRAINT:"Design Constraint"},RiskLevel:{LOW_RISK:"Low",MED_RISK:"Medium",HIGH_RISK:"High"},VerifyType:{VERIFY_ANALYSIS:"Analysis",VERIFY_DEMONSTRATION:"Demonstration",VERIFY_INSPECTION:"Inspection",VERIFY_TEST:"Test"},Relationships:{CONTAINS:"contains",COPIES:"copies",DERIVES:"derives",SATISFIES:"satisfies",VERIFIES:"verifies",REFINES:"refines",TRACES:"traces"},getConfig:()=>qt().req,addRequireme
marker {
fill: ${i.relationColor};
stroke: ${i.relationColor};
}
marker.cross {
stroke: ${i.lineColor};
}
svg {
font-family: ${i.fontFamily};
font-size: ${i.fontSize};
}
.reqBox {
fill: ${i.requirementBackground};
fill-opacity: 1.0;
stroke: ${i.requirementBorderColor};
stroke-width: ${i.requirementBorderSize};
}
.reqTitle, .reqLabel{
fill: ${i.requirementTextColor};
}
.reqLabelBox {
fill: ${i.relationLabelBackground};
fill-opacity: 1.0;
}
.req-title-line {
stroke: ${i.requirementBorderColor};
stroke-width: ${i.requirementBorderSize};
}
.relationshipLine {
stroke: ${i.relationColor};
stroke-width: 1;
}
.relationshipLabel {
fill: ${i.relationLabelColor};
}
`,Fve={CONTAINS:"contains",ARROW:"arrow"},nKe={ReqMarkers:Fve,insertLineEndings:(i,a)=>{let u=i.append("defs").append("marker").attr("id",Fve.CONTAINS+"_line_ending").attr("refX",0).attr("refY",a.line_height/2).attr("markerWidth",a.line_height).attr("markerHeight",a.line_height).attr("orient","auto").append("g");u.append("circle").attr("cx",a.line_height/2).attr("cy",a.line_height/2).attr("r",a.line_height/2).attr("fill","none"),u.append("line").attr("x1",0).attr("x2",a.line_height).attr("y1",a.line_height/2).attr("y2",a.line_height/2).attr("stroke-width",1),u.append("line").attr("y1",0).attr("y2",a.line_height).attr("x1",a.line_height/2).attr("x2",a.line_height/2).attr("stroke-width",1),i.append("defs").append("marker").attr("id",Fve.ARROW+"_line_ending").attr("refX",a.line_height).attr("refY",.5*a.line_height).attr("markerWidth",a.line_height).attr("markerHeight",a.line_height).attr("orient","auto").append("path").attr("d",`M0,0
L${a.line_height},${a.line_height/2}
M${a.line_height},${a.line_height/2}
L0,${a.line_height}`).attr("stroke-width",1)}};let Ef={},rKe=0;const iKe=(i,a)=>i.insert("rect","#"+a).attr("class","req reqBox").attr("x",0).attr("y",0).attr("width",Ef.rect_min_width+"px").attr("height",Ef.rect_min_height+"px"),sKe=(i,a,u)=>{let d=Ef.rect_min_width/2,p=i.append("text").attr("class","req reqLabel reqTitle").attr("id",a).attr("x",d).attr("y",Ef.rect_padding).attr("dominant-baseline","hanging"),v=0;u.forEach(_=>{v==0?p.append("tspan").attr("text-anchor","middle").attr("x",Ef.rect_min_width/2).attr("dy",0).text(_):p.append("tspan").attr("text-anchor","middle").attr("x",Ef.rect_min_width/2).attr("dy",Ef.line_height*.75).text(_),v++});let b=1.5*Ef.rect_padding,y=v*Ef.line_height*.75,E=b+y;return i.append("line").attr("class","req-title-line").attr("x1","0").attr("x2",Ef.rect_min_width).attr("y1",E).attr("y2",E),{titleNode:p,y:E}},aKe=(i,a,u,d)=>{let p=i.append("text").attr("class","req reqLabel").attr("id",a).attr("x",Ef.rect_padding).attr("y",d).attr("dominant-baseline","hanging"),v=0;const b=30;let y=[];return u.forEach(E=>{let _=E.length;for(;_>b&&v<3;){let A=E.substring(0,b);E=E.substring(b,E.length),_=E.length,y[y.length]=A,v++}if(v==3){let A=y[y.length-1];y[y.length-1]=A.substring(0,A.length-4)+"..."}else y[y.length]=E;v=0}),y.forEach(E=>{p.append("tspan").attr("x",Ef.rect_padding).attr("dy",Ef.line_height).text(E)}),p},Nrn=(i,a,u,d)=>{const p=a.node().getTotalLength(),v=a.node().getPointAtLength(p*.5),b="rel"+rKe;rKe++;const E=i.append("text").attr("class","req relationshipLabel").attr("id",b).attr("x",v.x).attr("y",v.y).attr("text-anchor","middle").attr("dominant-baseline","middle").text(d).node().getBBox();i.insert("rect","#"+b).attr("class","req reqLabelBox").attr("x",v.x-E.width/2).attr("y",v.y-E.height/2).attr("width",E.width).attr("height",E.height).attr("fill","white").attr("fill-opacity","85%")},Prn=function(i,a,u,d,p){const v=u.edge(nI(a.src),nI(a.dst)),b=E7().x(function(E){return E.x}).y(function(E){return E.y}),y=i.insert("path","#"+d).attr("class","er relationshipLine").attr("d",b(v.points)).attr("fill","none");a.type==p.db.Relationships.CONTAINS?y.attr("marker-start","url("+oi.getUrl(Ef.arrowMarkerAbsolute)+"#"+a.type+"_line_ending)"):(y.attr("stroke-dasharray","10,7"),y.attr("marker-end","url("+oi.getUrl(Ef.arrowMarkerAbsolute)+"#"+nKe.ReqMarkers.ARROW+"_line_ending)")),Nrn(i,y,Ef,`<<${a.type}>>`)},Brn=(i,a,u)=>{Object.keys(i).forEach(d=>{let p=i[d];d=nI(d),Xe.info("Added new requirement: ",d);const v=u.append("g").attr("id",d),b="req-"+d,y=iKe(v,b);let E=sKe(v,d+"_title",[`<<${p.type}>>`,`${p.name}`]);aKe(v,d+"_body",[`Id: ${p.id}`,`Text: ${p.text}`,`Risk: ${p.risk}`,`Verification: ${p.verifyMethod}`],E.y);const _=y.node().getBBox();a.setNode(d,{width:_.width,height:_.height,shape:"rect",id:d})})},Frn=(i,a,u)=>{Object.keys(i).forEach(d=>{let p=i[d];const v=nI(d),b=u.append("g").attr("id",v),y="element-"+v,E=iKe(b,y);let _=sKe(b,y+"_title",["<<Element>>",`${d}`]);aKe(b,y+"_body",[`Type: ${p.type||"Not Specified"}`,`Doc Ref: ${p.docRef||"None"}`],_.y);const A=E.node().getBBox();a.setNode(v,{width:A.width,height:A.height,shape:"rect",id:v})})},Rrn=(i,a)=>(i.forEach(function(u){let d=nI(u.src),p=nI(u.dst);a.setEdge(d,p,{relationship:u})}),i),jrn=function(i,a){a.nodes().forEach(function(u){u!==void 0&&a.node(u)!==void 0&&(i.select("#"+u),i.select("#"+u).attr("transform","translate("+(a.node(u).x-a.node(u).width/2)+","+(a.node(u).y-a.node(u).height/2)+" )"))})},nI=i=>i.replace(/\s/g,"").replace(/\./g,"_"),$rn=Object.freeze(Object.defineProperty({__proto__:null,diagram:{parser:Drn,db:Irn,renderer:{draw:(i,a,u,d)=>{Ef=qt().requirement;const p=Ef.securityLevel;let v;p==="sandbox"&&(v=Dr("#i"+a));const y=Dr(p==="sandbox"?v.nodes()[0].contentDocument.body:"body").select(`[id='${a}']`);nKe.insertLineEndings(y,Ef);const E=new R0({multigraph:!1,compound:!1,directed:!0}).setGraph({rankdir:Ef.layoutDirection,marginx:20,marginy:20,nodesep:100,edgesep:100,ranksep:100}).setDefaultEdgeLabel(function(){return{}});let _=d.db.getRequirements(),A=d.db.getElements(),P=d.db.getRelationships();Brn(_,E,y),F
`+Tr.showPosition()+`
Expecting `+Es.join(", ")+", got '"+(this.terminals_[on]||on)+"'":Ou="Parse error on line "+(Ri+1)+": Unexpected "+(on==Hs?"end of input":"'"+(this.terminals_[on]||on)+"'"),this.parseError(Ou,{text:Tr.match,token:this.terminals_[on]||on,line:Tr.yylineno,loc:zn,expected:Es})}if(Ln[0]instanceof Array&&Ln.length>1)throw new Error("Parse Error: multiple actions possible at state: "+dn+", token: "+on);switch(Ln[0]){case 1:Dt.push(on),Nn.push(Tr.yytext),ht.push(Tr.yylloc),Dt.push(Ln[1]),on=null,wi=Tr.yyleng,xt=Tr.yytext,Ri=Tr.yylineno,zn=Tr.yylloc;break;case 2:if(Us=this.productions_[Ln[1]][1],Oo.$=Nn[Nn.length-Us],Oo._$={first_line:ht[ht.length-(Us||1)].first_line,last_line:ht[ht.length-1].last_line,first_column:ht[ht.length-(Us||1)].first_column,last_column:ht[ht.length-1].last_column},Ct&&(Oo._$.range=[ht[ht.length-(Us||1)].range[0],ht[ht.length-1].range[1]]),Io=this.performAction.apply(Oo,[xt,wi,Ri,On.yy,Ln[1],Nn,ht].concat(mo)),typeof Io<"u")return Io;Us&&(Dt=Dt.slice(0,-1*Us*2),Nn=Nn.slice(0,-1*Us),ht=ht.slice(0,-1*Us)),Dt.push(this.productions_[Ln[1]][0]),Nn.push(Oo.$),ht.push(Oo._$),uo=qr[Dt[Dt.length-2]][Dt[Dt.length-1]],Dt.push(uo);break;case 3:return!0}}return!0}},Wt=function(){var yt={EOF:1,parseError:function(Ze,Dt){if(this.yy.parser)this.yy.parser.parseError(Ze,Dt);else throw new Error(Ze)},setInput:function(Bt,Ze){return this.yy=Ze||this.yy||{},this._input=Bt,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 Bt=this._input[0];this.yytext+=Bt,this.yyleng++,this.offset++,this.match+=Bt,this.matched+=Bt;var Ze=Bt.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),Bt},unput:function(Bt){var Ze=Bt.length,Dt=Bt.split(/(?:\r\n?|\n)/g);this._input=Bt+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-Ze),this.offset-=Ze;var kt=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),Dt.length-1&&(this.yylineno-=Dt.length-1);var Nn=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:Dt?(Dt.length===kt.length?this.yylloc.first_column:0)+kt[kt.length-Dt.length].length-Dt[0].length:this.yylloc.first_column-Ze},this.options.ranges&&(this.yylloc.range=[Nn[0],Nn[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(Bt){this.unput(this.match.slice(Bt))},pastInput:function(){var Bt=this.matched.substr(0,this.matched.length-this.match.length);return(Bt.length>20?"...":"")+Bt.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var Bt=this.match;return Bt.length<20&&(Bt+=this._input.substr(0,20-Bt.length)),(Bt.substr(0,20)+(Bt.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var Bt=this.pastInput(),Ze=new Array(Bt.length+1).join("-");return Bt+this.upcomingInput()+`
`+Ze+"^"},test_match:function(Bt,Ze){var Dt,kt,Nn;if(this.options.backtrack_lexer&&(Nn={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&&(Nn.yylloc.range=this.yylloc.range.slice(0))),kt=Bt[0].match(/(?:\r\n?|\n).*/g),kt&&(this.yylineno+=kt.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:kt?kt[kt.length-1].length-kt[kt.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+Bt[0].length},this.yytext+=Bt[0],this.match+=Bt[0],this.matches=Bt,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(Bt[0].length),this.matched+=Bt[0],Dt=this.performAction.call(this,this.yy,this,Ze,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),Dt)return Dt;if(this._backtrack){for(var ht in Nn)this[ht]=Nn[ht];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var Bt,Ze,Dt,kt;this._more||(this.yytext="",this.match="");for(var Nn=this._currentRules(),ht=0;ht<Nn.length;ht++)if(Dt=this._input.match(this.rules[Nn[ht]]),Dt&&(!Ze||Dt[0].length>Ze[0].length)){if(Ze=Dt,kt=ht,this.options.backtrack_lexer){if(Bt=this.test_match(Dt,Nn[ht]),Bt!==!1)return Bt;if(this._backtrack){Ze=!1;continue}else return!1}else if(!this.options.flex)break}return Ze?(Bt=this.test_match(Ze,Nn[kt]),Bt!==!1?Bt:!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:{"case-insensitive":!0},performAction:function(Ze,Dt,kt,Nn){switch(kt){case 0:return 5;case 1:break;case 2:break;case 3:break;case 4:break;case 5:break;case 6:return 19;case 7:return this.begin("LINE"),14;case 8:return this.begin("ID"),50;case 9:return this.begin("ID"),52;case 10:return 13;case 11:return this.begin("ID"),53;case 12:return Dt.yytext=Dt.yytext.trim(),this.begin("ALIAS"),70;case 13:return this.popState(),this.popState(),this.begin("LINE"),51;case 14:return this.popState(),this.popState(),5;case 15:return this.begin("LINE"),36;case 16:return this.begin("LINE"),37;case 17:return this.begin("LINE"),38;case 18:return this.begin("LINE"),39;case 19:return this.begin("LINE"),49;case 20:return this.begin("LINE"),41;case 21:return this.begin("LINE"),43;case 22:return this.begin("LINE"),48;case 23:return this.begin("LINE"),44;case 24:return this.begin("LINE"),47;case 25:return this.begin("LINE"),46;case 26:return this.popState(),15;case 27:return 16;case 28:return 65;case 29:return 66;case 30:return 59;case 31:return 60;case 32:return 61;case 33:return 62;case 34:return 57;case 35:return 54;case 36:return this.begin("ID"),21;case 37:return this.begin("ID"),23;case 38:return 29;case 39:return 30;case 40:return this.begin("acc_title"),31;case 41:return this.popState(),"acc_title_value";case 42:return this.begin("acc_descr"),33;case 43:return this.popState(),"acc_descr_value";case 44:this.begin("acc_descr_multiline");break;case 45:this.popState();break;case 46:return"acc_descr_multiline_value";case 47:return 6;case 48:return 18;case 49:return 20;case 50:return 64;case 51:return 5;case 52:return Dt.yytext=Dt.yytext.trim(),70;case 53:return 73;case 54:return 74;case 55:return 71;case 56:return 72;case 57:return 75;case 58:return 76;case 59:return 77;case 60:return 78;case 61:return 79;case 62:return 68;case 63:return 69;case 64:return 5;case 65:return"INVALID"}},rules:[/^(?:[\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,/^(?:create\b)/i,/^(?:destroy\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,/^(?:par_over\b)/i,/^(?:and\b)/i,/^(?:critical\b)/i,/^(?:option\b)/i,/^(?:break\b)/i,/^(?:(?:[:]?(?:no)?wrap)?[^#\n;]*)/i,/^(?:end\b)/i,/^(?:left of\b)/i,/^(?:right of\b)/i,/^(?:links\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:[45,46],inclusive:!1},acc_descr:{rules:[43],inclusive:!1},acc_title:{rules:[41],inclusive:!1},ID:{rules:[2,3,12],inclusive:!1},ALIAS:{rules:[2,3,13,14],inclusive:!1},LINE:{rules:[2
stroke: ${i.actorBorder};
fill: ${i.actorBkg};
}
text.actor > tspan {
fill: ${i.actorTextColor};
stroke: none;
}
.actor-line {
stroke: ${i.actorLineColor};
}
.messageLine0 {
stroke-width: 1.5;
stroke-dasharray: none;
stroke: ${i.signalColor};
}
.messageLine1 {
stroke-width: 1.5;
stroke-dasharray: 2, 2;
stroke: ${i.signalColor};
}
#arrowhead path {
fill: ${i.signalColor};
stroke: ${i.signalColor};
}
.sequenceNumber {
fill: ${i.sequenceNumberColor};
}
#sequencenumber {
fill: ${i.signalColor};
}
#crosshead path {
fill: ${i.signalColor};
stroke: ${i.signalColor};
}
.messageText {
fill: ${i.signalTextColor};
stroke: none;
}
.labelBox {
stroke: ${i.labelBoxBorderColor};
fill: ${i.labelBoxBkgColor};
}
.labelText, .labelText > tspan {
fill: ${i.labelTextColor};
stroke: none;
}
.loopText, .loopText > tspan {
fill: ${i.loopTextColor};
stroke: none;
}
.loopLine {
stroke-width: 2px;
stroke-dasharray: 2, 2;
stroke: ${i.labelBoxBorderColor};
fill: ${i.labelBoxBorderColor};
}
.note {
//stroke: #decc93;
stroke: ${i.noteBorderColor};
fill: ${i.noteBkgColor};
}
.noteText, .noteText > tspan {
fill: ${i.noteTextColor};
stroke: none;
}
.activation0 {
fill: ${i.activationBkgColor};
stroke: ${i.activationBorderColor};
}
.activation1 {
fill: ${i.activationBkgColor};
stroke: ${i.activationBorderColor};
}
.activation2 {
fill: ${i.activationBkgColor};
stroke: ${i.activationBorderColor};
}
.actorPopupMenu {
position: absolute;
}
.actorPopupMenuPanel {
position: absolute;
fill: ${i.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: ${i.actorBorder};
fill: ${i.actorBkg};
}
.actor-man circle, line {
stroke: ${i.actorBorder};
fill: ${i.actorBkg};
stroke-width: 2px;
}
`,eS=18*2,gKe="actor-top",pKe="actor-bottom",zve=function(i,a){return qQ(i,a)},din=function(i,a,u,d,p){if(a.links===void 0||a.links===null||Object.keys(a.links).length===0)return{height:0,width:0};const v=a.links,b=a.actorCnt,y=a.rectData;var E="none";p&&(E="block !important");const _=i.append("g");_.attr("id","actor"+b+"_popup"),_.attr("class","actorPopupMenu"),_.attr("display",E);var A="";y.class!==void 0&&(A=" "+y.class);let P=y.width>u?y.width:u;const R=_.append("rect");if(R.attr("class","actorPopupMenuPanel"+A),R.attr("x",y.x),R.attr("y",y.height),R.attr("fill",y.fill),R.attr("stroke",y.stroke),R.attr("width",P),R.attr("height",y.height),R.attr("rx",y.rx),R.attr("ry",y.ry),v!=null){var B=20;for(let ee in v){var j=_.append("a"),W=b9.sanitizeUrl(v[ee]);j.attr("xlink:href",W),j.attr("target","_blank"),Min(d)(ee,j,y.x+10,y.height+B,P,20,{class:"actor"},d),B+=30}}return R.attr("height",B),{height:y.height+B,width:P}},gin=function(i){return"var pu = document.getElementById('"+i+"'); if (pu != null) { pu.style.display = pu.style.display == 'block' ? 'none' : 'block'; }"},LJ=async function(i,a,u=null){let d=i.append("foreignObject");const p=await SC(a.text,mh()),b=d.append("xhtml:div").attr("style","width: fit-content;").attr("xmlns","http://www.w3.org/1999/xhtml").html(p).node().getBoundingClientRect();if(d.attr("height",Math.round(b.height)).attr("width",Math.round(b.width)),a.class==="noteText"){const y=i.node().firstChild;y.setAttribute("height",b.height+2*a.textMargin);const E=y.getBBox();d.attr("x",Math.round(E.x+E.width/2-b.width/2)).attr("y",Math.round(E.y+E.height/2-b.height/2))}else if(u){let{startx:y,stopx:E,starty:_}=u;if(y>E){const A=y;y=E,E=A}d.attr("x",Math.round(y+Math.abs(y-E)/2-b.width/2)),a.class==="loopText"?d.attr("y",Math.round(_)):d.attr("y",Math.round(_-b.height))}return[d]},rI=function(i,a){let u=0,d=0;const p=a.text.split(oi.lineBreakRegex),[v,b]=PC(a.fontSize);let y=[],E=0,_=()=>a.y;if(a.valign!==void 0&&a.textMargin!==void 0&&a.textMargin>0)switch(a.valign){case"top":case"start":_=()=>Math.round(a.y+a.textMargin);break;case"middle":case"center":_=()=>Math.round(a.y+(u+d+a.textMargin)/2);break;case"bottom":case"end":_=()=>Math.round(a.y+(u+d+2*a.textMargin)-a.textMargin);break}if(a.anchor!==void 0&&a.textMargin!==void 0&&a.width!==void 0)switch(a.anchor){case"left":case"start":a.x=Math.round(a.x+a.textMargin),a.anchor="start",a.dominantBaseline="middle",a.alignmentBaseline="middle";break;case"middle":case"center":a.x=Math.round(a.x+a.width/2),a.anchor="middle",a.dominantBaseline="middle",a.alignmentBaseline="middle";break;case"right":case"end":a.x=Math.round(a.x+a.width-a.textMargin),a.anchor="end",a.dominantBaseline="middle",a.alignmentBaseline="middle";break}for(let[A,P]of p.entries()){a.textMargin!==void 0&&a.textMargin===0&&v!==void 0&&(E=A*v);const R=i.append("text");R.attr("x",a.x),R.attr("y",_()),a.anchor!==void 0&&R.attr("text-anchor",a.anchor).attr("dominant-baseline",a.dominantBaseline).attr("alignment-baseline",a.alignmentBaseline),a.fontFamily!==void 0&&R.style("font-family",a.fontFamily),b!==void 0&&R.style("font-size",b),a.fontWeight!==void 0&&R.style("font-weight",a.fontWeight),a.fill!==void 0&&R.attr("fill",a.fill),a.class!==void 0&&R.attr("class",a.class),a.dy!==void 0?R.attr("dy",a.dy):E!==0&&R.attr("dy",E);const B=P||Nje;if(a.tspan){const j=R.append("tspan");j.attr("x",a.x),a.fill!==void 0&&j.attr("fill",a.fill),j.text(B)}else R.text(B);a.valign!==void 0&&a.textMargin!==void 0&&a.textMargin>0&&(d+=(R._groups||R)[0][0].getBBox().height,u=d),y.push(R)}return y},bKe=function(i,a){function u(p,v,b,y,E){return p+","+v+" "+(p+b)+","+v+" "+(p+b)+","+(v+y-E)+" "+(p+b-E*1.2)+","+(v+y)+" "+p+","+(v+y)}const d=i.append("polygon");return d.attr("points",u(a.x,a.y,a.width,a.height,7)),d.attr("class","labelBox"),a.y=a.y+a.height/2,rI(i,a),d};let o5=-1;const mKe=(i,a,u,d)=>{i.select&&u.forEach(p=>{const v=a[p],b=i.select("#actor"+v.actorCnt);!d.mirrorActors&&v.stopy?b.attr("y2",v.stopy+v.height/2):d.mirrorActors&&b.attr("y2",v.stopy)})},pin=async function(i,a,u,d){const p=d?a.stopy:a.starty,v
`+uo.showPosition()+`
Expecting `+Fa.join(", ")+", got '"+(this.terminals_[Ul]||Ul)+"'":Ra="Parse error on line "+(Ln+1)+": Unexpected "+(Ul==No?"end of input":"'"+(this.terminals_[Ul]||Ul)+"'"),this.parseError(Ra,{text:uo.match,token:this.terminals_[Ul]||Ul,line:uo.yylineno,loc:_c,expected:Fa})}if(Jc[0]instanceof Array&&Jc.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Ac+", token: "+Ul);switch(Jc[0]){case 1:Rn.push(Ul),Ct.push(uo.yytext),gt.push(uo.yylloc),Rn.push(Jc[1]),Ul=null,Io=uo.yyleng,dn=uo.yytext,Ln=uo.yylineno,_c=uo.yylloc;break;case 2:if($o=this.productions_[Jc[1]][1],Ba.$=Ct[Ct.length-$o],Ba._$={first_line:gt[gt.length-($o||1)].first_line,last_line:gt[gt.length-1].last_line,first_column:gt[gt.length-($o||1)].first_column,last_column:gt[gt.length-1].last_column},Kd&&(Ba._$.range=[gt[gt.length-($o||1)].range[0],gt[gt.length-1].range[1]]),Ya=this.performAction.apply(Ba,[dn,Io,Ln,Es.yy,Jc[1],Ct,gt].concat(Us)),typeof Ya<"u")return Ya;$o&&(Rn=Rn.slice(0,-1*$o*2),Ct=Ct.slice(0,-1*$o),gt=gt.slice(0,-1*$o)),Rn.push(this.productions_[Jc[1]][0]),Ct.push(Ba.$),gt.push(Ba._$),Lc=on[Rn[Rn.length-2]][Rn[Rn.length-1]],Rn.push(Lc);break;case 3:return!0}}return!0}},ia=function(){var mo={EOF:1,parseError:function(On,Rn){if(this.yy.parser)this.yy.parser.parseError(On,Rn);else throw new Error(On)},setInput:function(Tr,On){return this.yy=On||this.yy||{},this._input=Tr,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 Tr=this._input[0];this.yytext+=Tr,this.yyleng++,this.offset++,this.match+=Tr,this.matched+=Tr;var On=Tr.match(/(?:\r\n?|\n).*/g);return On?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),Tr},unput:function(Tr){var On=Tr.length,Rn=Tr.split(/(?:\r\n?|\n)/g);this._input=Tr+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-On),this.offset-=On;var zn=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),Rn.length-1&&(this.yylineno-=Rn.length-1);var Ct=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:Rn?(Rn.length===zn.length?this.yylloc.first_column:0)+zn[zn.length-Rn.length].length-Rn[0].length:this.yylloc.first_column-On},this.options.ranges&&(this.yylloc.range=[Ct[0],Ct[0]+this.yyleng-On]),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(Tr){this.unput(this.match.slice(Tr))},pastInput:function(){var Tr=this.matched.substr(0,this.matched.length-this.match.length);return(Tr.length>20?"...":"")+Tr.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var Tr=this.match;return Tr.length<20&&(Tr+=this._input.substr(0,20-Tr.length)),(Tr.substr(0,20)+(Tr.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var Tr=this.pastInput(),On=new Array(Tr.length+1).join("-");return Tr+this.upcomingInput()+`
`+On+"^"},test_match:function(Tr,On){var Rn,zn,Ct;if(this.options.backtrack_lexer&&(Ct={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&&(Ct.yylloc.range=this.yylloc.range.slice(0))),zn=Tr[0].match(/(?:\r\n?|\n).*/g),zn&&(this.yylineno+=zn.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:zn?zn[zn.length-1].length-zn[zn.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+Tr[0].length},this.yytext+=Tr[0],this.match+=Tr[0],this.matches=Tr,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(Tr[0].length),this.matched+=Tr[0],Rn=this.performAction.call(this,this.yy,this,On,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),Rn)return Rn;if(this._backtrack){for(var gt in Ct)this[gt]=Ct[gt];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var Tr,On,Rn,zn;this._more||(this.yytext="",this.match="");for(var Ct=this._currentRules(),gt=0;gt<Ct.length;gt++)if(Rn=this._input.match(this.rules[Ct[gt]]),Rn&&(!On||Rn[0].length>On[0].length)){if(On=Rn,zn=gt,this.options.backtrack_lexer){if(Tr=this.test_match(Rn,Ct[gt]),Tr!==!1)return Tr;if(this._backtrack){On=!1;continue}else return!1}else if(!this.options.flex)break}return On?(Tr=this.test_match(On,Ct[zn]),Tr!==!1?Tr:!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 On=this.next();return On||this.lex()},begin:function(On){this.conditionStack.push(On)},popState:function(){var On=this.conditionStack.length-1;return On>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(On){return On=this.conditionStack.length-1-Math.abs(On||0),On>=0?this.conditionStack[On]:"INITIAL"},pushState:function(On){this.begin(On)},stateStackSize:function(){return this.conditionStack.length},options:{},performAction:function(On,Rn,zn,Ct){switch(zn){case 0:return 53;case 1:return 54;case 2:return 55;case 3:return 56;case 4:break;case 5:break;case 6:return this.begin("acc_title"),31;case 7:return this.popState(),"acc_title_value";case 8:return this.begin("acc_descr"),33;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 8;case 14:break;case 15:return 7;case 16:return 7;case 17:return"EDGE_STATE";case 18:this.begin("callback_name");break;case 19:this.popState();break;case 20:this.popState(),this.begin("callback_args");break;case 21:return 70;case 22:this.popState();break;case 23:return 71;case 24:this.popState();break;case 25:return"STR";case 26:this.begin("string");break;case 27:return 73;case 28:return this.begin("namespace"),40;case 29:return this.popState(),8;case 30:break;case 31:return this.begin("namespace-body"),37;case 32:return this.popState(),39;case 33:return"EOF_IN_STRUCT";case 34:return 8;case 35:break;case 36:return"EDGE_STATE";case 37:return this.begin("class"),44;case 38:return this.popState(),8;case 39:break;case 40:return this.popState(),this.popState(),39;case 41:return this.begin("class-body"),37;case 42:return this.popState(),39;case 43:return"EOF_IN_STRUCT";case 44:return"EDGE_STATE";case 45:return"OPEN_IN_STRUCT";case 46:break;case 47:return"MEMBER";case 48:return 76;case 49:return 66;case 50:return 67;case 51:return 69;case 52:return 50;case 53:return 52;case 54:return 45;case 55:return 46;case 56:return 72;case 57:this.popState();break;case 58:return"GENERICTYPE";case 59:this.begin("generic");break;case 60:this.popState();break;case 61:return"BQUOTE_STR";case 62:this.begin("bqstring");break;case 63:return 68;case 64:return 68;case 65:return 68;case 66:return 68;case 67:return 60;case 68:return 60;case 69:return 62;case 70:return 62;case 71:return 61;case 72:return 59;case 73:return 63;case 74:return 64;case 75:return 65;case 76:return 21;case 77:return 42;case 78:return 95;case 79:return"DOT";case 80:return"PLUS";case 81:return 81;case 82:return 78;case 83:return 84;case 84:return 84;case 85:return 85;case 86:return"EQUALS";case 87:return"EQUALS";case 88:return 74;case 89:return 12;case 90:return 14;case 91:return"PUNCTUATION";case 92:return 80;case 93:return 97;case 94:return 83;case 95:return 83;case 96:return 9}},rules:[/^(?:.*direction\s+TB[^\n]*)/,/^(?:.*direction\s+BT[^\n]*)/,/^(?:.*direction\s+RL[^\n]*)/,/^(?:.*direction\s+LR[^\n]*)/,/^(?:%%(?!\{)*[^\n]*(\r?\n?)+)/,/^(?:%%[^\n]*(\r?\n)*)/,/^(?:accTitle\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*\{\s*)/,/^(?:[\}])/,/^(?:[^\}]*)/,/^(?:\s*(\r?\n)+)/,/^(?:\s+)/,/^(?:classDiagram-v2\b)/,/^(?:classDiagram\b)/,/^(?:\[\*\])/,/^(?:call[\s]+)/,/^(?:\([\s]*\))/,/^(?:\()/,/^(?:[^(]*)/,/^(?:\))/,/^(?:[^)]*)/,/^(?:["])/,/^(?:[^"]*)/,/^(?:["])/,/^(?:style\b)/,/^(?:namespace\b)/,/^(?:\s*(\r?\n)+)/,/^(?:\s+)/,/^(?:[{])/,/^(?:[}])/,/^(?:$)/,/^(?:\s*(\r?\n)+)/,/^(?:\s+)/,/^(?:\[\*\])/,/^(?:class\b)/,/^(?:\s*(\r?\n)+)/,/^(?:\s+)/,/^(?:[}])/,/^(?:[{])/,/^(?:[}])/,/^(?:$)/,/^(?:\[\*\])/,/^(?:[{])/,/^(?:[\n])/,/^(?:[^{}\n]*)/,/^(?:cssClass\b)/,/^(?:callback\b)/,/^(?:link\b)/,/^(?:click\b)/,/^(?:note for\b)/,/^(?:note\b)/,/^(?:<<)/,/^(?:>>)/,/^(?:href\b)/,/^(?:[~])/
fill: ${i.nodeBorder||i.classText};
stroke: none;
font-family: ${i.fontFamily};
font-size: 10px;
.title {
font-weight: bolder;
}
}
.nodeLabel, .edgeLabel {
color: ${i.classText};
}
.edgeLabel .label rect {
fill: ${i.mainBkg};
}
.label text {
fill: ${i.classText};
}
.edgeLabel .label span {
background: ${i.mainBkg};
}
.classTitle {
font-weight: bolder;
}
.node rect,
.node circle,
.node ellipse,
.node polygon,
.node path {
fill: ${i.mainBkg};
stroke: ${i.nodeBorder};
stroke-width: 1px;
}
.divider {
stroke: ${i.nodeBorder};
stroke-width: 1;
}
g.clickable {
cursor: pointer;
}
g.classGroup rect {
fill: ${i.mainBkg};
stroke: ${i.nodeBorder};
}
g.classGroup line {
stroke: ${i.nodeBorder};
stroke-width: 1;
}
.classLabel .box {
stroke: none;
stroke-width: 0;
fill: ${i.mainBkg};
opacity: 0.5;
}
.classLabel .label {
fill: ${i.nodeBorder};
font-size: 10px;
}
.relation {
stroke: ${i.lineColor};
stroke-width: 1;
fill: none;
}
.dashed-line{
stroke-dasharray: 3;
}
.dotted-line{
stroke-dasharray: 1 2;
}
#compositionStart, .composition {
fill: ${i.lineColor} !important;
stroke: ${i.lineColor} !important;
stroke-width: 1;
}
#compositionEnd, .composition {
fill: ${i.lineColor} !important;
stroke: ${i.lineColor} !important;
stroke-width: 1;
}
#dependencyStart, .dependency {
fill: ${i.lineColor} !important;
stroke: ${i.lineColor} !important;
stroke-width: 1;
}
#dependencyStart, .dependency {
fill: ${i.lineColor} !important;
stroke: ${i.lineColor} !important;
stroke-width: 1;
}
#extensionStart, .extension {
fill: transparent !important;
stroke: ${i.lineColor} !important;
stroke-width: 1;
}
#extensionEnd, .extension {
fill: transparent !important;
stroke: ${i.lineColor} !important;
stroke-width: 1;
}
#aggregationStart, .aggregation {
fill: transparent !important;
stroke: ${i.lineColor} !important;
stroke-width: 1;
}
#aggregationEnd, .aggregation {
fill: transparent !important;
stroke: ${i.lineColor} !important;
stroke-width: 1;
}
#lollipopStart, .lollipop {
fill: ${i.mainBkg} !important;
stroke: ${i.lineColor} !important;
stroke-width: 1;
}
#lollipopEnd, .lollipop {
fill: ${i.mainBkg} !important;
stroke: ${i.lineColor} !important;
stroke-width: 1;
}
.edgeTerminals {
font-size: 11px;
line-height: initial;
}
.classTitleText {
text-anchor: middle;
font-size: 18px;
fill: ${i.textColor};
}
`;let IKe=0;const usn=function(i,a,u,d,p){const v=function(oe){switch(oe){case p.db.relationType.AGGREGATION:return"aggregation";case p.db.relationType.EXTENSION:return"extension";case p.db.relationType.COMPOSITION:return"composition";case p.db.relationType.DEPENDENCY:return"dependency";case p.db.relationType.LOLLIPOP:return"lollipop"}};a.points=a.points.filter(oe=>!Number.isNaN(oe.y));const b=a.points,y=E7().x(function(oe){return oe.x}).y(function(oe){return oe.y}).curve(VF),E=i.append("path").attr("d",y(b)).attr("id","edge"+IKe).attr("class","relation");let _="";d.arrowMarkerAbsolute&&(_=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,_=_.replace(/\(/g,"\\("),_=_.replace(/\)/g,"\\)")),u.relation.lineType==1&&E.attr("class","relation dashed-line"),u.relation.lineType==10&&E.attr("class","relation dotted-line"),u.relation.type1!=="none"&&E.attr("marker-start","url("+_+"#"+v(u.relation.type1)+"Start)"),u.relation.type2!=="none"&&E.attr("marker-end","url("+_+"#"+v(u.relation.type2)+"End)");let A,P;const R=a.points.length;let B=So.calcLabelPosition(a.points);A=B.x,P=B.y;let j,W,ee,ie;if(R%2!==0&&R>1){let oe=So.calcCardinalityPosition(u.relation.type1!=="none",a.points,a.points[0]),be=So.calcCardinalityPosition(u.relation.type2!=="none",a.points,a.points[R-1]);Xe.debug("cardinality_1_point "+JSON.stringify(oe)),Xe.debug("cardinality_2_point "+JSON.stringify(be)),j=oe.x,W=oe.y,ee=be.x,ie=be.y}if(u.title!==void 0){const oe=i.append("g").attr("class","classLabel"),be=oe.append("text").attr("class","label").attr("x",A).attr("y",P).attr("fill","red").attr("text-anchor","middle").text(u.title);window.label=be;const ge=be.node().getBBox();oe.insert("rect",":first-child").attr("class","box").attr("x",ge.x-d.padding/2).attr("y",ge.y-d.padding/2).attr("width",ge.width+d.padding).attr("height",ge.height+d.padding)}Xe.info("Rendering relation "+JSON.stringify(u)),u.relationTitle1!==void 0&&u.relationTitle1!=="none"&&i.append("g").attr("class","cardinality").append("text").attr("class","type1").attr("x",j).attr("y",W).attr("fill","black").attr("font-size","6").text(u.relationTitle1),u.relationTitle2!==void 0&&u.relationTitle2!=="none"&&i.append("g").attr("class","cardinality").append("text").attr("class","type2").attr("x",ee).attr("y",ie).attr("fill","black").attr("font-size","6").text(u.relationTitle2),IKe++},lsn=function(i,a,u,d){Xe.debug("Rendering class ",a,u);const p=a.id,v={id:p,label:a.id,width:0,height:0},b=i.append("g").attr("id",d.db.lookUpDomId(p)).attr("class","classGroup");let y;a.link?y=b.append("svg:a").attr("xlink:href",a.link).attr("target",a.linkTarget).append("text").attr("y",u.textHeight+u.padding).attr("x",0):y=b.append("text").attr("y",u.textHeight+u.padding).attr("x",0);let E=!0;a.annotations.forEach(function(be){const ge=y.append("tspan").text("«"+be+"»");E||ge.attr("dy",u.textHeight),E=!1});let _=OKe(a);const A=y.append("tspan").text(_).attr("class","title");E||A.attr("dy",u.textHeight);const P=y.node().getBBox().height;let R,B,j;if(a.members.length>0){R=b.append("line").attr("x1",0).attr("y1",u.padding+P+u.dividerMargin/2).attr("y2",u.padding+P+u.dividerMargin/2);const be=b.append("text").attr("x",u.padding).attr("y",P+u.dividerMargin+u.textHeight).attr("fill","white").attr("class","classText");E=!0,a.members.forEach(function(ge){NKe(be,ge,E,u),E=!1}),B=be.node().getBBox()}if(a.methods.length>0){j=b.append("line").attr("x1",0).attr("y1",u.padding+P+u.dividerMargin+B.height).attr("y2",u.padding+P+u.dividerMargin+B.height);const be=b.append("text").attr("x",u.padding).attr("y",P+2*u.dividerMargin+B.height+u.textHeight).attr("fill","white").attr("class","classText");E=!0,a.methods.forEach(function(ge){NKe(be,ge,E,u),E=!1})}const W=b.node().getBBox();var ee=" ";a.cssClasses.length>0&&(ee=ee+a.cssClasses.join(" "));const oe=b.insert("rect",":first-child").attr("x",0).attr("y",0).attr("width",W.width+2*u.padding).attr("height",W.height+u.padding+.5*u.dividerMargin).attr("class",ee).node().getBBox().width;return y.node().childNodes.forEach(function(be){be.setAttribu
`);E.forEach(function(R){Xe.debug(`Adding line: ${R}`),y.append("tspan").text(R).attr("class","title").attr("dy",u.textHeight)});const _=b.node().getBBox(),P=b.insert("rect",":first-child").attr("x",0).attr("y",0).attr("width",_.width+2*u.padding).attr("height",_.height+E.length*u.textHeight+u.padding+.5*u.dividerMargin).node().getBBox().width;return y.node().childNodes.forEach(function(R){R.setAttribute("x",(P-R.getBBox().width)/2)}),v.width=P,v.height=_.height+E.length*u.textHeight+u.padding+.5*u.dividerMargin,v},NKe=function(i,a,u,d){const{displayText:p,cssStyle:v}=a.getDisplayDetails(),b=i.append("tspan").attr("x",d.padding).text(p);v!==""&&b.attr("style",a.cssStyle),u||b.attr("dy",d.textHeight)},Yve={getClassTitleString:OKe,drawClass:lsn,drawEdge:usn,drawNote:hsn};let PJ={};const BJ=20,nj=function(i){const a=Object.entries(PJ).find(u=>u[1].label===i);if(a)return a[0]},fsn=function(i){i.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"),i.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"),i.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"),i.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"),i.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"),i.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"),i.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"),i.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")},dsn=Object.freeze(Object.defineProperty({__proto__:null,diagram:{parser:TKe,db:NJ,renderer:{draw:function(i,a,u,d){const p=qt().class;PJ={},Xe.info("Rendering diagram "+i);const v=qt().securityLevel;let b;v==="sandbox"&&(b=Dr("#i"+a));const y=Dr(v==="sandbox"?b.nodes()[0].contentDocument.body:"body"),E=y.select(`[id='${a}']`);fsn(E);const _=new R0({multigraph:!0});_.setGraph({isMultiGraph:!0}),_.setDefaultEdgeLabel(function(){return{}});const A=d.db.getClasses(),P=Object.keys(A);for(const oe of P){const be=A[oe],ge=Yve.drawClass(E,be,p,d);PJ[ge.id]=ge,_.setNode(ge.id,ge),Xe.info("Org height: "+ge.height)}d.db.getRelations().forEach(function(oe){Xe.info("tjoho"+nj(oe.id1)+nj(oe.id2)+JSON.stringify(oe)),_.setEdge(nj(oe.id1),nj(oe.id2),{relation:oe},oe.title||"DEFAULT")}),d.db.getNotes().forEach(function(oe){Xe.debug(`Adding note: ${JSON.stringify(oe)}`);const be=Yve.drawNote(E,oe,p,d);PJ[be.id]=be,_.setNode(be.id,be),oe.class&&oe.class in A&&_.setEdge(oe.id,nj(oe.class),{relation:{id1:oe.id,id2:oe.class,relation:{type1:"none",type2:"none",lineType:10}}},"DEFAULT")}),XD(_),_.nodes().forEach(function(oe){oe!==void 0&&_.node(oe)!==void 0&&(Xe.debug("Node "+oe+": "+JSON.stringify(_.node(oe))),y.select("#"+(d.db.lookUpDomId(oe)||oe)).attr("transform","translate("+(_.node(oe).x-_.node(oe).width/2)+","+(_.node(oe).y-_.node(oe).height/2)+" )"))}),_.edges().forEach(funct
`),p.style===void 0&&(v.style=v.style||"stroke: #333; stroke-width: 1.5px;fill:none"),v.labelStyle=v.labelStyle.replace("color:","fill:"))),a.setEdge(p.id1,p.id2,v,d)})},msn=function(i){Qve={...Qve,...i}},vsn=async function(i,a,u,d){Xe.info("Drawing class - ",a);const p=qt().flowchart??qt().class,v=qt().securityLevel;Xe.info("config:",p);const b=(p==null?void 0:p.nodeSpacing)??50,y=(p==null?void 0:p.rankSpacing)??50,E=new R0({multigraph:!0,compound:!0}).setGraph({rankdir:d.db.getDirection(),nodesep:b,ranksep:y,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}}),_=d.db.getNamespaces(),A=d.db.getClasses(),P=d.db.getRelations(),R=d.db.getNotes();Xe.info(P),gsn(_,E,a,d),PKe(A,E,a,d),bsn(P,E),psn(R,E,P.length+1,A);let B;v==="sandbox"&&(B=Dr("#i"+a));const j=Dr(v==="sandbox"?B.nodes()[0].contentDocument.body:"body"),W=j.select(`[id="${a}"]`),ee=j.select("#"+a+" g");if(await ave(ee,E,["aggregation","extension","composition","dependency","lollipop"],"classDiagram",a),So.insertTitle(W,"classTitleText",(p==null?void 0:p.titleTopMargin)??5,d.db.getDiagramTitle()),x9(E,W,p==null?void 0:p.diagramPadding,p==null?void 0:p.useMaxWidth),!(p!=null&&p.htmlLabels)){const ie=v==="sandbox"?B.nodes()[0].contentDocument:document,oe=ie.querySelectorAll('[id="'+a+'"] .edgeLabel .label');for(const be of oe){const ge=be.getBBox(),ae=ie.createElementNS("http://www.w3.org/2000/svg","rect");ae.setAttribute("rx",0),ae.setAttribute("ry",0),ae.setAttribute("width",ge.width),ae.setAttribute("height",ge.height),be.insertBefore(ae,be.firstChild)}}};function BKe(i){let a;switch(i){case 0:a="aggregation";break;case 1:a="extension";break;case 2:a="composition";break;case 3:a="dependency";break;case 4:a="lollipop";break;default:a="none"}return a}const wsn=Object.freeze(Object.defineProperty({__proto__:null,diagram:{parser:TKe,db:NJ,renderer:{setConf:msn,draw:vsn},styles:DKe,init:i=>{i.class||(i.class={}),i.class.arrowMarkerAbsolute=i.arrowMarkerAbsolute,NJ.clear()}}},Symbol.toStringTag,{value:"Module"}));var Jve=function(){var i=function(Ie,Se,Ce,ke){for(Ce=Ce||{},ke=Ie.length;ke--;Ce[Ie[ke]]=Se);return Ce},a=[1,2],u=[1,3],d=[1,4],p=[2,4],v=[1,9],b=[1,11],y=[1,15],E=[1,16],_=[1,17],A=[1,18],P=[1,30],R=[1,19],B=[1,20],j=[1,21],W=[1,22],ee=[1,23],ie=[1,25],oe=[1,26],be=[1,27],ge=[1,28],ae=[1,29],ne=[1,32],se=[1,33],de=[1,34],X=[1,35],pe=[1,31],G=[1,4,5,15,16,18,20,21,23,24,25,26,27,28,32,34,36,37,41,44,45,46,47,50],xe=[1,4,5,13,14,15,16,18,20,21,23,24,25,26,27,28,32,34,36,37,41,44,45,46,47,50],U=[4,5,15,16,18,20,21,23,24,25,26,27,28,32,34,36,37,41,44,45,46,47,50],Be={trace:function(){},yy:{},symbols_:{error:2,start:3,SPACE:4,NL:5,SD:6,document:7,line:8,statement:9,classDefStatement:10,cssClassStatement:11,idStatement:12,DESCR:13,"-->":14,HIDE_EMPTY:15,scale:16,WIDTH:17,COMPOSIT_STATE:18,STRUCT_START:19,STRUCT_STOP:20,STATE_DESCR:21,AS:22,ID:23,FORK:24,JOIN:25,CHOICE:26,CONCURRENT:27,note:28,notePosition:29,NOTE_TEXT:30,direction:31,acc_title:32,acc_title_value:33,acc_descr:34,acc_descr_value:35,acc_descr_multiline_value:36,classDef:37,CLASSDEF_ID:38,CLASSDEF_STYLEOPTS:39,DEFAULT:40,class:41,CLASSENTITY_IDS:42,STYLECLASS:43,direction_tb:44,direction_bt:45,direction_rl:46,direction_lr:47,eol:48,";":49,EDGE_STATE:50,STYLE_SEPARATOR:51,left_of:52,right_of:53,$accept:0,$end:1},terminals_:{2:"error",4:"SPACE",5:"NL",6:"SD",13:"DESCR",14:"-->",15:"HIDE_EMPTY",16:"scale",17:"WIDTH",18:"COMPOSIT_STATE",19:"STRUCT_START",20:"STRUCT_STOP",21:"STATE_DESCR",22:"AS",23:"ID",24:"FORK",25:"JOIN",26:"CHOICE",27:"CONCURRENT",28:"note",30:"NOTE_TEXT",32:"acc_title",33:"acc_title_value",34:"acc_descr",35:"acc_descr_value",36:"acc_descr_multiline_value",37:"classDef",38:"CLASSDEF_ID",39:"CLASSDEF_STYLEOPTS",40:"DEFAULT",41:"class",42:"CLASSENTITY_IDS",43:"STYLECLASS",44:"direction_tb",45:"direction_bt",46:"direction_rl",47:"direction_lr",49:";",50:"EDGE_STATE",51:"STYLE_SEPARATOR",52:"left_of",53:"right_of"},productions_:[0,[3,2],[3,2],[3,2],[7,0],[7,2],[8,2],[8,1],[8,1],[9,1],[9,1],[9,1],[9,2],[9,3],[9,4],[9,1],[9,2],[9,1],[9,4],[9,3],[9,6],[9,1],[9,1],[9,1],[9,1],[9,4]
`+Ze.showPosition()+`
Expecting `+Rn.join(", ")+", got '"+(this.terminals_[xt]||xt)+"'":zn="Parse error on line "+(Et+1)+": Unexpected "+(xt==yt?"end of input":"'"+(this.terminals_[xt]||xt)+"'"),this.parseError(zn,{text:Ze.match,token:this.terminals_[xt]||xt,line:Ze.yylineno,loc:Nn,expected:Rn})}if(wi[0]instanceof Array&&wi.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Ri+", token: "+xt);switch(wi[0]){case 1:ke.push(xt),zt.push(Ze.yytext),Ne.push(Ze.yylloc),ke.push(wi[1]),xt=null,Wt=Ze.yyleng,Tt=Ze.yytext,Et=Ze.yylineno,Nn=Ze.yylloc;break;case 2:if(Tr=this.productions_[wi[1]][1],Hs.$=zt[zt.length-Tr],Hs._$={first_line:Ne[Ne.length-(Tr||1)].first_line,last_line:Ne[Ne.length-1].last_line,first_column:Ne[Ne.length-(Tr||1)].first_column,last_column:Ne[Ne.length-1].last_column},ht&&(Hs._$.range=[Ne[Ne.length-(Tr||1)].range[0],Ne[Ne.length-1].range[1]]),ia=this.performAction.apply(Hs,[Tt,Wt,Et,Dt.yy,wi[1],zt,Ne].concat(Bt)),typeof ia<"u")return ia;Tr&&(ke=ke.slice(0,-1*Tr*2),zt=zt.slice(0,-1*Tr),Ne=Ne.slice(0,-1*Tr)),ke.push(this.productions_[wi[1]][0]),zt.push(Hs.$),Ne.push(Hs._$),On=pn[ke[ke.length-2]][ke[ke.length-1]],ke.push(On);break;case 3:return!0}}return!0}},Pe=function(){var Ie={EOF:1,parseError:function(Ce,ke){if(this.yy.parser)this.yy.parser.parseError(Ce,ke);else throw new Error(Ce)},setInput:function(Se,Ce){return this.yy=Ce||this.yy||{},this._input=Se,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var Se=this._input[0];this.yytext+=Se,this.yyleng++,this.offset++,this.match+=Se,this.matched+=Se;var Ce=Se.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),Se},unput:function(Se){var Ce=Se.length,ke=Se.split(/(?:\r\n?|\n)/g);this._input=Se+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-Ce),this.offset-=Ce;var Ke=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 zt=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===Ke.length?this.yylloc.first_column:0)+Ke[Ke.length-ke.length].length-ke[0].length:this.yylloc.first_column-Ce},this.options.ranges&&(this.yylloc.range=[zt[0],zt[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(Se){this.unput(this.match.slice(Se))},pastInput:function(){var Se=this.matched.substr(0,this.matched.length-this.match.length);return(Se.length>20?"...":"")+Se.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var Se=this.match;return Se.length<20&&(Se+=this._input.substr(0,20-Se.length)),(Se.substr(0,20)+(Se.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var Se=this.pastInput(),Ce=new Array(Se.length+1).join("-");return Se+this.upcomingInput()+`
`+Ce+"^"},test_match:function(Se,Ce){var ke,Ke,zt;if(this.options.backtrack_lexer&&(zt={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&&(zt.yylloc.range=this.yylloc.range.slice(0))),Ke=Se[0].match(/(?:\r\n?|\n).*/g),Ke&&(this.yylineno+=Ke.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:Ke?Ke[Ke.length-1].length-Ke[Ke.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+Se[0].length},this.yytext+=Se[0],this.match+=Se[0],this.matches=Se,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(Se[0].length),this.matched+=Se[0],ke=this.performAction.call(this,this.yy,this,Ce,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),ke)return ke;if(this._backtrack){for(var Ne in zt)this[Ne]=zt[Ne];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var Se,Ce,ke,Ke;this._more||(this.yytext="",this.match="");for(var zt=this._currentRules(),Ne=0;Ne<zt.length;Ne++)if(ke=this._input.match(this.rules[zt[Ne]]),ke&&(!Ce||ke[0].length>Ce[0].length)){if(Ce=ke,Ke=Ne,this.options.backtrack_lexer){if(Se=this.test_match(ke,zt[Ne]),Se!==!1)return Se;if(this._backtrack){Ce=!1;continue}else return!1}else if(!this.options.flex)break}return Ce?(Se=this.test_match(Ce,zt[Ke]),Se!==!1?Se:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},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,ke,Ke,zt){switch(Ke){case 0:return 40;case 1:return 44;case 2:return 45;case 3:return 46;case 4:return 47;case 5:break;case 6:break;case 7:return 5;case 8:break;case 9:break;case 10:break;case 11:break;case 12:return this.pushState("SCALE"),16;case 13:return 17;case 14:this.popState();break;case 15:return this.begin("acc_title"),32;case 16:return this.popState(),"acc_title_value";case 17:return this.begin("acc_descr"),34;case 18:return this.popState(),"acc_descr_value";case 19:this.begin("acc_descr_multiline");break;case 20:this.popState();break;case 21:return"acc_descr_multiline_value";case 22:return this.pushState("CLASSDEF"),37;case 23:return this.popState(),this.pushState("CLASSDEFID"),"DEFAULT_CLASSDEF_ID";case 24:return this.popState(),this.pushState("CLASSDEFID"),38;case 25:return this.popState(),39;case 26:return this.pushState("CLASS"),41;case 27:return this.popState(),this.pushState("CLASS_STYLE"),42;case 28:return this.popState(),43;case 29:return this.pushState("SCALE"),16;case 30:return 17;case 31:this.popState();break;case 32:this.pushState("STATE");break;case 33:return this.popState(),ke.yytext=ke.yytext.slice(0,-8).trim(),24;case 34:return this.popState(),ke.yytext=ke.yytext.slice(0,-8).trim(),25;case 35:return this.popState(),ke.yytext=ke.yytext.slice(0,-10).trim(),26;case 36:return this.popState(),ke.yytext=ke.yytext.slice(0,-8).trim(),24;case 37:return this.popState(),ke.yytext=ke.yytext.slice(0,-8).trim(),25;case 38:return this.popState(),ke.yytext=ke.yytext.slice(0,-10).trim(),26;case 39:return 44;case 40:return 45;case 41:return 46;case 42:return 47;case 43:this.pushState("STATE_STRING");break;case 44:return this.pushState("STATE_ID"),"AS";case 45:return this.popState(),"ID";case 46:this.popState();break;case 47:return"STATE_DESCR";case 48:return 18;case 49:this.popState();break;case 50:return this.popState(),this.pushState("struct"),19;case 51:break;case 52:return this.popState(),20;case 53:break;case 54:return this.begin("NOTE"),28;case 55:return this.popState(),this.pushState("NOTE_ID"),52;case 56:return this.popState(),this.pushState("NOTE_ID"),53;case 57:this.popState(),this.pushState("FLOATING_NOTE");break;case 58:return this.popState(),this.pushState("FLOATING_NOTE_ID"),"AS";case 59:break;case 60:return"NOTE_TEXT";case 61:return this.popState(),"ID";case 62:return this.popState(),this.pushState("NOTE_TEXT"),23;case 63:return this.popState(),ke.yytext=ke.yytext.substr(2).trim(),30;case 64:return this.popState(),ke.yytext=ke.yytext.slice(0,-8).trim(),30;case 65:return 6;case 66:return 6;case 67:return 15;case 68:return 50;case 69:return 23;case 70:return ke.yytext=ke.yytext.trim(),13;case 71:return 14;case 72:return 27;case 73:return 51;case 74:return 5;case 75: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,/^(?:%%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n]+)/i,/^(?:[\s]+)/i,/^(?:((?!\n)\s)+)/i,/^(?:#[^\n]*)/i,/^(?:%[^\n]*)/i,/^(?:scale\s+)/i,/^(?:\d+)/i,/^(?:\s+width\b)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:classDef\s+)/i,/^(?:DEFAULT\s+)/i,/^(?:\w+\s+)/i,/^(?:[^\n]*)/i,/^(?:class\s+)/i,/^(?:
defs #statediagram-barbEnd {
fill: ${i.transitionColor};
stroke: ${i.transitionColor};
}
g.stateGroup text {
fill: ${i.nodeBorder};
stroke: none;
font-size: 10px;
}
g.stateGroup text {
fill: ${i.textColor};
stroke: none;
font-size: 10px;
}
g.stateGroup .state-title {
font-weight: bolder;
fill: ${i.stateLabelColor};
}
g.stateGroup rect {
fill: ${i.mainBkg};
stroke: ${i.nodeBorder};
}
g.stateGroup line {
stroke: ${i.lineColor};
stroke-width: 1;
}
.transition {
stroke: ${i.transitionColor};
stroke-width: 1;
fill: none;
}
.stateGroup .composit {
fill: ${i.background};
border-bottom: 1px
}
.stateGroup .alt-composit {
fill: #e0e0e0;
border-bottom: 1px
}
.state-note {
stroke: ${i.noteBorderColor};
fill: ${i.noteBkgColor};
text {
fill: ${i.noteTextColor};
stroke: none;
font-size: 10px;
}
}
.stateLabel .box {
stroke: none;
stroke-width: 0;
fill: ${i.mainBkg};
opacity: 0.5;
}
.edgeLabel .label rect {
fill: ${i.labelBackgroundColor};
opacity: 0.5;
}
.edgeLabel .label text {
fill: ${i.transitionLabelColor||i.tertiaryTextColor};
}
.label div .edgeLabel {
color: ${i.transitionLabelColor||i.tertiaryTextColor};
}
.stateLabel text {
fill: ${i.stateLabelColor};
font-size: 10px;
font-weight: bold;
}
.node circle.state-start {
fill: ${i.specialStateColor};
stroke: ${i.specialStateColor};
}
.node .fork-join {
fill: ${i.specialStateColor};
stroke: ${i.specialStateColor};
}
.node circle.state-end {
fill: ${i.innerEndBackground};
stroke: ${i.background};
stroke-width: 1.5
}
.end-state-inner {
fill: ${i.compositeBackground||i.background};
// stroke: ${i.background};
stroke-width: 1.5
}
.node rect {
fill: ${i.stateBkg||i.mainBkg};
stroke: ${i.stateBorder||i.nodeBorder};
stroke-width: 1px;
}
.node polygon {
fill: ${i.mainBkg};
stroke: ${i.stateBorder||i.nodeBorder};;
stroke-width: 1px;
}
#statediagram-barbEnd {
fill: ${i.lineColor};
}
.statediagram-cluster rect {
fill: ${i.compositeTitleBackground};
stroke: ${i.stateBorder||i.nodeBorder};
stroke-width: 1px;
}
.cluster-label, .nodeLabel {
color: ${i.stateLabelColor};
}
.statediagram-cluster rect.outer {
rx: 5px;
ry: 5px;
}
.statediagram-state .divider {
stroke: ${i.stateBorder||i.nodeBorder};
}
.statediagram-state .title-state {
rx: 5px;
ry: 5px;
}
.statediagram-cluster.statediagram-cluster .inner {
fill: ${i.compositeBackground||i.background};
}
.statediagram-cluster.statediagram-cluster-alt .inner {
fill: ${i.altBackground?i.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: ${i.altBackground?i.altBackground:"#efefef"};
}
.note-edge {
stroke-dasharray: 5;
}
.statediagram-note rect {
fill: ${i.noteBkgColor};
stroke: ${i.noteBorderColor};
stroke-width: 1px;
rx: 0;
ry: 0;
}
.statediagram-note rect {
fill: ${i.noteBkgColor};
stroke: ${i.noteBorderColor};
stroke-width: 1px;
rx: 0;
ry: 0;
}
.statediagram-note text {
fill: ${i.noteTextColor};
}
.statediagram-note .nodeLabel {
color: ${i.noteTextColor};
}
.statediagram .edgeLabel {
color: red; // ${i.noteTextColor};
}
#dependencyStart, #dependencyEnd {
fill: ${i.lineColor};
stroke: ${i.lineColor};
stroke-width: 1;
}
.statediagramTitleText {
text-anchor: middle;
font-size: 18px;
fill: ${i.textColor};
}
`,swe={},Hsn=(i,a)=>{swe[i]=a},Usn=i=>swe[i],JKe=()=>Object.keys(swe),Vsn={get:Usn,set:Hsn,keys:JKe,size:()=>JKe().length},Gsn=i=>i.append("circle").attr("class","start-state").attr("r",qt().state.sizeUnit).attr("cx",qt().state.padding+qt().state.sizeUnit).attr("cy",qt().state.padding+qt().state.sizeUnit),Ksn=i=>i.append("line").style("stroke","grey").style("stroke-dasharray","3").attr("x1",qt().state.textHeight).attr("class","divider").attr("x2",qt().state.textHeight*2).attr("y1",0).attr("y2",0),Wsn=(i,a)=>{const u=i.append("text").attr("x",2*qt().state.padding).attr("y",qt().state.textHeight+2*qt().state.padding).attr("font-size",qt().state.fontSize).attr("class","state-title").text(a.id),d=u.node().getBBox();return i.insert("rect",":first-child").attr("x",qt().state.padding).attr("y",qt().state.padding).attr("width",d.width+2*qt().state.padding).attr("height",d.height+2*qt().state.padding).attr("rx",qt().state.radius),u},Ysn=(i,a)=>{const u=function(R,B,j){const W=R.append("tspan").attr("x",2*qt().state.padding).text(B);j||W.attr("dy",qt().state.textHeight)},p=i.append("text").attr("x",2*qt().state.padding).attr("y",qt().state.textHeight+1.3*qt().state.padding).attr("font-size",qt().state.fontSize).attr("class","state-title").text(a.descriptions[0]).node().getBBox(),v=p.height,b=i.append("text").attr("x",qt().state.padding).attr("y",v+qt().state.padding*.4+qt().state.dividerMargin+qt().state.textHeight).attr("class","state-description");let y=!0,E=!0;a.descriptions.forEach(function(R){y||(u(b,R,E),E=!1),y=!1});const _=i.append("line").attr("x1",qt().state.padding).attr("y1",qt().state.padding+v+qt().state.dividerMargin/2).attr("y2",qt().state.padding+v+qt().state.dividerMargin/2).attr("class","descr-divider"),A=b.node().getBBox(),P=Math.max(A.width,p.width);return _.attr("x2",P+3*qt().state.padding),i.insert("rect",":first-child").attr("x",qt().state.padding).attr("y",qt().state.padding).attr("width",P+2*qt().state.padding).attr("height",A.height+v+2*qt().state.padding).attr("rx",qt().state.radius),i},Xsn=(i,a,u)=>{const d=qt().state.padding,p=2*qt().state.padding,v=i.node().getBBox(),b=v.width,y=v.x,E=i.append("text").attr("x",0).attr("y",qt().state.titleShift).attr("font-size",qt().state.fontSize).attr("class","state-title").text(a.id),A=E.node().getBBox().width+p;let P=Math.max(A,b);P===b&&(P=P+p);let R;const B=i.node().getBBox();a.doc,R=y-d,A>b&&(R=(b-P)/2+d),Math.abs(y-B.x)<d&&A>b&&(R=y-(A-b)/2);const j=1-qt().state.textHeight;return i.insert("rect",":first-child").attr("x",R).attr("y",j).attr("class",u?"alt-composit":"composit").attr("width",P).attr("height",B.height+qt().state.textHeight+qt().state.titleShift+1).attr("rx","0"),E.attr("x",R+d),A<=b&&E.attr("x",y+(P-p)/2-A/2+d),i.insert("rect",":first-child").attr("x",R).attr("y",qt().state.titleShift-qt().state.textHeight-qt().state.padding).attr("width",P).attr("height",qt().state.textHeight*3).attr("rx",qt().state.radius),i.insert("rect",":first-child").attr("x",R).attr("y",qt().state.titleShift-qt().state.textHeight-qt().state.padding).attr("width",P).attr("height",B.height+3+2*qt().state.textHeight).attr("rx",qt().state.radius),i},Qsn=i=>(i.append("circle").attr("class","end-state-outer").attr("r",qt().state.sizeUnit+qt().state.miniPadding).attr("cx",qt().state.padding+qt().state.sizeUnit+qt().state.miniPadding).attr("cy",qt().state.padding+qt().state.sizeUnit+qt().state.miniPadding),i.append("circle").attr("class","end-state-inner").attr("r",qt().state.sizeUnit).attr("cx",qt().state.padding+qt().state.sizeUnit+2).attr("cy",qt().state.padding+qt().state.sizeUnit+2)),Jsn=(i,a)=>{let u=qt().state.forkWidth,d=qt().state.forkHeight;if(a.parentId){let p=u;u=d,d=p}return i.append("rect").style("stroke","black").style("fill","black").attr("width",u).attr("height",d).attr("x",qt().state.padding).attr("y",qt().state.padding)},Zsn=(i,a,u,d)=>{let p=0;const v=d.append("text");v.style("text-anchor","start"),v.attr("class","noteText");let b=i.replace(/\r\n/g,"<br/>");b=b.replace(/\n/g,"<br/>");const y=b.split(oi.lineBreakRegex);let E=1.25*qt().state.noteMargin;for(const
`+X.showPosition()+`
Expecting `+Ne.join(", ")+", got '"+(this.terminals_[Pe]||Pe)+"'":pn="Parse error on line "+(ge+1)+": Unexpected "+(Pe==se?"end of input":"'"+(this.terminals_[Pe]||Pe)+"'"),this.parseError(pn,{text:X.match,token:this.terminals_[Pe]||Pe,line:X.yylineno,loc:xe,expected:Ne})}if(Ie[0]instanceof Array&&Ie.length>1)throw new Error("Parse Error: multiple actions possible at state: "+je+", token: "+Pe);switch(Ie[0]){case 1:j.push(Pe),ee.push(X.yytext),ie.push(X.yylloc),j.push(Ie[1]),Pe=null,ae=X.yyleng,be=X.yytext,ge=X.yylineno,xe=X.yylloc;break;case 2:if(Ke=this.productions_[Ie[1]][1],Ce.$=ee[ee.length-Ke],Ce._$={first_line:ie[ie.length-(Ke||1)].first_line,last_line:ie[ie.length-1].last_line,first_column:ie[ie.length-(Ke||1)].first_column,last_column:ie[ie.length-1].last_column},U&&(Ce._$.range=[ie[ie.length-(Ke||1)].range[0],ie[ie.length-1].range[1]]),Se=this.performAction.apply(Ce,[be,ae,ge,pe.yy,Ie[1],ee,ie].concat(de)),typeof Se<"u")return Se;Ke&&(j=j.slice(0,-1*Ke*2),ee=ee.slice(0,-1*Ke),ie=ie.slice(0,-1*Ke)),j.push(this.productions_[Ie[1]][0]),ee.push(Ce.$),ie.push(Ce._$),zt=oe[j[j.length-2]][j[j.length-1]],j.push(zt);break;case 3:return!0}}return!0}},_=function(){var P={EOF:1,parseError:function(B,j){if(this.yy.parser)this.yy.parser.parseError(B,j);else throw new Error(B)},setInput:function(R,B){return this.yy=B||this.yy||{},this._input=R,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 R=this._input[0];this.yytext+=R,this.yyleng++,this.offset++,this.match+=R,this.matched+=R;var B=R.match(/(?:\r\n?|\n).*/g);return B?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),R},unput:function(R){var B=R.length,j=R.split(/(?:\r\n?|\n)/g);this._input=R+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-B),this.offset-=B;var W=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),j.length-1&&(this.yylineno-=j.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:j?(j.length===W.length?this.yylloc.first_column:0)+W[W.length-j.length].length-j[0].length:this.yylloc.first_column-B},this.options.ranges&&(this.yylloc.range=[ee[0],ee[0]+this.yyleng-B]),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(R){this.unput(this.match.slice(R))},pastInput:function(){var R=this.matched.substr(0,this.matched.length-this.match.length);return(R.length>20?"...":"")+R.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var R=this.match;return R.length<20&&(R+=this._input.substr(0,20-R.length)),(R.substr(0,20)+(R.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var R=this.pastInput(),B=new Array(R.length+1).join("-");return R+this.upcomingInput()+`
`+B+"^"},test_match:function(R,B){var j,W,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))),W=R[0].match(/(?:\r\n?|\n).*/g),W&&(this.yylineno+=W.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:W?W[W.length-1].length-W[W.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+R[0].length},this.yytext+=R[0],this.match+=R[0],this.matches=R,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(R[0].length),this.matched+=R[0],j=this.performAction.call(this,this.yy,this,B,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),j)return j;if(this._backtrack){for(var ie in ee)this[ie]=ee[ie];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var R,B,j,W;this._more||(this.yytext="",this.match="");for(var ee=this._currentRules(),ie=0;ie<ee.length;ie++)if(j=this._input.match(this.rules[ee[ie]]),j&&(!B||j[0].length>B[0].length)){if(B=j,W=ie,this.options.backtrack_lexer){if(R=this.test_match(j,ee[ie]),R!==!1)return R;if(this._backtrack){B=!1;continue}else return!1}else if(!this.options.flex)break}return B?(R=this.test_match(B,ee[W]),R!==!1?R:!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 B=this.next();return B||this.lex()},begin:function(B){this.conditionStack.push(B)},popState:function(){var B=this.conditionStack.length-1;return B>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(B){return B=this.conditionStack.length-1-Math.abs(B||0),B>=0?this.conditionStack[B]:"INITIAL"},pushState:function(B){this.begin(B)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(B,j,W,ee){switch(W){case 0:break;case 1:break;case 2:return 10;case 3:break;case 4:break;case 5:return 4;case 6:return 11;case 7:return this.begin("acc_title"),12;case 8:return this.popState(),"acc_title_value";case 9:return this.begin("acc_descr"),14;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:return 17;case 15:return 18;case 16:return 19;case 17:return":";case 18:return 6;case 19:return"INVALID"}},rules:[/^(?:%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:#[^\n]*)/i,/^(?:journey\b)/i,/^(?:title\s[^#\n;]+)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:section\s[^#:\n;]+)/i,/^(?:[^#:\n;]+)/i,/^(?::[^#\n;]+)/i,/^(?::)/i,/^(?:$)/i,/^(?:.)/i],conditions:{acc_descr_multiline:{rules:[12,13],inclusive:!1},acc_descr:{rules:[10],inclusive:!1},acc_title:{rules:[8],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7,9,11,14,15,16,17,18,19],inclusive:!0}}};return P}();E.lexer=_;function A(){this.yy={}}return A.prototype=E,E.Parser=A,new A}();hwe.parser=hwe;const San=hwe;let aI="";const fwe=[],cj=[],uj=[],_an=function(){fwe.length=0,cj.length=0,aI="",uj.length=0,Rg()},Aan=function(i){aI=i,fwe.push(i)},Lan=function(){return fwe},Man=function(){let i=hWe();const a=100;let u=0;for(;!i&&u<a;)i=hWe(),u++;return cj.push(...uj),cj},Dan=function(){const i=[];return cj.forEach(u=>{u.people&&i.push(...u.people)}),[...new Set(i)].sort()},Ian=function(i,a){const u=a.substr(1).split(":");let d=0,p=[];u.length===1?(d=Number(u[0]),p=[]):(d=Number(u[0]),p=u[1].split(","));const v=p.map(y=>y.trim()),b={section:aI,type:aI,people:v,task:i,score:d};uj.push(b)},Oan=function(i){const a={section:aI,type:aI,description:i,task:i,classes:[]};cj.push(a)},hWe=function(){const i=function(u){return uj[u].processed};let a=!0;for(const[u,d]of uj.entries())i(u),a=a&&d.processed;return a},fWe={getConfig:()=>qt().journey,clear:_an,setDiagramTitle:pm,getDiagramTitle:Op,setAccTitle:jg,getAccTitle:Mp,setAccDescription:Dp,getAccDescription:Ip,addSection:Aan,getSections:Lan,getTasks:Man,addTask:Ian,addTaskOrg:Oan,getActors:function(){return Dan()}},Nan=i=>`.label {
font-family: 'trebuchet ms', verdana, arial, sans-serif;
font-family: var(--mermaid-font-family);
color: ${i.textColor};
}
.mouth {
stroke: #666;
}
line {
stroke: ${i.textColor}
}
.legend {
fill: ${i.textColor};
}
.label text {
fill: #333;
}
.label {
color: ${i.textColor}
}
.face {
${i.faceColor?`fill: ${i.faceColor}`:"fill: #FFF8DC"};
stroke: #999;
}
.node rect,
.node circle,
.node ellipse,
.node polygon,
.node path {
fill: ${i.mainBkg};
stroke: ${i.nodeBorder};
stroke-width: 1px;
}
.node .label {
text-align: center;
}
.node.clickable {
cursor: pointer;
}
.arrowheadPath {
fill: ${i.arrowheadColor};
}
.edgePath .path {
stroke: ${i.lineColor};
stroke-width: 1.5px;
}
.flowchart-link {
stroke: ${i.lineColor};
fill: none;
}
.edgeLabel {
background-color: ${i.edgeLabelBackground};
rect {
opacity: 0.5;
}
text-align: center;
}
.cluster rect {
}
.cluster text {
fill: ${i.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: ${i.tertiaryColor};
border: 1px solid ${i.border2};
border-radius: 2px;
pointer-events: none;
z-index: 100;
}
.task-type-0, .section-type-0 {
${i.fillType0?`fill: ${i.fillType0}`:""};
}
.task-type-1, .section-type-1 {
${i.fillType0?`fill: ${i.fillType1}`:""};
}
.task-type-2, .section-type-2 {
${i.fillType0?`fill: ${i.fillType2}`:""};
}
.task-type-3, .section-type-3 {
${i.fillType0?`fill: ${i.fillType3}`:""};
}
.task-type-4, .section-type-4 {
${i.fillType0?`fill: ${i.fillType4}`:""};
}
.task-type-5, .section-type-5 {
${i.fillType0?`fill: ${i.fillType5}`:""};
}
.task-type-6, .section-type-6 {
${i.fillType0?`fill: ${i.fillType6}`:""};
}
.task-type-7, .section-type-7 {
${i.fillType0?`fill: ${i.fillType7}`:""};
}
.actor-0 {
${i.actor0?`fill: ${i.actor0}`:""};
}
.actor-1 {
${i.actor1?`fill: ${i.actor1}`:""};
}
.actor-2 {
${i.actor2?`fill: ${i.actor2}`:""};
}
.actor-3 {
${i.actor3?`fill: ${i.actor3}`:""};
}
.actor-4 {
${i.actor4?`fill: ${i.actor4}`:""};
}
.actor-5 {
${i.actor5?`fill: ${i.actor5}`:""};
}
`,dwe=function(i,a){return qQ(i,a)},Pan=function(i,a){const d=i.append("circle").attr("cx",a.cx).attr("cy",a.cy).attr("class","face").attr("r",15).attr("stroke-width",2).attr("overflow","visible"),p=i.append("g");p.append("circle").attr("cx",a.cx-15/3).attr("cy",a.cy-15/3).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666"),p.append("circle").attr("cx",a.cx+15/3).attr("cy",a.cy-15/3).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666");function v(E){const _=hD().startAngle(Math.PI/2).endAngle(3*(Math.PI/2)).innerRadius(7.5).outerRadius(6.8181818181818175);E.append("path").attr("class","mouth").attr("d",_).attr("transform","translate("+a.cx+","+(a.cy+2)+")")}function b(E){const _=hD().startAngle(3*Math.PI/2).endAngle(5*(Math.PI/2)).innerRadius(7.5).outerRadius(6.8181818181818175);E.append("path").attr("class","mouth").attr("d",_).attr("transform","translate("+a.cx+","+(a.cy+7)+")")}function y(E){E.append("line").attr("class","mouth").attr("stroke",2).attr("x1",a.cx-5).attr("y1",a.cy+7).attr("x2",a.cx+5).attr("y2",a.cy+7).attr("class","mouth").attr("stroke-width","1px").attr("stroke","#666")}return a.score>3?v(p):a.score<3?b(p):y(p),d},dWe=function(i,a){const u=i.append("circle");return u.attr("cx",a.cx),u.attr("cy",a.cy),u.attr("class","actor-"+a.pos),u.attr("fill",a.fill),u.attr("stroke",a.stroke),u.attr("r",a.r),u.class!==void 0&&u.attr("class",u.class),a.title!==void 0&&u.append("title").text(a.title),u},gWe=function(i,a){return kVt(i,a)},Ban=function(i,a){function u(p,v,b,y,E){return p+","+v+" "+(p+b)+","+v+" "+(p+b)+","+(v+y-E)+" "+(p+b-E*1.2)+","+(v+y)+" "+p+","+(v+y)}const d=i.append("polygon");d.attr("points",u(a.x,a.y,50,20,7)),d.attr("class","labelBox"),a.y=a.y+a.labelMargin,a.x=a.x+.5*a.labelMargin,gWe(i,a)},Fan=function(i,a,u){const d=i.append("g"),p=HC();p.x=a.x,p.y=a.y,p.fill=a.fill,p.width=u.width*a.taskCount+u.diagramMarginX*(a.taskCount-1),p.height=u.height,p.class="journey-section section-type-"+a.num,p.rx=3,p.ry=3,dwe(d,p),bWe(u)(a.text,d,p.x,p.y,p.width,p.height,{class:"journey-section section-type-"+a.num},u,a.colour)};let pWe=-1;const Ran=function(i,a,u){const d=a.x+u.width/2,p=i.append("g");pWe++;const v=300+5*30;p.append("line").attr("id","task"+pWe).attr("x1",d).attr("y1",a.y).attr("x2",d).attr("y2",v).attr("class","task-line").attr("stroke-width","1px").attr("stroke-dasharray","4 2").attr("stroke","#666"),Pan(p,{cx:d,cy:300+(5-a.score)*30,score:a.score});const b=HC();b.x=a.x,b.y=a.y,b.fill=a.fill,b.width=u.width,b.height=u.height,b.class="task task-type-"+a.num,b.rx=3,b.ry=3,dwe(p,b);let y=a.x+14;a.people.forEach(E=>{const _=a.actors[E].color,A={cx:y,cy:a.y,r:7,fill:_,stroke:"#000",title:E,pos:a.actors[E].position};dWe(p,A),y+=10}),bWe(u)(a.task,p,b.x,b.y,b.width,b.height,{class:"task"},u,a.colour)},jan=function(i,a){Zqe(i,a)},bWe=function(){function i(p,v,b,y,E,_,A,P){const R=v.append("text").attr("x",b+E/2).attr("y",y+_/2+5).style("font-color",P).style("text-anchor","middle").text(p);d(R,A)}function a(p,v,b,y,E,_,A,P,R){const{taskFontSize:B,taskFontFamily:j}=P,W=p.split(/<br\s*\/?>/gi);for(let ee=0;ee<W.length;ee++){const ie=ee*B-B*(W.length-1)/2,oe=v.append("text").attr("x",b+E/2).attr("y",y).attr("fill",R).style("text-anchor","middle").style("font-size",B).style("font-family",j);oe.append("tspan").attr("x",b+E/2).attr("dy",ie).text(W[ee]),oe.attr("y",y+_/2).attr("dominant-baseline","central").attr("alignment-baseline","central"),d(oe,A)}}function u(p,v,b,y,E,_,A,P){const R=v.append("switch"),j=R.append("foreignObject").attr("x",b).attr("y",y).attr("width",E).attr("height",_).attr("position","fixed").append("xhtml:div").style("display","table").style("height","100%").style("width","100%");j.append("div").attr("class","label").style("display","table-cell").style("text-align","center").style("vertical-align","middle").text(p),a(p,R,b,y,E,_,A,P),d(j,A)}function d(p,v){for(const b in v)b in v&&p.attr(b,v[b])}return function(p){return p.textPlacement==="fo"?u:p.textPlacement==="old"?i:a}}(),lj={drawRect:dwe,drawCircle:dWe,drawSection:Fan,drawTex
`,ol(io(e,t[0])))>=0;)++t[0]}function wwn(e,t){Vu(e,t==null||Zq((tr(t),t))||isNaN((tr(t),t))?0:(tr(t),t))}function ywn(e,t){Gu(e,t==null||Zq((tr(t),t))||isNaN((tr(t),t))?0:(tr(t),t))}function xwn(e,t){Rw(e,t==null||Zq((tr(t),t))||isNaN((tr(t),t))?0:(tr(t),t))}function kwn(e,t){Fw(e,t==null||Zq((tr(t),t))||isNaN((tr(t),t))?0:(tr(t),t))}function Twn(e,t,n){return q8(new lt(n.e.a+n.f.a/2,n.e.b+n.f.b/2),e)==(tr(t),t)}function Ewn(e,t){return De(t,102)&&l(t,19).Bb&Lo?new sae(t,e):new wT(t,e)}function Cwn(e,t){return De(t,102)&&l(t,19).Bb&Lo?new sae(t,e):new wT(t,e)}function kN(e){return e.__elementTypeCategory$==null?10:e.__elementTypeCategory$}function Dht(e,t){return t==(Aae(),Aae(),r7t)?e.toLocaleLowerCase():e.toLowerCase()}function Iht(e){if(!e.e)throw ue(new Dc);return e.c=e.a=e.e,e.e=e.e.e,--e.d,e.a.f}function l7e(e){if(!e.c)throw ue(new Dc);return e.e=e.a=e.c,e.c=e.c.c,++e.d,e.a.f}function Oht(e){var t;for(++e.a,t=e.c.a.length;e.a<t;++e.a)if(e.c.b[e.a])return}function Swn(e){var t,n;if(e.a){n=null;do t=e.a,e.a=null,n=Hpt(t,n);while(e.a);e.a=n}}function _wn(e){var t,n;if(e.b){n=null;do t=e.b,e.b=null,n=Hpt(t,n);while(e.b);e.b=n}}function Awn(e,t){var n;for(n=0;e.e!=e.i.gc();)Jdn(t,dr(e),bt(n)),n!=Ni&&++n}function Lwn(e,t){var n;return n=Uw(e.e.c,t.e.c),n==0?Xi(e.e.d,t.e.d):n}function Mwn(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 Nht(e){var t;return t=l(Q(e,(ft(),p3)),313),t?t.a==e:!1}function Pht(e){var t;return t=l(Q(e,(ft(),p3)),313),t?t.i==e:!1}function Bht(){Bht=U,Q8t=Kr((so(),he(le(IAe,1),it,367,0,[w0,xg,pu,Cu,wc])))}function Fht(){Fht=U,Nxt=Kr((zy(),he(le(Oxt,1),it,375,0,[EB,eW,tW,ZK,JK])))}function Rht(){Rht=U,Vxt=Kr((w2(),he(le(PLe,1),it,348,0,[q1e,NLe,H1e,RE,FE])))}function jht(){jht=U,DTt=Kr((NA(),he(le(FDe,1),it,323,0,[BDe,Ide,Ode,iM,sM])))}function $ht(){$ht=U,i9t=Kr((lf(),he(le(fMe,1),it,171,0,[DB,XL,Yb,QL,b4])))}function zht(){zht=U,wCt=Kr((TV(),he(le(vCt,1),it,368,0,[uge,age,lge,oge,cge])))}function qht(){qht=U,wSt=Kr((VA(),he(le(vSt,1),it,373,0,[Z6,t9,kM,xM,YB])))}function Hht(){Hht=U,CSt=Kr((iP(),he(le(qOe,1),it,324,0,[jOe,Oge,zOe,Nge,$Oe])))}function Uht(){Uht=U,k_t=Kr((ea(),he(le(MM,1),it,88,0,[J1,yc,hc,Q1,vf])))}function Vht(){Vht=U,WSt=Kr((n1(),he(le(Eg,1),it,170,0,[Bn,pa,zd,Av,P2])))}function Ght(){Ght=U,D_t=Kr((r6(),he(le(NM,1),it,256,0,[nm,uF,gPe,OM,pPe])))}function Kht(){Kht=U,N_t=Kr((_t(),he(le(Mo,1),ou,64,0,[jc,Xn,sr,Mr,Zn])))}function dU(){dU=U,z_e=new G3e("BY_SIZE",0),e1e=new G3e("BY_SIZE_AND_SHAPE",1)}function gU(){gU=U,h1e=new Y3e("EADES",0),_K=new Y3e("FRUCHTERMAN_REINGOLD",1)}function TN(){TN=U,rW=new Z3e("READING_DIRECTION",0),BLe=new Z3e("ROTATION",1)}function fA(){fA=U,sxt=new lI,axt=new eZ,rxt=new Sm,ixt=new lu,oxt=new tZ}function Wht(e){this.b=new mt,this.a=new mt,this.c=new mt,this.d=new mt,this.e=e}function Yht(e){this.g=e,this.f=new mt,this.a=b.Math.min(this.g.c.c,this.g.d.c)}function Xht(e,t,n){Qq.call(this),d7e(this),this.a=e,this.c=n,this.b=t.d,this.f=t.e}function Dwn(e,t,n){var r,s;for(s=new K(n);s.a<s.c.c.length;)r=re(s),Qxe(e,t,r)}function Z0(e,t,n){var r;if(t==null)throw ue(new _8);return r=Jg(e,t),Umn(e,t,n),r}function cce(e,t){var n;return n=l(or(e.a,t),137),n||(n=new Ui,Ti(e.a,t,n)),n}function Mn(e,t){var n;return n=(e.i==null&&Sd(e),e.i),t>=0&&t<n.length?n[t]:null}function Iwn(e,t){var n;return n=t>0?t-1:t,LZe(iln(yft(e5e(new M8,n),e.n),e.j),e.k)}function oc(e){var t,n;n=(t=new nse,t),zr((!e.q&&(e.q=new nt(Vf,e,11,10)),e.q),n)}function h7e(e){return(e.i&2?"interface ":e.i&1?"":"class ")+(Xg(e),e.o)}function pU(e){return su(e,Ni)>0?Ni:su(e,ao)<0?ao:Yr(e)}function Dy(e){return e<3?(Mh(e,h3t),e+1):e<iL?da(e/.75+1):Ni}function Qht(e,t){return tr(t),k5e(e),e.d.Ob()?(t.Cd(e.d.Pb()),!0):!1}function Own(e,t){var n,r;return n=l(By(e.d,t),16),n?(r=t,e.e.pc(r,n)):null}function Nwn(e,t,n,r){var s;e.j=-1,z9e(e,w9e(e,t,n),(Ro(),s=l(t,69).vk(),s.xl(r)))}function Pwn(e,t){return lx(),-iu(l(Q(e,(Vc(),X6)),17).a,l(Q(t,X6),17).a)}function Jht(e,t){return!!bA(e,t,Yr(go(pg,og(Yr(go(t==null?0:ts(t),bg)),15))))}function Bwn(){return VT(),he(le(AY,1),it,2
`)}return t&&(t.stack||n(e[Zle]))}function V8e(e,t){switch(t){case 3:return e.f!=0;case 4:return e.g!=0;case 5:return e.i!=0;case 6:return e.j!=0}return V7e(e,t)}function Z1t(e){switch(e.g){case 0:return new Bne;case 1:return new Nu;default:throw ue(new Wn(Qhe+(e.f!=null?e.f:""+e.g)))}}function P5n(e){switch(e.g){case 0:return new _S;case 1:return new $c;default:throw ue(new Wn(Ffe+(e.f!=null?e.f:""+e.g)))}}function B5n(e){switch(e.g){case 1:return new Mne;case 2:return new jrt;default:throw ue(new Wn(Ffe+(e.f!=null?e.f:""+e.g)))}}function edt(e){switch(e.g){case 0:return new o3e;case 1:return new OJe;default:throw ue(new Wn(UG+(e.f!=null?e.f:""+e.g)))}}function sue(){n9e();var e,t,n;n=OOn+++Date.now(),e=da(b.Math.floor(n*RP))&aG,t=da(n-e*STe),this.a=e^1502,this.b=t^Che}function lf(){lf=U,DB=new vO(Id,0),XL=new vO("FIRST",1),Yb=new vO(xyt,2),QL=new vO("LAST",3),b4=new vO(kyt,4)}function QU(){QU=U,ope=new Dq(SCe,0),TPe=new Dq("GROUP_DEC",1),CPe=new Dq("GROUP_MIXED",2),EPe=new Dq("GROUP_INC",3)}function F5n(e,t){var n,r,s,o;t&&(s=ap(t,"x"),n=new MQe(e),uT(n.a,(tr(s),s)),o=ap(t,"y"),r=new IQe(e),hT(r.a,(tr(o),o)))}function R5n(e,t){var n,r,s,o;t&&(s=ap(t,"x"),n=new NQe(e),cT(n.a,(tr(s),s)),o=ap(t,"y"),r=new PQe(e),lT(r.a,(tr(o),o)))}function j5n(e,t){var n,r,s,o;for(s=new Pu(t.gc()),r=t.Kc();r.Ob();)n=r.Pb(),o=kle(e,l(n,58)),o&&qn(s.c,o);return s}function Fy(e,t,n){var r,s;for(s=e.Kc();s.Ob();)if(r=s.Pb(),qe(t)===qe(r)||t!=null&&Fi(t,r))return n&&s.Qb(),!0;return!1}function tdt(e){var t,n,r;return n=e.jh(),n?(t=e.Eh(),De(t,167)&&(r=tdt(l(t,167)),r!=null)?r+"."+n:n):null}function $5n(e){var t,n,r;return e.e==0?0:(t=e.d<<5,n=e.a[e.d-1],e.e<0&&(r=a0t(e),r==e.d-1&&(--n,n=n|0)),t-=hP(n),t)}function z5n(e){var t,n,r;return e<mK.length?mK[e]:(n=e>>5,t=e&31,r=We(Ur,fi,28,n+1,15,1),r[n]=1<<t,new $m(1,n+1,r))}function ndt(e,t){var n,r;if(t){for(n=0;n<e.i;++n)if(r=l(e.g[n],378),r.mj(t))return!1;return zr(e,t)}else return!1}function G8e(e,t,n){var r,s;if(++e.j,n.dc())return!1;for(s=n.Kc();s.Ob();)r=s.Pb(),e.qj(t,e.Zi(t,r)),++t;return!0}function q5n(e,t,n,r){var s,o;if(o=n-t,o<3)for(;o<3;)e*=10,++o;else{for(s=1;o>3;)s*=10,--o;e=(e+(s>>1))/s|0}return r.i=e,!0}function vs(e,t){var n,r,s;if(n=(e.i==null&&Sd(e),e.i),r=t.Lj(),r!=-1){for(s=n.length;r<s;++r)if(n[r]==t)return r}return-1}function H5n(e){var t,n,r,s,o;for(n=l(e.g,689),r=e.i-1;r>=0;--r)for(t=n[r],s=0;s<r;++s)if(o=n[s],cvt(e,t,o)){wx(e,r);break}}function K8e(e){var t,n,r,s;for(t=new Yp,s=new vo(e.b.Kc());s.b.Ob();)r=l(s.b.Pb(),701),n=skn(r),Vgn(t,t.a.length,n);return t.a}function W8e(e){var t;return!e.c&&(e.c=new Kh),Gs(e.d,new Hp),qSn(e),t=OSn(e),Os(new vn(null,new kn(e.d,16)),new Gie(e)),t}function U5n(e,t){t.Ug("End label post-processing",1),Os(ji(Pc(new vn(null,new kn(e.b,16)),new gZ),new pZ),new bZ),t.Vg()}function Y8e(e){aue(),this.c=O1(he(le(JOn,1),jn,845,0,[STt])),this.b=new Nr,this.a=e,Ti(this.b,DW,1),Uu(_Tt,new cQe(this))}function rdt(e,t,n){vft(),AJe.call(this),this.a=Fm(k7t,[dt,FTe],[603,217],0,[xK,n1e],2),this.c=new z8,this.g=e,this.f=t,this.d=n}function X8e(e,t){this.n=Fm(hm,[dt,yhe],[376,28],14,[t,da(b.Math.ceil(e/32))],2),this.o=e,this.p=t,this.j=e-1>>1,this.k=t-1>>1}function V5n(e){aU(),l(e.of((bi(),em)),181).Hc((Xl(),vY))&&(l(e.of(L4),181).Fc((Pl(),o9)),l(e.of(em),181).Mc(vY))}function idt(e){var t,n;t=e.d==(xx(),NE),n=Kxe(e),t&&!n||!t&&n?rt(e.a,(Nt(),Rd),(lg(),JB)):rt(e.a,(Nt(),Rd),(lg(),QB))}function aue(){aue=U,cq(),DW=(Nt(),E3),_Tt=O1(he(le(jge,1),CCe,149,0,[NB,y0,V6,T3,T4,kde,WE,YE,Tde,nM,U6,Sv,G6]))}function G5n(e,t){var n;return n=l(kc(e,Il(new qr,new ht,new On,he(le(uc,1),it,108,0,[(Nl(),Cc)]))),15),n.Qc(Cst(n.gc()))}function sdt(e,t){var n,r;if(r=new wa(e.a.ad(t,!0)),r.a.gc()<=1)throw ue(new _8);return n=r.a.ec().Kc(),n.Pb(),l(n.Pb(),40)}function K5n(e,t,n){var r,s;return r=ze(e.p[t.i.p])+ze(e.d[t.i.p])+t.n.b+t.a.b,s=ze(e.p[n.i.p])+ze(e.d[n.i.p])+n.n.b+n.a.b,s-r}function Q8e(e,t){var n;return e.i>0&&(t.length<e.i&&(n=EN(dh(t).c,e.i),t=n),gu(e.g,0,t,0,e.i)),t.length>e.i&&Ss(t,e.i,null),t}function JU(e){var t;return e.Db&64?SA(e):(t=new Af(SA(e)),t.a+=" (
`;return n.substring(0,r.length)==r&&(n=n.substring(r.length)),n.split(`
`)}return[]}function H7n(e){var t;return t=(_ft(),V6t),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 Sgt(e){var t,n,r;e.b==e.c&&(r=e.a.length,n=Z7e(b.Math.max(8,r))<<1,e.b!=0?(t=o0(e.a,n),qft(e,t,r),e.a=t,e.b=0):uy(e.a,n),e.c=r)}function U7n(e,t){var n;return n=e.b,n.pf((bi(),eh))?n.ag()==(_t(),Zn)?-n.Mf().a-ze(Ge(n.of(eh))):t+ze(Ge(n.of(eh))):n.ag()==(_t(),Zn)?-n.Mf().a:t}function QN(e){var t;return e.b.c.length!=0&&l(Rt(e.b,0),72).a?l(Rt(e.b,0),72).a:(t=hoe(e),t??""+(e.c?bc(e.c.a,e,0):-1))}function wV(e){var t;return e.f.c.length!=0&&l(Rt(e.f,0),72).a?l(Rt(e.f,0),72).a:(t=hoe(e),t??""+(e.i?bc(e.i.j,e,0):-1))}function V7n(e,t){var n,r;if(t<0||t>=e.gc())return null;for(n=t;n<e.gc();++n)if(r=l(e.Xb(n),131),n==e.gc()-1||!r.o)return new fa(bt(n),r);return null}function G7n(e,t,n){var r,s,o,f,g;for(o=e.c,g=n?t:e,r=n?e:t,s=g.p+1;s<r.p;++s)if(f=l(Rt(o.a,s),10),!(f.k==(Jn(),K1)||y8n(f)))return!1;return!0}function kxe(e){var t,n,r,s,o;for(o=0,s=oa,r=0,n=new K(e.a);n.a<n.c.c.length;)t=l(re(n),172),o+=t.r+(r>0?e.c:0),s=b.Math.max(s,t.d),++r;e.e=o,e.b=s}function K7n(e){var t,n;if(!e.b)for(e.b=KH(l(e.f,123).kh().i),n=new ar(l(e.f,123).kh());n.e!=n.i.gc();)t=l(dr(n),135),wt(e.b,new use(t));return e.b}function W7n(e,t){var n,r,s;if(t.dc())return jk(),jk(),yF;for(n=new uit(e,t.gc()),s=new ar(e);s.e!=s.i.gc();)r=dr(s),t.Hc(r)&&zr(n,r);return n}function Txe(e,t,n,r){return t==0?r?(!e.o&&(e.o=new yl((au(),Ag),R2,e,0)),e.o):(!e.o&&(e.o=new yl((au(),Ag),R2,e,0)),fN(e.o)):lV(e,t,n,r)}function Nue(e){var t,n;if(e.rb)for(t=0,n=e.rb.i;t<n;++t)NO(Oe(e.rb,t));if(e.vb)for(t=0,n=e.vb.i;t<n;++t)NO(Oe(e.vb,t));W_((kl(),no),e),e.Bb|=1}function as(e,t,n,r,s,o,f,g,w,T,C,L,F,z){return s2t(e,t,r,null,s,o,f,g,w,T,F,!0,z),P8e(e,C),De(e.Cb,90)&&Uy(Gl(l(e.Cb,90)),2),n&&N7e(e,n),B8e(e,L),e}function Y7n(e){var t,n;if(e==null)return null;n=0;try{n=Oh(e,ao,Ni)&ta}catch(r){if(r=ms(r),De(r,130))t=hU(e),n=t[0];else throw ue(r)}return _N(n)}function X7n(e){var t,n;if(e==null)return null;n=0;try{n=Oh(e,ao,Ni)&ta}catch(r){if(r=ms(r),De(r,130))t=hU(e),n=t[0];else throw ue(r)}return _N(n)}function Q7n(e,t){var n,r,s;return s=e.h-t.h,s<0||(n=e.l-t.l,r=e.m-t.m+(n>>22),s+=r>>22,s<0)?!1:(e.l=n&Ql,e.m=r&Ql,e.h=s&pp,!0)}function Pue(e,t,n,r,s,o,f){var g,w;return!(t.Te()&&(w=e.a.Ne(n,r),w<0||!s&&w==0)||t.Ue()&&(g=e.a.Ne(n,o),g>0||!f&&g==0))}function J7n(e,t){ST();var n;if(n=e.j.g-t.j.g,n!=0)return 0;switch(e.j.g){case 2:return tue(t,SLe)-tue(e,SLe);case 4:return tue(e,CLe)-tue(t,CLe)}return 0}function Z7n(e){switch(e.g){case 0:return V1e;case 1:return G1e;case 2:return K1e;case 3:return W1e;case 4:return iW;case 5:return Y1e;default:return null}}function cc(e,t,n){var r,s;return r=(s=new rse,ev(s,t),Bu(s,n),zr((!e.c&&(e.c=new nt(L3,e,12,10)),e.c),s),s),d2(r,0),Oy(r,1),v2(r,!0),m2(r,!0),r}function wx(e,t){var n,r;if(t>=e.i)throw ue(new iae(t,e.i));return++e.j,n=e.g[t],r=e.i-t-1,r>0&&gu(e.g,t+1,e.g,t,r),Ss(e.g,--e.i,null),e.Qi(t,n),e.Ni(),n}function _gt(e,t){var n,r;return e.Db>>16==17?e.Cb.Th(e,21,Uf,t):(r=jo(l(Mn((n=l(Gn(e,16),29),n||e.ii()),e.Db>>16),19)),e.Cb.Th(e,r.n,r.f,t))}function e8n(e){var t,n,r,s;for(Cn(),Gs(e.c,e.a),s=new K(e.c);s.a<s.c.c.length;)for(r=re(s),n=new K(e.b);n.a<n.c.c.length;)t=l(re(n),693),t.bf(r)}function t8n(e){var t,n,r,s;for(Cn(),Gs(e.c,e.a),s=new K(e.c);s.a<s.c.c.length;)for(r=re(s),n=new K(e.b);n.a<n.c.c.length;)t=l(re(n),382),t.bf(r)}function n8n(e){var t,n,r,s,o;for(s=Ni,o=null,r=new K(e.d);r.a<r.c.c.length;)n=l(re(r),218),n.d.j^n.e.j&&(t=n.e.e-n.d.e-n.a,t<s&&(s=t,o=n));return o}function Exe(){Exe=U,$8t=new mn(ZTe,(Hn(),!1)),F8t=new mn(eEe,100),EAe=(hA(),p1e),R8t=new mn(tEe,EAe),j8t=new mn(nEe,Dd),z8t=new mn(rEe,bt(Ni))}function Agt(e,t,n){var r,s,o,f,g,w,T,C;for(T=0,s=e.a[t],o=0,f=s.length;o<f;++o)for(r=s[o],C=CA(r,n),w=C.Kc();w.Ob();)g=l(w.Pb(),12),Ti(e.f,g,bt(T++))}function r8n(e,t,n){var r,s,o,f;if(n)for(s=n.a.length,r=new jm(s),f=(r.b-r.a)*r.c<0?(gb(),lm):new mb(r);f.Ob();)o=l(f.Pb(),17),xn(e,t,kx(My(n,o.a)))}function i8n(e,t,n){var r,s,o,f;if(n)for(s=n.a.length,r=
\r\f]+`);try{$M=he(le(nNn,1),jn,2114,0,[new tO((kye(),eV("yyyy-MM-dd'T'HH:mm:ss'.'SSSZ",RO((Wz(),Wz(),PL))))),new tO(eV("yyyy-MM-dd'T'HH:mm:ss'.'SSS",RO(PL))),new tO(eV("yyyy-MM-dd'T'HH:mm:ss",RO(PL))),new tO(eV("yyyy-MM-dd'T'HH:mm",RO(PL))),new tO(eV("yyyy-MM-dd",RO(PL)))])}catch(e){if(e=ms(e),!De(e,82))throw ue(e)}}function kLn(e,t){var n,r,s,o;if(s=Yl(e.d,1)!=0,r=Ske(e,t),r==0&&Ft(Pt(Q(t.j,(ft(),Wb)))))return 0;!Ft(Pt(Q(t.j,(ft(),Wb))))&&!Ft(Pt(Q(t.j,z6)))||qe(Q(t.j,(Nt(),Tg)))===qe((Td(),I2))?t.c.mg(t.e,s):s=Ft(Pt(Q(t.j,Wb))),bP(e,t,s,!0),Ft(Pt(Q(t.j,z6)))&&rt(t.j,z6,(Hn(),!1)),Ft(Pt(Q(t.j,Wb)))&&(rt(t.j,Wb,(Hn(),!1)),rt(t.j,z6,!0)),n=Ske(e,t);do{if(F7e(e),n==0)return 0;s=!s,o=n,bP(e,t,s,!1),n=Ske(e,t)}while(o>n);return o}function Avt(e,t){var n,r,s,o;if(s=Yl(e.d,1)!=0,r=AV(e,t),r==0&&Ft(Pt(Q(t.j,(ft(),Wb)))))return 0;!Ft(Pt(Q(t.j,(ft(),Wb))))&&!Ft(Pt(Q(t.j,z6)))||qe(Q(t.j,(Nt(),Tg)))===qe((Td(),I2))?t.c.mg(t.e,s):s=Ft(Pt(Q(t.j,Wb))),bP(e,t,s,!0),Ft(Pt(Q(t.j,z6)))&&rt(t.j,z6,(Hn(),!1)),Ft(Pt(Q(t.j,Wb)))&&(rt(t.j,Wb,(Hn(),!1)),rt(t.j,z6,!0)),n=AV(e,t);do{if(F7e(e),n==0)return 0;s=!s,o=n,bP(e,t,s,!1),n=AV(e,t)}while(o>n);return o}function Kke(e,t,n,r){var s,o,f,g,w,T,C,L,F;return w=ya(new lt(n.a,n.b),e),T=w.a*t.b-w.b*t.a,C=t.a*r.b-t.b*r.a,L=(w.a*r.b-w.b*r.a)/C,F=T/C,C==0?T==0?(s=Pi(new lt(n.a,n.b),md(new lt(r.a,r.b),.5)),o=Eb(e,s),f=Eb(Pi(new lt(e.a,e.b),t),s),g=b.Math.sqrt(r.a*r.a+r.b*r.b)*.5,o<f&&o<=g?new lt(e.a,e.b):f<=g?Pi(new lt(e.a,e.b),t):null):null:L>=0&&L<=1&&F>=0&&F<=1?Pi(new lt(e.a,e.b),md(new lt(t.a,t.b),L)):null}function TLn(e,t,n){var r,s,o,f,g;if(r=l(Q(e,(Nt(),fde)),21),n.a>t.a&&(r.Hc((rv(),EM))?e.c.a+=(n.a-t.a)/2:r.Hc(CM)&&(e.c.a+=n.a-t.a)),n.b>t.b&&(r.Hc((rv(),_M))?e.c.b+=(n.b-t.b)/2:r.Hc(SM)&&(e.c.b+=n.b-t.b)),l(Q(e,(ft(),_u)),21).Hc((Ho(),mf))&&(n.a>t.a||n.b>t.b))for(g=new K(e.a);g.a<g.c.c.length;)f=l(re(g),10),f.k==(Jn(),Ks)&&(s=l(Q(f,Xc),64),s==(_t(),sr)?f.n.a+=n.a-t.a:s==Mr&&(f.n.b+=n.b-t.b));o=e.d,e.f.a=n.a-o.b-o.c,e.f.b=n.b-o.d-o.a}function ELn(e,t,n){var r,s,o,f,g;if(r=l(Q(e,(Nt(),fde)),21),n.a>t.a&&(r.Hc((rv(),EM))?e.c.a+=(n.a-t.a)/2:r.Hc(CM)&&(e.c.a+=n.a-t.a)),n.b>t.b&&(r.Hc((rv(),_M))?e.c.b+=(n.b-t.b)/2:r.Hc(SM)&&(e.c.b+=n.b-t.b)),l(Q(e,(ft(),_u)),21).Hc((Ho(),mf))&&(n.a>t.a||n.b>t.b))for(f=new K(e.a);f.a<f.c.c.length;)o=l(re(f),10),o.k==(Jn(),Ks)&&(s=l(Q(o,Xc),64),s==(_t(),sr)?o.n.a+=n.a-t.a:s==Mr&&(o.n.b+=n.b-t.b));g=e.d,e.f.a=n.a-g.b-g.c,e.f.b=n.b-g.d-g.a}function CLn(e){var t,n,r,s,o,f,g,w,T,C,L,F;for(t=q2t(e),C=(g=new pr(t).a.vc().Kc(),new Di(g));C.a.Ob();){for(T=(s=l(C.a.Pb(),44),l(s.ld(),10)),L=0,F=0,L=T.d.d,F=T.o.b+T.d.a,e.d[T.p]=0,n=T;(o=e.a[n.p])!=T;)r=y6n(n,o),w=0,e.c==(xd(),O2)?w=r.d.n.b+r.d.a.b-r.c.n.b-r.c.a.b:w=r.c.n.b+r.c.a.b-r.d.n.b-r.d.a.b,f=ze(e.d[n.p])+w,e.d[o.p]=f,L=b.Math.max(L,o.d.d-f),F=b.Math.max(F,f+o.o.b+o.d.a),n=o;n=T;do e.d[n.p]=ze(e.d[n.p])+L,n=e.a[n.p];while(n!=T);e.b[T.p]=L+F}}function eL(e,t,n){var r,s,o,f,g,w,T,C,L,F;for(o=0,f=e.t,s=0,r=0,w=0,F=0,L=0,n&&(e.n.c.length=0,wt(e.n,new qH(e.s,e.t,e.i))),g=0,C=new K(e.b);C.a<C.c.c.length;)T=l(re(C),27),o+T.g+(g>0?e.i:0)>t&&w>0&&(o=0,f+=w+e.i,s=b.Math.max(s,F),r+=w+e.i,w=0,F=0,n&&(++L,wt(e.n,new qH(e.s,f,e.i))),g=0),F+=T.g+(g>0?e.i:0),w=b.Math.max(w,T.f),n&&vxe(l(Rt(e.n,L),209),T),o+=T.g+(g>0?e.i:0),++g;return s=b.Math.max(s,F),r+=w,n&&(e.r=s,e.d=r,kxe(e.j)),new Zh(e.s,e.t,s,r)}function Ale(e){var t,n,r,s,o,f,g,w,T,C,L,F;for(e.b=!1,L=gs,w=oa,F=gs,T=oa,r=e.e.a.ec().Kc();r.Ob();)for(n=l(r.Pb(),272),s=n.a,L=b.Math.min(L,s.c),w=b.Math.max(w,s.c+s.b),F=b.Math.min(F,s.d),T=b.Math.max(T,s.d+s.a),f=new K(n.c);f.a<f.c.c.length;)o=l(re(f),407),t=o.a,t.a?(C=s.d+o.b.b,g=C+o.c,F=b.Math.min(F,C),T=b.Math.max(T,g)):(C=s.c+o.b.a,g=C+o.c,L=b.Math.min(L,C),w=b.Math.max(w,g));e.a=new lt(w-L,T-F),e.c=new lt(L+e.d.a,F+e.d.b)}function p6(e){var t,n,r,s,o,f,g,w;if(!e.a){if(e.o=null,w=new KQe(e),t=new IS,n=HM,g=n.a.zc(e,n),g==null){for(f=new ar(pc(e));f.e!=f.i.gc();)o=l(dr(f),29),Ls(w,p6(o));n.a.Bc(e)!=null,n.a.gc()==0}for(s=(!e.s&&(e.s=new nt(fl,e,21,17)),new ar(e.s));s.e!=s.i.gc();)r=l(dr(s),179),De(r,331)&&zr(t,l(r,35));Py(t),e.k=new vs
\r\r `),sc(f7,S0e,r),sc(lC,S0e,Wy(r)),r=new _h(4),KN(r,T6t),sc(f7,NL,r),sc(lC,NL,Wy(r)),r=new _h(4),KN(r,T6t),sc(f7,NL,r),sc(lC,NL,Wy(r)),r=new _h(4),KN(r,E6t),Xy(r,l(wu(f7,NL),122)),sc(f7,C0e,r),sc(lC,C0e,Wy(r)),r=new _h(4),KN(r,"-.0:AZ__az··ÀÖØöøıĴľŁňŊžƀǃǍǰǴǵǺȗɐʨʻˁːˑ̀͠͡ͅΆΊΌΌΎΡΣώϐϖϚϚϜϜϞϞϠϠϢϳЁЌЎяёќўҁ҃҆ҐӄӇӈӋӌӐӫӮӵӸӹԱՖՙՙաֆֹֻֽֿֿׁׂ֑֣֡ׄׄאתװײءغـْ٠٩ٰڷںھۀێېۓە۪ۭۨ۰۹ँअह़्॑॔क़ॣ९ঁঃঅঌএঐওনপরললশহ়়াৄেৈো্ৗৗড়ঢ়য়ৣৱਂਂਅਊਏਐਓਨਪਰਲਲ਼ਵਸ਼ਸਹ਼਼ਾੂੇੈੋ੍ਖ਼ੜਫ਼ਫ਼ੴઁઅઋઍઍએઑઓનપરલળવહ઼ૅેૉો્ૠૠ૯ଁଅଌଏଐଓନପରଲଳଶହ଼ୃେୈୋ୍ୖୗଡ଼ଢ଼ୟୡ୯ஂஃஅஊஎஐஒகஙசஜஜஞடணதநபமவஷஹாூெைொ்ௗௗ௧௯ఁఃఅఌఎఐఒనపళవహాౄెైొ్ౕౖౠౡಃಅಌಎಐಒನಪಳವಹಾೄೆೈೊ್ೕೖೞೞೠೡഃഅഌഎഐഒനപഹാൃെൈൊ്ൗൗൠൡ൯กฮะฺเ๎๙ກຂຄຄງຈຊຊຍຍດທນຟມຣລລວວສຫອຮະູົຽເໄໆໆ່ໍ໙༘༙༠༩༹༹༵༵༷༷༾ཇཉཀྵ྄ཱ྆ྋྐྕྗྗྙྭྱྷྐྵྐྵႠჅაჶᄀᄀᄂᄃᄅᄇᄉᄉᄋᄌᄎᄒᄼᄼᄾᄾᅀᅀᅌᅌᅎᅎᅐᅐᅔᅕᅙᅙᅡᅣᅣᅥᅥᅧᅧᅩᅩᅭᅮᅲᅳᅵᅵᆞᆞᆨᆨᆫᆫᆮᆯᆷᆸᆺᆺᆼᇂᇫᇫᇰᇰᇹᇹḀẛẠỹἀἕἘἝἠὅὈὍὐὗὙὙὛὛὝὝὟώᾀᾴᾶᾼῂῄῆῌῐΐῖΊῠῬῲῴῶῼ⃐⃜⃡⃡ΩΩↀↂ々々〡〯〱〵ぁゔ゙゚ゝゞァヺーヾㄅㄬ一龥가힣"),sc(f7,_0e,r),sc(lC,_0e,Wy(r)),r=new _h(4),KN(r,E6t),xu(r,95,95),xu(r,58,58),sc(f7,A0e,r),sc(lC,A0e,Wy(r))),n=l(wu(t?f7:lC,e),138),n}function e3t(e){fw(e,new iv(E3e(Jz(uw(aw(cw(ow(new x1,ir),"ELK Layered"),"Layer-based algorithm provided by the Eclipse Layout Kernel. Arranges as many edges as possible into one direction by placing nodes into subsequent layers. This implementation supports different routing styles (straight, orthogonal, splines); if orthogonal routing is selected, arbitrary port constraints are respected, thus enabling the layout of block diagrams such as actor-oriented models or circuit schematics. Furthermore, full layout of compound graphs with cross-hierarchy edges is supported when the respective option is activated on the top level."),new Jee),ir),is((VT(),fpe),he(le(AY,1),it,245,0,[SY,_Y,CY,hpe,EY,TY]))))),pt(e,ir,KEe,It(xde)),pt(e,ir,WEe,It(wDe)),pt(e,ir,zhe,It(NB)),pt(e,ir,YEe,It(y0)),pt(e,ir,Khe,It(V6)),pt(e,ir,_fe,It(T3)),pt(e,ir,XEe,It(T4)),pt(e,ir,QEe,It(WE)),pt(e,ir,JEe,It(YE)),pt(e,ir,ZEe,It(kde)),pt(e,ir,t4,It(E3)),pt(e,ir,eCe,It(Tde)),pt(e,ir,tCe,It(nM)),pt(e,ir,nCe,It(LW)),pt(e,ir,AEe,It(OB)),pt(e,ir,MEe,It(U6)),pt(e,ir,LEe,It(Sv)),pt(e,ir,DEe,It(G6)),pt(e,ir,qP,bt(0)),pt(e,ir,IEe,It(KE)),pt(e,ir,OEe,It(vDe)),pt(e,ir,NEe,It(Zx)),pt(e,ir,bp,It(ADe)),pt(e,ir,CG,It(xDe)),pt(e,ir,SG,It(kDe)),pt(e,ir,mL,It(Cde)),pt(e,ir,wfe,It(TDe)),pt(e,ir,yfe,It(EDe)),pt(e,ir,_G,It(MW)),pt(e,ir,AG,It(Sde)),pt(e,ir,LG,It(SDe)),pt(e,ir,MG,It(CDe)),pt(e,ir,xfe,It(_De)),pt(e,ir,dfe,It(x3)),pt(e,ir,gfe,It(tM)),pt(e,ir,kG,It(mde)),pt(e,ir,TG,It(QMe)),pt(e,ir,HP,It(ETt)),pt(e,ir,UP,It(CTt)),pt(e,ir,VP,It(TTt)),pt(e,ir,GP,It(kTt)),pt(e,ir,i3,yDe),pt(e,ir,r3,dDe),pt(e,ir,QP,WMe),pt(e,ir,rCe,0),pt(e,ir,gG,bt(1)),pt(e,ir,Nx,fE),pt(e,ir,iCe,It(Cv)),pt(e,ir,Whe,It(Ds)),pt(e,ir,sCe,It(GE)),pt(e,ir,JP,It(fTt)),pt(e,ir,aCe,It(Rd)),pt(e,ir,IG,It(v4)),pt(e,ir,hL,(Hn(),!0)),pt(e,ir,oCe,It(w4)),pt(e,ir,cCe,It(kv)),pt(e,ir,T6,It(Ev)),pt(e,ir,Px,It(AW)),pt(e,ir,dE,It(yde)),pt(e,ir,Afe,KMe),pt(e,ir,gE,It(y3)),pt(e,ir,uCe,It(SW)),pt(e,ir,pE,It(x4)),pt(e,ir,lCe,It(vTt)),pt(e,ir,hCe,It(bDe)),pt(e,ir,fCe,pDe),pt(e,ir,dCe,It(pTt)),pt(e,ir,gCe,It(bTt)),pt(e,ir,pCe,It(mTt)),pt(e,ir,bCe,It(gTt)),pt(e,ir,pEe,It(Ede)),pt(e,ir,XP,It(Tv)),pt(e,ir,ife,It(Xb
`,lyt=`)]}"' \r
`,hyt="The given string contains parts that cannot be parsed as numbers.",WP="org.eclipse.elk.core.math",fyt={3:1,4:1,140:1,214:1,423:1},dyt={3:1,4:1,107:1,214:1,423:1},_2="org.eclipse.elk.alg.layered.graph.transform",gyt="ElkGraphImporter",pyt="ElkGraphImporter/lambda$1$Type",byt="ElkGraphImporter/lambda$2$Type",myt="ElkGraphImporter/lambda$4$Type",nr="org.eclipse.elk.alg.layered.intermediate",vyt="Node margin calculation",wyt="ONE_SIDED_GREEDY_SWITCH",yyt="TWO_SIDED_GREEDY_SWITCH",Qhe="No implementation is available for the layout processor ",Jhe="IntermediateProcessorStrategy",Zhe="Node '",xyt="FIRST_SEPARATE",kyt="LAST_SEPARATE",Tyt="Odd port side processing",ua="org.eclipse.elk.alg.layered.intermediate.compaction",pL="org.eclipse.elk.alg.layered.intermediate.greedyswitch",wg="org.eclipse.elk.alg.layered.p3order.counting",YP={230:1},Rx="org.eclipse.elk.alg.layered.intermediate.loops",Bh="org.eclipse.elk.alg.layered.intermediate.loops.ordering",$b="org.eclipse.elk.alg.layered.intermediate.loops.routing",aEe="org.eclipse.elk.alg.layered.intermediate.preserveorder",Od="org.eclipse.elk.alg.layered.intermediate.wrapping",cu="org.eclipse.elk.alg.layered.options",efe="INTERACTIVE",oEe="GREEDY",Eyt="DEPTH_FIRST",Cyt="EDGE_LENGTH",Syt="SELF_LOOPS",_yt="firstTryWithInitialOrder",cEe="org.eclipse.elk.layered.directionCongruency",uEe="org.eclipse.elk.layered.feedbackEdges",wG="org.eclipse.elk.layered.interactiveReferencePoint",lEe="org.eclipse.elk.layered.mergeEdges",hEe="org.eclipse.elk.layered.mergeHierarchyEdges",fEe="org.eclipse.elk.layered.allowNonFlowPortsToSwitchSides",dEe="org.eclipse.elk.layered.portSortingStrategy",gEe="org.eclipse.elk.layered.thoroughness",pEe="org.eclipse.elk.layered.unnecessaryBendpoints",bEe="org.eclipse.elk.layered.generatePositionAndLayerIds",tfe="org.eclipse.elk.layered.cycleBreaking.strategy",XP="org.eclipse.elk.layered.layering.strategy",mEe="org.eclipse.elk.layered.layering.layerConstraint",vEe="org.eclipse.elk.layered.layering.layerChoiceConstraint",wEe="org.eclipse.elk.layered.layering.layerId",nfe="org.eclipse.elk.layered.layering.minWidth.upperBoundOnWidth",rfe="org.eclipse.elk.layered.layering.minWidth.upperLayerEstimationScalingFactor",ife="org.eclipse.elk.layered.layering.nodePromotion.strategy",sfe="org.eclipse.elk.layered.layering.nodePromotion.maxIterations",afe="org.eclipse.elk.layered.layering.coffmanGraham.layerBound",bL="org.eclipse.elk.layered.crossingMinimization.strategy",yEe="org.eclipse.elk.layered.crossingMinimization.forceNodeModelOrder",ofe="org.eclipse.elk.layered.crossingMinimization.hierarchicalSweepiness",cfe="org.eclipse.elk.layered.crossingMinimization.semiInteractive",xEe="org.eclipse.elk.layered.crossingMinimization.inLayerPredOf",kEe="org.eclipse.elk.layered.crossingMinimization.inLayerSuccOf",TEe="org.eclipse.elk.layered.crossingMinimization.positionChoiceConstraint",EEe="org.eclipse.elk.layered.crossingMinimization.positionId",CEe="org.eclipse.elk.layered.crossingMinimization.greedySwitch.activationThreshold",ufe="org.eclipse.elk.layered.crossingMinimization.greedySwitch.type",yG="org.eclipse.elk.layered.crossingMinimization.greedySwitchHierarchical.type",E6="org.eclipse.elk.layered.nodePlacement.strategy",xG="org.eclipse.elk.layered.nodePlacement.favorStraightEdges",lfe="org.eclipse.elk.layered.nodePlacement.bk.edgeStraightening",hfe="org.eclipse.elk.layered.nodePlacement.bk.fixedAlignment",ffe="org.eclipse.elk.layered.nodePlacement.linearSegments.deflectionDampening",dfe="org.eclipse.elk.layered.nodePlacement.networkSimplex.nodeFlexibility",gfe="org.eclipse.elk.layered.nodePlacement.networkSimplex.nodeFlexibility.default",SEe="org.eclipse.elk.layered.edgeRouting.selfLoopDistribution",_Ee="org.eclipse.elk.layered.edgeRouting.selfLoopOrdering",kG="org.eclipse.elk.layered.edgeRouting.splines.mode",TG="org.eclipse.elk.layered.edgeRouting.splines.sloppy.layerSpacingFactor",pfe="org.eclipse.elk.layered.edgeRouting.polyline.slopedEdgeZoneWidth",AEe="org.eclipse.elk.layered.spacing.baseValue",LEe="org.eclipse.elk.layered.spacing.edgeNodeBetweenLayers",MEe="org.ecli
`,t=bt(0),f=0;f<this.p;f++){for(r+=""+t.a,t=bt(tit(t.a)),s=0;s<this.o;s++)n=bce(this,s,f),su(n,0)==0?r+="_":su(n,1)==0?r+="X":r+="0";r+=`
`}return ef(r,0,r.length-1)},h.o=0,h.p=0,I(lG,"TwoBitGrid",1317),D(330,1317,{330:1},X8e),h.j=0,h.k=0,I(lG,"PlanarGrid",330),D(176,330,{330:1,176:1}),h.g=0,h.i=0,I(lG,"Polyomino",176);var $On=Ts($P,K3t);D(137,1,zTe,Ui),h.qf=function(t,n){return PN(this,t,n)},h.nf=function(){return Fst(this)},h.of=function(t){return Q(this,t)},h.pf=function(t){return rs(this,t)},I($P,"MapPropertyHolder",137),D(1318,137,zTe,$bt),I(lG,"Polyominoes",1318);var t8t=!1,jL,oAe;D(1828,1,hr,zs),h.Cd=function(t){qvt(l(t,225))},I(Ox,"DepthFirstCompaction/0methodref$compactTree$Type",1828),D(825,1,hr,Fz),h.Cd=function(t){fpn(this.a,l(t,225))},I(Ox,"DepthFirstCompaction/lambda$1$Type",825),D(1829,1,hr,Git),h.Cd=function(t){p6n(this.a,this.b,this.c,l(t,225))},I(Ox,"DepthFirstCompaction/lambda$2$Type",1829);var $L,cAe;D(68,1,{68:1},Jot),I(Ox,"Node",68),D(1214,1,{},Qnt),I(Ox,"ScanlineOverlapCheck",1214),D(1215,1,{693:1},Sot),h.bf=function(t){Ufn(this,l(t,451))},I(Ox,"ScanlineOverlapCheck/OverlapsScanlineHandler",1215),D(1216,1,ii,gi),h.Ne=function(t,n){return J4n(l(t,68),l(n,68))},h.Fb=function(t){return this===t},h.Oe=function(){return new Ut(this)},I(Ox,"ScanlineOverlapCheck/OverlapsScanlineHandler/lambda$0$Type",1216),D(451,1,{451:1},W3e),h.a=!1,I(Ox,"ScanlineOverlapCheck/Timestamp",451),D(1217,1,ii,Bo),h.Ne=function(t,n){return I8n(l(t,451),l(n,451))},h.Fb=function(t){return this===t},h.Oe=function(){return new Ut(this)},I(Ox,"ScanlineOverlapCheck/lambda$0$Type",1217),D(557,1,{},Ot),I(W3t,"SVGImage",557),D(334,1,{334:1},P4e),h.Ib=function(){return"("+this.a+To+this.b+To+this.c+")"},I(W3t,"UniqueTriple",334),D(205,1,uv),I(y6,"AbstractLayoutProvider",205),D(1114,205,uv,zu),h.rf=function(t,n){var r,s,o,f;switch(n.Ug(Y3t,1),this.a=ze(Ge(at(t,(OA(),gAe)))),P1(t,o1e)&&(o=Zr(at(t,o1e)),r=vle(dT(),o),r&&(s=l(eN(r.f),205),s.rf(t,n.eh(1)))),f=new vut(this.a),this.b=_Dn(f,t),l(at(t,(Hce(),lAe)),489).g){case 0:HTn(new Gt,this.b),Vi(t,CK,Q(this.b,CK));break;default:Wg()}qDn(f),Vi(t,fAe,this.b),n.Vg()},h.a=0,I(X3t,"DisCoLayoutProvider",1114),D(1208,1,{},Gt),h.c=!1,h.e=0,h.f=0,I(X3t,"DisCoPolyominoCompactor",1208),D(567,1,{567:1},Pst),h.b=!0,I(fG,"DCComponent",567),D(406,22,{3:1,34:1,22:1,406:1},vq),h.a=!1;var TK,mB,EK,vB,n8t=Br(fG,"DCDirection",406,Hr,pmn,N0n),r8t;D(272,137,{3:1,272:1,96:1,137:1},ale),I(fG,"DCElement",272),D(407,1,{407:1},yxe),h.c=0,I(fG,"DCExtension",407),D(762,137,zTe,kZe),I(fG,"DCGraph",762),D(489,22,{3:1,34:1,22:1,489:1},Urt);var a1e,uAe=Br($he,qTe,489,Hr,Tpn,P0n),i8t;D(865,1,Pf,cz),h.hf=function(t){an(t,new Qt(rn(nn(sn(yn(Jt(tn(Zt(en(new Kt,HTe),Q3t),"Connected Components Compaction Strategy"),"Strategy for packing different connected components in order to save space and enhance readability of a graph."),hAe),(T2(),ps)),uAe),hn((n1(),Bn))))),an(t,new Qt(rn(nn(sn(Jt(tn(Zt(en(new Kt,UTe),Q3t),"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."),e7),$t),hn(Bn)))),an(t,new Qt(rn(nn(sn(Jt(tn(Zt(en(new Kt,VTe),"debug"),"DCGraph"),"Access to the DCGraph is intended for the debug view,"),X1),ka),hn(Bn)))),an(t,new Qt(rn(nn(sn(Jt(tn(Zt(en(new Kt,GTe),"debug"),"List of Polyominoes"),"Access to the polyominoes is intended for the debug view,"),X1),ka),hn(Bn)))),_vt((new uz,t))};var s8t,lAe,hAe,a8t,o8t;I($he,"DisCoMetaDataProvider",865),D(1010,1,Pf,uz),h.hf=function(t){_vt(t)};var c8t,o1e,u8t,fAe,CK,c1e,dAe,l8t,h8t,f8t,d8t,gAe;I($he,"DisCoOptions",1010),D(1011,1,{},Wh),h.sf=function(){var t;return t=new zu,t},h.tf=function(t){},I($he,"DisCoOptions/DiscoFactory",1011),D(568,176,{330:1,176:1,568:1},kbt),h.a=0,h.b=0,h.c=0,h.d=0,I("org.eclipse.elk.alg.disco.structures","DCPolyomino",568);var u1e,l1e,SK;D(1286,1,ei,Vp),h.Mb=function(t){return Tye(t)},I(x6,"ElkGraphComponentsProcessor/lambda$0$Type",1286),D(1287,1,{},J3),h.Kb=function(t){return nx(),hg(l(t,74))},I(x6,"ElkGraphComponentsProcessor/lambda$1$Type",1287),D(1288,1,ei,q9),h.Mb=function(t){return qdn(l(t,74))},I(x6,"ElkGrap
start=`,mu(t,this.i),t.a+=`
end=`,mu(t,this.a),t.a+=`
nodeStartEdge=`,mu(t,this.e),t.a+=`
startEndEdge=`,mu(t,this.j),t.a+=`
originalEdge=`,mu(t,this.f),t.a+=`
startInLayerDummy=`,mu(t,this.k),t.a+=`
startInLayerEdge=`,mu(t,this.n),t.a+=`
endInLayerDummy=`,mu(t,this.b),t.a+=`
endInLayerEdge=`,mu(t,this.c),t.a},I(Od,"BreakingPointInserter/BPInfo",313),D(661,1,{661:1},fXe),h.a=!1,h.b=0,h.c=0,I(Od,"BreakingPointInserter/Cut",661),D(1545,1,ns,Vee),h.Kf=function(t,n){QEn(l(t,36),n)},I(Od,"BreakingPointProcessor",1545),D(1546,1,ei,Gee),h.Mb=function(t){return Nht(l(t,10))},I(Od,"BreakingPointProcessor/0methodref$isEnd$Type",1546),D(1547,1,ei,Kee),h.Mb=function(t){return Pht(l(t,10))},I(Od,"BreakingPointProcessor/1methodref$isStart$Type",1547),D(1548,1,ns,Wee),h.Kf=function(t,n){wCn(this,l(t,36),n)},I(Od,"BreakingPointRemover",1548),D(1549,1,hr,Yee),h.Cd=function(t){l(t,131).k=!0},I(Od,"BreakingPointRemover/lambda$0$Type",1549),D(811,1,{},W9e),h.b=0,h.e=0,h.f=0,h.j=0,I(Od,"GraphStats",811),D(812,1,{},Zj),h.Ve=function(t,n){return b.Math.max(ze(Ge(t)),ze(Ge(n)))},I(Od,"GraphStats/0methodref$max$Type",812),D(813,1,{},e$),h.Ve=function(t,n){return b.Math.max(ze(Ge(t)),ze(Ge(n)))},I(Od,"GraphStats/2methodref$max$Type",813),D(1726,1,{},Xee),h.Ve=function(t,n){return ydn(Ge(t),Ge(n))},I(Od,"GraphStats/lambda$1$Type",1726),D(1727,1,{},rXe),h.Kb=function(t){return $dt(this.a,l(t,30))},I(Od,"GraphStats/lambda$2$Type",1727),D(1728,1,{},iXe),h.Kb=function(t){return Dbt(this.a,l(t,30))},I(Od,"GraphStats/lambda$6$Type",1728),D(814,1,{},t$),h.og=function(t,n){var r;return r=l(Q(t,(Nt(),TDe)),15),r||(Cn(),Cn(),Co)},h.pg=function(){return!1},I(Od,"ICutIndexCalculator/ManualCutIndexCalculator",814),D(816,1,{},n$),h.og=function(t,n){var r,s,o,f,g,w,T,C,L,F,z,V,J,te,fe,Ee,Me,$e,Je;for(Je=(n.n==null&&ggt(n),n.n),T=(n.d==null&&ggt(n),n.d),$e=We(Oa,tc,28,Je.length,15,1),$e[0]=Je[0],Ee=Je[0],C=1;C<Je.length;C++)$e[C]=$e[C-1]+Je[C],Ee+=Je[C];for(o=Npt(n)-1,g=l(Q(t,(Nt(),EDe)),17).a,s=oa,r=new mt,z=b.Math.max(0,o-g);z<=b.Math.min(n.f-1,o+g);z++){if(te=Ee/(z+1),fe=0,L=1,f=new mt,Me=oa,F=0,w=0,J=T[0],z==0)Me=Ee,w=(n.g==null&&(n.g=Zft(n,new e$)),ze(n.g));else{for(;L<n.f;)$e[L-1]-fe>=te&&(wt(f,bt(L)),Me=b.Math.max(Me,$e[L-1]-F),w+=J,fe+=$e[L-1]-fe,F=$e[L-1],J=T[L]),J=b.Math.max(J,T[L]),++L;w+=J}V=b.Math.min(1/Me,1/n.b/w),V>s&&(s=V,r=f)}return r},h.pg=function(){return!1},I(Od,"MSDCutIndexHeuristic",816),D(1683,1,ns,Qee),h.Kf=function(t,n){oLn(l(t,36),n)},I(Od,"SingleEdgeGraphWrapper",1683),D(232,22,{3:1,34:1,22:1,232:1},E_);var P6,NE,PE,g4,HL,B6,BE=Br(cu,"CenterEdgeLabelPlacementStrategy",232,Hr,Gvn,W0n),zxt;D(431,22,{3:1,34:1,22:1,431:1},J3e);var ALe,$1e,LLe=Br(cu,"ConstraintCalculationStrategy",431,Hr,f2n,Y0n),qxt;D(322,22,{3:1,34:1,22:1,322:1,188:1,196:1},Ose),h.dg=function(){return b2t(this)},h.qg=function(){return b2t(this)};var CB,UL,MLe,DLe=Br(cu,"CrossingMinimizationStrategy",322,Hr,abn,X0n),Hxt;D(351,22,{3:1,34:1,22:1,351:1},Nse);var ILe,z1e,nW,OLe=Br(cu,"CuttingStrategy",351,Hr,obn,Q0n),Uxt;D(348,22,{3:1,34:1,22:1,348:1,188:1,196:1},mO),h.dg=function(){return abt(this)},h.qg=function(){return abt(this)};var NLe,q1e,FE,H1e,RE,PLe=Br(cu,"CycleBreakingStrategy",348,Hr,lvn,J0n),Vxt;D(428,22,{3:1,34:1,22:1,428:1},Z3e);var rW,BLe,FLe=Br(cu,"DirectionCongruency",428,Hr,h2n,Z0n),Gxt;D(460,22,{3:1,34:1,22:1,460:1},Pse);var jE,U1e,F6,Kxt=Br(cu,"EdgeConstraint",460,Hr,cbn,a1n),Wxt;D(283,22,{3:1,34:1,22:1,283:1},C_);var V1e,G1e,K1e,W1e,iW,Y1e,RLe=Br(cu,"EdgeLabelSideSelection",283,Hr,Hvn,o1n),Yxt;D(488,22,{3:1,34:1,22:1,488:1},eye);var sW,jLe,$Le=Br(cu,"EdgeStraighteningStrategy",488,Hr,w2n,c1n),Xxt;D(281,22,{3:1,34:1,22:1,281:1},S_);var X1e,zLe,qLe,aW,HLe,ULe,VLe=Br(cu,"FixedAlignment",281,Hr,Uvn,s1n),Qxt;D(282,22,{3:1,34:1,22:1,282:1},__);var GLe,KLe,WLe,YLe,VL,XLe,QLe=Br(cu,"GraphCompactionStrategy",282,Hr,Vvn,e1n),Jxt;D(259,22,{3:1,34:1,22:1,259:1},fy);var $E,oW,zE,mf,GL,cW,qE,R6,uW,KL,Q1e=Br(cu,"GraphProperties",259,Hr,L3n,t1n),Zxt;D(299,22,{3:1,34:1,22:1,299:1},Bse);var SB,J1e,Z1e,ede=Br(cu,"GreedySwitchType",299,Hr,ubn,n1n),e9t;D(311,22,{3:1,34:1,22:1,311:1},Fse);var Gx,_B,j6,t9t=Br(cu,"InLayerConstraint",311,Hr,lbn,r1n),n9t;D(429,22,{3:1,34:1,22:1,429:1},tye);var tde,JLe,ZLe=Br(cu,"InteractiveReferencePoint",429,Hr,l2n,i1n),r9t,eMe,Kx,p3,lW,tMe,nMe,hW,rMe,AB,fW,WL,Wx,wp,nde,dW,Xc,iMe,Wb,_u,rde,ide,LB,wv,b3,Yx,sMe,Xx,MB,
`;for(n=Fr(this.a,0);n.b!=n.d.c;)t=l(Pr(n),65),o+=(t.b&&t.c?Um(t.b)+"->"+Um(t.c):"e_"+ts(t))+`
`;return o};var WOn=I(wL,"TGraph",121);D(643,508,{3:1,508:1,643:1,96:1,137:1}),I(wL,"TShape",643),D(40,643,{3:1,508:1,40:1,643:1,96:1,137:1},Pce),h.Ib=function(){return Um(this)};var qW=I(wL,"TNode",40);D(236,1,gg,Kg),h.Jc=function(t){Za(this,t)},h.Kc=function(){var t;return t=Fr(this.a.d,0),new _5(t)},I(wL,"TNode/2",236),D(329,1,Ia,_5),h.Nb=function(t){Qa(this,t)},h.Pb=function(){return l(Pr(this.a),65).c},h.Ob=function(){return sO(this.a)},h.Qb=function(){uce(this.a)},I(wL,"TNode/2/1",329),D(1923,1,ns,Xte),h.Kf=function(t,n){cOn(this,l(t,121),n)},I(Eu,"CompactionProcessor",1923),D(1924,1,ii,$Xe),h.Ne=function(t,n){return Y3n(this.a,l(t,40),l(n,40))},h.Fb=function(t){return this===t},h.Oe=function(){return new Ut(this)},I(Eu,"CompactionProcessor/lambda$0$Type",1924),D(1925,1,ei,Dtt),h.Mb=function(t){return t2n(this.b,this.a,l(t,42))},h.a=0,h.b=0,I(Eu,"CompactionProcessor/lambda$1$Type",1925),D(1934,1,ii,c8),h.Ne=function(t,n){return Ggn(l(t,40),l(n,40))},h.Fb=function(t){return this===t},h.Oe=function(){return new Ut(this)},I(Eu,"CompactionProcessor/lambda$10$Type",1934),D(1935,1,ii,a$),h.Ne=function(t,n){return afn(l(t,40),l(n,40))},h.Fb=function(t){return this===t},h.Oe=function(){return new Ut(this)},I(Eu,"CompactionProcessor/lambda$11$Type",1935),D(1936,1,ii,Qte),h.Ne=function(t,n){return Kgn(l(t,40),l(n,40))},h.Fb=function(t){return this===t},h.Oe=function(){return new Ut(this)},I(Eu,"CompactionProcessor/lambda$12$Type",1936),D(1926,1,ei,zXe),h.Mb=function(t){return Hhn(this.a,l(t,42))},h.a=0,I(Eu,"CompactionProcessor/lambda$2$Type",1926),D(1927,1,ei,qXe),h.Mb=function(t){return Uhn(this.a,l(t,42))},h.a=0,I(Eu,"CompactionProcessor/lambda$3$Type",1927),D(1928,1,ei,TI),h.Mb=function(t){return l(t,40).c.indexOf(RG)==-1},I(Eu,"CompactionProcessor/lambda$4$Type",1928),D(1929,1,{},HXe),h.Kb=function(t){return rmn(this.a,l(t,40))},h.a=0,I(Eu,"CompactionProcessor/lambda$5$Type",1929),D(1930,1,{},UXe),h.Kb=function(t){return hwn(this.a,l(t,40))},h.a=0,I(Eu,"CompactionProcessor/lambda$6$Type",1930),D(1931,1,ii,VXe),h.Ne=function(t,n){return kvn(this.a,l(t,240),l(n,240))},h.Fb=function(t){return this===t},h.Oe=function(){return new Ut(this)},I(Eu,"CompactionProcessor/lambda$7$Type",1931),D(1932,1,ii,GXe),h.Ne=function(t,n){return Tvn(this.a,l(t,40),l(n,40))},h.Fb=function(t){return this===t},h.Oe=function(){return new Ut(this)},I(Eu,"CompactionProcessor/lambda$8$Type",1932),D(1933,1,ii,Jte),h.Ne=function(t,n){return ofn(l(t,40),l(n,40))},h.Fb=function(t){return this===t},h.Oe=function(){return new Ut(this)},I(Eu,"CompactionProcessor/lambda$9$Type",1933),D(1921,1,ns,Zte),h.Kf=function(t,n){i_n(l(t,121),n)},I(Eu,"DirectionProcessor",1921),D(1913,1,ns,vit),h.Kf=function(t,n){_An(this,l(t,121),n)},I(Eu,"FanProcessor",1913),D(1937,1,ns,ene),h.Kf=function(t,n){GSn(l(t,121),n)},I(Eu,"GraphBoundsProcessor",1937),D(1938,1,{},tne),h.Ye=function(t){return l(t,40).e.a},I(Eu,"GraphBoundsProcessor/lambda$0$Type",1938),D(1939,1,{},nne),h.Ye=function(t){return l(t,40).e.b},I(Eu,"GraphBoundsProcessor/lambda$1$Type",1939),D(1940,1,{},rne),h.Ye=function(t){return Sln(l(t,40))},I(Eu,"GraphBoundsProcessor/lambda$2$Type",1940),D(1941,1,{},ine),h.Ye=function(t){return Cln(l(t,40))},I(Eu,"GraphBoundsProcessor/lambda$3$Type",1941),D(262,22,{3:1,34:1,22:1,262:1,196:1},gw),h.dg=function(){switch(this.g){case 0:return new GJe;case 1:return new vit;case 2:return new VJe;case 3:return new u$;case 4:return new sne;case 8:return new o$;case 5:return new Zte;case 6:return new h$;case 7:return new Xte;case 9:return new ene;case 10:return new one;default:throw ue(new Wn(Qhe+(this.f!=null?this.f:""+this.g)))}};var oIe,cIe,uIe,lIe,hIe,fIe,dIe,gIe,pIe,bIe,Vde,YOn=Br(Eu,Jhe,262,Hr,f0t,M1n),zEt;D(1920,1,ns,o$),h.Kf=function(t,n){sIn(l(t,121),n)},I(Eu,"LevelCoordinatesProcessor",1920),D(1918,1,ns,sne),h.Kf=function(t,n){SCn(this,l(t,121),n)},h.a=0,I(Eu,"LevelHeightProcessor",1918),D(1919,1,gg,c$),h.Jc=function(t){Za(this,t)},h.Kc=function(){return Cn(),Ik(),ME},I(Eu,"LevelHeightProcessor/1",1919),D(1914,1,ns,VJe),h.Kf=function(t,n){$Sn(this,l(t,121),n)},I(Eu,"Level
`),o.length!=2)throw ue(new Wn("Exactly two numbers are expected, "+o.length+" were found."));try{this.a=qy(Hy(o[0])),this.b=qy(Hy(o[1]))}catch(f){throw f=ms(f),De(f,130)?(r=f,ue(new Wn(hyt+r))):ue(f)}},h.Ib=function(){return"("+this.a+","+this.b+")"},h.a=0,h.b=0;var Ca=I(WP,"KVector",8);D(75,67,{3:1,4:1,20:1,31:1,56:1,16:1,67:1,15:1,75:1,423:1},pl,Zz,qrt),h.Pc=function(){return e4n(this)},h.cg=function(t){var n,r,s,o,f,g;s=Yy(t,`,|;|\\(|\\)|\\[|\\]|\\{|\\}| | |
`),Ch(this);try{for(r=0,f=0,o=0,g=0;r<s.length;)s[r]!=null&&Hy(s[r]).length>0&&(f%2==0?o=qy(s[r]):g=qy(s[r]),f>0&&f%2!=0&&ci(this,new lt(o,g)),++f),++r}catch(w){throw w=ms(w),De(w,130)?(n=w,ue(new Wn("The given string does not match the expected format for vectors."+n))):ue(w)}},h.Ib=function(){var t,n,r;for(t=new Eh("("),n=Fr(this,0);n.b!=n.d.c;)r=l(Pr(n),8),li(t,r.a+","+r.b),n.b!=n.d.c&&(t.a+="; ");return(t.a+=")",t).a};var lNe=I(WP,"KVectorChain",75);D(255,22,{3:1,34:1,22:1,255:1},A_);var $ge,oY,cY,QB,JB,uY,hNe=Br(Zl,"Alignment",255,Hr,Qvn,idn),QSt;D(991,1,Pf,Sie),h.hf=function(t){Qmt(t)};var fNe,zge,JSt,dNe,gNe,ZSt,pNe,e_t,t_t,bNe,mNe,n_t;I(Zl,"BoxLayouterOptions",991),D(992,1,{},nk),h.sf=function(){var t;return t=new Zne,t},h.tf=function(t){},I(Zl,"BoxLayouterOptions/BoxFactory",992),D(298,22,{3:1,34:1,22:1,298:1},L_);var EM,qge,CM,SM,_M,Hge,Uge=Br(Zl,"ContentAlignment",298,Hr,Jvn,sdn),r_t;D(699,1,Pf,bz),h.hf=function(t){an(t,new Qt(rn(nn(sn(Jt(tn(Zt(en(new Kt,f4t),""),"Layout Algorithm"),"Select a specific layout algorithm."),(T2(),e7)),$t),hn((n1(),Bn))))),an(t,new Qt(rn(nn(sn(Jt(tn(Zt(en(new Kt,d4t),""),"Resolved Layout Algorithm"),"Meta data associated with the selected algorithm."),X1),ZOn),hn(Bn)))),an(t,new Qt(rn(nn(sn(yn(Jt(tn(Zt(en(new Kt,aCe),""),"Alignment"),"Alignment of the selected node relative to other nodes; the exact meaning depends on the used algorithm."),vNe),ps),hNe),hn(pa)))),an(t,new Qt(rn(nn(sn(Jt(tn(Zt(en(new Kt,Nx),""),"Aspect Ratio"),"The desired aspect ratio of the drawing, that is the quotient of width by height."),co),ra),hn(Bn)))),an(t,new Qt(rn(nn(sn(Jt(tn(Zt(en(new Kt,wSe),""),"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."),X1),lNe),hn(zd)))),an(t,new Qt(rn(nn(sn(yn(Jt(tn(Zt(en(new Kt,OG),""),"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."),yNe),n9),Uge),hn(Bn)))),an(t,new Qt(rn(nn(sn(yn(Jt(tn(Zt(en(new Kt,JP),""),"Debug Mode"),"Whether additional debug information shall be generated."),(Hn(),!1)),Ta),Ps),hn(Bn)))),an(t,new Qt(rn(nn(sn(yn(Jt(tn(Zt(en(new Kt,Afe),""),$Te),"Overall direction of edges: horizontal (right / left) or vertical (down / up)."),xNe),ps),MM),hn(Bn)))),an(t,new Qt(rn(nn(sn(yn(Jt(tn(Zt(en(new Kt,QP),""),"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."),ENe),ps),ipe),hn(Bn)))),an(t,new Qt(rn(nn(sn(yn(Jt(tn(Zt(en(new Kt,mSe),""),"Expand Nodes"),"If active, nodes are expanded to fill the area of their parent."),!1),Ta),Ps),hn(Bn)))),an(t,new Qt(rn(nn(sn(yn(Jt(tn(Zt(en(new Kt,IG),""),"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`."),_Ne),ps),dPe),is(Bn,he(le(Eg,1),it,170,0,[pa]))))),an(t,new Qt(rn(nn(sn(yn(Jt(tn(Zt(en(new Kt,r3),""),"Padding"),"The padding to be left to a parent element's border when placing child elements. This can also serve as an output
Consider installing the package or pass your own 'workerFactory' to ELK's constructor.
... Falling back to non-web worker version.`);if(!B.workerFactory){var ee=u("./elk-worker.min.js"),ie=ee.Worker;B.workerFactory=function(oe){return new ie(oe)}}return b(this,(P.__proto__||Object.getPrototypeOf(P)).call(this,B))}return P}(E);Object.defineProperty(d.exports,"__esModule",{value:!0}),d.exports=_,_.default=_},{"./elk-api.js":1,"./elk-worker.min.js":2,"web-worker":4}],4:[function(u,d,p){d.exports=Worker},{}]},{},[3])(3)})})(wWe);var Gan=wWe.exports;const Kan=dC(Gan),yWe=new Kan;let Xv={};const Wan={};let Y7={};const Yan=async function(i,a,u,d,p,v,b){const E=u.select(`[id="${a}"]`).insert("g").attr("class","nodes"),_=Object.keys(i);return await Promise.all(_.map(async function(A){const P=i[A];let R="default";P.classes.length>0&&(R=P.classes.join(" ")),R=R+" flowchart-label";const B=gm(P.styles);let j=P.text!==void 0?P.text:P.id;const W={width:0,height:0},ee=[{id:P.id+"-west",layoutOptions:{"port.side":"WEST"}},{id:P.id+"-east",layoutOptions:{"port.side":"EAST"}},{id:P.id+"-south",layoutOptions:{"port.side":"SOUTH"}},{id:P.id+"-north",layoutOptions:{"port.side":"NORTH"}}];let ie=0,oe="",be={};switch(P.type){case"round":ie=5,oe="rect";break;case"square":oe="rect";break;case"diamond":oe="question",be={portConstraints:"FIXED_SIDE"};break;case"hexagon":oe="hexagon";break;case"odd":oe="rect_left_inv_arrow";break;case"lean_right":oe="lean_right";break;case"lean_left":oe="lean_left";break;case"trapezoid":oe="trapezoid";break;case"inv_trapezoid":oe="inv_trapezoid";break;case"odd_right":oe="rect_left_inv_arrow";break;case"circle":oe="circle";break;case"ellipse":oe="ellipse";break;case"stadium":oe="stadium";break;case"subroutine":oe="subroutine";break;case"cylinder":oe="cylinder";break;case"group":oe="rect";break;case"doublecircle":oe="doublecircle";break;default:oe="rect"}const ge={labelStyle:B.labelStyle,shape:oe,labelText:j,labelType:P.labelType,rx:ie,ry:ie,class:R,style:B.style,id:P.id,link:P.link,linkTarget:P.linkTarget,tooltip:p.db.getTooltip(P.id)||"",domId:p.db.lookUpDomId(P.id),haveCallback:P.haveCallback,width:P.type==="group"?500:void 0,dir:P.dir,type:P.type,props:P.props,padding:mh().flowchart.padding};let ae,ne;if(ge.type!=="group")ne=await pJ(E,ge,P.dir),ae=ne.node().getBBox();else{d.createElementNS("http://www.w3.org/2000/svg","text");const{shapeSvg:de,bbox:X}=await g1(E,ge,void 0,!0);W.width=X.width,W.wrappingWidth=mh().flowchart.wrappingWidth,W.height=X.height,W.labelNode=de.node(),ge.labelData=W}const se={id:P.id,ports:P.type==="diamond"?ee:[],layoutOptions:be,labelText:j,labelData:W,domId:p.db.lookUpDomId(P.id),width:ae==null?void 0:ae.width,height:ae==null?void 0:ae.height,type:P.type,el:ne,parent:v.parentById[P.id]};Y7[ge.id]=se})),b},xWe=(i,a,u)=>{const d={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 d.TD=d.TB,d[u][a][i]},kWe=(i,a,u)=>{if(Xe.info("getNextPort",{node:i,edgeDirection:a,graphDirection:u}),!Xv[i])switch(u){case"TB":case"TD":Xv[i]={inPosition:"north",outPosition:"south"};break;case"BT":Xv[i]={inPosition:"south",outPosition:"north"};break;case"RL":Xv[i]={inPosition:"east",outPosition:"west"};break;case"LR":Xv[i]={inPosition:"west",outPosition:"east"};break}const d=a==="in"?Xv[i].inPosition:Xv[i].outPosition;return a==="in"?Xv[i].inPosition=xWe(Xv[i].inPosition,a,u):Xv[i].outPosition=xWe(Xv[i].outPosition,a,u),d},Xan=(i,a)=>{let u=i.start,d=i.end;const p=u,v=d,b=Y7[u],y=Y7[d];return!b||!y?{source:u,target:d}:(b.type==="diamond"&&(u=`${u}-${kWe(u,"out",a)}`),y.type==="diamond"&&(d=`${d}-${kWe(d,"in",a)}`),{source:u,target:d,sourceId:p,targetId:v})},Qan=function(i,a,u,d){Xe.info("abc78 edges = ",i);const p=d.insert("g").attr("class","edgeLabels");let v={},b=a.db.getDirection(),y,E;if(i.defaultStyle!==void 0){const _=gm(i.defaultStyle);y=_.style,E=_.labelStyle}return i.forEach(function(_){const A="L-"+_.start+"-"+_.end;v[A]===void 0?(v[A]=0,Xe.info("abc78 new en
`),_.style===void 0&&(j.style=j.style||"stroke: #333; stroke-width: 1.5px;fill:none;"),j.labelStyle=j.labelStyle.replace("color:","fill:"),j.id=P,j.classes="flowchart-link "+R+" "+B;const ie=sve(p,j),{source:oe,target:be,sourceId:ge,targetId:ae}=Xan(_,b);Xe.debug("abc78 source and target",oe,be),u.edges.push({id:"e"+_.start+_.end,sources:[oe],targets:[be],sourceId:ge,targetId:ae,labelEl:ie,labels:[{width:j.width,height:j.height,orgWidth:j.width,orgHeight:j.height,text:j.label,layoutOptions:{"edgeLabels.inline":"true","edgeLabels.placement":"CENTER"}}],edgeData:j})}),u},Jan=function(i,a,u,d,p){let v="";d&&(v=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,v=v.replace(/\(/g,"\\("),v=v.replace(/\)/g,"\\)")),iGe(i,a,v,p,u)},Zan=function(i,a){return Xe.info("Extracting classes"),a.db.getClasses()},eon=function(i){const a={parentById:{},childrenById:{}},u=i.getSubGraphs();return Xe.info("Subgraphs - ",u),u.forEach(function(d){d.nodes.forEach(function(p){a.parentById[p]=d.id,a.childrenById[d.id]===void 0&&(a.childrenById[d.id]=[]),a.childrenById[d.id].push(p)})}),u.forEach(function(d){d.id,a.parentById[d.id]!==void 0&&a.parentById[d.id]}),a},ton=function(i,a,u){const d=Van(i,a,u);if(d===void 0||d==="root")return{x:0,y:0};const p=Y7[d].offset;return{x:p.posX,y:p.posY}},non=function(i,a,u,d,p,v){const b=ton(a.sourceId,a.targetId,p),y=a.sections[0].startPoint,E=a.sections[0].endPoint,A=(a.sections[0].bendPoints?a.sections[0].bendPoints:[]).map(be=>[be.x+b.x,be.y+b.y]),P=[[y.x+b.x,y.y+b.y],...A,[E.x+b.x,E.y+b.y]],{x:R,y:B}=rGe(a.edgeData),j=E7().x(R).y(B).curve(Sp),W=i.insert("path").attr("d",j(P)).attr("class","path "+u.classes).attr("fill","none"),ee=i.insert("g").attr("class","edgeLabel"),ie=Dr(ee.node().appendChild(a.labelEl)),oe=ie.node().firstChild.getBoundingClientRect();ie.attr("width",oe.width),ie.attr("height",oe.height),ee.attr("transform",`translate(${a.labels[0].x+b.x}, ${a.labels[0].y+b.y})`),Jan(W,u,d.type,d.arrowMarkerAbsolute,v)},TWe=(i,a)=>{i.forEach(u=>{u.children||(u.children=[]);const d=a.childrenById[u.id];d&&d.forEach(p=>{u.children.push(Y7[p])}),TWe(u.children,a)})},ron=async function(i,a,u,d){var se;d.db.clear(),Y7={},Xv={},d.db.setGen("gen-2"),d.parser.parse(i);const p=Dr("body").append("div").attr("style","height:400px").attr("id","cy");let v={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(Xe.info("Drawing flowchart using v3 renderer",yWe),d.db.getDirection()){case"BT":v.layoutOptions["elk.direction"]="UP";break;case"TB":v.layoutOptions["elk.direction"]="DOWN";break;case"LR":v.layoutOptions["elk.direction"]="RIGHT";break;case"RL":v.layoutOptions["elk.direction"]="LEFT";break}const{securityLevel:y,flowchart:E}=mh();let _;y==="sandbox"&&(_=Dr("#i"+a));const A=Dr(y==="sandbox"?_.nodes()[0].contentDocument.body:"body"),P=y==="sandbox"?_.nodes()[0].contentDocument:document,R=A.select(`[id="${a}"]`);Ume(R,["point","circle","cross"],d.type,a);const j=d.db.getVertices();let W;const ee=d.db.getSubGraphs();Xe.info("Subgraphs - ",ee);for(let de=ee.length-1;de>=0;de--)W=ee[de],d.db.addVertex(W.id,{text:W.title,type:W.labelType},"group",void 0,W.classes,W.dir);const ie=R.insert("g").attr("class","subgraphs"),oe=eon(d.db);v=await Yan(j,a,A,P,d,oe,v);const be=R.insert("g").attr("class","edges edgePath"),ge=d.db.getEdges();v=Qan(ge,d,v,R),Object.keys(Y7).forEach(de=>{const X=Y7[de];X.parent||v.children.push(X),oe.childrenById[de]!==void 0&&(X.labels=[{text:X.labelText,layoutOptions:{"nodeLabels.placement":"[H_CENTER, V_TOP, INSIDE]"},width:X.labelData.width,height:X.labelData.height}],delete X.x,delete X.y,delete X.width,delete X.height)}),TWe(v.children,oe),Xe.info("after layout",JSON.stringify(v,null,2));const ne=await yWe.layout(v);EWe(0,0,ne.children,R,ie,d,0),Xe.info("after layout",ne),(se=ne.edges)==null||se.map(de=>{non(be,de,de.edgeData,d,oe,a)}),x9({},R,E.diagramPadding,
.subgraph-lvl-${u} {
fill: ${i[`surface${u}`]};
stroke: ${i[`surfacePeer${u}`]};
}
`;return a},aon=Object.freeze(Object.defineProperty({__proto__:null,diagram:{db:WVt,renderer:ion,parser:lme,styles:i=>`.label {
font-family: ${i.fontFamily};
color: ${i.nodeTextColor||i.textColor};
}
.cluster-label text {
fill: ${i.titleColor};
}
.cluster-label span {
color: ${i.titleColor};
}
.label text,span {
fill: ${i.nodeTextColor||i.textColor};
color: ${i.nodeTextColor||i.textColor};
}
.node rect,
.node circle,
.node ellipse,
.node polygon,
.node path {
fill: ${i.mainBkg};
stroke: ${i.nodeBorder};
stroke-width: 1px;
}
.node .label {
text-align: center;
}
.node.clickable {
cursor: pointer;
}
.arrowheadPath {
fill: ${i.arrowheadColor};
}
.edgePath .path {
stroke: ${i.lineColor};
stroke-width: 2.0px;
}
.flowchart-link {
stroke: ${i.lineColor};
fill: none;
}
.edgeLabel {
background-color: ${i.edgeLabelBackground};
rect {
opacity: 0.85;
background-color: ${i.edgeLabelBackground};
fill: ${i.edgeLabelBackground};
}
text-align: center;
}
.cluster rect {
fill: ${i.clusterBkg};
stroke: ${i.clusterBorder};
stroke-width: 1px;
}
.cluster text {
fill: ${i.titleColor};
}
.cluster span {
color: ${i.titleColor};
}
/* .cluster div {
color: ${i.titleColor};
} */
div.mermaidTooltip {
position: absolute;
text-align: center;
max-width: 200px;
padding: 2px;
font-family: ${i.fontFamily};
font-size: 12px;
background: ${i.tertiaryColor};
border: 1px solid ${i.border2};
border-radius: 2px;
pointer-events: none;
z-index: 100;
}
.flowchartTitleText {
text-anchor: middle;
font-size: 18px;
fill: ${i.textColor};
}
.subgraph {
stroke-width:2;
rx:3;
}
// .subgraph-lvl-1 {
// fill:#ccc;
// // stroke:black;
// }
.flowchart-label text {
text-anchor: middle;
}
${son(i)}
`}},Symbol.toStringTag,{value:"Module"}));var pwe=function(){var i=function(R,B,j,W){for(j=j||{},W=R.length;W--;j[R[W]]=B);return j},a=[6,8,10,11,12,14,16,17,20,21],u=[1,9],d=[1,10],p=[1,11],v=[1,12],b=[1,13],y=[1,16],E=[1,17],_={trace:function(){},yy:{},symbols_:{error:2,start:3,timeline:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NEWLINE:10,title:11,acc_title:12,acc_title_value:13,acc_descr:14,acc_descr_value:15,acc_descr_multiline_value:16,section:17,period_statement:18,event_statement:19,period:20,event:21,$accept:0,$end:1},terminals_:{2:"error",4:"timeline",6:"EOF",8:"SPACE",10:"NEWLINE",11:"title",12:"acc_title",13:"acc_title_value",14:"acc_descr",15:"acc_descr_value",16:"acc_descr_multiline_value",17:"section",20:"period",21:"event"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[9,1],[9,2],[9,2],[9,1],[9,1],[9,1],[9,1],[18,1],[19,1]],performAction:function(B,j,W,ee,ie,oe,be){var ge=oe.length-1;switch(ie){case 1:return oe[ge-1];case 2:this.$=[];break;case 3:oe[ge-1].push(oe[ge]),this.$=oe[ge-1];break;case 4:case 5:this.$=oe[ge];break;case 6:case 7:this.$=[];break;case 8:ee.getCommonDb().setDiagramTitle(oe[ge].substr(6)),this.$=oe[ge].substr(6);break;case 9:this.$=oe[ge].trim(),ee.getCommonDb().setAccTitle(this.$);break;case 10:case 11:this.$=oe[ge].trim(),ee.getCommonDb().setAccDescription(this.$);break;case 12:ee.addSection(oe[ge].substr(8)),this.$=oe[ge].substr(8);break;case 15:ee.addTask(oe[ge],0,""),this.$=oe[ge];break;case 16:ee.addEvent(oe[ge].substr(2)),this.$=oe[ge];break}},table:[{3:1,4:[1,2]},{1:[3]},i(a,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:u,12:d,14:p,16:v,17:b,18:14,19:15,20:y,21:E},i(a,[2,7],{1:[2,1]}),i(a,[2,3]),{9:18,11:u,12:d,14:p,16:v,17:b,18:14,19:15,20:y,21:E},i(a,[2,5]),i(a,[2,6]),i(a,[2,8]),{13:[1,19]},{15:[1,20]},i(a,[2,11]),i(a,[2,12]),i(a,[2,13]),i(a,[2,14]),i(a,[2,15]),i(a,[2,16]),i(a,[2,4]),i(a,[2,9]),i(a,[2,10])],defaultActions:{},parseError:function(B,j){if(j.recoverable)this.trace(B);else{var W=new Error(B);throw W.hash=j,W}},parse:function(B){var j=this,W=[0],ee=[],ie=[null],oe=[],be=this.table,ge="",ae=0,ne=0,se=2,de=1,X=oe.slice.call(arguments,1),pe=Object.create(this.lexer),G={yy:{}};for(var xe in this.yy)Object.prototype.hasOwnProperty.call(this.yy,xe)&&(G.yy[xe]=this.yy[xe]);pe.setInput(B,G.yy),G.yy.lexer=pe,G.yy.parser=this,typeof pe.yylloc>"u"&&(pe.yylloc={});var U=pe.yylloc;oe.push(U);var Be=pe.options&&pe.options.ranges;typeof G.yy.parseError=="function"?this.parseError=G.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Pe(){var Et;return Et=ee.pop()||pe.lex()||de,typeof Et!="number"&&(Et instanceof Array&&(ee=Et,Et=ee.pop()),Et=j.symbols_[Et]||Et),Et}for(var je,Ie,Se,Ce,ke={},Ke,zt,Ne,pn;;){if(Ie=W[W.length-1],this.defaultActions[Ie]?Se=this.defaultActions[Ie]:((je===null||typeof je>"u")&&(je=Pe()),Se=be[Ie]&&be[Ie][je]),typeof Se>"u"||!Se.length||!Se[0]){var Tt="";pn=[];for(Ke in be[Ie])this.terminals_[Ke]&&Ke>se&&pn.push("'"+this.terminals_[Ke]+"'");pe.showPosition?Tt="Parse error on line "+(ae+1)+`:
`+pe.showPosition()+`
Expecting `+pn.join(", ")+", got '"+(this.terminals_[je]||je)+"'":Tt="Parse error on line "+(ae+1)+": Unexpected "+(je==de?"end of input":"'"+(this.terminals_[je]||je)+"'"),this.parseError(Tt,{text:pe.match,token:this.terminals_[je]||je,line:pe.yylineno,loc:U,expected:pn})}if(Se[0]instanceof Array&&Se.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Ie+", token: "+je);switch(Se[0]){case 1:W.push(je),ie.push(pe.yytext),oe.push(pe.yylloc),W.push(Se[1]),je=null,ne=pe.yyleng,ge=pe.yytext,ae=pe.yylineno,U=pe.yylloc;break;case 2:if(zt=this.productions_[Se[1]][1],ke.$=ie[ie.length-zt],ke._$={first_line:oe[oe.length-(zt||1)].first_line,last_line:oe[oe.length-1].last_line,first_column:oe[oe.length-(zt||1)].first_column,last_column:oe[oe.length-1].last_column},Be&&(ke._$.range=[oe[oe.length-(zt||1)].range[0],oe[oe.length-1].range[1]]),Ce=this.performAction.apply(ke,[ge,ne,ae,G.yy,Se[1],ie,oe].concat(X)),typeof Ce<"u")return Ce;zt&&(W=W.slice(0,-1*zt*2),ie=ie.slice(0,-1*zt),oe=oe.slice(0,-1*zt)),W.push(this.productions_[Se[1]][0]),ie.push(ke.$),oe.push(ke._$),Ne=be[W[W.length-2]][W[W.length-1]],W.push(Ne);break;case 3:return!0}}return!0}},A=function(){var R={EOF:1,parseError:function(j,W){if(this.yy.parser)this.yy.parser.parseError(j,W);else throw new Error(j)},setInput:function(B,j){return this.yy=j||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 j=B.match(/(?:\r\n?|\n).*/g);return j?(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 j=B.length,W=B.split(/(?:\r\n?|\n)/g);this._input=B+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-j),this.offset-=j;var ee=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),W.length-1&&(this.yylineno-=W.length-1);var ie=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:W?(W.length===ee.length?this.yylloc.first_column:0)+ee[ee.length-W.length].length-W[0].length:this.yylloc.first_column-j},this.options.ranges&&(this.yylloc.range=[ie[0],ie[0]+this.yyleng-j]),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(),j=new Array(B.length+1).join("-");return B+this.upcomingInput()+`
`+j+"^"},test_match:function(B,j){var W,ee,ie;if(this.options.backtrack_lexer&&(ie={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&&(ie.yylloc.range=this.yylloc.range.slice(0))),ee=B[0].match(/(?:\r\n?|\n).*/g),ee&&(this.yylineno+=ee.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:ee?ee[ee.length-1].length-ee[ee.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],W=this.performAction.call(this,this.yy,this,j,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),W)return W;if(this._backtrack){for(var oe in ie)this[oe]=ie[oe];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var B,j,W,ee;this._more||(this.yytext="",this.match="");for(var ie=this._currentRules(),oe=0;oe<ie.length;oe++)if(W=this._input.match(this.rules[ie[oe]]),W&&(!j||W[0].length>j[0].length)){if(j=W,ee=oe,this.options.backtrack_lexer){if(B=this.test_match(W,ie[oe]),B!==!1)return B;if(this._backtrack){j=!1;continue}else return!1}else if(!this.options.flex)break}return j?(B=this.test_match(j,ie[ee]),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 j=this.next();return j||this.lex()},begin:function(j){this.conditionStack.push(j)},popState:function(){var j=this.conditionStack.length-1;return j>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(j){return j=this.conditionStack.length-1-Math.abs(j||0),j>=0?this.conditionStack[j]:"INITIAL"},pushState:function(j){this.begin(j)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(j,W,ee,ie){switch(ee){case 0:break;case 1:break;case 2:return 10;case 3:break;case 4:break;case 5:return 4;case 6:return 11;case 7:return this.begin("acc_title"),12;case 8:return this.popState(),"acc_title_value";case 9:return this.begin("acc_descr"),14;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:return 17;case 15:return 21;case 16:return 20;case 17:return 6;case 18:return"INVALID"}},rules:[/^(?:%(?!\{)[^\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:{acc_descr_multiline:{rules:[12,13],inclusive:!1},acc_descr:{rules:[10],inclusive:!1},acc_title:{rules:[8],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7,9,11,14,15,16,17,18],inclusive:!0}}};return R}();_.lexer=A;function P(){this.yy={}}return P.prototype=_,_.Parser=P,new P}();pwe.parser=pwe;const oon=pwe;let oI="",CWe=0;const bwe=[],GJ=[],cI=[],SWe=()=>T$e,_We=function(){bwe.length=0,GJ.length=0,oI="",cI.length=0,Rg()},AWe=function(i){oI=i,bwe.push(i)},LWe=function(){return bwe},MWe=function(){let i=NWe();const a=100;let u=0;for(;!i&&u<a;)i=NWe(),u++;return GJ.push(...cI),GJ},DWe=function(i,a,u){const d={id:CWe++,section:oI,type:oI,task:i,score:a||0,events:u?[u]:[]};cI.push(d)},IWe=function(i){cI.find(u=>u.id===CWe-1).events.push(i)},OWe=function(i){const a={section:oI,type:oI,description:i,task:i,classes:[]};GJ.push(a)},NWe=function(){const i=function(u){return cI[u].processed};let a=!0;for(const[u,d]of cI.entries())i(u),a=a&&d.processed;return a},con=Object.freeze(Object.defineProperty({__proto__:null,addEvent:IWe,addSection:AWe,addTask:DWe,addTaskOrg:OWe,clear:_We,default:{clear:_We,getCommonDb:SWe,addSection:AWe,getSections:LWe,getTasks:MWe,addTask:DWe,addTaskOrg:OWe,addEvent:IWe},getCommonDb:SWe,getSections:LWe,getTasks:MWe},Symbol.toStringTag,{value:"Module"})),uon=12,KJ=function(i,a){const u=i.append("rect");return u.attr("x",a.x),u.attr("y",a.y),u.attr("fill",a.fill),u.attr("stroke",a.stroke),u.attr("width",a.width),u.attr("height",a.height),u.attr("rx",a.rx),u.attr("ry",a.ry),a.class!==void 0&&u.attr("class",a.class),u},lon=function(i,a){const d=i.append("circle").attr("cx",a.cx).attr("cy",a.cy).attr("class","face").attr("r",15).attr("stroke-width",2).attr("overflow","visible"),p=i.append("g");p.append("circle").attr("cx",a.cx-15/3).attr("cy",a.cy-15/3).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666"),p.append("circle").attr("cx",a.cx+15/3).attr("cy",a.cy-15/3).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666");function v(E){const _=hD().startAngle(Math.PI/2).endAngle(3*(Math.PI/2)).innerRadius(7.5).outerRadius(6.8181818181818175);E.append("path").attr("class","mouth").attr("d",_).attr("transform","translate("+a.cx+","+(a.cy+2)+")")}function b(E){const _=hD().startAngle(3*Math.PI/2).endAngle(5*(Math.PI/2)).innerRadius(7.5).outerRadius(6.8181818181818175);E.append("path").attr("class","mouth").attr("d",_).attr("transform",
.section-${u-1} rect, .section-${u-1} path, .section-${u-1} circle, .section-${u-1} path {
fill: ${i["cScale"+u]};
}
.section-${u-1} text {
fill: ${i["cScaleLabel"+u]};
}
.node-icon-${u-1} {
font-size: 40px;
color: ${i["cScaleLabel"+u]};
}
.section-edge-${u-1}{
stroke: ${i["cScale"+u]};
}
.edge-depth-${u-1}{
stroke-width: ${d};
}
.section-${u-1} line {
stroke: ${i["cScaleInv"+u]} ;
stroke-width: 3;
}
.lineWrapper line{
stroke: ${i["cScaleLabel"+u]} ;
}
.disabled, .disabled circle, .disabled text {
fill: lightgray;
}
.disabled text {
fill: #efefef;
}
`}return a},Con=Object.freeze(Object.defineProperty({__proto__:null,diagram:{db:con,renderer:Ton,parser:oon,styles:i=>`
.edge {
stroke-width: 3;
}
${Eon(i)}
.section-root rect, .section-root path, .section-root circle {
fill: ${i.git0};
}
.section-root text {
fill: ${i.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 vwe=function(){var i=function(ge,ae,ne,se){for(ne=ne||{},se=ge.length;se--;ne[ge[se]]=ae);return ne},a=[1,4],u=[1,13],d=[1,12],p=[1,15],v=[1,16],b=[1,20],y=[1,19],E=[6,7,8],_=[1,26],A=[1,24],P=[1,25],R=[6,7,11],B=[1,6,13,15,16,19,22],j=[1,33],W=[1,34],ee=[1,6,7,11,13,15,16,19,22],ie={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(ae,ne,se,de,X,pe,G){var xe=pe.length-1;switch(X){case 6:case 7:return de;case 8:de.getLogger().trace("Stop NL ");break;case 9:de.getLogger().trace("Stop EOF ");break;case 11:de.getLogger().trace("Stop NL2 ");break;case 12:de.getLogger().trace("Stop EOF2 ");break;case 15:de.getLogger().info("Node: ",pe[xe].id),de.addNode(pe[xe-1].length,pe[xe].id,pe[xe].descr,pe[xe].type);break;case 16:de.getLogger().trace("Icon: ",pe[xe]),de.decorateNode({icon:pe[xe]});break;case 17:case 21:de.decorateNode({class:pe[xe]});break;case 18:de.getLogger().trace("SPACELIST");break;case 19:de.getLogger().trace("Node: ",pe[xe].id),de.addNode(0,pe[xe].id,pe[xe].descr,pe[xe].type);break;case 20:de.decorateNode({icon:pe[xe]});break;case 25:de.getLogger().trace("node found ..",pe[xe-2]),this.$={id:pe[xe-1],descr:pe[xe-1],type:de.getType(pe[xe-2],pe[xe])};break;case 26:this.$={id:pe[xe],descr:pe[xe],type:de.nodeType.DEFAULT};break;case 27:de.getLogger().trace("node found ..",pe[xe-3]),this.$={id:pe[xe-3],descr:pe[xe-1],type:de.getType(pe[xe-2],pe[xe])};break}},table:[{3:1,4:2,5:3,6:[1,5],8:a},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:a},{6:u,7:[1,10],9:9,12:11,13:d,14:14,15:p,16:v,17:17,18:18,19:b,22:y},i(E,[2,3]),{1:[2,2]},i(E,[2,4]),i(E,[2,5]),{1:[2,6],6:u,12:21,13:d,14:14,15:p,16:v,17:17,18:18,19:b,22:y},{6:u,9:22,12:11,13:d,14:14,15:p,16:v,17:17,18:18,19:b,22:y},{6:_,7:A,10:23,11:P},i(R,[2,22],{17:17,18:18,14:27,15:[1,28],16:[1,29],19:b,22:y}),i(R,[2,18]),i(R,[2,19]),i(R,[2,20]),i(R,[2,21]),i(R,[2,23]),i(R,[2,24]),i(R,[2,26],{19:[1,30]}),{20:[1,31]},{6:_,7:A,10:32,11:P},{1:[2,7],6:u,12:21,13:d,14:14,15:p,16:v,17:17,18:18,19:b,22:y},i(B,[2,14],{7:j,11:W}),i(ee,[2,8]),i(ee,[2,9]),i(ee,[2,10]),i(R,[2,15]),i(R,[2,16]),i(R,[2,17]),{20:[1,35]},{21:[1,36]},i(B,[2,13],{7:j,11:W}),i(ee,[2,11]),i(ee,[2,12]),{21:[1,37]},i(R,[2,25]),i(R,[2,27])],defaultActions:{2:[2,1],6:[2,2]},parseError:function(ae,ne){if(ne.recoverable)this.trace(ae);else{var se=new Error(ae);throw se.hash=ne,se}},parse:function(ae){var ne=this,se=[0],de=[],X=[null],pe=[],G=this.table,xe="",U=0,Be=0,Pe=2,je=1,Ie=pe.slice.call(arguments,1),Se=Object.create(this.lexer),Ce={yy:{}};for(var ke in this.yy)Object.prototype.hasOwnProperty.call(this.yy,ke)&&(Ce.yy[ke]=this.yy[ke]);Se.setInput(ae,Ce.yy),Ce.yy.lexer=Se,Ce.yy.parser=this,typeof Se.yylloc>"u"&&(Se.yylloc={});var Ke=Se.yylloc;pe.push(Ke);var zt=Se.options&&Se.options.ranges;typeof Ce.yy.parseError=="function"?this.parseError=Ce.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Ne(){var Nn;return Nn=de.pop()||Se.lex()||je,typeof Nn!="number"&&(Nn instanceof Array&&(de=Nn,Nn=de.pop()),Nn=ne.symbols_[Nn]||Nn),Nn}for(var pn,Tt,Et,Wt,un={},yt,Bt,Ze,Dt;;){if(Tt=se[se.length-1],this.defaultActions[Tt]?Et=this.defaultActions[Tt]:((pn===null||typeof pn>"u")&&(pn=Ne()),Et=G[Tt]&&G[Tt][pn]),typeof Et>"u"||!Et.length||!Et[0]){var kt="";Dt=[];for(yt in G[Tt])this.terminals_[yt]&&yt>Pe&&Dt.push("'"+this.terminals_[yt]+"'");Se.showPosition?kt="Parse error on line "+(U+1)+`:
`+Se.showPosition()+`
Expecting `+Dt.join(", ")+", got '"+(this.terminals_[pn]||pn)+"'":kt="Parse error on line "+(U+1)+": Unexpected "+(pn==je?"end of input":"'"+(this.terminals_[pn]||pn)+"'"),this.parseError(kt,{text:Se.match,token:this.terminals_[pn]||pn,line:Se.yylineno,loc:Ke,expected:Dt})}if(Et[0]instanceof Array&&Et.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Tt+", token: "+pn);switch(Et[0]){case 1:se.push(pn),X.push(Se.yytext),pe.push(Se.yylloc),se.push(Et[1]),pn=null,Be=Se.yyleng,xe=Se.yytext,U=Se.yylineno,Ke=Se.yylloc;break;case 2:if(Bt=this.productions_[Et[1]][1],un.$=X[X.length-Bt],un._$={first_line:pe[pe.length-(Bt||1)].first_line,last_line:pe[pe.length-1].last_line,first_column:pe[pe.length-(Bt||1)].first_column,last_column:pe[pe.length-1].last_column},zt&&(un._$.range=[pe[pe.length-(Bt||1)].range[0],pe[pe.length-1].range[1]]),Wt=this.performAction.apply(un,[xe,Be,U,Ce.yy,Et[1],X,pe].concat(Ie)),typeof Wt<"u")return Wt;Bt&&(se=se.slice(0,-1*Bt*2),X=X.slice(0,-1*Bt),pe=pe.slice(0,-1*Bt)),se.push(this.productions_[Et[1]][0]),X.push(un.$),pe.push(un._$),Ze=G[se[se.length-2]][se[se.length-1]],se.push(Ze);break;case 3:return!0}}return!0}},oe=function(){var ge={EOF:1,parseError:function(ne,se){if(this.yy.parser)this.yy.parser.parseError(ne,se);else throw new Error(ne)},setInput:function(ae,ne){return this.yy=ne||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 ne=ae.match(/(?:\r\n?|\n).*/g);return ne?(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 ne=ae.length,se=ae.split(/(?:\r\n?|\n)/g);this._input=ae+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-ne),this.offset-=ne;var de=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),se.length-1&&(this.yylineno-=se.length-1);var X=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:se?(se.length===de.length?this.yylloc.first_column:0)+de[de.length-se.length].length-se[0].length:this.yylloc.first_column-ne},this.options.ranges&&(this.yylloc.range=[X[0],X[0]+this.yyleng-ne]),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(),ne=new Array(ae.length+1).join("-");return ae+this.upcomingInput()+`
`+ne+"^"},test_match:function(ae,ne){var se,de,X;if(this.options.backtrack_lexer&&(X={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&&(X.yylloc.range=this.yylloc.range.slice(0))),de=ae[0].match(/(?:\r\n?|\n).*/g),de&&(this.yylineno+=de.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:de?de[de.length-1].length-de[de.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],se=this.performAction.call(this,this.yy,this,ne,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),se)return se;if(this._backtrack){for(var pe in X)this[pe]=X[pe];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var ae,ne,se,de;this._more||(this.yytext="",this.match="");for(var X=this._currentRules(),pe=0;pe<X.length;pe++)if(se=this._input.match(this.rules[X[pe]]),se&&(!ne||se[0].length>ne[0].length)){if(ne=se,de=pe,this.options.backtrack_lexer){if(ae=this.test_match(se,X[pe]),ae!==!1)return ae;if(this._backtrack){ne=!1;continue}else return!1}else if(!this.options.flex)break}return ne?(ae=this.test_match(ne,X[de]),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 ne=this.next();return ne||this.lex()},begin:function(ne){this.conditionStack.push(ne)},popState:function(){var ne=this.conditionStack.length-1;return ne>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(ne){return ne=this.conditionStack.length-1-Math.abs(ne||0),ne>=0?this.conditionStack[ne]:"INITIAL"},pushState:function(ne){this.begin(ne)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(ne,se,de,X){switch(de){case 0:return ne.getLogger().trace("Found comment",se.yytext),6;case 1:return 8;case 2:this.begin("CLASS");break;case 3:return this.popState(),16;case 4:this.popState();break;case 5:ne.getLogger().trace("Begin icon"),this.begin("ICON");break;case 6:return ne.getLogger().trace("SPACELINE"),6;case 7:return 7;case 8:return 15;case 9:ne.getLogger().trace("end icon"),this.popState();break;case 10:return ne.getLogger().trace("Exploding node"),this.begin("NODE"),19;case 11:return ne.getLogger().trace("Cloud"),this.begin("NODE"),19;case 12:return ne.getLogger().trace("Explosion Bang"),this.begin("NODE"),19;case 13:return ne.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:this.begin("NSTR2");break;case 22:return"NODE_DESCR";case 23:this.popState();break;case 24:ne.getLogger().trace("Starting NSTR"),this.begin("NSTR");break;case 25:return ne.getLogger().trace("description:",se.yytext),"NODE_DESCR";case 26:this.popState();break;case 27:return this.popState(),ne.getLogger().trace("node end ))"),"NODE_DEND";case 28:return this.popState(),ne.getLogger().trace("node end )"),"NODE_DEND";case 29:return this.popState(),ne.getLogger().trace("node end ...",se.yytext),"NODE_DEND";case 30:return this.popState(),ne.getLogger().trace("node end (("),"NODE_DEND";case 31:return this.popState(),ne.getLogger().trace("node end (-"),"NODE_DEND";case 32:return this.popState(),ne.getLogger().trace("node end (-"),"NODE_DEND";case 33:return this.popState(),ne.getLogger().trace("node end (("),"NODE_DEND";case 34:return this.popState(),ne.getLogger().trace("node end (("),"NODE_DEND";case 35:return ne.getLogger().trace("Long description:",se.yytext),20;case 36:return ne.getLogger().trace("Long description:",se.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,/^(?:\()/i,/^(?:[^\)\]\(\}]+)/i,/^(?:.+(?!\(\())/i],conditions:{CLASS:{rules:[3,4],inclusive:!1},ICON:{rules:[8,9],inclusive:!1},NSTR2:{rules:[22,23],inclusive:!1},NSTR:{rules:[25,26],inclusive:!1},NODE:{rules:[21,24,27,28,29,30,31,32,33,34,35,36],inclusive:!1},INITIAL:{rules:[0,1,2,5,6,7,10,11,12,13,14,15,16,17,18,19,20],inclusive:!0}}};return ge}();ie.lexer=oe;function be(){this.yy={}}return be.prototype=ie,ie.Parser=be,new be}();vwe.parser=vwe;const Son=vwe;let Q3=[],$We=0,wwe={};const _on=()=>{Q3=[],$We=0,wwe={}},Aon=function(i){for(let a=Q3.length-1;a>=0;a--)if(Q3[a].level<i)return Q3[a];return null},Lon=()=>Q3.length>0?Q3[0]:null,Mon=(i,a,u,d)=>{var E,_;Xe.info("addNode",i,a,u,d);const p=qt();let v=((E=p.mindmap)==null?void 0:E.padding)??nh.mindmap.padding;switch(d){case v1.ROUNDED_RECT:case v1.RECT:case v1.HEXAGON:v*=2}const b={id:$We++,nodeId:bh(a,p),level:i,descr:bh(u,p),type
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var B=typeof window>"u"?null:window,j=B?B.navigator:null;B&&B.document;var W=u(""),ee=u({}),ie=u(function(){}),oe=typeof HTMLElement>"u"?"undefined":u(HTMLElement),be=function(m){return m&&m.instanceString&&ae(m.instanceString)?m.instanceString():null},ge=function(m){return m!=null&&u(m)==W},ae=function(m){return m!=null&&u(m)===ie},ne=function(m){return!xe(m)&&(Array.isArray?Array.isArray(m):m!=null&&m instanceof Array)},se=function(m){return m!=null&&u(m)===ee&&!ne(m)&&m.constructor===Object},de=function(m){return m!=null&&u(m)===ee},X=function(m){return m!=null&&u(m)===u(1)&&!isNaN(m)},pe=function(m){return X(m)&&Math.floor(m)===m},G=function(m){if(oe!=="undefined")return m!=null&&m instanceof HTMLElement},xe=function(m){return U(m)||Be(m)},U=function(m){return be(m)==="collection"&&m._private.single},Be=function(m){return be(m)==="collection"&&!m._private.single},Pe=function(m){return be(m)==="core"},je=function(m){return be(m)==="stylesheet"},Ie=function(m){return be(m)==="event"},Se=function(m){return m==null?!0:!!(m===""||m.match(/^\s+$/))},Ce=function(m){return typeof HTMLElement>"u"?!1:m instanceof HTMLElement},ke=function(m){return se(m)&&X(m.x1)&&X(m.x2)&&X(m.y1)&&X(m.y2)},Ke=function(m){return de(m)&&ae(m.then)},zt=function(){return j&&j.userAgent.match(/msie|trident|edge/i)},Ne=function(m,k){k||(k=function(){if(arguments.length===1)return arguments[0];if(arguments.length===0)return"undefined";for(var O=[],N=0;N<arguments.length;N++)O.push(arguments[N]);return O.join("$")});var S=function M(){var O=this,N=arguments,$,H=k.apply(O,N),q=M.cache;return($=q[H])||($=q[H]=m.apply(O,N)),$};return S.cache={},S},pn=Ne(function(x){return x.replace(/([A-Z])/g,function(m){return"-"+m.toLowerCase()})}),Tt=Ne(function(x){return x.replace(/(-\w)/g,function(m){return m[1].toUpperCase()})}),Et=Ne(function(x,m){return x+m[0].toUpperCase()+m.substring(1)},function(x,m){return x+"$"+m}),Wt=function(m){return Se(m)?m:m.charAt(0).toUpperCase()+m.substring(1)},un="(?:[-+]?(?:(?:\\d+|\\d*\\.\\d+)(?:[Ee][+-]?\\d+)?))",yt="rgb[a]?\\(("+un+"[%]?)\\s*,\\s*("+un+"[%]?)\\s*,\\s*("+un+"[%]?)(?:\\s*,\\s*("+un+"))?\\)",Bt="rgb[a]?\\((?:"+un+"[%]?)\\s*,\\s*(?:"+un+"[%]?)\\s*,\\s*(?:"+un+"[%]?)(?:\\s*,\\s*(?:"+un+"))?\\)",Ze="hsl[a]?\\(("+un+")\\s*,\\s*("+un+"[%])\\s*,\\s*("+un+"[%])(?:\\s*,\\s*("+un+"))?\\)",Dt="hsl[a]?\\((?:"+un+")\\s*,\\s*(?:"+un+"[%])\\s*,\\s*(?:"+un+"[%])(?:\\s*,\\s*(?:"+un+"))?\\)",kt="\\#[0-9a-fA-F]{3}",Nn="\\#[0-9a-fA-F]{6}",ht=function(m,k){return m<k?-1:m>k?1:0},qr=function(m,k){return-1*ht(m,k)},xt=Object.assign!=null?Object.assign.bind(Object):function(x){for(var m=arguments,k=1;k<m.length;k++){var S=m[k];if(S!=null)for(var M=Object.keys(S),O=0;O<M.length;O++){var N=M[O];x[N]=S[N]}}return x},Ri=function(m){if(!(!(m.length===4||m.length===7)||m[0]!=="#")){var k=m.length===4,S,M,O,N=16;return k?(S=parseInt(m[1]+m[1],N),M=parseInt(m[2]+m[2],N),O=parseInt(m[3]+m[3],N)):(S=parseInt(m[1]+m[2],N),M=parseInt(m[3]+m[4],N),O=parseInt(m[5]+m[6],N)),[S,M,O]}},wi=function(m){var k,S,M,O,N,$,H,q;function Y(me,Le,_e){return _e<0&&(_e+=1),_e>1&&(_e-=1),_e<1/6?me+(Le-me)*6*_e:_e<1/2?Le:_e<2/3?me+(Le-me)*(2/3-_e)*6:me}var Z=new RegExp("^"+Ze+"$").exec(m);if(Z){if(S=parseInt(Z[1]),S<0?S=(360- -1*S%360)%360:S>360&&(S=S%360),S/=360,M=parseFloat(Z[2]),M<0||M>100||(M=M/100,O=parseFloat(Z[3]),O<0||O>100)||(O=O/100,N=Z[4],N!==void 0&&(N=parseFloat(N),N<0||N>1)))return;if(M===0)$=H=q=Math.round(O*255);else{var ce=O<.5?O*(1+M):O+M-O*M,ve=2*O-ce;$=Math.round(255*Y(ve,ce,S+1/3)),H=Math.round(255*Y(ve,ce,S)),q=Math.round(255*Y(ve,ce,S-1/3))}k=[$,H,q,N]}return k},ia=function(m){var k,S=new RegExp("^"+yt+"$").exec(m);if(S){k=[];for(var M=[],O=1;O<=3;O++){var N=S[O];if(N[N.length-1]==="%"&&(M[O]=!0),N=parseFloat(N),M[O]&&(N=N/100*255),N<0||N>255)return;k.push(Math.floor(N))}var $=M[1]||M[2]||M[3],H=M[1]&&M[2]&&M[3];if($&&!H)return;var q=S[4];if(q!==void 0){if(q=parseFloat(q),q<0||q>1)return;k.push(q)}}return k},Hs=function(m){return Tr[m.toLowerCase()]},mo=functio
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 Uj=0,Vj=1,Gj=2,Zv=function x(m){if(!(this instanceof x))return new x(m);this.id="Thenable/1.0.7",this.state=Uj,this.fulfillValue=void 0,this.rejectReason=void 0,this.onFulfilled=[],this.onRejected=[],this.proxy={then:this.then.bind(this)},typeof m=="function"&&m.call(this,this.fulfill.bind(this),this.reject.bind(this))};Zv.prototype={fulfill:function(m){return Kj(this,Vj,"fulfillValue",m)},reject:function(m){return Kj(this,Gj,"rejectReason",m)},then:function(m,k){var S=this,M=new Zv;return S.onFulfilled.push(Xj(m,M,"fulfill")),S.onRejected.push(Xj(k,M,"reject")),Wj(S),M.proxy}};var Kj=function(m,k,S,M){return m.state===Uj&&(m.state=k,m[S]=M,Wj(m)),m},Wj=function(m){m.state===Vj?Yj(m,"onFulfilled",m.fulfillValue):m.state===Gj&&Yj(m,"onRejected",m.rejectReason)},Yj=function(m,k,S){if(m[k].length!==0){var M=m[k];m[k]=[];var O=function(){for(var $=0;$<M.length;$++)M[$](S)};typeof setImmediate=="function"?setImmediate(O):setTimeout(O,0)}},Xj=function(m,k,S){return function(M){if(typeof m!="function")k[S].call(k,M);else{var O;try{O=m(M)}catch(N){k.reject(N);return}Iee(k,O)}}},Iee=function x(m,k){if(m===k||m.proxy===k){m.reject(new TypeError("cannot resolve promise with itself"));return}var S;if(u(k)==="object"&&k!==null||typeof k=="function")try{S=k.then}catch(O){m.reject(O);return}if(typeof S=="function"){var M=!1;try{S.call(k,function(O){M||(M=!0,O===k?m.reject(new TypeError("circular thenable chain")):x(m,O))},function(O){M||(M=!0,m.reject(O))})}catch(O){M||m.reject(O)}return}m.fulfill(k)};Zv.all=function(x){return new Zv(function(m,k){for(var S=new Array(x.length),M=0,O=function(H,q){S[H]=q,M++,M===x.length&&m(S)},N=0;N<x.length;N++)(function($){var H=x[$],q=H!=null&&H.then!=null;if(q)H.then(function(Z){O($,Z)},function(Z){k(Z)});else{var Y=H;O($,Y)}})(N)})},Zv.resolve=function(x){return new Zv(function(m,k){m(x)})},Zv.reject=function(x){return new Zv(function(m,k){k(x)})};var s8=typeof Promise<"u"?Promise:Zv,xI=function(m,k,S){var M=Pe(m),O=!M,N=this._private=xt({duration:1e3},k,S);if(N.target=m,N.style=N.style||N.css,N.started=!1,N.playing=!1,N.hooked=!1,N.applying=!1,N.progress=0,N.completes=[],N.frames=[],N.complete&&ae(N.complete)&&N.completes.push(N.complete),O){var $=m.position();N.startPosition=N.startPosition||{x:$.x,y:$.y},N.startStyle=N.startStyle||m.cy().style().getAnimationStartStyle(m,N.style)}if(M){var H=m.pan();N.startPan={x:H.x,y:H.y},N.startZoom=m.zoom()}this.length=1,this[0]=this},b5=xI.prototype;xt(b5,{instanceString:function(){return"animation"},hook:function(){var m=this._private;if(!m.hooked){var k,S=m.target._private.animation;m.queue?k=S.queue:k=S.current,k.push(this),xe(m.target)&&m.target.cy().addToAnimationPool(m.target),m.hooked=!0}return this},play:function(){var m=this._private;return m.progress===1&&(m.progress=0),m.playing=!0,m.started=!1,m.stopped=!1,this.hook(),this},playing:function(){return this._private.playing},apply:function(){var m=this._private;return m.applying=!0,m.started=!1,m.stopped=!1,this.hook(),this},applying:function(){return this._private.applying},pause:function(){var m=this._private;return m.playing=!1,m.started=!1,this},stop:function(){var m=this._private;return m.playing=!1,m.started=!1,m.stopped=!0,this},rewind:function(){return this.progress(0)},fastforward:function(){return this.progress(1)},time:function(m){var k=this._private;return m===void 0?k.progress*k.duration:this.progress(m/k.duration)},progress:function(m){var k=this._private,S=k.playing;return m===void 0?k.progress:(S&&this.pause(),k.progress=m,k.started=!1,S&&this.play(),this)},completed:function(){return this._private.progress===1},reverse:function(){var m=this._private,k=m.playing;k&&this.pause(),m.progress=1-m.progress,m.started=!1;var S=function(q,Y){var Z=m[q];Z!=null&&(m[q]=m[Y],m[Y]=Z)};if(S("zoom","startZoom"),S("pan","startPan"),S("position","startPosition"),m.style)for(var M=0;M<m.style.length;M++){var O=m.style[M],N=O.name,$=m.startStyle[N];m.startStyle[N]=O,m.style[M]=$}return k&&this.play(),this},promise:function(m){var k=this._private,S;switch(m){case"frame":S=k.frames;break;default
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 sk=function(m,k){this.recycle(m,k)};function ak(){return!1}function ok(){return!0}sk.prototype={instanceString:function(){return"event"},recycle:function(m,k){if(this.isImmediatePropagationStopped=this.isPropagationStopped=this.isDefaultPrevented=ak,m!=null&&m.preventDefault?(this.type=m.type,this.isDefaultPrevented=m.defaultPrevented?ok:ak):m!=null&&m.type?k=m:this.type=m,k!=null&&(this.originalEvent=k.originalEvent,this.type=k.type!=null?k.type:this.type,this.cy=k.cy,this.target=k.target,this.position=k.position,this.renderedPosition=k.renderedPosition,this.namespace=k.namespace,this.layout=k.layout),this.cy!=null&&this.position!=null&&this.renderedPosition==null){var S=this.position,M=this.cy.zoom(),O=this.cy.pan();this.renderedPosition={x:S.x*M+O.x,y:S.y*M+O.y}}this.timeStamp=m&&m.timeStamp||Date.now()},preventDefault:function(){this.isDefaultPrevented=ok;var m=this.originalEvent;m&&m.preventDefault&&m.preventDefault()},stopPropagation:function(){this.isPropagationStopped=ok;var m=this.originalEvent;m&&m.stopPropagation&&m.stopPropagation()},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=ok,this.stopPropagation()},isDefaultPrevented:ak,isPropagationStopped:ak,isImmediatePropagationStopped:ak};var L$=/^([^.]+)(\.(?:[^.]+))?$/,ure=".*",M$={qualifierCompare:function(m,k){return m===k},eventMatches:function(){return!0},addEventFields:function(){},callbackContext:function(m){return m},beforeEmit:function(){},afterEmit:function(){},bubble:function(){return!1},parent:function(){return null},context:null},D$=Object.keys(M$),lre={};function MS(){for(var x=arguments.length>0&&arguments[0]!==void 0?arguments[0]:lre,m=arguments.length>1?arguments[1]:void 0,k=0;k<D$.length;k++){var S=D$[k];this[S]=x[S]||M$[S]}this.context=m||this.context,this.listeners=[],this.emitting=0}var sb=MS.prototype,I$=function(m,k,S,M,O,N,$){ae(M)&&(O=M,M=null),$&&(N==null?N=$:N=xt({},N,$));for(var H=ne(S)?S:S.split(/\s+/),q=0;q<H.length;q++){var Y=H[q];if(!Se(Y)){var Z=Y.match(L$);if(Z){var ce=Z[1],ve=Z[2]?Z[2]:null,me=k(m,Y,ce,ve,M,O,N);if(me===!1)break}}}},O$=function(m,k){return m.addEventFields(m.context,k),new sk(k.type,k)},DS=function(m,k,S){if(Ie(S)){k(m,S);return}else if(se(S)){k(m,O$(m,S));return}for(var M=ne(S)?S:S.split(/\s+/),O=0;O<M.length;O++){var N=M[O];if(!Se(N)){var $=N.match(L$);if($){var H=$[1],q=$[2]?$[2]:null,Y=O$(m,{type:H,namespace:q,target:m.context});k(m,Y)}}}};sb.on=sb.addListener=function(x,m,k,S,M){return I$(this,function(O,N,$,H,q,Y,Z){ae(Y)&&O.listeners.push({event:N,callback:Y,type:$,namespace:H,qualifier:q,conf:Z})},x,m,k,S,M),this},sb.one=function(x,m,k,S){return this.on(x,m,k,S,{one:!0})},sb.removeListener=sb.off=function(x,m,k,S){var M=this;this.emitting!==0&&(this.listeners=tZ(this.listeners));for(var O=this.listeners,N=function(q){var Y=O[q];I$(M,function(Z,ce,ve,me,Le,_e){if((Y.type===ve||x==="*")&&(!me&&Y.namespace!==".*"||Y.namespace===me)&&(!Le||Z.qualifierCompare(Y.qualifier,Le))&&(!_e||Y.callback===_e))return O.splice(q,1),!1},x,m,k,S)},$=O.length-1;$>=0;$--)N($);return this},sb.removeAllListeners=function(){return this.removeListener("*")},sb.emit=sb.trigger=function(x,m,k){var S=this.listeners,M=S.length;return this.emitting++,ne(m)||(m=[m]),DS(this,function(O,N){k!=null&&(S=[{event:N.event,type:N.type,namespace:N.namespace,callback:k}],M=S.length);for(var $=function(Y){var Z=S[Y];if(Z.type===N.type&&(!Z.namespace||Z.namespace===N.namespace||Z.namespace===ure)&&O.eventMatches(O.context,Z,N)){var ce=[N];m!=null&&bj(ce,m),O.beforeEmit(O.context,Z,N),Z.conf&&Z.conf.one&&(O.listeners=O.listeners.filter(function(Le){return Le!==Z}));var ve=O.callbackContext(O.context,Z,N),me=Z.callback.apply(ve,ce);O.afterEmit(O.context,Z,N),me===!1&&(N.stopPropagation(),N.preventDefault())}},H=0;H<M;H++)$(H);O.bubble(O.context)&&!N.isPropagationStopped()&&O.parent(O.context).emit(N,m)},x),this.emitting--,this};var hre={qualifierCompare:function(m,k){return m==null||k==null?m==null&&k==null:m.sameText(k)},eventMatches:function(m,k,S){var M=k.qualifier;return M!=null?m!==S.target&&U(S.target)&&
`),Z=x.pstyle("text-max-width").pfValue,ce=x.pstyle("text-overflow-wrap").value,ve=ce==="anywhere",me=[],Le=/[\s\u200b]+/,_e=ve?"":" ",Te=0;Te<Y.length;Te++){var Fe=Y[Te],Re=this.calculateLabelDimensions(x,Fe),Ve=Re.width;if(ve){var ct=Fe.split("").join(q);Fe=ct}if(Ve>Z){for(var st=Fe.split(Le),Ye="",vt=0;vt<st.length;vt++){var Qe=st[vt],Lt=Ye.length===0?Qe:Ye+_e+Qe,Mt=this.calculateLabelDimensions(x,Lt),ut=Mt.width;ut<=Z?Ye+=Qe+_e:(Ye&&me.push(Ye),Ye=Qe+_e)}Ye.match(/^[\s\u200b]+$/)||me.push(Ye)}else me.push(Fe)}N("labelWrapCachedLines",me),M=N("labelWrapCachedText",me.join(`
`)),N("labelWrapKey",H)}else if($==="ellipsis"){var Yt=x.pstyle("text-max-width").pfValue,St="",_n="…",fn=!1;if(this.calculateLabelDimensions(x,M).width<Yt)return M;for(var Xt=0;Xt<M.length;Xt++){var Dn=this.calculateLabelDimensions(x,St+M[Xt]+_n).width;if(Dn>Yt)break;St+=M[Xt],Xt===M.length-1&&(fn=!0)}return fn||(St+=_n),St}return M},Mm.getLabelJustification=function(x){var m=x.pstyle("text-justification").strValue,k=x.pstyle("text-halign").strValue;if(m==="auto")if(x.isNode())switch(k){case"left":return"right";case"right":return"left";default:return"center"}else return"center";else return m},Mm.calculateLabelDimensions=function(x,m){var k=this,S=ud(m,x._private.labelDimsKey),M=k.labelDimCache||(k.labelDimCache=[]),O=M[S];if(O!=null)return O;var N=0,$=x.pstyle("font-style").strValue,H=x.pstyle("font-size").pfValue,q=x.pstyle("font-family").strValue,Y=x.pstyle("font-weight").strValue,Z=this.labelCalcCanvas,ce=this.labelCalcCanvasContext;if(!Z){Z=this.labelCalcCanvas=document.createElement("canvas"),ce=this.labelCalcCanvasContext=Z.getContext("2d");var ve=Z.style;ve.position="absolute",ve.left="-9999px",ve.top="-9999px",ve.zIndex="-1",ve.visibility="hidden",ve.pointerEvents="none"}ce.font="".concat($," ").concat(Y," ").concat(H,"px ").concat(q);for(var me=0,Le=0,_e=m.split(`
`),Te=0;Te<_e.length;Te++){var Fe=_e[Te],Re=ce.measureText(Fe),Ve=Math.ceil(Re.width),ct=H;me=Math.max(Ve,me),Le+=ct}return me+=N,Le+=N,M[S]={width:me,height:Le}},Mm.calculateLabelAngle=function(x,m){var k=x._private,S=k.rscratch,M=x.isEdge(),O=m?m+"-":"",N=x.pstyle(O+"text-rotation"),$=N.strValue;return $==="none"?0:M&&$==="autorotate"?S.labelAutoAngle:$==="autorotate"?0:N.pfValue},Mm.calculateLabelAngles=function(x){var m=this,k=x.isEdge(),S=x._private,M=S.rscratch;M.labelAngle=m.calculateLabelAngle(x),k&&(M.sourceLabelAngle=m.calculateLabelAngle(x,"source"),M.targetLabelAngle=m.calculateLabelAngle(x,"target"))};var oz={},cz=28,uz=!1;oz.getNodeShape=function(x){var m=this,k=x.pstyle("shape").value;if(k==="cutrectangle"&&(x.width()<cz||x.height()<cz))return uz||(lu("The `cutrectangle` node shape can not be used at small sizes so `rectangle` is used instead"),uz=!0),"rectangle";if(x.isParent())return k==="rectangle"||k==="roundrectangle"||k==="round-rectangle"||k==="cutrectangle"||k==="cut-rectangle"||k==="barrel"?k:"rectangle";if(k==="polygon"){var S=x.pstyle("shape-polygon-points").value;return m.nodeShapes.makePolygon(S).name}return k};var WS={};WS.registerCalculationListeners=function(){var x=this.cy,m=x.collection(),k=this,S=function(N){var $=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;if(m.merge(N),$)for(var H=0;H<N.length;H++){var q=N[H],Y=q._private,Z=Y.rstyle;Z.clean=!1,Z.cleanConnected=!1}};k.binder(x).on("bounds.* dirty.*",function(N){var $=N.target;S($)}).on("style.* background.*",function(N){var $=N.target;S($,!1)});var M=function(N){if(N){var $=k.onUpdateEleCalcsFns;m.cleanStyle();for(var H=0;H<m.length;H++){var q=m[H],Y=q._private.rstyle;q.isNode()&&!Y.cleanConnected&&(S(q.connectedEdges()),Y.cleanConnected=!0)}if($)for(var Z=0;Z<$.length;Z++){var ce=$[Z];ce(N,m)}k.recalculateRenderedStyle(m),m=x.collection()}};k.flushRenderedStyleQueue=function(){M(!0)},k.beforeRender(M,k.beforeRenderPriorities.eleCalcs)},WS.onUpdateEleCalcs=function(x){var m=this.onUpdateEleCalcsFns=this.onUpdateEleCalcsFns||[];m.push(x)},WS.recalculateRenderedStyle=function(x,m){var k=function(Ve){return Ve._private.rstyle.cleanConnected},S=[],M=[];if(!this.destroyed){m===void 0&&(m=!0);for(var O=0;O<x.length;O++){var N=x[O],$=N._private,H=$.rstyle;N.isEdge()&&(!k(N.source())||!k(N.target()))&&(H.clean=!1),!(m&&H.clean||N.removed())&&N.pstyle("display").value!=="none"&&($.group==="nodes"?M.push(N):S.push(N),H.clean=!0)}for(var q=0;q<M.length;q++){var Y=M[q],Z=Y._private,ce=Z.rstyle,ve=Y.position();this.recalculateNodeLabelProjection(Y),ce.nodeX=ve.x,ce.nodeY=ve.y,ce.nodeW=Y.pstyle("width").pfValue,ce.nodeH=Y.pstyle("height").pfValue}this.recalculateEdgeProjections(S);for(var me=0;me<S.length;me++){var Le=S[me],_e=Le._private,Te=_e.rstyle,Fe=_e.rscratch;Te.srcX=Fe.arrowStartX,Te.srcY=Fe.arrowStartY,Te.tgtX=Fe.arrowEndX,Te.tgtY=Fe.arrowEndY,Te.midX=Fe.midX,Te.midY=Fe.midY,Te.labelAngle=Fe.labelAngle,Te.sourceLabelAngle=Fe.sourceLabelAngle,Te.targetLabelAngle=Fe.targetLabelAngle}}};var YS={};YS.updateCachedGrabbedEles=function(){var x=this.cachedZSortedEles;if(x){x.drag=[],x.nondrag=[];for(var m=[],k=0;k<x.length;k++){var S=x[k],M=S._private.rscratch;S.grabbed()&&!S.isParent()?m.push(S):M.inDragLayer?x.drag.push(S):x.nondrag.push(S)}for(var k=0;k<m.length;k++){var S=m[k];x.drag.push(S)}}},YS.invalidateCachedZSortedEles=function(){this.cachedZSortedEles=null},YS.getCachedZSortedEles=function(x){if(x||!this.cachedZSortedEles){var m=this.cy.mutableElements().toArray();m.sort(PI),m.interactive=m.filter(function(k){return k.interactive()}),this.cachedZSortedEles=m,this.updateCachedGrabbedEles()}else m=this.cachedZSortedEles;return m};var lz={};[x5,GS,S1,dk,VI,Mm,oz,WS,YS].forEach(function(x){xt(lz,x)});var hz={};hz.getCachedImage=function(x,m,k){var S=this,M=S.imageCache=S.imageCache||{},O=M[x];if(O)return O.image.complete||O.image.addEventListener("load",k),O.image;O=M[x]=M[x]||{};var N=O.image=new Image;N.addEventListener("load",k),N.addEventListener("error",function(){N.error=!0});var $="data:",H=x.substring(0,$.length).toLowe
a${y},${y} 1 0,1 ${d*.4},${-1*d*.1}
a${b},${b} 1 0,1 ${d*.35},${1*d*.2}
a${v},${v} 1 0,1 ${d*.15},${1*p*.35}
a${E},${E} 1 0,1 ${-1*d*.15},${1*p*.65}
a${b},${v} 1 0,1 ${-1*d*.25},${d*.15}
a${y},${y} 1 0,1 ${-1*d*.5},0
a${v},${v} 1 0,1 ${-1*d*.25},${-1*d*.15}
a${v},${v} 1 0,1 ${-1*d*.1},${-1*p*.35}
a${E},${E} 1 0,1 ${d*.1},${-1*p*.65}
H0 V0 Z`)},zon=function(i,a,u){const d=u.width,p=u.height,v=.15*d;a.append("path").attr("id","node-"+u.id).attr("class","node-bkg node-"+i.type2Str(u.type)).attr("d",`M0 0 a${v},${v} 1 0,0 ${d*.25},${-1*p*.1}
a${v},${v} 1 0,0 ${d*.25},0
a${v},${v} 1 0,0 ${d*.25},0
a${v},${v} 1 0,0 ${d*.25},${1*p*.1}
a${v},${v} 1 0,0 ${d*.15},${1*p*.33}
a${v*.8},${v*.8} 1 0,0 0,${1*p*.34}
a${v},${v} 1 0,0 ${-1*d*.15},${1*p*.33}
a${v},${v} 1 0,0 ${-1*d*.25},${p*.15}
a${v},${v} 1 0,0 ${-1*d*.25},0
a${v},${v} 1 0,0 ${-1*d*.25},0
a${v},${v} 1 0,0 ${-1*d*.25},${-1*p*.15}
a${v},${v} 1 0,0 ${-1*d*.1},${-1*p*.33}
a${v*.8},${v*.8} 1 0,0 0,${-1*p*.34}
a${v},${v} 1 0,0 ${d*.1},${-1*p*.33}
H0 V0 Z`)},qon=function(i,a,u){a.append("circle").attr("id","node-"+u.id).attr("class","node-bkg node-"+i.type2Str(u.type)).attr("r",u.width/2)};function Hon(i,a,u,d,p){return i.insert("polygon",":first-child").attr("points",d.map(function(v){return v.x+","+v.y}).join(" ")).attr("transform","translate("+(p.width-a)/2+", "+u+")")}const Uon=function(i,a,u){const d=u.height,v=d/4,b=u.width-u.padding+2*v,y=[{x:v,y:0},{x:b-v,y:0},{x:b,y:-d/2},{x:b-v,y:-d},{x:v,y:-d},{x:0,y:-d/2}];Hon(a,b,d,y,u)},Von=function(i,a,u){a.append("rect").attr("id","node-"+u.id).attr("class","node-bkg node-"+i.type2Str(u.type)).attr("height",u.height).attr("rx",u.padding).attr("ry",u.padding).attr("width",u.width)},Gon=function(i,a,u,d,p){const v=p.htmlLabels,b=d%(Fon-1),y=a.append("g");u.section=b;let E="section-"+b;b<0&&(E+=" section-root"),y.attr("class",(u.class?u.class+" ":"")+"mindmap-node "+E);const _=y.append("g"),A=y.append("g"),P=u.descr.replace(/(<br\/*>)/g,`
`);fJ(A,P,{useHtmlLabels:v,width:u.width,classes:"mindmap-node-label"}),v||A.attr("dy","1em").attr("alignment-baseline","middle").attr("dominant-baseline","middle").attr("text-anchor","middle");const R=A.node().getBBox(),[B]=PC(p.fontSize);if(u.height=R.height+B*1.1*.5+u.padding,u.width=R.width+2*u.padding,u.icon)if(u.type===i.nodeType.CIRCLE)u.height+=50,u.width+=50,y.append("foreignObject").attr("height","50px").attr("width",u.width).attr("style","text-align: center;").append("div").attr("class","icon-container").append("i").attr("class","node-icon-"+b+" "+u.icon),A.attr("transform","translate("+u.width/2+", "+(u.height/2-1.5*u.padding)+")");else{u.width+=50;const j=u.height;u.height=Math.max(j,60);const W=Math.abs(u.height-j);y.append("foreignObject").attr("width","60px").attr("height",u.height).attr("style","text-align: center;margin-top:"+W/2+"px;").append("div").attr("class","icon-container").append("i").attr("class","node-icon-"+b+" "+u.icon),A.attr("transform","translate("+(25+u.width/2)+", "+(W/2+u.padding/2)+")")}else if(v){const j=(u.width-R.width)/2,W=(u.height-R.height)/2;A.attr("transform","translate("+j+", "+W+")")}else{const j=u.width/2,W=u.padding/2;A.attr("transform","translate("+j+", "+W+")")}switch(u.type){case i.nodeType.DEFAULT:Ron(i,_,u,b);break;case i.nodeType.ROUNDED_RECT:Von(i,_,u);break;case i.nodeType.RECT:jon(i,_,u);break;case i.nodeType.CIRCLE:_.attr("transform","translate("+u.width/2+", "+ +u.height/2+")"),qon(i,_,u);break;case i.nodeType.CLOUD:$on(i,_,u);break;case i.nodeType.BANG:zon(i,_,u);break;case i.nodeType.HEXAGON:Uon(i,_,u);break}return i.setElementForId(u.id,y),u.height},Kon=function(i,a){const u=i.getElementById(a.id),d=a.x||0,p=a.y||0;u.attr("transform","translate("+d+","+p+")")};qWe.use(Bon);function GWe(i,a,u,d,p){Gon(i,a,u,d,p),u.children&&u.children.forEach((v,b)=>{GWe(i,a,v,d<0?b:d,p)})}function Won(i,a){a.edges().map((u,d)=>{const p=u.data();if(u[0]._private.bodyBounds){const v=u[0]._private.rscratch;Xe.trace("Edge: ",d,p),i.insert("path").attr("d",`M ${v.startX},${v.startY} L ${v.midX},${v.midY} L${v.endX},${v.endY} `).attr("class","edge section-edge-"+p.section+" edge-depth-"+p.depth)}})}function KWe(i,a,u,d){a.add({group:"nodes",data:{id:i.id.toString(),labelText:i.descr,height:i.height,width:i.width,level:d,nodeId:i.id,padding:i.padding,type:i.type},position:{x:i.x,y:i.y}}),i.children&&i.children.forEach(p=>{KWe(p,a,u,d+1),a.add({group:"edges",data:{id:`${i.id}_${p.id}`,source:i.id,target:p.id,depth:d,section:p.section}})})}function Yon(i,a){return new Promise(u=>{const d=Dr("body").append("div").attr("id","cy").attr("style","display:none"),p=qWe({container:document.getElementById("cy"),style:[{selector:"edge",style:{"curve-style":"bezier"}}]});d.remove(),KWe(i,p,a,0),p.nodes().forEach(function(v){v.layoutDimensions=()=>{const b=v.data();return{w:b.width,h:b.height}}}),p.layout({name:"cose-bilkent",quality:"proof",styleEnabled:!1,animate:!1}).run(),p.ready(v=>{Xe.info("Ready",v),u(p)})})}function Xon(i,a){a.nodes().map((u,d)=>{const p=u.data();p.x=u.position().x,p.y=u.position().y,Kon(i,p);const v=i.getElementById(p.nodeId);Xe.info("Id:",d,"Position: (",u.position().x,", ",u.position().y,")",p),v.attr("transform",`translate(${u.position().x-p.width/2}, ${u.position().y-p.height/2})`),v.attr("attr",`apa-${d})`)})}const Qon={draw:async(i,a,u,d)=>{var P,R;Xe.debug(`Rendering mindmap diagram
`+i);const p=d.db,v=p.getMindmap();if(!v)return;const b=qt();b.htmlLabels=!1;const y=dR(a),E=y.append("g");E.attr("class","mindmap-edges");const _=y.append("g");_.attr("class","mindmap-nodes"),GWe(p,_,v,-1,b);const A=await Yon(v,b);Won(E,A),Xon(p,A),x9(void 0,y,((P=b.mindmap)==null?void 0:P.padding)??nh.mindmap.padding,((R=b.mindmap)==null?void 0:R.useMaxWidth)??nh.mindmap.useMaxWidth)}},Jon=i=>{let a="";for(let u=0;u<i.THEME_COLOR_LIMIT;u++)i["lineColor"+u]=i["lineColor"+u]||i["cScaleInv"+u],AC(i["lineColor"+u])?i["lineColor"+u]=Ws(i["lineColor"+u],20):i["lineColor"+u]=ba(i["lineColor"+u],20);for(let u=0;u<i.THEME_COLOR_LIMIT;u++){const d=""+(17-3*u);a+=`
.section-${u-1} rect, .section-${u-1} path, .section-${u-1} circle, .section-${u-1} polygon, .section-${u-1} path {
fill: ${i["cScale"+u]};
}
.section-${u-1} text {
fill: ${i["cScaleLabel"+u]};
}
.node-icon-${u-1} {
font-size: 40px;
color: ${i["cScaleLabel"+u]};
}
.section-edge-${u-1}{
stroke: ${i["cScale"+u]};
}
.edge-depth-${u-1}{
stroke-width: ${d};
}
.section-${u-1} line {
stroke: ${i["cScaleInv"+u]} ;
stroke-width: 3;
}
.disabled, .disabled circle, .disabled text {
fill: lightgray;
}
.disabled text {
fill: #efefef;
}
`}return a},Zon=Object.freeze(Object.defineProperty({__proto__:null,diagram:{db:Don,renderer:Qon,parser:Son,styles:i=>`
.edge {
stroke-width: 3;
}
${Jon(i)}
.section-root rect, .section-root path, .section-root circle, .section-root polygon {
fill: ${i.git0};
}
.section-root text {
fill: ${i.gitBranchLabel0};
}
.icon-container {
height:100%;
display: flex;
justify-content: center;
align-items: center;
}
.edge {
fill: none;
}
.mindmap-node-label {
dy: 1em;
alignment-baseline: middle;
text-anchor: middle;
dominant-baseline: middle;
text-align: center;
}
`}},Symbol.toStringTag,{value:"Module"}));var kwe=function(){var i=function(y,E,_,A){for(_=_||{},A=y.length;A--;_[y[A]]=E);return _},a=[1,9],u=[1,10],d=[1,5,10,12],p={trace:function(){},yy:{},symbols_:{error:2,start:3,SANKEY:4,NEWLINE:5,csv:6,opt_eof:7,record:8,csv_tail:9,EOF:10,"field[source]":11,COMMA:12,"field[target]":13,"field[value]":14,field:15,escaped:16,non_escaped:17,DQUOTE:18,ESCAPED_TEXT:19,NON_ESCAPED_TEXT:20,$accept:0,$end:1},terminals_:{2:"error",4:"SANKEY",5:"NEWLINE",10:"EOF",11:"field[source]",12:"COMMA",13:"field[target]",14:"field[value]",18:"DQUOTE",19:"ESCAPED_TEXT",20:"NON_ESCAPED_TEXT"},productions_:[0,[3,4],[6,2],[9,2],[9,0],[7,1],[7,0],[8,5],[15,1],[15,1],[16,3],[17,1]],performAction:function(E,_,A,P,R,B,j){var W=B.length-1;switch(R){case 7:const ee=P.findOrCreateNode(B[W-4].trim().replaceAll('""','"')),ie=P.findOrCreateNode(B[W-2].trim().replaceAll('""','"')),oe=parseFloat(B[W].trim());P.addLink(ee,ie,oe);break;case 8:case 9:case 11:this.$=B[W];break;case 10:this.$=B[W-1];break}},table:[{3:1,4:[1,2]},{1:[3]},{5:[1,3]},{6:4,8:5,15:6,16:7,17:8,18:a,20:u},{1:[2,6],7:11,10:[1,12]},i(u,[2,4],{9:13,5:[1,14]}),{12:[1,15]},i(d,[2,8]),i(d,[2,9]),{19:[1,16]},i(d,[2,11]),{1:[2,1]},{1:[2,5]},i(u,[2,2]),{6:17,8:5,15:6,16:7,17:8,18:a,20:u},{15:18,16:7,17:8,18:a,20:u},{18:[1,19]},i(u,[2,3]),{12:[1,20]},i(d,[2,10]),{15:21,16:7,17:8,18:a,20:u},i([1,5,10],[2,7])],defaultActions:{11:[2,1],12:[2,5]},parseError:function(E,_){if(_.recoverable)this.trace(E);else{var A=new Error(E);throw A.hash=_,A}},parse:function(E){var _=this,A=[0],P=[],R=[null],B=[],j=this.table,W="",ee=0,ie=0,oe=2,be=1,ge=B.slice.call(arguments,1),ae=Object.create(this.lexer),ne={yy:{}};for(var se in this.yy)Object.prototype.hasOwnProperty.call(this.yy,se)&&(ne.yy[se]=this.yy[se]);ae.setInput(E,ne.yy),ne.yy.lexer=ae,ne.yy.parser=this,typeof ae.yylloc>"u"&&(ae.yylloc={});var de=ae.yylloc;B.push(de);var X=ae.options&&ae.options.ranges;typeof ne.yy.parseError=="function"?this.parseError=ne.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function pe(){var Ke;return Ke=P.pop()||ae.lex()||be,typeof Ke!="number"&&(Ke instanceof Array&&(P=Ke,Ke=P.pop()),Ke=_.symbols_[Ke]||Ke),Ke}for(var G,xe,U,Be,Pe={},je,Ie,Se,Ce;;){if(xe=A[A.length-1],this.defaultActions[xe]?U=this.defaultActions[xe]:((G===null||typeof G>"u")&&(G=pe()),U=j[xe]&&j[xe][G]),typeof U>"u"||!U.length||!U[0]){var ke="";Ce=[];for(je in j[xe])this.terminals_[je]&&je>oe&&Ce.push("'"+this.terminals_[je]+"'");ae.showPosition?ke="Parse error on line "+(ee+1)+`:
`+ae.showPosition()+`
Expecting `+Ce.join(", ")+", got '"+(this.terminals_[G]||G)+"'":ke="Parse error on line "+(ee+1)+": Unexpected "+(G==be?"end of input":"'"+(this.terminals_[G]||G)+"'"),this.parseError(ke,{text:ae.match,token:this.terminals_[G]||G,line:ae.yylineno,loc:de,expected:Ce})}if(U[0]instanceof Array&&U.length>1)throw new Error("Parse Error: multiple actions possible at state: "+xe+", token: "+G);switch(U[0]){case 1:A.push(G),R.push(ae.yytext),B.push(ae.yylloc),A.push(U[1]),G=null,ie=ae.yyleng,W=ae.yytext,ee=ae.yylineno,de=ae.yylloc;break;case 2:if(Ie=this.productions_[U[1]][1],Pe.$=R[R.length-Ie],Pe._$={first_line:B[B.length-(Ie||1)].first_line,last_line:B[B.length-1].last_line,first_column:B[B.length-(Ie||1)].first_column,last_column:B[B.length-1].last_column},X&&(Pe._$.range=[B[B.length-(Ie||1)].range[0],B[B.length-1].range[1]]),Be=this.performAction.apply(Pe,[W,ie,ee,ne.yy,U[1],R,B].concat(ge)),typeof Be<"u")return Be;Ie&&(A=A.slice(0,-1*Ie*2),R=R.slice(0,-1*Ie),B=B.slice(0,-1*Ie)),A.push(this.productions_[U[1]][0]),R.push(Pe.$),B.push(Pe._$),Se=j[A[A.length-2]][A[A.length-1]],A.push(Se);break;case 3:return!0}}return!0}},v=function(){var y={EOF:1,parseError:function(_,A){if(this.yy.parser)this.yy.parser.parseError(_,A);else throw new Error(_)},setInput:function(E,_){return this.yy=_||this.yy||{},this._input=E,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var E=this._input[0];this.yytext+=E,this.yyleng++,this.offset++,this.match+=E,this.matched+=E;var _=E.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),E},unput:function(E){var _=E.length,A=E.split(/(?:\r\n?|\n)/g);this._input=E+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-_),this.offset-=_;var P=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),A.length-1&&(this.yylineno-=A.length-1);var R=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===P.length?this.yylloc.first_column:0)+P[P.length-A.length].length-A[0].length:this.yylloc.first_column-_},this.options.ranges&&(this.yylloc.range=[R[0],R[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(E){this.unput(this.match.slice(E))},pastInput:function(){var E=this.matched.substr(0,this.matched.length-this.match.length);return(E.length>20?"...":"")+E.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var E=this.match;return E.length<20&&(E+=this._input.substr(0,20-E.length)),(E.substr(0,20)+(E.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var E=this.pastInput(),_=new Array(E.length+1).join("-");return E+this.upcomingInput()+`
`+_+"^"},test_match:function(E,_){var A,P,R;if(this.options.backtrack_lexer&&(R={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&&(R.yylloc.range=this.yylloc.range.slice(0))),P=E[0].match(/(?:\r\n?|\n).*/g),P&&(this.yylineno+=P.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:P?P[P.length-1].length-P[P.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+E[0].length},this.yytext+=E[0],this.match+=E[0],this.matches=E,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(E[0].length),this.matched+=E[0],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 B in R)this[B]=R[B];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var E,_,A,P;this._more||(this.yytext="",this.match="");for(var R=this._currentRules(),B=0;B<R.length;B++)if(A=this._input.match(this.rules[R[B]]),A&&(!_||A[0].length>_[0].length)){if(_=A,P=B,this.options.backtrack_lexer){if(E=this.test_match(A,R[B]),E!==!1)return E;if(this._backtrack){_=!1;continue}else return!1}else if(!this.options.flex)break}return _?(E=this.test_match(_,R[P]),E!==!1?E:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},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,P,R){switch(P){case 0:return this.pushState("csv"),4;case 1:return 10;case 2:return 5;case 3:return 12;case 4:return this.pushState("escaped_text"),18;case 5:return 20;case 6:return this.popState("escaped_text"),18;case 7:return 19}},rules:[/^(?:sankey-beta\b)/i,/^(?:$)/i,/^(?:((\u000D\u000A)|(\u000A)))/i,/^(?:(\u002C))/i,/^(?:(\u0022))/i,/^(?:([\u0020-\u0021\u0023-\u002B\u002D-\u007E])*)/i,/^(?:(\u0022)(?!(\u0022)))/i,/^(?:(([\u0020-\u0021\u0023-\u002B\u002D-\u007E])|(\u002C)|(\u000D)|(\u000A)|(\u0022)(\u0022))*)/i],conditions:{csv:{rules:[1,2,3,4,5,6,7],inclusive:!1},escaped_text:{rules:[6,7],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7],inclusive:!0}}};return y}();p.lexer=v;function b(){this.yy={}}return b.prototype=p,p.Parser=b,new b}();kwe.parser=kwe;const WJ=kwe;let YJ=[],XJ=[],uI={};const ecn=()=>{YJ=[],XJ=[],uI={},Rg()};class tcn{constructor(a,u,d=0){this.source=a,this.target=u,this.value=d}}const ncn=(i,a,u)=>{YJ.push(new tcn(i,a,u))};class rcn{constructor(a){this.ID=a}}const icn={nodesMap:uI,getConfig:()=>qt().sankey,getNodes:()=>XJ,getLinks:()=>YJ,getGraph:()=>({nodes:XJ.map(i=>({id:i.ID})),links:YJ.map(i=>({source:i.source.ID,target:i.target.ID,value:i.value}))}),addLink:ncn,findOrCreateNode:i=>(i=oi.sanitizeText(i,qt()),uI[i]||(uI[i]=new rcn(i),XJ.push(uI[i])),uI[i]),getAccTitle:Mp,setAccTitle:jg,getAccDescription:Ip,setAccDescription:Dp,getDiagramTitle:Op,setDiagramTitle:pm,clear:ecn};function WWe(i,a){let u;if(a===void 0)for(const d of i)d!=null&&(u<d||u===void 0&&d>=d)&&(u=d);else{let d=-1;for(let p of i)(p=a(p,++d,i))!=null&&(u<p||u===void 0&&p>=p)&&(u=p)}return u}function YWe(i,a){let u;if(a===void 0)for(const d of i)d!=null&&(u>d||u===void 0&&d>=d)&&(u=d);else{let d=-1;for(let p of i)(p=a(p,++d,i))!=null&&(u>p||u===void 0&&p>=p)&&(u=p)}return u}function Twe(i,a){let u=0;if(a===void 0)for(let d of i)(d=+d)&&(u+=d);else{let d=-1;for(let p of i)(p=+a(p,++d,i))&&(u+=p)}return u}function scn(i){return i.target.depth}function acn(i){return i.depth}function ocn(i,a){return a-1-i.height}function XWe(i,a){return i.sourceLinks.length?i.depth:a-1}function ccn(i){return i.targetLinks.length?i.depth:i.sourceLinks.length?YWe(i.sourceLinks,scn)-1:0}function QJ(i){return function(){return i}}function QWe(i,a){return JJ(i.source,a.source)||i.index-a.index}function JWe(i,a){return JJ(i.target,a.target)||i.index-a.index}function JJ(i,a){return i.y0-a.y0}function Ewe(i){return i.value}function ucn(i){return i.index}function lcn(i){return i.nodes}function hcn(i){return i.links}function ZWe(i,a){const u=i.get(a);if(!u)throw new Error("missing: "+a);return u}function eYe({nodes:i}){for(const a of i){let u=a.y0,d=u;for(const p of a.sourceLinks)p.y0=u+p.width/2,u+=p.width;for(const p of a.targetLinks)p.y1=d+p.width/2,d+=p.width}}function fcn(){let i=0,a=0,u=1,d=1,p=24,v=8,b,y=ucn,E=XWe,_,A,P=lcn,R=hcn,B=6;function j(){const Pe={nodes:P.apply(null,arguments),links:R.apply(null,arguments)};return W(Pe),ee(Pe),ie(Pe),oe(Pe),ae(Pe),eYe(Pe),Pe}j.update=function(Pe){return eYe(Pe),Pe},j.nodeId=function(Pe){return arguments.length?(y=typeof Pe=="function"?Pe:QJ(Pe),j):y},j.nodeAlign=function(Pe){return arguments.length?(E=typeof Pe=="function"?Pe:QJ(Pe),j):E},j.nodeSort=function(Pe){return arguments.length?(_=Pe,j):_},j.nodeWidth=function(Pe){return arguments.length?(p=+Pe,j):p},j
${j}${Math.round(G*100)/100}${W}`:pe;_.append("g").attr("class","node-labels").attr("font-family","sans-serif").attr("font-size",14).selectAll("text").data(ie.nodes).join("text").attr("x",pe=>pe.x0<A/2?pe.x1+6:pe.x0-6).attr("y",pe=>(pe.y1+pe.y0)/2).attr("dy",`${ee?"0":"0.35"}em`).attr("text-anchor",pe=>pe.x0<A/2?"start":"end").text(ne);const se=_.append("g").attr("class","links").attr("fill","none").attr("stroke-opacity",.5).selectAll(".link").data(ie.links).join("g").attr("class","link").style("mix-blend-mode","multiply"),de=(v==null?void 0:v.linkColor)||"gradient";if(de==="gradient"){const pe=se.append("linearGradient").attr("id",G=>(G.uid=iYe.next("linearGradient-")).id).attr("gradientUnits","userSpaceOnUse").attr("x1",G=>G.source.x1).attr("x2",G=>G.target.x0);pe.append("stop").attr("offset","0%").attr("stop-color",G=>ae(G.source.id)),pe.append("stop").attr("offset","100%").attr("stop-color",G=>ae(G.target.id))}let X;switch(de){case"gradient":X=pe=>pe.uid;break;case"source":X=pe=>ae(pe.source.id);break;case"target":X=pe=>ae(pe.target.id);break;default:X=de}se.append("path").attr("d",Ecn()).attr("stroke",X).attr("stroke-width",pe=>Math.max(1,pe.width)),x9(void 0,_,0,R)}},_cn=i=>i.replaceAll(/^[^\S\n\r]+|[^\S\n\r]+$/g,"").replaceAll(/([\n\r])+/g,`
`).trim(),Acn=WJ.parse.bind(WJ);WJ.parse=i=>Acn(_cn(i));const Lcn=Object.freeze(Object.defineProperty({__proto__:null,diagram:{parser:WJ,db:icn,renderer:Scn}},Symbol.toStringTag,{value:"Module"}));var Awe=function(){var i=function(be,ge,ae,ne){for(ae=ae||{},ne=be.length;ne--;ae[be[ne]]=ge);return ae},a=[1,7],u=[1,13],d=[1,14],p=[1,15],v=[1,19],b=[1,16],y=[1,17],E=[1,18],_=[8,30],A=[8,21,28,29,30,31,32,40,44,47],P=[1,23],R=[1,24],B=[8,15,16,21,28,29,30,31,32,40,44,47],j=[8,15,16,21,27,28,29,30,31,32,40,44,47],W=[1,49],ee={trace:function(){},yy:{},symbols_:{error:2,spaceLines:3,SPACELINE:4,NL:5,separator:6,SPACE:7,EOF:8,start:9,BLOCK_DIAGRAM_KEY:10,document:11,stop:12,statement:13,link:14,LINK:15,START_LINK:16,LINK_LABEL:17,STR:18,nodeStatement:19,columnsStatement:20,SPACE_BLOCK:21,blockStatement:22,classDefStatement:23,cssClassStatement:24,styleStatement:25,node:26,SIZE:27,COLUMNS:28,"id-block":29,end:30,block:31,NODE_ID:32,nodeShapeNLabel:33,dirList:34,DIR:35,NODE_DSTART:36,NODE_DEND:37,BLOCK_ARROW_START:38,BLOCK_ARROW_END:39,classDef:40,CLASSDEF_ID:41,CLASSDEF_STYLEOPTS:42,DEFAULT:43,class:44,CLASSENTITY_IDS:45,STYLECLASS:46,style:47,STYLE_ENTITY_IDS:48,STYLE_DEFINITION_DATA:49,$accept:0,$end:1},terminals_:{2:"error",4:"SPACELINE",5:"NL",7:"SPACE",8:"EOF",10:"BLOCK_DIAGRAM_KEY",15:"LINK",16:"START_LINK",17:"LINK_LABEL",18:"STR",21:"SPACE_BLOCK",27:"SIZE",28:"COLUMNS",29:"id-block",30:"end",31:"block",32:"NODE_ID",35:"DIR",36:"NODE_DSTART",37:"NODE_DEND",38:"BLOCK_ARROW_START",39:"BLOCK_ARROW_END",40:"classDef",41:"CLASSDEF_ID",42:"CLASSDEF_STYLEOPTS",43:"DEFAULT",44:"class",45:"CLASSENTITY_IDS",46:"STYLECLASS",47:"style",48:"STYLE_ENTITY_IDS",49:"STYLE_DEFINITION_DATA"},productions_:[0,[3,1],[3,2],[3,2],[6,1],[6,1],[6,1],[9,3],[12,1],[12,1],[12,2],[12,2],[11,1],[11,2],[14,1],[14,4],[13,1],[13,1],[13,1],[13,1],[13,1],[13,1],[13,1],[19,3],[19,2],[19,1],[20,1],[22,4],[22,3],[26,1],[26,2],[34,1],[34,2],[33,3],[33,4],[23,3],[23,3],[24,3],[25,3]],performAction:function(ge,ae,ne,se,de,X,pe){var G=X.length-1;switch(de){case 4:se.getLogger().debug("Rule: separator (NL) ");break;case 5:se.getLogger().debug("Rule: separator (Space) ");break;case 6:se.getLogger().debug("Rule: separator (EOF) ");break;case 7:se.getLogger().debug("Rule: hierarchy: ",X[G-1]),se.setHierarchy(X[G-1]);break;case 8:se.getLogger().debug("Stop NL ");break;case 9:se.getLogger().debug("Stop EOF ");break;case 10:se.getLogger().debug("Stop NL2 ");break;case 11:se.getLogger().debug("Stop EOF2 ");break;case 12:se.getLogger().debug("Rule: statement: ",X[G]),typeof X[G].length=="number"?this.$=X[G]:this.$=[X[G]];break;case 13:se.getLogger().debug("Rule: statement #2: ",X[G-1]),this.$=[X[G-1]].concat(X[G]);break;case 14:se.getLogger().debug("Rule: link: ",X[G],ge),this.$={edgeTypeStr:X[G],label:""};break;case 15:se.getLogger().debug("Rule: LABEL link: ",X[G-3],X[G-1],X[G]),this.$={edgeTypeStr:X[G],label:X[G-1]};break;case 18:const xe=parseInt(X[G]),U=se.generateId();this.$={id:U,type:"space",label:"",width:xe,children:[]};break;case 23:se.getLogger().debug("Rule: (nodeStatement link node) ",X[G-2],X[G-1],X[G]," typestr: ",X[G-1].edgeTypeStr);const Be=se.edgeStrToEdgeData(X[G-1].edgeTypeStr);this.$=[{id:X[G-2].id,label:X[G-2].label,type:X[G-2].type,directions:X[G-2].directions},{id:X[G-2].id+"-"+X[G].id,start:X[G-2].id,end:X[G].id,label:X[G-1].label,type:"edge",directions:X[G].directions,arrowTypeEnd:Be,arrowTypeStart:"arrow_open"},{id:X[G].id,label:X[G].label,type:se.typeStr2Type(X[G].typeStr),directions:X[G].directions}];break;case 24:se.getLogger().debug("Rule: nodeStatement (abc88 node size) ",X[G-1],X[G]),this.$={id:X[G-1].id,label:X[G-1].label,type:se.typeStr2Type(X[G-1].typeStr),directions:X[G-1].directions,widthInColumns:parseInt(X[G],10)};break;case 25:se.getLogger().debug("Rule: nodeStatement (node) ",X[G]),this.$={id:X[G].id,label:X[G].label,type:se.typeStr2Type(X[G].typeStr),directions:X[G].directions,widthInColumns:1};break;case 26:se.getLogger().debug("APA123",this?this:"na"),se.getLogger().debug("COLUMNS: ",X[G]),this.$={type:"column-setting",columns:
`+Ie.showPosition()+`
Expecting `+Ze.join(", ")+", got '"+(this.terminals_[Ne]||Ne)+"'":Dt="Parse error on line "+(xe+1)+": Unexpected "+(Ne==Pe?"end of input":"'"+(this.terminals_[Ne]||Ne)+"'"),this.parseError(Dt,{text:Ie.match,token:this.terminals_[Ne]||Ne,line:Ie.yylineno,loc:ke,expected:Ze})}if(Tt[0]instanceof Array&&Tt.length>1)throw new Error("Parse Error: multiple actions possible at state: "+pn+", token: "+Ne);switch(Tt[0]){case 1:ne.push(Ne),de.push(Ie.yytext),X.push(Ie.yylloc),ne.push(Tt[1]),Ne=null,U=Ie.yyleng,G=Ie.yytext,xe=Ie.yylineno,ke=Ie.yylloc;break;case 2:if(yt=this.productions_[Tt[1]][1],Wt.$=de[de.length-yt],Wt._$={first_line:X[X.length-(yt||1)].first_line,last_line:X[X.length-1].last_line,first_column:X[X.length-(yt||1)].first_column,last_column:X[X.length-1].last_column},Ke&&(Wt._$.range=[X[X.length-(yt||1)].range[0],X[X.length-1].range[1]]),Et=this.performAction.apply(Wt,[G,U,xe,Se.yy,Tt[1],de,X].concat(je)),typeof Et<"u")return Et;yt&&(ne=ne.slice(0,-1*yt*2),de=de.slice(0,-1*yt),X=X.slice(0,-1*yt)),ne.push(this.productions_[Tt[1]][0]),de.push(Wt.$),X.push(Wt._$),Bt=pe[ne[ne.length-2]][ne[ne.length-1]],ne.push(Bt);break;case 3:return!0}}return!0}},ie=function(){var be={EOF:1,parseError:function(ae,ne){if(this.yy.parser)this.yy.parser.parseError(ae,ne);else throw new Error(ae)},setInput:function(ge,ae){return this.yy=ae||this.yy||{},this._input=ge,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 ge=this._input[0];this.yytext+=ge,this.yyleng++,this.offset++,this.match+=ge,this.matched+=ge;var ae=ge.match(/(?:\r\n?|\n).*/g);return ae?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),ge},unput:function(ge){var ae=ge.length,ne=ge.split(/(?:\r\n?|\n)/g);this._input=ge+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-ae),this.offset-=ae;var se=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),ne.length-1&&(this.yylineno-=ne.length-1);var 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:ne?(ne.length===se.length?this.yylloc.first_column:0)+se[se.length-ne.length].length-ne[0].length:this.yylloc.first_column-ae},this.options.ranges&&(this.yylloc.range=[de[0],de[0]+this.yyleng-ae]),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(ge){this.unput(this.match.slice(ge))},pastInput:function(){var ge=this.matched.substr(0,this.matched.length-this.match.length);return(ge.length>20?"...":"")+ge.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var ge=this.match;return ge.length<20&&(ge+=this._input.substr(0,20-ge.length)),(ge.substr(0,20)+(ge.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var ge=this.pastInput(),ae=new Array(ge.length+1).join("-");return ge+this.upcomingInput()+`
`+ae+"^"},test_match:function(ge,ae){var ne,se,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))),se=ge[0].match(/(?:\r\n?|\n).*/g),se&&(this.yylineno+=se.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:se?se[se.length-1].length-se[se.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+ge[0].length},this.yytext+=ge[0],this.match+=ge[0],this.matches=ge,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(ge[0].length),this.matched+=ge[0],ne=this.performAction.call(this,this.yy,this,ae,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),ne)return ne;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 ge,ae,ne,se;this._more||(this.yytext="",this.match="");for(var de=this._currentRules(),X=0;X<de.length;X++)if(ne=this._input.match(this.rules[de[X]]),ne&&(!ae||ne[0].length>ae[0].length)){if(ae=ne,se=X,this.options.backtrack_lexer){if(ge=this.test_match(ne,de[X]),ge!==!1)return ge;if(this._backtrack){ae=!1;continue}else return!1}else if(!this.options.flex)break}return ae?(ge=this.test_match(ae,de[se]),ge!==!1?ge:!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 ae=this.next();return ae||this.lex()},begin:function(ae){this.conditionStack.push(ae)},popState:function(){var ae=this.conditionStack.length-1;return ae>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(ae){return ae=this.conditionStack.length-1-Math.abs(ae||0),ae>=0?this.conditionStack[ae]:"INITIAL"},pushState:function(ae){this.begin(ae)},stateStackSize:function(){return this.conditionStack.length},options:{},performAction:function(ae,ne,se,de){switch(se){case 0:return 10;case 1:return ae.getLogger().debug("Found space-block"),31;case 2:return ae.getLogger().debug("Found nl-block"),31;case 3:return ae.getLogger().debug("Found space-block"),29;case 4:ae.getLogger().debug(".",ne.yytext);break;case 5:ae.getLogger().debug("_",ne.yytext);break;case 6:return 5;case 7:return ne.yytext=-1,28;case 8:return ne.yytext=ne.yytext.replace(/columns\s+/,""),ae.getLogger().debug("COLUMNS (LEX)",ne.yytext),28;case 9:this.pushState("md_string");break;case 10:return"MD_STR";case 11:this.popState();break;case 12:this.pushState("string");break;case 13:ae.getLogger().debug("LEX: POPPING STR:",ne.yytext),this.popState();break;case 14:return ae.getLogger().debug("LEX: STR end:",ne.yytext),"STR";case 15:return ne.yytext=ne.yytext.replace(/space\:/,""),ae.getLogger().debug("SPACE NUM (LEX)",ne.yytext),21;case 16:return ne.yytext="1",ae.getLogger().debug("COLUMNS (LEX)",ne.yytext),21;case 17:return 43;case 18:return"LINKSTYLE";case 19:return"INTERPOLATE";case 20:return this.pushState("CLASSDEF"),40;case 21:return this.popState(),this.pushState("CLASSDEFID"),"DEFAULT_CLASSDEF_ID";case 22:return this.popState(),this.pushState("CLASSDEFID"),41;case 23:return this.popState(),42;case 24:return this.pushState("CLASS"),44;case 25:return this.popState(),this.pushState("CLASS_STYLE"),45;case 26:return this.popState(),46;case 27:return this.pushState("STYLE_STMNT"),47;case 28:return this.popState(),this.pushState("STYLE_DEFINITION"),48;case 29:return this.popState(),49;case 30:return this.pushState("acc_title"),"acc_title";case 31:return this.popState(),"acc_title_value";case 32:return this.pushState("acc_descr"),"acc_descr";case 33:return this.popState(),"acc_descr_value";case 34:this.pushState("acc_descr_multiline");break;case 35:this.popState();break;case 36:return"acc_descr_multiline_value";case 37:return 30;case 38:return this.popState(),ae.getLogger().debug("Lex: (("),"NODE_DEND";case 39:return this.popState(),ae.getLogger().debug("Lex: (("),"NODE_DEND";case 40:return this.popState(),ae.getLogger().debug("Lex: ))"),"NODE_DEND";case 41:return this.popState(),ae.getLogger().debug("Lex: (("),"NODE_DEND";case 42:return this.popState(),ae.getLogger().debug("Lex: (("),"NODE_DEND";case 43:return this.popState(),ae.getLogger().debug("Lex: (-"),"NODE_DEND";case 44:return this.popState(),ae.getLogger().debug("Lex: -)"),"NODE_DEND";case 45:return this.popState(),ae.getLogger().debug("Lex: (("),"NODE_DEND";case 46:return this.popState(),ae.getLogger().debug("Lex: ]]"),"NODE_DEND";case 47:return this.popState(),ae.getLogger().debug("Lex: ("),"NODE_DEND";case 48:return this.popState(),ae.getLogger().debug("Lex: ])"),"NODE_DEND";case 49:return this.popState(),ae.getLogger().debug("Lex: /]"),"NODE_DEND";case 50:return this.popState(),ae.getLogger().debug("Lex: /]"),"NODE_DEND";case 51:return this.popState(),ae.getLogger().debug("Lex: )]"),"NODE_DEND";case 52:return this.popState(),ae.getLogger().debug("Lex: )"),"NODE_DEND";case 53:return this.popState(),ae.getLogger().debug("Lex: ]>"),"NODE_DEND";case 54:return this.popState(),ae.getLogger().debug("Lex: ]"),"NODE_DEND";case 55:return ae.getLogger().debug("Lexa: -)"),this.pushState("NODE"),36;case 56:return ae.getLogger().debug("Lexa: (-"),this.pushState("NODE"),36;case 57:return ae.getLogger().debug("Lexa
font-family: ${i.fontFamily};
color: ${i.nodeTextColor||i.textColor};
}
.cluster-label text {
fill: ${i.titleColor};
}
.cluster-label span,p {
color: ${i.titleColor};
}
.label text,span,p {
fill: ${i.nodeTextColor||i.textColor};
color: ${i.nodeTextColor||i.textColor};
}
.node rect,
.node circle,
.node ellipse,
.node polygon,
.node path {
fill: ${i.mainBkg};
stroke: ${i.nodeBorder};
stroke-width: 1px;
}
.flowchart-label text {
text-anchor: middle;
}
// .flowchart-label .text-outer-tspan {
// text-anchor: middle;
// }
// .flowchart-label .text-inner-tspan {
// text-anchor: start;
// }
.node .label {
text-align: center;
}
.node.clickable {
cursor: pointer;
}
.arrowheadPath {
fill: ${i.arrowheadColor};
}
.edgePath .path {
stroke: ${i.lineColor};
stroke-width: 2.0px;
}
.flowchart-link {
stroke: ${i.lineColor};
fill: none;
}
.edgeLabel {
background-color: ${i.edgeLabelBackground};
rect {
opacity: 0.5;
background-color: ${i.edgeLabelBackground};
fill: ${i.edgeLabelBackground};
}
text-align: center;
}
/* For html labels only */
.labelBkg {
background-color: ${ZJ(i.edgeLabelBackground,.5)};
// background-color:
}
.node .cluster {
// fill: ${ZJ(i.mainBkg,.5)};
fill: ${ZJ(i.clusterBkg,.5)};
stroke: ${ZJ(i.clusterBorder,.2)};
box-shadow: rgba(50, 50, 93, 0.25) 0px 13px 27px -5px, rgba(0, 0, 0, 0.3) 0px 8px 16px -8px;
stroke-width: 1px;
}
.cluster text {
fill: ${i.titleColor};
}
.cluster span,p {
color: ${i.titleColor};
}
/* .cluster div {
color: ${i.titleColor};
} */
div.mermaidTooltip {
position: absolute;
text-align: center;
max-width: 200px;
padding: 2px;
font-family: ${i.fontFamily};
font-size: 12px;
background: ${i.tertiaryColor};
border: 1px solid ${i.border2};
border-radius: 2px;
pointer-events: none;
z-index: 100;
}
.flowchartTitleText {
text-anchor: middle;
font-size: 18px;
fill: ${i.textColor};
}
`;function lYe(i,a,u=!1){var R,B,j;const d=i;let p="default";(((R=d==null?void 0:d.classes)==null?void 0:R.length)||0)>0&&(p=((d==null?void 0:d.classes)||[]).join(" ")),p=p+" flowchart-label";let v=0,b="",y;switch(d.type){case"round":v=5,b="rect";break;case"composite":v=0,b="composite",y=0;break;case"square":b="rect";break;case"diamond":b="question";break;case"hexagon":b="hexagon";break;case"block_arrow":b="block_arrow";break;case"odd":b="rect_left_inv_arrow";break;case"lean_right":b="lean_right";break;case"lean_left":b="lean_left";break;case"trapezoid":b="trapezoid";break;case"inv_trapezoid":b="inv_trapezoid";break;case"rect_left_inv_arrow":b="rect_left_inv_arrow";break;case"circle":b="circle";break;case"ellipse":b="ellipse";break;case"stadium":b="stadium";break;case"subroutine":b="subroutine";break;case"cylinder":b="cylinder";break;case"group":b="rect";break;case"doublecircle":b="doublecircle";break;default:b="rect"}const E=gm((d==null?void 0:d.styles)||[]),_=d.label,A=d.size||{width:0,height:0,x:0,y:0};return{labelStyle:E.labelStyle,shape:b,labelText:_,rx:v,ry:v,class:p,style:E.style,id:d.id,directions:d.directions,width:A.width,height:A.height,x:A.x,y:A.y,positioned:u,intersect:void 0,type:d.type,padding:y??(((j=(B=mh())==null?void 0:B.block)==null?void 0:j.padding)||0)}}async function Hcn(i,a,u){const d=lYe(a,u,!1);if(d.type==="group")return;const p=await pJ(i,d),v=p.node().getBBox(),b=u.getBlock(d.id);b.size={width:v.width,height:v.height,x:0,y:0,node:p},u.setBlock(b),p.remove()}async function Ucn(i,a,u){const d=lYe(a,u,!0);u.getBlock(d.id).type!=="space"&&(await pJ(i,d),a.intersect=d==null?void 0:d.intersect,ive(d))}async function Dwe(i,a,u,d){for(const p of a)await d(i,p,u),p.children&&await Dwe(i,p.children,u,d)}async function Vcn(i,a,u){await Dwe(i,a,u,Hcn)}async function Gcn(i,a,u){await Dwe(i,a,u,Ucn)}async function Kcn(i,a,u,d,p){const v=new R0({multigraph:!0,compound:!0});v.setGraph({rankdir:"TB",nodesep:10,ranksep:10,marginx:8,marginy:8});for(const b of u)b.size&&v.setNode(b.id,{width:b.size.width,height:b.size.height,intersect:b.intersect});for(const b of a)if(b.start&&b.end){const y=d.getBlock(b.start),E=d.getBlock(b.end);if(y!=null&&y.size&&(E!=null&&E.size)){const _=y.size,A=E.size,P=[{x:_.x,y:_.y},{x:_.x+(A.x-_.x)/2,y:_.y+(A.y-_.y)/2},{x:A.x,y:A.y}];await cGe(i,{v:b.start,w:b.end,name:b.id},{...b,arrowTypeEnd:b.arrowTypeEnd,arrowTypeStart:b.arrowTypeStart,points:P,classes:"edge-thickness-normal edge-pattern-solid flowchart-link LS-a1 LE-b1"},void 0,"block",v,p),b.label&&(await sve(i,{...b,label:b.label,labelStyle:"stroke: #333; stroke-width: 1.5px;fill:none;",arrowTypeEnd:b.arrowTypeEnd,arrowTypeStart:b.arrowTypeStart,points:P,classes:"edge-thickness-normal edge-pattern-solid flowchart-link LS-a1 LE-b1"}),await aGe({...b,x:P[1].x,y:P[1].y},{originalPath:P}))}}}const Jf=((gYe=(dYe=qt())==null?void 0:dYe.block)==null?void 0:gYe.padding)||8;function Wcn(i,a){if(i===0||!Number.isInteger(i))throw new Error("Columns must be an integer !== 0.");if(a<0||!Number.isInteger(a))throw new Error("Position must be a non-negative integer."+a);if(i<0)return{px:a,py:0};if(i===1)return{px:0,py:a};const u=a%i,d=Math.floor(a/i);return{px:u,py:d}}const Ycn=i=>{let a=0,u=0;for(const d of i.children){const{width:p,height:v,x:b,y}=d.size||{width:0,height:0,x:0,y:0};Xe.debug("getMaxChildSize abc95 child:",d.id,"width:",p,"height:",v,"x:",b,"y:",y,d.type),d.type!=="space"&&(p>a&&(a=p/(i.widthInColumns||1)),v>u&&(u=v))}return{width:a,height:u}};function Iwe(i,a,u=0,d=0){var b,y,E,_,A,P,R,B,j,W,ee;Xe.debug("setBlockSizes abc95 (start)",i.id,(b=i==null?void 0:i.size)==null?void 0:b.x,"block width =",i==null?void 0:i.size,"sieblingWidth",u),(y=i==null?void 0:i.size)!=null&&y.width||(i.size={width:u,height:d,x:0,y:0});let p=0,v=0;if(((E=i.children)==null?void 0:E.length)>0){for(const de of i.children)Iwe(de,a);const ie=Ycn(i);p=ie.width,v=ie.height,Xe.debug("setBlockSizes abc95 maxWidth of",i.id,":s children is ",p,v);for(const de of i.children)de.size&&(Xe.debug(`abc95 Setting size of children of ${i.id} id=${de.id} ${p} ${v} ${de