import{b as g,c as a,d as p,f as o,u as l,g as d,h as b,i as m,e as v,U as i,s as c,n as _,m as y}from"./runtime.DLHUW5tL.js";import{s as I,a as h}from"./entry.BBFjIRJx.js";function A(){const s=p,e=s.l.u;e&&(e.b.length&&g(()=>{f(s),o(e.b)}),a(()=>{const t=l(()=>e.m.map(d));return()=>{for(const n of t)typeof n=="function"&&n()}}),e.a.length&&a(()=>{f(s),o(e.a)}))}function f(s){if(s.l.s)for(const e of s.l.s)b(e);m(s.s)}function D(s,e,t){let n=t[e];const r=n===void 0;r&&(n={store:null,last_value:null,value:y(i),unsubscribe:_},t[e]=n),(r||n.store!==s)&&(n.unsubscribe(),n.store=s??null,n.unsubscribe=k(s,n.value));const u=b(n.value);return u===i?n.last_value:u}function k(s,e){return s==null?(c(e,void 0),_):I(s,t=>c(e,t))}function E(s){N(()=>{let e;for(e in s)s[e].unsubscribe()})}function N(s){v(()=>()=>l(s))}const U=()=>{const s=h;return{page:{subscribe:s.page.subscribe},navigating:{subscribe:s.navigating.subscribe},updated:s.updated}},L={subscribe(s){return U().page.subscribe(s)}};export{A as i,L as p,D as s,E as u};
