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