@botfabrik/engine-webclient 4.96.12 → 4.96.13

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,5 +1,5 @@
1
- (function(){"use strict";const at=!1;var st=Array.isArray,un=Array.prototype.indexOf,cn=Array.from,Ie=Object.defineProperty,ee=Object.getOwnPropertyDescriptor,dn=Object.getOwnPropertyDescriptors,vn=Object.prototype,hn=Array.prototype,lt=Object.getPrototypeOf,ft=Object.isExtensible;function _n(){var e,t,n=new Promise((r,i)=>{e=r,t=i});return{promise:n,resolve:e,reject:t}}const S=2,Re=4,pn=8,le=16,U=32,H=64,ut=128,A=256,he=512,x=1024,I=2048,q=4096,W=8192,Y=16384,Pe=32768,Ne=65536,ct=1<<17,dt=1<<18,Le=1<<19,vt=1<<20,De=1<<21,Me=1<<22,G=1<<23,_e=Symbol("$state"),wn=Symbol("legacy props"),bn=Symbol(""),Fe=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"};function mn(){throw new Error("https://svelte.dev/e/await_outside_boundary")}function gn(e){throw new Error("https://svelte.dev/e/lifecycle_outside_component")}function yn(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function En(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function xn(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function kn(e){throw new Error("https://svelte.dev/e/effect_orphan")}function Sn(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function Tn(e){throw new Error("https://svelte.dev/e/props_invalid_value")}function On(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function Cn(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function An(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}const In=1,Rn=4,Pn=8,Nn=16,Ln=1,Dn=2,g=Symbol(),Mn="http://www.w3.org/1999/xhtml";function ht(e){return e===this.v}function Fn(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function Un(e){return!Fn(e,this.v)}let jn=!1,R=null;function pe(e){R=e}function we(e,t=!1,n){R={p:R,c:null,e:null,s:e,x:null,l:null}}function be(e){var t=R,n=t.e;if(n!==null){t.e=null;for(var r of n)It(r)}return R=t.p,{}}function _t(){return!0}const qn=new WeakMap;function Wn(e){var t=w;if(t===null)return p.f|=G,e;if((t.f&Pe)===0){if((t.f&ut)===0)throw!t.parent&&e instanceof Error&&pt(e),e;t.b.error(e)}else Ue(e,t)}function Ue(e,t){for(;t!==null;){if((t.f&ut)!==0)try{t.b.error(e);return}catch(n){e=n}t=t.parent}throw e instanceof Error&&pt(e),e}function pt(e){const t=qn.get(e);t&&(Ie(e,"message",{value:t.message}),Ie(e,"stack",{value:t.stack}))}function zn(){for(var e=w.b;e!==null&&!e.has_pending_snippet();)e=e.parent;return e===null&&mn(),e}function je(e){var t=S|I,n=p!==null&&(p.f&S)!==0?p:null;return w===null||n!==null&&(n.f&A)!==0?t|=A:w.f|=Le,{ctx:R,deps:null,effects:null,equals:ht,f:t,fn:e,reactions:null,rv:0,v:g,wv:0,parent:n??w,ac:null}}function Bn(e,t){let n=w;n===null&&yn();var r=n.b,i=void 0,o=xt(g),a=null,l=!p;return or(()=>{try{var s=e()}catch(c){s=Promise.reject(c)}var f=()=>s;i=a?.then(f,f)??Promise.resolve(s),a=i;var u=m,d=r.pending;l&&(r.update_pending_count(1),d||u.increment());const h=(c,v=void 0)=>{a=null,d||u.activate(),v?v!==Fe&&(o.f|=G,Be(o,v)):((o.f&G)!==0&&(o.f^=G),Be(o,c)),l&&(r.update_pending_count(-1),d||u.decrement()),mt()};if(i.then(h,c=>h(null,c||"unknown")),u)return()=>{queueMicrotask(()=>u.neuter())}}),new Promise(s=>{function f(u){function d(){u===i?s(o):f(i)}u.then(d,d)}f(i)})}function Hn(e){const t=je(e);return t.equals=Un,t}function wt(e){var t=e.effects;if(t!==null){e.effects=null;for(var n=0;n<t.length;n+=1)J(t[n])}}function Yn(e){for(var t=e.parent;t!==null;){if((t.f&S)===0)return t;t=t.parent}return null}function qe(e){var t,n=w;z(Yn(e));try{wt(e),t=Ht(e)}finally{z(n)}return t}function bt(e){var t=qe(e);if(e.equals(t)||(e.v=t,e.wv=zt()),!Q)if(te!==null)te.set(e,e.v);else{var n=(B||(e.f&A)!==0)&&e.deps!==null?q:x;C(e,n)}}function Gn(e,t,n){const r=je;if(t.length===0){n(e.map(r));return}var i=m,o=w,a=Vn(),l=zn();Promise.all(t.map(s=>Bn(s))).then(s=>{i?.activate(),a();try{n([...e.map(r),...s])}catch(f){(o.f&Y)===0&&Ue(f,o)}i?.deactivate(),mt()}).catch(s=>{l.error(s)})}function Vn(){var e=w,t=p,n=R;return function(){z(e),F(t),pe(n)}}function mt(){z(null),F(null),pe(null)}const fe=new Set;let m=null,te=null,gt=new Set,me=[];function yt(){const e=me.shift();me.length>0&&queueMicrotask(yt),e()}let ue=[],We=null,ze=!1;class ne{current=new Map;#i=new Map;#o=new Set;#e=0;#f=null;#u=!1;#n=[];#a=[];#r=[];#t=[];#s=[];#c=[];#d=[];skipped_effects=new Set;process(t){ue=[];var n=null;if(fe.size>1){n=new Map,te=new Map;for(const[o,a]of this.current)n.set(o,{v:o.v,wv:o.wv}),o.v=a;for(const o of fe)if(o!==this)for(const[a,l]of o.#i)n.has(a)||(n.set(a,{v:a.v,wv:a.wv}),a.v=l)}for(const o of t)this.#h(o);if(this.#n.length===0&&this.#e===0){this.#v();var r=this.#r,i=this.#t;this.#r=[],this.#t=[],this.#s=[],m=null,Et(r),Et(i),m===null?m=this:fe.delete(this),this.#f?.resolve()}else this.#l(this.#r),this.#l(this.#t),this.#l(this.#s);if(n){for(const[o,{v:a,wv:l}]of n)o.wv<=l&&(o.v=a);te=null}for(const o of this.#n)de(o);for(const o of this.#a)de(o);this.#n=[],this.#a=[]}#h(t){t.f^=x;for(var n=t.first;n!==null;){var r=n.f,i=(r&(U|H))!==0,o=i&&(r&x)!==0,a=o||(r&W)!==0||this.skipped_effects.has(n);if(!a&&n.fn!==null){if(i)n.f^=x;else if((r&x)===0)if((r&Re)!==0)this.#t.push(n);else if((r&Me)!==0){var l=n.b?.pending?this.#a:this.#n;l.push(n)}else xe(n)&&((n.f&le)!==0&&this.#s.push(n),de(n));var s=n.first;if(s!==null){n=s;continue}}var f=n.parent;for(n=n.next;n===null&&f!==null;)n=f.next,f=f.parent}}#l(t){for(const n of t)((n.f&I)!==0?this.#c:this.#d).push(n),C(n,x);t.length=0}capture(t,n){this.#i.has(t)||this.#i.set(t,n),this.current.set(t,t.v)}activate(){m=this}deactivate(){m=null;for(const t of gt)if(gt.delete(t),t(),m!==null)break}neuter(){this.#u=!0}flush(){ue.length>0?Kn():this.#v(),m===this&&(this.#e===0&&fe.delete(this),this.deactivate())}#v(){if(!this.#u)for(const t of this.#o)t();this.#o.clear()}increment(){this.#e+=1}decrement(){if(this.#e-=1,this.#e===0){for(const t of this.#c)C(t,I),V(t);for(const t of this.#d)C(t,q),V(t);this.#r=[],this.#t=[],this.flush()}else this.deactivate()}add_callback(t){this.#o.add(t)}settled(){return(this.#f??=_n()).promise}static ensure(){if(m===null){const t=m=new ne;fe.add(m),ne.enqueue(()=>{m===t&&t.flush()})}return m}static enqueue(t){me.length===0&&queueMicrotask(yt),me.unshift(t)}}function Kn(){var e=ie;ze=!0;try{var t=0;for(Ut(!0);ue.length>0;){var n=ne.ensure();if(t++>1e3){var r,i;Zn()}n.process(ue),K.clear()}}finally{ze=!1,Ut(e),We=null}}function Zn(){try{Sn()}catch(e){Ue(e,We)}}function Et(e){var t=e.length;if(t!==0){for(var n=0;n<t;){var r=e[n++];if((r.f&(Y|W))===0&&xe(r)){var i=m?m.current.size:0;if(de(r),r.deps===null&&r.first===null&&r.nodes_start===null&&(r.teardown===null&&r.ac===null?Lt(r):r.fn=null),m!==null&&m.current.size>i&&(r.f&vt)!==0)break}}for(;n<t;)V(e[n++])}}function V(e){for(var t=We=e;t.parent!==null;){t=t.parent;var n=t.f;if(ze&&t===w&&(n&le)!==0)return;if((n&(H|U))!==0){if((n&x)===0)return;t.f^=x}}ue.push(t)}const K=new Map;function xt(e,t){var n={f:0,v:e,reactions:null,equals:ht,rv:0,wv:0};return n}function L(e,t){const n=xt(e);return ur(n),n}function D(e,t,n=!1){p!==null&&(!M||(p.f&ct)!==0)&&_t()&&(p.f&(S|le|Me|ct))!==0&&!j?.includes(e)&&An();let r=n?re(t):t;return Be(e,r)}function Be(e,t){if(!e.equals(t)){var n=e.v;Q?K.set(e,t):K.set(e,n),e.v=t;var r=ne.ensure();r.capture(e,n),(e.f&S)!==0&&((e.f&I)!==0&&qe(e),C(e,(e.f&A)===0?x:q)),e.wv=zt(),kt(e,I),w!==null&&(w.f&x)!==0&&(w.f&(U|H))===0&&(P===null?cr([e]):P.push(e))}return t}function He(e){D(e,e.v+1)}function kt(e,t){var n=e.reactions;if(n!==null)for(var r=n.length,i=0;i<r;i++){var o=n[i],a=o.f,l=(a&I)===0;l&&C(o,t),(a&S)!==0?kt(o,q):l&&V(o)}}function re(e){if(typeof e!="object"||e===null||_e in e)return e;const t=lt(e);if(t!==vn&&t!==hn)return e;var n=new Map,r=st(e),i=L(0),o=X,a=l=>{if(X===o)return l();var s=p,f=X;F(null),Wt(o);var u=l();return F(s),Wt(f),u};return r&&n.set("length",L(e.length)),new Proxy(e,{defineProperty(l,s,f){(!("value"in f)||f.configurable===!1||f.enumerable===!1||f.writable===!1)&&On();var u=n.get(s);return u===void 0?u=a(()=>{var d=L(f.value);return n.set(s,d),d}):D(u,f.value,!0),!0},deleteProperty(l,s){var f=n.get(s);if(f===void 0){if(s in l){const u=a(()=>L(g));n.set(s,u),He(i)}}else D(f,g),He(i);return!0},get(l,s,f){if(s===_e)return e;var u=n.get(s),d=s in l;if(u===void 0&&(!d||ee(l,s)?.writable)&&(u=a(()=>{var c=re(d?l[s]:g),v=L(c);return v}),n.set(s,u)),u!==void 0){var h=O(u);return h===g?void 0:h}return Reflect.get(l,s,f)},getOwnPropertyDescriptor(l,s){var f=Reflect.getOwnPropertyDescriptor(l,s);if(f&&"value"in f){var u=n.get(s);u&&(f.value=O(u))}else if(f===void 0){var d=n.get(s),h=d?.v;if(d!==void 0&&h!==g)return{enumerable:!0,configurable:!0,value:h,writable:!0}}return f},has(l,s){if(s===_e)return!0;var f=n.get(s),u=f!==void 0&&f.v!==g||Reflect.has(l,s);if(f!==void 0||w!==null&&(!u||ee(l,s)?.writable)){f===void 0&&(f=a(()=>{var h=u?re(l[s]):g,c=L(h);return c}),n.set(s,f));var d=O(f);if(d===g)return!1}return u},set(l,s,f,u){var d=n.get(s),h=s in l;if(r&&s==="length")for(var c=f;c<d.v;c+=1){var v=n.get(c+"");v!==void 0?D(v,g):c in l&&(v=a(()=>L(g)),n.set(c+"",v))}if(d===void 0)(!h||ee(l,s)?.writable)&&(d=a(()=>L(void 0)),D(d,re(f)),n.set(s,d));else{h=d.v!==g;var b=a(()=>re(f));D(d,b)}var y=Reflect.getOwnPropertyDescriptor(l,s);if(y?.set&&y.set.call(u,f),!h){if(r&&typeof s=="string"){var N=n.get("length"),_=Number(s);Number.isInteger(_)&&_>=N.v&&D(N,_+1)}He(i)}return!0},ownKeys(l){O(i);var s=Reflect.ownKeys(l).filter(d=>{var h=n.get(d);return h===void 0||h.v!==g});for(var[f,u]of n)u.v!==g&&!(f in l)&&s.push(f);return s},setPrototypeOf(){Cn()}})}var St,Tt,Ot,Ct;function Jn(){if(St===void 0){St=window,Tt=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,n=Text.prototype;Ot=ee(t,"firstChild").get,Ct=ee(t,"nextSibling").get,ft(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),ft(n)&&(n.__t=void 0)}}function ge(e=""){return document.createTextNode(e)}function ye(e){return Ot.call(e)}function Ye(e){return Ct.call(e)}function Ge(e,t){return ye(e)}function Qn(e,t){{var n=ye(e);return n instanceof Comment&&n.data===""?Ye(n):n}}function Xn(e,t=1,n=!1){let r=e;for(;t--;)r=Ye(r);return r}function $n(){return!1}function At(e){var t=p,n=w;F(null),z(null);try{return e()}finally{F(t),z(n)}}function er(e){w===null&&p===null&&kn(),p!==null&&(p.f&A)!==0&&w===null&&xn(),Q&&En()}function tr(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,r=!0){var i=w;i!==null&&(i.f&W)!==0&&(e|=W);var o={ctx:R,deps:null,nodes_start:null,nodes_end:null,f:e|I,first:null,fn:t,last:null,next:null,parent:i,b:i&&i.b,prev:null,teardown:null,transitions:null,wv:0,ac:null};if(n)try{de(o),o.f|=Pe}catch(s){throw J(o),s}else t!==null&&V(o);var a=n&&o.deps===null&&o.first===null&&o.nodes_start===null&&o.teardown===null&&(o.f&Le)===0;if(!a&&r&&(i!==null&&tr(o,i),p!==null&&(p.f&S)!==0&&(e&H)===0)){var l=p;(l.effects??=[]).push(o)}return o}function nr(e){er();var t=w.f,n=!p&&(t&U)!==0&&(t&Pe)===0;if(n){var r=R;(r.e??=[]).push(e)}else return It(e)}function It(e){return Z(Re|vt,e,!1)}function rr(e){ne.ensure();const t=Z(H,e,!0);return(n={})=>new Promise(r=>{n.outro?Dt(t,()=>{J(t),r(void 0)}):(J(t),r(void 0))})}function ir(e){return Z(Re,e,!1)}function or(e){return Z(Me|Le,e,!0)}function Ee(e,t=[],n=[]){Gn(t,n,r=>{Z(pn,()=>e(...r.map(O)),!0)})}function Rt(e,t=0){var n=Z(le|t,e,!0);return n}function Ve(e,t=!0){return Z(U,e,!0,t)}function Pt(e){var t=e.teardown;if(t!==null){const n=Q,r=p;jt(!0),F(null);try{t.call(null)}finally{jt(n),F(r)}}}function Nt(e,t=!1){var n=e.first;for(e.first=e.last=null;n!==null;){const i=n.ac;i!==null&&At(()=>{i.abort(Fe)});var r=n.next;(n.f&H)!==0?n.parent=null:J(n,t),n=r}}function ar(e){for(var t=e.first;t!==null;){var n=t.next;(t.f&U)===0&&J(t),t=n}}function J(e,t=!0){var n=!1;(t||(e.f&dt)!==0)&&e.nodes_start!==null&&e.nodes_end!==null&&(sr(e.nodes_start,e.nodes_end),n=!0),Nt(e,t&&!n),ke(e,0),C(e,Y);var r=e.transitions;if(r!==null)for(const o of r)o.stop();Pt(e);var i=e.parent;i!==null&&i.first!==null&&Lt(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes_start=e.nodes_end=e.ac=null}function sr(e,t){for(;e!==null;){var n=e===t?null:Ye(e);e.remove(),e=n}}function Lt(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 Dt(e,t){var n=[];Mt(e,n,!0),lr(n,()=>{J(e),t&&t()})}function lr(e,t){var n=e.length;if(n>0){var r=()=>--n||t();for(var i of e)i.out(r)}else t()}function Mt(e,t,n){if((e.f&W)===0){if(e.f^=W,e.transitions!==null)for(const a of e.transitions)(a.is_global||n)&&t.push(a);for(var r=e.first;r!==null;){var i=r.next,o=(r.f&Ne)!==0||(r.f&U)!==0;Mt(r,t,o?n:!1),r=i}}}function fr(e){Ft(e,!0)}function Ft(e,t){if((e.f&W)!==0){e.f^=W,(e.f&x)===0&&(C(e,I),V(e));for(var n=e.first;n!==null;){var r=n.next,i=(n.f&Ne)!==0||(n.f&U)!==0;Ft(n,i?t:!1),n=r}if(e.transitions!==null)for(const o of e.transitions)(o.is_global||t)&&o.in()}}let ie=!1;function Ut(e){ie=e}let Q=!1;function jt(e){Q=e}let p=null,M=!1;function F(e){p=e}let w=null;function z(e){w=e}let j=null;function ur(e){p!==null&&(j===null?j=[e]:j.push(e))}let k=null,T=0,P=null;function cr(e){P=e}let qt=1,ce=0,X=ce;function Wt(e){X=e}let B=!1;function zt(){return++qt}function xe(e){var t=e.f;if((t&I)!==0)return!0;if((t&q)!==0){var n=e.deps,r=(t&A)!==0;if(n!==null){var i,o,a=(t&he)!==0,l=r&&w!==null&&!B,s=n.length;if((a||l)&&(w===null||(w.f&Y)===0)){var f=e,u=f.parent;for(i=0;i<s;i++)o=n[i],(a||!o?.reactions?.includes(f))&&(o.reactions??=[]).push(f);a&&(f.f^=he),l&&u!==null&&(u.f&A)===0&&(f.f^=A)}for(i=0;i<s;i++)if(o=n[i],xe(o)&&bt(o),o.wv>e.wv)return!0}(!r||w!==null&&!B)&&C(e,x)}return!1}function Bt(e,t,n=!0){var r=e.reactions;if(r!==null&&!j?.includes(e))for(var i=0;i<r.length;i++){var o=r[i];(o.f&S)!==0?Bt(o,t,!1):t===o&&(n?C(o,I):(o.f&x)!==0&&C(o,q),V(o))}}function Ht(e){var t=k,n=T,r=P,i=p,o=B,a=j,l=R,s=M,f=X,u=e.f;k=null,T=0,P=null,B=(u&A)!==0&&(M||!ie||p===null),p=(u&(U|H))===0?e:null,j=null,pe(e.ctx),M=!1,X=++ce,e.ac!==null&&(At(()=>{e.ac.abort(Fe)}),e.ac=null);try{e.f|=De;var d=e.fn,h=d(),c=e.deps;if(k!==null){var v;if(ke(e,T),c!==null&&T>0)for(c.length=T+k.length,v=0;v<k.length;v++)c[T+v]=k[v];else e.deps=c=k;if(!B||(u&S)!==0&&e.reactions!==null)for(v=T;v<c.length;v++)(c[v].reactions??=[]).push(e)}else c!==null&&T<c.length&&(ke(e,T),c.length=T);if(_t()&&P!==null&&!M&&c!==null&&(e.f&(S|q|I))===0)for(v=0;v<P.length;v++)Bt(P[v],e);return i!==null&&i!==e&&(ce++,P!==null&&(r===null?r=P:r.push(...P))),(e.f&G)!==0&&(e.f^=G),h}catch(b){return Wn(b)}finally{e.f^=De,k=t,T=n,P=r,p=i,B=o,j=a,pe(l),M=s,X=f}}function dr(e,t){let n=t.reactions;if(n!==null){var r=un.call(n,e);if(r!==-1){var i=n.length-1;i===0?n=t.reactions=null:(n[r]=n[i],n.pop())}}n===null&&(t.f&S)!==0&&(k===null||!k.includes(t))&&(C(t,q),(t.f&(A|he))===0&&(t.f^=he),wt(t),ke(t,0))}function ke(e,t){var n=e.deps;if(n!==null)for(var r=t;r<n.length;r++)dr(e,n[r])}function de(e){var t=e.f;if((t&Y)===0){C(e,x);var n=w,r=ie;w=e,ie=!0;try{(t&le)!==0?ar(e):Nt(e),Pt(e);var i=Ht(e);e.teardown=typeof i=="function"?i:null,e.wv=qt;var o;at&&jn&&(e.f&I)!==0&&e.deps}finally{ie=r,w=n}}}function O(e){var t=e.f,n=(t&S)!==0;if(p!==null&&!M){var r=w!==null&&(w.f&Y)!==0;if(!r&&!j?.includes(e)){var i=p.deps;if((p.f&De)!==0)e.rv<ce&&(e.rv=ce,k===null&&i!==null&&i[T]===e?T++:k===null?k=[e]:(!B||!k.includes(e))&&k.push(e));else{(p.deps??=[]).push(e);var o=e.reactions;o===null?e.reactions=[p]:o.includes(p)||o.push(p)}}}else if(n&&e.deps===null&&e.effects===null){var a=e,l=a.parent;l!==null&&(l.f&A)===0&&(a.f^=A)}if(Q){if(K.has(e))return K.get(e);if(n){a=e;var s=a.v;return((a.f&x)===0&&a.reactions!==null||Yt(a))&&(s=qe(a)),K.set(a,s),s}}else if(n){if(a=e,te?.has(a))return te.get(a);xe(a)&&bt(a)}if((e.f&G)!==0)throw e.v;return e.v}function Yt(e){if(e.v===g)return!0;if(e.deps===null)return!1;for(const t of e.deps)if(K.has(t)||(t.f&S)!==0&&Yt(t))return!0;return!1}function Gt(e){var t=M;try{return M=!0,e()}finally{M=t}}const vr=-7169;function C(e,t){e.f=e.f&vr|t}const hr=["touchstart","touchmove"];function _r(e){return hr.includes(e)}const Vt=new Set,Ke=new Set;function pr(e){for(var t=0;t<e.length;t++)Vt.add(e[t]);for(var n of Ke)n(e)}let Kt=null;function Se(e){var t=this,n=t.ownerDocument,r=e.type,i=e.composedPath?.()||[],o=i[0]||e.target;Kt=e;var a=0,l=Kt===e&&e.__root;if(l){var s=i.indexOf(l);if(s!==-1&&(t===document||t===window)){e.__root=t;return}var f=i.indexOf(t);if(f===-1)return;s<=f&&(a=s)}if(o=i[a]||e.target,o!==t){Ie(e,"currentTarget",{configurable:!0,get(){return o||n}});var u=p,d=w;F(null),z(null);try{for(var h,c=[];o!==null;){var v=o.assignedSlot||o.parentNode||o.host||null;try{var b=o["__"+r];if(b!=null&&(!o.disabled||e.target===o))if(st(b)){var[y,...N]=b;y.apply(o,[e,...N])}else b.call(o,e)}catch(_){h?c.push(_):h=_}if(e.cancelBubble||v===t||v===null)break;o=v}if(h){for(let _ of c)queueMicrotask(()=>{throw _});throw h}}finally{e.__root=t,delete e.currentTarget,F(u),z(d)}}}function wr(e){var t;t=document.head.appendChild(ge());try{Rt(()=>e(t),dt)}finally{}}function br(e){var t=document.createElement("template");return t.innerHTML=e.replaceAll("<!>","<!---->"),t.content}function Ze(e,t){var n=w;n.nodes_start===null&&(n.nodes_start=e,n.nodes_end=t)}function ve(e,t){var n=(t&Ln)!==0,r=(t&Dn)!==0,i,o=!e.startsWith("<!>");return()=>{i===void 0&&(i=br(o?e:"<!>"+e),n||(i=ye(i)));var a=r||Tt?document.importNode(i,!0):i.cloneNode(!0);if(n){var l=ye(a),s=a.lastChild;Ze(l,s)}else Ze(a,a);return a}}function mr(){var e=document.createDocumentFragment(),t=document.createComment(""),n=ge();return e.append(t,n),Ze(t,n),e}function oe(e,t){e!==null&&e.before(t)}function gr(e,t){return yr(e,t)}const ae=new Map;function yr(e,{target:t,anchor:n,props:r={},events:i,context:o,intro:a=!0}){Jn();var l=new Set,s=d=>{for(var h=0;h<d.length;h++){var c=d[h];if(!l.has(c)){l.add(c);var v=_r(c);t.addEventListener(c,Se,{passive:v});var b=ae.get(c);b===void 0?(document.addEventListener(c,Se,{passive:v}),ae.set(c,1)):ae.set(c,b+1)}}};s(cn(Vt)),Ke.add(s);var f=void 0,u=rr(()=>{var d=n??t.appendChild(ge());return Ve(()=>{if(o){we({});var h=R;h.c=o}i&&(r.$$events=i),f=e(d,r)||{},o&&be()}),()=>{for(var h of l){t.removeEventListener(h,Se);var c=ae.get(h);--c===0?(document.removeEventListener(h,Se),ae.delete(h)):ae.set(h,c)}Ke.delete(s),d!==n&&d.parentNode?.removeChild(d)}});return Er.set(f,u),f}let Er=new WeakMap;function xr(e,t,n=!1){var r=e,i=null,o=null,a=g,l=n?Ne:0,s=!1;const f=(c,v=!0)=>{s=!0,h(v,c)};var u=null;function d(){u!==null&&(u.lastChild.remove(),r.before(u),u=null);var c=a?i:o,v=a?o:i;c&&fr(c),v&&Dt(v,()=>{a?o=null:i=null})}const h=(c,v)=>{if(a!==(a=c)){var b=$n(),y=r;if(b&&(u=document.createDocumentFragment(),u.append(y=ge())),a?i??=v&&Ve(()=>v(y)):o??=v&&Ve(()=>v(y)),b){var N=m,_=a?i:o,E=a?o:i;_&&N.skipped_effects.delete(_),E&&N.skipped_effects.add(E),N.add_callback(d)}else d()}};Rt(()=>{s=!1,t(f),s||h(null,null)},l)}function Je(e,t){ir(()=>{var n=e.getRootNode(),r=n.host?n:n.head??n.ownerDocument.head;if(!r.querySelector("#"+t.hash)){const i=document.createElement("style");i.id=t.hash,i.textContent=t.code,r.appendChild(i)}})}const Zt=[...`
2
- \r\f \v\uFEFF`];function kr(e,t,n){var r=e==null?"":""+e;if(t&&(r=r?r+" "+t:t),n){for(var i in n)if(n[i])r=r?r+" "+i:i;else if(r.length)for(var o=i.length,a=0;(a=r.indexOf(i,a))>=0;){var l=a+o;(a===0||Zt.includes(r[a-1]))&&(l===r.length||Zt.includes(r[l]))?r=(a===0?"":r.substring(0,a))+r.substring(l+1):a=l}}return r===""?null:r}function Jt(e,t,n,r,i,o){var a=e.__className;if(a!==n||a===void 0){var l=kr(n,r,o);l==null?e.removeAttribute("class"):e.className=l,e.__className=n}else if(o&&i!==o)for(var s in o){var f=!!o[s];(i==null||f!==!!i[s])&&e.classList.toggle(s,f)}return o}const Sr=Symbol("is custom element"),Tr=Symbol("is html");function se(e,t,n,r){var i=Or(e);i[t]!==(i[t]=n)&&(t==="loading"&&(e[bn]=n),n==null?e.removeAttribute(t):typeof n!="string"&&Cr(e).includes(t)?e[t]=n:e.setAttribute(t,n))}function Or(e){return e.__attributes??={[Sr]:e.nodeName.includes("-"),[Tr]:e.namespaceURI===Mn}}var Qt=new Map;function Cr(e){var t=Qt.get(e.nodeName);if(t)return t;Qt.set(e.nodeName,t=[]);for(var n,r=e,i=Element.prototype;i!==r;){n=dn(r);for(var o in n)n[o].set&&t.push(o);r=lt(r)}return t}let Te=!1;function Ar(e){var t=Te;try{return Te=!1,[e(),Te]}finally{Te=t}}function Qe(e,t,n,r){var i=(n&Pn)!==0,o=(n&Nn)!==0,a=r,l=!0,s=()=>(l&&(l=!1,a=o?Gt(r):r),a),f;if(i){var u=_e in e||wn in e;f=ee(e,t)?.set??(u&&t in e?_=>e[t]=_:void 0)}var d,h=!1;i?[d,h]=Ar(()=>e[t]):d=e[t],d===void 0&&r!==void 0&&(d=s(),f&&(Tn(),f(d)));var c;if(c=()=>{var _=e[t];return _===void 0?s():(l=!0,_)},(n&Rn)===0)return c;if(f){var v=e.$$legacy;return function(_,E){return arguments.length>0?((!E||v||h)&&f(E?c():_),_):c()}}var b=!1,y=((n&In)!==0?je:Hn)(()=>(b=!1,c()));i&&O(y);var N=w;return function(_,E){if(arguments.length>0){const $=E?O(y):i?re(_):_;return D(y,$),b=!0,a!==void 0&&(a=$),_}return Q&&b||(N.f&Y)!==0?y.v:O(y)}}function Xt(e){R===null&&gn(),nr(()=>{const t=Gt(e);if(typeof t=="function")return t})}const Ir="5";typeof window<"u"&&((window.__svelte??={}).v??=new Set).add(Ir);var Rr=ve('<div><iframe id="chat-frame" title="Chat" class="bot svelte-b4a27v" frameborder="0" allow="microphone; clipboard-write" allowfullscreen=""></iframe></div>'),Pr=ve(`<p class="svelte-b4a27v">Please make sure that the script tag has 'id="chatbot"' and the attribute
1
+ (function(){"use strict";const st=!1;var lt=Array.isArray,un=Array.prototype.indexOf,cn=Array.from,Re=Object.defineProperty,ee=Object.getOwnPropertyDescriptor,dn=Object.getOwnPropertyDescriptors,vn=Object.prototype,hn=Array.prototype,ft=Object.getPrototypeOf,ut=Object.isExtensible;function _n(){var e,t,n=new Promise((r,i)=>{e=r,t=i});return{promise:n,resolve:e,reject:t}}const S=2,Pe=4,pn=8,te=16,U=32,Y=64,ct=128,A=256,_e=512,E=1024,I=2048,q=4096,W=8192,G=16384,Ne=32768,Le=65536,dt=1<<17,vt=1<<18,De=1<<19,wn=1<<20,Me=1<<21,Fe=1<<22,V=1<<23,pe=Symbol("$state"),bn=Symbol("legacy props"),mn=Symbol(""),Ue=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"};function gn(){throw new Error("https://svelte.dev/e/await_outside_boundary")}function yn(e){throw new Error("https://svelte.dev/e/lifecycle_outside_component")}function En(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function xn(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function kn(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function Sn(e){throw new Error("https://svelte.dev/e/effect_orphan")}function Tn(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function On(e){throw new Error("https://svelte.dev/e/props_invalid_value")}function Cn(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function An(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function In(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}const Rn=1,Pn=4,Nn=8,Ln=16,Dn=1,Mn=2,m=Symbol(),Fn="http://www.w3.org/1999/xhtml";function ht(e){return e===this.v}function Un(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function jn(e){return!Un(e,this.v)}let qn=!1,R=null;function we(e){R=e}function be(e,t=!1,n){R={p:R,c:null,e:null,s:e,x:null,l:null}}function me(e){var t=R,n=t.e;if(n!==null){t.e=null;for(var r of n)It(r)}return R=t.p,{}}function _t(){return!0}const Wn=new WeakMap;function Bn(e){var t=w;if(t===null)return p.f|=V,e;if((t.f&Ne)===0){if((t.f&ct)===0)throw!t.parent&&e instanceof Error&&pt(e),e;t.b.error(e)}else je(e,t)}function je(e,t){for(;t!==null;){if((t.f&ct)!==0)try{t.b.error(e);return}catch(n){e=n}t=t.parent}throw e instanceof Error&&pt(e),e}function pt(e){const t=Wn.get(e);t&&(Re(e,"message",{value:t.message}),Re(e,"stack",{value:t.stack}))}function zn(){for(var e=w.b;e!==null&&!e.has_pending_snippet();)e=e.parent;return e===null&&gn(),e}function qe(e){var t=S|I,n=p!==null&&(p.f&S)!==0?p:null;return w===null||n!==null&&(n.f&A)!==0?t|=A:w.f|=De,{ctx:R,deps:null,effects:null,equals:ht,f:t,fn:e,reactions:null,rv:0,v:m,wv:0,parent:n??w,ac:null}}function Hn(e,t){let n=w;n===null&&En();var r=n.b,i=void 0,o=xt(m),a=null,l=!p;return ar(()=>{try{var s=e()}catch(c){s=Promise.reject(c)}var f=()=>s;i=a?.then(f,f)??Promise.resolve(s),a=i;var u=x,d=r.pending;l&&(r.update_pending_count(1),d||u.increment());const h=(c,v=void 0)=>{a=null,d||u.activate(),v?v!==Ue&&(o.f|=V,He(o,v)):((o.f&V)!==0&&(o.f^=V),He(o,c)),l&&(r.update_pending_count(-1),d||u.decrement()),mt()};if(i.then(h,c=>h(null,c||"unknown")),u)return()=>{queueMicrotask(()=>u.neuter())}}),new Promise(s=>{function f(u){function d(){u===i?s(o):f(i)}u.then(d,d)}f(i)})}function Yn(e){const t=qe(e);return t.equals=jn,t}function wt(e){var t=e.effects;if(t!==null){e.effects=null;for(var n=0;n<t.length;n+=1)J(t[n])}}function Gn(e){for(var t=e.parent;t!==null;){if((t.f&S)===0)return t;t=t.parent}return null}function We(e){var t,n=w;z(Gn(e));try{wt(e),t=Ht(e)}finally{z(n)}return t}function bt(e){var t=We(e);if(e.equals(t)||(e.v=t,e.wv=Bt()),!Q)if(ne!==null)ne.set(e,e.v);else{var n=(H||(e.f&A)!==0)&&e.deps!==null?q:E;C(e,n)}}function Vn(e,t,n){const r=qe;if(t.length===0){n(e.map(r));return}var i=x,o=w,a=Kn(),l=zn();Promise.all(t.map(s=>Hn(s))).then(s=>{i?.activate(),a();try{n([...e.map(r),...s])}catch(f){(o.f&G)===0&&je(f,o)}i?.deactivate(),mt()}).catch(s=>{l.error(s)})}function Kn(){var e=w,t=p,n=R;return function(){z(e),F(t),we(n)}}function mt(){z(null),F(null),we(null)}const ce=new Set;let x=null,ne=null,gt=new Set,ge=[];function yt(){const e=ge.shift();ge.length>0&&queueMicrotask(yt),e()}let de=[],Be=null,ze=!1;class re{current=new Map;#i=new Map;#o=new Set;#e=0;#f=null;#u=!1;#n=[];#a=[];#r=[];#t=[];#s=[];#c=[];#d=[];skipped_effects=new Set;process(t){de=[];var n=null;if(ce.size>1){n=new Map,ne=new Map;for(const[o,a]of this.current)n.set(o,{v:o.v,wv:o.wv}),o.v=a;for(const o of ce)if(o!==this)for(const[a,l]of o.#i)n.has(a)||(n.set(a,{v:a.v,wv:a.wv}),a.v=l)}for(const o of t)this.#h(o);if(this.#n.length===0&&this.#e===0){this.#v();var r=this.#r,i=this.#t;this.#r=[],this.#t=[],this.#s=[],x=null,Et(r),Et(i),x===null?x=this:ce.delete(this),this.#f?.resolve()}else this.#l(this.#r),this.#l(this.#t),this.#l(this.#s);if(n){for(const[o,{v:a,wv:l}]of n)o.wv<=l&&(o.v=a);ne=null}for(const o of this.#n)se(o);for(const o of this.#a)se(o);this.#n=[],this.#a=[]}#h(t){t.f^=E;for(var n=t.first;n!==null;){var r=n.f,i=(r&(U|Y))!==0,o=i&&(r&E)!==0,a=o||(r&W)!==0||this.skipped_effects.has(n);if(!a&&n.fn!==null){if(i)n.f^=E;else if((r&Pe)!==0)this.#t.push(n);else if((r&E)===0)if((r&Fe)!==0){var l=n.b?.pending?this.#a:this.#n;l.push(n)}else ke(n)&&((n.f&te)!==0&&this.#s.push(n),se(n));var s=n.first;if(s!==null){n=s;continue}}var f=n.parent;for(n=n.next;n===null&&f!==null;)n=f.next,f=f.parent}}#l(t){for(const n of t)((n.f&I)!==0?this.#c:this.#d).push(n),C(n,E);t.length=0}capture(t,n){this.#i.has(t)||this.#i.set(t,n),this.current.set(t,t.v)}activate(){x=this}deactivate(){x=null;for(const t of gt)if(gt.delete(t),t(),x!==null)break}neuter(){this.#u=!0}flush(){de.length>0?Zn():this.#v(),x===this&&(this.#e===0&&ce.delete(this),this.deactivate())}#v(){if(!this.#u)for(const t of this.#o)t();this.#o.clear()}increment(){this.#e+=1}decrement(){if(this.#e-=1,this.#e===0){for(const t of this.#c)C(t,I),ie(t);for(const t of this.#d)C(t,q),ie(t);this.#r=[],this.#t=[],this.flush()}else this.deactivate()}add_callback(t){this.#o.add(t)}settled(){return(this.#f??=_n()).promise}static ensure(){if(x===null){const t=x=new re;ce.add(x),re.enqueue(()=>{x===t&&t.flush()})}return x}static enqueue(t){ge.length===0&&queueMicrotask(yt),ge.unshift(t)}}function Zn(){var e=ae;ze=!0;try{var t=0;for(Ut(!0);de.length>0;){var n=re.ensure();if(t++>1e3){var r,i;Jn()}n.process(de),B.clear()}}finally{ze=!1,Ut(e),Be=null}}function Jn(){try{Tn()}catch(e){je(e,Be)}}let K=null;function Et(e){var t=e.length;if(t!==0){for(var n=0;n<t;){var r=e[n++];if((r.f&(G|W))===0&&ke(r)&&(K=[],se(r),r.deps===null&&r.first===null&&r.nodes_start===null&&(r.teardown===null&&r.ac===null?Lt(r):r.fn=null),K.length>0)){B.clear();for(const i of K)se(i);K=[]}}K=null}}function ie(e){for(var t=Be=e;t.parent!==null;){t=t.parent;var n=t.f;if(ze&&t===w&&(n&te)!==0)return;if((n&(Y|U))!==0){if((n&E)===0)return;t.f^=E}}de.push(t)}const B=new Map;function xt(e,t){var n={f:0,v:e,reactions:null,equals:ht,rv:0,wv:0};return n}function L(e,t){const n=xt(e);return cr(n),n}function D(e,t,n=!1){p!==null&&(!M||(p.f&dt)!==0)&&_t()&&(p.f&(S|te|Fe|dt))!==0&&!j?.includes(e)&&In();let r=n?oe(t):t;return He(e,r)}function He(e,t){if(!e.equals(t)){var n=e.v;Q?B.set(e,t):B.set(e,n),e.v=t;var r=re.ensure();r.capture(e,n),(e.f&S)!==0&&((e.f&I)!==0&&We(e),C(e,(e.f&A)===0?E:q)),e.wv=Bt(),kt(e,I),w!==null&&(w.f&E)!==0&&(w.f&(U|Y))===0&&(P===null?dr([e]):P.push(e))}return t}function Ye(e){D(e,e.v+1)}function kt(e,t){var n=e.reactions;if(n!==null)for(var r=n.length,i=0;i<r;i++){var o=n[i],a=o.f,l=(a&I)===0;l&&C(o,t),(a&S)!==0?kt(o,q):l&&((a&te)!==0&&K!==null&&K.push(o),ie(o))}}function oe(e){if(typeof e!="object"||e===null||pe in e)return e;const t=ft(e);if(t!==vn&&t!==hn)return e;var n=new Map,r=lt(e),i=L(0),o=X,a=l=>{if(X===o)return l();var s=p,f=X;F(null),Wt(o);var u=l();return F(s),Wt(f),u};return r&&n.set("length",L(e.length)),new Proxy(e,{defineProperty(l,s,f){(!("value"in f)||f.configurable===!1||f.enumerable===!1||f.writable===!1)&&Cn();var u=n.get(s);return u===void 0?u=a(()=>{var d=L(f.value);return n.set(s,d),d}):D(u,f.value,!0),!0},deleteProperty(l,s){var f=n.get(s);if(f===void 0){if(s in l){const u=a(()=>L(m));n.set(s,u),Ye(i)}}else D(f,m),Ye(i);return!0},get(l,s,f){if(s===pe)return e;var u=n.get(s),d=s in l;if(u===void 0&&(!d||ee(l,s)?.writable)&&(u=a(()=>{var c=oe(d?l[s]:m),v=L(c);return v}),n.set(s,u)),u!==void 0){var h=O(u);return h===m?void 0:h}return Reflect.get(l,s,f)},getOwnPropertyDescriptor(l,s){var f=Reflect.getOwnPropertyDescriptor(l,s);if(f&&"value"in f){var u=n.get(s);u&&(f.value=O(u))}else if(f===void 0){var d=n.get(s),h=d?.v;if(d!==void 0&&h!==m)return{enumerable:!0,configurable:!0,value:h,writable:!0}}return f},has(l,s){if(s===pe)return!0;var f=n.get(s),u=f!==void 0&&f.v!==m||Reflect.has(l,s);if(f!==void 0||w!==null&&(!u||ee(l,s)?.writable)){f===void 0&&(f=a(()=>{var h=u?oe(l[s]):m,c=L(h);return c}),n.set(s,f));var d=O(f);if(d===m)return!1}return u},set(l,s,f,u){var d=n.get(s),h=s in l;if(r&&s==="length")for(var c=f;c<d.v;c+=1){var v=n.get(c+"");v!==void 0?D(v,m):c in l&&(v=a(()=>L(m)),n.set(c+"",v))}if(d===void 0)(!h||ee(l,s)?.writable)&&(d=a(()=>L(void 0)),D(d,oe(f)),n.set(s,d));else{h=d.v!==m;var b=a(()=>oe(f));D(d,b)}var g=Reflect.getOwnPropertyDescriptor(l,s);if(g?.set&&g.set.call(u,f),!h){if(r&&typeof s=="string"){var N=n.get("length"),_=Number(s);Number.isInteger(_)&&_>=N.v&&D(N,_+1)}Ye(i)}return!0},ownKeys(l){O(i);var s=Reflect.ownKeys(l).filter(d=>{var h=n.get(d);return h===void 0||h.v!==m});for(var[f,u]of n)u.v!==m&&!(f in l)&&s.push(f);return s},setPrototypeOf(){An()}})}var St,Tt,Ot,Ct;function Qn(){if(St===void 0){St=window,Tt=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,n=Text.prototype;Ot=ee(t,"firstChild").get,Ct=ee(t,"nextSibling").get,ut(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),ut(n)&&(n.__t=void 0)}}function ye(e=""){return document.createTextNode(e)}function Ee(e){return Ot.call(e)}function Ge(e){return Ct.call(e)}function Ve(e,t){return Ee(e)}function Xn(e,t){{var n=Ee(e);return n instanceof Comment&&n.data===""?Ge(n):n}}function $n(e,t=1,n=!1){let r=e;for(;t--;)r=Ge(r);return r}function er(){return!1}function At(e){var t=p,n=w;F(null),z(null);try{return e()}finally{F(t),z(n)}}function tr(e){w===null&&p===null&&Sn(),p!==null&&(p.f&A)!==0&&w===null&&kn(),Q&&xn()}function nr(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,r=!0){var i=w;i!==null&&(i.f&W)!==0&&(e|=W);var o={ctx:R,deps:null,nodes_start:null,nodes_end:null,f:e|I,first:null,fn:t,last:null,next:null,parent:i,b:i&&i.b,prev:null,teardown:null,transitions:null,wv:0,ac:null};if(n)try{se(o),o.f|=Ne}catch(s){throw J(o),s}else t!==null&&ie(o);var a=n&&o.deps===null&&o.first===null&&o.nodes_start===null&&o.teardown===null&&(o.f&De)===0;if(!a&&r&&(i!==null&&nr(o,i),p!==null&&(p.f&S)!==0&&(e&Y)===0)){var l=p;(l.effects??=[]).push(o)}return o}function rr(e){tr();var t=w.f,n=!p&&(t&U)!==0&&(t&Ne)===0;if(n){var r=R;(r.e??=[]).push(e)}else return It(e)}function It(e){return Z(Pe|wn,e,!1)}function ir(e){re.ensure();const t=Z(Y,e,!0);return(n={})=>new Promise(r=>{n.outro?Dt(t,()=>{J(t),r(void 0)}):(J(t),r(void 0))})}function or(e){return Z(Pe,e,!1)}function ar(e){return Z(Fe|De,e,!0)}function xe(e,t=[],n=[]){Vn(t,n,r=>{Z(pn,()=>e(...r.map(O)),!0)})}function Rt(e,t=0){var n=Z(te|t,e,!0);return n}function Ke(e,t=!0){return Z(U,e,!0,t)}function Pt(e){var t=e.teardown;if(t!==null){const n=Q,r=p;jt(!0),F(null);try{t.call(null)}finally{jt(n),F(r)}}}function Nt(e,t=!1){var n=e.first;for(e.first=e.last=null;n!==null;){const i=n.ac;i!==null&&At(()=>{i.abort(Ue)});var r=n.next;(n.f&Y)!==0?n.parent=null:J(n,t),n=r}}function sr(e){for(var t=e.first;t!==null;){var n=t.next;(t.f&U)===0&&J(t),t=n}}function J(e,t=!0){var n=!1;(t||(e.f&vt)!==0)&&e.nodes_start!==null&&e.nodes_end!==null&&(lr(e.nodes_start,e.nodes_end),n=!0),Nt(e,t&&!n),Se(e,0),C(e,G);var r=e.transitions;if(r!==null)for(const o of r)o.stop();Pt(e);var i=e.parent;i!==null&&i.first!==null&&Lt(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes_start=e.nodes_end=e.ac=null}function lr(e,t){for(;e!==null;){var n=e===t?null:Ge(e);e.remove(),e=n}}function Lt(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 Dt(e,t){var n=[];Mt(e,n,!0),fr(n,()=>{J(e),t&&t()})}function fr(e,t){var n=e.length;if(n>0){var r=()=>--n||t();for(var i of e)i.out(r)}else t()}function Mt(e,t,n){if((e.f&W)===0){if(e.f^=W,e.transitions!==null)for(const a of e.transitions)(a.is_global||n)&&t.push(a);for(var r=e.first;r!==null;){var i=r.next,o=(r.f&Le)!==0||(r.f&U)!==0;Mt(r,t,o?n:!1),r=i}}}function ur(e){Ft(e,!0)}function Ft(e,t){if((e.f&W)!==0){e.f^=W,(e.f&E)===0&&(C(e,I),ie(e));for(var n=e.first;n!==null;){var r=n.next,i=(n.f&Le)!==0||(n.f&U)!==0;Ft(n,i?t:!1),n=r}if(e.transitions!==null)for(const o of e.transitions)(o.is_global||t)&&o.in()}}let ae=!1;function Ut(e){ae=e}let Q=!1;function jt(e){Q=e}let p=null,M=!1;function F(e){p=e}let w=null;function z(e){w=e}let j=null;function cr(e){p!==null&&(j===null?j=[e]:j.push(e))}let k=null,T=0,P=null;function dr(e){P=e}let qt=1,ve=0,X=ve;function Wt(e){X=e}let H=!1;function Bt(){return++qt}function ke(e){var t=e.f;if((t&I)!==0)return!0;if((t&q)!==0){var n=e.deps,r=(t&A)!==0;if(n!==null){var i,o,a=(t&_e)!==0,l=r&&w!==null&&!H,s=n.length;if((a||l)&&(w===null||(w.f&G)===0)){var f=e,u=f.parent;for(i=0;i<s;i++)o=n[i],(a||!o?.reactions?.includes(f))&&(o.reactions??=[]).push(f);a&&(f.f^=_e),l&&u!==null&&(u.f&A)===0&&(f.f^=A)}for(i=0;i<s;i++)if(o=n[i],ke(o)&&bt(o),o.wv>e.wv)return!0}(!r||w!==null&&!H)&&C(e,E)}return!1}function zt(e,t,n=!0){var r=e.reactions;if(r!==null&&!j?.includes(e))for(var i=0;i<r.length;i++){var o=r[i];(o.f&S)!==0?zt(o,t,!1):t===o&&(n?C(o,I):(o.f&E)!==0&&C(o,q),ie(o))}}function Ht(e){var t=k,n=T,r=P,i=p,o=H,a=j,l=R,s=M,f=X,u=e.f;k=null,T=0,P=null,H=(u&A)!==0&&(M||!ae||p===null),p=(u&(U|Y))===0?e:null,j=null,we(e.ctx),M=!1,X=++ve,e.ac!==null&&(At(()=>{e.ac.abort(Ue)}),e.ac=null);try{e.f|=Me;var d=e.fn,h=d(),c=e.deps;if(k!==null){var v;if(Se(e,T),c!==null&&T>0)for(c.length=T+k.length,v=0;v<k.length;v++)c[T+v]=k[v];else e.deps=c=k;if(!H||(u&S)!==0&&e.reactions!==null)for(v=T;v<c.length;v++)(c[v].reactions??=[]).push(e)}else c!==null&&T<c.length&&(Se(e,T),c.length=T);if(_t()&&P!==null&&!M&&c!==null&&(e.f&(S|q|I))===0)for(v=0;v<P.length;v++)zt(P[v],e);return i!==null&&i!==e&&(ve++,P!==null&&(r===null?r=P:r.push(...P))),(e.f&V)!==0&&(e.f^=V),h}catch(b){return Bn(b)}finally{e.f^=Me,k=t,T=n,P=r,p=i,H=o,j=a,we(l),M=s,X=f}}function vr(e,t){let n=t.reactions;if(n!==null){var r=un.call(n,e);if(r!==-1){var i=n.length-1;i===0?n=t.reactions=null:(n[r]=n[i],n.pop())}}n===null&&(t.f&S)!==0&&(k===null||!k.includes(t))&&(C(t,q),(t.f&(A|_e))===0&&(t.f^=_e),wt(t),Se(t,0))}function Se(e,t){var n=e.deps;if(n!==null)for(var r=t;r<n.length;r++)vr(e,n[r])}function se(e){var t=e.f;if((t&G)===0){C(e,E);var n=w,r=ae;w=e,ae=!0;try{(t&te)!==0?sr(e):Nt(e),Pt(e);var i=Ht(e);e.teardown=typeof i=="function"?i:null,e.wv=qt;var o;st&&qn&&(e.f&I)!==0&&e.deps}finally{ae=r,w=n}}}function O(e){var t=e.f,n=(t&S)!==0;if(p!==null&&!M){var r=w!==null&&(w.f&G)!==0;if(!r&&!j?.includes(e)){var i=p.deps;if((p.f&Me)!==0)e.rv<ve&&(e.rv=ve,k===null&&i!==null&&i[T]===e?T++:k===null?k=[e]:(!H||!k.includes(e))&&k.push(e));else{(p.deps??=[]).push(e);var o=e.reactions;o===null?e.reactions=[p]:o.includes(p)||o.push(p)}}}else if(n&&e.deps===null&&e.effects===null){var a=e,l=a.parent;l!==null&&(l.f&A)===0&&(a.f^=A)}if(Q){if(B.has(e))return B.get(e);if(n){a=e;var s=a.v;return((a.f&E)===0&&a.reactions!==null||Yt(a))&&(s=We(a)),B.set(a,s),s}}else if(n){if(a=e,ne?.has(a))return ne.get(a);ke(a)&&bt(a)}if((e.f&V)!==0)throw e.v;return e.v}function Yt(e){if(e.v===m)return!0;if(e.deps===null)return!1;for(const t of e.deps)if(B.has(t)||(t.f&S)!==0&&Yt(t))return!0;return!1}function Gt(e){var t=M;try{return M=!0,e()}finally{M=t}}const hr=-7169;function C(e,t){e.f=e.f&hr|t}const _r=["touchstart","touchmove"];function pr(e){return _r.includes(e)}const Vt=new Set,Ze=new Set;function wr(e){for(var t=0;t<e.length;t++)Vt.add(e[t]);for(var n of Ze)n(e)}let Kt=null;function Te(e){var t=this,n=t.ownerDocument,r=e.type,i=e.composedPath?.()||[],o=i[0]||e.target;Kt=e;var a=0,l=Kt===e&&e.__root;if(l){var s=i.indexOf(l);if(s!==-1&&(t===document||t===window)){e.__root=t;return}var f=i.indexOf(t);if(f===-1)return;s<=f&&(a=s)}if(o=i[a]||e.target,o!==t){Re(e,"currentTarget",{configurable:!0,get(){return o||n}});var u=p,d=w;F(null),z(null);try{for(var h,c=[];o!==null;){var v=o.assignedSlot||o.parentNode||o.host||null;try{var b=o["__"+r];if(b!=null&&(!o.disabled||e.target===o))if(lt(b)){var[g,...N]=b;g.apply(o,[e,...N])}else b.call(o,e)}catch(_){h?c.push(_):h=_}if(e.cancelBubble||v===t||v===null)break;o=v}if(h){for(let _ of c)queueMicrotask(()=>{throw _});throw h}}finally{e.__root=t,delete e.currentTarget,F(u),z(d)}}}function br(e){var t;t=document.head.appendChild(ye());try{Rt(()=>e(t),vt)}finally{}}function mr(e){var t=document.createElement("template");return t.innerHTML=e.replaceAll("<!>","<!---->"),t.content}function Je(e,t){var n=w;n.nodes_start===null&&(n.nodes_start=e,n.nodes_end=t)}function he(e,t){var n=(t&Dn)!==0,r=(t&Mn)!==0,i,o=!e.startsWith("<!>");return()=>{i===void 0&&(i=mr(o?e:"<!>"+e),n||(i=Ee(i)));var a=r||Tt?document.importNode(i,!0):i.cloneNode(!0);if(n){var l=Ee(a),s=a.lastChild;Je(l,s)}else Je(a,a);return a}}function gr(){var e=document.createDocumentFragment(),t=document.createComment(""),n=ye();return e.append(t,n),Je(t,n),e}function le(e,t){e!==null&&e.before(t)}function yr(e,t){return Er(e,t)}const fe=new Map;function Er(e,{target:t,anchor:n,props:r={},events:i,context:o,intro:a=!0}){Qn();var l=new Set,s=d=>{for(var h=0;h<d.length;h++){var c=d[h];if(!l.has(c)){l.add(c);var v=pr(c);t.addEventListener(c,Te,{passive:v});var b=fe.get(c);b===void 0?(document.addEventListener(c,Te,{passive:v}),fe.set(c,1)):fe.set(c,b+1)}}};s(cn(Vt)),Ze.add(s);var f=void 0,u=ir(()=>{var d=n??t.appendChild(ye());return Ke(()=>{if(o){be({});var h=R;h.c=o}i&&(r.$$events=i),f=e(d,r)||{},o&&me()}),()=>{for(var h of l){t.removeEventListener(h,Te);var c=fe.get(h);--c===0?(document.removeEventListener(h,Te),fe.delete(h)):fe.set(h,c)}Ze.delete(s),d!==n&&d.parentNode?.removeChild(d)}});return xr.set(f,u),f}let xr=new WeakMap;function kr(e,t,n=!1){var r=e,i=null,o=null,a=m,l=n?Le:0,s=!1;const f=(c,v=!0)=>{s=!0,h(v,c)};var u=null;function d(){u!==null&&(u.lastChild.remove(),r.before(u),u=null);var c=a?i:o,v=a?o:i;c&&ur(c),v&&Dt(v,()=>{a?o=null:i=null})}const h=(c,v)=>{if(a!==(a=c)){var b=er(),g=r;if(b&&(u=document.createDocumentFragment(),u.append(g=ye())),a?i??=v&&Ke(()=>v(g)):o??=v&&Ke(()=>v(g)),b){var N=x,_=a?i:o,y=a?o:i;_&&N.skipped_effects.delete(_),y&&N.skipped_effects.add(y),N.add_callback(d)}else d()}};Rt(()=>{s=!1,t(f),s||h(null,null)},l)}function Qe(e,t){or(()=>{var n=e.getRootNode(),r=n.host?n:n.head??n.ownerDocument.head;if(!r.querySelector("#"+t.hash)){const i=document.createElement("style");i.id=t.hash,i.textContent=t.code,r.appendChild(i)}})}const Zt=[...`
2
+ \r\f \v\uFEFF`];function Sr(e,t,n){var r=e==null?"":""+e;if(t&&(r=r?r+" "+t:t),n){for(var i in n)if(n[i])r=r?r+" "+i:i;else if(r.length)for(var o=i.length,a=0;(a=r.indexOf(i,a))>=0;){var l=a+o;(a===0||Zt.includes(r[a-1]))&&(l===r.length||Zt.includes(r[l]))?r=(a===0?"":r.substring(0,a))+r.substring(l+1):a=l}}return r===""?null:r}function Jt(e,t,n,r,i,o){var a=e.__className;if(a!==n||a===void 0){var l=Sr(n,r,o);l==null?e.removeAttribute("class"):e.className=l,e.__className=n}else if(o&&i!==o)for(var s in o){var f=!!o[s];(i==null||f!==!!i[s])&&e.classList.toggle(s,f)}return o}const Tr=Symbol("is custom element"),Or=Symbol("is html");function ue(e,t,n,r){var i=Cr(e);i[t]!==(i[t]=n)&&(t==="loading"&&(e[mn]=n),n==null?e.removeAttribute(t):typeof n!="string"&&Ar(e).includes(t)?e[t]=n:e.setAttribute(t,n))}function Cr(e){return e.__attributes??={[Tr]:e.nodeName.includes("-"),[Or]:e.namespaceURI===Fn}}var Qt=new Map;function Ar(e){var t=Qt.get(e.nodeName);if(t)return t;Qt.set(e.nodeName,t=[]);for(var n,r=e,i=Element.prototype;i!==r;){n=dn(r);for(var o in n)n[o].set&&t.push(o);r=ft(r)}return t}let Oe=!1;function Ir(e){var t=Oe;try{return Oe=!1,[e(),Oe]}finally{Oe=t}}function Xe(e,t,n,r){var i=(n&Nn)!==0,o=(n&Ln)!==0,a=r,l=!0,s=()=>(l&&(l=!1,a=o?Gt(r):r),a),f;if(i){var u=pe in e||bn in e;f=ee(e,t)?.set??(u&&t in e?_=>e[t]=_:void 0)}var d,h=!1;i?[d,h]=Ir(()=>e[t]):d=e[t],d===void 0&&r!==void 0&&(d=s(),f&&(On(),f(d)));var c;if(c=()=>{var _=e[t];return _===void 0?s():(l=!0,_)},(n&Pn)===0)return c;if(f){var v=e.$$legacy;return function(_,y){return arguments.length>0?((!y||v||h)&&f(y?c():_),_):c()}}var b=!1,g=((n&Rn)!==0?qe:Yn)(()=>(b=!1,c()));i&&O(g);var N=w;return function(_,y){if(arguments.length>0){const $=y?O(g):i?oe(_):_;return D(g,$),b=!0,a!==void 0&&(a=$),_}return Q&&b||(N.f&G)!==0?g.v:O(g)}}function Xt(e){R===null&&yn(),rr(()=>{const t=Gt(e);if(typeof t=="function")return t})}const Rr="5";typeof window<"u"&&((window.__svelte??={}).v??=new Set).add(Rr);var Pr=he('<div><iframe id="chat-frame" title="Chat" class="bot svelte-b4a27v" frameborder="0" allow="microphone; clipboard-write" allowfullscreen=""></iframe></div>'),Nr=he(`<p class="svelte-b4a27v">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-b4a27v">
4
4
  <code class="svelte-b4a27v">
5
5
  &lt;script
@@ -12,7 +12,7 @@
12
12
  <br class="svelte-b4a27v"/>
13
13
  src="https://server.com/webclient/embed/bundle.js"&gt; &lt;/script&gt;
14
14
  </code>
15
- </pre>`,1);const Nr={hash:"svelte-b4a27v",code:`.svelte-b4a27v,
15
+ </pre>`,1);const Lr={hash:"svelte-b4a27v",code:`.svelte-b4a27v,
16
16
  .svelte-b4a27v:before,
17
17
  .svelte-b4a27v:after {box-sizing:border-box;}.bot-border.svelte-b4a27v {position:fixed;display:flex;flex-direction:column;top:0;bottom:env(safe-area-inset-bottom);height:100%;max-height:100vh;width:100%;border-width:0;border-radius:var(--window-border-radius, 8px);box-shadow:rgba(0, 0, 0, 0.24) 0px 16px 40px;background:transparent;opacity:1;transition:transform 200ms,
18
18
  opacity 100ms 100ms,
@@ -20,10 +20,10 @@
20
20
 
21
21
  @media screen and (min-width: 768px) {#chat-frame.svelte-b4a27v {border-radius:var(--window-border-radius, 8px);}.bot-border.svelte-b4a27v {height:var(--window-height, 43em);max-height:calc(100vh - 2em);width:var(--window-width, 25em);top:auto;right:1em;bottom:1em;left:auto;border-radius:var(--window-border-radius, 8px);}.bot-border.closed.svelte-b4a27v {transform:translateY(var(--window-height, 43em));opacity:0;}
22
22
  }p.svelte-b4a27v,
23
- pre.svelte-b4a27v {max-width:300px;}pre.svelte-b4a27v {font-size:0.6em;line-height:0.5;}`};function Lr(e,t){we(t,!0),Je(e,Nr),Xt(()=>{document.getElementById("chat-frame")?.addEventListener("load",t.onLoad)});var n=mr(),r=Qn(n);{var i=a=>{var l=Rr();let s;var f=Ge(l);Ee((u,d)=>{s=Jt(l,1,"bot-border svelte-b4a27v",null,s,u),se(l,"aria-hidden",t.open?"false":"true"),se(f,"src",d)},[()=>({closed:!t.open}),()=>`${t.server}${t.server.indexOf("?")===-1?"?":"&"}referrer=${encodeURIComponent(t.referrer??"")}`]),oe(a,l)},o=a=>{var l=Pr();oe(a,l)};xr(r,a=>{t.server?a(i):a(o,!1)})}oe(e,n),be()}function Dr(e,t){const n=e.key;(n==="ArrowDown"||n==="ArrowRight"||n==="Enter"||n===" "||n==="Space")&&(e.stopPropagation(),t.onToggle())}var Mr=ve('<div class="chat-button-wrapper svelte-2hl2mw" tabindex="0" role="button" aria-label="Open chat window"><img class="chat-button svelte-2hl2mw" alt="Open chat window"/></div>');const Fr={hash:"svelte-2hl2mw",code:`.svelte-2hl2mw,
23
+ pre.svelte-b4a27v {max-width:300px;}pre.svelte-b4a27v {font-size:0.6em;line-height:0.5;}`};function Dr(e,t){be(t,!0),Qe(e,Lr),Xt(()=>{document.getElementById("chat-frame")?.addEventListener("load",t.onLoad)});var n=gr(),r=Xn(n);{var i=a=>{var l=Pr();let s;var f=Ve(l);xe((u,d)=>{s=Jt(l,1,"bot-border svelte-b4a27v",null,s,u),ue(l,"aria-hidden",t.open?"false":"true"),ue(f,"src",d)},[()=>({closed:!t.open}),()=>`${t.server}${t.server.indexOf("?")===-1?"?":"&"}referrer=${encodeURIComponent(t.referrer??"")}`]),le(a,l)},o=a=>{var l=Nr();le(a,l)};kr(r,a=>{t.server?a(i):a(o,!1)})}le(e,n),me()}function Mr(e,t){const n=e.key;(n==="ArrowDown"||n==="ArrowRight"||n==="Enter"||n===" "||n==="Space")&&(e.stopPropagation(),t.onToggle())}var Fr=he('<div class="chat-button-wrapper svelte-2hl2mw" tabindex="0" role="button" aria-label="Open chat window"><img class="chat-button svelte-2hl2mw" alt="Open chat window"/></div>');const Ur={hash:"svelte-2hl2mw",code:`.svelte-2hl2mw,
24
24
  .svelte-2hl2mw:before,
25
25
  .svelte-2hl2mw:after {box-sizing:border-box;}.chat-button-wrapper.svelte-2hl2mw {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-2hl2mw {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-2hl2mw {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-2hl2mw:hover {box-shadow:16px 16px 16px rgba(0, 0, 0, 0.2);transform:translateY(-2px);}`};function Ur(e,t){we(t,!0),Je(e,Fr);var n=Mr();n.__click=function(...i){t.onToggle?.apply(this,i)},n.__keydown=[Dr,t];var r=Ge(n);Ee(()=>{se(n,"aria-expanded",t.open?"true":"false"),se(r,"src",`${t.assetsUrl}/fab.svg`)}),oe(e,n),be()}pr(["click","keydown"]);let $t=!1;function jr(e){$t=e}function qr(){return $t}/*! js-cookie v3.0.5 | MIT */function Oe(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)e[r]=n[r]}return e}var Wr={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 Xe(e,t){function n(i,o,a){if(!(typeof document>"u")){a=Oe({},t,a),typeof a.expires=="number"&&(a.expires=new Date(Date.now()+a.expires*864e5)),a.expires&&(a.expires=a.expires.toUTCString()),i=encodeURIComponent(i).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var l="";for(var s in a)a[s]&&(l+="; "+s,a[s]!==!0&&(l+="="+a[s].split(";")[0]));return document.cookie=i+"="+e.write(o,i)+l}}function r(i){if(!(typeof document>"u"||arguments.length&&!i)){for(var o=document.cookie?document.cookie.split("; "):[],a={},l=0;l<o.length;l++){var s=o[l].split("="),f=s.slice(1).join("=");try{var u=decodeURIComponent(s[0]);if(a[u]=e.read(f,u),i===u)break}catch{}}return i?a[i]:a}}return Object.create({set:n,get:r,remove:function(i,o){n(i,"",Oe({},o,{expires:-1}))},withAttributes:function(i){return Xe(this.converter,Oe({},this.attributes,i))},withConverter:function(i){return Xe(Oe({},this.converter,i),this.attributes)}},{attributes:{value:Object.freeze(t)},converter:{value:Object.freeze(e)}})}var en=Xe(Wr,{path:"/"});const tn="bubble-chat-window-state",nn=()=>{switch(en.get(tn)){case"open":return!0;case"closed":return!1;default:return}},rn=e=>{const t=new Date(new Date().getTime()+288e5);en.set(tn,e,{expires:t})},$e=[];let et=nn();function tt(){et=!0,rn("open"),$e.forEach(function(e){e.call(window,!0)})}function Ce(){et=!1,rn("closed"),$e.forEach(function(e){e.call(window,!1)})}function on(){et?Ce():tt()}function zr(){nt({type:"RESTART_CHAT"})}function Br(e){nt({type:"CHAT_MESSAGE_FROM_GUEST",text:e})}function Hr(e){nt({type:"TRIGGER_STORY",story:e})}function nt(e){document.getElementById("chat-frame")?.contentWindow?.postMessage(e,"*")}function an(e,t){switch(e){case"ON_CHAT_WINDOW_STATE_CHANGE":$e.push(t);break;default:throw new Error("Unsupported event "+e)}}const Yr=Object.freeze(Object.defineProperty({__proto__:null,closeChatWindow:Ce,enterGuestMessage:Br,isChatbotLoaded:qr,openChatWindow:tt,restartChat:zr,subscribe:an,toggleChatWindow:on,triggerStory:Hr},Symbol.toStringTag,{value:"Module"}));function Gr(){return navigator.userAgent.match(/(iPad|iPhone|iPod)/g)}const Vr=()=>{Gr()&&document.querySelectorAll("html, body").forEach(e=>{e.classList.add("iOS-device")})},Kr=e=>{"gtag"in window&&typeof window.gtag=="function"?window.gtag("event","",e):"dataLayer"in window&&Array.isArray(window.dataLayer)&&window.dataLayer.push(e)},Zr=(e,t,n,r,i)=>{window.addEventListener("message",o=>{const a=o.data;switch(a.type){case"webclient.chat.started":e();break;case"webclient.chat.ended":t();break;case"webclient.window.expand":n(a.devices,a.initial);break;case"webclient.window.close":r();break;case"webclient.change.url":i(a.url);break;case"google.tag.event":Kr(a.payload);break}},!1)},Jr=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 Qr=ve('<link rel="stylesheet"/>'),Xr=ve("<div><!> <!></div>");const $r={hash:"svelte-4k2y00",code:".bubble-chat.svelte-4k2y00 {font-size:16px;visibility:hidden;opacity:0;}.bubble-chat.chatbot-ready.svelte-4k2y00 {visibility:visible;opacity:1;}"};function ei(e,t){we(t,!0),Je(e,$r);let n=Qe(t,"assetsUrl",19,()=>t.server?t.server.split("?")[0]:void 0),r=Qe(t,"linkHandling",3,"default"),i=Qe(t,"chatStarted",7,!1);const o="chatbot-style";let a=L(!1),l=L(!1);Vr();let s=L(!!nn());an("ON_CHAT_WINDOW_STATE_CHANGE",function(E){D(s,E,!0)});function f(){i(!0)}function u(){i(!1)}function d(_,E){const $=window.innerWidth,it=_==null||_==="all",ot=_==="desktop"&&$>=768,oi=_==="mobile"&&$<768,ai=it||ot||oi;(E?O(s)!==!1:!0)&&ai&&tt()}function h(){Ce()}function c(_){const E=window.innerWidth,$=window.location.hostname,it=new URL(_).hostname,ot=$===it;E<768&&Ce(),r()==="new-tab"?window.open(_,"_blank"):r()==="existing-tab"||ot?document.location.href=_:window.open(_,"_blank")}function v(){D(l,!0)}Zr(f,u,d,h,c),Xt(async()=>{D(a,await Jr(o),!0)});var b=Xr();wr(_=>{var E=Qr();se(E,"id",o),Ee(()=>se(E,"href",`${n()}/custom.css`)),oe(_,E)});var y=Ge(b);Ur(y,{get assetsUrl(){return n()},get open(){return O(s)},get onToggle(){return on}});var N=Xn(y,2);Lr(N,{get server(){return t.server},get referrer(){return t.referrer},get open(){return O(s)},onLoad:v}),Ee(()=>Jt(b,1,`bubble-chat ${O(a)&&O(l)?"chatbot-ready":""}`,"svelte-4k2y00")),oe(e,b),be()}const ti=e=>e.replace(/\/embed\/bundle\.js/,""),ni=e=>e.dataset?.server,ri=e=>{if(e&&"src"in e&&typeof e.src=="string")return ni(e)||ti(e.src)},rt=document.querySelector("script#chatbot"),sn=ri(rt),ii=rt?.getAttribute("link-handling")?rt.getAttribute("link-handling"):"default";window.chatbot=Yr;const ln=()=>{console.log("Chatbot is loading from",sn),gr(ei,{target:document.body,props:{server:sn,referrer:window.location.href,linkHandling:ii}}),jr(!0)},fn=(e=0)=>{e>=3||document.readyState==="complete"?setTimeout(ln,500):setTimeout(()=>{fn(e+1)},500)};fn();const Ae=document.getElementById("chatbot");Ae&&"src"in Ae&&typeof Ae.src=="string"&&Ae.src.indexOf("caller=bookmarklet")>0&&setTimeout(ln,500)})();
29
+ box-shadow 100ms;}.chat-button.svelte-2hl2mw:hover {box-shadow:16px 16px 16px rgba(0, 0, 0, 0.2);transform:translateY(-2px);}`};function jr(e,t){be(t,!0),Qe(e,Ur);var n=Fr();n.__click=function(...i){t.onToggle?.apply(this,i)},n.__keydown=[Mr,t];var r=Ve(n);xe(()=>{ue(n,"aria-expanded",t.open?"true":"false"),ue(r,"src",`${t.assetsUrl}/fab.svg`)}),le(e,n),me()}wr(["click","keydown"]);let $t=!1;function qr(e){$t=e}function Wr(){return $t}/*! js-cookie v3.0.5 | MIT */function Ce(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)e[r]=n[r]}return e}var Br={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 $e(e,t){function n(i,o,a){if(!(typeof document>"u")){a=Ce({},t,a),typeof a.expires=="number"&&(a.expires=new Date(Date.now()+a.expires*864e5)),a.expires&&(a.expires=a.expires.toUTCString()),i=encodeURIComponent(i).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var l="";for(var s in a)a[s]&&(l+="; "+s,a[s]!==!0&&(l+="="+a[s].split(";")[0]));return document.cookie=i+"="+e.write(o,i)+l}}function r(i){if(!(typeof document>"u"||arguments.length&&!i)){for(var o=document.cookie?document.cookie.split("; "):[],a={},l=0;l<o.length;l++){var s=o[l].split("="),f=s.slice(1).join("=");try{var u=decodeURIComponent(s[0]);if(a[u]=e.read(f,u),i===u)break}catch{}}return i?a[i]:a}}return Object.create({set:n,get:r,remove:function(i,o){n(i,"",Ce({},o,{expires:-1}))},withAttributes:function(i){return $e(this.converter,Ce({},this.attributes,i))},withConverter:function(i){return $e(Ce({},this.converter,i),this.attributes)}},{attributes:{value:Object.freeze(t)},converter:{value:Object.freeze(e)}})}var en=$e(Br,{path:"/"});const tn="bubble-chat-window-state",nn=()=>{switch(en.get(tn)){case"open":return!0;case"closed":return!1;default:return}},rn=e=>{const t=new Date(new Date().getTime()+288e5);en.set(tn,e,{expires:t})},et=[];let tt=nn();function nt(){tt=!0,rn("open"),et.forEach(function(e){e.call(window,!0)})}function Ae(){tt=!1,rn("closed"),et.forEach(function(e){e.call(window,!1)})}function on(){tt?Ae():nt()}function zr(){rt({type:"RESTART_CHAT"})}function Hr(e){rt({type:"CHAT_MESSAGE_FROM_GUEST",text:e})}function Yr(e){rt({type:"TRIGGER_STORY",story:e})}function rt(e){document.getElementById("chat-frame")?.contentWindow?.postMessage(e,"*")}function an(e,t){switch(e){case"ON_CHAT_WINDOW_STATE_CHANGE":et.push(t);break;default:throw new Error("Unsupported event "+e)}}const Gr=Object.freeze(Object.defineProperty({__proto__:null,closeChatWindow:Ae,enterGuestMessage:Hr,isChatbotLoaded:Wr,openChatWindow:nt,restartChat:zr,subscribe:an,toggleChatWindow:on,triggerStory:Yr},Symbol.toStringTag,{value:"Module"}));function Vr(){return navigator.userAgent.match(/(iPad|iPhone|iPod)/g)}const Kr=()=>{Vr()&&document.querySelectorAll("html, body").forEach(e=>{e.classList.add("iOS-device")})},Zr=e=>{"gtag"in window&&typeof window.gtag=="function"?window.gtag("event","",e):"dataLayer"in window&&Array.isArray(window.dataLayer)&&window.dataLayer.push(e)},Jr=(e,t,n,r,i)=>{window.addEventListener("message",o=>{const a=o.data;switch(a.type){case"webclient.chat.started":e();break;case"webclient.chat.ended":t();break;case"webclient.window.expand":n(a.devices,a.initial);break;case"webclient.window.close":r();break;case"webclient.change.url":i(a.url);break;case"google.tag.event":Zr(a.payload);break}},!1)},Qr=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 Xr=he('<link rel="stylesheet"/>'),$r=he("<div><!> <!></div>");const ei={hash:"svelte-4k2y00",code:".bubble-chat.svelte-4k2y00 {font-size:16px;visibility:hidden;opacity:0;}.bubble-chat.chatbot-ready.svelte-4k2y00 {visibility:visible;opacity:1;}"};function ti(e,t){be(t,!0),Qe(e,ei);let n=Xe(t,"assetsUrl",19,()=>t.server?t.server.split("?")[0]:void 0),r=Xe(t,"linkHandling",3,"default"),i=Xe(t,"chatStarted",7,!1);const o="chatbot-style";let a=L(!1),l=L(!1);Kr();let s=L(!!nn());an("ON_CHAT_WINDOW_STATE_CHANGE",function(y){D(s,y,!0)});function f(){i(!0)}function u(){i(!1)}function d(_,y){const $=window.innerWidth,ot=_==null||_==="all",at=_==="desktop"&&$>=768,ai=_==="mobile"&&$<768,si=ot||at||ai;(y?O(s)!==!1:!0)&&si&&nt()}function h(){Ae()}function c(_){const y=window.innerWidth,$=window.location.hostname,ot=new URL(_).hostname,at=$===ot;y<768&&Ae(),r()==="new-tab"?window.open(_,"_blank"):r()==="existing-tab"||at?document.location.href=_:window.open(_,"_blank")}function v(){D(l,!0)}Jr(f,u,d,h,c),Xt(async()=>{D(a,await Qr(o),!0)});var b=$r();br(_=>{var y=Xr();ue(y,"id",o),xe(()=>ue(y,"href",`${n()}/custom.css`)),le(_,y)});var g=Ve(b);jr(g,{get assetsUrl(){return n()},get open(){return O(s)},get onToggle(){return on}});var N=$n(g,2);Dr(N,{get server(){return t.server},get referrer(){return t.referrer},get open(){return O(s)},onLoad:v}),xe(()=>Jt(b,1,`bubble-chat ${O(a)&&O(l)?"chatbot-ready":""}`,"svelte-4k2y00")),le(e,b),me()}const ni=e=>e.replace(/\/embed\/bundle\.js/,""),ri=e=>e.dataset?.server,ii=e=>{if(e&&"src"in e&&typeof e.src=="string")return ri(e)||ni(e.src)},it=document.querySelector("script#chatbot"),sn=ii(it),oi=it?.getAttribute("link-handling")?it.getAttribute("link-handling"):"default";window.chatbot=Gr;const ln=()=>{console.log("Chatbot is loading from",sn),yr(ti,{target:document.body,props:{server:sn,referrer:window.location.href,linkHandling:oi}}),qr(!0)},fn=(e=0)=>{e>=3||document.readyState==="complete"?setTimeout(ln,500):setTimeout(()=>{fn(e+1)},500)};fn();const Ie=document.getElementById("chatbot");Ie&&"src"in Ie&&typeof Ie.src=="string"&&Ie.src.indexOf("caller=bookmarklet")>0&&setTimeout(ln,500)})();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@botfabrik/engine-webclient",
3
- "version": "4.96.12",
3
+ "version": "4.96.13",
4
4
  "description": "Webclient for Botfabriks Bot Engine",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -21,7 +21,7 @@
21
21
  },
22
22
  "dependencies": {
23
23
  "@botfabrik/engine-domain": "^4.96.12",
24
- "@botfabrik/engine-transcript-export": "^4.96.12",
24
+ "@botfabrik/engine-transcript-export": "^4.96.13",
25
25
  "@botfabrik/engine-utils": "^4.96.12",
26
26
  "@google-cloud/speech": "^7.2.0",
27
27
  "@node-saml/passport-saml": "^5.1.0",
@@ -43,5 +43,5 @@
43
43
  "tsx": "^4.20.4",
44
44
  "typescript": "5.9.2"
45
45
  },
46
- "gitHead": "04159006f2f8bd556ffe006eb7d2e6a44c4f27d7"
46
+ "gitHead": "23a08f6daaeae417c44b49812eceb7690ccad6b5"
47
47
  }