@htmlbricks/hb-messages-list 0.66.6 → 0.66.8

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 CHANGED
@@ -1,5 +1,6 @@
1
- (function(me){"use strict";typeof window<"u"&&((window.__svelte??={}).v??=new Set).add("5");const $n=1,En=2,Tn=16,In=1,Sn=4,Nn=8,Rn=16,Cn=1,zn=2,pe="[",Br="[!",xe="[?",Gr="]",Xt={},G=Symbol(),ve="http://www.w3.org/1999/xhtml",Dn=!1;var ge=Array.isArray,On=Array.prototype.indexOf,Kt=Array.prototype.includes,wr=Array.from,_r=Object.keys,kr=Object.defineProperty,Pt=Object.getOwnPropertyDescriptor,Bn=Object.getOwnPropertyDescriptors,Gn=Object.prototype,Pn=Array.prototype,be=Object.getPrototypeOf,fe=Object.isExtensible;const Ln=()=>{};function Yn(t){for(var r=0;r<t.length;r++)t[r]()}function ce(){var t,r,e=new Promise((n,o)=>{t=n,r=o});return{promise:e,resolve:t,reject:r}}const O=2,tr=4,jr=8,ue=1<<24,Et=16,vt=32,Tt=64,Pr=128,ot=512,D=1024,P=2048,ct=4096,X=8192,it=16384,It=32768,he=1<<25,rr=65536,ye=1<<17,we=1<<18,St=1<<19,Fn=1<<20,_t=1<<25,Lt=65536,Lr=1<<21,Yr=1<<22,Nt=1<<23,Ar=Symbol("$state"),_e=Symbol("legacy props"),Zn=Symbol(""),kt=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"},Hn=!!globalThis.document?.contentType&&globalThis.document.contentType.includes("xml"),Mr=3,er=8;function Jn(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function Vn(t,r,e){throw new Error("https://svelte.dev/e/each_key_duplicate")}function Wn(t){throw new Error("https://svelte.dev/e/effect_in_teardown")}function Qn(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function Un(t){throw new Error("https://svelte.dev/e/effect_orphan")}function qn(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function Xn(){throw new Error("https://svelte.dev/e/hydration_failed")}function Kn(t){throw new Error("https://svelte.dev/e/props_invalid_value")}function to(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function ro(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function eo(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function no(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}function $r(t){console.warn("https://svelte.dev/e/hydration_mismatch")}function oo(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}let M=!1;function gt(t){M=t}let k;function Y(t){if(t===null)throw $r(),Xt;return k=t}function Er(){return Y(st(k))}function $(t){if(M){if(st(k)!==null)throw $r(),Xt;k=t}}function io(t=1){if(M){for(var r=t,e=k;r--;)e=st(e);k=e}}function Tr(t=!0){for(var r=0,e=k;;){if(e.nodeType===er){var n=e.data;if(n===Gr){if(r===0)return e;r-=1}else(n===pe||n===Br||n[0]==="["&&!isNaN(Number(n.slice(1))))&&(r+=1)}var o=st(e);t&&e.remove(),e=o}}function ke(t){if(!t||t.nodeType!==er)throw $r(),Xt;return t.data}function je(t){return t===this.v}function ao(t,r){return t!=t?r==r:t!==r||t!==null&&typeof t=="object"||typeof t=="function"}function Ae(t){return!ao(t,this.v)}let lo=!1,at=null;function nr(t){at=t}function Me(t,r=!1,e){at={p:at,i:!1,c:null,e:null,s:t,x:null,r:y,l:null}}function $e(t){var r=at,e=r.e;if(e!==null){r.e=null;for(var n of e)tn(n)}return t!==void 0&&(r.x=t),r.i=!0,at=r.p,t??{}}function Ee(){return!0}let Yt=[];function Te(){var t=Yt;Yt=[],Yn(t)}function or(t){if(Yt.length===0&&!xr){var r=Yt;queueMicrotask(()=>{r===Yt&&Te()})}Yt.push(t)}function so(){for(;Yt.length>0;)Te()}function Ie(t){var r=y;if(r===null)return h.f|=Nt,t;if((r.f&It)===0&&(r.f&tr)===0)throw t;Rt(t,r)}function Rt(t,r){for(;r!==null;){if((r.f&Pr)!==0){if((r.f&It)===0)throw t;try{r.b.error(t);return}catch(e){t=e}}r=r.parent}throw t}const mo=-7169;function z(t,r){t.f=t.f&mo|r}function Fr(t){(t.f&ot)!==0||t.deps===null?z(t,D):z(t,ct)}function Se(t){if(t!==null)for(const r of t)(r.f&O)===0||(r.f&Lt)===0||(r.f^=Lt,Se(r.deps))}function Ne(t,r,e){(t.f&P)!==0?r.add(t):(t.f&ct)!==0&&e.add(t),Se(t.deps),z(t,D)}let Ir=!1;function po(t){var r=Ir;try{return Ir=!1,[t(),Ir]}finally{Ir=r}}const Ct=new Set;let I=null,bt=null,Zr=null,xr=!1,Hr=!1,ir=null,Sr=null;var Re=0;let xo=1;class jt{id=xo++;current=new Map;previous=new Map;#t=new Set;#e=new Set;#r=new Map;#o=new Map;#i=null;#n=[];#a=new Set;#l=new Set;#s=new Map;is_fork=!1;#p=!1;#d=new Set;#x(){return this.is_fork||this.#o.size>0}#g(){for(const n of this.#d)for(const o of n.#o.keys()){for(var r=!1,e=o;e.parent!==null;){if(this.#s.has(e)){r=!0;break}e=e.parent}if(!r)return!0}return!1}skip_effect(r){this.#s.has(r)||this.#s.set(r,{d:[],m:[]})}unskip_effect(r){var e=this.#s.get(r);if(e){this.#s.delete(r);for(var n of e.d)z(n,P),this.schedule(n);for(n of e.m)z(n,ct),this.schedule(n)}}#v(){if(Re++>1e3&&(Ct.delete(this),vo()),!this.#x()){for(const a of this.#a)this.#l.delete(a),z(a,P),this.schedule(a);for(const a of this.#l)z(a,ct),this.schedule(a)}const r=this.#n;this.#n=[],this.apply();var e=ir=[],n=[],o=Sr=[];for(const a of r)try{this.#m(a,e,n)}catch(s){throw Be(a),s}if(I=null,o.length>0){var i=jt.ensure();for(const a of o)i.schedule(a)}if(ir=null,Sr=null,this.#x()||this.#g()){this.#b(n),this.#b(e);for(const[a,s]of this.#s)Oe(a,s)}else{this.#r.size===0&&Ct.delete(this),this.#a.clear(),this.#l.clear();for(const a of this.#t)a(this);this.#t.clear(),Ce(n),Ce(e),this.#i?.resolve()}var l=I;if(this.#n.length>0){const a=l??=this;a.#n.push(...this.#n.filter(s=>!a.#n.includes(s)))}l!==null&&(Ct.add(l),l.#v()),Ct.has(this)||this.#f()}#m(r,e,n){r.f^=D;for(var o=r.first;o!==null;){var i=o.f,l=(i&(vt|Tt))!==0,a=l&&(i&D)!==0,s=a||(i&X)!==0||this.#s.has(o);if(!s&&o.fn!==null){l?o.f^=D:(i&tr)!==0?e.push(o):gr(o)&&((i&Et)!==0&&this.#l.add(o),dr(o));var d=o.first;if(d!==null){o=d;continue}}for(;o!==null;){var p=o.next;if(p!==null){o=p;break}o=o.parent}}}#b(r){for(var e=0;e<r.length;e+=1)Ne(r[e],this.#a,this.#l)}capture(r,e,n=!1){e!==G&&!this.previous.has(r)&&this.previous.set(r,e),(r.f&Nt)===0&&(this.current.set(r,[r.v,n]),bt?.set(r,r.v))}activate(){I=this}deactivate(){I=null,bt=null}flush(){try{Hr=!0,I=this,this.#v()}finally{Re=0,Zr=null,ir=null,Sr=null,Hr=!1,I=null,bt=null,zt.clear()}}discard(){for(const r of this.#e)r(this);this.#e.clear(),Ct.delete(this)}#f(){for(const d of Ct){var r=d.id<this.id,e=[];for(const[p,[g,v]]of this.current){if(d.current.has(p)){var n=d.current.get(p)[0];if(r&&g!==n)d.current.set(p,[g,v]);else continue}e.push(p)}var o=[...d.current.keys()].filter(p=>!this.current.has(p));if(o.length===0)r&&d.discard();else if(e.length>0){d.activate();var i=new Set,l=new Map;for(var a of e)ze(a,o,i,l);if(d.#n.length>0){d.apply();for(var s of d.#n)d.#m(s,[],[]);d.#n=[]}d.deactivate()}}for(const d of Ct)d.#d.has(this)&&(d.#d.delete(this),d.#d.size===0&&!d.#x()&&(d.activate(),d.#v()))}increment(r,e){let n=this.#r.get(e)??0;if(this.#r.set(e,n+1),r){let o=this.#o.get(e)??0;this.#o.set(e,o+1)}}decrement(r,e,n){let o=this.#r.get(e)??0;if(o===1?this.#r.delete(e):this.#r.set(e,o-1),r){let i=this.#o.get(e)??0;i===1?this.#o.delete(e):this.#o.set(e,i-1)}this.#p||n||(this.#p=!0,or(()=>{this.#p=!1,this.flush()}))}transfer_effects(r,e){for(const n of r)this.#a.add(n);for(const n of e)this.#l.add(n);r.clear(),e.clear()}oncommit(r){this.#t.add(r)}ondiscard(r){this.#e.add(r)}settled(){return(this.#i??=ce()).promise}static ensure(){if(I===null){const r=I=new jt;Hr||(Ct.add(I),xr||or(()=>{I===r&&r.flush()}))}return I}apply(){{bt=null;return}}schedule(r){if(Zr=r,r.b?.is_pending&&(r.f&(tr|jr|ue))!==0&&(r.f&It)===0){r.b.defer_effect(r);return}for(var e=r;e.parent!==null;){e=e.parent;var n=e.f;if(ir!==null&&e===y&&(h===null||(h.f&O)===0))return;if((n&(Tt|vt))!==0){if((n&D)===0)return;e.f^=D}}this.#n.push(e)}}function ar(t){var r=xr;xr=!0;try{for(var e;;){if(so(),I===null)return e;I.flush()}}finally{xr=r}}function vo(){try{qn()}catch(t){Rt(t,Zr)}}let At=null;function Ce(t){var r=t.length;if(r!==0){for(var e=0;e<r;){var n=t[e++];if((n.f&(it|X))===0&&gr(n)&&(At=new Set,dr(n),n.deps===null&&n.first===null&&n.nodes===null&&n.teardown===null&&n.ac===null&&nn(n),At?.size>0)){zt.clear();for(const o of At){if((o.f&(it|X))!==0)continue;const i=[o];let l=o.parent;for(;l!==null;)At.has(l)&&(At.delete(l),i.push(l)),l=l.parent;for(let a=i.length-1;a>=0;a--){const s=i[a];(s.f&(it|X))===0&&dr(s)}}At.clear()}}At=null}}function ze(t,r,e,n){if(!e.has(t)&&(e.add(t),t.reactions!==null))for(const o of t.reactions){const i=o.f;(i&O)!==0?ze(o,r,e,n):(i&(Yr|Et))!==0&&(i&P)===0&&De(o,r,n)&&(z(o,P),Jr(o))}}function De(t,r,e){const n=e.get(t);if(n!==void 0)return n;if(t.deps!==null)for(const o of t.deps){if(Kt.call(r,o))return!0;if((o.f&O)!==0&&De(o,r,e))return e.set(o,!0),!0}return e.set(t,!1),!1}function Jr(t){I.schedule(t)}function Oe(t,r){if(!((t.f&vt)!==0&&(t.f&D)!==0)){(t.f&P)!==0?r.d.push(t):(t.f&ct)!==0&&r.m.push(t),z(t,D);for(var e=t.first;e!==null;)Oe(e,r),e=e.next}}function Be(t){z(t,D);for(var r=t.first;r!==null;)Be(r),r=r.next}function go(t){let r=0,e=Ft(0),n;return()=>{Xr()&&(b(e),rn(()=>(r===0&&(n=fn(()=>t(()=>vr(e)))),r+=1,()=>{or(()=>{r-=1,r===0&&(n?.(),n=void 0,vr(e))})})))}}var bo=rr|St;function fo(t,r,e,n){new co(t,r,e,n)}class co{parent;is_pending=!1;transform_error;#t;#e=M?k:null;#r;#o;#i;#n=null;#a=null;#l=null;#s=null;#p=0;#d=0;#x=!1;#g=new Set;#v=new Set;#m=null;#b=go(()=>(this.#m=Ft(this.#p),()=>{this.#m=null}));constructor(r,e,n,o){this.#t=r,this.#r=e,this.#o=i=>{var l=y;l.b=this,l.f|=Pr,n(i)},this.parent=y.b,this.transform_error=o??this.parent?.transform_error??(i=>i),this.#i=Cr(()=>{if(M){const i=this.#e;Er();const l=i.data===Br;if(i.data.startsWith(xe)){const s=JSON.parse(i.data.slice(xe.length));this.#w(s)}else l?this.#_():this.#f()}else this.#h()},bo),M&&(this.#t=k)}#f(){try{this.#n=dt(()=>this.#o(this.#t))}catch(r){this.error(r)}}#w(r){const e=this.#r.failed;e&&(this.#l=dt(()=>{e(this.#t,()=>r,()=>()=>{})}))}#_(){const r=this.#r.pending;r&&(this.is_pending=!0,this.#a=dt(()=>r(this.#t)),or(()=>{var e=this.#s=document.createDocumentFragment(),n=lt();e.append(n),this.#n=this.#u(()=>dt(()=>this.#o(n))),this.#d===0&&(this.#t.before(e),this.#s=null,Ht(this.#a,()=>{this.#a=null}),this.#c(I))}))}#h(){try{if(this.is_pending=this.has_pending_snippet(),this.#d=0,this.#p=0,this.#n=dt(()=>{this.#o(this.#t)}),this.#d>0){var r=this.#s=document.createDocumentFragment();ee(this.#n,r);const e=this.#r.pending;this.#a=dt(()=>e(this.#t))}else this.#c(I)}catch(e){this.error(e)}}#c(r){this.is_pending=!1,r.transfer_effects(this.#g,this.#v)}defer_effect(r){Ne(r,this.#g,this.#v)}is_rendered(){return!this.is_pending&&(!this.parent||this.parent.is_rendered())}has_pending_snippet(){return!!this.#r.pending}#u(r){var e=y,n=h,o=at;yt(this.#i),mt(this.#i),nr(this.#i.ctx);try{return jt.ensure(),r()}catch(i){return Ie(i),null}finally{yt(e),mt(n),nr(o)}}#y(r,e){if(!this.has_pending_snippet()){this.parent&&this.parent.#y(r,e);return}this.#d+=r,this.#d===0&&(this.#c(e),this.#a&&Ht(this.#a,()=>{this.#a=null}),this.#s&&(this.#t.before(this.#s),this.#s=null))}update_pending_count(r,e){this.#y(r,e),this.#p+=r,!(!this.#m||this.#x)&&(this.#x=!0,or(()=>{this.#x=!1,this.#m&&lr(this.#m,this.#p)}))}get_effect_pending(){return this.#b(),b(this.#m)}error(r){var e=this.#r.onerror;let n=this.#r.failed;if(!e&&!n)throw r;this.#n&&(Z(this.#n),this.#n=null),this.#a&&(Z(this.#a),this.#a=null),this.#l&&(Z(this.#l),this.#l=null),M&&(Y(this.#e),io(),Y(Tr()));var o=!1,i=!1;const l=()=>{if(o){oo();return}o=!0,i&&no(),this.#l!==null&&Ht(this.#l,()=>{this.#l=null}),this.#u(()=>{this.#h()})},a=s=>{try{i=!0,e?.(s,l),i=!1}catch(d){Rt(d,this.#i&&this.#i.parent)}n&&(this.#l=this.#u(()=>{try{return dt(()=>{var d=y;d.b=this,d.f|=Pr,n(this.#t,()=>s,()=>l)})}catch(d){return Rt(d,this.#i.parent),null}}))};or(()=>{var s;try{s=this.transform_error(r)}catch(d){Rt(d,this.#i&&this.#i.parent);return}s!==null&&typeof s=="object"&&typeof s.then=="function"?s.then(a,d=>Rt(d,this.#i&&this.#i.parent)):a(s)})}}function uo(t,r,e,n){const o=Rr;var i=t.filter(v=>!v.settled);if(e.length===0&&i.length===0){n(r.map(o));return}var l=y,a=ho(),s=i.length===1?i[0].promise:i.length>1?Promise.all(i.map(v=>v.promise)):null;function d(v){a();try{n(v)}catch(f){(l.f&it)===0&&Rt(f,l)}Nr()}if(e.length===0){s.then(()=>d(r.map(o)));return}var p=Ge();function g(){Promise.all(e.map(v=>yo(v))).then(v=>d([...r.map(o),...v])).catch(v=>Rt(v,l)).finally(()=>p())}s?s.then(()=>{a(),g(),Nr()}):g()}function ho(){var t=y,r=h,e=at,n=I;return function(i=!0){yt(t),mt(r),nr(e),i&&(t.f&it)===0&&(n?.activate(),n?.apply())}}function Nr(t=!0){yt(null),mt(null),nr(null),t&&I?.deactivate()}function Ge(){var t=y,r=t.b,e=I,n=r.is_rendered();return r.update_pending_count(1,e),e.increment(n,t),(o=!1)=>{r.update_pending_count(-1,e),e.decrement(n,t,o)}}function Rr(t){var r=O|P,e=h!==null&&(h.f&O)!==0?h:null;return y!==null&&(y.f|=St),{ctx:at,deps:null,effects:null,equals:je,f:r,fn:t,reactions:null,rv:0,v:G,wv:0,parent:e??y,ac:null}}function yo(t,r,e){let n=y;n===null&&Jn();var o=void 0,i=Ft(G),l=!h,a=new Map;return No(()=>{var s=y,d=ce();o=d.promise;try{Promise.resolve(t()).then(d.resolve,d.reject).finally(Nr)}catch(f){d.reject(f),Nr()}var p=I;if(l){if((s.f&It)!==0)var g=Ge();if(n.b.is_rendered())a.get(p)?.reject(kt),a.delete(p);else{for(const f of a.values())f.reject(kt);a.clear()}a.set(p,d)}const v=(f,m=void 0)=>{if(g){var x=m===kt;g(x)}if(!(m===kt||(s.f&it)!==0)){if(p.activate(),m)i.f|=Nt,lr(i,m);else{(i.f&Nt)!==0&&(i.f^=Nt),lr(i,f);for(const[c,u]of a){if(a.delete(c),c===p)break;u.reject(kt)}}p.deactivate()}};d.promise.then(v,f=>v(null,f||"unknown"))}),Eo(()=>{for(const s of a.values())s.reject(kt)}),new Promise(s=>{function d(p){function g(){p===o?s(i):d(o)}p.then(g,g)}d(o)})}function wo(t){const r=Rr(t);return sn(r),r}function Pe(t){const r=Rr(t);return r.equals=Ae,r}function _o(t){var r=t.effects;if(r!==null){t.effects=null;for(var e=0;e<r.length;e+=1)Z(r[e])}}function ko(t){for(var r=t.parent;r!==null;){if((r.f&O)===0)return(r.f&it)===0?r:null;r=r.parent}return null}function Vr(t){var r,e=y;yt(ko(t));try{t.f&=~Lt,_o(t),r=vn(t)}finally{yt(e)}return r}function Le(t){var r=t.v,e=Vr(t);if(!t.equals(e)&&(t.wv=pn(),(!I?.is_fork||t.deps===null)&&(t.v=e,I?.capture(t,r,!0),t.deps===null))){z(t,D);return}Ot||(bt!==null?(Xr()||I?.is_fork)&&bt.set(t,e):Fr(t))}function jo(t){if(t.effects!==null)for(const r of t.effects)(r.teardown||r.ac)&&(r.teardown?.(),r.ac?.abort(kt),r.teardown=Ln,r.ac=null,br(r,0),te(r))}function Ye(t){if(t.effects!==null)for(const r of t.effects)r.teardown&&dr(r)}let Wr=new Set;const zt=new Map;let Fe=!1;function Ft(t,r){var e={f:0,v:t,reactions:null,equals:je,rv:0,wv:0};return e}function Dt(t,r){const e=Ft(t);return sn(e),e}function Ze(t,r=!1,e=!0){const n=Ft(t);return r||(n.equals=Ae),n}function Mt(t,r,e=!1){h!==null&&(!ft||(h.f&ye)!==0)&&Ee()&&(h.f&(O|Et|Yr|ye))!==0&&(pt===null||!Kt.call(pt,t))&&eo();let n=e?sr(r):r;return lr(t,n,Sr)}function lr(t,r,e=null){if(!t.equals(r)){var n=t.v;Ot?zt.set(t,r):zt.set(t,n),t.v=r;var o=jt.ensure();if(o.capture(t,n),(t.f&O)!==0){const i=t;(t.f&P)!==0&&Vr(i),bt===null&&Fr(i)}t.wv=pn(),He(t,P,e),y!==null&&(y.f&D)!==0&&(y.f&(vt|Tt))===0&&(xt===null?zo([t]):xt.push(t)),!o.is_fork&&Wr.size>0&&!Fe&&Ao()}return r}function Ao(){Fe=!1;for(const t of Wr)(t.f&D)!==0&&z(t,ct),gr(t)&&dr(t);Wr.clear()}function vr(t){Mt(t,t.v+1)}function He(t,r,e){var n=t.reactions;if(n!==null)for(var o=n.length,i=0;i<o;i++){var l=n[i],a=l.f,s=(a&P)===0;if(s&&z(l,r),(a&O)!==0){var d=l;bt?.delete(d),(a&Lt)===0&&(a&ot&&(l.f|=Lt),He(d,ct,e))}else if(s){var p=l;(a&Et)!==0&&At!==null&&At.add(p),e!==null?e.push(p):Jr(p)}}}function sr(t){if(typeof t!="object"||t===null||Ar in t)return t;const r=be(t);if(r!==Gn&&r!==Pn)return t;var e=new Map,n=ge(t),o=Dt(0),i=Vt,l=a=>{if(Vt===i)return a();var s=h,d=Vt;mt(null),mn(i);var p=a();return mt(s),mn(d),p};return n&&e.set("length",Dt(t.length)),new Proxy(t,{defineProperty(a,s,d){(!("value"in d)||d.configurable===!1||d.enumerable===!1||d.writable===!1)&&to();var p=e.get(s);return p===void 0?l(()=>{var g=Dt(d.value);return e.set(s,g),g}):Mt(p,d.value,!0),!0},deleteProperty(a,s){var d=e.get(s);if(d===void 0){if(s in a){const p=l(()=>Dt(G));e.set(s,p),vr(o)}}else Mt(d,G),vr(o);return!0},get(a,s,d){if(s===Ar)return t;var p=e.get(s),g=s in a;if(p===void 0&&(!g||Pt(a,s)?.writable)&&(p=l(()=>{var f=sr(g?a[s]:G),m=Dt(f);return m}),e.set(s,p)),p!==void 0){var v=b(p);return v===G?void 0:v}return Reflect.get(a,s,d)},getOwnPropertyDescriptor(a,s){var d=Reflect.getOwnPropertyDescriptor(a,s);if(d&&"value"in d){var p=e.get(s);p&&(d.value=b(p))}else if(d===void 0){var g=e.get(s),v=g?.v;if(g!==void 0&&v!==G)return{enumerable:!0,configurable:!0,value:v,writable:!0}}return d},has(a,s){if(s===Ar)return!0;var d=e.get(s),p=d!==void 0&&d.v!==G||Reflect.has(a,s);if(d!==void 0||y!==null&&(!p||Pt(a,s)?.writable)){d===void 0&&(d=l(()=>{var v=p?sr(a[s]):G,f=Dt(v);return f}),e.set(s,d));var g=b(d);if(g===G)return!1}return p},set(a,s,d,p){var g=e.get(s),v=s in a;if(n&&s==="length")for(var f=d;f<g.v;f+=1){var m=e.get(f+"");m!==void 0?Mt(m,G):f in a&&(m=l(()=>Dt(G)),e.set(f+"",m))}if(g===void 0)(!v||Pt(a,s)?.writable)&&(g=l(()=>Dt(void 0)),Mt(g,sr(d)),e.set(s,g));else{v=g.v!==G;var x=l(()=>sr(d));Mt(g,x)}var c=Reflect.getOwnPropertyDescriptor(a,s);if(c?.set&&c.set.call(p,d),!v){if(n&&typeof s=="string"){var u=e.get("length"),w=Number(s);Number.isInteger(w)&&w>=u.v&&Mt(u,w+1)}vr(o)}return!0},ownKeys(a){b(o);var s=Reflect.ownKeys(a).filter(g=>{var v=e.get(g);return v===void 0||v.v!==G});for(var[d,p]of e)p.v!==G&&!(d in a)&&s.push(d);return s},setPrototypeOf(){ro()}})}var Je,Ve,We,Qe;function Qr(){if(Je===void 0){Je=window,Ve=/Firefox/.test(navigator.userAgent);var t=Element.prototype,r=Node.prototype,e=Text.prototype;We=Pt(r,"firstChild").get,Qe=Pt(r,"nextSibling").get,fe(t)&&(t.__click=void 0,t.__className=void 0,t.__attributes=null,t.__style=void 0,t.__e=void 0),fe(e)&&(e.__t=void 0)}}function lt(t=""){return document.createTextNode(t)}function Zt(t){return We.call(t)}function st(t){return Qe.call(t)}function E(t,r){if(!M)return Zt(t);var e=Zt(k);if(e===null)e=k.appendChild(lt());else if(r&&e.nodeType!==Mr){var n=lt();return e?.before(n),Y(n),n}return r&&qr(e),Y(e),e}function Ue(t,r=!1){if(!M){var e=Zt(t);return e instanceof Comment&&e.data===""?st(e):e}if(r){if(k?.nodeType!==Mr){var n=lt();return k?.before(n),Y(n),n}qr(k)}return k}function ut(t,r=1,e=!1){let n=M?k:t;for(var o;r--;)o=n,n=st(n);if(!M)return n;if(e){if(n?.nodeType!==Mr){var i=lt();return n===null?o?.after(i):n.before(i),Y(i),i}qr(n)}return Y(n),n}function qe(t){t.textContent=""}function Xe(){return!1}function Ur(t,r,e){return document.createElementNS(ve,t,void 0)}function qr(t){if(t.nodeValue.length<65536)return;let r=t.nextSibling;for(;r!==null&&r.nodeType===Mr;)r.remove(),t.nodeValue+=r.nodeValue,r=t.nextSibling}function Ke(t){var r=h,e=y;mt(null),yt(null);try{return t()}finally{mt(r),yt(e)}}function Mo(t){y===null&&(h===null&&Un(),Qn()),Ot&&Wn()}function $o(t,r){var e=r.last;e===null?r.last=r.first=t:(e.next=t,t.prev=e,r.last=t)}function ht(t,r){var e=y;e!==null&&(e.f&X)!==0&&(t|=X);var n={ctx:at,deps:null,nodes:null,f:t|P|ot,first:null,fn:r,last:null,next:null,parent:e,b:e&&e.b,prev:null,teardown:null,wv:0,ac:null},o=n;if((t&tr)!==0)ir!==null?ir.push(n):jt.ensure().schedule(n);else if(r!==null){try{dr(n)}catch(l){throw Z(n),l}o.deps===null&&o.teardown===null&&o.nodes===null&&o.first===o.last&&(o.f&St)===0&&(o=o.first,(t&Et)!==0&&(t&rr)!==0&&o!==null&&(o.f|=rr))}if(o!==null&&(o.parent=e,e!==null&&$o(o,e),h!==null&&(h.f&O)!==0&&(t&Tt)===0)){var i=h;(i.effects??=[]).push(o)}return n}function Xr(){return h!==null&&!ft}function Eo(t){const r=ht(jr,null);return z(r,D),r.teardown=t,r}function Kr(t){Mo();var r=y.f,e=!h&&(r&vt)!==0&&(r&It)===0;if(e){var n=at;(n.e??=[]).push(t)}else return tn(t)}function tn(t){return ht(tr|Fn,t)}function To(t){jt.ensure();const r=ht(Tt|St,t);return()=>{Z(r)}}function Io(t){jt.ensure();const r=ht(Tt|St,t);return(e={})=>new Promise(n=>{e.outro?Ht(r,()=>{Z(r),n(void 0)}):(Z(r),n(void 0))})}function So(t){return ht(tr,t)}function No(t){return ht(Yr|St,t)}function rn(t,r=0){return ht(jr|r,t)}function F(t,r=[],e=[],n=[]){uo(n,r,e,o=>{ht(jr,()=>t(...o.map(b)))})}function Cr(t,r=0){var e=ht(Et|r,t);return e}function dt(t){return ht(vt|St,t)}function en(t){var r=t.teardown;if(r!==null){const e=Ot,n=h;ln(!0),mt(null);try{r.call(null)}finally{ln(e),mt(n)}}}function te(t,r=!1){var e=t.first;for(t.first=t.last=null;e!==null;){const o=e.ac;o!==null&&Ke(()=>{o.abort(kt)});var n=e.next;(e.f&Tt)!==0?e.parent=null:Z(e,r),e=n}}function Ro(t){for(var r=t.first;r!==null;){var e=r.next;(r.f&vt)===0&&Z(r),r=e}}function Z(t,r=!0){var e=!1;(r||(t.f&we)!==0)&&t.nodes!==null&&t.nodes.end!==null&&(Co(t.nodes.start,t.nodes.end),e=!0),z(t,he),te(t,r&&!e),br(t,0);var n=t.nodes&&t.nodes.t;if(n!==null)for(const i of n)i.stop();en(t),t.f^=he,t.f|=it;var o=t.parent;o!==null&&o.first!==null&&nn(t),t.next=t.prev=t.teardown=t.ctx=t.deps=t.fn=t.nodes=t.ac=t.b=null}function Co(t,r){for(;t!==null;){var e=t===r?null:st(t);t.remove(),t=e}}function nn(t){var r=t.parent,e=t.prev,n=t.next;e!==null&&(e.next=n),n!==null&&(n.prev=e),r!==null&&(r.first===t&&(r.first=n),r.last===t&&(r.last=e))}function Ht(t,r,e=!0){var n=[];on(t,n,!0);var o=()=>{e&&Z(t),r&&r()},i=n.length;if(i>0){var l=()=>--i||o();for(var a of n)a.out(l)}else o()}function on(t,r,e){if((t.f&X)===0){t.f^=X;var n=t.nodes&&t.nodes.t;if(n!==null)for(const a of n)(a.is_global||e)&&r.push(a);for(var o=t.first;o!==null;){var i=o.next,l=(o.f&rr)!==0||(o.f&vt)!==0&&(t.f&Et)!==0;on(o,r,l?e:!1),o=i}}}function re(t){an(t,!0)}function an(t,r){if((t.f&X)!==0){t.f^=X,(t.f&D)===0&&(z(t,P),jt.ensure().schedule(t));for(var e=t.first;e!==null;){var n=e.next,o=(e.f&rr)!==0||(e.f&vt)!==0;an(e,o?r:!1),e=n}var i=t.nodes&&t.nodes.t;if(i!==null)for(const l of i)(l.is_global||r)&&l.in()}}function ee(t,r){if(t.nodes)for(var e=t.nodes.start,n=t.nodes.end;e!==null;){var o=e===n?null:st(e);r.append(e),e=o}}let zr=!1,Ot=!1;function ln(t){Ot=t}let h=null,ft=!1;function mt(t){h=t}let y=null;function yt(t){y=t}let pt=null;function sn(t){h!==null&&(pt===null?pt=[t]:pt.push(t))}let q=null,K=0,xt=null;function zo(t){xt=t}let dn=1,Jt=0,Vt=Jt;function mn(t){Vt=t}function pn(){return++dn}function gr(t){var r=t.f;if((r&P)!==0)return!0;if(r&O&&(t.f&=~Lt),(r&ct)!==0){for(var e=t.deps,n=e.length,o=0;o<n;o++){var i=e[o];if(gr(i)&&Le(i),i.wv>t.wv)return!0}(r&ot)!==0&&bt===null&&z(t,D)}return!1}function xn(t,r,e=!0){var n=t.reactions;if(n!==null&&!(pt!==null&&Kt.call(pt,t)))for(var o=0;o<n.length;o++){var i=n[o];(i.f&O)!==0?xn(i,r,!1):r===i&&(e?z(i,P):(i.f&D)!==0&&z(i,ct),Jr(i))}}function vn(t){var r=q,e=K,n=xt,o=h,i=pt,l=at,a=ft,s=Vt,d=t.f;q=null,K=0,xt=null,h=(d&(vt|Tt))===0?t:null,pt=null,nr(t.ctx),ft=!1,Vt=++Jt,t.ac!==null&&(Ke(()=>{t.ac.abort(kt)}),t.ac=null);try{t.f|=Lr;var p=t.fn,g=p();t.f|=It;var v=t.deps,f=I?.is_fork;if(q!==null){var m;if(f||br(t,K),v!==null&&K>0)for(v.length=K+q.length,m=0;m<q.length;m++)v[K+m]=q[m];else t.deps=v=q;if(Xr()&&(t.f&ot)!==0)for(m=K;m<v.length;m++)(v[m].reactions??=[]).push(t)}else!f&&v!==null&&K<v.length&&(br(t,K),v.length=K);if(Ee()&&xt!==null&&!ft&&v!==null&&(t.f&(O|ct|P))===0)for(m=0;m<xt.length;m++)xn(xt[m],t);if(o!==null&&o!==t){if(Jt++,o.deps!==null)for(let x=0;x<e;x+=1)o.deps[x].rv=Jt;if(r!==null)for(const x of r)x.rv=Jt;xt!==null&&(n===null?n=xt:n.push(...xt))}return(t.f&Nt)!==0&&(t.f^=Nt),g}catch(x){return Ie(x)}finally{t.f^=Lr,q=r,K=e,xt=n,h=o,pt=i,nr(l),ft=a,Vt=s}}function Do(t,r){let e=r.reactions;if(e!==null){var n=On.call(e,t);if(n!==-1){var o=e.length-1;o===0?e=r.reactions=null:(e[n]=e[o],e.pop())}}if(e===null&&(r.f&O)!==0&&(q===null||!Kt.call(q,r))){var i=r;(i.f&ot)!==0&&(i.f^=ot,i.f&=~Lt),Fr(i),jo(i),br(i,0)}}function br(t,r){var e=t.deps;if(e!==null)for(var n=r;n<e.length;n++)Do(t,e[n])}function dr(t){var r=t.f;if((r&it)===0){z(t,D);var e=y,n=zr;y=t,zr=!0;try{(r&(Et|ue))!==0?Ro(t):te(t),en(t);var o=vn(t);t.teardown=typeof o=="function"?o:null,t.wv=dn;var i;Dn&&lo&&(t.f&P)!==0&&t.deps}finally{zr=n,y=e}}}function b(t){var r=t.f,e=(r&O)!==0;if(h!==null&&!ft){var n=y!==null&&(y.f&it)!==0;if(!n&&(pt===null||!Kt.call(pt,t))){var o=h.deps;if((h.f&Lr)!==0)t.rv<Jt&&(t.rv=Jt,q===null&&o!==null&&o[K]===t?K++:q===null?q=[t]:q.push(t));else{(h.deps??=[]).push(t);var i=t.reactions;i===null?t.reactions=[h]:Kt.call(i,h)||i.push(h)}}}if(Ot&&zt.has(t))return zt.get(t);if(e){var l=t;if(Ot){var a=l.v;return((l.f&D)===0&&l.reactions!==null||bn(l))&&(a=Vr(l)),zt.set(l,a),a}var s=(l.f&ot)===0&&!ft&&h!==null&&(zr||(h.f&ot)!==0),d=(l.f&It)===0;gr(l)&&(s&&(l.f|=ot),Le(l)),s&&!d&&(Ye(l),gn(l))}if(bt?.has(t))return bt.get(t);if((t.f&Nt)!==0)throw t.v;return t.v}function gn(t){if(t.f|=ot,t.deps!==null)for(const r of t.deps)(r.reactions??=[]).push(t),(r.f&O)!==0&&(r.f&ot)===0&&(Ye(r),gn(r))}function bn(t){if(t.v===G)return!0;if(t.deps===null)return!1;for(const r of t.deps)if(zt.has(r)||(r.f&O)!==0&&bn(r))return!0;return!1}function fn(t){var r=ft;try{return ft=!0,t()}finally{ft=r}}const fr=Symbol("events"),cn=new Set,ne=new Set;function Oo(t,r,e){(r[fr]??={})[t]=e}function Bo(t){for(var r=0;r<t.length;r++)cn.add(t[r]);for(var e of ne)e(t)}let un=null;function hn(t){var r=this,e=r.ownerDocument,n=t.type,o=t.composedPath?.()||[],i=o[0]||t.target;un=t;var l=0,a=un===t&&t[fr];if(a){var s=o.indexOf(a);if(s!==-1&&(r===document||r===window)){t[fr]=r;return}var d=o.indexOf(r);if(d===-1)return;s<=d&&(l=s)}if(i=o[l]||t.target,i!==r){kr(t,"currentTarget",{configurable:!0,get(){return i||e}});var p=h,g=y;mt(null),yt(null);try{for(var v,f=[];i!==null;){var m=i.assignedSlot||i.parentNode||i.host||null;try{var x=i[fr]?.[n];x!=null&&(!i.disabled||t.target===i)&&x.call(i,t)}catch(c){v?f.push(c):v=c}if(t.cancelBubble||m===r||m===null)break;i=m}if(v){for(let c of f)queueMicrotask(()=>{throw c});throw v}}finally{t[fr]=r,delete t.currentTarget,mt(p),yt(g)}}}const Go=globalThis?.window?.trustedTypes&&globalThis.window.trustedTypes.createPolicy("svelte-trusted-html",{createHTML:t=>t});function Po(t){return Go?.createHTML(t)??t}function Lo(t){var r=Ur("template");return r.innerHTML=Po(t.replaceAll("<!>","<!---->")),r.content}function mr(t,r){var e=y;e.nodes===null&&(e.nodes={start:t,end:r,a:null,t:null})}function R(t,r){var e=(r&Cn)!==0,n=(r&zn)!==0,o,i=!t.startsWith("<!>");return()=>{if(M)return mr(k,null),k;o===void 0&&(o=Lo(i?t:"<!>"+t),e||(o=Zt(o)));var l=n||Ve?document.importNode(o,!0):o.cloneNode(!0);if(e){var a=Zt(l),s=l.lastChild;mr(a,s)}else mr(l,l);return l}}function Yo(){if(M)return mr(k,null),k;var t=document.createDocumentFragment(),r=document.createComment(""),e=lt();return t.append(r,e),mr(r,e),t}function S(t,r){if(M){var e=y;((e.f&It)===0||e.nodes.end===null)&&(e.nodes.end=k),Er();return}t!==null&&t.before(r)}const Fo=["touchstart","touchmove"];function Zo(t){return Fo.includes(t)}function $t(t,r){var e=r==null?"":typeof r=="object"?`${r}`:r;e!==(t.__t??=t.nodeValue)&&(t.__t=e,t.nodeValue=`${e}`)}function yn(t,r){return wn(t,r)}function Ho(t,r){Qr(),r.intro=r.intro??!1;const e=r.target,n=M,o=k;try{for(var i=Zt(e);i&&(i.nodeType!==er||i.data!==pe);)i=st(i);if(!i)throw Xt;gt(!0),Y(i);const l=wn(t,{...r,anchor:i});return gt(!1),l}catch(l){if(l instanceof Error&&l.message.split(`
2
- `).some(a=>a.startsWith("https://svelte.dev/e/")))throw l;return l!==Xt&&console.warn("Failed to hydrate: ",l),r.recover===!1&&Xn(),Qr(),qe(e),gt(!1),yn(t,r)}finally{gt(n),Y(o)}}const Dr=new Map;function wn(t,{target:r,anchor:e,props:n={},events:o,context:i,intro:l=!0,transformError:a}){Qr();var s=void 0,d=Io(()=>{var p=e??r.appendChild(lt());fo(p,{pending:()=>{}},f=>{Me({});var m=at;if(i&&(m.c=i),o&&(n.$$events=o),M&&mr(f,null),s=t(f,n)||{},M&&(y.nodes.end=k,k===null||k.nodeType!==er||k.data!==Gr))throw $r(),Xt;$e()},a);var g=new Set,v=f=>{for(var m=0;m<f.length;m++){var x=f[m];if(!g.has(x)){g.add(x);var c=Zo(x);for(const C of[r,document]){var u=Dr.get(C);u===void 0&&(u=new Map,Dr.set(C,u));var w=u.get(x);w===void 0?(C.addEventListener(x,hn,{passive:c}),u.set(x,1)):u.set(x,w+1)}}}};return v(wr(cn)),ne.add(v),()=>{for(var f of g)for(const c of[r,document]){var m=Dr.get(c),x=m.get(f);--x==0?(c.removeEventListener(f,hn),m.delete(f),m.size===0&&Dr.delete(c)):m.set(f,x)}ne.delete(v),p!==e&&p.parentNode?.removeChild(p)}});return oe.set(s,d),s}let oe=new WeakMap;function Jo(t,r){const e=oe.get(t);return e?(oe.delete(t),e(r)):Promise.resolve()}class Vo{anchor;#t=new Map;#e=new Map;#r=new Map;#o=new Set;#i=!0;constructor(r,e=!0){this.anchor=r,this.#i=e}#n=r=>{if(this.#t.has(r)){var e=this.#t.get(r),n=this.#e.get(e);if(n)re(n),this.#o.delete(e);else{var o=this.#r.get(e);o&&(this.#e.set(e,o.effect),this.#r.delete(e),o.fragment.lastChild.remove(),this.anchor.before(o.fragment),n=o.effect)}for(const[i,l]of this.#t){if(this.#t.delete(i),i===r)break;const a=this.#r.get(l);a&&(Z(a.effect),this.#r.delete(l))}for(const[i,l]of this.#e){if(i===e||this.#o.has(i))continue;const a=()=>{if(Array.from(this.#t.values()).includes(i)){var d=document.createDocumentFragment();ee(l,d),d.append(lt()),this.#r.set(i,{effect:l,fragment:d})}else Z(l);this.#o.delete(i),this.#e.delete(i)};this.#i||!n?(this.#o.add(i),Ht(l,a,!1)):a()}}};#a=r=>{this.#t.delete(r);const e=Array.from(this.#t.values());for(const[n,o]of this.#r)e.includes(n)||(Z(o.effect),this.#r.delete(n))};ensure(r,e){var n=I,o=Xe();if(e&&!this.#e.has(r)&&!this.#r.has(r))if(o){var i=document.createDocumentFragment(),l=lt();i.append(l),this.#r.set(r,{effect:dt(()=>e(l)),fragment:i})}else this.#e.set(r,dt(()=>e(this.anchor)));if(this.#t.set(n,r),o){for(const[a,s]of this.#e)a===r?n.unskip_effect(s):n.skip_effect(s);for(const[a,s]of this.#r)a===r?n.unskip_effect(s.effect):n.skip_effect(s.effect);n.oncommit(this.#n),n.ondiscard(this.#a)}else M&&(this.anchor=k),this.#n(n)}}function H(t,r,e=!1){var n;M&&(n=k,Er());var o=new Vo(t),i=e?rr:0;function l(a,s){if(M){var d=ke(n);if(a!==parseInt(d.substring(1))){var p=Tr();Y(p),o.anchor=p,gt(!1),o.ensure(a,s),gt(!0);return}}o.ensure(a,s)}Cr(()=>{var a=!1;r((s,d=0)=>{a=!0,l(d,s)}),a||l(-1,null)},i)}function Wo(t,r){return r}function Qo(t,r,e){for(var n=[],o=r.length,i,l=r.length,a=0;a<o;a++){let g=r[a];Ht(g,()=>{if(i){if(i.pending.delete(g),i.done.add(g),i.pending.size===0){var v=t.outrogroups;ie(t,wr(i.done)),v.delete(i),v.size===0&&(t.outrogroups=null)}}else l-=1},!1)}if(l===0){var s=n.length===0&&e!==null;if(s){var d=e,p=d.parentNode;qe(p),p.append(d),t.items.clear()}ie(t,r,!s)}else i={pending:new Set(r),done:new Set},(t.outrogroups??=new Set).add(i)}function ie(t,r,e=!0){var n;if(t.pending.size>0){n=new Set;for(const l of t.pending.values())for(const a of l)n.add(t.items.get(a).e)}for(var o=0;o<r.length;o++){var i=r[o];if(n?.has(i)){i.f|=_t;const l=document.createDocumentFragment();ee(i,l)}else Z(r[o],e)}}var _n;function kn(t,r,e,n,o,i=null){var l=t,a=new Map;M&&Er();var s=null,d=Pe(()=>{var u=e();return ge(u)?u:u==null?[]:wr(u)}),p,g=new Map,v=!0;function f(u){(c.effect.f&it)===0&&(c.pending.delete(u),c.fallback=s,Uo(c,p,l,r,n),s!==null&&(p.length===0?(s.f&_t)===0?re(s):(s.f^=_t,ur(s,null,l)):Ht(s,()=>{s=null})))}function m(u){c.pending.delete(u)}var x=Cr(()=>{p=b(d);var u=p.length;let w=!1;if(M){var C=ke(l)===Br;C!==(u===0)&&(l=Tr(),Y(l),gt(!1),w=!0)}for(var L=new Set,J=I,wt=Xe(),V=0;V<u;V+=1){M&&k.nodeType===er&&k.data===Gr&&(l=k,w=!0,gt(!1));var W=p[V],Gt=n(W,V),tt=v?null:a.get(Gt);tt?(tt.v&&lr(tt.v,W),tt.i&&lr(tt.i,V),wt&&J.unskip_effect(tt.e)):(tt=qo(a,v?l:_n??=lt(),W,Gt,V,o,r,e),v||(tt.e.f|=_t),a.set(Gt,tt)),L.add(Gt)}if(u===0&&i&&!s&&(v?s=dt(()=>i(l)):(s=dt(()=>i(_n??=lt())),s.f|=_t)),u>L.size&&Vn(),M&&u>0&&Y(Tr()),!v)if(g.set(J,L),wt){for(const[ae,le]of a)L.has(ae)||J.skip_effect(le.e);J.oncommit(f),J.ondiscard(m)}else f(J);w&&gt(!0),b(d)}),c={effect:x,items:a,pending:g,outrogroups:null,fallback:s};v=!1,M&&(l=k)}function cr(t){for(;t!==null&&(t.f&vt)===0;)t=t.next;return t}function Uo(t,r,e,n,o){var i=r.length,l=t.items,a=cr(t.effect.first),s,d=null,p=[],g=[],v,f,m,x;for(x=0;x<i;x+=1){if(v=r[x],f=o(v,x),m=l.get(f).e,t.outrogroups!==null)for(const W of t.outrogroups)W.pending.delete(m),W.done.delete(m);if((m.f&X)!==0&&re(m),(m.f&_t)!==0)if(m.f^=_t,m===a)ur(m,null,e);else{var c=d?d.next:a;m===t.effect.last&&(t.effect.last=m.prev),m.prev&&(m.prev.next=m.next),m.next&&(m.next.prev=m.prev),Bt(t,d,m),Bt(t,m,c),ur(m,c,e),d=m,p=[],g=[],a=cr(d.next);continue}if(m!==a){if(s!==void 0&&s.has(m)){if(p.length<g.length){var u=g[0],w;d=u.prev;var C=p[0],L=p[p.length-1];for(w=0;w<p.length;w+=1)ur(p[w],u,e);for(w=0;w<g.length;w+=1)s.delete(g[w]);Bt(t,C.prev,L.next),Bt(t,d,C),Bt(t,L,u),a=u,d=L,x-=1,p=[],g=[]}else s.delete(m),ur(m,a,e),Bt(t,m.prev,m.next),Bt(t,m,d===null?t.effect.first:d.next),Bt(t,d,m),d=m;continue}for(p=[],g=[];a!==null&&a!==m;)(s??=new Set).add(a),g.push(a),a=cr(a.next);if(a===null)continue}(m.f&_t)===0&&p.push(m),d=m,a=cr(m.next)}if(t.outrogroups!==null){for(const W of t.outrogroups)W.pending.size===0&&(ie(t,wr(W.done)),t.outrogroups?.delete(W));t.outrogroups.size===0&&(t.outrogroups=null)}if(a!==null||s!==void 0){var J=[];if(s!==void 0)for(m of s)(m.f&X)===0&&J.push(m);for(;a!==null;)(a.f&X)===0&&a!==t.fallback&&J.push(a),a=cr(a.next);var wt=J.length;if(wt>0){var V=null;Qo(t,J,V)}}}function qo(t,r,e,n,o,i,l,a){var s=(l&$n)!==0?(l&Tn)===0?Ze(e,!1,!1):Ft(e):null,d=(l&En)!==0?Ft(o):null;return{v:s,i:d,e:dt(()=>(i(r,s??e,d??o,a),()=>{t.delete(n)}))}}function ur(t,r,e){if(t.nodes)for(var n=t.nodes.start,o=t.nodes.end,i=r&&(r.f&_t)===0?r.nodes.start:e;n!==null;){var l=st(n);if(i.before(n),n===o)return;n=l}}function Bt(t,r,e){r===null?t.effect.first=e:r.next=e,e===null?t.effect.last=r:e.prev=r}function Xo(t,r){let e=null,n=M;var o;if(M){e=k;for(var i=Zt(document.head);i!==null&&(i.nodeType!==er||i.data!==t);)i=st(i);if(i===null)gt(!1);else{var l=st(i);i.remove(),Y(l)}}M||(o=document.head.appendChild(lt()));try{Cr(()=>r(o),we|St)}finally{n&&(gt(!0),Y(e))}}function Ko(t,r){So(()=>{var e=t.getRootNode(),n=e.host?e:e.head??e.ownerDocument.head;if(!n.querySelector("#"+r.hash)){const o=Ur("style");o.id=r.hash,o.textContent=r.code,n.appendChild(o)}})}function ti(t,r,e){var n=t==null?"":""+t;return n=n?n+" "+r:r,n===""?null:n}function Wt(t,r,e,n,o,i){var l=t.__className;if(M||l!==e||l===void 0){var a=ti(e,n);(!M||a!==t.getAttribute("class"))&&(a==null?t.removeAttribute("class"):t.className=a),t.__className=e}return i}const ri=Symbol("is custom element"),ei=Symbol("is html"),ni=Hn?"link":"LINK";function pr(t,r,e,n){var o=oi(t);M&&(o[r]=t.getAttribute(r),r==="src"||r==="srcset"||r==="href"&&t.nodeName===ni)||o[r]!==(o[r]=e)&&(r==="loading"&&(t[Zn]=e),e==null?t.removeAttribute(r):typeof e!="string"&&ii(t).includes(r)?t[r]=e:t.setAttribute(r,e))}function oi(t){return t.__attributes??={[ri]:t.nodeName.includes("-"),[ei]:t.namespaceURI===ve}}var jn=new Map;function ii(t){var r=t.getAttribute("is")||t.nodeName,e=jn.get(r);if(e)return e;jn.set(r,e=[]);for(var n,o=t,i=Element.prototype;i!==o;){n=Bn(o);for(var l in n)n[l].set&&e.push(l);o=be(o)}return e}function hr(t,r,e,n){var o=(e&Nn)!==0,i=(e&Rn)!==0,l=n,a=!0,s=()=>(a&&(a=!1,l=i?fn(n):n),l);let d;if(o){var p=Ar in t||_e in t;d=Pt(t,r)?.set??(p&&r in t?w=>t[r]=w:void 0)}var g,v=!1;o?[g,v]=po(()=>t[r]):g=t[r],g===void 0&&n!==void 0&&(g=s(),d&&(Kn(),d(g)));var f;if(f=()=>{var w=t[r];return w===void 0?s():(a=!0,w)},(e&Sn)===0)return f;if(d){var m=t.$$legacy;return(function(w,C){return arguments.length>0?((!C||m||v)&&d(C?f():w),w):f()})}var x=!1,c=((e&In)!==0?Rr:Pe)(()=>(x=!1,f()));o&&b(c);var u=y;return(function(w,C){if(arguments.length>0){const L=C?b(c):o?sr(w):w;return Mt(c,L),x=!0,l!==void 0&&(l=L),w}return Ot&&x||(u.f&it)!==0?c.v:b(c)})}function ai(t){return new li(t)}class li{#t;#e;constructor(r){var e=new Map,n=(i,l)=>{var a=Ze(l,!1,!1);return e.set(i,a),a};const o=new Proxy({...r.props||{},$$events:{}},{get(i,l){return b(e.get(l)??n(l,Reflect.get(i,l)))},has(i,l){return l===_e?!0:(b(e.get(l)??n(l,Reflect.get(i,l))),Reflect.has(i,l))},set(i,l,a){return Mt(e.get(l)??n(l,a),a),Reflect.set(i,l,a)}});this.#e=(r.hydrate?Ho:yn)(r.component,{target:r.target,anchor:r.anchor,props:o,context:r.context,intro:r.intro??!1,recover:r.recover,transformError:r.transformError}),(!r?.props?.$$host||r.sync===!1)&&ar(),this.#t=o.$$events;for(const i of Object.keys(this.#e))i==="$set"||i==="$destroy"||i==="$on"||kr(this,i,{get(){return this.#e[i]},set(l){this.#e[i]=l},enumerable:!0});this.#e.$set=i=>{Object.assign(o,i)},this.#e.$destroy=()=>{Jo(this.#e)}}$set(r){this.#e.$set(r)}$on(r,e){this.#t[r]=this.#t[r]||[];const n=(...o)=>e.call(this,...o);return this.#t[r].push(n),()=>{this.#t[r]=this.#t[r].filter(o=>o!==n)}}$destroy(){this.#e.$destroy()}}let An;typeof HTMLElement=="function"&&(An=class extends HTMLElement{$$ctor;$$s;$$c;$$cn=!1;$$d={};$$r=!1;$$p_d={};$$l={};$$l_u=new Map;$$me;$$shadowRoot=null;constructor(t,r,e){super(),this.$$ctor=t,this.$$s=r,e&&(this.$$shadowRoot=this.attachShadow(e))}addEventListener(t,r,e){if(this.$$l[t]=this.$$l[t]||[],this.$$l[t].push(r),this.$$c){const n=this.$$c.$on(t,r);this.$$l_u.set(r,n)}super.addEventListener(t,r,e)}removeEventListener(t,r,e){if(super.removeEventListener(t,r,e),this.$$c){const n=this.$$l_u.get(r);n&&(n(),this.$$l_u.delete(r))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let t=function(n){return o=>{const i=Ur("slot");n!=="default"&&(i.name=n),S(o,i)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const r={},e=si(this);for(const n of this.$$s)n in e&&(n==="default"&&!this.$$d.children?(this.$$d.children=t(n),r.default=!0):r[n]=t(n));for(const n of this.attributes){const o=this.$$g_p(n.name);o in this.$$d||(this.$$d[o]=Or(o,n.value,this.$$p_d,"toProp"))}for(const n in this.$$p_d)!(n in this.$$d)&&this[n]!==void 0&&(this.$$d[n]=this[n],delete this[n]);this.$$c=ai({component:this.$$ctor,target:this.$$shadowRoot||this,props:{...this.$$d,$$slots:r,$$host:this}}),this.$$me=To(()=>{rn(()=>{this.$$r=!0;for(const n of _r(this.$$c)){if(!this.$$p_d[n]?.reflect)continue;this.$$d[n]=this.$$c[n];const o=Or(n,this.$$d[n],this.$$p_d,"toAttribute");o==null?this.removeAttribute(this.$$p_d[n].attribute||n):this.setAttribute(this.$$p_d[n].attribute||n,o)}this.$$r=!1})});for(const n in this.$$l)for(const o of this.$$l[n]){const i=this.$$c.$on(n,o);this.$$l_u.set(o,i)}this.$$l={}}}attributeChangedCallback(t,r,e){this.$$r||(t=this.$$g_p(t),this.$$d[t]=Or(t,e,this.$$p_d,"toProp"),this.$$c?.$set({[t]:this.$$d[t]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$me(),this.$$c=void 0)})}$$g_p(t){return _r(this.$$p_d).find(r=>this.$$p_d[r].attribute===t||!this.$$p_d[r].attribute&&r.toLowerCase()===t)||t}});function Or(t,r,e,n){const o=e[t]?.type;if(r=o==="Boolean"&&typeof r!="boolean"?r!=null:r,!n||!e[t])return r;if(n==="toAttribute")switch(o){case"Object":case"Array":return r==null?null:JSON.stringify(r);case"Boolean":return r?"":null;case"Number":return r??null;default:return r}else switch(o){case"Object":case"Array":return r&&JSON.parse(r);case"Boolean":return r;case"Number":return r!=null?+r:r;default:return r}}function si(t){const r={};return t.childNodes.forEach(e=>{r[e.slot||"default"]=!0}),r}function di(t,r,e,n,o,i){let l=class extends An{constructor(){super(t,e,o),this.$$p_d=r}static get observedAttributes(){return _r(r).map(a=>(r[a].attribute||a).toLowerCase())}};return _r(r).forEach(a=>{kr(l.prototype,a,{get(){return this.$$c&&a in this.$$c?this.$$c[a]:this.$$d[a]},set(s){s=Or(a,s,r),this.$$d[a]=s;var d=this.$$c;if(d){var p=Pt(d,a)?.get;p?d[a]=s:d.$set({[a]:s})}}})}),n.forEach(a=>{kr(l.prototype,a,{get(){return this.$$c?.[a]}})}),t.element=l,l}var mi=R('<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@latest/font/bootstrap-icons.css" class="svelte-1d5xrrt"/>'),pi=R('<div class="author-name-spacer me-2 svelte-1d5xrrt"></div>'),xi=R('<div class="author-name-spacer ms-2 svelte-1d5xrrt"></div>'),vi=R('<div><!> <div class="author-name-content flex-grow-1 svelte-1d5xrrt"><span> </span></div> <!></div>'),gi=R('<span class="badge bg-primary position-absolute top-0 end-0 translate-middle rounded-pill svelte-1d5xrrt">AI</span>'),bi=R('<div class="avatar-container position-relative svelte-1d5xrrt"><img class="rounded-circle svelte-1d5xrrt" width="40" height="40"/> <!></div>'),fi=R('<div class="avatar-spacer svelte-1d5xrrt"></div>'),ci=R('<div class="message-avatar me-2 svelte-1d5xrrt"><!></div>'),ui=R('<div class="code-header d-flex justify-content-between align-items-center mb-2 svelte-1d5xrrt"><span class="badge bg-secondary svelte-1d5xrrt"> </span></div>'),hi=R('<div class="code-block svelte-1d5xrrt"><!> <pre class="bg-dark text-light p-3 rounded-2 mb-0 svelte-1d5xrrt"><code class="svelte-1d5xrrt"> </code></pre></div>'),yi=R('<div class="message-text svelte-1d5xrrt"> </div>'),wi=R('<div><div part="message-body" class="message-body svelte-1d5xrrt"><!></div></div>'),_i=R('<div class="code-header d-flex justify-content-between align-items-center mb-2 svelte-1d5xrrt"><span class="badge bg-secondary svelte-1d5xrrt"> </span></div>'),ki=R('<div class="code-block svelte-1d5xrrt"><!> <pre class="bg-dark text-light p-3 rounded-2 mb-0 svelte-1d5xrrt"><code class="svelte-1d5xrrt"> </code></pre></div>'),ji=R('<div class="message-text svelte-1d5xrrt"> </div>'),Ai=R('<div part="message" class="message-bubble bg-secondary-subtle border rounded-3 p-3 shadow-sm svelte-1d5xrrt"><div part="message-body" class="message-body svelte-1d5xrrt"><!></div></div>'),Mi=R('<button class="btn btn-sm btn-outline-secondary rounded-circle p-1 svelte-1d5xrrt"><i></i></button>'),$i=R('<div part="message-timestamp" class="message-timestamp ms-2 svelte-1d5xrrt"> </div>'),Ei=R("<div><!> <!></div>"),Ti=R('<div><div part="message-timestamp" class="message-timestamp svelte-1d5xrrt"> </div></div>'),Ii=R('<img alt="You" class="rounded-circle svelte-1d5xrrt" width="40" height="40"/>'),Si=R('<div class="avatar-spacer svelte-1d5xrrt"></div>'),Ni=R('<div class="message-avatar ms-2 svelte-1d5xrrt"><!></div>'),Ri=R('<!> <div><!> <div class="message-content position-relative svelte-1d5xrrt"><!> <!></div> <!></div>',1);const Ci={hash:"svelte-1d5xrrt",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");
1
+ (function(e){Object.defineProperty(e,Symbol.toStringTag,{value:`Module`}),typeof window<`u`&&((window.__svelte??={}).v??=new Set).add(`5`);var t={},n=Symbol(),r=`http://www.w3.org/1999/xhtml`,i=Array.isArray,a=Array.prototype.indexOf,o=Array.prototype.includes,s=Array.from,c=Object.keys,l=Object.defineProperty,u=Object.getOwnPropertyDescriptor,d=Object.getOwnPropertyDescriptors,f=Object.prototype,p=Array.prototype,m=Object.getPrototypeOf,h=Object.isExtensible,g=()=>{};function _(e){for(var t=0;t<e.length;t++)e[t]()}function v(){var e,t;return{promise:new Promise((n,r)=>{e=n,t=r}),resolve:e,reject:t}}var y=1024,b=2048,x=4096,S=8192,ee=16384,te=32768,ne=1<<25,re=65536,ie=1<<18,ae=1<<19,oe=1<<20,se=1<<25,ce=65536,le=1<<21,ue=1<<22,de=1<<23,fe=Symbol(`$state`),pe=Symbol(`legacy props`),me=Symbol(``),he=new class extends Error{name=`StaleReactionError`;message="The reaction that called `getAbortSignal()` was re-run or destroyed"},ge=!!globalThis.document?.contentType&&globalThis.document.contentType.includes(`xml`);function _e(){throw Error(`https://svelte.dev/e/async_derived_orphan`)}function ve(e,t,n){throw Error(`https://svelte.dev/e/each_key_duplicate`)}function ye(e){throw Error(`https://svelte.dev/e/effect_in_teardown`)}function be(){throw Error(`https://svelte.dev/e/effect_in_unowned_derived`)}function xe(e){throw Error(`https://svelte.dev/e/effect_orphan`)}function Se(){throw Error(`https://svelte.dev/e/effect_update_depth_exceeded`)}function Ce(){throw Error(`https://svelte.dev/e/hydration_failed`)}function we(e){throw Error(`https://svelte.dev/e/props_invalid_value`)}function Te(){throw Error(`https://svelte.dev/e/state_descriptors_fixed`)}function Ee(){throw Error(`https://svelte.dev/e/state_prototype_fixed`)}function De(){throw Error(`https://svelte.dev/e/state_unsafe_mutation`)}function Oe(){throw Error(`https://svelte.dev/e/svelte_boundary_reset_onerror`)}function ke(e){console.warn(`https://svelte.dev/e/hydration_mismatch`)}function Ae(){console.warn(`https://svelte.dev/e/svelte_boundary_reset_noop`)}var C=!1;function w(e){C=e}var T;function E(e){if(e===null)throw ke(),t;return T=e}function je(){return E(F(T))}function D(e){if(C){if(F(T)!==null)throw ke(),t;T=e}}function Me(e=1){if(C){for(var t=e,n=T;t--;)n=F(n);T=n}}function Ne(e=!0){for(var t=0,n=T;;){if(n.nodeType===8){var r=n.data;if(r===`]`){if(t===0)return n;--t}else (r===`[`||r===`[!`||r[0]===`[`&&!isNaN(Number(r.slice(1))))&&(t+=1)}var i=F(n);e&&n.remove(),n=i}}function Pe(e){if(!e||e.nodeType!==8)throw ke(),t;return e.data}function Fe(e){return e===this.v}function Ie(e,t){return e==e?e!==t||typeof e==`object`&&!!e||typeof e==`function`:t==t}function Le(e){return!Ie(e,this.v)}var Re=!1,ze=!1,O=null;function Be(e){O=e}function Ve(e,t=!1,n){O={p:O,i:!1,c:null,e:null,s:e,x:null,r:G,l:ze&&!t?{s:null,u:null,$:[]}:null}}function He(e){var t=O,n=t.e;if(n!==null){t.e=null;for(var r of n)pn(r)}return e!==void 0&&(t.x=e),t.i=!0,O=t.p,e??{}}function Ue(){return!ze||O!==null&&O.l===null}var We=[];function Ge(){var e=We;We=[],_(e)}function Ke(e){if(We.length===0&&!it){var t=We;queueMicrotask(()=>{t===We&&Ge()})}We.push(e)}function qe(){for(;We.length>0;)Ge()}function Je(e){var t=G;if(t===null)return H.f|=de,e;if(!(t.f&32768)&&!(t.f&4))throw e;Ye(e,t)}function Ye(e,t){for(;t!==null;){if(t.f&128){if(!(t.f&32768))throw e;try{t.b.error(e);return}catch(t){e=t}}t=t.parent}throw e}var Xe=~(b|x|y);function k(e,t){e.f=e.f&Xe|t}function Ze(e){e.f&512||e.deps===null?k(e,y):k(e,x)}function Qe(e){if(e!==null)for(let t of e)!(t.f&2)||!(t.f&65536)||(t.f^=ce,Qe(t.deps))}function $e(e,t,n){e.f&2048?t.add(e):e.f&4096&&n.add(e),Qe(e.deps),k(e,y)}var et=!1,tt=!1;function nt(e){var t=tt;try{return tt=!1,[e(),tt]}finally{tt=t}}var A=new Set,j=null,M=null,rt=null,it=!1,at=!1,ot=null,st=null,ct=0,lt=1,ut=class e{id=lt++;current=new Map;previous=new Map;#e=new Set;#t=new Set;#n=new Map;#r=new Map;#i=null;#a=[];#o=new Set;#s=new Set;#c=new Map;is_fork=!1;#l=!1;#u=new Set;#d(){return this.is_fork||this.#r.size>0}#f(){for(let n of this.#u)for(let r of n.#r.keys()){for(var e=!1,t=r;t.parent!==null;){if(this.#c.has(t)){e=!0;break}t=t.parent}if(!e)return!0}return!1}skip_effect(e){this.#c.has(e)||this.#c.set(e,{d:[],m:[]})}unskip_effect(e){var t=this.#c.get(e);if(t){this.#c.delete(e);for(var n of t.d)k(n,b),this.schedule(n);for(n of t.m)k(n,x),this.schedule(n)}}#p(){if(ct++>1e3&&(A.delete(this),ft()),!this.#d()){for(let e of this.#o)this.#s.delete(e),k(e,b),this.schedule(e);for(let e of this.#s)k(e,x),this.schedule(e)}let t=this.#a;this.#a=[],this.apply();var n=ot=[],r=[],i=st=[];for(let e of t)try{this.#m(e,n,r)}catch(t){throw vt(e),t}if(j=null,i.length>0){var a=e.ensure();for(let e of i)a.schedule(e)}if(ot=null,st=null,this.#d()||this.#f()){this.#h(r),this.#h(n);for(let[e,t]of this.#c)_t(e,t)}else{this.#n.size===0&&A.delete(this),this.#o.clear(),this.#s.clear();for(let e of this.#e)e(this);this.#e.clear(),pt(r),pt(n),this.#i?.resolve()}var o=j;if(this.#a.length>0){let e=o??=this;e.#a.push(...this.#a.filter(t=>!e.#a.includes(t)))}o!==null&&(A.add(o),o.#p()),A.has(this)||this.#g()}#m(e,t,n){e.f^=y;for(var r=e.first;r!==null;){var i=r.f,a=(i&96)!=0;if(!(a&&i&1024||i&8192||this.#c.has(r))&&r.fn!==null){a?r.f^=y:i&4?t.push(r):Re&&i&16777224?n.push(r):Hn(r)&&(i&16&&this.#s.add(r),qn(r));var o=r.first;if(o!==null){r=o;continue}}for(;r!==null;){var s=r.next;if(s!==null){r=s;break}r=r.parent}}}#h(e){for(var t=0;t<e.length;t+=1)$e(e[t],this.#o,this.#s)}capture(e,t,r=!1){t!==n&&!this.previous.has(e)&&this.previous.set(e,t),e.f&8388608||(this.current.set(e,[e.v,r]),M?.set(e,e.v))}activate(){j=this}deactivate(){j=null,M=null}flush(){try{at=!0,j=this,this.#p()}finally{ct=0,rt=null,ot=null,st=null,at=!1,j=null,M=null,Rt.clear()}}discard(){for(let e of this.#t)e(this);this.#t.clear(),A.delete(this)}#g(){for(let c of A){var e=c.id<this.id,t=[];for(let[r,[i,a]]of this.current){if(c.current.has(r)){var n=c.current.get(r)[0];if(e&&i!==n)c.current.set(r,[i,a]);else continue}t.push(r)}var r=[...c.current.keys()].filter(e=>!this.current.has(e));if(r.length===0)e&&c.discard();else if(t.length>0){c.activate();var i=new Set,a=new Map;for(var o of t)mt(o,r,i,a);if(c.#a.length>0){c.apply();for(var s of c.#a)c.#m(s,[],[]);c.#a=[]}c.deactivate()}}for(let e of A)e.#u.has(this)&&(e.#u.delete(this),e.#u.size===0&&!e.#d()&&(e.activate(),e.#p()))}increment(e,t){let n=this.#n.get(t)??0;if(this.#n.set(t,n+1),e){let e=this.#r.get(t)??0;this.#r.set(t,e+1)}}decrement(e,t,n){let r=this.#n.get(t)??0;if(r===1?this.#n.delete(t):this.#n.set(t,r-1),e){let e=this.#r.get(t)??0;e===1?this.#r.delete(t):this.#r.set(t,e-1)}this.#l||n||(this.#l=!0,Ke(()=>{this.#l=!1,this.flush()}))}transfer_effects(e,t){for(let t of e)this.#o.add(t);for(let e of t)this.#s.add(e);e.clear(),t.clear()}oncommit(e){this.#e.add(e)}ondiscard(e){this.#t.add(e)}settled(){return(this.#i??=v()).promise}static ensure(){if(j===null){let t=j=new e;at||(A.add(j),it||Ke(()=>{j===t&&t.flush()}))}return j}apply(){if(!Re||!this.is_fork&&A.size===1){M=null;return}M=new Map;for(let[e,[t]]of this.current)M.set(e,t);for(let n of A)if(!(n===this||n.is_fork)){var e=!1,t=!1;if(n.id<this.id)for(let[r,[,i]]of n.current)i||(e||=this.current.has(r),t||=!this.current.has(r));if(e&&t)this.#u.add(n);else for(let[e,t]of n.previous)M.has(e)||M.set(e,t)}}schedule(e){if(rt=e,e.b?.is_pending&&e.f&16777228&&!(e.f&32768)){e.b.defer_effect(e);return}for(var t=e;t.parent!==null;){t=t.parent;var n=t.f;if(ot!==null&&t===G&&(Re||(H===null||!(H.f&2))&&!et))return;if(n&96){if(!(n&1024))return;t.f^=y}}this.#a.push(t)}};function dt(e){var t=it;it=!0;try{var n;for(e&&(j!==null&&!j.is_fork&&j.flush(),n=e());;){if(qe(),j===null)return n;j.flush()}}finally{it=t}}function ft(){try{Se()}catch(e){Ye(e,rt)}}var N=null;function pt(e){var t=e.length;if(t!==0){for(var n=0;n<t;){var r=e[n++];if(!(r.f&24576)&&Hn(r)&&(N=new Set,qn(r),r.deps===null&&r.first===null&&r.nodes===null&&r.teardown===null&&r.ac===null&&wn(r),N?.size>0)){Rt.clear();for(let e of N){if(e.f&24576)continue;let t=[e],n=e.parent;for(;n!==null;)N.has(n)&&(N.delete(n),t.push(n)),n=n.parent;for(let e=t.length-1;e>=0;e--){let n=t[e];n.f&24576||qn(n)}}N.clear()}}N=null}}function mt(e,t,n,r){if(!n.has(e)&&(n.add(e),e.reactions!==null))for(let i of e.reactions){let e=i.f;e&2?mt(i,t,n,r):e&4194320&&!(e&2048)&&ht(i,t,r)&&(k(i,b),gt(i))}}function ht(e,t,n){let r=n.get(e);if(r!==void 0)return r;if(e.deps!==null)for(let r of e.deps){if(o.call(t,r))return!0;if(r.f&2&&ht(r,t,n))return n.set(r,!0),!0}return n.set(e,!1),!1}function gt(e){j.schedule(e)}function _t(e,t){if(!(e.f&32&&e.f&1024)){e.f&2048?t.d.push(e):e.f&4096&&t.m.push(e),k(e,y);for(var n=e.first;n!==null;)_t(n,t),n=n.next}}function vt(e){k(e,y);for(var t=e.first;t!==null;)vt(t),t=t.next}function yt(e){let t=0,n=Bt(0),r;return()=>{un()&&(X(n),vn(()=>(t===0&&(r=Xn(()=>e(()=>Kt(n)))),t+=1,()=>{Ke(()=>{--t,t===0&&(r?.(),r=void 0,Kt(n))})})))}}var bt=re|ae;function xt(e,t,n,r){new St(e,t,n,r)}var St=class{parent;is_pending=!1;transform_error;#e;#t=C?T:null;#n;#r;#i;#a=null;#o=null;#s=null;#c=null;#l=0;#u=0;#d=!1;#f=new Set;#p=new Set;#m=null;#h=yt(()=>(this.#m=Bt(this.#l),()=>{this.#m=null}));constructor(e,t,n,r){this.#e=e,this.#n=t,this.#r=e=>{var t=G;t.b=this,t.f|=128,n(e)},this.parent=G.b,this.transform_error=r??this.parent?.transform_error??(e=>e),this.#i=yn(()=>{if(C){let e=this.#t;je();let t=e.data===`[!`;if(e.data.startsWith(`[?`)){let t=JSON.parse(e.data.slice(2));this.#_(t)}else t?this.#v():this.#g()}else this.#y()},bt),C&&(this.#e=T)}#g(){try{this.#a=B(()=>this.#r(this.#e))}catch(e){this.error(e)}}#_(e){let t=this.#n.failed;t&&(this.#s=B(()=>{t(this.#e,()=>e,()=>()=>{})}))}#v(){let e=this.#n.pending;e&&(this.is_pending=!0,this.#o=B(()=>e(this.#e)),Ke(()=>{var e=this.#c=document.createDocumentFragment(),t=P();e.append(t),this.#a=this.#x(()=>B(()=>this.#r(t))),this.#u===0&&(this.#e.before(e),this.#c=null,Tn(this.#o,()=>{this.#o=null}),this.#b(j))}))}#y(){try{if(this.is_pending=this.has_pending_snippet(),this.#u=0,this.#l=0,this.#a=B(()=>{this.#r(this.#e)}),this.#u>0){var e=this.#c=document.createDocumentFragment();kn(this.#a,e);let t=this.#n.pending;this.#o=B(()=>t(this.#e))}else this.#b(j)}catch(e){this.error(e)}}#b(e){this.is_pending=!1,e.transfer_effects(this.#f,this.#p)}defer_effect(e){$e(e,this.#f,this.#p)}is_rendered(){return!this.is_pending&&(!this.parent||this.parent.is_rendered())}has_pending_snippet(){return!!this.#n.pending}#x(e){var t=G,n=H,r=O;Pn(this.#i),W(this.#i),Be(this.#i.ctx);try{return ut.ensure(),e()}catch(e){return Je(e),null}finally{Pn(t),W(n),Be(r)}}#S(e,t){if(!this.has_pending_snippet()){this.parent&&this.parent.#S(e,t);return}this.#u+=e,this.#u===0&&(this.#b(t),this.#o&&Tn(this.#o,()=>{this.#o=null}),this.#c&&=(this.#e.before(this.#c),null))}update_pending_count(e,t){this.#S(e,t),this.#l+=e,!(!this.#m||this.#d)&&(this.#d=!0,Ke(()=>{this.#d=!1,this.#m&&Wt(this.#m,this.#l)}))}get_effect_pending(){return this.#h(),X(this.#m)}error(e){var t=this.#n.onerror;let n=this.#n.failed;if(!t&&!n)throw e;this.#a&&=(V(this.#a),null),this.#o&&=(V(this.#o),null),this.#s&&=(V(this.#s),null),C&&(E(this.#t),Me(),E(Ne()));var r=!1,i=!1;let a=()=>{if(r){Ae();return}r=!0,i&&Oe(),this.#s!==null&&Tn(this.#s,()=>{this.#s=null}),this.#x(()=>{this.#y()})},o=e=>{try{i=!0,t?.(e,a),i=!1}catch(e){Ye(e,this.#i&&this.#i.parent)}n&&(this.#s=this.#x(()=>{try{return B(()=>{var t=G;t.b=this,t.f|=128,n(this.#e,()=>e,()=>a)})}catch(e){return Ye(e,this.#i.parent),null}}))};Ke(()=>{var t;try{t=this.transform_error(e)}catch(e){Ye(e,this.#i&&this.#i.parent);return}typeof t==`object`&&t&&typeof t.then==`function`?t.then(o,e=>Ye(e,this.#i&&this.#i.parent)):o(t)})}};function Ct(e,t,n,r){let i=Ue()?Dt:At;var a=e.filter(e=>!e.settled);if(n.length===0&&a.length===0){r(t.map(i));return}var o=G,s=wt(),c=a.length===1?a[0].promise:a.length>1?Promise.all(a.map(e=>e.promise)):null;function l(e){s();try{r(e)}catch(e){o.f&16384||Ye(e,o)}Tt()}if(n.length===0){c.then(()=>l(t.map(i)));return}var u=Et();function d(){Promise.all(n.map(e=>Ot(e))).then(e=>l([...t.map(i),...e])).catch(e=>Ye(e,o)).finally(()=>u())}c?c.then(()=>{s(),d(),Tt()}):d()}function wt(){var e=G,t=H,n=O,r=j;return function(i=!0){Pn(e),W(t),Be(n),i&&!(e.f&16384)&&(r?.activate(),r?.apply())}}function Tt(e=!0){Pn(null),W(null),Be(null),e&&j?.deactivate()}function Et(){var e=G,t=e.b,n=j,r=t.is_rendered();return t.update_pending_count(1,n),n.increment(r,e),(i=!1)=>{t.update_pending_count(-1,n),n.decrement(r,e,i)}}function Dt(e){var t=2|b,r=H!==null&&H.f&2?H:null;return G!==null&&(G.f|=ae),{ctx:O,deps:null,effects:null,equals:Fe,f:t,fn:e,reactions:null,rv:0,v:n,wv:0,parent:r??G,ac:null}}function Ot(e,t,r){let i=G;i===null&&_e();var a=void 0,o=Bt(n),s=!H,c=new Map;return _n(()=>{var t=G,n=v();a=n.promise;try{Promise.resolve(e()).then(n.resolve,n.reject).finally(Tt)}catch(e){n.reject(e),Tt()}var r=j;if(s){if(t.f&32768)var l=Et();if(i.b.is_rendered())c.get(r)?.reject(he),c.delete(r);else{for(let e of c.values())e.reject(he);c.clear()}c.set(r,n)}let u=(e,n=void 0)=>{if(l&&l(n===he),!(n===he||t.f&16384)){if(r.activate(),n)o.f|=de,Wt(o,n);else{o.f&8388608&&(o.f^=de),Wt(o,e);for(let[e,t]of c){if(c.delete(e),e===r)break;t.reject(he)}}r.deactivate()}};n.promise.then(u,e=>u(null,e||`unknown`))}),dn(()=>{for(let e of c.values())e.reject(he)}),new Promise(e=>{function t(n){function r(){n===a?e(o):t(a)}n.then(r,r)}t(a)})}function kt(e){let t=Dt(e);return Re||Fn(t),t}function At(e){let t=Dt(e);return t.equals=Le,t}function jt(e){var t=e.effects;if(t!==null){e.effects=null;for(var n=0;n<t.length;n+=1)V(t[n])}}function Mt(e){for(var t=e.parent;t!==null;){if(!(t.f&2))return t.f&16384?null:t;t=t.parent}return null}function Nt(e){var t,n=G;Pn(Mt(e));try{e.f&=~ce,jt(e),t=Wn(e)}finally{Pn(n)}return t}function Pt(e){var t=e.v,n=Nt(e);if(!e.equals(n)&&(e.wv=Vn(),(!j?.is_fork||e.deps===null)&&(e.v=n,j?.capture(e,t,!0),e.deps===null))){k(e,y);return}Mn||(M===null?Ze(e):(un()||j?.is_fork)&&M.set(e,n))}function Ft(e){if(e.effects!==null)for(let t of e.effects)(t.teardown||t.ac)&&(t.teardown?.(),t.ac?.abort(he),t.teardown=g,t.ac=null,Kn(t,0),xn(t))}function It(e){if(e.effects!==null)for(let t of e.effects)t.teardown&&qn(t)}var Lt=new Set,Rt=new Map,zt=!1;function Bt(e,t){return{f:0,v:e,reactions:null,equals:Fe,rv:0,wv:0}}function Vt(e,t){let n=Bt(e,t);return Fn(n),n}function Ht(e,t=!1,n=!0){let r=Bt(e);return t||(r.equals=Le),ze&&n&&O!==null&&O.l!==null&&(O.l.s??=[]).push(r),r}function Ut(e,t,n=!1){return H!==null&&(!U||H.f&131072)&&Ue()&&H.f&4325394&&(K===null||!o.call(K,e))&&De(),Wt(e,n?Jt(t):t,st)}function Wt(e,t,n=null){if(!e.equals(t)){var r=e.v;Mn?Rt.set(e,t):Rt.set(e,r),e.v=t;var i=ut.ensure();if(i.capture(e,r),e.f&2){let t=e;e.f&2048&&Nt(t),M===null&&Ze(t)}e.wv=Vn(),qt(e,b,n),Ue()&&G!==null&&G.f&1024&&!(G.f&96)&&(Y===null?In([e]):Y.push(e)),!i.is_fork&&Lt.size>0&&!zt&&Gt()}return t}function Gt(){zt=!1;for(let e of Lt)e.f&1024&&k(e,x),Hn(e)&&qn(e);Lt.clear()}function Kt(e){Ut(e,e.v+1)}function qt(e,t,n){var r=e.reactions;if(r!==null)for(var i=Ue(),a=r.length,o=0;o<a;o++){var s=r[o],c=s.f;if(!(!i&&s===G)){var l=(c&b)===0;if(l&&k(s,t),c&2){var u=s;M?.delete(u),c&65536||(c&512&&(s.f|=ce),qt(u,x,n))}else if(l){var d=s;c&16&&N!==null&&N.add(d),n===null?gt(d):n.push(d)}}}}function Jt(e){if(typeof e!=`object`||!e||fe in e)return e;let t=m(e);if(t!==f&&t!==p)return e;var r=new Map,a=i(e),o=Vt(0),s=null,c=zn,l=e=>{if(zn===c)return e();var t=H,n=zn;W(null),Bn(c);var r=e();return W(t),Bn(n),r};return a&&r.set(`length`,Vt(e.length,s)),new Proxy(e,{defineProperty(e,t,n){(!(`value`in n)||n.configurable===!1||n.enumerable===!1||n.writable===!1)&&Te();var i=r.get(t);return i===void 0?l(()=>{var e=Vt(n.value,s);return r.set(t,e),e}):Ut(i,n.value,!0),!0},deleteProperty(e,t){var i=r.get(t);if(i===void 0){if(t in e){let e=l(()=>Vt(n,s));r.set(t,e),Kt(o)}}else Ut(i,n),Kt(o);return!0},get(t,i,a){if(i===fe)return e;var o=r.get(i),c=i in t;if(o===void 0&&(!c||u(t,i)?.writable)&&(o=l(()=>Vt(Jt(c?t[i]:n),s)),r.set(i,o)),o!==void 0){var d=X(o);return d===n?void 0:d}return Reflect.get(t,i,a)},getOwnPropertyDescriptor(e,t){var i=Reflect.getOwnPropertyDescriptor(e,t);if(i&&`value`in i){var a=r.get(t);a&&(i.value=X(a))}else if(i===void 0){var o=r.get(t),s=o?.v;if(o!==void 0&&s!==n)return{enumerable:!0,configurable:!0,value:s,writable:!0}}return i},has(e,t){if(t===fe)return!0;var i=r.get(t),a=i!==void 0&&i.v!==n||Reflect.has(e,t);return(i!==void 0||G!==null&&(!a||u(e,t)?.writable))&&(i===void 0&&(i=l(()=>Vt(a?Jt(e[t]):n,s)),r.set(t,i)),X(i)===n)?!1:a},set(e,t,i,c){var d=r.get(t),f=t in e;if(a&&t===`length`)for(var p=i;p<d.v;p+=1){var m=r.get(p+``);m===void 0?p in e&&(m=l(()=>Vt(n,s)),r.set(p+``,m)):Ut(m,n)}if(d===void 0)(!f||u(e,t)?.writable)&&(d=l(()=>Vt(void 0,s)),Ut(d,Jt(i)),r.set(t,d));else{f=d.v!==n;var h=l(()=>Jt(i));Ut(d,h)}var g=Reflect.getOwnPropertyDescriptor(e,t);if(g?.set&&g.set.call(c,i),!f){if(a&&typeof t==`string`){var _=r.get(`length`),v=Number(t);Number.isInteger(v)&&v>=_.v&&Ut(_,v+1)}Kt(o)}return!0},ownKeys(e){X(o);var t=Reflect.ownKeys(e).filter(e=>{var t=r.get(e);return t===void 0||t.v!==n});for(var[i,a]of r)a.v!==n&&!(i in e)&&t.push(i);return t},setPrototypeOf(){Ee()}})}var Yt,Xt,Zt,Qt;function $t(){if(Yt===void 0){Yt=window,Xt=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,n=Text.prototype;Zt=u(t,`firstChild`).get,Qt=u(t,`nextSibling`).get,h(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),h(n)&&(n.__t=void 0)}}function P(e=``){return document.createTextNode(e)}function en(e){return Zt.call(e)}function F(e){return Qt.call(e)}function I(e,t){if(!C)return en(e);var n=en(T);if(n===null)n=T.appendChild(P());else if(t&&n.nodeType!==3){var r=P();return n?.before(r),E(r),r}return t&&on(n),E(n),n}function tn(e,t=!1){if(!C){var n=en(e);return n instanceof Comment&&n.data===``?F(n):n}if(t){if(T?.nodeType!==3){var r=P();return T?.before(r),E(r),r}on(T)}return T}function L(e,t=1,n=!1){let r=C?T:e;for(var i;t--;)i=r,r=F(r);if(!C)return r;if(n){if(r?.nodeType!==3){var a=P();return r===null?i?.after(a):r.before(a),E(a),a}on(r)}return E(r),r}function nn(e){e.textContent=``}function rn(){return!Re||N!==null?!1:(G.f&te)!==0}function an(e,t,n){let r=n?{is:n}:void 0;return document.createElementNS(t??`http://www.w3.org/1999/xhtml`,e,r)}function on(e){if(e.nodeValue.length<65536)return;let t=e.nextSibling;for(;t!==null&&t.nodeType===3;)t.remove(),e.nodeValue+=t.nodeValue,t=e.nextSibling}function sn(e){var t=H,n=G;W(null),Pn(null);try{return e()}finally{W(t),Pn(n)}}function cn(e){G===null&&(H===null&&xe(e),be()),Mn&&ye(e)}function ln(e,t){var n=t.last;n===null?t.last=t.first=e:(n.next=e,e.prev=n,t.last=e)}function R(e,t){var n=G;n!==null&&n.f&8192&&(e|=S);var r={ctx:O,deps:null,nodes:null,f:e|b|512,first:null,fn:t,last:null,next:null,parent:n,b:n&&n.b,prev:null,teardown:null,wv:0,ac:null},i=r;if(e&4)ot===null?ut.ensure().schedule(r):ot.push(r);else if(t!==null){try{qn(r)}catch(e){throw V(r),e}i.deps===null&&i.teardown===null&&i.nodes===null&&i.first===i.last&&!(i.f&524288)&&(i=i.first,e&16&&e&65536&&i!==null&&(i.f|=re))}if(i!==null&&(i.parent=n,n!==null&&ln(i,n),H!==null&&H.f&2&&!(e&64))){var a=H;(a.effects??=[]).push(i)}return r}function un(){return H!==null&&!U}function dn(e){let t=R(8,null);return k(t,y),t.teardown=e,t}function fn(e){cn(`$effect`);var t=G.f;if(!H&&t&32&&!(t&32768)){var n=O;(n.e??=[]).push(e)}else return pn(e)}function pn(e){return R(4|oe,e)}function mn(e){ut.ensure();let t=R(64|ae,e);return()=>{V(t)}}function hn(e){ut.ensure();let t=R(64|ae,e);return(e={})=>new Promise(n=>{e.outro?Tn(t,()=>{V(t),n(void 0)}):(V(t),n(void 0))})}function gn(e){return R(4,e)}function _n(e){return R(ue|ae,e)}function vn(e,t=0){return R(8|t,e)}function z(e,t=[],n=[],r=[]){Ct(r,t,n,t=>{R(8,()=>e(...t.map(X)))})}function yn(e,t=0){return R(16|t,e)}function B(e){return R(32|ae,e)}function bn(e){var t=e.teardown;if(t!==null){let e=Mn,n=H;Nn(!0),W(null);try{t.call(null)}finally{Nn(e),W(n)}}}function xn(e,t=!1){var n=e.first;for(e.first=e.last=null;n!==null;){let e=n.ac;e!==null&&sn(()=>{e.abort(he)});var r=n.next;n.f&64?n.parent=null:V(n,t),n=r}}function Sn(e){for(var t=e.first;t!==null;){var n=t.next;t.f&32||V(t),t=n}}function V(e,t=!0){var n=!1;(t||e.f&262144)&&e.nodes!==null&&e.nodes.end!==null&&(Cn(e.nodes.start,e.nodes.end),n=!0),k(e,ne),xn(e,t&&!n),Kn(e,0);var r=e.nodes&&e.nodes.t;if(r!==null)for(let e of r)e.stop();bn(e),e.f^=ne,e.f|=ee;var i=e.parent;i!==null&&i.first!==null&&wn(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes=e.ac=e.b=null}function Cn(e,t){for(;e!==null;){var n=e===t?null:F(e);e.remove(),e=n}}function wn(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 Tn(e,t,n=!0){var r=[];En(e,r,!0);var i=()=>{n&&V(e),t&&t()},a=r.length;if(a>0){var o=()=>--a||i();for(var s of r)s.out(o)}else i()}function En(e,t,n){if(!(e.f&8192)){e.f^=S;var r=e.nodes&&e.nodes.t;if(r!==null)for(let e of r)(e.is_global||n)&&t.push(e);for(var i=e.first;i!==null;){var a=i.next,o=(i.f&65536)!=0||(i.f&32)!=0&&(e.f&16)!=0;En(i,t,o?n:!1),i=a}}}function Dn(e){On(e,!0)}function On(e,t){if(e.f&8192){e.f^=S,e.f&1024||(k(e,b),ut.ensure().schedule(e));for(var n=e.first;n!==null;){var r=n.next,i=(n.f&65536)!=0||(n.f&32)!=0;On(n,i?t:!1),n=r}var a=e.nodes&&e.nodes.t;if(a!==null)for(let e of a)(e.is_global||t)&&e.in()}}function kn(e,t){if(e.nodes)for(var n=e.nodes.start,r=e.nodes.end;n!==null;){var i=n===r?null:F(n);t.append(n),n=i}}var An=null,jn=!1,Mn=!1;function Nn(e){Mn=e}var H=null,U=!1;function W(e){H=e}var G=null;function Pn(e){G=e}var K=null;function Fn(e){H!==null&&(!Re||H.f&2)&&(K===null?K=[e]:K.push(e))}var q=null,J=0,Y=null;function In(e){Y=e}var Ln=1,Rn=0,zn=Rn;function Bn(e){zn=e}function Vn(){return++Ln}function Hn(e){var t=e.f;if(t&2048)return!0;if(t&2&&(e.f&=~ce),t&4096){for(var n=e.deps,r=n.length,i=0;i<r;i++){var a=n[i];if(Hn(a)&&Pt(a),a.wv>e.wv)return!0}t&512&&M===null&&k(e,y)}return!1}function Un(e,t,n=!0){var r=e.reactions;if(r!==null&&!(!Re&&K!==null&&o.call(K,e)))for(var i=0;i<r.length;i++){var a=r[i];a.f&2?Un(a,t,!1):t===a&&(n?k(a,b):a.f&1024&&k(a,x),gt(a))}}function Wn(e){var t=q,n=J,r=Y,i=H,a=K,o=O,s=U,c=zn,l=e.f;q=null,J=0,Y=null,H=l&96?null:e,K=null,Be(e.ctx),U=!1,zn=++Rn,e.ac!==null&&(sn(()=>{e.ac.abort(he)}),e.ac=null);try{e.f|=le;var u=e.fn,d=u();e.f|=te;var f=e.deps,p=j?.is_fork;if(q!==null){var m;if(p||Kn(e,J),f!==null&&J>0)for(f.length=J+q.length,m=0;m<q.length;m++)f[J+m]=q[m];else e.deps=f=q;if(un()&&e.f&512)for(m=J;m<f.length;m++)(f[m].reactions??=[]).push(e)}else !p&&f!==null&&J<f.length&&(Kn(e,J),f.length=J);if(Ue()&&Y!==null&&!U&&f!==null&&!(e.f&6146))for(m=0;m<Y.length;m++)Un(Y[m],e);if(i!==null&&i!==e){if(Rn++,i.deps!==null)for(let e=0;e<n;e+=1)i.deps[e].rv=Rn;if(t!==null)for(let e of t)e.rv=Rn;Y!==null&&(r===null?r=Y:r.push(...Y))}return e.f&8388608&&(e.f^=de),d}catch(e){return Je(e)}finally{e.f^=le,q=t,J=n,Y=r,H=i,K=a,Be(o),U=s,zn=c}}function Gn(e,t){let n=t.reactions;if(n!==null){var r=a.call(n,e);if(r!==-1){var i=n.length-1;i===0?n=t.reactions=null:(n[r]=n[i],n.pop())}}if(n===null&&t.f&2&&(q===null||!o.call(q,t))){var s=t;s.f&512&&(s.f^=512,s.f&=~ce),Ze(s),Ft(s),Kn(s,0)}}function Kn(e,t){var n=e.deps;if(n!==null)for(var r=t;r<n.length;r++)Gn(e,n[r])}function qn(e){var t=e.f;if(!(t&16384)){k(e,y);var n=G,r=jn;G=e,jn=!0;try{t&16777232?Sn(e):xn(e),bn(e);var i=Wn(e);e.teardown=typeof i==`function`?i:null,e.wv=Ln}finally{jn=r,G=n}}}function X(e){var t=(e.f&2)!=0;if(An?.add(e),H!==null&&!U&&!(G!==null&&G.f&16384)&&(K===null||!o.call(K,e))){var n=H.deps;if(H.f&2097152)e.rv<Rn&&(e.rv=Rn,q===null&&n!==null&&n[J]===e?J++:q===null?q=[e]:q.push(e));else{(H.deps??=[]).push(e);var r=e.reactions;r===null?e.reactions=[H]:o.call(r,H)||r.push(H)}}if(Mn&&Rt.has(e))return Rt.get(e);if(t){var i=e;if(Mn){var a=i.v;return(!(i.f&1024)&&i.reactions!==null||Yn(i))&&(a=Nt(i)),Rt.set(i,a),a}var s=(i.f&512)==0&&!U&&H!==null&&(jn||(H.f&512)!=0),c=(i.f&te)===0;Hn(i)&&(s&&(i.f|=512),Pt(i)),s&&!c&&(It(i),Jn(i))}if(M?.has(e))return M.get(e);if(e.f&8388608)throw e.v;return e.v}function Jn(e){if(e.f|=512,e.deps!==null)for(let t of e.deps)(t.reactions??=[]).push(e),t.f&2&&!(t.f&512)&&(It(t),Jn(t))}function Yn(e){if(e.v===n)return!0;if(e.deps===null)return!1;for(let t of e.deps)if(Rt.has(t)||t.f&2&&Yn(t))return!0;return!1}function Xn(e){var t=U;try{return U=!0,e()}finally{U=t}}var Zn=Symbol(`events`),Qn=new Set,$n=new Set;function er(e,t,n){(t[Zn]??={})[e]=n}function tr(e){for(var t=0;t<e.length;t++)Qn.add(e[t]);for(var n of $n)n(e)}var nr=null;function rr(e){var t=this,n=t.ownerDocument,r=e.type,i=e.composedPath?.()||[],a=i[0]||e.target;nr=e;var o=0,s=nr===e&&e[Zn];if(s){var c=i.indexOf(s);if(c!==-1&&(t===document||t===window)){e[Zn]=t;return}var u=i.indexOf(t);if(u===-1)return;c<=u&&(o=c)}if(a=i[o]||e.target,a!==t){l(e,`currentTarget`,{configurable:!0,get(){return a||n}});var d=H,f=G;W(null),Pn(null);try{for(var p,m=[];a!==null;){var h=a.assignedSlot||a.parentNode||a.host||null;try{var g=a[Zn]?.[r];g!=null&&(!a.disabled||e.target===a)&&g.call(a,e)}catch(e){p?m.push(e):p=e}if(e.cancelBubble||h===t||h===null)break;a=h}if(p){for(let e of m)queueMicrotask(()=>{throw e});throw p}}finally{e[Zn]=t,delete e.currentTarget,W(d),Pn(f)}}}var ir=globalThis?.window?.trustedTypes&&globalThis.window.trustedTypes.createPolicy(`svelte-trusted-html`,{createHTML:e=>e});function ar(e){return ir?.createHTML(e)??e}function or(e){var t=an(`template`);return t.innerHTML=ar(e.replaceAll(`<!>`,`<!---->`)),t.content}function sr(e,t){var n=G;n.nodes===null&&(n.nodes={start:e,end:t,a:null,t:null})}function Z(e,t){var n=(t&1)!=0,r=(t&2)!=0,i,a=!e.startsWith(`<!>`);return()=>{if(C)return sr(T,null),T;i===void 0&&(i=or(a?e:`<!>`+e),n||(i=en(i)));var t=r||Xt?document.importNode(i,!0):i.cloneNode(!0);if(n){var o=en(t),s=t.lastChild;sr(o,s)}else sr(t,t);return t}}function cr(){if(C)return sr(T,null),T;var e=document.createDocumentFragment(),t=document.createComment(``),n=P();return e.append(t,n),sr(t,n),e}function Q(e,t){if(C){var n=G;(!(n.f&32768)||n.nodes.end===null)&&(n.nodes.end=T),je();return}e!==null&&e.before(t)}[...`allowfullscreen.async.autofocus.autoplay.checked.controls.default.disabled.formnovalidate.indeterminate.inert.ismap.loop.multiple.muted.nomodule.novalidate.open.playsinline.readonly.required.reversed.seamless.selected.webkitdirectory.defer.disablepictureinpicture.disableremoteplayback`.split(`.`)];var lr=[`touchstart`,`touchmove`];function ur(e){return lr.includes(e)}function dr(e,t){var n=t==null?``:typeof t==`object`?`${t}`:t;n!==(e.__t??=e.nodeValue)&&(e.__t=n,e.nodeValue=`${n}`)}function fr(e,t){return hr(e,t)}function pr(e,n){$t(),n.intro=n.intro??!1;let r=n.target,i=C,a=T;try{for(var o=en(r);o&&(o.nodeType!==8||o.data!==`[`);)o=F(o);if(!o)throw t;w(!0),E(o);let i=hr(e,{...n,anchor:o});return w(!1),i}catch(i){if(i instanceof Error&&i.message.split(`
2
+ `).some(e=>e.startsWith(`https://svelte.dev/e/`)))throw i;return i!==t&&console.warn(`Failed to hydrate: `,i),n.recover===!1&&Ce(),$t(),nn(r),w(!1),fr(e,n)}finally{w(i),E(a)}}var mr=new Map;function hr(e,{target:n,anchor:r,props:i={},events:a,context:o,intro:c=!0,transformError:l}){$t();var u=void 0,d=hn(()=>{var c=r??n.appendChild(P());xt(c,{pending:()=>{}},n=>{Ve({});var r=O;if(o&&(r.c=o),a&&(i.$$events=a),C&&sr(n,null),u=e(n,i)||{},C&&(G.nodes.end=T,T===null||T.nodeType!==8||T.data!==`]`))throw ke(),t;He()},l);var d=new Set,f=e=>{for(var t=0;t<e.length;t++){var r=e[t];if(!d.has(r)){d.add(r);var i=ur(r);for(let e of[n,document]){var a=mr.get(e);a===void 0&&(a=new Map,mr.set(e,a));var o=a.get(r);o===void 0?(e.addEventListener(r,rr,{passive:i}),a.set(r,1)):a.set(r,o+1)}}}};return f(s(Qn)),$n.add(f),()=>{for(var e of d)for(let r of[n,document]){var t=mr.get(r),i=t.get(e);--i==0?(r.removeEventListener(e,rr),t.delete(e),t.size===0&&mr.delete(r)):t.set(e,i)}$n.delete(f),c!==r&&c.parentNode?.removeChild(c)}});return gr.set(u,d),u}var gr=new WeakMap;function _r(e,t){let n=gr.get(e);return n?(gr.delete(e),n(t)):Promise.resolve()}var vr=class{anchor;#e=new Map;#t=new Map;#n=new Map;#r=new Set;#i=!0;constructor(e,t=!0){this.anchor=e,this.#i=t}#a=e=>{if(this.#e.has(e)){var t=this.#e.get(e),n=this.#t.get(t);if(n)Dn(n),this.#r.delete(t);else{var r=this.#n.get(t);r&&(this.#t.set(t,r.effect),this.#n.delete(t),r.fragment.lastChild.remove(),this.anchor.before(r.fragment),n=r.effect)}for(let[t,n]of this.#e){if(this.#e.delete(t),t===e)break;let r=this.#n.get(n);r&&(V(r.effect),this.#n.delete(n))}for(let[e,r]of this.#t){if(e===t||this.#r.has(e))continue;let i=()=>{if(Array.from(this.#e.values()).includes(e)){var t=document.createDocumentFragment();kn(r,t),t.append(P()),this.#n.set(e,{effect:r,fragment:t})}else V(r);this.#r.delete(e),this.#t.delete(e)};this.#i||!n?(this.#r.add(e),Tn(r,i,!1)):i()}}};#o=e=>{this.#e.delete(e);let t=Array.from(this.#e.values());for(let[e,n]of this.#n)t.includes(e)||(V(n.effect),this.#n.delete(e))};ensure(e,t){var n=j,r=rn();if(t&&!this.#t.has(e)&&!this.#n.has(e))if(r){var i=document.createDocumentFragment(),a=P();i.append(a),this.#n.set(e,{effect:B(()=>t(a)),fragment:i})}else this.#t.set(e,B(()=>t(this.anchor)));if(this.#e.set(n,e),r){for(let[t,r]of this.#t)t===e?n.unskip_effect(r):n.skip_effect(r);for(let[t,r]of this.#n)t===e?n.unskip_effect(r.effect):n.skip_effect(r.effect);n.oncommit(this.#a),n.ondiscard(this.#o)}else C&&(this.anchor=T),this.#a(n)}};function $(e,t,n=!1){var r;C&&(r=T,je());var i=new vr(e),a=n?re:0;function o(e,t){if(C){var n=Pe(r);if(e!==parseInt(n.substring(1))){var a=Ne();E(a),i.anchor=a,w(!1),i.ensure(e,t),w(!0);return}}i.ensure(e,t)}yn(()=>{var e=!1;t((t,n=0)=>{e=!0,o(n,t)}),e||o(-1,null)},a)}function yr(e,t){return t}function br(e,t,n){for(var r=[],i=t.length,a,o=t.length,c=0;c<i;c++){let n=t[c];Tn(n,()=>{if(a){if(a.pending.delete(n),a.done.add(n),a.pending.size===0){var t=e.outrogroups;xr(e,s(a.done)),t.delete(a),t.size===0&&(e.outrogroups=null)}}else --o},!1)}if(o===0){var l=r.length===0&&n!==null;if(l){var u=n,d=u.parentNode;nn(d),d.append(u),e.items.clear()}xr(e,t,!l)}else a={pending:new Set(t),done:new Set},(e.outrogroups??=new Set).add(a)}function xr(e,t,n=!0){var r;if(e.pending.size>0){r=new Set;for(let t of e.pending.values())for(let n of t)r.add(e.items.get(n).e)}for(var i=0;i<t.length;i++){var a=t[i];r?.has(a)?(a.f|=se,kn(a,document.createDocumentFragment())):V(t[i],n)}}var Sr;function Cr(e,t,n,r,a,o=null){var c=e,l=new Map;if(t&4){var u=e;c=C?E(en(u)):u.appendChild(P())}C&&je();var d=null,f=At(()=>{var e=n();return i(e)?e:e==null?[]:s(e)}),p,m=new Map,h=!0;function g(e){v.effect.f&16384||(v.pending.delete(e),v.fallback=d,Tr(v,p,c,t,r),d!==null&&(p.length===0?d.f&33554432?(d.f^=se,Dr(d,null,c)):Dn(d):Tn(d,()=>{d=null})))}function _(e){v.pending.delete(e)}var v={effect:yn(()=>{p=X(f);var e=p.length;let i=!1;C&&Pe(c)===`[!`!=(e===0)&&(c=Ne(),E(c),w(!1),i=!0);for(var s=new Set,u=j,v=rn(),y=0;y<e;y+=1){C&&T.nodeType===8&&T.data===`]`&&(c=T,i=!0,w(!1));var b=p[y],x=r(b,y),S=h?null:l.get(x);S?(S.v&&Wt(S.v,b),S.i&&Wt(S.i,y),v&&u.unskip_effect(S.e)):(S=Er(l,h?c:Sr??=P(),b,x,y,a,t,n),h||(S.e.f|=se),l.set(x,S)),s.add(x)}if(e===0&&o&&!d&&(h?d=B(()=>o(c)):(d=B(()=>o(Sr??=P())),d.f|=se)),e>s.size&&ve(``,``,``),C&&e>0&&E(Ne()),!h)if(m.set(u,s),v){for(let[e,t]of l)s.has(e)||u.skip_effect(t.e);u.oncommit(g),u.ondiscard(_)}else g(u);i&&w(!0),X(f)}),flags:t,items:l,pending:m,outrogroups:null,fallback:d};h=!1,C&&(c=T)}function wr(e){for(;e!==null&&!(e.f&32);)e=e.next;return e}function Tr(e,t,n,r,i){var a=(r&8)!=0,o=t.length,c=e.items,l=wr(e.effect.first),u,d=null,f,p=[],m=[],h,g,_,v;if(a)for(v=0;v<o;v+=1)h=t[v],g=i(h,v),_=c.get(g).e,_.f&33554432||(_.nodes?.a?.measure(),(f??=new Set).add(_));for(v=0;v<o;v+=1){if(h=t[v],g=i(h,v),_=c.get(g).e,e.outrogroups!==null)for(let t of e.outrogroups)t.pending.delete(_),t.done.delete(_);if(_.f&8192&&(Dn(_),a&&(_.nodes?.a?.unfix(),(f??=new Set).delete(_))),_.f&33554432)if(_.f^=se,_===l)Dr(_,null,n);else{var y=d?d.next:l;_===e.effect.last&&(e.effect.last=_.prev),_.prev&&(_.prev.next=_.next),_.next&&(_.next.prev=_.prev),Or(e,d,_),Or(e,_,y),Dr(_,y,n),d=_,p=[],m=[],l=wr(d.next);continue}if(_!==l){if(u!==void 0&&u.has(_)){if(p.length<m.length){var b=m[0],x;d=b.prev;var S=p[0],ee=p[p.length-1];for(x=0;x<p.length;x+=1)Dr(p[x],b,n);for(x=0;x<m.length;x+=1)u.delete(m[x]);Or(e,S.prev,ee.next),Or(e,d,S),Or(e,ee,b),l=b,d=ee,--v,p=[],m=[]}else u.delete(_),Dr(_,l,n),Or(e,_.prev,_.next),Or(e,_,d===null?e.effect.first:d.next),Or(e,d,_),d=_;continue}for(p=[],m=[];l!==null&&l!==_;)(u??=new Set).add(l),m.push(l),l=wr(l.next);if(l===null)continue}_.f&33554432||p.push(_),d=_,l=wr(_.next)}if(e.outrogroups!==null){for(let t of e.outrogroups)t.pending.size===0&&(xr(e,s(t.done)),e.outrogroups?.delete(t));e.outrogroups.size===0&&(e.outrogroups=null)}if(l!==null||u!==void 0){var te=[];if(u!==void 0)for(_ of u)_.f&8192||te.push(_);for(;l!==null;)!(l.f&8192)&&l!==e.fallback&&te.push(l),l=wr(l.next);var ne=te.length;if(ne>0){var re=r&4&&o===0?n:null;if(a){for(v=0;v<ne;v+=1)te[v].nodes?.a?.measure();for(v=0;v<ne;v+=1)te[v].nodes?.a?.fix()}br(e,te,re)}}a&&Ke(()=>{if(f!==void 0)for(_ of f)_.nodes?.a?.apply()})}function Er(e,t,n,r,i,a,o,s){var c=o&1?o&16?Bt(n):Ht(n,!1,!1):null,l=o&2?Bt(i):null;return{v:c,i:l,e:B(()=>(a(t,c??n,l??i,s),()=>{e.delete(r)}))}}function Dr(e,t,n){if(e.nodes)for(var r=e.nodes.start,i=e.nodes.end,a=t&&!(t.f&33554432)?t.nodes.start:n;r!==null;){var o=F(r);if(a.before(r),r===i)return;r=o}}function Or(e,t,n){t===null?e.effect.first=n:t.next=n,n===null?e.effect.last=t:n.prev=t}function kr(e,t){let n=null,r=C;var i;if(C){n=T;for(var a=en(document.head);a!==null&&(a.nodeType!==8||a.data!==e);)a=F(a);if(a===null)w(!1);else{var o=F(a);a.remove(),E(o)}}C||(i=document.head.appendChild(P()));try{yn(()=>t(i),ie|ae)}finally{r&&(w(!0),E(n))}}function Ar(e,t){gn(()=>{var n=e.getRootNode(),r=n.host?n:n.head??n.ownerDocument.head;if(!r.querySelector(`#`+t.hash)){let e=an(`style`);e.id=t.hash,e.textContent=t.code,r.appendChild(e)}})}var jr=[...`
3
+ \r\f\xA0\v`];function Mr(e,t,n){var r=e==null?``:``+e;if(t&&(r=r?r+` `+t:t),n){for(var i of Object.keys(n))if(n[i])r=r?r+` `+i:i;else if(r.length)for(var a=i.length,o=0;(o=r.indexOf(i,o))>=0;){var s=o+a;(o===0||jr.includes(r[o-1]))&&(s===r.length||jr.includes(r[s]))?r=(o===0?``:r.substring(0,o))+r.substring(s+1):o=s}}return r===``?null:r}function Nr(e,t,n,r,i,a){var o=e.__className;if(C||o!==n||o===void 0){var s=Mr(n,r,a);(!C||s!==e.getAttribute(`class`))&&(s==null?e.removeAttribute(`class`):t?e.className=s:e.setAttribute(`class`,s)),e.__className=n}else if(a&&i!==a)for(var c in a){var l=!!a[c];(i==null||l!==!!i[c])&&e.classList.toggle(c,l)}return a}var Pr=Symbol(`is custom element`),Fr=Symbol(`is html`),Ir=ge?`link`:`LINK`;function Lr(e,t,n,r){var i=Rr(e);C&&(i[t]=e.getAttribute(t),t===`src`||t===`srcset`||t===`href`&&e.nodeName===Ir)||i[t]!==(i[t]=n)&&(t===`loading`&&(e[me]=n),n==null?e.removeAttribute(t):typeof n!=`string`&&Br(e).includes(t)?e[t]=n:e.setAttribute(t,n))}function Rr(e){return e.__attributes??={[Pr]:e.nodeName.includes(`-`),[Fr]:e.namespaceURI===r}}var zr=new Map;function Br(e){var t=e.getAttribute(`is`)||e.nodeName,n=zr.get(t);if(n)return n;zr.set(t,n=[]);for(var r,i=e,a=Element.prototype;a!==i;){for(var o in r=d(i),r)r[o].set&&n.push(o);i=m(i)}return n}function Vr(e,t,n,r){var i=!ze||(n&2)!=0,a=(n&8)!=0,o=(n&16)!=0,s=r,c=!0,l=()=>(c&&(c=!1,s=o?Xn(r):r),s);let d;if(a){var f=fe in e||pe in e;d=u(e,t)?.set??(f&&t in e?n=>e[t]=n:void 0)}var p,m=!1;a?[p,m]=nt(()=>e[t]):p=e[t],p===void 0&&r!==void 0&&(p=l(),d&&(i&&we(t),d(p)));var h=i?()=>{var n=e[t];return n===void 0?l():(c=!0,n)}:()=>{var n=e[t];return n!==void 0&&(s=void 0),n===void 0?s:n};if(i&&!(n&4))return h;if(d){var g=e.$$legacy;return(function(e,t){return arguments.length>0?((!i||!t||g||m)&&d(t?h():e),e):h()})}var _=!1,v=(n&1?Dt:At)(()=>(_=!1,h()));a&&X(v);var y=G;return(function(e,t){if(arguments.length>0){let n=t?X(v):i&&a?Jt(e):e;return Ut(v,n),_=!0,s!==void 0&&(s=n),e}return Mn&&_||y.f&16384?v.v:X(v)})}function Hr(e){return new Ur(e)}var Ur=class{#e;#t;constructor(e){var t=new Map,n=(e,n)=>{var r=Ht(n,!1,!1);return t.set(e,r),r};let r=new Proxy({...e.props||{},$$events:{}},{get(e,r){return X(t.get(r)??n(r,Reflect.get(e,r)))},has(e,r){return r===pe?!0:(X(t.get(r)??n(r,Reflect.get(e,r))),Reflect.has(e,r))},set(e,r,i){return Ut(t.get(r)??n(r,i),i),Reflect.set(e,r,i)}});this.#t=(e.hydrate?pr:fr)(e.component,{target:e.target,anchor:e.anchor,props:r,context:e.context,intro:e.intro??!1,recover:e.recover,transformError:e.transformError}),!Re&&(!e?.props?.$$host||e.sync===!1)&&dt(),this.#e=r.$$events;for(let e of Object.keys(this.#t))e===`$set`||e===`$destroy`||e===`$on`||l(this,e,{get(){return this.#t[e]},set(t){this.#t[e]=t},enumerable:!0});this.#t.$set=e=>{Object.assign(r,e)},this.#t.$destroy=()=>{_r(this.#t)}}$set(e){this.#t.$set(e)}$on(e,t){this.#e[e]=this.#e[e]||[];let n=(...e)=>t.call(this,...e);return this.#e[e].push(n),()=>{this.#e[e]=this.#e[e].filter(e=>e!==n)}}$destroy(){this.#t.$destroy()}},Wr;typeof HTMLElement==`function`&&(Wr=class extends HTMLElement{$$ctor;$$s;$$c;$$cn=!1;$$d={};$$r=!1;$$p_d={};$$l={};$$l_u=new Map;$$me;$$shadowRoot=null;constructor(e,t,n){super(),this.$$ctor=e,this.$$s=t,n&&(this.$$shadowRoot=this.attachShadow(n))}addEventListener(e,t,n){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(t),this.$$c){let n=this.$$c.$on(e,t);this.$$l_u.set(t,n)}super.addEventListener(e,t,n)}removeEventListener(e,t,n){if(super.removeEventListener(e,t,n),this.$$c){let e=this.$$l_u.get(t);e&&(e(),this.$$l_u.delete(t))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){if(await Promise.resolve(),!this.$$cn||this.$$c)return;function e(e){return t=>{let n=an(`slot`);e!==`default`&&(n.name=e),Q(t,n)}}let t={},n=Kr(this);for(let 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(let e of this.attributes){let t=this.$$g_p(e.name);t in this.$$d||(this.$$d[t]=Gr(t,e.value,this.$$p_d,`toProp`))}for(let e in this.$$p_d)!(e in this.$$d)&&this[e]!==void 0&&(this.$$d[e]=this[e],delete this[e]);this.$$c=Hr({component:this.$$ctor,target:this.$$shadowRoot||this,props:{...this.$$d,$$slots:t,$$host:this}}),this.$$me=mn(()=>{vn(()=>{this.$$r=!0;for(let e of c(this.$$c)){if(!this.$$p_d[e]?.reflect)continue;this.$$d[e]=this.$$c[e];let t=Gr(e,this.$$d[e],this.$$p_d,`toAttribute`);t==null?this.removeAttribute(this.$$p_d[e].attribute||e):this.setAttribute(this.$$p_d[e].attribute||e,t)}this.$$r=!1})});for(let e in this.$$l)for(let t of this.$$l[e]){let n=this.$$c.$on(e,t);this.$$l_u.set(t,n)}this.$$l={}}}attributeChangedCallback(e,t,n){this.$$r||(e=this.$$g_p(e),this.$$d[e]=Gr(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 c(this.$$p_d).find(t=>this.$$p_d[t].attribute===e||!this.$$p_d[t].attribute&&t.toLowerCase()===e)||e}});function Gr(e,t,n,r){let i=n[e]?.type;if(t=i===`Boolean`&&typeof t!=`boolean`?t!=null:t,!r||!n[e])return t;if(r===`toAttribute`)switch(i){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(i){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){let t={};return e.childNodes.forEach(e=>{t[e.slot||`default`]=!0}),t}function qr(e,t,n,r,i,a){let o=class extends Wr{constructor(){super(e,n,i),this.$$p_d=t}static get observedAttributes(){return c(t).map(e=>(t[e].attribute||e).toLowerCase())}};return c(t).forEach(e=>{l(o.prototype,e,{get(){return this.$$c&&e in this.$$c?this.$$c[e]:this.$$d[e]},set(n){n=Gr(e,n,t),this.$$d[e]=n;var r=this.$$c;r&&(u(r,e)?.get?r[e]=n:r.$set({[e]:n}))}})}),r.forEach(e=>{l(o.prototype,e,{get(){return this.$$c?.[e]}})}),a&&(o=a(o)),e.element=o,o}var Jr=Z(`<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@latest/font/bootstrap-icons.css" class="svelte-1d5xrrt"/>`),Yr=Z(`<div class="author-name-spacer me-2 svelte-1d5xrrt"></div>`),Xr=Z(`<div class="author-name-spacer ms-2 svelte-1d5xrrt"></div>`),Zr=Z(`<div><!> <div class="author-name-content flex-grow-1 svelte-1d5xrrt"><span> </span></div> <!></div>`),Qr=Z(`<span class="badge bg-primary position-absolute top-0 end-0 translate-middle rounded-pill svelte-1d5xrrt">AI</span>`),$r=Z(`<div class="avatar-container position-relative svelte-1d5xrrt"><img class="rounded-circle svelte-1d5xrrt" width="40" height="40"/> <!></div>`),ei=Z(`<div class="avatar-spacer svelte-1d5xrrt"></div>`),ti=Z(`<div class="message-avatar me-2 svelte-1d5xrrt"><!></div>`),ni=Z(`<div class="code-header d-flex justify-content-between align-items-center mb-2 svelte-1d5xrrt"><span class="badge bg-secondary svelte-1d5xrrt"> </span></div>`),ri=Z(`<div class="code-block svelte-1d5xrrt"><!> <pre class="bg-dark text-light p-3 rounded-2 mb-0 svelte-1d5xrrt"><code class="svelte-1d5xrrt"> </code></pre></div>`),ii=Z(`<div class="message-text svelte-1d5xrrt"> </div>`),ai=Z(`<div><div part="message-body" class="message-body svelte-1d5xrrt"><!></div></div>`),oi=Z(`<div class="code-header d-flex justify-content-between align-items-center mb-2 svelte-1d5xrrt"><span class="badge bg-secondary svelte-1d5xrrt"> </span></div>`),si=Z(`<div class="code-block svelte-1d5xrrt"><!> <pre class="bg-dark text-light p-3 rounded-2 mb-0 svelte-1d5xrrt"><code class="svelte-1d5xrrt"> </code></pre></div>`),ci=Z(`<div class="message-text svelte-1d5xrrt"> </div>`),li=Z(`<div part="message" class="message-bubble bg-secondary-subtle border rounded-3 p-3 shadow-sm svelte-1d5xrrt"><div part="message-body" class="message-body svelte-1d5xrrt"><!></div></div>`),ui=Z(`<button class="btn btn-sm btn-outline-secondary rounded-circle p-1 svelte-1d5xrrt"><i></i></button>`),di=Z(`<div part="message-timestamp" class="message-timestamp ms-2 svelte-1d5xrrt"> </div>`),fi=Z(`<div><!> <!></div>`),pi=Z(`<div><div part="message-timestamp" class="message-timestamp svelte-1d5xrrt"> </div></div>`),mi=Z(`<img alt="You" class="rounded-circle svelte-1d5xrrt" width="40" height="40"/>`),hi=Z(`<div class="avatar-spacer svelte-1d5xrrt"></div>`),gi=Z(`<div class="message-avatar ms-2 svelte-1d5xrrt"><!></div>`),_i=Z(`<!> <div><!> <div class="message-content position-relative svelte-1d5xrrt"><!> <!></div> <!></div>`,1),vi={hash:`svelte-1d5xrrt`,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
4
  @import url("https://cdn.jsdelivr.net/npm/bootstrap-icons@latest/font/bootstrap-icons.css");
4
5
  /*!
5
6
  * Bootstrap v5.1.2 (https://getbootstrap.com/)
@@ -179,5 +180,5 @@ button.svelte-1d5xrrt {margin:0;font-family:inherit;font-size:inherit;line-heigh
179
180
  @media print {.d-print-inline.svelte-1d5xrrt {display:inline !important;}.d-print-inline-block.svelte-1d5xrrt {display:inline-block !important;}.d-print-block.svelte-1d5xrrt {display:block !important;}.d-print-grid.svelte-1d5xrrt {display:grid !important;}.d-print-inline-grid.svelte-1d5xrrt {display:inline-grid !important;}.d-print-table.svelte-1d5xrrt {display:table !important;}.d-print-table-row.svelte-1d5xrrt {display:table-row !important;}.d-print-table-cell.svelte-1d5xrrt {display:table-cell !important;}.d-print-flex.svelte-1d5xrrt {display:flex !important;}.d-print-inline-flex.svelte-1d5xrrt {display:inline-flex !important;}.d-print-none.svelte-1d5xrrt {display:none !important;}
180
181
  }:host {font-family:"Roboto", sans-serif;width:100%;padding:1rem;max-height:600px;}:host .message-wrapper.svelte-1d5xrrt:hover .message-bubble:where(.svelte-1d5xrrt) {box-shadow:0 4px 12px rgba(0, 0, 0, 0.15);}:host .author-name-wrapper.svelte-1d5xrrt {width:100%;align-items:center;}:host .author-name-wrapper.svelte-1d5xrrt .author-name-spacer:where(.svelte-1d5xrrt) {flex-shrink:0;width:40px;}:host .author-name-wrapper.svelte-1d5xrrt .author-name-content:where(.svelte-1d5xrrt) span:where(.svelte-1d5xrrt) {font-size:1.1rem;line-height:1.2;display:block;padding:0.25rem 0.5rem;border-radius:0.25rem;}:host .author-name-wrapper.d-flex.justify-content-end.svelte-1d5xrrt .author-name-content:where(.svelte-1d5xrrt) {text-align:right;}:host .author-name-wrapper.d-flex.justify-content-start.svelte-1d5xrrt .author-name-content:where(.svelte-1d5xrrt) {text-align:left;}:host .message-bubble.svelte-1d5xrrt {position:relative;word-wrap:break-word;}:host .message-bubble.bg-primary.svelte-1d5xrrt {background:linear-gradient(135deg, #007bff 0%, #0056b3 100%);}:host .message-bubble.bg-light.svelte-1d5xrrt {background-color:#f8f9fa;border:1px solid #dee2e6;}:host .message-bubble.bg-secondary-subtle.svelte-1d5xrrt {background-color:#f8f9fa;border:1px solid #dee2e6;color:inherit;}:host .code-block.svelte-1d5xrrt pre:where(.svelte-1d5xrrt) {background-color:#1e1e1e;border:1px solid #333;font-family:"Monaco", "Menlo", "Ubuntu Mono", monospace;font-size:0.875rem;overflow-x:auto;}:host .code-block.svelte-1d5xrrt pre:where(.svelte-1d5xrrt) code:where(.svelte-1d5xrrt) {color:#d4d4d4;}:host .message-actions.svelte-1d5xrrt button:where(.svelte-1d5xrrt) {backdrop-filter:blur(4px);border:1px solid rgba(255, 255, 255, 0.2);background-color:rgba(255, 255, 255, 0.9);width:24px;height:24px;font-size:10px;}:host .message-actions.svelte-1d5xrrt button:where(.svelte-1d5xrrt):hover {transform:scale(1.1);box-shadow:0 2px 8px rgba(0, 0, 0, 0.15);background-color:rgb(255, 255, 255);}:host .avatar-container.svelte-1d5xrrt .badge:where(.svelte-1d5xrrt) {font-size:8px;padding:2px 4px;line-height:1;}:host .avatar-spacer.svelte-1d5xrrt {width:40px;}:host .message-timestamp.svelte-1d5xrrt {font-size:0.75rem;color:#6c757d;line-height:1;display:flex;align-items:center;white-space:nowrap;}:host .message-timestamp-only.svelte-1d5xrrt .message-timestamp:where(.svelte-1d5xrrt) {font-size:0.75rem;color:#6c757d;line-height:1;display:flex;align-items:center;white-space:nowrap;}
181
182
  @media (max-width: 768px) {:host .message-bubble.svelte-1d5xrrt {max-width:85%;}:host .message-actions.svelte-1d5xrrt {margin-top:0.5rem;}
182
- }`};function Mn(t,r){Me(r,!0),Ko(t,Ci);function e(m,x){r.$$host.dispatchEvent(new CustomEvent(m,{detail:x}))}const n={showTimestamp:!0,showActions:!0,showAvatar:!0,showName:!0,bubbles:!1};let o=hr(r,"id",7,""),i=hr(r,"messages",7),l=hr(r,"authors",7),a=hr(r,"options",7,n),s=hr(r,"actions",23,()=>[]);function d(m=!1){return m?"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNDAiIGhlaWdodD0iNDAiIHZpZXdCb3g9IjAgMCA0MCA0MCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48Y2lyY2xlIGN4PSIyMCIgY3k9IjIwIiByPSIyMCIgZmlsbD0iIzYzNjZGMCIvPjxwYXRoIGQ9Ik0yMCAxMEMxNS41OCAxMCAxMiAxMy41OCAxMiAxOEMxMiAyMi40MiAxNS41OCAyNiAyMCAyNkMyNC40MiAyNiAyOCAyMi40MiAyOCAxOEMyOCAxMy41OCAyNC40MiAxMCAyMCAxMFpNMjAgMjRDMTYuNjkgMjQgMTQgMjEuMzEgMTQgMThDMTQgMTQuNjkgMTYuNjkgMTIgMjAgMTJDMjMuMzEgMTIgMjYgMTQuNjkgMjYgMThDMjYgMjEuMzEgMjMuMzEgMjQgMjAgMjRaIiBmaWxsPSJ3aGl0ZSIvPjxwYXRoIGQ9Ik0xNiAxNkgxNlYxOEgxNlYxNloiIGZpbGw9IndoaXRlIi8+PHBhdGggZD0iTTI0IDE2SDI0VjE4SDI0VjE2WiIgZmlsbD0id2hpdGUiLz48cGF0aCBkPSJNMTggMjBIMjJWMjJIMThWMjBaIiBmaWxsPSJ3aGl0ZSIvPjwvc3ZnPg==":"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNDAiIGhlaWdodD0iNDAiIHZpZXdCb3g9IjAgMCA0MCA0MCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48Y2lyY2xlIGN4PSIyMCIgY3k9IjIwIiByPSIyMCIgZmlsbD0iIzZDNzU3NyIvPjxwYXRoIGQ9Ik0yMCAxMEMxNS41OCAxMCAxMiAxMy41OCAxMiAxOEMxMiAyMi40MiAxNS41OCAyNiAyMCAyNkMyNC40MiAyNiAyOCAyMi40MiAyOCAxOEMyOCAxMy41OCAyNC40MiAxMCAyMCAxMFpNMjAgMjRDMTYuNjkgMjQgMTQgMjEuMzEgMTQgMThDMTQgMTQuNjkgMTYuNjkgMTIgMjAgMTJDMjMuMzEgMTIgMjYgMTQuNjkgMjYgMThDMjYgMjEuMzEgMjMuMzEgMjQgMjAgMjRaIiBmaWxsPSJ3aGl0ZSIvPjxwYXRoIGQ9Ik0xNiAxNkgxNlYxOEgxNlYxNloiIGZpbGw9IndoaXRlIi8+PHBhdGggZD0iTTI0IDE2SDI0VjE4SDI0VjE2WiIgZmlsbD0id2hpdGUiLz48cGF0aCBkPSJNMTggMjBIMjJWMjJIMThWMjBaIiBmaWxsPSJ3aGl0ZSIvPjwvc3ZnPg=="}let p=wo(()=>!i()||!l()?[]:i()?.filter?.(x=>l()?.find?.(c=>c?.id&&x?.authorId&&c.id===x.authorId)?.id)?.map?.((x,c)=>{const u=l()?.find?.(tt=>tt.id===x.authorId),w=new Date(x.timestamp).toDateString()===new Date().toDateString(),C=new Date(x.timestamp),L=C.toLocaleTimeString().split(":")[0]+":"+C.toLocaleTimeString().split(":")[1],J=C.toLocaleString().split(" ")[0]+" "+C.toLocaleTimeString().split(":")[0]+":"+C.toLocaleTimeString().split(":")[1],wt=w?L:J,V=c>0?i()[c-1]:null,W=!!(V&&V.authorId===x.authorId&&new Date(x.timestamp).getTime()-new Date(V.timestamp).getTime()<3e5),Gt=!!(a().showAvatar&&(!W||c===0));return{...x,author:u,dateString:wt,showAvatar:Gt,isConsecutive:W}})||[]);Kr(()=>{if(typeof i()=="string")try{i(JSON.parse(i()))}catch(m){console.error("error parsing messages",m)}if(typeof s()=="string")try{s(JSON.parse(s()))}catch(m){console.error("error parsing actions",m)}}),Kr(()=>{if(typeof a()=="string")try{a(JSON.parse(a())),a({...n,...a()})}catch(m){console.error("error parsing options",m)}}),Kr(()=>{if(typeof l()=="string")try{l(JSON.parse(l()))}catch(m){console.error("error parsing authors",m)}});var g={get id(){return o()},set id(m=""){o(m),ar()},get messages(){return i()},set messages(m){i(m),ar()},get authors(){return l()},set authors(m){l(m),ar()},get options(){return a()},set options(m=n){a(m),ar()},get actions(){return s()},set actions(m=[]){s(m),ar()}},v=Yo();Xo("1d5xrrt",m=>{var x=mi();S(m,x)});var f=Ue(v);return kn(f,17,()=>b(p),m=>m.id,(m,x)=>{var c=Ri(),u=Ue(c);{var w=N=>{var j=vi(),B=E(j);{var rt=nt=>{var U=pi();S(nt,U)};H(B,nt=>{!b(x).author.me&&a().showAvatar&&nt(rt)})}var et=ut(B,2),T=E(et),_=E(T,!0);$(T),$(et);var A=ut(et,2);{var Q=nt=>{var U=xi();S(nt,U)};H(A,nt=>{b(x).author.me&&a().showAvatar&&nt(Q)})}$(j),F(()=>{Wt(j,1,`author-name-wrapper d-flex ${b(x).author.me?"justify-content-end":"justify-content-start"} mb-1 w-100`,"svelte-1d5xrrt"),Wt(T,1,`fw-semibold ${b(x).author.me?"text-secondary":"text-primary"}`,"svelte-1d5xrrt"),$t(_,b(x).author.me?"You":b(x).author.name)}),S(N,j)};H(u,N=>{a().showName&&N(w)})}var C=ut(u,2),L=E(C);{var J=N=>{var j=ci(),B=E(j);{var rt=T=>{var _=bi(),A=E(_),Q=ut(A,2);{var nt=U=>{var Qt=gi();S(U,Qt)};H(Q,U=>{b(x).author.isAI&&U(nt)})}$(_),F(U=>{pr(A,"src",U),pr(A,"alt",b(x).author.name)},[()=>b(x).author.avatar||d(b(x).author.isAI)]),S(T,_)},et=T=>{var _=fi();S(T,_)};H(B,T=>{b(x).showAvatar?T(rt):T(et,-1)})}$(j),S(N,j)};H(L,N=>{!b(x).author.me&&a().showAvatar&&N(J)})}var wt=ut(L,2),V=E(wt);{var W=N=>{var j=wi(),B=E(j),rt=E(B);{var et=_=>{var A=hi(),Q=E(A);{var nt=Ut=>{var qt=ui(),yr=E(qt),de=E(yr,!0);$(yr),$(qt),F(()=>$t(de,b(x).language)),S(Ut,qt)};H(Q,Ut=>{b(x).language&&Ut(nt)})}var U=ut(Q,2),Qt=E(U),se=E(Qt,!0);$(Qt),$(U),$(A),F(()=>$t(se,b(x).text)),S(_,A)},T=_=>{var A=yi(),Q=E(A,!0);$(A),F(()=>$t(Q,b(x).text)),S(_,A)};H(rt,_=>{b(x).type==="code"?_(et):_(T,-1)})}$(B),$(j),F(()=>{pr(j,"part",`message-bubble-${b(x).author.me?"me":"them"}`),Wt(j,1,`message-bubble ${b(x).author.me?"bg-primary text-white":"bg-light border"} rounded-3 p-3 shadow-sm`,"svelte-1d5xrrt")}),S(N,j)},Gt=N=>{var j=Ai(),B=E(j),rt=E(B);{var et=_=>{var A=ki(),Q=E(A);{var nt=Ut=>{var qt=_i(),yr=E(qt),de=E(yr,!0);$(yr),$(qt),F(()=>$t(de,b(x).language)),S(Ut,qt)};H(Q,Ut=>{b(x).language&&Ut(nt)})}var U=ut(Q,2),Qt=E(U),se=E(Qt,!0);$(Qt),$(U),$(A),F(()=>$t(se,b(x).text)),S(_,A)},T=_=>{var A=ji(),Q=E(A,!0);$(A),F(()=>$t(Q,b(x).text)),S(_,A)};H(rt,_=>{b(x).type==="code"?_(et):_(T,-1)})}$(B),$(j),S(N,j)};H(V,N=>{a().bubbles?N(W):N(Gt,-1)})}var tt=ut(V,2);{var ae=N=>{var j=Ei(),B=E(j);kn(B,17,s,Wo,(T,_)=>{var A=Mi(),Q=E(A);$(A),F(()=>{pr(A,"title",b(_).name),pr(A,"aria-label",b(_).name),Wt(Q,1,`bi bi-${b(_).icon??""}`,"svelte-1d5xrrt")}),Oo("click",A,()=>e("action",{messageId:b(x).id,action:b(_).name})),S(T,A)});var rt=ut(B,2);{var et=T=>{var _=$i(),A=E(_,!0);$(_),F(()=>$t(A,b(x).dateString)),S(T,_)};H(rt,T=>{a().showTimestamp&&T(et)})}$(j),F(()=>Wt(j,1,`message-actions d-flex gap-1 ${b(x).author.me?"justify-content-end":"justify-content-start"} mt-2`,"svelte-1d5xrrt")),S(N,j)},le=N=>{var j=Ti(),B=E(j),rt=E(B,!0);$(B),$(j),F(()=>{Wt(j,1,`message-timestamp-only d-flex ${b(x).author.me?"justify-content-end":"justify-content-start"} mt-1`,"svelte-1d5xrrt"),$t(rt,b(x).dateString)}),S(N,j)};H(tt,N=>{s()?.length?N(ae):a().showTimestamp&&N(le,1)})}$(wt);var zi=ut(wt,2);{var Di=N=>{var j=Ni(),B=E(j);{var rt=T=>{var _=Ii();F(A=>pr(_,"src",A),[()=>b(x).author.avatar||d(!1)]),S(T,_)},et=T=>{var _=Si();S(T,_)};H(B,T=>{b(x).showAvatar?T(rt):T(et,-1)})}$(j),S(N,j)};H(zi,N=>{b(x).author.me&&a().showAvatar&&N(Di)})}$(C),F(()=>Wt(C,1,`message-wrapper d-flex ${b(x).author.me?"justify-content-end":"justify-content-start"} mb-3 w-100`,"svelte-1d5xrrt")),S(m,c)}),S(t,v),$e(g)}Bo(["click"]),customElements.define("hb-messages-list",di(Mn,{id:{},messages:{},authors:{},options:{},actions:{}},[],[],{mode:"open"})),me.Component=Mn,Object.defineProperty(me,Symbol.toStringTag,{value:"Module"})})(this["messages-list"]=this["messages-list"]||{});
183
- //# sourceMappingURL=main.iife.js.map
183
+ }`};function yi(e,t){Ve(t,!0),Ar(e,vi);function n(e,n){t.$$host.dispatchEvent(new CustomEvent(e,{detail:n}))}let r={showTimestamp:!0,showActions:!0,showAvatar:!0,showName:!0,bubbles:!1},i=Vr(t,`id`,7,``),a=Vr(t,`messages`,7),o=Vr(t,`authors`,7),s=Vr(t,`options`,7,r),c=Vr(t,`actions`,23,()=>[]);function l(e=!1){return e?`data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNDAiIGhlaWdodD0iNDAiIHZpZXdCb3g9IjAgMCA0MCA0MCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48Y2lyY2xlIGN4PSIyMCIgY3k9IjIwIiByPSIyMCIgZmlsbD0iIzYzNjZGMCIvPjxwYXRoIGQ9Ik0yMCAxMEMxNS41OCAxMCAxMiAxMy41OCAxMiAxOEMxMiAyMi40MiAxNS41OCAyNiAyMCAyNkMyNC40MiAyNiAyOCAyMi40MiAyOCAxOEMyOCAxMy41OCAyNC40MiAxMCAyMCAxMFpNMjAgMjRDMTYuNjkgMjQgMTQgMjEuMzEgMTQgMThDMTQgMTQuNjkgMTYuNjkgMTIgMjAgMTJDMjMuMzEgMTIgMjYgMTQuNjkgMjYgMThDMjYgMjEuMzEgMjMuMzEgMjQgMjAgMjRaIiBmaWxsPSJ3aGl0ZSIvPjxwYXRoIGQ9Ik0xNiAxNkgxNlYxOEgxNlYxNloiIGZpbGw9IndoaXRlIi8+PHBhdGggZD0iTTI0IDE2SDI0VjE4SDI0VjE2WiIgZmlsbD0id2hpdGUiLz48cGF0aCBkPSJNMTggMjBIMjJWMjJIMThWMjBaIiBmaWxsPSJ3aGl0ZSIvPjwvc3ZnPg==`:`data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNDAiIGhlaWdodD0iNDAiIHZpZXdCb3g9IjAgMCA0MCA0MCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48Y2lyY2xlIGN4PSIyMCIgY3k9IjIwIiByPSIyMCIgZmlsbD0iIzZDNzU3NyIvPjxwYXRoIGQ9Ik0yMCAxMEMxNS41OCAxMCAxMiAxMy41OCAxMiAxOEMxMiAyMi40MiAxNS41OCAyNiAyMCAyNkMyNC40MiAyNiAyOCAyMi40MiAyOCAxOEMyOCAxMy41OCAyNC40MiAxMCAyMCAxMFpNMjAgMjRDMTYuNjkgMjQgMTQgMjEuMzEgMTQgMThDMTQgMTQuNjkgMTYuNjkgMTIgMjAgMTJDMjMuMzEgMTIgMjYgMTQuNjkgMjYgMThDMjYgMjEuMzEgMjMuMzEgMjQgMjAgMjRaIiBmaWxsPSJ3aGl0ZSIvPjxwYXRoIGQ9Ik0xNiAxNkgxNlYxOEgxNlYxNloiIGZpbGw9IndoaXRlIi8+PHBhdGggZD0iTTI0IDE2SDI0VjE4SDI0VjE2WiIgZmlsbD0id2hpdGUiLz48cGF0aCBkPSJNMTggMjBIMjJWMjJIMThWMjBaIiBmaWxsPSJ3aGl0ZSIvPjwvc3ZnPg==`}let u=kt(()=>!a()||!o()?[]:a()?.filter?.(e=>o()?.find?.(t=>t?.id&&e?.authorId&&t.id===e.authorId)?.id)?.map?.((e,t)=>{let n=o()?.find?.(t=>t.id===e.authorId),r=new Date(e.timestamp).toDateString()===new Date().toDateString(),i=new Date(e.timestamp),c=i.toLocaleTimeString().split(`:`)[0]+`:`+i.toLocaleTimeString().split(`:`)[1],l=i.toLocaleString().split(` `)[0]+` `+i.toLocaleTimeString().split(`:`)[0]+`:`+i.toLocaleTimeString().split(`:`)[1],u=r?c:l,d=t>0?a()[t-1]:null,f=!!(d&&d.authorId===e.authorId&&new Date(e.timestamp).getTime()-new Date(d.timestamp).getTime()<3e5),p=!!(s().showAvatar&&(!f||t===0));return{...e,author:n,dateString:u,showAvatar:p,isConsecutive:f}})||[]);fn(()=>{if(typeof a()==`string`)try{a(JSON.parse(a()))}catch(e){console.error(`error parsing messages`,e)}if(typeof c()==`string`)try{c(JSON.parse(c()))}catch(e){console.error(`error parsing actions`,e)}}),fn(()=>{if(typeof s()==`string`)try{s(JSON.parse(s())),s({...r,...s()})}catch(e){console.error(`error parsing options`,e)}}),fn(()=>{if(typeof o()==`string`)try{o(JSON.parse(o()))}catch(e){console.error(`error parsing authors`,e)}});var d={get id(){return i()},set id(e=``){i(e),dt()},get messages(){return a()},set messages(e){a(e),dt()},get authors(){return o()},set authors(e){o(e),dt()},get options(){return s()},set options(e=r){s(e),dt()},get actions(){return c()},set actions(e=[]){c(e),dt()}},f=cr();return kr(`1d5xrrt`,e=>{Q(e,Jr())}),Cr(tn(f),17,()=>X(u),e=>e.id,(e,t)=>{var r=_i(),i=tn(r),a=e=>{var n=Zr(),r=I(n),i=e=>{Q(e,Yr())};$(r,e=>{!X(t).author.me&&s().showAvatar&&e(i)});var a=L(r,2),o=I(a),c=I(o,!0);D(o),D(a);var l=L(a,2),u=e=>{Q(e,Xr())};$(l,e=>{X(t).author.me&&s().showAvatar&&e(u)}),D(n),z(()=>{Nr(n,1,`author-name-wrapper d-flex ${X(t).author.me?`justify-content-end`:`justify-content-start`} mb-1 w-100`,`svelte-1d5xrrt`),Nr(o,1,`fw-semibold ${X(t).author.me?`text-secondary`:`text-primary`}`,`svelte-1d5xrrt`),dr(c,X(t).author.me?`You`:X(t).author.name)}),Q(e,n)};$(i,e=>{s().showName&&e(a)});var o=L(i,2),u=I(o),d=e=>{var n=ti(),r=I(n),i=e=>{var n=$r(),r=I(n),i=L(r,2),a=e=>{Q(e,Qr())};$(i,e=>{X(t).author.isAI&&e(a)}),D(n),z(e=>{Lr(r,`src`,e),Lr(r,`alt`,X(t).author.name)},[()=>X(t).author.avatar||l(X(t).author.isAI)]),Q(e,n)},a=e=>{Q(e,ei())};$(r,e=>{X(t).showAvatar?e(i):e(a,-1)}),D(n),Q(e,n)};$(u,e=>{!X(t).author.me&&s().showAvatar&&e(d)});var f=L(u,2),p=I(f),m=e=>{var n=ai(),r=I(n),i=I(r),a=e=>{var n=ri(),r=I(n),i=e=>{var n=ni(),r=I(n),i=I(r,!0);D(r),D(n),z(()=>dr(i,X(t).language)),Q(e,n)};$(r,e=>{X(t).language&&e(i)});var a=L(r,2),o=I(a),s=I(o,!0);D(o),D(a),D(n),z(()=>dr(s,X(t).text)),Q(e,n)},o=e=>{var n=ii(),r=I(n,!0);D(n),z(()=>dr(r,X(t).text)),Q(e,n)};$(i,e=>{X(t).type===`code`?e(a):e(o,-1)}),D(r),D(n),z(()=>{Lr(n,`part`,`message-bubble-${X(t).author.me?`me`:`them`}`),Nr(n,1,`message-bubble ${X(t).author.me?`bg-primary text-white`:`bg-light border`} rounded-3 p-3 shadow-sm`,`svelte-1d5xrrt`)}),Q(e,n)},h=e=>{var n=li(),r=I(n),i=I(r),a=e=>{var n=si(),r=I(n),i=e=>{var n=oi(),r=I(n),i=I(r,!0);D(r),D(n),z(()=>dr(i,X(t).language)),Q(e,n)};$(r,e=>{X(t).language&&e(i)});var a=L(r,2),o=I(a),s=I(o,!0);D(o),D(a),D(n),z(()=>dr(s,X(t).text)),Q(e,n)},o=e=>{var n=ci(),r=I(n,!0);D(n),z(()=>dr(r,X(t).text)),Q(e,n)};$(i,e=>{X(t).type===`code`?e(a):e(o,-1)}),D(r),D(n),Q(e,n)};$(p,e=>{s().bubbles?e(m):e(h,-1)});var g=L(p,2),_=e=>{var r=fi(),i=I(r);Cr(i,17,c,yr,(e,r)=>{var i=ui(),a=I(i);D(i),z(()=>{Lr(i,`title`,X(r).name),Lr(i,`aria-label`,X(r).name),Nr(a,1,`bi bi-${X(r).icon??``}`,`svelte-1d5xrrt`)}),er(`click`,i,()=>n(`action`,{messageId:X(t).id,action:X(r).name})),Q(e,i)});var a=L(i,2),o=e=>{var n=di(),r=I(n,!0);D(n),z(()=>dr(r,X(t).dateString)),Q(e,n)};$(a,e=>{s().showTimestamp&&e(o)}),D(r),z(()=>Nr(r,1,`message-actions d-flex gap-1 ${X(t).author.me?`justify-content-end`:`justify-content-start`} mt-2`,`svelte-1d5xrrt`)),Q(e,r)},v=e=>{var n=pi(),r=I(n),i=I(r,!0);D(r),D(n),z(()=>{Nr(n,1,`message-timestamp-only d-flex ${X(t).author.me?`justify-content-end`:`justify-content-start`} mt-1`,`svelte-1d5xrrt`),dr(i,X(t).dateString)}),Q(e,n)};$(g,e=>{c()?.length?e(_):s().showTimestamp&&e(v,1)}),D(f);var y=L(f,2),b=e=>{var n=gi(),r=I(n),i=e=>{var n=mi();z(e=>Lr(n,`src`,e),[()=>X(t).author.avatar||l(!1)]),Q(e,n)},a=e=>{Q(e,hi())};$(r,e=>{X(t).showAvatar?e(i):e(a,-1)}),D(n),Q(e,n)};$(y,e=>{X(t).author.me&&s().showAvatar&&e(b)}),D(o),z(()=>Nr(o,1,`message-wrapper d-flex ${X(t).author.me?`justify-content-end`:`justify-content-start`} mb-3 w-100`,`svelte-1d5xrrt`)),Q(e,r)}),Q(e,f),He(d)}tr([`click`]),customElements.define(`hb-messages-list`,qr(yi,{id:{},messages:{},authors:{},options:{},actions:{}},[],[],{mode:`open`})),e.Component=yi})(this[`messages-list`]=this[`messages-list`]||{});
184
+ //# sourceMappingURL=main.iife.js.map