diff --git a/build/darwin/Info.plist b/build/darwin/Info.plist index 269ca9a..11b15e7 100644 --- a/build/darwin/Info.plist +++ b/build/darwin/Info.plist @@ -6,9 +6,9 @@ CFBundleNameRiftShare CFBundleExecutableRiftShare CFBundleIdentifierapp.riftshare - CFBundleVersion0.1.7 + CFBundleVersion0.1.8 CFBundleGetInfoStringRiftshare - Easy, Secure, Free file sharing - CFBundleShortVersionString0.1.7 + CFBundleShortVersionString0.1.8 CFBundleIconFileiconfile.icns LSMinimumSystemVersion10.13.0 LSApplicationCategoryTypepublic.app-category.utilities diff --git a/build/linux/app.riftshare.RiftShare.desktop b/build/linux/app.riftshare.RiftShare.desktop index 456d003..4009ff7 100644 --- a/build/linux/app.riftshare.RiftShare.desktop +++ b/build/linux/app.riftshare.RiftShare.desktop @@ -1,5 +1,5 @@ [Desktop Entry] -Version=0.1.7 +Version=0.1.8 Name=RiftShare Terminal=false Exec= diff --git a/build/linux/app.riftshare.RiftShare.appdata.xml b/build/linux/app.riftshare.RiftShare.metainfo.xml similarity index 92% rename from build/linux/app.riftshare.RiftShare.appdata.xml rename to build/linux/app.riftshare.RiftShare.metainfo.xml index e7abbba..e4e1998 100644 --- a/build/linux/app.riftshare.RiftShare.appdata.xml +++ b/build/linux/app.riftshare.RiftShare.metainfo.xml @@ -44,6 +44,11 @@ + + +

Fix for dark mode and app sometimes not launching. Updates to appstream metadata.

+
+

Initial Flatpak Release

