import{ac as p,ad as E,aR as v,aS as h,aT as y,ai as T,_ as x,Q as N,ah as s,H as a,I as d,aU as w,aV as A,aD as C,aa as o,ag as r}from"./custom-element.js";import{B as S}from"./branches.js";function F(u,m,b,i,M,R){let c=a;a&&d();var e=null;a&&s.nodeType===w&&(e=s,d());var l=a?s:u,f=new S(l,!1);p(()=>{const t=m()||null;var g=t==="svg"?h:void 0;if(t===null){f.ensure(null,null);return}return f.ensure(t,_=>{if(t){if(e=a?e:v(t,g),y(e,e),i){a&&A(t)&&e.append(document.createComment(""));var n=a?C(e):e.appendChild(T());a&&(n===null?o(!1):r(n)),i(e,n)}x.nodes.end=e,_.before(e)}a&&r(_)}),()=>{}},E),N(()=>{}),c&&(o(!0),r(l))}export{F as e};
//# sourceMappingURL=svelte-element.js.map
