@htmlbricks/hb-offcanvas 0.66.6 → 0.66.7

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,6 @@
1
- (function(Et){"use strict";typeof window<"u"&&((window.__svelte??={}).v??=new Set).add("5");const Hn=1,Yn=4,qn=8,Un=16,Vn=1,Gn=2,kt="[",Tt="[!",St="[?",At="]",$e={},A=Symbol(),Nt="http://www.w3.org/1999/xhtml",Kn=!1;var Wn=Array.isArray,Jn=Array.prototype.indexOf,xe=Array.prototype.includes,Xn=Array.from,Be=Object.keys,ze=Object.defineProperty,_e=Object.getOwnPropertyDescriptor,Zn=Object.getOwnPropertyDescriptors,Qn=Object.prototype,er=Array.prototype,Rt=Object.getPrototypeOf,Ot=Object.isExtensible;const tr=()=>{};function nr(e){for(var t=0;t<e.length;t++)e[t]()}function Ct(){var e,t,n=new Promise((r,i)=>{e=r,t=i});return{promise:n,resolve:e,reject:t}}const T=2,Ee=4,He=8,Mt=1<<24,se=16,U=32,ae=64,nt=128,I=512,k=1024,N=2048,V=4096,G=8192,B=16384,le=32768,Pt=1<<25,ke=65536,It=1<<17,Lt=1<<18,oe=1<<19,rr=1<<20,pe=65536,rt=1<<21,it=1<<22,fe=1<<23,Ye=Symbol("$state"),Dt=Symbol("legacy props"),ir=Symbol(""),Q=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"},sr=!!globalThis.document?.contentType&&globalThis.document.contentType.includes("xml"),Ft=3,Oe=8;function ar(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function lr(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function or(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function fr(e){throw new Error("https://svelte.dev/e/effect_orphan")}function ur(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function cr(){throw new Error("https://svelte.dev/e/hydration_failed")}function dr(e){throw new Error("https://svelte.dev/e/props_invalid_value")}function hr(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function vr(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function _r(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function pr(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}function qe(e){console.warn("https://svelte.dev/e/hydration_mismatch")}function mr(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}let w=!1;function K(e){w=e}let x;function z(e){if(e===null)throw qe(),$e;return x=e}function Ue(){return z(J(x))}function jt(e){if(w){if(J(x)!==null)throw qe(),$e;x=e}}function br(e=1){if(w){for(var t=e,n=x;t--;)n=J(n);x=n}}function Bt(e=!0){for(var t=0,n=x;;){if(n.nodeType===Oe){var r=n.data;if(r===At){if(t===0)return n;t-=1}else(r===kt||r===Tt||r[0]==="["&&!isNaN(Number(r.slice(1))))&&(t+=1)}var i=J(n);e&&n.remove(),n=i}}function wr(e){if(!e||e.nodeType!==Oe)throw qe(),$e;return e.data}function zt(e){return e===this.v}function gr(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function Ht(e){return!gr(e,this.v)}let yr=!1,L=null;function Te(e){L=e}function Yt(e,t=!1,n){L={p:L,i:!1,c:null,e:null,s:e,x:null,r:p,l:null}}function qt(e){var t=L,n=t.e;if(n!==null){t.e=null;for(var r of n)_n(r)}return e!==void 0&&(t.x=e),t.i=!0,L=t.p,e??{}}function Ut(){return!0}let me=[];function Vt(){var e=me;me=[],nr(e)}function be(e){if(me.length===0&&!Ce){var t=me;queueMicrotask(()=>{t===me&&Vt()})}me.push(e)}function $r(){for(;me.length>0;)Vt()}function Gt(e){var t=p;if(t===null)return _.f|=fe,e;if((t.f&le)===0&&(t.f&Ee)===0)throw e;ue(e,t)}function ue(e,t){for(;t!==null;){if((t.f&nt)!==0){if((t.f&le)===0)throw e;try{t.b.error(e);return}catch(n){e=n}}t=t.parent}throw e}const xr=-7169;function E(e,t){e.f=e.f&xr|t}function st(e){(e.f&I)!==0||e.deps===null?E(e,k):E(e,V)}function Kt(e){if(e!==null)for(const t of e)(t.f&T)===0||(t.f&pe)===0||(t.f^=pe,Kt(t.deps))}function Wt(e,t,n){(e.f&N)!==0?t.add(e):(e.f&V)!==0&&n.add(e),Kt(e.deps),E(e,k)}let Ve=!1;function Er(e){var t=Ve;try{return Ve=!1,[e(),Ve]}finally{Ve=t}}const ce=new Set;let g=null,H=null,at=null,Ce=!1,lt=!1,Se=null,Ge=null;var Jt=0;let kr=1;class ee{id=kr++;current=new Map;previous=new Map;#e=new Set;#n=new Set;#t=new Map;#i=new Map;#s=null;#r=[];#a=new Set;#l=new Set;#o=new Map;is_fork=!1;#c=!1;#f=new Set;#d(){return this.is_fork||this.#i.size>0}#v(){for(const r of this.#f)for(const i of r.#i.keys()){for(var t=!1,n=i;n.parent!==null;){if(this.#o.has(n)){t=!0;break}n=n.parent}if(!t)return!0}return!1}skip_effect(t){this.#o.has(t)||this.#o.set(t,{d:[],m:[]})}unskip_effect(t){var n=this.#o.get(t);if(n){this.#o.delete(t);for(var r of n.d)E(r,N),this.schedule(r);for(r of n.m)E(r,V),this.schedule(r)}}#h(){if(Jt++>1e3&&(ce.delete(this),Tr()),!this.#d()){for(const a of this.#a)this.#l.delete(a),E(a,N),this.schedule(a);for(const a of this.#l)E(a,V),this.schedule(a)}const t=this.#r;this.#r=[],this.apply();var n=Se=[],r=[],i=Ge=[];for(const a of t)try{this.#u(a,n,r)}catch(o){throw tn(a),o}if(g=null,i.length>0){var s=ee.ensure();for(const a of i)s.schedule(a)}if(Se=null,Ge=null,this.#d()||this.#v()){this.#_(r),this.#_(n);for(const[a,o]of this.#o)en(a,o)}else{this.#t.size===0&&ce.delete(this),this.#a.clear(),this.#l.clear();for(const a of this.#e)a(this);this.#e.clear(),Xt(r),Xt(n),this.#s?.resolve()}var l=g;if(this.#r.length>0){const a=l??=this;a.#r.push(...this.#r.filter(o=>!a.#r.includes(o)))}l!==null&&(ce.add(l),l.#h()),ce.has(this)||this.#p()}#u(t,n,r){t.f^=k;for(var i=t.first;i!==null;){var s=i.f,l=(s&(U|ae))!==0,a=l&&(s&k)!==0,o=a||(s&G)!==0||this.#o.has(i);if(!o&&i.fn!==null){l?i.f^=k:(s&Ee)!==0?n.push(i):De(i)&&((s&se)!==0&&this.#l.add(i),Re(i));var f=i.first;if(f!==null){i=f;continue}}for(;i!==null;){var u=i.next;if(u!==null){i=u;break}i=i.parent}}}#_(t){for(var n=0;n<t.length;n+=1)Wt(t[n],this.#a,this.#l)}capture(t,n,r=!1){n!==A&&!this.previous.has(t)&&this.previous.set(t,n),(t.f&fe)===0&&(this.current.set(t,[t.v,r]),H?.set(t,t.v))}activate(){g=this}deactivate(){g=null,H=null}flush(){try{lt=!0,g=this,this.#h()}finally{Jt=0,at=null,Se=null,Ge=null,lt=!1,g=null,H=null,de.clear()}}discard(){for(const t of this.#n)t(this);this.#n.clear(),ce.delete(this)}#p(){for(const f of ce){var t=f.id<this.id,n=[];for(const[u,[d,c]]of this.current){if(f.current.has(u)){var r=f.current.get(u)[0];if(t&&d!==r)f.current.set(u,[d,c]);else continue}n.push(u)}var i=[...f.current.keys()].filter(u=>!this.current.has(u));if(i.length===0)t&&f.discard();else if(n.length>0){f.activate();var s=new Set,l=new Map;for(var a of n)Zt(a,i,s,l);if(f.#r.length>0){f.apply();for(var o of f.#r)f.#u(o,[],[]);f.#r=[]}f.deactivate()}}for(const f of ce)f.#f.has(this)&&(f.#f.delete(this),f.#f.size===0&&!f.#d()&&(f.activate(),f.#h()))}increment(t,n){let r=this.#t.get(n)??0;if(this.#t.set(n,r+1),t){let i=this.#i.get(n)??0;this.#i.set(n,i+1)}}decrement(t,n,r){let i=this.#t.get(n)??0;if(i===1?this.#t.delete(n):this.#t.set(n,i-1),t){let s=this.#i.get(n)??0;s===1?this.#i.delete(n):this.#i.set(n,s-1)}this.#c||r||(this.#c=!0,be(()=>{this.#c=!1,this.flush()}))}transfer_effects(t,n){for(const r of t)this.#a.add(r);for(const r of n)this.#l.add(r);t.clear(),n.clear()}oncommit(t){this.#e.add(t)}ondiscard(t){this.#n.add(t)}settled(){return(this.#s??=Ct()).promise}static ensure(){if(g===null){const t=g=new ee;lt||(ce.add(g),Ce||be(()=>{g===t&&t.flush()}))}return g}apply(){{H=null;return}}schedule(t){if(at=t,t.b?.is_pending&&(t.f&(Ee|He|Mt))!==0&&(t.f&le)===0){t.b.defer_effect(t);return}for(var n=t;n.parent!==null;){n=n.parent;var r=n.f;if(Se!==null&&n===p&&(_===null||(_.f&T)===0))return;if((r&(ae|U))!==0){if((r&k)===0)return;n.f^=k}}this.#r.push(n)}}function W(e){var t=Ce;Ce=!0;try{for(var n;;){if($r(),g===null)return n;g.flush()}}finally{Ce=t}}function Tr(){try{ur()}catch(e){ue(e,at)}}let te=null;function Xt(e){var t=e.length;if(t!==0){for(var n=0;n<t;){var r=e[n++];if((r.f&(B|G))===0&&De(r)&&(te=new Set,Re(r),r.deps===null&&r.first===null&&r.nodes===null&&r.teardown===null&&r.ac===null&&bn(r),te?.size>0)){de.clear();for(const i of te){if((i.f&(B|G))!==0)continue;const s=[i];let l=i.parent;for(;l!==null;)te.has(l)&&(te.delete(l),s.push(l)),l=l.parent;for(let a=s.length-1;a>=0;a--){const o=s[a];(o.f&(B|G))===0&&Re(o)}}te.clear()}}te=null}}function Zt(e,t,n,r){if(!n.has(e)&&(n.add(e),e.reactions!==null))for(const i of e.reactions){const s=i.f;(s&T)!==0?Zt(i,t,n,r):(s&(it|se))!==0&&(s&N)===0&&Qt(i,t,r)&&(E(i,N),ot(i))}}function Qt(e,t,n){const r=n.get(e);if(r!==void 0)return r;if(e.deps!==null)for(const i of e.deps){if(xe.call(t,i))return!0;if((i.f&T)!==0&&Qt(i,t,n))return n.set(i,!0),!0}return n.set(e,!1),!1}function ot(e){g.schedule(e)}function en(e,t){if(!((e.f&U)!==0&&(e.f&k)!==0)){(e.f&N)!==0?t.d.push(e):(e.f&V)!==0&&t.m.push(e),E(e,k);for(var n=e.first;n!==null;)en(n,t),n=n.next}}function tn(e){E(e,k);for(var t=e.first;t!==null;)tn(t),t=t.next}function Sr(e){let t=0,n=Me(0),r;return()=>{_t()&&(P(n),pn(()=>(t===0&&(r=Rn(()=>e(()=>Pe(n)))),t+=1,()=>{be(()=>{t-=1,t===0&&(r?.(),r=void 0,Pe(n))})})))}}var Ar=ke|oe;function Nr(e,t,n,r){new Rr(e,t,n,r)}class Rr{parent;is_pending=!1;transform_error;#e;#n=w?x:null;#t;#i;#s;#r=null;#a=null;#l=null;#o=null;#c=0;#f=0;#d=!1;#v=new Set;#h=new Set;#u=null;#_=Sr(()=>(this.#u=Me(this.#c),()=>{this.#u=null}));constructor(t,n,r,i){this.#e=t,this.#t=n,this.#i=s=>{var l=p;l.b=this,l.f|=nt,r(s)},this.parent=p.b,this.transform_error=i??this.parent?.transform_error??(s=>s),this.#s=pt(()=>{if(w){const s=this.#n;Ue();const l=s.data===Tt;if(s.data.startsWith(St)){const o=JSON.parse(s.data.slice(St.length));this.#y(o)}else l?this.#$():this.#p()}else this.#w()},Ar),w&&(this.#e=x)}#p(){try{this.#r=re(()=>this.#i(this.#e))}catch(t){this.error(t)}}#y(t){const n=this.#t.failed;n&&(this.#l=re(()=>{n(this.#e,()=>t,()=>()=>{})}))}#$(){const t=this.#t.pending;t&&(this.is_pending=!0,this.#a=re(()=>t(this.#e)),be(()=>{var n=this.#o=document.createDocumentFragment(),r=we();n.append(r),this.#r=this.#b(()=>re(()=>this.#i(r))),this.#f===0&&(this.#e.before(n),this.#o=null,Le(this.#a,()=>{this.#a=null}),this.#m(g))}))}#w(){try{if(this.is_pending=this.has_pending_snippet(),this.#f=0,this.#c=0,this.#r=re(()=>{this.#i(this.#e)}),this.#f>0){var t=this.#o=document.createDocumentFragment();yn(this.#r,t);const n=this.#t.pending;this.#a=re(()=>n(this.#e))}else this.#m(g)}catch(n){this.error(n)}}#m(t){this.is_pending=!1,t.transfer_effects(this.#v,this.#h)}defer_effect(t){Wt(t,this.#v,this.#h)}is_rendered(){return!this.is_pending&&(!this.parent||this.parent.is_rendered())}has_pending_snippet(){return!!this.#t.pending}#b(t){var n=p,r=_,i=L;D(this.#s),O(this.#s),Te(this.#s.ctx);try{return ee.ensure(),t()}catch(s){return Gt(s),null}finally{D(n),O(r),Te(i)}}#g(t,n){if(!this.has_pending_snippet()){this.parent&&this.parent.#g(t,n);return}this.#f+=t,this.#f===0&&(this.#m(n),this.#a&&Le(this.#a,()=>{this.#a=null}),this.#o&&(this.#e.before(this.#o),this.#o=null))}update_pending_count(t,n){this.#g(t,n),this.#c+=t,!(!this.#u||this.#d)&&(this.#d=!0,be(()=>{this.#d=!1,this.#u&&We(this.#u,this.#c)}))}get_effect_pending(){return this.#_(),P(this.#u)}error(t){var n=this.#t.onerror;let r=this.#t.failed;if(!n&&!r)throw t;this.#r&&(R(this.#r),this.#r=null),this.#a&&(R(this.#a),this.#a=null),this.#l&&(R(this.#l),this.#l=null),w&&(z(this.#n),br(),z(Bt()));var i=!1,s=!1;const l=()=>{if(i){mr();return}i=!0,s&&pr(),this.#l!==null&&Le(this.#l,()=>{this.#l=null}),this.#b(()=>{this.#w()})},a=o=>{try{s=!0,n?.(o,l),s=!1}catch(f){ue(f,this.#s&&this.#s.parent)}r&&(this.#l=this.#b(()=>{try{return re(()=>{var f=p;f.b=this,f.f|=nt,r(this.#e,()=>o,()=>l)})}catch(f){return ue(f,this.#s.parent),null}}))};be(()=>{var o;try{o=this.transform_error(t)}catch(f){ue(f,this.#s&&this.#s.parent);return}o!==null&&typeof o=="object"&&typeof o.then=="function"?o.then(a,f=>ue(f,this.#s&&this.#s.parent)):a(o)})}}function Or(e,t,n,r){const i=ft;var s=e.filter(c=>!c.settled);if(n.length===0&&s.length===0){r(t.map(i));return}var l=p,a=Cr(),o=s.length===1?s[0].promise:s.length>1?Promise.all(s.map(c=>c.promise)):null;function f(c){a();try{r(c)}catch(h){(l.f&B)===0&&ue(h,l)}Ke()}if(n.length===0){o.then(()=>f(t.map(i)));return}var u=nn();function d(){Promise.all(n.map(c=>Mr(c))).then(c=>f([...t.map(i),...c])).catch(c=>ue(c,l)).finally(()=>u())}o?o.then(()=>{a(),d(),Ke()}):d()}function Cr(){var e=p,t=_,n=L,r=g;return function(s=!0){D(e),O(t),Te(n),s&&(e.f&B)===0&&(r?.activate(),r?.apply())}}function Ke(e=!0){D(null),O(null),Te(null),e&&g?.deactivate()}function nn(){var e=p,t=e.b,n=g,r=t.is_rendered();return t.update_pending_count(1,n),n.increment(r,e),(i=!1)=>{t.update_pending_count(-1,n),n.decrement(r,e,i)}}function ft(e){var t=T|N,n=_!==null&&(_.f&T)!==0?_:null;return p!==null&&(p.f|=oe),{ctx:L,deps:null,effects:null,equals:zt,f:t,fn:e,reactions:null,rv:0,v:A,wv:0,parent:n??p,ac:null}}function Mr(e,t,n){let r=p;r===null&&ar();var i=void 0,s=Me(A),l=!_,a=new Map;return Wr(()=>{var o=p,f=Ct();i=f.promise;try{Promise.resolve(e()).then(f.resolve,f.reject).finally(Ke)}catch(h){f.reject(h),Ke()}var u=g;if(l){if((o.f&le)!==0)var d=nn();if(r.b.is_rendered())a.get(u)?.reject(Q),a.delete(u);else{for(const h of a.values())h.reject(Q);a.clear()}a.set(u,f)}const c=(h,v=void 0)=>{if(d){var m=v===Q;d(m)}if(!(v===Q||(o.f&B)!==0)){if(u.activate(),v)s.f|=fe,We(s,v);else{(s.f&fe)!==0&&(s.f^=fe),We(s,h);for(const[y,S]of a){if(a.delete(y),y===u)break;S.reject(Q)}}u.deactivate()}};f.promise.then(c,h=>c(null,h||"unknown"))}),vn(()=>{for(const o of a.values())o.reject(Q)}),new Promise(o=>{function f(u){function d(){u===i?o(s):f(i)}u.then(d,d)}f(i)})}function Pr(e){const t=ft(e);return t.equals=Ht,t}function Ir(e){var t=e.effects;if(t!==null){e.effects=null;for(var n=0;n<t.length;n+=1)R(t[n])}}function Lr(e){for(var t=e.parent;t!==null;){if((t.f&T)===0)return(t.f&B)===0?t:null;t=t.parent}return null}function ut(e){var t,n=p;D(Lr(e));try{e.f&=~pe,Ir(e),t=Sn(e)}finally{D(n)}return t}function rn(e){var t=e.v,n=ut(e);if(!e.equals(n)&&(e.wv=kn(),(!g?.is_fork||e.deps===null)&&(e.v=n,g?.capture(e,t,!0),e.deps===null))){E(e,k);return}he||(H!==null?(_t()||g?.is_fork)&&H.set(e,n):st(e))}function Dr(e){if(e.effects!==null)for(const t of e.effects)(t.teardown||t.ac)&&(t.teardown?.(),t.ac?.abort(Q),t.teardown=tr,t.ac=null,Fe(t,0),mt(t))}function sn(e){if(e.effects!==null)for(const t of e.effects)t.teardown&&Re(t)}let ct=new Set;const de=new Map;let an=!1;function Me(e,t){var n={f:0,v:e,reactions:null,equals:zt,rv:0,wv:0};return n}function ne(e,t){const n=Me(e);return Qr(n),n}function Fr(e,t=!1,n=!0){const r=Me(e);return t||(r.equals=Ht),r}function Y(e,t,n=!1){_!==null&&(!q||(_.f&It)!==0)&&Ut()&&(_.f&(T|se|it|It))!==0&&(F===null||!xe.call(F,e))&&_r();let r=n?Ae(t):t;return We(e,r,Ge)}function We(e,t,n=null){if(!e.equals(t)){var r=e.v;he?de.set(e,t):de.set(e,r),e.v=t;var i=ee.ensure();if(i.capture(e,r),(e.f&T)!==0){const s=e;(e.f&N)!==0&&ut(s),H===null&&st(s)}e.wv=kn(),ln(e,N,n),p!==null&&(p.f&k)!==0&&(p.f&(U|ae))===0&&(j===null?ei([e]):j.push(e)),!i.is_fork&&ct.size>0&&!an&&jr()}return t}function jr(){an=!1;for(const e of ct)(e.f&k)!==0&&E(e,V),De(e)&&Re(e);ct.clear()}function Pe(e){Y(e,e.v+1)}function ln(e,t,n){var r=e.reactions;if(r!==null)for(var i=r.length,s=0;s<i;s++){var l=r[s],a=l.f,o=(a&N)===0;if(o&&E(l,t),(a&T)!==0){var f=l;H?.delete(f),(a&pe)===0&&(a&I&&(l.f|=pe),ln(f,V,n))}else if(o){var u=l;(a&se)!==0&&te!==null&&te.add(u),n!==null?n.push(u):ot(u)}}}function Ae(e){if(typeof e!="object"||e===null||Ye in e)return e;const t=Rt(e);if(t!==Qn&&t!==er)return e;var n=new Map,r=Wn(e),i=ne(0),s=ye,l=a=>{if(ye===s)return a();var o=_,f=ye;O(null),En(s);var u=a();return O(o),En(f),u};return r&&n.set("length",ne(e.length)),new Proxy(e,{defineProperty(a,o,f){(!("value"in f)||f.configurable===!1||f.enumerable===!1||f.writable===!1)&&hr();var u=n.get(o);return u===void 0?l(()=>{var d=ne(f.value);return n.set(o,d),d}):Y(u,f.value,!0),!0},deleteProperty(a,o){var f=n.get(o);if(f===void 0){if(o in a){const u=l(()=>ne(A));n.set(o,u),Pe(i)}}else Y(f,A),Pe(i);return!0},get(a,o,f){if(o===Ye)return e;var u=n.get(o),d=o in a;if(u===void 0&&(!d||_e(a,o)?.writable)&&(u=l(()=>{var h=Ae(d?a[o]:A),v=ne(h);return v}),n.set(o,u)),u!==void 0){var c=P(u);return c===A?void 0:c}return Reflect.get(a,o,f)},getOwnPropertyDescriptor(a,o){var f=Reflect.getOwnPropertyDescriptor(a,o);if(f&&"value"in f){var u=n.get(o);u&&(f.value=P(u))}else if(f===void 0){var d=n.get(o),c=d?.v;if(d!==void 0&&c!==A)return{enumerable:!0,configurable:!0,value:c,writable:!0}}return f},has(a,o){if(o===Ye)return!0;var f=n.get(o),u=f!==void 0&&f.v!==A||Reflect.has(a,o);if(f!==void 0||p!==null&&(!u||_e(a,o)?.writable)){f===void 0&&(f=l(()=>{var c=u?Ae(a[o]):A,h=ne(c);return h}),n.set(o,f));var d=P(f);if(d===A)return!1}return u},set(a,o,f,u){var d=n.get(o),c=o in a;if(r&&o==="length")for(var h=f;h<d.v;h+=1){var v=n.get(h+"");v!==void 0?Y(v,A):h in a&&(v=l(()=>ne(A)),n.set(h+"",v))}if(d===void 0)(!c||_e(a,o)?.writable)&&(d=l(()=>ne(void 0)),Y(d,Ae(f)),n.set(o,d));else{c=d.v!==A;var m=l(()=>Ae(f));Y(d,m)}var y=Reflect.getOwnPropertyDescriptor(a,o);if(y?.set&&y.set.call(u,f),!c){if(r&&typeof o=="string"){var S=n.get("length"),$=Number(o);Number.isInteger($)&&$>=S.v&&Y(S,$+1)}Pe(i)}return!0},ownKeys(a){P(i);var o=Reflect.ownKeys(a).filter(d=>{var c=n.get(d);return c===void 0||c.v!==A});for(var[f,u]of n)u.v!==A&&!(f in a)&&o.push(f);return o},setPrototypeOf(){vr()}})}var on,fn,un,cn;function dt(){if(on===void 0){on=window,fn=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,n=Text.prototype;un=_e(t,"firstChild").get,cn=_e(t,"nextSibling").get,Ot(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),Ot(n)&&(n.__t=void 0)}}function we(e=""){return document.createTextNode(e)}function Ne(e){return un.call(e)}function J(e){return cn.call(e)}function dn(e,t){if(!w)return Ne(e);var n=Ne(x);return n===null&&(n=x.appendChild(we())),z(n),n}function hn(e,t=1,n=!1){let r=w?x:e;for(var i;t--;)i=r,r=J(r);if(!w)return r;if(n){if(r?.nodeType!==Ft){var s=we();return r===null?i?.after(s):r.before(s),z(s),s}Hr(r)}return z(r),r}function Br(e){e.textContent=""}function zr(){return!1}function ht(e,t,n){return document.createElementNS(Nt,e,void 0)}function Hr(e){if(e.nodeValue.length<65536)return;let t=e.nextSibling;for(;t!==null&&t.nodeType===Ft;)t.remove(),e.nodeValue+=t.nodeValue,t=e.nextSibling}function vt(e){var t=_,n=p;O(null),D(null);try{return e()}finally{O(t),D(n)}}function Yr(e){p===null&&(_===null&&fr(),or()),he&&lr()}function qr(e,t){var n=t.last;n===null?t.last=t.first=e:(n.next=e,e.prev=n,t.last=e)}function X(e,t){var n=p;n!==null&&(n.f&G)!==0&&(e|=G);var r={ctx:L,deps:null,nodes:null,f:e|N|I,first:null,fn:t,last:null,next:null,parent:n,b:n&&n.b,prev:null,teardown:null,wv:0,ac:null},i=r;if((e&Ee)!==0)Se!==null?Se.push(r):ee.ensure().schedule(r);else if(t!==null){try{Re(r)}catch(l){throw R(r),l}i.deps===null&&i.teardown===null&&i.nodes===null&&i.first===i.last&&(i.f&oe)===0&&(i=i.first,(e&se)!==0&&(e&ke)!==0&&i!==null&&(i.f|=ke))}if(i!==null&&(i.parent=n,n!==null&&qr(i,n),_!==null&&(_.f&T)!==0&&(e&ae)===0)){var s=_;(s.effects??=[]).push(i)}return r}function _t(){return _!==null&&!q}function vn(e){const t=X(He,null);return E(t,k),t.teardown=e,t}function Ur(e){Yr();var t=p.f,n=!_&&(t&U)!==0&&(t&le)===0;if(n){var r=L;(r.e??=[]).push(e)}else return _n(e)}function _n(e){return X(Ee|rr,e)}function Vr(e){ee.ensure();const t=X(ae|oe,e);return()=>{R(t)}}function Gr(e){ee.ensure();const t=X(ae|oe,e);return(n={})=>new Promise(r=>{n.outro?Le(t,()=>{R(t),r(void 0)}):(R(t),r(void 0))})}function Kr(e){return X(Ee,e)}function Wr(e){return X(it|oe,e)}function pn(e,t=0){return X(He|t,e)}function Ie(e,t=[],n=[],r=[]){Or(r,t,n,i=>{X(He,()=>e(...i.map(P)))})}function pt(e,t=0){var n=X(se|t,e);return n}function re(e){return X(U|oe,e)}function mn(e){var t=e.teardown;if(t!==null){const n=he,r=_;$n(!0),O(null);try{t.call(null)}finally{$n(n),O(r)}}}function mt(e,t=!1){var n=e.first;for(e.first=e.last=null;n!==null;){const i=n.ac;i!==null&&vt(()=>{i.abort(Q)});var r=n.next;(n.f&ae)!==0?n.parent=null:R(n,t),n=r}}function Jr(e){for(var t=e.first;t!==null;){var n=t.next;(t.f&U)===0&&R(t),t=n}}function R(e,t=!0){var n=!1;(t||(e.f&Lt)!==0)&&e.nodes!==null&&e.nodes.end!==null&&(Xr(e.nodes.start,e.nodes.end),n=!0),E(e,Pt),mt(e,t&&!n),Fe(e,0);var r=e.nodes&&e.nodes.t;if(r!==null)for(const s of r)s.stop();mn(e),e.f^=Pt,e.f|=B;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=e.ac=e.b=null}function Xr(e,t){for(;e!==null;){var n=e===t?null:J(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 Le(e,t,n=!0){var r=[];wn(e,r,!0);var i=()=>{n&&R(e),t&&t()},s=r.length;if(s>0){var l=()=>--s||i();for(var a of r)a.out(l)}else i()}function wn(e,t,n){if((e.f&G)===0){e.f^=G;var r=e.nodes&&e.nodes.t;if(r!==null)for(const a of r)(a.is_global||n)&&t.push(a);for(var i=e.first;i!==null;){var s=i.next,l=(i.f&ke)!==0||(i.f&U)!==0&&(e.f&se)!==0;wn(i,t,l?n:!1),i=s}}}function Zr(e){gn(e,!0)}function gn(e,t){if((e.f&G)!==0){e.f^=G,(e.f&k)===0&&(E(e,N),ee.ensure().schedule(e));for(var n=e.first;n!==null;){var r=n.next,i=(n.f&ke)!==0||(n.f&U)!==0;gn(n,i?t:!1),n=r}var s=e.nodes&&e.nodes.t;if(s!==null)for(const l of s)(l.is_global||t)&&l.in()}}function yn(e,t){if(e.nodes)for(var n=e.nodes.start,r=e.nodes.end;n!==null;){var i=n===r?null:J(n);t.append(n),n=i}}let Je=!1,he=!1;function $n(e){he=e}let _=null,q=!1;function O(e){_=e}let p=null;function D(e){p=e}let F=null;function Qr(e){_!==null&&(F===null?F=[e]:F.push(e))}let C=null,M=0,j=null;function ei(e){j=e}let xn=1,ge=0,ye=ge;function En(e){ye=e}function kn(){return++xn}function De(e){var t=e.f;if((t&N)!==0)return!0;if(t&T&&(e.f&=~pe),(t&V)!==0){for(var n=e.deps,r=n.length,i=0;i<r;i++){var s=n[i];if(De(s)&&rn(s),s.wv>e.wv)return!0}(t&I)!==0&&H===null&&E(e,k)}return!1}function Tn(e,t,n=!0){var r=e.reactions;if(r!==null&&!(F!==null&&xe.call(F,e)))for(var i=0;i<r.length;i++){var s=r[i];(s.f&T)!==0?Tn(s,t,!1):t===s&&(n?E(s,N):(s.f&k)!==0&&E(s,V),ot(s))}}function Sn(e){var t=C,n=M,r=j,i=_,s=F,l=L,a=q,o=ye,f=e.f;C=null,M=0,j=null,_=(f&(U|ae))===0?e:null,F=null,Te(e.ctx),q=!1,ye=++ge,e.ac!==null&&(vt(()=>{e.ac.abort(Q)}),e.ac=null);try{e.f|=rt;var u=e.fn,d=u();e.f|=le;var c=e.deps,h=g?.is_fork;if(C!==null){var v;if(h||Fe(e,M),c!==null&&M>0)for(c.length=M+C.length,v=0;v<C.length;v++)c[M+v]=C[v];else e.deps=c=C;if(_t()&&(e.f&I)!==0)for(v=M;v<c.length;v++)(c[v].reactions??=[]).push(e)}else!h&&c!==null&&M<c.length&&(Fe(e,M),c.length=M);if(Ut()&&j!==null&&!q&&c!==null&&(e.f&(T|V|N))===0)for(v=0;v<j.length;v++)Tn(j[v],e);if(i!==null&&i!==e){if(ge++,i.deps!==null)for(let m=0;m<n;m+=1)i.deps[m].rv=ge;if(t!==null)for(const m of t)m.rv=ge;j!==null&&(r===null?r=j:r.push(...j))}return(e.f&fe)!==0&&(e.f^=fe),d}catch(m){return Gt(m)}finally{e.f^=rt,C=t,M=n,j=r,_=i,F=s,Te(l),q=a,ye=o}}function ti(e,t){let n=t.reactions;if(n!==null){var r=Jn.call(n,e);if(r!==-1){var i=n.length-1;i===0?n=t.reactions=null:(n[r]=n[i],n.pop())}}if(n===null&&(t.f&T)!==0&&(C===null||!xe.call(C,t))){var s=t;(s.f&I)!==0&&(s.f^=I,s.f&=~pe),st(s),Dr(s),Fe(s,0)}}function Fe(e,t){var n=e.deps;if(n!==null)for(var r=t;r<n.length;r++)ti(e,n[r])}function Re(e){var t=e.f;if((t&B)===0){E(e,k);var n=p,r=Je;p=e,Je=!0;try{(t&(se|Mt))!==0?Jr(e):mt(e),mn(e);var i=Sn(e);e.teardown=typeof i=="function"?i:null,e.wv=xn;var s;Kn&&yr&&(e.f&N)!==0&&e.deps}finally{Je=r,p=n}}}function P(e){var t=e.f,n=(t&T)!==0;if(_!==null&&!q){var r=p!==null&&(p.f&B)!==0;if(!r&&(F===null||!xe.call(F,e))){var i=_.deps;if((_.f&rt)!==0)e.rv<ge&&(e.rv=ge,C===null&&i!==null&&i[M]===e?M++:C===null?C=[e]:C.push(e));else{(_.deps??=[]).push(e);var s=e.reactions;s===null?e.reactions=[_]:xe.call(s,_)||s.push(_)}}}if(he&&de.has(e))return de.get(e);if(n){var l=e;if(he){var a=l.v;return((l.f&k)===0&&l.reactions!==null||Nn(l))&&(a=ut(l)),de.set(l,a),a}var o=(l.f&I)===0&&!q&&_!==null&&(Je||(_.f&I)!==0),f=(l.f&le)===0;De(l)&&(o&&(l.f|=I),rn(l)),o&&!f&&(sn(l),An(l))}if(H?.has(e))return H.get(e);if((e.f&fe)!==0)throw e.v;return e.v}function An(e){if(e.f|=I,e.deps!==null)for(const t of e.deps)(t.reactions??=[]).push(e),(t.f&T)!==0&&(t.f&I)===0&&(sn(t),An(t))}function Nn(e){if(e.v===A)return!0;if(e.deps===null)return!1;for(const t of e.deps)if(de.has(t)||(t.f&T)!==0&&Nn(t))return!0;return!1}function Rn(e){var t=q;try{return q=!0,e()}finally{q=t}}const je=Symbol("events"),On=new Set,bt=new Set;function ni(e,t,n,r={}){function i(s){if(r.capture||wt.call(t,s),!s.cancelBubble)return vt(()=>n?.call(this,s))}return e.startsWith("pointer")||e.startsWith("touch")||e==="wheel"?be(()=>{t.addEventListener(e,i,r)}):t.addEventListener(e,i,r),i}function ri(e,t,n,r,i){var s={capture:r,passive:i},l=ni(e,t,n,s);(t===document.body||t===window||t===document||t instanceof HTMLMediaElement)&&vn(()=>{t.removeEventListener(e,l,s)})}function ii(e,t,n){(t[je]??={})[e]=n}function si(e){for(var t=0;t<e.length;t++)On.add(e[t]);for(var n of bt)n(e)}let Cn=null;function wt(e){var t=this,n=t.ownerDocument,r=e.type,i=e.composedPath?.()||[],s=i[0]||e.target;Cn=e;var l=0,a=Cn===e&&e[je];if(a){var o=i.indexOf(a);if(o!==-1&&(t===document||t===window)){e[je]=t;return}var f=i.indexOf(t);if(f===-1)return;o<=f&&(l=o)}if(s=i[l]||e.target,s!==t){ze(e,"currentTarget",{configurable:!0,get(){return s||n}});var u=_,d=p;O(null),D(null);try{for(var c,h=[];s!==null;){var v=s.assignedSlot||s.parentNode||s.host||null;try{var m=s[je]?.[r];m!=null&&(!s.disabled||e.target===s)&&m.call(s,e)}catch(y){c?h.push(y):c=y}if(e.cancelBubble||v===t||v===null)break;s=v}if(c){for(let y of h)queueMicrotask(()=>{throw y});throw c}}finally{e[je]=t,delete e.currentTarget,O(u),D(d)}}}const ai=globalThis?.window?.trustedTypes&&globalThis.window.trustedTypes.createPolicy("svelte-trusted-html",{createHTML:e=>e});function li(e){return ai?.createHTML(e)??e}function oi(e){var t=ht("template");return t.innerHTML=li(e.replaceAll("<!>","<!---->")),t.content}function Xe(e,t){var n=p;n.nodes===null&&(n.nodes={start:e,end:t,a:null,t:null})}function gt(e,t){var n=(t&Vn)!==0,r=(t&Gn)!==0,i,s=!e.startsWith("<!>");return()=>{if(w)return Xe(x,null),x;i===void 0&&(i=oi(s?e:"<!>"+e),n||(i=Ne(i)));var l=r||fn?document.importNode(i,!0):i.cloneNode(!0);if(n){var a=Ne(l),o=l.lastChild;Xe(a,o)}else Xe(l,l);return l}}function Ze(e,t){if(w){var n=p;((n.f&le)===0||n.nodes.end===null)&&(n.nodes.end=x),Ue();return}e!==null&&e.before(t)}const fi=["touchstart","touchmove"];function ui(e){return fi.includes(e)}function Mn(e,t){return Pn(e,t)}function ci(e,t){dt(),t.intro=t.intro??!1;const n=t.target,r=w,i=x;try{for(var s=Ne(n);s&&(s.nodeType!==Oe||s.data!==kt);)s=J(s);if(!s)throw $e;K(!0),z(s);const l=Pn(e,{...t,anchor:s});return K(!1),l}catch(l){if(l instanceof Error&&l.message.split(`
2
- `).some(a=>a.startsWith("https://svelte.dev/e/")))throw l;return l!==$e&&console.warn("Failed to hydrate: ",l),t.recover===!1&&cr(),dt(),Br(n),K(!1),Mn(e,t)}finally{K(r),z(i)}}const Qe=new Map;function Pn(e,{target:t,anchor:n,props:r={},events:i,context:s,intro:l=!0,transformError:a}){dt();var o=void 0,f=Gr(()=>{var u=n??t.appendChild(we());Nr(u,{pending:()=>{}},h=>{Yt({});var v=L;if(s&&(v.c=s),i&&(r.$$events=i),w&&Xe(h,null),o=e(h,r)||{},w&&(p.nodes.end=x,x===null||x.nodeType!==Oe||x.data!==At))throw qe(),$e;qt()},a);var d=new Set,c=h=>{for(var v=0;v<h.length;v++){var m=h[v];if(!d.has(m)){d.add(m);var y=ui(m);for(const Z of[t,document]){var S=Qe.get(Z);S===void 0&&(S=new Map,Qe.set(Z,S));var $=S.get(m);$===void 0?(Z.addEventListener(m,wt,{passive:y}),S.set(m,1)):S.set(m,$+1)}}}};return c(Xn(On)),bt.add(c),()=>{for(var h of d)for(const y of[t,document]){var v=Qe.get(y),m=v.get(h);--m==0?(y.removeEventListener(h,wt),v.delete(h),v.size===0&&Qe.delete(y)):v.set(h,m)}bt.delete(c),u!==n&&u.parentNode?.removeChild(u)}});return yt.set(o,f),o}let yt=new WeakMap;function di(e,t){const n=yt.get(e);return n?(yt.delete(e),n(t)):Promise.resolve()}class hi{anchor;#e=new Map;#n=new Map;#t=new Map;#i=new Set;#s=!0;constructor(t,n=!0){this.anchor=t,this.#s=n}#r=t=>{if(this.#e.has(t)){var n=this.#e.get(t),r=this.#n.get(n);if(r)Zr(r),this.#i.delete(n);else{var i=this.#t.get(n);i&&(this.#n.set(n,i.effect),this.#t.delete(n),i.fragment.lastChild.remove(),this.anchor.before(i.fragment),r=i.effect)}for(const[s,l]of this.#e){if(this.#e.delete(s),s===t)break;const a=this.#t.get(l);a&&(R(a.effect),this.#t.delete(l))}for(const[s,l]of this.#n){if(s===n||this.#i.has(s))continue;const a=()=>{if(Array.from(this.#e.values()).includes(s)){var f=document.createDocumentFragment();yn(l,f),f.append(we()),this.#t.set(s,{effect:l,fragment:f})}else R(l);this.#i.delete(s),this.#n.delete(s)};this.#s||!r?(this.#i.add(s),Le(l,a,!1)):a()}}};#a=t=>{this.#e.delete(t);const n=Array.from(this.#e.values());for(const[r,i]of this.#t)n.includes(r)||(R(i.effect),this.#t.delete(r))};ensure(t,n){var r=g,i=zr();if(n&&!this.#n.has(t)&&!this.#t.has(t))if(i){var s=document.createDocumentFragment(),l=we();s.append(l),this.#t.set(t,{effect:re(()=>n(l)),fragment:s})}else this.#n.set(t,re(()=>n(this.anchor)));if(this.#e.set(r,t),i){for(const[a,o]of this.#n)a===t?r.unskip_effect(o):r.skip_effect(o);for(const[a,o]of this.#t)a===t?r.unskip_effect(o.effect):r.skip_effect(o.effect);r.oncommit(this.#r),r.ondiscard(this.#a)}else w&&(this.anchor=x),this.#r(r)}}function vi(e,t,n=!1){var r;w&&(r=x,Ue());var i=new hi(e),s=n?ke:0;function l(a,o){if(w){var f=wr(r);if(a!==parseInt(f.substring(1))){var u=Bt();z(u),i.anchor=u,K(!1),i.ensure(a,o),K(!0);return}}i.ensure(a,o)}pt(()=>{var a=!1;t((o,f=0)=>{a=!0,l(f,o)}),a||l(-1,null)},s)}function _i(e,t,n,r,i){w&&Ue();var s=t.$$slots?.[n],l=!1;s===!0&&(s=t[n],l=!0),s===void 0||s(e,l?()=>r:r)}function pi(e,t){let n=null,r=w;var i;if(w){n=x;for(var s=Ne(document.head);s!==null&&(s.nodeType!==Oe||s.data!==e);)s=J(s);if(s===null)K(!1);else{var l=J(s);s.remove(),z(l)}}w||(i=document.head.appendChild(we()));try{pt(()=>t(i),Lt|oe)}finally{r&&(K(!0),z(n))}}function mi(e,t){Kr(()=>{var n=e.getRootNode(),r=n.host?n:n.head??n.ownerDocument.head;if(!r.querySelector("#"+t.hash)){const i=ht("style");i.id=t.hash,i.textContent=t.code,r.appendChild(i)}})}function bi(e,t,n){var r=e==null?"":""+e;return t&&(r=r?r+" "+t:t),r===""?null:r}function wi(e,t){return e==null?null:String(e)}function In(e,t,n,r,i,s){var l=e.__className;if(w||l!==n||l===void 0){var a=bi(n,r);(!w||a!==e.getAttribute("class"))&&(a==null?e.removeAttribute("class"):e.className=a),e.__className=n}return s}function Ln(e,t,n,r){var i=e.__style;if(w||i!==t){var s=wi(t);(!w||s!==e.getAttribute("style"))&&(s==null?e.removeAttribute("style"):e.style.cssText=s),e.__style=t}return r}const gi=Symbol("is custom element"),yi=Symbol("is html"),$i=sr?"link":"LINK";function xi(e,t,n,r){var i=Ei(e);w&&(i[t]=e.getAttribute(t),t==="src"||t==="srcset"||t==="href"&&e.nodeName===$i)||i[t]!==(i[t]=n)&&(t==="loading"&&(e[ir]=n),n==null?e.removeAttribute(t):typeof n!="string"&&Dn(e).includes(t)?e[t]=n:e.setAttribute(t,n))}function $t(e,t,n){var r=_,i=p;let s=w;w&&K(!1),O(null),D(null);try{t!=="style"&&(xt.has(e.getAttribute("is")||e.nodeName)||!customElements||customElements.get(e.getAttribute("is")||e.nodeName.toLowerCase())?Dn(e).includes(t):n&&typeof n=="object")?e[t]=n:xi(e,t,n==null?n:String(n))}finally{O(r),D(i),s&&K(!0)}}function Ei(e){return e.__attributes??={[gi]:e.nodeName.includes("-"),[yi]:e.namespaceURI===Nt}}var xt=new Map;function Dn(e){var t=e.getAttribute("is")||e.nodeName,n=xt.get(t);if(n)return n;xt.set(t,n=[]);for(var r,i=e,s=Element.prototype;s!==i;){r=Zn(i);for(var l in r)r[l].set&&n.push(l);i=Rt(i)}return n}function ie(e,t,n,r){var i=(n&qn)!==0,s=(n&Un)!==0,l=r,a=!0,o=()=>(a&&(a=!1,l=s?Rn(r):r),l);let f;if(i){var u=Ye in e||Dt in e;f=_e(e,t)?.set??(u&&t in e?$=>e[t]=$:void 0)}var d,c=!1;i?[d,c]=Er(()=>e[t]):d=e[t],d===void 0&&r!==void 0&&(d=o(),f&&(dr(),f(d)));var h;if(h=()=>{var $=e[t];return $===void 0?o():(a=!0,$)},(n&Yn)===0)return h;if(f){var v=e.$$legacy;return(function($,Z){return arguments.length>0?((!Z||v||c)&&f(Z?h():$),$):h()})}var m=!1,y=((n&Hn)!==0?ft:Pr)(()=>(m=!1,h()));i&&P(y);var S=p;return(function($,Z){if(arguments.length>0){const tt=Z?P(y):i?Ae($):$;return Y(y,tt),m=!0,l!==void 0&&(l=tt),$}return he&&m||(S.f&B)!==0?y.v:P(y)})}function ki(e){return new Ti(e)}class Ti{#e;#n;constructor(t){var n=new Map,r=(s,l)=>{var a=Fr(l,!1,!1);return n.set(s,a),a};const i=new Proxy({...t.props||{},$$events:{}},{get(s,l){return P(n.get(l)??r(l,Reflect.get(s,l)))},has(s,l){return l===Dt?!0:(P(n.get(l)??r(l,Reflect.get(s,l))),Reflect.has(s,l))},set(s,l,a){return Y(n.get(l)??r(l,a),a),Reflect.set(s,l,a)}});this.#n=(t.hydrate?ci:Mn)(t.component,{target:t.target,anchor:t.anchor,props:i,context:t.context,intro:t.intro??!1,recover:t.recover,transformError:t.transformError}),(!t?.props?.$$host||t.sync===!1)&&W(),this.#e=i.$$events;for(const s of Object.keys(this.#n))s==="$set"||s==="$destroy"||s==="$on"||ze(this,s,{get(){return this.#n[s]},set(l){this.#n[s]=l},enumerable:!0});this.#n.$set=s=>{Object.assign(i,s)},this.#n.$destroy=()=>{di(this.#n)}}$set(t){this.#n.$set(t)}$on(t,n){this.#e[t]=this.#e[t]||[];const r=(...i)=>n.call(this,...i);return this.#e[t].push(r),()=>{this.#e[t]=this.#e[t].filter(i=>i!==r)}}$destroy(){this.#n.$destroy()}}let Fn;typeof HTMLElement=="function"&&(Fn=class extends HTMLElement{$$ctor;$$s;$$c;$$cn=!1;$$d={};$$r=!1;$$p_d={};$$l={};$$l_u=new Map;$$me;$$shadowRoot=null;constructor(e,t,n){super(),this.$$ctor=e,this.$$s=t,n&&(this.$$shadowRoot=this.attachShadow(n))}addEventListener(e,t,n){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(t),this.$$c){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=ht("slot");r!=="default"&&(s.name=r),Ze(i,s)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const t={},n=Si(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]=et(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=ki({component:this.$$ctor,target:this.$$shadowRoot||this,props:{...this.$$d,$$slots:t,$$host:this}}),this.$$me=Vr(()=>{pn(()=>{this.$$r=!0;for(const r of Be(this.$$c)){if(!this.$$p_d[r]?.reflect)continue;this.$$d[r]=this.$$c[r];const i=et(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]=et(e,n,this.$$p_d,"toProp"),this.$$c?.$set({[e]:this.$$d[e]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$me(),this.$$c=void 0)})}$$g_p(e){return Be(this.$$p_d).find(t=>this.$$p_d[t].attribute===e||!this.$$p_d[t].attribute&&t.toLowerCase()===e)||e}});function et(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 Si(e){const t={};return e.childNodes.forEach(n=>{t[n.slot||"default"]=!0}),t}function Ai(e,t,n,r,i,s){let l=class extends Fn{constructor(){super(e,n,i),this.$$p_d=t}static get observedAttributes(){return Be(t).map(a=>(t[a].attribute||a).toLowerCase())}};return Be(t).forEach(a=>{ze(l.prototype,a,{get(){return this.$$c&&a in this.$$c?this.$$c[a]:this.$$d[a]},set(o){o=et(a,o,t),this.$$d[a]=o;var f=this.$$c;if(f){var u=_e(f,a)?.get;u?f[a]=o:f.$set({[a]:o})}}})}),r.forEach(a=>{ze(l.prototype,a,{get(){return this.$$c?.[a]}})}),e.element=l,l}const jn={version:"0.66.6"};function Bn(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 Ni=gt('<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@latest/font/bootstrap-icons.css" class="svelte-1evb3mn"/>'),Ri=gt("<div></div>"),Oi=gt('<div id="webcomponent" class="svelte-1evb3mn"><!> <div class="offcanvas offcanvas-start show svelte-1evb3mn" tabindex="-1" aria-labelledby="offcanvasExampleLabel"><hb-sidebar-desktop></hb-sidebar-desktop></div> <!></div>',2);const Ci={hash:"svelte-1evb3mn",code:`@charset "UTF-8";
1
+ (function(e){Object.defineProperty(e,Symbol.toStringTag,{value:`Module`}),typeof window<`u`&&((window.__svelte??={}).v??=new Set).add(`5`);var t={},n=Symbol(),r=`http://www.w3.org/1999/xhtml`,i=Array.isArray,a=Array.prototype.indexOf,o=Array.prototype.includes,s=Array.from,c=Object.keys,l=Object.defineProperty,u=Object.getOwnPropertyDescriptor,d=Object.getOwnPropertyDescriptors,f=Object.prototype,p=Array.prototype,m=Object.getPrototypeOf,h=Object.isExtensible,g=()=>{};function _(e){for(var t=0;t<e.length;t++)e[t]()}function v(){var e,t;return{promise:new Promise((n,r)=>{e=n,t=r}),resolve:e,reject:t}}var y=1024,b=2048,ee=4096,te=8192,ne=16384,re=32768,ie=1<<25,ae=65536,oe=1<<18,se=1<<19,ce=1<<20,le=65536,ue=1<<21,de=1<<22,fe=1<<23,pe=Symbol(`$state`),me=Symbol(`legacy props`),he=Symbol(``),x=new class extends Error{name=`StaleReactionError`;message="The reaction that called `getAbortSignal()` was re-run or destroyed"},ge=!!globalThis.document?.contentType&&globalThis.document.contentType.includes(`xml`);function _e(){throw Error(`https://svelte.dev/e/async_derived_orphan`)}function ve(e){throw Error(`https://svelte.dev/e/effect_in_teardown`)}function ye(){throw Error(`https://svelte.dev/e/effect_in_unowned_derived`)}function be(e){throw Error(`https://svelte.dev/e/effect_orphan`)}function xe(){throw Error(`https://svelte.dev/e/effect_update_depth_exceeded`)}function Se(){throw Error(`https://svelte.dev/e/hydration_failed`)}function Ce(e){throw Error(`https://svelte.dev/e/props_invalid_value`)}function we(){throw Error(`https://svelte.dev/e/state_descriptors_fixed`)}function Te(){throw Error(`https://svelte.dev/e/state_prototype_fixed`)}function Ee(){throw Error(`https://svelte.dev/e/state_unsafe_mutation`)}function De(){throw Error(`https://svelte.dev/e/svelte_boundary_reset_onerror`)}function Oe(e){console.warn(`https://svelte.dev/e/hydration_mismatch`)}function ke(){console.warn(`https://svelte.dev/e/svelte_boundary_reset_noop`)}var S=!1;function C(e){S=e}var w;function T(e){if(e===null)throw Oe(),t;return w=e}function Ae(){return T(R(w))}function je(e){if(S){if(R(w)!==null)throw Oe(),t;w=e}}function Me(e=1){if(S){for(var t=e,n=w;t--;)n=R(n);w=n}}function Ne(e=!0){for(var t=0,n=w;;){if(n.nodeType===8){var r=n.data;if(r===`]`){if(t===0)return n;--t}else (r===`[`||r===`[!`||r[0]===`[`&&!isNaN(Number(r.slice(1))))&&(t+=1)}var i=R(n);e&&n.remove(),n=i}}function Pe(e){if(!e||e.nodeType!==8)throw Oe(),t;return e.data}function Fe(e){return e===this.v}function Ie(e,t){return e==e?e!==t||typeof e==`object`&&!!e||typeof e==`function`:t==t}function Le(e){return!Ie(e,this.v)}var Re=!1,ze=!1,E=null;function Be(e){E=e}function Ve(e,t=!1,n){E={p:E,i:!1,c:null,e:null,s:e,x:null,r:K,l:ze&&!t?{s:null,u:null,$:[]}:null}}function He(e){var t=E,n=t.e;if(n!==null){t.e=null;for(var r of n)cn(r)}return e!==void 0&&(t.x=e),t.i=!0,E=t.p,e??{}}function Ue(){return!ze||E!==null&&E.l===null}var We=[];function Ge(){var e=We;We=[],_(e)}function Ke(e){if(We.length===0&&!rt){var t=We;queueMicrotask(()=>{t===We&&Ge()})}We.push(e)}function qe(){for(;We.length>0;)Ge()}function Je(e){var t=K;if(t===null)return U.f|=fe,e;if(!(t.f&32768)&&!(t.f&4))throw e;D(e,t)}function D(e,t){for(;t!==null;){if(t.f&128){if(!(t.f&32768))throw e;try{t.b.error(e);return}catch(t){e=t}}t=t.parent}throw e}var Ye=~(b|ee|y);function O(e,t){e.f=e.f&Ye|t}function Xe(e){e.f&512||e.deps===null?O(e,y):O(e,ee)}function Ze(e){if(e!==null)for(let t of e)!(t.f&2)||!(t.f&65536)||(t.f^=le,Ze(t.deps))}function Qe(e,t,n){e.f&2048?t.add(e):e.f&4096&&n.add(e),Ze(e.deps),O(e,y)}var $e=!1,et=!1;function tt(e){var t=et;try{return et=!1,[e(),et]}finally{et=t}}var k=new Set,A=null,j=null,nt=null,rt=!1,it=!1,at=null,ot=null,st=0,ct=1,lt=class e{id=ct++;current=new Map;previous=new Map;#e=new Set;#t=new Set;#n=new Map;#r=new Map;#i=null;#a=[];#o=new Set;#s=new Set;#c=new Map;is_fork=!1;#l=!1;#u=new Set;#d(){return this.is_fork||this.#r.size>0}#f(){for(let n of this.#u)for(let r of n.#r.keys()){for(var e=!1,t=r;t.parent!==null;){if(this.#c.has(t)){e=!0;break}t=t.parent}if(!e)return!0}return!1}skip_effect(e){this.#c.has(e)||this.#c.set(e,{d:[],m:[]})}unskip_effect(e){var t=this.#c.get(e);if(t){this.#c.delete(e);for(var n of t.d)O(n,b),this.schedule(n);for(n of t.m)O(n,ee),this.schedule(n)}}#p(){if(st++>1e3&&(k.delete(this),ut()),!this.#d()){for(let e of this.#o)this.#s.delete(e),O(e,b),this.schedule(e);for(let e of this.#s)O(e,ee),this.schedule(e)}let t=this.#a;this.#a=[],this.apply();var n=at=[],r=[],i=ot=[];for(let e of t)try{this.#m(e,n,r)}catch(t){throw gt(e),t}if(A=null,i.length>0){var a=e.ensure();for(let e of i)a.schedule(e)}if(at=null,ot=null,this.#d()||this.#f()){this.#h(r),this.#h(n);for(let[e,t]of this.#c)ht(e,t)}else{this.#n.size===0&&k.delete(this),this.#o.clear(),this.#s.clear();for(let e of this.#e)e(this);this.#e.clear(),dt(r),dt(n),this.#i?.resolve()}var o=A;if(this.#a.length>0){let e=o??=this;e.#a.push(...this.#a.filter(t=>!e.#a.includes(t)))}o!==null&&(k.add(o),o.#p()),k.has(this)||this.#g()}#m(e,t,n){e.f^=y;for(var r=e.first;r!==null;){var i=r.f,a=(i&96)!=0;if(!(a&&i&1024||i&8192||this.#c.has(r))&&r.fn!==null){a?r.f^=y:i&4?t.push(r):Re&&i&16777224?n.push(r):In(r)&&(i&16&&this.#s.add(r),Vn(r));var o=r.first;if(o!==null){r=o;continue}}for(;r!==null;){var s=r.next;if(s!==null){r=s;break}r=r.parent}}}#h(e){for(var t=0;t<e.length;t+=1)Qe(e[t],this.#o,this.#s)}capture(e,t,r=!1){t!==n&&!this.previous.has(e)&&this.previous.set(e,t),e.f&8388608||(this.current.set(e,[e.v,r]),j?.set(e,e.v))}activate(){A=this}deactivate(){A=null,j=null}flush(){try{it=!0,A=this,this.#p()}finally{st=0,nt=null,at=null,ot=null,it=!1,A=null,j=null,P.clear()}}discard(){for(let e of this.#t)e(this);this.#t.clear(),k.delete(this)}#g(){for(let c of k){var e=c.id<this.id,t=[];for(let[r,[i,a]]of this.current){if(c.current.has(r)){var n=c.current.get(r)[0];if(e&&i!==n)c.current.set(r,[i,a]);else continue}t.push(r)}var r=[...c.current.keys()].filter(e=>!this.current.has(e));if(r.length===0)e&&c.discard();else if(t.length>0){c.activate();var i=new Set,a=new Map;for(var o of t)ft(o,r,i,a);if(c.#a.length>0){c.apply();for(var s of c.#a)c.#m(s,[],[]);c.#a=[]}c.deactivate()}}for(let e of k)e.#u.has(this)&&(e.#u.delete(this),e.#u.size===0&&!e.#d()&&(e.activate(),e.#p()))}increment(e,t){let n=this.#n.get(t)??0;if(this.#n.set(t,n+1),e){let e=this.#r.get(t)??0;this.#r.set(t,e+1)}}decrement(e,t,n){let r=this.#n.get(t)??0;if(r===1?this.#n.delete(t):this.#n.set(t,r-1),e){let e=this.#r.get(t)??0;e===1?this.#r.delete(t):this.#r.set(t,e-1)}this.#l||n||(this.#l=!0,Ke(()=>{this.#l=!1,this.flush()}))}transfer_effects(e,t){for(let t of e)this.#o.add(t);for(let e of t)this.#s.add(e);e.clear(),t.clear()}oncommit(e){this.#e.add(e)}ondiscard(e){this.#t.add(e)}settled(){return(this.#i??=v()).promise}static ensure(){if(A===null){let t=A=new e;it||(k.add(A),rt||Ke(()=>{A===t&&t.flush()}))}return A}apply(){if(!Re||!this.is_fork&&k.size===1){j=null;return}j=new Map;for(let[e,[t]]of this.current)j.set(e,t);for(let n of k)if(!(n===this||n.is_fork)){var e=!1,t=!1;if(n.id<this.id)for(let[r,[,i]]of n.current)i||(e||=this.current.has(r),t||=!this.current.has(r));if(e&&t)this.#u.add(n);else for(let[e,t]of n.previous)j.has(e)||j.set(e,t)}}schedule(e){if(nt=e,e.b?.is_pending&&e.f&16777228&&!(e.f&32768)){e.b.defer_effect(e);return}for(var t=e;t.parent!==null;){t=t.parent;var n=t.f;if(at!==null&&t===K&&(Re||(U===null||!(U.f&2))&&!$e))return;if(n&96){if(!(n&1024))return;t.f^=y}}this.#a.push(t)}};function M(e){var t=rt;rt=!0;try{var n;for(e&&(A!==null&&!A.is_fork&&A.flush(),n=e());;){if(qe(),A===null)return n;A.flush()}}finally{rt=t}}function ut(){try{xe()}catch(e){D(e,nt)}}var N=null;function dt(e){var t=e.length;if(t!==0){for(var n=0;n<t;){var r=e[n++];if(!(r.f&24576)&&In(r)&&(N=new Set,Vn(r),r.deps===null&&r.first===null&&r.nodes===null&&r.teardown===null&&r.ac===null&&bn(r),N?.size>0)){P.clear();for(let e of N){if(e.f&24576)continue;let t=[e],n=e.parent;for(;n!==null;)N.has(n)&&(N.delete(n),t.push(n)),n=n.parent;for(let e=t.length-1;e>=0;e--){let n=t[e];n.f&24576||Vn(n)}}N.clear()}}N=null}}function ft(e,t,n,r){if(!n.has(e)&&(n.add(e),e.reactions!==null))for(let i of e.reactions){let e=i.f;e&2?ft(i,t,n,r):e&4194320&&!(e&2048)&&pt(i,t,r)&&(O(i,b),mt(i))}}function pt(e,t,n){let r=n.get(e);if(r!==void 0)return r;if(e.deps!==null)for(let r of e.deps){if(o.call(t,r))return!0;if(r.f&2&&pt(r,t,n))return n.set(r,!0),!0}return n.set(e,!1),!1}function mt(e){A.schedule(e)}function ht(e,t){if(!(e.f&32&&e.f&1024)){e.f&2048?t.d.push(e):e.f&4096&&t.m.push(e),O(e,y);for(var n=e.first;n!==null;)ht(n,t),n=n.next}}function gt(e){O(e,y);for(var t=e.first;t!==null;)gt(t),t=t.next}function _t(e){let t=0,n=It(0),r;return()=>{an()&&(Q(n),pn(()=>(t===0&&(r=Wn(()=>e(()=>Bt(n)))),t+=1,()=>{Ke(()=>{--t,t===0&&(r?.(),r=void 0,Bt(n))})})))}}var vt=ae|se;function yt(e,t,n,r){new bt(e,t,n,r)}var bt=class{parent;is_pending=!1;transform_error;#e;#t=S?w:null;#n;#r;#i;#a=null;#o=null;#s=null;#c=null;#l=0;#u=0;#d=!1;#f=new Set;#p=new Set;#m=null;#h=_t(()=>(this.#m=It(this.#l),()=>{this.#m=null}));constructor(e,t,n,r){this.#e=e,this.#n=t,this.#r=e=>{var t=K;t.b=this,t.f|=128,n(e)},this.parent=K.b,this.transform_error=r??this.parent?.transform_error??(e=>e),this.#i=hn(()=>{if(S){let e=this.#t;Ae();let t=e.data===`[!`;if(e.data.startsWith(`[?`)){let t=JSON.parse(e.data.slice(2));this.#_(t)}else t?this.#v():this.#g()}else this.#y()},vt),S&&(this.#e=w)}#g(){try{this.#a=B(()=>this.#r(this.#e))}catch(e){this.error(e)}}#_(e){let t=this.#n.failed;t&&(this.#s=B(()=>{t(this.#e,()=>e,()=>()=>{})}))}#v(){let e=this.#n.pending;e&&(this.is_pending=!0,this.#o=B(()=>e(this.#e)),Ke(()=>{var e=this.#c=document.createDocumentFragment(),t=L();e.append(t),this.#a=this.#x(()=>B(()=>this.#r(t))),this.#u===0&&(this.#e.before(e),this.#c=null,xn(this.#o,()=>{this.#o=null}),this.#b(A))}))}#y(){try{if(this.is_pending=this.has_pending_snippet(),this.#u=0,this.#l=0,this.#a=B(()=>{this.#r(this.#e)}),this.#u>0){var e=this.#c=document.createDocumentFragment();Tn(this.#a,e);let t=this.#n.pending;this.#o=B(()=>t(this.#e))}else this.#b(A)}catch(e){this.error(e)}}#b(e){this.is_pending=!1,e.transfer_effects(this.#f,this.#p)}defer_effect(e){Qe(e,this.#f,this.#p)}is_rendered(){return!this.is_pending&&(!this.parent||this.parent.is_rendered())}has_pending_snippet(){return!!this.#n.pending}#x(e){var t=K,n=U,r=E;q(this.#i),G(this.#i),Be(this.#i.ctx);try{return lt.ensure(),e()}catch(e){return Je(e),null}finally{q(t),G(n),Be(r)}}#S(e,t){if(!this.has_pending_snippet()){this.parent&&this.parent.#S(e,t);return}this.#u+=e,this.#u===0&&(this.#b(t),this.#o&&xn(this.#o,()=>{this.#o=null}),this.#c&&=(this.#e.before(this.#c),null))}update_pending_count(e,t){this.#S(e,t),this.#l+=e,!(!this.#m||this.#d)&&(this.#d=!0,Ke(()=>{this.#d=!1,this.#m&&Rt(this.#m,this.#l)}))}get_effect_pending(){return this.#h(),Q(this.#m)}error(e){var t=this.#n.onerror;let n=this.#n.failed;if(!t&&!n)throw e;this.#a&&=(V(this.#a),null),this.#o&&=(V(this.#o),null),this.#s&&=(V(this.#s),null),S&&(T(this.#t),Me(),T(Ne()));var r=!1,i=!1;let a=()=>{if(r){ke();return}r=!0,i&&De(),this.#s!==null&&xn(this.#s,()=>{this.#s=null}),this.#x(()=>{this.#y()})},o=e=>{try{i=!0,t?.(e,a),i=!1}catch(e){D(e,this.#i&&this.#i.parent)}n&&(this.#s=this.#x(()=>{try{return B(()=>{var t=K;t.b=this,t.f|=128,n(this.#e,()=>e,()=>a)})}catch(e){return D(e,this.#i.parent),null}}))};Ke(()=>{var t;try{t=this.transform_error(e)}catch(e){D(e,this.#i&&this.#i.parent);return}typeof t==`object`&&t&&typeof t.then==`function`?t.then(o,e=>D(e,this.#i&&this.#i.parent)):o(t)})}};function xt(e,t,n,r){let i=Ue()?Tt:Dt;var a=e.filter(e=>!e.settled);if(n.length===0&&a.length===0){r(t.map(i));return}var o=K,s=St(),c=a.length===1?a[0].promise:a.length>1?Promise.all(a.map(e=>e.promise)):null;function l(e){s();try{r(e)}catch(e){o.f&16384||D(e,o)}Ct()}if(n.length===0){c.then(()=>l(t.map(i)));return}var u=wt();function d(){Promise.all(n.map(e=>Et(e))).then(e=>l([...t.map(i),...e])).catch(e=>D(e,o)).finally(()=>u())}c?c.then(()=>{s(),d(),Ct()}):d()}function St(){var e=K,t=U,n=E,r=A;return function(i=!0){q(e),G(t),Be(n),i&&!(e.f&16384)&&(r?.activate(),r?.apply())}}function Ct(e=!0){q(null),G(null),Be(null),e&&A?.deactivate()}function wt(){var e=K,t=e.b,n=A,r=t.is_rendered();return t.update_pending_count(1,n),n.increment(r,e),(i=!1)=>{t.update_pending_count(-1,n),n.decrement(r,e,i)}}function Tt(e){var t=2|b,r=U!==null&&U.f&2?U:null;return K!==null&&(K.f|=se),{ctx:E,deps:null,effects:null,equals:Fe,f:t,fn:e,reactions:null,rv:0,v:n,wv:0,parent:r??K,ac:null}}function Et(e,t,r){let i=K;i===null&&_e();var a=void 0,o=It(n),s=!U,c=new Map;return fn(()=>{var t=K,n=v();a=n.promise;try{Promise.resolve(e()).then(n.resolve,n.reject).finally(Ct)}catch(e){n.reject(e),Ct()}var r=A;if(s){if(t.f&32768)var l=wt();if(i.b.is_rendered())c.get(r)?.reject(x),c.delete(r);else{for(let e of c.values())e.reject(x);c.clear()}c.set(r,n)}let u=(e,n=void 0)=>{if(l&&l(n===x),!(n===x||t.f&16384)){if(r.activate(),n)o.f|=fe,Rt(o,n);else{o.f&8388608&&(o.f^=fe),Rt(o,e);for(let[e,t]of c){if(c.delete(e),e===r)break;t.reject(x)}}r.deactivate()}};n.promise.then(u,e=>u(null,e||`unknown`))}),on(()=>{for(let e of c.values())e.reject(x)}),new Promise(e=>{function t(n){function r(){n===a?e(o):t(a)}n.then(r,r)}t(a)})}function Dt(e){let t=Tt(e);return t.equals=Le,t}function Ot(e){var t=e.effects;if(t!==null){e.effects=null;for(var n=0;n<t.length;n+=1)V(t[n])}}function kt(e){for(var t=e.parent;t!==null;){if(!(t.f&2))return t.f&16384?null:t;t=t.parent}return null}function At(e){var t,n=K;q(kt(e));try{e.f&=~le,Ot(e),t=Rn(e)}finally{q(n)}return t}function jt(e){var t=e.v,n=At(e);if(!e.equals(n)&&(e.wv=Fn(),(!A?.is_fork||e.deps===null)&&(e.v=n,A?.capture(e,t,!0),e.deps===null))){O(e,y);return}H||(j===null?Xe(e):(an()||A?.is_fork)&&j.set(e,n))}function Mt(e){if(e.effects!==null)for(let t of e.effects)(t.teardown||t.ac)&&(t.teardown?.(),t.ac?.abort(x),t.teardown=g,t.ac=null,Bn(t,0),_n(t))}function Nt(e){if(e.effects!==null)for(let t of e.effects)t.teardown&&Vn(t)}var Pt=new Set,P=new Map,Ft=!1;function It(e,t){return{f:0,v:e,reactions:null,equals:Fe,rv:0,wv:0}}function F(e,t){let n=It(e,t);return kn(n),n}function Lt(e,t=!1,n=!0){let r=It(e);return t||(r.equals=Le),ze&&n&&E!==null&&E.l!==null&&(E.l.s??=[]).push(r),r}function I(e,t,n=!1){return U!==null&&(!W||U.f&131072)&&Ue()&&U.f&4325394&&(J===null||!o.call(J,e))&&Ee(),Rt(e,n?Ht(t):t,ot)}function Rt(e,t,n=null){if(!e.equals(t)){var r=e.v;H?P.set(e,t):P.set(e,r),e.v=t;var i=lt.ensure();if(i.capture(e,r),e.f&2){let t=e;e.f&2048&&At(t),j===null&&Xe(t)}e.wv=Fn(),Vt(e,b,n),Ue()&&K!==null&&K.f&1024&&!(K.f&96)&&(Z===null?An([e]):Z.push(e)),!i.is_fork&&Pt.size>0&&!Ft&&zt()}return t}function zt(){Ft=!1;for(let e of Pt)e.f&1024&&O(e,ee),In(e)&&Vn(e);Pt.clear()}function Bt(e){I(e,e.v+1)}function Vt(e,t,n){var r=e.reactions;if(r!==null)for(var i=Ue(),a=r.length,o=0;o<a;o++){var s=r[o],c=s.f;if(!(!i&&s===K)){var l=(c&b)===0;if(l&&O(s,t),c&2){var u=s;j?.delete(u),c&65536||(c&512&&(s.f|=le),Vt(u,ee,n))}else if(l){var d=s;c&16&&N!==null&&N.add(d),n===null?mt(d):n.push(d)}}}}function Ht(e){if(typeof e!=`object`||!e||pe in e)return e;let t=m(e);if(t!==f&&t!==p)return e;var r=new Map,a=i(e),o=F(0),s=null,c=Nn,l=e=>{if(Nn===c)return e();var t=U,n=Nn;G(null),Pn(c);var r=e();return G(t),Pn(n),r};return a&&r.set(`length`,F(e.length,s)),new Proxy(e,{defineProperty(e,t,n){(!(`value`in n)||n.configurable===!1||n.enumerable===!1||n.writable===!1)&&we();var i=r.get(t);return i===void 0?l(()=>{var e=F(n.value,s);return r.set(t,e),e}):I(i,n.value,!0),!0},deleteProperty(e,t){var i=r.get(t);if(i===void 0){if(t in e){let e=l(()=>F(n,s));r.set(t,e),Bt(o)}}else I(i,n),Bt(o);return!0},get(t,i,a){if(i===pe)return e;var o=r.get(i),c=i in t;if(o===void 0&&(!c||u(t,i)?.writable)&&(o=l(()=>F(Ht(c?t[i]:n),s)),r.set(i,o)),o!==void 0){var d=Q(o);return d===n?void 0:d}return Reflect.get(t,i,a)},getOwnPropertyDescriptor(e,t){var i=Reflect.getOwnPropertyDescriptor(e,t);if(i&&`value`in i){var a=r.get(t);a&&(i.value=Q(a))}else if(i===void 0){var o=r.get(t),s=o?.v;if(o!==void 0&&s!==n)return{enumerable:!0,configurable:!0,value:s,writable:!0}}return i},has(e,t){if(t===pe)return!0;var i=r.get(t),a=i!==void 0&&i.v!==n||Reflect.has(e,t);return(i!==void 0||K!==null&&(!a||u(e,t)?.writable))&&(i===void 0&&(i=l(()=>F(a?Ht(e[t]):n,s)),r.set(t,i)),Q(i)===n)?!1:a},set(e,t,i,c){var d=r.get(t),f=t in e;if(a&&t===`length`)for(var p=i;p<d.v;p+=1){var m=r.get(p+``);m===void 0?p in e&&(m=l(()=>F(n,s)),r.set(p+``,m)):I(m,n)}if(d===void 0)(!f||u(e,t)?.writable)&&(d=l(()=>F(void 0,s)),I(d,Ht(i)),r.set(t,d));else{f=d.v!==n;var h=l(()=>Ht(i));I(d,h)}var g=Reflect.getOwnPropertyDescriptor(e,t);if(g?.set&&g.set.call(c,i),!f){if(a&&typeof t==`string`){var _=r.get(`length`),v=Number(t);Number.isInteger(v)&&v>=_.v&&I(_,v+1)}Bt(o)}return!0},ownKeys(e){Q(o);var t=Reflect.ownKeys(e).filter(e=>{var t=r.get(e);return t===void 0||t.v!==n});for(var[i,a]of r)a.v!==n&&!(i in e)&&t.push(i);return t},setPrototypeOf(){Te()}})}var Ut,Wt,Gt,Kt;function qt(){if(Ut===void 0){Ut=window,Wt=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,n=Text.prototype;Gt=u(t,`firstChild`).get,Kt=u(t,`nextSibling`).get,h(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),h(n)&&(n.__t=void 0)}}function L(e=``){return document.createTextNode(e)}function Jt(e){return Gt.call(e)}function R(e){return Kt.call(e)}function Yt(e,t){if(!S)return Jt(e);var n=Jt(w);if(n===null)n=w.appendChild(L());else if(t&&n.nodeType!==3){var r=L();return n?.before(r),T(r),r}return t&&en(n),T(n),n}function Xt(e,t=1,n=!1){let r=S?w:e;for(var i;t--;)i=r,r=R(r);if(!S)return r;if(n){if(r?.nodeType!==3){var a=L();return r===null?i?.after(a):r.before(a),T(a),a}en(r)}return T(r),r}function Zt(e){e.textContent=``}function Qt(){return!Re||N!==null?!1:(K.f&re)!==0}function $t(e,t,n){let r=n?{is:n}:void 0;return document.createElementNS(t??`http://www.w3.org/1999/xhtml`,e,r)}function en(e){if(e.nodeValue.length<65536)return;let t=e.nextSibling;for(;t!==null&&t.nodeType===3;)t.remove(),e.nodeValue+=t.nodeValue,t=e.nextSibling}function tn(e){var t=U,n=K;G(null),q(null);try{return e()}finally{G(t),q(n)}}function nn(e){K===null&&(U===null&&be(e),ye()),H&&ve(e)}function rn(e,t){var n=t.last;n===null?t.last=t.first=e:(n.next=e,e.prev=n,t.last=e)}function z(e,t){var n=K;n!==null&&n.f&8192&&(e|=te);var r={ctx:E,deps:null,nodes:null,f:e|b|512,first:null,fn:t,last:null,next:null,parent:n,b:n&&n.b,prev:null,teardown:null,wv:0,ac:null},i=r;if(e&4)at===null?lt.ensure().schedule(r):at.push(r);else if(t!==null){try{Vn(r)}catch(e){throw V(r),e}i.deps===null&&i.teardown===null&&i.nodes===null&&i.first===i.last&&!(i.f&524288)&&(i=i.first,e&16&&e&65536&&i!==null&&(i.f|=ae))}if(i!==null&&(i.parent=n,n!==null&&rn(i,n),U!==null&&U.f&2&&!(e&64))){var a=U;(a.effects??=[]).push(i)}return r}function an(){return U!==null&&!W}function on(e){let t=z(8,null);return O(t,y),t.teardown=e,t}function sn(e){nn(`$effect`);var t=K.f;if(!U&&t&32&&!(t&32768)){var n=E;(n.e??=[]).push(e)}else return cn(e)}function cn(e){return z(4|ce,e)}function ln(e){lt.ensure();let t=z(64|se,e);return()=>{V(t)}}function un(e){lt.ensure();let t=z(64|se,e);return(e={})=>new Promise(n=>{e.outro?xn(t,()=>{V(t),n(void 0)}):(V(t),n(void 0))})}function dn(e){return z(4,e)}function fn(e){return z(de|se,e)}function pn(e,t=0){return z(8|t,e)}function mn(e,t=[],n=[],r=[]){xt(r,t,n,t=>{z(8,()=>e(...t.map(Q)))})}function hn(e,t=0){return z(16|t,e)}function B(e){return z(32|se,e)}function gn(e){var t=e.teardown;if(t!==null){let e=H,n=U;On(!0),G(null);try{t.call(null)}finally{On(e),G(n)}}}function _n(e,t=!1){var n=e.first;for(e.first=e.last=null;n!==null;){let e=n.ac;e!==null&&tn(()=>{e.abort(x)});var r=n.next;n.f&64?n.parent=null:V(n,t),n=r}}function vn(e){for(var t=e.first;t!==null;){var n=t.next;t.f&32||V(t),t=n}}function V(e,t=!0){var n=!1;(t||e.f&262144)&&e.nodes!==null&&e.nodes.end!==null&&(yn(e.nodes.start,e.nodes.end),n=!0),O(e,ie),_n(e,t&&!n),Bn(e,0);var r=e.nodes&&e.nodes.t;if(r!==null)for(let e of r)e.stop();gn(e),e.f^=ie,e.f|=ne;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=e.ac=e.b=null}function yn(e,t){for(;e!==null;){var n=e===t?null:R(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 xn(e,t,n=!0){var r=[];Sn(e,r,!0);var i=()=>{n&&V(e),t&&t()},a=r.length;if(a>0){var o=()=>--a||i();for(var s of r)s.out(o)}else i()}function Sn(e,t,n){if(!(e.f&8192)){e.f^=te;var r=e.nodes&&e.nodes.t;if(r!==null)for(let e of r)(e.is_global||n)&&t.push(e);for(var i=e.first;i!==null;){var a=i.next,o=(i.f&65536)!=0||(i.f&32)!=0&&(e.f&16)!=0;Sn(i,t,o?n:!1),i=a}}}function Cn(e){wn(e,!0)}function wn(e,t){if(e.f&8192){e.f^=te,e.f&1024||(O(e,b),lt.ensure().schedule(e));for(var n=e.first;n!==null;){var r=n.next,i=(n.f&65536)!=0||(n.f&32)!=0;wn(n,i?t:!1),n=r}var a=e.nodes&&e.nodes.t;if(a!==null)for(let e of a)(e.is_global||t)&&e.in()}}function Tn(e,t){if(e.nodes)for(var n=e.nodes.start,r=e.nodes.end;n!==null;){var i=n===r?null:R(n);t.append(n),n=i}}var En=null,Dn=!1,H=!1;function On(e){H=e}var U=null,W=!1;function G(e){U=e}var K=null;function q(e){K=e}var J=null;function kn(e){U!==null&&(!Re||U.f&2)&&(J===null?J=[e]:J.push(e))}var Y=null,X=0,Z=null;function An(e){Z=e}var jn=1,Mn=0,Nn=Mn;function Pn(e){Nn=e}function Fn(){return++jn}function In(e){var t=e.f;if(t&2048)return!0;if(t&2&&(e.f&=~le),t&4096){for(var n=e.deps,r=n.length,i=0;i<r;i++){var a=n[i];if(In(a)&&jt(a),a.wv>e.wv)return!0}t&512&&j===null&&O(e,y)}return!1}function Ln(e,t,n=!0){var r=e.reactions;if(r!==null&&!(!Re&&J!==null&&o.call(J,e)))for(var i=0;i<r.length;i++){var a=r[i];a.f&2?Ln(a,t,!1):t===a&&(n?O(a,b):a.f&1024&&O(a,ee),mt(a))}}function Rn(e){var t=Y,n=X,r=Z,i=U,a=J,o=E,s=W,c=Nn,l=e.f;Y=null,X=0,Z=null,U=l&96?null:e,J=null,Be(e.ctx),W=!1,Nn=++Mn,e.ac!==null&&(tn(()=>{e.ac.abort(x)}),e.ac=null);try{e.f|=ue;var u=e.fn,d=u();e.f|=re;var f=e.deps,p=A?.is_fork;if(Y!==null){var m;if(p||Bn(e,X),f!==null&&X>0)for(f.length=X+Y.length,m=0;m<Y.length;m++)f[X+m]=Y[m];else e.deps=f=Y;if(an()&&e.f&512)for(m=X;m<f.length;m++)(f[m].reactions??=[]).push(e)}else !p&&f!==null&&X<f.length&&(Bn(e,X),f.length=X);if(Ue()&&Z!==null&&!W&&f!==null&&!(e.f&6146))for(m=0;m<Z.length;m++)Ln(Z[m],e);if(i!==null&&i!==e){if(Mn++,i.deps!==null)for(let e=0;e<n;e+=1)i.deps[e].rv=Mn;if(t!==null)for(let e of t)e.rv=Mn;Z!==null&&(r===null?r=Z:r.push(...Z))}return e.f&8388608&&(e.f^=fe),d}catch(e){return Je(e)}finally{e.f^=ue,Y=t,X=n,Z=r,U=i,J=a,Be(o),W=s,Nn=c}}function zn(e,t){let n=t.reactions;if(n!==null){var r=a.call(n,e);if(r!==-1){var i=n.length-1;i===0?n=t.reactions=null:(n[r]=n[i],n.pop())}}if(n===null&&t.f&2&&(Y===null||!o.call(Y,t))){var s=t;s.f&512&&(s.f^=512,s.f&=~le),Xe(s),Mt(s),Bn(s,0)}}function Bn(e,t){var n=e.deps;if(n!==null)for(var r=t;r<n.length;r++)zn(e,n[r])}function Vn(e){var t=e.f;if(!(t&16384)){O(e,y);var n=K,r=Dn;K=e,Dn=!0;try{t&16777232?vn(e):_n(e),gn(e);var i=Rn(e);e.teardown=typeof i==`function`?i:null,e.wv=jn}finally{Dn=r,K=n}}}function Q(e){var t=(e.f&2)!=0;if(En?.add(e),U!==null&&!W&&!(K!==null&&K.f&16384)&&(J===null||!o.call(J,e))){var n=U.deps;if(U.f&2097152)e.rv<Mn&&(e.rv=Mn,Y===null&&n!==null&&n[X]===e?X++:Y===null?Y=[e]:Y.push(e));else{(U.deps??=[]).push(e);var r=e.reactions;r===null?e.reactions=[U]:o.call(r,U)||r.push(U)}}if(H&&P.has(e))return P.get(e);if(t){var i=e;if(H){var a=i.v;return(!(i.f&1024)&&i.reactions!==null||Un(i))&&(a=At(i)),P.set(i,a),a}var s=(i.f&512)==0&&!W&&U!==null&&(Dn||(U.f&512)!=0),c=(i.f&re)===0;In(i)&&(s&&(i.f|=512),jt(i)),s&&!c&&(Nt(i),Hn(i))}if(j?.has(e))return j.get(e);if(e.f&8388608)throw e.v;return e.v}function Hn(e){if(e.f|=512,e.deps!==null)for(let t of e.deps)(t.reactions??=[]).push(e),t.f&2&&!(t.f&512)&&(Nt(t),Hn(t))}function Un(e){if(e.v===n)return!0;if(e.deps===null)return!1;for(let t of e.deps)if(P.has(t)||t.f&2&&Un(t))return!0;return!1}function Wn(e){var t=W;try{return W=!0,e()}finally{W=t}}var Gn=Symbol(`events`),Kn=new Set,qn=new Set;function Jn(e,t,n,r={}){function i(e){if(r.capture||$n.call(t,e),!e.cancelBubble)return tn(()=>n?.call(this,e))}return e.startsWith(`pointer`)||e.startsWith(`touch`)||e===`wheel`?Ke(()=>{t.addEventListener(e,i,r)}):t.addEventListener(e,i,r),i}function Yn(e,t,n,r,i){var a={capture:r,passive:i},o=Jn(e,t,n,a);(t===document.body||t===window||t===document||t instanceof HTMLMediaElement)&&on(()=>{t.removeEventListener(e,o,a)})}function Xn(e,t,n){(t[Gn]??={})[e]=n}function Zn(e){for(var t=0;t<e.length;t++)Kn.add(e[t]);for(var n of qn)n(e)}var Qn=null;function $n(e){var t=this,n=t.ownerDocument,r=e.type,i=e.composedPath?.()||[],a=i[0]||e.target;Qn=e;var o=0,s=Qn===e&&e[Gn];if(s){var c=i.indexOf(s);if(c!==-1&&(t===document||t===window)){e[Gn]=t;return}var u=i.indexOf(t);if(u===-1)return;c<=u&&(o=c)}if(a=i[o]||e.target,a!==t){l(e,`currentTarget`,{configurable:!0,get(){return a||n}});var d=U,f=K;G(null),q(null);try{for(var p,m=[];a!==null;){var h=a.assignedSlot||a.parentNode||a.host||null;try{var g=a[Gn]?.[r];g!=null&&(!a.disabled||e.target===a)&&g.call(a,e)}catch(e){p?m.push(e):p=e}if(e.cancelBubble||h===t||h===null)break;a=h}if(p){for(let e of m)queueMicrotask(()=>{throw e});throw p}}finally{e[Gn]=t,delete e.currentTarget,G(d),q(f)}}}var er=globalThis?.window?.trustedTypes&&globalThis.window.trustedTypes.createPolicy(`svelte-trusted-html`,{createHTML:e=>e});function tr(e){return er?.createHTML(e)??e}function nr(e){var t=$t(`template`);return t.innerHTML=tr(e.replaceAll(`<!>`,`<!---->`)),t.content}function rr(e,t){var n=K;n.nodes===null&&(n.nodes={start:e,end:t,a:null,t:null})}function ir(e,t){var n=(t&1)!=0,r=(t&2)!=0,i,a=!e.startsWith(`<!>`);return()=>{if(S)return rr(w,null),w;i===void 0&&(i=nr(a?e:`<!>`+e),n||(i=Jt(i)));var t=r||Wt?document.importNode(i,!0):i.cloneNode(!0);if(n){var o=Jt(t),s=t.lastChild;rr(o,s)}else rr(t,t);return t}}function ar(e,t){if(S){var n=K;(!(n.f&32768)||n.nodes.end===null)&&(n.nodes.end=w),Ae();return}e!==null&&e.before(t)}[...`allowfullscreen.async.autofocus.autoplay.checked.controls.default.disabled.formnovalidate.indeterminate.inert.ismap.loop.multiple.muted.nomodule.novalidate.open.playsinline.readonly.required.reversed.seamless.selected.webkitdirectory.defer.disablepictureinpicture.disableremoteplayback`.split(`.`)];var or=[`touchstart`,`touchmove`];function sr(e){return or.includes(e)}function cr(e,t){return dr(e,t)}function lr(e,n){qt(),n.intro=n.intro??!1;let r=n.target,i=S,a=w;try{for(var o=Jt(r);o&&(o.nodeType!==8||o.data!==`[`);)o=R(o);if(!o)throw t;C(!0),T(o);let i=dr(e,{...n,anchor:o});return C(!1),i}catch(i){if(i instanceof Error&&i.message.split(`
2
+ `).some(e=>e.startsWith(`https://svelte.dev/e/`)))throw i;return i!==t&&console.warn(`Failed to hydrate: `,i),n.recover===!1&&Se(),qt(),Zt(r),C(!1),cr(e,n)}finally{C(i),T(a)}}var ur=new Map;function dr(e,{target:n,anchor:r,props:i={},events:a,context:o,intro:c=!0,transformError:l}){qt();var u=void 0,d=un(()=>{var c=r??n.appendChild(L());yt(c,{pending:()=>{}},n=>{Ve({});var r=E;if(o&&(r.c=o),a&&(i.$$events=a),S&&rr(n,null),u=e(n,i)||{},S&&(K.nodes.end=w,w===null||w.nodeType!==8||w.data!==`]`))throw Oe(),t;He()},l);var d=new Set,f=e=>{for(var t=0;t<e.length;t++){var r=e[t];if(!d.has(r)){d.add(r);var i=sr(r);for(let e of[n,document]){var a=ur.get(e);a===void 0&&(a=new Map,ur.set(e,a));var o=a.get(r);o===void 0?(e.addEventListener(r,$n,{passive:i}),a.set(r,1)):a.set(r,o+1)}}}};return f(s(Kn)),qn.add(f),()=>{for(var e of d)for(let r of[n,document]){var t=ur.get(r),i=t.get(e);--i==0?(r.removeEventListener(e,$n),t.delete(e),t.size===0&&ur.delete(r)):t.set(e,i)}qn.delete(f),c!==r&&c.parentNode?.removeChild(c)}});return fr.set(u,d),u}var fr=new WeakMap;function pr(e,t){let n=fr.get(e);return n?(fr.delete(e),n(t)):Promise.resolve()}var mr=class{anchor;#e=new Map;#t=new Map;#n=new Map;#r=new Set;#i=!0;constructor(e,t=!0){this.anchor=e,this.#i=t}#a=e=>{if(this.#e.has(e)){var t=this.#e.get(e),n=this.#t.get(t);if(n)Cn(n),this.#r.delete(t);else{var r=this.#n.get(t);r&&(this.#t.set(t,r.effect),this.#n.delete(t),r.fragment.lastChild.remove(),this.anchor.before(r.fragment),n=r.effect)}for(let[t,n]of this.#e){if(this.#e.delete(t),t===e)break;let r=this.#n.get(n);r&&(V(r.effect),this.#n.delete(n))}for(let[e,r]of this.#t){if(e===t||this.#r.has(e))continue;let i=()=>{if(Array.from(this.#e.values()).includes(e)){var t=document.createDocumentFragment();Tn(r,t),t.append(L()),this.#n.set(e,{effect:r,fragment:t})}else V(r);this.#r.delete(e),this.#t.delete(e)};this.#i||!n?(this.#r.add(e),xn(r,i,!1)):i()}}};#o=e=>{this.#e.delete(e);let t=Array.from(this.#e.values());for(let[e,n]of this.#n)t.includes(e)||(V(n.effect),this.#n.delete(e))};ensure(e,t){var n=A,r=Qt();if(t&&!this.#t.has(e)&&!this.#n.has(e))if(r){var i=document.createDocumentFragment(),a=L();i.append(a),this.#n.set(e,{effect:B(()=>t(a)),fragment:i})}else this.#t.set(e,B(()=>t(this.anchor)));if(this.#e.set(n,e),r){for(let[t,r]of this.#t)t===e?n.unskip_effect(r):n.skip_effect(r);for(let[t,r]of this.#n)t===e?n.unskip_effect(r.effect):n.skip_effect(r.effect);n.oncommit(this.#a),n.ondiscard(this.#o)}else S&&(this.anchor=w),this.#a(n)}};function hr(e,t,n=!1){var r;S&&(r=w,Ae());var i=new mr(e),a=n?ae:0;function o(e,t){if(S){var n=Pe(r);if(e!==parseInt(n.substring(1))){var a=Ne();T(a),i.anchor=a,C(!1),i.ensure(e,t),C(!0);return}}i.ensure(e,t)}hn(()=>{var e=!1;t((t,n=0)=>{e=!0,o(n,t)}),e||o(-1,null)},a)}function gr(e,t,n,r,i){S&&Ae();var a=t.$$slots?.[n],o=!1;a===!0&&(a=t[n===`default`?`children`:n],o=!0),a===void 0?i!==null&&i(e):a(e,o?()=>r:r)}function _r(e,t){let n=null,r=S;var i;if(S){n=w;for(var a=Jt(document.head);a!==null&&(a.nodeType!==8||a.data!==e);)a=R(a);if(a===null)C(!1);else{var o=R(a);a.remove(),T(o)}}S||(i=document.head.appendChild(L()));try{hn(()=>t(i),oe|se)}finally{r&&(C(!0),T(n))}}function vr(e,t){dn(()=>{var n=e.getRootNode(),r=n.host?n:n.head??n.ownerDocument.head;if(!r.querySelector(`#`+t.hash)){let e=$t(`style`);e.id=t.hash,e.textContent=t.code,r.appendChild(e)}})}var yr=[...`
3
+ \r\f\xA0\v`];function br(e,t,n){var r=e==null?``:``+e;if(t&&(r=r?r+` `+t:t),n){for(var i of Object.keys(n))if(n[i])r=r?r+` `+i:i;else if(r.length)for(var a=i.length,o=0;(o=r.indexOf(i,o))>=0;){var s=o+a;(o===0||yr.includes(r[o-1]))&&(s===r.length||yr.includes(r[s]))?r=(o===0?``:r.substring(0,o))+r.substring(s+1):o=s}}return r===``?null:r}function xr(e,t=!1){var n=t?` !important;`:`;`,r=``;for(var i of Object.keys(e)){var a=e[i];a!=null&&a!==``&&(r+=` `+i+`: `+a+n)}return r}function Sr(e){return e[0]!==`-`||e[1]!==`-`?e.toLowerCase():e}function Cr(e,t){if(t){var n=``,r,i;if(Array.isArray(t)?(r=t[0],i=t[1]):r=t,e){e=String(e).replaceAll(/\s*\/\*.*?\*\/\s*/g,``).trim();var a=!1,o=0,s=!1,c=[];r&&c.push(...Object.keys(r).map(Sr)),i&&c.push(...Object.keys(i).map(Sr));var l=0,u=-1;let t=e.length;for(var d=0;d<t;d++){var f=e[d];if(s?f===`/`&&e[d-1]===`*`&&(s=!1):a?a===f&&(a=!1):f===`/`&&e[d+1]===`*`?s=!0:f===`"`||f===`'`?a=f:f===`(`?o++:f===`)`&&o--,!s&&a===!1&&o===0){if(f===`:`&&u===-1)u=d;else if(f===`;`||d===t-1){if(u!==-1){var p=Sr(e.substring(l,u).trim());if(!c.includes(p)){f!==`;`&&d++;var m=e.substring(l,d).trim();n+=` `+m+`;`}}l=d+1,u=-1}}}}return r&&(n+=xr(r)),i&&(n+=xr(i,!0)),n=n.trim(),n===``?null:n}return e==null?null:String(e)}function wr(e,t,n,r,i,a){var o=e.__className;if(S||o!==n||o===void 0){var s=br(n,r,a);(!S||s!==e.getAttribute(`class`))&&(s==null?e.removeAttribute(`class`):t?e.className=s:e.setAttribute(`class`,s)),e.__className=n}else if(a&&i!==a)for(var c in a){var l=!!a[c];(i==null||l!==!!i[c])&&e.classList.toggle(c,l)}return a}function Tr(e,t={},n,r){for(var i in n){var a=n[i];t[i]!==a&&(n[i]==null?e.style.removeProperty(i):e.style.setProperty(i,a,r))}}function Er(e,t,n,r){var i=e.__style;if(S||i!==t){var a=Cr(t,r);(!S||a!==e.getAttribute(`style`))&&(a==null?e.removeAttribute(`style`):e.style.cssText=a),e.__style=t}else r&&(Array.isArray(r)?(Tr(e,n?.[0],r[0]),Tr(e,n?.[1],r[1],`important`)):Tr(e,n,r));return r}var Dr=Symbol(`is custom element`),Or=Symbol(`is html`),kr=ge?`link`:`LINK`;function Ar(e,t,n,r){var i=Mr(e);S&&(i[t]=e.getAttribute(t),t===`src`||t===`srcset`||t===`href`&&e.nodeName===kr)||i[t]!==(i[t]=n)&&(t===`loading`&&(e[he]=n),n==null?e.removeAttribute(t):typeof n!=`string`&&Pr(e).includes(t)?e[t]=n:e.setAttribute(t,n))}function jr(e,t,n){var r=U,i=K;let a=S;S&&C(!1),G(null),q(null);try{t!==`style`&&(Nr.has(e.getAttribute(`is`)||e.nodeName)||!customElements||customElements.get(e.getAttribute(`is`)||e.nodeName.toLowerCase())?Pr(e).includes(t):n&&typeof n==`object`)?e[t]=n:Ar(e,t,n==null?n:String(n))}finally{G(r),q(i),a&&C(!0)}}function Mr(e){return e.__attributes??={[Dr]:e.nodeName.includes(`-`),[Or]:e.namespaceURI===r}}var Nr=new Map;function Pr(e){var t=e.getAttribute(`is`)||e.nodeName,n=Nr.get(t);if(n)return n;Nr.set(t,n=[]);for(var r,i=e,a=Element.prototype;a!==i;){for(var o in r=d(i),r)r[o].set&&n.push(o);i=m(i)}return n}function $(e,t,n,r){var i=!ze||(n&2)!=0,a=(n&8)!=0,o=(n&16)!=0,s=r,c=!0,l=()=>(c&&(c=!1,s=o?Wn(r):r),s);let d;if(a){var f=pe in e||me in e;d=u(e,t)?.set??(f&&t in e?n=>e[t]=n:void 0)}var p,m=!1;a?[p,m]=tt(()=>e[t]):p=e[t],p===void 0&&r!==void 0&&(p=l(),d&&(i&&Ce(t),d(p)));var h=i?()=>{var n=e[t];return n===void 0?l():(c=!0,n)}:()=>{var n=e[t];return n!==void 0&&(s=void 0),n===void 0?s:n};if(i&&!(n&4))return h;if(d){var g=e.$$legacy;return(function(e,t){return arguments.length>0?((!i||!t||g||m)&&d(t?h():e),e):h()})}var _=!1,v=(n&1?Tt:Dt)(()=>(_=!1,h()));a&&Q(v);var y=K;return(function(e,t){if(arguments.length>0){let n=t?Q(v):i&&a?Ht(e):e;return I(v,n),_=!0,s!==void 0&&(s=n),e}return H&&_||y.f&16384?v.v:Q(v)})}function Fr(e){return new Ir(e)}var Ir=class{#e;#t;constructor(e){var t=new Map,n=(e,n)=>{var r=Lt(n,!1,!1);return t.set(e,r),r};let r=new Proxy({...e.props||{},$$events:{}},{get(e,r){return Q(t.get(r)??n(r,Reflect.get(e,r)))},has(e,r){return r===me?!0:(Q(t.get(r)??n(r,Reflect.get(e,r))),Reflect.has(e,r))},set(e,r,i){return I(t.get(r)??n(r,i),i),Reflect.set(e,r,i)}});this.#t=(e.hydrate?lr:cr)(e.component,{target:e.target,anchor:e.anchor,props:r,context:e.context,intro:e.intro??!1,recover:e.recover,transformError:e.transformError}),!Re&&(!e?.props?.$$host||e.sync===!1)&&M(),this.#e=r.$$events;for(let e of Object.keys(this.#t))e===`$set`||e===`$destroy`||e===`$on`||l(this,e,{get(){return this.#t[e]},set(t){this.#t[e]=t},enumerable:!0});this.#t.$set=e=>{Object.assign(r,e)},this.#t.$destroy=()=>{pr(this.#t)}}$set(e){this.#t.$set(e)}$on(e,t){this.#e[e]=this.#e[e]||[];let n=(...e)=>t.call(this,...e);return this.#e[e].push(n),()=>{this.#e[e]=this.#e[e].filter(e=>e!==n)}}$destroy(){this.#t.$destroy()}},Lr;typeof HTMLElement==`function`&&(Lr=class extends HTMLElement{$$ctor;$$s;$$c;$$cn=!1;$$d={};$$r=!1;$$p_d={};$$l={};$$l_u=new Map;$$me;$$shadowRoot=null;constructor(e,t,n){super(),this.$$ctor=e,this.$$s=t,n&&(this.$$shadowRoot=this.attachShadow(n))}addEventListener(e,t,n){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(t),this.$$c){let n=this.$$c.$on(e,t);this.$$l_u.set(t,n)}super.addEventListener(e,t,n)}removeEventListener(e,t,n){if(super.removeEventListener(e,t,n),this.$$c){let e=this.$$l_u.get(t);e&&(e(),this.$$l_u.delete(t))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){if(await Promise.resolve(),!this.$$cn||this.$$c)return;function e(e){return t=>{let n=$t(`slot`);e!==`default`&&(n.name=e),ar(t,n)}}let t={},n=zr(this);for(let r of this.$$s)r in n&&(r===`default`&&!this.$$d.children?(this.$$d.children=e(r),t.default=!0):t[r]=e(r));for(let e of this.attributes){let t=this.$$g_p(e.name);t in this.$$d||(this.$$d[t]=Rr(t,e.value,this.$$p_d,`toProp`))}for(let e in this.$$p_d)!(e in this.$$d)&&this[e]!==void 0&&(this.$$d[e]=this[e],delete this[e]);this.$$c=Fr({component:this.$$ctor,target:this.$$shadowRoot||this,props:{...this.$$d,$$slots:t,$$host:this}}),this.$$me=ln(()=>{pn(()=>{this.$$r=!0;for(let e of c(this.$$c)){if(!this.$$p_d[e]?.reflect)continue;this.$$d[e]=this.$$c[e];let t=Rr(e,this.$$d[e],this.$$p_d,`toAttribute`);t==null?this.removeAttribute(this.$$p_d[e].attribute||e):this.setAttribute(this.$$p_d[e].attribute||e,t)}this.$$r=!1})});for(let e in this.$$l)for(let t of this.$$l[e]){let n=this.$$c.$on(e,t);this.$$l_u.set(t,n)}this.$$l={}}}attributeChangedCallback(e,t,n){this.$$r||(e=this.$$g_p(e),this.$$d[e]=Rr(e,n,this.$$p_d,`toProp`),this.$$c?.$set({[e]:this.$$d[e]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$me(),this.$$c=void 0)})}$$g_p(e){return c(this.$$p_d).find(t=>this.$$p_d[t].attribute===e||!this.$$p_d[t].attribute&&t.toLowerCase()===e)||e}});function Rr(e,t,n,r){let i=n[e]?.type;if(t=i===`Boolean`&&typeof t!=`boolean`?t!=null:t,!r||!n[e])return t;if(r===`toAttribute`)switch(i){case`Object`:case`Array`:return t==null?null:JSON.stringify(t);case`Boolean`:return t?``:null;case`Number`:return t??null;default:return t}else switch(i){case`Object`:case`Array`:return t&&JSON.parse(t);case`Boolean`:return t;case`Number`:return t==null?t:+t;default:return t}}function zr(e){let t={};return e.childNodes.forEach(e=>{t[e.slot||`default`]=!0}),t}function Br(e,t,n,r,i,a){let o=class extends Lr{constructor(){super(e,n,i),this.$$p_d=t}static get observedAttributes(){return c(t).map(e=>(t[e].attribute||e).toLowerCase())}};return c(t).forEach(e=>{l(o.prototype,e,{get(){return this.$$c&&e in this.$$c?this.$$c[e]:this.$$d[e]},set(n){n=Rr(e,n,t),this.$$d[e]=n;var r=this.$$c;r&&(u(r,e)?.get?r[e]=n:r.$set({[e]:n}))}})}),r.forEach(e=>{l(o.prototype,e,{get(){return this.$$c?.[e]}})}),a&&(o=a(o)),e.element=o,o}var Vr={name:`@htmlbricks/svelte-webcomponent`,private:!0,version:`0.66.7`,type:`module`,scripts:{dev:`vite --open`,build:`vite build`,"publish:wc":`node publish.ts`,"build:wc":`node build.ts`,"watch:wc":`node watch.ts`,preview:`vite preview`,check:`svelte-check --tsconfig ./tsconfig.app.json && tsc -p tsconfig.node.json`,"release:patch":`npm version patch && git push && git push --tags && npm run build:wc && npm run publish:wc`,"release:minor":`npm version minor && git push && git push --tags && npm run build:wc && npm run publish:wc`,"release:major":`npm version major && git push && git push --tags && npm run build:wc && npm run publish:wc`},devDependencies:{"@google-pay/button-element":`^3.2.1`,"@paypal/paypal-js":`^9.5.0`,"@sveltejs/vite-plugin-svelte":`^7.0.0`,"@tsconfig/svelte":`^5.0.8`,"@types/debounce":`^1.2.4`,"@types/node":`^24.10.1`,"@types/rgb-hex":`^3.0.0`,"chart.js":`^4.5.1`,"date-holidays":`^3.26.12`,dayjs:`^1.11.20`,"hls.js":`^1.6.15`,"html5-joystick-new":`^0.0.6`,ol:`^10.8.0`,"perfect-freehand":`^1.2.3`,prettier:`^3.8.1`,"rollup-plugin-terser":`^7.0.2`,"sass-embedded":`^1.98.0`,"simple-serverless-auth-client":`^0.0.6`,"simple-webrtc-element":`^0.0.1`,"simple-webrtc-element-whep":`^0.2.3`,"style-to-object":`^1.0.14`,svelte:`^5.55.0`,"svelte-check":`^4.4.5`,terser:`^5.46.1`,"ts-json-schema-generator":`^2.9.0`,typescript:`^6.0.2`,vite:`^8.0.3`},dependencies:{"@floating-ui/dom":`^1.7.6`,"@popperjs/core":`^2.11.8`,bootstrap:`^5.3.8`,debounce:`^3.0.0`,"html-colors":`^0.0.6`,marked:`^17.0.5`,raphael:`^2.3.0`,"rgb-hex":`^4.1.0`,"wc-js-utils":`^0.4.7`}};function Hr(e){let t=e?.repoName.split(`/`)?.[1]||e?.repoName;if(!t)throw Error(`wrong componentPath `+e?.repoName);if(!e?.version)throw Error(`wrong version `+e?.version);let n=e?.iifePath||`main.iife.js`;if(!document.getElementById(t+`-script`))try{let r=document.createElement(`script`);if(r.id=t+`-script`,r.src=`https://cdn.jsdelivr.net/npm/${e.repoName}@${e.version}/${n}`,e?.local)r.src=`${e.local}`;else if(location.href.includes(`localhost:6006`)){let e=t.split(`-`)[0];r.src=`http://localhost:6006/webcomponents/${t.replace(e+`-`,``)}/${n}`}document.head.appendChild(r)}catch(e){console.warn(e)}}var Ur=ir(`<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@latest/font/bootstrap-icons.css" class="svelte-1evb3mn"/>`),Wr=ir(`<div></div>`),Gr=ir(`<div id="webcomponent" class="svelte-1evb3mn"><!> <div class="offcanvas offcanvas-start show svelte-1evb3mn" tabindex="-1" aria-labelledby="offcanvasExampleLabel"><hb-sidebar-desktop></hb-sidebar-desktop></div> <!></div>`,2),Kr={hash:`svelte-1evb3mn`,code:`@charset "UTF-8";
3
4
  @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
5
  @import url("https://cdn.jsdelivr.net/npm/bootstrap-icons@latest/font/bootstrap-icons.css");
5
6
  /*!
@@ -141,5 +142,5 @@
141
142
  @media print {
142
143
  }#webcomponent.svelte-1evb3mn {font-family:"Roboto", sans-serif;min-height:100vh;min-height:-webkit-fill-available;}
143
144
  @media (min-width: 768px) {
144
- }.offcanvas-start.svelte-1evb3mn {width:240px;}hb-sidebar-desktop.svelte-1evb3mn {width:100%;}`};function zn(e,t){Yt(t,!0),mi(e,Ci);let n=ie(t,"id",7),r=ie(t,"type",7,"autohide"),i=ie(t,"navlinks",7,void 0),s=ie(t,"companylogouri",7,""),l=ie(t,"navpage",7,"home"),a=ie(t,"groups",23,()=>[]),o=ie(t,"opened",7,!1),f=ie(t,"companytitle",7,""),u=ie(t,"enablefooter",7,!1),d=ne(!1);Ur(()=>{f()||f(""),(!u()||u()==="no")&&u(!1),r()==="open"||o()&&o()!=="no"?(o(!0),P(d)||c("offcanvasswitch",{isOpen:o()}),Y(d,!0)):o(!1);try{typeof a()=="string"&&a(JSON.parse(a()))}catch{}});function c(b,ve){t.$$host.dispatchEvent(new CustomEvent(b,{detail:ve}))}function h(b){o(b),Y(d,!1),c("offcanvasswitch",{isOpen:o()})}Bn({repoName:"@htmlbricks/hb-sidenav-link",version:jn.version}),Bn({repoName:"@htmlbricks/hb-sidebar-desktop",version:jn.version});var v={get id(){return n()},set id(b){n(b),W()},get type(){return r()},set type(b="autohide"){r(b),W()},get navlinks(){return i()},set navlinks(b=void 0){i(b),W()},get companylogouri(){return s()},set companylogouri(b=""){s(b),W()},get navpage(){return l()},set navpage(b="home"){l(b),W()},get groups(){return a()},set groups(b=[]){a(b),W()},get opened(){return o()},set opened(b=!1){o(b),W()},get companytitle(){return f()},set companytitle(b=""){f(b),W()},get enablefooter(){return u()},set enablefooter(b=!1){u(b),W()}},m=Oi();pi("1evb3mn",b=>{var ve=Ni();Ze(b,ve)});var y=dn(m);_i(y,t,"test",{});var S=hn(y,2),$=dn(S);Ie(()=>$t($,"navlinks",i())),Ie(()=>$t($,"navpage",l())),Ie(()=>$t($,"companytitle",f())),In($,1,"svelte-1evb3mn"),jt(S);var Z=hn(S,2);{var tt=b=>{var ve=Ri();Ie(()=>{In(ve,1,`modal-backdrop fade ${o()?"show":""}`,"svelte-1evb3mn"),Ln(ve,`z-index:1040; ${o()?"":"visibility:hidden"}`)}),ii("click",ve,()=>h(!1)),Ze(b,ve)};vi(Z,b=>{r()==="autohide"&&b(tt)})}return jt(m),Ie(()=>Ln(S,`overflow-y: auto; visibility: visible; ${o()?"transform:none!important":"transform:translateX(-100%)!important"};`)),ri("pageChange",$,b=>c("pageChange",b.detail)),Ze(e,m),qt(v)}si(["click"]),customElements.define("hb-offcanvas",Ai(zn,{id:{},type:{},navlinks:{},companylogouri:{},navpage:{},groups:{},opened:{},companytitle:{},enablefooter:{}},["test"],[],{mode:"open"})),Et.Component=zn,Object.defineProperty(Et,Symbol.toStringTag,{value:"Module"})})(this.offcanvas=this.offcanvas||{});
145
- //# sourceMappingURL=main.iife.js.map
145
+ }.offcanvas-start.svelte-1evb3mn {width:240px;}hb-sidebar-desktop.svelte-1evb3mn {width:100%;}`};function qr(e,t){Ve(t,!0),vr(e,Kr);let n=$(t,`id`,7),r=$(t,`type`,7,`autohide`),i=$(t,`navlinks`,7,void 0),a=$(t,`companylogouri`,7,``),o=$(t,`navpage`,7,`home`),s=$(t,`groups`,23,()=>[]),c=$(t,`opened`,7,!1),l=$(t,`companytitle`,7,``),u=$(t,`enablefooter`,7,!1),d=F(!1);sn(()=>{l()||l(``),(!u()||u()===`no`)&&u(!1),r()===`open`||c()&&c()!==`no`?(c(!0),Q(d)||f(`offcanvasswitch`,{isOpen:c()}),I(d,!0)):c(!1);try{typeof s()==`string`&&s(JSON.parse(s()))}catch{}});function f(e,n){t.$$host.dispatchEvent(new CustomEvent(e,{detail:n}))}function p(e){c(e),I(d,!1),f(`offcanvasswitch`,{isOpen:c()})}Hr({repoName:`@htmlbricks/hb-sidenav-link`,version:Vr.version}),Hr({repoName:`@htmlbricks/hb-sidebar-desktop`,version:Vr.version});var m={get id(){return n()},set id(e){n(e),M()},get type(){return r()},set type(e=`autohide`){r(e),M()},get navlinks(){return i()},set navlinks(e=void 0){i(e),M()},get companylogouri(){return a()},set companylogouri(e=``){a(e),M()},get navpage(){return o()},set navpage(e=`home`){o(e),M()},get groups(){return s()},set groups(e=[]){s(e),M()},get opened(){return c()},set opened(e=!1){c(e),M()},get companytitle(){return l()},set companytitle(e=``){l(e),M()},get enablefooter(){return u()},set enablefooter(e=!1){u(e),M()}},h=Gr();_r(`1evb3mn`,e=>{ar(e,Ur())});var g=Yt(h);gr(g,t,`test`,{},null);var _=Xt(g,2),v=Yt(_);mn(()=>jr(v,`navlinks`,i())),mn(()=>jr(v,`navpage`,o())),mn(()=>jr(v,`companytitle`,l())),wr(v,1,`svelte-1evb3mn`),je(_);var y=Xt(_,2),b=e=>{var t=Wr();mn(()=>{wr(t,1,`modal-backdrop fade ${c()?`show`:``}`,`svelte-1evb3mn`),Er(t,`z-index:1040; ${c()?``:`visibility:hidden`}`)}),Xn(`click`,t,()=>p(!1)),ar(e,t)};return hr(y,e=>{r()===`autohide`&&e(b)}),je(h),mn(()=>Er(_,`overflow-y: auto; visibility: visible; ${c()?`transform:none!important`:`transform:translateX(-100%)!important`};`)),Yn(`pageChange`,v,e=>f(`pageChange`,e.detail)),ar(e,h),He(m)}Zn([`click`]),customElements.define(`hb-offcanvas`,Br(qr,{id:{},type:{},navlinks:{},companylogouri:{},navpage:{},groups:{},opened:{},companytitle:{},enablefooter:{}},[`test`],[],{mode:`open`})),e.Component=qr})(this.offcanvas=this.offcanvas||{});
146
+ //# sourceMappingURL=main.iife.js.map