UNPKG

code-server

Version:

Run VS Code on a remote server.

11 lines (10 loc) • 38.2 kB
import{a as St}from"./chunk-RS4OOBDL.js";import{f as D}from"./chunk-KWINGM6W.js";import{a as _t}from"./chunk-XJWARXV4.js";import{c as wt,d as bt}from"./chunk-HBYVLBIR.js";import{c as ot,e as Lt}from"./chunk-6XUBHLNE.js";import{q as H,u as Mt}from"./chunk-7RYOY7AM.js";import{$ as W,C as Y,G as nt}from"./chunk-YX6DBKFT.js";import{$ as xt,G as K,H as ct,J as dt,K as pt,L as st,P as ht,S as ft,W as mt,X as kt,Y as ut,Z as yt,_ as gt,b as w,h as T}from"./chunk-TOKYXDRE.js";import{a as p}from"./chunk-TZZ523SA.js";var Q=p((r,t)=>{if(t)return"translate("+-r.width/2+", "+-r.height/2+")";let a=r.x??0,e=r.y??0;return"translate("+-(a+r.width/2)+", "+-(e+r.height/2)+")"},"computeLabelTransform"),v={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},vt={arrow_point:4,arrow_cross:12.5,arrow_circle:12.5};function j(r,t){if(r===void 0||t===void 0)return{angle:0,deltaX:0,deltaY:0};r=g(r),t=g(t);let[a,e]=[r.x,r.y],[s,n]=[t.x,t.y],o=s-a,i=n-e;return{angle:Math.atan(i/o),deltaX:o,deltaY:i}}p(j,"calculateDeltaAndAngle");var g=p(r=>Array.isArray(r)?{x:r[0],y:r[1]}:r,"pointTransformer"),zt=p(r=>({x:p(function(t,a,e){let s=0,n=g(e[0]).x<g(e[e.length-1]).x?"left":"right";if(a===0&&Object.hasOwn(v,r.arrowTypeStart)){let{angle:c,deltaX:u}=j(e[0],e[1]);s=v[r.arrowTypeStart]*Math.cos(c)*(u>=0?1:-1)}else if(a===e.length-1&&Object.hasOwn(v,r.arrowTypeEnd)){let{angle:c,deltaX:u}=j(e[e.length-1],e[e.length-2]);s=v[r.arrowTypeEnd]*Math.cos(c)*(u>=0?1:-1)}let o=Math.abs(g(t).x-g(e[e.length-1]).x),i=Math.abs(g(t).y-g(e[e.length-1]).y),d=Math.abs(g(t).x-g(e[0]).x),k=Math.abs(g(t).y-g(e[0]).y),h=v[r.arrowTypeStart],m=v[r.arrowTypeEnd],l=1;if(o<m&&o>0&&i<m){let c=m+l-o;c*=n==="right"?-1:1,s-=c}if(d<h&&d>0&&k<h){let c=h+l-d;c*=n==="right"?-1:1,s+=c}return g(t).x+s},"x"),y:p(function(t,a,e){let s=0,n=g(e[0]).y<g(e[e.length-1]).y?"down":"up";if(a===0&&Object.hasOwn(v,r.arrowTypeStart)){let{angle:c,deltaY:u}=j(e[0],e[1]);s=v[r.arrowTypeStart]*Math.abs(Math.sin(c))*(u>=0?1:-1)}else if(a===e.length-1&&Object.hasOwn(v,r.arrowTypeEnd)){let{angle:c,deltaY:u}=j(e[e.length-1],e[e.length-2]);s=v[r.arrowTypeEnd]*Math.abs(Math.sin(c))*(u>=0?1:-1)}let o=Math.abs(g(t).y-g(e[e.length-1]).y),i=Math.abs(g(t).x-g(e[e.length-1]).x),d=Math.abs(g(t).y-g(e[0]).y),k=Math.abs(g(t).x-g(e[0]).x),h=v[r.arrowTypeStart],m=v[r.arrowTypeEnd],l=1;if(o<m&&o>0&&i<m){let c=m+l-o;c*=n==="up"?-1:1,s-=c}if(d<h&&d>0&&k<h){let c=h+l-d;c*=n==="up"?-1:1,s+=c}return g(t).y+s},"y")}),"getLineFunctionsWithOffset"),Ct=p((r,t,a,e,s,n=!1,o)=>{t.arrowTypeStart&&Ot(r,"start",t.arrowTypeStart,a,e,s,n,o),t.arrowTypeEnd&&Ot(r,"end",t.arrowTypeEnd,a,e,s,n,o)},"addEdgeMarkers"),Pt={arrow_cross:{type:"cross",fill:!1},arrow_point:{type:"point",fill:!0},arrow_barb:{type:"barb",fill:!0},arrow_barb_neo:{type:"barb",fill:!0},arrow_circle:{type:"circle",fill:!1},arrow_hierarchy:{type:"hierarchy",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}},Rt=["cross","point","circle","lollipop","aggregation","extension","composition","dependency","barb"],Ot=p((r,t,a,e,s,n,o=!1,i)=>{if(!a||a==="none")return;let d=Pt[a],k=d&&Rt.includes(d.type);if(!d){w.warn(`Unknown arrow type: ${a}`);return}let h=d.type,c=`${s}_${n}-${h}${t==="start"?"Start":"End"}${o&&k?"-margin":""}`;if(i&&i.trim()!==""){let u=i.replace(/[^\dA-Za-z]/g,"_"),y=`${c}_${u}`;if(!document.getElementById(y)){let f=document.getElementById(c);if(f){let S=f.cloneNode(!0);S.id=y,S.querySelectorAll("path, circle, line").forEach($=>{$.setAttribute("stroke",i),d.fill&&$.setAttribute("fill",i)}),f.parentNode?.appendChild(S)}}r.attr(`marker-${t}`,`url(${e}#${y})`)}else r.attr(`marker-${t}`,`url(${e}#${c})`)},"addEdgeMarker"),qt=p(r=>typeof r=="string"?r:W()?.flowchart?.curve,"resolveEdgeCurveType"),tt=new Map,_=new Map,$r=p(()=>{tt.clear(),_.clear()},"clear"),Xr=p(r=>!!(r.label||r.startLabelLeft||r.startLabelRight||r.endLabelLeft||r.endLabelRight),"hasEdgeLabel"),Z=p(r=>r?typeof r=="string"?r:r.reduce((t,a)=>t+";"+a,""):"","getLabelStyles"),Yr=p(async(r,t)=>{let a=W(),e=nt(a),{labelStyles:s}=bt(t);t.labelStyle=s;let n=r.insert("g").attr("class","edgeLabel"),o=n.insert("g").attr("class","label").attr("data-id",t.id),i=t.labelType==="markdown",k=await Lt(r,t.label,{style:Z(t.labelStyle),useHtmlLabels:e,addSvgBackground:!0,isNode:!1,markdown:i,width:i?void 0:void 0},a);o.node().appendChild(k),w.info("abc82",t,t.labelType);let h,m;if(e){let c=k.children[0],u=T(k);h=await ot.measure(()=>c.getBoundingClientRect()),m=h,u.attr("width",h.width),u.attr("height",h.height)}else{let c=T(k).select("text").node();await ot.measure(()=>{h=k.getBBox(),c&&typeof c.getBBox=="function"?m=c.getBBox():m=h})}o.attr("transform",Q(m,e)),tt.set(t.id,n),t.width=h.width,t.height=h.height;let l;if(t.startLabelLeft){let c=r.insert("g").attr("class","edgeTerminals"),u=c.insert("g").attr("class","inner"),y=await D(u,t.startLabelLeft,Z(t.labelStyle)||"",!1,!1);l=y;let f=y.getBBox();if(e){let S=y.children[0],x=T(y);f=S.getBoundingClientRect(),x.attr("width",f.width),x.attr("height",f.height)}u.attr("transform",Q(f,e)),_.get(t.id)||_.set(t.id,{}),_.get(t.id).startLeft=c,F(l,t.startLabelLeft,f),V(t,"startLeft",f)}if(t.startLabelRight){let c=r.insert("g").attr("class","edgeTerminals"),u=c.insert("g").attr("class","inner"),y=await D(u,t.startLabelRight,Z(t.labelStyle)||"",!1,!1);l=y;let f=y.getBBox();if(e){let S=y.children[0],x=T(y);f=S.getBoundingClientRect(),x.attr("width",f.width),x.attr("height",f.height)}u.attr("transform",Q(f,e)),_.get(t.id)||_.set(t.id,{}),_.get(t.id).startRight=c,F(l,t.startLabelRight,f),V(t,"startRight",f)}if(t.endLabelLeft){let c=r.insert("g").attr("class","edgeTerminals"),u=c.insert("g").attr("class","inner"),y=await D(u,t.endLabelLeft,Z(t.labelStyle)||"",!1,!1);l=y;let f=y.getBBox();if(e){let S=y.children[0],x=T(y);f=S.getBoundingClientRect(),x.attr("width",f.width),x.attr("height",f.height)}u.attr("transform",Q(f,e)),_.get(t.id)||_.set(t.id,{}),_.get(t.id).endLeft=c,F(l,t.endLabelLeft,f),V(t,"endLeft",f)}if(t.endLabelRight){let c=r.insert("g").attr("class","edgeTerminals"),u=c.insert("g").attr("class","inner"),y=await D(u,t.endLabelRight,Z(t.labelStyle)||"",!1,!1);l=y;let f=y.getBBox();if(e){let S=y.children[0],x=T(y);f=S.getBoundingClientRect(),x.attr("width",f.width),x.attr("height",f.height)}u.attr("transform",Q(f,e)),_.get(t.id)||_.set(t.id,{}),_.get(t.id).endRight=c,F(l,t.endLabelRight,f),V(t,"endRight",f)}return k},"insertEdgeLabel");function V(r,t,a){r.terminalLabelSizes??={},r.terminalLabelSizes[t]={width:a.width,height:a.height}}p(V,"recordTerminalLabelSize");function F(r,t,a){nt(W())&&r&&(r.style.width=Math.max(t.length*9,a.width)+"px",r.style.height=a.height+"px")}p(F,"setTerminalWidth");var It=p((r,t)=>{let a=r.x,e=r.y;if(t?.updatedPath){let s=H.calcLabelPosition(t.updatedPath);if(t.originalPath){let n=H.calcLabelPosition(t.originalPath);a=r.x+(s.x-n.x),e=r.y+(s.y-n.y)}else a=s.x,e=s.y}return{x:a,y:e}},"resolveEdgeLabelPosition"),Wr=p((r,t)=>{w.debug("Moving label abc88 ",r.id,r.label,tt.get(r.id),t);let a=W(),{subGraphTitleTotalMargin:e}=St(a);if(r.label){let n=tt.get(r.id),{x:o,y:i}=It(r,t);w.debug("Moving label "+r.label+" from (",r.x,",",r.y,") to (",o,",",i,") abc88"),n.attr("transform",`translate(${o}, ${i+e/2})`)}let s=t.updatedPath?t.updatedPath:t.originalPath;if(r.startLabelLeft){let n=_.get(r.id).startLeft,o=r.x,i=r.y;if(s){let d=H.calcTerminalLabelPosition(r.arrowTypeStart?10:0,"start_left",s);o=d.x,i=d.y}n.attr("transform",`translate(${o}, ${i})`)}if(r.startLabelRight){let n=_.get(r.id).startRight,o=r.x,i=r.y;if(s){let d=H.calcTerminalLabelPosition(r.arrowTypeStart?10:0,"start_right",s);o=d.x,i=d.y}n.attr("transform",`translate(${o}, ${i})`)}if(r.endLabelLeft){let n=_.get(r.id).endLeft,o=r.x,i=r.y;if(s){let d=H.calcTerminalLabelPosition(r.arrowTypeEnd?10:0,"end_left",s);o=d.x,i=d.y}n.attr("transform",`translate(${o}, ${i})`)}if(r.endLabelRight){let n=_.get(r.id).endRight,o=r.x,i=r.y;if(s){let d=H.calcTerminalLabelPosition(r.arrowTypeEnd?10:0,"end_right",s);o=d.x,i=d.y}n.attr("transform",`translate(${o}, ${i})`)}},"positionEdgeLabel"),Nt=p((r,t)=>{if(!r?.isLabelEdge||!r?.id?.endsWith("-to-label")||!Array.isArray(t)||t.length!==2)return t;let[a,e]=t,s=Math.abs(e.x-a.x),n=Math.abs(e.y-a.y);return s<.001||n<.001?t:n>=s?[a,{x:a.x,y:e.y},e]:[a,{x:e.x,y:a.y},e]},"orthogonalizeToLabelClippedPoints"),Dt=p((r,t)=>{let a=r.x,e=r.y,s=Math.abs(t.x-a),n=Math.abs(t.y-e),o=r.width/2,i=r.height/2;return s>=o||n>=i},"outsideNode"),Qt=p((r,t,a)=>{w.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 e=r.x,s=r.y,n=Math.abs(e-a.x),o=r.width/2,i=a.x<t.x?o-n:o+n,d=r.height/2,k=Math.abs(t.y-a.y),h=Math.abs(t.x-a.x);if(Math.abs(s-t.y)*o>Math.abs(e-t.x)*d){let m=a.y<t.y?t.y-d-s:s-d-t.y;i=h*m/k;let l={x:a.x<t.x?a.x+i:a.x-h+i,y:a.y<t.y?a.y+k-m:a.y-k+m};return i===0&&(l.x=t.x,l.y=t.y),h===0&&(l.x=t.x),k===0&&(l.y=t.y),w.debug(`abc89 top/bottom calc, Q ${k}, q ${m}, R ${h}, r ${i}`,l),l}else{a.x<t.x?i=t.x-o-e:i=e-o-t.x;let m=k*i/h,l=a.x<t.x?a.x+h-i:a.x-h+i,c=a.y<t.y?a.y+m:a.y-m;return w.debug(`sides calc abc89, Q ${k}, q ${m}, R ${h}, r ${i}`,{_x:l,_y:c}),i===0&&(l=t.x,c=t.y),h===0&&(l=t.x),k===0&&(c=t.y),{x:l,y:c}}},"intersection"),Et=p((r,t)=>{w.warn("abc88 cutPathAtIntersect",r,t);let a=[],e=r[0],s=!1;return r.forEach(n=>{if(w.info("abc88 checking point",n,t),!Dt(t,n)&&!s){let o=Qt(t,e,n);w.debug("abc88 inside",n,e,o),w.debug("abc88 intersection",o,t);let i=!1;a.forEach(d=>{i=i||d.x===o.x&&d.y===o.y}),a.some(d=>d.x===o.x&&d.y===o.y)?w.warn("abc88 no intersect",o,a):a.push(o),s=!0}else w.warn("abc88 outside",n,e),e=n,s||a.push(n)}),w.debug("returning points",a),a},"cutPathAtIntersect");function $t(r){let t=[],a=[];for(let e=1;e<r.length-1;e++){let s=r[e-1],n=r[e],o=r[e+1];(s.x===n.x&&n.y===o.y&&Math.abs(n.x-o.x)>5&&Math.abs(n.y-s.y)>5||s.y===n.y&&n.x===o.x&&Math.abs(n.x-s.x)>5&&Math.abs(n.y-o.y)>5)&&(t.push(n),a.push(e))}return{cornerPoints:t,cornerPointPositions:a}}p($t,"extractCornerPoints");var Ut=p(function(r,t,a){let e=t.x-r.x,s=t.y-r.y,n=Math.sqrt(e*e+s*s),o=a/n;return{x:t.x-o*e,y:t.y-o*s}},"findAdjacentPoint"),Zt=p(function(r){let{cornerPointPositions:t}=$t(r),a=[];for(let e=0;e<r.length;e++)if(t.includes(e)){let s=r[e-1],n=r[e+1],o=r[e],i=Ut(s,o,5),d=Ut(n,o,5),k=d.x-i.x,h=d.y-i.y;a.push(i);let m=Math.sqrt(2)*2,l={x:o.x,y:o.y};if(Math.abs(n.x-s.x)>10&&Math.abs(n.y-s.y)>=10){w.debug("Corner point fixing",Math.abs(n.x-s.x),Math.abs(n.y-s.y));let c=5;o.x===i.x?l={x:k<0?i.x-c+m:i.x+c-m,y:h<0?i.y-m:i.y+m}:l={x:k<0?i.x-m:i.x+m,y:h<0?i.y-c+m:i.y+c-m}}else w.debug("Corner point skipping fixing",Math.abs(n.x-s.x),Math.abs(n.y-s.y));a.push(l,d)}else a.push(r[e]);return a},"fixCorners"),jt=p((r,t,a)=>{let e=r-t-a,s=2,n=2,o=s+n,i=Math.floor(e/o),d=Number.isFinite(i)?Math.max(0,i):0,k=Array(d).fill(`${s} ${n}`).join(" ");return`0 ${t} ${k} ${a}`},"generateDashArray"),Tr=p(function(r,t,a,e,s,n,o,i=!1,d=void 0){if(!o)throw new Error(`insertEdge: missing diagramId for edge "${t.id}" \u2014 edge IDs require a diagram prefix for uniqueness`);let{handDrawnSeed:k,layout:h}=W(),m=d??h,l=t.points,c=!1,u=s;var y=n;let f=[];for(let b in t.cssCompiledStyles)wt(b)||f.push(t.cssCompiledStyles[b]);if(m==="swimlane"){if(!i&&y.intersect&&u.intersect&&Array.isArray(l)&&l.length>=2)if(l.length===2)l=[u.intersect(l[0]),y.intersect(l[1])];else{let b=l.slice(1,-1),X=b[0],E=b[b.length-1],U=.5,R=Math.abs(l[l.length-1].x-E.x)<U&&Math.abs(l[l.length-1].y-E.y)<U,A=u.intersect(X),z=R?E:y.intersect(E),q=Math.abs(z.x-E.x)<U&&Math.abs(z.y-E.y)<U,Bt=Math.abs(A.x-X.x)<U&&Math.abs(A.y-X.y)<U?[]:[A],At=q?[]:[z];l=[...Bt,...b,...At]}l=Nt(t,l)}else y.intersect&&u.intersect&&!i&&(l=l.slice(1,t.points.length-1),l.unshift(u.intersect(l[0])),l.push(y.intersect(l[l.length-1])));let S=btoa(JSON.stringify(l));t.toCluster&&(w.info("to cluster abc88",a.get(t.toCluster)),l=Et(t.points,a.get(t.toCluster).node),c=!0),t.fromCluster&&(w.debug("from cluster abc88",a.get(t.fromCluster),JSON.stringify(l,null,2)),l=Et(l.reverse(),a.get(t.fromCluster).node).reverse(),c=!0);let x=l.filter(b=>!Number.isNaN(b.y)),$=qt(t.curve);$!=="rounded"&&(x=Zt(x));let M=K;switch($){case"linear":M=K;break;case"basis":M=st;break;case"cardinal":M=ht;break;case"bumpX":M=dt;break;case"bumpY":M=pt;break;case"catmullRom":M=ft;break;case"monotoneX":M=mt;break;case"monotoneY":M=kt;break;case"natural":M=ut;break;case"step":M=yt;break;case"stepAfter":M=xt;break;case"stepBefore":M=gt;break;case"rounded":M=K;break;default:M=st}let{x:N,y:C}=zt(t),rt=ct().x(N).y(C).curve(M),O;switch(t.thickness){case"normal":O="edge-thickness-normal";break;case"thick":O="edge-thickness-thick";break;case"invisible":O="edge-thickness-invisible";break;default:O="edge-thickness-normal"}switch(t.pattern){case"solid":O+=" edge-pattern-solid";break;case"dotted":O+=" edge-pattern-dotted";break;case"dashed":O+=" edge-pattern-dashed";break;default:O+=" edge-pattern-solid"}let L,J=$==="rounded"?Xt(Yt(x,t),5):rt(x),B=Array.isArray(t.style)?t.style:[t.style],lt=B.find(b=>b?.startsWith("stroke:")),P="";t.animate&&(P="edge-animation-fast"),t.animation&&(P="edge-animation-"+t.animation);let at=!1;if(t.look==="handDrawn"){let b=_t.svg(r);Object.assign([],x);let X=b.path(J,{roughness:.3,seed:k});O+=" transition",L=T(X).select("path").attr("id",`${o}-${t.id}`).attr("class"," "+O+(t.classes?" "+t.classes:"")+(P?" "+P:"")).attr("style",B?B.reduce((U,R)=>U+";"+R,""):"");let E=L.attr("d");L.attr("d",E),r.node().appendChild(L.node())}else{let b=f.join(";"),X=B?B.reduce((q,I)=>q+I+";",""):"",E=(b?b+";"+X+";":X)+";"+(B?B.reduce((q,I)=>q+";"+I,""):"");L=r.append("path").attr("d",J).attr("id",`${o}-${t.id}`).attr("class"," "+O+(t.classes?" "+t.classes:"")+(P?" "+P:"")).attr("style",E),lt=E.match(/stroke:([^;]+)/)?.[1],at=t.animate===!0||!!t.animation||b.includes("animation");let U=L.node(),R=typeof U.getTotalLength=="function"?U.getTotalLength():0,A=vt[t.arrowTypeStart]||0,z=vt[t.arrowTypeEnd]||0;if(t.look==="neo"&&!at){let I=`stroke-dasharray: ${t.pattern==="dotted"||t.pattern==="dashed"?jt(R,A,z):`0 ${A} ${R-A-z} ${z}`}; stroke-dashoffset: 0;`;L.attr("style",I+L.attr("style"))}}L.attr("data-edge",!0),L.attr("data-et","edge"),L.attr("data-id",t.id),L.attr("data-points",S),L.attr("data-look",Mt(t.look)),t.showPoints&&x.forEach(b=>{r.append("circle").style("stroke","red").style("fill","red").attr("r",1).attr("cx",b.x).attr("cy",b.y)});let G="";(W().flowchart.arrowMarkerAbsolute||W().state.arrowMarkerAbsolute)&&(G=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,G=G.replace(/\(/g,"\\(").replace(/\)/g,"\\)")),w.info("arrowTypeStart",t.arrowTypeStart),w.info("arrowTypeEnd",t.arrowTypeEnd);let Wt=!at&&t?.look==="neo";Ct(L,t,G,o,e,Wt,lt);let Tt=Math.floor(l.length/2),Ht=l[Tt];H.isLabelCoordinateInPath(Ht,L.attr("d"))||(c=!0);let et={};return c&&(et.updatedPath=l),et.originalPath=t.points,et},"insertEdge");function Xt(r,t){if(r.length<2)return"";let a="",e=r.length,s=1e-5;for(let n=0;n<e;n++){let o=r[n],i=r[n-1],d=r[n+1];if(n===0)a+=`M${o.x},${o.y}`;else if(n===e-1)a+=`L${o.x},${o.y}`;else{let k=o.x-i.x,h=o.y-i.y,m=d.x-o.x,l=d.y-o.y,c=Math.hypot(k,h),u=Math.hypot(m,l);if(c<s||u<s){a+=`L${o.x},${o.y}`;continue}let y=k/c,f=h/c,S=m/u,x=l/u,$=y*S+f*x,M=Math.max(-1,Math.min(1,$)),N=Math.acos(M);if(N<s||Math.abs(Math.PI-N)<s){a+=`L${o.x},${o.y}`;continue}let C=Math.min(t/Math.sin(N/2),c/2,u/2),rt=o.x-y*C,O=o.y-f*C,L=o.x+S*C,J=o.y+x*C;a+=`L${rt},${O}`,a+=`Q${o.x},${o.y} ${L},${J}`}}return a}p(Xt,"generateRoundedPath");function it(r,t){if(!r||!t)return{angle:0,deltaX:0,deltaY:0};let a=t.x-r.x,e=t.y-r.y;return{angle:Math.atan2(e,a),deltaX:a,deltaY:e}}p(it,"calculateDeltaAndAngle");function Yt(r,t){let a=r.map(s=>({...s}));if(r.length>=2&&v[t.arrowTypeStart]){let s=v[t.arrowTypeStart],n=r[0],o=r[1],{angle:i}=it(n,o),d=s*Math.cos(i),k=s*Math.sin(i);a[0].x=n.x+d,a[0].y=n.y+k}let e=r.length;if(e>=2&&v[t.arrowTypeEnd]){let s=v[t.arrowTypeEnd],n=r[e-1],o=r[e-2],{angle:i}=it(o,n),d=s*Math.cos(i),k=s*Math.sin(i);a[e-1].x=n.x-d,a[e-1].y=n.y-k}return a}p(Yt,"applyMarkerOffsetsToPoints");var Vt=p((r,t,a,e)=>{t.forEach(s=>{xr[s](r,a,e)})},"insertMarkers"),Ft=p((r,t,a)=>{w.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",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").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").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M 1,1 V 13 L18,7 Z"),r.append("marker").attr("id",a+"_"+t+"-extensionStart-margin").attr("class","marker extension "+t).attr("refX",18).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").attr("viewBox","0 0 20 14").append("polygon").attr("points","10,7 18,13 18,1").style("stroke-width",2).style("stroke-dasharray","0"),r.append("defs").append("marker").attr("id",a+"_"+t+"-extensionEnd-margin").attr("class","marker extension "+t).attr("refX",9).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").attr("viewBox","0 0 20 14").append("polygon").attr("points","10,1 10,13 18,7").style("stroke-width",2).style("stroke-dasharray","0")},"extension"),Jt=p((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").attr("markerUnits","userSpaceOnUse").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").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),r.append("defs").append("marker").attr("id",a+"_"+t+"-compositionStart-margin").attr("class","marker composition "+t).attr("refX",15).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").style("stroke-width",0).attr("viewBox","0 0 15 15").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),r.append("defs").append("marker").attr("id",a+"_"+t+"-compositionEnd-margin").attr("class","marker composition "+t).attr("refX",3.5).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").style("stroke-width",0).attr("d","M 18,7 L9,13 L1,7 L9,1 Z")},"composition"),Gt=p((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").attr("markerUnits","userSpaceOnUse").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").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),r.append("defs").append("marker").attr("id",a+"_"+t+"-aggregationStart-margin").attr("class","marker aggregation "+t).attr("refX",15).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").style("stroke-width",2).attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),r.append("defs").append("marker").attr("id",a+"_"+t+"-aggregationEnd-margin").attr("class","marker aggregation "+t).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").style("stroke-width",2).attr("d","M 18,7 L9,13 L1,7 L9,1 Z")},"aggregation"),Kt=p((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").attr("markerUnits","userSpaceOnUse").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").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M 18,7 L9,13 L14,7 L9,1 Z"),r.append("defs").append("marker").attr("id",a+"_"+t+"-dependencyStart-margin").attr("class","marker dependency "+t).attr("refX",4).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").style("stroke-width",0).attr("d","M 5,7 L9,13 L1,7 L9,1 Z"),r.append("defs").append("marker").attr("id",a+"_"+t+"-dependencyEnd-margin").attr("class","marker dependency "+t).attr("refX",16).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").style("stroke-width",0).attr("d","M 18,7 L9,13 L14,7 L9,1 Z")},"dependency"),tr=p((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").attr("markerUnits","userSpaceOnUse").append("circle").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").attr("markerUnits","userSpaceOnUse").append("circle").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6),r.append("defs").append("marker").attr("id",a+"_"+t+"-lollipopStart-margin").attr("class","marker lollipop "+t).attr("refX",13).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("circle").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6).attr("stroke-width",2),r.append("defs").append("marker").attr("id",a+"_"+t+"-lollipopEnd-margin").attr("class","marker lollipop "+t).attr("refX",1).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("circle").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6).attr("stroke-width",2)},"lollipop"),rr=p((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"),r.append("marker").attr("id",a+"_"+t+"-pointEnd-margin").attr("class","marker "+t).attr("viewBox","0 0 11.5 14").attr("refX",11.5).attr("refY",7).attr("markerUnits","userSpaceOnUse").attr("markerWidth",10.5).attr("markerHeight",14).attr("orient","auto").append("path").attr("d","M 0 0 L 11.5 7 L 0 14 z").attr("class","arrowMarkerPath").style("stroke-width",0).style("stroke-dasharray","1,0"),r.append("marker").attr("id",a+"_"+t+"-pointStart-margin").attr("class","marker "+t).attr("viewBox","0 0 11.5 14").attr("refX",1).attr("refY",7).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11.5).attr("markerHeight",14).attr("orient","auto").append("polygon").attr("points","0,7 11.5,14 11.5,0").attr("class","arrowMarkerPath").style("stroke-width",0).style("stroke-dasharray","1,0")},"point"),ar=p((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"),r.append("marker").attr("id",a+"_"+t+"-circleEnd-margin").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refY",5).attr("refX",12.25).attr("markerUnits","userSpaceOnUse").attr("markerWidth",14).attr("markerHeight",14).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",0).style("stroke-dasharray","1,0"),r.append("marker").attr("id",a+"_"+t+"-circleStart-margin").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",-2).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",14).attr("markerHeight",14).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",0).style("stroke-dasharray","1,0")},"circle"),er=p((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"),r.append("marker").attr("id",a+"_"+t+"-crossEnd-margin").attr("class","marker cross "+t).attr("viewBox","0 0 15 15").attr("refX",17.7).attr("refY",7.5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 1,1 L 14,14 M 1,14 L 14,1").attr("class","arrowMarkerPath").style("stroke-width",2.5),r.append("marker").attr("id",a+"_"+t+"-crossStart-margin").attr("class","marker cross "+t).attr("viewBox","0 0 15 15").attr("refX",-3.5).attr("refY",7.5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 1,1 L 14,14 M 1,14 L 14,1").attr("class","arrowMarkerPath").style("stroke-width",2.5).style("stroke-dasharray","1,0")},"cross"),nr=p((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"),sr=p((r,t,a)=>{let e=Y(),{themeVariables:s}=e,{transitionColor:n}=s;r.append("defs").append("marker").attr("id",a+"_"+t+"-barbEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",14).attr("markerUnits","strokeWidth").attr("orient","auto").append("path").attr("d","M 19,7 L11,14 L13,7 L11,0 Z"),r.append("defs").append("marker").attr("id",a+"_"+t+"-barbEnd-margin").attr("refX",17).attr("refY",7).attr("markerWidth",20).attr("markerHeight",14).attr("markerUnits","userSpaceOnUse").attr("orient","auto").append("path").attr("d","M 19,7 L11,14 L13,7 L11,0 Z").attr("fill",`${n}`)},"barbNeo"),or=p((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"),ir=p((r,t,a)=>{let e=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");e.append("circle").attr("fill","white").attr("cx",21).attr("cy",9).attr("r",6),e.append("path").attr("d","M9,0 L9,18");let s=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");s.append("circle").attr("fill","white").attr("cx",9).attr("cy",9).attr("r",6),s.append("path").attr("d","M21,0 L21,18")},"zero_or_one"),lr=p((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"),cr=p((r,t,a)=>{let e=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");e.append("circle").attr("fill","white").attr("cx",48).attr("cy",18).attr("r",6),e.append("path").attr("d","M0,18 Q18,0 36,18 Q18,36 0,18");let s=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");s.append("circle").attr("fill","white").attr("cx",9).attr("cy",18).attr("r",6),s.append("path").attr("d","M21,18 Q39,0 57,18 Q39,36 21,18")},"zero_or_more"),dr=p((r,t,a)=>{let e=Y(),{themeVariables:s}=e,{strokeWidth:n}=s;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").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M9,0 L9,18 M15,0 L15,18").attr("stroke-width",`${n}`),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").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M3,0 L3,18 M9,0 L9,18").attr("stroke-width",`${n}`)},"only_one_neo"),pr=p((r,t,a)=>{let e=Y(),{themeVariables:s}=e,{strokeWidth:n,mainBkg:o}=s,i=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").attr("markerUnits","userSpaceOnUse");i.append("circle").attr("fill",o??"white").attr("cx",21).attr("cy",9).attr("stroke-width",`${n}`).attr("r",6),i.append("path").attr("d","M9,0 L9,18").attr("stroke-width",`${n}`);let d=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("markerUnits","userSpaceOnUse").attr("orient","auto");d.append("circle").attr("fill",o??"white").attr("cx",9).attr("cy",9).attr("stroke-width",`${n}`).attr("r",6),d.append("path").attr("d","M21,0 L21,18").attr("stroke-width",`${n}`)},"zero_or_one_neo"),hr=p((r,t,a)=>{let e=Y(),{themeVariables:s}=e,{strokeWidth:n}=s;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").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M0,18 Q 18,0 36,18 Q 18,36 0,18 M42,9 L42,27").attr("stroke-width",`${n}`),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("markerUnits","userSpaceOnUse").attr("orient","auto").append("path").attr("d","M3,9 L3,27 M9,18 Q27,0 45,18 Q27,36 9,18").attr("stroke-width",`${n}`)},"one_or_more_neo"),fr=p((r,t,a)=>{let e=Y(),{themeVariables:s}=e,{strokeWidth:n,mainBkg:o}=s,i=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("markerUnits","userSpaceOnUse").attr("orient","auto");i.append("circle").attr("fill",o??"white").attr("cx",45.5).attr("cy",18).attr("r",6).attr("stroke-width",`${n}`),i.append("path").attr("d","M0,18 Q18,0 36,18 Q18,36 0,18").attr("stroke-width",`${n}`);let d=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").attr("markerUnits","userSpaceOnUse");d.append("circle").attr("fill",o??"white").attr("cx",11).attr("cy",18).attr("r",6).attr("stroke-width",`${n}`),d.append("path").attr("d","M21,18 Q39,0 57,18 Q39,36 21,18").attr("stroke-width",`${n}`)},"zero_or_more_neo"),mr=p((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"),kr=p((r,t,a)=>{let e=Y(),{themeVariables:s}=e,{strokeWidth:n}=s;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").attr("markerUnits","userSpaceOnUse").attr("stroke-width",`${n}`).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"),ur=p((r,t,a)=>{let e=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");e.append("circle").attr("cx",10).attr("cy",10).attr("r",9).attr("fill","none"),e.append("line").attr("x1",1).attr("x2",19).attr("y1",10).attr("y2",10),e.append("line").attr("y1",1).attr("y2",19).attr("x1",10).attr("x2",10)},"requirement_contains"),yr=p((r,t,a)=>{let e=Y(),{themeVariables:s}=e,{strokeWidth:n}=s,o=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").attr("markerUnits","userSpaceOnUse").append("g");o.append("circle").attr("cx",10).attr("cy",10).attr("r",9).attr("fill","none"),o.append("line").attr("x1",1).attr("x2",19).attr("y1",10).attr("y2",10),o.append("line").attr("y1",1).attr("y2",19).attr("x1",10).attr("x2",10),o.selectAll("*").attr("stroke-width",`${n}`)},"requirement_contains_neo"),gr=p((r,t,a)=>{r.append("marker").attr("id",a+"_"+t+"-hierarchyEnd").attr("class","marker hierarchy "+t).attr("viewBox","0 0 12 10").attr("refX",10).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",10).attr("orient","auto").append("path").attr("d","M 0 0 L 6 5 L 0 10 M 4 0 L 10 5 L 4 10").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0").style("fill","none"),r.append("marker").attr("id",a+"_"+t+"-hierarchyStart").attr("class","marker hierarchy "+t).attr("viewBox","0 0 12 10").attr("refX",2).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",10).attr("orient","auto").append("path").attr("d","M 12 0 L 6 5 L 12 10 M 8 0 L 2 5 L 8 10").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0").style("fill","none")},"hierarchy"),xr={extension:Ft,composition:Jt,aggregation:Gt,dependency:Kt,lollipop:tr,point:rr,circle:ar,cross:er,barb:nr,barbNeo:sr,hierarchy:gr,only_one:or,zero_or_one:ir,one_or_more:lr,zero_or_more:cr,only_one_neo:dr,zero_or_one_neo:pr,one_or_more_neo:hr,zero_or_more_neo:fr,requirement_arrow:mr,requirement_contains:ur,requirement_arrow_neo:kr,requirement_contains_neo:yr},Hr=Vt;export{v as a,vt as b,tt as c,_ as d,$r as e,Xr as f,Yr as g,It as h,Wr as i,Tr as j,Hr as k};