@htmlbricks/hb-sidebar-cards-navigator 0.61.7 → 0.61.8

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