diff --git a/build/windows/RiftShare.exe.manifest b/build/windows/RiftShare.exe.manifest index 3e53cf7..ac5933c 100644 --- a/build/windows/RiftShare.exe.manifest +++ b/build/windows/RiftShare.exe.manifest @@ -1,6 +1,6 @@ - + diff --git a/build/windows/appxmanifest.xml b/build/windows/appxmanifest.xml index 015d76c..56fb52c 100644 --- a/build/windows/appxmanifest.xml +++ b/build/windows/appxmanifest.xml @@ -3,7 +3,7 @@ xmlns="http://schemas.microsoft.com/appx/manifest/foundation/windows10" xmlns:uap="http://schemas.microsoft.com/appx/manifest/uap/windows10" xmlns:rescap="http://schemas.microsoft.com/appx/manifest/foundation/windows10/restrictedcapabilities"> - + RiftShare Aman Chhabra diff --git a/frontend/dist/bundle.js b/frontend/dist/bundle.js index 7460754..e79fc1a 100644 --- a/frontend/dist/bundle.js +++ b/frontend/dist/bundle.js @@ -1,2 +1,2 @@ -var app=function(){"use strict";function t(){}const e=t=>t;function o(t){return t()}function r(){return Object.create(null)}function n(t){t.forEach(o)}function i(t){return"function"==typeof t}function a(t,e){return t!=t?e==e:t!==e||t&&"object"==typeof t||"function"==typeof t}function s(t,e,o,r){return t[1]&&r?function(t,e){for(const o in e)t[o]=e[o];return t}(o.ctx.slice(),t[1](r(e))):o.ctx}function c(t,e,o,r,n,i,a){const c=function(t,e,o,r){if(t[2]&&r){const n=t[2](r(o));if(void 0===e.dirty)return n;if("object"==typeof n){const t=[],o=Math.max(e.dirty.length,n.length);for(let r=0;rwindow.performance.now():()=>Date.now(),p=l?t=>requestAnimationFrame(t):t;const g=new Set;function u(t){g.forEach((e=>{e.c(t)||(g.delete(e),e.f())})),0!==g.size&&p(u)}function b(t){let e;return 0===g.size&&p(u),{promise:new Promise((o=>{g.add(e={c:t,f:o})})),abort(){g.delete(e)}}}let w=!1;function m(t,e,o,r){for(;t>1);o(n)<=r?t=n+1:e=n}return t}function h(t,e){w?(!function(t){if(t.hydrate_init)return;t.hydrate_init=!0;const e=t.childNodes,o=new Int32Array(e.length+1),r=new Int32Array(e.length);o[0]=-1;let n=0;for(let t=0;te[o[t]].claim_order),e[t].claim_order)-1;r[t]=o[i]+1;const a=i+1;o[a]=t,n=Math.max(a,n)}const i=[],a=[];let s=e.length-1;for(let t=o[n]+1;0!=t;t=r[t-1]){for(i.push(e[t-1]);s>=t;s--)a.push(e[s]);s--}for(;s>=0;s--)a.push(e[s]);i.reverse(),a.sort(((t,e)=>t.claim_order-e.claim_order));for(let e=0,o=0;e=i[o].claim_order;)o++;const r=ot.removeEventListener(e,o,r)}function _(t,e,o){null==o?t.removeAttribute(e):t.getAttribute(e)!==o&&t.setAttribute(e,o)}function z(t,e){e=""+e,t.wholeText!==e&&(t.data=e)}function E(t,e){t.value=null==e?"":e}const j=new Set;let S,A=0;function O(t,e,o,r,n,i,a,s=0){const c=16.666/r;let l="{\n";for(let t=0;t<=1;t+=c){const r=e+(o-e)*i(t);l+=100*t+`%{${a(r,1-r)}}\n`}const d=l+`100% {${a(o,1-o)}}\n}`,p=`__svelte_${function(t){let e=5381,o=t.length;for(;o--;)e=(e<<5)-e^t.charCodeAt(o);return e>>>0}(d)}_${s}`,g=t.ownerDocument;j.add(g);const u=g.__svelte_stylesheet||(g.__svelte_stylesheet=g.head.appendChild(y("style")).sheet),b=g.__svelte_rules||(g.__svelte_rules={});b[p]||(b[p]=!0,u.insertRule(`@keyframes ${p} ${d}`,u.cssRules.length));const w=t.style.animation||"";return t.style.animation=`${w?`${w}, `:""}${p} ${r}ms linear ${n}ms 1 both`,A+=1,p}function F(t,e){const o=(t.style.animation||"").split(", "),r=o.filter(e?t=>t.indexOf(e)<0:t=>-1===t.indexOf("__svelte")),n=o.length-r.length;n&&(t.style.animation=r.join(", "),A-=n,A||p((()=>{A||(j.forEach((t=>{const e=t.__svelte_stylesheet;let o=e.cssRules.length;for(;o--;)e.deleteRule(o);t.__svelte_rules={}})),j.clear())})))}function U(t){S=t}function B(t){(function(){if(!S)throw new Error("Function called outside component initialization");return S})().$$.on_mount.push(t)}const N=[],R=[],M=[],L=[],T=Promise.resolve();let D=!1;function I(t){M.push(t)}let P=!1;const G=new Set;function q(){if(!P){P=!0;do{for(let t=0;t{W=null}))),W}function V(t,e,o){t.dispatchEvent(function(t,e){const o=document.createEvent("CustomEvent");return o.initCustomEvent(t,!1,!1,e),o}(`${e?"intro":"outro"}${o}`))}const Q=new Set;let K;function X(){K={r:0,c:[],p:K}}function Y(){K.r||n(K.c),K=K.p}function Z(t,e){t&&t.i&&(Q.delete(t),t.i(e))}function tt(t,e,o,r){if(t&&t.o){if(Q.has(t))return;Q.add(t),K.c.push((()=>{Q.delete(t),r&&(o&&t.d(1),r())})),t.o(e)}}const et={duration:0};function ot(o,r,n){let a,s,c=r(o,n),l=!1,p=0;function g(){a&&F(o,a)}function u(){const{delay:r=0,duration:n=300,easing:i=e,tick:u=t,css:w}=c||et;w&&(a=O(o,0,1,n,r,i,w,p++)),u(0,1);const m=d()+r,h=m+n;s&&s.abort(),l=!0,I((()=>V(o,!0,"start"))),s=b((t=>{if(l){if(t>=h)return u(1,0),V(o,!0,"end"),g(),l=!1;if(t>=m){const e=i((t-m)/n);u(e,1-e)}}return l}))}let w=!1;return{start(){w||(F(o),i(c)?(c=c(),J().then(u)):u())},invalidate(){w=!1},end(){l&&(g(),l=!1)}}}function rt(o,r,a,s){let c=r(o,a),l=s?0:1,p=null,g=null,u=null;function w(){u&&F(o,u)}function m(t,e){const o=t.b-l;return e*=Math.abs(o),{a:l,b:t.b,d:o,duration:e,start:t.start,end:t.start+e,group:t.group}}function h(r){const{delay:i=0,duration:a=300,easing:s=e,tick:h=t,css:f}=c||et,x={start:d()+i,b:r};r||(x.group=K,K.r+=1),p||g?g=x:(f&&(w(),u=O(o,l,r,a,i,s,f)),r&&h(0,1),p=m(x,a),I((()=>V(o,r,"start"))),b((t=>{if(g&&t>g.start&&(p=m(g,a),g=null,V(o,p.b,"start"),f&&(w(),u=O(o,l,p.b,p.duration,0,s,c.css))),p)if(t>=p.end)h(l=p.b,1-l),V(o,p.b,"end"),g||(p.b?w():--p.group.r||n(p.group.c)),p=null;else if(t>=p.start){const e=t-p.start;l=p.a+p.d*s(e/p.duration),h(l,1-l)}return!(!p&&!g)})))}return{run(t){i(c)?J().then((()=>{c=c(),h(t)})):h(t)},end(){w(),p=g=null}}}function nt(t){t&&t.c()}function it(t,e,r,a){const{fragment:s,on_mount:c,on_destroy:l,after_update:d}=t.$$;s&&s.m(e,r),a||I((()=>{const e=c.map(o).filter(i);l?l.push(...e):n(e),t.$$.on_mount=[]})),d.forEach(I)}function at(t,e){const o=t.$$;null!==o.fragment&&(n(o.on_destroy),o.fragment&&o.fragment.d(e),o.on_destroy=o.fragment=null,o.ctx=[])}function st(t,e){-1===t.$$.dirty[0]&&(N.push(t),D||(D=!0,T.then(q)),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<{const n=r.length?r[0]:o;return p.ctx&&s(p.ctx[t],p.ctx[t]=n)&&(!p.skip_bound&&p.bound[t]&&p.bound[t](n),g&&st(e,t)),o})):[],p.update(),g=!0,n(p.before_update),p.fragment=!!a&&a(p.ctx),o.target){if(o.hydrate){w=!0;const t=function(t){return Array.from(t.childNodes)}(o.target);p.fragment&&p.fragment.l(t),t.forEach(x)}else p.fragment&&p.fragment.c();o.intro&&Z(e.$$.fragment),it(e,o.target,o.anchor,o.customElement),w=!1,q()}U(d)}class lt{$destroy(){at(this,1),this.$destroy=t}$on(t,e){const o=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return o.push(e),()=>{const t=o.indexOf(e);-1!==t&&o.splice(t,1)}}$set(t){var e;this.$$set&&(e=t,0!==Object.keys(e).length)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}function dt(t){const e=t-1;return e*e*e+1}function pt(t,{delay:e=0,duration:o=400,easing:r=dt}={}){const n=getComputedStyle(t),i=+n.opacity,a=parseFloat(n.height),s=parseFloat(n.paddingTop),c=parseFloat(n.paddingBottom),l=parseFloat(n.marginTop),d=parseFloat(n.marginBottom),p=parseFloat(n.borderTopWidth),g=parseFloat(n.borderBottomWidth);return{delay:e,duration:o,easing:r,css:t=>`overflow: hidden;opacity: ${Math.min(20*t,1)*i};height: ${t*a}px;padding-top: ${t*s}px;padding-bottom: ${t*c}px;margin-top: ${t*l}px;margin-bottom: ${t*d}px;border-top-width: ${t*p}px;border-bottom-width: ${t*g}px;`}}function gt(t){window.go.main.App.OpenFile(t)}function ut(){window.go.main.App.CancelWormholeRequest()}function bt(){return window.go.main.App.GetUserPrefs()}function wt(t){let e,o,r,n,i,a,l,d,p,g,u,b,w,m,v,C;const E=t[3].default,j=function(t,e,o,r){if(t){const n=s(t,e,o,r);return t[0](n)}}(E,t,t[2],null);return{c(){e=y("div"),o=y("div"),r=y("div"),n=y("span"),i=k(t[0]),a=$(),l=y("span"),d=k(t[1]),p=k("%"),g=$(),u=y("div"),b=y("div"),m=$(),j&&j.c(),_(n,"class","text-base text-gray-100 font-medium"),_(l,"class","text-sm font-medium text-gray-100"),_(r,"class","mb-1 flex justify-between"),_(b,"class","bg-green-500 h-4 rounded-full animate-pulse"),_(b,"style",w="width: "+t[1].toString()+"%"),_(u,"class","w-full bg-green-900 rounded-full h-4 shadow-inner"),_(o,"class","progress-inner"),_(e,"class","progress-outer")},m(t,s){f(t,e,s),h(e,o),h(o,r),h(r,n),h(n,i),h(r,a),h(r,l),h(l,d),h(l,p),h(o,g),h(o,u),h(u,b),h(o,m),j&&j.m(o,null),C=!0},p(t,[e]){(!C||1&e)&&z(i,t[0]),(!C||2&e)&&z(d,t[1]),(!C||2&e&&w!==(w="width: "+t[1].toString()+"%"))&&_(b,"style",w),j&&j.p&&(!C||4&e)&&c(j,E,t,t[2],C?e:-1,null,null)},i(t){C||(Z(j,t),I((()=>{v||(v=rt(e,pt,{},!0)),v.run(1)})),C=!0)},o(t){tt(j,t),v||(v=rt(e,pt,{},!1)),v.run(0),C=!1},d(t){t&&x(e),j&&j.d(t),t&&v&&v.end()}}}function mt(t,e,o){let{$$slots:r={},$$scope:n}=e,{status:i=waiting}=e,{percent:a=0}=e;return t.$$set=t=>{"status"in t&&o(0,i=t.status),"percent"in t&&o(1,a=t.percent),"$$scope"in t&&o(2,n=t.$$scope)},[i,a,n,r]}class ht extends lt{constructor(t){super(),ct(this,t,mt,wt,a,{status:0,percent:1})}}function ft(t,e,o){const r=t.slice();return r[11]=e[o],r[13]=o,r}function xt(t){let e,o,r,i,a,s,c,l,d,p,g,u;return{c(){e=y("div"),o=y("div"),r=y("span"),r.textContent="Send Files",i=$(),a=y("button"),s=$(),c=y("div"),l=y("span"),l.textContent="Send Directory",d=$(),p=y("button"),_(r,"class","tooltip"),_(a,"class","file-select-icon"),a.disabled=t[4],_(o,"class","has-tooltip"),_(l,"class","tooltip"),_(p,"class","folder-select-icon"),p.disabled=t[4],_(c,"class","has-tooltip"),_(e,"class","flex flex-row items-center content-center justify-around place-items-center h-full")},m(n,b){f(n,e,b),h(e,o),h(o,r),h(o,i),h(o,a),h(e,s),h(e,c),h(c,l),h(c,d),h(c,p),g||(u=[C(a,"click",t[7]),C(p,"click",t[6])],g=!0)},p(t,e){16&e&&(a.disabled=t[4]),16&e&&(p.disabled=t[4])},d(t){t&&x(e),g=!1,n(u)}}}function vt(t){let e,o=t[5],r=[];for(let e=0;e{i=ot(o,pt,{duration:200}),i.start()})),l||I((()=>{l=ot(s,pt,{duration:200}),l.start()}))},o:t,d(t){t&&x(o),t&&x(a),t&&x(s),d=!1,n(p)}}}function _t(t){let e,o;return e=new ht({props:{percent:t[3],status:t[2],$$slots:{default:[Et]},$$scope:{ctx:t}}}),{c(){nt(e.$$.fragment)},m(t,r){it(e,t,r),o=!0},p(t,o){const r={};8&o&&(r.percent=t[3]),4&o&&(r.status=t[2]),16386&o&&(r.$$scope={dirty:o,ctx:t}),e.$set(r)},i(t){o||(Z(e.$$.fragment,t),o=!0)},o(t){tt(e.$$.fragment,t),o=!1},d(t){at(e,t)}}}function zt(t){let e,o,r,n,i,a,s,c,l,d,p;return{c(){e=y("div"),o=y("label"),o.textContent="Send Code",r=$(),n=y("div"),i=y("input"),a=$(),s=y("button"),s.innerHTML='
',_(o,"for","sendCode"),_(o,"class","send-input-label"),_(i,"id","sendCode"),i.readOnly=!0,_(i,"type","text"),_(i,"placeholder","Send code will appear"),i.value=t[1],_(i,"class","send-input mt-1"),_(s,"class","copy-button mt-1 ml-1"),_(n,"class","flex flex-row"),_(e,"class","mx-auto mt-2")},m(t,c){f(t,e,c),h(e,o),h(e,r),h(e,n),h(n,i),h(n,a),h(n,s),l=!0,d||(p=C(s,"click",St),d=!0)},p(t,e){(!l||2&e&&i.value!==t[1])&&(i.value=t[1])},i(t){l||(I((()=>{c||(c=rt(e,pt,{},!0)),c.run(1)})),l=!0)},o(t){c||(c=rt(e,pt,{},!1)),c.run(0),l=!1},d(t){t&&x(e),t&&c&&c.end(),d=!1,p()}}}function Et(t){let e,o,r,n,i,a,s=t[1]&&zt(t);return{c(){e=y("div"),o=y("button"),o.textContent="Cancel",r=$(),s&&s.c(),_(o,"class","my-2 mx-auto cancel-button"),_(e,"class","container grid")},m(c,l){f(c,e,l),h(e,o),h(e,r),s&&s.m(e,null),n=!0,i||(a=C(o,"click",t[9]),i=!0)},p(t,o){t[1]?s?(s.p(t,o),2&o&&Z(s,1)):(s=zt(t),s.c(),Z(s,1),s.m(e,null)):s&&(X(),tt(s,1,1,(()=>{s=null})),Y())},i(t){n||(Z(s),n=!0)},o(t){tt(s),n=!1},d(t){t&&x(e),s&&s.d(),i=!1,a()}}}function jt(t){let e,o,r,n,i,a;function s(t,e){return t[0].length>0?vt:xt}let c=s(t),l=c(t),d=t[0].length>0&&Ct(t),p=t[4]&&_t(t);return{c(){e=y("div"),o=y("div"),l.c(),r=$(),n=y("div"),d&&d.c(),i=$(),p&&p.c(),_(o,"class","border-2 border-green-300 rounded-md shadow-md w-72 h-56 p-2 mx-auto cursor-fix send-icon-container"),_(n,"class","p-2 mx-auto"),_(e,"class","flex flex-col justify-items-center content-center m-2")},m(t,s){f(t,e,s),h(e,o),l.m(o,null),h(e,r),h(e,n),d&&d.m(n,null),h(e,i),p&&p.m(e,null),a=!0},p(t,[r]){c===(c=s(t))&&l?l.p(t,r):(l.d(1),l=c(t),l&&(l.c(),l.m(o,null))),t[0].length>0?d?(d.p(t,r),1&r&&Z(d,1)):(d=Ct(t),d.c(),Z(d,1),d.m(n,null)):d&&(d.d(1),d=null),t[4]?p?(p.p(t,r),16&r&&Z(p,1)):(p=_t(t),p.c(),Z(p,1),p.m(e,null)):p&&(X(),tt(p,1,1,(()=>{p=null})),Y())},i(t){a||(Z(d),Z(p),a=!0)},o(t){tt(p),a=!1},d(t){t&&x(e),l.d(),d&&d.d(),p&&p.d()}}}function St(){var t=document.getElementById("sendCode");t.select(),t.setSelectionRange(0,99999),navigator.clipboard.writeText(t.value)}function At(t,e,o){let r;String.prototype.trimEllip=function(t){return this.length>t?this.substring(0,t)+"...":this};let n="",i="waiting",a=0,s=[],c=!1;return window.runtime.EventsOn("send:started",(function(t){o(1,n=t)})),window.runtime.EventsOn("send:updated",(function(t){o(3,a=t),"transferring"!=i&&o(2,i="transferring")})),window.runtime.EventsOn("send:status",(function(t){o(2,i=t),"completed"!=t&&"failed"!=t||setTimeout((()=>{o(4,c=!1),o(1,n=""),o(3,a=0)}),500)})),B((()=>{window.go.main.App.GetSelectedFiles().then((t=>{t&&t.length>0&&o(0,s=t)}))})),t.$$.update=()=>{1&t.$$.dirty&&o(5,r=s.map((t=>t.split("\\").pop().split("/").pop().trimEllip(30))))},[s,n,i,a,c,r,function(){window.go.main.App.OpenDirectoryDialog().then((t=>{o(0,s=null!=t?t:[])})).catch((t=>{console.log(t)}))},function(){window.go.main.App.OpenFilesDialog().then((t=>{o(0,s=null!=t?t:[])})).catch((t=>{console.log(t)}))},function(){o(1,n=""),o(2,i="waiting"),o(3,a=0),o(0,s=[]),o(4,c=!1),window.go.main.App.ClearSelectedFiles()},function(){ut(),o(4,c=!1),o(1,n=""),o(2,i="waiting"),o(3,a=0)},function(){window.go.main.App.SelectedFilesSend(),o(4,c=!0)}]}class Ot extends lt{constructor(t){super(),ct(this,t,At,jt,a,{})}}function Ft(t){let e,o,r,n,i,a,s=!t[4]&&Ut(t);return{c(){e=y("div"),o=y("div"),r=$(),n=y("span"),i=k(t[6]),a=$(),s&&s.c(),_(o,"class","icon-lg receive-file-icon"),_(n,"class","text-gray-200"),_(e,"class","flex flex-col justify-center items-center space-y-2 bg-gray-800 rounded-md bg-opacity-60 h-full")},m(t,c){f(t,e,c),h(e,o),h(e,r),h(e,n),h(n,i),h(e,a),s&&s.m(e,null)},p(t,o){64&o&&z(i,t[6]),t[4]?s&&(s.d(1),s=null):s?s.p(t,o):(s=Ut(t),s.c(),s.m(e,null))},d(t){t&&x(e),s&&s.d()}}}function Ut(e){let o,r,i,a,s,c;return{c(){o=y("div"),r=y("button"),r.textContent="Open File",i=$(),a=y("button"),a.textContent="Open Folder",_(r,"class","open-button text-sm"),_(a,"class","open-button text-sm"),_(o,"class","inline-flex space-x-1")},m(t,n){f(t,o,n),h(o,r),h(o,i),h(o,a),s||(c=[C(r,"click",e[8]),C(a,"click",e[9])],s=!0)},p:t,d(t){t&&x(o),s=!1,n(c)}}}function Bt(t){let e,o;return e=new ht({props:{percent:t[3],status:t[2],$$slots:{default:[Nt]},$$scope:{ctx:t}}}),{c(){nt(e.$$.fragment)},m(t,r){it(e,t,r),o=!0},p(t,o){const r={};8&o&&(r.percent=t[3]),4&o&&(r.status=t[2]),4096&o&&(r.$$scope={dirty:o,ctx:t}),e.$set(r)},i(t){o||(Z(e.$$.fragment,t),o=!0)},o(t){tt(e.$$.fragment,t),o=!1},d(t){at(e,t)}}}function Nt(e){let o,r,n,i;return{c(){o=y("div"),r=y("button"),r.textContent="Cancel",_(r,"class","my-2 mx-auto cancel-button"),_(o,"class","container grid")},m(t,a){f(t,o,a),h(o,r),n||(i=C(r,"click",e[10]),n=!0)},p:t,d(t){t&&x(o),n=!1,i()}}}function Rt(t){let e,o,r,i,a,s,c,l,d,p,g,u,b,w,m,v,z=t[1]&&Ft(t),j=t[4]&&Bt(t);return{c(){e=y("div"),o=y("div"),z&&z.c(),r=$(),i=y("div"),a=y("form"),s=y("label"),s.textContent="Receive Code",c=$(),l=y("input"),d=$(),p=y("button"),g=k("Download"),b=$(),j&&j.c(),_(o,"class","border-2 border-green-300 rounded-md shadow-md w-72 h-56 p-2 mx-auto receive-icon-container"),_(s,"for","receiveCode"),_(s,"class","receive-input-label"),_(l,"id","receiveCode"),_(l,"type","text"),_(l,"placeholder","eg. 5-component-button"),_(l,"class","receive-input"),_(p,"class","receive-button"),_(p,"type","submit"),p.disabled=u=!t[5],_(a,"autocomplete","off"),_(i,"class","p-2 mx-auto"),_(e,"class","flex flex-col justify-items-center content-center m-2")},m(n,u){var x;f(n,e,u),h(e,o),z&&z.m(o,null),h(e,r),h(e,i),h(i,a),h(a,s),h(a,c),h(a,l),E(l,t[0]),h(a,d),h(a,p),h(p,g),h(e,b),j&&j.m(e,null),w=!0,m||(v=[C(l,"input",t[11]),C(a,"submit",(x=t[7],function(t){return t.preventDefault(),x.call(this,t)}))],m=!0)},p(t,[r]){t[1]?z?z.p(t,r):(z=Ft(t),z.c(),z.m(o,null)):z&&(z.d(1),z=null),1&r&&l.value!==t[0]&&E(l,t[0]),(!w||32&r&&u!==(u=!t[5]))&&(p.disabled=u),t[4]?j?(j.p(t,r),16&r&&Z(j,1)):(j=Bt(t),j.c(),Z(j,1),j.m(e,null)):j&&(X(),tt(j,1,1,(()=>{j=null})),Y())},i(t){w||(Z(j),w=!0)},o(t){tt(j),w=!1},d(t){t&&x(e),z&&z.d(),j&&j.d(),m=!1,n(v)}}}const Mt=/\d+\-\w+\-\w+/;function Lt(t,e,o){let r,n,i="",a="waiting",s=0,c=!1,l="";return String.prototype.trimEllip=function(t){return this.length>t?this.substring(0,t)+"...":this},window.runtime.EventsOn("receive:updated",(function(t){o(3,s=t)})),window.runtime.EventsOn("receive:started",(function(){o(4,c=!0)})),window.runtime.EventsOn("receive:path",(function(t){o(1,l=t)})),window.runtime.EventsOn("receive:status",(function(t){o(2,a=t),"completed"==t&&setTimeout((()=>{o(4,c=!1),o(3,s=0)}),500)})),B((()=>{window.go.main.App.GetReceivedFile().then((t=>{t&&o(1,l=t)}))})),t.$$.update=()=>{1&t.$$.dirty&&o(5,r=Mt.test(i)),2&t.$$.dirty&&o(6,n=l.split("\\").pop().split("/").pop().trimEllip(24))},[i,l,a,s,c,r,n,function(){var t;t=i,window.go.main.App.ReceiveFile(t)},function(){gt(l)},function(){bt().then((t=>{gt(t.downloadsDirectory)}))},function(){ut(),o(4,c=!1),o(0,i=""),o(2,a="waiting"),o(3,s=0),o(1,l="")},function(){i=this.value,o(0,i)}]}class Tt extends lt{constructor(t){super(),ct(this,t,Lt,Rt,a,{})}}function Dt(t){let e,o,r,n,i;return{c(){e=y("label"),e.textContent="Auto Update Enabled",o=$(),r=y("input"),_(e,"class","text-sm"),_(e,"for","selfUpdate"),_(r,"class","checkbox"),_(r,"type","checkbox"),_(r,"id","selfUpdate"),_(r,"name","selfUpdate"),r.checked=t[3]},m(a,s){f(a,e,s),f(a,o,s),f(a,r,s),n||(i=C(r,"input",t[11]),n=!0)},p(t,e){8&e&&(r.checked=t[3])},d(t){t&&x(e),t&&x(o),t&&x(r),n=!1,i()}}}function It(e){let o;return{c(){o=y("span"),o.textContent="Update from Package Manager",_(o,"class","text-sm")},m(t,e){f(t,o,e)},p:t,d(t){t&&x(o)}}}function Pt(e){let o,r,i,a,s,c,l,d,p,g,u,b,w,m,v,E,j,S,A,O,F,U,B,N,R,M,L,T,D,I,P,G,q,H,W,J,V,Q,K,X,Y,Z;function tt(t,e){return t[4]?It:Dt}let et=tt(e),ot=et(e);return{c(){o=y("div"),r=y("div"),i=y("div"),i.textContent="Downloads Folder",a=$(),s=y("div"),c=y("div"),l=k(e[5]),d=$(),p=y("div"),g=y("button"),g.textContent="Edit",u=$(),b=y("button"),b.textContent="Open",w=$(),m=y("div"),m.textContent="Notifications",v=$(),E=y("div"),j=y("label"),j.textContent="Show Desktop Notifications",S=$(),A=y("input"),O=$(),F=y("div"),F.textContent="Overwrite",U=$(),B=y("div"),N=y("label"),N.textContent="Overwrite Existing Files",R=$(),M=y("input"),L=$(),T=y("div"),T.textContent="Auto Update",D=$(),I=y("div"),ot.c(),P=$(),G=y("div"),q=y("div"),q.textContent="Logs",H=$(),W=y("div"),J=y("div"),V=k(e[6]),Q=$(),K=y("div"),X=y("button"),X.textContent="Open",_(i,"class","text-gray-300 font-bold"),_(c,"class","text-gray-200 text-xs max-w-md"),_(g,"class","settings-button"),_(b,"class","settings-button"),_(p,"class","w-22 inline-flex space-x-1"),_(s,"class","flex flex-row items-center justify-between"),_(r,"class","mb-2"),_(m,"class","text-gray-300 font-bold"),_(j,"class","text-sm"),_(j,"for","notifications"),_(A,"class","checkbox"),_(A,"type","checkbox"),_(A,"id","notifications"),_(A,"name","notifications"),A.checked=e[1],_(E,"class","flex flex-row items-center justify-between mb-2"),_(F,"class","text-gray-300 font-bold"),_(N,"class","text-sm"),_(N,"for","overwrite"),_(M,"class","checkbox"),_(M,"type","checkbox"),_(M,"id","overwrite"),_(M,"name","overwrite"),M.checked=e[2],_(B,"class","flex flex-row items-center justify-between mb-2"),_(T,"class","text-gray-300 font-bold"),_(I,"class","flex flex-row items-center justify-between mb-2"),_(q,"class","text-gray-300 font-bold"),_(J,"class","text-gray-200 text-xs"),_(X,"class","settings-button"),_(W,"class","flex flex-row items-center justify-between"),_(G,"class","mb-1"),_(o,"class","text-gray-200")},m(t,n){f(t,o,n),h(o,r),h(r,i),h(r,a),h(r,s),h(s,c),h(c,l),h(s,d),h(s,p),h(p,g),h(p,u),h(p,b),h(o,w),h(o,m),h(o,v),h(o,E),h(E,j),h(E,S),h(E,A),h(o,O),h(o,F),h(o,U),h(o,B),h(B,N),h(B,R),h(B,M),h(o,L),h(o,T),h(o,D),h(o,I),ot.m(I,null),h(o,P),h(o,G),h(G,q),h(G,H),h(G,W),h(W,J),h(J,V),h(W,Q),h(W,K),h(K,X),Y||(Z=[C(g,"click",e[7]),C(b,"click",e[8]),C(A,"input",e[10]),C(M,"input",e[9]),C(X,"click",e[13])],Y=!0)},p(t,[e]){32&e&&z(l,t[5]),2&e&&(A.checked=t[1]),4&e&&(M.checked=t[2]),et===(et=tt(t))&&ot?ot.p(t,e):(ot.d(1),ot=et(t),ot&&(ot.c(),ot.m(I,null))),64&e&&z(V,t[6])},i:t,o:t,d(t){t&&x(o),ot.d(),Y=!1,n(Z)}}}function Gt(t,e,o){let r,n,i="",a="",s=!1,c=!1,l=!1,d=!1;B((()=>{bt().then((t=>{o(12,i=t.downloadsDirectory),o(1,s=t.notifications),o(2,c=t.overwrite),o(3,l=t.selfUpdate)})),window.go.main.App.GetLogPath().then((t=>{o(0,a=t)})),window.go.main.App.AppInstalledFromPackageManager().then((t=>{o(4,d=t)}))}));return t.$$.update=()=>{4096&t.$$.dirty&&o(5,r=i.replace(/.{50}.\//g,"$&\n")),1&t.$$.dirty&&o(6,n=a.replace(/.{50}.\//g,"$&\n"))},[a,s,c,l,d,r,n,function(){window.go.main.App.SetDownloadsFolder().then((t=>{o(12,i=t)}))},function(){gt(i)},function(){var t;(t=!c,window.go.main.App.SetOverwriteParam(t)).then((t=>{o(2,c=t)}))},function(){var t;(t=!s,window.go.main.App.SetNotificationsParam(t)).then((t=>{o(1,s=t)}))},function(){var t;(t=!l,window.go.main.App.SetSelfUpdateParam(t)).then((t=>{o(3,l=t)}))},i,t=>window.runtime.BrowserOpenURL(a)]}class qt extends lt{constructor(t){super(),ct(this,t,Gt,Pt,a,{})}}function Ht(t,e,o){const r=t.slice();return r[6]=e[o][0],r[7]=e[o][1],r}function Wt(t){let e,o,r,n,i,a,s=t[6]+"";function c(...e){return t[5](t[7],...e)}return{c(){e=y("li"),o=y("button"),r=k(s),n=$(),_(o,"class","text-blue-500")},m(t,s){f(t,e,s),h(e,o),h(o,r),h(e,n),i||(a=C(o,"click",c),i=!0)},p(e,o){t=e},d(t){t&&x(e),i=!1,a()}}}function Jt(e){let o,r,i,a,s,c,l,d,p,g,u,b,w,m,E,j,S,A,O,F,U,B,N,R,M,L=Object.entries(e[1]),T=[];for(let t=0;tLicense

\n

Licensed under the GNU GPL Version 3

',S=$(),A=y("div"),O=y("p"),O.textContent="Attributions",F=$(),U=y("p"),U.textContent="This project leverages the work of other Open Source Software",B=$(),N=y("ul");for(let t=0;t{window.go.main.App.GetCurrentVersion().then((t=>{o(0,r=t)}))}));return[r,{"wailsapp/wails":"https://wails.io","Jackalz/wails-wormhole-gui":"https://github.com/Jacalz/wormhole-gui","psanford/wormhole-william":"https://github.com/psanford/wormhole-william","magic-wormhole":"https://magic-wormhole.readthedocs.io/",svelte:"https://github.com/sveltejs/svelte",tailwindcss:"https://github.com/tailwindlabs/tailwindcss","font awesome":"https://fontawesome.com","klauspost/compress":"https://github.com/klauspost/compress","go-github-selfupdate":"https://github.com/rhysd/go-github-selfupdate"},t=>window.runtime.BrowserOpenURL("https://riftshare.app"),t=>window.runtime.BrowserOpenURL("https://riftshare.app/faq.html"),t=>window.runtime.BrowserOpenURL("https://github.com/achhabra2/riftshare/issues/new/choose"),(t,e)=>window.runtime.BrowserOpenURL(t)]}class Qt extends lt{constructor(t){super(),ct(this,t,Vt,Jt,a,{})}}function Kt(t){let e,o;return e=new Qt({}),{c(){nt(e.$$.fragment)},m(t,r){it(e,t,r),o=!0},i(t){o||(Z(e.$$.fragment,t),o=!0)},o(t){tt(e.$$.fragment,t),o=!1},d(t){at(e,t)}}}function Xt(t){let e,o;return e=new qt({}),{c(){nt(e.$$.fragment)},m(t,r){it(e,t,r),o=!0},i(t){o||(Z(e.$$.fragment,t),o=!0)},o(t){tt(e.$$.fragment,t),o=!1},d(t){at(e,t)}}}function Yt(t){let e,o;return e=new Tt({}),{c(){nt(e.$$.fragment)},m(t,r){it(e,t,r),o=!0},i(t){o||(Z(e.$$.fragment,t),o=!0)},o(t){tt(e.$$.fragment,t),o=!1},d(t){at(e,t)}}}function Zt(t){let e,o;return e=new Ot({}),{c(){nt(e.$$.fragment)},m(t,r){it(e,t,r),o=!0},i(t){o||(Z(e.$$.fragment,t),o=!0)},o(t){tt(e.$$.fragment,t),o=!1},d(t){at(e,t)}}}function te(t){let e,o,r,i,a,s,c,l,d,p,g,u,b,w,m,v,k,z,E,j,S,A,O,F,U,B,N,R,M,L,T,D,I,P,G,q,H;const W=[Zt,Yt,Xt,Kt],J=[];function V(t,e){return"send"==t[0]?0:"receive"==t[0]?1:"settings"==t[0]?2:"about"==t[0]?3:-1}return~(I=V(t))&&(P=J[I]=W[I](t)),{c(){e=y("main"),o=y("div"),r=y("ul"),i=y("li"),a=y("button"),s=y("div"),c=$(),l=y("span"),l.textContent="Send",p=$(),g=y("li"),u=y("button"),b=y("div"),w=$(),m=y("span"),m.textContent="Receive",k=$(),z=y("li"),E=y("button"),j=y("div"),S=$(),A=y("span"),A.textContent="Settings",F=$(),U=y("li"),B=y("button"),N=y("div"),R=$(),M=y("span"),M.textContent="About",T=$(),D=y("div"),P&&P.c(),_(s,"class","icon send-tab-icon mr-1"),_(a,"class",d="send"==t[0]?"tab-item tab-item-active":"tab-item tab-item-inactive"),_(i,"class",""),_(b,"class","icon receive-tab-icon mr-1"),_(u,"class",v="receive"==t[0]?"tab-item tab-item-active":"tab-item tab-item-inactive"),_(g,"class",""),_(j,"class","icon settings-tab-icon mr-1"),_(E,"class",O="settings"==t[0]?"tab-item tab-item-active":"tab-item tab-item-inactive"),_(z,"class",""),_(N,"class","icon about-tab-icon mr-1"),_(B,"class",L="about"==t[0]?"tab-item tab-item-active":"tab-item tab-item-inactive"),_(U,"class",""),_(r,"class","flex justify-center space-x-1 flex-row"),_(o,"class","container mx-auto py-1"),_(D,"class","tab-container"),_(e,"data-wails-no-drag","")},m(n,d){f(n,e,d),h(e,o),h(o,r),h(r,i),h(i,a),h(a,s),h(a,c),h(a,l),h(r,p),h(r,g),h(g,u),h(u,b),h(u,w),h(u,m),h(r,k),h(r,z),h(z,E),h(E,j),h(E,S),h(E,A),h(r,F),h(r,U),h(U,B),h(B,N),h(B,R),h(B,M),h(e,T),h(e,D),~I&&J[I].m(D,null),G=!0,q||(H=[C(a,"click",t[1]),C(u,"click",t[2]),C(E,"click",t[3]),C(B,"click",t[4])],q=!0)},p(t,[e]){(!G||1&e&&d!==(d="send"==t[0]?"tab-item tab-item-active":"tab-item tab-item-inactive"))&&_(a,"class",d),(!G||1&e&&v!==(v="receive"==t[0]?"tab-item tab-item-active":"tab-item tab-item-inactive"))&&_(u,"class",v),(!G||1&e&&O!==(O="settings"==t[0]?"tab-item tab-item-active":"tab-item tab-item-inactive"))&&_(E,"class",O),(!G||1&e&&L!==(L="about"==t[0]?"tab-item tab-item-active":"tab-item tab-item-inactive"))&&_(B,"class",L);let o=I;I=V(t),I!==o&&(P&&(X(),tt(J[o],1,1,(()=>{J[o]=null})),Y()),~I?(P=J[I],P||(P=J[I]=W[I](t),P.c()),Z(P,1),P.m(D,null)):P=null)},i(t){G||(Z(P),G=!0)},o(t){tt(P),G=!1},d(t){t&&x(e),~I&&J[I].d(),q=!1,n(H)}}}function ee(t,e,o){let r="send";return[r,()=>o(0,r="send"),()=>o(0,r="receive"),()=>o(0,r="settings"),()=>o(0,r="about")]}!function(t,e){void 0===e&&(e={});var o=e.insertAt;if(t&&"undefined"!=typeof document){var r=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.type="text/css","top"===o&&r.firstChild?r.insertBefore(n,r.firstChild):r.appendChild(n),n.styleSheet?n.styleSheet.cssText=t:n.appendChild(document.createTextNode(t))}}("/*! tailwindcss v3.0.9 | MIT License | https://tailwindcss.com*/*,:after,:before{border:0 solid;box-sizing:border-box}:after,:before{--tw-content:\"\"}html{-webkit-text-size-adjust:100%;font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;line-height:1.5;-moz-tab-size:4;-o-tab-size:4;tab-size:4}body{line-height:inherit;margin:0}hr{border-top-width:1px;color:inherit;height:0}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{border-collapse:collapse;border-color:inherit;text-indent:0}button,input,optgroup,select,textarea{color:inherit;font-family:inherit;font-size:100%;line-height:inherit;margin:0;padding:0}button,select{text-transform:none}[type=button],[type=reset],[type=submit],button{-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dd,dl,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}fieldset{margin:0}fieldset,legend{padding:0}menu,ol,ul{list-style:none;margin:0;padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{color:#94a3b8;opacity:1}input:-ms-input-placeholder,textarea:-ms-input-placeholder{color:#94a3b8;opacity:1}input::placeholder,textarea::placeholder{color:#94a3b8;opacity:1}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{height:auto;max-width:100%}[hidden]{display:none}[multiple],[type=date],[type=datetime-local],[type=email],[type=month],[type=number],[type=password],[type=search],[type=tel],[type=text],[type=time],[type=url],[type=week],select,textarea{--tw-shadow:0 0 #0000;-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:#fff;border-color:#64748b;border-radius:0;border-width:1px;font-size:1rem;line-height:1.5rem;padding:.5rem .75rem}[multiple]:focus,[type=date]:focus,[type=datetime-local]:focus,[type=email]:focus,[type=month]:focus,[type=number]:focus,[type=password]:focus,[type=search]:focus,[type=tel]:focus,[type=text]:focus,[type=time]:focus,[type=url]:focus,[type=week]:focus,select:focus,textarea:focus{--tw-ring-inset:var(--tw-empty,/*!*/ /*!*/);--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:#0891b2;--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);border-color:#0891b2;box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow);outline:2px solid transparent;outline-offset:2px}input::-moz-placeholder,textarea::-moz-placeholder{color:#64748b;opacity:1}input:-ms-input-placeholder,textarea:-ms-input-placeholder{color:#64748b;opacity:1}input::placeholder,textarea::placeholder{color:#64748b;opacity:1}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-date-and-time-value{min-height:1.5em}select{-webkit-print-color-adjust:exact;background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3E%3Cpath stroke='%2364748b' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3E%3C/svg%3E\");background-position:right .5rem center;background-repeat:no-repeat;background-size:1.5em 1.5em;color-adjust:exact;padding-right:2.5rem}[multiple]{-webkit-print-color-adjust:unset;background-image:none;background-position:0 0;background-repeat:unset;background-size:initial;color-adjust:unset;padding-right:.75rem}[type=checkbox],[type=radio]{-webkit-print-color-adjust:exact;--tw-shadow:0 0 #0000;-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:#fff;background-origin:border-box;border-color:#64748b;border-width:1px;color:#0891b2;color-adjust:exact;display:inline-block;flex-shrink:0;height:1rem;padding:0;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;vertical-align:middle;width:1rem}[type=checkbox]{border-radius:0}[type=radio]{border-radius:100%}[type=checkbox]:focus,[type=radio]:focus{--tw-ring-inset:var(--tw-empty,/*!*/ /*!*/);--tw-ring-offset-width:2px;--tw-ring-offset-color:#fff;--tw-ring-color:#0891b2;--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow);outline:2px solid transparent;outline-offset:2px}[type=checkbox]:checked,[type=radio]:checked{background-color:currentColor;background-position:50%;background-repeat:no-repeat;background-size:100% 100%;border-color:transparent}[type=checkbox]:checked{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 16 16' fill='%23fff' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12.207 4.793a1 1 0 0 1 0 1.414l-5 5a1 1 0 0 1-1.414 0l-2-2a1 1 0 0 1 1.414-1.414L6.5 9.086l4.293-4.293a1 1 0 0 1 1.414 0z'/%3E%3C/svg%3E\")}[type=radio]:checked{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 16 16' fill='%23fff' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='8' cy='8' r='3'/%3E%3C/svg%3E\")}[type=checkbox]:checked:focus,[type=checkbox]:checked:hover,[type=radio]:checked:focus,[type=radio]:checked:hover{background-color:currentColor;border-color:transparent}[type=checkbox]:indeterminate{background-color:currentColor;background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 16 16'%3E%3Cpath stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M4 8h8'/%3E%3C/svg%3E\");background-position:50%;background-repeat:no-repeat;background-size:100% 100%;border-color:transparent}[type=checkbox]:indeterminate:focus,[type=checkbox]:indeterminate:hover{background-color:currentColor;border-color:transparent}[type=file]{background:unset;border-color:inherit;border-radius:0;border-width:0;font-size:unset;line-height:inherit;padding:0}[type=file]:focus{outline:1px auto -webkit-focus-ring-color}*,:after,:before{--tw-border-opacity:1;--tw-ring-inset:var(--tw-empty,/*!*/ /*!*/);--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(6,182,212,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;border-color:rgb(226 232 240/var(--tw-border-opacity))}.container{width:100%}@media (min-width:640px){.container{max-width:640px}}@media (min-width:768px){.container{max-width:768px}}@media (min-width:1024px){.container{max-width:1024px}}@media (min-width:1280px){.container{max-width:1280px}}@media (min-width:1536px){.container{max-width:1536px}}.open-button{--tw-bg-opacity:1;--tw-text-opacity:1;background-color:rgb(13 148 136/var(--tw-bg-opacity));border-radius:.5rem;color:rgb(226 232 240/var(--tw-text-opacity));padding:.25rem .5rem;transition-duration:.15s}.open-button:hover{--tw-bg-opacity:1;background-color:rgb(15 118 110/var(--tw-bg-opacity))}.open-button:active{--tw-bg-opacity:1;background-color:rgb(17 94 89/var(--tw-bg-opacity))}.send-input{--tw-bg-opacity:1;--tw-text-opacity:1;--tw-shadow:inset 0 2px 4px 0 rgba(0,0,0,.05);--tw-shadow-colored:inset 0 2px 4px 0 var(--tw-shadow-color);--tw-shadow:0 4px 6px -1px rgba(0,0,0,.1),0 2px 4px -2px rgba(0,0,0,.1);--tw-shadow-colored:0 4px 6px -1px var(--tw-shadow-color),0 2px 4px -2px var(--tw-shadow-color);background-color:rgb(51 65 85/var(--tw-bg-opacity));border-bottom-left-radius:.375rem;border-color:transparent;border-top-left-radius:.375rem;border-width:1px;box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow);color:rgb(226 232 240/var(--tw-text-opacity))}.send-input:focus{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);--tw-ring-opacity:1;--tw-ring-color:rgb(94 234 212/var(--tw-ring-opacity));border-color:transparent;box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000);outline:2px solid transparent;outline-offset:2px}.send-input-label{--tw-text-opacity:1;color:rgb(203 213 225/var(--tw-text-opacity));display:block;font-size:.875rem;line-height:1.25rem}.send-button{--tw-bg-opacity:1;--tw-text-opacity:1;--tw-shadow:0 4px 6px -1px rgba(0,0,0,.1),0 2px 4px -2px rgba(0,0,0,.1);--tw-shadow-colored:0 4px 6px -1px var(--tw-shadow-color),0 2px 4px -2px var(--tw-shadow-color);background-color:rgb(13 148 136/var(--tw-bg-opacity));border-radius:.5rem;box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow);color:rgb(226 232 240/var(--tw-text-opacity));padding:.5rem 1rem;transition-duration:.15s}.send-button:hover{--tw-bg-opacity:1;background-color:rgb(15 118 110/var(--tw-bg-opacity))}.send-button:active{--tw-bg-opacity:1;background-color:rgb(17 94 89/var(--tw-bg-opacity))}.send-button:disabled{opacity:.5}.copy-button{--tw-bg-opacity:1;--tw-text-opacity:1;background-color:rgb(13 148 136/var(--tw-bg-opacity));border-bottom-right-radius:.375rem;border-top-right-radius:.375rem;color:rgb(226 232 240/var(--tw-text-opacity));padding:.5rem;transition-duration:.15s;width:2.5rem}.copy-button:hover{--tw-bg-opacity:1;background-color:rgb(15 118 110/var(--tw-bg-opacity))}.copy-button:active{--tw-bg-opacity:1;background-color:rgb(17 94 89/var(--tw-bg-opacity))}.copy-button:disabled{opacity:.5}.receive-input{--tw-bg-opacity:1;--tw-text-opacity:1;--tw-shadow:inset 0 2px 4px 0 rgba(0,0,0,.05);--tw-shadow-colored:inset 0 2px 4px 0 var(--tw-shadow-color);--tw-shadow:0 4px 6px -1px rgba(0,0,0,.1),0 2px 4px -2px rgba(0,0,0,.1);--tw-shadow-colored:0 4px 6px -1px var(--tw-shadow-color),0 2px 4px -2px var(--tw-shadow-color);background-color:rgb(30 41 59/var(--tw-bg-opacity));border-bottom-left-radius:.375rem;border-color:transparent;border-top-left-radius:.375rem;border-width:1px;box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow);color:rgb(226 232 240/var(--tw-text-opacity))}.receive-input:focus{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);--tw-ring-opacity:1;--tw-ring-color:rgb(94 234 212/var(--tw-ring-opacity));border-color:transparent;box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000);outline:2px solid transparent;outline-offset:2px}.receive-input-label{--tw-text-opacity:1;color:rgb(203 213 225/var(--tw-text-opacity));display:block;font-size:.875rem;line-height:1.25rem}.receive-button{--tw-bg-opacity:1;--tw-text-opacity:1;--tw-shadow:0 4px 6px -1px rgba(0,0,0,.1),0 2px 4px -2px rgba(0,0,0,.1);--tw-shadow-colored:0 4px 6px -1px var(--tw-shadow-color),0 2px 4px -2px var(--tw-shadow-color);background-color:rgb(13 148 136/var(--tw-bg-opacity));border-bottom-right-radius:.375rem;border-top-right-radius:.375rem;box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow);color:rgb(226 232 240/var(--tw-text-opacity));padding:.5rem 1rem;transition-duration:.15s}.receive-button:hover{--tw-bg-opacity:1;background-color:rgb(15 118 110/var(--tw-bg-opacity))}.receive-button:active{--tw-bg-opacity:1;background-color:rgb(17 94 89/var(--tw-bg-opacity))}.receive-button:disabled{opacity:.5}.about-button{--tw-bg-opacity:1;--tw-text-opacity:1;--tw-shadow:0 4px 6px -1px rgba(0,0,0,.1),0 2px 4px -2px rgba(0,0,0,.1);--tw-shadow-colored:0 4px 6px -1px var(--tw-shadow-color),0 2px 4px -2px var(--tw-shadow-color);background-color:rgb(13 148 136/var(--tw-bg-opacity));border-radius:.375rem;box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow);color:rgb(226 232 240/var(--tw-text-opacity));padding:.25rem .5rem;transition-duration:.15s}.about-button:hover{--tw-bg-opacity:1;background-color:rgb(15 118 110/var(--tw-bg-opacity))}.about-button:active{--tw-bg-opacity:1;background-color:rgb(17 94 89/var(--tw-bg-opacity))}.send-icon-container{background-image:url(assets/images/upload-solid.svg)}.receive-icon-container,.send-icon-container{--tw-bg-opacity:0.75;background-color:rgb(19 78 74/var(--tw-bg-opacity));background-position:50%;background-repeat:no-repeat;background-size:60%}.receive-icon-container{background-image:url(assets/images/download-solid.svg)}.file-list{list-style-position:inside;list-style-type:disc}.cursor-fix{cursor:default}.tab-item{--tw-shadow:0 10px 15px -3px rgba(0,0,0,.1),0 4px 6px -4px rgba(0,0,0,.1);--tw-shadow-colored:0 10px 15px -3px var(--tw-shadow-color),0 4px 6px -4px var(--tw-shadow-color);border-radius:.25rem;box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow);display:block;display:flex;flex-direction:row;font-size:.75rem;font-weight:700;justify-content:center;line-height:1rem;line-height:1.5;padding:.75rem;text-transform:uppercase;width:7rem}.tab-item-inactive{--tw-bg-opacity:1;--tw-text-opacity:1;background-color:rgb(241 245 249/var(--tw-bg-opacity));color:rgb(17 94 89/var(--tw-text-opacity))}.tab-item-active{--tw-bg-opacity:1;--tw-text-opacity:1;background-color:rgb(17 94 89/var(--tw-bg-opacity));color:rgb(241 245 249/var(--tw-text-opacity))}.tab-container{width:100%}@media (min-width:640px){.tab-container{max-width:640px}}@media (min-width:768px){.tab-container{max-width:768px}}@media (min-width:1024px){.tab-container{max-width:1024px}}@media (min-width:1280px){.tab-container{max-width:1280px}}@media (min-width:1536px){.tab-container{max-width:1536px}}.tab-container{--tw-bg-opacity:0.5;--tw-shadow:0 10px 15px -3px rgba(0,0,0,.1),0 4px 6px -4px rgba(0,0,0,.1);--tw-shadow-colored:0 10px 15px -3px var(--tw-shadow-color),0 4px 6px -4px var(--tw-shadow-color);background-color:rgb(51 65 85/var(--tw-bg-opacity));border-radius:.5rem;box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow);height:82%;margin-left:auto;margin-right:auto;width:91.666667%;z-index:10}.progress-outer,.tab-container{padding:1rem}.progress-outer{--tw-bg-opacity:0.9;background-color:rgb(30 41 59/var(--tw-bg-opacity));bottom:0;height:100%;left:0;margin:auto;position:absolute;right:0;top:0;width:100%;z-index:0}.progress-inner{position:relative;top:33.333333%}.send-progress-old{margin-left:auto;margin-right:auto;padding:.5rem;width:75%}.icon{height:16px;width:16px}.icon,.icon-lg{background-repeat:no-repeat}.icon-lg{height:64px;width:64px}.copy-icon{background-repeat:no-repeat;height:1.5rem;-webkit-mask-image:url(assets/images/copy-regular.svg);mask-image:url(assets/images/copy-regular.svg);width:1.5rem}.copy-icon,.receive-tab-icon{--tw-bg-opacity:1;background-color:rgb(15 23 42/var(--tw-bg-opacity));-webkit-mask-position:center;mask-position:center;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat}.receive-tab-icon{-webkit-mask-image:url(assets/images/download-solid.svg);mask-image:url(assets/images/download-solid.svg)}.send-tab-icon{-webkit-mask-image:url(assets/images/paper-plane-solid.svg);mask-image:url(assets/images/paper-plane-solid.svg)}.send-tab-icon,.settings-tab-icon{--tw-bg-opacity:1;background-color:rgb(15 23 42/var(--tw-bg-opacity));-webkit-mask-position:center;mask-position:center;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat}.settings-tab-icon{-webkit-mask-image:url(assets/images/cog-solid.svg);mask-image:url(assets/images/cog-solid.svg)}.about-tab-icon{--tw-bg-opacity:1;background-color:rgb(15 23 42/var(--tw-bg-opacity));-webkit-mask-image:url(assets/images/info-circle-solid.svg);mask-image:url(assets/images/info-circle-solid.svg);-webkit-mask-position:center;mask-position:center;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat}.send-file-icon{-webkit-mask-image:url(assets/images/file-upload-solid.svg);mask-image:url(assets/images/file-upload-solid.svg)}.receive-file-icon,.send-file-icon{--tw-bg-opacity:1;background-color:rgb(226 232 240/var(--tw-bg-opacity));-webkit-mask-position:center;mask-position:center;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat}.receive-file-icon{-webkit-mask-image:url(assets/images/file-download-solid.svg);mask-image:url(assets/images/file-download-solid.svg)}.folder-select-icon{--tw-bg-opacity:1;--tw-shadow:0 4px 6px -1px rgba(0,0,0,.1),0 2px 4px -2px rgba(0,0,0,.1);--tw-shadow-colored:0 4px 6px -1px var(--tw-shadow-color),0 2px 4px -2px var(--tw-shadow-color);background-color:rgb(203 213 225/var(--tw-bg-opacity));box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow);content:\"\";display:block;height:6rem;-webkit-mask-image:url(assets/images/folder-regular.svg);mask-image:url(assets/images/folder-regular.svg);-webkit-mask-position:center;mask-position:center;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:contain;mask-size:contain;transition-duration:.3s;width:6rem}.folder-select-icon:hover{--tw-bg-opacity:1;background-color:rgb(20 184 166/var(--tw-bg-opacity))}.file-select-icon{--tw-bg-opacity:1;--tw-shadow:0 4px 6px -1px rgba(0,0,0,.1),0 2px 4px -2px rgba(0,0,0,.1);--tw-shadow-colored:0 4px 6px -1px var(--tw-shadow-color),0 2px 4px -2px var(--tw-shadow-color);background-color:rgb(203 213 225/var(--tw-bg-opacity));box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow);content:\"\";display:block;height:6rem;-webkit-mask-image:url(assets/images/file-regular.svg);mask-image:url(assets/images/file-regular.svg);-webkit-mask-position:center;mask-position:center;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:contain;mask-size:contain;transition-duration:.3s;width:6rem}.file-select-icon:hover{--tw-bg-opacity:1;background-color:rgb(20 184 166/var(--tw-bg-opacity))}.cancel-button{--tw-bg-opacity:1;--tw-text-opacity:1;background-color:rgb(153 27 27/var(--tw-bg-opacity));border-radius:.5rem;color:rgb(226 232 240/var(--tw-text-opacity));padding:.5rem 1rem;transition-duration:.15s}.cancel-button:hover{--tw-bg-opacity:1;background-color:rgb(185 28 28/var(--tw-bg-opacity))}.cancel-button:active{--tw-bg-opacity:1;background-color:rgb(127 29 29/var(--tw-bg-opacity))}.cancel-button:disabled{opacity:.5}.tooltip{--tw-border-opacity:1;--tw-bg-opacity:1;--tw-text-opacity:1;--tw-shadow:0 10px 15px -3px rgba(0,0,0,.1),0 4px 6px -4px rgba(0,0,0,.1);--tw-shadow-colored:0 10px 15px -3px var(--tw-shadow-color),0 4px 6px -4px var(--tw-shadow-color);background-color:rgb(226 232 240/var(--tw-bg-opacity));border-color:rgb(15 118 110/var(--tw-border-opacity));border-radius:.25rem;border-width:1px;box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow);color:rgb(30 41 59/var(--tw-text-opacity));font-size:.875rem;line-height:1.25rem;margin-top:-2rem;padding:.25rem;position:absolute;visibility:hidden}.has-tooltip:hover .tooltip{visibility:visible;z-index:50}.checkbox{--tw-border-opacity:1;--tw-bg-opacity:1;background-color:rgb(15 118 110/var(--tw-bg-opacity));border-color:rgb(203 213 225/var(--tw-border-opacity));border-radius:.25rem;border-width:1px;height:1rem;width:1rem}.checkbox:focus{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);--tw-ring-opacity:1;--tw-ring-color:rgb(94 234 212/var(--tw-ring-opacity));box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.settings-button{--tw-bg-opacity:1;--tw-text-opacity:1;background-color:rgb(13 148 136/var(--tw-bg-opacity));border-radius:.5rem;color:rgb(226 232 240/var(--tw-text-opacity));font-size:.875rem;line-height:1.25rem;padding:.25rem;transition-duration:.15s}.settings-button:hover{--tw-bg-opacity:1;background-color:rgb(15 118 110/var(--tw-bg-opacity))}.settings-button:active{--tw-bg-opacity:1;background-color:rgb(17 94 89/var(--tw-bg-opacity))}.settings-button:disabled{opacity:.5}.visible{visibility:visible}.invisible{visibility:hidden}.absolute{position:absolute}.relative{position:relative}.inset-0{bottom:0;left:0;right:0;top:0}.z-0{z-index:0}.m-2{margin:.5rem}.mx-auto{margin-left:auto;margin-right:auto}.my-auto{margin-bottom:auto;margin-top:auto}.my-2{margin-bottom:.5rem;margin-top:.5rem}.-mt-8{margin-top:-2rem}.mr-1{margin-right:.25rem}.mb-1{margin-bottom:.25rem}.mt-2{margin-top:.5rem}.mt-1{margin-top:.25rem}.ml-1{margin-left:.25rem}.mb-2{margin-bottom:.5rem}.block{display:block}.inline-block{display:inline-block}.flex{display:flex}.inline-flex{display:inline-flex}.grid{display:grid}.h-24{height:6rem}.h-4{height:1rem}.h-56{height:14rem}.h-full{height:100%}.h-36{height:9rem}.w-28{width:7rem}.w-11\\/12{width:91.666667%}.w-full{width:100%}.w-24{width:6rem}.w-4{width:1rem}.w-72{width:18rem}.w-60{width:15rem}.max-w-md{max-width:28rem}@-webkit-keyframes pulse{50%{opacity:.5}}@keyframes pulse{50%{opacity:.5}}.animate-pulse{-webkit-animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite;animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite}.list-disc{list-style-type:disc}.grid-flow-row{grid-auto-flow:row}.flex-row{flex-direction:row}.flex-col{flex-direction:column}.place-items-center{place-items:center}.content-center{align-content:center}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.justify-around{justify-content:space-around}.justify-items-center{justify-items:center}.space-x-1>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-left:calc(.25rem*(1 - var(--tw-space-x-reverse)));margin-right:calc(.25rem*var(--tw-space-x-reverse))}.space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-left:calc(.5rem*(1 - var(--tw-space-x-reverse)));margin-right:calc(.5rem*var(--tw-space-x-reverse))}.space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(.5rem*var(--tw-space-y-reverse));margin-top:calc(.5rem*(1 - var(--tw-space-y-reverse)))}.rounded-lg{border-radius:.5rem}.rounded-md{border-radius:.375rem}.rounded{border-radius:.25rem}.rounded-full{border-radius:9999px}.rounded-l-md{border-bottom-left-radius:.375rem;border-top-left-radius:.375rem}.rounded-r-md{border-bottom-right-radius:.375rem;border-top-right-radius:.375rem}.border{border-width:1px}.border-2{border-width:2px}.border-transparent{border-color:transparent}.border-green-700{--tw-border-opacity:1;border-color:rgb(15 118 110/var(--tw-border-opacity))}.border-gray-300{--tw-border-opacity:1;border-color:rgb(203 213 225/var(--tw-border-opacity))}.border-green-300{--tw-border-opacity:1;border-color:rgb(94 234 212/var(--tw-border-opacity))}.bg-green-600{--tw-bg-opacity:1;background-color:rgb(13 148 136/var(--tw-bg-opacity))}.bg-gray-700{--tw-bg-opacity:1;background-color:rgb(51 65 85/var(--tw-bg-opacity))}.bg-gray-800{--tw-bg-opacity:1;background-color:rgb(30 41 59/var(--tw-bg-opacity))}.bg-green-900{--tw-bg-opacity:1;background-color:rgb(19 78 74/var(--tw-bg-opacity))}.bg-gray-300{--tw-bg-opacity:1;background-color:rgb(203 213 225/var(--tw-bg-opacity))}.bg-red-800{--tw-bg-opacity:1;background-color:rgb(153 27 27/var(--tw-bg-opacity))}.bg-gray-200{--tw-bg-opacity:1;background-color:rgb(226 232 240/var(--tw-bg-opacity))}.bg-green-700{--tw-bg-opacity:1;background-color:rgb(15 118 110/var(--tw-bg-opacity))}.bg-purple-500{--tw-bg-opacity:1;background-color:rgb(139 92 246/var(--tw-bg-opacity))}.bg-green-500{--tw-bg-opacity:1;background-color:rgb(20 184 166/var(--tw-bg-opacity))}.bg-opacity-50{--tw-bg-opacity:0.5}.bg-opacity-90{--tw-bg-opacity:0.9}.bg-opacity-60{--tw-bg-opacity:0.6}.bg-center{background-position:50%}.bg-no-repeat{background-repeat:no-repeat}.p-2{padding:.5rem}.p-1{padding:.25rem}.px-2{padding-left:.5rem;padding-right:.5rem}.py-1{padding-bottom:.25rem;padding-top:.25rem}.px-4{padding-left:1rem;padding-right:1rem}.py-2{padding-bottom:.5rem;padding-top:.5rem}.px-3{padding-left:.75rem;padding-right:.75rem}.py-3{padding-bottom:.75rem;padding-top:.75rem}.py-4{padding-bottom:1rem;padding-top:1rem}.px-1{padding-left:.25rem;padding-right:.25rem}.py-8{padding-bottom:2rem;padding-top:2rem}.pt-2{padding-top:.5rem}.pb-2{padding-bottom:.5rem}.text-center{text-align:center}.font-sans{font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xs{font-size:.75rem;line-height:1rem}.text-base{font-size:1rem;line-height:1.5rem}.font-bold{font-weight:700}.font-medium{font-weight:500}.uppercase{text-transform:uppercase}.leading-normal{line-height:1.5}.text-gray-200{--tw-text-opacity:1;color:rgb(226 232 240/var(--tw-text-opacity))}.text-green-800{--tw-text-opacity:1;color:rgb(17 94 89/var(--tw-text-opacity))}.text-gray-100{--tw-text-opacity:1;color:rgb(241 245 249/var(--tw-text-opacity))}.text-gray-800{--tw-text-opacity:1;color:rgb(30 41 59/var(--tw-text-opacity))}.text-white{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity))}.text-blue-500{--tw-text-opacity:1;color:rgb(6 182 212/var(--tw-text-opacity))}.text-gray-400{--tw-text-opacity:1;color:rgb(148 163 184/var(--tw-text-opacity))}.text-gray-300{--tw-text-opacity:1;color:rgb(203 213 225/var(--tw-text-opacity))}.shadow-inner{--tw-shadow:inset 0 2px 4px 0 rgba(0,0,0,.05);--tw-shadow-colored:inset 0 2px 4px 0 var(--tw-shadow-color)}.shadow-inner,.shadow-md{box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.shadow-md{--tw-shadow:0 4px 6px -1px rgba(0,0,0,.1),0 2px 4px -2px rgba(0,0,0,.1);--tw-shadow-colored:0 4px 6px -1px var(--tw-shadow-color),0 2px 4px -2px var(--tw-shadow-color)}.shadow-lg{--tw-shadow:0 10px 15px -3px rgba(0,0,0,.1),0 4px 6px -4px rgba(0,0,0,.1);--tw-shadow-colored:0 10px 15px -3px var(--tw-shadow-color),0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.duration-150{transition-duration:.15s}.duration-300{transition-duration:.3s}main{height:100%;width:100%}div{overscroll:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.hover\\:bg-green-700:hover{--tw-bg-opacity:1;background-color:rgb(15 118 110/var(--tw-bg-opacity))}.hover\\:bg-green-500:hover{--tw-bg-opacity:1;background-color:rgb(20 184 166/var(--tw-bg-opacity))}.hover\\:bg-red-700:hover{--tw-bg-opacity:1;background-color:rgb(185 28 28/var(--tw-bg-opacity))}.focus\\:border-transparent:focus{border-color:transparent}.focus\\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\\:ring-2:focus{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.focus\\:ring-green-300:focus{--tw-ring-opacity:1;--tw-ring-color:rgb(94 234 212/var(--tw-ring-opacity))}.active\\:bg-green-800:active{--tw-bg-opacity:1;background-color:rgb(17 94 89/var(--tw-bg-opacity))}.disabled\\:opacity-50:disabled{opacity:.5}");return new class extends lt{constructor(t){super(),ct(this,t,ee,te,a,{})}}({target:document.body})}(); +var app=function(){"use strict";function t(){}const e=t=>t;function o(t){return t()}function r(){return Object.create(null)}function n(t){t.forEach(o)}function i(t){return"function"==typeof t}function a(t,e){return t!=t?e==e:t!==e||t&&"object"==typeof t||"function"==typeof t}function s(t,e,o,r){return t[1]&&r?function(t,e){for(const o in e)t[o]=e[o];return t}(o.ctx.slice(),t[1](r(e))):o.ctx}function c(t,e,o,r,n,i,a){const c=function(t,e,o,r){if(t[2]&&r){const n=t[2](r(o));if(void 0===e.dirty)return n;if("object"==typeof n){const t=[],o=Math.max(e.dirty.length,n.length);for(let r=0;rwindow.performance.now():()=>Date.now(),p=l?t=>requestAnimationFrame(t):t;const g=new Set;function u(t){g.forEach((e=>{e.c(t)||(g.delete(e),e.f())})),0!==g.size&&p(u)}function b(t){let e;return 0===g.size&&p(u),{promise:new Promise((o=>{g.add(e={c:t,f:o})})),abort(){g.delete(e)}}}let w=!1;function m(t,e,o,r){for(;t>1);o(n)<=r?t=n+1:e=n}return t}function h(t,e){w?(!function(t){if(t.hydrate_init)return;t.hydrate_init=!0;const e=t.childNodes,o=new Int32Array(e.length+1),r=new Int32Array(e.length);o[0]=-1;let n=0;for(let t=0;te[o[t]].claim_order),e[t].claim_order)-1;r[t]=o[i]+1;const a=i+1;o[a]=t,n=Math.max(a,n)}const i=[],a=[];let s=e.length-1;for(let t=o[n]+1;0!=t;t=r[t-1]){for(i.push(e[t-1]);s>=t;s--)a.push(e[s]);s--}for(;s>=0;s--)a.push(e[s]);i.reverse(),a.sort(((t,e)=>t.claim_order-e.claim_order));for(let e=0,o=0;e=i[o].claim_order;)o++;const r=ot.removeEventListener(e,o,r)}function _(t,e,o){null==o?t.removeAttribute(e):t.getAttribute(e)!==o&&t.setAttribute(e,o)}function z(t,e){e=""+e,t.wholeText!==e&&(t.data=e)}function E(t,e){t.value=null==e?"":e}const j=new Set;let S,A=0;function O(t,e,o,r,n,i,a,s=0){const c=16.666/r;let l="{\n";for(let t=0;t<=1;t+=c){const r=e+(o-e)*i(t);l+=100*t+`%{${a(r,1-r)}}\n`}const d=l+`100% {${a(o,1-o)}}\n}`,p=`__svelte_${function(t){let e=5381,o=t.length;for(;o--;)e=(e<<5)-e^t.charCodeAt(o);return e>>>0}(d)}_${s}`,g=t.ownerDocument;j.add(g);const u=g.__svelte_stylesheet||(g.__svelte_stylesheet=g.head.appendChild(y("style")).sheet),b=g.__svelte_rules||(g.__svelte_rules={});b[p]||(b[p]=!0,u.insertRule(`@keyframes ${p} ${d}`,u.cssRules.length));const w=t.style.animation||"";return t.style.animation=`${w?`${w}, `:""}${p} ${r}ms linear ${n}ms 1 both`,A+=1,p}function F(t,e){const o=(t.style.animation||"").split(", "),r=o.filter(e?t=>t.indexOf(e)<0:t=>-1===t.indexOf("__svelte")),n=o.length-r.length;n&&(t.style.animation=r.join(", "),A-=n,A||p((()=>{A||(j.forEach((t=>{const e=t.__svelte_stylesheet;let o=e.cssRules.length;for(;o--;)e.deleteRule(o);t.__svelte_rules={}})),j.clear())})))}function U(t){S=t}function B(t){(function(){if(!S)throw new Error("Function called outside component initialization");return S})().$$.on_mount.push(t)}const N=[],R=[],M=[],L=[],T=Promise.resolve();let D=!1;function I(t){M.push(t)}let P=!1;const G=new Set;function q(){if(!P){P=!0;do{for(let t=0;t{W=null}))),W}function V(t,e,o){t.dispatchEvent(function(t,e){const o=document.createEvent("CustomEvent");return o.initCustomEvent(t,!1,!1,e),o}(`${e?"intro":"outro"}${o}`))}const Q=new Set;let K;function X(){K={r:0,c:[],p:K}}function Y(){K.r||n(K.c),K=K.p}function Z(t,e){t&&t.i&&(Q.delete(t),t.i(e))}function tt(t,e,o,r){if(t&&t.o){if(Q.has(t))return;Q.add(t),K.c.push((()=>{Q.delete(t),r&&(o&&t.d(1),r())})),t.o(e)}}const et={duration:0};function ot(o,r,n){let a,s,c=r(o,n),l=!1,p=0;function g(){a&&F(o,a)}function u(){const{delay:r=0,duration:n=300,easing:i=e,tick:u=t,css:w}=c||et;w&&(a=O(o,0,1,n,r,i,w,p++)),u(0,1);const m=d()+r,h=m+n;s&&s.abort(),l=!0,I((()=>V(o,!0,"start"))),s=b((t=>{if(l){if(t>=h)return u(1,0),V(o,!0,"end"),g(),l=!1;if(t>=m){const e=i((t-m)/n);u(e,1-e)}}return l}))}let w=!1;return{start(){w||(F(o),i(c)?(c=c(),J().then(u)):u())},invalidate(){w=!1},end(){l&&(g(),l=!1)}}}function rt(o,r,a,s){let c=r(o,a),l=s?0:1,p=null,g=null,u=null;function w(){u&&F(o,u)}function m(t,e){const o=t.b-l;return e*=Math.abs(o),{a:l,b:t.b,d:o,duration:e,start:t.start,end:t.start+e,group:t.group}}function h(r){const{delay:i=0,duration:a=300,easing:s=e,tick:h=t,css:f}=c||et,x={start:d()+i,b:r};r||(x.group=K,K.r+=1),p||g?g=x:(f&&(w(),u=O(o,l,r,a,i,s,f)),r&&h(0,1),p=m(x,a),I((()=>V(o,r,"start"))),b((t=>{if(g&&t>g.start&&(p=m(g,a),g=null,V(o,p.b,"start"),f&&(w(),u=O(o,l,p.b,p.duration,0,s,c.css))),p)if(t>=p.end)h(l=p.b,1-l),V(o,p.b,"end"),g||(p.b?w():--p.group.r||n(p.group.c)),p=null;else if(t>=p.start){const e=t-p.start;l=p.a+p.d*s(e/p.duration),h(l,1-l)}return!(!p&&!g)})))}return{run(t){i(c)?J().then((()=>{c=c(),h(t)})):h(t)},end(){w(),p=g=null}}}function nt(t){t&&t.c()}function it(t,e,r,a){const{fragment:s,on_mount:c,on_destroy:l,after_update:d}=t.$$;s&&s.m(e,r),a||I((()=>{const e=c.map(o).filter(i);l?l.push(...e):n(e),t.$$.on_mount=[]})),d.forEach(I)}function at(t,e){const o=t.$$;null!==o.fragment&&(n(o.on_destroy),o.fragment&&o.fragment.d(e),o.on_destroy=o.fragment=null,o.ctx=[])}function st(t,e){-1===t.$$.dirty[0]&&(N.push(t),D||(D=!0,T.then(q)),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<{const n=r.length?r[0]:o;return p.ctx&&s(p.ctx[t],p.ctx[t]=n)&&(!p.skip_bound&&p.bound[t]&&p.bound[t](n),g&&st(e,t)),o})):[],p.update(),g=!0,n(p.before_update),p.fragment=!!a&&a(p.ctx),o.target){if(o.hydrate){w=!0;const t=function(t){return Array.from(t.childNodes)}(o.target);p.fragment&&p.fragment.l(t),t.forEach(x)}else p.fragment&&p.fragment.c();o.intro&&Z(e.$$.fragment),it(e,o.target,o.anchor,o.customElement),w=!1,q()}U(d)}class lt{$destroy(){at(this,1),this.$destroy=t}$on(t,e){const o=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return o.push(e),()=>{const t=o.indexOf(e);-1!==t&&o.splice(t,1)}}$set(t){var e;this.$$set&&(e=t,0!==Object.keys(e).length)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}function dt(t){const e=t-1;return e*e*e+1}function pt(t,{delay:e=0,duration:o=400,easing:r=dt}={}){const n=getComputedStyle(t),i=+n.opacity,a=parseFloat(n.height),s=parseFloat(n.paddingTop),c=parseFloat(n.paddingBottom),l=parseFloat(n.marginTop),d=parseFloat(n.marginBottom),p=parseFloat(n.borderTopWidth),g=parseFloat(n.borderBottomWidth);return{delay:e,duration:o,easing:r,css:t=>`overflow: hidden;opacity: ${Math.min(20*t,1)*i};height: ${t*a}px;padding-top: ${t*s}px;padding-bottom: ${t*c}px;margin-top: ${t*l}px;margin-bottom: ${t*d}px;border-top-width: ${t*p}px;border-bottom-width: ${t*g}px;`}}function gt(){window.go.main.App.CancelWormholeRequest()}function ut(t){window.go.main.App.OpenFile(t)}function bt(){return window.go.main.App.GetUserPrefs()}function wt(t){let e,o,r,n,i,a,l,d,p,g,u,b,w,m,v,C;const E=t[3].default,j=function(t,e,o,r){if(t){const n=s(t,e,o,r);return t[0](n)}}(E,t,t[2],null);return{c(){e=y("div"),o=y("div"),r=y("div"),n=y("span"),i=k(t[0]),a=$(),l=y("span"),d=k(t[1]),p=k("%"),g=$(),u=y("div"),b=y("div"),m=$(),j&&j.c(),_(n,"class","text-base text-gray-100 font-medium"),_(l,"class","text-sm font-medium text-gray-100"),_(r,"class","mb-1 flex justify-between"),_(b,"class","bg-green-500 h-4 rounded-full animate-pulse"),_(b,"style",w="width: "+t[1].toString()+"%"),_(u,"class","w-full bg-green-900 rounded-full h-4 shadow-inner"),_(o,"class","progress-inner"),_(e,"class","progress-outer")},m(t,s){f(t,e,s),h(e,o),h(o,r),h(r,n),h(n,i),h(r,a),h(r,l),h(l,d),h(l,p),h(o,g),h(o,u),h(u,b),h(o,m),j&&j.m(o,null),C=!0},p(t,[e]){(!C||1&e)&&z(i,t[0]),(!C||2&e)&&z(d,t[1]),(!C||2&e&&w!==(w="width: "+t[1].toString()+"%"))&&_(b,"style",w),j&&j.p&&(!C||4&e)&&c(j,E,t,t[2],C?e:-1,null,null)},i(t){C||(Z(j,t),I((()=>{v||(v=rt(e,pt,{},!0)),v.run(1)})),C=!0)},o(t){tt(j,t),v||(v=rt(e,pt,{},!1)),v.run(0),C=!1},d(t){t&&x(e),j&&j.d(t),t&&v&&v.end()}}}function mt(t,e,o){let{$$slots:r={},$$scope:n}=e,{status:i=waiting}=e,{percent:a=0}=e;return t.$$set=t=>{"status"in t&&o(0,i=t.status),"percent"in t&&o(1,a=t.percent),"$$scope"in t&&o(2,n=t.$$scope)},[i,a,n,r]}class ht extends lt{constructor(t){super(),ct(this,t,mt,wt,a,{status:0,percent:1})}}function ft(t,e,o){const r=t.slice();return r[11]=e[o],r[13]=o,r}function xt(t){let e,o,r,i,a,s,c,l,d,p,g,u;return{c(){e=y("div"),o=y("div"),r=y("span"),r.textContent="Send Files",i=$(),a=y("button"),s=$(),c=y("div"),l=y("span"),l.textContent="Send Directory",d=$(),p=y("button"),_(r,"class","tooltip"),_(a,"class","file-select-icon"),a.disabled=t[4],_(o,"class","has-tooltip"),_(l,"class","tooltip"),_(p,"class","folder-select-icon"),p.disabled=t[4],_(c,"class","has-tooltip"),_(e,"class","flex flex-row items-center content-center justify-around place-items-center h-full")},m(n,b){f(n,e,b),h(e,o),h(o,r),h(o,i),h(o,a),h(e,s),h(e,c),h(c,l),h(c,d),h(c,p),g||(u=[C(a,"click",t[7]),C(p,"click",t[6])],g=!0)},p(t,e){16&e&&(a.disabled=t[4]),16&e&&(p.disabled=t[4])},d(t){t&&x(e),g=!1,n(u)}}}function vt(t){let e,o=t[5],r=[];for(let e=0;e{i=ot(o,pt,{duration:200}),i.start()})),l||I((()=>{l=ot(s,pt,{duration:200}),l.start()}))},o:t,d(t){t&&x(o),t&&x(a),t&&x(s),d=!1,n(p)}}}function _t(t){let e,o;return e=new ht({props:{percent:t[3],status:t[2],$$slots:{default:[Et]},$$scope:{ctx:t}}}),{c(){nt(e.$$.fragment)},m(t,r){it(e,t,r),o=!0},p(t,o){const r={};8&o&&(r.percent=t[3]),4&o&&(r.status=t[2]),16386&o&&(r.$$scope={dirty:o,ctx:t}),e.$set(r)},i(t){o||(Z(e.$$.fragment,t),o=!0)},o(t){tt(e.$$.fragment,t),o=!1},d(t){at(e,t)}}}function zt(t){let e,o,r,n,i,a,s,c,l,d,p;return{c(){e=y("div"),o=y("label"),o.textContent="Send Code",r=$(),n=y("div"),i=y("input"),a=$(),s=y("button"),s.innerHTML='
',_(o,"for","sendCode"),_(o,"class","send-input-label"),_(i,"id","sendCode"),i.readOnly=!0,_(i,"type","text"),_(i,"placeholder","Send code will appear"),i.value=t[1],_(i,"class","send-input mt-1"),_(s,"class","copy-button mt-1 ml-1"),_(n,"class","flex flex-row"),_(e,"class","mx-auto mt-2")},m(t,c){f(t,e,c),h(e,o),h(e,r),h(e,n),h(n,i),h(n,a),h(n,s),l=!0,d||(p=C(s,"click",St),d=!0)},p(t,e){(!l||2&e&&i.value!==t[1])&&(i.value=t[1])},i(t){l||(I((()=>{c||(c=rt(e,pt,{},!0)),c.run(1)})),l=!0)},o(t){c||(c=rt(e,pt,{},!1)),c.run(0),l=!1},d(t){t&&x(e),t&&c&&c.end(),d=!1,p()}}}function Et(t){let e,o,r,n,i,a,s=t[1]&&zt(t);return{c(){e=y("div"),o=y("button"),o.textContent="Cancel",r=$(),s&&s.c(),_(o,"class","my-2 mx-auto cancel-button"),_(e,"class","container grid")},m(c,l){f(c,e,l),h(e,o),h(e,r),s&&s.m(e,null),n=!0,i||(a=C(o,"click",t[9]),i=!0)},p(t,o){t[1]?s?(s.p(t,o),2&o&&Z(s,1)):(s=zt(t),s.c(),Z(s,1),s.m(e,null)):s&&(X(),tt(s,1,1,(()=>{s=null})),Y())},i(t){n||(Z(s),n=!0)},o(t){tt(s),n=!1},d(t){t&&x(e),s&&s.d(),i=!1,a()}}}function jt(t){let e,o,r,n,i,a;function s(t,e){return t[0].length>0?vt:xt}let c=s(t),l=c(t),d=t[0].length>0&&Ct(t),p=t[4]&&_t(t);return{c(){e=y("div"),o=y("div"),l.c(),r=$(),n=y("div"),d&&d.c(),i=$(),p&&p.c(),_(o,"class","border-2 border-green-300 rounded-md shadow-md w-72 h-56 p-2 mx-auto cursor-fix send-icon-container"),_(n,"class","p-2 mx-auto"),_(e,"class","flex flex-col justify-items-center content-center m-2")},m(t,s){f(t,e,s),h(e,o),l.m(o,null),h(e,r),h(e,n),d&&d.m(n,null),h(e,i),p&&p.m(e,null),a=!0},p(t,[r]){c===(c=s(t))&&l?l.p(t,r):(l.d(1),l=c(t),l&&(l.c(),l.m(o,null))),t[0].length>0?d?(d.p(t,r),1&r&&Z(d,1)):(d=Ct(t),d.c(),Z(d,1),d.m(n,null)):d&&(d.d(1),d=null),t[4]?p?(p.p(t,r),16&r&&Z(p,1)):(p=_t(t),p.c(),Z(p,1),p.m(e,null)):p&&(X(),tt(p,1,1,(()=>{p=null})),Y())},i(t){a||(Z(d),Z(p),a=!0)},o(t){tt(p),a=!1},d(t){t&&x(e),l.d(),d&&d.d(),p&&p.d()}}}function St(){var t=document.getElementById("sendCode");t.select(),t.setSelectionRange(0,99999),navigator.clipboard.writeText(t.value)}function At(t,e,o){let r;String.prototype.trimEllip=function(t){return this.length>t?this.substring(0,t)+"...":this};let n="",i="waiting",a=0,s=[],c=!1;return window.runtime.EventsOn("send:started",(function(t){o(1,n=t)})),window.runtime.EventsOn("send:updated",(function(t){o(3,a=t),"transferring"!=i&&o(2,i="transferring")})),window.runtime.EventsOn("send:status",(function(t){o(2,i=t),"completed"!=t&&"failed"!=t||setTimeout((()=>{o(4,c=!1),o(1,n=""),o(3,a=0)}),500)})),B((()=>{window.go.main.App.GetSelectedFiles().then((t=>{t&&t.length>0&&o(0,s=t)}))})),t.$$.update=()=>{1&t.$$.dirty&&o(5,r=s.map((t=>t.split("\\").pop().split("/").pop().trimEllip(30))))},[s,n,i,a,c,r,function(){window.go.main.App.OpenDirectoryDialog().then((t=>{o(0,s=null!=t?t:[])})).catch((t=>{console.log(t)}))},function(){window.go.main.App.OpenFilesDialog().then((t=>{o(0,s=null!=t?t:[])})).catch((t=>{console.log(t)}))},function(){o(1,n=""),o(2,i="waiting"),o(3,a=0),o(0,s=[]),o(4,c=!1),window.go.main.App.ClearSelectedFiles()},function(){gt(),o(4,c=!1),o(1,n=""),o(2,i="waiting"),o(3,a=0)},function(){window.go.main.App.SelectedFilesSend(),o(4,c=!0)}]}class Ot extends lt{constructor(t){super(),ct(this,t,At,jt,a,{})}}function Ft(t){let e,o,r,n,i,a,s=!t[4]&&Ut(t);return{c(){e=y("div"),o=y("div"),r=$(),n=y("span"),i=k(t[6]),a=$(),s&&s.c(),_(o,"class","icon-lg receive-file-icon"),_(n,"class","text-gray-200"),_(e,"class","flex flex-col justify-center items-center space-y-2 bg-gray-800 rounded-md bg-opacity-60 h-full")},m(t,c){f(t,e,c),h(e,o),h(e,r),h(e,n),h(n,i),h(e,a),s&&s.m(e,null)},p(t,o){64&o&&z(i,t[6]),t[4]?s&&(s.d(1),s=null):s?s.p(t,o):(s=Ut(t),s.c(),s.m(e,null))},d(t){t&&x(e),s&&s.d()}}}function Ut(e){let o,r,i,a,s,c;return{c(){o=y("div"),r=y("button"),r.textContent="Open File",i=$(),a=y("button"),a.textContent="Open Folder",_(r,"class","open-button text-sm"),_(a,"class","open-button text-sm"),_(o,"class","inline-flex space-x-1")},m(t,n){f(t,o,n),h(o,r),h(o,i),h(o,a),s||(c=[C(r,"click",e[8]),C(a,"click",e[9])],s=!0)},p:t,d(t){t&&x(o),s=!1,n(c)}}}function Bt(t){let e,o;return e=new ht({props:{percent:t[3],status:t[2],$$slots:{default:[Nt]},$$scope:{ctx:t}}}),{c(){nt(e.$$.fragment)},m(t,r){it(e,t,r),o=!0},p(t,o){const r={};8&o&&(r.percent=t[3]),4&o&&(r.status=t[2]),4096&o&&(r.$$scope={dirty:o,ctx:t}),e.$set(r)},i(t){o||(Z(e.$$.fragment,t),o=!0)},o(t){tt(e.$$.fragment,t),o=!1},d(t){at(e,t)}}}function Nt(e){let o,r,n,i;return{c(){o=y("div"),r=y("button"),r.textContent="Cancel",_(r,"class","my-2 mx-auto cancel-button"),_(o,"class","container grid")},m(t,a){f(t,o,a),h(o,r),n||(i=C(r,"click",e[10]),n=!0)},p:t,d(t){t&&x(o),n=!1,i()}}}function Rt(t){let e,o,r,i,a,s,c,l,d,p,g,u,b,w,m,v,z=t[1]&&Ft(t),j=t[4]&&Bt(t);return{c(){e=y("div"),o=y("div"),z&&z.c(),r=$(),i=y("div"),a=y("form"),s=y("label"),s.textContent="Receive Code",c=$(),l=y("input"),d=$(),p=y("button"),g=k("Download"),b=$(),j&&j.c(),_(o,"class","border-2 border-green-300 rounded-md shadow-md w-72 h-56 p-2 mx-auto receive-icon-container"),_(s,"for","receiveCode"),_(s,"class","receive-input-label"),_(l,"id","receiveCode"),_(l,"type","text"),_(l,"placeholder","eg. 5-component-button"),_(l,"class","receive-input"),_(p,"class","receive-button"),_(p,"type","submit"),p.disabled=u=!t[5],_(a,"autocomplete","off"),_(i,"class","p-2 mx-auto"),_(e,"class","flex flex-col justify-items-center content-center m-2")},m(n,u){var x;f(n,e,u),h(e,o),z&&z.m(o,null),h(e,r),h(e,i),h(i,a),h(a,s),h(a,c),h(a,l),E(l,t[0]),h(a,d),h(a,p),h(p,g),h(e,b),j&&j.m(e,null),w=!0,m||(v=[C(l,"input",t[11]),C(a,"submit",(x=t[7],function(t){return t.preventDefault(),x.call(this,t)}))],m=!0)},p(t,[r]){t[1]?z?z.p(t,r):(z=Ft(t),z.c(),z.m(o,null)):z&&(z.d(1),z=null),1&r&&l.value!==t[0]&&E(l,t[0]),(!w||32&r&&u!==(u=!t[5]))&&(p.disabled=u),t[4]?j?(j.p(t,r),16&r&&Z(j,1)):(j=Bt(t),j.c(),Z(j,1),j.m(e,null)):j&&(X(),tt(j,1,1,(()=>{j=null})),Y())},i(t){w||(Z(j),w=!0)},o(t){tt(j),w=!1},d(t){t&&x(e),z&&z.d(),j&&j.d(),m=!1,n(v)}}}const Mt=/\d+\-\w+\-\w+/;function Lt(t,e,o){let r,n,i="",a="waiting",s=0,c=!1,l="";return String.prototype.trimEllip=function(t){return this.length>t?this.substring(0,t)+"...":this},window.runtime.EventsOn("receive:updated",(function(t){o(3,s=t)})),window.runtime.EventsOn("receive:started",(function(){o(4,c=!0)})),window.runtime.EventsOn("receive:path",(function(t){o(1,l=t)})),window.runtime.EventsOn("receive:status",(function(t){o(2,a=t),"completed"==t&&setTimeout((()=>{o(4,c=!1),o(3,s=0)}),500)})),B((()=>{window.go.main.App.GetReceivedFile().then((t=>{t&&o(1,l=t)}))})),t.$$.update=()=>{1&t.$$.dirty&&o(5,r=Mt.test(i)),2&t.$$.dirty&&o(6,n=l.split("\\").pop().split("/").pop().trimEllip(24))},[i,l,a,s,c,r,n,function(){var t;t=i,window.go.main.App.ReceiveFile(t)},function(){ut(l)},function(){bt().then((t=>{ut(t.downloadsDirectory)}))},function(){gt(),o(4,c=!1),o(0,i=""),o(2,a="waiting"),o(3,s=0),o(1,l="")},function(){i=this.value,o(0,i)}]}class Tt extends lt{constructor(t){super(),ct(this,t,Lt,Rt,a,{})}}function Dt(t){let e,o,r,n,i;return{c(){e=y("label"),e.textContent="Auto Update Enabled",o=$(),r=y("input"),_(e,"class","text-sm"),_(e,"for","selfUpdate"),_(r,"class","checkbox"),_(r,"type","checkbox"),_(r,"id","selfUpdate"),_(r,"name","selfUpdate"),r.checked=t[3]},m(a,s){f(a,e,s),f(a,o,s),f(a,r,s),n||(i=C(r,"input",t[11]),n=!0)},p(t,e){8&e&&(r.checked=t[3])},d(t){t&&x(e),t&&x(o),t&&x(r),n=!1,i()}}}function It(e){let o;return{c(){o=y("span"),o.textContent="Update from Package Manager",_(o,"class","text-sm")},m(t,e){f(t,o,e)},p:t,d(t){t&&x(o)}}}function Pt(e){let o,r,i,a,s,c,l,d,p,g,u,b,w,m,v,E,j,S,A,O,F,U,B,N,R,M,L,T,D,I,P,G,q,H,W,J,V,Q,K,X,Y,Z;function tt(t,e){return t[4]?It:Dt}let et=tt(e),ot=et(e);return{c(){o=y("div"),r=y("div"),i=y("div"),i.textContent="Downloads Folder",a=$(),s=y("div"),c=y("div"),l=k(e[5]),d=$(),p=y("div"),g=y("button"),g.textContent="Edit",u=$(),b=y("button"),b.textContent="Open",w=$(),m=y("div"),m.textContent="Notifications",v=$(),E=y("div"),j=y("label"),j.textContent="Show Desktop Notifications",S=$(),A=y("input"),O=$(),F=y("div"),F.textContent="Overwrite",U=$(),B=y("div"),N=y("label"),N.textContent="Overwrite Existing Files",R=$(),M=y("input"),L=$(),T=y("div"),T.textContent="Auto Update",D=$(),I=y("div"),ot.c(),P=$(),G=y("div"),q=y("div"),q.textContent="Logs",H=$(),W=y("div"),J=y("div"),V=k(e[6]),Q=$(),K=y("div"),X=y("button"),X.textContent="Open",_(i,"class","text-gray-300 font-bold"),_(c,"class","text-gray-200 text-xs max-w-md"),_(g,"class","settings-button"),_(b,"class","settings-button"),_(p,"class","w-22 inline-flex space-x-1"),_(s,"class","flex flex-row items-center justify-between"),_(r,"class","mb-2"),_(m,"class","text-gray-300 font-bold"),_(j,"class","text-sm"),_(j,"for","notifications"),_(A,"class","checkbox"),_(A,"type","checkbox"),_(A,"id","notifications"),_(A,"name","notifications"),A.checked=e[1],_(E,"class","flex flex-row items-center justify-between mb-2"),_(F,"class","text-gray-300 font-bold"),_(N,"class","text-sm"),_(N,"for","overwrite"),_(M,"class","checkbox"),_(M,"type","checkbox"),_(M,"id","overwrite"),_(M,"name","overwrite"),M.checked=e[2],_(B,"class","flex flex-row items-center justify-between mb-2"),_(T,"class","text-gray-300 font-bold"),_(I,"class","flex flex-row items-center justify-between mb-2"),_(q,"class","text-gray-300 font-bold"),_(J,"class","text-gray-200 text-xs"),_(X,"class","settings-button"),_(W,"class","flex flex-row items-center justify-between"),_(G,"class","mb-1"),_(o,"class","text-gray-200")},m(t,n){f(t,o,n),h(o,r),h(r,i),h(r,a),h(r,s),h(s,c),h(c,l),h(s,d),h(s,p),h(p,g),h(p,u),h(p,b),h(o,w),h(o,m),h(o,v),h(o,E),h(E,j),h(E,S),h(E,A),h(o,O),h(o,F),h(o,U),h(o,B),h(B,N),h(B,R),h(B,M),h(o,L),h(o,T),h(o,D),h(o,I),ot.m(I,null),h(o,P),h(o,G),h(G,q),h(G,H),h(G,W),h(W,J),h(J,V),h(W,Q),h(W,K),h(K,X),Y||(Z=[C(g,"click",e[7]),C(b,"click",e[8]),C(A,"input",e[10]),C(M,"input",e[9]),C(X,"click",e[13])],Y=!0)},p(t,[e]){32&e&&z(l,t[5]),2&e&&(A.checked=t[1]),4&e&&(M.checked=t[2]),et===(et=tt(t))&&ot?ot.p(t,e):(ot.d(1),ot=et(t),ot&&(ot.c(),ot.m(I,null))),64&e&&z(V,t[6])},i:t,o:t,d(t){t&&x(o),ot.d(),Y=!1,n(Z)}}}function Gt(t,e,o){let r,n,i="",a="",s=!1,c=!1,l=!1,d=!1;B((()=>{bt().then((t=>{o(12,i=t.downloadsDirectory),o(1,s=t.notifications),o(2,c=t.overwrite),o(3,l=t.selfUpdate)})),window.go.main.App.GetLogPath().then((t=>{o(0,a=t)})),window.go.main.App.AppInstalledFromPackageManager().then((t=>{o(4,d=t)}))}));return t.$$.update=()=>{4096&t.$$.dirty&&o(5,r=i.replace(/.{50}.\//g,"$&\n")),1&t.$$.dirty&&o(6,n=a.replace(/.{50}.\//g,"$&\n"))},[a,s,c,l,d,r,n,function(){window.go.main.App.SetDownloadsFolder().then((t=>{o(12,i=t)}))},function(){ut(i)},function(){var t;(t=!c,window.go.main.App.SetOverwriteParam(t)).then((t=>{o(2,c=t)}))},function(){var t;(t=!s,window.go.main.App.SetNotificationsParam(t)).then((t=>{o(1,s=t)}))},function(){var t;(t=!l,window.go.main.App.SetSelfUpdateParam(t)).then((t=>{o(3,l=t)}))},i,t=>window.runtime.BrowserOpenURL(a)]}class qt extends lt{constructor(t){super(),ct(this,t,Gt,Pt,a,{})}}function Ht(t,e,o){const r=t.slice();return r[6]=e[o][0],r[7]=e[o][1],r}function Wt(t){let e,o,r,n,i,a,s=t[6]+"";function c(...e){return t[5](t[7],...e)}return{c(){e=y("li"),o=y("button"),r=k(s),n=$(),_(o,"class","text-blue-500")},m(t,s){f(t,e,s),h(e,o),h(o,r),h(e,n),i||(a=C(o,"click",c),i=!0)},p(e,o){t=e},d(t){t&&x(e),i=!1,a()}}}function Jt(e){let o,r,i,a,s,c,l,d,p,g,u,b,w,m,E,j,S,A,O,F,U,B,N,R,M,L=Object.entries(e[1]),T=[];for(let t=0;tLicense

\n

Licensed under the GNU GPL Version 3

',S=$(),A=y("div"),O=y("p"),O.textContent="Attributions",F=$(),U=y("p"),U.textContent="This project leverages the work of other Open Source Software",B=$(),N=y("ul");for(let t=0;t{window.go.main.App.GetCurrentVersion().then((t=>{o(0,r=t)}))}));return[r,{"wailsapp/wails":"https://wails.io","Jackalz/wails-wormhole-gui":"https://github.com/Jacalz/wormhole-gui","psanford/wormhole-william":"https://github.com/psanford/wormhole-william","magic-wormhole":"https://magic-wormhole.readthedocs.io/",svelte:"https://github.com/sveltejs/svelte",tailwindcss:"https://github.com/tailwindlabs/tailwindcss","font awesome":"https://fontawesome.com","klauspost/compress":"https://github.com/klauspost/compress","go-github-selfupdate":"https://github.com/rhysd/go-github-selfupdate"},t=>window.runtime.BrowserOpenURL("https://riftshare.app"),t=>window.runtime.BrowserOpenURL("https://riftshare.app/faq.html"),t=>window.runtime.BrowserOpenURL("https://github.com/achhabra2/riftshare/issues/new/choose"),(t,e)=>window.runtime.BrowserOpenURL(t)]}class Qt extends lt{constructor(t){super(),ct(this,t,Vt,Jt,a,{})}}function Kt(t){let e,o;return e=new Qt({}),{c(){nt(e.$$.fragment)},m(t,r){it(e,t,r),o=!0},i(t){o||(Z(e.$$.fragment,t),o=!0)},o(t){tt(e.$$.fragment,t),o=!1},d(t){at(e,t)}}}function Xt(t){let e,o;return e=new qt({}),{c(){nt(e.$$.fragment)},m(t,r){it(e,t,r),o=!0},i(t){o||(Z(e.$$.fragment,t),o=!0)},o(t){tt(e.$$.fragment,t),o=!1},d(t){at(e,t)}}}function Yt(t){let e,o;return e=new Tt({}),{c(){nt(e.$$.fragment)},m(t,r){it(e,t,r),o=!0},i(t){o||(Z(e.$$.fragment,t),o=!0)},o(t){tt(e.$$.fragment,t),o=!1},d(t){at(e,t)}}}function Zt(t){let e,o;return e=new Ot({}),{c(){nt(e.$$.fragment)},m(t,r){it(e,t,r),o=!0},i(t){o||(Z(e.$$.fragment,t),o=!0)},o(t){tt(e.$$.fragment,t),o=!1},d(t){at(e,t)}}}function te(t){let e,o,r,i,a,s,c,l,d,p,g,u,b,w,m,v,k,z,E,j,S,A,O,F,U,B,N,R,M,L,T,D,I,P,G,q,H;const W=[Zt,Yt,Xt,Kt],J=[];function V(t,e){return"send"==t[0]?0:"receive"==t[0]?1:"settings"==t[0]?2:"about"==t[0]?3:-1}return~(I=V(t))&&(P=J[I]=W[I](t)),{c(){e=y("main"),o=y("div"),r=y("ul"),i=y("li"),a=y("button"),s=y("div"),c=$(),l=y("span"),l.textContent="Send",p=$(),g=y("li"),u=y("button"),b=y("div"),w=$(),m=y("span"),m.textContent="Receive",k=$(),z=y("li"),E=y("button"),j=y("div"),S=$(),A=y("span"),A.textContent="Settings",F=$(),U=y("li"),B=y("button"),N=y("div"),R=$(),M=y("span"),M.textContent="About",T=$(),D=y("div"),P&&P.c(),_(s,"class","icon send-tab-icon mr-1"),_(a,"class",d="send"==t[0]?"tab-item tab-item-active":"tab-item tab-item-inactive"),_(i,"class",""),_(b,"class","icon receive-tab-icon mr-1"),_(u,"class",v="receive"==t[0]?"tab-item tab-item-active":"tab-item tab-item-inactive"),_(g,"class",""),_(j,"class","icon settings-tab-icon mr-1"),_(E,"class",O="settings"==t[0]?"tab-item tab-item-active":"tab-item tab-item-inactive"),_(z,"class",""),_(N,"class","icon about-tab-icon mr-1"),_(B,"class",L="about"==t[0]?"tab-item tab-item-active":"tab-item tab-item-inactive"),_(U,"class",""),_(r,"class","flex justify-center space-x-1 flex-row"),_(o,"class","container mx-auto py-1"),_(D,"class","tab-container"),_(e,"data-wails-no-drag","")},m(n,d){f(n,e,d),h(e,o),h(o,r),h(r,i),h(i,a),h(a,s),h(a,c),h(a,l),h(r,p),h(r,g),h(g,u),h(u,b),h(u,w),h(u,m),h(r,k),h(r,z),h(z,E),h(E,j),h(E,S),h(E,A),h(r,F),h(r,U),h(U,B),h(B,N),h(B,R),h(B,M),h(e,T),h(e,D),~I&&J[I].m(D,null),G=!0,q||(H=[C(a,"click",t[1]),C(u,"click",t[2]),C(E,"click",t[3]),C(B,"click",t[4])],q=!0)},p(t,[e]){(!G||1&e&&d!==(d="send"==t[0]?"tab-item tab-item-active":"tab-item tab-item-inactive"))&&_(a,"class",d),(!G||1&e&&v!==(v="receive"==t[0]?"tab-item tab-item-active":"tab-item tab-item-inactive"))&&_(u,"class",v),(!G||1&e&&O!==(O="settings"==t[0]?"tab-item tab-item-active":"tab-item tab-item-inactive"))&&_(E,"class",O),(!G||1&e&&L!==(L="about"==t[0]?"tab-item tab-item-active":"tab-item tab-item-inactive"))&&_(B,"class",L);let o=I;I=V(t),I!==o&&(P&&(X(),tt(J[o],1,1,(()=>{J[o]=null})),Y()),~I?(P=J[I],P||(P=J[I]=W[I](t),P.c()),Z(P,1),P.m(D,null)):P=null)},i(t){G||(Z(P),G=!0)},o(t){tt(P),G=!1},d(t){t&&x(e),~I&&J[I].d(),q=!1,n(H)}}}function ee(t,e,o){let r="send";return[r,()=>o(0,r="send"),()=>o(0,r="receive"),()=>o(0,r="settings"),()=>o(0,r="about")]}!function(t,e){void 0===e&&(e={});var o=e.insertAt;if(t&&"undefined"!=typeof document){var r=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.type="text/css","top"===o&&r.firstChild?r.insertBefore(n,r.firstChild):r.appendChild(n),n.styleSheet?n.styleSheet.cssText=t:n.appendChild(document.createTextNode(t))}}("/*! tailwindcss v3.0.9 | MIT License | https://tailwindcss.com*/*,:after,:before{border:0 solid;box-sizing:border-box}:after,:before{--tw-content:\"\"}html{-webkit-text-size-adjust:100%;font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;line-height:1.5;-moz-tab-size:4;-o-tab-size:4;tab-size:4}body{line-height:inherit;margin:0}hr{border-top-width:1px;color:inherit;height:0}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{border-collapse:collapse;border-color:inherit;text-indent:0}button,input,optgroup,select,textarea{color:inherit;font-family:inherit;font-size:100%;line-height:inherit;margin:0;padding:0}button,select{text-transform:none}[type=button],[type=reset],[type=submit],button{-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dd,dl,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}fieldset{margin:0}fieldset,legend{padding:0}menu,ol,ul{list-style:none;margin:0;padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{color:#94a3b8;opacity:1}input:-ms-input-placeholder,textarea:-ms-input-placeholder{color:#94a3b8;opacity:1}input::placeholder,textarea::placeholder{color:#94a3b8;opacity:1}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{height:auto;max-width:100%}[hidden]{display:none}[multiple],[type=date],[type=datetime-local],[type=email],[type=month],[type=number],[type=password],[type=search],[type=tel],[type=text],[type=time],[type=url],[type=week],select,textarea{--tw-shadow:0 0 #0000;-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:#fff;border-color:#64748b;border-radius:0;border-width:1px;font-size:1rem;line-height:1.5rem;padding:.5rem .75rem}[multiple]:focus,[type=date]:focus,[type=datetime-local]:focus,[type=email]:focus,[type=month]:focus,[type=number]:focus,[type=password]:focus,[type=search]:focus,[type=tel]:focus,[type=text]:focus,[type=time]:focus,[type=url]:focus,[type=week]:focus,select:focus,textarea:focus{--tw-ring-inset:var(--tw-empty,/*!*/ /*!*/);--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:#0891b2;--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);border-color:#0891b2;box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow);outline:2px solid transparent;outline-offset:2px}input::-moz-placeholder,textarea::-moz-placeholder{color:#64748b;opacity:1}input:-ms-input-placeholder,textarea:-ms-input-placeholder{color:#64748b;opacity:1}input::placeholder,textarea::placeholder{color:#64748b;opacity:1}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-date-and-time-value{min-height:1.5em}select{-webkit-print-color-adjust:exact;background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3E%3Cpath stroke='%2364748b' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3E%3C/svg%3E\");background-position:right .5rem center;background-repeat:no-repeat;background-size:1.5em 1.5em;color-adjust:exact;padding-right:2.5rem}[multiple]{-webkit-print-color-adjust:unset;background-image:none;background-position:0 0;background-repeat:unset;background-size:initial;color-adjust:unset;padding-right:.75rem}[type=checkbox],[type=radio]{-webkit-print-color-adjust:exact;--tw-shadow:0 0 #0000;-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:#fff;background-origin:border-box;border-color:#64748b;border-width:1px;color:#0891b2;color-adjust:exact;display:inline-block;flex-shrink:0;height:1rem;padding:0;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;vertical-align:middle;width:1rem}[type=checkbox]{border-radius:0}[type=radio]{border-radius:100%}[type=checkbox]:focus,[type=radio]:focus{--tw-ring-inset:var(--tw-empty,/*!*/ /*!*/);--tw-ring-offset-width:2px;--tw-ring-offset-color:#fff;--tw-ring-color:#0891b2;--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow);outline:2px solid transparent;outline-offset:2px}[type=checkbox]:checked,[type=radio]:checked{background-color:currentColor;background-position:50%;background-repeat:no-repeat;background-size:100% 100%;border-color:transparent}[type=checkbox]:checked{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 16 16' fill='%23fff' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12.207 4.793a1 1 0 0 1 0 1.414l-5 5a1 1 0 0 1-1.414 0l-2-2a1 1 0 0 1 1.414-1.414L6.5 9.086l4.293-4.293a1 1 0 0 1 1.414 0z'/%3E%3C/svg%3E\")}[type=radio]:checked{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 16 16' fill='%23fff' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='8' cy='8' r='3'/%3E%3C/svg%3E\")}[type=checkbox]:checked:focus,[type=checkbox]:checked:hover,[type=radio]:checked:focus,[type=radio]:checked:hover{background-color:currentColor;border-color:transparent}[type=checkbox]:indeterminate{background-color:currentColor;background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 16 16'%3E%3Cpath stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M4 8h8'/%3E%3C/svg%3E\");background-position:50%;background-repeat:no-repeat;background-size:100% 100%;border-color:transparent}[type=checkbox]:indeterminate:focus,[type=checkbox]:indeterminate:hover{background-color:currentColor;border-color:transparent}[type=file]{background:unset;border-color:inherit;border-radius:0;border-width:0;font-size:unset;line-height:inherit;padding:0}[type=file]:focus{outline:1px auto -webkit-focus-ring-color}*,:after,:before{--tw-border-opacity:1;--tw-ring-inset:var(--tw-empty,/*!*/ /*!*/);--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(6,182,212,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;border-color:rgb(226 232 240/var(--tw-border-opacity))}.container{width:100%}@media (min-width:640px){.container{max-width:640px}}@media (min-width:768px){.container{max-width:768px}}@media (min-width:1024px){.container{max-width:1024px}}@media (min-width:1280px){.container{max-width:1280px}}@media (min-width:1536px){.container{max-width:1536px}}.open-button{--tw-bg-opacity:1;--tw-text-opacity:1;background-color:rgb(13 148 136/var(--tw-bg-opacity));border-radius:.5rem;color:rgb(226 232 240/var(--tw-text-opacity));padding:.25rem .5rem;transition-duration:.15s}.open-button:hover{--tw-bg-opacity:1;background-color:rgb(15 118 110/var(--tw-bg-opacity))}.open-button:active{--tw-bg-opacity:1;background-color:rgb(17 94 89/var(--tw-bg-opacity))}.send-input{--tw-bg-opacity:1;--tw-text-opacity:1;--tw-shadow:inset 0 2px 4px 0 rgba(0,0,0,.05);--tw-shadow-colored:inset 0 2px 4px 0 var(--tw-shadow-color);--tw-shadow:0 4px 6px -1px rgba(0,0,0,.1),0 2px 4px -2px rgba(0,0,0,.1);--tw-shadow-colored:0 4px 6px -1px var(--tw-shadow-color),0 2px 4px -2px var(--tw-shadow-color);background-color:rgb(51 65 85/var(--tw-bg-opacity));border-bottom-left-radius:.375rem;border-color:transparent;border-top-left-radius:.375rem;border-width:1px;box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow);color:rgb(226 232 240/var(--tw-text-opacity))}.send-input:focus{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);--tw-ring-opacity:1;--tw-ring-color:rgb(94 234 212/var(--tw-ring-opacity));border-color:transparent;box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000);outline:2px solid transparent;outline-offset:2px}.send-input-label{--tw-text-opacity:1;color:rgb(203 213 225/var(--tw-text-opacity));display:block;font-size:.875rem;line-height:1.25rem}.send-button{--tw-bg-opacity:1;--tw-text-opacity:1;--tw-shadow:0 4px 6px -1px rgba(0,0,0,.1),0 2px 4px -2px rgba(0,0,0,.1);--tw-shadow-colored:0 4px 6px -1px var(--tw-shadow-color),0 2px 4px -2px var(--tw-shadow-color);background-color:rgb(13 148 136/var(--tw-bg-opacity));border-radius:.5rem;box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow);color:rgb(226 232 240/var(--tw-text-opacity));padding:.5rem 1rem;transition-duration:.15s}.send-button:hover{--tw-bg-opacity:1;background-color:rgb(15 118 110/var(--tw-bg-opacity))}.send-button:active{--tw-bg-opacity:1;background-color:rgb(17 94 89/var(--tw-bg-opacity))}.send-button:disabled{opacity:.5}.copy-button{--tw-bg-opacity:1;--tw-text-opacity:1;background-color:rgb(13 148 136/var(--tw-bg-opacity));border-bottom-right-radius:.375rem;border-top-right-radius:.375rem;color:rgb(226 232 240/var(--tw-text-opacity));padding:.5rem;transition-duration:.15s;width:2.5rem}.copy-button:hover{--tw-bg-opacity:1;background-color:rgb(15 118 110/var(--tw-bg-opacity))}.copy-button:active{--tw-bg-opacity:1;background-color:rgb(17 94 89/var(--tw-bg-opacity))}.copy-button:disabled{opacity:.5}.receive-input{--tw-bg-opacity:1;--tw-text-opacity:1;--tw-shadow:inset 0 2px 4px 0 rgba(0,0,0,.05);--tw-shadow-colored:inset 0 2px 4px 0 var(--tw-shadow-color);--tw-shadow:0 4px 6px -1px rgba(0,0,0,.1),0 2px 4px -2px rgba(0,0,0,.1);--tw-shadow-colored:0 4px 6px -1px var(--tw-shadow-color),0 2px 4px -2px var(--tw-shadow-color);background-color:rgb(30 41 59/var(--tw-bg-opacity));border-bottom-left-radius:.375rem;border-color:transparent;border-top-left-radius:.375rem;border-width:1px;box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow);color:rgb(226 232 240/var(--tw-text-opacity))}.receive-input:focus{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);--tw-ring-opacity:1;--tw-ring-color:rgb(94 234 212/var(--tw-ring-opacity));border-color:transparent;box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000);outline:2px solid transparent;outline-offset:2px}.receive-input-label{--tw-text-opacity:1;color:rgb(203 213 225/var(--tw-text-opacity));display:block;font-size:.875rem;line-height:1.25rem}.receive-button{--tw-bg-opacity:1;--tw-text-opacity:1;--tw-shadow:0 4px 6px -1px rgba(0,0,0,.1),0 2px 4px -2px rgba(0,0,0,.1);--tw-shadow-colored:0 4px 6px -1px var(--tw-shadow-color),0 2px 4px -2px var(--tw-shadow-color);background-color:rgb(13 148 136/var(--tw-bg-opacity));border-bottom-right-radius:.375rem;border-top-right-radius:.375rem;box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow);color:rgb(226 232 240/var(--tw-text-opacity));padding:.5rem 1rem;transition-duration:.15s}.receive-button:hover{--tw-bg-opacity:1;background-color:rgb(15 118 110/var(--tw-bg-opacity))}.receive-button:active{--tw-bg-opacity:1;background-color:rgb(17 94 89/var(--tw-bg-opacity))}.receive-button:disabled{opacity:.5}.about-button{--tw-bg-opacity:1;--tw-text-opacity:1;--tw-shadow:0 4px 6px -1px rgba(0,0,0,.1),0 2px 4px -2px rgba(0,0,0,.1);--tw-shadow-colored:0 4px 6px -1px var(--tw-shadow-color),0 2px 4px -2px var(--tw-shadow-color);background-color:rgb(13 148 136/var(--tw-bg-opacity));border-radius:.375rem;box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow);color:rgb(226 232 240/var(--tw-text-opacity));padding:.25rem .5rem;transition-duration:.15s}.about-button:hover{--tw-bg-opacity:1;background-color:rgb(15 118 110/var(--tw-bg-opacity))}.about-button:active{--tw-bg-opacity:1;background-color:rgb(17 94 89/var(--tw-bg-opacity))}.send-icon-container{background-image:url(assets/images/upload-solid.svg)}.receive-icon-container,.send-icon-container{--tw-bg-opacity:0.75;background-color:rgb(19 78 74/var(--tw-bg-opacity));background-position:50%;background-repeat:no-repeat;background-size:60%}.receive-icon-container{background-image:url(assets/images/download-solid.svg)}.file-list{list-style-position:inside;list-style-type:disc}.cursor-fix{cursor:default}.tab-item{--tw-shadow:0 10px 15px -3px rgba(0,0,0,.1),0 4px 6px -4px rgba(0,0,0,.1);--tw-shadow-colored:0 10px 15px -3px var(--tw-shadow-color),0 4px 6px -4px var(--tw-shadow-color);border-radius:.25rem;box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow);display:block;display:flex;flex-direction:row;font-size:.75rem;font-weight:700;justify-content:center;line-height:1rem;line-height:1.5;padding:.75rem;text-transform:uppercase;width:7rem}.tab-item-inactive{--tw-bg-opacity:1;--tw-text-opacity:1;background-color:rgb(241 245 249/var(--tw-bg-opacity));color:rgb(17 94 89/var(--tw-text-opacity))}.tab-item-active{--tw-bg-opacity:1;--tw-text-opacity:1;background-color:rgb(17 94 89/var(--tw-bg-opacity));color:rgb(241 245 249/var(--tw-text-opacity))}.tab-container{width:100%}@media (min-width:640px){.tab-container{max-width:640px}}@media (min-width:768px){.tab-container{max-width:768px}}@media (min-width:1024px){.tab-container{max-width:1024px}}@media (min-width:1280px){.tab-container{max-width:1280px}}@media (min-width:1536px){.tab-container{max-width:1536px}}.tab-container{--tw-bg-opacity:0.5;--tw-shadow:0 10px 15px -3px rgba(0,0,0,.1),0 4px 6px -4px rgba(0,0,0,.1);--tw-shadow-colored:0 10px 15px -3px var(--tw-shadow-color),0 4px 6px -4px var(--tw-shadow-color);background-color:rgb(51 65 85/var(--tw-bg-opacity));border-radius:.5rem;box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow);height:82%;margin-left:auto;margin-right:auto;width:91.666667%;z-index:10}.progress-outer,.tab-container{padding:1rem}.progress-outer{--tw-bg-opacity:0.9;background-color:rgb(30 41 59/var(--tw-bg-opacity));bottom:0;height:100%;left:0;margin:auto;position:absolute;right:0;top:0;width:100%;z-index:0}.progress-inner{position:relative;top:33.333333%}.send-progress-old{margin-left:auto;margin-right:auto;padding:.5rem;width:75%}.icon{height:16px;width:16px}.icon,.icon-lg{background-repeat:no-repeat}.icon-lg{height:64px;width:64px}.copy-icon{background-repeat:no-repeat;height:1.5rem;-webkit-mask-image:url(assets/images/copy-regular.svg);mask-image:url(assets/images/copy-regular.svg);width:1.5rem}.copy-icon,.receive-tab-icon{--tw-bg-opacity:1;background-color:rgb(15 23 42/var(--tw-bg-opacity));-webkit-mask-position:center;mask-position:center;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat}.receive-tab-icon{-webkit-mask-image:url(assets/images/download-solid.svg);mask-image:url(assets/images/download-solid.svg)}.send-tab-icon{-webkit-mask-image:url(assets/images/paper-plane-solid.svg);mask-image:url(assets/images/paper-plane-solid.svg)}.send-tab-icon,.settings-tab-icon{--tw-bg-opacity:1;background-color:rgb(15 23 42/var(--tw-bg-opacity));-webkit-mask-position:center;mask-position:center;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat}.settings-tab-icon{-webkit-mask-image:url(assets/images/cog-solid.svg);mask-image:url(assets/images/cog-solid.svg)}.about-tab-icon{--tw-bg-opacity:1;background-color:rgb(15 23 42/var(--tw-bg-opacity));-webkit-mask-image:url(assets/images/info-circle-solid.svg);mask-image:url(assets/images/info-circle-solid.svg);-webkit-mask-position:center;mask-position:center;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat}.send-file-icon{-webkit-mask-image:url(assets/images/file-upload-solid.svg);mask-image:url(assets/images/file-upload-solid.svg)}.receive-file-icon,.send-file-icon{--tw-bg-opacity:1;background-color:rgb(226 232 240/var(--tw-bg-opacity));-webkit-mask-position:center;mask-position:center;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat}.receive-file-icon{-webkit-mask-image:url(assets/images/file-download-solid.svg);mask-image:url(assets/images/file-download-solid.svg)}.folder-select-icon{--tw-bg-opacity:1;--tw-shadow:0 4px 6px -1px rgba(0,0,0,.1),0 2px 4px -2px rgba(0,0,0,.1);--tw-shadow-colored:0 4px 6px -1px var(--tw-shadow-color),0 2px 4px -2px var(--tw-shadow-color);background-color:rgb(203 213 225/var(--tw-bg-opacity));box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow);content:\"\";display:block;height:6rem;-webkit-mask-image:url(assets/images/folder-regular.svg);mask-image:url(assets/images/folder-regular.svg);-webkit-mask-position:center;mask-position:center;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:contain;mask-size:contain;transition-duration:.3s;width:6rem}.folder-select-icon:hover{--tw-bg-opacity:1;background-color:rgb(20 184 166/var(--tw-bg-opacity))}.file-select-icon{--tw-bg-opacity:1;--tw-shadow:0 4px 6px -1px rgba(0,0,0,.1),0 2px 4px -2px rgba(0,0,0,.1);--tw-shadow-colored:0 4px 6px -1px var(--tw-shadow-color),0 2px 4px -2px var(--tw-shadow-color);background-color:rgb(203 213 225/var(--tw-bg-opacity));box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow);content:\"\";display:block;height:6rem;-webkit-mask-image:url(assets/images/file-regular.svg);mask-image:url(assets/images/file-regular.svg);-webkit-mask-position:center;mask-position:center;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:contain;mask-size:contain;transition-duration:.3s;width:6rem}.file-select-icon:hover{--tw-bg-opacity:1;background-color:rgb(20 184 166/var(--tw-bg-opacity))}.cancel-button{--tw-bg-opacity:1;--tw-text-opacity:1;background-color:rgb(153 27 27/var(--tw-bg-opacity));border-radius:.5rem;color:rgb(226 232 240/var(--tw-text-opacity));padding:.5rem 1rem;transition-duration:.15s}.cancel-button:hover{--tw-bg-opacity:1;background-color:rgb(185 28 28/var(--tw-bg-opacity))}.cancel-button:active{--tw-bg-opacity:1;background-color:rgb(127 29 29/var(--tw-bg-opacity))}.cancel-button:disabled{opacity:.5}.tooltip{--tw-border-opacity:1;--tw-bg-opacity:1;--tw-text-opacity:1;--tw-shadow:0 10px 15px -3px rgba(0,0,0,.1),0 4px 6px -4px rgba(0,0,0,.1);--tw-shadow-colored:0 10px 15px -3px var(--tw-shadow-color),0 4px 6px -4px var(--tw-shadow-color);background-color:rgb(226 232 240/var(--tw-bg-opacity));border-color:rgb(15 118 110/var(--tw-border-opacity));border-radius:.25rem;border-width:1px;box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow);color:rgb(30 41 59/var(--tw-text-opacity));font-size:.875rem;line-height:1.25rem;margin-top:-2rem;padding:.25rem;position:absolute;visibility:hidden}.has-tooltip:hover .tooltip{visibility:visible;z-index:50}.checkbox{--tw-border-opacity:1;--tw-bg-opacity:1;background-color:rgb(15 118 110/var(--tw-bg-opacity));border-color:rgb(203 213 225/var(--tw-border-opacity));border-radius:.25rem;border-width:1px;height:1rem;width:1rem}.checkbox:focus{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);--tw-ring-opacity:1;--tw-ring-color:rgb(94 234 212/var(--tw-ring-opacity));box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.settings-button{--tw-bg-opacity:1;--tw-text-opacity:1;background-color:rgb(13 148 136/var(--tw-bg-opacity));border-radius:.5rem;color:rgb(226 232 240/var(--tw-text-opacity));font-size:.875rem;line-height:1.25rem;padding:.25rem;transition-duration:.15s}.settings-button:hover{--tw-bg-opacity:1;background-color:rgb(15 118 110/var(--tw-bg-opacity))}.settings-button:active{--tw-bg-opacity:1;background-color:rgb(17 94 89/var(--tw-bg-opacity))}.settings-button:disabled{opacity:.5}.visible{visibility:visible}.invisible{visibility:hidden}.absolute{position:absolute}.relative{position:relative}.inset-0{bottom:0;left:0;right:0;top:0}.z-0{z-index:0}.m-2{margin:.5rem}.mx-auto{margin-left:auto;margin-right:auto}.my-auto{margin-bottom:auto;margin-top:auto}.my-2{margin-bottom:.5rem;margin-top:.5rem}.-mt-8{margin-top:-2rem}.mr-1{margin-right:.25rem}.mb-1{margin-bottom:.25rem}.mt-2{margin-top:.5rem}.mt-1{margin-top:.25rem}.ml-1{margin-left:.25rem}.mb-2{margin-bottom:.5rem}.block{display:block}.inline-block{display:inline-block}.flex{display:flex}.inline-flex{display:inline-flex}.grid{display:grid}.h-24{height:6rem}.h-4{height:1rem}.h-56{height:14rem}.h-full{height:100%}.h-36{height:9rem}.w-28{width:7rem}.w-11\\/12{width:91.666667%}.w-full{width:100%}.w-24{width:6rem}.w-4{width:1rem}.w-72{width:18rem}.w-60{width:15rem}.max-w-md{max-width:28rem}@-webkit-keyframes pulse{50%{opacity:.5}}@keyframes pulse{50%{opacity:.5}}.animate-pulse{-webkit-animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite;animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite}.list-disc{list-style-type:disc}.grid-flow-row{grid-auto-flow:row}.flex-row{flex-direction:row}.flex-col{flex-direction:column}.place-items-center{place-items:center}.content-center{align-content:center}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.justify-around{justify-content:space-around}.justify-items-center{justify-items:center}.space-x-1>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-left:calc(.25rem*(1 - var(--tw-space-x-reverse)));margin-right:calc(.25rem*var(--tw-space-x-reverse))}.space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-left:calc(.5rem*(1 - var(--tw-space-x-reverse)));margin-right:calc(.5rem*var(--tw-space-x-reverse))}.space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(.5rem*var(--tw-space-y-reverse));margin-top:calc(.5rem*(1 - var(--tw-space-y-reverse)))}.rounded-lg{border-radius:.5rem}.rounded-md{border-radius:.375rem}.rounded{border-radius:.25rem}.rounded-full{border-radius:9999px}.rounded-l-md{border-bottom-left-radius:.375rem;border-top-left-radius:.375rem}.rounded-r-md{border-bottom-right-radius:.375rem;border-top-right-radius:.375rem}.border{border-width:1px}.border-2{border-width:2px}.border-transparent{border-color:transparent}.border-green-700{--tw-border-opacity:1;border-color:rgb(15 118 110/var(--tw-border-opacity))}.border-gray-300{--tw-border-opacity:1;border-color:rgb(203 213 225/var(--tw-border-opacity))}.border-green-300{--tw-border-opacity:1;border-color:rgb(94 234 212/var(--tw-border-opacity))}.bg-green-600{--tw-bg-opacity:1;background-color:rgb(13 148 136/var(--tw-bg-opacity))}.bg-gray-700{--tw-bg-opacity:1;background-color:rgb(51 65 85/var(--tw-bg-opacity))}.bg-gray-800{--tw-bg-opacity:1;background-color:rgb(30 41 59/var(--tw-bg-opacity))}.bg-green-900{--tw-bg-opacity:1;background-color:rgb(19 78 74/var(--tw-bg-opacity))}.bg-gray-300{--tw-bg-opacity:1;background-color:rgb(203 213 225/var(--tw-bg-opacity))}.bg-red-800{--tw-bg-opacity:1;background-color:rgb(153 27 27/var(--tw-bg-opacity))}.bg-gray-200{--tw-bg-opacity:1;background-color:rgb(226 232 240/var(--tw-bg-opacity))}.bg-green-700{--tw-bg-opacity:1;background-color:rgb(15 118 110/var(--tw-bg-opacity))}.bg-purple-500{--tw-bg-opacity:1;background-color:rgb(139 92 246/var(--tw-bg-opacity))}.bg-green-500{--tw-bg-opacity:1;background-color:rgb(20 184 166/var(--tw-bg-opacity))}.bg-opacity-50{--tw-bg-opacity:0.5}.bg-opacity-90{--tw-bg-opacity:0.9}.bg-opacity-60{--tw-bg-opacity:0.6}.bg-center{background-position:50%}.bg-no-repeat{background-repeat:no-repeat}.p-2{padding:.5rem}.p-1{padding:.25rem}.px-2{padding-left:.5rem;padding-right:.5rem}.py-1{padding-bottom:.25rem;padding-top:.25rem}.px-4{padding-left:1rem;padding-right:1rem}.py-2{padding-bottom:.5rem;padding-top:.5rem}.px-3{padding-left:.75rem;padding-right:.75rem}.py-3{padding-bottom:.75rem;padding-top:.75rem}.py-4{padding-bottom:1rem;padding-top:1rem}.px-1{padding-left:.25rem;padding-right:.25rem}.py-8{padding-bottom:2rem;padding-top:2rem}.pt-2{padding-top:.5rem}.pb-2{padding-bottom:.5rem}.text-center{text-align:center}.font-sans{font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xs{font-size:.75rem;line-height:1rem}.text-base{font-size:1rem;line-height:1.5rem}.font-bold{font-weight:700}.font-medium{font-weight:500}.uppercase{text-transform:uppercase}.leading-normal{line-height:1.5}.text-gray-200{--tw-text-opacity:1;color:rgb(226 232 240/var(--tw-text-opacity))}.text-green-800{--tw-text-opacity:1;color:rgb(17 94 89/var(--tw-text-opacity))}.text-gray-100{--tw-text-opacity:1;color:rgb(241 245 249/var(--tw-text-opacity))}.text-gray-800{--tw-text-opacity:1;color:rgb(30 41 59/var(--tw-text-opacity))}.text-white{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity))}.text-blue-500{--tw-text-opacity:1;color:rgb(6 182 212/var(--tw-text-opacity))}.text-gray-400{--tw-text-opacity:1;color:rgb(148 163 184/var(--tw-text-opacity))}.text-gray-300{--tw-text-opacity:1;color:rgb(203 213 225/var(--tw-text-opacity))}.shadow-inner{--tw-shadow:inset 0 2px 4px 0 rgba(0,0,0,.05);--tw-shadow-colored:inset 0 2px 4px 0 var(--tw-shadow-color)}.shadow-inner,.shadow-md{box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.shadow-md{--tw-shadow:0 4px 6px -1px rgba(0,0,0,.1),0 2px 4px -2px rgba(0,0,0,.1);--tw-shadow-colored:0 4px 6px -1px var(--tw-shadow-color),0 2px 4px -2px var(--tw-shadow-color)}.shadow-lg{--tw-shadow:0 10px 15px -3px rgba(0,0,0,.1),0 4px 6px -4px rgba(0,0,0,.1);--tw-shadow-colored:0 10px 15px -3px var(--tw-shadow-color),0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.duration-150{transition-duration:.15s}.duration-300{transition-duration:.3s}main{height:100%;width:100%}div{overscroll:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.hover\\:bg-green-700:hover{--tw-bg-opacity:1;background-color:rgb(15 118 110/var(--tw-bg-opacity))}.hover\\:bg-green-500:hover{--tw-bg-opacity:1;background-color:rgb(20 184 166/var(--tw-bg-opacity))}.hover\\:bg-red-700:hover{--tw-bg-opacity:1;background-color:rgb(185 28 28/var(--tw-bg-opacity))}.focus\\:border-transparent:focus{border-color:transparent}.focus\\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\\:ring-2:focus{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.focus\\:ring-green-300:focus{--tw-ring-opacity:1;--tw-ring-color:rgb(94 234 212/var(--tw-ring-opacity))}.active\\:bg-green-800:active{--tw-bg-opacity:1;background-color:rgb(17 94 89/var(--tw-bg-opacity))}.disabled\\:opacity-50:disabled{opacity:.5}");return new class extends lt{constructor(t){super(),ct(this,t,ee,te,a,{})}}({target:document.body})}(); //# sourceMappingURL=bundle.js.map diff --git a/frontend/dist/bundle.js.map b/frontend/dist/bundle.js.map index 57bbd29..e7d58f7 100644 --- a/frontend/dist/bundle.js.map +++ b/frontend/dist/bundle.js.map @@ -1 +1 @@ -{"version":3,"file":"bundle.js","sources":["../node_modules/svelte/internal/index.mjs","../node_modules/svelte/easing/index.mjs","../node_modules/svelte/transition/index.mjs","../wailsjs/go/main/App.js","../src/progress.svelte","../src/sender.svelte","../src/receiver.svelte","../src/settings.svelte","../src/about.svelte","../src/App.svelte","../node_modules/style-inject/dist/style-inject.es.js","../src/main.js"],"sourcesContent":["function noop() { }\nconst identity = x => x;\nfunction assign(tar, src) {\n // @ts-ignore\n for (const k in src)\n tar[k] = src[k];\n return tar;\n}\nfunction is_promise(value) {\n return value && typeof value === 'object' && typeof value.then === 'function';\n}\nfunction add_location(element, file, line, column, char) {\n element.__svelte_meta = {\n loc: { file, line, column, char }\n };\n}\nfunction run(fn) {\n return fn();\n}\nfunction blank_object() {\n return Object.create(null);\n}\nfunction run_all(fns) {\n fns.forEach(run);\n}\nfunction is_function(thing) {\n return typeof thing === 'function';\n}\nfunction safe_not_equal(a, b) {\n return a != a ? b == b : a !== b || ((a && typeof a === 'object') || typeof a === 'function');\n}\nfunction not_equal(a, b) {\n return a != a ? b == b : a !== b;\n}\nfunction is_empty(obj) {\n return Object.keys(obj).length === 0;\n}\nfunction validate_store(store, name) {\n if (store != null && typeof store.subscribe !== 'function') {\n throw new Error(`'${name}' is not a store with a 'subscribe' method`);\n }\n}\nfunction subscribe(store, ...callbacks) {\n if (store == null) {\n return noop;\n }\n const unsub = store.subscribe(...callbacks);\n return unsub.unsubscribe ? () => unsub.unsubscribe() : unsub;\n}\nfunction get_store_value(store) {\n let value;\n subscribe(store, _ => value = _)();\n return value;\n}\nfunction component_subscribe(component, store, callback) {\n component.$$.on_destroy.push(subscribe(store, callback));\n}\nfunction create_slot(definition, ctx, $$scope, fn) {\n if (definition) {\n const slot_ctx = get_slot_context(definition, ctx, $$scope, fn);\n return definition[0](slot_ctx);\n }\n}\nfunction get_slot_context(definition, ctx, $$scope, fn) {\n return definition[1] && fn\n ? assign($$scope.ctx.slice(), definition[1](fn(ctx)))\n : $$scope.ctx;\n}\nfunction get_slot_changes(definition, $$scope, dirty, fn) {\n if (definition[2] && fn) {\n const lets = definition[2](fn(dirty));\n if ($$scope.dirty === undefined) {\n return lets;\n }\n if (typeof lets === 'object') {\n const merged = [];\n const len = Math.max($$scope.dirty.length, lets.length);\n for (let i = 0; i < len; i += 1) {\n merged[i] = $$scope.dirty[i] | lets[i];\n }\n return merged;\n }\n return $$scope.dirty | lets;\n }\n return $$scope.dirty;\n}\nfunction update_slot(slot, slot_definition, ctx, $$scope, dirty, get_slot_changes_fn, get_slot_context_fn) {\n const slot_changes = get_slot_changes(slot_definition, $$scope, dirty, get_slot_changes_fn);\n if (slot_changes) {\n const slot_context = get_slot_context(slot_definition, ctx, $$scope, get_slot_context_fn);\n slot.p(slot_context, slot_changes);\n }\n}\nfunction update_slot_spread(slot, slot_definition, ctx, $$scope, dirty, get_slot_changes_fn, get_slot_spread_changes_fn, get_slot_context_fn) {\n const slot_changes = get_slot_spread_changes_fn(dirty) | get_slot_changes(slot_definition, $$scope, dirty, get_slot_changes_fn);\n if (slot_changes) {\n const slot_context = get_slot_context(slot_definition, ctx, $$scope, get_slot_context_fn);\n slot.p(slot_context, slot_changes);\n }\n}\nfunction exclude_internal_props(props) {\n const result = {};\n for (const k in props)\n if (k[0] !== '$')\n result[k] = props[k];\n return result;\n}\nfunction compute_rest_props(props, keys) {\n const rest = {};\n keys = new Set(keys);\n for (const k in props)\n if (!keys.has(k) && k[0] !== '$')\n rest[k] = props[k];\n return rest;\n}\nfunction compute_slots(slots) {\n const result = {};\n for (const key in slots) {\n result[key] = true;\n }\n return result;\n}\nfunction once(fn) {\n let ran = false;\n return function (...args) {\n if (ran)\n return;\n ran = true;\n fn.call(this, ...args);\n };\n}\nfunction null_to_empty(value) {\n return value == null ? '' : value;\n}\nfunction set_store_value(store, ret, value = ret) {\n store.set(value);\n return ret;\n}\nconst has_prop = (obj, prop) => Object.prototype.hasOwnProperty.call(obj, prop);\nfunction action_destroyer(action_result) {\n return action_result && is_function(action_result.destroy) ? action_result.destroy : noop;\n}\n\nconst is_client = typeof window !== 'undefined';\nlet now = is_client\n ? () => window.performance.now()\n : () => Date.now();\nlet raf = is_client ? cb => requestAnimationFrame(cb) : noop;\n// used internally for testing\nfunction set_now(fn) {\n now = fn;\n}\nfunction set_raf(fn) {\n raf = fn;\n}\n\nconst tasks = new Set();\nfunction run_tasks(now) {\n tasks.forEach(task => {\n if (!task.c(now)) {\n tasks.delete(task);\n task.f();\n }\n });\n if (tasks.size !== 0)\n raf(run_tasks);\n}\n/**\n * For testing purposes only!\n */\nfunction clear_loops() {\n tasks.clear();\n}\n/**\n * Creates a new task that runs on each raf frame\n * until it returns a falsy value or is aborted\n */\nfunction loop(callback) {\n let task;\n if (tasks.size === 0)\n raf(run_tasks);\n return {\n promise: new Promise(fulfill => {\n tasks.add(task = { c: callback, f: fulfill });\n }),\n abort() {\n tasks.delete(task);\n }\n };\n}\n\n// Track which nodes are claimed during hydration. Unclaimed nodes can then be removed from the DOM\n// at the end of hydration without touching the remaining nodes.\nlet is_hydrating = false;\nfunction start_hydrating() {\n is_hydrating = true;\n}\nfunction end_hydrating() {\n is_hydrating = false;\n}\nfunction upper_bound(low, high, key, value) {\n // Return first index of value larger than input value in the range [low, high)\n while (low < high) {\n const mid = low + ((high - low) >> 1);\n if (key(mid) <= value) {\n low = mid + 1;\n }\n else {\n high = mid;\n }\n }\n return low;\n}\nfunction init_hydrate(target) {\n if (target.hydrate_init)\n return;\n target.hydrate_init = true;\n // We know that all children have claim_order values since the unclaimed have been detached\n const children = target.childNodes;\n /*\n * Reorder claimed children optimally.\n * We can reorder claimed children optimally by finding the longest subsequence of\n * nodes that are already claimed in order and only moving the rest. The longest\n * subsequence subsequence of nodes that are claimed in order can be found by\n * computing the longest increasing subsequence of .claim_order values.\n *\n * This algorithm is optimal in generating the least amount of reorder operations\n * possible.\n *\n * Proof:\n * We know that, given a set of reordering operations, the nodes that do not move\n * always form an increasing subsequence, since they do not move among each other\n * meaning that they must be already ordered among each other. Thus, the maximal\n * set of nodes that do not move form a longest increasing subsequence.\n */\n // Compute longest increasing subsequence\n // m: subsequence length j => index k of smallest value that ends an increasing subsequence of length j\n const m = new Int32Array(children.length + 1);\n // Predecessor indices + 1\n const p = new Int32Array(children.length);\n m[0] = -1;\n let longest = 0;\n for (let i = 0; i < children.length; i++) {\n const current = children[i].claim_order;\n // Find the largest subsequence length such that it ends in a value less than our current value\n // upper_bound returns first greater value, so we subtract one\n const seqLen = upper_bound(1, longest + 1, idx => children[m[idx]].claim_order, current) - 1;\n p[i] = m[seqLen] + 1;\n const newLen = seqLen + 1;\n // We can guarantee that current is the smallest value. Otherwise, we would have generated a longer sequence.\n m[newLen] = i;\n longest = Math.max(newLen, longest);\n }\n // The longest increasing subsequence of nodes (initially reversed)\n const lis = [];\n // The rest of the nodes, nodes that will be moved\n const toMove = [];\n let last = children.length - 1;\n for (let cur = m[longest] + 1; cur != 0; cur = p[cur - 1]) {\n lis.push(children[cur - 1]);\n for (; last >= cur; last--) {\n toMove.push(children[last]);\n }\n last--;\n }\n for (; last >= 0; last--) {\n toMove.push(children[last]);\n }\n lis.reverse();\n // We sort the nodes being moved to guarantee that their insertion order matches the claim order\n toMove.sort((a, b) => a.claim_order - b.claim_order);\n // Finally, we move the nodes\n for (let i = 0, j = 0; i < toMove.length; i++) {\n while (j < lis.length && toMove[i].claim_order >= lis[j].claim_order) {\n j++;\n }\n const anchor = j < lis.length ? lis[j] : null;\n target.insertBefore(toMove[i], anchor);\n }\n}\nfunction append(target, node) {\n if (is_hydrating) {\n init_hydrate(target);\n if ((target.actual_end_child === undefined) || ((target.actual_end_child !== null) && (target.actual_end_child.parentElement !== target))) {\n target.actual_end_child = target.firstChild;\n }\n if (node !== target.actual_end_child) {\n target.insertBefore(node, target.actual_end_child);\n }\n else {\n target.actual_end_child = node.nextSibling;\n }\n }\n else if (node.parentNode !== target) {\n target.appendChild(node);\n }\n}\nfunction insert(target, node, anchor) {\n if (is_hydrating && !anchor) {\n append(target, node);\n }\n else if (node.parentNode !== target || (anchor && node.nextSibling !== anchor)) {\n target.insertBefore(node, anchor || null);\n }\n}\nfunction detach(node) {\n node.parentNode.removeChild(node);\n}\nfunction destroy_each(iterations, detaching) {\n for (let i = 0; i < iterations.length; i += 1) {\n if (iterations[i])\n iterations[i].d(detaching);\n }\n}\nfunction element(name) {\n return document.createElement(name);\n}\nfunction element_is(name, is) {\n return document.createElement(name, { is });\n}\nfunction object_without_properties(obj, exclude) {\n const target = {};\n for (const k in obj) {\n if (has_prop(obj, k)\n // @ts-ignore\n && exclude.indexOf(k) === -1) {\n // @ts-ignore\n target[k] = obj[k];\n }\n }\n return target;\n}\nfunction svg_element(name) {\n return document.createElementNS('http://www.w3.org/2000/svg', name);\n}\nfunction text(data) {\n return document.createTextNode(data);\n}\nfunction space() {\n return text(' ');\n}\nfunction empty() {\n return text('');\n}\nfunction listen(node, event, handler, options) {\n node.addEventListener(event, handler, options);\n return () => node.removeEventListener(event, handler, options);\n}\nfunction prevent_default(fn) {\n return function (event) {\n event.preventDefault();\n // @ts-ignore\n return fn.call(this, event);\n };\n}\nfunction stop_propagation(fn) {\n return function (event) {\n event.stopPropagation();\n // @ts-ignore\n return fn.call(this, event);\n };\n}\nfunction self(fn) {\n return function (event) {\n // @ts-ignore\n if (event.target === this)\n fn.call(this, event);\n };\n}\nfunction attr(node, attribute, value) {\n if (value == null)\n node.removeAttribute(attribute);\n else if (node.getAttribute(attribute) !== value)\n node.setAttribute(attribute, value);\n}\nfunction set_attributes(node, attributes) {\n // @ts-ignore\n const descriptors = Object.getOwnPropertyDescriptors(node.__proto__);\n for (const key in attributes) {\n if (attributes[key] == null) {\n node.removeAttribute(key);\n }\n else if (key === 'style') {\n node.style.cssText = attributes[key];\n }\n else if (key === '__value') {\n node.value = node[key] = attributes[key];\n }\n else if (descriptors[key] && descriptors[key].set) {\n node[key] = attributes[key];\n }\n else {\n attr(node, key, attributes[key]);\n }\n }\n}\nfunction set_svg_attributes(node, attributes) {\n for (const key in attributes) {\n attr(node, key, attributes[key]);\n }\n}\nfunction set_custom_element_data(node, prop, value) {\n if (prop in node) {\n node[prop] = typeof node[prop] === 'boolean' && value === '' ? true : value;\n }\n else {\n attr(node, prop, value);\n }\n}\nfunction xlink_attr(node, attribute, value) {\n node.setAttributeNS('http://www.w3.org/1999/xlink', attribute, value);\n}\nfunction get_binding_group_value(group, __value, checked) {\n const value = new Set();\n for (let i = 0; i < group.length; i += 1) {\n if (group[i].checked)\n value.add(group[i].__value);\n }\n if (!checked) {\n value.delete(__value);\n }\n return Array.from(value);\n}\nfunction to_number(value) {\n return value === '' ? null : +value;\n}\nfunction time_ranges_to_array(ranges) {\n const array = [];\n for (let i = 0; i < ranges.length; i += 1) {\n array.push({ start: ranges.start(i), end: ranges.end(i) });\n }\n return array;\n}\nfunction children(element) {\n return Array.from(element.childNodes);\n}\nfunction claim_node(nodes, predicate, processNode, createNode, dontUpdateLastIndex = false) {\n // Try to find nodes in an order such that we lengthen the longest increasing subsequence\n if (nodes.claim_info === undefined) {\n nodes.claim_info = { last_index: 0, total_claimed: 0 };\n }\n const resultNode = (() => {\n // We first try to find an element after the previous one\n for (let i = nodes.claim_info.last_index; i < nodes.length; i++) {\n const node = nodes[i];\n if (predicate(node)) {\n processNode(node);\n nodes.splice(i, 1);\n if (!dontUpdateLastIndex) {\n nodes.claim_info.last_index = i;\n }\n return node;\n }\n }\n // Otherwise, we try to find one before\n // We iterate in reverse so that we don't go too far back\n for (let i = nodes.claim_info.last_index - 1; i >= 0; i--) {\n const node = nodes[i];\n if (predicate(node)) {\n processNode(node);\n nodes.splice(i, 1);\n if (!dontUpdateLastIndex) {\n nodes.claim_info.last_index = i;\n }\n else {\n // Since we spliced before the last_index, we decrease it\n nodes.claim_info.last_index--;\n }\n return node;\n }\n }\n // If we can't find any matching node, we create a new one\n return createNode();\n })();\n resultNode.claim_order = nodes.claim_info.total_claimed;\n nodes.claim_info.total_claimed += 1;\n return resultNode;\n}\nfunction claim_element(nodes, name, attributes, svg) {\n return claim_node(nodes, (node) => node.nodeName === name, (node) => {\n const remove = [];\n for (let j = 0; j < node.attributes.length; j++) {\n const attribute = node.attributes[j];\n if (!attributes[attribute.name]) {\n remove.push(attribute.name);\n }\n }\n remove.forEach(v => node.removeAttribute(v));\n }, () => svg ? svg_element(name) : element(name));\n}\nfunction claim_text(nodes, data) {\n return claim_node(nodes, (node) => node.nodeType === 3, (node) => {\n node.data = '' + data;\n }, () => text(data), true // Text nodes should not update last index since it is likely not worth it to eliminate an increasing subsequence of actual elements\n );\n}\nfunction claim_space(nodes) {\n return claim_text(nodes, ' ');\n}\nfunction find_comment(nodes, text, start) {\n for (let i = start; i < nodes.length; i += 1) {\n const node = nodes[i];\n if (node.nodeType === 8 /* comment node */ && node.textContent.trim() === text) {\n return i;\n }\n }\n return nodes.length;\n}\nfunction claim_html_tag(nodes) {\n // find html opening tag\n const start_index = find_comment(nodes, 'HTML_TAG_START', 0);\n const end_index = find_comment(nodes, 'HTML_TAG_END', start_index);\n if (start_index === end_index) {\n return new HtmlTag();\n }\n const html_tag_nodes = nodes.splice(start_index, end_index + 1);\n detach(html_tag_nodes[0]);\n detach(html_tag_nodes[html_tag_nodes.length - 1]);\n return new HtmlTag(html_tag_nodes.slice(1, html_tag_nodes.length - 1));\n}\nfunction set_data(text, data) {\n data = '' + data;\n if (text.wholeText !== data)\n text.data = data;\n}\nfunction set_input_value(input, value) {\n input.value = value == null ? '' : value;\n}\nfunction set_input_type(input, type) {\n try {\n input.type = type;\n }\n catch (e) {\n // do nothing\n }\n}\nfunction set_style(node, key, value, important) {\n node.style.setProperty(key, value, important ? 'important' : '');\n}\nfunction select_option(select, value) {\n for (let i = 0; i < select.options.length; i += 1) {\n const option = select.options[i];\n if (option.__value === value) {\n option.selected = true;\n return;\n }\n }\n}\nfunction select_options(select, value) {\n for (let i = 0; i < select.options.length; i += 1) {\n const option = select.options[i];\n option.selected = ~value.indexOf(option.__value);\n }\n}\nfunction select_value(select) {\n const selected_option = select.querySelector(':checked') || select.options[0];\n return selected_option && selected_option.__value;\n}\nfunction select_multiple_value(select) {\n return [].map.call(select.querySelectorAll(':checked'), option => option.__value);\n}\n// unfortunately this can't be a constant as that wouldn't be tree-shakeable\n// so we cache the result instead\nlet crossorigin;\nfunction is_crossorigin() {\n if (crossorigin === undefined) {\n crossorigin = false;\n try {\n if (typeof window !== 'undefined' && window.parent) {\n void window.parent.document;\n }\n }\n catch (error) {\n crossorigin = true;\n }\n }\n return crossorigin;\n}\nfunction add_resize_listener(node, fn) {\n const computed_style = getComputedStyle(node);\n if (computed_style.position === 'static') {\n node.style.position = 'relative';\n }\n const iframe = element('iframe');\n iframe.setAttribute('style', 'display: block; position: absolute; top: 0; left: 0; width: 100%; height: 100%; ' +\n 'overflow: hidden; border: 0; opacity: 0; pointer-events: none; z-index: -1;');\n iframe.setAttribute('aria-hidden', 'true');\n iframe.tabIndex = -1;\n const crossorigin = is_crossorigin();\n let unsubscribe;\n if (crossorigin) {\n iframe.src = \"data:text/html,\";\n unsubscribe = listen(window, 'message', (event) => {\n if (event.source === iframe.contentWindow)\n fn();\n });\n }\n else {\n iframe.src = 'about:blank';\n iframe.onload = () => {\n unsubscribe = listen(iframe.contentWindow, 'resize', fn);\n };\n }\n append(node, iframe);\n return () => {\n if (crossorigin) {\n unsubscribe();\n }\n else if (unsubscribe && iframe.contentWindow) {\n unsubscribe();\n }\n detach(iframe);\n };\n}\nfunction toggle_class(element, name, toggle) {\n element.classList[toggle ? 'add' : 'remove'](name);\n}\nfunction custom_event(type, detail) {\n const e = document.createEvent('CustomEvent');\n e.initCustomEvent(type, false, false, detail);\n return e;\n}\nfunction query_selector_all(selector, parent = document.body) {\n return Array.from(parent.querySelectorAll(selector));\n}\nclass HtmlTag {\n constructor(claimed_nodes) {\n this.e = this.n = null;\n this.l = claimed_nodes;\n }\n m(html, target, anchor = null) {\n if (!this.e) {\n this.e = element(target.nodeName);\n this.t = target;\n if (this.l) {\n this.n = this.l;\n }\n else {\n this.h(html);\n }\n }\n this.i(anchor);\n }\n h(html) {\n this.e.innerHTML = html;\n this.n = Array.from(this.e.childNodes);\n }\n i(anchor) {\n for (let i = 0; i < this.n.length; i += 1) {\n insert(this.t, this.n[i], anchor);\n }\n }\n p(html) {\n this.d();\n this.h(html);\n this.i(this.a);\n }\n d() {\n this.n.forEach(detach);\n }\n}\nfunction attribute_to_object(attributes) {\n const result = {};\n for (const attribute of attributes) {\n result[attribute.name] = attribute.value;\n }\n return result;\n}\nfunction get_custom_elements_slots(element) {\n const result = {};\n element.childNodes.forEach((node) => {\n result[node.slot || 'default'] = true;\n });\n return result;\n}\n\nconst active_docs = new Set();\nlet active = 0;\n// https://github.com/darkskyapp/string-hash/blob/master/index.js\nfunction hash(str) {\n let hash = 5381;\n let i = str.length;\n while (i--)\n hash = ((hash << 5) - hash) ^ str.charCodeAt(i);\n return hash >>> 0;\n}\nfunction create_rule(node, a, b, duration, delay, ease, fn, uid = 0) {\n const step = 16.666 / duration;\n let keyframes = '{\\n';\n for (let p = 0; p <= 1; p += step) {\n const t = a + (b - a) * ease(p);\n keyframes += p * 100 + `%{${fn(t, 1 - t)}}\\n`;\n }\n const rule = keyframes + `100% {${fn(b, 1 - b)}}\\n}`;\n const name = `__svelte_${hash(rule)}_${uid}`;\n const doc = node.ownerDocument;\n active_docs.add(doc);\n const stylesheet = doc.__svelte_stylesheet || (doc.__svelte_stylesheet = doc.head.appendChild(element('style')).sheet);\n const current_rules = doc.__svelte_rules || (doc.__svelte_rules = {});\n if (!current_rules[name]) {\n current_rules[name] = true;\n stylesheet.insertRule(`@keyframes ${name} ${rule}`, stylesheet.cssRules.length);\n }\n const animation = node.style.animation || '';\n node.style.animation = `${animation ? `${animation}, ` : ''}${name} ${duration}ms linear ${delay}ms 1 both`;\n active += 1;\n return name;\n}\nfunction delete_rule(node, name) {\n const previous = (node.style.animation || '').split(', ');\n const next = previous.filter(name\n ? anim => anim.indexOf(name) < 0 // remove specific animation\n : anim => anim.indexOf('__svelte') === -1 // remove all Svelte animations\n );\n const deleted = previous.length - next.length;\n if (deleted) {\n node.style.animation = next.join(', ');\n active -= deleted;\n if (!active)\n clear_rules();\n }\n}\nfunction clear_rules() {\n raf(() => {\n if (active)\n return;\n active_docs.forEach(doc => {\n const stylesheet = doc.__svelte_stylesheet;\n let i = stylesheet.cssRules.length;\n while (i--)\n stylesheet.deleteRule(i);\n doc.__svelte_rules = {};\n });\n active_docs.clear();\n });\n}\n\nfunction create_animation(node, from, fn, params) {\n if (!from)\n return noop;\n const to = node.getBoundingClientRect();\n if (from.left === to.left && from.right === to.right && from.top === to.top && from.bottom === to.bottom)\n return noop;\n const { delay = 0, duration = 300, easing = identity, \n // @ts-ignore todo: should this be separated from destructuring? Or start/end added to public api and documentation?\n start: start_time = now() + delay, \n // @ts-ignore todo:\n end = start_time + duration, tick = noop, css } = fn(node, { from, to }, params);\n let running = true;\n let started = false;\n let name;\n function start() {\n if (css) {\n name = create_rule(node, 0, 1, duration, delay, easing, css);\n }\n if (!delay) {\n started = true;\n }\n }\n function stop() {\n if (css)\n delete_rule(node, name);\n running = false;\n }\n loop(now => {\n if (!started && now >= start_time) {\n started = true;\n }\n if (started && now >= end) {\n tick(1, 0);\n stop();\n }\n if (!running) {\n return false;\n }\n if (started) {\n const p = now - start_time;\n const t = 0 + 1 * easing(p / duration);\n tick(t, 1 - t);\n }\n return true;\n });\n start();\n tick(0, 1);\n return stop;\n}\nfunction fix_position(node) {\n const style = getComputedStyle(node);\n if (style.position !== 'absolute' && style.position !== 'fixed') {\n const { width, height } = style;\n const a = node.getBoundingClientRect();\n node.style.position = 'absolute';\n node.style.width = width;\n node.style.height = height;\n add_transform(node, a);\n }\n}\nfunction add_transform(node, a) {\n const b = node.getBoundingClientRect();\n if (a.left !== b.left || a.top !== b.top) {\n const style = getComputedStyle(node);\n const transform = style.transform === 'none' ? '' : style.transform;\n node.style.transform = `${transform} translate(${a.left - b.left}px, ${a.top - b.top}px)`;\n }\n}\n\nlet current_component;\nfunction set_current_component(component) {\n current_component = component;\n}\nfunction get_current_component() {\n if (!current_component)\n throw new Error('Function called outside component initialization');\n return current_component;\n}\nfunction beforeUpdate(fn) {\n get_current_component().$$.before_update.push(fn);\n}\nfunction onMount(fn) {\n get_current_component().$$.on_mount.push(fn);\n}\nfunction afterUpdate(fn) {\n get_current_component().$$.after_update.push(fn);\n}\nfunction onDestroy(fn) {\n get_current_component().$$.on_destroy.push(fn);\n}\nfunction createEventDispatcher() {\n const component = get_current_component();\n return (type, detail) => {\n const callbacks = component.$$.callbacks[type];\n if (callbacks) {\n // TODO are there situations where events could be dispatched\n // in a server (non-DOM) environment?\n const event = custom_event(type, detail);\n callbacks.slice().forEach(fn => {\n fn.call(component, event);\n });\n }\n };\n}\nfunction setContext(key, context) {\n get_current_component().$$.context.set(key, context);\n}\nfunction getContext(key) {\n return get_current_component().$$.context.get(key);\n}\nfunction hasContext(key) {\n return get_current_component().$$.context.has(key);\n}\n// TODO figure out if we still want to support\n// shorthand events, or if we want to implement\n// a real bubbling mechanism\nfunction bubble(component, event) {\n const callbacks = component.$$.callbacks[event.type];\n if (callbacks) {\n // @ts-ignore\n callbacks.slice().forEach(fn => fn.call(this, event));\n }\n}\n\nconst dirty_components = [];\nconst intros = { enabled: false };\nconst binding_callbacks = [];\nconst render_callbacks = [];\nconst flush_callbacks = [];\nconst resolved_promise = Promise.resolve();\nlet update_scheduled = false;\nfunction schedule_update() {\n if (!update_scheduled) {\n update_scheduled = true;\n resolved_promise.then(flush);\n }\n}\nfunction tick() {\n schedule_update();\n return resolved_promise;\n}\nfunction add_render_callback(fn) {\n render_callbacks.push(fn);\n}\nfunction add_flush_callback(fn) {\n flush_callbacks.push(fn);\n}\nlet flushing = false;\nconst seen_callbacks = new Set();\nfunction flush() {\n if (flushing)\n return;\n flushing = true;\n do {\n // first, call beforeUpdate functions\n // and update components\n for (let i = 0; i < dirty_components.length; i += 1) {\n const component = dirty_components[i];\n set_current_component(component);\n update(component.$$);\n }\n set_current_component(null);\n dirty_components.length = 0;\n while (binding_callbacks.length)\n binding_callbacks.pop()();\n // then, once components are updated, call\n // afterUpdate functions. This may cause\n // subsequent updates...\n for (let i = 0; i < render_callbacks.length; i += 1) {\n const callback = render_callbacks[i];\n if (!seen_callbacks.has(callback)) {\n // ...so guard against infinite loops\n seen_callbacks.add(callback);\n callback();\n }\n }\n render_callbacks.length = 0;\n } while (dirty_components.length);\n while (flush_callbacks.length) {\n flush_callbacks.pop()();\n }\n update_scheduled = false;\n flushing = false;\n seen_callbacks.clear();\n}\nfunction update($$) {\n if ($$.fragment !== null) {\n $$.update();\n run_all($$.before_update);\n const dirty = $$.dirty;\n $$.dirty = [-1];\n $$.fragment && $$.fragment.p($$.ctx, dirty);\n $$.after_update.forEach(add_render_callback);\n }\n}\n\nlet promise;\nfunction wait() {\n if (!promise) {\n promise = Promise.resolve();\n promise.then(() => {\n promise = null;\n });\n }\n return promise;\n}\nfunction dispatch(node, direction, kind) {\n node.dispatchEvent(custom_event(`${direction ? 'intro' : 'outro'}${kind}`));\n}\nconst outroing = new Set();\nlet outros;\nfunction group_outros() {\n outros = {\n r: 0,\n c: [],\n p: outros // parent group\n };\n}\nfunction check_outros() {\n if (!outros.r) {\n run_all(outros.c);\n }\n outros = outros.p;\n}\nfunction transition_in(block, local) {\n if (block && block.i) {\n outroing.delete(block);\n block.i(local);\n }\n}\nfunction transition_out(block, local, detach, callback) {\n if (block && block.o) {\n if (outroing.has(block))\n return;\n outroing.add(block);\n outros.c.push(() => {\n outroing.delete(block);\n if (callback) {\n if (detach)\n block.d(1);\n callback();\n }\n });\n block.o(local);\n }\n}\nconst null_transition = { duration: 0 };\nfunction create_in_transition(node, fn, params) {\n let config = fn(node, params);\n let running = false;\n let animation_name;\n let task;\n let uid = 0;\n function cleanup() {\n if (animation_name)\n delete_rule(node, animation_name);\n }\n function go() {\n const { delay = 0, duration = 300, easing = identity, tick = noop, css } = config || null_transition;\n if (css)\n animation_name = create_rule(node, 0, 1, duration, delay, easing, css, uid++);\n tick(0, 1);\n const start_time = now() + delay;\n const end_time = start_time + duration;\n if (task)\n task.abort();\n running = true;\n add_render_callback(() => dispatch(node, true, 'start'));\n task = loop(now => {\n if (running) {\n if (now >= end_time) {\n tick(1, 0);\n dispatch(node, true, 'end');\n cleanup();\n return running = false;\n }\n if (now >= start_time) {\n const t = easing((now - start_time) / duration);\n tick(t, 1 - t);\n }\n }\n return running;\n });\n }\n let started = false;\n return {\n start() {\n if (started)\n return;\n delete_rule(node);\n if (is_function(config)) {\n config = config();\n wait().then(go);\n }\n else {\n go();\n }\n },\n invalidate() {\n started = false;\n },\n end() {\n if (running) {\n cleanup();\n running = false;\n }\n }\n };\n}\nfunction create_out_transition(node, fn, params) {\n let config = fn(node, params);\n let running = true;\n let animation_name;\n const group = outros;\n group.r += 1;\n function go() {\n const { delay = 0, duration = 300, easing = identity, tick = noop, css } = config || null_transition;\n if (css)\n animation_name = create_rule(node, 1, 0, duration, delay, easing, css);\n const start_time = now() + delay;\n const end_time = start_time + duration;\n add_render_callback(() => dispatch(node, false, 'start'));\n loop(now => {\n if (running) {\n if (now >= end_time) {\n tick(0, 1);\n dispatch(node, false, 'end');\n if (!--group.r) {\n // this will result in `end()` being called,\n // so we don't need to clean up here\n run_all(group.c);\n }\n return false;\n }\n if (now >= start_time) {\n const t = easing((now - start_time) / duration);\n tick(1 - t, t);\n }\n }\n return running;\n });\n }\n if (is_function(config)) {\n wait().then(() => {\n // @ts-ignore\n config = config();\n go();\n });\n }\n else {\n go();\n }\n return {\n end(reset) {\n if (reset && config.tick) {\n config.tick(1, 0);\n }\n if (running) {\n if (animation_name)\n delete_rule(node, animation_name);\n running = false;\n }\n }\n };\n}\nfunction create_bidirectional_transition(node, fn, params, intro) {\n let config = fn(node, params);\n let t = intro ? 0 : 1;\n let running_program = null;\n let pending_program = null;\n let animation_name = null;\n function clear_animation() {\n if (animation_name)\n delete_rule(node, animation_name);\n }\n function init(program, duration) {\n const d = program.b - t;\n duration *= Math.abs(d);\n return {\n a: t,\n b: program.b,\n d,\n duration,\n start: program.start,\n end: program.start + duration,\n group: program.group\n };\n }\n function go(b) {\n const { delay = 0, duration = 300, easing = identity, tick = noop, css } = config || null_transition;\n const program = {\n start: now() + delay,\n b\n };\n if (!b) {\n // @ts-ignore todo: improve typings\n program.group = outros;\n outros.r += 1;\n }\n if (running_program || pending_program) {\n pending_program = program;\n }\n else {\n // if this is an intro, and there's a delay, we need to do\n // an initial tick and/or apply CSS animation immediately\n if (css) {\n clear_animation();\n animation_name = create_rule(node, t, b, duration, delay, easing, css);\n }\n if (b)\n tick(0, 1);\n running_program = init(program, duration);\n add_render_callback(() => dispatch(node, b, 'start'));\n loop(now => {\n if (pending_program && now > pending_program.start) {\n running_program = init(pending_program, duration);\n pending_program = null;\n dispatch(node, running_program.b, 'start');\n if (css) {\n clear_animation();\n animation_name = create_rule(node, t, running_program.b, running_program.duration, 0, easing, config.css);\n }\n }\n if (running_program) {\n if (now >= running_program.end) {\n tick(t = running_program.b, 1 - t);\n dispatch(node, running_program.b, 'end');\n if (!pending_program) {\n // we're done\n if (running_program.b) {\n // intro — we can tidy up immediately\n clear_animation();\n }\n else {\n // outro — needs to be coordinated\n if (!--running_program.group.r)\n run_all(running_program.group.c);\n }\n }\n running_program = null;\n }\n else if (now >= running_program.start) {\n const p = now - running_program.start;\n t = running_program.a + running_program.d * easing(p / running_program.duration);\n tick(t, 1 - t);\n }\n }\n return !!(running_program || pending_program);\n });\n }\n }\n return {\n run(b) {\n if (is_function(config)) {\n wait().then(() => {\n // @ts-ignore\n config = config();\n go(b);\n });\n }\n else {\n go(b);\n }\n },\n end() {\n clear_animation();\n running_program = pending_program = null;\n }\n };\n}\n\nfunction handle_promise(promise, info) {\n const token = info.token = {};\n function update(type, index, key, value) {\n if (info.token !== token)\n return;\n info.resolved = value;\n let child_ctx = info.ctx;\n if (key !== undefined) {\n child_ctx = child_ctx.slice();\n child_ctx[key] = value;\n }\n const block = type && (info.current = type)(child_ctx);\n let needs_flush = false;\n if (info.block) {\n if (info.blocks) {\n info.blocks.forEach((block, i) => {\n if (i !== index && block) {\n group_outros();\n transition_out(block, 1, 1, () => {\n if (info.blocks[i] === block) {\n info.blocks[i] = null;\n }\n });\n check_outros();\n }\n });\n }\n else {\n info.block.d(1);\n }\n block.c();\n transition_in(block, 1);\n block.m(info.mount(), info.anchor);\n needs_flush = true;\n }\n info.block = block;\n if (info.blocks)\n info.blocks[index] = block;\n if (needs_flush) {\n flush();\n }\n }\n if (is_promise(promise)) {\n const current_component = get_current_component();\n promise.then(value => {\n set_current_component(current_component);\n update(info.then, 1, info.value, value);\n set_current_component(null);\n }, error => {\n set_current_component(current_component);\n update(info.catch, 2, info.error, error);\n set_current_component(null);\n if (!info.hasCatch) {\n throw error;\n }\n });\n // if we previously had a then/catch block, destroy it\n if (info.current !== info.pending) {\n update(info.pending, 0);\n return true;\n }\n }\n else {\n if (info.current !== info.then) {\n update(info.then, 1, info.value, promise);\n return true;\n }\n info.resolved = promise;\n }\n}\nfunction update_await_block_branch(info, ctx, dirty) {\n const child_ctx = ctx.slice();\n const { resolved } = info;\n if (info.current === info.then) {\n child_ctx[info.value] = resolved;\n }\n if (info.current === info.catch) {\n child_ctx[info.error] = resolved;\n }\n info.block.p(child_ctx, dirty);\n}\n\nconst globals = (typeof window !== 'undefined'\n ? window\n : typeof globalThis !== 'undefined'\n ? globalThis\n : global);\n\nfunction destroy_block(block, lookup) {\n block.d(1);\n lookup.delete(block.key);\n}\nfunction outro_and_destroy_block(block, lookup) {\n transition_out(block, 1, 1, () => {\n lookup.delete(block.key);\n });\n}\nfunction fix_and_destroy_block(block, lookup) {\n block.f();\n destroy_block(block, lookup);\n}\nfunction fix_and_outro_and_destroy_block(block, lookup) {\n block.f();\n outro_and_destroy_block(block, lookup);\n}\nfunction update_keyed_each(old_blocks, dirty, get_key, dynamic, ctx, list, lookup, node, destroy, create_each_block, next, get_context) {\n let o = old_blocks.length;\n let n = list.length;\n let i = o;\n const old_indexes = {};\n while (i--)\n old_indexes[old_blocks[i].key] = i;\n const new_blocks = [];\n const new_lookup = new Map();\n const deltas = new Map();\n i = n;\n while (i--) {\n const child_ctx = get_context(ctx, list, i);\n const key = get_key(child_ctx);\n let block = lookup.get(key);\n if (!block) {\n block = create_each_block(key, child_ctx);\n block.c();\n }\n else if (dynamic) {\n block.p(child_ctx, dirty);\n }\n new_lookup.set(key, new_blocks[i] = block);\n if (key in old_indexes)\n deltas.set(key, Math.abs(i - old_indexes[key]));\n }\n const will_move = new Set();\n const did_move = new Set();\n function insert(block) {\n transition_in(block, 1);\n block.m(node, next);\n lookup.set(block.key, block);\n next = block.first;\n n--;\n }\n while (o && n) {\n const new_block = new_blocks[n - 1];\n const old_block = old_blocks[o - 1];\n const new_key = new_block.key;\n const old_key = old_block.key;\n if (new_block === old_block) {\n // do nothing\n next = new_block.first;\n o--;\n n--;\n }\n else if (!new_lookup.has(old_key)) {\n // remove old block\n destroy(old_block, lookup);\n o--;\n }\n else if (!lookup.has(new_key) || will_move.has(new_key)) {\n insert(new_block);\n }\n else if (did_move.has(old_key)) {\n o--;\n }\n else if (deltas.get(new_key) > deltas.get(old_key)) {\n did_move.add(new_key);\n insert(new_block);\n }\n else {\n will_move.add(old_key);\n o--;\n }\n }\n while (o--) {\n const old_block = old_blocks[o];\n if (!new_lookup.has(old_block.key))\n destroy(old_block, lookup);\n }\n while (n)\n insert(new_blocks[n - 1]);\n return new_blocks;\n}\nfunction validate_each_keys(ctx, list, get_context, get_key) {\n const keys = new Set();\n for (let i = 0; i < list.length; i++) {\n const key = get_key(get_context(ctx, list, i));\n if (keys.has(key)) {\n throw new Error('Cannot have duplicate keys in a keyed each');\n }\n keys.add(key);\n }\n}\n\nfunction get_spread_update(levels, updates) {\n const update = {};\n const to_null_out = {};\n const accounted_for = { $$scope: 1 };\n let i = levels.length;\n while (i--) {\n const o = levels[i];\n const n = updates[i];\n if (n) {\n for (const key in o) {\n if (!(key in n))\n to_null_out[key] = 1;\n }\n for (const key in n) {\n if (!accounted_for[key]) {\n update[key] = n[key];\n accounted_for[key] = 1;\n }\n }\n levels[i] = n;\n }\n else {\n for (const key in o) {\n accounted_for[key] = 1;\n }\n }\n }\n for (const key in to_null_out) {\n if (!(key in update))\n update[key] = undefined;\n }\n return update;\n}\nfunction get_spread_object(spread_props) {\n return typeof spread_props === 'object' && spread_props !== null ? spread_props : {};\n}\n\n// source: https://html.spec.whatwg.org/multipage/indices.html\nconst boolean_attributes = new Set([\n 'allowfullscreen',\n 'allowpaymentrequest',\n 'async',\n 'autofocus',\n 'autoplay',\n 'checked',\n 'controls',\n 'default',\n 'defer',\n 'disabled',\n 'formnovalidate',\n 'hidden',\n 'ismap',\n 'loop',\n 'multiple',\n 'muted',\n 'nomodule',\n 'novalidate',\n 'open',\n 'playsinline',\n 'readonly',\n 'required',\n 'reversed',\n 'selected'\n]);\n\nconst invalid_attribute_name_character = /[\\s'\">/=\\u{FDD0}-\\u{FDEF}\\u{FFFE}\\u{FFFF}\\u{1FFFE}\\u{1FFFF}\\u{2FFFE}\\u{2FFFF}\\u{3FFFE}\\u{3FFFF}\\u{4FFFE}\\u{4FFFF}\\u{5FFFE}\\u{5FFFF}\\u{6FFFE}\\u{6FFFF}\\u{7FFFE}\\u{7FFFF}\\u{8FFFE}\\u{8FFFF}\\u{9FFFE}\\u{9FFFF}\\u{AFFFE}\\u{AFFFF}\\u{BFFFE}\\u{BFFFF}\\u{CFFFE}\\u{CFFFF}\\u{DFFFE}\\u{DFFFF}\\u{EFFFE}\\u{EFFFF}\\u{FFFFE}\\u{FFFFF}\\u{10FFFE}\\u{10FFFF}]/u;\n// https://html.spec.whatwg.org/multipage/syntax.html#attributes-2\n// https://infra.spec.whatwg.org/#noncharacter\nfunction spread(args, classes_to_add) {\n const attributes = Object.assign({}, ...args);\n if (classes_to_add) {\n if (attributes.class == null) {\n attributes.class = classes_to_add;\n }\n else {\n attributes.class += ' ' + classes_to_add;\n }\n }\n let str = '';\n Object.keys(attributes).forEach(name => {\n if (invalid_attribute_name_character.test(name))\n return;\n const value = attributes[name];\n if (value === true)\n str += ' ' + name;\n else if (boolean_attributes.has(name.toLowerCase())) {\n if (value)\n str += ' ' + name;\n }\n else if (value != null) {\n str += ` ${name}=\"${value}\"`;\n }\n });\n return str;\n}\nconst escaped = {\n '\"': '"',\n \"'\": ''',\n '&': '&',\n '<': '<',\n '>': '>'\n};\nfunction escape(html) {\n return String(html).replace(/[\"'&<>]/g, match => escaped[match]);\n}\nfunction escape_attribute_value(value) {\n return typeof value === 'string' ? escape(value) : value;\n}\nfunction escape_object(obj) {\n const result = {};\n for (const key in obj) {\n result[key] = escape_attribute_value(obj[key]);\n }\n return result;\n}\nfunction each(items, fn) {\n let str = '';\n for (let i = 0; i < items.length; i += 1) {\n str += fn(items[i], i);\n }\n return str;\n}\nconst missing_component = {\n $$render: () => ''\n};\nfunction validate_component(component, name) {\n if (!component || !component.$$render) {\n if (name === 'svelte:component')\n name += ' this={...}';\n throw new Error(`<${name}> is not a valid SSR component. You may need to review your build config to ensure that dependencies are compiled, rather than imported as pre-compiled modules`);\n }\n return component;\n}\nfunction debug(file, line, column, values) {\n console.log(`{@debug} ${file ? file + ' ' : ''}(${line}:${column})`); // eslint-disable-line no-console\n console.log(values); // eslint-disable-line no-console\n return '';\n}\nlet on_destroy;\nfunction create_ssr_component(fn) {\n function $$render(result, props, bindings, slots, context) {\n const parent_component = current_component;\n const $$ = {\n on_destroy,\n context: new Map(parent_component ? parent_component.$$.context : context || []),\n // these will be immediately discarded\n on_mount: [],\n before_update: [],\n after_update: [],\n callbacks: blank_object()\n };\n set_current_component({ $$ });\n const html = fn(result, props, bindings, slots);\n set_current_component(parent_component);\n return html;\n }\n return {\n render: (props = {}, { $$slots = {}, context = new Map() } = {}) => {\n on_destroy = [];\n const result = { title: '', head: '', css: new Set() };\n const html = $$render(result, props, {}, $$slots, context);\n run_all(on_destroy);\n return {\n html,\n css: {\n code: Array.from(result.css).map(css => css.code).join('\\n'),\n map: null // TODO\n },\n head: result.title + result.head\n };\n },\n $$render\n };\n}\nfunction add_attribute(name, value, boolean) {\n if (value == null || (boolean && !value))\n return '';\n return ` ${name}${value === true ? '' : `=${typeof value === 'string' ? JSON.stringify(escape(value)) : `\"${value}\"`}`}`;\n}\nfunction add_classes(classes) {\n return classes ? ` class=\"${classes}\"` : '';\n}\n\nfunction bind(component, name, callback) {\n const index = component.$$.props[name];\n if (index !== undefined) {\n component.$$.bound[index] = callback;\n callback(component.$$.ctx[index]);\n }\n}\nfunction create_component(block) {\n block && block.c();\n}\nfunction claim_component(block, parent_nodes) {\n block && block.l(parent_nodes);\n}\nfunction mount_component(component, target, anchor, customElement) {\n const { fragment, on_mount, on_destroy, after_update } = component.$$;\n fragment && fragment.m(target, anchor);\n if (!customElement) {\n // onMount happens before the initial afterUpdate\n add_render_callback(() => {\n const new_on_destroy = on_mount.map(run).filter(is_function);\n if (on_destroy) {\n on_destroy.push(...new_on_destroy);\n }\n else {\n // Edge case - component was destroyed immediately,\n // most likely as a result of a binding initialising\n run_all(new_on_destroy);\n }\n component.$$.on_mount = [];\n });\n }\n after_update.forEach(add_render_callback);\n}\nfunction destroy_component(component, detaching) {\n const $$ = component.$$;\n if ($$.fragment !== null) {\n run_all($$.on_destroy);\n $$.fragment && $$.fragment.d(detaching);\n // TODO null out other refs, including component.$$ (but need to\n // preserve final state?)\n $$.on_destroy = $$.fragment = null;\n $$.ctx = [];\n }\n}\nfunction make_dirty(component, i) {\n if (component.$$.dirty[0] === -1) {\n dirty_components.push(component);\n schedule_update();\n component.$$.dirty.fill(0);\n }\n component.$$.dirty[(i / 31) | 0] |= (1 << (i % 31));\n}\nfunction init(component, options, instance, create_fragment, not_equal, props, dirty = [-1]) {\n const parent_component = current_component;\n set_current_component(component);\n const $$ = component.$$ = {\n fragment: null,\n ctx: null,\n // state\n props,\n update: noop,\n not_equal,\n bound: blank_object(),\n // lifecycle\n on_mount: [],\n on_destroy: [],\n on_disconnect: [],\n before_update: [],\n after_update: [],\n context: new Map(parent_component ? parent_component.$$.context : options.context || []),\n // everything else\n callbacks: blank_object(),\n dirty,\n skip_bound: false\n };\n let ready = false;\n $$.ctx = instance\n ? instance(component, options.props || {}, (i, ret, ...rest) => {\n const value = rest.length ? rest[0] : ret;\n if ($$.ctx && not_equal($$.ctx[i], $$.ctx[i] = value)) {\n if (!$$.skip_bound && $$.bound[i])\n $$.bound[i](value);\n if (ready)\n make_dirty(component, i);\n }\n return ret;\n })\n : [];\n $$.update();\n ready = true;\n run_all($$.before_update);\n // `false` as a special case of no DOM component\n $$.fragment = create_fragment ? create_fragment($$.ctx) : false;\n if (options.target) {\n if (options.hydrate) {\n start_hydrating();\n const nodes = children(options.target);\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\n $$.fragment && $$.fragment.l(nodes);\n nodes.forEach(detach);\n }\n else {\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\n $$.fragment && $$.fragment.c();\n }\n if (options.intro)\n transition_in(component.$$.fragment);\n mount_component(component, options.target, options.anchor, options.customElement);\n end_hydrating();\n flush();\n }\n set_current_component(parent_component);\n}\nlet SvelteElement;\nif (typeof HTMLElement === 'function') {\n SvelteElement = class extends HTMLElement {\n constructor() {\n super();\n this.attachShadow({ mode: 'open' });\n }\n connectedCallback() {\n const { on_mount } = this.$$;\n this.$$.on_disconnect = on_mount.map(run).filter(is_function);\n // @ts-ignore todo: improve typings\n for (const key in this.$$.slotted) {\n // @ts-ignore todo: improve typings\n this.appendChild(this.$$.slotted[key]);\n }\n }\n attributeChangedCallback(attr, _oldValue, newValue) {\n this[attr] = newValue;\n }\n disconnectedCallback() {\n run_all(this.$$.on_disconnect);\n }\n $destroy() {\n destroy_component(this, 1);\n this.$destroy = noop;\n }\n $on(type, callback) {\n // TODO should this delegate to addEventListener?\n const callbacks = (this.$$.callbacks[type] || (this.$$.callbacks[type] = []));\n callbacks.push(callback);\n return () => {\n const index = callbacks.indexOf(callback);\n if (index !== -1)\n callbacks.splice(index, 1);\n };\n }\n $set($$props) {\n if (this.$$set && !is_empty($$props)) {\n this.$$.skip_bound = true;\n this.$$set($$props);\n this.$$.skip_bound = false;\n }\n }\n };\n}\n/**\n * Base class for Svelte components. Used when dev=false.\n */\nclass SvelteComponent {\n $destroy() {\n destroy_component(this, 1);\n this.$destroy = noop;\n }\n $on(type, callback) {\n const callbacks = (this.$$.callbacks[type] || (this.$$.callbacks[type] = []));\n callbacks.push(callback);\n return () => {\n const index = callbacks.indexOf(callback);\n if (index !== -1)\n callbacks.splice(index, 1);\n };\n }\n $set($$props) {\n if (this.$$set && !is_empty($$props)) {\n this.$$.skip_bound = true;\n this.$$set($$props);\n this.$$.skip_bound = false;\n }\n }\n}\n\nfunction dispatch_dev(type, detail) {\n document.dispatchEvent(custom_event(type, Object.assign({ version: '3.38.3' }, detail)));\n}\nfunction append_dev(target, node) {\n dispatch_dev('SvelteDOMInsert', { target, node });\n append(target, node);\n}\nfunction insert_dev(target, node, anchor) {\n dispatch_dev('SvelteDOMInsert', { target, node, anchor });\n insert(target, node, anchor);\n}\nfunction detach_dev(node) {\n dispatch_dev('SvelteDOMRemove', { node });\n detach(node);\n}\nfunction detach_between_dev(before, after) {\n while (before.nextSibling && before.nextSibling !== after) {\n detach_dev(before.nextSibling);\n }\n}\nfunction detach_before_dev(after) {\n while (after.previousSibling) {\n detach_dev(after.previousSibling);\n }\n}\nfunction detach_after_dev(before) {\n while (before.nextSibling) {\n detach_dev(before.nextSibling);\n }\n}\nfunction listen_dev(node, event, handler, options, has_prevent_default, has_stop_propagation) {\n const modifiers = options === true ? ['capture'] : options ? Array.from(Object.keys(options)) : [];\n if (has_prevent_default)\n modifiers.push('preventDefault');\n if (has_stop_propagation)\n modifiers.push('stopPropagation');\n dispatch_dev('SvelteDOMAddEventListener', { node, event, handler, modifiers });\n const dispose = listen(node, event, handler, options);\n return () => {\n dispatch_dev('SvelteDOMRemoveEventListener', { node, event, handler, modifiers });\n dispose();\n };\n}\nfunction attr_dev(node, attribute, value) {\n attr(node, attribute, value);\n if (value == null)\n dispatch_dev('SvelteDOMRemoveAttribute', { node, attribute });\n else\n dispatch_dev('SvelteDOMSetAttribute', { node, attribute, value });\n}\nfunction prop_dev(node, property, value) {\n node[property] = value;\n dispatch_dev('SvelteDOMSetProperty', { node, property, value });\n}\nfunction dataset_dev(node, property, value) {\n node.dataset[property] = value;\n dispatch_dev('SvelteDOMSetDataset', { node, property, value });\n}\nfunction set_data_dev(text, data) {\n data = '' + data;\n if (text.wholeText === data)\n return;\n dispatch_dev('SvelteDOMSetData', { node: text, data });\n text.data = data;\n}\nfunction validate_each_argument(arg) {\n if (typeof arg !== 'string' && !(arg && typeof arg === 'object' && 'length' in arg)) {\n let msg = '{#each} only iterates over array-like objects.';\n if (typeof Symbol === 'function' && arg && Symbol.iterator in arg) {\n msg += ' You can use a spread to convert this iterable into an array.';\n }\n throw new Error(msg);\n }\n}\nfunction validate_slots(name, slot, keys) {\n for (const slot_key of Object.keys(slot)) {\n if (!~keys.indexOf(slot_key)) {\n console.warn(`<${name}> received an unexpected slot \"${slot_key}\".`);\n }\n }\n}\n/**\n * Base class for Svelte components with some minor dev-enhancements. Used when dev=true.\n */\nclass SvelteComponentDev extends SvelteComponent {\n constructor(options) {\n if (!options || (!options.target && !options.$$inline)) {\n throw new Error(\"'target' is a required option\");\n }\n super();\n }\n $destroy() {\n super.$destroy();\n this.$destroy = () => {\n console.warn('Component was already destroyed'); // eslint-disable-line no-console\n };\n }\n $capture_state() { }\n $inject_state() { }\n}\n/**\n * Base class to create strongly typed Svelte components.\n * This only exists for typing purposes and should be used in `.d.ts` files.\n *\n * ### Example:\n *\n * You have component library on npm called `component-library`, from which\n * you export a component called `MyComponent`. For Svelte+TypeScript users,\n * you want to provide typings. Therefore you create a `index.d.ts`:\n * ```ts\n * import { SvelteComponentTyped } from \"svelte\";\n * export class MyComponent extends SvelteComponentTyped<{foo: string}> {}\n * ```\n * Typing this makes it possible for IDEs like VS Code with the Svelte extension\n * to provide intellisense and to use the component like this in a Svelte file\n * with TypeScript:\n * ```svelte\n * \n * \n * ```\n *\n * #### Why not make this part of `SvelteComponent(Dev)`?\n * Because\n * ```ts\n * class ASubclassOfSvelteComponent extends SvelteComponent<{foo: string}> {}\n * const component: typeof SvelteComponent = ASubclassOfSvelteComponent;\n * ```\n * will throw a type error, so we need to seperate the more strictly typed class.\n */\nclass SvelteComponentTyped extends SvelteComponentDev {\n constructor(options) {\n super(options);\n }\n}\nfunction loop_guard(timeout) {\n const start = Date.now();\n return () => {\n if (Date.now() - start > timeout) {\n throw new Error('Infinite loop detected');\n }\n };\n}\n\nexport { HtmlTag, SvelteComponent, SvelteComponentDev, SvelteComponentTyped, SvelteElement, action_destroyer, add_attribute, add_classes, add_flush_callback, add_location, add_render_callback, add_resize_listener, add_transform, afterUpdate, append, append_dev, assign, attr, attr_dev, attribute_to_object, beforeUpdate, bind, binding_callbacks, blank_object, bubble, check_outros, children, claim_component, claim_element, claim_html_tag, claim_space, claim_text, clear_loops, component_subscribe, compute_rest_props, compute_slots, createEventDispatcher, create_animation, create_bidirectional_transition, create_component, create_in_transition, create_out_transition, create_slot, create_ssr_component, current_component, custom_event, dataset_dev, debug, destroy_block, destroy_component, destroy_each, detach, detach_after_dev, detach_before_dev, detach_between_dev, detach_dev, dirty_components, dispatch_dev, each, element, element_is, empty, end_hydrating, escape, escape_attribute_value, escape_object, escaped, exclude_internal_props, fix_and_destroy_block, fix_and_outro_and_destroy_block, fix_position, flush, getContext, get_binding_group_value, get_current_component, get_custom_elements_slots, get_slot_changes, get_slot_context, get_spread_object, get_spread_update, get_store_value, globals, group_outros, handle_promise, hasContext, has_prop, identity, init, insert, insert_dev, intros, invalid_attribute_name_character, is_client, is_crossorigin, is_empty, is_function, is_promise, listen, listen_dev, loop, loop_guard, missing_component, mount_component, noop, not_equal, now, null_to_empty, object_without_properties, onDestroy, onMount, once, outro_and_destroy_block, prevent_default, prop_dev, query_selector_all, raf, run, run_all, safe_not_equal, schedule_update, select_multiple_value, select_option, select_options, select_value, self, setContext, set_attributes, set_current_component, set_custom_element_data, set_data, set_data_dev, set_input_type, set_input_value, set_now, set_raf, set_store_value, set_style, set_svg_attributes, space, spread, start_hydrating, stop_propagation, subscribe, svg_element, text, tick, time_ranges_to_array, to_number, toggle_class, transition_in, transition_out, update_await_block_branch, update_keyed_each, update_slot, update_slot_spread, validate_component, validate_each_argument, validate_each_keys, validate_slots, validate_store, xlink_attr };\n","export { identity as linear } from '../internal/index.mjs';\n\n/*\nAdapted from https://github.com/mattdesl\nDistributed under MIT License https://github.com/mattdesl/eases/blob/master/LICENSE.md\n*/\nfunction backInOut(t) {\n const s = 1.70158 * 1.525;\n if ((t *= 2) < 1)\n return 0.5 * (t * t * ((s + 1) * t - s));\n return 0.5 * ((t -= 2) * t * ((s + 1) * t + s) + 2);\n}\nfunction backIn(t) {\n const s = 1.70158;\n return t * t * ((s + 1) * t - s);\n}\nfunction backOut(t) {\n const s = 1.70158;\n return --t * t * ((s + 1) * t + s) + 1;\n}\nfunction bounceOut(t) {\n const a = 4.0 / 11.0;\n const b = 8.0 / 11.0;\n const c = 9.0 / 10.0;\n const ca = 4356.0 / 361.0;\n const cb = 35442.0 / 1805.0;\n const cc = 16061.0 / 1805.0;\n const t2 = t * t;\n return t < a\n ? 7.5625 * t2\n : t < b\n ? 9.075 * t2 - 9.9 * t + 3.4\n : t < c\n ? ca * t2 - cb * t + cc\n : 10.8 * t * t - 20.52 * t + 10.72;\n}\nfunction bounceInOut(t) {\n return t < 0.5\n ? 0.5 * (1.0 - bounceOut(1.0 - t * 2.0))\n : 0.5 * bounceOut(t * 2.0 - 1.0) + 0.5;\n}\nfunction bounceIn(t) {\n return 1.0 - bounceOut(1.0 - t);\n}\nfunction circInOut(t) {\n if ((t *= 2) < 1)\n return -0.5 * (Math.sqrt(1 - t * t) - 1);\n return 0.5 * (Math.sqrt(1 - (t -= 2) * t) + 1);\n}\nfunction circIn(t) {\n return 1.0 - Math.sqrt(1.0 - t * t);\n}\nfunction circOut(t) {\n return Math.sqrt(1 - --t * t);\n}\nfunction cubicInOut(t) {\n return t < 0.5 ? 4.0 * t * t * t : 0.5 * Math.pow(2.0 * t - 2.0, 3.0) + 1.0;\n}\nfunction cubicIn(t) {\n return t * t * t;\n}\nfunction cubicOut(t) {\n const f = t - 1.0;\n return f * f * f + 1.0;\n}\nfunction elasticInOut(t) {\n return t < 0.5\n ? 0.5 *\n Math.sin(((+13.0 * Math.PI) / 2) * 2.0 * t) *\n Math.pow(2.0, 10.0 * (2.0 * t - 1.0))\n : 0.5 *\n Math.sin(((-13.0 * Math.PI) / 2) * (2.0 * t - 1.0 + 1.0)) *\n Math.pow(2.0, -10.0 * (2.0 * t - 1.0)) +\n 1.0;\n}\nfunction elasticIn(t) {\n return Math.sin((13.0 * t * Math.PI) / 2) * Math.pow(2.0, 10.0 * (t - 1.0));\n}\nfunction elasticOut(t) {\n return (Math.sin((-13.0 * (t + 1.0) * Math.PI) / 2) * Math.pow(2.0, -10.0 * t) + 1.0);\n}\nfunction expoInOut(t) {\n return t === 0.0 || t === 1.0\n ? t\n : t < 0.5\n ? +0.5 * Math.pow(2.0, 20.0 * t - 10.0)\n : -0.5 * Math.pow(2.0, 10.0 - t * 20.0) + 1.0;\n}\nfunction expoIn(t) {\n return t === 0.0 ? t : Math.pow(2.0, 10.0 * (t - 1.0));\n}\nfunction expoOut(t) {\n return t === 1.0 ? t : 1.0 - Math.pow(2.0, -10.0 * t);\n}\nfunction quadInOut(t) {\n t /= 0.5;\n if (t < 1)\n return 0.5 * t * t;\n t--;\n return -0.5 * (t * (t - 2) - 1);\n}\nfunction quadIn(t) {\n return t * t;\n}\nfunction quadOut(t) {\n return -t * (t - 2.0);\n}\nfunction quartInOut(t) {\n return t < 0.5\n ? +8.0 * Math.pow(t, 4.0)\n : -8.0 * Math.pow(t - 1.0, 4.0) + 1.0;\n}\nfunction quartIn(t) {\n return Math.pow(t, 4.0);\n}\nfunction quartOut(t) {\n return Math.pow(t - 1.0, 3.0) * (1.0 - t) + 1.0;\n}\nfunction quintInOut(t) {\n if ((t *= 2) < 1)\n return 0.5 * t * t * t * t * t;\n return 0.5 * ((t -= 2) * t * t * t * t + 2);\n}\nfunction quintIn(t) {\n return t * t * t * t * t;\n}\nfunction quintOut(t) {\n return --t * t * t * t * t + 1;\n}\nfunction sineInOut(t) {\n return -0.5 * (Math.cos(Math.PI * t) - 1);\n}\nfunction sineIn(t) {\n const v = Math.cos(t * Math.PI * 0.5);\n if (Math.abs(v) < 1e-14)\n return 1;\n else\n return 1 - v;\n}\nfunction sineOut(t) {\n return Math.sin((t * Math.PI) / 2);\n}\n\nexport { backIn, backInOut, backOut, bounceIn, bounceInOut, bounceOut, circIn, circInOut, circOut, cubicIn, cubicInOut, cubicOut, elasticIn, elasticInOut, elasticOut, expoIn, expoInOut, expoOut, quadIn, quadInOut, quadOut, quartIn, quartInOut, quartOut, quintIn, quintInOut, quintOut, sineIn, sineInOut, sineOut };\n","import { cubicInOut, linear, cubicOut } from '../easing/index.mjs';\nimport { is_function, assign } from '../internal/index.mjs';\n\n/*! *****************************************************************************\r\nCopyright (c) Microsoft Corporation.\r\n\r\nPermission to use, copy, modify, and/or distribute this software for any\r\npurpose with or without fee is hereby granted.\r\n\r\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\r\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\r\nAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\r\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\r\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\r\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\r\nPERFORMANCE OF THIS SOFTWARE.\r\n***************************************************************************** */\r\n\r\nfunction __rest(s, e) {\r\n var t = {};\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\r\n t[p] = s[p];\r\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\r\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\r\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\r\n t[p[i]] = s[p[i]];\r\n }\r\n return t;\r\n}\n\nfunction blur(node, { delay = 0, duration = 400, easing = cubicInOut, amount = 5, opacity = 0 } = {}) {\n const style = getComputedStyle(node);\n const target_opacity = +style.opacity;\n const f = style.filter === 'none' ? '' : style.filter;\n const od = target_opacity * (1 - opacity);\n return {\n delay,\n duration,\n easing,\n css: (_t, u) => `opacity: ${target_opacity - (od * u)}; filter: ${f} blur(${u * amount}px);`\n };\n}\nfunction fade(node, { delay = 0, duration = 400, easing = linear } = {}) {\n const o = +getComputedStyle(node).opacity;\n return {\n delay,\n duration,\n easing,\n css: t => `opacity: ${t * o}`\n };\n}\nfunction fly(node, { delay = 0, duration = 400, easing = cubicOut, x = 0, y = 0, opacity = 0 } = {}) {\n const style = getComputedStyle(node);\n const target_opacity = +style.opacity;\n const transform = style.transform === 'none' ? '' : style.transform;\n const od = target_opacity * (1 - opacity);\n return {\n delay,\n duration,\n easing,\n css: (t, u) => `\n\t\t\ttransform: ${transform} translate(${(1 - t) * x}px, ${(1 - t) * y}px);\n\t\t\topacity: ${target_opacity - (od * u)}`\n };\n}\nfunction slide(node, { delay = 0, duration = 400, easing = cubicOut } = {}) {\n const style = getComputedStyle(node);\n const opacity = +style.opacity;\n const height = parseFloat(style.height);\n const padding_top = parseFloat(style.paddingTop);\n const padding_bottom = parseFloat(style.paddingBottom);\n const margin_top = parseFloat(style.marginTop);\n const margin_bottom = parseFloat(style.marginBottom);\n const border_top_width = parseFloat(style.borderTopWidth);\n const border_bottom_width = parseFloat(style.borderBottomWidth);\n return {\n delay,\n duration,\n easing,\n css: t => 'overflow: hidden;' +\n `opacity: ${Math.min(t * 20, 1) * opacity};` +\n `height: ${t * height}px;` +\n `padding-top: ${t * padding_top}px;` +\n `padding-bottom: ${t * padding_bottom}px;` +\n `margin-top: ${t * margin_top}px;` +\n `margin-bottom: ${t * margin_bottom}px;` +\n `border-top-width: ${t * border_top_width}px;` +\n `border-bottom-width: ${t * border_bottom_width}px;`\n };\n}\nfunction scale(node, { delay = 0, duration = 400, easing = cubicOut, start = 0, opacity = 0 } = {}) {\n const style = getComputedStyle(node);\n const target_opacity = +style.opacity;\n const transform = style.transform === 'none' ? '' : style.transform;\n const sd = 1 - start;\n const od = target_opacity * (1 - opacity);\n return {\n delay,\n duration,\n easing,\n css: (_t, u) => `\n\t\t\ttransform: ${transform} scale(${1 - (sd * u)});\n\t\t\topacity: ${target_opacity - (od * u)}\n\t\t`\n };\n}\nfunction draw(node, { delay = 0, speed, duration, easing = cubicInOut } = {}) {\n const len = node.getTotalLength();\n if (duration === undefined) {\n if (speed === undefined) {\n duration = 800;\n }\n else {\n duration = len / speed;\n }\n }\n else if (typeof duration === 'function') {\n duration = duration(len);\n }\n return {\n delay,\n duration,\n easing,\n css: (t, u) => `stroke-dasharray: ${t * len} ${u * len}`\n };\n}\nfunction crossfade(_a) {\n var { fallback } = _a, defaults = __rest(_a, [\"fallback\"]);\n const to_receive = new Map();\n const to_send = new Map();\n function crossfade(from, node, params) {\n const { delay = 0, duration = d => Math.sqrt(d) * 30, easing = cubicOut } = assign(assign({}, defaults), params);\n const to = node.getBoundingClientRect();\n const dx = from.left - to.left;\n const dy = from.top - to.top;\n const dw = from.width / to.width;\n const dh = from.height / to.height;\n const d = Math.sqrt(dx * dx + dy * dy);\n const style = getComputedStyle(node);\n const transform = style.transform === 'none' ? '' : style.transform;\n const opacity = +style.opacity;\n return {\n delay,\n duration: is_function(duration) ? duration(d) : duration,\n easing,\n css: (t, u) => `\n\t\t\t\topacity: ${t * opacity};\n\t\t\t\ttransform-origin: top left;\n\t\t\t\ttransform: ${transform} translate(${u * dx}px,${u * dy}px) scale(${t + (1 - t) * dw}, ${t + (1 - t) * dh});\n\t\t\t`\n };\n }\n function transition(items, counterparts, intro) {\n return (node, params) => {\n items.set(params.key, {\n rect: node.getBoundingClientRect()\n });\n return () => {\n if (counterparts.has(params.key)) {\n const { rect } = counterparts.get(params.key);\n counterparts.delete(params.key);\n return crossfade(rect, node, params);\n }\n // if the node is disappearing altogether\n // (i.e. wasn't claimed by the other list)\n // then we need to supply an outro\n items.delete(params.key);\n return fallback && fallback(node, params, intro);\n };\n };\n }\n return [\n transition(to_send, to_receive, false),\n transition(to_receive, to_send, true)\n ];\n}\n\nexport { blur, crossfade, draw, fade, fly, scale, slide };\n","// @ts-check\n// Cynhyrchwyd y ffeil hon yn awtomatig. PEIDIWCH Â MODIWL\n// This file is automatically generated. DO NOT EDIT\n\nexport function SendFile(arg1) {\n window['go']['main']['App']['SendFile'](arg1);\n}\n\nexport function SetNotificationsParam(arg1) {\n return window['go']['main']['App']['SetNotificationsParam'](arg1);\n}\n\nexport function SetSelfUpdateParam(arg1) {\n return window['go']['main']['App']['SetSelfUpdateParam'](arg1);\n}\n\nexport function GetLogPath() {\n return window['go']['main']['App']['GetLogPath']();\n}\n\nexport function GetSelectedFiles() {\n return window['go']['main']['App']['GetSelectedFiles']();\n}\n\nexport function OpenDirectoryDialog() {\n return window['go']['main']['App']['OpenDirectoryDialog']();\n}\n\nexport function OpenFile(arg1) {\n window['go']['main']['App']['OpenFile'](arg1);\n}\n\nexport function OpenFilesDialog() {\n return window['go']['main']['App']['OpenFilesDialog']();\n}\n\nexport function PersistUserSettings() {\n window['go']['main']['App']['PersistUserSettings']();\n}\n\nexport function ReceiveFile(arg1) {\n window['go']['main']['App']['ReceiveFile'](arg1);\n}\n\nexport function UpdateCheckUI() {\n window['go']['main']['App']['UpdateCheckUI']();\n}\n\nexport function AppInstalledFromPackageManager() {\n return window['go']['main']['App']['AppInstalledFromPackageManager']();\n}\n\nexport function GetCurrentVersion() {\n return window['go']['main']['App']['GetCurrentVersion']();\n}\n\nexport function SelectedFilesSend() {\n window['go']['main']['App']['SelectedFilesSend']();\n}\n\nexport function SetDownloadsFolder() {\n return window['go']['main']['App']['SetDownloadsFolder']();\n}\n\nexport function SetOverwriteParam(arg1) {\n return window['go']['main']['App']['SetOverwriteParam'](arg1);\n}\n\nexport function ShowErrorDialog(arg1) {\n window['go']['main']['App']['ShowErrorDialog'](arg1);\n}\n\nexport function CancelWormholeRequest() {\n window['go']['main']['App']['CancelWormholeRequest']();\n}\n\nexport function ClearSelectedFiles() {\n window['go']['main']['App']['ClearSelectedFiles']();\n}\n\nexport function GetReceivedFile() {\n return window['go']['main']['App']['GetReceivedFile']();\n}\n\nexport function GetUserPrefs() {\n return window['go']['main']['App']['GetUserPrefs']();\n}\n\nexport function SendDirectory(arg1) {\n window['go']['main']['App']['SendDirectory'](arg1);\n}\n\nexport function UpdateSendProgress(arg1, arg2) {\n window['go']['main']['App']['UpdateSendProgress'](arg1, arg2);\n}\n\nexport function VerifyNotificationIcon() {\n return window['go']['main']['App']['VerifyNotificationIcon']();\n}\n","\n\n
\n
\n
\n {status}\n {percent}%\n
\n
\n \n
\n \n
\n
\n","\n\n
\n \n \n {#if selectedFiles.length > 0}\n
\n {#each selectedFileNames as fileName, idx}\n {#if idx < 9}\n
\n
\n {fileName}\n
\n {:else if idx == 9}\n
\n ...Total Selected: {selectedFiles.length}\n
\n {/if}\n {/each}\n
\n {:else}\n \n
\n Send Files\n \n
\n
\n Send Directory\n \n
\n
\n {/if}\n
\n
\n {#if selectedFiles.length > 0}\n Clear\n Send\n {/if}\n
\n {#if isSending}\n \n
\n
\n {/if}\n \n
\n {/if}\n\n","\n\n
\n \n {#if receivePath}\n \n \n
\n {receiveFileName}\n {#if !isReceiving}\n
\n
\n {/if}\n
\n {/if}\n
\n
\n
\n \n \n
\n {#if isReceiving}\n \n
\n
\n
\n {/if}\n\n","\n\n
\n
\n
Downloads Folder
\n
\n
{downloadPathCleaned}
\n
\n
\n
\n
\n
Notifications
\n
\n
\n
Overwrite
\n
\n \n \n
\n
Auto Update
\n
\n {#if packageManaged}\n Update from Package Manager\n {:else}\n \n \n {/if}\n
\n
\n
Logs
\n
\n
{logPathCleaned}
\n
\n window.runtime.BrowserOpenURL(logPath)}\n >Open\n
\n
\n
\n
\n","\n\n
\n
\n \n Riftshare v{version}\n \n
\n \n window.runtime.BrowserOpenURL(\"https://riftshare.app\")}\n >Website\n \n window.runtime.BrowserOpenURL(\"https://riftshare.app/faq.html\")}\n >FAQ\n window.runtime.BrowserOpenURL(issueUrl)}\n >Open an Issue\n
\n
\n\n

\n The goal of this project is to enable everyone to securely share files\n freely and easily.\n

\n
\n

License

\n

Licensed under the GNU GPL Version 3

\n
\n
\n

Attributions

\n

\n This project leverages the work of other Open Source Software\n

\n
    \n {#each Object.entries(attributions) as [name, url]}\n
  • \n window.runtime.BrowserOpenURL(url)}\n >{name}\n
  • \n {/each}\n
\n
\n
\n","\n\n
\n \n
\n
    \n
  • \n (appMode = \"send\")}\n >\n
    \n Send\n \n
  • \n
  • \n (appMode = \"receive\")}\n >\n
    \n Receive\n \n
  • \n
  • \n (appMode = \"settings\")}\n >\n
    \n Settings\n \n
  • \n
  • \n (appMode = \"about\")}\n >\n
    \n About\n \n
  • \n
\n
\n \n
\n {#if appMode == \"send\"}\n \n {:else if appMode == \"receive\"}\n \n {:else if appMode == \"settings\"}\n \n {:else if appMode == \"about\"}\n \n {/if}\n
\n
\n\n\n","function styleInject(css, ref) {\n if ( ref === void 0 ) ref = {};\n var insertAt = ref.insertAt;\n\n if (!css || typeof document === 'undefined') { return; }\n\n var head = document.head || document.getElementsByTagName('head')[0];\n var style = document.createElement('style');\n style.type = 'text/css';\n\n if (insertAt === 'top') {\n if (head.firstChild) {\n head.insertBefore(style, head.firstChild);\n } else {\n head.appendChild(style);\n }\n } else {\n head.appendChild(style);\n }\n\n if (style.styleSheet) {\n style.styleSheet.cssText = css;\n } else {\n style.appendChild(document.createTextNode(css));\n }\n}\n\nexport default styleInject;\n","import App from './App.svelte';\n\nconst app = new App({\n\ttarget: document.body,\n});\n\nexport default app;"],"names":["noop","identity","x","run","fn","blank_object","Object","create","run_all","fns","forEach","is_function","thing","safe_not_equal","a","b","get_slot_context","definition","ctx","$$scope","tar","src","k","assign","slice","update_slot","slot","slot_definition","dirty","get_slot_changes_fn","get_slot_context_fn","slot_changes","lets","undefined","merged","len","Math","max","length","i","get_slot_changes","slot_context","p","is_client","window","now","performance","Date","raf","cb","requestAnimationFrame","tasks","Set","run_tasks","task","c","delete","f","size","loop","callback","promise","Promise","fulfill","add","abort","is_hydrating","upper_bound","low","high","key","value","mid","append","target","node","hydrate_init","children","childNodes","m","Int32Array","longest","seqLen","idx","claim_order","newLen","lis","toMove","last","cur","push","reverse","sort","j","anchor","insertBefore","init_hydrate","actual_end_child","parentElement","firstChild","nextSibling","parentNode","appendChild","insert","detach","removeChild","destroy_each","iterations","detaching","d","element","name","document","createElement","text","data","createTextNode","space","listen","event","handler","options","addEventListener","removeEventListener","attr","attribute","removeAttribute","getAttribute","setAttribute","set_data","wholeText","set_input_value","input","active_docs","current_component","active","create_rule","duration","delay","ease","uid","step","keyframes","t","rule","str","hash","charCodeAt","doc","ownerDocument","stylesheet","__svelte_stylesheet","head","sheet","current_rules","__svelte_rules","insertRule","cssRules","animation","style","delete_rule","previous","split","next","filter","anim","indexOf","deleted","join","deleteRule","clear","set_current_component","component","onMount","Error","get_current_component","$$","on_mount","dirty_components","binding_callbacks","render_callbacks","flush_callbacks","resolved_promise","resolve","update_scheduled","add_render_callback","flushing","seen_callbacks","flush","update","pop","has","fragment","before_update","after_update","wait","then","dispatch","direction","kind","dispatchEvent","type","detail","e","createEvent","initCustomEvent","custom_event","outroing","outros","group_outros","r","check_outros","transition_in","block","local","transition_out","o","null_transition","create_in_transition","params","animation_name","config","running","cleanup","go","easing","tick","css","start_time","end_time","started","start","invalidate","end","create_bidirectional_transition","intro","running_program","pending_program","clear_animation","init","program","abs","group","create_component","mount_component","customElement","on_destroy","new_on_destroy","map","destroy_component","make_dirty","fill","instance","create_fragment","not_equal","props","parent_component","bound","on_disconnect","context","Map","callbacks","skip_bound","ready","ret","rest","hydrate","nodes","Array","from","l","SvelteComponent","$destroy","this","$on","index","splice","$set","$$props","obj","$$set","keys","cubicOut","slide","getComputedStyle","opacity","height","parseFloat","padding_top","paddingTop","padding_bottom","paddingBottom","margin_top","marginTop","margin_bottom","marginBottom","border_top_width","borderTopWidth","border_bottom_width","borderBottomWidth","min","OpenFile","arg1","CancelWormholeRequest","GetUserPrefs","slot_ctx","toString","status","waiting","percent","copyCode","copyText","getElementById","select","setSelectionRange","navigator","clipboard","writeText","String","prototype","trimEllip","substring","sendCode","sendPercent","selectedFiles","isSending","runtime","EventsOn","newCode","sendStatus","setTimeout","filePaths","selectedFileNames","fileName","selection","catch","err","console","log","preventDefault","call","receivePattern","receiveCode","receivePercent","isReceiving","receivePath","path","receiveStatus","receiveCodeValid","test","receiveFileName","prefs","downloadsDirectory","downloadsFolder","logPath","notifications","overwrite","selfUpdate","packageManaged","managed","downloadPathCleaned","replace","logPathCleaned","folder","newValue","BrowserOpenURL","entries","version","ver","svelte","tailwindcss","url","appMode","ref","insertAt","getElementsByTagName","styleSheet","cssText","body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,WACPqD,EAAKzD,aAAagE,EAAOP,EAAKrD,YAKhCqD,EAAKlD,YAAYyD,GAGfA,EAAMyN,WACRzN,EAAMyN,WAAWC,QAAUtJ,EAE3BpE,EAAMzD,YAAYU,SAASI,eAAe+G,4q3BCrBlC,oEAAQ,CACnBzJ,OAAQsC,SAAS0Q"} \ No newline at end of file +{"version":3,"file":"bundle.js","sources":["../node_modules/svelte/internal/index.mjs","../node_modules/svelte/easing/index.mjs","../node_modules/svelte/transition/index.mjs","../wailsjs/go/main/App.js","../src/progress.svelte","../src/sender.svelte","../src/receiver.svelte","../src/settings.svelte","../src/about.svelte","../src/App.svelte","../node_modules/style-inject/dist/style-inject.es.js","../src/main.js"],"sourcesContent":["function noop() { }\nconst identity = x => x;\nfunction assign(tar, src) {\n // @ts-ignore\n for (const k in src)\n tar[k] = src[k];\n return tar;\n}\nfunction is_promise(value) {\n return value && typeof value === 'object' && typeof value.then === 'function';\n}\nfunction add_location(element, file, line, column, char) {\n element.__svelte_meta = {\n loc: { file, line, column, char }\n };\n}\nfunction run(fn) {\n return fn();\n}\nfunction blank_object() {\n return Object.create(null);\n}\nfunction run_all(fns) {\n fns.forEach(run);\n}\nfunction is_function(thing) {\n return typeof thing === 'function';\n}\nfunction safe_not_equal(a, b) {\n return a != a ? b == b : a !== b || ((a && typeof a === 'object') || typeof a === 'function');\n}\nfunction not_equal(a, b) {\n return a != a ? b == b : a !== b;\n}\nfunction is_empty(obj) {\n return Object.keys(obj).length === 0;\n}\nfunction validate_store(store, name) {\n if (store != null && typeof store.subscribe !== 'function') {\n throw new Error(`'${name}' is not a store with a 'subscribe' method`);\n }\n}\nfunction subscribe(store, ...callbacks) {\n if (store == null) {\n return noop;\n }\n const unsub = store.subscribe(...callbacks);\n return unsub.unsubscribe ? () => unsub.unsubscribe() : unsub;\n}\nfunction get_store_value(store) {\n let value;\n subscribe(store, _ => value = _)();\n return value;\n}\nfunction component_subscribe(component, store, callback) {\n component.$$.on_destroy.push(subscribe(store, callback));\n}\nfunction create_slot(definition, ctx, $$scope, fn) {\n if (definition) {\n const slot_ctx = get_slot_context(definition, ctx, $$scope, fn);\n return definition[0](slot_ctx);\n }\n}\nfunction get_slot_context(definition, ctx, $$scope, fn) {\n return definition[1] && fn\n ? assign($$scope.ctx.slice(), definition[1](fn(ctx)))\n : $$scope.ctx;\n}\nfunction get_slot_changes(definition, $$scope, dirty, fn) {\n if (definition[2] && fn) {\n const lets = definition[2](fn(dirty));\n if ($$scope.dirty === undefined) {\n return lets;\n }\n if (typeof lets === 'object') {\n const merged = [];\n const len = Math.max($$scope.dirty.length, lets.length);\n for (let i = 0; i < len; i += 1) {\n merged[i] = $$scope.dirty[i] | lets[i];\n }\n return merged;\n }\n return $$scope.dirty | lets;\n }\n return $$scope.dirty;\n}\nfunction update_slot(slot, slot_definition, ctx, $$scope, dirty, get_slot_changes_fn, get_slot_context_fn) {\n const slot_changes = get_slot_changes(slot_definition, $$scope, dirty, get_slot_changes_fn);\n if (slot_changes) {\n const slot_context = get_slot_context(slot_definition, ctx, $$scope, get_slot_context_fn);\n slot.p(slot_context, slot_changes);\n }\n}\nfunction update_slot_spread(slot, slot_definition, ctx, $$scope, dirty, get_slot_changes_fn, get_slot_spread_changes_fn, get_slot_context_fn) {\n const slot_changes = get_slot_spread_changes_fn(dirty) | get_slot_changes(slot_definition, $$scope, dirty, get_slot_changes_fn);\n if (slot_changes) {\n const slot_context = get_slot_context(slot_definition, ctx, $$scope, get_slot_context_fn);\n slot.p(slot_context, slot_changes);\n }\n}\nfunction exclude_internal_props(props) {\n const result = {};\n for (const k in props)\n if (k[0] !== '$')\n result[k] = props[k];\n return result;\n}\nfunction compute_rest_props(props, keys) {\n const rest = {};\n keys = new Set(keys);\n for (const k in props)\n if (!keys.has(k) && k[0] !== '$')\n rest[k] = props[k];\n return rest;\n}\nfunction compute_slots(slots) {\n const result = {};\n for (const key in slots) {\n result[key] = true;\n }\n return result;\n}\nfunction once(fn) {\n let ran = false;\n return function (...args) {\n if (ran)\n return;\n ran = true;\n fn.call(this, ...args);\n };\n}\nfunction null_to_empty(value) {\n return value == null ? '' : value;\n}\nfunction set_store_value(store, ret, value = ret) {\n store.set(value);\n return ret;\n}\nconst has_prop = (obj, prop) => Object.prototype.hasOwnProperty.call(obj, prop);\nfunction action_destroyer(action_result) {\n return action_result && is_function(action_result.destroy) ? action_result.destroy : noop;\n}\n\nconst is_client = typeof window !== 'undefined';\nlet now = is_client\n ? () => window.performance.now()\n : () => Date.now();\nlet raf = is_client ? cb => requestAnimationFrame(cb) : noop;\n// used internally for testing\nfunction set_now(fn) {\n now = fn;\n}\nfunction set_raf(fn) {\n raf = fn;\n}\n\nconst tasks = new Set();\nfunction run_tasks(now) {\n tasks.forEach(task => {\n if (!task.c(now)) {\n tasks.delete(task);\n task.f();\n }\n });\n if (tasks.size !== 0)\n raf(run_tasks);\n}\n/**\n * For testing purposes only!\n */\nfunction clear_loops() {\n tasks.clear();\n}\n/**\n * Creates a new task that runs on each raf frame\n * until it returns a falsy value or is aborted\n */\nfunction loop(callback) {\n let task;\n if (tasks.size === 0)\n raf(run_tasks);\n return {\n promise: new Promise(fulfill => {\n tasks.add(task = { c: callback, f: fulfill });\n }),\n abort() {\n tasks.delete(task);\n }\n };\n}\n\n// Track which nodes are claimed during hydration. Unclaimed nodes can then be removed from the DOM\n// at the end of hydration without touching the remaining nodes.\nlet is_hydrating = false;\nfunction start_hydrating() {\n is_hydrating = true;\n}\nfunction end_hydrating() {\n is_hydrating = false;\n}\nfunction upper_bound(low, high, key, value) {\n // Return first index of value larger than input value in the range [low, high)\n while (low < high) {\n const mid = low + ((high - low) >> 1);\n if (key(mid) <= value) {\n low = mid + 1;\n }\n else {\n high = mid;\n }\n }\n return low;\n}\nfunction init_hydrate(target) {\n if (target.hydrate_init)\n return;\n target.hydrate_init = true;\n // We know that all children have claim_order values since the unclaimed have been detached\n const children = target.childNodes;\n /*\n * Reorder claimed children optimally.\n * We can reorder claimed children optimally by finding the longest subsequence of\n * nodes that are already claimed in order and only moving the rest. The longest\n * subsequence subsequence of nodes that are claimed in order can be found by\n * computing the longest increasing subsequence of .claim_order values.\n *\n * This algorithm is optimal in generating the least amount of reorder operations\n * possible.\n *\n * Proof:\n * We know that, given a set of reordering operations, the nodes that do not move\n * always form an increasing subsequence, since they do not move among each other\n * meaning that they must be already ordered among each other. Thus, the maximal\n * set of nodes that do not move form a longest increasing subsequence.\n */\n // Compute longest increasing subsequence\n // m: subsequence length j => index k of smallest value that ends an increasing subsequence of length j\n const m = new Int32Array(children.length + 1);\n // Predecessor indices + 1\n const p = new Int32Array(children.length);\n m[0] = -1;\n let longest = 0;\n for (let i = 0; i < children.length; i++) {\n const current = children[i].claim_order;\n // Find the largest subsequence length such that it ends in a value less than our current value\n // upper_bound returns first greater value, so we subtract one\n const seqLen = upper_bound(1, longest + 1, idx => children[m[idx]].claim_order, current) - 1;\n p[i] = m[seqLen] + 1;\n const newLen = seqLen + 1;\n // We can guarantee that current is the smallest value. Otherwise, we would have generated a longer sequence.\n m[newLen] = i;\n longest = Math.max(newLen, longest);\n }\n // The longest increasing subsequence of nodes (initially reversed)\n const lis = [];\n // The rest of the nodes, nodes that will be moved\n const toMove = [];\n let last = children.length - 1;\n for (let cur = m[longest] + 1; cur != 0; cur = p[cur - 1]) {\n lis.push(children[cur - 1]);\n for (; last >= cur; last--) {\n toMove.push(children[last]);\n }\n last--;\n }\n for (; last >= 0; last--) {\n toMove.push(children[last]);\n }\n lis.reverse();\n // We sort the nodes being moved to guarantee that their insertion order matches the claim order\n toMove.sort((a, b) => a.claim_order - b.claim_order);\n // Finally, we move the nodes\n for (let i = 0, j = 0; i < toMove.length; i++) {\n while (j < lis.length && toMove[i].claim_order >= lis[j].claim_order) {\n j++;\n }\n const anchor = j < lis.length ? lis[j] : null;\n target.insertBefore(toMove[i], anchor);\n }\n}\nfunction append(target, node) {\n if (is_hydrating) {\n init_hydrate(target);\n if ((target.actual_end_child === undefined) || ((target.actual_end_child !== null) && (target.actual_end_child.parentElement !== target))) {\n target.actual_end_child = target.firstChild;\n }\n if (node !== target.actual_end_child) {\n target.insertBefore(node, target.actual_end_child);\n }\n else {\n target.actual_end_child = node.nextSibling;\n }\n }\n else if (node.parentNode !== target) {\n target.appendChild(node);\n }\n}\nfunction insert(target, node, anchor) {\n if (is_hydrating && !anchor) {\n append(target, node);\n }\n else if (node.parentNode !== target || (anchor && node.nextSibling !== anchor)) {\n target.insertBefore(node, anchor || null);\n }\n}\nfunction detach(node) {\n node.parentNode.removeChild(node);\n}\nfunction destroy_each(iterations, detaching) {\n for (let i = 0; i < iterations.length; i += 1) {\n if (iterations[i])\n iterations[i].d(detaching);\n }\n}\nfunction element(name) {\n return document.createElement(name);\n}\nfunction element_is(name, is) {\n return document.createElement(name, { is });\n}\nfunction object_without_properties(obj, exclude) {\n const target = {};\n for (const k in obj) {\n if (has_prop(obj, k)\n // @ts-ignore\n && exclude.indexOf(k) === -1) {\n // @ts-ignore\n target[k] = obj[k];\n }\n }\n return target;\n}\nfunction svg_element(name) {\n return document.createElementNS('http://www.w3.org/2000/svg', name);\n}\nfunction text(data) {\n return document.createTextNode(data);\n}\nfunction space() {\n return text(' ');\n}\nfunction empty() {\n return text('');\n}\nfunction listen(node, event, handler, options) {\n node.addEventListener(event, handler, options);\n return () => node.removeEventListener(event, handler, options);\n}\nfunction prevent_default(fn) {\n return function (event) {\n event.preventDefault();\n // @ts-ignore\n return fn.call(this, event);\n };\n}\nfunction stop_propagation(fn) {\n return function (event) {\n event.stopPropagation();\n // @ts-ignore\n return fn.call(this, event);\n };\n}\nfunction self(fn) {\n return function (event) {\n // @ts-ignore\n if (event.target === this)\n fn.call(this, event);\n };\n}\nfunction attr(node, attribute, value) {\n if (value == null)\n node.removeAttribute(attribute);\n else if (node.getAttribute(attribute) !== value)\n node.setAttribute(attribute, value);\n}\nfunction set_attributes(node, attributes) {\n // @ts-ignore\n const descriptors = Object.getOwnPropertyDescriptors(node.__proto__);\n for (const key in attributes) {\n if (attributes[key] == null) {\n node.removeAttribute(key);\n }\n else if (key === 'style') {\n node.style.cssText = attributes[key];\n }\n else if (key === '__value') {\n node.value = node[key] = attributes[key];\n }\n else if (descriptors[key] && descriptors[key].set) {\n node[key] = attributes[key];\n }\n else {\n attr(node, key, attributes[key]);\n }\n }\n}\nfunction set_svg_attributes(node, attributes) {\n for (const key in attributes) {\n attr(node, key, attributes[key]);\n }\n}\nfunction set_custom_element_data(node, prop, value) {\n if (prop in node) {\n node[prop] = typeof node[prop] === 'boolean' && value === '' ? true : value;\n }\n else {\n attr(node, prop, value);\n }\n}\nfunction xlink_attr(node, attribute, value) {\n node.setAttributeNS('http://www.w3.org/1999/xlink', attribute, value);\n}\nfunction get_binding_group_value(group, __value, checked) {\n const value = new Set();\n for (let i = 0; i < group.length; i += 1) {\n if (group[i].checked)\n value.add(group[i].__value);\n }\n if (!checked) {\n value.delete(__value);\n }\n return Array.from(value);\n}\nfunction to_number(value) {\n return value === '' ? null : +value;\n}\nfunction time_ranges_to_array(ranges) {\n const array = [];\n for (let i = 0; i < ranges.length; i += 1) {\n array.push({ start: ranges.start(i), end: ranges.end(i) });\n }\n return array;\n}\nfunction children(element) {\n return Array.from(element.childNodes);\n}\nfunction claim_node(nodes, predicate, processNode, createNode, dontUpdateLastIndex = false) {\n // Try to find nodes in an order such that we lengthen the longest increasing subsequence\n if (nodes.claim_info === undefined) {\n nodes.claim_info = { last_index: 0, total_claimed: 0 };\n }\n const resultNode = (() => {\n // We first try to find an element after the previous one\n for (let i = nodes.claim_info.last_index; i < nodes.length; i++) {\n const node = nodes[i];\n if (predicate(node)) {\n processNode(node);\n nodes.splice(i, 1);\n if (!dontUpdateLastIndex) {\n nodes.claim_info.last_index = i;\n }\n return node;\n }\n }\n // Otherwise, we try to find one before\n // We iterate in reverse so that we don't go too far back\n for (let i = nodes.claim_info.last_index - 1; i >= 0; i--) {\n const node = nodes[i];\n if (predicate(node)) {\n processNode(node);\n nodes.splice(i, 1);\n if (!dontUpdateLastIndex) {\n nodes.claim_info.last_index = i;\n }\n else {\n // Since we spliced before the last_index, we decrease it\n nodes.claim_info.last_index--;\n }\n return node;\n }\n }\n // If we can't find any matching node, we create a new one\n return createNode();\n })();\n resultNode.claim_order = nodes.claim_info.total_claimed;\n nodes.claim_info.total_claimed += 1;\n return resultNode;\n}\nfunction claim_element(nodes, name, attributes, svg) {\n return claim_node(nodes, (node) => node.nodeName === name, (node) => {\n const remove = [];\n for (let j = 0; j < node.attributes.length; j++) {\n const attribute = node.attributes[j];\n if (!attributes[attribute.name]) {\n remove.push(attribute.name);\n }\n }\n remove.forEach(v => node.removeAttribute(v));\n }, () => svg ? svg_element(name) : element(name));\n}\nfunction claim_text(nodes, data) {\n return claim_node(nodes, (node) => node.nodeType === 3, (node) => {\n node.data = '' + data;\n }, () => text(data), true // Text nodes should not update last index since it is likely not worth it to eliminate an increasing subsequence of actual elements\n );\n}\nfunction claim_space(nodes) {\n return claim_text(nodes, ' ');\n}\nfunction find_comment(nodes, text, start) {\n for (let i = start; i < nodes.length; i += 1) {\n const node = nodes[i];\n if (node.nodeType === 8 /* comment node */ && node.textContent.trim() === text) {\n return i;\n }\n }\n return nodes.length;\n}\nfunction claim_html_tag(nodes) {\n // find html opening tag\n const start_index = find_comment(nodes, 'HTML_TAG_START', 0);\n const end_index = find_comment(nodes, 'HTML_TAG_END', start_index);\n if (start_index === end_index) {\n return new HtmlTag();\n }\n const html_tag_nodes = nodes.splice(start_index, end_index + 1);\n detach(html_tag_nodes[0]);\n detach(html_tag_nodes[html_tag_nodes.length - 1]);\n return new HtmlTag(html_tag_nodes.slice(1, html_tag_nodes.length - 1));\n}\nfunction set_data(text, data) {\n data = '' + data;\n if (text.wholeText !== data)\n text.data = data;\n}\nfunction set_input_value(input, value) {\n input.value = value == null ? '' : value;\n}\nfunction set_input_type(input, type) {\n try {\n input.type = type;\n }\n catch (e) {\n // do nothing\n }\n}\nfunction set_style(node, key, value, important) {\n node.style.setProperty(key, value, important ? 'important' : '');\n}\nfunction select_option(select, value) {\n for (let i = 0; i < select.options.length; i += 1) {\n const option = select.options[i];\n if (option.__value === value) {\n option.selected = true;\n return;\n }\n }\n}\nfunction select_options(select, value) {\n for (let i = 0; i < select.options.length; i += 1) {\n const option = select.options[i];\n option.selected = ~value.indexOf(option.__value);\n }\n}\nfunction select_value(select) {\n const selected_option = select.querySelector(':checked') || select.options[0];\n return selected_option && selected_option.__value;\n}\nfunction select_multiple_value(select) {\n return [].map.call(select.querySelectorAll(':checked'), option => option.__value);\n}\n// unfortunately this can't be a constant as that wouldn't be tree-shakeable\n// so we cache the result instead\nlet crossorigin;\nfunction is_crossorigin() {\n if (crossorigin === undefined) {\n crossorigin = false;\n try {\n if (typeof window !== 'undefined' && window.parent) {\n void window.parent.document;\n }\n }\n catch (error) {\n crossorigin = true;\n }\n }\n return crossorigin;\n}\nfunction add_resize_listener(node, fn) {\n const computed_style = getComputedStyle(node);\n if (computed_style.position === 'static') {\n node.style.position = 'relative';\n }\n const iframe = element('iframe');\n iframe.setAttribute('style', 'display: block; position: absolute; top: 0; left: 0; width: 100%; height: 100%; ' +\n 'overflow: hidden; border: 0; opacity: 0; pointer-events: none; z-index: -1;');\n iframe.setAttribute('aria-hidden', 'true');\n iframe.tabIndex = -1;\n const crossorigin = is_crossorigin();\n let unsubscribe;\n if (crossorigin) {\n iframe.src = \"data:text/html,\";\n unsubscribe = listen(window, 'message', (event) => {\n if (event.source === iframe.contentWindow)\n fn();\n });\n }\n else {\n iframe.src = 'about:blank';\n iframe.onload = () => {\n unsubscribe = listen(iframe.contentWindow, 'resize', fn);\n };\n }\n append(node, iframe);\n return () => {\n if (crossorigin) {\n unsubscribe();\n }\n else if (unsubscribe && iframe.contentWindow) {\n unsubscribe();\n }\n detach(iframe);\n };\n}\nfunction toggle_class(element, name, toggle) {\n element.classList[toggle ? 'add' : 'remove'](name);\n}\nfunction custom_event(type, detail) {\n const e = document.createEvent('CustomEvent');\n e.initCustomEvent(type, false, false, detail);\n return e;\n}\nfunction query_selector_all(selector, parent = document.body) {\n return Array.from(parent.querySelectorAll(selector));\n}\nclass HtmlTag {\n constructor(claimed_nodes) {\n this.e = this.n = null;\n this.l = claimed_nodes;\n }\n m(html, target, anchor = null) {\n if (!this.e) {\n this.e = element(target.nodeName);\n this.t = target;\n if (this.l) {\n this.n = this.l;\n }\n else {\n this.h(html);\n }\n }\n this.i(anchor);\n }\n h(html) {\n this.e.innerHTML = html;\n this.n = Array.from(this.e.childNodes);\n }\n i(anchor) {\n for (let i = 0; i < this.n.length; i += 1) {\n insert(this.t, this.n[i], anchor);\n }\n }\n p(html) {\n this.d();\n this.h(html);\n this.i(this.a);\n }\n d() {\n this.n.forEach(detach);\n }\n}\nfunction attribute_to_object(attributes) {\n const result = {};\n for (const attribute of attributes) {\n result[attribute.name] = attribute.value;\n }\n return result;\n}\nfunction get_custom_elements_slots(element) {\n const result = {};\n element.childNodes.forEach((node) => {\n result[node.slot || 'default'] = true;\n });\n return result;\n}\n\nconst active_docs = new Set();\nlet active = 0;\n// https://github.com/darkskyapp/string-hash/blob/master/index.js\nfunction hash(str) {\n let hash = 5381;\n let i = str.length;\n while (i--)\n hash = ((hash << 5) - hash) ^ str.charCodeAt(i);\n return hash >>> 0;\n}\nfunction create_rule(node, a, b, duration, delay, ease, fn, uid = 0) {\n const step = 16.666 / duration;\n let keyframes = '{\\n';\n for (let p = 0; p <= 1; p += step) {\n const t = a + (b - a) * ease(p);\n keyframes += p * 100 + `%{${fn(t, 1 - t)}}\\n`;\n }\n const rule = keyframes + `100% {${fn(b, 1 - b)}}\\n}`;\n const name = `__svelte_${hash(rule)}_${uid}`;\n const doc = node.ownerDocument;\n active_docs.add(doc);\n const stylesheet = doc.__svelte_stylesheet || (doc.__svelte_stylesheet = doc.head.appendChild(element('style')).sheet);\n const current_rules = doc.__svelte_rules || (doc.__svelte_rules = {});\n if (!current_rules[name]) {\n current_rules[name] = true;\n stylesheet.insertRule(`@keyframes ${name} ${rule}`, stylesheet.cssRules.length);\n }\n const animation = node.style.animation || '';\n node.style.animation = `${animation ? `${animation}, ` : ''}${name} ${duration}ms linear ${delay}ms 1 both`;\n active += 1;\n return name;\n}\nfunction delete_rule(node, name) {\n const previous = (node.style.animation || '').split(', ');\n const next = previous.filter(name\n ? anim => anim.indexOf(name) < 0 // remove specific animation\n : anim => anim.indexOf('__svelte') === -1 // remove all Svelte animations\n );\n const deleted = previous.length - next.length;\n if (deleted) {\n node.style.animation = next.join(', ');\n active -= deleted;\n if (!active)\n clear_rules();\n }\n}\nfunction clear_rules() {\n raf(() => {\n if (active)\n return;\n active_docs.forEach(doc => {\n const stylesheet = doc.__svelte_stylesheet;\n let i = stylesheet.cssRules.length;\n while (i--)\n stylesheet.deleteRule(i);\n doc.__svelte_rules = {};\n });\n active_docs.clear();\n });\n}\n\nfunction create_animation(node, from, fn, params) {\n if (!from)\n return noop;\n const to = node.getBoundingClientRect();\n if (from.left === to.left && from.right === to.right && from.top === to.top && from.bottom === to.bottom)\n return noop;\n const { delay = 0, duration = 300, easing = identity, \n // @ts-ignore todo: should this be separated from destructuring? Or start/end added to public api and documentation?\n start: start_time = now() + delay, \n // @ts-ignore todo:\n end = start_time + duration, tick = noop, css } = fn(node, { from, to }, params);\n let running = true;\n let started = false;\n let name;\n function start() {\n if (css) {\n name = create_rule(node, 0, 1, duration, delay, easing, css);\n }\n if (!delay) {\n started = true;\n }\n }\n function stop() {\n if (css)\n delete_rule(node, name);\n running = false;\n }\n loop(now => {\n if (!started && now >= start_time) {\n started = true;\n }\n if (started && now >= end) {\n tick(1, 0);\n stop();\n }\n if (!running) {\n return false;\n }\n if (started) {\n const p = now - start_time;\n const t = 0 + 1 * easing(p / duration);\n tick(t, 1 - t);\n }\n return true;\n });\n start();\n tick(0, 1);\n return stop;\n}\nfunction fix_position(node) {\n const style = getComputedStyle(node);\n if (style.position !== 'absolute' && style.position !== 'fixed') {\n const { width, height } = style;\n const a = node.getBoundingClientRect();\n node.style.position = 'absolute';\n node.style.width = width;\n node.style.height = height;\n add_transform(node, a);\n }\n}\nfunction add_transform(node, a) {\n const b = node.getBoundingClientRect();\n if (a.left !== b.left || a.top !== b.top) {\n const style = getComputedStyle(node);\n const transform = style.transform === 'none' ? '' : style.transform;\n node.style.transform = `${transform} translate(${a.left - b.left}px, ${a.top - b.top}px)`;\n }\n}\n\nlet current_component;\nfunction set_current_component(component) {\n current_component = component;\n}\nfunction get_current_component() {\n if (!current_component)\n throw new Error('Function called outside component initialization');\n return current_component;\n}\nfunction beforeUpdate(fn) {\n get_current_component().$$.before_update.push(fn);\n}\nfunction onMount(fn) {\n get_current_component().$$.on_mount.push(fn);\n}\nfunction afterUpdate(fn) {\n get_current_component().$$.after_update.push(fn);\n}\nfunction onDestroy(fn) {\n get_current_component().$$.on_destroy.push(fn);\n}\nfunction createEventDispatcher() {\n const component = get_current_component();\n return (type, detail) => {\n const callbacks = component.$$.callbacks[type];\n if (callbacks) {\n // TODO are there situations where events could be dispatched\n // in a server (non-DOM) environment?\n const event = custom_event(type, detail);\n callbacks.slice().forEach(fn => {\n fn.call(component, event);\n });\n }\n };\n}\nfunction setContext(key, context) {\n get_current_component().$$.context.set(key, context);\n}\nfunction getContext(key) {\n return get_current_component().$$.context.get(key);\n}\nfunction hasContext(key) {\n return get_current_component().$$.context.has(key);\n}\n// TODO figure out if we still want to support\n// shorthand events, or if we want to implement\n// a real bubbling mechanism\nfunction bubble(component, event) {\n const callbacks = component.$$.callbacks[event.type];\n if (callbacks) {\n // @ts-ignore\n callbacks.slice().forEach(fn => fn.call(this, event));\n }\n}\n\nconst dirty_components = [];\nconst intros = { enabled: false };\nconst binding_callbacks = [];\nconst render_callbacks = [];\nconst flush_callbacks = [];\nconst resolved_promise = Promise.resolve();\nlet update_scheduled = false;\nfunction schedule_update() {\n if (!update_scheduled) {\n update_scheduled = true;\n resolved_promise.then(flush);\n }\n}\nfunction tick() {\n schedule_update();\n return resolved_promise;\n}\nfunction add_render_callback(fn) {\n render_callbacks.push(fn);\n}\nfunction add_flush_callback(fn) {\n flush_callbacks.push(fn);\n}\nlet flushing = false;\nconst seen_callbacks = new Set();\nfunction flush() {\n if (flushing)\n return;\n flushing = true;\n do {\n // first, call beforeUpdate functions\n // and update components\n for (let i = 0; i < dirty_components.length; i += 1) {\n const component = dirty_components[i];\n set_current_component(component);\n update(component.$$);\n }\n set_current_component(null);\n dirty_components.length = 0;\n while (binding_callbacks.length)\n binding_callbacks.pop()();\n // then, once components are updated, call\n // afterUpdate functions. This may cause\n // subsequent updates...\n for (let i = 0; i < render_callbacks.length; i += 1) {\n const callback = render_callbacks[i];\n if (!seen_callbacks.has(callback)) {\n // ...so guard against infinite loops\n seen_callbacks.add(callback);\n callback();\n }\n }\n render_callbacks.length = 0;\n } while (dirty_components.length);\n while (flush_callbacks.length) {\n flush_callbacks.pop()();\n }\n update_scheduled = false;\n flushing = false;\n seen_callbacks.clear();\n}\nfunction update($$) {\n if ($$.fragment !== null) {\n $$.update();\n run_all($$.before_update);\n const dirty = $$.dirty;\n $$.dirty = [-1];\n $$.fragment && $$.fragment.p($$.ctx, dirty);\n $$.after_update.forEach(add_render_callback);\n }\n}\n\nlet promise;\nfunction wait() {\n if (!promise) {\n promise = Promise.resolve();\n promise.then(() => {\n promise = null;\n });\n }\n return promise;\n}\nfunction dispatch(node, direction, kind) {\n node.dispatchEvent(custom_event(`${direction ? 'intro' : 'outro'}${kind}`));\n}\nconst outroing = new Set();\nlet outros;\nfunction group_outros() {\n outros = {\n r: 0,\n c: [],\n p: outros // parent group\n };\n}\nfunction check_outros() {\n if (!outros.r) {\n run_all(outros.c);\n }\n outros = outros.p;\n}\nfunction transition_in(block, local) {\n if (block && block.i) {\n outroing.delete(block);\n block.i(local);\n }\n}\nfunction transition_out(block, local, detach, callback) {\n if (block && block.o) {\n if (outroing.has(block))\n return;\n outroing.add(block);\n outros.c.push(() => {\n outroing.delete(block);\n if (callback) {\n if (detach)\n block.d(1);\n callback();\n }\n });\n block.o(local);\n }\n}\nconst null_transition = { duration: 0 };\nfunction create_in_transition(node, fn, params) {\n let config = fn(node, params);\n let running = false;\n let animation_name;\n let task;\n let uid = 0;\n function cleanup() {\n if (animation_name)\n delete_rule(node, animation_name);\n }\n function go() {\n const { delay = 0, duration = 300, easing = identity, tick = noop, css } = config || null_transition;\n if (css)\n animation_name = create_rule(node, 0, 1, duration, delay, easing, css, uid++);\n tick(0, 1);\n const start_time = now() + delay;\n const end_time = start_time + duration;\n if (task)\n task.abort();\n running = true;\n add_render_callback(() => dispatch(node, true, 'start'));\n task = loop(now => {\n if (running) {\n if (now >= end_time) {\n tick(1, 0);\n dispatch(node, true, 'end');\n cleanup();\n return running = false;\n }\n if (now >= start_time) {\n const t = easing((now - start_time) / duration);\n tick(t, 1 - t);\n }\n }\n return running;\n });\n }\n let started = false;\n return {\n start() {\n if (started)\n return;\n delete_rule(node);\n if (is_function(config)) {\n config = config();\n wait().then(go);\n }\n else {\n go();\n }\n },\n invalidate() {\n started = false;\n },\n end() {\n if (running) {\n cleanup();\n running = false;\n }\n }\n };\n}\nfunction create_out_transition(node, fn, params) {\n let config = fn(node, params);\n let running = true;\n let animation_name;\n const group = outros;\n group.r += 1;\n function go() {\n const { delay = 0, duration = 300, easing = identity, tick = noop, css } = config || null_transition;\n if (css)\n animation_name = create_rule(node, 1, 0, duration, delay, easing, css);\n const start_time = now() + delay;\n const end_time = start_time + duration;\n add_render_callback(() => dispatch(node, false, 'start'));\n loop(now => {\n if (running) {\n if (now >= end_time) {\n tick(0, 1);\n dispatch(node, false, 'end');\n if (!--group.r) {\n // this will result in `end()` being called,\n // so we don't need to clean up here\n run_all(group.c);\n }\n return false;\n }\n if (now >= start_time) {\n const t = easing((now - start_time) / duration);\n tick(1 - t, t);\n }\n }\n return running;\n });\n }\n if (is_function(config)) {\n wait().then(() => {\n // @ts-ignore\n config = config();\n go();\n });\n }\n else {\n go();\n }\n return {\n end(reset) {\n if (reset && config.tick) {\n config.tick(1, 0);\n }\n if (running) {\n if (animation_name)\n delete_rule(node, animation_name);\n running = false;\n }\n }\n };\n}\nfunction create_bidirectional_transition(node, fn, params, intro) {\n let config = fn(node, params);\n let t = intro ? 0 : 1;\n let running_program = null;\n let pending_program = null;\n let animation_name = null;\n function clear_animation() {\n if (animation_name)\n delete_rule(node, animation_name);\n }\n function init(program, duration) {\n const d = program.b - t;\n duration *= Math.abs(d);\n return {\n a: t,\n b: program.b,\n d,\n duration,\n start: program.start,\n end: program.start + duration,\n group: program.group\n };\n }\n function go(b) {\n const { delay = 0, duration = 300, easing = identity, tick = noop, css } = config || null_transition;\n const program = {\n start: now() + delay,\n b\n };\n if (!b) {\n // @ts-ignore todo: improve typings\n program.group = outros;\n outros.r += 1;\n }\n if (running_program || pending_program) {\n pending_program = program;\n }\n else {\n // if this is an intro, and there's a delay, we need to do\n // an initial tick and/or apply CSS animation immediately\n if (css) {\n clear_animation();\n animation_name = create_rule(node, t, b, duration, delay, easing, css);\n }\n if (b)\n tick(0, 1);\n running_program = init(program, duration);\n add_render_callback(() => dispatch(node, b, 'start'));\n loop(now => {\n if (pending_program && now > pending_program.start) {\n running_program = init(pending_program, duration);\n pending_program = null;\n dispatch(node, running_program.b, 'start');\n if (css) {\n clear_animation();\n animation_name = create_rule(node, t, running_program.b, running_program.duration, 0, easing, config.css);\n }\n }\n if (running_program) {\n if (now >= running_program.end) {\n tick(t = running_program.b, 1 - t);\n dispatch(node, running_program.b, 'end');\n if (!pending_program) {\n // we're done\n if (running_program.b) {\n // intro — we can tidy up immediately\n clear_animation();\n }\n else {\n // outro — needs to be coordinated\n if (!--running_program.group.r)\n run_all(running_program.group.c);\n }\n }\n running_program = null;\n }\n else if (now >= running_program.start) {\n const p = now - running_program.start;\n t = running_program.a + running_program.d * easing(p / running_program.duration);\n tick(t, 1 - t);\n }\n }\n return !!(running_program || pending_program);\n });\n }\n }\n return {\n run(b) {\n if (is_function(config)) {\n wait().then(() => {\n // @ts-ignore\n config = config();\n go(b);\n });\n }\n else {\n go(b);\n }\n },\n end() {\n clear_animation();\n running_program = pending_program = null;\n }\n };\n}\n\nfunction handle_promise(promise, info) {\n const token = info.token = {};\n function update(type, index, key, value) {\n if (info.token !== token)\n return;\n info.resolved = value;\n let child_ctx = info.ctx;\n if (key !== undefined) {\n child_ctx = child_ctx.slice();\n child_ctx[key] = value;\n }\n const block = type && (info.current = type)(child_ctx);\n let needs_flush = false;\n if (info.block) {\n if (info.blocks) {\n info.blocks.forEach((block, i) => {\n if (i !== index && block) {\n group_outros();\n transition_out(block, 1, 1, () => {\n if (info.blocks[i] === block) {\n info.blocks[i] = null;\n }\n });\n check_outros();\n }\n });\n }\n else {\n info.block.d(1);\n }\n block.c();\n transition_in(block, 1);\n block.m(info.mount(), info.anchor);\n needs_flush = true;\n }\n info.block = block;\n if (info.blocks)\n info.blocks[index] = block;\n if (needs_flush) {\n flush();\n }\n }\n if (is_promise(promise)) {\n const current_component = get_current_component();\n promise.then(value => {\n set_current_component(current_component);\n update(info.then, 1, info.value, value);\n set_current_component(null);\n }, error => {\n set_current_component(current_component);\n update(info.catch, 2, info.error, error);\n set_current_component(null);\n if (!info.hasCatch) {\n throw error;\n }\n });\n // if we previously had a then/catch block, destroy it\n if (info.current !== info.pending) {\n update(info.pending, 0);\n return true;\n }\n }\n else {\n if (info.current !== info.then) {\n update(info.then, 1, info.value, promise);\n return true;\n }\n info.resolved = promise;\n }\n}\nfunction update_await_block_branch(info, ctx, dirty) {\n const child_ctx = ctx.slice();\n const { resolved } = info;\n if (info.current === info.then) {\n child_ctx[info.value] = resolved;\n }\n if (info.current === info.catch) {\n child_ctx[info.error] = resolved;\n }\n info.block.p(child_ctx, dirty);\n}\n\nconst globals = (typeof window !== 'undefined'\n ? window\n : typeof globalThis !== 'undefined'\n ? globalThis\n : global);\n\nfunction destroy_block(block, lookup) {\n block.d(1);\n lookup.delete(block.key);\n}\nfunction outro_and_destroy_block(block, lookup) {\n transition_out(block, 1, 1, () => {\n lookup.delete(block.key);\n });\n}\nfunction fix_and_destroy_block(block, lookup) {\n block.f();\n destroy_block(block, lookup);\n}\nfunction fix_and_outro_and_destroy_block(block, lookup) {\n block.f();\n outro_and_destroy_block(block, lookup);\n}\nfunction update_keyed_each(old_blocks, dirty, get_key, dynamic, ctx, list, lookup, node, destroy, create_each_block, next, get_context) {\n let o = old_blocks.length;\n let n = list.length;\n let i = o;\n const old_indexes = {};\n while (i--)\n old_indexes[old_blocks[i].key] = i;\n const new_blocks = [];\n const new_lookup = new Map();\n const deltas = new Map();\n i = n;\n while (i--) {\n const child_ctx = get_context(ctx, list, i);\n const key = get_key(child_ctx);\n let block = lookup.get(key);\n if (!block) {\n block = create_each_block(key, child_ctx);\n block.c();\n }\n else if (dynamic) {\n block.p(child_ctx, dirty);\n }\n new_lookup.set(key, new_blocks[i] = block);\n if (key in old_indexes)\n deltas.set(key, Math.abs(i - old_indexes[key]));\n }\n const will_move = new Set();\n const did_move = new Set();\n function insert(block) {\n transition_in(block, 1);\n block.m(node, next);\n lookup.set(block.key, block);\n next = block.first;\n n--;\n }\n while (o && n) {\n const new_block = new_blocks[n - 1];\n const old_block = old_blocks[o - 1];\n const new_key = new_block.key;\n const old_key = old_block.key;\n if (new_block === old_block) {\n // do nothing\n next = new_block.first;\n o--;\n n--;\n }\n else if (!new_lookup.has(old_key)) {\n // remove old block\n destroy(old_block, lookup);\n o--;\n }\n else if (!lookup.has(new_key) || will_move.has(new_key)) {\n insert(new_block);\n }\n else if (did_move.has(old_key)) {\n o--;\n }\n else if (deltas.get(new_key) > deltas.get(old_key)) {\n did_move.add(new_key);\n insert(new_block);\n }\n else {\n will_move.add(old_key);\n o--;\n }\n }\n while (o--) {\n const old_block = old_blocks[o];\n if (!new_lookup.has(old_block.key))\n destroy(old_block, lookup);\n }\n while (n)\n insert(new_blocks[n - 1]);\n return new_blocks;\n}\nfunction validate_each_keys(ctx, list, get_context, get_key) {\n const keys = new Set();\n for (let i = 0; i < list.length; i++) {\n const key = get_key(get_context(ctx, list, i));\n if (keys.has(key)) {\n throw new Error('Cannot have duplicate keys in a keyed each');\n }\n keys.add(key);\n }\n}\n\nfunction get_spread_update(levels, updates) {\n const update = {};\n const to_null_out = {};\n const accounted_for = { $$scope: 1 };\n let i = levels.length;\n while (i--) {\n const o = levels[i];\n const n = updates[i];\n if (n) {\n for (const key in o) {\n if (!(key in n))\n to_null_out[key] = 1;\n }\n for (const key in n) {\n if (!accounted_for[key]) {\n update[key] = n[key];\n accounted_for[key] = 1;\n }\n }\n levels[i] = n;\n }\n else {\n for (const key in o) {\n accounted_for[key] = 1;\n }\n }\n }\n for (const key in to_null_out) {\n if (!(key in update))\n update[key] = undefined;\n }\n return update;\n}\nfunction get_spread_object(spread_props) {\n return typeof spread_props === 'object' && spread_props !== null ? spread_props : {};\n}\n\n// source: https://html.spec.whatwg.org/multipage/indices.html\nconst boolean_attributes = new Set([\n 'allowfullscreen',\n 'allowpaymentrequest',\n 'async',\n 'autofocus',\n 'autoplay',\n 'checked',\n 'controls',\n 'default',\n 'defer',\n 'disabled',\n 'formnovalidate',\n 'hidden',\n 'ismap',\n 'loop',\n 'multiple',\n 'muted',\n 'nomodule',\n 'novalidate',\n 'open',\n 'playsinline',\n 'readonly',\n 'required',\n 'reversed',\n 'selected'\n]);\n\nconst invalid_attribute_name_character = /[\\s'\">/=\\u{FDD0}-\\u{FDEF}\\u{FFFE}\\u{FFFF}\\u{1FFFE}\\u{1FFFF}\\u{2FFFE}\\u{2FFFF}\\u{3FFFE}\\u{3FFFF}\\u{4FFFE}\\u{4FFFF}\\u{5FFFE}\\u{5FFFF}\\u{6FFFE}\\u{6FFFF}\\u{7FFFE}\\u{7FFFF}\\u{8FFFE}\\u{8FFFF}\\u{9FFFE}\\u{9FFFF}\\u{AFFFE}\\u{AFFFF}\\u{BFFFE}\\u{BFFFF}\\u{CFFFE}\\u{CFFFF}\\u{DFFFE}\\u{DFFFF}\\u{EFFFE}\\u{EFFFF}\\u{FFFFE}\\u{FFFFF}\\u{10FFFE}\\u{10FFFF}]/u;\n// https://html.spec.whatwg.org/multipage/syntax.html#attributes-2\n// https://infra.spec.whatwg.org/#noncharacter\nfunction spread(args, classes_to_add) {\n const attributes = Object.assign({}, ...args);\n if (classes_to_add) {\n if (attributes.class == null) {\n attributes.class = classes_to_add;\n }\n else {\n attributes.class += ' ' + classes_to_add;\n }\n }\n let str = '';\n Object.keys(attributes).forEach(name => {\n if (invalid_attribute_name_character.test(name))\n return;\n const value = attributes[name];\n if (value === true)\n str += ' ' + name;\n else if (boolean_attributes.has(name.toLowerCase())) {\n if (value)\n str += ' ' + name;\n }\n else if (value != null) {\n str += ` ${name}=\"${value}\"`;\n }\n });\n return str;\n}\nconst escaped = {\n '\"': '"',\n \"'\": ''',\n '&': '&',\n '<': '<',\n '>': '>'\n};\nfunction escape(html) {\n return String(html).replace(/[\"'&<>]/g, match => escaped[match]);\n}\nfunction escape_attribute_value(value) {\n return typeof value === 'string' ? escape(value) : value;\n}\nfunction escape_object(obj) {\n const result = {};\n for (const key in obj) {\n result[key] = escape_attribute_value(obj[key]);\n }\n return result;\n}\nfunction each(items, fn) {\n let str = '';\n for (let i = 0; i < items.length; i += 1) {\n str += fn(items[i], i);\n }\n return str;\n}\nconst missing_component = {\n $$render: () => ''\n};\nfunction validate_component(component, name) {\n if (!component || !component.$$render) {\n if (name === 'svelte:component')\n name += ' this={...}';\n throw new Error(`<${name}> is not a valid SSR component. You may need to review your build config to ensure that dependencies are compiled, rather than imported as pre-compiled modules`);\n }\n return component;\n}\nfunction debug(file, line, column, values) {\n console.log(`{@debug} ${file ? file + ' ' : ''}(${line}:${column})`); // eslint-disable-line no-console\n console.log(values); // eslint-disable-line no-console\n return '';\n}\nlet on_destroy;\nfunction create_ssr_component(fn) {\n function $$render(result, props, bindings, slots, context) {\n const parent_component = current_component;\n const $$ = {\n on_destroy,\n context: new Map(parent_component ? parent_component.$$.context : context || []),\n // these will be immediately discarded\n on_mount: [],\n before_update: [],\n after_update: [],\n callbacks: blank_object()\n };\n set_current_component({ $$ });\n const html = fn(result, props, bindings, slots);\n set_current_component(parent_component);\n return html;\n }\n return {\n render: (props = {}, { $$slots = {}, context = new Map() } = {}) => {\n on_destroy = [];\n const result = { title: '', head: '', css: new Set() };\n const html = $$render(result, props, {}, $$slots, context);\n run_all(on_destroy);\n return {\n html,\n css: {\n code: Array.from(result.css).map(css => css.code).join('\\n'),\n map: null // TODO\n },\n head: result.title + result.head\n };\n },\n $$render\n };\n}\nfunction add_attribute(name, value, boolean) {\n if (value == null || (boolean && !value))\n return '';\n return ` ${name}${value === true ? '' : `=${typeof value === 'string' ? JSON.stringify(escape(value)) : `\"${value}\"`}`}`;\n}\nfunction add_classes(classes) {\n return classes ? ` class=\"${classes}\"` : '';\n}\n\nfunction bind(component, name, callback) {\n const index = component.$$.props[name];\n if (index !== undefined) {\n component.$$.bound[index] = callback;\n callback(component.$$.ctx[index]);\n }\n}\nfunction create_component(block) {\n block && block.c();\n}\nfunction claim_component(block, parent_nodes) {\n block && block.l(parent_nodes);\n}\nfunction mount_component(component, target, anchor, customElement) {\n const { fragment, on_mount, on_destroy, after_update } = component.$$;\n fragment && fragment.m(target, anchor);\n if (!customElement) {\n // onMount happens before the initial afterUpdate\n add_render_callback(() => {\n const new_on_destroy = on_mount.map(run).filter(is_function);\n if (on_destroy) {\n on_destroy.push(...new_on_destroy);\n }\n else {\n // Edge case - component was destroyed immediately,\n // most likely as a result of a binding initialising\n run_all(new_on_destroy);\n }\n component.$$.on_mount = [];\n });\n }\n after_update.forEach(add_render_callback);\n}\nfunction destroy_component(component, detaching) {\n const $$ = component.$$;\n if ($$.fragment !== null) {\n run_all($$.on_destroy);\n $$.fragment && $$.fragment.d(detaching);\n // TODO null out other refs, including component.$$ (but need to\n // preserve final state?)\n $$.on_destroy = $$.fragment = null;\n $$.ctx = [];\n }\n}\nfunction make_dirty(component, i) {\n if (component.$$.dirty[0] === -1) {\n dirty_components.push(component);\n schedule_update();\n component.$$.dirty.fill(0);\n }\n component.$$.dirty[(i / 31) | 0] |= (1 << (i % 31));\n}\nfunction init(component, options, instance, create_fragment, not_equal, props, dirty = [-1]) {\n const parent_component = current_component;\n set_current_component(component);\n const $$ = component.$$ = {\n fragment: null,\n ctx: null,\n // state\n props,\n update: noop,\n not_equal,\n bound: blank_object(),\n // lifecycle\n on_mount: [],\n on_destroy: [],\n on_disconnect: [],\n before_update: [],\n after_update: [],\n context: new Map(parent_component ? parent_component.$$.context : options.context || []),\n // everything else\n callbacks: blank_object(),\n dirty,\n skip_bound: false\n };\n let ready = false;\n $$.ctx = instance\n ? instance(component, options.props || {}, (i, ret, ...rest) => {\n const value = rest.length ? rest[0] : ret;\n if ($$.ctx && not_equal($$.ctx[i], $$.ctx[i] = value)) {\n if (!$$.skip_bound && $$.bound[i])\n $$.bound[i](value);\n if (ready)\n make_dirty(component, i);\n }\n return ret;\n })\n : [];\n $$.update();\n ready = true;\n run_all($$.before_update);\n // `false` as a special case of no DOM component\n $$.fragment = create_fragment ? create_fragment($$.ctx) : false;\n if (options.target) {\n if (options.hydrate) {\n start_hydrating();\n const nodes = children(options.target);\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\n $$.fragment && $$.fragment.l(nodes);\n nodes.forEach(detach);\n }\n else {\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\n $$.fragment && $$.fragment.c();\n }\n if (options.intro)\n transition_in(component.$$.fragment);\n mount_component(component, options.target, options.anchor, options.customElement);\n end_hydrating();\n flush();\n }\n set_current_component(parent_component);\n}\nlet SvelteElement;\nif (typeof HTMLElement === 'function') {\n SvelteElement = class extends HTMLElement {\n constructor() {\n super();\n this.attachShadow({ mode: 'open' });\n }\n connectedCallback() {\n const { on_mount } = this.$$;\n this.$$.on_disconnect = on_mount.map(run).filter(is_function);\n // @ts-ignore todo: improve typings\n for (const key in this.$$.slotted) {\n // @ts-ignore todo: improve typings\n this.appendChild(this.$$.slotted[key]);\n }\n }\n attributeChangedCallback(attr, _oldValue, newValue) {\n this[attr] = newValue;\n }\n disconnectedCallback() {\n run_all(this.$$.on_disconnect);\n }\n $destroy() {\n destroy_component(this, 1);\n this.$destroy = noop;\n }\n $on(type, callback) {\n // TODO should this delegate to addEventListener?\n const callbacks = (this.$$.callbacks[type] || (this.$$.callbacks[type] = []));\n callbacks.push(callback);\n return () => {\n const index = callbacks.indexOf(callback);\n if (index !== -1)\n callbacks.splice(index, 1);\n };\n }\n $set($$props) {\n if (this.$$set && !is_empty($$props)) {\n this.$$.skip_bound = true;\n this.$$set($$props);\n this.$$.skip_bound = false;\n }\n }\n };\n}\n/**\n * Base class for Svelte components. Used when dev=false.\n */\nclass SvelteComponent {\n $destroy() {\n destroy_component(this, 1);\n this.$destroy = noop;\n }\n $on(type, callback) {\n const callbacks = (this.$$.callbacks[type] || (this.$$.callbacks[type] = []));\n callbacks.push(callback);\n return () => {\n const index = callbacks.indexOf(callback);\n if (index !== -1)\n callbacks.splice(index, 1);\n };\n }\n $set($$props) {\n if (this.$$set && !is_empty($$props)) {\n this.$$.skip_bound = true;\n this.$$set($$props);\n this.$$.skip_bound = false;\n }\n }\n}\n\nfunction dispatch_dev(type, detail) {\n document.dispatchEvent(custom_event(type, Object.assign({ version: '3.38.3' }, detail)));\n}\nfunction append_dev(target, node) {\n dispatch_dev('SvelteDOMInsert', { target, node });\n append(target, node);\n}\nfunction insert_dev(target, node, anchor) {\n dispatch_dev('SvelteDOMInsert', { target, node, anchor });\n insert(target, node, anchor);\n}\nfunction detach_dev(node) {\n dispatch_dev('SvelteDOMRemove', { node });\n detach(node);\n}\nfunction detach_between_dev(before, after) {\n while (before.nextSibling && before.nextSibling !== after) {\n detach_dev(before.nextSibling);\n }\n}\nfunction detach_before_dev(after) {\n while (after.previousSibling) {\n detach_dev(after.previousSibling);\n }\n}\nfunction detach_after_dev(before) {\n while (before.nextSibling) {\n detach_dev(before.nextSibling);\n }\n}\nfunction listen_dev(node, event, handler, options, has_prevent_default, has_stop_propagation) {\n const modifiers = options === true ? ['capture'] : options ? Array.from(Object.keys(options)) : [];\n if (has_prevent_default)\n modifiers.push('preventDefault');\n if (has_stop_propagation)\n modifiers.push('stopPropagation');\n dispatch_dev('SvelteDOMAddEventListener', { node, event, handler, modifiers });\n const dispose = listen(node, event, handler, options);\n return () => {\n dispatch_dev('SvelteDOMRemoveEventListener', { node, event, handler, modifiers });\n dispose();\n };\n}\nfunction attr_dev(node, attribute, value) {\n attr(node, attribute, value);\n if (value == null)\n dispatch_dev('SvelteDOMRemoveAttribute', { node, attribute });\n else\n dispatch_dev('SvelteDOMSetAttribute', { node, attribute, value });\n}\nfunction prop_dev(node, property, value) {\n node[property] = value;\n dispatch_dev('SvelteDOMSetProperty', { node, property, value });\n}\nfunction dataset_dev(node, property, value) {\n node.dataset[property] = value;\n dispatch_dev('SvelteDOMSetDataset', { node, property, value });\n}\nfunction set_data_dev(text, data) {\n data = '' + data;\n if (text.wholeText === data)\n return;\n dispatch_dev('SvelteDOMSetData', { node: text, data });\n text.data = data;\n}\nfunction validate_each_argument(arg) {\n if (typeof arg !== 'string' && !(arg && typeof arg === 'object' && 'length' in arg)) {\n let msg = '{#each} only iterates over array-like objects.';\n if (typeof Symbol === 'function' && arg && Symbol.iterator in arg) {\n msg += ' You can use a spread to convert this iterable into an array.';\n }\n throw new Error(msg);\n }\n}\nfunction validate_slots(name, slot, keys) {\n for (const slot_key of Object.keys(slot)) {\n if (!~keys.indexOf(slot_key)) {\n console.warn(`<${name}> received an unexpected slot \"${slot_key}\".`);\n }\n }\n}\n/**\n * Base class for Svelte components with some minor dev-enhancements. Used when dev=true.\n */\nclass SvelteComponentDev extends SvelteComponent {\n constructor(options) {\n if (!options || (!options.target && !options.$$inline)) {\n throw new Error(\"'target' is a required option\");\n }\n super();\n }\n $destroy() {\n super.$destroy();\n this.$destroy = () => {\n console.warn('Component was already destroyed'); // eslint-disable-line no-console\n };\n }\n $capture_state() { }\n $inject_state() { }\n}\n/**\n * Base class to create strongly typed Svelte components.\n * This only exists for typing purposes and should be used in `.d.ts` files.\n *\n * ### Example:\n *\n * You have component library on npm called `component-library`, from which\n * you export a component called `MyComponent`. For Svelte+TypeScript users,\n * you want to provide typings. Therefore you create a `index.d.ts`:\n * ```ts\n * import { SvelteComponentTyped } from \"svelte\";\n * export class MyComponent extends SvelteComponentTyped<{foo: string}> {}\n * ```\n * Typing this makes it possible for IDEs like VS Code with the Svelte extension\n * to provide intellisense and to use the component like this in a Svelte file\n * with TypeScript:\n * ```svelte\n * \n * \n * ```\n *\n * #### Why not make this part of `SvelteComponent(Dev)`?\n * Because\n * ```ts\n * class ASubclassOfSvelteComponent extends SvelteComponent<{foo: string}> {}\n * const component: typeof SvelteComponent = ASubclassOfSvelteComponent;\n * ```\n * will throw a type error, so we need to seperate the more strictly typed class.\n */\nclass SvelteComponentTyped extends SvelteComponentDev {\n constructor(options) {\n super(options);\n }\n}\nfunction loop_guard(timeout) {\n const start = Date.now();\n return () => {\n if (Date.now() - start > timeout) {\n throw new Error('Infinite loop detected');\n }\n };\n}\n\nexport { HtmlTag, SvelteComponent, SvelteComponentDev, SvelteComponentTyped, SvelteElement, action_destroyer, add_attribute, add_classes, add_flush_callback, add_location, add_render_callback, add_resize_listener, add_transform, afterUpdate, append, append_dev, assign, attr, attr_dev, attribute_to_object, beforeUpdate, bind, binding_callbacks, blank_object, bubble, check_outros, children, claim_component, claim_element, claim_html_tag, claim_space, claim_text, clear_loops, component_subscribe, compute_rest_props, compute_slots, createEventDispatcher, create_animation, create_bidirectional_transition, create_component, create_in_transition, create_out_transition, create_slot, create_ssr_component, current_component, custom_event, dataset_dev, debug, destroy_block, destroy_component, destroy_each, detach, detach_after_dev, detach_before_dev, detach_between_dev, detach_dev, dirty_components, dispatch_dev, each, element, element_is, empty, end_hydrating, escape, escape_attribute_value, escape_object, escaped, exclude_internal_props, fix_and_destroy_block, fix_and_outro_and_destroy_block, fix_position, flush, getContext, get_binding_group_value, get_current_component, get_custom_elements_slots, get_slot_changes, get_slot_context, get_spread_object, get_spread_update, get_store_value, globals, group_outros, handle_promise, hasContext, has_prop, identity, init, insert, insert_dev, intros, invalid_attribute_name_character, is_client, is_crossorigin, is_empty, is_function, is_promise, listen, listen_dev, loop, loop_guard, missing_component, mount_component, noop, not_equal, now, null_to_empty, object_without_properties, onDestroy, onMount, once, outro_and_destroy_block, prevent_default, prop_dev, query_selector_all, raf, run, run_all, safe_not_equal, schedule_update, select_multiple_value, select_option, select_options, select_value, self, setContext, set_attributes, set_current_component, set_custom_element_data, set_data, set_data_dev, set_input_type, set_input_value, set_now, set_raf, set_store_value, set_style, set_svg_attributes, space, spread, start_hydrating, stop_propagation, subscribe, svg_element, text, tick, time_ranges_to_array, to_number, toggle_class, transition_in, transition_out, update_await_block_branch, update_keyed_each, update_slot, update_slot_spread, validate_component, validate_each_argument, validate_each_keys, validate_slots, validate_store, xlink_attr };\n","export { identity as linear } from '../internal/index.mjs';\n\n/*\nAdapted from https://github.com/mattdesl\nDistributed under MIT License https://github.com/mattdesl/eases/blob/master/LICENSE.md\n*/\nfunction backInOut(t) {\n const s = 1.70158 * 1.525;\n if ((t *= 2) < 1)\n return 0.5 * (t * t * ((s + 1) * t - s));\n return 0.5 * ((t -= 2) * t * ((s + 1) * t + s) + 2);\n}\nfunction backIn(t) {\n const s = 1.70158;\n return t * t * ((s + 1) * t - s);\n}\nfunction backOut(t) {\n const s = 1.70158;\n return --t * t * ((s + 1) * t + s) + 1;\n}\nfunction bounceOut(t) {\n const a = 4.0 / 11.0;\n const b = 8.0 / 11.0;\n const c = 9.0 / 10.0;\n const ca = 4356.0 / 361.0;\n const cb = 35442.0 / 1805.0;\n const cc = 16061.0 / 1805.0;\n const t2 = t * t;\n return t < a\n ? 7.5625 * t2\n : t < b\n ? 9.075 * t2 - 9.9 * t + 3.4\n : t < c\n ? ca * t2 - cb * t + cc\n : 10.8 * t * t - 20.52 * t + 10.72;\n}\nfunction bounceInOut(t) {\n return t < 0.5\n ? 0.5 * (1.0 - bounceOut(1.0 - t * 2.0))\n : 0.5 * bounceOut(t * 2.0 - 1.0) + 0.5;\n}\nfunction bounceIn(t) {\n return 1.0 - bounceOut(1.0 - t);\n}\nfunction circInOut(t) {\n if ((t *= 2) < 1)\n return -0.5 * (Math.sqrt(1 - t * t) - 1);\n return 0.5 * (Math.sqrt(1 - (t -= 2) * t) + 1);\n}\nfunction circIn(t) {\n return 1.0 - Math.sqrt(1.0 - t * t);\n}\nfunction circOut(t) {\n return Math.sqrt(1 - --t * t);\n}\nfunction cubicInOut(t) {\n return t < 0.5 ? 4.0 * t * t * t : 0.5 * Math.pow(2.0 * t - 2.0, 3.0) + 1.0;\n}\nfunction cubicIn(t) {\n return t * t * t;\n}\nfunction cubicOut(t) {\n const f = t - 1.0;\n return f * f * f + 1.0;\n}\nfunction elasticInOut(t) {\n return t < 0.5\n ? 0.5 *\n Math.sin(((+13.0 * Math.PI) / 2) * 2.0 * t) *\n Math.pow(2.0, 10.0 * (2.0 * t - 1.0))\n : 0.5 *\n Math.sin(((-13.0 * Math.PI) / 2) * (2.0 * t - 1.0 + 1.0)) *\n Math.pow(2.0, -10.0 * (2.0 * t - 1.0)) +\n 1.0;\n}\nfunction elasticIn(t) {\n return Math.sin((13.0 * t * Math.PI) / 2) * Math.pow(2.0, 10.0 * (t - 1.0));\n}\nfunction elasticOut(t) {\n return (Math.sin((-13.0 * (t + 1.0) * Math.PI) / 2) * Math.pow(2.0, -10.0 * t) + 1.0);\n}\nfunction expoInOut(t) {\n return t === 0.0 || t === 1.0\n ? t\n : t < 0.5\n ? +0.5 * Math.pow(2.0, 20.0 * t - 10.0)\n : -0.5 * Math.pow(2.0, 10.0 - t * 20.0) + 1.0;\n}\nfunction expoIn(t) {\n return t === 0.0 ? t : Math.pow(2.0, 10.0 * (t - 1.0));\n}\nfunction expoOut(t) {\n return t === 1.0 ? t : 1.0 - Math.pow(2.0, -10.0 * t);\n}\nfunction quadInOut(t) {\n t /= 0.5;\n if (t < 1)\n return 0.5 * t * t;\n t--;\n return -0.5 * (t * (t - 2) - 1);\n}\nfunction quadIn(t) {\n return t * t;\n}\nfunction quadOut(t) {\n return -t * (t - 2.0);\n}\nfunction quartInOut(t) {\n return t < 0.5\n ? +8.0 * Math.pow(t, 4.0)\n : -8.0 * Math.pow(t - 1.0, 4.0) + 1.0;\n}\nfunction quartIn(t) {\n return Math.pow(t, 4.0);\n}\nfunction quartOut(t) {\n return Math.pow(t - 1.0, 3.0) * (1.0 - t) + 1.0;\n}\nfunction quintInOut(t) {\n if ((t *= 2) < 1)\n return 0.5 * t * t * t * t * t;\n return 0.5 * ((t -= 2) * t * t * t * t + 2);\n}\nfunction quintIn(t) {\n return t * t * t * t * t;\n}\nfunction quintOut(t) {\n return --t * t * t * t * t + 1;\n}\nfunction sineInOut(t) {\n return -0.5 * (Math.cos(Math.PI * t) - 1);\n}\nfunction sineIn(t) {\n const v = Math.cos(t * Math.PI * 0.5);\n if (Math.abs(v) < 1e-14)\n return 1;\n else\n return 1 - v;\n}\nfunction sineOut(t) {\n return Math.sin((t * Math.PI) / 2);\n}\n\nexport { backIn, backInOut, backOut, bounceIn, bounceInOut, bounceOut, circIn, circInOut, circOut, cubicIn, cubicInOut, cubicOut, elasticIn, elasticInOut, elasticOut, expoIn, expoInOut, expoOut, quadIn, quadInOut, quadOut, quartIn, quartInOut, quartOut, quintIn, quintInOut, quintOut, sineIn, sineInOut, sineOut };\n","import { cubicInOut, linear, cubicOut } from '../easing/index.mjs';\nimport { is_function, assign } from '../internal/index.mjs';\n\n/*! *****************************************************************************\r\nCopyright (c) Microsoft Corporation.\r\n\r\nPermission to use, copy, modify, and/or distribute this software for any\r\npurpose with or without fee is hereby granted.\r\n\r\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\r\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\r\nAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\r\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\r\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\r\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\r\nPERFORMANCE OF THIS SOFTWARE.\r\n***************************************************************************** */\r\n\r\nfunction __rest(s, e) {\r\n var t = {};\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\r\n t[p] = s[p];\r\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\r\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\r\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\r\n t[p[i]] = s[p[i]];\r\n }\r\n return t;\r\n}\n\nfunction blur(node, { delay = 0, duration = 400, easing = cubicInOut, amount = 5, opacity = 0 } = {}) {\n const style = getComputedStyle(node);\n const target_opacity = +style.opacity;\n const f = style.filter === 'none' ? '' : style.filter;\n const od = target_opacity * (1 - opacity);\n return {\n delay,\n duration,\n easing,\n css: (_t, u) => `opacity: ${target_opacity - (od * u)}; filter: ${f} blur(${u * amount}px);`\n };\n}\nfunction fade(node, { delay = 0, duration = 400, easing = linear } = {}) {\n const o = +getComputedStyle(node).opacity;\n return {\n delay,\n duration,\n easing,\n css: t => `opacity: ${t * o}`\n };\n}\nfunction fly(node, { delay = 0, duration = 400, easing = cubicOut, x = 0, y = 0, opacity = 0 } = {}) {\n const style = getComputedStyle(node);\n const target_opacity = +style.opacity;\n const transform = style.transform === 'none' ? '' : style.transform;\n const od = target_opacity * (1 - opacity);\n return {\n delay,\n duration,\n easing,\n css: (t, u) => `\n\t\t\ttransform: ${transform} translate(${(1 - t) * x}px, ${(1 - t) * y}px);\n\t\t\topacity: ${target_opacity - (od * u)}`\n };\n}\nfunction slide(node, { delay = 0, duration = 400, easing = cubicOut } = {}) {\n const style = getComputedStyle(node);\n const opacity = +style.opacity;\n const height = parseFloat(style.height);\n const padding_top = parseFloat(style.paddingTop);\n const padding_bottom = parseFloat(style.paddingBottom);\n const margin_top = parseFloat(style.marginTop);\n const margin_bottom = parseFloat(style.marginBottom);\n const border_top_width = parseFloat(style.borderTopWidth);\n const border_bottom_width = parseFloat(style.borderBottomWidth);\n return {\n delay,\n duration,\n easing,\n css: t => 'overflow: hidden;' +\n `opacity: ${Math.min(t * 20, 1) * opacity};` +\n `height: ${t * height}px;` +\n `padding-top: ${t * padding_top}px;` +\n `padding-bottom: ${t * padding_bottom}px;` +\n `margin-top: ${t * margin_top}px;` +\n `margin-bottom: ${t * margin_bottom}px;` +\n `border-top-width: ${t * border_top_width}px;` +\n `border-bottom-width: ${t * border_bottom_width}px;`\n };\n}\nfunction scale(node, { delay = 0, duration = 400, easing = cubicOut, start = 0, opacity = 0 } = {}) {\n const style = getComputedStyle(node);\n const target_opacity = +style.opacity;\n const transform = style.transform === 'none' ? '' : style.transform;\n const sd = 1 - start;\n const od = target_opacity * (1 - opacity);\n return {\n delay,\n duration,\n easing,\n css: (_t, u) => `\n\t\t\ttransform: ${transform} scale(${1 - (sd * u)});\n\t\t\topacity: ${target_opacity - (od * u)}\n\t\t`\n };\n}\nfunction draw(node, { delay = 0, speed, duration, easing = cubicInOut } = {}) {\n const len = node.getTotalLength();\n if (duration === undefined) {\n if (speed === undefined) {\n duration = 800;\n }\n else {\n duration = len / speed;\n }\n }\n else if (typeof duration === 'function') {\n duration = duration(len);\n }\n return {\n delay,\n duration,\n easing,\n css: (t, u) => `stroke-dasharray: ${t * len} ${u * len}`\n };\n}\nfunction crossfade(_a) {\n var { fallback } = _a, defaults = __rest(_a, [\"fallback\"]);\n const to_receive = new Map();\n const to_send = new Map();\n function crossfade(from, node, params) {\n const { delay = 0, duration = d => Math.sqrt(d) * 30, easing = cubicOut } = assign(assign({}, defaults), params);\n const to = node.getBoundingClientRect();\n const dx = from.left - to.left;\n const dy = from.top - to.top;\n const dw = from.width / to.width;\n const dh = from.height / to.height;\n const d = Math.sqrt(dx * dx + dy * dy);\n const style = getComputedStyle(node);\n const transform = style.transform === 'none' ? '' : style.transform;\n const opacity = +style.opacity;\n return {\n delay,\n duration: is_function(duration) ? duration(d) : duration,\n easing,\n css: (t, u) => `\n\t\t\t\topacity: ${t * opacity};\n\t\t\t\ttransform-origin: top left;\n\t\t\t\ttransform: ${transform} translate(${u * dx}px,${u * dy}px) scale(${t + (1 - t) * dw}, ${t + (1 - t) * dh});\n\t\t\t`\n };\n }\n function transition(items, counterparts, intro) {\n return (node, params) => {\n items.set(params.key, {\n rect: node.getBoundingClientRect()\n });\n return () => {\n if (counterparts.has(params.key)) {\n const { rect } = counterparts.get(params.key);\n counterparts.delete(params.key);\n return crossfade(rect, node, params);\n }\n // if the node is disappearing altogether\n // (i.e. wasn't claimed by the other list)\n // then we need to supply an outro\n items.delete(params.key);\n return fallback && fallback(node, params, intro);\n };\n };\n }\n return [\n transition(to_send, to_receive, false),\n transition(to_receive, to_send, true)\n ];\n}\n\nexport { blur, crossfade, draw, fade, fly, scale, slide };\n","// @ts-check\n// Cynhyrchwyd y ffeil hon yn awtomatig. PEIDIWCH Â MODIWL\n// This file is automatically generated. DO NOT EDIT\n\nexport function GetLogPath() {\n return window['go']['main']['App']['GetLogPath']();\n}\n\nexport function ShowErrorDialog(arg1) {\n window['go']['main']['App']['ShowErrorDialog'](arg1);\n}\n\nexport function OpenDirectoryDialog() {\n return window['go']['main']['App']['OpenDirectoryDialog']();\n}\n\nexport function PersistUserSettings() {\n window['go']['main']['App']['PersistUserSettings']();\n}\n\nexport function SendDirectory(arg1) {\n window['go']['main']['App']['SendDirectory'](arg1);\n}\n\nexport function SendFile(arg1) {\n window['go']['main']['App']['SendFile'](arg1);\n}\n\nexport function CancelWormholeRequest() {\n window['go']['main']['App']['CancelWormholeRequest']();\n}\n\nexport function ClearSelectedFiles() {\n window['go']['main']['App']['ClearSelectedFiles']();\n}\n\nexport function GetCurrentVersion() {\n return window['go']['main']['App']['GetCurrentVersion']();\n}\n\nexport function GetReceivedFile() {\n return window['go']['main']['App']['GetReceivedFile']();\n}\n\nexport function SetNotificationsParam(arg1) {\n return window['go']['main']['App']['SetNotificationsParam'](arg1);\n}\n\nexport function SetSelfUpdateParam(arg1) {\n return window['go']['main']['App']['SetSelfUpdateParam'](arg1);\n}\n\nexport function UpdateCheckUI() {\n window['go']['main']['App']['UpdateCheckUI']();\n}\n\nexport function VerifyNotificationIcon() {\n return window['go']['main']['App']['VerifyNotificationIcon']();\n}\n\nexport function GetSelectedFiles() {\n return window['go']['main']['App']['GetSelectedFiles']();\n}\n\nexport function OpenFile(arg1) {\n window['go']['main']['App']['OpenFile'](arg1);\n}\n\nexport function SetDownloadsFolder() {\n return window['go']['main']['App']['SetDownloadsFolder']();\n}\n\nexport function SelectedFilesSend() {\n window['go']['main']['App']['SelectedFilesSend']();\n}\n\nexport function SetOverwriteParam(arg1) {\n return window['go']['main']['App']['SetOverwriteParam'](arg1);\n}\n\nexport function UpdateSendProgress(arg1, arg2) {\n window['go']['main']['App']['UpdateSendProgress'](arg1, arg2);\n}\n\nexport function AppInstalledFromPackageManager() {\n return window['go']['main']['App']['AppInstalledFromPackageManager']();\n}\n\nexport function GetUserPrefs() {\n return window['go']['main']['App']['GetUserPrefs']();\n}\n\nexport function OpenFilesDialog() {\n return window['go']['main']['App']['OpenFilesDialog']();\n}\n\nexport function ReceiveFile(arg1) {\n window['go']['main']['App']['ReceiveFile'](arg1);\n}\n","\n\n
\n
\n
\n {status}\n {percent}%\n
\n
\n \n
\n \n
\n
\n","\n\n
\n \n \n {#if selectedFiles.length > 0}\n
\n {#each selectedFileNames as fileName, idx}\n {#if idx < 9}\n
\n
\n {fileName}\n
\n {:else if idx == 9}\n
\n ...Total Selected: {selectedFiles.length}\n
\n {/if}\n {/each}\n
\n {:else}\n \n
\n Send Files\n \n
\n
\n Send Directory\n \n
\n
\n {/if}\n
\n
\n {#if selectedFiles.length > 0}\n Clear\n Send\n {/if}\n
\n {#if isSending}\n \n
\n
\n {/if}\n \n
\n {/if}\n\n","\n\n
\n \n {#if receivePath}\n \n \n
\n {receiveFileName}\n {#if !isReceiving}\n
\n
\n {/if}\n
\n {/if}\n
\n
\n
\n \n \n
\n {#if isReceiving}\n \n
\n
\n
\n {/if}\n\n","\n\n
\n
\n
Downloads Folder
\n
\n
{downloadPathCleaned}
\n
\n
\n
\n
\n
Notifications
\n
\n
\n
Overwrite
\n
\n \n \n
\n
Auto Update
\n
\n {#if packageManaged}\n Update from Package Manager\n {:else}\n \n \n {/if}\n
\n
\n
Logs
\n
\n
{logPathCleaned}
\n
\n window.runtime.BrowserOpenURL(logPath)}\n >Open\n
\n
\n
\n
\n","\n\n
\n
\n \n Riftshare v{version}\n \n
\n \n window.runtime.BrowserOpenURL(\"https://riftshare.app\")}\n >Website\n \n window.runtime.BrowserOpenURL(\"https://riftshare.app/faq.html\")}\n >FAQ\n window.runtime.BrowserOpenURL(issueUrl)}\n >Open an Issue\n
\n
\n\n

\n The goal of this project is to enable everyone to securely share files\n freely and easily.\n

\n
\n

License

\n

Licensed under the GNU GPL Version 3

\n
\n
\n

Attributions

\n

\n This project leverages the work of other Open Source Software\n

\n
    \n {#each Object.entries(attributions) as [name, url]}\n
  • \n window.runtime.BrowserOpenURL(url)}\n >{name}\n
  • \n {/each}\n
\n
\n
\n","\n\n
\n \n
\n
    \n
  • \n (appMode = \"send\")}\n >\n
    \n Send\n \n
  • \n
  • \n (appMode = \"receive\")}\n >\n
    \n Receive\n \n
  • \n
  • \n (appMode = \"settings\")}\n >\n
    \n Settings\n \n
  • \n
  • \n (appMode = \"about\")}\n >\n
    \n About\n \n
  • \n
\n
\n \n
\n {#if appMode == \"send\"}\n \n {:else if appMode == \"receive\"}\n \n {:else if appMode == \"settings\"}\n \n {:else if appMode == \"about\"}\n \n {/if}\n
\n
\n\n\n","function styleInject(css, ref) {\n if ( ref === void 0 ) ref = {};\n var insertAt = ref.insertAt;\n\n if (!css || typeof document === 'undefined') { return; }\n\n var head = document.head || document.getElementsByTagName('head')[0];\n var style = document.createElement('style');\n style.type = 'text/css';\n\n if (insertAt === 'top') {\n if (head.firstChild) {\n head.insertBefore(style, head.firstChild);\n } else {\n head.appendChild(style);\n }\n } else {\n head.appendChild(style);\n }\n\n if (style.styleSheet) {\n style.styleSheet.cssText = css;\n } else {\n style.appendChild(document.createTextNode(css));\n }\n}\n\nexport default styleInject;\n","import App from './App.svelte';\n\nconst app = new App({\n\ttarget: document.body,\n});\n\nexport default app;"],"names":["noop","identity","x","run","fn","blank_object","Object","create","run_all","fns","forEach","is_function","thing","safe_not_equal","a","b","get_slot_context","definition","ctx","$$scope","tar","src","k","assign","slice","update_slot","slot","slot_definition","dirty","get_slot_changes_fn","get_slot_context_fn","slot_changes","lets","undefined","merged","len","Math","max","length","i","get_slot_changes","slot_context","p","is_client","window","now","performance","Date","raf","cb","requestAnimationFrame","tasks","Set","run_tasks","task","c","delete","f","size","loop","callback","promise","Promise","fulfill","add","abort","is_hydrating","upper_bound","low","high","key","value","mid","append","target","node","hydrate_init","children","childNodes","m","Int32Array","longest","seqLen","idx","claim_order","newLen","lis","toMove","last","cur","push","reverse","sort","j","anchor","insertBefore","init_hydrate","actual_end_child","parentElement","firstChild","nextSibling","parentNode","appendChild","insert","detach","removeChild","destroy_each","iterations","detaching","d","element","name","document","createElement","text","data","createTextNode","space","listen","event","handler","options","addEventListener","removeEventListener","attr","attribute","removeAttribute","getAttribute","setAttribute","set_data","wholeText","set_input_value","input","active_docs","current_component","active","create_rule","duration","delay","ease","uid","step","keyframes","t","rule","str","hash","charCodeAt","doc","ownerDocument","stylesheet","__svelte_stylesheet","head","sheet","current_rules","__svelte_rules","insertRule","cssRules","animation","style","delete_rule","previous","split","next","filter","anim","indexOf","deleted","join","deleteRule","clear","set_current_component","component","onMount","Error","get_current_component","$$","on_mount","dirty_components","binding_callbacks","render_callbacks","flush_callbacks","resolved_promise","resolve","update_scheduled","add_render_callback","flushing","seen_callbacks","flush","update","pop","has","fragment","before_update","after_update","wait","then","dispatch","direction","kind","dispatchEvent","type","detail","e","createEvent","initCustomEvent","custom_event","outroing","outros","group_outros","r","check_outros","transition_in","block","local","transition_out","o","null_transition","create_in_transition","params","animation_name","config","running","cleanup","go","easing","tick","css","start_time","end_time","started","start","invalidate","end","create_bidirectional_transition","intro","running_program","pending_program","clear_animation","init","program","abs","group","create_component","mount_component","customElement","on_destroy","new_on_destroy","map","destroy_component","make_dirty","fill","instance","create_fragment","not_equal","props","parent_component","bound","on_disconnect","context","Map","callbacks","skip_bound","ready","ret","rest","hydrate","nodes","Array","from","l","SvelteComponent","$destroy","this","$on","index","splice","$set","$$props","obj","$$set","keys","cubicOut","slide","getComputedStyle","opacity","height","parseFloat","padding_top","paddingTop","padding_bottom","paddingBottom","margin_top","marginTop","margin_bottom","marginBottom","border_top_width","borderTopWidth","border_bottom_width","borderBottomWidth","min","CancelWormholeRequest","OpenFile","arg1","GetUserPrefs","slot_ctx","toString","status","waiting","percent","copyCode","copyText","getElementById","select","setSelectionRange","navigator","clipboard","writeText","String","prototype","trimEllip","substring","sendCode","sendPercent","selectedFiles","isSending","runtime","EventsOn","newCode","sendStatus","setTimeout","filePaths","selectedFileNames","fileName","selection","catch","err","console","log","preventDefault","call","receivePattern","receiveCode","receivePercent","isReceiving","receivePath","path","receiveStatus","receiveCodeValid","test","receiveFileName","prefs","downloadsDirectory","downloadsFolder","logPath","notifications","overwrite","selfUpdate","packageManaged","managed","downloadPathCleaned","replace","logPathCleaned","folder","newValue","BrowserOpenURL","entries","version","ver","svelte","tailwindcss","url","appMode","ref","insertAt","getElementsByTagName","styleSheet","cssText","body"],"mappings":"gCAAA,SAASA,KACT,MAAMC,EAAWC,GAAKA,EAetB,SAASC,EAAIC,GACT,OAAOA,IAEX,SAASC,IACL,OAAOC,OAAOC,OAAO,MAEzB,SAASC,EAAQC,GACbA,EAAIC,QAAQP,GAEhB,SAASQ,EAAYC,GACjB,MAAwB,mBAAVA,EAElB,SAASC,EAAeC,EAAGC,GACvB,OAAOD,GAAKA,EAAIC,G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go/main/App.d.ts index 93e6544..fdf99e3 100755 --- a/frontend/wailsjs/go/main/App.d.ts +++ b/frontend/wailsjs/go/main/App.d.ts @@ -2,37 +2,39 @@ // This file is automatically generated. DO NOT EDIT import {settings} from '../models'; -export function GetUserPrefs():Promise; +export function GetLogPath():Promise; -export function OpenFile(arg1:string):void; +export function OpenDirectoryDialog():Promise|Error>; -export function OpenFilesDialog():Promise|Error>; +export function SendFile(arg1:string):void; -export function SelectedFilesSend():void; +export function SetNotificationsParam(arg1:boolean):Promise; export function ShowErrorDialog(arg1:string):void; -export function UpdateCheckUI():void; - export function VerifyNotificationIcon():Promise; -export function GetLogPath():Promise; +export function CancelWormholeRequest():void; export function ClearSelectedFiles():void; -export function SendFile(arg1:string):void; +export function GetUserPrefs():Promise; -export function SetNotificationsParam(arg1:boolean):Promise; +export function OpenFile(arg1:string):void; + +export function ReceiveFile(arg1:string):void; + +export function SetOverwriteParam(arg1:boolean):Promise; export function SetSelfUpdateParam(arg1:boolean):Promise; -export function UpdateSendProgress(arg1:number,arg2:number):void; +export function UpdateCheckUI():void; -export function CancelWormholeRequest():void; +export function AppInstalledFromPackageManager():Promise; -export function GetReceivedFile():Promise; +export function GetCurrentVersion():Promise; -export function GetSelectedFiles():Promise>; +export function OpenFilesDialog():Promise|Error>; export function PersistUserSettings():void; @@ -40,12 +42,10 @@ export function SendDirectory(arg1:string):void; export function SetDownloadsFolder():Promise; -export function SetOverwriteParam(arg1:boolean):Promise; - -export function GetCurrentVersion():Promise; +export function UpdateSendProgress(arg1:number,arg2:number):void; -export function OpenDirectoryDialog():Promise|Error>; +export function GetReceivedFile():Promise; -export function ReceiveFile(arg1:string):void; +export function GetSelectedFiles():Promise>; -export function AppInstalledFromPackageManager():Promise; +export function SelectedFilesSend():void; diff --git a/frontend/wailsjs/go/main/App.js b/frontend/wailsjs/go/main/App.js index cf881a1..9fc13ef 100755 --- a/frontend/wailsjs/go/main/App.js +++ b/frontend/wailsjs/go/main/App.js @@ -2,68 +2,72 @@ // Cynhyrchwyd y ffeil hon yn awtomatig. PEIDIWCH Â MODIWL // This file is automatically generated. DO NOT EDIT -export function GetUserPrefs() { - return window['go']['main']['App']['GetUserPrefs'](); +export function GetLogPath() { + return window['go']['main']['App']['GetLogPath'](); } -export function OpenFile(arg1) { - window['go']['main']['App']['OpenFile'](arg1); +export function OpenDirectoryDialog() { + return window['go']['main']['App']['OpenDirectoryDialog'](); } -export function OpenFilesDialog() { - return window['go']['main']['App']['OpenFilesDialog'](); +export function SendFile(arg1) { + window['go']['main']['App']['SendFile'](arg1); } -export function SelectedFilesSend() { - window['go']['main']['App']['SelectedFilesSend'](); +export function SetNotificationsParam(arg1) { + return window['go']['main']['App']['SetNotificationsParam'](arg1); } export function ShowErrorDialog(arg1) { window['go']['main']['App']['ShowErrorDialog'](arg1); } -export function UpdateCheckUI() { - window['go']['main']['App']['UpdateCheckUI'](); -} - export function VerifyNotificationIcon() { return window['go']['main']['App']['VerifyNotificationIcon'](); } -export function GetLogPath() { - return window['go']['main']['App']['GetLogPath'](); +export function CancelWormholeRequest() { + window['go']['main']['App']['CancelWormholeRequest'](); } export function ClearSelectedFiles() { window['go']['main']['App']['ClearSelectedFiles'](); } -export function SendFile(arg1) { - window['go']['main']['App']['SendFile'](arg1); +export function GetUserPrefs() { + return window['go']['main']['App']['GetUserPrefs'](); } -export function SetNotificationsParam(arg1) { - return window['go']['main']['App']['SetNotificationsParam'](arg1); +export function OpenFile(arg1) { + window['go']['main']['App']['OpenFile'](arg1); +} + +export function ReceiveFile(arg1) { + window['go']['main']['App']['ReceiveFile'](arg1); +} + +export function SetOverwriteParam(arg1) { + return window['go']['main']['App']['SetOverwriteParam'](arg1); } export function SetSelfUpdateParam(arg1) { return window['go']['main']['App']['SetSelfUpdateParam'](arg1); } -export function UpdateSendProgress(arg1, arg2) { - window['go']['main']['App']['UpdateSendProgress'](arg1, arg2); +export function UpdateCheckUI() { + window['go']['main']['App']['UpdateCheckUI'](); } -export function CancelWormholeRequest() { - window['go']['main']['App']['CancelWormholeRequest'](); +export function AppInstalledFromPackageManager() { + return window['go']['main']['App']['AppInstalledFromPackageManager'](); } -export function GetReceivedFile() { - return window['go']['main']['App']['GetReceivedFile'](); +export function GetCurrentVersion() { + return window['go']['main']['App']['GetCurrentVersion'](); } -export function GetSelectedFiles() { - return window['go']['main']['App']['GetSelectedFiles'](); +export function OpenFilesDialog() { + return window['go']['main']['App']['OpenFilesDialog'](); } export function PersistUserSettings() { @@ -78,22 +82,18 @@ export function SetDownloadsFolder() { return window['go']['main']['App']['SetDownloadsFolder'](); } -export function SetOverwriteParam(arg1) { - return window['go']['main']['App']['SetOverwriteParam'](arg1); -} - -export function GetCurrentVersion() { - return window['go']['main']['App']['GetCurrentVersion'](); +export function UpdateSendProgress(arg1, arg2) { + window['go']['main']['App']['UpdateSendProgress'](arg1, arg2); } -export function OpenDirectoryDialog() { - return window['go']['main']['App']['OpenDirectoryDialog'](); +export function GetReceivedFile() { + return window['go']['main']['App']['GetReceivedFile'](); } -export function ReceiveFile(arg1) { - window['go']['main']['App']['ReceiveFile'](arg1); +export function GetSelectedFiles() { + return window['go']['main']['App']['GetSelectedFiles'](); } -export function AppInstalledFromPackageManager() { - return window['go']['main']['App']['AppInstalledFromPackageManager'](); +export function SelectedFilesSend() { + window['go']['main']['App']['SelectedFilesSend'](); } diff --git a/internal/update/selfupdate.go b/internal/update/selfupdate.go index e631658..28a0f5a 100644 --- a/internal/update/selfupdate.go +++ b/internal/update/selfupdate.go @@ -11,7 +11,7 @@ import ( "github.com/rhysd/go-github-selfupdate/selfupdate" ) -const Version = "0.1.7" +const Version = "0.1.8" func DoSelfUpdate() bool { v := semver.MustParse(Version)