const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/dagre-BM42HDAG-DDOhPwNz.js","assets/chunk-O5CBEL6O-DijuzGoP.js","assets/src-DpGjM0Pj.js","assets/rolldown-runtime-Djccxexk.js","assets/index-Bj9Uj6Sw.js","assets/vendor-ui-BaeqteF_.js","assets/vendor-markdown-DtscBpM8.js","assets/vendor-react-DhHb9zeb.js","assets/signalr-ZLrAKXw2.js","assets/vendor-state-CUm5SdR-.js","assets/vendor-utils-BpFnHmH_.js","assets/api-core-C4zg7TVV.js","assets/api-types-DlejXY_r.js","assets/index-D9-oZP1c.css","assets/chunk-5ZQYHXKU-DvdZmVCt.js","assets/dist-DPgEOitG.js","assets/chunk-CSCIHK7Q-D7tKG3Mp.js","assets/dagre-DbaBiRIC.js","assets/graphlib-BxGrnRCT.js","assets/chunk-3OPIFGDE-CYGGQF0M.js","assets/chunk-L5ZTLDWV-BPxhCaLX.js","assets/chunk-NZK2D7GU-CpzFKxzv.js","assets/rough.esm-MOJY7C3p.js","assets/chunk-BSJP7CBP-PDJAKSJD.js","assets/chunk-KSCS5N6A-BKX18vdc.js","assets/cose-bilkent-S5V4N54A-BsNPP2F5.js","assets/cytoscape.esm-Cxvz89JG.js"])))=>i.map(i=>d[i]);
import{d as t}from"./chunk-5ZQYHXKU-DvdZmVCt.js";import{i as a,r}from"./src-DpGjM0Pj.js";import{Gt as o}from"./index-Bj9Uj6Sw.js";import{b as e,s as i}from"./chunk-CSCIHK7Q-D7tKG3Mp.js";import{a as s,i as d,s as n}from"./chunk-3OPIFGDE-CYGGQF0M.js";import{a as l,i as p,n as g,r as m}from"./chunk-KSCS5N6A-BKX18vdc.js";var f={common:i,getConfig:e,insertCluster:d,insertEdge:g,insertEdgeLabel:m,insertMarkers:p,insertNode:s,interpolateToCurve:t,labelHelper:n,log:a,positionEdgeLabel:l},c={},h=r(t=>{for(const a of t)c[a.name]=a},"registerLayoutLoaders");r(()=>{h([{name:"dagre",loader:r(async()=>await o(()=>import("./dagre-BM42HDAG-DDOhPwNz.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24])),"loader")},{name:"cose-bilkent",loader:r(async()=>await o(()=>import("./cose-bilkent-S5V4N54A-BsNPP2F5.js"),__vite__mapDeps([25,3,26,2,4,5,6,7,8,9,10,11,12,13])),"loader")}])},"registerDefaultLayoutLoaders")();var u=r(async(t,a)=>{if(!(t.layoutAlgorithm in c))throw new Error(`Unknown layout algorithm: ${t.layoutAlgorithm}`);if(t.diagramId)for(const p of t.nodes){const a=p.domId||p.id;p.domId=`${t.diagramId}-${a}`}const r=c[t.layoutAlgorithm],o=await r.loader(),{theme:e,themeVariables:i}=t.config,{useGradient:s,gradientStart:d,gradientStop:n}=i,l=a.attr("id");if(a.append("defs").append("filter").attr("id",`${l}-drop-shadow`).attr("height","130%").attr("width","130%").append("feDropShadow").attr("dx","4").attr("dy","4").attr("stdDeviation",0).attr("flood-opacity","0.06").attr("flood-color",""+(e?.includes("dark")?"#FFFFFF":"#000000")),a.append("defs").append("filter").attr("id",`${l}-drop-shadow-small`).attr("height","150%").attr("width","150%").append("feDropShadow").attr("dx","2").attr("dy","2").attr("stdDeviation",0).attr("flood-opacity","0.06").attr("flood-color",""+(e?.includes("dark")?"#FFFFFF":"#000000")),s){const t=a.append("linearGradient").attr("id",a.attr("id")+"-gradient").attr("gradientUnits","objectBoundingBox").attr("x1","0%").attr("y1","0%").attr("x2","100%").attr("y2","0%");t.append("svg:stop").attr("offset","0%").attr("stop-color",d).attr("stop-opacity",1),t.append("svg:stop").attr("offset","100%").attr("stop-color",n).attr("stop-opacity",1)}return o.render(t,a,f,{algorithm:r.algorithm})},"render"),y=r((t="",{fallback:r="dagre"}={})=>{if(t in c)return t;if(r in c)return a.warn(`Layout algorithm ${t} is not registered. Using ${r} as fallback.`),r;throw new Error(`Both layout algorithms ${t} and ${r} are not registered.`)},"getRegisteredLayoutAlgorithm");export{h as n,u as r,y as t};