vendor.js 46 KB

123456789101112
  1. 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;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 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<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=[],Ae=Promise.resolve();let lt=!1;function Te(){lt||(lt=!0,Ae.then(Ft))}function ct(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),Pe(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()();lt=!1,ft=!1,dt.clear()}}function Pe(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(ct)}}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 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<<e%31}function ze(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||{},(l,_,...m)=>{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<i.length;h+=1){const l=i[h];l[1](),V.push(l,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 l=i.indexOf(h);l!==-1&&i.splice(l,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 We(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 g=[],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 Ce(){return g.slice(0)}function $e(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 De(t){return typeof t=="string"&&(t=it(t)),g.indexOf(t)!==-1}function Le(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 Fe(t){var e=t.keyCode||t.which||t.charCode,n=g.indexOf(e);if(n>=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;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),l=h.length,_=h[l-1],m=_==="*"?"*":it(_);if(!!k[m]){i||(i=G());var y=l>1?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<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,l=d.key.split(h),_=[],m=0;m<l.length;m++)_.push(it(l[m]));_.sort().join("")===g.sort().join("")&&Ht(t,d,o)}}}}function Ke(t){return Vt.indexOf(t)>-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);f<i.length;f++)t=i[f].split(l),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: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;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(l){o(l)}}function f(h){try{d(i.throw(h))}catch(l){o(l)}}function d(h){var l;h.done?r(h.value):(l=h.value,l instanceof n?l:new n(function(_){_(l)})).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(l){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,i&&(r=2&l[0]?i.return:l[0]?i.throw||((r=i.return)&&r.call(i),0):i.next)&&!(r=r.call(i,l[1])).done)return r;switch(i=0,r&&(l=[2&l[0],r.value]),l[0]){case 0:case 1:r=l;break;case 4:return a.label++,{value:l[1],done:!1};case 5:a.label++,i=l[1],l=[0];continue;case 7:l=a.ops.pop(),a.trys.pop();continue;default:if(r=a.trys,!((r=r.length>0&&r[r.length-1])||l[0]!==6&&l[0]!==2)){a=0;continue}if(l[0]===3&&(!r||l[1]>r[0]&&l[1]<r[3])){a.label=l[1];break}if(l[0]===6&&a.label<r[1]){a.label=r[1],r=l;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(l);break}r[2]&&a.ops.pop(),a.trys.pop();continue}l=e.call(t,a)}catch(_){l=[6,_],i=0}finally{n=r=0}if(5&l[0])throw l[1];return{value:l[0]?l[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,"_".concat(a))},!0),a=N(function(f){r(f),Reflect.deleteProperty(window,"_".concat(o))},!0);window.__TAURI_IPC__(D({cmd:t,callback:o,error:a},e))})]})})}function Ue(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:Ue});function c(t){return u(this,void 0,void 0,function(){return s(this,function(e){return[2,Xt("tauri",t)]})})}function Ne(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,c({__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,c({__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,c({__tauriModule:"Shell",message:{cmd:"killChild",pid:this.pid}})]})})},t}(),Be=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,Ne(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(`
  10. `),stderr:f.join(`
  11. `)})}),n.spawn().catch(o)})]})})},e}(rt);function Ie(t,e){return u(this,void 0,void 0,function(){return s(this,function(n){return[2,c({__tauriModule:"Shell",message:{cmd:"open",path:t,with:e}})]})})}Object.freeze({__proto__:null,Command:Be,Child:Qt,EventEmitter:rt,open:Ie});function Yt(t,e){return u(this,void 0,void 0,function(){return s(this,function(n){return[2,c({__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,c({__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,c({__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 Ve(){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,c({__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,c({__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,c({__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,c({__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,c({__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,c({__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,c({__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,c({__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,c({__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,c({__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,c({__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,c({__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,c({__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,c({__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,c({__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,c({__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,c({__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,c({__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,c({__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,c({__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,c({__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,c({__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,c({__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,c({__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,c({__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,c({__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,c({__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,c({__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,c({__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,c({__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,c({__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,c({__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,c({__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,c({__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,c({__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,c({__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,c({__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,c({__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)||c({__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 qe(){return u(this,void 0,void 0,function(){return s(this,function(t){return[2,c({__tauriModule:"Window",message:{cmd:"manage",data:{cmd:{type:"currentMonitor"}}}})]})})}function He(){return u(this,void 0,void 0,function(){return s(this,function(t){return[2,c({__tauriModule:"Window",message:{cmd:"manage",data:{cmd:{type:"primaryMonitor"}}}})]})})}function Ge(){return u(this,void 0,void 0,function(){return s(this,function(t){return[2,c({__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.
  12. 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:Ve,getAll:ie,get appWindow(){return kt},LogicalSize:ee,PhysicalSize:Mt,LogicalPosition:ne,PhysicalPosition:Ot,get UserAttentionType(){return ot},currentMonitor:qe,primaryMonitor:He,availableMonitors:Ge});function Je(){return u(this,void 0,void 0,function(){return s(this,function(t){return[2,c({__tauriModule:"App",message:{cmd:"getAppVersion"}})]})})}function Xe(){return u(this,void 0,void 0,function(){return s(this,function(t){return[2,c({__tauriModule:"App",message:{cmd:"getAppName"}})]})})}function Qe(){return u(this,void 0,void 0,function(){return s(this,function(t){return[2,c({__tauriModule:"App",message:{cmd:"getTauriVersion"}})]})})}Object.freeze({__proto__:null,getName:Xe,getVersion:Je,getTauriVersion:Qe});function Ye(t){return t===void 0&&(t=0),u(this,void 0,void 0,function(){return s(this,function(e){return[2,c({__tauriModule:"Process",message:{cmd:"exit",exitCode:t}})]})})}function Ze(){return u(this,void 0,void 0,function(){return s(this,function(t){return[2,c({__tauriModule:"Process",message:{cmd:"relaunch"}})]})})}Object.freeze({__proto__:null,exit:Ye,relaunch:Ze});function tn(){return u(this,void 0,void 0,function(){return s(this,function(t){return[2,c({__tauriModule:"Cli",message:{cmd:"cliMatches"}})]})})}Object.freeze({__proto__:null,getMatches:tn});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 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,c({__tauriModule:"Dialog",message:{cmd:"openDialog",options:t}})]})})}function nn(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,c({__tauriModule:"Dialog",message:{cmd:"saveDialog",options:t}})]})})}function rn(t,e){return u(this,void 0,void 0,function(){var n;return s(this,function(i){return[2,c({__tauriModule:"Dialog",message:{cmd:"messageDialog",message:t,title:(n=typeof e=="string"?{title:e}:e)==null?void 0:n.title,type:n==null?void 0:n.type}})]})})}function on(t,e){return u(this,void 0,void 0,function(){var n;return s(this,function(i){return[2,c({__tauriModule:"Dialog",message:{cmd:"askDialog",message:t,title:(n=typeof e=="string"?{title:e}:e)==null?void 0:n.title,type:n==null?void 0:n.type}})]})})}function un(t,e){return u(this,void 0,void 0,function(){var n;return s(this,function(i){return[2,c({__tauriModule:"Dialog",message:{cmd:"confirmDialog",message:t,title:(n=typeof e=="string"?{title:e}:e)==null?void 0:n.title,type:n==null?void 0:n.type}})]})})}Object.freeze({__proto__:null,open:en,save:nn,message:rn,ask:on,confirm:un});var ut;function sn(t,e){return e===void 0&&(e={}),u(this,void 0,void 0,function(){return s(this,function(n){return[2,c({__tauriModule:"Fs",message:{cmd:"readTextFile",path:t,options:e}})]})})}function an(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,c({__tauriModule:"Fs",message:{cmd:"readFile",path:t,options:e}})];case 1:return n=i.sent(),[2,Uint8Array.from(n)]}})})}function ae(t,e,n){return u(this,void 0,void 0,function(){var i,r;return s(this,function(o){return typeof n=="object"&&Object.freeze(n),typeof t=="object"&&Object.freeze(t),i={path:"",contents:""},r=n,typeof t=="string"?i.path=t:(i.path=t.path,i.contents=t.contents),typeof e=="string"?i.contents=e!=null?e:"":r=e,[2,c({__tauriModule:"Fs",message:{cmd:"writeFile",path:i.path,contents:Array.from(new TextEncoder().encode(i.contents)),options:r}})]})})}function ln(t,e,n){return u(this,void 0,void 0,function(){var i,r;return s(this,function(o){return typeof n=="object"&&Object.freeze(n),typeof t=="object"&&Object.freeze(t),i={path:"",contents:[]},r=n,typeof t=="string"?i.path=t:(i.path=t.path,i.contents=t.contents),e&&"dir"in e?r=e:typeof t=="string"&&(i.contents=e!=null?e:[]),[2,c({__tauriModule:"Fs",message:{cmd:"writeFile",path:i.path,contents:Array.from(i.contents),options:r}})]})})}function cn(t,e){return e===void 0&&(e={}),u(this,void 0,void 0,function(){return s(this,function(n){return[2,c({__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,c({__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,c({__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,c({__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,c({__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,c({__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:sn,readBinaryFile:an,writeTextFile:ae,writeFile:ae,writeBinaryFile:ln,readDir:cn,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.file=="string"?{file:r.file,mime:r.mime,fileName:r.fileName}:{file:Array.from(r.file),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}(),le=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,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;p<x.length;p+=1)M[p]=_e(de(t,x,p));const ge=p=>R(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<M.length;p+=1)M[p].c();a=q(),f=W("span"),d=C(t[7]),E&&E.c(),h=q(),l=W("span"),_=C(t[6]),m=C(zn),y=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(l,"class","bracket svelte-gbh3pt"),P(l,"tabindex","0"),Q(l,"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,l,w),T(l,_),T(l,m),T(l,y),j&&j.m(p,w),S(p,b,w),v=!0,st||(Et=[at(n,"click",t[11]),at(f,"click",t[11]),at(l,"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=de(p,x,O);M[O]?(M[O].p(jt,w),$(M[O],1)):(M[O]=_e(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=ve(),E.c(),E.m(e,null)),w&256&&Q(e,"hidden",p[8]),(!v||w&64)&&I(_,p[6]),(!v||w&128)&&I(y,p[7]),w&256&&Q(l,"hidden",!p[8]),!p[3]&&p[8]?j||(j=ye(),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),Oe(M,p),E&&E.d(),p&&z(h),p&&z(l),j&&j.d(p),p&&z(b),st=!1,B(Et)}}}function pe(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&&me();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=me(),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(){Ee(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 me(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 _e(t){let e,n,i,r,o,a,f,d=!t[4]&&pe(t);const h=[En,Pn],l=[];function _(m,y){return y&33&&(i=m[9](m[0][m[12]])==="object"),i?0:1}return r=_(t,-1),o=l[r]=h[r](t),{c(){e=W("li"),d&&d.c(),n=q(),o.c(),a=q()},m(m,y){S(m,e,y),d&&d.m(e,null),T(e,n),l[r].m(e,null),T(e,a),f=!0},p(m,y){m[4]?d&&(d.d(1),d=null):d?d.p(m,y):(d=pe(m),d.c(),d.m(e,n));let b=r;r=_(m,y),r===b?l[r].p(m,y):(ht(),R(l[b],1,1,()=>{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<o)},[i,r,o,a,h,d,l,_,m,f,y,b]}class Wn extends Se{constructor(e){super();ze(this,e,Sn,jn,Wt,{json:0,depth:1,_lvl:2,_last:3})}}export{Mn as $,an as A,nn as B,$n as C,Oe as D,ut as E,cn as F,ae as G,Ue as H,Dt as I,ct as J,Fn as K,fe as L,_n as M,xn as N,Dn as O,kt as P,Ot as Q,Mt as R,Se as S,ee as T,Ie as U,J as V,ot as W,Cn as X,Nn as Y,yn as Z,wn as _,q as a,Be as a0,kn as a1,On as a2,An as a3,Tn as a4,Wn as a5,Ee as a6,xt as a7,$ as a8,R as a9,Kt as aa,X as ab,Ct as ac,pt as ad,ht as ae,F as af,Kn as ag,P as b,S as c,T as d,W as e,I as f,z as g,Xe as h,ze as i,Je as j,Ye as k,at as l,Ze as m,L as n,Qe as o,tn 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,en as z};