@botfabrik/engine-webclient 4.109.1 → 4.109.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.
@@ -1,4 +1,4 @@
1
- (function(){"use strict";const Ge=!1;var Tn=Array.isArray,Sn=Array.prototype.indexOf,de=Array.prototype.includes,On=Array.from,Cn=Object.defineProperty,he=Object.getOwnPropertyDescriptor,An=Object.getOwnPropertyDescriptors,Rn=Object.prototype,Nn=Array.prototype,bt=Object.getPrototypeOf,yt=Object.isExtensible;const Dn=()=>{};function In(e){for(var t=0;t<e.length;t++)e[t]()}function Et(){var e,t,n=new Promise((r,i)=>{e=r,t=i});return{promise:n,resolve:e,reject:t}}const x=2,Ee=4,Ae=8,kt=1<<24,V=16,B=32,re=64,Ye=128,I=512,E=1024,T=2048,U=4096,G=8192,K=16384,ie=32768,ve=65536,xt=1<<17,Ve=1<<18,se=1<<19,Ln=1<<20,oe=65536,Ke=1<<21,Xe=1<<22,Q=1<<23,Re=Symbol("$state"),Mn=Symbol("legacy props"),Pn=Symbol(""),ae=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"};function Fn(e){throw new Error("https://svelte.dev/e/lifecycle_outside_component")}function Un(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function zn(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function jn(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function Wn(e){throw new Error("https://svelte.dev/e/effect_orphan")}function Hn(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function qn(e){throw new Error("https://svelte.dev/e/props_invalid_value")}function Bn(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function Gn(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function Yn(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function Vn(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}const Kn=1,Xn=4,Zn=8,Jn=16,Qn=1,$n=2,S=Symbol(),Tt="http://www.w3.org/1999/xhtml";function er(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}function St(e){return e===this.v}function tr(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function nr(e){return!tr(e,this.v)}let rr=!1,A=null;function _e(e){A=e}function Ne(e,t=!1,n){A={p:A,i:!1,c:null,e:null,s:e,x:null,l:null}}function De(e){var t=A,n=t.e;if(n!==null){t.e=null;for(var r of n)Gt(r)}return t.i=!0,A=t.p,{}}function Ot(){return!0}let pe=[];function ir(){var e=pe;pe=[],In(e)}function ge(e){if(pe.length===0){var t=pe;queueMicrotask(()=>{t===pe&&ir()})}pe.push(e)}function Ct(e){var t=w;if(t===null)return _.f|=Q,e;if((t.f&ie)===0&&(t.f&Ee)===0)throw e;$(e,t)}function $(e,t){for(;t!==null;){if((t.f&Ye)!==0){if((t.f&ie)===0)throw e;try{t.b.error(e);return}catch(n){e=n}}t=t.parent}throw e}const sr=-7169;function y(e,t){e.f=e.f&sr|t}function Ze(e){(e.f&I)!==0||e.deps===null?y(e,E):y(e,U)}function At(e){if(e!==null)for(const t of e)(t.f&x)===0||(t.f&oe)===0||(t.f^=oe,At(t.deps))}function Rt(e,t,n){(e.f&T)!==0?t.add(e):(e.f&U)!==0&&n.add(e),At(e.deps),y(e,E)}const Ie=new Set;let m=null,z=null,L=[],Je=null,Qe=!1;class ee{current=new Map;previous=new Map;#t=new Set;#a=new Set;#e=0;#s=0;#n=null;#o=new Set;#r=new Set;#i=new Map;is_fork=!1;#l=!1;#u(){return this.is_fork||this.#s>0}skip_effect(t){this.#i.has(t)||this.#i.set(t,{d:[],m:[]})}unskip_effect(t){var n=this.#i.get(t);if(n){this.#i.delete(t);for(var r of n.d)y(r,T),j(r);for(r of n.m)y(r,U),j(r)}}process(t){L=[],this.apply();var n=[],r=[];for(const i of t)this.#f(i,n,r);if(this.#u()){this.#c(r),this.#c(n);for(const[i,s]of this.#i)Lt(i,s)}else{for(const i of this.#t)i();this.#t.clear(),this.#e===0&&this.#h(),m=null,Nt(r),Nt(n),this.#n?.resolve()}z=null}#f(t,n,r){t.f^=E;for(var i=t.first;i!==null;){var s=i.f,o=(s&(B|re))!==0,l=o&&(s&E)!==0,a=l||(s&G)!==0||this.#i.has(i);if(!a&&i.fn!==null){o?i.f^=E:(s&Ee)!==0?n.push(i):Te(i)&&((s&V)!==0&&this.#r.add(i),me(i));var f=i.first;if(f!==null){i=f;continue}}for(;i!==null;){var c=i.next;if(c!==null){i=c;break}i=i.parent}}}#c(t){for(var n=0;n<t.length;n+=1)Rt(t[n],this.#o,this.#r)}capture(t,n){n!==S&&!this.previous.has(t)&&this.previous.set(t,n),(t.f&Q)===0&&(this.current.set(t,t.v),z?.set(t,t.v))}activate(){m=this,this.apply()}deactivate(){m===this&&(m=null,z=null)}flush(){if(this.activate(),L.length>0){if(or(),m!==null&&m!==this)return}else this.#e===0&&this.process([]);this.deactivate()}discard(){for(const t of this.#a)t(this);this.#a.clear()}#h(){if(Ie.size>1){this.previous.clear();var t=z,n=!0;for(const i of Ie){if(i===this){n=!1;continue}const s=[];for(const[l,a]of this.current){if(i.current.has(l))if(n&&a!==i.current.get(l))i.current.set(l,a);else continue;s.push(l)}if(s.length===0)continue;const o=[...i.current.keys()].filter(l=>!this.current.has(l));if(o.length>0){var r=L;L=[];const l=new Set,a=new Map;for(const f of s)Dt(f,o,l,a);if(L.length>0){m=i,i.apply();for(const f of L)i.#f(f,[],[]);i.deactivate()}L=r}}m=null,z=t}Ie.delete(this)}increment(t){this.#e+=1,t&&(this.#s+=1)}decrement(t){this.#e-=1,t&&(this.#s-=1),!this.#l&&(this.#l=!0,ge(()=>{this.#l=!1,this.#u()?L.length>0&&this.flush():this.revive()}))}revive(){for(const t of this.#o)this.#r.delete(t),y(t,T),j(t);for(const t of this.#r)y(t,U),j(t);this.flush()}oncommit(t){this.#t.add(t)}ondiscard(t){this.#a.add(t)}settled(){return(this.#n??=Et()).promise}static ensure(){if(m===null){const t=m=new ee;Ie.add(m),ge(()=>{m===t&&t.flush()})}return m}apply(){}}function or(){Qe=!0;var e=null;try{for(var t=0;L.length>0;){var n=ee.ensure();if(t++>1e3){var r,i;ar()}n.process(L),te.clear()}}finally{L=[],Qe=!1,Je=null}}function ar(){try{Hn()}catch(e){$(e,Je)}}let X=null;function Nt(e){var t=e.length;if(t!==0){for(var n=0;n<t;){var r=e[n++];if((r.f&(K|G))===0&&Te(r)&&(X=new Set,me(r),r.deps===null&&r.first===null&&r.nodes===null&&r.teardown===null&&r.ac===null&&Vt(r),X?.size>0)){te.clear();for(const i of X){if((i.f&(K|G))!==0)continue;const s=[i];let o=i.parent;for(;o!==null;)X.has(o)&&(X.delete(o),s.push(o)),o=o.parent;for(let l=s.length-1;l>=0;l--){const a=s[l];(a.f&(K|G))===0&&me(a)}}X.clear()}}X=null}}function Dt(e,t,n,r){if(!n.has(e)&&(n.add(e),e.reactions!==null))for(const i of e.reactions){const s=i.f;(s&x)!==0?Dt(i,t,n,r):(s&(Xe|V))!==0&&(s&T)===0&&It(i,t,r)&&(y(i,T),j(i))}}function It(e,t,n){const r=n.get(e);if(r!==void 0)return r;if(e.deps!==null)for(const i of e.deps){if(de.call(t,i))return!0;if((i.f&x)!==0&&It(i,t,n))return n.set(i,!0),!0}return n.set(e,!1),!1}function j(e){var t=Je=e,n=t.b;if(n?.is_pending&&(e.f&(Ee|Ae|kt))!==0&&(e.f&ie)===0){n.defer_effect(e);return}for(;t.parent!==null;){t=t.parent;var r=t.f;if(Qe&&t===w&&(r&V)!==0&&(r&Ve)===0&&(r&ie)!==0)return;if((r&(re|B))!==0){if((r&E)===0)return;t.f^=E}}L.push(t)}function Lt(e,t){if(!((e.f&B)!==0&&(e.f&E)!==0)){(e.f&T)!==0?t.d.push(e):(e.f&U)!==0&&t.m.push(e),y(e,E);for(var n=e.first;n!==null;)Lt(n,t),n=n.next}}function lr(e){let t=0,n=Le(0),r;return()=>{it()&&(O(n),Dr(()=>(t===0&&(r=at(()=>e(()=>ke(n)))),t+=1,()=>{ge(()=>{t-=1,t===0&&(r?.(),r=void 0,ke(n))})})))}}var fr=ve|se;function ur(e,t,n,r){new cr(e,t,n,r)}class cr{parent;is_pending=!1;transform_error;#t;#a=null;#e;#s;#n;#o=null;#r=null;#i=null;#l=null;#u=0;#f=0;#c=!1;#h=new Set;#v=new Set;#d=null;#m=lr(()=>(this.#d=Le(this.#u),()=>{this.#d=null}));constructor(t,n,r,i){this.#t=t,this.#e=n,this.#s=s=>{var o=w;o.b=this,o.f|=Ye,r(s)},this.parent=w.b,this.transform_error=i??this.parent?.transform_error??(s=>s),this.#n=st(()=>{this.#g()},fr)}#b(){try{this.#o=J(()=>this.#s(this.#t))}catch(t){this.error(t)}}#y(t){const n=this.#e.failed;n&&(this.#i=J(()=>{n(this.#t,()=>t,()=>()=>{})}))}#E(){const t=this.#e.pending;t&&(this.is_pending=!0,this.#r=J(()=>t(this.#t)),ge(()=>{var n=this.#l=document.createDocumentFragment(),r=we();n.append(r),this.#o=this.#p(()=>(ee.ensure(),J(()=>this.#s(r)))),this.#f===0&&(this.#t.before(n),this.#l=null,xe(this.#r,()=>{this.#r=null}),this.#_())}))}#g(){try{if(this.is_pending=this.has_pending_snippet(),this.#f=0,this.#u=0,this.#o=J(()=>{this.#s(this.#t)}),this.#f>0){var t=this.#l=document.createDocumentFragment();Zt(this.#o,t);const n=this.#e.pending;this.#r=J(()=>n(this.#t))}else this.#_()}catch(n){this.error(n)}}#_(){this.is_pending=!1;for(const t of this.#h)y(t,T),j(t);for(const t of this.#v)y(t,U),j(t);this.#h.clear(),this.#v.clear()}defer_effect(t){Rt(t,this.#h,this.#v)}is_rendered(){return!this.is_pending&&(!this.parent||this.parent.is_rendered())}has_pending_snippet(){return!!this.#e.pending}#p(t){var n=w,r=_,i=A;Y(this.#n),M(this.#n),_e(this.#n.ctx);try{return t()}catch(s){return Ct(s),null}finally{Y(n),M(r),_e(i)}}#w(t){if(!this.has_pending_snippet()){this.parent&&this.parent.#w(t);return}this.#f+=t,this.#f===0&&(this.#_(),this.#r&&xe(this.#r,()=>{this.#r=null}),this.#l&&(this.#t.before(this.#l),this.#l=null))}update_pending_count(t){this.#w(t),this.#u+=t,!(!this.#d||this.#c)&&(this.#c=!0,ge(()=>{this.#c=!1,this.#d&&Me(this.#d,this.#u)}))}get_effect_pending(){return this.#m(),O(this.#d)}error(t){var n=this.#e.onerror;let r=this.#e.failed;if(!n&&!r)throw t;this.#o&&(R(this.#o),this.#o=null),this.#r&&(R(this.#r),this.#r=null),this.#i&&(R(this.#i),this.#i=null);var i=!1,s=!1;const o=()=>{if(i){er();return}i=!0,s&&Vn(),this.#i!==null&&xe(this.#i,()=>{this.#i=null}),this.#p(()=>{ee.ensure(),this.#g()})},l=a=>{try{s=!0,n?.(a,o),s=!1}catch(f){$(f,this.#n&&this.#n.parent)}r&&(this.#i=this.#p(()=>{ee.ensure();try{return J(()=>{var f=w;f.b=this,f.f|=Ye,r(this.#t,()=>a,()=>o)})}catch(f){return $(f,this.#n.parent),null}}))};ge(()=>{var a;try{a=this.transform_error(t)}catch(f){$(f,this.#n&&this.#n.parent);return}a!==null&&typeof a=="object"&&typeof a.then=="function"?a.then(l,f=>$(f,this.#n&&this.#n.parent)):l(a)})}}function dr(e,t,n,r){const i=et;var s=e.filter(u=>!u.settled);if(n.length===0&&s.length===0){r(t.map(i));return}var o=w,l=hr(),a=s.length===1?s[0].promise:s.length>1?Promise.all(s.map(u=>u.promise)):null;function f(u){l();try{r(u)}catch(d){(o.f&K)===0&&$(d,o)}$e()}if(n.length===0){a.then(()=>f(t.map(i)));return}function c(){l(),Promise.all(n.map(u=>_r(u))).then(u=>f([...t.map(i),...u])).catch(u=>$(u,o))}a?a.then(c):c()}function hr(){var e=w,t=_,n=A,r=m;return function(s=!0){Y(e),M(t),_e(n),s&&r?.activate()}}function $e(e=!0){Y(null),M(null),_e(null),e&&m?.deactivate()}function vr(){var e=w.b,t=m,n=e.is_rendered();return e.update_pending_count(1),t.increment(n),()=>{e.update_pending_count(-1),t.decrement(n)}}function et(e){var t=x|T,n=_!==null&&(_.f&x)!==0?_:null;return w!==null&&(w.f|=se),{ctx:A,deps:null,effects:null,equals:St,f:t,fn:e,reactions:null,rv:0,v:S,wv:0,parent:n??w,ac:null}}function _r(e,t,n){w===null&&Un();var i=void 0,s=Le(S),o=!_,l=new Map;return Nr(()=>{var a=Et();i=a.promise;try{Promise.resolve(e()).then(a.resolve,a.reject).finally($e)}catch(d){a.reject(d),$e()}var f=m;if(o){var c=vr();l.get(f)?.reject(ae),l.delete(f),l.set(f,a)}const u=(d,v=void 0)=>{if(f.activate(),v)v!==ae&&(s.f|=Q,Me(s,v));else{(s.f&Q)!==0&&(s.f^=Q),Me(s,d);for(const[h,p]of l){if(l.delete(h),h===f)break;p.reject(ae)}}c&&c()};a.promise.then(u,d=>u(null,d||"unknown"))}),Or(()=>{for(const a of l.values())a.reject(ae)}),new Promise(a=>{function f(c){function u(){c===i?a(s):f(i)}c.then(u,u)}f(i)})}function pr(e){const t=et(e);return t.equals=nr,t}function gr(e){var t=e.effects;if(t!==null){e.effects=null;for(var n=0;n<t.length;n+=1)R(t[n])}}function wr(e){for(var t=e.parent;t!==null;){if((t.f&x)===0)return(t.f&K)===0?t:null;t=t.parent}return null}function tt(e){var t,n=w;Y(wr(e));try{e.f&=~oe,gr(e),t=nn(e)}finally{Y(n)}return t}function Mt(e){var t=tt(e);if(!e.equals(t)&&(e.wv=en(),(!m?.is_fork||e.deps===null)&&(e.v=t,e.deps===null))){y(e,E);return}ne||(z!==null?(it()||m?.is_fork)&&z.set(e,t):Ze(e))}function mr(e){if(e.effects!==null)for(const t of e.effects)(t.teardown||t.ac)&&(t.teardown?.(),t.ac?.abort(ae),t.teardown=Dn,t.ac=null,Se(t,0),ot(t))}function Pt(e){if(e.effects!==null)for(const t of e.effects)t.teardown&&me(t)}let nt=new Set;const te=new Map;let Ft=!1;function Le(e,t){var n={f:0,v:e,reactions:null,equals:St,rv:0,wv:0};return n}function W(e,t){const n=Le(e);return Pr(n),n}function H(e,t,n=!1){_!==null&&(!q||(_.f&xt)!==0)&&Ot()&&(_.f&(x|V|Xe|xt))!==0&&(P===null||!de.call(P,e))&&Yn();let r=n?le(t):t;return Me(e,r)}function Me(e,t){if(!e.equals(t)){var n=e.v;ne?te.set(e,t):te.set(e,n),e.v=t;var r=ee.ensure();if(r.capture(e,n),(e.f&x)!==0){const i=e;(e.f&T)!==0&&tt(i),Ze(i)}e.wv=en(),Ut(e,T),w!==null&&(w.f&E)!==0&&(w.f&(B|re))===0&&(F===null?Fr([e]):F.push(e)),!r.is_fork&&nt.size>0&&!Ft&&br()}return t}function br(){Ft=!1;for(const e of nt)(e.f&E)!==0&&y(e,U),Te(e)&&me(e);nt.clear()}function ke(e){H(e,e.v+1)}function Ut(e,t){var n=e.reactions;if(n!==null)for(var r=n.length,i=0;i<r;i++){var s=n[i],o=s.f,l=(o&T)===0;if(l&&y(s,t),(o&x)!==0){var a=s;z?.delete(a),(o&oe)===0&&(o&I&&(s.f|=oe),Ut(a,U))}else l&&((o&V)!==0&&X!==null&&X.add(s),j(s))}}function le(e){if(typeof e!="object"||e===null||Re in e)return e;const t=bt(e);if(t!==Rn&&t!==Nn)return e;var n=new Map,r=Tn(e),i=W(0),s=ue,o=l=>{if(ue===s)return l();var a=_,f=ue;M(null),$t(s);var c=l();return M(a),$t(f),c};return r&&n.set("length",W(e.length)),new Proxy(e,{defineProperty(l,a,f){(!("value"in f)||f.configurable===!1||f.enumerable===!1||f.writable===!1)&&Bn();var c=n.get(a);return c===void 0?o(()=>{var u=W(f.value);return n.set(a,u),u}):H(c,f.value,!0),!0},deleteProperty(l,a){var f=n.get(a);if(f===void 0){if(a in l){const c=o(()=>W(S));n.set(a,c),ke(i)}}else H(f,S),ke(i);return!0},get(l,a,f){if(a===Re)return e;var c=n.get(a),u=a in l;if(c===void 0&&(!u||he(l,a)?.writable)&&(c=o(()=>{var v=le(u?l[a]:S),h=W(v);return h}),n.set(a,c)),c!==void 0){var d=O(c);return d===S?void 0:d}return Reflect.get(l,a,f)},getOwnPropertyDescriptor(l,a){var f=Reflect.getOwnPropertyDescriptor(l,a);if(f&&"value"in f){var c=n.get(a);c&&(f.value=O(c))}else if(f===void 0){var u=n.get(a),d=u?.v;if(u!==void 0&&d!==S)return{enumerable:!0,configurable:!0,value:d,writable:!0}}return f},has(l,a){if(a===Re)return!0;var f=n.get(a),c=f!==void 0&&f.v!==S||Reflect.has(l,a);if(f!==void 0||w!==null&&(!c||he(l,a)?.writable)){f===void 0&&(f=o(()=>{var d=c?le(l[a]):S,v=W(d);return v}),n.set(a,f));var u=O(f);if(u===S)return!1}return c},set(l,a,f,c){var u=n.get(a),d=a in l;if(r&&a==="length")for(var v=f;v<u.v;v+=1){var h=n.get(v+"");h!==void 0?H(h,S):v in l&&(h=o(()=>W(S)),n.set(v+"",h))}if(u===void 0)(!d||he(l,a)?.writable)&&(u=o(()=>W(void 0)),H(u,le(f)),n.set(a,u));else{d=u.v!==S;var p=o(()=>le(f));H(u,p)}var b=Reflect.getOwnPropertyDescriptor(l,a);if(b?.set&&b.set.call(c,f),!d){if(r&&typeof a=="string"){var D=n.get("length"),g=Number(a);Number.isInteger(g)&&g>=D.v&&H(D,g+1)}ke(i)}return!0},ownKeys(l){O(i);var a=Reflect.ownKeys(l).filter(u=>{var d=n.get(u);return d===void 0||d.v!==S});for(var[f,c]of n)c.v!==S&&!(f in l)&&a.push(f);return a},setPrototypeOf(){Gn()}})}var zt,jt,Wt,Ht;function yr(){if(zt===void 0){zt=window,jt=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,n=Text.prototype;Wt=he(t,"firstChild").get,Ht=he(t,"nextSibling").get,yt(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),yt(n)&&(n.__t=void 0)}}function we(e=""){return document.createTextNode(e)}function Pe(e){return Wt.call(e)}function Fe(e){return Ht.call(e)}function rt(e,t){return Pe(e)}function Er(e,t=!1){{var n=Pe(e);return n instanceof Comment&&n.data===""?Fe(n):n}}function kr(e,t=1,n=!1){let r=e;for(;t--;)r=Fe(r);return r}function xr(){return!1}function qt(e,t,n){return document.createElementNS(Tt,e,void 0)}function Bt(e){var t=_,n=w;M(null),Y(null);try{return e()}finally{M(t),Y(n)}}function Tr(e){w===null&&(_===null&&Wn(),jn()),ne&&zn()}function Sr(e,t){var n=t.last;n===null?t.last=t.first=e:(n.next=e,e.prev=n,t.last=e)}function Z(e,t,n){var r=w;r!==null&&(r.f&G)!==0&&(e|=G);var i={ctx:A,deps:null,nodes:null,f:e|T|I,first:null,fn:t,last:null,next:null,parent:r,b:r&&r.b,prev:null,teardown:null,wv:0,ac:null};if(n)try{me(i)}catch(l){throw R(i),l}else t!==null&&j(i);var s=i;if(n&&s.deps===null&&s.teardown===null&&s.nodes===null&&s.first===s.last&&(s.f&se)===0&&(s=s.first,(e&V)!==0&&(e&ve)!==0&&s!==null&&(s.f|=ve)),s!==null&&(s.parent=r,r!==null&&Sr(s,r),_!==null&&(_.f&x)!==0&&(e&re)===0)){var o=_;(o.effects??=[]).push(s)}return i}function it(){return _!==null&&!q}function Or(e){const t=Z(Ae,null,!1);return y(t,E),t.teardown=e,t}function Cr(e){Tr();var t=w.f,n=!_&&(t&B)!==0&&(t&ie)===0;if(n){var r=A;(r.e??=[]).push(e)}else return Gt(e)}function Gt(e){return Z(Ee|Ln,e,!1)}function Ar(e){ee.ensure();const t=Z(re|se,e,!0);return(n={})=>new Promise(r=>{n.outro?xe(t,()=>{R(t),r(void 0)}):(R(t),r(void 0))})}function Rr(e){return Z(Ee,e,!1)}function Nr(e){return Z(Xe|se,e,!0)}function Dr(e,t=0){return Z(Ae|t,e,!0)}function Ue(e,t=[],n=[],r=[]){dr(r,t,n,i=>{Z(Ae,()=>e(...i.map(O)),!0)})}function st(e,t=0){var n=Z(V|t,e,!0);return n}function J(e){return Z(B|se,e,!0)}function Yt(e){var t=e.teardown;if(t!==null){const n=ne,r=_;Jt(!0),M(null);try{t.call(null)}finally{Jt(n),M(r)}}}function ot(e,t=!1){var n=e.first;for(e.first=e.last=null;n!==null;){const i=n.ac;i!==null&&Bt(()=>{i.abort(ae)});var r=n.next;(n.f&re)!==0?n.parent=null:R(n,t),n=r}}function Ir(e){for(var t=e.first;t!==null;){var n=t.next;(t.f&B)===0&&R(t),t=n}}function R(e,t=!0){var n=!1;(t||(e.f&Ve)!==0)&&e.nodes!==null&&e.nodes.end!==null&&(Lr(e.nodes.start,e.nodes.end),n=!0),ot(e,t&&!n),Se(e,0),y(e,K);var r=e.nodes&&e.nodes.t;if(r!==null)for(const s of r)s.stop();Yt(e);var i=e.parent;i!==null&&i.first!==null&&Vt(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes=e.ac=null}function Lr(e,t){for(;e!==null;){var n=e===t?null:Fe(e);e.remove(),e=n}}function Vt(e){var t=e.parent,n=e.prev,r=e.next;n!==null&&(n.next=r),r!==null&&(r.prev=n),t!==null&&(t.first===e&&(t.first=r),t.last===e&&(t.last=n))}function xe(e,t,n=!0){var r=[];Kt(e,r,!0);var i=()=>{n&&R(e),t&&t()},s=r.length;if(s>0){var o=()=>--s||i();for(var l of r)l.out(o)}else i()}function Kt(e,t,n){if((e.f&G)===0){e.f^=G;var r=e.nodes&&e.nodes.t;if(r!==null)for(const l of r)(l.is_global||n)&&t.push(l);for(var i=e.first;i!==null;){var s=i.next,o=(i.f&ve)!==0||(i.f&B)!==0&&(e.f&V)!==0;Kt(i,t,o?n:!1),i=s}}}function Mr(e){Xt(e,!0)}function Xt(e,t){if((e.f&G)!==0){e.f^=G,(e.f&E)===0&&(y(e,T),j(e));for(var n=e.first;n!==null;){var r=n.next,i=(n.f&ve)!==0||(n.f&B)!==0;Xt(n,i?t:!1),n=r}var s=e.nodes&&e.nodes.t;if(s!==null)for(const o of s)(o.is_global||t)&&o.in()}}function Zt(e,t){if(e.nodes)for(var n=e.nodes.start,r=e.nodes.end;n!==null;){var i=n===r?null:Fe(n);t.append(n),n=i}}let ze=!1,ne=!1;function Jt(e){ne=e}let _=null,q=!1;function M(e){_=e}let w=null;function Y(e){w=e}let P=null;function Pr(e){_!==null&&(P===null?P=[e]:P.push(e))}let C=null,N=0,F=null;function Fr(e){F=e}let Qt=1,fe=0,ue=fe;function $t(e){ue=e}function en(){return++Qt}function Te(e){var t=e.f;if((t&T)!==0)return!0;if(t&x&&(e.f&=~oe),(t&U)!==0){for(var n=e.deps,r=n.length,i=0;i<r;i++){var s=n[i];if(Te(s)&&Mt(s),s.wv>e.wv)return!0}(t&I)!==0&&z===null&&y(e,E)}return!1}function tn(e,t,n=!0){var r=e.reactions;if(r!==null&&!(P!==null&&de.call(P,e)))for(var i=0;i<r.length;i++){var s=r[i];(s.f&x)!==0?tn(s,t,!1):t===s&&(n?y(s,T):(s.f&E)!==0&&y(s,U),j(s))}}function nn(e){var t=C,n=N,r=F,i=_,s=P,o=A,l=q,a=ue,f=e.f;C=null,N=0,F=null,_=(f&(B|re))===0?e:null,P=null,_e(e.ctx),q=!1,ue=++fe,e.ac!==null&&(Bt(()=>{e.ac.abort(ae)}),e.ac=null);try{e.f|=Ke;var c=e.fn,u=c();e.f|=ie;var d=e.deps,v=m?.is_fork;if(C!==null){var h;if(v||Se(e,N),d!==null&&N>0)for(d.length=N+C.length,h=0;h<C.length;h++)d[N+h]=C[h];else e.deps=d=C;if(it()&&(e.f&I)!==0)for(h=N;h<d.length;h++)(d[h].reactions??=[]).push(e)}else!v&&d!==null&&N<d.length&&(Se(e,N),d.length=N);if(Ot()&&F!==null&&!q&&d!==null&&(e.f&(x|U|T))===0)for(h=0;h<F.length;h++)tn(F[h],e);if(i!==null&&i!==e){if(fe++,i.deps!==null)for(let p=0;p<n;p+=1)i.deps[p].rv=fe;if(t!==null)for(const p of t)p.rv=fe;F!==null&&(r===null?r=F:r.push(...F))}return(e.f&Q)!==0&&(e.f^=Q),u}catch(p){return Ct(p)}finally{e.f^=Ke,C=t,N=n,F=r,_=i,P=s,_e(o),q=l,ue=a}}function Ur(e,t){let n=t.reactions;if(n!==null){var r=Sn.call(n,e);if(r!==-1){var i=n.length-1;i===0?n=t.reactions=null:(n[r]=n[i],n.pop())}}if(n===null&&(t.f&x)!==0&&(C===null||!de.call(C,t))){var s=t;(s.f&I)!==0&&(s.f^=I,s.f&=~oe),Ze(s),mr(s),Se(s,0)}}function Se(e,t){var n=e.deps;if(n!==null)for(var r=t;r<n.length;r++)Ur(e,n[r])}function me(e){var t=e.f;if((t&K)===0){y(e,E);var n=w,r=ze;w=e,ze=!0;try{(t&(V|kt))!==0?Ir(e):ot(e),Yt(e);var i=nn(e);e.teardown=typeof i=="function"?i:null,e.wv=Qt;var s;Ge&&rr&&(e.f&T)!==0&&e.deps}finally{ze=r,w=n}}}function O(e){var t=e.f,n=(t&x)!==0;if(_!==null&&!q){var r=w!==null&&(w.f&K)!==0;if(!r&&(P===null||!de.call(P,e))){var i=_.deps;if((_.f&Ke)!==0)e.rv<fe&&(e.rv=fe,C===null&&i!==null&&i[N]===e?N++:C===null?C=[e]:C.push(e));else{(_.deps??=[]).push(e);var s=e.reactions;s===null?e.reactions=[_]:de.call(s,_)||s.push(_)}}}if(ne&&te.has(e))return te.get(e);if(n){var o=e;if(ne){var l=o.v;return((o.f&E)===0&&o.reactions!==null||sn(o))&&(l=tt(o)),te.set(o,l),l}var a=(o.f&I)===0&&!q&&_!==null&&(ze||(_.f&I)!==0),f=(o.f&ie)===0;Te(o)&&(a&&(o.f|=I),Mt(o)),a&&!f&&(Pt(o),rn(o))}if(z?.has(e))return z.get(e);if((e.f&Q)!==0)throw e.v;return e.v}function rn(e){if(e.f|=I,e.deps!==null)for(const t of e.deps)(t.reactions??=[]).push(e),(t.f&x)!==0&&(t.f&I)===0&&(Pt(t),rn(t))}function sn(e){if(e.v===S)return!0;if(e.deps===null)return!1;for(const t of e.deps)if(te.has(t)||(t.f&x)!==0&&sn(t))return!0;return!1}function at(e){var t=q;try{return q=!0,e()}finally{q=t}}const zr=["touchstart","touchmove"];function jr(e){return zr.includes(e)}const Oe=Symbol("events"),on=new Set,lt=new Set;function an(e,t,n){(t[Oe]??={})[e]=n}function Wr(e){for(var t=0;t<e.length;t++)on.add(e[t]);for(var n of lt)n(e)}let ln=null;function fn(e){var t=this,n=t.ownerDocument,r=e.type,i=e.composedPath?.()||[],s=i[0]||e.target;ln=e;var o=0,l=ln===e&&e[Oe];if(l){var a=i.indexOf(l);if(a!==-1&&(t===document||t===window)){e[Oe]=t;return}var f=i.indexOf(t);if(f===-1)return;a<=f&&(o=a)}if(s=i[o]||e.target,s!==t){Cn(e,"currentTarget",{configurable:!0,get(){return s||n}});var c=_,u=w;M(null),Y(null);try{for(var d,v=[];s!==null;){var h=s.assignedSlot||s.parentNode||s.host||null;try{var p=s[Oe]?.[r];p!=null&&(!s.disabled||e.target===s)&&p.call(s,e)}catch(b){d?v.push(b):d=b}if(e.cancelBubble||h===t||h===null)break;s=h}if(d){for(let b of v)queueMicrotask(()=>{throw b});throw d}}finally{e[Oe]=t,delete e.currentTarget,M(c),Y(u)}}}const Hr=globalThis?.window?.trustedTypes&&globalThis.window.trustedTypes.createPolicy("svelte-trusted-html",{createHTML:e=>e});function qr(e){return Hr?.createHTML(e)??e}function Br(e){var t=qt("template");return t.innerHTML=qr(e.replaceAll("<!>","<!---->")),t.content}function ft(e,t){var n=w;n.nodes===null&&(n.nodes={start:e,end:t,a:null,t:null})}function Ce(e,t){var n=(t&Qn)!==0,r=(t&$n)!==0,i,s=!e.startsWith("<!>");return()=>{i===void 0&&(i=Br(s?e:"<!>"+e),n||(i=Pe(i)));var o=r||jt?document.importNode(i,!0):i.cloneNode(!0);if(n){var l=Pe(o),a=o.lastChild;ft(l,a)}else ft(o,o);return o}}function Gr(){var e=document.createDocumentFragment(),t=document.createComment(""),n=we();return e.append(t,n),ft(t,n),e}function be(e,t){e!==null&&e.before(t)}function Yr(e,t){return Vr(e,t)}const je=new Map;function Vr(e,{target:t,anchor:n,props:r={},events:i,context:s,intro:o=!0,transformError:l}){yr();var a=void 0,f=Ar(()=>{var c=n??t.appendChild(we());ur(c,{pending:()=>{}},v=>{Ne({});var h=A;s&&(h.c=s),i&&(r.$$events=i),a=e(v,r)||{},De()},l);var u=new Set,d=v=>{for(var h=0;h<v.length;h++){var p=v[h];if(!u.has(p)){u.add(p);var b=jr(p);for(const k of[t,document]){var D=je.get(k);D===void 0&&(D=new Map,je.set(k,D));var g=D.get(p);g===void 0?(k.addEventListener(p,fn,{passive:b}),D.set(p,1)):D.set(p,g+1)}}}};return d(On(on)),lt.add(d),()=>{for(var v of u)for(const b of[t,document]){var h=je.get(b),p=h.get(v);--p==0?(b.removeEventListener(v,fn),h.delete(v),h.size===0&&je.delete(b)):h.set(v,p)}lt.delete(d),c!==n&&c.parentNode?.removeChild(c)}});return Kr.set(a,f),a}let Kr=new WeakMap;class Xr{anchor;#t=new Map;#a=new Map;#e=new Map;#s=new Set;#n=!0;constructor(t,n=!0){this.anchor=t,this.#n=n}#o=()=>{var t=m;if(this.#t.has(t)){var n=this.#t.get(t),r=this.#a.get(n);if(r)Mr(r),this.#s.delete(n);else{var i=this.#e.get(n);i&&(this.#a.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===t)break;const l=this.#e.get(o);l&&(R(l.effect),this.#e.delete(o))}for(const[s,o]of this.#a){if(s===n||this.#s.has(s))continue;const l=()=>{if(Array.from(this.#t.values()).includes(s)){var f=document.createDocumentFragment();Zt(o,f),f.append(we()),this.#e.set(s,{effect:o,fragment:f})}else R(o);this.#s.delete(s),this.#a.delete(s)};this.#n||!r?(this.#s.add(s),xe(o,l,!1)):l()}}};#r=t=>{this.#t.delete(t);const n=Array.from(this.#t.values());for(const[r,i]of this.#e)n.includes(r)||(R(i.effect),this.#e.delete(r))};ensure(t,n){var r=m,i=xr();if(n&&!this.#a.has(t)&&!this.#e.has(t))if(i){var s=document.createDocumentFragment(),o=we();s.append(o),this.#e.set(t,{effect:J(()=>n(o)),fragment:s})}else this.#a.set(t,J(()=>n(this.anchor)));if(this.#t.set(r,t),i){for(const[l,a]of this.#a)l===t?r.unskip_effect(a):r.skip_effect(a);for(const[l,a]of this.#e)l===t?r.unskip_effect(a.effect):r.skip_effect(a.effect);r.oncommit(this.#o),r.ondiscard(this.#r)}else this.#o()}}function Zr(e,t,n=!1){var r=new Xr(e),i=n?ve:0;function s(o,l){r.ensure(o,l)}st(()=>{var o=!1;t((l,a=0)=>{o=!0,s(a,l)}),o||s(!1,null)},i)}function Jr(e,t){var n;n=document.head.appendChild(we()),st(()=>t(n),Ve|se)}function ut(e,t){Rr(()=>{var n=e.getRootNode(),r=n.host?n:n.head??n.ownerDocument.head;if(!r.querySelector("#"+t.hash)){const i=qt("style");i.id=t.hash,i.textContent=t.code,r.appendChild(i)}})}const un=[...`
1
+ (function(){"use strict";const Ge=!1;var Tn=Array.isArray,Sn=Array.prototype.indexOf,de=Array.prototype.includes,On=Array.from,Cn=Object.defineProperty,he=Object.getOwnPropertyDescriptor,An=Object.getOwnPropertyDescriptors,Rn=Object.prototype,Nn=Array.prototype,bt=Object.getPrototypeOf,yt=Object.isExtensible;const Dn=()=>{};function In(e){for(var t=0;t<e.length;t++)e[t]()}function Et(){var e,t,n=new Promise((r,i)=>{e=r,t=i});return{promise:n,resolve:e,reject:t}}const x=2,Ee=4,Ae=8,kt=1<<24,V=16,B=32,re=64,Ye=128,I=512,E=1024,T=2048,U=4096,G=8192,K=16384,ie=32768,ve=65536,xt=1<<17,Ve=1<<18,se=1<<19,Ln=1<<20,oe=65536,Ke=1<<21,Xe=1<<22,Q=1<<23,Re=Symbol("$state"),Mn=Symbol("legacy props"),Pn=Symbol(""),ae=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"};function Fn(e){throw new Error("https://svelte.dev/e/lifecycle_outside_component")}function Un(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function zn(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function jn(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function Wn(e){throw new Error("https://svelte.dev/e/effect_orphan")}function Hn(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function qn(e){throw new Error("https://svelte.dev/e/props_invalid_value")}function Bn(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function Gn(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function Yn(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function Vn(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}const Kn=1,Xn=4,Zn=8,Jn=16,Qn=1,$n=2,S=Symbol(),Tt="http://www.w3.org/1999/xhtml";function er(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}function St(e){return e===this.v}function tr(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function nr(e){return!tr(e,this.v)}let rr=!1,A=null;function _e(e){A=e}function Ne(e,t=!1,n){A={p:A,i:!1,c:null,e:null,s:e,x:null,l:null}}function De(e){var t=A,n=t.e;if(n!==null){t.e=null;for(var r of n)Gt(r)}return t.i=!0,A=t.p,{}}function Ot(){return!0}let pe=[];function ir(){var e=pe;pe=[],In(e)}function ge(e){if(pe.length===0){var t=pe;queueMicrotask(()=>{t===pe&&ir()})}pe.push(e)}function Ct(e){var t=w;if(t===null)return _.f|=Q,e;if((t.f&ie)===0&&(t.f&Ee)===0)throw e;$(e,t)}function $(e,t){for(;t!==null;){if((t.f&Ye)!==0){if((t.f&ie)===0)throw e;try{t.b.error(e);return}catch(n){e=n}}t=t.parent}throw e}const sr=-7169;function y(e,t){e.f=e.f&sr|t}function Ze(e){(e.f&I)!==0||e.deps===null?y(e,E):y(e,U)}function At(e){if(e!==null)for(const t of e)(t.f&x)===0||(t.f&oe)===0||(t.f^=oe,At(t.deps))}function Rt(e,t,n){(e.f&T)!==0?t.add(e):(e.f&U)!==0&&n.add(e),At(e.deps),y(e,E)}const Ie=new Set;let m=null,z=null,L=[],Je=null,Qe=!1;class ee{current=new Map;previous=new Map;#t=new Set;#a=new Set;#e=0;#o=0;#r=null;#s=new Set;#n=new Set;#i=new Map;is_fork=!1;#l=!1;#u(){return this.is_fork||this.#o>0}skip_effect(t){this.#i.has(t)||this.#i.set(t,{d:[],m:[]})}unskip_effect(t){var n=this.#i.get(t);if(n){this.#i.delete(t);for(var r of n.d)y(r,T),j(r);for(r of n.m)y(r,U),j(r)}}process(t){L=[],this.apply();var n=[],r=[];for(const i of t)this.#f(i,n,r);if(this.#u()){this.#c(r),this.#c(n);for(const[i,s]of this.#i)Lt(i,s)}else{for(const i of this.#t)i();this.#t.clear(),this.#e===0&&this.#h(),m=null,Nt(r),Nt(n),this.#s.clear(),this.#n.clear(),this.#r?.resolve()}z=null}#f(t,n,r){t.f^=E;for(var i=t.first;i!==null;){var s=i.f,o=(s&(B|re))!==0,l=o&&(s&E)!==0,a=l||(s&G)!==0||this.#i.has(i);if(!a&&i.fn!==null){o?i.f^=E:(s&Ee)!==0?n.push(i):Te(i)&&((s&V)!==0&&this.#n.add(i),me(i));var f=i.first;if(f!==null){i=f;continue}}for(;i!==null;){var c=i.next;if(c!==null){i=c;break}i=i.parent}}}#c(t){for(var n=0;n<t.length;n+=1)Rt(t[n],this.#s,this.#n)}capture(t,n){n!==S&&!this.previous.has(t)&&this.previous.set(t,n),(t.f&Q)===0&&(this.current.set(t,t.v),z?.set(t,t.v))}activate(){m=this,this.apply()}deactivate(){m===this&&(m=null,z=null)}flush(){if(this.activate(),L.length>0){if(or(),m!==null&&m!==this)return}else this.#e===0&&this.process([]);this.deactivate()}discard(){for(const t of this.#a)t(this);this.#a.clear()}#h(){if(Ie.size>1){this.previous.clear();var t=z,n=!0;for(const i of Ie){if(i===this){n=!1;continue}const s=[];for(const[l,a]of this.current){if(i.current.has(l))if(n&&a!==i.current.get(l))i.current.set(l,a);else continue;s.push(l)}if(s.length===0)continue;const o=[...i.current.keys()].filter(l=>!this.current.has(l));if(o.length>0){var r=L;L=[];const l=new Set,a=new Map;for(const f of s)Dt(f,o,l,a);if(L.length>0){m=i,i.apply();for(const f of L)i.#f(f,[],[]);i.deactivate()}L=r}}m=null,z=t}this.#i.clear(),Ie.delete(this)}increment(t){this.#e+=1,t&&(this.#o+=1)}decrement(t){this.#e-=1,t&&(this.#o-=1),!this.#l&&(this.#l=!0,ge(()=>{this.#l=!1,this.#u()?L.length>0&&this.flush():this.revive()}))}revive(){for(const t of this.#s)this.#n.delete(t),y(t,T),j(t);for(const t of this.#n)y(t,U),j(t);this.flush()}oncommit(t){this.#t.add(t)}ondiscard(t){this.#a.add(t)}settled(){return(this.#r??=Et()).promise}static ensure(){if(m===null){const t=m=new ee;Ie.add(m),ge(()=>{m===t&&t.flush()})}return m}apply(){}}function or(){Qe=!0;var e=null;try{for(var t=0;L.length>0;){var n=ee.ensure();if(t++>1e3){var r,i;ar()}n.process(L),te.clear()}}finally{L=[],Qe=!1,Je=null}}function ar(){try{Hn()}catch(e){$(e,Je)}}let X=null;function Nt(e){var t=e.length;if(t!==0){for(var n=0;n<t;){var r=e[n++];if((r.f&(K|G))===0&&Te(r)&&(X=new Set,me(r),r.deps===null&&r.first===null&&r.nodes===null&&r.teardown===null&&r.ac===null&&Vt(r),X?.size>0)){te.clear();for(const i of X){if((i.f&(K|G))!==0)continue;const s=[i];let o=i.parent;for(;o!==null;)X.has(o)&&(X.delete(o),s.push(o)),o=o.parent;for(let l=s.length-1;l>=0;l--){const a=s[l];(a.f&(K|G))===0&&me(a)}}X.clear()}}X=null}}function Dt(e,t,n,r){if(!n.has(e)&&(n.add(e),e.reactions!==null))for(const i of e.reactions){const s=i.f;(s&x)!==0?Dt(i,t,n,r):(s&(Xe|V))!==0&&(s&T)===0&&It(i,t,r)&&(y(i,T),j(i))}}function It(e,t,n){const r=n.get(e);if(r!==void 0)return r;if(e.deps!==null)for(const i of e.deps){if(de.call(t,i))return!0;if((i.f&x)!==0&&It(i,t,n))return n.set(i,!0),!0}return n.set(e,!1),!1}function j(e){var t=Je=e,n=t.b;if(n?.is_pending&&(e.f&(Ee|Ae|kt))!==0&&(e.f&ie)===0){n.defer_effect(e);return}for(;t.parent!==null;){t=t.parent;var r=t.f;if(Qe&&t===w&&(r&V)!==0&&(r&Ve)===0&&(r&ie)!==0)return;if((r&(re|B))!==0){if((r&E)===0)return;t.f^=E}}L.push(t)}function Lt(e,t){if(!((e.f&B)!==0&&(e.f&E)!==0)){(e.f&T)!==0?t.d.push(e):(e.f&U)!==0&&t.m.push(e),y(e,E);for(var n=e.first;n!==null;)Lt(n,t),n=n.next}}function lr(e){let t=0,n=Le(0),r;return()=>{it()&&(O(n),Dr(()=>(t===0&&(r=at(()=>e(()=>ke(n)))),t+=1,()=>{ge(()=>{t-=1,t===0&&(r?.(),r=void 0,ke(n))})})))}}var fr=ve|se;function ur(e,t,n,r){new cr(e,t,n,r)}class cr{parent;is_pending=!1;transform_error;#t;#a=null;#e;#o;#r;#s=null;#n=null;#i=null;#l=null;#u=0;#f=0;#c=!1;#h=new Set;#v=new Set;#d=null;#m=lr(()=>(this.#d=Le(this.#u),()=>{this.#d=null}));constructor(t,n,r,i){this.#t=t,this.#e=n,this.#o=s=>{var o=w;o.b=this,o.f|=Ye,r(s)},this.parent=w.b,this.transform_error=i??this.parent?.transform_error??(s=>s),this.#r=st(()=>{this.#g()},fr)}#b(){try{this.#s=J(()=>this.#o(this.#t))}catch(t){this.error(t)}}#y(t){const n=this.#e.failed;n&&(this.#i=J(()=>{n(this.#t,()=>t,()=>()=>{})}))}#E(){const t=this.#e.pending;t&&(this.is_pending=!0,this.#n=J(()=>t(this.#t)),ge(()=>{var n=this.#l=document.createDocumentFragment(),r=we();n.append(r),this.#s=this.#p(()=>(ee.ensure(),J(()=>this.#o(r)))),this.#f===0&&(this.#t.before(n),this.#l=null,xe(this.#n,()=>{this.#n=null}),this.#_())}))}#g(){try{if(this.is_pending=this.has_pending_snippet(),this.#f=0,this.#u=0,this.#s=J(()=>{this.#o(this.#t)}),this.#f>0){var t=this.#l=document.createDocumentFragment();Zt(this.#s,t);const n=this.#e.pending;this.#n=J(()=>n(this.#t))}else this.#_()}catch(n){this.error(n)}}#_(){this.is_pending=!1;for(const t of this.#h)y(t,T),j(t);for(const t of this.#v)y(t,U),j(t);this.#h.clear(),this.#v.clear()}defer_effect(t){Rt(t,this.#h,this.#v)}is_rendered(){return!this.is_pending&&(!this.parent||this.parent.is_rendered())}has_pending_snippet(){return!!this.#e.pending}#p(t){var n=w,r=_,i=A;Y(this.#r),M(this.#r),_e(this.#r.ctx);try{return t()}catch(s){return Ct(s),null}finally{Y(n),M(r),_e(i)}}#w(t){if(!this.has_pending_snippet()){this.parent&&this.parent.#w(t);return}this.#f+=t,this.#f===0&&(this.#_(),this.#n&&xe(this.#n,()=>{this.#n=null}),this.#l&&(this.#t.before(this.#l),this.#l=null))}update_pending_count(t){this.#w(t),this.#u+=t,!(!this.#d||this.#c)&&(this.#c=!0,ge(()=>{this.#c=!1,this.#d&&Me(this.#d,this.#u)}))}get_effect_pending(){return this.#m(),O(this.#d)}error(t){var n=this.#e.onerror;let r=this.#e.failed;if(!n&&!r)throw t;this.#s&&(R(this.#s),this.#s=null),this.#n&&(R(this.#n),this.#n=null),this.#i&&(R(this.#i),this.#i=null);var i=!1,s=!1;const o=()=>{if(i){er();return}i=!0,s&&Vn(),this.#i!==null&&xe(this.#i,()=>{this.#i=null}),this.#p(()=>{ee.ensure(),this.#g()})},l=a=>{try{s=!0,n?.(a,o),s=!1}catch(f){$(f,this.#r&&this.#r.parent)}r&&(this.#i=this.#p(()=>{ee.ensure();try{return J(()=>{var f=w;f.b=this,f.f|=Ye,r(this.#t,()=>a,()=>o)})}catch(f){return $(f,this.#r.parent),null}}))};ge(()=>{var a;try{a=this.transform_error(t)}catch(f){$(f,this.#r&&this.#r.parent);return}a!==null&&typeof a=="object"&&typeof a.then=="function"?a.then(l,f=>$(f,this.#r&&this.#r.parent)):l(a)})}}function dr(e,t,n,r){const i=et;var s=e.filter(u=>!u.settled);if(n.length===0&&s.length===0){r(t.map(i));return}var o=w,l=hr(),a=s.length===1?s[0].promise:s.length>1?Promise.all(s.map(u=>u.promise)):null;function f(u){l();try{r(u)}catch(d){(o.f&K)===0&&$(d,o)}$e()}if(n.length===0){a.then(()=>f(t.map(i)));return}function c(){l(),Promise.all(n.map(u=>_r(u))).then(u=>f([...t.map(i),...u])).catch(u=>$(u,o))}a?a.then(c):c()}function hr(){var e=w,t=_,n=A,r=m;return function(s=!0){Y(e),M(t),_e(n),s&&r?.activate()}}function $e(e=!0){Y(null),M(null),_e(null),e&&m?.deactivate()}function vr(){var e=w.b,t=m,n=e.is_rendered();return e.update_pending_count(1),t.increment(n),()=>{e.update_pending_count(-1),t.decrement(n)}}function et(e){var t=x|T,n=_!==null&&(_.f&x)!==0?_:null;return w!==null&&(w.f|=se),{ctx:A,deps:null,effects:null,equals:St,f:t,fn:e,reactions:null,rv:0,v:S,wv:0,parent:n??w,ac:null}}function _r(e,t,n){w===null&&Un();var i=void 0,s=Le(S),o=!_,l=new Map;return Nr(()=>{var a=Et();i=a.promise;try{Promise.resolve(e()).then(a.resolve,a.reject).finally($e)}catch(d){a.reject(d),$e()}var f=m;if(o){var c=vr();l.get(f)?.reject(ae),l.delete(f),l.set(f,a)}const u=(d,v=void 0)=>{if(f.activate(),v)v!==ae&&(s.f|=Q,Me(s,v));else{(s.f&Q)!==0&&(s.f^=Q),Me(s,d);for(const[h,p]of l){if(l.delete(h),h===f)break;p.reject(ae)}}c&&c()};a.promise.then(u,d=>u(null,d||"unknown"))}),Or(()=>{for(const a of l.values())a.reject(ae)}),new Promise(a=>{function f(c){function u(){c===i?a(s):f(i)}c.then(u,u)}f(i)})}function pr(e){const t=et(e);return t.equals=nr,t}function gr(e){var t=e.effects;if(t!==null){e.effects=null;for(var n=0;n<t.length;n+=1)R(t[n])}}function wr(e){for(var t=e.parent;t!==null;){if((t.f&x)===0)return(t.f&K)===0?t:null;t=t.parent}return null}function tt(e){var t,n=w;Y(wr(e));try{e.f&=~oe,gr(e),t=nn(e)}finally{Y(n)}return t}function Mt(e){var t=tt(e);if(!e.equals(t)&&(e.wv=en(),(!m?.is_fork||e.deps===null)&&(e.v=t,e.deps===null))){y(e,E);return}ne||(z!==null?(it()||m?.is_fork)&&z.set(e,t):Ze(e))}function mr(e){if(e.effects!==null)for(const t of e.effects)(t.teardown||t.ac)&&(t.teardown?.(),t.ac?.abort(ae),t.teardown=Dn,t.ac=null,Se(t,0),ot(t))}function Pt(e){if(e.effects!==null)for(const t of e.effects)t.teardown&&me(t)}let nt=new Set;const te=new Map;let Ft=!1;function Le(e,t){var n={f:0,v:e,reactions:null,equals:St,rv:0,wv:0};return n}function W(e,t){const n=Le(e);return Pr(n),n}function H(e,t,n=!1){_!==null&&(!q||(_.f&xt)!==0)&&Ot()&&(_.f&(x|V|Xe|xt))!==0&&(P===null||!de.call(P,e))&&Yn();let r=n?le(t):t;return Me(e,r)}function Me(e,t){if(!e.equals(t)){var n=e.v;ne?te.set(e,t):te.set(e,n),e.v=t;var r=ee.ensure();if(r.capture(e,n),(e.f&x)!==0){const i=e;(e.f&T)!==0&&tt(i),Ze(i)}e.wv=en(),Ut(e,T),w!==null&&(w.f&E)!==0&&(w.f&(B|re))===0&&(F===null?Fr([e]):F.push(e)),!r.is_fork&&nt.size>0&&!Ft&&br()}return t}function br(){Ft=!1;for(const e of nt)(e.f&E)!==0&&y(e,U),Te(e)&&me(e);nt.clear()}function ke(e){H(e,e.v+1)}function Ut(e,t){var n=e.reactions;if(n!==null)for(var r=n.length,i=0;i<r;i++){var s=n[i],o=s.f,l=(o&T)===0;if(l&&y(s,t),(o&x)!==0){var a=s;z?.delete(a),(o&oe)===0&&(o&I&&(s.f|=oe),Ut(a,U))}else l&&((o&V)!==0&&X!==null&&X.add(s),j(s))}}function le(e){if(typeof e!="object"||e===null||Re in e)return e;const t=bt(e);if(t!==Rn&&t!==Nn)return e;var n=new Map,r=Tn(e),i=W(0),s=ue,o=l=>{if(ue===s)return l();var a=_,f=ue;M(null),$t(s);var c=l();return M(a),$t(f),c};return r&&n.set("length",W(e.length)),new Proxy(e,{defineProperty(l,a,f){(!("value"in f)||f.configurable===!1||f.enumerable===!1||f.writable===!1)&&Bn();var c=n.get(a);return c===void 0?o(()=>{var u=W(f.value);return n.set(a,u),u}):H(c,f.value,!0),!0},deleteProperty(l,a){var f=n.get(a);if(f===void 0){if(a in l){const c=o(()=>W(S));n.set(a,c),ke(i)}}else H(f,S),ke(i);return!0},get(l,a,f){if(a===Re)return e;var c=n.get(a),u=a in l;if(c===void 0&&(!u||he(l,a)?.writable)&&(c=o(()=>{var v=le(u?l[a]:S),h=W(v);return h}),n.set(a,c)),c!==void 0){var d=O(c);return d===S?void 0:d}return Reflect.get(l,a,f)},getOwnPropertyDescriptor(l,a){var f=Reflect.getOwnPropertyDescriptor(l,a);if(f&&"value"in f){var c=n.get(a);c&&(f.value=O(c))}else if(f===void 0){var u=n.get(a),d=u?.v;if(u!==void 0&&d!==S)return{enumerable:!0,configurable:!0,value:d,writable:!0}}return f},has(l,a){if(a===Re)return!0;var f=n.get(a),c=f!==void 0&&f.v!==S||Reflect.has(l,a);if(f!==void 0||w!==null&&(!c||he(l,a)?.writable)){f===void 0&&(f=o(()=>{var d=c?le(l[a]):S,v=W(d);return v}),n.set(a,f));var u=O(f);if(u===S)return!1}return c},set(l,a,f,c){var u=n.get(a),d=a in l;if(r&&a==="length")for(var v=f;v<u.v;v+=1){var h=n.get(v+"");h!==void 0?H(h,S):v in l&&(h=o(()=>W(S)),n.set(v+"",h))}if(u===void 0)(!d||he(l,a)?.writable)&&(u=o(()=>W(void 0)),H(u,le(f)),n.set(a,u));else{d=u.v!==S;var p=o(()=>le(f));H(u,p)}var b=Reflect.getOwnPropertyDescriptor(l,a);if(b?.set&&b.set.call(c,f),!d){if(r&&typeof a=="string"){var D=n.get("length"),g=Number(a);Number.isInteger(g)&&g>=D.v&&H(D,g+1)}ke(i)}return!0},ownKeys(l){O(i);var a=Reflect.ownKeys(l).filter(u=>{var d=n.get(u);return d===void 0||d.v!==S});for(var[f,c]of n)c.v!==S&&!(f in l)&&a.push(f);return a},setPrototypeOf(){Gn()}})}var zt,jt,Wt,Ht;function yr(){if(zt===void 0){zt=window,jt=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,n=Text.prototype;Wt=he(t,"firstChild").get,Ht=he(t,"nextSibling").get,yt(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),yt(n)&&(n.__t=void 0)}}function we(e=""){return document.createTextNode(e)}function Pe(e){return Wt.call(e)}function Fe(e){return Ht.call(e)}function rt(e,t){return Pe(e)}function Er(e,t=!1){{var n=Pe(e);return n instanceof Comment&&n.data===""?Fe(n):n}}function kr(e,t=1,n=!1){let r=e;for(;t--;)r=Fe(r);return r}function xr(){return!1}function qt(e,t,n){return document.createElementNS(Tt,e,void 0)}function Bt(e){var t=_,n=w;M(null),Y(null);try{return e()}finally{M(t),Y(n)}}function Tr(e){w===null&&(_===null&&Wn(),jn()),ne&&zn()}function Sr(e,t){var n=t.last;n===null?t.last=t.first=e:(n.next=e,e.prev=n,t.last=e)}function Z(e,t,n){var r=w;r!==null&&(r.f&G)!==0&&(e|=G);var i={ctx:A,deps:null,nodes:null,f:e|T|I,first:null,fn:t,last:null,next:null,parent:r,b:r&&r.b,prev:null,teardown:null,wv:0,ac:null};if(n)try{me(i)}catch(l){throw R(i),l}else t!==null&&j(i);var s=i;if(n&&s.deps===null&&s.teardown===null&&s.nodes===null&&s.first===s.last&&(s.f&se)===0&&(s=s.first,(e&V)!==0&&(e&ve)!==0&&s!==null&&(s.f|=ve)),s!==null&&(s.parent=r,r!==null&&Sr(s,r),_!==null&&(_.f&x)!==0&&(e&re)===0)){var o=_;(o.effects??=[]).push(s)}return i}function it(){return _!==null&&!q}function Or(e){const t=Z(Ae,null,!1);return y(t,E),t.teardown=e,t}function Cr(e){Tr();var t=w.f,n=!_&&(t&B)!==0&&(t&ie)===0;if(n){var r=A;(r.e??=[]).push(e)}else return Gt(e)}function Gt(e){return Z(Ee|Ln,e,!1)}function Ar(e){ee.ensure();const t=Z(re|se,e,!0);return(n={})=>new Promise(r=>{n.outro?xe(t,()=>{R(t),r(void 0)}):(R(t),r(void 0))})}function Rr(e){return Z(Ee,e,!1)}function Nr(e){return Z(Xe|se,e,!0)}function Dr(e,t=0){return Z(Ae|t,e,!0)}function Ue(e,t=[],n=[],r=[]){dr(r,t,n,i=>{Z(Ae,()=>e(...i.map(O)),!0)})}function st(e,t=0){var n=Z(V|t,e,!0);return n}function J(e){return Z(B|se,e,!0)}function Yt(e){var t=e.teardown;if(t!==null){const n=ne,r=_;Jt(!0),M(null);try{t.call(null)}finally{Jt(n),M(r)}}}function ot(e,t=!1){var n=e.first;for(e.first=e.last=null;n!==null;){const i=n.ac;i!==null&&Bt(()=>{i.abort(ae)});var r=n.next;(n.f&re)!==0?n.parent=null:R(n,t),n=r}}function Ir(e){for(var t=e.first;t!==null;){var n=t.next;(t.f&B)===0&&R(t),t=n}}function R(e,t=!0){var n=!1;(t||(e.f&Ve)!==0)&&e.nodes!==null&&e.nodes.end!==null&&(Lr(e.nodes.start,e.nodes.end),n=!0),ot(e,t&&!n),Se(e,0),y(e,K);var r=e.nodes&&e.nodes.t;if(r!==null)for(const s of r)s.stop();Yt(e);var i=e.parent;i!==null&&i.first!==null&&Vt(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes=e.ac=null}function Lr(e,t){for(;e!==null;){var n=e===t?null:Fe(e);e.remove(),e=n}}function Vt(e){var t=e.parent,n=e.prev,r=e.next;n!==null&&(n.next=r),r!==null&&(r.prev=n),t!==null&&(t.first===e&&(t.first=r),t.last===e&&(t.last=n))}function xe(e,t,n=!0){var r=[];Kt(e,r,!0);var i=()=>{n&&R(e),t&&t()},s=r.length;if(s>0){var o=()=>--s||i();for(var l of r)l.out(o)}else i()}function Kt(e,t,n){if((e.f&G)===0){e.f^=G;var r=e.nodes&&e.nodes.t;if(r!==null)for(const l of r)(l.is_global||n)&&t.push(l);for(var i=e.first;i!==null;){var s=i.next,o=(i.f&ve)!==0||(i.f&B)!==0&&(e.f&V)!==0;Kt(i,t,o?n:!1),i=s}}}function Mr(e){Xt(e,!0)}function Xt(e,t){if((e.f&G)!==0){e.f^=G,(e.f&E)===0&&(y(e,T),j(e));for(var n=e.first;n!==null;){var r=n.next,i=(n.f&ve)!==0||(n.f&B)!==0;Xt(n,i?t:!1),n=r}var s=e.nodes&&e.nodes.t;if(s!==null)for(const o of s)(o.is_global||t)&&o.in()}}function Zt(e,t){if(e.nodes)for(var n=e.nodes.start,r=e.nodes.end;n!==null;){var i=n===r?null:Fe(n);t.append(n),n=i}}let ze=!1,ne=!1;function Jt(e){ne=e}let _=null,q=!1;function M(e){_=e}let w=null;function Y(e){w=e}let P=null;function Pr(e){_!==null&&(P===null?P=[e]:P.push(e))}let C=null,N=0,F=null;function Fr(e){F=e}let Qt=1,fe=0,ue=fe;function $t(e){ue=e}function en(){return++Qt}function Te(e){var t=e.f;if((t&T)!==0)return!0;if(t&x&&(e.f&=~oe),(t&U)!==0){for(var n=e.deps,r=n.length,i=0;i<r;i++){var s=n[i];if(Te(s)&&Mt(s),s.wv>e.wv)return!0}(t&I)!==0&&z===null&&y(e,E)}return!1}function tn(e,t,n=!0){var r=e.reactions;if(r!==null&&!(P!==null&&de.call(P,e)))for(var i=0;i<r.length;i++){var s=r[i];(s.f&x)!==0?tn(s,t,!1):t===s&&(n?y(s,T):(s.f&E)!==0&&y(s,U),j(s))}}function nn(e){var t=C,n=N,r=F,i=_,s=P,o=A,l=q,a=ue,f=e.f;C=null,N=0,F=null,_=(f&(B|re))===0?e:null,P=null,_e(e.ctx),q=!1,ue=++fe,e.ac!==null&&(Bt(()=>{e.ac.abort(ae)}),e.ac=null);try{e.f|=Ke;var c=e.fn,u=c();e.f|=ie;var d=e.deps,v=m?.is_fork;if(C!==null){var h;if(v||Se(e,N),d!==null&&N>0)for(d.length=N+C.length,h=0;h<C.length;h++)d[N+h]=C[h];else e.deps=d=C;if(it()&&(e.f&I)!==0)for(h=N;h<d.length;h++)(d[h].reactions??=[]).push(e)}else!v&&d!==null&&N<d.length&&(Se(e,N),d.length=N);if(Ot()&&F!==null&&!q&&d!==null&&(e.f&(x|U|T))===0)for(h=0;h<F.length;h++)tn(F[h],e);if(i!==null&&i!==e){if(fe++,i.deps!==null)for(let p=0;p<n;p+=1)i.deps[p].rv=fe;if(t!==null)for(const p of t)p.rv=fe;F!==null&&(r===null?r=F:r.push(...F))}return(e.f&Q)!==0&&(e.f^=Q),u}catch(p){return Ct(p)}finally{e.f^=Ke,C=t,N=n,F=r,_=i,P=s,_e(o),q=l,ue=a}}function Ur(e,t){let n=t.reactions;if(n!==null){var r=Sn.call(n,e);if(r!==-1){var i=n.length-1;i===0?n=t.reactions=null:(n[r]=n[i],n.pop())}}if(n===null&&(t.f&x)!==0&&(C===null||!de.call(C,t))){var s=t;(s.f&I)!==0&&(s.f^=I,s.f&=~oe),Ze(s),mr(s),Se(s,0)}}function Se(e,t){var n=e.deps;if(n!==null)for(var r=t;r<n.length;r++)Ur(e,n[r])}function me(e){var t=e.f;if((t&K)===0){y(e,E);var n=w,r=ze;w=e,ze=!0;try{(t&(V|kt))!==0?Ir(e):ot(e),Yt(e);var i=nn(e);e.teardown=typeof i=="function"?i:null,e.wv=Qt;var s;Ge&&rr&&(e.f&T)!==0&&e.deps}finally{ze=r,w=n}}}function O(e){var t=e.f,n=(t&x)!==0;if(_!==null&&!q){var r=w!==null&&(w.f&K)!==0;if(!r&&(P===null||!de.call(P,e))){var i=_.deps;if((_.f&Ke)!==0)e.rv<fe&&(e.rv=fe,C===null&&i!==null&&i[N]===e?N++:C===null?C=[e]:C.push(e));else{(_.deps??=[]).push(e);var s=e.reactions;s===null?e.reactions=[_]:de.call(s,_)||s.push(_)}}}if(ne&&te.has(e))return te.get(e);if(n){var o=e;if(ne){var l=o.v;return((o.f&E)===0&&o.reactions!==null||sn(o))&&(l=tt(o)),te.set(o,l),l}var a=(o.f&I)===0&&!q&&_!==null&&(ze||(_.f&I)!==0),f=(o.f&ie)===0;Te(o)&&(a&&(o.f|=I),Mt(o)),a&&!f&&(Pt(o),rn(o))}if(z?.has(e))return z.get(e);if((e.f&Q)!==0)throw e.v;return e.v}function rn(e){if(e.f|=I,e.deps!==null)for(const t of e.deps)(t.reactions??=[]).push(e),(t.f&x)!==0&&(t.f&I)===0&&(Pt(t),rn(t))}function sn(e){if(e.v===S)return!0;if(e.deps===null)return!1;for(const t of e.deps)if(te.has(t)||(t.f&x)!==0&&sn(t))return!0;return!1}function at(e){var t=q;try{return q=!0,e()}finally{q=t}}const zr=["touchstart","touchmove"];function jr(e){return zr.includes(e)}const Oe=Symbol("events"),on=new Set,lt=new Set;function an(e,t,n){(t[Oe]??={})[e]=n}function Wr(e){for(var t=0;t<e.length;t++)on.add(e[t]);for(var n of lt)n(e)}let ln=null;function fn(e){var t=this,n=t.ownerDocument,r=e.type,i=e.composedPath?.()||[],s=i[0]||e.target;ln=e;var o=0,l=ln===e&&e[Oe];if(l){var a=i.indexOf(l);if(a!==-1&&(t===document||t===window)){e[Oe]=t;return}var f=i.indexOf(t);if(f===-1)return;a<=f&&(o=a)}if(s=i[o]||e.target,s!==t){Cn(e,"currentTarget",{configurable:!0,get(){return s||n}});var c=_,u=w;M(null),Y(null);try{for(var d,v=[];s!==null;){var h=s.assignedSlot||s.parentNode||s.host||null;try{var p=s[Oe]?.[r];p!=null&&(!s.disabled||e.target===s)&&p.call(s,e)}catch(b){d?v.push(b):d=b}if(e.cancelBubble||h===t||h===null)break;s=h}if(d){for(let b of v)queueMicrotask(()=>{throw b});throw d}}finally{e[Oe]=t,delete e.currentTarget,M(c),Y(u)}}}const Hr=globalThis?.window?.trustedTypes&&globalThis.window.trustedTypes.createPolicy("svelte-trusted-html",{createHTML:e=>e});function qr(e){return Hr?.createHTML(e)??e}function Br(e){var t=qt("template");return t.innerHTML=qr(e.replaceAll("<!>","<!---->")),t.content}function ft(e,t){var n=w;n.nodes===null&&(n.nodes={start:e,end:t,a:null,t:null})}function Ce(e,t){var n=(t&Qn)!==0,r=(t&$n)!==0,i,s=!e.startsWith("<!>");return()=>{i===void 0&&(i=Br(s?e:"<!>"+e),n||(i=Pe(i)));var o=r||jt?document.importNode(i,!0):i.cloneNode(!0);if(n){var l=Pe(o),a=o.lastChild;ft(l,a)}else ft(o,o);return o}}function Gr(){var e=document.createDocumentFragment(),t=document.createComment(""),n=we();return e.append(t,n),ft(t,n),e}function be(e,t){e!==null&&e.before(t)}function Yr(e,t){return Vr(e,t)}const je=new Map;function Vr(e,{target:t,anchor:n,props:r={},events:i,context:s,intro:o=!0,transformError:l}){yr();var a=void 0,f=Ar(()=>{var c=n??t.appendChild(we());ur(c,{pending:()=>{}},v=>{Ne({});var h=A;s&&(h.c=s),i&&(r.$$events=i),a=e(v,r)||{},De()},l);var u=new Set,d=v=>{for(var h=0;h<v.length;h++){var p=v[h];if(!u.has(p)){u.add(p);var b=jr(p);for(const k of[t,document]){var D=je.get(k);D===void 0&&(D=new Map,je.set(k,D));var g=D.get(p);g===void 0?(k.addEventListener(p,fn,{passive:b}),D.set(p,1)):D.set(p,g+1)}}}};return d(On(on)),lt.add(d),()=>{for(var v of u)for(const b of[t,document]){var h=je.get(b),p=h.get(v);--p==0?(b.removeEventListener(v,fn),h.delete(v),h.size===0&&je.delete(b)):h.set(v,p)}lt.delete(d),c!==n&&c.parentNode?.removeChild(c)}});return Kr.set(a,f),a}let Kr=new WeakMap;class Xr{anchor;#t=new Map;#a=new Map;#e=new Map;#o=new Set;#r=!0;constructor(t,n=!0){this.anchor=t,this.#r=n}#s=()=>{var t=m;if(this.#t.has(t)){var n=this.#t.get(t),r=this.#a.get(n);if(r)Mr(r),this.#o.delete(n);else{var i=this.#e.get(n);i&&(this.#a.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===t)break;const l=this.#e.get(o);l&&(R(l.effect),this.#e.delete(o))}for(const[s,o]of this.#a){if(s===n||this.#o.has(s))continue;const l=()=>{if(Array.from(this.#t.values()).includes(s)){var f=document.createDocumentFragment();Zt(o,f),f.append(we()),this.#e.set(s,{effect:o,fragment:f})}else R(o);this.#o.delete(s),this.#a.delete(s)};this.#r||!r?(this.#o.add(s),xe(o,l,!1)):l()}}};#n=t=>{this.#t.delete(t);const n=Array.from(this.#t.values());for(const[r,i]of this.#e)n.includes(r)||(R(i.effect),this.#e.delete(r))};ensure(t,n){var r=m,i=xr();if(n&&!this.#a.has(t)&&!this.#e.has(t))if(i){var s=document.createDocumentFragment(),o=we();s.append(o),this.#e.set(t,{effect:J(()=>n(o)),fragment:s})}else this.#a.set(t,J(()=>n(this.anchor)));if(this.#t.set(r,t),i){for(const[l,a]of this.#a)l===t?r.unskip_effect(a):r.skip_effect(a);for(const[l,a]of this.#e)l===t?r.unskip_effect(a.effect):r.skip_effect(a.effect);r.oncommit(this.#s),r.ondiscard(this.#n)}else this.#s()}}function Zr(e,t,n=!1){var r=new Xr(e),i=n?ve:0;function s(o,l){r.ensure(o,l)}st(()=>{var o=!1;t((l,a=0)=>{o=!0,s(a,l)}),o||s(!1,null)},i)}function Jr(e,t){var n;n=document.head.appendChild(we()),st(()=>t(n),Ve|se)}function ut(e,t){Rr(()=>{var n=e.getRootNode(),r=n.host?n:n.head??n.ownerDocument.head;if(!r.querySelector("#"+t.hash)){const i=qt("style");i.id=t.hash,i.textContent=t.code,r.appendChild(i)}})}const un=[...`
2
2
  \r\f \v\uFEFF`];function Qr(e,t,n){var r=e==null?"":""+e;if(t&&(r=r?r+" "+t:t),n){for(var i of Object.keys(n))if(n[i])r=r?r+" "+i:i;else if(r.length)for(var s=i.length,o=0;(o=r.indexOf(i,o))>=0;){var l=o+s;(o===0||un.includes(r[o-1]))&&(l===r.length||un.includes(r[l]))?r=(o===0?"":r.substring(0,o))+r.substring(l+1):o=l}}return r===""?null:r}function cn(e,t,n,r,i,s){var o=e.__className;if(o!==n||o===void 0){var l=Qr(n,r,s);l==null?e.removeAttribute("class"):e.className=l,e.__className=n}else if(s&&i!==s)for(var a in s){var f=!!s[a];(i==null||f!==!!i[a])&&e.classList.toggle(a,f)}return s}const $r=Symbol("is custom element"),ei=Symbol("is html");function ye(e,t,n,r){var i=ti(e);i[t]!==(i[t]=n)&&(t==="loading"&&(e[Pn]=n),n==null?e.removeAttribute(t):typeof n!="string"&&ni(e).includes(t)?e[t]=n:e.setAttribute(t,n))}function ti(e){return e.__attributes??={[$r]:e.nodeName.includes("-"),[ei]:e.namespaceURI===Tt}}var dn=new Map;function ni(e){var t=e.getAttribute("is")||e.nodeName,n=dn.get(t);if(n)return n;dn.set(t,n=[]);for(var r,i=e,s=Element.prototype;s!==i;){r=An(i);for(var o in r)r[o].set&&n.push(o);i=bt(i)}return n}let We=!1;function ri(e){var t=We;try{return We=!1,[e(),We]}finally{We=t}}function ct(e,t,n,r){var i=(n&Zn)!==0,s=(n&Jn)!==0,o=r,l=!0,a=()=>(l&&(l=!1,o=s?at(r):r),o),f;if(i){var c=Re in e||Mn in e;f=he(e,t)?.set??(c&&t in e?g=>e[t]=g:void 0)}var u,d=!1;i?[u,d]=ri(()=>e[t]):u=e[t],u===void 0&&r!==void 0&&(u=a(),f&&(qn(),f(u)));var v;if(v=()=>{var g=e[t];return g===void 0?a():(l=!0,g)},(n&Xn)===0)return v;if(f){var h=e.$$legacy;return(function(g,k){return arguments.length>0?((!k||h||d)&&f(k?v():g),g):v()})}var p=!1,b=((n&Kn)!==0?et:pr)(()=>(p=!1,v()));i&&O(b);var D=w;return(function(g,k){if(arguments.length>0){const ce=k?O(b):i?le(g):g;return H(b,ce),p=!0,o!==void 0&&(o=ce),g}return ne&&p||(D.f&K)!==0?b.v:O(b)})}function hn(e){A===null&&Fn(),Cr(()=>{const t=at(e);if(typeof t=="function")return t})}const ii="5";typeof window<"u"&&((window.__svelte??={}).v??=new Set).add(ii);var si=Ce('<div><iframe id="chat-frame" title="Chat" class="bot svelte-yhk8rr" frameborder="0" allow="microphone; clipboard-write" allowfullscreen=""></iframe></div>'),oi=Ce(`<p class="svelte-yhk8rr">Please make sure that the script tag has 'id="chatbot"' and the attribute
3
3
  'data-server' with the full qualified URL to the chatbot-server.</p> <pre class="svelte-yhk8rr">
4
4
  <code class="svelte-yhk8rr">
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@botfabrik/engine-webclient",
3
- "version": "4.109.1",
3
+ "version": "4.109.2",
4
4
  "description": "Webclient for Botfabriks Bot Engine",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -50,5 +50,5 @@
50
50
  "tsx": "^4.21.0",
51
51
  "typescript": "5.9.3"
52
52
  },
53
- "gitHead": "6b9b48a83287c3d0e5df679959121822094ac25c"
53
+ "gitHead": "3e84cfed3f3678659569c22e827a96630ef3121d"
54
54
  }