maildo 1.3.11 → 1.3.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.css +1 -1
- package/dist/index.js +1 -1
- package/package.json +4 -4
package/dist/index.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
#maildo-app{color-scheme:light dark;--maildo-spacing:
|
|
1
|
+
#maildo-app{--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light dark;--maildo-spacing:1rem;--maildo-modal-spacing-v:var(--maildo-spacing);--maildo-modal-spacing-h:calc(var(--maildo-spacing) * 2);--maildo-border-radius:.6rem;--maildo-modal-bg-color:var(--lightningcss-light,#fff)var(--lightningcss-dark,#181c25);--maildo-color:var(--lightningcss-light,#5b5d62)var(--lightningcss-dark,#c2c7d0);--maildo-link-color:#646cff;--maildo-link-hover-color:var(--lightningcss-light,#62659f)var(--lightningcss-dark,#8a8ff8)}@media (prefers-color-scheme:dark){#maildo-app{--lightningcss-light: ;--lightningcss-dark:initial}}#maildo-app *{font-family:Inter,system-ui,Avenir,Helvetica,Arial,sans-serif;font-size:initial;font-weight:revert;line-height:initial;border:none;margin:0;padding:0}#maildo-app h1,#maildo-app h2,#maildo-app h3,#maildo-app h4,#maildo-app h5,#maildo-app h6,#maildo-app p{color:var(--maildo-color)}#maildo-app h1,#maildo-app h2,#maildo-app h3,#maildo-app h4,#maildo-app h5,#maildo-app h6{margin:0;margin-bottom:var(--maildo-spacing)}#maildo-app p{margin:1rem 0}#maildo-app a{color:var(--maildo-link-color);-webkit-text-decoration:inherit;text-decoration:inherit;font-weight:400}#maildo-app a:hover{color:var(--maildo-link-hover-color)}#maildo-app dialog{-webkit-backdrop-filter:blur(.05rem);z-index:999;background-color:#08090abf;border:0;justify-content:center;align-items:center;width:100vw;height:100vh;padding:0;display:flex;position:fixed;inset:0}#maildo-app dialog article{width:auto;max-width:75vw;max-height:90vh;padding:var(--maildo-modal-spacing-v) var(--maildo-modal-spacing-h);border-radius:var(--maildo-border-radius);background-color:var(--maildo-modal-bg-color);overflow:auto;box-shadow:.15rem .2rem .7rem .05rem #0a0a0aa3}#maildo-app dialog article h4,#maildo-app dialog article p{text-align:center}#maildo-app dialog article a>strong{font-weight:500}#maildo-app dialog article footer{margin-left:calc(var(--maildo-modal-spacing-h) * -1);margin-right:calc(var(--maildo-modal-spacing-h) * -1);margin-bottom:calc(var(--maildo-modal-spacing-v) * -1);border-bottom-left-radius:var(--maildo-border-radius);border-bottom-right-radius:var(--maildo-border-radius);text-align:center;background-color:#50505014}#maildo-app dialog section{margin-bottom:calc(var(--maildo-spacing) * .5);padding:calc(var(--maildo-spacing) * .25) 0;flex-direction:column;align-items:center;display:flex}#maildo-app dialog section a{width:100%;padding:calc(var(--maildo-spacing) * .5);text-align:center;border-radius:1rem}#maildo-app dialog section a:hover{background-color:#535bf20b}#maildo-app dialog section a[href=\#gmail]{color:#d47171}#maildo-app dialog section a[href=\#gmail]:hover{color:var(--lightningcss-light,#c46363)var(--lightningcss-dark,#f18888);background-color:#d471710f}#maildo-app dialog section a[href=\#outlook]{color:#5fb3f8}#maildo-app dialog section a[href=\#outlook]:hover{color:var(--lightningcss-light,#539cd7)var(--lightningcss-dark,#7fc3fb);background-color:#5fb3f80f}#maildo-app dialog section a[href=\#yahoo]{color:#c069f3}#maildo-app dialog section a[href=\#yahoo]:hover{color:var(--lightningcss-light,#ab58db)var(--lightningcss-dark,#cf87f9);background-color:#c069f30f}#maildo-app dialog section a[href=\#whatsapp]{color:#36bc96}#maildo-app dialog section a[href=\#whatsapp]:hover{color:var(--lightningcss-light,#2aa280)var(--lightningcss-dark,#42d9ae);background-color:#36bc960f}#maildo-app dialog section a[href=\#skype]{color:#38b0d1}#maildo-app dialog section a[href=\#skype]:hover{color:var(--lightningcss-light,#2f94b0)var(--lightningcss-dark,#41bddf);background-color:#38b0d10f}#maildo-app dialog footer{padding:var(--maildo-spacing)}
|
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 s of document.querySelectorAll('link[rel="modulepreload"]'))r(s);new MutationObserver(s=>{for(const i of s)if(i.type==="childList")for(const f of i.addedNodes)f.tagName==="LINK"&&f.rel==="modulepreload"&&r(f)}).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 ct=!1;var tr=Array.isArray,nr=Array.prototype.indexOf,Me=Array.prototype.includes,rr=Array.from,tn=Object.defineProperty,Le=Object.getOwnPropertyDescriptor,nn=Object.getOwnPropertyDescriptors,sr=Object.prototype,ir=Array.prototype,kt=Object.getPrototypeOf,qt=Object.isExtensible;const _e=()=>{};function or(e){return e()}function dt(e){for(var t=0;t<e.length;t++)e[t]()}function rn(){var e,t,n=new Promise((r,s)=>{e=r,t=s});return{promise:n,resolve:e,reject:t}}const R=2,st=4,qe=8,sn=1<<24,te=16,J=32,ye=64,ht=128,Y=512,M=1024,O=2048,K=4096,W=8192,oe=16384,ge=32768,Ce=65536,Yt=1<<17,on=1<<18,Oe=1<<19,ln=1<<20,me=65536,pt=1<<21,xt=1<<22,le=1<<23,Ue=Symbol("$state"),he=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"};function an(e){throw new Error("https://svelte.dev/e/lifecycle_outside_component")}function lr(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function ar(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function fr(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function ur(e){throw new Error("https://svelte.dev/e/effect_orphan")}function cr(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function dr(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function hr(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function pr(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function _r(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}const vr=1,gr=2,C=Symbol(),fn="http://www.w3.org/1999/xhtml";function mr(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}function un(e){return e===this.v}function cn(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function dn(e){return!cn(e,this.v)}let Ye=!1,br=!1;function yr(){Ye=!0}let w=null;function De(e){w=e}function hn(e){return pn().get(e)}function Bt(e,t){return pn().set(e,t),t}function it(e,t=!1,n){w={p:w,i:!1,c:null,e:null,s:e,x:null,l:Ye&&!t?{s:null,u:null,$:[]}:null}}function ot(e){var t=w,n=t.e;if(n!==null){t.e=null;for(var r of n)Rn(r)}return t.i=!0,w=t.p,{}}function Be(){return!Ye||w!==null&&w.l===null}function pn(e){return w===null&&an(),w.c??=new Map(wr(w)||void 0)}function wr(e){let t=e.p;for(;t!==null;){const n=t.c;if(n!==null)return n;t=t.p}return null}let Se=[];function Er(){var e=Se;Se=[],dt(e)}function Ae(e){if(Se.length===0){var t=Se;queueMicrotask(()=>{t===Se&&Er()})}Se.push(e)}function _n(e){var t=y;if(t===null)return b.f|=le,e;if((t.f&ge)===0&&(t.f&st)===0)throw e;ie(e,t)}function ie(e,t){for(;t!==null;){if((t.f&ht)!==0){if((t.f&ge)===0)throw e;try{t.b.error(e);return}catch(n){e=n}}t=t.parent}throw e}const kr=-7169;function x(e,t){e.f=e.f&kr|t}function St(e){(e.f&Y)!==0||e.deps===null?x(e,M):x(e,K)}function vn(e){if(e!==null)for(const t of e)(t.f&R)===0||(t.f&me)===0||(t.f^=me,vn(t.deps))}function gn(e,t,n){(e.f&O)!==0?t.add(e):(e.f&K)!==0&&n.add(e),vn(e.deps),x(e,M)}const Ze=new Set;let k=null,z=null,q=[],Tt=null,_t=!1;class ae{current=new Map;previous=new Map;#t=new Set;#l=new Set;#e=0;#i=0;#n=null;#o=new Set;#r=new Set;#s=new Map;is_fork=!1;#a=!1;#u(){return this.is_fork||this.#i>0}skip_effect(t){this.#s.has(t)||this.#s.set(t,{d:[],m:[]})}unskip_effect(t){var n=this.#s.get(t);if(n){this.#s.delete(t);for(var r of n.d)x(r,O),H(r);for(r of n.m)x(r,K),H(r)}}process(t){q=[],this.apply();var n=[],r=[];for(const s of t)this.#f(s,n,r);if(this.#u()){this.#c(r),this.#c(n);for(const[s,i]of this.#s)yn(s,i)}else{for(const s of this.#t)s();this.#t.clear(),this.#e===0&&this.#h(),k=null,Vt(r),Vt(n),this.#n?.resolve()}z=null}#f(t,n,r){t.f^=M;for(var s=t.first;s!==null;){var i=s.f,f=(i&(J|ye))!==0,l=f&&(i&M)!==0,o=l||(i&W)!==0||this.#s.has(s);if(!o&&s.fn!==null){f?s.f^=M:(i&st)!==0?n.push(s):ze(s)&&((i&te)!==0&&this.#r.add(s),Re(s));var a=s.first;if(a!==null){s=a;continue}}for(;s!==null;){var d=s.next;if(d!==null){s=d;break}s=s.parent}}}#c(t){for(var n=0;n<t.length;n+=1)gn(t[n],this.#o,this.#r)}capture(t,n){n!==C&&!this.previous.has(t)&&this.previous.set(t,n),(t.f&le)===0&&(this.current.set(t,t.v),z?.set(t,t.v))}activate(){k=this,this.apply()}deactivate(){k===this&&(k=null,z=null)}flush(){if(this.activate(),q.length>0){if(xr(),k!==null&&k!==this)return}else this.#e===0&&this.process([]);this.deactivate()}discard(){for(const t of this.#l)t(this);this.#l.clear()}#h(){if(Ze.size>1){this.previous.clear();var t=z,n=!0;for(const s of Ze){if(s===this){n=!1;continue}const i=[];for(const[l,o]of this.current){if(s.current.has(l))if(n&&o!==s.current.get(l))s.current.set(l,o);else continue;i.push(l)}if(i.length===0)continue;const f=[...s.current.keys()].filter(l=>!this.current.has(l));if(f.length>0){var r=q;q=[];const l=new Set,o=new Map;for(const a of i)mn(a,f,l,o);if(q.length>0){k=s,s.apply();for(const a of q)s.#f(a,[],[]);s.deactivate()}q=r}}k=null,z=t}Ze.delete(this)}increment(t){this.#e+=1,t&&(this.#i+=1)}decrement(t){this.#e-=1,t&&(this.#i-=1),!this.#a&&(this.#a=!0,Ae(()=>{this.#a=!1,this.#u()?q.length>0&&this.flush():this.revive()}))}revive(){for(const t of this.#o)this.#r.delete(t),x(t,O),H(t);for(const t of this.#r)x(t,K),H(t);this.flush()}oncommit(t){this.#t.add(t)}ondiscard(t){this.#l.add(t)}settled(){return(this.#n??=rn()).promise}static ensure(){if(k===null){const t=k=new ae;Ze.add(k),Ae(()=>{k===t&&t.flush()})}return k}apply(){}}function xr(){_t=!0;var e=null;try{for(var t=0;q.length>0;){var n=ae.ensure();if(t++>1e3){var r,s;Sr()}n.process(q),fe.clear()}}finally{q=[],_t=!1,Tt=null}}function Sr(){try{cr()}catch(e){ie(e,Tt)}}let Q=null;function Vt(e){var t=e.length;if(t!==0){for(var n=0;n<t;){var r=e[n++];if((r.f&(oe|W))===0&&ze(r)&&(Q=new Set,Re(r),r.deps===null&&r.first===null&&r.nodes===null&&r.teardown===null&&r.ac===null&&Nn(r),Q?.size>0)){fe.clear();for(const s of Q){if((s.f&(oe|W))!==0)continue;const i=[s];let f=s.parent;for(;f!==null;)Q.has(f)&&(Q.delete(f),i.push(f)),f=f.parent;for(let l=i.length-1;l>=0;l--){const o=i[l];(o.f&(oe|W))===0&&Re(o)}}Q.clear()}}Q=null}}function mn(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&R)!==0?mn(s,t,n,r):(i&(xt|te))!==0&&(i&O)===0&&bn(s,t,r)&&(x(s,O),H(s))}}function bn(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(Me.call(t,s))return!0;if((s.f&R)!==0&&bn(s,t,n))return n.set(s,!0),!0}return n.set(e,!1),!1}function H(e){var t=Tt=e,n=t.b;if(n?.is_pending&&(e.f&(st|qe|sn))!==0&&(e.f&ge)===0){n.defer_effect(e);return}for(;t.parent!==null;){t=t.parent;var r=t.f;if(_t&&t===y&&(r&te)!==0&&(r&on)===0&&(r&ge)!==0)return;if((r&(ye|J))!==0){if((r&M)===0)return;t.f^=M}}q.push(t)}function yn(e,t){if(!((e.f&J)!==0&&(e.f&M)!==0)){(e.f&O)!==0?t.d.push(e):(e.f&K)!==0&&t.m.push(e),x(e,M);for(var n=e.first;n!==null;)yn(n,t),n=n.next}}function Tr(e){let t=0,n=Ve(0),r;return()=>{Ct()&&(p(n),Gr(()=>(t===0&&(r=at(()=>e(()=>Fe(n)))),t+=1,()=>{Ae(()=>{t-=1,t===0&&(r?.(),r=void 0,Fe(n))})})))}}var Ar=Ce|Oe;function Mr(e,t,n,r){new Cr(e,t,n,r)}class Cr{parent;is_pending=!1;transform_error;#t;#l=null;#e;#i;#n;#o=null;#r=null;#s=null;#a=null;#u=0;#f=0;#c=!1;#h=new Set;#p=new Set;#d=null;#b=Tr(()=>(this.#d=Ve(this.#u),()=>{this.#d=null}));constructor(t,n,r,s){this.#t=t,this.#e=n,this.#i=i=>{var f=y;f.b=this,f.f|=ht,r(i)},this.parent=y.b,this.transform_error=s??this.parent?.transform_error??(i=>i),this.#n=On(()=>{this.#g()},Ar)}#y(){try{this.#o=X(()=>this.#i(this.#t))}catch(t){this.error(t)}}#w(t){const n=this.#e.failed;n&&(this.#s=X(()=>{n(this.#t,()=>t,()=>()=>{})}))}#E(){const t=this.#e.pending;t&&(this.is_pending=!0,this.#r=X(()=>t(this.#t)),Ae(()=>{var n=this.#a=document.createDocumentFragment(),r=et();n.append(r),this.#o=this.#v(()=>(ae.ensure(),X(()=>this.#i(r)))),this.#f===0&&(this.#t.before(n),this.#a=null,je(this.#r,()=>{this.#r=null}),this.#_())}))}#g(){try{if(this.is_pending=this.has_pending_snippet(),this.#f=0,this.#u=0,this.#o=X(()=>{this.#i(this.#t)}),this.#f>0){var t=this.#a=document.createDocumentFragment();Un(this.#o,t);const n=this.#e.pending;this.#r=X(()=>n(this.#t))}else this.#_()}catch(n){this.error(n)}}#_(){this.is_pending=!1;for(const t of this.#h)x(t,O),H(t);for(const t of this.#p)x(t,K),H(t);this.#h.clear(),this.#p.clear()}defer_effect(t){gn(t,this.#h,this.#p)}is_rendered(){return!this.is_pending&&(!this.parent||this.parent.is_rendered())}has_pending_snippet(){return!!this.#e.pending}#v(t){var n=y,r=b,s=w;Z(this.#n),V(this.#n),De(this.#n.ctx);try{return t()}catch(i){return _n(i),null}finally{Z(n),V(r),De(s)}}#m(t){if(!this.has_pending_snippet()){this.parent&&this.parent.#m(t);return}this.#f+=t,this.#f===0&&(this.#_(),this.#r&&je(this.#r,()=>{this.#r=null}),this.#a&&(this.#t.before(this.#a),this.#a=null))}update_pending_count(t){this.#m(t),this.#u+=t,!(!this.#d||this.#c)&&(this.#c=!0,Ae(()=>{this.#c=!1,this.#d&&Xe(this.#d,this.#u)}))}get_effect_pending(){return this.#b(),p(this.#d)}error(t){var n=this.#e.onerror;let r=this.#e.failed;if(!n&&!r)throw t;this.#o&&(j(this.#o),this.#o=null),this.#r&&(j(this.#r),this.#r=null),this.#s&&(j(this.#s),this.#s=null);var s=!1,i=!1;const f=()=>{if(s){mr();return}s=!0,i&&_r(),this.#s!==null&&je(this.#s,()=>{this.#s=null}),this.#v(()=>{ae.ensure(),this.#g()})},l=o=>{try{i=!0,n?.(o,f),i=!1}catch(a){ie(a,this.#n&&this.#n.parent)}r&&(this.#s=this.#v(()=>{ae.ensure();try{return X(()=>{var a=y;a.b=this,a.f|=ht,r(this.#t,()=>o,()=>f)})}catch(a){return ie(a,this.#n.parent),null}}))};Ae(()=>{var o;try{o=this.transform_error(t)}catch(a){ie(a,this.#n&&this.#n.parent);return}o!==null&&typeof o=="object"&&typeof o.then=="function"?o.then(l,a=>ie(a,this.#n&&this.#n.parent)):l(o)})}}function Dr(e,t,n,r){const s=Be()?At:Nr;var i=e.filter(u=>!u.settled);if(n.length===0&&i.length===0){r(t.map(s));return}var f=y,l=Rr(),o=i.length===1?i[0].promise:i.length>1?Promise.all(i.map(u=>u.promise)):null;function a(u){l();try{r(u)}catch(c){(f.f&oe)===0&&ie(c,f)}vt()}if(n.length===0){o.then(()=>a(t.map(s)));return}function d(){l(),Promise.all(n.map(u=>$r(u))).then(u=>a([...t.map(s),...u])).catch(u=>ie(u,f))}o?o.then(d):d()}function Rr(){var e=y,t=b,n=w,r=k;return function(i=!0){Z(e),V(t),De(n),i&&r?.activate()}}function vt(e=!0){Z(null),V(null),De(null),e&&k?.deactivate()}function Or(){var e=y.b,t=k,n=e.is_rendered();return e.update_pending_count(1),t.increment(n),()=>{e.update_pending_count(-1),t.decrement(n)}}function At(e){var t=R|O,n=b!==null&&(b.f&R)!==0?b:null;return y!==null&&(y.f|=Oe),{ctx:w,deps:null,effects:null,equals:un,f:t,fn:e,reactions:null,rv:0,v:C,wv:0,parent:n??y,ac:null}}function $r(e,t,n){y===null&&lr();var s=void 0,i=Ve(C),f=!b,l=new Map;return Hr(()=>{var o=rn();s=o.promise;try{Promise.resolve(e()).then(o.resolve,o.reject).finally(vt)}catch(c){o.reject(c),vt()}var a=k;if(f){var d=Or();l.get(a)?.reject(he),l.delete(a),l.set(a,o)}const u=(c,v=void 0)=>{if(a.activate(),v)v!==he&&(i.f|=le,Xe(i,v));else{(i.f&le)!==0&&(i.f^=le),Xe(i,c);for(const[_,g]of l){if(l.delete(_),_===a)break;g.reject(he)}}d&&d()};o.promise.then(u,c=>u(null,c||"unknown"))}),Dn(()=>{for(const o of l.values())o.reject(he)}),new Promise(o=>{function a(d){function u(){d===s?o(i):a(s)}d.then(u,u)}a(s)})}function Nr(e){const t=At(e);return t.equals=dn,t}function Pr(e){var t=e.effects;if(t!==null){e.effects=null;for(var n=0;n<t.length;n+=1)j(t[n])}}function Lr(e){for(var t=e.parent;t!==null;){if((t.f&R)===0)return(t.f&oe)===0?t:null;t=t.parent}return null}function Mt(e){var t,n=y;Z(Lr(e));try{e.f&=~me,Pr(e),t=qn(e)}finally{Z(n)}return t}function wn(e){var t=Mt(e);if(!e.equals(t)&&(e.wv=jn(),(!k?.is_fork||e.deps===null)&&(e.v=t,e.deps===null))){x(e,M);return}be||(z!==null?(Ct()||k?.is_fork)&&z.set(e,t):St(e))}function Ur(e){if(e.effects!==null)for(const t of e.effects)(t.teardown||t.ac)&&(t.teardown?.(),t.ac?.abort(he),t.teardown=_e,t.ac=null,Ie(t,0),Dt(t))}function En(e){if(e.effects!==null)for(const t of e.effects)t.teardown&&Re(t)}let gt=new Set;const fe=new Map;let kn=!1;function Ve(e,t){var n={f:0,v:e,reactions:null,equals:un,rv:0,wv:0};return n}function D(e,t){const n=Ve(e);return Jr(n),n}function Fr(e,t=!1,n=!0){const r=Ve(e);return t||(r.equals=dn),Ye&&n&&w!==null&&w.l!==null&&(w.l.s??=[]).push(r),r}function E(e,t,n=!1){b!==null&&(!G||(b.f&Yt)!==0)&&Be()&&(b.f&(R|te|xt|Yt))!==0&&(B===null||!Me.call(B,e))&&pr();let r=n?$e(t):t;return Xe(e,r)}function Xe(e,t){if(!e.equals(t)){var n=e.v;be?fe.set(e,t):fe.set(e,n),e.v=t;var r=ae.ensure();if(r.capture(e,n),(e.f&R)!==0){const s=e;(e.f&O)!==0&&Mt(s),St(s)}e.wv=jn(),xn(e,O),Be()&&y!==null&&(y.f&M)!==0&&(y.f&(J|ye))===0&&(I===null?Qr([e]):I.push(e)),!r.is_fork&>.size>0&&!kn&&jr()}return t}function jr(){kn=!1;for(const e of gt)(e.f&M)!==0&&x(e,K),ze(e)&&Re(e);gt.clear()}function Fe(e){E(e,e.v+1)}function xn(e,t){var n=e.reactions;if(n!==null)for(var r=Be(),s=n.length,i=0;i<s;i++){var f=n[i],l=f.f;if(!(!r&&f===y)){var o=(l&O)===0;if(o&&x(f,t),(l&R)!==0){var a=f;z?.delete(a),(l&me)===0&&(l&Y&&(f.f|=me),xn(a,K))}else o&&((l&te)!==0&&Q!==null&&Q.add(f),H(f))}}}function $e(e){if(typeof e!="object"||e===null||Ue in e)return e;const t=kt(e);if(t!==sr&&t!==ir)return e;var n=new Map,r=tr(e),s=D(0),i=ve,f=l=>{if(ve===i)return l();var o=b,a=ve;V(null),Gt(i);var d=l();return V(o),Gt(a),d};return r&&n.set("length",D(e.length)),new Proxy(e,{defineProperty(l,o,a){(!("value"in a)||a.configurable===!1||a.enumerable===!1||a.writable===!1)&&dr();var d=n.get(o);return d===void 0?f(()=>{var u=D(a.value);return n.set(o,u),u}):E(d,a.value,!0),!0},deleteProperty(l,o){var a=n.get(o);if(a===void 0){if(o in l){const d=f(()=>D(C));n.set(o,d),Fe(s)}}else E(a,C),Fe(s);return!0},get(l,o,a){if(o===Ue)return e;var d=n.get(o),u=o in l;if(d===void 0&&(!u||Le(l,o)?.writable)&&(d=f(()=>{var v=$e(u?l[o]:C),_=D(v);return _}),n.set(o,d)),d!==void 0){var c=p(d);return c===C?void 0:c}return Reflect.get(l,o,a)},getOwnPropertyDescriptor(l,o){var a=Reflect.getOwnPropertyDescriptor(l,o);if(a&&"value"in a){var d=n.get(o);d&&(a.value=p(d))}else if(a===void 0){var u=n.get(o),c=u?.v;if(u!==void 0&&c!==C)return{enumerable:!0,configurable:!0,value:c,writable:!0}}return a},has(l,o){if(o===Ue)return!0;var a=n.get(o),d=a!==void 0&&a.v!==C||Reflect.has(l,o);if(a!==void 0||y!==null&&(!d||Le(l,o)?.writable)){a===void 0&&(a=f(()=>{var c=d?$e(l[o]):C,v=D(c);return v}),n.set(o,a));var u=p(a);if(u===C)return!1}return d},set(l,o,a,d){var u=n.get(o),c=o in l;if(r&&o==="length")for(var v=a;v<u.v;v+=1){var _=n.get(v+"");_!==void 0?E(_,C):v in l&&(_=f(()=>D(C)),n.set(v+"",_))}if(u===void 0)(!c||Le(l,o)?.writable)&&(u=f(()=>D(void 0)),E(u,$e(a)),n.set(o,u));else{c=u.v!==C;var g=f(()=>$e(a));E(u,g)}var T=Reflect.getOwnPropertyDescriptor(l,o);if(T?.set&&T.set.call(d,a),!c){if(r&&typeof o=="string"){var S=n.get("length"),$=Number(o);Number.isInteger($)&&$>=S.v&&E(S,$+1)}Fe(s)}return!0},ownKeys(l){p(s);var o=Reflect.ownKeys(l).filter(u=>{var c=n.get(u);return c===void 0||c.v!==C});for(var[a,d]of n)d.v!==C&&!(a in l)&&o.push(a);return o},setPrototypeOf(){hr()}})}var zt,Sn,Tn,An;function Ir(){if(zt===void 0){zt=window,Sn=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,n=Text.prototype;Tn=Le(t,"firstChild").get,An=Le(t,"nextSibling").get,qt(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),qt(n)&&(n.__t=void 0)}}function et(e=""){return document.createTextNode(e)}function tt(e){return Tn.call(e)}function lt(e){return An.call(e)}function N(e,t){return tt(e)}function Ne(e,t=!1){{var n=tt(e);return n instanceof Comment&&n.data===""?lt(n):n}}function A(e,t=1,n=!1){let r=e;for(;t--;)r=lt(r);return r}function qr(){return!1}function Yr(e,t,n){return document.createElementNS(fn,e,void 0)}function Mn(e){var t=b,n=y;V(null),Z(null);try{return e()}finally{V(t),Z(n)}}function Cn(e){y===null&&(b===null&&ur(),fr()),be&&ar()}function Br(e,t){var n=t.last;n===null?t.last=t.first=e:(n.next=e,e.prev=n,t.last=e)}function ne(e,t,n){var r=y;r!==null&&(r.f&W)!==0&&(e|=W);var s={ctx:w,deps:null,nodes:null,f:e|O|Y,first:null,fn:t,last:null,next:null,parent:r,b:r&&r.b,prev:null,teardown:null,wv:0,ac:null};if(n)try{Re(s)}catch(l){throw j(s),l}else t!==null&&H(s);var i=s;if(n&&i.deps===null&&i.teardown===null&&i.nodes===null&&i.first===i.last&&(i.f&Oe)===0&&(i=i.first,(e&te)!==0&&(e&Ce)!==0&&i!==null&&(i.f|=Ce)),i!==null&&(i.parent=r,r!==null&&Br(i,r),b!==null&&(b.f&R)!==0&&(e&ye)===0)){var f=b;(f.effects??=[]).push(i)}return s}function Ct(){return b!==null&&!G}function Dn(e){const t=ne(qe,null,!1);return x(t,M),t.teardown=e,t}function mt(e){Cn();var t=y.f,n=!b&&(t&J)!==0&&(t&ge)===0;if(n){var r=w;(r.e??=[]).push(e)}else return Rn(e)}function Rn(e){return ne(st|ln,e,!1)}function Vr(e){return Cn(),ne(qe|ln,e,!0)}function zr(e){ae.ensure();const t=ne(ye|Oe,e,!0);return(n={})=>new Promise(r=>{n.outro?je(t,()=>{j(t),r(void 0)}):(j(t),r(void 0))})}function Hr(e){return ne(xt|Oe,e,!0)}function Gr(e,t=0){return ne(qe|t,e,!0)}function xe(e,t=[],n=[],r=[]){Dr(r,t,n,s=>{ne(qe,()=>e(...s.map(p)),!0)})}function On(e,t=0){var n=ne(te|t,e,!0);return n}function X(e){return ne(J|Oe,e,!0)}function $n(e){var t=e.teardown;if(t!==null){const n=be,r=b;Ht(!0),V(null);try{t.call(null)}finally{Ht(n),V(r)}}}function Dt(e,t=!1){var n=e.first;for(e.first=e.last=null;n!==null;){const s=n.ac;s!==null&&Mn(()=>{s.abort(he)});var r=n.next;(n.f&ye)!==0?n.parent=null:j(n,t),n=r}}function Kr(e){for(var t=e.first;t!==null;){var n=t.next;(t.f&J)===0&&j(t),t=n}}function j(e,t=!0){var n=!1;(t||(e.f&on)!==0)&&e.nodes!==null&&e.nodes.end!==null&&(Wr(e.nodes.start,e.nodes.end),n=!0),Dt(e,t&&!n),Ie(e,0),x(e,oe);var r=e.nodes&&e.nodes.t;if(r!==null)for(const i of r)i.stop();$n(e);var s=e.parent;s!==null&&s.first!==null&&Nn(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes=e.ac=null}function Wr(e,t){for(;e!==null;){var n=e===t?null:lt(e);e.remove(),e=n}}function Nn(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 je(e,t,n=!0){var r=[];Pn(e,r,!0);var s=()=>{n&&j(e),t&&t()},i=r.length;if(i>0){var f=()=>--i||s();for(var l of r)l.out(f)}else s()}function Pn(e,t,n){if((e.f&W)===0){e.f^=W;var r=e.nodes&&e.nodes.t;if(r!==null)for(const l of r)(l.is_global||n)&&t.push(l);for(var s=e.first;s!==null;){var i=s.next,f=(s.f&Ce)!==0||(s.f&J)!==0&&(e.f&te)!==0;Pn(s,t,f?n:!1),s=i}}}function Zr(e){Ln(e,!0)}function Ln(e,t){if((e.f&W)!==0){e.f^=W,(e.f&M)===0&&(x(e,O),H(e));for(var n=e.first;n!==null;){var r=n.next,s=(n.f&Ce)!==0||(n.f&J)!==0;Ln(n,s?t:!1),n=r}var i=e.nodes&&e.nodes.t;if(i!==null)for(const f of i)(f.is_global||t)&&f.in()}}function Un(e,t){if(e.nodes)for(var n=e.nodes.start,r=e.nodes.end;n!==null;){var s=n===r?null:lt(n);t.append(n),n=s}}let Qe=!1,be=!1;function Ht(e){be=e}let b=null,G=!1;function V(e){b=e}let y=null;function Z(e){y=e}let B=null;function Jr(e){b!==null&&(B===null?B=[e]:B.push(e))}let P=null,F=0,I=null;function Qr(e){I=e}let Fn=1,pe=0,ve=pe;function Gt(e){ve=e}function jn(){return++Fn}function ze(e){var t=e.f;if((t&O)!==0)return!0;if(t&R&&(e.f&=~me),(t&K)!==0){for(var n=e.deps,r=n.length,s=0;s<r;s++){var i=n[s];if(ze(i)&&wn(i),i.wv>e.wv)return!0}(t&Y)!==0&&z===null&&x(e,M)}return!1}function In(e,t,n=!0){var r=e.reactions;if(r!==null&&!(B!==null&&Me.call(B,e)))for(var s=0;s<r.length;s++){var i=r[s];(i.f&R)!==0?In(i,t,!1):t===i&&(n?x(i,O):(i.f&M)!==0&&x(i,K),H(i))}}function qn(e){var t=P,n=F,r=I,s=b,i=B,f=w,l=G,o=ve,a=e.f;P=null,F=0,I=null,b=(a&(J|ye))===0?e:null,B=null,De(e.ctx),G=!1,ve=++pe,e.ac!==null&&(Mn(()=>{e.ac.abort(he)}),e.ac=null);try{e.f|=pt;var d=e.fn,u=d();e.f|=ge;var c=e.deps,v=k?.is_fork;if(P!==null){var _;if(v||Ie(e,F),c!==null&&F>0)for(c.length=F+P.length,_=0;_<P.length;_++)c[F+_]=P[_];else e.deps=c=P;if(Ct()&&(e.f&Y)!==0)for(_=F;_<c.length;_++)(c[_].reactions??=[]).push(e)}else!v&&c!==null&&F<c.length&&(Ie(e,F),c.length=F);if(Be()&&I!==null&&!G&&c!==null&&(e.f&(R|K|O))===0)for(_=0;_<I.length;_++)In(I[_],e);if(s!==null&&s!==e){if(pe++,s.deps!==null)for(let g=0;g<n;g+=1)s.deps[g].rv=pe;if(t!==null)for(const g of t)g.rv=pe;I!==null&&(r===null?r=I:r.push(...I))}return(e.f&le)!==0&&(e.f^=le),u}catch(g){return _n(g)}finally{e.f^=pt,P=t,F=n,I=r,b=s,B=i,De(f),G=l,ve=o}}function Xr(e,t){let n=t.reactions;if(n!==null){var r=nr.call(n,e);if(r!==-1){var s=n.length-1;s===0?n=t.reactions=null:(n[r]=n[s],n.pop())}}if(n===null&&(t.f&R)!==0&&(P===null||!Me.call(P,t))){var i=t;(i.f&Y)!==0&&(i.f^=Y,i.f&=~me),St(i),Ur(i),Ie(i,0)}}function Ie(e,t){var n=e.deps;if(n!==null)for(var r=t;r<n.length;r++)Xr(e,n[r])}function Re(e){var t=e.f;if((t&oe)===0){x(e,M);var n=y,r=Qe;y=e,Qe=!0;try{(t&(te|sn))!==0?Kr(e):Dt(e),$n(e);var s=qn(e);e.teardown=typeof s=="function"?s:null,e.wv=Fn;var i;ct&&br&&(e.f&O)!==0&&e.deps}finally{Qe=r,y=n}}}function p(e){var t=e.f,n=(t&R)!==0;if(b!==null&&!G){var r=y!==null&&(y.f&oe)!==0;if(!r&&(B===null||!Me.call(B,e))){var s=b.deps;if((b.f&pt)!==0)e.rv<pe&&(e.rv=pe,P===null&&s!==null&&s[F]===e?F++:P===null?P=[e]:P.push(e));else{(b.deps??=[]).push(e);var i=e.reactions;i===null?e.reactions=[b]:Me.call(i,b)||i.push(b)}}}if(be&&fe.has(e))return fe.get(e);if(n){var f=e;if(be){var l=f.v;return((f.f&M)===0&&f.reactions!==null||Bn(f))&&(l=Mt(f)),fe.set(f,l),l}var o=(f.f&Y)===0&&!G&&b!==null&&(Qe||(b.f&Y)!==0),a=(f.f&ge)===0;ze(f)&&(o&&(f.f|=Y),wn(f)),o&&!a&&(En(f),Yn(f))}if(z?.has(e))return z.get(e);if((e.f&le)!==0)throw e.v;return e.v}function Yn(e){if(e.f|=Y,e.deps!==null)for(const t of e.deps)(t.reactions??=[]).push(e),(t.f&R)!==0&&(t.f&Y)===0&&(En(t),Yn(t))}function Bn(e){if(e.v===C)return!0;if(e.deps===null)return!1;for(const t of e.deps)if(fe.has(t)||(t.f&R)!==0&&Bn(t))return!0;return!1}function at(e){var t=G;try{return G=!0,e()}finally{G=t}}function es(e){if(!(typeof e!="object"||!e||e instanceof EventTarget)){if(Ue in e)bt(e);else if(!Array.isArray(e))for(let t in e){const n=e[t];typeof n=="object"&&n&&Ue in n&&bt(n)}}}function bt(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{bt(e[r],t)}catch{}const n=kt(e);if(n!==Object.prototype&&n!==Array.prototype&&n!==Map.prototype&&n!==Set.prototype&&n!==Date.prototype){const r=nn(n);for(let s in r){const i=r[s].get;if(i)try{i.call(e)}catch{}}}}}const ts=["touchstart","touchmove"];function ns(e){return ts.includes(e)}const Pe=Symbol("events"),Vn=new Set,yt=new Set;function ee(e,t,n){(t[Pe]??={})[e]=n}function zn(e){for(var t=0;t<e.length;t++)Vn.add(e[t]);for(var n of yt)n(e)}let Kt=null;function Wt(e){var t=this,n=t.ownerDocument,r=e.type,s=e.composedPath?.()||[],i=s[0]||e.target;Kt=e;var f=0,l=Kt===e&&e[Pe];if(l){var o=s.indexOf(l);if(o!==-1&&(t===document||t===window)){e[Pe]=t;return}var a=s.indexOf(t);if(a===-1)return;o<=a&&(f=o)}if(i=s[f]||e.target,i!==t){tn(e,"currentTarget",{configurable:!0,get(){return i||n}});var d=b,u=y;V(null),Z(null);try{for(var c,v=[];i!==null;){var _=i.assignedSlot||i.parentNode||i.host||null;try{var g=i[Pe]?.[r];g!=null&&(!i.disabled||e.target===i)&&g.call(i,e)}catch(T){c?v.push(T):c=T}if(e.cancelBubble||_===t||_===null)break;i=_}if(c){for(let T of v)queueMicrotask(()=>{throw T});throw c}}finally{e[Pe]=t,delete e.currentTarget,V(d),Z(u)}}}const rs=globalThis?.window?.trustedTypes&&globalThis.window.trustedTypes.createPolicy("svelte-trusted-html",{createHTML:e=>e});function ss(e){return rs?.createHTML(e)??e}function is(e){var t=Yr("template");return t.innerHTML=ss(e.replaceAll("<!>","<!---->")),t.content}function Zt(e,t){var n=y;n.nodes===null&&(n.nodes={start:e,end:t,a:null,t:null})}function we(e,t){var n=(t&vr)!==0,r=(t&gr)!==0,s,i=!e.startsWith("<!>");return()=>{s===void 0&&(s=is(i?e:"<!>"+e),n||(s=tt(s)));var f=r||Sn?document.importNode(s,!0):s.cloneNode(!0);if(n){var l=tt(f),o=f.lastChild;Zt(l,o)}else Zt(f,f);return f}}function de(e,t){e!==null&&e.before(t)}function se(e,t){var n=t==null?"":typeof t=="object"?t+"":t;n!==(e.__t??=e.nodeValue)&&(e.__t=n,e.nodeValue=n+"")}function os(e,t){return ls(e,t)}const Je=new Map;function ls(e,{target:t,anchor:n,props:r={},events:s,context:i,intro:f=!0,transformError:l}){Ir();var o=void 0,a=zr(()=>{var d=n??t.appendChild(et());Mr(d,{pending:()=>{}},v=>{it({});var _=w;i&&(_.c=i),s&&(r.$$events=s),o=e(v,r)||{},ot()},l);var u=new Set,c=v=>{for(var _=0;_<v.length;_++){var g=v[_];if(!u.has(g)){u.add(g);var T=ns(g);for(const ue of[t,document]){var S=Je.get(ue);S===void 0&&(S=new Map,Je.set(ue,S));var $=S.get(g);$===void 0?(ue.addEventListener(g,Wt,{passive:T}),S.set(g,1)):S.set(g,$+1)}}}};return c(rr(Vn)),yt.add(c),()=>{for(var v of u)for(const T of[t,document]){var _=Je.get(T),g=_.get(v);--g==0?(T.removeEventListener(v,Wt),_.delete(v),_.size===0&&Je.delete(T)):_.set(v,g)}yt.delete(c),d!==n&&d.parentNode?.removeChild(d)}});return as.set(o,a),o}let as=new WeakMap;class fs{anchor;#t=new Map;#l=new Map;#e=new Map;#i=new Set;#n=!0;constructor(t,n=!0){this.anchor=t,this.#n=n}#o=()=>{var t=k;if(this.#t.has(t)){var n=this.#t.get(t),r=this.#l.get(n);if(r)Zr(r),this.#i.delete(n);else{var s=this.#e.get(n);s&&(this.#l.set(n,s.effect),this.#e.delete(n),s.fragment.lastChild.remove(),this.anchor.before(s.fragment),r=s.effect)}for(const[i,f]of this.#t){if(this.#t.delete(i),i===t)break;const l=this.#e.get(f);l&&(j(l.effect),this.#e.delete(f))}for(const[i,f]of this.#l){if(i===n||this.#i.has(i))continue;const l=()=>{if(Array.from(this.#t.values()).includes(i)){var a=document.createDocumentFragment();Un(f,a),a.append(et()),this.#e.set(i,{effect:f,fragment:a})}else j(f);this.#i.delete(i),this.#l.delete(i)};this.#n||!r?(this.#i.add(i),je(f,l,!1)):l()}}};#r=t=>{this.#t.delete(t);const n=Array.from(this.#t.values());for(const[r,s]of this.#e)n.includes(r)||(j(s.effect),this.#e.delete(r))};ensure(t,n){var r=k,s=qr();if(n&&!this.#l.has(t)&&!this.#e.has(t))if(s){var i=document.createDocumentFragment(),f=et();i.append(f),this.#e.set(t,{effect:X(()=>n(f)),fragment:i})}else this.#l.set(t,X(()=>n(this.anchor)));if(this.#t.set(r,t),s){for(const[l,o]of this.#l)l===t?r.unskip_effect(o):r.skip_effect(o);for(const[l,o]of this.#e)l===t?r.unskip_effect(o.effect):r.skip_effect(o.effect);r.oncommit(this.#o),r.ondiscard(this.#r)}else this.#o()}}function Te(e,t,n=!1){var r=new fs(e),s=n?Ce:0;function i(f,l){r.ensure(f,l)}On(()=>{var f=!1;t((l,o=0)=>{f=!0,i(o,l)}),f||i(!1,null)},s)}const us=Symbol("is custom element"),cs=Symbol("is html");function wt(e,t,n,r){var s=ds(e);s[t]!==(s[t]=n)&&(n==null?e.removeAttribute(t):typeof n!="string"&&hs(e).includes(t)?e[t]=n:e.setAttribute(t,n))}function ds(e){return e.__attributes??={[us]:e.nodeName.includes("-"),[cs]:e.namespaceURI===fn}}var Jt=new Map;function hs(e){var t=e.getAttribute("is")||e.nodeName,n=Jt.get(t);if(n)return n;Jt.set(t,n=[]);for(var r,s=e,i=Element.prototype;i!==s;){r=nn(s);for(var f in r)r[f].set&&n.push(f);s=kt(s)}return n}function ps(e=!1){const t=w,n=t.l.u;if(!n)return;let r=()=>es(t.s);if(e){let s=0,i={};const f=At(()=>{let l=!1;const o=t.s;for(const a in o)o[a]!==i[a]&&(i[a]=o[a],l=!0);return l&&s++,s});r=()=>p(f)}n.b.length&&Vr(()=>{Qt(t,r),dt(n.b)}),mt(()=>{const s=at(()=>n.m.map(or));return()=>{for(const i of s)typeof i=="function"&&i()}}),n.a.length&&mt(()=>{Qt(t,r),dt(n.a)})}function Qt(e,t){if(e.l.s)for(const n of e.l.s)p(n);t()}function Hn(e,t,n){if(e==null)return t(void 0),_e;const r=at(()=>e.subscribe(t,n));return r.unsubscribe?()=>r.unsubscribe():r}const ke=[];function Xt(e,t=_e){let n=null;const r=new Set;function s(l){if(cn(e,l)&&(e=l,n)){const o=!ke.length;for(const a of r)a[1](),ke.push(a,e);if(o){for(let a=0;a<ke.length;a+=2)ke[a][0](ke[a+1]);ke.length=0}}}function i(l){s(l(e))}function f(l,o=_e){const a=[l,o];return r.add(a),r.size===1&&(n=t(s,i)||_e),l(e),()=>{r.delete(a),r.size===0&&n&&(n(),n=null)}}return{set:s,update:i,subscribe:f}}function _s(e){let t;return Hn(e,n=>t=n)(),t}let Et=Symbol();function nt(e,t,n){const r=n[t]??={store:null,source:Fr(void 0),unsubscribe:_e};if(r.store!==e&&!(Et in n))if(r.unsubscribe(),r.store=e??null,e==null)r.source.v=void 0,r.unsubscribe=_e;else{var s=!0;r.unsubscribe=Hn(e,i=>{s?r.source.v=i:E(r.source,i)}),s=!1}return e&&Et in n?_s(e):p(r.source)}function rt(e,t){return e.set(t),t}function Rt(){const e={};function t(){Dn(()=>{for(var n in e)e[n].unsubscribe();tn(e,Et,{enumerable:!1,value:!0})})}return[e,t]}function Ot(e){w===null&&an(),Ye&&w.l!==null?vs(w).m.push(e):mt(()=>{const t=at(e);if(typeof t=="function")return t})}function vs(e){var t=e.l;return t.u??={a:[],b:[],m:[]}}const gs="5";typeof window<"u"&&((window.__svelte??={}).v??=new Set).add(gs);yr();var ms=we("<strong>cc</strong> <br/>",1),bs=we("<strong>bcc</strong> <br/>",1),ys=we("<strong>subject</strong> <br/>",1),ws=we("<strong>body</strong> <br/>",1),Es=we('<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 ks(e,t){it(t,!0);const n=()=>nt(l,"$selectedMailto",r),[r,s]=Rt(),i="type-url",f="type-data",l=hn("selectedMailto");let o="",a=D(""),d=D(""),u=D(""),c=D(""),v=D(""),_=D(""),g=D(!1);function T(){const h=new URL(n().href),{searchParams:m}=h;E(a,h.pathname,!0),E(d,m.get("cc"),!0),E(u,m.get("bcc"),!0),E(c,m.get("subject"),!0),E(v,m.get("body"),!0)}function S(){const{dataset:h}=n();E(a,h.address&&h.domain?`${h.address}@${h.domain}`:"",!0),E(d,h.ccAddress&&h.ccDomain?`${h.ccAddress}@${h.ccDomain}`:"",!0),E(u,h.bccAddress&&h.bccDomain?`${h.bccAddress}@${h.bccDomain}`:"",!0),E(c,h.subject,!0),E(v,h.body,!0)}function $(){switch(o){case i:return n().href;case f:const h=new URLSearchParams;p(d)&&h.set("cc",p(d)),p(u)&&h.set("bcc",p(u)),p(c)&&h.set("subject",p(c)),p(v)&&h.set("body",p(v));const m=new URL(`mailto:${p(a)}`);return m.search=h.toString(),m.toString();default:return console.error(`Invalid mailto type: ${o}`),""}}function ue(h){h.preventDefault();const m="https://mail.google.com/mail/?extsrc=mailto&url="+encodeURIComponent(p(_));window.open(m,"_blank","noopener, noreferrer"),re()}function He(h){h.preventDefault();const m=new URLSearchParams;m.set("path","/mail/action/compose"),p(a)&&m.set("to",p(a)),p(c)&&m.set("subject",p(c)),p(v)&&m.set("body",p(v));const U=new URL("https://outlook.live.com/owa/");U.search=m.toString(),window.open(U.toString(),"_blank","noopener, noreferrer"),re()}function Ge(h){h.preventDefault();const m=new URLSearchParams;p(a)&&m.set("to",p(a)),p(c)&&m.set("subject",p(c)),p(v)&&m.set("body",p(v));const U=new URL("https://compose.mail.yahoo.com");U.search=m.toString(),window.open(U.toString(),"_blank","noopener, noreferrer"),re()}async function Ke(h){h.preventDefault();try{await navigator.clipboard.writeText(p(a)),E(g,!0),setTimeout(re,1500)}catch(m){console.error("Unable to copy to clipboard.",m)}}function re(h=null){h&&h.currentTarget!==h.target||rt(l,null)}Ot(()=>{n().href.startsWith("mailto:")?(o=i,T()):(o=f,S()),E(_,$(),!0)});var Ee=Es(),ft=N(Ee),We=N(ft),L=N(We),ce=A(We,2),ut=N(ce),$t=N(ut);{var Gn=h=>{var m=ms(),U=A(Ne(m));xe(()=>se(U,` ${p(d)??""}`)),de(h,m)};Te($t,h=>{p(d)&&h(Gn)})}var Nt=A($t,2);{var Kn=h=>{var m=bs(),U=A(Ne(m));xe(()=>se(U,` ${p(u)??""}`)),de(h,m)};Te(Nt,h=>{p(u)&&h(Kn)})}var Pt=A(Nt,2);{var Wn=h=>{var m=ys(),U=A(Ne(m));xe(()=>se(U,` ${p(c)??""}`)),de(h,m)};Te(Pt,h=>{p(c)&&h(Wn)})}var Zn=A(Pt,2);{var Jn=h=>{var m=ws(),U=A(Ne(m));xe(()=>se(U,` ${p(v)??""}`)),de(h,m)};Te(Zn,h=>{p(v)&&h(Jn)})}var Qn=A(ce,2),Lt=N(Qn),Ut=A(Lt,2),Ft=A(Ut,2),jt=A(Ft,2),It=A(jt,2),Xn=N(It),er=N(Xn);xe(()=>{se(L,p(a)),wt(jt,"href",p(_)),se(er,p(g)?"copied":"copy")}),ee("click",Ee,re),ee("click",Lt,ue),ee("click",Ut,He),ee("click",Ft,Ge),ee("click",It,Ke),de(e,Ee),ot(),s()}zn(["click"]);var xs=we('<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 Ss(e,t){it(t,!0);const n=()=>nt(f,"$selectedCallto",r),[r,s]=Rt(),i=/^(tel:)|^(callto:)/,f=hn("selectedCallto");let l=D(""),o=D(!1);function a(){E(l,n().href.replace(i,""),!0)}function d(){const{dataset:L}=n();E(l,L.tel,!0)}function u(L){L.preventDefault();const ut=`https://wa.me/${p(l).replaceAll(/\D/g,"").replace(/^0+/,"")}`;window.open(ut,"_blank","noopener, noreferrer"),_()}function c(L){L.preventDefault();const ce=`skype:${encodeURIComponent(p(l))}`;window.open(ce,"_blank","noopener, noreferrer"),_()}async function v(L){L.preventDefault();try{await navigator.clipboard.writeText(p(l)),E(o,!0),setTimeout(_,1500)}catch(ce){console.error("Unable to copy to clipboard.",ce)}}function _(L=null){L&&L.currentTarget!==L.target||rt(f,null)}Ot(()=>{i.test(n().href)?a():d()});var g=xs(),T=N(g),S=N(T),$=N(S),ue=A(S,2),He=N(ue),Ge=A(He,2),Ke=A(Ge,2),re=A(Ke,2),Ee=A(re,2),ft=N(Ee),We=N(ft);xe(()=>{se($,p(l)),wt(Ke,"href",`tel:${p(l)}`),wt(re,"href",`sms:${p(l)}`),se(We,p(o)?"copied":"copy")}),ee("click",g,_),ee("click",He,u),ee("click",Ge,c),ee("click",Ee,v),de(e,g),ot(),s()}zn(["click"]);var Ts=we("<!> <!>",1);function As(e,t){it(t,!1);const n=()=>nt(o,"$selectedMailto",s),r=()=>nt(a,"$selectedCallto",s),[s,i]=Rt(),f='a[href^="mailto:"]:not(.no-maildo), a[href="#maildo"][data-address], a.maildo[data-address]',l='a[href^="tel:"]:not(.no-maildo), a[href^="callto:"]:not(.no-maildo), a[href="#maildo"][data-tel], a.maildo[data-tel]',o=Xt(null);Bt("selectedMailto",o);const a=Xt(null);Bt("selectedCallto",a),Ot(()=>{const g=document.querySelectorAll(f),T=document.querySelectorAll(l);g.forEach(S=>{S.addEventListener("click",$=>{$.preventDefault(),rt(o,S)})}),T.forEach(S=>{S.addEventListener("click",$=>{$.preventDefault(),rt(a,S)})})}),ps();var d=Ts(),u=Ne(d);{var c=g=>{ks(g,{})};Te(u,g=>{n()&&g(c)})}var v=A(u,2);{var _=g=>{Ss(g,{})};Te(v,g=>{r()&&g(_)})}de(e,d),ot(),i()}const en="maildo-app";function Ms(){let e=document.getElementById(en);if(!e)e=document.createElement("slot"),e.id=en,document.body.appendChild(e);else if(e.childElementCount>0){console.warn("App target already exists");return}os(As,{target:e})}Ms();
|
|
1
|
+
(function(){let e=document.createElement(`link`).relList;if(e&&e.supports&&e.supports(`modulepreload`))return;for(let e of document.querySelectorAll(`link[rel="modulepreload"]`))n(e);new MutationObserver(e=>{for(let t of e)if(t.type===`childList`)for(let e of t.addedNodes)e.tagName===`LINK`&&e.rel===`modulepreload`&&n(e)}).observe(document,{childList:!0,subtree:!0});function t(e){let t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),e.crossOrigin===`use-credentials`?t.credentials=`include`:e.crossOrigin===`anonymous`?t.credentials=`omit`:t.credentials=`same-origin`,t}function n(e){if(e.ep)return;e.ep=!0;let n=t(e);fetch(e.href,n)}})();var e=Array.isArray,t=Array.prototype.indexOf,n=Array.prototype.includes,r=Array.from,i=Object.defineProperty,a=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyDescriptors,s=Object.prototype,c=Array.prototype,l=Object.getPrototypeOf,u=Object.isExtensible,d=()=>{};function f(e){return e()}function p(e){for(var t=0;t<e.length;t++)e[t]()}function m(){var e,t;return{promise:new Promise((n,r)=>{e=n,t=r}),resolve:e,reject:t}}var h=1024,g=2048,_=4096,ee=8192,te=16384,ne=32768,re=1<<25,ie=65536,v=1<<19,y=1<<20,b=65536,ae=1<<21,oe=1<<22,se=1<<23,ce=Symbol(`$state`),le=Symbol(``),x=new class extends Error{name=`StaleReactionError`;message="The reaction that called `getAbortSignal()` was re-run or destroyed"},ue=!!globalThis.document?.contentType&&globalThis.document.contentType.includes(`xml`);function de(e){throw Error(`https://svelte.dev/e/lifecycle_outside_component`)}function fe(){throw Error(`https://svelte.dev/e/async_derived_orphan`)}function pe(e){throw Error(`https://svelte.dev/e/effect_in_teardown`)}function me(){throw Error(`https://svelte.dev/e/effect_in_unowned_derived`)}function he(e){throw Error(`https://svelte.dev/e/effect_orphan`)}function ge(){throw Error(`https://svelte.dev/e/effect_update_depth_exceeded`)}function _e(){throw Error(`https://svelte.dev/e/set_context_after_init`)}function ve(){throw Error(`https://svelte.dev/e/state_descriptors_fixed`)}function ye(){throw Error(`https://svelte.dev/e/state_prototype_fixed`)}function be(){throw Error(`https://svelte.dev/e/state_unsafe_mutation`)}function xe(){throw Error(`https://svelte.dev/e/svelte_boundary_reset_onerror`)}var Se={},S=Symbol(),Ce=`http://www.w3.org/1999/xhtml`;function we(e){console.warn(`https://svelte.dev/e/hydration_mismatch`)}function Te(){console.warn(`https://svelte.dev/e/svelte_boundary_reset_noop`)}var C=!1;function Ee(e){C=e}var w;function T(e){if(e===null)throw we(),Se;return w=e}function De(){return T(L(w))}function E(e){if(C){if(L(w)!==null)throw we(),Se;w=e}}function Oe(e=1){if(C){for(var t=e,n=w;t--;)n=L(n);w=n}}function ke(e=!0){for(var t=0,n=w;;){if(n.nodeType===8){var r=n.data;if(r===`]`){if(t===0)return n;--t}else (r===`[`||r===`[!`||r[0]===`[`&&!isNaN(Number(r.slice(1))))&&(t+=1)}var i=L(n);e&&n.remove(),n=i}}function Ae(e){if(!e||e.nodeType!==8)throw we(),Se;return e.data}function je(e){return e===this.v}function Me(e,t){return e==e?e!==t||typeof e==`object`&&!!e||typeof e==`function`:t==t}function Ne(e){return!Me(e,this.v)}var Pe=!1,Fe=!1;function Ie(){Fe=!0}var D=null;function Le(e){D=e}function Re(e){return Ue(`getContext`).get(e)}function ze(e,t){let n=Ue(`setContext`);if(Pe){var r=K.f;!U&&r&32&&!D.i||_e()}return n.set(e,t),t}function Be(e,t=!1,n){D={p:D,i:!1,c:null,e:null,s:e,x:null,r:K,l:Fe&&!t?{s:null,u:null,$:[]}:null}}function Ve(e){var t=D,n=t.e;if(n!==null){t.e=null;for(var r of n)mn(r)}return e!==void 0&&(t.x=e),t.i=!0,D=t.p,e??{}}function He(){return!Fe||D!==null&&D.l===null}function Ue(e){return D===null&&de(e),D.c??=new Map(We(D)||void 0)}function We(e){let t=e.p;for(;t!==null;){let e=t.c;if(e!==null)return e;t=t.p}return null}var Ge=[];function Ke(){var e=Ge;Ge=[],p(e)}function qe(e){if(Ge.length===0&&!dt){var t=Ge;queueMicrotask(()=>{t===Ge&&Ke()})}Ge.push(e)}function Je(e){var t=K;if(t===null)return U.f|=se,e;if(!(t.f&32768)&&!(t.f&4))throw e;Ye(e,t)}function Ye(e,t){for(;t!==null;){if(t.f&128){if(!(t.f&32768))throw e;try{t.b.error(e);return}catch(t){e=t}}t=t.parent}throw e}var Xe=~(g|_|h);function O(e,t){e.f=e.f&Xe|t}function Ze(e){e.f&512||e.deps===null?O(e,h):O(e,_)}function Qe(e){if(e!==null)for(let t of e)!(t.f&2)||!(t.f&65536)||(t.f^=b,Qe(t.deps))}function $e(e,t,n){e.f&2048?t.add(e):e.f&4096&&n.add(e),Qe(e.deps),O(e,h)}function et(e,t,n){if(e==null)return t(void 0),n&&n(void 0),d;let r=Xn(()=>e.subscribe(t,n));return r.unsubscribe?()=>r.unsubscribe():r}var tt=[];function nt(e,t=d){let n=null,r=new Set;function i(t){if(Me(e,t)&&(e=t,n)){let t=!tt.length;for(let t of r)t[1](),tt.push(t,e);if(t){for(let e=0;e<tt.length;e+=2)tt[e][0](tt[e+1]);tt.length=0}}}function a(t){i(t(e))}function o(o,s=d){let c=[o,s];return r.add(c),r.size===1&&(n=t(i,a)||d),o(e),()=>{r.delete(c),r.size===0&&n&&(n(),n=null)}}return{set:i,update:a,subscribe:o}}function rt(e){let t;return et(e,e=>t=e)(),t}var it=!1,at=Symbol();function ot(e,t,n){let r=n[t]??={store:null,source:Gt(void 0),unsubscribe:d};if(r.store!==e&&!(at in n))if(r.unsubscribe(),r.store=e??null,e==null)r.source.v=void 0,r.unsubscribe=d;else{var i=!0;r.unsubscribe=et(e,e=>{i?r.source.v=e:F(r.source,e)}),i=!1}return e&&at in n?rt(e):Q(r.source)}function st(e,t){return lt(e,t),t}function ct(){let e={};function t(){fn(()=>{for(var t in e)e[t].unsubscribe();i(e,at,{enumerable:!1,value:!0})})}return[e,t]}function lt(e,t){it=!0;try{e.set(t)}finally{it=!1}}var k=new Set,A=null,j=null,ut=null,dt=!1,ft=!1,pt=null,mt=null,ht=0,gt=1,_t=class e{id=gt++;current=new Map;previous=new Map;#e=new Set;#t=new Set;#n=new Map;#r=new Map;#i=null;#a=[];#o=[];#s=new Set;#c=new Set;#l=new Map;is_fork=!1;#u=!1;#d=new Set;#f(){return this.is_fork||this.#r.size>0}#p(){for(let n of this.#d)for(let r of n.#r.keys()){for(var e=!1,t=r;t.parent!==null;){if(this.#l.has(t)){e=!0;break}t=t.parent}if(!e)return!0}return!1}skip_effect(e){this.#l.has(e)||this.#l.set(e,{d:[],m:[]})}unskip_effect(e){var t=this.#l.get(e);if(t){this.#l.delete(e);for(var n of t.d)O(n,g),this.schedule(n);for(n of t.m)O(n,_),this.schedule(n)}}#m(){if(ht++>1e3&&(k.delete(this),vt()),!this.#f()){for(let e of this.#s)this.#c.delete(e),O(e,g),this.schedule(e);for(let e of this.#c)O(e,_),this.schedule(e)}let t=this.#a;this.#a=[],this.apply();var n=pt=[],r=[],i=mt=[];for(let e of t)try{this.#h(e,n,r)}catch(t){throw wt(e),t}if(A=null,i.length>0){var a=e.ensure();for(let e of i)a.schedule(e)}if(pt=null,mt=null,this.#f()||this.#p()){this.#g(r),this.#g(n);for(let[e,t]of this.#l)Ct(e,t)}else{this.#n.size===0&&k.delete(this),this.#s.clear(),this.#c.clear();for(let e of this.#e)e(this);this.#e.clear(),yt(r),yt(n),this.#i?.resolve()}var o=A;if(this.#a.length>0){let e=o??=this;e.#a.push(...this.#a.filter(t=>!e.#a.includes(t)))}o!==null&&(k.add(o),o.#m()),k.has(this)||this.#_()}#h(e,t,n){e.f^=h;for(var r=e.first;r!==null;){var i=r.f,a=(i&96)!=0;if(!(a&&i&1024||i&8192||this.#l.has(r))&&r.fn!==null){a?r.f^=h:i&4?t.push(r):Pe&&i&16777224?n.push(r):Hn(r)&&(i&16&&this.#c.add(r),qn(r));var o=r.first;if(o!==null){r=o;continue}}for(;r!==null;){var s=r.next;if(s!==null){r=s;break}r=r.parent}}}#g(e){for(var t=0;t<e.length;t+=1)$e(e[t],this.#s,this.#c)}capture(e,t,n=!1){t!==S&&!this.previous.has(e)&&this.previous.set(e,t),e.f&8388608||(this.current.set(e,[e.v,n]),j?.set(e,e.v))}activate(){A=this}deactivate(){A=null,j=null}flush(){try{ft=!0,A=this,this.#m()}finally{ht=0,ut=null,pt=null,mt=null,ft=!1,A=null,j=null,N.clear()}}discard(){for(let e of this.#t)e(this);this.#t.clear(),k.delete(this)}register_created_effect(e){this.#o.push(e)}#_(){for(let l of k){var e=l.id<this.id,t=[];for(let[r,[i,a]]of this.current){if(l.current.has(r)){var n=l.current.get(r)[0];if(e&&i!==n)l.current.set(r,[i,a]);else continue}t.push(r)}var r=[...l.current.keys()].filter(e=>!this.current.has(e));if(r.length===0)e&&l.discard();else if(t.length>0){l.activate();var i=new Set,a=new Map;for(var o of t)bt(o,r,i,a);a=new Map;var s=[...l.current.keys()].filter(e=>this.current.has(e)?this.current.get(e)[0]!==e:!0);for(let e of this.#o)!(e.f&155648)&&xt(e,s,a)&&(e.f&4194320?(O(e,g),l.schedule(e)):l.#s.add(e));if(l.#a.length>0){l.apply();for(var c of l.#a)l.#h(c,[],[]);l.#a=[]}l.deactivate()}}for(let e of k)e.#d.has(this)&&(e.#d.delete(this),e.#d.size===0&&!e.#f()&&(e.activate(),e.#m()))}increment(e,t){let n=this.#n.get(t)??0;if(this.#n.set(t,n+1),e){let e=this.#r.get(t)??0;this.#r.set(t,e+1)}}decrement(e,t,n){let r=this.#n.get(t)??0;if(r===1?this.#n.delete(t):this.#n.set(t,r-1),e){let e=this.#r.get(t)??0;e===1?this.#r.delete(t):this.#r.set(t,e-1)}this.#u||n||(this.#u=!0,qe(()=>{this.#u=!1,this.flush()}))}transfer_effects(e,t){for(let t of e)this.#s.add(t);for(let e of t)this.#c.add(e);e.clear(),t.clear()}oncommit(e){this.#e.add(e)}ondiscard(e){this.#t.add(e)}settled(){return(this.#i??=m()).promise}static ensure(){if(A===null){let t=A=new e;ft||(k.add(A),dt||qe(()=>{A===t&&t.flush()}))}return A}apply(){if(!Pe||!this.is_fork&&k.size===1){j=null;return}j=new Map;for(let[e,[t]]of this.current)j.set(e,t);for(let n of k)if(!(n===this||n.is_fork)){var e=!1,t=!1;if(n.id<this.id)for(let[r,[,i]]of n.current)i||(e||=this.current.has(r),t||=!this.current.has(r));if(e&&t)this.#d.add(n);else for(let[e,t]of n.previous)j.has(e)||j.set(e,t)}}schedule(e){if(ut=e,e.b?.is_pending&&e.f&16777228&&!(e.f&32768)){e.b.defer_effect(e);return}for(var t=e;t.parent!==null;){t=t.parent;var n=t.f;if(pt!==null&&t===K&&(Pe||(U===null||!(U.f&2))&&!it))return;if(n&96){if(!(n&1024))return;t.f^=h}}this.#a.push(t)}};function vt(){try{ge()}catch(e){Ye(e,ut)}}var M=null;function yt(e){var t=e.length;if(t!==0){for(var n=0;n<t;){var r=e[n++];if(!(r.f&24576)&&Hn(r)&&(M=new Set,qn(r),r.deps===null&&r.first===null&&r.nodes===null&&r.teardown===null&&r.ac===null&&Tn(r),M?.size>0)){N.clear();for(let e of M){if(e.f&24576)continue;let t=[e],n=e.parent;for(;n!==null;)M.has(n)&&(M.delete(n),t.push(n)),n=n.parent;for(let e=t.length-1;e>=0;e--){let n=t[e];n.f&24576||qn(n)}}M.clear()}}M=null}}function bt(e,t,n,r){if(!n.has(e)&&(n.add(e),e.reactions!==null))for(let i of e.reactions){let e=i.f;e&2?bt(i,t,n,r):e&4194320&&!(e&2048)&&xt(i,t,r)&&(O(i,g),St(i))}}function xt(e,t,r){let i=r.get(e);if(i!==void 0)return i;if(e.deps!==null)for(let i of e.deps){if(n.call(t,i))return!0;if(i.f&2&&xt(i,t,r))return r.set(i,!0),!0}return r.set(e,!1),!1}function St(e){A.schedule(e)}function Ct(e,t){if(!(e.f&32&&e.f&1024)){e.f&2048?t.d.push(e):e.f&4096&&t.m.push(e),O(e,h);for(var n=e.first;n!==null;)Ct(n,t),n=n.next}}function wt(e){O(e,h);for(var t=e.first;t!==null;)wt(t),t=t.next}function Tt(e){let t=0,n=Wt(0),r;return()=>{dn()&&(Q(n),vn(()=>(t===0&&(r=Xn(()=>e(()=>Jt(n)))),t+=1,()=>{qe(()=>{--t,t===0&&(r?.(),r=void 0,Jt(n))})})))}}var Et=ie|v;function Dt(e,t,n,r){new Ot(e,t,n,r)}var Ot=class{parent;is_pending=!1;transform_error;#e;#t=C?w:null;#n;#r;#i;#a=null;#o=null;#s=null;#c=null;#l=0;#u=0;#d=!1;#f=new Set;#p=new Set;#m=null;#h=Tt(()=>(this.#m=Wt(this.#l),()=>{this.#m=null}));constructor(e,t,n,r){this.#e=e,this.#n=t,this.#r=e=>{var t=K;t.b=this,t.f|=128,n(e)},this.parent=K.b,this.transform_error=r??this.parent?.transform_error??(e=>e),this.#i=bn(()=>{if(C){let e=this.#t;De();let t=e.data===`[!`;if(e.data.startsWith(`[?`)){let t=JSON.parse(e.data.slice(2));this.#_(t)}else t?this.#v():this.#g()}else this.#y()},Et),C&&(this.#e=w)}#g(){try{this.#a=V(()=>this.#r(this.#e))}catch(e){this.error(e)}}#_(e){let t=this.#n.failed;t&&(this.#s=V(()=>{t(this.#e,()=>e,()=>()=>{})}))}#v(){let e=this.#n.pending;e&&(this.is_pending=!0,this.#o=V(()=>e(this.#e)),qe(()=>{var e=this.#c=document.createDocumentFragment(),t=I();e.append(t),this.#a=this.#x(()=>V(()=>this.#r(t))),this.#u===0&&(this.#e.before(e),this.#c=null,En(this.#o,()=>{this.#o=null}),this.#b(A))}))}#y(){try{if(this.is_pending=this.has_pending_snippet(),this.#u=0,this.#l=0,this.#a=V(()=>{this.#r(this.#e)}),this.#u>0){var e=this.#c=document.createDocumentFragment();An(this.#a,e);let t=this.#n.pending;this.#o=V(()=>t(this.#e))}else this.#b(A)}catch(e){this.error(e)}}#b(e){this.is_pending=!1,e.transfer_effects(this.#f,this.#p)}defer_effect(e){$e(e,this.#f,this.#p)}is_rendered(){return!this.is_pending&&(!this.parent||this.parent.is_rendered())}has_pending_snippet(){return!!this.#n.pending}#x(e){var t=K,n=U,r=D;q(this.#i),G(this.#i),Le(this.#i.ctx);try{return _t.ensure(),e()}catch(e){return Je(e),null}finally{q(t),G(n),Le(r)}}#S(e,t){if(!this.has_pending_snippet()){this.parent&&this.parent.#S(e,t);return}this.#u+=e,this.#u===0&&(this.#b(t),this.#o&&En(this.#o,()=>{this.#o=null}),this.#c&&=(this.#e.before(this.#c),null))}update_pending_count(e,t){this.#S(e,t),this.#l+=e,!(!this.#m||this.#d)&&(this.#d=!0,qe(()=>{this.#d=!1,this.#m&&Kt(this.#m,this.#l)}))}get_effect_pending(){return this.#h(),Q(this.#m)}error(e){var t=this.#n.onerror;let n=this.#n.failed;if(!t&&!n)throw e;this.#a&&=(H(this.#a),null),this.#o&&=(H(this.#o),null),this.#s&&=(H(this.#s),null),C&&(T(this.#t),Oe(),T(ke()));var r=!1,i=!1;let a=()=>{if(r){Te();return}r=!0,i&&xe(),this.#s!==null&&En(this.#s,()=>{this.#s=null}),this.#x(()=>{this.#y()})},o=e=>{try{i=!0,t?.(e,a),i=!1}catch(e){Ye(e,this.#i&&this.#i.parent)}n&&(this.#s=this.#x(()=>{try{return V(()=>{var t=K;t.b=this,t.f|=128,n(this.#e,()=>e,()=>a)})}catch(e){return Ye(e,this.#i.parent),null}}))};qe(()=>{var t;try{t=this.transform_error(e)}catch(e){Ye(e,this.#i&&this.#i.parent);return}typeof t==`object`&&t&&typeof t.then==`function`?t.then(o,e=>Ye(e,this.#i&&this.#i.parent)):o(t)})}};function kt(e,t,n,r){let i=He()?Nt:Ft;var a=e.filter(e=>!e.settled);if(n.length===0&&a.length===0){r(t.map(i));return}var o=K,s=At(),c=a.length===1?a[0].promise:a.length>1?Promise.all(a.map(e=>e.promise)):null;function l(e){s();try{r(e)}catch(e){o.f&16384||Ye(e,o)}jt()}if(n.length===0){c.then(()=>l(t.map(i)));return}var u=Mt();function d(){Promise.all(n.map(e=>Pt(e))).then(e=>l([...t.map(i),...e])).catch(e=>Ye(e,o)).finally(()=>u())}c?c.then(()=>{s(),d(),jt()}):d()}function At(){var e=K,t=U,n=D,r=A;return function(i=!0){q(e),G(t),Le(n),i&&!(e.f&16384)&&(r?.activate(),r?.apply())}}function jt(e=!0){q(null),G(null),Le(null),e&&A?.deactivate()}function Mt(){var e=K,t=e.b,n=A,r=t.is_rendered();return t.update_pending_count(1,n),n.increment(r,e),(i=!1)=>{t.update_pending_count(-1,n),n.decrement(r,e,i)}}function Nt(e){var t=2|g,n=U!==null&&U.f&2?U:null;return K!==null&&(K.f|=v),{ctx:D,deps:null,effects:null,equals:je,f:t,fn:e,reactions:null,rv:0,v:S,wv:0,parent:n??K,ac:null}}function Pt(e,t,n){let r=K;r===null&&fe();var i=void 0,a=Wt(S),o=!U,s=new Map;return _n(()=>{var t=K,n=m();i=n.promise;try{Promise.resolve(e()).then(n.resolve,n.reject).finally(jt)}catch(e){n.reject(e),jt()}var c=A;if(o){if(t.f&32768)var l=Mt();if(r.b.is_rendered())s.get(c)?.reject(x),s.delete(c);else{for(let e of s.values())e.reject(x);s.clear()}s.set(c,n)}let u=(e,n=void 0)=>{if(l&&l(n===x),!(n===x||t.f&16384)){if(c.activate(),n)a.f|=se,Kt(a,n);else{a.f&8388608&&(a.f^=se),Kt(a,e);for(let[e,t]of s){if(s.delete(e),e===c)break;t.reject(x)}}c.deactivate()}};n.promise.then(u,e=>u(null,e||`unknown`))}),fn(()=>{for(let e of s.values())e.reject(x)}),new Promise(e=>{function t(n){function r(){n===i?e(a):t(i)}n.then(r,r)}t(i)})}function Ft(e){let t=Nt(e);return t.equals=Ne,t}function It(e){var t=e.effects;if(t!==null){e.effects=null;for(var n=0;n<t.length;n+=1)H(t[n])}}function Lt(e){for(var t=e.parent;t!==null;){if(!(t.f&2))return t.f&16384?null:t;t=t.parent}return null}function Rt(e){var t,n=K;q(Lt(e));try{e.f&=~b,It(e),t=Wn(e)}finally{q(n)}return t}function zt(e){var t=e.v,n=Rt(e);if(!e.equals(n)&&(e.wv=Vn(),(!A?.is_fork||e.deps===null)&&(e.v=n,A?.capture(e,t,!0),e.deps===null))){O(e,h);return}Nn||(j===null?Ze(e):(dn()||A?.is_fork)&&j.set(e,n))}function Bt(e){if(e.effects!==null)for(let t of e.effects)(t.teardown||t.ac)&&(t.teardown?.(),t.ac?.abort(x),t.teardown=d,t.ac=null,Kn(t,0),Sn(t))}function Vt(e){if(e.effects!==null)for(let t of e.effects)t.teardown&&qn(t)}var Ht=new Set,N=new Map,Ut=!1;function Wt(e,t){return{f:0,v:e,reactions:null,equals:je,rv:0,wv:0}}function P(e,t){let n=Wt(e,t);return Fn(n),n}function Gt(e,t=!1,n=!0){let r=Wt(e);return t||(r.equals=Ne),Fe&&n&&D!==null&&D.l!==null&&(D.l.s??=[]).push(r),r}function F(e,t,r=!1){return U!==null&&(!W||U.f&131072)&&He()&&U.f&4325394&&(J===null||!n.call(J,e))&&be(),Kt(e,r?Xt(t):t,mt)}function Kt(e,t,n=null){if(!e.equals(t)){var r=e.v;Nn?N.set(e,t):N.set(e,r),e.v=t;var i=_t.ensure();if(i.capture(e,r),e.f&2){let t=e;e.f&2048&&Rt(t),j===null&&Ze(t)}e.wv=Vn(),Yt(e,g,n),He()&&K!==null&&K.f&1024&&!(K.f&96)&&(Z===null?In([e]):Z.push(e)),!i.is_fork&&Ht.size>0&&!Ut&&qt()}return t}function qt(){Ut=!1;for(let e of Ht)e.f&1024&&O(e,_),Hn(e)&&qn(e);Ht.clear()}function Jt(e){F(e,e.v+1)}function Yt(e,t,n){var r=e.reactions;if(r!==null)for(var i=He(),a=r.length,o=0;o<a;o++){var s=r[o],c=s.f;if(!(!i&&s===K)){var l=(c&g)===0;if(l&&O(s,t),c&2){var u=s;j?.delete(u),c&65536||(c&512&&(s.f|=b),Yt(u,_,n))}else if(l){var d=s;c&16&&M!==null&&M.add(d),n===null?St(d):n.push(d)}}}}function Xt(t){if(typeof t!=`object`||!t||ce in t)return t;let n=l(t);if(n!==s&&n!==c)return t;var r=new Map,i=e(t),o=P(0),u=null,d=zn,f=e=>{if(zn===d)return e();var t=U,n=zn;G(null),Bn(d);var r=e();return G(t),Bn(n),r};return i&&r.set(`length`,P(t.length,u)),new Proxy(t,{defineProperty(e,t,n){(!(`value`in n)||n.configurable===!1||n.enumerable===!1||n.writable===!1)&&ve();var i=r.get(t);return i===void 0?f(()=>{var e=P(n.value,u);return r.set(t,e),e}):F(i,n.value,!0),!0},deleteProperty(e,t){var n=r.get(t);if(n===void 0){if(t in e){let e=f(()=>P(S,u));r.set(t,e),Jt(o)}}else F(n,S),Jt(o);return!0},get(e,n,i){if(n===ce)return t;var o=r.get(n),s=n in e;if(o===void 0&&(!s||a(e,n)?.writable)&&(o=f(()=>P(Xt(s?e[n]:S),u)),r.set(n,o)),o!==void 0){var c=Q(o);return c===S?void 0:c}return Reflect.get(e,n,i)},getOwnPropertyDescriptor(e,t){var n=Reflect.getOwnPropertyDescriptor(e,t);if(n&&`value`in n){var i=r.get(t);i&&(n.value=Q(i))}else if(n===void 0){var a=r.get(t),o=a?.v;if(a!==void 0&&o!==S)return{enumerable:!0,configurable:!0,value:o,writable:!0}}return n},has(e,t){if(t===ce)return!0;var n=r.get(t),i=n!==void 0&&n.v!==S||Reflect.has(e,t);return(n!==void 0||K!==null&&(!i||a(e,t)?.writable))&&(n===void 0&&(n=f(()=>P(i?Xt(e[t]):S,u)),r.set(t,n)),Q(n)===S)?!1:i},set(e,t,n,s){var c=r.get(t),l=t in e;if(i&&t===`length`)for(var d=n;d<c.v;d+=1){var p=r.get(d+``);p===void 0?d in e&&(p=f(()=>P(S,u)),r.set(d+``,p)):F(p,S)}if(c===void 0)(!l||a(e,t)?.writable)&&(c=f(()=>P(void 0,u)),F(c,Xt(n)),r.set(t,c));else{l=c.v!==S;var m=f(()=>Xt(n));F(c,m)}var h=Reflect.getOwnPropertyDescriptor(e,t);if(h?.set&&h.set.call(s,n),!l){if(i&&typeof t==`string`){var g=r.get(`length`),_=Number(t);Number.isInteger(_)&&_>=g.v&&F(g,_+1)}Jt(o)}return!0},ownKeys(e){Q(o);var t=Reflect.ownKeys(e).filter(e=>{var t=r.get(e);return t===void 0||t.v!==S});for(var[n,i]of r)i.v!==S&&!(n in e)&&t.push(n);return t},setPrototypeOf(){ye()}})}var Zt,Qt,$t,en;function tn(){if(Zt===void 0){Zt=window,Qt=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,n=Text.prototype;$t=a(t,`firstChild`).get,en=a(t,`nextSibling`).get,u(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),u(n)&&(n.__t=void 0)}}function I(e=``){return document.createTextNode(e)}function nn(e){return $t.call(e)}function L(e){return en.call(e)}function R(e,t){if(!C)return nn(e);var n=nn(w);if(n===null)n=w.appendChild(I());else if(t&&n.nodeType!==3){var r=I();return n?.before(r),T(r),r}return t&&sn(n),T(n),n}function rn(e,t=!1){if(!C){var n=nn(e);return n instanceof Comment&&n.data===``?L(n):n}if(t){if(w?.nodeType!==3){var r=I();return w?.before(r),T(r),r}sn(w)}return w}function z(e,t=1,n=!1){let r=C?w:e;for(var i;t--;)i=r,r=L(r);if(!C)return r;if(n){if(r?.nodeType!==3){var a=I();return r===null?i?.after(a):r.before(a),T(a),a}sn(r)}return T(r),r}function an(){return!Pe||M!==null?!1:(K.f&ne)!==0}function on(e,t,n){let r=n?{is:n}:void 0;return document.createElementNS(t??`http://www.w3.org/1999/xhtml`,e,r)}function sn(e){if(e.nodeValue.length<65536)return;let t=e.nextSibling;for(;t!==null&&t.nodeType===3;)t.remove(),e.nodeValue+=t.nodeValue,t=e.nextSibling}function cn(e){var t=U,n=K;G(null),q(null);try{return e()}finally{G(t),q(n)}}function ln(e){K===null&&(U===null&&he(e),me()),Nn&&pe(e)}function un(e,t){var n=t.last;n===null?t.last=t.first=e:(n.next=e,e.prev=n,t.last=e)}function B(e,t){var n=K;n!==null&&n.f&8192&&(e|=ee);var r={ctx:D,deps:null,nodes:null,f:e|g|512,first:null,fn:t,last:null,next:null,parent:n,b:n&&n.b,prev:null,teardown:null,wv:0,ac:null};A?.register_created_effect(r);var i=r;if(e&4)pt===null?_t.ensure().schedule(r):pt.push(r);else if(t!==null){try{qn(r)}catch(e){throw H(r),e}i.deps===null&&i.teardown===null&&i.nodes===null&&i.first===i.last&&!(i.f&524288)&&(i=i.first,e&16&&e&65536&&i!==null&&(i.f|=ie))}if(i!==null&&(i.parent=n,n!==null&&un(i,n),U!==null&&U.f&2&&!(e&64))){var a=U;(a.effects??=[]).push(i)}return r}function dn(){return U!==null&&!W}function fn(e){let t=B(8,null);return O(t,h),t.teardown=e,t}function pn(e){ln(`$effect`);var t=K.f;if(!U&&t&32&&!(t&32768)){var n=D;(n.e??=[]).push(e)}else return mn(e)}function mn(e){return B(4|y,e)}function hn(e){return ln(`$effect.pre`),B(8|y,e)}function gn(e){_t.ensure();let t=B(64|v,e);return(e={})=>new Promise(n=>{e.outro?En(t,()=>{H(t),n(void 0)}):(H(t),n(void 0))})}function _n(e){return B(oe|v,e)}function vn(e,t=0){return B(8|t,e)}function yn(e,t=[],n=[],r=[]){kt(r,t,n,t=>{B(8,()=>e(...t.map(Q)))})}function bn(e,t=0){return B(16|t,e)}function V(e){return B(32|v,e)}function xn(e){var t=e.teardown;if(t!==null){let e=Nn,n=U;Pn(!0),G(null);try{t.call(null)}finally{Pn(e),G(n)}}}function Sn(e,t=!1){var n=e.first;for(e.first=e.last=null;n!==null;){let e=n.ac;e!==null&&cn(()=>{e.abort(x)});var r=n.next;n.f&64?n.parent=null:H(n,t),n=r}}function Cn(e){for(var t=e.first;t!==null;){var n=t.next;t.f&32||H(t),t=n}}function H(e,t=!0){var n=!1;(t||e.f&262144)&&e.nodes!==null&&e.nodes.end!==null&&(wn(e.nodes.start,e.nodes.end),n=!0),O(e,re),Sn(e,t&&!n),Kn(e,0);var r=e.nodes&&e.nodes.t;if(r!==null)for(let e of r)e.stop();xn(e),e.f^=re,e.f|=te;var i=e.parent;i!==null&&i.first!==null&&Tn(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes=e.ac=e.b=null}function wn(e,t){for(;e!==null;){var n=e===t?null:L(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 En(e,t,n=!0){var r=[];Dn(e,r,!0);var i=()=>{n&&H(e),t&&t()},a=r.length;if(a>0){var o=()=>--a||i();for(var s of r)s.out(o)}else i()}function Dn(e,t,n){if(!(e.f&8192)){e.f^=ee;var r=e.nodes&&e.nodes.t;if(r!==null)for(let e of r)(e.is_global||n)&&t.push(e);for(var i=e.first;i!==null;){var a=i.next,o=(i.f&65536)!=0||(i.f&32)!=0&&(e.f&16)!=0;Dn(i,t,o?n:!1),i=a}}}function On(e){kn(e,!0)}function kn(e,t){if(e.f&8192){e.f^=ee,e.f&1024||(O(e,g),_t.ensure().schedule(e));for(var n=e.first;n!==null;){var r=n.next,i=(n.f&65536)!=0||(n.f&32)!=0;kn(n,i?t:!1),n=r}var a=e.nodes&&e.nodes.t;if(a!==null)for(let e of a)(e.is_global||t)&&e.in()}}function An(e,t){if(e.nodes)for(var n=e.nodes.start,r=e.nodes.end;n!==null;){var i=n===r?null:L(n);t.append(n),n=i}}var jn=null,Mn=!1,Nn=!1;function Pn(e){Nn=e}var U=null,W=!1;function G(e){U=e}var K=null;function q(e){K=e}var J=null;function Fn(e){U!==null&&(!Pe||U.f&2)&&(J===null?J=[e]:J.push(e))}var Y=null,X=0,Z=null;function In(e){Z=e}var Ln=1,Rn=0,zn=Rn;function Bn(e){zn=e}function Vn(){return++Ln}function Hn(e){var t=e.f;if(t&2048)return!0;if(t&2&&(e.f&=~b),t&4096){for(var n=e.deps,r=n.length,i=0;i<r;i++){var a=n[i];if(Hn(a)&&zt(a),a.wv>e.wv)return!0}t&512&&j===null&&O(e,h)}return!1}function Un(e,t,r=!0){var i=e.reactions;if(i!==null&&!(!Pe&&J!==null&&n.call(J,e)))for(var a=0;a<i.length;a++){var o=i[a];o.f&2?Un(o,t,!1):t===o&&(r?O(o,g):o.f&1024&&O(o,_),St(o))}}function Wn(e){var t=Y,n=X,r=Z,i=U,a=J,o=D,s=W,c=zn,l=e.f;Y=null,X=0,Z=null,U=l&96?null:e,J=null,Le(e.ctx),W=!1,zn=++Rn,e.ac!==null&&(cn(()=>{e.ac.abort(x)}),e.ac=null);try{e.f|=ae;var u=e.fn,d=u();e.f|=ne;var f=e.deps,p=A?.is_fork;if(Y!==null){var m;if(p||Kn(e,X),f!==null&&X>0)for(f.length=X+Y.length,m=0;m<Y.length;m++)f[X+m]=Y[m];else e.deps=f=Y;if(dn()&&e.f&512)for(m=X;m<f.length;m++)(f[m].reactions??=[]).push(e)}else !p&&f!==null&&X<f.length&&(Kn(e,X),f.length=X);if(He()&&Z!==null&&!W&&f!==null&&!(e.f&6146))for(m=0;m<Z.length;m++)Un(Z[m],e);if(i!==null&&i!==e){if(Rn++,i.deps!==null)for(let e=0;e<n;e+=1)i.deps[e].rv=Rn;if(t!==null)for(let e of t)e.rv=Rn;Z!==null&&(r===null?r=Z:r.push(...Z))}return e.f&8388608&&(e.f^=se),d}catch(e){return Je(e)}finally{e.f^=ae,Y=t,X=n,Z=r,U=i,J=a,Le(o),W=s,zn=c}}function Gn(e,r){let i=r.reactions;if(i!==null){var a=t.call(i,e);if(a!==-1){var o=i.length-1;o===0?i=r.reactions=null:(i[a]=i[o],i.pop())}}if(i===null&&r.f&2&&(Y===null||!n.call(Y,r))){var s=r;s.f&512&&(s.f^=512,s.f&=~b),Ze(s),Bt(s),Kn(s,0)}}function Kn(e,t){var n=e.deps;if(n!==null)for(var r=t;r<n.length;r++)Gn(e,n[r])}function qn(e){var t=e.f;if(!(t&16384)){O(e,h);var n=K,r=Mn;K=e,Mn=!0;try{t&16777232?Cn(e):Sn(e),xn(e);var i=Wn(e);e.teardown=typeof i==`function`?i:null,e.wv=Ln}finally{Mn=r,K=n}}}function Q(e){var t=(e.f&2)!=0;if(jn?.add(e),U!==null&&!W&&!(K!==null&&K.f&16384)&&(J===null||!n.call(J,e))){var r=U.deps;if(U.f&2097152)e.rv<Rn&&(e.rv=Rn,Y===null&&r!==null&&r[X]===e?X++:Y===null?Y=[e]:Y.push(e));else{(U.deps??=[]).push(e);var i=e.reactions;i===null?e.reactions=[U]:n.call(i,U)||i.push(U)}}if(Nn&&N.has(e))return N.get(e);if(t){var a=e;if(Nn){var o=a.v;return(!(a.f&1024)&&a.reactions!==null||Yn(a))&&(o=Rt(a)),N.set(a,o),o}var s=(a.f&512)==0&&!W&&U!==null&&(Mn||(U.f&512)!=0),c=(a.f&ne)===0;Hn(a)&&(s&&(a.f|=512),zt(a)),s&&!c&&(Vt(a),Jn(a))}if(j?.has(e))return j.get(e);if(e.f&8388608)throw e.v;return e.v}function Jn(e){if(e.f|=512,e.deps!==null)for(let t of e.deps)(t.reactions??=[]).push(e),t.f&2&&!(t.f&512)&&(Vt(t),Jn(t))}function Yn(e){if(e.v===S)return!0;if(e.deps===null)return!1;for(let t of e.deps)if(N.has(t)||t.f&2&&Yn(t))return!0;return!1}function Xn(e){var t=W;try{return W=!0,e()}finally{W=t}}function Zn(e){if(!(typeof e!=`object`||!e||e instanceof EventTarget)){if(ce in e)Qn(e);else if(!Array.isArray(e))for(let t in e){let n=e[t];typeof n==`object`&&n&&ce in n&&Qn(n)}}}function Qn(e,t=new Set){if(typeof e==`object`&&e&&!(e instanceof EventTarget)&&!t.has(e)){t.add(e),e instanceof Date&&e.getTime();for(let n in e)try{Qn(e[n],t)}catch{}let n=l(e);if(n!==Object.prototype&&n!==Array.prototype&&n!==Map.prototype&&n!==Set.prototype&&n!==Date.prototype){let t=o(n);for(let n in t){let r=t[n].get;if(r)try{r.call(e)}catch{}}}}}[...`allowfullscreen.async.autofocus.autoplay.checked.controls.default.disabled.formnovalidate.indeterminate.inert.ismap.loop.multiple.muted.nomodule.novalidate.open.playsinline.readonly.required.reversed.seamless.selected.webkitdirectory.defer.disablepictureinpicture.disableremoteplayback`.split(`.`)];var $n=[`touchstart`,`touchmove`];function er(e){return $n.includes(e)}var tr=Symbol(`events`),nr=new Set,rr=new Set;function $(e,t,n){(t[tr]??={})[e]=n}function ir(e){for(var t=0;t<e.length;t++)nr.add(e[t]);for(var n of rr)n(e)}var ar=null;function or(e){var t=this,n=t.ownerDocument,r=e.type,a=e.composedPath?.()||[],o=a[0]||e.target;ar=e;var s=0,c=ar===e&&e[tr];if(c){var l=a.indexOf(c);if(l!==-1&&(t===document||t===window)){e[tr]=t;return}var u=a.indexOf(t);if(u===-1)return;l<=u&&(s=l)}if(o=a[s]||e.target,o!==t){i(e,`currentTarget`,{configurable:!0,get(){return o||n}});var d=U,f=K;G(null),q(null);try{for(var p,m=[];o!==null;){var h=o.assignedSlot||o.parentNode||o.host||null;try{var g=o[tr]?.[r];g!=null&&(!o.disabled||e.target===o)&&g.call(o,e)}catch(e){p?m.push(e):p=e}if(e.cancelBubble||h===t||h===null)break;o=h}if(p){for(let e of m)queueMicrotask(()=>{throw e});throw p}}finally{e[tr]=t,delete e.currentTarget,G(d),q(f)}}}var sr=globalThis?.window?.trustedTypes&&globalThis.window.trustedTypes.createPolicy(`svelte-trusted-html`,{createHTML:e=>e});function cr(e){return sr?.createHTML(e)??e}function lr(e){var t=on(`template`);return t.innerHTML=cr(e.replaceAll(`<!>`,`<!---->`)),t.content}function ur(e,t){var n=K;n.nodes===null&&(n.nodes={start:e,end:t,a:null,t:null})}function dr(e,t){var n=(t&1)!=0,r=(t&2)!=0,i,a=!e.startsWith(`<!>`);return()=>{if(C)return ur(w,null),w;i===void 0&&(i=lr(a?e:`<!>`+e),n||(i=nn(i)));var t=r||Qt?document.importNode(i,!0):i.cloneNode(!0);if(n){var o=nn(t),s=t.lastChild;ur(o,s)}else ur(t,t);return t}}function fr(e,t){if(C){var n=K;(!(n.f&32768)||n.nodes.end===null)&&(n.nodes.end=w),De();return}e!==null&&e.before(t)}function pr(e,t){var n=t==null?``:typeof t==`object`?`${t}`:t;n!==(e.__t??=e.nodeValue)&&(e.__t=n,e.nodeValue=`${n}`)}function mr(e,t){return gr(e,t)}var hr=new Map;function gr(e,{target:t,anchor:n,props:i={},events:a,context:o,intro:s=!0,transformError:c}){tn();var l=void 0,u=gn(()=>{var s=n??t.appendChild(I());Dt(s,{pending:()=>{}},t=>{Be({});var n=D;if(o&&(n.c=o),a&&(i.$$events=a),C&&ur(t,null),l=e(t,i)||{},C&&(K.nodes.end=w,w===null||w.nodeType!==8||w.data!==`]`))throw we(),Se;Ve()},c);var u=new Set,d=e=>{for(var n=0;n<e.length;n++){var r=e[n];if(!u.has(r)){u.add(r);var i=er(r);for(let e of[t,document]){var a=hr.get(e);a===void 0&&(a=new Map,hr.set(e,a));var o=a.get(r);o===void 0?(e.addEventListener(r,or,{passive:i}),a.set(r,1)):a.set(r,o+1)}}}};return d(r(nr)),rr.add(d),()=>{for(var e of u)for(let n of[t,document]){var r=hr.get(n),i=r.get(e);--i==0?(n.removeEventListener(e,or),r.delete(e),r.size===0&&hr.delete(n)):r.set(e,i)}rr.delete(d),s!==n&&s.parentNode?.removeChild(s)}});return _r.set(l,u),l}var _r=new WeakMap,vr=class{anchor;#e=new Map;#t=new Map;#n=new Map;#r=new Set;#i=!0;constructor(e,t=!0){this.anchor=e,this.#i=t}#a=e=>{if(this.#e.has(e)){var t=this.#e.get(e),n=this.#t.get(t);if(n)On(n),this.#r.delete(t);else{var r=this.#n.get(t);r&&(this.#t.set(t,r.effect),this.#n.delete(t),r.fragment.lastChild.remove(),this.anchor.before(r.fragment),n=r.effect)}for(let[t,n]of this.#e){if(this.#e.delete(t),t===e)break;let r=this.#n.get(n);r&&(H(r.effect),this.#n.delete(n))}for(let[e,r]of this.#t){if(e===t||this.#r.has(e))continue;let i=()=>{if(Array.from(this.#e.values()).includes(e)){var t=document.createDocumentFragment();An(r,t),t.append(I()),this.#n.set(e,{effect:r,fragment:t})}else H(r);this.#r.delete(e),this.#t.delete(e)};this.#i||!n?(this.#r.add(e),En(r,i,!1)):i()}}};#o=e=>{this.#e.delete(e);let t=Array.from(this.#e.values());for(let[e,n]of this.#n)t.includes(e)||(H(n.effect),this.#n.delete(e))};ensure(e,t){var n=A,r=an();if(t&&!this.#t.has(e)&&!this.#n.has(e))if(r){var i=document.createDocumentFragment(),a=I();i.append(a),this.#n.set(e,{effect:V(()=>t(a)),fragment:i})}else this.#t.set(e,V(()=>t(this.anchor)));if(this.#e.set(n,e),r){for(let[t,r]of this.#t)t===e?n.unskip_effect(r):n.skip_effect(r);for(let[t,r]of this.#n)t===e?n.unskip_effect(r.effect):n.skip_effect(r.effect);n.oncommit(this.#a),n.ondiscard(this.#o)}else C&&(this.anchor=w),this.#a(n)}};function yr(e,t,n=!1){var r;C&&(r=w,De());var i=new vr(e),a=n?ie:0;function o(e,t){if(C){var n=Ae(r);if(e!==parseInt(n.substring(1))){var a=ke();T(a),i.anchor=a,Ee(!1),i.ensure(e,t),Ee(!0);return}}i.ensure(e,t)}bn(()=>{var e=!1;t((t,n=0)=>{e=!0,o(n,t)}),e||o(-1,null)},a)}var br=Symbol(`is custom element`),xr=Symbol(`is html`),Sr=ue?`link`:`LINK`;function Cr(e,t,n,r){var i=wr(e);C&&(i[t]=e.getAttribute(t),t===`src`||t===`srcset`||t===`href`&&e.nodeName===Sr)||i[t]!==(i[t]=n)&&(t===`loading`&&(e[le]=n),n==null?e.removeAttribute(t):typeof n!=`string`&&Er(e).includes(t)?e[t]=n:e.setAttribute(t,n))}function wr(e){return e.__attributes??={[br]:e.nodeName.includes(`-`),[xr]:e.namespaceURI===Ce}}var Tr=new Map;function Er(e){var t=e.getAttribute(`is`)||e.nodeName,n=Tr.get(t);if(n)return n;Tr.set(t,n=[]);for(var r,i=e,a=Element.prototype;a!==i;){for(var s in r=o(i),r)r[s].set&&n.push(s);i=l(i)}return n}function Dr(e=!1){let t=D,n=t.l.u;if(!n)return;let r=()=>Zn(t.s);if(e){let e=0,n={},i=Nt(()=>{let r=!1,i=t.s;for(let e in i)i[e]!==n[e]&&(n[e]=i[e],r=!0);return r&&e++,e});r=()=>Q(i)}n.b.length&&hn(()=>{Or(t,r),p(n.b)}),pn(()=>{let e=Xn(()=>n.m.map(f));return()=>{for(let t of e)typeof t==`function`&&t()}}),n.a.length&&pn(()=>{Or(t,r),p(n.a)})}function Or(e,t){if(e.l.s)for(let t of e.l.s)Q(t);t()}function kr(e){D===null&&de(`onMount`),Fe&&D.l!==null?Ar(D).m.push(e):pn(()=>{let t=Xn(e);if(typeof t==`function`)return t})}function Ar(e){var t=e.l;return t.u??={a:[],b:[],m:[]}}typeof window<`u`&&((window.__svelte??={}).v??=new Set).add(`5`),Ie();var jr=dr(`<strong>cc</strong> <br/>`,1),Mr=dr(`<strong>bcc</strong> <br/>`,1),Nr=dr(`<strong>subject</strong> <br/>`,1),Pr=dr(`<strong>body</strong> <br/>`,1),Fr=dr(`<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 Ir(e,t){Be(t,!0);let n=()=>ot(s,`$selectedMailto`,r),[r,i]=ct(),a=`type-url`,o=`type-data`,s=Re(`selectedMailto`),c=``,l=P(``),u=P(``),d=P(``),f=P(``),p=P(``),m=P(``),h=P(!1);function g(){let e=new URL(n().href),{searchParams:t}=e;F(l,e.pathname,!0),F(u,t.get(`cc`),!0),F(d,t.get(`bcc`),!0),F(f,t.get(`subject`),!0),F(p,t.get(`body`),!0)}function _(){let{dataset:e}=n();F(l,e.address&&e.domain?`${e.address}@${e.domain}`:``,!0),F(u,e.ccAddress&&e.ccDomain?`${e.ccAddress}@${e.ccDomain}`:``,!0),F(d,e.bccAddress&&e.bccDomain?`${e.bccAddress}@${e.bccDomain}`:``,!0),F(f,e.subject,!0),F(p,e.body,!0)}function ee(){switch(c){case a:return n().href;case o:let e=new URLSearchParams;Q(u)&&e.set(`cc`,Q(u)),Q(d)&&e.set(`bcc`,Q(d)),Q(f)&&e.set(`subject`,Q(f)),Q(p)&&e.set(`body`,Q(p));let t=new URL(`mailto:${Q(l)}`);return t.search=e.toString(),t.toString();default:return console.error(`Invalid mailto type: ${c}`),``}}function te(e){e.preventDefault();let t=`https://mail.google.com/mail/?extsrc=mailto&url=`+encodeURIComponent(Q(m));window.open(t,`_blank`,`noopener, noreferrer`),v()}function ne(e){e.preventDefault();let t=new URLSearchParams;t.set(`path`,`/mail/action/compose`),Q(l)&&t.set(`to`,Q(l)),Q(f)&&t.set(`subject`,Q(f)),Q(p)&&t.set(`body`,Q(p));let n=new URL(`https://outlook.live.com/owa/`);n.search=t.toString(),window.open(n.toString(),`_blank`,`noopener, noreferrer`),v()}function re(e){e.preventDefault();let t=new URLSearchParams;Q(l)&&t.set(`to`,Q(l)),Q(f)&&t.set(`subject`,Q(f)),Q(p)&&t.set(`body`,Q(p));let n=new URL(`https://compose.mail.yahoo.com`);n.search=t.toString(),window.open(n.toString(),`_blank`,`noopener, noreferrer`),v()}async function ie(e){e.preventDefault();try{await navigator.clipboard.writeText(Q(l)),F(h,!0),setTimeout(v,1500)}catch(e){console.error(`Unable to copy to clipboard.`,e)}}function v(e=null){e&&e.currentTarget!==e.target||st(s,null)}kr(()=>{n().href.startsWith(`mailto:`)?(c=a,g()):(c=o,_()),F(m,ee(),!0)});var y=Fr(),b=R(y),ae=R(b),oe=R(ae,!0);E(ae);var se=z(ae,2),ce=R(se),le=R(ce),x=e=>{var t=jr(),n=z(rn(t));Oe(),yn(()=>pr(n,` ${Q(u)??``}`)),fr(e,t)};yr(le,e=>{Q(u)&&e(x)});var ue=z(le,2),de=e=>{var t=Mr(),n=z(rn(t));Oe(),yn(()=>pr(n,` ${Q(d)??``}`)),fr(e,t)};yr(ue,e=>{Q(d)&&e(de)});var fe=z(ue,2),pe=e=>{var t=Nr(),n=z(rn(t));Oe(),yn(()=>pr(n,` ${Q(f)??``}`)),fr(e,t)};yr(fe,e=>{Q(f)&&e(pe)});var me=z(fe,2),he=e=>{var t=Pr(),n=z(rn(t));Oe(),yn(()=>pr(n,` ${Q(p)??``}`)),fr(e,t)};yr(me,e=>{Q(p)&&e(he)}),E(ce),E(se);var ge=z(se,2),_e=R(ge),ve=z(_e,2),ye=z(ve,2),be=z(ye,2),xe=z(be,2),Se=R(xe),S=R(Se,!0);E(Se),E(xe),E(ge),Oe(2),E(b),E(y),yn(()=>{pr(oe,Q(l)),Cr(be,`href`,Q(m)),pr(S,Q(h)?`copied`:`copy`)}),$(`click`,y,v),$(`click`,_e,te),$(`click`,ve,ne),$(`click`,ye,re),$(`click`,xe,ie),fr(e,y),Ve(),i()}ir([`click`]);var Lr=dr(`<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 Rr(e,t){Be(t,!0);let n=()=>ot(o,`$selectedCallto`,r),[r,i]=ct(),a=/^(tel:)|^(callto:)/,o=Re(`selectedCallto`),s=P(``),c=P(!1);function l(){F(s,n().href.replace(a,``),!0)}function u(){let{dataset:e}=n();F(s,e.tel,!0)}function d(e){e.preventDefault();let t=`https://wa.me/${Q(s).replaceAll(/\D/g,``).replace(/^0+/,``)}`;window.open(t,`_blank`,`noopener, noreferrer`),m()}function f(e){e.preventDefault();let t=`skype:${encodeURIComponent(Q(s))}`;window.open(t,`_blank`,`noopener, noreferrer`),m()}async function p(e){e.preventDefault();try{await navigator.clipboard.writeText(Q(s)),F(c,!0),setTimeout(m,1500)}catch(e){console.error(`Unable to copy to clipboard.`,e)}}function m(e=null){e&&e.currentTarget!==e.target||st(o,null)}kr(()=>{a.test(n().href)?l():u()});var h=Lr(),g=R(h),_=R(g),ee=R(_,!0);E(_);var te=z(_,2),ne=R(te),re=z(ne,2),ie=z(re,2),v=z(ie,2),y=z(v,2),b=R(y),ae=R(b,!0);E(b),E(y),E(te),Oe(2),E(g),E(h),yn(()=>{pr(ee,Q(s)),Cr(ie,`href`,`tel:${Q(s)}`),Cr(v,`href`,`sms:${Q(s)}`),pr(ae,Q(c)?`copied`:`copy`)}),$(`click`,h,m),$(`click`,ne,d),$(`click`,re,f),$(`click`,y,p),fr(e,h),Ve(),i()}ir([`click`]);var zr=dr(`<!> <!>`,1);function Br(e,t){Be(t,!1);let n=()=>ot(o,`$selectedMailto`,i),r=()=>ot(s,`$selectedCallto`,i),[i,a]=ct(),o=nt(null);ze(`selectedMailto`,o);let s=nt(null);ze(`selectedCallto`,s),kr(()=>{let e=document.querySelectorAll(`a[href^="mailto:"]:not(.no-maildo), a[href="#maildo"][data-address], a.maildo[data-address]`),t=document.querySelectorAll(`a[href^="tel:"]:not(.no-maildo), a[href^="callto:"]:not(.no-maildo), a[href="#maildo"][data-tel], a.maildo[data-tel]`);e.forEach(e=>{e.addEventListener(`click`,t=>{t.preventDefault(),st(o,e)})}),t.forEach(e=>{e.addEventListener(`click`,t=>{t.preventDefault(),st(s,e)})})}),Dr();var c=zr(),l=rn(c),u=e=>{Ir(e,{})};yr(l,e=>{n()&&e(u)});var d=z(l,2),f=e=>{Rr(e,{})};yr(d,e=>{r()&&e(f)}),fr(e,c),Ve(),a()}var Vr=`maildo-app`;function Hr(){let e=document.getElementById(Vr);if(!e)e=document.createElement(`slot`),e.id=Vr,document.body.appendChild(e);else if(e.childElementCount>0){console.warn(`App target already exists`);return}mr(Br,{target:e})}Hr();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "maildo",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.13",
|
|
4
4
|
"description": "Mailto links extended.",
|
|
5
5
|
"keywords": [],
|
|
6
6
|
"author": "Sammy-T",
|
|
@@ -16,9 +16,9 @@
|
|
|
16
16
|
"dist/**.css"
|
|
17
17
|
],
|
|
18
18
|
"devDependencies": {
|
|
19
|
-
"@sveltejs/vite-plugin-svelte": "^
|
|
20
|
-
"svelte": "^5.53.
|
|
21
|
-
"vite": "^
|
|
19
|
+
"@sveltejs/vite-plugin-svelte": "^7.0.0",
|
|
20
|
+
"svelte": "^5.53.6",
|
|
21
|
+
"vite": "^8.0.3"
|
|
22
22
|
},
|
|
23
23
|
"scripts": {
|
|
24
24
|
"dev": "vite",
|