import{H as A,N as _,O as I,P as R,Q as x,R as D,T as F,U as S,V as m,W as C,J as T,X as H,Y as L,Z as O,_ as P,$ as U,a0 as Y}from"./DaF1Dxyz.js";function q(b,g,k=!1){_&&I();var r=b,s=null,t=null,e=L,y=k?R:0,l=!1;const E=(n,a=!0)=>{l=!0,o(a,n)};var f=null;function d(){f!==null&&(f.lastChild.remove(),r.before(f),f=null);var n=e?s:t,a=e?t:s;n&&P(n),a&&U(a,()=>{e?t=null:s=null})}const o=(n,a)=>{if(e===(e=n))return;let u=!1;if(_){const N=x(r)===D;!!e===N&&(r=F(),S(r),m(!1),u=!0)}var v=O(),i=r;if(v&&(f=document.createDocumentFragment(),f.append(i=C())),e?s??=a&&T(()=>a(i)):t??=a&&T(()=>a(i)),v){var c=H,h=e?s:t,p=e?t:s;h&&c.skipped_effects.delete(h),p&&c.skipped_effects.add(p),c.add_callback(d)}else d();u&&m(!0)};A(()=>{l=!1,g(E),l||o(null,null)},y),_&&(r=Y)}export{q as i};
