@botfabrik/engine-webclient 4.109.5 → 4.109.7
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/dist/embed/bundle.js +4 -4
- package/package.json +5 -5
package/dist/embed/bundle.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
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
|
-
\r\f \v\uFEFF`];function Qr(e,t,n){var
|
|
1
|
+
(function(){"use strict";const Ye=!1;var Tn=Array.isArray,Sn=Array.prototype.indexOf,ce=Array.prototype.includes,On=Array.from,Cn=Object.defineProperty,de=Object.getOwnPropertyDescriptor,An=Object.getOwnPropertyDescriptors,Rn=Object.prototype,Nn=Array.prototype,mt=Object.getPrototypeOf,bt=Object.isExtensible;const Dn=()=>{};function In(e){for(var t=0;t<e.length;t++)e[t]()}function yt(){var e,t,n=new Promise((i,r)=>{e=i,t=r});return{promise:n,resolve:e,reject:t}}const x=2,he=4,xe=8,Et=1<<24,J=16,B=32,re=64,Ve=128,I=512,E=1024,T=2048,U=4096,G=8192,V=16384,ve=32768,_e=65536,kt=1<<17,xt=1<<18,ie=1<<19,Ln=1<<20,se=65536,Ke=1<<21,Xe=1<<22,Q=1<<23,Ne=Symbol("$state"),Mn=Symbol("legacy props"),Pn=Symbol(""),oe=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 pe(e){A=e}function De(e,t=!1,n){A={p:A,i:!1,c:null,e:null,s:e,x:null,l:null}}function Ie(e){var t=A,n=t.e;if(n!==null){t.e=null;for(var i of n)Gt(i)}return t.i=!0,A=t.p,{}}function Ot(){return!0}let ge=[];function ir(){var e=ge;ge=[],In(e)}function we(e){if(ge.length===0){var t=ge;queueMicrotask(()=>{t===ge&&ir()})}ge.push(e)}function Ct(e){var t=w;if(t===null)return _.f|=Q,e;if((t.f&ve)===0&&(t.f&he)===0)throw e;$(e,t)}function $(e,t){for(;t!==null;){if((t.f&Ve)!==0){if((t.f&ve)===0)throw e;try{t.b.error(e);return}catch(n){e=n}}t=t.parent}throw e}const sr=-7169;function b(e,t){e.f=e.f&sr|t}function Ze(e){(e.f&I)!==0||e.deps===null?b(e,E):b(e,U)}function At(e){if(e!==null)for(const t of e)(t.f&x)===0||(t.f&se)===0||(t.f^=se,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),b(e,E)}const Le=new Set;let y=null,z=null,L=[],Je=null,me=null;class ee{current=new Map;previous=new Map;#e=new Set;#a=new Set;#t=0;#o=0;#n=null;#s=new Set;#r=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 i of n.d)b(i,T),j(i);for(i of n.m)b(i,U),j(i)}}process(t){L=[],this.apply();var n=me=[],i=[];for(const r of t)this.#f(r,n,i);if(me=null,this.#u()){this.#c(i),this.#c(n);for(const[r,s]of this.#i)Lt(r,s)}else{y=null;for(const r of this.#e)r(this);this.#e.clear(),this.#t===0&&this.#d(),Nt(i),Nt(n),this.#s.clear(),this.#r.clear(),this.#n?.resolve()}z=null}#f(t,n,i){t.f^=E;for(var r=t.first;r!==null;){var s=r.f,o=(s&(B|re))!==0,l=o&&(s&E)!==0,a=l||(s&G)!==0||this.#i.has(r);if(!a&&r.fn!==null){o?r.f^=E:(s&he)!==0?n.push(r):Oe(r)&&((s&J)!==0&&this.#r.add(r),ye(r));var f=r.first;if(f!==null){r=f;continue}}for(;r!==null;){var u=r.next;if(u!==null){r=u;break}r=r.parent}}}#c(t){for(var n=0;n<t.length;n+=1)Rt(t[n],this.#s,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(){y=this,this.apply()}deactivate(){y===this&&(y=null,z=null)}flush(){if(L.length>0)y=this,or();else if(this.#t===0&&!this.is_fork){for(const t of this.#e)t(this);this.#e.clear(),this.#d(),this.#n?.resolve()}this.deactivate()}discard(){for(const t of this.#a)t(this);this.#a.clear()}#d(){if(Le.size>1){this.previous.clear();var t=y,n=z,i=!0;for(const s of Le){if(s===this){i=!1;continue}const o=[];for(const[a,f]of this.current){if(s.current.has(a))if(i&&f!==s.current.get(a))s.current.set(a,f);else continue;o.push(a)}if(o.length===0)continue;const l=[...s.current.keys()].filter(a=>!this.current.has(a));if(l.length>0){var r=L;L=[];const a=new Set,f=new Map;for(const u of o)Dt(u,l,a,f);if(L.length>0){y=s,s.apply();for(const u of L)s.#f(u,[],[]);s.deactivate()}L=r}}y=t,z=n}this.#i.clear(),Le.delete(this)}increment(t){this.#t+=1,t&&(this.#o+=1)}decrement(t){this.#t-=1,t&&(this.#o-=1),!this.#l&&(this.#l=!0,we(()=>{this.#l=!1,this.#u()?L.length>0&&this.flush():this.revive()}))}revive(){for(const t of this.#s)this.#r.delete(t),b(t,T),j(t);for(const t of this.#r)b(t,U),j(t);this.flush()}oncommit(t){this.#e.add(t)}ondiscard(t){this.#a.add(t)}settled(){return(this.#n??=yt()).promise}static ensure(){if(y===null){const t=y=new ee;Le.add(y),we(()=>{y===t&&t.flush()})}return y}apply(){}}function or(){var e=null;try{for(var t=0;L.length>0;){var n=ee.ensure();if(t++>1e3){var i,r;ar()}n.process(L),te.clear()}}finally{L=[],Je=null,me=null}}function ar(){try{Hn()}catch(e){$(e,Je)}}let K=null;function Nt(e){var t=e.length;if(t!==0){for(var n=0;n<t;){var i=e[n++];if((i.f&(V|G))===0&&Oe(i)&&(K=new Set,ye(i),i.deps===null&&i.first===null&&i.nodes===null&&i.teardown===null&&i.ac===null&&Vt(i),K?.size>0)){te.clear();for(const r of K){if((r.f&(V|G))!==0)continue;const s=[r];let o=r.parent;for(;o!==null;)K.has(o)&&(K.delete(o),s.push(o)),o=o.parent;for(let l=s.length-1;l>=0;l--){const a=s[l];(a.f&(V|G))===0&&ye(a)}}K.clear()}}K=null}}function Dt(e,t,n,i){if(!n.has(e)&&(n.add(e),e.reactions!==null))for(const r of e.reactions){const s=r.f;(s&x)!==0?Dt(r,t,n,i):(s&(Xe|J))!==0&&(s&T)===0&&It(r,t,i)&&(b(r,T),j(r))}}function It(e,t,n){const i=n.get(e);if(i!==void 0)return i;if(e.deps!==null)for(const r of e.deps){if(ce.call(t,r))return!0;if((r.f&x)!==0&&It(r,t,n))return n.set(r,!0),!0}return n.set(e,!1),!1}function j(e){var t=Je=e,n=t.b;if(n?.is_pending&&(e.f&(he|xe|Et))!==0&&(e.f&ve)===0){n.defer_effect(e);return}for(;t.parent!==null;){t=t.parent;var i=t.f;if(me!==null&&t===w&&(e.f&xe)===0)return;if((i&(re|B))!==0){if((i&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),b(e,E);for(var n=e.first;n!==null;)Lt(n,t),n=n.next}}function lr(e){let t=0,n=Me(0),i;return()=>{rt()&&(O(n),Dr(()=>(t===0&&(i=ot(()=>e(()=>Te(n)))),t+=1,()=>{we(()=>{t-=1,t===0&&(i?.(),i=void 0,Te(n))})})))}}var fr=_e|ie;function ur(e,t,n,i){new cr(e,t,n,i)}class cr{parent;is_pending=!1;transform_error;#e;#a=null;#t;#o;#n;#s=null;#r=null;#i=null;#l=null;#u=0;#f=0;#c=!1;#d=new Set;#v=new Set;#h=null;#m=lr(()=>(this.#h=Me(this.#u),()=>{this.#h=null}));constructor(t,n,i,r){this.#e=t,this.#t=n,this.#o=s=>{var o=w;o.b=this,o.f|=Ve,i(s)},this.parent=w.b,this.transform_error=r??this.parent?.transform_error??(s=>s),this.#n=it(()=>{this.#g()},fr)}#b(){try{this.#s=Z(()=>this.#o(this.#e))}catch(t){this.error(t)}}#y(t){const n=this.#t.failed;n&&(this.#i=Z(()=>{n(this.#e,()=>t,()=>()=>{})}))}#E(){const t=this.#t.pending;t&&(this.is_pending=!0,this.#r=Z(()=>t(this.#e)),we(()=>{var n=this.#l=document.createDocumentFragment(),i=be();n.append(i),this.#s=this.#p(()=>(ee.ensure(),Z(()=>this.#o(i)))),this.#f===0&&(this.#e.before(n),this.#l=null,Se(this.#r,()=>{this.#r=null}),this.#_())}))}#g(){try{if(this.is_pending=this.has_pending_snippet(),this.#f=0,this.#u=0,this.#s=Z(()=>{this.#o(this.#e)}),this.#f>0){var t=this.#l=document.createDocumentFragment();Zt(this.#s,t);const n=this.#t.pending;this.#r=Z(()=>n(this.#e))}else this.#_()}catch(n){this.error(n)}}#_(){this.is_pending=!1;for(const t of this.#d)b(t,T),j(t);for(const t of this.#v)b(t,U),j(t);this.#d.clear(),this.#v.clear()}defer_effect(t){Rt(t,this.#d,this.#v)}is_rendered(){return!this.is_pending&&(!this.parent||this.parent.is_rendered())}has_pending_snippet(){return!!this.#t.pending}#p(t){var n=w,i=_,r=A;Y(this.#n),M(this.#n),pe(this.#n.ctx);try{return t()}catch(s){return Ct(s),null}finally{Y(n),M(i),pe(r)}}#w(t){if(!this.has_pending_snippet()){this.parent&&this.parent.#w(t);return}this.#f+=t,this.#f===0&&(this.#_(),this.#r&&Se(this.#r,()=>{this.#r=null}),this.#l&&(this.#e.before(this.#l),this.#l=null))}update_pending_count(t){this.#w(t),this.#u+=t,!(!this.#h||this.#c)&&(this.#c=!0,we(()=>{this.#c=!1,this.#h&&Pe(this.#h,this.#u)}))}get_effect_pending(){return this.#m(),O(this.#h)}error(t){var n=this.#t.onerror;let i=this.#t.failed;if(!n&&!i)throw t;this.#s&&(R(this.#s),this.#s=null),this.#r&&(R(this.#r),this.#r=null),this.#i&&(R(this.#i),this.#i=null);var r=!1,s=!1;const o=()=>{if(r){er();return}r=!0,s&&Vn(),this.#i!==null&&Se(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)}i&&(this.#i=this.#p(()=>{ee.ensure();try{return Z(()=>{var f=w;f.b=this,f.f|=Ve,i(this.#e,()=>a,()=>o)})}catch(f){return $(f,this.#n.parent),null}}))};we(()=>{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,i){const r=$e;var s=e.filter(c=>!c.settled);if(n.length===0&&s.length===0){i(t.map(r));return}var o=w,l=hr(),a=s.length===1?s[0].promise:s.length>1?Promise.all(s.map(c=>c.promise)):null;function f(c){l();try{i(c)}catch(d){(o.f&V)===0&&$(d,o)}Qe()}if(n.length===0){a.then(()=>f(t.map(r)));return}function u(){l(),Promise.all(n.map(c=>_r(c))).then(c=>f([...t.map(r),...c])).catch(c=>$(c,o))}a?a.then(u):u()}function hr(){var e=w,t=_,n=A,i=y;return function(s=!0){Y(e),M(t),pe(n),s&&i?.activate()}}function Qe(e=!0){Y(null),M(null),pe(null),e&&y?.deactivate()}function vr(){var e=w.b,t=y,n=e.is_rendered();return e.update_pending_count(1),t.increment(n),()=>{e.update_pending_count(-1),t.decrement(n)}}function $e(e){var t=x|T,n=_!==null&&(_.f&x)!==0?_:null;return w!==null&&(w.f|=ie),{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 r=void 0,s=Me(S),o=!_,l=new Map;return Nr(()=>{var a=yt();r=a.promise;try{Promise.resolve(e()).then(a.resolve,a.reject).finally(Qe)}catch(d){a.reject(d),Qe()}var f=y;if(o){var u=vr();l.get(f)?.reject(oe),l.delete(f),l.set(f,a)}const c=(d,v=void 0)=>{if(f.activate(),v)v!==oe&&(s.f|=Q,Pe(s,v));else{(s.f&Q)!==0&&(s.f^=Q),Pe(s,d);for(const[h,p]of l){if(l.delete(h),h===f)break;p.reject(oe)}}u&&u()};a.promise.then(c,d=>c(null,d||"unknown"))}),Or(()=>{for(const a of l.values())a.reject(oe)}),new Promise(a=>{function f(u){function c(){u===r?a(s):f(r)}u.then(c,c)}f(r)})}function pr(e){const t=$e(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&V)===0?t:null;t=t.parent}return null}function et(e){var t,n=w;Y(wr(e));try{e.f&=~se,gr(e),t=nn(e)}finally{Y(n)}return t}function Mt(e){var t=et(e);if(!e.equals(t)&&(e.wv=en(),(!y?.is_fork||e.deps===null)&&(e.v=t,e.deps===null))){b(e,E);return}ne||(z!==null?(rt()||y?.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(oe),t.teardown=Dn,t.ac=null,Ce(t,0),st(t))}function Pt(e){if(e.effects!==null)for(const t of e.effects)t.teardown&&ye(t)}let tt=new Set;const te=new Map;let Ft=!1;function Me(e,t){var n={f:0,v:e,reactions:null,equals:St,rv:0,wv:0};return n}function W(e,t){const n=Me(e);return Pr(n),n}function H(e,t,n=!1){_!==null&&(!q||(_.f&kt)!==0)&&Ot()&&(_.f&(x|J|Xe|kt))!==0&&(P===null||!ce.call(P,e))&&Yn();let i=n?ae(t):t;return Pe(e,i)}function Pe(e,t){if(!e.equals(t)){var n=e.v;ne?te.set(e,t):te.set(e,n),e.v=t;var i=ee.ensure();if(i.capture(e,n),(e.f&x)!==0){const r=e;(e.f&T)!==0&&et(r),Ze(r)}e.wv=en(),Ut(e,T),w!==null&&(w.f&E)!==0&&(w.f&(B|re))===0&&(F===null?Fr([e]):F.push(e)),!i.is_fork&&tt.size>0&&!Ft&&br()}return t}function br(){Ft=!1;for(const e of tt)(e.f&E)!==0&&b(e,U),Oe(e)&&ye(e);tt.clear()}function Te(e){H(e,e.v+1)}function Ut(e,t){var n=e.reactions;if(n!==null)for(var i=n.length,r=0;r<i;r++){var s=n[r],o=s.f,l=(o&T)===0;if(l&&b(s,t),(o&x)!==0){var a=s;z?.delete(a),(o&se)===0&&(o&I&&(s.f|=se),Ut(a,U))}else l&&((o&J)!==0&&K!==null&&K.add(s),j(s))}}function ae(e){if(typeof e!="object"||e===null||Ne in e)return e;const t=mt(e);if(t!==Rn&&t!==Nn)return e;var n=new Map,i=Tn(e),r=W(0),s=fe,o=l=>{if(fe===s)return l();var a=_,f=fe;M(null),$t(s);var u=l();return M(a),$t(f),u};return i&&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 u=n.get(a);return u===void 0?o(()=>{var c=W(f.value);return n.set(a,c),c}):H(u,f.value,!0),!0},deleteProperty(l,a){var f=n.get(a);if(f===void 0){if(a in l){const u=o(()=>W(S));n.set(a,u),Te(r)}}else H(f,S),Te(r);return!0},get(l,a,f){if(a===Ne)return e;var u=n.get(a),c=a in l;if(u===void 0&&(!c||de(l,a)?.writable)&&(u=o(()=>{var v=ae(c?l[a]:S),h=W(v);return h}),n.set(a,u)),u!==void 0){var d=O(u);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 u=n.get(a);u&&(f.value=O(u))}else if(f===void 0){var c=n.get(a),d=c?.v;if(c!==void 0&&d!==S)return{enumerable:!0,configurable:!0,value:d,writable:!0}}return f},has(l,a){if(a===Ne)return!0;var f=n.get(a),u=f!==void 0&&f.v!==S||Reflect.has(l,a);if(f!==void 0||w!==null&&(!u||de(l,a)?.writable)){f===void 0&&(f=o(()=>{var d=u?ae(l[a]):S,v=W(d);return v}),n.set(a,f));var c=O(f);if(c===S)return!1}return u},set(l,a,f,u){var c=n.get(a),d=a in l;if(i&&a==="length")for(var v=f;v<c.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(c===void 0)(!d||de(l,a)?.writable)&&(c=o(()=>W(void 0)),H(c,ae(f)),n.set(a,c));else{d=c.v!==S;var p=o(()=>ae(f));H(c,p)}var m=Reflect.getOwnPropertyDescriptor(l,a);if(m?.set&&m.set.call(u,f),!d){if(i&&typeof a=="string"){var D=n.get("length"),g=Number(a);Number.isInteger(g)&&g>=D.v&&H(D,g+1)}Te(r)}return!0},ownKeys(l){O(r);var a=Reflect.ownKeys(l).filter(c=>{var d=n.get(c);return d===void 0||d.v!==S});for(var[f,u]of n)u.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=de(t,"firstChild").get,Ht=de(t,"nextSibling").get,bt(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),bt(n)&&(n.__t=void 0)}}function be(e=""){return document.createTextNode(e)}function Fe(e){return Wt.call(e)}function Ue(e){return Ht.call(e)}function nt(e,t){return Fe(e)}function Er(e,t=!1){{var n=Fe(e);return n instanceof Comment&&n.data===""?Ue(n):n}}function kr(e,t=1,n=!1){let i=e;for(;t--;)i=Ue(i);return i}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 X(e,t){var n=w;n!==null&&(n.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:n,b:n&&n.b,prev:null,teardown:null,wv:0,ac:null},r=i;if((e&he)!==0)me!==null?me.push(i):j(i);else if(t!==null){try{ye(i)}catch(o){throw R(i),o}r.deps===null&&r.teardown===null&&r.nodes===null&&r.first===r.last&&(r.f&ie)===0&&(r=r.first,(e&J)!==0&&(e&_e)!==0&&r!==null&&(r.f|=_e))}if(r!==null&&(r.parent=n,n!==null&&Sr(r,n),_!==null&&(_.f&x)!==0&&(e&re)===0)){var s=_;(s.effects??=[]).push(r)}return i}function rt(){return _!==null&&!q}function Or(e){const t=X(xe,null);return b(t,E),t.teardown=e,t}function Cr(e){Tr();var t=w.f,n=!_&&(t&B)!==0&&(t&ve)===0;if(n){var i=A;(i.e??=[]).push(e)}else return Gt(e)}function Gt(e){return X(he|Ln,e)}function Ar(e){ee.ensure();const t=X(re|ie,e);return(n={})=>new Promise(i=>{n.outro?Se(t,()=>{R(t),i(void 0)}):(R(t),i(void 0))})}function Rr(e){return X(he,e)}function Nr(e){return X(Xe|ie,e)}function Dr(e,t=0){return X(xe|t,e)}function ze(e,t=[],n=[],i=[]){dr(i,t,n,r=>{X(xe,()=>e(...r.map(O)))})}function it(e,t=0){var n=X(J|t,e);return n}function Z(e){return X(B|ie,e)}function Yt(e){var t=e.teardown;if(t!==null){const n=ne,i=_;Jt(!0),M(null);try{t.call(null)}finally{Jt(n),M(i)}}}function st(e,t=!1){var n=e.first;for(e.first=e.last=null;n!==null;){const r=n.ac;r!==null&&Bt(()=>{r.abort(oe)});var i=n.next;(n.f&re)!==0?n.parent=null:R(n,t),n=i}}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&xt)!==0)&&e.nodes!==null&&e.nodes.end!==null&&(Lr(e.nodes.start,e.nodes.end),n=!0),st(e,t&&!n),Ce(e,0),b(e,V);var i=e.nodes&&e.nodes.t;if(i!==null)for(const s of i)s.stop();Yt(e);var r=e.parent;r!==null&&r.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:Ue(e);e.remove(),e=n}}function Vt(e){var t=e.parent,n=e.prev,i=e.next;n!==null&&(n.next=i),i!==null&&(i.prev=n),t!==null&&(t.first===e&&(t.first=i),t.last===e&&(t.last=n))}function Se(e,t,n=!0){var i=[];Kt(e,i,!0);var r=()=>{n&&R(e),t&&t()},s=i.length;if(s>0){var o=()=>--s||r();for(var l of i)l.out(o)}else r()}function Kt(e,t,n){if((e.f&G)===0){e.f^=G;var i=e.nodes&&e.nodes.t;if(i!==null)for(const l of i)(l.is_global||n)&&t.push(l);for(var r=e.first;r!==null;){var s=r.next,o=(r.f&_e)!==0||(r.f&B)!==0&&(e.f&J)!==0;Kt(r,t,o?n:!1),r=s}}}function Mr(e){Xt(e,!0)}function Xt(e,t){if((e.f&G)!==0){e.f^=G,(e.f&E)===0&&(b(e,T),j(e));for(var n=e.first;n!==null;){var i=n.next,r=(n.f&_e)!==0||(n.f&B)!==0;Xt(n,r?t:!1),n=i}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,i=e.nodes.end;n!==null;){var r=n===i?null:Ue(n);t.append(n),n=r}}let je=!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,le=0,fe=le;function $t(e){fe=e}function en(){return++Qt}function Oe(e){var t=e.f;if((t&T)!==0)return!0;if(t&x&&(e.f&=~se),(t&U)!==0){for(var n=e.deps,i=n.length,r=0;r<i;r++){var s=n[r];if(Oe(s)&&Mt(s),s.wv>e.wv)return!0}(t&I)!==0&&z===null&&b(e,E)}return!1}function tn(e,t,n=!0){var i=e.reactions;if(i!==null&&!(P!==null&&ce.call(P,e)))for(var r=0;r<i.length;r++){var s=i[r];(s.f&x)!==0?tn(s,t,!1):t===s&&(n?b(s,T):(s.f&E)!==0&&b(s,U),j(s))}}function nn(e){var t=C,n=N,i=F,r=_,s=P,o=A,l=q,a=fe,f=e.f;C=null,N=0,F=null,_=(f&(B|re))===0?e:null,P=null,pe(e.ctx),q=!1,fe=++le,e.ac!==null&&(Bt(()=>{e.ac.abort(oe)}),e.ac=null);try{e.f|=Ke;var u=e.fn,c=u();e.f|=ve;var d=e.deps,v=y?.is_fork;if(C!==null){var h;if(v||Ce(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(rt()&&(e.f&I)!==0)for(h=N;h<d.length;h++)(d[h].reactions??=[]).push(e)}else!v&&d!==null&&N<d.length&&(Ce(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(r!==null&&r!==e){if(le++,r.deps!==null)for(let p=0;p<n;p+=1)r.deps[p].rv=le;if(t!==null)for(const p of t)p.rv=le;F!==null&&(i===null?i=F:i.push(...F))}return(e.f&Q)!==0&&(e.f^=Q),c}catch(p){return Ct(p)}finally{e.f^=Ke,C=t,N=n,F=i,_=r,P=s,pe(o),q=l,fe=a}}function Ur(e,t){let n=t.reactions;if(n!==null){var i=Sn.call(n,e);if(i!==-1){var r=n.length-1;r===0?n=t.reactions=null:(n[i]=n[r],n.pop())}}if(n===null&&(t.f&x)!==0&&(C===null||!ce.call(C,t))){var s=t;(s.f&I)!==0&&(s.f^=I,s.f&=~se),Ze(s),mr(s),Ce(s,0)}}function Ce(e,t){var n=e.deps;if(n!==null)for(var i=t;i<n.length;i++)Ur(e,n[i])}function ye(e){var t=e.f;if((t&V)===0){b(e,E);var n=w,i=je;w=e,je=!0;try{(t&(J|Et))!==0?Ir(e):st(e),Yt(e);var r=nn(e);e.teardown=typeof r=="function"?r:null,e.wv=Qt;var s;Ye&&rr&&(e.f&T)!==0&&e.deps}finally{je=i,w=n}}}function O(e){var t=e.f,n=(t&x)!==0;if(_!==null&&!q){var i=w!==null&&(w.f&V)!==0;if(!i&&(P===null||!ce.call(P,e))){var r=_.deps;if((_.f&Ke)!==0)e.rv<le&&(e.rv=le,C===null&&r!==null&&r[N]===e?N++:C===null?C=[e]:C.push(e));else{(_.deps??=[]).push(e);var s=e.reactions;s===null?e.reactions=[_]:ce.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=et(o)),te.set(o,l),l}var a=(o.f&I)===0&&!q&&_!==null&&(je||(_.f&I)!==0),f=(o.f&ve)===0;Oe(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 ot(e){var t=q;try{return q=!0,e()}finally{q=t}}const zr=["touchstart","touchmove"];function jr(e){return zr.includes(e)}const Ae=Symbol("events"),on=new Set,at=new Set;function an(e,t,n){(t[Ae]??={})[e]=n}function Wr(e){for(var t=0;t<e.length;t++)on.add(e[t]);for(var n of at)n(e)}let ln=null;function fn(e){var t=this,n=t.ownerDocument,i=e.type,r=e.composedPath?.()||[],s=r[0]||e.target;ln=e;var o=0,l=ln===e&&e[Ae];if(l){var a=r.indexOf(l);if(a!==-1&&(t===document||t===window)){e[Ae]=t;return}var f=r.indexOf(t);if(f===-1)return;a<=f&&(o=a)}if(s=r[o]||e.target,s!==t){Cn(e,"currentTarget",{configurable:!0,get(){return s||n}});var u=_,c=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[Ae]?.[i];p!=null&&(!s.disabled||e.target===s)&&p.call(s,e)}catch(m){d?v.push(m):d=m}if(e.cancelBubble||h===t||h===null)break;s=h}if(d){for(let m of v)queueMicrotask(()=>{throw m});throw d}}finally{e[Ae]=t,delete e.currentTarget,M(u),Y(c)}}}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 lt(e,t){var n=w;n.nodes===null&&(n.nodes={start:e,end:t,a:null,t:null})}function Re(e,t){var n=(t&Qn)!==0,i=(t&$n)!==0,r,s=!e.startsWith("<!>");return()=>{r===void 0&&(r=Br(s?e:"<!>"+e),n||(r=Fe(r)));var o=i||jt?document.importNode(r,!0):r.cloneNode(!0);if(n){var l=Fe(o),a=o.lastChild;lt(l,a)}else lt(o,o);return o}}function Gr(){var e=document.createDocumentFragment(),t=document.createComment(""),n=be();return e.append(t,n),lt(t,n),e}function Ee(e,t){e!==null&&e.before(t)}function Yr(e,t){return Vr(e,t)}const We=new Map;function Vr(e,{target:t,anchor:n,props:i={},events:r,context:s,intro:o=!0,transformError:l}){yr();var a=void 0,f=Ar(()=>{var u=n??t.appendChild(be());ur(u,{pending:()=>{}},v=>{De({});var h=A;s&&(h.c=s),r&&(i.$$events=r),a=e(v,i)||{},Ie()},l);var c=new Set,d=v=>{for(var h=0;h<v.length;h++){var p=v[h];if(!c.has(p)){c.add(p);var m=jr(p);for(const k of[t,document]){var D=We.get(k);D===void 0&&(D=new Map,We.set(k,D));var g=D.get(p);g===void 0?(k.addEventListener(p,fn,{passive:m}),D.set(p,1)):D.set(p,g+1)}}}};return d(On(on)),at.add(d),()=>{for(var v of c)for(const m of[t,document]){var h=We.get(m),p=h.get(v);--p==0?(m.removeEventListener(v,fn),h.delete(v),h.size===0&&We.delete(m)):h.set(v,p)}at.delete(d),u!==n&&u.parentNode?.removeChild(u)}});return Kr.set(a,f),a}let Kr=new WeakMap;class Xr{anchor;#e=new Map;#a=new Map;#t=new Map;#o=new Set;#n=!0;constructor(t,n=!0){this.anchor=t,this.#n=n}#s=t=>{if(this.#e.has(t)){var n=this.#e.get(t),i=this.#a.get(n);if(i)Mr(i),this.#o.delete(n);else{var r=this.#t.get(n);r&&(this.#a.set(n,r.effect),this.#t.delete(n),r.fragment.lastChild.remove(),this.anchor.before(r.fragment),i=r.effect)}for(const[s,o]of this.#e){if(this.#e.delete(s),s===t)break;const l=this.#t.get(o);l&&(R(l.effect),this.#t.delete(o))}for(const[s,o]of this.#a){if(s===n||this.#o.has(s))continue;const l=()=>{if(Array.from(this.#e.values()).includes(s)){var f=document.createDocumentFragment();Zt(o,f),f.append(be()),this.#t.set(s,{effect:o,fragment:f})}else R(o);this.#o.delete(s),this.#a.delete(s)};this.#n||!i?(this.#o.add(s),Se(o,l,!1)):l()}}};#r=t=>{this.#e.delete(t);const n=Array.from(this.#e.values());for(const[i,r]of this.#t)n.includes(i)||(R(r.effect),this.#t.delete(i))};ensure(t,n){var i=y,r=xr();if(n&&!this.#a.has(t)&&!this.#t.has(t))if(r){var s=document.createDocumentFragment(),o=be();s.append(o),this.#t.set(t,{effect:Z(()=>n(o)),fragment:s})}else this.#a.set(t,Z(()=>n(this.anchor)));if(this.#e.set(i,t),r){for(const[l,a]of this.#a)l===t?i.unskip_effect(a):i.skip_effect(a);for(const[l,a]of this.#t)l===t?i.unskip_effect(a.effect):i.skip_effect(a.effect);i.oncommit(this.#s),i.ondiscard(this.#r)}else this.#s(i)}}function Zr(e,t,n=!1){var i=new Xr(e),r=n?_e:0;function s(o,l){i.ensure(o,l)}it(()=>{var o=!1;t((l,a=0)=>{o=!0,s(a,l)}),o||s(!1,null)},r)}function Jr(e,t){var n;n=document.head.appendChild(be()),it(()=>t(n),xt|ie)}function ft(e,t){Rr(()=>{var n=e.getRootNode(),i=n.host?n:n.head??n.ownerDocument.head;if(!i.querySelector("#"+t.hash)){const r=qt("style");r.id=t.hash,r.textContent=t.code,i.appendChild(r)}})}const un=[...`
|
|
2
|
+
\r\f \v\uFEFF`];function Qr(e,t,n){var i=e==null?"":""+e;if(t&&(i=i?i+" "+t:t),n){for(var r of Object.keys(n))if(n[r])i=i?i+" "+r:r;else if(i.length)for(var s=r.length,o=0;(o=i.indexOf(r,o))>=0;){var l=o+s;(o===0||un.includes(i[o-1]))&&(l===i.length||un.includes(i[l]))?i=(o===0?"":i.substring(0,o))+i.substring(l+1):o=l}}return i===""?null:i}function cn(e,t,n,i,r,s){var o=e.__className;if(o!==n||o===void 0){var l=Qr(n,i,s);l==null?e.removeAttribute("class"):e.className=l,e.__className=n}else if(s&&r!==s)for(var a in s){var f=!!s[a];(r==null||f!==!!r[a])&&e.classList.toggle(a,f)}return s}const $r=Symbol("is custom element"),ei=Symbol("is html");function ke(e,t,n,i){var r=ti(e);r[t]!==(r[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 i,r=e,s=Element.prototype;s!==r;){i=An(r);for(var o in i)i[o].set&&n.push(o);r=mt(r)}return n}let He=!1;function ri(e){var t=He;try{return He=!1,[e(),He]}finally{He=t}}function ut(e,t,n,i){var r=(n&Zn)!==0,s=(n&Jn)!==0,o=i,l=!0,a=()=>(l&&(l=!1,o=s?ot(i):i),o),f;if(r){var u=Ne in e||Mn in e;f=de(e,t)?.set??(u&&t in e?g=>e[t]=g:void 0)}var c,d=!1;r?[c,d]=ri(()=>e[t]):c=e[t],c===void 0&&i!==void 0&&(c=a(),f&&(qn(),f(c)));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,m=((n&Kn)!==0?$e:pr)(()=>(p=!1,v()));r&&O(m);var D=w;return(function(g,k){if(arguments.length>0){const ue=k?O(m):r?ae(g):g;return H(m,ue),p=!0,o!==void 0&&(o=ue),g}return ne&&p||(D.f&V)!==0?m.v:O(m)})}function hn(e){A===null&&Fn(),Cr(()=>{const t=ot(e);if(typeof t=="function")return t})}const ii="5";typeof window<"u"&&((window.__svelte??={}).v??=new Set).add(ii);var si=Re('<div><iframe id="chat-frame" title="Chat" class="bot svelte-yhk8rr" frameborder="0" allow="microphone; clipboard-write" allowfullscreen=""></iframe></div>'),oi=Re(`<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">
|
|
5
5
|
<script
|
|
@@ -20,10 +20,10 @@
|
|
|
20
20
|
|
|
21
21
|
@media screen and (min-width: 768px) {#chat-frame.svelte-yhk8rr {border-radius:var(--window-border-radius, 8px);}.bot-border.svelte-yhk8rr {height:var(--window-height, 46em);max-height:var(--window-max-height, calc(100vh - 2em));width:var(--window-width, 26em);top:var(--window-top, auto);right:var(--window-right, 1em);bottom:var(--window-bottom, 1em);left:var(--window-left, auto);border-radius:var(--window-border-radius, 8px);}.bot-border.closed.svelte-yhk8rr {transform:translateY(var(--window-height, 46em));opacity:0;}
|
|
22
22
|
}p.svelte-yhk8rr,
|
|
23
|
-
pre.svelte-yhk8rr {max-width:300px;}pre.svelte-yhk8rr {font-size:0.6em;line-height:0.5;}`};function li(e,t){
|
|
23
|
+
pre.svelte-yhk8rr {max-width:300px;}pre.svelte-yhk8rr {font-size:0.6em;line-height:0.5;}`};function li(e,t){De(t,!0),ft(e,ai),hn(()=>{document.getElementById("chat-frame")?.addEventListener("load",t.onLoad)});var n=Gr(),i=Er(n);{var r=o=>{var l=si();let a;var f=nt(l);ze(u=>{a=cn(l,1,"bot-border svelte-yhk8rr",null,a,{closed:!t.open}),ke(l,"aria-hidden",t.open?"false":"true"),ke(f,"src",u)},[()=>`${t.server}${t.server.indexOf("?")===-1?"?":"&"}referrer=${encodeURIComponent(t.referrer??"")}`]),Ee(o,l)},s=o=>{var l=oi();Ee(o,l)};Zr(i,o=>{t.server?o(r):o(s,!1)})}Ee(e,n),Ie()}var fi=Re('<div class="chat-button-wrapper svelte-1xi58vz" tabindex="0" role="button" aria-label="Open chat window"><img class="chat-button svelte-1xi58vz" alt="Open chat window"/></div>');const ui={hash:"svelte-1xi58vz",code:`.svelte-1xi58vz,
|
|
24
24
|
.svelte-1xi58vz:before,
|
|
25
25
|
.svelte-1xi58vz:after {box-sizing:border-box;}.chat-button-wrapper.svelte-1xi58vz {position:fixed;top:var(--fab-top-mobile, var(--fab-top, auto));right:var(--fab-right-mobile, var(--fab-right, 1.5em));bottom:var(--fab-bottom-mobile, var(--fab-bottom, 1.5em));left:var(--fab-left-mobile, var(--fab-left, auto));width:var(--fab-size-mobile, var(--fab-size, 5em));height:var(--fab-size-mobile, var(--fab-size, 5em));z-index:999;}
|
|
26
26
|
|
|
27
27
|
@media screen and (min-width: 768px) {.chat-button-wrapper.svelte-1xi58vz {top:var(--fab-top, auto);right:var(--fab-right, 1.5em);bottom:var(--fab-bottom, 1.5em);left:var(--fab-left, auto);width:var(--fab-size, 6em);height:var(--fab-size, 6em);}
|
|
28
28
|
}.chat-button.svelte-1xi58vz {display:block;height:100%;cursor:pointer;border-radius:50%;box-shadow:9px 9px 16px rgba(0, 0, 0, 0.25);transition:transform 100ms,
|
|
29
|
-
box-shadow 100ms;}.chat-button.svelte-1xi58vz:hover {box-shadow:16px 16px 16px rgba(0, 0, 0, 0.2);transform:translateY(-2px);}`};function ci(e,t){
|
|
29
|
+
box-shadow 100ms;}.chat-button.svelte-1xi58vz:hover {box-shadow:16px 16px 16px rgba(0, 0, 0, 0.2);transform:translateY(-2px);}`};function ci(e,t){De(t,!0),ft(e,ui);function n(s){const o=s.key;(o==="ArrowDown"||o==="ArrowRight"||o==="Enter"||o===" "||o==="Space")&&(s.stopPropagation(),t.onToggle())}var i=fi(),r=nt(i);ze(()=>{ke(i,"aria-expanded",t.open?"true":"false"),ke(r,"src",`${t.assetsUrl}/fab.svg`)}),an("click",i,function(...s){t.onToggle?.apply(this,s)}),an("keydown",i,n),Ee(e,i),Ie()}Wr(["click","keydown"]);let vn=!1;function di(e){vn=e}function hi(){return vn}function qe(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)e[i]=n[i]}return e}var vi={read:function(e){return e[0]==='"'&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}};function ct(e,t){function n(r,s,o){if(!(typeof document>"u")){o=qe({},t,o),typeof o.expires=="number"&&(o.expires=new Date(Date.now()+o.expires*864e5)),o.expires&&(o.expires=o.expires.toUTCString()),r=encodeURIComponent(r).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var l="";for(var a in o)o[a]&&(l+="; "+a,o[a]!==!0&&(l+="="+o[a].split(";")[0]));return document.cookie=r+"="+e.write(s,r)+l}}function i(r){if(!(typeof document>"u"||arguments.length&&!r)){for(var s=document.cookie?document.cookie.split("; "):[],o={},l=0;l<s.length;l++){var a=s[l].split("="),f=a.slice(1).join("=");try{var u=decodeURIComponent(a[0]);if(o[u]=e.read(f,u),r===u)break}catch{}}return r?o[r]:o}}return Object.create({set:n,get:i,remove:function(r,s){n(r,"",qe({},s,{expires:-1}))},withAttributes:function(r){return ct(this.converter,qe({},this.attributes,r))},withConverter:function(r){return ct(qe({},this.converter,r),this.attributes)}},{attributes:{value:Object.freeze(t)},converter:{value:Object.freeze(e)}})}var _n=ct(vi,{path:"/"});const pn="bubble-chat-window-state",gn=()=>{switch(_n.get(pn)){case"open":return!0;case"closed":return!1;default:return}},wn=e=>{const t=new Date(new Date().getTime()+288e5);_n.set(pn,e,{expires:t})},dt=[];let ht=gn();function vt(){ht=!0,wn("open"),dt.forEach(function(e){e.call(window,!0)})}function Be(){ht=!1,wn("closed"),dt.forEach(function(e){e.call(window,!1)})}function mn(){ht?Be():vt()}function _i(){_t({type:"RESTART_CHAT"})}function pi(e){_t({type:"CHAT_MESSAGE_FROM_GUEST",text:e})}function gi(e){_t({type:"TRIGGER_STORY",story:e})}function bn(){return document.getElementById("chat-frame")}function wi(){const e=bn();if(e?.src)try{return new URL(e.src).origin}catch{return null}return null}function _t(e){const t=bn(),n=wi();if(!n){console.warn("Cannot send message: chat iframe origin could not be determined");return}t?.contentWindow?.postMessage(e,n)}function yn(e,t){if(e==="ON_CHAT_WINDOW_STATE_CHANGE")dt.push(t);else throw new Error("Unsupported event "+e)}const mi=Object.freeze(Object.defineProperty({__proto__:null,closeChatWindow:Be,enterGuestMessage:pi,isChatbotLoaded:hi,openChatWindow:vt,restartChat:_i,subscribe:yn,toggleChatWindow:mn,triggerStory:gi},Symbol.toStringTag,{value:"Module"})),bi=e=>{if(!e||typeof e!="object"||Array.isArray(e)){console.warn("Invalid tracking payload received:",e);return}"gtag"in window&&typeof window.gtag=="function"?window.gtag("event","",e):"dataLayer"in window&&Array.isArray(window.dataLayer)&&window.dataLayer.push(e)},yi=(e,t,n,i,r)=>{const s=()=>{const f=document.getElementById("chat-frame");if(f?.src)try{return new URL(f.src).origin}catch{return null}return null},o={CHAT_STARTED:"webclient.chat.started",CHAT_ENDED:"webclient.chat.ended",WINDOW_EXPAND:"webclient.window.expand",WINDOW_CLOSE:"webclient.window.close",CHANGE_URL:"webclient.change.url",GOOGLE_TAG_EVENT:"google.tag.event"},l=Object.values(o),a=f=>{if(!f.data?.type||!l.includes(f.data.type))return;const u=s();if(u&&f.origin!==u){console.warn("Rejected postMessage from untrusted origin:",f.origin);return}const c=f.data;switch(c.type){case o.CHAT_STARTED:e();break;case o.CHAT_ENDED:t();break;case o.WINDOW_EXPAND:n(c.devices,c.initial);break;case o.WINDOW_CLOSE:i();break;case o.CHANGE_URL:r(c.url);break;case o.GOOGLE_TAG_EVENT:bi(c.payload);break}};window.addEventListener("message",a,!1)},Ei=e=>new Promise(t=>{const n=document.getElementById(e);n?(n.onload=()=>{t(!0)},n.onerror=()=>{console.error("Failed to load CSS file: custom.css"),t(!1)}):(console.error("No custom.css file found"),t(!1))});var ki=Re('<link rel="stylesheet"/>'),xi=Re("<div><!> <!></div>");const Ti={hash:"svelte-1n46o8q",code:".bubble-chat.svelte-1n46o8q {font-size:16px;visibility:hidden;opacity:0;}.bubble-chat.chatbot-ready.svelte-1n46o8q {visibility:visible;opacity:1;}"};function Si(e,t){De(t,!0),ft(e,Ti);let n=ut(t,"assetsUrl",19,()=>t.server?t.server.split("?")[0]:void 0),i=ut(t,"linkHandling",3,"default"),r=ut(t,"chatStarted",7,!1);const s="chatbot-style";let o=W(!1),l=W(!1),a=W(ae(gn()));yn("ON_CHAT_WINDOW_STATE_CHANGE",function(k){H(a,k,!0)});function f(){r(!0)}function u(){r(!1)}function c(g,k){const ue=window.innerWidth,gt=g==null||g==="all",wt=g==="desktop"&&ue>=768,Ni=g==="mobile"&&ue<768,Di=gt||wt||Ni;(!k||O(a)!==!1)&&Di&&vt()}function d(){Be()}function v(g){const k=window.innerWidth,ue=window.location.hostname,gt=new URL(g).hostname,wt=ue===gt;k<768&&Be(),i()==="new-tab"?window.open(g,"_blank"):i()==="existing-tab"||wt?document.location.href=g:window.open(g,"_blank")}function h(){H(l,!0)}yi(f,u,c,d,v),hn(async()=>{H(o,await Ei(s),!0)});var p=xi();Jr("1n46o8q",g=>{var k=ki();ke(k,"id",s),ze(()=>ke(k,"href",`${n()}/custom.css`)),Ee(g,k)});var m=nt(p);ci(m,{get assetsUrl(){return n()},get open(){return O(a)},get onToggle(){return mn}});var D=kr(m,2);li(D,{get server(){return t.server},get referrer(){return t.referrer},get open(){return O(a)},onLoad:h}),ze(()=>cn(p,1,`bubble-chat ${O(o)&&O(l)?"chatbot-ready":""}`,"svelte-1n46o8q")),Ee(e,p),Ie()}const Oi=e=>e.replace(/\/embed\/bundle\.js/,""),Ci=e=>e.dataset?.server,Ai=e=>{if(e&&"src"in e&&typeof e.src=="string")return Ci(e)||Oi(e.src)},pt=document.querySelector("script#chatbot"),En=Ai(pt),Ri=pt?.getAttribute("link-handling")?pt.getAttribute("link-handling"):"default";window.chatbot=mi;const kn=()=>{console.log("Chatbot is loading from",En),Yr(Si,{target:document.body,props:{server:En,referrer:window.location.href,linkHandling:Ri}}),di(!0)},xn=(e=0)=>{e>=3||document.readyState==="complete"?setTimeout(kn,500):setTimeout(()=>{xn(e+1)},500)};xn();const Ge=document.getElementById("chatbot");Ge&&"src"in Ge&&typeof Ge.src=="string"&&Ge.src.indexOf("caller=bookmarklet")>0&&setTimeout(kn,500)})();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@botfabrik/engine-webclient",
|
|
3
|
-
"version": "4.109.
|
|
3
|
+
"version": "4.109.7",
|
|
4
4
|
"description": "Webclient for Botfabriks Bot Engine",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -31,9 +31,9 @@
|
|
|
31
31
|
"dev:embed": "tsx --watch ./run-embed-local.ts"
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@botfabrik/engine-domain": "^4.109.
|
|
35
|
-
"@botfabrik/engine-transcript-export": "^4.109.
|
|
36
|
-
"@botfabrik/engine-utils": "^4.109.
|
|
34
|
+
"@botfabrik/engine-domain": "^4.109.6",
|
|
35
|
+
"@botfabrik/engine-transcript-export": "^4.109.6",
|
|
36
|
+
"@botfabrik/engine-utils": "^4.109.6",
|
|
37
37
|
"@google-cloud/speech": "^7.2.1",
|
|
38
38
|
"@node-saml/passport-saml": "^5.1.0",
|
|
39
39
|
"express": "^5.2.1",
|
|
@@ -50,5 +50,5 @@
|
|
|
50
50
|
"tsx": "^4.21.0",
|
|
51
51
|
"typescript": "5.9.3"
|
|
52
52
|
},
|
|
53
|
-
"gitHead": "
|
|
53
|
+
"gitHead": "efccd2e7cbde2fb8767102274da4791e84919df0"
|
|
54
54
|
}
|