UNPKG

mermaid

Version:

Markdown-ish syntax for generating flowcharts, mindmaps, sequence diagrams, class diagrams, gantt charts, git graphs and more.

8 lines (7 loc) 19 kB
import{c as N,d as j,e as S}from"./chunk-KTJJRPYF.mjs";import{a as V}from"./chunk-S67DUUA5.mjs";import{a as G}from"./chunk-LM6QDVU5.mjs";import{d as I}from"./chunk-I5SP4YIW.mjs";import{m as L}from"./chunk-QS5O44OF.mjs";import{Ca as R,Da as Q,G as A,Ha as H,La as Z,X as g,b as h,ga as B}from"./chunk-QJLC67TO.mjs";import{a as d}from"./chunk-GTKDMUJJ.mjs";var J=d((r,t,a,s,l,i)=>{t.arrowTypeStart&&F(r,"start",t.arrowTypeStart,a,s,l,i),t.arrowTypeEnd&&F(r,"end",t.arrowTypeEnd,a,s,l,i)},"addEdgeMarkers"),rt={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}},F=d((r,t,a,s,l,i,n)=>{let o=rt[a];if(!o){h.warn(`Unknown arrow type: ${a}`);return}let e=o.type,f=`${l}_${i}-${e}${t==="start"?"Start":"End"}`;if(n&&n.trim()!==""){let c=n.replace(/[^\dA-Za-z]/g,"_"),m=`${f}_${c}`;if(!document.getElementById(m)){let k=document.getElementById(f);if(k){let u=k.cloneNode(!0);u.id=m,u.querySelectorAll("path, circle, line").forEach(O=>{O.setAttribute("stroke",n),o.fill&&O.setAttribute("fill",n)}),k.parentNode?.appendChild(u)}}r.attr(`marker-${t}`,`url(${s}#${m})`)}else r.attr(`marker-${t}`,`url(${s}#${f})`)},"addEdgeMarker");var v=new Map,y=new Map,zt=d(()=>{v.clear(),y.clear()},"clear"),E=d(r=>r?r.reduce((a,s)=>a+";"+s,""):"","getLabelStyles"),qt=d(async(r,t)=>{let a=A(g().flowchart.htmlLabels),s=await I(r,t.label,{style:E(t.labelStyle),useHtmlLabels:a,addSvgBackground:!0,isNode:!1});h.info("abc82",t,t.labelType);let l=r.insert("g").attr("class","edgeLabel"),i=l.insert("g").attr("class","label");i.node().appendChild(s);let n=s.getBBox();if(a){let e=s.children[0],p=B(s);n=e.getBoundingClientRect(),p.attr("width",n.width),p.attr("height",n.height)}i.attr("transform","translate("+-n.width/2+", "+-n.height/2+")"),v.set(t.id,l),t.width=n.width,t.height=n.height;let o;if(t.startLabelLeft){let e=await S(t.startLabelLeft,E(t.labelStyle)),p=r.insert("g").attr("class","edgeTerminals"),f=p.insert("g").attr("class","inner");o=f.node().appendChild(e);let c=e.getBBox();f.attr("transform","translate("+-c.width/2+", "+-c.height/2+")"),y.get(t.id)||y.set(t.id,{}),y.get(t.id).startLeft=p,C(o,t.startLabelLeft)}if(t.startLabelRight){let e=await S(t.startLabelRight,E(t.labelStyle)),p=r.insert("g").attr("class","edgeTerminals"),f=p.insert("g").attr("class","inner");o=p.node().appendChild(e),f.node().appendChild(e);let c=e.getBBox();f.attr("transform","translate("+-c.width/2+", "+-c.height/2+")"),y.get(t.id)||y.set(t.id,{}),y.get(t.id).startRight=p,C(o,t.startLabelRight)}if(t.endLabelLeft){let e=await S(t.endLabelLeft,E(t.labelStyle)),p=r.insert("g").attr("class","edgeTerminals"),f=p.insert("g").attr("class","inner");o=f.node().appendChild(e);let c=e.getBBox();f.attr("transform","translate("+-c.width/2+", "+-c.height/2+")"),p.node().appendChild(e),y.get(t.id)||y.set(t.id,{}),y.get(t.id).endLeft=p,C(o,t.endLabelLeft)}if(t.endLabelRight){let e=await S(t.endLabelRight,E(t.labelStyle)),p=r.insert("g").attr("class","edgeTerminals"),f=p.insert("g").attr("class","inner");o=f.node().appendChild(e);let c=e.getBBox();f.attr("transform","translate("+-c.width/2+", "+-c.height/2+")"),p.node().appendChild(e),y.get(t.id)||y.set(t.id,{}),y.get(t.id).endRight=p,C(o,t.endLabelRight)}return s},"insertEdgeLabel");function C(r,t){g().flowchart.htmlLabels&&r&&(r.style.width=t.length*9+"px",r.style.height="12px")}d(C,"setTerminalWidth");var Ut=d((r,t)=>{h.debug("Moving label abc88 ",r.id,r.label,v.get(r.id),t);let a=t.updatedPath?t.updatedPath:t.originalPath,s=g(),{subGraphTitleTotalMargin:l}=G(s);if(r.label){let i=v.get(r.id),n=r.x,o=r.y;if(a){let e=L.calcLabelPosition(a);h.debug("Moving label "+r.label+" from (",n,",",o,") to (",e.x,",",e.y,") abc88"),t.updatedPath&&(n=e.x,o=e.y)}i.attr("transform",`translate(${n}, ${o+l/2})`)}if(r.startLabelLeft){let i=y.get(r.id).startLeft,n=r.x,o=r.y;if(a){let e=L.calcTerminalLabelPosition(r.arrowTypeStart?10:0,"start_left",a);n=e.x,o=e.y}i.attr("transform",`translate(${n}, ${o})`)}if(r.startLabelRight){let i=y.get(r.id).startRight,n=r.x,o=r.y;if(a){let e=L.calcTerminalLabelPosition(r.arrowTypeStart?10:0,"start_right",a);n=e.x,o=e.y}i.attr("transform",`translate(${n}, ${o})`)}if(r.endLabelLeft){let i=y.get(r.id).endLeft,n=r.x,o=r.y;if(a){let e=L.calcTerminalLabelPosition(r.arrowTypeEnd?10:0,"end_left",a);n=e.x,o=e.y}i.attr("transform",`translate(${n}, ${o})`)}if(r.endLabelRight){let i=y.get(r.id).endRight,n=r.x,o=r.y;if(a){let e=L.calcTerminalLabelPosition(r.arrowTypeEnd?10:0,"end_right",a);n=e.x,o=e.y}i.attr("transform",`translate(${n}, ${o})`)}},"positionEdgeLabel"),at=d((r,t)=>{let a=r.x,s=r.y,l=Math.abs(t.x-a),i=Math.abs(t.y-s),n=r.width/2,o=r.height/2;return l>=n||i>=o},"outsideNode"),et=d((r,t,a)=>{h.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,l=r.y,i=Math.abs(s-a.x),n=r.width/2,o=a.x<t.x?n-i:n+i,e=r.height/2,p=Math.abs(t.y-a.y),f=Math.abs(t.x-a.x);if(Math.abs(l-t.y)*n>Math.abs(s-t.x)*e){let c=a.y<t.y?t.y-e-l:l-e-t.y;o=f*c/p;let m={x:a.x<t.x?a.x+o:a.x-f+o,y:a.y<t.y?a.y+p-c:a.y-p+c};return o===0&&(m.x=t.x,m.y=t.y),f===0&&(m.x=t.x),p===0&&(m.y=t.y),h.debug(`abc89 top/bottom calc, Q ${p}, q ${c}, R ${f}, r ${o}`,m),m}else{a.x<t.x?o=t.x-n-s:o=s-n-t.x;let c=p*o/f,m=a.x<t.x?a.x+f-o:a.x-f+o,k=a.y<t.y?a.y+c:a.y-c;return h.debug(`sides calc abc89, Q ${p}, q ${c}, R ${f}, r ${o}`,{_x:m,_y:k}),o===0&&(m=t.x,k=t.y),f===0&&(m=t.x),p===0&&(k=t.y),{x:m,y:k}}},"intersection"),D=d((r,t)=>{h.warn("abc88 cutPathAtIntersect",r,t);let a=[],s=r[0],l=!1;return r.forEach(i=>{if(h.info("abc88 checking point",i,t),!at(t,i)&&!l){let n=et(t,s,i);h.debug("abc88 inside",i,s,n),h.debug("abc88 intersection",n,t);let o=!1;a.forEach(e=>{o=o||e.x===n.x&&e.y===n.y}),a.some(e=>e.x===n.x&&e.y===n.y)?h.warn("abc88 no intersect",n,a):a.push(n),l=!0}else h.warn("abc88 outside",i,s),s=i,l||a.push(i)}),h.debug("returning points",a),a},"cutPathAtIntersect");function nt(r){let t=[],a=[];for(let s=1;s<r.length-1;s++){let l=r[s-1],i=r[s],n=r[s+1];(l.x===i.x&&i.y===n.y&&Math.abs(i.x-n.x)>5&&Math.abs(i.y-l.y)>5||l.y===i.y&&i.x===n.x&&Math.abs(i.x-l.x)>5&&Math.abs(i.y-n.y)>5)&&(t.push(i),a.push(s))}return{cornerPoints:t,cornerPointPositions:a}}d(nt,"extractCornerPoints");var K=d(function(r,t,a){let s=t.x-r.x,l=t.y-r.y,i=Math.sqrt(s*s+l*l),n=a/i;return{x:t.x-n*s,y:t.y-n*l}},"findAdjacentPoint"),st=d(function(r){let{cornerPointPositions:t}=nt(r),a=[];for(let s=0;s<r.length;s++)if(t.includes(s)){let l=r[s-1],i=r[s+1],n=r[s],o=K(l,n,5),e=K(i,n,5),p=e.x-o.x,f=e.y-o.y;a.push(o);let c=Math.sqrt(2)*2,m={x:n.x,y:n.y};if(Math.abs(i.x-l.x)>10&&Math.abs(i.y-l.y)>=10){h.debug("Corner point fixing",Math.abs(i.x-l.x),Math.abs(i.y-l.y));let k=5;n.x===o.x?m={x:p<0?o.x-k+c:o.x+k-c,y:f<0?o.y-c:o.y+c}:m={x:p<0?o.x-c:o.x+c,y:f<0?o.y-k+c:o.y+k-c}}else h.debug("Corner point skipping fixing",Math.abs(i.x-l.x),Math.abs(i.y-l.y));a.push(m,e)}else a.push(r[s]);return a},"fixCorners"),At=d(function(r,t,a,s,l,i,n){let{handDrawnSeed:o}=g(),e=t.points,p=!1,f=l;var c=i;let m=[];for(let b in t.cssCompiledStyles)N(b)||m.push(t.cssCompiledStyles[b]);c.intersect&&f.intersect&&(e=e.slice(1,t.points.length-1),e.unshift(f.intersect(e[0])),h.debug("Last point APA12",t.start,"-->",t.end,e[e.length-1],c,c.intersect(e[e.length-1])),e.push(c.intersect(e[e.length-1]))),t.toCluster&&(h.info("to cluster abc88",a.get(t.toCluster)),e=D(t.points,a.get(t.toCluster).node),p=!0),t.fromCluster&&(h.debug("from cluster abc88",a.get(t.fromCluster),JSON.stringify(e,null,2)),e=D(e.reverse(),a.get(t.fromCluster).node).reverse(),p=!0);let k=e.filter(b=>!Number.isNaN(b.y));k=st(k);let u=H;switch(u=R,t.curve){case"linear":u=R;break;case"basis":u=H;break;case"cardinal":u=Z;break;default:u=H}let{x:z,y:O}=V(t),P=Q().x(z).y(O).curve(u),x;switch(t.thickness){case"normal":x="edge-thickness-normal";break;case"thick":x="edge-thickness-thick";break;case"invisible":x="edge-thickness-invisible";break;default:x="edge-thickness-normal"}switch(t.pattern){case"solid":x+=" edge-pattern-solid";break;case"dotted":x+=" edge-pattern-dotted";break;case"dashed":x+=" edge-pattern-dashed";break;default:x+=" edge-pattern-solid"}let w,q=P(k),M=Array.isArray(t.style)?t.style:[t.style],U=M.find(b=>b?.startsWith("stroke:"));if(t.look==="handDrawn"){let b=j.svg(r);Object.assign([],k);let T=b.path(q,{roughness:.3,seed:o});x+=" transition",w=B(T).select("path").attr("id",t.id).attr("class"," "+x+(t.classes?" "+t.classes:"")).attr("style",M?M.reduce((W,Y)=>W+";"+Y,""):"");let _=w.attr("d");w.attr("d",_),r.node().appendChild(w.node())}else{let b=m.join(";"),T=M?M.reduce((Y,tt)=>Y+tt+";",""):"",_="";t.animate&&(_=" edge-animation-fast"),t.animation&&(_=" edge-animation-"+t.animation);let W=b?b+";"+T+";":T;w=r.append("path").attr("d",q).attr("id",t.id).attr("class"," "+x+(t.classes?" "+t.classes:"")+(_??"")).attr("style",W),U=W.match(/stroke:([^;]+)/)?.[1]}let $="";(g().flowchart.arrowMarkerAbsolute||g().state.arrowMarkerAbsolute)&&($=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,$=$.replace(/\(/g,"\\(").replace(/\)/g,"\\)")),h.info("arrowTypeStart",t.arrowTypeStart),h.info("arrowTypeEnd",t.arrowTypeEnd),J(w,t,$,n,s,U);let X={};return p&&(X.updatedPath=e),X.originalPath=t.points,X},"insertEdge");var ot=d((r,t,a,s)=>{t.forEach(l=>{Lt[l](r,a,s)})},"insertMarkers"),it=d((r,t,a)=>{h.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"),lt=d((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"),ct=d((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"),pt=d((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"),dt=d((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"),ft=d((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"),ht=d((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"),mt=d((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"),kt=d((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"),yt=d((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"),xt=d((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 l=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");l.append("circle").attr("fill","white").attr("cx",9).attr("cy",9).attr("r",6),l.append("path").attr("d","M21,0 L21,18")},"zero_or_one"),bt=d((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"),ut=d((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 l=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");l.append("circle").attr("fill","white").attr("cx",9).attr("cy",18).attr("r",6),l.append("path").attr("d","M21,18 Q39,0 57,18 Q39,36 21,18")},"zero_or_more"),gt=d((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"),wt=d((r,t,a)=>{let s=r.append("defs").append("marker").attr("id",a+"_"+t+"-requirement_containsEnd").attr("refX",20).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",10).attr("fill","none"),s.append("line").attr("x1",0).attr("x2",20).attr("y1",10).attr("y2",10),s.append("line").attr("y1",0).attr("y2",20).attr("x1",10).attr("x2",10)},"requirement_contains"),Lt={extension:it,composition:lt,aggregation:ct,dependency:pt,lollipop:dt,point:ft,circle:ht,cross:mt,barb:kt,only_one:yt,zero_or_one:xt,one_or_more:bt,zero_or_more:ut,requirement_arrow:gt,requirement_contains:wt},Nt=ot;export{zt as a,qt as b,Ut as c,At as d,Nt as e};