@htmlbricks/hb-messages-send 0.66.3 → 0.66.4
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 +4 -4
- package/main.iife.js.map +1 -1
- package/manifest.json +3 -1
- package/package.json +1 -1
package/main.iife.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
(function(Ai){"use strict";typeof window<"u"&&((window.__svelte??={}).v??=new Set).add("5");const Zr=1,Qr=2,Ri=4,tn=8,en=16,rn=1,nn=4,on=8,vn=16,ln=2,Ti="[",Ve="[!",zi="[?",We="]",Jt={},D=Symbol(),Si="http://www.w3.org/1999/xhtml",an=!1;var Ci=Array.isArray,sn=Array.prototype.indexOf,Xt=Array.prototype.includes,ke=Array.from,$e=Object.keys,je=Object.defineProperty,Gt=Object.getOwnPropertyDescriptor,pn=Object.getOwnPropertyDescriptors,bn=Object.prototype,mn=Array.prototype,Mi=Object.getPrototypeOf,Ni=Object.isExtensible;const dn=()=>{};function gn(t){for(var e=0;e<t.length;e++)t[e]()}function Bi(){var t,e,i=new Promise((r,n)=>{t=r,e=n});return{promise:i,resolve:t,reject:e}}const O=2,Zt=4,Ee=8,Oi=1<<24,$t=16,vt=32,jt=64,qe=128,J=512,N=1024,G=2048,mt=4096,V=8192,X=16384,Et=32768,Ke=1<<25,Qt=65536,Li=1<<17,Pi=1<<18,At=1<<19,fn=1<<20,dt=1<<25,It=65536,Je=1<<21,Xe=1<<22,Rt=1<<23,me=Symbol("$state"),Di=Symbol("legacy props"),cn=Symbol(""),ht=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"},un=!!globalThis.document?.contentType&&globalThis.document.contentType.includes("xml"),Ae=3,te=8;function xn(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function hn(t,e,i){throw new Error("https://svelte.dev/e/each_key_duplicate")}function yn(t){throw new Error("https://svelte.dev/e/effect_in_teardown")}function wn(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function _n(t){throw new Error("https://svelte.dev/e/effect_orphan")}function kn(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function $n(){throw new Error("https://svelte.dev/e/hydration_failed")}function jn(t){throw new Error("https://svelte.dev/e/props_invalid_value")}function En(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function An(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function Rn(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function Tn(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}function Re(t){console.warn("https://svelte.dev/e/hydration_mismatch")}function zn(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}let w=!1;function lt(t){w=t}let $;function I(t){if(t===null)throw Re(),Jt;return $=t}function Te(){return I(Z($))}function B(t){if(w){if(Z($)!==null)throw Re(),Jt;$=t}}function Gi(t=1){if(w){for(var e=t,i=$;e--;)i=Z(i);$=i}}function ze(t=!0){for(var e=0,i=$;;){if(i.nodeType===te){var r=i.data;if(r===We){if(e===0)return i;e-=1}else(r===Ti||r===Ve||r[0]==="["&&!isNaN(Number(r.slice(1))))&&(e+=1)}var n=Z(i);t&&i.remove(),i=n}}function Ii(t){if(!t||t.nodeType!==te)throw Re(),Jt;return t.data}function Hi(t){return t===this.v}function Sn(t,e){return t!=t?e==e:t!==e||t!==null&&typeof t=="object"||typeof t=="function"}function Fi(t){return!Sn(t,this.v)}let Cn=!1,W=null;function ee(t){W=t}function Ui(t,e=!1,i){W={p:W,i:!1,c:null,e:null,s:t,x:null,r:k,l:null}}function Yi(t){var e=W,i=e.e;if(i!==null){e.e=null;for(var r of i)ur(r)}return t!==void 0&&(e.x=t),e.i=!0,W=e.p,t??{}}function Vi(){return!0}let Ht=[];function Wi(){var t=Ht;Ht=[],gn(t)}function Tt(t){if(Ht.length===0&&!de){var e=Ht;queueMicrotask(()=>{e===Ht&&Wi()})}Ht.push(t)}function Mn(){for(;Ht.length>0;)Wi()}function qi(t){var e=k;if(e===null)return _.f|=Rt,t;if((e.f&Et)===0&&(e.f&Zt)===0)throw t;zt(t,e)}function zt(t,e){for(;e!==null;){if((e.f&qe)!==0){if((e.f&Et)===0)throw t;try{e.b.error(t);return}catch(i){t=i}}e=e.parent}throw t}const Nn=-7169;function C(t,e){t.f=t.f&Nn|e}function Ze(t){(t.f&J)!==0||t.deps===null?C(t,N):C(t,mt)}function Ki(t){if(t!==null)for(const e of t)(e.f&O)===0||(e.f&It)===0||(e.f^=It,Ki(e.deps))}function Ji(t,e,i){(t.f&G)!==0?e.add(t):(t.f&mt)!==0&&i.add(t),Ki(t.deps),C(t,N)}let Se=!1;function Bn(t){var e=Se;try{return Se=!1,[t(),Se]}finally{Se=e}}const St=new Set;let E=null,at=null,Qe=null,de=!1,ti=!1,ie=null,Ce=null;var Xi=0;let On=1;class yt{id=On++;current=new Map;previous=new Map;#t=new Set;#i=new Set;#e=new Map;#n=new Map;#o=null;#r=[];#v=new Set;#l=new Set;#a=new Map;is_fork=!1;#b=!1;#s=new Set;#m(){return this.is_fork||this.#n.size>0}#g(){for(const r of this.#s)for(const n of r.#n.keys()){for(var e=!1,i=n;i.parent!==null;){if(this.#a.has(i)){e=!0;break}i=i.parent}if(!e)return!0}return!1}skip_effect(e){this.#a.has(e)||this.#a.set(e,{d:[],m:[]})}unskip_effect(e){var i=this.#a.get(e);if(i){this.#a.delete(e);for(var r of i.d)C(r,G),this.schedule(r);for(r of i.m)C(r,mt),this.schedule(r)}}#d(){if(Xi++>1e3&&(St.delete(this),Ln()),!this.#m()){for(const l of this.#v)this.#l.delete(l),C(l,G),this.schedule(l);for(const l of this.#l)C(l,mt),this.schedule(l)}const e=this.#r;this.#r=[],this.apply();var i=ie=[],r=[],n=Ce=[];for(const l of e)try{this.#p(l,i,r)}catch(a){throw ir(l),a}if(E=null,n.length>0){var o=yt.ensure();for(const l of n)o.schedule(l)}if(ie=null,Ce=null,this.#m()||this.#g()){this.#f(r),this.#f(i);for(const[l,a]of this.#a)er(l,a)}else{this.#e.size===0&&St.delete(this),this.#v.clear(),this.#l.clear();for(const l of this.#t)l(this);this.#t.clear(),Zi(r),Zi(i),this.#o?.resolve()}var v=E;if(this.#r.length>0){const l=v??=this;l.#r.push(...this.#r.filter(a=>!l.#r.includes(a)))}v!==null&&(St.add(v),v.#d()),St.has(this)||this.#c()}#p(e,i,r){e.f^=N;for(var n=e.first;n!==null;){var o=n.f,v=(o&(vt|jt))!==0,l=v&&(o&N)!==0,a=l||(o&V)!==0||this.#a.has(n);if(!a&&n.fn!==null){v?n.f^=N:(o&Zt)!==0?i.push(n):ce(n)&&((o&$t)!==0&&this.#l.add(n),ne(n));var s=n.first;if(s!==null){n=s;continue}}for(;n!==null;){var p=n.next;if(p!==null){n=p;break}n=n.parent}}}#f(e){for(var i=0;i<e.length;i+=1)Ji(e[i],this.#v,this.#l)}capture(e,i,r=!1){i!==D&&!this.previous.has(e)&&this.previous.set(e,i),(e.f&Rt)===0&&(this.current.set(e,[e.v,r]),at?.set(e,e.v))}activate(){E=this}deactivate(){E=null,at=null}flush(){try{ti=!0,E=this,this.#d()}finally{Xi=0,Qe=null,ie=null,Ce=null,ti=!1,E=null,at=null,Ct.clear()}}discard(){for(const e of this.#i)e(this);this.#i.clear(),St.delete(this)}#c(){for(const s of St){var e=s.id<this.id,i=[];for(const[p,[c,b]]of this.current){if(s.current.has(p)){var r=s.current.get(p)[0];if(e&&c!==r)s.current.set(p,[c,b]);else continue}i.push(p)}var n=[...s.current.keys()].filter(p=>!this.current.has(p));if(n.length===0)e&&s.discard();else if(i.length>0){s.activate();var o=new Set,v=new Map;for(var l of i)Qi(l,n,o,v);if(s.#r.length>0){s.apply();for(var a of s.#r)s.#p(a,[],[]);s.#r=[]}s.deactivate()}}for(const s of St)s.#s.has(this)&&(s.#s.delete(this),s.#s.size===0&&!s.#m()&&(s.activate(),s.#d()))}increment(e,i){let r=this.#e.get(i)??0;if(this.#e.set(i,r+1),e){let n=this.#n.get(i)??0;this.#n.set(i,n+1)}}decrement(e,i,r){let n=this.#e.get(i)??0;if(n===1?this.#e.delete(i):this.#e.set(i,n-1),e){let o=this.#n.get(i)??0;o===1?this.#n.delete(i):this.#n.set(i,o-1)}this.#b||r||(this.#b=!0,Tt(()=>{this.#b=!1,this.flush()}))}transfer_effects(e,i){for(const r of e)this.#v.add(r);for(const r of i)this.#l.add(r);e.clear(),i.clear()}oncommit(e){this.#t.add(e)}ondiscard(e){this.#i.add(e)}settled(){return(this.#o??=Bi()).promise}static ensure(){if(E===null){const e=E=new yt;ti||(St.add(E),de||Tt(()=>{E===e&&e.flush()}))}return E}apply(){{at=null;return}}schedule(e){if(Qe=e,e.b?.is_pending&&(e.f&(Zt|Ee|Oi))!==0&&(e.f&Et)===0){e.b.defer_effect(e);return}for(var i=e;i.parent!==null;){i=i.parent;var r=i.f;if(ie!==null&&i===k&&(_===null||(_.f&O)===0))return;if((r&(jt|vt))!==0){if((r&N)===0)return;i.f^=N}}this.#r.push(i)}}function Ft(t){var e=de;de=!0;try{for(var i;;){if(Mn(),E===null)return i;E.flush()}}finally{de=e}}function Ln(){try{kn()}catch(t){zt(t,Qe)}}let wt=null;function Zi(t){var e=t.length;if(e!==0){for(var i=0;i<e;){var r=t[i++];if((r.f&(X|V))===0&&ce(r)&&(wt=new Set,ne(r),r.deps===null&&r.first===null&&r.nodes===null&&r.teardown===null&&r.ac===null&&yr(r),wt?.size>0)){Ct.clear();for(const n of wt){if((n.f&(X|V))!==0)continue;const o=[n];let v=n.parent;for(;v!==null;)wt.has(v)&&(wt.delete(v),o.push(v)),v=v.parent;for(let l=o.length-1;l>=0;l--){const a=o[l];(a.f&(X|V))===0&&ne(a)}}wt.clear()}}wt=null}}function Qi(t,e,i,r){if(!i.has(t)&&(i.add(t),t.reactions!==null))for(const n of t.reactions){const o=n.f;(o&O)!==0?Qi(n,e,i,r):(o&(Xe|$t))!==0&&(o&G)===0&&tr(n,e,r)&&(C(n,G),ei(n))}}function tr(t,e,i){const r=i.get(t);if(r!==void 0)return r;if(t.deps!==null)for(const n of t.deps){if(Xt.call(e,n))return!0;if((n.f&O)!==0&&tr(n,e,i))return i.set(n,!0),!0}return i.set(t,!1),!1}function ei(t){E.schedule(t)}function er(t,e){if(!((t.f&vt)!==0&&(t.f&N)!==0)){(t.f&G)!==0?e.d.push(t):(t.f&mt)!==0&&e.m.push(t),C(t,N);for(var i=t.first;i!==null;)er(i,e),i=i.next}}function ir(t){C(t,N);for(var e=t.first;e!==null;)ir(e),e=e.next}function Pn(t){let e=0,i=Ut(0),r;return()=>{ai()&&(f(i),Oe(()=>(e===0&&(r=De(()=>t(()=>ge(i)))),e+=1,()=>{Tt(()=>{e-=1,e===0&&(r?.(),r=void 0,ge(i))})})))}}var Dn=Qt|At;function Gn(t,e,i,r){new In(t,e,i,r)}class In{parent;is_pending=!1;transform_error;#t;#i=w?$:null;#e;#n;#o;#r=null;#v=null;#l=null;#a=null;#b=0;#s=0;#m=!1;#g=new Set;#d=new Set;#p=null;#f=Pn(()=>(this.#p=Ut(this.#b),()=>{this.#p=null}));constructor(e,i,r,n){this.#t=e,this.#e=i,this.#n=o=>{var v=k;v.b=this,v.f|=qe,r(o)},this.parent=k.b,this.transform_error=n??this.parent?.transform_error??(o=>o),this.#o=Le(()=>{if(w){const o=this.#i;Te();const v=o.data===Ve;if(o.data.startsWith(zi)){const a=JSON.parse(o.data.slice(zi.length));this.#w(a)}else v?this.#_():this.#c()}else this.#h()},Dn),w&&(this.#t=$)}#c(){try{this.#r=Q(()=>this.#n(this.#t))}catch(e){this.error(e)}}#w(e){const i=this.#e.failed;i&&(this.#l=Q(()=>{i(this.#t,()=>e,()=>()=>{})}))}#_(){const e=this.#e.pending;e&&(this.is_pending=!0,this.#v=Q(()=>e(this.#t)),Tt(()=>{var i=this.#a=document.createDocumentFragment(),r=q();i.append(r),this.#r=this.#x(()=>Q(()=>this.#n(r))),this.#s===0&&(this.#t.before(i),this.#a=null,Yt(this.#v,()=>{this.#v=null}),this.#u(E))}))}#h(){try{if(this.is_pending=this.has_pending_snippet(),this.#s=0,this.#b=0,this.#r=Q(()=>{this.#n(this.#t)}),this.#s>0){var e=this.#a=document.createDocumentFragment();bi(this.#r,e);const i=this.#e.pending;this.#v=Q(()=>i(this.#t))}else this.#u(E)}catch(i){this.error(i)}}#u(e){this.is_pending=!1,e.transfer_effects(this.#g,this.#d)}defer_effect(e){Ji(e,this.#g,this.#d)}is_rendered(){return!this.is_pending&&(!this.parent||this.parent.is_rendered())}has_pending_snippet(){return!!this.#e.pending}#x(e){var i=k,r=_,n=W;ct(this.#o),tt(this.#o),ee(this.#o.ctx);try{return yt.ensure(),e()}catch(o){return qi(o),null}finally{ct(i),tt(r),ee(n)}}#y(e,i){if(!this.has_pending_snippet()){this.parent&&this.parent.#y(e,i);return}this.#s+=e,this.#s===0&&(this.#u(i),this.#v&&Yt(this.#v,()=>{this.#v=null}),this.#a&&(this.#t.before(this.#a),this.#a=null))}update_pending_count(e,i){this.#y(e,i),this.#b+=e,!(!this.#p||this.#m)&&(this.#m=!0,Tt(()=>{this.#m=!1,this.#p&&re(this.#p,this.#b)}))}get_effect_pending(){return this.#f(),f(this.#p)}error(e){var i=this.#e.onerror;let r=this.#e.failed;if(!i&&!r)throw e;this.#r&&(F(this.#r),this.#r=null),this.#v&&(F(this.#v),this.#v=null),this.#l&&(F(this.#l),this.#l=null),w&&(I(this.#i),Gi(),I(ze()));var n=!1,o=!1;const v=()=>{if(n){zn();return}n=!0,o&&Tn(),this.#l!==null&&Yt(this.#l,()=>{this.#l=null}),this.#x(()=>{this.#h()})},l=a=>{try{o=!0,i?.(a,v),o=!1}catch(s){zt(s,this.#o&&this.#o.parent)}r&&(this.#l=this.#x(()=>{try{return Q(()=>{var s=k;s.b=this,s.f|=qe,r(this.#t,()=>a,()=>v)})}catch(s){return zt(s,this.#o.parent),null}}))};Tt(()=>{var a;try{a=this.transform_error(e)}catch(s){zt(s,this.#o&&this.#o.parent);return}a!==null&&typeof a=="object"&&typeof a.then=="function"?a.then(l,s=>zt(s,this.#o&&this.#o.parent)):l(a)})}}function Hn(t,e,i,r){const n=Ne;var o=t.filter(b=>!b.settled);if(i.length===0&&o.length===0){r(e.map(n));return}var v=k,l=Fn(),a=o.length===1?o[0].promise:o.length>1?Promise.all(o.map(b=>b.promise)):null;function s(b){l();try{r(b)}catch(u){(v.f&X)===0&&zt(u,v)}Me()}if(i.length===0){a.then(()=>s(e.map(n)));return}var p=rr();function c(){Promise.all(i.map(b=>Un(b))).then(b=>s([...e.map(n),...b])).catch(b=>zt(b,v)).finally(()=>p())}a?a.then(()=>{l(),c(),Me()}):c()}function Fn(){var t=k,e=_,i=W,r=E;return function(o=!0){ct(t),tt(e),ee(i),o&&(t.f&X)===0&&(r?.activate(),r?.apply())}}function Me(t=!0){ct(null),tt(null),ee(null),t&&E?.deactivate()}function rr(){var t=k,e=t.b,i=E,r=e.is_rendered();return e.update_pending_count(1,i),i.increment(r,t),(n=!1)=>{e.update_pending_count(-1,i),i.decrement(r,t,n)}}function Ne(t){var e=O|G,i=_!==null&&(_.f&O)!==0?_:null;return k!==null&&(k.f|=At),{ctx:W,deps:null,effects:null,equals:Hi,f:e,fn:t,reactions:null,rv:0,v:D,wv:0,parent:i??k,ac:null}}function Un(t,e,i){let r=k;r===null&&xn();var n=void 0,o=Ut(D),v=!_,l=new Map;return no(()=>{var a=k,s=Bi();n=s.promise;try{Promise.resolve(t()).then(s.resolve,s.reject).finally(Me)}catch(u){s.reject(u),Me()}var p=E;if(v){if((a.f&Et)!==0)var c=rr();if(r.b.is_rendered())l.get(p)?.reject(ht),l.delete(p);else{for(const u of l.values())u.reject(ht);l.clear()}l.set(p,s)}const b=(u,g=void 0)=>{if(c){var h=g===ht;c(h)}if(!(g===ht||(a.f&X)!==0)){if(p.activate(),g)o.f|=Rt,re(o,g);else{(o.f&Rt)!==0&&(o.f^=Rt),re(o,u);for(const[d,y]of l){if(l.delete(d),d===p)break;y.reject(ht)}}p.deactivate()}};s.promise.then(b,u=>b(null,u||"unknown"))}),cr(()=>{for(const a of l.values())a.reject(ht)}),new Promise(a=>{function s(p){function c(){p===n?a(o):s(n)}p.then(c,c)}s(n)})}function Yn(t){const e=Ne(t);return $r(e),e}function nr(t){const e=Ne(t);return e.equals=Fi,e}function Vn(t){var e=t.effects;if(e!==null){t.effects=null;for(var i=0;i<e.length;i+=1)F(e[i])}}function Wn(t){for(var e=t.parent;e!==null;){if((e.f&O)===0)return(e.f&X)===0?e:null;e=e.parent}return null}function ii(t){var e,i=k;ct(Wn(t));try{t.f&=~It,Vn(t),e=Tr(t)}finally{ct(i)}return e}function or(t){var e=t.v,i=ii(t);if(!t.equals(i)&&(t.wv=Ar(),(!E?.is_fork||t.deps===null)&&(t.v=i,E?.capture(t,e,!0),t.deps===null))){C(t,N);return}Bt||(at!==null?(ai()||E?.is_fork)&&at.set(t,i):Ze(t))}function qn(t){if(t.effects!==null)for(const e of t.effects)(e.teardown||e.ac)&&(e.teardown?.(),e.ac?.abort(ht),e.teardown=dn,e.ac=null,ue(e,0),si(e))}function vr(t){if(t.effects!==null)for(const e of t.effects)e.teardown&&ne(e)}let ri=new Set;const Ct=new Map;let lr=!1;function Ut(t,e){var i={f:0,v:t,reactions:null,equals:Hi,rv:0,wv:0};return i}function H(t,e){const i=Ut(t);return $r(i),i}function ar(t,e=!1,i=!0){const r=Ut(t);return e||(r.equals=Fi),r}function S(t,e,i=!1){_!==null&&(!st||(_.f&Li)!==0)&&Vi()&&(_.f&(O|$t|Xe|Li))!==0&&(et===null||!Xt.call(et,t))&&Rn();let r=i?Mt(e):e;return re(t,r,Ce)}function re(t,e,i=null){if(!t.equals(e)){var r=t.v;Bt?Ct.set(t,e):Ct.set(t,r),t.v=e;var n=yt.ensure();if(n.capture(t,r),(t.f&O)!==0){const o=t;(t.f&G)!==0&&ii(o),at===null&&Ze(o)}t.wv=Ar(),sr(t,G,i),k!==null&&(k.f&N)!==0&&(k.f&(vt|jt))===0&&(it===null?lo([t]):it.push(t)),!n.is_fork&&ri.size>0&&!lr&&Kn()}return e}function Kn(){lr=!1;for(const t of ri)(t.f&N)!==0&&C(t,mt),ce(t)&&ne(t);ri.clear()}function ge(t){S(t,t.v+1)}function sr(t,e,i){var r=t.reactions;if(r!==null)for(var n=r.length,o=0;o<n;o++){var v=r[o],l=v.f,a=(l&G)===0;if(a&&C(v,e),(l&O)!==0){var s=v;at?.delete(s),(l&It)===0&&(l&J&&(v.f|=It),sr(s,mt,i))}else if(a){var p=v;(l&$t)!==0&&wt!==null&&wt.add(p),i!==null?i.push(p):ei(p)}}}function Mt(t){if(typeof t!="object"||t===null||me in t)return t;const e=Mi(t);if(e!==bn&&e!==mn)return t;var i=new Map,r=Ci(t),n=H(0),o=Wt,v=l=>{if(Wt===o)return l();var a=_,s=Wt;tt(null),Er(o);var p=l();return tt(a),Er(s),p};return r&&i.set("length",H(t.length)),new Proxy(t,{defineProperty(l,a,s){(!("value"in s)||s.configurable===!1||s.enumerable===!1||s.writable===!1)&&En();var p=i.get(a);return p===void 0?v(()=>{var c=H(s.value);return i.set(a,c),c}):S(p,s.value,!0),!0},deleteProperty(l,a){var s=i.get(a);if(s===void 0){if(a in l){const p=v(()=>H(D));i.set(a,p),ge(n)}}else S(s,D),ge(n);return!0},get(l,a,s){if(a===me)return t;var p=i.get(a),c=a in l;if(p===void 0&&(!c||Gt(l,a)?.writable)&&(p=v(()=>{var u=Mt(c?l[a]:D),g=H(u);return g}),i.set(a,p)),p!==void 0){var b=f(p);return b===D?void 0:b}return Reflect.get(l,a,s)},getOwnPropertyDescriptor(l,a){var s=Reflect.getOwnPropertyDescriptor(l,a);if(s&&"value"in s){var p=i.get(a);p&&(s.value=f(p))}else if(s===void 0){var c=i.get(a),b=c?.v;if(c!==void 0&&b!==D)return{enumerable:!0,configurable:!0,value:b,writable:!0}}return s},has(l,a){if(a===me)return!0;var s=i.get(a),p=s!==void 0&&s.v!==D||Reflect.has(l,a);if(s!==void 0||k!==null&&(!p||Gt(l,a)?.writable)){s===void 0&&(s=v(()=>{var b=p?Mt(l[a]):D,u=H(b);return u}),i.set(a,s));var c=f(s);if(c===D)return!1}return p},set(l,a,s,p){var c=i.get(a),b=a in l;if(r&&a==="length")for(var u=s;u<c.v;u+=1){var g=i.get(u+"");g!==void 0?S(g,D):u in l&&(g=v(()=>H(D)),i.set(u+"",g))}if(c===void 0)(!b||Gt(l,a)?.writable)&&(c=v(()=>H(void 0)),S(c,Mt(s)),i.set(a,c));else{b=c.v!==D;var h=v(()=>Mt(s));S(c,h)}var d=Reflect.getOwnPropertyDescriptor(l,a);if(d?.set&&d.set.call(p,s),!b){if(r&&typeof a=="string"){var y=i.get("length"),z=Number(a);Number.isInteger(z)&&z>=y.v&&S(y,z+1)}ge(n)}return!0},ownKeys(l){f(n);var a=Reflect.ownKeys(l).filter(c=>{var b=i.get(c);return b===void 0||b.v!==D});for(var[s,p]of i)p.v!==D&&!(s in l)&&a.push(s);return a},setPrototypeOf(){An()}})}var pr,br,mr,dr;function ni(){if(pr===void 0){pr=window,br=/Firefox/.test(navigator.userAgent);var t=Element.prototype,e=Node.prototype,i=Text.prototype;mr=Gt(e,"firstChild").get,dr=Gt(e,"nextSibling").get,Ni(t)&&(t.__click=void 0,t.__className=void 0,t.__attributes=null,t.__style=void 0,t.__e=void 0),Ni(i)&&(i.__t=void 0)}}function q(t=""){return document.createTextNode(t)}function Nt(t){return mr.call(t)}function Z(t){return dr.call(t)}function L(t,e){if(!w)return Nt(t);var i=Nt($);if(i===null)i=$.appendChild(q());else if(e&&i.nodeType!==Ae){var r=q();return i?.before(r),I(r),r}return e&&li(i),I(i),i}function Jn(t,e=!1){if(!w){var i=Nt(t);return i instanceof Comment&&i.data===""?Z(i):i}if(e){if($?.nodeType!==Ae){var r=q();return $?.before(r),I(r),r}li($)}return $}function gt(t,e=1,i=!1){let r=w?$:t;for(var n;e--;)n=r,r=Z(r);if(!w)return r;if(i){if(r?.nodeType!==Ae){var o=q();return r===null?n?.after(o):r.before(o),I(o),o}li(r)}return I(r),r}function oi(t){t.textContent=""}function gr(){return!1}function vi(t,e,i){return document.createElementNS(Si,t,void 0)}function li(t){if(t.nodeValue.length<65536)return;let e=t.nextSibling;for(;e!==null&&e.nodeType===Ae;)e.remove(),t.nodeValue+=e.nodeValue,e=t.nextSibling}function Xn(t){w&&Nt(t)!==null&&oi(t)}let fr=!1;function Zn(){fr||(fr=!0,document.addEventListener("reset",t=>{Promise.resolve().then(()=>{if(!t.defaultPrevented)for(const e of t.target.elements)e.__on_r?.()})},{capture:!0}))}function Be(t){var e=_,i=k;tt(null),ct(null);try{return t()}finally{tt(e),ct(i)}}function Qn(t,e,i,r=i){t.addEventListener(e,()=>Be(i));const n=t.__on_r;n?t.__on_r=()=>{n(),r(!0)}:t.__on_r=()=>r(!0),Zn()}function to(t){k===null&&(_===null&&_n(),wn()),Bt&&yn()}function eo(t,e){var i=e.last;i===null?e.last=e.first=t:(i.next=t,t.prev=i,e.last=t)}function ft(t,e){var i=k;i!==null&&(i.f&V)!==0&&(t|=V);var r={ctx:W,deps:null,nodes:null,f:t|G|J,first:null,fn:e,last:null,next:null,parent:i,b:i&&i.b,prev:null,teardown:null,wv:0,ac:null},n=r;if((t&Zt)!==0)ie!==null?ie.push(r):yt.ensure().schedule(r);else if(e!==null){try{ne(r)}catch(v){throw F(r),v}n.deps===null&&n.teardown===null&&n.nodes===null&&n.first===n.last&&(n.f&At)===0&&(n=n.first,(t&$t)!==0&&(t&Qt)!==0&&n!==null&&(n.f|=Qt))}if(n!==null&&(n.parent=i,i!==null&&eo(n,i),_!==null&&(_.f&O)!==0&&(t&jt)===0)){var o=_;(o.effects??=[]).push(n)}return r}function ai(){return _!==null&&!st}function cr(t){const e=ft(Ee,null);return C(e,N),e.teardown=t,e}function fe(t){to();var e=k.f,i=!_&&(e&vt)!==0&&(e&Et)===0;if(i){var r=W;(r.e??=[]).push(t)}else return ur(t)}function ur(t){return ft(Zt|fn,t)}function io(t){yt.ensure();const e=ft(jt|At,t);return()=>{F(e)}}function ro(t){yt.ensure();const e=ft(jt|At,t);return(i={})=>new Promise(r=>{i.outro?Yt(e,()=>{F(e),r(void 0)}):(F(e),r(void 0))})}function xr(t){return ft(Zt,t)}function no(t){return ft(Xe|At,t)}function Oe(t,e=0){return ft(Ee|e,t)}function _t(t,e=[],i=[],r=[]){Hn(r,e,i,n=>{ft(Ee,()=>t(...n.map(f)))})}function Le(t,e=0){var i=ft($t|e,t);return i}function Q(t){return ft(vt|At,t)}function hr(t){var e=t.teardown;if(e!==null){const i=Bt,r=_;kr(!0),tt(null);try{e.call(null)}finally{kr(i),tt(r)}}}function si(t,e=!1){var i=t.first;for(t.first=t.last=null;i!==null;){const n=i.ac;n!==null&&Be(()=>{n.abort(ht)});var r=i.next;(i.f&jt)!==0?i.parent=null:F(i,e),i=r}}function oo(t){for(var e=t.first;e!==null;){var i=e.next;(e.f&vt)===0&&F(e),e=i}}function F(t,e=!0){var i=!1;(e||(t.f&Pi)!==0)&&t.nodes!==null&&t.nodes.end!==null&&(vo(t.nodes.start,t.nodes.end),i=!0),C(t,Ke),si(t,e&&!i),ue(t,0);var r=t.nodes&&t.nodes.t;if(r!==null)for(const o of r)o.stop();hr(t),t.f^=Ke,t.f|=X;var n=t.parent;n!==null&&n.first!==null&&yr(t),t.next=t.prev=t.teardown=t.ctx=t.deps=t.fn=t.nodes=t.ac=t.b=null}function vo(t,e){for(;t!==null;){var i=t===e?null:Z(t);t.remove(),t=i}}function yr(t){var e=t.parent,i=t.prev,r=t.next;i!==null&&(i.next=r),r!==null&&(r.prev=i),e!==null&&(e.first===t&&(e.first=r),e.last===t&&(e.last=i))}function Yt(t,e,i=!0){var r=[];wr(t,r,!0);var n=()=>{i&&F(t),e&&e()},o=r.length;if(o>0){var v=()=>--o||n();for(var l of r)l.out(v)}else n()}function wr(t,e,i){if((t.f&V)===0){t.f^=V;var r=t.nodes&&t.nodes.t;if(r!==null)for(const l of r)(l.is_global||i)&&e.push(l);for(var n=t.first;n!==null;){var o=n.next,v=(n.f&Qt)!==0||(n.f&vt)!==0&&(t.f&$t)!==0;wr(n,e,v?i:!1),n=o}}}function pi(t){_r(t,!0)}function _r(t,e){if((t.f&V)!==0){t.f^=V,(t.f&N)===0&&(C(t,G),yt.ensure().schedule(t));for(var i=t.first;i!==null;){var r=i.next,n=(i.f&Qt)!==0||(i.f&vt)!==0;_r(i,n?e:!1),i=r}var o=t.nodes&&t.nodes.t;if(o!==null)for(const v of o)(v.is_global||e)&&v.in()}}function bi(t,e){if(t.nodes)for(var i=t.nodes.start,r=t.nodes.end;i!==null;){var n=i===r?null:Z(i);e.append(i),i=n}}let Pe=!1,Bt=!1;function kr(t){Bt=t}let _=null,st=!1;function tt(t){_=t}let k=null;function ct(t){k=t}let et=null;function $r(t){_!==null&&(et===null?et=[t]:et.push(t))}let Y=null,K=0,it=null;function lo(t){it=t}let jr=1,Vt=0,Wt=Vt;function Er(t){Wt=t}function Ar(){return++jr}function ce(t){var e=t.f;if((e&G)!==0)return!0;if(e&O&&(t.f&=~It),(e&mt)!==0){for(var i=t.deps,r=i.length,n=0;n<r;n++){var o=i[n];if(ce(o)&&or(o),o.wv>t.wv)return!0}(e&J)!==0&&at===null&&C(t,N)}return!1}function Rr(t,e,i=!0){var r=t.reactions;if(r!==null&&!(et!==null&&Xt.call(et,t)))for(var n=0;n<r.length;n++){var o=r[n];(o.f&O)!==0?Rr(o,e,!1):e===o&&(i?C(o,G):(o.f&N)!==0&&C(o,mt),ei(o))}}function Tr(t){var e=Y,i=K,r=it,n=_,o=et,v=W,l=st,a=Wt,s=t.f;Y=null,K=0,it=null,_=(s&(vt|jt))===0?t:null,et=null,ee(t.ctx),st=!1,Wt=++Vt,t.ac!==null&&(Be(()=>{t.ac.abort(ht)}),t.ac=null);try{t.f|=Je;var p=t.fn,c=p();t.f|=Et;var b=t.deps,u=E?.is_fork;if(Y!==null){var g;if(u||ue(t,K),b!==null&&K>0)for(b.length=K+Y.length,g=0;g<Y.length;g++)b[K+g]=Y[g];else t.deps=b=Y;if(ai()&&(t.f&J)!==0)for(g=K;g<b.length;g++)(b[g].reactions??=[]).push(t)}else!u&&b!==null&&K<b.length&&(ue(t,K),b.length=K);if(Vi()&&it!==null&&!st&&b!==null&&(t.f&(O|mt|G))===0)for(g=0;g<it.length;g++)Rr(it[g],t);if(n!==null&&n!==t){if(Vt++,n.deps!==null)for(let h=0;h<i;h+=1)n.deps[h].rv=Vt;if(e!==null)for(const h of e)h.rv=Vt;it!==null&&(r===null?r=it:r.push(...it))}return(t.f&Rt)!==0&&(t.f^=Rt),c}catch(h){return qi(h)}finally{t.f^=Je,Y=e,K=i,it=r,_=n,et=o,ee(v),st=l,Wt=a}}function ao(t,e){let i=e.reactions;if(i!==null){var r=sn.call(i,t);if(r!==-1){var n=i.length-1;n===0?i=e.reactions=null:(i[r]=i[n],i.pop())}}if(i===null&&(e.f&O)!==0&&(Y===null||!Xt.call(Y,e))){var o=e;(o.f&J)!==0&&(o.f^=J,o.f&=~It),Ze(o),qn(o),ue(o,0)}}function ue(t,e){var i=t.deps;if(i!==null)for(var r=e;r<i.length;r++)ao(t,i[r])}function ne(t){var e=t.f;if((e&X)===0){C(t,N);var i=k,r=Pe;k=t,Pe=!0;try{(e&($t|Oi))!==0?oo(t):si(t),hr(t);var n=Tr(t);t.teardown=typeof n=="function"?n:null,t.wv=jr;var o;an&&Cn&&(t.f&G)!==0&&t.deps}finally{Pe=r,k=i}}}async function so(){await Promise.resolve(),Ft()}function f(t){var e=t.f,i=(e&O)!==0;if(_!==null&&!st){var r=k!==null&&(k.f&X)!==0;if(!r&&(et===null||!Xt.call(et,t))){var n=_.deps;if((_.f&Je)!==0)t.rv<Vt&&(t.rv=Vt,Y===null&&n!==null&&n[K]===t?K++:Y===null?Y=[t]:Y.push(t));else{(_.deps??=[]).push(t);var o=t.reactions;o===null?t.reactions=[_]:Xt.call(o,_)||o.push(_)}}}if(Bt&&Ct.has(t))return Ct.get(t);if(i){var v=t;if(Bt){var l=v.v;return((v.f&N)===0&&v.reactions!==null||Sr(v))&&(l=ii(v)),Ct.set(v,l),l}var a=(v.f&J)===0&&!st&&_!==null&&(Pe||(_.f&J)!==0),s=(v.f&Et)===0;ce(v)&&(a&&(v.f|=J),or(v)),a&&!s&&(vr(v),zr(v))}if(at?.has(t))return at.get(t);if((t.f&Rt)!==0)throw t.v;return t.v}function zr(t){if(t.f|=J,t.deps!==null)for(const e of t.deps)(e.reactions??=[]).push(t),(e.f&O)!==0&&(e.f&J)===0&&(vr(e),zr(e))}function Sr(t){if(t.v===D)return!0;if(t.deps===null)return!1;for(const e of t.deps)if(Ct.has(e)||(e.f&O)!==0&&Sr(e))return!0;return!1}function De(t){var e=st;try{return st=!0,t()}finally{st=e}}const xe=Symbol("events"),Cr=new Set,mi=new Set;function po(t,e,i,r={}){function n(o){if(r.capture||di.call(e,o),!o.cancelBubble)return Be(()=>i?.call(this,o))}return t.startsWith("pointer")||t.startsWith("touch")||t==="wheel"?Tt(()=>{e.addEventListener(t,n,r)}):e.addEventListener(t,n,r),n}function bo(t,e,i,r,n){var o={capture:r,passive:n},v=po(t,e,i,o);(e===document.body||e===window||e===document||e instanceof HTMLMediaElement)&&cr(()=>{e.removeEventListener(t,v,o)})}function qt(t,e,i){(e[xe]??={})[t]=i}function mo(t){for(var e=0;e<t.length;e++)Cr.add(t[e]);for(var i of mi)i(t)}let Mr=null;function di(t){var e=this,i=e.ownerDocument,r=t.type,n=t.composedPath?.()||[],o=n[0]||t.target;Mr=t;var v=0,l=Mr===t&&t[xe];if(l){var a=n.indexOf(l);if(a!==-1&&(e===document||e===window)){t[xe]=e;return}var s=n.indexOf(e);if(s===-1)return;a<=s&&(v=a)}if(o=n[v]||t.target,o!==e){je(t,"currentTarget",{configurable:!0,get(){return o||i}});var p=_,c=k;tt(null),ct(null);try{for(var b,u=[];o!==null;){var g=o.assignedSlot||o.parentNode||o.host||null;try{var h=o[xe]?.[r];h!=null&&(!o.disabled||t.target===o)&&h.call(o,t)}catch(d){b?u.push(d):b=d}if(t.cancelBubble||g===e||g===null)break;o=g}if(b){for(let d of u)queueMicrotask(()=>{throw d});throw b}}finally{t[xe]=e,delete t.currentTarget,tt(p),ct(c)}}}const go=globalThis?.window?.trustedTypes&&globalThis.window.trustedTypes.createPolicy("svelte-trusted-html",{createHTML:t=>t});function fo(t){return go?.createHTML(t)??t}function co(t){var e=vi("template");return e.innerHTML=fo(t.replaceAll("<!>","<!---->")),e.content}function he(t,e){var i=k;i.nodes===null&&(i.nodes={start:t,end:e,a:null,t:null})}function ut(t,e){var i=(e&ln)!==0,r,n=!t.startsWith("<!>");return()=>{if(w)return he($,null),$;r===void 0&&(r=co(n?t:"<!>"+t),r=Nt(r));var o=i||br?document.importNode(r,!0):r.cloneNode(!0);return he(o,o),o}}function uo(){if(w)return he($,null),$;var t=document.createDocumentFragment(),e=document.createComment(""),i=q();return t.append(e,i),he(e,i),t}function rt(t,e){if(w){var i=k;((i.f&Et)===0||i.nodes.end===null)&&(i.nodes.end=$),Te();return}t!==null&&t.before(e)}const xo=["touchstart","touchmove"];function ho(t){return xo.includes(t)}function Ge(t,e){var i=e==null?"":typeof e=="object"?`${e}`:e;i!==(t.__t??=t.nodeValue)&&(t.__t=i,t.nodeValue=`${i}`)}function Nr(t,e){return Br(t,e)}function yo(t,e){ni(),e.intro=e.intro??!1;const i=e.target,r=w,n=$;try{for(var o=Nt(i);o&&(o.nodeType!==te||o.data!==Ti);)o=Z(o);if(!o)throw Jt;lt(!0),I(o);const v=Br(t,{...e,anchor:o});return lt(!1),v}catch(v){if(v instanceof Error&&v.message.split(`
|
|
2
|
-
`).some(l=>l.startsWith("https://svelte.dev/e/")))throw v;return v!==
|
|
3
|
-
\r\f \v\uFEFF`];function Ro(t,e,i){var r=t==null?"":""+t;if(e&&(r=r?r+" "+e:e),i){for(var n of Object.keys(i))if(i[n])r=r?r+" "+n:n;else if(r.length)for(var o=n.length,v=0;(v=r.indexOf(n,v))>=0;){var l=v+o;(v===0||Pr.includes(r[v-1]))&&(l===r.length||Pr.includes(r[l]))?r=(v===0?"":r.substring(0,v))+r.substring(l+1):v=l}}return r===""?null:r}function To(t,e){return t==null?null:String(t)}function ve(t,e,i,r,n,o){var v=t.__className;if(w||v!==i||v===void 0){var l=Ro(i,r,o);(!w||l!==t.getAttribute("class"))&&(l==null?t.removeAttribute("class"):t.className=l),t.__className=i}else if(o&&n!==o)for(var a in o){var s=!!o[a];(n==null||s!==!!n[a])&&t.classList.toggle(a,s)}return o}function He(t,e,i,r){var n=t.__style;if(w||n!==e){var o=To(e);(!w||o!==t.getAttribute("style"))&&(o==null?t.removeAttribute("style"):t.style.cssText=o),t.__style=e}return r}const zo=Symbol("is custom element"),So=Symbol("is html"),Co=un?"link":"LINK";function le(t,e,i,r){var n=Mo(t);w&&(n[e]=t.getAttribute(e),e==="src"||e==="srcset"||e==="href"&&t.nodeName===Co)||n[e]!==(n[e]=i)&&(e==="loading"&&(t[cn]=i),i==null?t.removeAttribute(e):typeof i!="string"&&No(t).includes(e)?t[e]=i:t.setAttribute(e,i))}function Mo(t){return t.__attributes??={[zo]:t.nodeName.includes("-"),[So]:t.namespaceURI===Si}}var Dr=new Map;function No(t){var e=t.getAttribute("is")||t.nodeName,i=Dr.get(e);if(i)return i;Dr.set(e,i=[]);for(var r,n=t,o=Element.prototype;o!==n;){r=pn(n);for(var v in r)r[v].set&&i.push(v);n=Mi(n)}return i}function Bo(t,e,i=e){var r=new WeakSet;Qn(t,"input",async n=>{var o=n?t.defaultValue:t.value;if(o=ci(t)?ui(o):o,i(o),E!==null&&r.add(E),await so(),o!==(o=e())){var v=t.selectionStart,l=t.selectionEnd,a=t.value.length;if(t.value=o??"",l!==null){var s=t.value.length;v===l&&l===a&&s>a?(t.selectionStart=s,t.selectionEnd=s):(t.selectionStart=v,t.selectionEnd=Math.min(l,s))}}}),(w&&t.defaultValue!==t.value||De(e)==null&&t.value)&&(i(ci(t)?ui(t.value):t.value),E!==null&&r.add(E)),Oe(()=>{var n=e();if(t===document.activeElement){var o=E;if(r.has(o))return}ci(t)&&n===ui(t.value)||t.type==="date"&&!n&&!t.value||n!==t.value&&(t.value=n??"")})}function ci(t){var e=t.type;return e==="number"||e==="range"}function ui(t){return t===""?null:+t}function Gr(t,e){return t===e||t?.[me]===e}function Ir(t={},e,i,r){var n=W.r,o=k;return xr(()=>{var v,l;return Oe(()=>{v=l,l=[],De(()=>{t!==i(...l)&&(e(t,...l),v&&Gr(i(...v),t)&&e(null,...v))})}),()=>{let a=o;for(;a!==n&&a.parent!==null&&a.parent.f&Ke;)a=a.parent;const s=()=>{l&&Gr(i(...l),t)&&e(null,...l)},p=a.teardown;a.teardown=()=>{s(),p?.()}}}),t}function _e(t,e,i,r){var n=(i&on)!==0,o=(i&vn)!==0,v=r,l=!0,a=()=>(l&&(l=!1,v=o?De(r):r),v);let s;if(n){var p=me in t||Di in t;s=Gt(t,e)?.set??(p&&e in t?z=>t[e]=z:void 0)}var c,b=!1;n?[c,b]=Bn(()=>t[e]):c=t[e],c===void 0&&r!==void 0&&(c=a(),s&&(jn(),s(c)));var u;if(u=()=>{var z=t[e];return z===void 0?a():(l=!0,z)},(i&nn)===0)return u;if(s){var g=t.$$legacy;return(function(z,T){return arguments.length>0?((!T||g||b)&&s(T?u():z),z):u()})}var h=!1,d=((i&rn)!==0?Ne:nr)(()=>(h=!1,u()));n&&f(d);var y=k;return(function(z,T){if(arguments.length>0){const P=T?f(d):n?Mt(z):z;return S(d,P),h=!0,v!==void 0&&(v=P),z}return Bt&&h||(y.f&X)!==0?d.v:f(d)})}function Oo(t){return new Lo(t)}class Lo{#t;#i;constructor(e){var i=new Map,r=(o,v)=>{var l=ar(v,!1,!1);return i.set(o,l),l};const n=new Proxy({...e.props||{},$$events:{}},{get(o,v){return f(i.get(v)??r(v,Reflect.get(o,v)))},has(o,v){return v===Di?!0:(f(i.get(v)??r(v,Reflect.get(o,v))),Reflect.has(o,v))},set(o,v,l){return S(i.get(v)??r(v,l),l),Reflect.set(o,v,l)}});this.#i=(e.hydrate?yo:Nr)(e.component,{target:e.target,anchor:e.anchor,props:n,context:e.context,intro:e.intro??!1,recover:e.recover,transformError:e.transformError}),(!e?.props?.$$host||e.sync===!1)&&Ft(),this.#t=n.$$events;for(const o of Object.keys(this.#i))o==="$set"||o==="$destroy"||o==="$on"||je(this,o,{get(){return this.#i[o]},set(v){this.#i[o]=v},enumerable:!0});this.#i.$set=o=>{Object.assign(n,o)},this.#i.$destroy=()=>{wo(this.#i)}}$set(e){this.#i.$set(e)}$on(e,i){this.#t[e]=this.#t[e]||[];const r=(...n)=>i.call(this,...n);return this.#t[e].push(r),()=>{this.#t[e]=this.#t[e].filter(n=>n!==r)}}$destroy(){this.#i.$destroy()}}let Hr;typeof HTMLElement=="function"&&(Hr=class extends HTMLElement{$$ctor;$$s;$$c;$$cn=!1;$$d={};$$r=!1;$$p_d={};$$l={};$$l_u=new Map;$$me;$$shadowRoot=null;constructor(t,e,i){super(),this.$$ctor=t,this.$$s=e,i&&(this.$$shadowRoot=this.attachShadow(i))}addEventListener(t,e,i){if(this.$$l[t]=this.$$l[t]||[],this.$$l[t].push(e),this.$$c){const r=this.$$c.$on(t,e);this.$$l_u.set(e,r)}super.addEventListener(t,e,i)}removeEventListener(t,e,i){if(super.removeEventListener(t,e,i),this.$$c){const r=this.$$l_u.get(e);r&&(r(),this.$$l_u.delete(e))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let t=function(r){return n=>{const o=vi("slot");r!=="default"&&(o.name=r),rt(n,o)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const e={},i=Po(this);for(const r of this.$$s)r in i&&(r==="default"&&!this.$$d.children?(this.$$d.children=t(r),e.default=!0):e[r]=t(r));for(const r of this.attributes){const n=this.$$g_p(r.name);n in this.$$d||(this.$$d[n]=Fe(n,r.value,this.$$p_d,"toProp"))}for(const r in this.$$p_d)!(r in this.$$d)&&this[r]!==void 0&&(this.$$d[r]=this[r],delete this[r]);this.$$c=Oo({component:this.$$ctor,target:this.$$shadowRoot||this,props:{...this.$$d,$$slots:e,$$host:this}}),this.$$me=io(()=>{Oe(()=>{this.$$r=!0;for(const r of $e(this.$$c)){if(!this.$$p_d[r]?.reflect)continue;this.$$d[r]=this.$$c[r];const n=Fe(r,this.$$d[r],this.$$p_d,"toAttribute");n==null?this.removeAttribute(this.$$p_d[r].attribute||r):this.setAttribute(this.$$p_d[r].attribute||r,n)}this.$$r=!1})});for(const r in this.$$l)for(const n of this.$$l[r]){const o=this.$$c.$on(r,n);this.$$l_u.set(n,o)}this.$$l={}}}attributeChangedCallback(t,e,i){this.$$r||(t=this.$$g_p(t),this.$$d[t]=Fe(t,i,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 $e(this.$$p_d).find(e=>this.$$p_d[e].attribute===t||!this.$$p_d[e].attribute&&e.toLowerCase()===t)||t}});function Fe(t,e,i,r){const n=i[t]?.type;if(e=n==="Boolean"&&typeof e!="boolean"?e!=null:e,!r||!i[t])return e;if(r==="toAttribute")switch(n){case"Object":case"Array":return e==null?null:JSON.stringify(e);case"Boolean":return e?"":null;case"Number":return e??null;default:return e}else switch(n){case"Object":case"Array":return e&&JSON.parse(e);case"Boolean":return e;case"Number":return e!=null?+e:e;default:return e}}function Po(t){const e={};return t.childNodes.forEach(i=>{e[i.slot||"default"]=!0}),e}function Do(t,e,i,r,n,o){let v=class extends Hr{constructor(){super(t,i,n),this.$$p_d=e}static get observedAttributes(){return $e(e).map(l=>(e[l].attribute||l).toLowerCase())}};return $e(e).forEach(l=>{je(v.prototype,l,{get(){return this.$$c&&l in this.$$c?this.$$c[l]:this.$$d[l]},set(a){a=Fe(l,a,e),this.$$d[l]=a;var s=this.$$c;if(s){var p=Gt(s,l)?.get;p?s[l]=a:s.$set({[l]:a})}}})}),r.forEach(l=>{je(v.prototype,l,{get(){return this.$$c?.[l]}})}),t.element=v,v}var Kt={},Fr;function Go(){if(Fr)return Kt;Fr=1,Object.defineProperty(Kt,"__esModule",{value:!0}),Kt.LanguageTranslator=void 0,Kt.getChildStyleToPass=t,Kt.addComponent=e;function t(r,n){var o,v,l="";try{if(r&&n?.length&&(!((o=Object.keys(r))===null||o===void 0)&&o.length)&&(!((v=n?.filter(function(b){return Object.keys(r).includes(b.name)}))===null||v===void 0)&&v.length))for(var a=function(b){var u=n?.filter(function(g){return g.name===b&&g.defaultValue!==r[b]});u&&(l+="".concat(b,":").concat(r[b],";"))},s=0,p=Object.keys(r);s<p.length;s++){var c=p[s];a(c)}}catch(b){console.error("error getting child style to pass",b)}finally{return l}}function e(r){var n,o=((n=r?.repoName.split("/"))===null||n===void 0?void 0:n[1])||r?.repoName;if(!o)throw new Error("wrong componentPath "+r?.repoName);if(!r?.version)throw new Error("wrong version "+r?.version);var v=r?.iifePath||"main.iife.js";if(!document.getElementById(o+"-script"))try{var l=document.createElement("script");if(l.id=o+"-script",l.src="https://cdn.jsdelivr.net/npm/".concat(r.repoName,"@").concat(r.version,"/").concat(v),r?.local)l.src="".concat(r.local);else if(location.href.includes("localhost:6006")){var a=o.split("-")[0];l.src="http://localhost:6006/webcomponents/".concat(o.replace(a+"-",""),"/").concat(v)}document.head.appendChild(l)}catch(s){console.warn(s)}}var i=(function(){function r(n){if(this.lang="",!n?.dictionary)throw new Error("no dictionary provided");this.dictionary=n.dictionary,this.setLang(n?.lang)}return r.prototype.setLang=function(n){n||(n=r.getDefaultLang()),this.lang=n},r.prototype.translateWord=function(n,o){return r.getDictionaryWord(n,this.dictionary,o||this.lang)},r.prototype.translateDate=function(n,o,v){return r.formatDate(n,o,v||this.lang)},r.getDefaultLang=function(){var n,o,v,l="en";return navigator?.languages&&(!((v=(o=(n=navigator.languages[0])===null||n===void 0?void 0:n.split("-")[0])===null||o===void 0?void 0:o.toLowerCase())===null||v===void 0)&&v.length)&&(l=navigator.languages[0].split("-")[0].toLowerCase()),l},r.getDictionaryWord=function(n,o,v){var l;if(!n)throw new Error("no wordKey provided");if(!o)throw new Error("no dictionary provided");if(v&&(!((l=o[v])===null||l===void 0)&&l[n]))return o[v][n];var a="",s=r.getDefaultLang();if(!v||s!==v){var p=o?.[s];p?.[n]&&(a=p[n])}return a},r.formatDate=function(n,o,v){if(!n)throw new Error("no date provided");if(typeof n.getMonth!="function")throw new Error("wrong date format");var l=new Intl.DateTimeFormat(v||r.getDefaultLang(),o);return l.format(n)},r})();return Kt.LanguageTranslator=i,Kt}Go();var Io=ut('<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@latest/font/bootstrap-icons.css" class="svelte-1p3vbiv"/>'),Ho=ut('<img class="file-image svelte-1p3vbiv"/>'),Fo=ut("<i></i>"),Uo=ut('<div class="col-6 col-md-4 col-lg-3 svelte-1p3vbiv"><div class="file-card svelte-1p3vbiv"><div class="file-preview svelte-1p3vbiv"><!></div> <div class="file-details svelte-1p3vbiv"><div class="file-name svelte-1p3vbiv"> </div> <div class="file-meta svelte-1p3vbiv"><span class="file-size svelte-1p3vbiv"> </span></div></div> <button type="button" class="btn btn-sm btn-outline-danger remove-file-btn svelte-1p3vbiv" aria-label="Remove file" title="Remove file"><i class="bi bi-x svelte-1p3vbiv"></i></button></div></div>'),Yo=ut('<div id="files-display" class="svelte-1p3vbiv"><div class="row g-2 svelte-1p3vbiv"></div></div>'),Vo=ut('<button id="maximize-button" type="button"><i></i></button>'),Wo=ut('<span class="position-absolute top-0 start-100 translate-middle badge rounded-pill bg-danger svelte-1p3vbiv"> <span class="visually-hidden svelte-1p3vbiv">selected files</span></span>'),qo=ut('<label id="upload-file" class="btn file-button btn-sm position-relative svelte-1p3vbiv" style="--tag-color: var(--bs-primary, #007bff)"><input type="file" class="svelte-1p3vbiv"/> <i class="bi bi-paperclip svelte-1p3vbiv"></i> <!></label>'),Ko=ut('<button type="button"><i></i> </button>'),Jo=ut('<div id="chat-container" class="svelte-1p3vbiv"><div id="chat-box" class="svelte-1p3vbiv"><!> <div id="textarea-container" class="svelte-1p3vbiv"><textarea id="send-message-text" placeholder="Type your message..."></textarea> <!></div> <div id="buttons-container" class="svelte-1p3vbiv"><div id="left-buttons" class="svelte-1p3vbiv"><!> <!></div> <div id="right-buttons" class="svelte-1p3vbiv"><button type="button" id="send-message-button" aria-label="Send message" class="svelte-1p3vbiv"><i class="bi bi-send-fill svelte-1p3vbiv"></i></button></div></div></div></div>');const Xo={hash:"svelte-1p3vbiv",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(Ei){"use strict";typeof window<"u"&&((window.__svelte??={}).v??=new Set).add("5");const Jr=1,Xr=2,Ai=4,Zr=8,Qr=16,tn=1,en=4,rn=8,nn=16,on=2,Ri="[",Ye="[!",zi="[?",Ve="]",Kt={},L=Symbol(),Ti="http://www.w3.org/1999/xhtml",vn=!1;var Si=Array.isArray,ln=Array.prototype.indexOf,Jt=Array.prototype.includes,_e=Array.from,ke=Object.keys,$e=Object.defineProperty,It=Object.getOwnPropertyDescriptor,an=Object.getOwnPropertyDescriptors,sn=Object.prototype,pn=Array.prototype,Ci=Object.getPrototypeOf,Mi=Object.isExtensible;const bn=()=>{};function mn(t){for(var e=0;e<t.length;e++)t[e]()}function Ni(){var t,e,i=new Promise((r,n)=>{t=r,e=n});return{promise:i,resolve:t,reject:e}}const O=2,Xt=4,je=8,Bi=1<<24,$t=16,vt=32,jt=64,We=128,J=512,N=1024,I=2048,mt=4096,V=8192,X=16384,Et=32768,qe=1<<25,Zt=65536,Oi=1<<17,Pi=1<<18,At=1<<19,dn=1<<20,dt=1<<25,Dt=65536,Ke=1<<21,Je=1<<22,Rt=1<<23,be=Symbol("$state"),Gi=Symbol("legacy props"),gn=Symbol(""),ht=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"},fn=!!globalThis.document?.contentType&&globalThis.document.contentType.includes("xml"),Ee=3,Qt=8;function cn(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function un(t,e,i){throw new Error("https://svelte.dev/e/each_key_duplicate")}function xn(t){throw new Error("https://svelte.dev/e/effect_in_teardown")}function hn(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function yn(t){throw new Error("https://svelte.dev/e/effect_orphan")}function wn(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function _n(){throw new Error("https://svelte.dev/e/hydration_failed")}function kn(t){throw new Error("https://svelte.dev/e/props_invalid_value")}function $n(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function jn(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function En(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function An(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}function Ae(t){console.warn("https://svelte.dev/e/hydration_mismatch")}function Rn(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}let w=!1;function lt(t){w=t}let $;function D(t){if(t===null)throw Ae(),Kt;return $=t}function Re(){return D(Z($))}function B(t){if(w){if(Z($)!==null)throw Ae(),Kt;$=t}}function Li(t=1){if(w){for(var e=t,i=$;e--;)i=Z(i);$=i}}function ze(t=!0){for(var e=0,i=$;;){if(i.nodeType===Qt){var r=i.data;if(r===Ve){if(e===0)return i;e-=1}else(r===Ri||r===Ye||r[0]==="["&&!isNaN(Number(r.slice(1))))&&(e+=1)}var n=Z(i);t&&i.remove(),i=n}}function Ii(t){if(!t||t.nodeType!==Qt)throw Ae(),Kt;return t.data}function Di(t){return t===this.v}function zn(t,e){return t!=t?e==e:t!==e||t!==null&&typeof t=="object"||typeof t=="function"}function Hi(t){return!zn(t,this.v)}let Tn=!1,W=null;function te(t){W=t}function Fi(t,e=!1,i){W={p:W,i:!1,c:null,e:null,s:t,x:null,r:k,l:null}}function Ui(t){var e=W,i=e.e;if(i!==null){e.e=null;for(var r of i)cr(r)}return t!==void 0&&(e.x=t),e.i=!0,W=e.p,t??{}}function Yi(){return!0}let Ht=[];function Vi(){var t=Ht;Ht=[],mn(t)}function zt(t){if(Ht.length===0&&!me){var e=Ht;queueMicrotask(()=>{e===Ht&&Vi()})}Ht.push(t)}function Sn(){for(;Ht.length>0;)Vi()}function Wi(t){var e=k;if(e===null)return _.f|=Rt,t;if((e.f&Et)===0&&(e.f&Xt)===0)throw t;Tt(t,e)}function Tt(t,e){for(;e!==null;){if((e.f&We)!==0){if((e.f&Et)===0)throw t;try{e.b.error(t);return}catch(i){t=i}}e=e.parent}throw t}const Cn=-7169;function C(t,e){t.f=t.f&Cn|e}function Xe(t){(t.f&J)!==0||t.deps===null?C(t,N):C(t,mt)}function qi(t){if(t!==null)for(const e of t)(e.f&O)===0||(e.f&Dt)===0||(e.f^=Dt,qi(e.deps))}function Ki(t,e,i){(t.f&I)!==0?e.add(t):(t.f&mt)!==0&&i.add(t),qi(t.deps),C(t,N)}let Te=!1;function Mn(t){var e=Te;try{return Te=!1,[t(),Te]}finally{Te=e}}const St=new Set;let E=null,at=null,Ze=null,me=!1,Qe=!1,ee=null,Se=null;var Ji=0;let Nn=1;class yt{id=Nn++;current=new Map;previous=new Map;#t=new Set;#i=new Set;#e=new Map;#n=new Map;#o=null;#r=[];#v=new Set;#l=new Set;#a=new Map;is_fork=!1;#b=!1;#s=new Set;#m(){return this.is_fork||this.#n.size>0}#g(){for(const r of this.#s)for(const n of r.#n.keys()){for(var e=!1,i=n;i.parent!==null;){if(this.#a.has(i)){e=!0;break}i=i.parent}if(!e)return!0}return!1}skip_effect(e){this.#a.has(e)||this.#a.set(e,{d:[],m:[]})}unskip_effect(e){var i=this.#a.get(e);if(i){this.#a.delete(e);for(var r of i.d)C(r,I),this.schedule(r);for(r of i.m)C(r,mt),this.schedule(r)}}#d(){if(Ji++>1e3&&(St.delete(this),Bn()),!this.#m()){for(const l of this.#v)this.#l.delete(l),C(l,I),this.schedule(l);for(const l of this.#l)C(l,mt),this.schedule(l)}const e=this.#r;this.#r=[],this.apply();var i=ee=[],r=[],n=Se=[];for(const l of e)try{this.#p(l,i,r)}catch(a){throw er(l),a}if(E=null,n.length>0){var o=yt.ensure();for(const l of n)o.schedule(l)}if(ee=null,Se=null,this.#m()||this.#g()){this.#f(r),this.#f(i);for(const[l,a]of this.#a)tr(l,a)}else{this.#e.size===0&&St.delete(this),this.#v.clear(),this.#l.clear();for(const l of this.#t)l(this);this.#t.clear(),Xi(r),Xi(i),this.#o?.resolve()}var v=E;if(this.#r.length>0){const l=v??=this;l.#r.push(...this.#r.filter(a=>!l.#r.includes(a)))}v!==null&&(St.add(v),v.#d()),St.has(this)||this.#c()}#p(e,i,r){e.f^=N;for(var n=e.first;n!==null;){var o=n.f,v=(o&(vt|jt))!==0,l=v&&(o&N)!==0,a=l||(o&V)!==0||this.#a.has(n);if(!a&&n.fn!==null){v?n.f^=N:(o&Xt)!==0?i.push(n):fe(n)&&((o&$t)!==0&&this.#l.add(n),re(n));var s=n.first;if(s!==null){n=s;continue}}for(;n!==null;){var p=n.next;if(p!==null){n=p;break}n=n.parent}}}#f(e){for(var i=0;i<e.length;i+=1)Ki(e[i],this.#v,this.#l)}capture(e,i,r=!1){i!==L&&!this.previous.has(e)&&this.previous.set(e,i),(e.f&Rt)===0&&(this.current.set(e,[e.v,r]),at?.set(e,e.v))}activate(){E=this}deactivate(){E=null,at=null}flush(){try{Qe=!0,E=this,this.#d()}finally{Ji=0,Ze=null,ee=null,Se=null,Qe=!1,E=null,at=null,Ct.clear()}}discard(){for(const e of this.#i)e(this);this.#i.clear(),St.delete(this)}#c(){for(const s of St){var e=s.id<this.id,i=[];for(const[p,[c,b]]of this.current){if(s.current.has(p)){var r=s.current.get(p)[0];if(e&&c!==r)s.current.set(p,[c,b]);else continue}i.push(p)}var n=[...s.current.keys()].filter(p=>!this.current.has(p));if(n.length===0)e&&s.discard();else if(i.length>0){s.activate();var o=new Set,v=new Map;for(var l of i)Zi(l,n,o,v);if(s.#r.length>0){s.apply();for(var a of s.#r)s.#p(a,[],[]);s.#r=[]}s.deactivate()}}for(const s of St)s.#s.has(this)&&(s.#s.delete(this),s.#s.size===0&&!s.#m()&&(s.activate(),s.#d()))}increment(e,i){let r=this.#e.get(i)??0;if(this.#e.set(i,r+1),e){let n=this.#n.get(i)??0;this.#n.set(i,n+1)}}decrement(e,i,r){let n=this.#e.get(i)??0;if(n===1?this.#e.delete(i):this.#e.set(i,n-1),e){let o=this.#n.get(i)??0;o===1?this.#n.delete(i):this.#n.set(i,o-1)}this.#b||r||(this.#b=!0,zt(()=>{this.#b=!1,this.flush()}))}transfer_effects(e,i){for(const r of e)this.#v.add(r);for(const r of i)this.#l.add(r);e.clear(),i.clear()}oncommit(e){this.#t.add(e)}ondiscard(e){this.#i.add(e)}settled(){return(this.#o??=Ni()).promise}static ensure(){if(E===null){const e=E=new yt;Qe||(St.add(E),me||zt(()=>{E===e&&e.flush()}))}return E}apply(){{at=null;return}}schedule(e){if(Ze=e,e.b?.is_pending&&(e.f&(Xt|je|Bi))!==0&&(e.f&Et)===0){e.b.defer_effect(e);return}for(var i=e;i.parent!==null;){i=i.parent;var r=i.f;if(ee!==null&&i===k&&(_===null||(_.f&O)===0))return;if((r&(jt|vt))!==0){if((r&N)===0)return;i.f^=N}}this.#r.push(i)}}function Ft(t){var e=me;me=!0;try{for(var i;;){if(Sn(),E===null)return i;E.flush()}}finally{me=e}}function Bn(){try{wn()}catch(t){Tt(t,Ze)}}let wt=null;function Xi(t){var e=t.length;if(e!==0){for(var i=0;i<e;){var r=t[i++];if((r.f&(X|V))===0&&fe(r)&&(wt=new Set,re(r),r.deps===null&&r.first===null&&r.nodes===null&&r.teardown===null&&r.ac===null&&hr(r),wt?.size>0)){Ct.clear();for(const n of wt){if((n.f&(X|V))!==0)continue;const o=[n];let v=n.parent;for(;v!==null;)wt.has(v)&&(wt.delete(v),o.push(v)),v=v.parent;for(let l=o.length-1;l>=0;l--){const a=o[l];(a.f&(X|V))===0&&re(a)}}wt.clear()}}wt=null}}function Zi(t,e,i,r){if(!i.has(t)&&(i.add(t),t.reactions!==null))for(const n of t.reactions){const o=n.f;(o&O)!==0?Zi(n,e,i,r):(o&(Je|$t))!==0&&(o&I)===0&&Qi(n,e,r)&&(C(n,I),ti(n))}}function Qi(t,e,i){const r=i.get(t);if(r!==void 0)return r;if(t.deps!==null)for(const n of t.deps){if(Jt.call(e,n))return!0;if((n.f&O)!==0&&Qi(n,e,i))return i.set(n,!0),!0}return i.set(t,!1),!1}function ti(t){E.schedule(t)}function tr(t,e){if(!((t.f&vt)!==0&&(t.f&N)!==0)){(t.f&I)!==0?e.d.push(t):(t.f&mt)!==0&&e.m.push(t),C(t,N);for(var i=t.first;i!==null;)tr(i,e),i=i.next}}function er(t){C(t,N);for(var e=t.first;e!==null;)er(e),e=e.next}function On(t){let e=0,i=Ut(0),r;return()=>{li()&&(g(i),Be(()=>(e===0&&(r=Ge(()=>t(()=>de(i)))),e+=1,()=>{zt(()=>{e-=1,e===0&&(r?.(),r=void 0,de(i))})})))}}var Pn=Zt|At;function Gn(t,e,i,r){new Ln(t,e,i,r)}class Ln{parent;is_pending=!1;transform_error;#t;#i=w?$:null;#e;#n;#o;#r=null;#v=null;#l=null;#a=null;#b=0;#s=0;#m=!1;#g=new Set;#d=new Set;#p=null;#f=On(()=>(this.#p=Ut(this.#b),()=>{this.#p=null}));constructor(e,i,r,n){this.#t=e,this.#e=i,this.#n=o=>{var v=k;v.b=this,v.f|=We,r(o)},this.parent=k.b,this.transform_error=n??this.parent?.transform_error??(o=>o),this.#o=Oe(()=>{if(w){const o=this.#i;Re();const v=o.data===Ye;if(o.data.startsWith(zi)){const a=JSON.parse(o.data.slice(zi.length));this.#w(a)}else v?this.#_():this.#c()}else this.#h()},Pn),w&&(this.#t=$)}#c(){try{this.#r=Q(()=>this.#n(this.#t))}catch(e){this.error(e)}}#w(e){const i=this.#e.failed;i&&(this.#l=Q(()=>{i(this.#t,()=>e,()=>()=>{})}))}#_(){const e=this.#e.pending;e&&(this.is_pending=!0,this.#v=Q(()=>e(this.#t)),zt(()=>{var i=this.#a=document.createDocumentFragment(),r=q();i.append(r),this.#r=this.#x(()=>Q(()=>this.#n(r))),this.#s===0&&(this.#t.before(i),this.#a=null,Yt(this.#v,()=>{this.#v=null}),this.#u(E))}))}#h(){try{if(this.is_pending=this.has_pending_snippet(),this.#s=0,this.#b=0,this.#r=Q(()=>{this.#n(this.#t)}),this.#s>0){var e=this.#a=document.createDocumentFragment();pi(this.#r,e);const i=this.#e.pending;this.#v=Q(()=>i(this.#t))}else this.#u(E)}catch(i){this.error(i)}}#u(e){this.is_pending=!1,e.transfer_effects(this.#g,this.#d)}defer_effect(e){Ki(e,this.#g,this.#d)}is_rendered(){return!this.is_pending&&(!this.parent||this.parent.is_rendered())}has_pending_snippet(){return!!this.#e.pending}#x(e){var i=k,r=_,n=W;ct(this.#o),tt(this.#o),te(this.#o.ctx);try{return yt.ensure(),e()}catch(o){return Wi(o),null}finally{ct(i),tt(r),te(n)}}#y(e,i){if(!this.has_pending_snippet()){this.parent&&this.parent.#y(e,i);return}this.#s+=e,this.#s===0&&(this.#u(i),this.#v&&Yt(this.#v,()=>{this.#v=null}),this.#a&&(this.#t.before(this.#a),this.#a=null))}update_pending_count(e,i){this.#y(e,i),this.#b+=e,!(!this.#p||this.#m)&&(this.#m=!0,zt(()=>{this.#m=!1,this.#p&&ie(this.#p,this.#b)}))}get_effect_pending(){return this.#f(),g(this.#p)}error(e){var i=this.#e.onerror;let r=this.#e.failed;if(!i&&!r)throw e;this.#r&&(F(this.#r),this.#r=null),this.#v&&(F(this.#v),this.#v=null),this.#l&&(F(this.#l),this.#l=null),w&&(D(this.#i),Li(),D(ze()));var n=!1,o=!1;const v=()=>{if(n){Rn();return}n=!0,o&&An(),this.#l!==null&&Yt(this.#l,()=>{this.#l=null}),this.#x(()=>{this.#h()})},l=a=>{try{o=!0,i?.(a,v),o=!1}catch(s){Tt(s,this.#o&&this.#o.parent)}r&&(this.#l=this.#x(()=>{try{return Q(()=>{var s=k;s.b=this,s.f|=We,r(this.#t,()=>a,()=>v)})}catch(s){return Tt(s,this.#o.parent),null}}))};zt(()=>{var a;try{a=this.transform_error(e)}catch(s){Tt(s,this.#o&&this.#o.parent);return}a!==null&&typeof a=="object"&&typeof a.then=="function"?a.then(l,s=>Tt(s,this.#o&&this.#o.parent)):l(a)})}}function In(t,e,i,r){const n=Me;var o=t.filter(b=>!b.settled);if(i.length===0&&o.length===0){r(e.map(n));return}var v=k,l=Dn(),a=o.length===1?o[0].promise:o.length>1?Promise.all(o.map(b=>b.promise)):null;function s(b){l();try{r(b)}catch(u){(v.f&X)===0&&Tt(u,v)}Ce()}if(i.length===0){a.then(()=>s(e.map(n)));return}var p=ir();function c(){Promise.all(i.map(b=>Hn(b))).then(b=>s([...e.map(n),...b])).catch(b=>Tt(b,v)).finally(()=>p())}a?a.then(()=>{l(),c(),Ce()}):c()}function Dn(){var t=k,e=_,i=W,r=E;return function(o=!0){ct(t),tt(e),te(i),o&&(t.f&X)===0&&(r?.activate(),r?.apply())}}function Ce(t=!0){ct(null),tt(null),te(null),t&&E?.deactivate()}function ir(){var t=k,e=t.b,i=E,r=e.is_rendered();return e.update_pending_count(1,i),i.increment(r,t),(n=!1)=>{e.update_pending_count(-1,i),i.decrement(r,t,n)}}function Me(t){var e=O|I,i=_!==null&&(_.f&O)!==0?_:null;return k!==null&&(k.f|=At),{ctx:W,deps:null,effects:null,equals:Di,f:e,fn:t,reactions:null,rv:0,v:L,wv:0,parent:i??k,ac:null}}function Hn(t,e,i){let r=k;r===null&&cn();var n=void 0,o=Ut(L),v=!_,l=new Map;return io(()=>{var a=k,s=Ni();n=s.promise;try{Promise.resolve(t()).then(s.resolve,s.reject).finally(Ce)}catch(u){s.reject(u),Ce()}var p=E;if(v){if((a.f&Et)!==0)var c=ir();if(r.b.is_rendered())l.get(p)?.reject(ht),l.delete(p);else{for(const u of l.values())u.reject(ht);l.clear()}l.set(p,s)}const b=(u,f=void 0)=>{if(c){var h=f===ht;c(h)}if(!(f===ht||(a.f&X)!==0)){if(p.activate(),f)o.f|=Rt,ie(o,f);else{(o.f&Rt)!==0&&(o.f^=Rt),ie(o,u);for(const[d,y]of l){if(l.delete(d),d===p)break;y.reject(ht)}}p.deactivate()}};s.promise.then(b,u=>b(null,u||"unknown"))}),fr(()=>{for(const a of l.values())a.reject(ht)}),new Promise(a=>{function s(p){function c(){p===n?a(o):s(n)}p.then(c,c)}s(n)})}function Fn(t){const e=Me(t);return kr(e),e}function rr(t){const e=Me(t);return e.equals=Hi,e}function Un(t){var e=t.effects;if(e!==null){t.effects=null;for(var i=0;i<e.length;i+=1)F(e[i])}}function Yn(t){for(var e=t.parent;e!==null;){if((e.f&O)===0)return(e.f&X)===0?e:null;e=e.parent}return null}function ei(t){var e,i=k;ct(Yn(t));try{t.f&=~Dt,Un(t),e=Rr(t)}finally{ct(i)}return e}function nr(t){var e=t.v,i=ei(t);if(!t.equals(i)&&(t.wv=Er(),(!E?.is_fork||t.deps===null)&&(t.v=i,E?.capture(t,e,!0),t.deps===null))){C(t,N);return}Bt||(at!==null?(li()||E?.is_fork)&&at.set(t,i):Xe(t))}function Vn(t){if(t.effects!==null)for(const e of t.effects)(e.teardown||e.ac)&&(e.teardown?.(),e.ac?.abort(ht),e.teardown=bn,e.ac=null,ce(e,0),ai(e))}function or(t){if(t.effects!==null)for(const e of t.effects)e.teardown&&re(e)}let ii=new Set;const Ct=new Map;let vr=!1;function Ut(t,e){var i={f:0,v:t,reactions:null,equals:Di,rv:0,wv:0};return i}function H(t,e){const i=Ut(t);return kr(i),i}function lr(t,e=!1,i=!0){const r=Ut(t);return e||(r.equals=Hi),r}function S(t,e,i=!1){_!==null&&(!st||(_.f&Oi)!==0)&&Yi()&&(_.f&(O|$t|Je|Oi))!==0&&(et===null||!Jt.call(et,t))&&En();let r=i?Mt(e):e;return ie(t,r,Se)}function ie(t,e,i=null){if(!t.equals(e)){var r=t.v;Bt?Ct.set(t,e):Ct.set(t,r),t.v=e;var n=yt.ensure();if(n.capture(t,r),(t.f&O)!==0){const o=t;(t.f&I)!==0&&ei(o),at===null&&Xe(o)}t.wv=Er(),ar(t,I,i),k!==null&&(k.f&N)!==0&&(k.f&(vt|jt))===0&&(it===null?oo([t]):it.push(t)),!n.is_fork&&ii.size>0&&!vr&&Wn()}return e}function Wn(){vr=!1;for(const t of ii)(t.f&N)!==0&&C(t,mt),fe(t)&&re(t);ii.clear()}function de(t){S(t,t.v+1)}function ar(t,e,i){var r=t.reactions;if(r!==null)for(var n=r.length,o=0;o<n;o++){var v=r[o],l=v.f,a=(l&I)===0;if(a&&C(v,e),(l&O)!==0){var s=v;at?.delete(s),(l&Dt)===0&&(l&J&&(v.f|=Dt),ar(s,mt,i))}else if(a){var p=v;(l&$t)!==0&&wt!==null&&wt.add(p),i!==null?i.push(p):ti(p)}}}function Mt(t){if(typeof t!="object"||t===null||be in t)return t;const e=Ci(t);if(e!==sn&&e!==pn)return t;var i=new Map,r=Si(t),n=H(0),o=Wt,v=l=>{if(Wt===o)return l();var a=_,s=Wt;tt(null),jr(o);var p=l();return tt(a),jr(s),p};return r&&i.set("length",H(t.length)),new Proxy(t,{defineProperty(l,a,s){(!("value"in s)||s.configurable===!1||s.enumerable===!1||s.writable===!1)&&$n();var p=i.get(a);return p===void 0?v(()=>{var c=H(s.value);return i.set(a,c),c}):S(p,s.value,!0),!0},deleteProperty(l,a){var s=i.get(a);if(s===void 0){if(a in l){const p=v(()=>H(L));i.set(a,p),de(n)}}else S(s,L),de(n);return!0},get(l,a,s){if(a===be)return t;var p=i.get(a),c=a in l;if(p===void 0&&(!c||It(l,a)?.writable)&&(p=v(()=>{var u=Mt(c?l[a]:L),f=H(u);return f}),i.set(a,p)),p!==void 0){var b=g(p);return b===L?void 0:b}return Reflect.get(l,a,s)},getOwnPropertyDescriptor(l,a){var s=Reflect.getOwnPropertyDescriptor(l,a);if(s&&"value"in s){var p=i.get(a);p&&(s.value=g(p))}else if(s===void 0){var c=i.get(a),b=c?.v;if(c!==void 0&&b!==L)return{enumerable:!0,configurable:!0,value:b,writable:!0}}return s},has(l,a){if(a===be)return!0;var s=i.get(a),p=s!==void 0&&s.v!==L||Reflect.has(l,a);if(s!==void 0||k!==null&&(!p||It(l,a)?.writable)){s===void 0&&(s=v(()=>{var b=p?Mt(l[a]):L,u=H(b);return u}),i.set(a,s));var c=g(s);if(c===L)return!1}return p},set(l,a,s,p){var c=i.get(a),b=a in l;if(r&&a==="length")for(var u=s;u<c.v;u+=1){var f=i.get(u+"");f!==void 0?S(f,L):u in l&&(f=v(()=>H(L)),i.set(u+"",f))}if(c===void 0)(!b||It(l,a)?.writable)&&(c=v(()=>H(void 0)),S(c,Mt(s)),i.set(a,c));else{b=c.v!==L;var h=v(()=>Mt(s));S(c,h)}var d=Reflect.getOwnPropertyDescriptor(l,a);if(d?.set&&d.set.call(p,s),!b){if(r&&typeof a=="string"){var y=i.get("length"),T=Number(a);Number.isInteger(T)&&T>=y.v&&S(y,T+1)}de(n)}return!0},ownKeys(l){g(n);var a=Reflect.ownKeys(l).filter(c=>{var b=i.get(c);return b===void 0||b.v!==L});for(var[s,p]of i)p.v!==L&&!(s in l)&&a.push(s);return a},setPrototypeOf(){jn()}})}var sr,pr,br,mr;function ri(){if(sr===void 0){sr=window,pr=/Firefox/.test(navigator.userAgent);var t=Element.prototype,e=Node.prototype,i=Text.prototype;br=It(e,"firstChild").get,mr=It(e,"nextSibling").get,Mi(t)&&(t.__click=void 0,t.__className=void 0,t.__attributes=null,t.__style=void 0,t.__e=void 0),Mi(i)&&(i.__t=void 0)}}function q(t=""){return document.createTextNode(t)}function Nt(t){return br.call(t)}function Z(t){return mr.call(t)}function P(t,e){if(!w)return Nt(t);var i=Nt($);if(i===null)i=$.appendChild(q());else if(e&&i.nodeType!==Ee){var r=q();return i?.before(r),D(r),r}return e&&vi(i),D(i),i}function qn(t,e=!1){if(!w){var i=Nt(t);return i instanceof Comment&&i.data===""?Z(i):i}if(e){if($?.nodeType!==Ee){var r=q();return $?.before(r),D(r),r}vi($)}return $}function gt(t,e=1,i=!1){let r=w?$:t;for(var n;e--;)n=r,r=Z(r);if(!w)return r;if(i){if(r?.nodeType!==Ee){var o=q();return r===null?n?.after(o):r.before(o),D(o),o}vi(r)}return D(r),r}function ni(t){t.textContent=""}function dr(){return!1}function oi(t,e,i){return document.createElementNS(Ti,t,void 0)}function vi(t){if(t.nodeValue.length<65536)return;let e=t.nextSibling;for(;e!==null&&e.nodeType===Ee;)e.remove(),t.nodeValue+=e.nodeValue,e=t.nextSibling}function Kn(t){w&&Nt(t)!==null&&ni(t)}let gr=!1;function Jn(){gr||(gr=!0,document.addEventListener("reset",t=>{Promise.resolve().then(()=>{if(!t.defaultPrevented)for(const e of t.target.elements)e.__on_r?.()})},{capture:!0}))}function Ne(t){var e=_,i=k;tt(null),ct(null);try{return t()}finally{tt(e),ct(i)}}function Xn(t,e,i,r=i){t.addEventListener(e,()=>Ne(i));const n=t.__on_r;n?t.__on_r=()=>{n(),r(!0)}:t.__on_r=()=>r(!0),Jn()}function Zn(t){k===null&&(_===null&&yn(),hn()),Bt&&xn()}function Qn(t,e){var i=e.last;i===null?e.last=e.first=t:(i.next=t,t.prev=i,e.last=t)}function ft(t,e){var i=k;i!==null&&(i.f&V)!==0&&(t|=V);var r={ctx:W,deps:null,nodes:null,f:t|I|J,first:null,fn:e,last:null,next:null,parent:i,b:i&&i.b,prev:null,teardown:null,wv:0,ac:null},n=r;if((t&Xt)!==0)ee!==null?ee.push(r):yt.ensure().schedule(r);else if(e!==null){try{re(r)}catch(v){throw F(r),v}n.deps===null&&n.teardown===null&&n.nodes===null&&n.first===n.last&&(n.f&At)===0&&(n=n.first,(t&$t)!==0&&(t&Zt)!==0&&n!==null&&(n.f|=Zt))}if(n!==null&&(n.parent=i,i!==null&&Qn(n,i),_!==null&&(_.f&O)!==0&&(t&jt)===0)){var o=_;(o.effects??=[]).push(n)}return r}function li(){return _!==null&&!st}function fr(t){const e=ft(je,null);return C(e,N),e.teardown=t,e}function ge(t){Zn();var e=k.f,i=!_&&(e&vt)!==0&&(e&Et)===0;if(i){var r=W;(r.e??=[]).push(t)}else return cr(t)}function cr(t){return ft(Xt|dn,t)}function to(t){yt.ensure();const e=ft(jt|At,t);return()=>{F(e)}}function eo(t){yt.ensure();const e=ft(jt|At,t);return(i={})=>new Promise(r=>{i.outro?Yt(e,()=>{F(e),r(void 0)}):(F(e),r(void 0))})}function ur(t){return ft(Xt,t)}function io(t){return ft(Je|At,t)}function Be(t,e=0){return ft(je|e,t)}function _t(t,e=[],i=[],r=[]){In(r,e,i,n=>{ft(je,()=>t(...n.map(g)))})}function Oe(t,e=0){var i=ft($t|e,t);return i}function Q(t){return ft(vt|At,t)}function xr(t){var e=t.teardown;if(e!==null){const i=Bt,r=_;_r(!0),tt(null);try{e.call(null)}finally{_r(i),tt(r)}}}function ai(t,e=!1){var i=t.first;for(t.first=t.last=null;i!==null;){const n=i.ac;n!==null&&Ne(()=>{n.abort(ht)});var r=i.next;(i.f&jt)!==0?i.parent=null:F(i,e),i=r}}function ro(t){for(var e=t.first;e!==null;){var i=e.next;(e.f&vt)===0&&F(e),e=i}}function F(t,e=!0){var i=!1;(e||(t.f&Pi)!==0)&&t.nodes!==null&&t.nodes.end!==null&&(no(t.nodes.start,t.nodes.end),i=!0),C(t,qe),ai(t,e&&!i),ce(t,0);var r=t.nodes&&t.nodes.t;if(r!==null)for(const o of r)o.stop();xr(t),t.f^=qe,t.f|=X;var n=t.parent;n!==null&&n.first!==null&&hr(t),t.next=t.prev=t.teardown=t.ctx=t.deps=t.fn=t.nodes=t.ac=t.b=null}function no(t,e){for(;t!==null;){var i=t===e?null:Z(t);t.remove(),t=i}}function hr(t){var e=t.parent,i=t.prev,r=t.next;i!==null&&(i.next=r),r!==null&&(r.prev=i),e!==null&&(e.first===t&&(e.first=r),e.last===t&&(e.last=i))}function Yt(t,e,i=!0){var r=[];yr(t,r,!0);var n=()=>{i&&F(t),e&&e()},o=r.length;if(o>0){var v=()=>--o||n();for(var l of r)l.out(v)}else n()}function yr(t,e,i){if((t.f&V)===0){t.f^=V;var r=t.nodes&&t.nodes.t;if(r!==null)for(const l of r)(l.is_global||i)&&e.push(l);for(var n=t.first;n!==null;){var o=n.next,v=(n.f&Zt)!==0||(n.f&vt)!==0&&(t.f&$t)!==0;yr(n,e,v?i:!1),n=o}}}function si(t){wr(t,!0)}function wr(t,e){if((t.f&V)!==0){t.f^=V,(t.f&N)===0&&(C(t,I),yt.ensure().schedule(t));for(var i=t.first;i!==null;){var r=i.next,n=(i.f&Zt)!==0||(i.f&vt)!==0;wr(i,n?e:!1),i=r}var o=t.nodes&&t.nodes.t;if(o!==null)for(const v of o)(v.is_global||e)&&v.in()}}function pi(t,e){if(t.nodes)for(var i=t.nodes.start,r=t.nodes.end;i!==null;){var n=i===r?null:Z(i);e.append(i),i=n}}let Pe=!1,Bt=!1;function _r(t){Bt=t}let _=null,st=!1;function tt(t){_=t}let k=null;function ct(t){k=t}let et=null;function kr(t){_!==null&&(et===null?et=[t]:et.push(t))}let Y=null,K=0,it=null;function oo(t){it=t}let $r=1,Vt=0,Wt=Vt;function jr(t){Wt=t}function Er(){return++$r}function fe(t){var e=t.f;if((e&I)!==0)return!0;if(e&O&&(t.f&=~Dt),(e&mt)!==0){for(var i=t.deps,r=i.length,n=0;n<r;n++){var o=i[n];if(fe(o)&&nr(o),o.wv>t.wv)return!0}(e&J)!==0&&at===null&&C(t,N)}return!1}function Ar(t,e,i=!0){var r=t.reactions;if(r!==null&&!(et!==null&&Jt.call(et,t)))for(var n=0;n<r.length;n++){var o=r[n];(o.f&O)!==0?Ar(o,e,!1):e===o&&(i?C(o,I):(o.f&N)!==0&&C(o,mt),ti(o))}}function Rr(t){var e=Y,i=K,r=it,n=_,o=et,v=W,l=st,a=Wt,s=t.f;Y=null,K=0,it=null,_=(s&(vt|jt))===0?t:null,et=null,te(t.ctx),st=!1,Wt=++Vt,t.ac!==null&&(Ne(()=>{t.ac.abort(ht)}),t.ac=null);try{t.f|=Ke;var p=t.fn,c=p();t.f|=Et;var b=t.deps,u=E?.is_fork;if(Y!==null){var f;if(u||ce(t,K),b!==null&&K>0)for(b.length=K+Y.length,f=0;f<Y.length;f++)b[K+f]=Y[f];else t.deps=b=Y;if(li()&&(t.f&J)!==0)for(f=K;f<b.length;f++)(b[f].reactions??=[]).push(t)}else!u&&b!==null&&K<b.length&&(ce(t,K),b.length=K);if(Yi()&&it!==null&&!st&&b!==null&&(t.f&(O|mt|I))===0)for(f=0;f<it.length;f++)Ar(it[f],t);if(n!==null&&n!==t){if(Vt++,n.deps!==null)for(let h=0;h<i;h+=1)n.deps[h].rv=Vt;if(e!==null)for(const h of e)h.rv=Vt;it!==null&&(r===null?r=it:r.push(...it))}return(t.f&Rt)!==0&&(t.f^=Rt),c}catch(h){return Wi(h)}finally{t.f^=Ke,Y=e,K=i,it=r,_=n,et=o,te(v),st=l,Wt=a}}function vo(t,e){let i=e.reactions;if(i!==null){var r=ln.call(i,t);if(r!==-1){var n=i.length-1;n===0?i=e.reactions=null:(i[r]=i[n],i.pop())}}if(i===null&&(e.f&O)!==0&&(Y===null||!Jt.call(Y,e))){var o=e;(o.f&J)!==0&&(o.f^=J,o.f&=~Dt),Xe(o),Vn(o),ce(o,0)}}function ce(t,e){var i=t.deps;if(i!==null)for(var r=e;r<i.length;r++)vo(t,i[r])}function re(t){var e=t.f;if((e&X)===0){C(t,N);var i=k,r=Pe;k=t,Pe=!0;try{(e&($t|Bi))!==0?ro(t):ai(t),xr(t);var n=Rr(t);t.teardown=typeof n=="function"?n:null,t.wv=$r;var o;vn&&Tn&&(t.f&I)!==0&&t.deps}finally{Pe=r,k=i}}}async function lo(){await Promise.resolve(),Ft()}function g(t){var e=t.f,i=(e&O)!==0;if(_!==null&&!st){var r=k!==null&&(k.f&X)!==0;if(!r&&(et===null||!Jt.call(et,t))){var n=_.deps;if((_.f&Ke)!==0)t.rv<Vt&&(t.rv=Vt,Y===null&&n!==null&&n[K]===t?K++:Y===null?Y=[t]:Y.push(t));else{(_.deps??=[]).push(t);var o=t.reactions;o===null?t.reactions=[_]:Jt.call(o,_)||o.push(_)}}}if(Bt&&Ct.has(t))return Ct.get(t);if(i){var v=t;if(Bt){var l=v.v;return((v.f&N)===0&&v.reactions!==null||Tr(v))&&(l=ei(v)),Ct.set(v,l),l}var a=(v.f&J)===0&&!st&&_!==null&&(Pe||(_.f&J)!==0),s=(v.f&Et)===0;fe(v)&&(a&&(v.f|=J),nr(v)),a&&!s&&(or(v),zr(v))}if(at?.has(t))return at.get(t);if((t.f&Rt)!==0)throw t.v;return t.v}function zr(t){if(t.f|=J,t.deps!==null)for(const e of t.deps)(e.reactions??=[]).push(t),(e.f&O)!==0&&(e.f&J)===0&&(or(e),zr(e))}function Tr(t){if(t.v===L)return!0;if(t.deps===null)return!1;for(const e of t.deps)if(Ct.has(e)||(e.f&O)!==0&&Tr(e))return!0;return!1}function Ge(t){var e=st;try{return st=!0,t()}finally{st=e}}const ue=Symbol("events"),Sr=new Set,bi=new Set;function ao(t,e,i,r={}){function n(o){if(r.capture||mi.call(e,o),!o.cancelBubble)return Ne(()=>i?.call(this,o))}return t.startsWith("pointer")||t.startsWith("touch")||t==="wheel"?zt(()=>{e.addEventListener(t,n,r)}):e.addEventListener(t,n,r),n}function so(t,e,i,r,n){var o={capture:r,passive:n},v=ao(t,e,i,o);(e===document.body||e===window||e===document||e instanceof HTMLMediaElement)&&fr(()=>{e.removeEventListener(t,v,o)})}function qt(t,e,i){(e[ue]??={})[t]=i}function po(t){for(var e=0;e<t.length;e++)Sr.add(t[e]);for(var i of bi)i(t)}let Cr=null;function mi(t){var e=this,i=e.ownerDocument,r=t.type,n=t.composedPath?.()||[],o=n[0]||t.target;Cr=t;var v=0,l=Cr===t&&t[ue];if(l){var a=n.indexOf(l);if(a!==-1&&(e===document||e===window)){t[ue]=e;return}var s=n.indexOf(e);if(s===-1)return;a<=s&&(v=a)}if(o=n[v]||t.target,o!==e){$e(t,"currentTarget",{configurable:!0,get(){return o||i}});var p=_,c=k;tt(null),ct(null);try{for(var b,u=[];o!==null;){var f=o.assignedSlot||o.parentNode||o.host||null;try{var h=o[ue]?.[r];h!=null&&(!o.disabled||t.target===o)&&h.call(o,t)}catch(d){b?u.push(d):b=d}if(t.cancelBubble||f===e||f===null)break;o=f}if(b){for(let d of u)queueMicrotask(()=>{throw d});throw b}}finally{t[ue]=e,delete t.currentTarget,tt(p),ct(c)}}}const bo=globalThis?.window?.trustedTypes&&globalThis.window.trustedTypes.createPolicy("svelte-trusted-html",{createHTML:t=>t});function mo(t){return bo?.createHTML(t)??t}function go(t){var e=oi("template");return e.innerHTML=mo(t.replaceAll("<!>","<!---->")),e.content}function xe(t,e){var i=k;i.nodes===null&&(i.nodes={start:t,end:e,a:null,t:null})}function ut(t,e){var i=(e&on)!==0,r,n=!t.startsWith("<!>");return()=>{if(w)return xe($,null),$;r===void 0&&(r=go(n?t:"<!>"+t),r=Nt(r));var o=i||pr?document.importNode(r,!0):r.cloneNode(!0);return xe(o,o),o}}function fo(){if(w)return xe($,null),$;var t=document.createDocumentFragment(),e=document.createComment(""),i=q();return t.append(e,i),xe(e,i),t}function rt(t,e){if(w){var i=k;((i.f&Et)===0||i.nodes.end===null)&&(i.nodes.end=$),Re();return}t!==null&&t.before(e)}const co=["touchstart","touchmove"];function uo(t){return co.includes(t)}function Le(t,e){var i=e==null?"":typeof e=="object"?`${e}`:e;i!==(t.__t??=t.nodeValue)&&(t.__t=i,t.nodeValue=`${i}`)}function Mr(t,e){return Nr(t,e)}function xo(t,e){ri(),e.intro=e.intro??!1;const i=e.target,r=w,n=$;try{for(var o=Nt(i);o&&(o.nodeType!==Qt||o.data!==Ri);)o=Z(o);if(!o)throw Kt;lt(!0),D(o);const v=Nr(t,{...e,anchor:o});return lt(!1),v}catch(v){if(v instanceof Error&&v.message.split(`
|
|
2
|
+
`).some(l=>l.startsWith("https://svelte.dev/e/")))throw v;return v!==Kt&&console.warn("Failed to hydrate: ",v),e.recover===!1&&_n(),ri(),ni(i),lt(!1),Mr(t,e)}finally{lt(r),D(n)}}const Ie=new Map;function Nr(t,{target:e,anchor:i,props:r={},events:n,context:o,intro:v=!0,transformError:l}){ri();var a=void 0,s=eo(()=>{var p=i??e.appendChild(q());Gn(p,{pending:()=>{}},u=>{Fi({});var f=W;if(o&&(f.c=o),n&&(r.$$events=n),w&&xe(u,null),a=t(u,r)||{},w&&(k.nodes.end=$,$===null||$.nodeType!==Qt||$.data!==Ve))throw Ae(),Kt;Ui()},l);var c=new Set,b=u=>{for(var f=0;f<u.length;f++){var h=u[f];if(!c.has(h)){c.add(h);var d=uo(h);for(const z of[e,document]){var y=Ie.get(z);y===void 0&&(y=new Map,Ie.set(z,y));var T=y.get(h);T===void 0?(z.addEventListener(h,mi,{passive:d}),y.set(h,1)):y.set(h,T+1)}}}};return b(_e(Sr)),bi.add(b),()=>{for(var u of c)for(const d of[e,document]){var f=Ie.get(d),h=f.get(u);--h==0?(d.removeEventListener(u,mi),f.delete(u),f.size===0&&Ie.delete(d)):f.set(u,h)}bi.delete(b),p!==i&&p.parentNode?.removeChild(p)}});return di.set(a,s),a}let di=new WeakMap;function ho(t,e){const i=di.get(t);return i?(di.delete(t),i(e)):Promise.resolve()}class yo{anchor;#t=new Map;#i=new Map;#e=new Map;#n=new Set;#o=!0;constructor(e,i=!0){this.anchor=e,this.#o=i}#r=e=>{if(this.#t.has(e)){var i=this.#t.get(e),r=this.#i.get(i);if(r)si(r),this.#n.delete(i);else{var n=this.#e.get(i);n&&(this.#i.set(i,n.effect),this.#e.delete(i),n.fragment.lastChild.remove(),this.anchor.before(n.fragment),r=n.effect)}for(const[o,v]of this.#t){if(this.#t.delete(o),o===e)break;const l=this.#e.get(v);l&&(F(l.effect),this.#e.delete(v))}for(const[o,v]of this.#i){if(o===i||this.#n.has(o))continue;const l=()=>{if(Array.from(this.#t.values()).includes(o)){var s=document.createDocumentFragment();pi(v,s),s.append(q()),this.#e.set(o,{effect:v,fragment:s})}else F(v);this.#n.delete(o),this.#i.delete(o)};this.#o||!r?(this.#n.add(o),Yt(v,l,!1)):l()}}};#v=e=>{this.#t.delete(e);const i=Array.from(this.#t.values());for(const[r,n]of this.#e)i.includes(r)||(F(n.effect),this.#e.delete(r))};ensure(e,i){var r=E,n=dr();if(i&&!this.#i.has(e)&&!this.#e.has(e))if(n){var o=document.createDocumentFragment(),v=q();o.append(v),this.#e.set(e,{effect:Q(()=>i(v)),fragment:o})}else this.#i.set(e,Q(()=>i(this.anchor)));if(this.#t.set(r,e),n){for(const[l,a]of this.#i)l===e?r.unskip_effect(a):r.skip_effect(a);for(const[l,a]of this.#e)l===e?r.unskip_effect(a.effect):r.skip_effect(a.effect);r.oncommit(this.#r),r.ondiscard(this.#v)}else w&&(this.anchor=$),this.#r(r)}}function ne(t,e,i=!1){var r;w&&(r=$,Re());var n=new yo(t),o=i?Zt:0;function v(l,a){if(w){var s=Ii(r);if(l!==parseInt(s.substring(1))){var p=ze();D(p),n.anchor=p,lt(!1),n.ensure(l,a),lt(!0);return}}n.ensure(l,a)}Oe(()=>{var l=!1;e((a,s=0)=>{l=!0,v(s,a)}),l||v(-1,null)},o)}function wo(t,e,i){for(var r=[],n=e.length,o,v=e.length,l=0;l<n;l++){let c=e[l];Yt(c,()=>{if(o){if(o.pending.delete(c),o.done.add(c),o.pending.size===0){var b=t.outrogroups;gi(t,_e(o.done)),b.delete(o),b.size===0&&(t.outrogroups=null)}}else v-=1},!1)}if(v===0){var a=r.length===0&&i!==null;if(a){var s=i,p=s.parentNode;ni(p),p.append(s),t.items.clear()}gi(t,e,!a)}else o={pending:new Set(e),done:new Set},(t.outrogroups??=new Set).add(o)}function gi(t,e,i=!0){var r;if(t.pending.size>0){r=new Set;for(const v of t.pending.values())for(const l of v)r.add(t.items.get(l).e)}for(var n=0;n<e.length;n++){var o=e[n];if(r?.has(o)){o.f|=dt;const v=document.createDocumentFragment();pi(o,v)}else F(e[n],i)}}var Br;function Or(t,e,i,r,n,o=null){var v=t,l=new Map,a=(e&Ai)!==0;if(a){var s=t;v=w?D(Nt(s)):s.appendChild(q())}w&&Re();var p=null,c=rr(()=>{var z=i();return Si(z)?z:z==null?[]:_e(z)}),b,u=new Map,f=!0;function h(z){(T.effect.f&X)===0&&(T.pending.delete(z),T.fallback=p,_o(T,b,v,e,r),p!==null&&(b.length===0?(p.f&dt)===0?si(p):(p.f^=dt,ye(p,null,v)):Yt(p,()=>{p=null})))}function d(z){T.pending.delete(z)}var y=Oe(()=>{b=g(c);var z=b.length;let G=!1;if(w){var le=Ii(v)===Ye;le!==(z===0)&&(v=ze(),D(v),lt(!1),G=!0)}for(var xt=new Set,U=E,Pt=dr(),pt=0;pt<z;pt+=1){w&&$.nodeType===Qt&&$.data===Ve&&(v=$,G=!0,lt(!1));var nt=b[pt],ae=r(nt,pt),bt=f?null:l.get(ae);bt?(bt.v&&ie(bt.v,nt),bt.i&&ie(bt.i,pt),Pt&&U.unskip_effect(bt.e)):(bt=ko(l,f?v:Br??=q(),nt,ae,pt,n,e,i),f||(bt.e.f|=dt),l.set(ae,bt)),xt.add(ae)}if(z===0&&o&&!p&&(f?p=Q(()=>o(v)):(p=Q(()=>o(Br??=q())),p.f|=dt)),z>xt.size&&un(),w&&z>0&&D(ze()),!f)if(u.set(U,xt),Pt){for(const[ui,se]of l)xt.has(ui)||U.skip_effect(se.e);U.oncommit(h),U.ondiscard(d)}else h(U);G&<(!0),g(c)}),T={effect:y,items:l,pending:u,outrogroups:null,fallback:p};f=!1,w&&(v=$)}function he(t){for(;t!==null&&(t.f&vt)===0;)t=t.next;return t}function _o(t,e,i,r,n){var o=(r&Zr)!==0,v=e.length,l=t.items,a=he(t.effect.first),s,p=null,c,b=[],u=[],f,h,d,y;if(o)for(y=0;y<v;y+=1)f=e[y],h=n(f,y),d=l.get(h).e,(d.f&dt)===0&&(d.nodes?.a?.measure(),(c??=new Set).add(d));for(y=0;y<v;y+=1){if(f=e[y],h=n(f,y),d=l.get(h).e,t.outrogroups!==null)for(const nt of t.outrogroups)nt.pending.delete(d),nt.done.delete(d);if((d.f&V)!==0&&(si(d),o&&(d.nodes?.a?.unfix(),(c??=new Set).delete(d))),(d.f&dt)!==0)if(d.f^=dt,d===a)ye(d,null,i);else{var T=p?p.next:a;d===t.effect.last&&(t.effect.last=d.prev),d.prev&&(d.prev.next=d.next),d.next&&(d.next.prev=d.prev),Ot(t,p,d),Ot(t,d,T),ye(d,T,i),p=d,b=[],u=[],a=he(p.next);continue}if(d!==a){if(s!==void 0&&s.has(d)){if(b.length<u.length){var z=u[0],G;p=z.prev;var le=b[0],xt=b[b.length-1];for(G=0;G<b.length;G+=1)ye(b[G],z,i);for(G=0;G<u.length;G+=1)s.delete(u[G]);Ot(t,le.prev,xt.next),Ot(t,p,le),Ot(t,xt,z),a=z,p=xt,y-=1,b=[],u=[]}else s.delete(d),ye(d,a,i),Ot(t,d.prev,d.next),Ot(t,d,p===null?t.effect.first:p.next),Ot(t,p,d),p=d;continue}for(b=[],u=[];a!==null&&a!==d;)(s??=new Set).add(a),u.push(a),a=he(a.next);if(a===null)continue}(d.f&dt)===0&&b.push(d),p=d,a=he(d.next)}if(t.outrogroups!==null){for(const nt of t.outrogroups)nt.pending.size===0&&(gi(t,_e(nt.done)),t.outrogroups?.delete(nt));t.outrogroups.size===0&&(t.outrogroups=null)}if(a!==null||s!==void 0){var U=[];if(s!==void 0)for(d of s)(d.f&V)===0&&U.push(d);for(;a!==null;)(a.f&V)===0&&a!==t.fallback&&U.push(a),a=he(a.next);var Pt=U.length;if(Pt>0){var pt=(r&Ai)!==0&&v===0?i:null;if(o){for(y=0;y<Pt;y+=1)U[y].nodes?.a?.measure();for(y=0;y<Pt;y+=1)U[y].nodes?.a?.fix()}wo(t,U,pt)}}o&&zt(()=>{if(c!==void 0)for(d of c)d.nodes?.a?.apply()})}function ko(t,e,i,r,n,o,v,l){var a=(v&Jr)!==0?(v&Qr)===0?lr(i,!1,!1):Ut(i):null,s=(v&Xr)!==0?Ut(n):null;return{v:a,i:s,e:Q(()=>(o(e,a??i,s??n,l),()=>{t.delete(r)}))}}function ye(t,e,i){if(t.nodes)for(var r=t.nodes.start,n=t.nodes.end,o=e&&(e.f&dt)===0?e.nodes.start:i;r!==null;){var v=Z(r);if(o.before(r),r===n)return;r=v}}function Ot(t,e,i){e===null?t.effect.first=i:e.next=i,i===null?t.effect.last=e:i.prev=e}function $o(t,e){let i=null,r=w;var n;if(w){i=$;for(var o=Nt(document.head);o!==null&&(o.nodeType!==Qt||o.data!==t);)o=Z(o);if(o===null)lt(!1);else{var v=Z(o);o.remove(),D(v)}}w||(n=document.head.appendChild(q()));try{Oe(()=>e(n),Pi|At)}finally{r&&(lt(!0),D(i))}}function jo(t,e){ur(()=>{var i=t.getRootNode(),r=i.host?i:i.head??i.ownerDocument.head;if(!r.querySelector("#"+e.hash)){const n=oi("style");n.id=e.hash,n.textContent=e.code,r.appendChild(n)}})}const Pr=[...`
|
|
3
|
+
\r\f \v\uFEFF`];function Eo(t,e,i){var r=t==null?"":""+t;if(e&&(r=r?r+" "+e:e),i){for(var n of Object.keys(i))if(i[n])r=r?r+" "+n:n;else if(r.length)for(var o=n.length,v=0;(v=r.indexOf(n,v))>=0;){var l=v+o;(v===0||Pr.includes(r[v-1]))&&(l===r.length||Pr.includes(r[l]))?r=(v===0?"":r.substring(0,v))+r.substring(l+1):v=l}}return r===""?null:r}function Ao(t,e){return t==null?null:String(t)}function oe(t,e,i,r,n,o){var v=t.__className;if(w||v!==i||v===void 0){var l=Eo(i,r,o);(!w||l!==t.getAttribute("class"))&&(l==null?t.removeAttribute("class"):t.className=l),t.__className=i}else if(o&&n!==o)for(var a in o){var s=!!o[a];(n==null||s!==!!n[a])&&t.classList.toggle(a,s)}return o}function De(t,e,i,r){var n=t.__style;if(w||n!==e){var o=Ao(e);(!w||o!==t.getAttribute("style"))&&(o==null?t.removeAttribute("style"):t.style.cssText=o),t.__style=e}return r}const Ro=Symbol("is custom element"),zo=Symbol("is html"),To=fn?"link":"LINK";function ve(t,e,i,r){var n=So(t);w&&(n[e]=t.getAttribute(e),e==="src"||e==="srcset"||e==="href"&&t.nodeName===To)||n[e]!==(n[e]=i)&&(e==="loading"&&(t[gn]=i),i==null?t.removeAttribute(e):typeof i!="string"&&Co(t).includes(e)?t[e]=i:t.setAttribute(e,i))}function So(t){return t.__attributes??={[Ro]:t.nodeName.includes("-"),[zo]:t.namespaceURI===Ti}}var Gr=new Map;function Co(t){var e=t.getAttribute("is")||t.nodeName,i=Gr.get(e);if(i)return i;Gr.set(e,i=[]);for(var r,n=t,o=Element.prototype;o!==n;){r=an(n);for(var v in r)r[v].set&&i.push(v);n=Ci(n)}return i}function Mo(t,e,i=e){var r=new WeakSet;Xn(t,"input",async n=>{var o=n?t.defaultValue:t.value;if(o=fi(t)?ci(o):o,i(o),E!==null&&r.add(E),await lo(),o!==(o=e())){var v=t.selectionStart,l=t.selectionEnd,a=t.value.length;if(t.value=o??"",l!==null){var s=t.value.length;v===l&&l===a&&s>a?(t.selectionStart=s,t.selectionEnd=s):(t.selectionStart=v,t.selectionEnd=Math.min(l,s))}}}),(w&&t.defaultValue!==t.value||Ge(e)==null&&t.value)&&(i(fi(t)?ci(t.value):t.value),E!==null&&r.add(E)),Be(()=>{var n=e();if(t===document.activeElement){var o=E;if(r.has(o))return}fi(t)&&n===ci(t.value)||t.type==="date"&&!n&&!t.value||n!==t.value&&(t.value=n??"")})}function fi(t){var e=t.type;return e==="number"||e==="range"}function ci(t){return t===""?null:+t}function Lr(t,e){return t===e||t?.[be]===e}function Ir(t={},e,i,r){var n=W.r,o=k;return ur(()=>{var v,l;return Be(()=>{v=l,l=[],Ge(()=>{t!==i(...l)&&(e(t,...l),v&&Lr(i(...v),t)&&e(null,...v))})}),()=>{let a=o;for(;a!==n&&a.parent!==null&&a.parent.f&qe;)a=a.parent;const s=()=>{l&&Lr(i(...l),t)&&e(null,...l)},p=a.teardown;a.teardown=()=>{s(),p?.()}}}),t}function we(t,e,i,r){var n=(i&rn)!==0,o=(i&nn)!==0,v=r,l=!0,a=()=>(l&&(l=!1,v=o?Ge(r):r),v);let s;if(n){var p=be in t||Gi in t;s=It(t,e)?.set??(p&&e in t?T=>t[e]=T:void 0)}var c,b=!1;n?[c,b]=Mn(()=>t[e]):c=t[e],c===void 0&&r!==void 0&&(c=a(),s&&(kn(),s(c)));var u;if(u=()=>{var T=t[e];return T===void 0?a():(l=!0,T)},(i&en)===0)return u;if(s){var f=t.$$legacy;return(function(T,z){return arguments.length>0?((!z||f||b)&&s(z?u():T),T):u()})}var h=!1,d=((i&tn)!==0?Me:rr)(()=>(h=!1,u()));n&&g(d);var y=k;return(function(T,z){if(arguments.length>0){const G=z?g(d):n?Mt(T):T;return S(d,G),h=!0,v!==void 0&&(v=G),T}return Bt&&h||(y.f&X)!==0?d.v:g(d)})}function No(t){return new Bo(t)}class Bo{#t;#i;constructor(e){var i=new Map,r=(o,v)=>{var l=lr(v,!1,!1);return i.set(o,l),l};const n=new Proxy({...e.props||{},$$events:{}},{get(o,v){return g(i.get(v)??r(v,Reflect.get(o,v)))},has(o,v){return v===Gi?!0:(g(i.get(v)??r(v,Reflect.get(o,v))),Reflect.has(o,v))},set(o,v,l){return S(i.get(v)??r(v,l),l),Reflect.set(o,v,l)}});this.#i=(e.hydrate?xo:Mr)(e.component,{target:e.target,anchor:e.anchor,props:n,context:e.context,intro:e.intro??!1,recover:e.recover,transformError:e.transformError}),(!e?.props?.$$host||e.sync===!1)&&Ft(),this.#t=n.$$events;for(const o of Object.keys(this.#i))o==="$set"||o==="$destroy"||o==="$on"||$e(this,o,{get(){return this.#i[o]},set(v){this.#i[o]=v},enumerable:!0});this.#i.$set=o=>{Object.assign(n,o)},this.#i.$destroy=()=>{ho(this.#i)}}$set(e){this.#i.$set(e)}$on(e,i){this.#t[e]=this.#t[e]||[];const r=(...n)=>i.call(this,...n);return this.#t[e].push(r),()=>{this.#t[e]=this.#t[e].filter(n=>n!==r)}}$destroy(){this.#i.$destroy()}}let Dr;typeof HTMLElement=="function"&&(Dr=class extends HTMLElement{$$ctor;$$s;$$c;$$cn=!1;$$d={};$$r=!1;$$p_d={};$$l={};$$l_u=new Map;$$me;$$shadowRoot=null;constructor(t,e,i){super(),this.$$ctor=t,this.$$s=e,i&&(this.$$shadowRoot=this.attachShadow(i))}addEventListener(t,e,i){if(this.$$l[t]=this.$$l[t]||[],this.$$l[t].push(e),this.$$c){const r=this.$$c.$on(t,e);this.$$l_u.set(e,r)}super.addEventListener(t,e,i)}removeEventListener(t,e,i){if(super.removeEventListener(t,e,i),this.$$c){const r=this.$$l_u.get(e);r&&(r(),this.$$l_u.delete(e))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let t=function(r){return n=>{const o=oi("slot");r!=="default"&&(o.name=r),rt(n,o)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const e={},i=Oo(this);for(const r of this.$$s)r in i&&(r==="default"&&!this.$$d.children?(this.$$d.children=t(r),e.default=!0):e[r]=t(r));for(const r of this.attributes){const n=this.$$g_p(r.name);n in this.$$d||(this.$$d[n]=He(n,r.value,this.$$p_d,"toProp"))}for(const r in this.$$p_d)!(r in this.$$d)&&this[r]!==void 0&&(this.$$d[r]=this[r],delete this[r]);this.$$c=No({component:this.$$ctor,target:this.$$shadowRoot||this,props:{...this.$$d,$$slots:e,$$host:this}}),this.$$me=to(()=>{Be(()=>{this.$$r=!0;for(const r of ke(this.$$c)){if(!this.$$p_d[r]?.reflect)continue;this.$$d[r]=this.$$c[r];const n=He(r,this.$$d[r],this.$$p_d,"toAttribute");n==null?this.removeAttribute(this.$$p_d[r].attribute||r):this.setAttribute(this.$$p_d[r].attribute||r,n)}this.$$r=!1})});for(const r in this.$$l)for(const n of this.$$l[r]){const o=this.$$c.$on(r,n);this.$$l_u.set(n,o)}this.$$l={}}}attributeChangedCallback(t,e,i){this.$$r||(t=this.$$g_p(t),this.$$d[t]=He(t,i,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 ke(this.$$p_d).find(e=>this.$$p_d[e].attribute===t||!this.$$p_d[e].attribute&&e.toLowerCase()===t)||t}});function He(t,e,i,r){const n=i[t]?.type;if(e=n==="Boolean"&&typeof e!="boolean"?e!=null:e,!r||!i[t])return e;if(r==="toAttribute")switch(n){case"Object":case"Array":return e==null?null:JSON.stringify(e);case"Boolean":return e?"":null;case"Number":return e??null;default:return e}else switch(n){case"Object":case"Array":return e&&JSON.parse(e);case"Boolean":return e;case"Number":return e!=null?+e:e;default:return e}}function Oo(t){const e={};return t.childNodes.forEach(i=>{e[i.slot||"default"]=!0}),e}function Po(t,e,i,r,n,o){let v=class extends Dr{constructor(){super(t,i,n),this.$$p_d=e}static get observedAttributes(){return ke(e).map(l=>(e[l].attribute||l).toLowerCase())}};return ke(e).forEach(l=>{$e(v.prototype,l,{get(){return this.$$c&&l in this.$$c?this.$$c[l]:this.$$d[l]},set(a){a=He(l,a,e),this.$$d[l]=a;var s=this.$$c;if(s){var p=It(s,l)?.get;p?s[l]=a:s.$set({[l]:a})}}})}),r.forEach(l=>{$e(v.prototype,l,{get(){return this.$$c?.[l]}})}),t.element=v,v}var Go=ut('<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@latest/font/bootstrap-icons.css" class="svelte-1p3vbiv"/>'),Lo=ut('<img class="file-image svelte-1p3vbiv"/>'),Io=ut("<i></i>"),Do=ut('<div class="col-6 col-md-4 col-lg-3 svelte-1p3vbiv"><div class="file-card svelte-1p3vbiv"><div class="file-preview svelte-1p3vbiv"><!></div> <div class="file-details svelte-1p3vbiv"><div class="file-name svelte-1p3vbiv"> </div> <div class="file-meta svelte-1p3vbiv"><span class="file-size svelte-1p3vbiv"> </span></div></div> <button type="button" class="btn btn-sm btn-outline-danger remove-file-btn svelte-1p3vbiv" aria-label="Remove file" title="Remove file"><i class="bi bi-x svelte-1p3vbiv"></i></button></div></div>'),Ho=ut('<div id="files-display" class="svelte-1p3vbiv"><div class="row g-2 svelte-1p3vbiv"></div></div>'),Fo=ut('<button id="maximize-button" type="button"><i></i></button>'),Uo=ut('<span class="position-absolute top-0 start-100 translate-middle badge rounded-pill bg-danger svelte-1p3vbiv"> <span class="visually-hidden svelte-1p3vbiv">selected files</span></span>'),Yo=ut('<label id="upload-file" class="btn file-button btn-sm position-relative svelte-1p3vbiv" style="--tag-color: var(--bs-primary, #007bff)"><input type="file" class="svelte-1p3vbiv"/> <i class="bi bi-paperclip svelte-1p3vbiv"></i> <!></label>'),Vo=ut('<button type="button"><i></i> </button>'),Wo=ut('<div id="chat-container" class="svelte-1p3vbiv"><div id="chat-box" class="svelte-1p3vbiv"><!> <div id="textarea-container" class="svelte-1p3vbiv"><textarea id="send-message-text" placeholder="Type your message..."></textarea> <!></div> <div id="buttons-container" class="svelte-1p3vbiv"><div id="left-buttons" class="svelte-1p3vbiv"><!> <!></div> <div id="right-buttons" class="svelte-1p3vbiv"><button type="button" id="send-message-button" aria-label="Send message" class="svelte-1p3vbiv"><i class="bi bi-send-fill svelte-1p3vbiv"></i></button></div></div></div></div>');const qo={hash:"svelte-1p3vbiv",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");
|
|
4
4
|
@import url("https://cdn.jsdelivr.net/npm/bootstrap-icons@latest/font/bootstrap-icons.css");
|
|
5
5
|
/*!
|
|
6
6
|
* Bootstrap v5.1.2 (https://getbootstrap.com/)
|
|
@@ -186,5 +186,5 @@ textarea.svelte-1p3vbiv {margin:0;font-family:inherit;font-size:inherit;line-hei
|
|
|
186
186
|
.file-button.tag-selected.svelte-1p3vbiv,
|
|
187
187
|
.file-button.file-selected.svelte-1p3vbiv {background-color:var(--tag-color);color:white;box-shadow:0 2px 4px rgba(0, 0, 0, 0.1);}.tag-button.tag-selected.svelte-1p3vbiv:hover, .tag-button.file-selected.svelte-1p3vbiv:hover,
|
|
188
188
|
.file-button.tag-selected.svelte-1p3vbiv:hover,
|
|
189
|
-
.file-button.file-selected.svelte-1p3vbiv:hover {background-color:var(--tag-color);opacity:0.9;}#send-message-button.svelte-1p3vbiv {display:flex;align-items:center;justify-content:center;width:32px;height:32px;border:none;border-radius:50%;background-color:var(--bs-primary, #007bff);color:white;cursor:pointer;transition:all 0.2s ease;font-size:14px;}#send-message-button.svelte-1p3vbiv:hover:not(:disabled) {background-color:var(--bs-primary, #0056b3);transform:scale(1.05);}#send-message-button.svelte-1p3vbiv:active:not(:disabled) {transform:scale(0.95);}#send-message-button.svelte-1p3vbiv:disabled {background-color:var(--bs-secondary, #6c757d);cursor:not-allowed;transform:none;}#send-message-button.svelte-1p3vbiv > i:where(.svelte-1p3vbiv) {margin:0;}#maximize-button.svelte-1p3vbiv {position:absolute;top:20px;right:20px;width:24px;height:24px;border:none;border-radius:4px;color:var(--bs-primary, #007bff);background-color:transparent;cursor:pointer;display:flex;align-items:center;justify-content:center;font-size:12px;transition:all 0.2s ease;z-index:10;}#maximize-button.svelte-1p3vbiv:hover {color:var(--bs-primary, #007bff);transform:scale(1.1);box-shadow:0 2px 6px rgba(0, 0, 0, 0.15);}#maximize-button.svelte-1p3vbiv:active {transform:scale(0.95);}#maximize-button.maximized.svelte-1p3vbiv {color:var(--bs-primary, #007bff);}#maximize-button.maximized.svelte-1p3vbiv:hover {background-color:rgba(0, 123, 255, 0.2);}#maximize-button.svelte-1p3vbiv > i:where(.svelte-1p3vbiv) {margin:0;}`};function
|
|
189
|
+
.file-button.file-selected.svelte-1p3vbiv:hover {background-color:var(--tag-color);opacity:0.9;}#send-message-button.svelte-1p3vbiv {display:flex;align-items:center;justify-content:center;width:32px;height:32px;border:none;border-radius:50%;background-color:var(--bs-primary, #007bff);color:white;cursor:pointer;transition:all 0.2s ease;font-size:14px;}#send-message-button.svelte-1p3vbiv:hover:not(:disabled) {background-color:var(--bs-primary, #0056b3);transform:scale(1.05);}#send-message-button.svelte-1p3vbiv:active:not(:disabled) {transform:scale(0.95);}#send-message-button.svelte-1p3vbiv:disabled {background-color:var(--bs-secondary, #6c757d);cursor:not-allowed;transform:none;}#send-message-button.svelte-1p3vbiv > i:where(.svelte-1p3vbiv) {margin:0;}#maximize-button.svelte-1p3vbiv {position:absolute;top:20px;right:20px;width:24px;height:24px;border:none;border-radius:4px;color:var(--bs-primary, #007bff);background-color:transparent;cursor:pointer;display:flex;align-items:center;justify-content:center;font-size:12px;transition:all 0.2s ease;z-index:10;}#maximize-button.svelte-1p3vbiv:hover {color:var(--bs-primary, #007bff);transform:scale(1.1);box-shadow:0 2px 6px rgba(0, 0, 0, 0.15);}#maximize-button.svelte-1p3vbiv:active {transform:scale(0.95);}#maximize-button.maximized.svelte-1p3vbiv {color:var(--bs-primary, #007bff);}#maximize-button.maximized.svelte-1p3vbiv:hover {background-color:rgba(0, 123, 255, 0.2);}#maximize-button.svelte-1p3vbiv > i:where(.svelte-1p3vbiv) {margin:0;}`};function Hr(t,e){Fi(e,!0),jo(t,qo);function i(m,x){e.$$host.dispatchEvent(new CustomEvent(m,{detail:x}))}let r=we(e,"id",7,""),n=we(e,"text",7,""),o=we(e,"expandable",7,!1),v=we(e,"tags",23,()=>[]),l=we(e,"files",7),a=H(Mt([])),s=H(130),p=H(0),c=H(0),b,u,f=H(!1),h=H(!1),d=H(Mt([]));function y(){const m=["#e74c3c","#3498db","#2ecc71","#f39c12","#9b59b6","#1abc9c","#34495e","#e67e22","#95a5a6","#f1c40f","#e91e63","#00bcd4","#4caf50","#ff9800","#673ab7"];return m[Math.floor(Math.random()*m.length)]}function T(m){return m.color||y()}ge(()=>{if(typeof v()=="string")try{v(JSON.parse(v()))}catch(m){console.error("error parsing buttons",m)}if(typeof l()=="string")try{l(JSON.parse(l()))}catch(m){console.error("error parsing files",m)}typeof o()=="string"&&o(o()==="yes"||o()==="true")}),ge(()=>{b&&n()&&setTimeout(()=>{se()},0)}),ge(()=>{if(u){const m=new ResizeObserver(x=>{for(const A of x)S(c,A.contentRect.width,!0)});return m.observe(u),S(c,u.offsetWidth,!0),()=>{m.disconnect()}}}),ge(()=>{if(g(a).length>0){const R=z(g(c)),j=Math.ceil(g(a).length/R),M=j>1?(j-1)*8:0,ot=j*108+M+16;S(p,Math.min(ot,250),!0)}else S(p,0);b&&se()}),ge(()=>{l()?.mode==="single"&&g(a).length>1&&S(a,[g(a)[0]],!0)});function z(m){return m>=992?4:m>=768?3:2}function G(){return Date.now().toString(36)+Math.random().toString(36).substr(2)}function le(m){const x=m.target,A=x.files;if(A)if(l()?.mode==="single"){const R=A[0],j={id:G(),name:R.name,mimetype:R.type,fileSize:R.size,content:R,objectUrl:R.type.startsWith("image/")?URL.createObjectURL(R):void 0};S(a,[j],!0)}else for(let R=0;R<A.length;R++){const j=A[R],M={id:G(),name:j.name,mimetype:j.type,fileSize:j.size,content:j,objectUrl:j.type.startsWith("image/")?URL.createObjectURL(j):void 0};S(a,[...g(a),M],!0)}x.value=""}function xt(m){const x=g(a).find(A=>A.id===m);x&&x.objectUrl&&URL.revokeObjectURL(x.objectUrl),S(a,g(a).filter(A=>A.id!==m),!0)}function U(m){return m.startsWith("image/")?"bi-image":m.startsWith("video/")?"bi-play-circle":m.startsWith("audio/")?"bi-music-note":m.includes("pdf")?"bi-file-pdf":m.includes("word")||m.includes("document")?"bi-file-word":m.includes("excel")||m.includes("spreadsheet")?"bi-file-excel":m.includes("powerpoint")||m.includes("presentation")?"bi-file-ppt":m.includes("zip")||m.includes("rar")||m.includes("archive")?"bi-file-zip":"bi-file-earmark"}function Pt(m){if(m===0)return"0 B";const x=1024,A=["B","KB","MB","GB","TB"],R=Math.floor(Math.log(m)/Math.log(x));return parseFloat((m/Math.pow(x,R)).toFixed(1))+" "+A[R]}function pt(){if(!n()?.length&&!g(a).length)return console.warn("no message to send");console.log("send message "+n()),i("sendMessage",{text:n(),id:r(),files:g(a),tags:g(d)||[]})}function nt(m){S(d,g(d).includes(m)?g(d).filter(x=>x!==m):[...g(d),m],!0)}function ae(m){m.key==="Enter"&&!m.shiftKey&&(m.preventDefault(),pt())}function bt(){o()&&!g(f)&&se()}function ui(){if(S(f,!g(f)),g(f))b.style.height="400px",b.style.maxHeight="400px",b.style.minHeight="400px",b.style.overflowY="auto",S(s,484+g(p));else{b.style.maxHeight="",b.style.minHeight="";const m=140,x=32,A=52;b.style.height=m+"px",b.style.overflowY="auto",S(s,x+m+A+g(p)),S(h,!0)}}function se(){if(b&&!g(f)){b.style.height="auto";const m=b.scrollHeight,x=140;let A=40;o()&&(A=Math.max(m,80));const R=Math.min(Math.max(m,A),x);b.style.height=R+"px",m>x?b.style.overflowY="auto":b.style.overflowY="hidden",S(s,Math.max(32+R+52+g(p),130),!0),S(h,R>=x)}}var Ko={get id(){return r()},set id(m=""){r(m),Ft()},get text(){return n()},set text(m=""){n(m),Ft()},get expandable(){return o()},set expandable(m=!1){o(m),Ft()},get tags(){return v()},set tags(m=[]){v(m),Ft()},get files(){return l()},set files(m){l(m),Ft()}},Fe=Wo();$o("1p3vbiv",m=>{var x=Go();rt(m,x)});var xi=P(Fe),Fr=P(xi);{var Jo=m=>{var x=Ho(),A=P(x);Or(A,21,()=>g(a),R=>R.id,(R,j)=>{var M=Do(),ot=P(M),kt=P(ot),_i=P(kt);{var ki=Lt=>{var pe=Lo();_t(()=>{ve(pe,"src",g(j).objectUrl),ve(pe,"alt",g(j).name)}),rt(Lt,pe)},$i=Fn(()=>g(j).mimetype.startsWith("image/")&&g(j).objectUrl),iv=Lt=>{var pe=Io();_t(vv=>oe(pe,1,`bi ${vv??""} file-icon`,"svelte-1p3vbiv"),[()=>U(g(j).mimetype)]),rt(Lt,pe)};ne(_i,Lt=>{g($i)?Lt(ki):Lt(iv,-1)})}B(kt);var ji=gt(kt,2),Ue=P(ji),rv=P(Ue,!0);B(Ue);var qr=gt(Ue,2),Kr=P(qr),nv=P(Kr,!0);B(Kr),B(qr),B(ji);var ov=gt(ji,2);B(ot),B(M),_t(Lt=>{ve(Ue,"title",g(j).name),Le(rv,g(j).name),Le(nv,Lt)},[()=>Pt(g(j).fileSize)]),qt("click",ov,()=>xt(g(j).id)),rt(R,M)}),B(A),B(x),_t(()=>De(x,`height: ${g(p)??""}px;`)),rt(m,x)};ne(Fr,m=>{g(a).length>0&&m(Jo)})}var hi=gt(Fr,2),Gt=P(hi);Kn(Gt);let Ur;Ir(Gt,m=>b=m,()=>b);var Xo=gt(Gt,2);{var Zo=m=>{var x=Fo();let A;var R=P(x);B(x),_t(()=>{ve(x,"aria-label",g(f)?"Minimize textarea":"Maximize textarea"),ve(x,"title",g(f)?"Minimize textarea":"Maximize textarea"),A=oe(x,1,"svelte-1p3vbiv",null,A,{maximized:g(f)}),oe(R,1,`bi bi-${g(f)?"arrows-angle-contract":"arrows-angle-expand"}`,"svelte-1p3vbiv")}),qt("click",x,ui),rt(m,x)};ne(Xo,m=>{g(h)&&m(Zo)})}B(hi);var Yr=gt(hi,2),yi=P(Yr),Vr=P(yi);{var Qo=m=>{var x=Yo(),A=P(x),R=gt(A,4);{var j=M=>{var ot=Uo(),kt=P(ot);Li(),B(ot),_t(()=>Le(kt,`${g(a).length??""} `)),rt(M,ot)};ne(R,M=>{g(a).length>0&&M(j)})}B(x),_t(()=>A.multiple=l()?.mode!=="single"),qt("change",A,le),rt(m,x)};ne(Vr,m=>{typeof l()=="object"&&m(Qo)})}var tv=gt(Vr,2);{var ev=m=>{var x=fo(),A=qn(x);Or(A,17,v,R=>R.id,(R,j)=>{var M=Vo();let ot;var kt=P(M),_i=gt(kt);B(M),_t((ki,$i)=>{ot=oe(M,1,"btn tag-button btn-sm svelte-1p3vbiv",null,ot,ki),De(M,`--tag-color: ${$i??""}`),ve(M,"aria-label",`Use ${g(j).label}`),oe(kt,1,`bi bi-${g(j).icon??""}`,"svelte-1p3vbiv"),Le(_i,` ${g(j).label??""}`)},[()=>({"tag-selected":g(d).includes(g(j).id)}),()=>T(g(j))]),qt("click",M,()=>nt(g(j).id)),rt(R,M)}),rt(m,x)};ne(tv,m=>{v()?.length&&typeof v()=="object"&&m(ev)})}B(yi);var Wr=gt(yi,2),wi=P(Wr);return B(Wr),B(Yr),B(xi),B(Fe),Ir(Fe,m=>u=m,()=>u),_t(()=>{De(xi,`height: ${g(s)??""}px;`),Ur=oe(Gt,1,"svelte-1p3vbiv",null,Ur,{expandable:o(),maximized:g(f)}),wi.disabled=!(n()?.length||g(a).length),De(wi,`opacity:${n()?.length||g(a).length?"1":"0.25"}`)}),qt("keydown",Gt,ae),qt("input",Gt,se),so("focus",Gt,bt),Mo(Gt,n),qt("click",wi,()=>pt()),rt(t,Fe),Ui(Ko)}po(["click","keydown","input","change"]),customElements.define("hb-messages-send",Po(Hr,{id:{},text:{},expandable:{},tags:{},files:{}},[],[],{mode:"open"})),Ei.Component=Hr,Object.defineProperty(Ei,Symbol.toStringTag,{value:"Module"})})(this["messages-send"]=this["messages-send"]||{});
|
|
190
190
|
//# sourceMappingURL=main.iife.js.map
|