@htmlbricks/hb-layout 0.61.9 → 0.61.11

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