vendor: 9,636 bytes, line 1
1import{a as wr}from"./chunk-ZXQA3TPI.js";import{a as oe}from"./chunk-3C4GU77K.js";import{a as Kr,b as Qr}from"./chunk-TUZ26PL6.js";import{a as ie}from"./chunk-HYHCFTZO.js";import"./chunk-O2IPYDKE.js";import"./chunk-O6LWZQWO.js";import"./chunk-M3HZ4T3I.js";import"./chunk-ILFYKPMK.js";import{b as Zr}from"./chunk-K4ZINDDN.js";import{a as ae}from"./chunk-5JNEQBTK.js";import{k as Jr,s as yr,u as re,v as U,w as ee,x as te}from"./chunk-663BQLRT.js";import"./chunk-2DG2OPPA.js";import{A as hr,B as Br,C as V,D as Yr,E as Y,H as jr,N as Xr,P as Wr,ba as j,ca as Z,g as i,i as g,j as mr,k as Pr,m as Nr,n as pr,o as fr,p as vr,q as Vr,r as Ur,t as Q,w as gr,x as Gr,y as Hr,z as qr}from"./chunk-MKXYEVA7.js";import"./chunk-EL5SV3JE.js";import"./chunk-V5YH6CLL.js";import"./chunk-2GU5336X.js";import{j as C}from"./chunk-KAYYNT2L.js";import{a as $r}from"./chunk-KDSDEIG5.js";import{a as xr}from"./chunk-OBJZGNFA.js";import"./chunk-EFQPMHTG.js";import"./chunk-DNMQSVN3.js";import{a as Or,b as zr,t as s}from"./chunk-ATLPHYUF.js";var J="comm",rr="rule",er="decl";var ne="@import";var se="@namespace",de="@keyframes";var ce="@layer";var br=Math.abs,X=String.fromCharCode;function tr(r){return r.trim()}function W(r,e,t){return r.replace(e,t)}function le(r,e,t){return r.indexOf(e,t)}function O(r,e){return r.charCodeAt(e)|0}function z(r,e,t){return r.slice(e,t)}function E(r){return r.length}function ue(r){return r.length}function G(r,e){return e.push(r),r}var ar=1,H=1,me=0,T=0,y=0,B="";function ir(r,e,t,a,o,n,d,c){return{value:r,root:e,parent:t,type:a,props:o,children:n,line:ar,column:H,length:d,return:"",siblings:c}}function pe(){return y}function fe(){return y=T>0?O(B,--T):0,H--,y===10&&(H=1,ar--),y}function _(){return y=T<me?O(B,T++):0,H++,y===10&&(H=1,ar++),y}function F(){return O(B,T)}function K(){return T}function or(r,e){return z(B,r,e)}function q(r){switch(r){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function ve(r){return ar=H=1,me=E(B=r),T=0,[]}function ge(r){return B="",r}function nr(r){return tr(or(T-1,Er(r===91?r+2:r===40?r+1:r)))}function he(r){for(;(y=F())&&y<33;)_();return q(r)>2||q(y)>3?"":" "}function ye(r,e){for(;--e&&_()&&!(y<48||y>102||y>57&&y<65||y>70&&y<97););return or(r,K()+(e<6&&F()==32&&_()==32))}function Er(r){for(;_();)switch(y){case r:return T;case 34:case 39:r!==34&&r!==39&&Er(y);break;case 40:r===41&&Er(r);break;case 92:_();break}return T}function we(r,e){for(;_()&&r+y!==57;)if(r+y===84&&F()===47)break;return"/*"+or(e,T-1)+"*"+X(r===47?r:_())}function xe(r){for(;!q(F());)_();return or(r,T)}function Se(r){return ge(sr("",null,null,null,[""],r=ve(r),0,[0],r))}function sr(r,e,t,a,o,n,d,c,l){for(var m=0,v=0,u=d,w=0,x=0,b=0,f=1,I=1,L=1,h=0,A="",R=o,k=n,D=a,p=A;I;)switch(b=h,h=_()){case 40:if(b!=108&&O(p,u-1)==58){le(p+=W(nr(h),"&","&\f"),"&\f",br(m?c[m-1]:0))!=-1&&(L=-1);break}case 34:case 39:case 91:p+=nr(h);break;case 9:case 10:case 13:case 32:p+=he(b);break;case 92:p+=ye(K()-1,7);continue;case 47:switch(F()){case 42:case 47:G(yt(we(_(),K()),e,t,l),l),(q(b||1)==5||q(F()||1)==5)&&E(p)&&z(p,-1,void 0)!==" "&&(p+=" ");break;default:p+="/"}break;case 123*f:c[m++]=E(p)*L;case 125*f:case 59:case 0:switch(h){case 0:case 125:I=0;case 59+v:L==-1&&(p=W(p,/\f/g,"")),x>0&&(E(p)-u||f===0&&b===47)&&G(x>32?Ee(p+";",a,t,u-1,l):Ee(W(p," ","")+";",a,t,u-2,l),l);break;case 59:p+=";";default:if(G(D=be(p,e,t,m,v,o,c,A,R=[],k=[],u,n),n),h===123)if(v===0)sr(p,e,D,D,R,n,u,c,k);else{switch(w){case 99:if(O(p,3)===110)break;case 108:if(O(p,2)===97)break;default:v=0;case 100:case 109:case 115:}v?sr(r,D,D,a&&G(be(r,D,D,0,0,o,c,A,o,R=[],u,k),k),o,k,u,c,a?R:k):sr(p,D,D,D,[""],k,0,c,k)}}m=v=x=0,f=L=1,A=p="",u=d;break;case 58:u=1+E(p),x=b;default:if(f<1){if(h==123)--f;else if(h==125&&f++==0&&fe()==125)continue}switch(p+=X(h),h*f){case 38:L=v>0?1:(p+="\f",-1);break;case 44:c[m++]=(E(p)-1)*L,L=1;break;case 64:F()===45&&(p+=nr(_())),w=F(),v=u=E(A=p+=xe(K())),h++;break;case 45:b===45&&E(p)==2&&(f=0)}}return n}function be(r,e,t,a,o,n,d,c,l,m,v,u){for(var w=o-1,x=o===0?n:[""],b=ue(x),f=0,I=0,L=0;f<a;++f)for(var h=0,A=z(r,w+1,w=br(I=d[f])),R=r;h<b;++h)(R=tr(I>0?x[h]+" "+A:W(A,/&\f/g,x[h])))&&(l[L++]=R);return ir(r,e,t,o===0?rr:c,l,m,v,u)}function yt(r,e,t,a){return ir(r,e,t,J,X(pe()),z(r,2,-2),0,a)}function Ee(r,e,t,a,o){return ir(r,e,t,er,z(r,0,a),z(r,a+1,-1),a,o)}function dr(r,e){for(var t="",a=0;a<r.length;a++)t+=e(r[a],a,r,e)||"";return t}function De(r,e,t,a){switch(r.type){case ce:if(r.children.length)break;case ne:case se:case er:return r.return=r.return||r.value;case J:return"";case de:return r.return=r.value+"{"+dr(r.children,a)+"}";case rr:if(!E(r.value=r.props.join(",")))return""}return E(t=dr(r.children,a))?r.return=r.value+"{"+t+"}":""}var Me="c4",wt=i(r=>/^\s*C4Context|C4Container|C4Component|C4Dynamic|C4Deployment/.test(r),"detector"),xt=i(()=>s(null,null,function*(){let{diagram:r}=yield import("./chunk-KG3EZGS5.js");return{id:Me,diagram:r}}),"loader"),bt={id:Me,detector:wt,loader:xt},Et=bt,ke="flowchart",St=i((r,e)=>{var t,a;return((t=e==null?void 0:e.flowchart)==null?void 0:t.defaultRenderer)==="dagre-wrapper"||((a=e==null?void 0:e.flowchart)==null?void 0:a.defaultRenderer)==="elk"?!1:/^\s*graph/.test(r)},"detector"),Dt=i(()=>s(null,null,function*(){let{diagram:r}=yield import("./chunk-OHFTLXGT.js");return{id:ke,diagram:r}}),"loader"),Tt={id:ke,detector:St,loader:Dt},_t=Tt,Ie="flowchart-v2",Lt=i((r,e)=>{var t,a,o;return((t=e==null?void 0:e.flowchart)==null?void 0:t.defaultRenderer)==="dagre-d3"?!1:(((a=e==null?void 0:e.flowchart)==null?void 0:a.defaultRenderer)==="elk"&&(e.layout="elk"),/^\s*graph/.test(r)&&((o=e==null?void 0:e.flowchart)==null?void 0:o.defaultRenderer)==="dagre-wrapper"?!0:/^\s*flowchart/.test(r))},"detector"),At=i(()=>s(null,null,function*(){let{diagram:r}=yield import("./chunk-OHFTLXGT.js");return{id:Ie,diagram:r}}),"loader"),Mt={id:Ie,detector:Lt,loader:At},kt=Mt,Re="er",It=i(r=>/^\s*erDiagram/.test(r),"detector"),Rt=i(()=>s(null,null,function*(){let{diagram:r}=yield import("./chunk-DO7Q2VAD.js");return{id:Re,diagram:r}}),"loader"),Ct={id:Re,detector:It,loader:Rt},Ft=Ct,Ce="gitGraph",Ot=i(r=>/^\s*gitGraph/.test(r),"detector"),zt=i(()=>s(null,null,function*(){let{diagram:r}=yield import("./chunk-6EP3RUVR.js");return{id:Ce,diagram:r}}),"loader"),$t={id:Ce,detector:Ot,loader:zt},Pt=$t,Fe="gantt",Nt=i(r=>/^\s*gantt/.test(r),"detector"),Vt=i(()=>s(null,null,function*(){let{diagram:r}=yield import("./chunk-YLO7JE2I.js");return{id:Fe,diagram:r}}),"loader"),Ut={id:Fe,detector:Nt,loader:Vt},Gt=Ut,Oe="info",Ht=i(r=>/^\s*info/.test(r),"detector"),qt=i(()=>s(null,null,function*(){let{diagram:r}=yield import("./chunk-LC6KBO2P.js");return{id:Oe,diagram:r}}),"loader"),Bt={id:Oe,detector:Ht,loader:qt},ze="pie",Yt=i(r=>/^\s*pie/.test(r),"detector"),jt=i(()=>s(null,null,function*(){let{diagram:r}=yield import("./chunk-56PQ7JSB.js");return{id:ze,diagram:r}}),"loader"),Xt={id:ze,detector:Yt,loader:jt},$e="quadrantChart",Wt=i(r=>/^\s*quadrantChart/.test(r),"detector"),Kt=i(()=>s(null,null,function*(){let{diagram:r}=yield import("./chunk-SHDXL2LI.js");return{id:$e,diagram:r}}),"loader"),Qt={id:$e,detector:Wt,loader:Kt},Zt=Qt,Pe="xychart",Jt=i(r=>/^\s*xychart-beta/.test(r),"detector"),ra=i(()=>s(null,null,function*(){let{diagram:r}=yield import("./chunk-WQU4GGYA.js");return{id:Pe,diagram:r}}),"loader"),ea={id:Pe,detector:Jt,loader:ra},ta=ea,Ne="requirement",aa=i(r=>/^\s*requirement(Diagram)?/.test(r),"detector"),ia=i(()=>s(null,null,function*(){let{diagram:r}=yield import("./chunk-JYDMWFOU.js");return{id:Ne,diagram:r}}),"loader"),oa={id:Ne,detector:aa,loader:ia},na=oa,Ve="sequence",sa=i(r=>/^\s*sequenceDiagram/.test(r),"detector"),da=i(()=>s(null,null,function*(){let{diagram:r}=yield import("./chunk-JETAH4Y4.js");return{id:Ve,diagram:r}}),"loader"),ca={id:Ve,detector:sa,loader:da},la=ca,Ue="class",ua=i((r,e)=>{var t;return((t=e==null?void 0:e.class)==null?void 0:t.defaultRenderer)==="dagre-wrapper"?!1:/^\s*classDiagram/.test(r)},"detector"),ma=i(()=>s(null,null,function*(){let{diagram:r}=yield import("./chunk-R4OZQCHJ.js");return{id:Ue,diagram:r}}),"loader"),pa={id:Ue,detector:ua,loader:ma},fa=pa,Ge="classDiagram",va=i((r,e)=>{var t;return/^\s*classDiagram/.test(r)&&((t=e==null?void 0:e.class)==null?void 0:t.defaultRenderer)==="dagre-wrapper"?!0:/^\s*classDiagram-v2/.test(r)},"detector"),ga=i(()=>s(null,null,function*(){let{diagram:r}=yield import("./chunk-OYCRV4NM.js");return{id:Ge,diagram:r}}),"loader"),ha={id:Ge,detector:va,loader:ga},ya=ha,He="state",wa=i((r,e)=>{var t;return((t=e==null?void 0:e.state)==null?void 0:t.defaultRenderer)==="dagre-wrapper"?!1:/^\s*stateDiagram/.test(r)},"detector"),xa=i(()=>s(null,null,function*(){let{diagram:r}=yield import("./chunk-Y3X5R6YL.js");return{id:He,diagram:r}}),"loader"),ba={id:He,detector:wa,loader:xa},Ea=ba,qe="stateDiagram",Sa=i((r,e)=>{var t;return!!(/^\s*stateDiagram-v2/.test(r)||/^\s*stateDiagram/.test(r)&&((t=e==null?void 0:e.state)==null?void 0:t.defaultRenderer)==="dagre-wrapper")},"detector"),Da=i(()=>s(null,null,function*(){let{diagram:r}=yield import("./chunk-2UZN33IK.js");return{id:qe,diagram:r}}),"loader"),Ta={id:qe,detector:Sa,loader:Da},_a=Ta,Be="journey",La=i(r=>/^\s*journey/.test(r),"detector"),Aa=i(()=>s(null,null,function*(){let{diagram:r}=yield import("./chunk-TD2EPOXU.js");return{id:Be,diagram:r}}),"loader"),Ma={id:Be,detector:La,loader:Aa},ka=Ma,Ia=i((r,e,t)=>{g.debug("rendering svg for syntax error\n");let a=oe(e),o=a.append("g");
1a.attr("viewBox","0 0 2412 512"),Xr(a,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.
1164-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 ".concat(t))},"draw"),Ye={draw:Ia},Ra=Ye,Ca={db:{},renderer:Ye,parser:{parse:i(()=>{},"parse")}},Fa=Ca,je="flowchart-elk",Oa=i((r,e={})=>{var t;return/^\s*flowchart-elk/.test(r)||/^\s*flowchart|graph/.test(r)&&((t=e==null?void 0:e.flowchart)==null?void 0:t.defaultRenderer)==="elk"?(e.layout="elk",!0):!1},"detector"),za=i(()=>s(null,null,function*(){let{diagram:r}=yield import("./chunk-OHFTLXGT.js");return{id:je,diagram:r}}),"loader"),$a={id:je,detector:Oa,loader:za},Pa=$a,Xe="timeline",Na=i(r=>/^\s*timeline/.test(r),"detector"),Va=i(()=>s(null,null,function*(){let{diagram:r}=yield import("./chunk-ICLASZVV.js");return{id:Xe,diagram:r}}),"loader"),Ua={id:Xe,detector:Na,loader:Va},Ga=Ua,We="mindmap",Ha=i(r=>/^\s*mindmap/.test(r),"detector"),qa=i(()=>s(null,null,function*(){let{diagram:r}=yield import("./chunk-TVOSUTIQ.js");return{id:We,diagram:r}}),"loader"),Ba={id:We,detector:Ha,loader:qa},Ya=Ba,Ke="kanban",ja=i(r=>/^\s*kanban/.test(r),"detector"),Xa=i(()=>s(null,null,function*(){let{diagram:r}=yield import("./chunk-PLQ7CVSY.js");return{id:Ke,diagram:r}}),"loader"),Wa={id:Ke,detector:ja,loader:Xa},Ka=Wa,Qe="sankey",Qa=i(r=>/^\s*sankey-beta/.test(r),"detector"),Za=i(()=>s(null,null,function*(){let{diagram:r}=yield import("./chunk-D7HGIPVT.js");return{id:Qe,diagram:r}}),"loader"),Ja={id:Qe,detector:Qa,loader:Za},ri=Ja,Ze="packet",ei=i(r=>/^\s*packet-beta/.test(r),"detector"),ti=i(()=>s(null,null,function*(){let{diagram:r}=yield import("./chunk-U5Z6PHBE.js");return{id:Ze,diagram:r}}),"loader"),ai={id:Ze,detector:ei,loader:ti},Je="radar",ii=i(r=>/^\s*radar-beta/.test(r),"detector"),oi=i(()=>s(null,null,function*(){let{diagram:r}=yield import("./chunk-QKDKHOOY.js");return{id:Je,diagram:r}}),"loader"),ni={id:Je,detector:ii,loader:oi},rt="block",si=i(r=>/^\s*block-beta/.test(r),"detector"),di=i(()=>s(null,null,function*(){let{diagram:r}=yield import("./chunk-GCDZIAC5.js");return{id:rt,diagram:r}}),"loader"),ci={id:rt,detector:si,loader:di},li=ci,et="architecture",ui=i(r=>/^\s*architecture/.test(r),"detector"),mi=i(()=>s(null,null,function*(){let{diagram:r}=yield import("./chunk-HMYU6LK6.js");return{id:et,diagram:r}}),"loader"),pi={id:et,detector:ui,loader:mi},fi=pi,Te=!1,lr=i(()=>{Te||(Te=!0,j("error",Fa,r=>r.toLowerCase().trim()==="error"),j("---",{db:{clear:i(()=>{},"clear")},styles:{},renderer:{draw:i(()=>{},"draw")},parser:{parse:i(()=>{throw new Error("Diagrams beginning with --- are not valid. If you were trying to use a YAML front-matter, please ensure that you've correctly opened and closed the YAML front-matter with un-indented `---` blocks")},"parse")},init:i(()=>null,"init")},r=>r.toLowerCase().trimStart().startsWith("---")),vr(Et,Ka,ya,fa,Ft,Gt,Bt,Xt,na,la,Pa,kt,_t,Ya,Ga,Pt,_a,Ea,ka,Zt,ri,ai,ta,li,fi,ni))},"addDiagrams"),vi=i(()=>s(null,null,function*(){g.debug("Loading registered diagrams");let e=(yield Promise.allSettled(Object.entries(pr).map(n=>s(null,[n],function*([t,{detector:a,loader:o}]){if(o)try{Z(t)}catch(d){try{let{diagram:c,id:l}=yield o();j(l,c,a)}catch(c){throw g.error("Failed to load external diagram with key ".concat(t,". Removing from detectors.")),delete pr[t],c}}})))).filter(t=>t.status==="rejected");if(e.length>0){g.error("Failed to load ".concat(e.length," external diagrams"));for(let t of e)g.error(t);throw new Error("Failed to load ".concat(e.length," external diagrams"))}}),"loadRegisteredDiagrams"),gi="graphics-document document";
1function tt(r,e){r.attr("role",gi),e!==""&&r.attr("aria-roledescription",e)}i(tt,"setA11yDiagramInfo");function at(r,e,t,a){if(r.insert!==void 0){if(t){let o="chart-desc-".concat(a);r.attr("aria-describedby",o),r.insert("desc",":first-child").attr("id",o).text(t)}if(e){let o="chart-title-".concat(a);r.attr("aria-labelledby",o),r.insert("title",":first-child").attr("id",o).text(e)}}}i(at,"addSVGa11yTitleDescription");var P,Dr=(P=class{constructor(e,t,a,o,n){this.type=e,this.text=t,this.db=a,this.parser=o,this.renderer=n}static fromText(a){return s(this,arguments,function*(e,t={}){var v,u;let o=V(),n=fr(e,o);e=ee(e)+"\n";try{Z(n)}catch(w){let x=Vr(n);if(!x)throw new Nr("Diagram ".concat(n," not found."));let{id:b,diagram:f}=yield x();j(b,f)}let{db:d,parser:c,renderer:l,init:m}=Z(n);return c.parser&&(c.parser.yy=d),(v=d.clear)==null||v.call(d),m==null||m(o),t.title&&((u=d.setDiagramTitle)==null||u.call(d,t.title)),yield c.parse(e),new P(n,e,d,c,l)})}render(e,t){return s(this,null,function*(){yield this.renderer.draw(this.text,e,t,this)})}getParser(){return this.parser}getType(){return this.type}},i(P,"Diagram"),P),_e=[],hi=i(()=>{_e.forEach(r=>{r()}),_e=[]},"attachFunctions"),yi=i(r=>r.replace(/^\s*%%(?!{)[^\n]+\n?/gm,"").trimStart(),"cleanupComments");function it(r){var o;let e=r.match(Pr);if(!e)return{text:r,metadata:{}};let t=(o=Qr(e[1],{schema:Kr}))!=null?o:{};t=typeof t=="object"&&!Array.isArray(t)?t:{};let a={};return t.displayMode&&(a.displayMode=t.displayMode.toString()),t.title&&(a.title=t.title.toString()),t.config&&(a.config=t.config),{text:r.slice(e[0].length),metadata:a}}i(it,"extractFrontMatter");var wi=i(r=>r.replace(/\r\n?/g,"\n").replace(/<(\w+)([^>]*)>/g,(e,t,a)=>"<"+t+a.replace(/="([^"]*)"/g,"='$1'")+">"),"cleanupText"),xi=i(r=>{let{text:e,metadata:t}=it(r),{displayMode:a,title:o,config:n={}}=t;return a&&(n.gantt||(n.gantt={}),n.gantt.displayMode=a),{title:o,config:n,text:e}},"processFrontmatter"),bi=i(r=>{var a;let e=(a=U.detectInit(r))!=null?a:{},t=U.detectDirective(r,"wrap");return Array.isArray(t)?e.wrap=t.some(({type:o})=>o==="wrap"):(t==null?void 0:t.type)==="wrap"&&(e.wrap=!0),{text:Jr(r),directive:e}},"processDirectives");function _r(r){let e=wi(r),t=xi(e),a=bi(t.text),o=re(t.config,a.directive);return r=yi(a.text),{code:r,title:t.title,config:o}}i(_r,"preprocessDiagram");function ot(r){let e=new TextEncoder().encode(r),t=Array.from(e,a=>String.fromCodePoint(a)).join("");return btoa(t)}i(ot,"toBase64");var Ei=5e4,Si="graph TB;a[Maximum text size in diagram exceeded];style a fill:#faa",Di="sandbox",Ti="loose",_i="http://www.w3.org/2000/svg",Li="http://www.w3.org/1999/xlink",Ai="http://www.w3.org/1999/xhtml",Mi="100%",ki="100%",Ii="border:0;margin:0;",Ri="margin:0",Ci="allow-top-navigation-by-user-activation allow-popups",Fi='The "iframe" tag is not supported by your browser.',Oi=["foreignobject"],zi=["dominant-baseline"];function Lr(r){var t;let e=_r(r);return Y(),Yr((t=e.config)!=null?t:{}),e}i(Lr,"processAndSetConfigs");function nt(r,e){return s(this,null,function*(){lr();try{let{code:t,config:a}=Lr(r);return{diagramType:(yield dt(t)).type,config:a}}catch(t){if(e!=null&&e.suppressErrors)return!1;throw t}})}i(nt,"parse");var Le=i((r,e,t=[])=>"\n.".concat(r," ").concat(e," { ").concat(t.join(" !important; ")," !important; }"),"cssImportantStyles"),$i=i((r,e=new Map)=>{var a,o;let t="";if(r.themeCSS!==void 0&&(t+="\n".concat(r.themeCSS)),r.fontFamily!==void 0&&(t+="\n:root { --mermaid-font-family: ".concat(r.fontFamily,"}")),r.altFontFamily!==void 0&&(t+="\n:root { --mermaid-alt-font-family: ".concat(r.altFontFamily,"}")),e instanceof Map){let l=((o=r.htmlLabels)!=null?o:(a=r.flowchart)==null?void 0:a.htmlLabels)?["> *","span"]:["rect","polygon","ellipse","circle","path"];e.forEach(m=>{xr(m.styles)||l.forEach(v=>{t+=Le(m.id,v,m.styles)}
1),xr(m.textStyles)||(t+=Le(m.id,"tspan",((m==null?void 0:m.textStyles)||[]).map(v=>v.replace("color","fill"))))})}return t},"createCssStyles"),Pi=i((r,e,t,a)=>{let o=$i(r,t),n=Wr(e,o,r.themeVariables);return dr(Se("".concat(a,"{").concat(n,"}")),De)},"createUserStyles"),Ni=i((r="",e,t)=>{let a=r;return!t&&!e&&(a=a.replace(/marker-end="url\([\d+./:=?A-Za-z-]*?#/g,'marker-end="url(#')),a=te(a),a=a.replace(/<br>/g,"<br/>"),a},"cleanUpSvgCode"),Vi=i((r="",e)=>{var o,n;let t=(n=(o=e==null?void 0:e.viewBox)==null?void 0:o.baseVal)!=null&&n.height?e.viewBox.baseVal.height+"px":ki,a=ot('<body style="'.concat(Ri,'">').concat(r,"</body>"));return'<iframe style="width:'.concat(Mi,";height:").concat(t,";").concat(Ii,'" src="data:text/html;charset=UTF-8;base64,').concat(a,'" sandbox="').concat(Ci,'">\n ').concat(Fi,"\n</iframe>")},"putIntoIFrame"),Ae=i((r,e,t,a,o)=>{let n=r.append("div");n.attr("id",t),a&&n.attr("style",a);let d=n.append("svg").attr("id",e).attr("width","100%").attr("xmlns",_i);return o&&d.attr("xmlns:xlink",o),d.append("g"),r},"appendDivSvgG");function Tr(r,e){return r.append("iframe").attr("id",e).attr("style","width: 100%; height: 100%;").attr("sandbox","")}i(Tr,"sandboxedIframe");var Ui=i((r,e,t,a)=>{var o,n,d;(o=r.getElementById(e))==null||o.remove(),(n=r.getElementById(t))==null||n.remove(),(d=r.getElementById(a))==null||d.remove()},"removeExistingElements"),Gi=i(function(r,e,t){return s(this,null,function*(){var Ar,Mr,kr,Ir,Rr,Cr,Fr;lr();let a=Lr(e);e=a.code;let o=V();g.debug(o),e.length>((Ar=o==null?void 0:o.maxTextSize)!=null?Ar:Ei)&&(e=Si);let n="#"+r,d="i"+r,c="#"+d,l="d"+r,m="#"+l,v=i(()=>{let ur=C(w?c:m).node();ur&&"remove"in ur&&ur.remove()},"removeTempElements"),u=C("body"),w=o.securityLevel===Di,x=o.securityLevel===Ti,b=o.fontFamily;if(t!==void 0){if(t&&(t.innerHTML=""),w){let M=Tr(C(t),d);u=C(M.nodes()[0].contentDocument.body),u.node().style.margin=0}else u=C(t);Ae(u,r,l,"font-family: ".concat(b),Li)}else{if(Ui(document,r,l,d),w){let M=Tr(C("body"),d);u=C(M.nodes()[0].contentDocument.body),u.node().style.margin=0}else u=C("body");Ae(u,r,l)}let f,I;try{f=yield Dr.fromText(e,{title:a.title})}
1catch(M){if(o.suppressErrorRendering)throw v(),M;f=yield Dr.fromText("error"),I=M}let L=u.select(m).node(),h=f.type,A=L.firstChild,R=A.firstChild,k=(kr=(Mr=f.renderer).getClasses)==null?void 0:kr.call(Mr,e,f),D=Pi(o,h,k,n),p=document.createElement("style");p.innerHTML=D,A.insertBefore(p,R);try{yield f.renderer.draw(e,r,wr.version,f)}catch(M){throw o.suppressErrorRendering?v():Ra.draw(e,r,wr.version),M}let vt=u.select("".concat(m," svg")),gt=(Rr=(Ir=f.db).getAccTitle)==null?void 0:Rr.call(Ir),ht=(Fr=(Cr=f.db).getAccDescription)==null?void 0:Fr.call(Cr);ct(h,vt,gt,ht),u.select('[id="'.concat(r,'"]')).selectAll("foreignobject > *").attr("xmlns",Ai);let $=u.select(m).node().innerHTML;if(g.debug("config.arrowMarkerAbsolute",o.arrowMarkerAbsolute),$=Ni($,w,jr(o.arrowMarkerAbsolute)),w){let M=u.select(m+" svg").node();$=Vi($,M)}else x||($=$r.sanitize($,{ADD_TAGS:Oi,ADD_ATTR:zi,HTML_INTEGRATION_POINTS:{foreignobject:!0}}));if(hi(),I)throw I;return v(),{diagramType:h,svg:$,bindFunctions:f.db.bindFunctions}})},"render");function st(r={}){var a;let e=Ur({},r);e!=null&&e.fontFamily&&!((a=e.themeVariables)!=null&&a.fontFamily)&&(e.themeVariables||(e.themeVariables={}),e.themeVariables.fontFamily=e.fontFamily),Hr(e),e!=null&&e.theme&&e.theme in Q?e.themeVariables=Q[e.theme].getThemeVariables(e.themeVariables):e&&(e.themeVariables=Q.default.getThemeVariables(e.themeVariables));let t=typeof e=="object"?Gr(e):hr();mr(t.logLevel),lr()}i(st,"initialize");var dt=i((r,e={})=>{let{code:t}=_r(r);return Dr.fromText(t,e)},"getDiagramFromText");function ct(r,e,t,a){tt(e,r),at(e,t,a,e.attr("id"))}i(ct,"addA11yInfo");var N=Object.freeze({render:Gi,parse:nt,getDiagramFromText:dt,initialize:st,getConfig:V,setConfig:Br,getSiteConfig:hr,updateSiteConfig:qr,reset:i(()=>{Y()},"reset"),globalReset:i(()=>{Y(gr)},"globalReset"),defaultConfig:gr});mr(V().logLevel);Y(V());var Hi=i((r,e,t)=>{g.warn(r),yr(r)?(t&&t(r.str,r.hash),e.push(zr(Or({},r),{message:r.str,error:r}))):(t&&t(r),r instanceof Error&&e.push({str:r.message,message:r.message,hash:r.name,error:r}))},"handleError"),lt=i(function(){return s(this,arguments,function*(r={querySelector:".mermaid"}){try{yield qi(r)}catch(e){if(yr(e)&&g.error(e.str),S.parseError&&S.parseError(e),!r.suppressErrors)throw g.error("Use the suppressErrors option to suppress these errors"),e}})},"run"),qi=i(function(){return s(this,arguments,function*({postRenderCallback:r,querySelector:e,nodes:t}={querySelector:".mermaid"}){let a=N.getConfig();g.debug("".concat(r?"":"No ","Callback function found"));let o;if(t)o=t;else if(e)o=document.querySelectorAll(e);else throw new Error("Nodes and querySelector are both undefined");g.debug("Found ".concat(o.length," diagrams")),(a==null?void 0:a.startOnLoad)!==void 0&&(g.debug("Start On Load: "+(a==null?void 0:a.startOnLoad)),N.updateSiteConfig({startOnLoad:a==null?void 0:a.startOnLoad}));let n=new U.InitIDGenerator(a.deterministicIds,a.deterministicIDSeed),d,c=[];for(let l of Array.from(o)){if(g.info("Rendering diagram: "+l.id),l.getAttribute("data-processed"))continue;l.setAttribute("data-processed","true");let m="mermaid-".concat(n.next());d=l.innerHTML,d=ae(U.entityDecode(d)).trim().replace(/<br\s*\/?>/gi,"<br/>");let v=U.detectInit(d);v&&g.debug("Detected early reinit: ",v);try{let{svg:u,bindFunctions:w}=yield ft(m,d,l);l.innerHTML=u,r&&(yield r(m)),w&&w(l)}catch(u){Hi(u,c,S.parseError)}}if(c.length>0)throw c[0]})},"runThrowsErrors"),ut=i(function(r){N.initialize(r)},"initialize"),Bi=i(function(r,e,t){return s(this,null,function*(){g.warn("mermaid.init is deprecated. Please use run instead."),r&&ut(r);let a={postRenderCallback:t,querySelector:".mermaid"};typeof e=="string"?a.querySelector=e:e&&(e instanceof HTMLElement?a.nodes=[e]:a.nodes=e),yield lt(a)})},"init"),Yi=i((t,...a)=>s(null,[t,...a],function*(r,{lazyLoad:e=!0}={}){lr(),vr(...r),e===!1&&(yield vi())}),"registerExternalDiagrams"),mt=i(function(){if(S.startOnLoad){let{startOnLoad:r}=N.getConfig();r&&S.run().catch(e=>g.error("Mermaid failed to initialize",e))}},"contentLoaded");typeof document<"u"&&window.addEventListener("load",mt,!1);var ji=i(function(r){S.parseError=r},"setParseErrorHandler"),cr=[],Sr=!1,pt=i(()=>s(null,null,function*(){if(!Sr){for(Sr=!0;cr.length>0;){let r=cr.shift();if(r)try{yield r()}catch(e){g.error("Error executing queue",e)}}Sr=!1}}),"executeQueue"),Xi=i((r,e)=>s(null,null,function*(){return new Promise((t,a)=>{let o=i(()=>new Promise((n,d)=>{N.parse(r,e).then(c=>{n(c),t(c)},c=>{var l;g.error("Error parsing",c),(l=S.parseError)==null||l.call(S,c),d(c),a(c)})}),"performCall");cr.push(o),pt().catch(a)})}),"parse"),ft=i((r,e,t)=>new Promise((a,o)=>{let n=i(()=>new Promise((d,c)=>{N.render(r,e,t).then(l=>{d(l),a(l)},l=>{var m;
1g.error("Error parsing",l),(m=S.parseError)==null||m.call(S,l),c(l),o(l)})}),"performCall");cr.push(n),pt().catch(o)}),"render"),S={startOnLoad:!0,mermaidAPI:N,parse:Xi,render:ft,init:Bi,run:lt,registerExternalDiagrams:Yi,registerLayoutLoaders:ie,initialize:ut,parseError:void 0,contentLoaded:mt,setParseErrorHandler:ji,detectType:fr,registerIconPacks:Zr},To=S;export{To as default};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.