@htmlbricks/hb-sidenav-button 0.65.23 → 0.66.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/main.iife.js +4 -4
- package/manifest.json +2 -9
- package/package.json +1 -1
package/main.iife.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
(function(Ae){"use strict";typeof window<"u"&&((window.__svelte??={}).v??=new Set).add("5");const zr=2,Re="[",ie="[!",Te="]",ut={},y=Symbol(),se=!1;var Ar=Array.isArray,Rr=Array.prototype.indexOf,Tr=Array.from,Yt=Object.keys,qt=Object.defineProperty,ht=Object.getOwnPropertyDescriptor,Sr=Object.prototype,Br=Array.prototype,Cr=Object.getPrototypeOf,Se=Object.isExtensible;function Nr(t){for(var e=0;e<t.length;e++)t[e]()}function Be(){var t,e,r=new Promise((a,n)=>{t=a,e=n});return{promise:r,resolve:t,reject:e}}const x=2,le=4,be=8,K=16,W=32,at=64,Xt=128,P=512,k=1024,j=2048,J=4096,L=8192,Z=16384,Ut=32768,xt=65536,Ce=1<<17,me=1<<18,mt=1<<19,Gr=1<<20,dt=32768,de=1<<21,pe=1<<22,ot=1<<23,ve=Symbol("$state"),Or=Symbol("legacy props"),yt=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"},ce=3,kt=8;function Pr(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function Dr(t){throw new Error("https://svelte.dev/e/effect_in_teardown")}function Mr(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function Fr(t){throw new Error("https://svelte.dev/e/effect_orphan")}function Ir(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function Lr(){throw new Error("https://svelte.dev/e/hydration_failed")}function Yr(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function qr(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function Xr(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function Ur(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}function Vt(t){console.warn("https://svelte.dev/e/hydration_mismatch")}function Vr(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}let w=!1;function nt(t){w=t}let g;function R(t){if(t===null)throw Vt(),ut;return g=t}function fe(){return R(M(g))}function _t(t){if(w){if(M(g)!==null)throw Vt(),ut;g=t}}function Hr(t=1){if(w){for(var e=t,r=g;e--;)r=M(r);g=r}}function Ne(t=!0){for(var e=0,r=g;;){if(r.nodeType===kt){var a=r.data;if(a===Te){if(e===0)return r;e-=1}else(a===Re||a===ie)&&(e+=1)}var n=M(r);t&&r.remove(),r=n}}function Kr(t){if(!t||t.nodeType!==kt)throw Vt(),ut;return t.data}function Ge(t){return t===this.v}function Wr(t,e){return t!=t?e==e:t!==e||t!==null&&typeof t=="object"||typeof t=="function"}function Jr(t){return!Wr(t,this.v)}let Zr=!1,B=null;function $t(t){B=t}function Oe(t,e=!1,r){B={p:B,i:!1,c:null,e:null,s:t,x:null,l:null}}function Pe(t){var e=B,r=e.e;if(r!==null){e.e=null;for(var a of r)rr(a)}return t!==void 0&&(e.x=t),e.i=!0,B=e.p,t??{}}function De(){return!0}let pt=[];function Me(){var t=pt;pt=[],Nr(t)}function ge(t){if(pt.length===0&&!Bt){var e=pt;queueMicrotask(()=>{e===pt&&Me()})}pt.push(t)}function Qr(){for(;pt.length>0;)Me()}function Fe(t){var e=f;if(e===null)return c.f|=ot,t;if((e.f&Ut)===0){if((e.f&Xt)===0)throw t;e.b.error(t)}else jt(t,e)}function jt(t,e){for(;e!==null;){if((e.f&Xt)!==0)try{e.b.error(t);return}catch(r){t=r}e=e.parent}throw t}const Ht=new Set;let h=null,C=null,N=[],Kt=null,we=!1,Bt=!1;class D{committed=!1;current=new Map;previous=new Map;#e=new Set;#t=new Set;#r=0;#a=0;#l=null;#n=[];#o=[];skipped_effects=new Set;is_fork=!1;is_deferred(){return this.is_fork||this.#a>0}process(e){N=[],this.apply();var r={parent:null,effect:null,effects:[],render_effects:[],block_effects:[]};for(const a of e)this.#i(a,r);this.is_fork||this.#m(),this.is_deferred()?(this.#s(r.effects),this.#s(r.render_effects),this.#s(r.block_effects)):(h=null,Le(r.render_effects),Le(r.effects),this.#l?.resolve()),C=null}#i(e,r){e.f^=k;for(var a=e.first;a!==null;){var n=a.f,o=(n&(W|at))!==0,i=o&&(n&k)!==0,s=i||(n&L)!==0||this.skipped_effects.has(a);if((a.f&Xt)!==0&&a.b?.is_pending()&&(r={parent:r,effect:a,effects:[],render_effects:[],block_effects:[]}),!s&&a.fn!==null){o?a.f^=k:(n&le)!==0?r.effects.push(a):Dt(a)&&((a.f&K)!==0&&r.block_effects.push(a),Mt(a));var l=a.first;if(l!==null){a=l;continue}}var b=a.parent;for(a=a.next;a===null&&b!==null;)b===r.effect&&(this.#s(r.effects),this.#s(r.render_effects),this.#s(r.block_effects),r=r.parent),a=b.next,b=b.parent}}#s(e){for(const r of e)((r.f&j)!==0?this.#n:this.#o).push(r),this.#b(r.deps),_(r,k)}#b(e){if(e!==null)for(const r of e)(r.f&x)===0||(r.f&dt)===0||(r.f^=dt,this.#b(r.deps))}capture(e,r){this.previous.has(e)||this.previous.set(e,r),(e.f&ot)===0&&(this.current.set(e,e.v),C?.set(e,e.v))}activate(){h=this,this.apply()}deactivate(){h===this&&(h=null,C=null)}flush(){if(this.activate(),N.length>0){if(Ie(),h!==null&&h!==this)return}else this.#r===0&&this.process([]);this.deactivate()}discard(){for(const e of this.#t)e(this);this.#t.clear()}#m(){if(this.#a===0){for(const e of this.#e)e();this.#e.clear()}this.#r===0&&this.#d()}#d(){if(Ht.size>1){this.previous.clear();var e=C,r=!0,a={parent:null,effect:null,effects:[],render_effects:[],block_effects:[]};for(const o of Ht){if(o===this){r=!1;continue}const i=[];for(const[l,b]of this.current){if(o.current.has(l))if(r&&b!==o.current.get(l))o.current.set(l,b);else continue;i.push(l)}if(i.length===0)continue;const s=[...o.current.keys()].filter(l=>!this.current.has(l));if(s.length>0){var n=N;N=[];const l=new Set,b=new Map;for(const m of i)Ye(m,s,l,b);if(N.length>0){h=o,o.apply();for(const m of N)o.#i(m,a);o.deactivate()}N=n}}h=null,C=e}this.committed=!0,Ht.delete(this)}increment(e){this.#r+=1,e&&(this.#a+=1)}decrement(e){this.#r-=1,e&&(this.#a-=1),this.revive()}revive(){for(const e of this.#n)_(e,j),vt(e);for(const e of this.#o)_(e,J),vt(e);this.#n=[],this.#o=[],this.flush()}oncommit(e){this.#e.add(e)}ondiscard(e){this.#t.add(e)}settled(){return(this.#l??=Be()).promise}static ensure(){if(h===null){const e=h=new D;Ht.add(h),Bt||D.enqueue(()=>{h===e&&e.flush()})}return h}static enqueue(e){ge(e)}apply(){}}function ue(t){var e=Bt;Bt=!0;try{for(var r;;){if(Qr(),N.length===0&&(h?.flush(),N.length===0))return Kt=null,r;Ie()}}finally{Bt=e}}function Ie(){var t=lt;we=!0;var e=null;try{var r=0;for(te(!0);N.length>0;){var a=D.ensure();if(r++>1e3){var n,o;ta()}a.process(N),it.clear()}}finally{we=!1,te(t),Kt=null}}function ta(){try{Ir()}catch(t){jt(t,Kt)}}let Q=null;function Le(t){var e=t.length;if(e!==0){for(var r=0;r<e;){var a=t[r++];if((a.f&(Z|L))===0&&Dt(a)&&(Q=new Set,Mt(a),a.deps===null&&a.first===null&&a.nodes_start===null&&(a.teardown===null&&a.ac===null?ir(a):a.fn=null),Q?.size>0)){it.clear();for(const n of Q){if((n.f&(Z|L))!==0)continue;const o=[n];let i=n.parent;for(;i!==null;)Q.has(i)&&(Q.delete(i),o.push(i)),i=i.parent;for(let s=o.length-1;s>=0;s--){const l=o[s];(l.f&(Z|L))===0&&Mt(l)}}Q.clear()}}Q=null}}function Ye(t,e,r,a){if(!r.has(t)&&(r.add(t),t.reactions!==null))for(const n of t.reactions){const o=n.f;(o&x)!==0?Ye(n,e,r,a):(o&(pe|K))!==0&&(o&j)===0&&qe(n,e,a)&&(_(n,j),vt(n))}}function qe(t,e,r){const a=r.get(t);if(a!==void 0)return a;if(t.deps!==null)for(const n of t.deps){if(e.includes(n))return!0;if((n.f&x)!==0&&qe(n,e,r))return r.set(n,!0),!0}return r.set(t,!1),!1}function vt(t){for(var e=Kt=t;e.parent!==null;){e=e.parent;var r=e.f;if(we&&e===f&&(r&K)!==0&&(r&me)===0)return;if((r&(at|W))!==0){if((r&k)===0)return;e.f^=k}}N.push(e)}function ea(t){let e=0,r=Ct(0),a;return()=>{Qt()&&(F(r),ar(()=>(e===0&&(a=Aa(()=>t(()=>Nt(r)))),e+=1,()=>{ge(()=>{e-=1,e===0&&(a?.(),a=void 0,Nt(r))})})))}}var ra=xt|mt|Xt;function aa(t,e,r){new oa(t,e,r)}class oa{parent;#e=!1;#t;#r=w?g:null;#a;#l;#n;#o=null;#i=null;#s=null;#b=null;#m=null;#d=0;#p=0;#c=!1;#v=null;#h=ea(()=>(this.#v=Ct(this.#d),()=>{this.#v=null}));constructor(e,r,a){this.#t=e,this.#a=r,this.#l=a,this.parent=f.b,this.#e=!!this.#a.pending,this.#n=ke(()=>{if(f.b=this,w){const o=this.#r;fe(),o.nodeType===kt&&o.data===ie?this.#y():this.#x()}else{var n=this.#w();try{this.#o=et(()=>a(n))}catch(o){this.error(o)}this.#p>0?this.#g():this.#e=!1}return()=>{this.#m?.remove()}},ra),w&&(this.#t=g)}#x(){try{this.#o=et(()=>this.#l(this.#t))}catch(e){this.error(e)}this.#e=!1}#y(){const e=this.#a.pending;e&&(this.#i=et(()=>e(this.#t)),D.enqueue(()=>{var r=this.#w();this.#o=this.#f(()=>(D.ensure(),et(()=>this.#l(r)))),this.#p>0?this.#g():(Ot(this.#i,()=>{this.#i=null}),this.#e=!1)}))}#w(){var e=this.#t;return this.#e&&(this.#m=Y(),this.#t.before(this.#m),e=this.#m),e}is_pending(){return this.#e||!!this.parent&&this.parent.is_pending()}has_pending_snippet(){return!!this.#a.pending}#f(e){var r=f,a=c,n=B;U(this.#n),z(this.#n),$t(this.#n.ctx);try{return e()}catch(o){return Fe(o),null}finally{U(r),z(a),$t(n)}}#g(){const e=this.#a.pending;this.#o!==null&&(this.#b=document.createDocumentFragment(),this.#b.append(this.#m),br(this.#o,this.#b)),this.#i===null&&(this.#i=et(()=>e(this.#t)))}#u(e){if(!this.has_pending_snippet()){this.parent&&this.parent.#u(e);return}this.#p+=e,this.#p===0&&(this.#e=!1,this.#i&&Ot(this.#i,()=>{this.#i=null}),this.#b&&(this.#t.before(this.#b),this.#b=null))}update_pending_count(e){this.#u(e),this.#d+=e,this.#v&&Jt(this.#v,this.#d)}get_effect_pending(){return this.#h(),F(this.#v)}error(e){var r=this.#a.onerror;let a=this.#a.failed;if(this.#c||!r&&!a)throw e;this.#o&&(E(this.#o),this.#o=null),this.#i&&(E(this.#i),this.#i=null),this.#s&&(E(this.#s),this.#s=null),w&&(R(this.#r),Hr(),R(Ne()));var n=!1,o=!1;const i=()=>{if(n){Vr();return}n=!0,o&&Ur(),D.ensure(),this.#d=0,this.#s!==null&&Ot(this.#s,()=>{this.#s=null}),this.#e=this.has_pending_snippet(),this.#o=this.#f(()=>(this.#c=!1,et(()=>this.#l(this.#t)))),this.#p>0?this.#g():this.#e=!1};var s=c;try{z(null),o=!0,r?.(e,i),o=!1}catch(l){jt(l,this.#n&&this.#n.parent)}finally{z(s)}a&&ge(()=>{this.#s=this.#f(()=>{D.ensure(),this.#c=!0;try{return et(()=>{a(this.#t,()=>e,()=>i)})}catch(l){return jt(l,this.#n.parent),null}finally{this.#c=!1}})})}}function na(t,e,r,a){const n=Xe;if(r.length===0&&t.length===0){a(e.map(n));return}var o=h,i=f,s=ia();function l(){Promise.all(r.map(b=>sa(b))).then(b=>{s();try{a([...e.map(n),...b])}catch(m){(i.f&Z)===0&&jt(m,i)}o?.deactivate(),Wt()}).catch(b=>{jt(b,i)})}t.length>0?Promise.all(t).then(()=>{s();try{return l()}finally{o?.deactivate(),Wt()}}):l()}function ia(){var t=f,e=c,r=B,a=h;return function(o=!0){U(t),z(e),$t(r),o&&a?.activate()}}function Wt(){U(null),z(null),$t(null)}function Xe(t){var e=x|j,r=c!==null&&(c.f&x)!==0?c:null;return f!==null&&(f.f|=mt),{ctx:B,deps:null,effects:null,equals:Ge,f:e,fn:t,reactions:null,rv:0,v:y,wv:0,parent:r??f,ac:null}}function sa(t,e){let r=f;r===null&&Pr();var a=r.b,n=void 0,o=Ct(y),i=!c,s=new Map;return xa(()=>{var l=Be();n=l.promise;try{Promise.resolve(t()).then(l.resolve,l.reject).then(()=>{b===h&&b.committed&&b.deactivate(),Wt()})}catch(d){l.reject(d),Wt()}var b=h;if(i){var m=!a.is_pending();a.update_pending_count(1),b.increment(m),s.get(b)?.reject(yt),s.delete(b),s.set(b,l)}const v=(d,p=void 0)=>{if(b.activate(),p)p!==yt&&(o.f|=ot,Jt(o,p));else{(o.f&ot)!==0&&(o.f^=ot),Jt(o,d);for(const[u,I]of s){if(s.delete(u),u===b)break;I.reject(yt)}}i&&(a.update_pending_count(-1),b.decrement(m))};l.promise.then(v,d=>v(null,d||"unknown"))}),fa(()=>{for(const l of s.values())l.reject(yt)}),new Promise(l=>{function b(m){function v(){m===n?l(o):b(n)}m.then(v,v)}b(n)})}function Ue(t){var e=t.effects;if(e!==null){t.effects=null;for(var r=0;r<e.length;r+=1)E(e[r])}}function la(t){for(var e=t.parent;e!==null;){if((e.f&x)===0)return(e.f&Z)===0?e:null;e=e.parent}return null}function he(t){var e,r=f;U(la(t));try{t.f&=~dt,Ue(t),e=fr(t)}finally{U(r)}return e}function Ve(t){var e=he(t);if(t.equals(e)||(h?.is_fork||(t.v=e),t.wv=vr()),!ct)if(C!==null)Qt()&&C.set(t,e);else{var r=(t.f&P)===0?J:k;_(t,r)}}let xe=new Set;const it=new Map;let He=!1;function Ct(t,e){var r={f:0,v:t,reactions:null,equals:Ge,rv:0,wv:0};return r}function st(t,e){const r=Ct(t);return ja(r),r}function ba(t,e=!1,r=!0){const a=Ct(t);return e||(a.equals=Jr),a}function tt(t,e,r=!1){c!==null&&(!X||(c.f&Ce)!==0)&&De()&&(c.f&(x|K|pe|Ce))!==0&&!rt?.includes(t)&&Xr();let a=r?Gt(e):e;return Jt(t,a)}function Jt(t,e){if(!t.equals(e)){var r=t.v;ct?it.set(t,e):it.set(t,r),t.v=e;var a=D.ensure();a.capture(t,r),(t.f&x)!==0&&((t.f&j)!==0&&he(t),_(t,(t.f&P)!==0?k:J)),t.wv=vr(),Ke(t,j),f!==null&&(f.f&k)!==0&&(f.f&(W|at))===0&&(G===null?Ea([t]):G.push(t)),!a.is_fork&&xe.size>0&&!He&&ma()}return e}function ma(){He=!1;var t=lt;te(!0);const e=Array.from(xe);try{for(const r of e)(r.f&k)!==0&&_(r,J),Dt(r)&&Mt(r)}finally{te(t)}xe.clear()}function Nt(t){tt(t,t.v+1)}function Ke(t,e){var r=t.reactions;if(r!==null)for(var a=r.length,n=0;n<a;n++){var o=r[n],i=o.f,s=(i&j)===0;if(s&&_(o,e),(i&x)!==0){var l=o;C?.delete(l),(i&dt)===0&&(i&P&&(o.f|=dt),Ke(l,J))}else s&&((i&K)!==0&&Q!==null&&Q.add(o),vt(o))}}function Gt(t){if(typeof t!="object"||t===null||ve in t)return t;const e=Cr(t);if(e!==Sr&&e!==Br)return t;var r=new Map,a=Ar(t),n=st(0),o=ft,i=s=>{if(ft===o)return s();var l=c,b=ft;z(null),pr(o);var m=s();return z(l),pr(b),m};return a&&r.set("length",st(t.length)),new Proxy(t,{defineProperty(s,l,b){(!("value"in b)||b.configurable===!1||b.enumerable===!1||b.writable===!1)&&Yr();var m=r.get(l);return m===void 0?m=i(()=>{var v=st(b.value);return r.set(l,v),v}):tt(m,b.value,!0),!0},deleteProperty(s,l){var b=r.get(l);if(b===void 0){if(l in s){const m=i(()=>st(y));r.set(l,m),Nt(n)}}else tt(b,y),Nt(n);return!0},get(s,l,b){if(l===ve)return t;var m=r.get(l),v=l in s;if(m===void 0&&(!v||ht(s,l)?.writable)&&(m=i(()=>{var p=Gt(v?s[l]:y),u=st(p);return u}),r.set(l,m)),m!==void 0){var d=F(m);return d===y?void 0:d}return Reflect.get(s,l,b)},getOwnPropertyDescriptor(s,l){var b=Reflect.getOwnPropertyDescriptor(s,l);if(b&&"value"in b){var m=r.get(l);m&&(b.value=F(m))}else if(b===void 0){var v=r.get(l),d=v?.v;if(v!==void 0&&d!==y)return{enumerable:!0,configurable:!0,value:d,writable:!0}}return b},has(s,l){if(l===ve)return!0;var b=r.get(l),m=b!==void 0&&b.v!==y||Reflect.has(s,l);if(b!==void 0||f!==null&&(!m||ht(s,l)?.writable)){b===void 0&&(b=i(()=>{var d=m?Gt(s[l]):y,p=st(d);return p}),r.set(l,b));var v=F(b);if(v===y)return!1}return m},set(s,l,b,m){var v=r.get(l),d=l in s;if(a&&l==="length")for(var p=b;p<v.v;p+=1){var u=r.get(p+"");u!==void 0?tt(u,y):p in s&&(u=i(()=>st(y)),r.set(p+"",u))}if(v===void 0)(!d||ht(s,l)?.writable)&&(v=i(()=>st(void 0)),tt(v,Gt(b)),r.set(l,v));else{d=v.v!==y;var I=i(()=>Gt(b));tt(v,I)}var V=Reflect.getOwnPropertyDescriptor(s,l);if(V?.set&&V.set.call(m,b),!d){if(a&&typeof l=="string"){var ne=r.get("length"),It=Number(l);Number.isInteger(It)&&It>=ne.v&&tt(ne,It+1)}Nt(n)}return!0},ownKeys(s){F(n);var l=Reflect.ownKeys(s).filter(v=>{var d=r.get(v);return d===void 0||d.v!==y});for(var[b,m]of r)m.v!==y&&!(b in s)&&l.push(b);return l},setPrototypeOf(){qr()}})}var We,Je,Ze,Qe;function ye(){if(We===void 0){We=window,Je=/Firefox/.test(navigator.userAgent);var t=Element.prototype,e=Node.prototype,r=Text.prototype;Ze=ht(e,"firstChild").get,Qe=ht(e,"nextSibling").get,Se(t)&&(t.__click=void 0,t.__className=void 0,t.__attributes=null,t.__style=void 0,t.__e=void 0),Se(r)&&(r.__t=void 0)}}function Y(t=""){return document.createTextNode(t)}function Et(t){return Ze.call(t)}function M(t){return Qe.call(t)}function zt(t,e){if(!w)return Et(t);var r=Et(g);if(r===null)r=g.appendChild(Y());else if(e&&r.nodeType!==ce){var a=Y();return r?.before(a),R(a),a}return R(r),r}function Zt(t,e=!1){if(!w){var r=Et(t);return r instanceof Comment&&r.data===""?M(r):r}if(e&&g?.nodeType!==ce){var a=Y();return g?.before(a),R(a),a}return g}function tr(t,e=1,r=!1){let a=w?g:t;for(var n;e--;)n=a,a=M(a);if(!w)return a;if(r&&a?.nodeType!==ce){var o=Y();return a===null?n?.after(o):a.before(o),R(o),o}return R(a),a}function da(t){t.textContent=""}function pa(){return!1}function er(t){var e=c,r=f;z(null),U(null);try{return t()}finally{z(e),U(r)}}function va(t){f===null&&(c===null&&Fr(),Mr()),ct&&Dr()}function ca(t,e){var r=e.last;r===null?e.last=e.first=t:(r.next=t,t.prev=r,e.last=t)}function q(t,e,r){var a=f;a!==null&&(a.f&L)!==0&&(t|=L);var n={ctx:B,deps:null,nodes_start:null,nodes_end:null,f:t|j|P,first:null,fn:e,last:null,next:null,parent:a,b:a&&a.b,prev:null,teardown:null,transitions:null,wv:0,ac:null};if(r)try{Mt(n),n.f|=Ut}catch(s){throw E(n),s}else e!==null&&vt(n);var o=n;if(r&&o.deps===null&&o.teardown===null&&o.nodes_start===null&&o.first===o.last&&(o.f&mt)===0&&(o=o.first,(t&K)!==0&&(t&xt)!==0&&o!==null&&(o.f|=xt)),o!==null&&(o.parent=a,a!==null&&ca(o,a),c!==null&&(c.f&x)!==0&&(t&at)===0)){var i=c;(i.effects??=[]).push(o)}return n}function Qt(){return c!==null&&!X}function fa(t){const e=q(be,null,!1);return _(e,k),e.teardown=t,e}function ga(t){va();var e=f.f,r=!c&&(e&W)!==0&&(e&Ut)===0;if(r){var a=B;(a.e??=[]).push(t)}else return rr(t)}function rr(t){return q(le|Gr,t,!1)}function wa(t){D.ensure();const e=q(at|mt,t,!0);return()=>{E(e)}}function ua(t){D.ensure();const e=q(at|mt,t,!0);return(r={})=>new Promise(a=>{r.outro?Ot(e,()=>{E(e),a(void 0)}):(E(e),a(void 0))})}function ha(t){return q(le,t,!1)}function xa(t){return q(pe|mt,t,!0)}function ar(t,e=0){return q(be|e,t,!0)}function At(t,e=[],r=[],a=[]){na(a,e,r,n=>{q(be,()=>t(...n.map(F)),!0)})}function ke(t,e=0){var r=q(K|e,t,!0);return r}function et(t){return q(W|mt,t,!0)}function or(t){var e=t.teardown;if(e!==null){const r=ct,a=c;mr(!0),z(null);try{e.call(null)}finally{mr(r),z(a)}}}function nr(t,e=!1){var r=t.first;for(t.first=t.last=null;r!==null;){const n=r.ac;n!==null&&er(()=>{n.abort(yt)});var a=r.next;(r.f&at)!==0?r.parent=null:E(r,e),r=a}}function ya(t){for(var e=t.first;e!==null;){var r=e.next;(e.f&W)===0&&E(e),e=r}}function E(t,e=!0){var r=!1;(e||(t.f&me)!==0)&&t.nodes_start!==null&&t.nodes_end!==null&&(ka(t.nodes_start,t.nodes_end),r=!0),nr(t,e&&!r),ee(t,0),_(t,Z);var a=t.transitions;if(a!==null)for(const o of a)o.stop();or(t);var n=t.parent;n!==null&&n.first!==null&&ir(t),t.next=t.prev=t.teardown=t.ctx=t.deps=t.fn=t.nodes_start=t.nodes_end=t.ac=null}function ka(t,e){for(;t!==null;){var r=t===e?null:M(t);t.remove(),t=r}}function ir(t){var e=t.parent,r=t.prev,a=t.next;r!==null&&(r.next=a),a!==null&&(a.prev=r),e!==null&&(e.first===t&&(e.first=a),e.last===t&&(e.last=r))}function Ot(t,e,r=!0){var a=[];sr(t,a,!0),_a(a,()=>{r&&E(t),e&&e()})}function _a(t,e){var r=t.length;if(r>0){var a=()=>--r||e();for(var n of t)n.out(a)}else e()}function sr(t,e,r){if((t.f&L)===0){if(t.f^=L,t.transitions!==null)for(const i of t.transitions)(i.is_global||r)&&e.push(i);for(var a=t.first;a!==null;){var n=a.next,o=(a.f&xt)!==0||(a.f&W)!==0&&(t.f&K)!==0;sr(a,e,o?r:!1),a=n}}}function $a(t){lr(t,!0)}function lr(t,e){if((t.f&L)!==0){t.f^=L,(t.f&k)===0&&(_(t,j),vt(t));for(var r=t.first;r!==null;){var a=r.next,n=(r.f&xt)!==0||(r.f&W)!==0;lr(r,n?e:!1),r=a}if(t.transitions!==null)for(const o of t.transitions)(o.is_global||e)&&o.in()}}function br(t,e){for(var r=t.nodes_start,a=t.nodes_end;r!==null;){var n=r===a?null:M(r);e.append(r),r=n}}let lt=!1;function te(t){lt=t}let ct=!1;function mr(t){ct=t}let c=null,X=!1;function z(t){c=t}let f=null;function U(t){f=t}let rt=null;function ja(t){c!==null&&(rt===null?rt=[t]:rt.push(t))}let $=null,T=0,G=null;function Ea(t){G=t}let dr=1,Pt=0,ft=Pt;function pr(t){ft=t}function vr(){return++dr}function Dt(t){var e=t.f;if((e&j)!==0)return!0;if(e&x&&(t.f&=~dt),(e&J)!==0){var r=t.deps;if(r!==null)for(var a=r.length,n=0;n<a;n++){var o=r[n];if(Dt(o)&&Ve(o),o.wv>t.wv)return!0}(e&P)!==0&&C===null&&_(t,k)}return!1}function cr(t,e,r=!0){var a=t.reactions;if(a!==null&&!rt?.includes(t))for(var n=0;n<a.length;n++){var o=a[n];(o.f&x)!==0?cr(o,e,!1):e===o&&(r?_(o,j):(o.f&k)!==0&&_(o,J),vt(o))}}function fr(t){var e=$,r=T,a=G,n=c,o=rt,i=B,s=X,l=ft,b=t.f;$=null,T=0,G=null,c=(b&(W|at))===0?t:null,rt=null,$t(t.ctx),X=!1,ft=++Pt,t.ac!==null&&(er(()=>{t.ac.abort(yt)}),t.ac=null);try{t.f|=de;var m=t.fn,v=m(),d=t.deps;if($!==null){var p;if(ee(t,T),d!==null&&T>0)for(d.length=T+$.length,p=0;p<$.length;p++)d[T+p]=$[p];else t.deps=d=$;if(lt&&Qt()&&(t.f&P)!==0)for(p=T;p<d.length;p++)(d[p].reactions??=[]).push(t)}else d!==null&&T<d.length&&(ee(t,T),d.length=T);if(De()&&G!==null&&!X&&d!==null&&(t.f&(x|J|j))===0)for(p=0;p<G.length;p++)cr(G[p],t);return n!==null&&n!==t&&(Pt++,G!==null&&(a===null?a=G:a.push(...G))),(t.f&ot)!==0&&(t.f^=ot),v}catch(u){return Fe(u)}finally{t.f^=de,$=e,T=r,G=a,c=n,rt=o,$t(i),X=s,ft=l}}function za(t,e){let r=e.reactions;if(r!==null){var a=Rr.call(r,t);if(a!==-1){var n=r.length-1;n===0?r=e.reactions=null:(r[a]=r[n],r.pop())}}r===null&&(e.f&x)!==0&&($===null||!$.includes(e))&&(_(e,J),(e.f&P)!==0&&(e.f^=P,e.f&=~dt),Ue(e),ee(e,0))}function ee(t,e){var r=t.deps;if(r!==null)for(var a=e;a<r.length;a++)za(t,r[a])}function Mt(t){var e=t.f;if((e&Z)===0){_(t,k);var r=f,a=lt;f=t,lt=!0;try{(e&K)!==0?ya(t):nr(t),or(t);var n=fr(t);t.teardown=typeof n=="function"?n:null,t.wv=dr;var o;se&&Zr&&(t.f&j)!==0&&t.deps}finally{lt=a,f=r}}}function F(t){var e=t.f,r=(e&x)!==0;if(c!==null&&!X){var a=f!==null&&(f.f&Z)!==0;if(!a&&!rt?.includes(t)){var n=c.deps;if((c.f&de)!==0)t.rv<Pt&&(t.rv=Pt,$===null&&n!==null&&n[T]===t?T++:$===null?$=[t]:$.includes(t)||$.push(t));else{(c.deps??=[]).push(t);var o=t.reactions;o===null?t.reactions=[c]:o.includes(c)||o.push(c)}}}if(ct){if(it.has(t))return it.get(t);if(r){var i=t,s=i.v;return((i.f&k)===0&&i.reactions!==null||wr(i))&&(s=he(i)),it.set(i,s),s}}else r&&!C?.has(t)&&(i=t,Dt(i)&&Ve(i),lt&&Qt()&&(i.f&P)===0&&gr(i));if(C?.has(t))return C.get(t);if((t.f&ot)!==0)throw t.v;return t.v}function gr(t){if(t.deps!==null){t.f^=P;for(const e of t.deps)(e.reactions??=[]).push(t),(e.f&x)!==0&&(e.f&P)===0&&gr(e)}}function wr(t){if(t.v===y)return!0;if(t.deps===null)return!1;for(const e of t.deps)if(it.has(e)||(e.f&x)!==0&&wr(e))return!0;return!1}function Aa(t){var e=X;try{return X=!0,t()}finally{X=e}}const Ra=-7169;function _(t,e){t.f=t.f&Ra|e}const ur=new Set,_e=new Set;function Ta(t){for(var e=0;e<t.length;e++)ur.add(t[e]);for(var r of _e)r(t)}let hr=null;function re(t){var e=this,r=e.ownerDocument,a=t.type,n=t.composedPath?.()||[],o=n[0]||t.target;hr=t;var i=0,s=hr===t&&t.__root;if(s){var l=n.indexOf(s);if(l!==-1&&(e===document||e===window)){t.__root=e;return}var b=n.indexOf(e);if(b===-1)return;l<=b&&(i=l)}if(o=n[i]||t.target,o!==e){qt(t,"currentTarget",{configurable:!0,get(){return o||r}});var m=c,v=f;z(null),U(null);try{for(var d,p=[];o!==null;){var u=o.assignedSlot||o.parentNode||o.host||null;try{var I=o["__"+a];I!=null&&(!o.disabled||t.target===o)&&I.call(o,t)}catch(V){d?p.push(V):d=V}if(t.cancelBubble||u===e||u===null)break;o=u}if(d){for(let V of p)queueMicrotask(()=>{throw V});throw d}}finally{t.__root=e,delete t.currentTarget,z(m),U(v)}}}function Sa(t){var e=document.createElement("template");return e.innerHTML=t.replaceAll("<!>","<!---->"),e.content}function Ft(t,e){var r=f;r.nodes_start===null&&(r.nodes_start=t,r.nodes_end=e)}function gt(t,e){var r=(e&zr)!==0,a,n=!t.startsWith("<!>");return()=>{if(w)return Ft(g,null),g;a===void 0&&(a=Sa(n?t:"<!>"+t),a=Et(a));var o=r||Je?document.importNode(a,!0):a.cloneNode(!0);return Ft(o,o),o}}function ae(){if(w)return Ft(g,null),g;var t=document.createDocumentFragment(),e=document.createComment(""),r=Y();return t.append(e,r),Ft(e,r),t}function O(t,e){if(w){var r=f;((r.f&Ut)===0||r.nodes_end===null)&&(r.nodes_end=g),fe();return}t!==null&&t.before(e)}const Ba=["touchstart","touchmove"];function Ca(t){return Ba.includes(t)}function xr(t,e){var r=e==null?"":typeof e=="object"?e+"":e;r!==(t.__t??=t.nodeValue)&&(t.__t=r,t.nodeValue=r+"")}function yr(t,e){return kr(t,e)}function Na(t,e){ye(),e.intro=e.intro??!1;const r=e.target,a=w,n=g;try{for(var o=Et(r);o&&(o.nodeType!==kt||o.data!==Re);)o=M(o);if(!o)throw ut;nt(!0),R(o);const i=kr(t,{...e,anchor:o});return nt(!1),i}catch(i){if(i instanceof Error&&i.message.split(`
|
|
2
|
-
`).some(s=>s.startsWith("https://svelte.dev/e/")))throw i;return i!==ut&&console.warn("Failed to hydrate: ",i),e.recover===!1&&
|
|
1
|
+
(function(Ae){"use strict";typeof window<"u"&&((window.__svelte??={}).v??=new Set).add("5");const za=2,Re="[",ie="[!",Te="]",ut={},y=Symbol(),se=!1;var Aa=Array.isArray,Ra=Array.prototype.indexOf,Ta=Array.from,Yt=Object.keys,qt=Object.defineProperty,ht=Object.getOwnPropertyDescriptor,Ba=Object.prototype,Sa=Array.prototype,Ca=Object.getPrototypeOf,Be=Object.isExtensible;function Na(t){for(var e=0;e<t.length;e++)t[e]()}function Se(){var t,e,a=new Promise((r,o)=>{t=r,e=o});return{promise:a,resolve:t,reject:e}}const x=2,le=4,be=8,K=16,W=32,rt=64,Xt=128,P=512,_=1024,j=2048,J=4096,L=8192,Z=16384,Vt=32768,xt=65536,Ce=1<<17,me=1<<18,mt=1<<19,Ga=1<<20,dt=32768,de=1<<21,pe=1<<22,nt=1<<23,ve=Symbol("$state"),Oa=Symbol("legacy props"),yt=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"},ce=3,_t=8;function Pa(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function Da(t){throw new Error("https://svelte.dev/e/effect_in_teardown")}function Fa(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function Ma(t){throw new Error("https://svelte.dev/e/effect_orphan")}function Ia(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function La(){throw new Error("https://svelte.dev/e/hydration_failed")}function Ya(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function qa(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function Xa(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function Va(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}function Ut(t){console.warn("https://svelte.dev/e/hydration_mismatch")}function Ua(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}let w=!1;function ot(t){w=t}let g;function R(t){if(t===null)throw Ut(),ut;return g=t}function fe(){return R(F(g))}function kt(t){if(w){if(F(g)!==null)throw Ut(),ut;g=t}}function Ha(t=1){if(w){for(var e=t,a=g;e--;)a=F(a);g=a}}function Ne(t=!0){for(var e=0,a=g;;){if(a.nodeType===_t){var r=a.data;if(r===Te){if(e===0)return a;e-=1}else(r===Re||r===ie)&&(e+=1)}var o=F(a);t&&a.remove(),a=o}}function Ka(t){if(!t||t.nodeType!==_t)throw Ut(),ut;return t.data}function Ge(t){return t===this.v}function Wa(t,e){return t!=t?e==e:t!==e||t!==null&&typeof t=="object"||typeof t=="function"}function Ja(t){return!Wa(t,this.v)}let Za=!1,S=null;function $t(t){S=t}function Oe(t,e=!1,a){S={p:S,i:!1,c:null,e:null,s:t,x:null,l:null}}function Pe(t){var e=S,a=e.e;if(a!==null){e.e=null;for(var r of a)aa(r)}return t!==void 0&&(e.x=t),e.i=!0,S=e.p,t??{}}function De(){return!0}let pt=[];function Fe(){var t=pt;pt=[],Na(t)}function ge(t){if(pt.length===0&&!St){var e=pt;queueMicrotask(()=>{e===pt&&Fe()})}pt.push(t)}function Qa(){for(;pt.length>0;)Fe()}function Me(t){var e=f;if(e===null)return c.f|=nt,t;if((e.f&Vt)===0){if((e.f&Xt)===0)throw t;e.b.error(t)}else jt(t,e)}function jt(t,e){for(;e!==null;){if((e.f&Xt)!==0)try{e.b.error(t);return}catch(a){t=a}e=e.parent}throw t}const Ht=new Set;let h=null,C=null,N=[],Kt=null,we=!1,St=!1;class D{committed=!1;current=new Map;previous=new Map;#e=new Set;#t=new Set;#a=0;#r=0;#l=null;#o=[];#n=[];skipped_effects=new Set;is_fork=!1;is_deferred(){return this.is_fork||this.#r>0}process(e){N=[],this.apply();var a={parent:null,effect:null,effects:[],render_effects:[],block_effects:[]};for(const r of e)this.#i(r,a);this.is_fork||this.#m(),this.is_deferred()?(this.#s(a.effects),this.#s(a.render_effects),this.#s(a.block_effects)):(h=null,Le(a.render_effects),Le(a.effects),this.#l?.resolve()),C=null}#i(e,a){e.f^=_;for(var r=e.first;r!==null;){var o=r.f,n=(o&(W|rt))!==0,i=n&&(o&_)!==0,s=i||(o&L)!==0||this.skipped_effects.has(r);if((r.f&Xt)!==0&&r.b?.is_pending()&&(a={parent:a,effect:r,effects:[],render_effects:[],block_effects:[]}),!s&&r.fn!==null){n?r.f^=_:(o&le)!==0?a.effects.push(r):Dt(r)&&((r.f&K)!==0&&a.block_effects.push(r),Ft(r));var l=r.first;if(l!==null){r=l;continue}}var b=r.parent;for(r=r.next;r===null&&b!==null;)b===a.effect&&(this.#s(a.effects),this.#s(a.render_effects),this.#s(a.block_effects),a=a.parent),r=b.next,b=b.parent}}#s(e){for(const a of e)((a.f&j)!==0?this.#o:this.#n).push(a),this.#b(a.deps),k(a,_)}#b(e){if(e!==null)for(const a of e)(a.f&x)===0||(a.f&dt)===0||(a.f^=dt,this.#b(a.deps))}capture(e,a){this.previous.has(e)||this.previous.set(e,a),(e.f&nt)===0&&(this.current.set(e,e.v),C?.set(e,e.v))}activate(){h=this,this.apply()}deactivate(){h===this&&(h=null,C=null)}flush(){if(this.activate(),N.length>0){if(Ie(),h!==null&&h!==this)return}else this.#a===0&&this.process([]);this.deactivate()}discard(){for(const e of this.#t)e(this);this.#t.clear()}#m(){if(this.#r===0){for(const e of this.#e)e();this.#e.clear()}this.#a===0&&this.#d()}#d(){if(Ht.size>1){this.previous.clear();var e=C,a=!0,r={parent:null,effect:null,effects:[],render_effects:[],block_effects:[]};for(const n of Ht){if(n===this){a=!1;continue}const i=[];for(const[l,b]of this.current){if(n.current.has(l))if(a&&b!==n.current.get(l))n.current.set(l,b);else continue;i.push(l)}if(i.length===0)continue;const s=[...n.current.keys()].filter(l=>!this.current.has(l));if(s.length>0){var o=N;N=[];const l=new Set,b=new Map;for(const m of i)Ye(m,s,l,b);if(N.length>0){h=n,n.apply();for(const m of N)n.#i(m,r);n.deactivate()}N=o}}h=null,C=e}this.committed=!0,Ht.delete(this)}increment(e){this.#a+=1,e&&(this.#r+=1)}decrement(e){this.#a-=1,e&&(this.#r-=1),this.revive()}revive(){for(const e of this.#o)k(e,j),vt(e);for(const e of this.#n)k(e,J),vt(e);this.#o=[],this.#n=[],this.flush()}oncommit(e){this.#e.add(e)}ondiscard(e){this.#t.add(e)}settled(){return(this.#l??=Se()).promise}static ensure(){if(h===null){const e=h=new D;Ht.add(h),St||D.enqueue(()=>{h===e&&e.flush()})}return h}static enqueue(e){ge(e)}apply(){}}function ue(t){var e=St;St=!0;try{for(var a;;){if(Qa(),N.length===0&&(h?.flush(),N.length===0))return Kt=null,a;Ie()}}finally{St=e}}function Ie(){var t=lt;we=!0;var e=null;try{var a=0;for(te(!0);N.length>0;){var r=D.ensure();if(a++>1e3){var o,n;tr()}r.process(N),it.clear()}}finally{we=!1,te(t),Kt=null}}function tr(){try{Ia()}catch(t){jt(t,Kt)}}let Q=null;function Le(t){var e=t.length;if(e!==0){for(var a=0;a<e;){var r=t[a++];if((r.f&(Z|L))===0&&Dt(r)&&(Q=new Set,Ft(r),r.deps===null&&r.first===null&&r.nodes_start===null&&(r.teardown===null&&r.ac===null?ia(r):r.fn=null),Q?.size>0)){it.clear();for(const o of Q){if((o.f&(Z|L))!==0)continue;const n=[o];let i=o.parent;for(;i!==null;)Q.has(i)&&(Q.delete(i),n.push(i)),i=i.parent;for(let s=n.length-1;s>=0;s--){const l=n[s];(l.f&(Z|L))===0&&Ft(l)}}Q.clear()}}Q=null}}function Ye(t,e,a,r){if(!a.has(t)&&(a.add(t),t.reactions!==null))for(const o of t.reactions){const n=o.f;(n&x)!==0?Ye(o,e,a,r):(n&(pe|K))!==0&&(n&j)===0&&qe(o,e,r)&&(k(o,j),vt(o))}}function qe(t,e,a){const r=a.get(t);if(r!==void 0)return r;if(t.deps!==null)for(const o of t.deps){if(e.includes(o))return!0;if((o.f&x)!==0&&qe(o,e,a))return a.set(o,!0),!0}return a.set(t,!1),!1}function vt(t){for(var e=Kt=t;e.parent!==null;){e=e.parent;var a=e.f;if(we&&e===f&&(a&K)!==0&&(a&me)===0)return;if((a&(rt|W))!==0){if((a&_)===0)return;e.f^=_}}N.push(e)}function er(t){let e=0,a=Ct(0),r;return()=>{Qt()&&(M(a),ra(()=>(e===0&&(r=Ar(()=>t(()=>Nt(a)))),e+=1,()=>{ge(()=>{e-=1,e===0&&(r?.(),r=void 0,Nt(a))})})))}}var ar=xt|mt|Xt;function rr(t,e,a){new nr(t,e,a)}class nr{parent;#e=!1;#t;#a=w?g:null;#r;#l;#o;#n=null;#i=null;#s=null;#b=null;#m=null;#d=0;#p=0;#c=!1;#v=null;#h=er(()=>(this.#v=Ct(this.#d),()=>{this.#v=null}));constructor(e,a,r){this.#t=e,this.#r=a,this.#l=r,this.parent=f.b,this.#e=!!this.#r.pending,this.#o=_e(()=>{if(f.b=this,w){const n=this.#a;fe(),n.nodeType===_t&&n.data===ie?this.#y():this.#x()}else{var o=this.#w();try{this.#n=et(()=>r(o))}catch(n){this.error(n)}this.#p>0?this.#g():this.#e=!1}return()=>{this.#m?.remove()}},ar),w&&(this.#t=g)}#x(){try{this.#n=et(()=>this.#l(this.#t))}catch(e){this.error(e)}this.#e=!1}#y(){const e=this.#r.pending;e&&(this.#i=et(()=>e(this.#t)),D.enqueue(()=>{var a=this.#w();this.#n=this.#f(()=>(D.ensure(),et(()=>this.#l(a)))),this.#p>0?this.#g():(Ot(this.#i,()=>{this.#i=null}),this.#e=!1)}))}#w(){var e=this.#t;return this.#e&&(this.#m=Y(),this.#t.before(this.#m),e=this.#m),e}is_pending(){return this.#e||!!this.parent&&this.parent.is_pending()}has_pending_snippet(){return!!this.#r.pending}#f(e){var a=f,r=c,o=S;V(this.#o),z(this.#o),$t(this.#o.ctx);try{return e()}catch(n){return Me(n),null}finally{V(a),z(r),$t(o)}}#g(){const e=this.#r.pending;this.#n!==null&&(this.#b=document.createDocumentFragment(),this.#b.append(this.#m),ba(this.#n,this.#b)),this.#i===null&&(this.#i=et(()=>e(this.#t)))}#u(e){if(!this.has_pending_snippet()){this.parent&&this.parent.#u(e);return}this.#p+=e,this.#p===0&&(this.#e=!1,this.#i&&Ot(this.#i,()=>{this.#i=null}),this.#b&&(this.#t.before(this.#b),this.#b=null))}update_pending_count(e){this.#u(e),this.#d+=e,this.#v&&Jt(this.#v,this.#d)}get_effect_pending(){return this.#h(),M(this.#v)}error(e){var a=this.#r.onerror;let r=this.#r.failed;if(this.#c||!a&&!r)throw e;this.#n&&(E(this.#n),this.#n=null),this.#i&&(E(this.#i),this.#i=null),this.#s&&(E(this.#s),this.#s=null),w&&(R(this.#a),Ha(),R(Ne()));var o=!1,n=!1;const i=()=>{if(o){Ua();return}o=!0,n&&Va(),D.ensure(),this.#d=0,this.#s!==null&&Ot(this.#s,()=>{this.#s=null}),this.#e=this.has_pending_snippet(),this.#n=this.#f(()=>(this.#c=!1,et(()=>this.#l(this.#t)))),this.#p>0?this.#g():this.#e=!1};var s=c;try{z(null),n=!0,a?.(e,i),n=!1}catch(l){jt(l,this.#o&&this.#o.parent)}finally{z(s)}r&&ge(()=>{this.#s=this.#f(()=>{D.ensure(),this.#c=!0;try{return et(()=>{r(this.#t,()=>e,()=>i)})}catch(l){return jt(l,this.#o.parent),null}finally{this.#c=!1}})})}}function or(t,e,a,r){const o=Xe;if(a.length===0&&t.length===0){r(e.map(o));return}var n=h,i=f,s=ir();function l(){Promise.all(a.map(b=>sr(b))).then(b=>{s();try{r([...e.map(o),...b])}catch(m){(i.f&Z)===0&&jt(m,i)}n?.deactivate(),Wt()}).catch(b=>{jt(b,i)})}t.length>0?Promise.all(t).then(()=>{s();try{return l()}finally{n?.deactivate(),Wt()}}):l()}function ir(){var t=f,e=c,a=S,r=h;return function(n=!0){V(t),z(e),$t(a),n&&r?.activate()}}function Wt(){V(null),z(null),$t(null)}function Xe(t){var e=x|j,a=c!==null&&(c.f&x)!==0?c:null;return f!==null&&(f.f|=mt),{ctx:S,deps:null,effects:null,equals:Ge,f:e,fn:t,reactions:null,rv:0,v:y,wv:0,parent:a??f,ac:null}}function sr(t,e){let a=f;a===null&&Pa();var r=a.b,o=void 0,n=Ct(y),i=!c,s=new Map;return xr(()=>{var l=Se();o=l.promise;try{Promise.resolve(t()).then(l.resolve,l.reject).then(()=>{b===h&&b.committed&&b.deactivate(),Wt()})}catch(d){l.reject(d),Wt()}var b=h;if(i){var m=!r.is_pending();r.update_pending_count(1),b.increment(m),s.get(b)?.reject(yt),s.delete(b),s.set(b,l)}const v=(d,p=void 0)=>{if(b.activate(),p)p!==yt&&(n.f|=nt,Jt(n,p));else{(n.f&nt)!==0&&(n.f^=nt),Jt(n,d);for(const[u,I]of s){if(s.delete(u),u===b)break;I.reject(yt)}}i&&(r.update_pending_count(-1),b.decrement(m))};l.promise.then(v,d=>v(null,d||"unknown"))}),fr(()=>{for(const l of s.values())l.reject(yt)}),new Promise(l=>{function b(m){function v(){m===o?l(n):b(o)}m.then(v,v)}b(o)})}function Ve(t){var e=t.effects;if(e!==null){t.effects=null;for(var a=0;a<e.length;a+=1)E(e[a])}}function lr(t){for(var e=t.parent;e!==null;){if((e.f&x)===0)return(e.f&Z)===0?e:null;e=e.parent}return null}function he(t){var e,a=f;V(lr(t));try{t.f&=~dt,Ve(t),e=fa(t)}finally{V(a)}return e}function Ue(t){var e=he(t);if(t.equals(e)||(h?.is_fork||(t.v=e),t.wv=va()),!ct)if(C!==null)Qt()&&C.set(t,e);else{var a=(t.f&P)===0?J:_;k(t,a)}}let xe=new Set;const it=new Map;let He=!1;function Ct(t,e){var a={f:0,v:t,reactions:null,equals:Ge,rv:0,wv:0};return a}function st(t,e){const a=Ct(t);return jr(a),a}function br(t,e=!1,a=!0){const r=Ct(t);return e||(r.equals=Ja),r}function tt(t,e,a=!1){c!==null&&(!X||(c.f&Ce)!==0)&&De()&&(c.f&(x|K|pe|Ce))!==0&&!at?.includes(t)&&Xa();let r=a?Gt(e):e;return Jt(t,r)}function Jt(t,e){if(!t.equals(e)){var a=t.v;ct?it.set(t,e):it.set(t,a),t.v=e;var r=D.ensure();r.capture(t,a),(t.f&x)!==0&&((t.f&j)!==0&&he(t),k(t,(t.f&P)!==0?_:J)),t.wv=va(),Ke(t,j),f!==null&&(f.f&_)!==0&&(f.f&(W|rt))===0&&(G===null?Er([t]):G.push(t)),!r.is_fork&&xe.size>0&&!He&&mr()}return e}function mr(){He=!1;var t=lt;te(!0);const e=Array.from(xe);try{for(const a of e)(a.f&_)!==0&&k(a,J),Dt(a)&&Ft(a)}finally{te(t)}xe.clear()}function Nt(t){tt(t,t.v+1)}function Ke(t,e){var a=t.reactions;if(a!==null)for(var r=a.length,o=0;o<r;o++){var n=a[o],i=n.f,s=(i&j)===0;if(s&&k(n,e),(i&x)!==0){var l=n;C?.delete(l),(i&dt)===0&&(i&P&&(n.f|=dt),Ke(l,J))}else s&&((i&K)!==0&&Q!==null&&Q.add(n),vt(n))}}function Gt(t){if(typeof t!="object"||t===null||ve in t)return t;const e=Ca(t);if(e!==Ba&&e!==Sa)return t;var a=new Map,r=Aa(t),o=st(0),n=ft,i=s=>{if(ft===n)return s();var l=c,b=ft;z(null),pa(n);var m=s();return z(l),pa(b),m};return r&&a.set("length",st(t.length)),new Proxy(t,{defineProperty(s,l,b){(!("value"in b)||b.configurable===!1||b.enumerable===!1||b.writable===!1)&&Ya();var m=a.get(l);return m===void 0?m=i(()=>{var v=st(b.value);return a.set(l,v),v}):tt(m,b.value,!0),!0},deleteProperty(s,l){var b=a.get(l);if(b===void 0){if(l in s){const m=i(()=>st(y));a.set(l,m),Nt(o)}}else tt(b,y),Nt(o);return!0},get(s,l,b){if(l===ve)return t;var m=a.get(l),v=l in s;if(m===void 0&&(!v||ht(s,l)?.writable)&&(m=i(()=>{var p=Gt(v?s[l]:y),u=st(p);return u}),a.set(l,m)),m!==void 0){var d=M(m);return d===y?void 0:d}return Reflect.get(s,l,b)},getOwnPropertyDescriptor(s,l){var b=Reflect.getOwnPropertyDescriptor(s,l);if(b&&"value"in b){var m=a.get(l);m&&(b.value=M(m))}else if(b===void 0){var v=a.get(l),d=v?.v;if(v!==void 0&&d!==y)return{enumerable:!0,configurable:!0,value:d,writable:!0}}return b},has(s,l){if(l===ve)return!0;var b=a.get(l),m=b!==void 0&&b.v!==y||Reflect.has(s,l);if(b!==void 0||f!==null&&(!m||ht(s,l)?.writable)){b===void 0&&(b=i(()=>{var d=m?Gt(s[l]):y,p=st(d);return p}),a.set(l,b));var v=M(b);if(v===y)return!1}return m},set(s,l,b,m){var v=a.get(l),d=l in s;if(r&&l==="length")for(var p=b;p<v.v;p+=1){var u=a.get(p+"");u!==void 0?tt(u,y):p in s&&(u=i(()=>st(y)),a.set(p+"",u))}if(v===void 0)(!d||ht(s,l)?.writable)&&(v=i(()=>st(void 0)),tt(v,Gt(b)),a.set(l,v));else{d=v.v!==y;var I=i(()=>Gt(b));tt(v,I)}var U=Reflect.getOwnPropertyDescriptor(s,l);if(U?.set&&U.set.call(m,b),!d){if(r&&typeof l=="string"){var oe=a.get("length"),It=Number(l);Number.isInteger(It)&&It>=oe.v&&tt(oe,It+1)}Nt(o)}return!0},ownKeys(s){M(o);var l=Reflect.ownKeys(s).filter(v=>{var d=a.get(v);return d===void 0||d.v!==y});for(var[b,m]of a)m.v!==y&&!(b in s)&&l.push(b);return l},setPrototypeOf(){qa()}})}var We,Je,Ze,Qe;function ye(){if(We===void 0){We=window,Je=/Firefox/.test(navigator.userAgent);var t=Element.prototype,e=Node.prototype,a=Text.prototype;Ze=ht(e,"firstChild").get,Qe=ht(e,"nextSibling").get,Be(t)&&(t.__click=void 0,t.__className=void 0,t.__attributes=null,t.__style=void 0,t.__e=void 0),Be(a)&&(a.__t=void 0)}}function Y(t=""){return document.createTextNode(t)}function Et(t){return Ze.call(t)}function F(t){return Qe.call(t)}function zt(t,e){if(!w)return Et(t);var a=Et(g);if(a===null)a=g.appendChild(Y());else if(e&&a.nodeType!==ce){var r=Y();return a?.before(r),R(r),r}return R(a),a}function Zt(t,e=!1){if(!w){var a=Et(t);return a instanceof Comment&&a.data===""?F(a):a}if(e&&g?.nodeType!==ce){var r=Y();return g?.before(r),R(r),r}return g}function ta(t,e=1,a=!1){let r=w?g:t;for(var o;e--;)o=r,r=F(r);if(!w)return r;if(a&&r?.nodeType!==ce){var n=Y();return r===null?o?.after(n):r.before(n),R(n),n}return R(r),r}function dr(t){t.textContent=""}function pr(){return!1}function ea(t){var e=c,a=f;z(null),V(null);try{return t()}finally{z(e),V(a)}}function vr(t){f===null&&(c===null&&Ma(),Fa()),ct&&Da()}function cr(t,e){var a=e.last;a===null?e.last=e.first=t:(a.next=t,t.prev=a,e.last=t)}function q(t,e,a){var r=f;r!==null&&(r.f&L)!==0&&(t|=L);var o={ctx:S,deps:null,nodes_start:null,nodes_end:null,f:t|j|P,first:null,fn:e,last:null,next:null,parent:r,b:r&&r.b,prev:null,teardown:null,transitions:null,wv:0,ac:null};if(a)try{Ft(o),o.f|=Vt}catch(s){throw E(o),s}else e!==null&&vt(o);var n=o;if(a&&n.deps===null&&n.teardown===null&&n.nodes_start===null&&n.first===n.last&&(n.f&mt)===0&&(n=n.first,(t&K)!==0&&(t&xt)!==0&&n!==null&&(n.f|=xt)),n!==null&&(n.parent=r,r!==null&&cr(n,r),c!==null&&(c.f&x)!==0&&(t&rt)===0)){var i=c;(i.effects??=[]).push(n)}return o}function Qt(){return c!==null&&!X}function fr(t){const e=q(be,null,!1);return k(e,_),e.teardown=t,e}function gr(t){vr();var e=f.f,a=!c&&(e&W)!==0&&(e&Vt)===0;if(a){var r=S;(r.e??=[]).push(t)}else return aa(t)}function aa(t){return q(le|Ga,t,!1)}function wr(t){D.ensure();const e=q(rt|mt,t,!0);return()=>{E(e)}}function ur(t){D.ensure();const e=q(rt|mt,t,!0);return(a={})=>new Promise(r=>{a.outro?Ot(e,()=>{E(e),r(void 0)}):(E(e),r(void 0))})}function hr(t){return q(le,t,!1)}function xr(t){return q(pe|mt,t,!0)}function ra(t,e=0){return q(be|e,t,!0)}function At(t,e=[],a=[],r=[]){or(r,e,a,o=>{q(be,()=>t(...o.map(M)),!0)})}function _e(t,e=0){var a=q(K|e,t,!0);return a}function et(t){return q(W|mt,t,!0)}function na(t){var e=t.teardown;if(e!==null){const a=ct,r=c;ma(!0),z(null);try{e.call(null)}finally{ma(a),z(r)}}}function oa(t,e=!1){var a=t.first;for(t.first=t.last=null;a!==null;){const o=a.ac;o!==null&&ea(()=>{o.abort(yt)});var r=a.next;(a.f&rt)!==0?a.parent=null:E(a,e),a=r}}function yr(t){for(var e=t.first;e!==null;){var a=e.next;(e.f&W)===0&&E(e),e=a}}function E(t,e=!0){var a=!1;(e||(t.f&me)!==0)&&t.nodes_start!==null&&t.nodes_end!==null&&(_r(t.nodes_start,t.nodes_end),a=!0),oa(t,e&&!a),ee(t,0),k(t,Z);var r=t.transitions;if(r!==null)for(const n of r)n.stop();na(t);var o=t.parent;o!==null&&o.first!==null&&ia(t),t.next=t.prev=t.teardown=t.ctx=t.deps=t.fn=t.nodes_start=t.nodes_end=t.ac=null}function _r(t,e){for(;t!==null;){var a=t===e?null:F(t);t.remove(),t=a}}function ia(t){var e=t.parent,a=t.prev,r=t.next;a!==null&&(a.next=r),r!==null&&(r.prev=a),e!==null&&(e.first===t&&(e.first=r),e.last===t&&(e.last=a))}function Ot(t,e,a=!0){var r=[];sa(t,r,!0),kr(r,()=>{a&&E(t),e&&e()})}function kr(t,e){var a=t.length;if(a>0){var r=()=>--a||e();for(var o of t)o.out(r)}else e()}function sa(t,e,a){if((t.f&L)===0){if(t.f^=L,t.transitions!==null)for(const i of t.transitions)(i.is_global||a)&&e.push(i);for(var r=t.first;r!==null;){var o=r.next,n=(r.f&xt)!==0||(r.f&W)!==0&&(t.f&K)!==0;sa(r,e,n?a:!1),r=o}}}function $r(t){la(t,!0)}function la(t,e){if((t.f&L)!==0){t.f^=L,(t.f&_)===0&&(k(t,j),vt(t));for(var a=t.first;a!==null;){var r=a.next,o=(a.f&xt)!==0||(a.f&W)!==0;la(a,o?e:!1),a=r}if(t.transitions!==null)for(const n of t.transitions)(n.is_global||e)&&n.in()}}function ba(t,e){for(var a=t.nodes_start,r=t.nodes_end;a!==null;){var o=a===r?null:F(a);e.append(a),a=o}}let lt=!1;function te(t){lt=t}let ct=!1;function ma(t){ct=t}let c=null,X=!1;function z(t){c=t}let f=null;function V(t){f=t}let at=null;function jr(t){c!==null&&(at===null?at=[t]:at.push(t))}let $=null,T=0,G=null;function Er(t){G=t}let da=1,Pt=0,ft=Pt;function pa(t){ft=t}function va(){return++da}function Dt(t){var e=t.f;if((e&j)!==0)return!0;if(e&x&&(t.f&=~dt),(e&J)!==0){var a=t.deps;if(a!==null)for(var r=a.length,o=0;o<r;o++){var n=a[o];if(Dt(n)&&Ue(n),n.wv>t.wv)return!0}(e&P)!==0&&C===null&&k(t,_)}return!1}function ca(t,e,a=!0){var r=t.reactions;if(r!==null&&!at?.includes(t))for(var o=0;o<r.length;o++){var n=r[o];(n.f&x)!==0?ca(n,e,!1):e===n&&(a?k(n,j):(n.f&_)!==0&&k(n,J),vt(n))}}function fa(t){var e=$,a=T,r=G,o=c,n=at,i=S,s=X,l=ft,b=t.f;$=null,T=0,G=null,c=(b&(W|rt))===0?t:null,at=null,$t(t.ctx),X=!1,ft=++Pt,t.ac!==null&&(ea(()=>{t.ac.abort(yt)}),t.ac=null);try{t.f|=de;var m=t.fn,v=m(),d=t.deps;if($!==null){var p;if(ee(t,T),d!==null&&T>0)for(d.length=T+$.length,p=0;p<$.length;p++)d[T+p]=$[p];else t.deps=d=$;if(lt&&Qt()&&(t.f&P)!==0)for(p=T;p<d.length;p++)(d[p].reactions??=[]).push(t)}else d!==null&&T<d.length&&(ee(t,T),d.length=T);if(De()&&G!==null&&!X&&d!==null&&(t.f&(x|J|j))===0)for(p=0;p<G.length;p++)ca(G[p],t);return o!==null&&o!==t&&(Pt++,G!==null&&(r===null?r=G:r.push(...G))),(t.f&nt)!==0&&(t.f^=nt),v}catch(u){return Me(u)}finally{t.f^=de,$=e,T=a,G=r,c=o,at=n,$t(i),X=s,ft=l}}function zr(t,e){let a=e.reactions;if(a!==null){var r=Ra.call(a,t);if(r!==-1){var o=a.length-1;o===0?a=e.reactions=null:(a[r]=a[o],a.pop())}}a===null&&(e.f&x)!==0&&($===null||!$.includes(e))&&(k(e,J),(e.f&P)!==0&&(e.f^=P,e.f&=~dt),Ve(e),ee(e,0))}function ee(t,e){var a=t.deps;if(a!==null)for(var r=e;r<a.length;r++)zr(t,a[r])}function Ft(t){var e=t.f;if((e&Z)===0){k(t,_);var a=f,r=lt;f=t,lt=!0;try{(e&K)!==0?yr(t):oa(t),na(t);var o=fa(t);t.teardown=typeof o=="function"?o:null,t.wv=da;var n;se&&Za&&(t.f&j)!==0&&t.deps}finally{lt=r,f=a}}}function M(t){var e=t.f,a=(e&x)!==0;if(c!==null&&!X){var r=f!==null&&(f.f&Z)!==0;if(!r&&!at?.includes(t)){var o=c.deps;if((c.f&de)!==0)t.rv<Pt&&(t.rv=Pt,$===null&&o!==null&&o[T]===t?T++:$===null?$=[t]:$.includes(t)||$.push(t));else{(c.deps??=[]).push(t);var n=t.reactions;n===null?t.reactions=[c]:n.includes(c)||n.push(c)}}}if(ct){if(it.has(t))return it.get(t);if(a){var i=t,s=i.v;return((i.f&_)===0&&i.reactions!==null||wa(i))&&(s=he(i)),it.set(i,s),s}}else a&&!C?.has(t)&&(i=t,Dt(i)&&Ue(i),lt&&Qt()&&(i.f&P)===0&&ga(i));if(C?.has(t))return C.get(t);if((t.f&nt)!==0)throw t.v;return t.v}function ga(t){if(t.deps!==null){t.f^=P;for(const e of t.deps)(e.reactions??=[]).push(t),(e.f&x)!==0&&(e.f&P)===0&&ga(e)}}function wa(t){if(t.v===y)return!0;if(t.deps===null)return!1;for(const e of t.deps)if(it.has(e)||(e.f&x)!==0&&wa(e))return!0;return!1}function Ar(t){var e=X;try{return X=!0,t()}finally{X=e}}const Rr=-7169;function k(t,e){t.f=t.f&Rr|e}const ua=new Set,ke=new Set;function Tr(t){for(var e=0;e<t.length;e++)ua.add(t[e]);for(var a of ke)a(t)}let ha=null;function ae(t){var e=this,a=e.ownerDocument,r=t.type,o=t.composedPath?.()||[],n=o[0]||t.target;ha=t;var i=0,s=ha===t&&t.__root;if(s){var l=o.indexOf(s);if(l!==-1&&(e===document||e===window)){t.__root=e;return}var b=o.indexOf(e);if(b===-1)return;l<=b&&(i=l)}if(n=o[i]||t.target,n!==e){qt(t,"currentTarget",{configurable:!0,get(){return n||a}});var m=c,v=f;z(null),V(null);try{for(var d,p=[];n!==null;){var u=n.assignedSlot||n.parentNode||n.host||null;try{var I=n["__"+r];I!=null&&(!n.disabled||t.target===n)&&I.call(n,t)}catch(U){d?p.push(U):d=U}if(t.cancelBubble||u===e||u===null)break;n=u}if(d){for(let U of p)queueMicrotask(()=>{throw U});throw d}}finally{t.__root=e,delete t.currentTarget,z(m),V(v)}}}function Br(t){var e=document.createElement("template");return e.innerHTML=t.replaceAll("<!>","<!---->"),e.content}function Mt(t,e){var a=f;a.nodes_start===null&&(a.nodes_start=t,a.nodes_end=e)}function gt(t,e){var a=(e&za)!==0,r,o=!t.startsWith("<!>");return()=>{if(w)return Mt(g,null),g;r===void 0&&(r=Br(o?t:"<!>"+t),r=Et(r));var n=a||Je?document.importNode(r,!0):r.cloneNode(!0);return Mt(n,n),n}}function re(){if(w)return Mt(g,null),g;var t=document.createDocumentFragment(),e=document.createComment(""),a=Y();return t.append(e,a),Mt(e,a),t}function O(t,e){if(w){var a=f;((a.f&Vt)===0||a.nodes_end===null)&&(a.nodes_end=g),fe();return}t!==null&&t.before(e)}const Sr=["touchstart","touchmove"];function Cr(t){return Sr.includes(t)}function xa(t,e){var a=e==null?"":typeof e=="object"?e+"":e;a!==(t.__t??=t.nodeValue)&&(t.__t=a,t.nodeValue=a+"")}function ya(t,e){return _a(t,e)}function Nr(t,e){ye(),e.intro=e.intro??!1;const a=e.target,r=w,o=g;try{for(var n=Et(a);n&&(n.nodeType!==_t||n.data!==Re);)n=F(n);if(!n)throw ut;ot(!0),R(n);const i=_a(t,{...e,anchor:n});return ot(!1),i}catch(i){if(i instanceof Error&&i.message.split(`
|
|
2
|
+
`).some(s=>s.startsWith("https://svelte.dev/e/")))throw i;return i!==ut&&console.warn("Failed to hydrate: ",i),e.recover===!1&&La(),ye(),dr(a),ot(!1),ya(t,e)}finally{ot(r),R(o)}}const Rt=new Map;function _a(t,{target:e,anchor:a,props:r={},events:o,context:n,intro:i=!0}){ye();var s=new Set,l=v=>{for(var d=0;d<v.length;d++){var p=v[d];if(!s.has(p)){s.add(p);var u=Cr(p);e.addEventListener(p,ae,{passive:u});var I=Rt.get(p);I===void 0?(document.addEventListener(p,ae,{passive:u}),Rt.set(p,1)):Rt.set(p,I+1)}}};l(Ta(ua)),ke.add(l);var b=void 0,m=ur(()=>{var v=a??e.appendChild(Y());return rr(v,{pending:()=>{}},d=>{if(n){Oe({});var p=S;p.c=n}if(o&&(r.$$events=o),w&&Mt(d,null),b=t(d,r)||{},w&&(f.nodes_end=g,g===null||g.nodeType!==_t||g.data!==Te))throw Ut(),ut;n&&Pe()}),()=>{for(var d of s){e.removeEventListener(d,ae);var p=Rt.get(d);--p===0?(document.removeEventListener(d,ae),Rt.delete(d)):Rt.set(d,p)}ke.delete(l),v!==a&&v.parentNode?.removeChild(v)}});return $e.set(b,m),b}let $e=new WeakMap;function Gr(t,e){const a=$e.get(t);return a?($e.delete(t),a(e)):Promise.resolve()}class Or{anchor;#e=new Map;#t=new Map;#a=new Map;#r=new Set;#l=!0;constructor(e,a=!0){this.anchor=e,this.#l=a}#o=()=>{var e=h;if(this.#e.has(e)){var a=this.#e.get(e),r=this.#t.get(a);if(r)$r(r),this.#r.delete(a);else{var o=this.#a.get(a);o&&(this.#t.set(a,o.effect),this.#a.delete(a),o.fragment.lastChild.remove(),this.anchor.before(o.fragment),r=o.effect)}for(const[n,i]of this.#e){if(this.#e.delete(n),n===e)break;const s=this.#a.get(i);s&&(E(s.effect),this.#a.delete(i))}for(const[n,i]of this.#t){if(n===a||this.#r.has(n))continue;const s=()=>{if(Array.from(this.#e.values()).includes(n)){var b=document.createDocumentFragment();ba(i,b),b.append(Y()),this.#a.set(n,{effect:i,fragment:b})}else E(i);this.#r.delete(n),this.#t.delete(n)};this.#l||!r?(this.#r.add(n),Ot(i,s,!1)):s()}}};#n=e=>{this.#e.delete(e);const a=Array.from(this.#e.values());for(const[r,o]of this.#a)a.includes(r)||(E(o.effect),this.#a.delete(r))};ensure(e,a){var r=h,o=pr();if(a&&!this.#t.has(e)&&!this.#a.has(e))if(o){var n=document.createDocumentFragment(),i=Y();n.append(i),this.#a.set(e,{effect:et(()=>a(i)),fragment:n})}else this.#t.set(e,et(()=>a(this.anchor)));if(this.#e.set(r,e),o){for(const[s,l]of this.#t)s===e?r.skipped_effects.delete(l):r.skipped_effects.add(l);for(const[s,l]of this.#a)s===e?r.skipped_effects.delete(l.effect):r.skipped_effects.add(l.effect);r.oncommit(this.#o),r.ondiscard(this.#n)}else w&&(this.anchor=g),this.#o()}}function Tt(t,e,a=!1){w&&fe();var r=new Or(t),o=a?xt:0;function n(i,s){if(w){const b=Ka(t)===ie;if(i===b){var l=Ne();R(l),r.anchor=l,ot(!1),r.ensure(i,s),ot(!0);return}}r.ensure(i,s)}_e(()=>{var i=!1;e((s,l=!0)=>{i=!0,n(l,s)}),i||n(!1,null)},o)}function Pr(t,e){let a=null,r=w;var o;if(w){a=g;for(var n=Et(document.head);n!==null&&(n.nodeType!==_t||n.data!==t);)n=F(n);if(n===null)ot(!1);else{var i=F(n);n.remove(),R(i)}}w||(o=document.head.appendChild(Y()));try{_e(()=>e(o),me)}finally{r&&(ot(!0),R(a))}}function Dr(t,e){hr(()=>{var a=t.getRootNode(),r=a.host?a:a.head??a.ownerDocument.head;if(!r.querySelector("#"+e.hash)){const o=document.createElement("style");o.id=e.hash,o.textContent=e.code,r.appendChild(o)}})}function Fr(t,e,a){var r=t==null?"":""+t;return r=r?r+" "+e:e,r===""?null:r}function Bt(t,e,a,r,o,n){var i=t.__className;if(w||i!==a||i===void 0){var s=Fr(a,r);(!w||s!==t.getAttribute("class"))&&(s==null?t.removeAttribute("class"):t.className=s),t.__className=a}return n}function ka(t,e,a,r){var o=r,n=!0,i=()=>(n&&(n=!1,o=r),o),s;s=t[e],s===void 0&&r!==void 0&&(s=i());var l;l=()=>{var d=t[e];return d===void 0?i():(n=!0,d)};var b=!1,m=Xe(()=>(b=!1,l())),v=f;return(function(d,p){if(arguments.length>0){const u=p?M(m):d;return tt(m,u),b=!0,o!==void 0&&(o=u),d}return ct&&b||(v.f&Z)!==0?m.v:M(m)})}function Mr(t){return new Ir(t)}class Ir{#e;#t;constructor(e){var a=new Map,r=(n,i)=>{var s=br(i,!1,!1);return a.set(n,s),s};const o=new Proxy({...e.props||{},$$events:{}},{get(n,i){return M(a.get(i)??r(i,Reflect.get(n,i)))},has(n,i){return i===Oa?!0:(M(a.get(i)??r(i,Reflect.get(n,i))),Reflect.has(n,i))},set(n,i,s){return tt(a.get(i)??r(i,s),s),Reflect.set(n,i,s)}});this.#t=(e.hydrate?Nr:ya)(e.component,{target:e.target,anchor:e.anchor,props:o,context:e.context,intro:e.intro??!1,recover:e.recover}),(!e?.props?.$$host||e.sync===!1)&&ue(),this.#e=o.$$events;for(const n of Object.keys(this.#t))n==="$set"||n==="$destroy"||n==="$on"||qt(this,n,{get(){return this.#t[n]},set(i){this.#t[n]=i},enumerable:!0});this.#t.$set=n=>{Object.assign(o,n)},this.#t.$destroy=()=>{Gr(this.#t)}}$set(e){this.#t.$set(e)}$on(e,a){this.#e[e]=this.#e[e]||[];const r=(...o)=>a.call(this,...o);return this.#e[e].push(r),()=>{this.#e[e]=this.#e[e].filter(o=>o!==r)}}$destroy(){this.#t.$destroy()}}let $a;typeof HTMLElement=="function"&&($a=class extends HTMLElement{$$ctor;$$s;$$c;$$cn=!1;$$d={};$$r=!1;$$p_d={};$$l={};$$l_u=new Map;$$me;constructor(t,e,a){super(),this.$$ctor=t,this.$$s=e,a&&this.attachShadow({mode:"open"})}addEventListener(t,e,a){if(this.$$l[t]=this.$$l[t]||[],this.$$l[t].push(e),this.$$c){const r=this.$$c.$on(t,e);this.$$l_u.set(e,r)}super.addEventListener(t,e,a)}removeEventListener(t,e,a){if(super.removeEventListener(t,e,a),this.$$c){const r=this.$$l_u.get(e);r&&(r(),this.$$l_u.delete(e))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let t=function(r){return o=>{const n=document.createElement("slot");r!=="default"&&(n.name=r),O(o,n)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const e={},a=Lr(this);for(const r of this.$$s)r in a&&(r==="default"&&!this.$$d.children?(this.$$d.children=t(r),e.default=!0):e[r]=t(r));for(const r of this.attributes){const o=this.$$g_p(r.name);o in this.$$d||(this.$$d[o]=ne(o,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=Mr({component:this.$$ctor,target:this.shadowRoot||this,props:{...this.$$d,$$slots:e,$$host:this}}),this.$$me=wr(()=>{ra(()=>{this.$$r=!0;for(const r of Yt(this.$$c)){if(!this.$$p_d[r]?.reflect)continue;this.$$d[r]=this.$$c[r];const o=ne(r,this.$$d[r],this.$$p_d,"toAttribute");o==null?this.removeAttribute(this.$$p_d[r].attribute||r):this.setAttribute(this.$$p_d[r].attribute||r,o)}this.$$r=!1})});for(const r in this.$$l)for(const o of this.$$l[r]){const n=this.$$c.$on(r,o);this.$$l_u.set(o,n)}this.$$l={}}}attributeChangedCallback(t,e,a){this.$$r||(t=this.$$g_p(t),this.$$d[t]=ne(t,a,this.$$p_d,"toProp"),this.$$c?.$set({[t]:this.$$d[t]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$me(),this.$$c=void 0)})}$$g_p(t){return Yt(this.$$p_d).find(e=>this.$$p_d[e].attribute===t||!this.$$p_d[e].attribute&&e.toLowerCase()===t)||t}});function ne(t,e,a,r){const o=a[t]?.type;if(e=o==="Boolean"&&typeof e!="boolean"?e!=null:e,!r||!a[t])return e;if(r==="toAttribute")switch(o){case"Object":case"Array":return e==null?null:JSON.stringify(e);case"Boolean":return e?"":null;case"Number":return e??null;default:return e}else switch(o){case"Object":case"Array":return e&&JSON.parse(e);case"Boolean":return e;case"Number":return e!=null?+e:e;default:return e}}function Lr(t){const e={};return t.childNodes.forEach(a=>{e[a.slot||"default"]=!0}),e}function Yr(t,e,a,r,o,n){let i=class extends $a{constructor(){super(t,a,o),this.$$p_d=e}static get observedAttributes(){return Yt(e).map(s=>(e[s].attribute||s).toLowerCase())}};return Yt(e).forEach(s=>{qt(i.prototype,s,{get(){return this.$$c&&s in this.$$c?this.$$c[s]:this.$$d[s]},set(l){l=ne(s,l,e),this.$$d[s]=l;var b=this.$$c;if(b){var m=ht(b,s)?.get;m?b[s]=l:b.$set({[s]:l})}}})}),r.forEach(s=>{qt(i.prototype,s,{get(){return this.$$c?.[s]}})}),t.element=i,i}var qr=gt('<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@latest/font/bootstrap-icons.css" class="svelte-1wba643"/>'),Xr=gt('<span class="chkb svelte-1wba643"><i></i></span>'),Vr=gt('<span class="chkb svelte-1wba643"><i></i></span>'),Ur=gt("<i></i>"),Hr=gt('<span style="float:right"> </span>'),Kr=gt('<span class="switcher svelte-1wba643"><i></i></span>'),Wr=gt('<li part="li" class="nav-item svelte-1wba643"><button style="color:black;"><!> <!></button></li>');const Jr={hash:"svelte-1wba643",code:`@charset "UTF-8";
|
|
3
3
|
@import url("https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap");
|
|
4
4
|
@import url("https://cdn.jsdelivr.net/npm/bootstrap-icons@latest/font/bootstrap-icons.css");
|
|
5
5
|
/*!
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
* Copyright 2011-2021 The Bootstrap Authors
|
|
8
8
|
* Copyright 2011-2021 Twitter, Inc.
|
|
9
9
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
|
10
|
-
|
|
10
|
+
*/.svelte-1wba643,
|
|
11
11
|
.svelte-1wba643::before,
|
|
12
12
|
.svelte-1wba643::after {box-sizing:border-box;}
|
|
13
13
|
@media (prefers-reduced-motion: no-preference) {:host {scroll-behavior:smooth;}
|
|
@@ -145,5 +145,5 @@ button.svelte-1wba643 {margin:0;font-family:inherit;font-size:inherit;line-heigh
|
|
|
145
145
|
@media print {.d-print-inline.svelte-1wba643 {display:inline !important;}.d-print-inline-block.svelte-1wba643 {display:inline-block !important;}.d-print-block.svelte-1wba643 {display:block !important;}.d-print-grid.svelte-1wba643 {display:grid !important;}.d-print-inline-grid.svelte-1wba643 {display:inline-grid !important;}.d-print-table.svelte-1wba643 {display:table !important;}.d-print-table-row.svelte-1wba643 {display:table-row !important;}.d-print-table-cell.svelte-1wba643 {display:table-cell !important;}.d-print-flex.svelte-1wba643 {display:flex !important;}.d-print-inline-flex.svelte-1wba643 {display:inline-flex !important;}.d-print-none.svelte-1wba643 {display:none !important;}
|
|
146
146
|
}:host {font-family:"Roboto", sans-serif;}.bd-placeholder-img.svelte-1wba643 {font-size:1.125rem;text-anchor:middle;-webkit-user-select:none;-moz-user-select:none;user-select:none;}
|
|
147
147
|
@media (min-width: 768px) {.bd-placeholder-img-lg.svelte-1wba643 {font-size:3.5rem;}
|
|
148
|
-
}.nav-item.svelte-1wba643:hover {background-color:#f8f9fa;border-radius:10px;}.custom-button.svelte-1wba643 {width:100%;text-align:left;box-shadow:none !important;line-height:100%;}.switcher.svelte-1wba643 {float:right;font-size:1.6em;}.nav-link.svelte-1wba643 {padding:0.5rem 0.2rem 0.5rem 0.2rem;}.nav-item.svelte-1wba643 {list-style:none;}`};function
|
|
148
|
+
}.nav-item.svelte-1wba643:hover {background-color:#f8f9fa;border-radius:10px;}.custom-button.svelte-1wba643 {width:100%;text-align:left;box-shadow:none !important;line-height:100%;}.switcher.svelte-1wba643 {float:right;font-size:1.6em;}.nav-link.svelte-1wba643 {padding:0.5rem 0.2rem 0.5rem 0.2rem;}.nav-item.svelte-1wba643 {list-style:none;}`};function ja(t,e){Oe(e,!0),Dr(t,Jr);function a(m,v){e.$$host.dispatchEvent(new CustomEvent(m,{detail:v}))}function r(m){a("pageChange",{page:m})}let o=ka(e,"id",7,""),n=ka(e,"navlink");gr(()=>{if(typeof n()=="string")try{n(JSON.parse(n()))}catch{}});var i={get id(){return o()},set id(m=""){o(m),ue()},get navlink(){return n()},set navlink(m){n(m),ue()}},s=re();Pr("1wba643",m=>{var v=qr();O(m,v)});var l=Zt(s);{var b=m=>{var v=Wr(),d=zt(v);d.__click=()=>{r(n().key)};var p=zt(d);{var u=B=>{var A=Xr(),wt=zt(A);kt(A),At(()=>Bt(wt,1,`bi bi-check-circle${n().value?"-fill":""}`,"svelte-1wba643")),O(B,A)},I=B=>{var A=re(),wt=Zt(A);{var je=H=>{var bt=Vr(),Ee=zt(bt);kt(bt),At(()=>Bt(Ee,1,`bi bi-circle${n().value?"-fill":""}`,"svelte-1wba643")),O(H,bt)},Lt=H=>{var bt=re(),Ee=Zt(bt);{var Qr=ze=>{var Ea=Ur();At(()=>Bt(Ea,1,`bi me-2 bi-${n().bootstrapIcon??""}`,"svelte-1wba643")),O(ze,Ea)};Tt(Ee,ze=>{n().bootstrapIcon&&ze(Qr)},!0)}O(H,bt)};Tt(wt,H=>{!n().badge&&n().type==="radio"?H(je):H(Lt,!1)},!0)}O(B,A)};Tt(p,B=>{!n().badge&&n().type==="checkbox"?B(u):B(I,!1)})}var U=ta(p),oe=ta(U);{var It=B=>{var A=Hr(),wt=zt(A,!0);kt(A),At(()=>{Bt(A,1,`${n().badge.class||"badge rounded-pill"} ${n().badge.classcolor||"bg-secondary"}`,"svelte-1wba643"),xa(wt,n().badge.text)}),O(B,A)},Zr=B=>{var A=re(),wt=Zt(A);{var je=Lt=>{var H=Kr(),bt=zt(H);kt(H),At(()=>Bt(bt,1,`bi bi-toggle-${n().value?"on":"off"}`,"svelte-1wba643")),O(Lt,H)};Tt(wt,Lt=>{n().type==="switch"&&Lt(je)},!0)}O(B,A)};Tt(oe,B=>{n().badge?B(It):B(Zr,!1)})}kt(d),kt(v),At(()=>{Bt(d,1,`custom-button btn nav-link ${n().selected?"btn-outline-primary active":""}`,"svelte-1wba643"),xa(U,` ${n().text??""} `)}),O(m,v)};Tt(l,m=>{n()&&m(b)})}return O(t,s),Pe(i)}Tr(["click"]),customElements.define("hb-sidenav-button",Yr(ja,{id:{},navlink:{}},[],[],!0)),Ae.Component=ja,Object.defineProperty(Ae,Symbol.toStringTag,{value:"Module"})})(this["sidenav-button"]=this["sidenav-button"]||{});
|
|
149
149
|
//# sourceMappingURL=main.iife.js.map
|
package/manifest.json
CHANGED
|
@@ -141,14 +141,7 @@
|
|
|
141
141
|
}
|
|
142
142
|
},
|
|
143
143
|
"styleSetup": {
|
|
144
|
-
"vars": [
|
|
145
|
-
{
|
|
146
|
-
"name": "--bs-primary",
|
|
147
|
-
"defaultValue": "#07689f",
|
|
148
|
-
"valueType": "color",
|
|
149
|
-
"theme": "bootstrap"
|
|
150
|
-
}
|
|
151
|
-
],
|
|
144
|
+
"vars": [],
|
|
152
145
|
"parts": [
|
|
153
146
|
{
|
|
154
147
|
"name": "li",
|
|
@@ -243,5 +236,5 @@
|
|
|
243
236
|
"size": {},
|
|
244
237
|
"iifePath": "main.iife.js",
|
|
245
238
|
"repoName": "@htmlbricks/hb-sidenav-button",
|
|
246
|
-
"version": "0.
|
|
239
|
+
"version": "0.66.0"
|
|
247
240
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@htmlbricks/hb-sidenav-button",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.66.0",
|
|
4
4
|
"contributors": [],
|
|
5
5
|
"description": "Compact sidebar row as a nav button: optional Bootstrap icon, badge, or visual types (switch, checkbox, radio) from navlink JSON; dispatches pageChange with the row key on click. Used by sidebar-cards-navigator and similar stacked menus.",
|
|
6
6
|
"licenses": [
|