function N(){}function J(t,n){for(const e in n)t[e]=n[e];return t}function D(t){return t()}function M(){return Object.create(null)}function y(t){t.forEach(D)}function K(t){return typeof t=="function"}function dt(t,n){return t!=t?n==n:t!==n||t&&typeof t=="object"||typeof t=="function"}let x;function ht(t,n){return x||(x=document.createElement("a")),x.href=n,t===x.href}function Q(t){return Object.keys(t).length===0}function U(t,...n){if(t==null)return N;const e=t.subscribe(...n);return e.unsubscribe?()=>e.unsubscribe():e}function mt(t,n,e){t.$$.on_destroy.push(U(n,e))}function pt(t,n,e,i){if(t){const r=O(t,n,e,i);return t[0](r)}}function O(t,n,e,i){return t[1]&&i?J(e.ctx.slice(),t[1](i(n))):e.ctx}function yt(t,n,e,i){if(t[2]&&i){const r=t[2](i(e));if(n.dirty===void 0)return r;if(typeof r=="object"){const u=[],o=Math.max(n.dirty.length,r.length);for(let s=0;s32){const n=[],e=t.ctx.length/32;for(let i=0;i>1);e(r)<=i?t=r+1:n=r}return t}function Z(t){if(t.hydrate_init)return;t.hydrate_init=!0;let n=t.childNodes;if(t.nodeName==="HEAD"){const c=[];for(let l=0;l0&&n[e[r]].claim_order<=l?r+1:Y(1,r,g=>n[e[g]].claim_order,l))-1;i[c]=e[f]+1;const a=f+1;e[a]=c,r=Math.max(a,r)}const u=[],o=[];let s=n.length-1;for(let c=e[r]+1;c!=0;c=i[c-1]){for(u.push(n[c-1]);s>=c;s--)o.push(n[s]);s--}for(;s>=0;s--)o.push(n[s]);u.reverse(),o.sort((c,l)=>c.claim_order-l.claim_order);for(let c=0,l=0;c=u[l].claim_order;)l++;const f=lt.removeEventListener(n,e,i)}function Tt(t,n,e){e==null?t.removeAttribute(n):t.getAttribute(n)!==e&&t.setAttribute(n,e)}function rt(t){return Array.from(t.childNodes)}function G(t){t.claim_info===void 0&&(t.claim_info={last_index:0,total_claimed:0})}function I(t,n,e,i,r=!1){G(t);const u=(()=>{for(let o=t.claim_info.last_index;o=0;o--){const s=t[o];if(n(s)){const c=e(s);return c===void 0?t.splice(o,1):t[o]=c,r?c===void 0&&t.claim_info.last_index--:t.claim_info.last_index=o,s}}return i()})();return u.claim_order=t.claim_info.total_claimed,t.claim_info.total_claimed+=1,u}function z(t,n,e,i){return I(t,r=>r.nodeName===n,r=>{const u=[];for(let o=0;or.removeAttribute(o))},()=>i(n))}function kt(t,n,e){return z(t,n,e,P)}function Nt(t,n,e){return z(t,n,e,it)}function ct(t,n){return I(t,e=>e.nodeType===3,e=>{const i=""+n;if(e.data.startsWith(i)){if(e.data.length!==i.length)return e.splitText(i.length)}else e.data=i},()=>S(n),!0)}function St(t){return ct(t," ")}function H(t,n,e){for(let i=e;i{const i=t.$$.callbacks[n];if(i){const r=ot(n,e);i.slice().forEach(u=>{u.call(t,r)})}}}function zt(t,n){d().$$.context.set(t,n)}function Ft(t){return d().$$.context.get(t)}const h=[],q=[],$=[],B=[],F=Promise.resolve();let T=!1;function R(){T||(T=!0,F.then(W))}function Rt(){return R(),F}function k(t){$.push(t)}const A=new Set;let b=0;function W(){const t=p;do{for(;b{v.delete(t),i&&(e&&t.d(1),i())}),t.o(n)}}function Qt(t,n){const e={},i={},r={$$scope:1};let u=t.length;for(;u--;){const o=t[u],s=n[u];if(s){for(const c in o)c in s||(i[c]=1);for(const c in s)r[c]||(e[c]=s[c],r[c]=1);t[u]=s}else for(const c in o)r[c]=1}for(const o in i)o in e||(e[o]=void 0);return e}function Ut(t){return typeof t=="object"&&t!==null?t:{}}function Vt(t){t&&t.c()}function Xt(t,n){t&&t.l(n)}function at(t,n,e,i){const{fragment:r,on_mount:u,on_destroy:o,after_update:s}=t.$$;r&&r.m(n,e),i||k(()=>{const c=u.map(D).filter(K);o?o.push(...c):y(c),t.$$.on_mount=[]}),s.forEach(k)}function ft(t,n){const e=t.$$;e.fragment!==null&&(y(e.on_destroy),e.fragment&&e.fragment.d(n),e.on_destroy=e.fragment=null,e.ctx=[])}function _t(t,n){t.$$.dirty[0]===-1&&(h.push(t),R(),t.$$.dirty.fill(0)),t.$$.dirty[n/31|0]|=1<{const j=C.length?C[0]:g;return l.ctx&&r(l.ctx[a],l.ctx[a]=j)&&(!l.skip_bound&&l.bound[a]&&l.bound[a](j),f&&_t(t,a)),g}):[],l.update(),f=!0,y(l.before_update),l.fragment=i?i(l.ctx):!1,n.target){if(n.hydrate){V();const a=rt(n.target);l.fragment&&l.fragment.l(a),a.forEach(w)}else l.fragment&&l.fragment.c();n.intro&&ut(t.$$.fragment),at(t,n.target,n.anchor,n.customElement),X(),W()}m(c)}class Zt{$destroy(){ft(this,1),this.$destroy=N}$on(n,e){const i=this.$$.callbacks[n]||(this.$$.callbacks[n]=[]);return i.push(e),()=>{const r=i.indexOf(e);r!==-1&&i.splice(r,1)}}$set(n){this.$$set&&!Q(n)&&(this.$$.skip_bound=!0,this.$$set(n),this.$$.skip_bound=!1)}}export{qt as $,Ut as A,ft as B,J as C,Rt as D,N as E,tt as F,vt as G,mt as H,ht as I,At as J,Bt as K,gt as L,xt as M,yt as N,Gt as O,pt as P,Ft as Q,Dt as R,Zt as S,K as T,y as U,$t as V,bt as W,L as X,Ct as Y,It as Z,Mt as _,rt as a,it as a0,Nt as a1,k as a2,Lt as a3,Tt as b,kt as c,w as d,P as e,Ht as f,et as g,ct as h,Yt as i,jt as j,wt as k,Et as l,St as m,Wt as n,Kt as o,Jt as p,ut as q,zt as r,dt as s,S as t,Pt as u,Ot as v,Vt as w,Xt as x,at as y,Qt as z};