@htmlbricks/hb-messages-box 0.61.54 → 0.61.57
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/main.iife.js +3 -3
- package/main.iife.js.map +1 -1
- package/manifest.json +48 -48
- package/package.json +1 -1
package/main.iife.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function(ht){"use strict";typeof window<"u"&&((window.__svelte??={}).v??=new Set).add("5");const $n=1,bn=4,En=8,xn=16,Tn=2,dt="[",vt="[!",_t="]",$e={},b=Symbol(),Sn="http://www.w3.org/1999/xhtml",pt=!1;var An=Array.isArray,Nn=Array.prototype.indexOf,Rn=Array.from,Ce=Object.keys,Pe=Object.defineProperty,ne=Object.getOwnPropertyDescriptor,On=Object.getOwnPropertyDescriptors,Cn=Object.prototype,Pn=Array.prototype,gt=Object.getPrototypeOf,mt=Object.isExtensible;function Ln(e){for(var t=0;t<e.length;t++)e[t]()}function yt(){var e,t,n=new Promise((r,s)=>{e=r,t=s});return{promise:n,resolve:e,reject:t}}const E=2,Le=4,Xe=8,H=16,re=32,J=64,ke=128,M=512,S=1024,O=2048,V=4096,K=8192,Z=16384,wt=32768,Me=65536,$t=1<<17,bt=1<<18,se=1<<19,kn=1<<20,be=32768,Qe=1<<21,et=1<<22,X=1<<23,De=Symbol("$state"),Et=Symbol("legacy props"),Mn=Symbol(""),he=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"},Dn=3,Ie=8;function In(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function jn(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function Fn(){throw new Error("https://svelte.dev/e/hydration_failed")}function qn(e){throw new Error("https://svelte.dev/e/props_invalid_value")}function Bn(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function Yn(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function Un(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function Hn(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}function tt(e){console.warn("https://svelte.dev/e/hydration_mismatch")}function Vn(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}let m=!1;function de(e){m=e}let w;function Q(e){if(e===null)throw tt(),$e;return w=e}function xt(){return Q(te(w))}function nt(e){if(m){if(te(w)!==null)throw tt(),$e;w=e}}function Wn(e=1){if(m){for(var t=e,n=w;t--;)n=te(n);w=n}}function zn(e=!0){for(var t=0,n=w;;){if(n.nodeType===Ie){var r=n.data;if(r===_t){if(t===0)return n;t-=1}else(r===dt||r===vt)&&(t+=1)}var s=te(n);e&&n.remove(),n=s}}function Tt(e){return e===this.v}function Gn(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function St(e){return!Gn(e,this.v)}let Jn=!1,D=null;function ve(e){D=e}function At(e,t=!1,n){D={p:D,i:!1,c:null,e:null,s:e,x:null,l:null}}function Nt(e){var t=D,n=t.e;if(n!==null){t.e=null;for(var r of n)dr(r)}return e!==void 0&&(t.x=e),t.i=!0,D=t.p,e??{}}function Rt(){return!0}let ie=[];function Ot(){var e=ie;ie=[],Ln(e)}function je(e){if(ie.length===0&&!Ee){var t=ie;queueMicrotask(()=>{t===ie&&Ot()})}ie.push(e)}function Kn(){for(;ie.length>0;)Ot()}function Ct(e){var t=p;if(t===null)return _.f|=X,e;if((t.f&wt)===0){if((t.f&ke)===0)throw e;t.b.error(e)}else _e(e,t)}function _e(e,t){for(;t!==null;){if((t.f&ke)!==0)try{t.b.error(e);return}catch(n){e=n}t=t.parent}throw e}const Fe=new Set;let $=null,C=null,B=[],qe=null,rt=!1,Ee=!1;class I{committed=!1;current=new Map;previous=new Map;#t=new Set;#e=new Set;#f=0;#i=0;#a=null;#l=[];#s=[];skipped_effects=new Set;is_fork=!1;process(t){B=[],this.apply();var n={parent:null,effect:null,effects:[],render_effects:[],block_effects:[]};for(const r of t)this.#n(r,n);this.is_fork||this.#o(),this.#i>0||this.is_fork?(this.#r(n.effects),this.#r(n.render_effects),this.#r(n.block_effects)):($=null,Lt(n.render_effects),Lt(n.effects),this.#a?.resolve()),C=null}#n(t,n){t.f^=S;for(var r=t.first;r!==null;){var s=r.f,i=(s&(re|J))!==0,l=i&&(s&S)!==0,o=l||(s&K)!==0||this.skipped_effects.has(r);if((r.f&ke)!==0&&r.b?.is_pending()&&(n={parent:n,effect:r,effects:[],render_effects:[],block_effects:[]}),!o&&r.fn!==null){i?r.f^=S:(s&Le)!==0?n.effects.push(r):Ae(r)&&((r.f&H)!==0&&n.block_effects.push(r),Ne(r));var f=r.first;if(f!==null){r=f;continue}}var a=r.parent;for(r=r.next;r===null&&a!==null;)a===n.effect&&(this.#r(n.effects),this.#r(n.render_effects),this.#r(n.block_effects),n=n.parent),r=a.next,a=a.parent}}#r(t){for(const n of t)((n.f&O)!==0?this.#l:this.#s).push(n),R(n,S)}capture(t,n){this.previous.has(t)||this.previous.set(t,n),(t.f&X)===0&&(this.current.set(t,t.v),C?.set(t,t.v))}activate(){$=this,this.apply()}deactivate(){$=null,C=null}flush(){if(this.activate(),B.length>0){if(Pt(),$!==null&&$!==this)return}else this.#f===0&&this.process([]);this.deactivate()}discard(){for(const t of this.#e)t(this);this.#e.clear()}#o(){if(this.#i===0){for(const t of this.#t)t();this.#t.clear()}this.#f===0&&this.#u()}#u(){if(Fe.size>1){this.previous.clear();var t=C,n=!0,r={parent:null,effect:null,effects:[],render_effects:[],block_effects:[]};for(const s of Fe){if(s===this){n=!1;continue}const i=[];for(const[o,f]of this.current){if(s.current.has(o))if(n&&f!==s.current.get(o))s.current.set(o,f);else continue;i.push(o)}if(i.length===0)continue;const l=[...s.current.keys()].filter(o=>!this.current.has(o));if(l.length>0){const o=new Set,f=new Map;for(const a of i)kt(a,l,o,f);if(B.length>0){$=s,s.apply();for(const a of B)s.#n(a,r);B=[],s.deactivate()}}}$=null,C=t}this.committed=!0,Fe.delete(this)}increment(t){this.#f+=1,t&&(this.#i+=1)}decrement(t){this.#f-=1,t&&(this.#i-=1),this.revive()}revive(){for(const t of this.#l)R(t,O),ge(t);for(const t of this.#s)R(t,V),ge(t);this.#l=[],this.#s=[],this.flush()}oncommit(t){this.#t.add(t)}ondiscard(t){this.#e.add(t)}settled(){return(this.#a??=yt()).promise}static ensure(){if($===null){const t=$=new I;Fe.add($),Ee||I.enqueue(()=>{$===t&&t.flush()})}return $}static enqueue(t){je(t)}apply(){}}function pe(e){var t=Ee;Ee=!0;try{for(var n;;){if(Kn(),B.length===0&&($?.flush(),B.length===0))return qe=null,n;Pt()}}finally{Ee=t}}function Pt(){var e=fe;rt=!0;try{var t=0;for(Kt(!0);B.length>0;){var n=I.ensure();if(t++>1e3){var r,s;Zn()}n.process(B),ee.clear()}}finally{rt=!1,Kt(e),qe=null}}function Zn(){try{jn()}catch(e){_e(e,qe)}}let W=null;function Lt(e){var t=e.length;if(t!==0){for(var n=0;n<t;){var r=e[n++];if((r.f&(Z|K))===0&&Ae(r)&&(W=new Set,Ne(r),r.deps===null&&r.first===null&&r.nodes_start===null&&(r.teardown===null&&r.ac===null?Gt(r):r.fn=null),W?.size>0)){ee.clear();for(const s of W){if((s.f&(Z|K))!==0)continue;const i=[s];let l=s.parent;for(;l!==null;)W.has(l)&&(W.delete(l),i.push(l)),l=l.parent;for(let o=i.length-1;o>=0;o--){const f=i[o];(f.f&(Z|K))===0&&Ne(f)}}W.clear()}}W=null}}function kt(e,t,n,r){if(!n.has(e)&&(n.add(e),e.reactions!==null))for(const s of e.reactions){const i=s.f;(i&E)!==0?kt(s,t,n,r):(i&(et|H))!==0&&(i&O)===0&&Mt(s,t,r)&&(R(s,O),ge(s))}}function Mt(e,t,n){const r=n.get(e);if(r!==void 0)return r;if(e.deps!==null)for(const s of e.deps){if(t.includes(s))return!0;if((s.f&E)!==0&&Mt(s,t,n))return n.set(s,!0),!0}return n.set(e,!1),!1}function ge(e){for(var t=qe=e;t.parent!==null;){t=t.parent;var n=t.f;if(rt&&t===p&&(n&H)!==0&&(n&bt)===0)return;if((n&(J|re))!==0){if((n&S)===0)return;t.f^=S}}B.push(t)}function Xn(e){let t=0,n=xe(0),r;return()=>{We()&&(N(n),Vt(()=>(t===0&&(r=on(()=>e(()=>Te(n)))),t+=1,()=>{je(()=>{t-=1,t===0&&(r?.(),r=void 0,Te(n))})})))}}var Qn=Me|se|ke;function er(e,t,n){new tr(e,t,n)}class tr{parent;#t=!1;#e;#f=m?w:null;#i;#a;#l;#s=null;#n=null;#r=null;#o=null;#u=null;#d=0;#c=0;#v=!1;#h=null;#y=Xn(()=>(this.#h=xe(this.#d),()=>{this.#h=null}));constructor(t,n,r){this.#e=t,this.#i=n,this.#a=r,this.parent=p.b,this.#t=!!this.#i.pending,this.#l=mr(()=>{if(p.b=this,m){const i=this.#f;xt(),i.nodeType===Ie&&i.data===vt?this.#$():this.#w()}else{var s=this.#g();try{this.#s=oe(()=>r(s))}catch(i){this.error(i)}this.#c>0?this.#p():this.#t=!1}return()=>{this.#u?.remove()}},Qn),m&&(this.#e=w)}#w(){try{this.#s=oe(()=>this.#a(this.#e))}catch(t){this.error(t)}this.#t=!1}#$(){const t=this.#i.pending;t&&(this.#n=oe(()=>t(this.#e)),I.enqueue(()=>{var n=this.#g();this.#s=this.#_(()=>(I.ensure(),oe(()=>this.#a(n)))),this.#c>0?this.#p():(Ge(this.#n,()=>{this.#n=null}),this.#t=!1)}))}#g(){var t=this.#e;return this.#t&&(this.#u=He(),this.#e.before(this.#u),t=this.#u),t}is_pending(){return this.#t||!!this.parent&&this.parent.is_pending()}has_pending_snippet(){return!!this.#i.pending}#_(t){var n=p,r=_,s=D;L(this.#l),x(this.#l),ve(this.#l.ctx);try{return t()}catch(i){return Ct(i),null}finally{L(n),x(r),ve(s)}}#p(){const t=this.#i.pending;this.#s!==null&&(this.#o=document.createDocumentFragment(),this.#o.append(this.#u),br(this.#s,this.#o)),this.#n===null&&(this.#n=oe(()=>t(this.#e)))}#m(t){if(!this.has_pending_snippet()){this.parent&&this.parent.#m(t);return}this.#c+=t,this.#c===0&&(this.#t=!1,this.#n&&Ge(this.#n,()=>{this.#n=null}),this.#o&&(this.#e.before(this.#o),this.#o=null))}update_pending_count(t){this.#m(t),this.#d+=t,this.#h&&Ue(this.#h,this.#d)}get_effect_pending(){return this.#y(),N(this.#h)}error(t){var n=this.#i.onerror;let r=this.#i.failed;if(this.#v||!n&&!r)throw t;this.#s&&(q(this.#s),this.#s=null),this.#n&&(q(this.#n),this.#n=null),this.#r&&(q(this.#r),this.#r=null),m&&(Q(this.#f),Wn(),Q(zn()));var s=!1,i=!1;const l=()=>{if(s){Vn();return}s=!0,i&&Hn(),I.ensure(),this.#d=0,this.#r!==null&&Ge(this.#r,()=>{this.#r=null}),this.#t=this.has_pending_snippet(),this.#s=this.#_(()=>(this.#v=!1,oe(()=>this.#a(this.#e)))),this.#c>0?this.#p():this.#t=!1};var o=_;try{x(null),i=!0,n?.(t,l),i=!1}catch(f){_e(f,this.#l&&this.#l.parent)}finally{x(o)}r&&je(()=>{this.#r=this.#_(()=>{I.ensure(),this.#v=!0;try{return oe(()=>{r(this.#e,()=>t,()=>l)})}catch(f){return _e(f,this.#l.parent),null}finally{this.#v=!1}})})}}function nr(e,t,n,r){const s=Ye;if(n.length===0&&e.length===0){r(t.map(s));return}var i=$,l=p,o=rr();function f(){Promise.all(n.map(a=>sr(a))).then(a=>{o();try{r([...t.map(s),...a])}catch(h){(l.f&Z)===0&&_e(h,l)}i?.deactivate(),Be()}).catch(a=>{_e(a,l)})}e.length>0?Promise.all(e).then(()=>{o();try{return f()}finally{i?.deactivate(),Be()}}):f()}function rr(){var e=p,t=_,n=D,r=$;return function(i=!0){L(e),x(t),ve(n),i&&r?.activate()}}function Be(){L(null),x(null),ve(null)}function Ye(e){var t=E|O,n=_!==null&&(_.f&E)!==0?_:null;return p!==null&&(p.f|=se),{ctx:D,deps:null,effects:null,equals:Tt,f:t,fn:e,reactions:null,rv:0,v:b,wv:0,parent:n??p,ac:null}}function sr(e,t){let n=p;n===null&&In();var r=n.b,s=void 0,i=xe(b),l=!_,o=new Map;return gr(()=>{var f=yt();s=f.promise;try{Promise.resolve(e()).then(f.resolve,f.reject).then(()=>{a===$&&a.committed&&a.deactivate(),Be()})}catch(u){f.reject(u),Be()}var a=$;if(l){var h=!r.is_pending();r.update_pending_count(1),a.increment(h),o.get(a)?.reject(he),o.delete(a),o.set(a,f)}const d=(u,c=void 0)=>{if(a.activate(),c)c!==he&&(i.f|=X,Ue(i,c));else{(i.f&X)!==0&&(i.f^=X),Ue(i,u);for(const[g,y]of o){if(o.delete(g),g===a)break;y.reject(he)}}l&&(r.update_pending_count(-1),a.decrement(h))};f.promise.then(d,u=>d(null,u||"unknown"))}),Ht(()=>{for(const f of o.values())f.reject(he)}),new Promise(f=>{function a(h){function d(){h===s?f(i):a(s)}h.then(d,d)}a(s)})}function ir(e){const t=Ye(e);return Xt(t),t}function lr(e){const t=Ye(e);return t.equals=St,t}function Dt(e){var t=e.effects;if(t!==null){e.effects=null;for(var n=0;n<t.length;n+=1)q(t[n])}}function or(e){for(var t=e.parent;t!==null;){if((t.f&E)===0)return t;t=t.parent}return null}function st(e){var t,n=p;L(or(e));try{e.f&=~be,Dt(e),t=rn(e)}finally{L(n)}return t}function It(e){var t=st(e);if(e.equals(t)||(e.v=t,e.wv=tn()),!me)if(C!==null)We()&&C.set(e,e.v);else{var n=(e.f&M)===0?V:S;R(e,n)}}let it=new Set;const ee=new Map;let jt=!1;function xe(e,t){var n={f:0,v:e,reactions:null,equals:Tt,rv:0,wv:0};return n}function j(e,t){const n=xe(e);return Xt(n),n}function fr(e,t=!1,n=!0){const r=xe(e);return t||(r.equals=St),r}function F(e,t,n=!1){_!==null&&(!U||(_.f&$t)!==0)&&Rt()&&(_.f&(E|H|et|$t))!==0&&!z?.includes(e)&&Un();let r=n?le(t):t;return Ue(e,r)}function Ue(e,t){if(!e.equals(t)){var n=e.v;me?ee.set(e,t):ee.set(e,n),e.v=t;var r=I.ensure();r.capture(e,n),(e.f&E)!==0&&((e.f&O)!==0&&st(e),R(e,(e.f&M)!==0?S:V)),e.wv=tn(),Ft(e,O),p!==null&&(p.f&S)!==0&&(p.f&(re|J))===0&&(k===null?Er([e]):k.push(e)),!r.is_fork&&it.size>0&&!jt&&ar()}return t}function ar(){jt=!1;const e=Array.from(it);for(const t of e)(t.f&S)!==0&&R(t,V),Ae(t)&&Ne(t);it.clear()}function Te(e){F(e,e.v+1)}function Ft(e,t){var n=e.reactions;if(n!==null)for(var r=n.length,s=0;s<r;s++){var i=n[s],l=i.f,o=(l&O)===0;if(o&&R(i,t),(l&E)!==0){var f=i;C?.delete(f),(l&be)===0&&(l&M&&(i.f|=be),Ft(f,V))}else o&&((l&H)!==0&&W!==null&&W.add(i),ge(i))}}function le(e){if(typeof e!="object"||e===null||De in e)return e;const t=gt(e);if(t!==Cn&&t!==Pn)return e;var n=new Map,r=An(e),s=j(0),i=ae,l=o=>{if(ae===i)return o();var f=_,a=ae;x(null),en(i);var h=o();return x(f),en(a),h};return r&&n.set("length",j(e.length)),new Proxy(e,{defineProperty(o,f,a){(!("value"in a)||a.configurable===!1||a.enumerable===!1||a.writable===!1)&&Bn();var h=n.get(f);return h===void 0?h=l(()=>{var d=j(a.value);return n.set(f,d),d}):F(h,a.value,!0),!0},deleteProperty(o,f){var a=n.get(f);if(a===void 0){if(f in o){const h=l(()=>j(b));n.set(f,h),Te(s)}}else F(a,b),Te(s);return!0},get(o,f,a){if(f===De)return e;var h=n.get(f),d=f in o;if(h===void 0&&(!d||ne(o,f)?.writable)&&(h=l(()=>{var c=le(d?o[f]:b),g=j(c);return g}),n.set(f,h)),h!==void 0){var u=N(h);return u===b?void 0:u}return Reflect.get(o,f,a)},getOwnPropertyDescriptor(o,f){var a=Reflect.getOwnPropertyDescriptor(o,f);if(a&&"value"in a){var h=n.get(f);h&&(a.value=N(h))}else if(a===void 0){var d=n.get(f),u=d?.v;if(d!==void 0&&u!==b)return{enumerable:!0,configurable:!0,value:u,writable:!0}}return a},has(o,f){if(f===De)return!0;var a=n.get(f),h=a!==void 0&&a.v!==b||Reflect.has(o,f);if(a!==void 0||p!==null&&(!h||ne(o,f)?.writable)){a===void 0&&(a=l(()=>{var u=h?le(o[f]):b,c=j(u);return c}),n.set(f,a));var d=N(a);if(d===b)return!1}return h},set(o,f,a,h){var d=n.get(f),u=f in o;if(r&&f==="length")for(var c=a;c<d.v;c+=1){var g=n.get(c+"");g!==void 0?F(g,b):c in o&&(g=l(()=>j(b)),n.set(c+"",g))}if(d===void 0)(!u||ne(o,f)?.writable)&&(d=l(()=>j(void 0)),F(d,le(a)),n.set(f,d));else{u=d.v!==b;var y=l(()=>le(a));F(d,y)}var T=Reflect.getOwnPropertyDescriptor(o,f);if(T?.set&&T.set.call(h,a),!u){if(r&&typeof f=="string"){var G=n.get("length"),v=Number(f);Number.isInteger(v)&&v>=G.v&&F(G,v+1)}Te(s)}return!0},ownKeys(o){N(s);var f=Reflect.ownKeys(o).filter(d=>{var u=n.get(d);return u===void 0||u.v!==b});for(var[a,h]of n)h.v!==b&&!(a in o)&&f.push(a);return f},setPrototypeOf(){Yn()}})}var qt,Bt,Yt,Ut;function lt(){if(qt===void 0){qt=window,Bt=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,n=Text.prototype;Yt=ne(t,"firstChild").get,Ut=ne(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 He(e=""){return document.createTextNode(e)}function Ve(e){return Yt.call(e)}function te(e){return Ut.call(e)}function ot(e,t){if(!m)return Ve(e);var n=Ve(w);return n===null&&(n=w.appendChild(He())),Q(n),n}function ur(e,t=1,n=!1){let r=m?w:e;for(var s;t--;)s=r,r=te(r);if(!m)return r;if(n&&r?.nodeType!==Dn){var i=He();return r===null?s?.after(i):r.before(i),Q(i),i}return Q(r),r}function cr(e){e.textContent=""}function ft(e){var t=_,n=p;x(null),L(null);try{return e()}finally{x(t),L(n)}}function hr(e,t){var n=t.last;n===null?t.last=t.first=e:(n.next=e,e.prev=n,t.last=e)}function Y(e,t,n,r=!0){var s=p;s!==null&&(s.f&K)!==0&&(e|=K);var i={ctx:D,deps:null,nodes_start:null,nodes_end:null,f:e|O|M,first:null,fn:t,last:null,next:null,parent:s,b:s&&s.b,prev:null,teardown:null,transitions:null,wv:0,ac:null};if(n)try{Ne(i),i.f|=wt}catch(f){throw q(i),f}else t!==null&&ge(i);if(r){var l=i;if(n&&l.deps===null&&l.teardown===null&&l.nodes_start===null&&l.first===l.last&&(l.f&se)===0&&(l=l.first,(e&H)!==0&&(e&Me)!==0&&l!==null&&(l.f|=Me)),l!==null&&(l.parent=s,s!==null&&hr(l,s),_!==null&&(_.f&E)!==0&&(e&J)===0)){var o=_;(o.effects??=[]).push(l)}}return i}function We(){return _!==null&&!U}function Ht(e){const t=Y(Xe,null,!1);return R(t,S),t.teardown=e,t}function dr(e){return Y(Le|kn,e,!1)}function vr(e){I.ensure();const t=Y(J|se,e,!0);return()=>{q(t)}}function _r(e){I.ensure();const t=Y(J|se,e,!0);return(n={})=>new Promise(r=>{n.outro?Ge(t,()=>{q(t),r(void 0)}):(q(t),r(void 0))})}function pr(e){return Y(Le,e,!1)}function gr(e){return Y(et|se,e,!0)}function Vt(e,t=0){return Y(Xe|t,e,!0)}function ze(e,t=[],n=[],r=[],s=!1){nr(r,t,n,i=>{Y(s?Le:Xe,()=>e(...i.map(N)),!0)})}function mr(e,t=0){var n=Y(H|t,e,!0);return n}function oe(e,t=!0){return Y(re|se,e,!0,t)}function Wt(e){var t=e.teardown;if(t!==null){const n=me,r=_;Zt(!0),x(null);try{t.call(null)}finally{Zt(n),x(r)}}}function zt(e,t=!1){var n=e.first;for(e.first=e.last=null;n!==null;){const s=n.ac;s!==null&&ft(()=>{s.abort(he)});var r=n.next;(n.f&J)!==0?n.parent=null:q(n,t),n=r}}function yr(e){for(var t=e.first;t!==null;){var n=t.next;(t.f&re)===0&&q(t),t=n}}function q(e,t=!0){var n=!1;(t||(e.f&bt)!==0)&&e.nodes_start!==null&&e.nodes_end!==null&&(wr(e.nodes_start,e.nodes_end),n=!0),zt(e,t&&!n),Je(e,0),R(e,Z);var r=e.transitions;if(r!==null)for(const i of r)i.stop();Wt(e);var s=e.parent;s!==null&&s.first!==null&&Gt(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes_start=e.nodes_end=e.ac=null}function wr(e,t){for(;e!==null;){var n=e===t?null:te(e);e.remove(),e=n}}function Gt(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 Ge(e,t,n=!0){var r=[];Jt(e,r,!0),$r(r,()=>{n&&q(e),t&&t()})}function $r(e,t){var n=e.length;if(n>0){var r=()=>--n||t();for(var s of e)s.out(r)}else t()}function Jt(e,t,n){if((e.f&K)===0){if(e.f^=K,e.transitions!==null)for(const l of e.transitions)(l.is_global||n)&&t.push(l);for(var r=e.first;r!==null;){var s=r.next,i=(r.f&Me)!==0||(r.f&re)!==0&&(e.f&H)!==0;Jt(r,t,i?n:!1),r=s}}}function br(e,t){for(var n=e.nodes_start,r=e.nodes_end;n!==null;){var s=n===r?null:te(n);t.append(n),n=s}}let fe=!1;function Kt(e){fe=e}let me=!1;function Zt(e){me=e}let _=null,U=!1;function x(e){_=e}let p=null;function L(e){p=e}let z=null;function Xt(e){_!==null&&(z===null?z=[e]:z.push(e))}let A=null,P=0,k=null;function Er(e){k=e}let Qt=1,Se=0,ae=Se;function en(e){ae=e}function tn(){return++Qt}function Ae(e){var t=e.f;if((t&O)!==0)return!0;if(t&E&&(e.f&=~be),(t&V)!==0){var n=e.deps;if(n!==null)for(var r=n.length,s=0;s<r;s++){var i=n[s];if(Ae(i)&&It(i),i.wv>e.wv)return!0}(t&M)!==0&&C===null&&R(e,S)}return!1}function nn(e,t,n=!0){var r=e.reactions;if(r!==null&&!z?.includes(e))for(var s=0;s<r.length;s++){var i=r[s];(i.f&E)!==0?nn(i,t,!1):t===i&&(n?R(i,O):(i.f&S)!==0&&R(i,V),ge(i))}}function rn(e){var t=A,n=P,r=k,s=_,i=z,l=D,o=U,f=ae,a=e.f;A=null,P=0,k=null,_=(a&(re|J))===0?e:null,z=null,ve(e.ctx),U=!1,ae=++Se,e.ac!==null&&(ft(()=>{e.ac.abort(he)}),e.ac=null);try{e.f|=Qe;var h=e.fn,d=h(),u=e.deps;if(A!==null){var c;if(Je(e,P),u!==null&&P>0)for(u.length=P+A.length,c=0;c<A.length;c++)u[P+c]=A[c];else e.deps=u=A;if(fe&&We()&&(e.f&M)!==0)for(c=P;c<u.length;c++)(u[c].reactions??=[]).push(e)}else u!==null&&P<u.length&&(Je(e,P),u.length=P);if(Rt()&&k!==null&&!U&&u!==null&&(e.f&(E|V|O))===0)for(c=0;c<k.length;c++)nn(k[c],e);return s!==null&&s!==e&&(Se++,k!==null&&(r===null?r=k:r.push(...k))),(e.f&X)!==0&&(e.f^=X),d}catch(g){return Ct(g)}finally{e.f^=Qe,A=t,P=n,k=r,_=s,z=i,ve(l),U=o,ae=f}}function xr(e,t){let n=t.reactions;if(n!==null){var r=Nn.call(n,e);if(r!==-1){var s=n.length-1;s===0?n=t.reactions=null:(n[r]=n[s],n.pop())}}n===null&&(t.f&E)!==0&&(A===null||!A.includes(t))&&(R(t,V),(t.f&M)!==0&&(t.f^=M,t.f&=~be),Dt(t),Je(t,0))}function Je(e,t){var n=e.deps;if(n!==null)for(var r=t;r<n.length;r++)xr(e,n[r])}function Ne(e){var t=e.f;if((t&Z)===0){R(e,S);var n=p,r=fe;p=e,fe=!0;try{(t&H)!==0?yr(e):zt(e),Wt(e);var s=rn(e);e.teardown=typeof s=="function"?s:null,e.wv=Qt;var i;pt&&Jn&&(e.f&O)!==0&&e.deps}finally{fe=r,p=n}}}function N(e){var t=e.f,n=(t&E)!==0;if(_!==null&&!U){var r=p!==null&&(p.f&Z)!==0;if(!r&&!z?.includes(e)){var s=_.deps;if((_.f&Qe)!==0)e.rv<Se&&(e.rv=Se,A===null&&s!==null&&s[P]===e?P++:A===null?A=[e]:A.includes(e)||A.push(e));else{(_.deps??=[]).push(e);var i=e.reactions;i===null?e.reactions=[_]:i.includes(_)||i.push(_)}}}if(me){if(ee.has(e))return ee.get(e);if(n){var l=e,o=l.v;return((l.f&S)===0&&l.reactions!==null||ln(l))&&(o=st(l)),ee.set(l,o),o}}else if(n){if(l=e,C?.has(l))return C.get(l);Ae(l)&&It(l),fe&&We()&&(l.f&M)===0&&sn(l)}else if(C?.has(e))return C.get(e);if((e.f&X)!==0)throw e.v;return e.v}function sn(e){if(e.deps!==null){e.f^=M;for(const t of e.deps)(t.reactions??=[]).push(e),(t.f&E)!==0&&(t.f&M)===0&&sn(t)}}function ln(e){if(e.v===b)return!0;if(e.deps===null)return!1;for(const t of e.deps)if(ee.has(t)||(t.f&E)!==0&&ln(t))return!0;return!1}function on(e){var t=U;try{return U=!0,e()}finally{U=t}}const Tr=-7169;function R(e,t){e.f=e.f&Tr|t}const Sr=new Set,fn=new Set;function Ar(e,t,n,r={}){function s(i){if(r.capture||Re.call(t,i),!i.cancelBubble)return ft(()=>n?.call(this,i))}return e.startsWith("pointer")||e.startsWith("touch")||e==="wheel"?je(()=>{t.addEventListener(e,s,r)}):t.addEventListener(e,s,r),s}function Nr(e,t,n,r,s){var i={capture:r,passive:s},l=Ar(e,t,n,i);(t===document.body||t===window||t===document||t instanceof HTMLMediaElement)&&Ht(()=>{t.removeEventListener(e,l,i)})}let an=null;function Re(e){var t=this,n=t.ownerDocument,r=e.type,s=e.composedPath?.()||[],i=s[0]||e.target;an=e;var l=0,o=an===e&&e.__root;if(o){var f=s.indexOf(o);if(f!==-1&&(t===document||t===window)){e.__root=t;return}var a=s.indexOf(t);if(a===-1)return;f<=a&&(l=f)}if(i=s[l]||e.target,i!==t){Pe(e,"currentTarget",{configurable:!0,get(){return i||n}});var h=_,d=p;x(null),L(null);try{for(var u,c=[];i!==null;){var g=i.assignedSlot||i.parentNode||i.host||null;try{var y=i["__"+r];y!=null&&(!i.disabled||e.target===i)&&y.call(i,e)}catch(T){u?c.push(T):u=T}if(e.cancelBubble||g===t||g===null)break;i=g}if(u){for(let T of c)queueMicrotask(()=>{throw T});throw u}}finally{e.__root=t,delete e.currentTarget,x(h),L(d)}}}function Rr(e){var t=document.createElement("template");return t.innerHTML=e.replaceAll("<!>","<!---->"),t.content}function at(e,t){var n=p;n.nodes_start===null&&(n.nodes_start=e,n.nodes_end=t)}function Or(e,t){var n=(t&Tn)!==0,r,s=!e.startsWith("<!>");return()=>{if(m)return at(w,null),w;r===void 0&&(r=Rr(s?e:"<!>"+e),r=Ve(r));var i=n||Bt?document.importNode(r,!0):r.cloneNode(!0);return at(i,i),i}}function un(e,t){if(m){p.nodes_end=w,xt();return}e!==null&&e.before(t)}const Cr=["touchstart","touchmove"];function Pr(e){return Cr.includes(e)}function cn(e,t){return hn(e,t)}function Lr(e,t){lt(),t.intro=t.intro??!1;const n=t.target,r=m,s=w;try{for(var i=Ve(n);i&&(i.nodeType!==Ie||i.data!==dt);)i=te(i);if(!i)throw $e;de(!0),Q(i);const l=hn(e,{...t,anchor:i});return de(!1),l}catch(l){if(l instanceof Error&&l.message.split(`
|
|
2
|
-
`).some(o=>o.startsWith("https://svelte.dev/e/")))throw l;return l!==$e&&console.warn("Failed to hydrate: ",l),t.recover===!1&&Fn(),lt(),cr(n),de(!1),cn(e,t)}finally{de(r),Q(s)}}const ye=new Map;function hn(e,{target:t,anchor:n,props:r={},events:s,context:i,intro:l=!0}){lt();var o=new Set,f=d=>{for(var u=0;u<d.length;u++){var c=d[u];if(!o.has(c)){o.add(c);var g=Pr(c);t.addEventListener(c,Re,{passive:g});var y=ye.get(c);y===void 0?(document.addEventListener(c,Re,{passive:g}),ye.set(c,1)):ye.set(c,y+1)}}};f(Rn(Sr)),fn.add(f);var a=void 0,h=_r(()=>{var d=n??t.appendChild(He());return er(d,{pending:()=>{}},u=>{if(i){At({});var c=D;c.c=i}if(s&&(r.$$events=s),m&&at(u,null),a=e(u,r)||{},m&&(p.nodes_end=w,w===null||w.nodeType!==Ie||w.data!==_t))throw tt(),$e;i&&Nt()}),()=>{for(var u of o){t.removeEventListener(u,Re);var c=ye.get(u);--c===0?(document.removeEventListener(u,Re),ye.delete(u)):ye.set(u,c)}fn.delete(f),d!==n&&d.parentNode?.removeChild(d)}});return ut.set(a,h),a}let ut=new WeakMap;function kr(e,t){const n=ut.get(e);return n?(ut.delete(e),n(t)):Promise.resolve()}function Mr(e,t){pr(()=>{var n=e.getRootNode(),r=n.host?n:n.head??n.ownerDocument.head;if(!r.querySelector("#"+t.hash)){const s=document.createElement("style");s.id=t.hash,s.textContent=t.code,r.appendChild(s)}})}function Dr(e,t,n){var r=""+e;return r}function Ir(e,t){return e==null?null:String(e)}function jr(e,t,n,r,s,i){var l=e.__className;if(m||l!==n||l===void 0){var o=Dr(n);(!m||o!==e.getAttribute("class"))&&(o==null?e.removeAttribute("class"):e.className=o),e.__className=n}return i}function dn(e,t,n,r){var s=e.__style;if(m||s!==t){var i=Ir(t);(!m||i!==e.getAttribute("style"))&&(i==null?e.removeAttribute("style"):e.style.cssText=i),e.__style=t}return r}const Fr=Symbol("is custom element"),qr=Symbol("is html");function Br(e,t,n,r){var s=Yr(e);m&&(s[t]=e.getAttribute(t),t==="src"||t==="srcset"||t==="href"&&e.nodeName==="LINK")||s[t]!==(s[t]=n)&&(t==="loading"&&(e[Mn]=n),n==null?e.removeAttribute(t):typeof n!="string"&&vn(e).includes(t)?e[t]=n:e.setAttribute(t,n))}function ue(e,t,n){var r=_,s=p;let i=m;m&&de(!1),x(null),L(null);try{t!=="style"&&(ct.has(e.getAttribute("is")||e.nodeName)||!customElements||customElements.get(e.getAttribute("is")||e.tagName.toLowerCase())?vn(e).includes(t):n&&typeof n=="object")?e[t]=n:Br(e,t,n==null?n:String(n))}finally{x(r),L(s),i&&de(!0)}}function Yr(e){return e.__attributes??={[Fr]:e.nodeName.includes("-"),[qr]:e.namespaceURI===Sn}}var ct=new Map;function vn(e){var t=e.getAttribute("is")||e.nodeName,n=ct.get(t);if(n)return n;ct.set(t,n=[]);for(var r,s=e,i=Element.prototype;i!==s;){r=On(s);for(var l in r)r[l].set&&n.push(l);s=gt(s)}return n}let Ke=!1;function Ur(e){var t=Ke;try{return Ke=!1,[e(),Ke]}finally{Ke=t}}function Oe(e,t,n,r){var s=(n&En)!==0,i=(n&xn)!==0,l=r,o=!0,f=()=>(o&&(o=!1,l=i?on(r):r),l),a;if(s){var h=De in e||Et in e;a=ne(e,t)?.set??(h&&t in e?v=>e[t]=v:void 0)}var d,u=!1;s?[d,u]=Ur(()=>e[t]):d=e[t],d===void 0&&r!==void 0&&(d=f(),a&&(qn(),a(d)));var c;if(c=()=>{var v=e[t];return v===void 0?f():(o=!0,v)},(n&bn)===0)return c;if(a){var g=e.$$legacy;return(function(v,we){return arguments.length>0?((!we||g||u)&&a(we?c():v),v):c()})}var y=!1,T=((n&$n)!==0?Ye:lr)(()=>(y=!1,c()));s&&N(T);var G=p;return(function(v,we){if(arguments.length>0){const wn=we?N(T):s?le(v):v;return F(T,wn),y=!0,l!==void 0&&(l=wn),v}return me&&y||(G.f&Z)!==0?T.v:N(T)})}function Hr(e){return new Vr(e)}class Vr{#t;#e;constructor(t){var n=new Map,r=(i,l)=>{var o=fr(l,!1,!1);return n.set(i,o),o};const s=new Proxy({...t.props||{},$$events:{}},{get(i,l){return N(n.get(l)??r(l,Reflect.get(i,l)))},has(i,l){return l===Et?!0:(N(n.get(l)??r(l,Reflect.get(i,l))),Reflect.has(i,l))},set(i,l,o){return F(n.get(l)??r(l,o),o),Reflect.set(i,l,o)}});this.#e=(t.hydrate?Lr:cn)(t.component,{target:t.target,anchor:t.anchor,props:s,context:t.context,intro:t.intro??!1,recover:t.recover}),(!t?.props?.$$host||t.sync===!1)&&pe(),this.#t=s.$$events;for(const i of Object.keys(this.#e))i==="$set"||i==="$destroy"||i==="$on"||Pe(this,i,{get(){return this.#e[i]},set(l){this.#e[i]=l},enumerable:!0});this.#e.$set=i=>{Object.assign(s,i)},this.#e.$destroy=()=>{kr(this.#e)}}$set(t){this.#e.$set(t)}$on(t,n){this.#t[t]=this.#t[t]||[];const r=(...s)=>n.call(this,...s);return this.#t[t].push(r),()=>{this.#t[t]=this.#t[t].filter(s=>s!==r)}}$destroy(){this.#e.$destroy()}}let _n;typeof HTMLElement=="function"&&(_n=class extends HTMLElement{$$ctor;$$s;$$c;$$cn=!1;$$d={};$$r=!1;$$p_d={};$$l={};$$l_u=new Map;$$me;constructor(e,t,n){super(),this.$$ctor=e,this.$$s=t,n&&this.attachShadow({mode:"open"})}addEventListener(e,t,n){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(t),this.$$c){const r=this.$$c.$on(e,t);this.$$l_u.set(t,r)}super.addEventListener(e,t,n)}removeEventListener(e,t,n){if(super.removeEventListener(e,t,n),this.$$c){const r=this.$$l_u.get(t);r&&(r(),this.$$l_u.delete(t))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let e=function(r){return s=>{const i=document.createElement("slot");r!=="default"&&(i.name=r),un(s,i)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const t={},n=Wr(this);for(const r of this.$$s)r in n&&(r==="default"&&!this.$$d.children?(this.$$d.children=e(r),t.default=!0):t[r]=e(r));for(const r of this.attributes){const s=this.$$g_p(r.name);s in this.$$d||(this.$$d[s]=Ze(s,r.value,this.$$p_d,"toProp"))}for(const r in this.$$p_d)!(r in this.$$d)&&this[r]!==void 0&&(this.$$d[r]=this[r],delete this[r]);this.$$c=Hr({component:this.$$ctor,target:this.shadowRoot||this,props:{...this.$$d,$$slots:t,$$host:this}}),this.$$me=vr(()=>{Vt(()=>{this.$$r=!0;for(const r of Ce(this.$$c)){if(!this.$$p_d[r]?.reflect)continue;this.$$d[r]=this.$$c[r];const s=Ze(r,this.$$d[r],this.$$p_d,"toAttribute");s==null?this.removeAttribute(this.$$p_d[r].attribute||r):this.setAttribute(this.$$p_d[r].attribute||r,s)}this.$$r=!1})});for(const r in this.$$l)for(const s of this.$$l[r]){const i=this.$$c.$on(r,s);this.$$l_u.set(s,i)}this.$$l={}}}attributeChangedCallback(e,t,n){this.$$r||(e=this.$$g_p(e),this.$$d[e]=Ze(e,n,this.$$p_d,"toProp"),this.$$c?.$set({[e]:this.$$d[e]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$me(),this.$$c=void 0)})}$$g_p(e){return Ce(this.$$p_d).find(t=>this.$$p_d[t].attribute===e||!this.$$p_d[t].attribute&&t.toLowerCase()===e)||e}});function Ze(e,t,n,r){const s=n[e]?.type;if(t=s==="Boolean"&&typeof t!="boolean"?t!=null:t,!r||!n[e])return t;if(r==="toAttribute")switch(s){case"Object":case"Array":return t==null?null:JSON.stringify(t);case"Boolean":return t?"":null;case"Number":return t??null;default:return t}else switch(s){case"Object":case"Array":return t&&JSON.parse(t);case"Boolean":return t;case"Number":return t!=null?+t:t;default:return t}}function Wr(e){const t={};return e.childNodes.forEach(n=>{t[n.slot||"default"]=!0}),t}function zr(e,t,n,r,s,i){let l=class extends _n{constructor(){super(e,n,s),this.$$p_d=t}static get observedAttributes(){return Ce(t).map(o=>(t[o].attribute||o).toLowerCase())}};return Ce(t).forEach(o=>{Pe(l.prototype,o,{get(){return this.$$c&&o in this.$$c?this.$$c[o]:this.$$d[o]},set(f){f=Ze(o,f,t),this.$$d[o]=f;var a=this.$$c;if(a){var h=ne(a,o)?.get;h?a[o]=f:a.$set({[o]:f})}}})}),r.forEach(o=>{Pe(l.prototype,o,{get(){return this.$$c?.[o]}})}),e.element=l,l}const pn={version:"0.61.54"};var ce={},gn;function Gr(){if(gn)return ce;gn=1,Object.defineProperty(ce,"__esModule",{value:!0}),ce.LanguageTranslator=void 0,ce.getChildStyleToPass=e,ce.addComponent=t;function e(r,s){var i,l,o="";try{if(r&&s?.length&&(!((i=Object.keys(r))===null||i===void 0)&&i.length)&&(!((l=s?.filter(function(u){return Object.keys(r).includes(u.name)}))===null||l===void 0)&&l.length))for(var f=function(u){var c=s?.filter(function(g){return g.name===u&&g.defaultValue!==r[u]});c&&(o+="".concat(u,":").concat(r[u],";"))},a=0,h=Object.keys(r);a<h.length;a++){var d=h[a];f(d)}}catch(u){console.error("error getting child style to pass",u)}finally{return o}}function t(r){var s,i=((s=r?.repoName.split("/"))===null||s===void 0?void 0:s[1])||r?.repoName;if(!i)throw new Error("wrong componentPath "+r?.repoName);if(!r?.version)throw new Error("wrong version "+r?.version);var l=r?.iifePath||"main.iife.js";if(!document.getElementById(i+"-script"))try{var o=document.createElement("script");if(o.id=i+"-script",o.src="https://cdn.jsdelivr.net/npm/".concat(r.repoName,"@").concat(r.version,"/").concat(l),r?.local)o.src="".concat(r.local);else if(location.href.includes("localhost:6006")){var f=i.split("-")[0];o.src="http://localhost:6006/webcomponents/".concat(i.replace(f+"-",""),"/").concat(l)}document.head.appendChild(o)}catch(a){console.warn(a)}}var n=(function(){function r(s){if(this.lang="",!s?.dictionary)throw new Error("no dictionary provided");this.dictionary=s.dictionary,this.setLang(s?.lang)}return r.prototype.setLang=function(s){s||(s=r.getDefaultLang()),this.lang=s},r.prototype.translateWord=function(s,i){return r.getDictionaryWord(s,this.dictionary,i||this.lang)},r.prototype.translateDate=function(s,i,l){return r.formatDate(s,i,l||this.lang)},r.getDefaultLang=function(){var s,i,l,o="en";return navigator?.languages&&(!((l=(i=(s=navigator.languages[0])===null||s===void 0?void 0:s.split("-")[0])===null||i===void 0?void 0:i.toLowerCase())===null||l===void 0)&&l.length)&&(o=navigator.languages[0].split("-")[0].toLowerCase()),o},r.getDictionaryWord=function(s,i,l){var o;if(!s)throw new Error("no wordKey provided");if(!i)throw new Error("no dictionary provided");if(l&&(!((o=i[l])===null||o===void 0)&&o[s]))return i[l][s];var f="",a=r.getDefaultLang();if(!l||a!==l){var h=i?.[a];h?.[s]&&(f=h[s])}return f},r.formatDate=function(s,i,l){if(!s)throw new Error("no date provided");if(typeof s.getMonth!="function")throw new Error("wrong date format");var o=new Intl.DateTimeFormat(l||r.getDefaultLang(),i);return o.format(s)},r})();return ce.LanguageTranslator=n,ce}var mn=Gr(),Jr=Or('<div id="compocontainer" class="svelte-11p6sry"><div id="list" class="svelte-11p6sry"><hb-messages-list></hb-messages-list></div> <div id="prompt" class="svelte-11p6sry"><hb-messages-send></hb-messages-send></div></div>',2);const Kr={hash:"svelte-11p6sry",code:`@import url("https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap");
|
|
3
|
-
@import url("https://cdn.jsdelivr.net/npm/bootstrap-icons@latest/font/bootstrap-icons.css");:host {font-family:"Roboto", sans-serif;display:block;overflow:hidden;height:fit-content;min-height:100px;}#compocontainer.svelte-11p6sry {display:grid;grid-template-areas:"messages" "prompt";overflow:hidden;grid-template-rows:1fr 180px;height:100%;min-height:200px;}#list.svelte-11p6sry {overflow-y:auto;grid-area:messages;min-height:0;height:100%;}#list.svelte-11p6sry hb-messages-list:where(.svelte-11p6sry) {height:100%;display:block;}#prompt.svelte-11p6sry {grid-area:prompt;width:90%;max-width:1600px;margin:0 auto;}.msglist.svelte-11p6sry {width:90%;max-width:1400px;margin:0 auto;}`};function
|
|
1
|
+
(function(dt){"use strict";typeof window<"u"&&((window.__svelte??={}).v??=new Set).add("5");const $n=1,bn=4,En=8,xn=16,Tn=2,vt="[",_t="[!",pt="]",$e={},b=Symbol(),Sn="http://www.w3.org/1999/xhtml",gt=!1;var An=Array.isArray,Nn=Array.prototype.indexOf,Rn=Array.from,Ce=Object.keys,Pe=Object.defineProperty,re=Object.getOwnPropertyDescriptor,On=Object.getOwnPropertyDescriptors,Cn=Object.prototype,Pn=Array.prototype,mt=Object.getPrototypeOf,wt=Object.isExtensible;function Ln(e){for(var t=0;t<e.length;t++)e[t]()}function yt(){var e,t,n=new Promise((r,s)=>{e=r,t=s});return{promise:n,resolve:e,reject:t}}const E=2,Le=4,Ze=8,H=16,J=32,K=64,ke=128,j=512,S=1024,O=2048,V=4096,Z=8192,X=16384,Xe=32768,Me=65536,$t=1<<17,bt=1<<18,se=1<<19,kn=1<<20,be=32768,Qe=1<<21,et=1<<22,Q=1<<23,De=Symbol("$state"),Et=Symbol("legacy props"),Mn=Symbol(""),de=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"},Dn=3,Ie=8;function In(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function jn(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function Fn(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function qn(e){throw new Error("https://svelte.dev/e/effect_orphan")}function Bn(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function Yn(){throw new Error("https://svelte.dev/e/hydration_failed")}function Un(e){throw new Error("https://svelte.dev/e/props_invalid_value")}function Hn(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function Vn(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function Wn(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function zn(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}function tt(e){console.warn("https://svelte.dev/e/hydration_mismatch")}function Gn(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}let m=!1;function ve(e){m=e}let y;function ee(e){if(e===null)throw tt(),$e;return y=e}function xt(){return ee(ne(y))}function nt(e){if(m){if(ne(y)!==null)throw tt(),$e;y=e}}function Jn(e=1){if(m){for(var t=e,n=y;t--;)n=ne(n);y=n}}function Kn(e=!0){for(var t=0,n=y;;){if(n.nodeType===Ie){var r=n.data;if(r===pt){if(t===0)return n;t-=1}else(r===vt||r===_t)&&(t+=1)}var s=ne(n);e&&n.remove(),n=s}}function Tt(e){return e===this.v}function Zn(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function St(e){return!Zn(e,this.v)}let Xn=!1,L=null;function _e(e){L=e}function At(e,t=!1,n){L={p:L,i:!1,c:null,e:null,s:e,x:null,l:null}}function Nt(e){var t=L,n=t.e;if(n!==null){t.e=null;for(var r of n)Vt(r)}return e!==void 0&&(t.x=e),t.i=!0,L=t.p,e??{}}function Rt(){return!0}let ie=[];function Ot(){var e=ie;ie=[],Ln(e)}function je(e){if(ie.length===0&&!Ee){var t=ie;queueMicrotask(()=>{t===ie&&Ot()})}ie.push(e)}function Qn(){for(;ie.length>0;)Ot()}function Ct(e){var t=p;if(t===null)return _.f|=Q,e;if((t.f&Xe)===0){if((t.f&ke)===0)throw e;t.b.error(e)}else pe(e,t)}function pe(e,t){for(;t!==null;){if((t.f&ke)!==0)try{t.b.error(e);return}catch(n){e=n}t=t.parent}throw e}const Fe=new Set;let $=null,C=null,B=[],qe=null,rt=!1,Ee=!1;class F{committed=!1;current=new Map;previous=new Map;#t=new Set;#e=new Set;#o=0;#i=0;#a=null;#l=[];#s=[];skipped_effects=new Set;is_fork=!1;process(t){B=[],this.apply();var n={parent:null,effect:null,effects:[],render_effects:[],block_effects:[]};for(const r of t)this.#n(r,n);this.is_fork||this.#f(),this.#i>0||this.is_fork?(this.#r(n.effects),this.#r(n.render_effects),this.#r(n.block_effects)):($=null,Lt(n.render_effects),Lt(n.effects),this.#a?.resolve()),C=null}#n(t,n){t.f^=S;for(var r=t.first;r!==null;){var s=r.f,i=(s&(J|K))!==0,l=i&&(s&S)!==0,f=l||(s&Z)!==0||this.skipped_effects.has(r);if((r.f&ke)!==0&&r.b?.is_pending()&&(n={parent:n,effect:r,effects:[],render_effects:[],block_effects:[]}),!f&&r.fn!==null){i?r.f^=S:(s&Le)!==0?n.effects.push(r):Ae(r)&&((r.f&H)!==0&&n.block_effects.push(r),Ne(r));var o=r.first;if(o!==null){r=o;continue}}var a=r.parent;for(r=r.next;r===null&&a!==null;)a===n.effect&&(this.#r(n.effects),this.#r(n.render_effects),this.#r(n.block_effects),n=n.parent),r=a.next,a=a.parent}}#r(t){for(const n of t)((n.f&O)!==0?this.#l:this.#s).push(n),R(n,S)}capture(t,n){this.previous.has(t)||this.previous.set(t,n),(t.f&Q)===0&&(this.current.set(t,t.v),C?.set(t,t.v))}activate(){$=this,this.apply()}deactivate(){$=null,C=null}flush(){if(this.activate(),B.length>0){if(Pt(),$!==null&&$!==this)return}else this.#o===0&&this.process([]);this.deactivate()}discard(){for(const t of this.#e)t(this);this.#e.clear()}#f(){if(this.#i===0){for(const t of this.#t)t();this.#t.clear()}this.#o===0&&this.#u()}#u(){if(Fe.size>1){this.previous.clear();var t=C,n=!0,r={parent:null,effect:null,effects:[],render_effects:[],block_effects:[]};for(const s of Fe){if(s===this){n=!1;continue}const i=[];for(const[f,o]of this.current){if(s.current.has(f))if(n&&o!==s.current.get(f))s.current.set(f,o);else continue;i.push(f)}if(i.length===0)continue;const l=[...s.current.keys()].filter(f=>!this.current.has(f));if(l.length>0){const f=new Set,o=new Map;for(const a of i)kt(a,l,f,o);if(B.length>0){$=s,s.apply();for(const a of B)s.#n(a,r);B=[],s.deactivate()}}}$=null,C=t}this.committed=!0,Fe.delete(this)}increment(t){this.#o+=1,t&&(this.#i+=1)}decrement(t){this.#o-=1,t&&(this.#i-=1),this.revive()}revive(){for(const t of this.#l)R(t,O),me(t);for(const t of this.#s)R(t,V),me(t);this.#l=[],this.#s=[],this.flush()}oncommit(t){this.#t.add(t)}ondiscard(t){this.#e.add(t)}settled(){return(this.#a??=yt()).promise}static ensure(){if($===null){const t=$=new F;Fe.add($),Ee||F.enqueue(()=>{$===t&&t.flush()})}return $}static enqueue(t){je(t)}apply(){}}function ge(e){var t=Ee;Ee=!0;try{for(var n;;){if(Qn(),B.length===0&&($?.flush(),B.length===0))return qe=null,n;Pt()}}finally{Ee=t}}function Pt(){var e=oe;rt=!0;try{var t=0;for(Zt(!0);B.length>0;){var n=F.ensure();if(t++>1e3){var r,s;er()}n.process(B),te.clear()}}finally{rt=!1,Zt(e),qe=null}}function er(){try{Bn()}catch(e){pe(e,qe)}}let W=null;function Lt(e){var t=e.length;if(t!==0){for(var n=0;n<t;){var r=e[n++];if((r.f&(X|Z))===0&&Ae(r)&&(W=new Set,Ne(r),r.deps===null&&r.first===null&&r.nodes_start===null&&(r.teardown===null&&r.ac===null?Jt(r):r.fn=null),W?.size>0)){te.clear();for(const s of W){if((s.f&(X|Z))!==0)continue;const i=[s];let l=s.parent;for(;l!==null;)W.has(l)&&(W.delete(l),i.push(l)),l=l.parent;for(let f=i.length-1;f>=0;f--){const o=i[f];(o.f&(X|Z))===0&&Ne(o)}}W.clear()}}W=null}}function kt(e,t,n,r){if(!n.has(e)&&(n.add(e),e.reactions!==null))for(const s of e.reactions){const i=s.f;(i&E)!==0?kt(s,t,n,r):(i&(et|H))!==0&&(i&O)===0&&Mt(s,t,r)&&(R(s,O),me(s))}}function Mt(e,t,n){const r=n.get(e);if(r!==void 0)return r;if(e.deps!==null)for(const s of e.deps){if(t.includes(s))return!0;if((s.f&E)!==0&&Mt(s,t,n))return n.set(s,!0),!0}return n.set(e,!1),!1}function me(e){for(var t=qe=e;t.parent!==null;){t=t.parent;var n=t.f;if(rt&&t===p&&(n&H)!==0&&(n&bt)===0)return;if((n&(K|J))!==0){if((n&S)===0)return;t.f^=S}}B.push(t)}function tr(e){let t=0,n=xe(0),r;return()=>{Ve()&&(N(n),Wt(()=>(t===0&&(r=fn(()=>e(()=>Te(n)))),t+=1,()=>{je(()=>{t-=1,t===0&&(r?.(),r=void 0,Te(n))})})))}}var nr=Me|se|ke;function rr(e,t,n){new sr(e,t,n)}class sr{parent;#t=!1;#e;#o=m?y:null;#i;#a;#l;#s=null;#n=null;#r=null;#f=null;#u=null;#d=0;#c=0;#v=!1;#h=null;#w=tr(()=>(this.#h=xe(this.#d),()=>{this.#h=null}));constructor(t,n,r){this.#e=t,this.#i=n,this.#a=r,this.parent=p.b,this.#t=!!this.#i.pending,this.#l=$r(()=>{if(p.b=this,m){const i=this.#o;xt(),i.nodeType===Ie&&i.data===_t?this.#$():this.#y()}else{var s=this.#g();try{this.#s=fe(()=>r(s))}catch(i){this.error(i)}this.#c>0?this.#p():this.#t=!1}return()=>{this.#u?.remove()}},nr),m&&(this.#e=y)}#y(){try{this.#s=fe(()=>this.#a(this.#e))}catch(t){this.error(t)}this.#t=!1}#$(){const t=this.#i.pending;t&&(this.#n=fe(()=>t(this.#e)),F.enqueue(()=>{var n=this.#g();this.#s=this.#_(()=>(F.ensure(),fe(()=>this.#a(n)))),this.#c>0?this.#p():(ze(this.#n,()=>{this.#n=null}),this.#t=!1)}))}#g(){var t=this.#e;return this.#t&&(this.#u=Ue(),this.#e.before(this.#u),t=this.#u),t}is_pending(){return this.#t||!!this.parent&&this.parent.is_pending()}has_pending_snippet(){return!!this.#i.pending}#_(t){var n=p,r=_,s=L;D(this.#l),x(this.#l),_e(this.#l.ctx);try{return t()}catch(i){return Ct(i),null}finally{D(n),x(r),_e(s)}}#p(){const t=this.#i.pending;this.#s!==null&&(this.#f=document.createDocumentFragment(),this.#f.append(this.#u),Tr(this.#s,this.#f)),this.#n===null&&(this.#n=fe(()=>t(this.#e)))}#m(t){if(!this.has_pending_snippet()){this.parent&&this.parent.#m(t);return}this.#c+=t,this.#c===0&&(this.#t=!1,this.#n&&ze(this.#n,()=>{this.#n=null}),this.#f&&(this.#e.before(this.#f),this.#f=null))}update_pending_count(t){this.#m(t),this.#d+=t,this.#h&&Ye(this.#h,this.#d)}get_effect_pending(){return this.#w(),N(this.#h)}error(t){var n=this.#i.onerror;let r=this.#i.failed;if(this.#v||!n&&!r)throw t;this.#s&&(q(this.#s),this.#s=null),this.#n&&(q(this.#n),this.#n=null),this.#r&&(q(this.#r),this.#r=null),m&&(ee(this.#o),Jn(),ee(Kn()));var s=!1,i=!1;const l=()=>{if(s){Gn();return}s=!0,i&&zn(),F.ensure(),this.#d=0,this.#r!==null&&ze(this.#r,()=>{this.#r=null}),this.#t=this.has_pending_snippet(),this.#s=this.#_(()=>(this.#v=!1,fe(()=>this.#a(this.#e)))),this.#c>0?this.#p():this.#t=!1};var f=_;try{x(null),i=!0,n?.(t,l),i=!1}catch(o){pe(o,this.#l&&this.#l.parent)}finally{x(f)}r&&je(()=>{this.#r=this.#_(()=>{F.ensure(),this.#v=!0;try{return fe(()=>{r(this.#e,()=>t,()=>l)})}catch(o){return pe(o,this.#l.parent),null}finally{this.#v=!1}})})}}function ir(e,t,n,r){const s=st;if(n.length===0&&e.length===0){r(t.map(s));return}var i=$,l=p,f=lr();function o(){Promise.all(n.map(a=>fr(a))).then(a=>{f();try{r([...t.map(s),...a])}catch(h){(l.f&X)===0&&pe(h,l)}i?.deactivate(),Be()}).catch(a=>{pe(a,l)})}e.length>0?Promise.all(e).then(()=>{f();try{return o()}finally{i?.deactivate(),Be()}}):o()}function lr(){var e=p,t=_,n=L,r=$;return function(i=!0){D(e),x(t),_e(n),i&&r?.activate()}}function Be(){D(null),x(null),_e(null)}function st(e){var t=E|O,n=_!==null&&(_.f&E)!==0?_:null;return p!==null&&(p.f|=se),{ctx:L,deps:null,effects:null,equals:Tt,f:t,fn:e,reactions:null,rv:0,v:b,wv:0,parent:n??p,ac:null}}function fr(e,t){let n=p;n===null&&In();var r=n.b,s=void 0,i=xe(b),l=!_,f=new Map;return yr(()=>{var o=yt();s=o.promise;try{Promise.resolve(e()).then(o.resolve,o.reject).then(()=>{a===$&&a.committed&&a.deactivate(),Be()})}catch(u){o.reject(u),Be()}var a=$;if(l){var h=!r.is_pending();r.update_pending_count(1),a.increment(h),f.get(a)?.reject(de),f.delete(a),f.set(a,o)}const d=(u,c=void 0)=>{if(a.activate(),c)c!==de&&(i.f|=Q,Ye(i,c));else{(i.f&Q)!==0&&(i.f^=Q),Ye(i,u);for(const[g,w]of f){if(f.delete(g),g===a)break;w.reject(de)}}l&&(r.update_pending_count(-1),a.decrement(h))};o.promise.then(d,u=>d(null,u||"unknown"))}),Ht(()=>{for(const o of f.values())o.reject(de)}),new Promise(o=>{function a(h){function d(){h===s?o(i):a(s)}h.then(d,d)}a(s)})}function or(e){const t=st(e);return t.equals=St,t}function Dt(e){var t=e.effects;if(t!==null){e.effects=null;for(var n=0;n<t.length;n+=1)q(t[n])}}function ar(e){for(var t=e.parent;t!==null;){if((t.f&E)===0)return t;t=t.parent}return null}function it(e){var t,n=p;D(ar(e));try{e.f&=~be,Dt(e),t=rn(e)}finally{D(n)}return t}function It(e){var t=it(e);if(e.equals(t)||(e.v=t,e.wv=tn()),!ae)if(C!==null)Ve()&&C.set(e,e.v);else{var n=(e.f&j)===0?V:S;R(e,n)}}let lt=new Set;const te=new Map;let jt=!1;function xe(e,t){var n={f:0,v:e,reactions:null,equals:Tt,rv:0,wv:0};return n}function k(e,t){const n=xe(e);return Sr(n),n}function ur(e,t=!1,n=!0){const r=xe(e);return t||(r.equals=St),r}function M(e,t,n=!1){_!==null&&(!U||(_.f&$t)!==0)&&Rt()&&(_.f&(E|H|et|$t))!==0&&!z?.includes(e)&&Wn();let r=n?le(t):t;return Ye(e,r)}function Ye(e,t){if(!e.equals(t)){var n=e.v;ae?te.set(e,t):te.set(e,n),e.v=t;var r=F.ensure();r.capture(e,n),(e.f&E)!==0&&((e.f&O)!==0&&it(e),R(e,(e.f&j)!==0?S:V)),e.wv=tn(),Ft(e,O),p!==null&&(p.f&S)!==0&&(p.f&(J|K))===0&&(I===null?Ar([e]):I.push(e)),!r.is_fork&<.size>0&&!jt&&cr()}return t}function cr(){jt=!1;const e=Array.from(lt);for(const t of e)(t.f&S)!==0&&R(t,V),Ae(t)&&Ne(t);lt.clear()}function Te(e){M(e,e.v+1)}function Ft(e,t){var n=e.reactions;if(n!==null)for(var r=n.length,s=0;s<r;s++){var i=n[s],l=i.f,f=(l&O)===0;if(f&&R(i,t),(l&E)!==0){var o=i;C?.delete(o),(l&be)===0&&(l&j&&(i.f|=be),Ft(o,V))}else f&&((l&H)!==0&&W!==null&&W.add(i),me(i))}}function le(e){if(typeof e!="object"||e===null||De in e)return e;const t=mt(e);if(t!==Cn&&t!==Pn)return e;var n=new Map,r=An(e),s=k(0),i=ue,l=f=>{if(ue===i)return f();var o=_,a=ue;x(null),en(i);var h=f();return x(o),en(a),h};return r&&n.set("length",k(e.length)),new Proxy(e,{defineProperty(f,o,a){(!("value"in a)||a.configurable===!1||a.enumerable===!1||a.writable===!1)&&Hn();var h=n.get(o);return h===void 0?h=l(()=>{var d=k(a.value);return n.set(o,d),d}):M(h,a.value,!0),!0},deleteProperty(f,o){var a=n.get(o);if(a===void 0){if(o in f){const h=l(()=>k(b));n.set(o,h),Te(s)}}else M(a,b),Te(s);return!0},get(f,o,a){if(o===De)return e;var h=n.get(o),d=o in f;if(h===void 0&&(!d||re(f,o)?.writable)&&(h=l(()=>{var c=le(d?f[o]:b),g=k(c);return g}),n.set(o,h)),h!==void 0){var u=N(h);return u===b?void 0:u}return Reflect.get(f,o,a)},getOwnPropertyDescriptor(f,o){var a=Reflect.getOwnPropertyDescriptor(f,o);if(a&&"value"in a){var h=n.get(o);h&&(a.value=N(h))}else if(a===void 0){var d=n.get(o),u=d?.v;if(d!==void 0&&u!==b)return{enumerable:!0,configurable:!0,value:u,writable:!0}}return a},has(f,o){if(o===De)return!0;var a=n.get(o),h=a!==void 0&&a.v!==b||Reflect.has(f,o);if(a!==void 0||p!==null&&(!h||re(f,o)?.writable)){a===void 0&&(a=l(()=>{var u=h?le(f[o]):b,c=k(u);return c}),n.set(o,a));var d=N(a);if(d===b)return!1}return h},set(f,o,a,h){var d=n.get(o),u=o in f;if(r&&o==="length")for(var c=a;c<d.v;c+=1){var g=n.get(c+"");g!==void 0?M(g,b):c in f&&(g=l(()=>k(b)),n.set(c+"",g))}if(d===void 0)(!u||re(f,o)?.writable)&&(d=l(()=>k(void 0)),M(d,le(a)),n.set(o,d));else{u=d.v!==b;var w=l(()=>le(a));M(d,w)}var T=Reflect.getOwnPropertyDescriptor(f,o);if(T?.set&&T.set.call(h,a),!u){if(r&&typeof o=="string"){var G=n.get("length"),v=Number(o);Number.isInteger(v)&&v>=G.v&&M(G,v+1)}Te(s)}return!0},ownKeys(f){N(s);var o=Reflect.ownKeys(f).filter(d=>{var u=n.get(d);return u===void 0||u.v!==b});for(var[a,h]of n)h.v!==b&&!(a in f)&&o.push(a);return o},setPrototypeOf(){Vn()}})}var qt,Bt,Yt,Ut;function ft(){if(qt===void 0){qt=window,Bt=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,n=Text.prototype;Yt=re(t,"firstChild").get,Ut=re(t,"nextSibling").get,wt(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),wt(n)&&(n.__t=void 0)}}function Ue(e=""){return document.createTextNode(e)}function He(e){return Yt.call(e)}function ne(e){return Ut.call(e)}function ot(e,t){if(!m)return He(e);var n=He(y);return n===null&&(n=y.appendChild(Ue())),ee(n),n}function hr(e,t=1,n=!1){let r=m?y:e;for(var s;t--;)s=r,r=ne(r);if(!m)return r;if(n&&r?.nodeType!==Dn){var i=Ue();return r===null?s?.after(i):r.before(i),ee(i),i}return ee(r),r}function dr(e){e.textContent=""}function at(e){var t=_,n=p;x(null),D(null);try{return e()}finally{x(t),D(n)}}function vr(e){p===null&&(_===null&&qn(),Fn()),ae&&jn()}function _r(e,t){var n=t.last;n===null?t.last=t.first=e:(n.next=e,e.prev=n,t.last=e)}function Y(e,t,n,r=!0){var s=p;s!==null&&(s.f&Z)!==0&&(e|=Z);var i={ctx:L,deps:null,nodes_start:null,nodes_end:null,f:e|O|j,first:null,fn:t,last:null,next:null,parent:s,b:s&&s.b,prev:null,teardown:null,transitions:null,wv:0,ac:null};if(n)try{Ne(i),i.f|=Xe}catch(o){throw q(i),o}else t!==null&&me(i);if(r){var l=i;if(n&&l.deps===null&&l.teardown===null&&l.nodes_start===null&&l.first===l.last&&(l.f&se)===0&&(l=l.first,(e&H)!==0&&(e&Me)!==0&&l!==null&&(l.f|=Me)),l!==null&&(l.parent=s,s!==null&&_r(l,s),_!==null&&(_.f&E)!==0&&(e&K)===0)){var f=_;(f.effects??=[]).push(l)}}return i}function Ve(){return _!==null&&!U}function Ht(e){const t=Y(Ze,null,!1);return R(t,S),t.teardown=e,t}function pr(e){vr();var t=p.f,n=!_&&(t&J)!==0&&(t&Xe)===0;if(n){var r=L;(r.e??=[]).push(e)}else return Vt(e)}function Vt(e){return Y(Le|kn,e,!1)}function gr(e){F.ensure();const t=Y(K|se,e,!0);return()=>{q(t)}}function mr(e){F.ensure();const t=Y(K|se,e,!0);return(n={})=>new Promise(r=>{n.outro?ze(t,()=>{q(t),r(void 0)}):(q(t),r(void 0))})}function wr(e){return Y(Le,e,!1)}function yr(e){return Y(et|se,e,!0)}function Wt(e,t=0){return Y(Ze|t,e,!0)}function We(e,t=[],n=[],r=[],s=!1){ir(r,t,n,i=>{Y(s?Le:Ze,()=>e(...i.map(N)),!0)})}function $r(e,t=0){var n=Y(H|t,e,!0);return n}function fe(e,t=!0){return Y(J|se,e,!0,t)}function zt(e){var t=e.teardown;if(t!==null){const n=ae,r=_;Xt(!0),x(null);try{t.call(null)}finally{Xt(n),x(r)}}}function Gt(e,t=!1){var n=e.first;for(e.first=e.last=null;n!==null;){const s=n.ac;s!==null&&at(()=>{s.abort(de)});var r=n.next;(n.f&K)!==0?n.parent=null:q(n,t),n=r}}function br(e){for(var t=e.first;t!==null;){var n=t.next;(t.f&J)===0&&q(t),t=n}}function q(e,t=!0){var n=!1;(t||(e.f&bt)!==0)&&e.nodes_start!==null&&e.nodes_end!==null&&(Er(e.nodes_start,e.nodes_end),n=!0),Gt(e,t&&!n),Ge(e,0),R(e,X);var r=e.transitions;if(r!==null)for(const i of r)i.stop();zt(e);var s=e.parent;s!==null&&s.first!==null&&Jt(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes_start=e.nodes_end=e.ac=null}function Er(e,t){for(;e!==null;){var n=e===t?null:ne(e);e.remove(),e=n}}function Jt(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 ze(e,t,n=!0){var r=[];Kt(e,r,!0),xr(r,()=>{n&&q(e),t&&t()})}function xr(e,t){var n=e.length;if(n>0){var r=()=>--n||t();for(var s of e)s.out(r)}else t()}function Kt(e,t,n){if((e.f&Z)===0){if(e.f^=Z,e.transitions!==null)for(const l of e.transitions)(l.is_global||n)&&t.push(l);for(var r=e.first;r!==null;){var s=r.next,i=(r.f&Me)!==0||(r.f&J)!==0&&(e.f&H)!==0;Kt(r,t,i?n:!1),r=s}}}function Tr(e,t){for(var n=e.nodes_start,r=e.nodes_end;n!==null;){var s=n===r?null:ne(n);t.append(n),n=s}}let oe=!1;function Zt(e){oe=e}let ae=!1;function Xt(e){ae=e}let _=null,U=!1;function x(e){_=e}let p=null;function D(e){p=e}let z=null;function Sr(e){_!==null&&(z===null?z=[e]:z.push(e))}let A=null,P=0,I=null;function Ar(e){I=e}let Qt=1,Se=0,ue=Se;function en(e){ue=e}function tn(){return++Qt}function Ae(e){var t=e.f;if((t&O)!==0)return!0;if(t&E&&(e.f&=~be),(t&V)!==0){var n=e.deps;if(n!==null)for(var r=n.length,s=0;s<r;s++){var i=n[s];if(Ae(i)&&It(i),i.wv>e.wv)return!0}(t&j)!==0&&C===null&&R(e,S)}return!1}function nn(e,t,n=!0){var r=e.reactions;if(r!==null&&!z?.includes(e))for(var s=0;s<r.length;s++){var i=r[s];(i.f&E)!==0?nn(i,t,!1):t===i&&(n?R(i,O):(i.f&S)!==0&&R(i,V),me(i))}}function rn(e){var t=A,n=P,r=I,s=_,i=z,l=L,f=U,o=ue,a=e.f;A=null,P=0,I=null,_=(a&(J|K))===0?e:null,z=null,_e(e.ctx),U=!1,ue=++Se,e.ac!==null&&(at(()=>{e.ac.abort(de)}),e.ac=null);try{e.f|=Qe;var h=e.fn,d=h(),u=e.deps;if(A!==null){var c;if(Ge(e,P),u!==null&&P>0)for(u.length=P+A.length,c=0;c<A.length;c++)u[P+c]=A[c];else e.deps=u=A;if(oe&&Ve()&&(e.f&j)!==0)for(c=P;c<u.length;c++)(u[c].reactions??=[]).push(e)}else u!==null&&P<u.length&&(Ge(e,P),u.length=P);if(Rt()&&I!==null&&!U&&u!==null&&(e.f&(E|V|O))===0)for(c=0;c<I.length;c++)nn(I[c],e);return s!==null&&s!==e&&(Se++,I!==null&&(r===null?r=I:r.push(...I))),(e.f&Q)!==0&&(e.f^=Q),d}catch(g){return Ct(g)}finally{e.f^=Qe,A=t,P=n,I=r,_=s,z=i,_e(l),U=f,ue=o}}function Nr(e,t){let n=t.reactions;if(n!==null){var r=Nn.call(n,e);if(r!==-1){var s=n.length-1;s===0?n=t.reactions=null:(n[r]=n[s],n.pop())}}n===null&&(t.f&E)!==0&&(A===null||!A.includes(t))&&(R(t,V),(t.f&j)!==0&&(t.f^=j,t.f&=~be),Dt(t),Ge(t,0))}function Ge(e,t){var n=e.deps;if(n!==null)for(var r=t;r<n.length;r++)Nr(e,n[r])}function Ne(e){var t=e.f;if((t&X)===0){R(e,S);var n=p,r=oe;p=e,oe=!0;try{(t&H)!==0?br(e):Gt(e),zt(e);var s=rn(e);e.teardown=typeof s=="function"?s:null,e.wv=Qt;var i;gt&&Xn&&(e.f&O)!==0&&e.deps}finally{oe=r,p=n}}}function N(e){var t=e.f,n=(t&E)!==0;if(_!==null&&!U){var r=p!==null&&(p.f&X)!==0;if(!r&&!z?.includes(e)){var s=_.deps;if((_.f&Qe)!==0)e.rv<Se&&(e.rv=Se,A===null&&s!==null&&s[P]===e?P++:A===null?A=[e]:A.includes(e)||A.push(e));else{(_.deps??=[]).push(e);var i=e.reactions;i===null?e.reactions=[_]:i.includes(_)||i.push(_)}}}if(ae){if(te.has(e))return te.get(e);if(n){var l=e,f=l.v;return((l.f&S)===0&&l.reactions!==null||ln(l))&&(f=it(l)),te.set(l,f),f}}else if(n){if(l=e,C?.has(l))return C.get(l);Ae(l)&&It(l),oe&&Ve()&&(l.f&j)===0&&sn(l)}else if(C?.has(e))return C.get(e);if((e.f&Q)!==0)throw e.v;return e.v}function sn(e){if(e.deps!==null){e.f^=j;for(const t of e.deps)(t.reactions??=[]).push(e),(t.f&E)!==0&&(t.f&j)===0&&sn(t)}}function ln(e){if(e.v===b)return!0;if(e.deps===null)return!1;for(const t of e.deps)if(te.has(t)||(t.f&E)!==0&&ln(t))return!0;return!1}function fn(e){var t=U;try{return U=!0,e()}finally{U=t}}const Rr=-7169;function R(e,t){e.f=e.f&Rr|t}const Or=new Set,on=new Set;function Cr(e,t,n,r={}){function s(i){if(r.capture||Re.call(t,i),!i.cancelBubble)return at(()=>n?.call(this,i))}return e.startsWith("pointer")||e.startsWith("touch")||e==="wheel"?je(()=>{t.addEventListener(e,s,r)}):t.addEventListener(e,s,r),s}function Pr(e,t,n,r,s){var i={capture:r,passive:s},l=Cr(e,t,n,i);(t===document.body||t===window||t===document||t instanceof HTMLMediaElement)&&Ht(()=>{t.removeEventListener(e,l,i)})}let an=null;function Re(e){var t=this,n=t.ownerDocument,r=e.type,s=e.composedPath?.()||[],i=s[0]||e.target;an=e;var l=0,f=an===e&&e.__root;if(f){var o=s.indexOf(f);if(o!==-1&&(t===document||t===window)){e.__root=t;return}var a=s.indexOf(t);if(a===-1)return;o<=a&&(l=o)}if(i=s[l]||e.target,i!==t){Pe(e,"currentTarget",{configurable:!0,get(){return i||n}});var h=_,d=p;x(null),D(null);try{for(var u,c=[];i!==null;){var g=i.assignedSlot||i.parentNode||i.host||null;try{var w=i["__"+r];w!=null&&(!i.disabled||e.target===i)&&w.call(i,e)}catch(T){u?c.push(T):u=T}if(e.cancelBubble||g===t||g===null)break;i=g}if(u){for(let T of c)queueMicrotask(()=>{throw T});throw u}}finally{e.__root=t,delete e.currentTarget,x(h),D(d)}}}function Lr(e){var t=document.createElement("template");return t.innerHTML=e.replaceAll("<!>","<!---->"),t.content}function ut(e,t){var n=p;n.nodes_start===null&&(n.nodes_start=e,n.nodes_end=t)}function kr(e,t){var n=(t&Tn)!==0,r,s=!e.startsWith("<!>");return()=>{if(m)return ut(y,null),y;r===void 0&&(r=Lr(s?e:"<!>"+e),r=He(r));var i=n||Bt?document.importNode(r,!0):r.cloneNode(!0);return ut(i,i),i}}function un(e,t){if(m){p.nodes_end=y,xt();return}e!==null&&e.before(t)}const Mr=["touchstart","touchmove"];function Dr(e){return Mr.includes(e)}function cn(e,t){return hn(e,t)}function Ir(e,t){ft(),t.intro=t.intro??!1;const n=t.target,r=m,s=y;try{for(var i=He(n);i&&(i.nodeType!==Ie||i.data!==vt);)i=ne(i);if(!i)throw $e;ve(!0),ee(i);const l=hn(e,{...t,anchor:i});return ve(!1),l}catch(l){if(l instanceof Error&&l.message.split(`
|
|
2
|
+
`).some(f=>f.startsWith("https://svelte.dev/e/")))throw l;return l!==$e&&console.warn("Failed to hydrate: ",l),t.recover===!1&&Yn(),ft(),dr(n),ve(!1),cn(e,t)}finally{ve(r),ee(s)}}const we=new Map;function hn(e,{target:t,anchor:n,props:r={},events:s,context:i,intro:l=!0}){ft();var f=new Set,o=d=>{for(var u=0;u<d.length;u++){var c=d[u];if(!f.has(c)){f.add(c);var g=Dr(c);t.addEventListener(c,Re,{passive:g});var w=we.get(c);w===void 0?(document.addEventListener(c,Re,{passive:g}),we.set(c,1)):we.set(c,w+1)}}};o(Rn(Or)),on.add(o);var a=void 0,h=mr(()=>{var d=n??t.appendChild(Ue());return rr(d,{pending:()=>{}},u=>{if(i){At({});var c=L;c.c=i}if(s&&(r.$$events=s),m&&ut(u,null),a=e(u,r)||{},m&&(p.nodes_end=y,y===null||y.nodeType!==Ie||y.data!==pt))throw tt(),$e;i&&Nt()}),()=>{for(var u of f){t.removeEventListener(u,Re);var c=we.get(u);--c===0?(document.removeEventListener(u,Re),we.delete(u)):we.set(u,c)}on.delete(o),d!==n&&d.parentNode?.removeChild(d)}});return ct.set(a,h),a}let ct=new WeakMap;function jr(e,t){const n=ct.get(e);return n?(ct.delete(e),n(t)):Promise.resolve()}function Fr(e,t){wr(()=>{var n=e.getRootNode(),r=n.host?n:n.head??n.ownerDocument.head;if(!r.querySelector("#"+t.hash)){const s=document.createElement("style");s.id=t.hash,s.textContent=t.code,r.appendChild(s)}})}function qr(e,t,n){var r=""+e;return r}function Br(e,t){return e==null?null:String(e)}function Yr(e,t,n,r,s,i){var l=e.__className;if(m||l!==n||l===void 0){var f=qr(n);(!m||f!==e.getAttribute("class"))&&(f==null?e.removeAttribute("class"):e.className=f),e.__className=n}return i}function dn(e,t,n,r){var s=e.__style;if(m||s!==t){var i=Br(t);(!m||i!==e.getAttribute("style"))&&(i==null?e.removeAttribute("style"):e.style.cssText=i),e.__style=t}return r}const Ur=Symbol("is custom element"),Hr=Symbol("is html");function Vr(e,t,n,r){var s=Wr(e);m&&(s[t]=e.getAttribute(t),t==="src"||t==="srcset"||t==="href"&&e.nodeName==="LINK")||s[t]!==(s[t]=n)&&(t==="loading"&&(e[Mn]=n),n==null?e.removeAttribute(t):typeof n!="string"&&vn(e).includes(t)?e[t]=n:e.setAttribute(t,n))}function ce(e,t,n){var r=_,s=p;let i=m;m&&ve(!1),x(null),D(null);try{t!=="style"&&(ht.has(e.getAttribute("is")||e.nodeName)||!customElements||customElements.get(e.getAttribute("is")||e.tagName.toLowerCase())?vn(e).includes(t):n&&typeof n=="object")?e[t]=n:Vr(e,t,n==null?n:String(n))}finally{x(r),D(s),i&&ve(!0)}}function Wr(e){return e.__attributes??={[Ur]:e.nodeName.includes("-"),[Hr]:e.namespaceURI===Sn}}var ht=new Map;function vn(e){var t=e.getAttribute("is")||e.nodeName,n=ht.get(t);if(n)return n;ht.set(t,n=[]);for(var r,s=e,i=Element.prototype;i!==s;){r=On(s);for(var l in r)r[l].set&&n.push(l);s=mt(s)}return n}let Je=!1;function zr(e){var t=Je;try{return Je=!1,[e(),Je]}finally{Je=t}}function Oe(e,t,n,r){var s=(n&En)!==0,i=(n&xn)!==0,l=r,f=!0,o=()=>(f&&(f=!1,l=i?fn(r):r),l),a;if(s){var h=De in e||Et in e;a=re(e,t)?.set??(h&&t in e?v=>e[t]=v:void 0)}var d,u=!1;s?[d,u]=zr(()=>e[t]):d=e[t],d===void 0&&r!==void 0&&(d=o(),a&&(Un(),a(d)));var c;if(c=()=>{var v=e[t];return v===void 0?o():(f=!0,v)},(n&bn)===0)return c;if(a){var g=e.$$legacy;return(function(v,ye){return arguments.length>0?((!ye||g||u)&&a(ye?c():v),v):c()})}var w=!1,T=((n&$n)!==0?st:or)(()=>(w=!1,c()));s&&N(T);var G=p;return(function(v,ye){if(arguments.length>0){const yn=ye?N(T):s?le(v):v;return M(T,yn),w=!0,l!==void 0&&(l=yn),v}return ae&&w||(G.f&X)!==0?T.v:N(T)})}function Gr(e){return new Jr(e)}class Jr{#t;#e;constructor(t){var n=new Map,r=(i,l)=>{var f=ur(l,!1,!1);return n.set(i,f),f};const s=new Proxy({...t.props||{},$$events:{}},{get(i,l){return N(n.get(l)??r(l,Reflect.get(i,l)))},has(i,l){return l===Et?!0:(N(n.get(l)??r(l,Reflect.get(i,l))),Reflect.has(i,l))},set(i,l,f){return M(n.get(l)??r(l,f),f),Reflect.set(i,l,f)}});this.#e=(t.hydrate?Ir:cn)(t.component,{target:t.target,anchor:t.anchor,props:s,context:t.context,intro:t.intro??!1,recover:t.recover}),(!t?.props?.$$host||t.sync===!1)&&ge(),this.#t=s.$$events;for(const i of Object.keys(this.#e))i==="$set"||i==="$destroy"||i==="$on"||Pe(this,i,{get(){return this.#e[i]},set(l){this.#e[i]=l},enumerable:!0});this.#e.$set=i=>{Object.assign(s,i)},this.#e.$destroy=()=>{jr(this.#e)}}$set(t){this.#e.$set(t)}$on(t,n){this.#t[t]=this.#t[t]||[];const r=(...s)=>n.call(this,...s);return this.#t[t].push(r),()=>{this.#t[t]=this.#t[t].filter(s=>s!==r)}}$destroy(){this.#e.$destroy()}}let _n;typeof HTMLElement=="function"&&(_n=class extends HTMLElement{$$ctor;$$s;$$c;$$cn=!1;$$d={};$$r=!1;$$p_d={};$$l={};$$l_u=new Map;$$me;constructor(e,t,n){super(),this.$$ctor=e,this.$$s=t,n&&this.attachShadow({mode:"open"})}addEventListener(e,t,n){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(t),this.$$c){const r=this.$$c.$on(e,t);this.$$l_u.set(t,r)}super.addEventListener(e,t,n)}removeEventListener(e,t,n){if(super.removeEventListener(e,t,n),this.$$c){const r=this.$$l_u.get(t);r&&(r(),this.$$l_u.delete(t))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let e=function(r){return s=>{const i=document.createElement("slot");r!=="default"&&(i.name=r),un(s,i)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const t={},n=Kr(this);for(const r of this.$$s)r in n&&(r==="default"&&!this.$$d.children?(this.$$d.children=e(r),t.default=!0):t[r]=e(r));for(const r of this.attributes){const s=this.$$g_p(r.name);s in this.$$d||(this.$$d[s]=Ke(s,r.value,this.$$p_d,"toProp"))}for(const r in this.$$p_d)!(r in this.$$d)&&this[r]!==void 0&&(this.$$d[r]=this[r],delete this[r]);this.$$c=Gr({component:this.$$ctor,target:this.shadowRoot||this,props:{...this.$$d,$$slots:t,$$host:this}}),this.$$me=gr(()=>{Wt(()=>{this.$$r=!0;for(const r of Ce(this.$$c)){if(!this.$$p_d[r]?.reflect)continue;this.$$d[r]=this.$$c[r];const s=Ke(r,this.$$d[r],this.$$p_d,"toAttribute");s==null?this.removeAttribute(this.$$p_d[r].attribute||r):this.setAttribute(this.$$p_d[r].attribute||r,s)}this.$$r=!1})});for(const r in this.$$l)for(const s of this.$$l[r]){const i=this.$$c.$on(r,s);this.$$l_u.set(s,i)}this.$$l={}}}attributeChangedCallback(e,t,n){this.$$r||(e=this.$$g_p(e),this.$$d[e]=Ke(e,n,this.$$p_d,"toProp"),this.$$c?.$set({[e]:this.$$d[e]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$me(),this.$$c=void 0)})}$$g_p(e){return Ce(this.$$p_d).find(t=>this.$$p_d[t].attribute===e||!this.$$p_d[t].attribute&&t.toLowerCase()===e)||e}});function Ke(e,t,n,r){const s=n[e]?.type;if(t=s==="Boolean"&&typeof t!="boolean"?t!=null:t,!r||!n[e])return t;if(r==="toAttribute")switch(s){case"Object":case"Array":return t==null?null:JSON.stringify(t);case"Boolean":return t?"":null;case"Number":return t??null;default:return t}else switch(s){case"Object":case"Array":return t&&JSON.parse(t);case"Boolean":return t;case"Number":return t!=null?+t:t;default:return t}}function Kr(e){const t={};return e.childNodes.forEach(n=>{t[n.slot||"default"]=!0}),t}function Zr(e,t,n,r,s,i){let l=class extends _n{constructor(){super(e,n,s),this.$$p_d=t}static get observedAttributes(){return Ce(t).map(f=>(t[f].attribute||f).toLowerCase())}};return Ce(t).forEach(f=>{Pe(l.prototype,f,{get(){return this.$$c&&f in this.$$c?this.$$c[f]:this.$$d[f]},set(o){o=Ke(f,o,t),this.$$d[f]=o;var a=this.$$c;if(a){var h=re(a,f)?.get;h?a[f]=o:a.$set({[f]:o})}}})}),r.forEach(f=>{Pe(l.prototype,f,{get(){return this.$$c?.[f]}})}),e.element=l,l}const pn={version:"0.61.57"};var he={},gn;function Xr(){if(gn)return he;gn=1,Object.defineProperty(he,"__esModule",{value:!0}),he.LanguageTranslator=void 0,he.getChildStyleToPass=e,he.addComponent=t;function e(r,s){var i,l,f="";try{if(r&&s?.length&&(!((i=Object.keys(r))===null||i===void 0)&&i.length)&&(!((l=s?.filter(function(u){return Object.keys(r).includes(u.name)}))===null||l===void 0)&&l.length))for(var o=function(u){var c=s?.filter(function(g){return g.name===u&&g.defaultValue!==r[u]});c&&(f+="".concat(u,":").concat(r[u],";"))},a=0,h=Object.keys(r);a<h.length;a++){var d=h[a];o(d)}}catch(u){console.error("error getting child style to pass",u)}finally{return f}}function t(r){var s,i=((s=r?.repoName.split("/"))===null||s===void 0?void 0:s[1])||r?.repoName;if(!i)throw new Error("wrong componentPath "+r?.repoName);if(!r?.version)throw new Error("wrong version "+r?.version);var l=r?.iifePath||"main.iife.js";if(!document.getElementById(i+"-script"))try{var f=document.createElement("script");if(f.id=i+"-script",f.src="https://cdn.jsdelivr.net/npm/".concat(r.repoName,"@").concat(r.version,"/").concat(l),r?.local)f.src="".concat(r.local);else if(location.href.includes("localhost:6006")){var o=i.split("-")[0];f.src="http://localhost:6006/webcomponents/".concat(i.replace(o+"-",""),"/").concat(l)}document.head.appendChild(f)}catch(a){console.warn(a)}}var n=(function(){function r(s){if(this.lang="",!s?.dictionary)throw new Error("no dictionary provided");this.dictionary=s.dictionary,this.setLang(s?.lang)}return r.prototype.setLang=function(s){s||(s=r.getDefaultLang()),this.lang=s},r.prototype.translateWord=function(s,i){return r.getDictionaryWord(s,this.dictionary,i||this.lang)},r.prototype.translateDate=function(s,i,l){return r.formatDate(s,i,l||this.lang)},r.getDefaultLang=function(){var s,i,l,f="en";return navigator?.languages&&(!((l=(i=(s=navigator.languages[0])===null||s===void 0?void 0:s.split("-")[0])===null||i===void 0?void 0:i.toLowerCase())===null||l===void 0)&&l.length)&&(f=navigator.languages[0].split("-")[0].toLowerCase()),f},r.getDictionaryWord=function(s,i,l){var f;if(!s)throw new Error("no wordKey provided");if(!i)throw new Error("no dictionary provided");if(l&&(!((f=i[l])===null||f===void 0)&&f[s]))return i[l][s];var o="",a=r.getDefaultLang();if(!l||a!==l){var h=i?.[a];h?.[s]&&(o=h[s])}return o},r.formatDate=function(s,i,l){if(!s)throw new Error("no date provided");if(typeof s.getMonth!="function")throw new Error("wrong date format");var f=new Intl.DateTimeFormat(l||r.getDefaultLang(),i);return f.format(s)},r})();return he.LanguageTranslator=n,he}var mn=Xr(),Qr=kr('<div id="compocontainer" class="svelte-11p6sry"><div id="list" class="svelte-11p6sry"><hb-messages-list></hb-messages-list></div> <div id="prompt" class="svelte-11p6sry"><hb-messages-send></hb-messages-send></div></div>',2);const es={hash:"svelte-11p6sry",code:`@import url("https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap");
|
|
3
|
+
@import url("https://cdn.jsdelivr.net/npm/bootstrap-icons@latest/font/bootstrap-icons.css");:host {font-family:"Roboto", sans-serif;display:block;overflow:hidden;height:fit-content;min-height:100px;}#compocontainer.svelte-11p6sry {display:grid;grid-template-areas:"messages" "prompt";overflow:hidden;grid-template-rows:1fr 180px;height:100%;min-height:200px;}#list.svelte-11p6sry {overflow-y:auto;grid-area:messages;min-height:0;height:100%;}#list.svelte-11p6sry hb-messages-list:where(.svelte-11p6sry) {height:100%;display:block;}#prompt.svelte-11p6sry {grid-area:prompt;width:90%;max-width:1600px;margin:0 auto;}.msglist.svelte-11p6sry {width:90%;max-width:1400px;margin:0 auto;}`};function wn(e,t){At(t,!0),Fr(e,es);function n(v,ye){t.$$host.dispatchEvent(new CustomEvent(v,{detail:ye}))}let r=Oe(t,"id",7,""),s=Oe(t,"messages",7),i=Oe(t,"authors",7),l=Oe(t,"options",7),f=Oe(t,"message",23,()=>({text:""})),o=k(""),a=k("");le({});let h=k("");pr(()=>{if(typeof f()=="string")try{f(JSON.parse(f())),M(h,f()?.text?f().text:"",!0)}catch(v){console.error("error parsing message",v)}});function d(v){if(!v?.file&&!v?.text)return console.warn("no message to received",v);n("sendMessage",v),M(h,v.text,!0),M(h,"")}mn.addComponent({repoName:"@htmlbricks/hb-messages-list",version:pn.version}),mn.addComponent({repoName:"@htmlbricks/hb-messages-send",version:pn.version});var u={get id(){return r()},set id(v=""){r(v),ge()},get messages(){return s()},set messages(v){s(v),ge()},get authors(){return i()},set authors(v){i(v),ge()},get options(){return l()},set options(v){l(v),ge()},get message(){return f()},set message(v={text:""}){f(v),ge()}},c=Qr(),g=ot(c),w=ot(g);ce(w,"id","message-list"),We(()=>ce(w,"messages",s())),We(()=>ce(w,"authors",i())),We(()=>ce(w,"options",l())),dn(w,N(o)),Yr(w,1,"msglist svelte-11p6sry"),ce(w,"part","msglist"),nt(g);var T=hr(g,2),G=ot(T);return We(()=>ce(G,"text",N(h))),ce(G,"part","msgsend"),dn(G,N(a)),nt(T),nt(c),Pr("sendMessage",G,v=>d(v.detail)),un(e,c),Nt(u)}customElements.define("hb-messages-box",Zr(wn,{id:{},messages:{},authors:{},options:{},message:{}},[],[],!0)),dt.Component=wn,Object.defineProperty(dt,Symbol.toStringTag,{value:"Module"})})(this["messages-box"]=this["messages-box"]||{});
|
|
4
4
|
//# sourceMappingURL=main.iife.js.map
|