@htmlbricks/hb-sidebar-desktop 0.73.5 → 0.74.0

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,6 +1,6 @@
1
1
  (function(e){Object.defineProperty(e,Symbol.toStringTag,{value:`Module`}),typeof window<`u`&&((window.__svelte??={}).v??=new Set).add(`5`);var t={},n=Symbol(),r=`http://www.w3.org/1999/xhtml`,i=Array.isArray,a=Array.prototype.indexOf,o=Array.prototype.includes,s=Array.from,c=Object.keys,l=Object.defineProperty,u=Object.getOwnPropertyDescriptor,d=Object.getOwnPropertyDescriptors,f=Object.prototype,p=Array.prototype,m=Object.getPrototypeOf,h=Object.isExtensible,g=()=>{};function _(e){for(var t=0;t<e.length;t++)e[t]()}function v(){var e,t;return{promise:new Promise((n,r)=>{e=n,t=r}),resolve:e,reject:t}}var y=1024,b=2048,x=4096,S=8192,ee=16384,te=32768,ne=1<<25,re=65536,ie=1<<18,ae=1<<19,oe=1<<20,se=1<<25,ce=65536,le=1<<21,ue=1<<22,de=1<<23,fe=Symbol(`$state`),pe=Symbol(`legacy props`),me=Symbol(``),he=new class extends Error{name=`StaleReactionError`;message="The reaction that called `getAbortSignal()` was re-run or destroyed"},ge=!!globalThis.document?.contentType&&globalThis.document.contentType.includes(`xml`);function _e(e){throw Error(`https://svelte.dev/e/lifecycle_outside_component`)}function ve(){throw Error(`https://svelte.dev/e/async_derived_orphan`)}function ye(e,t,n){throw Error(`https://svelte.dev/e/each_key_duplicate`)}function be(e){throw Error(`https://svelte.dev/e/effect_in_teardown`)}function xe(){throw Error(`https://svelte.dev/e/effect_in_unowned_derived`)}function Se(e){throw Error(`https://svelte.dev/e/effect_orphan`)}function Ce(){throw Error(`https://svelte.dev/e/effect_update_depth_exceeded`)}function we(){throw Error(`https://svelte.dev/e/hydration_failed`)}function Te(e){throw Error(`https://svelte.dev/e/props_invalid_value`)}function Ee(){throw Error(`https://svelte.dev/e/state_descriptors_fixed`)}function De(){throw Error(`https://svelte.dev/e/state_prototype_fixed`)}function Oe(){throw Error(`https://svelte.dev/e/state_unsafe_mutation`)}function ke(){throw Error(`https://svelte.dev/e/svelte_boundary_reset_onerror`)}function Ae(e){console.warn(`https://svelte.dev/e/hydration_mismatch`)}function je(){console.warn(`https://svelte.dev/e/svelte_boundary_reset_noop`)}var C=!1;function w(e){C=e}var T;function E(e){if(e===null)throw Ae(),t;return T=e}function Me(){return E(F(T))}function D(e){if(C){if(F(T)!==null)throw Ae(),t;T=e}}function Ne(e=1){if(C){for(var t=e,n=T;t--;)n=F(n);T=n}}function Pe(e=!0){for(var t=0,n=T;;){if(n.nodeType===8){var r=n.data;if(r===`]`){if(t===0)return n;--t}else (r===`[`||r===`[!`||r[0]===`[`&&!isNaN(Number(r.slice(1))))&&(t+=1)}var i=F(n);e&&n.remove(),n=i}}function Fe(e){if(!e||e.nodeType!==8)throw Ae(),t;return e.data}function Ie(e){return e===this.v}function Le(e,t){return e==e?e!==t||typeof e==`object`&&!!e||typeof e==`function`:t==t}function Re(e){return!Le(e,this.v)}var ze=!1,Be=!1,O=null;function Ve(e){O=e}function He(e,t=!1,n){O={p:O,i:!1,c:null,e:null,s:e,x:null,r:W,l:Be&&!t?{s:null,u:null,$:[]}:null}}function Ue(e){var t=O,n=t.e;if(n!==null){t.e=null;for(var r of n)hn(r)}return e!==void 0&&(t.x=e),t.i=!0,O=t.p,e??{}}function We(){return!Be||O!==null&&O.l===null}var Ge=[];function Ke(){var e=Ge;Ge=[],_(e)}function qe(e){if(Ge.length===0&&!ot){var t=Ge;queueMicrotask(()=>{t===Ge&&Ke()})}Ge.push(e)}function Je(){for(;Ge.length>0;)Ke()}function Ye(e){var t=W;if(t===null)return V.f|=de,e;if(!(t.f&32768)&&!(t.f&4))throw e;Xe(e,t)}function Xe(e,t){for(;t!==null;){if(t.f&128){if(!(t.f&32768))throw e;try{t.b.error(e);return}catch(t){e=t}}t=t.parent}throw e}var Ze=~(b|x|y);function k(e,t){e.f=e.f&Ze|t}function Qe(e){e.f&512||e.deps===null?k(e,y):k(e,x)}function $e(e){if(e!==null)for(let t of e)!(t.f&2)||!(t.f&65536)||(t.f^=ce,$e(t.deps))}function et(e,t,n){e.f&2048?t.add(e):e.f&4096&&n.add(e),$e(e.deps),k(e,y)}var tt=!1,nt=!1;function rt(e){var t=nt;try{return nt=!1,[e(),nt]}finally{nt=t}}var it=new Set,A=null,j=null,at=null,ot=!1,st=!1,ct=null,lt=null,ut=0,dt=1,ft=class e{id=dt++;current=new Map;previous=new Map;#e=new Set;#t=new Set;#n=new Map;#r=new Map;#i=null;#a=[];#o=new Set;#s=new Set;#c=new Map;is_fork=!1;#l=!1;#u=new Set;#d(){return this.is_fork||this.#r.size>0}#f(){for(let n of this.#u)for(let r of n.#r.keys()){for(var e=!1,t=r;t.parent!==null;){if(this.#c.has(t)){e=!0;break}t=t.parent}if(!e)return!0}return!1}skip_effect(e){this.#c.has(e)||this.#c.set(e,{d:[],m:[]})}unskip_effect(e){var t=this.#c.get(e);if(t){this.#c.delete(e);for(var n of t.d)k(n,b),this.schedule(n);for(n of t.m)k(n,x),this.schedule(n)}}#p(){if(ut++>1e3&&(it.delete(this),pt()),!this.#d()){for(let e of this.#o)this.#s.delete(e),k(e,b),this.schedule(e);for(let e of this.#s)k(e,x),this.schedule(e)}let t=this.#a;this.#a=[],this.apply();var n=ct=[],r=[],i=lt=[];for(let e of t)try{this.#m(e,n,r)}catch(t){throw bt(e),t}if(A=null,i.length>0){var a=e.ensure();for(let e of i)a.schedule(e)}if(ct=null,lt=null,this.#d()||this.#f()){this.#h(r),this.#h(n);for(let[e,t]of this.#c)yt(e,t)}else{this.#n.size===0&&it.delete(this),this.#o.clear(),this.#s.clear();for(let e of this.#e)e(this);this.#e.clear(),ht(r),ht(n),this.#i?.resolve()}var o=A;if(this.#a.length>0){let e=o??=this;e.#a.push(...this.#a.filter(t=>!e.#a.includes(t)))}o!==null&&(it.add(o),o.#p()),it.has(this)||this.#g()}#m(e,t,n){e.f^=y;for(var r=e.first;r!==null;){var i=r.f,a=(i&96)!=0;if(!(a&&i&1024||i&8192||this.#c.has(r))&&r.fn!==null){a?r.f^=y:i&4?t.push(r):ze&&i&16777224?n.push(r):Un(r)&&(i&16&&this.#s.add(r),Jn(r));var o=r.first;if(o!==null){r=o;continue}}for(;r!==null;){var s=r.next;if(s!==null){r=s;break}r=r.parent}}}#h(e){for(var t=0;t<e.length;t+=1)et(e[t],this.#o,this.#s)}capture(e,t,r=!1){t!==n&&!this.previous.has(e)&&this.previous.set(e,t),e.f&8388608||(this.current.set(e,[e.v,r]),j?.set(e,e.v))}activate(){A=this}deactivate(){A=null,j=null}flush(){try{st=!0,A=this,this.#p()}finally{ut=0,at=null,ct=null,lt=null,st=!1,A=null,j=null,Bt.clear()}}discard(){for(let e of this.#t)e(this);this.#t.clear(),it.delete(this)}#g(){for(let c of it){var e=c.id<this.id,t=[];for(let[r,[i,a]]of this.current){if(c.current.has(r)){var n=c.current.get(r)[0];if(e&&i!==n)c.current.set(r,[i,a]);else continue}t.push(r)}var r=[...c.current.keys()].filter(e=>!this.current.has(e));if(r.length===0)e&&c.discard();else if(t.length>0){c.activate();var i=new Set,a=new Map;for(var o of t)gt(o,r,i,a);if(c.#a.length>0){c.apply();for(var s of c.#a)c.#m(s,[],[]);c.#a=[]}c.deactivate()}}for(let e of it)e.#u.has(this)&&(e.#u.delete(this),e.#u.size===0&&!e.#d()&&(e.activate(),e.#p()))}increment(e,t){let n=this.#n.get(t)??0;if(this.#n.set(t,n+1),e){let e=this.#r.get(t)??0;this.#r.set(t,e+1)}}decrement(e,t,n){let r=this.#n.get(t)??0;if(r===1?this.#n.delete(t):this.#n.set(t,r-1),e){let e=this.#r.get(t)??0;e===1?this.#r.delete(t):this.#r.set(t,e-1)}this.#l||n||(this.#l=!0,qe(()=>{this.#l=!1,this.flush()}))}transfer_effects(e,t){for(let t of e)this.#o.add(t);for(let e of t)this.#s.add(e);e.clear(),t.clear()}oncommit(e){this.#e.add(e)}ondiscard(e){this.#t.add(e)}settled(){return(this.#i??=v()).promise}static ensure(){if(A===null){let t=A=new e;st||(it.add(A),ot||qe(()=>{A===t&&t.flush()}))}return A}apply(){if(!ze||!this.is_fork&&it.size===1){j=null;return}j=new Map;for(let[e,[t]]of this.current)j.set(e,t);for(let n of it)if(!(n===this||n.is_fork)){var e=!1,t=!1;if(n.id<this.id)for(let[r,[,i]]of n.current)i||(e||=this.current.has(r),t||=!this.current.has(r));if(e&&t)this.#u.add(n);else for(let[e,t]of n.previous)j.has(e)||j.set(e,t)}}schedule(e){if(at=e,e.b?.is_pending&&e.f&16777228&&!(e.f&32768)){e.b.defer_effect(e);return}for(var t=e;t.parent!==null;){t=t.parent;var n=t.f;if(ct!==null&&t===W&&(ze||(V===null||!(V.f&2))&&!tt))return;if(n&96){if(!(n&1024))return;t.f^=y}}this.#a.push(t)}};function M(e){var t=ot;ot=!0;try{var n;for(e&&(A!==null&&!A.is_fork&&A.flush(),n=e());;){if(Je(),A===null)return n;A.flush()}}finally{ot=t}}function pt(){try{Ce()}catch(e){Xe(e,at)}}var mt=null;function ht(e){var t=e.length;if(t!==0){for(var n=0;n<t;){var r=e[n++];if(!(r.f&24576)&&Un(r)&&(mt=new Set,Jn(r),r.deps===null&&r.first===null&&r.nodes===null&&r.teardown===null&&r.ac===null&&En(r),mt?.size>0)){Bt.clear();for(let e of mt){if(e.f&24576)continue;let t=[e],n=e.parent;for(;n!==null;)mt.has(n)&&(mt.delete(n),t.push(n)),n=n.parent;for(let e=t.length-1;e>=0;e--){let n=t[e];n.f&24576||Jn(n)}}mt.clear()}}mt=null}}function gt(e,t,n,r){if(!n.has(e)&&(n.add(e),e.reactions!==null))for(let i of e.reactions){let e=i.f;e&2?gt(i,t,n,r):e&4194320&&!(e&2048)&&_t(i,t,r)&&(k(i,b),vt(i))}}function _t(e,t,n){let r=n.get(e);if(r!==void 0)return r;if(e.deps!==null)for(let r of e.deps){if(o.call(t,r))return!0;if(r.f&2&&_t(r,t,n))return n.set(r,!0),!0}return n.set(e,!1),!1}function vt(e){A.schedule(e)}function yt(e,t){if(!(e.f&32&&e.f&1024)){e.f&2048?t.d.push(e):e.f&4096&&t.m.push(e),k(e,y);for(var n=e.first;n!==null;)yt(n,t),n=n.next}}function bt(e){k(e,y);for(var t=e.first;t!==null;)bt(t),t=t.next}function xt(e){let t=0,n=Ht(0),r;return()=>{fn()&&(X(n),bn(()=>(t===0&&(r=Zn(()=>e(()=>qt(n)))),t+=1,()=>{qe(()=>{--t,t===0&&(r?.(),r=void 0,qt(n))})})))}}var St=re|ae;function Ct(e,t,n,r){new wt(e,t,n,r)}var wt=class{parent;is_pending=!1;transform_error;#e;#t=C?T:null;#n;#r;#i;#a=null;#o=null;#s=null;#c=null;#l=0;#u=0;#d=!1;#f=new Set;#p=new Set;#m=null;#h=xt(()=>(this.#m=Ht(this.#l),()=>{this.#m=null}));constructor(e,t,n,r){this.#e=e,this.#n=t,this.#r=e=>{var t=W;t.b=this,t.f|=128,n(e)},this.parent=W.b,this.transform_error=r??this.parent?.transform_error??(e=>e),this.#i=xn(()=>{if(C){let e=this.#t;Me();let t=e.data===`[!`;if(e.data.startsWith(`[?`)){let t=JSON.parse(e.data.slice(2));this.#_(t)}else t?this.#v():this.#g()}else this.#y()},St),C&&(this.#e=T)}#g(){try{this.#a=z(()=>this.#r(this.#e))}catch(e){this.error(e)}}#_(e){let t=this.#n.failed;t&&(this.#s=z(()=>{t(this.#e,()=>e,()=>()=>{})}))}#v(){let e=this.#n.pending;e&&(this.is_pending=!0,this.#o=z(()=>e(this.#e)),qe(()=>{var e=this.#c=document.createDocumentFragment(),t=P();e.append(t),this.#a=this.#x(()=>z(()=>this.#r(t))),this.#u===0&&(this.#e.before(e),this.#c=null,Dn(this.#o,()=>{this.#o=null}),this.#b(A))}))}#y(){try{if(this.is_pending=this.has_pending_snippet(),this.#u=0,this.#l=0,this.#a=z(()=>{this.#r(this.#e)}),this.#u>0){var e=this.#c=document.createDocumentFragment();jn(this.#a,e);let t=this.#n.pending;this.#o=z(()=>t(this.#e))}else this.#b(A)}catch(e){this.error(e)}}#b(e){this.is_pending=!1,e.transfer_effects(this.#f,this.#p)}defer_effect(e){et(e,this.#f,this.#p)}is_rendered(){return!this.is_pending&&(!this.parent||this.parent.is_rendered())}has_pending_snippet(){return!!this.#n.pending}#x(e){var t=W,n=V,r=O;G(this.#i),U(this.#i),Ve(this.#i.ctx);try{return ft.ensure(),e()}catch(e){return Ye(e),null}finally{G(t),U(n),Ve(r)}}#S(e,t){if(!this.has_pending_snippet()){this.parent&&this.parent.#S(e,t);return}this.#u+=e,this.#u===0&&(this.#b(t),this.#o&&Dn(this.#o,()=>{this.#o=null}),this.#c&&=(this.#e.before(this.#c),null))}update_pending_count(e,t){this.#S(e,t),this.#l+=e,!(!this.#m||this.#d)&&(this.#d=!0,qe(()=>{this.#d=!1,this.#m&&Gt(this.#m,this.#l)}))}get_effect_pending(){return this.#h(),X(this.#m)}error(e){var t=this.#n.onerror;let n=this.#n.failed;if(!t&&!n)throw e;this.#a&&=(B(this.#a),null),this.#o&&=(B(this.#o),null),this.#s&&=(B(this.#s),null),C&&(E(this.#t),Ne(),E(Pe()));var r=!1,i=!1;let a=()=>{if(r){je();return}r=!0,i&&ke(),this.#s!==null&&Dn(this.#s,()=>{this.#s=null}),this.#x(()=>{this.#y()})},o=e=>{try{i=!0,t?.(e,a),i=!1}catch(e){Xe(e,this.#i&&this.#i.parent)}n&&(this.#s=this.#x(()=>{try{return z(()=>{var t=W;t.b=this,t.f|=128,n(this.#e,()=>e,()=>a)})}catch(e){return Xe(e,this.#i.parent),null}}))};qe(()=>{var t;try{t=this.transform_error(e)}catch(e){Xe(e,this.#i&&this.#i.parent);return}typeof t==`object`&&t&&typeof t.then==`function`?t.then(o,e=>Xe(e,this.#i&&this.#i.parent)):o(t)})}};function Tt(e,t,n,r){let i=We()?kt:Mt;var a=e.filter(e=>!e.settled);if(n.length===0&&a.length===0){r(t.map(i));return}var o=W,s=Et(),c=a.length===1?a[0].promise:a.length>1?Promise.all(a.map(e=>e.promise)):null;function l(e){s();try{r(e)}catch(e){o.f&16384||Xe(e,o)}Dt()}if(n.length===0){c.then(()=>l(t.map(i)));return}var u=Ot();function d(){Promise.all(n.map(e=>At(e))).then(e=>l([...t.map(i),...e])).catch(e=>Xe(e,o)).finally(()=>u())}c?c.then(()=>{s(),d(),Dt()}):d()}function Et(){var e=W,t=V,n=O,r=A;return function(i=!0){G(e),U(t),Ve(n),i&&!(e.f&16384)&&(r?.activate(),r?.apply())}}function Dt(e=!0){G(null),U(null),Ve(null),e&&A?.deactivate()}function Ot(){var e=W,t=e.b,n=A,r=t.is_rendered();return t.update_pending_count(1,n),n.increment(r,e),(i=!1)=>{t.update_pending_count(-1,n),n.decrement(r,e,i)}}function kt(e){var t=2|b,r=V!==null&&V.f&2?V:null;return W!==null&&(W.f|=ae),{ctx:O,deps:null,effects:null,equals:Ie,f:t,fn:e,reactions:null,rv:0,v:n,wv:0,parent:r??W,ac:null}}function At(e,t,r){let i=W;i===null&&ve();var a=void 0,o=Ht(n),s=!V,c=new Map;return yn(()=>{var t=W,n=v();a=n.promise;try{Promise.resolve(e()).then(n.resolve,n.reject).finally(Dt)}catch(e){n.reject(e),Dt()}var r=A;if(s){if(t.f&32768)var l=Ot();if(i.b.is_rendered())c.get(r)?.reject(he),c.delete(r);else{for(let e of c.values())e.reject(he);c.clear()}c.set(r,n)}let u=(e,n=void 0)=>{if(l&&l(n===he),!(n===he||t.f&16384)){if(r.activate(),n)o.f|=de,Gt(o,n);else{o.f&8388608&&(o.f^=de),Gt(o,e);for(let[e,t]of c){if(c.delete(e),e===r)break;t.reject(he)}}r.deactivate()}};n.promise.then(u,e=>u(null,e||`unknown`))}),pn(()=>{for(let e of c.values())e.reject(he)}),new Promise(e=>{function t(n){function r(){n===a?e(o):t(a)}n.then(r,r)}t(a)})}function jt(e){let t=kt(e);return ze||In(t),t}function Mt(e){let t=kt(e);return t.equals=Re,t}function Nt(e){var t=e.effects;if(t!==null){e.effects=null;for(var n=0;n<t.length;n+=1)B(t[n])}}function Pt(e){for(var t=e.parent;t!==null;){if(!(t.f&2))return t.f&16384?null:t;t=t.parent}return null}function Ft(e){var t,n=W;G(Pt(e));try{e.f&=~ce,Nt(e),t=Gn(e)}finally{G(n)}return t}function It(e){var t=e.v,n=Ft(e);if(!e.equals(n)&&(e.wv=Hn(),(!A?.is_fork||e.deps===null)&&(e.v=n,A?.capture(e,t,!0),e.deps===null))){k(e,y);return}Pn||(j===null?Qe(e):(fn()||A?.is_fork)&&j.set(e,n))}function Lt(e){if(e.effects!==null)for(let t of e.effects)(t.teardown||t.ac)&&(t.teardown?.(),t.ac?.abort(he),t.teardown=g,t.ac=null,qn(t,0),Cn(t))}function Rt(e){if(e.effects!==null)for(let t of e.effects)t.teardown&&Jn(t)}var zt=new Set,Bt=new Map,Vt=!1;function Ht(e,t){return{f:0,v:e,reactions:null,equals:Ie,rv:0,wv:0}}function Ut(e,t){let n=Ht(e,t);return In(n),n}function Wt(e,t=!1,n=!0){let r=Ht(e);return t||(r.equals=Re),Be&&n&&O!==null&&O.l!==null&&(O.l.s??=[]).push(r),r}function N(e,t,n=!1){return V!==null&&(!H||V.f&131072)&&We()&&V.f&4325394&&(K===null||!o.call(K,e))&&Oe(),Gt(e,n?Yt(t):t,lt)}function Gt(e,t,n=null){if(!e.equals(t)){var r=e.v;Pn?Bt.set(e,t):Bt.set(e,r),e.v=t;var i=ft.ensure();if(i.capture(e,r),e.f&2){let t=e;e.f&2048&&Ft(t),j===null&&Qe(t)}e.wv=Hn(),Jt(e,b,n),We()&&W!==null&&W.f&1024&&!(W.f&96)&&(Y===null?Ln([e]):Y.push(e)),!i.is_fork&&zt.size>0&&!Vt&&Kt()}return t}function Kt(){Vt=!1;for(let e of zt)e.f&1024&&k(e,x),Un(e)&&Jn(e);zt.clear()}function qt(e){N(e,e.v+1)}function Jt(e,t,n){var r=e.reactions;if(r!==null)for(var i=We(),a=r.length,o=0;o<a;o++){var s=r[o],c=s.f;if(!(!i&&s===W)){var l=(c&b)===0;if(l&&k(s,t),c&2){var u=s;j?.delete(u),c&65536||(c&512&&(s.f|=ce),Jt(u,x,n))}else if(l){var d=s;c&16&&mt!==null&&mt.add(d),n===null?vt(d):n.push(d)}}}}function Yt(e){if(typeof e!=`object`||!e||fe in e)return e;let t=m(e);if(t!==f&&t!==p)return e;var r=new Map,a=i(e),o=Ut(0),s=null,c=Bn,l=e=>{if(Bn===c)return e();var t=V,n=Bn;U(null),Vn(c);var r=e();return U(t),Vn(n),r};return a&&r.set(`length`,Ut(e.length,s)),new Proxy(e,{defineProperty(e,t,n){(!(`value`in n)||n.configurable===!1||n.enumerable===!1||n.writable===!1)&&Ee();var i=r.get(t);return i===void 0?l(()=>{var e=Ut(n.value,s);return r.set(t,e),e}):N(i,n.value,!0),!0},deleteProperty(e,t){var i=r.get(t);if(i===void 0){if(t in e){let e=l(()=>Ut(n,s));r.set(t,e),qt(o)}}else N(i,n),qt(o);return!0},get(t,i,a){if(i===fe)return e;var o=r.get(i),c=i in t;if(o===void 0&&(!c||u(t,i)?.writable)&&(o=l(()=>Ut(Yt(c?t[i]:n),s)),r.set(i,o)),o!==void 0){var d=X(o);return d===n?void 0:d}return Reflect.get(t,i,a)},getOwnPropertyDescriptor(e,t){var i=Reflect.getOwnPropertyDescriptor(e,t);if(i&&`value`in i){var a=r.get(t);a&&(i.value=X(a))}else if(i===void 0){var o=r.get(t),s=o?.v;if(o!==void 0&&s!==n)return{enumerable:!0,configurable:!0,value:s,writable:!0}}return i},has(e,t){if(t===fe)return!0;var i=r.get(t),a=i!==void 0&&i.v!==n||Reflect.has(e,t);return(i!==void 0||W!==null&&(!a||u(e,t)?.writable))&&(i===void 0&&(i=l(()=>Ut(a?Yt(e[t]):n,s)),r.set(t,i)),X(i)===n)?!1:a},set(e,t,i,c){var d=r.get(t),f=t in e;if(a&&t===`length`)for(var p=i;p<d.v;p+=1){var m=r.get(p+``);m===void 0?p in e&&(m=l(()=>Ut(n,s)),r.set(p+``,m)):N(m,n)}if(d===void 0)(!f||u(e,t)?.writable)&&(d=l(()=>Ut(void 0,s)),N(d,Yt(i)),r.set(t,d));else{f=d.v!==n;var h=l(()=>Yt(i));N(d,h)}var g=Reflect.getOwnPropertyDescriptor(e,t);if(g?.set&&g.set.call(c,i),!f){if(a&&typeof t==`string`){var _=r.get(`length`),v=Number(t);Number.isInteger(v)&&v>=_.v&&N(_,v+1)}qt(o)}return!0},ownKeys(e){X(o);var t=Reflect.ownKeys(e).filter(e=>{var t=r.get(e);return t===void 0||t.v!==n});for(var[i,a]of r)a.v!==n&&!(i in e)&&t.push(i);return t},setPrototypeOf(){De()}})}var Xt,Zt,Qt,$t;function en(){if(Xt===void 0){Xt=window,Zt=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,n=Text.prototype;Qt=u(t,`firstChild`).get,$t=u(t,`nextSibling`).get,h(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),h(n)&&(n.__t=void 0)}}function P(e=``){return document.createTextNode(e)}function tn(e){return Qt.call(e)}function F(e){return $t.call(e)}function I(e,t){if(!C)return tn(e);var n=tn(T);if(n===null)n=T.appendChild(P());else if(t&&n.nodeType!==3){var r=P();return n?.before(r),E(r),r}return t&&sn(n),E(n),n}function nn(e,t=!1){if(!C){var n=tn(e);return n instanceof Comment&&n.data===``?F(n):n}if(t){if(T?.nodeType!==3){var r=P();return T?.before(r),E(r),r}sn(T)}return T}function L(e,t=1,n=!1){let r=C?T:e;for(var i;t--;)i=r,r=F(r);if(!C)return r;if(n){if(r?.nodeType!==3){var a=P();return r===null?i?.after(a):r.before(a),E(a),a}sn(r)}return E(r),r}function rn(e){e.textContent=``}function an(){return!ze||mt!==null?!1:(W.f&te)!==0}function on(e,t,n){let r=n?{is:n}:void 0;return document.createElementNS(t??`http://www.w3.org/1999/xhtml`,e,r)}function sn(e){if(e.nodeValue.length<65536)return;let t=e.nextSibling;for(;t!==null&&t.nodeType===3;)t.remove(),e.nodeValue+=t.nodeValue,t=e.nextSibling}function cn(e){var t=V,n=W;U(null),G(null);try{return e()}finally{U(t),G(n)}}function ln(e){W===null&&(V===null&&Se(e),xe()),Pn&&be(e)}function un(e,t){var n=t.last;n===null?t.last=t.first=e:(n.next=e,e.prev=n,t.last=e)}function dn(e,t){var n=W;n!==null&&n.f&8192&&(e|=S);var r={ctx:O,deps:null,nodes:null,f:e|b|512,first:null,fn:t,last:null,next:null,parent:n,b:n&&n.b,prev:null,teardown:null,wv:0,ac:null},i=r;if(e&4)ct===null?ft.ensure().schedule(r):ct.push(r);else if(t!==null){try{Jn(r)}catch(e){throw B(r),e}i.deps===null&&i.teardown===null&&i.nodes===null&&i.first===i.last&&!(i.f&524288)&&(i=i.first,e&16&&e&65536&&i!==null&&(i.f|=re))}if(i!==null&&(i.parent=n,n!==null&&un(i,n),V!==null&&V.f&2&&!(e&64))){var a=V;(a.effects??=[]).push(i)}return r}function fn(){return V!==null&&!H}function pn(e){let t=dn(8,null);return k(t,y),t.teardown=e,t}function mn(e){ln(`$effect`);var t=W.f;if(!V&&t&32&&!(t&32768)){var n=O;(n.e??=[]).push(e)}else return hn(e)}function hn(e){return dn(4|oe,e)}function gn(e){ft.ensure();let t=dn(64|ae,e);return()=>{B(t)}}function _n(e){ft.ensure();let t=dn(64|ae,e);return(e={})=>new Promise(n=>{e.outro?Dn(t,()=>{B(t),n(void 0)}):(B(t),n(void 0))})}function vn(e){return dn(4,e)}function yn(e){return dn(ue|ae,e)}function bn(e,t=0){return dn(8|t,e)}function R(e,t=[],n=[],r=[]){Tt(r,t,n,t=>{dn(8,()=>e(...t.map(X)))})}function xn(e,t=0){return dn(16|t,e)}function z(e){return dn(32|ae,e)}function Sn(e){var t=e.teardown;if(t!==null){let e=Pn,n=V;Fn(!0),U(null);try{t.call(null)}finally{Fn(e),U(n)}}}function Cn(e,t=!1){var n=e.first;for(e.first=e.last=null;n!==null;){let e=n.ac;e!==null&&cn(()=>{e.abort(he)});var r=n.next;n.f&64?n.parent=null:B(n,t),n=r}}function wn(e){for(var t=e.first;t!==null;){var n=t.next;t.f&32||B(t),t=n}}function B(e,t=!0){var n=!1;(t||e.f&262144)&&e.nodes!==null&&e.nodes.end!==null&&(Tn(e.nodes.start,e.nodes.end),n=!0),k(e,ne),Cn(e,t&&!n),qn(e,0);var r=e.nodes&&e.nodes.t;if(r!==null)for(let e of r)e.stop();Sn(e),e.f^=ne,e.f|=ee;var i=e.parent;i!==null&&i.first!==null&&En(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes=e.ac=e.b=null}function Tn(e,t){for(;e!==null;){var n=e===t?null:F(e);e.remove(),e=n}}function En(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 Dn(e,t,n=!0){var r=[];On(e,r,!0);var i=()=>{n&&B(e),t&&t()},a=r.length;if(a>0){var o=()=>--a||i();for(var s of r)s.out(o)}else i()}function On(e,t,n){if(!(e.f&8192)){e.f^=S;var r=e.nodes&&e.nodes.t;if(r!==null)for(let e of r)(e.is_global||n)&&t.push(e);for(var i=e.first;i!==null;){var a=i.next,o=(i.f&65536)!=0||(i.f&32)!=0&&(e.f&16)!=0;On(i,t,o?n:!1),i=a}}}function kn(e){An(e,!0)}function An(e,t){if(e.f&8192){e.f^=S,e.f&1024||(k(e,b),ft.ensure().schedule(e));for(var n=e.first;n!==null;){var r=n.next,i=(n.f&65536)!=0||(n.f&32)!=0;An(n,i?t:!1),n=r}var a=e.nodes&&e.nodes.t;if(a!==null)for(let e of a)(e.is_global||t)&&e.in()}}function jn(e,t){if(e.nodes)for(var n=e.nodes.start,r=e.nodes.end;n!==null;){var i=n===r?null:F(n);t.append(n),n=i}}var Mn=null,Nn=!1,Pn=!1;function Fn(e){Pn=e}var V=null,H=!1;function U(e){V=e}var W=null;function G(e){W=e}var K=null;function In(e){V!==null&&(!ze||V.f&2)&&(K===null?K=[e]:K.push(e))}var q=null,J=0,Y=null;function Ln(e){Y=e}var Rn=1,zn=0,Bn=zn;function Vn(e){Bn=e}function Hn(){return++Rn}function Un(e){var t=e.f;if(t&2048)return!0;if(t&2&&(e.f&=~ce),t&4096){for(var n=e.deps,r=n.length,i=0;i<r;i++){var a=n[i];if(Un(a)&&It(a),a.wv>e.wv)return!0}t&512&&j===null&&k(e,y)}return!1}function Wn(e,t,n=!0){var r=e.reactions;if(r!==null&&!(!ze&&K!==null&&o.call(K,e)))for(var i=0;i<r.length;i++){var a=r[i];a.f&2?Wn(a,t,!1):t===a&&(n?k(a,b):a.f&1024&&k(a,x),vt(a))}}function Gn(e){var t=q,n=J,r=Y,i=V,a=K,o=O,s=H,c=Bn,l=e.f;q=null,J=0,Y=null,V=l&96?null:e,K=null,Ve(e.ctx),H=!1,Bn=++zn,e.ac!==null&&(cn(()=>{e.ac.abort(he)}),e.ac=null);try{e.f|=le;var u=e.fn,d=u();e.f|=te;var f=e.deps,p=A?.is_fork;if(q!==null){var m;if(p||qn(e,J),f!==null&&J>0)for(f.length=J+q.length,m=0;m<q.length;m++)f[J+m]=q[m];else e.deps=f=q;if(fn()&&e.f&512)for(m=J;m<f.length;m++)(f[m].reactions??=[]).push(e)}else !p&&f!==null&&J<f.length&&(qn(e,J),f.length=J);if(We()&&Y!==null&&!H&&f!==null&&!(e.f&6146))for(m=0;m<Y.length;m++)Wn(Y[m],e);if(i!==null&&i!==e){if(zn++,i.deps!==null)for(let e=0;e<n;e+=1)i.deps[e].rv=zn;if(t!==null)for(let e of t)e.rv=zn;Y!==null&&(r===null?r=Y:r.push(...Y))}return e.f&8388608&&(e.f^=de),d}catch(e){return Ye(e)}finally{e.f^=le,q=t,J=n,Y=r,V=i,K=a,Ve(o),H=s,Bn=c}}function Kn(e,t){let n=t.reactions;if(n!==null){var r=a.call(n,e);if(r!==-1){var i=n.length-1;i===0?n=t.reactions=null:(n[r]=n[i],n.pop())}}if(n===null&&t.f&2&&(q===null||!o.call(q,t))){var s=t;s.f&512&&(s.f^=512,s.f&=~ce),Qe(s),Lt(s),qn(s,0)}}function qn(e,t){var n=e.deps;if(n!==null)for(var r=t;r<n.length;r++)Kn(e,n[r])}function Jn(e){var t=e.f;if(!(t&16384)){k(e,y);var n=W,r=Nn;W=e,Nn=!0;try{t&16777232?wn(e):Cn(e),Sn(e);var i=Gn(e);e.teardown=typeof i==`function`?i:null,e.wv=Rn}finally{Nn=r,W=n}}}function X(e){var t=(e.f&2)!=0;if(Mn?.add(e),V!==null&&!H&&!(W!==null&&W.f&16384)&&(K===null||!o.call(K,e))){var n=V.deps;if(V.f&2097152)e.rv<zn&&(e.rv=zn,q===null&&n!==null&&n[J]===e?J++:q===null?q=[e]:q.push(e));else{(V.deps??=[]).push(e);var r=e.reactions;r===null?e.reactions=[V]:o.call(r,V)||r.push(V)}}if(Pn&&Bt.has(e))return Bt.get(e);if(t){var i=e;if(Pn){var a=i.v;return(!(i.f&1024)&&i.reactions!==null||Xn(i))&&(a=Ft(i)),Bt.set(i,a),a}var s=(i.f&512)==0&&!H&&V!==null&&(Nn||(V.f&512)!=0),c=(i.f&te)===0;Un(i)&&(s&&(i.f|=512),It(i)),s&&!c&&(Rt(i),Yn(i))}if(j?.has(e))return j.get(e);if(e.f&8388608)throw e.v;return e.v}function Yn(e){if(e.f|=512,e.deps!==null)for(let t of e.deps)(t.reactions??=[]).push(e),t.f&2&&!(t.f&512)&&(Rt(t),Yn(t))}function Xn(e){if(e.v===n)return!0;if(e.deps===null)return!1;for(let t of e.deps)if(Bt.has(t)||t.f&2&&Xn(t))return!0;return!1}function Zn(e){var t=H;try{return H=!0,e()}finally{H=t}}var Qn=Symbol(`events`),$n=new Set,er=new Set;function tr(e,t,n,r={}){function i(e){if(r.capture||or.call(t,e),!e.cancelBubble)return cn(()=>n?.call(this,e))}return e.startsWith(`pointer`)||e.startsWith(`touch`)||e===`wheel`?qe(()=>{t.addEventListener(e,i,r)}):t.addEventListener(e,i,r),i}function nr(e,t,n,r,i){var a={capture:r,passive:i},o=tr(e,t,n,a);(t===document.body||t===window||t===document||t instanceof HTMLMediaElement)&&pn(()=>{t.removeEventListener(e,o,a)})}function rr(e,t,n){(t[Qn]??={})[e]=n}function ir(e){for(var t=0;t<e.length;t++)$n.add(e[t]);for(var n of er)n(e)}var ar=null;function or(e){var t=this,n=t.ownerDocument,r=e.type,i=e.composedPath?.()||[],a=i[0]||e.target;ar=e;var o=0,s=ar===e&&e[Qn];if(s){var c=i.indexOf(s);if(c!==-1&&(t===document||t===window)){e[Qn]=t;return}var u=i.indexOf(t);if(u===-1)return;c<=u&&(o=c)}if(a=i[o]||e.target,a!==t){l(e,`currentTarget`,{configurable:!0,get(){return a||n}});var d=V,f=W;U(null),G(null);try{for(var p,m=[];a!==null;){var h=a.assignedSlot||a.parentNode||a.host||null;try{var g=a[Qn]?.[r];g!=null&&(!a.disabled||e.target===a)&&g.call(a,e)}catch(e){p?m.push(e):p=e}if(e.cancelBubble||h===t||h===null)break;a=h}if(p){for(let e of m)queueMicrotask(()=>{throw e});throw p}}finally{e[Qn]=t,delete e.currentTarget,U(d),G(f)}}}var sr=globalThis?.window?.trustedTypes&&globalThis.window.trustedTypes.createPolicy(`svelte-trusted-html`,{createHTML:e=>e});function cr(e){return sr?.createHTML(e)??e}function lr(e){var t=on(`template`);return t.innerHTML=cr(e.replaceAll(`<!>`,`<!---->`)),t.content}function ur(e,t){var n=W;n.nodes===null&&(n.nodes={start:e,end:t,a:null,t:null})}function Z(e,t){var n=(t&1)!=0,r=(t&2)!=0,i,a=!e.startsWith(`<!>`);return()=>{if(C)return ur(T,null),T;i===void 0&&(i=lr(a?e:`<!>`+e),n||(i=tn(i)));var t=r||Zt?document.importNode(i,!0):i.cloneNode(!0);if(n){var o=tn(t),s=t.lastChild;ur(o,s)}else ur(t,t);return t}}function dr(e=``){if(!C){var t=P(e+``);return ur(t,t),t}var n=T;return n.nodeType===3?sn(n):(n.before(n=P()),E(n)),ur(n,n),n}function fr(){if(C)return ur(T,null),T;var e=document.createDocumentFragment(),t=document.createComment(``),n=P();return e.append(t,n),ur(t,n),e}function Q(e,t){if(C){var n=W;(!(n.f&32768)||n.nodes.end===null)&&(n.nodes.end=T),Me();return}e!==null&&e.before(t)}[...`allowfullscreen.async.autofocus.autoplay.checked.controls.default.disabled.formnovalidate.indeterminate.inert.ismap.loop.multiple.muted.nomodule.novalidate.open.playsinline.readonly.required.reversed.seamless.selected.webkitdirectory.defer.disablepictureinpicture.disableremoteplayback`.split(`.`)];var pr=[`touchstart`,`touchmove`];function mr(e){return pr.includes(e)}function hr(e,t){var n=t==null?``:typeof t==`object`?`${t}`:t;n!==(e.__t??=e.nodeValue)&&(e.__t=n,e.nodeValue=`${n}`)}function gr(e,t){return yr(e,t)}function _r(e,n){en(),n.intro=n.intro??!1;let r=n.target,i=C,a=T;try{for(var o=tn(r);o&&(o.nodeType!==8||o.data!==`[`);)o=F(o);if(!o)throw t;w(!0),E(o);let i=yr(e,{...n,anchor:o});return w(!1),i}catch(i){if(i instanceof Error&&i.message.split(`
2
2
  `).some(e=>e.startsWith(`https://svelte.dev/e/`)))throw i;return i!==t&&console.warn(`Failed to hydrate: `,i),n.recover===!1&&we(),en(),rn(r),w(!1),gr(e,n)}finally{w(i),E(a)}}var vr=new Map;function yr(e,{target:n,anchor:r,props:i={},events:a,context:o,intro:c=!0,transformError:l}){en();var u=void 0,d=_n(()=>{var c=r??n.appendChild(P());Ct(c,{pending:()=>{}},n=>{He({});var r=O;if(o&&(r.c=o),a&&(i.$$events=a),C&&ur(n,null),u=e(n,i)||{},C&&(W.nodes.end=T,T===null||T.nodeType!==8||T.data!==`]`))throw Ae(),t;Ue()},l);var d=new Set,f=e=>{for(var t=0;t<e.length;t++){var r=e[t];if(!d.has(r)){d.add(r);var i=mr(r);for(let e of[n,document]){var a=vr.get(e);a===void 0&&(a=new Map,vr.set(e,a));var o=a.get(r);o===void 0?(e.addEventListener(r,or,{passive:i}),a.set(r,1)):a.set(r,o+1)}}}};return f(s($n)),er.add(f),()=>{for(var e of d)for(let r of[n,document]){var t=vr.get(r),i=t.get(e);--i==0?(r.removeEventListener(e,or),t.delete(e),t.size===0&&vr.delete(r)):t.set(e,i)}er.delete(f),c!==r&&c.parentNode?.removeChild(c)}});return br.set(u,d),u}var br=new WeakMap;function xr(e,t){let n=br.get(e);return n?(br.delete(e),n(t)):Promise.resolve()}var Sr=class{anchor;#e=new Map;#t=new Map;#n=new Map;#r=new Set;#i=!0;constructor(e,t=!0){this.anchor=e,this.#i=t}#a=e=>{if(this.#e.has(e)){var t=this.#e.get(e),n=this.#t.get(t);if(n)kn(n),this.#r.delete(t);else{var r=this.#n.get(t);r&&(this.#t.set(t,r.effect),this.#n.delete(t),r.fragment.lastChild.remove(),this.anchor.before(r.fragment),n=r.effect)}for(let[t,n]of this.#e){if(this.#e.delete(t),t===e)break;let r=this.#n.get(n);r&&(B(r.effect),this.#n.delete(n))}for(let[e,r]of this.#t){if(e===t||this.#r.has(e))continue;let i=()=>{if(Array.from(this.#e.values()).includes(e)){var t=document.createDocumentFragment();jn(r,t),t.append(P()),this.#n.set(e,{effect:r,fragment:t})}else B(r);this.#r.delete(e),this.#t.delete(e)};this.#i||!n?(this.#r.add(e),Dn(r,i,!1)):i()}}};#o=e=>{this.#e.delete(e);let t=Array.from(this.#e.values());for(let[e,n]of this.#n)t.includes(e)||(B(n.effect),this.#n.delete(e))};ensure(e,t){var n=A,r=an();if(t&&!this.#t.has(e)&&!this.#n.has(e))if(r){var i=document.createDocumentFragment(),a=P();i.append(a),this.#n.set(e,{effect:z(()=>t(a)),fragment:i})}else this.#t.set(e,z(()=>t(this.anchor)));if(this.#e.set(n,e),r){for(let[t,r]of this.#t)t===e?n.unskip_effect(r):n.skip_effect(r);for(let[t,r]of this.#n)t===e?n.unskip_effect(r.effect):n.skip_effect(r.effect);n.oncommit(this.#a),n.ondiscard(this.#o)}else C&&(this.anchor=T),this.#a(n)}};function Cr(e){O===null&&_e(`onMount`),Be&&O.l!==null?wr(O).m.push(e):mn(()=>{let t=Zn(e);if(typeof t==`function`)return t})}function wr(e){var t=e.l;return t.u??={a:[],b:[],m:[]}}function Tr(e,t,n=!1){var r;C&&(r=T,Me());var i=new Sr(e),a=n?re:0;function o(e,t){if(C){var n=Fe(r);if(e!==parseInt(n.substring(1))){var a=Pe();E(a),i.anchor=a,w(!1),i.ensure(e,t),w(!0);return}}i.ensure(e,t)}xn(()=>{var e=!1;t((t,n=0)=>{e=!0,o(n,t)}),e||o(-1,null)},a)}function Er(e,t,n){for(var r=[],i=t.length,a,o=t.length,c=0;c<i;c++){let n=t[c];Dn(n,()=>{if(a){if(a.pending.delete(n),a.done.add(n),a.pending.size===0){var t=e.outrogroups;Dr(e,s(a.done)),t.delete(a),t.size===0&&(e.outrogroups=null)}}else --o},!1)}if(o===0){var l=r.length===0&&n!==null;if(l){var u=n,d=u.parentNode;rn(d),d.append(u),e.items.clear()}Dr(e,t,!l)}else a={pending:new Set(t),done:new Set},(e.outrogroups??=new Set).add(a)}function Dr(e,t,n=!0){var r;if(e.pending.size>0){r=new Set;for(let t of e.pending.values())for(let n of t)r.add(e.items.get(n).e)}for(var i=0;i<t.length;i++){var a=t[i];r?.has(a)?(a.f|=se,jn(a,document.createDocumentFragment())):B(t[i],n)}}var Or;function kr(e,t,n,r,a,o=null){var c=e,l=new Map;if(t&4){var u=e;c=C?E(tn(u)):u.appendChild(P())}C&&Me();var d=null,f=Mt(()=>{var e=n();return i(e)?e:e==null?[]:s(e)}),p,m=new Map,h=!0;function g(e){v.effect.f&16384||(v.pending.delete(e),v.fallback=d,jr(v,p,c,t,r),d!==null&&(p.length===0?d.f&33554432?(d.f^=se,Nr(d,null,c)):kn(d):Dn(d,()=>{d=null})))}function _(e){v.pending.delete(e)}var v={effect:xn(()=>{p=X(f);var e=p.length;let i=!1;C&&Fe(c)===`[!`!=(e===0)&&(c=Pe(),E(c),w(!1),i=!0);for(var s=new Set,u=A,v=an(),y=0;y<e;y+=1){C&&T.nodeType===8&&T.data===`]`&&(c=T,i=!0,w(!1));var b=p[y],x=r(b,y),S=h?null:l.get(x);S?(S.v&&Gt(S.v,b),S.i&&Gt(S.i,y),v&&u.unskip_effect(S.e)):(S=Mr(l,h?c:Or??=P(),b,x,y,a,t,n),h||(S.e.f|=se),l.set(x,S)),s.add(x)}if(e===0&&o&&!d&&(h?d=z(()=>o(c)):(d=z(()=>o(Or??=P())),d.f|=se)),e>s.size&&ye(``,``,``),C&&e>0&&E(Pe()),!h)if(m.set(u,s),v){for(let[e,t]of l)s.has(e)||u.skip_effect(t.e);u.oncommit(g),u.ondiscard(_)}else g(u);i&&w(!0),X(f)}),flags:t,items:l,pending:m,outrogroups:null,fallback:d};h=!1,C&&(c=T)}function Ar(e){for(;e!==null&&!(e.f&32);)e=e.next;return e}function jr(e,t,n,r,i){var a=(r&8)!=0,o=t.length,c=e.items,l=Ar(e.effect.first),u,d=null,f,p=[],m=[],h,g,_,v;if(a)for(v=0;v<o;v+=1)h=t[v],g=i(h,v),_=c.get(g).e,_.f&33554432||(_.nodes?.a?.measure(),(f??=new Set).add(_));for(v=0;v<o;v+=1){if(h=t[v],g=i(h,v),_=c.get(g).e,e.outrogroups!==null)for(let t of e.outrogroups)t.pending.delete(_),t.done.delete(_);if(_.f&8192&&(kn(_),a&&(_.nodes?.a?.unfix(),(f??=new Set).delete(_))),_.f&33554432)if(_.f^=se,_===l)Nr(_,null,n);else{var y=d?d.next:l;_===e.effect.last&&(e.effect.last=_.prev),_.prev&&(_.prev.next=_.next),_.next&&(_.next.prev=_.prev),Pr(e,d,_),Pr(e,_,y),Nr(_,y,n),d=_,p=[],m=[],l=Ar(d.next);continue}if(_!==l){if(u!==void 0&&u.has(_)){if(p.length<m.length){var b=m[0],x;d=b.prev;var S=p[0],ee=p[p.length-1];for(x=0;x<p.length;x+=1)Nr(p[x],b,n);for(x=0;x<m.length;x+=1)u.delete(m[x]);Pr(e,S.prev,ee.next),Pr(e,d,S),Pr(e,ee,b),l=b,d=ee,--v,p=[],m=[]}else u.delete(_),Nr(_,l,n),Pr(e,_.prev,_.next),Pr(e,_,d===null?e.effect.first:d.next),Pr(e,d,_),d=_;continue}for(p=[],m=[];l!==null&&l!==_;)(u??=new Set).add(l),m.push(l),l=Ar(l.next);if(l===null)continue}_.f&33554432||p.push(_),d=_,l=Ar(_.next)}if(e.outrogroups!==null){for(let t of e.outrogroups)t.pending.size===0&&(Dr(e,s(t.done)),e.outrogroups?.delete(t));e.outrogroups.size===0&&(e.outrogroups=null)}if(l!==null||u!==void 0){var te=[];if(u!==void 0)for(_ of u)_.f&8192||te.push(_);for(;l!==null;)!(l.f&8192)&&l!==e.fallback&&te.push(l),l=Ar(l.next);var ne=te.length;if(ne>0){var re=r&4&&o===0?n:null;if(a){for(v=0;v<ne;v+=1)te[v].nodes?.a?.measure();for(v=0;v<ne;v+=1)te[v].nodes?.a?.fix()}Er(e,te,re)}}a&&qe(()=>{if(f!==void 0)for(_ of f)_.nodes?.a?.apply()})}function Mr(e,t,n,r,i,a,o,s){var c=o&1?o&16?Ht(n):Wt(n,!1,!1):null,l=o&2?Ht(i):null;return{v:c,i:l,e:z(()=>(a(t,c??n,l??i,s),()=>{e.delete(r)}))}}function Nr(e,t,n){if(e.nodes)for(var r=e.nodes.start,i=e.nodes.end,a=t&&!(t.f&33554432)?t.nodes.start:n;r!==null;){var o=F(r);if(a.before(r),r===i)return;r=o}}function Pr(e,t,n){t===null?e.effect.first=n:t.next=n,n===null?e.effect.last=t:n.prev=t}function Fr(e,t,n,r,i){C&&Me();var a=t.$$slots?.[n],o=!1;a===!0&&(a=t[n===`default`?`children`:n],o=!0),a===void 0?i!==null&&i(e):a(e,o?()=>r:r)}function Ir(e,t){let n=null,r=C;var i;if(C){n=T;for(var a=tn(document.head);a!==null&&(a.nodeType!==8||a.data!==e);)a=F(a);if(a===null)w(!1);else{var o=F(a);a.remove(),E(o)}}C||(i=document.head.appendChild(P()));try{xn(()=>t(i),ie|ae)}finally{r&&(w(!0),E(n))}}function Lr(e,t){vn(()=>{var n=e.getRootNode(),r=n.host?n:n.head??n.ownerDocument.head;if(!r.querySelector(`#`+t.hash)){let e=on(`style`);e.id=t.hash,e.textContent=t.code,r.appendChild(e)}})}var Rr=[...`
3
- \r\f\xA0\v`];function zr(e,t,n){var r=e==null?``:``+e;if(t&&(r=r?r+` `+t:t),n){for(var i of Object.keys(n))if(n[i])r=r?r+` `+i:i;else if(r.length)for(var a=i.length,o=0;(o=r.indexOf(i,o))>=0;){var s=o+a;(o===0||Rr.includes(r[o-1]))&&(s===r.length||Rr.includes(r[s]))?r=(o===0?``:r.substring(0,o))+r.substring(s+1):o=s}}return r===``?null:r}function Br(e,t,n,r,i,a){var o=e.__className;if(C||o!==n||o===void 0){var s=zr(n,r,a);(!C||s!==e.getAttribute(`class`))&&(s==null?e.removeAttribute(`class`):t?e.className=s:e.setAttribute(`class`,s)),e.__className=n}else if(a&&i!==a)for(var c in a){var l=!!a[c];(i==null||l!==!!i[c])&&e.classList.toggle(c,l)}return a}var Vr=Symbol(`is custom element`),Hr=Symbol(`is html`),Ur=ge?`link`:`LINK`;function $(e,t,n,r){var i=Gr(e);C&&(i[t]=e.getAttribute(t),t===`src`||t===`srcset`||t===`href`&&e.nodeName===Ur)||i[t]!==(i[t]=n)&&(t===`loading`&&(e[me]=n),n==null?e.removeAttribute(t):typeof n!=`string`&&qr(e).includes(t)?e[t]=n:e.setAttribute(t,n))}function Wr(e,t,n){var r=V,i=W;let a=C;C&&w(!1),U(null),G(null);try{t!==`style`&&(Kr.has(e.getAttribute(`is`)||e.nodeName)||!customElements||customElements.get(e.getAttribute(`is`)||e.nodeName.toLowerCase())?qr(e).includes(t):n&&typeof n==`object`)?e[t]=n:$(e,t,n==null?n:String(n))}finally{U(r),G(i),a&&w(!0)}}function Gr(e){return e.__attributes??={[Vr]:e.nodeName.includes(`-`),[Hr]:e.namespaceURI===r}}var Kr=new Map;function qr(e){var t=e.getAttribute(`is`)||e.nodeName,n=Kr.get(t);if(n)return n;Kr.set(t,n=[]);for(var r,i=e,a=Element.prototype;a!==i;){for(var o in r=d(i),r)r[o].set&&n.push(o);i=m(i)}return n}function Jr(e,t,n,r){var i=!Be||(n&2)!=0,a=(n&8)!=0,o=(n&16)!=0,s=r,c=!0,l=()=>(c&&(c=!1,s=o?Zn(r):r),s);let d;if(a){var f=fe in e||pe in e;d=u(e,t)?.set??(f&&t in e?n=>e[t]=n:void 0)}var p,m=!1;a?[p,m]=rt(()=>e[t]):p=e[t],p===void 0&&r!==void 0&&(p=l(),d&&(i&&Te(t),d(p)));var h=i?()=>{var n=e[t];return n===void 0?l():(c=!0,n)}:()=>{var n=e[t];return n!==void 0&&(s=void 0),n===void 0?s:n};if(i&&!(n&4))return h;if(d){var g=e.$$legacy;return(function(e,t){return arguments.length>0?((!i||!t||g||m)&&d(t?h():e),e):h()})}var _=!1,v=(n&1?kt:Mt)(()=>(_=!1,h()));a&&X(v);var y=W;return(function(e,t){if(arguments.length>0){let n=t?X(v):i&&a?Yt(e):e;return N(v,n),_=!0,s!==void 0&&(s=n),e}return Pn&&_||y.f&16384?v.v:X(v)})}function Yr(e){return new Xr(e)}var Xr=class{#e;#t;constructor(e){var t=new Map,n=(e,n)=>{var r=Wt(n,!1,!1);return t.set(e,r),r};let r=new Proxy({...e.props||{},$$events:{}},{get(e,r){return X(t.get(r)??n(r,Reflect.get(e,r)))},has(e,r){return r===pe?!0:(X(t.get(r)??n(r,Reflect.get(e,r))),Reflect.has(e,r))},set(e,r,i){return N(t.get(r)??n(r,i),i),Reflect.set(e,r,i)}});this.#t=(e.hydrate?_r:gr)(e.component,{target:e.target,anchor:e.anchor,props:r,context:e.context,intro:e.intro??!1,recover:e.recover,transformError:e.transformError}),!ze&&(!e?.props?.$$host||e.sync===!1)&&M(),this.#e=r.$$events;for(let e of Object.keys(this.#t))e===`$set`||e===`$destroy`||e===`$on`||l(this,e,{get(){return this.#t[e]},set(t){this.#t[e]=t},enumerable:!0});this.#t.$set=e=>{Object.assign(r,e)},this.#t.$destroy=()=>{xr(this.#t)}}$set(e){this.#t.$set(e)}$on(e,t){this.#e[e]=this.#e[e]||[];let n=(...e)=>t.call(this,...e);return this.#e[e].push(n),()=>{this.#e[e]=this.#e[e].filter(e=>e!==n)}}$destroy(){this.#t.$destroy()}},Zr;typeof HTMLElement==`function`&&(Zr=class extends HTMLElement{$$ctor;$$s;$$c;$$cn=!1;$$d={};$$r=!1;$$p_d={};$$l={};$$l_u=new Map;$$me;$$shadowRoot=null;constructor(e,t,n){super(),this.$$ctor=e,this.$$s=t,n&&(this.$$shadowRoot=this.attachShadow(n))}addEventListener(e,t,n){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(t),this.$$c){let n=this.$$c.$on(e,t);this.$$l_u.set(t,n)}super.addEventListener(e,t,n)}removeEventListener(e,t,n){if(super.removeEventListener(e,t,n),this.$$c){let e=this.$$l_u.get(t);e&&(e(),this.$$l_u.delete(t))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){if(await Promise.resolve(),!this.$$cn||this.$$c)return;function e(e){return t=>{let n=on(`slot`);e!==`default`&&(n.name=e),Q(t,n)}}let t={},n=$r(this);for(let 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(let e of this.attributes){let t=this.$$g_p(e.name);t in this.$$d||(this.$$d[t]=Qr(t,e.value,this.$$p_d,`toProp`))}for(let e in this.$$p_d)!(e in this.$$d)&&this[e]!==void 0&&(this.$$d[e]=this[e],delete this[e]);this.$$c=Yr({component:this.$$ctor,target:this.$$shadowRoot||this,props:{...this.$$d,$$slots:t,$$host:this}}),this.$$me=gn(()=>{bn(()=>{this.$$r=!0;for(let e of c(this.$$c)){if(!this.$$p_d[e]?.reflect)continue;this.$$d[e]=this.$$c[e];let t=Qr(e,this.$$d[e],this.$$p_d,`toAttribute`);t==null?this.removeAttribute(this.$$p_d[e].attribute||e):this.setAttribute(this.$$p_d[e].attribute||e,t)}this.$$r=!1})});for(let e in this.$$l)for(let t of this.$$l[e]){let n=this.$$c.$on(e,t);this.$$l_u.set(t,n)}this.$$l={}}}attributeChangedCallback(e,t,n){this.$$r||(e=this.$$g_p(e),this.$$d[e]=Qr(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 c(this.$$p_d).find(t=>this.$$p_d[t].attribute===e||!this.$$p_d[t].attribute&&t.toLowerCase()===e)||e}});function Qr(e,t,n,r){let 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 $r(e){let t={};return e.childNodes.forEach(e=>{t[e.slot||`default`]=!0}),t}function ei(e,t,n,r,i,a){let o=class extends Zr{constructor(){super(e,n,i),this.$$p_d=t}static get observedAttributes(){return c(t).map(e=>(t[e].attribute||e).toLowerCase())}};return c(t).forEach(e=>{l(o.prototype,e,{get(){return this.$$c&&e in this.$$c?this.$$c[e]:this.$$d[e]},set(n){n=Qr(e,n,t),this.$$d[e]=n;var r=this.$$c;r&&(u(r,e)?.get?r[e]=n:r.$set({[e]:n}))}})}),r.forEach(e=>{l(o.prototype,e,{get(){return this.$$c?.[e]}})}),a&&(o=a(o)),e.element=o,o}var ti={name:`@htmlbricks/svelte-webcomponent`,private:!0,version:`0.73.5`,type:`module`,scripts:{dev:`vite --open`,build:`vite build`,"publish:wc":`node publish.ts`,"build:wc":`node build.ts`,"watch:wc":`node watch.ts`,preview:`vite preview`,check:`svelte-check --tsconfig ./tsconfig.app.json && tsc -p tsconfig.node.json`,"release:patch":`npm version patch && git push && git push --tags && npm run build:wc && npm run publish:wc`,"release:minor":`npm version minor && git push && git push --tags && npm run build:wc && npm run publish:wc`,"release:major":`npm version major && git push && git push --tags && npm run build:wc && npm run publish:wc`},devDependencies:{"@google-pay/button-element":`^3.2.1`,"@paypal/paypal-js":`^9.5.0`,"@sveltejs/vite-plugin-svelte":`^7.0.0`,"@tsconfig/svelte":`^5.0.8`,"@types/debounce":`^1.2.4`,"@types/node":`^24.10.1`,"@types/rgb-hex":`^3.0.0`,"chart.js":`^4.5.1`,"date-holidays":`^3.26.12`,dayjs:`^1.11.20`,"hls.js":`^1.6.15`,"html5-joystick-new":`^0.0.6`,ol:`^10.8.0`,"perfect-freehand":`^1.2.3`,prettier:`^3.8.1`,"rollup-plugin-terser":`^7.0.2`,"sass-embedded":`^1.98.0`,"simple-serverless-auth-client":`^0.0.6`,"simple-webrtc-element":`^0.0.1`,"simple-webrtc-element-whep":`^0.2.3`,"style-to-object":`^1.0.14`,svelte:`^5.55.0`,"svelte-check":`^4.4.5`,terser:`^5.46.1`,"ts-json-schema-generator":`^2.9.0`,typescript:`^6.0.2`,vite:`^8.0.3`},dependencies:{"@floating-ui/dom":`^1.7.6`,"@popperjs/core":`^2.11.8`,debounce:`^3.0.0`,"html-colors":`^0.0.6`,marked:`^17.0.5`,raphael:`^2.3.0`,"rgb-hex":`^4.1.0`,"wc-js-utils":`^0.5.4`}};function ni(e){let t=e?.repoName.split(`/`)?.[1]||e?.repoName;if(!t)throw Error(`wrong componentPath `+e?.repoName);if(!e?.version)throw Error(`wrong version `+e?.version);let n=e?.iifePath||`main.iife.js`;if(!document.getElementById(t+`-script`)&&!customElements?.get?.(t)&&!window?.customElements?.get?.(t))try{let 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`)){let e=t.split(`-`)[0];r.src=`http://localhost:6006/webcomponents/${t.replace(e+`-`,``)}/${n}`}document.head.appendChild(r)}catch(e){console.warn(e)}}var ri=Z(`<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@latest/font/bootstrap-icons.css" class="svelte-127py2f"/>`),ii=Z(`<img class="hb-sidebar-brand-logo svelte-127py2f" alt=""/>`),ai=Z(`<div class="hb-sidebar-brand svelte-127py2f"><!> </div>`),oi=Z(`<hb-sidenav-link></hb-sidenav-link>`,2),si=Z(`<hb-sidenav-link></hb-sidenav-link>`,2),ci=Z(`<p class="menu-label mt-5 mb-2 svelte-127py2f"> </p> <hr class="my-2 svelte-127py2f"/> <!>`,1),li=Z(`<hb-sidenav-link></hb-sidenav-link>`,2),ui=Z(`<p class="menu-label mt-5 mb-2 svelte-127py2f"> </p> <hr class="my-2 mt-0 svelte-127py2f"/> <!>`,1),di=Z(`<button type="button" role="option"> </button>`),fi=Z(`<div class="dropdown-menu hb-sidebar-lang__menu svelte-127py2f" role="listbox" id="hb-sidebar-lang-menu"><div class="dropdown-content svelte-127py2f"></div></div>`),pi=Z(`<div class="hb-sidebar-lang hb-sidebar-theme-switch__lang svelte-127py2f"><div><div class="dropdown-trigger svelte-127py2f"><button type="button" class="button is-small hb-sidebar-lang__toggle svelte-127py2f" aria-haspopup="listbox"><span class="hb-sidebar-lang__code svelte-127py2f"> </span> <span class="icon is-small svelte-127py2f" aria-hidden="true"><i class="bi bi-chevron-down svelte-127py2f"></i></span></button></div> <!></div></div>`),mi=Z(`<div class="hb-sidebar-theme-switch__control svelte-127py2f" role="group" aria-label="Color theme"><div class="buttons has-addons are-small is-fullwidth hb-sidebar-theme-icons svelte-127py2f"><button type="button" title="Light"><span class="icon is-small svelte-127py2f" aria-hidden="true"><i class="bi bi-sun-fill svelte-127py2f"></i></span></button> <button type="button" title="Dark"><span class="icon is-small svelte-127py2f" aria-hidden="true"><i class="bi bi-moon-fill svelte-127py2f"></i></span></button> <button type="button" title="Auto"><span class="icon is-small svelte-127py2f" aria-hidden="true"><i class="bi bi-circle-half svelte-127py2f"></i></span></button></div></div>`),hi=Z(`<div class="hb-sidebar-theme-switch mt-5 svelte-127py2f" role="toolbar" aria-label="Language and appearance"><!> <!></div>`),gi=Z(`<div class="hb-sidebar-footer svelte-127py2f"><hr class="svelte-127py2f"/> <!></div>`),_i=Z(`<div id="webcomponent" class="hb-sidebar-shell svelte-127py2f"><!> <div class="p-4 is-relative hb-sidebar-inner svelte-127py2f"><h4 class="title is-5 mb-3 svelte-127py2f"><!> <!></h4> <ul class="hb-sidebar-nav-list mt-5 svelte-127py2f"><!> <!> <!></ul> <!> <!></div></div>`),vi={hash:`svelte-127py2f`,code:`@charset "UTF-8";
3
+ \r\f\xA0\v`];function zr(e,t,n){var r=e==null?``:``+e;if(t&&(r=r?r+` `+t:t),n){for(var i of Object.keys(n))if(n[i])r=r?r+` `+i:i;else if(r.length)for(var a=i.length,o=0;(o=r.indexOf(i,o))>=0;){var s=o+a;(o===0||Rr.includes(r[o-1]))&&(s===r.length||Rr.includes(r[s]))?r=(o===0?``:r.substring(0,o))+r.substring(s+1):o=s}}return r===``?null:r}function Br(e,t,n,r,i,a){var o=e.__className;if(C||o!==n||o===void 0){var s=zr(n,r,a);(!C||s!==e.getAttribute(`class`))&&(s==null?e.removeAttribute(`class`):t?e.className=s:e.setAttribute(`class`,s)),e.__className=n}else if(a&&i!==a)for(var c in a){var l=!!a[c];(i==null||l!==!!i[c])&&e.classList.toggle(c,l)}return a}var Vr=Symbol(`is custom element`),Hr=Symbol(`is html`),Ur=ge?`link`:`LINK`;function $(e,t,n,r){var i=Gr(e);C&&(i[t]=e.getAttribute(t),t===`src`||t===`srcset`||t===`href`&&e.nodeName===Ur)||i[t]!==(i[t]=n)&&(t===`loading`&&(e[me]=n),n==null?e.removeAttribute(t):typeof n!=`string`&&qr(e).includes(t)?e[t]=n:e.setAttribute(t,n))}function Wr(e,t,n){var r=V,i=W;let a=C;C&&w(!1),U(null),G(null);try{t!==`style`&&(Kr.has(e.getAttribute(`is`)||e.nodeName)||!customElements||customElements.get(e.getAttribute(`is`)||e.nodeName.toLowerCase())?qr(e).includes(t):n&&typeof n==`object`)?e[t]=n:$(e,t,n==null?n:String(n))}finally{U(r),G(i),a&&w(!0)}}function Gr(e){return e.__attributes??={[Vr]:e.nodeName.includes(`-`),[Hr]:e.namespaceURI===r}}var Kr=new Map;function qr(e){var t=e.getAttribute(`is`)||e.nodeName,n=Kr.get(t);if(n)return n;Kr.set(t,n=[]);for(var r,i=e,a=Element.prototype;a!==i;){for(var o in r=d(i),r)r[o].set&&n.push(o);i=m(i)}return n}function Jr(e,t,n,r){var i=!Be||(n&2)!=0,a=(n&8)!=0,o=(n&16)!=0,s=r,c=!0,l=()=>(c&&(c=!1,s=o?Zn(r):r),s);let d;if(a){var f=fe in e||pe in e;d=u(e,t)?.set??(f&&t in e?n=>e[t]=n:void 0)}var p,m=!1;a?[p,m]=rt(()=>e[t]):p=e[t],p===void 0&&r!==void 0&&(p=l(),d&&(i&&Te(t),d(p)));var h=i?()=>{var n=e[t];return n===void 0?l():(c=!0,n)}:()=>{var n=e[t];return n!==void 0&&(s=void 0),n===void 0?s:n};if(i&&!(n&4))return h;if(d){var g=e.$$legacy;return(function(e,t){return arguments.length>0?((!i||!t||g||m)&&d(t?h():e),e):h()})}var _=!1,v=(n&1?kt:Mt)(()=>(_=!1,h()));a&&X(v);var y=W;return(function(e,t){if(arguments.length>0){let n=t?X(v):i&&a?Yt(e):e;return N(v,n),_=!0,s!==void 0&&(s=n),e}return Pn&&_||y.f&16384?v.v:X(v)})}function Yr(e){return new Xr(e)}var Xr=class{#e;#t;constructor(e){var t=new Map,n=(e,n)=>{var r=Wt(n,!1,!1);return t.set(e,r),r};let r=new Proxy({...e.props||{},$$events:{}},{get(e,r){return X(t.get(r)??n(r,Reflect.get(e,r)))},has(e,r){return r===pe?!0:(X(t.get(r)??n(r,Reflect.get(e,r))),Reflect.has(e,r))},set(e,r,i){return N(t.get(r)??n(r,i),i),Reflect.set(e,r,i)}});this.#t=(e.hydrate?_r:gr)(e.component,{target:e.target,anchor:e.anchor,props:r,context:e.context,intro:e.intro??!1,recover:e.recover,transformError:e.transformError}),!ze&&(!e?.props?.$$host||e.sync===!1)&&M(),this.#e=r.$$events;for(let e of Object.keys(this.#t))e===`$set`||e===`$destroy`||e===`$on`||l(this,e,{get(){return this.#t[e]},set(t){this.#t[e]=t},enumerable:!0});this.#t.$set=e=>{Object.assign(r,e)},this.#t.$destroy=()=>{xr(this.#t)}}$set(e){this.#t.$set(e)}$on(e,t){this.#e[e]=this.#e[e]||[];let n=(...e)=>t.call(this,...e);return this.#e[e].push(n),()=>{this.#e[e]=this.#e[e].filter(e=>e!==n)}}$destroy(){this.#t.$destroy()}},Zr;typeof HTMLElement==`function`&&(Zr=class extends HTMLElement{$$ctor;$$s;$$c;$$cn=!1;$$d={};$$r=!1;$$p_d={};$$l={};$$l_u=new Map;$$me;$$shadowRoot=null;constructor(e,t,n){super(),this.$$ctor=e,this.$$s=t,n&&(this.$$shadowRoot=this.attachShadow(n))}addEventListener(e,t,n){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(t),this.$$c){let n=this.$$c.$on(e,t);this.$$l_u.set(t,n)}super.addEventListener(e,t,n)}removeEventListener(e,t,n){if(super.removeEventListener(e,t,n),this.$$c){let e=this.$$l_u.get(t);e&&(e(),this.$$l_u.delete(t))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){if(await Promise.resolve(),!this.$$cn||this.$$c)return;function e(e){return t=>{let n=on(`slot`);e!==`default`&&(n.name=e),Q(t,n)}}let t={},n=$r(this);for(let 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(let e of this.attributes){let t=this.$$g_p(e.name);t in this.$$d||(this.$$d[t]=Qr(t,e.value,this.$$p_d,`toProp`))}for(let e in this.$$p_d)!(e in this.$$d)&&this[e]!==void 0&&(this.$$d[e]=this[e],delete this[e]);this.$$c=Yr({component:this.$$ctor,target:this.$$shadowRoot||this,props:{...this.$$d,$$slots:t,$$host:this}}),this.$$me=gn(()=>{bn(()=>{this.$$r=!0;for(let e of c(this.$$c)){if(!this.$$p_d[e]?.reflect)continue;this.$$d[e]=this.$$c[e];let t=Qr(e,this.$$d[e],this.$$p_d,`toAttribute`);t==null?this.removeAttribute(this.$$p_d[e].attribute||e):this.setAttribute(this.$$p_d[e].attribute||e,t)}this.$$r=!1})});for(let e in this.$$l)for(let t of this.$$l[e]){let n=this.$$c.$on(e,t);this.$$l_u.set(t,n)}this.$$l={}}}attributeChangedCallback(e,t,n){this.$$r||(e=this.$$g_p(e),this.$$d[e]=Qr(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 c(this.$$p_d).find(t=>this.$$p_d[t].attribute===e||!this.$$p_d[t].attribute&&t.toLowerCase()===e)||e}});function Qr(e,t,n,r){let 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 $r(e){let t={};return e.childNodes.forEach(e=>{t[e.slot||`default`]=!0}),t}function ei(e,t,n,r,i,a){let o=class extends Zr{constructor(){super(e,n,i),this.$$p_d=t}static get observedAttributes(){return c(t).map(e=>(t[e].attribute||e).toLowerCase())}};return c(t).forEach(e=>{l(o.prototype,e,{get(){return this.$$c&&e in this.$$c?this.$$c[e]:this.$$d[e]},set(n){n=Qr(e,n,t),this.$$d[e]=n;var r=this.$$c;r&&(u(r,e)?.get?r[e]=n:r.$set({[e]:n}))}})}),r.forEach(e=>{l(o.prototype,e,{get(){return this.$$c?.[e]}})}),a&&(o=a(o)),e.element=o,o}var ti={name:`@htmlbricks/svelte-webcomponent`,private:!0,version:`0.74.0`,type:`module`,scripts:{dev:`vite --open`,build:`vite build`,"publish:wc":`node publish.ts`,"build:wc":`node build.ts`,"watch:wc":`node watch.ts`,preview:`vite preview`,check:`svelte-check --tsconfig ./tsconfig.app.json && tsc -p tsconfig.node.json`,"release:patch":`npm version patch && git push && git push --tags && npm run build:wc && npm run publish:wc`,"release:minor":`npm version minor && git push && git push --tags && npm run build:wc && npm run publish:wc`,"release:major":`npm version major && git push && git push --tags && npm run build:wc && npm run publish:wc`},devDependencies:{"@google-pay/button-element":`^3.2.1`,"@paypal/paypal-js":`^9.5.0`,"@sveltejs/vite-plugin-svelte":`^7.0.0`,"@tsconfig/svelte":`^5.0.8`,"@types/debounce":`^1.2.4`,"@types/node":`^24.10.1`,"@types/rgb-hex":`^3.0.0`,"chart.js":`^4.5.1`,"date-holidays":`^3.26.12`,dayjs:`^1.11.20`,"hls.js":`^1.6.15`,"html5-joystick-new":`^0.0.6`,ol:`^10.8.0`,"perfect-freehand":`^1.2.3`,prettier:`^3.8.1`,"rollup-plugin-terser":`^7.0.2`,"sass-embedded":`^1.98.0`,"simple-serverless-auth-client":`^0.0.6`,"simple-webrtc-element":`^0.0.1`,"simple-webrtc-element-whep":`^0.2.3`,"style-to-object":`^1.0.14`,svelte:`^5.55.0`,"svelte-check":`^4.4.5`,terser:`^5.46.1`,"ts-json-schema-generator":`^2.9.0`,typescript:`^6.0.2`,vite:`^8.0.3`},dependencies:{"@floating-ui/dom":`^1.7.6`,"@popperjs/core":`^2.11.8`,debounce:`^3.0.0`,"html-colors":`^0.0.6`,marked:`^17.0.5`,raphael:`^2.3.0`,"rgb-hex":`^4.1.0`,"wc-js-utils":`^0.5.4`}};function ni(e){let t=e?.repoName.split(`/`)?.[1]||e?.repoName;if(!t)throw Error(`wrong componentPath `+e?.repoName);if(!e?.version)throw Error(`wrong version `+e?.version);let n=e?.iifePath||`main.iife.js`;if(!document.getElementById(t+`-script`)&&!customElements?.get?.(t)&&!window?.customElements?.get?.(t))try{let 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`)){let e=t.split(`-`)[0];r.src=`http://localhost:6006/webcomponents/${t.replace(e+`-`,``)}/${n}`}document.head.appendChild(r)}catch(e){console.warn(e)}}var ri=Z(`<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@latest/font/bootstrap-icons.css" class="svelte-127py2f"/>`),ii=Z(`<img class="hb-sidebar-brand-logo svelte-127py2f" alt=""/>`),ai=Z(`<div class="hb-sidebar-brand svelte-127py2f"><!> </div>`),oi=Z(`<hb-sidenav-link></hb-sidenav-link>`,2),si=Z(`<hb-sidenav-link></hb-sidenav-link>`,2),ci=Z(`<p class="menu-label mt-4 mb-1 svelte-127py2f"> </p> <hr class="my-1 svelte-127py2f"/> <!>`,1),li=Z(`<hb-sidenav-link></hb-sidenav-link>`,2),ui=Z(`<p class="menu-label mt-4 mb-1 svelte-127py2f"> </p> <hr class="my-1 mt-0 svelte-127py2f"/> <!>`,1),di=Z(`<button type="button" role="option"> </button>`),fi=Z(`<div class="dropdown-menu hb-sidebar-lang__menu svelte-127py2f" role="listbox" id="hb-sidebar-lang-menu"><div class="dropdown-content svelte-127py2f"></div></div>`),pi=Z(`<div class="hb-sidebar-lang hb-sidebar-theme-switch__lang svelte-127py2f"><div><div class="dropdown-trigger svelte-127py2f"><button type="button" class="button is-small hb-sidebar-lang__toggle svelte-127py2f" aria-haspopup="listbox"><span class="hb-sidebar-lang__code svelte-127py2f"> </span> <span class="icon is-small svelte-127py2f" aria-hidden="true"><i class="bi bi-chevron-down svelte-127py2f"></i></span></button></div> <!></div></div>`),mi=Z(`<div class="hb-sidebar-theme-switch__control svelte-127py2f" role="group" aria-label="Color theme"><div class="buttons has-addons are-small is-fullwidth hb-sidebar-theme-icons svelte-127py2f"><button type="button" title="Light"><span class="icon is-small svelte-127py2f" aria-hidden="true"><i class="bi bi-sun-fill svelte-127py2f"></i></span></button> <button type="button" title="Dark"><span class="icon is-small svelte-127py2f" aria-hidden="true"><i class="bi bi-moon-fill svelte-127py2f"></i></span></button> <button type="button" title="Auto"><span class="icon is-small svelte-127py2f" aria-hidden="true"><i class="bi bi-circle-half svelte-127py2f"></i></span></button></div></div>`),hi=Z(`<div class="hb-sidebar-theme-switch mt-4 svelte-127py2f" role="toolbar" aria-label="Language and appearance"><!> <!></div>`),gi=Z(`<div class="hb-sidebar-footer svelte-127py2f"><hr class="svelte-127py2f"/> <!></div>`),_i=Z(`<div id="webcomponent" class="hb-sidebar-shell svelte-127py2f"><!> <div class="p-3 is-relative hb-sidebar-inner svelte-127py2f"><h4 class="title is-6 mb-2 svelte-127py2f"><!> <!></h4> <ul class="hb-sidebar-nav-list mt-4 svelte-127py2f"><!> <!> <!></ul> <!> <!></div></div>`),vi={hash:`svelte-127py2f`,code:`@charset "UTF-8";
4
4
  @import url("https://cdn.jsdelivr.net/npm/bootstrap-icons@latest/font/bootstrap-icons.min.css");
5
5
  /*!
6
6
  * Bulma 1.x (Sass) for hb-sidebar-desktop — flex layout, spacing, title, menu.
@@ -9,7 +9,7 @@
9
9
  /*!
10
10
  * Bulma 1.x (Sass) for hb-sidebar-desktop — flex layout, spacing, title, menu.
11
11
  * Host surface background follows hb-navbar: \`--bulma-navbar-background-color\` with scheme fallbacks; theme via body/:root.
12
- */.buttons.svelte-127py2f:not(:last-child), .title.svelte-127py2f:not(:last-child) {margin-bottom:var(--bulma-block-spacing, var(--bulma-hb-def-block-spacing));}.button.svelte-127py2f {align-items:center;appearance:none;border-color:transparent;border-style:solid;border-width:var(--bulma-control-border-width, var(--bulma-hb-def-control-border-width));border-radius:var(--bulma-control-radius, var(--bulma-hb-def-control-radius));box-shadow:none;display:inline-flex;font-size:var(--bulma-control-size, var(--bulma-hb-def-control-size));height:var(--bulma-control-height, var(--bulma-hb-def-control-height));justify-content:flex-start;line-height:var(--bulma-control-line-height, var(--bulma-hb-def-control-line-height));padding-bottom:var(--bulma-control-padding-vertical, var(--bulma-hb-def-control-padding-vertical));padding-left:var(--bulma-control-padding-horizontal, var(--bulma-hb-def-control-padding-horizontal));padding-right:var(--bulma-control-padding-horizontal, var(--bulma-hb-def-control-padding-horizontal));padding-top:var(--bulma-control-padding-vertical, var(--bulma-hb-def-control-padding-vertical));position:relative;transition-duration:var(--bulma-duration, var(--bulma-hb-def-duration));transition-property:background-color, border-color, box-shadow, color;vertical-align:top;}.button.svelte-127py2f:focus, .button.svelte-127py2f:focus-visible, .button.svelte-127py2f:focus-within, .button.svelte-127py2f:active {outline:none;}.button.svelte-127py2f {-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;}.mt-0.svelte-127py2f {margin-top:0 !important;}.mb-2.svelte-127py2f {margin-bottom:0.5rem !important;}.my-2.svelte-127py2f {margin-top:0.5rem !important;margin-bottom:0.5rem !important;}.mb-3.svelte-127py2f {margin-bottom:0.75rem !important;}.mt-5.svelte-127py2f {margin-top:1.5rem !important;}.p-4.svelte-127py2f {padding:1rem !important;}.title.svelte-127py2f {--bulma-hb-def-title-color: var(--bulma-text-strong, var(--bulma-hb-def-text-strong));--bulma-hb-def-title-family: false;--bulma-hb-def-title-size: var(--bulma-size-3, var(--bulma-hb-def-size-3));--bulma-hb-def-title-weight: var(--bulma-weight-extrabold, var(--bulma-hb-def-weight-extrabold));--bulma-hb-def-title-line-height: 1.125;--bulma-hb-def-title-strong-color: inherit;--bulma-hb-def-title-strong-weight: inherit;--bulma-hb-def-title-sub-size: 0.75em;--bulma-hb-def-title-sup-size: 0.75em;--bulma-hb-def-subtitle-color: var(--bulma-text, var(--bulma-hb-def-text));--bulma-hb-def-subtitle-family: false;--bulma-hb-def-subtitle-size: var(--bulma-size-5, var(--bulma-hb-def-size-5));--bulma-hb-def-subtitle-weight: var(--bulma-weight-normal, var(--bulma-hb-def-weight-normal));--bulma-hb-def-subtitle-line-height: 1.25;--bulma-hb-def-subtitle-strong-color: var(--bulma-text-strong, var(--bulma-hb-def-text-strong));--bulma-hb-def-subtitle-strong-weight: var(--bulma-weight-semibold, var(--bulma-hb-def-weight-semibold));}.title.svelte-127py2f {word-break:break-word;}.title.svelte-127py2f {color:var(--bulma-title-color, var(--bulma-hb-def-title-color));font-size:var(--bulma-title-size, var(--bulma-hb-def-title-size));font-weight:var(--bulma-title-weight, var(--bulma-hb-def-title-weight));line-height:var(--bulma-title-line-height, var(--bulma-hb-def-title-line-height));}.title.is-5.svelte-127py2f {font-size:1.25rem;}.icon.svelte-127py2f {--bulma-hb-def-icon-dimensions: 1.5rem;--bulma-hb-def-icon-dimensions-small: 1rem;--bulma-hb-def-icon-dimensions-medium: 2rem;--bulma-hb-def-icon-dimensions-large: 3rem;--bulma-hb-def-icon-text-spacing: 0.25em;}.icon.svelte-127py2f {align-items:center;display:inline-flex;flex-shrink:0;justify-content:center;height:var(--bulma-icon-dimensions, var(--bulma-hb-def-icon-dimensions));transition-duration:var(--bulma-duration, var(--bulma-hb-def-duration));transition-property:color;width:var(--bulma-icon-dimensions, var(--bulma-hb-def-icon-dimensions));}.icon.is-small.svelte-127py2f {height:var(--bulma-icon-dimensions-small, var(--bulma-hb-def-icon-dimensions-small));width:var(--bulma-icon-dimensions-small, var(--bulma-hb-def-icon-dimensions-small));}.button.svelte-127py2f {--bulma-hb-def-button-family: false;--bulma-hb-def-button-weight: var(--bulma-weight-medium, var(--bulma-hb-def-weight-medium));--bulma-hb-def-button-border-color: var(--bulma-border, var(--bulma-hb-def-border));--bulma-hb-def-button-border-style: solid;--bulma-hb-def-button-border-width: var(--bulma-control-border-width, var(--bulma-hb-def-control-border-width));--bulma-hb-def-button-padding-vertical: 0.5em;--bulma-hb-def-button-padding-horizontal: 1em;--bulma-hb-def-button-focus-border-color: var(--bulma-link-focus-border, var(--bulma-hb-def-link-focus-border));--bulma-hb-def-button-focus-box-shadow-size: 0 0 0 0.125em;--bulma-hb-def-button-focus-box-shadow-color: hsla(var(--bulma-link-h, var(--bulma-hb-def-link-h)), var(--bulma-link-s, var(--bulma-hb-def-link-s)), var(--bulma-link-on-scheme-l, var(--bulma-hb-def-link-on-scheme-l)), 0.25);--bulma-hb-def-button-active-color: var(--bulma-link-active, var(--bulma-hb-def-link-active));--bulma-hb-def-button-active-border-color: var(--bulma-link-active-border, var(--bulma-hb-def-link-active-border));--bulma-hb-def-button-text-color: var(--bulma-text, var(--bulma-hb-def-text));--bulma-hb-def-button-text-decoration: underline;--bulma-hb-def-button-text-hover-background-color: var(--bulma-background, var(--bulma-hb-def-background));--bulma-hb-def-button-text-hover-color: var(--bulma-text-strong, var(--bulma-hb-def-text-strong));--bulma-hb-def-button-ghost-background: none;--bulma-hb-def-button-ghost-border-color: transparent;--bulma-hb-def-button-ghost-color: var(--bulma-link-text, var(--bulma-hb-def-link-text));--bulma-hb-def-button-ghost-decoration: none;--bulma-hb-def-button-ghost-hover-color: var(--bulma-link, var(--bulma-hb-def-link));--bulma-hb-def-button-ghost-hover-decoration: underline;--bulma-hb-def-button-disabled-background-color: var(--bulma-scheme-main, var(--bulma-hb-def-scheme-main));--bulma-hb-def-button-disabled-border-color: var(--bulma-border, var(--bulma-hb-def-border));--bulma-hb-def-button-disabled-shadow: none;--bulma-hb-def-button-disabled-opacity: 0.5;--bulma-hb-def-button-static-color: var(--bulma-text-weak, var(--bulma-hb-def-text-weak));--bulma-hb-def-button-static-background-color: var(--bulma-scheme-main-ter, var(--bulma-hb-def-scheme-main-ter));--bulma-hb-def-button-static-border-color: var(--bulma-border, var(--bulma-hb-def-border));}.button.svelte-127py2f {--bulma-hb-def-button-h: var(--bulma-scheme-h, var(--bulma-hb-def-scheme-h));--bulma-hb-def-button-s: var(--bulma-scheme-s, var(--bulma-hb-def-scheme-s));--bulma-hb-def-button-l: var(--bulma-scheme-main-l, var(--bulma-hb-def-scheme-main-l));--bulma-hb-def-button-background-l: var(--bulma-scheme-main-l, var(--bulma-hb-def-scheme-main-l));--bulma-hb-def-button-background-l-delta: 0%;--bulma-hb-def-button-hover-background-l-delta: var(--bulma-hover-background-l-delta, var(--bulma-hb-def-hover-background-l-delta));--bulma-hb-def-button-active-background-l-delta: var(--bulma-active-background-l-delta, var(--bulma-hb-def-active-background-l-delta));--bulma-hb-def-button-color-l: var(--bulma-text-strong-l, var(--bulma-hb-def-text-strong-l));--bulma-hb-def-button-border-l: var(--bulma-border-l, var(--bulma-hb-def-border-l));--bulma-hb-def-button-border-l-delta: 0%;--bulma-hb-def-button-hover-border-l-delta: var(--bulma-hover-border-l-delta, var(--bulma-hb-def-hover-border-l-delta));--bulma-hb-def-button-active-border-l-delta: var(--bulma-active-border-l-delta, var(--bulma-hb-def-active-border-l-delta));--bulma-hb-def-button-focus-border-l-delta: var(--bulma-focus-border-l-delta, var(--bulma-hb-def-focus-border-l-delta));--bulma-hb-def-button-outer-shadow-h: 0;--bulma-hb-def-button-outer-shadow-s: 0%;--bulma-hb-def-button-outer-shadow-l: 20%;--bulma-hb-def-button-outer-shadow-a: 0.05;--bulma-hb-def-loading-color: hsl(var(--bulma-button-h, var(--bulma-hb-def-button-h)), var(--bulma-button-s, var(--bulma-hb-def-button-s)), var(--bulma-button-color-l, var(--bulma-hb-def-button-color-l)));background-color:hsl(var(--bulma-button-h, var(--bulma-hb-def-button-h)), var(--bulma-button-s, var(--bulma-hb-def-button-s)), calc(var(--bulma-button-background-l, var(--bulma-hb-def-button-background-l)) + var(--bulma-button-background-l-delta, var(--bulma-hb-def-button-background-l-delta))));border-color:hsl(var(--bulma-button-h, var(--bulma-hb-def-button-h)), var(--bulma-button-s, var(--bulma-hb-def-button-s)), calc(var(--bulma-button-border-l, var(--bulma-hb-def-button-border-l)) + var(--bulma-button-border-l-delta, var(--bulma-hb-def-button-border-l-delta))));border-style:var(--bulma-button-border-style, var(--bulma-hb-def-button-border-style));border-width:var(--bulma-button-border-width, var(--bulma-hb-def-button-border-width));box-shadow:0px 0.0625em 0.125em hsla(var(--bulma-button-outer-shadow-h, var(--bulma-hb-def-button-outer-shadow-h)), var(--bulma-button-outer-shadow-s, var(--bulma-hb-def-button-outer-shadow-s)), var(--bulma-button-outer-shadow-l, var(--bulma-hb-def-button-outer-shadow-l)), var(--bulma-button-outer-shadow-a, var(--bulma-hb-def-button-outer-shadow-a))), 0px 0.125em 0.25em hsla(var(--bulma-button-outer-shadow-h, var(--bulma-hb-def-button-outer-shadow-h)), var(--bulma-button-outer-shadow-s, var(--bulma-hb-def-button-outer-shadow-s)), var(--bulma-button-outer-shadow-l, var(--bulma-hb-def-button-outer-shadow-l)), var(--bulma-button-outer-shadow-a, var(--bulma-hb-def-button-outer-shadow-a)));color:hsl(var(--bulma-button-h, var(--bulma-hb-def-button-h)), var(--bulma-button-s, var(--bulma-hb-def-button-s)), var(--bulma-button-color-l, var(--bulma-hb-def-button-color-l)));cursor:pointer;font-weight:var(--bulma-button-weight, var(--bulma-hb-def-button-weight));height:auto;justify-content:center;padding-bottom:calc(var(--bulma-button-padding-vertical, var(--bulma-hb-def-button-padding-vertical)) - var(--bulma-button-border-width, var(--bulma-hb-def-button-border-width)));padding-left:calc(var(--bulma-button-padding-horizontal, var(--bulma-hb-def-button-padding-horizontal)) - var(--bulma-button-border-width, var(--bulma-hb-def-button-border-width)));padding-right:calc(var(--bulma-button-padding-horizontal, var(--bulma-hb-def-button-padding-horizontal)) - var(--bulma-button-border-width, var(--bulma-hb-def-button-border-width)));padding-top:calc(var(--bulma-button-padding-vertical, var(--bulma-hb-def-button-padding-vertical)) - var(--bulma-button-border-width, var(--bulma-hb-def-button-border-width)));text-align:center;white-space:nowrap;}.button.svelte-127py2f .icon:where(.svelte-127py2f), .button.svelte-127py2f .icon.is-small:where(.svelte-127py2f) {height:1.5em;width:1.5em;}.button.svelte-127py2f .icon:where(.svelte-127py2f):first-child:not(:last-child) {margin-inline-start:calc(-0.5 * var(--bulma-button-padding-horizontal, var(--bulma-hb-def-button-padding-horizontal)));margin-inline-end:calc(var(--bulma-button-padding-horizontal, var(--bulma-hb-def-button-padding-horizontal)) * 0.25);}.button.svelte-127py2f .icon:where(.svelte-127py2f):last-child:not(:first-child) {margin-inline-start:calc(var(--bulma-button-padding-horizontal, var(--bulma-hb-def-button-padding-horizontal)) * 0.25);margin-inline-end:calc(-0.5 * var(--bulma-button-padding-horizontal, var(--bulma-hb-def-button-padding-horizontal)));}.button.svelte-127py2f .icon:where(.svelte-127py2f):first-child:last-child {margin-inline-start:calc(-0.5 * var(--bulma-button-padding-horizontal, var(--bulma-hb-def-button-padding-horizontal)));margin-inline-end:calc(-0.5 * var(--bulma-button-padding-horizontal, var(--bulma-hb-def-button-padding-horizontal)));}.button.svelte-127py2f:hover {--bulma-hb-def-button-background-l-delta: var(--bulma-button-hover-background-l-delta, var(--bulma-hb-def-button-hover-background-l-delta));--bulma-hb-def-button-border-l-delta: var(--bulma-button-hover-border-l-delta, var(--bulma-hb-def-button-hover-border-l-delta));}.button.svelte-127py2f:focus-visible {--bulma-hb-def-button-border-width: 1px;border-color:hsl(var(--bulma-focus-h, var(--bulma-hb-def-focus-h)), var(--bulma-focus-s, var(--bulma-hb-def-focus-s)), var(--bulma-focus-l, var(--bulma-hb-def-focus-l)));box-shadow:var(--bulma-focus-shadow-size, var(--bulma-hb-def-focus-shadow-size)) hsla(var(--bulma-focus-h, var(--bulma-hb-def-focus-h)), var(--bulma-focus-s, var(--bulma-hb-def-focus-s)), var(--bulma-focus-l, var(--bulma-hb-def-focus-l)), var(--bulma-focus-shadow-alpha, var(--bulma-hb-def-focus-shadow-alpha)));}.button.svelte-127py2f:active {--bulma-hb-def-button-background-l-delta: var(--bulma-button-active-background-l-delta, var(--bulma-hb-def-button-active-background-l-delta));--bulma-hb-def-button-border-l-delta: var(--bulma-button-active-border-l-delta, var(--bulma-hb-def-button-active-border-l-delta));--bulma-hb-def-button-outer-shadow-a: 0;}.button.is-link.svelte-127py2f {--bulma-hb-def-button-h: var(--bulma-link-h, var(--bulma-hb-def-link-h));--bulma-hb-def-button-s: var(--bulma-link-s, var(--bulma-hb-def-link-s));--bulma-hb-def-button-l: var(--bulma-link-l, var(--bulma-hb-def-link-l));--bulma-hb-def-button-background-l: var(--bulma-link-l, var(--bulma-hb-def-link-l));--bulma-hb-def-button-border-l: var(--bulma-link-l, var(--bulma-hb-def-link-l));--bulma-hb-def-button-border-width: 0px;--bulma-hb-def-button-color-l: var(--bulma-link-invert-l, var(--bulma-hb-def-link-invert-l));--bulma-hb-def-button-outer-shadow-a: 0;}.button.is-link.svelte-127py2f:focus-visible {--bulma-hb-def-button-border-width: 1px;}.button.is-small.svelte-127py2f {--bulma-hb-def-control-size: var(--bulma-size-small, var(--bulma-hb-def-size-small));--bulma-hb-def-control-radius: var(--bulma-radius-small, var(--bulma-hb-def-radius-small));}.buttons.svelte-127py2f {align-items:center;display:flex;flex-wrap:wrap;gap:0.75rem;justify-content:flex-start;}.buttons.are-small.svelte-127py2f {--bulma-hb-def-control-size: var(--bulma-size-small, var(--bulma-hb-def-size-small));--bulma-hb-def-control-radius: var(--bulma-radius-small, var(--bulma-hb-def-radius-small));}.buttons.has-addons.svelte-127py2f {gap:0;}.buttons.has-addons.svelte-127py2f .button:where(.svelte-127py2f):not(:first-child) {border-end-start-radius:0;border-start-start-radius:0;}.buttons.has-addons.svelte-127py2f .button:where(.svelte-127py2f):not(:last-child) {border-end-end-radius:0;border-start-end-radius:0;margin-inline-end:-1px;}.buttons.has-addons.svelte-127py2f .button:where(.svelte-127py2f):hover {z-index:2;}.buttons.has-addons.svelte-127py2f .button:where(.svelte-127py2f):focus, .buttons.has-addons.svelte-127py2f .button:where(.svelte-127py2f):active, .buttons.has-addons.svelte-127py2f .button.is-selected:where(.svelte-127py2f) {z-index:3;}.buttons.has-addons.svelte-127py2f .button:where(.svelte-127py2f):focus:hover, .buttons.has-addons.svelte-127py2f .button:where(.svelte-127py2f):active:hover, .buttons.has-addons.svelte-127py2f .button.is-selected:where(.svelte-127py2f):hover {z-index:4;}.buttons.has-addons.svelte-127py2f .button.is-expanded:where(.svelte-127py2f) {flex-grow:1;flex-shrink:1;}
12
+ */.buttons.svelte-127py2f:not(:last-child), .title.svelte-127py2f:not(:last-child) {margin-bottom:var(--bulma-block-spacing, var(--bulma-hb-def-block-spacing));}.button.svelte-127py2f {align-items:center;appearance:none;border-color:transparent;border-style:solid;border-width:var(--bulma-control-border-width, var(--bulma-hb-def-control-border-width));border-radius:var(--bulma-control-radius, var(--bulma-hb-def-control-radius));box-shadow:none;display:inline-flex;font-size:var(--bulma-control-size, var(--bulma-hb-def-control-size));height:var(--bulma-control-height, var(--bulma-hb-def-control-height));justify-content:flex-start;line-height:var(--bulma-control-line-height, var(--bulma-hb-def-control-line-height));padding-bottom:var(--bulma-control-padding-vertical, var(--bulma-hb-def-control-padding-vertical));padding-left:var(--bulma-control-padding-horizontal, var(--bulma-hb-def-control-padding-horizontal));padding-right:var(--bulma-control-padding-horizontal, var(--bulma-hb-def-control-padding-horizontal));padding-top:var(--bulma-control-padding-vertical, var(--bulma-hb-def-control-padding-vertical));position:relative;transition-duration:var(--bulma-duration, var(--bulma-hb-def-duration));transition-property:background-color, border-color, box-shadow, color;vertical-align:top;}.button.svelte-127py2f:focus, .button.svelte-127py2f:focus-visible, .button.svelte-127py2f:focus-within, .button.svelte-127py2f:active {outline:none;}.button.svelte-127py2f {-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;}.mt-0.svelte-127py2f {margin-top:0 !important;}.mb-1.svelte-127py2f {margin-bottom:0.25rem !important;}.my-1.svelte-127py2f {margin-top:0.25rem !important;margin-bottom:0.25rem !important;}.mb-2.svelte-127py2f {margin-bottom:0.5rem !important;}.mt-4.svelte-127py2f {margin-top:1rem !important;}.p-3.svelte-127py2f {padding:0.75rem !important;}.title.svelte-127py2f {--bulma-hb-def-title-color: var(--bulma-text-strong, var(--bulma-hb-def-text-strong));--bulma-hb-def-title-family: false;--bulma-hb-def-title-size: var(--bulma-size-3, var(--bulma-hb-def-size-3));--bulma-hb-def-title-weight: var(--bulma-weight-extrabold, var(--bulma-hb-def-weight-extrabold));--bulma-hb-def-title-line-height: 1.125;--bulma-hb-def-title-strong-color: inherit;--bulma-hb-def-title-strong-weight: inherit;--bulma-hb-def-title-sub-size: 0.75em;--bulma-hb-def-title-sup-size: 0.75em;--bulma-hb-def-subtitle-color: var(--bulma-text, var(--bulma-hb-def-text));--bulma-hb-def-subtitle-family: false;--bulma-hb-def-subtitle-size: var(--bulma-size-5, var(--bulma-hb-def-size-5));--bulma-hb-def-subtitle-weight: var(--bulma-weight-normal, var(--bulma-hb-def-weight-normal));--bulma-hb-def-subtitle-line-height: 1.25;--bulma-hb-def-subtitle-strong-color: var(--bulma-text-strong, var(--bulma-hb-def-text-strong));--bulma-hb-def-subtitle-strong-weight: var(--bulma-weight-semibold, var(--bulma-hb-def-weight-semibold));}.title.svelte-127py2f {word-break:break-word;}.title.svelte-127py2f {color:var(--bulma-title-color, var(--bulma-hb-def-title-color));font-size:var(--bulma-title-size, var(--bulma-hb-def-title-size));font-weight:var(--bulma-title-weight, var(--bulma-hb-def-title-weight));line-height:var(--bulma-title-line-height, var(--bulma-hb-def-title-line-height));}.title.is-6.svelte-127py2f {font-size:1rem;}.icon.svelte-127py2f {--bulma-hb-def-icon-dimensions: 1.5rem;--bulma-hb-def-icon-dimensions-small: 1rem;--bulma-hb-def-icon-dimensions-medium: 2rem;--bulma-hb-def-icon-dimensions-large: 3rem;--bulma-hb-def-icon-text-spacing: 0.25em;}.icon.svelte-127py2f {align-items:center;display:inline-flex;flex-shrink:0;justify-content:center;height:var(--bulma-icon-dimensions, var(--bulma-hb-def-icon-dimensions));transition-duration:var(--bulma-duration, var(--bulma-hb-def-duration));transition-property:color;width:var(--bulma-icon-dimensions, var(--bulma-hb-def-icon-dimensions));}.icon.is-small.svelte-127py2f {height:var(--bulma-icon-dimensions-small, var(--bulma-hb-def-icon-dimensions-small));width:var(--bulma-icon-dimensions-small, var(--bulma-hb-def-icon-dimensions-small));}.button.svelte-127py2f {--bulma-hb-def-button-family: false;--bulma-hb-def-button-weight: var(--bulma-weight-medium, var(--bulma-hb-def-weight-medium));--bulma-hb-def-button-border-color: var(--bulma-border, var(--bulma-hb-def-border));--bulma-hb-def-button-border-style: solid;--bulma-hb-def-button-border-width: var(--bulma-control-border-width, var(--bulma-hb-def-control-border-width));--bulma-hb-def-button-padding-vertical: 0.5em;--bulma-hb-def-button-padding-horizontal: 1em;--bulma-hb-def-button-focus-border-color: var(--bulma-link-focus-border, var(--bulma-hb-def-link-focus-border));--bulma-hb-def-button-focus-box-shadow-size: 0 0 0 0.125em;--bulma-hb-def-button-focus-box-shadow-color: hsla(var(--bulma-link-h, var(--bulma-hb-def-link-h)), var(--bulma-link-s, var(--bulma-hb-def-link-s)), var(--bulma-link-on-scheme-l, var(--bulma-hb-def-link-on-scheme-l)), 0.25);--bulma-hb-def-button-active-color: var(--bulma-link-active, var(--bulma-hb-def-link-active));--bulma-hb-def-button-active-border-color: var(--bulma-link-active-border, var(--bulma-hb-def-link-active-border));--bulma-hb-def-button-text-color: var(--bulma-text, var(--bulma-hb-def-text));--bulma-hb-def-button-text-decoration: underline;--bulma-hb-def-button-text-hover-background-color: var(--bulma-background, var(--bulma-hb-def-background));--bulma-hb-def-button-text-hover-color: var(--bulma-text-strong, var(--bulma-hb-def-text-strong));--bulma-hb-def-button-ghost-background: none;--bulma-hb-def-button-ghost-border-color: transparent;--bulma-hb-def-button-ghost-color: var(--bulma-link-text, var(--bulma-hb-def-link-text));--bulma-hb-def-button-ghost-decoration: none;--bulma-hb-def-button-ghost-hover-color: var(--bulma-link, var(--bulma-hb-def-link));--bulma-hb-def-button-ghost-hover-decoration: underline;--bulma-hb-def-button-disabled-background-color: var(--bulma-scheme-main, var(--bulma-hb-def-scheme-main));--bulma-hb-def-button-disabled-border-color: var(--bulma-border, var(--bulma-hb-def-border));--bulma-hb-def-button-disabled-shadow: none;--bulma-hb-def-button-disabled-opacity: 0.5;--bulma-hb-def-button-static-color: var(--bulma-text-weak, var(--bulma-hb-def-text-weak));--bulma-hb-def-button-static-background-color: var(--bulma-scheme-main-ter, var(--bulma-hb-def-scheme-main-ter));--bulma-hb-def-button-static-border-color: var(--bulma-border, var(--bulma-hb-def-border));}.button.svelte-127py2f {--bulma-hb-def-button-h: var(--bulma-scheme-h, var(--bulma-hb-def-scheme-h));--bulma-hb-def-button-s: var(--bulma-scheme-s, var(--bulma-hb-def-scheme-s));--bulma-hb-def-button-l: var(--bulma-scheme-main-l, var(--bulma-hb-def-scheme-main-l));--bulma-hb-def-button-background-l: var(--bulma-scheme-main-l, var(--bulma-hb-def-scheme-main-l));--bulma-hb-def-button-background-l-delta: 0%;--bulma-hb-def-button-hover-background-l-delta: var(--bulma-hover-background-l-delta, var(--bulma-hb-def-hover-background-l-delta));--bulma-hb-def-button-active-background-l-delta: var(--bulma-active-background-l-delta, var(--bulma-hb-def-active-background-l-delta));--bulma-hb-def-button-color-l: var(--bulma-text-strong-l, var(--bulma-hb-def-text-strong-l));--bulma-hb-def-button-border-l: var(--bulma-border-l, var(--bulma-hb-def-border-l));--bulma-hb-def-button-border-l-delta: 0%;--bulma-hb-def-button-hover-border-l-delta: var(--bulma-hover-border-l-delta, var(--bulma-hb-def-hover-border-l-delta));--bulma-hb-def-button-active-border-l-delta: var(--bulma-active-border-l-delta, var(--bulma-hb-def-active-border-l-delta));--bulma-hb-def-button-focus-border-l-delta: var(--bulma-focus-border-l-delta, var(--bulma-hb-def-focus-border-l-delta));--bulma-hb-def-button-outer-shadow-h: 0;--bulma-hb-def-button-outer-shadow-s: 0%;--bulma-hb-def-button-outer-shadow-l: 20%;--bulma-hb-def-button-outer-shadow-a: 0.05;--bulma-hb-def-loading-color: hsl(var(--bulma-button-h, var(--bulma-hb-def-button-h)), var(--bulma-button-s, var(--bulma-hb-def-button-s)), var(--bulma-button-color-l, var(--bulma-hb-def-button-color-l)));background-color:hsl(var(--bulma-button-h, var(--bulma-hb-def-button-h)), var(--bulma-button-s, var(--bulma-hb-def-button-s)), calc(var(--bulma-button-background-l, var(--bulma-hb-def-button-background-l)) + var(--bulma-button-background-l-delta, var(--bulma-hb-def-button-background-l-delta))));border-color:hsl(var(--bulma-button-h, var(--bulma-hb-def-button-h)), var(--bulma-button-s, var(--bulma-hb-def-button-s)), calc(var(--bulma-button-border-l, var(--bulma-hb-def-button-border-l)) + var(--bulma-button-border-l-delta, var(--bulma-hb-def-button-border-l-delta))));border-style:var(--bulma-button-border-style, var(--bulma-hb-def-button-border-style));border-width:var(--bulma-button-border-width, var(--bulma-hb-def-button-border-width));box-shadow:0px 0.0625em 0.125em hsla(var(--bulma-button-outer-shadow-h, var(--bulma-hb-def-button-outer-shadow-h)), var(--bulma-button-outer-shadow-s, var(--bulma-hb-def-button-outer-shadow-s)), var(--bulma-button-outer-shadow-l, var(--bulma-hb-def-button-outer-shadow-l)), var(--bulma-button-outer-shadow-a, var(--bulma-hb-def-button-outer-shadow-a))), 0px 0.125em 0.25em hsla(var(--bulma-button-outer-shadow-h, var(--bulma-hb-def-button-outer-shadow-h)), var(--bulma-button-outer-shadow-s, var(--bulma-hb-def-button-outer-shadow-s)), var(--bulma-button-outer-shadow-l, var(--bulma-hb-def-button-outer-shadow-l)), var(--bulma-button-outer-shadow-a, var(--bulma-hb-def-button-outer-shadow-a)));color:hsl(var(--bulma-button-h, var(--bulma-hb-def-button-h)), var(--bulma-button-s, var(--bulma-hb-def-button-s)), var(--bulma-button-color-l, var(--bulma-hb-def-button-color-l)));cursor:pointer;font-weight:var(--bulma-button-weight, var(--bulma-hb-def-button-weight));height:auto;justify-content:center;padding-bottom:calc(var(--bulma-button-padding-vertical, var(--bulma-hb-def-button-padding-vertical)) - var(--bulma-button-border-width, var(--bulma-hb-def-button-border-width)));padding-left:calc(var(--bulma-button-padding-horizontal, var(--bulma-hb-def-button-padding-horizontal)) - var(--bulma-button-border-width, var(--bulma-hb-def-button-border-width)));padding-right:calc(var(--bulma-button-padding-horizontal, var(--bulma-hb-def-button-padding-horizontal)) - var(--bulma-button-border-width, var(--bulma-hb-def-button-border-width)));padding-top:calc(var(--bulma-button-padding-vertical, var(--bulma-hb-def-button-padding-vertical)) - var(--bulma-button-border-width, var(--bulma-hb-def-button-border-width)));text-align:center;white-space:nowrap;}.button.svelte-127py2f .icon:where(.svelte-127py2f), .button.svelte-127py2f .icon.is-small:where(.svelte-127py2f) {height:1.5em;width:1.5em;}.button.svelte-127py2f .icon:where(.svelte-127py2f):first-child:not(:last-child) {margin-inline-start:calc(-0.5 * var(--bulma-button-padding-horizontal, var(--bulma-hb-def-button-padding-horizontal)));margin-inline-end:calc(var(--bulma-button-padding-horizontal, var(--bulma-hb-def-button-padding-horizontal)) * 0.25);}.button.svelte-127py2f .icon:where(.svelte-127py2f):last-child:not(:first-child) {margin-inline-start:calc(var(--bulma-button-padding-horizontal, var(--bulma-hb-def-button-padding-horizontal)) * 0.25);margin-inline-end:calc(-0.5 * var(--bulma-button-padding-horizontal, var(--bulma-hb-def-button-padding-horizontal)));}.button.svelte-127py2f .icon:where(.svelte-127py2f):first-child:last-child {margin-inline-start:calc(-0.5 * var(--bulma-button-padding-horizontal, var(--bulma-hb-def-button-padding-horizontal)));margin-inline-end:calc(-0.5 * var(--bulma-button-padding-horizontal, var(--bulma-hb-def-button-padding-horizontal)));}.button.svelte-127py2f:hover {--bulma-hb-def-button-background-l-delta: var(--bulma-button-hover-background-l-delta, var(--bulma-hb-def-button-hover-background-l-delta));--bulma-hb-def-button-border-l-delta: var(--bulma-button-hover-border-l-delta, var(--bulma-hb-def-button-hover-border-l-delta));}.button.svelte-127py2f:focus-visible {--bulma-hb-def-button-border-width: 1px;border-color:hsl(var(--bulma-focus-h, var(--bulma-hb-def-focus-h)), var(--bulma-focus-s, var(--bulma-hb-def-focus-s)), var(--bulma-focus-l, var(--bulma-hb-def-focus-l)));box-shadow:var(--bulma-focus-shadow-size, var(--bulma-hb-def-focus-shadow-size)) hsla(var(--bulma-focus-h, var(--bulma-hb-def-focus-h)), var(--bulma-focus-s, var(--bulma-hb-def-focus-s)), var(--bulma-focus-l, var(--bulma-hb-def-focus-l)), var(--bulma-focus-shadow-alpha, var(--bulma-hb-def-focus-shadow-alpha)));}.button.svelte-127py2f:active {--bulma-hb-def-button-background-l-delta: var(--bulma-button-active-background-l-delta, var(--bulma-hb-def-button-active-background-l-delta));--bulma-hb-def-button-border-l-delta: var(--bulma-button-active-border-l-delta, var(--bulma-hb-def-button-active-border-l-delta));--bulma-hb-def-button-outer-shadow-a: 0;}.button.is-link.svelte-127py2f {--bulma-hb-def-button-h: var(--bulma-link-h, var(--bulma-hb-def-link-h));--bulma-hb-def-button-s: var(--bulma-link-s, var(--bulma-hb-def-link-s));--bulma-hb-def-button-l: var(--bulma-link-l, var(--bulma-hb-def-link-l));--bulma-hb-def-button-background-l: var(--bulma-link-l, var(--bulma-hb-def-link-l));--bulma-hb-def-button-border-l: var(--bulma-link-l, var(--bulma-hb-def-link-l));--bulma-hb-def-button-border-width: 0px;--bulma-hb-def-button-color-l: var(--bulma-link-invert-l, var(--bulma-hb-def-link-invert-l));--bulma-hb-def-button-outer-shadow-a: 0;}.button.is-link.svelte-127py2f:focus-visible {--bulma-hb-def-button-border-width: 1px;}.button.is-small.svelte-127py2f {--bulma-hb-def-control-size: var(--bulma-size-small, var(--bulma-hb-def-size-small));--bulma-hb-def-control-radius: var(--bulma-radius-small, var(--bulma-hb-def-radius-small));}.buttons.svelte-127py2f {align-items:center;display:flex;flex-wrap:wrap;gap:0.75rem;justify-content:flex-start;}.buttons.are-small.svelte-127py2f {--bulma-hb-def-control-size: var(--bulma-size-small, var(--bulma-hb-def-size-small));--bulma-hb-def-control-radius: var(--bulma-radius-small, var(--bulma-hb-def-radius-small));}.buttons.has-addons.svelte-127py2f {gap:0;}.buttons.has-addons.svelte-127py2f .button:where(.svelte-127py2f):not(:first-child) {border-end-start-radius:0;border-start-start-radius:0;}.buttons.has-addons.svelte-127py2f .button:where(.svelte-127py2f):not(:last-child) {border-end-end-radius:0;border-start-end-radius:0;margin-inline-end:-1px;}.buttons.has-addons.svelte-127py2f .button:where(.svelte-127py2f):hover {z-index:2;}.buttons.has-addons.svelte-127py2f .button:where(.svelte-127py2f):focus, .buttons.has-addons.svelte-127py2f .button:where(.svelte-127py2f):active, .buttons.has-addons.svelte-127py2f .button.is-selected:where(.svelte-127py2f) {z-index:3;}.buttons.has-addons.svelte-127py2f .button:where(.svelte-127py2f):focus:hover, .buttons.has-addons.svelte-127py2f .button:where(.svelte-127py2f):active:hover, .buttons.has-addons.svelte-127py2f .button.is-selected:where(.svelte-127py2f):hover {z-index:4;}.buttons.has-addons.svelte-127py2f .button.is-expanded:where(.svelte-127py2f) {flex-grow:1;flex-shrink:1;}
13
13
  @media screen and (max-width: 768px) {
14
14
  }
15
15
  @media screen and (min-width: 769px) and (max-width: 1023px) {
@@ -40,9 +40,10 @@ button.dropdown-item.is-active.svelte-127py2f {--bulma-hb-def-dropdown-item-h: v
40
40
  * Load after Bulma theme in the component style block so \`--bulma-*\` tokens apply.
41
41
  */:host {box-sizing:border-box;max-width:100%;font-family:var(--bulma-family-primary, "Inter", "Segoe UI", "Roboto", "Helvetica Neue", "Arial", sans-serif);}.svelte-127py2f,
42
42
  .svelte-127py2f::before,
43
- .svelte-127py2f::after {box-sizing:inherit;}:host {display:flex;flex-direction:column;min-height:0;width:15rem;height:100%;color:var(--bulma-text);background-color:var(--bulma-navbar-background-color, var(--bulma-scheme-main-bis, #f5f5f5));}.hb-sidebar-shell.svelte-127py2f {position:relative;flex:1 1 0%;min-height:0;display:flex;flex-direction:column;height:100%;color:inherit;background-color:inherit;}.hb-sidebar-inner.svelte-127py2f {flex:1 1 0%;min-height:0;height:100%;max-height:100%;display:flex;flex-direction:column;overflow:hidden;background-color:inherit;color:inherit;padding-block-start:0 !important;padding-inline-end:0 !important;}.hb-sidebar-inner.svelte-127py2f > h4:where(.svelte-127py2f) {flex-shrink:0;min-width:0;padding-inline-end:1rem;}.hb-sidebar-brand.svelte-127py2f {margin-block-start:var(--bulma-block-spacing, 0.75rem);}.hb-sidebar-brand-logo.svelte-127py2f {height:2.5rem;margin-inline-end:0.625rem;vertical-align:middle;}.hb-sidebar-nav-list.svelte-127py2f {list-style:none;margin:0;padding:0 1rem 0 0;width:100%;max-width:none;align-self:stretch;flex:1 1 0%;min-height:0;min-width:0;overflow-x:hidden;overflow-y:auto;}
43
+ .svelte-127py2f::after {box-sizing:inherit;}:host {display:flex;flex-direction:column;min-height:0;width:var(--hb-sidebar-host-width, 14rem);height:100%;font-size:0.9375rem;--bulma-size-small: 0.7rem;color:var(--bulma-text);background-color:var(--bulma-navbar-background-color, var(--bulma-scheme-main-bis, #f5f5f5));}.hb-sidebar-shell.svelte-127py2f {position:relative;flex:1 1 0%;min-height:0;display:flex;flex-direction:column;height:100%;color:inherit;background-color:inherit;}.hb-sidebar-inner.svelte-127py2f {flex:1 1 0%;min-height:0;height:100%;max-height:100%;display:flex;flex-direction:column;overflow:hidden;background-color:inherit;color:inherit;padding-block-start:0 !important;padding-inline-end:0 !important;}.hb-sidebar-inner.svelte-127py2f > h4:where(.svelte-127py2f) {flex-shrink:0;min-width:0;
44
+ /* Align with horizontal inset of \`.hb-sidebar-inner\` (\`p-3\`); scrollbar flush on inline-end. */padding-inline-end:0.75rem;}.hb-sidebar-brand.svelte-127py2f {margin-block-start:var(--bulma-block-spacing, 0.75rem);}.hb-sidebar-brand-logo.svelte-127py2f {height:2.125rem;margin-inline-end:0.5rem;vertical-align:middle;}.hb-sidebar-nav-list.svelte-127py2f {list-style:none;margin:0;padding:0 0.75rem 0 0;width:100%;max-width:none;align-self:stretch;flex:1 1 0%;min-height:0;min-width:0;overflow-x:hidden;overflow-y:auto;}
44
45
  @supports (-moz-appearance: none) {.hb-sidebar-nav-list.svelte-127py2f {scrollbar-width:thin;scrollbar-color:var(--bulma-border) transparent;}
45
- }.hb-sidebar-nav-list.svelte-127py2f::-webkit-scrollbar {width:6px;-webkit-appearance:none;appearance:none;}.hb-sidebar-nav-list.svelte-127py2f::-webkit-scrollbar-track {background:transparent;}.hb-sidebar-nav-list.svelte-127py2f::-webkit-scrollbar-thumb {background-color:var(--bulma-border);border-radius:999px;}.hb-sidebar-nav-list.svelte-127py2f::-webkit-scrollbar-thumb:hover {background-color:var(--bulma-border-hover, var(--bulma-border));}.hb-sidebar-nav-list.svelte-127py2f::-webkit-scrollbar-button {-webkit-appearance:none;appearance:none;display:block;height:0;width:0;min-height:0;min-width:0;}.hb-sidebar-nav-list.svelte-127py2f::-webkit-scrollbar-button:vertical:start:decrement, .hb-sidebar-nav-list.svelte-127py2f::-webkit-scrollbar-button:vertical:end:increment, .hb-sidebar-nav-list.svelte-127py2f::-webkit-scrollbar-button:horizontal:start:decrement, .hb-sidebar-nav-list.svelte-127py2f::-webkit-scrollbar-button:horizontal:end:increment, .hb-sidebar-nav-list.svelte-127py2f::-webkit-scrollbar-button:vertical:decrement, .hb-sidebar-nav-list.svelte-127py2f::-webkit-scrollbar-button:vertical:increment, .hb-sidebar-nav-list.svelte-127py2f::-webkit-scrollbar-button:horizontal:decrement, .hb-sidebar-nav-list.svelte-127py2f::-webkit-scrollbar-button:horizontal:increment {display:block;height:0;width:0;}.hb-sidebar-nav-list.svelte-127py2f::-webkit-scrollbar-corner {background:transparent;}.hb-sidebar-theme-switch.svelte-127py2f {flex-shrink:0;padding-inline-end:1rem;display:inline-flex;flex-direction:row;flex-wrap:nowrap;align-items:center;justify-content:flex-start;column-gap:0.5rem;width:100%;box-sizing:border-box;min-width:0;position:relative;z-index:0;}.hb-sidebar-theme-switch__lang.svelte-127py2f {flex:0 0 auto;display:inline-flex;align-items:center;min-width:0;max-width:none;}.hb-sidebar-lang.svelte-127py2f {position:relative;display:inline-block;width:auto;max-width:10rem;}.hb-sidebar-lang.svelte-127py2f .dropdown.is-active:where(.svelte-127py2f) {z-index:30;}.hb-sidebar-lang.svelte-127py2f .dropdown:where(.svelte-127py2f),
46
- .hb-sidebar-lang.svelte-127py2f .dropdown-trigger:where(.svelte-127py2f) {display:inline-flex;width:auto;max-width:100%;}.hb-sidebar-lang.svelte-127py2f .dropdown-menu:where(.svelte-127py2f) {min-width:max(100%, var(--bulma-dropdown-menu-min-width, 12rem));max-width:min(18rem, 100vw);}.hb-sidebar-lang.svelte-127py2f .dropdown-content:where(.svelte-127py2f) {max-height:min(12rem, 55vh);overflow-y:auto;padding-block:0.375rem;padding-inline:0.375rem;}.hb-sidebar-lang.svelte-127py2f button.dropdown-item:where(.svelte-127py2f) {appearance:none;margin:0;border:0;box-sizing:border-box;cursor:pointer;font:inherit;font-weight:500;text-align:start;white-space:normal;word-break:break-word;line-height:1.35;padding-block:0.5rem;padding-inline:0.625rem 0.75rem;border-radius:var(--bulma-radius-small);width:100%;transition:background-color 0.12s ease, color 0.12s ease;}.hb-sidebar-lang.svelte-127py2f button.dropdown-item:where(.svelte-127py2f):focus-visible {outline:2px solid var(--bulma-link);outline-offset:1px;}.hb-sidebar-lang.svelte-127py2f button.dropdown-item:where(.svelte-127py2f):not(:last-child) {margin-bottom:0.125rem;}.hb-sidebar-lang__toggle.svelte-127py2f {width:auto;max-width:100%;display:inline-flex;align-items:center;justify-content:center;gap:0.35rem;font-size:var(--bulma-size-small, 0.775rem);}.hb-sidebar-lang__code.svelte-127py2f {font-weight:600;font-variant-numeric:tabular-nums;letter-spacing:0.02em;text-transform:uppercase;}.hb-sidebar-theme-switch__control.svelte-127py2f {flex:1 1 auto;display:flex;align-items:center;justify-content:flex-end;min-width:0;min-height:0;}.hb-sidebar-theme-icons.svelte-127py2f {width:100%;max-width:100%;}.hb-sidebar-theme-icons.svelte-127py2f .hb-sidebar-theme-icon-btn:where(.svelte-127py2f):not(.is-link) {border-color:var(--bulma-border);background:var(--bulma-scheme-main);color:var(--bulma-text);}.hb-sidebar-theme-icons.svelte-127py2f .hb-sidebar-theme-icon-btn:where(.svelte-127py2f):not(.is-link):hover, .hb-sidebar-theme-icons.svelte-127py2f .hb-sidebar-theme-icon-btn:where(.svelte-127py2f):not(.is-link):focus-visible {border-color:var(--bulma-border-hover, var(--bulma-border));color:var(--bulma-link-text, var(--bulma-link));}.hb-sidebar-theme-icons.svelte-127py2f .hb-sidebar-theme-icon-btn:where(.svelte-127py2f) .icon:where(.svelte-127py2f),
47
- .hb-sidebar-theme-icons.svelte-127py2f .hb-sidebar-theme-icon-btn:where(.svelte-127py2f) .bi:where(.svelte-127py2f) {color:inherit;}.hb-sidebar-footer.svelte-127py2f {flex-shrink:0;padding-inline-end:1rem;}.hb-sidebar-footer.svelte-127py2f hr:where(.svelte-127py2f) {border:0;border-top:1px solid var(--bulma-border);margin-block:0.75rem 1rem;margin-inline:0;height:0;background-color:transparent;}.svelte-127py2f::slotted(i) {min-width:1rem;display:inline-block;}`};function yi(e,t){He(t,!0),Lr(e,vi);let n=Jr(t,`id`,7,``),r=Jr(t,`companylogouri`,7,`https://upload.wikimedia.org/wikipedia/commons/8/80/Wikipedia-logo-v2.svg`),i=Jr(t,`navlinks`,23,()=>[]),a=Jr(t,`navpage`,7,`home`),o=Jr(t,`groups`,23,()=>[]),s=Jr(t,`companytitle`,7,``),c=Jr(t,`enablefooter`,7,`yes`),l=Jr(t,`enablethemeswitch`,7,`yes`),u=Jr(t,`themepreference`,7,void 0),d=Jr(t,`i18nlang`,7,``),f=Jr(t,`i18nlanguages`,7,void 0),p=Ut(`auto`),m=Ut(!1),h=jt(()=>{let e=f();if(e==null||e===``)return[];if(typeof e==`string`)try{e=JSON.parse(e)}catch{return[]}if(!Array.isArray(e))return[];let t=[];for(let n of e)if(typeof n==`string`&&n)t.push({code:n,label:n});else if(n&&typeof n==`object`&&`code`in n){let e=n;e.code&&t.push({code:e.code,label:e.label?.trim()?e.label:e.code})}return t}),g=jt(()=>(d()??``).trim()||(X(h)[0]?.code??``));mn(()=>{if(!X(m)||typeof window>`u`)return;function e(){N(m,!1),window.removeEventListener(`click`,e)}let t=window.setTimeout(()=>{window.addEventListener(`click`,e)},0);return()=>{window.clearTimeout(t),window.removeEventListener(`click`,e)}});function _(){for(let e of[document.documentElement,document.body]){let t=e.getAttribute(`data-theme`);if(t===`dark`||t===`light`)return t;if(e.classList.contains(`theme-dark`))return`dark`;if(e.classList.contains(`theme-light`))return`light`}return`auto`}function v(e){if(!(typeof document>`u`))for(let t of[document.documentElement,document.body])t&&(t.classList.remove(`theme-light`,`theme-dark`),e===`auto`?t.removeAttribute(`data-theme`):(t.setAttribute(`data-theme`,e),t.classList.add(e===`light`?`theme-light`:`theme-dark`)))}function y(e){N(p,e,!0),v(e),b(`themeChange`,{mode:e})}mn(()=>{let e=u();(e===`light`||e===`dark`||e===`auto`)&&(N(p,e,!0),v(e))}),Cr(()=>{let e=u();e!==`light`&&e!==`dark`&&e!==`auto`&&N(p,_(),!0)}),mn(()=>{(!c()||c()===`no`||c()===`false`)&&c(`no`),(!l()||l()===`no`||l()===`false`)&&l(`no`);try{typeof o()==`string`&&o(JSON.parse(o())),typeof i()==`string`&&i(JSON.parse(i()))}catch{}});function b(e,n){t.$$host.dispatchEvent(new CustomEvent(e,{detail:n,bubbles:!0,composed:!0}))}function x(e){console.log(e),b(`pageChange`,{page:e})}function S(e){N(m,!1),b(`languageChange`,{code:e})}function ee(e){e.stopPropagation(),N(m,!X(m))}ni({repoName:`@htmlbricks/hb-sidenav-link`,version:ti.version});var te={get id(){return n()},set id(e=``){n(e),M()},get companylogouri(){return r()},set companylogouri(e=`https://upload.wikimedia.org/wikipedia/commons/8/80/Wikipedia-logo-v2.svg`){r(e),M()},get navlinks(){return i()},set navlinks(e=[]){i(e),M()},get navpage(){return a()},set navpage(e=`home`){a(e),M()},get groups(){return o()},set groups(e=[]){o(e),M()},get companytitle(){return s()},set companytitle(e=``){s(e),M()},get enablefooter(){return c()},set enablefooter(e=`yes`){c(e),M()},get enablethemeswitch(){return l()},set enablethemeswitch(e=`yes`){l(e),M()},get themepreference(){return u()},set themepreference(e=void 0){u(e),M()},get i18nlang(){return d()},set i18nlang(e=``){d(e),M()},get i18nlanguages(){return f()},set i18nlanguages(e=void 0){f(e),M()}},ne=_i();Ir(`127py2f`,e=>{Q(e,ri())});var re=I(ne);Fr(re,t,`test`,{},null);var ie=L(re,2),ae=I(ie),oe=I(ae);Fr(oe,t,`header`,{part:`header`},null);var se=L(oe,2),ce=e=>{var t=ai(),n=I(t),i=e=>{var t=ii();R(()=>$(t,`src`,r())),Q(e,t)};Tr(n,e=>{r()&&e(i)});var a=L(n);D(t),R(()=>hr(a,` ${s()??``}`)),Q(e,t)};Tr(se,e=>{s()&&e(ce)}),D(ae);var le=L(ae,2),ue=I(le),de=e=>{var t=fr();kr(nn(t),17,()=>i().filter(e=>!e.group),e=>e.key,(e,t)=>{var n=oi();R(()=>Wr(n,`navlink`,JSON.stringify(X(t)))),R(()=>Wr(n,`navpage`,a())),Br(n,1,`svelte-127py2f`),nr(`pageChange`,n,e=>x(e.detail.page)),Q(e,n)}),Q(e,t)},fe=jt(()=>i()?.length&&typeof i()==`object`&&i().filter(e=>!e.group)?.length);Tr(ue,e=>{X(fe)&&e(de)});var pe=L(ue,2),me=e=>{var t=fr();kr(nn(t),17,o,e=>e.key,(e,t)=>{var n=ci(),r=nn(n),o=I(r,!0);D(r),kr(L(r,4),17,()=>i().filter(e=>e.group&&e.group===X(t).key),e=>e.key,(e,t)=>{var n=si();R(()=>Wr(n,`navlink`,JSON.stringify(X(t)))),R(()=>Wr(n,`navpage`,a())),Br(n,1,`svelte-127py2f`),nr(`pageChange`,n,e=>x(e.detail.page)),Q(e,n)}),R(()=>hr(o,X(t).label)),Q(e,n)}),Q(e,t)};Tr(pe,e=>{o()?.length&&i().length&&typeof i()==`object`&&e(me)});var he=L(pe,2),ge=e=>{var t=fr();kr(nn(t),16,()=>i().filter(e=>e.group&&(!o()?.length||!o().map(e=>e.key).includes(e.group))).map(e=>e.group).filter((e,t,n)=>n.indexOf(e)===t),e=>e,(e,t)=>{var n=ui(),r=nn(n),o=I(r,!0);D(r),kr(L(r,4),17,()=>i().filter(e=>e.group&&e.group===t),e=>e.key,(e,t)=>{var n=li();R(()=>Wr(n,`navlink`,JSON.stringify(X(t)))),R(()=>Wr(n,`navpage`,a())),Br(n,1,`svelte-127py2f`),nr(`pageChange`,n,e=>x(e.detail.page)),Q(e,n)}),R(()=>hr(o,t)),Q(e,n)}),Q(e,t)};Tr(he,e=>{typeof i()==`object`&&i()?.length&&e(ge)}),D(le);var _e=L(le,2),ve=e=>{var t=hi(),n=I(t),r=e=>{var t=pi(),n=I(t);let r;var i=I(n),a=I(i),o=I(a),s=I(o,!0);D(o),Ne(2),D(a),D(i);var c=L(i,2),l=e=>{var t=fi(),n=I(t);kr(n,21,()=>X(h),e=>e.code,(e,t)=>{var n=di();let r;var i=I(n,!0);D(n),R((e,a)=>{r=Br(n,1,`dropdown-item svelte-127py2f`,null,r,e),$(n,`aria-selected`,a),hr(i,X(t).label)},[()=>({"is-active":X(t).code===(d()||``).trim()}),()=>X(t).code===(d()||``).trim()]),rr(`click`,n,e=>{e.stopPropagation(),S(X(t).code)}),Q(e,n)}),D(n),D(t),Q(e,t)};Tr(c,e=>{X(m)&&e(l)}),D(n),D(t),R(()=>{r=Br(n,1,`dropdown svelte-127py2f`,null,r,{"is-active":X(m),"is-up":!0}),$(a,`aria-expanded`,X(m)),$(a,`aria-controls`,X(m)?`hb-sidebar-lang-menu`:void 0),$(a,`aria-label`,`Language: ${X(g)??``}`),hr(s,X(g))}),rr(`click`,a,ee),Q(e,t)};Tr(n,e=>{X(h).length>0&&e(r)});var i=L(n,2),a=e=>{var t=mi(),n=I(t),r=I(n);let i;var a=L(r,2);let o;var s=L(a,2);let c;D(n),D(t),R(()=>{i=Br(r,1,`button is-expanded hb-sidebar-theme-icon-btn svelte-127py2f`,null,i,{"is-selected":X(p)===`light`,"is-link":X(p)===`light`}),$(r,`aria-pressed`,X(p)===`light`),$(r,`aria-label`,X(p)===`light`?`Light theme (selected)`:`Light theme`),o=Br(a,1,`button is-expanded hb-sidebar-theme-icon-btn svelte-127py2f`,null,o,{"is-selected":X(p)===`dark`,"is-link":X(p)===`dark`}),$(a,`aria-pressed`,X(p)===`dark`),$(a,`aria-label`,X(p)===`dark`?`Dark theme (selected)`:`Dark theme`),c=Br(s,1,`button is-expanded hb-sidebar-theme-icon-btn svelte-127py2f`,null,c,{"is-selected":X(p)===`auto`,"is-link":X(p)===`auto`}),$(s,`aria-pressed`,X(p)===`auto`),$(s,`aria-label`,X(p)===`auto`?`System theme (selected)`:`System theme`)}),rr(`click`,r,()=>y(`light`)),rr(`click`,a,()=>y(`dark`)),rr(`click`,s,()=>y(`auto`)),Q(e,t)};Tr(i,e=>{l()===`yes`&&e(a)}),D(t),Q(e,t)};Tr(_e,e=>{(l()===`yes`||X(h).length>0)&&e(ve)});var ye=L(_e,2),be=e=>{var n=gi();Fr(L(I(n),2),t,`footer`,{},e=>{Q(e,dr(`footer`))}),D(n),Q(e,n)};return Tr(ye,e=>{c()===`yes`&&e(be)}),D(ie),D(ne),Q(e,ne),Ue(te)}ir([`click`]),customElements.define(`hb-sidebar-desktop`,ei(yi,{id:{},companylogouri:{},navlinks:{},navpage:{},groups:{},companytitle:{},enablefooter:{},enablethemeswitch:{},themepreference:{},i18nlang:{},i18nlanguages:{}},[`test`,`header`,`footer`],[],{mode:`open`})),e.Component=yi})(this[`sidebar-desktop`]=this[`sidebar-desktop`]||{});
46
+ }.hb-sidebar-nav-list.svelte-127py2f::-webkit-scrollbar {width:6px;-webkit-appearance:none;appearance:none;}.hb-sidebar-nav-list.svelte-127py2f::-webkit-scrollbar-track {background:transparent;}.hb-sidebar-nav-list.svelte-127py2f::-webkit-scrollbar-thumb {background-color:var(--bulma-border);border-radius:999px;}.hb-sidebar-nav-list.svelte-127py2f::-webkit-scrollbar-thumb:hover {background-color:var(--bulma-border-hover, var(--bulma-border));}.hb-sidebar-nav-list.svelte-127py2f::-webkit-scrollbar-button {-webkit-appearance:none;appearance:none;display:block;height:0;width:0;min-height:0;min-width:0;}.hb-sidebar-nav-list.svelte-127py2f::-webkit-scrollbar-button:vertical:start:decrement, .hb-sidebar-nav-list.svelte-127py2f::-webkit-scrollbar-button:vertical:end:increment, .hb-sidebar-nav-list.svelte-127py2f::-webkit-scrollbar-button:horizontal:start:decrement, .hb-sidebar-nav-list.svelte-127py2f::-webkit-scrollbar-button:horizontal:end:increment, .hb-sidebar-nav-list.svelte-127py2f::-webkit-scrollbar-button:vertical:decrement, .hb-sidebar-nav-list.svelte-127py2f::-webkit-scrollbar-button:vertical:increment, .hb-sidebar-nav-list.svelte-127py2f::-webkit-scrollbar-button:horizontal:decrement, .hb-sidebar-nav-list.svelte-127py2f::-webkit-scrollbar-button:horizontal:increment {display:block;height:0;width:0;}.hb-sidebar-nav-list.svelte-127py2f::-webkit-scrollbar-corner {background:transparent;}.hb-sidebar-theme-switch.svelte-127py2f {flex-shrink:0;padding-inline-end:0.75rem;display:inline-flex;flex-direction:row;flex-wrap:nowrap;align-items:center;justify-content:flex-start;column-gap:0.375rem;width:100%;box-sizing:border-box;min-width:0;position:relative;z-index:0;}.hb-sidebar-theme-switch__lang.svelte-127py2f {flex:0 0 auto;display:inline-flex;align-items:center;min-width:0;max-width:none;}.hb-sidebar-lang.svelte-127py2f {position:relative;display:inline-block;width:auto;max-width:10rem;}.hb-sidebar-lang.svelte-127py2f .dropdown.is-active:where(.svelte-127py2f) {z-index:30;}.hb-sidebar-lang.svelte-127py2f .dropdown:where(.svelte-127py2f),
47
+ .hb-sidebar-lang.svelte-127py2f .dropdown-trigger:where(.svelte-127py2f) {display:inline-flex;width:auto;max-width:100%;}.hb-sidebar-lang.svelte-127py2f .dropdown-menu:where(.svelte-127py2f) {min-width:max(100%, var(--bulma-dropdown-menu-min-width, 12rem));max-width:min(18rem, 100vw);}.hb-sidebar-lang.svelte-127py2f .dropdown-content:where(.svelte-127py2f) {max-height:min(12rem, 55vh);overflow-y:auto;padding-block:0.25rem;padding-inline:0.25rem;}.hb-sidebar-lang.svelte-127py2f button.dropdown-item:where(.svelte-127py2f) {appearance:none;margin:0;border:0;box-sizing:border-box;cursor:pointer;font:inherit;font-weight:500;text-align:start;white-space:normal;word-break:break-word;line-height:1.3;padding-block:0.375rem;padding-inline:0.5rem 0.625rem;border-radius:var(--bulma-radius-small);width:100%;transition:background-color 0.12s ease, color 0.12s ease;}.hb-sidebar-lang.svelte-127py2f button.dropdown-item:where(.svelte-127py2f):focus-visible {outline:2px solid var(--bulma-link);outline-offset:1px;}.hb-sidebar-lang.svelte-127py2f button.dropdown-item:where(.svelte-127py2f):not(:last-child) {margin-bottom:0.125rem;}.hb-sidebar-lang__toggle.svelte-127py2f {width:auto;max-width:100%;display:inline-flex;align-items:center;justify-content:center;gap:0.35rem;font-size:var(--bulma-size-small, 0.775rem);}.hb-sidebar-lang__code.svelte-127py2f {font-weight:600;font-variant-numeric:tabular-nums;letter-spacing:0.02em;text-transform:uppercase;}.hb-sidebar-theme-switch__control.svelte-127py2f {flex:1 1 auto;display:flex;align-items:center;justify-content:flex-end;min-width:0;min-height:0;}.hb-sidebar-theme-icons.svelte-127py2f {width:100%;max-width:100%;}.hb-sidebar-theme-icons.svelte-127py2f .hb-sidebar-theme-icon-btn:where(.svelte-127py2f):not(.is-link) {border-color:var(--bulma-border);background:var(--bulma-scheme-main);color:var(--bulma-text);}.hb-sidebar-theme-icons.svelte-127py2f .hb-sidebar-theme-icon-btn:where(.svelte-127py2f):not(.is-link):hover, .hb-sidebar-theme-icons.svelte-127py2f .hb-sidebar-theme-icon-btn:where(.svelte-127py2f):not(.is-link):focus-visible {border-color:var(--bulma-border-hover, var(--bulma-border));color:var(--bulma-link-text, var(--bulma-link));}.hb-sidebar-theme-icons.svelte-127py2f .hb-sidebar-theme-icon-btn:where(.svelte-127py2f) .icon:where(.svelte-127py2f),
48
+ .hb-sidebar-theme-icons.svelte-127py2f .hb-sidebar-theme-icon-btn:where(.svelte-127py2f) .bi:where(.svelte-127py2f) {color:inherit;}.hb-sidebar-footer.svelte-127py2f {flex-shrink:0;padding-inline-end:0.75rem;}.hb-sidebar-footer.svelte-127py2f hr:where(.svelte-127py2f) {border:0;border-top:1px solid var(--bulma-border);margin-block:0.5rem 0.75rem;margin-inline:0;height:0;background-color:transparent;}.svelte-127py2f::slotted(i) {min-width:1rem;display:inline-block;}`};function yi(e,t){He(t,!0),Lr(e,vi);let n=Jr(t,`id`,7,``),r=Jr(t,`companylogouri`,7,`https://upload.wikimedia.org/wikipedia/commons/8/80/Wikipedia-logo-v2.svg`),i=Jr(t,`navlinks`,23,()=>[]),a=Jr(t,`navpage`,7,`home`),o=Jr(t,`groups`,23,()=>[]),s=Jr(t,`companytitle`,7,``),c=Jr(t,`enablefooter`,7,`yes`),l=Jr(t,`enablethemeswitch`,7,`yes`),u=Jr(t,`themepreference`,7,void 0),d=Jr(t,`i18nlang`,7,``),f=Jr(t,`i18nlanguages`,7,void 0),p=Ut(`auto`),m=Ut(!1),h=jt(()=>{let e=f();if(e==null||e===``)return[];if(typeof e==`string`)try{e=JSON.parse(e)}catch{return[]}if(!Array.isArray(e))return[];let t=[];for(let n of e)if(typeof n==`string`&&n)t.push({code:n,label:n});else if(n&&typeof n==`object`&&`code`in n){let e=n;e.code&&t.push({code:e.code,label:e.label?.trim()?e.label:e.code})}return t}),g=jt(()=>(d()??``).trim()||(X(h)[0]?.code??``));mn(()=>{if(!X(m)||typeof window>`u`)return;function e(){N(m,!1),window.removeEventListener(`click`,e)}let t=window.setTimeout(()=>{window.addEventListener(`click`,e)},0);return()=>{window.clearTimeout(t),window.removeEventListener(`click`,e)}});function _(){for(let e of[document.documentElement,document.body]){let t=e.getAttribute(`data-theme`);if(t===`dark`||t===`light`)return t;if(e.classList.contains(`theme-dark`))return`dark`;if(e.classList.contains(`theme-light`))return`light`}return`auto`}function v(e){if(!(typeof document>`u`))for(let t of[document.documentElement,document.body])t&&(t.classList.remove(`theme-light`,`theme-dark`),e===`auto`?t.removeAttribute(`data-theme`):(t.setAttribute(`data-theme`,e),t.classList.add(e===`light`?`theme-light`:`theme-dark`)))}function y(e){N(p,e,!0),v(e),b(`themeChange`,{mode:e})}mn(()=>{let e=u();(e===`light`||e===`dark`||e===`auto`)&&(N(p,e,!0),v(e))}),Cr(()=>{let e=u();e!==`light`&&e!==`dark`&&e!==`auto`&&N(p,_(),!0)}),mn(()=>{(!c()||c()===`no`||c()===`false`)&&c(`no`),(!l()||l()===`no`||l()===`false`)&&l(`no`);try{typeof o()==`string`&&o(JSON.parse(o())),typeof i()==`string`&&i(JSON.parse(i()))}catch{}});function b(e,n){t.$$host.dispatchEvent(new CustomEvent(e,{detail:n,bubbles:!0,composed:!0}))}function x(e){console.log(e),b(`pageChange`,{page:e})}function S(e){N(m,!1),b(`languageChange`,{code:e})}function ee(e){e.stopPropagation(),N(m,!X(m))}ni({repoName:`@htmlbricks/hb-sidenav-link`,version:ti.version});var te={get id(){return n()},set id(e=``){n(e),M()},get companylogouri(){return r()},set companylogouri(e=`https://upload.wikimedia.org/wikipedia/commons/8/80/Wikipedia-logo-v2.svg`){r(e),M()},get navlinks(){return i()},set navlinks(e=[]){i(e),M()},get navpage(){return a()},set navpage(e=`home`){a(e),M()},get groups(){return o()},set groups(e=[]){o(e),M()},get companytitle(){return s()},set companytitle(e=``){s(e),M()},get enablefooter(){return c()},set enablefooter(e=`yes`){c(e),M()},get enablethemeswitch(){return l()},set enablethemeswitch(e=`yes`){l(e),M()},get themepreference(){return u()},set themepreference(e=void 0){u(e),M()},get i18nlang(){return d()},set i18nlang(e=``){d(e),M()},get i18nlanguages(){return f()},set i18nlanguages(e=void 0){f(e),M()}},ne=_i();Ir(`127py2f`,e=>{Q(e,ri())});var re=I(ne);Fr(re,t,`test`,{},null);var ie=L(re,2),ae=I(ie),oe=I(ae);Fr(oe,t,`header`,{part:`header`},null);var se=L(oe,2),ce=e=>{var t=ai(),n=I(t),i=e=>{var t=ii();R(()=>$(t,`src`,r())),Q(e,t)};Tr(n,e=>{r()&&e(i)});var a=L(n);D(t),R(()=>hr(a,` ${s()??``}`)),Q(e,t)};Tr(se,e=>{s()&&e(ce)}),D(ae);var le=L(ae,2),ue=I(le),de=e=>{var t=fr();kr(nn(t),17,()=>i().filter(e=>!e.group),e=>e.key,(e,t)=>{var n=oi();R(()=>Wr(n,`navlink`,JSON.stringify(X(t)))),R(()=>Wr(n,`navpage`,a())),Br(n,1,`svelte-127py2f`),nr(`pageChange`,n,e=>x(e.detail.page)),Q(e,n)}),Q(e,t)},fe=jt(()=>i()?.length&&typeof i()==`object`&&i().filter(e=>!e.group)?.length);Tr(ue,e=>{X(fe)&&e(de)});var pe=L(ue,2),me=e=>{var t=fr();kr(nn(t),17,o,e=>e.key,(e,t)=>{var n=ci(),r=nn(n),o=I(r,!0);D(r),kr(L(r,4),17,()=>i().filter(e=>e.group&&e.group===X(t).key),e=>e.key,(e,t)=>{var n=si();R(()=>Wr(n,`navlink`,JSON.stringify(X(t)))),R(()=>Wr(n,`navpage`,a())),Br(n,1,`svelte-127py2f`),nr(`pageChange`,n,e=>x(e.detail.page)),Q(e,n)}),R(()=>hr(o,X(t).label)),Q(e,n)}),Q(e,t)};Tr(pe,e=>{o()?.length&&i().length&&typeof i()==`object`&&e(me)});var he=L(pe,2),ge=e=>{var t=fr();kr(nn(t),16,()=>i().filter(e=>e.group&&(!o()?.length||!o().map(e=>e.key).includes(e.group))).map(e=>e.group).filter((e,t,n)=>n.indexOf(e)===t),e=>e,(e,t)=>{var n=ui(),r=nn(n),o=I(r,!0);D(r),kr(L(r,4),17,()=>i().filter(e=>e.group&&e.group===t),e=>e.key,(e,t)=>{var n=li();R(()=>Wr(n,`navlink`,JSON.stringify(X(t)))),R(()=>Wr(n,`navpage`,a())),Br(n,1,`svelte-127py2f`),nr(`pageChange`,n,e=>x(e.detail.page)),Q(e,n)}),R(()=>hr(o,t)),Q(e,n)}),Q(e,t)};Tr(he,e=>{typeof i()==`object`&&i()?.length&&e(ge)}),D(le);var _e=L(le,2),ve=e=>{var t=hi(),n=I(t),r=e=>{var t=pi(),n=I(t);let r;var i=I(n),a=I(i),o=I(a),s=I(o,!0);D(o),Ne(2),D(a),D(i);var c=L(i,2),l=e=>{var t=fi(),n=I(t);kr(n,21,()=>X(h),e=>e.code,(e,t)=>{var n=di();let r;var i=I(n,!0);D(n),R((e,a)=>{r=Br(n,1,`dropdown-item svelte-127py2f`,null,r,e),$(n,`aria-selected`,a),hr(i,X(t).label)},[()=>({"is-active":X(t).code===(d()||``).trim()}),()=>X(t).code===(d()||``).trim()]),rr(`click`,n,e=>{e.stopPropagation(),S(X(t).code)}),Q(e,n)}),D(n),D(t),Q(e,t)};Tr(c,e=>{X(m)&&e(l)}),D(n),D(t),R(()=>{r=Br(n,1,`dropdown svelte-127py2f`,null,r,{"is-active":X(m),"is-up":!0}),$(a,`aria-expanded`,X(m)),$(a,`aria-controls`,X(m)?`hb-sidebar-lang-menu`:void 0),$(a,`aria-label`,`Language: ${X(g)??``}`),hr(s,X(g))}),rr(`click`,a,ee),Q(e,t)};Tr(n,e=>{X(h).length>0&&e(r)});var i=L(n,2),a=e=>{var t=mi(),n=I(t),r=I(n);let i;var a=L(r,2);let o;var s=L(a,2);let c;D(n),D(t),R(()=>{i=Br(r,1,`button is-expanded hb-sidebar-theme-icon-btn svelte-127py2f`,null,i,{"is-selected":X(p)===`light`,"is-link":X(p)===`light`}),$(r,`aria-pressed`,X(p)===`light`),$(r,`aria-label`,X(p)===`light`?`Light theme (selected)`:`Light theme`),o=Br(a,1,`button is-expanded hb-sidebar-theme-icon-btn svelte-127py2f`,null,o,{"is-selected":X(p)===`dark`,"is-link":X(p)===`dark`}),$(a,`aria-pressed`,X(p)===`dark`),$(a,`aria-label`,X(p)===`dark`?`Dark theme (selected)`:`Dark theme`),c=Br(s,1,`button is-expanded hb-sidebar-theme-icon-btn svelte-127py2f`,null,c,{"is-selected":X(p)===`auto`,"is-link":X(p)===`auto`}),$(s,`aria-pressed`,X(p)===`auto`),$(s,`aria-label`,X(p)===`auto`?`System theme (selected)`:`System theme`)}),rr(`click`,r,()=>y(`light`)),rr(`click`,a,()=>y(`dark`)),rr(`click`,s,()=>y(`auto`)),Q(e,t)};Tr(i,e=>{l()===`yes`&&e(a)}),D(t),Q(e,t)};Tr(_e,e=>{(l()===`yes`||X(h).length>0)&&e(ve)});var ye=L(_e,2),be=e=>{var n=gi();Fr(L(I(n),2),t,`footer`,{},e=>{Q(e,dr(`footer`))}),D(n),Q(e,n)};return Tr(ye,e=>{c()===`yes`&&e(be)}),D(ie),D(ne),Q(e,ne),Ue(te)}ir([`click`]),customElements.define(`hb-sidebar-desktop`,ei(yi,{id:{},companylogouri:{},navlinks:{},navpage:{},groups:{},companytitle:{},enablefooter:{},enablethemeswitch:{},themepreference:{},i18nlang:{},i18nlanguages:{}},[`test`,`header`,`footer`],[],{mode:`open`})),e.Component=yi})(this[`sidebar-desktop`]=this[`sidebar-desktop`]||{});
48
49
  //# sourceMappingURL=main.iife.js.map