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