@htmlbricks/hb-navbar 0.50.0-alpha.9 → 0.60.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,2 +1,12 @@
1
- var li=Object.defineProperty;var Rr=y=>{throw TypeError(y)};var ui=(y,E,N)=>E in y?li(y,E,{enumerable:!0,configurable:!0,writable:!0,value:N}):y[E]=N;var G=(y,E,N)=>ui(y,typeof E!="symbol"?E+"":E,N),Sr=(y,E,N)=>E.has(y)||Rr("Cannot "+N);var A=(y,E,N)=>(Sr(y,E,"read from private field"),N?N.call(y):E.get(y)),kt=(y,E,N)=>E.has(y)?Rr("Cannot add the same private member more than once"):E instanceof WeakSet?E.add(y):E.set(y,N),Rt=(y,E,N,Ye)=>(Sr(y,E,"write to private field"),Ye?Ye.call(y,N):E.set(y,N),N);(function(y){"use strict";var re,H;const E="5";typeof window<"u"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(E);const N=1,Ye=2,St="[",Ct="[!",At="]",Se={},C=Symbol(),at=!1,V=2,Pt=4,He=8,ot=16,Z=32,ge=64,Be=128,q=256,Ve=512,R=1024,Q=2048,me=4096,pe=8192,Ge=16384,Cr=32768,ft=65536,Ar=1<<19,Dt=1<<20,ct=Symbol("$state"),Pr=Symbol("legacy props"),Dr=Symbol("");var Lt=Array.isArray,Lr=Array.prototype.indexOf,Ir=Array.from,Ue=Object.keys,We=Object.defineProperty,$e=Object.getOwnPropertyDescriptor,Mr=Object.getOwnPropertyDescriptors,jr=Object.prototype,Fr=Array.prototype,It=Object.getPrototypeOf;function qr(e){for(var t=0;t<e.length;t++)e[t]()}let Xe=!1,vt=[];function Mt(){Xe=!1;const e=vt.slice();vt=[],qr(e)}function jt(e){Xe||(Xe=!0,queueMicrotask(Mt)),vt.push(e)}function Yr(){Xe&&Mt()}function Ft(e){return e===this.v}function Hr(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function Br(e){return!Hr(e,this.v)}function Vr(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function Gr(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function Ur(e){throw new Error("https://svelte.dev/e/effect_orphan")}function Wr(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function Xr(){throw new Error("https://svelte.dev/e/hydration_failed")}function Kr(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function zr(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function Jr(){throw new Error("https://svelte.dev/e/state_unsafe_local_read")}function Zr(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}let Qr=!1;function U(e,t){var r={f:0,v:e,reactions:null,equals:Ft,rv:0,wv:0};return r}function qt(e){return en(U(e))}function Yt(e,t=!1){const r=U(e);return t||(r.equals=Br),r}function en(e){return p!==null&&!W&&p.f&V&&(z===null?an([e]):z.push(e)),e}function Y(e,t){return p!==null&&!W&&pr()&&p.f&(V|ot)&&(z===null||!z.includes(e))&&Zr(),tn(e,t)}function tn(e,t){return e.equals(t)||(e.v,e.v=t,e.wv=rr(),Ht(e,Q),$!==null&&$.f&R&&!($.f&(Z|ge))&&(ee===null?on([e]):ee.push(e))),t}function Ht(e,t){var r=e.reactions;if(r!==null)for(var i=r.length,n=0;n<i;n++){var s=r[n],l=s.f;l&Q||(J(s,t),l&(R|q)&&(l&V?Ht(s,me):tt(s)))}}function Bt(e){var t=V|Q,r=p!==null&&p.f&V?p:null;return $===null||r!==null&&r.f&q?t|=q:$.f|=Dt,{ctx:M,deps:null,effects:null,equals:Ft,f:t,fn:e,reactions:null,rv:0,v:null,wv:0,parent:r??$}}function Vt(e){var t=e.effects;if(t!==null){e.effects=null;for(var r=0;r<t.length;r+=1)ue(t[r])}}function rn(e){for(var t=e.parent;t!==null;){if(!(t.f&V))return t;t=t.parent}return null}function nn(e){var t,r=$;K(rn(e));try{Vt(e),t=ir(e)}finally{K(r)}return t}function Gt(e){var t=nn(e),r=(le||e.f&q)&&e.deps!==null?me:R;J(e,r),e.equals(t)||(e.v=t,e.wv=rr())}function _t(e){console.warn("https://svelte.dev/e/hydration_mismatch")}let b=!1;function ne(e){b=e}let T;function ie(e){if(e===null)throw _t(),Se;return T=e}function Ke(){return ie(oe(T))}function P(e){if(b){if(oe(T)!==null)throw _t(),Se;T=e}}function sn(){for(var e=0,t=T;;){if(t.nodeType===8){var r=t.data;if(r===At){if(e===0)return t;e-=1}else(r===St||r===Ct)&&(e+=1)}var i=oe(t);t.remove(),t=i}}function se(e,t=null,r){if(typeof e!="object"||e===null||ct in e)return e;const i=It(e);if(i!==jr&&i!==Fr)return e;var n=new Map,s=Lt(e),l=U(0);s&&n.set("length",U(e.length));var u;return new Proxy(e,{defineProperty(o,a,f){(!("value"in f)||f.configurable===!1||f.enumerable===!1||f.writable===!1)&&Kr();var c=n.get(a);return c===void 0?(c=U(f.value),n.set(a,c)):Y(c,se(f.value,u)),!0},deleteProperty(o,a){var f=n.get(a);if(f===void 0)a in o&&n.set(a,U(C));else{if(s&&typeof a=="string"){var c=n.get("length"),v=Number(a);Number.isInteger(v)&&v<c.v&&Y(c,v)}Y(f,C),Ut(l)}return!0},get(o,a,f){var g;if(a===ct)return e;var c=n.get(a),v=a in o;if(c===void 0&&(!v||(g=$e(o,a))!=null&&g.writable)&&(c=U(se(v?o[a]:C,u)),n.set(a,c)),c!==void 0){var _=I(c);return _===C?void 0:_}return Reflect.get(o,a,f)},getOwnPropertyDescriptor(o,a){var f=Reflect.getOwnPropertyDescriptor(o,a);if(f&&"value"in f){var c=n.get(a);c&&(f.value=I(c))}else if(f===void 0){var v=n.get(a),_=v==null?void 0:v.v;if(v!==void 0&&_!==C)return{enumerable:!0,configurable:!0,value:_,writable:!0}}return f},has(o,a){var _;if(a===ct)return!0;var f=n.get(a),c=f!==void 0&&f.v!==C||Reflect.has(o,a);if(f!==void 0||$!==null&&(!c||(_=$e(o,a))!=null&&_.writable)){f===void 0&&(f=U(c?se(o[a],u):C),n.set(a,f));var v=I(f);if(v===C)return!1}return c},set(o,a,f,c){var B;var v=n.get(a),_=a in o;if(s&&a==="length")for(var g=f;g<v.v;g+=1){var d=n.get(g+"");d!==void 0?Y(d,C):g in o&&(d=U(C),n.set(g+"",d))}v===void 0?(!_||(B=$e(o,a))!=null&&B.writable)&&(v=U(void 0),Y(v,se(f,u)),n.set(a,v)):(_=v.v!==C,Y(v,se(f,u)));var k=Reflect.getOwnPropertyDescriptor(o,a);if(k!=null&&k.set&&k.set.call(c,f),!_){if(s&&typeof a=="string"){var j=n.get("length"),x=Number(a);Number.isInteger(x)&&x>=j.v&&Y(j,x+1)}Ut(l)}return!0},ownKeys(o){I(l);var a=Reflect.ownKeys(o).filter(v=>{var _=n.get(v);return _===void 0||_.v!==C});for(var[f,c]of n)c.v!==C&&!(f in o)&&a.push(f);return a},setPrototypeOf(){zr()}})}function Ut(e,t=1){Y(e,e.v+t)}var Wt,Xt,Kt,zt;function dt(){if(Wt===void 0){Wt=window,Xt=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype;Kt=$e(t,"firstChild").get,zt=$e(t,"nextSibling").get,e.__click=void 0,e.__className="",e.__attributes=null,e.__styles=null,e.__e=void 0,Text.prototype.__t=void 0}}function Ce(e=""){return document.createTextNode(e)}function we(e){return Kt.call(e)}function oe(e){return zt.call(e)}function D(e,t){if(!b)return we(e);var r=we(T);return r===null&&(r=T.appendChild(Ce())),ie(r),r}function Jt(e,t){if(!b){var r=we(e);return r instanceof Comment&&r.data===""?oe(r):r}return T}function ye(e,t=1,r=!1){let i=b?T:e;for(var n;t--;)n=i,i=oe(i);if(!b)return i;var s=i==null?void 0:i.nodeType;if(r&&s!==3){var l=Ce();return i===null?n==null||n.after(l):i.before(l),ie(l),l}return ie(i),i}function ln(e){e.textContent=""}const Zt=0,un=1;let ze=!1,Je=Zt,Ae=!1,Pe=null,Ee=!1,ht=!1;function Qt(e){Ee=e}function er(e){ht=e}let fe=[],be=0,ai=[],p=null,W=!1;function X(e){p=e}let $=null;function K(e){$=e}let z=null;function an(e){z=e}let S=null,L=0,ee=null;function on(e){ee=e}let tr=1,Ze=0,le=!1;function rr(){return++tr}function De(e){var c;var t=e.f;if(t&Q)return!0;if(t&me){var r=e.deps,i=(t&q)!==0;if(r!==null){var n,s,l=(t&Ve)!==0,u=i&&$!==null&&!le,o=r.length;if(l||u){var a=e,f=a.parent;for(n=0;n<o;n++)s=r[n],(l||!((c=s==null?void 0:s.reactions)!=null&&c.includes(a)))&&(s.reactions??(s.reactions=[])).push(a);l&&(a.f^=Ve),u&&f!==null&&!(f.f&q)&&(a.f^=q)}for(n=0;n<o;n++)if(s=r[n],De(s)&&Gt(s),s.wv>e.wv)return!0}(!i||$!==null&&!le)&&J(e,R)}return!1}function fn(e,t){for(var r=t;r!==null;){if(r.f&Be)try{r.fn(e);return}catch{r.f^=Be}r=r.parent}throw ze=!1,e}function cn(e){return(e.f&Ge)===0&&(e.parent===null||(e.parent.f&Be)===0)}function Qe(e,t,r,i){if(ze){if(r===null&&(ze=!1),cn(t))throw e;return}r!==null&&(ze=!0);{fn(e,t);return}}function nr(e,t,r=!0){var i=e.reactions;if(i!==null)for(var n=0;n<i.length;n++){var s=i[n];s.f&V?nr(s,t,!1):t===s&&(r?J(s,Q):s.f&R&&J(s,me),tt(s))}}function ir(e){var _;var t=S,r=L,i=ee,n=p,s=le,l=z,u=M,o=W,a=e.f;S=null,L=0,ee=null,p=a&(Z|ge)?null:e,le=(a&q)!==0&&(!Ee||n===null||o),z=null,hr(e.ctx),W=!1,Ze++;try{var f=(0,e.fn)(),c=e.deps;if(S!==null){var v;if(et(e,L),c!==null&&L>0)for(c.length=L+S.length,v=0;v<S.length;v++)c[L+v]=S[v];else e.deps=c=S;if(!le)for(v=L;v<c.length;v++)((_=c[v]).reactions??(_.reactions=[])).push(e)}else c!==null&&L<c.length&&(et(e,L),c.length=L);if(pr()&&ee!==null&&!W&&c!==null&&!(e.f&(V|me|Q)))for(v=0;v<ee.length;v++)nr(ee[v],e);return n!==null&&Ze++,f}finally{S=t,L=r,ee=i,p=n,le=s,z=l,hr(u),W=o}}function vn(e,t){let r=t.reactions;if(r!==null){var i=Lr.call(r,e);if(i!==-1){var n=r.length-1;n===0?r=t.reactions=null:(r[i]=r[n],r.pop())}}r===null&&t.f&V&&(S===null||!S.includes(t))&&(J(t,me),t.f&(q|Ve)||(t.f^=Ve),Vt(t),et(t,0))}function et(e,t){var r=e.deps;if(r!==null)for(var i=t;i<r.length;i++)vn(e,r[i])}function gt(e){var t=e.f;if(!(t&Ge)){J(e,R);var r=$,i=M;$=e;try{t&ot?xn(e):fr(e),or(e);var n=ir(e);e.teardown=typeof n=="function"?n:null,e.wv=tr;var s=e.deps,l;at&&Qr&&e.f&Q}catch(u){Qe(u,e,r,i||e.ctx)}finally{$=r}}}function sr(){if(be>1e3){be=0;try{Wr()}catch(e){if(Pe!==null)Qe(e,Pe,null);else throw e}}be++}function lr(e){var t=e.length;if(t!==0){sr();var r=Ee;Ee=!0;try{for(var i=0;i<t;i++){var n=e[i];n.f&R||(n.f^=R);var s=hn(n);_n(s)}}finally{Ee=r}}}function _n(e){var t=e.length;if(t!==0)for(var r=0;r<t;r++){var i=e[r];if(!(i.f&(Ge|pe)))try{De(i)&&(gt(i),i.deps===null&&i.first===null&&i.nodes_start===null&&(i.teardown===null?cr(i):i.fn=null))}catch(n){Qe(n,i,null,i.ctx)}}}function dn(){if(Ae=!1,be>1001)return;const e=fe;fe=[],lr(e),Ae||(be=0,Pe=null)}function tt(e){Je===Zt&&(Ae||(Ae=!0,queueMicrotask(dn))),Pe=e;for(var t=e;t.parent!==null;){t=t.parent;var r=t.f;if(r&(ge|Z)){if(!(r&R))return;t.f^=R}}fe.push(t)}function hn(e){var t=[],r=e.first;e:for(;r!==null;){var i=r.f,n=(i&Z)!==0,s=n&&(i&R)!==0,l=r.next;if(!s&&!(i&pe)){if(i&Pt)t.push(r);else if(n)r.f^=R;else{var u=p;try{p=r,De(r)&&gt(r)}catch(f){Qe(f,r,null,r.ctx)}finally{p=u}}var o=r.first;if(o!==null){r=o;continue}}if(l===null){let f=r.parent;for(;f!==null;){if(e===f)break e;var a=f.next;if(a!==null){r=a;continue e}f=f.parent}}r=l}return t}function te(e){var t=Je,r=fe;try{sr();const n=[];Je=un,fe=n,Ae=!1,lr(r);var i=e==null?void 0:e();return Yr(),(fe.length>0||n.length>0)&&te(),be=0,Pe=null,i}finally{Je=t,fe=r}}function I(e){var t=e.f,r=(t&V)!==0;if(p!==null&&!W){z!==null&&z.includes(e)&&Jr();var i=p.deps;e.rv<Ze&&(e.rv=Ze,S===null&&i!==null&&i[L]===e?L++:S===null?S=[e]:(!le||!S.includes(e))&&S.push(e))}else if(r&&e.deps===null&&e.effects===null){var n=e,s=n.parent;s!==null&&!(s.f&q)&&(n.f^=q)}return r&&(n=e,De(n)&&Gt(n)),e.v}function gn(e){var t=W;try{return W=!0,e()}finally{W=t}}const mn=-7169;function J(e,t){e.f=e.f&mn|t}function pn(e){$===null&&p===null&&Ur(),p!==null&&p.f&q&&$===null&&Gr(),ht&&Vr()}function $n(e,t){var r=t.last;r===null?t.last=t.first=e:(r.next=e,e.prev=r,t.last=e)}function ce(e,t,r,i=!0){var n=(e&ge)!==0,s=$,l={ctx:M,deps:null,nodes_start:null,nodes_end:null,f:e|Q,first:null,fn:t,last:null,next:null,parent:n?null:s,prev:null,teardown:null,transitions:null,wv:0};if(r){var u=Ee;try{Qt(!0),gt(l),l.f|=Cr}catch(f){throw ue(l),f}finally{Qt(u)}}else t!==null&&tt(l);var o=r&&l.deps===null&&l.first===null&&l.nodes_start===null&&l.teardown===null&&(l.f&(Dt|Be))===0;if(!o&&!n&&i&&(s!==null&&$n(l,s),p!==null&&p.f&V)){var a=p;(a.effects??(a.effects=[])).push(l)}return l}function wn(e){const t=ce(He,null,!1);return J(t,R),t.teardown=e,t}function yn(e){pn();var t=$!==null&&($.f&Z)!==0&&M!==null&&!M.m;if(t){var r=M;(r.e??(r.e=[])).push({fn:e,effect:$,reaction:p})}else{var i=ur(e);return i}}function En(e){const t=ce(ge,e,!0);return()=>{ue(t)}}function bn(e){const t=ce(ge,e,!0);return(r={})=>new Promise(i=>{r.outro?pt(t,()=>{ue(t),i(void 0)}):(ue(t),i(void 0))})}function ur(e){return ce(Pt,e,!1)}function Tn(e){return ce(He,e,!0)}function Le(e,t=[],r=Bt){const i=t.map(r);return ar(()=>e(...i.map(I)))}function ar(e,t=0){return ce(He|ot|t,e,!0)}function mt(e,t=!0){return ce(He|Z,e,!0,t)}function or(e){var t=e.teardown;if(t!==null){const r=ht,i=p;er(!0),X(null);try{t.call(null)}finally{er(r),X(i)}}}function fr(e,t=!1){var r=e.first;for(e.first=e.last=null;r!==null;){var i=r.next;ue(r,t),r=i}}function xn(e){for(var t=e.first;t!==null;){var r=t.next;t.f&Z||ue(t),t=r}}function ue(e,t=!0){var r=!1;if((t||e.f&Ar)&&e.nodes_start!==null){for(var i=e.nodes_start,n=e.nodes_end;i!==null;){var s=i===n?null:oe(i);i.remove(),i=s}r=!0}fr(e,t&&!r),et(e,0),J(e,Ge);var l=e.transitions;if(l!==null)for(const o of l)o.stop();or(e);var u=e.parent;u!==null&&u.first!==null&&cr(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes_start=e.nodes_end=null}function cr(e){var t=e.parent,r=e.prev,i=e.next;r!==null&&(r.next=i),i!==null&&(i.prev=r),t!==null&&(t.first===e&&(t.first=i),t.last===e&&(t.last=r))}function pt(e,t){var r=[];vr(e,r,!0),Nn(r,()=>{ue(e),t&&t()})}function Nn(e,t){var r=e.length;if(r>0){var i=()=>--r||t();for(var n of e)n.out(i)}else t()}function vr(e,t,r){if(!(e.f&pe)){if(e.f^=pe,e.transitions!==null)for(const l of e.transitions)(l.is_global||r)&&t.push(l);for(var i=e.first;i!==null;){var n=i.next,s=(i.f&ft)!==0||(i.f&Z)!==0;vr(i,t,s?r:!1),i=n}}}function _r(e){dr(e,!0)}function dr(e,t){if(e.f&pe){e.f^=pe,e.f&R||(e.f^=R),De(e)&&(J(e,Q),tt(e));for(var r=e.first;r!==null;){var i=r.next,n=(r.f&ft)!==0||(r.f&Z)!==0;dr(r,n?t:!1),r=i}if(e.transitions!==null)for(const s of e.transitions)(s.is_global||t)&&s.in()}}let M=null;function hr(e){M=e}function gr(e,t=!1,r){M={p:M,c:null,e:null,m:!1,s:e,x:null,l:null}}function mr(e){const t=M;if(t!==null){e!==void 0&&(t.x=e);const l=t.e;if(l!==null){var r=$,i=p;t.e=null;try{for(var n=0;n<l.length;n++){var s=l[n];K(s.effect),X(s.reaction),ur(s.fn)}}finally{K(r),X(i)}}M=t.p,t.m=!0}return e||{}}function pr(){return!0}const On=["touchstart","touchmove"];function kn(e){return On.includes(e)}function Rn(e){var t=p,r=$;X(null),K(null);try{return e()}finally{X(t),K(r)}}const $r=new Set,$t=new Set;function Sn(e,t,r,i={}){function n(s){if(i.capture||Ie.call(t,s),!s.cancelBubble)return Rn(()=>r==null?void 0:r.call(this,s))}return e.startsWith("pointer")||e.startsWith("touch")||e==="wheel"?jt(()=>{t.addEventListener(e,n,i)}):t.addEventListener(e,n,i),n}function Cn(e,t,r,i,n){var s={capture:i,passive:n},l=Sn(e,t,r,s);(t===document.body||t===window||t===document)&&wn(()=>{t.removeEventListener(e,l,s)})}function An(e){for(var t=0;t<e.length;t++)$r.add(e[t]);for(var r of $t)r(e)}function Ie(e){var x;var t=this,r=t.ownerDocument,i=e.type,n=((x=e.composedPath)==null?void 0:x.call(e))||[],s=n[0]||e.target,l=0,u=e.__root;if(u){var o=n.indexOf(u);if(o!==-1&&(t===document||t===window)){e.__root=t;return}var a=n.indexOf(t);if(a===-1)return;o<=a&&(l=o)}if(s=n[l]||e.target,s!==t){We(e,"currentTarget",{configurable:!0,get(){return s||r}});var f=p,c=$;X(null),K(null);try{for(var v,_=[];s!==null;){var g=s.assignedSlot||s.parentNode||s.host||null;try{var d=s["__"+i];if(d!==void 0&&!s.disabled)if(Lt(d)){var[k,...j]=d;k.apply(s,[e,...j])}else d.call(s,e)}catch(B){v?_.push(B):v=B}if(e.cancelBubble||g===t||g===null)break;s=g}if(v){for(let B of _)queueMicrotask(()=>{throw B});throw v}}finally{e.__root=t,delete e.currentTarget,X(f),K(c)}}}function Pn(e){var t=document.createElement("template");return t.innerHTML=e,t.content}function Te(e,t){var r=$;r.nodes_start===null&&(r.nodes_start=e,r.nodes_end=t)}function Me(e,t){var r=(t&N)!==0,i=(t&Ye)!==0,n,s=!e.startsWith("<!>");return()=>{if(b)return Te(T,null),T;n===void 0&&(n=Pn(s?e:"<!>"+e),r||(n=we(n)));var l=i||Xt?document.importNode(n,!0):n.cloneNode(!0);if(r){var u=we(l),o=l.lastChild;Te(u,o)}else Te(l,l);return l}}function Dn(e=""){if(!b){var t=Ce(e+"");return Te(t,t),t}var r=T;return r.nodeType!==3&&(r.before(r=Ce()),ie(r)),Te(r,r),r}function ve(e,t){if(b){$.nodes_end=T,Ke();return}e!==null&&e.before(t)}function Ln(e,t){var r=t==null?"":typeof t=="object"?t+"":t;r!==(e.__t??(e.__t=e.nodeValue))&&(e.__t=r,e.nodeValue=r+"")}function wr(e,t){return yr(e,t)}function In(e,t){dt(),t.intro=t.intro??!1;const r=t.target,i=b,n=T;try{for(var s=we(r);s&&(s.nodeType!==8||s.data!==St);)s=oe(s);if(!s)throw Se;ne(!0),ie(s),Ke();const l=yr(e,{...t,anchor:s});if(T===null||T.nodeType!==8||T.data!==At)throw _t(),Se;return ne(!1),l}catch(l){if(l===Se)return t.recover===!1&&Xr(),dt(),ln(r),ne(!1),wr(e,t);throw l}finally{ne(i),ie(n)}}const xe=new Map;function yr(e,{target:t,anchor:r,props:i={},events:n,context:s,intro:l=!0}){dt();var u=new Set,o=c=>{for(var v=0;v<c.length;v++){var _=c[v];if(!u.has(_)){u.add(_);var g=kn(_);t.addEventListener(_,Ie,{passive:g});var d=xe.get(_);d===void 0?(document.addEventListener(_,Ie,{passive:g}),xe.set(_,1)):xe.set(_,d+1)}}};o(Ir($r)),$t.add(o);var a=void 0,f=bn(()=>{var c=r??t.appendChild(Ce());return mt(()=>{if(s){gr({});var v=M;v.c=s}n&&(i.$$events=n),b&&Te(c,null),a=e(c,i)||{},b&&($.nodes_end=T),s&&mr()}),()=>{var g;for(var v of u){t.removeEventListener(v,Ie);var _=xe.get(v);--_===0?(document.removeEventListener(v,Ie),xe.delete(v)):xe.set(v,_)}$t.delete(o),c!==r&&((g=c.parentNode)==null||g.removeChild(c))}});return wt.set(a,f),a}let wt=new WeakMap;function Mn(e,t){const r=wt.get(e);return r?(wt.delete(e),r(t)):Promise.resolve()}function yt(e,t,r=!1){b&&Ke();var i=e,n=null,s=null,l=C,u=r?ft:0,o=!1;const a=(c,v=!0)=>{o=!0,f(v,c)},f=(c,v)=>{if(l===(l=c))return;let _=!1;if(b){const g=i.data===Ct;!!l===g&&(i=sn(),ie(i),ne(!1),_=!0)}l?(n?_r(n):v&&(n=mt(()=>v(i))),s&&pt(s,()=>{s=null})):(s?_r(s):v&&(s=mt(()=>v(i))),n&&pt(n,()=>{n=null})),_&&ne(!0)};ar(()=>{o=!1,t(a),o||f(null,null)},u),b&&(i=T)}function je(e,t,r,i,n){var u;b&&Ke();var s=(u=t.$$slots)==null?void 0:u[r],l=!1;s===!0&&(s=t[r==="default"?"children":r],l=!0),s===void 0?n!==null&&n(e):s(e,l?()=>i:i)}function jn(e,t){jt(()=>{var r=e.getRootNode(),i=r.host?r:r.head??r.ownerDocument.head;if(!i.querySelector("#"+t.hash)){const n=document.createElement("style");n.id=t.hash,n.textContent=t.code,i.appendChild(n)}})}function Et(e,t,r,i){var n=e.__attributes??(e.__attributes={});b&&(n[t]=e.getAttribute(t),t==="src"||t==="srcset"||t==="href"&&e.nodeName==="LINK")||n[t]!==(n[t]=r)&&(t==="style"&&"__styles"in e&&(e.__styles={}),t==="loading"&&(e[Dr]=r),r==null?e.removeAttribute(t):typeof r!="string"&&Er(e).includes(t)?e[t]=r:e.setAttribute(t,r))}function bt(e,t,r){var i=p,n=$;let s=b;b&&ne(!1),X(null),K(null);try{(Tt.has(e.nodeName)||!customElements||customElements.get(e.tagName.toLowerCase())?Er(e).includes(t):r&&typeof r=="object")?e[t]=r:Et(e,t,r==null?r:String(r))}finally{X(i),K(n),s&&ne(!0)}}var Tt=new Map;function Er(e){var t=Tt.get(e.nodeName);if(t)return t;Tt.set(e.nodeName,t=[]);for(var r,i=e,n=Element.prototype;n!==i;){r=Mr(i);for(var s in r)r[s].set&&t.push(s);i=It(i)}return t}function _e(e,t,r,i){var n;n=e[t];var s=i,l=!0,u=!1,o=()=>(u=!0,l&&(l=!1,s=i),s);n===void 0&&i!==void 0&&(n=o());var a;a=()=>{var _=e[t];return _===void 0?o():(l=!0,u=!1,_)};var f=!1,c=Yt(n),v=Bt(()=>{var _=a(),g=I(c);return f?(f=!1,g):c.v=_});return function(_,g){if(arguments.length>0){const d=g?I(v):_;return v.equals(d)||(f=!0,Y(c,d),u&&s!==void 0&&(s=d),gn(()=>I(v))),_}return I(v)}}function Fn(e){return new qn(e)}class qn{constructor(t){kt(this,re);kt(this,H);var s;var r=new Map,i=(l,u)=>{var o=Yt(u);return r.set(l,o),o};const n=new Proxy({...t.props||{},$$events:{}},{get(l,u){return I(r.get(u)??i(u,Reflect.get(l,u)))},has(l,u){return u===Pr?!0:(I(r.get(u)??i(u,Reflect.get(l,u))),Reflect.has(l,u))},set(l,u,o){return Y(r.get(u)??i(u,o),o),Reflect.set(l,u,o)}});Rt(this,H,(t.hydrate?In:wr)(t.component,{target:t.target,anchor:t.anchor,props:n,context:t.context,intro:t.intro??!1,recover:t.recover})),(!((s=t==null?void 0:t.props)!=null&&s.$$host)||t.sync===!1)&&te(),Rt(this,re,n.$$events);for(const l of Object.keys(A(this,H)))l==="$set"||l==="$destroy"||l==="$on"||We(this,l,{get(){return A(this,H)[l]},set(u){A(this,H)[l]=u},enumerable:!0});A(this,H).$set=l=>{Object.assign(n,l)},A(this,H).$destroy=()=>{Mn(A(this,H))}}$set(t){A(this,H).$set(t)}$on(t,r){A(this,re)[t]=A(this,re)[t]||[];const i=(...n)=>r.call(this,...n);return A(this,re)[t].push(i),()=>{A(this,re)[t]=A(this,re)[t].filter(n=>n!==i)}}$destroy(){A(this,H).$destroy()}}re=new WeakMap,H=new WeakMap;let br;typeof HTMLElement=="function"&&(br=class extends HTMLElement{constructor(t,r,i){super();G(this,"$$ctor");G(this,"$$s");G(this,"$$c");G(this,"$$cn",!1);G(this,"$$d",{});G(this,"$$r",!1);G(this,"$$p_d",{});G(this,"$$l",{});G(this,"$$l_u",new Map);G(this,"$$me");this.$$ctor=t,this.$$s=r,i&&this.attachShadow({mode:"open"})}addEventListener(t,r,i){if(this.$$l[t]=this.$$l[t]||[],this.$$l[t].push(r),this.$$c){const n=this.$$c.$on(t,r);this.$$l_u.set(r,n)}super.addEventListener(t,r,i)}removeEventListener(t,r,i){if(super.removeEventListener(t,r,i),this.$$c){const n=this.$$l_u.get(r);n&&(n(),this.$$l_u.delete(r))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let t=function(n){return s=>{const l=document.createElement("slot");n!=="default"&&(l.name=n),ve(s,l)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const r={},i=Yn(this);for(const n of this.$$s)n in i&&(n==="default"&&!this.$$d.children?(this.$$d.children=t(n),r.default=!0):r[n]=t(n));for(const n of this.attributes){const s=this.$$g_p(n.name);s in this.$$d||(this.$$d[s]=rt(s,n.value,this.$$p_d,"toProp"))}for(const n in this.$$p_d)!(n in this.$$d)&&this[n]!==void 0&&(this.$$d[n]=this[n],delete this[n]);this.$$c=Fn({component:this.$$ctor,target:this.shadowRoot||this,props:{...this.$$d,$$slots:r,$$host:this}}),this.$$me=En(()=>{Tn(()=>{var n;this.$$r=!0;for(const s of Ue(this.$$c)){if(!((n=this.$$p_d[s])!=null&&n.reflect))continue;this.$$d[s]=this.$$c[s];const l=rt(s,this.$$d[s],this.$$p_d,"toAttribute");l==null?this.removeAttribute(this.$$p_d[s].attribute||s):this.setAttribute(this.$$p_d[s].attribute||s,l)}this.$$r=!1})});for(const n in this.$$l)for(const s of this.$$l[n]){const l=this.$$c.$on(n,s);this.$$l_u.set(s,l)}this.$$l={}}}attributeChangedCallback(t,r,i){var n;this.$$r||(t=this.$$g_p(t),this.$$d[t]=rt(t,i,this.$$p_d,"toProp"),(n=this.$$c)==null||n.$set({[t]:this.$$d[t]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$me(),this.$$c=void 0)})}$$g_p(t){return Ue(this.$$p_d).find(r=>this.$$p_d[r].attribute===t||!this.$$p_d[r].attribute&&r.toLowerCase()===t)||t}});function rt(e,t,r,i){var s;const n=(s=r[e])==null?void 0:s.type;if(t=n==="Boolean"&&typeof t!="boolean"?t!=null:t,!i||!r[e])return t;if(i==="toAttribute")switch(n){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(n){case"Object":case"Array":return t&&JSON.parse(t);case"Boolean":return t;case"Number":return t!=null?+t:t;default:return t}}function Yn(e){const t={};return e.childNodes.forEach(r=>{t[r.slot||"default"]=!0}),t}function Hn(e,t,r,i,n,s){let l=class extends br{constructor(){super(e,r,n),this.$$p_d=t}static get observedAttributes(){return Ue(t).map(u=>(t[u].attribute||u).toLowerCase())}};return Ue(t).forEach(u=>{We(l.prototype,u,{get(){return this.$$c&&u in this.$$c?this.$$c[u]:this.$$d[u]},set(o){var c;o=rt(u,o,t),this.$$d[u]=o;var a=this.$$c;if(a){var f=(c=$e(a,u))==null?void 0:c.get;f?a[u]=o:a.$set({[u]:o})}}})}),i.forEach(u=>{We(l.prototype,u,{get(){var o;return(o=this.$$c)==null?void 0:o[u]}})}),e.element=l,l}const Bn={version:"0.50.0-alpha.009"};function Vn(e,t){var i,n;let r="";if(e&&(t!=null&&t.length)&&((i=Object.keys(e))!=null&&i.length)&&((n=t==null?void 0:t.filter(s=>Object.keys(e).includes(s.name)))!=null&&n.length))for(const s of Object.keys(e))(t==null?void 0:t.filter(u=>u.name===s&&u.defaultValue!==e[s]))&&(r+=`${s}:${e[s]};`);return r}function Gn(e){var i;const t=((i=e==null?void 0:e.repoName.split("/"))==null?void 0:i[1])||(e==null?void 0:e.repoName);if(!t)throw new Error("wrong componentPath "+(e==null?void 0:e.repoName));if(!(e!=null&&e.version))throw new Error("wrong version "+(e==null?void 0:e.version));const r=(e==null?void 0:e.iifePath)||"main.iife.js";if(!document.getElementById(t+"-script"))try{const n=document.createElement("script");n.id=t+"-script",n.src=`https://cdn.jsdelivr.net/npm/${e.repoName}@${e.version}/${r}`,e!=null&&e.local&&location.href.includes("localhost")&&(n.src=`${e.local}`),document.head.appendChild(n)}catch(n){console.warn(n)}}const xt={vars:[]};function Un(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Ne={},Nt,Tr;function Wn(){if(Tr)return Nt;Tr=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,r=/^\s*/,i=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,n=/^:\s*/,s=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,l=/^[;\s]*/,u=/^\s+|\s+$/g,o=`
2
- `,a="/",f="*",c="",v="comment",_="declaration";Nt=function(d,k){if(typeof d!="string")throw new TypeError("First argument must be a string");if(!d)return[];k=k||{};var j=1,x=1;function B(m){var h=m.match(t);h&&(j+=h.length);var F=m.lastIndexOf(o);x=~F?m.length-F:x+m.length}function Oe(){var m={line:j,column:x};return function(h){return h.position=new nt(m),de(),h}}function nt(m){this.start=m,this.end={line:j,column:x},this.source=k.source}nt.prototype.content=d;function ke(m){var h=new Error(k.source+":"+j+":"+x+": "+m);if(h.reason=m,h.filename=k.source,h.line=j,h.column=x,h.source=d,!k.silent)throw h}function ae(m){var h=m.exec(d);if(h){var F=h[0];return B(F),d=d.slice(F.length),h}}function de(){ae(r)}function it(m){var h;for(m=m||[];h=st();)h!==!1&&m.push(h);return m}function st(){var m=Oe();if(!(a!=d.charAt(0)||f!=d.charAt(1))){for(var h=2;c!=d.charAt(h)&&(f!=d.charAt(h)||a!=d.charAt(h+1));)++h;if(h+=2,c===d.charAt(h-1))return ke("End of comment missing");var F=d.slice(2,h-2);return x+=2,B(F),d=d.slice(h),x+=2,m({type:v,comment:F})}}function lt(){var m=Oe(),h=ae(i);if(h){if(st(),!ae(n))return ke("property missing ':'");var F=ae(s),Ot=m({type:_,property:g(h[0].replace(e,c)),value:F?g(F[0].replace(e,c)):c});return ae(l),Ot}}function ut(){var m=[];it(m);for(var h;h=lt();)h!==!1&&(m.push(h),it(m));return m}return de(),ut()};function g(d){return d?d.replace(u,c):c}return Nt}var xr;function Xn(){if(xr)return Ne;xr=1;var e=Ne&&Ne.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(Ne,"__esModule",{value:!0}),Ne.default=r;var t=e(Wn());function r(i,n){var s=null;if(!i||typeof i!="string")return s;var l=(0,t.default)(i),u=typeof n=="function";return l.forEach(function(o){if(o.type==="declaration"){var a=o.property,f=o.value;u?n(a,f,o):f&&(s=s||{},s[a]=f)}}),s}return Ne}var Kn=Xn();const Nr=Un(Kn),zn=Nr.default||Nr;var Jn=(e,t)=>t(),Zn=Me('<button style="font-size:20px;border:none"><!></button>'),Qn=(e,t)=>t("navbarSlotClick",{side:"left"}),ei=(e,t)=>t("navbarSlotClick",{side:"center"}),ti=Me('<img style="height: 30px;vertical-align: middle;" alt="">'),ri=Me("<!> ",1),ni=Me('<hb-dropdown-simple><span slot="dropdownbutton"><img style="height: 30px;vertical-align: middle;" alt=""></span></hb-dropdown-simple>',2),ii=Me('<div id="left_side" class="navitem svelte-115fe9" part="left-slot"><div style="padding-left: 10px;"><div id="left_side_content" class="side svelte-115fe9"><!> <span style="cursor:pointer"><!></span></div></div></div> <div id="center_side" part="center-slot" class="navitem svelte-115fe9"><div class="side svelte-115fe9" style="margin:auto;max-width: 100%;"><span style="cursor:pointer"><!></span> <!></div></div> <div id="rigth_side" part="right-slot" class="navitem svelte-115fe9"><div id="rigth_side_content" class="svelte-115fe9"><div class="side svelte-115fe9"><!> <!></div></div></div>',1);const si={hash:"svelte-115fe9",code:'@import url("https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap");:host {font-family:"Roboto", sans-serif;width:100%;display:block;background-color:#f1f1f1;width:100%;height:30px;display:block;padding:10px 0px 10px 0px;}.side.svelte-115fe9 {position:relative;z-index:1;max-width:33%;}#left_side.svelte-115fe9 {text-align:left;}#center_side.svelte-115fe9 {text-align:center;}#rigth_side.svelte-115fe9 {text-align:right;}#rigth_side_content.svelte-115fe9 {display:inline-block;padding-right:10px;z-index:3;}#left_side_content.svelte-115fe9 {z-index:3;position:relative;}.navitem.svelte-115fe9 {position:absolute;width:100%;color:white;line-height:30px;font-size:22px;color:black;}'};function Or(e,t){gr(t,!0),jn(e,si);let r=qt(se({})),i=qt(""),n=_e(t,"id",7,""),s=_e(t,"style",7,""),l=_e(t,"noburger",7,void 0),u=_e(t,"usermenu",7,void 0),o=_e(t,"companybrandname",7,""),a=_e(t,"companylogouri",7,""),f=_e(t,"switchopen",7,void 0),c;yn(()=>{s()&&(Y(r,se(zn(s()))),Y(i,se(Vn(I(r),xt==null?void 0:xt.vars)))),!f()||f()==="no"?(f("no"),c=!1):c=!0,typeof u()=="string"&&u(JSON.parse(u()))}),Gn({repoName:"@htmlbricks/hb-dropdown-simple",version:Bn.version});function v(w,O){t.$$host.dispatchEvent(new CustomEvent(w,{detail:O}))}function _(){c=!c,v("navmenuswitch",{isOpen:c})}var g=ii(),d=Jt(g),k=D(d),j=D(k),x=D(j);{var B=w=>{var O=Zn();O.__click=[Jn,_];var he=D(O);je(he,t,"nav-switcher",{},Fe=>{var qe=Dn("☰");ve(Fe,qe)}),P(O),ve(w,O)};yt(x,w=>{l()||w(B)})}var Oe=ye(x,2);Oe.__click=[Qn,v];var nt=D(Oe);je(nt,t,"left-slot",{},null),P(Oe),P(j),P(k),P(d);var ke=ye(d,2),ae=D(ke),de=D(ae);de.__click=[ei,v];var it=D(de);je(it,t,"brand",{},w=>{var O=ri(),he=Jt(O);{var Fe=Re=>{var kr=ti();Le(()=>Et(kr,"src",a())),ve(Re,kr)};yt(he,Re=>{a()&&Re(Fe)})}var qe=ye(he);Le(()=>Ln(qe,` ${o()??""}`)),ve(w,O)}),P(de);var st=ye(de,2);je(st,t,"center-slot",{},null),P(ae),P(ke);var lt=ye(ke,2),ut=D(lt),m=D(ut),h=D(m);je(h,t,"right-slot",{},w=>{});var F=ye(h,2);{var Ot=w=>{var O=ni();Le(()=>bt(O,"style",I(i))),Le(()=>bt(O,"list",JSON.stringify(u().list))),bt(O,"position","right");var he=D(O),Fe=D(he);P(he),P(O),Le(()=>Et(Fe,"src",u().imgUri)),Cn("dropDownClick",O,qe=>{var Re;return v("navbarDropDownClick",(Re=qe.detail)==null?void 0:Re.key)}),ve(w,O)};yt(F,w=>{u()&&w(Ot)})}return P(m),P(ut),P(lt),ve(e,g),mr({get id(){return n()},set id(w=""){n(w),te()},get style(){return s()},set style(w=""){s(w),te()},get noburger(){return l()},set noburger(w=void 0){l(w),te()},get usermenu(){return u()},set usermenu(w=void 0){u(w),te()},get companybrandname(){return o()},set companybrandname(w=""){o(w),te()},get companylogouri(){return a()},set companylogouri(w=""){a(w),te()},get switchopen(){return f()},set switchopen(w=void 0){f(w),te()}})}An(["click"]),customElements.define("hb-navbar",Hn(Or,{id:{},style:{},noburger:{},usermenu:{},companybrandname:{},companylogouri:{},switchopen:{}},["nav-switcher","left-slot","brand","center-slot","right-slot"],[],!0)),y.Component=Or,Object.defineProperty(y,Symbol.toStringTag,{value:"Module"})})(this.navbar=this.navbar||{});
1
+ (function(Pt){"use strict";typeof window<"u"&&((window.__svelte??={}).v??=new Set).add("5");const Fn=1,qn=2,Mt="[",It="[!",Lt="]",we={},T=Symbol(),Yn="http://www.w3.org/1999/xhtml",Dt=!1;var jt=Array.isArray,Hn=Array.prototype.indexOf,Un=Array.from,Be=Object.keys,ye=Object.defineProperty,$e=Object.getOwnPropertyDescriptor,Bn=Object.getOwnPropertyDescriptors,Gn=Object.prototype,Vn=Array.prototype,Ft=Object.getPrototypeOf,qt=Object.isExtensible;function Yt(e){for(var t=0;t<e.length;t++)e[t]()}function Wn(){var e,t,n=new Promise((r,i)=>{e=r,t=i});return{promise:n,resolve:e,reject:t}}const C=2,at=4,ut=8,Ee=16,W=32,J=64,Ht=128,D=256,Ge=512,O=1024,j=2048,Z=4096,Q=8192,le=16384,ft=32768,ot=65536,Ut=1<<17,Xn=1<<18,be=1<<19,zn=1<<20,ct=1<<21,dt=1<<22,ae=1<<23,vt=Symbol("$state"),Kn=Symbol("legacy props"),Jn=Symbol(""),_t=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"},Bt=3,Ve=8;function Zn(){throw new Error("https://svelte.dev/e/await_outside_boundary")}function Qn(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function er(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function tr(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function nr(e){throw new Error("https://svelte.dev/e/effect_orphan")}function rr(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function ir(){throw new Error("https://svelte.dev/e/hydration_failed")}function sr(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function lr(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function ar(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function We(e){console.warn("https://svelte.dev/e/hydration_mismatch")}let E=!1;function ee(e){E=e}let b;function te(e){if(e===null)throw We(),we;return b=e}function Xe(){return te(de(b))}function P(e){if(E){if(de(b)!==null)throw We(),we;b=e}}function ur(){for(var e=0,t=b;;){if(t.nodeType===Ve){var n=t.data;if(n===Lt){if(e===0)return t;e-=1}else(n===Mt||n===It)&&(e+=1)}var r=de(t);t.remove(),t=r}}function fr(e){if(!e||e.nodeType!==Ve)throw We(),we;return e.data}function Gt(e){return e===this.v}function or(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function cr(e){return!or(e,this.v)}let dr=!1,Y=null;function ze(e){Y=e}function Vt(e,t=!1,n){Y={p:Y,c:null,e:null,s:e,x:null,l:null}}function Wt(e){var t=Y,n=t.e;if(n!==null){t.e=null;for(var r of n)dn(r)}return e!==void 0&&(t.x=e),Y=t.p,e??{}}function Xt(){return!0}const vr=new WeakMap;function _r(e){var t=g;if(t===null)return m.f|=ae,e;if((t.f&ft)===0){if((t.f&Ht)===0)throw!t.parent&&e instanceof Error&&zt(e),e;t.b.error(e)}else ht(e,t)}function ht(e,t){for(;t!==null;){if((t.f&Ht)!==0)try{t.b.error(e);return}catch(n){e=n}t=t.parent}throw e instanceof Error&&zt(e),e}function zt(e){const t=vr.get(e);t&&(ye(e,"message",{value:t.message}),ye(e,"stack",{value:t.stack}))}let Ie=[],pt=[];function Kt(){var e=Ie;Ie=[],Yt(e)}function hr(){var e=pt;pt=[],Yt(e)}function pr(e){Ie.length===0&&queueMicrotask(Kt),Ie.push(e)}function gr(){Ie.length>0&&Kt(),pt.length>0&&hr()}function mr(){const e=g.b;return e===null&&Zn(),e}function Jt(e){var t=C|j,n=m!==null&&(m.f&C)!==0?m:null;return g===null||n!==null&&(n.f&D)!==0?t|=D:g.f|=be,{ctx:Y,deps:null,effects:null,equals:Gt,f:t,fn:e,reactions:null,rv:0,v:T,wv:0,parent:n??g,ac:null}}function wr(e,t){let n=g;n===null&&Qn();var r=n.b,i=void 0,s=yt(T),l=null,u=!m;return Mr(()=>{try{var a=e();l&&Promise.resolve(a).catch(()=>{})}catch(d){a=Promise.reject(d)}var f=()=>a;i=l?.then(f,f)??Promise.resolve(a),l=i;var o=x,c=r.is_pending();u&&(r.update_pending_count(1),c||o.increment());const _=(d,v=void 0)=>{l=null,c||o.activate(),v?v!==_t&&(s.f|=ae,$t(s,v)):((s.f&ae)!==0&&(s.f^=ae),$t(s,d)),u&&(r.update_pending_count(-1),c||o.decrement()),en()};if(i.then(_,d=>_(null,d||"unknown")),o)return()=>{queueMicrotask(()=>o.neuter())}}),new Promise(a=>{function f(o){function c(){o===i?a(s):f(i)}o.then(c,c)}f(i)})}function Zt(e){var t=e.effects;if(t!==null){e.effects=null;for(var n=0;n<t.length;n+=1)re(t[n])}}function yr(e){for(var t=e.parent;t!==null;){if((t.f&C)===0)return t;t=t.parent}return null}function gt(e){var t,n=g;B(yr(e));try{Zt(e),t=xn(e)}finally{B(n)}return t}function Qt(e){var t=gt(e);if(e.equals(t)||(e.v=t,e.wv=bn()),!ve){var n=(ie||(e.f&D)!==0)&&e.deps!==null?Z:O;A(e,n)}}function $r(e,t,n){const r=Jt;if(t.length===0){n(e.map(r));return}var i=x,s=g,l=Er(),u=mr();Promise.all(t.map(a=>wr(a))).then(a=>{i?.activate(),l();try{n([...e.map(r),...a])}catch(f){(s.f&le)===0&&ht(f,s)}i?.deactivate(),en()}).catch(a=>{u.error(a)})}function Er(){var e=g,t=m,n=Y,r=x;return function(){B(e),F(t),ze(n),r?.activate()}}function en(){B(null),F(null),ze(null)}const mt=new Set;let x=null,tn=new Set,Ke=[];function nn(){const e=Ke.shift();Ke.length>0&&queueMicrotask(nn),e()}let ue=[],Je=null,wt=!1,Ze=!1;class fe{current=new Map;#t=new Map;#e=new Set;#n=0;#f=null;#o=!1;#i=[];#l=[];#s=[];#r=[];#a=[];#c=[];#d=[];skipped_effects=new Set;process(t){ue=[];for(const i of t)this.#_(i);if(this.#i.length===0&&this.#n===0){this.#v();var n=this.#s,r=this.#r;this.#s=[],this.#r=[],this.#a=[],x=null,sn(n),sn(r),x===null?x=this:mt.delete(this),this.#f?.resolve()}else this.#u(this.#s),this.#u(this.#r),this.#u(this.#a);for(const i of this.#i)Re(i);for(const i of this.#l)Re(i);this.#i=[],this.#l=[]}#_(t){t.f^=O;for(var n=t.first;n!==null;){var r=n.f,i=(r&(W|J))!==0,s=i&&(r&O)!==0,l=s||(r&Q)!==0||this.skipped_effects.has(n);if(!l&&n.fn!==null){if(i)n.f^=O;else if((r&at)!==0)this.#r.push(n);else if((r&O)===0)if((r&dt)!==0){var u=n.b?.is_pending()?this.#l:this.#i;u.push(n)}else et(n)&&((n.f&Ee)!==0&&this.#a.push(n),Re(n));var a=n.first;if(a!==null){n=a;continue}}var f=n.parent;for(n=n.next;n===null&&f!==null;)n=f.next,f=f.parent}}#u(t){for(const n of t)((n.f&j)!==0?this.#c:this.#d).push(n),A(n,O);t.length=0}capture(t,n){this.#t.has(t)||this.#t.set(t,n),this.current.set(t,t.v)}activate(){x=this}deactivate(){x=null;for(const t of tn)if(tn.delete(t),t(),x!==null)break}neuter(){this.#o=!0}flush(){ue.length>0?rn():this.#v(),x===this&&(this.#n===0&&mt.delete(this),this.deactivate())}#v(){if(!this.#o)for(const t of this.#e)t();this.#e.clear()}increment(){this.#n+=1}decrement(){if(this.#n-=1,this.#n===0){for(const t of this.#c)A(t,j),Te(t);for(const t of this.#d)A(t,Z),Te(t);this.#s=[],this.#r=[],this.flush()}else this.deactivate()}add_callback(t){this.#e.add(t)}settled(){return(this.#f??=Wn()).promise}static ensure(){if(x===null){const t=x=new fe;mt.add(x),Ze||fe.enqueue(()=>{x===t&&t.flush()})}return x}static enqueue(t){Ke.length===0&&queueMicrotask(nn),Ke.unshift(t)}}function oe(e){var t=Ze;Ze=!0;try{for(var n;;){if(gr(),ue.length===0&&(x?.flush(),ue.length===0))return Je=null,n;rn()}}finally{Ze=t}}function rn(){var e=Oe;wt=!0;try{var t=0;for(wn(!0);ue.length>0;){var n=fe.ensure();if(t++>1e3){var r,i;br()}n.process(ue),ne.clear()}}finally{wt=!1,wn(e),Je=null}}function br(){try{rr()}catch(e){ht(e,Je)}}let ce=null;function sn(e){var t=e.length;if(t!==0){for(var n=0;n<t;){var r=e[n++];if((r.f&(le|Q))===0&&et(r)&&(ce=[],Re(r),r.deps===null&&r.first===null&&r.nodes_start===null&&(r.teardown===null&&r.ac===null?hn(r):r.fn=null),ce?.length>0)){ne.clear();for(const i of ce)Re(i);ce=[]}}ce=null}}function Te(e){for(var t=Je=e;t.parent!==null;){t=t.parent;var n=t.f;if(wt&&t===g&&(n&Ee)!==0)return;if((n&(J|W))!==0){if((n&O)===0)return;t.f^=O}}ue.push(t)}const ne=new Map;function yt(e,t){var n={f:0,v:e,reactions:null,equals:Gt,rv:0,wv:0};return n}function H(e,t){const n=yt(e);return Yr(n),n}function Tr(e,t=!1,n=!0){const r=yt(e);return t||(r.equals=cr),r}function X(e,t,n=!1){m!==null&&(!_e||(m.f&Ut)!==0)&&Xt()&&(m.f&(C|Ee|dt|Ut))!==0&&!z?.includes(e)&&ar();let r=n?xe(t):t;return $t(e,r)}function $t(e,t){if(!e.equals(t)){var n=e.v;ve?ne.set(e,t):ne.set(e,n),e.v=t;var r=fe.ensure();r.capture(e,n),(e.f&C)!==0&&((e.f&j)!==0&&gt(e),A(e,(e.f&D)===0?O:Z)),e.wv=bn(),ln(e,j),g!==null&&(g.f&O)!==0&&(g.f&(W|J))===0&&(q===null?Hr([e]):q.push(e))}return t}function Et(e){X(e,e.v+1)}function ln(e,t){var n=e.reactions;if(n!==null)for(var r=n.length,i=0;i<r;i++){var s=n[i],l=s.f,u=(l&j)===0;u&&A(s,t),(l&C)!==0?ln(s,Z):u&&((l&Ee)!==0&&ce!==null&&ce.push(s),Te(s))}}function xe(e){if(typeof e!="object"||e===null||vt in e)return e;const t=Ft(e);if(t!==Gn&&t!==Vn)return e;var n=new Map,r=jt(e),i=H(0),s=he,l=u=>{if(he===s)return u();var a=m,f=he;F(null),En(s);var o=u();return F(a),En(f),o};return r&&n.set("length",H(e.length)),new Proxy(e,{defineProperty(u,a,f){(!("value"in f)||f.configurable===!1||f.enumerable===!1||f.writable===!1)&&sr();var o=n.get(a);return o===void 0?o=l(()=>{var c=H(f.value);return n.set(a,c),c}):X(o,f.value,!0),!0},deleteProperty(u,a){var f=n.get(a);if(f===void 0){if(a in u){const o=l(()=>H(T));n.set(a,o),Et(i)}}else X(f,T),Et(i);return!0},get(u,a,f){if(a===vt)return e;var o=n.get(a),c=a in u;if(o===void 0&&(!c||$e(u,a)?.writable)&&(o=l(()=>{var d=xe(c?u[a]:T),v=H(d);return v}),n.set(a,o)),o!==void 0){var _=G(o);return _===T?void 0:_}return Reflect.get(u,a,f)},getOwnPropertyDescriptor(u,a){var f=Reflect.getOwnPropertyDescriptor(u,a);if(f&&"value"in f){var o=n.get(a);o&&(f.value=G(o))}else if(f===void 0){var c=n.get(a),_=c?.v;if(c!==void 0&&_!==T)return{enumerable:!0,configurable:!0,value:_,writable:!0}}return f},has(u,a){if(a===vt)return!0;var f=n.get(a),o=f!==void 0&&f.v!==T||Reflect.has(u,a);if(f!==void 0||g!==null&&(!o||$e(u,a)?.writable)){f===void 0&&(f=l(()=>{var _=o?xe(u[a]):T,d=H(_);return d}),n.set(a,f));var c=G(f);if(c===T)return!1}return o},set(u,a,f,o){var c=n.get(a),_=a in u;if(r&&a==="length")for(var d=f;d<c.v;d+=1){var v=n.get(d+"");v!==void 0?X(v,T):d in u&&(v=l(()=>H(T)),n.set(d+"",v))}if(c===void 0)(!_||$e(u,a)?.writable)&&(c=l(()=>H(void 0)),X(c,xe(f)),n.set(a,c));else{_=c.v!==T;var p=l(()=>xe(f));X(c,p)}var S=Reflect.getOwnPropertyDescriptor(u,a);if(S?.set&&S.set.call(o,f),!_){if(r&&typeof a=="string"){var k=n.get("length"),$=Number(a);Number.isInteger($)&&$>=k.v&&X(k,$+1)}Et(i)}return!0},ownKeys(u){G(i);var a=Reflect.ownKeys(u).filter(c=>{var _=n.get(c);return _===void 0||_.v!==T});for(var[f,o]of n)o.v!==T&&!(f in u)&&a.push(f);return a},setPrototypeOf(){lr()}})}var an,un,fn,on;function bt(){if(an===void 0){an=window,un=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,n=Text.prototype;fn=$e(t,"firstChild").get,on=$e(t,"nextSibling").get,qt(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),qt(n)&&(n.__t=void 0)}}function Se(e=""){return document.createTextNode(e)}function ke(e){return fn.call(e)}function de(e){return on.call(e)}function M(e,t){if(!E)return ke(e);var n=ke(b);return n===null&&(n=b.appendChild(Se())),te(n),n}function cn(e,t){if(!E){var n=ke(e);return n instanceof Comment&&n.data===""?de(n):n}return b}function Ne(e,t=1,n=!1){let r=E?b:e;for(var i;t--;)i=r,r=de(r);if(!E)return r;if(n&&r?.nodeType!==Bt){var s=Se();return r===null?i?.after(s):r.before(s),te(s),s}return te(r),r}function xr(e){e.textContent=""}function Sr(){return!1}function Tt(e){var t=m,n=g;F(null),B(null);try{return e()}finally{F(t),B(n)}}function kr(e){g===null&&m===null&&nr(),m!==null&&(m.f&D)!==0&&g===null&&tr(),ve&&er()}function Nr(e,t){var n=t.last;n===null?t.last=t.first=e:(n.next=e,e.prev=n,t.last=e)}function U(e,t,n,r=!0){var i=g;i!==null&&(i.f&Q)!==0&&(e|=Q);var s={ctx:Y,deps:null,nodes_start:null,nodes_end:null,f:e|j,first:null,fn:t,last:null,next:null,parent:i,b:i&&i.b,prev:null,teardown:null,transitions:null,wv:0,ac:null};if(n)try{Re(s),s.f|=ft}catch(a){throw re(s),a}else t!==null&&Te(s);if(r){var l=s;if(n&&l.deps===null&&l.teardown===null&&l.nodes_start===null&&l.first===l.last&&(l.f&be)===0&&(l=l.first),l!==null&&(l.parent=i,i!==null&&Nr(l,i),m!==null&&(m.f&C)!==0&&(e&J)===0)){var u=m;(u.effects??=[]).push(l)}}return s}function Or(e){const t=U(ut,null,!1);return A(t,O),t.teardown=e,t}function Rr(e){kr();var t=g.f,n=!m&&(t&W)!==0&&(t&ft)===0;if(n){var r=Y;(r.e??=[]).push(e)}else return dn(e)}function dn(e){return U(at|zn,e,!1)}function Ar(e){fe.ensure();const t=U(J|be,e,!0);return()=>{re(t)}}function Cr(e){fe.ensure();const t=U(J|be,e,!0);return(n={})=>new Promise(r=>{n.outro?pn(t,()=>{re(t),r(void 0)}):(re(t),r(void 0))})}function Pr(e){return U(at,e,!1)}function Mr(e){return U(dt|be,e,!0)}function Ir(e,t=0){return U(ut|t,e,!0)}function Qe(e,t=[],n=[]){$r(t,n,r=>{U(ut,()=>e(...r.map(G)),!0)})}function Lr(e,t=0){var n=U(Ee|t,e,!0);return n}function xt(e,t=!0){return U(W|be,e,!0,t)}function vn(e){var t=e.teardown;if(t!==null){const n=ve,r=m;yn(!0),F(null);try{t.call(null)}finally{yn(n),F(r)}}}function _n(e,t=!1){var n=e.first;for(e.first=e.last=null;n!==null;){const i=n.ac;i!==null&&Tt(()=>{i.abort(_t)});var r=n.next;(n.f&J)!==0?n.parent=null:re(n,t),n=r}}function Dr(e){for(var t=e.first;t!==null;){var n=t.next;(t.f&W)===0&&re(t),t=n}}function re(e,t=!0){var n=!1;(t||(e.f&Xn)!==0)&&e.nodes_start!==null&&e.nodes_end!==null&&(jr(e.nodes_start,e.nodes_end),n=!0),_n(e,t&&!n),tt(e,0),A(e,le);var r=e.transitions;if(r!==null)for(const s of r)s.stop();vn(e);var i=e.parent;i!==null&&i.first!==null&&hn(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes_start=e.nodes_end=e.ac=null}function jr(e,t){for(;e!==null;){var n=e===t?null:de(e);e.remove(),e=n}}function hn(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 pn(e,t){var n=[];gn(e,n,!0),Fr(n,()=>{re(e),t&&t()})}function Fr(e,t){var n=e.length;if(n>0){var r=()=>--n||t();for(var i of e)i.out(r)}else t()}function gn(e,t,n){if((e.f&Q)===0){if(e.f^=Q,e.transitions!==null)for(const l of e.transitions)(l.is_global||n)&&t.push(l);for(var r=e.first;r!==null;){var i=r.next,s=(r.f&ot)!==0||(r.f&W)!==0;gn(r,t,s?n:!1),r=i}}}function qr(e){mn(e,!0)}function mn(e,t){if((e.f&Q)!==0){e.f^=Q,(e.f&O)===0&&(A(e,j),Te(e));for(var n=e.first;n!==null;){var r=n.next,i=(n.f&ot)!==0||(n.f&W)!==0;mn(n,i?t:!1),n=r}if(e.transitions!==null)for(const s of e.transitions)(s.is_global||t)&&s.in()}}let Oe=!1;function wn(e){Oe=e}let ve=!1;function yn(e){ve=e}let m=null,_e=!1;function F(e){m=e}let g=null;function B(e){g=e}let z=null;function Yr(e){m!==null&&(z===null?z=[e]:z.push(e))}let R=null,I=0,q=null;function Hr(e){q=e}let $n=1,Le=0,he=Le;function En(e){he=e}let ie=!1;function bn(){return++$n}function et(e){var t=e.f;if((t&j)!==0)return!0;if((t&Z)!==0){var n=e.deps,r=(t&D)!==0;if(n!==null){var i,s,l=(t&Ge)!==0,u=r&&g!==null&&!ie,a=n.length;if((l||u)&&(g===null||(g.f&le)===0)){var f=e,o=f.parent;for(i=0;i<a;i++)s=n[i],(l||!s?.reactions?.includes(f))&&(s.reactions??=[]).push(f);l&&(f.f^=Ge),u&&o!==null&&(o.f&D)===0&&(f.f^=D)}for(i=0;i<a;i++)if(s=n[i],et(s)&&Qt(s),s.wv>e.wv)return!0}(!r||g!==null&&!ie)&&A(e,O)}return!1}function Tn(e,t,n=!0){var r=e.reactions;if(r!==null&&!z?.includes(e))for(var i=0;i<r.length;i++){var s=r[i];(s.f&C)!==0?Tn(s,t,!1):t===s&&(n?A(s,j):(s.f&O)!==0&&A(s,Z),Te(s))}}function xn(e){var t=R,n=I,r=q,i=m,s=ie,l=z,u=Y,a=_e,f=he,o=e.f;R=null,I=0,q=null,ie=(o&D)!==0&&(_e||!Oe||m===null),m=(o&(W|J))===0?e:null,z=null,ze(e.ctx),_e=!1,he=++Le,e.ac!==null&&(Tt(()=>{e.ac.abort(_t)}),e.ac=null);try{e.f|=ct;var c=e.fn,_=c(),d=e.deps;if(R!==null){var v;if(tt(e,I),d!==null&&I>0)for(d.length=I+R.length,v=0;v<R.length;v++)d[I+v]=R[v];else e.deps=d=R;if(!ie||(o&C)!==0&&e.reactions!==null)for(v=I;v<d.length;v++)(d[v].reactions??=[]).push(e)}else d!==null&&I<d.length&&(tt(e,I),d.length=I);if(Xt()&&q!==null&&!_e&&d!==null&&(e.f&(C|Z|j))===0)for(v=0;v<q.length;v++)Tn(q[v],e);return i!==null&&i!==e&&(Le++,q!==null&&(r===null?r=q:r.push(...q))),(e.f&ae)!==0&&(e.f^=ae),_}catch(p){return _r(p)}finally{e.f^=ct,R=t,I=n,q=r,m=i,ie=s,z=l,ze(u),_e=a,he=f}}function Ur(e,t){let n=t.reactions;if(n!==null){var r=Hn.call(n,e);if(r!==-1){var i=n.length-1;i===0?n=t.reactions=null:(n[r]=n[i],n.pop())}}n===null&&(t.f&C)!==0&&(R===null||!R.includes(t))&&(A(t,Z),(t.f&(D|Ge))===0&&(t.f^=Ge),Zt(t),tt(t,0))}function tt(e,t){var n=e.deps;if(n!==null)for(var r=t;r<n.length;r++)Ur(e,n[r])}function Re(e){var t=e.f;if((t&le)===0){A(e,O);var n=g,r=Oe;g=e,Oe=!0;try{(t&Ee)!==0?Dr(e):_n(e),vn(e);var i=xn(e);e.teardown=typeof i=="function"?i:null,e.wv=$n;var s;Dt&&dr&&(e.f&j)!==0&&e.deps}finally{Oe=r,g=n}}}function G(e){var t=e.f,n=(t&C)!==0;if(m!==null&&!_e){var r=g!==null&&(g.f&le)!==0;if(!r&&!z?.includes(e)){var i=m.deps;if((m.f&ct)!==0)e.rv<Le&&(e.rv=Le,R===null&&i!==null&&i[I]===e?I++:R===null?R=[e]:(!ie||!R.includes(e))&&R.push(e));else{(m.deps??=[]).push(e);var s=e.reactions;s===null?e.reactions=[m]:s.includes(m)||s.push(m)}}}else if(n&&e.deps===null&&e.effects===null){var l=e,u=l.parent;u!==null&&(u.f&D)===0&&(l.f^=D)}if(ve){if(ne.has(e))return ne.get(e);if(n){l=e;var a=l.v;return((l.f&O)===0&&l.reactions!==null||Sn(l))&&(a=gt(l)),ne.set(l,a),a}}else n&&(l=e,et(l)&&Qt(l));if((e.f&ae)!==0)throw e.v;return e.v}function Sn(e){if(e.v===T)return!0;if(e.deps===null)return!1;for(const t of e.deps)if(ne.has(t)||(t.f&C)!==0&&Sn(t))return!0;return!1}const Br=-7169;function A(e,t){e.f=e.f&Br|t}const kn=new Set,St=new Set;function Gr(e,t,n,r={}){function i(s){if(r.capture||De.call(t,s),!s.cancelBubble)return Tt(()=>n?.call(this,s))}return e.startsWith("pointer")||e.startsWith("touch")||e==="wheel"?pr(()=>{t.addEventListener(e,i,r)}):t.addEventListener(e,i,r),i}function Vr(e,t,n,r,i){var s={capture:r,passive:i},l=Gr(e,t,n,s);(t===document.body||t===window||t===document||t instanceof HTMLMediaElement)&&Or(()=>{t.removeEventListener(e,l,s)})}function Wr(e){for(var t=0;t<e.length;t++)kn.add(e[t]);for(var n of St)n(e)}let Nn=null;function De(e){var t=this,n=t.ownerDocument,r=e.type,i=e.composedPath?.()||[],s=i[0]||e.target;Nn=e;var l=0,u=Nn===e&&e.__root;if(u){var a=i.indexOf(u);if(a!==-1&&(t===document||t===window)){e.__root=t;return}var f=i.indexOf(t);if(f===-1)return;a<=f&&(l=a)}if(s=i[l]||e.target,s!==t){ye(e,"currentTarget",{configurable:!0,get(){return s||n}});var o=m,c=g;F(null),B(null);try{for(var _,d=[];s!==null;){var v=s.assignedSlot||s.parentNode||s.host||null;try{var p=s["__"+r];if(p!=null&&(!s.disabled||e.target===s))if(jt(p)){var[S,...k]=p;S.apply(s,[e,...k])}else p.call(s,e)}catch($){_?d.push($):_=$}if(e.cancelBubble||v===t||v===null)break;s=v}if(_){for(let $ of d)queueMicrotask(()=>{throw $});throw _}}finally{e.__root=t,delete e.currentTarget,F(o),B(c)}}}function Xr(e){var t=document.createElement("template");return t.innerHTML=e.replaceAll("<!>","<!---->"),t.content}function Ae(e,t){var n=g;n.nodes_start===null&&(n.nodes_start=e,n.nodes_end=t)}function je(e,t){var n=(t&Fn)!==0,r=(t&qn)!==0,i,s=!e.startsWith("<!>");return()=>{if(E)return Ae(b,null),b;i===void 0&&(i=Xr(s?e:"<!>"+e),n||(i=ke(i)));var l=r||un?document.importNode(i,!0):i.cloneNode(!0);if(n){var u=ke(l),a=l.lastChild;Ae(u,a)}else Ae(l,l);return l}}function zr(e=""){if(!E){var t=Se(e+"");return Ae(t,t),t}var n=b;return n.nodeType!==Bt&&(n.before(n=Se()),te(n)),Ae(n,n),n}function pe(e,t){if(E){g.nodes_end=b,Xe();return}e!==null&&e.before(t)}const Kr=["touchstart","touchmove"];function Jr(e){return Kr.includes(e)}function Zr(e,t){var n=t==null?"":typeof t=="object"?t+"":t;n!==(e.__t??=e.nodeValue)&&(e.__t=n,e.nodeValue=n+"")}function On(e,t){return Rn(e,t)}function Qr(e,t){bt(),t.intro=t.intro??!1;const n=t.target,r=E,i=b;try{for(var s=ke(n);s&&(s.nodeType!==Ve||s.data!==Mt);)s=de(s);if(!s)throw we;ee(!0),te(s),Xe();const l=Rn(e,{...t,anchor:s});if(b===null||b.nodeType!==Ve||b.data!==Lt)throw We(),we;return ee(!1),l}catch(l){if(l instanceof Error&&l.message.split(`
2
+ `).some(u=>u.startsWith("https://svelte.dev/e/")))throw l;return l!==we&&console.warn("Failed to hydrate: ",l),t.recover===!1&&ir(),bt(),xr(n),ee(!1),On(e,t)}finally{ee(r),te(i)}}const Ce=new Map;function Rn(e,{target:t,anchor:n,props:r={},events:i,context:s,intro:l=!0}){bt();var u=new Set,a=c=>{for(var _=0;_<c.length;_++){var d=c[_];if(!u.has(d)){u.add(d);var v=Jr(d);t.addEventListener(d,De,{passive:v});var p=Ce.get(d);p===void 0?(document.addEventListener(d,De,{passive:v}),Ce.set(d,1)):Ce.set(d,p+1)}}};a(Un(kn)),St.add(a);var f=void 0,o=Cr(()=>{var c=n??t.appendChild(Se());return xt(()=>{if(s){Vt({});var _=Y;_.c=s}i&&(r.$$events=i),E&&Ae(c,null),f=e(c,r)||{},E&&(g.nodes_end=b),s&&Wt()}),()=>{for(var _ of u){t.removeEventListener(_,De);var d=Ce.get(_);--d===0?(document.removeEventListener(_,De),Ce.delete(_)):Ce.set(_,d)}St.delete(a),c!==n&&c.parentNode?.removeChild(c)}});return kt.set(f,o),f}let kt=new WeakMap;function ei(e,t){const n=kt.get(e);return n?(kt.delete(e),n(t)):Promise.resolve()}function Nt(e,t,n=!1){E&&Xe();var r=e,i=null,s=null,l=T,u=n?ot:0,a=!1;const f=(d,v=!0)=>{a=!0,_(v,d)};var o=null;function c(){o!==null&&(o.lastChild.remove(),r.before(o),o=null);var d=l?i:s,v=l?s:i;d&&qr(d),v&&pn(v,()=>{l?s=null:i=null})}const _=(d,v)=>{if(l===(l=d))return;let p=!1;if(E){const se=fr(r)===It;!!l===se&&(r=ur(),te(r),ee(!1),p=!0)}var S=Sr(),k=r;if(S&&(o=document.createDocumentFragment(),o.append(k=Se())),l?i??=v&&xt(()=>v(k)):s??=v&&xt(()=>v(k)),S){var $=x,K=l?i:s,ge=l?s:i;K&&$.skipped_effects.delete(K),ge&&$.skipped_effects.add(ge),$.add_callback(c)}else c();p&&ee(!0)};Lr(()=>{a=!1,t(f),a||_(null,null)},u),E&&(r=b)}function Fe(e,t,n,r,i){E&&Xe();var s=t.$$slots?.[n],l=!1;s===!0&&(s=t[n==="default"?"children":n],l=!0),s===void 0?i!==null&&i(e):s(e,l?()=>r:r)}function ti(e,t){Pr(()=>{var n=e.getRootNode(),r=n.host?n:n.head??n.ownerDocument.head;if(!r.querySelector("#"+t.hash)){const i=document.createElement("style");i.id=t.hash,i.textContent=t.code,r.appendChild(i)}})}function ni(e,t){return e==null?null:String(e)}function ri(e,t,n,r){var i=e.__style;if(E||i!==t){var s=ni(t);(!E||s!==e.getAttribute("style"))&&(s==null?e.removeAttribute("style"):e.style.cssText=s),e.__style=t}return r}const ii=Symbol("is custom element"),si=Symbol("is html");function Ot(e,t,n,r){var i=li(e);E&&(i[t]=e.getAttribute(t),t==="src"||t==="srcset"||t==="href"&&e.nodeName==="LINK")||i[t]!==(i[t]=n)&&(t==="loading"&&(e[Jn]=n),n==null?e.removeAttribute(t):typeof n!="string"&&Cn(e).includes(t)?e[t]=n:e.setAttribute(t,n))}function An(e,t,n){var r=m,i=g;let s=E;E&&ee(!1),F(null),B(null);try{t!=="style"&&(Rt.has(e.getAttribute("is")||e.nodeName)||!customElements||customElements.get(e.getAttribute("is")||e.tagName.toLowerCase())?Cn(e).includes(t):n&&typeof n=="object")?e[t]=n:Ot(e,t,n==null?n:String(n))}finally{F(r),B(i),s&&ee(!0)}}function li(e){return e.__attributes??={[ii]:e.nodeName.includes("-"),[si]:e.namespaceURI===Yn}}var Rt=new Map;function Cn(e){var t=e.getAttribute("is")||e.nodeName,n=Rt.get(t);if(n)return n;Rt.set(t,n=[]);for(var r,i=e,s=Element.prototype;s!==i;){r=Bn(i);for(var l in r)r[l].set&&n.push(l);i=Ft(i)}return n}function Pe(e,t,n,r){var i=r,s=!0,l=()=>(s&&(s=!1,i=r),i),u;u=e[t],u===void 0&&r!==void 0&&(u=l());var a;a=()=>{var _=e[t];return _===void 0?l():(s=!0,_)};var f=!1,o=Jt(()=>(f=!1,a())),c=g;return(function(_,d){if(arguments.length>0){const v=d?G(o):_;return X(o,v),f=!0,i!==void 0&&(i=v),_}return ve&&f||(c.f&le)!==0?o.v:G(o)})}function ai(e){return new ui(e)}class ui{#t;#e;constructor(t){var n=new Map,r=(s,l)=>{var u=Tr(l,!1,!1);return n.set(s,u),u};const i=new Proxy({...t.props||{},$$events:{}},{get(s,l){return G(n.get(l)??r(l,Reflect.get(s,l)))},has(s,l){return l===Kn?!0:(G(n.get(l)??r(l,Reflect.get(s,l))),Reflect.has(s,l))},set(s,l,u){return X(n.get(l)??r(l,u),u),Reflect.set(s,l,u)}});this.#e=(t.hydrate?Qr:On)(t.component,{target:t.target,anchor:t.anchor,props:i,context:t.context,intro:t.intro??!1,recover:t.recover}),(!t?.props?.$$host||t.sync===!1)&&oe(),this.#t=i.$$events;for(const s of Object.keys(this.#e))s==="$set"||s==="$destroy"||s==="$on"||ye(this,s,{get(){return this.#e[s]},set(l){this.#e[s]=l},enumerable:!0});this.#e.$set=s=>{Object.assign(i,s)},this.#e.$destroy=()=>{ei(this.#e)}}$set(t){this.#e.$set(t)}$on(t,n){this.#t[t]=this.#t[t]||[];const r=(...i)=>n.call(this,...i);return this.#t[t].push(r),()=>{this.#t[t]=this.#t[t].filter(i=>i!==r)}}$destroy(){this.#e.$destroy()}}let Pn;typeof HTMLElement=="function"&&(Pn=class extends HTMLElement{$$ctor;$$s;$$c;$$cn=!1;$$d={};$$r=!1;$$p_d={};$$l={};$$l_u=new Map;$$me;constructor(e,t,n){super(),this.$$ctor=e,this.$$s=t,n&&this.attachShadow({mode:"open"})}addEventListener(e,t,n){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(t),this.$$c){const r=this.$$c.$on(e,t);this.$$l_u.set(t,r)}super.addEventListener(e,t,n)}removeEventListener(e,t,n){if(super.removeEventListener(e,t,n),this.$$c){const r=this.$$l_u.get(t);r&&(r(),this.$$l_u.delete(t))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let e=function(r){return i=>{const s=document.createElement("slot");r!=="default"&&(s.name=r),pe(i,s)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const t={},n=fi(this);for(const r of this.$$s)r in n&&(r==="default"&&!this.$$d.children?(this.$$d.children=e(r),t.default=!0):t[r]=e(r));for(const r of this.attributes){const i=this.$$g_p(r.name);i in this.$$d||(this.$$d[i]=nt(i,r.value,this.$$p_d,"toProp"))}for(const r in this.$$p_d)!(r in this.$$d)&&this[r]!==void 0&&(this.$$d[r]=this[r],delete this[r]);this.$$c=ai({component:this.$$ctor,target:this.shadowRoot||this,props:{...this.$$d,$$slots:t,$$host:this}}),this.$$me=Ar(()=>{Ir(()=>{this.$$r=!0;for(const r of Be(this.$$c)){if(!this.$$p_d[r]?.reflect)continue;this.$$d[r]=this.$$c[r];const i=nt(r,this.$$d[r],this.$$p_d,"toAttribute");i==null?this.removeAttribute(this.$$p_d[r].attribute||r):this.setAttribute(this.$$p_d[r].attribute||r,i)}this.$$r=!1})});for(const r in this.$$l)for(const i of this.$$l[r]){const s=this.$$c.$on(r,i);this.$$l_u.set(i,s)}this.$$l={}}}attributeChangedCallback(e,t,n){this.$$r||(e=this.$$g_p(e),this.$$d[e]=nt(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 Be(this.$$p_d).find(t=>this.$$p_d[t].attribute===e||!this.$$p_d[t].attribute&&t.toLowerCase()===e)||e}});function nt(e,t,n,r){const i=n[e]?.type;if(t=i==="Boolean"&&typeof t!="boolean"?t!=null:t,!r||!n[e])return t;if(r==="toAttribute")switch(i){case"Object":case"Array":return t==null?null:JSON.stringify(t);case"Boolean":return t?"":null;case"Number":return t??null;default:return t}else switch(i){case"Object":case"Array":return t&&JSON.parse(t);case"Boolean":return t;case"Number":return t!=null?+t:t;default:return t}}function fi(e){const t={};return e.childNodes.forEach(n=>{t[n.slot||"default"]=!0}),t}function oi(e,t,n,r,i,s){let l=class extends Pn{constructor(){super(e,n,i),this.$$p_d=t}static get observedAttributes(){return Be(t).map(u=>(t[u].attribute||u).toLowerCase())}};return Be(t).forEach(u=>{ye(l.prototype,u,{get(){return this.$$c&&u in this.$$c?this.$$c[u]:this.$$d[u]},set(a){a=nt(u,a,t),this.$$d[u]=a;var f=this.$$c;if(f){var o=$e(f,u)?.get;o?f[u]=a:f.$set({[u]:a})}}})}),r.forEach(u=>{ye(l.prototype,u,{get(){return this.$$c?.[u]}})}),e.element=l,l}const ci={version:"0.60.0"};function di(e){const t=e?.repoName.split("/")?.[1]||e?.repoName;if(!t)throw new Error("wrong componentPath "+e?.repoName);if(!e?.version)throw new Error("wrong version "+e?.version);const n=e?.iifePath||"main.iife.js";if(!document.getElementById(t+"-script"))try{const r=document.createElement("script");if(r.id=t+"-script",r.src=`https://cdn.jsdelivr.net/npm/${e.repoName}@${e.version}/${n}`,e?.local)r.src=`${e.local}`;else if(location.href.includes("localhost:6006")){const i=t.split("-")[0];r.src=`http://localhost:6006/webcomponents/${t.replace(i+"-","")}/${n}`}document.head.appendChild(r)}catch(r){console.warn(r)}}function vi(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Me={},At,Mn;function _i(){if(Mn)return At;Mn=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,n=/^\s*/,r=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,i=/^:\s*/,s=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,l=/^[;\s]*/,u=/^\s+|\s+$/g,a=`
3
+ `,f="/",o="*",c="",_="comment",d="declaration";At=function(p,S){if(typeof p!="string")throw new TypeError("First argument must be a string");if(!p)return[];S=S||{};var k=1,$=1;function K(w){var h=w.match(t);h&&(k+=h.length);var L=w.lastIndexOf(a);$=~L?w.length-L:$+w.length}function ge(){var w={line:k,column:$};return function(h){return h.position=new se(w),rt(),h}}function se(w){this.start=w,this.end={line:k,column:$},this.source=S.source}se.prototype.content=p;function qe(w){var h=new Error(S.source+":"+k+":"+$+": "+w);if(h.reason=w,h.filename=S.source,h.line=k,h.column=$,h.source=p,!S.silent)throw h}function V(w){var h=w.exec(p);if(h){var L=h[0];return K(L),p=p.slice(L.length),h}}function rt(){V(n)}function it(w){var h;for(w=w||[];h=Ye();)h!==!1&&w.push(h);return w}function Ye(){var w=ge();if(!(f!=p.charAt(0)||o!=p.charAt(1))){for(var h=2;c!=p.charAt(h)&&(o!=p.charAt(h)||f!=p.charAt(h+1));)++h;if(h+=2,c===p.charAt(h-1))return qe("End of comment missing");var L=p.slice(2,h-2);return $+=2,K(L),p=p.slice(h),$+=2,w({type:_,comment:L})}}function st(){var w=ge(),h=V(r);if(h){if(Ye(),!V(i))return qe("property missing ':'");var L=V(s),y=w({type:d,property:v(h[0].replace(e,c)),value:L?v(L[0].replace(e,c)):c});return V(l),y}}function lt(){var w=[];it(w);for(var h;h=st();)h!==!1&&(w.push(h),it(w));return w}return rt(),lt()};function v(p){return p?p.replace(u,c):c}return At}var In;function hi(){if(In)return Me;In=1;var e=Me&&Me.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(Me,"__esModule",{value:!0}),Me.default=n;var t=e(_i());function n(r,i){var s=null;if(!r||typeof r!="string")return s;var l=(0,t.default)(r),u=typeof i=="function";return l.forEach(function(a){if(a.type==="declaration"){var f=a.property,o=a.value;u?i(f,o,a):o&&(s=s||{},s[f]=o)}}),s}return Me}var pi=hi();const Ln=vi(pi);Ln.default;var gi=(e,t)=>t(),mi=je('<button style="font-size:20px;border:none"><!></button>'),wi=(e,t)=>t("navbarSlotClick",{side:"left"}),yi=(e,t)=>t("navbarSlotClick",{side:"center"}),$i=je('<img style="height: 30px;vertical-align: middle;" alt=""/>'),Ei=je("<!> ",1),bi=je('<hb-dropdown-simple><span slot="dropdownbutton"><img style="height: 30px;vertical-align: middle;" alt=""/></span></hb-dropdown-simple>',2),Ti=je('<div id="left_side" class="navitem svelte-115fe9" part="left-slot"><div style="padding-left: 10px;"><div id="left_side_content" class="side svelte-115fe9"><!> <span style="cursor:pointer"><!></span></div></div></div> <div id="center_side" part="center-slot" class="navitem svelte-115fe9"><div class="side svelte-115fe9" style="margin:auto;max-width: 100%;"><span style="cursor:pointer"><!></span> <!></div></div> <div id="rigth_side" part="right-slot" class="navitem svelte-115fe9"><div id="rigth_side_content" class="svelte-115fe9"><div class="side svelte-115fe9"><!> <!></div></div></div>',1);const xi={hash:"svelte-115fe9",code:'@import url("https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap");:host {font-family:"Roboto", sans-serif;width:100%;display:block;background-color:#f1f1f1;width:100%;height:30px;display:block;padding:10px 0px 10px 0px;}.side.svelte-115fe9 {position:relative;z-index:1;max-width:33%;}#left_side.svelte-115fe9 {text-align:left;}#center_side.svelte-115fe9 {text-align:center;}#rigth_side.svelte-115fe9 {text-align:right;}#rigth_side_content.svelte-115fe9 {display:inline-block;padding-right:10px;z-index:3;}#left_side_content.svelte-115fe9 {z-index:3;position:relative;}.navitem.svelte-115fe9 {position:absolute;width:100%;color:white;line-height:30px;font-size:22px;color:black;}'};function Dn(e,t){Vt(t,!0),ti(e,xi);/**
4
+ * Svelte Video Gallery WebComponent
5
+ * =====================
6
+ *
7
+ * @contributors: Dario Caruso <dev@dariocaruso.info> (https://dariocaruso.info)
8
+ *
9
+ * @license: MIT License
10
+ *
11
+ */xe({});let n=H(""),r=Pe(t,"id",7,""),i=Pe(t,"noburger",7,void 0),s=Pe(t,"usermenu",7,void 0),l=Pe(t,"companybrandname",7,""),u=Pe(t,"companylogouri",7,""),a=Pe(t,"switchopen",7,void 0),f;Rr(()=>{!a()||a()==="no"?(a("no"),f=!1):f=!0,typeof s()=="string"&&s(JSON.parse(s()))}),di({repoName:"@htmlbricks/hb-dropdown-simple",version:ci.version});function o(y,N){t.$$host.dispatchEvent(new CustomEvent(y,{detail:N}))}function c(){f=!f,o("navmenuswitch",{isOpen:f})}var _={get id(){return r()},set id(y=""){r(y),oe()},get noburger(){return i()},set noburger(y=void 0){i(y),oe()},get usermenu(){return s()},set usermenu(y=void 0){s(y),oe()},get companybrandname(){return l()},set companybrandname(y=""){l(y),oe()},get companylogouri(){return u()},set companylogouri(y=""){u(y),oe()},get switchopen(){return a()},set switchopen(y=void 0){a(y),oe()}},d=Ti(),v=cn(d),p=M(v),S=M(p),k=M(S);{var $=y=>{var N=mi();N.__click=[gi,c];var me=M(N);Fe(me,t,"nav-switcher",{},He=>{var Ue=zr("☰");pe(He,Ue)}),P(N),pe(y,N)};Nt(k,y=>{i()||y($)})}var K=Ne(k,2);K.__click=[wi,o];var ge=M(K);Fe(ge,t,"left-slot",{},null),P(K),P(S),P(p),P(v);var se=Ne(v,2),qe=M(se),V=M(qe);V.__click=[yi,o];var rt=M(V);Fe(rt,t,"brand",{},y=>{var N=Ei(),me=cn(N);{var He=Ct=>{var jn=$i();Qe(()=>Ot(jn,"src",u())),pe(Ct,jn)};Nt(me,Ct=>{u()&&Ct(He)})}var Ue=Ne(me);Qe(()=>Zr(Ue,` ${l()??""}`)),pe(y,N)}),P(V);var it=Ne(V,2);Fe(it,t,"center-slot",{},null),P(qe),P(se);var Ye=Ne(se,2),st=M(Ye),lt=M(st),w=M(lt);Fe(w,t,"right-slot",{},y=>{});var h=Ne(w,2);{var L=y=>{var N=bi();ri(N,G(n)),Qe(()=>An(N,"list",JSON.stringify(s().list))),An(N,"position","right");var me=M(N),He=M(me);P(me),P(N),Qe(()=>Ot(He,"src",s().imgUri)),Vr("dropDownClick",N,Ue=>o("navbarDropDownClick",Ue.detail?.key)),pe(y,N)};Nt(h,y=>{s()&&y(L)})}return P(lt),P(st),P(Ye),pe(e,d),Wt(_)}Wr(["click"]),customElements.define("hb-navbar",oi(Dn,{id:{},noburger:{},usermenu:{},companybrandname:{},companylogouri:{},switchopen:{}},["nav-switcher","left-slot","brand","center-slot","right-slot"],[],!0)),Pt.Component=Dn,Object.defineProperty(Pt,Symbol.toStringTag,{value:"Module"})})(this.navbar=this.navbar||{});
12
+ //# sourceMappingURL=main.iife.js.map