vendor.js 46 KB

12345678910111213141516171819202122232425
  1. function L(){}function zt(t){return t()}function St(){return Object.create(null)}function B(t){t.forEach(zt)}function ye(t){return typeof t=="function"}function Wt(t,e){return t!=t?e==e:t!==e||t&&typeof t=="object"||typeof t=="function"}function be(t){return Object.keys(t).length===0}function we(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(we(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 Me(t,e){for(let n=0;n<t.length;n+=1)t[n]&&t[n].d(e)}function W(t){return document.createElement(t)}function C(t){return document.createTextNode(t)}function q(){return C(" ")}function Ct(){return C("")}function at(t,e,n,i){return t.addEventListener(e,n,i),()=>t.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 Oe(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<t.options.length;n+=1){const i=t.options[n];if(i.__value===e){i.selected=!0;return}}}function xn(t){const e=t.querySelector(":checked")||t.options[0];return e&&e.__value}function Q(t,e,n){t.classList[n?"add":"remove"](e)}class Kn{constructor(e=null){this.a=e,this.e=this.n=null}m(e,n,i=null){this.e||(this.e=W(n.nodeName),this.t=n,this.h(e)),this.i(i)}h(e){this.e.innerHTML=e,this.n=Array.from(this.e.childNodes)}i(e){for(let n=0;n<this.n.length;n+=1)S(this.t,this.n[n],e)}p(e){this.d(),this.h(e),this.i(this.a)}d(){this.n.forEach(z)}}let Y;function Z(t){Y=t}function $t(){if(!Y)throw new Error("Function called outside component initialization");return Y}function Rn(t){$t().$$.on_mount.push(t)}function Un(t){$t().$$.on_destroy.push(t)}const H=[],Dt=[],tt=[],Lt=[],ke=Promise.resolve();let ct=!1;function Ae(){ct||(ct=!0,ke.then(Ft))}function lt(t){tt.push(t)}let ft=!1;const dt=new Set;function Ft(){if(!ft){ft=!0;do{for(let t=0;t<H.length;t+=1){const e=H[t];Z(e),Te(e.$$)}for(Z(null),H.length=0;Dt.length;)Dt.pop()();for(let t=0;t<tt.length;t+=1){const e=tt[t];dt.has(e)||(dt.add(e),e())}tt.length=0}while(H.length);for(;Lt.length;)Lt.pop()();ct=!1,ft=!1,dt.clear()}}function Te(t){if(t.fragment!==null){t.update(),B(t.before_update);const e=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach(lt)}}const et=new Set;let K;function ht(){K={r:0,c:[],p:K}}function pt(){K.r||B(K.c),K=K.p}function $(t,e){t&&t.i&&(et.delete(t),t.i(e))}function R(t,e,n,i){if(t&&t.o){if(et.has(t))return;et.add(t),K.c.push(()=>{et.delete(t),i&&(n&&t.d(1),i())}),t.o(e)}}function Pe(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||lt(()=>{const d=o.map(zt).filter(ye);a?a.push(...d):B(d),t.$$.on_mount=[]}),f.forEach(lt)}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 Ee(t,e){t.$$.dirty[0]===-1&&(H.push(t),Ae(),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<<e%31}function je(t,e,n,i,r,o,a=[-1]){const f=Y;Z(t);const d=t.$$={fragment:null,ctx:null,props:o,update:L,not_equal:r,bound:St(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(f?f.$$.context:[]),callbacks:St(),dirty:a,skip_bound:!1};let h=!1;if(d.ctx=n?n(t,e.props||{},(c,_,...m)=>{const g=m.length?m[0]:_;return d.ctx&&r(d.ctx[c],d.ctx[c]=g)&&(!d.skip_bound&&d.bound[c]&&d.bound[c](g),h&&Ee(t,c)),_}):[],d.update(),h=!0,B(d.before_update),d.fragment=i?i(d.ctx):!1,e.target){if(e.hydrate){const c=Oe(e.target);d.fragment&&d.fragment.l(c),c.forEach(z)}else d.fragment&&d.fragment.c();e.intro&&$(t.$$.fragment),xt(t,e.target,e.anchor,e.customElement),Ft()}Z(f)}class ze{$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&&!be(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<i.length;h+=1){const c=i[h];c[1](),V.push(c,t)}if(d){for(let h=0;h<V.length;h+=2)V[h][0](V[h+1]);V.length=0}}}function o(f){r(f(t))}function a(f,d=L){const h=[f,d];return i.push(h),i.length===1&&(n=e(r)||L),f(t),()=>{const c=i.indexOf(h);c!==-1&&i.splice(c,1),i.length===0&&(n(),n=null)}}return{set:r,update:o,subscribe:a}}/*!
  2. * hotkeys-js v3.8.5
  3. * A simple micro-library for defining and dispatching keyboard shortcuts. It has no dependencies.
  4. *
  5. * Copyright (c) 2021 kenny wong <wowohoo@qq.com>
  6. * http://jaywcjlove.github.io/hotkeys
  7. *
  8. * Licensed under the MIT license.
  9. */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<n.length;i++)n[i]=t[n[i].toLowerCase()];return n}function Ut(t){typeof t!="string"&&(t=""),t=t.replace(/\s/g,"");for(var e=t.split(","),n=e.lastIndexOf("");n>=0;)e[n-1]+=",",e.splice(n,1),n=e.lastIndexOf("");return e}function Se(t,e){for(var n=t.length>=e.length?t:e,i=t.length>=e.length?e:t,r=!0,o=0;o<n.length;o++)i.indexOf(n[o])===-1&&(r=!1);return r}var Nt={backspace:8,tab:9,clear:12,enter:13,return:13,esc:27,escape:27,space:32,left:37,up:38,right:39,down:40,del:46,delete:46,ins:45,insert:45,home:36,end:35,pageup:33,pagedown:34,capslock:20,num_0:96,num_1:97,num_2:98,num_3:99,num_4:100,num_5:101,num_6:102,num_7:103,num_8:104,num_9:105,num_multiply:106,num_add:107,num_enter:108,num_subtract:109,num_decimal:110,num_divide:111,"\u21EA":20,",":188,".":190,"/":191,"`":192,"-":mt?173:189,"=":mt?61:187,";":mt?59:186,"'":222,"[":219,"]":221,"\\":220},U={"\u21E7":16,shift:16,"\u2325":18,alt:18,option:18,"\u2303":17,ctrl:17,control:17,"\u2318":91,cmd:91,command:91},Bt={16:"shiftKey",18:"altKey",17:"ctrlKey",91:"metaKey",shiftKey:16,ctrlKey:17,altKey:18,metaKey:91},A={16:!1,18:!1,17:!1,91:!1},k={};for(var nt=1;nt<20;nt++)Nt["f".concat(nt)]=111+nt;var y=[],It="all",Vt=[],it=function(e){return Nt[e.toLowerCase()]||U[e.toLowerCase()]||e.toUpperCase().charCodeAt(0)};function qt(t){It=t||"all"}function G(){return It||"all"}function We(){return y.slice(0)}function Ce(t){var e=t.target||t.srcElement,n=e.tagName,i=!0;return(e.isContentEditable||(n==="INPUT"||n==="TEXTAREA"||n==="SELECT")&&!e.readOnly)&&(i=!1),i}function $e(t){return typeof t=="string"&&(t=it(t)),y.indexOf(t)!==-1}function De(t,e){var n,i;t||(t=G());for(var r in k)if(Object.prototype.hasOwnProperty.call(k,r))for(n=k[r],i=0;i<n.length;)n[i].scope===t?n.splice(i,1):i++;G()===t&&qt(e||"all")}function Le(t){var e=t.keyCode||t.which||t.charCode,n=y.indexOf(e);if(n>=0&&y.splice(n,1),t.key&&t.key.toLowerCase()==="meta"&&y.splice(0,y.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 Fe(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;i<e;i++)n[i-1]=arguments[i];var r=n[0],o=n[1];typeof r=="function"&&(o=r,r=""),vt({key:t,scope:r,method:o,splitKey:"+"})}}var vt=function(e){var n=e.key,i=e.scope,r=e.method,o=e.splitKey,a=o===void 0?"+":o,f=Ut(n);f.forEach(function(d){var h=d.split(a),c=h.length,_=h[c-1],m=_==="*"?"*":it(_);if(!!k[m]){i||(i=G());var g=c>1?Rt(U,h):[];k[m]=k[m].map(function(b){var v=r?b.method===r:!0;return v&&b.scope===i&&Se(b.mods,g)?{}: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),y.indexOf(n)===-1&&n!==229&&y.push(n),["ctrlKey","altKey","shiftKey","metaKey"].forEach(function(g){var b=Bt[g];t[g]&&y.indexOf(b)===-1?y.push(b):!t[g]&&y.indexOf(b)>-1?y.splice(y.indexOf(b),1):g==="metaKey"&&t[g]&&y.length===3&&(t.ctrlKey||t.shiftKey||t.altKey||(y=y.slice(y.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")&&(y.indexOf(17)===-1&&y.push(17),y.indexOf(18)===-1&&y.push(18),A[17]=!0,A[18]=!0);var o=G();if(e)for(var a=0;a<e.length;a++)e[a].scope===o&&(t.type==="keydown"&&e[a].keydown||t.type==="keyup"&&e[a].keyup)&&Ht(t,e[a],o);if(n in k){for(var f=0;f<k[n].length;f++)if((t.type==="keydown"&&k[n][f].keydown||t.type==="keyup"&&k[n][f].keyup)&&k[n][f].key){for(var d=k[n][f],h=d.splitKey,c=d.key.split(h),_=[],m=0;m<c.length;m++)_.push(it(c[m]));_.sort().join("")===y.sort().join("")&&Ht(t,d,o)}}}}function xe(t){return Vt.indexOf(t)>-1}function F(t,e,n){y=[];var i=Ut(t),r=[],o="all",a=document,f=0,d=!1,h=!0,c="+";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"&&(c=e.splitKey)),typeof e=="string"&&(o=e);f<i.length;f++)t=i[f].split(c),r=[],t.length>1&&(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:c});typeof a!="undefined"&&!xe(a)&&window&&(Vt.push(a),_t(a,"keydown",function(_){Gt(_)}),_t(window,"focus",function(){y=[]}),_t(a,"keyup",function(_){Gt(_),Le(_)}))}var gt={setScope:qt,getScope:G,deleteScope:De,getPressedKeyCodes:We,isPressed:$e,filter:Ce,unbind:Fe};for(var yt in gt)Object.prototype.hasOwnProperty.call(gt,yt)&&(F[yt]=gt[yt]);if(typeof window!="undefined"){var Ke=window.hotkeys;F.noConflict=function(t){return t&&window.hotkeys===F&&(window.hotkeys=Ke),F},window.hotkeys=F}/*! *****************************************************************************
  10. Copyright (c) Microsoft Corporation.
  11. Permission to use, copy, modify, and/or distribute this software for any
  12. purpose with or without fee is hereby granted.
  13. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
  14. REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
  15. AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
  16. INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
  17. LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
  18. OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
  19. PERFORMANCE OF THIS SOFTWARE.
  20. ***************************************************************************** */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;n<i;n++)for(var r in e=arguments[n])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t}).apply(this,arguments)};function u(t,e,n,i){return new(n||(n=Promise))(function(r,o){function a(h){try{d(i.next(h))}catch(c){o(c)}}function f(h){try{d(i.throw(h))}catch(c){o(c)}}function d(h){var c;h.done?r(h.value):(c=h.value,c instanceof n?c:new n(function(_){_(c)})).then(a,f)}d((i=i.apply(t,e||[])).next())})}function s(t,e){var n,i,r,o,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:f(0),throw:f(1),return:f(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function f(d){return function(h){return function(c){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,i&&(r=2&c[0]?i.return:c[0]?i.throw||((r=i.return)&&r.call(i),0):i.next)&&!(r=r.call(i,c[1])).done)return r;switch(i=0,r&&(c=[2&c[0],r.value]),c[0]){case 0:case 1:r=c;break;case 4:return a.label++,{value:c[1],done:!1};case 5:a.label++,i=c[1],c=[0];continue;case 7:c=a.ops.pop(),a.trys.pop();continue;default:if(r=a.trys,!((r=r.length>0&&r[r.length-1])||c[0]!==6&&c[0]!==2)){a=0;continue}if(c[0]===3&&(!r||c[1]>r[0]&&c[1]<r[3])){a.label=c[1];break}if(c[0]===6&&a.label<r[1]){a.label=r[1],r=c;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(c);break}r[2]&&a.ops.pop(),a.trys.pop();continue}c=e.call(t,a)}catch(_){c=[6,_],i=0}finally{n=r=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}([d,h])}}}function N(t,e){e===void 0&&(e=!1);var n=window.crypto.getRandomValues(new Uint32Array(1))[0],i="_".concat(n);return Object.defineProperty(window,i,{value:function(r){return e&&Reflect.deleteProperty(window,i),t==null?void 0:t(r)},writable:!1,configurable:!0}),n}function Xt(t,e){return e===void 0&&(e={}),u(this,void 0,void 0,function(){return s(this,function(n){return[2,new Promise(function(i,r){var o=N(function(f){i(f),Reflect.deleteProperty(window,a)},!0),a=N(function(f){r(f),Reflect.deleteProperty(window,o)},!0);window.__TAURI_IPC__(D({cmd:t,callback:o,error:a},e))})]})})}function Re(t,e){e===void 0&&(e="asset");var n=encodeURIComponent(t);return navigator.userAgent.includes("Windows")?"https://".concat(e,".localhost/").concat(n):"".concat(e,"://").concat(n)}Object.freeze({__proto__:null,transformCallback:N,invoke:Xt,convertFileSrc:Re});function l(t){return u(this,void 0,void 0,function(){return s(this,function(e){return[2,Xt("tauri",t)]})})}function Ue(t,e,n,i){return n===void 0&&(n=[]),u(this,void 0,void 0,function(){return s(this,function(r){return typeof n=="object"&&Object.freeze(n),[2,l({__tauriModule:"Shell",message:{cmd:"execute",program:e,args:n,options:i,onEventFn:N(t)}})]})})}var rt=function(){function t(){this.eventListeners=Object.create(null)}return t.prototype.addEventListener=function(e,n){e in this.eventListeners?this.eventListeners[e].push(n):this.eventListeners[e]=[n]},t.prototype._emit=function(e,n){if(e in this.eventListeners)for(var i=0,r=this.eventListeners[e];i<r.length;i++)(0,r[i])(n)},t.prototype.on=function(e,n){return this.addEventListener(e,n),this},t}(),Qt=function(){function t(e){this.pid=e}return t.prototype.write=function(e){return u(this,void 0,void 0,function(){return s(this,function(n){return[2,l({__tauriModule:"Shell",message:{cmd:"stdinWrite",pid:this.pid,buffer:typeof e=="string"?e:Array.from(e)}})]})})},t.prototype.kill=function(){return u(this,void 0,void 0,function(){return s(this,function(e){return[2,l({__tauriModule:"Shell",message:{cmd:"killChild",pid:this.pid}})]})})},t}(),Ne=function(t){function e(n,i,r){i===void 0&&(i=[]);var o=t.call(this)||this;return o.stdout=new rt,o.stderr=new rt,o.program=n,o.args=typeof i=="string"?[i]:i,o.options=r!=null?r:{},o}return bt(e,t),e.sidecar=function(n,i,r){i===void 0&&(i=[]);var o=new e(n,i,r);return o.options.sidecar=!0,o},e.prototype.spawn=function(){return u(this,void 0,void 0,function(){var n=this;return s(this,function(i){return[2,Ue(function(r){switch(r.event){case"Error":n._emit("error",r.payload);break;case"Terminated":n._emit("close",r.payload);break;case"Stdout":n.stdout._emit("data",r.payload);break;case"Stderr":n.stderr._emit("data",r.payload)}},this.program,this.args,this.options).then(function(r){return new Qt(r)})]})})},e.prototype.execute=function(){return u(this,void 0,void 0,function(){var n=this;return s(this,function(i){return[2,new Promise(function(r,o){n.on("error",o);var a=[],f=[];n.stdout.on("data",function(d){a.push(d)}),n.stderr.on("data",function(d){f.push(d)}),n.on("close",function(d){r({code:d.code,signal:d.signal,stdout:a.join(`
  21. `),stderr:f.join(`
  22. `)})}),n.spawn().catch(o)})]})})},e}(rt);function Be(t,e){return u(this,void 0,void 0,function(){return s(this,function(n){return[2,l({__tauriModule:"Shell",message:{cmd:"open",path:t,with:e}})]})})}Object.freeze({__proto__:null,Command:Ne,Child:Qt,EventEmitter:rt,open:Be});function Yt(t,e){return u(this,void 0,void 0,function(){return s(this,function(n){return[2,l({__tauriModule:"Event",message:{cmd:"unlisten",event:t,eventId:e}})]})})}function Zt(t,e,n){return u(this,void 0,void 0,function(){return s(this,function(i){switch(i.label){case 0:return[4,l({__tauriModule:"Event",message:{cmd:"emit",event:t,windowLabel:e,payload:typeof n=="string"?n:JSON.stringify(n)}})];case 1:return i.sent(),[2]}})})}function wt(t,e,n){return u(this,void 0,void 0,function(){var i=this;return s(this,function(r){return[2,l({__tauriModule:"Event",message:{cmd:"listen",event:t,windowLabel:e,handler:N(n)}}).then(function(o){return function(){return u(i,void 0,void 0,function(){return s(this,function(a){return[2,Yt(t,o)]})})}})]})})}function te(t,e,n){return u(this,void 0,void 0,function(){return s(this,function(i){return[2,wt(t,e,function(r){n(r),Yt(t,r.id).catch(function(){})})]})})}var ot,ee=function(t,e){this.type="Logical",this.width=t,this.height=e},Mt=function(){function t(e,n){this.type="Physical",this.width=e,this.height=n}return t.prototype.toLogical=function(e){return new ee(this.width/e,this.height/e)},t}(),ne=function(t,e){this.type="Logical",this.x=t,this.y=e},Ot=function(){function t(e,n){this.type="Physical",this.x=e,this.y=n}return t.prototype.toLogical=function(e){return new ne(this.x/e,this.y/e)},t}();function Ie(){return new J(window.__TAURI_METADATA__.__currentWindow.label,{skip:!0})}function ie(){return window.__TAURI_METADATA__.__windows.map(function(t){return new J(t.label,{skip:!0})})}(function(t){t[t.Critical=1]="Critical",t[t.Informational=2]="Informational"})(ot||(ot={}));var kt,re=["tauri://created","tauri://error"],oe=function(){function t(e){this.label=e,this.listeners=Object.create(null)}return t.prototype.listen=function(e,n){return u(this,void 0,void 0,function(){var i=this;return s(this,function(r){return this._handleTauriEvent(e,n)?[2,Promise.resolve(function(){var o=i.listeners[e];o.splice(o.indexOf(n),1)})]:[2,wt(e,this.label,n)]})})},t.prototype.once=function(e,n){return u(this,void 0,void 0,function(){var i=this;return s(this,function(r){return this._handleTauriEvent(e,n)?[2,Promise.resolve(function(){var o=i.listeners[e];o.splice(o.indexOf(n),1)})]:[2,te(e,this.label,n)]})})},t.prototype.emit=function(e,n){return u(this,void 0,void 0,function(){var i,r;return s(this,function(o){if(re.includes(e)){for(i=0,r=this.listeners[e]||[];i<r.length;i++)(0,r[i])({event:e,id:-1,windowLabel:this.label,payload:n});return[2,Promise.resolve()]}return[2,Zt(e,this.label,n)]})})},t.prototype._handleTauriEvent=function(e,n){return!!re.includes(e)&&(e in this.listeners?this.listeners[e].push(n):this.listeners[e]=[n],!0)},t}(),ue=function(t){function e(){return t!==null&&t.apply(this,arguments)||this}return bt(e,t),e.prototype.scaleFactor=function(){return u(this,void 0,void 0,function(){return s(this,function(n){return[2,l({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"scaleFactor"}}}})]})})},e.prototype.innerPosition=function(){return u(this,void 0,void 0,function(){return s(this,function(n){return[2,l({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"innerPosition"}}}}).then(function(i){var r=i.x,o=i.y;return new Ot(r,o)})]})})},e.prototype.outerPosition=function(){return u(this,void 0,void 0,function(){return s(this,function(n){return[2,l({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"outerPosition"}}}}).then(function(i){var r=i.x,o=i.y;return new Ot(r,o)})]})})},e.prototype.innerSize=function(){return u(this,void 0,void 0,function(){return s(this,function(n){return[2,l({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"innerSize"}}}}).then(function(i){var r=i.width,o=i.height;return new Mt(r,o)})]})})},e.prototype.outerSize=function(){return u(this,void 0,void 0,function(){return s(this,function(n){return[2,l({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"outerSize"}}}}).then(function(i){var r=i.width,o=i.height;return new Mt(r,o)})]})})},e.prototype.isFullscreen=function(){return u(this,void 0,void 0,function(){return s(this,function(n){return[2,l({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"isFullscreen"}}}})]})})},e.prototype.isMaximized=function(){return u(this,void 0,void 0,function(){return s(this,function(n){return[2,l({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"isMaximized"}}}})]})})},e.prototype.isDecorated=function(){return u(this,void 0,void 0,function(){return s(this,function(n){return[2,l({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"isDecorated"}}}})]})})},e.prototype.isResizable=function(){return u(this,void 0,void 0,function(){return s(this,function(n){return[2,l({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"isResizable"}}}})]})})},e.prototype.isVisible=function(){return u(this,void 0,void 0,function(){return s(this,function(n){return[2,l({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"isVisible"}}}})]})})},e.prototype.theme=function(){return u(this,void 0,void 0,function(){return s(this,function(n){return[2,l({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"theme"}}}})]})})},e.prototype.center=function(){return u(this,void 0,void 0,function(){return s(this,function(n){return[2,l({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"center"}}}})]})})},e.prototype.requestUserAttention=function(n){return u(this,void 0,void 0,function(){var i;return s(this,function(r){return i=null,n&&(i=n===ot.Critical?{type:"Critical"}:{type:"Informational"}),[2,l({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"requestUserAttention",payload:i}}}})]})})},e.prototype.setResizable=function(n){return u(this,void 0,void 0,function(){return s(this,function(i){return[2,l({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setResizable",payload:n}}}})]})})},e.prototype.setTitle=function(n){return u(this,void 0,void 0,function(){return s(this,function(i){return[2,l({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setTitle",payload:n}}}})]})})},e.prototype.maximize=function(){return u(this,void 0,void 0,function(){return s(this,function(n){return[2,l({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"maximize"}}}})]})})},e.prototype.unmaximize=function(){return u(this,void 0,void 0,function(){return s(this,function(n){return[2,l({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"unmaximize"}}}})]})})},e.prototype.toggleMaximize=function(){return u(this,void 0,void 0,function(){return s(this,function(n){return[2,l({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"toggleMaximize"}}}})]})})},e.prototype.minimize=function(){return u(this,void 0,void 0,function(){return s(this,function(n){return[2,l({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"minimize"}}}})]})})},e.prototype.unminimize=function(){return u(this,void 0,void 0,function(){return s(this,function(n){return[2,l({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"unminimize"}}}})]})})},e.prototype.show=function(){return u(this,void 0,void 0,function(){return s(this,function(n){return[2,l({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"show"}}}})]})})},e.prototype.hide=function(){return u(this,void 0,void 0,function(){return s(this,function(n){return[2,l({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"hide"}}}})]})})},e.prototype.close=function(){return u(this,void 0,void 0,function(){return s(this,function(n){return[2,l({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"close"}}}})]})})},e.prototype.setDecorations=function(n){return u(this,void 0,void 0,function(){return s(this,function(i){return[2,l({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setDecorations",payload:n}}}})]})})},e.prototype.setAlwaysOnTop=function(n){return u(this,void 0,void 0,function(){return s(this,function(i){return[2,l({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setAlwaysOnTop",payload:n}}}})]})})},e.prototype.setSize=function(n){return u(this,void 0,void 0,function(){return s(this,function(i){if(!n||n.type!=="Logical"&&n.type!=="Physical")throw new Error("the `size` argument must be either a LogicalSize or a PhysicalSize instance");return[2,l({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setSize",payload:{type:n.type,data:{width:n.width,height:n.height}}}}}})]})})},e.prototype.setMinSize=function(n){return u(this,void 0,void 0,function(){return s(this,function(i){if(n&&n.type!=="Logical"&&n.type!=="Physical")throw new Error("the `size` argument must be either a LogicalSize or a PhysicalSize instance");return[2,l({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setMinSize",payload:n?{type:n.type,data:{width:n.width,height:n.height}}:null}}}})]})})},e.prototype.setMaxSize=function(n){return u(this,void 0,void 0,function(){return s(this,function(i){if(n&&n.type!=="Logical"&&n.type!=="Physical")throw new Error("the `size` argument must be either a LogicalSize or a PhysicalSize instance");return[2,l({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setMaxSize",payload:n?{type:n.type,data:{width:n.width,height:n.height}}:null}}}})]})})},e.prototype.setPosition=function(n){return u(this,void 0,void 0,function(){return s(this,function(i){if(!n||n.type!=="Logical"&&n.type!=="Physical")throw new Error("the `position` argument must be either a LogicalPosition or a PhysicalPosition instance");return[2,l({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setPosition",payload:{type:n.type,data:{x:n.x,y:n.y}}}}}})]})})},e.prototype.setFullscreen=function(n){return u(this,void 0,void 0,function(){return s(this,function(i){return[2,l({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setFullscreen",payload:n}}}})]})})},e.prototype.setFocus=function(){return u(this,void 0,void 0,function(){return s(this,function(n){return[2,l({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setFocus"}}}})]})})},e.prototype.setIcon=function(n){return u(this,void 0,void 0,function(){return s(this,function(i){return[2,l({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setIcon",payload:{icon:typeof n=="string"?n:Array.from(n)}}}}})]})})},e.prototype.setSkipTaskbar=function(n){return u(this,void 0,void 0,function(){return s(this,function(i){return[2,l({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setSkipTaskbar",payload:n}}}})]})})},e.prototype.setCursorGrab=function(n){return u(this,void 0,void 0,function(){return s(this,function(i){return[2,l({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setCursorGrab",payload:n}}}})]})})},e.prototype.setCursorVisible=function(n){return u(this,void 0,void 0,function(){return s(this,function(i){return[2,l({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setCursorVisible",payload:n}}}})]})})},e.prototype.setCursorIcon=function(n){return u(this,void 0,void 0,function(){return s(this,function(i){return[2,l({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setCursorIcon",payload:n}}}})]})})},e.prototype.setCursorPosition=function(n){return u(this,void 0,void 0,function(){return s(this,function(i){if(!n||n.type!=="Logical"&&n.type!=="Physical")throw new Error("the `position` argument must be either a LogicalPosition or a PhysicalPosition instance");return[2,l({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setCursorPosition",payload:{type:n.type,data:{x:n.x,y:n.y}}}}}})]})})},e.prototype.startDragging=function(){return u(this,void 0,void 0,function(){return s(this,function(n){return[2,l({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"startDragging"}}}})]})})},e}(oe),J=function(t){function e(n,i){i===void 0&&(i={});var r=t.call(this,n)||this;return(i==null?void 0:i.skip)||l({__tauriModule:"Window",message:{cmd:"createWebview",data:{options:D({label:n},i)}}}).then(function(){return u(r,void 0,void 0,function(){return s(this,function(o){return[2,this.emit("tauri://created")]})})}).catch(function(o){return u(r,void 0,void 0,function(){return s(this,function(a){return[2,this.emit("tauri://error",o)]})})}),r}return bt(e,t),e.getByLabel=function(n){return ie().some(function(i){return i.label===n})?new e(n,{skip:!0}):null},e}(ue);function Ve(){return u(this,void 0,void 0,function(){return s(this,function(t){return[2,l({__tauriModule:"Window",message:{cmd:"manage",data:{cmd:{type:"currentMonitor"}}}})]})})}function qe(){return u(this,void 0,void 0,function(){return s(this,function(t){return[2,l({__tauriModule:"Window",message:{cmd:"manage",data:{cmd:{type:"primaryMonitor"}}}})]})})}function He(){return u(this,void 0,void 0,function(){return s(this,function(t){return[2,l({__tauriModule:"Window",message:{cmd:"manage",data:{cmd:{type:"availableMonitors"}}}})]})})}"__TAURI_METADATA__"in window?kt=new J(window.__TAURI_METADATA__.__currentWindow.label,{skip:!0}):(console.warn(`Could not find "window.__TAURI_METADATA__". The "appWindow" value will reference the "main" window label.
  23. Note that this is not an issue if running this frontend on a browser instead of a Tauri window.`),kt=new J("main",{skip:!0}));Object.freeze({__proto__:null,WebviewWindow:J,WebviewWindowHandle:oe,WindowManager:ue,getCurrent:Ie,getAll:ie,get appWindow(){return kt},LogicalSize:ee,PhysicalSize:Mt,LogicalPosition:ne,PhysicalPosition:Ot,get UserAttentionType(){return ot},currentMonitor:Ve,primaryMonitor:qe,availableMonitors:He});function Ge(){return u(this,void 0,void 0,function(){return s(this,function(t){return[2,l({__tauriModule:"App",message:{cmd:"getAppVersion"}})]})})}function Je(){return u(this,void 0,void 0,function(){return s(this,function(t){return[2,l({__tauriModule:"App",message:{cmd:"getAppName"}})]})})}function Xe(){return u(this,void 0,void 0,function(){return s(this,function(t){return[2,l({__tauriModule:"App",message:{cmd:"getTauriVersion"}})]})})}Object.freeze({__proto__:null,getName:Je,getVersion:Ge,getTauriVersion:Xe});function Qe(t){return t===void 0&&(t=0),u(this,void 0,void 0,function(){return s(this,function(e){return[2,l({__tauriModule:"Process",message:{cmd:"exit",exitCode:t}})]})})}function Ye(){return u(this,void 0,void 0,function(){return s(this,function(t){return[2,l({__tauriModule:"Process",message:{cmd:"relaunch"}})]})})}Object.freeze({__proto__:null,exit:Qe,relaunch:Ye});function Ze(){return u(this,void 0,void 0,function(){return s(this,function(t){return[2,l({__tauriModule:"Cli",message:{cmd:"cliMatches"}})]})})}Object.freeze({__proto__:null,getMatches:Ze});function At(t,e){return u(this,void 0,void 0,function(){return s(this,function(n){return[2,wt(t,null,e)]})})}function se(t,e){return u(this,void 0,void 0,function(){return s(this,function(n){return[2,te(t,null,e)]})})}function Tt(t,e){return u(this,void 0,void 0,function(){return s(this,function(n){return[2,Zt(t,void 0,e)]})})}Object.freeze({__proto__:null,listen:At,once:se,emit:Tt});function tn(t){return t===void 0&&(t={}),u(this,void 0,void 0,function(){return s(this,function(e){return typeof t=="object"&&Object.freeze(t),[2,l({__tauriModule:"Dialog",message:{cmd:"openDialog",options:t}})]})})}function en(t){return t===void 0&&(t={}),u(this,void 0,void 0,function(){return s(this,function(e){return typeof t=="object"&&Object.freeze(t),[2,l({__tauriModule:"Dialog",message:{cmd:"saveDialog",options:t}})]})})}function nn(t){return u(this,void 0,void 0,function(){return s(this,function(e){return[2,l({__tauriModule:"Dialog",message:{cmd:"messageDialog",message:t}})]})})}function rn(t,e){return u(this,void 0,void 0,function(){return s(this,function(n){return[2,l({__tauriModule:"Dialog",message:{cmd:"askDialog",title:e,message:t}})]})})}function on(t,e){return u(this,void 0,void 0,function(){return s(this,function(n){return[2,l({__tauriModule:"Dialog",message:{cmd:"confirmDialog",title:e,message:t}})]})})}Object.freeze({__proto__:null,open:tn,save:en,message:nn,ask:rn,confirm:on});var ut;function un(t,e){return e===void 0&&(e={}),u(this,void 0,void 0,function(){return s(this,function(n){return[2,l({__tauriModule:"Fs",message:{cmd:"readTextFile",path:t,options:e}})]})})}function sn(t,e){return e===void 0&&(e={}),u(this,void 0,void 0,function(){var n;return s(this,function(i){switch(i.label){case 0:return[4,l({__tauriModule:"Fs",message:{cmd:"readFile",path:t,options:e}})];case 1:return n=i.sent(),[2,Uint8Array.from(n)]}})})}function an(t,e){return e===void 0&&(e={}),u(this,void 0,void 0,function(){return s(this,function(n){return typeof e=="object"&&Object.freeze(e),typeof t=="object"&&Object.freeze(t),[2,l({__tauriModule:"Fs",message:{cmd:"writeFile",path:t.path,contents:Array.from(new TextEncoder().encode(t.contents)),options:e}})]})})}function cn(t,e){return e===void 0&&(e={}),u(this,void 0,void 0,function(){return s(this,function(n){return typeof e=="object"&&Object.freeze(e),typeof t=="object"&&Object.freeze(t),[2,l({__tauriModule:"Fs",message:{cmd:"writeFile",path:t.path,contents:Array.from(t.contents),options:e}})]})})}function ln(t,e){return e===void 0&&(e={}),u(this,void 0,void 0,function(){return s(this,function(n){return[2,l({__tauriModule:"Fs",message:{cmd:"readDir",path:t,options:e}})]})})}function fn(t,e){return e===void 0&&(e={}),u(this,void 0,void 0,function(){return s(this,function(n){return[2,l({__tauriModule:"Fs",message:{cmd:"createDir",path:t,options:e}})]})})}function dn(t,e){return e===void 0&&(e={}),u(this,void 0,void 0,function(){return s(this,function(n){return[2,l({__tauriModule:"Fs",message:{cmd:"removeDir",path:t,options:e}})]})})}function hn(t,e,n){return n===void 0&&(n={}),u(this,void 0,void 0,function(){return s(this,function(i){return[2,l({__tauriModule:"Fs",message:{cmd:"copyFile",source:t,destination:e,options:n}})]})})}function pn(t,e){return e===void 0&&(e={}),u(this,void 0,void 0,function(){return s(this,function(n){return[2,l({__tauriModule:"Fs",message:{cmd:"removeFile",path:t,options:e}})]})})}function mn(t,e,n){return n===void 0&&(n={}),u(this,void 0,void 0,function(){return s(this,function(i){return[2,l({__tauriModule:"Fs",message:{cmd:"renameFile",oldPath:t,newPath:e,options:n}})]})})}(function(t){t[t.Audio=1]="Audio",t[t.Cache=2]="Cache",t[t.Config=3]="Config",t[t.Data=4]="Data",t[t.LocalData=5]="LocalData",t[t.Desktop=6]="Desktop",t[t.Document=7]="Document",t[t.Download=8]="Download",t[t.Executable=9]="Executable",t[t.Font=10]="Font",t[t.Home=11]="Home",t[t.Picture=12]="Picture",t[t.Public=13]="Public",t[t.Runtime=14]="Runtime",t[t.Template=15]="Template",t[t.Video=16]="Video",t[t.Resource=17]="Resource",t[t.App=18]="App",t[t.Log=19]="Log",t[t.Temp=20]="Temp"})(ut||(ut={}));Object.freeze({__proto__:null,get BaseDirectory(){return ut},get Dir(){return ut},readTextFile:un,readBinaryFile:sn,writeFile:an,writeBinaryFile:cn,readDir:ln,createDir:fn,removeDir:dn,copyFile:hn,removeFile:pn,renameFile:mn});var X;(function(t){t[t.JSON=1]="JSON",t[t.Text=2]="Text",t[t.Binary=3]="Binary"})(X||(X={}));var _n=function(){function t(e,n){this.type=e,this.payload=n}return t.form=function(e){var n={};for(var i in e){var r=e[i],o=void 0;o=typeof r=="string"?r:r instanceof Uint8Array||Array.isArray(r)?Array.from(r):typeof r.value=="string"?{value:r.value,mime:r.mime,fileName:r.fileName}:{value:Array.from(r.value),mime:r.mime,fileName:r.fileName},n[i]=o}return new t("Form",n)},t.json=function(e){return new t("Json",e)},t.text=function(e){return new t("Text",e)},t.bytes=function(e){return new t("Bytes",Array.from(e))},t}(),ae=function(t){this.url=t.url,this.status=t.status,this.ok=this.status>=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,l({__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,l({__tauriModule:"Http",message:{cmd:"httpRequest",client:this.id,options:e}}).then(function(r){var o=new ae(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 le(t){return u(this,void 0,void 0,function(){return s(this,function(e){return[2,l({__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,le()];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:le,fetch:vn,Body:_n,Client:ce,Response:ae,get ResponseType(){return X}});function gn(t,e){return u(this,void 0,void 0,function(){return s(this,function(n){return[2,l({__tauriModule:"GlobalShortcut",message:{cmd:"register",shortcut:t,handler:N(e)}})]})})}function yn(t,e){return u(this,void 0,void 0,function(){return s(this,function(n){return[2,l({__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,l({__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,l({__tauriModule:"GlobalShortcut",message:{cmd:"unregister",shortcut:t}})]})})}function Mn(){return u(this,void 0,void 0,function(){return s(this,function(t){return[2,l({__tauriModule:"GlobalShortcut",message:{cmd:"unregisterAll"}})]})})}Object.freeze({__proto__:null,register:gn,registerAll:yn,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,l({__tauriModule:"Clipboard",message:{cmd:"writeText",data:t}})]})})}function Tn(){return u(this,void 0,void 0,function(){return s(this,function(t){return[2,l({__tauriModule:"Clipboard",message:{cmd:"readText"}})]})})}Object.freeze({__proto__:null,writeText:An,readText:Tn});function fe(t,e,n){const i=t.slice();return i[12]=e[n],i[14]=n,i}function de(t){let e,n,i,r,o,a,f,d,h,c,_,m,g,b,v,st,Et,x=t[5],M=[];for(let p=0;p<x.length;p+=1)M[p]=me(fe(t,x,p));const ge=p=>R(M[p],1,1,()=>{M[p]=null});let E=!t[3]&&_e(),j=!t[3]&&t[8]&&ve();return{c(){e=W("span"),n=W("span"),i=C(t[6]),r=q(),o=W("ul");for(let p=0;p<M.length;p+=1)M[p].c();a=q(),f=W("span"),d=C(t[7]),E&&E.c(),h=q(),c=W("span"),_=C(t[6]),m=C(zn),g=C(t[7]),j&&j.c(),b=Ct(),P(n,"class","bracket svelte-gbh3pt"),P(n,"tabindex","0"),P(o,"class","svelte-gbh3pt"),P(f,"class","bracket svelte-gbh3pt"),P(f,"tabindex","0"),P(e,"class","svelte-gbh3pt"),Q(e,"hidden",t[8]),P(c,"class","bracket svelte-gbh3pt"),P(c,"tabindex","0"),Q(c,"hidden",!t[8])},m(p,w){S(p,e,w),T(e,n),T(n,i),T(e,r),T(e,o);for(let O=0;O<M.length;O+=1)M[O].m(o,null);T(e,a),T(e,f),T(f,d),E&&E.m(e,null),S(p,h,w),S(p,c,w),T(c,_),T(c,m),T(c,g),j&&j.m(p,w),S(p,b,w),v=!0,st||(Et=[at(n,"click",t[11]),at(f,"click",t[11]),at(c,"click",t[11])],st=!0)},p(p,w){if((!v||w&64)&&I(i,p[6]),w&1591){x=p[5];let O;for(O=0;O<x.length;O+=1){const jt=fe(p,x,O);M[O]?(M[O].p(jt,w),$(M[O],1)):(M[O]=me(jt),M[O].c(),$(M[O],1),M[O].m(o,null))}for(ht(),O=x.length;O<M.length;O+=1)ge(O);pt()}(!v||w&128)&&I(d,p[7]),p[3]?E&&(E.d(1),E=null):E||(E=_e(),E.c(),E.m(e,null)),w&256&&Q(e,"hidden",p[8]),(!v||w&64)&&I(_,p[6]),(!v||w&128)&&I(g,p[7]),w&256&&Q(c,"hidden",!p[8]),!p[3]&&p[8]?j||(j=ve(),j.c(),j.m(b.parentNode,b)):j&&(j.d(1),j=null)},i(p){if(!v){for(let w=0;w<x.length;w+=1)$(M[w]);v=!0}},o(p){M=M.filter(Boolean);for(let w=0;w<M.length;w+=1)R(M[w]);v=!1},d(p){p&&z(e),Me(M,p),E&&E.d(),p&&z(h),p&&z(c),j&&j.d(p),p&&z(b),st=!1,B(Et)}}}function he(t){let e,n,i=t[12]+"",r,o;return{c(){e=W("span"),n=C('"'),r=C(i),o=C('":'),P(e,"class","key")},m(a,f){S(a,e,f),T(e,n),T(e,r),T(e,o)},p(a,f){f&32&&i!==(i=a[12]+"")&&I(r,i)},d(a){a&&z(e)}}}function Pn(t){let e,n=t[10](t[0][t[12]])+"",i,r,o=t[14]<t[5].length-1&&pe();return{c(){e=W("span"),i=C(n),o&&o.c(),P(e,"class",r="val "+t[9](t[0][t[12]])+" svelte-gbh3pt")},m(a,f){S(a,e,f),T(e,i),o&&o.m(e,null)},p(a,f){f&33&&n!==(n=a[10](a[0][a[12]])+"")&&I(i,n),a[14]<a[5].length-1?o||(o=pe(),o.c(),o.m(e,null)):o&&(o.d(1),o=null),f&33&&r!==(r="val "+a[9](a[0][a[12]])+" svelte-gbh3pt")&&P(e,"class",r)},i:L,o:L,d(a){a&&z(e),o&&o.d()}}}function En(t){let e,n;return e=new Wn({props:{json:t[0][t[12]],depth:t[1],_lvl:t[2]+1,_last:t[14]===t[5].length-1}}),{c(){Pe(e.$$.fragment)},m(i,r){xt(e,i,r),n=!0},p(i,r){const o={};r&33&&(o.json=i[0][i[12]]),r&2&&(o.depth=i[1]),r&4&&(o._lvl=i[2]+1),r&32&&(o._last=i[14]===i[5].length-1),e.$set(o)},i(i){n||($(e.$$.fragment,i),n=!0)},o(i){R(e.$$.fragment,i),n=!1},d(i){Kt(e,i)}}}function pe(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 me(t){let e,n,i,r,o,a,f,d=!t[4]&&he(t);const h=[En,Pn],c=[];function _(m,g){return g&33&&(i=m[9](m[0][m[12]])==="object"),i?0:1}return r=_(t,-1),o=c[r]=h[r](t),{c(){e=W("li"),d&&d.c(),n=q(),o.c(),a=q()},m(m,g){S(m,e,g),d&&d.m(e,null),T(e,n),c[r].m(e,null),T(e,a),f=!0},p(m,g){m[4]?d&&(d.d(1),d=null):d?d.p(m,g):(d=he(m),d.c(),d.m(e,n));let b=r;r=_(m,g),r===b?c[r].p(m,g):(ht(),R(c[b],1,1,()=>{c[b]=null}),pt(),o=c[r],o?o.p(m,g):(o=c[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(),c[r].d()}}}function _e(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 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 jn(t){let e,n,i=t[5].length&&de(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=de(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,c,_,m;const g=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,c=h?"[":"{"),n(7,_=h?"]":"}")),t.$$.dirty&6&&n(8,m=r<o)},[i,r,o,a,h,d,c,_,m,f,g,b]}class Wn extends ze{constructor(e){super();je(this,e,Sn,jn,Wt,{json:0,depth:1,_lvl:2,_last:3})}}export{Ne as $,sn as A,en as B,$n as C,Me as D,ut as E,ln as F,Re as G,Dt as H,lt as I,Fn as J,le as K,_n as L,xn as M,Dn as N,kt as O,Ot as P,Mt as Q,ee as R,ze as S,Be as T,J as U,ot as V,Cn as W,Nn as X,gn as Y,wn as Z,Mn as _,q as a,kn as a0,On as a1,An as a2,Tn as a3,Wn as a4,Pe as a5,xt as a6,$ as a7,R as a8,Kt as a9,X as aa,Ct as ab,pt as ac,ht as ad,F as ae,Kn as af,P as b,S as c,T as d,W as e,I as f,z as g,Je as h,je as i,Ge as j,Qe as k,at as l,Ye as m,L as n,Xe as o,Ze as p,Rn as q,B as r,Wt as s,C as t,At as u,Un as v,Xt as w,Tt as x,Ln as y,tn as z};