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