function $(){}function lt(t,e){for(const n in e)t[n]=e[n];return t}function V(t){return t()}function J(){return Object.create(null)}function E(t){t.forEach(V)}function G(t){return typeof t=="function"}function St(t,e){return t!=t?e==e:t!==e||t&&typeof t=="object"||typeof t=="function"}let k;function Mt(t,e){return k||(k=document.createElement("a")),k.href=e,t===k.href}function at(t){return Object.keys(t).length===0}function X(t,...e){if(t==null)return $;const n=t.subscribe(...e);return n.unsubscribe?()=>n.unsubscribe():n}function Lt(t){let e;return X(t,n=>e=n)(),e}function Ct(t,e,n){t.$$.on_destroy.push(X(e,n))}function Dt(t,e,n,i){if(t){const s=Y(t,e,n,i);return t[0](s)}}function Y(t,e,n,i){return t[1]&&i?lt(n.ctx.slice(),t[1](i(e))):n.ctx}function Ht(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 o=[],r=Math.max(e.dirty.length,s.length);for(let l=0;l<r;l+=1)o[l]=e.dirty[l]|s[l];return o}return e.dirty|s}return e.dirty}function jt(t,e,n,i,s,o){if(s){const r=Y(e,n,i,o);t.p(r,s)}}function Pt(t){if(t.ctx.length>32){const e=[],n=t.ctx.length/32;for(let i=0;i<n;i++)e[i]=-1;return e}return-1}function Ot(t){const e={};for(const n in t)n[0]!=="$"&&(e[n]=t[n]);return e}function qt(t,e){const n={};e=new Set(e);for(const i in t)!e.has(i)&&i[0]!=="$"&&(n[i]=t[i]);return n}function Bt(t,e,n){return t.set(n),e}function Ft(t){return t&&G(t.destroy)?t.destroy:$}const ut=typeof window<"u";let Gt=ut?t=>requestAnimationFrame(t):$,L=!1;function ft(){L=!0}function _t(){L=!1}function dt(t,e,n,i){for(;t<e;){const s=t+(e-t>>1);n(s)<=i?t=s+1:e=s}return t}function ht(t){if(t.hydrate_init)return;t.hydrate_init=!0;let e=t.childNodes;if(t.nodeName==="HEAD"){const c=[];for(let a=0;a<e.length;a++){const f=e[a];f.claim_order!==void 0&&c.push(f)}e=c}const n=new Int32Array(e.length+1),i=new Int32Array(e.length);n[0]=-1;let s=0;for(let c=0;c<e.length;c++){const a=e[c].claim_order,f=(s>0&&e[n[s]].claim_order<=a?s+1:dt(1,s,_=>e[n[_]].claim_order,a))-1;i[c]=n[f]+1;const d=f+1;n[d]=c,s=Math.max(d,s)}const o=[],r=[];let l=e.length-1;for(let c=n[s]+1;c!=0;c=i[c-1]){for(o.push(e[c-1]);l>=c;l--)r.push(e[l]);l--}for(;l>=0;l--)r.push(e[l]);o.reverse(),r.sort((c,a)=>c.claim_order-a.claim_order);for(let c=0,a=0;c<r.length;c++){for(;a<o.length&&r[c].claim_order>=o[a].claim_order;)a++;const f=a<o.length?o[a]:null;t.insertBefore(r[c],f)}}function mt(t,e){if(L){for(ht(t),(t.actual_end_child===void 0||t.actual_end_child!==null&&t.actual_end_child.parentNode!==t)&&(t.actual_end_child=t.firstChild);t.actual_end_child!==null&&t.actual_end_child.claim_order===void 0;)t.actual_end_child=t.actual_end_child.nextSibling;e!==t.actual_end_child?(e.claim_order!==void 0||e.parentNode!==t)&&t.insertBefore(e,t.actual_end_child):t.actual_end_child=e.nextSibling}else(e.parentNode!==t||e.nextSibling!==null)&&t.appendChild(e)}function pt(t,e,n){t.insertBefore(e,n||null)}function yt(t,e,n){L&&!n?mt(t,e):(e.parentNode!==t||e.nextSibling!=n)&&t.insertBefore(e,n||null)}function M(t){t.parentNode&&t.parentNode.removeChild(t)}function Rt(t,e){for(let n=0;n<t.length;n+=1)t[n]&&t[n].d(e)}function Z(t){return document.createElement(t)}function tt(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function R(t){return document.createTextNode(t)}function zt(){return R(" ")}function Wt(){return R("")}function It(t,e,n,i){return t.addEventListener(e,n,i),()=>t.removeEventListener(e,n,i)}function Jt(t){return function(e){return e.preventDefault(),t.call(this,e)}}function gt(t,e,n){n==null?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n)}function Kt(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]:gt(t,i,e[i])}function Qt(t,e,n){t.setAttributeNS("http://www.w3.org/1999/xlink",e,n)}function xt(t){return Array.from(t.childNodes)}function et(t){t.claim_info===void 0&&(t.claim_info={last_index:0,total_claimed:0})}function nt(t,e,n,i,s=!1){et(t);const o=(()=>{for(let r=t.claim_info.last_index;r<t.length;r++){const l=t[r];if(e(l)){const c=n(l);return c===void 0?t.splice(r,1):t[r]=c,s||(t.claim_info.last_index=r),l}}for(let r=t.claim_info.last_index-1;r>=0;r--){const l=t[r];if(e(l)){const c=n(l);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,l}}return i()})();return o.claim_order=t.claim_info.total_claimed,t.claim_info.total_claimed+=1,o}function it(t,e,n,i){return nt(t,s=>s.nodeName===e,s=>{const o=[];for(let r=0;r<s.attributes.length;r++){const l=s.attributes[r];n[l.name]||o.push(l.name)}o.forEach(r=>s.removeAttribute(r))},()=>i(e))}function Ut(t,e,n){return it(t,e,n,Z)}function Vt(t,e,n){return it(t,e,n,tt)}function wt(t,e){return nt(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},()=>R(e),!0)}function Xt(t){return wt(t," ")}function K(t,e,n){for(let i=n;i<t.length;i+=1){const s=t[i];if(s.nodeType===8&&s.textContent.trim()===e)return i}return t.length}function Yt(t,e){const n=K(t,"HTML_TAG_START",0),i=K(t,"HTML_TAG_END",n);if(n===i)return new Q(void 0,e);et(t);const s=t.splice(n,i-n+1);M(s[0]),M(s[s.length-1]);const o=s.slice(1,s.length-1);for(const r of o)r.claim_order=t.claim_info.total_claimed,t.claim_info.total_claimed+=1;return new Q(o,e)}function Zt(t,e){e=""+e,t.wholeText!==e&&(t.data=e)}function te(t,e,n,i){n===null?t.style.removeProperty(e):t.style.setProperty(e,n,i?"important":"")}function ee(t,e,n){t.classList[n?"add":"remove"](e)}function bt(t,e,{bubbles:n=!1,cancelable:i=!1}={}){const s=document.createEvent("CustomEvent");return s.initCustomEvent(t,n,i,e),s}function ne(t,e){const n=[];let i=0;for(const s of e.childNodes)if(s.nodeType===8){const o=s.textContent.trim();o===`HEAD_${t}_END`?(i-=1,n.push(s)):o===`HEAD_${t}_START`&&(i+=1,n.push(s))}else i>0&&n.push(s);return n}class $t{constructor(e=!1){this.is_svg=!1,this.is_svg=e,this.e=this.n=null}c(e){this.h(e)}m(e,n,i=null){this.e||(this.is_svg?this.e=tt(n.nodeName):this.e=Z(n.nodeType===11?"TEMPLATE":n.nodeName),this.t=n.tagName!=="TEMPLATE"?n:n.content,this.c(e)),this.i(i)}h(e){this.e.innerHTML=e,this.n=Array.from(this.e.nodeName==="TEMPLATE"?this.e.content.childNodes:this.e.childNodes)}i(e){for(let n=0;n<this.n.length;n+=1)pt(this.t,this.n[n],e)}p(e){this.d(),this.h(e),this.i(this.a)}d(){this.n.forEach(M)}}class Q extends $t{constructor(e,n=!1){super(n),this.e=this.n=null,this.l=e}c(e){this.l?this.n=this.l:super.c(e)}i(e){for(let n=0;n<this.n.length;n+=1)yt(this.t,this.n[n],e)}}function ie(t,e){return new t(e)}let T;function v(t){T=t}function C(){if(!T)throw new Error("Function called outside component initialization");return T}function se(t){C().$$.on_mount.push(t)}function re(t){C().$$.after_update.push(t)}function ce(t){C().$$.on_destroy.push(t)}function oe(){const t=C();return(e,n,{cancelable:i=!1}={})=>{const s=t.$$.callbacks[e];if(s){const o=bt(e,n,{cancelable:i});return s.slice().forEach(r=>{r.call(t,o)}),!o.defaultPrevented}return!0}}function le(t,e){const n=t.$$.callbacks[e.type];n&&n.slice().forEach(i=>i.call(this,e))}const w=[],U=[];let b=[];const q=[],st=Promise.resolve();let B=!1;function rt(){B||(B=!0,st.then(ct))}function ae(){return rt(),st}function F(t){b.push(t)}function ue(t){q.push(t)}const O=new Set;let x=0;function ct(){if(x!==0)return;const t=T;do{try{for(;x<w.length;){const e=w[x];x++,v(e),Et(e.$$)}}catch(e){throw w.length=0,x=0,e}for(v(null),w.length=0,x=0;U.length;)U.pop()();for(let e=0;e<b.length;e+=1){const n=b[e];O.has(n)||(O.add(n),n())}b.length=0}while(w.length);for(;q.length;)q.pop()();B=!1,O.clear(),v(t)}function Et(t){if(t.fragment!==null){t.update(),E(t.before_update);const e=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach(F)}}function vt(t){const e=[],n=[];b.forEach(i=>t.indexOf(i)===-1?e.push(i):n.push(i)),n.forEach(i=>i()),b=e}const S=new Set;let g;function fe(){g={r:0,c:[],p:g}}function _e(){g.r||E(g.c),g=g.p}function ot(t,e){t&&t.i&&(S.delete(t),t.i(e))}function Tt(t,e,n,i){if(t&&t.o){if(S.has(t))return;S.add(t),g.c.push(()=>{S.delete(t),i&&(n&&t.d(1),i())}),t.o(e)}else i&&i()}const de=typeof window<"u"?window:typeof globalThis<"u"?globalThis:global;function he(t,e){Tt(t,1,1,()=>{e.delete(t.key)})}function me(t,e,n,i,s,o,r,l,c,a,f,d){let _=t.length,m=o.length,h=_;const D={};for(;h--;)D[t[h].key]=h;const N=[],H=new Map,j=new Map,z=[];for(h=m;h--;){const u=d(s,o,h),p=n(u);let y=r.get(p);y?i&&z.push(()=>y.p(u,e)):(y=a(p,u),y.c()),H.set(p,N[h]=y),p in D&&j.set(p,Math.abs(h-D[p]))}const W=new Set,I=new Set;function P(u){ot(u,1),u.m(l,f),r.set(u.key,u),f=u.first,m--}for(;_&&m;){const u=N[m-1],p=t[_-1],y=u.key,A=p.key;u===p?(f=u.first,_--,m--):H.has(A)?!r.has(y)||W.has(y)?P(u):I.has(A)?_--:j.get(y)>j.get(A)?(I.add(y),P(u)):(W.add(A),_--):(c(p,r),_--)}for(;_--;){const u=t[_];H.has(u.key)||c(u,r)}for(;m;)P(N[m-1]);return E(z),N}function pe(t,e){const n={},i={},s={$$scope:1};let o=t.length;for(;o--;){const r=t[o],l=e[o];if(l){for(const c in r)c in l||(i[c]=1);for(const c in l)s[c]||(n[c]=l[c],s[c]=1);t[o]=l}else for(const c in r)s[c]=1}for(const r in i)r in n||(n[r]=void 0);return n}function ye(t,e,n){const i=t.$$.props[e];i!==void 0&&(t.$$.bound[i]=n,n(t.$$.ctx[i]))}function ge(t){t&&t.c()}function xe(t,e){t&&t.l(e)}function Nt(t,e,n,i){const{fragment:s,after_update:o}=t.$$;s&&s.m(e,n),i||F(()=>{const r=t.$$.on_mount.map(V).filter(G);t.$$.on_destroy?t.$$.on_destroy.push(...r):E(r),t.$$.on_mount=[]}),o.forEach(F)}function At(t,e){const n=t.$$;n.fragment!==null&&(vt(n.after_update),E(n.on_destroy),n.fragment&&n.fragment.d(e),n.on_destroy=n.fragment=null,n.ctx=[])}function kt(t,e){t.$$.dirty[0]===-1&&(w.push(t),rt(),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<<e%31}function we(t,e,n,i,s,o,r,l=[-1]){const c=T;v(t);const a=t.$$={fragment:null,ctx:[],props:o,update:$,not_equal:s,bound:J(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(c?c.$$.context:[])),callbacks:J(),dirty:l,skip_bound:!1,root:e.target||c.$$.root};r&&r(a.root);let f=!1;if(a.ctx=n?n(t,e.props||{},(d,_,...m)=>{const h=m.length?m[0]:_;return a.ctx&&s(a.ctx[d],a.ctx[d]=h)&&(!a.skip_bound&&a.bound[d]&&a.bound[d](h),f&&kt(t,d)),_}):[],a.update(),f=!0,E(a.before_update),a.fragment=i?i(a.ctx):!1,e.target){if(e.hydrate){ft();const d=xt(e.target);a.fragment&&a.fragment.l(d),d.forEach(M)}else a.fragment&&a.fragment.c();e.intro&&ot(t.$$.fragment),Nt(t,e.target,e.anchor,e.customElement),_t(),ct()}v(c)}class be{$destroy(){At(this,1),this.$destroy=$}$on(e,n){if(!G(n))return $;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&&!at(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}}export{pe as $,Nt as A,At as B,tt as C,Vt as D,mt as E,$ as F,Dt as G,ee as H,It as I,jt as J,Pt as K,Ht as L,E as M,de as N,Ct as O,Jt as P,Bt as Q,Ft as R,be as S,Rt as T,ne as U,ye as V,ue as W,qt as X,lt as Y,Ot as Z,Kt as _,zt as a,Mt as a0,F as a1,Gt as a2,Q as a3,Yt as a4,Qt as a5,Lt as a6,ce as a7,le as a8,me as a9,oe as aa,he as ab,yt as b,Xt as c,Tt as d,Wt as e,_e as f,ot as g,M as h,we as i,re as j,Z as k,Ut as l,xt as m,gt as n,se as o,te as p,R as q,wt as r,St as s,ae as t,Zt as u,fe as v,U as w,ie as x,ge as y,xe as z};
