import{a as g,d,e as m,f as u,g as y,h as f,j as h}from"./chunk-I6TWXA3O.js";import{c as l}from"./chunk-NQ4DUWMN.js";import{D as n,N as s,h as o,j as a}from"./chunk-ZOEWSKT6.js";var L={common:s,getConfig:n,insertCluster:g,insertEdge:u,insertEdgeLabel:d,insertMarkers:y,insertNode:h,interpolateToCurve:l,labelHelper:f,log:a,positionEdgeLabel:m},t={},p=o(r=>{for(let e of r)t[e.name]=e},"registerLayoutLoaders"),w=o(()=>{p([{name:"dagre",loader:o(async()=>await import("./dagre-7KT5K2WU-3AFMSLCH.js"),"loader")}])},"registerDefaultLayoutLoaders");w();var $=o(async(r,e)=>{if(!(r.layoutAlgorithm in t))throw new Error(`Unknown layout algorithm: ${r.layoutAlgorithm}`);let i=t[r.layoutAlgorithm];return(await i.loader()).render(r,e,L,{algorithm:i.algorithm})},"render"),R=o((r="",{fallback:e="dagre"}={})=>{if(r in t)return r;if(e in t)return a.warn(`Layout algorithm ${r} is not registered. Using ${e} as fallback.`),e;throw new Error(`Both layout algorithms ${r} and ${e} are not registered.`)},"getRegisteredLayoutAlgorithm");export{p as a,$ as b,R as c};
