@htmlbricks/hb-input-checkbox 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/main.iife.js.map +1 -1
- package/manifest.json +2 -39
- package/package.json +1 -1
package/main.iife.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
(function(yt){"use strict";typeof window<"u"&&((window.__svelte??={}).v??=new Set).add("5");const Ar=1,Nr=2,$t="[",Qe="[!",Et="]",de={},$=Symbol(),Cr="http://www.w3.org/1999/xhtml",et=!1;var Rr=Array.isArray,Or=Array.prototype.indexOf,Mr=Array.from,De=Object.keys,Ie=Object.defineProperty,he=Object.getOwnPropertyDescriptor,Pr=Object.getOwnPropertyDescriptors,Lr=Object.prototype,Dr=Array.prototype,xt=Object.getPrototypeOf,Tt=Object.isExtensible;function Ir(e){for(var t=0;t<e.length;t++)e[t]()}function St(){var e,t,r=new Promise((n,s)=>{e=n,t=s});return{promise:r,resolve:e,reject:t}}const y=2,tt=4,rt=8,V=16,z=32,ee=64,je=128,j=512,E=1024,A=2048,K=4096,B=8192,G=16384,Fe=32768,ve=65536,At=1<<17,Nt=1<<18,ie=1<<19,jr=1<<20,oe=32768,nt=1<<21,st=1<<22,te=1<<23,it=Symbol("$state"),Fr=Symbol("legacy props"),qr=Symbol(""),_e=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"},ot=3,$e=8;function Br(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function Ur(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function Yr(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function Hr(e){throw new Error("https://svelte.dev/e/effect_orphan")}function Vr(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function zr(){throw new Error("https://svelte.dev/e/hydration_failed")}function Kr(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function Gr(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function Wr(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function Jr(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}function qe(e){console.warn("https://svelte.dev/e/hydration_mismatch")}function Xr(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}let p=!1;function be(e){p=e}let g;function F(e){if(e===null)throw qe(),de;return g=e}function at(){return F(X(g))}function lt(e){if(p){if(X(g)!==null)throw qe(),de;g=e}}function Zr(e=1){if(p){for(var t=e,r=g;t--;)r=X(r);g=r}}function Ct(e=!0){for(var t=0,r=g;;){if(r.nodeType===$e){var n=r.data;if(n===Et){if(t===0)return r;t-=1}else(n===$t||n===Qe)&&(t+=1)}var s=X(r);e&&r.remove(),r=s}}function Qr(e){if(!e||e.nodeType!==$e)throw qe(),de;return e.data}function Rt(e){return e===this.v}function en(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function tn(e){return!en(e,this.v)}let rn=!1,M=null;function pe(e){M=e}function Ot(e,t=!1,r){M={p:M,i:!1,c:null,e:null,s:e,x:null,l:null}}function Mt(e){var t=M,r=t.e;if(r!==null){t.e=null;for(var n of r)er(n)}return e!==void 0&&(t.x=e),t.i=!0,M=t.p,e??{}}function Pt(){return!0}let ae=[];function Lt(){var e=ae;ae=[],Ir(e)}function Be(e){if(ae.length===0&&!Ee){var t=ae;queueMicrotask(()=>{t===ae&&Lt()})}ae.push(e)}function nn(){for(;ae.length>0;)Lt()}function Dt(e){var t=_;if(t===null)return v.f|=te,e;if((t.f&Fe)===0){if((t.f&je)===0)throw e;t.b.error(e)}else ge(e,t)}function ge(e,t){for(;t!==null;){if((t.f&je)!==0)try{t.b.error(e);return}catch(r){e=r}t=t.parent}throw e}const Ue=new Set;let w=null,P=null,L=[],Ye=null,ft=!1,Ee=!1;class q{committed=!1;current=new Map;previous=new Map;#t=new Set;#e=new Set;#r=0;#n=0;#l=null;#i=[];#s=[];skipped_effects=new Set;is_fork=!1;is_deferred(){return this.is_fork||this.#n>0}process(t){L=[],this.apply();var r={parent:null,effect:null,effects:[],render_effects:[],block_effects:[]};for(const n of t)this.#o(n,r);this.is_fork||this.#u(),this.is_deferred()?(this.#a(r.effects),this.#a(r.render_effects),this.#a(r.block_effects)):(w=null,jt(r.render_effects),jt(r.effects),this.#l?.resolve()),P=null}#o(t,r){t.f^=E;for(var n=t.first;n!==null;){var s=n.f,i=(s&(z|ee))!==0,o=i&&(s&E)!==0,a=o||(s&B)!==0||this.skipped_effects.has(n);if((n.f&je)!==0&&n.b?.is_pending()&&(r={parent:r,effect:n,effects:[],render_effects:[],block_effects:[]}),!a&&n.fn!==null){i?n.f^=E:(s&tt)!==0?r.effects.push(n):Re(n)&&((n.f&V)!==0&&r.block_effects.push(n),Oe(n));var l=n.first;if(l!==null){n=l;continue}}var f=n.parent;for(n=n.next;n===null&&f!==null;)f===r.effect&&(this.#a(r.effects),this.#a(r.render_effects),this.#a(r.block_effects),r=r.parent),n=f.next,f=f.parent}}#a(t){for(const r of t)((r.f&A)!==0?this.#i:this.#s).push(r),this.#f(r.deps),x(r,E)}#f(t){if(t!==null)for(const r of t)(r.f&y)===0||(r.f&oe)===0||(r.f^=oe,this.#f(r.deps))}capture(t,r){this.previous.has(t)||this.previous.set(t,r),(t.f&te)===0&&(this.current.set(t,t.v),P?.set(t,t.v))}activate(){w=this,this.apply()}deactivate(){w===this&&(w=null,P=null)}flush(){if(this.activate(),L.length>0){if(It(),w!==null&&w!==this)return}else this.#r===0&&this.process([]);this.deactivate()}discard(){for(const t of this.#e)t(this);this.#e.clear()}#u(){if(this.#n===0){for(const t of this.#t)t();this.#t.clear()}this.#r===0&&this.#c()}#c(){if(Ue.size>1){this.previous.clear();var t=P,r=!0,n={parent:null,effect:null,effects:[],render_effects:[],block_effects:[]};for(const i of Ue){if(i===this){r=!1;continue}const o=[];for(const[l,f]of this.current){if(i.current.has(l))if(r&&f!==i.current.get(l))i.current.set(l,f);else continue;o.push(l)}if(o.length===0)continue;const a=[...i.current.keys()].filter(l=>!this.current.has(l));if(a.length>0){var s=L;L=[];const l=new Set,f=new Map;for(const c of o)Ft(c,a,l,f);if(L.length>0){w=i,i.apply();for(const c of L)i.#o(c,n);i.deactivate()}L=s}}w=null,P=t}this.committed=!0,Ue.delete(this)}increment(t){this.#r+=1,t&&(this.#n+=1)}decrement(t){this.#r-=1,t&&(this.#n-=1),this.revive()}revive(){for(const t of this.#i)x(t,A),le(t);for(const t of this.#s)x(t,K),le(t);this.#i=[],this.#s=[],this.flush()}oncommit(t){this.#t.add(t)}ondiscard(t){this.#e.add(t)}settled(){return(this.#l??=St()).promise}static ensure(){if(w===null){const t=w=new q;Ue.add(w),Ee||q.enqueue(()=>{w===t&&t.flush()})}return w}static enqueue(t){Be(t)}apply(){}}function He(e){var t=Ee;Ee=!0;try{for(var r;;){if(nn(),L.length===0&&(w?.flush(),L.length===0))return Ye=null,r;It()}}finally{Ee=t}}function It(){var e=se;ft=!0;var t=null;try{var r=0;for(Ge(!0);L.length>0;){var n=q.ensure();if(r++>1e3){var s,i;sn()}n.process(L),re.clear()}}finally{ft=!1,Ge(e),Ye=null}}function sn(){try{Vr()}catch(e){ge(e,Ye)}}let W=null;function jt(e){var t=e.length;if(t!==0){for(var r=0;r<t;){var n=e[r++];if((n.f&(G|B))===0&&Re(n)&&(W=new Set,Oe(n),n.deps===null&&n.first===null&&n.nodes_start===null&&(n.teardown===null&&n.ac===null?sr(n):n.fn=null),W?.size>0)){re.clear();for(const s of W){if((s.f&(G|B))!==0)continue;const i=[s];let o=s.parent;for(;o!==null;)W.has(o)&&(W.delete(o),i.push(o)),o=o.parent;for(let a=i.length-1;a>=0;a--){const l=i[a];(l.f&(G|B))===0&&Oe(l)}}W.clear()}}W=null}}function Ft(e,t,r,n){if(!r.has(e)&&(r.add(e),e.reactions!==null))for(const s of e.reactions){const i=s.f;(i&y)!==0?Ft(s,t,r,n):(i&(st|V))!==0&&(i&A)===0&&qt(s,t,n)&&(x(s,A),le(s))}}function qt(e,t,r){const n=r.get(e);if(n!==void 0)return n;if(e.deps!==null)for(const s of e.deps){if(t.includes(s))return!0;if((s.f&y)!==0&&qt(s,t,r))return r.set(s,!0),!0}return r.set(e,!1),!1}function le(e){for(var t=Ye=e;t.parent!==null;){t=t.parent;var r=t.f;if(ft&&t===_&&(r&V)!==0&&(r&Nt)===0)return;if((r&(ee|z))!==0){if((r&E)===0)return;t.f^=E}}L.push(t)}function on(e){let t=0,r=xe(0),n;return()=>{Ke()&&(k(r),bt(()=>(t===0&&(n=pr(()=>e(()=>Te(r)))),t+=1,()=>{Be(()=>{t-=1,t===0&&(n?.(),n=void 0,Te(r))})})))}}var an=ve|ie|je;function ln(e,t,r){new fn(e,t,r)}class fn{parent;#t=!1;#e;#r=p?g:null;#n;#l;#i;#s=null;#o=null;#a=null;#f=null;#u=null;#c=0;#d=0;#v=!1;#h=null;#m=on(()=>(this.#h=xe(this.#c),()=>{this.#h=null}));constructor(t,r,n){this.#e=t,this.#n=r,this.#l=n,this.parent=_.b,this.#t=!!this.#n.pending,this.#i=tr(()=>{if(_.b=this,p){const i=this.#r;at(),i.nodeType===$e&&i.data===Qe?this.#k():this.#w()}else{var s=this.#p();try{this.#s=Z(()=>n(s))}catch(i){this.error(i)}this.#d>0?this.#b():this.#t=!1}return()=>{this.#u?.remove()}},an),p&&(this.#e=g)}#w(){try{this.#s=Z(()=>this.#l(this.#e))}catch(t){this.error(t)}this.#t=!1}#k(){const t=this.#n.pending;t&&(this.#o=Z(()=>t(this.#e)),q.enqueue(()=>{var r=this.#p();this.#s=this.#_(()=>(q.ensure(),Z(()=>this.#l(r)))),this.#d>0?this.#b():(Ne(this.#o,()=>{this.#o=null}),this.#t=!1)}))}#p(){var t=this.#e;return this.#t&&(this.#u=ne(),this.#e.before(this.#u),t=this.#u),t}is_pending(){return this.#t||!!this.parent&&this.parent.is_pending()}has_pending_snippet(){return!!this.#n.pending}#_(t){var r=_,n=v,s=M;H(this.#i),C(this.#i),pe(this.#i.ctx);try{return t()}catch(i){return Dt(i),null}finally{H(r),C(n),pe(s)}}#b(){const t=this.#n.pending;this.#s!==null&&(this.#f=document.createDocumentFragment(),this.#f.append(this.#u),ar(this.#s,this.#f)),this.#o===null&&(this.#o=Z(()=>t(this.#e)))}#g(t){if(!this.has_pending_snippet()){this.parent&&this.parent.#g(t);return}this.#d+=t,this.#d===0&&(this.#t=!1,this.#o&&Ne(this.#o,()=>{this.#o=null}),this.#f&&(this.#e.before(this.#f),this.#f=null))}update_pending_count(t){this.#g(t),this.#c+=t,this.#h&&ze(this.#h,this.#c)}get_effect_pending(){return this.#m(),k(this.#h)}error(t){var r=this.#n.onerror;let n=this.#n.failed;if(this.#v||!r&&!n)throw t;this.#s&&(N(this.#s),this.#s=null),this.#o&&(N(this.#o),this.#o=null),this.#a&&(N(this.#a),this.#a=null),p&&(F(this.#r),Zr(),F(Ct()));var s=!1,i=!1;const o=()=>{if(s){Xr();return}s=!0,i&&Jr(),q.ensure(),this.#c=0,this.#a!==null&&Ne(this.#a,()=>{this.#a=null}),this.#t=this.has_pending_snippet(),this.#s=this.#_(()=>(this.#v=!1,Z(()=>this.#l(this.#e)))),this.#d>0?this.#b():this.#t=!1};var a=v;try{C(null),i=!0,r?.(t,o),i=!1}catch(l){ge(l,this.#i&&this.#i.parent)}finally{C(a)}n&&Be(()=>{this.#a=this.#_(()=>{q.ensure(),this.#v=!0;try{return Z(()=>{n(this.#e,()=>t,()=>o)})}catch(l){return ge(l,this.#i.parent),null}finally{this.#v=!1}})})}}function un(e,t,r,n){const s=ut;if(r.length===0&&e.length===0){n(t.map(s));return}var i=w,o=_,a=cn();function l(){Promise.all(r.map(f=>dn(f))).then(f=>{a();try{n([...t.map(s),...f])}catch(c){(o.f&G)===0&&ge(c,o)}i?.deactivate(),Ve()}).catch(f=>{ge(f,o)})}e.length>0?Promise.all(e).then(()=>{a();try{return l()}finally{i?.deactivate(),Ve()}}):l()}function cn(){var e=_,t=v,r=M,n=w;return function(i=!0){H(e),C(t),pe(r),i&&n?.activate()}}function Ve(){H(null),C(null),pe(null)}function ut(e){var t=y|A,r=v!==null&&(v.f&y)!==0?v:null;return _!==null&&(_.f|=ie),{ctx:M,deps:null,effects:null,equals:Rt,f:t,fn:e,reactions:null,rv:0,v:$,wv:0,parent:r??_,ac:null}}function dn(e,t){let r=_;r===null&&Br();var n=r.b,s=void 0,i=xe($),o=!v,a=new Map;return Tn(()=>{var l=St();s=l.promise;try{Promise.resolve(e()).then(l.resolve,l.reject).then(()=>{f===w&&f.committed&&f.deactivate(),Ve()})}catch(u){l.reject(u),Ve()}var f=w;if(o){var c=!n.is_pending();n.update_pending_count(1),f.increment(c),a.get(f)?.reject(_e),a.delete(f),a.set(f,l)}const h=(u,d=void 0)=>{if(f.activate(),d)d!==_e&&(i.f|=te,ze(i,d));else{(i.f&te)!==0&&(i.f^=te),ze(i,u);for(const[m,b]of a){if(a.delete(m),m===f)break;b.reject(_e)}}o&&(n.update_pending_count(-1),f.decrement(c))};l.promise.then(h,u=>h(null,u||"unknown"))}),yn(()=>{for(const l of a.values())l.reject(_e)}),new Promise(l=>{function f(c){function h(){c===s?l(i):f(s)}c.then(h,h)}f(s)})}function hn(e){const t=ut(e);return fr(t),t}function Bt(e){var t=e.effects;if(t!==null){e.effects=null;for(var r=0;r<t.length;r+=1)N(t[r])}}function vn(e){for(var t=e.parent;t!==null;){if((t.f&y)===0)return(t.f&G)===0?t:null;t=t.parent}return null}function ct(e){var t,r=_;H(vn(e));try{e.f&=~oe,Bt(e),t=vr(e)}finally{H(r)}return t}function Ut(e){var t=ct(e);if(e.equals(t)||(w?.is_fork||(e.v=t),e.wv=dr()),!fe)if(P!==null)Ke()&&P.set(e,t);else{var r=(e.f&j)===0?K:E;x(e,r)}}let dt=new Set;const re=new Map;let Yt=!1;function xe(e,t){var r={f:0,v:e,reactions:null,equals:Rt,rv:0,wv:0};return r}function J(e,t){const r=xe(e);return fr(r),r}function _n(e,t=!1,r=!0){const n=xe(e);return t||(n.equals=tn),n}function D(e,t,r=!1){v!==null&&(!Y||(v.f&At)!==0)&&Pt()&&(v.f&(y|V|st|At))!==0&&!Q?.includes(e)&&Wr();let n=r?Se(t):t;return ze(e,n)}function ze(e,t){if(!e.equals(t)){var r=e.v;fe?re.set(e,t):re.set(e,r),e.v=t;var n=q.ensure();n.capture(e,r),(e.f&y)!==0&&((e.f&A)!==0&&ct(e),x(e,(e.f&j)!==0?E:K)),e.wv=dr(),Ht(e,A),_!==null&&(_.f&E)!==0&&(_.f&(z|ee))===0&&(I===null?Rn([e]):I.push(e)),!n.is_fork&&dt.size>0&&!Yt&&bn()}return t}function bn(){Yt=!1;var e=se;Ge(!0);const t=Array.from(dt);try{for(const r of t)(r.f&E)!==0&&x(r,K),Re(r)&&Oe(r)}finally{Ge(e)}dt.clear()}function Te(e){D(e,e.v+1)}function Ht(e,t){var r=e.reactions;if(r!==null)for(var n=r.length,s=0;s<n;s++){var i=r[s],o=i.f,a=(o&A)===0;if(a&&x(i,t),(o&y)!==0){var l=i;P?.delete(l),(o&oe)===0&&(o&j&&(i.f|=oe),Ht(l,K))}else a&&((o&V)!==0&&W!==null&&W.add(i),le(i))}}function Se(e){if(typeof e!="object"||e===null||it in e)return e;const t=xt(e);if(t!==Lr&&t!==Dr)return e;var r=new Map,n=Rr(e),s=J(0),i=ue,o=a=>{if(ue===i)return a();var l=v,f=ue;C(null),cr(i);var c=a();return C(l),cr(f),c};return n&&r.set("length",J(e.length)),new Proxy(e,{defineProperty(a,l,f){(!("value"in f)||f.configurable===!1||f.enumerable===!1||f.writable===!1)&&Kr();var c=r.get(l);return c===void 0?c=o(()=>{var h=J(f.value);return r.set(l,h),h}):D(c,f.value,!0),!0},deleteProperty(a,l){var f=r.get(l);if(f===void 0){if(l in a){const c=o(()=>J($));r.set(l,c),Te(s)}}else D(f,$),Te(s);return!0},get(a,l,f){if(l===it)return e;var c=r.get(l),h=l in a;if(c===void 0&&(!h||he(a,l)?.writable)&&(c=o(()=>{var d=Se(h?a[l]:$),m=J(d);return m}),r.set(l,c)),c!==void 0){var u=k(c);return u===$?void 0:u}return Reflect.get(a,l,f)},getOwnPropertyDescriptor(a,l){var f=Reflect.getOwnPropertyDescriptor(a,l);if(f&&"value"in f){var c=r.get(l);c&&(f.value=k(c))}else if(f===void 0){var h=r.get(l),u=h?.v;if(h!==void 0&&u!==$)return{enumerable:!0,configurable:!0,value:u,writable:!0}}return f},has(a,l){if(l===it)return!0;var f=r.get(l),c=f!==void 0&&f.v!==$||Reflect.has(a,l);if(f!==void 0||_!==null&&(!c||he(a,l)?.writable)){f===void 0&&(f=o(()=>{var u=c?Se(a[l]):$,d=J(u);return d}),r.set(l,f));var h=k(f);if(h===$)return!1}return c},set(a,l,f,c){var h=r.get(l),u=l in a;if(n&&l==="length")for(var d=f;d<h.v;d+=1){var m=r.get(d+"");m!==void 0?D(m,$):d in a&&(m=o(()=>J($)),r.set(d+"",m))}if(h===void 0)(!u||he(a,l)?.writable)&&(h=o(()=>J(void 0)),D(h,Se(f)),r.set(l,h));else{u=h.v!==$;var b=o(()=>Se(f));D(h,b)}var T=Reflect.getOwnPropertyDescriptor(a,l);if(T?.set&&T.set.call(c,f),!u){if(n&&typeof l=="string"){var ce=r.get("length"),Le=Number(l);Number.isInteger(Le)&&Le>=ce.v&&D(ce,Le+1)}Te(s)}return!0},ownKeys(a){k(s);var l=Reflect.ownKeys(a).filter(h=>{var u=r.get(h);return u===void 0||u.v!==$});for(var[f,c]of r)c.v!==$&&!(f in a)&&l.push(f);return l},setPrototypeOf(){Gr()}})}var Vt,zt,Kt,Gt;function ht(){if(Vt===void 0){Vt=window,zt=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,r=Text.prototype;Kt=he(t,"firstChild").get,Gt=he(t,"nextSibling").get,Tt(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),Tt(r)&&(r.__t=void 0)}}function ne(e=""){return document.createTextNode(e)}function me(e){return Kt.call(e)}function X(e){return Gt.call(e)}function vt(e,t){if(!p)return me(e);var r=me(g);if(r===null)r=g.appendChild(ne());else if(t&&r.nodeType!==ot){var n=ne();return r?.before(n),F(n),n}return F(r),r}function Wt(e,t=!1){if(!p){var r=me(e);return r instanceof Comment&&r.data===""?X(r):r}if(t&&g?.nodeType!==ot){var n=ne();return g?.before(n),F(n),n}return g}function Jt(e,t=1,r=!1){let n=p?g:e;for(var s;t--;)s=n,n=X(n);if(!p)return n;if(r&&n?.nodeType!==ot){var i=ne();return n===null?s?.after(i):n.before(i),F(i),i}return F(n),n}function pn(e){e.textContent=""}function gn(){return!1}let Xt=!1;function Zt(){Xt||(Xt=!0,document.addEventListener("reset",e=>{Promise.resolve().then(()=>{if(!e.defaultPrevented)for(const t of e.target.elements)t.__on_r?.()})},{capture:!0}))}function _t(e){var t=v,r=_;C(null),H(null);try{return e()}finally{C(t),H(r)}}function mn(e,t,r,n=r){e.addEventListener(t,()=>_t(r));const s=e.__on_r;s?e.__on_r=()=>{s(),n(!0)}:e.__on_r=()=>n(!0),Zt()}function wn(e){_===null&&(v===null&&Hr(),Yr()),fe&&Ur()}function kn(e,t){var r=t.last;r===null?t.last=t.first=e:(r.next=e,e.prev=r,t.last=e)}function U(e,t,r){var n=_;n!==null&&(n.f&B)!==0&&(e|=B);var s={ctx:M,deps:null,nodes_start:null,nodes_end:null,f:e|A|j,first:null,fn:t,last:null,next:null,parent:n,b:n&&n.b,prev:null,teardown:null,transitions:null,wv:0,ac:null};if(r)try{Oe(s),s.f|=Fe}catch(a){throw N(s),a}else t!==null&&le(s);var i=s;if(r&&i.deps===null&&i.teardown===null&&i.nodes_start===null&&i.first===i.last&&(i.f&ie)===0&&(i=i.first,(e&V)!==0&&(e&ve)!==0&&i!==null&&(i.f|=ve)),i!==null&&(i.parent=n,n!==null&&kn(i,n),v!==null&&(v.f&y)!==0&&(e&ee)===0)){var o=v;(o.effects??=[]).push(i)}return s}function Ke(){return v!==null&&!Y}function yn(e){const t=U(rt,null,!1);return x(t,E),t.teardown=e,t}function Qt(e){wn();var t=_.f,r=!v&&(t&z)!==0&&(t&Fe)===0;if(r){var n=M;(n.e??=[]).push(e)}else return er(e)}function er(e){return U(tt|jr,e,!1)}function $n(e){q.ensure();const t=U(ee|ie,e,!0);return()=>{N(t)}}function En(e){q.ensure();const t=U(ee|ie,e,!0);return(r={})=>new Promise(n=>{r.outro?Ne(t,()=>{N(t),n(void 0)}):(N(t),n(void 0))})}function xn(e){return U(tt,e,!1)}function Tn(e){return U(st|ie,e,!0)}function bt(e,t=0){return U(rt|t,e,!0)}function Ae(e,t=[],r=[],n=[]){un(n,t,r,s=>{U(rt,()=>e(...s.map(k)),!0)})}function tr(e,t=0){var r=U(V|t,e,!0);return r}function Z(e){return U(z|ie,e,!0)}function rr(e){var t=e.teardown;if(t!==null){const r=fe,n=v;lr(!0),C(null);try{t.call(null)}finally{lr(r),C(n)}}}function nr(e,t=!1){var r=e.first;for(e.first=e.last=null;r!==null;){const s=r.ac;s!==null&&_t(()=>{s.abort(_e)});var n=r.next;(r.f&ee)!==0?r.parent=null:N(r,t),r=n}}function Sn(e){for(var t=e.first;t!==null;){var r=t.next;(t.f&z)===0&&N(t),t=r}}function N(e,t=!0){var r=!1;(t||(e.f&Nt)!==0)&&e.nodes_start!==null&&e.nodes_end!==null&&(An(e.nodes_start,e.nodes_end),r=!0),nr(e,t&&!r),We(e,0),x(e,G);var n=e.transitions;if(n!==null)for(const i of n)i.stop();rr(e);var s=e.parent;s!==null&&s.first!==null&&sr(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes_start=e.nodes_end=e.ac=null}function An(e,t){for(;e!==null;){var r=e===t?null:X(e);e.remove(),e=r}}function sr(e){var t=e.parent,r=e.prev,n=e.next;r!==null&&(r.next=n),n!==null&&(n.prev=r),t!==null&&(t.first===e&&(t.first=n),t.last===e&&(t.last=r))}function Ne(e,t,r=!0){var n=[];ir(e,n,!0),Nn(n,()=>{r&&N(e),t&&t()})}function Nn(e,t){var r=e.length;if(r>0){var n=()=>--r||t();for(var s of e)s.out(n)}else t()}function ir(e,t,r){if((e.f&B)===0){if(e.f^=B,e.transitions!==null)for(const o of e.transitions)(o.is_global||r)&&t.push(o);for(var n=e.first;n!==null;){var s=n.next,i=(n.f&ve)!==0||(n.f&z)!==0&&(e.f&V)!==0;ir(n,t,i?r:!1),n=s}}}function Cn(e){or(e,!0)}function or(e,t){if((e.f&B)!==0){e.f^=B,(e.f&E)===0&&(x(e,A),le(e));for(var r=e.first;r!==null;){var n=r.next,s=(r.f&ve)!==0||(r.f&z)!==0;or(r,s?t:!1),r=n}if(e.transitions!==null)for(const i of e.transitions)(i.is_global||t)&&i.in()}}function ar(e,t){for(var r=e.nodes_start,n=e.nodes_end;r!==null;){var s=r===n?null:X(r);t.append(r),r=s}}let se=!1;function Ge(e){se=e}let fe=!1;function lr(e){fe=e}let v=null,Y=!1;function C(e){v=e}let _=null;function H(e){_=e}let Q=null;function fr(e){v!==null&&(Q===null?Q=[e]:Q.push(e))}let S=null,R=0,I=null;function Rn(e){I=e}let ur=1,Ce=0,ue=Ce;function cr(e){ue=e}function dr(){return++ur}function Re(e){var t=e.f;if((t&A)!==0)return!0;if(t&y&&(e.f&=~oe),(t&K)!==0){var r=e.deps;if(r!==null)for(var n=r.length,s=0;s<n;s++){var i=r[s];if(Re(i)&&Ut(i),i.wv>e.wv)return!0}(t&j)!==0&&P===null&&x(e,E)}return!1}function hr(e,t,r=!0){var n=e.reactions;if(n!==null&&!Q?.includes(e))for(var s=0;s<n.length;s++){var i=n[s];(i.f&y)!==0?hr(i,t,!1):t===i&&(r?x(i,A):(i.f&E)!==0&&x(i,K),le(i))}}function vr(e){var t=S,r=R,n=I,s=v,i=Q,o=M,a=Y,l=ue,f=e.f;S=null,R=0,I=null,v=(f&(z|ee))===0?e:null,Q=null,pe(e.ctx),Y=!1,ue=++Ce,e.ac!==null&&(_t(()=>{e.ac.abort(_e)}),e.ac=null);try{e.f|=nt;var c=e.fn,h=c(),u=e.deps;if(S!==null){var d;if(We(e,R),u!==null&&R>0)for(u.length=R+S.length,d=0;d<S.length;d++)u[R+d]=S[d];else e.deps=u=S;if(se&&Ke()&&(e.f&j)!==0)for(d=R;d<u.length;d++)(u[d].reactions??=[]).push(e)}else u!==null&&R<u.length&&(We(e,R),u.length=R);if(Pt()&&I!==null&&!Y&&u!==null&&(e.f&(y|K|A))===0)for(d=0;d<I.length;d++)hr(I[d],e);return s!==null&&s!==e&&(Ce++,I!==null&&(n===null?n=I:n.push(...I))),(e.f&te)!==0&&(e.f^=te),h}catch(m){return Dt(m)}finally{e.f^=nt,S=t,R=r,I=n,v=s,Q=i,pe(o),Y=a,ue=l}}function On(e,t){let r=t.reactions;if(r!==null){var n=Or.call(r,e);if(n!==-1){var s=r.length-1;s===0?r=t.reactions=null:(r[n]=r[s],r.pop())}}r===null&&(t.f&y)!==0&&(S===null||!S.includes(t))&&(x(t,K),(t.f&j)!==0&&(t.f^=j,t.f&=~oe),Bt(t),We(t,0))}function We(e,t){var r=e.deps;if(r!==null)for(var n=t;n<r.length;n++)On(e,r[n])}function Oe(e){var t=e.f;if((t&G)===0){x(e,E);var r=_,n=se;_=e,se=!0;try{(t&V)!==0?Sn(e):nr(e),rr(e);var s=vr(e);e.teardown=typeof s=="function"?s:null,e.wv=ur;var i;et&&rn&&(e.f&A)!==0&&e.deps}finally{se=n,_=r}}}function k(e){var t=e.f,r=(t&y)!==0;if(v!==null&&!Y){var n=_!==null&&(_.f&G)!==0;if(!n&&!Q?.includes(e)){var s=v.deps;if((v.f&nt)!==0)e.rv<Ce&&(e.rv=Ce,S===null&&s!==null&&s[R]===e?R++:S===null?S=[e]:S.includes(e)||S.push(e));else{(v.deps??=[]).push(e);var i=e.reactions;i===null?e.reactions=[v]:i.includes(v)||i.push(v)}}}if(fe){if(re.has(e))return re.get(e);if(r){var o=e,a=o.v;return((o.f&E)===0&&o.reactions!==null||br(o))&&(a=ct(o)),re.set(o,a),a}}else r&&!P?.has(e)&&(o=e,Re(o)&&Ut(o),se&&Ke()&&(o.f&j)===0&&_r(o));if(P?.has(e))return P.get(e);if((e.f&te)!==0)throw e.v;return e.v}function _r(e){if(e.deps!==null){e.f^=j;for(const t of e.deps)(t.reactions??=[]).push(e),(t.f&y)!==0&&(t.f&j)===0&&_r(t)}}function br(e){if(e.v===$)return!0;if(e.deps===null)return!1;for(const t of e.deps)if(re.has(t)||(t.f&y)!==0&&br(t))return!0;return!1}function pr(e){var t=Y;try{return Y=!0,e()}finally{Y=t}}const Mn=-7169;function x(e,t){e.f=e.f&Mn|t}const Pn=new Set,gr=new Set;let mr=null;function Je(e){var t=this,r=t.ownerDocument,n=e.type,s=e.composedPath?.()||[],i=s[0]||e.target;mr=e;var o=0,a=mr===e&&e.__root;if(a){var l=s.indexOf(a);if(l!==-1&&(t===document||t===window)){e.__root=t;return}var f=s.indexOf(t);if(f===-1)return;l<=f&&(o=l)}if(i=s[o]||e.target,i!==t){Ie(e,"currentTarget",{configurable:!0,get(){return i||r}});var c=v,h=_;C(null),H(null);try{for(var u,d=[];i!==null;){var m=i.assignedSlot||i.parentNode||i.host||null;try{var b=i["__"+n];b!=null&&(!i.disabled||e.target===i)&&b.call(i,e)}catch(T){u?d.push(T):u=T}if(e.cancelBubble||m===t||m===null)break;i=m}if(u){for(let T of d)queueMicrotask(()=>{throw T});throw u}}finally{e.__root=t,delete e.currentTarget,C(c),H(h)}}}function Ln(e){var t=document.createElement("template");return t.innerHTML=e.replaceAll("<!>","<!---->"),t.content}function Xe(e,t){var r=_;r.nodes_start===null&&(r.nodes_start=e,r.nodes_end=t)}function Me(e,t){var r=(t&Ar)!==0,n=(t&Nr)!==0,s,i=!e.startsWith("<!>");return()=>{if(p)return Xe(g,null),g;s===void 0&&(s=Ln(i?e:"<!>"+e),r||(s=me(s)));var o=n||zt?document.importNode(s,!0):s.cloneNode(!0);if(r){var a=me(o),l=o.lastChild;Xe(a,l)}else Xe(o,o);return o}}function we(e,t){if(p){var r=_;((r.f&Fe)===0||r.nodes_end===null)&&(r.nodes_end=g),at();return}e!==null&&e.before(t)}const Dn=["touchstart","touchmove"];function In(e){return Dn.includes(e)}function wr(e,t){var r=t==null?"":typeof t=="object"?t+"":t;r!==(e.__t??=e.nodeValue)&&(e.__t=r,e.nodeValue=r+"")}function kr(e,t){return yr(e,t)}function jn(e,t){ht(),t.intro=t.intro??!1;const r=t.target,n=p,s=g;try{for(var i=me(r);i&&(i.nodeType!==$e||i.data!==$t);)i=X(i);if(!i)throw de;be(!0),F(i);const o=yr(e,{...t,anchor:i});return be(!1),o}catch(o){if(o instanceof Error&&o.message.split(`
|
|
2
|
-
`).some(
|
|
1
|
+
(function(yt){"use strict";typeof window<"u"&&((window.__svelte??={}).v??=new Set).add("5");const Nn=1,Rn=2,$t="[",Qe="[!",Et="]",he={},$=Symbol(),Cn="http://www.w3.org/1999/xhtml",et=!1;var On=Array.isArray,Mn=Array.prototype.indexOf,Pn=Array.from,De=Object.keys,Ie=Object.defineProperty,de=Object.getOwnPropertyDescriptor,Ln=Object.getOwnPropertyDescriptors,Dn=Object.prototype,In=Array.prototype,xt=Object.getPrototypeOf,Tt=Object.isExtensible;function Fn(e){for(var t=0;t<e.length;t++)e[t]()}function At(){var e,t,n=new Promise((r,i)=>{e=r,t=i});return{promise:n,resolve:e,reject:t}}const y=2,tt=4,nt=8,U=16,z=32,ee=64,Fe=128,F=512,E=1024,S=2048,K=4096,B=8192,G=16384,je=32768,ve=65536,St=1<<17,Nt=1<<18,se=1<<19,jn=1<<20,fe=32768,rt=1<<21,it=1<<22,te=1<<23,st=Symbol("$state"),qn=Symbol("legacy props"),Bn=Symbol(""),_e=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"},ft=3,$e=8;function Yn(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function Vn(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function Hn(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function Un(e){throw new Error("https://svelte.dev/e/effect_orphan")}function zn(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function Kn(){throw new Error("https://svelte.dev/e/hydration_failed")}function Gn(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function Wn(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function Jn(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function Xn(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}function qe(e){console.warn("https://svelte.dev/e/hydration_mismatch")}function Zn(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}let m=!1;function pe(e){m=e}let g;function j(e){if(e===null)throw qe(),he;return g=e}function lt(){return j(X(g))}function ot(e){if(m){if(X(g)!==null)throw qe(),he;g=e}}function Qn(e=1){if(m){for(var t=e,n=g;t--;)n=X(n);g=n}}function Rt(e=!0){for(var t=0,n=g;;){if(n.nodeType===$e){var r=n.data;if(r===Et){if(t===0)return n;t-=1}else(r===$t||r===Qe)&&(t+=1)}var i=X(n);e&&n.remove(),n=i}}function er(e){if(!e||e.nodeType!==$e)throw qe(),he;return e.data}function Ct(e){return e===this.v}function tr(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function nr(e){return!tr(e,this.v)}let rr=!1,M=null;function me(e){M=e}function Ot(e,t=!1,n){M={p:M,i:!1,c:null,e:null,s:e,x:null,l:null}}function Mt(e){var t=M,n=t.e;if(n!==null){t.e=null;for(var r of n)en(r)}return e!==void 0&&(t.x=e),t.i=!0,M=t.p,e??{}}function Pt(){return!0}let le=[];function Lt(){var e=le;le=[],Fn(e)}function Be(e){if(le.length===0&&!Ee){var t=le;queueMicrotask(()=>{t===le&&Lt()})}le.push(e)}function ir(){for(;le.length>0;)Lt()}function Dt(e){var t=_;if(t===null)return v.f|=te,e;if((t.f&je)===0){if((t.f&Fe)===0)throw e;t.b.error(e)}else ge(e,t)}function ge(e,t){for(;t!==null;){if((t.f&Fe)!==0)try{t.b.error(e);return}catch(n){e=n}t=t.parent}throw e}const Ye=new Set;let k=null,P=null,L=[],Ve=null,at=!1,Ee=!1;class q{committed=!1;current=new Map;previous=new Map;#t=new Set;#e=new Set;#n=0;#r=0;#o=null;#s=[];#i=[];skipped_effects=new Set;is_fork=!1;is_deferred(){return this.is_fork||this.#r>0}process(t){L=[],this.apply();var n={parent:null,effect:null,effects:[],render_effects:[],block_effects:[]};for(const r of t)this.#f(r,n);this.is_fork||this.#u(),this.is_deferred()?(this.#l(n.effects),this.#l(n.render_effects),this.#l(n.block_effects)):(k=null,Ft(n.render_effects),Ft(n.effects),this.#o?.resolve()),P=null}#f(t,n){t.f^=E;for(var r=t.first;r!==null;){var i=r.f,s=(i&(z|ee))!==0,f=s&&(i&E)!==0,l=f||(i&B)!==0||this.skipped_effects.has(r);if((r.f&Fe)!==0&&r.b?.is_pending()&&(n={parent:n,effect:r,effects:[],render_effects:[],block_effects:[]}),!l&&r.fn!==null){s?r.f^=E:(i&tt)!==0?n.effects.push(r):Ce(r)&&((r.f&U)!==0&&n.block_effects.push(r),Oe(r));var o=r.first;if(o!==null){r=o;continue}}var a=r.parent;for(r=r.next;r===null&&a!==null;)a===n.effect&&(this.#l(n.effects),this.#l(n.render_effects),this.#l(n.block_effects),n=n.parent),r=a.next,a=a.parent}}#l(t){for(const n of t)((n.f&S)!==0?this.#s:this.#i).push(n),this.#a(n.deps),x(n,E)}#a(t){if(t!==null)for(const n of t)(n.f&y)===0||(n.f&fe)===0||(n.f^=fe,this.#a(n.deps))}capture(t,n){this.previous.has(t)||this.previous.set(t,n),(t.f&te)===0&&(this.current.set(t,t.v),P?.set(t,t.v))}activate(){k=this,this.apply()}deactivate(){k===this&&(k=null,P=null)}flush(){if(this.activate(),L.length>0){if(It(),k!==null&&k!==this)return}else this.#n===0&&this.process([]);this.deactivate()}discard(){for(const t of this.#e)t(this);this.#e.clear()}#u(){if(this.#r===0){for(const t of this.#t)t();this.#t.clear()}this.#n===0&&this.#c()}#c(){if(Ye.size>1){this.previous.clear();var t=P,n=!0,r={parent:null,effect:null,effects:[],render_effects:[],block_effects:[]};for(const s of Ye){if(s===this){n=!1;continue}const f=[];for(const[o,a]of this.current){if(s.current.has(o))if(n&&a!==s.current.get(o))s.current.set(o,a);else continue;f.push(o)}if(f.length===0)continue;const l=[...s.current.keys()].filter(o=>!this.current.has(o));if(l.length>0){var i=L;L=[];const o=new Set,a=new Map;for(const c of f)jt(c,l,o,a);if(L.length>0){k=s,s.apply();for(const c of L)s.#f(c,r);s.deactivate()}L=i}}k=null,P=t}this.committed=!0,Ye.delete(this)}increment(t){this.#n+=1,t&&(this.#r+=1)}decrement(t){this.#n-=1,t&&(this.#r-=1),this.revive()}revive(){for(const t of this.#s)x(t,S),oe(t);for(const t of this.#i)x(t,K),oe(t);this.#s=[],this.#i=[],this.flush()}oncommit(t){this.#t.add(t)}ondiscard(t){this.#e.add(t)}settled(){return(this.#o??=At()).promise}static ensure(){if(k===null){const t=k=new q;Ye.add(k),Ee||q.enqueue(()=>{k===t&&t.flush()})}return k}static enqueue(t){Be(t)}apply(){}}function He(e){var t=Ee;Ee=!0;try{for(var n;;){if(ir(),L.length===0&&(k?.flush(),L.length===0))return Ve=null,n;It()}}finally{Ee=t}}function It(){var e=ie;at=!0;var t=null;try{var n=0;for(Ge(!0);L.length>0;){var r=q.ensure();if(n++>1e3){var i,s;sr()}r.process(L),ne.clear()}}finally{at=!1,Ge(e),Ve=null}}function sr(){try{zn()}catch(e){ge(e,Ve)}}let W=null;function Ft(e){var t=e.length;if(t!==0){for(var n=0;n<t;){var r=e[n++];if((r.f&(G|B))===0&&Ce(r)&&(W=new Set,Oe(r),r.deps===null&&r.first===null&&r.nodes_start===null&&(r.teardown===null&&r.ac===null?sn(r):r.fn=null),W?.size>0)){ne.clear();for(const i of W){if((i.f&(G|B))!==0)continue;const s=[i];let f=i.parent;for(;f!==null;)W.has(f)&&(W.delete(f),s.push(f)),f=f.parent;for(let l=s.length-1;l>=0;l--){const o=s[l];(o.f&(G|B))===0&&Oe(o)}}W.clear()}}W=null}}function jt(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&y)!==0?jt(i,t,n,r):(s&(it|U))!==0&&(s&S)===0&&qt(i,t,r)&&(x(i,S),oe(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(t.includes(i))return!0;if((i.f&y)!==0&&qt(i,t,n))return n.set(i,!0),!0}return n.set(e,!1),!1}function oe(e){for(var t=Ve=e;t.parent!==null;){t=t.parent;var n=t.f;if(at&&t===_&&(n&U)!==0&&(n&Nt)===0)return;if((n&(ee|z))!==0){if((n&E)===0)return;t.f^=E}}L.push(t)}function fr(e){let t=0,n=xe(0),r;return()=>{Ke()&&(b(n),pt(()=>(t===0&&(r=gn(()=>e(()=>Te(n)))),t+=1,()=>{Be(()=>{t-=1,t===0&&(r?.(),r=void 0,Te(n))})})))}}var lr=ve|se|Fe;function or(e,t,n){new ar(e,t,n)}class ar{parent;#t=!1;#e;#n=m?g:null;#r;#o;#s;#i=null;#f=null;#l=null;#a=null;#u=null;#c=0;#h=0;#v=!1;#d=null;#w=fr(()=>(this.#d=xe(this.#c),()=>{this.#d=null}));constructor(t,n,r){this.#e=t,this.#r=n,this.#o=r,this.parent=_.b,this.#t=!!this.#r.pending,this.#s=tn(()=>{if(_.b=this,m){const s=this.#n;lt(),s.nodeType===$e&&s.data===Qe?this.#b():this.#k()}else{var i=this.#m();try{this.#i=Z(()=>r(i))}catch(s){this.error(s)}this.#h>0?this.#p():this.#t=!1}return()=>{this.#u?.remove()}},lr),m&&(this.#e=g)}#k(){try{this.#i=Z(()=>this.#o(this.#e))}catch(t){this.error(t)}this.#t=!1}#b(){const t=this.#r.pending;t&&(this.#f=Z(()=>t(this.#e)),q.enqueue(()=>{var n=this.#m();this.#i=this.#_(()=>(q.ensure(),Z(()=>this.#o(n)))),this.#h>0?this.#p():(Ne(this.#f,()=>{this.#f=null}),this.#t=!1)}))}#m(){var t=this.#e;return this.#t&&(this.#u=re(),this.#e.before(this.#u),t=this.#u),t}is_pending(){return this.#t||!!this.parent&&this.parent.is_pending()}has_pending_snippet(){return!!this.#r.pending}#_(t){var n=_,r=v,i=M;H(this.#s),R(this.#s),me(this.#s.ctx);try{return t()}catch(s){return Dt(s),null}finally{H(n),R(r),me(i)}}#p(){const t=this.#r.pending;this.#i!==null&&(this.#a=document.createDocumentFragment(),this.#a.append(this.#u),on(this.#i,this.#a)),this.#f===null&&(this.#f=Z(()=>t(this.#e)))}#g(t){if(!this.has_pending_snippet()){this.parent&&this.parent.#g(t);return}this.#h+=t,this.#h===0&&(this.#t=!1,this.#f&&Ne(this.#f,()=>{this.#f=null}),this.#a&&(this.#e.before(this.#a),this.#a=null))}update_pending_count(t){this.#g(t),this.#c+=t,this.#d&&ze(this.#d,this.#c)}get_effect_pending(){return this.#w(),b(this.#d)}error(t){var n=this.#r.onerror;let r=this.#r.failed;if(this.#v||!n&&!r)throw t;this.#i&&(N(this.#i),this.#i=null),this.#f&&(N(this.#f),this.#f=null),this.#l&&(N(this.#l),this.#l=null),m&&(j(this.#n),Qn(),j(Rt()));var i=!1,s=!1;const f=()=>{if(i){Zn();return}i=!0,s&&Xn(),q.ensure(),this.#c=0,this.#l!==null&&Ne(this.#l,()=>{this.#l=null}),this.#t=this.has_pending_snippet(),this.#i=this.#_(()=>(this.#v=!1,Z(()=>this.#o(this.#e)))),this.#h>0?this.#p():this.#t=!1};var l=v;try{R(null),s=!0,n?.(t,f),s=!1}catch(o){ge(o,this.#s&&this.#s.parent)}finally{R(l)}r&&Be(()=>{this.#l=this.#_(()=>{q.ensure(),this.#v=!0;try{return Z(()=>{r(this.#e,()=>t,()=>f)})}catch(o){return ge(o,this.#s.parent),null}finally{this.#v=!1}})})}}function ur(e,t,n,r){const i=ut;if(n.length===0&&e.length===0){r(t.map(i));return}var s=k,f=_,l=cr();function o(){Promise.all(n.map(a=>hr(a))).then(a=>{l();try{r([...t.map(i),...a])}catch(c){(f.f&G)===0&&ge(c,f)}s?.deactivate(),Ue()}).catch(a=>{ge(a,f)})}e.length>0?Promise.all(e).then(()=>{l();try{return o()}finally{s?.deactivate(),Ue()}}):o()}function cr(){var e=_,t=v,n=M,r=k;return function(s=!0){H(e),R(t),me(n),s&&r?.activate()}}function Ue(){H(null),R(null),me(null)}function ut(e){var t=y|S,n=v!==null&&(v.f&y)!==0?v:null;return _!==null&&(_.f|=se),{ctx:M,deps:null,effects:null,equals:Ct,f:t,fn:e,reactions:null,rv:0,v:$,wv:0,parent:n??_,ac:null}}function hr(e,t){let n=_;n===null&&Yn();var r=n.b,i=void 0,s=xe($),f=!v,l=new Map;return Tr(()=>{var o=At();i=o.promise;try{Promise.resolve(e()).then(o.resolve,o.reject).then(()=>{a===k&&a.committed&&a.deactivate(),Ue()})}catch(u){o.reject(u),Ue()}var a=k;if(f){var c=!r.is_pending();r.update_pending_count(1),a.increment(c),l.get(a)?.reject(_e),l.delete(a),l.set(a,o)}const d=(u,h=void 0)=>{if(a.activate(),h)h!==_e&&(s.f|=te,ze(s,h));else{(s.f&te)!==0&&(s.f^=te),ze(s,u);for(const[w,p]of l){if(l.delete(w),w===a)break;p.reject(_e)}}f&&(r.update_pending_count(-1),a.decrement(c))};o.promise.then(d,u=>d(null,u||"unknown"))}),yr(()=>{for(const o of l.values())o.reject(_e)}),new Promise(o=>{function a(c){function d(){c===i?o(s):a(i)}c.then(d,d)}a(i)})}function dr(e){const t=ut(e);return un(t),t}function Bt(e){var t=e.effects;if(t!==null){e.effects=null;for(var n=0;n<t.length;n+=1)N(t[n])}}function vr(e){for(var t=e.parent;t!==null;){if((t.f&y)===0)return(t.f&G)===0?t:null;t=t.parent}return null}function ct(e){var t,n=_;H(vr(e));try{e.f&=~fe,Bt(e),t=_n(e)}finally{H(n)}return t}function Yt(e){var t=ct(e);if(e.equals(t)||(k?.is_fork||(e.v=t),e.wv=dn()),!ae)if(P!==null)Ke()&&P.set(e,t);else{var n=(e.f&F)===0?K:E;x(e,n)}}let ht=new Set;const ne=new Map;let Vt=!1;function xe(e,t){var n={f:0,v:e,reactions:null,equals:Ct,rv:0,wv:0};return n}function J(e,t){const n=xe(e);return un(n),n}function _r(e,t=!1,n=!0){const r=xe(e);return t||(r.equals=nr),r}function D(e,t,n=!1){v!==null&&(!V||(v.f&St)!==0)&&Pt()&&(v.f&(y|U|it|St))!==0&&!Q?.includes(e)&&Jn();let r=n?Ae(t):t;return ze(e,r)}function ze(e,t){if(!e.equals(t)){var n=e.v;ae?ne.set(e,t):ne.set(e,n),e.v=t;var r=q.ensure();r.capture(e,n),(e.f&y)!==0&&((e.f&S)!==0&&ct(e),x(e,(e.f&F)!==0?E:K)),e.wv=dn(),Ht(e,S),_!==null&&(_.f&E)!==0&&(_.f&(z|ee))===0&&(I===null?Cr([e]):I.push(e)),!r.is_fork&&ht.size>0&&!Vt&&pr()}return t}function pr(){Vt=!1;var e=ie;Ge(!0);const t=Array.from(ht);try{for(const n of t)(n.f&E)!==0&&x(n,K),Ce(n)&&Oe(n)}finally{Ge(e)}ht.clear()}function Te(e){D(e,e.v+1)}function Ht(e,t){var n=e.reactions;if(n!==null)for(var r=n.length,i=0;i<r;i++){var s=n[i],f=s.f,l=(f&S)===0;if(l&&x(s,t),(f&y)!==0){var o=s;P?.delete(o),(f&fe)===0&&(f&F&&(s.f|=fe),Ht(o,K))}else l&&((f&U)!==0&&W!==null&&W.add(s),oe(s))}}function Ae(e){if(typeof e!="object"||e===null||st in e)return e;const t=xt(e);if(t!==Dn&&t!==In)return e;var n=new Map,r=On(e),i=J(0),s=ue,f=l=>{if(ue===s)return l();var o=v,a=ue;R(null),hn(s);var c=l();return R(o),hn(a),c};return r&&n.set("length",J(e.length)),new Proxy(e,{defineProperty(l,o,a){(!("value"in a)||a.configurable===!1||a.enumerable===!1||a.writable===!1)&&Gn();var c=n.get(o);return c===void 0?c=f(()=>{var d=J(a.value);return n.set(o,d),d}):D(c,a.value,!0),!0},deleteProperty(l,o){var a=n.get(o);if(a===void 0){if(o in l){const c=f(()=>J($));n.set(o,c),Te(i)}}else D(a,$),Te(i);return!0},get(l,o,a){if(o===st)return e;var c=n.get(o),d=o in l;if(c===void 0&&(!d||de(l,o)?.writable)&&(c=f(()=>{var h=Ae(d?l[o]:$),w=J(h);return w}),n.set(o,c)),c!==void 0){var u=b(c);return u===$?void 0:u}return Reflect.get(l,o,a)},getOwnPropertyDescriptor(l,o){var a=Reflect.getOwnPropertyDescriptor(l,o);if(a&&"value"in a){var c=n.get(o);c&&(a.value=b(c))}else if(a===void 0){var d=n.get(o),u=d?.v;if(d!==void 0&&u!==$)return{enumerable:!0,configurable:!0,value:u,writable:!0}}return a},has(l,o){if(o===st)return!0;var a=n.get(o),c=a!==void 0&&a.v!==$||Reflect.has(l,o);if(a!==void 0||_!==null&&(!c||de(l,o)?.writable)){a===void 0&&(a=f(()=>{var u=c?Ae(l[o]):$,h=J(u);return h}),n.set(o,a));var d=b(a);if(d===$)return!1}return c},set(l,o,a,c){var d=n.get(o),u=o in l;if(r&&o==="length")for(var h=a;h<d.v;h+=1){var w=n.get(h+"");w!==void 0?D(w,$):h in l&&(w=f(()=>J($)),n.set(h+"",w))}if(d===void 0)(!u||de(l,o)?.writable)&&(d=f(()=>J(void 0)),D(d,Ae(a)),n.set(o,d));else{u=d.v!==$;var p=f(()=>Ae(a));D(d,p)}var T=Reflect.getOwnPropertyDescriptor(l,o);if(T?.set&&T.set.call(c,a),!u){if(r&&typeof o=="string"){var ce=n.get("length"),Le=Number(o);Number.isInteger(Le)&&Le>=ce.v&&D(ce,Le+1)}Te(i)}return!0},ownKeys(l){b(i);var o=Reflect.ownKeys(l).filter(d=>{var u=n.get(d);return u===void 0||u.v!==$});for(var[a,c]of n)c.v!==$&&!(a in l)&&o.push(a);return o},setPrototypeOf(){Wn()}})}var Ut,zt,Kt,Gt;function dt(){if(Ut===void 0){Ut=window,zt=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,n=Text.prototype;Kt=de(t,"firstChild").get,Gt=de(t,"nextSibling").get,Tt(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),Tt(n)&&(n.__t=void 0)}}function re(e=""){return document.createTextNode(e)}function we(e){return Kt.call(e)}function X(e){return Gt.call(e)}function vt(e,t){if(!m)return we(e);var n=we(g);if(n===null)n=g.appendChild(re());else if(t&&n.nodeType!==ft){var r=re();return n?.before(r),j(r),r}return j(n),n}function Wt(e,t=!1){if(!m){var n=we(e);return n instanceof Comment&&n.data===""?X(n):n}if(t&&g?.nodeType!==ft){var r=re();return g?.before(r),j(r),r}return g}function Jt(e,t=1,n=!1){let r=m?g:e;for(var i;t--;)i=r,r=X(r);if(!m)return r;if(n&&r?.nodeType!==ft){var s=re();return r===null?i?.after(s):r.before(s),j(s),s}return j(r),r}function mr(e){e.textContent=""}function gr(){return!1}let Xt=!1;function Zt(){Xt||(Xt=!0,document.addEventListener("reset",e=>{Promise.resolve().then(()=>{if(!e.defaultPrevented)for(const t of e.target.elements)t.__on_r?.()})},{capture:!0}))}function _t(e){var t=v,n=_;R(null),H(null);try{return e()}finally{R(t),H(n)}}function wr(e,t,n,r=n){e.addEventListener(t,()=>_t(n));const i=e.__on_r;i?e.__on_r=()=>{i(),r(!0)}:e.__on_r=()=>r(!0),Zt()}function kr(e){_===null&&(v===null&&Un(),Hn()),ae&&Vn()}function br(e,t){var n=t.last;n===null?t.last=t.first=e:(n.next=e,e.prev=n,t.last=e)}function Y(e,t,n){var r=_;r!==null&&(r.f&B)!==0&&(e|=B);var i={ctx:M,deps:null,nodes_start:null,nodes_end:null,f:e|S|F,first:null,fn:t,last:null,next:null,parent:r,b:r&&r.b,prev:null,teardown:null,transitions:null,wv:0,ac:null};if(n)try{Oe(i),i.f|=je}catch(l){throw N(i),l}else t!==null&&oe(i);var s=i;if(n&&s.deps===null&&s.teardown===null&&s.nodes_start===null&&s.first===s.last&&(s.f&se)===0&&(s=s.first,(e&U)!==0&&(e&ve)!==0&&s!==null&&(s.f|=ve)),s!==null&&(s.parent=r,r!==null&&br(s,r),v!==null&&(v.f&y)!==0&&(e&ee)===0)){var f=v;(f.effects??=[]).push(s)}return i}function Ke(){return v!==null&&!V}function yr(e){const t=Y(nt,null,!1);return x(t,E),t.teardown=e,t}function Qt(e){kr();var t=_.f,n=!v&&(t&z)!==0&&(t&je)===0;if(n){var r=M;(r.e??=[]).push(e)}else return en(e)}function en(e){return Y(tt|jn,e,!1)}function $r(e){q.ensure();const t=Y(ee|se,e,!0);return()=>{N(t)}}function Er(e){q.ensure();const t=Y(ee|se,e,!0);return(n={})=>new Promise(r=>{n.outro?Ne(t,()=>{N(t),r(void 0)}):(N(t),r(void 0))})}function xr(e){return Y(tt,e,!1)}function Tr(e){return Y(it|se,e,!0)}function pt(e,t=0){return Y(nt|t,e,!0)}function Se(e,t=[],n=[],r=[]){ur(r,t,n,i=>{Y(nt,()=>e(...i.map(b)),!0)})}function tn(e,t=0){var n=Y(U|t,e,!0);return n}function Z(e){return Y(z|se,e,!0)}function nn(e){var t=e.teardown;if(t!==null){const n=ae,r=v;an(!0),R(null);try{t.call(null)}finally{an(n),R(r)}}}function rn(e,t=!1){var n=e.first;for(e.first=e.last=null;n!==null;){const i=n.ac;i!==null&&_t(()=>{i.abort(_e)});var r=n.next;(n.f&ee)!==0?n.parent=null:N(n,t),n=r}}function Ar(e){for(var t=e.first;t!==null;){var n=t.next;(t.f&z)===0&&N(t),t=n}}function N(e,t=!0){var n=!1;(t||(e.f&Nt)!==0)&&e.nodes_start!==null&&e.nodes_end!==null&&(Sr(e.nodes_start,e.nodes_end),n=!0),rn(e,t&&!n),We(e,0),x(e,G);var r=e.transitions;if(r!==null)for(const s of r)s.stop();nn(e);var i=e.parent;i!==null&&i.first!==null&&sn(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes_start=e.nodes_end=e.ac=null}function Sr(e,t){for(;e!==null;){var n=e===t?null:X(e);e.remove(),e=n}}function sn(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 Ne(e,t,n=!0){var r=[];fn(e,r,!0),Nr(r,()=>{n&&N(e),t&&t()})}function Nr(e,t){var n=e.length;if(n>0){var r=()=>--n||t();for(var i of e)i.out(r)}else t()}function fn(e,t,n){if((e.f&B)===0){if(e.f^=B,e.transitions!==null)for(const f of e.transitions)(f.is_global||n)&&t.push(f);for(var r=e.first;r!==null;){var i=r.next,s=(r.f&ve)!==0||(r.f&z)!==0&&(e.f&U)!==0;fn(r,t,s?n:!1),r=i}}}function Rr(e){ln(e,!0)}function ln(e,t){if((e.f&B)!==0){e.f^=B,(e.f&E)===0&&(x(e,S),oe(e));for(var n=e.first;n!==null;){var r=n.next,i=(n.f&ve)!==0||(n.f&z)!==0;ln(n,i?t:!1),n=r}if(e.transitions!==null)for(const s of e.transitions)(s.is_global||t)&&s.in()}}function on(e,t){for(var n=e.nodes_start,r=e.nodes_end;n!==null;){var i=n===r?null:X(n);t.append(n),n=i}}let ie=!1;function Ge(e){ie=e}let ae=!1;function an(e){ae=e}let v=null,V=!1;function R(e){v=e}let _=null;function H(e){_=e}let Q=null;function un(e){v!==null&&(Q===null?Q=[e]:Q.push(e))}let A=null,C=0,I=null;function Cr(e){I=e}let cn=1,Re=0,ue=Re;function hn(e){ue=e}function dn(){return++cn}function Ce(e){var t=e.f;if((t&S)!==0)return!0;if(t&y&&(e.f&=~fe),(t&K)!==0){var n=e.deps;if(n!==null)for(var r=n.length,i=0;i<r;i++){var s=n[i];if(Ce(s)&&Yt(s),s.wv>e.wv)return!0}(t&F)!==0&&P===null&&x(e,E)}return!1}function vn(e,t,n=!0){var r=e.reactions;if(r!==null&&!Q?.includes(e))for(var i=0;i<r.length;i++){var s=r[i];(s.f&y)!==0?vn(s,t,!1):t===s&&(n?x(s,S):(s.f&E)!==0&&x(s,K),oe(s))}}function _n(e){var t=A,n=C,r=I,i=v,s=Q,f=M,l=V,o=ue,a=e.f;A=null,C=0,I=null,v=(a&(z|ee))===0?e:null,Q=null,me(e.ctx),V=!1,ue=++Re,e.ac!==null&&(_t(()=>{e.ac.abort(_e)}),e.ac=null);try{e.f|=rt;var c=e.fn,d=c(),u=e.deps;if(A!==null){var h;if(We(e,C),u!==null&&C>0)for(u.length=C+A.length,h=0;h<A.length;h++)u[C+h]=A[h];else e.deps=u=A;if(ie&&Ke()&&(e.f&F)!==0)for(h=C;h<u.length;h++)(u[h].reactions??=[]).push(e)}else u!==null&&C<u.length&&(We(e,C),u.length=C);if(Pt()&&I!==null&&!V&&u!==null&&(e.f&(y|K|S))===0)for(h=0;h<I.length;h++)vn(I[h],e);return i!==null&&i!==e&&(Re++,I!==null&&(r===null?r=I:r.push(...I))),(e.f&te)!==0&&(e.f^=te),d}catch(w){return Dt(w)}finally{e.f^=rt,A=t,C=n,I=r,v=i,Q=s,me(f),V=l,ue=o}}function Or(e,t){let n=t.reactions;if(n!==null){var r=Mn.call(n,e);if(r!==-1){var i=n.length-1;i===0?n=t.reactions=null:(n[r]=n[i],n.pop())}}n===null&&(t.f&y)!==0&&(A===null||!A.includes(t))&&(x(t,K),(t.f&F)!==0&&(t.f^=F,t.f&=~fe),Bt(t),We(t,0))}function We(e,t){var n=e.deps;if(n!==null)for(var r=t;r<n.length;r++)Or(e,n[r])}function Oe(e){var t=e.f;if((t&G)===0){x(e,E);var n=_,r=ie;_=e,ie=!0;try{(t&U)!==0?Ar(e):rn(e),nn(e);var i=_n(e);e.teardown=typeof i=="function"?i:null,e.wv=cn;var s;et&&rr&&(e.f&S)!==0&&e.deps}finally{ie=r,_=n}}}function b(e){var t=e.f,n=(t&y)!==0;if(v!==null&&!V){var r=_!==null&&(_.f&G)!==0;if(!r&&!Q?.includes(e)){var i=v.deps;if((v.f&rt)!==0)e.rv<Re&&(e.rv=Re,A===null&&i!==null&&i[C]===e?C++:A===null?A=[e]:A.includes(e)||A.push(e));else{(v.deps??=[]).push(e);var s=e.reactions;s===null?e.reactions=[v]:s.includes(v)||s.push(v)}}}if(ae){if(ne.has(e))return ne.get(e);if(n){var f=e,l=f.v;return((f.f&E)===0&&f.reactions!==null||mn(f))&&(l=ct(f)),ne.set(f,l),l}}else n&&!P?.has(e)&&(f=e,Ce(f)&&Yt(f),ie&&Ke()&&(f.f&F)===0&&pn(f));if(P?.has(e))return P.get(e);if((e.f&te)!==0)throw e.v;return e.v}function pn(e){if(e.deps!==null){e.f^=F;for(const t of e.deps)(t.reactions??=[]).push(e),(t.f&y)!==0&&(t.f&F)===0&&pn(t)}}function mn(e){if(e.v===$)return!0;if(e.deps===null)return!1;for(const t of e.deps)if(ne.has(t)||(t.f&y)!==0&&mn(t))return!0;return!1}function gn(e){var t=V;try{return V=!0,e()}finally{V=t}}const Mr=-7169;function x(e,t){e.f=e.f&Mr|t}const Pr=new Set,wn=new Set;let kn=null;function Je(e){var t=this,n=t.ownerDocument,r=e.type,i=e.composedPath?.()||[],s=i[0]||e.target;kn=e;var f=0,l=kn===e&&e.__root;if(l){var o=i.indexOf(l);if(o!==-1&&(t===document||t===window)){e.__root=t;return}var a=i.indexOf(t);if(a===-1)return;o<=a&&(f=o)}if(s=i[f]||e.target,s!==t){Ie(e,"currentTarget",{configurable:!0,get(){return s||n}});var c=v,d=_;R(null),H(null);try{for(var u,h=[];s!==null;){var w=s.assignedSlot||s.parentNode||s.host||null;try{var p=s["__"+r];p!=null&&(!s.disabled||e.target===s)&&p.call(s,e)}catch(T){u?h.push(T):u=T}if(e.cancelBubble||w===t||w===null)break;s=w}if(u){for(let T of h)queueMicrotask(()=>{throw T});throw u}}finally{e.__root=t,delete e.currentTarget,R(c),H(d)}}}function Lr(e){var t=document.createElement("template");return t.innerHTML=e.replaceAll("<!>","<!---->"),t.content}function Xe(e,t){var n=_;n.nodes_start===null&&(n.nodes_start=e,n.nodes_end=t)}function Me(e,t){var n=(t&Nn)!==0,r=(t&Rn)!==0,i,s=!e.startsWith("<!>");return()=>{if(m)return Xe(g,null),g;i===void 0&&(i=Lr(s?e:"<!>"+e),n||(i=we(i)));var f=r||zt?document.importNode(i,!0):i.cloneNode(!0);if(n){var l=we(f),o=f.lastChild;Xe(l,o)}else Xe(f,f);return f}}function ke(e,t){if(m){var n=_;((n.f&je)===0||n.nodes_end===null)&&(n.nodes_end=g),lt();return}e!==null&&e.before(t)}const Dr=["touchstart","touchmove"];function Ir(e){return Dr.includes(e)}function bn(e,t){var n=t==null?"":typeof t=="object"?t+"":t;n!==(e.__t??=e.nodeValue)&&(e.__t=n,e.nodeValue=n+"")}function yn(e,t){return $n(e,t)}function Fr(e,t){dt(),t.intro=t.intro??!1;const n=t.target,r=m,i=g;try{for(var s=we(n);s&&(s.nodeType!==$e||s.data!==$t);)s=X(s);if(!s)throw he;pe(!0),j(s);const f=$n(e,{...t,anchor:s});return pe(!1),f}catch(f){if(f instanceof Error&&f.message.split(`
|
|
2
|
+
`).some(l=>l.startsWith("https://svelte.dev/e/")))throw f;return f!==he&&console.warn("Failed to hydrate: ",f),t.recover===!1&&Kn(),dt(),mr(n),pe(!1),yn(e,t)}finally{pe(r),j(i)}}const be=new Map;function $n(e,{target:t,anchor:n,props:r={},events:i,context:s,intro:f=!0}){dt();var l=new Set,o=d=>{for(var u=0;u<d.length;u++){var h=d[u];if(!l.has(h)){l.add(h);var w=Ir(h);t.addEventListener(h,Je,{passive:w});var p=be.get(h);p===void 0?(document.addEventListener(h,Je,{passive:w}),be.set(h,1)):be.set(h,p+1)}}};o(Pn(Pr)),wn.add(o);var a=void 0,c=Er(()=>{var d=n??t.appendChild(re());return or(d,{pending:()=>{}},u=>{if(s){Ot({});var h=M;h.c=s}if(i&&(r.$$events=i),m&&Xe(u,null),a=e(u,r)||{},m&&(_.nodes_end=g,g===null||g.nodeType!==$e||g.data!==Et))throw qe(),he;s&&Mt()}),()=>{for(var u of l){t.removeEventListener(u,Je);var h=be.get(u);--h===0?(document.removeEventListener(u,Je),be.delete(u)):be.set(u,h)}wn.delete(o),d!==n&&d.parentNode?.removeChild(d)}});return mt.set(a,c),a}let mt=new WeakMap;function jr(e,t){const n=mt.get(e);return n?(mt.delete(e),n(t)):Promise.resolve()}class qr{anchor;#t=new Map;#e=new Map;#n=new Map;#r=new Set;#o=!0;constructor(t,n=!0){this.anchor=t,this.#o=n}#s=()=>{var t=k;if(this.#t.has(t)){var n=this.#t.get(t),r=this.#e.get(n);if(r)Rr(r),this.#r.delete(n);else{var i=this.#n.get(n);i&&(this.#e.set(n,i.effect),this.#n.delete(n),i.fragment.lastChild.remove(),this.anchor.before(i.fragment),r=i.effect)}for(const[s,f]of this.#t){if(this.#t.delete(s),s===t)break;const l=this.#n.get(f);l&&(N(l.effect),this.#n.delete(f))}for(const[s,f]of this.#e){if(s===n||this.#r.has(s))continue;const l=()=>{if(Array.from(this.#t.values()).includes(s)){var a=document.createDocumentFragment();on(f,a),a.append(re()),this.#n.set(s,{effect:f,fragment:a})}else N(f);this.#r.delete(s),this.#e.delete(s)};this.#o||!r?(this.#r.add(s),Ne(f,l,!1)):l()}}};#i=t=>{this.#t.delete(t);const n=Array.from(this.#t.values());for(const[r,i]of this.#n)n.includes(r)||(N(i.effect),this.#n.delete(r))};ensure(t,n){var r=k,i=gr();if(n&&!this.#e.has(t)&&!this.#n.has(t))if(i){var s=document.createDocumentFragment(),f=re();s.append(f),this.#n.set(t,{effect:Z(()=>n(f)),fragment:s})}else this.#e.set(t,Z(()=>n(this.anchor)));if(this.#t.set(r,t),i){for(const[l,o]of this.#e)l===t?r.skipped_effects.delete(o):r.skipped_effects.add(o);for(const[l,o]of this.#n)l===t?r.skipped_effects.delete(o.effect):r.skipped_effects.add(o.effect);r.oncommit(this.#s),r.ondiscard(this.#i)}else m&&(this.anchor=g),this.#s()}}function gt(e,t,n=!1){m&<();var r=new qr(e),i=n?ve:0;function s(f,l){if(m){const a=er(e)===Qe;if(f===a){var o=Rt();j(o),r.anchor=o,pe(!1),r.ensure(f,l),pe(!0);return}}r.ensure(f,l)}tn(()=>{var f=!1;t((l,o=!0)=>{f=!0,s(o,l)}),f||s(!1,null)},i)}function Br(e,t){xr(()=>{var n=e.getRootNode(),r=n.host?n:n.head??n.ownerDocument.head;if(!r.querySelector("#"+t.hash)){const i=document.createElement("style");i.id=t.hash,i.textContent=t.code,r.appendChild(i)}})}function Yr(e,t,n){var r=e==null?"":""+e;return r=r?r+" "+t:t,r===""?null:r}function Vr(e,t,n,r,i,s){var f=e.__className;if(m||f!==n||f===void 0){var l=Yr(n,r);(!m||l!==e.getAttribute("class"))&&(l==null?e.removeAttribute("class"):e.className=l),e.__className=n}return s}const Hr=Symbol("is custom element"),Ur=Symbol("is html");function En(e){if(m){var t=!1,n=()=>{if(!t){if(t=!0,e.hasAttribute("value")){var r=e.value;Pe(e,"value",null),e.value=r}if(e.hasAttribute("checked")){var i=e.checked;Pe(e,"checked",null),e.checked=i}}};e.__on_r=n,Be(n),Zt()}}function Pe(e,t,n,r){var i=zr(e);m&&(i[t]=e.getAttribute(t),t==="src"||t==="srcset"||t==="href"&&e.nodeName==="LINK")||i[t]!==(i[t]=n)&&(t==="loading"&&(e[Bn]=n),n==null?e.removeAttribute(t):typeof n!="string"&&Kr(e).includes(t)?e[t]=n:e.setAttribute(t,n))}function zr(e){return e.__attributes??={[Hr]:e.nodeName.includes("-"),[Ur]:e.namespaceURI===Cn}}var xn=new Map;function Kr(e){var t=e.getAttribute("is")||e.nodeName,n=xn.get(t);if(n)return n;xn.set(t,n=[]);for(var r,i=e,s=Element.prototype;s!==i;){r=Ln(i);for(var f in r)r[f].set&&n.push(f);i=xt(i)}return n}function Tn(e,t,n=t){wr(e,"change",r=>{var i=r?e.defaultChecked:e.checked;n(i)}),(m&&e.defaultChecked!==e.checked||gn(t)==null)&&n(e.checked),pt(()=>{var r=t();e.checked=!!r})}function wt(e,t,n,r){var i=r,s=!0,f=()=>(s&&(s=!1,i=r),i),l;l=e[t],l===void 0&&r!==void 0&&(l=f());var o;o=()=>{var u=e[t];return u===void 0?f():(s=!0,u)};var a=!1,c=ut(()=>(a=!1,o())),d=_;return(function(u,h){if(arguments.length>0){const w=h?b(c):u;return D(c,w),a=!0,i!==void 0&&(i=w),u}return ae&&a||(d.f&G)!==0?c.v:b(c)})}function Gr(e){return new Wr(e)}class Wr{#t;#e;constructor(t){var n=new Map,r=(s,f)=>{var l=_r(f,!1,!1);return n.set(s,l),l};const i=new Proxy({...t.props||{},$$events:{}},{get(s,f){return b(n.get(f)??r(f,Reflect.get(s,f)))},has(s,f){return f===qn?!0:(b(n.get(f)??r(f,Reflect.get(s,f))),Reflect.has(s,f))},set(s,f,l){return D(n.get(f)??r(f,l),l),Reflect.set(s,f,l)}});this.#e=(t.hydrate?Fr:yn)(t.component,{target:t.target,anchor:t.anchor,props:i,context:t.context,intro:t.intro??!1,recover:t.recover}),(!t?.props?.$$host||t.sync===!1)&&He(),this.#t=i.$$events;for(const s of Object.keys(this.#e))s==="$set"||s==="$destroy"||s==="$on"||Ie(this,s,{get(){return this.#e[s]},set(f){this.#e[s]=f},enumerable:!0});this.#e.$set=s=>{Object.assign(i,s)},this.#e.$destroy=()=>{jr(this.#e)}}$set(t){this.#e.$set(t)}$on(t,n){this.#t[t]=this.#t[t]||[];const r=(...i)=>n.call(this,...i);return this.#t[t].push(r),()=>{this.#t[t]=this.#t[t].filter(i=>i!==r)}}$destroy(){this.#e.$destroy()}}let An;typeof HTMLElement=="function"&&(An=class extends HTMLElement{$$ctor;$$s;$$c;$$cn=!1;$$d={};$$r=!1;$$p_d={};$$l={};$$l_u=new Map;$$me;constructor(e,t,n){super(),this.$$ctor=e,this.$$s=t,n&&this.attachShadow({mode:"open"})}addEventListener(e,t,n){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(t),this.$$c){const r=this.$$c.$on(e,t);this.$$l_u.set(t,r)}super.addEventListener(e,t,n)}removeEventListener(e,t,n){if(super.removeEventListener(e,t,n),this.$$c){const r=this.$$l_u.get(t);r&&(r(),this.$$l_u.delete(t))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let e=function(r){return i=>{const s=document.createElement("slot");r!=="default"&&(s.name=r),ke(i,s)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const t={},n=Jr(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]=Ze(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=Gr({component:this.$$ctor,target:this.shadowRoot||this,props:{...this.$$d,$$slots:t,$$host:this}}),this.$$me=$r(()=>{pt(()=>{this.$$r=!0;for(const r of De(this.$$c)){if(!this.$$p_d[r]?.reflect)continue;this.$$d[r]=this.$$c[r];const i=Ze(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]=Ze(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 De(this.$$p_d).find(t=>this.$$p_d[t].attribute===e||!this.$$p_d[t].attribute&&t.toLowerCase()===e)||e}});function Ze(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 Jr(e){const t={};return e.childNodes.forEach(n=>{t[n.slot||"default"]=!0}),t}function Xr(e,t,n,r,i,s){let f=class extends An{constructor(){super(e,n,i),this.$$p_d=t}static get observedAttributes(){return De(t).map(l=>(t[l].attribute||l).toLowerCase())}};return De(t).forEach(l=>{Ie(f.prototype,l,{get(){return this.$$c&&l in this.$$c?this.$$c[l]:this.$$d[l]},set(o){o=Ze(l,o,t),this.$$d[l]=o;var a=this.$$c;if(a){var c=de(a,l)?.get;c?a[l]=o:a.$set({[l]:o})}}})}),r.forEach(l=>{Ie(f.prototype,l,{get(){return this.$$c?.[l]}})}),e.element=f,f}var Zr=Me('<input type="checkbox" class="form-check-input svelte-1t6khak" switch=""/>'),Qr=Me('<input type="checkbox" class="form-check-input svelte-1t6khak"/>'),ei=Me('<!> <label class="form-check-label svelte-1t6khak"> </label>',1),ti=Me('<div part="invalid-feedback" class="invalid-feedback mb-1 svelte-1t6khak"> </div>'),ni=Me("<div><!></div> <!>",1);const ri={hash:"svelte-1t6khak",code:`@import url("https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap");
|
|
3
3
|
/*!
|
|
4
4
|
* Bootstrap v5.1.2 (https://getbootstrap.com/)
|
|
5
5
|
* Copyright 2011-2021 The Bootstrap Authors
|
|
6
6
|
* Copyright 2011-2021 Twitter, Inc.
|
|
7
7
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
|
8
|
-
|
|
8
|
+
*/.svelte-1t6khak,
|
|
9
9
|
.svelte-1t6khak::before,
|
|
10
10
|
.svelte-1t6khak::after {box-sizing:border-box;}
|
|
11
11
|
@media (prefers-reduced-motion: no-preference) {:host {scroll-behavior:smooth;}
|
|
@@ -71,5 +71,5 @@
|
|
|
71
71
|
@media (min-width: 1200px) {
|
|
72
72
|
}
|
|
73
73
|
@media (min-width: 1400px) {
|
|
74
|
-
}:host {font-family:"Roboto", sans-serif;}.form-check-input.svelte-1t6khak {margin:0px;vertical-align:initial;}.form-check.svelte-1t6khak .form-check-input:where(.svelte-1t6khak) {float:none;}`};function
|
|
74
|
+
}:host {font-family:"Roboto", sans-serif;}.form-check-input.svelte-1t6khak {margin:0px;vertical-align:initial;}.form-check.svelte-1t6khak .form-check-input:where(.svelte-1t6khak) {float:none;}`};function Sn(e,t){Ot(t,!0),Br(e,ri);function n(p,T){t.$$host.dispatchEvent(new CustomEvent(p,{detail:T}))}let r=wt(t,"schemaentry"),i=wt(t,"show_validation",7,"no"),s=wt(t,"id",7,void 0),f=dr(()=>r().required?!!b(l):!0),l=J(!1);Qt(()=>{if(i()||i("no"),r()&&typeof r()=="string")try{r(JSON.parse(r())),D(l,r().value,!0),!s()&&r()?.id&&s(r().id)}catch{}console.log("effectinputcheckbox",b(f),b(l),r())}),Qt(()=>{n("setVal",{value:b(l),valid:b(f),id:s()})});var o={get schemaentry(){return r()},set schemaentry(p){r(p),He()},get show_validation(){return i()},set show_validation(p="no"){i(p),He()},get id(){return s()},set id(p=void 0){s(p),He()}},a=ni(),c=Wt(a),d=vt(c);{var u=p=>{var T=ei(),ce=Wt(T);{var Le=ye=>{var O=Zr();En(O),Se(()=>{Pe(O,"id",s()),O.required=r()?.required,O.readOnly=r()?.readonly}),Tn(O,()=>b(l),bt=>D(l,bt)),ke(ye,O)},ii=ye=>{var O=Qr();En(O),Se(()=>{Pe(O,"id",s()),O.required=r()?.required,O.readOnly=r()?.readonly}),Tn(O,()=>b(l),bt=>D(l,bt)),ke(ye,O)};gt(ce,ye=>{typeof r()=="object"&&r()?.params?.type==="switch"?ye(Le):ye(ii,!1)})}var kt=Jt(ce,2),si=vt(kt);ot(kt),Se(()=>{Pe(kt,"for",r()?.id),bn(si,`${r()?.label??""}${r()?.required?"*":""}`)}),ke(p,T)};gt(d,p=>{r()&&p(u)})}ot(c);var h=Jt(c,2);{var w=p=>{var T=ti(),ce=vt(T,!0);ot(T),Se(()=>bn(ce,r().validationTip)),ke(p,T)};gt(h,p=>{r()?.validationTip&&i()==="yes"&&p(w)})}return Se(()=>Vr(c,1,`form-check ${typeof r()=="object"&&r()?.params?.type==="switch"?"form-switch":""}`,"svelte-1t6khak")),ke(e,a),Mt(o)}customElements.define("hb-input-checkbox",Xr(Sn,{schemaentry:{},show_validation:{},id:{}},[],[],!0)),yt.Component=Sn,Object.defineProperty(yt,Symbol.toStringTag,{value:"Module"})})(this["input-checkbox"]=this["input-checkbox"]||{});
|
|
75
75
|
//# sourceMappingURL=main.iife.js.map
|