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