function L(){}function zt(t){return t()}function St(){return Object.create(null)}function B(t){t.forEach(zt)}function be(t){return typeof t=="function"}function Wt(t,e){return t!=t?e==e:t!==e||t&&typeof t=="object"||typeof t=="function"}function we(t){return Object.keys(t).length===0}function Me(t,...e){if(t==null)return L;const n=t.subscribe(...e);return n.unsubscribe?()=>n.unsubscribe():n}function Cn(t,e,n){t.$$.on_destroy.push(Me(e,n))}function T(t,e){t.appendChild(e)}function S(t,e,n){t.insertBefore(e,n||null)}function z(t){t.parentNode.removeChild(t)}function Oe(t,e){for(let n=0;nt.removeEventListener(e,n,i)}function $n(t){return function(e){return e.preventDefault(),t.call(this,e)}}function P(t,e,n){n==null?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n)}function Dn(t){return t===""?null:+t}function ke(t){return Array.from(t.childNodes)}function I(t,e){e=""+e,t.wholeText!==e&&(t.data=e)}function Ln(t,e){t.value=e==null?"":e}function Fn(t,e){for(let n=0;n{et.delete(t),i&&(n&&t.d(1),i())}),t.o(e)}}function Ee(t){t&&t.c()}function xt(t,e,n,i){const{fragment:r,on_mount:o,on_destroy:a,after_update:f}=t.$$;r&&r.m(e,n),i||ct(()=>{const d=o.map(zt).filter(be);a?a.push(...d):B(d),t.$$.on_mount=[]}),f.forEach(ct)}function Kt(t,e){const n=t.$$;n.fragment!==null&&(B(n.on_destroy),n.fragment&&n.fragment.d(e),n.on_destroy=n.fragment=null,n.ctx=[])}function je(t,e){t.$$.dirty[0]===-1&&(H.push(t),Te(),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<{const y=m.length?m[0]:_;return d.ctx&&r(d.ctx[l],d.ctx[l]=y)&&(!d.skip_bound&&d.bound[l]&&d.bound[l](y),h&&je(t,l)),_}):[],d.update(),h=!0,B(d.before_update),d.fragment=i?i(d.ctx):!1,e.target){if(e.hydrate){const l=ke(e.target);d.fragment&&d.fragment.l(l),l.forEach(z)}else d.fragment&&d.fragment.c();e.intro&&$(t.$$.fragment),xt(t,e.target,e.anchor,e.customElement),Ft()}Z(f)}class Se{$destroy(){Kt(this,1),this.$destroy=L}$on(e,n){const i=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return i.push(n),()=>{const r=i.indexOf(n);r!==-1&&i.splice(r,1)}}$set(e){this.$$set&&!we(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}}const V=[];function Nn(t,e=L){let n;const i=[];function r(f){if(Wt(t,f)&&(t=f,n)){const d=!V.length;for(let h=0;h{const l=i.indexOf(h);l!==-1&&i.splice(l,1),i.length===0&&(n(),n=null)}}return{set:r,update:o,subscribe:a}}/*! * hotkeys-js v3.8.5 * A simple micro-library for defining and dispatching keyboard shortcuts. It has no dependencies. * * Copyright (c) 2021 kenny wong * http://jaywcjlove.github.io/hotkeys * * Licensed under the MIT license. */var mt=typeof navigator!="undefined"?navigator.userAgent.toLowerCase().indexOf("firefox")>0:!1;function _t(t,e,n){t.addEventListener?t.addEventListener(e,n,!1):t.attachEvent&&t.attachEvent("on".concat(e),function(){n(window.event)})}function Rt(t,e){for(var n=e.slice(0,e.length-1),i=0;i=0;)e[n-1]+=",",e.splice(n,1),n=e.lastIndexOf("");return e}function We(t,e){for(var n=t.length>=e.length?t:e,i=t.length>=e.length?e:t,r=!0,o=0;o=0&&g.splice(n,1),t.key&&t.key.toLowerCase()==="meta"&&g.splice(0,g.length),(e===93||e===224)&&(e=91),e in A){A[e]=!1;for(var i in U)U[i]===e&&(F[i]=!1)}}function xe(t){if(!t)Object.keys(k).forEach(function(a){return delete k[a]});else if(Array.isArray(t))t.forEach(function(a){a.key&&vt(a)});else if(typeof t=="object")t.key&&vt(t);else if(typeof t=="string"){for(var e=arguments.length,n=new Array(e>1?e-1:0),i=1;i1?Rt(U,h):[];k[m]=k[m].map(function(b){var v=r?b.method===r:!0;return v&&b.scope===i&&We(b.mods,y)?{}:b})}})};function Ht(t,e,n){var i;if(e.scope===n||e.scope==="all"){i=e.mods.length>0;for(var r in A)Object.prototype.hasOwnProperty.call(A,r)&&(!A[r]&&e.mods.indexOf(+r)>-1||A[r]&&e.mods.indexOf(+r)===-1)&&(i=!1);(e.mods.length===0&&!A[16]&&!A[18]&&!A[17]&&!A[91]||i||e.shortcut==="*")&&e.method(t,e)===!1&&(t.preventDefault?t.preventDefault():t.returnValue=!1,t.stopPropagation&&t.stopPropagation(),t.cancelBubble&&(t.cancelBubble=!0))}}function Gt(t){var e=k["*"],n=t.keyCode||t.which||t.charCode;if(!!F.filter.call(this,t)){if((n===93||n===224)&&(n=91),g.indexOf(n)===-1&&n!==229&&g.push(n),["ctrlKey","altKey","shiftKey","metaKey"].forEach(function(y){var b=Bt[y];t[y]&&g.indexOf(b)===-1?g.push(b):!t[y]&&g.indexOf(b)>-1?g.splice(g.indexOf(b),1):y==="metaKey"&&t[y]&&g.length===3&&(t.ctrlKey||t.shiftKey||t.altKey||(g=g.slice(g.indexOf(b))))}),n in A){A[n]=!0;for(var i in U)U[i]===n&&(F[i]=!0);if(!e)return}for(var r in A)Object.prototype.hasOwnProperty.call(A,r)&&(A[r]=t[Bt[r]]);t.getModifierState&&!(t.altKey&&!t.ctrlKey)&&t.getModifierState("AltGraph")&&(g.indexOf(17)===-1&&g.push(17),g.indexOf(18)===-1&&g.push(18),A[17]=!0,A[18]=!0);var o=G();if(e)for(var a=0;a-1}function F(t,e,n){g=[];var i=Ut(t),r=[],o="all",a=document,f=0,d=!1,h=!0,l="+";for(n===void 0&&typeof e=="function"&&(n=e),Object.prototype.toString.call(e)==="[object Object]"&&(e.scope&&(o=e.scope),e.element&&(a=e.element),e.keyup&&(d=e.keyup),e.keydown!==void 0&&(h=e.keydown),typeof e.splitKey=="string"&&(l=e.splitKey)),typeof e=="string"&&(o=e);f1&&(r=Rt(U,t)),t=t[t.length-1],t=t==="*"?"*":it(t),t in k||(k[t]=[]),k[t].push({keyup:d,keydown:h,scope:o,mods:r,shortcut:i[f],method:n,key:i[f],splitKey:l});typeof a!="undefined"&&!Ke(a)&&window&&(Vt.push(a),_t(a,"keydown",function(_){Gt(_)}),_t(window,"focus",function(){g=[]}),_t(a,"keyup",function(_){Gt(_),Fe(_)}))}var yt={setScope:qt,getScope:G,deleteScope:Le,getPressedKeyCodes:Ce,isPressed:De,filter:$e,unbind:xe};for(var gt in yt)Object.prototype.hasOwnProperty.call(yt,gt)&&(F[gt]=yt[gt]);if(typeof window!="undefined"){var Re=window.hotkeys;F.noConflict=function(t){return t&&window.hotkeys===F&&(window.hotkeys=Re),F},window.hotkeys=F}var Jt=function(t,e){return(Jt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(n[r]=i[r])})(t,e)};function bt(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}Jt(t,e),t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}var D=function(){return(D=Object.assign||function(t){for(var e,n=1,i=arguments.length;n0&&r[r.length-1])||l[0]!==6&&l[0]!==2)){a=0;continue}if(l[0]===3&&(!r||l[1]>r[0]&&l[1]=200&&this.status<300,this.headers=t.headers,this.rawHeaders=t.rawHeaders,this.data=t.data},ce=function(){function t(e){this.id=e}return t.prototype.drop=function(){return u(this,void 0,void 0,function(){return s(this,function(e){return[2,c({__tauriModule:"Http",message:{cmd:"dropClient",client:this.id}})]})})},t.prototype.request=function(e){return u(this,void 0,void 0,function(){var n;return s(this,function(i){return(n=!e.responseType||e.responseType===X.JSON)&&(e.responseType=X.Text),[2,c({__tauriModule:"Http",message:{cmd:"httpRequest",client:this.id,options:e}}).then(function(r){var o=new le(r);if(n){try{o.data=JSON.parse(o.data)}catch(a){if(o.ok&&o.data==="")o.data={};else if(o.ok)throw Error("Failed to parse response `".concat(o.data,"` as JSON: ").concat(a,";\n try setting the `responseType` option to `ResponseType.Text` or `ResponseType.Binary` if the API does not return a JSON response."))}return o}return o})]})})},t.prototype.get=function(e,n){return u(this,void 0,void 0,function(){return s(this,function(i){return[2,this.request(D({method:"GET",url:e},n))]})})},t.prototype.post=function(e,n,i){return u(this,void 0,void 0,function(){return s(this,function(r){return[2,this.request(D({method:"POST",url:e,body:n},i))]})})},t.prototype.put=function(e,n,i){return u(this,void 0,void 0,function(){return s(this,function(r){return[2,this.request(D({method:"PUT",url:e,body:n},i))]})})},t.prototype.patch=function(e,n){return u(this,void 0,void 0,function(){return s(this,function(i){return[2,this.request(D({method:"PATCH",url:e},n))]})})},t.prototype.delete=function(e,n){return u(this,void 0,void 0,function(){return s(this,function(i){return[2,this.request(D({method:"DELETE",url:e},n))]})})},t}();function fe(t){return u(this,void 0,void 0,function(){return s(this,function(e){return[2,c({__tauriModule:"Http",message:{cmd:"createClient",options:t}}).then(function(n){return new ce(n)})]})})}var Pt=null;function vn(t,e){var n;return u(this,void 0,void 0,function(){return s(this,function(i){switch(i.label){case 0:return Pt!==null?[3,2]:[4,fe()];case 1:Pt=i.sent(),i.label=2;case 2:return[2,Pt.request(D({url:t,method:(n=e==null?void 0:e.method)!==null&&n!==void 0?n:"GET"},e))]}})})}Object.freeze({__proto__:null,getClient:fe,fetch:vn,Body:_n,Client:ce,Response:le,get ResponseType(){return X}});function yn(t,e){return u(this,void 0,void 0,function(){return s(this,function(n){return[2,c({__tauriModule:"GlobalShortcut",message:{cmd:"register",shortcut:t,handler:N(e)}})]})})}function gn(t,e){return u(this,void 0,void 0,function(){return s(this,function(n){return[2,c({__tauriModule:"GlobalShortcut",message:{cmd:"registerAll",shortcuts:t,handler:N(e)}})]})})}function bn(t){return u(this,void 0,void 0,function(){return s(this,function(e){return[2,c({__tauriModule:"GlobalShortcut",message:{cmd:"isRegistered",shortcut:t}})]})})}function wn(t){return u(this,void 0,void 0,function(){return s(this,function(e){return[2,c({__tauriModule:"GlobalShortcut",message:{cmd:"unregister",shortcut:t}})]})})}function Mn(){return u(this,void 0,void 0,function(){return s(this,function(t){return[2,c({__tauriModule:"GlobalShortcut",message:{cmd:"unregisterAll"}})]})})}Object.freeze({__proto__:null,register:yn,registerAll:gn,isRegistered:bn,unregister:wn,unregisterAll:Mn});function On(){return u(this,void 0,void 0,function(){function t(){e&&e(),e=void 0}var e;return s(this,function(n){return[2,new Promise(function(i,r){At("tauri://update-status",function(o){var a;(a=o==null?void 0:o.payload).error?(t(),r(a.error)):a.status==="DONE"&&(t(),i())}).then(function(o){e=o}).catch(function(o){throw t(),o}),Tt("tauri://update-install").catch(function(o){throw t(),o})})]})})}function kn(){return u(this,void 0,void 0,function(){function t(){e&&e(),e=void 0}var e;return s(this,function(n){return[2,new Promise(function(i,r){se("tauri://update-available",function(o){var a;a=o==null?void 0:o.payload,t(),i({manifest:a,shouldUpdate:!0})}).catch(function(o){throw t(),o}),At("tauri://update-status",function(o){var a;(a=o==null?void 0:o.payload).error?(t(),r(a.error)):a.status==="UPTODATE"&&(t(),i({shouldUpdate:!1}))}).then(function(o){e=o}).catch(function(o){throw t(),o}),Tt("tauri://update").catch(function(o){throw t(),o})})]})})}Object.freeze({__proto__:null,installUpdate:On,checkUpdate:kn});function An(t){return u(this,void 0,void 0,function(){return s(this,function(e){return[2,c({__tauriModule:"Clipboard",message:{cmd:"writeText",data:t}})]})})}function Tn(){return u(this,void 0,void 0,function(){return s(this,function(t){return[2,c({__tauriModule:"Clipboard",message:{cmd:"readText",data:null}})]})})}Object.freeze({__proto__:null,writeText:An,readText:Tn});function de(t,e,n){const i=t.slice();return i[12]=e[n],i[14]=n,i}function he(t){let e,n,i,r,o,a,f,d,h,l,_,m,y,b,v,st,Et,x=t[5],M=[];for(let p=0;pR(M[p],1,1,()=>{M[p]=null});let E=!t[3]&&ve(),j=!t[3]&&t[8]&&ye();return{c(){e=W("span"),n=W("span"),i=C(t[6]),r=q(),o=W("ul");for(let p=0;p{l[b]=null}),pt(),o=l[r],o?o.p(m,y):(o=l[r]=h[r](m),o.c()),$(o,1),o.m(e,a))},i(m){f||($(o),f=!0)},o(m){R(o),f=!1},d(m){m&&z(e),d&&d.d(),l[r].d()}}}function ve(t){let e;return{c(){e=W("span"),e.textContent=",",P(e,"class","comma svelte-gbh3pt")},m(n,i){S(n,e,i)},d(n){n&&z(e)}}}function ye(t){let e;return{c(){e=W("span"),e.textContent=",",P(e,"class","comma svelte-gbh3pt")},m(n,i){S(n,e,i)},d(n){n&&z(e)}}}function jn(t){let e,n,i=t[5].length&&he(t);return{c(){i&&i.c(),e=Ct()},m(r,o){i&&i.m(r,o),S(r,e,o),n=!0},p(r,[o]){r[5].length?i?(i.p(r,o),o&32&&$(i,1)):(i=he(r),i.c(),$(i,1),i.m(e.parentNode,e)):i&&(ht(),R(i,1,1,()=>{i=null}),pt())},i(r){n||($(i),n=!0)},o(r){R(i),n=!1},d(r){i&&i.d(r),r&&z(e)}}}const zn="...";function Sn(t,e,n){let{json:i}=e,{depth:r=1/0}=e,{_lvl:o=0}=e,{_last:a=!0}=e;const f=v=>v===null?"null":typeof v;let d,h,l,_,m;const y=v=>{switch(f(v)){case"string":return`"${v}"`;case"function":return"f () {...}";case"symbol":return v.toString();default:return v}},b=()=>{n(8,m=!m)};return t.$$set=v=>{"json"in v&&n(0,i=v.json),"depth"in v&&n(1,r=v.depth),"_lvl"in v&&n(2,o=v._lvl),"_last"in v&&n(3,a=v._last)},t.$$.update=()=>{t.$$.dirty&17&&(n(5,d=f(i)==="object"?Object.keys(i):[]),n(4,h=Array.isArray(i)),n(6,l=h?"[":"{"),n(7,_=h?"]":"}")),t.$$.dirty&6&&n(8,m=r