maildo 1.3.7 → 1.3.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.js +1 -1
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -1 +1 @@
1
- (function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const l of o)if(l.type==="childList")for(const i of l.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&r(i)}).observe(document,{childList:!0,subtree:!0});function n(o){const l={};return o.integrity&&(l.integrity=o.integrity),o.referrerPolicy&&(l.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?l.credentials="include":o.crossOrigin==="anonymous"?l.credentials="omit":l.credentials="same-origin",l}function r(o){if(o.ep)return;o.ep=!0;const l=n(o);fetch(o.href,l)}})();const jt=!1;var qt=Array.isArray,Ln=Array.prototype.indexOf,Un=Array.from,Oe=Object.defineProperty,Ee=Object.getOwnPropertyDescriptor,Yt=Object.getOwnPropertyDescriptors,In=Object.prototype,Fn=Array.prototype,et=Object.getPrototypeOf,kt=Object.isExtensible;const ce=()=>{};function jn(e){return e()}function Tt(e){for(var t=0;t<e.length;t++)e[t]()}function qn(){var e,t,n=new Promise((r,o)=>{e=r,t=o});return{promise:n,resolve:e,reject:t}}const L=2,Vt=4,tt=8,he=16,V=32,le=64,Bt=128,I=256,Re=512,$=1024,F=2048,J=4096,z=8192,ge=16384,nt=32768,rt=65536,St=1<<17,Yn=1<<18,Se=1<<19,Wt=1<<20,We=1<<21,ot=1<<22,ne=1<<23,xe=Symbol("$state"),lt=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"};function Vn(){throw new Error("https://svelte.dev/e/await_outside_boundary")}function Ht(e){throw new Error("https://svelte.dev/e/lifecycle_outside_component")}function Bn(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function Wn(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function Hn(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function Kn(e){throw new Error("https://svelte.dev/e/effect_orphan")}function Gn(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function zn(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function Zn(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function Jn(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}const Qn=1,Xn=2,S=Symbol(),er="http://www.w3.org/1999/xhtml";function Kt(e){return e===this.v}function Gt(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function zt(e){return!Gt(e,this.v)}let Ae=!1,tr=!1;function nr(){Ae=!0}let E=null;function Me(e){E=e}function Zt(e){return Jt().get(e)}function At(e,t){return Jt().set(e,t),t}function Fe(e,t=!1,n){E={p:E,c:null,e:null,s:e,x:null,l:Ae&&!t?{s:null,u:null,$:[]}:null}}function je(e){var t=E,n=t.e;if(n!==null){t.e=null;for(var r of n)cn(r)}return E=t.p,{}}function Ce(){return!Ae||E!==null&&E.l===null}function Jt(e){return E===null&&Ht(),E.c??=new Map(rr(E)||void 0)}function rr(e){let t=e.p;for(;t!==null;){const n=t.c;if(n!==null)return n;t=t.p}return null}const or=new WeakMap;function lr(e){var t=m;if(t===null)return g.f|=ne,e;if((t.f&nt)===0){if((t.f&Bt)===0)throw!t.parent&&e instanceof Error&&Qt(e),e;t.b.error(e)}else st(e,t)}function st(e,t){for(;t!==null;){if((t.f&Bt)!==0)try{t.b.error(e);return}catch(n){e=n}t=t.parent}throw e instanceof Error&&Qt(e),e}function Qt(e){const t=or.get(e);t&&(Oe(e,"message",{value:t.message}),Oe(e,"stack",{value:t.stack}))}function sr(){for(var e=m.b;e!==null&&!e.has_pending_snippet();)e=e.parent;return e===null&&Vn(),e}function it(e){var t=L|F,n=g!==null&&(g.f&L)!==0?g:null;return m===null||n!==null&&(n.f&I)!==0?t|=I:m.f|=Se,{ctx:E,deps:null,effects:null,equals:Kt,f:t,fn:e,reactions:null,rv:0,v:S,wv:0,parent:n??m,ac:null}}function ir(e,t){let n=m;n===null&&Bn();var r=n.b,o=void 0,l=ft(S),i=null,u=!g;return yr(()=>{try{var s=e();i&&Promise.resolve(s).catch(()=>{})}catch(c){s=Promise.reject(c)}var a=()=>s;o=i?.then(a,a)??Promise.resolve(s),i=o;var f=C,_=r.pending;u&&(r.update_pending_count(1),_||f.increment());const d=(c,v=void 0)=>{i=null,_||f.activate(),v?v!==lt&&(l.f|=ne,Ke(l,v)):((l.f&ne)!==0&&(l.f^=ne),Ke(l,c)),u&&(r.update_pending_count(-1),_||f.decrement()),tn()};if(o.then(d,c=>d(null,c||"unknown")),f)return()=>{queueMicrotask(()=>f.neuter())}}),new Promise(s=>{function a(f){function _(){f===o?s(l):a(o)}f.then(_,_)}a(o)})}function ar(e){const t=it(e);return t.equals=zt,t}function Xt(e){var t=e.effects;if(t!==null){e.effects=null;for(var n=0;n<t.length;n+=1)oe(t[n])}}function ur(e){for(var t=e.parent;t!==null;){if((t.f&L)===0)return t;t=t.parent}return null}function at(e){var t,n=m;Z(ur(e));try{Xt(e),t=yn(e)}finally{Z(n)}return t}function en(e){var t=at(e);if(e.equals(t)||(e.v=t,e.wv=bn()),!me){var n=(K||(e.f&I)!==0)&&e.deps!==null?J:$;M(e,n)}}function fr(e,t,n){const r=Ce()?it:ar;if(t.length===0){n(e.map(r));return}var o=C,l=m,i=cr(),u=sr();Promise.all(t.map(s=>ir(s))).then(s=>{o?.activate(),i();try{n([...e.map(r),...s])}catch(a){(l.f&ge)===0&&st(a,l)}o?.deactivate(),tn()}).catch(s=>{u.error(s)})}function cr(){var e=m,t=g,n=E,r=C;return function(){Z(e),q(t),Me(n),r?.activate()}}function tn(){Z(null),q(null),Me(null)}const Ve=new Set;let C=null,Ct=new Set,Ne=[];function nn(){const e=Ne.shift();Ne.length>0&&queueMicrotask(nn),e()}let ke=[],ut=null,He=!1;class ve{current=new Map;#a=new Map;#o=new Set;#e=0;#u=null;#f=!1;#n=[];#l=[];#r=[];#t=[];#s=[];#c=[];#_=[];skipped_effects=new Set;process(t){ke=[];for(const o of t)this.#v(o);if(this.#n.length===0&&this.#e===0){this.#d();var n=this.#r,r=this.#t;this.#r=[],this.#t=[],this.#s=[],C=null,$t(n),$t(r),C===null?C=this:Ve.delete(this),this.#u?.resolve()}else this.#i(this.#r),this.#i(this.#t),this.#i(this.#s);for(const o of this.#n)de(o);for(const o of this.#l)de(o);this.#n=[],this.#l=[]}#v(t){t.f^=$;for(var n=t.first;n!==null;){var r=n.f,o=(r&(V|le))!==0,l=o&&(r&$)!==0,i=l||(r&z)!==0||this.skipped_effects.has(n);if(!i&&n.fn!==null){if(o)n.f^=$;else if((r&Vt)!==0)this.#t.push(n);else if((r&$)===0)if((r&ot)!==0){var u=n.b?.pending?this.#l:this.#n;u.push(n)}else qe(n)&&((n.f&he)!==0&&this.#s.push(n),de(n));var s=n.first;if(s!==null){n=s;continue}}var a=n.parent;for(n=n.next;n===null&&a!==null;)n=a.next,a=a.parent}}#i(t){for(const n of t)((n.f&F)!==0?this.#c:this.#_).push(n),M(n,$);t.length=0}capture(t,n){this.#a.has(t)||this.#a.set(t,n),this.current.set(t,t.v)}activate(){C=this}deactivate(){C=null;for(const t of Ct)if(Ct.delete(t),t(),C!==null)break}neuter(){this.#f=!0}flush(){ke.length>0?_r():this.#d(),C===this&&(this.#e===0&&Ve.delete(this),this.deactivate())}#d(){if(!this.#f)for(const t of this.#o)t();this.#o.clear()}increment(){this.#e+=1}decrement(){if(this.#e-=1,this.#e===0){for(const t of this.#c)M(t,F),pe(t);for(const t of this.#_)M(t,J),pe(t);this.#r=[],this.#t=[],this.flush()}else this.deactivate()}add_callback(t){this.#o.add(t)}settled(){return(this.#u??=qn()).promise}static ensure(){if(C===null){const t=C=new ve;Ve.add(C),ve.enqueue(()=>{C===t&&t.flush()})}return C}static enqueue(t){Ne.length===0&&queueMicrotask(nn),Ne.unshift(t)}}function _r(){var e=_e;He=!0;try{var t=0;for(Ot(!0);ke.length>0;){var n=ve.ensure();if(t++>1e3){var r,o;dr()}n.process(ke),G.clear()}}finally{He=!1,Ot(e),ut=null}}function dr(){try{Gn()}catch(e){st(e,ut)}}let ee=null;function $t(e){var t=e.length;if(t!==0){for(var n=0;n<t;){var r=e[n++];if((r.f&(ge|z))===0&&qe(r)&&(ee=[],de(r),r.deps===null&&r.first===null&&r.nodes_start===null&&(r.teardown===null&&r.ac===null?vn(r):r.fn=null),ee?.length>0)){G.clear();for(const o of ee)de(o);ee=[]}}ee=null}}function pe(e){for(var t=ut=e;t.parent!==null;){t=t.parent;var n=t.f;if(He&&t===m&&(n&he)!==0)return;if((n&(le|V))!==0){if((n&$)===0)return;t.f^=$}}ke.push(t)}const G=new Map;function ft(e,t){var n={f:0,v:e,reactions:null,equals:Kt,rv:0,wv:0};return n}function A(e,t){const n=ft(e);return Ar(n),n}function vr(e,t=!1,n=!0){const r=ft(e);return t||(r.equals=zt),Ae&&n&&E!==null&&E.l!==null&&(E.l.s??=[]).push(r),r}function y(e,t,n=!1){g!==null&&(!j||(g.f&St)!==0)&&Ce()&&(g.f&(L|he|ot|St))!==0&&!Y?.includes(e)&&Jn();let r=n?we(t):t;return Ke(e,r)}function Ke(e,t){if(!e.equals(t)){var n=e.v;me?G.set(e,t):G.set(e,n),e.v=t;var r=ve.ensure();r.capture(e,n),(e.f&L)!==0&&((e.f&F)!==0&&at(e),M(e,(e.f&I)===0?$:J)),e.wv=bn(),rn(e,F),Ce()&&m!==null&&(m.f&$)!==0&&(m.f&(V|le))===0&&(U===null?Cr([e]):U.push(e))}return t}function Be(e){y(e,e.v+1)}function rn(e,t){var n=e.reactions;if(n!==null)for(var r=Ce(),o=n.length,l=0;l<o;l++){var i=n[l],u=i.f;if(!(!r&&i===m)){var s=(u&F)===0;s&&M(i,t),(u&L)!==0?rn(i,J):s&&((u&he)!==0&&ee!==null&&ee.push(i),pe(i))}}}function we(e){if(typeof e!="object"||e===null||xe in e)return e;const t=et(e);if(t!==In&&t!==Fn)return e;var n=new Map,r=qt(e),o=A(0),l=re,i=u=>{if(re===l)return u();var s=g,a=re;q(null),Mt(l);var f=u();return q(s),Mt(a),f};return r&&n.set("length",A(e.length)),new Proxy(e,{defineProperty(u,s,a){(!("value"in a)||a.configurable===!1||a.enumerable===!1||a.writable===!1)&&zn();var f=n.get(s);return f===void 0?f=i(()=>{var _=A(a.value);return n.set(s,_),_}):y(f,a.value,!0),!0},deleteProperty(u,s){var a=n.get(s);if(a===void 0){if(s in u){const f=i(()=>A(S));n.set(s,f),Be(o)}}else y(a,S),Be(o);return!0},get(u,s,a){if(s===xe)return e;var f=n.get(s),_=s in u;if(f===void 0&&(!_||Ee(u,s)?.writable)&&(f=i(()=>{var c=we(_?u[s]:S),v=A(c);return v}),n.set(s,f)),f!==void 0){var d=p(f);return d===S?void 0:d}return Reflect.get(u,s,a)},getOwnPropertyDescriptor(u,s){var a=Reflect.getOwnPropertyDescriptor(u,s);if(a&&"value"in a){var f=n.get(s);f&&(a.value=p(f))}else if(a===void 0){var _=n.get(s),d=_?.v;if(_!==void 0&&d!==S)return{enumerable:!0,configurable:!0,value:d,writable:!0}}return a},has(u,s){if(s===xe)return!0;var a=n.get(s),f=a!==void 0&&a.v!==S||Reflect.has(u,s);if(a!==void 0||m!==null&&(!f||Ee(u,s)?.writable)){a===void 0&&(a=i(()=>{var d=f?we(u[s]):S,c=A(d);return c}),n.set(s,a));var _=p(a);if(_===S)return!1}return f},set(u,s,a,f){var _=n.get(s),d=s in u;if(r&&s==="length")for(var c=a;c<_.v;c+=1){var v=n.get(c+"");v!==void 0?y(v,S):c in u&&(v=i(()=>A(S)),n.set(c+"",v))}if(_===void 0)(!d||Ee(u,s)?.writable)&&(_=i(()=>A(void 0)),y(_,we(a)),n.set(s,_));else{d=_.v!==S;var w=i(()=>we(a));y(_,w)}var O=Reflect.getOwnPropertyDescriptor(u,s);if(O?.set&&O.set.call(f,a),!d){if(r&&typeof s=="string"){var k=n.get("length"),x=Number(s);Number.isInteger(x)&&x>=k.v&&y(k,x+1)}Be(o)}return!0},ownKeys(u){p(o);var s=Reflect.ownKeys(u).filter(_=>{var d=n.get(_);return d===void 0||d.v!==S});for(var[a,f]of n)f.v!==S&&!(a in u)&&s.push(a);return s},setPrototypeOf(){Zn()}})}var Dt,on,ln,sn;function pr(){if(Dt===void 0){Dt=window,on=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,n=Text.prototype;ln=Ee(t,"firstChild").get,sn=Ee(t,"nextSibling").get,kt(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),kt(n)&&(n.__t=void 0)}}function an(e=""){return document.createTextNode(e)}function Pe(e){return ln.call(e)}function ct(e){return sn.call(e)}function R(e,t){return Pe(e)}function ye(e,t){{var n=Pe(e);return n instanceof Comment&&n.data===""?ct(n):n}}function T(e,t=1,n=!1){let r=e;for(;t--;)r=ct(r);return r}function hr(){return!1}function un(e){var t=g,n=m;q(null),Z(null);try{return e()}finally{q(t),Z(n)}}function fn(e){m===null&&g===null&&Kn(),g!==null&&(g.f&I)!==0&&m===null&&Hn(),me&&Wn()}function gr(e,t){var n=t.last;n===null?t.last=t.first=e:(n.next=e,e.prev=n,t.last=e)}function Q(e,t,n,r=!0){var o=m;o!==null&&(o.f&z)!==0&&(e|=z);var l={ctx:E,deps:null,nodes_start:null,nodes_end:null,f:e|F,first:null,fn:t,last:null,next:null,parent:o,b:o&&o.b,prev:null,teardown:null,transitions:null,wv:0,ac:null};if(n)try{de(l),l.f|=nt}catch(s){throw oe(l),s}else t!==null&&pe(l);if(r){var i=l;if(n&&i.deps===null&&i.teardown===null&&i.nodes_start===null&&i.first===i.last&&(i.f&Se)===0&&(i=i.first),i!==null&&(i.parent=o,o!==null&&gr(i,o),g!==null&&(g.f&L)!==0&&(e&le)===0)){var u=g;(u.effects??=[]).push(i)}}return l}function mr(e){const t=Q(tt,null,!1);return M(t,$),t.teardown=e,t}function Ge(e){fn();var t=m.f,n=!g&&(t&V)!==0&&(t&nt)===0;if(n){var r=E;(r.e??=[]).push(e)}else return cn(e)}function cn(e){return Q(Vt|Wt,e,!1)}function br(e){return fn(),Q(tt|Wt,e,!0)}function wr(e){ve.ensure();const t=Q(le|Se,e,!0);return(n={})=>new Promise(r=>{n.outro?pn(t,()=>{oe(t),r(void 0)}):(oe(t),r(void 0))})}function yr(e){return Q(ot|Se,e,!0)}function ue(e,t=[],n=[]){fr(t,n,r=>{Q(tt,()=>e(...r.map(p)),!0)})}function Er(e,t=0){var n=Q(he|t,e,!0);return n}function ze(e,t=!0){return Q(V|Se,e,!0,t)}function _n(e){var t=e.teardown;if(t!==null){const n=me,r=g;Rt(!0),q(null);try{t.call(null)}finally{Rt(n),q(r)}}}function dn(e,t=!1){var n=e.first;for(e.first=e.last=null;n!==null;){const o=n.ac;o!==null&&un(()=>{o.abort(lt)});var r=n.next;(n.f&le)!==0?n.parent=null:oe(n,t),n=r}}function xr(e){for(var t=e.first;t!==null;){var n=t.next;(t.f&V)===0&&oe(t),t=n}}function oe(e,t=!0){var n=!1;(t||(e.f&Yn)!==0)&&e.nodes_start!==null&&e.nodes_end!==null&&(kr(e.nodes_start,e.nodes_end),n=!0),dn(e,t&&!n),Le(e,0),M(e,ge);var r=e.transitions;if(r!==null)for(const l of r)l.stop();_n(e);var o=e.parent;o!==null&&o.first!==null&&vn(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes_start=e.nodes_end=e.ac=null}function kr(e,t){for(;e!==null;){var n=e===t?null:ct(e);e.remove(),e=n}}function vn(e){var t=e.parent,n=e.prev,r=e.next;n!==null&&(n.next=r),r!==null&&(r.prev=n),t!==null&&(t.first===e&&(t.first=r),t.last===e&&(t.last=n))}function pn(e,t){var n=[];hn(e,n,!0),Tr(n,()=>{oe(e),t&&t()})}function Tr(e,t){var n=e.length;if(n>0){var r=()=>--n||t();for(var o of e)o.out(r)}else t()}function hn(e,t,n){if((e.f&z)===0){if(e.f^=z,e.transitions!==null)for(const i of e.transitions)(i.is_global||n)&&t.push(i);for(var r=e.first;r!==null;){var o=r.next,l=(r.f&rt)!==0||(r.f&V)!==0;hn(r,t,l?n:!1),r=o}}}function Sr(e){gn(e,!0)}function gn(e,t){if((e.f&z)!==0){e.f^=z,(e.f&$)===0&&(M(e,F),pe(e));for(var n=e.first;n!==null;){var r=n.next,o=(n.f&rt)!==0||(n.f&V)!==0;gn(n,o?t:!1),n=r}if(e.transitions!==null)for(const l of e.transitions)(l.is_global||t)&&l.in()}}let _e=!1;function Ot(e){_e=e}let me=!1;function Rt(e){me=e}let g=null,j=!1;function q(e){g=e}let m=null;function Z(e){m=e}let Y=null;function Ar(e){g!==null&&(Y===null?Y=[e]:Y.push(e))}let D=null,P=0,U=null;function Cr(e){U=e}let mn=1,Te=0,re=Te;function Mt(e){re=e}let K=!1;function bn(){return++mn}function qe(e){var t=e.f;if((t&F)!==0)return!0;if((t&J)!==0){var n=e.deps,r=(t&I)!==0;if(n!==null){var o,l,i=(t&Re)!==0,u=r&&m!==null&&!K,s=n.length;if((i||u)&&(m===null||(m.f&ge)===0)){var a=e,f=a.parent;for(o=0;o<s;o++)l=n[o],(i||!l?.reactions?.includes(a))&&(l.reactions??=[]).push(a);i&&(a.f^=Re),u&&f!==null&&(f.f&I)===0&&(a.f^=I)}for(o=0;o<s;o++)if(l=n[o],qe(l)&&en(l),l.wv>e.wv)return!0}(!r||m!==null&&!K)&&M(e,$)}return!1}function wn(e,t,n=!0){var r=e.reactions;if(r!==null&&!Y?.includes(e))for(var o=0;o<r.length;o++){var l=r[o];(l.f&L)!==0?wn(l,t,!1):t===l&&(n?M(l,F):(l.f&$)!==0&&M(l,J),pe(l))}}function yn(e){var t=D,n=P,r=U,o=g,l=K,i=Y,u=E,s=j,a=re,f=e.f;D=null,P=0,U=null,K=(f&I)!==0&&(j||!_e||g===null),g=(f&(V|le))===0?e:null,Y=null,Me(e.ctx),j=!1,re=++Te,e.ac!==null&&(un(()=>{e.ac.abort(lt)}),e.ac=null);try{e.f|=We;var _=e.fn,d=_(),c=e.deps;if(D!==null){var v;if(Le(e,P),c!==null&&P>0)for(c.length=P+D.length,v=0;v<D.length;v++)c[P+v]=D[v];else e.deps=c=D;if(!K||(f&L)!==0&&e.reactions!==null)for(v=P;v<c.length;v++)(c[v].reactions??=[]).push(e)}else c!==null&&P<c.length&&(Le(e,P),c.length=P);if(Ce()&&U!==null&&!j&&c!==null&&(e.f&(L|J|F))===0)for(v=0;v<U.length;v++)wn(U[v],e);return o!==null&&o!==e&&(Te++,U!==null&&(r===null?r=U:r.push(...U))),(e.f&ne)!==0&&(e.f^=ne),d}catch(w){return lr(w)}finally{e.f^=We,D=t,P=n,U=r,g=o,K=l,Y=i,Me(u),j=s,re=a}}function $r(e,t){let n=t.reactions;if(n!==null){var r=Ln.call(n,e);if(r!==-1){var o=n.length-1;o===0?n=t.reactions=null:(n[r]=n[o],n.pop())}}n===null&&(t.f&L)!==0&&(D===null||!D.includes(t))&&(M(t,J),(t.f&(I|Re))===0&&(t.f^=Re),Xt(t),Le(t,0))}function Le(e,t){var n=e.deps;if(n!==null)for(var r=t;r<n.length;r++)$r(e,n[r])}function de(e){var t=e.f;if((t&ge)===0){M(e,$);var n=m,r=_e;m=e,_e=!0;try{(t&he)!==0?xr(e):dn(e),_n(e);var o=yn(e);e.teardown=typeof o=="function"?o:null,e.wv=mn;var l;jt&&tr&&(e.f&F)!==0&&e.deps}finally{_e=r,m=n}}}function p(e){var t=e.f,n=(t&L)!==0;if(g!==null&&!j){var r=m!==null&&(m.f&ge)!==0;if(!r&&!Y?.includes(e)){var o=g.deps;if((g.f&We)!==0)e.rv<Te&&(e.rv=Te,D===null&&o!==null&&o[P]===e?P++:D===null?D=[e]:(!K||!D.includes(e))&&D.push(e));else{(g.deps??=[]).push(e);var l=e.reactions;l===null?e.reactions=[g]:l.includes(g)||l.push(g)}}}else if(n&&e.deps===null&&e.effects===null){var i=e,u=i.parent;u!==null&&(u.f&I)===0&&(i.f^=I)}if(me){if(G.has(e))return G.get(e);if(n){i=e;var s=i.v;return((i.f&$)===0&&i.reactions!==null||En(i))&&(s=at(i)),G.set(i,s),s}}else n&&(i=e,qe(i)&&en(i));if((e.f&ne)!==0)throw e.v;return e.v}function En(e){if(e.v===S)return!0;if(e.deps===null)return!1;for(const t of e.deps)if(G.has(t)||(t.f&L)!==0&&En(t))return!0;return!1}function _t(e){var t=j;try{return j=!0,e()}finally{j=t}}const Dr=-7169;function M(e,t){e.f=e.f&Dr|t}function Or(e){if(!(typeof e!="object"||!e||e instanceof EventTarget)){if(xe in e)Ze(e);else if(!Array.isArray(e))for(let t in e){const n=e[t];typeof n=="object"&&n&&xe in n&&Ze(n)}}}function Ze(e,t=new Set){if(typeof e=="object"&&e!==null&&!(e instanceof EventTarget)&&!t.has(e)){t.add(e),e instanceof Date&&e.getTime();for(let r in e)try{Ze(e[r],t)}catch{}const n=et(e);if(n!==Object.prototype&&n!==Array.prototype&&n!==Map.prototype&&n!==Set.prototype&&n!==Date.prototype){const r=Yt(n);for(let o in r){const l=r[o].get;if(l)try{l.call(e)}catch{}}}}}const Rr=["touchstart","touchmove"];function Mr(e){return Rr.includes(e)}const xn=new Set,Je=new Set;function kn(e){for(var t=0;t<e.length;t++)xn.add(e[t]);for(var n of Je)n(e)}let Nt=null;function De(e){var t=this,n=t.ownerDocument,r=e.type,o=e.composedPath?.()||[],l=o[0]||e.target;Nt=e;var i=0,u=Nt===e&&e.__root;if(u){var s=o.indexOf(u);if(s!==-1&&(t===document||t===window)){e.__root=t;return}var a=o.indexOf(t);if(a===-1)return;s<=a&&(i=s)}if(l=o[i]||e.target,l!==t){Oe(e,"currentTarget",{configurable:!0,get(){return l||n}});var f=g,_=m;q(null),Z(null);try{for(var d,c=[];l!==null;){var v=l.assignedSlot||l.parentNode||l.host||null;try{var w=l["__"+r];if(w!=null&&(!l.disabled||e.target===l))if(qt(w)){var[O,...k]=w;O.apply(l,[e,...k])}else w.call(l,e)}catch(x){d?c.push(x):d=x}if(e.cancelBubble||v===t||v===null)break;l=v}if(d){for(let x of c)queueMicrotask(()=>{throw x});throw d}}finally{e.__root=t,delete e.currentTarget,q(f),Z(_)}}}function Nr(e){var t=document.createElement("template");return t.innerHTML=e.replaceAll("<!>","<!---->"),t.content}function Pt(e,t){var n=m;n.nodes_start===null&&(n.nodes_start=e,n.nodes_end=t)}function se(e,t){var n=(t&Qn)!==0,r=(t&Xn)!==0,o,l=!e.startsWith("<!>");return()=>{o===void 0&&(o=Nr(l?e:"<!>"+e),n||(o=Pe(o)));var i=r||on?document.importNode(o,!0):o.cloneNode(!0);if(n){var u=Pe(i),s=i.lastChild;Pt(u,s)}else Pt(i,i);return i}}function te(e,t){e!==null&&e.before(t)}function H(e,t){var n=t==null?"":typeof t=="object"?t+"":t;n!==(e.__t??=e.nodeValue)&&(e.__t=n,e.nodeValue=n+"")}function Pr(e,t){return Lr(e,t)}const ie=new Map;function Lr(e,{target:t,anchor:n,props:r={},events:o,context:l,intro:i=!0}){pr();var u=new Set,s=_=>{for(var d=0;d<_.length;d++){var c=_[d];if(!u.has(c)){u.add(c);var v=Mr(c);t.addEventListener(c,De,{passive:v});var w=ie.get(c);w===void 0?(document.addEventListener(c,De,{passive:v}),ie.set(c,1)):ie.set(c,w+1)}}};s(Un(xn)),Je.add(s);var a=void 0,f=wr(()=>{var _=n??t.appendChild(an());return ze(()=>{if(l){Fe({});var d=E;d.c=l}o&&(r.$$events=o),a=e(_,r)||{},l&&je()}),()=>{for(var d of u){t.removeEventListener(d,De);var c=ie.get(d);--c===0?(document.removeEventListener(d,De),ie.delete(d)):ie.set(d,c)}Je.delete(s),_!==n&&_.parentNode?.removeChild(_)}});return Ur.set(a,f),a}let Ur=new WeakMap;function fe(e,t,n=!1){var r=e,o=null,l=null,i=S,u=n?rt:0,s=!1;const a=(c,v=!0)=>{s=!0,d(v,c)};var f=null;function _(){f!==null&&(f.lastChild.remove(),r.before(f),f=null);var c=i?o:l,v=i?l:o;c&&Sr(c),v&&pn(v,()=>{i?l=null:o=null})}const d=(c,v)=>{if(i!==(i=c)){var w=hr(),O=r;if(w&&(f=document.createDocumentFragment(),f.append(O=an())),i?o??=v&&ze(()=>v(O)):l??=v&&ze(()=>v(O)),w){var k=C,x=i?o:l,X=i?l:o;x&&k.skipped_effects.delete(x),X&&k.skipped_effects.add(X),k.add_callback(_)}else _()}};Er(()=>{s=!1,t(a),s||d(null,null)},u)}const Ir=Symbol("is custom element"),Fr=Symbol("is html");function Qe(e,t,n,r){var o=jr(e);o[t]!==(o[t]=n)&&(n==null?e.removeAttribute(t):typeof n!="string"&&qr(e).includes(t)?e[t]=n:e.setAttribute(t,n))}function jr(e){return e.__attributes??={[Ir]:e.nodeName.includes("-"),[Fr]:e.namespaceURI===er}}var Lt=new Map;function qr(e){var t=e.getAttribute("is")||e.nodeName,n=Lt.get(t);if(n)return n;Lt.set(t,n=[]);for(var r,o=e,l=Element.prototype;l!==o;){r=Yt(o);for(var i in r)r[i].set&&n.push(i);o=et(o)}return n}function Yr(e=!1){const t=E,n=t.l.u;if(!n)return;let r=()=>Or(t.s);if(e){let o=0,l={};const i=it(()=>{let u=!1;const s=t.s;for(const a in s)s[a]!==l[a]&&(l[a]=s[a],u=!0);return u&&o++,o});r=()=>p(i)}n.b.length&&br(()=>{Ut(t,r),Tt(n.b)}),Ge(()=>{const o=_t(()=>n.m.map(jn));return()=>{for(const l of o)typeof l=="function"&&l()}}),n.a.length&&Ge(()=>{Ut(t,r),Tt(n.a)})}function Ut(e,t){if(e.l.s)for(const n of e.l.s)p(n);t()}function Tn(e,t,n){if(e==null)return t(void 0),ce;const r=_t(()=>e.subscribe(t,n));return r.unsubscribe?()=>r.unsubscribe():r}const ae=[];function It(e,t=ce){let n=null;const r=new Set;function o(u){if(Gt(e,u)&&(e=u,n)){const s=!ae.length;for(const a of r)a[1](),ae.push(a,e);if(s){for(let a=0;a<ae.length;a+=2)ae[a][0](ae[a+1]);ae.length=0}}}function l(u){o(u(e))}function i(u,s=ce){const a=[u,s];return r.add(a),r.size===1&&(n=t(o,l)||ce),u(e),()=>{r.delete(a),r.size===0&&n&&(n(),n=null)}}return{set:o,update:l,subscribe:i}}function Vr(e){let t;return Tn(e,n=>t=n)(),t}let Xe=Symbol();function Ue(e,t,n){const r=n[t]??={store:null,source:vr(void 0),unsubscribe:ce};if(r.store!==e&&!(Xe in n))if(r.unsubscribe(),r.store=e??null,e==null)r.source.v=void 0,r.unsubscribe=ce;else{var o=!0;r.unsubscribe=Tn(e,l=>{o?r.source.v=l:y(r.source,l)}),o=!1}return e&&Xe in n?Vr(e):p(r.source)}function Ie(e,t){return e.set(t),t}function dt(){const e={};function t(){mr(()=>{for(var n in e)e[n].unsubscribe();Oe(e,Xe,{enumerable:!1,value:!0})})}return[e,t]}function vt(e){E===null&&Ht(),Ae&&E.l!==null?Br(E).m.push(e):Ge(()=>{const t=_t(e);if(typeof t=="function")return t})}function Br(e){var t=e.l;return t.u??={a:[],b:[],m:[]}}const Wr="5";typeof window<"u"&&((window.__svelte??={}).v??=new Set).add(Wr);nr();function Hr(e,t,n){e.preventDefault();const r="https://mail.google.com/mail/?extsrc=mailto&url="+encodeURIComponent(p(t));window.open(r,"_blank","noopener, noreferrer"),n()}async function Kr(e,t,n,r){e.preventDefault();try{await navigator.clipboard.writeText(p(t)),y(n,!0),setTimeout(r,1500)}catch(o){console.error("Unable to copy to clipboard.",o)}}var Gr=se("<strong>cc</strong> <br/>",1),zr=se("<strong>bcc</strong> <br/>",1),Zr=se("<strong>subject</strong> <br/>",1),Jr=se("<strong>body</strong> <br/>",1),Qr=se('<dialog open><article><h4> </h4> <p><small><!> <!> <!> <!></small></p> <section><a href="#gmail">open in <strong>Gmail</strong></a> <a href="#outlook">open in <strong>Outlook</strong></a> <a href="#yahoo">open in <strong>Yahoo Mail</strong></a> <a><strong>open</strong> default</a> <a href="#copy"><strong> </strong></a></section> <footer><small><a href="https://github.com/Sammy-T/maildo" target="_blank">maildo</a></small></footer></article></dialog>');function Xr(e,t){Fe(t,!0);const[n,r]=dt(),o=()=>Ue(u,"$selectedMailto",n),l="type-url",i="type-data",u=Zt("selectedMailto");let s="",a=A(""),f=A(""),_=A(""),d=A(""),c=A(""),v=A(""),w=A(!1);function O(){const h=new URL(o().href),{searchParams:b}=h;y(a,h.pathname,!0),y(f,b.get("cc"),!0),y(_,b.get("bcc"),!0),y(d,b.get("subject"),!0),y(c,b.get("body"),!0)}function k(){const{dataset:h}=o();y(a,h.address&&h.domain?`${h.address}@${h.domain}`:"",!0),y(f,h.ccAddress&&h.ccDomain?`${h.ccAddress}@${h.ccDomain}`:"",!0),y(_,h.bccAddress&&h.bccDomain?`${h.bccAddress}@${h.bccDomain}`:"",!0),y(d,h.subject,!0),y(c,h.body,!0)}function x(){switch(s){case l:return o().href;case i:const h=new URLSearchParams;p(f)&&h.set("cc",p(f)),p(_)&&h.set("bcc",p(_)),p(d)&&h.set("subject",p(d)),p(c)&&h.set("body",p(c));const b=new URL(`mailto:${p(a)}`);return b.search=h.toString(),b.toString();default:return console.error(`Invalid mailto type: ${s}`),""}}function X(h){h.preventDefault();const b=new URLSearchParams;b.set("path","/mail/action/compose"),p(a)&&b.set("to",p(a)),p(d)&&b.set("subject",p(d)),p(c)&&b.set("body",p(c));const N=new URL("https://outlook.live.com/owa/");N.search=b.toString(),window.open(N.toString(),"_blank","noopener, noreferrer"),B()}function $e(h){h.preventDefault();const b=new URLSearchParams;p(a)&&b.set("to",p(a)),p(d)&&b.set("subject",p(d)),p(c)&&b.set("body",p(c));const N=new URL("https://compose.mail.yahoo.com");N.search=b.toString(),window.open(N.toString(),"_blank","noopener, noreferrer"),B()}function B(h=null){h&&h.currentTarget!==h.target||Ie(u,null)}vt(()=>{o().href.startsWith("mailto:")?(s=l,O()):(s=i,k()),y(v,x(),!0)});var be=Qr();be.__click=B;var Ye=R(be),W=R(Ye),Sn=R(W),pt=T(W,2),An=R(pt),ht=R(An);{var Cn=h=>{var b=Gr(),N=T(ye(b));ue(()=>H(N,` ${p(f)??""}`)),te(h,b)};fe(ht,h=>{p(f)&&h(Cn)})}var gt=T(ht,2);{var $n=h=>{var b=zr(),N=T(ye(b));ue(()=>H(N,` ${p(_)??""}`)),te(h,b)};fe(gt,h=>{p(_)&&h($n)})}var mt=T(gt,2);{var Dn=h=>{var b=Zr(),N=T(ye(b));ue(()=>H(N,` ${p(d)??""}`)),te(h,b)};fe(mt,h=>{p(d)&&h(Dn)})}var On=T(mt,2);{var Rn=h=>{var b=Jr(),N=T(ye(b));ue(()=>H(N,` ${p(c)??""}`)),te(h,b)};fe(On,h=>{p(c)&&h(Rn)})}var Mn=T(pt,2),bt=R(Mn);bt.__click=[Hr,v,B];var wt=T(bt,2);wt.__click=X;var yt=T(wt,2);yt.__click=$e;var Et=T(yt,2),xt=T(Et,2);xt.__click=[Kr,a,w,B];var Nn=R(xt),Pn=R(Nn);ue(()=>{H(Sn,p(a)),Qe(Et,"href",p(v)),H(Pn,p(w)?"copied":"copy")}),te(e,be),je(),r()}kn(["click"]);function eo(e,t,n){e.preventDefault();const o=`https://wa.me/${p(t).replaceAll(/\D/g,"").replace(/^0+/,"")}`;window.open(o,"_blank","noopener, noreferrer"),n()}function to(e,t,n){e.preventDefault();const r=`skype:${encodeURIComponent(p(t))}`;window.open(r,"_blank","noopener, noreferrer"),n()}async function no(e,t,n,r){e.preventDefault();try{await navigator.clipboard.writeText(p(t)),y(n,!0),setTimeout(r,1500)}catch(o){console.error("Unable to copy to clipboard.",o)}}var ro=se('<dialog open><article><h4> </h4> <section><a href="#whatsapp">open in <strong>WhatsApp</strong></a> <a href="#skype">open in <strong>Skype</strong></a> <a><strong>call</strong> as default</a> <a><strong>text</strong> as default</a> <a href="#copy"><strong> </strong></a></section> <footer><small><a href="https://github.com/Sammy-T/maildo" target="_blank">maildo</a></small></footer></article></dialog>');function oo(e,t){Fe(t,!0);const[n,r]=dt(),o=()=>Ue(i,"$selectedCallto",n),l=/^(tel:)|^(callto:)/,i=Zt("selectedCallto");let u=A(""),s=A(!1);function a(){y(u,o().href.replace(l,""),!0)}function f(){const{dataset:W}=o();y(u,W.tel,!0)}function _(W=null){W&&W.currentTarget!==W.target||Ie(i,null)}vt(()=>{l.test(o().href)?a():f()});var d=ro();d.__click=_;var c=R(d),v=R(c),w=R(v),O=T(v,2),k=R(O);k.__click=[eo,u,_];var x=T(k,2);x.__click=[to,u,_];var X=T(x,2),$e=T(X,2),B=T($e,2);B.__click=[no,u,s,_];var be=R(B),Ye=R(be);ue(()=>{H(w,p(u)),Qe(X,"href",`tel:${p(u)}`),Qe($e,"href",`sms:${p(u)}`),H(Ye,p(s)?"copied":"copy")}),te(e,d),je(),r()}kn(["click"]);var lo=se("<!> <!>",1);function so(e,t){Fe(t,!1);const[n,r]=dt(),o=()=>Ue(s,"$selectedMailto",n),l=()=>Ue(a,"$selectedCallto",n),i='a[href^="mailto:"]:not(.no-maildo), a[href="#maildo"][data-address], a.maildo[data-address]',u='a[href^="tel:"]:not(.no-maildo), a[href^="callto:"]:not(.no-maildo), a[href="#maildo"][data-tel], a.maildo[data-tel]',s=It(null);At("selectedMailto",s);const a=It(null);At("selectedCallto",a),vt(()=>{const w=document.querySelectorAll(i),O=document.querySelectorAll(u);w.forEach(k=>{k.addEventListener("click",x=>{x.preventDefault(),Ie(s,k)})}),O.forEach(k=>{k.addEventListener("click",x=>{x.preventDefault(),Ie(a,k)})})}),Yr();var f=lo(),_=ye(f);{var d=w=>{Xr(w,{})};fe(_,w=>{o()&&w(d)})}var c=T(_,2);{var v=w=>{oo(w,{})};fe(c,w=>{l()&&w(v)})}te(e,f),je(),r()}const Ft="maildo-app";function io(){let e=document.getElementById(Ft);if(!e)e=document.createElement("slot"),e.id=Ft,document.body.appendChild(e);else if(e.childElementCount>0){console.warn("App target already exists");return}Pr(so,{target:e})}io();
1
+ (function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))r(s);new MutationObserver(s=>{for(const i of s)if(i.type==="childList")for(const o of i.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&r(o)}).observe(document,{childList:!0,subtree:!0});function n(s){const i={};return s.integrity&&(i.integrity=s.integrity),s.referrerPolicy&&(i.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?i.credentials="include":s.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(s){if(s.ep)return;s.ep=!0;const i=n(s);fetch(s.href,i)}})();const Zt=!1;var Kn=Array.isArray,zn=Array.prototype.indexOf,Gn=Array.from,Jt=Object.defineProperty,Re=Object.getOwnPropertyDescriptor,Qt=Object.getOwnPropertyDescriptors,Hn=Object.prototype,Zn=Array.prototype,bt=Object.getPrototypeOf,Lt=Object.isExtensible;const we=()=>{};function Jn(e){return e()}function ut(e){for(var t=0;t<e.length;t++)e[t]()}function Xt(){var e,t,n=new Promise((r,s)=>{e=r,t=s});return{promise:n,resolve:e,reject:t}}const C=2,en=4,tt=8,J=16,Q=32,he=64,nt=128,A=1024,$=2048,X=4096,K=8192,ie=16384,yt=32768,ke=65536,Ut=1<<17,Qn=1<<18,Te=1<<19,tn=1<<20,q=256,Ke=512,ze=32768,ct=1<<21,wt=1<<22,ae=1<<23,Me=Symbol("$state"),me=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"};function nn(e){throw new Error("https://svelte.dev/e/lifecycle_outside_component")}function Xn(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function er(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function tr(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function nr(e){throw new Error("https://svelte.dev/e/effect_orphan")}function rr(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function sr(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function ir(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function or(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function lr(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}const fr=1,ar=2,T=Symbol(),ur="http://www.w3.org/1999/xhtml";function cr(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}function rn(e){return e===this.v}function sn(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function on(e){return!sn(e,this.v)}let Le=!1,hr=!1;function _r(){Le=!0}let w=null;function xe(e){w=e}function ln(e){return fn().get(e)}function Ft(e,t){return fn().set(e,t),t}function rt(e,t=!1,n){w={p:w,i:!1,c:null,e:null,s:e,x:null,l:Le&&!t?{s:null,u:null,$:[]}:null}}function st(e){var t=w,n=t.e;if(n!==null){t.e=null;for(var r of n)En(r)}return t.i=!0,w=t.p,{}}function Ue(){return!Le||w!==null&&w.l===null}function fn(e){return w===null&&nn(),w.c??=new Map(dr(w)||void 0)}function dr(e){let t=e.p;for(;t!==null;){const n=t.c;if(n!==null)return n;t=t.p}return null}let be=[];function pr(){var e=be;be=[],ut(e)}function Et(e){if(be.length===0){var t=be;queueMicrotask(()=>{t===be&&pr()})}be.push(e)}function an(e){var t=b;if(t===null)return g.f|=ae,e;if((t.f&yt)===0){if((t.f&nt)===0)throw e;t.b.error(e)}else Se(e,t)}function Se(e,t){for(;t!==null;){if((t.f&nt)!==0)try{t.b.error(e);return}catch(n){e=n}t=t.parent}throw e}const Ve=new Set;let x=null,B=null,re=[],kt=null,ht=!1;class W{committed=!1;current=new Map;previous=new Map;#e=new Set;#t=new Set;#n=0;#r=0;#f=null;#o=[];#l=[];skipped_effects=new Set;is_fork=!1;process(t){re=[],this.apply();var n={parent:null,effect:null,effects:[],render_effects:[],block_effects:[]};for(const r of t)this.#s(r,n);this.is_fork||this.#a(),this.#r>0||this.is_fork?(this.#i(n.effects),this.#i(n.render_effects),this.#i(n.block_effects)):(x=null,It(n.render_effects),It(n.effects),this.#f?.resolve()),B=null}#s(t,n){t.f^=A;for(var r=t.first;r!==null;){var s=r.f,i=(s&(Q|he))!==0,o=i&&(s&A)!==0,a=o||(s&K)!==0||this.skipped_effects.has(r);if((r.f&nt)!==0&&r.b?.is_pending()&&(n={parent:n,effect:r,effects:[],render_effects:[],block_effects:[]}),!a&&r.fn!==null){i?r.f^=A:(s&en)!==0?n.effects.push(r):Ie(r)&&((r.f&J)!==0&&n.block_effects.push(r),Pe(r));var l=r.first;if(l!==null){r=l;continue}}var f=r.parent;for(r=r.next;r===null&&f!==null;)f===n.effect&&(this.#i(n.effects),this.#i(n.render_effects),this.#i(n.block_effects),n=n.parent),r=f.next,f=f.parent}}#i(t){for(const n of t)((n.f&$)!==0?this.#o:this.#l).push(n),D(n,A)}capture(t,n){this.previous.has(t)||this.previous.set(t,n),this.current.set(t,t.v),B?.set(t,t.v)}activate(){x=this}deactivate(){x=null,B=null}flush(){if(this.activate(),re.length>0){if(vr(),x!==null&&x!==this)return}else this.#n===0&&this.process([]);this.deactivate()}discard(){for(const t of this.#t)t(this);this.#t.clear()}#a(){if(this.#r===0){for(const t of this.#e)t();this.#e.clear()}this.#n===0&&this.#u()}#u(){if(Ve.size>1){this.previous.clear();var t=B,n=!0,r={parent:null,effect:null,effects:[],render_effects:[],block_effects:[]};for(const s of Ve){if(s===this){n=!1;continue}const i=[];for(const[a,l]of this.current){if(s.current.has(a))if(n&&l!==s.current.get(a))s.current.set(a,l);else continue;i.push(a)}if(i.length===0)continue;const o=[...s.current.keys()].filter(a=>!this.current.has(a));if(o.length>0){const a=new Set,l=new Map;for(const f of i)un(f,o,a,l);if(re.length>0){x=s,s.apply();for(const f of re)s.#s(f,r);re=[],s.deactivate()}}}x=null,B=t}this.committed=!0,Ve.delete(this)}increment(t){this.#n+=1,t&&(this.#r+=1)}decrement(t){this.#n-=1,t&&(this.#r-=1),this.revive()}revive(){for(const t of this.#o)D(t,$),ce(t);for(const t of this.#l)D(t,X),ce(t);this.#o=[],this.#l=[],this.flush()}oncommit(t){this.#e.add(t)}ondiscard(t){this.#t.add(t)}settled(){return(this.#f??=Xt()).promise}static ensure(){if(x===null){const t=x=new W;Ve.add(x),W.enqueue(()=>{x===t&&t.flush()})}return x}static enqueue(t){Et(t)}apply(){}}function vr(){var e=Ee;ht=!0;try{var t=0;for(qt(!0);re.length>0;){var n=W.ensure();if(t++>1e3){var r,s;gr()}n.process(re),oe.clear()}}finally{ht=!1,qt(e),kt=null}}function gr(){try{rr()}catch(e){Se(e,kt)}}let G=null;function It(e){var t=e.length;if(t!==0){for(var n=0;n<t;){var r=e[n++];if((r.f&(ie|K))===0&&Ie(r)&&(G=new Set,Pe(r),r.deps===null&&r.first===null&&r.nodes_start===null&&(r.teardown===null&&r.ac===null?Tn(r):r.fn=null),G?.size>0)){oe.clear();for(const s of G){if((s.f&(ie|K))!==0)continue;const i=[s];let o=s.parent;for(;o!==null;)G.has(o)&&(G.delete(o),i.push(o)),o=o.parent;for(let a=i.length-1;a>=0;a--){const l=i[a];(l.f&(ie|K))===0&&Pe(l)}}G.clear()}}G=null}}function un(e,t,n,r){if(!n.has(e)&&(n.add(e),e.reactions!==null))for(const s of e.reactions){const i=s.f;(i&C)!==0?un(s,t,n,r):(i&(wt|J))!==0&&(i&$)===0&&cn(s,t,r)&&(D(s,$),ce(s))}}function cn(e,t,n){const r=n.get(e);if(r!==void 0)return r;if(e.deps!==null)for(const s of e.deps){if(t.includes(s))return!0;if((s.f&C)!==0&&cn(s,t,n))return n.set(s,!0),!0}return n.set(e,!1),!1}function ce(e){for(var t=kt=e;t.parent!==null;){t=t.parent;var n=t.f;if(ht&&t===b&&(n&J)!==0)return;if((n&(he|Q))!==0){if((n&A)===0)return;t.f^=A}}re.push(t)}function mr(e){let t=0,n=Fe(0),r;return()=>{Or()&&(d(n),Lr(()=>(t===0&&(r=ot(()=>e(()=>Oe(n)))),t+=1,()=>{Et(()=>{t-=1,t===0&&(r?.(),r=void 0,Oe(n))})})))}}var br=ke|Te|nt;function yr(e,t,n){new wr(e,t,n)}class wr{parent;#e=!1;#t;#n=null;#r;#f;#o;#l=null;#s=null;#i=null;#a=null;#u=null;#_=0;#c=0;#d=!1;#h=null;#b=mr(()=>(this.#h=Fe(this.#_),()=>{this.#h=null}));constructor(t,n,r){this.#t=t,this.#r=n,this.#f=r,this.parent=b.b,this.#e=!!this.#r.pending,this.#o=kn(()=>{b.b=this;{var s=this.#g();try{this.#l=H(()=>r(s))}catch(i){this.error(i)}this.#c>0?this.#v():this.#e=!1}return()=>{this.#u?.remove()}},br)}#y(){try{this.#l=H(()=>this.#f(this.#t))}catch(t){this.error(t)}this.#e=!1}#w(){const t=this.#r.pending;t&&(this.#s=H(()=>t(this.#t)),W.enqueue(()=>{var n=this.#g();this.#l=this.#p(()=>(W.ensure(),H(()=>this.#f(n)))),this.#c>0?this.#v():($e(this.#s,()=>{this.#s=null}),this.#e=!1)}))}#g(){var t=this.#t;return this.#e&&(this.#u=Ze(),this.#t.before(this.#u),t=this.#u),t}is_pending(){return this.#e||!!this.parent&&this.parent.is_pending()}has_pending_snippet(){return!!this.#r.pending}#p(t){var n=b,r=g,s=w;z(this.#o),O(this.#o),xe(this.#o.ctx);try{return t()}catch(i){return an(i),null}finally{z(n),O(r),xe(s)}}#v(){const t=this.#r.pending;this.#l!==null&&(this.#a=document.createDocumentFragment(),this.#a.append(this.#u),Cn(this.#l,this.#a)),this.#s===null&&(this.#s=H(()=>t(this.#t)))}#m(t){if(!this.has_pending_snippet()){this.parent&&this.parent.#m(t);return}this.#c+=t,this.#c===0&&(this.#e=!1,this.#s&&$e(this.#s,()=>{this.#s=null}),this.#a&&(this.#t.before(this.#a),this.#a=null))}update_pending_count(t){this.#m(t),this.#_+=t,this.#h&&He(this.#h,this.#_)}get_effect_pending(){return this.#b(),d(this.#h)}error(t){var n=this.#r.onerror;let r=this.#r.failed;if(this.#d||!n&&!r)throw t;this.#l&&(I(this.#l),this.#l=null),this.#s&&(I(this.#s),this.#s=null),this.#i&&(I(this.#i),this.#i=null);var s=!1,i=!1;const o=()=>{if(s){cr();return}s=!0,i&&lr(),W.ensure(),this.#_=0,this.#i!==null&&$e(this.#i,()=>{this.#i=null}),this.#e=this.has_pending_snippet(),this.#l=this.#p(()=>(this.#d=!1,H(()=>this.#f(this.#t)))),this.#c>0?this.#v():this.#e=!1};var a=g;try{O(null),i=!0,n?.(t,o),i=!1}catch(l){Se(l,this.#o&&this.#o.parent)}finally{O(a)}r&&Et(()=>{this.#i=this.#p(()=>{W.ensure(),this.#d=!0;try{return H(()=>{r(this.#t,()=>t,()=>o)})}catch(l){return Se(l,this.#o.parent),null}finally{this.#d=!1}})})}}function Er(e,t,n,r){const s=Ue()?xt:Sr;if(n.length===0&&e.length===0){r(t.map(s));return}var i=x,o=b,a=kr();function l(){Promise.all(n.map(f=>xr(f))).then(f=>{a();try{r([...t.map(s),...f])}catch(c){(o.f&ie)===0&&Se(c,o)}i?.deactivate(),Ge()}).catch(f=>{Se(f,o)})}e.length>0?Promise.all(e).then(()=>{a();try{return l()}finally{i?.deactivate(),Ge()}}):l()}function kr(){var e=b,t=g,n=w,r=x;return function(i=!0){z(e),O(t),xe(n),i&&r?.activate()}}function Ge(){z(null),O(null),xe(null)}function xt(e){var t=C|$,n=g!==null&&(g.f&C)!==0?g:null;return b===null||n!==null&&(n.f&q)!==0?t|=q:b.f|=Te,{ctx:w,deps:null,effects:null,equals:rn,f:t,fn:e,reactions:null,rv:0,v:T,wv:0,parent:n??b,ac:null}}function xr(e,t){let n=b;n===null&&Xn();var r=n.b,s=void 0,i=Fe(T),o=!g,a=new Map;return Pr(()=>{var l=Xt();s=l.promise;try{Promise.resolve(e()).then(l.resolve,l.reject).then(()=>{f===x&&f.committed&&f.deactivate(),Ge()})}catch(h){l.reject(h),Ge()}var f=x;if(o){var c=!r.is_pending();r.update_pending_count(1),f.increment(c),a.get(f)?.reject(me),a.delete(f),a.set(f,l)}const p=(h,u=void 0)=>{if(f.activate(),u)u!==me&&(i.f|=ae,He(i,u));else{(i.f&ae)!==0&&(i.f^=ae),He(i,h);for(const[v,y]of a){if(a.delete(v),v===f)break;y.reject(me)}}o&&(r.update_pending_count(-1),f.decrement(c))};l.promise.then(p,h=>p(null,h||"unknown"))}),wn(()=>{for(const l of a.values())l.reject(me)}),new Promise(l=>{function f(c){function p(){c===s?l(i):f(s)}c.then(p,p)}f(s)})}function Sr(e){const t=xt(e);return t.equals=on,t}function hn(e){var t=e.effects;if(t!==null){e.effects=null;for(var n=0;n<t.length;n+=1)I(t[n])}}function Tr(e){for(var t=e.parent;t!==null;){if((t.f&C)===0)return t;t=t.parent}return null}function St(e){var t,n=b;z(Tr(e));try{e.f&=~ze,hn(e),t=$n(e)}finally{z(n)}return t}function _n(e){var t=St(e);if(e.equals(t)||(e.v=t,e.wv=Mn()),!Ae)if(B!==null)B.set(e,e.v);else{var n=(se||(e.f&q)!==0)&&e.deps!==null?X:A;D(e,n)}}let _t=new Set;const oe=new Map;let dn=!1;function Fe(e,t){var n={f:0,v:e,reactions:null,equals:rn,rv:0,wv:0};return n}function S(e,t){const n=Fe(e);return qr(n),n}function Ar(e,t=!1,n=!0){const r=Fe(e);return t||(r.equals=on),Le&&n&&w!==null&&w.l!==null&&(w.l.s??=[]).push(r),r}function E(e,t,n=!1){g!==null&&(!V||(g.f&Ut)!==0)&&Ue()&&(g.f&(C|J|wt|Ut))!==0&&!Z?.includes(e)&&or();let r=n?De(t):t;return He(e,r)}function He(e,t){if(!e.equals(t)){var n=e.v;Ae?oe.set(e,t):oe.set(e,n),e.v=t;var r=W.ensure();r.capture(e,n),(e.f&C)!==0&&((e.f&$)!==0&&St(e),D(e,(e.f&q)===0?A:X)),e.wv=Mn(),pn(e,$),Ue()&&b!==null&&(b.f&A)!==0&&(b.f&(Q|he))===0&&(j===null?Yr([e]):j.push(e)),!r.is_fork&&_t.size>0&&!dn&&Dr()}return t}function Dr(){dn=!1;const e=Array.from(_t);for(const t of e)(t.f&A)!==0&&D(t,X),Ie(t)&&Pe(t);_t.clear()}function Oe(e){E(e,e.v+1)}function pn(e,t){var n=e.reactions;if(n!==null)for(var r=Ue(),s=n.length,i=0;i<s;i++){var o=n[i],a=o.f;if(!(!r&&o===b)){var l=(a&$)===0;l&&D(o,t),(a&C)!==0?(a&ze)===0&&(o.f|=ze,pn(o,X)):l&&((a&J)!==0&&G!==null&&G.add(o),ce(o))}}}function De(e){if(typeof e!="object"||e===null||Me in e)return e;const t=bt(e);if(t!==Hn&&t!==Zn)return e;var n=new Map,r=Kn(e),s=S(0),i=ue,o=a=>{if(ue===i)return a();var l=g,f=ue;O(null),Bt(i);var c=a();return O(l),Bt(f),c};return r&&n.set("length",S(e.length)),new Proxy(e,{defineProperty(a,l,f){(!("value"in f)||f.configurable===!1||f.enumerable===!1||f.writable===!1)&&sr();var c=n.get(l);return c===void 0?c=o(()=>{var p=S(f.value);return n.set(l,p),p}):E(c,f.value,!0),!0},deleteProperty(a,l){var f=n.get(l);if(f===void 0){if(l in a){const c=o(()=>S(T));n.set(l,c),Oe(s)}}else E(f,T),Oe(s);return!0},get(a,l,f){if(l===Me)return e;var c=n.get(l),p=l in a;if(c===void 0&&(!p||Re(a,l)?.writable)&&(c=o(()=>{var u=De(p?a[l]:T),v=S(u);return v}),n.set(l,c)),c!==void 0){var h=d(c);return h===T?void 0:h}return Reflect.get(a,l,f)},getOwnPropertyDescriptor(a,l){var f=Reflect.getOwnPropertyDescriptor(a,l);if(f&&"value"in f){var c=n.get(l);c&&(f.value=d(c))}else if(f===void 0){var p=n.get(l),h=p?.v;if(p!==void 0&&h!==T)return{enumerable:!0,configurable:!0,value:h,writable:!0}}return f},has(a,l){if(l===Me)return!0;var f=n.get(l),c=f!==void 0&&f.v!==T||Reflect.has(a,l);if(f!==void 0||b!==null&&(!c||Re(a,l)?.writable)){f===void 0&&(f=o(()=>{var h=c?De(a[l]):T,u=S(h);return u}),n.set(l,f));var p=d(f);if(p===T)return!1}return c},set(a,l,f,c){var p=n.get(l),h=l in a;if(r&&l==="length")for(var u=f;u<p.v;u+=1){var v=n.get(u+"");v!==void 0?E(v,T):u in a&&(v=o(()=>S(T)),n.set(u+"",v))}if(p===void 0)(!h||Re(a,l)?.writable)&&(p=o(()=>S(void 0)),E(p,De(f)),n.set(l,p));else{h=p.v!==T;var y=o(()=>De(f));E(p,y)}var N=Reflect.getOwnPropertyDescriptor(a,l);if(N?.set&&N.set.call(c,f),!h){if(r&&typeof l=="string"){var P=n.get("length"),Y=Number(l);Number.isInteger(Y)&&Y>=P.v&&E(P,Y+1)}Oe(s)}return!0},ownKeys(a){d(s);var l=Reflect.ownKeys(a).filter(p=>{var h=n.get(p);return h===void 0||h.v!==T});for(var[f,c]of n)c.v!==T&&!(f in a)&&l.push(f);return l},setPrototypeOf(){ir()}})}var jt,vn,gn,mn;function Cr(){if(jt===void 0){jt=window,vn=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,n=Text.prototype;gn=Re(t,"firstChild").get,mn=Re(t,"nextSibling").get,Lt(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),Lt(n)&&(n.__t=void 0)}}function Ze(e=""){return document.createTextNode(e)}function Je(e){return gn.call(e)}function it(e){return mn.call(e)}function M(e,t){return Je(e)}function Ce(e,t=!1){{var n=Je(e);return n instanceof Comment&&n.data===""?it(n):n}}function k(e,t=1,n=!1){let r=e;for(;t--;)r=it(r);return r}function Rr(){return!1}function bn(e){var t=g,n=b;O(null),z(null);try{return e()}finally{O(t),z(n)}}function yn(e){b===null&&g===null&&nr(),g!==null&&(g.f&q)!==0&&b===null&&tr(),Ae&&er()}function Mr(e,t){var n=t.last;n===null?t.last=t.first=e:(n.next=e,e.prev=n,t.last=e)}function ee(e,t,n,r=!0){var s=b;s!==null&&(s.f&K)!==0&&(e|=K);var i={ctx:w,deps:null,nodes_start:null,nodes_end:null,f:e|$,first:null,fn:t,last:null,next:null,parent:s,b:s&&s.b,prev:null,teardown:null,transitions:null,wv:0,ac:null};if(n)try{Pe(i),i.f|=yt}catch(l){throw I(i),l}else t!==null&&ce(i);if(r){var o=i;if(n&&o.deps===null&&o.teardown===null&&o.nodes_start===null&&o.first===o.last&&(o.f&Te)===0&&(o=o.first,(e&J)!==0&&(e&ke)!==0&&o!==null&&(o.f|=ke)),o!==null&&(o.parent=s,s!==null&&Mr(o,s),g!==null&&(g.f&C)!==0&&(e&he)===0)){var a=g;(a.effects??=[]).push(o)}}return i}function Or(){return g!==null&&!V}function wn(e){const t=ee(tt,null,!1);return D(t,A),t.teardown=e,t}function dt(e){yn();var t=b.f,n=!g&&(t&Q)!==0&&(t&yt)===0;if(n){var r=w;(r.e??=[]).push(e)}else return En(e)}function En(e){return ee(en|tn,e,!1)}function $r(e){return yn(),ee(tt|tn,e,!0)}function Nr(e){W.ensure();const t=ee(he|Te,e,!0);return(n={})=>new Promise(r=>{n.outro?$e(t,()=>{I(t),r(void 0)}):(I(t),r(void 0))})}function Pr(e){return ee(wt|Te,e,!0)}function Lr(e,t=0){return ee(tt|t,e,!0)}function ge(e,t=[],n=[],r=[]){Er(r,t,n,s=>{ee(tt,()=>e(...s.map(d)),!0)})}function kn(e,t=0){var n=ee(J|t,e,!0);return n}function H(e,t=!0){return ee(Q|Te,e,!0,t)}function xn(e){var t=e.teardown;if(t!==null){const n=Ae,r=g;Yt(!0),O(null);try{t.call(null)}finally{Yt(n),O(r)}}}function Sn(e,t=!1){var n=e.first;for(e.first=e.last=null;n!==null;){const s=n.ac;s!==null&&bn(()=>{s.abort(me)});var r=n.next;(n.f&he)!==0?n.parent=null:I(n,t),n=r}}function Ur(e){for(var t=e.first;t!==null;){var n=t.next;(t.f&Q)===0&&I(t),t=n}}function I(e,t=!0){var n=!1;(t||(e.f&Qn)!==0)&&e.nodes_start!==null&&e.nodes_end!==null&&(Fr(e.nodes_start,e.nodes_end),n=!0),Sn(e,t&&!n),Qe(e,0),D(e,ie);var r=e.transitions;if(r!==null)for(const i of r)i.stop();xn(e);var s=e.parent;s!==null&&s.first!==null&&Tn(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes_start=e.nodes_end=e.ac=null}function Fr(e,t){for(;e!==null;){var n=e===t?null:it(e);e.remove(),e=n}}function Tn(e){var t=e.parent,n=e.prev,r=e.next;n!==null&&(n.next=r),r!==null&&(r.prev=n),t!==null&&(t.first===e&&(t.first=r),t.last===e&&(t.last=n))}function $e(e,t,n=!0){var r=[];An(e,r,!0),Ir(r,()=>{n&&I(e),t&&t()})}function Ir(e,t){var n=e.length;if(n>0){var r=()=>--n||t();for(var s of e)s.out(r)}else t()}function An(e,t,n){if((e.f&K)===0){if(e.f^=K,e.transitions!==null)for(const o of e.transitions)(o.is_global||n)&&t.push(o);for(var r=e.first;r!==null;){var s=r.next,i=(r.f&ke)!==0||(r.f&Q)!==0&&(e.f&J)!==0;An(r,t,i?n:!1),r=s}}}function jr(e){Dn(e,!0)}function Dn(e,t){if((e.f&K)!==0){e.f^=K,(e.f&A)===0&&(D(e,$),ce(e));for(var n=e.first;n!==null;){var r=n.next,s=(n.f&ke)!==0||(n.f&Q)!==0;Dn(n,s?t:!1),n=r}if(e.transitions!==null)for(const i of e.transitions)(i.is_global||t)&&i.in()}}function Cn(e,t){for(var n=e.nodes_start,r=e.nodes_end;n!==null;){var s=n===r?null:it(n);t.append(n),n=s}}let Ee=!1;function qt(e){Ee=e}let Ae=!1;function Yt(e){Ae=e}let g=null,V=!1;function O(e){g=e}let b=null;function z(e){b=e}let Z=null;function qr(e){g!==null&&(Z===null?Z=[e]:Z.push(e))}let R=null,F=0,j=null;function Yr(e){j=e}let Rn=1,Ne=0,ue=Ne;function Bt(e){ue=e}let se=!1;function Mn(){return++Rn}function Ie(e){var t=e.f;if((t&$)!==0)return!0;if((t&X)!==0){var n=e.deps,r=(t&q)!==0;if(t&C&&(e.f&=~ze),n!==null){var s,i,o=(t&Ke)!==0,a=r&&b!==null&&!se,l=n.length;if((o||a)&&(b===null||(b.f&ie)===0)){var f=e,c=f.parent;for(s=0;s<l;s++)i=n[s],(o||!i?.reactions?.includes(f))&&(i.reactions??=[]).push(f);o&&(f.f^=Ke),a&&c!==null&&(c.f&q)===0&&(f.f^=q)}for(s=0;s<l;s++)if(i=n[s],Ie(i)&&_n(i),i.wv>e.wv)return!0}(!r||b!==null&&!se)&&D(e,A)}return!1}function On(e,t,n=!0){var r=e.reactions;if(r!==null&&!Z?.includes(e))for(var s=0;s<r.length;s++){var i=r[s];(i.f&C)!==0?On(i,t,!1):t===i&&(n?D(i,$):(i.f&A)!==0&&D(i,X),ce(i))}}function $n(e){var t=R,n=F,r=j,s=g,i=se,o=Z,a=w,l=V,f=ue,c=e.f;R=null,F=0,j=null,se=(c&q)!==0&&(V||!Ee||g===null),g=(c&(Q|he))===0?e:null,Z=null,xe(e.ctx),V=!1,ue=++Ne,e.ac!==null&&(bn(()=>{e.ac.abort(me)}),e.ac=null);try{e.f|=ct;var p=e.fn,h=p(),u=e.deps;if(R!==null){var v;if(Qe(e,F),u!==null&&F>0)for(u.length=F+R.length,v=0;v<R.length;v++)u[F+v]=R[v];else e.deps=u=R;if(!se||(c&C)!==0&&e.reactions!==null)for(v=F;v<u.length;v++)(u[v].reactions??=[]).push(e)}else u!==null&&F<u.length&&(Qe(e,F),u.length=F);if(Ue()&&j!==null&&!V&&u!==null&&(e.f&(C|X|$))===0)for(v=0;v<j.length;v++)On(j[v],e);return s!==null&&s!==e&&(Ne++,j!==null&&(r===null?r=j:r.push(...j))),(e.f&ae)!==0&&(e.f^=ae),h}catch(y){return an(y)}finally{e.f^=ct,R=t,F=n,j=r,g=s,se=i,Z=o,xe(a),V=l,ue=f}}function Br(e,t){let n=t.reactions;if(n!==null){var r=zn.call(n,e);if(r!==-1){var s=n.length-1;s===0?n=t.reactions=null:(n[r]=n[s],n.pop())}}n===null&&(t.f&C)!==0&&(R===null||!R.includes(t))&&(D(t,X),(t.f&(q|Ke))===0&&(t.f^=Ke),hn(t),Qe(t,0))}function Qe(e,t){var n=e.deps;if(n!==null)for(var r=t;r<n.length;r++)Br(e,n[r])}function Pe(e){var t=e.f;if((t&ie)===0){D(e,A);var n=b,r=Ee;b=e,Ee=!0;try{(t&J)!==0?Ur(e):Sn(e),xn(e);var s=$n(e);e.teardown=typeof s=="function"?s:null,e.wv=Rn;var i;Zt&&hr&&(e.f&$)!==0&&e.deps}finally{Ee=r,b=n}}}function d(e){var t=e.f,n=(t&C)!==0;if(g!==null&&!V){var r=b!==null&&(b.f&ie)!==0;if(!r&&!Z?.includes(e)){var s=g.deps;if((g.f&ct)!==0)e.rv<Ne&&(e.rv=Ne,R===null&&s!==null&&s[F]===e?F++:R===null?R=[e]:(!se||!R.includes(e))&&R.push(e));else{(g.deps??=[]).push(e);var i=e.reactions;i===null?e.reactions=[g]:i.includes(g)||i.push(g)}}}else if(n&&e.deps===null&&e.effects===null){var o=e,a=o.parent;a!==null&&(a.f&q)===0&&(o.f^=q)}if(Ae){if(oe.has(e))return oe.get(e);if(n){o=e;var l=o.v;return((o.f&A)===0&&o.reactions!==null||Nn(o))&&(l=St(o)),oe.set(o,l),l}}else if(n){if(o=e,B?.has(o))return B.get(o);Ie(o)&&_n(o)}if(B?.has(e))return B.get(e);if((e.f&ae)!==0)throw e.v;return e.v}function Nn(e){if(e.v===T)return!0;if(e.deps===null)return!1;for(const t of e.deps)if(oe.has(t)||(t.f&C)!==0&&Nn(t))return!0;return!1}function ot(e){var t=V;try{return V=!0,e()}finally{V=t}}const Vr=-7169;function D(e,t){e.f=e.f&Vr|t}function Wr(e){if(!(typeof e!="object"||!e||e instanceof EventTarget)){if(Me in e)pt(e);else if(!Array.isArray(e))for(let t in e){const n=e[t];typeof n=="object"&&n&&Me in n&&pt(n)}}}function pt(e,t=new Set){if(typeof e=="object"&&e!==null&&!(e instanceof EventTarget)&&!t.has(e)){t.add(e),e instanceof Date&&e.getTime();for(let r in e)try{pt(e[r],t)}catch{}const n=bt(e);if(n!==Object.prototype&&n!==Array.prototype&&n!==Map.prototype&&n!==Set.prototype&&n!==Date.prototype){const r=Qt(n);for(let s in r){const i=r[s].get;if(i)try{i.call(e)}catch{}}}}}const Kr=["touchstart","touchmove"];function zr(e){return Kr.includes(e)}const Pn=new Set,vt=new Set;function Ln(e){for(var t=0;t<e.length;t++)Pn.add(e[t]);for(var n of vt)n(e)}let Vt=null;function We(e){var t=this,n=t.ownerDocument,r=e.type,s=e.composedPath?.()||[],i=s[0]||e.target;Vt=e;var o=0,a=Vt===e&&e.__root;if(a){var l=s.indexOf(a);if(l!==-1&&(t===document||t===window)){e.__root=t;return}var f=s.indexOf(t);if(f===-1)return;l<=f&&(o=l)}if(i=s[o]||e.target,i!==t){Jt(e,"currentTarget",{configurable:!0,get(){return i||n}});var c=g,p=b;O(null),z(null);try{for(var h,u=[];i!==null;){var v=i.assignedSlot||i.parentNode||i.host||null;try{var y=i["__"+r];y!=null&&(!i.disabled||e.target===i)&&y.call(i,e)}catch(N){h?u.push(N):h=N}if(e.cancelBubble||v===t||v===null)break;i=v}if(h){for(let N of u)queueMicrotask(()=>{throw N});throw h}}finally{e.__root=t,delete e.currentTarget,O(c),z(p)}}}function Gr(e){var t=document.createElement("template");return t.innerHTML=e.replaceAll("<!>","<!---->"),t.content}function Wt(e,t){var n=b;n.nodes_start===null&&(n.nodes_start=e,n.nodes_end=t)}function _e(e,t){var n=(t&fr)!==0,r=(t&ar)!==0,s,i=!e.startsWith("<!>");return()=>{s===void 0&&(s=Gr(i?e:"<!>"+e),n||(s=Je(s)));var o=r||vn?document.importNode(s,!0):s.cloneNode(!0);if(n){var a=Je(o),l=o.lastChild;Wt(a,l)}else Wt(o,o);return o}}function fe(e,t){e!==null&&e.before(t)}function ne(e,t){var n=t==null?"":typeof t=="object"?t+"":t;n!==(e.__t??=e.nodeValue)&&(e.__t=n,e.nodeValue=n+"")}function Hr(e,t){return Zr(e,t)}const pe=new Map;function Zr(e,{target:t,anchor:n,props:r={},events:s,context:i,intro:o=!0}){Cr();var a=new Set,l=p=>{for(var h=0;h<p.length;h++){var u=p[h];if(!a.has(u)){a.add(u);var v=zr(u);t.addEventListener(u,We,{passive:v});var y=pe.get(u);y===void 0?(document.addEventListener(u,We,{passive:v}),pe.set(u,1)):pe.set(u,y+1)}}};l(Gn(Pn)),vt.add(l);var f=void 0,c=Nr(()=>{var p=n??t.appendChild(Ze());return yr(p,{pending:()=>{}},h=>{if(i){rt({});var u=w;u.c=i}s&&(r.$$events=s),f=e(h,r)||{},i&&st()}),()=>{for(var h of a){t.removeEventListener(h,We);var u=pe.get(h);--u===0?(document.removeEventListener(h,We),pe.delete(h)):pe.set(h,u)}vt.delete(l),p!==n&&p.parentNode?.removeChild(p)}});return Jr.set(f,c),f}let Jr=new WeakMap;class Qr{anchor;#e=new Map;#t=new Map;#n=new Map;#r=!0;constructor(t,n=!0){this.anchor=t,this.#r=n}#f=()=>{var t=x;if(this.#e.has(t)){var n=this.#e.get(t),r=this.#t.get(n);if(r)jr(r);else{var s=this.#n.get(n);s&&(this.#t.set(n,s.effect),this.#n.delete(n),s.fragment.lastChild.remove(),this.anchor.before(s.fragment),r=s.effect)}for(const[i,o]of this.#e){if(this.#e.delete(i),i===t)break;const a=this.#n.get(o);a&&(I(a.effect),this.#n.delete(o))}for(const[i,o]of this.#t){if(i===n)continue;const a=()=>{if(Array.from(this.#e.values()).includes(i)){var f=document.createDocumentFragment();Cn(o,f),f.append(Ze()),this.#n.set(i,{effect:o,fragment:f})}else I(o);this.#t.delete(i)};this.#r||!r?$e(o,a,!1):a()}}};#o=t=>{this.#e.delete(t);const n=Array.from(this.#e.values());for(const[r,s]of this.#n)n.includes(r)||(I(s.effect),this.#n.delete(r))};ensure(t,n){var r=x,s=Rr();if(n&&!this.#t.has(t)&&!this.#n.has(t))if(s){var i=document.createDocumentFragment(),o=Ze();i.append(o),this.#n.set(t,{effect:H(()=>n(o)),fragment:i})}else this.#t.set(t,H(()=>n(this.anchor)));if(this.#e.set(r,t),s){for(const[a,l]of this.#t)a===t?r.skipped_effects.delete(l):r.skipped_effects.add(l);for(const[a,l]of this.#n)a===t?r.skipped_effects.delete(l.effect):r.skipped_effects.add(l.effect);r.oncommit(this.#f),r.ondiscard(this.#o)}else this.#f()}}function ye(e,t,n=!1){var r=new Qr(e),s=n?ke:0;function i(o,a){r.ensure(o,a)}kn(()=>{var o=!1;t((a,l=!0)=>{o=!0,i(l,a)}),o||i(!1,null)},s)}const Xr=Symbol("is custom element"),es=Symbol("is html");function gt(e,t,n,r){var s=ts(e);s[t]!==(s[t]=n)&&(n==null?e.removeAttribute(t):typeof n!="string"&&ns(e).includes(t)?e[t]=n:e.setAttribute(t,n))}function ts(e){return e.__attributes??={[Xr]:e.nodeName.includes("-"),[es]:e.namespaceURI===ur}}var Kt=new Map;function ns(e){var t=e.getAttribute("is")||e.nodeName,n=Kt.get(t);if(n)return n;Kt.set(t,n=[]);for(var r,s=e,i=Element.prototype;i!==s;){r=Qt(s);for(var o in r)r[o].set&&n.push(o);s=bt(s)}return n}function rs(e=!1){const t=w,n=t.l.u;if(!n)return;let r=()=>Wr(t.s);if(e){let s=0,i={};const o=xt(()=>{let a=!1;const l=t.s;for(const f in l)l[f]!==i[f]&&(i[f]=l[f],a=!0);return a&&s++,s});r=()=>d(o)}n.b.length&&$r(()=>{zt(t,r),ut(n.b)}),dt(()=>{const s=ot(()=>n.m.map(Jn));return()=>{for(const i of s)typeof i=="function"&&i()}}),n.a.length&&dt(()=>{zt(t,r),ut(n.a)})}function zt(e,t){if(e.l.s)for(const n of e.l.s)d(n);t()}function Un(e,t,n){if(e==null)return t(void 0),we;const r=ot(()=>e.subscribe(t,n));return r.unsubscribe?()=>r.unsubscribe():r}const ve=[];function Gt(e,t=we){let n=null;const r=new Set;function s(a){if(sn(e,a)&&(e=a,n)){const l=!ve.length;for(const f of r)f[1](),ve.push(f,e);if(l){for(let f=0;f<ve.length;f+=2)ve[f][0](ve[f+1]);ve.length=0}}}function i(a){s(a(e))}function o(a,l=we){const f=[a,l];return r.add(f),r.size===1&&(n=t(s,i)||we),a(e),()=>{r.delete(f),r.size===0&&n&&(n(),n=null)}}return{set:s,update:i,subscribe:o}}function ss(e){let t;return Un(e,n=>t=n)(),t}let mt=Symbol();function Xe(e,t,n){const r=n[t]??={store:null,source:Ar(void 0),unsubscribe:we};if(r.store!==e&&!(mt in n))if(r.unsubscribe(),r.store=e??null,e==null)r.source.v=void 0,r.unsubscribe=we;else{var s=!0;r.unsubscribe=Un(e,i=>{s?r.source.v=i:E(r.source,i)}),s=!1}return e&&mt in n?ss(e):d(r.source)}function et(e,t){return e.set(t),t}function Tt(){const e={};function t(){wn(()=>{for(var n in e)e[n].unsubscribe();Jt(e,mt,{enumerable:!1,value:!0})})}return[e,t]}function At(e){w===null&&nn(),Le&&w.l!==null?is(w).m.push(e):dt(()=>{const t=ot(e);if(typeof t=="function")return t})}function is(e){var t=e.l;return t.u??={a:[],b:[],m:[]}}const os="5";typeof window<"u"&&((window.__svelte??={}).v??=new Set).add(os);_r();var ls=_e("<strong>cc</strong> <br/>",1),fs=_e("<strong>bcc</strong> <br/>",1),as=_e("<strong>subject</strong> <br/>",1),us=_e("<strong>body</strong> <br/>",1),cs=_e('<dialog open><article><h4> </h4> <p><small><!> <!> <!> <!></small></p> <section><a href="#gmail">open in <strong>Gmail</strong></a> <a href="#outlook">open in <strong>Outlook</strong></a> <a href="#yahoo">open in <strong>Yahoo Mail</strong></a> <a><strong>open</strong> default</a> <a href="#copy"><strong> </strong></a></section> <footer><small><a href="https://github.com/Sammy-T/maildo" target="_blank">maildo</a></small></footer></article></dialog>');function hs(e,t){rt(t,!0);const n=()=>Xe(a,"$selectedMailto",r),[r,s]=Tt(),i="type-url",o="type-data",a=ln("selectedMailto");let l="",f=S(""),c=S(""),p=S(""),h=S(""),u=S(""),v=S(""),y=S(!1);function N(){const _=new URL(n().href),{searchParams:m}=_;E(f,_.pathname,!0),E(c,m.get("cc"),!0),E(p,m.get("bcc"),!0),E(h,m.get("subject"),!0),E(u,m.get("body"),!0)}function P(){const{dataset:_}=n();E(f,_.address&&_.domain?`${_.address}@${_.domain}`:"",!0),E(c,_.ccAddress&&_.ccDomain?`${_.ccAddress}@${_.ccDomain}`:"",!0),E(p,_.bccAddress&&_.bccDomain?`${_.bccAddress}@${_.bccDomain}`:"",!0),E(h,_.subject,!0),E(u,_.body,!0)}function Y(){switch(l){case i:return n().href;case o:const _=new URLSearchParams;d(c)&&_.set("cc",d(c)),d(p)&&_.set("bcc",d(p)),d(h)&&_.set("subject",d(h)),d(u)&&_.set("body",d(u));const m=new URL(`mailto:${d(f)}`);return m.search=_.toString(),m.toString();default:return console.error(`Invalid mailto type: ${l}`),""}}function lt(_){_.preventDefault();const m="https://mail.google.com/mail/?extsrc=mailto&url="+encodeURIComponent(d(v));window.open(m,"_blank","noopener, noreferrer"),te()}function je(_){_.preventDefault();const m=new URLSearchParams;m.set("path","/mail/action/compose"),d(f)&&m.set("to",d(f)),d(h)&&m.set("subject",d(h)),d(u)&&m.set("body",d(u));const U=new URL("https://outlook.live.com/owa/");U.search=m.toString(),window.open(U.toString(),"_blank","noopener, noreferrer"),te()}function qe(_){_.preventDefault();const m=new URLSearchParams;d(f)&&m.set("to",d(f)),d(h)&&m.set("subject",d(h)),d(u)&&m.set("body",d(u));const U=new URL("https://compose.mail.yahoo.com");U.search=m.toString(),window.open(U.toString(),"_blank","noopener, noreferrer"),te()}async function Ye(_){_.preventDefault();try{await navigator.clipboard.writeText(d(f)),E(y,!0),setTimeout(te,1500)}catch(m){console.error("Unable to copy to clipboard.",m)}}function te(_=null){_&&_.currentTarget!==_.target||et(a,null)}At(()=>{n().href.startsWith("mailto:")?(l=i,N()):(l=o,P()),E(v,Y(),!0)});var de=cs();de.__click=te;var ft=M(de),Be=M(ft),L=M(Be),le=k(Be,2),at=M(le),Dt=M(at);{var Fn=_=>{var m=ls(),U=k(Ce(m));ge(()=>ne(U,` ${d(c)??""}`)),fe(_,m)};ye(Dt,_=>{d(c)&&_(Fn)})}var Ct=k(Dt,2);{var In=_=>{var m=fs(),U=k(Ce(m));ge(()=>ne(U,` ${d(p)??""}`)),fe(_,m)};ye(Ct,_=>{d(p)&&_(In)})}var Rt=k(Ct,2);{var jn=_=>{var m=as(),U=k(Ce(m));ge(()=>ne(U,` ${d(h)??""}`)),fe(_,m)};ye(Rt,_=>{d(h)&&_(jn)})}var qn=k(Rt,2);{var Yn=_=>{var m=us(),U=k(Ce(m));ge(()=>ne(U,` ${d(u)??""}`)),fe(_,m)};ye(qn,_=>{d(u)&&_(Yn)})}var Bn=k(le,2),Mt=M(Bn);Mt.__click=lt;var Ot=k(Mt,2);Ot.__click=je;var $t=k(Ot,2);$t.__click=qe;var Nt=k($t,2),Pt=k(Nt,2);Pt.__click=Ye;var Vn=M(Pt),Wn=M(Vn);ge(()=>{ne(L,d(f)),gt(Nt,"href",d(v)),ne(Wn,d(y)?"copied":"copy")}),fe(e,de),st(),s()}Ln(["click"]);var _s=_e('<dialog open><article><h4> </h4> <section><a href="#whatsapp">open in <strong>WhatsApp</strong></a> <a href="#skype">open in <strong>Skype</strong></a> <a><strong>call</strong> as default</a> <a><strong>text</strong> as default</a> <a href="#copy"><strong> </strong></a></section> <footer><small><a href="https://github.com/Sammy-T/maildo" target="_blank">maildo</a></small></footer></article></dialog>');function ds(e,t){rt(t,!0);const n=()=>Xe(o,"$selectedCallto",r),[r,s]=Tt(),i=/^(tel:)|^(callto:)/,o=ln("selectedCallto");let a=S(""),l=S(!1);function f(){E(a,n().href.replace(i,""),!0)}function c(){const{dataset:L}=n();E(a,L.tel,!0)}function p(L){L.preventDefault();const at=`https://wa.me/${d(a).replaceAll(/\D/g,"").replace(/^0+/,"")}`;window.open(at,"_blank","noopener, noreferrer"),v()}function h(L){L.preventDefault();const le=`skype:${encodeURIComponent(d(a))}`;window.open(le,"_blank","noopener, noreferrer"),v()}async function u(L){L.preventDefault();try{await navigator.clipboard.writeText(d(a)),E(l,!0),setTimeout(v,1500)}catch(le){console.error("Unable to copy to clipboard.",le)}}function v(L=null){L&&L.currentTarget!==L.target||et(o,null)}At(()=>{i.test(n().href)?f():c()});var y=_s();y.__click=v;var N=M(y),P=M(N),Y=M(P),lt=k(P,2),je=M(lt);je.__click=p;var qe=k(je,2);qe.__click=h;var Ye=k(qe,2),te=k(Ye,2),de=k(te,2);de.__click=u;var ft=M(de),Be=M(ft);ge(()=>{ne(Y,d(a)),gt(Ye,"href",`tel:${d(a)}`),gt(te,"href",`sms:${d(a)}`),ne(Be,d(l)?"copied":"copy")}),fe(e,y),st(),s()}Ln(["click"]);var ps=_e("<!> <!>",1);function vs(e,t){rt(t,!1);const n=()=>Xe(l,"$selectedMailto",s),r=()=>Xe(f,"$selectedCallto",s),[s,i]=Tt(),o='a[href^="mailto:"]:not(.no-maildo), a[href="#maildo"][data-address], a.maildo[data-address]',a='a[href^="tel:"]:not(.no-maildo), a[href^="callto:"]:not(.no-maildo), a[href="#maildo"][data-tel], a.maildo[data-tel]',l=Gt(null);Ft("selectedMailto",l);const f=Gt(null);Ft("selectedCallto",f),At(()=>{const y=document.querySelectorAll(o),N=document.querySelectorAll(a);y.forEach(P=>{P.addEventListener("click",Y=>{Y.preventDefault(),et(l,P)})}),N.forEach(P=>{P.addEventListener("click",Y=>{Y.preventDefault(),et(f,P)})})}),rs();var c=ps(),p=Ce(c);{var h=y=>{hs(y,{})};ye(p,y=>{n()&&y(h)})}var u=k(p,2);{var v=y=>{ds(y,{})};ye(u,y=>{r()&&y(v)})}fe(e,c),st(),i()}const Ht="maildo-app";function gs(){let e=document.getElementById(Ht);if(!e)e=document.createElement("slot"),e.id=Ht,document.body.appendChild(e);else if(e.childElementCount>0){console.warn("App target already exists");return}Hr(vs,{target:e})}gs();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "maildo",
3
- "version": "1.3.7",
3
+ "version": "1.3.8",
4
4
  "description": "Mailto links extended.",
5
5
  "keywords": [],
6
6
  "author": "Sammy-T",