@htmlbricks/hb-messages-topics-card 0.62.0 → 0.62.1
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 +3 -3
- package/main.iife.js.map +1 -1
- package/manifest.json +7 -7
- package/package.json +1 -1
package/main.iife.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
(function(Ot){"use strict";typeof window<"u"&&((window.__svelte??={}).v??=new Set).add("5");const Vr=1,Yr=2,Wr=16,Gr=1,Jr=4,Kr=8,Xr=16,Zr=2,Dt="[",Ye="[!",dt="]",Ae={},k=Symbol(),Qr="http://www.w3.org/1999/xhtml",Mt=!1;var Pt=Array.isArray,en=Array.prototype.indexOf,ht=Array.from,We=Object.keys,Ge=Object.defineProperty,pe=Object.getOwnPropertyDescriptor,tn=Object.getOwnPropertyDescriptors,rn=Object.prototype,nn=Array.prototype,Lt=Object.getPrototypeOf,It=Object.isExtensible;function sn(e){for(var t=0;t<e.length;t++)e[t]()}function Ft(){var e,t,r=new Promise((n,i)=>{e=n,t=i});return{promise:r,resolve:e,reject:t}}const S=2,Je=4,vt=8,ee=16,te=32,fe=64,Ke=128,V=512,A=1024,D=2048,re=4096,I=8192,ue=16384,_t=32768,Ce=65536,jt=1<<17,Bt=1<<18,be=1<<19,an=1<<20,Pe=32768,pt=1<<21,bt=1<<22,ce=1<<23,Xe=Symbol("$state"),qt=Symbol("legacy props"),on=Symbol(""),ze=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"},gt=3,Ne=8;function ln(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function fn(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function un(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function cn(e){throw new Error("https://svelte.dev/e/effect_orphan")}function dn(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function hn(){throw new Error("https://svelte.dev/e/hydration_failed")}function vn(e){throw new Error("https://svelte.dev/e/props_invalid_value")}function _n(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function pn(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function bn(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function gn(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}function Ze(e){console.warn("https://svelte.dev/e/hydration_mismatch")}function mn(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}let $=!1;function ne(e){$=e}let m;function F(e){if(e===null)throw Ze(),Ae;return m=e}function Qe(){return F(J(m))}function de(e){if($){if(J(m)!==null)throw Ze(),Ae;m=e}}function wn(e=1){if($){for(var t=e,r=m;t--;)r=J(r);m=r}}function et(e=!0){for(var t=0,r=m;;){if(r.nodeType===Ne){var n=r.data;if(n===dt){if(t===0)return r;t-=1}else(n===Dt||n===Ye)&&(t+=1)}var i=J(r);e&&r.remove(),r=i}}function Ut(e){if(!e||e.nodeType!==Ne)throw Ze(),Ae;return e.data}function Ht(e){return e===this.v}function yn(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function Vt(e){return!yn(e,this.v)}let $n=!1,q=null;function Re(e){q=e}function Yt(e,t=!1,r){q={p:q,i:!1,c:null,e:null,s:e,x:null,l:null}}function Wt(e){var t=q,r=t.e;if(r!==null){t.e=null;for(var n of r)_r(n)}return e!==void 0&&(t.x=e),t.i=!0,q=t.p,e??{}}function Gt(){return!0}let ge=[];function Jt(){var e=ge;ge=[],sn(e)}function mt(e){if(ge.length===0&&!Le){var t=ge;queueMicrotask(()=>{t===ge&&Jt()})}ge.push(e)}function En(){for(;ge.length>0;)Jt()}function Kt(e){var t=b;if(t===null)return p.f|=ce,e;if((t.f&_t)===0){if((t.f&Ke)===0)throw e;t.b.error(e)}else Oe(e,t)}function Oe(e,t){for(;t!==null;){if((t.f&Ke)!==0)try{t.b.error(e);return}catch(r){e=r}t=t.parent}throw e}const tt=new Set;let T=null,j=null,W=[],rt=null,wt=!1,Le=!1;class Y{committed=!1;current=new Map;previous=new Map;#t=new Set;#e=new Set;#r=0;#n=0;#l=null;#a=[];#o=[];skipped_effects=new Set;is_fork=!1;process(t){W=[],this.apply();var r={parent:null,effect:null,effects:[],render_effects:[],block_effects:[]};for(const n of t)this.#i(n,r);this.is_fork||this.#f(),this.#n>0||this.is_fork?(this.#s(r.effects),this.#s(r.render_effects),this.#s(r.block_effects)):(T=null,Zt(r.render_effects),Zt(r.effects),this.#l?.resolve()),j=null}#i(t,r){t.f^=A;for(var n=t.first;n!==null;){var i=n.f,s=(i&(te|fe))!==0,a=s&&(i&A)!==0,o=a||(i&I)!==0||this.skipped_effects.has(n);if((n.f&Ke)!==0&&n.b?.is_pending()&&(r={parent:r,effect:n,effects:[],render_effects:[],block_effects:[]}),!o&&n.fn!==null){s?n.f^=A:(i&Je)!==0?r.effects.push(n):qe(n)&&((n.f&ee)!==0&&r.block_effects.push(n),Ue(n));var l=n.first;if(l!==null){n=l;continue}}var f=n.parent;for(n=n.next;n===null&&f!==null;)f===r.effect&&(this.#s(r.effects),this.#s(r.render_effects),this.#s(r.block_effects),r=r.parent),n=f.next,f=f.parent}}#s(t){for(const r of t)((r.f&D)!==0?this.#a:this.#o).push(r),z(r,A)}capture(t,r){this.previous.has(t)||this.previous.set(t,r),(t.f&ce)===0&&(this.current.set(t,t.v),j?.set(t,t.v))}activate(){T=this,this.apply()}deactivate(){T=null,j=null}flush(){if(this.activate(),W.length>0){if(Xt(),T!==null&&T!==this)return}else this.#r===0&&this.process([]);this.deactivate()}discard(){for(const t of this.#e)t(this);this.#e.clear()}#f(){if(this.#n===0){for(const t of this.#t)t();this.#t.clear()}this.#r===0&&this.#u()}#u(){if(tt.size>1){this.previous.clear();var t=j,r=!0,n={parent:null,effect:null,effects:[],render_effects:[],block_effects:[]};for(const i of tt){if(i===this){r=!1;continue}const s=[];for(const[o,l]of this.current){if(i.current.has(o))if(r&&l!==i.current.get(o))i.current.set(o,l);else continue;s.push(o)}if(s.length===0)continue;const a=[...i.current.keys()].filter(o=>!this.current.has(o));if(a.length>0){const o=new Set,l=new Map;for(const f of s)Qt(f,a,o,l);if(W.length>0){T=i,i.apply();for(const f of W)i.#i(f,n);W=[],i.deactivate()}}}T=null,j=t}this.committed=!0,tt.delete(this)}increment(t){this.#r+=1,t&&(this.#n+=1)}decrement(t){this.#r-=1,t&&(this.#n-=1),this.revive()}revive(){for(const t of this.#a)z(t,D),me(t);for(const t of this.#o)z(t,re),me(t);this.#a=[],this.#o=[],this.flush()}oncommit(t){this.#t.add(t)}ondiscard(t){this.#e.add(t)}settled(){return(this.#l??=Ft()).promise}static ensure(){if(T===null){const t=T=new Y;tt.add(T),Le||Y.enqueue(()=>{T===t&&t.flush()})}return T}static enqueue(t){mt(t)}apply(){}}function yt(e){var t=Le;Le=!0;try{for(var r;;){if(En(),W.length===0&&(T?.flush(),W.length===0))return rt=null,r;Xt()}}finally{Le=t}}function Xt(){var e=$e;wt=!0;try{var t=0;for(Er(!0);W.length>0;){var r=Y.ensure();if(t++>1e3){var n,i;xn()}r.process(W),he.clear()}}finally{wt=!1,Er(e),rt=null}}function xn(){try{dn()}catch(e){Oe(e,rt)}}let ie=null;function Zt(e){var t=e.length;if(t!==0){for(var r=0;r<t;){var n=e[r++];if((n.f&(ue|I))===0&&qe(n)&&(ie=new Set,Ue(n),n.deps===null&&n.first===null&&n.nodes_start===null&&(n.teardown===null&&n.ac===null?mr(n):n.fn=null),ie?.size>0)){he.clear();for(const i of ie){if((i.f&(ue|I))!==0)continue;const s=[i];let a=i.parent;for(;a!==null;)ie.has(a)&&(ie.delete(a),s.push(a)),a=a.parent;for(let o=s.length-1;o>=0;o--){const l=s[o];(l.f&(ue|I))===0&&Ue(l)}}ie.clear()}}ie=null}}function Qt(e,t,r,n){if(!r.has(e)&&(r.add(e),e.reactions!==null))for(const i of e.reactions){const s=i.f;(s&S)!==0?Qt(i,t,r,n):(s&(bt|ee))!==0&&(s&D)===0&&er(i,t,n)&&(z(i,D),me(i))}}function er(e,t,r){const n=r.get(e);if(n!==void 0)return n;if(e.deps!==null)for(const i of e.deps){if(t.includes(i))return!0;if((i.f&S)!==0&&er(i,t,r))return r.set(i,!0),!0}return r.set(e,!1),!1}function me(e){for(var t=rt=e;t.parent!==null;){t=t.parent;var r=t.f;if(wt&&t===b&&(r&ee)!==0&&(r&Bt)===0)return;if((r&(fe|te))!==0){if((r&A)===0)return;t.f^=A}}W.push(t)}function Tn(e){let t=0,r=we(0),n;return()=>{st()&&(x(r),pr(()=>(t===0&&(n=Rr(()=>e(()=>Fe(r)))),t+=1,()=>{mt(()=>{t-=1,t===0&&(n?.(),n=void 0,Fe(r))})})))}}var kn=Ce|be|Ke;function Sn(e,t,r){new An(e,t,r)}class An{parent;#t=!1;#e;#r=$?m:null;#n;#l;#a;#o=null;#i=null;#s=null;#f=null;#u=null;#h=0;#c=0;#v=!1;#d=null;#m=Tn(()=>(this.#d=we(this.#h),()=>{this.#d=null}));constructor(t,r,n){this.#e=t,this.#n=r,this.#l=n,this.parent=b.b,this.#t=!!this.#n.pending,this.#a=kt(()=>{if(b.b=this,$){const s=this.#r;Qe(),s.nodeType===Ne&&s.data===Ye?this.#y():this.#w()}else{var i=this.#b();try{this.#o=U(()=>n(i))}catch(s){this.error(s)}this.#c>0?this.#p():this.#t=!1}return()=>{this.#u?.remove()}},kn),$&&(this.#e=m)}#w(){try{this.#o=U(()=>this.#l(this.#e))}catch(t){this.error(t)}this.#t=!1}#y(){const t=this.#n.pending;t&&(this.#i=U(()=>t(this.#e)),Y.enqueue(()=>{var r=this.#b();this.#o=this.#_(()=>(Y.ensure(),U(()=>this.#l(r)))),this.#c>0?this.#p():(De(this.#i,()=>{this.#i=null}),this.#t=!1)}))}#b(){var t=this.#e;return this.#t&&(this.#u=G(),this.#e.before(this.#u),t=this.#u),t}is_pending(){return this.#t||!!this.parent&&this.parent.is_pending()}has_pending_snippet(){return!!this.#n.pending}#_(t){var r=b,n=p,i=q;Z(this.#a),M(this.#a),Re(this.#a.ctx);try{return t()}catch(s){return Kt(s),null}finally{Z(r),M(n),Re(i)}}#p(){const t=this.#n.pending;this.#o!==null&&(this.#f=document.createDocumentFragment(),this.#f.append(this.#u),$r(this.#o,this.#f)),this.#i===null&&(this.#i=U(()=>t(this.#e)))}#g(t){if(!this.has_pending_snippet()){this.parent&&this.parent.#g(t);return}this.#c+=t,this.#c===0&&(this.#t=!1,this.#i&&De(this.#i,()=>{this.#i=null}),this.#f&&(this.#e.before(this.#f),this.#f=null))}update_pending_count(t){this.#g(t),this.#h+=t,this.#d&&Ie(this.#d,this.#h)}get_effect_pending(){return this.#m(),x(this.#d)}error(t){var r=this.#n.onerror;let n=this.#n.failed;if(this.#v||!r&&!n)throw t;this.#o&&(C(this.#o),this.#o=null),this.#i&&(C(this.#i),this.#i=null),this.#s&&(C(this.#s),this.#s=null),$&&(F(this.#r),wn(),F(et()));var i=!1,s=!1;const a=()=>{if(i){mn();return}i=!0,s&&gn(),Y.ensure(),this.#h=0,this.#s!==null&&De(this.#s,()=>{this.#s=null}),this.#t=this.has_pending_snippet(),this.#o=this.#_(()=>(this.#v=!1,U(()=>this.#l(this.#e)))),this.#c>0?this.#p():this.#t=!1};var o=p;try{M(null),s=!0,r?.(t,a),s=!1}catch(l){Oe(l,this.#a&&this.#a.parent)}finally{M(o)}n&&mt(()=>{this.#s=this.#_(()=>{Y.ensure(),this.#v=!0;try{return U(()=>{n(this.#e,()=>t,()=>a)})}catch(l){return Oe(l,this.#a.parent),null}finally{this.#v=!1}})})}}function Cn(e,t,r,n){const i=$t;if(r.length===0&&e.length===0){n(t.map(i));return}var s=T,a=b,o=zn();function l(){Promise.all(r.map(f=>Nn(f))).then(f=>{o();try{n([...t.map(i),...f])}catch(c){(a.f&ue)===0&&Oe(c,a)}s?.deactivate(),nt()}).catch(f=>{Oe(f,a)})}e.length>0?Promise.all(e).then(()=>{o();try{return l()}finally{s?.deactivate(),nt()}}):l()}function zn(){var e=b,t=p,r=q,n=T;return function(s=!0){Z(e),M(t),Re(r),s&&n?.activate()}}function nt(){Z(null),M(null),Re(null)}function $t(e){var t=S|D,r=p!==null&&(p.f&S)!==0?p:null;return b!==null&&(b.f|=be),{ctx:q,deps:null,effects:null,equals:Ht,f:t,fn:e,reactions:null,rv:0,v:k,wv:0,parent:r??b,ac:null}}function Nn(e,t){let r=b;r===null&&ln();var n=r.b,i=void 0,s=we(k),a=!p,o=new Map;return Bn(()=>{var l=Ft();i=l.promise;try{Promise.resolve(e()).then(l.resolve,l.reject).then(()=>{f===T&&f.committed&&f.deactivate(),nt()})}catch(u){l.reject(u),nt()}var f=T;if(a){var c=!n.is_pending();n.update_pending_count(1),f.increment(c),o.get(f)?.reject(ze),o.delete(f),o.set(f,l)}const h=(u,d=void 0)=>{if(f.activate(),d)d!==ze&&(s.f|=ce,Ie(s,d));else{(s.f&ce)!==0&&(s.f^=ce),Ie(s,u);for(const[v,_]of o){if(o.delete(v),v===f)break;_.reject(ze)}}a&&(n.update_pending_count(-1),f.decrement(c))};l.promise.then(h,u=>h(null,u||"unknown"))}),Pn(()=>{for(const l of o.values())l.reject(ze)}),new Promise(l=>{function f(c){function h(){c===i?l(s):f(i)}c.then(h,h)}f(i)})}function tr(e){const t=$t(e);return t.equals=Vt,t}function rr(e){var t=e.effects;if(t!==null){e.effects=null;for(var r=0;r<t.length;r+=1)C(t[r])}}function Rn(e){for(var t=e.parent;t!==null;){if((t.f&S)===0)return t;t=t.parent}return null}function Et(e){var t,r=b;Z(Rn(e));try{e.f&=~Pe,rr(e),t=Cr(e)}finally{Z(r)}return t}function nr(e){var t=Et(e);if(e.equals(t)||(e.v=t,e.wv=Sr()),!Ee)if(j!==null)st()&&j.set(e,e.v);else{var r=(e.f&V)===0?re:A;z(e,r)}}let xt=new Set;const he=new Map;let ir=!1;function we(e,t){var r={f:0,v:e,reactions:null,equals:Ht,rv:0,wv:0};return r}function se(e,t){const r=we(e);return Vn(r),r}function sr(e,t=!1,r=!0){const n=we(e);return t||(n.equals=Vt),n}function ae(e,t,r=!1){p!==null&&(!X||(p.f&jt)!==0)&&Gt()&&(p.f&(S|ee|bt|jt))!==0&&!oe?.includes(e)&&bn();let n=r?ye(t):t;return Ie(e,n)}function Ie(e,t){if(!e.equals(t)){var r=e.v;Ee?he.set(e,t):he.set(e,r),e.v=t;var n=Y.ensure();n.capture(e,r),(e.f&S)!==0&&((e.f&D)!==0&&Et(e),z(e,(e.f&V)!==0?A:re)),e.wv=Sr(),ar(e,D),b!==null&&(b.f&A)!==0&&(b.f&(te|fe))===0&&(H===null?Yn([e]):H.push(e)),!n.is_fork&&xt.size>0&&!ir&&On()}return t}function On(){ir=!1;const e=Array.from(xt);for(const t of e)(t.f&A)!==0&&z(t,re),qe(t)&&Ue(t);xt.clear()}function Fe(e){ae(e,e.v+1)}function ar(e,t){var r=e.reactions;if(r!==null)for(var n=r.length,i=0;i<n;i++){var s=r[i],a=s.f,o=(a&D)===0;if(o&&z(s,t),(a&S)!==0){var l=s;j?.delete(l),(a&Pe)===0&&(a&V&&(s.f|=Pe),ar(l,re))}else o&&((a&ee)!==0&&ie!==null&&ie.add(s),me(s))}}function ye(e){if(typeof e!="object"||e===null||Xe in e)return e;const t=Lt(e);if(t!==rn&&t!==nn)return e;var r=new Map,n=Pt(e),i=se(0),s=xe,a=o=>{if(xe===s)return o();var l=p,f=xe;M(null),kr(s);var c=o();return M(l),kr(f),c};return n&&r.set("length",se(e.length)),new Proxy(e,{defineProperty(o,l,f){(!("value"in f)||f.configurable===!1||f.enumerable===!1||f.writable===!1)&&_n();var c=r.get(l);return c===void 0?c=a(()=>{var h=se(f.value);return r.set(l,h),h}):ae(c,f.value,!0),!0},deleteProperty(o,l){var f=r.get(l);if(f===void 0){if(l in o){const c=a(()=>se(k));r.set(l,c),Fe(i)}}else ae(f,k),Fe(i);return!0},get(o,l,f){if(l===Xe)return e;var c=r.get(l),h=l in o;if(c===void 0&&(!h||pe(o,l)?.writable)&&(c=a(()=>{var d=ye(h?o[l]:k),v=se(d);return v}),r.set(l,c)),c!==void 0){var u=x(c);return u===k?void 0:u}return Reflect.get(o,l,f)},getOwnPropertyDescriptor(o,l){var f=Reflect.getOwnPropertyDescriptor(o,l);if(f&&"value"in f){var c=r.get(l);c&&(f.value=x(c))}else if(f===void 0){var h=r.get(l),u=h?.v;if(h!==void 0&&u!==k)return{enumerable:!0,configurable:!0,value:u,writable:!0}}return f},has(o,l){if(l===Xe)return!0;var f=r.get(l),c=f!==void 0&&f.v!==k||Reflect.has(o,l);if(f!==void 0||b!==null&&(!c||pe(o,l)?.writable)){f===void 0&&(f=a(()=>{var u=c?ye(o[l]):k,d=se(u);return d}),r.set(l,f));var h=x(f);if(h===k)return!1}return c},set(o,l,f,c){var h=r.get(l),u=l in o;if(n&&l==="length")for(var d=f;d<h.v;d+=1){var v=r.get(d+"");v!==void 0?ae(v,k):d in o&&(v=a(()=>se(k)),r.set(d+"",v))}if(h===void 0)(!u||pe(o,l)?.writable)&&(h=a(()=>se(void 0)),ae(h,ye(f)),r.set(l,h));else{u=h.v!==k;var _=a(()=>ye(f));ae(h,_)}var g=Reflect.getOwnPropertyDescriptor(o,l);if(g?.set&&g.set.call(c,f),!u){if(n&&typeof l=="string"){var R=r.get("length"),w=Number(l);Number.isInteger(w)&&w>=R.v&&ae(R,w+1)}Fe(i)}return!0},ownKeys(o){x(i);var l=Reflect.ownKeys(o).filter(h=>{var u=r.get(h);return u===void 0||u.v!==k});for(var[f,c]of r)c.v!==k&&!(f in o)&&l.push(f);return l},setPrototypeOf(){pn()}})}var or,lr,fr,ur;function Tt(){if(or===void 0){or=window,lr=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,r=Text.prototype;fr=pe(t,"firstChild").get,ur=pe(t,"nextSibling").get,It(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),It(r)&&(r.__t=void 0)}}function G(e=""){return document.createTextNode(e)}function je(e){return fr.call(e)}function J(e){return ur.call(e)}function ve(e,t){if(!$)return je(e);var r=je(m);if(r===null)r=m.appendChild(G());else if(t&&r.nodeType!==gt){var n=G();return r?.before(n),F(n),n}return F(r),r}function cr(e,t=!1){if(!$){var r=je(e);return r instanceof Comment&&r.data===""?J(r):r}if(t&&m?.nodeType!==gt){var n=G();return m?.before(n),F(n),n}return m}function it(e,t=1,r=!1){let n=$?m:e;for(var i;t--;)i=n,n=J(n);if(!$)return n;if(r&&n?.nodeType!==gt){var s=G();return n===null?i?.after(s):n.before(s),F(s),s}return F(n),n}function dr(e){e.textContent=""}function hr(){return!1}function vr(e){var t=p,r=b;M(null),Z(null);try{return e()}finally{M(t),Z(r)}}function Dn(e){b===null&&(p===null&&cn(),un()),Ee&&fn()}function Mn(e,t){var r=t.last;r===null?t.last=t.first=e:(r.next=e,e.prev=r,t.last=e)}function K(e,t,r,n=!0){var i=b;i!==null&&(i.f&I)!==0&&(e|=I);var s={ctx:q,deps:null,nodes_start:null,nodes_end:null,f:e|D|V,first:null,fn:t,last:null,next:null,parent:i,b:i&&i.b,prev:null,teardown:null,transitions:null,wv:0,ac:null};if(r)try{Ue(s),s.f|=_t}catch(l){throw C(s),l}else t!==null&&me(s);if(n){var a=s;if(r&&a.deps===null&&a.teardown===null&&a.nodes_start===null&&a.first===a.last&&(a.f&be)===0&&(a=a.first,(e&ee)!==0&&(e&Ce)!==0&&a!==null&&(a.f|=Ce)),a!==null&&(a.parent=i,i!==null&&Mn(a,i),p!==null&&(p.f&S)!==0&&(e&fe)===0)){var o=p;(o.effects??=[]).push(a)}}return s}function st(){return p!==null&&!X}function Pn(e){const t=K(vt,null,!1);return z(t,A),t.teardown=e,t}function Ln(e){Dn();var t=b.f,r=!p&&(t&te)!==0&&(t&_t)===0;if(r){var n=q;(n.e??=[]).push(e)}else return _r(e)}function _r(e){return K(Je|an,e,!1)}function In(e){Y.ensure();const t=K(fe|be,e,!0);return()=>{C(t)}}function Fn(e){Y.ensure();const t=K(fe|be,e,!0);return(r={})=>new Promise(n=>{r.outro?De(t,()=>{C(t),n(void 0)}):(C(t),n(void 0))})}function jn(e){return K(Je,e,!1)}function Bn(e){return K(bt|be,e,!0)}function pr(e,t=0){return K(vt|t,e,!0)}function qn(e,t=[],r=[],n=[],i=!1){Cn(n,t,r,s=>{K(i?Je:vt,()=>e(...s.map(x)),!0)})}function kt(e,t=0){var r=K(ee|t,e,!0);return r}function U(e,t=!0){return K(te|be,e,!0,t)}function br(e){var t=e.teardown;if(t!==null){const r=Ee,n=p;xr(!0),M(null);try{t.call(null)}finally{xr(r),M(n)}}}function gr(e,t=!1){var r=e.first;for(e.first=e.last=null;r!==null;){const i=r.ac;i!==null&&vr(()=>{i.abort(ze)});var n=r.next;(r.f&fe)!==0?r.parent=null:C(r,t),r=n}}function Un(e){for(var t=e.first;t!==null;){var r=t.next;(t.f&te)===0&&C(t),t=r}}function C(e,t=!0){var r=!1;(t||(e.f&Bt)!==0)&&e.nodes_start!==null&&e.nodes_end!==null&&(Hn(e.nodes_start,e.nodes_end),r=!0),gr(e,t&&!r),at(e,0),z(e,ue);var n=e.transitions;if(n!==null)for(const s of n)s.stop();br(e);var i=e.parent;i!==null&&i.first!==null&&mr(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes_start=e.nodes_end=e.ac=null}function Hn(e,t){for(;e!==null;){var r=e===t?null:J(e);e.remove(),e=r}}function mr(e){var t=e.parent,r=e.prev,n=e.next;r!==null&&(r.next=n),n!==null&&(n.prev=r),t!==null&&(t.first===e&&(t.first=n),t.last===e&&(t.last=r))}function De(e,t,r=!0){var n=[];St(e,n,!0),wr(n,()=>{r&&C(e),t&&t()})}function wr(e,t){var r=e.length;if(r>0){var n=()=>--r||t();for(var i of e)i.out(n)}else t()}function St(e,t,r){if((e.f&I)===0){if(e.f^=I,e.transitions!==null)for(const a of e.transitions)(a.is_global||r)&&t.push(a);for(var n=e.first;n!==null;){var i=n.next,s=(n.f&Ce)!==0||(n.f&te)!==0&&(e.f&ee)!==0;St(n,t,s?r:!1),n=i}}}function At(e){yr(e,!0)}function yr(e,t){if((e.f&I)!==0){e.f^=I,(e.f&A)===0&&(z(e,D),me(e));for(var r=e.first;r!==null;){var n=r.next,i=(r.f&Ce)!==0||(r.f&te)!==0;yr(r,i?t:!1),r=n}if(e.transitions!==null)for(const s of e.transitions)(s.is_global||t)&&s.in()}}function $r(e,t){for(var r=e.nodes_start,n=e.nodes_end;r!==null;){var i=r===n?null:J(r);t.append(r),r=i}}let $e=!1;function Er(e){$e=e}let Ee=!1;function xr(e){Ee=e}let p=null,X=!1;function M(e){p=e}let b=null;function Z(e){b=e}let oe=null;function Vn(e){p!==null&&(oe===null?oe=[e]:oe.push(e))}let N=null,B=0,H=null;function Yn(e){H=e}let Tr=1,Be=0,xe=Be;function kr(e){xe=e}function Sr(){return++Tr}function qe(e){var t=e.f;if((t&D)!==0)return!0;if(t&S&&(e.f&=~Pe),(t&re)!==0){var r=e.deps;if(r!==null)for(var n=r.length,i=0;i<n;i++){var s=r[i];if(qe(s)&&nr(s),s.wv>e.wv)return!0}(t&V)!==0&&j===null&&z(e,A)}return!1}function Ar(e,t,r=!0){var n=e.reactions;if(n!==null&&!oe?.includes(e))for(var i=0;i<n.length;i++){var s=n[i];(s.f&S)!==0?Ar(s,t,!1):t===s&&(r?z(s,D):(s.f&A)!==0&&z(s,re),me(s))}}function Cr(e){var t=N,r=B,n=H,i=p,s=oe,a=q,o=X,l=xe,f=e.f;N=null,B=0,H=null,p=(f&(te|fe))===0?e:null,oe=null,Re(e.ctx),X=!1,xe=++Be,e.ac!==null&&(vr(()=>{e.ac.abort(ze)}),e.ac=null);try{e.f|=pt;var c=e.fn,h=c(),u=e.deps;if(N!==null){var d;if(at(e,B),u!==null&&B>0)for(u.length=B+N.length,d=0;d<N.length;d++)u[B+d]=N[d];else e.deps=u=N;if($e&&st()&&(e.f&V)!==0)for(d=B;d<u.length;d++)(u[d].reactions??=[]).push(e)}else u!==null&&B<u.length&&(at(e,B),u.length=B);if(Gt()&&H!==null&&!X&&u!==null&&(e.f&(S|re|D))===0)for(d=0;d<H.length;d++)Ar(H[d],e);return i!==null&&i!==e&&(Be++,H!==null&&(n===null?n=H:n.push(...H))),(e.f&ce)!==0&&(e.f^=ce),h}catch(v){return Kt(v)}finally{e.f^=pt,N=t,B=r,H=n,p=i,oe=s,Re(a),X=o,xe=l}}function Wn(e,t){let r=t.reactions;if(r!==null){var n=en.call(r,e);if(n!==-1){var i=r.length-1;i===0?r=t.reactions=null:(r[n]=r[i],r.pop())}}r===null&&(t.f&S)!==0&&(N===null||!N.includes(t))&&(z(t,re),(t.f&V)!==0&&(t.f^=V,t.f&=~Pe),rr(t),at(t,0))}function at(e,t){var r=e.deps;if(r!==null)for(var n=t;n<r.length;n++)Wn(e,r[n])}function Ue(e){var t=e.f;if((t&ue)===0){z(e,A);var r=b,n=$e;b=e,$e=!0;try{(t&ee)!==0?Un(e):gr(e),br(e);var i=Cr(e);e.teardown=typeof i=="function"?i:null,e.wv=Tr;var s;Mt&&$n&&(e.f&D)!==0&&e.deps}finally{$e=n,b=r}}}function x(e){var t=e.f,r=(t&S)!==0;if(p!==null&&!X){var n=b!==null&&(b.f&ue)!==0;if(!n&&!oe?.includes(e)){var i=p.deps;if((p.f&pt)!==0)e.rv<Be&&(e.rv=Be,N===null&&i!==null&&i[B]===e?B++:N===null?N=[e]:N.includes(e)||N.push(e));else{(p.deps??=[]).push(e);var s=e.reactions;s===null?e.reactions=[p]:s.includes(p)||s.push(p)}}}if(Ee){if(he.has(e))return he.get(e);if(r){var a=e,o=a.v;return((a.f&A)===0&&a.reactions!==null||Nr(a))&&(o=Et(a)),he.set(a,o),o}}else if(r){if(a=e,j?.has(a))return j.get(a);qe(a)&&nr(a),$e&&st()&&(a.f&V)===0&&zr(a)}else if(j?.has(e))return j.get(e);if((e.f&ce)!==0)throw e.v;return e.v}function zr(e){if(e.deps!==null){e.f^=V;for(const t of e.deps)(t.reactions??=[]).push(e),(t.f&S)!==0&&(t.f&V)===0&&zr(t)}}function Nr(e){if(e.v===k)return!0;if(e.deps===null)return!1;for(const t of e.deps)if(he.has(t)||(t.f&S)!==0&&Nr(t))return!0;return!1}function Rr(e){var t=X;try{return X=!0,e()}finally{X=t}}const Gn=-7169;function z(e,t){e.f=e.f&Gn|t}const Or=new Set,Ct=new Set;function Jn(e){for(var t=0;t<e.length;t++)Or.add(e[t]);for(var r of Ct)r(e)}let Dr=null;function ot(e){var t=this,r=t.ownerDocument,n=e.type,i=e.composedPath?.()||[],s=i[0]||e.target;Dr=e;var a=0,o=Dr===e&&e.__root;if(o){var l=i.indexOf(o);if(l!==-1&&(t===document||t===window)){e.__root=t;return}var f=i.indexOf(t);if(f===-1)return;l<=f&&(a=l)}if(s=i[a]||e.target,s!==t){Ge(e,"currentTarget",{configurable:!0,get(){return s||r}});var c=p,h=b;M(null),Z(null);try{for(var u,d=[];s!==null;){var v=s.assignedSlot||s.parentNode||s.host||null;try{var _=s["__"+n];_!=null&&(!s.disabled||e.target===s)&&_.call(s,e)}catch(g){u?d.push(g):u=g}if(e.cancelBubble||v===t||v===null)break;s=v}if(u){for(let g of d)queueMicrotask(()=>{throw g});throw u}}finally{e.__root=t,delete e.currentTarget,M(c),Z(h)}}}function Kn(e){var t=document.createElement("template");return t.innerHTML=e.replaceAll("<!>","<!---->"),t.content}function He(e,t){var r=b;r.nodes_start===null&&(r.nodes_start=e,r.nodes_end=t)}function Xn(e,t){var r=(t&Zr)!==0,n,i=!e.startsWith("<!>");return()=>{if($)return He(m,null),m;n===void 0&&(n=Kn(i?e:"<!>"+e),n=je(n));var s=r||lr?document.importNode(n,!0):n.cloneNode(!0);return He(s,s),s}}function Mr(){if($)return He(m,null),m;var e=document.createDocumentFragment(),t=document.createComment(""),r=G();return e.append(t,r),He(t,r),e}function lt(e,t){if($){b.nodes_end=m,Qe();return}e!==null&&e.before(t)}const Zn=["touchstart","touchmove"];function Qn(e){return Zn.includes(e)}function ft(e,t){var r=t==null?"":typeof t=="object"?t+"":t;r!==(e.__t??=e.nodeValue)&&(e.__t=r,e.nodeValue=r+"")}function Pr(e,t){return Lr(e,t)}function ei(e,t){Tt(),t.intro=t.intro??!1;const r=t.target,n=$,i=m;try{for(var s=je(r);s&&(s.nodeType!==Ne||s.data!==Dt);)s=J(s);if(!s)throw Ae;ne(!0),F(s);const a=Lr(e,{...t,anchor:s});return ne(!1),a}catch(a){if(a instanceof Error&&a.message.split(`
|
|
2
|
-
`).some(o=>o.startsWith("https://svelte.dev/e/")))throw a;return a!==Ae&&console.warn("Failed to hydrate: ",a),t.recover===!1&&hn(),Tt(),dr(r),ne(!1),Pr(e,t)}finally{ne(n),F(i)}}const Me=new Map;function Lr(e,{target:t,anchor:r,props:n={},events:i,context:s,intro:a=!0}){Tt();var o=new Set,l=h=>{for(var u=0;u<h.length;u++){var d=h[u];if(!o.has(d)){o.add(d);var v=Qn(d);t.addEventListener(d,ot,{passive:v});var _=Me.get(d);_===void 0?(document.addEventListener(d,ot,{passive:v}),Me.set(d,1)):Me.set(d,_+1)}}};l(ht(Or)),Ct.add(l);var f=void 0,c=Fn(()=>{var h=r??t.appendChild(G());return Sn(h,{pending:()=>{}},u=>{if(s){Yt({});var d=q;d.c=s}if(i&&(n.$$events=i),$&&He(u,null),f=e(u,n)||{},$&&(b.nodes_end=m,m===null||m.nodeType!==Ne||m.data!==dt))throw Ze(),Ae;s&&Wt()}),()=>{for(var u of o){t.removeEventListener(u,ot);var d=Me.get(u);--d===0?(document.removeEventListener(u,ot),Me.delete(u)):Me.set(u,d)}Ct.delete(l),h!==r&&h.parentNode?.removeChild(h)}});return zt.set(f,c),f}let zt=new WeakMap;function ti(e,t){const r=zt.get(e);return r?(zt.delete(e),r(t)):Promise.resolve()}class ri{anchor;#t=new Map;#e=new Map;#r=new Map;#n=!0;constructor(t,r=!0){this.anchor=t,this.#n=r}#l=()=>{var t=T;if(this.#t.has(t)){var r=this.#t.get(t),n=this.#e.get(r);if(n)At(n);else{var i=this.#r.get(r);i&&(this.#e.set(r,i.effect),this.#r.delete(r),i.fragment.lastChild.remove(),this.anchor.before(i.fragment),n=i.effect)}for(const[s,a]of this.#t){if(this.#t.delete(s),s===t)break;const o=this.#r.get(a);o&&(C(o.effect),this.#r.delete(a))}for(const[s,a]of this.#e){if(s===r)continue;const o=()=>{if(Array.from(this.#t.values()).includes(s)){var f=document.createDocumentFragment();$r(a,f),f.append(G()),this.#r.set(s,{effect:a,fragment:f})}else C(a);this.#e.delete(s)};this.#n||!n?De(a,o,!1):o()}}};#a=t=>{this.#t.delete(t);const r=Array.from(this.#t.values());for(const[n,i]of this.#r)r.includes(n)||(C(i.effect),this.#r.delete(n))};ensure(t,r){var n=T,i=hr();if(r&&!this.#e.has(t)&&!this.#r.has(t))if(i){var s=document.createDocumentFragment(),a=G();s.append(a),this.#r.set(t,{effect:U(()=>r(a)),fragment:s})}else this.#e.set(t,U(()=>r(this.anchor)));if(this.#t.set(n,t),i){for(const[o,l]of this.#e)o===t?n.skipped_effects.delete(l):n.skipped_effects.add(l);for(const[o,l]of this.#r)o===t?n.skipped_effects.delete(l.effect):n.skipped_effects.add(l.effect);n.oncommit(this.#l),n.ondiscard(this.#a)}else $&&(this.anchor=m),this.#l()}}function ni(e,t,r=!1){$&&Qe();var n=new ri(e),i=r?Ce:0;function s(a,o){if($){const f=Ut(e)===Ye;if(a===f){var l=et();F(l),n.anchor=l,ne(!1),n.ensure(a,o),ne(!0);return}}n.ensure(a,o)}kt(()=>{var a=!1;t((o,l=!0)=>{a=!0,s(l,o)}),a||s(!1,null)},i)}function ii(e,t,r){for(var n=e.items,i=[],s=t.length,a=0;a<s;a++)St(t[a].e,i,!0);var o=s>0&&i.length===0&&r!==null;if(o){var l=r.parentNode;dr(l),l.append(r),n.clear(),Q(e,t[0].prev,t[s-1].next)}wr(i,()=>{for(var f=0;f<s;f++){var c=t[f];o||(n.delete(c.k),Q(e,c.prev,c.next)),C(c.e,!o)}})}function si(e,t,r,n,i,s=null){var a=e,o={flags:t,items:new Map,first:null};$&&Qe();var l=null,f=!1,c=new Map,h=tr(()=>{var _=r();return Pt(_)?_:_==null?[]:ht(_)}),u,d;function v(){ai(d,u,o,c,a,i,t,n,r),s!==null&&(u.length===0?l?At(l):l=U(()=>s(a)):l!==null&&De(l,()=>{l=null}))}kt(()=>{d??=b,u=x(h);var _=u.length;if(f&&_===0)return;f=_===0;let g=!1;if($){var R=Ut(a)===Ye;R!==(_===0)&&(a=et(),F(a),ne(!1),g=!0)}if($){for(var w=null,y,E=0;E<_;E++){if(m.nodeType===Ne&&m.data===dt){a=m,g=!0,ne(!1);break}var O=u[E],P=n(O,E);y=Nt(m,o,w,null,O,P,E,i,t,r),o.items.set(P,y),w=y}_>0&&F(et())}if($)_===0&&s&&(l=U(()=>s(a)));else if(hr()){var _e=new Set,le=T;for(E=0;E<_;E+=1){O=u[E],P=n(O,E);var L=o.items.get(P)??c.get(P);L?Ir(L,O,E):(y=Nt(null,o,null,null,O,P,E,i,t,r,!0),c.set(P,y)),_e.add(P)}for(const[ke,Se]of o.items)_e.has(ke)||le.skipped_effects.add(Se.e);le.oncommit(v)}else v();g&&ne(!0),x(h)}),$&&(a=m)}function ai(e,t,r,n,i,s,a,o,l){var f=t.length,c=r.items,h=r.first,u=h,d,v=null,_=[],g=[],R,w,y,E;for(E=0;E<f;E+=1){if(R=t[E],w=o(R,E),y=c.get(w),y===void 0){var O=n.get(w);if(O!==void 0){n.delete(w),c.set(w,O);var P=v?v.next:u;Q(r,v,O),Q(r,O,P),Rt(O,P,i),v=O}else{var _e=u?u.e.nodes_start:i;v=Nt(_e,r,v,v===null?r.first:v.next,R,w,E,s,a,l)}c.set(w,v),_=[],g=[],u=v.next;continue}if(Ir(y,R,E),(y.e.f&I)!==0&&At(y.e),y!==u){if(d!==void 0&&d.has(y)){if(_.length<g.length){var le=g[0],L;v=le.prev;var ke=_[0],Se=_[_.length-1];for(L=0;L<_.length;L+=1)Rt(_[L],le,i);for(L=0;L<g.length;L+=1)d.delete(g[L]);Q(r,ke.prev,Se.next),Q(r,v,ke),Q(r,Se,le),u=le,v=Se,E-=1,_=[],g=[]}else d.delete(y),Rt(y,u,i),Q(r,y.prev,y.next),Q(r,y,v===null?r.first:v.next),Q(r,v,y),v=y;continue}for(_=[],g=[];u!==null&&u.k!==w;)(u.e.f&I)===0&&(d??=new Set).add(u),g.push(u),u=u.next;if(u===null)continue;y=u}_.push(y),v=y,u=y.next}if(u!==null||d!==void 0){for(var Ve=d===void 0?[]:ht(d);u!==null;)(u.e.f&I)===0&&Ve.push(u),u=u.next;var $i=Ve.length;if($i>0){var Ei=null;ii(r,Ve,Ei)}}e.first=r.first&&r.first.e,e.last=v&&v.e;for(var xi of n.values())C(xi.e);n.clear()}function Ir(e,t,r,n){Ie(e.v,t),e.i=r}function Nt(e,t,r,n,i,s,a,o,l,f,c){var h=(l&Vr)!==0,u=(l&Wr)===0,d=h?u?sr(i,!1,!1):we(i):i,v=(l&Yr)===0?a:we(a),_={i:v,v:d,k:s,a:null,e:null,prev:r,next:n};try{if(e===null){var g=document.createDocumentFragment();g.append(e=G())}return _.e=U(()=>o(e,d,v,f),$),_.e.prev=r&&r.e,_.e.next=n&&n.e,r===null?c||(t.first=_):(r.next=_,r.e.next=_.e),n!==null&&(n.prev=_,n.e.prev=_.e),_}finally{}}function Rt(e,t,r){for(var n=e.next?e.next.e.nodes_start:r,i=t?t.e.nodes_start:r,s=e.e.nodes_start;s!==null&&s!==n;){var a=J(s);i.before(s),s=a}}function Q(e,t,r){t===null?e.first=r:(t.next=r,t.e.next=r&&r.e),r!==null&&(r.prev=t,r.e.prev=t&&t.e)}function oi(e,t){jn(()=>{var r=e.getRootNode(),n=r.host?r:r.head??r.ownerDocument.head;if(!n.querySelector("#"+t.hash)){const i=document.createElement("style");i.id=t.hash,i.textContent=t.code,n.appendChild(i)}})}function li(e,t){return e==null?null:String(e)}function fi(e,t,r,n){var i=e.__style;if($||i!==t){var s=li(t);(!$||s!==e.getAttribute("style"))&&(s==null?e.removeAttribute("style"):e.style.cssText=s),e.__style=t}return n}const ui=Symbol("is custom element"),ci=Symbol("is html");function Fr(e,t,r,n){var i=di(e);$&&(i[t]=e.getAttribute(t),t==="src"||t==="srcset"||t==="href"&&e.nodeName==="LINK")||i[t]!==(i[t]=r)&&(t==="loading"&&(e[on]=r),r==null?e.removeAttribute(t):typeof r!="string"&&hi(e).includes(t)?e[t]=r:e.setAttribute(t,r))}function di(e){return e.__attributes??={[ui]:e.nodeName.includes("-"),[ci]:e.namespaceURI===Qr}}var jr=new Map;function hi(e){var t=e.getAttribute("is")||e.nodeName,r=jr.get(t);if(r)return r;jr.set(t,r=[]);for(var n,i=e,s=Element.prototype;s!==i;){n=tn(i);for(var a in n)n[a].set&&r.push(a);i=Lt(i)}return r}let ut=!1;function vi(e){var t=ut;try{return ut=!1,[e(),ut]}finally{ut=t}}function Br(e,t,r,n){var i=(r&Kr)!==0,s=(r&Xr)!==0,a=n,o=!0,l=()=>(o&&(o=!1,a=s?Rr(n):n),a),f;if(i){var c=Xe in e||qt in e;f=pe(e,t)?.set??(c&&t in e?w=>e[t]=w:void 0)}var h,u=!1;i?[h,u]=vi(()=>e[t]):h=e[t],h===void 0&&n!==void 0&&(h=l(),f&&(vn(),f(h)));var d;if(d=()=>{var w=e[t];return w===void 0?l():(o=!0,w)},(r&Jr)===0)return d;if(f){var v=e.$$legacy;return(function(w,y){return arguments.length>0?((!y||v||u)&&f(y?d():w),w):d()})}var _=!1,g=((r&Gr)!==0?$t:tr)(()=>(_=!1,d()));i&&x(g);var R=b;return(function(w,y){if(arguments.length>0){const E=y?x(g):i?ye(w):w;return ae(g,E),_=!0,a!==void 0&&(a=E),w}return Ee&&_||(R.f&ue)!==0?g.v:x(g)})}function _i(e){return new pi(e)}class pi{#t;#e;constructor(t){var r=new Map,n=(s,a)=>{var o=sr(a,!1,!1);return r.set(s,o),o};const i=new Proxy({...t.props||{},$$events:{}},{get(s,a){return x(r.get(a)??n(a,Reflect.get(s,a)))},has(s,a){return a===qt?!0:(x(r.get(a)??n(a,Reflect.get(s,a))),Reflect.has(s,a))},set(s,a,o){return ae(r.get(a)??n(a,o),o),Reflect.set(s,a,o)}});this.#e=(t.hydrate?ei:Pr)(t.component,{target:t.target,anchor:t.anchor,props:i,context:t.context,intro:t.intro??!1,recover:t.recover}),(!t?.props?.$$host||t.sync===!1)&&yt(),this.#t=i.$$events;for(const s of Object.keys(this.#e))s==="$set"||s==="$destroy"||s==="$on"||Ge(this,s,{get(){return this.#e[s]},set(a){this.#e[s]=a},enumerable:!0});this.#e.$set=s=>{Object.assign(i,s)},this.#e.$destroy=()=>{ti(this.#e)}}$set(t){this.#e.$set(t)}$on(t,r){this.#t[t]=this.#t[t]||[];const n=(...i)=>r.call(this,...i);return this.#t[t].push(n),()=>{this.#t[t]=this.#t[t].filter(i=>i!==n)}}$destroy(){this.#e.$destroy()}}let qr;typeof HTMLElement=="function"&&(qr=class extends HTMLElement{$$ctor;$$s;$$c;$$cn=!1;$$d={};$$r=!1;$$p_d={};$$l={};$$l_u=new Map;$$me;constructor(e,t,r){super(),this.$$ctor=e,this.$$s=t,r&&this.attachShadow({mode:"open"})}addEventListener(e,t,r){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(t),this.$$c){const n=this.$$c.$on(e,t);this.$$l_u.set(t,n)}super.addEventListener(e,t,r)}removeEventListener(e,t,r){if(super.removeEventListener(e,t,r),this.$$c){const n=this.$$l_u.get(t);n&&(n(),this.$$l_u.delete(t))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let e=function(n){return i=>{const s=document.createElement("slot");n!=="default"&&(s.name=n),lt(i,s)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const t={},r=bi(this);for(const n of this.$$s)n in r&&(n==="default"&&!this.$$d.children?(this.$$d.children=e(n),t.default=!0):t[n]=e(n));for(const n of this.attributes){const i=this.$$g_p(n.name);i in this.$$d||(this.$$d[i]=ct(i,n.value,this.$$p_d,"toProp"))}for(const n in this.$$p_d)!(n in this.$$d)&&this[n]!==void 0&&(this.$$d[n]=this[n],delete this[n]);this.$$c=_i({component:this.$$ctor,target:this.shadowRoot||this,props:{...this.$$d,$$slots:t,$$host:this}}),this.$$me=In(()=>{pr(()=>{this.$$r=!0;for(const n of We(this.$$c)){if(!this.$$p_d[n]?.reflect)continue;this.$$d[n]=this.$$c[n];const i=ct(n,this.$$d[n],this.$$p_d,"toAttribute");i==null?this.removeAttribute(this.$$p_d[n].attribute||n):this.setAttribute(this.$$p_d[n].attribute||n,i)}this.$$r=!1})});for(const n in this.$$l)for(const i of this.$$l[n]){const s=this.$$c.$on(n,i);this.$$l_u.set(i,s)}this.$$l={}}}attributeChangedCallback(e,t,r){this.$$r||(e=this.$$g_p(e),this.$$d[e]=ct(e,r,this.$$p_d,"toProp"),this.$$c?.$set({[e]:this.$$d[e]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$me(),this.$$c=void 0)})}$$g_p(e){return We(this.$$p_d).find(t=>this.$$p_d[t].attribute===e||!this.$$p_d[t].attribute&&t.toLowerCase()===e)||e}});function ct(e,t,r,n){const i=r[e]?.type;if(t=i==="Boolean"&&typeof t!="boolean"?t!=null:t,!n||!r[e])return t;if(n==="toAttribute")switch(i){case"Object":case"Array":return t==null?null:JSON.stringify(t);case"Boolean":return t?"":null;case"Number":return t??null;default:return t}else switch(i){case"Object":case"Array":return t&&JSON.parse(t);case"Boolean":return t;case"Number":return t!=null?+t:t;default:return t}}function bi(e){const t={};return e.childNodes.forEach(r=>{t[r.slot||"default"]=!0}),t}function gi(e,t,r,n,i,s){let a=class extends qr{constructor(){super(e,r,i),this.$$p_d=t}static get observedAttributes(){return We(t).map(o=>(t[o].attribute||o).toLowerCase())}};return We(t).forEach(o=>{Ge(a.prototype,o,{get(){return this.$$c&&o in this.$$c?this.$$c[o]:this.$$d[o]},set(l){l=ct(o,l,t),this.$$d[o]=l;var f=this.$$c;if(f){var c=pe(f,o)?.get;c?f[o]=l:f.$set({[o]:l})}}})}),n.forEach(o=>{Ge(a.prototype,o,{get(){return this.$$c?.[o]}})}),e.element=a,a}var Te={},Ur;function mi(){if(Ur)return Te;Ur=1,Object.defineProperty(Te,"__esModule",{value:!0}),Te.LanguageTranslator=void 0,Te.getChildStyleToPass=e,Te.addComponent=t;function e(n,i){var s,a,o="";try{if(n&&i?.length&&(!((s=Object.keys(n))===null||s===void 0)&&s.length)&&(!((a=i?.filter(function(u){return Object.keys(n).includes(u.name)}))===null||a===void 0)&&a.length))for(var l=function(u){var d=i?.filter(function(v){return v.name===u&&v.defaultValue!==n[u]});d&&(o+="".concat(u,":").concat(n[u],";"))},f=0,c=Object.keys(n);f<c.length;f++){var h=c[f];l(h)}}catch(u){console.error("error getting child style to pass",u)}finally{return o}}function t(n){var i,s=((i=n?.repoName.split("/"))===null||i===void 0?void 0:i[1])||n?.repoName;if(!s)throw new Error("wrong componentPath "+n?.repoName);if(!n?.version)throw new Error("wrong version "+n?.version);var a=n?.iifePath||"main.iife.js";if(!document.getElementById(s+"-script"))try{var o=document.createElement("script");if(o.id=s+"-script",o.src="https://cdn.jsdelivr.net/npm/".concat(n.repoName,"@").concat(n.version,"/").concat(a),n?.local)o.src="".concat(n.local);else if(location.href.includes("localhost:6006")){var l=s.split("-")[0];o.src="http://localhost:6006/webcomponents/".concat(s.replace(l+"-",""),"/").concat(a)}document.head.appendChild(o)}catch(f){console.warn(f)}}var r=(function(){function n(i){if(this.lang="",!i?.dictionary)throw new Error("no dictionary provided");this.dictionary=i.dictionary,this.setLang(i?.lang)}return n.prototype.setLang=function(i){i||(i=n.getDefaultLang()),this.lang=i},n.prototype.translateWord=function(i,s){return n.getDictionaryWord(i,this.dictionary,s||this.lang)},n.prototype.translateDate=function(i,s,a){return n.formatDate(i,s,a||this.lang)},n.getDefaultLang=function(){var i,s,a,o="en";return navigator?.languages&&(!((a=(s=(i=navigator.languages[0])===null||i===void 0?void 0:i.split("-")[0])===null||s===void 0?void 0:s.toLowerCase())===null||a===void 0)&&a.length)&&(o=navigator.languages[0].split("-")[0].toLowerCase()),o},n.getDictionaryWord=function(i,s,a){var o;if(!i)throw new Error("no wordKey provided");if(!s)throw new Error("no dictionary provided");if(a&&(!((o=s[a])===null||o===void 0)&&o[i]))return s[a][i];var l="",f=n.getDefaultLang();if(!a||f!==a){var c=s?.[f];c?.[i]&&(l=c[i])}return l},n.formatDate=function(i,s,a){if(!i)throw new Error("no date provided");if(typeof i.getMonth!="function")throw new Error("wrong date format");var o=new Intl.DateTimeFormat(a||n.getDefaultLang(),s);return o.format(i)},n})();return Te.LanguageTranslator=r,Te}mi();var wi=Xn('<div class="grid svelte-5z4pea"><img class="svelte-5z4pea"/> <div class="header svelte-5z4pea"><span class="text-item title svelte-5z4pea"> </span> <span class="text-item right time svelte-5z4pea"> </span></div> <div class="details svelte-5z4pea"><span class="description text-item svelte-5z4pea"> </span> <span class="counter text-item right svelte-5z4pea"><span class="badge rounded-pill bg-secondary svelte-5z4pea"> </span></span></div></div>');const yi={hash:"svelte-5z4pea",code:`@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");
|
|
1
|
+
(function(Dt){"use strict";typeof window<"u"&&((window.__svelte??={}).v??=new Set).add("5");const Ur=1,Hr=2,Vr=16,Yr=1,Wr=4,Gr=8,Jr=16,Kr=2,Mt="[",He="[!",ht="]",Se={},T=Symbol(),Xr="http://www.w3.org/1999/xhtml",vt=!1;var Pt=Array.isArray,Zr=Array.prototype.indexOf,_t=Array.from,Ve=Object.keys,Ye=Object.defineProperty,_e=Object.getOwnPropertyDescriptor,Qr=Object.getOwnPropertyDescriptors,en=Object.prototype,tn=Array.prototype,Lt=Object.getPrototypeOf,It=Object.isExtensible;function rn(e){for(var t=0;t<e.length;t++)e[t]()}function Ft(){var e,t,r=new Promise((n,i)=>{e=n,t=i});return{promise:r,resolve:e,reject:t}}const x=2,pt=4,bt=8,ee=16,te=32,fe=64,We=128,V=512,S=1024,N=2048,re=4096,D=8192,ne=16384,Ge=32768,Ae=65536,jt=1<<17,Bt=1<<18,pe=1<<19,nn=1<<20,be=32768,gt=1<<21,mt=1<<22,ue=1<<23,Je=Symbol("$state"),qt=Symbol("legacy props"),sn=Symbol(""),Ce=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"},wt=3,ze=8;function an(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function on(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function ln(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function fn(e){throw new Error("https://svelte.dev/e/effect_orphan")}function un(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function cn(){throw new Error("https://svelte.dev/e/hydration_failed")}function dn(e){throw new Error("https://svelte.dev/e/props_invalid_value")}function hn(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function vn(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function _n(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function pn(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}function Ke(e){console.warn("https://svelte.dev/e/hydration_mismatch")}function bn(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}let w=!1;function ie(e){w=e}let b;function M(e){if(e===null)throw Ke(),Se;return b=e}function Xe(){return M(J(b))}function ce(e){if(w){if(J(b)!==null)throw Ke(),Se;b=e}}function gn(e=1){if(w){for(var t=e,r=b;t--;)r=J(r);b=r}}function Ze(e=!0){for(var t=0,r=b;;){if(r.nodeType===ze){var n=r.data;if(n===ht){if(t===0)return r;t-=1}else(n===Mt||n===He)&&(t+=1)}var i=J(r);e&&r.remove(),r=i}}function Ut(e){if(!e||e.nodeType!==ze)throw Ke(),Se;return e.data}function Ht(e){return e===this.v}function mn(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function Vt(e){return!mn(e,this.v)}let wn=!1,I=null;function Ne(e){I=e}function Yt(e,t=!1,r){I={p:I,i:!1,c:null,e:null,s:e,x:null,l:null}}function Wt(e){var t=I,r=t.e;if(r!==null){t.e=null;for(var n of r)_r(n)}return e!==void 0&&(t.x=e),t.i=!0,I=t.p,e??{}}function Gt(){return!0}let ge=[];function Jt(){var e=ge;ge=[],rn(e)}function yt(e){if(ge.length===0&&!Me){var t=ge;queueMicrotask(()=>{t===ge&&Jt()})}ge.push(e)}function yn(){for(;ge.length>0;)Jt()}function Kt(e){var t=p;if(t===null)return _.f|=ue,e;if((t.f&Ge)===0){if((t.f&We)===0)throw e;t.b.error(e)}else Re(e,t)}function Re(e,t){for(;t!==null;){if((t.f&We)!==0)try{t.b.error(e);return}catch(r){e=r}t=t.parent}throw e}const Qe=new Set;let E=null,F=null,j=[],et=null,$t=!1,Me=!1;class Y{committed=!1;current=new Map;previous=new Map;#t=new Set;#e=new Set;#r=0;#n=0;#l=null;#s=[];#i=[];skipped_effects=new Set;is_fork=!1;is_deferred(){return this.is_fork||this.#n>0}process(t){j=[],this.apply();var r={parent:null,effect:null,effects:[],render_effects:[],block_effects:[]};for(const n of t)this.#a(n,r);this.is_fork||this.#u(),this.is_deferred()?(this.#o(r.effects),this.#o(r.render_effects),this.#o(r.block_effects)):(E=null,Zt(r.render_effects),Zt(r.effects),this.#l?.resolve()),F=null}#a(t,r){t.f^=S;for(var n=t.first;n!==null;){var i=n.f,s=(i&(te|fe))!==0,a=s&&(i&S)!==0,o=a||(i&D)!==0||this.skipped_effects.has(n);if((n.f&We)!==0&&n.b?.is_pending()&&(r={parent:r,effect:n,effects:[],render_effects:[],block_effects:[]}),!o&&n.fn!==null){s?n.f^=S:(i&pt)!==0?r.effects.push(n):je(n)&&((n.f&ee)!==0&&r.block_effects.push(n),Be(n));var f=n.first;if(f!==null){n=f;continue}}var l=n.parent;for(n=n.next;n===null&&l!==null;)l===r.effect&&(this.#o(r.effects),this.#o(r.render_effects),this.#o(r.block_effects),r=r.parent),n=l.next,l=l.parent}}#o(t){for(const r of t)((r.f&N)!==0?this.#s:this.#i).push(r),this.#f(r.deps),A(r,S)}#f(t){if(t!==null)for(const r of t)(r.f&x)===0||(r.f&be)===0||(r.f^=be,this.#f(r.deps))}capture(t,r){this.previous.has(t)||this.previous.set(t,r),(t.f&ue)===0&&(this.current.set(t,t.v),F?.set(t,t.v))}activate(){E=this,this.apply()}deactivate(){E===this&&(E=null,F=null)}flush(){if(this.activate(),j.length>0){if(Xt(),E!==null&&E!==this)return}else this.#r===0&&this.process([]);this.deactivate()}discard(){for(const t of this.#e)t(this);this.#e.clear()}#u(){if(this.#n===0){for(const t of this.#t)t();this.#t.clear()}this.#r===0&&this.#c()}#c(){if(Qe.size>1){this.previous.clear();var t=F,r=!0,n={parent:null,effect:null,effects:[],render_effects:[],block_effects:[]};for(const s of Qe){if(s===this){r=!1;continue}const a=[];for(const[f,l]of this.current){if(s.current.has(f))if(r&&l!==s.current.get(f))s.current.set(f,l);else continue;a.push(f)}if(a.length===0)continue;const o=[...s.current.keys()].filter(f=>!this.current.has(f));if(o.length>0){var i=j;j=[];const f=new Set,l=new Map;for(const u of a)Qt(u,o,f,l);if(j.length>0){E=s,s.apply();for(const u of j)s.#a(u,n);s.deactivate()}j=i}}E=null,F=t}this.committed=!0,Qe.delete(this)}increment(t){this.#r+=1,t&&(this.#n+=1)}decrement(t){this.#r-=1,t&&(this.#n-=1),this.revive()}revive(){for(const t of this.#s)A(t,N),me(t);for(const t of this.#i)A(t,re),me(t);this.#s=[],this.#i=[],this.flush()}oncommit(t){this.#t.add(t)}ondiscard(t){this.#e.add(t)}settled(){return(this.#l??=Ft()).promise}static ensure(){if(E===null){const t=E=new Y;Qe.add(E),Me||Y.enqueue(()=>{E===t&&t.flush()})}return E}static enqueue(t){yt(t)}apply(){}}function Et(e){var t=Me;Me=!0;try{for(var r;;){if(yn(),j.length===0&&(E?.flush(),j.length===0))return et=null,r;Xt()}}finally{Me=t}}function Xt(){var e=ve;$t=!0;var t=null;try{var r=0;for(it(!0);j.length>0;){var n=Y.ensure();if(r++>1e3){var i,s;$n()}n.process(j),de.clear()}}finally{$t=!1,it(e),et=null}}function $n(){try{un()}catch(e){Re(e,et)}}let se=null;function Zt(e){var t=e.length;if(t!==0){for(var r=0;r<t;){var n=e[r++];if((n.f&(ne|D))===0&&je(n)&&(se=new Set,Be(n),n.deps===null&&n.first===null&&n.nodes_start===null&&(n.teardown===null&&n.ac===null?mr(n):n.fn=null),se?.size>0)){de.clear();for(const i of se){if((i.f&(ne|D))!==0)continue;const s=[i];let a=i.parent;for(;a!==null;)se.has(a)&&(se.delete(a),s.push(a)),a=a.parent;for(let o=s.length-1;o>=0;o--){const f=s[o];(f.f&(ne|D))===0&&Be(f)}}se.clear()}}se=null}}function Qt(e,t,r,n){if(!r.has(e)&&(r.add(e),e.reactions!==null))for(const i of e.reactions){const s=i.f;(s&x)!==0?Qt(i,t,r,n):(s&(mt|ee))!==0&&(s&N)===0&&er(i,t,n)&&(A(i,N),me(i))}}function er(e,t,r){const n=r.get(e);if(n!==void 0)return n;if(e.deps!==null)for(const i of e.deps){if(t.includes(i))return!0;if((i.f&x)!==0&&er(i,t,r))return r.set(i,!0),!0}return r.set(e,!1),!1}function me(e){for(var t=et=e;t.parent!==null;){t=t.parent;var r=t.f;if($t&&t===p&&(r&ee)!==0&&(r&Bt)===0)return;if((r&(fe|te))!==0){if((r&S)===0)return;t.f^=S}}j.push(t)}function En(e){let t=0,r=we(0),n;return()=>{nt()&&($(r),pr(()=>(t===0&&(n=Nr(()=>e(()=>Le(r)))),t+=1,()=>{yt(()=>{t-=1,t===0&&(n?.(),n=void 0,Le(r))})})))}}var xn=Ae|pe|We;function kn(e,t,r){new Tn(e,t,r)}class Tn{parent;#t=!1;#e;#r=w?b:null;#n;#l;#s;#i=null;#a=null;#o=null;#f=null;#u=null;#c=0;#d=0;#v=!1;#h=null;#m=En(()=>(this.#h=we(this.#c),()=>{this.#h=null}));constructor(t,r,n){this.#e=t,this.#n=r,this.#l=n,this.parent=p.b,this.#t=!!this.#n.pending,this.#s=Ct(()=>{if(p.b=this,w){const s=this.#r;Xe(),s.nodeType===ze&&s.data===He?this.#y():this.#w()}else{var i=this.#b();try{this.#i=B(()=>n(i))}catch(s){this.error(s)}this.#d>0?this.#p():this.#t=!1}return()=>{this.#u?.remove()}},xn),w&&(this.#e=b)}#w(){try{this.#i=B(()=>this.#l(this.#e))}catch(t){this.error(t)}this.#t=!1}#y(){const t=this.#n.pending;t&&(this.#a=B(()=>t(this.#e)),Y.enqueue(()=>{var r=this.#b();this.#i=this.#_(()=>(Y.ensure(),B(()=>this.#l(r)))),this.#d>0?this.#p():(Oe(this.#a,()=>{this.#a=null}),this.#t=!1)}))}#b(){var t=this.#e;return this.#t&&(this.#u=W(),this.#e.before(this.#u),t=this.#u),t}is_pending(){return this.#t||!!this.parent&&this.parent.is_pending()}has_pending_snippet(){return!!this.#n.pending}#_(t){var r=p,n=_,i=I;Z(this.#s),R(this.#s),Ne(this.#s.ctx);try{return t()}catch(s){return Kt(s),null}finally{Z(r),R(n),Ne(i)}}#p(){const t=this.#n.pending;this.#i!==null&&(this.#f=document.createDocumentFragment(),this.#f.append(this.#u),$r(this.#i,this.#f)),this.#a===null&&(this.#a=B(()=>t(this.#e)))}#g(t){if(!this.has_pending_snippet()){this.parent&&this.parent.#g(t);return}this.#d+=t,this.#d===0&&(this.#t=!1,this.#a&&Oe(this.#a,()=>{this.#a=null}),this.#f&&(this.#e.before(this.#f),this.#f=null))}update_pending_count(t){this.#g(t),this.#c+=t,this.#h&&Pe(this.#h,this.#c)}get_effect_pending(){return this.#m(),$(this.#h)}error(t){var r=this.#n.onerror;let n=this.#n.failed;if(this.#v||!r&&!n)throw t;this.#i&&(C(this.#i),this.#i=null),this.#a&&(C(this.#a),this.#a=null),this.#o&&(C(this.#o),this.#o=null),w&&(M(this.#r),gn(),M(Ze()));var i=!1,s=!1;const a=()=>{if(i){bn();return}i=!0,s&&pn(),Y.ensure(),this.#c=0,this.#o!==null&&Oe(this.#o,()=>{this.#o=null}),this.#t=this.has_pending_snippet(),this.#i=this.#_(()=>(this.#v=!1,B(()=>this.#l(this.#e)))),this.#d>0?this.#p():this.#t=!1};var o=_;try{R(null),s=!0,r?.(t,a),s=!1}catch(f){Re(f,this.#s&&this.#s.parent)}finally{R(o)}n&&yt(()=>{this.#o=this.#_(()=>{Y.ensure(),this.#v=!0;try{return B(()=>{n(this.#e,()=>t,()=>a)})}catch(f){return Re(f,this.#s.parent),null}finally{this.#v=!1}})})}}function Sn(e,t,r){for(var n=[],i=t.length,s=0;s<i;s++)zt(t[s].e,n,!0);wr(n,()=>{var a=n.length===0&&r!==null;if(a){var o=r,f=o.parentNode;dr(f),f.append(o),e.items.clear(),G(e,t[0].prev,t[i-1].next)}for(var l=0;l<i;l++){var u=t[l];a||(e.items.delete(u.k),G(e,u.prev,u.next)),C(u.e,!a)}e.first===t[0]&&(e.first=t[0].prev)})}function An(e,t,r,n,i,s=null){var a=e,o=new Map,f=null;w&&Xe();var l=null,u=tr(()=>{var g=r();return Pt(g)?g:g==null?[]:_t(g)}),d,c=!0;function h(){Cn(y,d,a,t,n),l!==null&&(d.length===0?(l.fragment?(a.before(l.fragment),l.fragment=null):Nt(l.effect),v.first=l.effect):Oe(l.effect,()=>{l=null}))}var v=Ct(()=>{d=$(u);var g=d.length;let k=!1;if(w){var m=Ut(a)===He;m!==(g===0)&&(a=Ze(),M(a),ie(!1),k=!0)}for(var U=new Set,O=E,Q=null,ke=hr(),H=0;H<g;H+=1){w&&b.nodeType===ze&&b.data===ht&&(a=b,k=!0,ie(!1));var Ue=d[H],Te=n(Ue,H),L=c?null:o.get(Te);L?(Pe(L.v,Ue),L.i=H,ke&&O.skipped_effects.delete(L.e)):(L=zn(c?a:null,Q,Ue,Te,H,i,t,r),c&&(L.o=!0,Q===null?f=L:Q.next=L,Q=L),o.set(Te,L)),U.add(Te)}if(g===0&&s&&!l)if(c)l={fragment:null,effect:B(()=>s(a))};else{var ct=document.createDocumentFragment(),dt=W();ct.append(dt),l={fragment:ct,effect:B(()=>s(dt))}}if(w&&g>0&&M(Ze()),!c)if(ke){for(const[yi,$i]of o)U.has(yi)||O.skipped_effects.add($i.e);O.oncommit(h),O.ondiscard(()=>{})}else h();k&&ie(!0),$(u)}),y={effect:v,items:o,first:f};c=!1,w&&(a=b)}function Cn(e,t,r,n,i){var s=t.length,a=e.items,o=e.first,f,l=null,u=[],d=[],c,h,v,y;for(y=0;y<s;y+=1){if(c=t[y],h=i(c,y),v=a.get(h),e.first??=v,!v.o){v.o=!0;var g=l?l.next:o;G(e,l,v),G(e,v,g),xt(v,g,r),l=v,u=[],d=[],o=l.next;continue}if((v.e.f&D)!==0&&Nt(v.e),v!==o){if(f!==void 0&&f.has(v)){if(u.length<d.length){var k=d[0],m;l=k.prev;var U=u[0],O=u[u.length-1];for(m=0;m<u.length;m+=1)xt(u[m],k,r);for(m=0;m<d.length;m+=1)f.delete(d[m]);G(e,U.prev,O.next),G(e,l,U),G(e,O,k),o=k,l=O,y-=1,u=[],d=[]}else f.delete(v),xt(v,o,r),G(e,v.prev,v.next),G(e,v,l===null?e.first:l.next),G(e,l,v),l=v;continue}for(u=[],d=[];o!==null&&o.k!==h;)(o.e.f&D)===0&&(f??=new Set).add(o),d.push(o),o=o.next;if(o===null)continue;v=o}u.push(v),l=v,o=v.next}if(o!==null||f!==void 0){for(var Q=f===void 0?[]:_t(f);o!==null;)(o.e.f&D)===0&&Q.push(o),o=o.next;var ke=Q.length;if(ke>0){var H=null;Sn(e,Q,H)}}}function zn(e,t,r,n,i,s,a,o){var f=(a&Ur)!==0,l=(a&Vr)===0,u=f?l?sr(r,!1,!1):we(r):r,d=(a&Hr)===0?i:we(i),c={i:d,v:u,k:n,a:null,e:null,o:!1,prev:t,next:null};try{if(e===null){var h=document.createDocumentFragment();h.append(e=W())}return c.e=B(()=>s(e,u,d,o)),t!==null&&(t.next=c),c}finally{}}function xt(e,t,r){for(var n=e.next?e.next.e.nodes_start:r,i=t?t.e.nodes_start:r,s=e.e.nodes_start;s!==null&&s!==n;){var a=J(s);i.before(s),s=a}}function G(e,t,r){t===null?(e.first=r,e.effect.first=r&&r.e):(t.e.next&&(t.e.next.prev=null),t.next=r,t.e.next=r&&r.e),r===null?e.effect.last=t&&t.e:(r.e.prev&&(r.e.prev.next=null),r.prev=t,r.e.prev=t&&t.e)}function Nn(e,t,r,n){const i=kt;if(r.length===0&&e.length===0){n(t.map(i));return}var s=E,a=p,o=Rn();function f(){Promise.all(r.map(l=>On(l))).then(l=>{o();try{n([...t.map(i),...l])}catch(u){(a.f&ne)===0&&Re(u,a)}s?.deactivate(),tt()}).catch(l=>{Re(l,a)})}e.length>0?Promise.all(e).then(()=>{o();try{return f()}finally{s?.deactivate(),tt()}}):f()}function Rn(){var e=p,t=_,r=I,n=E;return function(s=!0){Z(e),R(t),Ne(r),s&&n?.activate()}}function tt(){Z(null),R(null),Ne(null)}function kt(e){var t=x|N,r=_!==null&&(_.f&x)!==0?_:null;return p!==null&&(p.f|=pe),{ctx:I,deps:null,effects:null,equals:Ht,f:t,fn:e,reactions:null,rv:0,v:T,wv:0,parent:r??p,ac:null}}function On(e,t){let r=p;r===null&&an();var n=r.b,i=void 0,s=we(T),a=!_,o=new Map;return Un(()=>{var f=Ft();i=f.promise;try{Promise.resolve(e()).then(f.resolve,f.reject).then(()=>{l===E&&l.committed&&l.deactivate(),tt()})}catch(c){f.reject(c),tt()}var l=E;if(a){var u=!n.is_pending();n.update_pending_count(1),l.increment(u),o.get(l)?.reject(Ce),o.delete(l),o.set(l,f)}const d=(c,h=void 0)=>{if(l.activate(),h)h!==Ce&&(s.f|=ue,Pe(s,h));else{(s.f&ue)!==0&&(s.f^=ue),Pe(s,c);for(const[v,y]of o){if(o.delete(v),v===l)break;y.reject(Ce)}}a&&(n.update_pending_count(-1),l.decrement(u))};f.promise.then(d,c=>d(null,c||"unknown"))}),In(()=>{for(const f of o.values())f.reject(Ce)}),new Promise(f=>{function l(u){function d(){u===i?f(s):l(i)}u.then(d,d)}l(i)})}function tr(e){const t=kt(e);return t.equals=Vt,t}function rr(e){var t=e.effects;if(t!==null){e.effects=null;for(var r=0;r<t.length;r+=1)C(t[r])}}function Dn(e){for(var t=e.parent;t!==null;){if((t.f&x)===0)return(t.f&ne)===0?t:null;t=t.parent}return null}function Tt(e){var t,r=p;Z(Dn(e));try{e.f&=~be,rr(e),t=Ar(e)}finally{Z(r)}return t}function nr(e){var t=Tt(e);if(e.equals(t)||(E?.is_fork||(e.v=t),e.wv=Tr()),!$e)if(F!==null)nt()&&F.set(e,t);else{var r=(e.f&V)===0?re:S;A(e,r)}}let St=new Set;const de=new Map;let ir=!1;function we(e,t){var r={f:0,v:e,reactions:null,equals:Ht,rv:0,wv:0};return r}function ae(e,t){const r=we(e);return Wn(r),r}function sr(e,t=!1,r=!0){const n=we(e);return t||(n.equals=Vt),n}function oe(e,t,r=!1){_!==null&&(!X||(_.f&jt)!==0)&&Gt()&&(_.f&(x|ee|mt|jt))!==0&&!le?.includes(e)&&_n();let n=r?ye(t):t;return Pe(e,n)}function Pe(e,t){if(!e.equals(t)){var r=e.v;$e?de.set(e,t):de.set(e,r),e.v=t;var n=Y.ensure();n.capture(e,r),(e.f&x)!==0&&((e.f&N)!==0&&Tt(e),A(e,(e.f&V)!==0?S:re)),e.wv=Tr(),ar(e,N),p!==null&&(p.f&S)!==0&&(p.f&(te|fe))===0&&(q===null?Gn([e]):q.push(e)),!n.is_fork&&St.size>0&&!ir&&Mn()}return t}function Mn(){ir=!1;var e=ve;it(!0);const t=Array.from(St);try{for(const r of t)(r.f&S)!==0&&A(r,re),je(r)&&Be(r)}finally{it(e)}St.clear()}function Le(e){oe(e,e.v+1)}function ar(e,t){var r=e.reactions;if(r!==null)for(var n=r.length,i=0;i<n;i++){var s=r[i],a=s.f,o=(a&N)===0;if(o&&A(s,t),(a&x)!==0){var f=s;F?.delete(f),(a&be)===0&&(a&V&&(s.f|=be),ar(f,re))}else o&&((a&ee)!==0&&se!==null&&se.add(s),me(s))}}function ye(e){if(typeof e!="object"||e===null||Je in e)return e;const t=Lt(e);if(t!==en&&t!==tn)return e;var r=new Map,n=Pt(e),i=ae(0),s=Ee,a=o=>{if(Ee===s)return o();var f=_,l=Ee;R(null),kr(s);var u=o();return R(f),kr(l),u};return n&&r.set("length",ae(e.length)),new Proxy(e,{defineProperty(o,f,l){(!("value"in l)||l.configurable===!1||l.enumerable===!1||l.writable===!1)&&hn();var u=r.get(f);return u===void 0?u=a(()=>{var d=ae(l.value);return r.set(f,d),d}):oe(u,l.value,!0),!0},deleteProperty(o,f){var l=r.get(f);if(l===void 0){if(f in o){const u=a(()=>ae(T));r.set(f,u),Le(i)}}else oe(l,T),Le(i);return!0},get(o,f,l){if(f===Je)return e;var u=r.get(f),d=f in o;if(u===void 0&&(!d||_e(o,f)?.writable)&&(u=a(()=>{var h=ye(d?o[f]:T),v=ae(h);return v}),r.set(f,u)),u!==void 0){var c=$(u);return c===T?void 0:c}return Reflect.get(o,f,l)},getOwnPropertyDescriptor(o,f){var l=Reflect.getOwnPropertyDescriptor(o,f);if(l&&"value"in l){var u=r.get(f);u&&(l.value=$(u))}else if(l===void 0){var d=r.get(f),c=d?.v;if(d!==void 0&&c!==T)return{enumerable:!0,configurable:!0,value:c,writable:!0}}return l},has(o,f){if(f===Je)return!0;var l=r.get(f),u=l!==void 0&&l.v!==T||Reflect.has(o,f);if(l!==void 0||p!==null&&(!u||_e(o,f)?.writable)){l===void 0&&(l=a(()=>{var c=u?ye(o[f]):T,h=ae(c);return h}),r.set(f,l));var d=$(l);if(d===T)return!1}return u},set(o,f,l,u){var d=r.get(f),c=f in o;if(n&&f==="length")for(var h=l;h<d.v;h+=1){var v=r.get(h+"");v!==void 0?oe(v,T):h in o&&(v=a(()=>ae(T)),r.set(h+"",v))}if(d===void 0)(!c||_e(o,f)?.writable)&&(d=a(()=>ae(void 0)),oe(d,ye(l)),r.set(f,d));else{c=d.v!==T;var y=a(()=>ye(l));oe(d,y)}var g=Reflect.getOwnPropertyDescriptor(o,f);if(g?.set&&g.set.call(u,l),!c){if(n&&typeof f=="string"){var k=r.get("length"),m=Number(f);Number.isInteger(m)&&m>=k.v&&oe(k,m+1)}Le(i)}return!0},ownKeys(o){$(i);var f=Reflect.ownKeys(o).filter(d=>{var c=r.get(d);return c===void 0||c.v!==T});for(var[l,u]of r)u.v!==T&&!(l in o)&&f.push(l);return f},setPrototypeOf(){vn()}})}var or,lr,fr,ur;function At(){if(or===void 0){or=window,lr=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,r=Text.prototype;fr=_e(t,"firstChild").get,ur=_e(t,"nextSibling").get,It(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),It(r)&&(r.__t=void 0)}}function W(e=""){return document.createTextNode(e)}function Ie(e){return fr.call(e)}function J(e){return ur.call(e)}function he(e,t){if(!w)return Ie(e);var r=Ie(b);if(r===null)r=b.appendChild(W());else if(t&&r.nodeType!==wt){var n=W();return r?.before(n),M(n),n}return M(r),r}function cr(e,t=!1){if(!w){var r=Ie(e);return r instanceof Comment&&r.data===""?J(r):r}if(t&&b?.nodeType!==wt){var n=W();return b?.before(n),M(n),n}return b}function rt(e,t=1,r=!1){let n=w?b:e;for(var i;t--;)i=n,n=J(n);if(!w)return n;if(r&&n?.nodeType!==wt){var s=W();return n===null?i?.after(s):n.before(s),M(s),s}return M(n),n}function dr(e){e.textContent=""}function hr(){return!1}function vr(e){var t=_,r=p;R(null),Z(null);try{return e()}finally{R(t),Z(r)}}function Pn(e){p===null&&(_===null&&fn(),ln()),$e&&on()}function Ln(e,t){var r=t.last;r===null?t.last=t.first=e:(r.next=e,e.prev=r,t.last=e)}function K(e,t,r){var n=p;n!==null&&(n.f&D)!==0&&(e|=D);var i={ctx:I,deps:null,nodes_start:null,nodes_end:null,f:e|N|V,first:null,fn:t,last:null,next:null,parent:n,b:n&&n.b,prev:null,teardown:null,transitions:null,wv:0,ac:null};if(r)try{Be(i),i.f|=Ge}catch(o){throw C(i),o}else t!==null&&me(i);var s=i;if(r&&s.deps===null&&s.teardown===null&&s.nodes_start===null&&s.first===s.last&&(s.f&pe)===0&&(s=s.first,(e&ee)!==0&&(e&Ae)!==0&&s!==null&&(s.f|=Ae)),s!==null&&(s.parent=n,n!==null&&Ln(s,n),_!==null&&(_.f&x)!==0&&(e&fe)===0)){var a=_;(a.effects??=[]).push(s)}return i}function nt(){return _!==null&&!X}function In(e){const t=K(bt,null,!1);return A(t,S),t.teardown=e,t}function Fn(e){Pn();var t=p.f,r=!_&&(t&te)!==0&&(t&Ge)===0;if(r){var n=I;(n.e??=[]).push(e)}else return _r(e)}function _r(e){return K(pt|nn,e,!1)}function jn(e){Y.ensure();const t=K(fe|pe,e,!0);return()=>{C(t)}}function Bn(e){Y.ensure();const t=K(fe|pe,e,!0);return(r={})=>new Promise(n=>{r.outro?Oe(t,()=>{C(t),n(void 0)}):(C(t),n(void 0))})}function qn(e){return K(pt,e,!1)}function Un(e){return K(mt|pe,e,!0)}function pr(e,t=0){return K(bt|t,e,!0)}function Hn(e,t=[],r=[],n=[]){Nn(n,t,r,i=>{K(bt,()=>e(...i.map($)),!0)})}function Ct(e,t=0){var r=K(ee|t,e,!0);return r}function B(e){return K(te|pe,e,!0)}function br(e){var t=e.teardown;if(t!==null){const r=$e,n=_;Er(!0),R(null);try{t.call(null)}finally{Er(r),R(n)}}}function gr(e,t=!1){var r=e.first;for(e.first=e.last=null;r!==null;){const i=r.ac;i!==null&&vr(()=>{i.abort(Ce)});var n=r.next;(r.f&fe)!==0?r.parent=null:C(r,t),r=n}}function Vn(e){for(var t=e.first;t!==null;){var r=t.next;(t.f&te)===0&&C(t),t=r}}function C(e,t=!0){var r=!1;(t||(e.f&Bt)!==0)&&e.nodes_start!==null&&e.nodes_end!==null&&(Yn(e.nodes_start,e.nodes_end),r=!0),gr(e,t&&!r),st(e,0),A(e,ne);var n=e.transitions;if(n!==null)for(const s of n)s.stop();br(e);var i=e.parent;i!==null&&i.first!==null&&mr(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes_start=e.nodes_end=e.ac=null}function Yn(e,t){for(;e!==null;){var r=e===t?null:J(e);e.remove(),e=r}}function mr(e){var t=e.parent,r=e.prev,n=e.next;r!==null&&(r.next=n),n!==null&&(n.prev=r),t!==null&&(t.first===e&&(t.first=n),t.last===e&&(t.last=r))}function Oe(e,t,r=!0){var n=[];zt(e,n,!0),wr(n,()=>{r&&C(e),t&&t()})}function wr(e,t){var r=e.length;if(r>0){var n=()=>--r||t();for(var i of e)i.out(n)}else t()}function zt(e,t,r){if((e.f&D)===0){if(e.f^=D,e.transitions!==null)for(const a of e.transitions)(a.is_global||r)&&t.push(a);for(var n=e.first;n!==null;){var i=n.next,s=(n.f&Ae)!==0||(n.f&te)!==0&&(e.f&ee)!==0;zt(n,t,s?r:!1),n=i}}}function Nt(e){yr(e,!0)}function yr(e,t){if((e.f&D)!==0){e.f^=D,(e.f&S)===0&&(A(e,N),me(e));for(var r=e.first;r!==null;){var n=r.next,i=(r.f&Ae)!==0||(r.f&te)!==0;yr(r,i?t:!1),r=n}if(e.transitions!==null)for(const s of e.transitions)(s.is_global||t)&&s.in()}}function $r(e,t){for(var r=e.nodes_start,n=e.nodes_end;r!==null;){var i=r===n?null:J(r);t.append(r),r=i}}let ve=!1;function it(e){ve=e}let $e=!1;function Er(e){$e=e}let _=null,X=!1;function R(e){_=e}let p=null;function Z(e){p=e}let le=null;function Wn(e){_!==null&&(le===null?le=[e]:le.push(e))}let z=null,P=0,q=null;function Gn(e){q=e}let xr=1,Fe=0,Ee=Fe;function kr(e){Ee=e}function Tr(){return++xr}function je(e){var t=e.f;if((t&N)!==0)return!0;if(t&x&&(e.f&=~be),(t&re)!==0){var r=e.deps;if(r!==null)for(var n=r.length,i=0;i<n;i++){var s=r[i];if(je(s)&&nr(s),s.wv>e.wv)return!0}(t&V)!==0&&F===null&&A(e,S)}return!1}function Sr(e,t,r=!0){var n=e.reactions;if(n!==null&&!le?.includes(e))for(var i=0;i<n.length;i++){var s=n[i];(s.f&x)!==0?Sr(s,t,!1):t===s&&(r?A(s,N):(s.f&S)!==0&&A(s,re),me(s))}}function Ar(e){var t=z,r=P,n=q,i=_,s=le,a=I,o=X,f=Ee,l=e.f;z=null,P=0,q=null,_=(l&(te|fe))===0?e:null,le=null,Ne(e.ctx),X=!1,Ee=++Fe,e.ac!==null&&(vr(()=>{e.ac.abort(Ce)}),e.ac=null);try{e.f|=gt;var u=e.fn,d=u(),c=e.deps;if(z!==null){var h;if(st(e,P),c!==null&&P>0)for(c.length=P+z.length,h=0;h<z.length;h++)c[P+h]=z[h];else e.deps=c=z;if(ve&&nt()&&(e.f&V)!==0)for(h=P;h<c.length;h++)(c[h].reactions??=[]).push(e)}else c!==null&&P<c.length&&(st(e,P),c.length=P);if(Gt()&&q!==null&&!X&&c!==null&&(e.f&(x|re|N))===0)for(h=0;h<q.length;h++)Sr(q[h],e);return i!==null&&i!==e&&(Fe++,q!==null&&(n===null?n=q:n.push(...q))),(e.f&ue)!==0&&(e.f^=ue),d}catch(v){return Kt(v)}finally{e.f^=gt,z=t,P=r,q=n,_=i,le=s,Ne(a),X=o,Ee=f}}function Jn(e,t){let r=t.reactions;if(r!==null){var n=Zr.call(r,e);if(n!==-1){var i=r.length-1;i===0?r=t.reactions=null:(r[n]=r[i],r.pop())}}r===null&&(t.f&x)!==0&&(z===null||!z.includes(t))&&(A(t,re),(t.f&V)!==0&&(t.f^=V,t.f&=~be),rr(t),st(t,0))}function st(e,t){var r=e.deps;if(r!==null)for(var n=t;n<r.length;n++)Jn(e,r[n])}function Be(e){var t=e.f;if((t&ne)===0){A(e,S);var r=p,n=ve;p=e,ve=!0;try{(t&ee)!==0?Vn(e):gr(e),br(e);var i=Ar(e);e.teardown=typeof i=="function"?i:null,e.wv=xr;var s;vt&&wn&&(e.f&N)!==0&&e.deps}finally{ve=n,p=r}}}function $(e){var t=e.f,r=(t&x)!==0;if(_!==null&&!X){var n=p!==null&&(p.f&ne)!==0;if(!n&&!le?.includes(e)){var i=_.deps;if((_.f>)!==0)e.rv<Fe&&(e.rv=Fe,z===null&&i!==null&&i[P]===e?P++:z===null?z=[e]:z.includes(e)||z.push(e));else{(_.deps??=[]).push(e);var s=e.reactions;s===null?e.reactions=[_]:s.includes(_)||s.push(_)}}}if($e){if(de.has(e))return de.get(e);if(r){var a=e,o=a.v;return((a.f&S)===0&&a.reactions!==null||zr(a))&&(o=Tt(a)),de.set(a,o),o}}else r&&!F?.has(e)&&(a=e,je(a)&&nr(a),ve&&nt()&&(a.f&V)===0&&Cr(a));if(F?.has(e))return F.get(e);if((e.f&ue)!==0)throw e.v;return e.v}function Cr(e){if(e.deps!==null){e.f^=V;for(const t of e.deps)(t.reactions??=[]).push(e),(t.f&x)!==0&&(t.f&V)===0&&Cr(t)}}function zr(e){if(e.v===T)return!0;if(e.deps===null)return!1;for(const t of e.deps)if(de.has(t)||(t.f&x)!==0&&zr(t))return!0;return!1}function Nr(e){var t=X;try{return X=!0,e()}finally{X=t}}const Kn=-7169;function A(e,t){e.f=e.f&Kn|t}const Rr=new Set,Rt=new Set;function Xn(e){for(var t=0;t<e.length;t++)Rr.add(e[t]);for(var r of Rt)r(e)}let Or=null;function at(e){var t=this,r=t.ownerDocument,n=e.type,i=e.composedPath?.()||[],s=i[0]||e.target;Or=e;var a=0,o=Or===e&&e.__root;if(o){var f=i.indexOf(o);if(f!==-1&&(t===document||t===window)){e.__root=t;return}var l=i.indexOf(t);if(l===-1)return;f<=l&&(a=f)}if(s=i[a]||e.target,s!==t){Ye(e,"currentTarget",{configurable:!0,get(){return s||r}});var u=_,d=p;R(null),Z(null);try{for(var c,h=[];s!==null;){var v=s.assignedSlot||s.parentNode||s.host||null;try{var y=s["__"+n];y!=null&&(!s.disabled||e.target===s)&&y.call(s,e)}catch(g){c?h.push(g):c=g}if(e.cancelBubble||v===t||v===null)break;s=v}if(c){for(let g of h)queueMicrotask(()=>{throw g});throw c}}finally{e.__root=t,delete e.currentTarget,R(u),Z(d)}}}function Zn(e){var t=document.createElement("template");return t.innerHTML=e.replaceAll("<!>","<!---->"),t.content}function qe(e,t){var r=p;r.nodes_start===null&&(r.nodes_start=e,r.nodes_end=t)}function Qn(e,t){var r=(t&Kr)!==0,n,i=!e.startsWith("<!>");return()=>{if(w)return qe(b,null),b;n===void 0&&(n=Zn(i?e:"<!>"+e),n=Ie(n));var s=r||lr?document.importNode(n,!0):n.cloneNode(!0);return qe(s,s),s}}function Dr(){if(w)return qe(b,null),b;var e=document.createDocumentFragment(),t=document.createComment(""),r=W();return e.append(t,r),qe(t,r),e}function ot(e,t){if(w){var r=p;((r.f&Ge)===0||r.nodes_end===null)&&(r.nodes_end=b),Xe();return}e!==null&&e.before(t)}const ei=["touchstart","touchmove"];function ti(e){return ei.includes(e)}function lt(e,t){var r=t==null?"":typeof t=="object"?t+"":t;r!==(e.__t??=e.nodeValue)&&(e.__t=r,e.nodeValue=r+"")}function Mr(e,t){return Pr(e,t)}function ri(e,t){At(),t.intro=t.intro??!1;const r=t.target,n=w,i=b;try{for(var s=Ie(r);s&&(s.nodeType!==ze||s.data!==Mt);)s=J(s);if(!s)throw Se;ie(!0),M(s);const a=Pr(e,{...t,anchor:s});return ie(!1),a}catch(a){if(a instanceof Error&&a.message.split(`
|
|
2
|
+
`).some(o=>o.startsWith("https://svelte.dev/e/")))throw a;return a!==Se&&console.warn("Failed to hydrate: ",a),t.recover===!1&&cn(),At(),dr(r),ie(!1),Mr(e,t)}finally{ie(n),M(i)}}const De=new Map;function Pr(e,{target:t,anchor:r,props:n={},events:i,context:s,intro:a=!0}){At();var o=new Set,f=d=>{for(var c=0;c<d.length;c++){var h=d[c];if(!o.has(h)){o.add(h);var v=ti(h);t.addEventListener(h,at,{passive:v});var y=De.get(h);y===void 0?(document.addEventListener(h,at,{passive:v}),De.set(h,1)):De.set(h,y+1)}}};f(_t(Rr)),Rt.add(f);var l=void 0,u=Bn(()=>{var d=r??t.appendChild(W());return kn(d,{pending:()=>{}},c=>{if(s){Yt({});var h=I;h.c=s}if(i&&(n.$$events=i),w&&qe(c,null),l=e(c,n)||{},w&&(p.nodes_end=b,b===null||b.nodeType!==ze||b.data!==ht))throw Ke(),Se;s&&Wt()}),()=>{for(var c of o){t.removeEventListener(c,at);var h=De.get(c);--h===0?(document.removeEventListener(c,at),De.delete(c)):De.set(c,h)}Rt.delete(f),d!==r&&d.parentNode?.removeChild(d)}});return Ot.set(l,u),l}let Ot=new WeakMap;function ni(e,t){const r=Ot.get(e);return r?(Ot.delete(e),r(t)):Promise.resolve()}class ii{anchor;#t=new Map;#e=new Map;#r=new Map;#n=new Set;#l=!0;constructor(t,r=!0){this.anchor=t,this.#l=r}#s=()=>{var t=E;if(this.#t.has(t)){var r=this.#t.get(t),n=this.#e.get(r);if(n)Nt(n),this.#n.delete(r);else{var i=this.#r.get(r);i&&(this.#e.set(r,i.effect),this.#r.delete(r),i.fragment.lastChild.remove(),this.anchor.before(i.fragment),n=i.effect)}for(const[s,a]of this.#t){if(this.#t.delete(s),s===t)break;const o=this.#r.get(a);o&&(C(o.effect),this.#r.delete(a))}for(const[s,a]of this.#e){if(s===r||this.#n.has(s))continue;const o=()=>{if(Array.from(this.#t.values()).includes(s)){var l=document.createDocumentFragment();$r(a,l),l.append(W()),this.#r.set(s,{effect:a,fragment:l})}else C(a);this.#n.delete(s),this.#e.delete(s)};this.#l||!n?(this.#n.add(s),Oe(a,o,!1)):o()}}};#i=t=>{this.#t.delete(t);const r=Array.from(this.#t.values());for(const[n,i]of this.#r)r.includes(n)||(C(i.effect),this.#r.delete(n))};ensure(t,r){var n=E,i=hr();if(r&&!this.#e.has(t)&&!this.#r.has(t))if(i){var s=document.createDocumentFragment(),a=W();s.append(a),this.#r.set(t,{effect:B(()=>r(a)),fragment:s})}else this.#e.set(t,B(()=>r(this.anchor)));if(this.#t.set(n,t),i){for(const[o,f]of this.#e)o===t?n.skipped_effects.delete(f):n.skipped_effects.add(f);for(const[o,f]of this.#r)o===t?n.skipped_effects.delete(f.effect):n.skipped_effects.add(f.effect);n.oncommit(this.#s),n.ondiscard(this.#i)}else w&&(this.anchor=b),this.#s()}}function si(e,t,r=!1){w&&Xe();var n=new ii(e),i=r?Ae:0;function s(a,o){if(w){const l=Ut(e)===He;if(a===l){var f=Ze();M(f),n.anchor=f,ie(!1),n.ensure(a,o),ie(!0);return}}n.ensure(a,o)}Ct(()=>{var a=!1;t((o,f=!0)=>{a=!0,s(f,o)}),a||s(!1,null)},i)}function ai(e,t){qn(()=>{var r=e.getRootNode(),n=r.host?r:r.head??r.ownerDocument.head;if(!n.querySelector("#"+t.hash)){const i=document.createElement("style");i.id=t.hash,i.textContent=t.code,n.appendChild(i)}})}function oi(e,t){return e==null?null:String(e)}function li(e,t,r,n){var i=e.__style;if(w||i!==t){var s=oi(t);(!w||s!==e.getAttribute("style"))&&(s==null?e.removeAttribute("style"):e.style.cssText=s),e.__style=t}return n}const fi=Symbol("is custom element"),ui=Symbol("is html");function Lr(e,t,r,n){var i=ci(e);w&&(i[t]=e.getAttribute(t),t==="src"||t==="srcset"||t==="href"&&e.nodeName==="LINK")||i[t]!==(i[t]=r)&&(t==="loading"&&(e[sn]=r),r==null?e.removeAttribute(t):typeof r!="string"&&di(e).includes(t)?e[t]=r:e.setAttribute(t,r))}function ci(e){return e.__attributes??={[fi]:e.nodeName.includes("-"),[ui]:e.namespaceURI===Xr}}var Ir=new Map;function di(e){var t=e.getAttribute("is")||e.nodeName,r=Ir.get(t);if(r)return r;Ir.set(t,r=[]);for(var n,i=e,s=Element.prototype;s!==i;){n=Qr(i);for(var a in n)n[a].set&&r.push(a);i=Lt(i)}return r}let ft=!1;function hi(e){var t=ft;try{return ft=!1,[e(),ft]}finally{ft=t}}function Fr(e,t,r,n){var i=(r&Gr)!==0,s=(r&Jr)!==0,a=n,o=!0,f=()=>(o&&(o=!1,a=s?Nr(n):n),a),l;if(i){var u=Je in e||qt in e;l=_e(e,t)?.set??(u&&t in e?m=>e[t]=m:void 0)}var d,c=!1;i?[d,c]=hi(()=>e[t]):d=e[t],d===void 0&&n!==void 0&&(d=f(),l&&(dn(),l(d)));var h;if(h=()=>{var m=e[t];return m===void 0?f():(o=!0,m)},(r&Wr)===0)return h;if(l){var v=e.$$legacy;return(function(m,U){return arguments.length>0?((!U||v||c)&&l(U?h():m),m):h()})}var y=!1,g=((r&Yr)!==0?kt:tr)(()=>(y=!1,h()));i&&$(g);var k=p;return(function(m,U){if(arguments.length>0){const O=U?$(g):i?ye(m):m;return oe(g,O),y=!0,a!==void 0&&(a=O),m}return $e&&y||(k.f&ne)!==0?g.v:$(g)})}function vi(e){return new _i(e)}class _i{#t;#e;constructor(t){var r=new Map,n=(s,a)=>{var o=sr(a,!1,!1);return r.set(s,o),o};const i=new Proxy({...t.props||{},$$events:{}},{get(s,a){return $(r.get(a)??n(a,Reflect.get(s,a)))},has(s,a){return a===qt?!0:($(r.get(a)??n(a,Reflect.get(s,a))),Reflect.has(s,a))},set(s,a,o){return oe(r.get(a)??n(a,o),o),Reflect.set(s,a,o)}});this.#e=(t.hydrate?ri:Mr)(t.component,{target:t.target,anchor:t.anchor,props:i,context:t.context,intro:t.intro??!1,recover:t.recover}),(!t?.props?.$$host||t.sync===!1)&&Et(),this.#t=i.$$events;for(const s of Object.keys(this.#e))s==="$set"||s==="$destroy"||s==="$on"||Ye(this,s,{get(){return this.#e[s]},set(a){this.#e[s]=a},enumerable:!0});this.#e.$set=s=>{Object.assign(i,s)},this.#e.$destroy=()=>{ni(this.#e)}}$set(t){this.#e.$set(t)}$on(t,r){this.#t[t]=this.#t[t]||[];const n=(...i)=>r.call(this,...i);return this.#t[t].push(n),()=>{this.#t[t]=this.#t[t].filter(i=>i!==n)}}$destroy(){this.#e.$destroy()}}let jr;typeof HTMLElement=="function"&&(jr=class extends HTMLElement{$$ctor;$$s;$$c;$$cn=!1;$$d={};$$r=!1;$$p_d={};$$l={};$$l_u=new Map;$$me;constructor(e,t,r){super(),this.$$ctor=e,this.$$s=t,r&&this.attachShadow({mode:"open"})}addEventListener(e,t,r){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(t),this.$$c){const n=this.$$c.$on(e,t);this.$$l_u.set(t,n)}super.addEventListener(e,t,r)}removeEventListener(e,t,r){if(super.removeEventListener(e,t,r),this.$$c){const n=this.$$l_u.get(t);n&&(n(),this.$$l_u.delete(t))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let e=function(n){return i=>{const s=document.createElement("slot");n!=="default"&&(s.name=n),ot(i,s)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const t={},r=pi(this);for(const n of this.$$s)n in r&&(n==="default"&&!this.$$d.children?(this.$$d.children=e(n),t.default=!0):t[n]=e(n));for(const n of this.attributes){const i=this.$$g_p(n.name);i in this.$$d||(this.$$d[i]=ut(i,n.value,this.$$p_d,"toProp"))}for(const n in this.$$p_d)!(n in this.$$d)&&this[n]!==void 0&&(this.$$d[n]=this[n],delete this[n]);this.$$c=vi({component:this.$$ctor,target:this.shadowRoot||this,props:{...this.$$d,$$slots:t,$$host:this}}),this.$$me=jn(()=>{pr(()=>{this.$$r=!0;for(const n of Ve(this.$$c)){if(!this.$$p_d[n]?.reflect)continue;this.$$d[n]=this.$$c[n];const i=ut(n,this.$$d[n],this.$$p_d,"toAttribute");i==null?this.removeAttribute(this.$$p_d[n].attribute||n):this.setAttribute(this.$$p_d[n].attribute||n,i)}this.$$r=!1})});for(const n in this.$$l)for(const i of this.$$l[n]){const s=this.$$c.$on(n,i);this.$$l_u.set(i,s)}this.$$l={}}}attributeChangedCallback(e,t,r){this.$$r||(e=this.$$g_p(e),this.$$d[e]=ut(e,r,this.$$p_d,"toProp"),this.$$c?.$set({[e]:this.$$d[e]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$me(),this.$$c=void 0)})}$$g_p(e){return Ve(this.$$p_d).find(t=>this.$$p_d[t].attribute===e||!this.$$p_d[t].attribute&&t.toLowerCase()===e)||e}});function ut(e,t,r,n){const i=r[e]?.type;if(t=i==="Boolean"&&typeof t!="boolean"?t!=null:t,!n||!r[e])return t;if(n==="toAttribute")switch(i){case"Object":case"Array":return t==null?null:JSON.stringify(t);case"Boolean":return t?"":null;case"Number":return t??null;default:return t}else switch(i){case"Object":case"Array":return t&&JSON.parse(t);case"Boolean":return t;case"Number":return t!=null?+t:t;default:return t}}function pi(e){const t={};return e.childNodes.forEach(r=>{t[r.slot||"default"]=!0}),t}function bi(e,t,r,n,i,s){let a=class extends jr{constructor(){super(e,r,i),this.$$p_d=t}static get observedAttributes(){return Ve(t).map(o=>(t[o].attribute||o).toLowerCase())}};return Ve(t).forEach(o=>{Ye(a.prototype,o,{get(){return this.$$c&&o in this.$$c?this.$$c[o]:this.$$d[o]},set(f){f=ut(o,f,t),this.$$d[o]=f;var l=this.$$c;if(l){var u=_e(l,o)?.get;u?l[o]=f:l.$set({[o]:f})}}})}),n.forEach(o=>{Ye(a.prototype,o,{get(){return this.$$c?.[o]}})}),e.element=a,a}var xe={},Br;function gi(){if(Br)return xe;Br=1,Object.defineProperty(xe,"__esModule",{value:!0}),xe.LanguageTranslator=void 0,xe.getChildStyleToPass=e,xe.addComponent=t;function e(n,i){var s,a,o="";try{if(n&&i?.length&&(!((s=Object.keys(n))===null||s===void 0)&&s.length)&&(!((a=i?.filter(function(c){return Object.keys(n).includes(c.name)}))===null||a===void 0)&&a.length))for(var f=function(c){var h=i?.filter(function(v){return v.name===c&&v.defaultValue!==n[c]});h&&(o+="".concat(c,":").concat(n[c],";"))},l=0,u=Object.keys(n);l<u.length;l++){var d=u[l];f(d)}}catch(c){console.error("error getting child style to pass",c)}finally{return o}}function t(n){var i,s=((i=n?.repoName.split("/"))===null||i===void 0?void 0:i[1])||n?.repoName;if(!s)throw new Error("wrong componentPath "+n?.repoName);if(!n?.version)throw new Error("wrong version "+n?.version);var a=n?.iifePath||"main.iife.js";if(!document.getElementById(s+"-script"))try{var o=document.createElement("script");if(o.id=s+"-script",o.src="https://cdn.jsdelivr.net/npm/".concat(n.repoName,"@").concat(n.version,"/").concat(a),n?.local)o.src="".concat(n.local);else if(location.href.includes("localhost:6006")){var f=s.split("-")[0];o.src="http://localhost:6006/webcomponents/".concat(s.replace(f+"-",""),"/").concat(a)}document.head.appendChild(o)}catch(l){console.warn(l)}}var r=(function(){function n(i){if(this.lang="",!i?.dictionary)throw new Error("no dictionary provided");this.dictionary=i.dictionary,this.setLang(i?.lang)}return n.prototype.setLang=function(i){i||(i=n.getDefaultLang()),this.lang=i},n.prototype.translateWord=function(i,s){return n.getDictionaryWord(i,this.dictionary,s||this.lang)},n.prototype.translateDate=function(i,s,a){return n.formatDate(i,s,a||this.lang)},n.getDefaultLang=function(){var i,s,a,o="en";return navigator?.languages&&(!((a=(s=(i=navigator.languages[0])===null||i===void 0?void 0:i.split("-")[0])===null||s===void 0?void 0:s.toLowerCase())===null||a===void 0)&&a.length)&&(o=navigator.languages[0].split("-")[0].toLowerCase()),o},n.getDictionaryWord=function(i,s,a){var o;if(!i)throw new Error("no wordKey provided");if(!s)throw new Error("no dictionary provided");if(a&&(!((o=s[a])===null||o===void 0)&&o[i]))return s[a][i];var f="",l=n.getDefaultLang();if(!a||l!==a){var u=s?.[l];u?.[i]&&(f=u[i])}return f},n.formatDate=function(i,s,a){if(!i)throw new Error("no date provided");if(typeof i.getMonth!="function")throw new Error("wrong date format");var o=new Intl.DateTimeFormat(a||n.getDefaultLang(),s);return o.format(i)},n})();return xe.LanguageTranslator=r,xe}gi();var mi=Qn('<div class="grid svelte-5z4pea"><img class="svelte-5z4pea"/> <div class="header svelte-5z4pea"><span class="text-item title svelte-5z4pea"> </span> <span class="text-item right time svelte-5z4pea"> </span></div> <div class="details svelte-5z4pea"><span class="description text-item svelte-5z4pea"> </span> <span class="counter text-item right svelte-5z4pea"><span class="badge rounded-pill bg-secondary svelte-5z4pea"> </span></span></div></div>');const wi={hash:"svelte-5z4pea",code:`@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");
|
|
3
3
|
@import url("https://cdn.jsdelivr.net/npm/bootstrap-icons@latest/font/bootstrap-icons.css");:host {font-family:"Roboto", sans-serif;width:100%;display:block;--hb-topics-card-selected-background-color: #e9ecef;--hb-topics-card-hover-background-color: #f5f5f5;--hb-topics-card-size: calc(1vw + 1vh + 12px);--hb-topics-card-padding: 4px;--hb-topics-card-double-size: calc(var(--hb-topics-card-size) * 2);--hb-topics-card-double-padding: calc(var(--hb-topics-card-padding) * 2);}.grid.svelte-5z4pea {display:grid;grid-template-areas:"img header" "img details";grid-template-columns:var(--hb-topics-card-double-size) calc(100% - var(--hb-topics-card-double-size));grid-template-rows:calc(var(--hb-topics-card-size) + var(--hb-topics-card-double-padding)) calc(var(--hb-topics-card-size) + var(--hb-topics-card-padding));}.grid.svelte-5z4pea:hover {background-color:var(--hb-topics-card-hover-background-color);}img.svelte-5z4pea {padding:var(--hb-topics-card-padding);grid-area:img;height:calc(var(--hb-topics-card-size) + var(--hb-topics-card-double-padding) + var(--hb-topics-card-size) + var(--hb-topics-card-padding));width:calc(var(--hb-topics-card-size) + var(--hb-topics-card-double-padding) + var(--hb-topics-card-size) + var(--hb-topics-card-padding));border-radius:50%;}.header.svelte-5z4pea {grid-area:header;padding:var(--hb-topics-card-padding) var(--hb-topics-card-padding) var(--hb-topics-card-padding) 10px;line-height:calc(var(--hb-topics-card-size) + 0px);}.details.svelte-5z4pea {padding:var(--hb-topics-card-padding) var(--hb-topics-card-padding) var(--hb-topics-card-padding) 10px;grid-area:details;line-height:calc(var(--hb-topics-card-size) - var(--hb-topics-card-double-padding));}.title.svelte-5z4pea {font-size:1.5em;font-weight:600;}.description.svelte-5z4pea {font-size:1em;font-weight:300;opacity:0.8;}.time.svelte-5z4pea {font-size:0.8em;font-weight:300;opacity:0.6;}.right.svelte-5z4pea {position:absolute;right:var(--hb-topics-card-padding);}.text-item.svelte-5z4pea {margin-left:12px;margin-right:6px;}
|
|
4
4
|
/*!
|
|
5
5
|
* Bootstrap v5.1.2 (https://getbootstrap.com/)
|
|
@@ -50,5 +50,5 @@
|
|
|
50
50
|
@media (min-width: 1200px) {
|
|
51
51
|
}
|
|
52
52
|
@media print {
|
|
53
|
-
}`};function
|
|
53
|
+
}`};function qr(e,t){Yt(t,!0),ai(e,wi);function r(u,d){t.$$host.dispatchEvent(new CustomEvent(u,{detail:d}))}let n=Fr(t,"id",7,""),i=Fr(t,"chats",23,()=>[]);ye({}),Fn(()=>{if(typeof i()=="string")try{i(JSON.parse(i()))}catch(u){console.error("error parsing chat",u)}i().forEach(u=>{u.localeTimeString||(u.localeTimeString=u.time?new Date(u.time).getHours().toString().padStart(2,"0")+":"+new Date(u.time).getMinutes().toString().padStart(2,"0"):"")})});function s(u){i().forEach(d=>{d.chat_id!==u.chat_id?d._selected=!1:d._selected=!0}),i([...i()]),r("select",u)}var a={get id(){return n()},set id(u=""){n(u),Et()},get chats(){return i()},set chats(u=[]){i(u),Et()}},o=Dr(),f=cr(o);{var l=u=>{var d=Dr(),c=cr(d);An(c,17,i,h=>h.chat_id,(h,v)=>{var y=mi();y.__click=()=>{s($(v))};var g=he(y),k=rt(g,2),m=he(k),U=he(m,!0);ce(m);var O=rt(m,2),Q=he(O,!0);ce(O),ce(k);var ke=rt(k,2),H=he(ke),Ue=he(H,!0);ce(H);var Te=rt(H,2),L=he(Te),ct=he(L,!0);ce(L),ce(Te),ce(ke),ce(y),Hn(dt=>{li(y,$(v)._selected?"background-color: var(--hb-topics-card-selected-background-color);":""),Lr(g,"src",$(v).img_uri),Lr(g,"alt",$(v).img_uri),lt(U,$(v).title),lt(Q,$(v).localeTimeString),lt(Ue,$(v).text),lt(ct,dt)},[()=>$(v).counter?$(v).counter.toString():"0"]),ot(h,y)}),ot(u,d)};si(f,u=>{i()&&u(l)})}return ot(e,o),Wt(a)}Xn(["click"]),customElements.define("hb-messages-topics-card",bi(qr,{id:{},chats:{}},[],[],!0)),Dt.Component=qr,Object.defineProperty(Dt,Symbol.toStringTag,{value:"Module"})})(this["messages-topics-card"]=this["messages-topics-card"]||{});
|
|
54
54
|
//# sourceMappingURL=main.iife.js.map
|