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