@htmlbricks/hb-tooltip 0.66.0 → 0.66.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/main.iife.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
(function(Rn){"use strict";typeof window<"u"&&((window.__svelte??={}).v??=new Set).add("5");const Ur=1,Xr=2,An="[",Ue="[!",Sn="]",Dt={},D=Symbol(),Xe=!1;var Kr=Array.isArray,Gr=Array.prototype.indexOf,Jr=Array.from,we=Object.keys,ye=Object.defineProperty,qt=Object.getOwnPropertyDescriptor,Zr=Object.prototype,Qr=Array.prototype,ti=Object.getPrototypeOf,Tn=Object.isExtensible;function ei(t){for(var e=0;e<t.length;e++)t[e]()}function On(){var t,e,n=new Promise((r,s)=>{t=r,e=s});return{promise:n,resolve:t,reject:e}}const P=2,Ke=4,Ge=8,yt=16,bt=32,St=64,be=128,et=512,N=1024,B=2048,xt=4096,ct=8192,$t=16384,xe=32768,zt=65536,Cn=1<<17,kn=1<<18,Nt=1<<19,ni=1<<20,Ft=32768,Je=1<<21,Ze=1<<22,Tt=1<<23,$e=Symbol("$state"),ri=Symbol("legacy props"),Yt=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"},Ee=3,Ut=8;function ii(t){throw new Error("https://svelte.dev/e/lifecycle_outside_component")}function si(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function oi(t){throw new Error("https://svelte.dev/e/effect_in_teardown")}function li(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function fi(t){throw new Error("https://svelte.dev/e/effect_orphan")}function ai(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function ci(){throw new Error("https://svelte.dev/e/hydration_failed")}function ui(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function di(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function hi(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function vi(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}function re(t){console.warn("https://svelte.dev/e/hydration_mismatch")}function pi(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}let R=!1;function Xt(t){R=t}let E;function z(t){if(t===null)throw re(),Dt;return E=t}function Kt(){return z(dt(E))}function Re(t){if(R){if(dt(E)!==null)throw re(),Dt;E=t}}function _i(t=1){if(R){for(var e=t,n=E;e--;)n=dt(n);E=n}}function Ln(t=!0){for(var e=0,n=E;;){if(n.nodeType===Ut){var r=n.data;if(r===Sn){if(e===0)return n;e-=1}else(r===An||r===Ue)&&(e+=1)}var s=dt(n);t&&n.remove(),n=s}}function gi(t){if(!t||t.nodeType!==Ut)throw re(),Dt;return t.data}function Pn(t){return t===this.v}function mi(t,e){return t!=t?e==e:t!==e||t!==null&&typeof t=="object"||typeof t=="function"}function wi(t){return!mi(t,this.v)}let yi=!1,Y=null;function Gt(t){Y=t}function Dn(t,e=!1,n){Y={p:Y,i:!1,c:null,e:null,s:t,x:null,l:null}}function Nn(t){var e=Y,n=e.e;if(n!==null){e.e=null;for(var r of n)Zn(r)}return t!==void 0&&(e.x=t),e.i=!0,Y=e.p,t??{}}function Fn(){return!0}let Mt=[];function Mn(){var t=Mt;Mt=[],ei(t)}function ie(t){if(Mt.length===0&&!se){var e=Mt;queueMicrotask(()=>{e===Mt&&Mn()})}Mt.push(t)}function bi(){for(;Mt.length>0;)Mn()}function jn(t){var e=x;if(e===null)return b.f|=Tt,t;if((e.f&xe)===0){if((e.f&be)===0)throw t;e.b.error(t)}else Jt(t,e)}function Jt(t,e){for(;e!==null;){if((e.f&be)!==0)try{e.b.error(t);return}catch(n){t=n}e=e.parent}throw t}const Ae=new Set;let T=null,Z=null,Q=[],Se=null,Qe=!1,se=!1;class nt{committed=!1;current=new Map;previous=new Map;#e=new Set;#t=new Set;#n=0;#r=0;#f=null;#s=[];#i=[];skipped_effects=new Set;is_fork=!1;is_deferred(){return this.is_fork||this.#r>0}process(e){Q=[],this.apply();var n={parent:null,effect:null,effects:[],render_effects:[],block_effects:[]};for(const r of e)this.#o(r,n);this.is_fork||this.#c(),this.is_deferred()?(this.#l(n.effects),this.#l(n.render_effects),this.#l(n.block_effects)):(T=null,Vn(n.render_effects),Vn(n.effects),this.#f?.resolve()),Z=null}#o(e,n){e.f^=N;for(var r=e.first;r!==null;){var s=r.f,i=(s&(bt|St))!==0,o=i&&(s&N)!==0,l=o||(s&ct)!==0||this.skipped_effects.has(r);if((r.f&be)!==0&&r.b?.is_pending()&&(n={parent:n,effect:r,effects:[],render_effects:[],block_effects:[]}),!l&&r.fn!==null){i?r.f^=N:(s&Ke)!==0?n.effects.push(r):ue(r)&&((r.f&yt)!==0&&n.block_effects.push(r),de(r));var f=r.first;if(f!==null){r=f;continue}}var a=r.parent;for(r=r.next;r===null&&a!==null;)a===n.effect&&(this.#l(n.effects),this.#l(n.render_effects),this.#l(n.block_effects),n=n.parent),r=a.next,a=a.parent}}#l(e){for(const n of e)((n.f&B)!==0?this.#s:this.#i).push(n),this.#a(n.deps),F(n,N)}#a(e){if(e!==null)for(const n of e)(n.f&P)===0||(n.f&Ft)===0||(n.f^=Ft,this.#a(n.deps))}capture(e,n){this.previous.has(e)||this.previous.set(e,n),(e.f&Tt)===0&&(this.current.set(e,e.v),Z?.set(e,e.v))}activate(){T=this,this.apply()}deactivate(){T===this&&(T=null,Z=null)}flush(){if(this.activate(),Q.length>0){if(Bn(),T!==null&&T!==this)return}else this.#n===0&&this.process([]);this.deactivate()}discard(){for(const e of this.#t)e(this);this.#t.clear()}#c(){if(this.#r===0){for(const e of this.#e)e();this.#e.clear()}this.#n===0&&this.#u()}#u(){if(Ae.size>1){this.previous.clear();var e=Z,n=!0,r={parent:null,effect:null,effects:[],render_effects:[],block_effects:[]};for(const i of Ae){if(i===this){n=!1;continue}const o=[];for(const[f,a]of this.current){if(i.current.has(f))if(n&&a!==i.current.get(f))i.current.set(f,a);else continue;o.push(f)}if(o.length===0)continue;const l=[...i.current.keys()].filter(f=>!this.current.has(f));if(l.length>0){var s=Q;Q=[];const f=new Set,a=new Map;for(const d of o)In(d,l,f,a);if(Q.length>0){T=i,i.apply();for(const d of Q)i.#o(d,r);i.deactivate()}Q=s}}T=null,Z=e}this.committed=!0,Ae.delete(this)}increment(e){this.#n+=1,e&&(this.#r+=1)}decrement(e){this.#n-=1,e&&(this.#r-=1),this.revive()}revive(){for(const e of this.#s)F(e,B),jt(e);for(const e of this.#i)F(e,xt),jt(e);this.#s=[],this.#i=[],this.flush()}oncommit(e){this.#e.add(e)}ondiscard(e){this.#t.add(e)}settled(){return(this.#f??=On()).promise}static ensure(){if(T===null){const e=T=new nt;Ae.add(T),se||nt.enqueue(()=>{T===e&&e.flush()})}return T}static enqueue(e){ie(e)}apply(){}}function Te(t){var e=se;se=!0;try{for(var n;;){if(bi(),Q.length===0&&(T?.flush(),Q.length===0))return Se=null,n;Bn()}}finally{se=e}}function Bn(){var t=Ct;Qe=!0;var e=null;try{var n=0;for(Ne(!0);Q.length>0;){var r=nt.ensure();if(n++>1e3){var s,i;xi()}r.process(Q),Ot.clear()}}finally{Qe=!1,Ne(t),Se=null}}function xi(){try{ai()}catch(t){Jt(t,Se)}}let Et=null;function Vn(t){var e=t.length;if(e!==0){for(var n=0;n<e;){var r=t[n++];if((r.f&($t|ct))===0&&ue(r)&&(Et=new Set,de(r),r.deps===null&&r.first===null&&r.nodes_start===null&&(r.teardown===null&&r.ac===null?ir(r):r.fn=null),Et?.size>0)){Ot.clear();for(const s of Et){if((s.f&($t|ct))!==0)continue;const i=[s];let o=s.parent;for(;o!==null;)Et.has(o)&&(Et.delete(o),i.push(o)),o=o.parent;for(let l=i.length-1;l>=0;l--){const f=i[l];(f.f&($t|ct))===0&&de(f)}}Et.clear()}}Et=null}}function In(t,e,n,r){if(!n.has(t)&&(n.add(t),t.reactions!==null))for(const s of t.reactions){const i=s.f;(i&P)!==0?In(s,e,n,r):(i&(Ze|yt))!==0&&(i&B)===0&&Wn(s,e,r)&&(F(s,B),jt(s))}}function Wn(t,e,n){const r=n.get(t);if(r!==void 0)return r;if(t.deps!==null)for(const s of t.deps){if(e.includes(s))return!0;if((s.f&P)!==0&&Wn(s,e,n))return n.set(s,!0),!0}return n.set(t,!1),!1}function jt(t){for(var e=Se=t;e.parent!==null;){e=e.parent;var n=e.f;if(Qe&&e===x&&(n&yt)!==0&&(n&kn)===0)return;if((n&(St|bt))!==0){if((n&N)===0)return;e.f^=N}}Q.push(e)}function $i(t){let e=0,n=oe(0),r;return()=>{Pe()&&(g(n),an(()=>(e===0&&(r=cn(()=>t(()=>le(n)))),e+=1,()=>{ie(()=>{e-=1,e===0&&(r?.(),r=void 0,le(n))})})))}}var Ei=zt|Nt|be;function Ri(t,e,n){new Ai(t,e,n)}class Ai{parent;#e=!1;#t;#n=R?E:null;#r;#f;#s;#i=null;#o=null;#l=null;#a=null;#c=null;#u=0;#d=0;#v=!1;#h=null;#w=$i(()=>(this.#h=oe(this.#u),()=>{this.#h=null}));constructor(e,n,r){this.#t=e,this.#r=n,this.#f=r,this.parent=x.b,this.#e=!!this.#r.pending,this.#s=tr(()=>{if(x.b=this,R){const i=this.#n;Kt(),i.nodeType===Ut&&i.data===Ue?this.#b():this.#y()}else{var s=this.#g();try{this.#i=Rt(()=>r(s))}catch(i){this.error(i)}this.#d>0?this.#_():this.#e=!1}return()=>{this.#c?.remove()}},Ei),R&&(this.#t=E)}#y(){try{this.#i=Rt(()=>this.#f(this.#t))}catch(e){this.error(e)}this.#e=!1}#b(){const e=this.#r.pending;e&&(this.#o=Rt(()=>e(this.#t)),nt.enqueue(()=>{var n=this.#g();this.#i=this.#p(()=>(nt.ensure(),Rt(()=>this.#f(n)))),this.#d>0?this.#_():(ae(this.#o,()=>{this.#o=null}),this.#e=!1)}))}#g(){var e=this.#t;return this.#e&&(this.#c=it(),this.#t.before(this.#c),e=this.#c),e}is_pending(){return this.#e||!!this.parent&&this.parent.is_pending()}has_pending_snippet(){return!!this.#r.pending}#p(e){var n=x,r=b,s=Y;pt(this.#s),W(this.#s),Gt(this.#s.ctx);try{return e()}catch(i){return jn(i),null}finally{pt(n),W(r),Gt(s)}}#_(){const e=this.#r.pending;this.#i!==null&&(this.#a=document.createDocumentFragment(),this.#a.append(this.#c),lr(this.#i,this.#a)),this.#o===null&&(this.#o=Rt(()=>e(this.#t)))}#m(e){if(!this.has_pending_snippet()){this.parent&&this.parent.#m(e);return}this.#d+=e,this.#d===0&&(this.#e=!1,this.#o&&ae(this.#o,()=>{this.#o=null}),this.#a&&(this.#t.before(this.#a),this.#a=null))}update_pending_count(e){this.#m(e),this.#u+=e,this.#h&&Ce(this.#h,this.#u)}get_effect_pending(){return this.#w(),g(this.#h)}error(e){var n=this.#r.onerror;let r=this.#r.failed;if(this.#v||!n&&!r)throw e;this.#i&&(I(this.#i),this.#i=null),this.#o&&(I(this.#o),this.#o=null),this.#l&&(I(this.#l),this.#l=null),R&&(z(this.#n),_i(),z(Ln()));var s=!1,i=!1;const o=()=>{if(s){pi();return}s=!0,i&&vi(),nt.ensure(),this.#u=0,this.#l!==null&&ae(this.#l,()=>{this.#l=null}),this.#e=this.has_pending_snippet(),this.#i=this.#p(()=>(this.#v=!1,Rt(()=>this.#f(this.#t)))),this.#d>0?this.#_():this.#e=!1};var l=b;try{W(null),i=!0,n?.(e,o),i=!1}catch(f){Jt(f,this.#s&&this.#s.parent)}finally{W(l)}r&&ie(()=>{this.#l=this.#p(()=>{nt.ensure(),this.#v=!0;try{return Rt(()=>{r(this.#t,()=>e,()=>o)})}catch(f){return Jt(f,this.#s.parent),null}finally{this.#v=!1}})})}}function Si(t,e,n,r){const s=tn;if(n.length===0&&t.length===0){r(e.map(s));return}var i=T,o=x,l=Ti();function f(){Promise.all(n.map(a=>Oi(a))).then(a=>{l();try{r([...e.map(s),...a])}catch(d){(o.f&$t)===0&&Jt(d,o)}i?.deactivate(),Oe()}).catch(a=>{Jt(a,o)})}t.length>0?Promise.all(t).then(()=>{l();try{return f()}finally{i?.deactivate(),Oe()}}):f()}function Ti(){var t=x,e=b,n=Y,r=T;return function(i=!0){pt(t),W(e),Gt(n),i&&r?.activate()}}function Oe(){pt(null),W(null),Gt(null)}function tn(t){var e=P|B,n=b!==null&&(b.f&P)!==0?b:null;return x!==null&&(x.f|=Nt),{ctx:Y,deps:null,effects:null,equals:Pn,f:e,fn:t,reactions:null,rv:0,v:D,wv:0,parent:n??x,ac:null}}function Oi(t,e){let n=x;n===null&&si();var r=n.b,s=void 0,i=oe(D),o=!b,l=new Map;return Bi(()=>{var f=On();s=f.promise;try{Promise.resolve(t()).then(f.resolve,f.reject).then(()=>{a===T&&a.committed&&a.deactivate(),Oe()})}catch(h){f.reject(h),Oe()}var a=T;if(o){var d=!r.is_pending();r.update_pending_count(1),a.increment(d),l.get(a)?.reject(Yt),l.delete(a),l.set(a,f)}const c=(h,u=void 0)=>{if(a.activate(),u)u!==Yt&&(i.f|=Tt,Ce(i,u));else{(i.f&Tt)!==0&&(i.f^=Tt),Ce(i,h);for(const[v,p]of l){if(l.delete(v),v===a)break;p.reject(Yt)}}o&&(r.update_pending_count(-1),a.decrement(d))};f.promise.then(c,h=>c(null,h||"unknown"))}),Jn(()=>{for(const f of l.values())f.reject(Yt)}),new Promise(f=>{function a(d){function c(){d===s?f(i):a(s)}d.then(c,c)}a(s)})}function en(t){const e=tn(t);return ar(e),e}function Hn(t){var e=t.effects;if(e!==null){t.effects=null;for(var n=0;n<e.length;n+=1)I(e[n])}}function Ci(t){for(var e=t.parent;e!==null;){if((e.f&P)===0)return(e.f&$t)===0?e:null;e=e.parent}return null}function nn(t){var e,n=x;pt(Ci(t));try{t.f&=~Ft,Hn(t),e=vr(t)}finally{pt(n)}return e}function qn(t){var e=nn(t);if(t.equals(e)||(T?.is_fork||(t.v=e),t.wv=dr()),!Bt)if(Z!==null)Pe()&&Z.set(t,e);else{var n=(t.f&et)===0?xt:N;F(t,n)}}let rn=new Set;const Ot=new Map;let zn=!1;function oe(t,e){var n={f:0,v:t,reactions:null,equals:Pn,rv:0,wv:0};return n}function rt(t,e){const n=oe(t);return ar(n),n}function ki(t,e=!1,n=!0){const r=oe(t);return e||(r.equals=wi),r}function V(t,e,n=!1){b!==null&&(!vt||(b.f&Cn)!==0)&&Fn()&&(b.f&(P|yt|Ze|Cn))!==0&&!At?.includes(t)&&hi();let r=n?fe(e):e;return Ce(t,r)}function Ce(t,e){if(!t.equals(e)){var n=t.v;Bt?Ot.set(t,e):Ot.set(t,n),t.v=e;var r=nt.ensure();r.capture(t,n),(t.f&P)!==0&&((t.f&B)!==0&&nn(t),F(t,(t.f&et)!==0?N:xt)),t.wv=dr(),Yn(t,B),x!==null&&(x.f&N)!==0&&(x.f&(bt|St))===0&&(tt===null?Hi([t]):tt.push(t)),!r.is_fork&&rn.size>0&&!zn&&Li()}return e}function Li(){zn=!1;var t=Ct;Ne(!0);const e=Array.from(rn);try{for(const n of e)(n.f&N)!==0&&F(n,xt),ue(n)&&de(n)}finally{Ne(t)}rn.clear()}function le(t){V(t,t.v+1)}function Yn(t,e){var n=t.reactions;if(n!==null)for(var r=n.length,s=0;s<r;s++){var i=n[s],o=i.f,l=(o&B)===0;if(l&&F(i,e),(o&P)!==0){var f=i;Z?.delete(f),(o&Ft)===0&&(o&et&&(i.f|=Ft),Yn(f,xt))}else l&&((o&yt)!==0&&Et!==null&&Et.add(i),jt(i))}}function fe(t){if(typeof t!="object"||t===null||$e in t)return t;const e=ti(t);if(e!==Zr&&e!==Qr)return t;var n=new Map,r=Kr(t),s=rt(0),i=Vt,o=l=>{if(Vt===i)return l();var f=b,a=Vt;W(null),ur(i);var d=l();return W(f),ur(a),d};return r&&n.set("length",rt(t.length)),new Proxy(t,{defineProperty(l,f,a){(!("value"in a)||a.configurable===!1||a.enumerable===!1||a.writable===!1)&&ui();var d=n.get(f);return d===void 0?d=o(()=>{var c=rt(a.value);return n.set(f,c),c}):V(d,a.value,!0),!0},deleteProperty(l,f){var a=n.get(f);if(a===void 0){if(f in l){const d=o(()=>rt(D));n.set(f,d),le(s)}}else V(a,D),le(s);return!0},get(l,f,a){if(f===$e)return t;var d=n.get(f),c=f in l;if(d===void 0&&(!c||qt(l,f)?.writable)&&(d=o(()=>{var u=fe(c?l[f]:D),v=rt(u);return v}),n.set(f,d)),d!==void 0){var h=g(d);return h===D?void 0:h}return Reflect.get(l,f,a)},getOwnPropertyDescriptor(l,f){var a=Reflect.getOwnPropertyDescriptor(l,f);if(a&&"value"in a){var d=n.get(f);d&&(a.value=g(d))}else if(a===void 0){var c=n.get(f),h=c?.v;if(c!==void 0&&h!==D)return{enumerable:!0,configurable:!0,value:h,writable:!0}}return a},has(l,f){if(f===$e)return!0;var a=n.get(f),d=a!==void 0&&a.v!==D||Reflect.has(l,f);if(a!==void 0||x!==null&&(!d||qt(l,f)?.writable)){a===void 0&&(a=o(()=>{var h=d?fe(l[f]):D,u=rt(h);return u}),n.set(f,a));var c=g(a);if(c===D)return!1}return d},set(l,f,a,d){var c=n.get(f),h=f in l;if(r&&f==="length")for(var u=a;u<c.v;u+=1){var v=n.get(u+"");v!==void 0?V(v,D):u in l&&(v=o(()=>rt(D)),n.set(u+"",v))}if(c===void 0)(!h||qt(l,f)?.writable)&&(c=o(()=>rt(void 0)),V(c,fe(a)),n.set(f,c));else{h=c.v!==D;var p=o(()=>fe(a));V(c,p)}var m=Reflect.getOwnPropertyDescriptor(l,f);if(m?.set&&m.set.call(d,a),!h){if(r&&typeof f=="string"){var w=n.get("length"),y=Number(f);Number.isInteger(y)&&y>=w.v&&V(w,y+1)}le(s)}return!0},ownKeys(l){g(s);var f=Reflect.ownKeys(l).filter(c=>{var h=n.get(c);return h===void 0||h.v!==D});for(var[a,d]of n)d.v!==D&&!(a in l)&&f.push(a);return f},setPrototypeOf(){di()}})}var Un,Xn,Kn,Gn;function sn(){if(Un===void 0){Un=window,Xn=/Firefox/.test(navigator.userAgent);var t=Element.prototype,e=Node.prototype,n=Text.prototype;Kn=qt(e,"firstChild").get,Gn=qt(e,"nextSibling").get,Tn(t)&&(t.__click=void 0,t.__className=void 0,t.__attributes=null,t.__style=void 0,t.__e=void 0),Tn(n)&&(n.__t=void 0)}}function it(t=""){return document.createTextNode(t)}function ut(t){return Kn.call(t)}function dt(t){return Gn.call(t)}function ke(t,e){if(!R)return ut(t);var n=ut(E);if(n===null)n=E.appendChild(it());else if(e&&n.nodeType!==Ee){var r=it();return n?.before(r),z(r),r}return z(n),n}function Le(t,e=!1){if(!R){var n=ut(t);return n instanceof Comment&&n.data===""?dt(n):n}if(e&&E?.nodeType!==Ee){var r=it();return E?.before(r),z(r),r}return E}function on(t,e=1,n=!1){let r=R?E:t;for(var s;e--;)s=r,r=dt(r);if(!R)return r;if(n&&r?.nodeType!==Ee){var i=it();return r===null?s?.after(i):r.before(i),z(i),i}return z(r),r}function Pi(t){t.textContent=""}function Di(){return!1}function ln(t){var e=b,n=x;W(null),pt(null);try{return t()}finally{W(e),pt(n)}}function Ni(t){x===null&&(b===null&&fi(),li()),Bt&&oi()}function Fi(t,e){var n=e.last;n===null?e.last=e.first=t:(n.next=t,t.prev=n,e.last=t)}function ht(t,e,n){var r=x;r!==null&&(r.f&ct)!==0&&(t|=ct);var s={ctx:Y,deps:null,nodes_start:null,nodes_end:null,f:t|B|et,first:null,fn:e,last:null,next:null,parent:r,b:r&&r.b,prev:null,teardown:null,transitions:null,wv:0,ac:null};if(n)try{de(s),s.f|=xe}catch(l){throw I(s),l}else e!==null&&jt(s);var i=s;if(n&&i.deps===null&&i.teardown===null&&i.nodes_start===null&&i.first===i.last&&(i.f&Nt)===0&&(i=i.first,(t&yt)!==0&&(t&zt)!==0&&i!==null&&(i.f|=zt)),i!==null&&(i.parent=r,r!==null&&Fi(i,r),b!==null&&(b.f&P)!==0&&(t&St)===0)){var o=b;(o.effects??=[]).push(i)}return s}function Pe(){return b!==null&&!vt}function Jn(t){const e=ht(Ge,null,!1);return F(e,N),e.teardown=t,e}function fn(t){Ni();var e=x.f,n=!b&&(e&bt)!==0&&(e&xe)===0;if(n){var r=Y;(r.e??=[]).push(t)}else return Zn(t)}function Zn(t){return ht(Ke|ni,t,!1)}function Mi(t){nt.ensure();const e=ht(St|Nt,t,!0);return()=>{I(e)}}function ji(t){nt.ensure();const e=ht(St|Nt,t,!0);return(n={})=>new Promise(r=>{n.outro?ae(e,()=>{I(e),r(void 0)}):(I(e),r(void 0))})}function Qn(t){return ht(Ke,t,!1)}function Bi(t){return ht(Ze|Nt,t,!0)}function an(t,e=0){return ht(Ge|e,t,!0)}function De(t,e=[],n=[],r=[]){Si(r,e,n,s=>{ht(Ge,()=>t(...s.map(g)),!0)})}function tr(t,e=0){var n=ht(yt|e,t,!0);return n}function Rt(t){return ht(bt|Nt,t,!0)}function er(t){var e=t.teardown;if(e!==null){const n=Bt,r=b;fr(!0),W(null);try{e.call(null)}finally{fr(n),W(r)}}}function nr(t,e=!1){var n=t.first;for(t.first=t.last=null;n!==null;){const s=n.ac;s!==null&&ln(()=>{s.abort(Yt)});var r=n.next;(n.f&St)!==0?n.parent=null:I(n,e),n=r}}function Vi(t){for(var e=t.first;e!==null;){var n=e.next;(e.f&bt)===0&&I(e),e=n}}function I(t,e=!0){var n=!1;(e||(t.f&kn)!==0)&&t.nodes_start!==null&&t.nodes_end!==null&&(rr(t.nodes_start,t.nodes_end),n=!0),nr(t,e&&!n),Fe(t,0),F(t,$t);var r=t.transitions;if(r!==null)for(const i of r)i.stop();er(t);var s=t.parent;s!==null&&s.first!==null&&ir(t),t.next=t.prev=t.teardown=t.ctx=t.deps=t.fn=t.nodes_start=t.nodes_end=t.ac=null}function rr(t,e){for(;t!==null;){var n=t===e?null:dt(t);t.remove(),t=n}}function ir(t){var e=t.parent,n=t.prev,r=t.next;n!==null&&(n.next=r),r!==null&&(r.prev=n),e!==null&&(e.first===t&&(e.first=r),e.last===t&&(e.last=n))}function ae(t,e,n=!0){var r=[];sr(t,r,!0),Ii(r,()=>{n&&I(t),e&&e()})}function Ii(t,e){var n=t.length;if(n>0){var r=()=>--n||e();for(var s of t)s.out(r)}else e()}function sr(t,e,n){if((t.f&ct)===0){if(t.f^=ct,t.transitions!==null)for(const o of t.transitions)(o.is_global||n)&&e.push(o);for(var r=t.first;r!==null;){var s=r.next,i=(r.f&zt)!==0||(r.f&bt)!==0&&(t.f&yt)!==0;sr(r,e,i?n:!1),r=s}}}function Wi(t){or(t,!0)}function or(t,e){if((t.f&ct)!==0){t.f^=ct,(t.f&N)===0&&(F(t,B),jt(t));for(var n=t.first;n!==null;){var r=n.next,s=(n.f&zt)!==0||(n.f&bt)!==0;or(n,s?e:!1),n=r}if(t.transitions!==null)for(const i of t.transitions)(i.is_global||e)&&i.in()}}function lr(t,e){for(var n=t.nodes_start,r=t.nodes_end;n!==null;){var s=n===r?null:dt(n);e.append(n),n=s}}let Ct=!1;function Ne(t){Ct=t}let Bt=!1;function fr(t){Bt=t}let b=null,vt=!1;function W(t){b=t}let x=null;function pt(t){x=t}let At=null;function ar(t){b!==null&&(At===null?At=[t]:At.push(t))}let M=null,U=0,tt=null;function Hi(t){tt=t}let cr=1,ce=0,Vt=ce;function ur(t){Vt=t}function dr(){return++cr}function ue(t){var e=t.f;if((e&B)!==0)return!0;if(e&P&&(t.f&=~Ft),(e&xt)!==0){var n=t.deps;if(n!==null)for(var r=n.length,s=0;s<r;s++){var i=n[s];if(ue(i)&&qn(i),i.wv>t.wv)return!0}(e&et)!==0&&Z===null&&F(t,N)}return!1}function hr(t,e,n=!0){var r=t.reactions;if(r!==null&&!At?.includes(t))for(var s=0;s<r.length;s++){var i=r[s];(i.f&P)!==0?hr(i,e,!1):e===i&&(n?F(i,B):(i.f&N)!==0&&F(i,xt),jt(i))}}function vr(t){var e=M,n=U,r=tt,s=b,i=At,o=Y,l=vt,f=Vt,a=t.f;M=null,U=0,tt=null,b=(a&(bt|St))===0?t:null,At=null,Gt(t.ctx),vt=!1,Vt=++ce,t.ac!==null&&(ln(()=>{t.ac.abort(Yt)}),t.ac=null);try{t.f|=Je;var d=t.fn,c=d(),h=t.deps;if(M!==null){var u;if(Fe(t,U),h!==null&&U>0)for(h.length=U+M.length,u=0;u<M.length;u++)h[U+u]=M[u];else t.deps=h=M;if(Ct&&Pe()&&(t.f&et)!==0)for(u=U;u<h.length;u++)(h[u].reactions??=[]).push(t)}else h!==null&&U<h.length&&(Fe(t,U),h.length=U);if(Fn()&&tt!==null&&!vt&&h!==null&&(t.f&(P|xt|B))===0)for(u=0;u<tt.length;u++)hr(tt[u],t);return s!==null&&s!==t&&(ce++,tt!==null&&(r===null?r=tt:r.push(...tt))),(t.f&Tt)!==0&&(t.f^=Tt),c}catch(v){return jn(v)}finally{t.f^=Je,M=e,U=n,tt=r,b=s,At=i,Gt(o),vt=l,Vt=f}}function qi(t,e){let n=e.reactions;if(n!==null){var r=Gr.call(n,t);if(r!==-1){var s=n.length-1;s===0?n=e.reactions=null:(n[r]=n[s],n.pop())}}n===null&&(e.f&P)!==0&&(M===null||!M.includes(e))&&(F(e,xt),(e.f&et)!==0&&(e.f^=et,e.f&=~Ft),Hn(e),Fe(e,0))}function Fe(t,e){var n=t.deps;if(n!==null)for(var r=e;r<n.length;r++)qi(t,n[r])}function de(t){var e=t.f;if((e&$t)===0){F(t,N);var n=x,r=Ct;x=t,Ct=!0;try{(e&yt)!==0?Vi(t):nr(t),er(t);var s=vr(t);t.teardown=typeof s=="function"?s:null,t.wv=cr;var i;Xe&&yi&&(t.f&B)!==0&&t.deps}finally{Ct=r,x=n}}}function g(t){var e=t.f,n=(e&P)!==0;if(b!==null&&!vt){var r=x!==null&&(x.f&$t)!==0;if(!r&&!At?.includes(t)){var s=b.deps;if((b.f&Je)!==0)t.rv<ce&&(t.rv=ce,M===null&&s!==null&&s[U]===t?U++:M===null?M=[t]:M.includes(t)||M.push(t));else{(b.deps??=[]).push(t);var i=t.reactions;i===null?t.reactions=[b]:i.includes(b)||i.push(b)}}}if(Bt){if(Ot.has(t))return Ot.get(t);if(n){var o=t,l=o.v;return((o.f&N)===0&&o.reactions!==null||_r(o))&&(l=nn(o)),Ot.set(o,l),l}}else n&&!Z?.has(t)&&(o=t,ue(o)&&qn(o),Ct&&Pe()&&(o.f&et)===0&&pr(o));if(Z?.has(t))return Z.get(t);if((t.f&Tt)!==0)throw t.v;return t.v}function pr(t){if(t.deps!==null){t.f^=et;for(const e of t.deps)(e.reactions??=[]).push(t),(e.f&P)!==0&&(e.f&et)===0&&pr(e)}}function _r(t){if(t.v===D)return!0;if(t.deps===null)return!1;for(const e of t.deps)if(Ot.has(e)||(e.f&P)!==0&&_r(e))return!0;return!1}function cn(t){var e=vt;try{return vt=!0,t()}finally{vt=e}}const zi=-7169;function F(t,e){t.f=t.f&zi|e}const Yi=new Set,gr=new Set;function Ui(t,e,n,r={}){function s(i){if(r.capture||he.call(e,i),!i.cancelBubble)return ln(()=>n?.call(this,i))}return t.startsWith("pointer")||t.startsWith("touch")||t==="wheel"?ie(()=>{e.addEventListener(t,s,r)}):e.addEventListener(t,s,r),s}function Me(t,e,n,r,s){var i={capture:r,passive:s},o=Ui(t,e,n,i);(e===document.body||e===window||e===document||e instanceof HTMLMediaElement)&&Jn(()=>{e.removeEventListener(t,o,i)})}let mr=null;function he(t){var e=this,n=e.ownerDocument,r=t.type,s=t.composedPath?.()||[],i=s[0]||t.target;mr=t;var o=0,l=mr===t&&t.__root;if(l){var f=s.indexOf(l);if(f!==-1&&(e===document||e===window)){t.__root=e;return}var a=s.indexOf(e);if(a===-1)return;f<=a&&(o=f)}if(i=s[o]||t.target,i!==e){ye(t,"currentTarget",{configurable:!0,get(){return i||n}});var d=b,c=x;W(null),pt(null);try{for(var h,u=[];i!==null;){var v=i.assignedSlot||i.parentNode||i.host||null;try{var p=i["__"+r];p!=null&&(!i.disabled||t.target===i)&&p.call(i,t)}catch(m){h?u.push(m):h=m}if(t.cancelBubble||v===e||v===null)break;i=v}if(h){for(let m of u)queueMicrotask(()=>{throw m});throw h}}finally{t.__root=e,delete t.currentTarget,W(d),pt(c)}}}function wr(t){var e=document.createElement("template");return e.innerHTML=t.replaceAll("<!>","<!---->"),e.content}function _t(t,e){var n=x;n.nodes_start===null&&(n.nodes_start=t,n.nodes_end=e)}function un(t,e){var n=(e&Ur)!==0,r=(e&Xr)!==0,s,i=!t.startsWith("<!>");return()=>{if(R)return _t(E,null),E;s===void 0&&(s=wr(i?t:"<!>"+t),n||(s=ut(s)));var o=r||Xn?document.importNode(s,!0):s.cloneNode(!0);if(n){var l=ut(o),f=o.lastChild;_t(l,f)}else _t(o,o);return o}}function yr(t=""){if(!R){var e=it(t+"");return _t(e,e),e}var n=E;return n.nodeType!==Ee&&(n.before(n=it()),z(n)),_t(n,n),n}function br(){if(R)return _t(E,null),E;var t=document.createDocumentFragment(),e=document.createComment(""),n=it();return t.append(e,n),_t(e,n),t}function kt(t,e){if(R){var n=x;((n.f&xe)===0||n.nodes_end===null)&&(n.nodes_end=E),Kt();return}t!==null&&t.before(e)}const Xi=["touchstart","touchmove"];function Ki(t){return Xi.includes(t)}function dn(t,e){var n=e==null?"":typeof e=="object"?e+"":e;n!==(t.__t??=t.nodeValue)&&(t.__t=n,t.nodeValue=n+"")}function xr(t,e){return $r(t,e)}function Gi(t,e){sn(),e.intro=e.intro??!1;const n=e.target,r=R,s=E;try{for(var i=ut(n);i&&(i.nodeType!==Ut||i.data!==An);)i=dt(i);if(!i)throw Dt;Xt(!0),z(i);const o=$r(t,{...e,anchor:i});return Xt(!1),o}catch(o){if(o instanceof Error&&o.message.split(`
|
|
2
|
-
`).some(l=>l.startsWith("https://svelte.dev/e/")))throw o;return o!==Dt&&console.warn("Failed to hydrate: ",o),e.recover===!1&&ci(),sn(),Pi(n),Xt(!1),xr(t,e)}finally{Xt(r),z(s)}}const Zt=new Map;function $r(t,{target:e,anchor:n,props:r={},events:s,context:i,intro:o=!0}){sn();var l=new Set,f=c=>{for(var h=0;h<c.length;h++){var u=c[h];if(!l.has(u)){l.add(u);var v=Ki(u);e.addEventListener(u,he,{passive:v});var p=Zt.get(u);p===void 0?(document.addEventListener(u,he,{passive:v}),Zt.set(u,1)):Zt.set(u,p+1)}}};f(Jr(Yi)),gr.add(f);var a=void 0,d=ji(()=>{var c=n??e.appendChild(it());return Ri(c,{pending:()=>{}},h=>{if(i){Dn({});var u=Y;u.c=i}if(s&&(r.$$events=s),R&&_t(h,null),a=t(h,r)||{},R&&(x.nodes_end=E,E===null||E.nodeType!==Ut||E.data!==Sn))throw re(),Dt;i&&Nn()}),()=>{for(var h of l){e.removeEventListener(h,he);var u=Zt.get(h);--u===0?(document.removeEventListener(h,he),Zt.delete(h)):Zt.set(h,u)}gr.delete(f),c!==n&&c.parentNode?.removeChild(c)}});return hn.set(a,d),a}let hn=new WeakMap;function Ji(t,e){const n=hn.get(t);return n?(hn.delete(t),n(e)):Promise.resolve()}class Zi{anchor;#e=new Map;#t=new Map;#n=new Map;#r=new Set;#f=!0;constructor(e,n=!0){this.anchor=e,this.#f=n}#s=()=>{var e=T;if(this.#e.has(e)){var n=this.#e.get(e),r=this.#t.get(n);if(r)Wi(r),this.#r.delete(n);else{var s=this.#n.get(n);s&&(this.#t.set(n,s.effect),this.#n.delete(n),s.fragment.lastChild.remove(),this.anchor.before(s.fragment),r=s.effect)}for(const[i,o]of this.#e){if(this.#e.delete(i),i===e)break;const l=this.#n.get(o);l&&(I(l.effect),this.#n.delete(o))}for(const[i,o]of this.#t){if(i===n||this.#r.has(i))continue;const l=()=>{if(Array.from(this.#e.values()).includes(i)){var a=document.createDocumentFragment();lr(o,a),a.append(it()),this.#n.set(i,{effect:o,fragment:a})}else I(o);this.#r.delete(i),this.#t.delete(i)};this.#f||!r?(this.#r.add(i),ae(o,l,!1)):l()}}};#i=e=>{this.#e.delete(e);const n=Array.from(this.#e.values());for(const[r,s]of this.#n)n.includes(r)||(I(s.effect),this.#n.delete(r))};ensure(e,n){var r=T,s=Di();if(n&&!this.#t.has(e)&&!this.#n.has(e))if(s){var i=document.createDocumentFragment(),o=it();i.append(o),this.#n.set(e,{effect:Rt(()=>n(o)),fragment:i})}else this.#t.set(e,Rt(()=>n(this.anchor)));if(this.#e.set(r,e),s){for(const[l,f]of this.#t)l===e?r.skipped_effects.delete(f):r.skipped_effects.add(f);for(const[l,f]of this.#n)l===e?r.skipped_effects.delete(f.effect):r.skipped_effects.add(f.effect);r.oncommit(this.#s),r.ondiscard(this.#i)}else R&&(this.anchor=E),this.#s()}}function Qi(t){Y===null&&ii(),fn(()=>{const e=cn(t);if(typeof e=="function")return e})}function vn(t,e,n=!1){R&&Kt();var r=new Zi(t),s=n?zt:0;function i(o,l){if(R){const a=gi(t)===Ue;if(o===a){var f=Ln();z(f),r.anchor=f,Xt(!1),r.ensure(o,l),Xt(!0);return}}r.ensure(o,l)}tr(()=>{var o=!1;e((l,f=!0)=>{o=!0,i(f,l)}),o||i(!1,null)},s)}function ts(t,e,n=!1,r=!1,s=!1){var i=t,o="";De(()=>{var l=x;if(o===(o=e()??"")){R&&Kt();return}if(l.nodes_start!==null&&(rr(l.nodes_start,l.nodes_end),l.nodes_start=l.nodes_end=null),o!==""){if(R){E.data;for(var f=Kt(),a=f;f!==null&&(f.nodeType!==Ut||f.data!=="");)a=f,f=dt(f);if(f===null)throw re(),Dt;_t(E,a),i=z(f);return}var d=o+"";n?d=`<svg>${d}</svg>`:r&&(d=`<math>${d}</math>`);var c=wr(d);if((n||r)&&(c=ut(c)),_t(ut(c),c.lastChild),n||r)for(;ut(c);)i.before(ut(c));else i.before(c)}})}function es(t,e,n,r,s){R&&Kt();var i=e.$$slots?.[n],o=!1;i===!0&&(i=e.children,o=!0),i===void 0?s!==null&&s(t):i(t,o?()=>r:r)}function ns(t,e){Qn(()=>{var n=t.getRootNode(),r=n.host?n:n.head??n.ownerDocument.head;if(!r.querySelector("#"+e.hash)){const s=document.createElement("style");s.id=e.hash,s.textContent=e.code,r.appendChild(s)}})}function rs(t,e){return t==null?null:String(t)}function is(t,e,n,r){var s=t.__style;if(R||s!==e){var i=rs(e);(!R||i!==t.getAttribute("style"))&&(i==null?t.removeAttribute("style"):t.style.cssText=i),t.__style=e}return r}function Er(t,e){return t===e||t?.[$e]===e}function Rr(t={},e,n,r){return Qn(()=>{var s,i;return an(()=>{s=i,i=[],cn(()=>{t!==n(...i)&&(e(t,...i),s&&Er(n(...s),t)&&e(null,...s))})}),()=>{ie(()=>{i&&Er(n(...i),t)&&e(null,...i)})}}),t}function pn(t,e,n,r){var s=r,i=!0,o=()=>(i&&(i=!1,s=r),s),l;l=t[e],l===void 0&&r!==void 0&&(l=o());var f;f=()=>{var h=t[e];return h===void 0?o():(i=!0,h)};var a=!1,d=tn(()=>(a=!1,f())),c=x;return(function(h,u){if(arguments.length>0){const v=u?g(d):h;return V(d,v),a=!0,s!==void 0&&(s=v),h}return Bt&&a||(c.f&$t)!==0?d.v:g(d)})}function ss(t){return new os(t)}class os{#e;#t;constructor(e){var n=new Map,r=(i,o)=>{var l=ki(o,!1,!1);return n.set(i,l),l};const s=new Proxy({...e.props||{},$$events:{}},{get(i,o){return g(n.get(o)??r(o,Reflect.get(i,o)))},has(i,o){return o===ri?!0:(g(n.get(o)??r(o,Reflect.get(i,o))),Reflect.has(i,o))},set(i,o,l){return V(n.get(o)??r(o,l),l),Reflect.set(i,o,l)}});this.#t=(e.hydrate?Gi:xr)(e.component,{target:e.target,anchor:e.anchor,props:s,context:e.context,intro:e.intro??!1,recover:e.recover}),(!e?.props?.$$host||e.sync===!1)&&Te(),this.#e=s.$$events;for(const i of Object.keys(this.#t))i==="$set"||i==="$destroy"||i==="$on"||ye(this,i,{get(){return this.#t[i]},set(o){this.#t[i]=o},enumerable:!0});this.#t.$set=i=>{Object.assign(s,i)},this.#t.$destroy=()=>{Ji(this.#t)}}$set(e){this.#t.$set(e)}$on(e,n){this.#e[e]=this.#e[e]||[];const r=(...s)=>n.call(this,...s);return this.#e[e].push(r),()=>{this.#e[e]=this.#e[e].filter(s=>s!==r)}}$destroy(){this.#t.$destroy()}}let Ar;typeof HTMLElement=="function"&&(Ar=class extends HTMLElement{$$ctor;$$s;$$c;$$cn=!1;$$d={};$$r=!1;$$p_d={};$$l={};$$l_u=new Map;$$me;constructor(t,e,n){super(),this.$$ctor=t,this.$$s=e,n&&this.attachShadow({mode:"open"})}addEventListener(t,e,n){if(this.$$l[t]=this.$$l[t]||[],this.$$l[t].push(e),this.$$c){const r=this.$$c.$on(t,e);this.$$l_u.set(e,r)}super.addEventListener(t,e,n)}removeEventListener(t,e,n){if(super.removeEventListener(t,e,n),this.$$c){const r=this.$$l_u.get(e);r&&(r(),this.$$l_u.delete(e))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let t=function(r){return s=>{const i=document.createElement("slot");r!=="default"&&(i.name=r),kt(s,i)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const e={},n=ls(this);for(const r of this.$$s)r in n&&(r==="default"&&!this.$$d.children?(this.$$d.children=t(r),e.default=!0):e[r]=t(r));for(const r of this.attributes){const s=this.$$g_p(r.name);s in this.$$d||(this.$$d[s]=je(s,r.value,this.$$p_d,"toProp"))}for(const r in this.$$p_d)!(r in this.$$d)&&this[r]!==void 0&&(this.$$d[r]=this[r],delete this[r]);this.$$c=ss({component:this.$$ctor,target:this.shadowRoot||this,props:{...this.$$d,$$slots:e,$$host:this}}),this.$$me=Mi(()=>{an(()=>{this.$$r=!0;for(const r of we(this.$$c)){if(!this.$$p_d[r]?.reflect)continue;this.$$d[r]=this.$$c[r];const s=je(r,this.$$d[r],this.$$p_d,"toAttribute");s==null?this.removeAttribute(this.$$p_d[r].attribute||r):this.setAttribute(this.$$p_d[r].attribute||r,s)}this.$$r=!1})});for(const r in this.$$l)for(const s of this.$$l[r]){const i=this.$$c.$on(r,s);this.$$l_u.set(s,i)}this.$$l={}}}attributeChangedCallback(t,e,n){this.$$r||(t=this.$$g_p(t),this.$$d[t]=je(t,n,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 we(this.$$p_d).find(e=>this.$$p_d[e].attribute===t||!this.$$p_d[e].attribute&&e.toLowerCase()===t)||t}});function je(t,e,n,r){const s=n[t]?.type;if(e=s==="Boolean"&&typeof e!="boolean"?e!=null:e,!r||!n[t])return e;if(r==="toAttribute")switch(s){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(s){case"Object":case"Array":return e&&JSON.parse(e);case"Boolean":return e;case"Number":return e!=null?+e:e;default:return e}}function ls(t){const e={};return t.childNodes.forEach(n=>{e[n.slot||"default"]=!0}),e}function fs(t,e,n,r,s,i){let o=class extends Ar{constructor(){super(t,n,s),this.$$p_d=e}static get observedAttributes(){return we(e).map(l=>(e[l].attribute||l).toLowerCase())}};return we(e).forEach(l=>{ye(o.prototype,l,{get(){return this.$$c&&l in this.$$c?this.$$c[l]:this.$$d[l]},set(f){f=je(l,f,e),this.$$d[l]=f;var a=this.$$c;if(a){var d=qt(a,l)?.get;d?a[l]=f:a.$set({[l]:f})}}})}),r.forEach(l=>{ye(o.prototype,l,{get(){return this.$$c?.[l]}})}),t.element=o,o}const Qt=Math.min,It=Math.max,Be=Math.round,Ve=Math.floor,gt=t=>({x:t,y:t}),as={left:"right",right:"left",bottom:"top",top:"bottom"},cs={start:"end",end:"start"};function _n(t,e,n){return It(t,Qt(e,n))}function ve(t,e){return typeof t=="function"?t(e):t}function Wt(t){return t.split("-")[0]}function pe(t){return t.split("-")[1]}function Sr(t){return t==="x"?"y":"x"}function gn(t){return t==="y"?"height":"width"}const us=new Set(["top","bottom"]);function Lt(t){return us.has(Wt(t))?"y":"x"}function mn(t){return Sr(Lt(t))}function ds(t,e,n){n===void 0&&(n=!1);const r=pe(t),s=mn(t),i=gn(s);let o=s==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return e.reference[i]>e.floating[i]&&(o=Ie(o)),[o,Ie(o)]}function hs(t){const e=Ie(t);return[wn(t),e,wn(e)]}function wn(t){return t.replace(/start|end/g,e=>cs[e])}const Tr=["left","right"],Or=["right","left"],vs=["top","bottom"],ps=["bottom","top"];function _s(t,e,n){switch(t){case"top":case"bottom":return n?e?Or:Tr:e?Tr:Or;case"left":case"right":return e?vs:ps;default:return[]}}function gs(t,e,n,r){const s=pe(t);let i=_s(Wt(t),n==="start",r);return s&&(i=i.map(o=>o+"-"+s),e&&(i=i.concat(i.map(wn)))),i}function Ie(t){return t.replace(/left|right|bottom|top/g,e=>as[e])}function ms(t){return{top:0,right:0,bottom:0,left:0,...t}}function Cr(t){return typeof t!="number"?ms(t):{top:t,right:t,bottom:t,left:t}}function We(t){const{x:e,y:n,width:r,height:s}=t;return{width:r,height:s,top:n,left:e,right:e+r,bottom:n+s,x:e,y:n}}function kr(t,e,n){let{reference:r,floating:s}=t;const i=Lt(e),o=mn(e),l=gn(o),f=Wt(e),a=i==="y",d=r.x+r.width/2-s.width/2,c=r.y+r.height/2-s.height/2,h=r[l]/2-s[l]/2;let u;switch(f){case"top":u={x:d,y:r.y-s.height};break;case"bottom":u={x:d,y:r.y+r.height};break;case"right":u={x:r.x+r.width,y:c};break;case"left":u={x:r.x-s.width,y:c};break;default:u={x:r.x,y:r.y}}switch(pe(e)){case"start":u[o]-=h*(n&&a?-1:1);break;case"end":u[o]+=h*(n&&a?-1:1);break}return u}const ws=async(t,e,n)=>{const{placement:r="bottom",strategy:s="absolute",middleware:i=[],platform:o}=n,l=i.filter(Boolean),f=await(o.isRTL==null?void 0:o.isRTL(e));let a=await o.getElementRects({reference:t,floating:e,strategy:s}),{x:d,y:c}=kr(a,r,f),h=r,u={},v=0;for(let p=0;p<l.length;p++){const{name:m,fn:w}=l[p],{x:y,y:$,data:k,reset:S}=await w({x:d,y:c,initialPlacement:r,placement:h,strategy:s,middlewareData:u,rects:a,platform:o,elements:{reference:t,floating:e}});d=y??d,c=$??c,u={...u,[m]:{...u[m],...k}},S&&v<=50&&(v++,typeof S=="object"&&(S.placement&&(h=S.placement),S.rects&&(a=S.rects===!0?await o.getElementRects({reference:t,floating:e,strategy:s}):S.rects),{x:d,y:c}=kr(a,h,f)),p=-1)}return{x:d,y:c,placement:h,strategy:s,middlewareData:u}};async function Lr(t,e){var n;e===void 0&&(e={});const{x:r,y:s,platform:i,rects:o,elements:l,strategy:f}=t,{boundary:a="clippingAncestors",rootBoundary:d="viewport",elementContext:c="floating",altBoundary:h=!1,padding:u=0}=ve(e,t),v=Cr(u),m=l[h?c==="floating"?"reference":"floating":c],w=We(await i.getClippingRect({element:(n=await(i.isElement==null?void 0:i.isElement(m)))==null||n?m:m.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(l.floating)),boundary:a,rootBoundary:d,strategy:f})),y=c==="floating"?{x:r,y:s,width:o.floating.width,height:o.floating.height}:o.reference,$=await(i.getOffsetParent==null?void 0:i.getOffsetParent(l.floating)),k=await(i.isElement==null?void 0:i.isElement($))?await(i.getScale==null?void 0:i.getScale($))||{x:1,y:1}:{x:1,y:1},S=We(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:y,offsetParent:$,strategy:f}):y);return{top:(w.top-S.top+v.top)/k.y,bottom:(S.bottom-w.bottom+v.bottom)/k.y,left:(w.left-S.left+v.left)/k.x,right:(S.right-w.right+v.right)/k.x}}const ys=t=>({name:"arrow",options:t,async fn(e){const{x:n,y:r,placement:s,rects:i,platform:o,elements:l,middlewareData:f}=e,{element:a,padding:d=0}=ve(t,e)||{};if(a==null)return{};const c=Cr(d),h={x:n,y:r},u=mn(s),v=gn(u),p=await o.getDimensions(a),m=u==="y",w=m?"top":"left",y=m?"bottom":"right",$=m?"clientHeight":"clientWidth",k=i.reference[v]+i.reference[u]-h[u]-i.floating[v],S=h[u]-i.reference[u],lt=await(o.getOffsetParent==null?void 0:o.getOffsetParent(a));let _=lt?lt[$]:0;(!_||!await(o.isElement==null?void 0:o.isElement(lt)))&&(_=l.floating[$]||i.floating[v]);const O=k/2-S/2,H=_/2-p[v]/2-1,j=Qt(c[w],H),ft=Qt(c[y],H),K=j,C=_-p[v]-ft,A=_/2-p[v]/2+O,G=_n(K,A,C),at=!f.arrow&&pe(s)!=null&&A!==G&&i.reference[v]/2-(A<K?j:ft)-p[v]/2<0,J=at?A<K?A-K:A-C:0;return{[u]:h[u]+J,data:{[u]:G,centerOffset:A-G-J,...at&&{alignmentOffset:J}},reset:at}}}),bs=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(e){var n,r;const{placement:s,middlewareData:i,rects:o,initialPlacement:l,platform:f,elements:a}=e,{mainAxis:d=!0,crossAxis:c=!0,fallbackPlacements:h,fallbackStrategy:u="bestFit",fallbackAxisSideDirection:v="none",flipAlignment:p=!0,...m}=ve(t,e);if((n=i.arrow)!=null&&n.alignmentOffset)return{};const w=Wt(s),y=Lt(l),$=Wt(l)===l,k=await(f.isRTL==null?void 0:f.isRTL(a.floating)),S=h||($||!p?[Ie(l)]:hs(l)),lt=v!=="none";!h&<&&S.push(...gs(l,p,v,k));const _=[l,...S],O=await Lr(e,m),H=[];let j=((r=i.flip)==null?void 0:r.overflows)||[];if(d&&H.push(O[w]),c){const A=ds(s,o,k);H.push(O[A[0]],O[A[1]])}if(j=[...j,{placement:s,overflows:H}],!H.every(A=>A<=0)){var ft,K;const A=(((ft=i.flip)==null?void 0:ft.index)||0)+1,G=_[A];if(G&&(!(c==="alignment"?y!==Lt(G):!1)||j.every(L=>Lt(L.placement)===y?L.overflows[0]>0:!0)))return{data:{index:A,overflows:j},reset:{placement:G}};let at=(K=j.filter(J=>J.overflows[0]<=0).sort((J,L)=>J.overflows[1]-L.overflows[1])[0])==null?void 0:K.placement;if(!at)switch(u){case"bestFit":{var C;const J=(C=j.filter(L=>{if(lt){const q=Lt(L.placement);return q===y||q==="y"}return!0}).map(L=>[L.placement,L.overflows.filter(q=>q>0).reduce((q,me)=>q+me,0)]).sort((L,q)=>L[1]-q[1])[0])==null?void 0:C[0];J&&(at=J);break}case"initialPlacement":at=l;break}if(s!==at)return{reset:{placement:at}}}return{}}}},xs=new Set(["left","top"]);async function $s(t,e){const{placement:n,platform:r,elements:s}=t,i=await(r.isRTL==null?void 0:r.isRTL(s.floating)),o=Wt(n),l=pe(n),f=Lt(n)==="y",a=xs.has(o)?-1:1,d=i&&f?-1:1,c=ve(e,t);let{mainAxis:h,crossAxis:u,alignmentAxis:v}=typeof c=="number"?{mainAxis:c,crossAxis:0,alignmentAxis:null}:{mainAxis:c.mainAxis||0,crossAxis:c.crossAxis||0,alignmentAxis:c.alignmentAxis};return l&&typeof v=="number"&&(u=l==="end"?v*-1:v),f?{x:u*d,y:h*a}:{x:h*a,y:u*d}}const Es=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(e){var n,r;const{x:s,y:i,placement:o,middlewareData:l}=e,f=await $s(e,t);return o===((n=l.offset)==null?void 0:n.placement)&&(r=l.arrow)!=null&&r.alignmentOffset?{}:{x:s+f.x,y:i+f.y,data:{...f,placement:o}}}}},Rs=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){const{x:n,y:r,placement:s}=e,{mainAxis:i=!0,crossAxis:o=!1,limiter:l={fn:m=>{let{x:w,y}=m;return{x:w,y}}},...f}=ve(t,e),a={x:n,y:r},d=await Lr(e,f),c=Lt(Wt(s)),h=Sr(c);let u=a[h],v=a[c];if(i){const m=h==="y"?"top":"left",w=h==="y"?"bottom":"right",y=u+d[m],$=u-d[w];u=_n(y,u,$)}if(o){const m=c==="y"?"top":"left",w=c==="y"?"bottom":"right",y=v+d[m],$=v-d[w];v=_n(y,v,$)}const p=l.fn({...e,[h]:u,[c]:v});return{...p,data:{x:p.x-n,y:p.y-r,enabled:{[h]:i,[c]:o}}}}}};function He(){return typeof window<"u"}function te(t){return Pr(t)?(t.nodeName||"").toLowerCase():"#document"}function X(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function mt(t){var e;return(e=(Pr(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function Pr(t){return He()?t instanceof Node||t instanceof X(t).Node:!1}function st(t){return He()?t instanceof Element||t instanceof X(t).Element:!1}function wt(t){return He()?t instanceof HTMLElement||t instanceof X(t).HTMLElement:!1}function Dr(t){return!He()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof X(t).ShadowRoot}const As=new Set(["inline","contents"]);function _e(t){const{overflow:e,overflowX:n,overflowY:r,display:s}=ot(t);return/auto|scroll|overlay|hidden|clip/.test(e+r+n)&&!As.has(s)}const Ss=new Set(["table","td","th"]);function Ts(t){return Ss.has(te(t))}const Os=[":popover-open",":modal"];function qe(t){return Os.some(e=>{try{return t.matches(e)}catch{return!1}})}const Cs=["transform","translate","scale","rotate","perspective"],ks=["transform","translate","scale","rotate","perspective","filter"],Ls=["paint","layout","strict","content"];function yn(t){const e=bn(),n=st(t)?ot(t):t;return Cs.some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!e&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!e&&(n.filter?n.filter!=="none":!1)||ks.some(r=>(n.willChange||"").includes(r))||Ls.some(r=>(n.contain||"").includes(r))}function Ps(t){let e=Pt(t);for(;wt(e)&&!ee(e);){if(yn(e))return e;if(qe(e))return null;e=Pt(e)}return null}function bn(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const Ds=new Set(["html","body","#document"]);function ee(t){return Ds.has(te(t))}function ot(t){return X(t).getComputedStyle(t)}function ze(t){return st(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function Pt(t){if(te(t)==="html")return t;const e=t.assignedSlot||t.parentNode||Dr(t)&&t.host||mt(t);return Dr(e)?e.host:e}function Nr(t){const e=Pt(t);return ee(e)?t.ownerDocument?t.ownerDocument.body:t.body:wt(e)&&_e(e)?e:Nr(e)}function ge(t,e,n){var r;e===void 0&&(e=[]),n===void 0&&(n=!0);const s=Nr(t),i=s===((r=t.ownerDocument)==null?void 0:r.body),o=X(s);if(i){const l=xn(o);return e.concat(o,o.visualViewport||[],_e(s)?s:[],l&&n?ge(l):[])}return e.concat(s,ge(s,[],n))}function xn(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function Fr(t){const e=ot(t);let n=parseFloat(e.width)||0,r=parseFloat(e.height)||0;const s=wt(t),i=s?t.offsetWidth:n,o=s?t.offsetHeight:r,l=Be(n)!==i||Be(r)!==o;return l&&(n=i,r=o),{width:n,height:r,$:l}}function $n(t){return st(t)?t:t.contextElement}function ne(t){const e=$n(t);if(!wt(e))return gt(1);const n=e.getBoundingClientRect(),{width:r,height:s,$:i}=Fr(e);let o=(i?Be(n.width):n.width)/r,l=(i?Be(n.height):n.height)/s;return(!o||!Number.isFinite(o))&&(o=1),(!l||!Number.isFinite(l))&&(l=1),{x:o,y:l}}const Ns=gt(0);function Mr(t){const e=X(t);return!bn()||!e.visualViewport?Ns:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function Fs(t,e,n){return e===void 0&&(e=!1),!n||e&&n!==X(t)?!1:e}function Ht(t,e,n,r){e===void 0&&(e=!1),n===void 0&&(n=!1);const s=t.getBoundingClientRect(),i=$n(t);let o=gt(1);e&&(r?st(r)&&(o=ne(r)):o=ne(t));const l=Fs(i,n,r)?Mr(i):gt(0);let f=(s.left+l.x)/o.x,a=(s.top+l.y)/o.y,d=s.width/o.x,c=s.height/o.y;if(i){const h=X(i),u=r&&st(r)?X(r):r;let v=h,p=xn(v);for(;p&&r&&u!==v;){const m=ne(p),w=p.getBoundingClientRect(),y=ot(p),$=w.left+(p.clientLeft+parseFloat(y.paddingLeft))*m.x,k=w.top+(p.clientTop+parseFloat(y.paddingTop))*m.y;f*=m.x,a*=m.y,d*=m.x,c*=m.y,f+=$,a+=k,v=X(p),p=xn(v)}}return We({width:d,height:c,x:f,y:a})}function Ye(t,e){const n=ze(t).scrollLeft;return e?e.left+n:Ht(mt(t)).left+n}function jr(t,e){const n=t.getBoundingClientRect(),r=n.left+e.scrollLeft-Ye(t,n),s=n.top+e.scrollTop;return{x:r,y:s}}function Ms(t){let{elements:e,rect:n,offsetParent:r,strategy:s}=t;const i=s==="fixed",o=mt(r),l=e?qe(e.floating):!1;if(r===o||l&&i)return n;let f={scrollLeft:0,scrollTop:0},a=gt(1);const d=gt(0),c=wt(r);if((c||!c&&!i)&&((te(r)!=="body"||_e(o))&&(f=ze(r)),wt(r))){const u=Ht(r);a=ne(r),d.x=u.x+r.clientLeft,d.y=u.y+r.clientTop}const h=o&&!c&&!i?jr(o,f):gt(0);return{width:n.width*a.x,height:n.height*a.y,x:n.x*a.x-f.scrollLeft*a.x+d.x+h.x,y:n.y*a.y-f.scrollTop*a.y+d.y+h.y}}function js(t){return Array.from(t.getClientRects())}function Bs(t){const e=mt(t),n=ze(t),r=t.ownerDocument.body,s=It(e.scrollWidth,e.clientWidth,r.scrollWidth,r.clientWidth),i=It(e.scrollHeight,e.clientHeight,r.scrollHeight,r.clientHeight);let o=-n.scrollLeft+Ye(t);const l=-n.scrollTop;return ot(r).direction==="rtl"&&(o+=It(e.clientWidth,r.clientWidth)-s),{width:s,height:i,x:o,y:l}}const Br=25;function Vs(t,e){const n=X(t),r=mt(t),s=n.visualViewport;let i=r.clientWidth,o=r.clientHeight,l=0,f=0;if(s){i=s.width,o=s.height;const d=bn();(!d||d&&e==="fixed")&&(l=s.offsetLeft,f=s.offsetTop)}const a=Ye(r);if(a<=0){const d=r.ownerDocument,c=d.body,h=getComputedStyle(c),u=d.compatMode==="CSS1Compat"&&parseFloat(h.marginLeft)+parseFloat(h.marginRight)||0,v=Math.abs(r.clientWidth-c.clientWidth-u);v<=Br&&(i-=v)}else a<=Br&&(i+=a);return{width:i,height:o,x:l,y:f}}const Is=new Set(["absolute","fixed"]);function Ws(t,e){const n=Ht(t,!0,e==="fixed"),r=n.top+t.clientTop,s=n.left+t.clientLeft,i=wt(t)?ne(t):gt(1),o=t.clientWidth*i.x,l=t.clientHeight*i.y,f=s*i.x,a=r*i.y;return{width:o,height:l,x:f,y:a}}function Vr(t,e,n){let r;if(e==="viewport")r=Vs(t,n);else if(e==="document")r=Bs(mt(t));else if(st(e))r=Ws(e,n);else{const s=Mr(t);r={x:e.x-s.x,y:e.y-s.y,width:e.width,height:e.height}}return We(r)}function Ir(t,e){const n=Pt(t);return n===e||!st(n)||ee(n)?!1:ot(n).position==="fixed"||Ir(n,e)}function Hs(t,e){const n=e.get(t);if(n)return n;let r=ge(t,[],!1).filter(l=>st(l)&&te(l)!=="body"),s=null;const i=ot(t).position==="fixed";let o=i?Pt(t):t;for(;st(o)&&!ee(o);){const l=ot(o),f=yn(o);!f&&l.position==="fixed"&&(s=null),(i?!f&&!s:!f&&l.position==="static"&&!!s&&Is.has(s.position)||_e(o)&&!f&&Ir(t,o))?r=r.filter(d=>d!==o):s=l,o=Pt(o)}return e.set(t,r),r}function qs(t){let{element:e,boundary:n,rootBoundary:r,strategy:s}=t;const o=[...n==="clippingAncestors"?qe(e)?[]:Hs(e,this._c):[].concat(n),r],l=o[0],f=o.reduce((a,d)=>{const c=Vr(e,d,s);return a.top=It(c.top,a.top),a.right=Qt(c.right,a.right),a.bottom=Qt(c.bottom,a.bottom),a.left=It(c.left,a.left),a},Vr(e,l,s));return{width:f.right-f.left,height:f.bottom-f.top,x:f.left,y:f.top}}function zs(t){const{width:e,height:n}=Fr(t);return{width:e,height:n}}function Ys(t,e,n){const r=wt(e),s=mt(e),i=n==="fixed",o=Ht(t,!0,i,e);let l={scrollLeft:0,scrollTop:0};const f=gt(0);function a(){f.x=Ye(s)}if(r||!r&&!i)if((te(e)!=="body"||_e(s))&&(l=ze(e)),r){const u=Ht(e,!0,i,e);f.x=u.x+e.clientLeft,f.y=u.y+e.clientTop}else s&&a();i&&!r&&s&&a();const d=s&&!r&&!i?jr(s,l):gt(0),c=o.left+l.scrollLeft-f.x-d.x,h=o.top+l.scrollTop-f.y-d.y;return{x:c,y:h,width:o.width,height:o.height}}function En(t){return ot(t).position==="static"}function Wr(t,e){if(!wt(t)||ot(t).position==="fixed")return null;if(e)return e(t);let n=t.offsetParent;return mt(t)===n&&(n=n.ownerDocument.body),n}function Hr(t,e){const n=X(t);if(qe(t))return n;if(!wt(t)){let s=Pt(t);for(;s&&!ee(s);){if(st(s)&&!En(s))return s;s=Pt(s)}return n}let r=Wr(t,e);for(;r&&Ts(r)&&En(r);)r=Wr(r,e);return r&&ee(r)&&En(r)&&!yn(r)?n:r||Ps(t)||n}const Us=async function(t){const e=this.getOffsetParent||Hr,n=this.getDimensions,r=await n(t.floating);return{reference:Ys(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function Xs(t){return ot(t).direction==="rtl"}const Ks={convertOffsetParentRelativeRectToViewportRelativeRect:Ms,getDocumentElement:mt,getClippingRect:qs,getOffsetParent:Hr,getElementRects:Us,getClientRects:js,getDimensions:zs,getScale:ne,isElement:st,isRTL:Xs};function qr(t,e){return t.x===e.x&&t.y===e.y&&t.width===e.width&&t.height===e.height}function Gs(t,e){let n=null,r;const s=mt(t);function i(){var l;clearTimeout(r),(l=n)==null||l.disconnect(),n=null}function o(l,f){l===void 0&&(l=!1),f===void 0&&(f=1),i();const a=t.getBoundingClientRect(),{left:d,top:c,width:h,height:u}=a;if(l||e(),!h||!u)return;const v=Ve(c),p=Ve(s.clientWidth-(d+h)),m=Ve(s.clientHeight-(c+u)),w=Ve(d),$={rootMargin:-v+"px "+-p+"px "+-m+"px "+-w+"px",threshold:It(0,Qt(1,f))||1};let k=!0;function S(lt){const _=lt[0].intersectionRatio;if(_!==f){if(!k)return o();_?o(!1,_):r=setTimeout(()=>{o(!1,1e-7)},1e3)}_===1&&!qr(a,t.getBoundingClientRect())&&o(),k=!1}try{n=new IntersectionObserver(S,{...$,root:s.ownerDocument})}catch{n=new IntersectionObserver(S,$)}n.observe(t)}return o(!0),i}function Js(t,e,n,r){r===void 0&&(r={});const{ancestorScroll:s=!0,ancestorResize:i=!0,elementResize:o=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:f=!1}=r,a=$n(t),d=s||i?[...a?ge(a):[],...ge(e)]:[];d.forEach(w=>{s&&w.addEventListener("scroll",n,{passive:!0}),i&&w.addEventListener("resize",n)});const c=a&&l?Gs(a,n):null;let h=-1,u=null;o&&(u=new ResizeObserver(w=>{let[y]=w;y&&y.target===a&&u&&(u.unobserve(e),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var $;($=u)==null||$.observe(e)})),n()}),a&&!f&&u.observe(a),u.observe(e));let v,p=f?Ht(t):null;f&&m();function m(){const w=Ht(t);p&&!qr(p,w)&&n(),p=w,v=requestAnimationFrame(m)}return n(),()=>{var w;d.forEach(y=>{s&&y.removeEventListener("scroll",n),i&&y.removeEventListener("resize",n)}),c?.(),(w=u)==null||w.disconnect(),u=null,f&&cancelAnimationFrame(v)}}const Zs=Es,Qs=Rs,to=bs,eo=ys,no=(t,e,n)=>{const r=new Map,s={platform:Ks,...n},i={...s.platform,_c:r};return ws(t,e,{...s,platform:i})};var ro=un('<div style="text-align: center; font-weight: bold; margin-bottom: 4px;"> </div> <div style="text-align: justify"> </div>',1),io=un('<div class="tooltip-element svelte-5j6wnh" role="tooltip"><!> <div class="tooltip-arrow svelte-5j6wnh"></div></div>'),so=un('<span id="tooltip-trigger" role="tooltip"><!></span> <!>',1);const oo={hash:"svelte-5j6wnh",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");:host {font-family:"Roboto", sans-serif;}.tooltip-element.svelte-5j6wnh {position:absolute;width:max-content;top:0;left:0;z-index:1000;pointer-events:none;}.tooltip-arrow.svelte-5j6wnh {position:absolute;width:8px;height:8px;background:var(--tooltip-bg, black);transform:rotate(45deg);}'};function zr(t,e){Dn(e,!0),ns(t,oo);let n=pn(e,"id",7,""),r=pn(e,"tooltip"),s=pn(e,"show"),i,o=rt(void 0),l=rt(void 0),f,a=rt(!1);function d(_,O){e.$$host.dispatchEvent(new CustomEvent(_,{detail:O}))}Qi(()=>{i=e.$$host?.shadowRoot?.querySelector("#tooltip-trigger")});let c=en(()=>{if(!r())return null;if(typeof r()=="string")try{return JSON.parse(r())}catch(_){return console.warn("Invalid tooltip JSON",_),null}return r()}),h=en(()=>{if(s()!==void 0){if(s()===!0||s()===!1)return s();if(typeof s()=="string"){if(["true","1","on","yes"].includes(s()))return!0;if(["false","0","off","no"].includes(s()))return!1}}});function u(){g(h)!==void 0&&V(a,g(h),!0)}fn(()=>{u()});function v(){g(h)===void 0&&V(a,!0)}function p(){g(h)===void 0&&V(a,!1)}fn(()=>{if(g(a)){if(d("visualizationChange",{id:n(),show:!0}),i&&g(o)){let _=g(c)?.placement||"top";_==="auto"&&(_="top");const O=[Zs(6),to(),Qs({padding:5})];g(l)&&O.push(eo({element:g(l)})),f=Js(i,g(o),()=>{!i||!g(o)||no(i,g(o),{placement:_,middleware:O}).then(({x:H,y:j,placement:ft,middlewareData:K})=>{Object.assign(g(o).style,{left:`${H}px`,top:`${j}px`});const{x:C,y:A}=K.arrow||{},G={top:"bottom",right:"left",bottom:"top",left:"right"}[ft.split("-")[0]];g(l)&&Object.assign(g(l).style,{left:C!=null?`${C}px`:"",top:A!=null?`${A}px`:"",right:"",bottom:"",[G]:"-4px"})})})}}else d("visualizationChange",{id:n(),show:!1}),f&&f();return()=>{f&&f()}});let m=en(()=>{const _=g(c)?.style||{};if(_.disableDefaultStyle)return"";const O=_.backgroundColor||"black",H=_.color||"white",j=_.padding||"0.5rem 1rem",ft=_.borderRadius||"0.25rem",K=_.opacity!==void 0?_.opacity:.9,C=_.fontSize||"0.875rem";return`
|
|
1
|
+
(function(Cn){"use strict";typeof window<"u"&&((window.__svelte??={}).v??=new Set).add("5");const ei=1,ni=2,kn="[",Ln="[!",Nn="[?",Pn="]",Dt={},M=Symbol(),ri="http://www.w3.org/1999/xhtml",ii="http://www.w3.org/2000/svg",si="http://www.w3.org/1998/Math/MathML",oi=!1;var li=Array.isArray,fi=Array.prototype.indexOf,Xt=Array.prototype.includes,ai=Array.from,be=Object.keys,xe=Object.defineProperty,Gt=Object.getOwnPropertyDescriptor,ci=Object.prototype,ui=Array.prototype,hi=Object.getPrototypeOf,Mn=Object.isExtensible;const di=()=>{};function vi(t){for(var e=0;e<t.length;e++)t[e]()}function Dn(){var t,e,n=new Promise((r,i)=>{t=r,e=i});return{promise:n,resolve:t,reject:e}}const N=2,Kt=4,$e=8,Fn=1<<24,At=16,ht=32,Tt=64,Ue=128,J=512,k=1024,D=2048,dt=4096,vt=8192,nt=16384,St=32768,Xe=1<<25,Jt=65536,jn=1<<17,pi=1<<18,Ft=1<<19,_i=1<<20,jt=65536,Ge=1<<21,Ke=1<<22,Ot=1<<23,Ee=Symbol("$state"),gi=Symbol("legacy props"),bt=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"},le=3,fe=8;function mi(t){throw new Error("https://svelte.dev/e/lifecycle_outside_component")}function wi(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function yi(t){throw new Error("https://svelte.dev/e/effect_in_teardown")}function bi(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function xi(t){throw new Error("https://svelte.dev/e/effect_orphan")}function $i(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function Ei(){throw new Error("https://svelte.dev/e/hydration_failed")}function Ri(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function Ai(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function Ti(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function Si(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}function ae(t){console.warn("https://svelte.dev/e/hydration_mismatch")}function Oi(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}let A=!1;function Zt(t){A=t}let R;function V(t){if(t===null)throw ae(),Dt;return R=t}function Qt(){return V(pt(R))}function Re(t){if(A){if(pt(R)!==null)throw ae(),Dt;R=t}}function Ci(t=1){if(A){for(var e=t,n=R;e--;)n=pt(n);R=n}}function In(t=!0){for(var e=0,n=R;;){if(n.nodeType===fe){var r=n.data;if(r===Pn){if(e===0)return n;e-=1}else(r===kn||r===Ln||r[0]==="["&&!isNaN(Number(r.slice(1))))&&(e+=1)}var i=pt(n);t&&n.remove(),n=i}}function ki(t){if(!t||t.nodeType!==fe)throw ae(),Dt;return t.data}function Vn(t){return t===this.v}function Li(t,e){return t!=t?e==e:t!==e||t!==null&&typeof t=="object"||typeof t=="function"}function Ni(t){return!Li(t,this.v)}let Pi=!1,B=null;function te(t){B=t}function Bn(t,e=!1,n){B={p:B,i:!1,c:null,e:null,s:t,x:null,r:y,l:null}}function Hn(t){var e=B,n=e.e;if(n!==null){e.e=null;for(var r of n)cr(r)}return t!==void 0&&(e.x=t),e.i=!0,B=e.p,t??{}}function Wn(){return!0}let It=[];function zn(){var t=It;It=[],vi(t)}function Vt(t){if(It.length===0&&!ce){var e=It;queueMicrotask(()=>{e===It&&zn()})}It.push(t)}function Mi(){for(;It.length>0;)zn()}function Yn(t){var e=y;if(e===null)return x.f|=Ot,t;if((e.f&St)===0&&(e.f&Kt)===0)throw t;Ct(t,e)}function Ct(t,e){for(;e!==null;){if((e.f&Ue)!==0){if((e.f&St)===0)throw t;try{e.b.error(t);return}catch(n){t=n}}e=e.parent}throw t}const Di=-7169;function C(t,e){t.f=t.f&Di|e}function Je(t){(t.f&J)!==0||t.deps===null?C(t,k):C(t,dt)}function qn(t){if(t!==null)for(const e of t)(e.f&N)===0||(e.f&jt)===0||(e.f^=jt,qn(e.deps))}function Un(t,e,n){(t.f&D)!==0?e.add(t):(t.f&dt)!==0&&n.add(t),qn(t.deps),C(t,k)}const kt=new Set;let T=null,rt=null,Ze=null,ce=!1,Qe=!1,ee=null,Ae=null;var Xn=0;let Fi=1;class xt{id=Fi++;current=new Map;previous=new Map;#t=new Set;#n=new Set;#e=new Map;#i=new Map;#s=null;#r=[];#o=new Set;#l=new Set;#f=new Map;is_fork=!1;#u=!1;#a=new Set;#h(){return this.is_fork||this.#i.size>0}#v(){for(const r of this.#a)for(const i of r.#i.keys()){for(var e=!1,n=i;n.parent!==null;){if(this.#f.has(n)){e=!0;break}n=n.parent}if(!e)return!0}return!1}skip_effect(e){this.#f.has(e)||this.#f.set(e,{d:[],m:[]})}unskip_effect(e){var n=this.#f.get(e);if(n){this.#f.delete(e);for(var r of n.d)C(r,D),this.schedule(r);for(r of n.m)C(r,dt),this.schedule(r)}}#d(){if(Xn++>1e3&&(kt.delete(this),ji()),!this.#h()){for(const l of this.#o)this.#l.delete(l),C(l,D),this.schedule(l);for(const l of this.#l)C(l,dt),this.schedule(l)}const e=this.#r;this.#r=[],this.apply();var n=ee=[],r=[],i=Ae=[];for(const l of e)try{this.#c(l,n,r)}catch(f){throw Qn(l),f}if(T=null,i.length>0){var s=xt.ensure();for(const l of i)s.schedule(l)}if(ee=null,Ae=null,this.#h()||this.#v()){this.#p(r),this.#p(n);for(const[l,f]of this.#f)Zn(l,f)}else{this.#e.size===0&&kt.delete(this),this.#o.clear(),this.#l.clear();for(const l of this.#t)l(this);this.#t.clear(),Gn(r),Gn(n),this.#s?.resolve()}var o=T;if(this.#r.length>0){const l=o??=this;l.#r.push(...this.#r.filter(f=>!l.#r.includes(f)))}o!==null&&(kt.add(o),o.#d()),kt.has(this)||this.#_()}#c(e,n,r){e.f^=k;for(var i=e.first;i!==null;){var s=i.f,o=(s&(ht|Tt))!==0,l=o&&(s&k)!==0,f=l||(s&vt)!==0||this.#f.has(i);if(!f&&i.fn!==null){o?i.f^=k:(s&Kt)!==0?n.push(i):pe(i)&&((s&At)!==0&&this.#l.add(i),ne(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}}}#p(e){for(var n=0;n<e.length;n+=1)Un(e[n],this.#o,this.#l)}capture(e,n,r=!1){n!==M&&!this.previous.has(e)&&this.previous.set(e,n),(e.f&Ot)===0&&(this.current.set(e,[e.v,r]),rt?.set(e,e.v))}activate(){T=this}deactivate(){T=null,rt=null}flush(){try{Qe=!0,T=this,this.#d()}finally{Xn=0,Ze=null,ee=null,Ae=null,Qe=!1,T=null,rt=null,Lt.clear()}}discard(){for(const e of this.#n)e(this);this.#n.clear(),kt.delete(this)}#_(){for(const a of kt){var e=a.id<this.id,n=[];for(const[c,[u,h]]of this.current){if(a.current.has(c)){var r=a.current.get(c)[0];if(e&&u!==r)a.current.set(c,[u,h]);else continue}n.push(c)}var i=[...a.current.keys()].filter(c=>!this.current.has(c));if(i.length===0)e&&a.discard();else if(n.length>0){a.activate();var s=new Set,o=new Map;for(var l of n)Kn(l,i,s,o);if(a.#r.length>0){a.apply();for(var f of a.#r)a.#c(f,[],[]);a.#r=[]}a.deactivate()}}for(const a of kt)a.#a.has(this)&&(a.#a.delete(this),a.#a.size===0&&!a.#h()&&(a.activate(),a.#d()))}increment(e,n){let r=this.#e.get(n)??0;if(this.#e.set(n,r+1),e){let i=this.#i.get(n)??0;this.#i.set(n,i+1)}}decrement(e,n,r){let i=this.#e.get(n)??0;if(i===1?this.#e.delete(n):this.#e.set(n,i-1),e){let s=this.#i.get(n)??0;s===1?this.#i.delete(n):this.#i.set(n,s-1)}this.#u||r||(this.#u=!0,Vt(()=>{this.#u=!1,this.flush()}))}transfer_effects(e,n){for(const r of e)this.#o.add(r);for(const r of n)this.#l.add(r);e.clear(),n.clear()}oncommit(e){this.#t.add(e)}ondiscard(e){this.#n.add(e)}settled(){return(this.#s??=Dn()).promise}static ensure(){if(T===null){const e=T=new xt;Qe||(kt.add(T),ce||Vt(()=>{T===e&&e.flush()}))}return T}apply(){{rt=null;return}}schedule(e){if(Ze=e,e.b?.is_pending&&(e.f&(Kt|$e|Fn))!==0&&(e.f&St)===0){e.b.defer_effect(e);return}for(var n=e;n.parent!==null;){n=n.parent;var r=n.f;if(ee!==null&&n===y&&(x===null||(x.f&N)===0))return;if((r&(Tt|ht))!==0){if((r&k)===0)return;n.f^=k}}this.#r.push(n)}}function Te(t){var e=ce;ce=!0;try{for(var n;;){if(Mi(),T===null)return n;T.flush()}}finally{ce=e}}function ji(){try{$i()}catch(t){Ct(t,Ze)}}let $t=null;function Gn(t){var e=t.length;if(e!==0){for(var n=0;n<e;){var r=t[n++];if((r.f&(nt|vt))===0&&pe(r)&&($t=new Set,ne(r),r.deps===null&&r.first===null&&r.nodes===null&&r.teardown===null&&r.ac===null&&pr(r),$t?.size>0)){Lt.clear();for(const i of $t){if((i.f&(nt|vt))!==0)continue;const s=[i];let o=i.parent;for(;o!==null;)$t.has(o)&&($t.delete(o),s.push(o)),o=o.parent;for(let l=s.length-1;l>=0;l--){const f=s[l];(f.f&(nt|vt))===0&&ne(f)}}$t.clear()}}$t=null}}function Kn(t,e,n,r){if(!n.has(t)&&(n.add(t),t.reactions!==null))for(const i of t.reactions){const s=i.f;(s&N)!==0?Kn(i,e,n,r):(s&(Ke|At))!==0&&(s&D)===0&&Jn(i,e,r)&&(C(i,D),tn(i))}}function Jn(t,e,n){const r=n.get(t);if(r!==void 0)return r;if(t.deps!==null)for(const i of t.deps){if(Xt.call(e,i))return!0;if((i.f&N)!==0&&Jn(i,e,n))return n.set(i,!0),!0}return n.set(t,!1),!1}function tn(t){T.schedule(t)}function Zn(t,e){if(!((t.f&ht)!==0&&(t.f&k)!==0)){(t.f&D)!==0?e.d.push(t):(t.f&dt)!==0&&e.m.push(t),C(t,k);for(var n=t.first;n!==null;)Zn(n,e),n=n.next}}function Qn(t){C(t,k);for(var e=t.first;e!==null;)Qn(e),e=e.next}function Ii(t){let e=0,n=ue(0),r;return()=>{cn()&&(w(n),hn(()=>(e===0&&(r=vn(()=>t(()=>he(n)))),e+=1,()=>{Vt(()=>{e-=1,e===0&&(r?.(),r=void 0,he(n))})})))}}var Vi=Jt|Ft;function Bi(t,e,n,r){new Hi(t,e,n,r)}class Hi{parent;is_pending=!1;transform_error;#t;#n=A?R:null;#e;#i;#s;#r=null;#o=null;#l=null;#f=null;#u=0;#a=0;#h=!1;#v=new Set;#d=new Set;#c=null;#p=Ii(()=>(this.#c=ue(this.#u),()=>{this.#c=null}));constructor(e,n,r,i){this.#t=e,this.#e=n,this.#i=s=>{var o=y;o.b=this,o.f|=Ue,r(s)},this.parent=y.b,this.transform_error=i??this.parent?.transform_error??(s=>s),this.#s=hr(()=>{if(A){const s=this.#n;Qt();const o=s.data===Ln;if(s.data.startsWith(Nn)){const f=JSON.parse(s.data.slice(Nn.length));this.#b(f)}else o?this.#x():this.#_()}else this.#w()},Vi),A&&(this.#t=R)}#_(){try{this.#r=Et(()=>this.#i(this.#t))}catch(e){this.error(e)}}#b(e){const n=this.#e.failed;n&&(this.#l=Et(()=>{n(this.#t,()=>e,()=>()=>{})}))}#x(){const e=this.#e.pending;e&&(this.is_pending=!0,this.#o=Et(()=>e(this.#t)),Vt(()=>{var n=this.#f=document.createDocumentFragment(),r=st();n.append(r),this.#r=this.#m(()=>Et(()=>this.#i(r))),this.#a===0&&(this.#t.before(n),this.#f=null,ve(this.#o,()=>{this.#o=null}),this.#g(T))}))}#w(){try{if(this.is_pending=this.has_pending_snippet(),this.#a=0,this.#u=0,this.#r=Et(()=>{this.#i(this.#t)}),this.#a>0){var e=this.#f=document.createDocumentFragment();mr(this.#r,e);const n=this.#e.pending;this.#o=Et(()=>n(this.#t))}else this.#g(T)}catch(n){this.error(n)}}#g(e){this.is_pending=!1,e.transfer_effects(this.#v,this.#d)}defer_effect(e){Un(e,this.#v,this.#d)}is_rendered(){return!this.is_pending&&(!this.parent||this.parent.is_rendered())}has_pending_snippet(){return!!this.#e.pending}#m(e){var n=y,r=x,i=B;gt(this.#s),Z(this.#s),te(this.#s.ctx);try{return xt.ensure(),e()}catch(s){return Yn(s),null}finally{gt(n),Z(r),te(i)}}#y(e,n){if(!this.has_pending_snippet()){this.parent&&this.parent.#y(e,n);return}this.#a+=e,this.#a===0&&(this.#g(n),this.#o&&ve(this.#o,()=>{this.#o=null}),this.#f&&(this.#t.before(this.#f),this.#f=null))}update_pending_count(e,n){this.#y(e,n),this.#u+=e,!(!this.#c||this.#h)&&(this.#h=!0,Vt(()=>{this.#h=!1,this.#c&&Oe(this.#c,this.#u)}))}get_effect_pending(){return this.#p(),w(this.#c)}error(e){var n=this.#e.onerror;let r=this.#e.failed;if(!n&&!r)throw e;this.#r&&(W(this.#r),this.#r=null),this.#o&&(W(this.#o),this.#o=null),this.#l&&(W(this.#l),this.#l=null),A&&(V(this.#n),Ci(),V(In()));var i=!1,s=!1;const o=()=>{if(i){Oi();return}i=!0,s&&Si(),this.#l!==null&&ve(this.#l,()=>{this.#l=null}),this.#m(()=>{this.#w()})},l=f=>{try{s=!0,n?.(f,o),s=!1}catch(a){Ct(a,this.#s&&this.#s.parent)}r&&(this.#l=this.#m(()=>{try{return Et(()=>{var a=y;a.b=this,a.f|=Ue,r(this.#t,()=>f,()=>o)})}catch(a){return Ct(a,this.#s.parent),null}}))};Vt(()=>{var f;try{f=this.transform_error(e)}catch(a){Ct(a,this.#s&&this.#s.parent);return}f!==null&&typeof f=="object"&&typeof f.then=="function"?f.then(l,a=>Ct(a,this.#s&&this.#s.parent)):l(f)})}}function Wi(t,e,n,r){const i=en;var s=t.filter(h=>!h.settled);if(n.length===0&&s.length===0){r(e.map(i));return}var o=y,l=zi(),f=s.length===1?s[0].promise:s.length>1?Promise.all(s.map(h=>h.promise)):null;function a(h){l();try{r(h)}catch(d){(o.f&nt)===0&&Ct(d,o)}Se()}if(n.length===0){f.then(()=>a(e.map(i)));return}var c=tr();function u(){Promise.all(n.map(h=>Yi(h))).then(h=>a([...e.map(i),...h])).catch(h=>Ct(h,o)).finally(()=>c())}f?f.then(()=>{l(),u(),Se()}):u()}function zi(){var t=y,e=x,n=B,r=T;return function(s=!0){gt(t),Z(e),te(n),s&&(t.f&nt)===0&&(r?.activate(),r?.apply())}}function Se(t=!0){gt(null),Z(null),te(null),t&&T?.deactivate()}function tr(){var t=y,e=t.b,n=T,r=e.is_rendered();return e.update_pending_count(1,n),n.increment(r,t),(i=!1)=>{e.update_pending_count(-1,n),n.decrement(r,t,i)}}function en(t){var e=N|D,n=x!==null&&(x.f&N)!==0?x:null;return y!==null&&(y.f|=Ft),{ctx:B,deps:null,effects:null,equals:Vn,f:e,fn:t,reactions:null,rv:0,v:M,wv:0,parent:n??y,ac:null}}function Yi(t,e,n){let r=y;r===null&&wi();var i=void 0,s=ue(M),o=!x,l=new Map;return rs(()=>{var f=y,a=Dn();i=a.promise;try{Promise.resolve(t()).then(a.resolve,a.reject).finally(Se)}catch(d){a.reject(d),Se()}var c=T;if(o){if((f.f&St)!==0)var u=tr();if(r.b.is_rendered())l.get(c)?.reject(bt),l.delete(c);else{for(const d of l.values())d.reject(bt);l.clear()}l.set(c,a)}const h=(d,v=void 0)=>{if(u){var p=v===bt;u(p)}if(!(v===bt||(f.f&nt)!==0)){if(c.activate(),v)s.f|=Ot,Oe(s,v);else{(s.f&Ot)!==0&&(s.f^=Ot),Oe(s,d);for(const[_,g]of l){if(l.delete(_),_===c)break;g.reject(bt)}}c.deactivate()}};a.promise.then(h,d=>h(null,d||"unknown"))}),ar(()=>{for(const f of l.values())f.reject(bt)}),new Promise(f=>{function a(c){function u(){c===i?f(s):a(i)}c.then(u,u)}a(i)})}function nn(t){const e=en(t);return yr(e),e}function qi(t){var e=t.effects;if(e!==null){t.effects=null;for(var n=0;n<e.length;n+=1)W(e[n])}}function Ui(t){for(var e=t.parent;e!==null;){if((e.f&N)===0)return(e.f&nt)===0?e:null;e=e.parent}return null}function rn(t){var e,n=y;gt(Ui(t));try{t.f&=~jt,qi(t),e=Rr(t)}finally{gt(n)}return e}function er(t){var e=t.v,n=rn(t);if(!t.equals(n)&&(t.wv=$r(),(!T?.is_fork||t.deps===null)&&(t.v=n,T?.capture(t,e,!0),t.deps===null))){C(t,k);return}Nt||(rt!==null?(cn()||T?.is_fork)&&rt.set(t,n):Je(t))}function Xi(t){if(t.effects!==null)for(const e of t.effects)(e.teardown||e.ac)&&(e.teardown?.(),e.ac?.abort(bt),e.teardown=di,e.ac=null,_e(e,0),dn(e))}function nr(t){if(t.effects!==null)for(const e of t.effects)e.teardown&&ne(e)}let sn=new Set;const Lt=new Map;let rr=!1;function ue(t,e){var n={f:0,v:t,reactions:null,equals:Vn,rv:0,wv:0};return n}function it(t,e){const n=ue(t);return yr(n),n}function Gi(t,e=!1,n=!0){const r=ue(t);return e||(r.equals=Ni),r}function H(t,e,n=!1){x!==null&&(!lt||(x.f&jn)!==0)&&Wn()&&(x.f&(N|At|Ke|jn))!==0&&(Q===null||!Xt.call(Q,t))&&Ti();let r=n?de(e):e;return Oe(t,r,Ae)}function Oe(t,e,n=null){if(!t.equals(e)){var r=t.v;Nt?Lt.set(t,e):Lt.set(t,r),t.v=e;var i=xt.ensure();if(i.capture(t,r),(t.f&N)!==0){const s=t;(t.f&D)!==0&&rn(s),rt===null&&Je(s)}t.wv=$r(),ir(t,D,n),y!==null&&(y.f&k)!==0&&(y.f&(ht|Tt))===0&&(tt===null?os([t]):tt.push(t)),!i.is_fork&&sn.size>0&&!rr&&Ki()}return e}function Ki(){rr=!1;for(const t of sn)(t.f&k)!==0&&C(t,dt),pe(t)&&ne(t);sn.clear()}function he(t){H(t,t.v+1)}function ir(t,e,n){var r=t.reactions;if(r!==null)for(var i=r.length,s=0;s<i;s++){var o=r[s],l=o.f,f=(l&D)===0;if(f&&C(o,e),(l&N)!==0){var a=o;rt?.delete(a),(l&jt)===0&&(l&J&&(o.f|=jt),ir(a,dt,n))}else if(f){var c=o;(l&At)!==0&&$t!==null&&$t.add(c),n!==null?n.push(c):tn(c)}}}function de(t){if(typeof t!="object"||t===null||Ee in t)return t;const e=hi(t);if(e!==ci&&e!==ui)return t;var n=new Map,r=li(t),i=it(0),s=Ht,o=l=>{if(Ht===s)return l();var f=x,a=Ht;Z(null),xr(s);var c=l();return Z(f),xr(a),c};return r&&n.set("length",it(t.length)),new Proxy(t,{defineProperty(l,f,a){(!("value"in a)||a.configurable===!1||a.enumerable===!1||a.writable===!1)&&Ri();var c=n.get(f);return c===void 0?o(()=>{var u=it(a.value);return n.set(f,u),u}):H(c,a.value,!0),!0},deleteProperty(l,f){var a=n.get(f);if(a===void 0){if(f in l){const c=o(()=>it(M));n.set(f,c),he(i)}}else H(a,M),he(i);return!0},get(l,f,a){if(f===Ee)return t;var c=n.get(f),u=f in l;if(c===void 0&&(!u||Gt(l,f)?.writable)&&(c=o(()=>{var d=de(u?l[f]:M),v=it(d);return v}),n.set(f,c)),c!==void 0){var h=w(c);return h===M?void 0:h}return Reflect.get(l,f,a)},getOwnPropertyDescriptor(l,f){var a=Reflect.getOwnPropertyDescriptor(l,f);if(a&&"value"in a){var c=n.get(f);c&&(a.value=w(c))}else if(a===void 0){var u=n.get(f),h=u?.v;if(u!==void 0&&h!==M)return{enumerable:!0,configurable:!0,value:h,writable:!0}}return a},has(l,f){if(f===Ee)return!0;var a=n.get(f),c=a!==void 0&&a.v!==M||Reflect.has(l,f);if(a!==void 0||y!==null&&(!c||Gt(l,f)?.writable)){a===void 0&&(a=o(()=>{var h=c?de(l[f]):M,d=it(h);return d}),n.set(f,a));var u=w(a);if(u===M)return!1}return c},set(l,f,a,c){var u=n.get(f),h=f in l;if(r&&f==="length")for(var d=a;d<u.v;d+=1){var v=n.get(d+"");v!==void 0?H(v,M):d in l&&(v=o(()=>it(M)),n.set(d+"",v))}if(u===void 0)(!h||Gt(l,f)?.writable)&&(u=o(()=>it(void 0)),H(u,de(a)),n.set(f,u));else{h=u.v!==M;var p=o(()=>de(a));H(u,p)}var _=Reflect.getOwnPropertyDescriptor(l,f);if(_?.set&&_.set.call(c,a),!h){if(r&&typeof f=="string"){var g=n.get("length"),$=Number(f);Number.isInteger($)&&$>=g.v&&H(g,$+1)}he(i)}return!0},ownKeys(l){w(i);var f=Reflect.ownKeys(l).filter(u=>{var h=n.get(u);return h===void 0||h.v!==M});for(var[a,c]of n)c.v!==M&&!(a in l)&&f.push(a);return f},setPrototypeOf(){Ai()}})}var sr,or,lr,fr;function on(){if(sr===void 0){sr=window,or=/Firefox/.test(navigator.userAgent);var t=Element.prototype,e=Node.prototype,n=Text.prototype;lr=Gt(e,"firstChild").get,fr=Gt(e,"nextSibling").get,Mn(t)&&(t.__click=void 0,t.__className=void 0,t.__attributes=null,t.__style=void 0,t.__e=void 0),Mn(n)&&(n.__t=void 0)}}function st(t=""){return document.createTextNode(t)}function ot(t){return lr.call(t)}function pt(t){return fr.call(t)}function Ce(t,e){if(!A)return ot(t);var n=ot(R);if(n===null)n=R.appendChild(st());else if(e&&n.nodeType!==le){var r=st();return n?.before(r),V(r),r}return e&&Le(n),V(n),n}function ln(t,e=!1){if(!A){var n=ot(t);return n instanceof Comment&&n.data===""?pt(n):n}if(e){if(R?.nodeType!==le){var r=st();return R?.before(r),V(r),r}Le(R)}return R}function fn(t,e=1,n=!1){let r=A?R:t;for(var i;e--;)i=r,r=pt(r);if(!A)return r;if(n){if(r?.nodeType!==le){var s=st();return r===null?i?.after(s):r.before(s),V(s),s}Le(r)}return V(r),r}function Ji(t){t.textContent=""}function Zi(){return!1}function ke(t,e,n){return document.createElementNS(e??ri,t,void 0)}function Le(t){if(t.nodeValue.length<65536)return;let e=t.nextSibling;for(;e!==null&&e.nodeType===le;)e.remove(),t.nodeValue+=e.nodeValue,e=t.nextSibling}function an(t){var e=x,n=y;Z(null),gt(null);try{return t()}finally{Z(e),gt(n)}}function Qi(t){y===null&&(x===null&&xi(),bi()),Nt&&yi()}function ts(t,e){var n=e.last;n===null?e.last=e.first=t:(n.next=t,t.prev=n,e.last=t)}function _t(t,e){var n=y;n!==null&&(n.f&vt)!==0&&(t|=vt);var r={ctx:B,deps:null,nodes:null,f:t|D|J,first:null,fn:e,last:null,next:null,parent:n,b:n&&n.b,prev:null,teardown:null,wv:0,ac:null},i=r;if((t&Kt)!==0)ee!==null?ee.push(r):xt.ensure().schedule(r);else if(e!==null){try{ne(r)}catch(o){throw W(r),o}i.deps===null&&i.teardown===null&&i.nodes===null&&i.first===i.last&&(i.f&Ft)===0&&(i=i.first,(t&At)!==0&&(t&Jt)!==0&&i!==null&&(i.f|=Jt))}if(i!==null&&(i.parent=n,n!==null&&ts(i,n),x!==null&&(x.f&N)!==0&&(t&Tt)===0)){var s=x;(s.effects??=[]).push(i)}return r}function cn(){return x!==null&&!lt}function ar(t){const e=_t($e,null);return C(e,k),e.teardown=t,e}function un(t){Qi();var e=y.f,n=!x&&(e&ht)!==0&&(e&St)===0;if(n){var r=B;(r.e??=[]).push(t)}else return cr(t)}function cr(t){return _t(Kt|_i,t)}function es(t){xt.ensure();const e=_t(Tt|Ft,t);return()=>{W(e)}}function ns(t){xt.ensure();const e=_t(Tt|Ft,t);return(n={})=>new Promise(r=>{n.outro?ve(e,()=>{W(e),r(void 0)}):(W(e),r(void 0))})}function ur(t){return _t(Kt,t)}function rs(t){return _t(Ke|Ft,t)}function hn(t,e=0){return _t($e|e,t)}function Ne(t,e=[],n=[],r=[]){Wi(r,e,n,i=>{_t($e,()=>t(...i.map(w)))})}function hr(t,e=0){var n=_t(At|e,t);return n}function Et(t){return _t(ht|Ft,t)}function dr(t){var e=t.teardown;if(e!==null){const n=Nt,r=x;wr(!0),Z(null);try{e.call(null)}finally{wr(n),Z(r)}}}function dn(t,e=!1){var n=t.first;for(t.first=t.last=null;n!==null;){const i=n.ac;i!==null&&an(()=>{i.abort(bt)});var r=n.next;(n.f&Tt)!==0?n.parent=null:W(n,e),n=r}}function is(t){for(var e=t.first;e!==null;){var n=e.next;(e.f&ht)===0&&W(e),e=n}}function W(t,e=!0){var n=!1;(e||(t.f&pi)!==0)&&t.nodes!==null&&t.nodes.end!==null&&(vr(t.nodes.start,t.nodes.end),n=!0),C(t,Xe),dn(t,e&&!n),_e(t,0);var r=t.nodes&&t.nodes.t;if(r!==null)for(const s of r)s.stop();dr(t),t.f^=Xe,t.f|=nt;var i=t.parent;i!==null&&i.first!==null&&pr(t),t.next=t.prev=t.teardown=t.ctx=t.deps=t.fn=t.nodes=t.ac=t.b=null}function vr(t,e){for(;t!==null;){var n=t===e?null:pt(t);t.remove(),t=n}}function pr(t){var e=t.parent,n=t.prev,r=t.next;n!==null&&(n.next=r),r!==null&&(r.prev=n),e!==null&&(e.first===t&&(e.first=r),e.last===t&&(e.last=n))}function ve(t,e,n=!0){var r=[];_r(t,r,!0);var i=()=>{n&&W(t),e&&e()},s=r.length;if(s>0){var o=()=>--s||i();for(var l of r)l.out(o)}else i()}function _r(t,e,n){if((t.f&vt)===0){t.f^=vt;var r=t.nodes&&t.nodes.t;if(r!==null)for(const l of r)(l.is_global||n)&&e.push(l);for(var i=t.first;i!==null;){var s=i.next,o=(i.f&Jt)!==0||(i.f&ht)!==0&&(t.f&At)!==0;_r(i,e,o?n:!1),i=s}}}function ss(t){gr(t,!0)}function gr(t,e){if((t.f&vt)!==0){t.f^=vt,(t.f&k)===0&&(C(t,D),xt.ensure().schedule(t));for(var n=t.first;n!==null;){var r=n.next,i=(n.f&Jt)!==0||(n.f&ht)!==0;gr(n,i?e:!1),n=r}var s=t.nodes&&t.nodes.t;if(s!==null)for(const o of s)(o.is_global||e)&&o.in()}}function mr(t,e){if(t.nodes)for(var n=t.nodes.start,r=t.nodes.end;n!==null;){var i=n===r?null:pt(n);e.append(n),n=i}}let Pe=!1,Nt=!1;function wr(t){Nt=t}let x=null,lt=!1;function Z(t){x=t}let y=null;function gt(t){y=t}let Q=null;function yr(t){x!==null&&(Q===null?Q=[t]:Q.push(t))}let z=null,U=0,tt=null;function os(t){tt=t}let br=1,Bt=0,Ht=Bt;function xr(t){Ht=t}function $r(){return++br}function pe(t){var e=t.f;if((e&D)!==0)return!0;if(e&N&&(t.f&=~jt),(e&dt)!==0){for(var n=t.deps,r=n.length,i=0;i<r;i++){var s=n[i];if(pe(s)&&er(s),s.wv>t.wv)return!0}(e&J)!==0&&rt===null&&C(t,k)}return!1}function Er(t,e,n=!0){var r=t.reactions;if(r!==null&&!(Q!==null&&Xt.call(Q,t)))for(var i=0;i<r.length;i++){var s=r[i];(s.f&N)!==0?Er(s,e,!1):e===s&&(n?C(s,D):(s.f&k)!==0&&C(s,dt),tn(s))}}function Rr(t){var e=z,n=U,r=tt,i=x,s=Q,o=B,l=lt,f=Ht,a=t.f;z=null,U=0,tt=null,x=(a&(ht|Tt))===0?t:null,Q=null,te(t.ctx),lt=!1,Ht=++Bt,t.ac!==null&&(an(()=>{t.ac.abort(bt)}),t.ac=null);try{t.f|=Ge;var c=t.fn,u=c();t.f|=St;var h=t.deps,d=T?.is_fork;if(z!==null){var v;if(d||_e(t,U),h!==null&&U>0)for(h.length=U+z.length,v=0;v<z.length;v++)h[U+v]=z[v];else t.deps=h=z;if(cn()&&(t.f&J)!==0)for(v=U;v<h.length;v++)(h[v].reactions??=[]).push(t)}else!d&&h!==null&&U<h.length&&(_e(t,U),h.length=U);if(Wn()&&tt!==null&&!lt&&h!==null&&(t.f&(N|dt|D))===0)for(v=0;v<tt.length;v++)Er(tt[v],t);if(i!==null&&i!==t){if(Bt++,i.deps!==null)for(let p=0;p<n;p+=1)i.deps[p].rv=Bt;if(e!==null)for(const p of e)p.rv=Bt;tt!==null&&(r===null?r=tt:r.push(...tt))}return(t.f&Ot)!==0&&(t.f^=Ot),u}catch(p){return Yn(p)}finally{t.f^=Ge,z=e,U=n,tt=r,x=i,Q=s,te(o),lt=l,Ht=f}}function ls(t,e){let n=e.reactions;if(n!==null){var r=fi.call(n,t);if(r!==-1){var i=n.length-1;i===0?n=e.reactions=null:(n[r]=n[i],n.pop())}}if(n===null&&(e.f&N)!==0&&(z===null||!Xt.call(z,e))){var s=e;(s.f&J)!==0&&(s.f^=J,s.f&=~jt),Je(s),Xi(s),_e(s,0)}}function _e(t,e){var n=t.deps;if(n!==null)for(var r=e;r<n.length;r++)ls(t,n[r])}function ne(t){var e=t.f;if((e&nt)===0){C(t,k);var n=y,r=Pe;y=t,Pe=!0;try{(e&(At|Fn))!==0?is(t):dn(t),dr(t);var i=Rr(t);t.teardown=typeof i=="function"?i:null,t.wv=br;var s;oi&&Pi&&(t.f&D)!==0&&t.deps}finally{Pe=r,y=n}}}function w(t){var e=t.f,n=(e&N)!==0;if(x!==null&&!lt){var r=y!==null&&(y.f&nt)!==0;if(!r&&(Q===null||!Xt.call(Q,t))){var i=x.deps;if((x.f&Ge)!==0)t.rv<Bt&&(t.rv=Bt,z===null&&i!==null&&i[U]===t?U++:z===null?z=[t]:z.push(t));else{(x.deps??=[]).push(t);var s=t.reactions;s===null?t.reactions=[x]:Xt.call(s,x)||s.push(x)}}}if(Nt&&Lt.has(t))return Lt.get(t);if(n){var o=t;if(Nt){var l=o.v;return((o.f&k)===0&&o.reactions!==null||Tr(o))&&(l=rn(o)),Lt.set(o,l),l}var f=(o.f&J)===0&&!lt&&x!==null&&(Pe||(x.f&J)!==0),a=(o.f&St)===0;pe(o)&&(f&&(o.f|=J),er(o)),f&&!a&&(nr(o),Ar(o))}if(rt?.has(t))return rt.get(t);if((t.f&Ot)!==0)throw t.v;return t.v}function Ar(t){if(t.f|=J,t.deps!==null)for(const e of t.deps)(e.reactions??=[]).push(t),(e.f&N)!==0&&(e.f&J)===0&&(nr(e),Ar(e))}function Tr(t){if(t.v===M)return!0;if(t.deps===null)return!1;for(const e of t.deps)if(Lt.has(e)||(e.f&N)!==0&&Tr(e))return!0;return!1}function vn(t){var e=lt;try{return lt=!0,t()}finally{lt=e}}const Me=Symbol("events"),fs=new Set,Sr=new Set;function as(t,e,n,r={}){function i(s){if(r.capture||pn.call(e,s),!s.cancelBubble)return an(()=>n?.call(this,s))}return t.startsWith("pointer")||t.startsWith("touch")||t==="wheel"?Vt(()=>{e.addEventListener(t,i,r)}):e.addEventListener(t,i,r),i}function De(t,e,n,r,i){var s={capture:r,passive:i},o=as(t,e,n,s);(e===document.body||e===window||e===document||e instanceof HTMLMediaElement)&&ar(()=>{e.removeEventListener(t,o,s)})}let Or=null;function pn(t){var e=this,n=e.ownerDocument,r=t.type,i=t.composedPath?.()||[],s=i[0]||t.target;Or=t;var o=0,l=Or===t&&t[Me];if(l){var f=i.indexOf(l);if(f!==-1&&(e===document||e===window)){t[Me]=e;return}var a=i.indexOf(e);if(a===-1)return;f<=a&&(o=f)}if(s=i[o]||t.target,s!==e){xe(t,"currentTarget",{configurable:!0,get(){return s||n}});var c=x,u=y;Z(null),gt(null);try{for(var h,d=[];s!==null;){var v=s.assignedSlot||s.parentNode||s.host||null;try{var p=s[Me]?.[r];p!=null&&(!s.disabled||t.target===s)&&p.call(s,t)}catch(_){h?d.push(_):h=_}if(t.cancelBubble||v===e||v===null)break;s=v}if(h){for(let _ of d)queueMicrotask(()=>{throw _});throw h}}finally{t[Me]=e,delete t.currentTarget,Z(c),gt(u)}}}const cs=globalThis?.window?.trustedTypes&&globalThis.window.trustedTypes.createPolicy("svelte-trusted-html",{createHTML:t=>t});function us(t){return cs?.createHTML(t)??t}function hs(t){var e=ke("template");return e.innerHTML=us(t.replaceAll("<!>","<!---->")),e.content}function ft(t,e){var n=y;n.nodes===null&&(n.nodes={start:t,end:e,a:null,t:null})}function _n(t,e){var n=(e&ei)!==0,r=(e&ni)!==0,i,s=!t.startsWith("<!>");return()=>{if(A)return ft(R,null),R;i===void 0&&(i=hs(s?t:"<!>"+t),n||(i=ot(i)));var o=r||or?document.importNode(i,!0):i.cloneNode(!0);if(n){var l=ot(o),f=o.lastChild;ft(l,f)}else ft(o,o);return o}}function Cr(t=""){if(!A){var e=st(t+"");return ft(e,e),e}var n=R;return n.nodeType!==le?(n.before(n=st()),V(n)):Le(n),ft(n,n),n}function ds(){if(A)return ft(R,null),R;var t=document.createDocumentFragment(),e=document.createComment(""),n=st();return t.append(e,n),ft(e,n),t}function Wt(t,e){if(A){var n=y;((n.f&St)===0||n.nodes.end===null)&&(n.nodes.end=R),Qt();return}t!==null&&t.before(e)}const vs=["touchstart","touchmove"];function ps(t){return vs.includes(t)}function gn(t,e){var n=e==null?"":typeof e=="object"?`${e}`:e;n!==(t.__t??=t.nodeValue)&&(t.__t=n,t.nodeValue=`${n}`)}function kr(t,e){return Lr(t,e)}function _s(t,e){on(),e.intro=e.intro??!1;const n=e.target,r=A,i=R;try{for(var s=ot(n);s&&(s.nodeType!==fe||s.data!==kn);)s=pt(s);if(!s)throw Dt;Zt(!0),V(s);const o=Lr(t,{...e,anchor:s});return Zt(!1),o}catch(o){if(o instanceof Error&&o.message.split(`
|
|
2
|
+
`).some(l=>l.startsWith("https://svelte.dev/e/")))throw o;return o!==Dt&&console.warn("Failed to hydrate: ",o),e.recover===!1&&Ei(),on(),Ji(n),Zt(!1),kr(t,e)}finally{Zt(r),V(i)}}const Fe=new Map;function Lr(t,{target:e,anchor:n,props:r={},events:i,context:s,intro:o=!0,transformError:l}){on();var f=void 0,a=ns(()=>{var c=n??e.appendChild(st());Bi(c,{pending:()=>{}},d=>{Bn({});var v=B;if(s&&(v.c=s),i&&(r.$$events=i),A&&ft(d,null),f=t(d,r)||{},A&&(y.nodes.end=R,R===null||R.nodeType!==fe||R.data!==Pn))throw ae(),Dt;Hn()},l);var u=new Set,h=d=>{for(var v=0;v<d.length;v++){var p=d[v];if(!u.has(p)){u.add(p);var _=ps(p);for(const b of[e,document]){var g=Fe.get(b);g===void 0&&(g=new Map,Fe.set(b,g));var $=g.get(p);$===void 0?(b.addEventListener(p,pn,{passive:_}),g.set(p,1)):g.set(p,$+1)}}}};return h(ai(fs)),Sr.add(h),()=>{for(var d of u)for(const _ of[e,document]){var v=Fe.get(_),p=v.get(d);--p==0?(_.removeEventListener(d,pn),v.delete(d),v.size===0&&Fe.delete(_)):v.set(d,p)}Sr.delete(h),c!==n&&c.parentNode?.removeChild(c)}});return mn.set(f,a),f}let mn=new WeakMap;function gs(t,e){const n=mn.get(t);return n?(mn.delete(t),n(e)):Promise.resolve()}class ms{anchor;#t=new Map;#n=new Map;#e=new Map;#i=new Set;#s=!0;constructor(e,n=!0){this.anchor=e,this.#s=n}#r=e=>{if(this.#t.has(e)){var n=this.#t.get(e),r=this.#n.get(n);if(r)ss(r),this.#i.delete(n);else{var i=this.#e.get(n);i&&(this.#n.set(n,i.effect),this.#e.delete(n),i.fragment.lastChild.remove(),this.anchor.before(i.fragment),r=i.effect)}for(const[s,o]of this.#t){if(this.#t.delete(s),s===e)break;const l=this.#e.get(o);l&&(W(l.effect),this.#e.delete(o))}for(const[s,o]of this.#n){if(s===n||this.#i.has(s))continue;const l=()=>{if(Array.from(this.#t.values()).includes(s)){var a=document.createDocumentFragment();mr(o,a),a.append(st()),this.#e.set(s,{effect:o,fragment:a})}else W(o);this.#i.delete(s),this.#n.delete(s)};this.#s||!r?(this.#i.add(s),ve(o,l,!1)):l()}}};#o=e=>{this.#t.delete(e);const n=Array.from(this.#t.values());for(const[r,i]of this.#e)n.includes(r)||(W(i.effect),this.#e.delete(r))};ensure(e,n){var r=T,i=Zi();if(n&&!this.#n.has(e)&&!this.#e.has(e))if(i){var s=document.createDocumentFragment(),o=st();s.append(o),this.#e.set(e,{effect:Et(()=>n(o)),fragment:s})}else this.#n.set(e,Et(()=>n(this.anchor)));if(this.#t.set(r,e),i){for(const[l,f]of this.#n)l===e?r.unskip_effect(f):r.skip_effect(f);for(const[l,f]of this.#e)l===e?r.unskip_effect(f.effect):r.skip_effect(f.effect);r.oncommit(this.#r),r.ondiscard(this.#o)}else A&&(this.anchor=R),this.#r(r)}}function ws(t){B===null&&mi(),un(()=>{const e=vn(t);if(typeof e=="function")return e})}function Nr(t,e,n=!1){var r;A&&(r=R,Qt());var i=new ms(t),s=n?Jt:0;function o(l,f){if(A){var a=ki(r);if(l!==parseInt(a.substring(1))){var c=In();V(c),i.anchor=c,Zt(!1),i.ensure(l,f),Zt(!0);return}}i.ensure(l,f)}hr(()=>{var l=!1;e((f,a=0)=>{l=!0,o(a,f)}),l||o(-1,null)},s)}function ys(t,e,n=!1,r=!1,i=!1,s=!1){var o=t,l="";if(n){var f=t;A&&(o=V(ot(f)))}Ne(()=>{var a=y;if(l===(l=e()??"")){A&&Qt();return}if(n&&!A){a.nodes=null,f.innerHTML=l,l!==""&&ft(ot(f),f.lastChild);return}if(a.nodes!==null&&(vr(a.nodes.start,a.nodes.end),a.nodes=null),l!==""){if(A){R.data;for(var c=Qt(),u=c;c!==null&&(c.nodeType!==fe||c.data!=="");)u=c,c=pt(c);if(c===null)throw ae(),Dt;ft(R,u),o=V(c);return}var h=r?ii:i?si:void 0,d=ke(r?"svg":i?"math":"template",h);d.innerHTML=l;var v=r||i?d:d.content;if(ft(ot(v),v.lastChild),r||i)for(;ot(v);)o.before(ot(v));else o.before(v)}})}function bs(t,e,n,r,i){A&&Qt();var s=e.$$slots?.[n],o=!1;s===!0&&(s=e.children,o=!0),s===void 0?i!==null&&i(t):s(t,o?()=>r:r)}function xs(t,e){ur(()=>{var n=t.getRootNode(),r=n.host?n:n.head??n.ownerDocument.head;if(!r.querySelector("#"+e.hash)){const i=ke("style");i.id=e.hash,i.textContent=e.code,r.appendChild(i)}})}function $s(t,e){return t==null?null:String(t)}function Es(t,e,n,r){var i=t.__style;if(A||i!==e){var s=$s(e);(!A||s!==t.getAttribute("style"))&&(s==null?t.removeAttribute("style"):t.style.cssText=s),t.__style=e}return r}function Pr(t,e){return t===e||t?.[Ee]===e}function Mr(t={},e,n,r){var i=B.r,s=y;return ur(()=>{var o,l;return hn(()=>{o=l,l=[],vn(()=>{t!==n(...l)&&(e(t,...l),o&&Pr(n(...o),t)&&e(null,...o))})}),()=>{let f=s;for(;f!==i&&f.parent!==null&&f.parent.f&Xe;)f=f.parent;const a=()=>{l&&Pr(n(...l),t)&&e(null,...l)},c=f.teardown;f.teardown=()=>{a(),c?.()}}}),t}function wn(t,e,n,r){var i=r,s=!0,o=()=>(s&&(s=!1,i=r),i),l;l=t[e],l===void 0&&r!==void 0&&(l=o());var f;f=()=>{var h=t[e];return h===void 0?o():(s=!0,h)};var a=!1,c=en(()=>(a=!1,f())),u=y;return(function(h,d){if(arguments.length>0){const v=d?w(c):h;return H(c,v),a=!0,i!==void 0&&(i=v),h}return Nt&&a||(u.f&nt)!==0?c.v:w(c)})}function Rs(t){return new As(t)}class As{#t;#n;constructor(e){var n=new Map,r=(s,o)=>{var l=Gi(o,!1,!1);return n.set(s,l),l};const i=new Proxy({...e.props||{},$$events:{}},{get(s,o){return w(n.get(o)??r(o,Reflect.get(s,o)))},has(s,o){return o===gi?!0:(w(n.get(o)??r(o,Reflect.get(s,o))),Reflect.has(s,o))},set(s,o,l){return H(n.get(o)??r(o,l),l),Reflect.set(s,o,l)}});this.#n=(e.hydrate?_s:kr)(e.component,{target:e.target,anchor:e.anchor,props:i,context:e.context,intro:e.intro??!1,recover:e.recover,transformError:e.transformError}),(!e?.props?.$$host||e.sync===!1)&&Te(),this.#t=i.$$events;for(const s of Object.keys(this.#n))s==="$set"||s==="$destroy"||s==="$on"||xe(this,s,{get(){return this.#n[s]},set(o){this.#n[s]=o},enumerable:!0});this.#n.$set=s=>{Object.assign(i,s)},this.#n.$destroy=()=>{gs(this.#n)}}$set(e){this.#n.$set(e)}$on(e,n){this.#t[e]=this.#t[e]||[];const r=(...i)=>n.call(this,...i);return this.#t[e].push(r),()=>{this.#t[e]=this.#t[e].filter(i=>i!==r)}}$destroy(){this.#n.$destroy()}}let Dr;typeof HTMLElement=="function"&&(Dr=class extends HTMLElement{$$ctor;$$s;$$c;$$cn=!1;$$d={};$$r=!1;$$p_d={};$$l={};$$l_u=new Map;$$me;$$shadowRoot=null;constructor(t,e,n){super(),this.$$ctor=t,this.$$s=e,n&&(this.$$shadowRoot=this.attachShadow(n))}addEventListener(t,e,n){if(this.$$l[t]=this.$$l[t]||[],this.$$l[t].push(e),this.$$c){const r=this.$$c.$on(t,e);this.$$l_u.set(e,r)}super.addEventListener(t,e,n)}removeEventListener(t,e,n){if(super.removeEventListener(t,e,n),this.$$c){const r=this.$$l_u.get(e);r&&(r(),this.$$l_u.delete(e))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let t=function(r){return i=>{const s=ke("slot");r!=="default"&&(s.name=r),Wt(i,s)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const e={},n=Ts(this);for(const r of this.$$s)r in n&&(r==="default"&&!this.$$d.children?(this.$$d.children=t(r),e.default=!0):e[r]=t(r));for(const r of this.attributes){const i=this.$$g_p(r.name);i in this.$$d||(this.$$d[i]=je(i,r.value,this.$$p_d,"toProp"))}for(const r in this.$$p_d)!(r in this.$$d)&&this[r]!==void 0&&(this.$$d[r]=this[r],delete this[r]);this.$$c=Rs({component:this.$$ctor,target:this.$$shadowRoot||this,props:{...this.$$d,$$slots:e,$$host:this}}),this.$$me=es(()=>{hn(()=>{this.$$r=!0;for(const r of be(this.$$c)){if(!this.$$p_d[r]?.reflect)continue;this.$$d[r]=this.$$c[r];const i=je(r,this.$$d[r],this.$$p_d,"toAttribute");i==null?this.removeAttribute(this.$$p_d[r].attribute||r):this.setAttribute(this.$$p_d[r].attribute||r,i)}this.$$r=!1})});for(const r in this.$$l)for(const i of this.$$l[r]){const s=this.$$c.$on(r,i);this.$$l_u.set(i,s)}this.$$l={}}}attributeChangedCallback(t,e,n){this.$$r||(t=this.$$g_p(t),this.$$d[t]=je(t,n,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 be(this.$$p_d).find(e=>this.$$p_d[e].attribute===t||!this.$$p_d[e].attribute&&e.toLowerCase()===t)||t}});function je(t,e,n,r){const i=n[t]?.type;if(e=i==="Boolean"&&typeof e!="boolean"?e!=null:e,!r||!n[t])return e;if(r==="toAttribute")switch(i){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(i){case"Object":case"Array":return e&&JSON.parse(e);case"Boolean":return e;case"Number":return e!=null?+e:e;default:return e}}function Ts(t){const e={};return t.childNodes.forEach(n=>{e[n.slot||"default"]=!0}),e}function Ss(t,e,n,r,i,s){let o=class extends Dr{constructor(){super(t,n,i),this.$$p_d=e}static get observedAttributes(){return be(e).map(l=>(e[l].attribute||l).toLowerCase())}};return be(e).forEach(l=>{xe(o.prototype,l,{get(){return this.$$c&&l in this.$$c?this.$$c[l]:this.$$d[l]},set(f){f=je(l,f,e),this.$$d[l]=f;var a=this.$$c;if(a){var c=Gt(a,l)?.get;c?a[l]=f:a.$set({[l]:f})}}})}),r.forEach(l=>{xe(o.prototype,l,{get(){return this.$$c?.[l]}})}),t.element=o,o}const re=Math.min,zt=Math.max,Ie=Math.round,Ve=Math.floor,mt=t=>({x:t,y:t}),Os={left:"right",right:"left",bottom:"top",top:"bottom"};function yn(t,e,n){return zt(t,re(e,n))}function ge(t,e){return typeof t=="function"?t(e):t}function Yt(t){return t.split("-")[0]}function me(t){return t.split("-")[1]}function Fr(t){return t==="x"?"y":"x"}function bn(t){return t==="y"?"height":"width"}function Pt(t){const e=t[0];return e==="t"||e==="b"?"y":"x"}function xn(t){return Fr(Pt(t))}function Cs(t,e,n){n===void 0&&(n=!1);const r=me(t),i=xn(t),s=bn(i);let o=i==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return e.reference[s]>e.floating[s]&&(o=Be(o)),[o,Be(o)]}function ks(t){const e=Be(t);return[$n(t),e,$n(e)]}function $n(t){return t.includes("start")?t.replace("start","end"):t.replace("end","start")}const jr=["left","right"],Ir=["right","left"],Ls=["top","bottom"],Ns=["bottom","top"];function Ps(t,e,n){switch(t){case"top":case"bottom":return n?e?Ir:jr:e?jr:Ir;case"left":case"right":return e?Ls:Ns;default:return[]}}function Ms(t,e,n,r){const i=me(t);let s=Ps(Yt(t),n==="start",r);return i&&(s=s.map(o=>o+"-"+i),e&&(s=s.concat(s.map($n)))),s}function Be(t){const e=Yt(t);return Os[e]+t.slice(e.length)}function Ds(t){return{top:0,right:0,bottom:0,left:0,...t}}function Vr(t){return typeof t!="number"?Ds(t):{top:t,right:t,bottom:t,left:t}}function He(t){const{x:e,y:n,width:r,height:i}=t;return{width:r,height:i,top:n,left:e,right:e+r,bottom:n+i,x:e,y:n}}function Br(t,e,n){let{reference:r,floating:i}=t;const s=Pt(e),o=xn(e),l=bn(o),f=Yt(e),a=s==="y",c=r.x+r.width/2-i.width/2,u=r.y+r.height/2-i.height/2,h=r[l]/2-i[l]/2;let d;switch(f){case"top":d={x:c,y:r.y-i.height};break;case"bottom":d={x:c,y:r.y+r.height};break;case"right":d={x:r.x+r.width,y:u};break;case"left":d={x:r.x-i.width,y:u};break;default:d={x:r.x,y:r.y}}switch(me(e)){case"start":d[o]-=h*(n&&a?-1:1);break;case"end":d[o]+=h*(n&&a?-1:1);break}return d}async function Fs(t,e){var n;e===void 0&&(e={});const{x:r,y:i,platform:s,rects:o,elements:l,strategy:f}=t,{boundary:a="clippingAncestors",rootBoundary:c="viewport",elementContext:u="floating",altBoundary:h=!1,padding:d=0}=ge(e,t),v=Vr(d),_=l[h?u==="floating"?"reference":"floating":u],g=He(await s.getClippingRect({element:(n=await(s.isElement==null?void 0:s.isElement(_)))==null||n?_:_.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(l.floating)),boundary:a,rootBoundary:c,strategy:f})),$=u==="floating"?{x:r,y:i,width:o.floating.width,height:o.floating.height}:o.reference,b=await(s.getOffsetParent==null?void 0:s.getOffsetParent(l.floating)),S=await(s.isElement==null?void 0:s.isElement(b))?await(s.getScale==null?void 0:s.getScale(b))||{x:1,y:1}:{x:1,y:1},F=He(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:$,offsetParent:b,strategy:f}):$);return{top:(g.top-F.top+v.top)/S.y,bottom:(F.bottom-g.bottom+v.bottom)/S.y,left:(g.left-F.left+v.left)/S.x,right:(F.right-g.right+v.right)/S.x}}const js=50,Is=async(t,e,n)=>{const{placement:r="bottom",strategy:i="absolute",middleware:s=[],platform:o}=n,l=o.detectOverflow?o:{...o,detectOverflow:Fs},f=await(o.isRTL==null?void 0:o.isRTL(e));let a=await o.getElementRects({reference:t,floating:e,strategy:i}),{x:c,y:u}=Br(a,r,f),h=r,d=0;const v={};for(let p=0;p<s.length;p++){const _=s[p];if(!_)continue;const{name:g,fn:$}=_,{x:b,y:S,data:F,reset:L}=await $({x:c,y:u,initialPlacement:r,placement:h,strategy:i,middlewareData:v,rects:a,platform:l,elements:{reference:t,floating:e}});c=b??c,u=S??u,v[g]={...v[g],...F},L&&d<js&&(d++,typeof L=="object"&&(L.placement&&(h=L.placement),L.rects&&(a=L.rects===!0?await o.getElementRects({reference:t,floating:e,strategy:i}):L.rects),{x:c,y:u}=Br(a,h,f)),p=-1)}return{x:c,y:u,placement:h,strategy:i,middlewareData:v}},Vs=t=>({name:"arrow",options:t,async fn(e){const{x:n,y:r,placement:i,rects:s,platform:o,elements:l,middlewareData:f}=e,{element:a,padding:c=0}=ge(t,e)||{};if(a==null)return{};const u=Vr(c),h={x:n,y:r},d=xn(i),v=bn(d),p=await o.getDimensions(a),_=d==="y",g=_?"top":"left",$=_?"bottom":"right",b=_?"clientHeight":"clientWidth",S=s.reference[v]+s.reference[d]-h[d]-s.floating[v],F=h[d]-s.reference[d],L=await(o.getOffsetParent==null?void 0:o.getOffsetParent(a));let m=L?L[b]:0;(!m||!await(o.isElement==null?void 0:o.isElement(L)))&&(m=l.floating[b]||s.floating[v]);const O=S/2-F/2,Y=m/2-p[v]/2-1,j=re(u[g],Y),ut=re(u[$],Y),G=j,et=m-p[v]-ut,E=m/2-p[v]/2+O,P=yn(G,E,et),I=!f.arrow&&me(i)!=null&&E!==P&&s.reference[v]/2-(E<G?j:ut)-p[v]/2<0,K=I?E<G?E-G:E-et:0;return{[d]:h[d]+K,data:{[d]:P,centerOffset:E-P-K,...I&&{alignmentOffset:K}},reset:I}}}),Bs=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(e){var n,r;const{placement:i,middlewareData:s,rects:o,initialPlacement:l,platform:f,elements:a}=e,{mainAxis:c=!0,crossAxis:u=!0,fallbackPlacements:h,fallbackStrategy:d="bestFit",fallbackAxisSideDirection:v="none",flipAlignment:p=!0,..._}=ge(t,e);if((n=s.arrow)!=null&&n.alignmentOffset)return{};const g=Yt(i),$=Pt(l),b=Yt(l)===l,S=await(f.isRTL==null?void 0:f.isRTL(a.floating)),F=h||(b||!p?[Be(l)]:ks(l)),L=v!=="none";!h&&L&&F.push(...Ms(l,p,v,S));const m=[l,...F],O=await f.detectOverflow(e,_),Y=[];let j=((r=s.flip)==null?void 0:r.overflows)||[];if(c&&Y.push(O[g]),u){const E=Cs(i,o,S);Y.push(O[E[0]],O[E[1]])}if(j=[...j,{placement:i,overflows:Y}],!Y.every(E=>E<=0)){var ut,G;const E=(((ut=s.flip)==null?void 0:ut.index)||0)+1,P=m[E];if(P&&(!(u==="alignment"?$!==Pt(P):!1)||j.every(q=>Pt(q.placement)===$?q.overflows[0]>0:!0)))return{data:{index:E,overflows:j},reset:{placement:P}};let I=(G=j.filter(K=>K.overflows[0]<=0).sort((K,q)=>K.overflows[1]-q.overflows[1])[0])==null?void 0:G.placement;if(!I)switch(d){case"bestFit":{var et;const K=(et=j.filter(q=>{if(L){const yt=Pt(q.placement);return yt===$||yt==="y"}return!0}).map(q=>[q.placement,q.overflows.filter(yt=>yt>0).reduce((yt,xo)=>yt+xo,0)]).sort((q,yt)=>q[1]-yt[1])[0])==null?void 0:et[0];K&&(I=K);break}case"initialPlacement":I=l;break}if(i!==I)return{reset:{placement:I}}}return{}}}},Hs=new Set(["left","top"]);async function Ws(t,e){const{placement:n,platform:r,elements:i}=t,s=await(r.isRTL==null?void 0:r.isRTL(i.floating)),o=Yt(n),l=me(n),f=Pt(n)==="y",a=Hs.has(o)?-1:1,c=s&&f?-1:1,u=ge(e,t);let{mainAxis:h,crossAxis:d,alignmentAxis:v}=typeof u=="number"?{mainAxis:u,crossAxis:0,alignmentAxis:null}:{mainAxis:u.mainAxis||0,crossAxis:u.crossAxis||0,alignmentAxis:u.alignmentAxis};return l&&typeof v=="number"&&(d=l==="end"?v*-1:v),f?{x:d*c,y:h*a}:{x:h*a,y:d*c}}const zs=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(e){var n,r;const{x:i,y:s,placement:o,middlewareData:l}=e,f=await Ws(e,t);return o===((n=l.offset)==null?void 0:n.placement)&&(r=l.arrow)!=null&&r.alignmentOffset?{}:{x:i+f.x,y:s+f.y,data:{...f,placement:o}}}}},Ys=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){const{x:n,y:r,placement:i,platform:s}=e,{mainAxis:o=!0,crossAxis:l=!1,limiter:f={fn:g=>{let{x:$,y:b}=g;return{x:$,y:b}}},...a}=ge(t,e),c={x:n,y:r},u=await s.detectOverflow(e,a),h=Pt(Yt(i)),d=Fr(h);let v=c[d],p=c[h];if(o){const g=d==="y"?"top":"left",$=d==="y"?"bottom":"right",b=v+u[g],S=v-u[$];v=yn(b,v,S)}if(l){const g=h==="y"?"top":"left",$=h==="y"?"bottom":"right",b=p+u[g],S=p-u[$];p=yn(b,p,S)}const _=f.fn({...e,[d]:v,[h]:p});return{..._,data:{x:_.x-n,y:_.y-r,enabled:{[d]:o,[h]:l}}}}}};function We(){return typeof window<"u"}function ie(t){return Hr(t)?(t.nodeName||"").toLowerCase():"#document"}function X(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function wt(t){var e;return(e=(Hr(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function Hr(t){return We()?t instanceof Node||t instanceof X(t).Node:!1}function at(t){return We()?t instanceof Element||t instanceof X(t).Element:!1}function Rt(t){return We()?t instanceof HTMLElement||t instanceof X(t).HTMLElement:!1}function Wr(t){return!We()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof X(t).ShadowRoot}function we(t){const{overflow:e,overflowX:n,overflowY:r,display:i}=ct(t);return/auto|scroll|overlay|hidden|clip/.test(e+r+n)&&i!=="inline"&&i!=="contents"}function qs(t){return/^(table|td|th)$/.test(ie(t))}function ze(t){try{if(t.matches(":popover-open"))return!0}catch{}try{return t.matches(":modal")}catch{return!1}}const Us=/transform|translate|scale|rotate|perspective|filter/,Xs=/paint|layout|strict|content/,qt=t=>!!t&&t!=="none";let En;function Rn(t){const e=at(t)?ct(t):t;return qt(e.transform)||qt(e.translate)||qt(e.scale)||qt(e.rotate)||qt(e.perspective)||!An()&&(qt(e.backdropFilter)||qt(e.filter))||Us.test(e.willChange||"")||Xs.test(e.contain||"")}function Gs(t){let e=Mt(t);for(;Rt(e)&&!se(e);){if(Rn(e))return e;if(ze(e))return null;e=Mt(e)}return null}function An(){return En==null&&(En=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),En}function se(t){return/^(html|body|#document)$/.test(ie(t))}function ct(t){return X(t).getComputedStyle(t)}function Ye(t){return at(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function Mt(t){if(ie(t)==="html")return t;const e=t.assignedSlot||t.parentNode||Wr(t)&&t.host||wt(t);return Wr(e)?e.host:e}function zr(t){const e=Mt(t);return se(e)?t.ownerDocument?t.ownerDocument.body:t.body:Rt(e)&&we(e)?e:zr(e)}function ye(t,e,n){var r;e===void 0&&(e=[]),n===void 0&&(n=!0);const i=zr(t),s=i===((r=t.ownerDocument)==null?void 0:r.body),o=X(i);if(s){const l=Tn(o);return e.concat(o,o.visualViewport||[],we(i)?i:[],l&&n?ye(l):[])}else return e.concat(i,ye(i,[],n))}function Tn(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function Yr(t){const e=ct(t);let n=parseFloat(e.width)||0,r=parseFloat(e.height)||0;const i=Rt(t),s=i?t.offsetWidth:n,o=i?t.offsetHeight:r,l=Ie(n)!==s||Ie(r)!==o;return l&&(n=s,r=o),{width:n,height:r,$:l}}function Sn(t){return at(t)?t:t.contextElement}function oe(t){const e=Sn(t);if(!Rt(e))return mt(1);const n=e.getBoundingClientRect(),{width:r,height:i,$:s}=Yr(e);let o=(s?Ie(n.width):n.width)/r,l=(s?Ie(n.height):n.height)/i;return(!o||!Number.isFinite(o))&&(o=1),(!l||!Number.isFinite(l))&&(l=1),{x:o,y:l}}const Ks=mt(0);function qr(t){const e=X(t);return!An()||!e.visualViewport?Ks:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function Js(t,e,n){return e===void 0&&(e=!1),!n||e&&n!==X(t)?!1:e}function Ut(t,e,n,r){e===void 0&&(e=!1),n===void 0&&(n=!1);const i=t.getBoundingClientRect(),s=Sn(t);let o=mt(1);e&&(r?at(r)&&(o=oe(r)):o=oe(t));const l=Js(s,n,r)?qr(s):mt(0);let f=(i.left+l.x)/o.x,a=(i.top+l.y)/o.y,c=i.width/o.x,u=i.height/o.y;if(s){const h=X(s),d=r&&at(r)?X(r):r;let v=h,p=Tn(v);for(;p&&r&&d!==v;){const _=oe(p),g=p.getBoundingClientRect(),$=ct(p),b=g.left+(p.clientLeft+parseFloat($.paddingLeft))*_.x,S=g.top+(p.clientTop+parseFloat($.paddingTop))*_.y;f*=_.x,a*=_.y,c*=_.x,u*=_.y,f+=b,a+=S,v=X(p),p=Tn(v)}}return He({width:c,height:u,x:f,y:a})}function qe(t,e){const n=Ye(t).scrollLeft;return e?e.left+n:Ut(wt(t)).left+n}function Ur(t,e){const n=t.getBoundingClientRect(),r=n.left+e.scrollLeft-qe(t,n),i=n.top+e.scrollTop;return{x:r,y:i}}function Zs(t){let{elements:e,rect:n,offsetParent:r,strategy:i}=t;const s=i==="fixed",o=wt(r),l=e?ze(e.floating):!1;if(r===o||l&&s)return n;let f={scrollLeft:0,scrollTop:0},a=mt(1);const c=mt(0),u=Rt(r);if((u||!u&&!s)&&((ie(r)!=="body"||we(o))&&(f=Ye(r)),u)){const d=Ut(r);a=oe(r),c.x=d.x+r.clientLeft,c.y=d.y+r.clientTop}const h=o&&!u&&!s?Ur(o,f):mt(0);return{width:n.width*a.x,height:n.height*a.y,x:n.x*a.x-f.scrollLeft*a.x+c.x+h.x,y:n.y*a.y-f.scrollTop*a.y+c.y+h.y}}function Qs(t){return Array.from(t.getClientRects())}function to(t){const e=wt(t),n=Ye(t),r=t.ownerDocument.body,i=zt(e.scrollWidth,e.clientWidth,r.scrollWidth,r.clientWidth),s=zt(e.scrollHeight,e.clientHeight,r.scrollHeight,r.clientHeight);let o=-n.scrollLeft+qe(t);const l=-n.scrollTop;return ct(r).direction==="rtl"&&(o+=zt(e.clientWidth,r.clientWidth)-i),{width:i,height:s,x:o,y:l}}const Xr=25;function eo(t,e){const n=X(t),r=wt(t),i=n.visualViewport;let s=r.clientWidth,o=r.clientHeight,l=0,f=0;if(i){s=i.width,o=i.height;const c=An();(!c||c&&e==="fixed")&&(l=i.offsetLeft,f=i.offsetTop)}const a=qe(r);if(a<=0){const c=r.ownerDocument,u=c.body,h=getComputedStyle(u),d=c.compatMode==="CSS1Compat"&&parseFloat(h.marginLeft)+parseFloat(h.marginRight)||0,v=Math.abs(r.clientWidth-u.clientWidth-d);v<=Xr&&(s-=v)}else a<=Xr&&(s+=a);return{width:s,height:o,x:l,y:f}}function no(t,e){const n=Ut(t,!0,e==="fixed"),r=n.top+t.clientTop,i=n.left+t.clientLeft,s=Rt(t)?oe(t):mt(1),o=t.clientWidth*s.x,l=t.clientHeight*s.y,f=i*s.x,a=r*s.y;return{width:o,height:l,x:f,y:a}}function Gr(t,e,n){let r;if(e==="viewport")r=eo(t,n);else if(e==="document")r=to(wt(t));else if(at(e))r=no(e,n);else{const i=qr(t);r={x:e.x-i.x,y:e.y-i.y,width:e.width,height:e.height}}return He(r)}function Kr(t,e){const n=Mt(t);return n===e||!at(n)||se(n)?!1:ct(n).position==="fixed"||Kr(n,e)}function ro(t,e){const n=e.get(t);if(n)return n;let r=ye(t,[],!1).filter(l=>at(l)&&ie(l)!=="body"),i=null;const s=ct(t).position==="fixed";let o=s?Mt(t):t;for(;at(o)&&!se(o);){const l=ct(o),f=Rn(o);!f&&l.position==="fixed"&&(i=null),(s?!f&&!i:!f&&l.position==="static"&&!!i&&(i.position==="absolute"||i.position==="fixed")||we(o)&&!f&&Kr(t,o))?r=r.filter(c=>c!==o):i=l,o=Mt(o)}return e.set(t,r),r}function io(t){let{element:e,boundary:n,rootBoundary:r,strategy:i}=t;const o=[...n==="clippingAncestors"?ze(e)?[]:ro(e,this._c):[].concat(n),r],l=Gr(e,o[0],i);let f=l.top,a=l.right,c=l.bottom,u=l.left;for(let h=1;h<o.length;h++){const d=Gr(e,o[h],i);f=zt(d.top,f),a=re(d.right,a),c=re(d.bottom,c),u=zt(d.left,u)}return{width:a-u,height:c-f,x:u,y:f}}function so(t){const{width:e,height:n}=Yr(t);return{width:e,height:n}}function oo(t,e,n){const r=Rt(e),i=wt(e),s=n==="fixed",o=Ut(t,!0,s,e);let l={scrollLeft:0,scrollTop:0};const f=mt(0);function a(){f.x=qe(i)}if(r||!r&&!s)if((ie(e)!=="body"||we(i))&&(l=Ye(e)),r){const d=Ut(e,!0,s,e);f.x=d.x+e.clientLeft,f.y=d.y+e.clientTop}else i&&a();s&&!r&&i&&a();const c=i&&!r&&!s?Ur(i,l):mt(0),u=o.left+l.scrollLeft-f.x-c.x,h=o.top+l.scrollTop-f.y-c.y;return{x:u,y:h,width:o.width,height:o.height}}function On(t){return ct(t).position==="static"}function Jr(t,e){if(!Rt(t)||ct(t).position==="fixed")return null;if(e)return e(t);let n=t.offsetParent;return wt(t)===n&&(n=n.ownerDocument.body),n}function Zr(t,e){const n=X(t);if(ze(t))return n;if(!Rt(t)){let i=Mt(t);for(;i&&!se(i);){if(at(i)&&!On(i))return i;i=Mt(i)}return n}let r=Jr(t,e);for(;r&&qs(r)&&On(r);)r=Jr(r,e);return r&&se(r)&&On(r)&&!Rn(r)?n:r||Gs(t)||n}const lo=async function(t){const e=this.getOffsetParent||Zr,n=this.getDimensions,r=await n(t.floating);return{reference:oo(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function fo(t){return ct(t).direction==="rtl"}const ao={convertOffsetParentRelativeRectToViewportRelativeRect:Zs,getDocumentElement:wt,getClippingRect:io,getOffsetParent:Zr,getElementRects:lo,getClientRects:Qs,getDimensions:so,getScale:oe,isElement:at,isRTL:fo};function Qr(t,e){return t.x===e.x&&t.y===e.y&&t.width===e.width&&t.height===e.height}function co(t,e){let n=null,r;const i=wt(t);function s(){var l;clearTimeout(r),(l=n)==null||l.disconnect(),n=null}function o(l,f){l===void 0&&(l=!1),f===void 0&&(f=1),s();const a=t.getBoundingClientRect(),{left:c,top:u,width:h,height:d}=a;if(l||e(),!h||!d)return;const v=Ve(u),p=Ve(i.clientWidth-(c+h)),_=Ve(i.clientHeight-(u+d)),g=Ve(c),b={rootMargin:-v+"px "+-p+"px "+-_+"px "+-g+"px",threshold:zt(0,re(1,f))||1};let S=!0;function F(L){const m=L[0].intersectionRatio;if(m!==f){if(!S)return o();m?o(!1,m):r=setTimeout(()=>{o(!1,1e-7)},1e3)}m===1&&!Qr(a,t.getBoundingClientRect())&&o(),S=!1}try{n=new IntersectionObserver(F,{...b,root:i.ownerDocument})}catch{n=new IntersectionObserver(F,b)}n.observe(t)}return o(!0),s}function uo(t,e,n,r){r===void 0&&(r={});const{ancestorScroll:i=!0,ancestorResize:s=!0,elementResize:o=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:f=!1}=r,a=Sn(t),c=i||s?[...a?ye(a):[],...e?ye(e):[]]:[];c.forEach(g=>{i&&g.addEventListener("scroll",n,{passive:!0}),s&&g.addEventListener("resize",n)});const u=a&&l?co(a,n):null;let h=-1,d=null;o&&(d=new ResizeObserver(g=>{let[$]=g;$&&$.target===a&&d&&e&&(d.unobserve(e),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var b;(b=d)==null||b.observe(e)})),n()}),a&&!f&&d.observe(a),e&&d.observe(e));let v,p=f?Ut(t):null;f&&_();function _(){const g=Ut(t);p&&!Qr(p,g)&&n(),p=g,v=requestAnimationFrame(_)}return n(),()=>{var g;c.forEach($=>{i&&$.removeEventListener("scroll",n),s&&$.removeEventListener("resize",n)}),u?.(),(g=d)==null||g.disconnect(),d=null,f&&cancelAnimationFrame(v)}}const ho=zs,vo=Ys,po=Bs,_o=Vs,go=(t,e,n)=>{const r=new Map,i={platform:ao,...n},s={...i.platform,_c:r};return Is(t,e,{...i,platform:s})};var mo=_n('<div style="text-align: center; font-weight: bold; margin-bottom: 4px;"> </div> <div style="text-align: justify"> </div>',1),wo=_n('<div class="tooltip-element svelte-5j6wnh" role="tooltip"><!> <div class="tooltip-arrow svelte-5j6wnh"></div></div>'),yo=_n('<span id="tooltip-trigger" role="tooltip"><!></span> <!>',1);const bo={hash:"svelte-5j6wnh",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");:host {font-family:"Roboto", sans-serif;}.tooltip-element.svelte-5j6wnh {position:absolute;width:max-content;top:0;left:0;z-index:1000;pointer-events:none;}.tooltip-arrow.svelte-5j6wnh {position:absolute;width:8px;height:8px;background:var(--tooltip-bg, black);transform:rotate(45deg);}'};function ti(t,e){Bn(e,!0),xs(t,bo);let n=wn(e,"id",7,""),r=wn(e,"tooltip"),i=wn(e,"show"),s,o=it(void 0),l=it(void 0),f,a=it(!1);function c(m,O){e.$$host.dispatchEvent(new CustomEvent(m,{detail:O}))}ws(()=>{s=e.$$host?.shadowRoot?.querySelector("#tooltip-trigger")});let u=nn(()=>{if(!r())return null;if(typeof r()=="string")try{return JSON.parse(r())}catch(m){return console.warn("Invalid tooltip JSON",m),null}return r()}),h=nn(()=>{if(i()!==void 0){if(i()===!0||i()===!1)return i();if(typeof i()=="string"){if(["true","1","on","yes"].includes(i()))return!0;if(["false","0","off","no"].includes(i()))return!1}}});function d(){w(h)!==void 0&&H(a,w(h),!0)}un(()=>{d()});function v(){w(h)===void 0&&H(a,!0)}function p(){w(h)===void 0&&H(a,!1)}un(()=>{if(w(a)){if(c("visualizationChange",{id:n(),show:!0}),s&&w(o)){let m=w(u)?.placement||"top";m==="auto"&&(m="top");const O=[ho(6),po(),vo({padding:5})];w(l)&&O.push(_o({element:w(l)})),f=uo(s,w(o),()=>{!s||!w(o)||go(s,w(o),{placement:m,middleware:O}).then(({x:Y,y:j,placement:ut,middlewareData:G})=>{Object.assign(w(o).style,{left:`${Y}px`,top:`${j}px`});const{x:et,y:E}=G.arrow||{},P={top:"bottom",right:"left",bottom:"top",left:"right"}[ut.split("-")[0]];w(l)&&Object.assign(w(l).style,{left:et!=null?`${et}px`:"",top:E!=null?`${E}px`:"",right:"",bottom:"",[P]:"-4px"})})})}}else c("visualizationChange",{id:n(),show:!1}),f&&f();return()=>{f&&f()}});let _=nn(()=>{const m=w(u)?.style||{};if(m.disableDefaultStyle)return"";const O=m.backgroundColor||"black",Y=m.color||"white",j=m.padding||"0.5rem 1rem",ut=m.borderRadius||"0.25rem",G=m.opacity!==void 0?m.opacity:.9,et=m.fontSize||"0.875rem";return`
|
|
3
3
|
background-color: ${O};
|
|
4
|
-
color: ${
|
|
4
|
+
color: ${Y};
|
|
5
5
|
padding: ${j};
|
|
6
|
-
border-radius: ${
|
|
7
|
-
opacity: ${
|
|
8
|
-
font-size: ${
|
|
6
|
+
border-radius: ${ut};
|
|
7
|
+
opacity: ${G};
|
|
8
|
+
font-size: ${et};
|
|
9
9
|
--tooltip-bg: ${O};
|
|
10
|
-
max-width: ${
|
|
11
|
-
max-height: ${
|
|
12
|
-
`});var
|
|
10
|
+
max-width: ${w(u)?.maxWidth||(w(u)?.description?"200px":"auto")};
|
|
11
|
+
max-height: ${w(u)?.maxHeight||"auto"};
|
|
12
|
+
`});var g={get id(){return n()},set id(m=""){n(m),Te()},get tooltip(){return r()},set tooltip(m){r(m),Te()},get show(){return i()},set show(m){i(m),Te()}},$=yo(),b=ln($),S=Ce(b);bs(S,e,"default",{},m=>{var O=Cr(" ");Wt(m,O)}),Re(b);var F=fn(b,2);{var L=m=>{var O=wo(),Y=Ce(O);{var j=E=>{var P=ds(),I=ln(P);ys(I,()=>w(u)?.title||""),Wt(E,P)},ut=E=>{var P=mo(),I=ln(P),K=Ce(I,!0);Re(I);var q=fn(I,2),yt=Ce(q,!0);Re(q),Ne(()=>{gn(K,w(u).title),gn(yt,w(u).description)}),Wt(E,P)},G=E=>{var P=Cr();Ne(()=>gn(P,w(u)?.title||"")),Wt(E,P)};Nr(Y,E=>{w(u)?.html?E(j):w(u)?.description?E(ut,1):E(G,-1)})}var et=fn(Y,2);Mr(et,E=>H(l,E),()=>w(l)),Re(O),Mr(O,E=>H(o,E),()=>w(o)),Ne(()=>Es(O,w(_))),Wt(m,O)};Nr(F,m=>{w(a)&&m(L)})}return De("mouseenter",b,v),De("mouseleave",b,p),De("focus",b,v),De("blur",b,p),Wt(t,$),Hn(g)}customElements.define("hb-tooltip",Ss(ti,{id:{},tooltip:{},show:{}},["default"],[],{mode:"open"})),Cn.Component=ti,Object.defineProperty(Cn,Symbol.toStringTag,{value:"Module"})})(this.tooltip=this.tooltip||{});
|
|
13
13
|
//# sourceMappingURL=main.iife.js.map
|