function y(){}function k(t,n){for(const e in n)t[e]=n[e];return t}function w(t){return t()}function D(){return Object.create(null)}function j(t){t.forEach(w)}function v(t){return typeof t=="function"}function F(t,n){return t!=t?n==n:t!==n||t&&typeof t=="object"||typeof t=="function"}function P(t){return Object.keys(t).length===0}function E(t,...n){if(t==null){for(const o of n)o(void 0);return y}const e=t.subscribe(...n);return e.unsubscribe?()=>e.unsubscribe():e}function S(t,n,e){t.$$.on_destroy.push(E(n,e))}function U(t,n,e,o){if(t){const r=m(t,n,e,o);return t[0](r)}}function m(t,n,e,o){return t[1]&&o?k(e.ctx.slice(),t[1](o(n))):e.ctx}function A(t,n,e,o){if(t[2]&&o){const r=t[2](o(e));if(n.dirty===void 0)return r;if(typeof r=="object"){const i=[],f=Math.max(n.dirty.length,r.length);for(let u=0;u<f;u+=1)i[u]=n.dirty[u]|r[u];return i}return n.dirty|r}return n.dirty}function B(t,n,e,o,r,i){if(r){const f=m(n,e,o,i);t.p(f,r)}}function C(t){if(t.ctx.length>32){const n=[],e=t.ctx.length/32;for(let o=0;o<e;o++)n[o]=-1;return n}return-1}function G(t,n,e){return t.set(e),n}function H(t){return t&&v(t.destroy)?t.destroy:y}let l;function d(t){l=t}function p(){if(!l)throw new Error("Function called outside component initialization");return l}function I(t){p().$$.on_mount.push(t)}function J(t){p().$$.after_update.push(t)}function K(t){p().$$.on_destroy.push(t)}const a=[],b=[];let c=[];const g=[],x=Promise.resolve();let h=!1;function O(){h||(h=!0,x.then(z))}function L(){return O(),x}function q(t){c.push(t)}const _=new Set;let s=0;function z(){if(s!==0)return;const t=l;do{try{for(;s<a.length;){const n=a[s];s++,d(n),M(n.$$)}}catch(n){throw a.length=0,s=0,n}for(d(null),a.length=0,s=0;b.length;)b.pop()();for(let n=0;n<c.length;n+=1){const e=c[n];_.has(e)||(_.add(e),e())}c.length=0}while(a.length);for(;g.length;)g.pop()();h=!1,_.clear(),d(t)}function M(t){if(t.fragment!==null){t.update(),j(t.before_update);const n=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,n),t.after_update.forEach(q)}}function N(t){const n=[],e=[];c.forEach(o=>t.indexOf(o)===-1?n.push(o):e.push(o)),e.forEach(o=>o()),c=n}export{A as a,b,U as c,S as d,J as e,K as f,C as g,H as h,v as i,G as j,D as k,z as l,P as m,y as n,I as o,q as p,N as q,j as r,F as s,L as t,B as u,l as v,d as w,w as x,a as y,O as z};
