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