@htmlbricks/hb-sidebar-cards-navigator 0.61.50 → 0.61.52

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,4 @@
1
- (function(Ht){"use strict";typeof window<"u"&&((window.__svelte??={}).v??=new Set).add("5");const Ue=1,We=2,Yt=4,sr=8,ar=16,lr=1,ur=4,fr=8,or=16,cr=1,vr=2,ut="[",ft="[!",ot="]",Ne={},x=Symbol(),dr="http://www.w3.org/1999/xhtml",Bt=!1;var ct=Array.isArray,hr=Array.prototype.indexOf,vt=Array.from,Ge=Object.keys,Ce=Object.defineProperty,he=Object.getOwnPropertyDescriptor,_r=Object.getOwnPropertyDescriptors,pr=Object.prototype,gr=Array.prototype,Ut=Object.getPrototypeOf,Wt=Object.isExtensible;function Gt(e){for(var t=0;t<e.length;t++)e[t]()}function mr(){var e,t,n=new Promise((r,i)=>{e=r,t=i});return{promise:n,resolve:e,reject:t}}const j=2,dt=4,ht=8,Se=16,ae=32,fe=64,Vt=128,Y=256,Ve=512,L=1024,B=2048,oe=4096,J=8192,_e=16384,_t=32768,pt=65536,Xt=1<<17,Jt=1<<18,Oe=1<<19,wr=1<<20,gt=1<<21,mt=1<<22,pe=1<<23,Xe=Symbol("$state"),zt=Symbol("legacy props"),Er=Symbol(""),wt=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"},$r=3,Re=8;function br(){throw new Error("https://svelte.dev/e/await_outside_boundary")}function yr(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function Tr(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function Ar(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function Nr(e){throw new Error("https://svelte.dev/e/effect_orphan")}function Cr(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function Sr(){throw new Error("https://svelte.dev/e/hydration_failed")}function Or(e){throw new Error("https://svelte.dev/e/props_invalid_value")}function Rr(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function Pr(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function Ir(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function Je(e){console.warn("https://svelte.dev/e/hydration_mismatch")}let T=!1;function F(e){T=e}let S;function U(e){if(e===null)throw Je(),Ne;return S=e}function ze(){return U(Z(S))}function Ke(e){if(T){if(Z(S)!==null)throw Je(),Ne;S=e}}function xr(e=1){if(T){for(var t=e,n=S;t--;)n=Z(n);S=n}}function Et(){for(var e=0,t=S;;){if(t.nodeType===Re){var n=t.data;if(n===ot){if(e===0)return t;e-=1}else(n===ut||n===ft)&&(e+=1)}var r=Z(t);t.remove(),t=r}}function Kt(e){if(!e||e.nodeType!==Re)throw Je(),Ne;return e.data}function Zt(e){return e===this.v}function kr(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function Qt(e){return!kr(e,this.v)}let Lr=!1,z=null;function Ze(e){z=e}function en(e,t=!1,n){z={p:z,c:null,e:null,s:e,x:null,l:null}}function tn(e){var t=z,n=t.e;if(n!==null){t.e=null;for(var r of n)An(r)}return e!==void 0&&(t.x=e),z=t.p,e??{}}function nn(){return!0}const Mr=new WeakMap;function Dr(e){var t=b;if(t===null)return y.f|=pe,e;if((t.f&_t)===0){if((t.f&Vt)===0)throw!t.parent&&e instanceof Error&&rn(e),e;t.b.error(e)}else $t(e,t)}function $t(e,t){for(;t!==null;){if((t.f&Vt)!==0)try{t.b.error(e);return}catch(n){e=n}t=t.parent}throw e instanceof Error&&rn(e),e}function rn(e){const t=Mr.get(e);t&&(Ce(e,"message",{value:t.message}),Ce(e,"stack",{value:t.stack}))}let je=[],bt=[];function sn(){var e=je;je=[],Gt(e)}function jr(){var e=bt;bt=[],Gt(e)}function an(e){je.length===0&&queueMicrotask(sn),je.push(e)}function Fr(){je.length>0&&sn(),bt.length>0&&jr()}function qr(){const e=b.b;return e===null&&br(),e}function Qe(e){var t=j|B,n=y!==null&&(y.f&j)!==0?y:null;return b===null||n!==null&&(n.f&Y)!==0?t|=Y:b.f|=Oe,{ctx:z,deps:null,effects:null,equals:Zt,f:t,fn:e,reactions:null,rv:0,v:x,wv:0,parent:n??b,ac:null}}function Hr(e,t){let n=b;n===null&&yr();var r=n.b,i=void 0,s=Fe(x),a=null,l=!y;return ei(()=>{try{var u=e();a&&Promise.resolve(u).catch(()=>{})}catch(d){u=Promise.reject(d)}var f=()=>u;i=a?.then(f,f)??Promise.resolve(u),a=i;var v=I,h=r.is_pending();l&&(r.update_pending_count(1),h||v.increment());const c=(d,o=void 0)=>{a=null,h||v.activate(),o?o!==wt&&(s.f|=pe,qe(s,o)):((s.f&pe)!==0&&(s.f^=pe),qe(s,d)),l&&(r.update_pending_count(-1),h||v.decrement()),on()};if(i.then(c,d=>c(null,d||"unknown")),v)return()=>{queueMicrotask(()=>v.neuter())}}),new Promise(u=>{function f(v){function h(){v===i?u(s):f(i)}v.then(h,h)}f(i)})}function Yr(e){const t=Qe(e);return xn(t),t}function ln(e){const t=Qe(e);return t.equals=Qt,t}function un(e){var t=e.effects;if(t!==null){e.effects=null;for(var n=0;n<t.length;n+=1)ne(t[n])}}function Br(e){for(var t=e.parent;t!==null;){if((t.f&j)===0)return t;t=t.parent}return null}function yt(e){var t,n=b;ie(Br(e));try{un(e),t=jn(e)}finally{ie(n)}return t}function fn(e){var t=yt(e);if(e.equals(t)||(e.v=t,e.wv=Mn()),!be){var n=(de||(e.f&Y)!==0)&&e.deps!==null?oe:L;D(e,n)}}function Ur(e,t,n){const r=Qe;if(t.length===0){n(e.map(r));return}var i=I,s=b,a=Wr(),l=qr();Promise.all(t.map(u=>Hr(u))).then(u=>{i?.activate(),a();try{n([...e.map(r),...u])}catch(f){(s.f&_e)===0&&$t(f,s)}i?.deactivate(),on()}).catch(u=>{l.error(u)})}function Wr(){var e=b,t=y,n=z,r=I;return function(){ie(e),W(t),Ze(n),r?.activate()}}function on(){ie(null),W(null),Ze(null)}const Tt=new Set;let I=null,cn=new Set,et=[];function vn(){const e=et.shift();et.length>0&&queueMicrotask(vn),e()}let ge=[],tt=null,At=!1,nt=!1;class me{current=new Map;#t=new Map;#e=new Set;#n=0;#f=null;#o=!1;#i=[];#a=[];#s=[];#r=[];#l=[];#c=[];#v=[];skipped_effects=new Set;process(t){ge=[];for(const i of t)this.#h(i);if(this.#i.length===0&&this.#n===0){this.#d();var n=this.#s,r=this.#r;this.#s=[],this.#r=[],this.#l=[],I=null,hn(n),hn(r),I===null?I=this:Tt.delete(this),this.#f?.resolve()}else this.#u(this.#s),this.#u(this.#r),this.#u(this.#l);for(const i of this.#i)ke(i);for(const i of this.#a)ke(i);this.#i=[],this.#a=[]}#h(t){t.f^=L;for(var n=t.first;n!==null;){var r=n.f,i=(r&(ae|fe))!==0,s=i&&(r&L)!==0,a=s||(r&J)!==0||this.skipped_effects.has(n);if(!a&&n.fn!==null){if(i)n.f^=L;else if((r&dt)!==0)this.#r.push(n);else if((r&L)===0)if((r&mt)!==0){var l=n.b?.is_pending()?this.#a:this.#i;l.push(n)}else rt(n)&&((n.f&Se)!==0&&this.#l.push(n),ke(n));var u=n.first;if(u!==null){n=u;continue}}var f=n.parent;for(n=n.next;n===null&&f!==null;)n=f.next,f=f.parent}}#u(t){for(const n of t)((n.f&B)!==0?this.#c:this.#v).push(n),D(n,L);t.length=0}capture(t,n){this.#t.has(t)||this.#t.set(t,n),this.current.set(t,t.v)}activate(){I=this}deactivate(){I=null;for(const t of cn)if(cn.delete(t),t(),I!==null)break}neuter(){this.#o=!0}flush(){ge.length>0?dn():this.#d(),I===this&&(this.#n===0&&Tt.delete(this),this.deactivate())}#d(){if(!this.#o)for(const t of this.#e)t();this.#e.clear()}increment(){this.#n+=1}decrement(){if(this.#n-=1,this.#n===0){for(const t of this.#c)D(t,B),Pe(t);for(const t of this.#v)D(t,oe),Pe(t);this.#s=[],this.#r=[],this.flush()}else this.deactivate()}add_callback(t){this.#e.add(t)}settled(){return(this.#f??=mr()).promise}static ensure(){if(I===null){const t=I=new me;Tt.add(I),nt||me.enqueue(()=>{I===t&&t.flush()})}return I}static enqueue(t){et.length===0&&queueMicrotask(vn),et.unshift(t)}}function Nt(e){var t=nt;nt=!0;try{for(var n;;){if(Fr(),ge.length===0&&(I?.flush(),ge.length===0))return tt=null,n;dn()}}finally{nt=t}}function dn(){var e=xe;At=!0;try{var t=0;for(Pn(!0);ge.length>0;){var n=me.ensure();if(t++>1e3){var r,i;Gr()}n.process(ge),ce.clear()}}finally{At=!1,Pn(e),tt=null}}function Gr(){try{Cr()}catch(e){$t(e,tt)}}let we=null;function hn(e){var t=e.length;if(t!==0){for(var n=0;n<t;){var r=e[n++];if((r.f&(_e|J))===0&&rt(r)&&(we=[],ke(r),r.deps===null&&r.first===null&&r.nodes_start===null&&(r.teardown===null&&r.ac===null?Sn(r):r.fn=null),we?.length>0)){ce.clear();for(const i of we)ke(i);we=[]}}we=null}}function Pe(e){for(var t=tt=e;t.parent!==null;){t=t.parent;var n=t.f;if(At&&t===b&&(n&Se)!==0)return;if((n&(fe|ae))!==0){if((n&L)===0)return;t.f^=L}}ge.push(t)}const ce=new Map;function Fe(e,t){var n={f:0,v:e,reactions:null,equals:Zt,rv:0,wv:0};return n}function le(e,t){const n=Fe(e);return xn(n),n}function _n(e,t=!1,n=!0){const r=Fe(e);return t||(r.equals=Qt),r}function K(e,t,n=!1){y!==null&&(!re||(y.f&Xt)!==0)&&nn()&&(y.f&(j|Se|mt|Xt))!==0&&!ue?.includes(e)&&Ir();let r=n?Ee(t):t;return qe(e,r)}function qe(e,t){if(!e.equals(t)){var n=e.v;be?ce.set(e,t):ce.set(e,n),e.v=t;var r=me.ensure();r.capture(e,n),(e.f&j)!==0&&((e.f&B)!==0&&yt(e),D(e,(e.f&Y)===0?L:oe)),e.wv=Mn(),pn(e,B),b!==null&&(b.f&L)!==0&&(b.f&(ae|fe))===0&&(G===null?ii([e]):G.push(e))}return t}function Ct(e){K(e,e.v+1)}function pn(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&B)===0;l&&D(s,t),(a&j)!==0?pn(s,oe):l&&((a&Se)!==0&&we!==null&&we.push(s),Pe(s))}}function Ee(e){if(typeof e!="object"||e===null||Xe in e)return e;const t=Ut(e);if(t!==pr&&t!==gr)return e;var n=new Map,r=ct(e),i=le(0),s=ye,a=l=>{if(ye===s)return l();var u=y,f=ye;W(null),Ln(s);var v=l();return W(u),Ln(f),v};return r&&n.set("length",le(e.length)),new Proxy(e,{defineProperty(l,u,f){(!("value"in f)||f.configurable===!1||f.enumerable===!1||f.writable===!1)&&Rr();var v=n.get(u);return v===void 0?v=a(()=>{var h=le(f.value);return n.set(u,h),h}):K(v,f.value,!0),!0},deleteProperty(l,u){var f=n.get(u);if(f===void 0){if(u in l){const v=a(()=>le(x));n.set(u,v),Ct(i)}}else K(f,x),Ct(i);return!0},get(l,u,f){if(u===Xe)return e;var v=n.get(u),h=u in l;if(v===void 0&&(!h||he(l,u)?.writable)&&(v=a(()=>{var d=Ee(h?l[u]:x),o=le(d);return o}),n.set(u,v)),v!==void 0){var c=N(v);return c===x?void 0:c}return Reflect.get(l,u,f)},getOwnPropertyDescriptor(l,u){var f=Reflect.getOwnPropertyDescriptor(l,u);if(f&&"value"in f){var v=n.get(u);v&&(f.value=N(v))}else if(f===void 0){var h=n.get(u),c=h?.v;if(h!==void 0&&c!==x)return{enumerable:!0,configurable:!0,value:c,writable:!0}}return f},has(l,u){if(u===Xe)return!0;var f=n.get(u),v=f!==void 0&&f.v!==x||Reflect.has(l,u);if(f!==void 0||b!==null&&(!v||he(l,u)?.writable)){f===void 0&&(f=a(()=>{var c=v?Ee(l[u]):x,d=le(c);return d}),n.set(u,f));var h=N(f);if(h===x)return!1}return v},set(l,u,f,v){var h=n.get(u),c=u in l;if(r&&u==="length")for(var d=f;d<h.v;d+=1){var o=n.get(d+"");o!==void 0?K(o,x):d in l&&(o=a(()=>le(x)),n.set(d+"",o))}if(h===void 0)(!c||he(l,u)?.writable)&&(h=a(()=>le(void 0)),K(h,Ee(f)),n.set(u,h));else{c=h.v!==x;var _=a(()=>Ee(f));K(h,_)}var g=Reflect.getOwnPropertyDescriptor(l,u);if(g?.set&&g.set.call(v,f),!c){if(r&&typeof u=="string"){var w=n.get("length"),p=Number(u);Number.isInteger(p)&&p>=w.v&&K(w,p+1)}Ct(i)}return!0},ownKeys(l){N(i);var u=Reflect.ownKeys(l).filter(h=>{var c=n.get(h);return c===void 0||c.v!==x});for(var[f,v]of n)v.v!==x&&!(f in l)&&u.push(f);return u},setPrototypeOf(){Pr()}})}var gn,mn,wn,En;function St(){if(gn===void 0){gn=window,mn=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,n=Text.prototype;wn=he(t,"firstChild").get,En=he(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 $e(e=""){return document.createTextNode(e)}function ve(e){return wn.call(e)}function Z(e){return En.call(e)}function Ot(e,t){if(!T)return ve(e);var n=ve(S);return n===null&&(n=S.appendChild($e())),U(n),n}function $n(e,t){if(!T){var n=ve(e);return n instanceof Comment&&n.data===""?Z(n):n}return S}function bn(e,t=1,n=!1){let r=T?S:e;for(var i;t--;)i=r,r=Z(r);if(!T)return r;if(n&&r?.nodeType!==$r){var s=$e();return r===null?i?.after(s):r.before(s),U(s),s}return U(r),r}function yn(e){e.textContent=""}function Tn(){return!1}function Rt(e){var t=y,n=b;W(null),ie(null);try{return e()}finally{W(t),ie(n)}}function Vr(e){b===null&&y===null&&Nr(),y!==null&&(y.f&Y)!==0&&b===null&&Ar(),be&&Tr()}function Xr(e,t){var n=t.last;n===null?t.last=t.first=e:(n.next=e,e.prev=n,t.last=e)}function te(e,t,n,r=!0){var i=b;i!==null&&(i.f&J)!==0&&(e|=J);var s={ctx:z,deps:null,nodes_start:null,nodes_end:null,f:e|B,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(n)try{ke(s),s.f|=_t}catch(u){throw ne(s),u}else t!==null&&Pe(s);if(r){var a=s;if(n&&a.deps===null&&a.teardown===null&&a.nodes_start===null&&a.first===a.last&&(a.f&Oe)===0&&(a=a.first),a!==null&&(a.parent=i,i!==null&&Xr(a,i),y!==null&&(y.f&j)!==0&&(e&fe)===0)){var l=y;(l.effects??=[]).push(a)}}return s}function Jr(e){const t=te(ht,null,!1);return D(t,L),t.teardown=e,t}function zr(e){Vr();var t=b.f,n=!y&&(t&ae)!==0&&(t&_t)===0;if(n){var r=z;(r.e??=[]).push(e)}else return An(e)}function An(e){return te(dt|wr,e,!1)}function Kr(e){me.ensure();const t=te(fe|Oe,e,!0);return()=>{ne(t)}}function Zr(e){me.ensure();const t=te(fe|Oe,e,!0);return(n={})=>new Promise(r=>{n.outro?xt(t,()=>{ne(t),r(void 0)}):(ne(t),r(void 0))})}function Qr(e){return te(dt,e,!1)}function ei(e){return te(mt|Oe,e,!0)}function ti(e,t=0){return te(ht|t,e,!0)}function Pt(e,t=[],n=[]){Ur(t,n,r=>{te(ht,()=>e(...r.map(N)),!0)})}function It(e,t=0){var n=te(Se|t,e,!0);return n}function Ie(e,t=!0){return te(ae|Oe,e,!0,t)}function Nn(e){var t=e.teardown;if(t!==null){const n=be,r=y;In(!0),W(null);try{t.call(null)}finally{In(n),W(r)}}}function Cn(e,t=!1){var n=e.first;for(e.first=e.last=null;n!==null;){const i=n.ac;i!==null&&Rt(()=>{i.abort(wt)});var r=n.next;(n.f&fe)!==0?n.parent=null:ne(n,t),n=r}}function ni(e){for(var t=e.first;t!==null;){var n=t.next;(t.f&ae)===0&&ne(t),t=n}}function ne(e,t=!0){var n=!1;(t||(e.f&Jt)!==0)&&e.nodes_start!==null&&e.nodes_end!==null&&(ri(e.nodes_start,e.nodes_end),n=!0),Cn(e,t&&!n),it(e,0),D(e,_e);var r=e.transitions;if(r!==null)for(const s of r)s.stop();Nn(e);var i=e.parent;i!==null&&i.first!==null&&Sn(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes_start=e.nodes_end=e.ac=null}function ri(e,t){for(;e!==null;){var n=e===t?null:Z(e);e.remove(),e=n}}function Sn(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 xt(e,t){var n=[];kt(e,n,!0),On(n,()=>{ne(e),t&&t()})}function On(e,t){var n=e.length;if(n>0){var r=()=>--n||t();for(var i of e)i.out(r)}else t()}function kt(e,t,n){if((e.f&J)===0){if(e.f^=J,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&pt)!==0||(r.f&ae)!==0;kt(r,t,s?n:!1),r=i}}}function Lt(e){Rn(e,!0)}function Rn(e,t){if((e.f&J)!==0){e.f^=J,(e.f&L)===0&&(D(e,B),Pe(e));for(var n=e.first;n!==null;){var r=n.next,i=(n.f&pt)!==0||(n.f&ae)!==0;Rn(n,i?t:!1),n=r}if(e.transitions!==null)for(const s of e.transitions)(s.is_global||t)&&s.in()}}let xe=!1;function Pn(e){xe=e}let be=!1;function In(e){be=e}let y=null,re=!1;function W(e){y=e}let b=null;function ie(e){b=e}let ue=null;function xn(e){y!==null&&(ue===null?ue=[e]:ue.push(e))}let M=null,q=0,G=null;function ii(e){G=e}let kn=1,He=0,ye=He;function Ln(e){ye=e}let de=!1;function Mn(){return++kn}function rt(e){var t=e.f;if((t&B)!==0)return!0;if((t&oe)!==0){var n=e.deps,r=(t&Y)!==0;if(n!==null){var i,s,a=(t&Ve)!==0,l=r&&b!==null&&!de,u=n.length;if((a||l)&&(b===null||(b.f&_e)===0)){var f=e,v=f.parent;for(i=0;i<u;i++)s=n[i],(a||!s?.reactions?.includes(f))&&(s.reactions??=[]).push(f);a&&(f.f^=Ve),l&&v!==null&&(v.f&Y)===0&&(f.f^=Y)}for(i=0;i<u;i++)if(s=n[i],rt(s)&&fn(s),s.wv>e.wv)return!0}(!r||b!==null&&!de)&&D(e,L)}return!1}function Dn(e,t,n=!0){var r=e.reactions;if(r!==null&&!ue?.includes(e))for(var i=0;i<r.length;i++){var s=r[i];(s.f&j)!==0?Dn(s,t,!1):t===s&&(n?D(s,B):(s.f&L)!==0&&D(s,oe),Pe(s))}}function jn(e){var t=M,n=q,r=G,i=y,s=de,a=ue,l=z,u=re,f=ye,v=e.f;M=null,q=0,G=null,de=(v&Y)!==0&&(re||!xe||y===null),y=(v&(ae|fe))===0?e:null,ue=null,Ze(e.ctx),re=!1,ye=++He,e.ac!==null&&(Rt(()=>{e.ac.abort(wt)}),e.ac=null);try{e.f|=gt;var h=e.fn,c=h(),d=e.deps;if(M!==null){var o;if(it(e,q),d!==null&&q>0)for(d.length=q+M.length,o=0;o<M.length;o++)d[q+o]=M[o];else e.deps=d=M;if(!de||(v&j)!==0&&e.reactions!==null)for(o=q;o<d.length;o++)(d[o].reactions??=[]).push(e)}else d!==null&&q<d.length&&(it(e,q),d.length=q);if(nn()&&G!==null&&!re&&d!==null&&(e.f&(j|oe|B))===0)for(o=0;o<G.length;o++)Dn(G[o],e);return i!==null&&i!==e&&(He++,G!==null&&(r===null?r=G:r.push(...G))),(e.f&pe)!==0&&(e.f^=pe),c}catch(_){return Dr(_)}finally{e.f^=gt,M=t,q=n,G=r,y=i,de=s,ue=a,Ze(l),re=u,ye=f}}function si(e,t){let n=t.reactions;if(n!==null){var r=hr.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&j)!==0&&(M===null||!M.includes(t))&&(D(t,oe),(t.f&(Y|Ve))===0&&(t.f^=Ve),un(t),it(t,0))}function it(e,t){var n=e.deps;if(n!==null)for(var r=t;r<n.length;r++)si(e,n[r])}function ke(e){var t=e.f;if((t&_e)===0){D(e,L);var n=b,r=xe;b=e,xe=!0;try{(t&Se)!==0?ni(e):Cn(e),Nn(e);var i=jn(e);e.teardown=typeof i=="function"?i:null,e.wv=kn;var s;Bt&&Lr&&(e.f&B)!==0&&e.deps}finally{xe=r,b=n}}}function N(e){var t=e.f,n=(t&j)!==0;if(y!==null&&!re){var r=b!==null&&(b.f&_e)!==0;if(!r&&!ue?.includes(e)){var i=y.deps;if((y.f&gt)!==0)e.rv<He&&(e.rv=He,M===null&&i!==null&&i[q]===e?q++:M===null?M=[e]:(!de||!M.includes(e))&&M.push(e));else{(y.deps??=[]).push(e);var s=e.reactions;s===null?e.reactions=[y]:s.includes(y)||s.push(y)}}}else if(n&&e.deps===null&&e.effects===null){var a=e,l=a.parent;l!==null&&(l.f&Y)===0&&(a.f^=Y)}if(be){if(ce.has(e))return ce.get(e);if(n){a=e;var u=a.v;return((a.f&L)===0&&a.reactions!==null||Fn(a))&&(u=yt(a)),ce.set(a,u),u}}else n&&(a=e,rt(a)&&fn(a));if((e.f&pe)!==0)throw e.v;return e.v}function Fn(e){if(e.v===x)return!0;if(e.deps===null)return!1;for(const t of e.deps)if(ce.has(t)||(t.f&j)!==0&&Fn(t))return!0;return!1}function ai(e){var t=re;try{return re=!0,e()}finally{re=t}}const li=-7169;function D(e,t){e.f=e.f&li|t}const ui=new Set,qn=new Set;function fi(e,t,n,r={}){function i(s){if(r.capture||Ye.call(t,s),!s.cancelBubble)return Rt(()=>n?.call(this,s))}return e.startsWith("pointer")||e.startsWith("touch")||e==="wheel"?an(()=>{t.addEventListener(e,i,r)}):t.addEventListener(e,i,r),i}function Hn(e,t,n,r,i){var s={capture:r,passive:i},a=fi(e,t,n,s);(t===document.body||t===window||t===document||t instanceof HTMLMediaElement)&&Jr(()=>{t.removeEventListener(e,a,s)})}let Yn=null;function Ye(e){var t=this,n=t.ownerDocument,r=e.type,i=e.composedPath?.()||[],s=i[0]||e.target;Yn=e;var a=0,l=Yn===e&&e.__root;if(l){var u=i.indexOf(l);if(u!==-1&&(t===document||t===window)){e.__root=t;return}var f=i.indexOf(t);if(f===-1)return;u<=f&&(a=u)}if(s=i[a]||e.target,s!==t){Ce(e,"currentTarget",{configurable:!0,get(){return s||n}});var v=y,h=b;W(null),ie(null);try{for(var c,d=[];s!==null;){var o=s.assignedSlot||s.parentNode||s.host||null;try{var _=s["__"+r];if(_!=null&&(!s.disabled||e.target===s))if(ct(_)){var[g,...w]=_;g.apply(s,[e,...w])}else _.call(s,e)}catch(p){c?d.push(p):c=p}if(e.cancelBubble||o===t||o===null)break;s=o}if(c){for(let p of d)queueMicrotask(()=>{throw p});throw c}}finally{e.__root=t,delete e.currentTarget,W(v),ie(h)}}}let V;function oi(){V=void 0}function ci(e){let t=null,n=T;var r;if(T){for(t=S,V===void 0&&(V=ve(document.head));V!==null&&(V.nodeType!==Re||V.data!==ut);)V=Z(V);V===null?F(!1):V=U(Z(V))}T||(r=document.head.appendChild($e()));try{It(()=>e(r),Jt)}finally{n&&(F(!0),V=S,U(t))}}function vi(e){var t=document.createElement("template");return t.innerHTML=e.replaceAll("<!>","<!---->"),t.content}function st(e,t){var n=b;n.nodes_start===null&&(n.nodes_start=e,n.nodes_end=t)}function Le(e,t){var n=(t&cr)!==0,r=(t&vr)!==0,i,s=!e.startsWith("<!>");return()=>{if(T)return st(S,null),S;i===void 0&&(i=vi(s?e:"<!>"+e),n||(i=ve(i)));var a=r||mn?document.importNode(i,!0):i.cloneNode(!0);if(n){var l=ve(a),u=a.lastChild;st(l,u)}else st(a,a);return a}}function Te(e,t){if(T){b.nodes_end=S,ze();return}e!==null&&e.before(t)}const di=["touchstart","touchmove"];function hi(e){return di.includes(e)}function Bn(e,t){return Un(e,t)}function _i(e,t){St(),t.intro=t.intro??!1;const n=t.target,r=T,i=S;try{for(var s=ve(n);s&&(s.nodeType!==Re||s.data!==ut);)s=Z(s);if(!s)throw Ne;F(!0),U(s),ze();const a=Un(e,{...t,anchor:s});if(S===null||S.nodeType!==Re||S.data!==ot)throw Je(),Ne;return F(!1),a}catch(a){if(a instanceof Error&&a.message.split(`
2
- `).some(l=>l.startsWith("https://svelte.dev/e/")))throw a;return a!==Ne&&console.warn("Failed to hydrate: ",a),t.recover===!1&&Sr(),St(),yn(n),F(!1),Bn(e,t)}finally{F(r),U(i),oi()}}const Me=new Map;function Un(e,{target:t,anchor:n,props:r={},events:i,context:s,intro:a=!0}){St();var l=new Set,u=h=>{for(var c=0;c<h.length;c++){var d=h[c];if(!l.has(d)){l.add(d);var o=hi(d);t.addEventListener(d,Ye,{passive:o});var _=Me.get(d);_===void 0?(document.addEventListener(d,Ye,{passive:o}),Me.set(d,1)):Me.set(d,_+1)}}};u(vt(ui)),qn.add(u);var f=void 0,v=Zr(()=>{var h=n??t.appendChild($e());return Ie(()=>{if(s){en({});var c=z;c.c=s}i&&(r.$$events=i),T&&st(h,null),f=e(h,r)||{},T&&(b.nodes_end=S),s&&tn()}),()=>{for(var c of l){t.removeEventListener(c,Ye);var d=Me.get(c);--d===0?(document.removeEventListener(c,Ye),Me.delete(c)):Me.set(c,d)}qn.delete(u),h!==n&&h.parentNode?.removeChild(h)}});return Mt.set(f,v),f}let Mt=new WeakMap;function pi(e,t){const n=Mt.get(e);return n?(Mt.delete(e),n(t)):Promise.resolve()}function Wn(e,t,n=!1){T&&ze();var r=e,i=null,s=null,a=x,l=n?pt:0,u=!1;const f=(d,o=!0)=>{u=!0,c(o,d)};var v=null;function h(){v!==null&&(v.lastChild.remove(),r.before(v),v=null);var d=a?i:s,o=a?s:i;d&&Lt(d),o&&xt(o,()=>{a?s=null:i=null})}const c=(d,o)=>{if(a===(a=d))return;let _=!1;if(T){const O=Kt(r)===ft;!!a===O&&(r=Et(),U(r),F(!1),_=!0)}var g=Tn(),w=r;if(g&&(v=document.createDocumentFragment(),v.append(w=$e())),a?i??=o&&Ie(()=>o(w)):s??=o&&Ie(()=>o(w)),g){var p=I,C=a?i:s,R=a?s:i;C&&p.skipped_effects.delete(C),R&&p.skipped_effects.add(R),p.add_callback(h)}else h();_&&F(!0)};It(()=>{u=!1,t(f),u||c(null,null)},l),T&&(r=S)}function gi(e,t,n){for(var r=e.items,i=[],s=t.length,a=0;a<s;a++)kt(t[a].e,i,!0);var l=s>0&&i.length===0&&n!==null;if(l){var u=n.parentNode;yn(u),u.append(n),r.clear(),se(e,t[0].prev,t[s-1].next)}On(i,()=>{for(var f=0;f<s;f++){var v=t[f];l||(r.delete(v.k),se(e,v.prev,v.next)),ne(v.e,!l)}})}function Gn(e,t,n,r,i,s=null){var a=e,l={flags:t,items:new Map,first:null},u=(t&Yt)!==0;if(u){var f=e;a=T?U(ve(f)):f.appendChild($e())}T&&ze();var v=null,h=!1,c=new Map,d=ln(()=>{var w=n();return ct(w)?w:w==null?[]:vt(w)}),o,_;function g(){mi(_,o,l,c,a,i,t,r,n),s!==null&&(o.length===0?v?Lt(v):v=Ie(()=>s(a)):v!==null&&xt(v,()=>{v=null}))}It(()=>{_??=b,o=N(d);var w=o.length;if(h&&w===0)return;h=w===0;let p=!1;if(T){var C=Kt(a)===ft;C!==(w===0)&&(a=Et(),U(a),F(!1),p=!0)}if(T){for(var R=null,O,m=0;m<w;m++){if(S.nodeType===Re&&S.data===ot){a=S,p=!0,F(!1);break}var $=o[m],P=r($,m);O=Dt(S,l,R,null,$,P,m,i,t,n),l.items.set(P,O),R=O}w>0&&U(Et())}if(T)w===0&&s&&(v=Ie(()=>s(a)));else if(Tn()){var Q=new Set,ee=I;for(m=0;m<w;m+=1){$=o[m],P=r($,m);var X=l.items.get(P)??c.get(P);X?(t&(Ue|We))!==0&&Vn(X,$,m,t):(O=Dt(null,l,null,null,$,P,m,i,t,n,!0),c.set(P,O)),Q.add(P)}for(const[H,A]of l.items)Q.has(H)||ee.skipped_effects.add(A.e);ee.add_callback(g)}else g();p&&F(!0),N(d)}),T&&(a=S)}function mi(e,t,n,r,i,s,a,l,u){var f=(a&sr)!==0,v=(a&(Ue|We))!==0,h=t.length,c=n.items,d=n.first,o=d,_,g=null,w,p=[],C=[],R,O,m,$;if(f)for($=0;$<h;$+=1)R=t[$],O=l(R,$),m=c.get(O),m!==void 0&&(m.a?.measure(),(w??=new Set).add(m));for($=0;$<h;$+=1){if(R=t[$],O=l(R,$),m=c.get(O),m===void 0){var P=r.get(O);if(P!==void 0){r.delete(O),c.set(O,P);var Q=g?g.next:o;se(n,g,P),se(n,P,Q),jt(P,Q,i),g=P}else{var ee=o?o.e.nodes_start:i;g=Dt(ee,n,g,g===null?n.first:g.next,R,O,$,s,a,u)}c.set(O,g),p=[],C=[],o=g.next;continue}if(v&&Vn(m,R,$,a),(m.e.f&J)!==0&&(Lt(m.e),f&&(m.a?.unfix(),(w??=new Set).delete(m))),m!==o){if(_!==void 0&&_.has(m)){if(p.length<C.length){var X=C[0],H;g=X.prev;var A=p[0],E=p[p.length-1];for(H=0;H<p.length;H+=1)jt(p[H],X,i);for(H=0;H<C.length;H+=1)_.delete(C[H]);se(n,A.prev,E.next),se(n,g,A),se(n,E,X),o=X,g=E,$-=1,p=[],C=[]}else _.delete(m),jt(m,o,i),se(n,m.prev,m.next),se(n,m,g===null?n.first:g.next),se(n,g,m),g=m;continue}for(p=[],C=[];o!==null&&o.k!==O;)(o.e.f&J)===0&&(_??=new Set).add(o),C.push(o),o=o.next;if(o===null)continue;m=o}p.push(m),g=m,o=m.next}if(o!==null||_!==void 0){for(var k=_===void 0?[]:vt(_);o!==null;)(o.e.f&J)===0&&k.push(o),o=o.next;var Be=k.length;if(Be>0){var Wi=(a&Yt)!==0&&h===0?i:null;if(f){for($=0;$<Be;$+=1)k[$].a?.measure();for($=0;$<Be;$+=1)k[$].a?.fix()}gi(n,k,Wi)}}f&&an(()=>{if(w!==void 0)for(m of w)m.a?.apply()}),e.first=n.first&&n.first.e,e.last=g&&g.e;for(var Gi of r.values())ne(Gi.e);r.clear()}function Vn(e,t,n,r){(r&Ue)!==0&&qe(e.v,t),(r&We)!==0?qe(e.i,n):e.i=n}function Dt(e,t,n,r,i,s,a,l,u,f,v){var h=(u&Ue)!==0,c=(u&ar)===0,d=h?c?_n(i,!1,!1):Fe(i):i,o=(u&We)===0?a:Fe(a),_={i:o,v:d,k:s,a:null,e:null,prev:n,next:r};try{if(e===null){var g=document.createDocumentFragment();g.append(e=$e())}return _.e=Ie(()=>l(e,d,o,f),T),_.e.prev=n&&n.e,_.e.next=r&&r.e,n===null?v||(t.first=_):(n.next=_,n.e.next=_.e),r!==null&&(r.prev=_,r.e.prev=_.e),_}finally{}}function jt(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=Z(s);i.before(s),s=a}}function se(e,t,n){t===null?e.first=n:(t.next=n,t.e.next=n&&n.e),n!==null&&(n.prev=t,n.e.prev=t&&t.e)}function wi(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 Ei(e,t,n){var r=e==null?"":""+e;return r===""?null:r}function $i(e,t){return e==null?null:String(e)}function bi(e,t,n,r,i,s){var a=e.__className;if(T||a!==n||a===void 0){var l=Ei(n);(!T||l!==e.getAttribute("class"))&&(l==null?e.removeAttribute("class"):e.className=l),e.__className=n}return s}function yi(e,t,n,r){var i=e.__style;if(T||i!==t){var s=$i(t);(!T||s!==e.getAttribute("style"))&&(s==null?e.removeAttribute("style"):e.style.cssText=s),e.__style=t}return r}const Ti=Symbol("is custom element"),Ai=Symbol("is html");function Ni(e,t,n,r){var i=Ci(e);T&&(i[t]=e.getAttribute(t),t==="src"||t==="srcset"||t==="href"&&e.nodeName==="LINK")||i[t]!==(i[t]=n)&&(t==="loading"&&(e[Er]=n),n==null?e.removeAttribute(t):typeof n!="string"&&Jn(e).includes(t)?e[t]=n:e.setAttribute(t,n))}function Xn(e,t,n){var r=y,i=b;let s=T;T&&F(!1),W(null),ie(null);try{t!=="style"&&(Ft.has(e.getAttribute("is")||e.nodeName)||!customElements||customElements.get(e.getAttribute("is")||e.tagName.toLowerCase())?Jn(e).includes(t):n&&typeof n=="object")?e[t]=n:Ni(e,t,n==null?n:String(n))}finally{W(r),ie(i),s&&F(!0)}}function Ci(e){return e.__attributes??={[Ti]:e.nodeName.includes("-"),[Ai]:e.namespaceURI===dr}}var Ft=new Map;function Jn(e){var t=e.getAttribute("is")||e.nodeName,n=Ft.get(t);if(n)return n;Ft.set(t,n=[]);for(var r,i=e,s=Element.prototype;s!==i;){r=_r(i);for(var a in r)r[a].set&&n.push(a);i=Ut(i)}return n}let at=!1;function Si(e){var t=at;try{return at=!1,[e(),at]}finally{at=t}}function zn(e,t,n,r){var i=(n&fr)!==0,s=(n&or)!==0,a=r,l=!0,u=()=>(l&&(l=!1,a=s?ai(r):r),a),f;if(i){var v=Xe in e||zt in e;f=he(e,t)?.set??(v&&t in e?p=>e[t]=p:void 0)}var h,c=!1;i?[h,c]=Si(()=>e[t]):h=e[t],h===void 0&&r!==void 0&&(h=u(),f&&(Or(),f(h)));var d;if(d=()=>{var p=e[t];return p===void 0?u():(l=!0,p)},(n&ur)===0)return d;if(f){var o=e.$$legacy;return(function(p,C){return arguments.length>0?((!C||o||c)&&f(C?d():p),p):d()})}var _=!1,g=((n&lr)!==0?Qe:ln)(()=>(_=!1,d()));i&&N(g);var w=b;return(function(p,C){if(arguments.length>0){const R=C?N(g):i?Ee(p):p;return K(g,R),_=!0,a!==void 0&&(a=R),p}return be&&_||(w.f&_e)!==0?g.v:N(g)})}function Oi(e){return new Ri(e)}class Ri{#t;#e;constructor(t){var n=new Map,r=(s,a)=>{var l=_n(a,!1,!1);return n.set(s,l),l};const i=new Proxy({...t.props||{},$$events:{}},{get(s,a){return N(n.get(a)??r(a,Reflect.get(s,a)))},has(s,a){return a===zt?!0:(N(n.get(a)??r(a,Reflect.get(s,a))),Reflect.has(s,a))},set(s,a,l){return K(n.get(a)??r(a,l),l),Reflect.set(s,a,l)}});this.#e=(t.hydrate?_i:Bn)(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)&&Nt(),this.#t=i.$$events;for(const s of Object.keys(this.#e))s==="$set"||s==="$destroy"||s==="$on"||Ce(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=()=>{pi(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 Kn;typeof HTMLElement=="function"&&(Kn=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),Te(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]=lt(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=Oi({component:this.$$ctor,target:this.shadowRoot||this,props:{...this.$$d,$$slots:t,$$host:this}}),this.$$me=Kr(()=>{ti(()=>{this.$$r=!0;for(const r of Ge(this.$$c)){if(!this.$$p_d[r]?.reflect)continue;this.$$d[r]=this.$$c[r];const i=lt(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]=lt(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 Ge(this.$$p_d).find(t=>this.$$p_d[t].attribute===e||!this.$$p_d[t].attribute&&t.toLowerCase()===e)||e}});function lt(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 Ii(e,t,n,r,i,s){let a=class extends Kn{constructor(){super(e,n,i),this.$$p_d=t}static get observedAttributes(){return Ge(t).map(l=>(t[l].attribute||l).toLowerCase())}};return Ge(t).forEach(l=>{Ce(a.prototype,l,{get(){return this.$$c&&l in this.$$c?this.$$c[l]:this.$$d[l]},set(u){u=lt(l,u,t),this.$$d[l]=u;var f=this.$$c;if(f){var v=he(f,l)?.get;v?f[l]=u:f.$set({[l]:u})}}})}),r.forEach(l=>{Ce(a.prototype,l,{get(){return this.$$c?.[l]}})}),e.element=a,a}const Zn={version:"0.61.50"};function xi(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var De={},qt,Qn;function ki(){if(Qn)return qt;Qn=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,n=/^\s*/,r=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,i=/^:\s*/,s=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,a=/^[;\s]*/,l=/^\s+|\s+$/g,u=`
3
- `,f="/",v="*",h="",c="comment",d="declaration";qt=function(_,g){if(typeof _!="string")throw new TypeError("First argument must be a string");if(!_)return[];g=g||{};var w=1,p=1;function C(A){var E=A.match(t);E&&(w+=E.length);var k=A.lastIndexOf(u);p=~k?A.length-k:p+A.length}function R(){var A={line:w,column:p};return function(E){return E.position=new O(A),P(),E}}function O(A){this.start=A,this.end={line:w,column:p},this.source=g.source}O.prototype.content=_;function m(A){var E=new Error(g.source+":"+w+":"+p+": "+A);if(E.reason=A,E.filename=g.source,E.line=w,E.column=p,E.source=_,!g.silent)throw E}function $(A){var E=A.exec(_);if(E){var k=E[0];return C(k),_=_.slice(k.length),E}}function P(){$(n)}function Q(A){var E;for(A=A||[];E=ee();)E!==!1&&A.push(E);return A}function ee(){var A=R();if(!(f!=_.charAt(0)||v!=_.charAt(1))){for(var E=2;h!=_.charAt(E)&&(v!=_.charAt(E)||f!=_.charAt(E+1));)++E;if(E+=2,h===_.charAt(E-1))return m("End of comment missing");var k=_.slice(2,E-2);return p+=2,C(k),_=_.slice(E),p+=2,A({type:c,comment:k})}}function X(){var A=R(),E=$(r);if(E){if(ee(),!$(i))return m("property missing ':'");var k=$(s),Be=A({type:d,property:o(E[0].replace(e,h)),value:k?o(k[0].replace(e,h)):h});return $(a),Be}}function H(){var A=[];Q(A);for(var E;E=X();)E!==!1&&(A.push(E),Q(A));return A}return P(),H()};function o(_){return _?_.replace(l,h):h}return qt}var er;function Li(){if(er)return De;er=1;var e=De&&De.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(De,"__esModule",{value:!0}),De.default=n;var t=e(ki());function n(r,i){var s=null;if(!r||typeof r!="string")return s;var a=(0,t.default)(r),l=typeof i=="function";return a.forEach(function(u){if(u.type==="declaration"){var f=u.property,v=u.value;l?i(f,v,u):v&&(s=s||{},s[f]=v)}}),s}return De}var Mi=Li();const tr=xi(Mi);tr.default;var Ae={},nr;function Di(){if(nr)return Ae;nr=1,Object.defineProperty(Ae,"__esModule",{value:!0}),Ae.LanguageTranslator=void 0,Ae.getChildStyleToPass=e,Ae.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 u=function(c){var d=i?.filter(function(o){return o.name===c&&o.defaultValue!==r[c]});d&&(l+="".concat(c,":").concat(r[c],";"))},f=0,v=Object.keys(r);f<v.length;f++){var h=v[f];u(h)}}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 u=s.split("-")[0];l.src="http://localhost:6006/webcomponents/".concat(s.replace(u+"-",""),"/").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,u,f="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)&&(f=(u=(l=navigator.languages[0])===null||l===void 0?void 0:l.split("-")[0])===null||u===void 0?void 0:u.toLowerCase()),f},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 u="",f=r.getDefaultLang();if(!a||f!==a){var v=s?.[f];v?.[i]&&(u=v[i])}return u},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 Ae.LanguageTranslator=n,Ae}var rr=Di(),ji=Le('<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@latest/font/bootstrap-icons.css"/>'),Fi=Le('<div class="sidebar-card-row"><hb-sidenav-button></hb-sidenav-button></div>',2),qi=Le('<div class="sidebar-card-rows-container"></div>'),Hi=Le('<div class="sidebar-card-container"><!></div>'),Yi=Le('<hb-navbar><i slot="nav-switcher"></i></hb-navbar> <!>',3),Bi=Le('to be done, ref <a href="https://web.telegram.org/z/">https://web.telegram.com</a> left panel <!>',1);const Ui={hash:"svelte-isd2cr",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");
4
- @import url("https://cdn.jsdelivr.net/npm/bootstrap-icons@latest/font/bootstrap-icons.css");:host {font-family:"Roboto", sans-serif;}`};function ir(e,t){en(t,!0),wi(e,Ui);function n(c,d){t.$$host.dispatchEvent(new CustomEvent(c,{detail:d}))}let r=zn(t,"id",7,""),i=zn(t,"panels",23,()=>[]);Ee({});let s=Yr(()=>i()?.find?.(c=>c.main)||i()?.find?.(c=>!c.parentPanelId));zr(()=>{if(r()||r(""),typeof i()=="string")try{i(JSON.parse(i()))}catch(c){console.error("error parsing panels",c)}});function a(c,d){const o=N(s)?.cards.find(g=>g.id===d),_=o?.rows.find(g=>g.key===c);if(_){const g=Object.assign({},N(s));delete g.cards;const w=Object.assign({},o);delete g.rows;const p={id:r(),row:_,panel:g,card:w};if(n("itemClick",p),_.switchToPanelId){const C=i().find(R=>R.id===_.switchToPanelId);C&&K(s,C)}}}rr.addComponent({repoName:"@htmlbricks/hb-navbar",version:Zn.version}),rr.addComponent({repoName:"@htmlbricks/hb-sidenav-button",version:Zn.version});function l(c){const d={text:c.text,key:c.key};return c.bootstrapIcon&&(d.bootstrapIcon=c.bootstrapIcon),c.badge&&(d.badge=c.badge),d}var u={get id(){return r()},set id(c=""){r(c),Nt()},get panels(){return i()},set panels(c=[]){i(c),Nt()}};xr();var f=Bi();ci(c=>{var d=ji();Te(c,d)});var v=bn($n(f),3);{var h=c=>{var d=Yi(),o=$n(d);Pt(()=>Xn(o,"companybrandname",N(s).title));var _=Ot(o);Ke(o);var g=bn(o,2);Gn(g,17,()=>N(s).cards,w=>w.id+"_c_"+N(s).id,(w,p)=>{var C=Hi(),R=Ot(C);{var O=m=>{var $=qi();Gn($,21,()=>N(p).rows,P=>P.key+"_r_"+N(p).id,(P,Q)=>{var ee=Fi(),X=Ot(ee);Pt(()=>Xn(X,"navlink",JSON.stringify(l(N(Q))))),Ke(ee),Hn("pageChange",X,H=>{a(N(Q).key,N(p).id)}),Te(P,ee)}),Ke($),Te(m,$)};Wn(R,m=>{N(p).rows&&N(p).rows.length>0&&m(O)})}Ke(C),Te(w,C)}),Pt(()=>{yi(_,`font-weight:bold;cursor:${N(s).parentPanelId?"pointer":""}`),bi(_,1,`bi bi-${N(s).parentPanelId?"arrow-left":"list"}`)}),Hn("navmenuswitch",o,w=>{N(s)?.parentPanelId&&K(s,i()?.find?.(p=>p.id===N(s)?.parentPanelId))}),Te(c,d)};Wn(v,c=>{N(s)&&c(h)})}return Te(e,f),tn(u)}customElements.define("hb-sidebar-cards-navigator",Ii(ir,{id:{},panels:{}},[],[],!0)),Ht.Component=ir,Object.defineProperty(Ht,Symbol.toStringTag,{value:"Module"})})(this["sidebar-cards-navigator"]=this["sidebar-cards-navigator"]||{});
1
+ (function(qt){"use strict";typeof window<"u"&&((window.__svelte??={}).v??=new Set).add("5");const Ge=1,Je=2,Bt=4,lr=8,ar=16,or=1,ur=4,cr=8,hr=16,dr=1,vr=2,Ht="[",Ke="[!",gt="]",xe={},x=Symbol(),_r="http://www.w3.org/1999/xhtml",Ut=!1;var Yt=Array.isArray,pr=Array.prototype.indexOf,mt=Array.from,Xe=Object.keys,Ze=Object.defineProperty,me=Object.getOwnPropertyDescriptor,gr=Object.getOwnPropertyDescriptors,mr=Object.prototype,wr=Array.prototype,Vt=Object.getPrototypeOf,Wt=Object.isExtensible;function br(e){for(var t=0;t<e.length;t++)e[t]()}function zt(){var e,t,n=new Promise((r,i)=>{e=r,t=i});return{promise:n,resolve:e,reject:t}}const O=2,Qe=4,wt=8,se=16,fe=32,ce=64,et=128,J=512,R=1024,j=2048,le=4096,q=8192,he=16384,bt=32768,Oe=65536,Gt=1<<17,yt=1<<18,we=1<<19,yr=1<<20,je=32768,$t=1<<21,Et=1<<22,de=1<<23,tt=Symbol("$state"),Jt=Symbol("legacy props"),$r=Symbol(""),Re=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"},Kt=3,be=8;function Er(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function Tr(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function Ar(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function Cr(e){throw new Error("https://svelte.dev/e/effect_orphan")}function Nr(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function Sr(){throw new Error("https://svelte.dev/e/hydration_failed")}function kr(e){throw new Error("https://svelte.dev/e/props_invalid_value")}function xr(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function Or(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function Rr(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function Pr(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}function nt(e){console.warn("https://svelte.dev/e/hydration_mismatch")}function Ir(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}let w=!1;function B(e){w=e}let T;function M(e){if(e===null)throw nt(),xe;return T=e}function rt(){return M(V(T))}function it(e){if(w){if(V(T)!==null)throw nt(),xe;T=e}}function Xt(e=1){if(w){for(var t=e,n=T;t--;)n=V(n);T=n}}function st(e=!0){for(var t=0,n=T;;){if(n.nodeType===be){var r=n.data;if(r===gt){if(t===0)return n;t-=1}else(r===Ht||r===Ke)&&(t+=1)}var i=V(n);e&&n.remove(),n=i}}function Zt(e){if(!e||e.nodeType!==be)throw nt(),xe;return e.data}function Qt(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 en(e){return!Lr(e,this.v)}let Dr=!1,Y=null;function Pe(e){Y=e}function tn(e,t=!1,n){Y={p:Y,i:!1,c:null,e:null,s:e,x:null,l:null}}function nn(e){var t=Y,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,Y=t.p,e??{}}function rn(){return!0}let ye=[];function sn(){var e=ye;ye=[],br(e)}function qe(e){if(ye.length===0&&!Be){var t=ye;queueMicrotask(()=>{t===ye&&sn()})}ye.push(e)}function Mr(){for(;ye.length>0;)sn()}function fn(e){var t=y;if(t===null)return b.f|=de,e;if((t.f&bt)===0){if((t.f&et)===0)throw e;t.b.error(e)}else Ie(e,t)}function Ie(e,t){for(;t!==null;){if((t.f&et)!==0)try{t.b.error(e);return}catch(n){e=n}t=t.parent}throw e}const ft=new Set;let N=null,H=null,Q=[],lt=null,Tt=!1,Be=!1;class K{committed=!1;current=new Map;previous=new Map;#t=new Set;#e=new Set;#n=0;#r=0;#a=null;#f=[];#l=[];skipped_effects=new Set;is_fork=!1;process(t){Q=[],this.apply();var n={parent:null,effect:null,effects:[],render_effects:[],block_effects:[]};for(const r of t)this.#i(r,n);this.is_fork||this.#o(),this.#r>0||this.is_fork?(this.#s(n.effects),this.#s(n.render_effects),this.#s(n.block_effects)):(N=null,an(n.render_effects),an(n.effects),this.#a?.resolve()),H=null}#i(t,n){t.f^=R;for(var r=t.first;r!==null;){var i=r.f,s=(i&(fe|ce))!==0,f=s&&(i&R)!==0,l=f||(i&q)!==0||this.skipped_effects.has(r);if((r.f&et)!==0&&r.b?.is_pending()&&(n={parent:n,effect:r,effects:[],render_effects:[],block_effects:[]}),!l&&r.fn!==null){s?r.f^=R:(i&Qe)!==0?n.effects.push(r):Ye(r)&&((r.f&se)!==0&&n.block_effects.push(r),Ve(r));var a=r.first;if(a!==null){r=a;continue}}var o=r.parent;for(r=r.next;r===null&&o!==null;)o===n.effect&&(this.#s(n.effects),this.#s(n.render_effects),this.#s(n.block_effects),n=n.parent),r=o.next,o=o.parent}}#s(t){for(const n of t)((n.f&j)!==0?this.#f:this.#l).push(n),L(n,R)}capture(t,n){this.previous.has(t)||this.previous.set(t,n),(t.f&de)===0&&(this.current.set(t,t.v),H?.set(t,t.v))}activate(){N=this,this.apply()}deactivate(){N=null,H=null}flush(){if(this.activate(),Q.length>0){if(ln(),N!==null&&N!==this)return}else this.#n===0&&this.process([]);this.deactivate()}discard(){for(const t of this.#e)t(this);this.#e.clear()}#o(){if(this.#r===0){for(const t of this.#t)t();this.#t.clear()}this.#n===0&&this.#u()}#u(){if(ft.size>1){this.previous.clear();var t=H,n=!0,r={parent:null,effect:null,effects:[],render_effects:[],block_effects:[]};for(const i of ft){if(i===this){n=!1;continue}const s=[];for(const[l,a]of this.current){if(i.current.has(l))if(n&&a!==i.current.get(l))i.current.set(l,a);else continue;s.push(l)}if(s.length===0)continue;const f=[...i.current.keys()].filter(l=>!this.current.has(l));if(f.length>0){const l=new Set,a=new Map;for(const o of s)on(o,f,l,a);if(Q.length>0){N=i,i.apply();for(const o of Q)i.#i(o,r);Q=[],i.deactivate()}}}N=null,H=t}this.committed=!0,ft.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.#f)L(t,j),$e(t);for(const t of this.#l)L(t,le),$e(t);this.#f=[],this.#l=[],this.flush()}oncommit(t){this.#t.add(t)}ondiscard(t){this.#e.add(t)}settled(){return(this.#a??=zt()).promise}static ensure(){if(N===null){const t=N=new K;ft.add(N),Be||K.enqueue(()=>{N===t&&t.flush()})}return N}static enqueue(t){qe(t)}apply(){}}function At(e){var t=Be;Be=!0;try{for(var n;;){if(Mr(),Q.length===0&&(N?.flush(),Q.length===0))return lt=null,n;ln()}}finally{Be=t}}function ln(){var e=Ae;Tt=!0;try{var t=0;for(In(!0);Q.length>0;){var n=K.ensure();if(t++>1e3){var r,i;Fr()}n.process(Q),ve.clear()}}finally{Tt=!1,In(e),lt=null}}function Fr(){try{Nr()}catch(e){Ie(e,lt)}}let ae=null;function an(e){var t=e.length;if(t!==0){for(var n=0;n<t;){var r=e[n++];if((r.f&(he|q))===0&&Ye(r)&&(ae=new Set,Ve(r),r.deps===null&&r.first===null&&r.nodes_start===null&&(r.teardown===null&&r.ac===null?xn(r):r.fn=null),ae?.size>0)){ve.clear();for(const i of ae){if((i.f&(he|q))!==0)continue;const s=[i];let f=i.parent;for(;f!==null;)ae.has(f)&&(ae.delete(f),s.push(f)),f=f.parent;for(let l=s.length-1;l>=0;l--){const a=s[l];(a.f&(he|q))===0&&Ve(a)}}ae.clear()}}ae=null}}function on(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&O)!==0?on(i,t,n,r):(s&(Et|se))!==0&&(s&j)===0&&un(i,t,r)&&(L(i,j),$e(i))}}function un(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&O)!==0&&un(i,t,n))return n.set(i,!0),!0}return n.set(e,!1),!1}function $e(e){for(var t=lt=e;t.parent!==null;){t=t.parent;var n=t.f;if(Tt&&t===y&&(n&se)!==0&&(n&yt)===0)return;if((n&(ce|fe))!==0){if((n&R)===0)return;t.f^=R}}Q.push(t)}function jr(e){let t=0,n=Ee(0),r;return()=>{ut()&&(E(n),Nn(()=>(t===0&&(r=Yn(()=>e(()=>He(n)))),t+=1,()=>{qe(()=>{t-=1,t===0&&(r?.(),r=void 0,He(n))})})))}}var qr=Oe|we|et;function Br(e,t,n){new Hr(e,t,n)}class Hr{parent;#t=!1;#e;#n=w?T:null;#r;#a;#f;#l=null;#i=null;#s=null;#o=null;#u=null;#d=0;#c=0;#v=!1;#h=null;#w=jr(()=>(this.#h=Ee(this.#d),()=>{this.#h=null}));constructor(t,n,r){this.#e=t,this.#r=n,this.#a=r,this.parent=y.b,this.#t=!!this.#r.pending,this.#f=ct(()=>{if(y.b=this,w){const s=this.#n;rt(),s.nodeType===be&&s.data===Ke?this.#y():this.#b()}else{var i=this.#g();try{this.#l=W(()=>r(i))}catch(s){this.error(s)}this.#c>0?this.#p():this.#t=!1}return()=>{this.#u?.remove()}},qr),w&&(this.#e=T)}#b(){try{this.#l=W(()=>this.#a(this.#e))}catch(t){this.error(t)}this.#t=!1}#y(){const t=this.#r.pending;t&&(this.#i=W(()=>t(this.#e)),K.enqueue(()=>{var n=this.#g();this.#l=this.#_(()=>(K.ensure(),W(()=>this.#a(n)))),this.#c>0?this.#p():(De(this.#i,()=>{this.#i=null}),this.#t=!1)}))}#g(){var t=this.#e;return this.#t&&(this.#u=ee(),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=y,r=b,i=Y;z(this.#f),I(this.#f),Pe(this.#f.ctx);try{return t()}catch(s){return fn(s),null}finally{z(n),I(r),Pe(i)}}#p(){const t=this.#r.pending;this.#l!==null&&(this.#o=document.createDocumentFragment(),this.#o.append(this.#u),Pn(this.#l,this.#o)),this.#i===null&&(this.#i=W(()=>t(this.#e)))}#m(t){if(!this.has_pending_snippet()){this.parent&&this.parent.#m(t);return}this.#c+=t,this.#c===0&&(this.#t=!1,this.#i&&De(this.#i,()=>{this.#i=null}),this.#o&&(this.#e.before(this.#o),this.#o=null))}update_pending_count(t){this.#m(t),this.#d+=t,this.#h&&Le(this.#h,this.#d)}get_effect_pending(){return this.#w(),E(this.#h)}error(t){var n=this.#r.onerror;let r=this.#r.failed;if(this.#v||!n&&!r)throw t;this.#l&&(P(this.#l),this.#l=null),this.#i&&(P(this.#i),this.#i=null),this.#s&&(P(this.#s),this.#s=null),w&&(M(this.#n),Xt(),M(st()));var i=!1,s=!1;const f=()=>{if(i){Ir();return}i=!0,s&&Pr(),K.ensure(),this.#d=0,this.#s!==null&&De(this.#s,()=>{this.#s=null}),this.#t=this.has_pending_snippet(),this.#l=this.#_(()=>(this.#v=!1,W(()=>this.#a(this.#e)))),this.#c>0?this.#p():this.#t=!1};var l=b;try{I(null),s=!0,n?.(t,f),s=!1}catch(a){Ie(a,this.#f&&this.#f.parent)}finally{I(l)}r&&qe(()=>{this.#s=this.#_(()=>{K.ensure(),this.#v=!0;try{return W(()=>{r(this.#e,()=>t,()=>f)})}catch(a){return Ie(a,this.#f.parent),null}finally{this.#v=!1}})})}}function Ur(e,t,n,r){const i=ot;if(n.length===0&&e.length===0){r(t.map(i));return}var s=N,f=y,l=Yr();function a(){Promise.all(n.map(o=>Vr(o))).then(o=>{l();try{r([...t.map(i),...o])}catch(h){(f.f&he)===0&&Ie(h,f)}s?.deactivate(),at()}).catch(o=>{Ie(o,f)})}e.length>0?Promise.all(e).then(()=>{l();try{return a()}finally{s?.deactivate(),at()}}):a()}function Yr(){var e=y,t=b,n=Y,r=N;return function(s=!0){z(e),I(t),Pe(n),s&&r?.activate()}}function at(){z(null),I(null),Pe(null)}function ot(e){var t=O|j,n=b!==null&&(b.f&O)!==0?b:null;return y!==null&&(y.f|=we),{ctx:Y,deps:null,effects:null,equals:Qt,f:t,fn:e,reactions:null,rv:0,v:x,wv:0,parent:n??y,ac:null}}function Vr(e,t){let n=y;n===null&&Er();var r=n.b,i=void 0,s=Ee(x),f=!b,l=new Map;return ti(()=>{var a=zt();i=a.promise;try{Promise.resolve(e()).then(a.resolve,a.reject).then(()=>{o===N&&o.committed&&o.deactivate(),at()})}catch(u){a.reject(u),at()}var o=N;if(f){var h=!r.is_pending();r.update_pending_count(1),o.increment(h),l.get(o)?.reject(Re),l.delete(o),l.set(o,a)}const v=(u,c=void 0)=>{if(o.activate(),c)c!==Re&&(s.f|=de,Le(s,c));else{(s.f&de)!==0&&(s.f^=de),Le(s,u);for(const[d,p]of l){if(l.delete(d),d===o)break;p.reject(Re)}}f&&(r.update_pending_count(-1),o.decrement(h))};a.promise.then(v,u=>v(null,u||"unknown"))}),An(()=>{for(const a of l.values())a.reject(Re)}),new Promise(a=>{function o(h){function v(){h===i?a(s):o(i)}h.then(v,v)}o(i)})}function Wr(e){const t=ot(e);return Dn(t),t}function cn(e){const t=ot(e);return t.equals=en,t}function hn(e){var t=e.effects;if(t!==null){e.effects=null;for(var n=0;n<t.length;n+=1)P(t[n])}}function zr(e){for(var t=e.parent;t!==null;){if((t.f&O)===0)return t;t=t.parent}return null}function Ct(e){var t,n=y;z(zr(e));try{e.f&=~je,hn(e),t=Bn(e)}finally{z(n)}return t}function dn(e){var t=Ct(e);if(e.equals(t)||(e.v=t,e.wv=jn()),!Ce)if(H!==null)ut()&&H.set(e,e.v);else{var n=(e.f&J)===0?le:R;L(e,n)}}let Nt=new Set;const ve=new Map;let vn=!1;function Ee(e,t){var n={f:0,v:e,reactions:null,equals:Qt,rv:0,wv:0};return n}function oe(e,t){const n=Ee(e);return Dn(n),n}function _n(e,t=!1,n=!0){const r=Ee(e);return t||(r.equals=en),r}function X(e,t,n=!1){b!==null&&(!ne||(b.f&Gt)!==0)&&rn()&&(b.f&(O|se|Et|Gt))!==0&&!ue?.includes(e)&&Rr();let r=n?Te(t):t;return Le(e,r)}function Le(e,t){if(!e.equals(t)){var n=e.v;Ce?ve.set(e,t):ve.set(e,n),e.v=t;var r=K.ensure();r.capture(e,n),(e.f&O)!==0&&((e.f&j)!==0&&Ct(e),L(e,(e.f&J)!==0?R:le)),e.wv=jn(),pn(e,j),y!==null&&(y.f&R)!==0&&(y.f&(fe|ce))===0&&(G===null?ii([e]):G.push(e)),!r.is_fork&&Nt.size>0&&!vn&&Gr()}return t}function Gr(){vn=!1;const e=Array.from(Nt);for(const t of e)(t.f&R)!==0&&L(t,le),Ye(t)&&Ve(t);Nt.clear()}function He(e){X(e,e.v+1)}function pn(e,t){var n=e.reactions;if(n!==null)for(var r=n.length,i=0;i<r;i++){var s=n[i],f=s.f,l=(f&j)===0;if(l&&L(s,t),(f&O)!==0){var a=s;H?.delete(a),(f&je)===0&&(f&J&&(s.f|=je),pn(a,le))}else l&&((f&se)!==0&&ae!==null&&ae.add(s),$e(s))}}function Te(e){if(typeof e!="object"||e===null||tt in e)return e;const t=Vt(e);if(t!==mr&&t!==wr)return e;var n=new Map,r=Yt(e),i=oe(0),s=Ne,f=l=>{if(Ne===s)return l();var a=b,o=Ne;I(null),Fn(s);var h=l();return I(a),Fn(o),h};return r&&n.set("length",oe(e.length)),new Proxy(e,{defineProperty(l,a,o){(!("value"in o)||o.configurable===!1||o.enumerable===!1||o.writable===!1)&&xr();var h=n.get(a);return h===void 0?h=f(()=>{var v=oe(o.value);return n.set(a,v),v}):X(h,o.value,!0),!0},deleteProperty(l,a){var o=n.get(a);if(o===void 0){if(a in l){const h=f(()=>oe(x));n.set(a,h),He(i)}}else X(o,x),He(i);return!0},get(l,a,o){if(a===tt)return e;var h=n.get(a),v=a in l;if(h===void 0&&(!v||me(l,a)?.writable)&&(h=f(()=>{var c=Te(v?l[a]:x),d=oe(c);return d}),n.set(a,h)),h!==void 0){var u=E(h);return u===x?void 0:u}return Reflect.get(l,a,o)},getOwnPropertyDescriptor(l,a){var o=Reflect.getOwnPropertyDescriptor(l,a);if(o&&"value"in o){var h=n.get(a);h&&(o.value=E(h))}else if(o===void 0){var v=n.get(a),u=v?.v;if(v!==void 0&&u!==x)return{enumerable:!0,configurable:!0,value:u,writable:!0}}return o},has(l,a){if(a===tt)return!0;var o=n.get(a),h=o!==void 0&&o.v!==x||Reflect.has(l,a);if(o!==void 0||y!==null&&(!h||me(l,a)?.writable)){o===void 0&&(o=f(()=>{var u=h?Te(l[a]):x,c=oe(u);return c}),n.set(a,o));var v=E(o);if(v===x)return!1}return h},set(l,a,o,h){var v=n.get(a),u=a in l;if(r&&a==="length")for(var c=o;c<v.v;c+=1){var d=n.get(c+"");d!==void 0?X(d,x):c in l&&(d=f(()=>oe(x)),n.set(c+"",d))}if(v===void 0)(!u||me(l,a)?.writable)&&(v=f(()=>oe(void 0)),X(v,Te(o)),n.set(a,v));else{u=v.v!==x;var p=f(()=>Te(o));X(v,p)}var _=Reflect.getOwnPropertyDescriptor(l,a);if(_?.set&&_.set.call(h,o),!u){if(r&&typeof a=="string"){var A=n.get("length"),m=Number(a);Number.isInteger(m)&&m>=A.v&&X(A,m+1)}He(i)}return!0},ownKeys(l){E(i);var a=Reflect.ownKeys(l).filter(v=>{var u=n.get(v);return u===void 0||u.v!==x});for(var[o,h]of n)h.v!==x&&!(o in l)&&a.push(o);return a},setPrototypeOf(){Or()}})}var gn,mn,wn,bn;function St(){if(gn===void 0){gn=window,mn=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,n=Text.prototype;wn=me(t,"firstChild").get,bn=me(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 ee(e=""){return document.createTextNode(e)}function _e(e){return wn.call(e)}function V(e){return bn.call(e)}function kt(e,t){if(!w)return _e(e);var n=_e(T);return n===null&&(n=T.appendChild(ee())),M(n),n}function yn(e,t=!1){if(!w){var n=_e(e);return n instanceof Comment&&n.data===""?V(n):n}if(t&&T?.nodeType!==Kt){var r=ee();return T?.before(r),M(r),r}return T}function $n(e,t=1,n=!1){let r=w?T:e;for(var i;t--;)i=r,r=V(r);if(!w)return r;if(n&&r?.nodeType!==Kt){var s=ee();return r===null?i?.after(s):r.before(s),M(s),s}return M(r),r}function En(e){e.textContent=""}function Tn(){return!1}function xt(e){var t=b,n=y;I(null),z(null);try{return e()}finally{I(t),z(n)}}function Jr(e){y===null&&(b===null&&Cr(),Ar()),Ce&&Tr()}function Kr(e,t){var n=t.last;n===null?t.last=t.first=e:(n.next=e,e.prev=n,t.last=e)}function te(e,t,n,r=!0){var i=y;i!==null&&(i.f&q)!==0&&(e|=q);var s={ctx:Y,deps:null,nodes_start:null,nodes_end:null,f:e|j|J,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(n)try{Ve(s),s.f|=bt}catch(a){throw P(s),a}else t!==null&&$e(s);if(r){var f=s;if(n&&f.deps===null&&f.teardown===null&&f.nodes_start===null&&f.first===f.last&&(f.f&we)===0&&(f=f.first,(e&se)!==0&&(e&Oe)!==0&&f!==null&&(f.f|=Oe)),f!==null&&(f.parent=i,i!==null&&Kr(f,i),b!==null&&(b.f&O)!==0&&(e&ce)===0)){var l=b;(l.effects??=[]).push(f)}}return s}function ut(){return b!==null&&!ne}function An(e){const t=te(wt,null,!1);return L(t,R),t.teardown=e,t}function Xr(e){Jr();var t=y.f,n=!b&&(t&fe)!==0&&(t&bt)===0;if(n){var r=Y;(r.e??=[]).push(e)}else return Cn(e)}function Cn(e){return te(Qe|yr,e,!1)}function Zr(e){K.ensure();const t=te(ce|we,e,!0);return()=>{P(t)}}function Qr(e){K.ensure();const t=te(ce|we,e,!0);return(n={})=>new Promise(r=>{n.outro?De(t,()=>{P(t),r(void 0)}):(P(t),r(void 0))})}function ei(e){return te(Qe,e,!1)}function ti(e){return te(Et|we,e,!0)}function Nn(e,t=0){return te(wt|t,e,!0)}function Ot(e,t=[],n=[],r=[],i=!1){Ur(r,t,n,s=>{te(i?Qe:wt,()=>e(...s.map(E)),!0)})}function ct(e,t=0){var n=te(se|t,e,!0);return n}function W(e,t=!0){return te(fe|we,e,!0,t)}function Sn(e){var t=e.teardown;if(t!==null){const n=Ce,r=b;Ln(!0),I(null);try{t.call(null)}finally{Ln(n),I(r)}}}function kn(e,t=!1){var n=e.first;for(e.first=e.last=null;n!==null;){const i=n.ac;i!==null&&xt(()=>{i.abort(Re)});var r=n.next;(n.f&ce)!==0?n.parent=null:P(n,t),n=r}}function ni(e){for(var t=e.first;t!==null;){var n=t.next;(t.f&fe)===0&&P(t),t=n}}function P(e,t=!0){var n=!1;(t||(e.f&yt)!==0)&&e.nodes_start!==null&&e.nodes_end!==null&&(ri(e.nodes_start,e.nodes_end),n=!0),kn(e,t&&!n),ht(e,0),L(e,he);var r=e.transitions;if(r!==null)for(const s of r)s.stop();Sn(e);var i=e.parent;i!==null&&i.first!==null&&xn(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes_start=e.nodes_end=e.ac=null}function ri(e,t){for(;e!==null;){var n=e===t?null:V(e);e.remove(),e=n}}function xn(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 De(e,t,n=!0){var r=[];Rt(e,r,!0),On(r,()=>{n&&P(e),t&&t()})}function On(e,t){var n=e.length;if(n>0){var r=()=>--n||t();for(var i of e)i.out(r)}else t()}function Rt(e,t,n){if((e.f&q)===0){if(e.f^=q,e.transitions!==null)for(const f of e.transitions)(f.is_global||n)&&t.push(f);for(var r=e.first;r!==null;){var i=r.next,s=(r.f&Oe)!==0||(r.f&fe)!==0&&(e.f&se)!==0;Rt(r,t,s?n:!1),r=i}}}function Pt(e){Rn(e,!0)}function Rn(e,t){if((e.f&q)!==0){e.f^=q,(e.f&R)===0&&(L(e,j),$e(e));for(var n=e.first;n!==null;){var r=n.next,i=(n.f&Oe)!==0||(n.f&fe)!==0;Rn(n,i?t:!1),n=r}if(e.transitions!==null)for(const s of e.transitions)(s.is_global||t)&&s.in()}}function Pn(e,t){for(var n=e.nodes_start,r=e.nodes_end;n!==null;){var i=n===r?null:V(n);t.append(n),n=i}}let Ae=!1;function In(e){Ae=e}let Ce=!1;function Ln(e){Ce=e}let b=null,ne=!1;function I(e){b=e}let y=null;function z(e){y=e}let ue=null;function Dn(e){b!==null&&(ue===null?ue=[e]:ue.push(e))}let F=null,U=0,G=null;function ii(e){G=e}let Mn=1,Ue=0,Ne=Ue;function Fn(e){Ne=e}function jn(){return++Mn}function Ye(e){var t=e.f;if((t&j)!==0)return!0;if(t&O&&(e.f&=~je),(t&le)!==0){var n=e.deps;if(n!==null)for(var r=n.length,i=0;i<r;i++){var s=n[i];if(Ye(s)&&dn(s),s.wv>e.wv)return!0}(t&J)!==0&&H===null&&L(e,R)}return!1}function qn(e,t,n=!0){var r=e.reactions;if(r!==null&&!ue?.includes(e))for(var i=0;i<r.length;i++){var s=r[i];(s.f&O)!==0?qn(s,t,!1):t===s&&(n?L(s,j):(s.f&R)!==0&&L(s,le),$e(s))}}function Bn(e){var t=F,n=U,r=G,i=b,s=ue,f=Y,l=ne,a=Ne,o=e.f;F=null,U=0,G=null,b=(o&(fe|ce))===0?e:null,ue=null,Pe(e.ctx),ne=!1,Ne=++Ue,e.ac!==null&&(xt(()=>{e.ac.abort(Re)}),e.ac=null);try{e.f|=$t;var h=e.fn,v=h(),u=e.deps;if(F!==null){var c;if(ht(e,U),u!==null&&U>0)for(u.length=U+F.length,c=0;c<F.length;c++)u[U+c]=F[c];else e.deps=u=F;if(Ae&&ut()&&(e.f&J)!==0)for(c=U;c<u.length;c++)(u[c].reactions??=[]).push(e)}else u!==null&&U<u.length&&(ht(e,U),u.length=U);if(rn()&&G!==null&&!ne&&u!==null&&(e.f&(O|le|j))===0)for(c=0;c<G.length;c++)qn(G[c],e);return i!==null&&i!==e&&(Ue++,G!==null&&(r===null?r=G:r.push(...G))),(e.f&de)!==0&&(e.f^=de),v}catch(d){return fn(d)}finally{e.f^=$t,F=t,U=n,G=r,b=i,ue=s,Pe(f),ne=l,Ne=a}}function si(e,t){let n=t.reactions;if(n!==null){var r=pr.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&O)!==0&&(F===null||!F.includes(t))&&(L(t,le),(t.f&J)!==0&&(t.f^=J,t.f&=~je),hn(t),ht(t,0))}function ht(e,t){var n=e.deps;if(n!==null)for(var r=t;r<n.length;r++)si(e,n[r])}function Ve(e){var t=e.f;if((t&he)===0){L(e,R);var n=y,r=Ae;y=e,Ae=!0;try{(t&se)!==0?ni(e):kn(e),Sn(e);var i=Bn(e);e.teardown=typeof i=="function"?i:null,e.wv=Mn;var s;Ut&&Dr&&(e.f&j)!==0&&e.deps}finally{Ae=r,y=n}}}function E(e){var t=e.f,n=(t&O)!==0;if(b!==null&&!ne){var r=y!==null&&(y.f&he)!==0;if(!r&&!ue?.includes(e)){var i=b.deps;if((b.f&$t)!==0)e.rv<Ue&&(e.rv=Ue,F===null&&i!==null&&i[U]===e?U++:F===null?F=[e]:F.includes(e)||F.push(e));else{(b.deps??=[]).push(e);var s=e.reactions;s===null?e.reactions=[b]:s.includes(b)||s.push(b)}}}if(Ce){if(ve.has(e))return ve.get(e);if(n){var f=e,l=f.v;return((f.f&R)===0&&f.reactions!==null||Un(f))&&(l=Ct(f)),ve.set(f,l),l}}else if(n){if(f=e,H?.has(f))return H.get(f);Ye(f)&&dn(f),Ae&&ut()&&(f.f&J)===0&&Hn(f)}else if(H?.has(e))return H.get(e);if((e.f&de)!==0)throw e.v;return e.v}function Hn(e){if(e.deps!==null){e.f^=J;for(const t of e.deps)(t.reactions??=[]).push(e),(t.f&O)!==0&&(t.f&J)===0&&Hn(t)}}function Un(e){if(e.v===x)return!0;if(e.deps===null)return!1;for(const t of e.deps)if(ve.has(t)||(t.f&O)!==0&&Un(t))return!0;return!1}function Yn(e){var t=ne;try{return ne=!0,e()}finally{ne=t}}const fi=-7169;function L(e,t){e.f=e.f&fi|t}const li=new Set,Vn=new Set;function ai(e,t,n,r={}){function i(s){if(r.capture||We.call(t,s),!s.cancelBubble)return xt(()=>n?.call(this,s))}return e.startsWith("pointer")||e.startsWith("touch")||e==="wheel"?qe(()=>{t.addEventListener(e,i,r)}):t.addEventListener(e,i,r),i}function Wn(e,t,n,r,i){var s={capture:r,passive:i},f=ai(e,t,n,s);(t===document.body||t===window||t===document||t instanceof HTMLMediaElement)&&An(()=>{t.removeEventListener(e,f,s)})}let zn=null;function We(e){var t=this,n=t.ownerDocument,r=e.type,i=e.composedPath?.()||[],s=i[0]||e.target;zn=e;var f=0,l=zn===e&&e.__root;if(l){var a=i.indexOf(l);if(a!==-1&&(t===document||t===window)){e.__root=t;return}var o=i.indexOf(t);if(o===-1)return;a<=o&&(f=a)}if(s=i[f]||e.target,s!==t){Ze(e,"currentTarget",{configurable:!0,get(){return s||n}});var h=b,v=y;I(null),z(null);try{for(var u,c=[];s!==null;){var d=s.assignedSlot||s.parentNode||s.host||null;try{var p=s["__"+r];p!=null&&(!s.disabled||e.target===s)&&p.call(s,e)}catch(_){u?c.push(_):u=_}if(e.cancelBubble||d===t||d===null)break;s=d}if(u){for(let _ of c)queueMicrotask(()=>{throw _});throw u}}finally{e.__root=t,delete e.currentTarget,I(h),z(v)}}}function oi(e){var t=document.createElement("template");return t.innerHTML=e.replaceAll("<!>","<!---->"),t.content}function dt(e,t){var n=y;n.nodes_start===null&&(n.nodes_start=e,n.nodes_end=t)}function Me(e,t){var n=(t&dr)!==0,r=(t&vr)!==0,i,s=!e.startsWith("<!>");return()=>{if(w)return dt(T,null),T;i===void 0&&(i=oi(s?e:"<!>"+e),n||(i=_e(i)));var f=r||mn?document.importNode(i,!0):i.cloneNode(!0);if(n){var l=_e(f),a=f.lastChild;dt(l,a)}else dt(f,f);return f}}function Se(e,t){if(w){y.nodes_end=T,rt();return}e!==null&&e.before(t)}const ui=["touchstart","touchmove"];function ci(e){return ui.includes(e)}function Gn(e,t){return Jn(e,t)}function hi(e,t){St(),t.intro=t.intro??!1;const n=t.target,r=w,i=T;try{for(var s=_e(n);s&&(s.nodeType!==be||s.data!==Ht);)s=V(s);if(!s)throw xe;B(!0),M(s);const f=Jn(e,{...t,anchor:s});return B(!1),f}catch(f){if(f instanceof Error&&f.message.split(`
2
+ `).some(l=>l.startsWith("https://svelte.dev/e/")))throw f;return f!==xe&&console.warn("Failed to hydrate: ",f),t.recover===!1&&Sr(),St(),En(n),B(!1),Gn(e,t)}finally{B(r),M(i)}}const Fe=new Map;function Jn(e,{target:t,anchor:n,props:r={},events:i,context:s,intro:f=!0}){St();var l=new Set,a=v=>{for(var u=0;u<v.length;u++){var c=v[u];if(!l.has(c)){l.add(c);var d=ci(c);t.addEventListener(c,We,{passive:d});var p=Fe.get(c);p===void 0?(document.addEventListener(c,We,{passive:d}),Fe.set(c,1)):Fe.set(c,p+1)}}};a(mt(li)),Vn.add(a);var o=void 0,h=Qr(()=>{var v=n??t.appendChild(ee());return Br(v,{pending:()=>{}},u=>{if(s){tn({});var c=Y;c.c=s}if(i&&(r.$$events=i),w&&dt(u,null),o=e(u,r)||{},w&&(y.nodes_end=T,T===null||T.nodeType!==be||T.data!==gt))throw nt(),xe;s&&nn()}),()=>{for(var u of l){t.removeEventListener(u,We);var c=Fe.get(u);--c===0?(document.removeEventListener(u,We),Fe.delete(u)):Fe.set(u,c)}Vn.delete(a),v!==n&&v.parentNode?.removeChild(v)}});return It.set(o,h),o}let It=new WeakMap;function di(e,t){const n=It.get(e);return n?(It.delete(e),n(t)):Promise.resolve()}class vi{anchor;#t=new Map;#e=new Map;#n=new Map;#r=!0;constructor(t,n=!0){this.anchor=t,this.#r=n}#a=()=>{var t=N;if(this.#t.has(t)){var n=this.#t.get(t),r=this.#e.get(n);if(r)Pt(r);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,f]of this.#t){if(this.#t.delete(s),s===t)break;const l=this.#n.get(f);l&&(P(l.effect),this.#n.delete(f))}for(const[s,f]of this.#e){if(s===n)continue;const l=()=>{if(Array.from(this.#t.values()).includes(s)){var o=document.createDocumentFragment();Pn(f,o),o.append(ee()),this.#n.set(s,{effect:f,fragment:o})}else P(f);this.#e.delete(s)};this.#r||!r?De(f,l,!1):l()}}};#f=t=>{this.#t.delete(t);const n=Array.from(this.#t.values());for(const[r,i]of this.#n)n.includes(r)||(P(i.effect),this.#n.delete(r))};ensure(t,n){var r=N,i=Tn();if(n&&!this.#e.has(t)&&!this.#n.has(t))if(i){var s=document.createDocumentFragment(),f=ee();s.append(f),this.#n.set(t,{effect:W(()=>n(f)),fragment:s})}else this.#e.set(t,W(()=>n(this.anchor)));if(this.#t.set(r,t),i){for(const[l,a]of this.#e)l===t?r.skipped_effects.delete(a):r.skipped_effects.add(a);for(const[l,a]of this.#n)l===t?r.skipped_effects.delete(a.effect):r.skipped_effects.add(a.effect);r.oncommit(this.#a),r.ondiscard(this.#f)}else w&&(this.anchor=T),this.#a()}}function Kn(e,t,n=!1){w&&rt();var r=new vi(e),i=n?Oe:0;function s(f,l){if(w){const o=Zt(e)===Ke;if(f===o){var a=st();M(a),r.anchor=a,B(!1),r.ensure(f,l),B(!0);return}}r.ensure(f,l)}ct(()=>{var f=!1;t((l,a=!0)=>{f=!0,s(a,l)}),f||s(!1,null)},i)}function _i(e,t,n){for(var r=e.items,i=[],s=t.length,f=0;f<s;f++)Rt(t[f].e,i,!0);var l=s>0&&i.length===0&&n!==null;if(l){var a=n.parentNode;En(a),a.append(n),r.clear(),re(e,t[0].prev,t[s-1].next)}On(i,()=>{for(var o=0;o<s;o++){var h=t[o];l||(r.delete(h.k),re(e,h.prev,h.next)),P(h.e,!l)}})}function Xn(e,t,n,r,i,s=null){var f=e,l={flags:t,items:new Map,first:null},a=(t&Bt)!==0;if(a){var o=e;f=w?M(_e(o)):o.appendChild(ee())}w&&rt();var h=null,v=!1,u=new Map,c=cn(()=>{var A=n();return Yt(A)?A:A==null?[]:mt(A)}),d,p;function _(){pi(p,d,l,u,f,i,t,r,n),s!==null&&(d.length===0?h?Pt(h):h=W(()=>s(f)):h!==null&&De(h,()=>{h=null}))}ct(()=>{p??=y,d=E(c);var A=d.length;if(v&&A===0)return;v=A===0;let m=!1;if(w){var C=Zt(f)===Ke;C!==(A===0)&&(f=st(),M(f),B(!1),m=!0)}if(w){for(var D=null,k,g=0;g<A;g++){if(T.nodeType===be&&T.data===gt){f=T,m=!0,B(!1);break}var $=d[g],S=r($,g);k=Lt(T,l,D,null,$,S,g,i,t,n),l.items.set(S,k),D=k}A>0&&M(st())}if(w)A===0&&s&&(h=W(()=>s(f)));else if(Tn()){var pe=new Set,ge=N;for(g=0;g<A;g+=1){$=d[g],S=r($,g);var ie=l.items.get(S)??u.get(S);ie?(t&(Ge|Je))!==0&&Zn(ie,$,g,t):(k=Lt(null,l,null,null,$,S,g,i,t,n,!0),u.set(S,k)),pe.add(S)}for(const[Z,pt]of l.items)pe.has(Z)||ge.skipped_effects.add(pt.e);ge.oncommit(_)}else _();m&&B(!0),E(c)}),w&&(f=T)}function pi(e,t,n,r,i,s,f,l,a){var o=(f&lr)!==0,h=(f&(Ge|Je))!==0,v=t.length,u=n.items,c=n.first,d=c,p,_=null,A,m=[],C=[],D,k,g,$;if(o)for($=0;$<v;$+=1)D=t[$],k=l(D,$),g=u.get(k),g!==void 0&&(g.a?.measure(),(A??=new Set).add(g));for($=0;$<v;$+=1){if(D=t[$],k=l(D,$),g=u.get(k),g===void 0){var S=r.get(k);if(S!==void 0){r.delete(k),u.set(k,S);var pe=_?_.next:d;re(n,_,S),re(n,S,pe),Dt(S,pe,i),_=S}else{var ge=d?d.e.nodes_start:i;_=Lt(ge,n,_,_===null?n.first:_.next,D,k,$,s,f,a)}u.set(k,_),m=[],C=[],d=_.next;continue}if(h&&Zn(g,D,$,f),(g.e.f&q)!==0&&(Pt(g.e),o&&(g.a?.unfix(),(A??=new Set).delete(g))),g!==d){if(p!==void 0&&p.has(g)){if(m.length<C.length){var ie=C[0],Z;_=ie.prev;var pt=m[0],Ft=m[m.length-1];for(Z=0;Z<m.length;Z+=1)Dt(m[Z],ie,i);for(Z=0;Z<C.length;Z+=1)p.delete(C[Z]);re(n,pt.prev,Ft.next),re(n,_,pt),re(n,Ft,ie),d=ie,_=Ft,$-=1,m=[],C=[]}else p.delete(g),Dt(g,d,i),re(n,g.prev,g.next),re(n,g,_===null?n.first:_.next),re(n,_,g),_=g;continue}for(m=[],C=[];d!==null&&d.k!==k;)(d.e.f&q)===0&&(p??=new Set).add(d),C.push(d),d=d.next;if(d===null)continue;g=d}m.push(g),_=g,d=g.next}if(d!==null||p!==void 0){for(var ze=p===void 0?[]:mt(p);d!==null;)(d.e.f&q)===0&&ze.push(d),d=d.next;var jt=ze.length;if(jt>0){var qi=(f&Bt)!==0&&v===0?i:null;if(o){for($=0;$<jt;$+=1)ze[$].a?.measure();for($=0;$<jt;$+=1)ze[$].a?.fix()}_i(n,ze,qi)}}o&&qe(()=>{if(A!==void 0)for(g of A)g.a?.apply()}),e.first=n.first&&n.first.e,e.last=_&&_.e;for(var Bi of r.values())P(Bi.e);r.clear()}function Zn(e,t,n,r){(r&Ge)!==0&&Le(e.v,t),(r&Je)!==0?Le(e.i,n):e.i=n}function Lt(e,t,n,r,i,s,f,l,a,o,h){var v=(a&Ge)!==0,u=(a&ar)===0,c=v?u?_n(i,!1,!1):Ee(i):i,d=(a&Je)===0?f:Ee(f),p={i:d,v:c,k:s,a:null,e:null,prev:n,next:r};try{if(e===null){var _=document.createDocumentFragment();_.append(e=ee())}return p.e=W(()=>l(e,c,d,o),w),p.e.prev=n&&n.e,p.e.next=r&&r.e,n===null?h||(t.first=p):(n.next=p,n.e.next=p.e),r!==null&&(r.prev=p,r.e.prev=p.e),p}finally{}}function Dt(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 f=V(s);i.before(s),s=f}}function re(e,t,n){t===null?e.first=n:(t.next=n,t.e.next=n&&n.e),n!==null&&(n.prev=t,n.e.prev=t&&t.e)}function gi(e,t){let n=null,r=w;var i;if(w){n=T;for(var s=_e(document.head);s!==null&&(s.nodeType!==be||s.data!==e);)s=V(s);if(s===null)B(!1);else{var f=V(s);s.remove(),M(f)}}w||(i=document.head.appendChild(ee()));try{ct(()=>t(i),yt)}finally{r&&(B(!0),M(n))}}function mi(e,t){ei(()=>{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 wi(e,t,n){var r=e==null?"":""+e;return r===""?null:r}function bi(e,t){return e==null?null:String(e)}function yi(e,t,n,r,i,s){var f=e.__className;if(w||f!==n||f===void 0){var l=wi(n);(!w||l!==e.getAttribute("class"))&&(l==null?e.removeAttribute("class"):e.className=l),e.__className=n}return s}function $i(e,t,n,r){var i=e.__style;if(w||i!==t){var s=bi(t);(!w||s!==e.getAttribute("style"))&&(s==null?e.removeAttribute("style"):e.style.cssText=s),e.__style=t}return r}const Ei=Symbol("is custom element"),Ti=Symbol("is html");function Ai(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[$r]=n),n==null?e.removeAttribute(t):typeof n!="string"&&er(e).includes(t)?e[t]=n:e.setAttribute(t,n))}function Qn(e,t,n){var r=b,i=y;let s=w;w&&B(!1),I(null),z(null);try{t!=="style"&&(Mt.has(e.getAttribute("is")||e.nodeName)||!customElements||customElements.get(e.getAttribute("is")||e.tagName.toLowerCase())?er(e).includes(t):n&&typeof n=="object")?e[t]=n:Ai(e,t,n==null?n:String(n))}finally{I(r),z(i),s&&B(!0)}}function Ci(e){return e.__attributes??={[Ei]:e.nodeName.includes("-"),[Ti]:e.namespaceURI===_r}}var Mt=new Map;function er(e){var t=e.getAttribute("is")||e.nodeName,n=Mt.get(t);if(n)return n;Mt.set(t,n=[]);for(var r,i=e,s=Element.prototype;s!==i;){r=gr(i);for(var f in r)r[f].set&&n.push(f);i=Vt(i)}return n}let vt=!1;function Ni(e){var t=vt;try{return vt=!1,[e(),vt]}finally{vt=t}}function tr(e,t,n,r){var i=(n&cr)!==0,s=(n&hr)!==0,f=r,l=!0,a=()=>(l&&(l=!1,f=s?Yn(r):r),f),o;if(i){var h=tt in e||Jt in e;o=me(e,t)?.set??(h&&t in e?m=>e[t]=m:void 0)}var v,u=!1;i?[v,u]=Ni(()=>e[t]):v=e[t],v===void 0&&r!==void 0&&(v=a(),o&&(kr(),o(v)));var c;if(c=()=>{var m=e[t];return m===void 0?a():(l=!0,m)},(n&ur)===0)return c;if(o){var d=e.$$legacy;return(function(m,C){return arguments.length>0?((!C||d||u)&&o(C?c():m),m):c()})}var p=!1,_=((n&or)!==0?ot:cn)(()=>(p=!1,c()));i&&E(_);var A=y;return(function(m,C){if(arguments.length>0){const D=C?E(_):i?Te(m):m;return X(_,D),p=!0,f!==void 0&&(f=D),m}return Ce&&p||(A.f&he)!==0?_.v:E(_)})}function Si(e){return new ki(e)}class ki{#t;#e;constructor(t){var n=new Map,r=(s,f)=>{var l=_n(f,!1,!1);return n.set(s,l),l};const i=new Proxy({...t.props||{},$$events:{}},{get(s,f){return E(n.get(f)??r(f,Reflect.get(s,f)))},has(s,f){return f===Jt?!0:(E(n.get(f)??r(f,Reflect.get(s,f))),Reflect.has(s,f))},set(s,f,l){return X(n.get(f)??r(f,l),l),Reflect.set(s,f,l)}});this.#e=(t.hydrate?hi:Gn)(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)&&At(),this.#t=i.$$events;for(const s of Object.keys(this.#e))s==="$set"||s==="$destroy"||s==="$on"||Ze(this,s,{get(){return this.#e[s]},set(f){this.#e[s]=f},enumerable:!0});this.#e.$set=s=>{Object.assign(i,s)},this.#e.$destroy=()=>{di(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 nr;typeof HTMLElement=="function"&&(nr=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),Se(i,s)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const t={},n=xi(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]=_t(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=Si({component:this.$$ctor,target:this.shadowRoot||this,props:{...this.$$d,$$slots:t,$$host:this}}),this.$$me=Zr(()=>{Nn(()=>{this.$$r=!0;for(const r of Xe(this.$$c)){if(!this.$$p_d[r]?.reflect)continue;this.$$d[r]=this.$$c[r];const i=_t(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]=_t(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 Xe(this.$$p_d).find(t=>this.$$p_d[t].attribute===e||!this.$$p_d[t].attribute&&t.toLowerCase()===e)||e}});function _t(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 xi(e){const t={};return e.childNodes.forEach(n=>{t[n.slot||"default"]=!0}),t}function Oi(e,t,n,r,i,s){let f=class extends nr{constructor(){super(e,n,i),this.$$p_d=t}static get observedAttributes(){return Xe(t).map(l=>(t[l].attribute||l).toLowerCase())}};return Xe(t).forEach(l=>{Ze(f.prototype,l,{get(){return this.$$c&&l in this.$$c?this.$$c[l]:this.$$d[l]},set(a){a=_t(l,a,t),this.$$d[l]=a;var o=this.$$c;if(o){var h=me(o,l)?.get;h?o[l]=a:o.$set({[l]:a})}}})}),r.forEach(l=>{Ze(f.prototype,l,{get(){return this.$$c?.[l]}})}),e.element=f,f}const rr={version:"0.61.52"};var ke={},ir;function Ri(){if(ir)return ke;ir=1,Object.defineProperty(ke,"__esModule",{value:!0}),ke.LanguageTranslator=void 0,ke.getChildStyleToPass=e,ke.addComponent=t;function e(r,i){var s,f,l="";try{if(r&&i?.length&&(!((s=Object.keys(r))===null||s===void 0)&&s.length)&&(!((f=i?.filter(function(u){return Object.keys(r).includes(u.name)}))===null||f===void 0)&&f.length))for(var a=function(u){var c=i?.filter(function(d){return d.name===u&&d.defaultValue!==r[u]});c&&(l+="".concat(u,":").concat(r[u],";"))},o=0,h=Object.keys(r);o<h.length;o++){var v=h[o];a(v)}}catch(u){console.error("error getting child style to pass",u)}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 f=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(f),r?.local)l.src="".concat(r.local);else if(location.href.includes("localhost:6006")){var a=s.split("-")[0];l.src="http://localhost:6006/webcomponents/".concat(s.replace(a+"-",""),"/").concat(f)}document.head.appendChild(l)}catch(o){console.warn(o)}}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,f){return r.formatDate(i,s,f||this.lang)},r.getDefaultLang=function(){var i,s,f,l="en";return navigator?.languages&&(!((f=(s=(i=navigator.languages[0])===null||i===void 0?void 0:i.split("-")[0])===null||s===void 0?void 0:s.toLowerCase())===null||f===void 0)&&f.length)&&(l=navigator.languages[0].split("-")[0].toLowerCase()),l},r.getDictionaryWord=function(i,s,f){var l;if(!i)throw new Error("no wordKey provided");if(!s)throw new Error("no dictionary provided");if(f&&(!((l=s[f])===null||l===void 0)&&l[i]))return s[f][i];var a="",o=r.getDefaultLang();if(!f||o!==f){var h=s?.[o];h?.[i]&&(a=h[i])}return a},r.formatDate=function(i,s,f){if(!i)throw new Error("no date provided");if(typeof i.getMonth!="function")throw new Error("wrong date format");var l=new Intl.DateTimeFormat(f||r.getDefaultLang(),s);return l.format(i)},r})();return ke.LanguageTranslator=n,ke}var sr=Ri(),Pi=Me('<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@latest/font/bootstrap-icons.css"/>'),Ii=Me('<div class="sidebar-card-row"><hb-sidenav-button></hb-sidenav-button></div>',2),Li=Me('<div class="sidebar-card-rows-container"></div>'),Di=Me('<div class="sidebar-card-container"><!></div>'),Mi=Me('<hb-navbar><i slot="nav-switcher"></i></hb-navbar> <!>',3),Fi=Me('to be done, ref <a href="https://web.telegram.org/z/">https://web.telegram.com</a> left panel <!>',1);const ji={hash:"svelte-1l0lk50",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
+ @import url("https://cdn.jsdelivr.net/npm/bootstrap-icons@latest/font/bootstrap-icons.css");:host {font-family:"Roboto", sans-serif;}`};function fr(e,t){tn(t,!0),mi(e,ji);function n(u,c){t.$$host.dispatchEvent(new CustomEvent(u,{detail:c}))}let r=tr(t,"id",7,""),i=tr(t,"panels",23,()=>[]);Te({});let s=Wr(()=>i()?.find?.(u=>u.main)||i()?.find?.(u=>!u.parentPanelId));Xr(()=>{if(r()||r(""),typeof i()=="string")try{i(JSON.parse(i()))}catch(u){console.error("error parsing panels",u)}});function f(u,c){const d=E(s)?.cards.find(_=>_.id===c),p=d?.rows.find(_=>_.key===u);if(p){const _=Object.assign({},E(s));delete _.cards;const A=Object.assign({},d);delete _.rows;const m={id:r(),row:p,panel:_,card:A};if(n("itemClick",m),p.switchToPanelId){const C=i().find(D=>D.id===p.switchToPanelId);C&&X(s,C)}}}sr.addComponent({repoName:"@htmlbricks/hb-navbar",version:rr.version}),sr.addComponent({repoName:"@htmlbricks/hb-sidenav-button",version:rr.version});function l(u){const c={text:u.text,key:u.key};return u.bootstrapIcon&&(c.bootstrapIcon=u.bootstrapIcon),u.badge&&(c.badge=u.badge),c}var a={get id(){return r()},set id(u=""){r(u),At()},get panels(){return i()},set panels(u=[]){i(u),At()}};Xt();var o=Fi();gi("1l0lk50",u=>{var c=Pi();Se(u,c)});var h=$n(yn(o),3);{var v=u=>{var c=Mi(),d=yn(c);Ot(()=>Qn(d,"companybrandname",E(s).title));var p=kt(d);it(d);var _=$n(d,2);Xn(_,17,()=>E(s).cards,A=>A.id+"_c_"+E(s).id,(A,m)=>{var C=Di(),D=kt(C);{var k=g=>{var $=Li();Xn($,21,()=>E(m).rows,S=>S.key+"_r_"+E(m).id,(S,pe)=>{var ge=Ii(),ie=kt(ge);Ot(()=>Qn(ie,"navlink",JSON.stringify(l(E(pe))))),it(ge),Wn("pageChange",ie,Z=>{f(E(pe).key,E(m).id)}),Se(S,ge)}),it($),Se(g,$)};Kn(D,g=>{E(m).rows&&E(m).rows.length>0&&g(k)})}it(C),Se(A,C)}),Ot(()=>{$i(p,`font-weight:bold;cursor:${E(s).parentPanelId?"pointer":""}`),yi(p,1,`bi bi-${E(s).parentPanelId?"arrow-left":"list"}`)}),Wn("navmenuswitch",d,A=>{E(s)?.parentPanelId&&X(s,i()?.find?.(m=>m.id===E(s)?.parentPanelId))}),Se(u,c)};Kn(h,u=>{E(s)&&u(v)})}return Se(e,o),nn(a)}customElements.define("hb-sidebar-cards-navigator",Oi(fr,{id:{},panels:{}},[],[],!0)),qt.Component=fr,Object.defineProperty(qt,Symbol.toStringTag,{value:"Module"})})(this["sidebar-cards-navigator"]=this["sidebar-cards-navigator"]||{});
5
4
  //# sourceMappingURL=main.iife.js.map