@htmlbricks/hb-sidebar-desktop 0.61.36 → 0.61.38

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(or){"use strict";typeof window<"u"&&((window.__svelte??={}).v??=new Set).add("5");const at=1,lt=2,fr=4,pn=8,bn=16,gn=1,mn=4,wn=8,yn=16,xn=1,En=2,wt="[",yt="[!",xt="]",Fe={},L=Symbol(),$n="http://www.w3.org/1999/xhtml",ur=!1;var Et=Array.isArray,kn=Array.prototype.indexOf,$t=Array.from,ot=Object.keys,qe=Object.defineProperty,Se=Object.getOwnPropertyDescriptor,Tn=Object.getOwnPropertyDescriptors,Sn=Object.prototype,Nn=Array.prototype,cr=Object.getPrototypeOf,dr=Object.isExtensible;function vr(e){for(var t=0;t<e.length;t++)e[t]()}function An(){var e,t,r=new Promise((n,i)=>{e=n,t=i});return{promise:r,resolve:e,reject:t}}const Y=2,kt=4,Tt=8,He=16,pe=32,we=64,hr=128,z=256,ft=512,j=1024,J=2048,ye=4096,te=8192,Ne=16384,St=32768,Nt=65536,_r=1<<17,pr=1<<18,Ue=1<<19,Cn=1<<20,At=1<<21,Ct=1<<22,Ae=1<<23,ut=Symbol("$state"),br=Symbol("legacy props"),On=Symbol(""),Ot=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"},Rt=3,Be=8;function Rn(){throw new Error("https://svelte.dev/e/await_outside_boundary")}function In(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function Pn(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function Mn(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function Ln(e){throw new Error("https://svelte.dev/e/effect_orphan")}function Dn(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function jn(){throw new Error("https://svelte.dev/e/hydration_failed")}function Fn(e){throw new Error("https://svelte.dev/e/props_invalid_value")}function qn(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function Hn(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function Un(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function ct(e){console.warn("https://svelte.dev/e/hydration_mismatch")}let $=!1;function V(e){$=e}let S;function H(e){if(e===null)throw ct(),Fe;return S=e}function Qe(){return H(ae(S))}function Ce(e){if($){if(ae(S)!==null)throw ct(),Fe;S=e}}function It(){for(var e=0,t=S;;){if(t.nodeType===Be){var r=t.data;if(r===xt){if(e===0)return t;e-=1}else(r===wt||r===yt)&&(e+=1)}var n=ae(t);t.remove(),t=n}}function gr(e){if(!e||e.nodeType!==Be)throw ct(),Fe;return e.data}function mr(e){return e===this.v}function Bn(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function wr(e){return!Bn(e,this.v)}let Yn=!1,re=null;function dt(e){re=e}function yr(e,t=!1,r){re={p:re,c:null,e:null,s:e,x:null,l:null}}function xr(e){var t=re,r=t.e;if(r!==null){t.e=null;for(var n of r)Br(n)}return e!==void 0&&(t.x=e),re=t.p,e??{}}function Er(){return!0}const Vn=new WeakMap;function Wn(e){var t=E;if(t===null)return k.f|=Ae,e;if((t.f&St)===0){if((t.f&hr)===0)throw!t.parent&&e instanceof Error&&$r(e),e;t.b.error(e)}else Pt(e,t)}function Pt(e,t){for(;t!==null;){if((t.f&hr)!==0)try{t.b.error(e);return}catch(r){e=r}t=t.parent}throw e instanceof Error&&$r(e),e}function $r(e){const t=Vn.get(e);t&&(qe(e,"message",{value:t.message}),qe(e,"stack",{value:t.stack}))}let et=[],Mt=[];function kr(){var e=et;et=[],vr(e)}function Gn(){var e=Mt;Mt=[],vr(e)}function Tr(e){et.length===0&&queueMicrotask(kr),et.push(e)}function Xn(){et.length>0&&kr(),Mt.length>0&&Gn()}function zn(){const e=E.b;return e===null&&Rn(),e}function Lt(e){var t=Y|J,r=k!==null&&(k.f&Y)!==0?k:null;return E===null||r!==null&&(r.f&z)!==0?t|=z:E.f|=Ue,{ctx:re,deps:null,effects:null,equals:mr,f:t,fn:e,reactions:null,rv:0,v:L,wv:0,parent:r??E,ac:null}}function Jn(e,t){let r=E;r===null&&In();var n=r.b,i=void 0,s=tt(L),a=null,o=!k;return oi(()=>{try{var l=e();a&&Promise.resolve(l).catch(()=>{})}catch(h){l=Promise.reject(h)}var f=()=>l;i=a?.then(f,f)??Promise.resolve(l),a=i;var c=M,v=n.is_pending();o&&(n.update_pending_count(1),v||c.increment());const b=(h,u=void 0)=>{a=null,v||c.activate(),u?u!==Ot&&(s.f|=Ae,rt(s,u)):((s.f&Ae)!==0&&(s.f^=Ae),rt(s,h)),o&&(n.update_pending_count(-1),v||c.decrement()),Cr()};if(i.then(b,h=>b(null,h||"unknown")),c)return()=>{queueMicrotask(()=>c.neuter())}}),new Promise(l=>{function f(c){function v(){c===i?l(s):f(i)}c.then(v,v)}f(i)})}function Sr(e){const t=Lt(e);return t.equals=wr,t}function Nr(e){var t=e.effects;if(t!==null){e.effects=null;for(var r=0;r<t.length;r+=1)ue(t[r])}}function Kn(e){for(var t=e.parent;t!==null;){if((t.f&Y)===0)return t;t=t.parent}return null}function Dt(e){var t,r=E;de(Kn(e));try{Nr(e),t=tn(e)}finally{de(r)}return t}function Ar(e){var t=Dt(e);if(e.equals(t)||(e.v=t,e.wv=Qr()),!Le){var r=(ke||(e.f&z)!==0)&&e.deps!==null?ye:j;U(e,r)}}function Zn(e,t,r){const n=Lt;if(t.length===0){r(e.map(n));return}var i=M,s=E,a=Qn(),o=zn();Promise.all(t.map(l=>Jn(l))).then(l=>{i?.activate(),a();try{r([...e.map(n),...l])}catch(f){(s.f&Ne)===0&&Pt(f,s)}i?.deactivate(),Cr()}).catch(l=>{o.error(l)})}function Qn(){var e=E,t=k,r=re,n=M;return function(){de(e),K(t),dt(r),n?.activate()}}function Cr(){de(null),K(null),dt(null)}const jt=new Set;let M=null,Or=new Set,vt=[];function Rr(){const e=vt.shift();vt.length>0&&queueMicrotask(Rr),e()}let Oe=[],ht=null,Ft=!1,_t=!1;class Re{current=new Map;#t=new Map;#e=new Set;#r=0;#f=null;#u=!1;#i=[];#a=[];#s=[];#n=[];#l=[];#c=[];#d=[];skipped_effects=new Set;process(t){Oe=[];for(const i of t)this.#h(i);if(this.#i.length===0&&this.#r===0){this.#v();var r=this.#s,n=this.#n;this.#s=[],this.#n=[],this.#l=[],M=null,Pr(r),Pr(n),M===null?M=this:jt.delete(this),this.#f?.resolve()}else this.#o(this.#s),this.#o(this.#n),this.#o(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^=j;for(var r=t.first;r!==null;){var n=r.f,i=(n&(pe|we))!==0,s=i&&(n&j)!==0,a=s||(n&te)!==0||this.skipped_effects.has(r);if(!a&&r.fn!==null){if(i)r.f^=j;else if((n&kt)!==0)this.#n.push(r);else if((n&j)===0)if((n&Ct)!==0){var o=r.b?.is_pending()?this.#a:this.#i;o.push(r)}else pt(r)&&((r.f&He)!==0&&this.#l.push(r),Xe(r));var l=r.first;if(l!==null){r=l;continue}}var f=r.parent;for(r=r.next;r===null&&f!==null;)r=f.next,f=f.parent}}#o(t){for(const r of t)((r.f&J)!==0?this.#c:this.#d).push(r),U(r,j);t.length=0}capture(t,r){this.#t.has(t)||this.#t.set(t,r),this.current.set(t,t.v)}activate(){M=this}deactivate(){M=null;for(const t of Or)if(Or.delete(t),t(),M!==null)break}neuter(){this.#u=!0}flush(){Oe.length>0?Ir():this.#v(),M===this&&(this.#r===0&&jt.delete(this),this.deactivate())}#v(){if(!this.#u)for(const t of this.#e)t();this.#e.clear()}increment(){this.#r+=1}decrement(){if(this.#r-=1,this.#r===0){for(const t of this.#c)U(t,J),Ye(t);for(const t of this.#d)U(t,ye),Ye(t);this.#s=[],this.#n=[],this.flush()}else this.deactivate()}add_callback(t){this.#e.add(t)}settled(){return(this.#f??=An()).promise}static ensure(){if(M===null){const t=M=new Re;jt.add(M),_t||Re.enqueue(()=>{M===t&&t.flush()})}return M}static enqueue(t){vt.length===0&&queueMicrotask(Rr),vt.unshift(t)}}function xe(e){var t=_t;_t=!0;try{for(var r;;){if(Xn(),Oe.length===0&&(M?.flush(),Oe.length===0))return ht=null,r;Ir()}}finally{_t=t}}function Ir(){var e=Ge;Ft=!0;try{var t=0;for(zr(!0);Oe.length>0;){var r=Re.ensure();if(t++>1e3){var n,i;ei()}r.process(Oe),Ee.clear()}}finally{Ft=!1,zr(e),ht=null}}function ei(){try{Dn()}catch(e){Pt(e,ht)}}let Ie=null;function Pr(e){var t=e.length;if(t!==0){for(var r=0;r<t;){var n=e[r++];if((n.f&(Ne|te))===0&&pt(n)&&(Ie=[],Xe(n),n.deps===null&&n.first===null&&n.nodes_start===null&&(n.teardown===null&&n.ac===null?Wr(n):n.fn=null),Ie?.length>0)){Ee.clear();for(const i of Ie)Xe(i);Ie=[]}}Ie=null}}function Ye(e){for(var t=ht=e;t.parent!==null;){t=t.parent;var r=t.f;if(Ft&&t===E&&(r&He)!==0)return;if((r&(we|pe))!==0){if((r&j)===0)return;t.f^=j}}Oe.push(t)}const Ee=new Map;function tt(e,t){var r={f:0,v:e,reactions:null,equals:mr,rv:0,wv:0};return r}function se(e,t){const r=tt(e);return di(r),r}function Mr(e,t=!1,r=!0){const n=tt(e);return t||(n.equals=wr),n}function be(e,t,r=!1){k!==null&&(!ce||(k.f&_r)!==0)&&Er()&&(k.f&(Y|He|Ct|_r))!==0&&!ge?.includes(e)&&Un();let n=r?Pe(t):t;return rt(e,n)}function rt(e,t){if(!e.equals(t)){var r=e.v;Le?Ee.set(e,t):Ee.set(e,r),e.v=t;var n=Re.ensure();n.capture(e,r),(e.f&Y)!==0&&((e.f&J)!==0&&Dt(e),U(e,(e.f&z)===0?j:ye)),e.wv=Qr(),Lr(e,J),E!==null&&(E.f&j)!==0&&(E.f&(pe|we))===0&&(Z===null?vi([e]):Z.push(e))}return t}function qt(e){be(e,e.v+1)}function Lr(e,t){var r=e.reactions;if(r!==null)for(var n=r.length,i=0;i<n;i++){var s=r[i],a=s.f,o=(a&J)===0;o&&U(s,t),(a&Y)!==0?Lr(s,ye):o&&((a&He)!==0&&Ie!==null&&Ie.push(s),Ye(s))}}function Pe(e){if(typeof e!="object"||e===null||ut in e)return e;const t=cr(e);if(t!==Sn&&t!==Nn)return e;var r=new Map,n=Et(e),i=se(0),s=De,a=o=>{if(De===s)return o();var l=k,f=De;K(null),Zr(s);var c=o();return K(l),Zr(f),c};return n&&r.set("length",se(e.length)),new Proxy(e,{defineProperty(o,l,f){(!("value"in f)||f.configurable===!1||f.enumerable===!1||f.writable===!1)&&qn();var c=r.get(l);return c===void 0?c=a(()=>{var v=se(f.value);return r.set(l,v),v}):be(c,f.value,!0),!0},deleteProperty(o,l){var f=r.get(l);if(f===void 0){if(l in o){const c=a(()=>se(L));r.set(l,c),qt(i)}}else be(f,L),qt(i);return!0},get(o,l,f){if(l===ut)return e;var c=r.get(l),v=l in o;if(c===void 0&&(!v||Se(o,l)?.writable)&&(c=a(()=>{var h=Pe(v?o[l]:L),u=se(h);return u}),r.set(l,c)),c!==void 0){var b=R(c);return b===L?void 0:b}return Reflect.get(o,l,f)},getOwnPropertyDescriptor(o,l){var f=Reflect.getOwnPropertyDescriptor(o,l);if(f&&"value"in f){var c=r.get(l);c&&(f.value=R(c))}else if(f===void 0){var v=r.get(l),b=v?.v;if(v!==void 0&&b!==L)return{enumerable:!0,configurable:!0,value:b,writable:!0}}return f},has(o,l){if(l===ut)return!0;var f=r.get(l),c=f!==void 0&&f.v!==L||Reflect.has(o,l);if(f!==void 0||E!==null&&(!c||Se(o,l)?.writable)){f===void 0&&(f=a(()=>{var b=c?Pe(o[l]):L,h=se(b);return h}),r.set(l,f));var v=R(f);if(v===L)return!1}return c},set(o,l,f,c){var v=r.get(l),b=l in o;if(n&&l==="length")for(var h=f;h<v.v;h+=1){var u=r.get(h+"");u!==void 0?be(u,L):h in o&&(u=a(()=>se(L)),r.set(h+"",u))}if(v===void 0)(!b||Se(o,l)?.writable)&&(v=a(()=>se(void 0)),be(v,Pe(f)),r.set(l,v));else{b=v.v!==L;var _=a(()=>Pe(f));be(v,_)}var g=Reflect.getOwnPropertyDescriptor(o,l);if(g?.set&&g.set.call(c,f),!b){if(n&&typeof l=="string"){var y=r.get("length"),m=Number(l);Number.isInteger(m)&&m>=y.v&&be(y,m+1)}qt(i)}return!0},ownKeys(o){R(i);var l=Reflect.ownKeys(o).filter(v=>{var b=r.get(v);return b===void 0||b.v!==L});for(var[f,c]of r)c.v!==L&&!(f in o)&&l.push(f);return l},setPrototypeOf(){Hn()}})}var Dr,jr,Fr,qr;function Ht(){if(Dr===void 0){Dr=window,jr=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,r=Text.prototype;Fr=Se(t,"firstChild").get,qr=Se(t,"nextSibling").get,dr(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),dr(r)&&(r.__t=void 0)}}function ne(e=""){return document.createTextNode(e)}function $e(e){return Fr.call(e)}function ae(e){return qr.call(e)}function Me(e,t){if(!$)return $e(e);var r=$e(S);if(r===null)r=S.appendChild(ne());else if(t&&r.nodeType!==Rt){var n=ne();return r?.before(n),H(n),n}return H(r),r}function Ve(e,t){if(!$){var r=$e(e);return r instanceof Comment&&r.data===""?ae(r):r}return S}function le(e,t=1,r=!1){let n=$?S:e;for(var i;t--;)i=n,n=ae(n);if(!$)return n;if(r&&n?.nodeType!==Rt){var s=ne();return n===null?i?.after(s):n.before(s),H(s),s}return H(n),n}function Hr(e){e.textContent=""}function Ur(){return!1}function Ut(e){var t=k,r=E;K(null),de(null);try{return e()}finally{K(t),de(r)}}function ti(e){E===null&&k===null&&Ln(),k!==null&&(k.f&z)!==0&&E===null&&Mn(),Le&&Pn()}function ri(e,t){var r=t.last;r===null?t.last=t.first=e:(r.next=e,e.prev=r,t.last=e)}function oe(e,t,r,n=!0){var i=E;i!==null&&(i.f&te)!==0&&(e|=te);var s={ctx:re,deps:null,nodes_start:null,nodes_end:null,f:e|J,first:null,fn:t,last:null,next:null,parent:i,b:i&&i.b,prev:null,teardown:null,transitions:null,wv:0,ac:null};if(r)try{Xe(s),s.f|=St}catch(l){throw ue(s),l}else t!==null&&Ye(s);if(n){var a=s;if(r&&a.deps===null&&a.teardown===null&&a.nodes_start===null&&a.first===a.last&&(a.f&Ue)===0&&(a=a.first),a!==null&&(a.parent=i,i!==null&&ri(a,i),k!==null&&(k.f&Y)!==0&&(e&we)===0)){var o=k;(o.effects??=[]).push(a)}}return s}function ni(e){const t=oe(Tt,null,!1);return U(t,j),t.teardown=e,t}function ii(e){ti();var t=E.f,r=!k&&(t&pe)!==0&&(t&St)===0;if(r){var n=re;(n.e??=[]).push(e)}else return Br(e)}function Br(e){return oe(kt|Cn,e,!1)}function si(e){Re.ensure();const t=oe(we|Ue,e,!0);return()=>{ue(t)}}function ai(e){Re.ensure();const t=oe(we|Ue,e,!0);return(r={})=>new Promise(n=>{r.outro?Yt(t,()=>{ue(t),n(void 0)}):(ue(t),n(void 0))})}function li(e){return oe(kt,e,!1)}function oi(e){return oe(Ct|Ue,e,!0)}function fi(e,t=0){return oe(Tt|t,e,!0)}function fe(e,t=[],r=[]){Zn(t,r,n=>{oe(Tt,()=>e(...n.map(R)),!0)})}function Bt(e,t=0){var r=oe(He|t,e,!0);return r}function We(e,t=!0){return oe(pe|Ue,e,!0,t)}function Yr(e){var t=e.teardown;if(t!==null){const r=Le,n=k;Jr(!0),K(null);try{t.call(null)}finally{Jr(r),K(n)}}}function Vr(e,t=!1){var r=e.first;for(e.first=e.last=null;r!==null;){const i=r.ac;i!==null&&Ut(()=>{i.abort(Ot)});var n=r.next;(r.f&we)!==0?r.parent=null:ue(r,t),r=n}}function ui(e){for(var t=e.first;t!==null;){var r=t.next;(t.f&pe)===0&&ue(t),t=r}}function ue(e,t=!0){var r=!1;(t||(e.f&pr)!==0)&&e.nodes_start!==null&&e.nodes_end!==null&&(ci(e.nodes_start,e.nodes_end),r=!0),Vr(e,t&&!r),bt(e,0),U(e,Ne);var n=e.transitions;if(n!==null)for(const s of n)s.stop();Yr(e);var i=e.parent;i!==null&&i.first!==null&&Wr(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes_start=e.nodes_end=e.ac=null}function ci(e,t){for(;e!==null;){var r=e===t?null:ae(e);e.remove(),e=r}}function Wr(e){var t=e.parent,r=e.prev,n=e.next;r!==null&&(r.next=n),n!==null&&(n.prev=r),t!==null&&(t.first===e&&(t.first=n),t.last===e&&(t.last=r))}function Yt(e,t){var r=[];Vt(e,r,!0),Gr(r,()=>{ue(e),t&&t()})}function Gr(e,t){var r=e.length;if(r>0){var n=()=>--r||t();for(var i of e)i.out(n)}else t()}function Vt(e,t,r){if((e.f&te)===0){if(e.f^=te,e.transitions!==null)for(const a of e.transitions)(a.is_global||r)&&t.push(a);for(var n=e.first;n!==null;){var i=n.next,s=(n.f&Nt)!==0||(n.f&pe)!==0;Vt(n,t,s?r:!1),n=i}}}function Wt(e){Xr(e,!0)}function Xr(e,t){if((e.f&te)!==0){e.f^=te,(e.f&j)===0&&(U(e,J),Ye(e));for(var r=e.first;r!==null;){var n=r.next,i=(r.f&Nt)!==0||(r.f&pe)!==0;Xr(r,i?t:!1),r=n}if(e.transitions!==null)for(const s of e.transitions)(s.is_global||t)&&s.in()}}let Ge=!1;function zr(e){Ge=e}let Le=!1;function Jr(e){Le=e}let k=null,ce=!1;function K(e){k=e}let E=null;function de(e){E=e}let ge=null;function di(e){k!==null&&(ge===null?ge=[e]:ge.push(e))}let F=null,W=0,Z=null;function vi(e){Z=e}let Kr=1,nt=0,De=nt;function Zr(e){De=e}let ke=!1;function Qr(){return++Kr}function pt(e){var t=e.f;if((t&J)!==0)return!0;if((t&ye)!==0){var r=e.deps,n=(t&z)!==0;if(r!==null){var i,s,a=(t&ft)!==0,o=n&&E!==null&&!ke,l=r.length;if((a||o)&&(E===null||(E.f&Ne)===0)){var f=e,c=f.parent;for(i=0;i<l;i++)s=r[i],(a||!s?.reactions?.includes(f))&&(s.reactions??=[]).push(f);a&&(f.f^=ft),o&&c!==null&&(c.f&z)===0&&(f.f^=z)}for(i=0;i<l;i++)if(s=r[i],pt(s)&&Ar(s),s.wv>e.wv)return!0}(!n||E!==null&&!ke)&&U(e,j)}return!1}function en(e,t,r=!0){var n=e.reactions;if(n!==null&&!ge?.includes(e))for(var i=0;i<n.length;i++){var s=n[i];(s.f&Y)!==0?en(s,t,!1):t===s&&(r?U(s,J):(s.f&j)!==0&&U(s,ye),Ye(s))}}function tn(e){var t=F,r=W,n=Z,i=k,s=ke,a=ge,o=re,l=ce,f=De,c=e.f;F=null,W=0,Z=null,ke=(c&z)!==0&&(ce||!Ge||k===null),k=(c&(pe|we))===0?e:null,ge=null,dt(e.ctx),ce=!1,De=++nt,e.ac!==null&&(Ut(()=>{e.ac.abort(Ot)}),e.ac=null);try{e.f|=At;var v=e.fn,b=v(),h=e.deps;if(F!==null){var u;if(bt(e,W),h!==null&&W>0)for(h.length=W+F.length,u=0;u<F.length;u++)h[W+u]=F[u];else e.deps=h=F;if(!ke||(c&Y)!==0&&e.reactions!==null)for(u=W;u<h.length;u++)(h[u].reactions??=[]).push(e)}else h!==null&&W<h.length&&(bt(e,W),h.length=W);if(Er()&&Z!==null&&!ce&&h!==null&&(e.f&(Y|ye|J))===0)for(u=0;u<Z.length;u++)en(Z[u],e);return i!==null&&i!==e&&(nt++,Z!==null&&(n===null?n=Z:n.push(...Z))),(e.f&Ae)!==0&&(e.f^=Ae),b}catch(_){return Wn(_)}finally{e.f^=At,F=t,W=r,Z=n,k=i,ke=s,ge=a,dt(o),ce=l,De=f}}function hi(e,t){let r=t.reactions;if(r!==null){var n=kn.call(r,e);if(n!==-1){var i=r.length-1;i===0?r=t.reactions=null:(r[n]=r[i],r.pop())}}r===null&&(t.f&Y)!==0&&(F===null||!F.includes(t))&&(U(t,ye),(t.f&(z|ft))===0&&(t.f^=ft),Nr(t),bt(t,0))}function bt(e,t){var r=e.deps;if(r!==null)for(var n=t;n<r.length;n++)hi(e,r[n])}function Xe(e){var t=e.f;if((t&Ne)===0){U(e,j);var r=E,n=Ge;E=e,Ge=!0;try{(t&He)!==0?ui(e):Vr(e),Yr(e);var i=tn(e);e.teardown=typeof i=="function"?i:null,e.wv=Kr;var s;ur&&Yn&&(e.f&J)!==0&&e.deps}finally{Ge=n,E=r}}}function R(e){var t=e.f,r=(t&Y)!==0;if(k!==null&&!ce){var n=E!==null&&(E.f&Ne)!==0;if(!n&&!ge?.includes(e)){var i=k.deps;if((k.f&At)!==0)e.rv<nt&&(e.rv=nt,F===null&&i!==null&&i[W]===e?W++:F===null?F=[e]:(!ke||!F.includes(e))&&F.push(e));else{(k.deps??=[]).push(e);var s=e.reactions;s===null?e.reactions=[k]:s.includes(k)||s.push(k)}}}else if(r&&e.deps===null&&e.effects===null){var a=e,o=a.parent;o!==null&&(o.f&z)===0&&(a.f^=z)}if(Le){if(Ee.has(e))return Ee.get(e);if(r){a=e;var l=a.v;return((a.f&j)===0&&a.reactions!==null||rn(a))&&(l=Dt(a)),Ee.set(a,l),l}}else r&&(a=e,pt(a)&&Ar(a));if((e.f&Ae)!==0)throw e.v;return e.v}function rn(e){if(e.v===L)return!0;if(e.deps===null)return!1;for(const t of e.deps)if(Ee.has(t)||(t.f&Y)!==0&&rn(t))return!0;return!1}function _i(e){var t=ce;try{return ce=!0,e()}finally{ce=t}}const pi=-7169;function U(e,t){e.f=e.f&pi|t}const bi=new Set,nn=new Set;function gi(e,t,r,n={}){function i(s){if(n.capture||it.call(t,s),!s.cancelBubble)return Ut(()=>r?.call(this,s))}return e.startsWith("pointer")||e.startsWith("touch")||e==="wheel"?Tr(()=>{t.addEventListener(e,i,n)}):t.addEventListener(e,i,n),i}function Gt(e,t,r,n,i){var s={capture:n,passive:i},a=gi(e,t,r,s);(t===document.body||t===window||t===document||t instanceof HTMLMediaElement)&&ni(()=>{t.removeEventListener(e,a,s)})}let sn=null;function it(e){var t=this,r=t.ownerDocument,n=e.type,i=e.composedPath?.()||[],s=i[0]||e.target;sn=e;var a=0,o=sn===e&&e.__root;if(o){var l=i.indexOf(o);if(l!==-1&&(t===document||t===window)){e.__root=t;return}var f=i.indexOf(t);if(f===-1)return;l<=f&&(a=l)}if(s=i[a]||e.target,s!==t){qe(e,"currentTarget",{configurable:!0,get(){return s||r}});var c=k,v=E;K(null),de(null);try{for(var b,h=[];s!==null;){var u=s.assignedSlot||s.parentNode||s.host||null;try{var _=s["__"+n];if(_!=null&&(!s.disabled||e.target===s))if(Et(_)){var[g,...y]=_;g.apply(s,[e,...y])}else _.call(s,e)}catch(m){b?h.push(m):b=m}if(e.cancelBubble||u===t||u===null)break;s=u}if(b){for(let m of h)queueMicrotask(()=>{throw m});throw b}}finally{e.__root=t,delete e.currentTarget,K(c),de(v)}}}let Q;function mi(){Q=void 0}function wi(e){let t=null,r=$;var n;if($){for(t=S,Q===void 0&&(Q=$e(document.head));Q!==null&&(Q.nodeType!==Be||Q.data!==wt);)Q=ae(Q);Q===null?V(!1):Q=H(ae(Q))}$||(n=document.head.appendChild(ne()));try{Bt(()=>e(n),pr)}finally{r&&(V(!0),Q=S,H(t))}}function yi(e){var t=document.createElement("template");return t.innerHTML=e.replaceAll("<!>","<!---->"),t.content}function Te(e,t){var r=E;r.nodes_start===null&&(r.nodes_start=e,r.nodes_end=t)}function ve(e,t){var r=(t&xn)!==0,n=(t&En)!==0,i,s=!e.startsWith("<!>");return()=>{if($)return Te(S,null),S;i===void 0&&(i=yi(s?e:"<!>"+e),r||(i=$e(i)));var a=n||jr?document.importNode(i,!0):i.cloneNode(!0);if(r){var o=$e(a),l=a.lastChild;Te(o,l)}else Te(a,a);return a}}function xi(e=""){if(!$){var t=ne(e+"");return Te(t,t),t}var r=S;return r.nodeType!==Rt&&(r.before(r=ne()),H(r)),Te(r,r),r}function Xt(){if($)return Te(S,null),S;var e=document.createDocumentFragment(),t=document.createComment(""),r=ne();return e.append(t,r),Te(t,r),e}function q(e,t){if($){E.nodes_end=S,Qe();return}e!==null&&e.before(t)}const Ei=["touchstart","touchmove"];function $i(e){return Ei.includes(e)}function zt(e,t){var r=t==null?"":typeof t=="object"?t+"":t;r!==(e.__t??=e.nodeValue)&&(e.__t=r,e.nodeValue=r+"")}function an(e,t){return ln(e,t)}function ki(e,t){Ht(),t.intro=t.intro??!1;const r=t.target,n=$,i=S;try{for(var s=$e(r);s&&(s.nodeType!==Be||s.data!==wt);)s=ae(s);if(!s)throw Fe;V(!0),H(s),Qe();const a=ln(e,{...t,anchor:s});if(S===null||S.nodeType!==Be||S.data!==xt)throw ct(),Fe;return V(!1),a}catch(a){if(a instanceof Error&&a.message.split(`
2
- `).some(o=>o.startsWith("https://svelte.dev/e/")))throw a;return a!==Fe&&console.warn("Failed to hydrate: ",a),t.recover===!1&&jn(),Ht(),Hr(r),V(!1),an(e,t)}finally{V(n),H(i),mi()}}const ze=new Map;function ln(e,{target:t,anchor:r,props:n={},events:i,context:s,intro:a=!0}){Ht();var o=new Set,l=v=>{for(var b=0;b<v.length;b++){var h=v[b];if(!o.has(h)){o.add(h);var u=$i(h);t.addEventListener(h,it,{passive:u});var _=ze.get(h);_===void 0?(document.addEventListener(h,it,{passive:u}),ze.set(h,1)):ze.set(h,_+1)}}};l($t(bi)),nn.add(l);var f=void 0,c=ai(()=>{var v=r??t.appendChild(ne());return We(()=>{if(s){yr({});var b=re;b.c=s}i&&(n.$$events=i),$&&Te(v,null),f=e(v,n)||{},$&&(E.nodes_end=S),s&&xr()}),()=>{for(var b of o){t.removeEventListener(b,it);var h=ze.get(b);--h===0?(document.removeEventListener(b,it),ze.delete(b)):ze.set(b,h)}nn.delete(l),v!==r&&v.parentNode?.removeChild(v)}});return Jt.set(f,c),f}let Jt=new WeakMap;function Ti(e,t){const r=Jt.get(e);return r?(Jt.delete(e),r(t)):Promise.resolve()}function Je(e,t,r=!1){$&&Qe();var n=e,i=null,s=null,a=L,o=r?Nt:0,l=!1;const f=(h,u=!0)=>{l=!0,b(u,h)};var c=null;function v(){c!==null&&(c.lastChild.remove(),n.before(c),c=null);var h=a?i:s,u=a?s:i;h&&Wt(h),u&&Yt(u,()=>{a?s=null:i=null})}const b=(h,u)=>{if(a===(a=h))return;let _=!1;if($){const A=gr(n)===yt;!!a===A&&(n=It(),H(n),V(!1),_=!0)}var g=Ur(),y=n;if(g&&(c=document.createDocumentFragment(),c.append(y=ne())),a?i??=u&&We(()=>u(y)):s??=u&&We(()=>u(y)),g){var m=M,C=a?i:s,O=a?s:i;C&&m.skipped_effects.delete(C),O&&m.skipped_effects.add(O),m.add_callback(v)}else v();_&&V(!0)};Bt(()=>{l=!1,t(f),l||b(null,null)},o),$&&(n=S)}function Si(e,t,r){for(var n=e.items,i=[],s=t.length,a=0;a<s;a++)Vt(t[a].e,i,!0);var o=s>0&&i.length===0&&r!==null;if(o){var l=r.parentNode;Hr(l),l.append(r),n.clear(),he(e,t[0].prev,t[s-1].next)}Gr(i,()=>{for(var f=0;f<s;f++){var c=t[f];o||(n.delete(c.k),he(e,c.prev,c.next)),ue(c.e,!o)}})}function st(e,t,r,n,i,s=null){var a=e,o={flags:t,items:new Map,first:null},l=(t&fr)!==0;if(l){var f=e;a=$?H($e(f)):f.appendChild(ne())}$&&Qe();var c=null,v=!1,b=new Map,h=Sr(()=>{var y=r();return Et(y)?y:y==null?[]:$t(y)}),u,_;function g(){Ni(_,u,o,b,a,i,t,n,r),s!==null&&(u.length===0?c?Wt(c):c=We(()=>s(a)):c!==null&&Yt(c,()=>{c=null}))}Bt(()=>{_??=E,u=R(h);var y=u.length;if(v&&y===0)return;v=y===0;let m=!1;if($){var C=gr(a)===yt;C!==(y===0)&&(a=It(),H(a),V(!1),m=!0)}if($){for(var O=null,A,w=0;w<y;w++){if(S.nodeType===Be&&S.data===xt){a=S,m=!0,V(!1);break}var x=u[w],I=n(x,w);A=Kt(S,o,O,null,x,I,w,i,t,r),o.items.set(I,A),O=A}y>0&&H(It())}if($)y===0&&s&&(c=We(()=>s(a)));else if(Ur()){var _e=new Set,me=M;for(w=0;w<y;w+=1){x=u[w],I=n(x,w);var ie=o.items.get(I)??b.get(I);ie?(t&(at|lt))!==0&&on(ie,x,w,t):(A=Kt(null,o,null,null,x,I,w,i,t,r,!0),b.set(I,A)),_e.add(I)}for(const[B,d]of o.items)_e.has(B)||me.skipped_effects.add(d.e);me.add_callback(g)}else g();m&&V(!0),R(h)}),$&&(a=S)}function Ni(e,t,r,n,i,s,a,o,l){var f=(a&pn)!==0,c=(a&(at|lt))!==0,v=t.length,b=r.items,h=r.first,u=h,_,g=null,y,m=[],C=[],O,A,w,x;if(f)for(x=0;x<v;x+=1)O=t[x],A=o(O,x),w=b.get(A),w!==void 0&&(w.a?.measure(),(y??=new Set).add(w));for(x=0;x<v;x+=1){if(O=t[x],A=o(O,x),w=b.get(A),w===void 0){var I=n.get(A);if(I!==void 0){n.delete(A),b.set(A,I);var _e=g?g.next:u;he(r,g,I),he(r,I,_e),Zt(I,_e,i),g=I}else{var me=u?u.e.nodes_start:i;g=Kt(me,r,g,g===null?r.first:g.next,O,A,x,s,a,l)}b.set(A,g),m=[],C=[],u=g.next;continue}if(c&&on(w,O,x,a),(w.e.f&te)!==0&&(Wt(w.e),f&&(w.a?.unfix(),(y??=new Set).delete(w))),w!==u){if(_!==void 0&&_.has(w)){if(m.length<C.length){var ie=C[0],B;g=ie.prev;var d=m[0],p=m[m.length-1];for(B=0;B<m.length;B+=1)Zt(m[B],ie,i);for(B=0;B<C.length;B+=1)_.delete(C[B]);he(r,d.prev,p.next),he(r,g,d),he(r,p,ie),u=ie,g=p,x-=1,m=[],C=[]}else _.delete(w),Zt(w,u,i),he(r,w.prev,w.next),he(r,w,g===null?r.first:g.next),he(r,g,w),g=w;continue}for(m=[],C=[];u!==null&&u.k!==A;)(u.e.f&te)===0&&(_??=new Set).add(u),C.push(u),u=u.next;if(u===null)continue;w=u}m.push(w),g=w,u=w.next}if(u!==null||_!==void 0){for(var N=_===void 0?[]:$t(_);u!==null;)(u.e.f&te)===0&&N.push(u),u=u.next;var T=N.length;if(T>0){var D=(a&fr)!==0&&v===0?i:null;if(f){for(x=0;x<T;x+=1)N[x].a?.measure();for(x=0;x<T;x+=1)N[x].a?.fix()}Si(r,N,D)}}f&&Tr(()=>{if(y!==void 0)for(w of y)w.a?.apply()}),e.first=r.first&&r.first.e,e.last=g&&g.e;for(var P of n.values())ue(P.e);n.clear()}function on(e,t,r,n){(n&at)!==0&&rt(e.v,t),(n&lt)!==0?rt(e.i,r):e.i=r}function Kt(e,t,r,n,i,s,a,o,l,f,c){var v=(l&at)!==0,b=(l&bn)===0,h=v?b?Mr(i,!1,!1):tt(i):i,u=(l&lt)===0?a:tt(a),_={i:u,v:h,k:s,a:null,e:null,prev:r,next:n};try{if(e===null){var g=document.createDocumentFragment();g.append(e=ne())}return _.e=We(()=>o(e,h,u,f),$),_.e.prev=r&&r.e,_.e.next=n&&n.e,r===null?c||(t.first=_):(r.next=_,r.e.next=_.e),n!==null&&(n.prev=_,n.e.prev=_.e),_}finally{}}function Zt(e,t,r){for(var n=e.next?e.next.e.nodes_start:r,i=t?t.e.nodes_start:r,s=e.e.nodes_start;s!==null&&s!==n;){var a=ae(s);i.before(s),s=a}}function he(e,t,r){t===null?e.first=r:(t.next=r,t.e.next=r&&r.e),r!==null&&(r.prev=t,r.e.prev=t&&t.e)}function Qt(e,t,r,n,i){$&&Qe();var s=t.$$slots?.[r],a=!1;s===!0&&(s=t[r==="default"?"children":r],a=!0),s===void 0?i!==null&&i(e):s(e,a?()=>n:n)}function Ai(e,t){li(()=>{var r=e.getRootNode(),n=r.host?r:r.head??r.ownerDocument.head;if(!n.querySelector("#"+t.hash)){const i=document.createElement("style");i.id=t.hash,i.textContent=t.code,n.appendChild(i)}})}function Ci(e,t,r){var n=""+e;return n}function Oi(e,t){return e==null?null:String(e)}function er(e,t,r,n,i,s){var a=e.__className;if($||a!==r||a===void 0){var o=Ci(r);(!$||o!==e.getAttribute("class"))&&(o==null?e.removeAttribute("class"):e.className=o),e.__className=r}return s}function tr(e,t,r,n){var i=e.__style;if($||i!==t){var s=Oi(t);(!$||s!==e.getAttribute("style"))&&(s==null?e.removeAttribute("style"):e.style.cssText=s),e.__style=t}return n}const Ri=Symbol("is custom element"),Ii=Symbol("is html");function fn(e,t,r,n){var i=Pi(e);$&&(i[t]=e.getAttribute(t),t==="src"||t==="srcset"||t==="href"&&e.nodeName==="LINK")||i[t]!==(i[t]=r)&&(t==="loading"&&(e[On]=r),r==null?e.removeAttribute(t):typeof r!="string"&&un(e).includes(t)?e[t]=r:e.setAttribute(t,r))}function Ke(e,t,r){var n=k,i=E;let s=$;$&&V(!1),K(null),de(null);try{t!=="style"&&(rr.has(e.getAttribute("is")||e.nodeName)||!customElements||customElements.get(e.getAttribute("is")||e.tagName.toLowerCase())?un(e).includes(t):r&&typeof r=="object")?e[t]=r:fn(e,t,r==null?r:String(r))}finally{K(n),de(i),s&&V(!0)}}function Pi(e){return e.__attributes??={[Ri]:e.nodeName.includes("-"),[Ii]:e.namespaceURI===$n}}var rr=new Map;function un(e){var t=e.getAttribute("is")||e.nodeName,r=rr.get(t);if(r)return r;rr.set(t,r=[]);for(var n,i=e,s=Element.prototype;s!==i;){n=Tn(i);for(var a in n)n[a].set&&r.push(a);i=cr(i)}return r}let gt=!1;function Mi(e){var t=gt;try{return gt=!1,[e(),gt]}finally{gt=t}}function je(e,t,r,n){var i=(r&wn)!==0,s=(r&yn)!==0,a=n,o=!0,l=()=>(o&&(o=!1,a=s?_i(n):n),a),f;if(i){var c=ut in e||br in e;f=Se(e,t)?.set??(c&&t in e?m=>e[t]=m:void 0)}var v,b=!1;i?[v,b]=Mi(()=>e[t]):v=e[t],v===void 0&&n!==void 0&&(v=l(),f&&(Fn(),f(v)));var h;if(h=()=>{var m=e[t];return m===void 0?l():(o=!0,m)},(r&mn)===0)return h;if(f){var u=e.$$legacy;return(function(m,C){return arguments.length>0?((!C||u||b)&&f(C?h():m),m):h()})}var _=!1,g=((r&gn)!==0?Lt:Sr)(()=>(_=!1,h()));i&&R(g);var y=E;return(function(m,C){if(arguments.length>0){const O=C?R(g):i?Pe(m):m;return be(g,O),_=!0,a!==void 0&&(a=O),m}return Le&&_||(y.f&Ne)!==0?g.v:R(g)})}function Li(e){return new Di(e)}class Di{#t;#e;constructor(t){var r=new Map,n=(s,a)=>{var o=Mr(a,!1,!1);return r.set(s,o),o};const i=new Proxy({...t.props||{},$$events:{}},{get(s,a){return R(r.get(a)??n(a,Reflect.get(s,a)))},has(s,a){return a===br?!0:(R(r.get(a)??n(a,Reflect.get(s,a))),Reflect.has(s,a))},set(s,a,o){return be(r.get(a)??n(a,o),o),Reflect.set(s,a,o)}});this.#e=(t.hydrate?ki:an)(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)&&xe(),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(a){this.#e[s]=a},enumerable:!0});this.#e.$set=s=>{Object.assign(i,s)},this.#e.$destroy=()=>{Ti(this.#e)}}$set(t){this.#e.$set(t)}$on(t,r){this.#t[t]=this.#t[t]||[];const n=(...i)=>r.call(this,...i);return this.#t[t].push(n),()=>{this.#t[t]=this.#t[t].filter(i=>i!==n)}}$destroy(){this.#e.$destroy()}}let cn;typeof HTMLElement=="function"&&(cn=class extends HTMLElement{$$ctor;$$s;$$c;$$cn=!1;$$d={};$$r=!1;$$p_d={};$$l={};$$l_u=new Map;$$me;constructor(e,t,r){super(),this.$$ctor=e,this.$$s=t,r&&this.attachShadow({mode:"open"})}addEventListener(e,t,r){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(t),this.$$c){const n=this.$$c.$on(e,t);this.$$l_u.set(t,n)}super.addEventListener(e,t,r)}removeEventListener(e,t,r){if(super.removeEventListener(e,t,r),this.$$c){const n=this.$$l_u.get(t);n&&(n(),this.$$l_u.delete(t))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let e=function(n){return i=>{const s=document.createElement("slot");n!=="default"&&(s.name=n),q(i,s)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const t={},r=ji(this);for(const n of this.$$s)n in r&&(n==="default"&&!this.$$d.children?(this.$$d.children=e(n),t.default=!0):t[n]=e(n));for(const n of this.attributes){const i=this.$$g_p(n.name);i in this.$$d||(this.$$d[i]=mt(i,n.value,this.$$p_d,"toProp"))}for(const n in this.$$p_d)!(n in this.$$d)&&this[n]!==void 0&&(this.$$d[n]=this[n],delete this[n]);this.$$c=Li({component:this.$$ctor,target:this.shadowRoot||this,props:{...this.$$d,$$slots:t,$$host:this}}),this.$$me=si(()=>{fi(()=>{this.$$r=!0;for(const n of ot(this.$$c)){if(!this.$$p_d[n]?.reflect)continue;this.$$d[n]=this.$$c[n];const i=mt(n,this.$$d[n],this.$$p_d,"toAttribute");i==null?this.removeAttribute(this.$$p_d[n].attribute||n):this.setAttribute(this.$$p_d[n].attribute||n,i)}this.$$r=!1})});for(const n in this.$$l)for(const i of this.$$l[n]){const s=this.$$c.$on(n,i);this.$$l_u.set(i,s)}this.$$l={}}}attributeChangedCallback(e,t,r){this.$$r||(e=this.$$g_p(e),this.$$d[e]=mt(e,r,this.$$p_d,"toProp"),this.$$c?.$set({[e]:this.$$d[e]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$me(),this.$$c=void 0)})}$$g_p(e){return ot(this.$$p_d).find(t=>this.$$p_d[t].attribute===e||!this.$$p_d[t].attribute&&t.toLowerCase()===e)||e}});function mt(e,t,r,n){const i=r[e]?.type;if(t=i==="Boolean"&&typeof t!="boolean"?t!=null:t,!n||!r[e])return t;if(n==="toAttribute")switch(i){case"Object":case"Array":return t==null?null:JSON.stringify(t);case"Boolean":return t?"":null;case"Number":return t??null;default:return t}else switch(i){case"Object":case"Array":return t&&JSON.parse(t);case"Boolean":return t;case"Number":return t!=null?+t:t;default:return t}}function ji(e){const t={};return e.childNodes.forEach(r=>{t[r.slot||"default"]=!0}),t}function Fi(e,t,r,n,i,s){let a=class extends cn{constructor(){super(e,r,i),this.$$p_d=t}static get observedAttributes(){return ot(t).map(o=>(t[o].attribute||o).toLowerCase())}};return ot(t).forEach(o=>{qe(a.prototype,o,{get(){return this.$$c&&o in this.$$c?this.$$c[o]:this.$$d[o]},set(l){l=mt(o,l,t),this.$$d[o]=l;var f=this.$$c;if(f){var c=Se(f,o)?.get;c?f[o]=l:f.$set({[o]:l})}}})}),n.forEach(o=>{qe(a.prototype,o,{get(){return this.$$c?.[o]}})}),e.element=a,a}const qi={version:"0.61.36"};function Hi(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 r=e?.iifePath||"main.iife.js";if(!document.getElementById(t+"-script"))try{const n=document.createElement("script");if(n.id=t+"-script",n.src=`https://cdn.jsdelivr.net/npm/${e.repoName}@${e.version}/${r}`,e?.local)n.src=`${e.local}`;else if(location.href.includes("localhost:6006")){const i=t.split("-")[0];n.src=`http://localhost:6006/webcomponents/${t.replace(i+"-","")}/${r}`}document.head.appendChild(n)}catch(n){console.warn(n)}}function Ui(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Ze={},nr,dn;function Bi(){if(dn)return nr;dn=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,r=/^\s*/,n=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,i=/^:\s*/,s=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,a=/^[;\s]*/,o=/^\s+|\s+$/g,l=`
2
+ `).some(o=>o.startsWith("https://svelte.dev/e/")))throw a;return a!==Fe&&console.warn("Failed to hydrate: ",a),t.recover===!1&&jn(),Ht(),Hr(r),V(!1),an(e,t)}finally{V(n),H(i),mi()}}const ze=new Map;function ln(e,{target:t,anchor:r,props:n={},events:i,context:s,intro:a=!0}){Ht();var o=new Set,l=v=>{for(var b=0;b<v.length;b++){var h=v[b];if(!o.has(h)){o.add(h);var u=$i(h);t.addEventListener(h,it,{passive:u});var _=ze.get(h);_===void 0?(document.addEventListener(h,it,{passive:u}),ze.set(h,1)):ze.set(h,_+1)}}};l($t(bi)),nn.add(l);var f=void 0,c=ai(()=>{var v=r??t.appendChild(ne());return We(()=>{if(s){yr({});var b=re;b.c=s}i&&(n.$$events=i),$&&Te(v,null),f=e(v,n)||{},$&&(E.nodes_end=S),s&&xr()}),()=>{for(var b of o){t.removeEventListener(b,it);var h=ze.get(b);--h===0?(document.removeEventListener(b,it),ze.delete(b)):ze.set(b,h)}nn.delete(l),v!==r&&v.parentNode?.removeChild(v)}});return Jt.set(f,c),f}let Jt=new WeakMap;function Ti(e,t){const r=Jt.get(e);return r?(Jt.delete(e),r(t)):Promise.resolve()}function Je(e,t,r=!1){$&&Qe();var n=e,i=null,s=null,a=L,o=r?Nt:0,l=!1;const f=(h,u=!0)=>{l=!0,b(u,h)};var c=null;function v(){c!==null&&(c.lastChild.remove(),n.before(c),c=null);var h=a?i:s,u=a?s:i;h&&Wt(h),u&&Yt(u,()=>{a?s=null:i=null})}const b=(h,u)=>{if(a===(a=h))return;let _=!1;if($){const A=gr(n)===yt;!!a===A&&(n=It(),H(n),V(!1),_=!0)}var g=Ur(),y=n;if(g&&(c=document.createDocumentFragment(),c.append(y=ne())),a?i??=u&&We(()=>u(y)):s??=u&&We(()=>u(y)),g){var m=M,C=a?i:s,O=a?s:i;C&&m.skipped_effects.delete(C),O&&m.skipped_effects.add(O),m.add_callback(v)}else v();_&&V(!0)};Bt(()=>{l=!1,t(f),l||b(null,null)},o),$&&(n=S)}function Si(e,t,r){for(var n=e.items,i=[],s=t.length,a=0;a<s;a++)Vt(t[a].e,i,!0);var o=s>0&&i.length===0&&r!==null;if(o){var l=r.parentNode;Hr(l),l.append(r),n.clear(),he(e,t[0].prev,t[s-1].next)}Gr(i,()=>{for(var f=0;f<s;f++){var c=t[f];o||(n.delete(c.k),he(e,c.prev,c.next)),ue(c.e,!o)}})}function st(e,t,r,n,i,s=null){var a=e,o={flags:t,items:new Map,first:null},l=(t&fr)!==0;if(l){var f=e;a=$?H($e(f)):f.appendChild(ne())}$&&Qe();var c=null,v=!1,b=new Map,h=Sr(()=>{var y=r();return Et(y)?y:y==null?[]:$t(y)}),u,_;function g(){Ni(_,u,o,b,a,i,t,n,r),s!==null&&(u.length===0?c?Wt(c):c=We(()=>s(a)):c!==null&&Yt(c,()=>{c=null}))}Bt(()=>{_??=E,u=R(h);var y=u.length;if(v&&y===0)return;v=y===0;let m=!1;if($){var C=gr(a)===yt;C!==(y===0)&&(a=It(),H(a),V(!1),m=!0)}if($){for(var O=null,A,w=0;w<y;w++){if(S.nodeType===Be&&S.data===xt){a=S,m=!0,V(!1);break}var x=u[w],I=n(x,w);A=Kt(S,o,O,null,x,I,w,i,t,r),o.items.set(I,A),O=A}y>0&&H(It())}if($)y===0&&s&&(c=We(()=>s(a)));else if(Ur()){var _e=new Set,me=M;for(w=0;w<y;w+=1){x=u[w],I=n(x,w);var ie=o.items.get(I)??b.get(I);ie?(t&(at|lt))!==0&&on(ie,x,w,t):(A=Kt(null,o,null,null,x,I,w,i,t,r,!0),b.set(I,A)),_e.add(I)}for(const[B,d]of o.items)_e.has(B)||me.skipped_effects.add(d.e);me.add_callback(g)}else g();m&&V(!0),R(h)}),$&&(a=S)}function Ni(e,t,r,n,i,s,a,o,l){var f=(a&pn)!==0,c=(a&(at|lt))!==0,v=t.length,b=r.items,h=r.first,u=h,_,g=null,y,m=[],C=[],O,A,w,x;if(f)for(x=0;x<v;x+=1)O=t[x],A=o(O,x),w=b.get(A),w!==void 0&&(w.a?.measure(),(y??=new Set).add(w));for(x=0;x<v;x+=1){if(O=t[x],A=o(O,x),w=b.get(A),w===void 0){var I=n.get(A);if(I!==void 0){n.delete(A),b.set(A,I);var _e=g?g.next:u;he(r,g,I),he(r,I,_e),Zt(I,_e,i),g=I}else{var me=u?u.e.nodes_start:i;g=Kt(me,r,g,g===null?r.first:g.next,O,A,x,s,a,l)}b.set(A,g),m=[],C=[],u=g.next;continue}if(c&&on(w,O,x,a),(w.e.f&te)!==0&&(Wt(w.e),f&&(w.a?.unfix(),(y??=new Set).delete(w))),w!==u){if(_!==void 0&&_.has(w)){if(m.length<C.length){var ie=C[0],B;g=ie.prev;var d=m[0],p=m[m.length-1];for(B=0;B<m.length;B+=1)Zt(m[B],ie,i);for(B=0;B<C.length;B+=1)_.delete(C[B]);he(r,d.prev,p.next),he(r,g,d),he(r,p,ie),u=ie,g=p,x-=1,m=[],C=[]}else _.delete(w),Zt(w,u,i),he(r,w.prev,w.next),he(r,w,g===null?r.first:g.next),he(r,g,w),g=w;continue}for(m=[],C=[];u!==null&&u.k!==A;)(u.e.f&te)===0&&(_??=new Set).add(u),C.push(u),u=u.next;if(u===null)continue;w=u}m.push(w),g=w,u=w.next}if(u!==null||_!==void 0){for(var N=_===void 0?[]:$t(_);u!==null;)(u.e.f&te)===0&&N.push(u),u=u.next;var T=N.length;if(T>0){var D=(a&fr)!==0&&v===0?i:null;if(f){for(x=0;x<T;x+=1)N[x].a?.measure();for(x=0;x<T;x+=1)N[x].a?.fix()}Si(r,N,D)}}f&&Tr(()=>{if(y!==void 0)for(w of y)w.a?.apply()}),e.first=r.first&&r.first.e,e.last=g&&g.e;for(var P of n.values())ue(P.e);n.clear()}function on(e,t,r,n){(n&at)!==0&&rt(e.v,t),(n&lt)!==0?rt(e.i,r):e.i=r}function Kt(e,t,r,n,i,s,a,o,l,f,c){var v=(l&at)!==0,b=(l&bn)===0,h=v?b?Mr(i,!1,!1):tt(i):i,u=(l&lt)===0?a:tt(a),_={i:u,v:h,k:s,a:null,e:null,prev:r,next:n};try{if(e===null){var g=document.createDocumentFragment();g.append(e=ne())}return _.e=We(()=>o(e,h,u,f),$),_.e.prev=r&&r.e,_.e.next=n&&n.e,r===null?c||(t.first=_):(r.next=_,r.e.next=_.e),n!==null&&(n.prev=_,n.e.prev=_.e),_}finally{}}function Zt(e,t,r){for(var n=e.next?e.next.e.nodes_start:r,i=t?t.e.nodes_start:r,s=e.e.nodes_start;s!==null&&s!==n;){var a=ae(s);i.before(s),s=a}}function he(e,t,r){t===null?e.first=r:(t.next=r,t.e.next=r&&r.e),r!==null&&(r.prev=t,r.e.prev=t&&t.e)}function Qt(e,t,r,n,i){$&&Qe();var s=t.$$slots?.[r],a=!1;s===!0&&(s=t[r==="default"?"children":r],a=!0),s===void 0?i!==null&&i(e):s(e,a?()=>n:n)}function Ai(e,t){li(()=>{var r=e.getRootNode(),n=r.host?r:r.head??r.ownerDocument.head;if(!n.querySelector("#"+t.hash)){const i=document.createElement("style");i.id=t.hash,i.textContent=t.code,n.appendChild(i)}})}function Ci(e,t,r){var n=""+e;return n}function Oi(e,t){return e==null?null:String(e)}function er(e,t,r,n,i,s){var a=e.__className;if($||a!==r||a===void 0){var o=Ci(r);(!$||o!==e.getAttribute("class"))&&(o==null?e.removeAttribute("class"):e.className=o),e.__className=r}return s}function tr(e,t,r,n){var i=e.__style;if($||i!==t){var s=Oi(t);(!$||s!==e.getAttribute("style"))&&(s==null?e.removeAttribute("style"):e.style.cssText=s),e.__style=t}return n}const Ri=Symbol("is custom element"),Ii=Symbol("is html");function fn(e,t,r,n){var i=Pi(e);$&&(i[t]=e.getAttribute(t),t==="src"||t==="srcset"||t==="href"&&e.nodeName==="LINK")||i[t]!==(i[t]=r)&&(t==="loading"&&(e[On]=r),r==null?e.removeAttribute(t):typeof r!="string"&&un(e).includes(t)?e[t]=r:e.setAttribute(t,r))}function Ke(e,t,r){var n=k,i=E;let s=$;$&&V(!1),K(null),de(null);try{t!=="style"&&(rr.has(e.getAttribute("is")||e.nodeName)||!customElements||customElements.get(e.getAttribute("is")||e.tagName.toLowerCase())?un(e).includes(t):r&&typeof r=="object")?e[t]=r:fn(e,t,r==null?r:String(r))}finally{K(n),de(i),s&&V(!0)}}function Pi(e){return e.__attributes??={[Ri]:e.nodeName.includes("-"),[Ii]:e.namespaceURI===$n}}var rr=new Map;function un(e){var t=e.getAttribute("is")||e.nodeName,r=rr.get(t);if(r)return r;rr.set(t,r=[]);for(var n,i=e,s=Element.prototype;s!==i;){n=Tn(i);for(var a in n)n[a].set&&r.push(a);i=cr(i)}return r}let gt=!1;function Mi(e){var t=gt;try{return gt=!1,[e(),gt]}finally{gt=t}}function je(e,t,r,n){var i=(r&wn)!==0,s=(r&yn)!==0,a=n,o=!0,l=()=>(o&&(o=!1,a=s?_i(n):n),a),f;if(i){var c=ut in e||br in e;f=Se(e,t)?.set??(c&&t in e?m=>e[t]=m:void 0)}var v,b=!1;i?[v,b]=Mi(()=>e[t]):v=e[t],v===void 0&&n!==void 0&&(v=l(),f&&(Fn(),f(v)));var h;if(h=()=>{var m=e[t];return m===void 0?l():(o=!0,m)},(r&mn)===0)return h;if(f){var u=e.$$legacy;return(function(m,C){return arguments.length>0?((!C||u||b)&&f(C?h():m),m):h()})}var _=!1,g=((r&gn)!==0?Lt:Sr)(()=>(_=!1,h()));i&&R(g);var y=E;return(function(m,C){if(arguments.length>0){const O=C?R(g):i?Pe(m):m;return be(g,O),_=!0,a!==void 0&&(a=O),m}return Le&&_||(y.f&Ne)!==0?g.v:R(g)})}function Li(e){return new Di(e)}class Di{#t;#e;constructor(t){var r=new Map,n=(s,a)=>{var o=Mr(a,!1,!1);return r.set(s,o),o};const i=new Proxy({...t.props||{},$$events:{}},{get(s,a){return R(r.get(a)??n(a,Reflect.get(s,a)))},has(s,a){return a===br?!0:(R(r.get(a)??n(a,Reflect.get(s,a))),Reflect.has(s,a))},set(s,a,o){return be(r.get(a)??n(a,o),o),Reflect.set(s,a,o)}});this.#e=(t.hydrate?ki:an)(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)&&xe(),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(a){this.#e[s]=a},enumerable:!0});this.#e.$set=s=>{Object.assign(i,s)},this.#e.$destroy=()=>{Ti(this.#e)}}$set(t){this.#e.$set(t)}$on(t,r){this.#t[t]=this.#t[t]||[];const n=(...i)=>r.call(this,...i);return this.#t[t].push(n),()=>{this.#t[t]=this.#t[t].filter(i=>i!==n)}}$destroy(){this.#e.$destroy()}}let cn;typeof HTMLElement=="function"&&(cn=class extends HTMLElement{$$ctor;$$s;$$c;$$cn=!1;$$d={};$$r=!1;$$p_d={};$$l={};$$l_u=new Map;$$me;constructor(e,t,r){super(),this.$$ctor=e,this.$$s=t,r&&this.attachShadow({mode:"open"})}addEventListener(e,t,r){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(t),this.$$c){const n=this.$$c.$on(e,t);this.$$l_u.set(t,n)}super.addEventListener(e,t,r)}removeEventListener(e,t,r){if(super.removeEventListener(e,t,r),this.$$c){const n=this.$$l_u.get(t);n&&(n(),this.$$l_u.delete(t))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let e=function(n){return i=>{const s=document.createElement("slot");n!=="default"&&(s.name=n),q(i,s)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const t={},r=ji(this);for(const n of this.$$s)n in r&&(n==="default"&&!this.$$d.children?(this.$$d.children=e(n),t.default=!0):t[n]=e(n));for(const n of this.attributes){const i=this.$$g_p(n.name);i in this.$$d||(this.$$d[i]=mt(i,n.value,this.$$p_d,"toProp"))}for(const n in this.$$p_d)!(n in this.$$d)&&this[n]!==void 0&&(this.$$d[n]=this[n],delete this[n]);this.$$c=Li({component:this.$$ctor,target:this.shadowRoot||this,props:{...this.$$d,$$slots:t,$$host:this}}),this.$$me=si(()=>{fi(()=>{this.$$r=!0;for(const n of ot(this.$$c)){if(!this.$$p_d[n]?.reflect)continue;this.$$d[n]=this.$$c[n];const i=mt(n,this.$$d[n],this.$$p_d,"toAttribute");i==null?this.removeAttribute(this.$$p_d[n].attribute||n):this.setAttribute(this.$$p_d[n].attribute||n,i)}this.$$r=!1})});for(const n in this.$$l)for(const i of this.$$l[n]){const s=this.$$c.$on(n,i);this.$$l_u.set(i,s)}this.$$l={}}}attributeChangedCallback(e,t,r){this.$$r||(e=this.$$g_p(e),this.$$d[e]=mt(e,r,this.$$p_d,"toProp"),this.$$c?.$set({[e]:this.$$d[e]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$me(),this.$$c=void 0)})}$$g_p(e){return ot(this.$$p_d).find(t=>this.$$p_d[t].attribute===e||!this.$$p_d[t].attribute&&t.toLowerCase()===e)||e}});function mt(e,t,r,n){const i=r[e]?.type;if(t=i==="Boolean"&&typeof t!="boolean"?t!=null:t,!n||!r[e])return t;if(n==="toAttribute")switch(i){case"Object":case"Array":return t==null?null:JSON.stringify(t);case"Boolean":return t?"":null;case"Number":return t??null;default:return t}else switch(i){case"Object":case"Array":return t&&JSON.parse(t);case"Boolean":return t;case"Number":return t!=null?+t:t;default:return t}}function ji(e){const t={};return e.childNodes.forEach(r=>{t[r.slot||"default"]=!0}),t}function Fi(e,t,r,n,i,s){let a=class extends cn{constructor(){super(e,r,i),this.$$p_d=t}static get observedAttributes(){return ot(t).map(o=>(t[o].attribute||o).toLowerCase())}};return ot(t).forEach(o=>{qe(a.prototype,o,{get(){return this.$$c&&o in this.$$c?this.$$c[o]:this.$$d[o]},set(l){l=mt(o,l,t),this.$$d[o]=l;var f=this.$$c;if(f){var c=Se(f,o)?.get;c?f[o]=l:f.$set({[o]:l})}}})}),n.forEach(o=>{qe(a.prototype,o,{get(){return this.$$c?.[o]}})}),e.element=a,a}const qi={version:"0.61.38"};function Hi(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 r=e?.iifePath||"main.iife.js";if(!document.getElementById(t+"-script"))try{const n=document.createElement("script");if(n.id=t+"-script",n.src=`https://cdn.jsdelivr.net/npm/${e.repoName}@${e.version}/${r}`,e?.local)n.src=`${e.local}`;else if(location.href.includes("localhost:6006")){const i=t.split("-")[0];n.src=`http://localhost:6006/webcomponents/${t.replace(i+"-","")}/${r}`}document.head.appendChild(n)}catch(n){console.warn(n)}}function Ui(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Ze={},nr,dn;function Bi(){if(dn)return nr;dn=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,r=/^\s*/,n=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,i=/^:\s*/,s=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,a=/^[;\s]*/,o=/^\s+|\s+$/g,l=`
3
3
  `,f="/",c="*",v="",b="comment",h="declaration";nr=function(_,g){if(typeof _!="string")throw new TypeError("First argument must be a string");if(!_)return[];g=g||{};var y=1,m=1;function C(d){var p=d.match(t);p&&(y+=p.length);var N=d.lastIndexOf(l);m=~N?d.length-N:m+d.length}function O(){var d={line:y,column:m};return function(p){return p.position=new A(d),I(),p}}function A(d){this.start=d,this.end={line:y,column:m},this.source=g.source}A.prototype.content=_;function w(d){var p=new Error(g.source+":"+y+":"+m+": "+d);if(p.reason=d,p.filename=g.source,p.line=y,p.column=m,p.source=_,!g.silent)throw p}function x(d){var p=d.exec(_);if(p){var N=p[0];return C(N),_=_.slice(N.length),p}}function I(){x(r)}function _e(d){var p;for(d=d||[];p=me();)p!==!1&&d.push(p);return d}function me(){var d=O();if(!(f!=_.charAt(0)||c!=_.charAt(1))){for(var p=2;v!=_.charAt(p)&&(c!=_.charAt(p)||f!=_.charAt(p+1));)++p;if(p+=2,v===_.charAt(p-1))return w("End of comment missing");var N=_.slice(2,p-2);return m+=2,C(N),_=_.slice(p),m+=2,d({type:b,comment:N})}}function ie(){var d=O(),p=x(n);if(p){if(me(),!x(i))return w("property missing ':'");var N=x(s),T=d({type:h,property:u(p[0].replace(e,v)),value:N?u(N[0].replace(e,v)):v});return x(a),T}}function B(){var d=[];_e(d);for(var p;p=ie();)p!==!1&&(d.push(p),_e(d));return d}return I(),B()};function u(_){return _?_.replace(o,v):v}return nr}var vn;function Yi(){if(vn)return Ze;vn=1;var e=Ze&&Ze.__importDefault||function(n){return n&&n.__esModule?n:{default:n}};Object.defineProperty(Ze,"__esModule",{value:!0}),Ze.default=r;var t=e(Bi());function r(n,i){var s=null;if(!n||typeof n!="string")return s;var a=(0,t.default)(n),o=typeof i=="function";return a.forEach(function(l){if(l.type==="declaration"){var f=l.property,c=l.value;o?i(f,c,l):c&&(s=s||{},s[f]=c)}}),s}return Ze}var Vi=Yi();const hn=Ui(Vi);hn.default;var Wi=ve('<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@latest/font/bootstrap-icons.css" class="svelte-gdxdlc"/>'),Gi=ve('<img style="height:40px;margin-right:10px" alt="" class="svelte-gdxdlc"/>'),Xi=ve('<div style="margin-top:10px" class="svelte-gdxdlc"><!> </div>'),zi=ve("<hb-sidenav-link></hb-sidenav-link>",2),Ji=ve("<hb-sidenav-link></hb-sidenav-link>",2),Ki=ve('<h5 style="margin-top: 40px;" class="svelte-gdxdlc"> </h5> <hr style="margin-top:0px;margin-bottom: 10px;" class="svelte-gdxdlc"/> <!>',1),Zi=ve("<hb-sidenav-link></hb-sidenav-link>",2),Qi=ve('<h5 style="margin-top: 40px;" class="svelte-gdxdlc"> </h5> <hr style="margin-top:0px;margin-bottom: 10px;" class="svelte-gdxdlc"/> <!>',1),es=ve('<hr class="svelte-gdxdlc"/> <!>',1),ts=ve('<div id="webcomponent" style="position:relative;height:100%;" class="svelte-gdxdlc"><!> <div class="d-flex flex-column p-3 bg-light svelte-gdxdlc" style="height:100%;padding-top:0px!important;position: relative; max-height: 100%; overflow-y: auto;"><h4 class="offcanvas-title svelte-gdxdlc"><!> <!></h4> <ul class="nav nav-pills flex-column mb-auto svelte-gdxdlc" style="margin-top:25px"><!> <!> <!></ul> <!></div></div>');const rs={hash:"svelte-gdxdlc",code:`@charset "UTF-8";
4
4
  @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");
5
5
  @import url("https://cdn.jsdelivr.net/npm/bootstrap-icons@latest/font/bootstrap-icons.css");
package/manifest.json CHANGED
@@ -617,5 +617,5 @@
617
617
  "size": {},
618
618
  "iifePath": "main.iife.js",
619
619
  "repoName": "@htmlbricks/hb-sidebar-desktop",
620
- "version": "0.61.36"
620
+ "version": "0.61.38"
621
621
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@htmlbricks/hb-sidebar-desktop",
3
- "version": "0.61.36",
3
+ "version": "0.61.38",
4
4
  "contributors": [],
5
5
  "description": "",
6
6
  "licenses": [