@htmlbricks/hb-searchbar 0.60.36 → 0.60.37
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 +21 -4
- package/package.json +1 -1
- package/types/webcomponent.type.d.json +6 -0
- package/types/webcomponent.type.d.ts +2 -0
package/main.iife.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
(function(Je){"use strict";typeof window<"u"&&((window.__svelte??={}).v??=new Set).add("5");const ni=1,si=2,mi=16,di=1,fi=2,ue="[",xe="[!",he="]",St={},M=Symbol(),pi="http://www.w3.org/1999/xhtml",Xe=!1;var we=Array.isArray,bi=Array.prototype.indexOf,ye=Array.from,te=Object.keys,Ct=Object.defineProperty,Nt=Object.getOwnPropertyDescriptor,vi=Object.getOwnPropertyDescriptors,gi=Object.prototype,ci=Array.prototype,Ze=Object.getPrototypeOf,Qe=Object.isExtensible;function tr(t){for(var e=0;e<t.length;e++)t[e]()}function ui(){var t,e,r=new Promise((i,o)=>{t=i,e=o});return{promise:r,resolve:t,reject:e}}const W=2,ke=4,_e=8,Mt=16,ct=32,xt=64,er=128,Z=256,ee=512,I=1024,Q=2048,ht=4096,at=8192,jt=16384,je=32768,ze=65536,rr=1<<17,ir=1<<18,Lt=1<<19,xi=1<<20,$e=1<<21,Ae=1<<22,zt=1<<23,Ee=Symbol("$state"),hi=Symbol("legacy props"),wi=Symbol(""),Re=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"},yi=3,Ot=8;function ki(){throw new Error("https://svelte.dev/e/await_outside_boundary")}function _i(t){throw new Error("https://svelte.dev/e/lifecycle_outside_component")}function ji(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function zi(t){throw new Error("https://svelte.dev/e/effect_in_teardown")}function $i(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function Ai(t){throw new Error("https://svelte.dev/e/effect_orphan")}function Ei(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function Ri(){throw new Error("https://svelte.dev/e/hydration_failed")}function Bi(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function Gi(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function Ti(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function re(t){console.warn("https://svelte.dev/e/hydration_mismatch")}let z=!1;function nt(t){z=t}let E;function st(t){if(t===null)throw re(),St;return E=t}function ie(){return st(dt(E))}function q(t){if(z){if(dt(E)!==null)throw re(),St;E=t}}function Be(){for(var t=0,e=E;;){if(e.nodeType===Ot){var r=e.data;if(r===he){if(t===0)return e;t-=1}else(r===ue||r===xe)&&(t+=1)}var i=dt(e);e.remove(),e=i}}function or(t){if(!t||t.nodeType!==Ot)throw re(),St;return t.data}function lr(t){return t===this.v}function Si(t,e){return t!=t?e==e:t!==e||t!==null&&typeof t=="object"||typeof t=="function"}function ar(t){return!Si(t,this.v)}let Ci=!1,tt=null;function oe(t){tt=t}function Ge(t,e=!1,r){tt={p:tt,c:null,e:null,s:t,x:null,l:null}}function Te(t){var e=tt,r=e.e;if(r!==null){e.e=null;for(var i of r)Gr(i)}return t!==void 0&&(e.x=t),tt=e.p,t??{}}function nr(){return!0}const Ni=new WeakMap;function Mi(t){var e=w;if(e===null)return _.f|=zt,t;if((e.f&je)===0){if((e.f&er)===0)throw!e.parent&&t instanceof Error&&sr(t),t;e.b.error(t)}else Se(t,e)}function Se(t,e){for(;e!==null;){if((e.f&er)!==0)try{e.b.error(t);return}catch(r){t=r}e=e.parent}throw t instanceof Error&&sr(t),t}function sr(t){const e=Ni.get(t);e&&(Ct(t,"message",{value:e.message}),Ct(t,"stack",{value:e.stack}))}const Li=typeof requestIdleCallback>"u"?t=>setTimeout(t,1):requestIdleCallback;let Vt=[],Yt=[];function mr(){var t=Vt;Vt=[],tr(t)}function dr(){var t=Yt;Yt=[],tr(t)}function Oi(t){Vt.length===0&&queueMicrotask(mr),Vt.push(t)}function Ii(t){Yt.length===0&&Li(dr),Yt.push(t)}function Pi(){Vt.length>0&&mr(),Yt.length>0&&dr()}function Di(){const t=w.b;return t===null&&ki(),t}function le(t){var e=W|Q,r=_!==null&&(_.f&W)!==0?_:null;return w===null||r!==null&&(r.f&Z)!==0?e|=Z:w.f|=Lt,{ctx:tt,deps:null,effects:null,equals:lr,f:e,fn:t,reactions:null,rv:0,v:M,wv:0,parent:r??w,ac:null}}function qi(t,e){let r=w;r===null&&ji();var i=r.b,o=void 0,l=Wt(M),a=null,s=!_;return eo(()=>{try{var n=t();a&&Promise.resolve(n).catch(()=>{})}catch(p){n=Promise.reject(p)}var m=()=>n;o=a?.then(m,m)??Promise.resolve(n),a=o;var f=R,v=i.is_pending();s&&(i.update_pending_count(1),v||f.increment());const d=(p,b=void 0)=>{a=null,v||f.activate(),b?b!==Re&&(l.f|=zt,Kt(l,b)):((l.f&zt)!==0&&(l.f^=zt),Kt(l,p)),s&&(i.update_pending_count(-1),v||f.decrement()),vr()};if(o.then(d,p=>d(null,p||"unknown")),f)return()=>{queueMicrotask(()=>f.neuter())}}),new Promise(n=>{function m(f){function v(){f===o?n(l):m(o)}f.then(v,v)}m(o)})}function fr(t){const e=le(t);return Pr(e),e}function Fi(t){const e=le(t);return e.equals=ar,e}function pr(t){var e=t.effects;if(e!==null){t.effects=null;for(var r=0;r<e.length;r+=1)pt(e[r])}}function Ui(t){for(var e=t.parent;e!==null;){if((e.f&W)===0)return e;e=e.parent}return null}function Ce(t){var e,r=w;yt(Ui(t));try{pr(t),e=Hr(t)}finally{yt(r)}return e}function br(t){var e=Ce(t);if(t.equals(e)||(t.v=e,t.wv=Fr()),!Bt){var r=(kt||(t.f&Z)!==0)&&t.deps!==null?ht:I;V(t,r)}}function Hi(t,e,r){const i=le;if(e.length===0){r(t.map(i));return}var o=R,l=w,a=Vi(),s=Di();Promise.all(e.map(n=>qi(n))).then(n=>{o?.activate(),a();try{r([...t.map(i),...n])}catch(m){(l.f&jt)===0&&Se(m,l)}o?.deactivate(),vr()}).catch(n=>{s.error(n)})}function Vi(){var t=w,e=_,r=tt,i=R;return function(){yt(t),vt(e),oe(r),i?.activate()}}function vr(){yt(null),vt(null),oe(null)}const Ne=new Set;let R=null,ae=null,gr=new Set,ne=[];function cr(){const t=ne.shift();ne.length>0&&queueMicrotask(cr),t()}let $t=[],se=null,Me=!1,me=!1;class At{current=new Map;#e=new Map;#t=new Set;#r=0;#m=null;#d=!1;#o=[];#a=[];#l=[];#i=[];#n=[];#f=[];#p=[];skipped_effects=new Set;process(e){$t=[],ae=null;for(const o of e)this.#v(o);if(this.#o.length===0&&this.#r===0){this.#b();var r=this.#l,i=this.#i;this.#l=[],this.#i=[],this.#n=[],ae=R,R=null,xr(r),xr(i),R===null?R=this:Ne.delete(this),this.#m?.resolve()}else this.#s(this.#l),this.#s(this.#i),this.#s(this.#n);for(const o of this.#o)Ft(o);for(const o of this.#a)Ft(o);this.#o=[],this.#a=[]}#v(e){e.f^=I;for(var r=e.first;r!==null;){var i=r.f,o=(i&(ct|xt))!==0,l=o&&(i&I)!==0,a=l||(i&at)!==0||this.skipped_effects.has(r);if(!a&&r.fn!==null){if(o)r.f^=I;else if((i&ke)!==0)this.#i.push(r);else if((i&I)===0)if((i&Ae)!==0){var s=r.b?.is_pending()?this.#a:this.#o;s.push(r)}else fe(r)&&((r.f&Mt)!==0&&this.#n.push(r),Ft(r));var n=r.first;if(n!==null){r=n;continue}}var m=r.parent;for(r=r.next;r===null&&m!==null;)r=m.next,m=m.parent}}#s(e){for(const r of e)((r.f&Q)!==0?this.#f:this.#p).push(r),V(r,I);e.length=0}capture(e,r){this.#e.has(e)||this.#e.set(e,r),this.current.set(e,e.v)}activate(){R=this}deactivate(){R=null,ae=null;for(const e of gr)if(gr.delete(e),e(),R!==null)break}neuter(){this.#d=!0}flush(){$t.length>0?ur():this.#b(),R===this&&(this.#r===0&&Ne.delete(this),this.deactivate())}#b(){if(!this.#d)for(const e of this.#t)e();this.#t.clear()}increment(){this.#r+=1}decrement(){if(this.#r-=1,this.#r===0){for(const e of this.#f)V(e,Q),It(e);for(const e of this.#p)V(e,ht),It(e);this.#l=[],this.#i=[],this.flush()}else this.deactivate()}add_callback(e){this.#t.add(e)}settled(){return(this.#m??=ui()).promise}static ensure(){if(R===null){const e=R=new At;Ne.add(R),me||At.enqueue(()=>{R===e&&e.flush()})}return R}static enqueue(e){ne.length===0&&queueMicrotask(cr),ne.unshift(e)}}function C(t){var e=me;me=!0;try{for(var r;;){if(Pi(),$t.length===0&&(R?.flush(),$t.length===0))return se=null,r;ur()}}finally{me=e}}function ur(){var t=qt;Me=!0;try{var e=0;for(Or(!0);$t.length>0;){var r=At.ensure();if(e++>1e3){var i,o;Yi()}r.process($t),wt.clear()}}finally{Me=!1,Or(t),se=null}}function Yi(){try{Ei()}catch(t){Se(t,se)}}let Et=null;function xr(t){var e=t.length;if(e!==0){for(var r=0;r<e;){var i=t[r++];if((i.f&(jt|at))===0&&fe(i)&&(Et=[],Ft(i),i.deps===null&&i.first===null&&i.nodes_start===null&&(i.teardown===null&&i.ac===null?Nr(i):i.fn=null),Et?.length>0)){wt.clear();for(const o of Et)Ft(o);Et=[]}}Et=null}}function It(t){for(var e=se=t;e.parent!==null;){e=e.parent;var r=e.f;if(Me&&e===w&&(r&Mt)!==0)return;if((r&(xt|ct))!==0){if((r&I)===0)return;e.f^=I}}$t.push(e)}const wt=new Map;function Wt(t,e){var r={f:0,v:t,reactions:null,equals:lr,rv:0,wv:0};return r}function mt(t,e){const r=Wt(t);return Pr(r),r}function hr(t,e=!1,r=!0){const i=Wt(t);return e||(i.equals=ar),i}function P(t,e,r=!1){_!==null&&(!bt||(_.f&rr)!==0)&&nr()&&(_.f&(W|Mt|Ae|rr))!==0&&!ut?.includes(t)&&Ti();let i=r?Jt(e):e;return Kt(t,i)}function Kt(t,e){if(!t.equals(e)){var r=t.v;Bt?wt.set(t,e):wt.set(t,r),t.v=e;var i=At.ensure();i.capture(t,r),(t.f&W)!==0&&((t.f&Q)!==0&&Ce(t),V(t,(t.f&Z)===0?I:ht)),t.wv=Fr(),wr(t,Q),w!==null&&(w.f&I)!==0&&(w.f&(ct|xt))===0&&(rt===null?oo([t]):rt.push(t))}return e}function Le(t){P(t,t.v+1)}function wr(t,e){var r=t.reactions;if(r!==null)for(var i=r.length,o=0;o<i;o++){var l=r[o],a=l.f,s=(a&Q)===0;s&&V(l,e),(a&W)!==0?wr(l,ht):s&&((a&Mt)!==0&&Et!==null&&Et.push(l),It(l))}}function Jt(t){if(typeof t!="object"||t===null||Ee in t)return t;const e=Ze(t);if(e!==gi&&e!==ci)return t;var r=new Map,i=we(t),o=mt(0),l=Gt,a=s=>{if(Gt===l)return s();var n=_,m=Gt;vt(null),qr(l);var f=s();return vt(n),qr(m),f};return i&&r.set("length",mt(t.length)),new Proxy(t,{defineProperty(s,n,m){(!("value"in m)||m.configurable===!1||m.enumerable===!1||m.writable===!1)&&Bi();var f=r.get(n);return f===void 0?f=a(()=>{var v=mt(m.value);return r.set(n,v),v}):P(f,m.value,!0),!0},deleteProperty(s,n){var m=r.get(n);if(m===void 0){if(n in s){const f=a(()=>mt(M));r.set(n,f),Le(o)}}else P(m,M),Le(o);return!0},get(s,n,m){if(n===Ee)return t;var f=r.get(n),v=n in s;if(f===void 0&&(!v||Nt(s,n)?.writable)&&(f=a(()=>{var p=Jt(v?s[n]:M),b=mt(p);return b}),r.set(n,f)),f!==void 0){var d=x(f);return d===M?void 0:d}return Reflect.get(s,n,m)},getOwnPropertyDescriptor(s,n){var m=Reflect.getOwnPropertyDescriptor(s,n);if(m&&"value"in m){var f=r.get(n);f&&(m.value=x(f))}else if(m===void 0){var v=r.get(n),d=v?.v;if(v!==void 0&&d!==M)return{enumerable:!0,configurable:!0,value:d,writable:!0}}return m},has(s,n){if(n===Ee)return!0;var m=r.get(n),f=m!==void 0&&m.v!==M||Reflect.has(s,n);if(m!==void 0||w!==null&&(!f||Nt(s,n)?.writable)){m===void 0&&(m=a(()=>{var d=f?Jt(s[n]):M,p=mt(d);return p}),r.set(n,m));var v=x(m);if(v===M)return!1}return f},set(s,n,m,f){var v=r.get(n),d=n in s;if(i&&n==="length")for(var p=m;p<v.v;p+=1){var b=r.get(p+"");b!==void 0?P(b,M):p in s&&(b=a(()=>mt(M)),r.set(p+"",b))}if(v===void 0)(!d||Nt(s,n)?.writable)&&(v=a(()=>mt(void 0)),P(v,Jt(m)),r.set(n,v));else{d=v.v!==M;var c=a(()=>Jt(m));P(v,c)}var u=Reflect.getOwnPropertyDescriptor(s,n);if(u?.set&&u.set.call(f,m),!d){if(i&&typeof n=="string"){var A=r.get("length"),y=Number(n);Number.isInteger(y)&&y>=A.v&&P(A,y+1)}Le(o)}return!0},ownKeys(s){x(o);var n=Reflect.ownKeys(s).filter(v=>{var d=r.get(v);return d===void 0||d.v!==M});for(var[m,f]of r)f.v!==M&&!(m in s)&&n.push(m);return n},setPrototypeOf(){Gi()}})}var yr,kr,_r,jr;function Oe(){if(yr===void 0){yr=window,kr=/Firefox/.test(navigator.userAgent);var t=Element.prototype,e=Node.prototype,r=Text.prototype;_r=Nt(e,"firstChild").get,jr=Nt(e,"nextSibling").get,Qe(t)&&(t.__click=void 0,t.__className=void 0,t.__attributes=null,t.__style=void 0,t.__e=void 0),Qe(r)&&(r.__t=void 0)}}function Pt(t=""){return document.createTextNode(t)}function Rt(t){return _r.call(t)}function dt(t){return jr.call(t)}function F(t,e){if(!z)return Rt(t);var r=Rt(E);return r===null&&(r=E.appendChild(Pt())),st(r),r}function zr(t,e){if(!z){var r=Rt(t);return r instanceof Comment&&r.data===""?dt(r):r}return E}function K(t,e=1,r=!1){let i=z?E:t;for(var o;e--;)o=i,i=dt(i);if(!z)return i;if(r&&i?.nodeType!==yi){var l=Pt();return i===null?o?.after(l):i.before(l),st(l),l}return st(i),i}function $r(t){t.textContent=""}function Ar(){return!1}let Er=!1;function Rr(){Er||(Er=!0,document.addEventListener("reset",t=>{Promise.resolve().then(()=>{if(!t.defaultPrevented)for(const e of t.target.elements)e.__on_r?.()})},{capture:!0}))}function de(t){var e=_,r=w;vt(null),yt(null);try{return t()}finally{vt(e),yt(r)}}function Wi(t,e,r,i=r){t.addEventListener(e,()=>de(r));const o=t.__on_r;o?t.__on_r=()=>{o(),i(!0)}:t.__on_r=()=>i(!0),Rr()}function Ki(t){w===null&&_===null&&Ai(),_!==null&&(_.f&Z)!==0&&w===null&&$i(),Bt&&zi()}function Ji(t,e){var r=e.last;r===null?e.last=e.first=t:(r.next=t,t.prev=r,e.last=t)}function ft(t,e,r,i=!0){var o=w;o!==null&&(o.f&at)!==0&&(t|=at);var l={ctx:tt,deps:null,nodes_start:null,nodes_end:null,f:t|Q,first:null,fn:e,last:null,next:null,parent:o,b:o&&o.b,prev:null,teardown:null,transitions:null,wv:0,ac:null};if(r)try{Ft(l),l.f|=je}catch(n){throw pt(l),n}else e!==null&&It(l);if(i){var a=l;if(r&&a.deps===null&&a.teardown===null&&a.nodes_start===null&&a.first===a.last&&(a.f&Lt)===0&&(a=a.first),a!==null&&(a.parent=o,o!==null&&Ji(a,o),_!==null&&(_.f&W)!==0&&(t&xt)===0)){var s=_;(s.effects??=[]).push(a)}}return l}function Xi(t){const e=ft(_e,null,!1);return V(e,I),e.teardown=t,e}function Br(t){Ki();var e=w.f,r=!_&&(e&ct)!==0&&(e&je)===0;if(r){var i=tt;(i.e??=[]).push(t)}else return Gr(t)}function Gr(t){return ft(ke|xi,t,!1)}function Zi(t){At.ensure();const e=ft(xt|Lt,t,!0);return()=>{pt(e)}}function Qi(t){At.ensure();const e=ft(xt|Lt,t,!0);return(r={})=>new Promise(i=>{r.outro?Pe(e,()=>{pt(e),i(void 0)}):(pt(e),i(void 0))})}function to(t){return ft(ke,t,!1)}function eo(t){return ft(Ae|Lt,t,!0)}function Tr(t,e=0){return ft(_e|e,t,!0)}function et(t,e=[],r=[]){Hi(e,r,i=>{ft(_e,()=>t(...i.map(x)),!0)})}function Ie(t,e=0){var r=ft(Mt|e,t,!0);return r}function Dt(t,e=!0){return ft(ct|Lt,t,!0,e)}function Sr(t){var e=t.teardown;if(e!==null){const r=Bt,i=_;Ir(!0),vt(null);try{e.call(null)}finally{Ir(r),vt(i)}}}function Cr(t,e=!1){var r=t.first;for(t.first=t.last=null;r!==null;){const o=r.ac;o!==null&&de(()=>{o.abort(Re)});var i=r.next;(r.f&xt)!==0?r.parent=null:pt(r,e),r=i}}function ro(t){for(var e=t.first;e!==null;){var r=e.next;(e.f&ct)===0&&pt(e),e=r}}function pt(t,e=!0){var r=!1;(e||(t.f&ir)!==0)&&t.nodes_start!==null&&t.nodes_end!==null&&(io(t.nodes_start,t.nodes_end),r=!0),Cr(t,e&&!r),pe(t,0),V(t,jt);var i=t.transitions;if(i!==null)for(const l of i)l.stop();Sr(t);var o=t.parent;o!==null&&o.first!==null&&Nr(t),t.next=t.prev=t.teardown=t.ctx=t.deps=t.fn=t.nodes_start=t.nodes_end=t.ac=null}function io(t,e){for(;t!==null;){var r=t===e?null:dt(t);t.remove(),t=r}}function Nr(t){var e=t.parent,r=t.prev,i=t.next;r!==null&&(r.next=i),i!==null&&(i.prev=r),e!==null&&(e.first===t&&(e.first=i),e.last===t&&(e.last=r))}function Pe(t,e){var r=[];De(t,r,!0),Mr(r,()=>{pt(t),e&&e()})}function Mr(t,e){var r=t.length;if(r>0){var i=()=>--r||e();for(var o of t)o.out(i)}else e()}function De(t,e,r){if((t.f&at)===0){if(t.f^=at,t.transitions!==null)for(const a of t.transitions)(a.is_global||r)&&e.push(a);for(var i=t.first;i!==null;){var o=i.next,l=(i.f&ze)!==0||(i.f&ct)!==0;De(i,e,l?r:!1),i=o}}}function qe(t){Lr(t,!0)}function Lr(t,e){if((t.f&at)!==0){t.f^=at,(t.f&I)===0&&(V(t,Q),It(t));for(var r=t.first;r!==null;){var i=r.next,o=(r.f&ze)!==0||(r.f&ct)!==0;Lr(r,o?e:!1),r=i}if(t.transitions!==null)for(const l of t.transitions)(l.is_global||e)&&l.in()}}let qt=!1;function Or(t){qt=t}let Bt=!1;function Ir(t){Bt=t}let _=null,bt=!1;function vt(t){_=t}let w=null;function yt(t){w=t}let ut=null;function Pr(t){_!==null&&(ut===null?ut=[t]:ut.push(t))}let U=null,J=0,rt=null;function oo(t){rt=t}let Dr=1,Xt=0,Gt=Xt;function qr(t){Gt=t}let kt=!1;function Fr(){return++Dr}function fe(t){var e=t.f;if((e&Q)!==0)return!0;if((e&ht)!==0){var r=t.deps,i=(e&Z)!==0;if(r!==null){var o,l,a=(e&ee)!==0,s=i&&w!==null&&!kt,n=r.length;if((a||s)&&(w===null||(w.f&jt)===0)){var m=t,f=m.parent;for(o=0;o<n;o++)l=r[o],(a||!l?.reactions?.includes(m))&&(l.reactions??=[]).push(m);a&&(m.f^=ee),s&&f!==null&&(f.f&Z)===0&&(m.f^=Z)}for(o=0;o<n;o++)if(l=r[o],fe(l)&&br(l),l.wv>t.wv)return!0}(!i||w!==null&&!kt)&&V(t,I)}return!1}function Ur(t,e,r=!0){var i=t.reactions;if(i!==null&&!ut?.includes(t))for(var o=0;o<i.length;o++){var l=i[o];(l.f&W)!==0?Ur(l,e,!1):e===l&&(r?V(l,Q):(l.f&I)!==0&&V(l,ht),It(l))}}function Hr(t){var e=U,r=J,i=rt,o=_,l=kt,a=ut,s=tt,n=bt,m=Gt,f=t.f;U=null,J=0,rt=null,kt=(f&Z)!==0&&(bt||!qt||_===null),_=(f&(ct|xt))===0?t:null,ut=null,oe(t.ctx),bt=!1,Gt=++Xt,t.ac!==null&&(de(()=>{t.ac.abort(Re)}),t.ac=null);try{t.f|=$e;var v=t.fn,d=v(),p=t.deps;if(U!==null){var b;if(pe(t,J),p!==null&&J>0)for(p.length=J+U.length,b=0;b<U.length;b++)p[J+b]=U[b];else t.deps=p=U;if(!kt||(f&W)!==0&&t.reactions!==null)for(b=J;b<p.length;b++)(p[b].reactions??=[]).push(t)}else p!==null&&J<p.length&&(pe(t,J),p.length=J);if(nr()&&rt!==null&&!bt&&p!==null&&(t.f&(W|ht|Q))===0)for(b=0;b<rt.length;b++)Ur(rt[b],t);return o!==null&&o!==t&&(Xt++,rt!==null&&(i===null?i=rt:i.push(...rt))),(t.f&zt)!==0&&(t.f^=zt),d}catch(c){return Mi(c)}finally{t.f^=$e,U=e,J=r,rt=i,_=o,kt=l,ut=a,oe(s),bt=n,Gt=m}}function lo(t,e){let r=e.reactions;if(r!==null){var i=bi.call(r,t);if(i!==-1){var o=r.length-1;o===0?r=e.reactions=null:(r[i]=r[o],r.pop())}}r===null&&(e.f&W)!==0&&(U===null||!U.includes(e))&&(V(e,ht),(e.f&(Z|ee))===0&&(e.f^=ee),pr(e),pe(e,0))}function pe(t,e){var r=t.deps;if(r!==null)for(var i=e;i<r.length;i++)lo(t,r[i])}function Ft(t){var e=t.f;if((e&jt)===0){V(t,I);var r=w,i=qt;w=t,qt=!0;try{(e&Mt)!==0?ro(t):Cr(t),Sr(t);var o=Hr(t);t.teardown=typeof o=="function"?o:null,t.wv=Dr;var l;Xe&&Ci&&(t.f&Q)!==0&&t.deps}finally{qt=i,w=r}}}async function ao(){await Promise.resolve(),C()}function x(t){var e=t.f,r=(e&W)!==0;if(_!==null&&!bt){var i=w!==null&&(w.f&jt)!==0;if(!i&&!ut?.includes(t)){var o=_.deps;if((_.f&$e)!==0)t.rv<Xt&&(t.rv=Xt,U===null&&o!==null&&o[J]===t?J++:U===null?U=[t]:(!kt||!U.includes(t))&&U.push(t));else{(_.deps??=[]).push(t);var l=t.reactions;l===null?t.reactions=[_]:l.includes(_)||l.push(_)}}}else if(r&&t.deps===null&&t.effects===null){var a=t,s=a.parent;s!==null&&(s.f&Z)===0&&(a.f^=Z)}if(Bt){if(wt.has(t))return wt.get(t);if(r){a=t;var n=a.v;return((a.f&I)===0&&a.reactions!==null||Vr(a))&&(n=Ce(a)),wt.set(a,n),n}}else r&&(a=t,fe(a)&&br(a));if((t.f&zt)!==0)throw t.v;return t.v}function Vr(t){if(t.v===M)return!0;if(t.deps===null)return!1;for(const e of t.deps)if(wt.has(e)||(e.f&W)!==0&&Vr(e))return!0;return!1}function Yr(t){var e=bt;try{return bt=!0,t()}finally{bt=e}}const no=-7169;function V(t,e){t.f=t.f&no|e}const Wr=new Set,Fe=new Set;function so(t,e,r,i={}){function o(l){if(i.capture||Zt.call(e,l),!l.cancelBubble)return de(()=>r?.call(this,l))}return t.startsWith("pointer")||t.startsWith("touch")||t==="wheel"?Oi(()=>{e.addEventListener(t,o,i)}):e.addEventListener(t,o,i),o}function mo(t,e,r,i,o){var l={capture:i,passive:o},a=so(t,e,r,l);(e===document.body||e===window||e===document||e instanceof HTMLMediaElement)&&Xi(()=>{e.removeEventListener(t,a,l)})}function Kr(t){for(var e=0;e<t.length;e++)Wr.add(t[e]);for(var r of Fe)r(t)}let Jr=null;function Zt(t){var e=this,r=e.ownerDocument,i=t.type,o=t.composedPath?.()||[],l=o[0]||t.target;Jr=t;var a=0,s=Jr===t&&t.__root;if(s){var n=o.indexOf(s);if(n!==-1&&(e===document||e===window)){t.__root=e;return}var m=o.indexOf(e);if(m===-1)return;n<=m&&(a=n)}if(l=o[a]||t.target,l!==e){Ct(t,"currentTarget",{configurable:!0,get(){return l||r}});var f=_,v=w;vt(null),yt(null);try{for(var d,p=[];l!==null;){var b=l.assignedSlot||l.parentNode||l.host||null;try{var c=l["__"+i];if(c!=null&&(!l.disabled||t.target===l))if(we(c)){var[u,...A]=c;u.apply(l,[t,...A])}else c.call(l,t)}catch(y){d?p.push(y):d=y}if(t.cancelBubble||b===e||b===null)break;l=b}if(d){for(let y of p)queueMicrotask(()=>{throw y});throw d}}finally{t.__root=e,delete t.currentTarget,vt(f),yt(v)}}}let it;function fo(){it=void 0}function po(t){let e=null,r=z;var i;if(z){for(e=E,it===void 0&&(it=Rt(document.head));it!==null&&(it.nodeType!==Ot||it.data!==ue);)it=dt(it);it===null?nt(!1):it=st(dt(it))}z||(i=document.head.appendChild(Pt()));try{Ie(()=>t(i),ir)}finally{r&&(nt(!0),it=E,st(e))}}function bo(t){var e=document.createElement("template");return e.innerHTML=t.replaceAll("<!>","<!---->"),e.content}function be(t,e){var r=w;r.nodes_start===null&&(r.nodes_start=t,r.nodes_end=e)}function L(t,e){var r=(e&di)!==0,i=(e&fi)!==0,o,l=!t.startsWith("<!>");return()=>{if(z)return be(E,null),E;o===void 0&&(o=bo(l?t:"<!>"+t),r||(o=Rt(o)));var a=i||kr?document.importNode(o,!0):o.cloneNode(!0);if(r){var s=Rt(a),n=a.lastChild;be(s,n)}else be(a,a);return a}}function N(t,e){if(z){w.nodes_end=E,ie();return}t!==null&&t.before(e)}const vo=["touchstart","touchmove"];function go(t){return vo.includes(t)}function Tt(t,e){var r=e==null?"":typeof e=="object"?e+"":e;r!==(t.__t??=t.nodeValue)&&(t.__t=r,t.nodeValue=r+"")}function Xr(t,e){return Zr(t,e)}function co(t,e){Oe(),e.intro=e.intro??!1;const r=e.target,i=z,o=E;try{for(var l=Rt(r);l&&(l.nodeType!==Ot||l.data!==ue);)l=dt(l);if(!l)throw St;nt(!0),st(l),ie();const a=Zr(t,{...e,anchor:l});if(E===null||E.nodeType!==Ot||E.data!==he)throw re(),St;return nt(!1),a}catch(a){if(a instanceof Error&&a.message.split(`
|
|
2
|
-
`).some(s=>s.startsWith("https://svelte.dev/e/")))throw a;return a!==St&&console.warn("Failed to hydrate: ",a),e.recover===!1&&Ri(),Oe(),$r(r),nt(!1),Xr(t,e)}finally{nt(i),st(o),fo()}}const Ut=new Map;function Zr(t,{target:e,anchor:r,props:i={},events:o,context:l,intro:a=!0}){Oe();var s=new Set,n=v=>{for(var d=0;d<v.length;d++){var p=v[d];if(!s.has(p)){s.add(p);var b=go(p);e.addEventListener(p,Zt,{passive:b});var c=Ut.get(p);c===void 0?(document.addEventListener(p,Zt,{passive:b}),Ut.set(p,1)):Ut.set(p,c+1)}}};n(ye(Wr)),Fe.add(n);var m=void 0,f=Qi(()=>{var v=r??e.appendChild(Pt());return Dt(()=>{if(l){Ge({});var d=tt;d.c=l}o&&(i.$$events=o),z&&be(v,null),m=t(v,i)||{},z&&(w.nodes_end=E),l&&Te()}),()=>{for(var d of s){e.removeEventListener(d,Zt);var p=Ut.get(d);--p===0?(document.removeEventListener(d,Zt),Ut.delete(d)):Ut.set(d,p)}Fe.delete(n),v!==r&&v.parentNode?.removeChild(v)}});return Ue.set(m,f),m}let Ue=new WeakMap;function uo(t,e){const r=Ue.get(t);return r?(Ue.delete(t),r(e)):Promise.resolve()}function xo(t){tt===null&&_i(),Br(()=>{const e=Yr(t);if(typeof e=="function")return e})}function ot(t,e,r=!1){z&&ie();var i=t,o=null,l=null,a=M,s=r?ze:0,n=!1;const m=(p,b=!0)=>{n=!0,d(b,p)};var f=null;function v(){f!==null&&(f.lastChild.remove(),i.before(f),f=null);var p=a?o:l,b=a?l:o;p&&qe(p),b&&Pe(b,()=>{a?l=null:o=null})}const d=(p,b)=>{if(a===(a=p))return;let c=!1;if(z){const G=or(i)===xe;!!a===G&&(i=Be(),st(i),nt(!1),c=!0)}var u=Ar(),A=i;if(u&&(f=document.createDocumentFragment(),f.append(A=Pt())),a?o??=b&&Dt(()=>b(A)):l??=b&&Dt(()=>b(A)),u){var y=R,k=a?o:l,h=a?l:o;k&&y.skipped_effects.delete(k),h&&y.skipped_effects.add(h),y.add_callback(v)}else v();c&&nt(!0)};Ie(()=>{n=!1,e(m),n||d(null,null)},s),z&&(i=E)}function ho(t,e,r){for(var i=t.items,o=[],l=e.length,a=0;a<l;a++)De(e[a].e,o,!0);var s=l>0&&o.length===0&&r!==null;if(s){var n=r.parentNode;$r(n),n.append(r),i.clear(),gt(t,e[0].prev,e[l-1].next)}Mr(o,()=>{for(var m=0;m<l;m++){var f=e[m];s||(i.delete(f.k),gt(t,f.prev,f.next)),pt(f.e,!s)}})}function wo(t,e,r,i,o,l=null){var a=t,s={flags:e,items:new Map,first:null};z&&ie();var n=null,m=!1,f=new Map,v=Fi(()=>{var c=r();return we(c)?c:c==null?[]:ye(c)}),d,p;function b(){yo(p,d,s,f,a,o,e,i,r),l!==null&&(d.length===0?n?qe(n):n=Dt(()=>l(a)):n!==null&&Pe(n,()=>{n=null}))}Ie(()=>{p??=w,d=x(v);var c=d.length;if(m&&c===0)return;m=c===0;let u=!1;if(z){var A=or(a)===xe;A!==(c===0)&&(a=Be(),st(a),nt(!1),u=!0)}if(z){for(var y=null,k,h=0;h<c;h++){if(E.nodeType===Ot&&E.data===he){a=E,u=!0,nt(!1);break}var G=d[h],S=i(G,h);k=He(E,s,y,null,G,S,h,o,e,r),s.items.set(S,k),y=k}c>0&&st(Be())}if(z)c===0&&l&&(n=Dt(()=>l(a)));else if(Ar()){var lt=new Set,Y=R;for(h=0;h<c;h+=1){G=d[h],S=i(G,h);var O=s.items.get(S)??f.get(S);O?Qr(O,G,h):(k=He(null,s,null,null,G,S,h,o,e,r,!0),f.set(S,k)),lt.add(S)}for(const[$,j]of s.items)lt.has($)||Y.skipped_effects.add(j.e);Y.add_callback(b)}else b();u&&nt(!0),x(v)}),z&&(a=E)}function yo(t,e,r,i,o,l,a,s,n){var m=e.length,f=r.items,v=r.first,d=v,p,b=null,c=[],u=[],A,y,k,h;for(h=0;h<m;h+=1){if(A=e[h],y=s(A,h),k=f.get(y),k===void 0){var G=i.get(y);if(G!==void 0){i.delete(y),f.set(y,G);var S=b?b.next:d;gt(r,b,G),gt(r,G,S),Ve(G,S,o),b=G}else{var lt=d?d.e.nodes_start:o;b=He(lt,r,b,b===null?r.first:b.next,A,y,h,l,a,n)}f.set(y,b),c=[],u=[],d=b.next;continue}if(Qr(k,A,h),(k.e.f&at)!==0&&qe(k.e),k!==d){if(p!==void 0&&p.has(k)){if(c.length<u.length){var Y=u[0],O;b=Y.prev;var $=c[0],j=c[c.length-1];for(O=0;O<c.length;O+=1)Ve(c[O],Y,o);for(O=0;O<u.length;O+=1)p.delete(u[O]);gt(r,$.prev,j.next),gt(r,b,$),gt(r,j,Y),d=Y,b=j,h-=1,c=[],u=[]}else p.delete(k),Ve(k,d,o),gt(r,k.prev,k.next),gt(r,k,b===null?r.first:b.next),gt(r,b,k),b=k;continue}for(c=[],u=[];d!==null&&d.k!==y;)(d.e.f&at)===0&&(p??=new Set).add(d),u.push(d),d=d.next;if(d===null)continue;k=d}c.push(k),b=k,d=k.next}if(d!==null||p!==void 0){for(var H=p===void 0?[]:ye(p);d!==null;)(d.e.f&at)===0&&H.push(d),d=d.next;var g=H.length;if(g>0){var T=null;ho(r,H,T)}}t.first=r.first&&r.first.e,t.last=b&&b.e;for(var B of i.values())pt(B.e);i.clear()}function Qr(t,e,r,i){Kt(t.v,e),Kt(t.i,r)}function He(t,e,r,i,o,l,a,s,n,m,f){var v=(n&ni)!==0,d=(n&mi)===0,p=v?d?hr(o,!1,!1):Wt(o):o,b=(n&si)===0?a:Wt(a),c={i:b,v:p,k:l,a:null,e:null,prev:r,next:i};try{if(t===null){var u=document.createDocumentFragment();u.append(t=Pt())}return c.e=Dt(()=>s(t,p,b,m),z),c.e.prev=r&&r.e,c.e.next=i&&i.e,r===null?f||(e.first=c):(r.next=c,r.e.next=c.e),i!==null&&(i.prev=c,i.e.prev=c.e),c}finally{}}function Ve(t,e,r){for(var i=t.next?t.next.e.nodes_start:r,o=e?e.e.nodes_start:r,l=t.e.nodes_start;l!==null&&l!==i;){var a=dt(l);o.before(l),l=a}}function gt(t,e,r){e===null?t.first=r:(e.next=r,e.e.next=r&&r.e),r!==null&&(r.prev=e,r.e.prev=e&&e.e)}function ti(t,e){to(()=>{var r=t.getRootNode(),i=r.host?r:r.head??r.ownerDocument.head;if(!i.querySelector("#"+e.hash)){const o=document.createElement("style");o.id=e.hash,o.textContent=e.code,i.appendChild(o)}})}function ko(t,e,r){var i=t==null?"":""+t;return i=i?i+" "+e:e,i===""?null:i}function _o(t,e){return t==null?null:String(t)}function _t(t,e,r,i,o,l){var a=t.__className;if(z||a!==r||a===void 0){var s=ko(r,i);(!z||s!==t.getAttribute("class"))&&(s==null?t.removeAttribute("class"):t.className=s),t.__className=r}return l}function jo(t,e,r,i){var o=t.__style;if(z||o!==e){var l=_o(e);(!z||l!==t.getAttribute("style"))&&(l==null?t.removeAttribute("style"):t.style.cssText=l),t.__style=e}return i}const zo=Symbol("is custom element"),$o=Symbol("is html");function Ao(t){if(z){var e=!1,r=()=>{if(!e){if(e=!0,t.hasAttribute("value")){var i=t.value;ve(t,"value",null),t.value=i}if(t.hasAttribute("checked")){var o=t.checked;ve(t,"checked",null),t.checked=o}}};t.__on_r=r,Ii(r),Rr()}}function ve(t,e,r,i){var o=Eo(t);z&&(o[e]=t.getAttribute(e),e==="src"||e==="srcset"||e==="href"&&t.nodeName==="LINK")||o[e]!==(o[e]=r)&&(e==="loading"&&(t[wi]=r),r==null?t.removeAttribute(e):typeof r!="string"&&Ro(t).includes(e)?t[e]=r:t.setAttribute(e,r))}function Eo(t){return t.__attributes??={[zo]:t.nodeName.includes("-"),[$o]:t.namespaceURI===pi}}var ei=new Map;function Ro(t){var e=t.getAttribute("is")||t.nodeName,r=ei.get(e);if(r)return r;ei.set(e,r=[]);for(var i,o=t,l=Element.prototype;l!==o;){i=vi(o);for(var a in i)i[a].set&&r.push(a);o=Ze(o)}return r}function Bo(t,e,r=e){var i=new WeakSet;Wi(t,"input",async o=>{var l=o?t.defaultValue:t.value;if(l=Ye(t)?We(l):l,r(l),R!==null&&i.add(R),await ao(),l!==(l=e())){var a=t.selectionStart,s=t.selectionEnd;t.value=l??"",s!==null&&(t.selectionStart=a,t.selectionEnd=Math.min(s,t.value.length))}}),(z&&t.defaultValue!==t.value||Yr(e)==null&&t.value)&&(r(Ye(t)?We(t.value):t.value),R!==null&&i.add(R)),Tr(()=>{var o=e();if(t===document.activeElement){var l=ae??R;if(i.has(l))return}Ye(t)&&o===We(t.value)||t.type==="date"&&!o&&!t.value||o!==t.value&&(t.value=o??"")})}function Ye(t){var e=t.type;return e==="number"||e==="range"}function We(t){return t===""?null:+t}function D(t,e,r,i){var o=i,l=!0,a=()=>(l&&(l=!1,o=i),o),s;s=t[e],s===void 0&&i!==void 0&&(s=a());var n;n=()=>{var d=t[e];return d===void 0?a():(l=!0,d)};var m=!1,f=le(()=>(m=!1,n())),v=w;return(function(d,p){if(arguments.length>0){const b=p?x(f):d;return P(f,b),m=!0,o!==void 0&&(o=b),d}return Bt&&m||(v.f&jt)!==0?f.v:x(f)})}function Go(t){return new To(t)}class To{#e;#t;constructor(e){var r=new Map,i=(l,a)=>{var s=hr(a,!1,!1);return r.set(l,s),s};const o=new Proxy({...e.props||{},$$events:{}},{get(l,a){return x(r.get(a)??i(a,Reflect.get(l,a)))},has(l,a){return a===hi?!0:(x(r.get(a)??i(a,Reflect.get(l,a))),Reflect.has(l,a))},set(l,a,s){return P(r.get(a)??i(a,s),s),Reflect.set(l,a,s)}});this.#t=(e.hydrate?co:Xr)(e.component,{target:e.target,anchor:e.anchor,props:o,context:e.context,intro:e.intro??!1,recover:e.recover}),(!e?.props?.$$host||e.sync===!1)&&C(),this.#e=o.$$events;for(const l of Object.keys(this.#t))l==="$set"||l==="$destroy"||l==="$on"||Ct(this,l,{get(){return this.#t[l]},set(a){this.#t[l]=a},enumerable:!0});this.#t.$set=l=>{Object.assign(o,l)},this.#t.$destroy=()=>{uo(this.#t)}}$set(e){this.#t.$set(e)}$on(e,r){this.#e[e]=this.#e[e]||[];const i=(...o)=>r.call(this,...o);return this.#e[e].push(i),()=>{this.#e[e]=this.#e[e].filter(o=>o!==i)}}$destroy(){this.#t.$destroy()}}let ri;typeof HTMLElement=="function"&&(ri=class extends HTMLElement{$$ctor;$$s;$$c;$$cn=!1;$$d={};$$r=!1;$$p_d={};$$l={};$$l_u=new Map;$$me;constructor(t,e,r){super(),this.$$ctor=t,this.$$s=e,r&&this.attachShadow({mode:"open"})}addEventListener(t,e,r){if(this.$$l[t]=this.$$l[t]||[],this.$$l[t].push(e),this.$$c){const i=this.$$c.$on(t,e);this.$$l_u.set(e,i)}super.addEventListener(t,e,r)}removeEventListener(t,e,r){if(super.removeEventListener(t,e,r),this.$$c){const i=this.$$l_u.get(e);i&&(i(),this.$$l_u.delete(e))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let t=function(i){return o=>{const l=document.createElement("slot");i!=="default"&&(l.name=i),N(o,l)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const e={},r=So(this);for(const i of this.$$s)i in r&&(i==="default"&&!this.$$d.children?(this.$$d.children=t(i),e.default=!0):e[i]=t(i));for(const i of this.attributes){const o=this.$$g_p(i.name);o in this.$$d||(this.$$d[o]=ge(o,i.value,this.$$p_d,"toProp"))}for(const i in this.$$p_d)!(i in this.$$d)&&this[i]!==void 0&&(this.$$d[i]=this[i],delete this[i]);this.$$c=Go({component:this.$$ctor,target:this.shadowRoot||this,props:{...this.$$d,$$slots:e,$$host:this}}),this.$$me=Zi(()=>{Tr(()=>{this.$$r=!0;for(const i of te(this.$$c)){if(!this.$$p_d[i]?.reflect)continue;this.$$d[i]=this.$$c[i];const o=ge(i,this.$$d[i],this.$$p_d,"toAttribute");o==null?this.removeAttribute(this.$$p_d[i].attribute||i):this.setAttribute(this.$$p_d[i].attribute||i,o)}this.$$r=!1})});for(const i in this.$$l)for(const o of this.$$l[i]){const l=this.$$c.$on(i,o);this.$$l_u.set(o,l)}this.$$l={}}}attributeChangedCallback(t,e,r){this.$$r||(t=this.$$g_p(t),this.$$d[t]=ge(t,r,this.$$p_d,"toProp"),this.$$c?.$set({[t]:this.$$d[t]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$me(),this.$$c=void 0)})}$$g_p(t){return te(this.$$p_d).find(e=>this.$$p_d[e].attribute===t||!this.$$p_d[e].attribute&&e.toLowerCase()===t)||t}});function ge(t,e,r,i){const o=r[t]?.type;if(e=o==="Boolean"&&typeof e!="boolean"?e!=null:e,!i||!r[t])return e;if(i==="toAttribute")switch(o){case"Object":case"Array":return e==null?null:JSON.stringify(e);case"Boolean":return e?"":null;case"Number":return e??null;default:return e}else switch(o){case"Object":case"Array":return e&&JSON.parse(e);case"Boolean":return e;case"Number":return e!=null?+e:e;default:return e}}function So(t){const e={};return t.childNodes.forEach(r=>{e[r.slot||"default"]=!0}),e}function ii(t,e,r,i,o,l){let a=class extends ri{constructor(){super(t,r,o),this.$$p_d=e}static get observedAttributes(){return te(e).map(s=>(e[s].attribute||s).toLowerCase())}};return te(e).forEach(s=>{Ct(a.prototype,s,{get(){return this.$$c&&s in this.$$c?this.$$c[s]:this.$$d[s]},set(n){n=ge(s,n,e),this.$$d[s]=n;var m=this.$$c;if(m){var f=Nt(m,s)?.get;f?m[s]=n:m.$set({[s]:n})}}})}),i.forEach(s=>{Ct(a.prototype,s,{get(){return this.$$c?.[s]}})}),t.element=a,a}var Co=async(t,e,r,i)=>{await e()(r(),i())},No=L("<i></i>"),Mo=L('<span class="results_number svelte-24ifmd"> </span>'),Lo=L("<i></i>"),Oo=L("<span><!> </span>"),Io=L('<a class="dropdown-item d-flex align-items-center gap-2 text-decoration-none svelte-24ifmd"><!> <span class="flex-grow-1 svelte-24ifmd"> </span> <!> <!></a>'),Po=async(t,e,r,i)=>{await e()(r(),i())},Do=L("<i></i>"),qo=L('<span class="results_number svelte-24ifmd"> </span>'),Fo=L("<i></i>"),Uo=L("<span><!> </span>"),Ho=L('<button class="dropdown-item d-flex align-items-center gap-2 svelte-24ifmd"><!> <span class="flex-grow-1 svelte-24ifmd"> </span> <!> <!></button>'),Vo=L('<li class="svelte-24ifmd"><!></li>');const Yo={hash:"svelte-24ifmd",code:`@charset "UTF-8";
|
|
1
|
+
(function(Je){"use strict";typeof window<"u"&&((window.__svelte??={}).v??=new Set).add("5");const ni=1,si=2,mi=16,di=1,fi=2,ue="[",xe="[!",he="]",St={},M=Symbol(),pi="http://www.w3.org/1999/xhtml",Xe=!1;var we=Array.isArray,bi=Array.prototype.indexOf,ye=Array.from,te=Object.keys,Ct=Object.defineProperty,Nt=Object.getOwnPropertyDescriptor,vi=Object.getOwnPropertyDescriptors,gi=Object.prototype,ci=Array.prototype,Ze=Object.getPrototypeOf,Qe=Object.isExtensible;function tr(t){for(var e=0;e<t.length;e++)t[e]()}function ui(){var t,e,r=new Promise((i,o)=>{t=i,e=o});return{promise:r,resolve:t,reject:e}}const Y=2,ke=4,_e=8,Mt=16,ct=32,xt=64,er=128,Z=256,ee=512,P=1024,Q=2048,ht=4096,at=8192,jt=16384,je=32768,ze=65536,rr=1<<17,ir=1<<18,Lt=1<<19,xi=1<<20,$e=1<<21,Ae=1<<22,zt=1<<23,Ee=Symbol("$state"),hi=Symbol("legacy props"),wi=Symbol(""),Re=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"},yi=3,Ot=8;function ki(){throw new Error("https://svelte.dev/e/await_outside_boundary")}function _i(t){throw new Error("https://svelte.dev/e/lifecycle_outside_component")}function ji(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function zi(t){throw new Error("https://svelte.dev/e/effect_in_teardown")}function $i(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function Ai(t){throw new Error("https://svelte.dev/e/effect_orphan")}function Ei(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function Ri(){throw new Error("https://svelte.dev/e/hydration_failed")}function Bi(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function Gi(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function Ti(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function re(t){console.warn("https://svelte.dev/e/hydration_mismatch")}let j=!1;function nt(t){j=t}let E;function st(t){if(t===null)throw re(),St;return E=t}function ie(){return st(dt(E))}function D(t){if(j){if(dt(E)!==null)throw re(),St;E=t}}function Be(){for(var t=0,e=E;;){if(e.nodeType===Ot){var r=e.data;if(r===he){if(t===0)return e;t-=1}else(r===ue||r===xe)&&(t+=1)}var i=dt(e);e.remove(),e=i}}function or(t){if(!t||t.nodeType!==Ot)throw re(),St;return t.data}function lr(t){return t===this.v}function Si(t,e){return t!=t?e==e:t!==e||t!==null&&typeof t=="object"||typeof t=="function"}function ar(t){return!Si(t,this.v)}let Ci=!1,tt=null;function oe(t){tt=t}function Ge(t,e=!1,r){tt={p:tt,c:null,e:null,s:t,x:null,l:null}}function Te(t){var e=tt,r=e.e;if(r!==null){e.e=null;for(var i of r)Gr(i)}return t!==void 0&&(e.x=t),tt=e.p,t??{}}function nr(){return!0}const Ni=new WeakMap;function Mi(t){var e=h;if(e===null)return k.f|=zt,t;if((e.f&je)===0){if((e.f&er)===0)throw!e.parent&&t instanceof Error&&sr(t),t;e.b.error(t)}else Se(t,e)}function Se(t,e){for(;e!==null;){if((e.f&er)!==0)try{e.b.error(t);return}catch(r){t=r}e=e.parent}throw t instanceof Error&&sr(t),t}function sr(t){const e=Ni.get(t);e&&(Ct(t,"message",{value:e.message}),Ct(t,"stack",{value:e.stack}))}const Li=typeof requestIdleCallback>"u"?t=>setTimeout(t,1):requestIdleCallback;let Vt=[],Yt=[];function mr(){var t=Vt;Vt=[],tr(t)}function dr(){var t=Yt;Yt=[],tr(t)}function Oi(t){Vt.length===0&&queueMicrotask(mr),Vt.push(t)}function Ii(t){Yt.length===0&&Li(dr),Yt.push(t)}function Pi(){Vt.length>0&&mr(),Yt.length>0&&dr()}function Di(){const t=h.b;return t===null&&ki(),t}function le(t){var e=Y|Q,r=k!==null&&(k.f&Y)!==0?k:null;return h===null||r!==null&&(r.f&Z)!==0?e|=Z:h.f|=Lt,{ctx:tt,deps:null,effects:null,equals:lr,f:e,fn:t,reactions:null,rv:0,v:M,wv:0,parent:r??h,ac:null}}function qi(t,e){let r=h;r===null&&ji();var i=r.b,o=void 0,l=Wt(M),a=null,n=!k;return eo(()=>{try{var s=t();a&&Promise.resolve(s).catch(()=>{})}catch(p){s=Promise.reject(p)}var m=()=>s;o=a?.then(m,m)??Promise.resolve(s),a=o;var f=R,v=i.is_pending();n&&(i.update_pending_count(1),v||f.increment());const d=(p,b=void 0)=>{a=null,v||f.activate(),b?b!==Re&&(l.f|=zt,Kt(l,b)):((l.f&zt)!==0&&(l.f^=zt),Kt(l,p)),n&&(i.update_pending_count(-1),v||f.decrement()),vr()};if(o.then(d,p=>d(null,p||"unknown")),f)return()=>{queueMicrotask(()=>f.neuter())}}),new Promise(s=>{function m(f){function v(){f===o?s(l):m(o)}f.then(v,v)}m(o)})}function fr(t){const e=le(t);return Pr(e),e}function Fi(t){const e=le(t);return e.equals=ar,e}function pr(t){var e=t.effects;if(e!==null){t.effects=null;for(var r=0;r<e.length;r+=1)pt(e[r])}}function Ui(t){for(var e=t.parent;e!==null;){if((e.f&Y)===0)return e;e=e.parent}return null}function Ce(t){var e,r=h;yt(Ui(t));try{pr(t),e=Hr(t)}finally{yt(r)}return e}function br(t){var e=Ce(t);if(t.equals(e)||(t.v=e,t.wv=Fr()),!Bt){var r=(kt||(t.f&Z)!==0)&&t.deps!==null?ht:P;H(t,r)}}function Hi(t,e,r){const i=le;if(e.length===0){r(t.map(i));return}var o=R,l=h,a=Vi(),n=Di();Promise.all(e.map(s=>qi(s))).then(s=>{o?.activate(),a();try{r([...t.map(i),...s])}catch(m){(l.f&jt)===0&&Se(m,l)}o?.deactivate(),vr()}).catch(s=>{n.error(s)})}function Vi(){var t=h,e=k,r=tt,i=R;return function(){yt(t),vt(e),oe(r),i?.activate()}}function vr(){yt(null),vt(null),oe(null)}const Ne=new Set;let R=null,ae=null,gr=new Set,ne=[];function cr(){const t=ne.shift();ne.length>0&&queueMicrotask(cr),t()}let $t=[],se=null,Me=!1,me=!1;class At{current=new Map;#e=new Map;#t=new Set;#r=0;#m=null;#d=!1;#o=[];#a=[];#l=[];#i=[];#n=[];#f=[];#p=[];skipped_effects=new Set;process(e){$t=[],ae=null;for(const o of e)this.#v(o);if(this.#o.length===0&&this.#r===0){this.#b();var r=this.#l,i=this.#i;this.#l=[],this.#i=[],this.#n=[],ae=R,R=null,xr(r),xr(i),R===null?R=this:Ne.delete(this),this.#m?.resolve()}else this.#s(this.#l),this.#s(this.#i),this.#s(this.#n);for(const o of this.#o)Ft(o);for(const o of this.#a)Ft(o);this.#o=[],this.#a=[]}#v(e){e.f^=P;for(var r=e.first;r!==null;){var i=r.f,o=(i&(ct|xt))!==0,l=o&&(i&P)!==0,a=l||(i&at)!==0||this.skipped_effects.has(r);if(!a&&r.fn!==null){if(o)r.f^=P;else if((i&ke)!==0)this.#i.push(r);else if((i&P)===0)if((i&Ae)!==0){var n=r.b?.is_pending()?this.#a:this.#o;n.push(r)}else fe(r)&&((r.f&Mt)!==0&&this.#n.push(r),Ft(r));var s=r.first;if(s!==null){r=s;continue}}var m=r.parent;for(r=r.next;r===null&&m!==null;)r=m.next,m=m.parent}}#s(e){for(const r of e)((r.f&Q)!==0?this.#f:this.#p).push(r),H(r,P);e.length=0}capture(e,r){this.#e.has(e)||this.#e.set(e,r),this.current.set(e,e.v)}activate(){R=this}deactivate(){R=null,ae=null;for(const e of gr)if(gr.delete(e),e(),R!==null)break}neuter(){this.#d=!0}flush(){$t.length>0?ur():this.#b(),R===this&&(this.#r===0&&Ne.delete(this),this.deactivate())}#b(){if(!this.#d)for(const e of this.#t)e();this.#t.clear()}increment(){this.#r+=1}decrement(){if(this.#r-=1,this.#r===0){for(const e of this.#f)H(e,Q),It(e);for(const e of this.#p)H(e,ht),It(e);this.#l=[],this.#i=[],this.flush()}else this.deactivate()}add_callback(e){this.#t.add(e)}settled(){return(this.#m??=ui()).promise}static ensure(){if(R===null){const e=R=new At;Ne.add(R),me||At.enqueue(()=>{R===e&&e.flush()})}return R}static enqueue(e){ne.length===0&&queueMicrotask(cr),ne.unshift(e)}}function C(t){var e=me;me=!0;try{for(var r;;){if(Pi(),$t.length===0&&(R?.flush(),$t.length===0))return se=null,r;ur()}}finally{me=e}}function ur(){var t=qt;Me=!0;try{var e=0;for(Or(!0);$t.length>0;){var r=At.ensure();if(e++>1e3){var i,o;Yi()}r.process($t),wt.clear()}}finally{Me=!1,Or(t),se=null}}function Yi(){try{Ei()}catch(t){Se(t,se)}}let Et=null;function xr(t){var e=t.length;if(e!==0){for(var r=0;r<e;){var i=t[r++];if((i.f&(jt|at))===0&&fe(i)&&(Et=[],Ft(i),i.deps===null&&i.first===null&&i.nodes_start===null&&(i.teardown===null&&i.ac===null?Nr(i):i.fn=null),Et?.length>0)){wt.clear();for(const o of Et)Ft(o);Et=[]}}Et=null}}function It(t){for(var e=se=t;e.parent!==null;){e=e.parent;var r=e.f;if(Me&&e===h&&(r&Mt)!==0)return;if((r&(xt|ct))!==0){if((r&P)===0)return;e.f^=P}}$t.push(e)}const wt=new Map;function Wt(t,e){var r={f:0,v:t,reactions:null,equals:lr,rv:0,wv:0};return r}function mt(t,e){const r=Wt(t);return Pr(r),r}function hr(t,e=!1,r=!0){const i=Wt(t);return e||(i.equals=ar),i}function W(t,e,r=!1){k!==null&&(!bt||(k.f&rr)!==0)&&nr()&&(k.f&(Y|Mt|Ae|rr))!==0&&!ut?.includes(t)&&Ti();let i=r?Jt(e):e;return Kt(t,i)}function Kt(t,e){if(!t.equals(e)){var r=t.v;Bt?wt.set(t,e):wt.set(t,r),t.v=e;var i=At.ensure();i.capture(t,r),(t.f&Y)!==0&&((t.f&Q)!==0&&Ce(t),H(t,(t.f&Z)===0?P:ht)),t.wv=Fr(),wr(t,Q),h!==null&&(h.f&P)!==0&&(h.f&(ct|xt))===0&&(rt===null?oo([t]):rt.push(t))}return e}function Le(t){W(t,t.v+1)}function wr(t,e){var r=t.reactions;if(r!==null)for(var i=r.length,o=0;o<i;o++){var l=r[o],a=l.f,n=(a&Q)===0;n&&H(l,e),(a&Y)!==0?wr(l,ht):n&&((a&Mt)!==0&&Et!==null&&Et.push(l),It(l))}}function Jt(t){if(typeof t!="object"||t===null||Ee in t)return t;const e=Ze(t);if(e!==gi&&e!==ci)return t;var r=new Map,i=we(t),o=mt(0),l=Gt,a=n=>{if(Gt===l)return n();var s=k,m=Gt;vt(null),qr(l);var f=n();return vt(s),qr(m),f};return i&&r.set("length",mt(t.length)),new Proxy(t,{defineProperty(n,s,m){(!("value"in m)||m.configurable===!1||m.enumerable===!1||m.writable===!1)&&Bi();var f=r.get(s);return f===void 0?f=a(()=>{var v=mt(m.value);return r.set(s,v),v}):W(f,m.value,!0),!0},deleteProperty(n,s){var m=r.get(s);if(m===void 0){if(s in n){const f=a(()=>mt(M));r.set(s,f),Le(o)}}else W(m,M),Le(o);return!0},get(n,s,m){if(s===Ee)return t;var f=r.get(s),v=s in n;if(f===void 0&&(!v||Nt(n,s)?.writable)&&(f=a(()=>{var p=Jt(v?n[s]:M),b=mt(p);return b}),r.set(s,f)),f!==void 0){var d=$(f);return d===M?void 0:d}return Reflect.get(n,s,m)},getOwnPropertyDescriptor(n,s){var m=Reflect.getOwnPropertyDescriptor(n,s);if(m&&"value"in m){var f=r.get(s);f&&(m.value=$(f))}else if(m===void 0){var v=r.get(s),d=v?.v;if(v!==void 0&&d!==M)return{enumerable:!0,configurable:!0,value:d,writable:!0}}return m},has(n,s){if(s===Ee)return!0;var m=r.get(s),f=m!==void 0&&m.v!==M||Reflect.has(n,s);if(m!==void 0||h!==null&&(!f||Nt(n,s)?.writable)){m===void 0&&(m=a(()=>{var d=f?Jt(n[s]):M,p=mt(d);return p}),r.set(s,m));var v=$(m);if(v===M)return!1}return f},set(n,s,m,f){var v=r.get(s),d=s in n;if(i&&s==="length")for(var p=m;p<v.v;p+=1){var b=r.get(p+"");b!==void 0?W(b,M):p in n&&(b=a(()=>mt(M)),r.set(p+"",b))}if(v===void 0)(!d||Nt(n,s)?.writable)&&(v=a(()=>mt(void 0)),W(v,Jt(m)),r.set(s,v));else{d=v.v!==M;var c=a(()=>Jt(m));W(v,c)}var u=Reflect.getOwnPropertyDescriptor(n,s);if(u?.set&&u.set.call(f,m),!d){if(i&&typeof s=="string"){var A=r.get("length"),w=Number(s);Number.isInteger(w)&&w>=A.v&&W(A,w+1)}Le(o)}return!0},ownKeys(n){$(o);var s=Reflect.ownKeys(n).filter(v=>{var d=r.get(v);return d===void 0||d.v!==M});for(var[m,f]of r)f.v!==M&&!(m in n)&&s.push(m);return s},setPrototypeOf(){Gi()}})}var yr,kr,_r,jr;function Oe(){if(yr===void 0){yr=window,kr=/Firefox/.test(navigator.userAgent);var t=Element.prototype,e=Node.prototype,r=Text.prototype;_r=Nt(e,"firstChild").get,jr=Nt(e,"nextSibling").get,Qe(t)&&(t.__click=void 0,t.__className=void 0,t.__attributes=null,t.__style=void 0,t.__e=void 0),Qe(r)&&(r.__t=void 0)}}function Pt(t=""){return document.createTextNode(t)}function Rt(t){return _r.call(t)}function dt(t){return jr.call(t)}function q(t,e){if(!j)return Rt(t);var r=Rt(E);return r===null&&(r=E.appendChild(Pt())),st(r),r}function zr(t,e){if(!j){var r=Rt(t);return r instanceof Comment&&r.data===""?dt(r):r}return E}function K(t,e=1,r=!1){let i=j?E:t;for(var o;e--;)o=i,i=dt(i);if(!j)return i;if(r&&i?.nodeType!==yi){var l=Pt();return i===null?o?.after(l):i.before(l),st(l),l}return st(i),i}function $r(t){t.textContent=""}function Ar(){return!1}let Er=!1;function Rr(){Er||(Er=!0,document.addEventListener("reset",t=>{Promise.resolve().then(()=>{if(!t.defaultPrevented)for(const e of t.target.elements)e.__on_r?.()})},{capture:!0}))}function de(t){var e=k,r=h;vt(null),yt(null);try{return t()}finally{vt(e),yt(r)}}function Wi(t,e,r,i=r){t.addEventListener(e,()=>de(r));const o=t.__on_r;o?t.__on_r=()=>{o(),i(!0)}:t.__on_r=()=>i(!0),Rr()}function Ki(t){h===null&&k===null&&Ai(),k!==null&&(k.f&Z)!==0&&h===null&&$i(),Bt&&zi()}function Ji(t,e){var r=e.last;r===null?e.last=e.first=t:(r.next=t,t.prev=r,e.last=t)}function ft(t,e,r,i=!0){var o=h;o!==null&&(o.f&at)!==0&&(t|=at);var l={ctx:tt,deps:null,nodes_start:null,nodes_end:null,f:t|Q,first:null,fn:e,last:null,next:null,parent:o,b:o&&o.b,prev:null,teardown:null,transitions:null,wv:0,ac:null};if(r)try{Ft(l),l.f|=je}catch(s){throw pt(l),s}else e!==null&&It(l);if(i){var a=l;if(r&&a.deps===null&&a.teardown===null&&a.nodes_start===null&&a.first===a.last&&(a.f&Lt)===0&&(a=a.first),a!==null&&(a.parent=o,o!==null&&Ji(a,o),k!==null&&(k.f&Y)!==0&&(t&xt)===0)){var n=k;(n.effects??=[]).push(a)}}return l}function Xi(t){const e=ft(_e,null,!1);return H(e,P),e.teardown=t,e}function Br(t){Ki();var e=h.f,r=!k&&(e&ct)!==0&&(e&je)===0;if(r){var i=tt;(i.e??=[]).push(t)}else return Gr(t)}function Gr(t){return ft(ke|xi,t,!1)}function Zi(t){At.ensure();const e=ft(xt|Lt,t,!0);return()=>{pt(e)}}function Qi(t){At.ensure();const e=ft(xt|Lt,t,!0);return(r={})=>new Promise(i=>{r.outro?Pe(e,()=>{pt(e),i(void 0)}):(pt(e),i(void 0))})}function to(t){return ft(ke,t,!1)}function eo(t){return ft(Ae|Lt,t,!0)}function Tr(t,e=0){return ft(_e|e,t,!0)}function et(t,e=[],r=[]){Hi(e,r,i=>{ft(_e,()=>t(...i.map($)),!0)})}function Ie(t,e=0){var r=ft(Mt|e,t,!0);return r}function Dt(t,e=!0){return ft(ct|Lt,t,!0,e)}function Sr(t){var e=t.teardown;if(e!==null){const r=Bt,i=k;Ir(!0),vt(null);try{e.call(null)}finally{Ir(r),vt(i)}}}function Cr(t,e=!1){var r=t.first;for(t.first=t.last=null;r!==null;){const o=r.ac;o!==null&&de(()=>{o.abort(Re)});var i=r.next;(r.f&xt)!==0?r.parent=null:pt(r,e),r=i}}function ro(t){for(var e=t.first;e!==null;){var r=e.next;(e.f&ct)===0&&pt(e),e=r}}function pt(t,e=!0){var r=!1;(e||(t.f&ir)!==0)&&t.nodes_start!==null&&t.nodes_end!==null&&(io(t.nodes_start,t.nodes_end),r=!0),Cr(t,e&&!r),pe(t,0),H(t,jt);var i=t.transitions;if(i!==null)for(const l of i)l.stop();Sr(t);var o=t.parent;o!==null&&o.first!==null&&Nr(t),t.next=t.prev=t.teardown=t.ctx=t.deps=t.fn=t.nodes_start=t.nodes_end=t.ac=null}function io(t,e){for(;t!==null;){var r=t===e?null:dt(t);t.remove(),t=r}}function Nr(t){var e=t.parent,r=t.prev,i=t.next;r!==null&&(r.next=i),i!==null&&(i.prev=r),e!==null&&(e.first===t&&(e.first=i),e.last===t&&(e.last=r))}function Pe(t,e){var r=[];De(t,r,!0),Mr(r,()=>{pt(t),e&&e()})}function Mr(t,e){var r=t.length;if(r>0){var i=()=>--r||e();for(var o of t)o.out(i)}else e()}function De(t,e,r){if((t.f&at)===0){if(t.f^=at,t.transitions!==null)for(const a of t.transitions)(a.is_global||r)&&e.push(a);for(var i=t.first;i!==null;){var o=i.next,l=(i.f&ze)!==0||(i.f&ct)!==0;De(i,e,l?r:!1),i=o}}}function qe(t){Lr(t,!0)}function Lr(t,e){if((t.f&at)!==0){t.f^=at,(t.f&P)===0&&(H(t,Q),It(t));for(var r=t.first;r!==null;){var i=r.next,o=(r.f&ze)!==0||(r.f&ct)!==0;Lr(r,o?e:!1),r=i}if(t.transitions!==null)for(const l of t.transitions)(l.is_global||e)&&l.in()}}let qt=!1;function Or(t){qt=t}let Bt=!1;function Ir(t){Bt=t}let k=null,bt=!1;function vt(t){k=t}let h=null;function yt(t){h=t}let ut=null;function Pr(t){k!==null&&(ut===null?ut=[t]:ut.push(t))}let F=null,J=0,rt=null;function oo(t){rt=t}let Dr=1,Xt=0,Gt=Xt;function qr(t){Gt=t}let kt=!1;function Fr(){return++Dr}function fe(t){var e=t.f;if((e&Q)!==0)return!0;if((e&ht)!==0){var r=t.deps,i=(e&Z)!==0;if(r!==null){var o,l,a=(e&ee)!==0,n=i&&h!==null&&!kt,s=r.length;if((a||n)&&(h===null||(h.f&jt)===0)){var m=t,f=m.parent;for(o=0;o<s;o++)l=r[o],(a||!l?.reactions?.includes(m))&&(l.reactions??=[]).push(m);a&&(m.f^=ee),n&&f!==null&&(f.f&Z)===0&&(m.f^=Z)}for(o=0;o<s;o++)if(l=r[o],fe(l)&&br(l),l.wv>t.wv)return!0}(!i||h!==null&&!kt)&&H(t,P)}return!1}function Ur(t,e,r=!0){var i=t.reactions;if(i!==null&&!ut?.includes(t))for(var o=0;o<i.length;o++){var l=i[o];(l.f&Y)!==0?Ur(l,e,!1):e===l&&(r?H(l,Q):(l.f&P)!==0&&H(l,ht),It(l))}}function Hr(t){var e=F,r=J,i=rt,o=k,l=kt,a=ut,n=tt,s=bt,m=Gt,f=t.f;F=null,J=0,rt=null,kt=(f&Z)!==0&&(bt||!qt||k===null),k=(f&(ct|xt))===0?t:null,ut=null,oe(t.ctx),bt=!1,Gt=++Xt,t.ac!==null&&(de(()=>{t.ac.abort(Re)}),t.ac=null);try{t.f|=$e;var v=t.fn,d=v(),p=t.deps;if(F!==null){var b;if(pe(t,J),p!==null&&J>0)for(p.length=J+F.length,b=0;b<F.length;b++)p[J+b]=F[b];else t.deps=p=F;if(!kt||(f&Y)!==0&&t.reactions!==null)for(b=J;b<p.length;b++)(p[b].reactions??=[]).push(t)}else p!==null&&J<p.length&&(pe(t,J),p.length=J);if(nr()&&rt!==null&&!bt&&p!==null&&(t.f&(Y|ht|Q))===0)for(b=0;b<rt.length;b++)Ur(rt[b],t);return o!==null&&o!==t&&(Xt++,rt!==null&&(i===null?i=rt:i.push(...rt))),(t.f&zt)!==0&&(t.f^=zt),d}catch(c){return Mi(c)}finally{t.f^=$e,F=e,J=r,rt=i,k=o,kt=l,ut=a,oe(n),bt=s,Gt=m}}function lo(t,e){let r=e.reactions;if(r!==null){var i=bi.call(r,t);if(i!==-1){var o=r.length-1;o===0?r=e.reactions=null:(r[i]=r[o],r.pop())}}r===null&&(e.f&Y)!==0&&(F===null||!F.includes(e))&&(H(e,ht),(e.f&(Z|ee))===0&&(e.f^=ee),pr(e),pe(e,0))}function pe(t,e){var r=t.deps;if(r!==null)for(var i=e;i<r.length;i++)lo(t,r[i])}function Ft(t){var e=t.f;if((e&jt)===0){H(t,P);var r=h,i=qt;h=t,qt=!0;try{(e&Mt)!==0?ro(t):Cr(t),Sr(t);var o=Hr(t);t.teardown=typeof o=="function"?o:null,t.wv=Dr;var l;Xe&&Ci&&(t.f&Q)!==0&&t.deps}finally{qt=i,h=r}}}async function ao(){await Promise.resolve(),C()}function $(t){var e=t.f,r=(e&Y)!==0;if(k!==null&&!bt){var i=h!==null&&(h.f&jt)!==0;if(!i&&!ut?.includes(t)){var o=k.deps;if((k.f&$e)!==0)t.rv<Xt&&(t.rv=Xt,F===null&&o!==null&&o[J]===t?J++:F===null?F=[t]:(!kt||!F.includes(t))&&F.push(t));else{(k.deps??=[]).push(t);var l=t.reactions;l===null?t.reactions=[k]:l.includes(k)||l.push(k)}}}else if(r&&t.deps===null&&t.effects===null){var a=t,n=a.parent;n!==null&&(n.f&Z)===0&&(a.f^=Z)}if(Bt){if(wt.has(t))return wt.get(t);if(r){a=t;var s=a.v;return((a.f&P)===0&&a.reactions!==null||Vr(a))&&(s=Ce(a)),wt.set(a,s),s}}else r&&(a=t,fe(a)&&br(a));if((t.f&zt)!==0)throw t.v;return t.v}function Vr(t){if(t.v===M)return!0;if(t.deps===null)return!1;for(const e of t.deps)if(wt.has(e)||(e.f&Y)!==0&&Vr(e))return!0;return!1}function Yr(t){var e=bt;try{return bt=!0,t()}finally{bt=e}}const no=-7169;function H(t,e){t.f=t.f&no|e}const Wr=new Set,Fe=new Set;function so(t,e,r,i={}){function o(l){if(i.capture||Zt.call(e,l),!l.cancelBubble)return de(()=>r?.call(this,l))}return t.startsWith("pointer")||t.startsWith("touch")||t==="wheel"?Oi(()=>{e.addEventListener(t,o,i)}):e.addEventListener(t,o,i),o}function mo(t,e,r,i,o){var l={capture:i,passive:o},a=so(t,e,r,l);(e===document.body||e===window||e===document||e instanceof HTMLMediaElement)&&Xi(()=>{e.removeEventListener(t,a,l)})}function Kr(t){for(var e=0;e<t.length;e++)Wr.add(t[e]);for(var r of Fe)r(t)}let Jr=null;function Zt(t){var e=this,r=e.ownerDocument,i=t.type,o=t.composedPath?.()||[],l=o[0]||t.target;Jr=t;var a=0,n=Jr===t&&t.__root;if(n){var s=o.indexOf(n);if(s!==-1&&(e===document||e===window)){t.__root=e;return}var m=o.indexOf(e);if(m===-1)return;s<=m&&(a=s)}if(l=o[a]||t.target,l!==e){Ct(t,"currentTarget",{configurable:!0,get(){return l||r}});var f=k,v=h;vt(null),yt(null);try{for(var d,p=[];l!==null;){var b=l.assignedSlot||l.parentNode||l.host||null;try{var c=l["__"+i];if(c!=null&&(!l.disabled||t.target===l))if(we(c)){var[u,...A]=c;u.apply(l,[t,...A])}else c.call(l,t)}catch(w){d?p.push(w):d=w}if(t.cancelBubble||b===e||b===null)break;l=b}if(d){for(let w of p)queueMicrotask(()=>{throw w});throw d}}finally{t.__root=e,delete t.currentTarget,vt(f),yt(v)}}}let it;function fo(){it=void 0}function po(t){let e=null,r=j;var i;if(j){for(e=E,it===void 0&&(it=Rt(document.head));it!==null&&(it.nodeType!==Ot||it.data!==ue);)it=dt(it);it===null?nt(!1):it=st(dt(it))}j||(i=document.head.appendChild(Pt()));try{Ie(()=>t(i),ir)}finally{r&&(nt(!0),it=E,st(e))}}function bo(t){var e=document.createElement("template");return e.innerHTML=t.replaceAll("<!>","<!---->"),e.content}function be(t,e){var r=h;r.nodes_start===null&&(r.nodes_start=t,r.nodes_end=e)}function L(t,e){var r=(e&di)!==0,i=(e&fi)!==0,o,l=!t.startsWith("<!>");return()=>{if(j)return be(E,null),E;o===void 0&&(o=bo(l?t:"<!>"+t),r||(o=Rt(o)));var a=i||kr?document.importNode(o,!0):o.cloneNode(!0);if(r){var n=Rt(a),s=a.lastChild;be(n,s)}else be(a,a);return a}}function N(t,e){if(j){h.nodes_end=E,ie();return}t!==null&&t.before(e)}const vo=["touchstart","touchmove"];function go(t){return vo.includes(t)}function Tt(t,e){var r=e==null?"":typeof e=="object"?e+"":e;r!==(t.__t??=t.nodeValue)&&(t.__t=r,t.nodeValue=r+"")}function Xr(t,e){return Zr(t,e)}function co(t,e){Oe(),e.intro=e.intro??!1;const r=e.target,i=j,o=E;try{for(var l=Rt(r);l&&(l.nodeType!==Ot||l.data!==ue);)l=dt(l);if(!l)throw St;nt(!0),st(l),ie();const a=Zr(t,{...e,anchor:l});if(E===null||E.nodeType!==Ot||E.data!==he)throw re(),St;return nt(!1),a}catch(a){if(a instanceof Error&&a.message.split(`
|
|
2
|
+
`).some(n=>n.startsWith("https://svelte.dev/e/")))throw a;return a!==St&&console.warn("Failed to hydrate: ",a),e.recover===!1&&Ri(),Oe(),$r(r),nt(!1),Xr(t,e)}finally{nt(i),st(o),fo()}}const Ut=new Map;function Zr(t,{target:e,anchor:r,props:i={},events:o,context:l,intro:a=!0}){Oe();var n=new Set,s=v=>{for(var d=0;d<v.length;d++){var p=v[d];if(!n.has(p)){n.add(p);var b=go(p);e.addEventListener(p,Zt,{passive:b});var c=Ut.get(p);c===void 0?(document.addEventListener(p,Zt,{passive:b}),Ut.set(p,1)):Ut.set(p,c+1)}}};s(ye(Wr)),Fe.add(s);var m=void 0,f=Qi(()=>{var v=r??e.appendChild(Pt());return Dt(()=>{if(l){Ge({});var d=tt;d.c=l}o&&(i.$$events=o),j&&be(v,null),m=t(v,i)||{},j&&(h.nodes_end=E),l&&Te()}),()=>{for(var d of n){e.removeEventListener(d,Zt);var p=Ut.get(d);--p===0?(document.removeEventListener(d,Zt),Ut.delete(d)):Ut.set(d,p)}Fe.delete(s),v!==r&&v.parentNode?.removeChild(v)}});return Ue.set(m,f),m}let Ue=new WeakMap;function uo(t,e){const r=Ue.get(t);return r?(Ue.delete(t),r(e)):Promise.resolve()}function xo(t){tt===null&&_i(),Br(()=>{const e=Yr(t);if(typeof e=="function")return e})}function ot(t,e,r=!1){j&&ie();var i=t,o=null,l=null,a=M,n=r?ze:0,s=!1;const m=(p,b=!0)=>{s=!0,d(b,p)};var f=null;function v(){f!==null&&(f.lastChild.remove(),i.before(f),f=null);var p=a?o:l,b=a?l:o;p&&qe(p),b&&Pe(b,()=>{a?l=null:o=null})}const d=(p,b)=>{if(a===(a=p))return;let c=!1;if(j){const G=or(i)===xe;!!a===G&&(i=Be(),st(i),nt(!1),c=!0)}var u=Ar(),A=i;if(u&&(f=document.createDocumentFragment(),f.append(A=Pt())),a?o??=b&&Dt(()=>b(A)):l??=b&&Dt(()=>b(A)),u){var w=R,y=a?o:l,x=a?l:o;y&&w.skipped_effects.delete(y),x&&w.skipped_effects.add(x),w.add_callback(v)}else v();c&&nt(!0)};Ie(()=>{s=!1,e(m),s||d(null,null)},n),j&&(i=E)}function ho(t,e,r){for(var i=t.items,o=[],l=e.length,a=0;a<l;a++)De(e[a].e,o,!0);var n=l>0&&o.length===0&&r!==null;if(n){var s=r.parentNode;$r(s),s.append(r),i.clear(),gt(t,e[0].prev,e[l-1].next)}Mr(o,()=>{for(var m=0;m<l;m++){var f=e[m];n||(i.delete(f.k),gt(t,f.prev,f.next)),pt(f.e,!n)}})}function wo(t,e,r,i,o,l=null){var a=t,n={flags:e,items:new Map,first:null};j&&ie();var s=null,m=!1,f=new Map,v=Fi(()=>{var c=r();return we(c)?c:c==null?[]:ye(c)}),d,p;function b(){yo(p,d,n,f,a,o,e,i,r),l!==null&&(d.length===0?s?qe(s):s=Dt(()=>l(a)):s!==null&&Pe(s,()=>{s=null}))}Ie(()=>{p??=h,d=$(v);var c=d.length;if(m&&c===0)return;m=c===0;let u=!1;if(j){var A=or(a)===xe;A!==(c===0)&&(a=Be(),st(a),nt(!1),u=!0)}if(j){for(var w=null,y,x=0;x<c;x++){if(E.nodeType===Ot&&E.data===he){a=E,u=!0,nt(!1);break}var G=d[x],S=i(G,x);y=He(E,n,w,null,G,S,x,o,e,r),n.items.set(S,y),w=y}c>0&&st(Be())}if(j)c===0&&l&&(s=Dt(()=>l(a)));else if(Ar()){var lt=new Set,V=R;for(x=0;x<c;x+=1){G=d[x],S=i(G,x);var I=n.items.get(S)??f.get(S);I?Qr(I,G,x):(y=He(null,n,null,null,G,S,x,o,e,r,!0),f.set(S,y)),lt.add(S)}for(const[z,_]of n.items)lt.has(z)||V.skipped_effects.add(_.e);V.add_callback(b)}else b();u&&nt(!0),$(v)}),j&&(a=E)}function yo(t,e,r,i,o,l,a,n,s){var m=e.length,f=r.items,v=r.first,d=v,p,b=null,c=[],u=[],A,w,y,x;for(x=0;x<m;x+=1){if(A=e[x],w=n(A,x),y=f.get(w),y===void 0){var G=i.get(w);if(G!==void 0){i.delete(w),f.set(w,G);var S=b?b.next:d;gt(r,b,G),gt(r,G,S),Ve(G,S,o),b=G}else{var lt=d?d.e.nodes_start:o;b=He(lt,r,b,b===null?r.first:b.next,A,w,x,l,a,s)}f.set(w,b),c=[],u=[],d=b.next;continue}if(Qr(y,A,x),(y.e.f&at)!==0&&qe(y.e),y!==d){if(p!==void 0&&p.has(y)){if(c.length<u.length){var V=u[0],I;b=V.prev;var z=c[0],_=c[c.length-1];for(I=0;I<c.length;I+=1)Ve(c[I],V,o);for(I=0;I<u.length;I+=1)p.delete(u[I]);gt(r,z.prev,_.next),gt(r,b,z),gt(r,_,V),d=V,b=_,x-=1,c=[],u=[]}else p.delete(y),Ve(y,d,o),gt(r,y.prev,y.next),gt(r,y,b===null?r.first:b.next),gt(r,b,y),b=y;continue}for(c=[],u=[];d!==null&&d.k!==w;)(d.e.f&at)===0&&(p??=new Set).add(d),u.push(d),d=d.next;if(d===null)continue;y=d}c.push(y),b=y,d=y.next}if(d!==null||p!==void 0){for(var U=p===void 0?[]:ye(p);d!==null;)(d.e.f&at)===0&&U.push(d),d=d.next;var g=U.length;if(g>0){var T=null;ho(r,U,T)}}t.first=r.first&&r.first.e,t.last=b&&b.e;for(var B of i.values())pt(B.e);i.clear()}function Qr(t,e,r,i){Kt(t.v,e),Kt(t.i,r)}function He(t,e,r,i,o,l,a,n,s,m,f){var v=(s&ni)!==0,d=(s&mi)===0,p=v?d?hr(o,!1,!1):Wt(o):o,b=(s&si)===0?a:Wt(a),c={i:b,v:p,k:l,a:null,e:null,prev:r,next:i};try{if(t===null){var u=document.createDocumentFragment();u.append(t=Pt())}return c.e=Dt(()=>n(t,p,b,m),j),c.e.prev=r&&r.e,c.e.next=i&&i.e,r===null?f||(e.first=c):(r.next=c,r.e.next=c.e),i!==null&&(i.prev=c,i.e.prev=c.e),c}finally{}}function Ve(t,e,r){for(var i=t.next?t.next.e.nodes_start:r,o=e?e.e.nodes_start:r,l=t.e.nodes_start;l!==null&&l!==i;){var a=dt(l);o.before(l),l=a}}function gt(t,e,r){e===null?t.first=r:(e.next=r,e.e.next=r&&r.e),r!==null&&(r.prev=e,r.e.prev=e&&e.e)}function ti(t,e){to(()=>{var r=t.getRootNode(),i=r.host?r:r.head??r.ownerDocument.head;if(!i.querySelector("#"+e.hash)){const o=document.createElement("style");o.id=e.hash,o.textContent=e.code,i.appendChild(o)}})}function ko(t,e,r){var i=t==null?"":""+t;return i=i?i+" "+e:e,i===""?null:i}function _o(t,e){return t==null?null:String(t)}function _t(t,e,r,i,o,l){var a=t.__className;if(j||a!==r||a===void 0){var n=ko(r,i);(!j||n!==t.getAttribute("class"))&&(n==null?t.removeAttribute("class"):t.className=n),t.__className=r}return l}function jo(t,e,r,i){var o=t.__style;if(j||o!==e){var l=_o(e);(!j||l!==t.getAttribute("style"))&&(l==null?t.removeAttribute("style"):t.style.cssText=l),t.__style=e}return i}const zo=Symbol("is custom element"),$o=Symbol("is html");function Ao(t){if(j){var e=!1,r=()=>{if(!e){if(e=!0,t.hasAttribute("value")){var i=t.value;ve(t,"value",null),t.value=i}if(t.hasAttribute("checked")){var o=t.checked;ve(t,"checked",null),t.checked=o}}};t.__on_r=r,Ii(r),Rr()}}function ve(t,e,r,i){var o=Eo(t);j&&(o[e]=t.getAttribute(e),e==="src"||e==="srcset"||e==="href"&&t.nodeName==="LINK")||o[e]!==(o[e]=r)&&(e==="loading"&&(t[wi]=r),r==null?t.removeAttribute(e):typeof r!="string"&&Ro(t).includes(e)?t[e]=r:t.setAttribute(e,r))}function Eo(t){return t.__attributes??={[zo]:t.nodeName.includes("-"),[$o]:t.namespaceURI===pi}}var ei=new Map;function Ro(t){var e=t.getAttribute("is")||t.nodeName,r=ei.get(e);if(r)return r;ei.set(e,r=[]);for(var i,o=t,l=Element.prototype;l!==o;){i=vi(o);for(var a in i)i[a].set&&r.push(a);o=Ze(o)}return r}function Bo(t,e,r=e){var i=new WeakSet;Wi(t,"input",async o=>{var l=o?t.defaultValue:t.value;if(l=Ye(t)?We(l):l,r(l),R!==null&&i.add(R),await ao(),l!==(l=e())){var a=t.selectionStart,n=t.selectionEnd;t.value=l??"",n!==null&&(t.selectionStart=a,t.selectionEnd=Math.min(n,t.value.length))}}),(j&&t.defaultValue!==t.value||Yr(e)==null&&t.value)&&(r(Ye(t)?We(t.value):t.value),R!==null&&i.add(R)),Tr(()=>{var o=e();if(t===document.activeElement){var l=ae??R;if(i.has(l))return}Ye(t)&&o===We(t.value)||t.type==="date"&&!o&&!t.value||o!==t.value&&(t.value=o??"")})}function Ye(t){var e=t.type;return e==="number"||e==="range"}function We(t){return t===""?null:+t}function O(t,e,r,i){var o=i,l=!0,a=()=>(l&&(l=!1,o=i),o),n;n=t[e],n===void 0&&i!==void 0&&(n=a());var s;s=()=>{var d=t[e];return d===void 0?a():(l=!0,d)};var m=!1,f=le(()=>(m=!1,s())),v=h;return(function(d,p){if(arguments.length>0){const b=p?$(f):d;return W(f,b),m=!0,o!==void 0&&(o=b),d}return Bt&&m||(v.f&jt)!==0?f.v:$(f)})}function Go(t){return new To(t)}class To{#e;#t;constructor(e){var r=new Map,i=(l,a)=>{var n=hr(a,!1,!1);return r.set(l,n),n};const o=new Proxy({...e.props||{},$$events:{}},{get(l,a){return $(r.get(a)??i(a,Reflect.get(l,a)))},has(l,a){return a===hi?!0:($(r.get(a)??i(a,Reflect.get(l,a))),Reflect.has(l,a))},set(l,a,n){return W(r.get(a)??i(a,n),n),Reflect.set(l,a,n)}});this.#t=(e.hydrate?co:Xr)(e.component,{target:e.target,anchor:e.anchor,props:o,context:e.context,intro:e.intro??!1,recover:e.recover}),(!e?.props?.$$host||e.sync===!1)&&C(),this.#e=o.$$events;for(const l of Object.keys(this.#t))l==="$set"||l==="$destroy"||l==="$on"||Ct(this,l,{get(){return this.#t[l]},set(a){this.#t[l]=a},enumerable:!0});this.#t.$set=l=>{Object.assign(o,l)},this.#t.$destroy=()=>{uo(this.#t)}}$set(e){this.#t.$set(e)}$on(e,r){this.#e[e]=this.#e[e]||[];const i=(...o)=>r.call(this,...o);return this.#e[e].push(i),()=>{this.#e[e]=this.#e[e].filter(o=>o!==i)}}$destroy(){this.#t.$destroy()}}let ri;typeof HTMLElement=="function"&&(ri=class extends HTMLElement{$$ctor;$$s;$$c;$$cn=!1;$$d={};$$r=!1;$$p_d={};$$l={};$$l_u=new Map;$$me;constructor(t,e,r){super(),this.$$ctor=t,this.$$s=e,r&&this.attachShadow({mode:"open"})}addEventListener(t,e,r){if(this.$$l[t]=this.$$l[t]||[],this.$$l[t].push(e),this.$$c){const i=this.$$c.$on(t,e);this.$$l_u.set(e,i)}super.addEventListener(t,e,r)}removeEventListener(t,e,r){if(super.removeEventListener(t,e,r),this.$$c){const i=this.$$l_u.get(e);i&&(i(),this.$$l_u.delete(e))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let t=function(i){return o=>{const l=document.createElement("slot");i!=="default"&&(l.name=i),N(o,l)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const e={},r=So(this);for(const i of this.$$s)i in r&&(i==="default"&&!this.$$d.children?(this.$$d.children=t(i),e.default=!0):e[i]=t(i));for(const i of this.attributes){const o=this.$$g_p(i.name);o in this.$$d||(this.$$d[o]=ge(o,i.value,this.$$p_d,"toProp"))}for(const i in this.$$p_d)!(i in this.$$d)&&this[i]!==void 0&&(this.$$d[i]=this[i],delete this[i]);this.$$c=Go({component:this.$$ctor,target:this.shadowRoot||this,props:{...this.$$d,$$slots:e,$$host:this}}),this.$$me=Zi(()=>{Tr(()=>{this.$$r=!0;for(const i of te(this.$$c)){if(!this.$$p_d[i]?.reflect)continue;this.$$d[i]=this.$$c[i];const o=ge(i,this.$$d[i],this.$$p_d,"toAttribute");o==null?this.removeAttribute(this.$$p_d[i].attribute||i):this.setAttribute(this.$$p_d[i].attribute||i,o)}this.$$r=!1})});for(const i in this.$$l)for(const o of this.$$l[i]){const l=this.$$c.$on(i,o);this.$$l_u.set(o,l)}this.$$l={}}}attributeChangedCallback(t,e,r){this.$$r||(t=this.$$g_p(t),this.$$d[t]=ge(t,r,this.$$p_d,"toProp"),this.$$c?.$set({[t]:this.$$d[t]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$me(),this.$$c=void 0)})}$$g_p(t){return te(this.$$p_d).find(e=>this.$$p_d[e].attribute===t||!this.$$p_d[e].attribute&&e.toLowerCase()===t)||t}});function ge(t,e,r,i){const o=r[t]?.type;if(e=o==="Boolean"&&typeof e!="boolean"?e!=null:e,!i||!r[t])return e;if(i==="toAttribute")switch(o){case"Object":case"Array":return e==null?null:JSON.stringify(e);case"Boolean":return e?"":null;case"Number":return e??null;default:return e}else switch(o){case"Object":case"Array":return e&&JSON.parse(e);case"Boolean":return e;case"Number":return e!=null?+e:e;default:return e}}function So(t){const e={};return t.childNodes.forEach(r=>{e[r.slot||"default"]=!0}),e}function ii(t,e,r,i,o,l){let a=class extends ri{constructor(){super(t,r,o),this.$$p_d=e}static get observedAttributes(){return te(e).map(n=>(e[n].attribute||n).toLowerCase())}};return te(e).forEach(n=>{Ct(a.prototype,n,{get(){return this.$$c&&n in this.$$c?this.$$c[n]:this.$$d[n]},set(s){s=ge(n,s,e),this.$$d[n]=s;var m=this.$$c;if(m){var f=Nt(m,n)?.get;f?m[n]=s:m.$set({[n]:s})}}})}),i.forEach(n=>{Ct(a.prototype,n,{get(){return this.$$c?.[n]}})}),t.element=a,a}var Co=async(t,e,r,i)=>{await e()(r(),i())},No=L("<i></i>"),Mo=L('<span class="results_number svelte-24ifmd"> </span>'),Lo=L("<i></i>"),Oo=L("<span><!> </span>"),Io=L('<a class="dropdown-item d-flex align-items-center gap-2 text-decoration-none svelte-24ifmd"><!> <span class="flex-grow-1 svelte-24ifmd"> </span> <!> <!></a>'),Po=async(t,e,r,i)=>{await e()(r(),i())},Do=L("<i></i>"),qo=L('<span class="results_number svelte-24ifmd"> </span>'),Fo=L("<i></i>"),Uo=L("<span><!> </span>"),Ho=L('<button class="dropdown-item d-flex align-items-center gap-2 svelte-24ifmd"><!> <span class="flex-grow-1 svelte-24ifmd"> </span> <!> <!></button>'),Vo=L('<li class="svelte-24ifmd"><!></li>');const Yo={hash:"svelte-24ifmd",code:`@charset "UTF-8";
|
|
3
3
|
@import url("https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap");
|
|
4
4
|
@import url("https://cdn.jsdelivr.net/npm/bootstrap-icons@latest/font/bootstrap-icons.css");
|
|
5
5
|
/*!
|
|
@@ -258,7 +258,7 @@ button.svelte-24ifmd {margin:0;font-family:inherit;font-size:inherit;line-height
|
|
|
258
258
|
@media (min-width: 1200px) {.fs-1.svelte-24ifmd {font-size:2.5rem !important;}.fs-2.svelte-24ifmd {font-size:2rem !important;}.fs-3.svelte-24ifmd {font-size:1.75rem !important;}.fs-4.svelte-24ifmd {font-size:1.5rem !important;}
|
|
259
259
|
}
|
|
260
260
|
@media print {.d-print-inline.svelte-24ifmd {display:inline !important;}.d-print-inline-block.svelte-24ifmd {display:inline-block !important;}.d-print-block.svelte-24ifmd {display:block !important;}.d-print-grid.svelte-24ifmd {display:grid !important;}.d-print-inline-grid.svelte-24ifmd {display:inline-grid !important;}.d-print-table.svelte-24ifmd {display:table !important;}.d-print-table-row.svelte-24ifmd {display:table-row !important;}.d-print-table-cell.svelte-24ifmd {display:table-cell !important;}.d-print-flex.svelte-24ifmd {display:flex !important;}.d-print-inline-flex.svelte-24ifmd {display:inline-flex !important;}.d-print-none.svelte-24ifmd {display:none !important;}
|
|
261
|
-
}:host {font-family:"Roboto", sans-serif;}.results_number.svelte-24ifmd {font-style:italic;font-size:0.8em;opacity:0.8;}`};function Ke(t,e){Ge(e,!0),ti(t,Yo);let r=
|
|
261
|
+
}:host {font-family:"Roboto", sans-serif;}.results_number.svelte-24ifmd {font-style:italic;font-size:0.8em;opacity:0.8;}`};function Ke(t,e){Ge(e,!0),ti(t,Yo);let r=O(e,"id",7,""),i=O(e,"is_inpput"),o=O(e,"url"),l=O(e,"icon"),a=O(e,"text"),n=O(e,"number_of_results"),s=O(e,"badge"),m=O(e,"input_search"),f=O(e,"clicksearch");var v={get id(){return r()},set id(u=""){r(u),C()},get is_inpput(){return i()},set is_inpput(u){i(u),C()},get url(){return o()},set url(u){o(u),C()},get icon(){return l()},set icon(u){l(u),C()},get text(){return a()},set text(u){a(u),C()},get number_of_results(){return n()},set number_of_results(u){n(u),C()},get badge(){return s()},set badge(u){s(u),C()},get input_search(){return m()},set input_search(u){m(u),C()},get clicksearch(){return f()},set clicksearch(u){f(u),C()}},d=Vo(),p=q(d);{var b=u=>{var A=Io();A.__click=[Co,f,a,r];var w=q(A);{var y=z=>{var _=No();et(()=>_t(_,1,`bi bi-${l()?l():"dot"}`,"svelte-24ifmd")),N(z,_)};ot(w,z=>{l()&&z(y)})}var x=K(w,2),G=q(x);D(x);var S=K(x,2);{var lt=z=>{var _=Mo(),U=q(_);D(_),et(()=>Tt(U,`${n()??""} Results`)),N(z,_)};ot(S,z=>{(n()||n()===0)&&z(lt)})}var V=K(S,2);{var I=z=>{var _=Oo(),U=q(_);{var g=B=>{var X=Lo();et(()=>_t(X,1,`bi bi-${s().icon}`,"svelte-24ifmd")),N(B,X)};ot(U,B=>{s().icon&&B(g)})}var T=K(U);D(_),et(()=>{_t(_,1,`badge bg-${s().color||"secondary"} d-flex align-items-center gap-1`,"svelte-24ifmd"),Tt(T,` ${s().text??""}`)}),N(z,_)};ot(V,z=>{s()&&z(I)})}D(A),et(()=>{ve(A,"href",o()),Tt(G,`${i()?"... ":""}${a()??""}`)}),N(u,A)},c=u=>{var A=Ho();A.__click=[Po,f,a,r];var w=q(A);{var y=z=>{var _=Do();et(()=>_t(_,1,`bi bi-${l()?l():"dot"}`,"svelte-24ifmd")),N(z,_)};ot(w,z=>{l()&&z(y)})}var x=K(w,2),G=q(x);D(x);var S=K(x,2);{var lt=z=>{var _=qo(),U=q(_);D(_),et(()=>Tt(U,`${n()??""} Results`)),N(z,_)};ot(S,z=>{n()&&z(lt)})}var V=K(S,2);{var I=z=>{var _=Uo(),U=q(_);{var g=B=>{var X=Fo();et(()=>_t(X,1,`bi bi-${s().icon}`,"svelte-24ifmd")),N(B,X)};ot(U,B=>{s().icon&&B(g)})}var T=K(U);D(_),et(()=>{_t(_,1,`badge bg-${s().color||"secondary"} d-flex align-items-center gap-1`,"svelte-24ifmd"),Tt(T,` ${s().text??""}`)}),N(z,_)};ot(V,z=>{s()&&z(I)})}D(A),et(()=>Tt(G,`${i()?"... ":""}${a()??""}`)),N(u,A)};ot(p,u=>{o()?u(b):u(c,!1)})}return D(d),N(t,d),Te(v)}Kr(["click"]),ii(Ke,{id:{},is_inpput:{},url:{},icon:{},text:{},number_of_results:{},badge:{},input_search:{},clicksearch:{}},[],[],!0);function Wo(t,e,r,i,o,l){W(e,!0),t.key!=="Enter"&&(console.log("debouncing",r()),$(i)&&clearTimeout($(i)),W(i,setTimeout(()=>{r()&&r().length>Number(o())&&l("input")},500),!0))}function Ko(t,e){t&&t.preventDefault?.(),console.log("clicked searching"),e("button")}var Jo=L('<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@latest/font/bootstrap-icons.css" class="svelte-24ifmd"/>'),Xo=(t,e)=>{e("button")},Zo=L('<li class="svelte-24ifmd"><button class="dropdown-item svelte-24ifmd"> </button></li>'),Qo=L('<li class="svelte-24ifmd"><hr class="dropdown-divider svelte-24ifmd"/></li>'),tl=L("<!> <!>",1),el=L('<li class="svelte-24ifmd"><h6 class="dropdown-header svelte-24ifmd">Suggested results</h6></li> <!>',1),rl=L('<div><div class="position-relative svelte-24ifmd"><input id="custom-search-input" part="search-input" class="form-control svelte-24ifmd" type="search" aria-label="Search" aria-describedby="search"/> <button class="btn bg-transparent px-2 py-0 position-absolute top-50 start-5 translate-middle-y svelte-24ifmd" type="button"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-search svelte-24ifmd" viewBox="0 0 16 16"><path d="M11.742 10.344a6.5 6.5 0 1 0-1.397 1.398h-.001c.03.04.062.078.098.115l3.85 3.85a1 1 0 0 0 1.415-1.414l-3.85-3.85a1.007 1.007 0 0 0-.115-.1zM12 6.5a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0z" class="svelte-24ifmd"></path></svg></button></div> <div class="dropdown svelte-24ifmd" style="position: absolute; width:100%"><ul part="dropdown-menu" id="custom-search-list"><!> <!></ul></div></div>');const il={hash:"svelte-24ifmd",code:`@charset "UTF-8";
|
|
262
262
|
@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");
|
|
263
263
|
@import url("https://cdn.jsdelivr.net/npm/bootstrap-icons@latest/font/bootstrap-icons.css");
|
|
264
264
|
/*!
|
|
@@ -495,5 +495,5 @@ button.svelte-24ifmd {margin:0;font-family:inherit;font-size:inherit;line-height
|
|
|
495
495
|
}
|
|
496
496
|
@media print {.d-print-inline.svelte-24ifmd {display:inline !important;}.d-print-inline-block.svelte-24ifmd {display:inline-block !important;}.d-print-block.svelte-24ifmd {display:block !important;}.d-print-grid.svelte-24ifmd {display:grid !important;}.d-print-inline-grid.svelte-24ifmd {display:inline-grid !important;}.d-print-table.svelte-24ifmd {display:table !important;}.d-print-table-row.svelte-24ifmd {display:table-row !important;}.d-print-table-cell.svelte-24ifmd {display:table-cell !important;}.d-print-flex.svelte-24ifmd {display:flex !important;}.d-print-inline-flex.svelte-24ifmd {display:inline-flex !important;}.d-print-none.svelte-24ifmd {display:none !important;}
|
|
497
497
|
}:host {font-family:"Roboto", sans-serif;}#custom-search-input.svelte-24ifmd {background-color:#ebeef4;color:var(--bs-secondary-color);border-bottom:0px;padding-left:33px;
|
|
498
|
-
/* 36px - between ps-4 (24px) and ps-5 (48px) */}#custom-search-input.svelte-24ifmd::placeholder {opacity:0.5;}#custom-search-list.svelte-24ifmd {position:static;margin:0px;border-radius:0px 0px 5px 5px;border-top:none;max-height:200px;overflow-y:auto;}.results_number.svelte-24ifmd {font-style:italic;font-size:0.8em;opacity:0.8;}`};function oi(t,e){Ge(e,!0),ti(t,il);let r=
|
|
498
|
+
/* 36px - between ps-4 (24px) and ps-5 (48px) */}#custom-search-input.svelte-24ifmd::placeholder {opacity:0.5;}#custom-search-list.svelte-24ifmd {position:static;margin:0px;border-radius:0px 0px 5px 5px;border-top:none;max-height:200px;overflow-y:auto;}.results_number.svelte-24ifmd {font-style:italic;font-size:0.8em;opacity:0.8;}`};function oi(t,e){Ge(e,!0),ti(t,il);let r=O(e,"id",7,""),i=O(e,"style"),o=O(e,"value",7,""),l=O(e,"input_info"),a=O(e,"searchlabel",7,"Search"),n=O(e,"searchlist"),s=O(e,"minlength",7,0),m=O(e,"disable_preview",7,"no"),f=mt(!1),v=fr(()=>n()?.filter?.(g=>g?.fixed||g?.text?.toLowerCase?.().includes?.(o()?.toLowerCase?.())));const d=fr(()=>m()!=="yes"&&m()!=="true"&&m()!=="on"&&o()?.length>Number(s())&&$(f));Br(()=>{if(r()||r(""),n()||n([]),typeof n()=="string")try{n(JSON.parse(n()))}catch(g){console.error("error parsing searchlist",g)}if(typeof l()=="string")try{l(JSON.parse(l()))}catch(g){console.error("error parsing input_info",g)}console.log(o(),"value")});async function p(g,T){if(!o())return;console.log("searching",g,o());let B;T?(B=n()?.find(X=>X.id===T),B&&u("search",{input:o(),by:g,item:B})):u("search",{input:o(),by:g}),g!=="input"&&W(f,!1)}let b=mt(void 0);function c(g){console.log("closeDropdown",g.target.closest("hb-searchbar")),!(!$(f)||g.target.closest("hb-searchbar"))&&W(f,!1)}xo(()=>(console.log("mounting searchbar"),window.addEventListener("click",c),()=>{console.log("unmounting searchbar"),window.removeEventListener("click",c)}));function u(g,T){e.$$host.dispatchEvent(new CustomEvent(g,{detail:T}))}var A={get id(){return r()},set id(g=""){r(g),C()},get style(){return i()},set style(g){i(g),C()},get value(){return o()},set value(g=""){o(g),C()},get input_info(){return l()},set input_info(g){l(g),C()},get searchlabel(){return a()},set searchlabel(g="Search"){a(g),C()},get searchlist(){return n()},set searchlist(g){n(g),C()},get minlength(){return s()},set minlength(g=0){s(g),C()},get disable_preview(){return m()},set disable_preview(g="no"){m(g),C()}},w=rl();po(g=>{var T=Jo();N(g,T)});var y=q(w),x=q(y);Ao(x),x.__input=[Wo,f,o,b,s,p];var G=K(x,2);G.__click=[Ko,p],D(y);var S=K(y,2),lt=q(S),V=q(lt);{var I=g=>{Ke(g,{clicksearch:async(T,B)=>{B?(o(T),p("searchlist",B)):p("button")},get id(){return l().id},is_inpput:!0,get icon(){return l().icon},get badge(){return l().badge},get text(){return l().text},get input_search(){return o()},get url(){return l().url},get number_of_results(){return l().number_of_results}})},z=g=>{var T=Zo(),B=q(T);B.__click=[Xo,p];var X=q(B);D(B),D(T),et(()=>Tt(X,`... ${o()??""}`)),N(g,T)};ot(V,g=>{l()&&l().text===o()?g(I):g(z,!1)})}var _=K(V,2);{var U=g=>{var T=el(),B=K(zr(T),2);wo(B,19,()=>$(v),X=>X.id,(X,Ht,ol)=>{var li=tl(),ai=zr(li);Ke(ai,{clicksearch:async(Qt,ce)=>{ce?(o(Qt),p("searchlist",ce)):p("button")},get id(){return $(Ht).id},is_inpput:!1,get icon(){return $(Ht).icon},get badge(){return $(Ht).badge},get text(){return $(Ht).text},get input_search(){return o()},get url(){return $(Ht).url},get number_of_results(){return $(Ht).number_of_results}});var ll=K(ai,2);{var al=Qt=>{var ce=Qo();N(Qt,ce)};ot(ll,Qt=>{$(ol)<$(v).length-1&&Qt(al)})}N(X,li)}),N(g,T)};ot(_,g=>{$(v)?.length&&g(U)})}return D(lt),D(S),D(w),et(()=>{_t(w,1,`${$(d)?"border-primary-subtle":""} position-relative`,"svelte-24ifmd"),jo(x,$(d)?"border-radius: 5px 5px 0px 0px;":"border-radius: 5px"),ve(x,"placeholder",a()),_t(lt,1,`dropdown-menu ${$(d)?"show":""}`,"svelte-24ifmd")}),mo("keypress",x,g=>{g.key==="Enter"&&(g.preventDefault(),p("button"))}),Bo(x,o),N(t,w),Te(A)}Kr(["input","click"]),customElements.define("hb-searchbar",ii(oi,{id:{},style:{},value:{},input_info:{},searchlabel:{},searchlist:{},minlength:{},disable_preview:{}},[],[],!0)),Je.Component=oi,Object.defineProperty(Je,Symbol.toStringTag,{value:"Module"})})(this.searchbar=this.searchbar||{});
|
|
499
499
|
//# sourceMappingURL=main.iife.js.map
|