@htmlbricks/hb-layout 0.61.46 → 0.61.48

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