Files
static-php-cli/assets/chunks/mermaid.core.nRjnRDqC.js

310 lines
594 KiB
JavaScript
Raw Normal View History

const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/chunks/dagre-BM42HDAG.FiuH4QXS.js","assets/chunks/graph.CPCuV3C_.js","assets/chunks/layout.Dsmt3fdL.js","assets/chunks/framework.C2AwuPrQ.js","assets/chunks/cose-bilkent-S5V4N54A.qsLniikW.js","assets/chunks/cytoscape.esm.nFXppDBa.js","assets/chunks/c4Diagram-AAUBKEIU.CqB2FivT.js","assets/chunks/chunk-ND2GUHAM.CU5Faf_l.js","assets/chunks/flowDiagram-I6XJVG4X.BjoZOoBC.js","assets/chunks/chunk-FMBD7UC4.DAWdUdk6.js","assets/chunks/chunk-55IACEB6.D75z0lUt.js","assets/chunks/chunk-2J33WTMH.CgbvVfK-.js","assets/chunks/channel.Cn28AKKG.js","assets/chunks/erDiagram-TEJ5UH35.CApbWDTI.js","assets/chunks/gitGraphDiagram-PVQCEYII.Cid91haI.js","assets/chunks/chunk-4BX2VUAB.CU_CNmGw.js","assets/chunks/chunk-QZHKN3VN.7wJTG8dK.js","assets/chunks/wardley-L42UT6IY.C8rjnVeB.js","assets/chunks/ganttDiagram-6RSMTGT7.D0hWfb2U.js","assets/chunks/linear.DbqdBgfB.js","assets/chunks/init.Gi6I4Gst.js","assets/chunks/defaultLocale.DX6XiGOO.js","assets/chunks/infoDiagram-5YYISTIA.KVhdqtGX.js","assets/chunks/pieDiagram-4H26LBE5.BkP-eZRH.js","assets/chunks/arc.D4vmWaaL.js","assets/chunks/ordinal.BYWQX77i.js","assets/chunks/quadrantDiagram-W4KKPZXB.DBmmEwFv.js","assets/chunks/xychartDiagram-2RQKCTM6.C09JEDgR.js","assets/chunks/requirementDiagram-4Y6WPE33.Bx7mlUH-.js","assets/chunks/sequenceDiagram-3UESZ5HK.BgM9x1AD.js","assets/chunks/classDiagram-4FO5ZUOK.Bzxt7zTF.js","assets/chunks/chunk-727SXJPM.CpxwxqXv.js","assets/chunks/classDiagram-v2-Q7XG4LA2.Bzxt7zTF.js","assets/chunks/stateDiagram-AJRCARHV.DiN84BJz.js","assets/chunks/chunk-AQP2D5EJ.b8ia_EFe.js","assets/chunks/stateDiagram-v2-BHNVJYJU.EaR7_CxQ.js","assets/chunks/journeyDiagram-JHISSGLW.D1iLODVG.js","assets/chunks/timeline-definition-PNZ67QCA.BoEQswdq.js","assets/chunks/mindmap-definition-RKZ34NQL.BROqEtdv.js","assets/chunks/kanban-definition-UN3LZRKU.D-uH5JSC.js","assets/chunks/sankeyDiagram-5OEKKPKP.CoZZEu8Z.js","assets/chunks/diagram-LMA3HP47.D36vmBiE.js","assets/chunks/diagram-2AECGRRQ.DtDNkdy8.js","assets/chunks/blockDiagram-GPEHLZMM.B2z5NdA0.js","assets/chunks/diagram-5GNKFQAL.CD3P6Il9.js","assets/chunks/architectureDiagram-3BPJPVTR.MjifU01A.js","assets/chunks/diagram-KO2AKTUF.C05s9dos.js","assets/chunks/ishikawaDiagram-YF4QCWOH.BKWOJY9S.js","assets/chunks/vennDiagram-CIIHVFJN.DNgY4-IS.js","assets/chunks/diagram-OG6HWLK6.De6qOYLx.js","assets/chunks/wardleyDiagram-YWT4CUSO.DVM8MAVb.js"])))=>i.map(i=>d[i]);
import{W as pt}from"./framework.C2AwuPrQ.js";function ty(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Mo={exports:{}},ey=Mo.exports,Hl;function ry(){return Hl||(Hl=1,(function(e,t){(function(r,i){e.exports=i()})(ey,(function(){var r=1e3,i=6e4,o=36e5,s="millisecond",a="second",n="minute",l="hour",c="day",h="week",d="month",f="quarter",u="year",g="date",m="Invalid Date",y=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,C=/\[([^\]]+)]|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,b={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(E){var F=["th","st","nd","rd"],L=E%100;return"["+E+(F[(L-20)%10]||F[L]||F[0])+"]"}},k=function(E,F,L){var M=String(E);return!M||M.length>=F?E:""+Array(F+1-M.length).join(L)+E},T={s:k,z:function(E){var F=-E.utcOffset(),L=Math.abs(F),M=Math.floor(L/60),D=L%60;return(F<=0?"+":"-")+k(M,2,"0")+":"+k(D,2,"0")},m:function E(F,L){if(F.date()<L.date())return-E(L,F);var M=12*(L.year()-F.year())+(L.month()-F.month()),D=F.clone().add(M,d),z=L-D<0,Y=F.clone().add(M+(z?-1:1),d);return+(-(M+(L-D)/(z?D-Y:Y-D))||0)},a:function(E){return E<0?Math.ceil(E)||0:Math.floor(E)},p:function(E){return{M:d,y:u,w:h,d:c,D:g,h:l,m:n,s:a,ms:s,Q:f}[E]||String(E||"").toLowerCase().replace(/s$/,"")},u:function(E){return E===void 0}},S="en",_={};_[S]=b;var A="$isDayjsObject",v=function(E){return E instanceof H||!(!E||!E[A])},q=function E(F,L,M){var D;if(!F)return S;if(typeof F=="string"){var z=F.toLowerCase();_[z]&&(D=z),L&&(_[z]=L,D=z);var Y=F.split("-");if(!D&&Y.length>1)return E(Y[0])}else{var lt=F.name;_[lt]=F,D=lt}return!M&&D&&(S=D),D||!M&&S},I=function(E,F){if(v(E))return E.clone();var L=typeof F=="object"?F:{};return L.date=E,L.args=arguments,new H(L)},R=T;R.l=q,R.i=v,R.w=function(E,F){return I(E,{locale:F.$L,utc:F.$u,x:F.$x,$offset:F.$offset})};var H=(function(){function E(L){this.$L=q(L.locale,null,!0),this.parse(L),this.$x=this.$x||L.x||{},this[A]=!0}var F=E.prototype;return F.parse=function(L){this.$d=(function(M){var D=M.date,z=M.utc;if(D===null)return new Date(NaN);if(R.u(D))return new Date;if(D instanceof Date)return new Date(D);if(typeof D=="string"&&!/Z$/i.test(D)){var Y=D.match(y);if(Y){var lt=Y[2]-1||0,gt=(Y[7]||"0").substring(0,3);return z?new Date(Date.UTC(Y[1],lt,Y[3]||1,Y[4]||0,Y[5]||0,Y[6]||0,gt)):new Date(Y[1],lt,Y[3]||1,Y[4]||0,Y[5]||0,Y[6]||0,gt)}}return new Date(D)})(L),this.init()},F.init=function(){var L=this.$d;this.$y=L.getFullYear(),this.$M=L.getMonth(),this.$D=L.getDate(),this.$W=L.getDay(),this.$H=L.getHours(),this.$m=L.getMinutes(),this.$s=L.getSeconds(),this.$ms=L.getMilliseconds()},F.$utils=function(){return R},F.isValid=function(){return this.$d.toString()!==m},F.isSame=function(L,M){var D=I(L);return this.startOf(M)<=D&&D<=this.endOf(M)},F.isAfter=function(L,M){return I(L)<this.startOf(M)},F.isBefore=function(L,M){return this.endOf(M)<I(L)},F.$g=function(L,M,D){return R.u(L)?this[M]:this.set(D,L)},F.unix=function(){return Math.floor(this.valueOf()/1e3)},F.valueOf=function(){return this.$d.getTime()},F.startOf=function(L,M){var D=this,z=!!R.u(M)||M,Y=R.p(L),lt=function(bt,kt){var wt=R.w(D.$u?Date.UTC(D.$y,kt,bt):new Date(D.$y,kt,bt),D);return z?wt:wt.endOf(c)},gt=function(bt,kt){return R.w(D.toDate()[bt].apply(D.toDate("s"),(z?[0,0,0,0]:[23,59,59,999]).slice(kt)),D)},ut=this.$W,tt=this.$M,Ct=this.$D,X="set"+(this.$u?"UTC":"");switch(Y){case u:return z?lt(1,0):lt(31,11);case d:return z?lt(1,tt):lt(0,tt+1);case h:var ct=this.$locale().weekStart||0,st=(ut<ct?ut+7:ut)-ct;return lt(z?Ct-st:Ct+(6-st),tt);case c:case g:return gt(X+"Hours",0);case l:return gt(X+"Minutes",1);case n:return gt(X+"Seconds",2);case a:return gt(X+"Milliseconds",3);default:return this.clone()}},F.endOf=function(L){return this.startOf(L,!1)},F.$set=function(L,M){var D,z=R.p(L),Y="set"+(this.$u?"UTC":""),lt=(D={},D[c]=Y+"Date",D[g]=Y+"Date",D[d]=Y+"M
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function my(e,t){return fy(e)||py(e,t)||yy(e,t)||gy()}function yy(e,t){if(e){if(typeof e=="string")return Yl(e,t);var r={}.toString.call(e).slice(8,-1);return r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set"?Array.from(e):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Yl(e,t):void 0}}const Lc=Object.entries,Ul=Object.setPrototypeOf,Cy=Object.isFrozen,xy=Object.getPrototypeOf,by=Object.getOwnPropertyDescriptor;let Vt=Object.freeze,ae=Object.seal,Pr=Object.create,Fc=typeof Reflect<"u"&&Reflect,ka=Fc.apply,wa=Fc.construct;Vt||(Vt=function(t){return t});ae||(ae=function(t){return t});ka||(ka=function(t,r){for(var i=arguments.length,o=new Array(i>2?i-2:0),s=2;s<i;s++)o[s-2]=arguments[s];return t.apply(r,o)});wa||(wa=function(t){for(var r=arguments.length,i=new Array(r>1?r-1:0),o=1;o<r;o++)i[o-1]=arguments[o];return new t(...i)});const Er=Et(Array.prototype.forEach),ky=Et(Array.prototype.lastIndexOf),Gl=Et(Array.prototype.pop),Mr=Et(Array.prototype.push),wy=Et(Array.prototype.splice),Gt=Array.isArray,Ei=Et(String.prototype.toLowerCase),ea=Et(String.prototype.toString),jl=Et(String.prototype.match),$r=Et(String.prototype.replace),Xl=Et(String.prototype.indexOf),Ty=Et(String.prototype.trim),Sy=Et(Number.prototype.toString),_y=Et(Boolean.prototype.toString),Vl=typeof BigInt>"u"?null:Et(BigInt.prototype.toString),Zl=typeof Symbol>"u"?null:Et(Symbol.prototype.toString),Bt=Et(Object.prototype.hasOwnProperty),wi=Et(Object.prototype.toString),Pt=Et(RegExp.prototype.test),xo=By(TypeError);function Et(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var r=arguments.length,i=new Array(r>1?r-1:0),o=1;o<r;o++)i[o-1]=arguments[o];return ka(e,t,i)}}function By(e){return function(){for(var t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];return wa(e,r)}}function nt(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Ei;if(Ul&&Ul(e,null),!Gt(t))return e;let i=t.length;for(;i--;){let o=t[i];if(typeof o=="string"){const s=r(o);s!==o&&(Cy(t)||(t[i]=s),o=s)}e[o]=!0}return e}function vy(e){for(let t=0;t<e.length;t++)Bt(e,t)||(e[t]=null);return e}function Jt(e){const t=Pr(null);for(const i of Lc(e)){var r=my(i,2);const o=r[0],s=r[1];Bt(e,o)&&(Gt(s)?t[o]=vy(s):s&&typeof s=="object"&&s.constructor===Object?t[o]=Jt(s):t[o]=s)}return t}function Ly(e){switch(typeof e){case"string":return e;case"number":return Sy(e);case"boolean":return _y(e);case"bigint":return Vl?Vl(e):"0";case"symbol":return Zl?Zl(e):"Symbol()";case"undefined":return wi(e);case"function":case"object":{if(e===null)return wi(e);const t=e,r=hr(t,"toString");if(typeof r=="function"){const i=r(t);return typeof i=="string"?i:wi(i)}return wi(e)}default:return wi(e)}}function hr(e,t){for(;e!==null;){const i=by(e,t);if(i){if(i.get)return Et(i.get);if(typeof i.value=="function")return Et(i.value)}e=xy(e)}function r(){return null}return r}function Fy(e){try{return Pt(e,""),!0}catch{return!1}}const Kl=Vt(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),ra=Vt(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","ent
`+Kt),Ge&&Er([F,L,M],je=>{Kt=$r(Kt,je," ")}),_&&po?_.createHTML(Kt):Kt},t.setConfig=function(){let J=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Ks(J),zs=!0},t.clearConfig=function(){Ar=null,zs=!1},t.isValidAttribute=function(J,w,N){Ar||Ks({});const U=Mt(J),dt=Mt(w);return Pl(U,dt,N)},t.addHook=function(J,w){typeof w=="function"&&Mr(E[J],w)},t.removeHook=function(J,w){if(w!==void 0){const N=ky(E[J],w);return N===-1?void 0:wy(E[J],N,1)[0]}return Gl(E[J])},t.removeHooks=function(J){E[J]=[]},t.removeAllHooks=function(){E=rh()},t}var ni=Ac(),Ec=/^-{3}\s*[\n\r](.*?)[\n\r]-{3}\s*[\n\r]+/s,qi=/%{2}{\s*(?:(\w+)\s*:|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,Hy=/\s*%%.*\n/gm,jr,Mc=(jr=class extends Error{constructor(t){super(t),this.name="UnknownDiagramError"}},p(jr,"UnknownDiagramError"),jr),Cr={},Tn=p(function(e,t){e=e.replace(Ec,"").replace(qi,"").replace(Hy,`
`);for(const[r,{detector:i}]of Object.entries(Cr))if(i(e,t))return r;throw new Mc(`No diagram type detected matching given configuration for text: ${e}`)},"detectType"),Ta=p((...e)=>{for(const{id:t,detector:r,loader:i}of e)$c(t,r,i)},"registerLazyLoadedDiagrams"),$c=p((e,t,r)=>{Cr[e]&&P.warn(`Detector with key ${e} already exists. Overwriting.`),Cr[e]={detector:t,loader:r},P.debug(`Detector with key ${e} added${r?" with loader":""}`)},"addDetector"),Yy=p(e=>Cr[e].loader,"getDiagramLoader"),Sa=p((e,t,{depth:r=2,clobber:i=!1}={})=>{const o={depth:r,clobber:i};return Array.isArray(t)&&!Array.isArray(e)?(t.forEach(s=>Sa(e,s,o)),e):Array.isArray(t)&&Array.isArray(e)?(t.forEach(s=>{e.includes(s)||e.push(s)}),e):e===void 0||r<=0?e!=null&&typeof e=="object"&&typeof t=="object"?Object.assign(e,t):t:(t!==void 0&&typeof e=="object"&&typeof t=="object"&&Object.keys(t).forEach(s=>{typeof t[s]=="object"&&t[s]!==null&&(e[s]===void 0||typeof e[s]=="object")?(e[s]===void 0&&(e[s]=Array.isArray(t[s])?[]:{}),e[s]=Sa(e[s],t[s],{depth:r-1,clobber:i})):(i||typeof e[s]!="object"&&typeof t[s]!="object")&&(e[s]=t[s])}),e)},"assignWithDepth"),Ot=Sa,Le="#ffffff",Fe="#f2f2f2",ot=p((e,t)=>t?x(e,{s:-40,l:10}):x(e,{s:-40,l:-10}),"mkBorder"),Xr,Uy=(Xr=class{constructor(){this.background="#f4f4f4",this.primaryColor="#fff4dd",this.noteBkgColor="#fff5ad",this.noteTextColor="#333",this.THEME_COLOR_LIMIT=12,this.radius=5,this.strokeWidth=1,this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.useGradient=!0,this.dropShadow="drop-shadow( 1px 2px 2px rgba(185,185,185,1))"}updateColors(){if(this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#333"),this.secondaryColor=this.secondaryColor||x(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||x(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||ot(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||ot(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||ot(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||ot(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#333",this.secondaryTextColor=this.secondaryTextColor||B(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||B(this.tertiaryColor),this.lineColor=this.lineColor||B(this.background),this.arrowheadColor=this.arrowheadColor||B(this.background),this.textColor=this.textColor||this.primaryTextColor,this.border2=this.border2||this.tertiaryBorderColor,this.nodeBkg=this.nodeBkg||this.primaryColor,this.mainBkg=this.mainBkg||this.primaryColor,this.nodeBorder=this.nodeBorder||this.primaryBorderColor,this.clusterBkg=this.clusterBkg||this.tertiaryColor,this.clusterBorder=this.clusterBorder||this.tertiaryBorderColor,this.defaultLinkColor=this.defaultLinkColor||this.lineColor,this.titleColor=this.titleColor||this.tertiaryTextColor,this.edgeLabelBackground=this.edgeLabelBackground||(this.darkMode?O(this.secondaryColor,30):this.secondaryColor),this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.actorBorder=this.actorBorder||this.primaryBorderColor,this.actorBkg=this.actorBkg||this.mainBkg,this.actorTextColor=this.actorTextColor||this.primaryTextColor,this.actorLineColor=this.actorLineColor||this.actorBorder,this.labelBoxBkgColor=this.labelBoxBkgColor||this.actorBkg,this.signalColor=this.signalColor||this.textColor,this.signalTextColor=this.signalTextColor||this.textColor,this.labelBoxBorderColor=this.labelBoxBorderColor||this.actorBorder,this.labelTextColor=this.labelTextColor||this.actorTextColor,this.loopTextColor=this.loopTextColor||this.actorTextColor,this.activationBorderColor=this.activationBorderColor||O(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||B(this.lineColor),this.sectionBkgColor=this.sectionBkgColor||this.tertiaryColor,this.altSectionBkgColor=this.altSectionBkgColor||"white",this.s
`)}p(va,"cssStyleSheetToString");var O0=p((e,t,r,i)=>{let o="";return e in Oo&&Oo[e]?o=Oo[e]({...r,svgId:i}):P.warn(`No theme found for ${e}`),` & {
font-family: ${r.fontFamily};
font-size: ${r.fontSize};
fill: ${r.textColor}
}
@keyframes edge-animation-frame {
from {
stroke-dashoffset: 0;
}
}
@keyframes dash {
to {
stroke-dashoffset: 0;
}
}
& .edge-animation-slow {
stroke-dasharray: 9,5 !important;
stroke-dashoffset: 900;
animation: dash 50s linear infinite;
stroke-linecap: round;
}
& .edge-animation-fast {
stroke-dasharray: 9,5 !important;
stroke-dashoffset: 900;
animation: dash 20s linear infinite;
stroke-linecap: round;
}
/* Classes common for multiple diagrams */
& .error-icon {
fill: ${r.errorBkgColor};
}
& .error-text {
fill: ${r.errorTextColor};
stroke: ${r.errorTextColor};
}
& .edge-thickness-normal {
stroke-width: ${r.strokeWidth??1}px;
}
& .edge-thickness-thick {
stroke-width: 3.5px
}
& .edge-pattern-solid {
stroke-dasharray: 0;
}
& .edge-thickness-invisible {
stroke-width: 0;
fill: none;
}
& .edge-pattern-dashed{
stroke-dasharray: 3;
}
.edge-pattern-dotted {
stroke-dasharray: 2;
}
& .marker {
fill: ${r.lineColor};
stroke: ${r.lineColor};
}
& .marker.cross {
stroke: ${r.lineColor};
}
& svg {
font-family: ${r.fontFamily};
font-size: ${r.fontSize};
}
& p {
margin: 0
}
${o}
.node .neo-node {
stroke: ${r.nodeBorder};
}
[data-look="neo"].node rect, [data-look="neo"].cluster rect, [data-look="neo"].node polygon {
stroke: ${r.useGradient?"url("+i+"-gradient)":r.nodeBorder};
filter: ${r.dropShadow?r.dropShadow.replace("url(#drop-shadow)",`url(${i}-drop-shadow)`):"none"};
}
[data-look="neo"].node path {
stroke: ${r.useGradient?"url("+i+"-gradient)":r.nodeBorder};
stroke-width: ${r.strokeWidth??1}px;
}
[data-look="neo"].node .outer-path {
filter: ${r.dropShadow?r.dropShadow.replace("url(#drop-shadow)",`url(${i}-drop-shadow)`):"none"};
}
[data-look="neo"].node .neo-line path {
stroke: ${r.nodeBorder};
filter: none;
}
[data-look="neo"].node circle{
stroke: ${r.useGradient?"url("+i+"-gradient)":r.nodeBorder};
filter: ${r.dropShadow?r.dropShadow.replace("url(#drop-shadow)",`url(${i}-drop-shadow)`):"none"};
}
[data-look="neo"].node circle .state-start{
fill: #000000;
}
[data-look="neo"].icon-shape .icon {
fill: ${r.useGradient?"url("+i+"-gradient)":r.nodeBorder};
filter: ${r.dropShadow?r.dropShadow.replace("url(#drop-shadow)",`url(${i}-drop-shadow)`):"none"};
}
[data-look="neo"].icon-shape .icon-neo path {
stroke: ${r.useGradient?"url("+i+"-gradient)":r.nodeBorder};
filter: ${r.dropShadow?r.dropShadow.replace("url(#drop-shadow)",`url(${i}-drop-shadow)`):"none"};
}
${t}
`},"getStyles"),I0=p((e,t)=>{t!==void 0&&(Oo[e]=t)},"addStylesForDiagram"),D0=O0,Xc={};sy(Xc,{clear:()=>R0,getAccDescription:()=>W0,getAccTitle:()=>N0,getDiagramTitle:()=>H0,setAccDescription:()=>q0,setAccTitle:()=>P0,setDiagramTitle:()=>z0});var Sn="",_n="",Bn="",vn=p(e=>ye(e,St()),"sanitizeText"),R0=p(()=>{Sn="",Bn="",_n=""},"clear"),P0=p(e=>{Sn=vn(e).replace(/^\s+/g,"")},"setAccTitle"),N0=p(()=>Sn,"getAccTitle"),q0=p(e=>{Bn=vn(e).replace(/\n\s+/g,`
`)},"setAccDescription"),W0=p(()=>Bn,"getAccDescription"),z0=p(e=>{_n=vn(e)},"setDiagramTitle"),H0=p(()=>_n,"getDiagramTitle"),nh=P,Y0=wn,mt=St,Ov=Nc,Iv=li,Ln=p(e=>ye(e,mt()),"sanitizeText"),U0=$0,G0=p(()=>Xc,"getCommonDb"),Vo={},Zo=p((e,t,r)=>{Vo[e]&&nh.warn(`Diagram with id ${e} already registered. Overwriting.`),Vo[e]=t,r&&$c(e,r),I0(e,t.styles),t.injectUtils?.(nh,Y0,mt,Ln,U0,G0(),()=>{})},"registerDiagram"),La=p(e=>{if(e in Vo)return Vo[e];throw new j0(e)},"getDiagram"),si,j0=(si=class extends Error{constructor(t){super(`Diagram ${t} not found.`)}},p(si,"DiagramNotFoundError"),si),X0={value:()=>{}};function Vc(){for(var e=0,t=arguments.length,r={},i;e<t;++e){if(!(i=arguments[e]+"")||i in r||/[\s.]/.test(i))throw new Error("illegal type: "+i);r[i]=[]}return new Io(r)}function Io(e){this._=e}function V0(e,t){return e.trim().split(/^|\s+/).map(function(r){var i="",o=r.indexOf(".");if(o>=0&&(i=r.slice(o+1),r=r.slice(0,o)),r&&!t.hasOwnProperty(r))throw new Error("unknown type: "+r);return{type:r,name:i}})}Io.prototype=Vc.prototype={constructor:Io,on:function(e,t){var r=this._,i=V0(e+"",r),o,s=-1,a=i.length;if(arguments.length<2){for(;++s<a;)if((o=(e=i[s]).type)&&(o=Z0(r[o],e.name)))return o;return}if(t!=null&&typeof t!="function")throw new Error("invalid callback: "+t);for(;++s<a;)if(o=(e=i[s]).type)r[o]=lh(r[o],e.name,t);else if(t==null)for(o in r)r[o]=lh(r[o],e.name,null);return this},copy:function(){var e={},t=this._;for(var r in t)e[r]=t[r].slice();return new Io(e)},call:function(e,t){if((o=arguments.length-2)>0)for(var r=new Array(o),i=0,o,s;i<o;++i)r[i]=arguments[i+2];if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(s=this._[e],i=0,o=s.length;i<o;++i)s[i].value.apply(t,r)},apply:function(e,t,r){if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(var i=this._[e],o=0,s=i.length;o<s;++o)i[o].value.apply(t,r)}};function Z0(e,t){for(var r=0,i=e.length,o;r<i;++r)if((o=e[r]).name===t)return o.value}function lh(e,t,r){for(var i=0,o=e.length;i<o;++i)if(e[i].name===t){e[i]=X0,e=e.slice(0,i).concat(e.slice(i+1));break}return r!=null&&e.push({name:t,value:r}),e}var Fa="http://www.w3.org/1999/xhtml";const hh={svg:"http://www.w3.org/2000/svg",xhtml:Fa,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function _s(e){var t=e+="",r=t.indexOf(":");return r>=0&&(t=e.slice(0,r))!=="xmlns"&&(e=e.slice(r+1)),hh.hasOwnProperty(t)?{space:hh[t],local:e}:e}function K0(e){return function(){var t=this.ownerDocument,r=this.namespaceURI;return r===Fa&&t.documentElement.namespaceURI===Fa?t.createElement(e):t.createElementNS(r,e)}}function Q0(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function Zc(e){var t=_s(e);return(t.local?Q0:K0)(t)}function J0(){}function Fn(e){return e==null?J0:function(){return this.querySelector(e)}}function tC(e){typeof e!="function"&&(e=Fn(e));for(var t=this._groups,r=t.length,i=new Array(r),o=0;o<r;++o)for(var s=t[o],a=s.length,n=i[o]=new Array(a),l,c,h=0;h<a;++h)(l=s[h])&&(c=e.call(l,l.__data__,h,s))&&("__data__"in l&&(c.__data__=l.__data__),n[h]=c);return new oe(i,this._parents)}function eC(e){return e==null?[]:Array.isArray(e)?e:Array.from(e)}function rC(){return[]}function Kc(e){return e==null?rC:function(){return this.querySelectorAll(e)}}function iC(e){return function(){return eC(e.apply(this,arguments))}}function oC(e){typeof e=="function"?e=iC(e):e=Kc(e);for(var t=this._groups,r=t.length,i=[],o=[],s=0;s<r;++s)for(var a=t[s],n=a.length,l,c=0;c<n;++c)(l=a[c])&&(i.push(e.call(l,l.__data__,c,a)),o.push(l));return new oe(i,o)}function Qc(e){return function(){return this.matches(e)}}function Jc(e){return function(t){return t.matches(e)}}var sC=Array.prototype.find;function aC(e){return function(){return sC.call(this.children,e)}}function nC(){return this.firstElementChild}function lC(e){return this.select(e==null?nC:aC(typeof e=="function"?e:Jc(e)))}var hC=Array.prototype.filter;function cC(){return Array.from(this.children)}function dC(e){return function(){return hC.call(this
`+e.mark.snippet),i+" "+r):i}p(zn,"formatError");function di(e,t){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=t,this.message=zn(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}p(di,"YAMLException$1");di.prototype=Object.create(Error.prototype);di.prototype.constructor=di;di.prototype.toString=p(function(t){return this.name+": "+zn(this,t)},"toString");var ee=di;function Po(e,t,r,i,o){var s="",a="",n=Math.floor(o/2)-1;return i-t>n&&(s=" ... ",t=i-n+s.length),r-i>n&&(a=" ...",r=i+n-a.length),{str:s+e.slice(t,r).replace(/\t/g,"→")+a,pos:i-t+s.length}}p(Po,"getLine");function No(e,t){return It.repeat(" ",t-e.length)+e}p(No,"padStart");function Vd(e,t){if(t=Object.create(t||null),!e.buffer)return null;t.maxLength||(t.maxLength=79),typeof t.indent!="number"&&(t.indent=1),typeof t.linesBefore!="number"&&(t.linesBefore=3),typeof t.linesAfter!="number"&&(t.linesAfter=2);for(var r=/\r?\n|\r|\0/g,i=[0],o=[],s,a=-1;s=r.exec(e.buffer);)o.push(s.index),i.push(s.index+s[0].length),e.position<=s.index&&a<0&&(a=i.length-2);a<0&&(a=i.length-1);var n="",l,c,h=Math.min(e.line+t.linesAfter,o.length).toString().length,d=t.maxLength-(t.indent+h+3);for(l=1;l<=t.linesBefore&&!(a-l<0);l++)c=Po(e.buffer,i[a-l],o[a-l],e.position-(i[a]-i[a-l]),d),n=It.repeat(" ",t.indent)+No((e.line-l+1).toString(),h)+" | "+c.str+`
`+n;for(c=Po(e.buffer,i[a],o[a],e.position,d),n+=It.repeat(" ",t.indent)+No((e.line+1).toString(),h)+" | "+c.str+`
`,n+=It.repeat("-",t.indent+h+3+c.pos)+`^
`,l=1;l<=t.linesAfter&&!(a+l>=o.length);l++)c=Po(e.buffer,i[a+l],o[a+l],e.position-(i[a]-i[a+l]),d),n+=It.repeat(" ",t.indent)+No((e.line+l+1).toString(),h)+" | "+c.str+`
`;return n.replace(/\n$/,"")}p(Vd,"makeSnippet");var Ek=Vd,Mk=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],$k=["scalar","sequence","mapping"];function Zd(e){var t={};return e!==null&&Object.keys(e).forEach(function(r){e[r].forEach(function(i){t[String(i)]=r})}),t}p(Zd,"compileStyleAliases");function Kd(e,t){if(t=t||{},Object.keys(t).forEach(function(r){if(Mk.indexOf(r)===-1)throw new ee('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=Zd(t.styleAliases||null),$k.indexOf(this.kind)===-1)throw new ee('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}p(Kd,"Type$1");var Ht=Kd;function Na(e,t){var r=[];return e[t].forEach(function(i){var o=r.length;r.forEach(function(s,a){s.tag===i.tag&&s.kind===i.kind&&s.multi===i.multi&&(o=a)}),r[o]=i}),r}p(Na,"compileList");function Qd(){var e={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},t,r;function i(o){o.multi?(e.multi[o.kind].push(o),e.multi.fallback.push(o)):e[o.kind][o.tag]=e.fallback[o.tag]=o}for(p(i,"collectType"),t=0,r=arguments.length;t<r;t+=1)arguments[t].forEach(i);return e}p(Qd,"compileMap");function as(e){return this.extend(e)}p(as,"Schema$1");as.prototype.extend=p(function(t){var r=[],i=[];if(t instanceof Ht)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 ee("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");r.forEach(function(s){if(!(s instanceof Ht))throw new ee("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(s.loadKind&&s.loadKind!=="scalar")throw new ee("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(s.multi)throw new ee("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),i.forEach(function(s){if(!(s instanceof Ht))throw new ee("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var o=Object.create(as.prototype);return o.implicit=(this.implicit||[]).concat(r),o.explicit=(this.explicit||[]).concat(i),o.compiledImplicit=Na(o,"implicit"),o.compiledExplicit=Na(o,"explicit"),o.compiledTypeMap=Qd(o.compiledImplicit,o.compiledExplicit),o},"extend");var Ok=as,Ik=new Ht("tag:yaml.org,2002:str",{kind:"scalar",construct:p(function(e){return e!==null?e:""},"construct")}),Dk=new Ht("tag:yaml.org,2002:seq",{kind:"sequence",construct:p(function(e){return e!==null?e:[]},"construct")}),Rk=new Ht("tag:yaml.org,2002:map",{kind:"mapping",construct:p(function(e){return e!==null?e:{}},"construct")}),Pk=new Ok({explicit:[Ik,Dk,Rk]});function Jd(e){if(e===null)return!0;var t=e.length;return t===1&&e==="~"||t===4&&(e==="null"||e==="Null"||e==="NULL")}p(Jd,"resolveYamlNull");function tu(){return null}p(tu,"constructYamlNull");function eu(e){return e===null}p(eu,"isNull");var Nk=new Ht("tag:yaml.org,2002:null",{kind:"scalar",resolve:Jd,construct:tu,predicate:eu,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 ru(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(ru,"resolveYamlBoolean");function iu(e){return e==="true"||e==="True"||e==="TRU
\r`;function wu(e){if(e===null)return!1;var t,r,i=0,o=e.length,s=Hn;for(r=0;r<o;r++)if(t=s.indexOf(e.charAt(r)),!(t>64)){if(t<0)return!1;i+=6}return i%8===0}p(wu,"resolveYamlBinary");function Tu(e){var t,r,i=e.replace(/[\r\n=]/g,""),o=i.length,s=Hn,a=0,n=[];for(t=0;t<o;t++)t%4===0&&t&&(n.push(a>>16&255),n.push(a>>8&255),n.push(a&255)),a=a<<6|s.indexOf(i.charAt(t));return r=o%4*6,r===0?(n.push(a>>16&255),n.push(a>>8&255),n.push(a&255)):r===18?(n.push(a>>10&255),n.push(a>>2&255)):r===12&&n.push(a>>4&255),new Uint8Array(n)}p(Tu,"constructYamlBinary");function Su(e){var t="",r=0,i,o,s=e.length,a=Hn;for(i=0;i<s;i++)i%3===0&&i&&(t+=a[r>>18&63],t+=a[r>>12&63],t+=a[r>>6&63],t+=a[r&63]),r=(r<<8)+e[i];return o=s%3,o===0?(t+=a[r>>18&63],t+=a[r>>12&63],t+=a[r>>6&63],t+=a[r&63]):o===2?(t+=a[r>>10&63],t+=a[r>>4&63],t+=a[r<<2&63],t+=a[64]):o===1&&(t+=a[r>>2&63],t+=a[r<<4&63],t+=a[64],t+=a[64]),t}p(Su,"representYamlBinary");function _u(e){return Object.prototype.toString.call(e)==="[object Uint8Array]"}p(_u,"isBinary");var Xk=new Ht("tag:yaml.org,2002:binary",{kind:"scalar",resolve:wu,construct:Tu,predicate:_u,represent:Su}),Vk=Object.prototype.hasOwnProperty,Zk=Object.prototype.toString;function Bu(e){if(e===null)return!0;var t=[],r,i,o,s,a,n=e;for(r=0,i=n.length;r<i;r+=1){if(o=n[r],a=!1,Zk.call(o)!=="[object Object]")return!1;for(s in o)if(Vk.call(o,s))if(!a)a=!0;else return!1;if(!a)return!1;if(t.indexOf(s)===-1)t.push(s);else return!1}return!0}p(Bu,"resolveYamlOmap");function vu(e){return e!==null?e:[]}p(vu,"constructYamlOmap");var Kk=new Ht("tag:yaml.org,2002:omap",{kind:"sequence",resolve:Bu,construct:vu}),Qk=Object.prototype.toString;function Lu(e){if(e===null)return!0;var t,r,i,o,s,a=e;for(s=new Array(a.length),t=0,r=a.length;t<r;t+=1){if(i=a[t],Qk.call(i)!=="[object Object]"||(o=Object.keys(i),o.length!==1))return!1;s[t]=[o[0],i[o[0]]]}return!0}p(Lu,"resolveYamlPairs");function Fu(e){if(e===null)return[];var t,r,i,o,s,a=e;for(s=new Array(a.length),t=0,r=a.length;t<r;t+=1)i=a[t],o=Object.keys(i),s[t]=[o[0],i[o[0]]];return s}p(Fu,"constructYamlPairs");var Jk=new Ht("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:Lu,construct:Fu}),t1=Object.prototype.hasOwnProperty;function Au(e){if(e===null)return!0;var t,r=e;for(t in r)if(t1.call(r,t)&&r[t]!==null)return!1;return!0}p(Au,"resolveYamlSet");function Eu(e){return e!==null?e:{}}p(Eu,"constructYamlSet");var e1=new Ht("tag:yaml.org,2002:set",{kind:"mapping",resolve:Au,construct:Eu}),Mu=Uk.extend({implicit:[Gk,jk],explicit:[Xk,Kk,Jk,e1]}),er=Object.prototype.hasOwnProperty,ns=1,$u=2,Ou=3,ls=4,ha=1,r1=2,Ah=3,i1=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,o1=/[\x85\u2028\u2029]/,s1=/[,\[\]\{\}]/,Iu=/^(?:!|!!|![a-z\-]+!)$/i,Du=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function qa(e){return Object.prototype.toString.call(e)}p(qa,"_class");function ge(e){return e===10||e===13}p(ge,"is_EOL");function Je(e){return e===9||e===32}p(Je,"is_WHITE_SPACE");function jt(e){return e===9||e===32||e===10||e===13}p(jt,"is_WS_OR_EOL");function pr(e){return e===44||e===91||e===93||e===123||e===125}p(pr,"is_FLOW_INDICATOR");function Ru(e){var t;return 48<=e&&e<=57?e-48:(t=e|32,97<=t&&t<=102?t-97+10:-1)}p(Ru,"fromHexCode");function Pu(e){return e===120?2:e===117?4:e===85?8:0}p(Pu,"escapedHexLen");function Nu(e){return 48<=e&&e<=57?e-48:-1}p(Nu,"fromDecimalCode");function Wa(e){return e===48?"\0":e===97?"\x07":e===98?"\b":e===116||e===9?" ":e===110?`
`: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(Wa,"simpleEscapeSequence");function qu(e){return e<=65535?String.fromCharCode(e):String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}p(qu,"charFromCodepoint");function Yn(e,t,r){t==="__proto__"?Object.defineProperty(e,t,{configurable:!0,enumerable:!0,writable:!0,value:r}):e[t]=r}p(Yn,"setProperty");var Wu=new Array(256),zu=new Array(256);for(nr=0;nr<256;nr++)Wu[nr]=Wa(nr)?1:0,zu[nr]=Wa(nr);var nr;function Hu(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||Mu,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(Hu,"State$1");function Un(e,t){var r={name:e.filename,buffer:e.input.slice(0,-1),position:e.position,line:e.line,column:e.position-e.lineStart};return r.snippet=Ek(r),new ee(t,r)}p(Un,"generateError");function Q(e,t){throw Un(e,t)}p(Q,"throwError");function Zi(e,t){e.onWarning&&e.onWarning.call(null,Un(e,t))}p(Zi,"throwWarning");var Eh={YAML:p(function(t,r,i){var o,s,a;t.version!==null&&Q(t,"duplication of %YAML directive"),i.length!==1&&Q(t,"YAML directive accepts exactly one argument"),o=/^([0-9]+)\.([0-9]+)$/.exec(i[0]),o===null&&Q(t,"ill-formed argument of the YAML directive"),s=parseInt(o[1],10),a=parseInt(o[2],10),s!==1&&Q(t,"unacceptable YAML version of the document"),t.version=i[0],t.checkLineBreaks=a<2,a!==1&&a!==2&&Zi(t,"unsupported YAML version of the document")},"handleYamlDirective"),TAG:p(function(t,r,i){var o,s;i.length!==2&&Q(t,"TAG directive accepts exactly two arguments"),o=i[0],s=i[1],Iu.test(o)||Q(t,"ill-formed tag handle (first argument) of the TAG directive"),er.call(t.tagMap,o)&&Q(t,'there is a previously declared suffix for "'+o+'" tag handle'),Du.test(s)||Q(t,"ill-formed tag prefix (second argument) of the TAG directive");try{s=decodeURIComponent(s)}catch{Q(t,"tag prefix is malformed: "+s)}t.tagMap[o]=s},"handleTagDirective")};function Ne(e,t,r,i){var o,s,a,n;if(t<r){if(n=e.input.slice(t,r),i)for(o=0,s=n.length;o<s;o+=1)a=n.charCodeAt(o),a===9||32<=a&&a<=1114111||Q(e,"expected valid JSON character");else i1.test(n)&&Q(e,"the stream contains non-printable characters");e.result+=n}}p(Ne,"captureSegment");function za(e,t,r,i){var o,s,a,n;for(It.isObject(r)||Q(e,"cannot merge mappings; the provided source object is unacceptable"),o=Object.keys(r),a=0,n=o.length;a<n;a+=1)s=o[a],er.call(t,s)||(Yn(t,s,r[s]),i[s]=!0)}p(za,"mergeMappings");function gr(e,t,r,i,o,s,a,n,l){var c,h;if(Array.isArray(o))for(o=Array.prototype.slice.call(o),c=0,h=o.length;c<h;c+=1)Array.isArray(o[c])&&Q(e,"nested arrays are not supported inside keys"),typeof o=="object"&&qa(o[c])==="[object Object]"&&(o[c]="[object Object]");if(typeof o=="object"&&qa(o)==="[object Object]"&&(o="[object Object]"),o=String(o),t===null&&(t={}),i==="tag:yaml.org,2002:merge")if(Array.isArray(s))for(c=0,h=s.length;c<h;c+=1)za(e,t,s[c],r);else za(e,t,s,r);else!e.json&&!er.call(r,o)&&er.call(t,o)&&(e.line=a||e.line,e.lineStart=n||e.lineStart,e.position=l||e.position,Q(e,"duplicated mapping key")),Yn(t,o,s),delete r[o];return t}p(gr,"storeMappingPair");function As(e){var t;t=e.input.charCodeAt(e.position),t===10?e.position++:t===13?(e.position++,e.input.charCodeAt(e.position)===10&&e.position++):Q(e,"a line break is expected"),e.line+=1,e.lineStart=e.position,e.firstTabInLine=-1}p(As,"readLineBreak");function vt(e,t,r){for(var i=0,o=e.input.charCodeAt(e.position);o!==0;){for(;Je(o);)o===9&&e.firstTabInLine===-1&&(e.firstTabInLine=e.position),o=e.input.charCodeAt(++e.position);if(t&&o===35)do o=e.input.charCodeAt(++e.position);while(o!==10&&o!==13&&o!==0);if(ge(o))for(As(e),o=e.input.charCodeAt(e.position),i++,e.lineIndent=0;o===32;)e.lineIndent++,o=e.input.charCodeAt(++e.position);else bre
`,t-1))}p(Es,"writeFoldedLines");function Yu(e,t,r){var i,o,s,a,n,l,c,h,d=e.kind,f=e.result,u;if(u=e.input.charCodeAt(e.position),jt(u)||pr(u)||u===35||u===38||u===42||u===33||u===124||u===62||u===39||u===34||u===37||u===64||u===96||(u===63||u===45)&&(o=e.input.charCodeAt(e.position+1),jt(o)||r&&pr(o)))return!1;for(e.kind="scalar",e.result="",s=a=e.position,n=!1;u!==0;){if(u===58){if(o=e.input.charCodeAt(e.position+1),jt(o)||r&&pr(o))break}else if(u===35){if(i=e.input.charCodeAt(e.position-1),jt(i))break}else{if(e.position===e.lineStart&&no(e)||r&&pr(u))break;if(ge(u))if(l=e.line,c=e.lineStart,h=e.lineIndent,vt(e,!1,-1),e.lineIndent>=t){n=!0,u=e.input.charCodeAt(e.position);continue}else{e.position=a,e.line=l,e.lineStart=c,e.lineIndent=h;break}}n&&(Ne(e,s,a,!1),Es(e,e.line-l),s=a=e.position,n=!1),Je(u)||(a=e.position+1),u=e.input.charCodeAt(++e.position)}return Ne(e,s,a,!1),e.result?!0:(e.kind=d,e.result=f,!1)}p(Yu,"readPlainScalar");function Uu(e,t){var r,i,o;if(r=e.input.charCodeAt(e.position),r!==39)return!1;for(e.kind="scalar",e.result="",e.position++,i=o=e.position;(r=e.input.charCodeAt(e.position))!==0;)if(r===39)if(Ne(e,i,e.position,!0),r=e.input.charCodeAt(++e.position),r===39)i=e.position,e.position++,o=e.position;else return!0;else ge(r)?(Ne(e,i,o,!0),Es(e,vt(e,!1,t)),i=o=e.position):e.position===e.lineStart&&no(e)?Q(e,"unexpected end of the document within a single quoted scalar"):(e.position++,o=e.position);Q(e,"unexpected end of the stream within a single quoted scalar")}p(Uu,"readSingleQuotedScalar");function Gu(e,t){var r,i,o,s,a,n;if(n=e.input.charCodeAt(e.position),n!==34)return!1;for(e.kind="scalar",e.result="",e.position++,r=i=e.position;(n=e.input.charCodeAt(e.position))!==0;){if(n===34)return Ne(e,r,e.position,!0),e.position++,!0;if(n===92){if(Ne(e,r,e.position,!0),n=e.input.charCodeAt(++e.position),ge(n))vt(e,!1,t);else if(n<256&&Wu[n])e.result+=zu[n],e.position++;else if((a=Pu(n))>0){for(o=a,s=0;o>0;o--)n=e.input.charCodeAt(++e.position),(a=Ru(n))>=0?s=(s<<4)+a:Q(e,"expected hexadecimal character");e.result+=qu(s),e.position++}else Q(e,"unknown escape sequence");r=i=e.position}else ge(n)?(Ne(e,r,i,!0),Es(e,vt(e,!1,t)),r=i=e.position):e.position===e.lineStart&&no(e)?Q(e,"unexpected end of the document within a double quoted scalar"):(e.position++,i=e.position)}Q(e,"unexpected end of the stream within a double quoted scalar")}p(Gu,"readDoubleQuotedScalar");function ju(e,t){var r=!0,i,o,s,a=e.tag,n,l=e.anchor,c,h,d,f,u,g=Object.create(null),m,y,C,b;if(b=e.input.charCodeAt(e.position),b===91)h=93,u=!1,n=[];else if(b===123)h=125,u=!0,n={};else return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=n),b=e.input.charCodeAt(++e.position);b!==0;){if(vt(e,!0,t),b=e.input.charCodeAt(e.position),b===h)return e.position++,e.tag=a,e.anchor=l,e.kind=u?"mapping":"sequence",e.result=n,!0;r?b===44&&Q(e,"expected the node content, but found ','"):Q(e,"missed comma between flow collection entries"),y=m=C=null,d=f=!1,b===63&&(c=e.input.charCodeAt(e.position+1),jt(c)&&(d=f=!0,e.position++,vt(e,!0,t))),i=e.line,o=e.lineStart,s=e.position,kr(e,t,ns,!1,!0),y=e.tag,m=e.result,vt(e,!0,t),b=e.input.charCodeAt(e.position),(f||e.line===i)&&b===58&&(d=!0,b=e.input.charCodeAt(++e.position),vt(e,!0,t),kr(e,t,ns,!1,!0),C=e.result),u?gr(e,n,g,y,m,C,i,o,s):d?n.push(gr(e,null,g,y,m,C,i,o,s)):n.push(m),vt(e,!0,t),b=e.input.charCodeAt(e.position),b===44?(r=!0,b=e.input.charCodeAt(++e.position)):r=!1}Q(e,"unexpected end of the stream within a flow collection")}p(ju,"readFlowCollection");function Xu(e,t){var r,i,o=ha,s=!1,a=!1,n=t,l=0,c=!1,h,d;if(d=e.input.charCodeAt(e.position),d===124)i=!1;else if(d===62)i=!0;else return!1;for(e.kind="scalar",e.result="";d!==0;)if(d=e.input.charCodeAt(++e.position),d===43||d===45)ha===o?o=d===43?Ah:r1:Q(e,"repeat of a chomping mode identifier");else if((h=Nu(d))>=0)h===0?Q(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):a?Q(e,"repeat of an indentation width identifier"):(n=t+h-1,a=!0);else break;if(Je(d)){do d=e.input.charCodeAt(++e.position);while(Je(d));if(d===35)do d=
`,s?1+l:l):o===ha&&s&&(e.result+=`
`);break}for(i?Je(d)?(c=!0,e.result+=It.repeat(`
`,s?1+l:l)):c?(c=!1,e.result+=It.repeat(`
`,l+1)):l===0?s&&(e.result+=" "):e.result+=It.repeat(`
`,l):e.result+=It.repeat(`
`,s?1+l:l),s=!0,a=!0,l=0,r=e.position;!ge(d)&&d!==0;)d=e.input.charCodeAt(++e.position);Ne(e,r,e.position,!1)}return!0}p(Xu,"readBlockScalar");function Ha(e,t){var r,i=e.tag,o=e.anchor,s=[],a,n=!1,l;if(e.firstTabInLine!==-1)return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=s),l=e.input.charCodeAt(e.position);l!==0&&(e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,Q(e,"tab characters must not be used in indentation")),!(l!==45||(a=e.input.charCodeAt(e.position+1),!jt(a))));){if(n=!0,e.position++,vt(e,!0,-1)&&e.lineIndent<=t){s.push(null),l=e.input.charCodeAt(e.position);continue}if(r=e.line,kr(e,t,Ou,!1,!0),s.push(e.result),vt(e,!0,-1),l=e.input.charCodeAt(e.position),(e.line===r||e.lineIndent>t)&&l!==0)Q(e,"bad indentation of a sequence entry");else if(e.lineIndent<t)break}return n?(e.tag=i,e.anchor=o,e.kind="sequence",e.result=s,!0):!1}p(Ha,"readBlockSequence");function Vu(e,t,r){var i,o,s,a,n,l,c=e.tag,h=e.anchor,d={},f=Object.create(null),u=null,g=null,m=null,y=!1,C=!1,b;if(e.firstTabInLine!==-1)return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=d),b=e.input.charCodeAt(e.position);b!==0;){if(!y&&e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,Q(e,"tab characters must not be used in indentation")),i=e.input.charCodeAt(e.position+1),s=e.line,(b===63||b===58)&&jt(i))b===63?(y&&(gr(e,d,f,u,g,null,a,n,l),u=g=m=null),C=!0,y=!0,o=!0):y?(y=!1,o=!0):Q(e,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),e.position+=1,b=i;else{if(a=e.line,n=e.lineStart,l=e.position,!kr(e,r,$u,!1,!0))break;if(e.line===s){for(b=e.input.charCodeAt(e.position);Je(b);)b=e.input.charCodeAt(++e.position);if(b===58)b=e.input.charCodeAt(++e.position),jt(b)||Q(e,"a whitespace character is expected after the key-value separator within a block mapping"),y&&(gr(e,d,f,u,g,null,a,n,l),u=g=m=null),C=!0,y=!1,o=!1,u=e.tag,g=e.result;else if(C)Q(e,"can not read an implicit mapping pair; a colon is missed");else return e.tag=c,e.anchor=h,!0}else if(C)Q(e,"can not read a block mapping entry; a multiline key may not be an implicit key");else return e.tag=c,e.anchor=h,!0}if((e.line===s||e.lineIndent>t)&&(y&&(a=e.line,n=e.lineStart,l=e.position),kr(e,t,ls,!0,o)&&(y?g=e.result:m=e.result),y||(gr(e,d,f,u,g,m,a,n,l),u=g=m=null),vt(e,!0,-1),b=e.input.charCodeAt(e.position)),(e.line===s||e.lineIndent>t)&&b!==0)Q(e,"bad indentation of a mapping entry");else if(e.lineIndent<t)break}return y&&gr(e,d,f,u,g,null,a,n,l),C&&(e.tag=c,e.anchor=h,e.kind="mapping",e.result=d),C}p(Vu,"readBlockMapping");function Zu(e){var t,r=!1,i=!1,o,s,a;if(a=e.input.charCodeAt(e.position),a!==33)return!1;if(e.tag!==null&&Q(e,"duplication of a tag property"),a=e.input.charCodeAt(++e.position),a===60?(r=!0,a=e.input.charCodeAt(++e.position)):a===33?(i=!0,o="!!",a=e.input.charCodeAt(++e.position)):o="!",t=e.position,r){do a=e.input.charCodeAt(++e.position);while(a!==0&&a!==62);e.position<e.length?(s=e.input.slice(t,e.position),a=e.input.charCodeAt(++e.position)):Q(e,"unexpected end of the stream within a verbatim tag")}else{for(;a!==0&&!jt(a);)a===33&&(i?Q(e,"tag suffix cannot contain exclamation marks"):(o=e.input.slice(t-1,e.position+1),Iu.test(o)||Q(e,"named tag handle cannot contain such characters"),i=!0,t=e.position+1)),a=e.input.charCodeAt(++e.position);s=e.input.slice(t,e.position),s1.test(s)&&Q(e,"tag suffix cannot contain flow indicator characters")}s&&!Du.test(s)&&Q(e,"tag name cannot contain such characters: "+s);try{s=decodeURIComponent(s)}catch{Q(e,"tag name is malformed: "+s)}return r?e.tag=s:er.call(e.tagMap,o)?e.tag=e.tagMap[o]+s:o==="!"?e.tag="!"+s:o==="!!"?e.tag="tag:yaml.org,2002:"+s:Q(e,'undeclared tag handle "'+o+'"'),!0}p(Zu,"readTagProperty");function Ku(e){var t,r;if(r=e.input.charCodeAt(e.position),r!==38)return!1;for(e.anchor!==null&&Q(e,"duplication of an anchor property"),r=e.input.charCodeAt(++e.position),t=e.position;r!==0&&!jt(r)&&!pr(r);)r=e.input.charCodeAt(++e.position);return e.position===t&&Q(e,"name of an anchor node must contain at least one character"),e.anchor=e.input.slice(t,e.position),!0}p(Ku,"r
`),e.charCodeAt(0)===65279&&(e=e.slice(1)));var r=new Hu(e,t),i=e.indexOf("\0");for(i!==-1&&(r.position=i,Q(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;)Ju(r);return r.documents}p(Gn,"loadDocuments");function a1(e,t,r){t!==null&&typeof t=="object"&&typeof r>"u"&&(r=t,t=null);var i=Gn(e,r);if(typeof t!="function")return i;for(var o=0,s=i.length;o<s;o+=1)t(i[o])}p(a1,"loadAll$1");function tf(e,t){var r=Gn(e,t);if(r.length!==0){if(r.length===1)return r[0];throw new ee("expected a single document in the stream, but found more")}}p(tf,"load$1");var n1=tf,l1={load:n1},ef=Object.prototype.toString,rf=Object.prototype.hasOwnProperty,jn=65279,h1=9,Ki=10,c1=13,d1=32,u1=33,f1=34,Ya=35,p1=37,g1=38,m1=39,y1=42,of=44,C1=45,hs=58,x1=61,b1=62,k1=63,w1=64,sf=91,af=93,T1=96,nf=123,S1=124,lf=125,Yt={};Yt[0]="\\0";Yt[7]="\\a";Yt[8]="\\b";Yt[9]="\\t";Yt[10]="\\n";Yt[11]="\\v";Yt[12]="\\f";Yt[13]="\\r";Yt[27]="\\e";Yt[34]='\\"';Yt[92]="\\\\";Yt[133]="\\N";Yt[160]="\\_";Yt[8232]="\\L";Yt[8233]="\\P";var _1=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],B1=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function hf(e,t){var r,i,o,s,a,n,l;if(t===null)return{};for(r={},i=Object.keys(t),o=0,s=i.length;o<s;o+=1)a=i[o],n=String(t[a]),a.slice(0,2)==="!!"&&(a="tag:yaml.org,2002:"+a.slice(2)),l=e.compiledTypeMap.fallback[a],l&&rf.call(l.styleAliases,n)&&(n=l.styleAliases[n]),r[a]=n;return r}p(hf,"compileStyleMap");function cf(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 ee("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+r+It.repeat("0",i-t.length)+t}p(cf,"encodeHex");var v1=1,Qi=2;function df(e){this.schema=e.schema||Mu,this.indent=Math.max(1,e.indent||2),this.noArrayIndent=e.noArrayIndent||!1,this.skipInvalid=e.skipInvalid||!1,this.flowLevel=It.isNothing(e.flowLevel)?-1:e.flowLevel,this.styleMap=hf(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==='"'?Qi:v1,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(df,"State");function Ua(e,t){for(var r=It.repeat(" ",t),i=0,o=-1,s="",a,n=e.length;i<n;)o=e.indexOf(`
`,i),o===-1?(a=e.slice(i),i=n):(a=e.slice(i,o+1),i=o+1),a.length&&a!==`
`&&(s+=r),s+=a;return s}p(Ua,"indentString");function cs(e,t){return`
`+It.repeat(" ",e.indent*t)}p(cs,"generateNextLine");function uf(e,t){var r,i,o;for(r=0,i=e.implicitTypes.length;r<i;r+=1)if(o=e.implicitTypes[r],o.resolve(t))return!0;return!1}p(uf,"testImplicitResolving");function Ji(e){return e===d1||e===h1}p(Ji,"isWhitespace");function ui(e){return 32<=e&&e<=126||161<=e&&e<=55295&&e!==8232&&e!==8233||57344<=e&&e<=65533&&e!==jn||65536<=e&&e<=1114111}p(ui,"isPrintable");function Ga(e){return ui(e)&&e!==jn&&e!==c1&&e!==Ki}p(Ga,"isNsCharOrWhitespace");function ja(e,t,r){var i=Ga(e),o=i&&!Ji(e);return(r?i:i&&e!==of&&e!==sf&&e!==af&&e!==nf&&e!==lf)&&e!==Ya&&!(t===hs&&!o)||Ga(t)&&!Ji(t)&&e===Ya||t===hs&&o}p(ja,"isPlainSafe");function ff(e){return ui(e)&&e!==jn&&!Ji(e)&&e!==C1&&e!==k1&&e!==hs&&e!==of&&e!==sf&&e!==af&&e!==nf&&e!==lf&&e!==Ya&&e!==g1&&e!==y1&&e!==u1&&e!==S1&&e!==x1&&e!==b1&&e!==m1&&e!==f1&&e!==p1&&e!==w1&&e!==T1}p(ff,"isPlainSafeFirst");function pf(e){return!Ji(e)&&e!==hs}p(pf,"isPlainSafeLast");function zr(e,t){var r=e.charCodeAt(t),i;return r>=55296&&r<=56319&&t+1<e.length&&(i=e.charCodeAt(t+1),i>=56320&&i<=57343)?(r-55296)*1024+i-56320+65536:r}p(zr,"codePointAt");function Xn(e){var t=/^\n* /;return t.test(e)}p(Xn,"needIndentIndicator");var gf=1,Xa=2,mf=3,yf=4,Nr=5;function Cf(e,t,r,i,o,s,a,n){var l,c=0,h=null,d=!1,f=!1,u=i!==-1,g=-1,m=ff(zr(e,0))&&pf(zr(e,e.length-1));if(t||a)for(l=0;l<e.length;c>=65536?l+=2:l++){if(c=zr(e,l),!ui(c))return Nr;m=m&&ja(c,h,n),h=c}else{for(l=0;l<e.length;c>=65536?l+=2:l++){if(c=zr(e,l),c===Ki)d=!0,u&&(f=f||l-g-1>i&&e[g+1]!==" ",g=l);else if(!ui(c))return Nr;m=m&&ja(c,h,n),h=c}f=f||u&&l-g-1>i&&e[g+1]!==" "}return!d&&!f?m&&!a&&!o(e)?gf:s===Qi?Nr:Xa:r>9&&Xn(e)?Nr:a?s===Qi?Nr:Xa:f?yf:mf}p(Cf,"chooseScalarStyle");function xf(e,t,r,i,o){e.dump=(function(){if(t.length===0)return e.quotingType===Qi?'""':"''";if(!e.noCompatMode&&(_1.indexOf(t)!==-1||B1.test(t)))return e.quotingType===Qi?'"'+t+'"':"'"+t+"'";var s=e.indent*Math.max(1,r),a=e.lineWidth===-1?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-s),n=i||e.flowLevel>-1&&r>=e.flowLevel;function l(c){return uf(e,c)}switch(p(l,"testAmbiguity"),Cf(t,n,e.indent,a,l,e.quotingType,e.forceQuotes&&!i,o)){case gf:return t;case Xa:return"'"+t.replace(/'/g,"''")+"'";case mf:return"|"+Va(t,e.indent)+Za(Ua(t,s));case yf:return">"+Va(t,e.indent)+Za(Ua(bf(t,a),s));case Nr:return'"'+kf(t)+'"';default:throw new ee("impossible error: invalid scalar style")}})()}p(xf,"writeScalar");function Va(e,t){var r=Xn(e)?String(t):"",i=e[e.length-1]===`
`,o=i&&(e[e.length-2]===`
`||e===`
`),s=o?"+":i?"":"-";return r+s+`
`}p(Va,"blockHeader");function Za(e){return e[e.length-1]===`
`?e.slice(0,-1):e}p(Za,"dropEndingNewline");function bf(e,t){for(var r=/(\n+)([^\n]*)/g,i=(function(){var c=e.indexOf(`
`);return c=c!==-1?c:e.length,r.lastIndex=c,Ka(e.slice(0,c),t)})(),o=e[0]===`
`||e[0]===" ",s,a;a=r.exec(e);){var n=a[1],l=a[2];s=l[0]===" ",i+=n+(!o&&!s&&l!==""?`
`:"")+Ka(l,t),o=s}return i}p(bf,"foldString");function Ka(e,t){if(e===""||e[0]===" ")return e;for(var r=/ [^ ]/g,i,o=0,s,a=0,n=0,l="";i=r.exec(e);)n=i.index,n-o>t&&(s=a>o?a:n,l+=`
`+e.slice(o,s),o=s+1),a=n;return l+=`
`,e.length-o>t&&a>o?l+=e.slice(o,a)+`
`+e.slice(a+1):l+=e.slice(o),l.slice(1)}p(Ka,"foldLine");function kf(e){for(var t="",r=0,i,o=0;o<e.length;r>=65536?o+=2:o++)r=zr(e,o),i=Yt[r],!i&&ui(r)?(t+=e[o],r>=65536&&(t+=e[o+1])):t+=i||cf(r);return t}p(kf,"escapeString");function wf(e,t,r){var i="",o=e.tag,s,a,n;for(s=0,a=r.length;s<a;s+=1)n=r[s],e.replacer&&(n=e.replacer.call(r,String(s),n)),(ve(e,t,n,!1,!1)||typeof n>"u"&&ve(e,t,null,!1,!1))&&(i!==""&&(i+=","+(e.condenseFlow?"":" ")),i+=e.dump);e.tag=o,e.dump="["+i+"]"}p(wf,"writeFlowSequence");function Qa(e,t,r,i){var o="",s=e.tag,a,n,l;for(a=0,n=r.length;a<n;a+=1)l=r[a],e.replacer&&(l=e.replacer.call(r,String(a),l)),(ve(e,t+1,l,!0,!0,!1,!0)||typeof l>"u"&&ve(e,t+1,null,!0,!0,!1,!0))&&((!i||o!=="")&&(o+=cs(e,t)),e.dump&&Ki===e.dump.charCodeAt(0)?o+="-":o+="- ",o+=e.dump);e.tag=s,e.dump=o||"[]"}p(Qa,"writeBlockSequence");function Tf(e,t,r){var i="",o=e.tag,s=Object.keys(r),a,n,l,c,h;for(a=0,n=s.length;a<n;a+=1)h="",i!==""&&(h+=", "),e.condenseFlow&&(h+='"'),l=s[a],c=r[l],e.replacer&&(c=e.replacer.call(r,l,c)),ve(e,t,l,!1,!1)&&(e.dump.length>1024&&(h+="? "),h+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),ve(e,t,c,!1,!1)&&(h+=e.dump,i+=h));e.tag=o,e.dump="{"+i+"}"}p(Tf,"writeFlowMapping");function Sf(e,t,r,i){var o="",s=e.tag,a=Object.keys(r),n,l,c,h,d,f;if(e.sortKeys===!0)a.sort();else if(typeof e.sortKeys=="function")a.sort(e.sortKeys);else if(e.sortKeys)throw new ee("sortKeys must be a boolean or a function");for(n=0,l=a.length;n<l;n+=1)f="",(!i||o!=="")&&(f+=cs(e,t)),c=a[n],h=r[c],e.replacer&&(h=e.replacer.call(r,c,h)),ve(e,t+1,c,!0,!0,!0)&&(d=e.tag!==null&&e.tag!=="?"||e.dump&&e.dump.length>1024,d&&(e.dump&&Ki===e.dump.charCodeAt(0)?f+="?":f+="? "),f+=e.dump,d&&(f+=cs(e,t)),ve(e,t+1,h,!0,d)&&(e.dump&&Ki===e.dump.charCodeAt(0)?f+=":":f+=": ",f+=e.dump,o+=f));e.tag=s,e.dump=o||"{}"}p(Sf,"writeBlockMapping");function Ja(e,t,r){var i,o,s,a,n,l;for(o=r?e.explicitTypes:e.implicitTypes,s=0,a=o.length;s<a;s+=1)if(n=o[s],(n.instanceOf||n.predicate)&&(!n.instanceOf||typeof t=="object"&&t instanceof n.instanceOf)&&(!n.predicate||n.predicate(t))){if(r?n.multi&&n.representName?e.tag=n.representName(t):e.tag=n.tag:e.tag="?",n.represent){if(l=e.styleMap[n.tag]||n.defaultStyle,ef.call(n.represent)==="[object Function]")i=n.represent(t,l);else if(rf.call(n.represent,l))i=n.represent[l](t,l);else throw new ee("!<"+n.tag+'> tag resolver accepts not "'+l+'" style');e.dump=i}return!0}return!1}p(Ja,"detectType");function ve(e,t,r,i,o,s,a){e.tag=null,e.dump=r,Ja(e,r,!1)||Ja(e,r,!0);var n=ef.call(e.dump),l=i,c;i&&(i=e.flowLevel<0||e.flowLevel>t);var h=n==="[object Object]"||n==="[object Array]",d,f;if(h&&(d=e.duplicates.indexOf(r),f=d!==-1),(e.tag!==null&&e.tag!=="?"||f||e.indent!==2&&t>0)&&(o=!1),f&&e.usedDuplicates[d])e.dump="*ref_"+d;else{if(h&&f&&!e.usedDuplicates[d]&&(e.usedDuplicates[d]=!0),n==="[object Object]")i&&Object.keys(e.dump).length!==0?(Sf(e,t,e.dump,o),f&&(e.dump="&ref_"+d+e.dump)):(Tf(e,t,e.dump),f&&(e.dump="&ref_"+d+" "+e.dump));else if(n==="[object Array]")i&&e.dump.length!==0?(e.noArrayIndent&&!a&&t>0?Qa(e,t-1,e.dump,o):Qa(e,t,e.dump,o),f&&(e.dump="&ref_"+d+e.dump)):(wf(e,t,e.dump),f&&(e.dump="&ref_"+d+" "+e.dump));else if(n==="[object String]")e.tag!=="?"&&xf(e,e.dump,t,s,l);else{if(n==="[object Undefined]")return!1;if(e.skipInvalid)return!1;throw new ee("unacceptable kind of an object to dump "+n)}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(ve,"writeNode");function _f(e,t){var r=[],i=[],o,s;for(ds(e,r,i),o=0,s=i.length;o<s;o+=1)t.duplicates.push(r[i[o]]);t.usedDuplicates=new Array(s)}p(_f,"getDuplicateReferences");function ds(e,t,r){var i,o,s;if(e!==null&&typeof e=="object")if(o=t.indexOf(e),o!==-1)r.indexOf(o)===-1&&r.push(o);else if(t.push(e),Array.isArray(e))for(o=0,s=e.length;o<s;o+=1)ds(e[o],t,r);else for(i=Object.keys(e),o=0,s=i.length;o<s;o+=1)ds(e[i[o]],t,r)}p(ds,"inspectNode");function L1(e,t){t=t||{};var r=new df(
`:""}p(L1,"dump$1");function F1(e,t){return function(){throw new Error("Function yaml."+e+" is removed in js-yaml 4. Use yaml."+t+" instead, which is now safe by default.")}}p(F1,"renamed");var A1=gu,E1=l1.load;/*! Bundled license information:
js-yaml/dist/js-yaml.mjs:
(*! js-yaml 4.1.1 https://github.com/nodeca/js-yaml @license MIT *)
*/var Si=p((e,t)=>{if(t)return"translate("+-e.width/2+", "+-e.height/2+")";const r=e.x??0,i=e.y??0;return"translate("+-(r+e.width/2)+", "+-(i+e.height/2)+")"},"computeLabelTransform"),zt={aggregation:17.25,extension:17.25,composition:17.25,dependency:6,lollipop:13.5,arrow_point:4,arrow_barb:0,arrow_barb_neo:5.5},Mh={arrow_point:4,arrow_cross:12.5,arrow_circle:12.5};function Ii(e,t){if(e===void 0||t===void 0)return{angle:0,deltaX:0,deltaY:0};e=Tt(e),t=Tt(t);const[r,i]=[e.x,e.y],[o,s]=[t.x,t.y],a=o-r,n=s-i;return{angle:Math.atan(n/a),deltaX:a,deltaY:n}}p(Ii,"calculateDeltaAndAngle");var Tt=p(e=>Array.isArray(e)?{x:e[0],y:e[1]}:e,"pointTransformer"),M1=p(e=>({x:p(function(t,r,i){let o=0;const s=Tt(i[0]).x<Tt(i[i.length-1]).x?"left":"right";if(r===0&&Object.hasOwn(zt,e.arrowTypeStart)){const{angle:u,deltaX:g}=Ii(i[0],i[1]);o=zt[e.arrowTypeStart]*Math.cos(u)*(g>=0?1:-1)}else if(r===i.length-1&&Object.hasOwn(zt,e.arrowTypeEnd)){const{angle:u,deltaX:g}=Ii(i[i.length-1],i[i.length-2]);o=zt[e.arrowTypeEnd]*Math.cos(u)*(g>=0?1:-1)}const a=Math.abs(Tt(t).x-Tt(i[i.length-1]).x),n=Math.abs(Tt(t).y-Tt(i[i.length-1]).y),l=Math.abs(Tt(t).x-Tt(i[0]).x),c=Math.abs(Tt(t).y-Tt(i[0]).y),h=zt[e.arrowTypeStart],d=zt[e.arrowTypeEnd],f=1;if(a<d&&a>0&&n<d){let u=d+f-a;u*=s==="right"?-1:1,o-=u}if(l<h&&l>0&&c<h){let u=h+f-l;u*=s==="right"?-1:1,o+=u}return Tt(t).x+o},"x"),y:p(function(t,r,i){let o=0;const s=Tt(i[0]).y<Tt(i[i.length-1]).y?"down":"up";if(r===0&&Object.hasOwn(zt,e.arrowTypeStart)){const{angle:u,deltaY:g}=Ii(i[0],i[1]);o=zt[e.arrowTypeStart]*Math.abs(Math.sin(u))*(g>=0?1:-1)}else if(r===i.length-1&&Object.hasOwn(zt,e.arrowTypeEnd)){const{angle:u,deltaY:g}=Ii(i[i.length-1],i[i.length-2]);o=zt[e.arrowTypeEnd]*Math.abs(Math.sin(u))*(g>=0?1:-1)}const a=Math.abs(Tt(t).y-Tt(i[i.length-1]).y),n=Math.abs(Tt(t).x-Tt(i[i.length-1]).x),l=Math.abs(Tt(t).y-Tt(i[0]).y),c=Math.abs(Tt(t).x-Tt(i[0]).x),h=zt[e.arrowTypeStart],d=zt[e.arrowTypeEnd],f=1;if(a<d&&a>0&&n<d){let u=d+f-a;u*=s==="up"?-1:1,o-=u}if(l<h&&l>0&&c<h){let u=h+f-l;u*=s==="up"?-1:1,o+=u}return Tt(t).y+o},"y")}),"getLineFunctionsWithOffset"),So={},$t={},$h;function $1(){return $h||($h=1,Object.defineProperty($t,"__esModule",{value:!0}),$t.BLANK_URL=$t.relativeFirstCharacters=$t.whitespaceEscapeCharsRegex=$t.urlSchemeRegex=$t.ctrlCharactersRegex=$t.htmlCtrlEntityRegex=$t.htmlEntitiesRegex=$t.invalidProtocolRegex=void 0,$t.invalidProtocolRegex=/^([^\w]*)(javascript|data|vbscript)/im,$t.htmlEntitiesRegex=/&#(\w+)(^\w|;)?/g,$t.htmlCtrlEntityRegex=/&(newline|tab);/gi,$t.ctrlCharactersRegex=/[\u0000-\u001F\u007F-\u009F\u2000-\u200D\uFEFF]/gim,$t.urlSchemeRegex=/^.+(:|&colon;)/gim,$t.whitespaceEscapeCharsRegex=/(\\|%5[cC])((%(6[eE]|72|74))|[nrt])/g,$t.relativeFirstCharacters=[".","/"],$t.BLANK_URL="about:blank"),$t}var Oh;function O1(){if(Oh)return So;Oh=1,Object.defineProperty(So,"__esModule",{value:!0}),So.sanitizeUrl=s;var e=$1();function t(a){return e.relativeFirstCharacters.indexOf(a[0])>-1}function r(a){var n=a.replace(e.ctrlCharactersRegex,"");return n.replace(e.htmlEntitiesRegex,function(l,c){return String.fromCharCode(c)})}function i(a){return URL.canParse(a)}function o(a){try{return decodeURIComponent(a)}catch{return a}}function s(a){if(!a)return e.BLANK_URL;var n,l=o(a.trim());do l=r(l).replace(e.htmlCtrlEntityRegex,"").replace(e.ctrlCharactersRegex,"").replace(e.whitespaceEscapeCharsRegex,"").trim(),l=o(l),n=l.match(e.ctrlCharactersRegex)||l.match(e.htmlEntitiesRegex)||l.match(e.htmlCtrlEntityRegex)||l.match(e.whitespaceEscapeCharsRegex);while(n&&n.length>0);var c=l;if(!c)return e.BLANK_URL;if(t(c))return c;var h=c.trimStart(),d=h.match(e.urlSchemeRegex);if(!d)return c;var f=d[0].toLowerCase().trim();if(e.invalidProtocolRegex.test(f))return e.BLANK_URL;var u=h.replace(/\\/g,"/");if(f==="mailto:"||f.includes("://"))return u;if(f==="http:"||f==="https:"){if(!i(u))return e.BLANK_URL;var g=new URL(u);return g.protocol=g.protocol.toLowerCase(),g.hostname=g.hostname.toLowerCase(),g.toString()}return u}return So}var I1=O1();function D1(e){return Number.isSafeInteger(e)&&e>=0}function Bf(e){
`,"ig");e=e.trim().replace(r,"").replace(/'/gm,'"'),P.debug(`Detecting diagram directive${t!==null?" type:"+t:""} based on the text:${e}`);let i;const o=[];for(;(i=qi.exec(e))!==null;)if(i.index===qi.lastIndex&&qi.lastIndex++,i&&!t||t&&i[1]?.match(t)||t&&i[2]?.match(t)){const s=i[1]?i[1]:i[2],a=i[3]?i[3].trim():i[4]?JSON.parse(i[4].trim()):null;o.push({type:s,args:a})}return o.length===0?{type:e,args:null}:o.length===1?o[0]:o}catch(r){return P.error(`ERROR: ${r.message} - Unable to parse directive type: '${t}' based on the text: '${e}'`),{type:void 0,args:null}}},"detectDirective"),p2=p(function(e){return e.replace(qi,"")},"removeDirectives"),g2=p(function(e,t){for(const[r,i]of t.entries())if(i.match(e))return r;return-1},"isSubstringInArray");function Jn(e,t){if(!e)return t;const r=`curve${e.charAt(0).toUpperCase()+e.slice(1)}`;return d2[r]??t}p(Jn,"interpolateToCurve");function Of(e,t){const r=e.trim();if(r)return t.securityLevel!=="loose"?I1.sanitizeUrl(r):r}p(Of,"formatUrl");var m2=p((e,...t)=>{const r=e.split("."),i=r.length-1,o=r[i];let s=window;for(let a=0;a<i;a++)if(s=s[r[a]],!s){P.error(`Function name: ${e} not found in window`);return}s[o](...t)},"runFunc");function tl(e,t){return!e||!t?0:Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))}p(tl,"distance");function If(e){let t,r=0;e.forEach(o=>{r+=tl(o,t),t=o});const i=r/2;return el(e,i)}p(If,"traverseEdge");function Df(e){return e.length===1?e[0]:If(e)}p(Df,"calcLabelPosition");var Ph=p((e,t=2)=>{const r=Math.pow(10,t);return Math.round(e*r)/r},"roundNumber"),el=p((e,t)=>{let r,i=t;for(const o of e){if(r){const s=tl(o,r);if(s===0)return r;if(s<i)i-=s;else{const a=i/s;if(a<=0)return r;if(a>=1)return{x:o.x,y:o.y};if(a>0&&a<1)return{x:Ph((1-a)*r.x+a*o.x,5),y:Ph((1-a)*r.y+a*o.y,5)}}}r=o}throw new Error("Could not find a suitable point for the given distance")},"calculatePoint"),y2=p((e,t,r)=>{P.info(`our points ${JSON.stringify(t)}`),t[0]!==r&&(t=t.reverse());const o=el(t,25),s=e?10:5,a=Math.atan2(t[0].y-o.y,t[0].x-o.x),n={x:0,y:0};return n.x=Math.sin(a)*s+(t[0].x+o.x)/2,n.y=-Math.cos(a)*s+(t[0].y+o.y)/2,n},"calcCardinalityPosition");function Rf(e,t,r){const i=structuredClone(r);P.info("our points",i),t!=="start_left"&&t!=="start_right"&&i.reverse();const o=25+e,s=el(i,o),a=10+e*.5,n=Math.atan2(i[0].y-s.y,i[0].x-s.x),l={x:0,y:0};return t==="start_left"?(l.x=Math.sin(n+Math.PI)*a+(i[0].x+s.x)/2,l.y=-Math.cos(n+Math.PI)*a+(i[0].y+s.y)/2):t==="end_right"?(l.x=Math.sin(n-Math.PI)*a+(i[0].x+s.x)/2-5,l.y=-Math.cos(n-Math.PI)*a+(i[0].y+s.y)/2-5):t==="end_left"?(l.x=Math.sin(n)*a+(i[0].x+s.x)/2-5,l.y=-Math.cos(n)*a+(i[0].y+s.y)/2-5):(l.x=Math.sin(n)*a+(i[0].x+s.x)/2,l.y=-Math.cos(n)*a+(i[0].y+s.y)/2),l}p(Rf,"calcTerminalLabelPosition");function Pf(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(Pf,"getStylesFromArray");var Nh=0,C2=p(()=>(Nh++,"id-"+Math.random().toString(36).substr(2,12)+"-"+Nh),"generateId");function Nf(e){let t="";const r="0123456789abcdef",i=r.length;for(let o=0;o<e;o++)t+=r.charAt(Math.floor(Math.random()*i));return t}p(Nf,"makeRandomHex");var x2=p(e=>Nf(e.length),"random"),b2=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"),k2=p(function(e,t){const r=t.text.replace(oo.lineBreakRegex," "),[,i]=Ms(t.fontSize),o=e.append("text");o.attr("x",t.x),o.attr("y",t.y),o.style("text-anchor",t.anchor),o.style("font-family",t.fontFamily),o.style("font-size",i),o.style("font-weight",t.fontWeight),o.attr("fill",t.fill),t.class!==void 0&&o.attr("class",t.class);const s=o.append("tspan");return s.attr("x",t.x+t.textMargin*2),s.attr("fill",t.fill),s.text(r),o},"drawSimpleText"),w2=lo((e,t,r)=>{if(!e||(r=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",joinWith:"<br/>"},r),oo.lineBreakRegex.test(e)))return e;const i=e.split(" ").filter(Boolean),o=[];let s="";return i.forEach((a,n)=>{const l=We(`${a} `,r),c=We(s,r);if(l>t){const{hyphenatedStrings:f,remainingW
]`).replace("lheading",jf).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},hw=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,cw=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,Vf=/^( {2,}|\\)\n(?!\s*$)/,dw=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,Os=/[\p{P}\p{S}]/u,ul=/[\s\p{P}\p{S}]/u,Zf=/[^\s\p{P}\p{S}]/u,uw=yt(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,ul).getRegex(),Kf=/(?!~)[\p{P}\p{S}]/u,fw=/(?!~)[\s\p{P}\p{S}]/u,pw=/(?:[^\s\p{P}\p{S}]|~)/u,gw=yt(/link|precode-code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",Z2?"(?<!`)()":"(^^|[^`])").replace("code",/(?<b>`+)[^`]+\k<b>(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),Qf=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,mw=yt(Qf,"u").replace(/punct/g,Os).getRegex(),yw=yt(Qf,"u").replace(/punct/g,Kf).getRegex(),Jf="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",Cw=yt(Jf,"gu").replace(/notPunctSpace/g,Zf).replace(/punctSpace/g,ul).replace(/punct/g,Os).getRegex(),xw=yt(Jf,"gu").replace(/notPunctSpace/g,pw).replace(/punctSpace/g,fw).replace(/punct/g,Kf).getRegex(),bw=yt("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,Zf).replace(/punctSpace/g,ul).replace(/punct/g,Os).getRegex(),kw=yt(/\\(punct)/,"gu").replace(/punct/g,Os).getRegex(),ww=yt(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),Tw=yt(cl).replace("(?:-->|$)","-->").getRegex(),Sw=yt("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",Tw).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),fs=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+[^`]*?`+(?!`)|[^\[\]\\`])*?/,_w=yt(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label",fs).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),tp=yt(/^!?\[(label)\]\[(ref)\]/).replace("label",fs).replace("ref",hl).getRegex(),ep=yt(/^!?\[(ref)\](?:\[\])?/).replace("ref",hl).getRegex(),Bw=yt("reflink|nolink(?!\\()","g").replace("reflink",tp).replace("nolink",ep).getRegex(),Uh=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,fl={_backpedal:Hi,anyPunctuation:kw,autolink:ww,blockSkip:gw,br:Vf,code:cw,del:Hi,emStrongLDelim:mw,emStrongRDelimAst:Cw,emStrongRDelimUnd:bw,escape:hw,link:_w,nolink:ep,punctuation:uw,reflink:tp,reflinkSearch:Bw,tag:Sw,text:dw,url:Hi},vw={...fl,link:yt(/^!?\[(label)\]\((.*?)\)/).replace("label",fs).getRegex(),reflink:yt(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",fs).getRegex()},rn={...fl,emStrongRDelimAst:xw,emStrongLDelim:yw,url:yt(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",Uh).replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:yt(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("p
`).map(s=>{let a=s.match(r.other.beginningSpace);if(a===null)return s;let[n]=a;return n.length>=o.length?s.slice(o.length):s}).join(`
`)}var ps=class{options;rules;lexer;constructor(t){this.options=t||_r}space(t){let r=this.rules.block.newline.exec(t);if(r&&r[0].length>0)return{type:"space",raw:r[0]}}code(t){let r=this.rules.block.code.exec(t);if(r){let i=r[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:r[0],codeBlockStyle:"indented",text:this.options.pedantic?i:Bi(i,`
`)}}}fences(t){let r=this.rules.block.fences.exec(t);if(r){let i=r[0],o=Ew(i,r[3]||"",this.rules);return{type:"code",raw:i,lang:r[2]?r[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):r[2],text:o}}}heading(t){let r=this.rules.block.heading.exec(t);if(r){let i=r[2].trim();if(this.rules.other.endingHash.test(i)){let o=Bi(i,"#");(this.options.pedantic||!o||this.rules.other.endingSpaceChar.test(o))&&(i=o.trim())}return{type:"heading",raw:r[0],depth:r[1].length,text:i,tokens:this.lexer.inline(i)}}}hr(t){let r=this.rules.block.hr.exec(t);if(r)return{type:"hr",raw:Bi(r[0],`
`)}}blockquote(t){let r=this.rules.block.blockquote.exec(t);if(r){let i=Bi(r[0],`
`).split(`
`),o="",s="",a=[];for(;i.length>0;){let n=!1,l=[],c;for(c=0;c<i.length;c++)if(this.rules.other.blockquoteStart.test(i[c]))l.push(i[c]),n=!0;else if(!n)l.push(i[c]);else break;i=i.slice(c);let h=l.join(`
`),d=h.replace(this.rules.other.blockquoteSetextReplace,`
$1`).replace(this.rules.other.blockquoteSetextReplace2,"");o=o?`${o}
${h}`:h,s=s?`${s}
${d}`:d;let f=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(d,a,!0),this.lexer.state.top=f,i.length===0)break;let u=a.at(-1);if(u?.type==="code")break;if(u?.type==="blockquote"){let g=u,m=g.raw+`
`+i.join(`
`),y=this.blockquote(m);a[a.length-1]=y,o=o.substring(0,o.length-g.raw.length)+y.raw,s=s.substring(0,s.length-g.text.length)+y.text;break}else if(u?.type==="list"){let g=u,m=g.raw+`
`+i.join(`
`),y=this.list(m);a[a.length-1]=y,o=o.substring(0,o.length-u.raw.length)+y.raw,s=s.substring(0,s.length-g.raw.length)+y.raw,i=m.substring(a.at(-1).raw.length).split(`
`);continue}}return{type:"blockquote",raw:o,tokens:a,text:s}}}list(t){let r=this.rules.block.list.exec(t);if(r){let i=r[1].trim(),o=i.length>1,s={type:"list",raw:"",ordered:o,start:o?+i.slice(0,-1):"",loose:!1,items:[]};i=o?`\\d{1,9}\\${i.slice(-1)}`:`\\${i}`,this.options.pedantic&&(i=o?i:"[*+-]");let a=this.rules.other.listItemRegex(i),n=!1;for(;t;){let c=!1,h="",d="";if(!(r=a.exec(t))||this.rules.block.hr.test(t))break;h=r[0],t=t.substring(h.length);let f=r[2].split(`
`,1)[0].replace(this.rules.other.listReplaceTabs,b=>" ".repeat(3*b.length)),u=t.split(`
`,1)[0],g=!f.trim(),m=0;if(this.options.pedantic?(m=2,d=f.trimStart()):g?m=r[1].length+1:(m=r[2].search(this.rules.other.nonSpaceChar),m=m>4?1:m,d=f.slice(m),m+=r[1].length),g&&this.rules.other.blankLine.test(u)&&(h+=u+`
`,t=t.substring(u.length+1),c=!0),!c){let b=this.rules.other.nextBulletRegex(m),k=this.rules.other.hrRegex(m),T=this.rules.other.fencesBeginRegex(m),S=this.rules.other.headingBeginRegex(m),_=this.rules.other.htmlBeginRegex(m);for(;t;){let A=t.split(`
`,1)[0],v;if(u=A,this.options.pedantic?(u=u.replace(this.rules.other.listReplaceNesting," "),v=u):v=u.replace(this.rules.other.tabCharGlobal," "),T.test(u)||S.test(u)||_.test(u)||b.test(u)||k.test(u))break;if(v.search(this.rules.other.nonSpaceChar)>=m||!u.trim())d+=`
`+v.slice(m);else{if(g||f.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||T.test(f)||S.test(f)||k.test(f))break;d+=`
`+u}!g&&!u.trim()&&(g=!0),h+=A+`
`,t=t.substring(A.length+1),f=v.slice(m)}}s.loose||(n?s.loose=!0:this.rules.other.doubleBlankLine.test(h)&&(n=!0));let y=null,C;this.options.gfm&&(y=this.rules.other.listIsTask.exec(d),y&&(C=y[0]!=="[ ] ",d=d.replace(this.rules.other.listReplaceTask,""))),s.items.push({type:"list_item",raw:h,task:!!y,checked:C,loose:!1,text:d,tokens:[]}),s.raw+=h}let l=s.items.at(-1);if(l)l.raw=l.raw.trimEnd(),l.text=l.text.trimEnd();else return;s.raw=s.raw.trimEnd();for(let c=0;c<s.items.length;c++)if(this.lexer.state.top=!1,s.items[c].tokens=this.lexer.blockTokens(s.items[c].text,[]),!s.loose){let h=s.items[c].tokens.filter(f=>f.type==="space"),d=h.length>0&&h.some(f=>this.rules.other.anyLine.test(f.raw));s.loose=d}if(s.loose)for(let c=0;c<s.items.length;c++)s.items[c].loose=!0;return s}}html(t){let r=this.rules.block.html.exec(t);if(r)return{type:"html",block:!0,raw:r[0],pre:r[1]==="pre"||r[1]==="script"||r[1]==="style",text:r[0]}}def(t){let r=this.rules.block.def.exec(t);if(r){let i=r[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),o=r[2]?r[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",s=r[3]?r[3].substring(1,r[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):r[3];return{type:"def",tag:i,raw:r[0],href:o,title:s}}}table(t){let r=this.rules.block.table.exec(t);if(!r||!this.rules.other.tableDelimiter.test(r[2]))return;let i=Xh(r[1]),o=r[2].replace(this.rules.other.tableAlignChars,"").split("|"),s=r[3]?.trim()?r[3].replace(this.rules.other.tableRowBlankLine,"").split(`
`):[],a={type:"table",raw:r[0],header:[],align:[],rows:[]};if(i.length===o.length){for(let n of o)this.rules.other.tableAlignRight.test(n)?a.align.push("right"):this.rules.other.tableAlignCenter.test(n)?a.align.push("center"):this.rules.other.tableAlignLeft.test(n)?a.align.push("left"):a.align.push(null);for(let n=0;n<i.length;n++)a.header.push({text:i[n],tokens:this.lexer.inline(i[n]),header:!0,align:a.align[n]});for(let n of s)a.rows.push(Xh(n,a.header.length).map((l,c)=>({text:l,tokens:this.lexer.inline(l),header:!1,align:a.align[c]})));return a}}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)===`
`?r[1].slice(0,-1):r[1];return{type:"paragraph",raw:r[0],text:i,tokens:this.lexer.inline(i)}}}text(t){let r=this.rules.block.text.exec(t);if(r)return{type:"text",raw:r[0],text:r[0],tokens:this.lexer.inline(r[0])}}escape(t){let r=this.rules.inline.escape.exec(t);if(r)return{type:"escape",raw:r[0],text:r[1]}}tag(t){let r=this.rules.inline.tag.exec(t);if(r)return!this.lexer.state.inLink&&this.rules.other.startATag.test(r[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(r[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(r[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(r[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:r[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:r[0]}}link(t){let r=this.rules.inline.link.exec(t);if(r){let i=r[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(i)){if(!this.rules.other.endAngleBracket.test(i))return;let a=Bi(i.slice(0,-1),"\\");if((i.length-a.length)%2===0)return}else{let a=Aw(r[2],"()");if(a===-2)return;if(a>-1){let n=(r[0].indexOf("!")===0?5:4)+r[1].length+a;r[2]=r[2].substring(0,a),r[0]=r[0].substring(0,n).trim(),r[3]=""}}let o=r[2],s="";if(this.options.pedantic){let a=this.rules.other.pedanticHrefTitle.exec(o);a&&(o=a[1],s=a[3])}else s=r[3]?r[3].slice(1,-1):"";return o=o.trim(),this.rules.other.startAngleBracket.test(o)&&(this.options.pedantic&&!this.rules.other.endAngleBracket.test(i)?o=o.slice(1):o=o.slice(1,-1)),Vh(r,{href:o&&o.replace(this.rules.inline.anyPunctuation,"$1"),title:s&&s.replace(this.rules.inline.anyPunctuation,"$1")},r[0],this.lexer,this.rules)}}reflink(t,r){let i;if((i=this.rules.inline.reflink.exec(t))||(i=this.rules.inline.nolink.exec(t))){let o=(i[2]||i[1]).replace(this.rules.other.multipleSpaceGlobal," "),s=r[o.toLowerCase()];if(!s){let a=i[0].charAt(0);return{type:"text",raw:a,text:a}}return Vh(i,s,i[0],this.lexer,this.rules)}}emStrong(t,r,i=""){let o=this.rules.inline.emStrongLDelim.exec(t);if(!(!o||o[3]&&i.match(this.rules.other.unicodeAlphaNumeric))&&(!(o[1]||o[2])||!i||this.rules.inline.punctuation.exec(i))){let s=[...o[0]].length-1,a,n,l=s,c=0,h=o[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(h.lastIndex=0,r=r.slice(-1*t.length+s);(o=h.exec(r))!=null;){if(a=o[1]||o[2]||o[3]||o[4]||o[5]||o[6],!a)continue;if(n=[...a].length,o[3]||o[4]){l+=n;continue}else if((o[5]||o[6])&&s%3&&!((s+n)%3)){c+=n;continue}if(l-=n,l>0)continue;n=Math.min(n,n+l+c);let d=[...o[0]][0].length,f=t.slice(0,s+o.index+d+n);if(Math.min(s,n)%2){let g=f.slice(1,-1);return{type:"em",raw:f,text:g,tokens:this.lexer.inlineTokens(g)}}let u=f.slice(2,-2);return{type:"strong",raw:f,text:u,tokens:this.lexer.inlineTokens(u)}}}}codespan(t){let r=this.rules.inline.code.exec(t);if(r){let i=r[2].replace(this.rules.other.newLineCharGlobal," "),o=this.rules.other.nonSpaceChar.test(i),s=this.rules.other.startingSpaceChar.test(i)&&this.rules.other.endingSpaceChar.test(i);return o&&s&&(i=i.substring(1,i.length-1)),{type:"codespan",raw:r[0],text:i}}}br(t){let r=this.rules.inline.br.exec(t);if(r)return{type:"br",raw:r[0]}}del(t){let r=this.rules.inline.del.exec(t);if(r)return{type:"del",raw:r[0],text:r[2],tokens:this.lexer.inlineTokens(r[2])}}autolink(t){let r=this.rules.inline.autolink.exec(t);if(r){let i,o;return r[2]==="@"?(i=r[1],o="mailto:"+i):(i=r[1],o=i),{type:"link",raw:r[0],text:i,href:o,tokens:[{type:"text",raw:i,text:i}]}}}url(t){let r;if(r=this.rules.inline.url.exec(t)){let i,o;if(r[2]==="@")i=r[0],o="mailto:"+i;else{let s;do s=r[0],r[0]=this.rules.inline._backpedal.exec(r[0])?.[0]??"";while(s!==r[0]);i=r[0],r[1]==="www."?o="http://"+r[0]:o=r[0]}return{type:"link",raw:r[0],text:i,href:o,tokens:[{type:"text",raw:i,text:i}]}}}inlineText(t){let r=this.rules.inline.text.exec(t);if(r){let i=this.lexer.state.inRawBlock;return{type:"text",raw:r[0],text:r[0],escaped:i}}}},de=class on{tokens;options;state;tokenizer;inlineQueue;constructor(t){this.toke
`),this.blockTokens(t,this.tokens);for(let r=0;r<this.inlineQueue.length;r++){let i=this.inlineQueue[r];this.inlineTokens(i.src,i.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(t,r=[],i=!1){for(this.options.pedantic&&(t=t.replace(Xt.tabCharGlobal," ").replace(Xt.spaceLine,""));t;){let o;if(this.options.extensions?.block?.some(a=>(o=a.call({lexer:this},t,r))?(t=t.substring(o.raw.length),r.push(o),!0):!1))continue;if(o=this.tokenizer.space(t)){t=t.substring(o.raw.length);let a=r.at(-1);o.raw.length===1&&a!==void 0?a.raw+=`
`:r.push(o);continue}if(o=this.tokenizer.code(t)){t=t.substring(o.raw.length);let a=r.at(-1);a?.type==="paragraph"||a?.type==="text"?(a.raw+=(a.raw.endsWith(`
`)?"":`
`)+o.raw,a.text+=`
`+o.text,this.inlineQueue.at(-1).src=a.text):r.push(o);continue}if(o=this.tokenizer.fences(t)){t=t.substring(o.raw.length),r.push(o);continue}if(o=this.tokenizer.heading(t)){t=t.substring(o.raw.length),r.push(o);continue}if(o=this.tokenizer.hr(t)){t=t.substring(o.raw.length),r.push(o);continue}if(o=this.tokenizer.blockquote(t)){t=t.substring(o.raw.length),r.push(o);continue}if(o=this.tokenizer.list(t)){t=t.substring(o.raw.length),r.push(o);continue}if(o=this.tokenizer.html(t)){t=t.substring(o.raw.length),r.push(o);continue}if(o=this.tokenizer.def(t)){t=t.substring(o.raw.length);let a=r.at(-1);a?.type==="paragraph"||a?.type==="text"?(a.raw+=(a.raw.endsWith(`
`)?"":`
`)+o.raw,a.text+=`
`+o.raw,this.inlineQueue.at(-1).src=a.text):this.tokens.links[o.tag]||(this.tokens.links[o.tag]={href:o.href,title:o.title},r.push(o));continue}if(o=this.tokenizer.table(t)){t=t.substring(o.raw.length),r.push(o);continue}if(o=this.tokenizer.lheading(t)){t=t.substring(o.raw.length),r.push(o);continue}let s=t;if(this.options.extensions?.startBlock){let a=1/0,n=t.slice(1),l;this.options.extensions.startBlock.forEach(c=>{l=c.call({lexer:this},n),typeof l=="number"&&l>=0&&(a=Math.min(a,l))}),a<1/0&&a>=0&&(s=t.substring(0,a+1))}if(this.state.top&&(o=this.tokenizer.paragraph(s))){let a=r.at(-1);i&&a?.type==="paragraph"?(a.raw+=(a.raw.endsWith(`
`)?"":`
`)+o.raw,a.text+=`
`+o.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=a.text):r.push(o),i=s.length!==t.length,t=t.substring(o.raw.length);continue}if(o=this.tokenizer.text(t)){t=t.substring(o.raw.length);let a=r.at(-1);a?.type==="text"?(a.raw+=(a.raw.endsWith(`
`)?"":`
`)+o.raw,a.text+=`
`+o.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=a.text):r.push(o);continue}if(t){let a="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(a);break}else throw new Error(a)}}return this.state.top=!0,r}inline(t,r=[]){return this.inlineQueue.push({src:t,tokens:r}),r}inlineTokens(t,r=[]){let i=t,o=null;if(this.tokens.links){let l=Object.keys(this.tokens.links);if(l.length>0)for(;(o=this.tokenizer.rules.inline.reflinkSearch.exec(i))!=null;)l.includes(o[0].slice(o[0].lastIndexOf("[")+1,-1))&&(i=i.slice(0,o.index)+"["+"a".repeat(o[0].length-2)+"]"+i.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(o=this.tokenizer.rules.inline.anyPunctuation.exec(i))!=null;)i=i.slice(0,o.index)+"++"+i.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);let s;for(;(o=this.tokenizer.rules.inline.blockSkip.exec(i))!=null;)s=o[2]?o[2].length:0,i=i.slice(0,o.index+s)+"["+"a".repeat(o[0].length-s-2)+"]"+i.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);i=this.options.hooks?.emStrongMask?.call({lexer:this},i)??i;let a=!1,n="";for(;t;){a||(n=""),a=!1;let l;if(this.options.extensions?.inline?.some(h=>(l=h.call({lexer:this},t,r))?(t=t.substring(l.raw.length),r.push(l),!0):!1))continue;if(l=this.tokenizer.escape(t)){t=t.substring(l.raw.length),r.push(l);continue}if(l=this.tokenizer.tag(t)){t=t.substring(l.raw.length),r.push(l);continue}if(l=this.tokenizer.link(t)){t=t.substring(l.raw.length),r.push(l);continue}if(l=this.tokenizer.reflink(t,this.tokens.links)){t=t.substring(l.raw.length);let h=r.at(-1);l.type==="text"&&h?.type==="text"?(h.raw+=l.raw,h.text+=l.text):r.push(l);continue}if(l=this.tokenizer.emStrong(t,i,n)){t=t.substring(l.raw.length),r.push(l);continue}if(l=this.tokenizer.codespan(t)){t=t.substring(l.raw.length),r.push(l);continue}if(l=this.tokenizer.br(t)){t=t.substring(l.raw.length),r.push(l);continue}if(l=this.tokenizer.del(t)){t=t.substring(l.raw.length),r.push(l);continue}if(l=this.tokenizer.autolink(t)){t=t.substring(l.raw.length),r.push(l);continue}if(!this.state.inLink&&(l=this.tokenizer.url(t))){t=t.substring(l.raw.length),r.push(l);continue}let c=t;if(this.options.extensions?.startInline){let h=1/0,d=t.slice(1),f;this.options.extensions.startInline.forEach(u=>{f=u.call({lexer:this},d),typeof f=="number"&&f>=0&&(h=Math.min(h,f))}),h<1/0&&h>=0&&(c=t.substring(0,h+1))}if(l=this.tokenizer.inlineText(c)){t=t.substring(l.raw.length),l.raw.slice(-1)!=="_"&&(n=l.raw.slice(-1)),a=!0;let h=r.at(-1);h?.type==="text"?(h.raw+=l.raw,h.text+=l.text):r.push(l);continue}if(t){let h="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(h);break}else throw new Error(h)}}return r}},gs=class{options;parser;constructor(t){this.options=t||_r}space(t){return""}code({text:t,lang:r,escaped:i}){let o=(r||"").match(Xt.notSpaceStart)?.[0],s=t.replace(Xt.endingNewline,"")+`
`;return o?'<pre><code class="language-'+we(o)+'">'+(i?s:we(s,!0))+`</code></pre>
`:"<pre><code>"+(i?s:we(s,!0))+`</code></pre>
`}blockquote({tokens:t}){return`<blockquote>
${this.parser.parse(t)}</blockquote>
`}html({text:t}){return t}def(t){return""}heading({tokens:t,depth:r}){return`<h${r}>${this.parser.parseInline(t)}</h${r}>
`}hr(t){return`<hr>
`}list(t){let r=t.ordered,i=t.start,o="";for(let n=0;n<t.items.length;n++){let l=t.items[n];o+=this.listitem(l)}let s=r?"ol":"ul",a=r&&i!==1?' start="'+i+'"':"";return"<"+s+a+`>
`+o+"</"+s+`>
`}listitem(t){let r="";if(t.task){let i=this.checkbox({checked:!!t.checked});t.loose?t.tokens[0]?.type==="paragraph"?(t.tokens[0].text=i+" "+t.tokens[0].text,t.tokens[0].tokens&&t.tokens[0].tokens.length>0&&t.tokens[0].tokens[0].type==="text"&&(t.tokens[0].tokens[0].text=i+" "+we(t.tokens[0].tokens[0].text),t.tokens[0].tokens[0].escaped=!0)):t.tokens.unshift({type:"text",raw:i+" ",text:i+" ",escaped:!0}):r+=i+" "}return r+=this.parser.parse(t.tokens,!!t.loose),`<li>${r}</li>
`}checkbox({checked:t}){return"<input "+(t?'checked="" ':"")+'disabled="" type="checkbox">'}paragraph({tokens:t}){return`<p>${this.parser.parseInline(t)}</p>
`}table(t){let r="",i="";for(let s=0;s<t.header.length;s++)i+=this.tablecell(t.header[s]);r+=this.tablerow({text:i});let o="";for(let s=0;s<t.rows.length;s++){let a=t.rows[s];i="";for(let n=0;n<a.length;n++)i+=this.tablecell(a[n]);o+=this.tablerow({text:i})}return o&&(o=`<tbody>${o}</tbody>`),`<table>
<thead>
`+r+`</thead>
`+o+`</table>
`}tablerow({text:t}){return`<tr>
${t}</tr>
`}tablecell(t){let r=this.parser.parseInline(t.tokens),i=t.header?"th":"td";return(t.align?`<${i} align="${t.align}">`:`<${i}>`)+r+`</${i}>
`}strong({tokens:t}){return`<strong>${this.parser.parseInline(t)}</strong>`}em({tokens:t}){return`<em>${this.parser.parseInline(t)}</em>`}codespan({text:t}){return`<code>${we(t,!0)}</code>`}br(t){return"<br>"}del({tokens:t}){return`<del>${this.parser.parseInline(t)}</del>`}link({href:t,title:r,tokens:i}){let o=this.parser.parseInline(i),s=jh(t);if(s===null)return o;t=s;let a='<a href="'+t+'"';return r&&(a+=' title="'+we(r)+'"'),a+=">"+o+"</a>",a}image({href:t,title:r,text:i,tokens:o}){o&&(i=this.parser.parseInline(o,this.parser.textRenderer));let s=jh(t);if(s===null)return we(i);t=s;let a=`<img src="${t}" alt="${i}"`;return r&&(a+=` title="${we(r)}"`),a+=">",a}text(t){return"tokens"in t&&t.tokens?this.parser.parseInline(t.tokens):"escaped"in t&&t.escaped?t.text:we(t.text)}},pl=class{strong({text:t}){return t}em({text:t}){return t}codespan({text:t}){return t}del({text:t}){return t}html({text:t}){return t}text({text:t}){return t}link({text:t}){return""+t}image({text:t}){return""+t}br(){return""}},ue=class sn{options;renderer;textRenderer;constructor(t){this.options=t||_r,this.options.renderer=this.options.renderer||new gs,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new pl}static parse(t,r){return new sn(r).parse(t)}static parseInline(t,r){return new sn(r).parseInline(t)}parse(t,r=!0){let i="";for(let o=0;o<t.length;o++){let s=t[o];if(this.options.extensions?.renderers?.[s.type]){let n=s,l=this.options.extensions.renderers[n.type].call({parser:this},n);if(l!==!1||!["space","hr","heading","code","table","blockquote","list","html","def","paragraph","text"].includes(n.type)){i+=l||"";continue}}let a=s;switch(a.type){case"space":{i+=this.renderer.space(a);continue}case"hr":{i+=this.renderer.hr(a);continue}case"heading":{i+=this.renderer.heading(a);continue}case"code":{i+=this.renderer.code(a);continue}case"table":{i+=this.renderer.table(a);continue}case"blockquote":{i+=this.renderer.blockquote(a);continue}case"list":{i+=this.renderer.list(a);continue}case"html":{i+=this.renderer.html(a);continue}case"def":{i+=this.renderer.def(a);continue}case"paragraph":{i+=this.renderer.paragraph(a);continue}case"text":{let n=a,l=this.renderer.text(n);for(;o+1<t.length&&t[o+1].type==="text";)n=t[++o],l+=`
`+this.renderer.text(n);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 n='Token with "'+a.type+'" type was not found.';if(this.options.silent)return console.error(n),"";throw new Error(n)}}}return i}parseInline(t,r=this.renderer){let i="";for(let o=0;o<t.length;o++){let s=t[o];if(this.options.extensions?.renderers?.[s.type]){let n=this.options.extensions.renderers[s.type].call({parser:this},s);if(n!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(s.type)){i+=n||"";continue}}let a=s;switch(a.type){case"escape":{i+=r.text(a);break}case"html":{i+=r.html(a);break}case"link":{i+=r.link(a);break}case"image":{i+=r.image(a);break}case"strong":{i+=r.strong(a);break}case"em":{i+=r.em(a);break}case"codespan":{i+=r.codespan(a);break}case"br":{i+=r.br(a);break}case"del":{i+=r.del(a);break}case"text":{i+=r.text(a);break}default:{let n='Token with "'+a.type+'" type was not found.';if(this.options.silent)return console.error(n),"";throw new Error(n)}}}return i}},Di=class{options;block;constructor(t){this.options=t||_r}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?de.lex:de.lexInline}provideParser(){return this.block?ue.parse:ue.parseInline}},Mw=class{defaults=al();options=this.setOptions;parse=this.parseMarkdown(!0);parseInline=this.parseMarkdown(!1);Parser=ue;Renderer=gs;TextRenderer=pl;Lexer=de;Tokenizer=ps;Hooks=Di;constructor(...t){this.use(...t)}walkTokens(t,r){let i=[];for(let o of t)switch(i=i.concat(r.call(this,o)),o.type){case"table":{let s=o;for(let a of s.header)i=i.concat(this.walkTokens(a.tokens,r));for(let a of s.rows)for(let n of a)i=i.concat(this.walkTokens(n.tokens,r));break}case"list":{let s=o;i=i.concat(this.walkTokens(s.items,r));break}default:{let s=o;this.defaults.extensions?.childTokens?.[s.type]?this.defaults.extensions.childTokens[s.type].forEach(a=>{let n=s[a].flat(1/0);i=i.concat(this.walkTokens(n,r))}):s.tokens&&(i=i.concat(this.walkTokens(s.tokens,r)))}}return i}use(...t){let r=this.defaults.extensions||{renderers:{},childTokens:{}};return t.forEach(i=>{let o={...i};if(o.async=this.defaults.async||o.async||!1,i.extensions&&(i.extensions.forEach(s=>{if(!s.name)throw new Error("extension name required");if("renderer"in s){let a=r.renderers[s.name];a?r.renderers[s.name]=function(...n){let l=s.renderer.apply(this,n);return l===!1&&(l=a.apply(this,n)),l}:r.renderers[s.name]=s.renderer}if("tokenizer"in s){if(!s.level||s.level!=="block"&&s.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");let a=r[s.level];a?a.unshift(s.tokenizer):r[s.level]=[s.tokenizer],s.start&&(s.level==="block"?r.startBlock?r.startBlock.push(s.start):r.startBlock=[s.start]:s.level==="inline"&&(r.startInline?r.startInline.push(s.start):r.startInline=[s.start]))}"childTokens"in s&&s.childTokens&&(r.childTokens[s.name]=s.childTokens)}),o.extensions=r),i.renderer){let s=this.defaults.renderer||new gs(this.defaults);for(let a in i.renderer){if(!(a in s))throw new Error(`renderer '${a}' does not exist`);if(["options","parser"].includes(a))continue;let n=a,l=i.renderer[n],c=s[n];s[n]=(...h)=>{let d=l.apply(s,h);return d===!1&&(d=c.apply(s,h)),d||""}}o.renderer=s}if(i.tokenizer){let s=this.defaults.tokenizer||new ps(this.defaults);for(let a in i.tokenizer){if(!(a in s))throw new Error(`tokenizer '${a}' does not exist`);if(["options","rules","lexer"].includes(a))continue;let n=a,l=i.tokenizer[n],c=s[n];s[n]=(...h)=>{let d=l.apply(s,h);return d===!1&&(d=c.apply(s,h)),d}}o.tokenizer=s}if(i.hooks){let s=this.defaults.hooks||new Di;for(let a in i.hooks){if(!(a in s))throw new Error(`hook '${a}' does not exist`);if(["options","block"].includes(a))continue;let n=a,l=i.hooks[n],c=s[n];Di.passThroughHooks.has(a)?s[n]=h=>{if(this.
Please report this to https://github.com/markedjs/marked.`,t){let o="<p>An error occurred:</p><pre>"+we(i.message+"",!0)+"</pre>";return r?Promise.resolve(o):o}if(r)return Promise.reject(i);throw i}}},Tr=new Mw;function xt(e,t){return Tr.parse(e,t)}xt.options=xt.setOptions=function(e){return Tr.setOptions(e),xt.defaults=Tr.defaults,Uf(xt.defaults),xt};xt.getDefaults=al;xt.defaults=_r;xt.use=function(...e){return Tr.use(...e),xt.defaults=Tr.defaults,Uf(xt.defaults),xt};xt.walkTokens=function(e,t){return Tr.walkTokens(e,t)};xt.parseInline=Tr.parseInline;xt.Parser=ue;xt.parser=ue.parse;xt.Renderer=gs;xt.TextRenderer=pl;xt.Lexer=de;xt.lexer=de.lex;xt.Tokenizer=ps;xt.Hooks=Di;xt.parse=xt;xt.options;xt.setOptions;xt.use;xt.walkTokens;xt.parseInline;ue.parse;de.lex;function rp(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];var i=Array.from(typeof e=="string"?[e]:e);i[i.length-1]=i[i.length-1].replace(/\r?\n([\t ]*)$/,"");var o=i.reduce(function(n,l){var c=l.match(/\n([\t ]+|(?!\s).)/g);return c?n.concat(c.map(function(h){var d,f;return(f=(d=h.match(/[\t ]/g))===null||d===void 0?void 0:d.length)!==null&&f!==void 0?f:0})):n},[]);if(o.length){var s=new RegExp(`
[ ]{`+Math.min.apply(Math,o)+"}","g");i=i.map(function(n){return n.replace(s,`
`)})}i[0]=i[0].replace(/^\r?\n/,"");var a=i[0];return t.forEach(function(n,l){var c=a.match(/(?:^|\n)( *)$/),h=c?c[1]:"",d=n;typeof n=="string"&&n.includes(`
`)&&(d=String(n).split(`
`).map(function(f,u){return u===0?f:""+h+f}).join(`
`)),a+=d+i[l+1]}),a}var $w={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},an=new Map,ip=new Map,Ow=p(e=>{for(const t of e){if(!t.name)throw new Error('Invalid icon loader. Must have a "name" property with non-empty string value.');if(P.debug("Registering icon pack:",t.name),"loader"in t)ip.set(t.name,t.loader);else if("icons"in t)an.set(t.name,t.icons);else throw P.error("Invalid icon loader:",t),new Error('Invalid icon loader. Must have either "icons" or "loader" property.')}},"registerIconPacks"),op=p(async(e,t)=>{const r=I2(e,!0,t!==void 0);if(!r)throw new Error(`Invalid icon name: ${e}`);const i=r.prefix||t;if(!i)throw new Error(`Icon name must contain a prefix: ${e}`);let o=an.get(i);if(!o){const a=ip.get(i);if(!a)throw new Error(`Icon set not found: ${r.prefix}`);try{o={...await a(),prefix:i},an.set(i,o)}catch(n){throw P.error(n),new Error(`Failed to load icon set: ${r.prefix}`)}}const s=P2(o,r.name);if(!s)throw new Error(`Icon not found: ${e}`);return s},"getRegisteredIconData"),Iw=p(async e=>{try{return await op(e),!0}catch{return!1}},"isIconAvailable"),co=p(async(e,t,r)=>{let i;try{i=await op(e,t?.fallbackPrefix)}catch(a){P.error(a),i=$w}const o=U2(i,t),s=V2(X2(o.body),{...o.attributes,...r});return ye(s,St())},"getIconSVG");function sp(e,{markdownAutoWrap:t}){const i=e.replace(/<br\/>/g,`
`).replace(/\n{2,}/g,`
`);return rp(i)}p(sp,"preprocessMarkdown");function ap(e){return e.split(/\\n|\n|<br\s*\/?>/gi).map(t=>t.trim().match(/<[^>]+>|[^\s<>]+/g)?.map(r=>({content:r,type:"normal"}))??[])}p(ap,"nonMarkdownToLines");function np(e,t={}){const r=sp(e,t),i=xt.lexer(r),o=[[]];let s=0;function a(n,l="normal"){n.type==="text"?n.text.split(`
`).forEach((h,d)=>{d!==0&&(s++,o.push([])),h.split(" ").forEach(f=>{f=f.replace(/&#39;/g,"'"),f&&o[s].push({content:f,type:l})})}):n.type==="strong"||n.type==="em"?n.tokens.forEach(c=>{a(c,n.type)}):n.type==="html"&&o[s].push({content:n.text,type:"normal"})}return p(a,"processNode"),i.forEach(n=>{n.type==="paragraph"?n.tokens?.forEach(l=>{a(l)}):n.type==="html"?o[s].push({content:n.text,type:"normal"}):o[s].push({content:n.raw,type:"normal"})}),o}p(np,"markdownToLines");function lp(e){return e?`<p>${e.replace(/\\n|\n/g,"<br />")}</p>`:""}p(lp,"nonMarkdownToHTML");function hp(e,{markdownAutoWrap:t}={}){const r=xt.lexer(e);function i(o){return o.type==="text"?t===!1?o.text.replace(/\n */g,"<br/>").replace(/ /g,"&nbsp;"):o.text.replace(/\n */g,"<br/>"):o.type==="strong"?`<strong>${o.tokens?.map(i).join("")}</strong>`:o.type==="em"?`<em>${o.tokens?.map(i).join("")}</em>`:o.type==="paragraph"?`<p>${o.tokens?.map(i).join("")}</p>`:o.type==="space"?"":o.type==="html"?`${o.text}`:o.type==="escape"?o.text:(P.warn(`Unsupported markdown: ${o.type}`),o.raw)}return p(i,"output"),r.map(i).join("")}p(hp,"markdownToHTML");function cp(e){return Intl.Segmenter?[...new Intl.Segmenter().segment(e)].map(t=>t.segment):[...e]}p(cp,"splitTextToChars");function dp(e,t){const r=cp(t.content);return gl(e,[],r,t.type)}p(dp,"splitWordToFitWidth");function gl(e,t,r,i){if(r.length===0)return[{content:t.join(""),type:i},{content:"",type:i}];const[o,...s]=r,a=[...t,o];return e([{content:a.join(""),type:i}])?gl(e,a,s,i):(t.length===0&&o&&(t.push(o),r.shift()),[{content:t.join(""),type:i},{content:r.join(""),type:i}])}p(gl,"splitWordToFitWidthRecursion");function up(e,t){if(e.some(({content:r})=>r.includes(`
`)))throw new Error("splitLineToFitWidth does not support newlines in the line");return ms(e,t)}p(up,"splitLineToFitWidth");function ms(e,t,r=[],i=[]){if(e.length===0)return i.length>0&&r.push(i),r.length>0?r:[];let o="";e[0].content===" "&&(o=" ",e.shift());const s=e.shift()??{content:" ",type:"normal"},a=[...i];if(o!==""&&a.push({content:o,type:"normal"}),a.push(s),t(a))return ms(e,t,r,a);if(i.length>0)r.push(i),e.unshift(s);else if(s.content){const[n,l]=dp(t,s);r.push([n]),l.content&&e.unshift(l)}return ms(e,t,r)}p(ms,"splitLineToFitWidthRecursion");function nn(e,t){t&&e.attr("style",t)}p(nn,"applyStyle");var Zh=16384;async function fp(e,t,r,i,o=!1,s=St()){const a=e.append("foreignObject");a.attr("width",`${Math.min(10*r,Zh)}px`),a.attr("height",`${Math.min(10*r,Zh)}px`);const n=a.append("xhtml:div"),l=Ui(t.label)?await Gc(t.label.replace(oo.lineBreakRegex,`
`),s):ye(t.label,s),c=t.isNode?"nodeLabel":"edgeLabel",h=n.append("span");h.html(l),nn(h,t.labelStyle),h.attr("class",`${c} ${i}`),nn(n,t.labelStyle),n.style("display","table-cell"),n.style("white-space","nowrap"),n.style("line-height","1.5"),r!==Number.POSITIVE_INFINITY&&(n.style("max-width",r+"px"),n.style("text-align","center")),n.attr("xmlns","http://www.w3.org/1999/xhtml"),o&&n.attr("class","labelBkg");let d=n.node().getBoundingClientRect();return d.width===r&&(n.style("display","table"),n.style("white-space","break-spaces"),n.style("width",r+"px"),d=n.node().getBoundingClientRect()),a.node()}p(fp,"addHtmlSpan");function Is(e,t,r,i=!1){const o=e.append("tspan").attr("class","text-outer-tspan").attr("x",0).attr("y",t*r-.1+"em").attr("dy",r+"em");return i&&o.attr("text-anchor","middle"),o}p(Is,"createTspan");function pp(e,t,r){const i=e.append("text"),o=Is(i,1,t);Ds(o,r);const s=o.node().getComputedTextLength();return i.remove(),s}p(pp,"computeWidthOfText");function Dw(e,t,r){const i=e.append("text"),o=Is(i,1,t);Ds(o,[{content:r,type:"normal"}]);const s=o.node()?.getBoundingClientRect();return s&&i.remove(),s}p(Dw,"computeDimensionOfText");function gp(e,t,r,i=!1,o=!1){const a=t.append("g"),n=a.insert("rect").attr("class","background").attr("style","stroke: none"),l=a.append("text").attr("y","-10.1");o&&l.attr("text-anchor","middle");let c=0;for(const h of r){const d=p(u=>pp(a,1.1,u)<=e,"checkWidth"),f=d(h)?[h]:up(h,d);for(const u of f){const g=Is(l,c,1.1,o);Ds(g,u),c++}}if(i){const h=l.node().getBBox(),d=2;return n.attr("x",h.x-d).attr("y",h.y-d).attr("width",h.width+2*d).attr("height",h.height+2*d),a.node()}else return l.node()}p(gp,"createFormattedText");function ln(e){const t=/&(amp|lt|gt);/g;return e.replace(t,(r,i)=>{switch(i){case"amp":return"&";case"lt":return"<";case"gt":return">";default:return r}})}p(ln,"decodeHTMLEntities");function Ds(e,t){e.text(""),t.forEach((r,i)=>{const o=e.append("tspan").attr("font-style",r.type==="em"?"italic":"normal").attr("class","text-inner-tspan").attr("font-weight",r.type==="strong"?"bold":"normal");i===0?o.text(ln(r.content)):o.text(" "+ln(r.content))})}p(Ds,"updateTextContentAndStyles");async function mp(e,t={}){const r=[];e.replace(/(fa[bklrs]?):fa-([\w-]+)/g,(o,s,a)=>(r.push((async()=>{const n=`${s}:${a}`;return await Iw(n)?await co(n,void 0,{class:"label-icon"}):`<i class='${ye(o,t).replace(":"," ")}'></i>`})()),o));const i=await Promise.all(r);return e.replace(/(fa[bklrs]?):fa-([\w-]+)/g,()=>i.shift()??"")}p(mp,"replaceIconSubstring");var Ye=p(async(e,t="",{style:r="",isTitle:i=!1,classes:o="",useHtmlLabels:s=!0,markdown:a=!0,isNode:n=!0,width:l=200,addSvgBackground:c=!1}={},h)=>{if(P.debug("XYZ createText",t,r,i,o,s,n,"addSvgBackground: ",c),s){const d=a?hp(t,h):lp(t),f=await mp(wr(d),h),u=t.replace(/\\\\/g,"\\"),g={isNode:n,label:Ui(t)?u:f,labelStyle:r.replace("fill:","color:")};return await fp(e,g,l,o,c,h)}else{const d=wr(t.replace(/<br\s*\/?>/g,"<br/>")),f=a?np(d.replace("<br>","<br/>"),h):ap(d),u=gp(l,e,f,t?c:!1,!n);if(n){/stroke:/.exec(r)&&(r=r.replace("stroke:","lineColor:"));const g=r.replace(/stroke:[^;]+;?/g,"").replace(/stroke-width:[^;]+;?/g,"").replace(/fill:[^;]+;?/g,"").replace(/color:/g,"fill:");ht(u).attr("style",g)}else{const g=r.replace(/stroke:[^;]+;?/g,"").replace(/stroke-width:[^;]+;?/g,"").replace(/fill:[^;]+;?/g,"").replace(/background:/g,"fill:");ht(u).select("rect").attr("style",g.replace(/background:/g,"fill:"));const m=r.replace(/stroke:[^;]+;?/g,"").replace(/stroke-width:[^;]+;?/g,"").replace(/fill:[^;]+;?/g,"").replace(/color:/g,"fill:");ht(u).select("text").attr("style",m)}return i?ht(u).selectAll("tspan.text-outer-tspan").classed("title-row",!0):ht(u).selectAll("tspan.text-outer-tspan").classed("row",!0),u}},"createText");function ua(e,t,r){if(e&&e.length){const[i,o]=t,s=Math.PI/180*r,a=Math.cos(s),n=Math.sin(s);for(const l of e){const[c,h]=l;l[0]=(c-i)*a-(h-o)*n+i,l[1]=(c-i)*n+(h-o)*a+o}}}function Rw(e,t){return e[0]===t[0]&&e[1]===t[1]}function Pw(e,t,r,i=1){const o=r,s=Math.max(t,.1),a=e[0]&&e[0][0]&&typeof e[0][0]=="number"?[e]:e,n=[0
M ${o.x},${o.y} L ${a.x},${a.y}`}p(Dp,"createLine");function Rp(e,t){const{labelStyles:r,nodeStyles:i}=Z(t);t.labelStyle=r,t.label="";const o=e.insert("g").attr("class",et(t)).attr("id",t.domId??t.id),s=Math.max(30,t?.width??0),{cssStyles:a}=t,n=j.svg(o),l=V(t,{});t.look!=="handDrawn"&&(l.roughness=0,l.fillStyle="solid");const c=n.circle(0,0,s*2,l),h=Dp(s),d=n.path(h,l),f=o.insert(()=>c,":first-child");return f.insert(()=>d),f.attr("class","outer-path"),a&&t.look!=="handDrawn"&&f.selectAll("path").attr("style",a),i&&t.look!=="handDrawn"&&f.selectAll("path").attr("style",i),K(t,f),t.intersect=function(u){return P.info("crossedCircle intersect",t,{radius:s,point:u}),G.circle(t,s,u)},o}p(Rp,"crossedCircle");function De(e,t,r,i=100,o=0,s=180){const a=[],n=o*Math.PI/180,h=(s*Math.PI/180-n)/(i-1);for(let d=0;d<i;d++){const f=n+d*h,u=e+r*Math.cos(f),g=t+r*Math.sin(f);a.push({x:-u,y:-g})}return a}p(De,"generateCirclePoints");async function Pp(e,t){const{labelStyles:r,nodeStyles:i}=Z(t);t.labelStyle=r;const{shapeSvg:o,bbox:s,label:a}=await rt(e,t,et(t)),n=t.look==="neo"?18:t.padding??0,l=t.look==="neo"?12:t.padding??0,c=s.width+n,h=s.height+l,d=Math.max(5,h*.1),{cssStyles:f}=t,u=[...De(c/2,-h/2,d,30,-90,0),{x:-c/2-d,y:d},...De(c/2+d*2,-d,d,20,-180,-270),...De(c/2+d*2,d,d,20,-90,-180),{x:-c/2-d,y:-h/2},...De(c/2,h/2,d,20,0,90)],g=[{x:c/2,y:-h/2-d},{x:-c/2,y:-h/2-d},...De(c/2,-h/2,d,20,-90,0),{x:-c/2-d,y:-d},...De(c/2+c*.1,-d,d,20,-180,-270),...De(c/2+c*.1,d,d,20,-90,-180),{x:-c/2-d,y:h/2},...De(c/2,h/2,d,20,0,90),{x:-c/2,y:h/2+d},{x:c/2,y:h/2+d}],m=j.svg(o),y=V(t,{fill:"none"});t.look!=="handDrawn"&&(y.roughness=0,y.fillStyle="solid");const b=ft(u).replace("Z",""),k=m.path(b,y),T=ft(g),S=m.path(T,{...y}),_=o.insert("g",":first-child");return _.insert(()=>S,":first-child").attr("stroke-opacity",0),_.insert(()=>k,":first-child"),_.attr("class","text"),f&&t.look!=="handDrawn"&&_.selectAll("path").attr("style",f),i&&t.look!=="handDrawn"&&_.selectAll("path").attr("style",i),_.attr("transform",`translate(${d}, 0)`),a.attr("transform",`translate(${-c/2+d-(s.x-(s.left??0))},${-h/2+(t.padding??0)/2-(s.y-(s.top??0))})`),K(t,_),t.intersect=function(A){return G.polygon(t,g,A)},o}p(Pp,"curlyBraceLeft");function Re(e,t,r,i=100,o=0,s=180){const a=[],n=o*Math.PI/180,h=(s*Math.PI/180-n)/(i-1);for(let d=0;d<i;d++){const f=n+d*h,u=e+r*Math.cos(f),g=t+r*Math.sin(f);a.push({x:u,y:g})}return a}p(Re,"generateCirclePoints");async function Np(e,t){const{labelStyles:r,nodeStyles:i}=Z(t);t.labelStyle=r;const{shapeSvg:o,bbox:s,label:a}=await rt(e,t,et(t)),n=t.look==="neo"?18:t.padding??0,l=t.look==="neo"?12:t.padding??0,c=s.width+(t.look==="neo"?n*2:n),h=s.height+(t.look==="neo"?l*2:l),d=Math.max(5,h*.1),{cssStyles:f}=t,u=[...Re(c/2,-h/2,d,20,-90,0),{x:c/2+d,y:-d},...Re(c/2+d*2,-d,d,20,-180,-270),...Re(c/2+d*2,d,d,20,-90,-180),{x:c/2+d,y:h/2},...Re(c/2,h/2,d,20,0,90)],g=[{x:-c/2,y:-h/2-d},{x:c/2,y:-h/2-d},...Re(c/2,-h/2,d,20,-90,0),{x:c/2+d,y:-d},...Re(c/2+d*2,-d,d,20,-180,-270),...Re(c/2+d*2,d,d,20,-90,-180),{x:c/2+d,y:h/2},...Re(c/2,h/2,d,20,0,90),{x:c/2,y:h/2+d},{x:-c/2,y:h/2+d}],m=j.svg(o),y=V(t,{fill:"none"});t.look!=="handDrawn"&&(y.roughness=0,y.fillStyle="solid");const b=ft(u).replace("Z",""),k=m.path(b,y),T=ft(g),S=m.path(T,{...y}),_=o.insert("g",":first-child");return _.insert(()=>S,":first-child").attr("stroke-opacity",0),_.insert(()=>k,":first-child"),_.attr("class","text"),f&&t.look!=="handDrawn"&&_.selectAll("path").attr("style",f),i&&t.look!=="handDrawn"&&_.selectAll("path").attr("style",i),_.attr("transform",`translate(${-d}, 0)`),a.attr("transform",`translate(${-c/2+(t.padding??0)/2-(s.x-(s.left??0))},${-h/2+(t.padding??0)/2-(s.y-(s.top??0))})`),K(t,_),t.intersect=function(A){return G.polygon(t,g,A)},o}p(Np,"curlyBraceRight");function Nt(e,t,r,i=100,o=0,s=180){const a=[],n=o*Math.PI/180,h=(s*Math.PI/180-n)/(i-1);for(let d=0;d<i;d++){const f=n+d*h,u=e+r*Math.cos(f),g=t+r*Math.sin(f);a.push({x:-u,y:-g})}return a}p(Nt,"generateCirclePoints");async function qp(e,t){const{labelStyles:r,nodeStyles:i}=Z(t);t.labelStyle=r;const{s
a${o},${s} 0,0,1 0,${-i}
l${r},0
a${o},${s} 0,0,1 0,${i}
M${r},${-i}
a${o},${s} 0,0,0 0,${i}
l${-r},0`,"createCylinderPathD"),kT=p((e,t,r,i,o,s)=>[`M${e},${t}`,`M${e+r},${t}`,`a${o},${s} 0,0,0 0,${-i}`,`l${-r},0`,`a${o},${s} 0,0,0 0,${i}`,`l${r},0`].join(" "),"createOuterCylinderPathD"),wT=p((e,t,r,i,o,s)=>[`M${e+r/2},${-i/2}`,`a${o},${s} 0,0,0 0,${i}`].join(" "),"createInnerCylinderPathD"),dc=5,uc=10;async function Lg(e,t){const{labelStyles:r,nodeStyles:i}=Z(t);t.labelStyle=r;const o=t.padding??0,s=t.look==="neo"?12:o/2;if(t.width||t.height){const m=t.height??0;t.height=(t.height??0)-s,t.height<dc&&(t.height=dc);const C=m/2/(2.5+m/50);t.width=(t.width??0)-s-C*3,t.width<uc&&(t.width=uc)}const{shapeSvg:a,bbox:n,label:l}=await rt(e,t,et(t)),c=(t.height?t.height:n.height)+s,h=c/2,d=h/(2.5+c/50),f=(t.width?t.width:n.width)+d+s,{cssStyles:u}=t;let g;if(t.look==="handDrawn"){const m=j.svg(a),y=kT(0,0,f,c,d,h),C=wT(0,0,f,c,d,h),b=m.path(y,V(t,{})),k=m.path(C,V(t,{fill:"none"}));g=a.insert(()=>k,":first-child"),g=a.insert(()=>b,":first-child"),g.attr("class","basic label-container"),u&&g.attr("style",u)}else{const m=bT(0,0,f,c,d,h);g=a.insert("path",":first-child").attr("d",m).attr("class","basic label-container").attr("style",Rt(u)).attr("style",i),g.attr("class","basic label-container outer-path"),u&&g.selectAll("path").attr("style",u),i&&g.selectAll("path").attr("style",i)}return g.attr("label-offset-x",d),g.attr("transform",`translate(${-f/2}, ${c/2} )`),l.attr("transform",`translate(${-(n.width/2)-d-(n.x-(n.left??0))}, ${-(n.height/2)-(n.y-(n.top??0))})`),K(t,g),t.intersect=function(m){const y=G.rect(t,m),C=y.y-(t.y??0);if(h!=0&&(Math.abs(C)<(t.height??0)/2||Math.abs(C)==(t.height??0)/2&&Math.abs(y.x-(t.x??0))>(t.width??0)/2-d)){let b=d*d*(1-C*C/(h*h));b!=0&&(b=Math.sqrt(Math.abs(b))),b=d-b,m.x-(t.x??0)>0&&(b=-b),y.x+=b}return y},a}p(Lg,"tiltedCylinder");async function Fg(e,t){const{labelStyles:r,nodeStyles:i}=Z(t);t.labelStyle=r;const o=t.padding??0,s=(t.look==="neo",o),a=t.look==="neo"?o*2:o,{shapeSvg:n,bbox:l}=await rt(e,t,et(t)),c=(t?.height??l.height)+s,h=(t?.width??l.width)+a,d=[{x:-3*c/6,y:0},{x:h+3*c/6,y:0},{x:h,y:-c},{x:0,y:-c}];let f;const{cssStyles:u}=t;if(t.look==="handDrawn"){const g=j.svg(n),m=V(t,{}),y=ft(d),C=g.path(y,m);f=n.insert(()=>C,":first-child").attr("transform",`translate(${-h/2}, ${c/2})`),u&&f.attr("style",u)}else f=Ue(n,h,c,d);return i&&f.attr("style",i),t.width=h,t.height=c,K(t,f),t.intersect=function(g){return G.polygon(t,d,g)},n}p(Fg,"trapezoid");async function Ag(e,t){const{labelStyles:r,nodeStyles:i}=Z(t);t.labelStyle=r;const o=t.padding??0,s=t.look==="neo"?16:o,a=t.look==="neo"?12:o,n=15,l=5;(t.width||t.height)&&(t.height=(t.height??0)-a*2,t.height<l&&(t.height=l),t.width=(t.width??0)-s*2,t.width<n&&(t.width=n));const{shapeSvg:c,bbox:h}=await rt(e,t,et(t)),d=(t?.width?t?.width:h.width)+s*2,f=(t?.height?t?.height:h.height)+a*2,{cssStyles:u}=t,g=j.svg(c),m=V(t,{});t.look!=="handDrawn"&&(m.roughness=0,m.fillStyle="solid");const y=[{x:-d/2*.8,y:-f/2},{x:d/2*.8,y:-f/2},{x:d/2,y:-f/2*.6},{x:d/2,y:f/2},{x:-d/2,y:f/2},{x:-d/2,y:-f/2*.6}],C=ft(y),b=g.path(C,m),k=c.insert(()=>b,":first-child");return k.attr("class","basic label-container outer-path"),u&&t.look!=="handDrawn"&&k.selectChildren("path").attr("style",u),i&&t.look!=="handDrawn"&&k.selectChildren("path").attr("style",i),K(t,k),t.intersect=function(T){return G.polygon(t,y,T)},c}p(Ag,"trapezoidalPentagon");var fc=10,pc=10;async function Eg(e,t){const{labelStyles:r,nodeStyles:i}=Z(t);t.labelStyle=r;const o=t.padding??0,s=t.look==="neo"?o*2:o;(t.width||t.height)&&(t.width=((t?.width??0)-s)/2,t.width<pc&&(t.width=pc),t.height=t?.height??0,t.height<fc&&(t.height=fc));const{shapeSvg:a,bbox:n,label:l}=await rt(e,t,et(t)),c=He(mt().flowchart?.htmlLabels),h=(t?.width?t?.width:n.width)+s,d=t?.height?t?.height:h+n.height,f=d,u=[{x:0,y:0},{x:f,y:0},{x:f/2,y:-d}],{cssStyles:g}=t,m=j.svg(a),y=V(t,{});t.look!=="handDrawn"&&(y.roughness=0,y.fillStyle="solid");const C=ft(u),b=m.path(C,y),k=a.insert(()=>b,":first-child").attr("transform",`translate(${-d/2}, ${d/2})`).attr("class","outer-path");return g&&t.look!=="handDrawn"&&k.selectChildren("pa
M${u-_t},${g} L${u+d},${g}
M${u},${g-_t} L${u},${g+f}`;t.look!=="handDrawn"&&(C.roughness=0,C.fillStyle="solid");const T=y.path(k,C),S=a.insert(()=>T,":first-child");return S.attr("transform",`translate(${_t/2}, ${_t/2})`),S.attr("class","basic label-container outer-path"),m&&t.look!=="handDrawn"&&S.selectAll("path").attr("style",m),i&&t.look!=="handDrawn"&&S.selectAll("path").attr("style",i),l.attr("transform",`translate(${-(n.width/2)+_t/2-(n.x-(n.left??0))}, ${-(n.height/2)+_t/2-(n.y-(n.top??0))})`),K(t,S),t.intersect=function(_){return G.polygon(t,b,_)},a}p(Og,"windowPane");var gc=new Set(["redux-color","redux-dark-color"]),TT=new Set(["redux","redux-dark","redux-color","redux-dark-color"]);async function xl(e,t){const r=t;r.alias&&(t.label=r.alias);const{theme:i,themeVariables:o}=St(),{rowEven:s,rowOdd:a,nodeBorder:n,borderColorArray:l}=o;if(t.look==="handDrawn"){const{themeVariables:X}=St(),{background:ct}=X,st={...t,id:t.id+"-background",domId:(t.domId||t.id)+"-background",look:"default",cssStyles:["stroke: none",`fill: ${ct}`]};await xl(e,st)}const c=St();t.useHtmlLabels=c.htmlLabels;let h=c.er?.diagramPadding??10,d=c.er?.entityPadding??6;const{cssStyles:f}=t,{labelStyles:u,nodeStyles:g}=Z(t);if(r.attributes.length===0&&t.label){const X={rx:0,ry:0,labelPaddingX:h,labelPaddingY:h*1.5};We(t.label,c)+X.labelPaddingX*2<c.er.minEntityWidth&&(t.width=c.er.minEntityWidth);const ct=await yi(e,t,X);if(i!=null&&gc.has(i)){const st=r.colorIndex??0;ct.attr("data-color-id",`color-${st%l.length}`)}if(!He(c.htmlLabels)){const st=ct.select("text"),bt=st.node()?.getBBox();st.attr("transform",`translate(${-bt.width/2}, 0)`)}return ct}c.htmlLabels||(h*=1.25,d*=1.25);let m=et(t);m||(m="node default");const y=e.insert("g").attr("class",m).attr("id",t.domId||t.id),C=await qr(y,t.label??"",c,0,0,["name"],u);C.height+=d;let b=0;const k=[],T=[];let S=0,_=0,A=0,v=0,q=!0,I=!0;for(const X of r.attributes){const ct=await qr(y,X.type,c,0,b,["attribute-type"],u);S=Math.max(S,ct.width+h);const st=await qr(y,X.name,c,0,b,["attribute-name"],u);_=Math.max(_,st.width+h);const bt=await qr(y,X.keys.join(),c,0,b,["attribute-keys"],u);A=Math.max(A,bt.width+h);const kt=await qr(y,X.comment,c,0,b,["attribute-comment"],u);v=Math.max(v,kt.width+h);const wt=Math.max(ct.height,st.height,bt.height,kt.height)+d;T.push({yOffset:b,rowHeight:wt}),b+=wt}let R=4;A<=h&&(q=!1,A=0,R--),v<=h&&(I=!1,v=0,R--);const H=y.node().getBBox();if(C.width+h*2-(S+_+A+v)>0){const X=C.width+h*2-(S+_+A+v);S+=X/R,_+=X/R,A>0&&(A+=X/R),v>0&&(v+=X/R)}const W=S+_+A+v,E=j.svg(y),F=V(t,{});t.look!=="handDrawn"&&(F.roughness=0,F.fillStyle="solid");let L=0;T.length>0&&(L=T.reduce((X,ct)=>X+(ct?.rowHeight??0),0));const M=Math.max(H.width+h*2,t?.width||0,W),D=Math.max((L??0)+C.height,t?.height||0),z=-M/2,Y=-D/2;if(y.selectAll("g:not(:first-child)").each((X,ct,st)=>{const bt=ht(st[ct]),kt=bt.attr("transform");let wt=0,le=0;if(kt){const Br=RegExp(/translate\(([^,]+),([^)]+)\)/).exec(kt);Br&&(wt=parseFloat(Br[1]),le=parseFloat(Br[2]),bt.attr("class").includes("attribute-name")?wt+=S:bt.attr("class").includes("attribute-keys")?wt+=S+_:bt.attr("class").includes("attribute-comment")&&(wt+=S+_+A))}bt.attr("transform",`translate(${z+h/2+wt}, ${le+Y+C.height+d/2})`)}),y.select(".name").attr("transform","translate("+-C.width/2+", "+(Y+d/2)+")"),i!=null&&gc.has(i)){const X=r.colorIndex??0;y.attr("data-color-id",`color-${X%l.length}`)}const lt=E.rectangle(z,Y,M,D,F),gt=y.insert(()=>lt,":first-child").attr("class","outer-path").attr("style",f.join(""));k.push(0);for(const[X,ct]of T.entries()){const bt=(X+1)%2===0&&ct.yOffset!==0,kt=E.rectangle(z,C.height+Y+ct?.yOffset,M,ct?.rowHeight,{...F,fill:bt?s:a,stroke:n});y.insert(()=>kt,"g.label").attr("style",f.join("")).attr("class",`row-rect-${bt?"even":"odd"}`)}const ut=1e-4;let tt=Wr(z,C.height+Y,M+z,C.height+Y,ut),Ct=E.polygon(tt.map(X=>[X.x,X.y]),F);if(y.insert(()=>Ct).attr("class","divider"),tt=Wr(S+z,C.height+Y,S+z,D+Y,ut),Ct=E.polygon(tt.map(X=>[X.x,X.y]),F),y.insert(()=>Ct).attr("class","divider"),q){const X=S+_+z;tt=Wr(X,C.height+Y,X,D+Y,ut),Ct=E.polygon(tt.map(ct
a${h},${h} 1 0,0 ${g*.25},${-1*m*.1}
a${h},${h} 1 0,0 ${g*.25},0
a${h},${h} 1 0,0 ${g*.25},0
a${h},${h} 1 0,0 ${g*.25},${m*.1}
a${h},${h} 1 0,0 ${g*.15},${m*.33}
a${h*.8},${h*.8} 1 0,0 0,${m*.34}
a${h},${h} 1 0,0 ${-1*g*.15},${m*.33}
a${h},${h} 1 0,0 ${-1*g*.25},${m*.15}
a${h},${h} 1 0,0 ${-1*g*.25},0
a${h},${h} 1 0,0 ${-1*g*.25},0
a${h},${h} 1 0,0 ${-1*g*.25},${-1*m*.15}
a${h},${h} 1 0,0 ${-1*g*.1},${-1*m*.33}
a${h*.8},${h*.8} 1 0,0 0,${-1*m*.34}
a${h},${h} 1 0,0 ${g*.1},${-1*m*.33}
H0 V0 Z`;if(t.look==="handDrawn"){const b=j.svg(o),k=V(t,{}),T=b.path(C,k);y=o.insert(()=>T,":first-child"),y.attr("class","basic label-container").attr("style",Rt(d))}else y=o.insert("path",":first-child").attr("class","basic label-container").attr("style",i).attr("d",C);return y.attr("transform",`translate(${-g/2}, ${-m/2})`),K(t,y),t.calcIntersect=function(b,k){return G.rect(b,k)},t.intersect=function(b){return P.info("Bang intersect",t,b),G.rect(t,b)},o}p(Ng,"bang");async function qg(e,t){const{labelStyles:r,nodeStyles:i}=Z(t);t.labelStyle=r;const{shapeSvg:o,bbox:s,halfPadding:a,label:n}=await rt(e,t,et(t)),l=s.width+2*a,c=s.height+2*a,h=.15*l,d=.25*l,f=.35*l,u=.2*l,{cssStyles:g}=t;let m;const y=`M0 0
a${h},${h} 0 0,1 ${l*.25},${-1*l*.1}
a${f},${f} 1 0,1 ${l*.4},${-1*l*.1}
a${d},${d} 1 0,1 ${l*.35},${l*.2}
a${h},${h} 1 0,1 ${l*.15},${c*.35}
a${u},${u} 1 0,1 ${-1*l*.15},${c*.65}
a${d},${h} 1 0,1 ${-1*l*.25},${l*.15}
a${f},${f} 1 0,1 ${-1*l*.5},0
a${h},${h} 1 0,1 ${-1*l*.25},${-1*l*.15}
a${h},${h} 1 0,1 ${-1*l*.1},${-1*c*.35}
a${u},${u} 1 0,1 ${l*.1},${-1*c*.65}
H0 V0 Z`;if(t.look==="handDrawn"){const C=j.svg(o),b=V(t,{}),k=C.path(y,b);m=o.insert(()=>k,":first-child"),m.attr("class","basic label-container").attr("style",Rt(g))}else m=o.insert("path",":first-child").attr("class","basic label-container").attr("style",i).attr("d",y);return n.attr("transform",`translate(${-s.width/2}, ${-s.height/2})`),m.attr("transform",`translate(${-l/2}, ${-c/2})`),K(t,m),t.calcIntersect=function(C,b){return G.rect(C,b)},t.intersect=function(C){return P.info("Cloud intersect",t,C),G.rect(t,C)},o}p(qg,"cloud");async function Wg(e,t){const{labelStyles:r,nodeStyles:i}=Z(t);t.labelStyle=r;const{shapeSvg:o,bbox:s,halfPadding:a,label:n}=await rt(e,t,et(t)),l=s.width+8*a,c=s.height+2*a,h=5,d=t.look==="neo"?`
M${-l/2} ${c/2-h}
v${-c+2*h}
q0,-${h} ${h},-${h}
h${l-2*h}
q${h},0 ${h},${h}
v${c-h}
H${-l/2}
Z
`:`
M${-l/2} ${c/2-h}
v${-c+2*h}
q0,-${h} ${h},-${h}
h${l-2*h}
q${h},0 ${h},${h}
v${c-2*h}
q0,${h} ${-h},${h}
h${-(l-2*h)}
q${-h},0 ${-h},${-h}
Z
`;if(!t.domId)throw new Error(`defaultMindmapNode: node "${t.id}" is missing a domId was render.ts domId prefixing skipped?`);const f=o.append("path").attr("id",t.domId).attr("class","node-bkg node-"+t.type).attr("style",i).attr("d",d);return o.append("line").attr("class","node-line-").attr("x1",-l/2).attr("y1",c/2).attr("x2",l/2).attr("y2",c/2),n.attr("transform",`translate(${-s.width/2}, ${-s.height/2})`),o.append(()=>n.node()),K(t,f),t.calcIntersect=function(u,g){return G.rect(u,g)},t.intersect=function(u){return G.rect(t,u)},o}p(Wg,"defaultMindmapNode");async function zg(e,t){const r={padding:t.padding??0};return Cl(e,t,r)}p(zg,"mindmapCircle");var _T=[{semanticName:"Process",name:"Rectangle",shortName:"rect",description:"Standard process shape",aliases:["proc","process","rectangle"],internalAliases:["squareRect"],handler:xg},{semanticName:"Event",name:"Rounded Rectangle",shortName:"rounded",description:"Represents an event",aliases:["event"],internalAliases:["roundedRect"],handler:mg},{semanticName:"Terminal Point",name:"Stadium",shortName:"stadium",description:"Terminal point",aliases:["terminal","pill"],handler:bg},{semanticName:"Subprocess",name:"Framed Rectangle",shortName:"fr-rect",description:"Subprocess",aliases:["subprocess","subproc","framed-rectangle","subroutine"],handler:Sg},{semanticName:"Database",name:"Cylinder",shortName:"cyl",description:"Database storage",aliases:["db","database","cylinder"],handler:zp},{semanticName:"Data Store",name:"Data Store",shortName:"datastore",description:"Data flow diagram data store",aliases:["data-store"],handler:Hp},{semanticName:"Start",name:"Circle",shortName:"circle",description:"Starting point",aliases:["circ"],handler:Cl},{semanticName:"Bang",name:"Bang",shortName:"bang",description:"Bang",aliases:["bang"],handler:Ng},{semanticName:"Cloud",name:"Cloud",shortName:"cloud",description:"cloud",aliases:["cloud"],handler:qg},{semanticName:"Decision",name:"Diamond",shortName:"diam",description:"Decision-making step",aliases:["decision","diamond","question"],handler:fg},{semanticName:"Prepare Conditional",name:"Hexagon",shortName:"hex",description:"Preparation or condition step",aliases:["hexagon","prepare"],handler:Zp},{semanticName:"Data Input/Output",name:"Lean Right",shortName:"lean-r",description:"Represents input or output",aliases:["lean-right","in-out"],internalAliases:["lean_right"],handler:ag},{semanticName:"Data Input/Output",name:"Lean Left",shortName:"lean-l",description:"Represents output or input",aliases:["lean-left","out-in"],internalAliases:["lean_left"],handler:sg},{semanticName:"Priority Action",name:"Trapezoid Base Bottom",shortName:"trap-b",description:"Priority action",aliases:["priority","trapezoid-bottom","trapezoid"],handler:Fg},{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:ig},{semanticName:"Stop",name:"Double Circle",shortName:"dbl-circ",description:"Represents a stop point",aliases:["double-circle"],internalAliases:["doublecircle"],handler:Up},{semanticName:"Text Block",name:"Text Block",shortName:"text",description:"Text block",handler:vg},{semanticName:"Card",name:"Notched Rectangle",shortName:"notch-rect",description:"Represents a card",aliases:["card","notched-rectangle"],handler:Op},{semanticName:"Lined/Shaded Process",name:"Lined Rectangle",shortName:"lin-rect",description:"Lined process shape",aliases:["lined-rectangle","lined-process","lin-proc","shaded-process"],handler:yg},{semanticName:"Start",name:"Small Circle",shortName:"sm-circ",description:"Small starting point",aliases:["start","small-circle"],internalAliases:["stateStart"],handler:Tg},{semanticName:"Stop",name:"Framed Circle",shortName:"fr-circ",description:"Stop point",aliases:["stop","framed-circle"],internalAliases:["stateEnd"],handler:wg},{semanticName:"Fork/Join",name:"Filled Rectangle",shortName:"fork",description:"Fork or join in process flow",aliases:["join"],internalAliases:["forkJoin"],handler:Xp},
outsidePoint: ${JSON.stringify(t)}
insidePoint : ${JSON.stringify(r)}
node : x:${e.x} y:${e.y} w:${e.width} h:${e.height}`);const i=e.x,o=e.y,s=Math.abs(i-r.x),a=e.width/2;let n=r.x<t.x?a-s:a+s;const l=e.height/2,c=Math.abs(t.y-r.y),h=Math.abs(t.x-r.x);if(Math.abs(o-t.y)*a>Math.abs(i-t.x)*l){let d=r.y<t.y?t.y-l-o:o-l-t.y;n=h*d/c;const f={x:r.x<t.x?r.x+n:r.x-h+n,y:r.y<t.y?r.y+c-d:r.y-c+d};return n===0&&(f.x=t.x,f.y=t.y),h===0&&(f.x=t.x),c===0&&(f.y=t.y),P.debug(`abc89 top/bottom calc, Q ${c}, q ${d}, R ${h}, r ${n}`,f),f}else{r.x<t.x?n=t.x-a-i:n=i-a-t.x;let d=c*n/h,f=r.x<t.x?r.x+h-n:r.x-h+n,u=r.y<t.y?r.y+d:r.y-d;return P.debug(`sides calc abc89, Q ${c}, q ${d}, R ${h}, r ${n}`,{_x:f,_y:u}),n===0&&(f=t.x,u=t.y),h===0&&(f=t.x),c===0&&(u=t.y),{x:f,y:u}}},"intersection"),yc=p((e,t)=>{P.warn("abc88 cutPathAtIntersect",e,t);let r=[],i=e[0],o=!1;return e.forEach(s=>{if(P.info("abc88 checking point",s,t),!OT(t,s)&&!o){const a=IT(t,i,s);P.debug("abc88 inside",s,i,a),P.debug("abc88 intersection",a,t);let n=!1;r.forEach(l=>{n=n||l.x===a.x&&l.y===a.y}),r.some(l=>l.x===a.x&&l.y===a.y)?P.warn("abc88 no intersect",a,r):r.push(a),o=!0}else P.warn("abc88 outside",s,i),i=s,o||r.push(s)}),P.debug("returning points",r),r},"cutPathAtIntersect");function Ug(e){const t=[],r=[];for(let i=1;i<e.length-1;i++){const o=e[i-1],s=e[i],a=e[i+1];(o.x===s.x&&s.y===a.y&&Math.abs(s.x-a.x)>5&&Math.abs(s.y-o.y)>5||o.y===s.y&&s.x===a.x&&Math.abs(s.x-o.x)>5&&Math.abs(s.y-a.y)>5)&&(t.push(s),r.push(i))}return{cornerPoints:t,cornerPointPositions:r}}p(Ug,"extractCornerPoints");var Cc=p(function(e,t,r){const i=t.x-e.x,o=t.y-e.y,s=Math.sqrt(i*i+o*o),a=r/s;return{x:t.x-a*i,y:t.y-a*o}},"findAdjacentPoint"),DT=p(function(e){const{cornerPointPositions:t}=Ug(e),r=[];for(let i=0;i<e.length;i++)if(t.includes(i)){const o=e[i-1],s=e[i+1],a=e[i],n=Cc(o,a,5),l=Cc(s,a,5),c=l.x-n.x,h=l.y-n.y;r.push(n);const d=Math.sqrt(2)*2;let f={x:a.x,y:a.y};if(Math.abs(s.x-o.x)>10&&Math.abs(s.y-o.y)>=10){P.debug("Corner point fixing",Math.abs(s.x-o.x),Math.abs(s.y-o.y));const u=5;a.x===n.x?f={x:c<0?n.x-u+d:n.x+u-d,y:h<0?n.y-d:n.y+d}:f={x:c<0?n.x-d:n.x+d,y:h<0?n.y-u+d:n.y+u-d}}else P.debug("Corner point skipping fixing",Math.abs(s.x-o.x),Math.abs(s.y-o.y));r.push(f,l)}else r.push(e[i]);return r},"fixCorners"),RT=p((e,t,r)=>{const i=e-t-r,o=2,s=2,a=o+s,n=Math.floor(i/a),l=Array(n).fill(`${o} ${s}`).join(" ");return`0 ${t} ${l} ${r}`},"generateDashArray"),PT=p(function(e,t,r,i,o,s,a,n=!1){if(!a)throw new Error(`insertEdge: missing diagramId for edge "${t.id}" edge IDs require a diagram prefix for uniqueness`);const{handDrawnSeed:l}=mt();let c=t.points,h=!1;const d=o;var f=s;const u=[];for(const M in t.cssCompiledStyles)Hf(M)||u.push(t.cssCompiledStyles[M]);P.debug("UIO intersect check",t.points,f.x,d.x),f.intersect&&d.intersect&&!n&&(c=c.slice(1,t.points.length-1),c.unshift(d.intersect(c[0])),P.debug("Last point UIO",t.start,"-->",t.end,c[c.length-1],f,f.intersect(c[c.length-1])),c.push(f.intersect(c[c.length-1])));const g=btoa(JSON.stringify(c));t.toCluster&&(P.info("to cluster abc88",r.get(t.toCluster)),c=yc(t.points,r.get(t.toCluster).node),h=!0),t.fromCluster&&(P.debug("from cluster abc88",r.get(t.fromCluster),JSON.stringify(c,null,2)),c=yc(c.reverse(),r.get(t.fromCluster).node).reverse(),h=!0);let m=c.filter(M=>!Number.isNaN(M.y));const y=ET(t.curve);y!=="rounded"&&(m=DT(m));let C=zi;switch(y){case"linear":C=zi;break;case"basis":C=Pa;break;case"cardinal":C=Fd;break;case"bumpX":C=Sd;break;case"bumpY":C=_d;break;case"catmullRom":C=Ed;break;case"monotoneX":C=Rd;break;case"monotoneY":C=Pd;break;case"natural":C=qd;break;case"step":C=Wd;break;case"stepAfter":C=Hd;break;case"stepBefore":C=zd;break;case"rounded":C=zi;break;default:C=Pa}const{x:b,y:k}=M1(t),T=gk().x(b).y(k).curve(C);let S;switch(t.thickness){case"normal":S="edge-thickness-normal";break;case"thick":S="edge-thickness-thick";break;case"invisible":S="edge-thickness-invisible";break;default:S="edge-thickness-normal"}switch(t.pattern){case"solid":S+=" edge-pattern-solid";break;case"dotted":S+=" edge-pattern-dotted";break;case"dashed":S+=" edge-pattern-dashed";break;default:S+=" edge-pattern-s
L20,10
M20,10
L0,20`)},"requirement_arrow"),sS=p((e,t,r)=>{const i=St(),{themeVariables:o}=i,{strokeWidth:s}=o;e.append("defs").append("marker").attr("id",r+"_"+t+"-requirement_arrowEnd").attr("refX",20).attr("refY",10).attr("markerWidth",20).attr("markerHeight",20).attr("orient","auto").attr("markerUnits","userSpaceOnUse").attr("stroke-width",`${s}`).attr("viewBox","0 0 25 20").append("path").attr("d",`M0,0
L20,10
M20,10
L0,20`).attr("stroke-linejoin","miter")},"requirement_arrow_neo"),aS=p((e,t,r)=>{const i=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"),nS=p((e,t,r)=>{const i=St(),{themeVariables:o}=i,{strokeWidth:s}=o,a=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").attr("markerUnits","userSpaceOnUse").append("g");a.append("circle").attr("cx",10).attr("cy",10).attr("r",9).attr("fill","none"),a.append("line").attr("x1",1).attr("x2",19).attr("y1",10).attr("y2",10),a.append("line").attr("y1",1).attr("y2",19).attr("x1",10).attr("x2",10),a.selectAll("*").attr("stroke-width",`${s}`)},"requirement_contains_neo"),lS={extension:qT,composition:WT,aggregation:zT,dependency:HT,lollipop:YT,point:UT,circle:GT,cross:jT,barb:XT,barbNeo:VT,only_one:ZT,zero_or_one:KT,one_or_more:QT,zero_or_more:JT,only_one_neo:tS,zero_or_one_neo:eS,one_or_more_neo:rS,zero_or_more_neo:iS,requirement_arrow:oS,requirement_contains:aS,requirement_arrow_neo:sS,requirement_contains_neo:nS},hS=NT,cS={common:oo,getConfig:St,insertCluster:nT,insertEdge:PT,insertEdgeLabel:MT,insertMarkers:hS,insertNode:Yg,interpolateToCurve:Jn,labelHelper:rt,log:P,positionEdgeLabel:$T},eo={},Xg=p(e=>{for(const t of e)eo[t.name]=t},"registerLayoutLoaders"),dS=p(()=>{Xg([{name:"dagre",loader:p(async()=>await pt(()=>import("./dagre-BM42HDAG.FiuH4QXS.js"),__vite__mapDeps([0,1,2,3])),"loader")},{name:"cose-bilkent",loader:p(async()=>await pt(()=>import("./cose-bilkent-S5V4N54A.qsLniikW.js"),__vite__mapDeps([4,5,3])),"loader")}])},"registerDefaultLayoutLoaders");dS();var oL=p(async(e,t)=>{if(!(e.layoutAlgorithm in eo))throw new Error(`Unknown layout algorithm: ${e.layoutAlgorithm}`);if(e.diagramId)for(const h of e.nodes){const d=h.domId||h.id;h.domId=`${e.diagramId}-${d}`}const r=eo[e.layoutAlgorithm],i=await r.loader(),{theme:o,themeVariables:s}=e.config,{useGradient:a,gradientStart:n,gradientStop:l}=s,c=t.attr("id");if(t.append("defs").append("filter").attr("id",`${c}-drop-shadow`).attr("height","130%").attr("width","130%").append("feDropShadow").attr("dx","4").attr("dy","4").attr("stdDeviation",0).attr("flood-opacity","0.06").attr("flood-color",`${o?.includes("dark")?"#FFFFFF":"#000000"}`),t.append("defs").append("filter").attr("id",`${c}-drop-shadow-small`).attr("height","150%").attr("width","150%").append("feDropShadow").attr("dx","2").attr("dy","2").attr("stdDeviation",0).attr("flood-opacity","0.06").attr("flood-color",`${o?.includes("dark")?"#FFFFFF":"#000000"}`),a){const h=t.append("linearGradient").attr("id",t.attr("id")+"-gradient").attr("gradientUnits","objectBoundingBox").attr("x1","0%").attr("y1","0%").attr("x2","100%").attr("y2","0%");h.append("svg:stop").attr("offset","0%").attr("stop-color",n).attr("stop-opacity",1),h.append("svg:stop").attr("offset","100%").attr("stop-color",l).attr("stop-opacity",1)}return i.render(e,t,cS,{algorithm:r.algorithm})},"render"),sL=p((e="",{fallback:t="dagre"}={})=>{if(e in eo)return e;if(t in eo)return P.warn(`Layout algorithm ${e} is not registered. Using ${t} as fallback.`),t;throw new Error(`Both layout algorithms ${e} and ${t} are not registered.`)},"getRegisteredLayoutAlgorithm"),bl="comm",Vg="rule",Zg="decl",uS="@media",fS="@import",pS="@supports",gS="@namespace",mn="@keyframes",Kg="@layer",mS="@scope",yS=Math.abs,Yi=String.fromCharCode;function Qg(e){return e.trim()}function yn(e,t,r){return e.replace(t,r)}function Gr(e,t){return e.charCodeAt(t)|0}function fi(e,t,r){return e.slice(t,r)}function Se(e){return e.length}function Jg(e){return e.length}function Eo(e,t){return t.push(e),e}var Ns=1,pi=1,tm=0,ne=0,At=0,Ci="";funct
`);const i=Sk(t),o=i.append("g");i.attr("viewBox","0 0 2412 512"),jc(i,100,512,!0),o.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"),o.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"),o.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"),o.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"),o.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"),o.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"),o.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"),o.append("text").attr("class","error-text").attr("x",1250).attr("y",400).attr("font-size","100px").style("text-anchor","middle").text(`mermaid version ${r}`)},"draw"),Cm={draw:z_},H_=Cm,Y_={db:{},renderer:Cm,parser:{parse:p(()=>{},"parse")}},U_=Y_,xm="flowchart-elk",G_=p((e,t={})=>/^\s*flowchart-elk/.test(e)||/^\s*(flowchart|graph)/.test(e)&&t?.flowchart?.defaultRenderer==="elk"?(t.layout="elk",!0):!1,"detector"),j_=p(async()=>{const{diagram:e}=await pt(async()=>{const{diagram:t}=await import("./flowDiagram-I6XJVG4X.BjoZOoBC.js");return{diagram:t}},__vite__mapDeps([8,9,7,10,11,12,3]));return{id:xm,diagram:e}},"loader"),X_={id:xm,detector:G_,loader:j_},V_=X_,bm="timeline",Z_=p(e=>/^\s*timeline/.test(e),"detector"),K_=p(async()=>{const{diagram:e}=await pt(async()=>{const{diagram:t}=await import("./timeline-definition-PNZ67QCA.BoEQswdq.js");return{diagram:t}},__vite__mapDeps([37,24,3]));return{id:bm,diagram:e}},"loader"),Q_={id:bm,detector:Z_,loader:K_},J_=Q_,km="mindmap",tB=p(e=>/^\s*mindmap/.test(e),"detector"),eB=p(async()=>{const{diagram:e}=await pt(async()=>{const{diagram:t}=await import("./mindmap-definition-RKZ34NQL.BROqEtdv.js");return{diagram:t}},__vite__mapDeps([38,10,11,3]));return{id:km,diagram:e}},"loader"),rB={id:km,detector:tB,loader:eB},iB=rB,wm="kanban",oB=p(e=>/^\s*kanban/.test(e),"detector"),sB=p(async()=>{const{diagram:e}=await pt(async()=>{const{diagram:t}=await import("./kanban-definition-UN3LZRKU.D-uH5JSC.js");return{diagram:t}},__vite__mapDeps([39,9,3]));return{id:wm,diagram:e}},"loader"),aB={id:wm,detector:oB,loader:sB},nB=aB,Tm="sankey",lB=p(e=>/^\s*sankey(-beta)?/.test(e),"detector"),hB=p(async()=>{const{diagram:e}=await pt(async()=>{const{diagram:t}=await import("./sankeyDiagram-5OEKKPKP.CoZZEu8Z.js");return{diagram:t}},__vite__mapDeps([40,25,20,3]));return{id:Tm,diagram:e}},"loader"),cB={id:Tm,detector:lB,loader:hB},dB=cB,Sm="packet",uB=p(e=>/^\s*packet(-beta)?/.test(e),"detector"),fB=p(async()=>{const{diagram:e}=await pt(async()=>{const{diagram:t}=await import("./diagram-LMA3HP47.D36vmBiE.js");return{diagram:t}},__vite__mapDeps([41,15,17,3]));return{id:Sm,diagram:e}},"loader"),pB
`;try{La(o)}catch{const c=Yy(o);if(!c)throw new Mc(`Diagram ${o} not found.`);const{id:h,diagram:d}=await c();Zo(h,d)}const{db:s,parser:a,renderer:n,init:l}=La(o);return a.parser&&(a.parser.yy=s),s.clear?.(),l?.(i),r.title&&s.setDiagramTitle?.(r.title),await a.parse(t),new yr(o,t,s,a,n)}async render(t,r){await this.renderer.draw(this.text,t,r,this)}getParser(){return this.parser}getType(){return this.type}},p(yr,"Diagram"),yr),wc=[],ZB=p(()=>{wc.forEach(e=>{e()}),wc=[]},"attachFunctions"),KB=p(e=>e.replace(/^\s*%%(?!{)[^\n]+\n?/gm,"").trimStart(),"cleanupComments");function Dm(e){const t=e.match(Ec);if(!t)return{text:e,metadata:{}};let r=E1(t[1],{schema:A1})??{};r=typeof r=="object"&&!Array.isArray(r)?r:{};const i={};return r.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(Dm,"extractFrontMatter");var QB=p(e=>e.replace(/\r\n?/g,`
`).replace(/<(\w+)([^>]*)>/g,(t,r,i)=>"<"+r+i.replace(/="([^"]*)"/g,"='$1'")+">"),"cleanupText"),JB=p(e=>{const{text:t,metadata:r}=Dm(e),{displayMode:i,title:o,config:s={}}=r;return i&&(s.gantt||(s.gantt={}),s.gantt.displayMode=i),{title:o,config:s,text:t}},"processFrontmatter"),tv=p(e=>{const t=pe.detectInit(e)??{},r=pe.detectDirective(e,"wrap");return Array.isArray(r)?t.wrap=r.some(({type:i})=>i==="wrap"):r?.type==="wrap"&&(t.wrap=!0),{text:p2(e),directive:t}},"processDirectives");function wl(e){const t=QB(e),r=JB(t),i=tv(r.text),o=ol(r.config,i.directive);return e=KB(i.text),{code:e,title:r.title,config:o}}p(wl,"preprocessDiagram");function Rm(e){const t=new TextEncoder().encode(e),r=Array.from(t,i=>String.fromCodePoint(i)).join("");return btoa(r)}p(Rm,"toBase64");var ev=5e4,rv="graph TB;a[Maximum text size in diagram exceeded];style a fill:#faa",iv="sandbox",ov="loose",sv="http://www.w3.org/2000/svg",av="http://www.w3.org/1999/xlink",nv="http://www.w3.org/1999/xhtml",lv="100%",hv="100%",cv="border:0;margin:0;",dv="margin:0",uv="allow-top-navigation-by-user-activation allow-popups",fv='The "iframe" tag is not supported by your browser.',pv=["foreignobject"],gv=["dominant-baseline"];function Tl(e){const t=wl(e);return Xo(),y0(t.config??{}),t}p(Tl,"processAndSetConfigs");async function Pm(e,t){Ws();try{const{code:r,config:i}=Tl(e);return{diagramType:(await qm(r)).type,config:i}}catch(r){if(t?.suppressErrors)return!1;throw r}}p(Pm,"parse");var Tc=p((e,t,r=[])=>{const i=Rc(`{ ${r.join(" !important; ")} !important; }`);return`.${e} ${t} ${i}`},"cssImportantStyles"),mv=p((e,t=new Map)=>{const r=new CSSStyleSheet;if(e.fontFamily!==void 0&&r.insertRule(`:root { --mermaid-font-family: ${e.fontFamily}}`,r.cssRules.length),e.altFontFamily!==void 0&&r.insertRule(`:root { --mermaid-alt-font-family: ${e.altFontFamily}}`,r.cssRules.length),t instanceof Map){const n=Zt(e)?["> *","span"]:["rect","polygon","ellipse","circle","path"];t.forEach(l=>{Rh(l.styles)||n.forEach(c=>{r.insertRule(Tc(l.id,c,l.styles),r.cssRules.length)}),Rh(l.textStyles)||r.insertRule(Tc(l.id,"tspan",(l?.textStyles||[]).map(c=>c.replace("color","fill"))),r.cssRules.length)})}let i="";if(e.themeCSS!==void 0)if(typeof r.replaceSync=="function"){const o=new CSSStyleSheet;o.replaceSync(e.themeCSS),i=va(o)+`
`}else i+=`${e.themeCSS}
`;return i+va(r)},"createCssStyles"),yv=p((e,t)=>xn(BS(`${e}{${t}}`),FS([p(function(i,o,s,a){if(i.type==="rule"&&Array.isArray(i.props)){if(i.parent&&i.parent.type===mn)return;i.props=i.props.map(n=>n.startsWith(e)?n:`${e} ${n}`)}else i.type.startsWith("@")&&([...[uS,pS,Kg,mS,"@container","@starting-style"],mn].includes(i.type)||(P.warn(`Removing unsupported at-rule ${i.type} from CSS`),i.type=bl))},"addNamespace"),LS])),"compileCSS"),Cv=p((e,t,r,i)=>{const o=mv(e,r),s=D0(t,o,{...e.themeVariables,theme:e.theme,look:e.look},i);return yv(i,s)},"createUserStyles"),xv=p((e="",t,r)=>{let i=e;return!r&&!t&&(i=i.replace(/marker-end="url\([\d+./:=?A-Za-z-]*?#/g,'marker-end="url(#')),i=wr(i),i=i.replace(/<br>/g,"<br/>"),i},"cleanUpSvgCode"),bv=p((e="",t)=>{const r=t?.viewBox?.baseVal?.height?t.viewBox.baseVal.height+"px":hv,i=Rm(`<body style="${dv}">${e}</body>`);return`<iframe style="width:${lv};height:${r};${cv}" src="data:text/html;charset=UTF-8;base64,${i}" sandbox="${uv}">
${fv}
</iframe>`},"putIntoIFrame"),Sc=p((e,t,r,i,o)=>{const s=e.append("div");s.attr("id",r),i&&s.attr("style",i);const a=s.append("svg").attr("id",t).attr("width","100%").attr("xmlns",sv);return o&&a.attr("xmlns:xlink",o),a.append("g"),e},"appendDivSvgG");function kn(e,t){return e.append("iframe").attr("id",t).attr("style","width: 100%; height: 100%;").attr("sandbox","")}p(kn,"sandboxedIframe");var kv=p((e,t,r,i)=>{e.getElementById(t)?.remove(),e.getElementById(r)?.remove(),e.getElementById(i)?.remove()},"removeExistingElements"),wv=p(async function(e,t,r){Ws();const i=Tl(t);t=i.code;const o=St();P.debug(o),t.length>(o?.maxTextSize??ev)&&(t=rv);const s=`#${e}`,a="i"+e,n="#"+a,l="d"+e,c="#"+l,h=p(()=>{const W=ht(f?n:c).node();W&&"remove"in W&&W.remove()},"removeTempElements");let d=ht(document.body);const f=o.securityLevel===iv,u=o.securityLevel===ov,g=o.fontFamily;if(r!==void 0){if(r&&(r.innerHTML=""),f){const H=kn(ht(r),a);d=ht(H.nodes()[0].contentDocument.body),d.node().style.margin="0"}else d=ht(r);Sc(d,e,l,`font-family: ${g}`,av)}else{if(kv(document,e,l,a),f){const H=kn(ht(document.body),a);d=ht(H.nodes()[0].contentDocument.body),d.node().style.margin="0"}else d=ht("body");Sc(d,e,l)}let m,y;try{m=await bn.fromText(t,{title:i.title})}catch(H){if(o.suppressErrorRendering)throw h(),H;m=await bn.fromText("error"),y=H}const C=d.select(c).node(),b=m.type,k=C.firstChild,T=k.firstChild,S=m.renderer.getClasses?.(t,m),_=Cv(o,b,S,s),A=document.createElement("style");A.innerHTML=_,k.insertBefore(A,T);try{await m.renderer.draw(t,e,"11.15.0",m)}catch(H){throw o.suppressErrorRendering?h():H_.draw(t,e,"11.15.0"),H}const v=d.select(`${c} svg`),q=m.db.getAccTitle?.(),I=m.db.getAccDescription?.();Wm(b,v,q,I),d.select(`[id="${e}"]`).selectAll("foreignobject > *").attr("xmlns",nv);let R=d.select(c).node().innerHTML;if(P.debug("config.arrowMarkerAbsolute",o.arrowMarkerAbsolute),R=xv(R,f,He(o.arrowMarkerAbsolute)),f){const H=d.select(c+" svg").node();R=bv(R,H)}else u||(R=ni.sanitize(R,{ADD_TAGS:pv,ADD_ATTR:gv,HTML_INTEGRATION_POINTS:{foreignobject:!0}}));if(ZB(),y)throw y;return h(),{diagramType:b,svg:R,bindFunctions:m.db.bindFunctions}},"render");function Nm(e={}){const t=Ot({},e);t?.fontFamily&&!t.themeVariables?.fontFamily&&(t.themeVariables||(t.themeVariables={}),t.themeVariables.fontFamily=t.fontFamily),g0(t),t?.theme&&t.theme in Pe?t.themeVariables=Pe[t.theme].getThemeVariables(t.themeVariables):t&&(t.themeVariables=Pe.default.getThemeVariables(t.themeVariables));const r=typeof t=="object"?p0(t):Pc();wn(r.logLevel),Ws()}p(Nm,"initialize");var qm=p((e,t={})=>{const{code:r}=wl(e);return bn.fromText(r,t)},"getDiagramFromText");function Wm(e,t,r,i){Om(t,e),Im(t,r,i,t.attr("id"))}p(Wm,"addA11yInfo");var Sr=Object.freeze({render:wv,parse:Pm,getDiagramFromText:qm,initialize:Nm,getConfig:St,setConfig:Nc,getSiteConfig:Pc,updateSiteConfig:m0,reset:p(()=>{Xo()},"reset"),globalReset:p(()=>{Xo(li)},"globalReset"),defaultConfig:li});wn(St().logLevel);Xo(St());var Tv=p((e,t,r)=>{P.warn(e),il(e)?(r&&r(e.str,e.hash),t.push({...e,message:e.str,error:e})):(r&&r(e),e instanceof Error&&t.push({str:e.message,message:e.message,hash:e.name,error:e}))},"handleError"),zm=p(async function(e={querySelector:".mermaid"}){try{await Sv(e)}catch(t){if(il(t)&&P.error(t.str),ze.parseError&&ze.parseError(t),!e.suppressErrors)throw P.error("Use the suppressErrors option to suppress these errors"),t}},"run"),Sv=p(async function({postRenderCallback:e,querySelector:t,nodes:r}={querySelector:".mermaid"}){const i=Sr.getConfig();P.debug(`${e?"":"No "}Callback function found`);let o;if(r)o=r;else if(t)o=document.querySelectorAll(t);else throw new Error("Nodes and querySelector are both undefined");P.debug(`Found ${o.length} diagrams`),i?.startOnLoad!==void 0&&(P.debug("Start On Load: "+i?.startOnLoad),Sr.updateSiteConfig({startOnLoad:i?.startOnLoad}));const s=new pe.InitIDGenerator(i.deterministicIds,i.deterministicIDSeed);let a;const n=[];for(const l of Array.from(o)){if(P.info("Rendering diagram: "+l.id),l.getAttribute("data-processed"))continue;l.setAttribute("data-processed","
* Wait for document loaded before starting the execution
*/const aL=Object.freeze(Object.defineProperty({__proto__:null,default:Av},Symbol.toStringTag,{value:"Module"}));export{qv as $,R0 as A,Iv as B,Qe as C,Be as D,sy as E,St as F,U0 as G,ol as H,Dc as I,A1 as J,x2 as K,Sk as L,dk as M,Dn as N,Nv as O,zv as P,Ir as Q,_h as R,Sh as S,Yv as T,at as U,Hv as V,Wv as W,Rv as X,Pv as Y,Gv as Z,p as _,N0 as a,PT as a$,Uv as a0,Zy as a1,Ui as a2,$v as a3,Ms as a4,c2 as a5,_0 as a6,Gc as a7,sh as a8,gk as a9,Ef as aA,V1 as aB,X1 as aC,j1 as aD,G1 as aE,Mf as aF,Q1 as aG,K1 as aH,Z1 as aI,t2 as aJ,J1 as aK,H1 as aL,M1 as aM,Zt as aN,Ye as aO,Si as aP,sl as aQ,Pf as aR,wr as aS,zf as aT,vc as aU,hS as aV,eL as aW,iL as aX,Jv as aY,K as aZ,tL as a_,Pa as aa,C2 as ab,Ce as ac,$ as ad,O as ae,$0 as af,Xc as ag,nT as ah,Yg as ai,rL as aj,rl as ak,j as al,Dw as am,Vn as an,Zn as ao,qo as ap,Y1 as aq,U1 as ar,Af as as,Ff as at,Lf as au,q1 as av,P1 as aw,N1 as ax,W1 as ay,z1 as az,P0 as b,$T as b0,MT as b1,uk as b2,Mv as b3,ty as b4,co as b5,Ow as b6,$w as b7,Mn as b8,Ve as b9,Ch as ba,Ux as bb,Xi as bc,Z as bd,Hf as be,re as bf,Px as bg,En as bh,ld as bi,ao as bj,dd as bk,Dv as bl,oy as bm,aL as bn,mt as c,ht as d,jc as e,Ot as f,W0 as g,We as h,ye as i,I1 as j,oo as k,P as l,qf as m,io as n,Ov as o,sL as p,z0 as q,oL as r,q0 as s,H0 as t,pe as u,E1 as v,w2 as w,vT as x,jv as y,ni as z};