`;return o.replace(/\n$/,"")}p(oh,"makeSnippet");var Xx=oh,Zx=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],Kx=["scalar","sequence","mapping"];function lh(e){var t={};return e!==null&&Object.keys(e).forEach(function(r){e[r].forEach(function(i){t[String(i)]=r})}),t}p(lh,"compileStyleAliases");function ch(e,t){if(t=t||{},Object.keys(t).forEach(function(r){if(Zx.indexOf(r)===-1)throw new Dt('Unknown option "'+r+'" is met in definition of "'+e+'" YAML type.')}),this.options=t,this.tag=e,this.kind=t.kind||null,this.resolve=t.resolve||function(){return!0},this.construct=t.construct||function(r){return r},this.instanceOf=t.instanceOf||null,this.predicate=t.predicate||null,this.represent=t.represent||null,this.representName=t.representName||null,this.defaultStyle=t.defaultStyle||null,this.multi=t.multi||!1,this.styleAliases=lh(t.styleAliases||null),Kx.indexOf(this.kind)===-1)throw new Dt('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}p(ch,"Type$1");var St=ch;function Ma(e,t){var r=[];return e[t].forEach(function(i){var n=r.length;r.forEach(function(a,s){a.tag===i.tag&&a.kind===i.kind&&a.multi===i.multi&&(n=s)}),r[n]=i}),r}p(Ma,"compileList");function hh(){var e={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},t,r;function i(n){n.multi?(e.multi[n.kind].push(n),e.multi.fallback.push(n)):e[n.kind][n.tag]=e.fallback[n.tag]=n}for(p(i,"collectType"),t=0,r=arguments.length;t<r;t+=1)arguments[t].forEach(i);return e}p(hh,"compileMap");function on(e){return this.extend(e)}p(on,"Schema$1");on.prototype.extend=p(function(t){var r=[],i=[];if(t instanceof St)i.push(t);else if(Array.isArray(t))i=i.concat(t);else if(t&&(Array.isArray(t.implicit)||Array.isArray(t.explicit)))t.implicit&&(r=r.concat(t.implicit)),t.explicit&&(i=i.concat(t.explicit));else throw new Dt("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");r.forEach(function(a){if(!(a instanceof St))throw new Dt("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(a.loadKind&&a.loadKind!=="scalar")throw new Dt("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(a.multi)throw new Dt("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),i.forEach(function(a){if(!(a instanceof St))throw new Dt("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var n=Object.create(on.prototype);return n.implicit=(this.implicit||[]).concat(r),n.explicit=(this.explicit||[]).concat(i),n.compiledImplicit=Ma(n,"implicit"),n.compiledExplicit=Ma(n,"explicit"),n.compiledTypeMap=hh(n.compiledImplicit,n.compiledExplicit),n},"extend");var Qx=on,Jx=new St("tag:yaml.org,2002:str",{kind:"scalar",construct:p(function(e){return e!==null?e:""},"construct")}),tb=new St("tag:yaml.org,2002:seq",{kind:"sequence",construct:p(function(e){return e!==null?e:[]},"construct")}),eb=new St("tag:yaml.org,2002:map",{kind:"mapping",construct:p(function(e){return e!==null?e:{}},"construct")}),rb=new Qx({explicit:[Jx,tb,eb]});function uh(e){if(e===null)return!0;var t=e.length;return t===1&&e==="~"||t===4&&(e==="null"||e==="Null"||e==="NULL")}p(uh,"resolveYamlNull");function fh(){return null}p(fh,"constructYamlNull");function dh(e){return e===null}p(dh,"isNull");var ib=new St("tag:yaml.org,2002:null",{kind:"scalar",resolve:uh,construct:fh,predicate:dh,represent:{canonical:p(function(){return"~"},"canonical"),lowercase:p(function(){return"null"},"lowercase"),uppercase:p(function(){return"NULL"},"uppercase"),camelcase:p(function(){return"Null"},"camelcase"),empty:p(function(){return""},"empty")},defaultStyle:"lowercase"});function ph(e){if(e===null)return!1;var t=e.length;return t===4&&(e==="true"||e==="True"||e==="TRUE")||t===5&&(e==="false"||e==="False"||e==="FALSE")}p(ph,"resolveYamlBoolean");function gh(e){return e==="true"||e==="True"||e==="TRU
`:e===118?"\v":e===102?"\f":e===114?"\r":e===101?"\x1B":e===32?" ":e===34?'"':e===47?"/":e===92?"\\":e===78?" ":e===95?"":e===76?"\u2028":e===80?"\u2029":""}p(Fa,"simpleEscapeSequence");functionQh(e){returne<=65535?String.fromCharCode(e):String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}p(Qh,"charFromCodepoint");varJh=newArray(256),tu=newArray(256);for(Le=0;Le<256;Le++)Jh[Le]=Fa(Le)?1:0,tu[Le]=Fa(Le);varLe;functioneu(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||jh,this.onWarning=t.onWarning||null,this.legacy=t.legacy||!1,this.json=t.json||!1,this.listener=t.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=e.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}p(eu,"State$1");functionOs(e,t){varr={name:e.filename,buffer:e.input.slice(0,-1),position:e.position,line:e.line,column:e.position-e.lineStart};returnr.snippet=Xx(r),newDt(t,r)}p(Os,"generateError");functionV(e,t){throwOs(e,t)}p(V,"throwError");functionti(e,t){e.onWarning&&e.onWarning.call(null,Os(e,t))}p(ti,"throwWarning");varYo={YAML:p(function(t,r,i){varn,a,s;t.version!==null&&V(t,"duplication of %YAML directive"),i.length!==1&&V(t,"YAML directive accepts exactly one argument"),n=/^([0-9]+)\.([0-9]+)$/.exec(i[0]),n===null&&V(t,"ill-formed argument of the YAML directive"),a=parseInt(n[1],10),s=parseInt(n[2],10),a!==1&&V(t,"unacceptable YAML version of the document"),t.version=i[0],t.checkLineBreaks=s<2,s!==1&&s!==2&&ti(t,"unsupported YAML version of the document")},"handleYamlDirective"),TAG:p(function(t,r,i){varn,a;i.length!==2&&V(t,"TAG directive accepts exactly two arguments"),n=i[0],a=i[1],Vh.test(n)||V(t,"ill-formed tag handle (first argument) of the TAG directive"),Ce.call(t.tagMap,n)&&V(t,'there is a previously declared suffix for "'+n+'" tag handle'),Uh.test(a)||V(t,"ill-formed tag prefix (second argument) of the TAG directive");try{a=decodeURIComponent(a)}catch{V(t,"tag prefix is malformed: "+a)}t.tagMap[n]=a},"handleTagDirective")};functionle(e,t,r,i){varn,a,s,o;if(t<r){if(o=e.input.slice(t,r),i)for(n=0,a=o.length;n<a;n+=1)s=o.charCodeAt(n),s===9||32<=s&&s<=1114111||V(e,"expected valid JSON character");elseCb.test(o)&&V(e,"the stream contains non-printable characters");e.result+=o}}p(le,"captureSegment");functionEa(e,t,r,i){varn,a,s,o;for(mt.isObject(r)||V(e,"cannot merge mappings; the provided source object is unacceptable"),n=Object.keys(r),s=0,o=n.length;s<o;s+=1)a=n[s],Ce.call(t,a)||(t[a]=r[a],i[a]=!0)}p(Ea,"mergeMappings");functionOe(e,t,r,i,n,a,s,o,l){varc,h;if(Array.isArray(n))for(n=Array.prototype.slice.call(n),c=0,h=n.length;c<h;c+=1)Array.isArray(n[c])&&V(e,"nested arrays are not supported inside keys"),typeofn=="object"&&Aa(n[c])==="[object Object]"&&(n[c]="[object Object]");if(typeofn=="object"&&Aa(n)==="[object Object]"&&(n="[object Object]"),n=String(n),t===null&&(t={}),i==="tag:yaml.org,2002:merge")if(Array.isArray(a))for(c=0,h=a.length;c<h;c+=1)Ea(e,t,a[c],r);elseEa(e,t,a,r);else!e.json&&!Ce.call(r,n)&&Ce.call(t,n)&&(e.line=s||e.line,e.lineStart=o||e.lineStart,e.position=l||e.position,V(e,"duplicated mapping key")),n==="__proto__"?Object.defineProperty(t,n,{configurable:!0,enumerable:!0,writable:!0,value:a}):t[n]=a,deleter[n];returnt}p(Oe,"storeMappingPair");functionRn(e){vart;t=e.input.charCodeAt(e.position),t===10?e.position++:t===13?(e.position++,e.input.charCodeAt(e.position)===10&&e.position++):V(e,"a line break is expected"),e.line+=1,e.lineStart=e.position,e.firstTabInLine=-1}p(Rn,"readLineBreak");functionft(e,t,r){for(vari=0,n=e.input.charCodeAt(e.position);n!==0;){for(;be(n);)n===9&&e.firstTabInLine===-1&&(e.firstTabInLine=e.position),n=e.input.charCodeAt(++e.position);if(t&&n===35)don=e.input.charCodeAt(++e.position);while(n!==10&&n!==13&&n!==0);if(Yt(n))for(Rn(e),n=e.input.charCodeAt(e.position),i++,e.lineIndent=0;n===32;)e.lineIndent++,n=e.input.charCodeAt(++e.position);elsebreak}returnr!==-1&&i!==0&&e.lineIndent<r&&ti(e,"defic
`),e.charCodeAt(0)===65279&&(e=e.slice(1)));var r=new eu(e,t),i=e.indexOf("\0");for(i!==-1&&(r.position=i,V(r,"null byte is not allowed in input")),r.input+="\0";r.input.charCodeAt(r.position)===32;)r.lineIndent+=1,r.position+=1;for(;r.position<r.length-1;)uu(r);return r.documents}p(Ps,"loadDocuments");function vb(e,t,r){t!==null&&typeof t=="object"&&typeof r>"u"&&(r=t,t=null);var i=Ps(e,r);if(typeof t!="function")return i;for(var n=0,a=i.length;n<a;n+=1)t(i[n])}p(vb,"loadAll$1");function fu(e,t){var r=Ps(e,t);if(r.length!==0){if(r.length===1)return r[0];throw new Dt("expected a single document in the stream, but found more")}}p(fu,"load$1");var Sb=fu,Tb={load:Sb},du=Object.prototype.toString,pu=Object.prototype.hasOwnProperty,Rs=65279,Bb=9,ei=10,Lb=13,$b=32,Mb=33,Ab=34,Oa=35,Fb=37,Eb=38,Db=39,Ob=42,gu=44,Pb=45,hn=58,Rb=61,Ib=62,Nb=63,zb=64,mu=91,yu=93,qb=96,xu=123,Wb=124,bu=125,Bt={};Bt[0]="\\0";Bt[7]="\\a";Bt[8]="\\b";Bt[9]="\\t";Bt[10]="\\n";Bt[11]="\\v";Bt[12]="\\f";Bt[13]="\\r";Bt[27]="\\e";Bt[34]='\\"';Bt[92]="\\\\";Bt[133]="\\N";Bt[160]="\\_";Bt[8232]="\\L";Bt[8233]="\\P";var Hb=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],jb=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function _u(e,t){var r,i,n,a,s,o,l;if(t===null)return{};for(r={},i=Object.keys(t),n=0,a=i.length;n<a;n+=1)s=i[n],o=String(t[s]),s.slice(0,2)==="!!"&&(s="tag:yaml.org,2002:"+s.slice(2)),l=e.compiledTypeMap.fallback[s],l&&pu.call(l.styleAliases,o)&&(o=l.styleAliases[o]),r[s]=o;return r}p(_u,"compileStyleMap");function Cu(e){var t,r,i;if(t=e.toString(16).toUpperCase(),e<=255)r="x",i=2;else if(e<=65535)r="u",i=4;else if(e<=4294967295)r="U",i=8;else throw new Dt("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+r+mt.repeat("0",i-t.length)+t}p(Cu,"encodeHex");var Yb=1,ri=2;function wu(e){this.schema=e.schema||jh,this.indent=Math.max(1,e.indent||2),this.noArrayIndent=e.noArrayIndent||!1,this.skipInvalid=e.skipInvalid||!1,this.flowLevel=mt.isNothing(e.flowLevel)?-1:e.flowLevel,this.styleMap=_u(this.schema,e.styles||null),this.sortKeys=e.sortKeys||!1,this.lineWidth=e.lineWidth||80,this.noRefs=e.noRefs||!1,this.noCompatMode=e.noCompatMode||!1,this.condenseFlow=e.condenseFlow||!1,this.quotingType=e.quotingType==='"'?ri:Yb,this.forceQuotes=e.forceQuotes||!1,this.replacer=typeof e.replacer=="function"?e.replacer:null,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}p(wu,"State");function Pa(e,t){for(var r=mt.repeat(" ",t),i=0,n=-1,a="",s,o=e.length;i<o;)n=e.indexOf(`
`+e.slice(s+1):l+=e.slice(n),l.slice(1)}p(Wa,"foldLine");function Fu(e){for(var t="",r=0,i,n=0;n<e.length;r>=65536?n+=2:n++)r=er(e,n),i=Bt[r],!i&&br(r)?(t+=e[n],r>=65536&&(t+=e[n+1])):t+=i||Cu(r);return t}p(Fu,"escapeString");function Eu(e,t,r){var i="",n=e.tag,a,s,o;for(a=0,s=r.length;a<s;a+=1)o=r[a],e.replacer&&(o=e.replacer.call(r,String(a),o)),(te(e,t,o,!1,!1)||typeof o>"u"&&te(e,t,null,!1,!1))&&(i!==""&&(i+=","+(e.condenseFlow?"":" ")),i+=e.dump);e.tag=n,e.dump="["+i+"]"}p(Eu,"writeFlowSequence");function Ha(e,t,r,i){var n="",a=e.tag,s,o,l;for(s=0,o=r.length;s<o;s+=1)l=r[s],e.replacer&&(l=e.replacer.call(r,String(s),l)),(te(e,t+1,l,!0,!0,!1,!0)||typeof l>"u"&&te(e,t+1,null,!0,!0,!1,!0))&&((!i||n!=="")&&(n+=un(e,t)),e.dump&&ei===e.dump.charCodeAt(0)?n+="-":n+="- ",n+=e.dump);e.tag=a,e.dump=n||"[]"}p(Ha,"writeBlockSequence");function Du(e,t,r){var i="",n=e.tag,a=Object.keys(r),s,o,l,c,h;for(s=0,o=a.length;s<o;s+=1)h="",i!==""&&(h+=", "),e.condenseFlow&&(h+='"'),l=a[s],c=r[l],e.replacer&&(c=e.replacer.call(r,l,c)),te(e,t,l,!1,!1)&&(e.dump.length>1024&&(h+="? "),h+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),te(e,t,c,!1,!1)&&(h+=e.dump,i+=h));e.tag=n,e.dump="{"+i+"}"}p(Du,"writeFlowMapping");function Ou(e,t,r,i){var n="",a=e.tag,s=Object.keys(r),o,l,c,h,u,f;if(e.sortKeys===!0)s.sort();else if(typeof e.sortKeys=="function")s.sort(e.sortKeys);else if(e.sortKeys)throw new Dt("sortKeys must be a boolean or a function");for(o=0,l=s.length;o<l;o+=1)f="",(!i||n!=="")&&(f+=un(e,t)),c=s[o],h=r[c],e.replacer&&(h=e.replacer.call(r,c,h)),te(e,t+1,c,!0,!0,!0)&&(u=e.tag!==null&&e.tag!=="?"||e.dump&&e.dump.length>1024,u&&(e.dump&&ei===e.dump.charCodeAt(0)?f+="?":f+="? "),f+=e.dump,u&&(f+=un(e,t)),te(e,t+1,h,!0,u)&&(e.dump&&ei===e.dump.charCodeAt(0)?f+=":":f+=": ",f+=e.dump,n+=f));e.tag=a,e.dump=n||"{}"}p(Ou,"writeBlockMapping");function ja(e,t,r){var i,n,a,s,o,l;for(n=r?e.explicitTypes:e.implicitTypes,a=0,s=n.length;a<s;a+=1)if(o=n[a],(o.instanceOf||o.predicate)&&(!o.instanceOf||typeof t=="object"&&t instanceof o.instanceOf)&&(!o.predicate||o.predicate(t))){if(r?o.multi&&o.representName?e.tag=o.representName(t):e.tag=o.tag:e.tag="?",o.represent){if(l=e.styleMap[o.tag]||o.defaultStyle,du.call(o.represent)==="[object Function]")i=o.represent(t,l);else if(pu.call(o.represent,l))i=o.represent[l](t,l);else throw new Dt("!<"+o.tag+'> tag resolver accepts not "'+l+'" style');e.dump=i}return!0}return!1}p(ja,"detectType");function te(e,t,r,i,n,a,s){e.tag=null,e.dump=r,ja(e,r,!1)||ja(e,r,!0);var o=du.call(e.dump),l=i,c;i&&(i=e.flowLevel<0||e.flowLevel>t);var h=o==="[object Object]"||o==="[object Array]",u,f;if(h&&(u=e.duplicates.indexOf(r),f=u!==-1),(e.tag!==null&&e.tag!=="?"||f||e.indent!==2&&t>0)&&(n=!1),f&&e.usedDuplicates[u])e.dump="*ref_"+u;else{if(h&&f&&!e.usedDuplicates[u]&&(e.usedDuplicates[u]=!0),o==="[object Object]")i&&Object.keys(e.dump).length!==0?(Ou(e,t,e.dump,n),f&&(e.dump="&ref_"+u+e.dump)):(Du(e,t,e.dump),f&&(e.dump="&ref_"+u+" "+e.dump));else if(o==="[object Array]")i&&e.dump.length!==0?(e.noArrayIndent&&!s&&t>0?Ha(e,t-1,e.dump,n):Ha(e,t,e.dump,n),f&&(e.dump="&ref_"+u+e.dump)):(Eu(e,t,e.dump),f&&(e.dump="&ref_"+u+" "+e.dump));else if(o==="[object String]")e.tag!=="?"&&Mu(e,e.dump,t,a,l);else{if(o==="[object Undefined]")return!1;if(e.skipInvalid)return!1;throw new Dt("unacceptable kind of an object to dump "+o)}e.tag!==null&&e.tag!=="?"&&(c=encodeURI(e.tag[0]==="!"?e.tag.slice(1):e.tag).replace(/!/g,"%21"),e.tag[0]==="!"?c="!"+c:c.slice(0,18)==="tag:yaml.org,2002:"?c="!!"+c.slice(18):c="!<"+c+">",e.dump=c+" "+e.dump)}return!0}p(te,"writeNode");function Pu(e,t){var r=[],i=[],n,a;for(fn(e,r,i),n=0,a=i.length;n<a;n+=1)t.duplicates.push(r[i[n]]);t.usedDuplicates=new Array(a)}p(Pu,"getDuplicateReferences");function fn(e,t,r){var i,n,a;if(e!==null&&typeof e=="object")if(n=t.indexOf(e),n!==-1)r.indexOf(n)===-1&&r.push(n);else if(t.push(e),Array.isArray(e))for(n=0,a=e.length;n<a;n+=1)fn(e[n],t,r);else for(i=Object.keys(e),n=0,a=i.length;n<a;n+=1)fn(e[i[n]],t,r)}p(fn,"inspectNode");function Gb(e,t){t=t||{};var r=new wu(
`:""}p(Gb,"dump$1");functionVb(e,t){returnfunction(){thrownewError("Function yaml."+e+" is removed in js-yaml 4. Use yaml."+t+" instead, which is now safe by default.")}}p(Vb,"renamed");varUb=Bh,Xb=Tb.load;varkt={aggregation:17.25,extension:17.25,composition:17.25,dependency:6,lollipop:13.5,arrow_point:4},Go={arrow_point:9,arrow_cross:12.5,arrow_circle:12.5};functionNr(e,t){if(e===void0||t===void0)return{angle:0,deltaX:0,deltaY:0};e=ut(e),t=ut(t);const[r,i]=[e.x,e.y],[n,a]=[t.x,t.y],s=n-r,o=a-i;return{angle:Math.atan(o/s),deltaX:s,deltaY:o}}p(Nr,"calculateDeltaAndAngle");varut=p(e=>Array.isArray(e)?{x:e[0],y:e[1]}:e,"pointTransformer"),Zb=p(e=>({x:p(function(t,r,i){letn=0;consta=ut(i[0]).x<ut(i[i.length-1]).x?"left":"right";if(r===0&&Object.hasOwn(kt,e.arrowTypeStart)){const{angle:d,deltaX:g}=Nr(i[0],i[1]);n=kt[e.arrowTypeStart]*Math.cos(d)*(g>=0?1:-1)}elseif(r===i.length-1&&Object.hasOwn(kt,e.arrowTypeEnd)){const{angle:d,deltaX:g}=Nr(i[i.length-1],i[i.length-2]);n=kt[e.arrowTypeEnd]*Math.cos(d)*(g>=0?1:-1)}consts=Math.abs(ut(t).x-ut(i[i.length-1]).x),o=Math.abs(ut(t).y-ut(i[i.length-1]).y),l=Math.abs(ut(t).x-ut(i[0]).x),c=Math.abs(ut(t).y-ut(i[0]).y),h=kt[e.arrowTypeStart],u=kt[e.arrowTypeEnd],f=1;if(s<u&&s>0&&o<u){letd=u+f-s;d*=a==="right"?-1:1,n-=d}if(l<h&&l>0&&c<h){letd=h+f-l;d*=a==="right"?-1:1,n+=d}returnut(t).x+n},"x"),y:p(function(t,r,i){letn=0;consta=ut(i[0]).y<ut(i[i.length-1]).y?"down":"up";if(r===0&&Object.hasOwn(kt,e.arrowTypeStart)){const{angle:d,deltaY:g}=Nr(i[0],i[1]);n=kt[e.arrowTypeStart]*Math.abs(Math.sin(d))*(g>=0?1:-1)}elseif(r===i.length-1&&Object.hasOwn(kt,e.arrowTypeEnd)){const{angle:d,deltaY:g}=Nr(i[i.length-1],i[i.length-2]);n=kt[e.arrowTypeEnd]*Math.abs(Math.sin(d))*(g>=0?1:-1)}consts=Math.abs(ut(t).y-ut(i[i.length-1]).y),o=Math.abs(ut(t).x-ut(i[i.length-1]).x),l=Math.abs(ut(t).y-ut(i[0]).y),c=Math.abs(ut(t).x-ut(i[0]).x),h=kt[e.arrowTypeStart],u=kt[e.arrowTypeEnd],f=1;if(s<u&&s>0&&o<u){letd=u+f-s;d*=a==="up"?-1:1,n-=d}if(l<h&&l>0&&c<h){letd=h+f-l;d*=a==="up"?-1:1,n+=d}returnut(t).y+n},"y")}),"getLineFunctionsWithOffset"),Ns=p(({flowchart:e})=>{constt=e?.subGraphTitleMargin?.top??0,r=e?.subGraphTitleMargin?.bottom??0,i=t+r;return{subGraphTitleTopMargin:t,subGraphTitleBottomMargin:r,subGraphTitleTotalMargin:i}},"getSubGraphTitleMargins"),Kb=p(e=>{const{handDrawnSeed:t}=st();return{fill:e,hachureAngle:120,hachureGap:4,fillWeight:2,roughness:.7,stroke:e,seed:t}},"solidStateFill"),kr=p(e=>{constt=Qb([...e.cssCompiledStyles||[],...e.cssStyles||[],...e.labelStyle||[]]);return{stylesMap:t,stylesArray:[...t]}},"compileStyles"),Qb=p(e=>{constt=newMap;returne.forEach(r=>{const[i,n]=r.split(":");t.set(i.trim(),n?.trim())}),t},"styles2Map"),Ru=p(e=>e==="color"||e==="font-size"||e==="font-family"||e==="font-weight"||e==="font-style"||e==="text-decoration"||e==="text-align"||e==="text-transform"||e==="line-height"||e==="letter-spacing"||e==="word-spacing"||e==="text-shadow"||e==="text-overflow"||e==="white-space"||e==="word-wrap"||e==="word-break"||e==="overflow-wrap"||e==="hyphens","isLabelStyle"),j=p(e=>{const{stylesArray:t}=kr(e),r=[],i=[],n=[],a=[];returnt.forEach(s=>{consto=s[0];Ru(o)?r.push(s.join(":")+" !important"):(i.push(s.join(":")+" !important"),o.includes("stroke")&&n.push(s.join(":")+" !important"),o==="fill"&&a.push(s.join(":")+" !important"))}),{labelStyles:r.join(";"),nodeStyles:i.join(";"),stylesArray:t,borderStyles:n,backgroundStyles:a}},"styles2String"),H=p((e,t)=>{const{themeVariables:r,handDrawnSeed:i}=st(),{nodeBorder:n,mainBkg:a}=r,{stylesMap:s}=kr(e);returnObject.assign({roughness:.7,fill:s.get("fill")||a,fillStyle:"hachure",fillWeight:4,hachureGap:5.2,stroke:s.get("stroke")||n,seed:i,strokeWidth:s.get("stroke-width")?.replace("px","")||1.3,fillLineDash:[0,0],strokeLineDash:Jb(s.get("stroke-dasharray"))},t)},"userNodeOverrides"),Jb=p(e=>{if(!e)return[0,0];constt=e.trim().split(/\s+/).map(Number);if(t.length===1){constn=isNaN(t[0])?0:t[0];return[n,n]}constr=isNaN(t[0])?0:t[0],i=isNaN(t[1])?0:t[1];return[r,i]},"getStrokeDashArray"),ki={},pt={},Vo;fun
`,"ig");e=e.trim().replace(r,"").replace(/'/gm,'"'),A.debug(`Detectingdiagramdirective${t!==null?" type:"+t:""}basedonthetext:${e}`);let i;const n=[];for(;(i=Gr.exec(e))!==null;)if(i.index===Gr.lastIndex&&Gr.lastIndex++,i&&!t||t&&i[1]?.match(t)||t&&i[2]?.match(t)){const a=i[1]?i[1]:i[2],s=i[3]?i[3].trim():i[4]?JSON.parse(i[4].trim()):null;n.push({type:a,args:s})}return n.length===0?{type:e,args:null}:n.length===1?n[0]:n}catch(r){return A.error(`ERROR:${r.message}-Unabletoparsedirectivetype:'${t}'basedonthetext:'${e}'`),{type:void 0,args:null}}},"detectDirective"),O_=p(function(e){return e.replace(Gr,"")},"removeDirectives"),P_=p(function(e,t){for(const[r,i]of t.entries())if(i.match(e))return r;return-1},"isSubstringInArray");function js(e,t){if(!e)return t;const r=`curve${e.charAt(0).toUpperCase()+e.slice(1)}`;return F_[r]??t}p(js,"interpolateToCurve");function Ju(e,t){const r=e.trim();if(r)return t.securityLevel!=="loose"?r1.sanitizeUrl(r):r}p(Ju,"formatUrl");var R_=p((e,...t)=>{const r=e.split("."),i=r.length-1,n=r[i];let a=window;for(let s=0;s<i;s++)if(a=a[r[s]],!a){A.error(`Functionname:${e}notfoundinwindow`);return}a[n](...t)},"runFunc");function Ys(e,t){return!e||!t?0:Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))}p(Ys,"distance");function tf(e){let t,r=0;e.forEach(n=>{r+=Ys(n,t),t=n});const i=r/2;return Gs(e,i)}p(tf,"traverseEdge");function ef(e){return e.length===1?e[0]:tf(e)}p(ef,"calcLabelPosition");var ll=p((e,t=2)=>{const r=Math.pow(10,t);return Math.round(e*r)/r},"roundNumber"),Gs=p((e,t)=>{let r,i=t;for(const n of e){if(r){const a=Ys(n,r);if(a===0)return r;if(a<i)i-=a;else{const s=i/a;if(s<=0)return r;if(s>=1)return{x:n.x,y:n.y};if(s>0&&s<1)return{x:ll((1-s)*r.x+s*n.x,5),y:ll((1-s)*r.y+s*n.y,5)}}}r=n}throw new Error("Could not find a suitable point for the given distance")},"calculatePoint"),I_=p((e,t,r)=>{A.info(`ourpoints${JSON.stringify(t)}`),t[0]!==r&&(t=t.reverse());const n=Gs(t,25),a=e?10:5,s=Math.atan2(t[0].y-n.y,t[0].x-n.x),o={x:0,y:0};return o.x=Math.sin(s)*a+(t[0].x+n.x)/2,o.y=-Math.cos(s)*a+(t[0].y+n.y)/2,o},"calcCardinalityPosition");function rf(e,t,r){const i=structuredClone(r);A.info("our points",i),t!=="start_left"&&t!=="start_right"&&i.reverse();const n=25+e,a=Gs(i,n),s=10+e*.5,o=Math.atan2(i[0].y-a.y,i[0].x-a.x),l={x:0,y:0};return t==="start_left"?(l.x=Math.sin(o+Math.PI)*s+(i[0].x+a.x)/2,l.y=-Math.cos(o+Math.PI)*s+(i[0].y+a.y)/2):t==="end_right"?(l.x=Math.sin(o-Math.PI)*s+(i[0].x+a.x)/2-5,l.y=-Math.cos(o-Math.PI)*s+(i[0].y+a.y)/2-5):t==="end_left"?(l.x=Math.sin(o)*s+(i[0].x+a.x)/2-5,l.y=-Math.cos(o)*s+(i[0].y+a.y)/2-5):(l.x=Math.sin(o)*s+(i[0].x+a.x)/2,l.y=-Math.cos(o)*s+(i[0].y+a.y)/2),l}p(rf,"calcTerminalLabelPosition");function nf(e){let t="",r="";for(const i of e)i!==void 0&&(i.startsWith("color:")||i.startsWith("text-align:")?r=r+i+";":t=t+i+";");return{style:t,labelStyle:r}}p(nf,"getStylesFromArray");var cl=0,N_=p(()=>(cl++,"id-"+Math.random().toString(36).substr(2,12)+"-"+cl),"generateId");function af(e){let t="";const r="0123456789abcdef",i=r.length;for(let n=0;n<e;n++)t+=r.charAt(Math.floor(Math.random()*i));return t}p(af,"makeRandomHex");var z_=p(e=>af(e.length),"random"),q_=p(function(){return{x:0,y:0,fill:void 0,anchor:"start",style:"#666",width:100,height:100,textMargin:0,rx:0,ry:0,valign:void 0,text:""}},"getTextObj"),W_=p(function(e,t){const r=t.text.replace(wr.lineBreakRegex," "),[,i]=jn(t.fontSize),n=e.append("text");n.attr("x",t.x),n.attr("y",t.y),n.style("text-anchor",t.anchor),n.style("font-family",t.fontFamily),n.style("font-size",i),n.style("font-weight",t.fontWeight),n.attr("fill",t.fill),t.class!==void 0&&n.attr("class",t.class);const a=n.append("tspan");return a.attr("x",t.x+t.textMargin*2),a.attr("fill",t.fill),a.text(r),n},"drawSimpleText"),H_=pi((e,t,r)=>{if(!e||(r=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",joinWith:"<br/>"},r),wr.lineBreakRegex.test(e)))return e;const i=e.split(" ").filter(Boolean),n=[];let a="";return i.forEach((s,o)=>{const l=he(`${s}`,r),c=he(a,r);if(l>t){const{hyphenatedStrings:f,remainingW
`):[],s={type:"table",raw:r[0],header:[],align:[],rows:[]};if(i.length===n.length){for(let o of n)this.rules.other.tableAlignRight.test(o)?s.align.push("right"):this.rules.other.tableAlignCenter.test(o)?s.align.push("center"):this.rules.other.tableAlignLeft.test(o)?s.align.push("left"):s.align.push(null);for(let o=0;o<i.length;o++)s.header.push({text:i[o],tokens:this.lexer.inline(i[o]),header:!0,align:s.align[o]});for(let o of a)s.rows.push(xl(o,s.header.length).map((l,c)=>({text:l,tokens:this.lexer.inline(l),header:!1,align:s.align[c]})));return s}}lheading(t){let r=this.rules.block.lheading.exec(t);if(r)return{type:"heading",raw:r[0],depth:r[2].charAt(0)==="="?1:2,text:r[1],tokens:this.lexer.inline(r[1])}}paragraph(t){let r=this.rules.block.paragraph.exec(t);if(r){let i=r[1].charAt(r[1].length-1)===`
`+this.renderer.text(o);r?i+=this.renderer.paragraph({type:"paragraph",raw:l,text:l,tokens:[{type:"text",raw:l,text:l,escaped:!0}]}):i+=l;continue}default:{let o='Token with "'+s.type+'" type was not found.';if(this.options.silent)return console.error(o),"";throw new Error(o)}}}return i}parseInline(t,r=this.renderer){let i="";for(let n=0;n<t.length;n++){let a=t[n];if(this.options.extensions?.renderers?.[a.type]){let o=this.options.extensions.renderers[a.type].call({parser:this},a);if(o!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(a.type)){i+=o||"";continue}}let s=a;switch(s.type){case"escape":{i+=r.text(s);break}case"html":{i+=r.html(s);break}case"link":{i+=r.link(s);break}case"image":{i+=r.image(s);break}case"strong":{i+=r.strong(s);break}case"em":{i+=r.em(s);break}case"codespan":{i+=r.codespan(s);break}case"br":{i+=r.br(s);break}case"del":{i+=r.del(s);break}case"text":{i+=r.text(s);break}default:{let o='Token with "'+s.type+'" type was not found.';if(this.options.silent)return console.error(o),"";throw new Error(o)}}}return i}},zr=class{options;block;constructor(t){this.options=t||Ze}static passThroughHooks=new Set(["preprocess","postprocess","processAllTokens","emStrongMask"]);static passThroughHooksRespectAsync=new Set(["preprocess","postprocess","processAllTokens"]);preprocess(t){return t}postprocess(t){return t}processAllTokens(t){return t}emStrongMask(t){return t}provideLexer(){return this.block?qt.lex:qt.lexInline}provideParser(){return this.block?Wt.parse:Wt.parseInline}},ZC=class{defaults=Zs();options=this.setOptions;parse=this.parseMarkdown(!0);parseInline=this.parseMarkdown(!1);Parser=Wt;Renderer=_n;TextRenderer=no;Lexer=qt;Tokenizer=bn;Hooks=zr;constructor(...t){this.use(...t)}walkTokens(t,r){let i=[];for(let n of t)switch(i=i.concat(r.call(this,n)),n.type){case"table":{let a=n;for(let s of a.header)i=i.concat(this.walkTokens(s.tokens,r));for(let s of a.rows)for(let o of s)i=i.concat(this.walkTokens(o.tokens,r));break}case"list":{let a=n;i=i.concat(this.walkTokens(a.items,r));break}default:{let a=n;this.defaults.extensions?.childTokens?.[a.type]?this.defaults.extensions.childTokens[a.type].forEach(s=>{let o=a[s].flat(1/0);i=i.concat(this.walkTokens(o,r))}):a.tokens&&(i=i.concat(this.walkTokens(a.tokens,r)))}}return i}use(...t){let r=this.defaults.extensions||{renderers:{},childTokens:{}};return t.forEach(i=>{let n={...i};if(n.async=this.defaults.async||n.async||!1,i.extensions&&(i.extensions.forEach(a=>{if(!a.name)throw new Error("extension name required");if("renderer"in a){let s=r.renderers[a.name];s?r.renderers[a.name]=function(...o){let l=a.renderer.apply(this,o);return l===!1&&(l=s.apply(this,o)),l}:r.renderers[a.name]=a.renderer}if("tokenizer"in a){if(!a.level||a.level!=="block"&&a.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");let s=r[a.level];s?s.unshift(a.tokenizer):r[a.level]=[a.tokenizer],a.start&&(a.level==="block"?r.startBlock?r.startBlock.push(a.start):r.startBlock=[a.start]:a.level==="inline"&&(r.startInline?r.startInline.push(a.start):r.startInline=[a.start]))}"childTokens"in a&&a.childTokens&&(r.childTokens[a.name]=a.childTokens)}),n.extensions=r),i.renderer){let a=this.defaults.renderer||new _n(this.defaults);for(let s in i.renderer){if(!(s in a))throw new Error(`renderer'${s}'doesnotexist`);if(["options","parser"].includes(s))continue;let o=s,l=i.renderer[o],c=a[o];a[o]=(...h)=>{let u=l.apply(a,h);return u===!1&&(u=c.apply(a,h)),u||""}}n.renderer=a}if(i.tokenizer){let a=this.defaults.tokenizer||new bn(this.defaults);for(let s in i.tokenizer){if(!(s in a))throw new Error(`tokenizer'${s}'doesnotexist`);if(["options","rules","lexer"].includes(s))continue;let o=s,l=i.tokenizer[o],c=a[o];a[o]=(...h)=>{let u=l.apply(a,h);return u===!1&&(u=c.apply(a,h)),u}}n.tokenizer=a}if(i.hooks){let a=this.defaults.hooks||new zr;for(let s in i.hooks){if(!(s in a))throw new Error(`hook'${s}'doesnotexist`);if(["options","block"].includes(s))continue;let o=s,l=i.hooks[o],c=a[o];zr.passThroughHooks.has(s)?a[o]=h=>{if(this.
Please report this to https://github.com/markedjs/marked.`,t){letn="<p>An error occurred:</p><pre>"+Xt(i.message+"",!0)+"</pre>";returnr?Promise.resolve(n):n}if(r)returnPromise.reject(i);throwi}}},je=newZC;functionot(e,t){returnje.parse(e,t)}ot.options=ot.setOptions=function(e){returnje.setOptions(e),ot.defaults=je.defaults,cf(ot.defaults),ot};ot.getDefaults=Zs;ot.defaults=Ze;ot.use=function(...e){returnje.use(...e),ot.defaults=je.defaults,cf(ot.defaults),ot};ot.walkTokens=function(e,t){returnje.walkTokens(e,t)};ot.parseInline=je.parseInline;ot.Parser=Wt;ot.parser=Wt.parse;ot.Renderer=_n;ot.TextRenderer=no;ot.Lexer=qt;ot.lexer=qt.lex;ot.Tokenizer=bn;ot.Hooks=zr;ot.parse=ot;ot.options;ot.setOptions;ot.use;ot.walkTokens;ot.parseInline;Wt.parse;qt.lex;function_f(e){for(vart=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];vari=Array.from(typeofe=="string"?[e]:e);i[i.length-1]=i[i.length-1].replace(/\r?\n([\t ]*)$/,"");varn=i.reduce(function(o,l){varc=l.match(/\n([\t ]+|(?!\s).)/g);returnc?o.concat(c.map(function(h){varu,f;return(f=(u=h.match(/[\t ]/g))===null||u===void0?void0:u.length)!==null&&f!==void0?f:0})):o},[]);if(n.length){vara=newRegExp(`
`)),s+=u+i[l+1]}),s}varKC={body:'<g><rect width="80" height="80" style="fill: #087ebf; stroke-width: 0px;"/><text transform="translate(21.16 64.67)" style="fill: #fff; font-family: ArialMT, Arial; font-size: 67.75px;"><tspan x="0" y="0">?</tspan></text></g>',height:80,width:80},Za=newMap,Cf=newMap,QC=p(e=>{for(consttofe){if(!t.name)thrownewError('Invalid icon loader. Must have a "name" property with non-empty string value.');if(A.debug("Registering icon pack:",t.name),"loader"int)Cf.set(t.name,t.loader);elseif("icons"int)Za.set(t.name,t.icons);elsethrowA.error("Invalid icon loader:",t),newError('Invalid icon loader. Must have either "icons" or "loader" property.')}},"registerIconPacks"),wf=p(async(e,t)=>{constr=J_(e,!0,t!==void0);if(!r)thrownewError(`Invalid icon name: ${e}`);consti=r.prefix||t;if(!i)thrownewError(`Icon name must contain a prefix: ${e}`);letn=Za.get(i);if(!n){consts=Cf.get(i);if(!s)thrownewError(`Icon set not found: ${r.prefix}`);try{n={...awaits(),prefix:i},Za.set(i,n)}catch(o){throwA.error(o),newError(`Failed to load icon set: ${r.prefix}`)}}consta=rC(n,r.name);if(!a)thrownewError(`Icon not found: ${e}`);returna},"getRegisteredIconData"),JC=p(asynce=>{try{returnawaitwf(e),!0}catch{return!1}},"isIconAvailable"),yi=p(async(e,t,r)=>{leti;try{i=awaitwf(e,t?.fallbackPrefix)}catch(s){A.error(s),i=KC}constn=cC(i,t),a=dC(fC(n.body),{...n.attributes,...r});returnNt(a,vt())},"getIconSVG");functionkf(e,{markdownAutoWrap:t}){consti=e.replace(/<br\/>/g,`
`)))thrownewError("splitLineToFitWidth does not support newlines in the line");returnCn(e,t)}p(Lf,"splitLineToFitWidth");functionCn(e,t,r=[],i=[]){if(e.length===0)returni.length>0&&r.push(i),r.length>0?r:[];letn="";e[0].content===" "&&(n=" ",e.shift());consta=e.shift()??{content:" ",type:"normal"},s=[...i];if(n!==""&&s.push({content:n,type:"normal"}),s.push(a),t(s))returnCn(e,t,r,s);if(i.length>0)r.push(i),e.unshift(a);elseif(a.content){const[o,l]=Bf(t,a);r.push([o]),l.content&&e.unshift(l)}returnCn(e,t,r)}p(Cn,"splitLineToFitWidthRecursion");functionKa(e,t){t&&e.attr("style",t)}p(Ka,"applyStyle");asyncfunction$f(e,t,r,i,n=!1,a=vt()){consts=e.append("foreignObject");s.attr("width",`${10*r}px`),s.attr("height",`${10*r}px`);consto=s.append("xhtml:div"),l=gr(t.label)?awaitps(t.label.replace(wr.lineBreakRegex,`
`,f=n.append("path").attr("id","node-"+t.id).attr("class","node-bkg node-"+t.type).attr("style",i).attr("d",u);returnn.append("line").attr("class","node-line-").attr("x1",-l/2).attr("y1",c/2).attr("x2",l/2).attr("y2",c/2),o.attr("transform",`translate(${-a.width/2}, ${-a.height/2})`),n.append(()=>o.node()),Y(t,f),t.calcIntersect=function(d,g){returnN.rect(d,g)},t.intersect=function(d){returnN.rect(t,d)},n}p(ip,"defaultMindmapNode");asyncfunctionnp(e,t){constr={padding:t.padding??0};returnlo(e,t,r)}p(np,"mindmapCircle");varqw=[{semanticName:"Process",name:"Rectangle",shortName:"rect",description:"Standard process shape",aliases:["proc","process","rectangle"],internalAliases:["squareRect"],handler:Od},{semanticName:"Event",name:"Rounded Rectangle",shortName:"rounded",description:"Represents an event",aliases:["event"],internalAliases:["roundedRect"],handler:Fd},{semanticName:"Terminal Point",name:"Stadium",shortName:"stadium",description:"Terminal point",aliases:["terminal","pill"],handler:Pd},{semanticName:"Subprocess",name:"Framed Rectangle",shortName:"fr-rect",description:"Subprocess",aliases:["subprocess","subproc","framed-rectangle","subroutine"],handler:zd},{semanticName:"Database",name:"Cylinder",shortName:"cyl",description:"Database storage",aliases:["db","database","cylinder"],handler:ad},{semanticName:"Start",name:"Circle",shortName:"circle",description:"Starting point",aliases:["circ"],handler:lo},{semanticName:"Bang",name:"Bang",shortName:"bang",description:"Bang",aliases:["bang"],handler:ep},{semanticName:"Cloud",name:"Cloud",shortName:"cloud",description:"cloud",aliases:["cloud"],handler:rp},{semanticName:"Decision",name:"Diamond",shortName:"diam",description:"Decision-making step",aliases:["decision","diamond","question"],handler:$d},{semanticName:"Prepare Conditional",name:"Hexagon",shortName:"hex",description:"Preparation or condition step",aliases:["hexagon","prepare"],handler:fd},{semanticName:"Data Input/Output",name:"Lean Right",shortName:"lean-r",description:"Represents input or output",aliases:["lean-right","in-out"],internalAliases:["lean_right"],handler:wd},{semanticName:"Data Input/Output",name:"Lean Left",shortName:"lean-l",description:"Represents output or input",aliases:["lean-left","out-in"],internalAliases:["lean_left"],handler:Cd},{semanticName:"Priority Action",name:"Trapezoid Base Bottom",shortName:"trap-b",description:"Priority action",aliases:["priority","trapezoid-bottom","trapezoid"],handler:Yd},{semanticName:"Manual Operation",name:"Trapezoid Base Top",shortName:"trap-t",description:"Represents a manual task",aliases:["manual","trapezoid-top","inv-trapezoid"],internalAliases:["inv_trapezoid"],handler:bd},{semanticName:"Stop",name:"Double Circle",shortName:"dbl-circ",description:"Represents a stop point",aliases:["double-circle"],internalAliases:["doublecircle"],handler:od},{semanticName:"Text Block",name:"Text Block",shortName:"text",description:"Text block",handler:Hd},{semanticName:"Card",name:"Notched Rectangle",shortName:"notch-rect",description:"Represents a card",aliases:["card","notched-rectangle"],handler:Kf},{semanticName:"Lined/Shaded Process",name:"Lined Rectangle",shortName:"lin-rect",description:"Lined process shape",aliases:["lined-rectangle","lined-process","lin-proc","shaded-process"],handler:Ed},{semanticName:"Start",name:"Small Circle",shortName:"sm-circ",description:"Small starting point",aliases:["start","small-circle"],internalAliases:["stateStart"],handler:Nd},{semanticName:"Stop",name:"Framed Circle",shortName:"fr-circ",description:"Stop point",aliases:["stop","framed-circle"],internalAliases:["stateEnd"],handler:Id},{semanticName:"Fork/Join",name:"Filled Rectangle",shortName:"fork",description:"Fork or join in process flow",aliases:["join"],internalAliases:["forkJoin"],handler:hd},{semanticName:"Collate",name:"Hourglass",shortName:"hourglass",description:"Represents a collate operation",aliases:["hourglass","collate"],handler:dd},{semanticName:"Comment",name:"Curly Brace",shortName:"brace",description:"Adds a comment",aliases:["comment","brace-l"],ha
L0,20`)},"requirement_arrow"),pk=p((e,t,r)=>{consti=e.append("defs").append("marker").attr("id",r+"_"+t+"-requirement_containsStart").attr("refX",0).attr("refY",10).attr("markerWidth",20).attr("markerHeight",20).attr("orient","auto").append("g");i.append("circle").attr("cx",10).attr("cy",10).attr("r",9).attr("fill","none"),i.append("line").attr("x1",1).attr("x2",19).attr("y1",10).attr("y2",10),i.append("line").attr("y1",1).attr("y2",19).attr("x1",10).attr("x2",10)},"requirement_contains"),gk={extension:tk,composition:ek,aggregation:rk,dependency:ik,lollipop:nk,point:ak,circle:sk,cross:ok,barb:lk,only_one:ck,zero_or_one:hk,one_or_more:uk,zero_or_more:fk,requirement_arrow:dk,requirement_contains:pk},mk=Jw,yk={common:wr,getConfig:vt,insertCluster:Sw,insertEdge:Qw,insertEdgeLabel:Gw,insertMarkers:mk,insertNode:sp,interpolateToCurve:js,labelHelper:K,log:A,positionEdgeLabel:Vw},oi={},hp=p(e=>{for(consttofe)oi[t.name]=t},"registerLayoutLoaders"),xk=p(()=>{hp([{name:"dagre",loader:p(async()=>awaitlt(()=>import("./dagre-6UL2VRFP-DAP2ypYE.js"),__vite__mapDeps([0,1,2,3,4,5,6,7])),"loader")},{name:"cose-bilkent",loader:p(async()=>awaitlt(()=>import("./cose-bilkent-S5V4N54A-C3IpZmgG.js"),__vite__mapDeps([8,9,6,7])),"loader")}])},"registerDefaultLayoutLoaders");xk();varaB=p(async(e,t)=>{if(!(e.layoutAlgorithminoi))thrownewError(`Unknown layout algorithm: ${e.layoutAlgorithm}`);constr=oi[e.layoutAlgorithm];return(awaitr.loader()).render(e,t,yk,{algorithm:r.algorithm})},"render"),sB=p((e="",{fallback:t="dagre"}={})=>{if(einoi)returne;if(tinoi)returnA.warn(`Layout algorithm ${e} is not registered. Using ${t} as fallback.`),t;thrownewError(`Both layout algorithms ${e} and ${t} are not registered.`)},"getRegisteredLayoutAlgorithm"),up="comm",fp="rule",dp="decl",bk="@import",_k="@namespace",Ck="@keyframes",wk="@layer",pp=Math.abs,ho=String.fromCharCode;functiongp(e){returne.trim()}functionWi(e,t,r){returne.replace(t,r)}functionkk(e,t,r){returne.indexOf(t,r)}functionnr(e,t){returne.charCodeAt(t)|0}function_r(e,t,r){returne.slice(t,r)}functionKt(e){returne.length}functionvk(e){returne.length}functionMi(e,t){returnt.push(e),e}varQn=1,Cr=1,mp=0,zt=0,dt=0,Br="";functionuo(e,t,r,i,n,a,s,o){return{value:e,root:t,parent:r,type:i,props:n,children:a,line:Qn,column:Cr,length:s,return:"",siblings:o}}functionSk(){returndt}functionTk(){returndt=zt>0?nr(Br,--zt):0,Cr--,dt===10&&(Cr=1,Qn--),dt}functionGt(){returndt=zt<mp?nr(Br,zt++):0,Cr++,dt===10&&(Cr=1,Qn++),dt}functionxe(){returnnr(Br,zt)}functionHi(){returnzt}functionJn(e,t){return_r(Br,e,t)}functionli(e){switch(e){case0:case9:case10:case13:case32:return5;case33:case43:case44:case47:case62:case64:case126:case59:case123:case125:return4;case58:return3;case34:case39:case40:case91:return2;case41:case93:return1}return0}functionBk(e){returnQn=Cr=1,mp=Kt(Br=e),zt=0,[]}functionLk(e){returnBr="",e}functionpa(e){returngp(Jn(zt-1,ns(e===91?e+2:e===40?e+1:e)))}function$k(e){for(;(dt=xe())&&dt<33;)Gt();returnli(e)>2||li(dt)>3?"":" "}functionMk(e,t){for(;--t&&Gt()&&!(dt<48||dt>102||dt>57&&dt<65||dt>70&&dt<97););returnJn(e,Hi()+(t<6&&xe()==32&&Gt()==32))}functionns(e){for(;Gt();)switch(dt){casee:returnzt;case34:case39:e!==34&&e!==39&&ns(dt);break;case40:e===41&&ns(e);break;case92:Gt();break}returnzt}functionAk(e,t){for(;Gt()&&e+dt!==57;)if(e+dt===84&&xe()===47)break;return"/*"+Jn(t,zt-1)+"*"+ho(e===47?e:Gt())}functionFk(e){for(;!li(xe());)Gt();returnJn(e,zt)}functionEk(e){returnLk(ji("",null,null,null,[""],e=Bk(e),0,[0],e))}functionji(e,t,r,i,n,a,s,o,l){for(varc=0,h=0,u=s,f=0,d=0,g=0,m=1,y=1,x=1,b=0,_="",k=n,C=a,B=i,v=_;y;)switch(g=b,b=Gt()){case40:if(g!=108&&nr(v,u-1)==58){kk(v+=Wi(pa(b),"&","&\f"),"&\f",pp(c?o[c-1]:0))!=-1&&(x=-1);break}case34:case39:case91:v+=pa(b);break;case9:case10:case13:case32:v+=$k(g);break;case92:v+=Mk(Hi()-1,7);continue;case47:switch(xe()){case42:case47:Mi(Dk(Ak(Gt(),Hi()),t,r,l),l),(li(g||1)==5||li(xe()||1)==5)&&Kt(v)&&_r(v,-1,void0)!==" "&&(v+=" ");break;default:v+=
`;try{_a(n)}catch{constc=xg(n);if(!c)thrownewVl(`Diagram ${n} not found.`);const{id:h,diagram:u}=awaitc();Xi(h,u)}const{db:a,parser:s,renderer:o,init:l}=_a(n);returns.parser&&(s.parser.yy=a),a.clear?.(),l?.(i),r.title&&a.setDiagramTitle?.(r.title),awaits.parse(t),newIe(n,t,a,s,o)}asyncrender(t,r){awaitthis.renderer.draw(this.text,t,r,this)}getParser(){returnthis.parser}getType(){returnthis.type}},p(Ie,"Diagram"),Ie),zl=[],KS=p(()=>{zl.forEach(e=>{e()}),zl=[]},"attachFunctions"),QS=p(e=>e.replace(/^\s*%%(?!{)[^\n]+\n?/gm,"").trimStart(),"cleanupComments");functionVp(e){constt=e.match(Gl);if(!t)return{text:e,metadata:{}};letr=Xb(t[1],{schema:Ub})??{};r=typeofr=="object"&&!Array.isArray(r)?r:{};consti={};returnr.displayMode&&(i.displayMode=r.displayMode.toString()),r.title&&(i.title=r.title.toString()),r.config&&(i.config=r.config),{text:e.slice(t[0].length),metadata:i}}p(Vp,"extractFrontMatter");varJS=p(e=>e.replace(/\r\n?/g,`
`).replace(/<(\w+)([^>]*)>/g,(t,r,i)=>"<"+r+i.replace(/="([^"]*)"/g,"='$1'")+">"),"cleanupText"),tT=p(e=>{const{text:t,metadata:r}=Vp(e),{displayMode:i,title:n,config:a={}}=r;returni&&(a.gantt||(a.gantt={}),a.gantt.displayMode=i),{title:n,config:a,text:t}},"processFrontmatter"),eT=p(e=>{constt=jt.detectInit(e)??{},r=jt.detectDirective(e,"wrap");returnArray.isArray(r)?t.wrap=r.some(({type:i})=>i==="wrap"):r?.type==="wrap"&&(t.wrap=!0),{text:O_(e),directive:t}},"processDirectives");functionfo(e){constt=JS(e),r=tT(t),i=eT(r.text),n=Xs(r.config,i.directive);returne=QS(i.text),{code:e,title:r.title,config:n}}p(fo,"preprocessDiagram");functionUp(e){constt=newTextEncoder().encode(e),r=Array.from(t,i=>String.fromCodePoint(i)).join("");returnbtoa(r)}p(Up,"toBase64");varrT=5e4,iT="graph TB;a[Maximum text size in diagram exceeded];style a fill:#faa",nT="sandbox",aT="loose",sT="http://www.w3.org/2000/svg",oT="http://www.w3.org/1999/xlink",lT="http://www.w3.org/1999/xhtml",cT="100%",hT="100%",uT="border:0;margin:0;",fT="margin:0",dT="allow-top-navigation-by-user-activation allow-popups",pT='The "iframe" tag is not supported by your browser.',gT=["foreignobject"],mT=["dominant-baseline"];functionpo(e){constt=fo(e);returnVi(),Dg(t.config??{}),t}p(po,"processAndSetConfigs");asyncfunctionXp(e,t){ta();try{const{code:r,config:i}=po(e);return{diagramType:(awaitKp(r)).type,config:i}}catch(r){if(t?.suppressErrors)return!1;throwr}}p(Xp,"parse");varql=p((e,t,r=[])=>`
</iframe>`},"putIntoIFrame"),Wl=p((e,t,r,i,n)=>{consta=e.append("div");a.attr("id",r),i&&a.attr("style",i);consts=a.append("svg").attr("id",t).attr("width","100%").attr("xmlns",sT);returnn&&s.attr("xmlns:xlink",n),s.append("g"),e},"appendDivSvgG");functionus(e,t){returne.append("iframe").attr("id",t).attr("style","width: 100%; height: 100%;").attr("sandbox","")}p(us,"sandboxedIframe");varCT=p((e,t,r,i)=>{e.getElementById(t)?.remove(),e.getElementById(r)?.remove(),e.getElementById(i)?.remove()},"removeExistingElements"),wT=p(asyncfunction(e,t,r){ta();consti=po(t);t=i.code;constn=vt();A.debug(n),t.length>(n?.maxTextSize??rT)&&(t=iT);consta="#"+e,s="i"+e,o="#"+s,l="d"+e,c="#"+l,h=p(()=>{constO=it(f?o:c).node();O&&"remove"inO&&O.remove()},"removeTempElements");letu=it("body");constf=n.securityLevel===nT,d=n.securityLevel===aT,g=n.fontFamily;if(r!==void0){if(r&&(r.innerHTML=""),f){constR=us(it(r),s);u=it(R.nodes()[0].contentDocument.body),u.node().style.margin=0}elseu=it(r);Wl(u,e,l,`font-family: ${g}`,oT)}else{if(CT(document,e,l,s),f){constR=us(it("body"),s);u=it(R.nodes()[0].contentDocument.body),u.node().style.margin=0}elseu=it("body");Wl(u,e,l)}letm,y;try{m=awaiths.fromText(t,{title:i.title})}catch(R){if(n.suppressErrorRendering)throwh(),R;m=awaiths.fromText("error"),y=R}constx=u.select(c).node(),b=m.type,_=x.firstChild,k=_.firstChild,C=m.renderer.getClasses?.(t,m),B=xT(n,b,C,a),v=document.createElement("style");v.innerHTML=B,_.insertBefore(v,k);try{awaitm.renderer.draw(t,e,go.version,m)}catch(R){thrown.suppressErrorRendering?h():cS.draw(t,e,go.version),R}constE=u.select(`${c} svg`),P=m.db.getAccTitle?.(),D=m.db.getAccDescription?.();Qp(b,E,P,D),u.select(`[id="${e}"]`).selectAll("foreignobject > *").attr("xmlns",lT);letF=u.select(c).node().innerHTML;if(A.debug("config.arrowMarkerAbsolute",n.arrowMarkerAbsolute),F=bT(F,f,yt(n.arrowMarkerAbsolute)),f){constR=u.select(c+" svg").node();F=_T(F,R)}elsed||(F=dr.sanitize(F,{ADD_TAGS:gT,ADD_ATTR:mT,HTML_INTEGRATION_POINTS:{foreignobject:!0}}));if(KS(),y)throwy;returnh(),{diagramType:b,svg:F,bindFunctions:m.db.bindFunctions}},"render");functionZp(e={}){constt=gt({},e);t?.fontFamily&&!t.themeVariables?.fontFamily&&(t.themeVariables||(t.themeVariables={}),t.themeVariables.fontFamily=t.fontFamily),Fg(t),t?.theme&&t.themeinoe?t.themeVariables=oe[t.theme].getThemeVariables(t.themeVariables):t&&(t.themeVariables=oe.default.getThemeVariables(t.themeVariables));constr=typeoft=="object"?Ag(t):Ql();fs(r.logLevel),ta()}p(Zp,"initialize");varKp=p((e,t={})=>{const{code:r}=fo(e);returnhs.fromText(r,t)},"getDiagramFromText");functionQp(e,t,r,i){Yp(t,e),Gp(t,r,i,t.attr("id"))}p(Qp,"addA11yInfo");varYe=Object.freeze({render:wT,parse:Xp,getDiagramFromText:Kp,initialize:Zp,getConfig:vt,setConfig:Jl,getSiteConfig:Ql,updateSiteConfig:Eg,reset:p(()=>{Vi()},"reset"),globalReset:p(()=>{Vi(pr)},"globalReset"),defaultConfig:pr});fs(vt().logLevel);Vi(vt());varkT=p((e,t,r)=>{A.warn(e),Us(e)?(r&&r(e.str,e.hash),t.push({...e,message:e.str,error:e})):(r&&r(e),einstanceofError&&t.push({str:e.message,message:e.message,hash:e.name,error:e}))},"handleError"),Jp=p(asyncfunction(e={querySelector:".mermaid"}){try{awaitvT(e)}catch(t){if(Us(t)&&A.error(t.str),ue.parseError&&ue.parseError(t),!e.suppressErrors)throwA.error("Use the suppressErrors option to suppress these errors"),t}},"run"),vT=p(asyncfunction({postRenderCallback:e,querySelector:t,nodes:r}={querySelector:".mermaid"}){consti=Ye.getConfig();A.debug(`${e?"":"No "}Callback function found`);letn;if(r)n=r;elseif(t)n=document.querySelectorAll(t);elsethrownewError("Nodes and querySelector are both undefined");A.debug(`Found ${n.length} diagrams`),i?.startOnLoad!==void0&&(A.debug("Start On Load: "+i?.startOnLoad),Ye.updateSiteConfig({startOnLoad:i?.startOnLoad}));consta=newjt.InitIDGenerator(i.deterministicIds,i.deterministicIDSeed);lets;consto=[];for(constlofArray.from(n)){if(A.info("Rendering diagram: "+l.id),l.getAttribute("data-processed"))continue;l.setAttribute("data-processed","true");constc=`me