const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./dagre-VKFMJZFB-B8We07Nt.js","./dagre-DhVYPhYs.js","./isObject-BNleAbAq.js","./isArrayLikeObject-CpNOZLZH.js","./now-fdb1ev71.js","./graphlib-DIH_KtCr.js","./_initCloneObject-BuQ4-jhh.js","./merge-Bg8ZG2Co.js","./map-BXqAbPzy.js","./_baseSet-Dtud-99S.js","./chunk-RYQCIY6F-Bp_NzpzG.js","./chunk-Y2CYZVJY-DsF7k-Jl.js","./chunk-X3CZISLH-DX9Il8sT.js","./rolldown-runtime-DAXXjFlN.js","./dayjs.min-yZk4pRyU.js","./chunk-WYO6CB5R-BrkmBSXu.js","./preload-helper-HclGiUj8.js","./purify.es-sLXpNpJ5.js","./chunk-ICXQ74PX-D_HF1znU.js","./src-DmP8OL9D.js","./src-e1bKEUxS.js","./dist-CrdG7pnv.js","./linear-1zh3NrGZ.js","./chunk-C7G6YPKG-P3pgmzqd.js","./chunk-OGEWGWER-BlkcBkyz.js","./chunk-HOUHSVGY-DUkjS7OQ.js","./chunk-Q4XR5HBZ-BUs7C1TP.js","./chunk-ZGVPDNZ5-B4JvVAZ5.js","./rough.esm-CSKSodPl.js","./chunk-7BUUIJ7U-Bb538aSH.js","./chunk-52WLFC77-BHGHKSq2.js","./line-CyKHd6T7.js","./path-BWPyau1x.js","./array-BifhSqXX.js","./swimlanes-5IMT3BWC-4C7vMkim.js","./cose-bilkent-JH36ORCC-C7Qt162b.js","./cytoscape.esm-Cr7iwQwX.js"])))=>i.map(i=>d[i]);
import{t as e}from"./preload-helper-HclGiUj8.js";import{n as t}from"./chunk-Y2CYZVJY-DsF7k-Jl.js";import{t as n}from"./chunk-X3CZISLH-DX9Il8sT.js";import{b as r,s as i}from"./chunk-WYO6CB5R-BrkmBSXu.js";import{d as a}from"./chunk-ICXQ74PX-D_HF1znU.js";import{a as o,i as s,s as c}from"./chunk-ZGVPDNZ5-B4JvVAZ5.js";import{a as l,i as u,o as d,r as f}from"./chunk-52WLFC77-BHGHKSq2.js";var p={common:i,getConfig:r,insertCluster:s,insertEdge:f,insertEdgeLabel:u,insertMarkers:l,insertNode:o,interpolateToCurve:a,labelHelper:c,log:n,positionEdgeLabel:d},m={},h=t(e=>{for(let t of e)m[t.name]=t},`registerLayoutLoaders`);t(()=>{h([{name:`dagre`,loader:t(async()=>await e(()=>import(`./dagre-VKFMJZFB-B8We07Nt.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,25,26,27,28,29,30,31,32,33]),import.meta.url),`loader`)},{name:`swimlane`,loader:t(async()=>await e(()=>import(`./swimlanes-5IMT3BWC-4C7vMkim.js`),__vite__mapDeps([34,16,5,2,3,10,8,6,11,12,13,14,15,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33]),import.meta.url),`loader`)},{name:`cose-bilkent`,loader:t(async()=>await e(()=>import(`./cose-bilkent-JH36ORCC-C7Qt162b.js`),__vite__mapDeps([35,13,19,11,12,14,20,36]),import.meta.url),`loader`)}])},`registerDefaultLayoutLoaders`)();var g=t(async(e,t,n)=>{if(!(e.layoutAlgorithm in m))throw Error(`Unknown layout algorithm: ${e.layoutAlgorithm}`);if(e.diagramId)for(let t of e.nodes){let n=t.domId||t.id;t.domId=`${e.diagramId}-${n}`}let r=m[e.layoutAlgorithm],i=await r.loader(),{theme:a,themeVariables:o}=e.config,{useGradient:s,gradientStart:c,gradientStop:l}=o,u=t.attr(`id`);if(t.append(`defs`).append(`filter`).attr(`id`,`${u}-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`,`${a?.includes(`dark`)?`#FFFFFF`:`#000000`}`),t.append(`defs`).append(`filter`).attr(`id`,`${u}-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`,`${a?.includes(`dark`)?`#FFFFFF`:`#000000`}`),s){let e=t.append(`linearGradient`).attr(`id`,t.attr(`id`)+`-gradient`).attr(`gradientUnits`,`objectBoundingBox`).attr(`x1`,`0%`).attr(`y1`,`0%`).attr(`x2`,`100%`).attr(`y2`,`0%`);e.append(`svg:stop`).attr(`offset`,`0%`).attr(`stop-color`,c).attr(`stop-opacity`,1),e.append(`svg:stop`).attr(`offset`,`100%`).attr(`stop-color`,l).attr(`stop-opacity`,1)}return i.render(e,t,p,{algorithm:r.algorithm},n)},`render`),_=t((e=``,{fallback:t=`dagre`}={})=>{if(e in m)return e;if(t in m)return n.warn(`Layout algorithm ${e} is not registered. Using ${t} as fallback.`),t;throw Error(`Both layout algorithms ${e} and ${t} are not registered.`)},`getRegisteredLayoutAlgorithm`);export{h as n,g as r,_ as t};