import{b as u,c as h,d as p,e as y}from"./chunk-WB6OKYP3.js";import{a as g,e as d,h as f}from"./chunk-CMUM4AJF.js";import{c as m}from"./chunk-EC3EU6U5.js";import{K as n,x as l}from"./chunk-JB23YLA3.js";import{b as i}from"./chunk-TUEROSNP.js";import{g as t,h as e}from"./chunk-7DHJDT2N.js";var c={common:n,getConfig:l,insertCluster:d,insertEdge:p,insertEdgeLabel:u,insertMarkers:y,insertNode:f,interpolateToCurve:m,labelHelper:g,log:i,positionEdgeLabel:h},o={},b=e(r=>{for(let a of r)o[a.name]=a},"registerLayoutLoaders"),w=e(()=>{b([{name:"dagre",loader:e(()=>t(null,null,function*(){return yield import("./chunk-OX5LG7FP.js")}),"loader")},{name:"cose-bilkent",loader:e(()=>t(null,null,function*(){return yield import("./chunk-U5GTFUS5.js")}),"loader")}])},"registerDefaultLayoutLoaders");w();var C=e((r,a)=>t(null,null,function*(){if(!(r.layoutAlgorithm in o))throw new Error(`Unknown layout algorithm: ${r.layoutAlgorithm}`);let s=o[r.layoutAlgorithm];return(yield s.loader()).render(r,a,c,{algorithm:s.algorithm})}),"render"),D=e((r="",{fallback:a="dagre"}={})=>{if(r in o)return r;if(a in o)return i.warn(`Layout algorithm ${r} is not registered. Using ${a} as fallback.`),a;throw new Error(`Both layout algorithms ${r} and ${a} are not registered.`)},"getRegisteredLayoutAlgorithm");export{b as a,C as b,D as c};
