Files
infocom-systems-design/node_modules/mermaid/dist/chunks/mermaid.esm.min/chunk-TVVDRG3C.mjs
2025-10-03 22:27:28 +03:00

8 lines
21 KiB
JavaScript

import{a as X,b as D,c as yt}from"./chunk-RV6DXAHM.mjs";import{c as ht,d as v}from"./chunk-EQI6KKA3.mjs";import{a as mt}from"./chunk-LM6QDVU5.mjs";import{c as dt,d as ft}from"./chunk-5V7UUW6L.mjs";import{g as pt}from"./chunk-GOL2OBWC.mjs";import{m as $}from"./chunk-EFRVIJHI.mjs";import{W as _,y as F}from"./chunk-KXVH62NG.mjs";import{$ as ct,G,H as K,J as tt,K as rt,L as U,P as at,S as et,W as nt,X as st,Y as ot,Z as it,_ as lt,b as m,h as j}from"./chunk-63GW7ZVL.mjs";import{a as h}from"./chunk-GTKDMUJJ.mjs";var xt=h((r,t,a,s,i,n)=>{t.arrowTypeStart&&kt(r,"start",t.arrowTypeStart,a,s,i,n),t.arrowTypeEnd&&kt(r,"end",t.arrowTypeEnd,a,s,i,n)},"addEdgeMarkers"),wt={arrow_cross:{type:"cross",fill:!1},arrow_point:{type:"point",fill:!0},arrow_barb:{type:"barb",fill:!0},arrow_circle:{type:"circle",fill:!1},aggregation:{type:"aggregation",fill:!1},extension:{type:"extension",fill:!1},composition:{type:"composition",fill:!0},dependency:{type:"dependency",fill:!0},lollipop:{type:"lollipop",fill:!1},only_one:{type:"onlyOne",fill:!1},zero_or_one:{type:"zeroOrOne",fill:!1},one_or_more:{type:"oneOrMore",fill:!1},zero_or_more:{type:"zeroOrMore",fill:!1},requirement_arrow:{type:"requirement_arrow",fill:!1},requirement_contains:{type:"requirement_contains",fill:!1}},kt=h((r,t,a,s,i,n,e)=>{let o=wt[a];if(!o){m.warn(`Unknown arrow type: ${a}`);return}let c=o.type,p=`${i}_${n}-${c}${t==="start"?"Start":"End"}`;if(e&&e.trim()!==""){let f=e.replace(/[^\dA-Za-z]/g,"_"),d=`${p}_${f}`;if(!document.getElementById(d)){let y=document.getElementById(p);if(y){let L=y.cloneNode(!0);L.id=d,L.querySelectorAll("path, circle, line").forEach(k=>{k.setAttribute("stroke",e),o.fill&&k.setAttribute("fill",e)}),y.parentNode?.appendChild(L)}}r.attr(`marker-${t}`,`url(${s}#${d})`)}else r.attr(`marker-${t}`,`url(${s}#${p})`)},"addEdgeMarker");var N=new Map,u=new Map,cr=h(()=>{N.clear(),u.clear()},"clear"),q=h(r=>r?r.reduce((a,s)=>a+";"+s,""):"","getLabelStyles"),pr=h(async(r,t)=>{let a=F(_().flowchart.htmlLabels),{labelStyles:s}=ft(t);t.labelStyle=s;let i=await pt(r,t.label,{style:t.labelStyle,useHtmlLabels:a,addSvgBackground:!0,isNode:!1});m.info("abc82",t,t.labelType);let n=r.insert("g").attr("class","edgeLabel"),e=n.insert("g").attr("class","label").attr("data-id",t.id);e.node().appendChild(i);let o=i.getBBox();if(a){let l=i.children[0],p=j(i);o=l.getBoundingClientRect(),p.attr("width",o.width),p.attr("height",o.height)}e.attr("transform","translate("+-o.width/2+", "+-o.height/2+")"),N.set(t.id,n),t.width=o.width,t.height=o.height;let c;if(t.startLabelLeft){let l=await v(t.startLabelLeft,q(t.labelStyle)),p=r.insert("g").attr("class","edgeTerminals"),f=p.insert("g").attr("class","inner");c=f.node().appendChild(l);let d=l.getBBox();f.attr("transform","translate("+-d.width/2+", "+-d.height/2+")"),u.get(t.id)||u.set(t.id,{}),u.get(t.id).startLeft=p,I(c,t.startLabelLeft)}if(t.startLabelRight){let l=await v(t.startLabelRight,q(t.labelStyle)),p=r.insert("g").attr("class","edgeTerminals"),f=p.insert("g").attr("class","inner");c=p.node().appendChild(l),f.node().appendChild(l);let d=l.getBBox();f.attr("transform","translate("+-d.width/2+", "+-d.height/2+")"),u.get(t.id)||u.set(t.id,{}),u.get(t.id).startRight=p,I(c,t.startLabelRight)}if(t.endLabelLeft){let l=await v(t.endLabelLeft,q(t.labelStyle)),p=r.insert("g").attr("class","edgeTerminals"),f=p.insert("g").attr("class","inner");c=f.node().appendChild(l);let d=l.getBBox();f.attr("transform","translate("+-d.width/2+", "+-d.height/2+")"),p.node().appendChild(l),u.get(t.id)||u.set(t.id,{}),u.get(t.id).endLeft=p,I(c,t.endLabelLeft)}if(t.endLabelRight){let l=await v(t.endLabelRight,q(t.labelStyle)),p=r.insert("g").attr("class","edgeTerminals"),f=p.insert("g").attr("class","inner");c=f.node().appendChild(l);let d=l.getBBox();f.attr("transform","translate("+-d.width/2+", "+-d.height/2+")"),p.node().appendChild(l),u.get(t.id)||u.set(t.id,{}),u.get(t.id).endRight=p,I(c,t.endLabelRight)}return i},"insertEdgeLabel");function I(r,t){_().flowchart.htmlLabels&&r&&(r.style.width=t.length*9+"px",r.style.height="12px")}h(I,"setTerminalWidth");var dr=h((r,t)=>{m.debug("Moving label abc88 ",r.id,r.label,N.get(r.id),t);let a=t.updatedPath?t.updatedPath:t.originalPath,s=_(),{subGraphTitleTotalMargin:i}=mt(s);if(r.label){let n=N.get(r.id),e=r.x,o=r.y;if(a){let c=$.calcLabelPosition(a);m.debug("Moving label "+r.label+" from (",e,",",o,") to (",c.x,",",c.y,") abc88"),t.updatedPath&&(e=c.x,o=c.y)}n.attr("transform",`translate(${e}, ${o+i/2})`)}if(r.startLabelLeft){let n=u.get(r.id).startLeft,e=r.x,o=r.y;if(a){let c=$.calcTerminalLabelPosition(r.arrowTypeStart?10:0,"start_left",a);e=c.x,o=c.y}n.attr("transform",`translate(${e}, ${o})`)}if(r.startLabelRight){let n=u.get(r.id).startRight,e=r.x,o=r.y;if(a){let c=$.calcTerminalLabelPosition(r.arrowTypeStart?10:0,"start_right",a);e=c.x,o=c.y}n.attr("transform",`translate(${e}, ${o})`)}if(r.endLabelLeft){let n=u.get(r.id).endLeft,e=r.x,o=r.y;if(a){let c=$.calcTerminalLabelPosition(r.arrowTypeEnd?10:0,"end_left",a);e=c.x,o=c.y}n.attr("transform",`translate(${e}, ${o})`)}if(r.endLabelRight){let n=u.get(r.id).endRight,e=r.x,o=r.y;if(a){let c=$.calcTerminalLabelPosition(r.arrowTypeEnd?10:0,"end_right",a);e=c.x,o=c.y}n.attr("transform",`translate(${e}, ${o})`)}},"positionEdgeLabel"),St=h((r,t)=>{let a=r.x,s=r.y,i=Math.abs(t.x-a),n=Math.abs(t.y-s),e=r.width/2,o=r.height/2;return i>=e||n>=o},"outsideNode"),_t=h((r,t,a)=>{m.debug(`intersection calc abc89:
outsidePoint: ${JSON.stringify(t)}
insidePoint : ${JSON.stringify(a)}
node : x:${r.x} y:${r.y} w:${r.width} h:${r.height}`);let s=r.x,i=r.y,n=Math.abs(s-a.x),e=r.width/2,o=a.x<t.x?e-n:e+n,c=r.height/2,l=Math.abs(t.y-a.y),p=Math.abs(t.x-a.x);if(Math.abs(i-t.y)*e>Math.abs(s-t.x)*c){let f=a.y<t.y?t.y-c-i:i-c-t.y;o=p*f/l;let d={x:a.x<t.x?a.x+o:a.x-p+o,y:a.y<t.y?a.y+l-f:a.y-l+f};return o===0&&(d.x=t.x,d.y=t.y),p===0&&(d.x=t.x),l===0&&(d.y=t.y),m.debug(`abc89 top/bottom calc, Q ${l}, q ${f}, R ${p}, r ${o}`,d),d}else{a.x<t.x?o=t.x-e-s:o=s-e-t.x;let f=l*o/p,d=a.x<t.x?a.x+p-o:a.x-p+o,y=a.y<t.y?a.y+f:a.y-f;return m.debug(`sides calc abc89, Q ${l}, q ${f}, R ${p}, r ${o}`,{_x:d,_y:y}),o===0&&(d=t.x,y=t.y),p===0&&(d=t.x),l===0&&(y=t.y),{x:d,y}}},"intersection"),ut=h((r,t)=>{m.warn("abc88 cutPathAtIntersect",r,t);let a=[],s=r[0],i=!1;return r.forEach(n=>{if(m.info("abc88 checking point",n,t),!St(t,n)&&!i){let e=_t(t,s,n);m.debug("abc88 inside",n,s,e),m.debug("abc88 intersection",e,t);let o=!1;a.forEach(c=>{o=o||c.x===e.x&&c.y===e.y}),a.some(c=>c.x===e.x&&c.y===e.y)?m.warn("abc88 no intersect",e,a):a.push(e),i=!0}else m.warn("abc88 outside",n,s),s=n,i||a.push(n)}),m.debug("returning points",a),a},"cutPathAtIntersect");function $t(r){let t=[],a=[];for(let s=1;s<r.length-1;s++){let i=r[s-1],n=r[s],e=r[s+1];(i.x===n.x&&n.y===e.y&&Math.abs(n.x-e.x)>5&&Math.abs(n.y-i.y)>5||i.y===n.y&&n.x===e.x&&Math.abs(n.x-i.x)>5&&Math.abs(n.y-e.y)>5)&&(t.push(n),a.push(s))}return{cornerPoints:t,cornerPointPositions:a}}h($t,"extractCornerPoints");var bt=h(function(r,t,a){let s=t.x-r.x,i=t.y-r.y,n=Math.sqrt(s*s+i*i),e=a/n;return{x:t.x-e*s,y:t.y-e*i}},"findAdjacentPoint"),Et=h(function(r){let{cornerPointPositions:t}=$t(r),a=[];for(let s=0;s<r.length;s++)if(t.includes(s)){let i=r[s-1],n=r[s+1],e=r[s],o=bt(i,e,5),c=bt(n,e,5),l=c.x-o.x,p=c.y-o.y;a.push(o);let f=Math.sqrt(2)*2,d={x:e.x,y:e.y};if(Math.abs(n.x-i.x)>10&&Math.abs(n.y-i.y)>=10){m.debug("Corner point fixing",Math.abs(n.x-i.x),Math.abs(n.y-i.y));let y=5;e.x===o.x?d={x:l<0?o.x-y+f:o.x+y-f,y:p<0?o.y-f:o.y+f}:d={x:l<0?o.x-f:o.x+f,y:p<0?o.y-y+f:o.y+y-f}}else m.debug("Corner point skipping fixing",Math.abs(n.x-i.x),Math.abs(n.y-i.y));a.push(d,c)}else a.push(r[s]);return a},"fixCorners"),Ot=h((r,t,a)=>{let s=r-t-a,i=2,n=2,e=i+n,o=Math.floor(s/e),c=Array(o).fill(`${i} ${n}`).join(" ");return`0 ${t} ${c} ${a}`},"generateDashArray"),fr=h(function(r,t,a,s,i,n,e,o=!1){let{handDrawnSeed:c}=_(),l=t.points,p=!1,f=i;var d=n;let y=[];for(let b in t.cssCompiledStyles)dt(b)||y.push(t.cssCompiledStyles[b]);m.debug("UIO intersect check",t.points,d.x,f.x),d.intersect&&f.intersect&&!o&&(l=l.slice(1,t.points.length-1),l.unshift(f.intersect(l[0])),m.debug("Last point UIO",t.start,"-->",t.end,l[l.length-1],d,d.intersect(l[l.length-1])),l.push(d.intersect(l[l.length-1])));let L=btoa(JSON.stringify(l));t.toCluster&&(m.info("to cluster abc88",a.get(t.toCluster)),l=ut(t.points,a.get(t.toCluster).node),p=!0),t.fromCluster&&(m.debug("from cluster abc88",a.get(t.fromCluster),JSON.stringify(l,null,2)),l=ut(l.reverse(),a.get(t.fromCluster).node).reverse(),p=!0);let M=l.filter(b=>!Number.isNaN(b.y));M=Et(M);let k=U;switch(k=G,t.curve){case"linear":k=G;break;case"basis":k=U;break;case"cardinal":k=at;break;case"bumpX":k=tt;break;case"bumpY":k=rt;break;case"catmullRom":k=et;break;case"monotoneX":k=nt;break;case"monotoneY":k=st;break;case"natural":k=ot;break;case"step":k=it;break;case"stepAfter":k=ct;break;case"stepBefore":k=lt;break;default:k=U}let{x:Y,y:C}=yt(t),Q=K().x(Y).y(C).curve(k),g;switch(t.thickness){case"normal":g="edge-thickness-normal";break;case"thick":g="edge-thickness-thick";break;case"invisible":g="edge-thickness-invisible";break;default:g="edge-thickness-normal"}switch(t.pattern){case"solid":g+=" edge-pattern-solid";break;case"dotted":g+=" edge-pattern-dotted";break;case"dashed":g+=" edge-pattern-dashed";break;default:g+=" edge-pattern-solid"}let x,S=t.curve==="rounded"?Tt(vt(M,t),5):Q(M),w=Array.isArray(t.style)?t.style:[t.style],W=w.find(b=>b?.startsWith("stroke:")),H=!1;if(t.look==="handDrawn"){let b=ht.svg(r);Object.assign([],M);let B=b.path(S,{roughness:.3,seed:c});g+=" transition",x=j(B).select("path").attr("id",t.id).attr("class"," "+g+(t.classes?" "+t.classes:"")).attr("style",w?w.reduce((R,A)=>R+";"+A,""):"");let O=x.attr("d");x.attr("d",O),r.node().appendChild(x.node())}else{let b=y.join(";"),B=w?w.reduce((z,T)=>z+T+";",""):"",O="";t.animate&&(O=" edge-animation-fast"),t.animation&&(O=" edge-animation-"+t.animation);let R=(b?b+";"+B+";":B)+";"+(w?w.reduce((z,T)=>z+";"+T,""):"");x=r.append("path").attr("d",S).attr("id",t.id).attr("class"," "+g+(t.classes?" "+t.classes:"")+(O??"")).attr("style",R),W=R.match(/stroke:([^;]+)/)?.[1],H=t.animate===!0||!!t.animation||b.includes("animation");let A=x.node(),J=typeof A.getTotalLength=="function"?A.getTotalLength():0,Z=D[t.arrowTypeStart]||0,V=D[t.arrowTypeEnd]||0;if(t.look==="neo"&&!H){let T=`stroke-dasharray: ${t.pattern==="dotted"||t.pattern==="dashed"?Ot(J,Z,V):`0 ${Z} ${J-Z-V} ${V}`}; stroke-dashoffset: 0;`;x.attr("style",T+x.attr("style"))}}x.attr("data-edge",!0),x.attr("data-et","edge"),x.attr("data-id",t.id),x.attr("data-points",L),t.showPoints&&M.forEach(b=>{r.append("circle").style("stroke","red").style("fill","red").attr("r",1).attr("cx",b.x).attr("cy",b.y)});let E="";(_().flowchart.arrowMarkerAbsolute||_().state.arrowMarkerAbsolute)&&(E=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,E=E.replace(/\(/g,"\\(").replace(/\)/g,"\\)")),m.info("arrowTypeStart",t.arrowTypeStart),m.info("arrowTypeEnd",t.arrowTypeEnd),xt(x,t,E,e,s,W);let Lt=Math.floor(l.length/2),Mt=l[Lt];$.isLabelCoordinateInPath(Mt,x.attr("d"))||(p=!0);let P={};return p&&(P.updatedPath=l),P.originalPath=t.points,P},"insertEdge");function Tt(r,t){if(r.length<2)return"";let a="",s=r.length,i=1e-5;for(let n=0;n<s;n++){let e=r[n],o=r[n-1],c=r[n+1];if(n===0)a+=`M${e.x},${e.y}`;else if(n===s-1)a+=`L${e.x},${e.y}`;else{let l=e.x-o.x,p=e.y-o.y,f=c.x-e.x,d=c.y-e.y,y=Math.hypot(l,p),L=Math.hypot(f,d);if(y<i||L<i){a+=`L${e.x},${e.y}`;continue}let M=l/y,k=p/y,Y=f/L,C=d/L,Q=M*Y+k*C,g=Math.max(-1,Math.min(1,Q)),x=Math.acos(g);if(x<i||Math.abs(Math.PI-x)<i){a+=`L${e.x},${e.y}`;continue}let S=Math.min(t/Math.sin(x/2),y/2,L/2),w=e.x-M*S,W=e.y-k*S,H=e.x+Y*S,E=e.y+C*S;a+=`L${w},${W}`,a+=`Q${e.x},${e.y} ${H},${E}`}}return a}h(Tt,"generateRoundedPath");function gt(r,t){if(!r||!t)return{angle:0,deltaX:0,deltaY:0};let a=t.x-r.x,s=t.y-r.y;return{angle:Math.atan2(s,a),deltaX:a,deltaY:s}}h(gt,"calculateDeltaAndAngle");function vt(r,t){let a=r.map(i=>({...i}));if(r.length>=2&&X[t.arrowTypeStart]){let i=X[t.arrowTypeStart],n=r[0],e=r[1],{angle:o}=gt(n,e),c=i*Math.cos(o),l=i*Math.sin(o);a[0].x=n.x+c,a[0].y=n.y+l}let s=r.length;if(s>=2&&X[t.arrowTypeEnd]){let i=X[t.arrowTypeEnd],n=r[s-1],e=r[s-2],{angle:o}=gt(e,n),c=i*Math.cos(o),l=i*Math.sin(o);a[s-1].x=n.x-c,a[s-1].y=n.y-l}return a}h(vt,"applyMarkerOffsetsToPoints");var Xt=h((r,t,a,s)=>{t.forEach(i=>{Vt[i](r,a,s)})},"insertMarkers"),Yt=h((r,t,a)=>{m.trace("Making markers for ",a),r.append("defs").append("marker").attr("id",a+"_"+t+"-extensionStart").attr("class","marker extension "+t).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 1,7 L18,13 V 1 Z"),r.append("defs").append("marker").attr("id",a+"_"+t+"-extensionEnd").attr("class","marker extension "+t).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 1,1 V 13 L18,7 Z")},"extension"),Ct=h((r,t,a)=>{r.append("defs").append("marker").attr("id",a+"_"+t+"-compositionStart").attr("class","marker composition "+t).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),r.append("defs").append("marker").attr("id",a+"_"+t+"-compositionEnd").attr("class","marker composition "+t).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z")},"composition"),Wt=h((r,t,a)=>{r.append("defs").append("marker").attr("id",a+"_"+t+"-aggregationStart").attr("class","marker aggregation "+t).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),r.append("defs").append("marker").attr("id",a+"_"+t+"-aggregationEnd").attr("class","marker aggregation "+t).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z")},"aggregation"),Ht=h((r,t,a)=>{r.append("defs").append("marker").attr("id",a+"_"+t+"-dependencyStart").attr("class","marker dependency "+t).attr("refX",6).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 5,7 L9,13 L1,7 L9,1 Z"),r.append("defs").append("marker").attr("id",a+"_"+t+"-dependencyEnd").attr("class","marker dependency "+t).attr("refX",13).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L14,7 L9,1 Z")},"dependency"),Bt=h((r,t,a)=>{r.append("defs").append("marker").attr("id",a+"_"+t+"-lollipopStart").attr("class","marker lollipop "+t).attr("refX",13).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("circle").attr("stroke","black").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6),r.append("defs").append("marker").attr("id",a+"_"+t+"-lollipopEnd").attr("class","marker lollipop "+t).attr("refX",1).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("circle").attr("stroke","black").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6)},"lollipop"),Rt=h((r,t,a)=>{r.append("marker").attr("id",a+"_"+t+"-pointEnd").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",5).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",8).attr("markerHeight",8).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 z").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),r.append("marker").attr("id",a+"_"+t+"-pointStart").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",4.5).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",8).attr("markerHeight",8).attr("orient","auto").append("path").attr("d","M 0 5 L 10 10 L 10 0 z").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0")},"point"),At=h((r,t,a)=>{r.append("marker").attr("id",a+"_"+t+"-circleEnd").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",11).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),r.append("marker").attr("id",a+"_"+t+"-circleStart").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",-1).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0")},"circle"),zt=h((r,t,a)=>{r.append("marker").attr("id",a+"_"+t+"-crossEnd").attr("class","marker cross "+t).attr("viewBox","0 0 11 11").attr("refX",12).attr("refY",5.2).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("path").attr("d","M 1,1 l 9,9 M 10,1 l -9,9").attr("class","arrowMarkerPath").style("stroke-width",2).style("stroke-dasharray","1,0"),r.append("marker").attr("id",a+"_"+t+"-crossStart").attr("class","marker cross "+t).attr("viewBox","0 0 11 11").attr("refX",-1).attr("refY",5.2).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("path").attr("d","M 1,1 l 9,9 M 10,1 l -9,9").attr("class","arrowMarkerPath").style("stroke-width",2).style("stroke-dasharray","1,0")},"cross"),Ut=h((r,t,a)=>{r.append("defs").append("marker").attr("id",a+"_"+t+"-barbEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",14).attr("markerUnits","userSpaceOnUse").attr("orient","auto").append("path").attr("d","M 19,7 L9,13 L14,7 L9,1 Z")},"barb"),qt=h((r,t,a)=>{r.append("defs").append("marker").attr("id",a+"_"+t+"-onlyOneStart").attr("class","marker onlyOne "+t).attr("refX",0).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").append("path").attr("d","M9,0 L9,18 M15,0 L15,18"),r.append("defs").append("marker").attr("id",a+"_"+t+"-onlyOneEnd").attr("class","marker onlyOne "+t).attr("refX",18).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").append("path").attr("d","M3,0 L3,18 M9,0 L9,18")},"only_one"),It=h((r,t,a)=>{let s=r.append("defs").append("marker").attr("id",a+"_"+t+"-zeroOrOneStart").attr("class","marker zeroOrOne "+t).attr("refX",0).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("orient","auto");s.append("circle").attr("fill","white").attr("cx",21).attr("cy",9).attr("r",6),s.append("path").attr("d","M9,0 L9,18");let i=r.append("defs").append("marker").attr("id",a+"_"+t+"-zeroOrOneEnd").attr("class","marker zeroOrOne "+t).attr("refX",30).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("orient","auto");i.append("circle").attr("fill","white").attr("cx",9).attr("cy",9).attr("r",6),i.append("path").attr("d","M21,0 L21,18")},"zero_or_one"),Nt=h((r,t,a)=>{r.append("defs").append("marker").attr("id",a+"_"+t+"-oneOrMoreStart").attr("class","marker oneOrMore "+t).attr("refX",18).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("orient","auto").append("path").attr("d","M0,18 Q 18,0 36,18 Q 18,36 0,18 M42,9 L42,27"),r.append("defs").append("marker").attr("id",a+"_"+t+"-oneOrMoreEnd").attr("class","marker oneOrMore "+t).attr("refX",27).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("orient","auto").append("path").attr("d","M3,9 L3,27 M9,18 Q27,0 45,18 Q27,36 9,18")},"one_or_more"),Qt=h((r,t,a)=>{let s=r.append("defs").append("marker").attr("id",a+"_"+t+"-zeroOrMoreStart").attr("class","marker zeroOrMore "+t).attr("refX",18).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("orient","auto");s.append("circle").attr("fill","white").attr("cx",48).attr("cy",18).attr("r",6),s.append("path").attr("d","M0,18 Q18,0 36,18 Q18,36 0,18");let i=r.append("defs").append("marker").attr("id",a+"_"+t+"-zeroOrMoreEnd").attr("class","marker zeroOrMore "+t).attr("refX",39).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("orient","auto");i.append("circle").attr("fill","white").attr("cx",9).attr("cy",18).attr("r",6),i.append("path").attr("d","M21,18 Q39,0 57,18 Q39,36 21,18")},"zero_or_more"),Pt=h((r,t,a)=>{r.append("defs").append("marker").attr("id",a+"_"+t+"-requirement_arrowEnd").attr("refX",20).attr("refY",10).attr("markerWidth",20).attr("markerHeight",20).attr("orient","auto").append("path").attr("d",`M0,0
L20,10
M20,10
L0,20`)},"requirement_arrow"),Zt=h((r,t,a)=>{let s=r.append("defs").append("marker").attr("id",a+"_"+t+"-requirement_containsStart").attr("refX",0).attr("refY",10).attr("markerWidth",20).attr("markerHeight",20).attr("orient","auto").append("g");s.append("circle").attr("cx",10).attr("cy",10).attr("r",9).attr("fill","none"),s.append("line").attr("x1",1).attr("x2",19).attr("y1",10).attr("y2",10),s.append("line").attr("y1",1).attr("y2",19).attr("x1",10).attr("x2",10)},"requirement_contains"),Vt={extension:Yt,composition:Ct,aggregation:Wt,dependency:Ht,lollipop:Bt,point:Rt,circle:At,cross:zt,barb:Ut,only_one:qt,zero_or_one:It,one_or_more:Nt,zero_or_more:Qt,requirement_arrow:Pt,requirement_contains:Zt},kr=Xt;export{cr as a,pr as b,dr as c,fr as d,kr as e};