import{n as e,s as t}from"./rolldown-runtime-BG2f4sTM.js";import{G8 as n,Mft as r,Nvt as i,O_t as a,P_t as o,U7 as s,W7 as c,W8 as l,Wht as u,evt as d,jft as f,npt as p}from"./app-initial-BHB6SClA.js";function m(e){return g(e,`editedFilePaths`)}function h(e){return g(e,`referencedFilePaths`)}function g(e,t){let n=[],r=new Set;for(let i of e)for(let e of l(i)[t])r.has(e)||(r.add(e),n.push(e));return n}var _=e((()=>{n()}));function v(){return o(T)}function y(){return u.isInternal(s())}function b(e,t){let n=`[non-serializable title]`;return typeof t.title==`string`?n=t.title:(0,w.isValidElement)(t.title)&&(n=``),{id:e,titleText:n,lines:t.lines}}function x(e,t,n){let r=b(t,n);e.set(T,e=>[...e.filter(e=>e.id!==t),r])}function S(e,t){e.set(T,e=>e.filter(e=>e.id!==t))}function C(){if(typeof crypto<`u`&&typeof crypto.randomUUID==`function`)return crypto.randomUUID();let e=E;return E+=1,`debug-panel-${e}`}var w,T,E,D=e((()=>{a(),p(),w=t(i(),1),r(),c(),T=d(f,[]),E=0}));export{y as a,h as c,x as i,_ as l,D as n,v as o,S as r,m as s,C as t};
//# sourceMappingURL=use-debug-panel-zsasQ2Yw.js.map