@htmlbricks/hb-toast 0.65.23 → 0.66.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/main.iife.js CHANGED
@@ -1,5 +1,5 @@
1
- (function(hr){"use strict";typeof window<"u"&&((window.__svelte??={}).v??=new Set).add("5");const Ss=1,zs=2,Ns=16,As=1,Cs=4,Rs=8,Is=16,Ms=1,Os=2,Ps=4,Ds=2,vr="[",be="[!",Le="]",Ht={},R=Symbol(),Fe=!1;var gr=Array.isArray,Ls=Array.prototype.indexOf,qe=Array.from,he=Object.keys,ve=Object.defineProperty,At=Object.getOwnPropertyDescriptor,Fs=Object.prototype,qs=Array.prototype,Bs=Object.getPrototypeOf,cr=Object.isExtensible;function Us(t){return typeof t=="function"}const se=()=>{};function Vs(t){for(var e=0;e<t.length;e++)t[e]()}function fr(){var t,e,r=new Promise((s,n)=>{t=s,e=n});return{promise:r,resolve:t,reject:e}}const A=2,Be=4,Ue=8,bt=16,ut=32,kt=64,ge=128,lt=512,I=1024,F=2048,jt=4096,V=8192,xt=16384,le=32768,Ct=65536,ur=1<<17,Ve=1<<18,Rt=1<<19,Ys=1<<20,It=32768,Ye=1<<21,He=1<<22,$t=1<<23,ce=Symbol("$state"),jr=Symbol("legacy props"),Kt=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"},Ke=3,Mt=8;function Hs(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function Ks(t){throw new Error("https://svelte.dev/e/effect_in_teardown")}function Ws(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function Gs(t){throw new Error("https://svelte.dev/e/effect_orphan")}function Js(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function Xs(){throw new Error("https://svelte.dev/e/hydration_failed")}function Zs(t){throw new Error("https://svelte.dev/e/props_invalid_value")}function Qs(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function tl(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function el(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function rl(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}function fe(t){console.warn("https://svelte.dev/e/hydration_mismatch")}function sl(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}let x=!1;function nt(t){x=t}let w;function M(t){if(t===null)throw fe(),Ht;return w=t}function ne(){return M(Q(w))}function Et(t){if(x){if(Q(w)!==null)throw fe(),Ht;w=t}}function ll(t=1){if(x){for(var e=t,r=w;e--;)r=Q(r);w=r}}function ue(t=!0){for(var e=0,r=w;;){if(r.nodeType===Mt){var s=r.data;if(s===Le){if(e===0)return r;e-=1}else(s===vr||s===be)&&(e+=1)}var n=Q(r);t&&r.remove(),r=n}}function xr(t){if(!t||t.nodeType!==Mt)throw fe(),Ht;return t.data}function yr(t){return t===this.v}function nl(t,e){return t!=t?e==e:t!==e||t!==null&&typeof t=="object"||typeof t=="function"}function wr(t){return!nl(t,this.v)}let ol=!1,G=null;function Wt(t){G=t}function _r(t,e=!1,r){G={p:G,i:!1,c:null,e:null,s:t,x:null,l:null}}function kr(t){var e=G,r=e.e;if(r!==null){e.e=null;for(var s of r)Yr(s)}return t!==void 0&&(e.x=t),e.i=!0,G=e.p,t??{}}function $r(){return!0}let Ot=[];function Er(){var t=Ot;Ot=[],Vs(t)}function je(t){if(Ot.length===0&&!oe){var e=Ot;queueMicrotask(()=>{e===Ot&&Er()})}Ot.push(t)}function il(){for(;Ot.length>0;)Er()}function Tr(t){var e=_;if(e===null)return y.f|=$t,t;if((e.f&le)===0){if((e.f&ge)===0)throw t;e.b.error(t)}else Gt(t,e)}function Gt(t,e){for(;e!==null;){if((e.f&ge)!==0)try{e.b.error(t);return}catch(r){t=r}e=e.parent}throw t}const xe=new Set;let $=null,J=null,X=[],ye=null,We=!1,oe=!1;class ot{committed=!1;current=new Map;previous=new Map;#e=new Set;#t=new Set;#r=0;#s=0;#a=null;#n=[];#l=[];skipped_effects=new Set;is_fork=!1;is_deferred(){return this.is_fork||this.#s>0}process(e){X=[],this.apply();var r={parent:null,effect:null,effects:[],render_effects:[],block_effects:[]};for(const s of e)this.#o(s,r);this.is_fork||this.#p(),this.is_deferred()?(this.#i(r.effects),this.#i(r.render_effects),this.#i(r.block_effects)):($=null,zr(r.render_effects),zr(r.effects),this.#a?.resolve()),J=null}#o(e,r){e.f^=I;for(var s=e.first;s!==null;){var n=s.f,l=(n&(ut|kt))!==0,o=l&&(n&I)!==0,i=o||(n&V)!==0||this.skipped_effects.has(s);if((s.f&ge)!==0&&s.b?.is_pending()&&(r={parent:r,effect:s,effects:[],render_effects:[],block_effects:[]}),!i&&s.fn!==null){l?s.f^=I:(n&Be)!==0?r.effects.push(s):pe(s)&&((s.f&bt)!==0&&r.block_effects.push(s),de(s));var m=s.first;if(m!==null){s=m;continue}}var a=s.parent;for(s=s.next;s===null&&a!==null;)a===r.effect&&(this.#i(r.effects),this.#i(r.render_effects),this.#i(r.block_effects),r=r.parent),s=a.next,a=a.parent}}#i(e){for(const r of e)((r.f&F)!==0?this.#n:this.#l).push(r),this.#m(r.deps),O(r,I)}#m(e){if(e!==null)for(const r of e)(r.f&A)===0||(r.f&It)===0||(r.f^=It,this.#m(r.deps))}capture(e,r){this.previous.has(e)||this.previous.set(e,r),(e.f&$t)===0&&(this.current.set(e,e.v),J?.set(e,e.v))}activate(){$=this,this.apply()}deactivate(){$===this&&($=null,J=null)}flush(){if(this.activate(),X.length>0){if(Sr(),$!==null&&$!==this)return}else this.#r===0&&this.process([]);this.deactivate()}discard(){for(const e of this.#t)e(this);this.#t.clear()}#p(){if(this.#s===0){for(const e of this.#e)e();this.#e.clear()}this.#r===0&&this.#d()}#d(){if(xe.size>1){this.previous.clear();var e=J,r=!0,s={parent:null,effect:null,effects:[],render_effects:[],block_effects:[]};for(const l of xe){if(l===this){r=!1;continue}const o=[];for(const[m,a]of this.current){if(l.current.has(m))if(r&&a!==l.current.get(m))l.current.set(m,a);else continue;o.push(m)}if(o.length===0)continue;const i=[...l.current.keys()].filter(m=>!this.current.has(m));if(i.length>0){var n=X;X=[];const m=new Set,a=new Map;for(const p of o)Nr(p,i,m,a);if(X.length>0){$=l,l.apply();for(const p of X)l.#o(p,s);l.deactivate()}X=n}}$=null,J=e}this.committed=!0,xe.delete(this)}increment(e){this.#r+=1,e&&(this.#s+=1)}decrement(e){this.#r-=1,e&&(this.#s-=1),this.revive()}revive(){for(const e of this.#n)O(e,F),Pt(e);for(const e of this.#l)O(e,jt),Pt(e);this.#n=[],this.#l=[],this.flush()}oncommit(e){this.#e.add(e)}ondiscard(e){this.#t.add(e)}settled(){return(this.#a??=fr()).promise}static ensure(){if($===null){const e=$=new ot;xe.add($),oe||ot.enqueue(()=>{$===e&&e.flush()})}return $}static enqueue(e){je(e)}apply(){}}function Z(t){var e=oe;oe=!0;try{for(var r;;){if(il(),X.length===0&&($?.flush(),X.length===0))return ye=null,r;Sr()}}finally{oe=e}}function Sr(){var t=zt;We=!0;var e=null;try{var r=0;for(Te(!0);X.length>0;){var s=ot.ensure();if(r++>1e3){var n,l;al()}s.process(X),Tt.clear()}}finally{We=!1,Te(t),ye=null}}function al(){try{Js()}catch(t){Gt(t,ye)}}let yt=null;function zr(t){var e=t.length;if(e!==0){for(var r=0;r<e;){var s=t[r++];if((s.f&(xt|V))===0&&pe(s)&&(yt=new Set,de(s),s.deps===null&&s.first===null&&s.nodes_start===null&&(s.teardown===null&&s.ac===null?Jr(s):s.fn=null),yt?.size>0)){Tt.clear();for(const n of yt){if((n.f&(xt|V))!==0)continue;const l=[n];let o=n.parent;for(;o!==null;)yt.has(o)&&(yt.delete(o),l.push(o)),o=o.parent;for(let i=l.length-1;i>=0;i--){const m=l[i];(m.f&(xt|V))===0&&de(m)}}yt.clear()}}yt=null}}function Nr(t,e,r,s){if(!r.has(t)&&(r.add(t),t.reactions!==null))for(const n of t.reactions){const l=n.f;(l&A)!==0?Nr(n,e,r,s):(l&(He|bt))!==0&&(l&F)===0&&Ar(n,e,s)&&(O(n,F),Pt(n))}}function Ar(t,e,r){const s=r.get(t);if(s!==void 0)return s;if(t.deps!==null)for(const n of t.deps){if(e.includes(n))return!0;if((n.f&A)!==0&&Ar(n,e,r))return r.set(n,!0),!0}return r.set(t,!1),!1}function Pt(t){for(var e=ye=t;e.parent!==null;){e=e.parent;var r=e.f;if(We&&e===_&&(r&bt)!==0&&(r&Ve)===0)return;if((r&(kt|ut))!==0){if((r&I)===0)return;e.f^=I}}X.push(e)}function ml(t){let e=0,r=Lt(0),s;return()=>{$e()&&(c(r),Kr(()=>(e===0&&(s=er(()=>t(()=>ae(r)))),e+=1,()=>{je(()=>{e-=1,e===0&&(s?.(),s=void 0,ae(r))})})))}}var pl=Ct|Rt|ge;function dl(t,e,r){new bl(t,e,r)}class bl{parent;#e=!1;#t;#r=x?w:null;#s;#a;#n;#l=null;#o=null;#i=null;#m=null;#p=null;#d=0;#b=0;#v=!1;#h=null;#j=ml(()=>(this.#h=Lt(this.#d),()=>{this.#h=null}));constructor(e,r,s){this.#t=e,this.#s=r,this.#a=s,this.parent=_.b,this.#e=!!this.#s.pending,this.#n=Ee(()=>{if(_.b=this,x){const l=this.#r;ne(),l.nodeType===Mt&&l.data===be?this.#y():this.#x()}else{var n=this.#f();try{this.#l=tt(()=>s(n))}catch(l){this.error(l)}this.#b>0?this.#c():this.#e=!1}return()=>{this.#p?.remove()}},pl),x&&(this.#t=w)}#x(){try{this.#l=tt(()=>this.#a(this.#t))}catch(e){this.error(e)}this.#e=!1}#y(){const e=this.#s.pending;e&&(this.#o=tt(()=>e(this.#t)),ot.enqueue(()=>{var r=this.#f();this.#l=this.#g(()=>(ot.ensure(),tt(()=>this.#a(r)))),this.#b>0?this.#c():(Zt(this.#o,()=>{this.#o=null}),this.#e=!1)}))}#f(){var e=this.#t;return this.#e&&(this.#p=q(),this.#t.before(this.#p),e=this.#p),e}is_pending(){return this.#e||!!this.parent&&this.parent.is_pending()}has_pending_snippet(){return!!this.#s.pending}#g(e){var r=_,s=y,n=G;ct(this.#n),B(this.#n),Wt(this.#n.ctx);try{return e()}catch(l){return Tr(l),null}finally{ct(r),B(s),Wt(n)}}#c(){const e=this.#s.pending;this.#l!==null&&(this.#m=document.createDocumentFragment(),this.#m.append(this.#p),Qr(this.#l,this.#m)),this.#o===null&&(this.#o=tt(()=>e(this.#t)))}#u(e){if(!this.has_pending_snippet()){this.parent&&this.parent.#u(e);return}this.#b+=e,this.#b===0&&(this.#e=!1,this.#o&&Zt(this.#o,()=>{this.#o=null}),this.#m&&(this.#t.before(this.#m),this.#m=null))}update_pending_count(e){this.#u(e),this.#d+=e,this.#h&&ie(this.#h,this.#d)}get_effect_pending(){return this.#j(),c(this.#h)}error(e){var r=this.#s.onerror;let s=this.#s.failed;if(this.#v||!r&&!s)throw e;this.#l&&(P(this.#l),this.#l=null),this.#o&&(P(this.#o),this.#o=null),this.#i&&(P(this.#i),this.#i=null),x&&(M(this.#r),ll(),M(ue()));var n=!1,l=!1;const o=()=>{if(n){sl();return}n=!0,l&&rl(),ot.ensure(),this.#d=0,this.#i!==null&&Zt(this.#i,()=>{this.#i=null}),this.#e=this.has_pending_snippet(),this.#l=this.#g(()=>(this.#v=!1,tt(()=>this.#a(this.#t)))),this.#b>0?this.#c():this.#e=!1};var i=y;try{B(null),l=!0,r?.(e,o),l=!1}catch(m){Gt(m,this.#n&&this.#n.parent)}finally{B(i)}s&&je(()=>{this.#i=this.#g(()=>{ot.ensure(),this.#v=!0;try{return tt(()=>{s(this.#t,()=>e,()=>o)})}catch(m){return Gt(m,this.#n.parent),null}finally{this.#v=!1}})})}}function hl(t,e,r){for(var s=[],n=e.length,l=0;l<n;l++)Qe(e[l].e,s,!0);Xr(s,()=>{var o=s.length===0&&r!==null;if(o){var i=r,m=i.parentNode;Br(m),m.append(i),t.items.clear(),ht(t,e[0].prev,e[n-1].next)}for(var a=0;a<n;a++){var p=e[a];o||(t.items.delete(p.k),ht(t,p.prev,p.next)),P(p.e,!o)}t.first===e[0]&&(t.first=e[0].prev)})}function vl(t,e,r,s,n,l=null){var o=t,i=new Map,m=null;{var a=t;o=x?M(Ft(a)):a.appendChild(q())}x&&ne();var p=null,h=Cr(()=>{var j=r();return gr(j)?j:j==null?[]:qe(j)}),d,b=!0;function g(){gl(k,d,o,e,s),p!==null&&(d.length===0?(p.fragment?(o.before(p.fragment),p.fragment=null):tr(p.effect),u.first=p.effect):Zt(p.effect,()=>{p=null}))}var u=Ee(()=>{d=c(h);var j=d.length;let f=!1;if(x){var T=xr(o)===be;T!==(j===0)&&(o=ue(),M(o),nt(!1),f=!0)}for(var C=new Set,N=$,z=null,K=Ur(),mt=0;mt<j;mt+=1){x&&w.nodeType===Mt&&w.data===Le&&(o=w,f=!0,nt(!1));var ft=d[mt],te=s(ft,mt),rt=b?null:i.get(te);rt?(ie(rt.v,ft),rt.i=mt,K&&N.skipped_effects.delete(rt.e)):(rt=cl(b?o:null,z,ft,te,mt,n,e,r),b&&(rt.o=!0,z===null?m=rt:z.next=rt,z=rt),i.set(te,rt)),C.add(te)}if(j===0&&l&&!p)if(b)p={fragment:null,effect:tt(()=>l(o))};else{var Pe=document.createDocumentFragment(),De=q();Pe.append(De),p={fragment:Pe,effect:tt(()=>l(De))}}if(x&&j>0&&M(ue()),!b)if(K){for(const[or,ir]of i)C.has(or)||N.skipped_effects.add(ir.e);N.oncommit(g),N.ondiscard(()=>{})}else g();f&&nt(!0),c(h)}),k={effect:u,items:i,first:m};b=!1,x&&(o=w)}function gl(t,e,r,s,n){var l=e.length,o=t.items,i=t.first,m,a=null,p=[],h=[],d,b,g,u;for(u=0;u<l;u+=1){if(d=e[u],b=n(d,u),g=o.get(b),t.first??=g,!g.o){g.o=!0;var k=a?a.next:i;ht(t,a,g),ht(t,g,k),Ge(g,k,r),a=g,p=[],h=[],i=a.next;continue}if((g.e.f&V)!==0&&tr(g.e),g!==i){if(m!==void 0&&m.has(g)){if(p.length<h.length){var j=h[0],f;a=j.prev;var T=p[0],C=p[p.length-1];for(f=0;f<p.length;f+=1)Ge(p[f],j,r);for(f=0;f<h.length;f+=1)m.delete(h[f]);ht(t,T.prev,C.next),ht(t,a,T),ht(t,C,j),i=j,a=C,u-=1,p=[],h=[]}else m.delete(g),Ge(g,i,r),ht(t,g.prev,g.next),ht(t,g,a===null?t.first:a.next),ht(t,a,g),a=g;continue}for(p=[],h=[];i!==null&&i.k!==b;)(i.e.f&V)===0&&(m??=new Set).add(i),h.push(i),i=i.next;if(i===null)continue;g=i}p.push(g),a=g,i=g.next}if(i!==null||m!==void 0){for(var N=m===void 0?[]:qe(m);i!==null;)(i.e.f&V)===0&&N.push(i),i=i.next;var z=N.length;if(z>0){var K=l===0?r:null;hl(t,N,K)}}}function cl(t,e,r,s,n,l,o,i){var m=(o&Ss)!==0,a=(o&Ns)===0,p=m?a?Or(r,!1,!1):Lt(r):r,h=(o&zs)===0?n:Lt(n),d={i:h,v:p,k:s,a:null,e:null,o:!1,prev:e,next:null};try{if(t===null){var b=document.createDocumentFragment();b.append(t=q())}return d.e=tt(()=>l(t,p,h,i)),e!==null&&(e.next=d),d}finally{}}function Ge(t,e,r){for(var s=t.next?t.next.e.nodes_start:r,n=e?e.e.nodes_start:r,l=t.e.nodes_start;l!==null&&l!==s;){var o=Q(l);n.before(l),l=o}}function ht(t,e,r){e===null?(t.first=r,t.effect.first=r&&r.e):(e.e.next&&(e.e.next.prev=null),e.next=r,e.e.next=r&&r.e),r===null?t.effect.last=e&&e.e:(r.e.prev&&(r.e.prev.next=null),r.prev=e,r.e.prev=e&&e.e)}function fl(t,e,r,s){const n=_e;if(r.length===0&&t.length===0){s(e.map(n));return}var l=$,o=_,i=ul();function m(){Promise.all(r.map(a=>jl(a))).then(a=>{i();try{s([...e.map(n),...a])}catch(p){(o.f&xt)===0&&Gt(p,o)}l?.deactivate(),we()}).catch(a=>{Gt(a,o)})}t.length>0?Promise.all(t).then(()=>{i();try{return m()}finally{l?.deactivate(),we()}}):m()}function ul(){var t=_,e=y,r=G,s=$;return function(l=!0){ct(t),B(e),Wt(r),l&&s?.activate()}}function we(){ct(null),B(null),Wt(null)}function _e(t){var e=A|F,r=y!==null&&(y.f&A)!==0?y:null;return _!==null&&(_.f|=Rt),{ctx:G,deps:null,effects:null,equals:yr,f:e,fn:t,reactions:null,rv:0,v:R,wv:0,parent:r??_,ac:null}}function jl(t,e){let r=_;r===null&&Hs();var s=r.b,n=void 0,l=Lt(R),o=!y,i=new Map;return Sl(()=>{var m=fr();n=m.promise;try{Promise.resolve(t()).then(m.resolve,m.reject).then(()=>{a===$&&a.committed&&a.deactivate(),we()})}catch(d){m.reject(d),we()}var a=$;if(o){var p=!s.is_pending();s.update_pending_count(1),a.increment(p),i.get(a)?.reject(Kt),i.delete(a),i.set(a,m)}const h=(d,b=void 0)=>{if(a.activate(),b)b!==Kt&&(l.f|=$t,ie(l,b));else{(l.f&$t)!==0&&(l.f^=$t),ie(l,d);for(const[g,u]of i){if(i.delete(g),g===a)break;u.reject(Kt)}}o&&(s.update_pending_count(-1),a.decrement(p))};m.promise.then(h,d=>h(null,d||"unknown"))}),$l(()=>{for(const m of i.values())m.reject(Kt)}),new Promise(m=>{function a(p){function h(){p===n?m(l):a(n)}p.then(h,h)}a(n)})}function Dt(t){const e=_e(t);return es(e),e}function Cr(t){const e=_e(t);return e.equals=wr,e}function Rr(t){var e=t.effects;if(e!==null){t.effects=null;for(var r=0;r<e.length;r+=1)P(e[r])}}function xl(t){for(var e=t.parent;e!==null;){if((e.f&A)===0)return(e.f&xt)===0?e:null;e=e.parent}return null}function Je(t){var e,r=_;ct(xl(t));try{t.f&=~It,Rr(t),e=os(t)}finally{ct(r)}return e}function Ir(t){var e=Je(t);if(t.equals(e)||($?.is_fork||(t.v=e),t.wv=ls()),!Bt)if(J!==null)$e()&&J.set(t,e);else{var r=(t.f&lt)===0?jt:I;O(t,r)}}let Xe=new Set;const Tt=new Map;let Mr=!1;function Lt(t,e){var r={f:0,v:t,reactions:null,equals:yr,rv:0,wv:0};return r}function Y(t,e){const r=Lt(t);return es(r),r}function Or(t,e=!1,r=!0){const s=Lt(t);return e||(s.equals=wr),s}function E(t,e,r=!1){y!==null&&(!gt||(y.f&ur)!==0)&&$r()&&(y.f&(A|bt|He|ur))!==0&&!wt?.includes(t)&&el();let s=r?Jt(e):e;return ie(t,s)}function ie(t,e){if(!t.equals(e)){var r=t.v;Bt?Tt.set(t,e):Tt.set(t,r),t.v=e;var s=ot.ensure();s.capture(t,r),(t.f&A)!==0&&((t.f&F)!==0&&Je(t),O(t,(t.f&lt)!==0?I:jt)),t.wv=ls(),Pr(t,F),_!==null&&(_.f&I)!==0&&(_.f&(ut|kt))===0&&(et===null?Al([t]):et.push(t)),!s.is_fork&&Xe.size>0&&!Mr&&yl()}return e}function yl(){Mr=!1;var t=zt;Te(!0);const e=Array.from(Xe);try{for(const r of e)(r.f&I)!==0&&O(r,jt),pe(r)&&de(r)}finally{Te(t)}Xe.clear()}function ae(t){E(t,t.v+1)}function Pr(t,e){var r=t.reactions;if(r!==null)for(var s=r.length,n=0;n<s;n++){var l=r[n],o=l.f,i=(o&F)===0;if(i&&O(l,e),(o&A)!==0){var m=l;J?.delete(m),(o&It)===0&&(o&lt&&(l.f|=It),Pr(m,jt))}else i&&((o&bt)!==0&&yt!==null&&yt.add(l),Pt(l))}}function Jt(t){if(typeof t!="object"||t===null||ce in t)return t;const e=Bs(t);if(e!==Fs&&e!==qs)return t;var r=new Map,s=gr(t),n=Y(0),l=Ut,o=i=>{if(Ut===l)return i();var m=y,a=Ut;B(null),ss(l);var p=i();return B(m),ss(a),p};return s&&r.set("length",Y(t.length)),new Proxy(t,{defineProperty(i,m,a){(!("value"in a)||a.configurable===!1||a.enumerable===!1||a.writable===!1)&&Qs();var p=r.get(m);return p===void 0?p=o(()=>{var h=Y(a.value);return r.set(m,h),h}):E(p,a.value,!0),!0},deleteProperty(i,m){var a=r.get(m);if(a===void 0){if(m in i){const p=o(()=>Y(R));r.set(m,p),ae(n)}}else E(a,R),ae(n);return!0},get(i,m,a){if(m===ce)return t;var p=r.get(m),h=m in i;if(p===void 0&&(!h||At(i,m)?.writable)&&(p=o(()=>{var b=Jt(h?i[m]:R),g=Y(b);return g}),r.set(m,p)),p!==void 0){var d=c(p);return d===R?void 0:d}return Reflect.get(i,m,a)},getOwnPropertyDescriptor(i,m){var a=Reflect.getOwnPropertyDescriptor(i,m);if(a&&"value"in a){var p=r.get(m);p&&(a.value=c(p))}else if(a===void 0){var h=r.get(m),d=h?.v;if(h!==void 0&&d!==R)return{enumerable:!0,configurable:!0,value:d,writable:!0}}return a},has(i,m){if(m===ce)return!0;var a=r.get(m),p=a!==void 0&&a.v!==R||Reflect.has(i,m);if(a!==void 0||_!==null&&(!p||At(i,m)?.writable)){a===void 0&&(a=o(()=>{var d=p?Jt(i[m]):R,b=Y(d);return b}),r.set(m,a));var h=c(a);if(h===R)return!1}return p},set(i,m,a,p){var h=r.get(m),d=m in i;if(s&&m==="length")for(var b=a;b<h.v;b+=1){var g=r.get(b+"");g!==void 0?E(g,R):b in i&&(g=o(()=>Y(R)),r.set(b+"",g))}if(h===void 0)(!d||At(i,m)?.writable)&&(h=o(()=>Y(void 0)),E(h,Jt(a)),r.set(m,h));else{d=h.v!==R;var u=o(()=>Jt(a));E(h,u)}var k=Reflect.getOwnPropertyDescriptor(i,m);if(k?.set&&k.set.call(p,a),!d){if(s&&typeof m=="string"){var j=r.get("length"),f=Number(m);Number.isInteger(f)&&f>=j.v&&E(j,f+1)}ae(n)}return!0},ownKeys(i){c(n);var m=Reflect.ownKeys(i).filter(h=>{var d=r.get(h);return d===void 0||d.v!==R});for(var[a,p]of r)p.v!==R&&!(a in i)&&m.push(a);return m},setPrototypeOf(){tl()}})}var Dr,Lr,Fr,qr;function Ze(){if(Dr===void 0){Dr=window,Lr=/Firefox/.test(navigator.userAgent);var t=Element.prototype,e=Node.prototype,r=Text.prototype;Fr=At(e,"firstChild").get,qr=At(e,"nextSibling").get,cr(t)&&(t.__click=void 0,t.__className=void 0,t.__attributes=null,t.__style=void 0,t.__e=void 0),cr(r)&&(r.__t=void 0)}}function q(t=""){return document.createTextNode(t)}function Ft(t){return Fr.call(t)}function Q(t){return qr.call(t)}function qt(t,e){if(!x)return Ft(t);var r=Ft(w);return r===null&&(r=w.appendChild(q())),M(r),r}function wl(t,e=!1){if(!x){var r=Ft(t);return r instanceof Comment&&r.data===""?Q(r):r}if(e&&w?.nodeType!==Ke){var s=q();return w?.before(s),M(s),s}return w}function St(t,e=1,r=!1){let s=x?w:t;for(var n;e--;)n=s,s=Q(s);if(!x)return s;if(r&&s?.nodeType!==Ke){var l=q();return s===null?n?.after(l):s.before(l),M(l),l}return M(s),s}function Br(t){t.textContent=""}function Ur(){return!1}function ke(t){var e=y,r=_;B(null),ct(null);try{return t()}finally{B(e),ct(r)}}function _l(t){_===null&&(y===null&&Gs(),Ws()),Bt&&Ks()}function kl(t,e){var r=e.last;r===null?e.last=e.first=t:(r.next=t,t.prev=r,e.last=t)}function vt(t,e,r){var s=_;s!==null&&(s.f&V)!==0&&(t|=V);var n={ctx:G,deps:null,nodes_start:null,nodes_end:null,f:t|F|lt,first:null,fn:e,last:null,next:null,parent:s,b:s&&s.b,prev:null,teardown:null,transitions:null,wv:0,ac:null};if(r)try{de(n),n.f|=le}catch(i){throw P(n),i}else e!==null&&Pt(n);var l=n;if(r&&l.deps===null&&l.teardown===null&&l.nodes_start===null&&l.first===l.last&&(l.f&Rt)===0&&(l=l.first,(t&bt)!==0&&(t&Ct)!==0&&l!==null&&(l.f|=Ct)),l!==null&&(l.parent=s,s!==null&&kl(l,s),y!==null&&(y.f&A)!==0&&(t&kt)===0)){var o=y;(o.effects??=[]).push(l)}return n}function $e(){return y!==null&&!gt}function $l(t){const e=vt(Ue,null,!1);return O(e,I),e.teardown=t,e}function Vr(t){_l();var e=_.f,r=!y&&(e&ut)!==0&&(e&le)===0;if(r){var s=G;(s.e??=[]).push(t)}else return Yr(t)}function Yr(t){return vt(Be|Ys,t,!1)}function El(t){ot.ensure();const e=vt(kt|Rt,t,!0);return()=>{P(e)}}function Tl(t){ot.ensure();const e=vt(kt|Rt,t,!0);return(r={})=>new Promise(s=>{r.outro?Zt(e,()=>{P(e),s(void 0)}):(P(e),s(void 0))})}function Hr(t){return vt(Be,t,!1)}function Sl(t){return vt(He|Rt,t,!0)}function Kr(t,e=0){return vt(Ue|e,t,!0)}function Xt(t,e=[],r=[],s=[]){fl(s,e,r,n=>{vt(Ue,()=>t(...n.map(c)),!0)})}function Ee(t,e=0){var r=vt(bt|e,t,!0);return r}function tt(t){return vt(ut|Rt,t,!0)}function Wr(t){var e=t.teardown;if(e!==null){const r=Bt,s=y;ts(!0),B(null);try{e.call(null)}finally{ts(r),B(s)}}}function Gr(t,e=!1){var r=t.first;for(t.first=t.last=null;r!==null;){const n=r.ac;n!==null&&ke(()=>{n.abort(Kt)});var s=r.next;(r.f&kt)!==0?r.parent=null:P(r,e),r=s}}function zl(t){for(var e=t.first;e!==null;){var r=e.next;(e.f&ut)===0&&P(e),e=r}}function P(t,e=!0){var r=!1;(e||(t.f&Ve)!==0)&&t.nodes_start!==null&&t.nodes_end!==null&&(Nl(t.nodes_start,t.nodes_end),r=!0),Gr(t,e&&!r),Se(t,0),O(t,xt);var s=t.transitions;if(s!==null)for(const l of s)l.stop();Wr(t);var n=t.parent;n!==null&&n.first!==null&&Jr(t),t.next=t.prev=t.teardown=t.ctx=t.deps=t.fn=t.nodes_start=t.nodes_end=t.ac=null}function Nl(t,e){for(;t!==null;){var r=t===e?null:Q(t);t.remove(),t=r}}function Jr(t){var e=t.parent,r=t.prev,s=t.next;r!==null&&(r.next=s),s!==null&&(s.prev=r),e!==null&&(e.first===t&&(e.first=s),e.last===t&&(e.last=r))}function Zt(t,e,r=!0){var s=[];Qe(t,s,!0),Xr(s,()=>{r&&P(t),e&&e()})}function Xr(t,e){var r=t.length;if(r>0){var s=()=>--r||e();for(var n of t)n.out(s)}else e()}function Qe(t,e,r){if((t.f&V)===0){if(t.f^=V,t.transitions!==null)for(const o of t.transitions)(o.is_global||r)&&e.push(o);for(var s=t.first;s!==null;){var n=s.next,l=(s.f&Ct)!==0||(s.f&ut)!==0&&(t.f&bt)!==0;Qe(s,e,l?r:!1),s=n}}}function tr(t){Zr(t,!0)}function Zr(t,e){if((t.f&V)!==0){t.f^=V,(t.f&I)===0&&(O(t,F),Pt(t));for(var r=t.first;r!==null;){var s=r.next,n=(r.f&Ct)!==0||(r.f&ut)!==0;Zr(r,n?e:!1),r=s}if(t.transitions!==null)for(const l of t.transitions)(l.is_global||e)&&l.in()}}function Qr(t,e){for(var r=t.nodes_start,s=t.nodes_end;r!==null;){var n=r===s?null:Q(r);e.append(r),r=n}}let zt=!1;function Te(t){zt=t}let Bt=!1;function ts(t){Bt=t}let y=null,gt=!1;function B(t){y=t}let _=null;function ct(t){_=t}let wt=null;function es(t){y!==null&&(wt===null?wt=[t]:wt.push(t))}let D=null,H=0,et=null;function Al(t){et=t}let rs=1,me=0,Ut=me;function ss(t){Ut=t}function ls(){return++rs}function pe(t){var e=t.f;if((e&F)!==0)return!0;if(e&A&&(t.f&=~It),(e&jt)!==0){var r=t.deps;if(r!==null)for(var s=r.length,n=0;n<s;n++){var l=r[n];if(pe(l)&&Ir(l),l.wv>t.wv)return!0}(e&lt)!==0&&J===null&&O(t,I)}return!1}function ns(t,e,r=!0){var s=t.reactions;if(s!==null&&!wt?.includes(t))for(var n=0;n<s.length;n++){var l=s[n];(l.f&A)!==0?ns(l,e,!1):e===l&&(r?O(l,F):(l.f&I)!==0&&O(l,jt),Pt(l))}}function os(t){var e=D,r=H,s=et,n=y,l=wt,o=G,i=gt,m=Ut,a=t.f;D=null,H=0,et=null,y=(a&(ut|kt))===0?t:null,wt=null,Wt(t.ctx),gt=!1,Ut=++me,t.ac!==null&&(ke(()=>{t.ac.abort(Kt)}),t.ac=null);try{t.f|=Ye;var p=t.fn,h=p(),d=t.deps;if(D!==null){var b;if(Se(t,H),d!==null&&H>0)for(d.length=H+D.length,b=0;b<D.length;b++)d[H+b]=D[b];else t.deps=d=D;if(zt&&$e()&&(t.f&lt)!==0)for(b=H;b<d.length;b++)(d[b].reactions??=[]).push(t)}else d!==null&&H<d.length&&(Se(t,H),d.length=H);if($r()&&et!==null&&!gt&&d!==null&&(t.f&(A|jt|F))===0)for(b=0;b<et.length;b++)ns(et[b],t);return n!==null&&n!==t&&(me++,et!==null&&(s===null?s=et:s.push(...et))),(t.f&$t)!==0&&(t.f^=$t),h}catch(g){return Tr(g)}finally{t.f^=Ye,D=e,H=r,et=s,y=n,wt=l,Wt(o),gt=i,Ut=m}}function Cl(t,e){let r=e.reactions;if(r!==null){var s=Ls.call(r,t);if(s!==-1){var n=r.length-1;n===0?r=e.reactions=null:(r[s]=r[n],r.pop())}}r===null&&(e.f&A)!==0&&(D===null||!D.includes(e))&&(O(e,jt),(e.f&lt)!==0&&(e.f^=lt,e.f&=~It),Rr(e),Se(e,0))}function Se(t,e){var r=t.deps;if(r!==null)for(var s=e;s<r.length;s++)Cl(t,r[s])}function de(t){var e=t.f;if((e&xt)===0){O(t,I);var r=_,s=zt;_=t,zt=!0;try{(e&bt)!==0?zl(t):Gr(t),Wr(t);var n=os(t);t.teardown=typeof n=="function"?n:null,t.wv=rs;var l;Fe&&ol&&(t.f&F)!==0&&t.deps}finally{zt=s,_=r}}}function c(t){var e=t.f,r=(e&A)!==0;if(y!==null&&!gt){var s=_!==null&&(_.f&xt)!==0;if(!s&&!wt?.includes(t)){var n=y.deps;if((y.f&Ye)!==0)t.rv<me&&(t.rv=me,D===null&&n!==null&&n[H]===t?H++:D===null?D=[t]:D.includes(t)||D.push(t));else{(y.deps??=[]).push(t);var l=t.reactions;l===null?t.reactions=[y]:l.includes(y)||l.push(y)}}}if(Bt){if(Tt.has(t))return Tt.get(t);if(r){var o=t,i=o.v;return((o.f&I)===0&&o.reactions!==null||as(o))&&(i=Je(o)),Tt.set(o,i),i}}else r&&!J?.has(t)&&(o=t,pe(o)&&Ir(o),zt&&$e()&&(o.f&lt)===0&&is(o));if(J?.has(t))return J.get(t);if((t.f&$t)!==0)throw t.v;return t.v}function is(t){if(t.deps!==null){t.f^=lt;for(const e of t.deps)(e.reactions??=[]).push(t),(e.f&A)!==0&&(e.f&lt)===0&&is(e)}}function as(t){if(t.v===R)return!0;if(t.deps===null)return!1;for(const e of t.deps)if(Tt.has(e)||(e.f&A)!==0&&as(e))return!0;return!1}function er(t){var e=gt;try{return gt=!0,t()}finally{gt=e}}const Rl=-7169;function O(t,e){t.f=t.f&Rl|e}const ms=new Set,rr=new Set;function Il(t){for(var e=0;e<t.length;e++)ms.add(t[e]);for(var r of rr)r(t)}let ps=null;function ze(t){var e=this,r=e.ownerDocument,s=t.type,n=t.composedPath?.()||[],l=n[0]||t.target;ps=t;var o=0,i=ps===t&&t.__root;if(i){var m=n.indexOf(i);if(m!==-1&&(e===document||e===window)){t.__root=e;return}var a=n.indexOf(e);if(a===-1)return;m<=a&&(o=m)}if(l=n[o]||t.target,l!==e){ve(t,"currentTarget",{configurable:!0,get(){return l||r}});var p=y,h=_;B(null),ct(null);try{for(var d,b=[];l!==null;){var g=l.assignedSlot||l.parentNode||l.host||null;try{var u=l["__"+s];u!=null&&(!l.disabled||t.target===l)&&u.call(l,t)}catch(k){d?b.push(k):d=k}if(t.cancelBubble||g===e||g===null)break;l=g}if(d){for(let k of b)queueMicrotask(()=>{throw k});throw d}}finally{t.__root=e,delete t.currentTarget,B(p),ct(h)}}}function Ml(t){var e=document.createElement("template");return e.innerHTML=t.replaceAll("<!>","<!---->"),e.content}function Vt(t,e){var r=_;r.nodes_start===null&&(r.nodes_start=t,r.nodes_end=e)}function Yt(t,e){var r=(e&Ds)!==0,s,n=!t.startsWith("<!>");return()=>{if(x)return Vt(w,null),w;s===void 0&&(s=Ml(n?t:"<!>"+t),s=Ft(s));var l=r||Lr?document.importNode(s,!0):s.cloneNode(!0);return Vt(l,l),l}}function ds(t=""){if(!x){var e=q(t+"");return Vt(e,e),e}var r=w;return r.nodeType!==Ke&&(r.before(r=q()),M(r)),Vt(r,r),r}function Ol(){if(x)return Vt(w,null),w;var t=document.createDocumentFragment(),e=document.createComment(""),r=q();return t.append(e,r),Vt(e,r),t}function it(t,e){if(x){var r=_;((r.f&le)===0||r.nodes_end===null)&&(r.nodes_end=w),ne();return}t!==null&&t.before(e)}const Pl=["touchstart","touchmove"];function Dl(t){return Pl.includes(t)}let sr=!0;function Ne(t,e){var r=e==null?"":typeof e=="object"?e+"":e;r!==(t.__t??=t.nodeValue)&&(t.__t=r,t.nodeValue=r+"")}function bs(t,e){return hs(t,e)}function Ll(t,e){Ze(),e.intro=e.intro??!1;const r=e.target,s=x,n=w;try{for(var l=Ft(r);l&&(l.nodeType!==Mt||l.data!==vr);)l=Q(l);if(!l)throw Ht;nt(!0),M(l);const o=hs(t,{...e,anchor:l});return nt(!1),o}catch(o){if(o instanceof Error&&o.message.split(`
2
- `).some(i=>i.startsWith("https://svelte.dev/e/")))throw o;return o!==Ht&&console.warn("Failed to hydrate: ",o),e.recover===!1&&Xs(),Ze(),Br(r),nt(!1),bs(t,e)}finally{nt(s),M(n)}}const Qt=new Map;function hs(t,{target:e,anchor:r,props:s={},events:n,context:l,intro:o=!0}){Ze();var i=new Set,m=h=>{for(var d=0;d<h.length;d++){var b=h[d];if(!i.has(b)){i.add(b);var g=Dl(b);e.addEventListener(b,ze,{passive:g});var u=Qt.get(b);u===void 0?(document.addEventListener(b,ze,{passive:g}),Qt.set(b,1)):Qt.set(b,u+1)}}};m(qe(ms)),rr.add(m);var a=void 0,p=Tl(()=>{var h=r??e.appendChild(q());return dl(h,{pending:()=>{}},d=>{if(l){_r({});var b=G;b.c=l}if(n&&(s.$$events=n),x&&Vt(d,null),sr=o,a=t(d,s)||{},sr=!0,x&&(_.nodes_end=w,w===null||w.nodeType!==Mt||w.data!==Le))throw fe(),Ht;l&&kr()}),()=>{for(var d of i){e.removeEventListener(d,ze);var b=Qt.get(d);--b===0?(document.removeEventListener(d,ze),Qt.delete(d)):Qt.set(d,b)}rr.delete(m),h!==r&&h.parentNode?.removeChild(h)}});return lr.set(a,p),a}let lr=new WeakMap;function Fl(t,e){const r=lr.get(t);return r?(lr.delete(t),r(e)):Promise.resolve()}class ql{anchor;#e=new Map;#t=new Map;#r=new Map;#s=new Set;#a=!0;constructor(e,r=!0){this.anchor=e,this.#a=r}#n=()=>{var e=$;if(this.#e.has(e)){var r=this.#e.get(e),s=this.#t.get(r);if(s)tr(s),this.#s.delete(r);else{var n=this.#r.get(r);n&&(this.#t.set(r,n.effect),this.#r.delete(r),n.fragment.lastChild.remove(),this.anchor.before(n.fragment),s=n.effect)}for(const[l,o]of this.#e){if(this.#e.delete(l),l===e)break;const i=this.#r.get(o);i&&(P(i.effect),this.#r.delete(o))}for(const[l,o]of this.#t){if(l===r||this.#s.has(l))continue;const i=()=>{if(Array.from(this.#e.values()).includes(l)){var a=document.createDocumentFragment();Qr(o,a),a.append(q()),this.#r.set(l,{effect:o,fragment:a})}else P(o);this.#s.delete(l),this.#t.delete(l)};this.#a||!s?(this.#s.add(l),Zt(o,i,!1)):i()}}};#l=e=>{this.#e.delete(e);const r=Array.from(this.#e.values());for(const[s,n]of this.#r)r.includes(s)||(P(n.effect),this.#r.delete(s))};ensure(e,r){var s=$,n=Ur();if(r&&!this.#t.has(e)&&!this.#r.has(e))if(n){var l=document.createDocumentFragment(),o=q();l.append(o),this.#r.set(e,{effect:tt(()=>r(o)),fragment:l})}else this.#t.set(e,tt(()=>r(this.anchor)));if(this.#e.set(s,e),n){for(const[i,m]of this.#t)i===e?s.skipped_effects.delete(m):s.skipped_effects.add(m);for(const[i,m]of this.#r)i===e?s.skipped_effects.delete(m.effect):s.skipped_effects.add(m.effect);s.oncommit(this.#n),s.ondiscard(this.#l)}else x&&(this.anchor=w),this.#n()}}function Ae(t,e,r=!1){x&&ne();var s=new ql(t),n=r?Ct:0;function l(o,i){if(x){const a=xr(t)===be;if(o===a){var m=ue();M(m),s.anchor=m,nt(!1),s.ensure(o,i),nt(!0);return}}s.ensure(o,i)}Ee(()=>{var o=!1;e((i,m=!0)=>{o=!0,l(m,i)}),o||l(!1,null)},n)}function Ce(t,e,r,s,n){x&&ne();var l=e.$$slots?.[r],o=!1;l===!0&&(l=e[r==="default"?"children":r],o=!0),l===void 0?n!==null&&n(t):l(t,o?()=>s:s)}function Bl(t,e){let r=null,s=x;var n;if(x){r=w;for(var l=Ft(document.head);l!==null&&(l.nodeType!==Mt||l.data!==t);)l=Q(l);if(l===null)nt(!1);else{var o=Q(l);l.remove(),M(o)}}x||(n=document.head.appendChild(q()));try{Ee(()=>e(n),Ve)}finally{s&&(nt(!0),M(r))}}function Ul(t,e){Hr(()=>{var r=t.getRootNode(),s=r.host?r:r.head??r.ownerDocument.head;if(!s.querySelector("#"+e.hash)){const n=document.createElement("style");n.id=e.hash,n.textContent=e.code,s.appendChild(n)}})}function Vl(t,e,r){var s=t==null?"":""+t;return s=s?s+" "+e:e,s===""?null:s}function Yl(t,e){return t==null?null:String(t)}function Re(t,e,r,s,n,l){var o=t.__className;if(x||o!==r||o===void 0){var i=Vl(r,s);(!x||i!==t.getAttribute("class"))&&(i==null?t.removeAttribute("class"):t.className=i),t.__className=r}return l}function vs(t,e,r,s){var n=t.__style;if(x||n!==e){var l=Yl(e);(!x||l!==t.getAttribute("style"))&&(l==null?t.removeAttribute("style"):t.style.cssText=l),t.__style=e}return s}const Hl=()=>performance.now(),_t={tick:t=>requestAnimationFrame(t),now:()=>Hl(),tasks:new Set};function gs(){const t=_t.now();_t.tasks.forEach(e=>{e.c(t)||(_t.tasks.delete(e),e.f())}),_t.tasks.size!==0&&_t.tick(gs)}function Kl(t){let e;return _t.tasks.size===0&&_t.tick(gs),{promise:new Promise(r=>{_t.tasks.add(e={c:t,f:r})}),abort(){_t.tasks.delete(e)}}}function Ie(t,e){ke(()=>{t.dispatchEvent(new CustomEvent(e))})}function Wl(t){if(t==="float")return"cssFloat";if(t==="offset")return"cssOffset";if(t.startsWith("--"))return t;const e=t.split("-");return e.length===1?e[0]:e[0]+e.slice(1).map(r=>r[0].toUpperCase()+r.slice(1)).join("")}function cs(t){const e={},r=t.split(";");for(const s of r){const[n,l]=s.split(":");if(!n||l===void 0)break;const o=Wl(n.trim());e[o]=l.trim()}return e}const Gl=t=>t;function fs(t,e,r,s){var n=(t&Ms)!==0,l=(t&Os)!==0,o=n&&l,i=(t&Ps)!==0,m=o?"both":n?"in":"out",a,p=e.inert,h=e.style.overflow,d,b;function g(){return ke(()=>a??=r()(e,s?.()??{},{direction:m}))}var u={is_global:i,in(){if(e.inert=p,!n){b?.abort(),b?.reset?.();return}l||d?.abort(),Ie(e,"introstart"),d=nr(e,g(),b,1,()=>{Ie(e,"introend"),d?.abort(),d=a=void 0,e.style.overflow=h})},out(T){if(!l){T?.(),a=void 0;return}e.inert=!0,Ie(e,"outrostart"),b=nr(e,g(),d,0,()=>{Ie(e,"outroend"),T?.()})},stop:()=>{d?.abort(),b?.abort()}},k=_;if((k.transitions??=[]).push(u),n&&sr){var j=i;if(!j){for(var f=k.parent;f&&(f.f&Ct)!==0;)for(;(f=f.parent)&&(f.f&bt)===0;);j=!f||(f.f&le)!==0}j&&Hr(()=>{er(()=>u.in())})}}function nr(t,e,r,s,n){var l=s===1;if(Us(e)){var o,i=!1;return je(()=>{if(!i){var k=e({direction:l?"in":"out"});o=nr(t,k,r,s,n)}}),{abort:()=>{i=!0,o?.abort()},deactivate:()=>o.deactivate(),reset:()=>o.reset(),t:()=>o.t()}}if(r?.deactivate(),!e?.duration)return n(),{abort:se,deactivate:se,reset:se,t:()=>s};const{delay:m=0,css:a,tick:p,easing:h=Gl}=e;var d=[];if(l&&r===void 0&&(p&&p(0,1),a)){var b=cs(a(0,1));d.push(b,b)}var g=()=>1-s,u=t.animate(d,{duration:m,fill:"forwards"});return u.onfinish=()=>{u.cancel();var k=r?.t()??1-s;r?.abort();var j=s-k,f=e.duration*Math.abs(j),T=[];if(f>0){var C=!1;if(a)for(var N=Math.ceil(f/16.666666666666668),z=0;z<=N;z+=1){var K=k+j*h(z/N),mt=cs(a(K,1-K));T.push(mt),C||=mt.overflow==="hidden"}C&&(t.style.overflow="hidden"),g=()=>{var ft=u.currentTime;return k+j*h(ft/f)},p&&Kl(()=>{if(u.playState!=="running")return!1;var ft=g();return p(ft,1-ft),!0})}u=t.animate(T,{duration:f,fill:"forwards"}),u.onfinish=()=>{g=()=>s,p?.(s,1-s),n()}},{abort:()=>{u&&(u.cancel(),u.effect=null,u.onfinish=se)},deactivate:()=>{n=se},reset:()=>{s===0&&p?.(1,0)},t:()=>g()}}let Me=!1;function Jl(t){var e=Me;try{return Me=!1,[t(),Me]}finally{Me=e}}function at(t,e,r,s){var n=(r&Rs)!==0,l=(r&Is)!==0,o=s,i=!0,m=()=>(i&&(i=!1,o=l?er(s):s),o),a;if(n){var p=ce in t||jr in t;a=At(t,e)?.set??(p&&e in t?f=>t[e]=f:void 0)}var h,d=!1;n?[h,d]=Jl(()=>t[e]):h=t[e],h===void 0&&s!==void 0&&(h=m(),a&&(Zs(),a(h)));var b;if(b=()=>{var f=t[e];return f===void 0?m():(i=!0,f)},(r&Cs)===0)return b;if(a){var g=t.$$legacy;return(function(f,T){return arguments.length>0?((!T||g||d)&&a(T?b():f),f):b()})}var u=!1,k=((r&As)!==0?_e:Cr)(()=>(u=!1,b()));n&&c(k);var j=_;return(function(f,T){if(arguments.length>0){const C=T?c(k):n?Jt(f):f;return E(k,C),u=!0,o!==void 0&&(o=C),f}return Bt&&u||(j.f&xt)!==0?k.v:c(k)})}function Xl(t){return new Zl(t)}class Zl{#e;#t;constructor(e){var r=new Map,s=(l,o)=>{var i=Or(o,!1,!1);return r.set(l,i),i};const n=new Proxy({...e.props||{},$$events:{}},{get(l,o){return c(r.get(o)??s(o,Reflect.get(l,o)))},has(l,o){return o===jr?!0:(c(r.get(o)??s(o,Reflect.get(l,o))),Reflect.has(l,o))},set(l,o,i){return E(r.get(o)??s(o,i),i),Reflect.set(l,o,i)}});this.#t=(e.hydrate?Ll:bs)(e.component,{target:e.target,anchor:e.anchor,props:n,context:e.context,intro:e.intro??!1,recover:e.recover}),(!e?.props?.$$host||e.sync===!1)&&Z(),this.#e=n.$$events;for(const l of Object.keys(this.#t))l==="$set"||l==="$destroy"||l==="$on"||ve(this,l,{get(){return this.#t[l]},set(o){this.#t[l]=o},enumerable:!0});this.#t.$set=l=>{Object.assign(n,l)},this.#t.$destroy=()=>{Fl(this.#t)}}$set(e){this.#t.$set(e)}$on(e,r){this.#e[e]=this.#e[e]||[];const s=(...n)=>r.call(this,...n);return this.#e[e].push(s),()=>{this.#e[e]=this.#e[e].filter(n=>n!==s)}}$destroy(){this.#t.$destroy()}}let us;typeof HTMLElement=="function"&&(us=class extends HTMLElement{$$ctor;$$s;$$c;$$cn=!1;$$d={};$$r=!1;$$p_d={};$$l={};$$l_u=new Map;$$me;constructor(t,e,r){super(),this.$$ctor=t,this.$$s=e,r&&this.attachShadow({mode:"open"})}addEventListener(t,e,r){if(this.$$l[t]=this.$$l[t]||[],this.$$l[t].push(e),this.$$c){const s=this.$$c.$on(t,e);this.$$l_u.set(e,s)}super.addEventListener(t,e,r)}removeEventListener(t,e,r){if(super.removeEventListener(t,e,r),this.$$c){const s=this.$$l_u.get(e);s&&(s(),this.$$l_u.delete(e))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let t=function(s){return n=>{const l=document.createElement("slot");s!=="default"&&(l.name=s),it(n,l)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const e={},r=Ql(this);for(const s of this.$$s)s in r&&(s==="default"&&!this.$$d.children?(this.$$d.children=t(s),e.default=!0):e[s]=t(s));for(const s of this.attributes){const n=this.$$g_p(s.name);n in this.$$d||(this.$$d[n]=Oe(n,s.value,this.$$p_d,"toProp"))}for(const s in this.$$p_d)!(s in this.$$d)&&this[s]!==void 0&&(this.$$d[s]=this[s],delete this[s]);this.$$c=Xl({component:this.$$ctor,target:this.shadowRoot||this,props:{...this.$$d,$$slots:e,$$host:this}}),this.$$me=El(()=>{Kr(()=>{this.$$r=!0;for(const s of he(this.$$c)){if(!this.$$p_d[s]?.reflect)continue;this.$$d[s]=this.$$c[s];const n=Oe(s,this.$$d[s],this.$$p_d,"toAttribute");n==null?this.removeAttribute(this.$$p_d[s].attribute||s):this.setAttribute(this.$$p_d[s].attribute||s,n)}this.$$r=!1})});for(const s in this.$$l)for(const n of this.$$l[s]){const l=this.$$c.$on(s,n);this.$$l_u.set(n,l)}this.$$l={}}}attributeChangedCallback(t,e,r){this.$$r||(t=this.$$g_p(t),this.$$d[t]=Oe(t,r,this.$$p_d,"toProp"),this.$$c?.$set({[t]:this.$$d[t]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$me(),this.$$c=void 0)})}$$g_p(t){return he(this.$$p_d).find(e=>this.$$p_d[e].attribute===t||!this.$$p_d[e].attribute&&e.toLowerCase()===t)||t}});function Oe(t,e,r,s){const n=r[t]?.type;if(e=n==="Boolean"&&typeof e!="boolean"?e!=null:e,!s||!r[t])return e;if(s==="toAttribute")switch(n){case"Object":case"Array":return e==null?null:JSON.stringify(e);case"Boolean":return e?"":null;case"Number":return e??null;default:return e}else switch(n){case"Object":case"Array":return e&&JSON.parse(e);case"Boolean":return e;case"Number":return e!=null?+e:e;default:return e}}function Ql(t){const e={};return t.childNodes.forEach(r=>{e[r.slot||"default"]=!0}),e}function tn(t,e,r,s,n,l){let o=class extends us{constructor(){super(t,r,n),this.$$p_d=e}static get observedAttributes(){return he(e).map(i=>(e[i].attribute||i).toLowerCase())}};return he(e).forEach(i=>{ve(o.prototype,i,{get(){return this.$$c&&i in this.$$c?this.$$c[i]:this.$$d[i]},set(m){m=Oe(i,m,e),this.$$d[i]=m;var a=this.$$c;if(a){var p=At(a,i)?.get;p?a[i]=m:a.$set({[i]:m})}}})}),s.forEach(i=>{ve(o.prototype,i,{get(){return this.$$c?.[i]}})}),t.element=o,o}const en=t=>t;function js(t,{delay:e=0,duration:r=400,easing:s=en}={}){const n=+getComputedStyle(t).opacity;return{delay:e,duration:r,easing:s,css:l=>`opacity: ${l*n}`}}function xs(t){return--t*t*t*t*t+1}var rn=Yt('<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@latest/font/bootstrap-icons.css" class="svelte-j9shl9"/>'),sn=Yt('<i class="bi bi-bell svelte-j9shl9"></i>'),ln=Yt("<i></i>"),nn=Yt('<button type="button"><!> </button>'),on=Yt('<div class="mt-2 pt-2 border-top d-flex gap-2 justify-content-end svelte-j9shl9"></div>'),an=Yt('<div class="toast-progress-container svelte-j9shl9"><div></div></div>'),mn=Yt('<div part="toast" role="alert" aria-live="assertive" aria-atomic="true" data-bs-autohide="false" data-bs-delay="100" id="toast"><div class="toast-header svelte-j9shl9"><!> <strong class="me-auto svelte-j9shl9"><!> </strong> <small class="svelte-j9shl9"><!></small> <button type="button" class="btn-close svelte-j9shl9" data-bs-dismiss="toast" aria-label="Close"></button></div> <div class="toast-body svelte-j9shl9"><!> <!></div> <!></div>');const pn={hash:"svelte-j9shl9",code:`@charset "UTF-8";
1
+ (function(vr){"use strict";typeof window<"u"&&((window.__svelte??={}).v??=new Set).add("5");const Ss=1,zs=2,As=16,Ns=1,Cs=4,Rs=8,Is=16,Os=1,Ms=2,Ps=4,Ds=2,br="[",he="[!",Le="]",Ht={},R=Symbol(),Fe=!1;var cr=Array.isArray,Ls=Array.prototype.indexOf,qe=Array.from,ve=Object.keys,be=Object.defineProperty,Nt=Object.getOwnPropertyDescriptor,Fs=Object.prototype,qs=Array.prototype,Bs=Object.getPrototypeOf,gr=Object.isExtensible;function Vs(t){return typeof t=="function"}const se=()=>{};function Us(t){for(var e=0;e<t.length;e++)t[e]()}function fr(){var t,e,r=new Promise((s,n)=>{t=s,e=n});return{promise:r,resolve:t,reject:e}}const N=2,Be=4,Ve=8,ht=16,ut=32,kt=64,ce=128,lt=512,I=1024,F=2048,jt=4096,U=8192,xt=16384,le=32768,Ct=65536,ur=1<<17,Ue=1<<18,Rt=1<<19,Ys=1<<20,It=32768,Ye=1<<21,He=1<<22,$t=1<<23,ge=Symbol("$state"),jr=Symbol("legacy props"),Kt=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"},Ke=3,Ot=8;function Hs(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function Ks(t){throw new Error("https://svelte.dev/e/effect_in_teardown")}function Ws(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function Gs(t){throw new Error("https://svelte.dev/e/effect_orphan")}function Js(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function Xs(){throw new Error("https://svelte.dev/e/hydration_failed")}function Zs(t){throw new Error("https://svelte.dev/e/props_invalid_value")}function Qs(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function tl(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function el(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function rl(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}function fe(t){console.warn("https://svelte.dev/e/hydration_mismatch")}function sl(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}let x=!1;function nt(t){x=t}let w;function O(t){if(t===null)throw fe(),Ht;return w=t}function ne(){return O(Q(w))}function Et(t){if(x){if(Q(w)!==null)throw fe(),Ht;w=t}}function ll(t=1){if(x){for(var e=t,r=w;e--;)r=Q(r);w=r}}function ue(t=!0){for(var e=0,r=w;;){if(r.nodeType===Ot){var s=r.data;if(s===Le){if(e===0)return r;e-=1}else(s===br||s===he)&&(e+=1)}var n=Q(r);t&&r.remove(),r=n}}function xr(t){if(!t||t.nodeType!==Ot)throw fe(),Ht;return t.data}function yr(t){return t===this.v}function nl(t,e){return t!=t?e==e:t!==e||t!==null&&typeof t=="object"||typeof t=="function"}function wr(t){return!nl(t,this.v)}let ol=!1,G=null;function Wt(t){G=t}function _r(t,e=!1,r){G={p:G,i:!1,c:null,e:null,s:t,x:null,l:null}}function kr(t){var e=G,r=e.e;if(r!==null){e.e=null;for(var s of r)Yr(s)}return t!==void 0&&(e.x=t),e.i=!0,G=e.p,t??{}}function $r(){return!0}let Mt=[];function Er(){var t=Mt;Mt=[],Us(t)}function je(t){if(Mt.length===0&&!oe){var e=Mt;queueMicrotask(()=>{e===Mt&&Er()})}Mt.push(t)}function il(){for(;Mt.length>0;)Er()}function Tr(t){var e=_;if(e===null)return y.f|=$t,t;if((e.f&le)===0){if((e.f&ce)===0)throw t;e.b.error(t)}else Gt(t,e)}function Gt(t,e){for(;e!==null;){if((e.f&ce)!==0)try{e.b.error(t);return}catch(r){t=r}e=e.parent}throw t}const xe=new Set;let $=null,J=null,X=[],ye=null,We=!1,oe=!1;class ot{committed=!1;current=new Map;previous=new Map;#e=new Set;#t=new Set;#r=0;#s=0;#a=null;#n=[];#l=[];skipped_effects=new Set;is_fork=!1;is_deferred(){return this.is_fork||this.#s>0}process(e){X=[],this.apply();var r={parent:null,effect:null,effects:[],render_effects:[],block_effects:[]};for(const s of e)this.#o(s,r);this.is_fork||this.#p(),this.is_deferred()?(this.#i(r.effects),this.#i(r.render_effects),this.#i(r.block_effects)):($=null,zr(r.render_effects),zr(r.effects),this.#a?.resolve()),J=null}#o(e,r){e.f^=I;for(var s=e.first;s!==null;){var n=s.f,l=(n&(ut|kt))!==0,o=l&&(n&I)!==0,i=o||(n&U)!==0||this.skipped_effects.has(s);if((s.f&ce)!==0&&s.b?.is_pending()&&(r={parent:r,effect:s,effects:[],render_effects:[],block_effects:[]}),!i&&s.fn!==null){l?s.f^=I:(n&Be)!==0?r.effects.push(s):pe(s)&&((s.f&ht)!==0&&r.block_effects.push(s),de(s));var m=s.first;if(m!==null){s=m;continue}}var a=s.parent;for(s=s.next;s===null&&a!==null;)a===r.effect&&(this.#i(r.effects),this.#i(r.render_effects),this.#i(r.block_effects),r=r.parent),s=a.next,a=a.parent}}#i(e){for(const r of e)((r.f&F)!==0?this.#n:this.#l).push(r),this.#m(r.deps),M(r,I)}#m(e){if(e!==null)for(const r of e)(r.f&N)===0||(r.f&It)===0||(r.f^=It,this.#m(r.deps))}capture(e,r){this.previous.has(e)||this.previous.set(e,r),(e.f&$t)===0&&(this.current.set(e,e.v),J?.set(e,e.v))}activate(){$=this,this.apply()}deactivate(){$===this&&($=null,J=null)}flush(){if(this.activate(),X.length>0){if(Sr(),$!==null&&$!==this)return}else this.#r===0&&this.process([]);this.deactivate()}discard(){for(const e of this.#t)e(this);this.#t.clear()}#p(){if(this.#s===0){for(const e of this.#e)e();this.#e.clear()}this.#r===0&&this.#d()}#d(){if(xe.size>1){this.previous.clear();var e=J,r=!0,s={parent:null,effect:null,effects:[],render_effects:[],block_effects:[]};for(const l of xe){if(l===this){r=!1;continue}const o=[];for(const[m,a]of this.current){if(l.current.has(m))if(r&&a!==l.current.get(m))l.current.set(m,a);else continue;o.push(m)}if(o.length===0)continue;const i=[...l.current.keys()].filter(m=>!this.current.has(m));if(i.length>0){var n=X;X=[];const m=new Set,a=new Map;for(const p of o)Ar(p,i,m,a);if(X.length>0){$=l,l.apply();for(const p of X)l.#o(p,s);l.deactivate()}X=n}}$=null,J=e}this.committed=!0,xe.delete(this)}increment(e){this.#r+=1,e&&(this.#s+=1)}decrement(e){this.#r-=1,e&&(this.#s-=1),this.revive()}revive(){for(const e of this.#n)M(e,F),Pt(e);for(const e of this.#l)M(e,jt),Pt(e);this.#n=[],this.#l=[],this.flush()}oncommit(e){this.#e.add(e)}ondiscard(e){this.#t.add(e)}settled(){return(this.#a??=fr()).promise}static ensure(){if($===null){const e=$=new ot;xe.add($),oe||ot.enqueue(()=>{$===e&&e.flush()})}return $}static enqueue(e){je(e)}apply(){}}function Z(t){var e=oe;oe=!0;try{for(var r;;){if(il(),X.length===0&&($?.flush(),X.length===0))return ye=null,r;Sr()}}finally{oe=e}}function Sr(){var t=zt;We=!0;var e=null;try{var r=0;for(Te(!0);X.length>0;){var s=ot.ensure();if(r++>1e3){var n,l;al()}s.process(X),Tt.clear()}}finally{We=!1,Te(t),ye=null}}function al(){try{Js()}catch(t){Gt(t,ye)}}let yt=null;function zr(t){var e=t.length;if(e!==0){for(var r=0;r<e;){var s=t[r++];if((s.f&(xt|U))===0&&pe(s)&&(yt=new Set,de(s),s.deps===null&&s.first===null&&s.nodes_start===null&&(s.teardown===null&&s.ac===null?Jr(s):s.fn=null),yt?.size>0)){Tt.clear();for(const n of yt){if((n.f&(xt|U))!==0)continue;const l=[n];let o=n.parent;for(;o!==null;)yt.has(o)&&(yt.delete(o),l.push(o)),o=o.parent;for(let i=l.length-1;i>=0;i--){const m=l[i];(m.f&(xt|U))===0&&de(m)}}yt.clear()}}yt=null}}function Ar(t,e,r,s){if(!r.has(t)&&(r.add(t),t.reactions!==null))for(const n of t.reactions){const l=n.f;(l&N)!==0?Ar(n,e,r,s):(l&(He|ht))!==0&&(l&F)===0&&Nr(n,e,s)&&(M(n,F),Pt(n))}}function Nr(t,e,r){const s=r.get(t);if(s!==void 0)return s;if(t.deps!==null)for(const n of t.deps){if(e.includes(n))return!0;if((n.f&N)!==0&&Nr(n,e,r))return r.set(n,!0),!0}return r.set(t,!1),!1}function Pt(t){for(var e=ye=t;e.parent!==null;){e=e.parent;var r=e.f;if(We&&e===_&&(r&ht)!==0&&(r&Ue)===0)return;if((r&(kt|ut))!==0){if((r&I)===0)return;e.f^=I}}X.push(e)}function ml(t){let e=0,r=Lt(0),s;return()=>{$e()&&(g(r),Kr(()=>(e===0&&(s=er(()=>t(()=>ae(r)))),e+=1,()=>{je(()=>{e-=1,e===0&&(s?.(),s=void 0,ae(r))})})))}}var pl=Ct|Rt|ce;function dl(t,e,r){new hl(t,e,r)}class hl{parent;#e=!1;#t;#r=x?w:null;#s;#a;#n;#l=null;#o=null;#i=null;#m=null;#p=null;#d=0;#h=0;#b=!1;#v=null;#j=ml(()=>(this.#v=Lt(this.#d),()=>{this.#v=null}));constructor(e,r,s){this.#t=e,this.#s=r,this.#a=s,this.parent=_.b,this.#e=!!this.#s.pending,this.#n=Ee(()=>{if(_.b=this,x){const l=this.#r;ne(),l.nodeType===Ot&&l.data===he?this.#y():this.#x()}else{var n=this.#f();try{this.#l=tt(()=>s(n))}catch(l){this.error(l)}this.#h>0?this.#g():this.#e=!1}return()=>{this.#p?.remove()}},pl),x&&(this.#t=w)}#x(){try{this.#l=tt(()=>this.#a(this.#t))}catch(e){this.error(e)}this.#e=!1}#y(){const e=this.#s.pending;e&&(this.#o=tt(()=>e(this.#t)),ot.enqueue(()=>{var r=this.#f();this.#l=this.#c(()=>(ot.ensure(),tt(()=>this.#a(r)))),this.#h>0?this.#g():(Zt(this.#o,()=>{this.#o=null}),this.#e=!1)}))}#f(){var e=this.#t;return this.#e&&(this.#p=q(),this.#t.before(this.#p),e=this.#p),e}is_pending(){return this.#e||!!this.parent&&this.parent.is_pending()}has_pending_snippet(){return!!this.#s.pending}#c(e){var r=_,s=y,n=G;gt(this.#n),B(this.#n),Wt(this.#n.ctx);try{return e()}catch(l){return Tr(l),null}finally{gt(r),B(s),Wt(n)}}#g(){const e=this.#s.pending;this.#l!==null&&(this.#m=document.createDocumentFragment(),this.#m.append(this.#p),Qr(this.#l,this.#m)),this.#o===null&&(this.#o=tt(()=>e(this.#t)))}#u(e){if(!this.has_pending_snippet()){this.parent&&this.parent.#u(e);return}this.#h+=e,this.#h===0&&(this.#e=!1,this.#o&&Zt(this.#o,()=>{this.#o=null}),this.#m&&(this.#t.before(this.#m),this.#m=null))}update_pending_count(e){this.#u(e),this.#d+=e,this.#v&&ie(this.#v,this.#d)}get_effect_pending(){return this.#j(),g(this.#v)}error(e){var r=this.#s.onerror;let s=this.#s.failed;if(this.#b||!r&&!s)throw e;this.#l&&(P(this.#l),this.#l=null),this.#o&&(P(this.#o),this.#o=null),this.#i&&(P(this.#i),this.#i=null),x&&(O(this.#r),ll(),O(ue()));var n=!1,l=!1;const o=()=>{if(n){sl();return}n=!0,l&&rl(),ot.ensure(),this.#d=0,this.#i!==null&&Zt(this.#i,()=>{this.#i=null}),this.#e=this.has_pending_snippet(),this.#l=this.#c(()=>(this.#b=!1,tt(()=>this.#a(this.#t)))),this.#h>0?this.#g():this.#e=!1};var i=y;try{B(null),l=!0,r?.(e,o),l=!1}catch(m){Gt(m,this.#n&&this.#n.parent)}finally{B(i)}s&&je(()=>{this.#i=this.#c(()=>{ot.ensure(),this.#b=!0;try{return tt(()=>{s(this.#t,()=>e,()=>o)})}catch(m){return Gt(m,this.#n.parent),null}finally{this.#b=!1}})})}}function vl(t,e,r){for(var s=[],n=e.length,l=0;l<n;l++)Qe(e[l].e,s,!0);Xr(s,()=>{var o=s.length===0&&r!==null;if(o){var i=r,m=i.parentNode;Br(m),m.append(i),t.items.clear(),vt(t,e[0].prev,e[n-1].next)}for(var a=0;a<n;a++){var p=e[a];o||(t.items.delete(p.k),vt(t,p.prev,p.next)),P(p.e,!o)}t.first===e[0]&&(t.first=e[0].prev)})}function bl(t,e,r,s,n,l=null){var o=t,i=new Map,m=null;{var a=t;o=x?O(Ft(a)):a.appendChild(q())}x&&ne();var p=null,v=Cr(()=>{var j=r();return cr(j)?j:j==null?[]:qe(j)}),d,h=!0;function c(){cl(k,d,o,e,s),p!==null&&(d.length===0?(p.fragment?(o.before(p.fragment),p.fragment=null):tr(p.effect),u.first=p.effect):Zt(p.effect,()=>{p=null}))}var u=Ee(()=>{d=g(v);var j=d.length;let f=!1;if(x){var T=xr(o)===he;T!==(j===0)&&(o=ue(),O(o),nt(!1),f=!0)}for(var C=new Set,A=$,z=null,K=Vr(),mt=0;mt<j;mt+=1){x&&w.nodeType===Ot&&w.data===Le&&(o=w,f=!0,nt(!1));var ft=d[mt],te=s(ft,mt),rt=h?null:i.get(te);rt?(ie(rt.v,ft),rt.i=mt,K&&A.skipped_effects.delete(rt.e)):(rt=gl(h?o:null,z,ft,te,mt,n,e,r),h&&(rt.o=!0,z===null?m=rt:z.next=rt,z=rt),i.set(te,rt)),C.add(te)}if(j===0&&l&&!p)if(h)p={fragment:null,effect:tt(()=>l(o))};else{var Pe=document.createDocumentFragment(),De=q();Pe.append(De),p={fragment:Pe,effect:tt(()=>l(De))}}if(x&&j>0&&O(ue()),!h)if(K){for(const[or,ir]of i)C.has(or)||A.skipped_effects.add(ir.e);A.oncommit(c),A.ondiscard(()=>{})}else c();f&&nt(!0),g(v)}),k={effect:u,items:i,first:m};h=!1,x&&(o=w)}function cl(t,e,r,s,n){var l=e.length,o=t.items,i=t.first,m,a=null,p=[],v=[],d,h,c,u;for(u=0;u<l;u+=1){if(d=e[u],h=n(d,u),c=o.get(h),t.first??=c,!c.o){c.o=!0;var k=a?a.next:i;vt(t,a,c),vt(t,c,k),Ge(c,k,r),a=c,p=[],v=[],i=a.next;continue}if((c.e.f&U)!==0&&tr(c.e),c!==i){if(m!==void 0&&m.has(c)){if(p.length<v.length){var j=v[0],f;a=j.prev;var T=p[0],C=p[p.length-1];for(f=0;f<p.length;f+=1)Ge(p[f],j,r);for(f=0;f<v.length;f+=1)m.delete(v[f]);vt(t,T.prev,C.next),vt(t,a,T),vt(t,C,j),i=j,a=C,u-=1,p=[],v=[]}else m.delete(c),Ge(c,i,r),vt(t,c.prev,c.next),vt(t,c,a===null?t.first:a.next),vt(t,a,c),a=c;continue}for(p=[],v=[];i!==null&&i.k!==h;)(i.e.f&U)===0&&(m??=new Set).add(i),v.push(i),i=i.next;if(i===null)continue;c=i}p.push(c),a=c,i=c.next}if(i!==null||m!==void 0){for(var A=m===void 0?[]:qe(m);i!==null;)(i.e.f&U)===0&&A.push(i),i=i.next;var z=A.length;if(z>0){var K=l===0?r:null;vl(t,A,K)}}}function gl(t,e,r,s,n,l,o,i){var m=(o&Ss)!==0,a=(o&As)===0,p=m?a?Mr(r,!1,!1):Lt(r):r,v=(o&zs)===0?n:Lt(n),d={i:v,v:p,k:s,a:null,e:null,o:!1,prev:e,next:null};try{if(t===null){var h=document.createDocumentFragment();h.append(t=q())}return d.e=tt(()=>l(t,p,v,i)),e!==null&&(e.next=d),d}finally{}}function Ge(t,e,r){for(var s=t.next?t.next.e.nodes_start:r,n=e?e.e.nodes_start:r,l=t.e.nodes_start;l!==null&&l!==s;){var o=Q(l);n.before(l),l=o}}function vt(t,e,r){e===null?(t.first=r,t.effect.first=r&&r.e):(e.e.next&&(e.e.next.prev=null),e.next=r,e.e.next=r&&r.e),r===null?t.effect.last=e&&e.e:(r.e.prev&&(r.e.prev.next=null),r.prev=e,r.e.prev=e&&e.e)}function fl(t,e,r,s){const n=_e;if(r.length===0&&t.length===0){s(e.map(n));return}var l=$,o=_,i=ul();function m(){Promise.all(r.map(a=>jl(a))).then(a=>{i();try{s([...e.map(n),...a])}catch(p){(o.f&xt)===0&&Gt(p,o)}l?.deactivate(),we()}).catch(a=>{Gt(a,o)})}t.length>0?Promise.all(t).then(()=>{i();try{return m()}finally{l?.deactivate(),we()}}):m()}function ul(){var t=_,e=y,r=G,s=$;return function(l=!0){gt(t),B(e),Wt(r),l&&s?.activate()}}function we(){gt(null),B(null),Wt(null)}function _e(t){var e=N|F,r=y!==null&&(y.f&N)!==0?y:null;return _!==null&&(_.f|=Rt),{ctx:G,deps:null,effects:null,equals:yr,f:e,fn:t,reactions:null,rv:0,v:R,wv:0,parent:r??_,ac:null}}function jl(t,e){let r=_;r===null&&Hs();var s=r.b,n=void 0,l=Lt(R),o=!y,i=new Map;return Sl(()=>{var m=fr();n=m.promise;try{Promise.resolve(t()).then(m.resolve,m.reject).then(()=>{a===$&&a.committed&&a.deactivate(),we()})}catch(d){m.reject(d),we()}var a=$;if(o){var p=!s.is_pending();s.update_pending_count(1),a.increment(p),i.get(a)?.reject(Kt),i.delete(a),i.set(a,m)}const v=(d,h=void 0)=>{if(a.activate(),h)h!==Kt&&(l.f|=$t,ie(l,h));else{(l.f&$t)!==0&&(l.f^=$t),ie(l,d);for(const[c,u]of i){if(i.delete(c),c===a)break;u.reject(Kt)}}o&&(s.update_pending_count(-1),a.decrement(p))};m.promise.then(v,d=>v(null,d||"unknown"))}),$l(()=>{for(const m of i.values())m.reject(Kt)}),new Promise(m=>{function a(p){function v(){p===n?m(l):a(n)}p.then(v,v)}a(n)})}function Dt(t){const e=_e(t);return es(e),e}function Cr(t){const e=_e(t);return e.equals=wr,e}function Rr(t){var e=t.effects;if(e!==null){t.effects=null;for(var r=0;r<e.length;r+=1)P(e[r])}}function xl(t){for(var e=t.parent;e!==null;){if((e.f&N)===0)return(e.f&xt)===0?e:null;e=e.parent}return null}function Je(t){var e,r=_;gt(xl(t));try{t.f&=~It,Rr(t),e=os(t)}finally{gt(r)}return e}function Ir(t){var e=Je(t);if(t.equals(e)||($?.is_fork||(t.v=e),t.wv=ls()),!Bt)if(J!==null)$e()&&J.set(t,e);else{var r=(t.f&lt)===0?jt:I;M(t,r)}}let Xe=new Set;const Tt=new Map;let Or=!1;function Lt(t,e){var r={f:0,v:t,reactions:null,equals:yr,rv:0,wv:0};return r}function Y(t,e){const r=Lt(t);return es(r),r}function Mr(t,e=!1,r=!0){const s=Lt(t);return e||(s.equals=wr),s}function E(t,e,r=!1){y!==null&&(!ct||(y.f&ur)!==0)&&$r()&&(y.f&(N|ht|He|ur))!==0&&!wt?.includes(t)&&el();let s=r?Jt(e):e;return ie(t,s)}function ie(t,e){if(!t.equals(e)){var r=t.v;Bt?Tt.set(t,e):Tt.set(t,r),t.v=e;var s=ot.ensure();s.capture(t,r),(t.f&N)!==0&&((t.f&F)!==0&&Je(t),M(t,(t.f&lt)!==0?I:jt)),t.wv=ls(),Pr(t,F),_!==null&&(_.f&I)!==0&&(_.f&(ut|kt))===0&&(et===null?Nl([t]):et.push(t)),!s.is_fork&&Xe.size>0&&!Or&&yl()}return e}function yl(){Or=!1;var t=zt;Te(!0);const e=Array.from(Xe);try{for(const r of e)(r.f&I)!==0&&M(r,jt),pe(r)&&de(r)}finally{Te(t)}Xe.clear()}function ae(t){E(t,t.v+1)}function Pr(t,e){var r=t.reactions;if(r!==null)for(var s=r.length,n=0;n<s;n++){var l=r[n],o=l.f,i=(o&F)===0;if(i&&M(l,e),(o&N)!==0){var m=l;J?.delete(m),(o&It)===0&&(o&lt&&(l.f|=It),Pr(m,jt))}else i&&((o&ht)!==0&&yt!==null&&yt.add(l),Pt(l))}}function Jt(t){if(typeof t!="object"||t===null||ge in t)return t;const e=Bs(t);if(e!==Fs&&e!==qs)return t;var r=new Map,s=cr(t),n=Y(0),l=Vt,o=i=>{if(Vt===l)return i();var m=y,a=Vt;B(null),ss(l);var p=i();return B(m),ss(a),p};return s&&r.set("length",Y(t.length)),new Proxy(t,{defineProperty(i,m,a){(!("value"in a)||a.configurable===!1||a.enumerable===!1||a.writable===!1)&&Qs();var p=r.get(m);return p===void 0?p=o(()=>{var v=Y(a.value);return r.set(m,v),v}):E(p,a.value,!0),!0},deleteProperty(i,m){var a=r.get(m);if(a===void 0){if(m in i){const p=o(()=>Y(R));r.set(m,p),ae(n)}}else E(a,R),ae(n);return!0},get(i,m,a){if(m===ge)return t;var p=r.get(m),v=m in i;if(p===void 0&&(!v||Nt(i,m)?.writable)&&(p=o(()=>{var h=Jt(v?i[m]:R),c=Y(h);return c}),r.set(m,p)),p!==void 0){var d=g(p);return d===R?void 0:d}return Reflect.get(i,m,a)},getOwnPropertyDescriptor(i,m){var a=Reflect.getOwnPropertyDescriptor(i,m);if(a&&"value"in a){var p=r.get(m);p&&(a.value=g(p))}else if(a===void 0){var v=r.get(m),d=v?.v;if(v!==void 0&&d!==R)return{enumerable:!0,configurable:!0,value:d,writable:!0}}return a},has(i,m){if(m===ge)return!0;var a=r.get(m),p=a!==void 0&&a.v!==R||Reflect.has(i,m);if(a!==void 0||_!==null&&(!p||Nt(i,m)?.writable)){a===void 0&&(a=o(()=>{var d=p?Jt(i[m]):R,h=Y(d);return h}),r.set(m,a));var v=g(a);if(v===R)return!1}return p},set(i,m,a,p){var v=r.get(m),d=m in i;if(s&&m==="length")for(var h=a;h<v.v;h+=1){var c=r.get(h+"");c!==void 0?E(c,R):h in i&&(c=o(()=>Y(R)),r.set(h+"",c))}if(v===void 0)(!d||Nt(i,m)?.writable)&&(v=o(()=>Y(void 0)),E(v,Jt(a)),r.set(m,v));else{d=v.v!==R;var u=o(()=>Jt(a));E(v,u)}var k=Reflect.getOwnPropertyDescriptor(i,m);if(k?.set&&k.set.call(p,a),!d){if(s&&typeof m=="string"){var j=r.get("length"),f=Number(m);Number.isInteger(f)&&f>=j.v&&E(j,f+1)}ae(n)}return!0},ownKeys(i){g(n);var m=Reflect.ownKeys(i).filter(v=>{var d=r.get(v);return d===void 0||d.v!==R});for(var[a,p]of r)p.v!==R&&!(a in i)&&m.push(a);return m},setPrototypeOf(){tl()}})}var Dr,Lr,Fr,qr;function Ze(){if(Dr===void 0){Dr=window,Lr=/Firefox/.test(navigator.userAgent);var t=Element.prototype,e=Node.prototype,r=Text.prototype;Fr=Nt(e,"firstChild").get,qr=Nt(e,"nextSibling").get,gr(t)&&(t.__click=void 0,t.__className=void 0,t.__attributes=null,t.__style=void 0,t.__e=void 0),gr(r)&&(r.__t=void 0)}}function q(t=""){return document.createTextNode(t)}function Ft(t){return Fr.call(t)}function Q(t){return qr.call(t)}function qt(t,e){if(!x)return Ft(t);var r=Ft(w);return r===null&&(r=w.appendChild(q())),O(r),r}function wl(t,e=!1){if(!x){var r=Ft(t);return r instanceof Comment&&r.data===""?Q(r):r}if(e&&w?.nodeType!==Ke){var s=q();return w?.before(s),O(s),s}return w}function St(t,e=1,r=!1){let s=x?w:t;for(var n;e--;)n=s,s=Q(s);if(!x)return s;if(r&&s?.nodeType!==Ke){var l=q();return s===null?n?.after(l):s.before(l),O(l),l}return O(s),s}function Br(t){t.textContent=""}function Vr(){return!1}function ke(t){var e=y,r=_;B(null),gt(null);try{return t()}finally{B(e),gt(r)}}function _l(t){_===null&&(y===null&&Gs(),Ws()),Bt&&Ks()}function kl(t,e){var r=e.last;r===null?e.last=e.first=t:(r.next=t,t.prev=r,e.last=t)}function bt(t,e,r){var s=_;s!==null&&(s.f&U)!==0&&(t|=U);var n={ctx:G,deps:null,nodes_start:null,nodes_end:null,f:t|F|lt,first:null,fn:e,last:null,next:null,parent:s,b:s&&s.b,prev:null,teardown:null,transitions:null,wv:0,ac:null};if(r)try{de(n),n.f|=le}catch(i){throw P(n),i}else e!==null&&Pt(n);var l=n;if(r&&l.deps===null&&l.teardown===null&&l.nodes_start===null&&l.first===l.last&&(l.f&Rt)===0&&(l=l.first,(t&ht)!==0&&(t&Ct)!==0&&l!==null&&(l.f|=Ct)),l!==null&&(l.parent=s,s!==null&&kl(l,s),y!==null&&(y.f&N)!==0&&(t&kt)===0)){var o=y;(o.effects??=[]).push(l)}return n}function $e(){return y!==null&&!ct}function $l(t){const e=bt(Ve,null,!1);return M(e,I),e.teardown=t,e}function Ur(t){_l();var e=_.f,r=!y&&(e&ut)!==0&&(e&le)===0;if(r){var s=G;(s.e??=[]).push(t)}else return Yr(t)}function Yr(t){return bt(Be|Ys,t,!1)}function El(t){ot.ensure();const e=bt(kt|Rt,t,!0);return()=>{P(e)}}function Tl(t){ot.ensure();const e=bt(kt|Rt,t,!0);return(r={})=>new Promise(s=>{r.outro?Zt(e,()=>{P(e),s(void 0)}):(P(e),s(void 0))})}function Hr(t){return bt(Be,t,!1)}function Sl(t){return bt(He|Rt,t,!0)}function Kr(t,e=0){return bt(Ve|e,t,!0)}function Xt(t,e=[],r=[],s=[]){fl(s,e,r,n=>{bt(Ve,()=>t(...n.map(g)),!0)})}function Ee(t,e=0){var r=bt(ht|e,t,!0);return r}function tt(t){return bt(ut|Rt,t,!0)}function Wr(t){var e=t.teardown;if(e!==null){const r=Bt,s=y;ts(!0),B(null);try{e.call(null)}finally{ts(r),B(s)}}}function Gr(t,e=!1){var r=t.first;for(t.first=t.last=null;r!==null;){const n=r.ac;n!==null&&ke(()=>{n.abort(Kt)});var s=r.next;(r.f&kt)!==0?r.parent=null:P(r,e),r=s}}function zl(t){for(var e=t.first;e!==null;){var r=e.next;(e.f&ut)===0&&P(e),e=r}}function P(t,e=!0){var r=!1;(e||(t.f&Ue)!==0)&&t.nodes_start!==null&&t.nodes_end!==null&&(Al(t.nodes_start,t.nodes_end),r=!0),Gr(t,e&&!r),Se(t,0),M(t,xt);var s=t.transitions;if(s!==null)for(const l of s)l.stop();Wr(t);var n=t.parent;n!==null&&n.first!==null&&Jr(t),t.next=t.prev=t.teardown=t.ctx=t.deps=t.fn=t.nodes_start=t.nodes_end=t.ac=null}function Al(t,e){for(;t!==null;){var r=t===e?null:Q(t);t.remove(),t=r}}function Jr(t){var e=t.parent,r=t.prev,s=t.next;r!==null&&(r.next=s),s!==null&&(s.prev=r),e!==null&&(e.first===t&&(e.first=s),e.last===t&&(e.last=r))}function Zt(t,e,r=!0){var s=[];Qe(t,s,!0),Xr(s,()=>{r&&P(t),e&&e()})}function Xr(t,e){var r=t.length;if(r>0){var s=()=>--r||e();for(var n of t)n.out(s)}else e()}function Qe(t,e,r){if((t.f&U)===0){if(t.f^=U,t.transitions!==null)for(const o of t.transitions)(o.is_global||r)&&e.push(o);for(var s=t.first;s!==null;){var n=s.next,l=(s.f&Ct)!==0||(s.f&ut)!==0&&(t.f&ht)!==0;Qe(s,e,l?r:!1),s=n}}}function tr(t){Zr(t,!0)}function Zr(t,e){if((t.f&U)!==0){t.f^=U,(t.f&I)===0&&(M(t,F),Pt(t));for(var r=t.first;r!==null;){var s=r.next,n=(r.f&Ct)!==0||(r.f&ut)!==0;Zr(r,n?e:!1),r=s}if(t.transitions!==null)for(const l of t.transitions)(l.is_global||e)&&l.in()}}function Qr(t,e){for(var r=t.nodes_start,s=t.nodes_end;r!==null;){var n=r===s?null:Q(r);e.append(r),r=n}}let zt=!1;function Te(t){zt=t}let Bt=!1;function ts(t){Bt=t}let y=null,ct=!1;function B(t){y=t}let _=null;function gt(t){_=t}let wt=null;function es(t){y!==null&&(wt===null?wt=[t]:wt.push(t))}let D=null,H=0,et=null;function Nl(t){et=t}let rs=1,me=0,Vt=me;function ss(t){Vt=t}function ls(){return++rs}function pe(t){var e=t.f;if((e&F)!==0)return!0;if(e&N&&(t.f&=~It),(e&jt)!==0){var r=t.deps;if(r!==null)for(var s=r.length,n=0;n<s;n++){var l=r[n];if(pe(l)&&Ir(l),l.wv>t.wv)return!0}(e&lt)!==0&&J===null&&M(t,I)}return!1}function ns(t,e,r=!0){var s=t.reactions;if(s!==null&&!wt?.includes(t))for(var n=0;n<s.length;n++){var l=s[n];(l.f&N)!==0?ns(l,e,!1):e===l&&(r?M(l,F):(l.f&I)!==0&&M(l,jt),Pt(l))}}function os(t){var e=D,r=H,s=et,n=y,l=wt,o=G,i=ct,m=Vt,a=t.f;D=null,H=0,et=null,y=(a&(ut|kt))===0?t:null,wt=null,Wt(t.ctx),ct=!1,Vt=++me,t.ac!==null&&(ke(()=>{t.ac.abort(Kt)}),t.ac=null);try{t.f|=Ye;var p=t.fn,v=p(),d=t.deps;if(D!==null){var h;if(Se(t,H),d!==null&&H>0)for(d.length=H+D.length,h=0;h<D.length;h++)d[H+h]=D[h];else t.deps=d=D;if(zt&&$e()&&(t.f&lt)!==0)for(h=H;h<d.length;h++)(d[h].reactions??=[]).push(t)}else d!==null&&H<d.length&&(Se(t,H),d.length=H);if($r()&&et!==null&&!ct&&d!==null&&(t.f&(N|jt|F))===0)for(h=0;h<et.length;h++)ns(et[h],t);return n!==null&&n!==t&&(me++,et!==null&&(s===null?s=et:s.push(...et))),(t.f&$t)!==0&&(t.f^=$t),v}catch(c){return Tr(c)}finally{t.f^=Ye,D=e,H=r,et=s,y=n,wt=l,Wt(o),ct=i,Vt=m}}function Cl(t,e){let r=e.reactions;if(r!==null){var s=Ls.call(r,t);if(s!==-1){var n=r.length-1;n===0?r=e.reactions=null:(r[s]=r[n],r.pop())}}r===null&&(e.f&N)!==0&&(D===null||!D.includes(e))&&(M(e,jt),(e.f&lt)!==0&&(e.f^=lt,e.f&=~It),Rr(e),Se(e,0))}function Se(t,e){var r=t.deps;if(r!==null)for(var s=e;s<r.length;s++)Cl(t,r[s])}function de(t){var e=t.f;if((e&xt)===0){M(t,I);var r=_,s=zt;_=t,zt=!0;try{(e&ht)!==0?zl(t):Gr(t),Wr(t);var n=os(t);t.teardown=typeof n=="function"?n:null,t.wv=rs;var l;Fe&&ol&&(t.f&F)!==0&&t.deps}finally{zt=s,_=r}}}function g(t){var e=t.f,r=(e&N)!==0;if(y!==null&&!ct){var s=_!==null&&(_.f&xt)!==0;if(!s&&!wt?.includes(t)){var n=y.deps;if((y.f&Ye)!==0)t.rv<me&&(t.rv=me,D===null&&n!==null&&n[H]===t?H++:D===null?D=[t]:D.includes(t)||D.push(t));else{(y.deps??=[]).push(t);var l=t.reactions;l===null?t.reactions=[y]:l.includes(y)||l.push(y)}}}if(Bt){if(Tt.has(t))return Tt.get(t);if(r){var o=t,i=o.v;return((o.f&I)===0&&o.reactions!==null||as(o))&&(i=Je(o)),Tt.set(o,i),i}}else r&&!J?.has(t)&&(o=t,pe(o)&&Ir(o),zt&&$e()&&(o.f&lt)===0&&is(o));if(J?.has(t))return J.get(t);if((t.f&$t)!==0)throw t.v;return t.v}function is(t){if(t.deps!==null){t.f^=lt;for(const e of t.deps)(e.reactions??=[]).push(t),(e.f&N)!==0&&(e.f&lt)===0&&is(e)}}function as(t){if(t.v===R)return!0;if(t.deps===null)return!1;for(const e of t.deps)if(Tt.has(e)||(e.f&N)!==0&&as(e))return!0;return!1}function er(t){var e=ct;try{return ct=!0,t()}finally{ct=e}}const Rl=-7169;function M(t,e){t.f=t.f&Rl|e}const ms=new Set,rr=new Set;function Il(t){for(var e=0;e<t.length;e++)ms.add(t[e]);for(var r of rr)r(t)}let ps=null;function ze(t){var e=this,r=e.ownerDocument,s=t.type,n=t.composedPath?.()||[],l=n[0]||t.target;ps=t;var o=0,i=ps===t&&t.__root;if(i){var m=n.indexOf(i);if(m!==-1&&(e===document||e===window)){t.__root=e;return}var a=n.indexOf(e);if(a===-1)return;m<=a&&(o=m)}if(l=n[o]||t.target,l!==e){be(t,"currentTarget",{configurable:!0,get(){return l||r}});var p=y,v=_;B(null),gt(null);try{for(var d,h=[];l!==null;){var c=l.assignedSlot||l.parentNode||l.host||null;try{var u=l["__"+s];u!=null&&(!l.disabled||t.target===l)&&u.call(l,t)}catch(k){d?h.push(k):d=k}if(t.cancelBubble||c===e||c===null)break;l=c}if(d){for(let k of h)queueMicrotask(()=>{throw k});throw d}}finally{t.__root=e,delete t.currentTarget,B(p),gt(v)}}}function Ol(t){var e=document.createElement("template");return e.innerHTML=t.replaceAll("<!>","<!---->"),e.content}function Ut(t,e){var r=_;r.nodes_start===null&&(r.nodes_start=t,r.nodes_end=e)}function Yt(t,e){var r=(e&Ds)!==0,s,n=!t.startsWith("<!>");return()=>{if(x)return Ut(w,null),w;s===void 0&&(s=Ol(n?t:"<!>"+t),s=Ft(s));var l=r||Lr?document.importNode(s,!0):s.cloneNode(!0);return Ut(l,l),l}}function ds(t=""){if(!x){var e=q(t+"");return Ut(e,e),e}var r=w;return r.nodeType!==Ke&&(r.before(r=q()),O(r)),Ut(r,r),r}function Ml(){if(x)return Ut(w,null),w;var t=document.createDocumentFragment(),e=document.createComment(""),r=q();return t.append(e,r),Ut(e,r),t}function it(t,e){if(x){var r=_;((r.f&le)===0||r.nodes_end===null)&&(r.nodes_end=w),ne();return}t!==null&&t.before(e)}const Pl=["touchstart","touchmove"];function Dl(t){return Pl.includes(t)}let sr=!0;function Ae(t,e){var r=e==null?"":typeof e=="object"?e+"":e;r!==(t.__t??=t.nodeValue)&&(t.__t=r,t.nodeValue=r+"")}function hs(t,e){return vs(t,e)}function Ll(t,e){Ze(),e.intro=e.intro??!1;const r=e.target,s=x,n=w;try{for(var l=Ft(r);l&&(l.nodeType!==Ot||l.data!==br);)l=Q(l);if(!l)throw Ht;nt(!0),O(l);const o=vs(t,{...e,anchor:l});return nt(!1),o}catch(o){if(o instanceof Error&&o.message.split(`
2
+ `).some(i=>i.startsWith("https://svelte.dev/e/")))throw o;return o!==Ht&&console.warn("Failed to hydrate: ",o),e.recover===!1&&Xs(),Ze(),Br(r),nt(!1),hs(t,e)}finally{nt(s),O(n)}}const Qt=new Map;function vs(t,{target:e,anchor:r,props:s={},events:n,context:l,intro:o=!0}){Ze();var i=new Set,m=v=>{for(var d=0;d<v.length;d++){var h=v[d];if(!i.has(h)){i.add(h);var c=Dl(h);e.addEventListener(h,ze,{passive:c});var u=Qt.get(h);u===void 0?(document.addEventListener(h,ze,{passive:c}),Qt.set(h,1)):Qt.set(h,u+1)}}};m(qe(ms)),rr.add(m);var a=void 0,p=Tl(()=>{var v=r??e.appendChild(q());return dl(v,{pending:()=>{}},d=>{if(l){_r({});var h=G;h.c=l}if(n&&(s.$$events=n),x&&Ut(d,null),sr=o,a=t(d,s)||{},sr=!0,x&&(_.nodes_end=w,w===null||w.nodeType!==Ot||w.data!==Le))throw fe(),Ht;l&&kr()}),()=>{for(var d of i){e.removeEventListener(d,ze);var h=Qt.get(d);--h===0?(document.removeEventListener(d,ze),Qt.delete(d)):Qt.set(d,h)}rr.delete(m),v!==r&&v.parentNode?.removeChild(v)}});return lr.set(a,p),a}let lr=new WeakMap;function Fl(t,e){const r=lr.get(t);return r?(lr.delete(t),r(e)):Promise.resolve()}class ql{anchor;#e=new Map;#t=new Map;#r=new Map;#s=new Set;#a=!0;constructor(e,r=!0){this.anchor=e,this.#a=r}#n=()=>{var e=$;if(this.#e.has(e)){var r=this.#e.get(e),s=this.#t.get(r);if(s)tr(s),this.#s.delete(r);else{var n=this.#r.get(r);n&&(this.#t.set(r,n.effect),this.#r.delete(r),n.fragment.lastChild.remove(),this.anchor.before(n.fragment),s=n.effect)}for(const[l,o]of this.#e){if(this.#e.delete(l),l===e)break;const i=this.#r.get(o);i&&(P(i.effect),this.#r.delete(o))}for(const[l,o]of this.#t){if(l===r||this.#s.has(l))continue;const i=()=>{if(Array.from(this.#e.values()).includes(l)){var a=document.createDocumentFragment();Qr(o,a),a.append(q()),this.#r.set(l,{effect:o,fragment:a})}else P(o);this.#s.delete(l),this.#t.delete(l)};this.#a||!s?(this.#s.add(l),Zt(o,i,!1)):i()}}};#l=e=>{this.#e.delete(e);const r=Array.from(this.#e.values());for(const[s,n]of this.#r)r.includes(s)||(P(n.effect),this.#r.delete(s))};ensure(e,r){var s=$,n=Vr();if(r&&!this.#t.has(e)&&!this.#r.has(e))if(n){var l=document.createDocumentFragment(),o=q();l.append(o),this.#r.set(e,{effect:tt(()=>r(o)),fragment:l})}else this.#t.set(e,tt(()=>r(this.anchor)));if(this.#e.set(s,e),n){for(const[i,m]of this.#t)i===e?s.skipped_effects.delete(m):s.skipped_effects.add(m);for(const[i,m]of this.#r)i===e?s.skipped_effects.delete(m.effect):s.skipped_effects.add(m.effect);s.oncommit(this.#n),s.ondiscard(this.#l)}else x&&(this.anchor=w),this.#n()}}function Ne(t,e,r=!1){x&&ne();var s=new ql(t),n=r?Ct:0;function l(o,i){if(x){const a=xr(t)===he;if(o===a){var m=ue();O(m),s.anchor=m,nt(!1),s.ensure(o,i),nt(!0);return}}s.ensure(o,i)}Ee(()=>{var o=!1;e((i,m=!0)=>{o=!0,l(m,i)}),o||l(!1,null)},n)}function Ce(t,e,r,s,n){x&&ne();var l=e.$$slots?.[r],o=!1;l===!0&&(l=e[r==="default"?"children":r],o=!0),l===void 0?n!==null&&n(t):l(t,o?()=>s:s)}function Bl(t,e){let r=null,s=x;var n;if(x){r=w;for(var l=Ft(document.head);l!==null&&(l.nodeType!==Ot||l.data!==t);)l=Q(l);if(l===null)nt(!1);else{var o=Q(l);l.remove(),O(o)}}x||(n=document.head.appendChild(q()));try{Ee(()=>e(n),Ue)}finally{s&&(nt(!0),O(r))}}function Vl(t,e){Hr(()=>{var r=t.getRootNode(),s=r.host?r:r.head??r.ownerDocument.head;if(!s.querySelector("#"+e.hash)){const n=document.createElement("style");n.id=e.hash,n.textContent=e.code,s.appendChild(n)}})}function Ul(t,e,r){var s=t==null?"":""+t;return s=s?s+" "+e:e,s===""?null:s}function Yl(t,e){return t==null?null:String(t)}function Re(t,e,r,s,n,l){var o=t.__className;if(x||o!==r||o===void 0){var i=Ul(r,s);(!x||i!==t.getAttribute("class"))&&(i==null?t.removeAttribute("class"):t.className=i),t.__className=r}return l}function bs(t,e,r,s){var n=t.__style;if(x||n!==e){var l=Yl(e);(!x||l!==t.getAttribute("style"))&&(l==null?t.removeAttribute("style"):t.style.cssText=l),t.__style=e}return s}const Hl=()=>performance.now(),_t={tick:t=>requestAnimationFrame(t),now:()=>Hl(),tasks:new Set};function cs(){const t=_t.now();_t.tasks.forEach(e=>{e.c(t)||(_t.tasks.delete(e),e.f())}),_t.tasks.size!==0&&_t.tick(cs)}function Kl(t){let e;return _t.tasks.size===0&&_t.tick(cs),{promise:new Promise(r=>{_t.tasks.add(e={c:t,f:r})}),abort(){_t.tasks.delete(e)}}}function Ie(t,e){ke(()=>{t.dispatchEvent(new CustomEvent(e))})}function Wl(t){if(t==="float")return"cssFloat";if(t==="offset")return"cssOffset";if(t.startsWith("--"))return t;const e=t.split("-");return e.length===1?e[0]:e[0]+e.slice(1).map(r=>r[0].toUpperCase()+r.slice(1)).join("")}function gs(t){const e={},r=t.split(";");for(const s of r){const[n,l]=s.split(":");if(!n||l===void 0)break;const o=Wl(n.trim());e[o]=l.trim()}return e}const Gl=t=>t;function fs(t,e,r,s){var n=(t&Os)!==0,l=(t&Ms)!==0,o=n&&l,i=(t&Ps)!==0,m=o?"both":n?"in":"out",a,p=e.inert,v=e.style.overflow,d,h;function c(){return ke(()=>a??=r()(e,s?.()??{},{direction:m}))}var u={is_global:i,in(){if(e.inert=p,!n){h?.abort(),h?.reset?.();return}l||d?.abort(),Ie(e,"introstart"),d=nr(e,c(),h,1,()=>{Ie(e,"introend"),d?.abort(),d=a=void 0,e.style.overflow=v})},out(T){if(!l){T?.(),a=void 0;return}e.inert=!0,Ie(e,"outrostart"),h=nr(e,c(),d,0,()=>{Ie(e,"outroend"),T?.()})},stop:()=>{d?.abort(),h?.abort()}},k=_;if((k.transitions??=[]).push(u),n&&sr){var j=i;if(!j){for(var f=k.parent;f&&(f.f&Ct)!==0;)for(;(f=f.parent)&&(f.f&ht)===0;);j=!f||(f.f&le)!==0}j&&Hr(()=>{er(()=>u.in())})}}function nr(t,e,r,s,n){var l=s===1;if(Vs(e)){var o,i=!1;return je(()=>{if(!i){var k=e({direction:l?"in":"out"});o=nr(t,k,r,s,n)}}),{abort:()=>{i=!0,o?.abort()},deactivate:()=>o.deactivate(),reset:()=>o.reset(),t:()=>o.t()}}if(r?.deactivate(),!e?.duration)return n(),{abort:se,deactivate:se,reset:se,t:()=>s};const{delay:m=0,css:a,tick:p,easing:v=Gl}=e;var d=[];if(l&&r===void 0&&(p&&p(0,1),a)){var h=gs(a(0,1));d.push(h,h)}var c=()=>1-s,u=t.animate(d,{duration:m,fill:"forwards"});return u.onfinish=()=>{u.cancel();var k=r?.t()??1-s;r?.abort();var j=s-k,f=e.duration*Math.abs(j),T=[];if(f>0){var C=!1;if(a)for(var A=Math.ceil(f/16.666666666666668),z=0;z<=A;z+=1){var K=k+j*v(z/A),mt=gs(a(K,1-K));T.push(mt),C||=mt.overflow==="hidden"}C&&(t.style.overflow="hidden"),c=()=>{var ft=u.currentTime;return k+j*v(ft/f)},p&&Kl(()=>{if(u.playState!=="running")return!1;var ft=c();return p(ft,1-ft),!0})}u=t.animate(T,{duration:f,fill:"forwards"}),u.onfinish=()=>{c=()=>s,p?.(s,1-s),n()}},{abort:()=>{u&&(u.cancel(),u.effect=null,u.onfinish=se)},deactivate:()=>{n=se},reset:()=>{s===0&&p?.(1,0)},t:()=>c()}}let Oe=!1;function Jl(t){var e=Oe;try{return Oe=!1,[t(),Oe]}finally{Oe=e}}function at(t,e,r,s){var n=(r&Rs)!==0,l=(r&Is)!==0,o=s,i=!0,m=()=>(i&&(i=!1,o=l?er(s):s),o),a;if(n){var p=ge in t||jr in t;a=Nt(t,e)?.set??(p&&e in t?f=>t[e]=f:void 0)}var v,d=!1;n?[v,d]=Jl(()=>t[e]):v=t[e],v===void 0&&s!==void 0&&(v=m(),a&&(Zs(),a(v)));var h;if(h=()=>{var f=t[e];return f===void 0?m():(i=!0,f)},(r&Cs)===0)return h;if(a){var c=t.$$legacy;return(function(f,T){return arguments.length>0?((!T||c||d)&&a(T?h():f),f):h()})}var u=!1,k=((r&Ns)!==0?_e:Cr)(()=>(u=!1,h()));n&&g(k);var j=_;return(function(f,T){if(arguments.length>0){const C=T?g(k):n?Jt(f):f;return E(k,C),u=!0,o!==void 0&&(o=C),f}return Bt&&u||(j.f&xt)!==0?k.v:g(k)})}function Xl(t){return new Zl(t)}class Zl{#e;#t;constructor(e){var r=new Map,s=(l,o)=>{var i=Mr(o,!1,!1);return r.set(l,i),i};const n=new Proxy({...e.props||{},$$events:{}},{get(l,o){return g(r.get(o)??s(o,Reflect.get(l,o)))},has(l,o){return o===jr?!0:(g(r.get(o)??s(o,Reflect.get(l,o))),Reflect.has(l,o))},set(l,o,i){return E(r.get(o)??s(o,i),i),Reflect.set(l,o,i)}});this.#t=(e.hydrate?Ll:hs)(e.component,{target:e.target,anchor:e.anchor,props:n,context:e.context,intro:e.intro??!1,recover:e.recover}),(!e?.props?.$$host||e.sync===!1)&&Z(),this.#e=n.$$events;for(const l of Object.keys(this.#t))l==="$set"||l==="$destroy"||l==="$on"||be(this,l,{get(){return this.#t[l]},set(o){this.#t[l]=o},enumerable:!0});this.#t.$set=l=>{Object.assign(n,l)},this.#t.$destroy=()=>{Fl(this.#t)}}$set(e){this.#t.$set(e)}$on(e,r){this.#e[e]=this.#e[e]||[];const s=(...n)=>r.call(this,...n);return this.#e[e].push(s),()=>{this.#e[e]=this.#e[e].filter(n=>n!==s)}}$destroy(){this.#t.$destroy()}}let us;typeof HTMLElement=="function"&&(us=class extends HTMLElement{$$ctor;$$s;$$c;$$cn=!1;$$d={};$$r=!1;$$p_d={};$$l={};$$l_u=new Map;$$me;constructor(t,e,r){super(),this.$$ctor=t,this.$$s=e,r&&this.attachShadow({mode:"open"})}addEventListener(t,e,r){if(this.$$l[t]=this.$$l[t]||[],this.$$l[t].push(e),this.$$c){const s=this.$$c.$on(t,e);this.$$l_u.set(e,s)}super.addEventListener(t,e,r)}removeEventListener(t,e,r){if(super.removeEventListener(t,e,r),this.$$c){const s=this.$$l_u.get(e);s&&(s(),this.$$l_u.delete(e))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let t=function(s){return n=>{const l=document.createElement("slot");s!=="default"&&(l.name=s),it(n,l)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const e={},r=Ql(this);for(const s of this.$$s)s in r&&(s==="default"&&!this.$$d.children?(this.$$d.children=t(s),e.default=!0):e[s]=t(s));for(const s of this.attributes){const n=this.$$g_p(s.name);n in this.$$d||(this.$$d[n]=Me(n,s.value,this.$$p_d,"toProp"))}for(const s in this.$$p_d)!(s in this.$$d)&&this[s]!==void 0&&(this.$$d[s]=this[s],delete this[s]);this.$$c=Xl({component:this.$$ctor,target:this.shadowRoot||this,props:{...this.$$d,$$slots:e,$$host:this}}),this.$$me=El(()=>{Kr(()=>{this.$$r=!0;for(const s of ve(this.$$c)){if(!this.$$p_d[s]?.reflect)continue;this.$$d[s]=this.$$c[s];const n=Me(s,this.$$d[s],this.$$p_d,"toAttribute");n==null?this.removeAttribute(this.$$p_d[s].attribute||s):this.setAttribute(this.$$p_d[s].attribute||s,n)}this.$$r=!1})});for(const s in this.$$l)for(const n of this.$$l[s]){const l=this.$$c.$on(s,n);this.$$l_u.set(n,l)}this.$$l={}}}attributeChangedCallback(t,e,r){this.$$r||(t=this.$$g_p(t),this.$$d[t]=Me(t,r,this.$$p_d,"toProp"),this.$$c?.$set({[t]:this.$$d[t]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$me(),this.$$c=void 0)})}$$g_p(t){return ve(this.$$p_d).find(e=>this.$$p_d[e].attribute===t||!this.$$p_d[e].attribute&&e.toLowerCase()===t)||t}});function Me(t,e,r,s){const n=r[t]?.type;if(e=n==="Boolean"&&typeof e!="boolean"?e!=null:e,!s||!r[t])return e;if(s==="toAttribute")switch(n){case"Object":case"Array":return e==null?null:JSON.stringify(e);case"Boolean":return e?"":null;case"Number":return e??null;default:return e}else switch(n){case"Object":case"Array":return e&&JSON.parse(e);case"Boolean":return e;case"Number":return e!=null?+e:e;default:return e}}function Ql(t){const e={};return t.childNodes.forEach(r=>{e[r.slot||"default"]=!0}),e}function tn(t,e,r,s,n,l){let o=class extends us{constructor(){super(t,r,n),this.$$p_d=e}static get observedAttributes(){return ve(e).map(i=>(e[i].attribute||i).toLowerCase())}};return ve(e).forEach(i=>{be(o.prototype,i,{get(){return this.$$c&&i in this.$$c?this.$$c[i]:this.$$d[i]},set(m){m=Me(i,m,e),this.$$d[i]=m;var a=this.$$c;if(a){var p=Nt(a,i)?.get;p?a[i]=m:a.$set({[i]:m})}}})}),s.forEach(i=>{be(o.prototype,i,{get(){return this.$$c?.[i]}})}),t.element=o,o}const en=t=>t;function js(t,{delay:e=0,duration:r=400,easing:s=en}={}){const n=+getComputedStyle(t).opacity;return{delay:e,duration:r,easing:s,css:l=>`opacity: ${l*n}`}}function xs(t){return--t*t*t*t*t+1}var rn=Yt('<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@latest/font/bootstrap-icons.css" class="svelte-j9shl9"/>'),sn=Yt('<i class="bi bi-bell svelte-j9shl9"></i>'),ln=Yt("<i></i>"),nn=Yt('<button type="button"><!> </button>'),on=Yt('<div class="mt-2 pt-2 border-top d-flex gap-2 justify-content-end svelte-j9shl9"></div>'),an=Yt('<div class="toast-progress-container svelte-j9shl9"><div></div></div>'),mn=Yt('<div part="toast" role="alert" aria-live="assertive" aria-atomic="true" data-bs-autohide="false" data-bs-delay="100" id="toast"><div class="toast-header svelte-j9shl9"><!> <strong class="me-auto svelte-j9shl9"><!> </strong> <small class="svelte-j9shl9"><!></small> <button type="button" class="btn-close svelte-j9shl9" data-bs-dismiss="toast" aria-label="Close"></button></div> <div class="toast-body svelte-j9shl9"><!> <!></div> <!></div>');const pn={hash:"svelte-j9shl9",code:`@charset "UTF-8";
3
3
  @import url("https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap");
4
4
  @import url("https://cdn.jsdelivr.net/npm/bootstrap-icons@latest/font/bootstrap-icons.css");
5
5
  /*!
@@ -7,7 +7,7 @@
7
7
  * Copyright 2011-2021 The Bootstrap Authors
8
8
  * Copyright 2011-2021 Twitter, Inc.
9
9
  * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
10
- */:host {--bs-blue: #0d6efd;--bs-indigo: #6610f2;--bs-purple: #6f42c1;--bs-pink: #d63384;--bs-red: #dc3545;--bs-orange: #fd7e14;--bs-yellow: #ffc107;--bs-green: #198754;--bs-teal: #20c997;--bs-cyan: #0dcaf0;--bs-black: #000;--bs-white: #fff;--bs-gray: #6c757d;--bs-gray-dark: #343a40;--bs-gray-100: #f8f9fa;--bs-gray-200: #e9ecef;--bs-gray-300: #dee2e6;--bs-gray-400: #ced4da;--bs-gray-500: #adb5bd;--bs-gray-600: #6c757d;--bs-gray-700: #495057;--bs-gray-800: #343a40;--bs-gray-900: #212529;--bs-primary: #0d6efd;--bs-secondary: #6c757d;--bs-success: #198754;--bs-info: #0dcaf0;--bs-warning: #ffc107;--bs-danger: #dc3545;--bs-light: #f8f9fa;--bs-dark: #212529;--bs-primary-rgb: 13, 110, 253;--bs-secondary-rgb: 108, 117, 125;--bs-success-rgb: 25, 135, 84;--bs-info-rgb: 13, 202, 240;--bs-warning-rgb: 255, 193, 7;--bs-danger-rgb: 220, 53, 69;--bs-light-rgb: 248, 249, 250;--bs-dark-rgb: 33, 37, 41;--bs-primary-text-emphasis: rgb(5.2, 44, 101.2);--bs-secondary-text-emphasis: rgb(43.2, 46.8, 50);--bs-success-text-emphasis: rgb(10, 54, 33.6);--bs-info-text-emphasis: rgb(5.2, 80.8, 96);--bs-warning-text-emphasis: rgb(102, 77.2, 2.8);--bs-danger-text-emphasis: rgb(88, 21.2, 27.6);--bs-light-text-emphasis: #495057;--bs-dark-text-emphasis: #495057;--bs-primary-bg-subtle: rgb(206.6, 226, 254.6);--bs-secondary-bg-subtle: rgb(225.6, 227.4, 229);--bs-success-bg-subtle: rgb(209, 231, 220.8);--bs-info-bg-subtle: rgb(206.6, 244.4, 252);--bs-warning-bg-subtle: rgb(255, 242.6, 205.4);--bs-danger-bg-subtle: rgb(248, 214.6, 217.8);--bs-light-bg-subtle: rgb(251.5, 252, 252.5);--bs-dark-bg-subtle: #ced4da;--bs-primary-border-subtle: rgb(158.2, 197, 254.2);--bs-secondary-border-subtle: rgb(196.2, 199.8, 203);--bs-success-border-subtle: rgb(163, 207, 186.6);--bs-info-border-subtle: rgb(158.2, 233.8, 249);--bs-warning-border-subtle: rgb(255, 230.2, 155.8);--bs-danger-border-subtle: rgb(241, 174.2, 180.6);--bs-light-border-subtle: #e9ecef;--bs-dark-border-subtle: #adb5bd;--bs-white-rgb: 255, 255, 255;--bs-black-rgb: 0, 0, 0;--bs-font-sans-serif: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", "Liberation Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";--bs-font-monospace: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;--bs-gradient: linear-gradient(180deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0));--bs-body-font-family: var(--bs-font-sans-serif);--bs-body-font-size: 1rem;--bs-body-font-weight: 400;--bs-body-line-height: 1.5;--bs-body-color: #212529;--bs-body-color-rgb: 33, 37, 41;--bs-body-bg: #fff;--bs-body-bg-rgb: 255, 255, 255;--bs-emphasis-color: #000;--bs-emphasis-color-rgb: 0, 0, 0;--bs-secondary-color: rgba(33, 37, 41, 0.75);--bs-secondary-color-rgb: 33, 37, 41;--bs-secondary-bg: #e9ecef;--bs-secondary-bg-rgb: 233, 236, 239;--bs-tertiary-color: rgba(33, 37, 41, 0.5);--bs-tertiary-color-rgb: 33, 37, 41;--bs-tertiary-bg: #f8f9fa;--bs-tertiary-bg-rgb: 248, 249, 250;--bs-heading-color: inherit;--bs-link-color: #0d6efd;--bs-link-color-rgb: 13, 110, 253;--bs-link-decoration: underline;--bs-link-hover-color: rgb(10.4, 88, 202.4);--bs-link-hover-color-rgb: 10, 88, 202;--bs-code-color: #d63384;--bs-highlight-color: #212529;--bs-highlight-bg: rgb(255, 242.6, 205.4);--bs-border-width: 1px;--bs-border-style: solid;--bs-border-color: #dee2e6;--bs-border-color-translucent: rgba(0, 0, 0, 0.175);--bs-border-radius: 0.375rem;--bs-border-radius-sm: 0.25rem;--bs-border-radius-lg: 0.5rem;--bs-border-radius-xl: 1rem;--bs-border-radius-xxl: 2rem;--bs-border-radius-2xl: var(--bs-border-radius-xxl);--bs-border-radius-pill: 50rem;--bs-box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);--bs-box-shadow-sm: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);--bs-box-shadow-lg: 0 1rem 3rem rgba(0, 0, 0, 0.175);--bs-box-shadow-inset: inset 0 1px 2px rgba(0, 0, 0, 0.075);--bs-focus-ring-width: 0.25rem;--bs-focus-ring-opacity: 0.25;--bs-focus-ring-color: rgba(13, 110, 253, 0.25);--bs-form-valid-color: #198754;--bs-form-valid-border-color: #198754;--bs-form-invalid-color: #dc3545;--bs-form-invalid-border-color: #dc3545;}.svelte-j9shl9,
10
+ */.svelte-j9shl9,
11
11
  .svelte-j9shl9::before,
12
12
  .svelte-j9shl9::after {box-sizing:border-box;}
13
13
  @media (prefers-reduced-motion: no-preference) {:host {scroll-behavior:smooth;}
@@ -75,5 +75,5 @@ button.svelte-j9shl9 {margin:0;font-family:inherit;font-size:inherit;line-height
75
75
  @media (min-width: 1200px) {.fs-1.svelte-j9shl9 {font-size:2.5rem !important;}.fs-2.svelte-j9shl9 {font-size:2rem !important;}.fs-3.svelte-j9shl9 {font-size:1.75rem !important;}.fs-4.svelte-j9shl9 {font-size:1.5rem !important;}
76
76
  }
77
77
  @media print {.d-print-inline.svelte-j9shl9 {display:inline !important;}.d-print-inline-block.svelte-j9shl9 {display:inline-block !important;}.d-print-block.svelte-j9shl9 {display:block !important;}.d-print-grid.svelte-j9shl9 {display:grid !important;}.d-print-inline-grid.svelte-j9shl9 {display:inline-grid !important;}.d-print-table.svelte-j9shl9 {display:table !important;}.d-print-table-row.svelte-j9shl9 {display:table-row !important;}.d-print-table-cell.svelte-j9shl9 {display:table-cell !important;}.d-print-flex.svelte-j9shl9 {display:flex !important;}.d-print-inline-flex.svelte-j9shl9 {display:inline-flex !important;}.d-print-none.svelte-j9shl9 {display:none !important;}
78
- }:host {font-family:"Roboto", sans-serif;}#toast.svelte-j9shl9 {position:fixed;z-index:100;}.me-2.svelte-j9shl9 {margin-right:0.5rem !important;}.rounded.svelte-j9shl9 {border-radius:0.25rem !important;}.me-auto.svelte-j9shl9 {margin-right:auto !important;margin-left:5px;}.toast-progress-container.svelte-j9shl9 {position:absolute;bottom:0;left:0;right:0;height:4px;background-color:rgba(0, 0, 0, 0.1);border-radius:0 0 0.375rem 0.375rem;overflow:hidden;}.toast-progress-bar.svelte-j9shl9 {height:100%;border-radius:0 0 0.375rem 0.375rem;opacity:0.9;box-shadow:0 0 8px rgba(0, 0, 0, 0.2);}.bg-primary.svelte-j9shl9 {background-color:rgba(var(--bs-primary-rgb), 0.7) !important;}.bg-secondary.svelte-j9shl9 {background-color:rgba(var(--bs-secondary-rgb), 0.7) !important;}.bg-success.svelte-j9shl9 {background-color:rgba(var(--bs-success-rgb), 0.7) !important;}.bg-danger.svelte-j9shl9 {background-color:rgba(var(--bs-danger-rgb), 0.7) !important;}.bg-warning.svelte-j9shl9 {background-color:rgba(var(--bs-warning-rgb), 0.7) !important;}.bg-info.svelte-j9shl9 {background-color:rgba(var(--bs-info-rgb), 0.7) !important;}.bg-light.svelte-j9shl9 {background-color:rgba(var(--bs-light-rgb), 0.7) !important;}.bg-dark.svelte-j9shl9 {background-color:rgba(var(--bs-dark-rgb), 0.7) !important;}`};function ys(t,e){_r(e,!0),Ul(t,pn);function r(v,S){e.$$host.dispatchEvent(new CustomEvent(v,{detail:S}))}let s=at(e,"id",7,""),n=at(e,"show",7,"no"),l=at(e,"content",7,""),o=at(e,"small",7),i=at(e,"title",7,""),m=at(e,"img",7,""),a=at(e,"progress",7,""),p=at(e,"timeout",7),h=at(e,"level",7,"info"),d=at(e,"position",7,"bottom-right"),b=at(e,"buttons",23,()=>[]),g=Y(!1),u=null,k=null,j=Y(0),f=Y(null),T=Y(null),C=Y(0),N=null;const z=Dt(()=>{if(a()===""||a()===void 0||a()===null)return null;const v=Number(a());return Number.isNaN(v)?null:Math.max(0,Math.min(100,v))}),K=Dt(()=>{if(c(z)!==null)return c(z);if(c(C),!p()||Number(p())<=0||!c(T))return 0;const S=Date.now()-c(T),pt=Number(p()),dt=S/pt*100;return Math.min(dt,100)}),mt=Dt(()=>{const v=c(K);return v<50?0:Math.min((v-50)*.2,5)});function ft(v){if(v<=0)return"now";const S=Math.floor(v/86400),pt=Math.floor(v%86400/3600),dt=Math.floor(v%3600/60),st=v%60,U=[];return v>=86400?(U.push(`${S} ${S===1?"day":"days"}`),U.push(`${pt} ${pt===1?"hour":"hours"}`),U.push(`${dt} ${dt===1?"minute":"minutes"}`),U.push(`${st} ${st===1?"second":"seconds"}`)):v>=3600?(U.push(`${pt} ${pt===1?"hour":"hours"}`),U.push(`${dt} ${dt===1?"minute":"minutes"}`),U.push(`${st} ${st===1?"second":"seconds"}`)):v>=60?(U.push(`${dt} ${dt===1?"minute":"minutes"}`),U.push(`${st} ${st===1?"second":"seconds"}`)):U.push(`${st} ${st===1?"second":"seconds"}`),U.join(" ")+" remaining"}const te=Dt(()=>{if(c(j),!o()&&c(z)!==null)return`${c(K)}%`;if(!o()&&p()&&Number(p())>0){const v=Math.floor(Number(p())/1e3),S=Math.max(0,v-c(j));return ft(S)}return c(j)===0?"now":c(j)===1?"1 second ago":`${c(j)} seconds ago`}),rt=Dt(()=>({primary:"bg-primary",secondary:"bg-secondary",success:"bg-success",danger:"bg-danger",warning:"bg-warning",info:"bg-info",light:"bg-light",dark:"bg-dark"})[h()]||"bg-info"),Pe=Dt(()=>{const v={"top-left":"position-fixed top-0 start-0 m-3","top-center":"position-fixed top-0 start-50 translate-middle-x m-3","top-right":"position-fixed top-0 end-0 m-3","bottom-left":"position-fixed bottom-0 start-0 m-3","bottom-center":"position-fixed bottom-0 start-50 translate-middle-x m-3","bottom-right":"position-fixed bottom-0 end-0 m-3"};return v[d()]||v["top-right"]});function De(){if(c(f)){const v=Date.now();E(j,Math.floor((v-c(f))/1e3),!0)}}function or(){!o()&&c(z)===null&&(E(f,Date.now(),!0),E(j,0),k=setInterval(De,1e3))}function ir(){k&&(clearInterval(k),k=null,E(j,0),E(f,null))}function dn(){c(z)===null&&p()&&Number(p())>0&&(N&&clearInterval(N),E(T,Date.now(),!0),E(C,0),N=setInterval(()=>{c(T)&&E(C,Date.now(),!0)},100))}function bn(){N&&(clearInterval(N),N=null),E(T,null),E(C,0)}function ar(){u&&(clearTimeout(u),u=null),ir(),bn()}function ws(){ar(),n("no"),r("changeVisibility",{id:s(),show:!1})}function _s(){E(g,!1),setTimeout(()=>{n("no"),ar(),r("changeVisibility",{id:s(),show:!1,disappear:!0})},1e3)}function hn(v){r("action",{id:s(),action:v.action}),ws()}const mr=Dt(()=>{let v=b();if(typeof v=="string")try{v=JSON.parse(v)}catch{v=[]}return Array.isArray(v)?v.map(S=>({...S.type==="confirm"?{text:"Confirm",themeColor:"success",icon:"bi-check-lg"}:{text:"Cancel",themeColor:"secondary",icon:"bi-x-lg"},...S})):[]});Vr(()=>{n()==="yes"?(E(g,!0),or(),dn(),u&&clearTimeout(u),c(z)===null&&p()&&Number(p())>0&&(u=setTimeout(()=>{_s()},Number(p())))):(E(g,!1),ar())}),Vr(()=>{n()==="yes"&&c(z)!==null&&c(K)>=100&&_s()});var vn={get id(){return s()},set id(v=""){s(v),Z()},get show(){return n()},set show(v="no"){n(v),Z()},get content(){return l()},set content(v=""){l(v),Z()},get small(){return o()},set small(v){o(v),Z()},get title(){return i()},set title(v=""){i(v),Z()},get img(){return m()},set img(v=""){m(v),Z()},get progress(){return a()},set progress(v=""){a(v),Z()},get timeout(){return p()},set timeout(v){p(v),Z()},get level(){return h()},set level(v="info"){h(v),Z()},get position(){return d()},set position(v="bottom-right"){d(v),Z()},get buttons(){return b()},set buttons(v=[]){b(v),Z()}},ks=Ol();Bl("j9shl9",v=>{var S=rn();it(v,S)});var gn=wl(ks);{var cn=v=>{var S=mn(),pt=qt(S),dt=qt(pt);Ce(dt,e,"header_icon",{},W=>{var L=sn();it(W,L)});var st=St(dt,2),U=qt(st);Ce(U,e,"header_strong",{},null);var fn=St(U,1,!0);Et(st);var pr=St(st,2),un=qt(pr);Ce(un,e,"header_small",{},W=>{var L=ds();Xt(()=>Ne(L,o()||(c(z)!==null?`${c(K)}%`:o()!==""?c(te):o()))),it(W,L)}),Et(pr);var jn=St(pr,2);jn.__click=ws,Et(pt);var dr=St(pt,2),$s=qt(dr);Ce($s,e,"body",{},W=>{var L=ds();Xt(()=>Ne(L,l())),it(W,L)});var xn=St($s,2);{var yn=W=>{var L=on();vl(L,21,()=>c(mr),ee=>ee.action,(ee,Nt)=>{var re=nn();re.__click=()=>hn(c(Nt));var Es=qt(re);{var kn=br=>{var Ts=ln();Xt(()=>Re(Ts,1,`bi ${c(Nt).icon??""} me-1`,"svelte-j9shl9")),it(br,Ts)};Ae(Es,br=>{c(Nt).icon&&br(kn)})}var $n=St(Es);Et(re),Xt(()=>{Re(re,1,`btn btn-${c(Nt).themeColor??""} btn-sm`,"svelte-j9shl9"),vs(re,c(Nt).color?`background-color: ${c(Nt).color}; border-color: ${c(Nt).color};`:""),Ne($n,` ${c(Nt).text??""}`)}),it(ee,re)}),Et(L),it(W,L)};Ae(xn,W=>{c(mr)&&c(mr).length>0&&W(yn)})}Et(dr);var wn=St(dr,2);{var _n=W=>{var L=an(),ee=qt(L);Et(L),Xt(()=>{Re(ee,1,`toast-progress-bar ${c(rt)??""}`,"svelte-j9shl9"),vs(ee,`width: ${c(K)??""}%; filter: blur(${c(mt)??""}px); transition: width 1s linear, filter 1s ease;`)}),it(W,L)};Ae(wn,W=>{(c(z)!==null||p()&&Number(p())>0)&&W(_n)})}Et(S),Xt(()=>{Re(S,1,`toast fade show ${c(Pe)??""}`,"svelte-j9shl9"),Ne(fn,i())}),fs(1,S,()=>js,()=>({duration:2e3,easing:xs})),fs(2,S,()=>js,()=>({duration:2e3,easing:xs})),it(v,S)};Ae(gn,v=>{n()==="yes"&&v(cn)})}return it(t,ks),kr(vn)}Il(["click"]),customElements.define("hb-toast",tn(ys,{id:{},show:{},content:{},small:{},title:{},img:{},progress:{},timeout:{},level:{},position:{},buttons:{}},["header_icon","header_strong","header_small","body"],[],!0)),hr.Component=ys,Object.defineProperty(hr,Symbol.toStringTag,{value:"Module"})})(this.toast=this.toast||{});
78
+ }:host {font-family:"Roboto", sans-serif;}#toast.svelte-j9shl9 {position:fixed;z-index:100;}.me-2.svelte-j9shl9 {margin-right:0.5rem !important;}.rounded.svelte-j9shl9 {border-radius:0.25rem !important;}.me-auto.svelte-j9shl9 {margin-right:auto !important;margin-left:5px;}.toast-progress-container.svelte-j9shl9 {position:absolute;bottom:0;left:0;right:0;height:4px;background-color:rgba(0, 0, 0, 0.1);border-radius:0 0 0.375rem 0.375rem;overflow:hidden;}.toast-progress-bar.svelte-j9shl9 {height:100%;border-radius:0 0 0.375rem 0.375rem;opacity:0.9;box-shadow:0 0 8px rgba(0, 0, 0, 0.2);}.bg-primary.svelte-j9shl9 {background-color:rgba(var(--bs-primary-rgb), 0.7) !important;}.bg-secondary.svelte-j9shl9 {background-color:rgba(var(--bs-secondary-rgb), 0.7) !important;}.bg-success.svelte-j9shl9 {background-color:rgba(var(--bs-success-rgb), 0.7) !important;}.bg-danger.svelte-j9shl9 {background-color:rgba(var(--bs-danger-rgb), 0.7) !important;}.bg-warning.svelte-j9shl9 {background-color:rgba(var(--bs-warning-rgb), 0.7) !important;}.bg-info.svelte-j9shl9 {background-color:rgba(var(--bs-info-rgb), 0.7) !important;}.bg-light.svelte-j9shl9 {background-color:rgba(var(--bs-light-rgb), 0.7) !important;}.bg-dark.svelte-j9shl9 {background-color:rgba(var(--bs-dark-rgb), 0.7) !important;}`};function ys(t,e){_r(e,!0),Vl(t,pn);function r(b,S){e.$$host.dispatchEvent(new CustomEvent(b,{detail:S}))}let s=at(e,"id",7,""),n=at(e,"show",7,"no"),l=at(e,"content",7,""),o=at(e,"small",7),i=at(e,"title",7,""),m=at(e,"img",7,""),a=at(e,"progress",7,""),p=at(e,"timeout",7),v=at(e,"level",7,"info"),d=at(e,"position",7,"bottom-right"),h=at(e,"buttons",23,()=>[]),c=Y(!1),u=null,k=null,j=Y(0),f=Y(null),T=Y(null),C=Y(0),A=null;const z=Dt(()=>{if(a()===""||a()===void 0||a()===null)return null;const b=Number(a());return Number.isNaN(b)?null:Math.max(0,Math.min(100,b))}),K=Dt(()=>{if(g(z)!==null)return g(z);if(g(C),!p()||Number(p())<=0||!g(T))return 0;const S=Date.now()-g(T),pt=Number(p()),dt=S/pt*100;return Math.min(dt,100)}),mt=Dt(()=>{const b=g(K);return b<50?0:Math.min((b-50)*.2,5)});function ft(b){if(b<=0)return"now";const S=Math.floor(b/86400),pt=Math.floor(b%86400/3600),dt=Math.floor(b%3600/60),st=b%60,V=[];return b>=86400?(V.push(`${S} ${S===1?"day":"days"}`),V.push(`${pt} ${pt===1?"hour":"hours"}`),V.push(`${dt} ${dt===1?"minute":"minutes"}`),V.push(`${st} ${st===1?"second":"seconds"}`)):b>=3600?(V.push(`${pt} ${pt===1?"hour":"hours"}`),V.push(`${dt} ${dt===1?"minute":"minutes"}`),V.push(`${st} ${st===1?"second":"seconds"}`)):b>=60?(V.push(`${dt} ${dt===1?"minute":"minutes"}`),V.push(`${st} ${st===1?"second":"seconds"}`)):V.push(`${st} ${st===1?"second":"seconds"}`),V.join(" ")+" remaining"}const te=Dt(()=>{if(g(j),!o()&&g(z)!==null)return`${g(K)}%`;if(!o()&&p()&&Number(p())>0){const b=Math.floor(Number(p())/1e3),S=Math.max(0,b-g(j));return ft(S)}return g(j)===0?"now":g(j)===1?"1 second ago":`${g(j)} seconds ago`}),rt=Dt(()=>({primary:"bg-primary",secondary:"bg-secondary",success:"bg-success",danger:"bg-danger",warning:"bg-warning",info:"bg-info",light:"bg-light",dark:"bg-dark"})[v()]||"bg-info"),Pe=Dt(()=>{const b={"top-left":"position-fixed top-0 start-0 m-3","top-center":"position-fixed top-0 start-50 translate-middle-x m-3","top-right":"position-fixed top-0 end-0 m-3","bottom-left":"position-fixed bottom-0 start-0 m-3","bottom-center":"position-fixed bottom-0 start-50 translate-middle-x m-3","bottom-right":"position-fixed bottom-0 end-0 m-3"};return b[d()]||b["top-right"]});function De(){if(g(f)){const b=Date.now();E(j,Math.floor((b-g(f))/1e3),!0)}}function or(){!o()&&g(z)===null&&(E(f,Date.now(),!0),E(j,0),k=setInterval(De,1e3))}function ir(){k&&(clearInterval(k),k=null,E(j,0),E(f,null))}function dn(){g(z)===null&&p()&&Number(p())>0&&(A&&clearInterval(A),E(T,Date.now(),!0),E(C,0),A=setInterval(()=>{g(T)&&E(C,Date.now(),!0)},100))}function hn(){A&&(clearInterval(A),A=null),E(T,null),E(C,0)}function ar(){u&&(clearTimeout(u),u=null),ir(),hn()}function ws(){ar(),n("no"),r("changeVisibility",{id:s(),show:!1})}function _s(){E(c,!1),setTimeout(()=>{n("no"),ar(),r("changeVisibility",{id:s(),show:!1,disappear:!0})},1e3)}function vn(b){r("action",{id:s(),action:b.action}),ws()}const mr=Dt(()=>{let b=h();if(typeof b=="string")try{b=JSON.parse(b)}catch{b=[]}return Array.isArray(b)?b.map(S=>({...S.type==="confirm"?{text:"Confirm",themeColor:"success",icon:"bi-check-lg"}:{text:"Cancel",themeColor:"secondary",icon:"bi-x-lg"},...S})):[]});Ur(()=>{n()==="yes"?(E(c,!0),or(),dn(),u&&clearTimeout(u),g(z)===null&&p()&&Number(p())>0&&(u=setTimeout(()=>{_s()},Number(p())))):(E(c,!1),ar())}),Ur(()=>{n()==="yes"&&g(z)!==null&&g(K)>=100&&_s()});var bn={get id(){return s()},set id(b=""){s(b),Z()},get show(){return n()},set show(b="no"){n(b),Z()},get content(){return l()},set content(b=""){l(b),Z()},get small(){return o()},set small(b){o(b),Z()},get title(){return i()},set title(b=""){i(b),Z()},get img(){return m()},set img(b=""){m(b),Z()},get progress(){return a()},set progress(b=""){a(b),Z()},get timeout(){return p()},set timeout(b){p(b),Z()},get level(){return v()},set level(b="info"){v(b),Z()},get position(){return d()},set position(b="bottom-right"){d(b),Z()},get buttons(){return h()},set buttons(b=[]){h(b),Z()}},ks=Ml();Bl("j9shl9",b=>{var S=rn();it(b,S)});var cn=wl(ks);{var gn=b=>{var S=mn(),pt=qt(S),dt=qt(pt);Ce(dt,e,"header_icon",{},W=>{var L=sn();it(W,L)});var st=St(dt,2),V=qt(st);Ce(V,e,"header_strong",{},null);var fn=St(V,1,!0);Et(st);var pr=St(st,2),un=qt(pr);Ce(un,e,"header_small",{},W=>{var L=ds();Xt(()=>Ae(L,o()||(g(z)!==null?`${g(K)}%`:o()!==""?g(te):o()))),it(W,L)}),Et(pr);var jn=St(pr,2);jn.__click=ws,Et(pt);var dr=St(pt,2),$s=qt(dr);Ce($s,e,"body",{},W=>{var L=ds();Xt(()=>Ae(L,l())),it(W,L)});var xn=St($s,2);{var yn=W=>{var L=on();bl(L,21,()=>g(mr),ee=>ee.action,(ee,At)=>{var re=nn();re.__click=()=>vn(g(At));var Es=qt(re);{var kn=hr=>{var Ts=ln();Xt(()=>Re(Ts,1,`bi ${g(At).icon??""} me-1`,"svelte-j9shl9")),it(hr,Ts)};Ne(Es,hr=>{g(At).icon&&hr(kn)})}var $n=St(Es);Et(re),Xt(()=>{Re(re,1,`btn btn-${g(At).themeColor??""} btn-sm`,"svelte-j9shl9"),bs(re,g(At).color?`background-color: ${g(At).color}; border-color: ${g(At).color};`:""),Ae($n,` ${g(At).text??""}`)}),it(ee,re)}),Et(L),it(W,L)};Ne(xn,W=>{g(mr)&&g(mr).length>0&&W(yn)})}Et(dr);var wn=St(dr,2);{var _n=W=>{var L=an(),ee=qt(L);Et(L),Xt(()=>{Re(ee,1,`toast-progress-bar ${g(rt)??""}`,"svelte-j9shl9"),bs(ee,`width: ${g(K)??""}%; filter: blur(${g(mt)??""}px); transition: width 1s linear, filter 1s ease;`)}),it(W,L)};Ne(wn,W=>{(g(z)!==null||p()&&Number(p())>0)&&W(_n)})}Et(S),Xt(()=>{Re(S,1,`toast fade show ${g(Pe)??""}`,"svelte-j9shl9"),Ae(fn,i())}),fs(1,S,()=>js,()=>({duration:2e3,easing:xs})),fs(2,S,()=>js,()=>({duration:2e3,easing:xs})),it(b,S)};Ne(cn,b=>{n()==="yes"&&b(gn)})}return it(t,ks),kr(bn)}Il(["click"]),customElements.define("hb-toast",tn(ys,{id:{},show:{},content:{},small:{},title:{},img:{},progress:{},timeout:{},level:{},position:{},buttons:{}},["header_icon","header_strong","header_small","body"],[],!0)),vr.Component=ys,Object.defineProperty(vr,Symbol.toStringTag,{value:"Module"})})(this.toast=this.toast||{});
79
79
  //# sourceMappingURL=main.iife.js.map
package/manifest.json CHANGED
@@ -254,40 +254,52 @@
254
254
  "styleSetup": {
255
255
  "vars": [
256
256
  {
257
- "name": "--bs-primary",
257
+ "name": "--bs-danger-rgb",
258
258
  "valueType": "color",
259
259
  "theme": "bootstrap",
260
- "defaultValue": "#07689f"
260
+ "defaultValue": ""
261
261
  },
262
262
  {
263
- "name": "--bs-secondary",
263
+ "name": "--bs-dark-rgb",
264
264
  "valueType": "color",
265
265
  "theme": "bootstrap",
266
- "defaultValue": "#c9d6df"
266
+ "defaultValue": ""
267
267
  },
268
268
  {
269
- "name": "--bs-success",
269
+ "name": "--bs-info-rgb",
270
270
  "valueType": "color",
271
271
  "theme": "bootstrap",
272
- "defaultValue": "#11d3bc"
272
+ "defaultValue": ""
273
273
  },
274
274
  {
275
- "name": "--bs-info",
275
+ "name": "--bs-light-rgb",
276
276
  "valueType": "color",
277
277
  "theme": "bootstrap",
278
- "defaultValue": "#a2d5f2"
278
+ "defaultValue": ""
279
279
  },
280
280
  {
281
- "name": "--bs-warning",
281
+ "name": "--bs-primary-rgb",
282
282
  "valueType": "color",
283
283
  "theme": "bootstrap",
284
- "defaultValue": "#ffc107"
284
+ "defaultValue": ""
285
285
  },
286
286
  {
287
- "name": "--bs-danger",
287
+ "name": "--bs-secondary-rgb",
288
288
  "valueType": "color",
289
289
  "theme": "bootstrap",
290
- "defaultValue": "#f67280"
290
+ "defaultValue": ""
291
+ },
292
+ {
293
+ "name": "--bs-success-rgb",
294
+ "valueType": "color",
295
+ "theme": "bootstrap",
296
+ "defaultValue": ""
297
+ },
298
+ {
299
+ "name": "--bs-warning-rgb",
300
+ "valueType": "color",
301
+ "theme": "bootstrap",
302
+ "defaultValue": ""
291
303
  }
292
304
  ],
293
305
  "parts": []
@@ -437,5 +449,5 @@
437
449
  "size": {},
438
450
  "iifePath": "main.iife.js",
439
451
  "repoName": "@htmlbricks/hb-toast",
440
- "version": "0.65.23"
452
+ "version": "0.66.0"
441
453
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@htmlbricks/hb-toast",
3
- "version": "0.65.23",
3
+ "version": "0.66.0",
4
4
  "contributors": [],
5
5
  "description": "Bootstrap-styled toast: `show`, `title`, `content`, optional `img`, `small`, `level`, `position`, `timeout`, string `progress` for a bar, and `buttons` for actions. Slots customize header and body; dispatches visibility and button `action` events.",
6
6
  "licenses": [