From 86488a6ad8009d48edd38a7ffcbb89dabdac3cb3 Mon Sep 17 00:00:00 2001 From: Lucas Fernandes Nogueira Date: Wed, 19 Apr 2023 15:03:34 -0700 Subject: [PATCH] refactor(core): remove notification API (#6745) --- .github/workflows/lint-fmt-core.yml | 2 +- .github/workflows/test-core.yml | 2 +- core/tauri/Cargo.toml | 9 +- core/tauri/scripts/bundle.global.js | 8 +- core/tauri/scripts/core.js | 86 --- core/tauri/src/api/error.rs | 4 - core/tauri/src/api/mod.rs | 4 - core/tauri/src/api/notification.rs | 207 -------- core/tauri/src/endpoints.rs | 8 - core/tauri/src/endpoints/notification.rs | 127 ----- core/tauri/src/error.rs | 3 - core/tauri/src/lib.rs | 2 - core/tauri/src/updater/mod.rs | 9 - examples/api/dist/assets/index.css | 2 +- examples/api/dist/assets/index.js | 78 +-- examples/api/src-tauri/Cargo.lock | 559 +------------------- examples/api/src-tauri/Cargo.toml | 1 - examples/api/src/App.svelte | 6 - examples/api/src/views/Notifications.svelte | 34 -- examples/api/src/views/Window.svelte | 12 - tooling/api/docs/js-api.json | 2 +- tooling/api/src/index.ts | 15 +- tooling/api/src/notification.ts | 118 ----- 23 files changed, 57 insertions(+), 1241 deletions(-) delete mode 100644 core/tauri/src/api/notification.rs delete mode 100644 core/tauri/src/endpoints/notification.rs delete mode 100644 examples/api/src/views/Notifications.svelte delete mode 100644 tooling/api/src/notification.ts diff --git a/.github/workflows/lint-fmt-core.yml b/.github/workflows/lint-fmt-core.yml index ab4fdac67c9..133d6147af9 100644 --- a/.github/workflows/lint-fmt-core.yml +++ b/.github/workflows/lint-fmt-core.yml @@ -50,7 +50,7 @@ jobs: clippy: - { args: '', key: 'empty' } - { - args: '--features compression,wry,linux-protocol-headers,isolation,custom-protocol,api-all,updater,system-tray,windows7-compat,http-multipart', + args: '--features compression,wry,linux-protocol-headers,isolation,custom-protocol,api-all,updater,system-tray,http-multipart', key: 'all' } - { args: '--features custom-protocol', key: 'custom-protocol' } diff --git a/.github/workflows/test-core.yml b/.github/workflows/test-core.yml index 6244711ff5c..0a08c7d29ea 100644 --- a/.github/workflows/test-core.yml +++ b/.github/workflows/test-core.yml @@ -76,7 +76,7 @@ jobs: key: api-all } - { - args: --features compression,wry,linux-protocol-headers,isolation,custom-protocol,api-all,updater,system-tray,windows7-compat,http-multipart, + args: --features compression,wry,linux-protocol-headers,isolation,custom-protocol,api-all,updater,system-tray,http-multipart, key: all } diff --git a/core/tauri/Cargo.toml b/core/tauri/Cargo.toml index d981136ba2a..42b91ff53da 100644 --- a/core/tauri/Cargo.toml +++ b/core/tauri/Cargo.toml @@ -19,7 +19,6 @@ features = [ "wry", "custom-protocol", "api-all", - "windows7-compat", "updater", "fs-extract-api", "system-tray", @@ -81,9 +80,6 @@ png = { version = "0.17", optional = true } ico = { version = "0.2.0", optional = true } encoding_rs = "0.8.31" -[target."cfg(any(target_os = \"macos\", windows, target_os = \"linux\", target_os = \"dragonfly\", target_os = \"freebsd\", target_os = \"openbsd\", target_os = \"netbsd\"))".dependencies] -notify-rust = { version = "4.5", optional = true } - [target."cfg(any(target_os = \"linux\", target_os = \"dragonfly\", target_os = \"freebsd\", target_os = \"openbsd\", target_os = \"netbsd\"))".dependencies] gtk = { version = "0.16", features = [ "v3_24" ] } glib = "0.16" @@ -96,7 +92,6 @@ objc = "0.2" [target."cfg(windows)".dependencies] webview2-com = "0.22" -win7-notifications = { version = "0.3.1", optional = true } [target."cfg(windows)".dependencies.windows] version = "0.44" @@ -154,7 +149,6 @@ native-tls = [ "reqwest/native-tls" ] native-tls-vendored = [ "reqwest/native-tls-vendored" ] rustls-tls = [ "reqwest/rustls-tls" ] process-command-api = [ "shared_child", "os_pipe" ] -notification = [ "notify-rust" ] system-tray = [ "tauri-runtime/system-tray", "tauri-runtime-wry/system-tray" ] devtools = [ "tauri-runtime/devtools", "tauri-runtime-wry/devtools" ] dox = [ "tauri-runtime-wry/dox" ] @@ -162,7 +156,6 @@ macos-private-api = [ "tauri-runtime/macos-private-api", "tauri-runtime-wry/macos-private-api" ] -windows7-compat = [ "win7-notifications" ] window-data-url = [ "data-url" ] api-all = [ "clipboard-all", @@ -211,7 +204,7 @@ fs-write-file = [ ] global-shortcut-all = [ ] http-all = [ "http-request" ] http-request = [ ] -notification-all = [ "notification", "dialog-ask" ] +notification-all = [ ] os-all = [ "os_info" ] path-all = [ ] process-all = [ "process-relaunch", "process-exit" ] diff --git a/core/tauri/scripts/bundle.global.js b/core/tauri/scripts/bundle.global.js index 0791f02c8be..ded52f4db52 100644 --- a/core/tauri/scripts/bundle.global.js +++ b/core/tauri/scripts/bundle.global.js @@ -1,6 +1,6 @@ -"use strict";var __TAURI_IIFE__=(()=>{var D=Object.defineProperty;var J=Object.getOwnPropertyDescriptor;var X=Object.getOwnPropertyNames;var B=Object.prototype.hasOwnProperty;var c=(n,e)=>{for(var t in e)D(n,t,{get:e[t],enumerable:!0})},ee=(n,e,t,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of X(e))!B.call(n,s)&&s!==t&&D(n,s,{get:()=>e[s],enumerable:!(r=J(e,s))||r.enumerable});return n};var te=n=>ee(D({},"__esModule",{value:!0}),n);var lt={};c(lt,{app:()=>S,event:()=>k,invoke:()=>ot,notification:()=>N,os:()=>$,path:()=>I,process:()=>R,shell:()=>F,tauri:()=>x,updater:()=>V,window:()=>j});var S={};c(S,{getName:()=>ae,getTauriVersion:()=>se,getVersion:()=>re,hide:()=>le,show:()=>oe});var x={};c(x,{convertFileSrc:()=>ie,invoke:()=>o,transformCallback:()=>p});function ne(){return window.crypto.getRandomValues(new Uint32Array(1))[0]}function p(n,e=!1){let t=ne(),r=`_${t}`;return Object.defineProperty(window,r,{value:s=>(e&&Reflect.deleteProperty(window,r),n?.(s)),writable:!1,configurable:!0}),t}async function o(n,e={}){return new Promise((t,r)=>{let s=p(d=>{t(d),Reflect.deleteProperty(window,`_${l}`)},!0),l=p(d=>{r(d),Reflect.deleteProperty(window,`_${s}`)},!0);window.__TAURI_IPC__({cmd:n,callback:s,error:l,...e})})}function ie(n,e="asset"){let t=encodeURIComponent(n);return navigator.userAgent.includes("Windows")?`https://${e}.localhost/${t}`:`${e}://localhost/${t}`}async function i(n){return o("tauri",n)}async function re(){return i({__tauriModule:"App",message:{cmd:"getAppVersion"}})}async function ae(){return i({__tauriModule:"App",message:{cmd:"getAppName"}})}async function se(){return i({__tauriModule:"App",message:{cmd:"getTauriVersion"}})}async function oe(){return i({__tauriModule:"App",message:{cmd:"show"}})}async function le(){return i({__tauriModule:"App",message:{cmd:"hide"}})}var k={};c(k,{TauriEvent:()=>v,emit:()=>E,listen:()=>L,once:()=>U});async function q(n,e){return i({__tauriModule:"Event",message:{cmd:"unlisten",event:n,eventId:e}})}async function w(n,e,t){await i({__tauriModule:"Event",message:{cmd:"emit",event:n,windowLabel:e,payload:t}})}async function f(n,e,t){return i({__tauriModule:"Event",message:{cmd:"listen",event:n,windowLabel:e,handler:p(t)}}).then(r=>async()=>q(n,r))}async function P(n,e,t){return f(n,e,r=>{t(r),q(n,r.id).catch(()=>{})})}var v=(u=>(u.WINDOW_RESIZED="tauri://resize",u.WINDOW_MOVED="tauri://move",u.WINDOW_CLOSE_REQUESTED="tauri://close-requested",u.WINDOW_CREATED="tauri://window-created",u.WINDOW_DESTROYED="tauri://destroyed",u.WINDOW_FOCUS="tauri://focus",u.WINDOW_BLUR="tauri://blur",u.WINDOW_SCALE_FACTOR_CHANGED="tauri://scale-change",u.WINDOW_THEME_CHANGED="tauri://theme-changed",u.WINDOW_FILE_DROP="tauri://file-drop",u.WINDOW_FILE_DROP_HOVER="tauri://file-drop-hover",u.WINDOW_FILE_DROP_CANCELLED="tauri://file-drop-cancelled",u.MENU="tauri://menu",u.CHECK_UPDATE="tauri://update",u.UPDATE_AVAILABLE="tauri://update-available",u.INSTALL_UPDATE="tauri://update-install",u.STATUS_UPDATE="tauri://update-status",u.DOWNLOAD_PROGRESS="tauri://update-download-progress",u))(v||{});async function L(n,e){return f(n,null,e)}async function U(n,e){return P(n,null,e)}async function E(n,e){return w(n,void 0,e)}var N={};c(N,{isPermissionGranted:()=>ue,requestPermission:()=>ce,sendNotification:()=>me});async function ue(){return window.Notification.permission!=="default"?Promise.resolve(window.Notification.permission==="granted"):i({__tauriModule:"Notification",message:{cmd:"isNotificationPermissionGranted"}})}async function ce(){return window.Notification.requestPermission()}function me(n){typeof n=="string"?new window.Notification(n):new window.Notification(n.title,n)}var I={};c(I,{BaseDirectory:()=>K,appCacheDir:()=>he,appConfigDir:()=>pe,appDataDir:()=>ge,appLocalDataDir:()=>ye,appLogDir:()=>ke,audioDir:()=>be,basename:()=>Ge,cacheDir:()=>fe,configDir:()=>_e,dataDir:()=>we,delimiter:()=>Ie,desktopDir:()=>Pe,dirname:()=>Ve,documentDir:()=>ve,downloadDir:()=>Ee,executableDir:()=>Oe,extname:()=>He,fontDir:()=>We,homeDir:()=>Me,isAbsolute:()=>je,join:()=>ze,localDataDir:()=>Ce,normalize:()=>Fe,pictureDir:()=>Ae,publicDir:()=>Te,resolve:()=>Re,resolveResource:()=>xe,resourceDir:()=>De,runtimeDir:()=>Se,sep:()=>Ne,templateDir:()=>Le,videoDir:()=>Ue});function _(){return navigator.appVersion.includes("Win")}var K=(a=>(a[a.Audio=1]="Audio",a[a.Cache=2]="Cache",a[a.Config=3]="Config",a[a.Data=4]="Data",a[a.LocalData=5]="LocalData",a[a.Document=6]="Document",a[a.Download=7]="Download",a[a.Picture=8]="Picture",a[a.Public=9]="Public",a[a.Video=10]="Video",a[a.Resource=11]="Resource",a[a.Temp=12]="Temp",a[a.AppConfig=13]="AppConfig",a[a.AppData=14]="AppData",a[a.AppLocalData=15]="AppLocalData",a[a.AppCache=16]="AppCache",a[a.AppLog=17]="AppLog",a[a.Desktop=18]="Desktop",a[a.Executable=19]="Executable",a[a.Font=20]="Font",a[a.Home=21]="Home",a[a.Runtime=22]="Runtime",a[a.Template=23]="Template",a))(K||{});async function pe(){return o("plugin:path|resolve_directory",{directory:13})}async function ge(){return o("plugin:path|resolve_directory",{directory:14})}async function ye(){return o("plugin:path|resolve_directory",{directory:15})}async function he(){return o("plugin:path|resolve_directory",{directory:16})}async function be(){return o("plugin:path|resolve_directory",{directory:1})}async function fe(){return o("plugin:path|resolve_directory",{directory:2})}async function _e(){return o("plugin:path|resolve_directory",{directory:3})}async function we(){return o("plugin:path|resolve_directory",{directory:4})}async function Pe(){return o("plugin:path|resolve_directory",{directory:18})}async function ve(){return o("plugin:path|resolve_directory",{directory:6})}async function Ee(){return o("plugin:path|resolve_directory",{directory:7})}async function Oe(){return o("plugin:path|resolve_directory",{directory:19})}async function We(){return o("plugin:path|resolve_directory",{directory:20})}async function Me(){return o("plugin:path|resolve_directory",{directory:21})}async function Ce(){return o("plugin:path|resolve_directory",{directory:5})}async function Ae(){return o("plugin:path|resolve_directory",{directory:8})}async function Te(){return o("plugin:path|resolve_directory",{directory:9})}async function De(){return o("plugin:path|resolve_directory",{directory:11})}async function xe(n){return o("plugin:path|resolve_directory",{directory:11,path:n})}async function Se(){return o("plugin:path|resolve_directory",{directory:22})}async function Le(){return o("plugin:path|resolve_directory",{directory:23})}async function Ue(){return o("plugin:path|resolve_directory",{directory:10})}async function ke(){return o("plugin:path|resolve_directory",{directory:17})}var Ne=_()?"\\":"/",Ie=_()?";":":";async function Re(...n){return o("plugin:path|resolve",{paths:n})}async function Fe(n){return o("plugin:path|normalize",{path:n})}async function ze(...n){return o("plugin:path|join",{paths:n})}async function Ve(n){return o("plugin:path|dirname",{path:n})}async function He(n){return o("plugin:path|extname",{path:n})}async function Ge(n,e){return o("plugin:path|basename",{path:n,ext:e})}async function je(n){return o("plugin:path|isAbsolute",{path:n})}var R={};c(R,{exit:()=>$e,relaunch:()=>qe});async function $e(n=0){return i({__tauriModule:"Process",message:{cmd:"exit",exitCode:n}})}async function qe(){return i({__tauriModule:"Process",message:{cmd:"relaunch"}})}var F={};c(F,{Child:()=>O,Command:()=>y,EventEmitter:()=>g,open:()=>Qe});async function Ke(n,e,t=[],r){return typeof t=="object"&&Object.freeze(t),i({__tauriModule:"Shell",message:{cmd:"execute",program:e,args:t,options:r,onEventFn:p(n)}})}var g=class{constructor(){this.eventListeners=Object.create(null)}addListener(e,t){return this.on(e,t)}removeListener(e,t){return this.off(e,t)}on(e,t){return e in this.eventListeners?this.eventListeners[e].push(t):this.eventListeners[e]=[t],this}once(e,t){let r=s=>{this.removeListener(e,r),t(s)};return this.addListener(e,r)}off(e,t){return e in this.eventListeners&&(this.eventListeners[e]=this.eventListeners[e].filter(r=>r!==t)),this}removeAllListeners(e){return e?delete this.eventListeners[e]:this.eventListeners=Object.create(null),this}emit(e,t){if(e in this.eventListeners){let r=this.eventListeners[e];for(let s of r)s(t);return!0}return!1}listenerCount(e){return e in this.eventListeners?this.eventListeners[e].length:0}prependListener(e,t){return e in this.eventListeners?this.eventListeners[e].unshift(t):this.eventListeners[e]=[t],this}prependOnceListener(e,t){let r=s=>{this.removeListener(e,r),t(s)};return this.prependListener(e,r)}},O=class{constructor(e){this.pid=e}async write(e){return i({__tauriModule:"Shell",message:{cmd:"stdinWrite",pid:this.pid,buffer:typeof e=="string"?e:Array.from(e)}})}async kill(){return i({__tauriModule:"Shell",message:{cmd:"killChild",pid:this.pid}})}},y=class extends g{constructor(t,r=[],s){super();this.stdout=new g;this.stderr=new g;this.program=t,this.args=typeof r=="string"?[r]:r,this.options=s??{}}static create(t,r=[],s){return new y(t,r,s)}static sidecar(t,r=[],s){let l=new y(t,r,s);return l.options.sidecar=!0,l}async spawn(){return Ke(t=>{switch(t.event){case"Error":this.emit("error",t.payload);break;case"Terminated":this.emit("close",t.payload);break;case"Stdout":this.stdout.emit("data",t.payload);break;case"Stderr":this.stderr.emit("data",t.payload);break}},this.program,this.args,this.options).then(t=>new O(t))}async execute(){return new Promise((t,r)=>{this.on("error",r);let s=[],l=[];this.stdout.on("data",d=>{s.push(d)}),this.stderr.on("data",d=>{l.push(d)}),this.on("close",d=>{t({code:d.code,signal:d.signal,stdout:this.collectOutput(s),stderr:this.collectOutput(l)})}),this.spawn().catch(r)})}collectOutput(t){return this.options.encoding==="raw"?t.reduce((r,s)=>new Uint8Array([...r,...s,10]),new Uint8Array):t.join(` -`)}};async function Qe(n,e){return i({__tauriModule:"Shell",message:{cmd:"open",path:n,with:e}})}var V={};c(V,{checkUpdate:()=>Ye,installUpdate:()=>Ze,onUpdaterEvent:()=>z});async function z(n){return L("tauri://update-status",e=>{n(e?.payload)})}async function Ze(){let n;function e(){n&&n(),n=void 0}return new Promise((t,r)=>{function s(l){if(l.error){e(),r(l.error);return}l.status==="DONE"&&(e(),t())}z(s).then(l=>{n=l}).catch(l=>{throw e(),l}),E("tauri://update-install").catch(l=>{throw e(),l})})}async function Ye(){let n;function e(){n&&n(),n=void 0}return new Promise((t,r)=>{function s(d){e(),t({manifest:d,shouldUpdate:!0})}function l(d){if(d.error){e(),r(d.error);return}d.status==="UPTODATE"&&(e(),t({shouldUpdate:!1}))}U("tauri://update-available",d=>{s(d?.payload)}).catch(d=>{throw e(),d}),z(l).then(d=>{n=d}).catch(d=>{throw e(),d}),E("tauri://update").catch(d=>{throw e(),d})})}var j={};c(j,{CloseRequestedEvent:()=>T,LogicalPosition:()=>M,LogicalSize:()=>W,PhysicalPosition:()=>b,PhysicalSize:()=>h,UserAttentionType:()=>Z,WebviewWindow:()=>m,WebviewWindowHandle:()=>C,WindowManager:()=>A,appWindow:()=>H,availableMonitors:()=>et,currentMonitor:()=>Xe,getAll:()=>Y,getCurrent:()=>Je,primaryMonitor:()=>Be});var W=class{constructor(e,t){this.type="Logical";this.width=e,this.height=t}},h=class{constructor(e,t){this.type="Physical";this.width=e,this.height=t}toLogical(e){return new W(this.width/e,this.height/e)}},M=class{constructor(e,t){this.type="Logical";this.x=e,this.y=t}},b=class{constructor(e,t){this.type="Physical";this.x=e,this.y=t}toLogical(e){return new M(this.x/e,this.y/e)}},Z=(t=>(t[t.Critical=1]="Critical",t[t.Informational=2]="Informational",t))(Z||{});function Je(){return new m(window.__TAURI_METADATA__.__currentWindow.label,{skip:!0})}function Y(){return window.__TAURI_METADATA__.__windows.map(n=>new m(n.label,{skip:!0}))}var Q=["tauri://created","tauri://error"],C=class{constructor(e){this.label=e,this.listeners=Object.create(null)}async listen(e,t){return this._handleTauriEvent(e,t)?Promise.resolve(()=>{let r=this.listeners[e];r.splice(r.indexOf(t),1)}):f(e,this.label,t)}async once(e,t){return this._handleTauriEvent(e,t)?Promise.resolve(()=>{let r=this.listeners[e];r.splice(r.indexOf(t),1)}):P(e,this.label,t)}async emit(e,t){if(Q.includes(e)){for(let r of this.listeners[e]||[])r({event:e,id:-1,windowLabel:this.label,payload:t});return Promise.resolve()}return w(e,this.label,t)}_handleTauriEvent(e,t){return Q.includes(e)?(e in this.listeners?this.listeners[e].push(t):this.listeners[e]=[t],!0):!1}},A=class extends C{async scaleFactor(){return i({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"scaleFactor"}}}})}async innerPosition(){return i({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"innerPosition"}}}}).then(({x:e,y:t})=>new b(e,t))}async outerPosition(){return i({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"outerPosition"}}}}).then(({x:e,y:t})=>new b(e,t))}async innerSize(){return i({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"innerSize"}}}}).then(({width:e,height:t})=>new h(e,t))}async outerSize(){return i({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"outerSize"}}}}).then(({width:e,height:t})=>new h(e,t))}async isFullscreen(){return i({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"isFullscreen"}}}})}async isMinimized(){return i({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"isMinimized"}}}})}async isMaximized(){return i({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"isMaximized"}}}})}async isDecorated(){return i({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"isDecorated"}}}})}async isResizable(){return i({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"isResizable"}}}})}async isVisible(){return i({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"isVisible"}}}})}async title(){return i({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"title"}}}})}async theme(){return i({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"theme"}}}})}async center(){return i({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"center"}}}})}async requestUserAttention(e){let t=null;return e&&(e===1?t={type:"Critical"}:t={type:"Informational"}),i({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"requestUserAttention",payload:t}}}})}async setResizable(e){return i({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setResizable",payload:e}}}})}async setTitle(e){return i({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setTitle",payload:e}}}})}async maximize(){return i({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"maximize"}}}})}async unmaximize(){return i({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"unmaximize"}}}})}async toggleMaximize(){return i({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"toggleMaximize"}}}})}async minimize(){return i({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"minimize"}}}})}async unminimize(){return i({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"unminimize"}}}})}async show(){return i({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"show"}}}})}async hide(){return i({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"hide"}}}})}async close(){return i({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"close"}}}})}async setDecorations(e){return i({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setDecorations",payload:e}}}})}async setShadow(e){return i({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setShadow",payload:e}}}})}async setAlwaysOnTop(e){return i({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setAlwaysOnTop",payload:e}}}})}async setContentProtected(e){return i({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setContentProtected",payload:e}}}})}async setSize(e){if(!e||e.type!=="Logical"&&e.type!=="Physical")throw new Error("the `size` argument must be either a LogicalSize or a PhysicalSize instance");return i({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setSize",payload:{type:e.type,data:{width:e.width,height:e.height}}}}}})}async setMinSize(e){if(e&&e.type!=="Logical"&&e.type!=="Physical")throw new Error("the `size` argument must be either a LogicalSize or a PhysicalSize instance");return i({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setMinSize",payload:e?{type:e.type,data:{width:e.width,height:e.height}}:null}}}})}async setMaxSize(e){if(e&&e.type!=="Logical"&&e.type!=="Physical")throw new Error("the `size` argument must be either a LogicalSize or a PhysicalSize instance");return i({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setMaxSize",payload:e?{type:e.type,data:{width:e.width,height:e.height}}:null}}}})}async setPosition(e){if(!e||e.type!=="Logical"&&e.type!=="Physical")throw new Error("the `position` argument must be either a LogicalPosition or a PhysicalPosition instance");return i({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setPosition",payload:{type:e.type,data:{x:e.x,y:e.y}}}}}})}async setFullscreen(e){return i({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setFullscreen",payload:e}}}})}async setFocus(){return i({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setFocus"}}}})}async setIcon(e){return i({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setIcon",payload:{icon:typeof e=="string"?e:Array.from(e)}}}}})}async setSkipTaskbar(e){return i({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setSkipTaskbar",payload:e}}}})}async setCursorGrab(e){return i({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setCursorGrab",payload:e}}}})}async setCursorVisible(e){return i({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setCursorVisible",payload:e}}}})}async setCursorIcon(e){return i({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setCursorIcon",payload:e}}}})}async setCursorPosition(e){if(!e||e.type!=="Logical"&&e.type!=="Physical")throw new Error("the `position` argument must be either a LogicalPosition or a PhysicalPosition instance");return i({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setCursorPosition",payload:{type:e.type,data:{x:e.x,y:e.y}}}}}})}async setIgnoreCursorEvents(e){return i({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setIgnoreCursorEvents",payload:e}}}})}async startDragging(){return i({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"startDragging"}}}})}async onResized(e){return this.listen("tauri://resize",e)}async onMoved(e){return this.listen("tauri://move",e)}async onCloseRequested(e){return this.listen("tauri://close-requested",t=>{let r=new T(t);Promise.resolve(e(r)).then(()=>{if(!r.isPreventDefault())return this.close()})})}async onFocusChanged(e){let t=await this.listen("tauri://focus",s=>{e({...s,payload:!0})}),r=await this.listen("tauri://blur",s=>{e({...s,payload:!1})});return()=>{t(),r()}}async onScaleChanged(e){return this.listen("tauri://scale-change",e)}async onMenuClicked(e){return this.listen("tauri://menu",e)}async onFileDropEvent(e){let t=await this.listen("tauri://file-drop",l=>{e({...l,payload:{type:"drop",paths:l.payload}})}),r=await this.listen("tauri://file-drop-hover",l=>{e({...l,payload:{type:"hover",paths:l.payload}})}),s=await this.listen("tauri://file-drop-cancelled",l=>{e({...l,payload:{type:"cancel"}})});return()=>{t(),r(),s()}}async onThemeChanged(e){return this.listen("tauri://theme-changed",e)}},T=class{constructor(e){this._preventDefault=!1;this.event=e.event,this.windowLabel=e.windowLabel,this.id=e.id}preventDefault(){this._preventDefault=!0}isPreventDefault(){return this._preventDefault}},m=class extends A{constructor(e,t={}){super(e),t?.skip||i({__tauriModule:"Window",message:{cmd:"createWebview",data:{options:{label:e,...t}}}}).then(async()=>this.emit("tauri://created")).catch(async r=>this.emit("tauri://error",r))}static getByLabel(e){return Y().some(t=>t.label===e)?new m(e,{skip:!0}):null}},H;"__TAURI_METADATA__"in window?H=new m(window.__TAURI_METADATA__.__currentWindow.label,{skip:!0}):(console.warn(`Could not find "window.__TAURI_METADATA__". The "appWindow" value will reference the "main" window label. -Note that this is not an issue if running this frontend on a browser instead of a Tauri window.`),H=new m("main",{skip:!0}));function G(n){return n===null?null:{name:n.name,scaleFactor:n.scaleFactor,position:new b(n.position.x,n.position.y),size:new h(n.size.width,n.size.height)}}async function Xe(){return i({__tauriModule:"Window",message:{cmd:"manage",data:{cmd:{type:"currentMonitor"}}}}).then(G)}async function Be(){return i({__tauriModule:"Window",message:{cmd:"manage",data:{cmd:{type:"primaryMonitor"}}}}).then(G)}async function et(){return i({__tauriModule:"Window",message:{cmd:"manage",data:{cmd:{type:"availableMonitors"}}}}).then(n=>n.map(G))}var $={};c($,{EOL:()=>tt,arch:()=>at,platform:()=>nt,tempdir:()=>st,type:()=>rt,version:()=>it});var tt=_()?`\r +"use strict";var __TAURI_IIFE__=(()=>{var D=Object.defineProperty;var Y=Object.getOwnPropertyDescriptor;var J=Object.getOwnPropertyNames;var X=Object.prototype.hasOwnProperty;var c=(n,e)=>{for(var t in e)D(n,t,{get:e[t],enumerable:!0})},B=(n,e,t,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of J(e))!X.call(n,s)&&s!==t&&D(n,s,{get:()=>e[s],enumerable:!(r=Y(e,s))||r.enumerable});return n};var ee=n=>B(D({},"__esModule",{value:!0}),n);var rt={};c(rt,{app:()=>S,event:()=>k,invoke:()=>it,os:()=>j,path:()=>I,process:()=>R,shell:()=>N,tauri:()=>x,updater:()=>z,window:()=>G});var S={};c(S,{getName:()=>re,getTauriVersion:()=>ae,getVersion:()=>ie,hide:()=>oe,show:()=>se});var x={};c(x,{convertFileSrc:()=>ne,invoke:()=>o,transformCallback:()=>p});function te(){return window.crypto.getRandomValues(new Uint32Array(1))[0]}function p(n,e=!1){let t=te(),r=`_${t}`;return Object.defineProperty(window,r,{value:s=>(e&&Reflect.deleteProperty(window,r),n?.(s)),writable:!1,configurable:!0}),t}async function o(n,e={}){return new Promise((t,r)=>{let s=p(d=>{t(d),Reflect.deleteProperty(window,`_${l}`)},!0),l=p(d=>{r(d),Reflect.deleteProperty(window,`_${s}`)},!0);window.__TAURI_IPC__({cmd:n,callback:s,error:l,...e})})}function ne(n,e="asset"){let t=encodeURIComponent(n);return navigator.userAgent.includes("Windows")?`https://${e}.localhost/${t}`:`${e}://localhost/${t}`}async function i(n){return o("tauri",n)}async function ie(){return i({__tauriModule:"App",message:{cmd:"getAppVersion"}})}async function re(){return i({__tauriModule:"App",message:{cmd:"getAppName"}})}async function ae(){return i({__tauriModule:"App",message:{cmd:"getTauriVersion"}})}async function se(){return i({__tauriModule:"App",message:{cmd:"show"}})}async function oe(){return i({__tauriModule:"App",message:{cmd:"hide"}})}var k={};c(k,{TauriEvent:()=>v,emit:()=>E,listen:()=>L,once:()=>U});async function $(n,e){return i({__tauriModule:"Event",message:{cmd:"unlisten",event:n,eventId:e}})}async function w(n,e,t){await i({__tauriModule:"Event",message:{cmd:"emit",event:n,windowLabel:e,payload:t}})}async function _(n,e,t){return i({__tauriModule:"Event",message:{cmd:"listen",event:n,windowLabel:e,handler:p(t)}}).then(r=>async()=>$(n,r))}async function P(n,e,t){return _(n,e,r=>{t(r),$(n,r.id).catch(()=>{})})}var v=(u=>(u.WINDOW_RESIZED="tauri://resize",u.WINDOW_MOVED="tauri://move",u.WINDOW_CLOSE_REQUESTED="tauri://close-requested",u.WINDOW_CREATED="tauri://window-created",u.WINDOW_DESTROYED="tauri://destroyed",u.WINDOW_FOCUS="tauri://focus",u.WINDOW_BLUR="tauri://blur",u.WINDOW_SCALE_FACTOR_CHANGED="tauri://scale-change",u.WINDOW_THEME_CHANGED="tauri://theme-changed",u.WINDOW_FILE_DROP="tauri://file-drop",u.WINDOW_FILE_DROP_HOVER="tauri://file-drop-hover",u.WINDOW_FILE_DROP_CANCELLED="tauri://file-drop-cancelled",u.MENU="tauri://menu",u.CHECK_UPDATE="tauri://update",u.UPDATE_AVAILABLE="tauri://update-available",u.INSTALL_UPDATE="tauri://update-install",u.STATUS_UPDATE="tauri://update-status",u.DOWNLOAD_PROGRESS="tauri://update-download-progress",u))(v||{});async function L(n,e){return _(n,null,e)}async function U(n,e){return P(n,null,e)}async function E(n,e){return w(n,void 0,e)}var I={};c(I,{BaseDirectory:()=>q,appCacheDir:()=>me,appConfigDir:()=>de,appDataDir:()=>ue,appLocalDataDir:()=>ce,appLogDir:()=>xe,audioDir:()=>pe,basename:()=>Fe,cacheDir:()=>ye,configDir:()=>ge,dataDir:()=>he,delimiter:()=>Le,desktopDir:()=>be,dirname:()=>Re,documentDir:()=>_e,downloadDir:()=>fe,executableDir:()=>we,extname:()=>Ne,fontDir:()=>Pe,homeDir:()=>ve,isAbsolute:()=>ze,join:()=>Ie,localDataDir:()=>Ee,normalize:()=>ke,pictureDir:()=>Oe,publicDir:()=>We,resolve:()=>Ue,resolveResource:()=>Ce,resourceDir:()=>Me,runtimeDir:()=>Ae,sep:()=>Se,templateDir:()=>Te,videoDir:()=>De});function f(){return navigator.appVersion.includes("Win")}var q=(a=>(a[a.Audio=1]="Audio",a[a.Cache=2]="Cache",a[a.Config=3]="Config",a[a.Data=4]="Data",a[a.LocalData=5]="LocalData",a[a.Document=6]="Document",a[a.Download=7]="Download",a[a.Picture=8]="Picture",a[a.Public=9]="Public",a[a.Video=10]="Video",a[a.Resource=11]="Resource",a[a.Temp=12]="Temp",a[a.AppConfig=13]="AppConfig",a[a.AppData=14]="AppData",a[a.AppLocalData=15]="AppLocalData",a[a.AppCache=16]="AppCache",a[a.AppLog=17]="AppLog",a[a.Desktop=18]="Desktop",a[a.Executable=19]="Executable",a[a.Font=20]="Font",a[a.Home=21]="Home",a[a.Runtime=22]="Runtime",a[a.Template=23]="Template",a))(q||{});async function de(){return o("plugin:path|resolve_directory",{directory:13})}async function ue(){return o("plugin:path|resolve_directory",{directory:14})}async function ce(){return o("plugin:path|resolve_directory",{directory:15})}async function me(){return o("plugin:path|resolve_directory",{directory:16})}async function pe(){return o("plugin:path|resolve_directory",{directory:1})}async function ye(){return o("plugin:path|resolve_directory",{directory:2})}async function ge(){return o("plugin:path|resolve_directory",{directory:3})}async function he(){return o("plugin:path|resolve_directory",{directory:4})}async function be(){return o("plugin:path|resolve_directory",{directory:18})}async function _e(){return o("plugin:path|resolve_directory",{directory:6})}async function fe(){return o("plugin:path|resolve_directory",{directory:7})}async function we(){return o("plugin:path|resolve_directory",{directory:19})}async function Pe(){return o("plugin:path|resolve_directory",{directory:20})}async function ve(){return o("plugin:path|resolve_directory",{directory:21})}async function Ee(){return o("plugin:path|resolve_directory",{directory:5})}async function Oe(){return o("plugin:path|resolve_directory",{directory:8})}async function We(){return o("plugin:path|resolve_directory",{directory:9})}async function Me(){return o("plugin:path|resolve_directory",{directory:11})}async function Ce(n){return o("plugin:path|resolve_directory",{directory:11,path:n})}async function Ae(){return o("plugin:path|resolve_directory",{directory:22})}async function Te(){return o("plugin:path|resolve_directory",{directory:23})}async function De(){return o("plugin:path|resolve_directory",{directory:10})}async function xe(){return o("plugin:path|resolve_directory",{directory:17})}var Se=f()?"\\":"/",Le=f()?";":":";async function Ue(...n){return o("plugin:path|resolve",{paths:n})}async function ke(n){return o("plugin:path|normalize",{path:n})}async function Ie(...n){return o("plugin:path|join",{paths:n})}async function Re(n){return o("plugin:path|dirname",{path:n})}async function Ne(n){return o("plugin:path|extname",{path:n})}async function Fe(n,e){return o("plugin:path|basename",{path:n,ext:e})}async function ze(n){return o("plugin:path|isAbsolute",{path:n})}var R={};c(R,{exit:()=>Ve,relaunch:()=>He});async function Ve(n=0){return i({__tauriModule:"Process",message:{cmd:"exit",exitCode:n}})}async function He(){return i({__tauriModule:"Process",message:{cmd:"relaunch"}})}var N={};c(N,{Child:()=>O,Command:()=>g,EventEmitter:()=>y,open:()=>je});async function Ge(n,e,t=[],r){return typeof t=="object"&&Object.freeze(t),i({__tauriModule:"Shell",message:{cmd:"execute",program:e,args:t,options:r,onEventFn:p(n)}})}var y=class{constructor(){this.eventListeners=Object.create(null)}addListener(e,t){return this.on(e,t)}removeListener(e,t){return this.off(e,t)}on(e,t){return e in this.eventListeners?this.eventListeners[e].push(t):this.eventListeners[e]=[t],this}once(e,t){let r=s=>{this.removeListener(e,r),t(s)};return this.addListener(e,r)}off(e,t){return e in this.eventListeners&&(this.eventListeners[e]=this.eventListeners[e].filter(r=>r!==t)),this}removeAllListeners(e){return e?delete this.eventListeners[e]:this.eventListeners=Object.create(null),this}emit(e,t){if(e in this.eventListeners){let r=this.eventListeners[e];for(let s of r)s(t);return!0}return!1}listenerCount(e){return e in this.eventListeners?this.eventListeners[e].length:0}prependListener(e,t){return e in this.eventListeners?this.eventListeners[e].unshift(t):this.eventListeners[e]=[t],this}prependOnceListener(e,t){let r=s=>{this.removeListener(e,r),t(s)};return this.prependListener(e,r)}},O=class{constructor(e){this.pid=e}async write(e){return i({__tauriModule:"Shell",message:{cmd:"stdinWrite",pid:this.pid,buffer:typeof e=="string"?e:Array.from(e)}})}async kill(){return i({__tauriModule:"Shell",message:{cmd:"killChild",pid:this.pid}})}},g=class extends y{constructor(t,r=[],s){super();this.stdout=new y;this.stderr=new y;this.program=t,this.args=typeof r=="string"?[r]:r,this.options=s??{}}static create(t,r=[],s){return new g(t,r,s)}static sidecar(t,r=[],s){let l=new g(t,r,s);return l.options.sidecar=!0,l}async spawn(){return Ge(t=>{switch(t.event){case"Error":this.emit("error",t.payload);break;case"Terminated":this.emit("close",t.payload);break;case"Stdout":this.stdout.emit("data",t.payload);break;case"Stderr":this.stderr.emit("data",t.payload);break}},this.program,this.args,this.options).then(t=>new O(t))}async execute(){return new Promise((t,r)=>{this.on("error",r);let s=[],l=[];this.stdout.on("data",d=>{s.push(d)}),this.stderr.on("data",d=>{l.push(d)}),this.on("close",d=>{t({code:d.code,signal:d.signal,stdout:this.collectOutput(s),stderr:this.collectOutput(l)})}),this.spawn().catch(r)})}collectOutput(t){return this.options.encoding==="raw"?t.reduce((r,s)=>new Uint8Array([...r,...s,10]),new Uint8Array):t.join(` +`)}};async function je(n,e){return i({__tauriModule:"Shell",message:{cmd:"open",path:n,with:e}})}var z={};c(z,{checkUpdate:()=>qe,installUpdate:()=>$e,onUpdaterEvent:()=>F});async function F(n){return L("tauri://update-status",e=>{n(e?.payload)})}async function $e(){let n;function e(){n&&n(),n=void 0}return new Promise((t,r)=>{function s(l){if(l.error){e(),r(l.error);return}l.status==="DONE"&&(e(),t())}F(s).then(l=>{n=l}).catch(l=>{throw e(),l}),E("tauri://update-install").catch(l=>{throw e(),l})})}async function qe(){let n;function e(){n&&n(),n=void 0}return new Promise((t,r)=>{function s(d){e(),t({manifest:d,shouldUpdate:!0})}function l(d){if(d.error){e(),r(d.error);return}d.status==="UPTODATE"&&(e(),t({shouldUpdate:!1}))}U("tauri://update-available",d=>{s(d?.payload)}).catch(d=>{throw e(),d}),F(l).then(d=>{n=d}).catch(d=>{throw e(),d}),E("tauri://update").catch(d=>{throw e(),d})})}var G={};c(G,{CloseRequestedEvent:()=>T,LogicalPosition:()=>M,LogicalSize:()=>W,PhysicalPosition:()=>b,PhysicalSize:()=>h,UserAttentionType:()=>Q,WebviewWindow:()=>m,WebviewWindowHandle:()=>C,WindowManager:()=>A,appWindow:()=>V,availableMonitors:()=>Ye,currentMonitor:()=>Qe,getAll:()=>Z,getCurrent:()=>Ke,primaryMonitor:()=>Ze});var W=class{constructor(e,t){this.type="Logical";this.width=e,this.height=t}},h=class{constructor(e,t){this.type="Physical";this.width=e,this.height=t}toLogical(e){return new W(this.width/e,this.height/e)}},M=class{constructor(e,t){this.type="Logical";this.x=e,this.y=t}},b=class{constructor(e,t){this.type="Physical";this.x=e,this.y=t}toLogical(e){return new M(this.x/e,this.y/e)}},Q=(t=>(t[t.Critical=1]="Critical",t[t.Informational=2]="Informational",t))(Q||{});function Ke(){return new m(window.__TAURI_METADATA__.__currentWindow.label,{skip:!0})}function Z(){return window.__TAURI_METADATA__.__windows.map(n=>new m(n.label,{skip:!0}))}var K=["tauri://created","tauri://error"],C=class{constructor(e){this.label=e,this.listeners=Object.create(null)}async listen(e,t){return this._handleTauriEvent(e,t)?Promise.resolve(()=>{let r=this.listeners[e];r.splice(r.indexOf(t),1)}):_(e,this.label,t)}async once(e,t){return this._handleTauriEvent(e,t)?Promise.resolve(()=>{let r=this.listeners[e];r.splice(r.indexOf(t),1)}):P(e,this.label,t)}async emit(e,t){if(K.includes(e)){for(let r of this.listeners[e]||[])r({event:e,id:-1,windowLabel:this.label,payload:t});return Promise.resolve()}return w(e,this.label,t)}_handleTauriEvent(e,t){return K.includes(e)?(e in this.listeners?this.listeners[e].push(t):this.listeners[e]=[t],!0):!1}},A=class extends C{async scaleFactor(){return i({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"scaleFactor"}}}})}async innerPosition(){return i({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"innerPosition"}}}}).then(({x:e,y:t})=>new b(e,t))}async outerPosition(){return i({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"outerPosition"}}}}).then(({x:e,y:t})=>new b(e,t))}async innerSize(){return i({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"innerSize"}}}}).then(({width:e,height:t})=>new h(e,t))}async outerSize(){return i({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"outerSize"}}}}).then(({width:e,height:t})=>new h(e,t))}async isFullscreen(){return i({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"isFullscreen"}}}})}async isMinimized(){return i({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"isMinimized"}}}})}async isMaximized(){return i({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"isMaximized"}}}})}async isDecorated(){return i({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"isDecorated"}}}})}async isResizable(){return i({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"isResizable"}}}})}async isVisible(){return i({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"isVisible"}}}})}async title(){return i({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"title"}}}})}async theme(){return i({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"theme"}}}})}async center(){return i({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"center"}}}})}async requestUserAttention(e){let t=null;return e&&(e===1?t={type:"Critical"}:t={type:"Informational"}),i({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"requestUserAttention",payload:t}}}})}async setResizable(e){return i({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setResizable",payload:e}}}})}async setTitle(e){return i({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setTitle",payload:e}}}})}async maximize(){return i({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"maximize"}}}})}async unmaximize(){return i({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"unmaximize"}}}})}async toggleMaximize(){return i({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"toggleMaximize"}}}})}async minimize(){return i({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"minimize"}}}})}async unminimize(){return i({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"unminimize"}}}})}async show(){return i({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"show"}}}})}async hide(){return i({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"hide"}}}})}async close(){return i({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"close"}}}})}async setDecorations(e){return i({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setDecorations",payload:e}}}})}async setShadow(e){return i({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setShadow",payload:e}}}})}async setAlwaysOnTop(e){return i({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setAlwaysOnTop",payload:e}}}})}async setContentProtected(e){return i({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setContentProtected",payload:e}}}})}async setSize(e){if(!e||e.type!=="Logical"&&e.type!=="Physical")throw new Error("the `size` argument must be either a LogicalSize or a PhysicalSize instance");return i({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setSize",payload:{type:e.type,data:{width:e.width,height:e.height}}}}}})}async setMinSize(e){if(e&&e.type!=="Logical"&&e.type!=="Physical")throw new Error("the `size` argument must be either a LogicalSize or a PhysicalSize instance");return i({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setMinSize",payload:e?{type:e.type,data:{width:e.width,height:e.height}}:null}}}})}async setMaxSize(e){if(e&&e.type!=="Logical"&&e.type!=="Physical")throw new Error("the `size` argument must be either a LogicalSize or a PhysicalSize instance");return i({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setMaxSize",payload:e?{type:e.type,data:{width:e.width,height:e.height}}:null}}}})}async setPosition(e){if(!e||e.type!=="Logical"&&e.type!=="Physical")throw new Error("the `position` argument must be either a LogicalPosition or a PhysicalPosition instance");return i({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setPosition",payload:{type:e.type,data:{x:e.x,y:e.y}}}}}})}async setFullscreen(e){return i({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setFullscreen",payload:e}}}})}async setFocus(){return i({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setFocus"}}}})}async setIcon(e){return i({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setIcon",payload:{icon:typeof e=="string"?e:Array.from(e)}}}}})}async setSkipTaskbar(e){return i({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setSkipTaskbar",payload:e}}}})}async setCursorGrab(e){return i({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setCursorGrab",payload:e}}}})}async setCursorVisible(e){return i({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setCursorVisible",payload:e}}}})}async setCursorIcon(e){return i({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setCursorIcon",payload:e}}}})}async setCursorPosition(e){if(!e||e.type!=="Logical"&&e.type!=="Physical")throw new Error("the `position` argument must be either a LogicalPosition or a PhysicalPosition instance");return i({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setCursorPosition",payload:{type:e.type,data:{x:e.x,y:e.y}}}}}})}async setIgnoreCursorEvents(e){return i({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setIgnoreCursorEvents",payload:e}}}})}async startDragging(){return i({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"startDragging"}}}})}async onResized(e){return this.listen("tauri://resize",e)}async onMoved(e){return this.listen("tauri://move",e)}async onCloseRequested(e){return this.listen("tauri://close-requested",t=>{let r=new T(t);Promise.resolve(e(r)).then(()=>{if(!r.isPreventDefault())return this.close()})})}async onFocusChanged(e){let t=await this.listen("tauri://focus",s=>{e({...s,payload:!0})}),r=await this.listen("tauri://blur",s=>{e({...s,payload:!1})});return()=>{t(),r()}}async onScaleChanged(e){return this.listen("tauri://scale-change",e)}async onMenuClicked(e){return this.listen("tauri://menu",e)}async onFileDropEvent(e){let t=await this.listen("tauri://file-drop",l=>{e({...l,payload:{type:"drop",paths:l.payload}})}),r=await this.listen("tauri://file-drop-hover",l=>{e({...l,payload:{type:"hover",paths:l.payload}})}),s=await this.listen("tauri://file-drop-cancelled",l=>{e({...l,payload:{type:"cancel"}})});return()=>{t(),r(),s()}}async onThemeChanged(e){return this.listen("tauri://theme-changed",e)}},T=class{constructor(e){this._preventDefault=!1;this.event=e.event,this.windowLabel=e.windowLabel,this.id=e.id}preventDefault(){this._preventDefault=!0}isPreventDefault(){return this._preventDefault}},m=class extends A{constructor(e,t={}){super(e),t?.skip||i({__tauriModule:"Window",message:{cmd:"createWebview",data:{options:{label:e,...t}}}}).then(async()=>this.emit("tauri://created")).catch(async r=>this.emit("tauri://error",r))}static getByLabel(e){return Z().some(t=>t.label===e)?new m(e,{skip:!0}):null}},V;"__TAURI_METADATA__"in window?V=new m(window.__TAURI_METADATA__.__currentWindow.label,{skip:!0}):(console.warn(`Could not find "window.__TAURI_METADATA__". The "appWindow" value will reference the "main" window label. +Note that this is not an issue if running this frontend on a browser instead of a Tauri window.`),V=new m("main",{skip:!0}));function H(n){return n===null?null:{name:n.name,scaleFactor:n.scaleFactor,position:new b(n.position.x,n.position.y),size:new h(n.size.width,n.size.height)}}async function Qe(){return i({__tauriModule:"Window",message:{cmd:"manage",data:{cmd:{type:"currentMonitor"}}}}).then(H)}async function Ze(){return i({__tauriModule:"Window",message:{cmd:"manage",data:{cmd:{type:"primaryMonitor"}}}}).then(H)}async function Ye(){return i({__tauriModule:"Window",message:{cmd:"manage",data:{cmd:{type:"availableMonitors"}}}}).then(n=>n.map(H))}var j={};c(j,{EOL:()=>Je,arch:()=>tt,platform:()=>Xe,tempdir:()=>nt,type:()=>et,version:()=>Be});var Je=f()?`\r `:` -`;async function nt(){return i({__tauriModule:"Os",message:{cmd:"platform"}})}async function it(){return i({__tauriModule:"Os",message:{cmd:"version"}})}async function rt(){return i({__tauriModule:"Os",message:{cmd:"osType"}})}async function at(){return i({__tauriModule:"Os",message:{cmd:"arch"}})}async function st(){return i({__tauriModule:"Os",message:{cmd:"tempdir"}})}var ot=o;return te(lt);})(); +`;async function Xe(){return i({__tauriModule:"Os",message:{cmd:"platform"}})}async function Be(){return i({__tauriModule:"Os",message:{cmd:"version"}})}async function et(){return i({__tauriModule:"Os",message:{cmd:"osType"}})}async function tt(){return i({__tauriModule:"Os",message:{cmd:"arch"}})}async function nt(){return i({__tauriModule:"Os",message:{cmd:"tempdir"}})}var it=o;return ee(rt);})(); window.__TAURI__ = __TAURI_IIFE__ diff --git a/core/tauri/scripts/core.js b/core/tauri/scripts/core.js index cf77bed314b..0f539d868f5 100644 --- a/core/tauri/scripts/core.js +++ b/core/tauri/scripts/core.js @@ -154,90 +154,4 @@ }) } }) - - let permissionSettable = false - let permissionValue = 'default' - - function isPermissionGranted() { - if (window.Notification.permission !== 'default') { - return Promise.resolve(window.Notification.permission === 'granted') - } - return window.__TAURI_INVOKE__('tauri', { - __tauriModule: 'Notification', - message: { - cmd: 'isNotificationPermissionGranted' - } - }) - } - - function setNotificationPermission(value) { - permissionSettable = true - window.Notification.permission = value - permissionSettable = false - } - - function requestPermission() { - return window - .__TAURI_INVOKE__('tauri', { - __tauriModule: 'Notification', - message: { - cmd: 'requestNotificationPermission' - } - }) - .then(function (permission) { - setNotificationPermission(permission) - return permission - }) - } - - function sendNotification(options) { - if (typeof options === 'object') { - Object.freeze(options) - } - - return window.__TAURI_INVOKE__('tauri', { - __tauriModule: 'Notification', - message: { - cmd: 'notification', - options: - typeof options === 'string' - ? { - title: options - } - : options - } - }) - } - - window.Notification = function (title, options) { - var opts = options || {} - sendNotification( - Object.assign(opts, { - title: title - }) - ) - } - - window.Notification.requestPermission = requestPermission - - Object.defineProperty(window.Notification, 'permission', { - enumerable: true, - get: function () { - return permissionValue - }, - set: function (v) { - if (!permissionSettable) { - throw new Error('Readonly property') - } - permissionValue = v - } - }) - - isPermissionGranted().then(function (response) { - if (response === null) { - setNotificationPermission('default') - } else { - setNotificationPermission(response ? 'granted' : 'denied') - } - }) })() diff --git a/core/tauri/src/api/error.rs b/core/tauri/src/api/error.rs index c1db7a094ab..c51de40a78e 100644 --- a/core/tauri/src/api/error.rs +++ b/core/tauri/src/api/error.rs @@ -56,10 +56,6 @@ pub enum Error { #[cfg(feature = "fs-extract-api")] #[error("Failed to extract: {0}")] Extract(String), - /// Notification error. - #[cfg(notification_all)] - #[error(transparent)] - Notification(#[from] notify_rust::error::Error), /// Url error. #[error(transparent)] Url(#[from] url::ParseError), diff --git a/core/tauri/src/api/mod.rs b/core/tauri/src/api/mod.rs index f9333ca8c4a..b7eb7d6963f 100644 --- a/core/tauri/src/api/mod.rs +++ b/core/tauri/src/api/mod.rs @@ -13,10 +13,6 @@ pub mod process; pub mod shell; pub mod version; -#[cfg(all(desktop, feature = "notification"))] -#[cfg_attr(doc_cfg, doc(cfg(all(desktop, feature = "notification"))))] -pub mod notification; - mod error; /// The error type of Tauri API module. diff --git a/core/tauri/src/api/notification.rs b/core/tauri/src/api/notification.rs deleted file mode 100644 index 8110f52ddf6..00000000000 --- a/core/tauri/src/api/notification.rs +++ /dev/null @@ -1,207 +0,0 @@ -// Copyright 2019-2023 Tauri Programme within The Commons Conservancy -// SPDX-License-Identifier: Apache-2.0 -// SPDX-License-Identifier: MIT - -//! Types and functions related to desktop notifications. - -#[cfg(windows)] -use std::path::MAIN_SEPARATOR as SEP; - -/// The desktop notification definition. -/// -/// Allows you to construct a Notification data and send it. -/// -/// # Examples -/// ```rust,no_run -/// use tauri::api::notification::Notification; -/// // first we build the application to access the Tauri configuration -/// let app = tauri::Builder::default() -/// // on an actual app, remove the string argument -/// .build(tauri::generate_context!("test/fixture/src-tauri/tauri.conf.json")) -/// .expect("error while building tauri application"); -/// -/// // shows a notification with the given title and body -/// Notification::new(&app.config().tauri.bundle.identifier) -/// .title("New message") -/// .body("You've got a new message.") -/// .show(); -/// -/// // run the app -/// app.run(|_app_handle, _event| {}); -/// ``` -#[allow(dead_code)] -#[derive(Debug, Default)] -pub struct Notification { - /// The notification body. - body: Option, - /// The notification title. - title: Option, - /// The notification icon. - icon: Option, - /// The notification identifier - identifier: String, -} - -impl Notification { - /// Initializes a instance of a Notification. - pub fn new(identifier: impl Into) -> Self { - Self { - identifier: identifier.into(), - ..Default::default() - } - } - - /// Sets the notification body. - #[must_use] - pub fn body(mut self, body: impl Into) -> Self { - self.body = Some(body.into()); - self - } - - /// Sets the notification title. - #[must_use] - pub fn title(mut self, title: impl Into) -> Self { - self.title = Some(title.into()); - self - } - - /// Sets the notification icon. - #[must_use] - pub fn icon(mut self, icon: impl Into) -> Self { - self.icon = Some(icon.into()); - self - } - - /// Shows the notification. - /// - /// # Examples - /// - /// ```no_run - /// use tauri::api::notification::Notification; - /// - /// // on an actual app, remove the string argument - /// let context = tauri::generate_context!("test/fixture/src-tauri/tauri.conf.json"); - /// Notification::new(&context.config().tauri.bundle.identifier) - /// .title("Tauri") - /// .body("Tauri is awesome!") - /// .show() - /// .unwrap(); - /// ``` - /// - /// ## Platform-specific - /// - /// - **Windows**: Not supported on Windows 7. If your app targets it, enable the `windows7-compat` feature and use [`Self::notify`]. - #[cfg_attr( - all(not(doc_cfg), feature = "windows7-compat"), - deprecated = "This function does not work on Windows 7. Use `Self::notify` instead." - )] - pub fn show(self) -> crate::api::Result<()> { - let mut notification = notify_rust::Notification::new(); - if let Some(body) = self.body { - notification.body(&body); - } - if let Some(title) = self.title { - notification.summary(&title); - } - if let Some(icon) = self.icon { - notification.icon(&icon); - } else { - notification.auto_icon(); - } - #[cfg(windows)] - { - let exe = tauri_utils::platform::current_exe()?; - let exe_dir = exe.parent().expect("failed to get exe directory"); - let curr_dir = exe_dir.display().to_string(); - // set the notification's System.AppUserModel.ID only when running the installed app - if !(curr_dir.ends_with(format!("{SEP}target{SEP}debug").as_str()) - || curr_dir.ends_with(format!("{SEP}target{SEP}release").as_str())) - { - notification.app_id(&self.identifier); - } - } - #[cfg(target_os = "macos")] - { - let _ = notify_rust::set_application(if cfg!(feature = "custom-protocol") { - &self.identifier - } else { - "com.apple.Terminal" - }); - } - - crate::async_runtime::spawn(async move { - let _ = notification.show(); - }); - - Ok(()) - } - - /// Shows the notification. This API is similar to [`Self::show`], but it also works on Windows 7. - /// - /// # Examples - /// - /// ```no_run - /// use tauri::api::notification::Notification; - /// - /// // on an actual app, remove the string argument - /// let context = tauri::generate_context!("test/fixture/src-tauri/tauri.conf.json"); - /// let identifier = context.config().tauri.bundle.identifier.clone(); - /// - /// tauri::Builder::default() - /// .setup(move |app| { - /// Notification::new(&identifier) - /// .title("Tauri") - /// .body("Tauri is awesome!") - /// .notify(&app.handle()) - /// .unwrap(); - /// Ok(()) - /// }) - /// .run(context) - /// .expect("error while running tauri application"); - /// ``` - #[cfg(feature = "windows7-compat")] - #[cfg_attr(doc_cfg, doc(cfg(feature = "windows7-compat")))] - #[allow(unused_variables)] - pub fn notify(self, app: &crate::AppHandle) -> crate::api::Result<()> { - #[cfg(windows)] - { - if crate::utils::platform::is_windows_7() { - self.notify_win7(app) - } else { - #[allow(deprecated)] - self.show() - } - } - #[cfg(not(windows))] - { - #[allow(deprecated)] - self.show() - } - } - - #[cfg(all(windows, feature = "windows7-compat"))] - fn notify_win7(self, app: &crate::AppHandle) -> crate::api::Result<()> { - let app = app.clone(); - let default_window_icon = app.manager.inner.default_window_icon.clone(); - let _ = app.run_on_main_thread(move || { - let mut notification = win7_notifications::Notification::new(); - if let Some(body) = self.body { - notification.body(&body); - } - if let Some(title) = self.title { - notification.summary(&title); - } - if let Some(crate::Icon::Rgba { - rgba, - width, - height, - }) = default_window_icon - { - notification.icon(rgba, width, height); - } - let _ = notification.show(); - }); - - Ok(()) - } -} diff --git a/core/tauri/src/endpoints.rs b/core/tauri/src/endpoints.rs index 5440ee02722..8da90c66279 100644 --- a/core/tauri/src/endpoints.rs +++ b/core/tauri/src/endpoints.rs @@ -14,7 +14,6 @@ use std::sync::Arc; mod app; mod event; -mod notification; #[cfg(os_any)] mod operating_system; #[cfg(process_any)] @@ -66,7 +65,6 @@ enum Module { #[cfg(shell_any)] Shell(shell::Cmd), Event(event::Cmd), - Notification(notification::Cmd), } impl Module { @@ -123,12 +121,6 @@ impl Module { .and_then(|r| r.json) .map_err(InvokeError::from_anyhow) }), - Self::Notification(cmd) => resolver.respond_async(async move { - cmd - .run(context) - .and_then(|r| r.json) - .map_err(InvokeError::from_anyhow) - }), } } } diff --git a/core/tauri/src/endpoints/notification.rs b/core/tauri/src/endpoints/notification.rs deleted file mode 100644 index 2399269a704..00000000000 --- a/core/tauri/src/endpoints/notification.rs +++ /dev/null @@ -1,127 +0,0 @@ -// Copyright 2019-2023 Tauri Programme within The Commons Conservancy -// SPDX-License-Identifier: Apache-2.0 -// SPDX-License-Identifier: MIT - -#![allow(unused_imports)] - -use super::InvokeContext; -use crate::Runtime; -use serde::Deserialize; -use tauri_macros::{command_enum, module_command_handler, CommandModule}; - -#[cfg(notification_all)] -use crate::{api::notification::Notification, Env, Manager}; - -// `Granted` response from `request_permission`. Matches the Web API return value. -const PERMISSION_GRANTED: &str = "granted"; -// `Denied` response from `request_permission`. Matches the Web API return value. -const PERMISSION_DENIED: &str = "denied"; - -/// The options for the notification API. -#[derive(Debug, Clone, Deserialize)] -pub struct NotificationOptions { - /// The notification title. - pub title: String, - /// The notification body. - pub body: Option, - /// The notification icon. - pub icon: Option, -} - -/// The API descriptor. -#[command_enum] -#[derive(Deserialize, CommandModule)] -#[serde(tag = "cmd", rename_all = "camelCase")] -pub enum Cmd { - /// The show notification API. - #[cmd(notification_all, "notification > all")] - Notification { options: NotificationOptions }, - /// The request notification permission API. - RequestNotificationPermission, - /// The notification permission check API. - IsNotificationPermissionGranted, -} - -impl Cmd { - #[module_command_handler(notification_all)] - fn notification( - context: InvokeContext, - options: NotificationOptions, - ) -> super::Result<()> { - let mut notification = - Notification::new(context.config.tauri.bundle.identifier.clone()).title(options.title); - if let Some(body) = options.body { - notification = notification.body(body); - } - if let Some(icon) = options.icon { - notification = notification.icon(icon); - } - #[cfg(feature = "windows7-compat")] - { - notification.notify(&context.window.app_handle)?; - } - #[cfg(not(feature = "windows7-compat"))] - notification.show()?; - Ok(()) - } - - fn request_notification_permission( - _context: InvokeContext, - ) -> super::Result<&'static str> { - Ok(if cfg!(notification_all) { - PERMISSION_GRANTED - } else { - PERMISSION_DENIED - }) - } - - fn is_notification_permission_granted( - _context: InvokeContext, - ) -> super::Result { - Ok(cfg!(notification_all)) - } -} - -#[cfg(test)] -mod tests { - use super::NotificationOptions; - - use quickcheck::{Arbitrary, Gen}; - - impl Arbitrary for NotificationOptions { - fn arbitrary(g: &mut Gen) -> Self { - Self { - title: String::arbitrary(g), - body: Option::arbitrary(g), - icon: Option::arbitrary(g), - } - } - } - - #[cfg(not(notification_all))] - #[test] - fn request_notification_permission() { - assert_eq!( - super::Cmd::request_notification_permission(crate::test::mock_invoke_context()).unwrap(), - if cfg!(notification_all) { - super::PERMISSION_GRANTED - } else { - super::PERMISSION_DENIED - } - ) - } - - #[cfg(not(notification_all))] - #[test] - fn is_notification_permission_granted() { - let expected = cfg!(notification_all); - assert_eq!( - super::Cmd::is_notification_permission_granted(crate::test::mock_invoke_context()).unwrap(), - expected, - ); - } - - #[tauri_macros::module_command_test(notification_all, "notification > all")] - #[quickcheck_macros::quickcheck] - fn notification(_options: NotificationOptions) {} -} diff --git a/core/tauri/src/error.rs b/core/tauri/src/error.rs index 9e2e7173942..eaaa45fd1e6 100644 --- a/core/tauri/src/error.rs +++ b/core/tauri/src/error.rs @@ -92,9 +92,6 @@ pub enum Error { /// Task join error. #[error(transparent)] JoinError(#[from] tokio::task::JoinError), - /// The user did not allow sending notifications. - #[error("sending notification was not allowed by the user")] - NotificationNotAllowed, /// Sidecar not allowed by the configuration. #[error("sidecar not configured under `tauri.conf.json > tauri > bundle > externalBin`: {0}")] SidecarNotAllowed(PathBuf), diff --git a/core/tauri/src/lib.rs b/core/tauri/src/lib.rs index ddb97afe53b..ed7af0926a0 100644 --- a/core/tauri/src/lib.rs +++ b/core/tauri/src/lib.rs @@ -27,11 +27,9 @@ //! - **process-command-api**: Enables the [`api::process::Command`] APIs. //! - **process-relaunch-dangerous-allow-symlink-macos**: Allows the [`api::process::current_binary`] function to allow symlinks on macOS (this is dangerous, see the Security section in the documentation website). //! - **dialog**: Enables the [`api::dialog`] module. -//! - **notification**: Enables the [`api::notification`] module. //! - **fs-extract-api**: Enabled the `tauri::api::file::Extract` API. //! - **system-tray**: Enables application system tray API. Enabled by default if the `systemTray` config is defined on the `tauri.conf.json` file. //! - **macos-private-api**: Enables features only available in **macOS**'s private APIs, currently the `transparent` window functionality and the `fullScreenEnabled` preference setting to `true`. Enabled by default if the `tauri > macosPrivateApi` config flag is set to `true` on the `tauri.conf.json` file. -//! - **windows7-compat**: Enables compatibility with Windows 7 for the notification API. //! - **window-data-url**: Enables usage of data URLs on the webview. //! - **compression** *(enabled by default): Enables asset compression. You should only disable this if you want faster compile times in release builds - it produces larger binaries. //! - **config-json5**: Adds support to JSON5 format for `tauri.conf.json`. diff --git a/core/tauri/src/updater/mod.rs b/core/tauri/src/updater/mod.rs index 05ffc9f133c..9a89ff034c5 100644 --- a/core/tauri/src/updater/mod.rs +++ b/core/tauri/src/updater/mod.rs @@ -70,15 +70,6 @@ pub type Result = std::result::Result; use crate::{runtime::EventLoopProxy, AppHandle, EventLoopMessage, Manager, Runtime, UpdaterEvent}; -#[cfg(mobile)] -fn ask( - _parent_window: Option<&crate::Window>, - _title: impl AsRef, - _message: impl AsRef, -) -> bool { - true -} - /// Check for new updates pub const EVENT_CHECK_UPDATE: &str = "tauri://update"; /// New update available diff --git a/examples/api/dist/assets/index.css b/examples/api/dist/assets/index.css index c4527ce9d18..bc73b30c42b 100644 --- a/examples/api/dist/assets/index.css +++ b/examples/api/dist/assets/index.css @@ -1 +1 @@ -*,::before,::after{--un-rotate:0;--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-scale-x:1;--un-scale-y:1;--un-scale-z:1;--un-skew-x:0;--un-skew-y:0;--un-translate-x:0;--un-translate-y:0;--un-translate-z:0;--un-pan-x:var(--un-empty,/*!*/ /*!*/);--un-pan-y:var(--un-empty,/*!*/ /*!*/);--un-pinch-zoom:var(--un-empty,/*!*/ /*!*/);--un-scroll-snap-strictness:proximity;--un-ordinal:var(--un-empty,/*!*/ /*!*/);--un-slashed-zero:var(--un-empty,/*!*/ /*!*/);--un-numeric-figure:var(--un-empty,/*!*/ /*!*/);--un-numeric-spacing:var(--un-empty,/*!*/ /*!*/);--un-numeric-fraction:var(--un-empty,/*!*/ /*!*/);--un-border-spacing-x:0;--un-border-spacing-y:0;--un-ring-offset-shadow:0 0 #0000;--un-ring-shadow:0 0 #0000;--un-shadow-inset:var(--un-empty,/*!*/ /*!*/);--un-shadow:0 0 #0000;--un-ring-inset:var(--un-empty,/*!*/ /*!*/);--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:rgba(147,197,253,0.5);--un-blur:var(--un-empty,/*!*/ /*!*/);--un-brightness:var(--un-empty,/*!*/ /*!*/);--un-contrast:var(--un-empty,/*!*/ /*!*/);--un-drop-shadow:var(--un-empty,/*!*/ /*!*/);--un-grayscale:var(--un-empty,/*!*/ /*!*/);--un-hue-rotate:var(--un-empty,/*!*/ /*!*/);--un-invert:var(--un-empty,/*!*/ /*!*/);--un-saturate:var(--un-empty,/*!*/ /*!*/);--un-sepia:var(--un-empty,/*!*/ /*!*/);--un-backdrop-blur:var(--un-empty,/*!*/ /*!*/);--un-backdrop-brightness:var(--un-empty,/*!*/ /*!*/);--un-backdrop-contrast:var(--un-empty,/*!*/ /*!*/);--un-backdrop-grayscale:var(--un-empty,/*!*/ /*!*/);--un-backdrop-hue-rotate:var(--un-empty,/*!*/ /*!*/);--un-backdrop-invert:var(--un-empty,/*!*/ /*!*/);--un-backdrop-opacity:var(--un-empty,/*!*/ /*!*/);--un-backdrop-saturate:var(--un-empty,/*!*/ /*!*/);--un-backdrop-sepia:var(--un-empty,/*!*/ /*!*/);}@font-face { font-family: 'Fira Code'; font-style: normal; font-weight: 400; font-display: swap; src: url(https://fonts.gstatic.com/s/firacode/v21/uU9eCBsR6Z2vfE9aq3bL0fxyUs4tcw4W_D1sFVc.ttf) format('truetype');}@font-face { font-family: 'Fira Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url(https://fonts.gstatic.com/s/firamono/v14/N0bX2SlFPv1weGeLZDtQIQ.ttf) format('truetype');}@font-face { font-family: 'Fira Mono'; font-style: normal; font-weight: 700; font-display: swap; src: url(https://fonts.gstatic.com/s/firamono/v14/N0bS2SlFPv1weGeLZDtondv3mQ.ttf) format('truetype');}@font-face { font-family: 'Rubik'; font-style: normal; font-weight: 400; font-display: swap; src: url(https://fonts.gstatic.com/s/rubik/v26/iJWZBXyIfDnIV5PNhY1KTN7Z-Yh-B4i1UA.ttf) format('truetype');}.i-codicon-bell-dot{--un-icon:url("data:image/svg+xml;utf8,%3Csvg preserveAspectRatio='xMidYMid meet' viewBox='0 0 16 16' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cg fill='currentColor'%3E%3Cpath fill-rule='evenodd' d='M12.994 7.875A4.008 4.008 0 0 1 12 8h-.01v.217c0 .909.143 1.818.442 2.691l.371 1.113h-9.63v-.012l.37-1.113a8.633 8.633 0 0 0 .443-2.691V6.004c0-.563.12-1.113.347-1.616c.227-.514.55-.969.969-1.34c.419-.382.91-.67 1.436-.837c.538-.18 1.1-.24 1.65-.18l.12.018a4 4 0 0 1 .673-.887a5.15 5.15 0 0 0-.697-.135c-.694-.072-1.4 0-2.07.227c-.67.215-1.28.574-1.794 1.053a4.923 4.923 0 0 0-1.208 1.675a5.067 5.067 0 0 0-.431 2.022v2.2a7.61 7.61 0 0 1-.383 2.37L2 12.343l.479.658h3.505c0 .526.215 1.04.586 1.412c.37.37.885.586 1.412.586c.526 0 1.04-.215 1.411-.586s.587-.886.587-1.412h3.505l.478-.658l-.586-1.77a7.63 7.63 0 0 1-.383-2.381v-.318ZM7.982 14.02a.997.997 0 0 0 .706-.3a.939.939 0 0 0 .287-.705H6.977c0 .263.107.514.299.706a.999.999 0 0 0 .706.299Z' clip-rule='evenodd'/%3E%3Cpath d='M12 7a3 3 0 1 0 0-6a3 3 0 0 0 0 6Z'/%3E%3C/g%3E%3C/svg%3E");mask:var(--un-icon) no-repeat;mask-size:100% 100%;-webkit-mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;background-color:currentColor;width:1em;height:1em;}.i-codicon-chrome-maximize{--un-icon:url("data:image/svg+xml;utf8,%3Csvg preserveAspectRatio='xMidYMid meet' viewBox='0 0 16 16' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M3 3v10h10V3H3zm9 9H4V4h8v8z'/%3E%3C/svg%3E");mask:var(--un-icon) no-repeat;mask-size:100% 100%;-webkit-mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;background-color:currentColor;width:1em;height:1em;}.i-codicon-chrome-minimize{--un-icon:url("data:image/svg+xml;utf8,%3Csvg preserveAspectRatio='xMidYMid meet' viewBox='0 0 16 16' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M14 8v1H3V8h11z'/%3E%3C/svg%3E");mask:var(--un-icon) no-repeat;mask-size:100% 100%;-webkit-mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;background-color:currentColor;width:1em;height:1em;}.i-codicon-chrome-restore{--un-icon:url("data:image/svg+xml;utf8,%3Csvg preserveAspectRatio='xMidYMid meet' viewBox='0 0 16 16' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cg fill='currentColor'%3E%3Cpath d='M3 5v9h9V5H3zm8 8H4V6h7v7z'/%3E%3Cpath fill-rule='evenodd' d='M5 5h1V4h7v7h-1v1h2V3H5v2z' clip-rule='evenodd'/%3E%3C/g%3E%3C/svg%3E");mask:var(--un-icon) no-repeat;mask-size:100% 100%;-webkit-mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;background-color:currentColor;width:1em;height:1em;}.i-codicon-clear-all{--un-icon:url("data:image/svg+xml;utf8,%3Csvg preserveAspectRatio='xMidYMid meet' viewBox='0 0 16 16' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='m10 12.6l.7.7l1.6-1.6l1.6 1.6l.8-.7L13 11l1.7-1.6l-.8-.8l-1.6 1.7l-1.6-1.7l-.7.8l1.6 1.6l-1.6 1.6zM1 4h14V3H1v1zm0 3h14V6H1v1zm8 2.5V9H1v1h8v-.5zM9 13v-1H1v1h8z'/%3E%3C/svg%3E");mask:var(--un-icon) no-repeat;mask-size:100% 100%;-webkit-mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;background-color:currentColor;width:1em;height:1em;}.i-codicon-close{--un-icon:url("data:image/svg+xml;utf8,%3Csvg preserveAspectRatio='xMidYMid meet' viewBox='0 0 16 16' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' fill-rule='evenodd' d='m8 8.707l3.646 3.647l.708-.707L8.707 8l3.647-3.646l-.707-.708L8 7.293L4.354 3.646l-.707.708L7.293 8l-3.646 3.646l.707.708L8 8.707z' clip-rule='evenodd'/%3E%3C/svg%3E");mask:var(--un-icon) no-repeat;mask-size:100% 100%;-webkit-mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;background-color:currentColor;width:1em;height:1em;}.i-codicon-cloud-download{--un-icon:url("data:image/svg+xml;utf8,%3Csvg preserveAspectRatio='xMidYMid meet' viewBox='0 0 16 16' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' fill-rule='evenodd' d='M11.957 6h.05a2.99 2.99 0 0 1 2.116.879a3.003 3.003 0 0 1 0 4.242a2.99 2.99 0 0 1-2.117.879v-1a2.002 2.002 0 0 0 0-4h-.914l-.123-.857a2.49 2.49 0 0 0-2.126-2.122A2.478 2.478 0 0 0 6.231 5.5l-.333.762l-.809-.189A2.49 2.49 0 0 0 4.523 6c-.662 0-1.297.263-1.764.732A2.503 2.503 0 0 0 4.523 11h.498v1h-.498a3.486 3.486 0 0 1-2.628-1.16a3.502 3.502 0 0 1 1.958-5.78a3.462 3.462 0 0 1 1.468.04a3.486 3.486 0 0 1 3.657-2.06A3.479 3.479 0 0 1 11.957 6zm-5.25 5.121l1.314 1.314V7h.994v5.4l1.278-1.279l.707.707l-2.146 2.147h-.708L6 11.829l.707-.708z' clip-rule='evenodd'/%3E%3C/svg%3E");mask:var(--un-icon) no-repeat;mask-size:100% 100%;-webkit-mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;background-color:currentColor;width:1em;height:1em;}.i-codicon-hubot{--un-icon:url("data:image/svg+xml;utf8,%3Csvg preserveAspectRatio='xMidYMid meet' viewBox='0 0 16 16' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' fill-rule='evenodd' d='M8.48 4h4l.5.5v2.03h.52l.5.5V8l-.5.5h-.52v3l-.5.5H9.36l-2.5 2.76L6 14.4V12H3.5l-.5-.64V8.5h-.5L2 8v-.97l.5-.5H3V4.36L3.53 4h4V2.86A1 1 0 0 1 7 2a1 1 0 0 1 2 0a1 1 0 0 1-.52.83V4zM12 8V5H4v5.86l2.5.14H7v2.19l1.8-2.04l.35-.15H12V8zm-2.12.51a2.71 2.71 0 0 1-1.37.74v-.01a2.71 2.71 0 0 1-2.42-.74l-.7.71c.34.34.745.608 1.19.79c.45.188.932.286 1.42.29a3.7 3.7 0 0 0 2.58-1.07l-.7-.71zM6.49 6.5h-1v1h1v-1zm3 0h1v1h-1v-1z' clip-rule='evenodd'/%3E%3C/svg%3E");mask:var(--un-icon) no-repeat;mask-size:100% 100%;-webkit-mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;background-color:currentColor;width:1em;height:1em;}.i-codicon-link-external{--un-icon:url("data:image/svg+xml;utf8,%3Csvg preserveAspectRatio='xMidYMid meet' viewBox='0 0 16 16' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cg fill='currentColor'%3E%3Cpath d='M1.5 1H6v1H2v12h12v-4h1v4.5l-.5.5h-13l-.5-.5v-13l.5-.5z'/%3E%3Cpath d='M15 1.5V8h-1V2.707L7.243 9.465l-.707-.708L13.293 2H8V1h6.5l.5.5z'/%3E%3C/g%3E%3C/svg%3E");mask:var(--un-icon) no-repeat;mask-size:100% 100%;-webkit-mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;background-color:currentColor;width:1em;height:1em;}.i-codicon-menu{--un-icon:url("data:image/svg+xml;utf8,%3Csvg preserveAspectRatio='xMidYMid meet' viewBox='0 0 16 16' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M16 5H0V4h16v1zm0 8H0v-1h16v1zm0-4.008H0V8h16v.992z'/%3E%3C/svg%3E");mask:var(--un-icon) no-repeat;mask-size:100% 100%;-webkit-mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;background-color:currentColor;width:1em;height:1em;}.i-codicon-radio-tower{--un-icon:url("data:image/svg+xml;utf8,%3Csvg preserveAspectRatio='xMidYMid meet' viewBox='0 0 16 16' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' fill-rule='evenodd' d='M2.998 5.58a5.55 5.55 0 0 1 1.62-3.88l-.71-.7a6.45 6.45 0 0 0 0 9.16l.71-.7a5.55 5.55 0 0 1-1.62-3.88zm1.06 0a4.42 4.42 0 0 0 1.32 3.17l.71-.71a3.27 3.27 0 0 1-.76-1.12a3.45 3.45 0 0 1 0-2.67a3.22 3.22 0 0 1 .76-1.13l-.71-.71a4.46 4.46 0 0 0-1.32 3.17zm7.65 3.21l-.71-.71c.33-.32.59-.704.76-1.13a3.449 3.449 0 0 0 0-2.67a3.22 3.22 0 0 0-.76-1.13l.71-.7a4.468 4.468 0 0 1 0 6.34zM13.068 1l-.71.71a5.43 5.43 0 0 1 0 7.74l.71.71a6.45 6.45 0 0 0 0-9.16zM9.993 5.43a1.5 1.5 0 0 1-.245.98a2 2 0 0 1-.27.23l3.44 7.73l-.92.4l-.77-1.73h-5.54l-.77 1.73l-.92-.4l3.44-7.73a1.52 1.52 0 0 1-.33-1.63a1.55 1.55 0 0 1 .56-.68a1.5 1.5 0 0 1 2.325 1.1zm-1.595-.34a.52.52 0 0 0-.25.14a.52.52 0 0 0-.11.22a.48.48 0 0 0 0 .29c.04.09.102.17.18.23a.54.54 0 0 0 .28.08a.51.51 0 0 0 .5-.5a.54.54 0 0 0-.08-.28a.58.58 0 0 0-.23-.18a.48.48 0 0 0-.29 0zm.23 2.05h-.27l-.87 1.94h2l-.86-1.94zm2.2 4.94l-.89-2h-2.88l-.89 2h4.66z' clip-rule='evenodd'/%3E%3C/svg%3E");mask:var(--un-icon) no-repeat;mask-size:100% 100%;-webkit-mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;background-color:currentColor;width:1em;height:1em;}.i-codicon-terminal{--un-icon:url("data:image/svg+xml;utf8,%3Csvg preserveAspectRatio='xMidYMid meet' viewBox='0 0 24 24' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' fill-rule='evenodd' d='M3 1.5L1.5 3v18L3 22.5h18l1.5-1.5V3L21 1.5H3zM3 21V3h18v18H3zm5.656-4.01l1.038 1.061l5.26-5.243v-.912l-5.26-5.26l-1.035 1.06l4.59 4.702l-4.593 4.592z' clip-rule='evenodd'/%3E%3C/svg%3E");mask:var(--un-icon) no-repeat;mask-size:100% 100%;-webkit-mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;background-color:currentColor;width:1em;height:1em;}.i-codicon-terminal-bash{--un-icon:url("data:image/svg+xml;utf8,%3Csvg preserveAspectRatio='xMidYMid meet' viewBox='0 0 16 16' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M13.655 3.56L8.918.75a1.785 1.785 0 0 0-1.82 0L2.363 3.56a1.889 1.889 0 0 0-.921 1.628v5.624a1.889 1.889 0 0 0 .913 1.627l4.736 2.812a1.785 1.785 0 0 0 1.82 0l4.736-2.812a1.888 1.888 0 0 0 .913-1.627V5.188a1.889 1.889 0 0 0-.904-1.627zm-3.669 8.781v.404a.149.149 0 0 1-.07.124l-.239.137c-.038.02-.07 0-.07-.053v-.396a.78.78 0 0 1-.545.053a.073.073 0 0 1-.027-.09l.086-.365a.153.153 0 0 1 .071-.096a.048.048 0 0 1 .038 0a.662.662 0 0 0 .497-.063a.662.662 0 0 0 .37-.567c0-.206-.112-.292-.384-.293c-.344 0-.661-.066-.67-.574A1.47 1.47 0 0 1 9.6 9.437V9.03a.147.147 0 0 1 .07-.126l.231-.147c.038-.02.07 0 .07.054v.409a.754.754 0 0 1 .453-.055a.073.073 0 0 1 .03.095l-.081.362a.156.156 0 0 1-.065.09a.055.055 0 0 1-.035 0a.6.6 0 0 0-.436.072a.549.549 0 0 0-.331.486c0 .185.098.242.425.248c.438 0 .627.199.632.639a1.568 1.568 0 0 1-.576 1.185zm2.481-.68a.094.094 0 0 1-.036.092l-1.198.727a.034.034 0 0 1-.04.003a.035.035 0 0 1-.016-.037v-.31a.086.086 0 0 1 .055-.076l1.179-.706a.035.035 0 0 1 .056.035v.273zm.827-6.914L8.812 7.515c-.559.331-.97.693-.97 1.367v5.52c0 .404.165.662.413.741a1.465 1.465 0 0 1-.248.025c-.264 0-.522-.072-.748-.207L2.522 12.15a1.558 1.558 0 0 1-.75-1.338V5.188a1.558 1.558 0 0 1 .75-1.34l4.738-2.81a1.46 1.46 0 0 1 1.489 0l4.736 2.812a1.548 1.548 0 0 1 .728 1.083c-.154-.334-.508-.427-.92-.185h.002z'/%3E%3C/svg%3E");mask:var(--un-icon) no-repeat;mask-size:100% 100%;-webkit-mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;background-color:currentColor;width:1em;height:1em;}.i-codicon-window{--un-icon:url("data:image/svg+xml;utf8,%3Csvg preserveAspectRatio='xMidYMid meet' viewBox='0 0 16 16' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M14.5 2h-13l-.5.5v11l.5.5h13l.5-.5v-11l-.5-.5zM14 13H2V6h12v7zm0-8H2V3h12v2z'/%3E%3C/svg%3E");mask:var(--un-icon) no-repeat;mask-size:100% 100%;-webkit-mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;background-color:currentColor;width:1em;height:1em;}.i-ph-broadcast{--un-icon:url("data:image/svg+xml;utf8,%3Csvg preserveAspectRatio='xMidYMid meet' viewBox='0 0 256 256' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M128 88a40 40 0 1 0 40 40a40 40 0 0 0-40-40Zm0 64a24 24 0 1 1 24-24a24.1 24.1 0 0 1-24 24Zm-59-48.9a64.5 64.5 0 0 0 0 49.8a65.4 65.4 0 0 0 13.7 20.4a7.9 7.9 0 0 1 0 11.3a8 8 0 0 1-5.6 2.3a8.3 8.3 0 0 1-5.7-2.3a80 80 0 0 1-17.1-25.5a79.9 79.9 0 0 1 0-62.2a80 80 0 0 1 17.1-25.5a8 8 0 0 1 11.3 0a7.9 7.9 0 0 1 0 11.3A65.4 65.4 0 0 0 69 103.1Zm132.7 56a80 80 0 0 1-17.1 25.5a8.3 8.3 0 0 1-5.7 2.3a8 8 0 0 1-5.6-2.3a7.9 7.9 0 0 1 0-11.3a65.4 65.4 0 0 0 13.7-20.4a64.5 64.5 0 0 0 0-49.8a65.4 65.4 0 0 0-13.7-20.4a7.9 7.9 0 0 1 0-11.3a8 8 0 0 1 11.3 0a80 80 0 0 1 17.1 25.5a79.9 79.9 0 0 1 0 62.2ZM54.5 201.5a8.1 8.1 0 0 1 0 11.4a8.3 8.3 0 0 1-5.7 2.3a8.5 8.5 0 0 1-5.7-2.3a121.8 121.8 0 0 1-25.7-38.2a120.7 120.7 0 0 1 0-93.4a121.8 121.8 0 0 1 25.7-38.2a8.1 8.1 0 0 1 11.4 11.4A103.5 103.5 0 0 0 24 128a103.5 103.5 0 0 0 30.5 73.5ZM248 128a120.2 120.2 0 0 1-9.4 46.7a121.8 121.8 0 0 1-25.7 38.2a8.5 8.5 0 0 1-5.7 2.3a8.3 8.3 0 0 1-5.7-2.3a8.1 8.1 0 0 1 0-11.4A103.5 103.5 0 0 0 232 128a103.5 103.5 0 0 0-30.5-73.5a8.1 8.1 0 1 1 11.4-11.4a121.8 121.8 0 0 1 25.7 38.2A120.2 120.2 0 0 1 248 128Z'/%3E%3C/svg%3E");mask:var(--un-icon) no-repeat;mask-size:100% 100%;-webkit-mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;background-color:currentColor;width:1em;height:1em;}.i-ph-hand-waving{--un-icon:url("data:image/svg+xml;utf8,%3Csvg preserveAspectRatio='xMidYMid meet' viewBox='0 0 256 256' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='m220.2 104l-20-34.7a28.1 28.1 0 0 0-47.3-1.9l-17.3-30a28.1 28.1 0 0 0-38.3-10.3a29.4 29.4 0 0 0-9.9 9.6a27.9 27.9 0 0 0-11.5-6.2a27.2 27.2 0 0 0-21.2 2.8a27.9 27.9 0 0 0-10.3 38.2l3.4 5.8A28.5 28.5 0 0 0 36 81a28.1 28.1 0 0 0-10.2 38.2l42 72.8a88 88 0 1 0 152.4-88Zm-6.7 62.6a71.2 71.2 0 0 1-33.5 43.7A72.1 72.1 0 0 1 81.6 184l-42-72.8a12 12 0 0 1 20.8-12l22 38.1l.6.9v.2l.5.5l.2.2l.7.6h.1l.7.5h.3l.6.3h.2l.9.3h.1l.8.2h2.2l.9-.2h.3l.6-.2h.3l.9-.4a8.1 8.1 0 0 0 2.9-11l-22-38.1l-16-27.7a12 12 0 0 1-1.2-9.1a11.8 11.8 0 0 1 5.6-7.3a12 12 0 0 1 9.1-1.2a12.5 12.5 0 0 1 7.3 5.6l8 14h.1l26 45a7 7 0 0 0 1.5 1.9a8 8 0 0 0 12.3-9.9l-26-45a12 12 0 1 1 20.8-12l30 51.9l6.3 11a48.1 48.1 0 0 0-10.9 61a8 8 0 0 0 13.8-8a32 32 0 0 1 11.7-43.7l.7-.4l.5-.4h.1l.6-.6l.5-.5l.4-.5l.3-.6h.1l.2-.5v-.2a1.9 1.9 0 0 0 .2-.7h.1c0-.2.1-.4.1-.6s0-.2.1-.2v-2.1a6.4 6.4 0 0 0-.2-.7a1.9 1.9 0 0 0-.2-.7v-.2c0-.2-.1-.3-.2-.5l-.3-.7l-10-17.4a12 12 0 0 1 13.5-17.5a11.8 11.8 0 0 1 7.2 5.5l20 34.7a70.9 70.9 0 0 1 7.2 53.8Zm-125.8 78a8.2 8.2 0 0 1-6.6 3.4a8.6 8.6 0 0 1-4.6-1.4A117.9 117.9 0 0 1 41.1 208a8 8 0 1 1 13.8-8a102.6 102.6 0 0 0 30.8 33.4a8.1 8.1 0 0 1 2 11.2ZM168 31a8 8 0 0 1 8-8a60.2 60.2 0 0 1 52 30a7.9 7.9 0 0 1-3 10.9a7.1 7.1 0 0 1-4 1.1a8 8 0 0 1-6.9-4A44 44 0 0 0 176 39a8 8 0 0 1-8-8Z'/%3E%3C/svg%3E");mask:var(--un-icon) no-repeat;mask-size:100% 100%;-webkit-mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;background-color:currentColor;width:1em;height:1em;}.i-ph-moon{--un-icon:url("data:image/svg+xml;utf8,%3Csvg preserveAspectRatio='xMidYMid meet' viewBox='0 0 256 256' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M224.3 150.3a8.1 8.1 0 0 0-7.8-5.7l-2.2.4A84 84 0 0 1 111 41.6a5.7 5.7 0 0 0 .3-1.8a7.9 7.9 0 0 0-10.3-8.1a100 100 0 1 0 123.3 123.2a7.2 7.2 0 0 0 0-4.6ZM128 212A84 84 0 0 1 92.8 51.7a99.9 99.9 0 0 0 111.5 111.5A84.4 84.4 0 0 1 128 212Z'/%3E%3C/svg%3E");mask:var(--un-icon) no-repeat;mask-size:100% 100%;-webkit-mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;background-color:currentColor;width:1em;height:1em;}.i-ph-sun{--un-icon:url("data:image/svg+xml;utf8,%3Csvg preserveAspectRatio='xMidYMid meet' viewBox='0 0 256 256' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M128 60a68 68 0 1 0 68 68a68.1 68.1 0 0 0-68-68Zm0 120a52 52 0 1 1 52-52a52 52 0 0 1-52 52Zm-8-144V16a8 8 0 0 1 16 0v20a8 8 0 0 1-16 0ZM43.1 54.5a8.1 8.1 0 1 1 11.4-11.4l14.1 14.2a8 8 0 0 1 0 11.3a8.1 8.1 0 0 1-11.3 0ZM36 136H16a8 8 0 0 1 0-16h20a8 8 0 0 1 0 16Zm32.6 51.4a8 8 0 0 1 0 11.3l-14.1 14.2a8.3 8.3 0 0 1-5.7 2.3a8.5 8.5 0 0 1-5.7-2.3a8.1 8.1 0 0 1 0-11.4l14.2-14.1a8 8 0 0 1 11.3 0ZM136 220v20a8 8 0 0 1-16 0v-20a8 8 0 0 1 16 0Zm76.9-18.5a8.1 8.1 0 0 1 0 11.4a8.5 8.5 0 0 1-5.7 2.3a8.3 8.3 0 0 1-5.7-2.3l-14.1-14.2a8 8 0 0 1 11.3-11.3ZM248 128a8 8 0 0 1-8 8h-20a8 8 0 0 1 0-16h20a8 8 0 0 1 8 8Zm-60.6-59.4a8 8 0 0 1 0-11.3l14.1-14.2a8.1 8.1 0 0 1 11.4 11.4l-14.2 14.1a8.1 8.1 0 0 1-11.3 0Z'/%3E%3C/svg%3E");mask:var(--un-icon) no-repeat;mask-size:100% 100%;-webkit-mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;background-color:currentColor;width:1em;height:1em;}.note{position:relative;display:inline-flex;align-items:center;border-left-width:4px;border-left-style:solid;--un-border-opacity:1;border-color:rgba(53,120,229,var(--un-border-opacity));border-radius:0.25rem;background-color:rgba(53,120,229,0.1);padding:0.5rem;text-decoration:none;}.note-red{position:relative;display:inline-flex;align-items:center;border-left-width:4px;border-left-style:solid;--un-border-opacity:1;border-color:rgba(53,120,229,var(--un-border-opacity));border-radius:0.25rem;background-color:rgba(53,120,229,0.1);background-color:rgba(185,28,28,0.1);padding:0.5rem;text-decoration:none;}.nv{position:relative;display:flex;align-items:center;border-radius:0.25rem;padding:0.5rem;--un-text-opacity:1;color:rgba(194,197,202,var(--un-text-opacity));text-decoration:none;transition-property:all;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-duration:125ms;}.nv_selected{position:relative;display:flex;align-items:center;border-left-width:4px;border-left-style:solid;border-radius:0.25rem;--un-bg-opacity:.05;background-color:hsla(0,0%,100%,var(--un-bg-opacity));padding:0.5rem;--un-text-opacity:1;color:rgba(194,197,202,var(--un-text-opacity));color:rgba(53,120,229,var(--un-text-opacity));text-decoration:none;transition-property:all;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-duration:125ms;}.input{height:2.5rem;display:flex;align-items:center;border-radius:0.25rem;border-style:none;--un-bg-opacity:1;background-color:rgba(233,236,239,var(--un-bg-opacity));padding:0.5rem;--un-text-opacity:1;color:rgba(28,30,33,var(--un-text-opacity));--un-shadow:var(--un-shadow-inset) 0 4px 6px -1px var(--un-shadow-color, rgba(0,0,0,0.1)),var(--un-shadow-inset) 0 2px 4px -2px var(--un-shadow-color, rgba(0,0,0,0.1));box-shadow:var(--un-ring-offset-shadow, 0 0 #0000), var(--un-ring-shadow, 0 0 #0000), var(--un-shadow);outline:2px solid transparent;outline-offset:2px;}.btn{user-select:none;border-radius:0.25rem;border-style:none;--un-bg-opacity:1;background-color:rgba(53,120,229,var(--un-bg-opacity));padding:0.5rem;font-weight:400;--un-text-opacity:1;color:rgba(28,30,33,var(--un-text-opacity));color:rgba(255,255,255,var(--un-text-opacity));--un-shadow:var(--un-shadow-inset) 0 4px 6px -1px var(--un-shadow-color, rgba(0,0,0,0.1)),var(--un-shadow-inset) 0 2px 4px -2px var(--un-shadow-color, rgba(0,0,0,0.1));box-shadow:var(--un-ring-offset-shadow, 0 0 #0000), var(--un-ring-shadow, 0 0 #0000), var(--un-shadow);outline:2px solid transparent;outline-offset:2px;}.nv_selected:hover,.nv:hover{border-left-width:4px;border-left-style:solid;--un-bg-opacity:.05;background-color:hsla(0,0%,100%,var(--un-bg-opacity));--un-text-opacity:1;color:rgba(53,120,229,var(--un-text-opacity));}.dark .note{--un-border-opacity:1;border-color:rgba(103,214,237,var(--un-border-opacity));background-color:rgba(103,214,237,0.1);}.dark .note-red{--un-border-opacity:1;border-color:rgba(103,214,237,var(--un-border-opacity));background-color:rgba(103,214,237,0.1);background-color:rgba(185,28,28,0.1);}.btn:hover{--un-bg-opacity:1;background-color:rgba(45,102,195,var(--un-bg-opacity));}.dark .btn{--un-bg-opacity:1;background-color:rgba(103,214,237,var(--un-bg-opacity));font-weight:600;--un-text-opacity:1;color:rgba(28,30,33,var(--un-text-opacity));}.dark .btn:hover{--un-bg-opacity:1;background-color:rgba(57,202,232,var(--un-bg-opacity));}.dark .input{--un-bg-opacity:1;background-color:rgba(36,37,38,var(--un-bg-opacity));--un-text-opacity:1;color:rgba(227,227,227,var(--un-text-opacity));}.dark .note-red::after,.note-red::after{--un-bg-opacity:1;background-color:rgba(185,28,28,var(--un-bg-opacity));}.btn:active{--un-bg-opacity:1;background-color:rgba(37,84,160,var(--un-bg-opacity));}.dark .btn:active{--un-bg-opacity:1;background-color:rgba(25,181,213,var(--un-bg-opacity));}.dark .nv_selected,.dark .nv_selected:hover,.dark .nv:hover{--un-text-opacity:1;color:rgba(103,214,237,var(--un-text-opacity));} ::-webkit-scrollbar-thumb { background-color: #3578E5; } .dark ::-webkit-scrollbar-thumb { background-color: #67d6ed; } code { font-size: 0.75rem; font-family: "Fira Code","Fira Mono",ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace; border-radius: 0.25rem; background-color: #d6d8da; } .code-block { font-family: "Fira Code","Fira Mono",ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace; font-size: 0.875rem; } .dark code { background-color: #282a2e; } .visible{visibility:visible;}.absolute{position:absolute;}.left-2{left:0.5rem;}.top-2{top:0.5rem;}.z-2000{z-index:2000;}.grid{display:grid;}.grid-rows-\[2fr_auto\]{grid-template-rows:2fr auto;}.grid-rows-\[2px_2rem_1fr\]{grid-template-rows:2px 2rem 1fr;}.grid-rows-\[auto_1fr\]{grid-template-rows:auto 1fr;}.my-2{margin-top:0.5rem;margin-bottom:0.5rem;}.mb-2{margin-bottom:0.5rem;}.mr-2{margin-right:0.5rem;}.display-none{display:none;}.children-h-10>*,.children\:h10>*{height:2.5rem;}.children\:h-100\%>*,.h-100\%{height:100%;}.children\:w-12>*{width:3rem;}.h-15rem{height:15rem;}.h-2px{height:2px;}.h-8{height:2rem;}.h-85\%{height:85%;}.h-screen{height:100vh;}.w-8{width:2rem;}.w-screen{width:100vw;}.flex{display:flex;}.children\:inline-flex>*{display:inline-flex;}.flex-1{flex:1 1 0%;}.children-flex-none>*{flex:none;}.children\:grow>*,.grow{flex-grow:1;}.flex-row{flex-direction:row;}.flex-col{flex-direction:column;}.flex-wrap{flex-wrap:wrap;}@keyframes fade-in{from{opacity:0}to{opacity:1}}@keyframes spin{from{transform:rotate(0deg)}to{transform:rotate(360deg)}}.animate-fade-in{animation:fade-in 1s linear 1;}.animate-spin{animation:spin 1s linear infinite;}.animate-duration-300ms{animation-duration:300ms;}.cursor-ns-resize{cursor:ns-resize;}.cursor-pointer{cursor:pointer;}.select-none{user-select:none;}.children\:items-center>*,.items-center{align-items:center;}.self-center{align-self:center;}.children\:justify-center>*,.justify-center{justify-content:center;}.justify-between{justify-content:space-between;}.gap-1{grid-gap:0.25rem;gap:0.25rem;}.gap-2{grid-gap:0.5rem;gap:0.5rem;}.overflow-hidden{overflow:hidden;}.overflow-y-auto{overflow-y:auto;}.rd-1{border-radius:0.25rem;}.rd-8{border-radius:2rem;}.bg-accent{--un-bg-opacity:1;background-color:rgba(53,120,229,var(--un-bg-opacity));}.bg-black\/20{background-color:rgba(0,0,0,0.2);}.bg-darkPrimaryLighter{--un-bg-opacity:1;background-color:rgba(36,37,38,var(--un-bg-opacity));}.bg-primary{--un-bg-opacity:1;background-color:rgba(255,255,255,var(--un-bg-opacity));}.bg-white\/5{background-color:rgba(255,255,255,0.05);}.dark .dark\:bg-darkAccent{--un-bg-opacity:1;background-color:rgba(103,214,237,var(--un-bg-opacity));}.dark .dark\:bg-darkPrimary{--un-bg-opacity:1;background-color:rgba(27,27,29,var(--un-bg-opacity));}.dark .dark\:hover\:bg-darkHoverOverlay:hover{--un-bg-opacity:.05;background-color:hsla(0,0%,100%,var(--un-bg-opacity));}.hover\:bg-hoverOverlay:hover{--un-bg-opacity:.05;background-color:rgba(0,0,0,var(--un-bg-opacity));}.active\:bg-accentDark:active{--un-bg-opacity:1;background-color:rgba(48,108,206,var(--un-bg-opacity));}.active\:bg-hoverOverlay\/25:active{background-color:rgba(0,0,0,0.25);}.active\:bg-hoverOverlayDarker:active{--un-bg-opacity:.1;background-color:rgba(0,0,0,var(--un-bg-opacity));}.dark .dark\:active\:bg-darkAccentDark:active{--un-bg-opacity:1;background-color:rgba(73,206,233,var(--un-bg-opacity));}.dark .dark\:active\:bg-darkHoverOverlay\/25:active{background-color:hsla(0,0%,100%,0.25);}.dark .dark\:active\:bg-darkHoverOverlayDarker:active{--un-bg-opacity:.1;background-color:hsla(0,0%,100%,var(--un-bg-opacity));}.p-1{padding:0.25rem;}.p-7{padding:1.75rem;}.px{padding-left:1rem;padding-right:1rem;}.px-2{padding-left:0.5rem;padding-right:0.5rem;}.px-5{padding-left:1.25rem;padding-right:1.25rem;}.children-pb-2>*{padding-bottom:0.5rem;}.children-pt8>*{padding-top:2rem;}.pl-2{padding-left:0.5rem;}.all\:font-mono *{font-family:"Fira Code","Fira Mono",ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;}.all\:text-xs *{font-size:0.75rem;line-height:1rem;}.text-sm{font-size:0.875rem;line-height:1.25rem;}.font-700{font-weight:700;}.font-semibold{font-weight:600;}.dark .dark\:text-darkAccent{--un-text-opacity:1;color:rgba(103,214,237,var(--un-text-opacity));}.dark .dark\:text-darkAccentText,.text-primaryText{--un-text-opacity:1;color:rgba(28,30,33,var(--un-text-opacity));}.dark .dark\:text-darkPrimaryText,.text-darkPrimaryText{--un-text-opacity:1;color:rgba(227,227,227,var(--un-text-opacity));}.text-accent{--un-text-opacity:1;color:rgba(53,120,229,var(--un-text-opacity));}.text-accentText{--un-text-opacity:1;color:rgba(255,255,255,var(--un-text-opacity));}.transition-colors-250{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-duration:250ms;}.transition-transform{transition-property:transform;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-duration:150ms;}@media (max-width: 639.9px){.lt-sm\:absolute{position:absolute;}.lt-sm\:z-1999{z-index:1999;}.lt-sm\:h-screen{height:100vh;}.lt-sm\:flex{display:flex;}.lt-sm\:pl-10{padding-left:2.5rem;}.lt-sm\:shadow{--un-shadow:var(--un-shadow-inset) 0 1px 3px 0 var(--un-shadow-color, rgba(0,0,0,0.1)),var(--un-shadow-inset) 0 1px 2px -1px var(--un-shadow-color, rgba(0,0,0,0.1));box-shadow:var(--un-ring-offset-shadow, 0 0 #0000), var(--un-ring-shadow, 0 0 #0000), var(--un-shadow);}.lt-sm\:shadow-lg{--un-shadow:var(--un-shadow-inset) 0 10px 15px -3px var(--un-shadow-color, rgba(0,0,0,0.1)),var(--un-shadow-inset) 0 4px 6px -4px var(--un-shadow-color, rgba(0,0,0,0.1));box-shadow:var(--un-ring-offset-shadow, 0 0 #0000), var(--un-ring-shadow, 0 0 #0000), var(--un-shadow);}.lt-sm\:transition-transform{transition-property:transform;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-duration:150ms;}}*:not(h1,h2,h3,h4,h5,h6){margin:0;padding:0}*{box-sizing:border-box;font-family:Rubik,sans-serif}::-webkit-scrollbar{width:.25rem;height:3px}::-webkit-scrollbar-track{background:transparent}::-webkit-scrollbar-thumb{border-radius:.25rem}code{padding:.05rem .25rem}code.code-block{padding:.5rem}#sidebar{width:18.75rem}@media screen and (max-width: 640px){#sidebar{--translate-x: -18.75rem;transform:translate(var(--translate-x))}}.spinner.svelte-4xesec{height:1.2rem;width:1.2rem;border-radius:50rem;color:currentColor;border:2px dashed currentColor} +*,::before,::after{--un-rotate:0;--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-scale-x:1;--un-scale-y:1;--un-scale-z:1;--un-skew-x:0;--un-skew-y:0;--un-translate-x:0;--un-translate-y:0;--un-translate-z:0;--un-pan-x:var(--un-empty,/*!*/ /*!*/);--un-pan-y:var(--un-empty,/*!*/ /*!*/);--un-pinch-zoom:var(--un-empty,/*!*/ /*!*/);--un-scroll-snap-strictness:proximity;--un-ordinal:var(--un-empty,/*!*/ /*!*/);--un-slashed-zero:var(--un-empty,/*!*/ /*!*/);--un-numeric-figure:var(--un-empty,/*!*/ /*!*/);--un-numeric-spacing:var(--un-empty,/*!*/ /*!*/);--un-numeric-fraction:var(--un-empty,/*!*/ /*!*/);--un-border-spacing-x:0;--un-border-spacing-y:0;--un-ring-offset-shadow:0 0 #0000;--un-ring-shadow:0 0 #0000;--un-shadow-inset:var(--un-empty,/*!*/ /*!*/);--un-shadow:0 0 #0000;--un-ring-inset:var(--un-empty,/*!*/ /*!*/);--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:rgba(147,197,253,0.5);--un-blur:var(--un-empty,/*!*/ /*!*/);--un-brightness:var(--un-empty,/*!*/ /*!*/);--un-contrast:var(--un-empty,/*!*/ /*!*/);--un-drop-shadow:var(--un-empty,/*!*/ /*!*/);--un-grayscale:var(--un-empty,/*!*/ /*!*/);--un-hue-rotate:var(--un-empty,/*!*/ /*!*/);--un-invert:var(--un-empty,/*!*/ /*!*/);--un-saturate:var(--un-empty,/*!*/ /*!*/);--un-sepia:var(--un-empty,/*!*/ /*!*/);--un-backdrop-blur:var(--un-empty,/*!*/ /*!*/);--un-backdrop-brightness:var(--un-empty,/*!*/ /*!*/);--un-backdrop-contrast:var(--un-empty,/*!*/ /*!*/);--un-backdrop-grayscale:var(--un-empty,/*!*/ /*!*/);--un-backdrop-hue-rotate:var(--un-empty,/*!*/ /*!*/);--un-backdrop-invert:var(--un-empty,/*!*/ /*!*/);--un-backdrop-opacity:var(--un-empty,/*!*/ /*!*/);--un-backdrop-saturate:var(--un-empty,/*!*/ /*!*/);--un-backdrop-sepia:var(--un-empty,/*!*/ /*!*/);}@font-face { font-family: 'Fira Code'; font-style: normal; font-weight: 400; font-display: swap; src: url(https://fonts.gstatic.com/s/firacode/v21/uU9eCBsR6Z2vfE9aq3bL0fxyUs4tcw4W_D1sFVc.ttf) format('truetype');}@font-face { font-family: 'Fira Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url(https://fonts.gstatic.com/s/firamono/v14/N0bX2SlFPv1weGeLZDtQIQ.ttf) format('truetype');}@font-face { font-family: 'Fira Mono'; font-style: normal; font-weight: 700; font-display: swap; src: url(https://fonts.gstatic.com/s/firamono/v14/N0bS2SlFPv1weGeLZDtondv3mQ.ttf) format('truetype');}@font-face { font-family: 'Rubik'; font-style: normal; font-weight: 400; font-display: swap; src: url(https://fonts.gstatic.com/s/rubik/v26/iJWZBXyIfDnIV5PNhY1KTN7Z-Yh-B4i1UA.ttf) format('truetype');}.i-codicon-chrome-maximize{--un-icon:url("data:image/svg+xml;utf8,%3Csvg preserveAspectRatio='xMidYMid meet' viewBox='0 0 16 16' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M3 3v10h10V3H3zm9 9H4V4h8v8z'/%3E%3C/svg%3E");mask:var(--un-icon) no-repeat;mask-size:100% 100%;-webkit-mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;background-color:currentColor;width:1em;height:1em;}.i-codicon-chrome-minimize{--un-icon:url("data:image/svg+xml;utf8,%3Csvg preserveAspectRatio='xMidYMid meet' viewBox='0 0 16 16' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M14 8v1H3V8h11z'/%3E%3C/svg%3E");mask:var(--un-icon) no-repeat;mask-size:100% 100%;-webkit-mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;background-color:currentColor;width:1em;height:1em;}.i-codicon-chrome-restore{--un-icon:url("data:image/svg+xml;utf8,%3Csvg preserveAspectRatio='xMidYMid meet' viewBox='0 0 16 16' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cg fill='currentColor'%3E%3Cpath d='M3 5v9h9V5H3zm8 8H4V6h7v7z'/%3E%3Cpath fill-rule='evenodd' d='M5 5h1V4h7v7h-1v1h2V3H5v2z' clip-rule='evenodd'/%3E%3C/g%3E%3C/svg%3E");mask:var(--un-icon) no-repeat;mask-size:100% 100%;-webkit-mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;background-color:currentColor;width:1em;height:1em;}.i-codicon-clear-all{--un-icon:url("data:image/svg+xml;utf8,%3Csvg preserveAspectRatio='xMidYMid meet' viewBox='0 0 16 16' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='m10 12.6l.7.7l1.6-1.6l1.6 1.6l.8-.7L13 11l1.7-1.6l-.8-.8l-1.6 1.7l-1.6-1.7l-.7.8l1.6 1.6l-1.6 1.6zM1 4h14V3H1v1zm0 3h14V6H1v1zm8 2.5V9H1v1h8v-.5zM9 13v-1H1v1h8z'/%3E%3C/svg%3E");mask:var(--un-icon) no-repeat;mask-size:100% 100%;-webkit-mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;background-color:currentColor;width:1em;height:1em;}.i-codicon-close{--un-icon:url("data:image/svg+xml;utf8,%3Csvg preserveAspectRatio='xMidYMid meet' viewBox='0 0 16 16' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' fill-rule='evenodd' d='m8 8.707l3.646 3.647l.708-.707L8.707 8l3.647-3.646l-.707-.708L8 7.293L4.354 3.646l-.707.708L7.293 8l-3.646 3.646l.707.708L8 8.707z' clip-rule='evenodd'/%3E%3C/svg%3E");mask:var(--un-icon) no-repeat;mask-size:100% 100%;-webkit-mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;background-color:currentColor;width:1em;height:1em;}.i-codicon-cloud-download{--un-icon:url("data:image/svg+xml;utf8,%3Csvg preserveAspectRatio='xMidYMid meet' viewBox='0 0 16 16' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' fill-rule='evenodd' d='M11.957 6h.05a2.99 2.99 0 0 1 2.116.879a3.003 3.003 0 0 1 0 4.242a2.99 2.99 0 0 1-2.117.879v-1a2.002 2.002 0 0 0 0-4h-.914l-.123-.857a2.49 2.49 0 0 0-2.126-2.122A2.478 2.478 0 0 0 6.231 5.5l-.333.762l-.809-.189A2.49 2.49 0 0 0 4.523 6c-.662 0-1.297.263-1.764.732A2.503 2.503 0 0 0 4.523 11h.498v1h-.498a3.486 3.486 0 0 1-2.628-1.16a3.502 3.502 0 0 1 1.958-5.78a3.462 3.462 0 0 1 1.468.04a3.486 3.486 0 0 1 3.657-2.06A3.479 3.479 0 0 1 11.957 6zm-5.25 5.121l1.314 1.314V7h.994v5.4l1.278-1.279l.707.707l-2.146 2.147h-.708L6 11.829l.707-.708z' clip-rule='evenodd'/%3E%3C/svg%3E");mask:var(--un-icon) no-repeat;mask-size:100% 100%;-webkit-mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;background-color:currentColor;width:1em;height:1em;}.i-codicon-hubot{--un-icon:url("data:image/svg+xml;utf8,%3Csvg preserveAspectRatio='xMidYMid meet' viewBox='0 0 16 16' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' fill-rule='evenodd' d='M8.48 4h4l.5.5v2.03h.52l.5.5V8l-.5.5h-.52v3l-.5.5H9.36l-2.5 2.76L6 14.4V12H3.5l-.5-.64V8.5h-.5L2 8v-.97l.5-.5H3V4.36L3.53 4h4V2.86A1 1 0 0 1 7 2a1 1 0 0 1 2 0a1 1 0 0 1-.52.83V4zM12 8V5H4v5.86l2.5.14H7v2.19l1.8-2.04l.35-.15H12V8zm-2.12.51a2.71 2.71 0 0 1-1.37.74v-.01a2.71 2.71 0 0 1-2.42-.74l-.7.71c.34.34.745.608 1.19.79c.45.188.932.286 1.42.29a3.7 3.7 0 0 0 2.58-1.07l-.7-.71zM6.49 6.5h-1v1h1v-1zm3 0h1v1h-1v-1z' clip-rule='evenodd'/%3E%3C/svg%3E");mask:var(--un-icon) no-repeat;mask-size:100% 100%;-webkit-mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;background-color:currentColor;width:1em;height:1em;}.i-codicon-link-external{--un-icon:url("data:image/svg+xml;utf8,%3Csvg preserveAspectRatio='xMidYMid meet' viewBox='0 0 16 16' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cg fill='currentColor'%3E%3Cpath d='M1.5 1H6v1H2v12h12v-4h1v4.5l-.5.5h-13l-.5-.5v-13l.5-.5z'/%3E%3Cpath d='M15 1.5V8h-1V2.707L7.243 9.465l-.707-.708L13.293 2H8V1h6.5l.5.5z'/%3E%3C/g%3E%3C/svg%3E");mask:var(--un-icon) no-repeat;mask-size:100% 100%;-webkit-mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;background-color:currentColor;width:1em;height:1em;}.i-codicon-menu{--un-icon:url("data:image/svg+xml;utf8,%3Csvg preserveAspectRatio='xMidYMid meet' viewBox='0 0 16 16' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M16 5H0V4h16v1zm0 8H0v-1h16v1zm0-4.008H0V8h16v.992z'/%3E%3C/svg%3E");mask:var(--un-icon) no-repeat;mask-size:100% 100%;-webkit-mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;background-color:currentColor;width:1em;height:1em;}.i-codicon-radio-tower{--un-icon:url("data:image/svg+xml;utf8,%3Csvg preserveAspectRatio='xMidYMid meet' viewBox='0 0 16 16' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' fill-rule='evenodd' d='M2.998 5.58a5.55 5.55 0 0 1 1.62-3.88l-.71-.7a6.45 6.45 0 0 0 0 9.16l.71-.7a5.55 5.55 0 0 1-1.62-3.88zm1.06 0a4.42 4.42 0 0 0 1.32 3.17l.71-.71a3.27 3.27 0 0 1-.76-1.12a3.45 3.45 0 0 1 0-2.67a3.22 3.22 0 0 1 .76-1.13l-.71-.71a4.46 4.46 0 0 0-1.32 3.17zm7.65 3.21l-.71-.71c.33-.32.59-.704.76-1.13a3.449 3.449 0 0 0 0-2.67a3.22 3.22 0 0 0-.76-1.13l.71-.7a4.468 4.468 0 0 1 0 6.34zM13.068 1l-.71.71a5.43 5.43 0 0 1 0 7.74l.71.71a6.45 6.45 0 0 0 0-9.16zM9.993 5.43a1.5 1.5 0 0 1-.245.98a2 2 0 0 1-.27.23l3.44 7.73l-.92.4l-.77-1.73h-5.54l-.77 1.73l-.92-.4l3.44-7.73a1.52 1.52 0 0 1-.33-1.63a1.55 1.55 0 0 1 .56-.68a1.5 1.5 0 0 1 2.325 1.1zm-1.595-.34a.52.52 0 0 0-.25.14a.52.52 0 0 0-.11.22a.48.48 0 0 0 0 .29c.04.09.102.17.18.23a.54.54 0 0 0 .28.08a.51.51 0 0 0 .5-.5a.54.54 0 0 0-.08-.28a.58.58 0 0 0-.23-.18a.48.48 0 0 0-.29 0zm.23 2.05h-.27l-.87 1.94h2l-.86-1.94zm2.2 4.94l-.89-2h-2.88l-.89 2h4.66z' clip-rule='evenodd'/%3E%3C/svg%3E");mask:var(--un-icon) no-repeat;mask-size:100% 100%;-webkit-mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;background-color:currentColor;width:1em;height:1em;}.i-codicon-terminal{--un-icon:url("data:image/svg+xml;utf8,%3Csvg preserveAspectRatio='xMidYMid meet' viewBox='0 0 24 24' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' fill-rule='evenodd' d='M3 1.5L1.5 3v18L3 22.5h18l1.5-1.5V3L21 1.5H3zM3 21V3h18v18H3zm5.656-4.01l1.038 1.061l5.26-5.243v-.912l-5.26-5.26l-1.035 1.06l4.59 4.702l-4.593 4.592z' clip-rule='evenodd'/%3E%3C/svg%3E");mask:var(--un-icon) no-repeat;mask-size:100% 100%;-webkit-mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;background-color:currentColor;width:1em;height:1em;}.i-codicon-terminal-bash{--un-icon:url("data:image/svg+xml;utf8,%3Csvg preserveAspectRatio='xMidYMid meet' viewBox='0 0 16 16' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M13.655 3.56L8.918.75a1.785 1.785 0 0 0-1.82 0L2.363 3.56a1.889 1.889 0 0 0-.921 1.628v5.624a1.889 1.889 0 0 0 .913 1.627l4.736 2.812a1.785 1.785 0 0 0 1.82 0l4.736-2.812a1.888 1.888 0 0 0 .913-1.627V5.188a1.889 1.889 0 0 0-.904-1.627zm-3.669 8.781v.404a.149.149 0 0 1-.07.124l-.239.137c-.038.02-.07 0-.07-.053v-.396a.78.78 0 0 1-.545.053a.073.073 0 0 1-.027-.09l.086-.365a.153.153 0 0 1 .071-.096a.048.048 0 0 1 .038 0a.662.662 0 0 0 .497-.063a.662.662 0 0 0 .37-.567c0-.206-.112-.292-.384-.293c-.344 0-.661-.066-.67-.574A1.47 1.47 0 0 1 9.6 9.437V9.03a.147.147 0 0 1 .07-.126l.231-.147c.038-.02.07 0 .07.054v.409a.754.754 0 0 1 .453-.055a.073.073 0 0 1 .03.095l-.081.362a.156.156 0 0 1-.065.09a.055.055 0 0 1-.035 0a.6.6 0 0 0-.436.072a.549.549 0 0 0-.331.486c0 .185.098.242.425.248c.438 0 .627.199.632.639a1.568 1.568 0 0 1-.576 1.185zm2.481-.68a.094.094 0 0 1-.036.092l-1.198.727a.034.034 0 0 1-.04.003a.035.035 0 0 1-.016-.037v-.31a.086.086 0 0 1 .055-.076l1.179-.706a.035.035 0 0 1 .056.035v.273zm.827-6.914L8.812 7.515c-.559.331-.97.693-.97 1.367v5.52c0 .404.165.662.413.741a1.465 1.465 0 0 1-.248.025c-.264 0-.522-.072-.748-.207L2.522 12.15a1.558 1.558 0 0 1-.75-1.338V5.188a1.558 1.558 0 0 1 .75-1.34l4.738-2.81a1.46 1.46 0 0 1 1.489 0l4.736 2.812a1.548 1.548 0 0 1 .728 1.083c-.154-.334-.508-.427-.92-.185h.002z'/%3E%3C/svg%3E");mask:var(--un-icon) no-repeat;mask-size:100% 100%;-webkit-mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;background-color:currentColor;width:1em;height:1em;}.i-codicon-window{--un-icon:url("data:image/svg+xml;utf8,%3Csvg preserveAspectRatio='xMidYMid meet' viewBox='0 0 16 16' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M14.5 2h-13l-.5.5v11l.5.5h13l.5-.5v-11l-.5-.5zM14 13H2V6h12v7zm0-8H2V3h12v2z'/%3E%3C/svg%3E");mask:var(--un-icon) no-repeat;mask-size:100% 100%;-webkit-mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;background-color:currentColor;width:1em;height:1em;}.i-ph-broadcast{--un-icon:url("data:image/svg+xml;utf8,%3Csvg preserveAspectRatio='xMidYMid meet' viewBox='0 0 256 256' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M128 88a40 40 0 1 0 40 40a40 40 0 0 0-40-40Zm0 64a24 24 0 1 1 24-24a24.1 24.1 0 0 1-24 24Zm-59-48.9a64.5 64.5 0 0 0 0 49.8a65.4 65.4 0 0 0 13.7 20.4a7.9 7.9 0 0 1 0 11.3a8 8 0 0 1-5.6 2.3a8.3 8.3 0 0 1-5.7-2.3a80 80 0 0 1-17.1-25.5a79.9 79.9 0 0 1 0-62.2a80 80 0 0 1 17.1-25.5a8 8 0 0 1 11.3 0a7.9 7.9 0 0 1 0 11.3A65.4 65.4 0 0 0 69 103.1Zm132.7 56a80 80 0 0 1-17.1 25.5a8.3 8.3 0 0 1-5.7 2.3a8 8 0 0 1-5.6-2.3a7.9 7.9 0 0 1 0-11.3a65.4 65.4 0 0 0 13.7-20.4a64.5 64.5 0 0 0 0-49.8a65.4 65.4 0 0 0-13.7-20.4a7.9 7.9 0 0 1 0-11.3a8 8 0 0 1 11.3 0a80 80 0 0 1 17.1 25.5a79.9 79.9 0 0 1 0 62.2ZM54.5 201.5a8.1 8.1 0 0 1 0 11.4a8.3 8.3 0 0 1-5.7 2.3a8.5 8.5 0 0 1-5.7-2.3a121.8 121.8 0 0 1-25.7-38.2a120.7 120.7 0 0 1 0-93.4a121.8 121.8 0 0 1 25.7-38.2a8.1 8.1 0 0 1 11.4 11.4A103.5 103.5 0 0 0 24 128a103.5 103.5 0 0 0 30.5 73.5ZM248 128a120.2 120.2 0 0 1-9.4 46.7a121.8 121.8 0 0 1-25.7 38.2a8.5 8.5 0 0 1-5.7 2.3a8.3 8.3 0 0 1-5.7-2.3a8.1 8.1 0 0 1 0-11.4A103.5 103.5 0 0 0 232 128a103.5 103.5 0 0 0-30.5-73.5a8.1 8.1 0 1 1 11.4-11.4a121.8 121.8 0 0 1 25.7 38.2A120.2 120.2 0 0 1 248 128Z'/%3E%3C/svg%3E");mask:var(--un-icon) no-repeat;mask-size:100% 100%;-webkit-mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;background-color:currentColor;width:1em;height:1em;}.i-ph-hand-waving{--un-icon:url("data:image/svg+xml;utf8,%3Csvg preserveAspectRatio='xMidYMid meet' viewBox='0 0 256 256' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='m220.2 104l-20-34.7a28.1 28.1 0 0 0-47.3-1.9l-17.3-30a28.1 28.1 0 0 0-38.3-10.3a29.4 29.4 0 0 0-9.9 9.6a27.9 27.9 0 0 0-11.5-6.2a27.2 27.2 0 0 0-21.2 2.8a27.9 27.9 0 0 0-10.3 38.2l3.4 5.8A28.5 28.5 0 0 0 36 81a28.1 28.1 0 0 0-10.2 38.2l42 72.8a88 88 0 1 0 152.4-88Zm-6.7 62.6a71.2 71.2 0 0 1-33.5 43.7A72.1 72.1 0 0 1 81.6 184l-42-72.8a12 12 0 0 1 20.8-12l22 38.1l.6.9v.2l.5.5l.2.2l.7.6h.1l.7.5h.3l.6.3h.2l.9.3h.1l.8.2h2.2l.9-.2h.3l.6-.2h.3l.9-.4a8.1 8.1 0 0 0 2.9-11l-22-38.1l-16-27.7a12 12 0 0 1-1.2-9.1a11.8 11.8 0 0 1 5.6-7.3a12 12 0 0 1 9.1-1.2a12.5 12.5 0 0 1 7.3 5.6l8 14h.1l26 45a7 7 0 0 0 1.5 1.9a8 8 0 0 0 12.3-9.9l-26-45a12 12 0 1 1 20.8-12l30 51.9l6.3 11a48.1 48.1 0 0 0-10.9 61a8 8 0 0 0 13.8-8a32 32 0 0 1 11.7-43.7l.7-.4l.5-.4h.1l.6-.6l.5-.5l.4-.5l.3-.6h.1l.2-.5v-.2a1.9 1.9 0 0 0 .2-.7h.1c0-.2.1-.4.1-.6s0-.2.1-.2v-2.1a6.4 6.4 0 0 0-.2-.7a1.9 1.9 0 0 0-.2-.7v-.2c0-.2-.1-.3-.2-.5l-.3-.7l-10-17.4a12 12 0 0 1 13.5-17.5a11.8 11.8 0 0 1 7.2 5.5l20 34.7a70.9 70.9 0 0 1 7.2 53.8Zm-125.8 78a8.2 8.2 0 0 1-6.6 3.4a8.6 8.6 0 0 1-4.6-1.4A117.9 117.9 0 0 1 41.1 208a8 8 0 1 1 13.8-8a102.6 102.6 0 0 0 30.8 33.4a8.1 8.1 0 0 1 2 11.2ZM168 31a8 8 0 0 1 8-8a60.2 60.2 0 0 1 52 30a7.9 7.9 0 0 1-3 10.9a7.1 7.1 0 0 1-4 1.1a8 8 0 0 1-6.9-4A44 44 0 0 0 176 39a8 8 0 0 1-8-8Z'/%3E%3C/svg%3E");mask:var(--un-icon) no-repeat;mask-size:100% 100%;-webkit-mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;background-color:currentColor;width:1em;height:1em;}.i-ph-moon{--un-icon:url("data:image/svg+xml;utf8,%3Csvg preserveAspectRatio='xMidYMid meet' viewBox='0 0 256 256' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M224.3 150.3a8.1 8.1 0 0 0-7.8-5.7l-2.2.4A84 84 0 0 1 111 41.6a5.7 5.7 0 0 0 .3-1.8a7.9 7.9 0 0 0-10.3-8.1a100 100 0 1 0 123.3 123.2a7.2 7.2 0 0 0 0-4.6ZM128 212A84 84 0 0 1 92.8 51.7a99.9 99.9 0 0 0 111.5 111.5A84.4 84.4 0 0 1 128 212Z'/%3E%3C/svg%3E");mask:var(--un-icon) no-repeat;mask-size:100% 100%;-webkit-mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;background-color:currentColor;width:1em;height:1em;}.i-ph-sun{--un-icon:url("data:image/svg+xml;utf8,%3Csvg preserveAspectRatio='xMidYMid meet' viewBox='0 0 256 256' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M128 60a68 68 0 1 0 68 68a68.1 68.1 0 0 0-68-68Zm0 120a52 52 0 1 1 52-52a52 52 0 0 1-52 52Zm-8-144V16a8 8 0 0 1 16 0v20a8 8 0 0 1-16 0ZM43.1 54.5a8.1 8.1 0 1 1 11.4-11.4l14.1 14.2a8 8 0 0 1 0 11.3a8.1 8.1 0 0 1-11.3 0ZM36 136H16a8 8 0 0 1 0-16h20a8 8 0 0 1 0 16Zm32.6 51.4a8 8 0 0 1 0 11.3l-14.1 14.2a8.3 8.3 0 0 1-5.7 2.3a8.5 8.5 0 0 1-5.7-2.3a8.1 8.1 0 0 1 0-11.4l14.2-14.1a8 8 0 0 1 11.3 0ZM136 220v20a8 8 0 0 1-16 0v-20a8 8 0 0 1 16 0Zm76.9-18.5a8.1 8.1 0 0 1 0 11.4a8.5 8.5 0 0 1-5.7 2.3a8.3 8.3 0 0 1-5.7-2.3l-14.1-14.2a8 8 0 0 1 11.3-11.3ZM248 128a8 8 0 0 1-8 8h-20a8 8 0 0 1 0-16h20a8 8 0 0 1 8 8Zm-60.6-59.4a8 8 0 0 1 0-11.3l14.1-14.2a8.1 8.1 0 0 1 11.4 11.4l-14.2 14.1a8.1 8.1 0 0 1-11.3 0Z'/%3E%3C/svg%3E");mask:var(--un-icon) no-repeat;mask-size:100% 100%;-webkit-mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;background-color:currentColor;width:1em;height:1em;}.note{position:relative;display:inline-flex;align-items:center;border-left-width:4px;border-left-style:solid;--un-border-opacity:1;border-color:rgba(53,120,229,var(--un-border-opacity));border-radius:0.25rem;background-color:rgba(53,120,229,0.1);padding:0.5rem;text-decoration:none;}.note-red{position:relative;display:inline-flex;align-items:center;border-left-width:4px;border-left-style:solid;--un-border-opacity:1;border-color:rgba(53,120,229,var(--un-border-opacity));border-radius:0.25rem;background-color:rgba(53,120,229,0.1);background-color:rgba(185,28,28,0.1);padding:0.5rem;text-decoration:none;}.nv{position:relative;display:flex;align-items:center;border-radius:0.25rem;padding:0.5rem;--un-text-opacity:1;color:rgba(194,197,202,var(--un-text-opacity));text-decoration:none;transition-property:all;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-duration:125ms;}.nv_selected{position:relative;display:flex;align-items:center;border-left-width:4px;border-left-style:solid;border-radius:0.25rem;--un-bg-opacity:.05;background-color:hsla(0,0%,100%,var(--un-bg-opacity));padding:0.5rem;--un-text-opacity:1;color:rgba(194,197,202,var(--un-text-opacity));color:rgba(53,120,229,var(--un-text-opacity));text-decoration:none;transition-property:all;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-duration:125ms;}.input{height:2.5rem;display:flex;align-items:center;border-radius:0.25rem;border-style:none;--un-bg-opacity:1;background-color:rgba(233,236,239,var(--un-bg-opacity));padding:0.5rem;--un-text-opacity:1;color:rgba(28,30,33,var(--un-text-opacity));--un-shadow:var(--un-shadow-inset) 0 4px 6px -1px var(--un-shadow-color, rgba(0,0,0,0.1)),var(--un-shadow-inset) 0 2px 4px -2px var(--un-shadow-color, rgba(0,0,0,0.1));box-shadow:var(--un-ring-offset-shadow, 0 0 #0000), var(--un-ring-shadow, 0 0 #0000), var(--un-shadow);outline:2px solid transparent;outline-offset:2px;}.btn{user-select:none;border-radius:0.25rem;border-style:none;--un-bg-opacity:1;background-color:rgba(53,120,229,var(--un-bg-opacity));padding:0.5rem;font-weight:400;--un-text-opacity:1;color:rgba(28,30,33,var(--un-text-opacity));color:rgba(255,255,255,var(--un-text-opacity));--un-shadow:var(--un-shadow-inset) 0 4px 6px -1px var(--un-shadow-color, rgba(0,0,0,0.1)),var(--un-shadow-inset) 0 2px 4px -2px var(--un-shadow-color, rgba(0,0,0,0.1));box-shadow:var(--un-ring-offset-shadow, 0 0 #0000), var(--un-ring-shadow, 0 0 #0000), var(--un-shadow);outline:2px solid transparent;outline-offset:2px;}.nv_selected:hover,.nv:hover{border-left-width:4px;border-left-style:solid;--un-bg-opacity:.05;background-color:hsla(0,0%,100%,var(--un-bg-opacity));--un-text-opacity:1;color:rgba(53,120,229,var(--un-text-opacity));}.dark .note{--un-border-opacity:1;border-color:rgba(103,214,237,var(--un-border-opacity));background-color:rgba(103,214,237,0.1);}.dark .note-red{--un-border-opacity:1;border-color:rgba(103,214,237,var(--un-border-opacity));background-color:rgba(103,214,237,0.1);background-color:rgba(185,28,28,0.1);}.btn:hover{--un-bg-opacity:1;background-color:rgba(45,102,195,var(--un-bg-opacity));}.dark .btn{--un-bg-opacity:1;background-color:rgba(103,214,237,var(--un-bg-opacity));font-weight:600;--un-text-opacity:1;color:rgba(28,30,33,var(--un-text-opacity));}.dark .btn:hover{--un-bg-opacity:1;background-color:rgba(57,202,232,var(--un-bg-opacity));}.dark .input{--un-bg-opacity:1;background-color:rgba(36,37,38,var(--un-bg-opacity));--un-text-opacity:1;color:rgba(227,227,227,var(--un-text-opacity));}.dark .note-red::after,.note-red::after{--un-bg-opacity:1;background-color:rgba(185,28,28,var(--un-bg-opacity));}.btn:active{--un-bg-opacity:1;background-color:rgba(37,84,160,var(--un-bg-opacity));}.dark .btn:active{--un-bg-opacity:1;background-color:rgba(25,181,213,var(--un-bg-opacity));}.dark .nv_selected,.dark .nv_selected:hover,.dark .nv:hover{--un-text-opacity:1;color:rgba(103,214,237,var(--un-text-opacity));} ::-webkit-scrollbar-thumb { background-color: #3578E5; } .dark ::-webkit-scrollbar-thumb { background-color: #67d6ed; } code { font-size: 0.75rem; font-family: "Fira Code","Fira Mono",ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace; border-radius: 0.25rem; background-color: #d6d8da; } .code-block { font-family: "Fira Code","Fira Mono",ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace; font-size: 0.875rem; } .dark code { background-color: #282a2e; } .visible{visibility:visible;}.absolute{position:absolute;}.left-2{left:0.5rem;}.top-2{top:0.5rem;}.z-2000{z-index:2000;}.grid{display:grid;}.grid-rows-\[2fr_auto\]{grid-template-rows:2fr auto;}.grid-rows-\[2px_2rem_1fr\]{grid-template-rows:2px 2rem 1fr;}.grid-rows-\[auto_1fr\]{grid-template-rows:auto 1fr;}.my-2{margin-top:0.5rem;margin-bottom:0.5rem;}.mb-2{margin-bottom:0.5rem;}.mr-2{margin-right:0.5rem;}.display-none{display:none;}.children-h-10>*,.children\:h10>*{height:2.5rem;}.children\:h-100\%>*,.h-100\%{height:100%;}.children\:w-12>*{width:3rem;}.h-15rem{height:15rem;}.h-2px{height:2px;}.h-8{height:2rem;}.h-85\%{height:85%;}.h-screen{height:100vh;}.w-8{width:2rem;}.w-screen{width:100vw;}.flex{display:flex;}.children\:inline-flex>*{display:inline-flex;}.flex-1{flex:1 1 0%;}.children-flex-none>*{flex:none;}.children\:grow>*,.grow{flex-grow:1;}.flex-row{flex-direction:row;}.flex-col{flex-direction:column;}.flex-wrap{flex-wrap:wrap;}@keyframes fade-in{from{opacity:0}to{opacity:1}}@keyframes spin{from{transform:rotate(0deg)}to{transform:rotate(360deg)}}.animate-fade-in{animation:fade-in 1s linear 1;}.animate-spin{animation:spin 1s linear infinite;}.animate-duration-300ms{animation-duration:300ms;}.cursor-ns-resize{cursor:ns-resize;}.cursor-pointer{cursor:pointer;}.select-none{user-select:none;}.children\:items-center>*,.items-center{align-items:center;}.self-center{align-self:center;}.children\:justify-center>*,.justify-center{justify-content:center;}.justify-between{justify-content:space-between;}.gap-1{grid-gap:0.25rem;gap:0.25rem;}.gap-2{grid-gap:0.5rem;gap:0.5rem;}.overflow-hidden{overflow:hidden;}.overflow-y-auto{overflow-y:auto;}.rd-1{border-radius:0.25rem;}.rd-8{border-radius:2rem;}.bg-accent{--un-bg-opacity:1;background-color:rgba(53,120,229,var(--un-bg-opacity));}.bg-black\/20{background-color:rgba(0,0,0,0.2);}.bg-darkPrimaryLighter{--un-bg-opacity:1;background-color:rgba(36,37,38,var(--un-bg-opacity));}.bg-primary{--un-bg-opacity:1;background-color:rgba(255,255,255,var(--un-bg-opacity));}.bg-white\/5{background-color:rgba(255,255,255,0.05);}.dark .dark\:bg-darkAccent{--un-bg-opacity:1;background-color:rgba(103,214,237,var(--un-bg-opacity));}.dark .dark\:bg-darkPrimary{--un-bg-opacity:1;background-color:rgba(27,27,29,var(--un-bg-opacity));}.dark .dark\:hover\:bg-darkHoverOverlay:hover{--un-bg-opacity:.05;background-color:hsla(0,0%,100%,var(--un-bg-opacity));}.hover\:bg-hoverOverlay:hover{--un-bg-opacity:.05;background-color:rgba(0,0,0,var(--un-bg-opacity));}.active\:bg-accentDark:active{--un-bg-opacity:1;background-color:rgba(48,108,206,var(--un-bg-opacity));}.active\:bg-hoverOverlay\/25:active{background-color:rgba(0,0,0,0.25);}.active\:bg-hoverOverlayDarker:active{--un-bg-opacity:.1;background-color:rgba(0,0,0,var(--un-bg-opacity));}.dark .dark\:active\:bg-darkAccentDark:active{--un-bg-opacity:1;background-color:rgba(73,206,233,var(--un-bg-opacity));}.dark .dark\:active\:bg-darkHoverOverlay\/25:active{background-color:hsla(0,0%,100%,0.25);}.dark .dark\:active\:bg-darkHoverOverlayDarker:active{--un-bg-opacity:.1;background-color:hsla(0,0%,100%,var(--un-bg-opacity));}.p-1{padding:0.25rem;}.p-7{padding:1.75rem;}.px{padding-left:1rem;padding-right:1rem;}.px-2{padding-left:0.5rem;padding-right:0.5rem;}.px-5{padding-left:1.25rem;padding-right:1.25rem;}.children-pb-2>*{padding-bottom:0.5rem;}.children-pt8>*{padding-top:2rem;}.pl-2{padding-left:0.5rem;}.all\:font-mono *{font-family:"Fira Code","Fira Mono",ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;}.all\:text-xs *{font-size:0.75rem;line-height:1rem;}.text-sm{font-size:0.875rem;line-height:1.25rem;}.font-700{font-weight:700;}.font-semibold{font-weight:600;}.dark .dark\:text-darkAccent{--un-text-opacity:1;color:rgba(103,214,237,var(--un-text-opacity));}.dark .dark\:text-darkAccentText,.text-primaryText{--un-text-opacity:1;color:rgba(28,30,33,var(--un-text-opacity));}.dark .dark\:text-darkPrimaryText,.text-darkPrimaryText{--un-text-opacity:1;color:rgba(227,227,227,var(--un-text-opacity));}.text-accent{--un-text-opacity:1;color:rgba(53,120,229,var(--un-text-opacity));}.text-accentText{--un-text-opacity:1;color:rgba(255,255,255,var(--un-text-opacity));}.transition-colors-250{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-duration:250ms;}.transition-transform{transition-property:transform;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-duration:150ms;}@media (max-width: 639.9px){.lt-sm\:absolute{position:absolute;}.lt-sm\:z-1999{z-index:1999;}.lt-sm\:h-screen{height:100vh;}.lt-sm\:flex{display:flex;}.lt-sm\:pl-10{padding-left:2.5rem;}.lt-sm\:shadow{--un-shadow:var(--un-shadow-inset) 0 1px 3px 0 var(--un-shadow-color, rgba(0,0,0,0.1)),var(--un-shadow-inset) 0 1px 2px -1px var(--un-shadow-color, rgba(0,0,0,0.1));box-shadow:var(--un-ring-offset-shadow, 0 0 #0000), var(--un-ring-shadow, 0 0 #0000), var(--un-shadow);}.lt-sm\:shadow-lg{--un-shadow:var(--un-shadow-inset) 0 10px 15px -3px var(--un-shadow-color, rgba(0,0,0,0.1)),var(--un-shadow-inset) 0 4px 6px -4px var(--un-shadow-color, rgba(0,0,0,0.1));box-shadow:var(--un-ring-offset-shadow, 0 0 #0000), var(--un-ring-shadow, 0 0 #0000), var(--un-shadow);}.lt-sm\:transition-transform{transition-property:transform;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-duration:150ms;}}*:not(h1,h2,h3,h4,h5,h6){margin:0;padding:0}*{box-sizing:border-box;font-family:Rubik,sans-serif}::-webkit-scrollbar{width:.25rem;height:3px}::-webkit-scrollbar-track{background:transparent}::-webkit-scrollbar-thumb{border-radius:.25rem}code{padding:.05rem .25rem}code.code-block{padding:.5rem}#sidebar{width:18.75rem}@media screen and (max-width: 640px){#sidebar{--translate-x: -18.75rem;transform:translate(var(--translate-x))}}.spinner.svelte-4xesec{height:1.2rem;width:1.2rem;border-radius:50rem;color:currentColor;border:2px dashed currentColor} diff --git a/examples/api/dist/assets/index.js b/examples/api/dist/assets/index.js index 5f931eb2106..c387235ec21 100644 --- a/examples/api/dist/assets/index.js +++ b/examples/api/dist/assets/index.js @@ -1,44 +1,44 @@ -(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))i(s);new MutationObserver(s=>{for(const r of s)if(r.type==="childList")for(const u of r.addedNodes)u.tagName==="LINK"&&u.rel==="modulepreload"&&i(u)}).observe(document,{childList:!0,subtree:!0});function n(s){const r={};return s.integrity&&(r.integrity=s.integrity),s.referrerpolicy&&(r.referrerPolicy=s.referrerpolicy),s.crossorigin==="use-credentials"?r.credentials="include":s.crossorigin==="anonymous"?r.credentials="omit":r.credentials="same-origin",r}function i(s){if(s.ep)return;s.ep=!0;const r=n(s);fetch(s.href,r)}})();function F(){}function Kl(e){return e()}function Wl(){return Object.create(null)}function me(e){e.forEach(Kl)}function ws(e){return typeof e=="function"}function Se(e,t){return e!=e?t==t:e!==t||e&&typeof e=="object"||typeof e=="function"}let Nn;function ks(e,t){return Nn||(Nn=document.createElement("a")),Nn.href=t,e===Nn.href}function Ms(e){return Object.keys(e).length===0}function Ls(e,...t){if(e==null)return F;const n=e.subscribe(...t);return n.unsubscribe?()=>n.unsubscribe():n}function zs(e,t,n){e.$$.on_destroy.push(Ls(t,n))}function l(e,t){e.appendChild(t)}function _(e,t,n){e.insertBefore(t,n||null)}function h(e){e.parentNode.removeChild(e)}function Vn(e,t){for(let n=0;ne.removeEventListener(t,n,i)}function Al(e){return function(t){return t.preventDefault(),e.call(this,t)}}function o(e,t,n){n==null?e.removeAttribute(t):e.getAttribute(t)!==n&&e.setAttribute(t,n)}function Z(e){return e===""?null:+e}function Cs(e){return Array.from(e.childNodes)}function J(e,t){t=""+t,e.wholeText!==t&&(e.data=t)}function U(e,t){e.value=t==null?"":t}function xn(e,t){for(let n=0;n{jn.delete(e),i&&(n&&e.d(1),i())}),e.o(t)}else i&&i()}function Pl(e){e&&e.c()}function ki(e,t,n,i){const{fragment:s,on_mount:r,on_destroy:u,after_update:f}=e.$$;s&&s.m(t,n),i||Nt(()=>{const d=r.map(Kl).filter(ws);u?u.push(...d):me(d),e.$$.on_mount=[]}),f.forEach(Nt)}function Mi(e,t){const n=e.$$;n.fragment!==null&&(me(n.on_destroy),n.fragment&&n.fragment.d(t),n.on_destroy=n.fragment=null,n.ctx=[])}function Ds(e,t){e.$$.dirty[0]===-1&&(Dt.push(e),Ts(),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<{const b=L.length?L[0]:v;return p.ctx&&s(p.ctx[y],p.ctx[y]=b)&&(!p.skip_bound&&p.bound[y]&&p.bound[y](b),g&&Ds(e,y)),v}):[],p.update(),g=!0,me(p.before_update),p.fragment=i?i(p.ctx):!1,t.target){if(t.hydrate){const y=Cs(t.target);p.fragment&&p.fragment.l(y),y.forEach(h)}else p.fragment&&p.fragment.c();t.intro&&wi(e.$$.fragment),ki(e,t.target,t.anchor,t.customElement),Zl()}It(d)}class Te{$destroy(){Mi(this,1),this.$destroy=F}$on(t,n){const i=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return i.push(n),()=>{const s=i.indexOf(n);s!==-1&&i.splice(s,1)}}$set(t){this.$$set&&!Ms(t)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}const zt=[];function Is(e,t=F){let n;const i=new Set;function s(f){if(Se(e,f)&&(e=f,n)){const d=!zt.length;for(const p of i)p[1](),zt.push(p,e);if(d){for(let p=0;p{i.delete(p),i.size===0&&(n(),n=null)}}return{set:s,update:r,subscribe:u}}var Rs=Object.defineProperty,He=(e,t)=>{for(var n in t)Rs(e,n,{get:t[n],enumerable:!0})},Ns={};He(Ns,{convertFileSrc:()=>Us,invoke:()=>Ut,transformCallback:()=>Ht});function Hs(){return window.crypto.getRandomValues(new Uint32Array(1))[0]}function Ht(e,t=!1){let n=Hs(),i=`_${n}`;return Object.defineProperty(window,i,{value:s=>(t&&Reflect.deleteProperty(window,i),e==null?void 0:e(s)),writable:!1,configurable:!0}),n}async function Ut(e,t={}){return new Promise((n,i)=>{let s=Ht(u=>{n(u),Reflect.deleteProperty(window,`_${r}`)},!0),r=Ht(u=>{i(u),Reflect.deleteProperty(window,`_${s}`)},!0);window.__TAURI_IPC__({cmd:e,callback:s,error:r,...t})})}function Us(e,t="asset"){let n=encodeURIComponent(e);return navigator.userAgent.includes("Windows")?`https://${t}.localhost/${n}`:`${t}://localhost/${n}`}async function k(e){return Ut("tauri",e)}var js={};He(js,{Child:()=>es,Command:()=>Gn,EventEmitter:()=>qn,open:()=>zi});async function qs(e,t,n=[],i){return typeof n=="object"&&Object.freeze(n),k({__tauriModule:"Shell",message:{cmd:"execute",program:t,args:n,options:i,onEventFn:Ht(e)}})}var qn=class{constructor(){this.eventListeners=Object.create(null)}addListener(e,t){return this.on(e,t)}removeListener(e,t){return this.off(e,t)}on(e,t){return e in this.eventListeners?this.eventListeners[e].push(t):this.eventListeners[e]=[t],this}once(e,t){let n=i=>{this.removeListener(e,n),t(i)};return this.addListener(e,n)}off(e,t){return e in this.eventListeners&&(this.eventListeners[e]=this.eventListeners[e].filter(n=>n!==t)),this}removeAllListeners(e){return e?delete this.eventListeners[e]:this.eventListeners=Object.create(null),this}emit(e,t){if(e in this.eventListeners){let n=this.eventListeners[e];for(let i of n)i(t);return!0}return!1}listenerCount(e){return e in this.eventListeners?this.eventListeners[e].length:0}prependListener(e,t){return e in this.eventListeners?this.eventListeners[e].unshift(t):this.eventListeners[e]=[t],this}prependOnceListener(e,t){let n=i=>{this.removeListener(e,n),t(i)};return this.prependListener(e,n)}},es=class{constructor(e){this.pid=e}async write(e){return k({__tauriModule:"Shell",message:{cmd:"stdinWrite",pid:this.pid,buffer:typeof e=="string"?e:Array.from(e)}})}async kill(){return k({__tauriModule:"Shell",message:{cmd:"killChild",pid:this.pid}})}},Gn=class extends qn{constructor(e,t=[],n){super(),this.stdout=new qn,this.stderr=new qn,this.program=e,this.args=typeof t=="string"?[t]:t,this.options=n!=null?n:{}}static create(e,t=[],n){return new Gn(e,t,n)}static sidecar(e,t=[],n){let i=new Gn(e,t,n);return i.options.sidecar=!0,i}async spawn(){return qs(e=>{switch(e.event){case"Error":this.emit("error",e.payload);break;case"Terminated":this.emit("close",e.payload);break;case"Stdout":this.stdout.emit("data",e.payload);break;case"Stderr":this.stderr.emit("data",e.payload);break}},this.program,this.args,this.options).then(e=>new es(e))}async execute(){return new Promise((e,t)=>{this.on("error",t);let n=[],i=[];this.stdout.on("data",s=>{n.push(s)}),this.stderr.on("data",s=>{i.push(s)}),this.on("close",s=>{e({code:s.code,signal:s.signal,stdout:this.collectOutput(n),stderr:this.collectOutput(i)})}),this.spawn().catch(t)})}collectOutput(e){return this.options.encoding==="raw"?e.reduce((t,n)=>new Uint8Array([...t,...n,10]),new Uint8Array):e.join(` -`)}};async function zi(e,t){return k({__tauriModule:"Shell",message:{cmd:"open",path:e,with:t}})}var Fs={};He(Fs,{TauriEvent:()=>ls,emit:()=>Yn,listen:()=>jt,once:()=>ss});async function ts(e,t){return k({__tauriModule:"Event",message:{cmd:"unlisten",event:e,eventId:t}})}async function ns(e,t,n){await k({__tauriModule:"Event",message:{cmd:"emit",event:e,windowLabel:t,payload:n}})}async function Si(e,t,n){return k({__tauriModule:"Event",message:{cmd:"listen",event:e,windowLabel:t,handler:Ht(n)}}).then(i=>async()=>ts(e,i))}async function is(e,t,n){return Si(e,t,i=>{n(i),ts(e,i.id).catch(()=>{})})}var ls=(e=>(e.WINDOW_RESIZED="tauri://resize",e.WINDOW_MOVED="tauri://move",e.WINDOW_CLOSE_REQUESTED="tauri://close-requested",e.WINDOW_CREATED="tauri://window-created",e.WINDOW_DESTROYED="tauri://destroyed",e.WINDOW_FOCUS="tauri://focus",e.WINDOW_BLUR="tauri://blur",e.WINDOW_SCALE_FACTOR_CHANGED="tauri://scale-change",e.WINDOW_THEME_CHANGED="tauri://theme-changed",e.WINDOW_FILE_DROP="tauri://file-drop",e.WINDOW_FILE_DROP_HOVER="tauri://file-drop-hover",e.WINDOW_FILE_DROP_CANCELLED="tauri://file-drop-cancelled",e.MENU="tauri://menu",e.CHECK_UPDATE="tauri://update",e.UPDATE_AVAILABLE="tauri://update-available",e.INSTALL_UPDATE="tauri://update-install",e.STATUS_UPDATE="tauri://update-status",e.DOWNLOAD_PROGRESS="tauri://update-download-progress",e))(ls||{});async function jt(e,t){return Si(e,null,t)}async function ss(e,t){return is(e,null,t)}async function Yn(e,t){return ns(e,void 0,t)}var Vs={};He(Vs,{CloseRequestedEvent:()=>cs,LogicalPosition:()=>as,LogicalSize:()=>$n,PhysicalPosition:()=>Ze,PhysicalSize:()=>ut,UserAttentionType:()=>Ci,WebviewWindow:()=>dt,WebviewWindowHandle:()=>rs,WindowManager:()=>us,appWindow:()=>ct,availableMonitors:()=>$s,currentMonitor:()=>xs,getAll:()=>os,getCurrent:()=>Fn,primaryMonitor:()=>Gs});var $n=class{constructor(e,t){this.type="Logical",this.width=e,this.height=t}},ut=class{constructor(e,t){this.type="Physical",this.width=e,this.height=t}toLogical(e){return new $n(this.width/e,this.height/e)}},as=class{constructor(e,t){this.type="Logical",this.x=e,this.y=t}},Ze=class{constructor(e,t){this.type="Physical",this.x=e,this.y=t}toLogical(e){return new as(this.x/e,this.y/e)}},Ci=(e=>(e[e.Critical=1]="Critical",e[e.Informational=2]="Informational",e))(Ci||{});function Fn(){return new dt(window.__TAURI_METADATA__.__currentWindow.label,{skip:!0})}function os(){return window.__TAURI_METADATA__.__windows.map(e=>new dt(e.label,{skip:!0}))}var Dl=["tauri://created","tauri://error"],rs=class{constructor(e){this.label=e,this.listeners=Object.create(null)}async listen(e,t){return this._handleTauriEvent(e,t)?Promise.resolve(()=>{let n=this.listeners[e];n.splice(n.indexOf(t),1)}):Si(e,this.label,t)}async once(e,t){return this._handleTauriEvent(e,t)?Promise.resolve(()=>{let n=this.listeners[e];n.splice(n.indexOf(t),1)}):is(e,this.label,t)}async emit(e,t){if(Dl.includes(e)){for(let n of this.listeners[e]||[])n({event:e,id:-1,windowLabel:this.label,payload:t});return Promise.resolve()}return ns(e,this.label,t)}_handleTauriEvent(e,t){return Dl.includes(e)?(e in this.listeners?this.listeners[e].push(t):this.listeners[e]=[t],!0):!1}},us=class extends rs{async scaleFactor(){return k({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"scaleFactor"}}}})}async innerPosition(){return k({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"innerPosition"}}}}).then(({x:e,y:t})=>new Ze(e,t))}async outerPosition(){return k({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"outerPosition"}}}}).then(({x:e,y:t})=>new Ze(e,t))}async innerSize(){return k({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"innerSize"}}}}).then(({width:e,height:t})=>new ut(e,t))}async outerSize(){return k({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"outerSize"}}}}).then(({width:e,height:t})=>new ut(e,t))}async isFullscreen(){return k({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"isFullscreen"}}}})}async isMinimized(){return k({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"isMinimized"}}}})}async isMaximized(){return k({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"isMaximized"}}}})}async isDecorated(){return k({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"isDecorated"}}}})}async isResizable(){return k({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"isResizable"}}}})}async isVisible(){return k({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"isVisible"}}}})}async title(){return k({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"title"}}}})}async theme(){return k({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"theme"}}}})}async center(){return k({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"center"}}}})}async requestUserAttention(e){let t=null;return e&&(e===1?t={type:"Critical"}:t={type:"Informational"}),k({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"requestUserAttention",payload:t}}}})}async setResizable(e){return k({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setResizable",payload:e}}}})}async setTitle(e){return k({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setTitle",payload:e}}}})}async maximize(){return k({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"maximize"}}}})}async unmaximize(){return k({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"unmaximize"}}}})}async toggleMaximize(){return k({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"toggleMaximize"}}}})}async minimize(){return k({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"minimize"}}}})}async unminimize(){return k({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"unminimize"}}}})}async show(){return k({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"show"}}}})}async hide(){return k({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"hide"}}}})}async close(){return k({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"close"}}}})}async setDecorations(e){return k({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setDecorations",payload:e}}}})}async setShadow(e){return k({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setShadow",payload:e}}}})}async setAlwaysOnTop(e){return k({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setAlwaysOnTop",payload:e}}}})}async setContentProtected(e){return k({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setContentProtected",payload:e}}}})}async setSize(e){if(!e||e.type!=="Logical"&&e.type!=="Physical")throw new Error("the `size` argument must be either a LogicalSize or a PhysicalSize instance");return k({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setSize",payload:{type:e.type,data:{width:e.width,height:e.height}}}}}})}async setMinSize(e){if(e&&e.type!=="Logical"&&e.type!=="Physical")throw new Error("the `size` argument must be either a LogicalSize or a PhysicalSize instance");return k({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setMinSize",payload:e?{type:e.type,data:{width:e.width,height:e.height}}:null}}}})}async setMaxSize(e){if(e&&e.type!=="Logical"&&e.type!=="Physical")throw new Error("the `size` argument must be either a LogicalSize or a PhysicalSize instance");return k({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setMaxSize",payload:e?{type:e.type,data:{width:e.width,height:e.height}}:null}}}})}async setPosition(e){if(!e||e.type!=="Logical"&&e.type!=="Physical")throw new Error("the `position` argument must be either a LogicalPosition or a PhysicalPosition instance");return k({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setPosition",payload:{type:e.type,data:{x:e.x,y:e.y}}}}}})}async setFullscreen(e){return k({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setFullscreen",payload:e}}}})}async setFocus(){return k({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setFocus"}}}})}async setIcon(e){return k({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setIcon",payload:{icon:typeof e=="string"?e:Array.from(e)}}}}})}async setSkipTaskbar(e){return k({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setSkipTaskbar",payload:e}}}})}async setCursorGrab(e){return k({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setCursorGrab",payload:e}}}})}async setCursorVisible(e){return k({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setCursorVisible",payload:e}}}})}async setCursorIcon(e){return k({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setCursorIcon",payload:e}}}})}async setCursorPosition(e){if(!e||e.type!=="Logical"&&e.type!=="Physical")throw new Error("the `position` argument must be either a LogicalPosition or a PhysicalPosition instance");return k({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setCursorPosition",payload:{type:e.type,data:{x:e.x,y:e.y}}}}}})}async setIgnoreCursorEvents(e){return k({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setIgnoreCursorEvents",payload:e}}}})}async startDragging(){return k({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"startDragging"}}}})}async onResized(e){return this.listen("tauri://resize",e)}async onMoved(e){return this.listen("tauri://move",e)}async onCloseRequested(e){return this.listen("tauri://close-requested",t=>{let n=new cs(t);Promise.resolve(e(n)).then(()=>{if(!n.isPreventDefault())return this.close()})})}async onFocusChanged(e){let t=await this.listen("tauri://focus",i=>{e({...i,payload:!0})}),n=await this.listen("tauri://blur",i=>{e({...i,payload:!1})});return()=>{t(),n()}}async onScaleChanged(e){return this.listen("tauri://scale-change",e)}async onMenuClicked(e){return this.listen("tauri://menu",e)}async onFileDropEvent(e){let t=await this.listen("tauri://file-drop",s=>{e({...s,payload:{type:"drop",paths:s.payload}})}),n=await this.listen("tauri://file-drop-hover",s=>{e({...s,payload:{type:"hover",paths:s.payload}})}),i=await this.listen("tauri://file-drop-cancelled",s=>{e({...s,payload:{type:"cancel"}})});return()=>{t(),n(),i()}}async onThemeChanged(e){return this.listen("tauri://theme-changed",e)}},cs=class{constructor(e){this._preventDefault=!1,this.event=e.event,this.windowLabel=e.windowLabel,this.id=e.id}preventDefault(){this._preventDefault=!0}isPreventDefault(){return this._preventDefault}},dt=class extends us{constructor(e,t={}){super(e),t!=null&&t.skip||k({__tauriModule:"Window",message:{cmd:"createWebview",data:{options:{label:e,...t}}}}).then(async()=>this.emit("tauri://created")).catch(async n=>this.emit("tauri://error",n))}static getByLabel(e){return os().some(t=>t.label===e)?new dt(e,{skip:!0}):null}},ct;"__TAURI_METADATA__"in window?ct=new dt(window.__TAURI_METADATA__.__currentWindow.label,{skip:!0}):(console.warn(`Could not find "window.__TAURI_METADATA__". The "appWindow" value will reference the "main" window label. -Note that this is not an issue if running this frontend on a browser instead of a Tauri window.`),ct=new dt("main",{skip:!0}));function Wi(e){return e===null?null:{name:e.name,scaleFactor:e.scaleFactor,position:new Ze(e.position.x,e.position.y),size:new ut(e.size.width,e.size.height)}}async function xs(){return k({__tauriModule:"Window",message:{cmd:"manage",data:{cmd:{type:"currentMonitor"}}}}).then(Wi)}async function Gs(){return k({__tauriModule:"Window",message:{cmd:"manage",data:{cmd:{type:"primaryMonitor"}}}}).then(Wi)}async function $s(){return k({__tauriModule:"Window",message:{cmd:"manage",data:{cmd:{type:"availableMonitors"}}}}).then(e=>e.map(Wi))}function Ys(){return navigator.appVersion.includes("Win")}var Xs={};He(Xs,{EOL:()=>Bs,arch:()=>Qs,platform:()=>ds,tempdir:()=>Zs,type:()=>Js,version:()=>Ks});var Bs=Ys()?`\r +(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))i(s);new MutationObserver(s=>{for(const r of s)if(r.type==="childList")for(const u of r.addedNodes)u.tagName==="LINK"&&u.rel==="modulepreload"&&i(u)}).observe(document,{childList:!0,subtree:!0});function n(s){const r={};return s.integrity&&(r.integrity=s.integrity),s.referrerpolicy&&(r.referrerPolicy=s.referrerpolicy),s.crossorigin==="use-credentials"?r.credentials="include":s.crossorigin==="anonymous"?r.credentials="omit":r.credentials="same-origin",r}function i(s){if(s.ep)return;s.ep=!0;const r=n(s);fetch(s.href,r)}})();function F(){}function Bl(e){return e()}function Wl(){return Object.create(null)}function he(e){e.forEach(Bl)}function gs(e){return typeof e=="function"}function Se(e,t){return e!=e?t==t:e!==t||e&&typeof e=="object"||typeof e=="function"}let In;function vs(e,t){return In||(In=document.createElement("a")),In.href=t,e===In.href}function ys(e){return Object.keys(e).length===0}function ws(e,...t){if(e==null)return F;const n=e.subscribe(...t);return n.unsubscribe?()=>n.unsubscribe():n}function ks(e,t,n){e.$$.on_destroy.push(ws(t,n))}function l(e,t){e.appendChild(t)}function b(e,t,n){e.insertBefore(t,n||null)}function _(e){e.parentNode.removeChild(e)}function qn(e,t){for(let n=0;ne.removeEventListener(t,n,i)}function Cl(e){return function(t){return t.preventDefault(),e.call(this,t)}}function o(e,t,n){n==null?e.removeAttribute(t):e.getAttribute(t)!==n&&e.setAttribute(t,n)}function ee(e){return e===""?null:+e}function Ls(e){return Array.from(e.childNodes)}function Q(e,t){t=""+t,e.wholeText!==t&&(e.data=t)}function N(e,t){e.value=t==null?"":t}function Fn(e,t){for(let n=0;n{Un.delete(e),i&&(n&&e.d(1),i())}),e.o(t)}else i&&i()}function El(e){e&&e.c()}function yi(e,t,n,i){const{fragment:s,on_mount:r,on_destroy:u,after_update:p}=e.$$;s&&s.m(t,n),i||Ut(()=>{const d=r.map(Bl).filter(gs);u?u.push(...d):he(d),e.$$.on_mount=[]}),p.forEach(Ut)}function wi(e,t){const n=e.$$;n.fragment!==null&&(he(n.on_destroy),n.fragment&&n.fragment.d(t),n.on_destroy=n.fragment=null,n.ctx=[])}function Es(e,t){e.$$.dirty[0]===-1&&(It.push(e),Cs(),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<{const h=M.length?M[0]:y;return f.ctx&&s(f.ctx[v],f.ctx[v]=h)&&(!f.skip_bound&&f.bound[v]&&f.bound[v](h),g&&Es(e,v)),y}):[],f.update(),g=!0,he(f.before_update),f.fragment=i?i(f.ctx):!1,t.target){if(t.hydrate){const v=Ls(t.target);f.fragment&&f.fragment.l(v),v.forEach(_)}else f.fragment&&f.fragment.c();t.intro&&vi(e.$$.fragment),yi(e,t.target,t.anchor,t.customElement),$l()}Rt(d)}class He{$destroy(){wi(this,1),this.$destroy=F}$on(t,n){const i=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return i.push(n),()=>{const s=i.indexOf(n);s!==-1&&i.splice(s,1)}}$set(t){this.$$set&&!ys(t)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}const Wt=[];function Ps(e,t=F){let n;const i=new Set;function s(p){if(Se(e,p)&&(e=p,n)){const d=!Wt.length;for(const f of i)f[1](),Wt.push(f,e);if(d){for(let f=0;f{i.delete(f),i.size===0&&(n(),n=null)}}return{set:s,update:r,subscribe:u}}var Os=Object.defineProperty,Qe=(e,t)=>{for(var n in t)Os(e,n,{get:t[n],enumerable:!0})},Ds={};Qe(Ds,{convertFileSrc:()=>Rs,invoke:()=>jt,transformCallback:()=>Nt});function Is(){return window.crypto.getRandomValues(new Uint32Array(1))[0]}function Nt(e,t=!1){let n=Is(),i=`_${n}`;return Object.defineProperty(window,i,{value:s=>(t&&Reflect.deleteProperty(window,i),e==null?void 0:e(s)),writable:!1,configurable:!0}),n}async function jt(e,t={}){return new Promise((n,i)=>{let s=Nt(u=>{n(u),Reflect.deleteProperty(window,`_${r}`)},!0),r=Nt(u=>{i(u),Reflect.deleteProperty(window,`_${s}`)},!0);window.__TAURI_IPC__({cmd:e,callback:s,error:r,...t})})}function Rs(e,t="asset"){let n=encodeURIComponent(e);return navigator.userAgent.includes("Windows")?`https://${t}.localhost/${n}`:`${t}://localhost/${n}`}async function L(e){return jt("tauri",e)}var Hs={};Qe(Hs,{Child:()=>Ql,Command:()=>Vn,EventEmitter:()=>Nn,open:()=>Mi});async function Us(e,t,n=[],i){return typeof n=="object"&&Object.freeze(n),L({__tauriModule:"Shell",message:{cmd:"execute",program:t,args:n,options:i,onEventFn:Nt(e)}})}var Nn=class{constructor(){this.eventListeners=Object.create(null)}addListener(e,t){return this.on(e,t)}removeListener(e,t){return this.off(e,t)}on(e,t){return e in this.eventListeners?this.eventListeners[e].push(t):this.eventListeners[e]=[t],this}once(e,t){let n=i=>{this.removeListener(e,n),t(i)};return this.addListener(e,n)}off(e,t){return e in this.eventListeners&&(this.eventListeners[e]=this.eventListeners[e].filter(n=>n!==t)),this}removeAllListeners(e){return e?delete this.eventListeners[e]:this.eventListeners=Object.create(null),this}emit(e,t){if(e in this.eventListeners){let n=this.eventListeners[e];for(let i of n)i(t);return!0}return!1}listenerCount(e){return e in this.eventListeners?this.eventListeners[e].length:0}prependListener(e,t){return e in this.eventListeners?this.eventListeners[e].unshift(t):this.eventListeners[e]=[t],this}prependOnceListener(e,t){let n=i=>{this.removeListener(e,n),t(i)};return this.prependListener(e,n)}},Ql=class{constructor(e){this.pid=e}async write(e){return L({__tauriModule:"Shell",message:{cmd:"stdinWrite",pid:this.pid,buffer:typeof e=="string"?e:Array.from(e)}})}async kill(){return L({__tauriModule:"Shell",message:{cmd:"killChild",pid:this.pid}})}},Vn=class extends Nn{constructor(e,t=[],n){super(),this.stdout=new Nn,this.stderr=new Nn,this.program=e,this.args=typeof t=="string"?[t]:t,this.options=n!=null?n:{}}static create(e,t=[],n){return new Vn(e,t,n)}static sidecar(e,t=[],n){let i=new Vn(e,t,n);return i.options.sidecar=!0,i}async spawn(){return Us(e=>{switch(e.event){case"Error":this.emit("error",e.payload);break;case"Terminated":this.emit("close",e.payload);break;case"Stdout":this.stdout.emit("data",e.payload);break;case"Stderr":this.stderr.emit("data",e.payload);break}},this.program,this.args,this.options).then(e=>new Ql(e))}async execute(){return new Promise((e,t)=>{this.on("error",t);let n=[],i=[];this.stdout.on("data",s=>{n.push(s)}),this.stderr.on("data",s=>{i.push(s)}),this.on("close",s=>{e({code:s.code,signal:s.signal,stdout:this.collectOutput(n),stderr:this.collectOutput(i)})}),this.spawn().catch(t)})}collectOutput(e){return this.options.encoding==="raw"?e.reduce((t,n)=>new Uint8Array([...t,...n,10]),new Uint8Array):e.join(` +`)}};async function Mi(e,t){return L({__tauriModule:"Shell",message:{cmd:"open",path:e,with:t}})}var Ns={};Qe(Ns,{TauriEvent:()=>ns,emit:()=>Gn,listen:()=>qt,once:()=>is});async function Zl(e,t){return L({__tauriModule:"Event",message:{cmd:"unlisten",event:e,eventId:t}})}async function es(e,t,n){await L({__tauriModule:"Event",message:{cmd:"emit",event:e,windowLabel:t,payload:n}})}async function Li(e,t,n){return L({__tauriModule:"Event",message:{cmd:"listen",event:e,windowLabel:t,handler:Nt(n)}}).then(i=>async()=>Zl(e,i))}async function ts(e,t,n){return Li(e,t,i=>{n(i),Zl(e,i.id).catch(()=>{})})}var ns=(e=>(e.WINDOW_RESIZED="tauri://resize",e.WINDOW_MOVED="tauri://move",e.WINDOW_CLOSE_REQUESTED="tauri://close-requested",e.WINDOW_CREATED="tauri://window-created",e.WINDOW_DESTROYED="tauri://destroyed",e.WINDOW_FOCUS="tauri://focus",e.WINDOW_BLUR="tauri://blur",e.WINDOW_SCALE_FACTOR_CHANGED="tauri://scale-change",e.WINDOW_THEME_CHANGED="tauri://theme-changed",e.WINDOW_FILE_DROP="tauri://file-drop",e.WINDOW_FILE_DROP_HOVER="tauri://file-drop-hover",e.WINDOW_FILE_DROP_CANCELLED="tauri://file-drop-cancelled",e.MENU="tauri://menu",e.CHECK_UPDATE="tauri://update",e.UPDATE_AVAILABLE="tauri://update-available",e.INSTALL_UPDATE="tauri://update-install",e.STATUS_UPDATE="tauri://update-status",e.DOWNLOAD_PROGRESS="tauri://update-download-progress",e))(ns||{});async function qt(e,t){return Li(e,null,t)}async function is(e,t){return ts(e,null,t)}async function Gn(e,t){return es(e,void 0,t)}var js={};Qe(js,{CloseRequestedEvent:()=>rs,LogicalPosition:()=>ls,LogicalSize:()=>xn,PhysicalPosition:()=>$e,PhysicalSize:()=>rt,UserAttentionType:()=>zi,WebviewWindow:()=>ct,WebviewWindowHandle:()=>as,WindowManager:()=>os,appWindow:()=>ut,availableMonitors:()=>Vs,currentMonitor:()=>qs,getAll:()=>ss,getCurrent:()=>jn,primaryMonitor:()=>Fs});var xn=class{constructor(e,t){this.type="Logical",this.width=e,this.height=t}},rt=class{constructor(e,t){this.type="Physical",this.width=e,this.height=t}toLogical(e){return new xn(this.width/e,this.height/e)}},ls=class{constructor(e,t){this.type="Logical",this.x=e,this.y=t}},$e=class{constructor(e,t){this.type="Physical",this.x=e,this.y=t}toLogical(e){return new ls(this.x/e,this.y/e)}},zi=(e=>(e[e.Critical=1]="Critical",e[e.Informational=2]="Informational",e))(zi||{});function jn(){return new ct(window.__TAURI_METADATA__.__currentWindow.label,{skip:!0})}function ss(){return window.__TAURI_METADATA__.__windows.map(e=>new ct(e.label,{skip:!0}))}var Pl=["tauri://created","tauri://error"],as=class{constructor(e){this.label=e,this.listeners=Object.create(null)}async listen(e,t){return this._handleTauriEvent(e,t)?Promise.resolve(()=>{let n=this.listeners[e];n.splice(n.indexOf(t),1)}):Li(e,this.label,t)}async once(e,t){return this._handleTauriEvent(e,t)?Promise.resolve(()=>{let n=this.listeners[e];n.splice(n.indexOf(t),1)}):ts(e,this.label,t)}async emit(e,t){if(Pl.includes(e)){for(let n of this.listeners[e]||[])n({event:e,id:-1,windowLabel:this.label,payload:t});return Promise.resolve()}return es(e,this.label,t)}_handleTauriEvent(e,t){return Pl.includes(e)?(e in this.listeners?this.listeners[e].push(t):this.listeners[e]=[t],!0):!1}},os=class extends as{async scaleFactor(){return L({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"scaleFactor"}}}})}async innerPosition(){return L({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"innerPosition"}}}}).then(({x:e,y:t})=>new $e(e,t))}async outerPosition(){return L({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"outerPosition"}}}}).then(({x:e,y:t})=>new $e(e,t))}async innerSize(){return L({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"innerSize"}}}}).then(({width:e,height:t})=>new rt(e,t))}async outerSize(){return L({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"outerSize"}}}}).then(({width:e,height:t})=>new rt(e,t))}async isFullscreen(){return L({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"isFullscreen"}}}})}async isMinimized(){return L({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"isMinimized"}}}})}async isMaximized(){return L({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"isMaximized"}}}})}async isDecorated(){return L({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"isDecorated"}}}})}async isResizable(){return L({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"isResizable"}}}})}async isVisible(){return L({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"isVisible"}}}})}async title(){return L({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"title"}}}})}async theme(){return L({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"theme"}}}})}async center(){return L({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"center"}}}})}async requestUserAttention(e){let t=null;return e&&(e===1?t={type:"Critical"}:t={type:"Informational"}),L({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"requestUserAttention",payload:t}}}})}async setResizable(e){return L({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setResizable",payload:e}}}})}async setTitle(e){return L({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setTitle",payload:e}}}})}async maximize(){return L({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"maximize"}}}})}async unmaximize(){return L({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"unmaximize"}}}})}async toggleMaximize(){return L({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"toggleMaximize"}}}})}async minimize(){return L({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"minimize"}}}})}async unminimize(){return L({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"unminimize"}}}})}async show(){return L({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"show"}}}})}async hide(){return L({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"hide"}}}})}async close(){return L({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"close"}}}})}async setDecorations(e){return L({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setDecorations",payload:e}}}})}async setShadow(e){return L({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setShadow",payload:e}}}})}async setAlwaysOnTop(e){return L({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setAlwaysOnTop",payload:e}}}})}async setContentProtected(e){return L({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setContentProtected",payload:e}}}})}async setSize(e){if(!e||e.type!=="Logical"&&e.type!=="Physical")throw new Error("the `size` argument must be either a LogicalSize or a PhysicalSize instance");return L({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setSize",payload:{type:e.type,data:{width:e.width,height:e.height}}}}}})}async setMinSize(e){if(e&&e.type!=="Logical"&&e.type!=="Physical")throw new Error("the `size` argument must be either a LogicalSize or a PhysicalSize instance");return L({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setMinSize",payload:e?{type:e.type,data:{width:e.width,height:e.height}}:null}}}})}async setMaxSize(e){if(e&&e.type!=="Logical"&&e.type!=="Physical")throw new Error("the `size` argument must be either a LogicalSize or a PhysicalSize instance");return L({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setMaxSize",payload:e?{type:e.type,data:{width:e.width,height:e.height}}:null}}}})}async setPosition(e){if(!e||e.type!=="Logical"&&e.type!=="Physical")throw new Error("the `position` argument must be either a LogicalPosition or a PhysicalPosition instance");return L({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setPosition",payload:{type:e.type,data:{x:e.x,y:e.y}}}}}})}async setFullscreen(e){return L({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setFullscreen",payload:e}}}})}async setFocus(){return L({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setFocus"}}}})}async setIcon(e){return L({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setIcon",payload:{icon:typeof e=="string"?e:Array.from(e)}}}}})}async setSkipTaskbar(e){return L({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setSkipTaskbar",payload:e}}}})}async setCursorGrab(e){return L({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setCursorGrab",payload:e}}}})}async setCursorVisible(e){return L({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setCursorVisible",payload:e}}}})}async setCursorIcon(e){return L({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setCursorIcon",payload:e}}}})}async setCursorPosition(e){if(!e||e.type!=="Logical"&&e.type!=="Physical")throw new Error("the `position` argument must be either a LogicalPosition or a PhysicalPosition instance");return L({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setCursorPosition",payload:{type:e.type,data:{x:e.x,y:e.y}}}}}})}async setIgnoreCursorEvents(e){return L({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setIgnoreCursorEvents",payload:e}}}})}async startDragging(){return L({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"startDragging"}}}})}async onResized(e){return this.listen("tauri://resize",e)}async onMoved(e){return this.listen("tauri://move",e)}async onCloseRequested(e){return this.listen("tauri://close-requested",t=>{let n=new rs(t);Promise.resolve(e(n)).then(()=>{if(!n.isPreventDefault())return this.close()})})}async onFocusChanged(e){let t=await this.listen("tauri://focus",i=>{e({...i,payload:!0})}),n=await this.listen("tauri://blur",i=>{e({...i,payload:!1})});return()=>{t(),n()}}async onScaleChanged(e){return this.listen("tauri://scale-change",e)}async onMenuClicked(e){return this.listen("tauri://menu",e)}async onFileDropEvent(e){let t=await this.listen("tauri://file-drop",s=>{e({...s,payload:{type:"drop",paths:s.payload}})}),n=await this.listen("tauri://file-drop-hover",s=>{e({...s,payload:{type:"hover",paths:s.payload}})}),i=await this.listen("tauri://file-drop-cancelled",s=>{e({...s,payload:{type:"cancel"}})});return()=>{t(),n(),i()}}async onThemeChanged(e){return this.listen("tauri://theme-changed",e)}},rs=class{constructor(e){this._preventDefault=!1,this.event=e.event,this.windowLabel=e.windowLabel,this.id=e.id}preventDefault(){this._preventDefault=!0}isPreventDefault(){return this._preventDefault}},ct=class extends os{constructor(e,t={}){super(e),t!=null&&t.skip||L({__tauriModule:"Window",message:{cmd:"createWebview",data:{options:{label:e,...t}}}}).then(async()=>this.emit("tauri://created")).catch(async n=>this.emit("tauri://error",n))}static getByLabel(e){return ss().some(t=>t.label===e)?new ct(e,{skip:!0}):null}},ut;"__TAURI_METADATA__"in window?ut=new ct(window.__TAURI_METADATA__.__currentWindow.label,{skip:!0}):(console.warn(`Could not find "window.__TAURI_METADATA__". The "appWindow" value will reference the "main" window label. +Note that this is not an issue if running this frontend on a browser instead of a Tauri window.`),ut=new ct("main",{skip:!0}));function Wi(e){return e===null?null:{name:e.name,scaleFactor:e.scaleFactor,position:new $e(e.position.x,e.position.y),size:new rt(e.size.width,e.size.height)}}async function qs(){return L({__tauriModule:"Window",message:{cmd:"manage",data:{cmd:{type:"currentMonitor"}}}}).then(Wi)}async function Fs(){return L({__tauriModule:"Window",message:{cmd:"manage",data:{cmd:{type:"primaryMonitor"}}}}).then(Wi)}async function Vs(){return L({__tauriModule:"Window",message:{cmd:"manage",data:{cmd:{type:"availableMonitors"}}}}).then(e=>e.map(Wi))}function xs(){return navigator.appVersion.includes("Win")}var Gs={};Qe(Gs,{EOL:()=>Xs,arch:()=>Ks,platform:()=>us,tempdir:()=>Js,type:()=>Bs,version:()=>Ys});var Xs=xs()?`\r `:` -`;async function ds(){return k({__tauriModule:"Os",message:{cmd:"platform"}})}async function Ks(){return k({__tauriModule:"Os",message:{cmd:"version"}})}async function Js(){return k({__tauriModule:"Os",message:{cmd:"osType"}})}async function Qs(){return k({__tauriModule:"Os",message:{cmd:"arch"}})}async function Zs(){return k({__tauriModule:"Os",message:{cmd:"tempdir"}})}var ea={};He(ea,{getName:()=>ps,getTauriVersion:()=>ms,getVersion:()=>fs,hide:()=>_s,show:()=>hs});async function fs(){return k({__tauriModule:"App",message:{cmd:"getAppVersion"}})}async function ps(){return k({__tauriModule:"App",message:{cmd:"getAppName"}})}async function ms(){return k({__tauriModule:"App",message:{cmd:"getTauriVersion"}})}async function hs(){return k({__tauriModule:"App",message:{cmd:"show"}})}async function _s(){return k({__tauriModule:"App",message:{cmd:"hide"}})}var ta={};He(ta,{exit:()=>bs,relaunch:()=>Ai});async function bs(e=0){return k({__tauriModule:"Process",message:{cmd:"exit",exitCode:e}})}async function Ai(){return k({__tauriModule:"Process",message:{cmd:"relaunch"}})}function na(e){let t,n,i,s,r,u,f,d,p,g,y,v,L,b,W,S,Y,H,R,N,O,I,E,$,P,j;return{c(){t=a("p"),t.innerHTML=`This is a demo of Tauri's API capabilities using the @tauri-apps/api package. It's used as the main validation app, serving as the test bed of our +`;async function us(){return L({__tauriModule:"Os",message:{cmd:"platform"}})}async function Ys(){return L({__tauriModule:"Os",message:{cmd:"version"}})}async function Bs(){return L({__tauriModule:"Os",message:{cmd:"osType"}})}async function Ks(){return L({__tauriModule:"Os",message:{cmd:"arch"}})}async function Js(){return L({__tauriModule:"Os",message:{cmd:"tempdir"}})}var $s={};Qe($s,{getName:()=>ds,getTauriVersion:()=>fs,getVersion:()=>cs,hide:()=>ms,show:()=>ps});async function cs(){return L({__tauriModule:"App",message:{cmd:"getAppVersion"}})}async function ds(){return L({__tauriModule:"App",message:{cmd:"getAppName"}})}async function fs(){return L({__tauriModule:"App",message:{cmd:"getTauriVersion"}})}async function ps(){return L({__tauriModule:"App",message:{cmd:"show"}})}async function ms(){return L({__tauriModule:"App",message:{cmd:"hide"}})}var Qs={};Qe(Qs,{exit:()=>hs,relaunch:()=>Ci});async function hs(e=0){return L({__tauriModule:"Process",message:{cmd:"exit",exitCode:e}})}async function Ci(){return L({__tauriModule:"Process",message:{cmd:"relaunch"}})}function Zs(e){let t,n,i,s,r,u,p,d,f,g,v,y,M,h,W,T,G,H,U,R,E,I,P,X,O,j;return{c(){t=a("p"),t.innerHTML=`This is a demo of Tauri's API capabilities using the @tauri-apps/api package. It's used as the main validation app, serving as the test bed of our development process. In the future, this app will be used on Tauri's integration - tests.`,n=m(),i=a("br"),s=m(),r=a("br"),u=m(),f=a("pre"),d=w("App name: "),p=a("code"),g=w(e[2]),y=w(` -App version: `),v=a("code"),L=w(e[0]),b=w(` -Tauri version: `),W=a("code"),S=w(e[1]),Y=w(` -`),H=m(),R=a("br"),N=m(),O=a("div"),I=a("button"),I.textContent="Close application",E=m(),$=a("button"),$.textContent="Relaunch application",o(I,"class","btn"),o($,"class","btn"),o(O,"class","flex flex-wrap gap-1 shadow-")},m(T,x){_(T,t,x),_(T,n,x),_(T,i,x),_(T,s,x),_(T,r,x),_(T,u,x),_(T,f,x),l(f,d),l(f,p),l(p,g),l(f,y),l(f,v),l(v,L),l(f,b),l(f,W),l(W,S),l(f,Y),_(T,H,x),_(T,R,x),_(T,N,x),_(T,O,x),l(O,I),l(O,E),l(O,$),P||(j=[C(I,"click",e[3]),C($,"click",e[4])],P=!0)},p(T,[x]){x&4&&J(g,T[2]),x&1&&J(L,T[0]),x&2&&J(S,T[1])},i:F,o:F,d(T){T&&h(t),T&&h(n),T&&h(i),T&&h(s),T&&h(r),T&&h(u),T&&h(f),T&&h(H),T&&h(R),T&&h(N),T&&h(O),P=!1,me(j)}}}function ia(e,t,n){let i="0.0.0",s="0.0.0",r="Unknown";ps().then(d=>{n(2,r=d)}),fs().then(d=>{n(0,i=d)}),ms().then(d=>{n(1,s=d)});async function u(){await bs()}async function f(){await Ai()}return[i,s,r,u,f]}class la extends Te{constructor(t){super(),Ae(this,t,ia,na,Se,{})}}function sa(e){let t,n,i,s,r,u,f,d,p,g,y,v,L;return{c(){t=a("p"),t.innerHTML=`This binary can be run from the terminal and takes the following arguments: + tests.`,n=m(),i=a("br"),s=m(),r=a("br"),u=m(),p=a("pre"),d=w("App name: "),f=a("code"),g=w(e[2]),v=w(` +App version: `),y=a("code"),M=w(e[0]),h=w(` +Tauri version: `),W=a("code"),T=w(e[1]),G=w(` +`),H=m(),U=a("br"),R=m(),E=a("div"),I=a("button"),I.textContent="Close application",P=m(),X=a("button"),X.textContent="Relaunch application",o(I,"class","btn"),o(X,"class","btn"),o(E,"class","flex flex-wrap gap-1 shadow-")},m(S,V){b(S,t,V),b(S,n,V),b(S,i,V),b(S,s,V),b(S,r,V),b(S,u,V),b(S,p,V),l(p,d),l(p,f),l(f,g),l(p,v),l(p,y),l(y,M),l(p,h),l(p,W),l(W,T),l(p,G),b(S,H,V),b(S,U,V),b(S,R,V),b(S,E,V),l(E,I),l(E,P),l(E,X),O||(j=[A(I,"click",e[3]),A(X,"click",e[4])],O=!0)},p(S,[V]){V&4&&Q(g,S[2]),V&1&&Q(M,S[0]),V&2&&Q(T,S[1])},i:F,o:F,d(S){S&&_(t),S&&_(n),S&&_(i),S&&_(s),S&&_(r),S&&_(u),S&&_(p),S&&_(H),S&&_(U),S&&_(R),S&&_(E),O=!1,he(j)}}}function ea(e,t,n){let i="0.0.0",s="0.0.0",r="Unknown";ds().then(d=>{n(2,r=d)}),cs().then(d=>{n(0,i=d)}),fs().then(d=>{n(1,s=d)});async function u(){await hs()}async function p(){await Ci()}return[i,s,r,u,p]}class ta extends He{constructor(t){super(),Re(this,t,ea,Zs,Se,{})}}function na(e){let t,n,i,s,r,u,p,d,f,g,v,y,M;return{c(){t=a("p"),t.innerHTML=`This binary can be run from the terminal and takes the following arguments:
  --config <PATH>
   --theme <light|dark|system>
   --verbose
- Additionally, it has a update --background subcommand.`,n=m(),i=a("br"),s=m(),r=a("div"),r.textContent="Note that the arguments are only parsed, not implemented.",u=m(),f=a("br"),d=m(),p=a("br"),g=m(),y=a("button"),y.textContent="Get matches",o(r,"class","note"),o(y,"class","btn"),o(y,"id","cli-matches")},m(b,W){_(b,t,W),_(b,n,W),_(b,i,W),_(b,s,W),_(b,r,W),_(b,u,W),_(b,f,W),_(b,d,W),_(b,p,W),_(b,g,W),_(b,y,W),v||(L=C(y,"click",e[0]),v=!0)},p:F,i:F,o:F,d(b){b&&h(t),b&&h(n),b&&h(i),b&&h(s),b&&h(r),b&&h(u),b&&h(f),b&&h(d),b&&h(p),b&&h(g),b&&h(y),v=!1,L()}}}function aa(e,t,n){let{onMessage:i}=t;function s(){Ut("plugin:cli|cli_matches").then(i).catch(i)}return e.$$set=r=>{"onMessage"in r&&n(1,i=r.onMessage)},[s,i]}class oa extends Te{constructor(t){super(),Ae(this,t,aa,sa,Se,{onMessage:1})}}function ra(e){let t,n,i,s,r,u,f,d;return{c(){t=a("div"),n=a("button"),n.textContent="Call Log API",i=m(),s=a("button"),s.textContent="Call Request (async) API",r=m(),u=a("button"),u.textContent="Send event to Rust",o(n,"class","btn"),o(n,"id","log"),o(s,"class","btn"),o(s,"id","request"),o(u,"class","btn"),o(u,"id","event")},m(p,g){_(p,t,g),l(t,n),l(t,i),l(t,s),l(t,r),l(t,u),f||(d=[C(n,"click",e[0]),C(s,"click",e[1]),C(u,"click",e[2])],f=!0)},p:F,i:F,o:F,d(p){p&&h(t),f=!1,me(d)}}}function ua(e,t,n){let{onMessage:i}=t,s;ot(async()=>{s=await jt("rust-event",i)}),Li(()=>{s&&s()});function r(){Ut("log_operation",{event:"tauri-click",payload:"this payload is optional because we used Option in Rust"})}function u(){Ut("perform_request",{endpoint:"dummy endpoint arg",body:{id:5,name:"test"}}).then(i).catch(i)}function f(){Yn("js-event","this is the payload string")}return e.$$set=d=>{"onMessage"in d&&n(3,i=d.onMessage)},[r,u,f,i]}class ca extends Te{constructor(t){super(),Ae(this,t,ua,ra,Se,{onMessage:3})}}function da(e){let t,n,i;return{c(){t=a("button"),t.textContent="Send test notification",o(t,"class","btn"),o(t,"id","notification")},m(s,r){_(s,t,r),n||(i=C(t,"click",fa),n=!0)},p:F,i:F,o:F,d(s){s&&h(t),n=!1,i()}}}function fa(){new Notification("Notification title",{body:"This is the notification body"})}function pa(e,t,n){let{onMessage:i}=t;return e.$$set=s=>{"onMessage"in s&&n(0,i=s.onMessage)},[i]}class ma extends Te{constructor(t){super(),Ae(this,t,pa,da,Se,{onMessage:0})}}var ha={};He(ha,{ask:()=>ga,confirm:()=>ya,message:()=>ba,open:()=>gs,save:()=>_a});async function gs(e={}){return typeof e=="object"&&Object.freeze(e),k({__tauriModule:"Dialog",message:{cmd:"openDialog",options:e}})}async function _a(e={}){return typeof e=="object"&&Object.freeze(e),k({__tauriModule:"Dialog",message:{cmd:"saveDialog",options:e}})}async function ba(e,t){var i,s;let n=typeof t=="string"?{title:t}:t;return k({__tauriModule:"Dialog",message:{cmd:"messageDialog",message:e.toString(),title:(i=n==null?void 0:n.title)==null?void 0:i.toString(),type:n==null?void 0:n.type,buttonLabel:(s=n==null?void 0:n.okLabel)==null?void 0:s.toString()}})}async function ga(e,t){var i,s,r,u,f;let n=typeof t=="string"?{title:t}:t;return k({__tauriModule:"Dialog",message:{cmd:"askDialog",message:e.toString(),title:(i=n==null?void 0:n.title)==null?void 0:i.toString(),type:n==null?void 0:n.type,buttonLabels:[(r=(s=n==null?void 0:n.okLabel)==null?void 0:s.toString())!=null?r:"Yes",(f=(u=n==null?void 0:n.cancelLabel)==null?void 0:u.toString())!=null?f:"No"]}})}async function ya(e,t){var i,s,r,u,f;let n=typeof t=="string"?{title:t}:t;return k({__tauriModule:"Dialog",message:{cmd:"confirmDialog",message:e.toString(),title:(i=n==null?void 0:n.title)==null?void 0:i.toString(),type:n==null?void 0:n.type,buttonLabels:[(r=(s=n==null?void 0:n.okLabel)==null?void 0:s.toString())!=null?r:"Ok",(f=(u=n==null?void 0:n.cancelLabel)==null?void 0:u.toString())!=null?f:"Cancel"]}})}function Il(e,t,n){const i=e.slice();return i[69]=t[n],i}function Rl(e,t,n){const i=e.slice();return i[72]=t[n],i}function Nl(e){let t,n,i,s,r,u,f=Object.keys(e[1]),d=[];for(let p=0;pe[40].call(i))},m(p,g){_(p,t,g),_(p,n,g),_(p,i,g),l(i,s);for(let y=0;ye[59].call(Ne)),o(Be,"class","input"),o(Be,"type","number"),o(Ke,"class","input"),o(Ke,"type","number"),o(Re,"class","flex gap-2"),o(Je,"class","input grow"),o(Je,"id","title"),o(Ot,"class","btn"),o(Ot,"type","submit"),o(st,"class","flex gap-1"),o(Qe,"class","input grow"),o(Qe,"id","url"),o(Pt,"class","btn"),o(Pt,"id","open-url"),o(at,"class","flex gap-1"),o(lt,"class","flex flex-col gap-1")},m(c,M){_(c,t,M),_(c,n,M),_(c,i,M),l(i,s),l(i,r),l(i,u),l(i,f),l(i,d),l(i,p),l(i,g),l(i,y),l(i,v),_(c,L,M),_(c,b,M),_(c,W,M),_(c,S,M),l(S,Y),l(Y,H),l(Y,R),R.checked=e[3],l(S,N),l(S,O),l(O,I),l(O,E),E.checked=e[2],l(S,$),l(S,P),l(P,j),l(P,T),T.checked=e[4],l(S,x),l(S,he),l(he,ce),l(he,ee),ee.checked=e[5],l(S,G),l(S,A),l(A,q),l(A,B),B.checked=e[6],l(S,_e),l(S,oe),l(oe,we),l(oe,de),de.checked=e[7],_(c,ke,M),_(c,Ue,M),_(c,Me,M),_(c,Q,M),l(Q,be),l(be,Ee),l(Ee,te),l(Ee,fe),U(fe,e[14]),l(be,Oe),l(be,re),l(re,ne),l(re,le),U(le,e[15]),l(Q,ie),l(Q,ue),l(ue,Pe),l(Pe,Le),l(Pe,X),U(X,e[8]),l(ue,z),l(ue,K),l(K,D),l(K,se),U(se,e[9]),l(Q,qt),l(Q,je),l(je,ft),l(ft,Ft),l(ft,Ce),U(Ce,e[10]),l(je,Vt),l(je,pt),l(pt,xt),l(pt,We),U(We,e[11]),l(Q,Gt),l(Q,qe),l(qe,V),l(V,St),l(V,ye),U(ye,e[12]),l(qe,Ct),l(qe,et),l(et,Wt),l(et,ve),U(ve,e[13]),_(c,mt,M),_(c,ht,M),_(c,_t,M),_(c,ge,M),l(ge,De),l(De,ze),l(ze,tt),l(ze,At),l(ze,nt),l(nt,Tt),l(nt,bt),l(ze,$t),l(ze,Yt),l(Yt,Ei),l(Yt,Xn),l(De,Oi),l(De,Fe),l(Fe,Bt),l(Fe,Pi),l(Fe,Kt),l(Kt,Di),l(Kt,Bn),l(Fe,Ii),l(Fe,Qt),l(Qt,Ri),l(Qt,Kn),l(ge,Ni),l(ge,gt),l(gt,Ve),l(Ve,en),l(Ve,Hi),l(Ve,tn),l(tn,Ui),l(tn,Jn),l(Ve,ji),l(Ve,ln),l(ln,qi),l(ln,Qn),l(gt,Fi),l(gt,xe),l(xe,an),l(xe,Vi),l(xe,on),l(on,xi),l(on,Zn),l(xe,Gi),l(xe,un),l(un,$i),l(un,ei),l(ge,Yi),l(ge,yt),l(yt,Ge),l(Ge,dn),l(Ge,Xi),l(Ge,fn),l(fn,Bi),l(fn,ti),l(Ge,Ki),l(Ge,mn),l(mn,Ji),l(mn,ni),l(yt,Qi),l(yt,$e),l($e,_n),l($e,Zi),l($e,bn),l(bn,el),l(bn,ii),l($e,tl),l($e,yn),l(yn,nl),l(yn,li),l(ge,il),l(ge,vt),l(vt,Ye),l(Ye,wn),l(Ye,ll),l(Ye,kn),l(kn,sl),l(kn,si),l(Ye,al),l(Ye,Ln),l(Ln,ol),l(Ln,ai),l(vt,rl),l(vt,Xe),l(Xe,Sn),l(Xe,ul),l(Xe,Cn),l(Cn,cl),l(Cn,oi),l(Xe,dl),l(Xe,An),l(An,fl),l(An,ri),_(c,ui,M),_(c,ci,M),_(c,di,M),_(c,Et,M),_(c,fi,M),_(c,Ie,M),l(Ie,En),l(En,wt),wt.checked=e[16],l(En,pl),l(Ie,ml),l(Ie,On),l(On,kt),kt.checked=e[17],l(On,hl),l(Ie,_l),l(Ie,Pn),l(Pn,Mt),Mt.checked=e[21],l(Pn,bl),_(c,pi,M),_(c,Re,M),l(Re,Dn),l(Dn,gl),l(Dn,Ne);for(let ae=0;ae=1,g,y,v,L=p&&Nl(e),b=e[1][e[0]]&&Ul(e);return{c(){t=a("div"),n=a("div"),i=a("input"),s=m(),r=a("button"),r.textContent="New window",u=m(),f=a("br"),d=m(),L&&L.c(),g=m(),b&&b.c(),o(i,"class","input grow"),o(i,"type","text"),o(i,"placeholder","New Window label.."),o(r,"class","btn"),o(n,"class","flex gap-1"),o(t,"class","flex flex-col children:grow gap-2")},m(W,S){_(W,t,S),l(t,n),l(n,i),U(i,e[22]),l(n,s),l(n,r),l(t,u),l(t,f),l(t,d),L&&L.m(t,null),l(t,g),b&&b.m(t,null),y||(v=[C(i,"input",e[39]),C(r,"click",e[36])],y=!0)},p(W,S){S[0]&4194304&&i.value!==W[22]&&U(i,W[22]),S[0]&2&&(p=Object.keys(W[1]).length>=1),p?L?L.p(W,S):(L=Nl(W),L.c(),L.m(t,g)):L&&(L.d(1),L=null),W[1][W[0]]?b?b.p(W,S):(b=Ul(W),b.c(),b.m(t,null)):b&&(b.d(1),b=null)},i:F,o:F,d(W){W&&h(t),L&&L.d(),b&&b.d(),y=!1,me(v)}}}function wa(e,t,n){let i=ct.label;const s={[ct.label]:ct},r=["default","crosshair","hand","arrow","move","text","wait","help","progress","notAllowed","contextMenu","cell","verticalText","alias","copy","noDrop","grab","grabbing","allScroll","zoomIn","zoomOut","eResize","nResize","neResize","nwResize","sResize","seResize","swResize","wResize","ewResize","nsResize","neswResize","nwseResize","colResize","rowResize"];let{onMessage:u}=t,f,d="https://tauri.app",p=!0,g=!1,y=!0,v=!1,L=!0,b=!1,W=null,S=null,Y=null,H=null,R=null,N=null,O=null,I=null,E=1,$=new Ze(O,I),P=new Ze(O,I),j=new ut(W,S),T=new ut(W,S),x,he,ce=!1,ee=!0,G=null,A=null,q="default",B=!1,_e="Awesome Tauri Example!";function oe(){zi(d)}function we(){s[i].setTitle(_e)}function de(){s[i].hide(),setTimeout(s[i].show,2e3)}function ke(){s[i].minimize(),setTimeout(s[i].unminimize,2e3)}function Ue(){gs({multiple:!1}).then(V=>{typeof V=="string"&&s[i].setIcon(V)})}function Me(){if(!f)return;const V=new dt(f);n(1,s[f]=V,s),V.once("tauri://error",function(){u("Error creating new webview")})}function Q(){s[i].innerSize().then(V=>{n(27,j=V),n(8,W=j.width),n(9,S=j.height)}),s[i].outerSize().then(V=>{n(28,T=V)})}function be(){s[i].innerPosition().then(V=>{n(25,$=V)}),s[i].outerPosition().then(V=>{n(26,P=V),n(14,O=P.x),n(15,I=P.y)})}async function Ee(V){!V||(x&&x(),he&&he(),he=await V.listen("tauri://move",be),x=await V.listen("tauri://resize",Q))}async function te(){await s[i].minimize(),await s[i].requestUserAttention(Ci.Critical),await new Promise(V=>setTimeout(V,3e3)),await s[i].requestUserAttention(null)}function fe(){f=this.value,n(22,f)}function Oe(){i=Tl(this),n(0,i),n(1,s)}const re=()=>s[i].center();function ne(){g=this.checked,n(3,g)}function le(){p=this.checked,n(2,p)}function ie(){y=this.checked,n(4,y)}function ue(){v=this.checked,n(5,v)}function Pe(){L=this.checked,n(6,L)}function Le(){b=this.checked,n(7,b)}function X(){O=Z(this.value),n(14,O)}function z(){I=Z(this.value),n(15,I)}function K(){W=Z(this.value),n(8,W)}function D(){S=Z(this.value),n(9,S)}function se(){Y=Z(this.value),n(10,Y)}function qt(){H=Z(this.value),n(11,H)}function je(){R=Z(this.value),n(12,R)}function ft(){N=Z(this.value),n(13,N)}function Ft(){ce=this.checked,n(16,ce)}function Ce(){ee=this.checked,n(17,ee)}function Vt(){B=this.checked,n(21,B)}function pt(){q=Tl(this),n(20,q),n(30,r)}function xt(){G=Z(this.value),n(18,G)}function We(){A=Z(this.value),n(19,A)}function Gt(){_e=this.value,n(29,_e)}function qe(){d=this.value,n(23,d)}return e.$$set=V=>{"onMessage"in V&&n(38,u=V.onMessage)},e.$$.update=()=>{var V,St,ye,Ct,et,Wt,ve,mt,ht,_t,ge,De,ze,tt,At,nt,Tt,it,bt;e.$$.dirty[0]&3&&(s[i],be(),Q()),e.$$.dirty[0]&7&&((V=s[i])==null||V.setResizable(p)),e.$$.dirty[0]&11&&(g?(St=s[i])==null||St.maximize():(ye=s[i])==null||ye.unmaximize()),e.$$.dirty[0]&19&&((Ct=s[i])==null||Ct.setDecorations(y)),e.$$.dirty[0]&35&&((et=s[i])==null||et.setAlwaysOnTop(v)),e.$$.dirty[0]&67&&((Wt=s[i])==null||Wt.setContentProtected(L)),e.$$.dirty[0]&131&&((ve=s[i])==null||ve.setFullscreen(b)),e.$$.dirty[0]&771&&W&&S&&((mt=s[i])==null||mt.setSize(new ut(W,S))),e.$$.dirty[0]&3075&&(Y&&H?(ht=s[i])==null||ht.setMinSize(new $n(Y,H)):(_t=s[i])==null||_t.setMinSize(null)),e.$$.dirty[0]&12291&&(R>800&&N>400?(ge=s[i])==null||ge.setMaxSize(new $n(R,N)):(De=s[i])==null||De.setMaxSize(null)),e.$$.dirty[0]&49155&&O!==null&&I!==null&&((ze=s[i])==null||ze.setPosition(new Ze(O,I))),e.$$.dirty[0]&3&&((tt=s[i])==null||tt.scaleFactor().then($t=>n(24,E=$t))),e.$$.dirty[0]&3&&Ee(s[i]),e.$$.dirty[0]&65539&&((At=s[i])==null||At.setCursorGrab(ce)),e.$$.dirty[0]&131075&&((nt=s[i])==null||nt.setCursorVisible(ee)),e.$$.dirty[0]&1048579&&((Tt=s[i])==null||Tt.setCursorIcon(q)),e.$$.dirty[0]&786435&&G!==null&&A!==null&&((it=s[i])==null||it.setCursorPosition(new Ze(G,A))),e.$$.dirty[0]&2097155&&((bt=s[i])==null||bt.setIgnoreCursorEvents(B))},[i,s,p,g,y,v,L,b,W,S,Y,H,R,N,O,I,ce,ee,G,A,q,B,f,d,E,$,P,j,T,_e,r,oe,we,de,ke,Ue,Me,te,u,fe,Oe,re,ne,le,ie,ue,Pe,Le,X,z,K,D,se,qt,je,ft,Ft,Ce,Vt,pt,xt,We,Gt,qe]}class ka extends Te{constructor(t){super(),Ae(this,t,wa,va,Se,{onMessage:38},null,[-1,-1,-1])}}function ql(e){let t,n,i,s,r,u,f;return{c(){t=a("br"),n=m(),i=a("input"),s=m(),r=a("button"),r.textContent="Write",o(i,"class","input"),o(i,"placeholder","write to stdin"),o(r,"class","btn")},m(d,p){_(d,t,p),_(d,n,p),_(d,i,p),U(i,e[4]),_(d,s,p),_(d,r,p),u||(f=[C(i,"input",e[14]),C(r,"click",e[8])],u=!0)},p(d,p){p&16&&i.value!==d[4]&&U(i,d[4])},d(d){d&&h(t),d&&h(n),d&&h(i),d&&h(s),d&&h(r),u=!1,me(f)}}}function Ma(e){let t,n,i,s,r,u,f,d,p,g,y,v,L,b,W,S,Y,H,R,N,O,I,E,$,P=e[5]&&ql(e);return{c(){t=a("div"),n=a("div"),i=w(`Script: - `),s=a("input"),r=m(),u=a("div"),f=w(`Encoding: - `),d=a("input"),p=m(),g=a("div"),y=w(`Working directory: - `),v=a("input"),L=m(),b=a("div"),W=w(`Arguments: - `),S=a("input"),Y=m(),H=a("div"),R=a("button"),R.textContent="Run",N=m(),O=a("button"),O.textContent="Kill",I=m(),P&&P.c(),o(s,"class","grow input"),o(n,"class","flex items-center gap-1"),o(d,"class","grow input"),o(u,"class","flex items-center gap-1"),o(v,"class","grow input"),o(v,"placeholder","Working directory"),o(g,"class","flex items-center gap-1"),o(S,"class","grow input"),o(S,"placeholder","Environment variables"),o(b,"class","flex items-center gap-1"),o(R,"class","btn"),o(O,"class","btn"),o(H,"class","flex children:grow gap-1"),o(t,"class","flex flex-col childre:grow gap-1")},m(j,T){_(j,t,T),l(t,n),l(n,i),l(n,s),U(s,e[0]),l(t,r),l(t,u),l(u,f),l(u,d),U(d,e[3]),l(t,p),l(t,g),l(g,y),l(g,v),U(v,e[1]),l(t,L),l(t,b),l(b,W),l(b,S),U(S,e[2]),l(t,Y),l(t,H),l(H,R),l(H,N),l(H,O),l(t,I),P&&P.m(t,null),E||($=[C(s,"input",e[10]),C(d,"input",e[11]),C(v,"input",e[12]),C(S,"input",e[13]),C(R,"click",e[6]),C(O,"click",e[7])],E=!0)},p(j,[T]){T&1&&s.value!==j[0]&&U(s,j[0]),T&8&&d.value!==j[3]&&U(d,j[3]),T&2&&v.value!==j[1]&&U(v,j[1]),T&4&&S.value!==j[2]&&U(S,j[2]),j[5]?P?P.p(j,T):(P=ql(j),P.c(),P.m(t,null)):P&&(P.d(1),P=null)},i:F,o:F,d(j){j&&h(t),P&&P.d(),E=!1,me($)}}}function La(e,t,n){const i=navigator.userAgent.includes("Windows");let s=i?"cmd":"sh",r=i?["/C"]:["-c"],{onMessage:u}=t,f='echo "hello world"',d=null,p="SOMETHING=value ANOTHER=2",g="",y="",v;function L(){return p.split(" ").reduce((I,E)=>{let[$,P]=E.split("=");return{...I,[$]:P}},{})}function b(){n(5,v=null);const I=Gn.create(s,[...r,f],{cwd:d||null,env:L(),encoding:g||void 0});I.on("close",E=>{u(`command finished with code ${E.code} and signal ${E.signal}`),n(5,v=null)}),I.on("error",E=>u(`command error: "${E}"`)),I.stdout.on("data",E=>u(`command stdout: "${E}"`)),I.stderr.on("data",E=>u(`command stderr: "${E}"`)),I.spawn().then(E=>{n(5,v=E)}).catch(u)}function W(){v.kill().then(()=>u("killed child process")).catch(u)}function S(){v.write(y).catch(u)}function Y(){f=this.value,n(0,f)}function H(){g=this.value,n(3,g)}function R(){d=this.value,n(1,d)}function N(){p=this.value,n(2,p)}function O(){y=this.value,n(4,y)}return e.$$set=I=>{"onMessage"in I&&n(9,u=I.onMessage)},[f,d,p,g,y,v,b,W,S,u,Y,H,R,N,O]}class za extends Te{constructor(t){super(),Ae(this,t,La,Ma,Se,{onMessage:9})}}var Sa={};He(Sa,{checkUpdate:()=>vs,installUpdate:()=>ys,onUpdaterEvent:()=>Ti});async function Ti(e){return jt("tauri://update-status",t=>{e(t==null?void 0:t.payload)})}async function ys(){let e;function t(){e&&e(),e=void 0}return new Promise((n,i)=>{function s(r){if(r.error){t(),i(r.error);return}r.status==="DONE"&&(t(),n())}Ti(s).then(r=>{e=r}).catch(r=>{throw t(),r}),Yn("tauri://update-install").catch(r=>{throw t(),r})})}async function vs(){let e;function t(){e&&e(),e=void 0}return new Promise((n,i)=>{function s(u){t(),n({manifest:u,shouldUpdate:!0})}function r(u){if(u.error){t(),i(u.error);return}u.status==="UPTODATE"&&(t(),n({shouldUpdate:!1}))}ss("tauri://update-available",u=>{s(u==null?void 0:u.payload)}).catch(u=>{throw t(),u}),Ti(r).then(u=>{e=u}).catch(u=>{throw t(),u}),Yn("tauri://update").catch(u=>{throw t(),u})})}function Ca(e){let t;return{c(){t=a("button"),t.innerHTML='
',o(t,"class","btn text-accentText dark:text-darkAccentText flex items-center justify-center")},m(n,i){_(n,t,i)},p:F,d(n){n&&h(t)}}}function Wa(e){let t,n,i;return{c(){t=a("button"),t.textContent="Install update",o(t,"class","btn")},m(s,r){_(s,t,r),n||(i=C(t,"click",e[4]),n=!0)},p:F,d(s){s&&h(t),n=!1,i()}}}function Aa(e){let t,n,i;return{c(){t=a("button"),t.textContent="Check update",o(t,"class","btn")},m(s,r){_(s,t,r),n||(i=C(t,"click",e[3]),n=!0)},p:F,d(s){s&&h(t),n=!1,i()}}}function Ta(e){let t;function n(r,u){return!r[0]&&!r[2]?Aa:!r[1]&&r[2]?Wa:Ca}let i=n(e),s=i(e);return{c(){t=a("div"),s.c(),o(t,"class","flex children:grow children:h10")},m(r,u){_(r,t,u),s.m(t,null)},p(r,[u]){i===(i=n(r))&&s?s.p(r,u):(s.d(1),s=i(r),s&&(s.c(),s.m(t,null)))},i:F,o:F,d(r){r&&h(t),s.d()}}}function Ea(e,t,n){let{onMessage:i}=t,s;ot(async()=>{s=await jt("tauri://update-status",i)}),Li(()=>{s&&s()});let r,u,f;async function d(){n(0,r=!0);try{const{shouldUpdate:g,manifest:y}=await vs();i(`Should update: ${g}`),i(y),n(2,f=g)}catch(g){i(g)}finally{n(0,r=!1)}}async function p(){n(1,u=!0);try{await ys(),i("Installation complete, restart required."),await Ai()}catch(g){i(g)}finally{n(1,u=!1)}}return e.$$set=g=>{"onMessage"in g&&n(5,i=g.onMessage)},[r,u,f,d,p,i]}class Oa extends Te{constructor(t){super(),Ae(this,t,Ea,Ta,Se,{onMessage:5})}}function Pa(e){let t;return{c(){t=a("div"),t.innerHTML=`
Not available for Linux
- `,o(t,"class","flex flex-col gap-2")},m(n,i){_(n,t,i)},p:F,i:F,o:F,d(n){n&&h(t)}}}function Da(e,t,n){let{onMessage:i}=t;const s=window.constraints={audio:!0,video:!0};function r(f){const d=document.querySelector("video"),p=f.getVideoTracks();i("Got stream with constraints:",s),i(`Using video device: ${p[0].label}`),window.stream=f,d.srcObject=f}function u(f){if(f.name==="ConstraintNotSatisfiedError"){const d=s.video;i(`The resolution ${d.width.exact}x${d.height.exact} px is not supported by your device.`)}else f.name==="PermissionDeniedError"&&i("Permissions have not been granted to use your camera and microphone, you need to allow the page access to your devices in order for the demo to work.");i(`getUserMedia error: ${f.name}`,f)}return ot(async()=>{try{const f=await navigator.mediaDevices.getUserMedia(s);r(f)}catch(f){u(f)}}),Li(()=>{window.stream.getTracks().forEach(function(f){f.stop()})}),e.$$set=f=>{"onMessage"in f&&n(0,i=f.onMessage)},[i]}class Ia extends Te{constructor(t){super(),Ae(this,t,Da,Pa,Se,{onMessage:0})}}function Ra(e){let t,n,i,s,r,u;return{c(){t=a("div"),n=a("button"),n.textContent="Show",i=m(),s=a("button"),s.textContent="Hide",o(n,"class","btn"),o(n,"id","show"),o(n,"title","Hides and shows the app after 2 seconds"),o(s,"class","btn"),o(s,"id","hide")},m(f,d){_(f,t,d),l(t,n),l(t,i),l(t,s),r||(u=[C(n,"click",e[0]),C(s,"click",e[1])],r=!0)},p:F,i:F,o:F,d(f){f&&h(t),r=!1,me(u)}}}function Na(e,t,n){let{onMessage:i}=t;function s(){r().then(()=>{setTimeout(()=>{hs().then(()=>i("Shown app")).catch(i)},2e3)}).catch(i)}function r(){return _s().then(()=>i("Hide app")).catch(i)}return e.$$set=u=>{"onMessage"in u&&n(2,i=u.onMessage)},[s,r,i]}class Ha extends Te{constructor(t){super(),Ae(this,t,Na,Ra,Se,{onMessage:2})}}function Fl(e,t,n){const i=e.slice();return i[30]=t[n],i}function Vl(e,t,n){const i=e.slice();return i[33]=t[n],i}function xl(e){let t,n,i,s,r,u,f,d,p,g,y,v,L;function b(N,O){return N[3]?ja:Ua}let W=b(e),S=W(e);function Y(N,O){return N[2]?Fa:qa}let H=Y(e),R=H(e);return{c(){t=a("div"),n=a("span"),n.textContent="Tauri API Validation",i=m(),s=a("span"),r=a("span"),S.c(),f=m(),d=a("span"),d.innerHTML='
',p=m(),g=a("span"),R.c(),o(n,"class","lt-sm:pl-10 text-darkPrimaryText"),o(r,"title",u=e[3]?"Switch to Light mode":"Switch to Dark mode"),o(r,"class","hover:bg-hoverOverlay active:bg-hoverOverlayDarker dark:hover:bg-darkHoverOverlay dark:active:bg-darkHoverOverlayDarker"),o(d,"title","Minimize"),o(d,"class","hover:bg-hoverOverlay active:bg-hoverOverlayDarker dark:hover:bg-darkHoverOverlay dark:active:bg-darkHoverOverlayDarker"),o(g,"title",y=e[2]?"Restore":"Maximize"),o(g,"class","hover:bg-hoverOverlay active:bg-hoverOverlayDarker dark:hover:bg-darkHoverOverlay dark:active:bg-darkHoverOverlayDarker"),o(s,"class","h-100% children:h-100% children:w-12 children:inline-flex children:items-center children:justify-center"),o(t,"class","w-screen select-none h-8 pl-2 flex justify-between items-center absolute text-primaryText dark:text-darkPrimaryText"),o(t,"data-tauri-drag-region","")},m(N,O){_(N,t,O),l(t,n),l(t,i),l(t,s),l(s,r),S.m(r,null),l(s,f),l(s,d),l(s,p),l(s,g),R.m(g,null),v||(L=[C(r,"click",e[11]),C(d,"click",e[9]),C(g,"click",e[10])],v=!0)},p(N,O){W!==(W=b(N))&&(S.d(1),S=W(N),S&&(S.c(),S.m(r,null))),O[0]&8&&u!==(u=N[3]?"Switch to Light mode":"Switch to Dark mode")&&o(r,"title",u),H!==(H=Y(N))&&(R.d(1),R=H(N),R&&(R.c(),R.m(g,null))),O[0]&4&&y!==(y=N[2]?"Restore":"Maximize")&&o(g,"title",y)},d(N){N&&h(t),S.d(),R.d(),v=!1,me(L)}}}function Ua(e){let t;return{c(){t=a("div"),o(t,"class","i-ph-moon")},m(n,i){_(n,t,i)},d(n){n&&h(t)}}}function ja(e){let t;return{c(){t=a("div"),o(t,"class","i-ph-sun")},m(n,i){_(n,t,i)},d(n){n&&h(t)}}}function qa(e){let t;return{c(){t=a("div"),o(t,"class","i-codicon-chrome-maximize")},m(n,i){_(n,t,i)},d(n){n&&h(t)}}}function Fa(e){let t;return{c(){t=a("div"),o(t,"class","i-codicon-chrome-restore")},m(n,i){_(n,t,i)},d(n){n&&h(t)}}}function Va(e){let t;return{c(){t=a("span"),o(t,"class","i-codicon-menu animate-duration-300ms animate-fade-in")},m(n,i){_(n,t,i)},d(n){n&&h(t)}}}function xa(e){let t;return{c(){t=a("span"),o(t,"class","i-codicon-close animate-duration-300ms animate-fade-in")},m(n,i){_(n,t,i)},d(n){n&&h(t)}}}function Gl(e){let t,n,i,s,r,u,f,d,p;function g(L,b){return L[3]?$a:Ga}let y=g(e),v=y(e);return{c(){t=a("a"),v.c(),n=m(),i=a("br"),s=m(),r=a("div"),u=m(),f=a("br"),o(t,"href","##"),o(t,"class","nv justify-between h-8"),o(r,"class","bg-white/5 h-2px")},m(L,b){_(L,t,b),v.m(t,null),_(L,n,b),_(L,i,b),_(L,s,b),_(L,r,b),_(L,u,b),_(L,f,b),d||(p=C(t,"click",e[11]),d=!0)},p(L,b){y!==(y=g(L))&&(v.d(1),v=y(L),v&&(v.c(),v.m(t,null)))},d(L){L&&h(t),v.d(),L&&h(n),L&&h(i),L&&h(s),L&&h(r),L&&h(u),L&&h(f),d=!1,p()}}}function Ga(e){let t,n;return{c(){t=w(`Switch to Dark mode - `),n=a("div"),o(n,"class","i-ph-moon")},m(i,s){_(i,t,s),_(i,n,s)},d(i){i&&h(t),i&&h(n)}}}function $a(e){let t,n;return{c(){t=w(`Switch to Light mode - `),n=a("div"),o(n,"class","i-ph-sun")},m(i,s){_(i,t,s),_(i,n,s)},d(i){i&&h(t),i&&h(n)}}}function Ya(e){let t,n,i,s,r=e[33].label+"",u,f,d,p;function g(){return e[19](e[33])}return{c(){t=a("a"),n=a("div"),i=m(),s=a("p"),u=w(r),o(n,"class",e[33].icon+" mr-2"),o(t,"href","##"),o(t,"class",f="nv "+(e[1]===e[33]?"nv_selected":""))},m(y,v){_(y,t,v),l(t,n),l(t,i),l(t,s),l(s,u),d||(p=C(t,"click",g),d=!0)},p(y,v){e=y,v[0]&2&&f!==(f="nv "+(e[1]===e[33]?"nv_selected":""))&&o(t,"class",f)},d(y){y&&h(t),d=!1,p()}}}function $l(e){let t,n=e[33]&&Ya(e);return{c(){n&&n.c(),t=Jl()},m(i,s){n&&n.m(i,s),_(i,t,s)},p(i,s){i[33]&&n.p(i,s)},d(i){n&&n.d(i),i&&h(t)}}}function Yl(e){let t,n=e[30].html+"",i;return{c(){t=new Ws(!1),i=Jl(),t.a=i},m(s,r){t.m(n,s,r),_(s,i,r)},p(s,r){r[0]&64&&n!==(n=s[30].html+"")&&t.p(n)},d(s){s&&h(i),s&&t.d()}}}function Xa(e){let t,n,i,s,r,u,f,d,p,g,y,v,L,b,W,S,Y,H,R,N,O,I,E,$,P,j,T=e[1].label+"",x,he,ce,ee,G,A,q,B,_e,oe,we,de,ke,Ue,Me,Q,be,Ee,te=e[5]&&xl(e);function fe(z,K){return z[0]?xa:Va}let Oe=fe(e),re=Oe(e),ne=!e[5]&&Gl(e),le=e[7],ie=[];for(let z=0;z`,y=m(),v=a("a"),v.innerHTML=`GitHub - `,L=m(),b=a("a"),b.innerHTML=`Source - `,W=m(),S=a("br"),Y=m(),H=a("div"),R=m(),N=a("br"),O=m(),I=a("div");for(let z=0;z',Ue=m(),Me=a("div");for(let z=0;z{Mi(D,1)}),Ps()}ue?(G=new ue(Pe(z)),Pl(G.$$.fragment),wi(G.$$.fragment,1),ki(G,ee,null)):G=null}if(K[0]&64){Le=z[6];let D;for(D=0;D{W(`File drop: ${JSON.stringify(A.payload)}`)});const s=navigator.userAgent.toLowerCase(),r=s.includes("android")||s.includes("iphone"),u=[{label:"Welcome",component:la,icon:"i-ph-hand-waving"},{label:"Communication",component:ca,icon:"i-codicon-radio-tower"},!r&&{label:"CLI",component:oa,icon:"i-codicon-terminal"},!r&&{label:"Notifications",component:ma,icon:"i-codicon-bell-dot"},!r&&{label:"App",component:Ha,icon:"i-codicon-hubot"},!r&&{label:"Window",component:ka,icon:"i-codicon-window"},{label:"Shell",component:za,icon:"i-codicon-terminal-bash"},!r&&{label:"Updater",component:Oa,icon:"i-codicon-cloud-download"},{label:"WebRTC",component:Ia,icon:"i-ph-broadcast"}];let f=u[0];function d(A){n(1,f=A)}let p;ot(async()=>{const A=Fn();n(2,p=await A.isMaximized()),jt("tauri://resize",async()=>{n(2,p=await A.isMaximized())})});function g(){Fn().minimize()}async function y(){const A=Fn();await A.isMaximized()?A.unmaximize():A.maximize()}let v;ot(()=>{n(3,v=localStorage&&localStorage.getItem("theme")=="dark"),Bl(v)});function L(){n(3,v=!v),Bl(v)}let b=Is([]);zs(e,b,A=>n(6,i=A));function W(A){b.update(q=>[{html:`
[${new Date().toLocaleTimeString()}]: `+(typeof A=="string"?A:JSON.stringify(A,null,1))+"
"},...q])}function S(A){b.update(q=>[{html:`
[${new Date().toLocaleTimeString()}]: `+A+"
"},...q])}function Y(){b.update(()=>[])}let H,R,N;function O(A){N=A.clientY;const q=window.getComputedStyle(H);R=parseInt(q.height,10);const B=oe=>{const we=oe.clientY-N,de=R-we;n(4,H.style.height=`${de{document.removeEventListener("mouseup",_e),document.removeEventListener("mousemove",B)};document.addEventListener("mouseup",_e),document.addEventListener("mousemove",B)}let I;ot(async()=>{n(5,I=await ds()==="win32")});let E=!1,$,P,j=!1,T=0,x=0;const he=(A,q,B)=>Math.min(Math.max(q,A),B);ot(()=>{n(17,$=document.querySelector("#sidebar")),P=document.querySelector("#sidebarToggle"),document.addEventListener("click",A=>{P.contains(A.target)?n(0,E=!E):E&&!$.contains(A.target)&&n(0,E=!1)}),document.addEventListener("touchstart",A=>{if(P.contains(A.target))return;const q=A.touches[0].clientX;(0{if(j){const q=A.touches[0].clientX;x=q;const B=(q-T)/10;$.style.setProperty("--translate-x",`-${he(0,E?0-B:18.75-B,18.75)}rem`)}}),document.addEventListener("touchend",()=>{if(j){const A=(x-T)/10;n(0,E=E?A>-(18.75/2):A>18.75/2)}j=!1})});const ce=()=>zi("https://tauri.app/"),ee=A=>{d(A),n(0,E=!1)};function G(A){yi[A?"unshift":"push"](()=>{H=A,n(4,H)})}return e.$$.update=()=>{if(e.$$.dirty[0]&1){const A=document.querySelector("#sidebar");A&&Ba(A,E)}},[E,f,p,v,H,I,i,u,d,g,y,L,b,W,S,Y,O,$,ce,ee,G]}class Ja extends Te{constructor(t){super(),Ae(this,t,Ka,Xa,Se,{},null,[-1,-1])}}new Ja({target:document.querySelector("#app")}); + Additionally, it has a update --background subcommand.`,n=m(),i=a("br"),s=m(),r=a("div"),r.textContent="Note that the arguments are only parsed, not implemented.",u=m(),p=a("br"),d=m(),f=a("br"),g=m(),v=a("button"),v.textContent="Get matches",o(r,"class","note"),o(v,"class","btn"),o(v,"id","cli-matches")},m(h,W){b(h,t,W),b(h,n,W),b(h,i,W),b(h,s,W),b(h,r,W),b(h,u,W),b(h,p,W),b(h,d,W),b(h,f,W),b(h,g,W),b(h,v,W),y||(M=A(v,"click",e[0]),y=!0)},p:F,i:F,o:F,d(h){h&&_(t),h&&_(n),h&&_(i),h&&_(s),h&&_(r),h&&_(u),h&&_(p),h&&_(d),h&&_(f),h&&_(g),h&&_(v),y=!1,M()}}}function ia(e,t,n){let{onMessage:i}=t;function s(){jt("plugin:cli|cli_matches").then(i).catch(i)}return e.$$set=r=>{"onMessage"in r&&n(1,i=r.onMessage)},[s,i]}class la extends He{constructor(t){super(),Re(this,t,ia,na,Se,{onMessage:1})}}function sa(e){let t,n,i,s,r,u,p,d;return{c(){t=a("div"),n=a("button"),n.textContent="Call Log API",i=m(),s=a("button"),s.textContent="Call Request (async) API",r=m(),u=a("button"),u.textContent="Send event to Rust",o(n,"class","btn"),o(n,"id","log"),o(s,"class","btn"),o(s,"id","request"),o(u,"class","btn"),o(u,"id","event")},m(f,g){b(f,t,g),l(t,n),l(t,i),l(t,s),l(t,r),l(t,u),p||(d=[A(n,"click",e[0]),A(s,"click",e[1]),A(u,"click",e[2])],p=!0)},p:F,i:F,o:F,d(f){f&&_(t),p=!1,he(d)}}}function aa(e,t,n){let{onMessage:i}=t,s;at(async()=>{s=await qt("rust-event",i)}),ki(()=>{s&&s()});function r(){jt("log_operation",{event:"tauri-click",payload:"this payload is optional because we used Option in Rust"})}function u(){jt("perform_request",{endpoint:"dummy endpoint arg",body:{id:5,name:"test"}}).then(i).catch(i)}function p(){Gn("js-event","this is the payload string")}return e.$$set=d=>{"onMessage"in d&&n(3,i=d.onMessage)},[r,u,p,i]}class oa extends He{constructor(t){super(),Re(this,t,aa,sa,Se,{onMessage:3})}}function Ol(e,t,n){const i=e.slice();return i[68]=t[n],i}function Dl(e,t,n){const i=e.slice();return i[71]=t[n],i}function Il(e){let t,n,i,s,r,u,p=Object.keys(e[1]),d=[];for(let f=0;fe[39].call(i))},m(f,g){b(f,t,g),b(f,n,g),b(f,i,g),l(i,s);for(let v=0;ve[58].call(Ie)),o(Ye,"class","input"),o(Ye,"type","number"),o(Be,"class","input"),o(Be,"type","number"),o(De,"class","flex gap-2"),o(Ke,"class","input grow"),o(Ke,"id","title"),o(Ot,"class","btn"),o(Ot,"type","submit"),o(lt,"class","flex gap-1"),o(Je,"class","input grow"),o(Je,"id","url"),o(Dt,"class","btn"),o(Dt,"id","open-url"),o(st,"class","flex gap-1"),o(it,"class","flex flex-col gap-1")},m(c,k){b(c,t,k),b(c,n,k),b(c,i,k),l(i,s),l(i,r),l(i,u),l(i,p),l(i,d),l(i,f),l(i,g),b(c,v,k),b(c,y,k),b(c,M,k),b(c,h,k),l(h,W),l(W,T),l(W,G),G.checked=e[3],l(h,H),l(h,U),l(U,R),l(U,E),E.checked=e[2],l(h,I),l(h,P),l(P,X),l(P,O),O.checked=e[4],l(h,j),l(h,S),l(S,V),l(S,oe),oe.checked=e[5],l(h,ce),l(h,ie),l(ie,x),l(ie,C),C.checked=e[6],l(h,q),l(h,K),l(K,_e),l(K,le),le.checked=e[7],b(c,ve,k),b(c,ke,k),b(c,Me,k),b(c,se,k),l(se,re),l(re,be),l(be,Ue),l(be,de),N(de,e[14]),l(re,te),l(re,Te),l(Te,Ee),l(Te,Z),N(Z,e[15]),l(se,ne),l(se,ue),l(ue,J),l(J,Le),l(J,fe),N(fe,e[8]),l(ue,ze),l(ue,$),l($,z),l($,Y),N(Y,e[9]),l(se,D),l(se,pe),l(pe,dt),l(dt,Ft),l(dt,Ce),N(Ce,e[10]),l(pe,Vt),l(pe,ft),l(ft,xt),l(ft,Ae),N(Ae,e[11]),l(se,Gt),l(se,Ne),l(Ne,pt),l(pt,B),l(pt,ye),N(ye,e[12]),l(Ne,Ct),l(Ne,Ze),l(Ze,At),l(Ze,we),N(we,e[13]),b(c,mt,k),b(c,ht,k),b(c,_t,k),b(c,ge,k),l(ge,Pe),l(Pe,We),l(We,et),l(We,St),l(We,tt),l(tt,Tt),l(tt,bt),l(We,Et),l(We,gt),l(gt,Si),l(gt,Xn),l(Pe,Ti),l(Pe,je),l(je,Yt),l(je,Ei),l(je,Bt),l(Bt,Pi),l(Bt,Yn),l(je,Oi),l(je,Jt),l(Jt,Di),l(Jt,Bn),l(ge,Ii),l(ge,vt),l(vt,qe),l(qe,Qt),l(qe,Ri),l(qe,Zt),l(Zt,Hi),l(Zt,Kn),l(qe,Ui),l(qe,tn),l(tn,Ni),l(tn,Jn),l(vt,ji),l(vt,Fe),l(Fe,ln),l(Fe,qi),l(Fe,sn),l(sn,Fi),l(sn,$n),l(Fe,Vi),l(Fe,on),l(on,xi),l(on,Qn),l(ge,Gi),l(ge,yt),l(yt,Ve),l(Ve,un),l(Ve,Xi),l(Ve,cn),l(cn,Yi),l(cn,Zn),l(Ve,Bi),l(Ve,fn),l(fn,Ki),l(fn,ei),l(yt,Ji),l(yt,xe),l(xe,mn),l(xe,$i),l(xe,hn),l(hn,Qi),l(hn,ti),l(xe,Zi),l(xe,bn),l(bn,el),l(bn,ni),l(ge,tl),l(ge,wt),l(wt,Ge),l(Ge,vn),l(Ge,nl),l(Ge,yn),l(yn,il),l(yn,ii),l(Ge,ll),l(Ge,kn),l(kn,sl),l(kn,li),l(wt,al),l(wt,Xe),l(Xe,Ln),l(Xe,ol),l(Xe,zn),l(zn,rl),l(zn,si),l(Xe,ul),l(Xe,Cn),l(Cn,cl),l(Cn,ai),b(c,oi,k),b(c,ri,k),b(c,ui,k),b(c,Pt,k),b(c,ci,k),b(c,Oe,k),l(Oe,Sn),l(Sn,kt),kt.checked=e[16],l(Sn,dl),l(Oe,fl),l(Oe,Tn),l(Tn,Mt),Mt.checked=e[17],l(Tn,pl),l(Oe,ml),l(Oe,En),l(En,Lt),Lt.checked=e[21],l(En,hl),b(c,di,k),b(c,De,k),l(De,Pn),l(Pn,_l),l(Pn,Ie);for(let ae=0;ae=1,g,v,y,M=f&&Il(e),h=e[1][e[0]]&&Hl(e);return{c(){t=a("div"),n=a("div"),i=a("input"),s=m(),r=a("button"),r.textContent="New window",u=m(),p=a("br"),d=m(),M&&M.c(),g=m(),h&&h.c(),o(i,"class","input grow"),o(i,"type","text"),o(i,"placeholder","New Window label.."),o(r,"class","btn"),o(n,"class","flex gap-1"),o(t,"class","flex flex-col children:grow gap-2")},m(W,T){b(W,t,T),l(t,n),l(n,i),N(i,e[22]),l(n,s),l(n,r),l(t,u),l(t,p),l(t,d),M&&M.m(t,null),l(t,g),h&&h.m(t,null),v||(y=[A(i,"input",e[38]),A(r,"click",e[35])],v=!0)},p(W,T){T[0]&4194304&&i.value!==W[22]&&N(i,W[22]),T[0]&2&&(f=Object.keys(W[1]).length>=1),f?M?M.p(W,T):(M=Il(W),M.c(),M.m(t,g)):M&&(M.d(1),M=null),W[1][W[0]]?h?h.p(W,T):(h=Hl(W),h.c(),h.m(t,null)):h&&(h.d(1),h=null)},i:F,o:F,d(W){W&&_(t),M&&M.d(),h&&h.d(),v=!1,he(y)}}}function ua(e,t,n){let i=ut.label;const s={[ut.label]:ut},r=["default","crosshair","hand","arrow","move","text","wait","help","progress","notAllowed","contextMenu","cell","verticalText","alias","copy","noDrop","grab","grabbing","allScroll","zoomIn","zoomOut","eResize","nResize","neResize","nwResize","sResize","seResize","swResize","wResize","ewResize","nsResize","neswResize","nwseResize","colResize","rowResize"];let{onMessage:u}=t,p,d="https://tauri.app",f=!0,g=!1,v=!0,y=!1,M=!0,h=!1,W=null,T=null,G=null,H=null,U=null,R=null,E=null,I=null,P=1,X=new $e(E,I),O=new $e(E,I),j=new rt(W,T),S=new rt(W,T),V,oe,ce=!1,ie=!0,x=null,C=null,q="default",K=!1,_e="Awesome Tauri Example!";function le(){Mi(d)}function ve(){s[i].setTitle(_e)}function ke(){s[i].hide(),setTimeout(s[i].show,2e3)}function Me(){s[i].minimize(),setTimeout(s[i].unminimize,2e3)}function se(){if(!p)return;const B=new ct(p);n(1,s[p]=B,s),B.once("tauri://error",function(){u("Error creating new webview")})}function re(){s[i].innerSize().then(B=>{n(27,j=B),n(8,W=j.width),n(9,T=j.height)}),s[i].outerSize().then(B=>{n(28,S=B)})}function be(){s[i].innerPosition().then(B=>{n(25,X=B)}),s[i].outerPosition().then(B=>{n(26,O=B),n(14,E=O.x),n(15,I=O.y)})}async function Ue(B){!B||(V&&V(),oe&&oe(),oe=await B.listen("tauri://move",be),V=await B.listen("tauri://resize",re))}async function de(){await s[i].minimize(),await s[i].requestUserAttention(zi.Critical),await new Promise(B=>setTimeout(B,3e3)),await s[i].requestUserAttention(null)}function te(){p=this.value,n(22,p)}function Te(){i=Al(this),n(0,i),n(1,s)}const Ee=()=>s[i].center();function Z(){g=this.checked,n(3,g)}function ne(){f=this.checked,n(2,f)}function ue(){v=this.checked,n(4,v)}function J(){y=this.checked,n(5,y)}function Le(){M=this.checked,n(6,M)}function fe(){h=this.checked,n(7,h)}function ze(){E=ee(this.value),n(14,E)}function $(){I=ee(this.value),n(15,I)}function z(){W=ee(this.value),n(8,W)}function Y(){T=ee(this.value),n(9,T)}function D(){G=ee(this.value),n(10,G)}function pe(){H=ee(this.value),n(11,H)}function dt(){U=ee(this.value),n(12,U)}function Ft(){R=ee(this.value),n(13,R)}function Ce(){ce=this.checked,n(16,ce)}function Vt(){ie=this.checked,n(17,ie)}function ft(){K=this.checked,n(21,K)}function xt(){q=Al(this),n(20,q),n(30,r)}function Ae(){x=ee(this.value),n(18,x)}function Gt(){C=ee(this.value),n(19,C)}function Ne(){_e=this.value,n(29,_e)}function pt(){d=this.value,n(23,d)}return e.$$set=B=>{"onMessage"in B&&n(37,u=B.onMessage)},e.$$.update=()=>{var B,ye,Ct,Ze,At,we,mt,ht,_t,ge,Pe,We,et,St,tt,Tt,nt,bt,Et;e.$$.dirty[0]&3&&(s[i],be(),re()),e.$$.dirty[0]&7&&((B=s[i])==null||B.setResizable(f)),e.$$.dirty[0]&11&&(g?(ye=s[i])==null||ye.maximize():(Ct=s[i])==null||Ct.unmaximize()),e.$$.dirty[0]&19&&((Ze=s[i])==null||Ze.setDecorations(v)),e.$$.dirty[0]&35&&((At=s[i])==null||At.setAlwaysOnTop(y)),e.$$.dirty[0]&67&&((we=s[i])==null||we.setContentProtected(M)),e.$$.dirty[0]&131&&((mt=s[i])==null||mt.setFullscreen(h)),e.$$.dirty[0]&771&&W&&T&&((ht=s[i])==null||ht.setSize(new rt(W,T))),e.$$.dirty[0]&3075&&(G&&H?(_t=s[i])==null||_t.setMinSize(new xn(G,H)):(ge=s[i])==null||ge.setMinSize(null)),e.$$.dirty[0]&12291&&(U>800&&R>400?(Pe=s[i])==null||Pe.setMaxSize(new xn(U,R)):(We=s[i])==null||We.setMaxSize(null)),e.$$.dirty[0]&49155&&E!==null&&I!==null&&((et=s[i])==null||et.setPosition(new $e(E,I))),e.$$.dirty[0]&3&&((St=s[i])==null||St.scaleFactor().then(gt=>n(24,P=gt))),e.$$.dirty[0]&3&&Ue(s[i]),e.$$.dirty[0]&65539&&((tt=s[i])==null||tt.setCursorGrab(ce)),e.$$.dirty[0]&131075&&((Tt=s[i])==null||Tt.setCursorVisible(ie)),e.$$.dirty[0]&1048579&&((nt=s[i])==null||nt.setCursorIcon(q)),e.$$.dirty[0]&786435&&x!==null&&C!==null&&((bt=s[i])==null||bt.setCursorPosition(new $e(x,C))),e.$$.dirty[0]&2097155&&((Et=s[i])==null||Et.setIgnoreCursorEvents(K))},[i,s,f,g,v,y,M,h,W,T,G,H,U,R,E,I,ce,ie,x,C,q,K,p,d,P,X,O,j,S,_e,r,le,ve,ke,Me,se,de,u,te,Te,Ee,Z,ne,ue,J,Le,fe,ze,$,z,Y,D,pe,dt,Ft,Ce,Vt,ft,xt,Ae,Gt,Ne,pt]}class ca extends He{constructor(t){super(),Re(this,t,ua,ra,Se,{onMessage:37},null,[-1,-1,-1])}}function Nl(e){let t,n,i,s,r,u,p;return{c(){t=a("br"),n=m(),i=a("input"),s=m(),r=a("button"),r.textContent="Write",o(i,"class","input"),o(i,"placeholder","write to stdin"),o(r,"class","btn")},m(d,f){b(d,t,f),b(d,n,f),b(d,i,f),N(i,e[4]),b(d,s,f),b(d,r,f),u||(p=[A(i,"input",e[14]),A(r,"click",e[8])],u=!0)},p(d,f){f&16&&i.value!==d[4]&&N(i,d[4])},d(d){d&&_(t),d&&_(n),d&&_(i),d&&_(s),d&&_(r),u=!1,he(p)}}}function da(e){let t,n,i,s,r,u,p,d,f,g,v,y,M,h,W,T,G,H,U,R,E,I,P,X,O=e[5]&&Nl(e);return{c(){t=a("div"),n=a("div"),i=w(`Script: + `),s=a("input"),r=m(),u=a("div"),p=w(`Encoding: + `),d=a("input"),f=m(),g=a("div"),v=w(`Working directory: + `),y=a("input"),M=m(),h=a("div"),W=w(`Arguments: + `),T=a("input"),G=m(),H=a("div"),U=a("button"),U.textContent="Run",R=m(),E=a("button"),E.textContent="Kill",I=m(),O&&O.c(),o(s,"class","grow input"),o(n,"class","flex items-center gap-1"),o(d,"class","grow input"),o(u,"class","flex items-center gap-1"),o(y,"class","grow input"),o(y,"placeholder","Working directory"),o(g,"class","flex items-center gap-1"),o(T,"class","grow input"),o(T,"placeholder","Environment variables"),o(h,"class","flex items-center gap-1"),o(U,"class","btn"),o(E,"class","btn"),o(H,"class","flex children:grow gap-1"),o(t,"class","flex flex-col childre:grow gap-1")},m(j,S){b(j,t,S),l(t,n),l(n,i),l(n,s),N(s,e[0]),l(t,r),l(t,u),l(u,p),l(u,d),N(d,e[3]),l(t,f),l(t,g),l(g,v),l(g,y),N(y,e[1]),l(t,M),l(t,h),l(h,W),l(h,T),N(T,e[2]),l(t,G),l(t,H),l(H,U),l(H,R),l(H,E),l(t,I),O&&O.m(t,null),P||(X=[A(s,"input",e[10]),A(d,"input",e[11]),A(y,"input",e[12]),A(T,"input",e[13]),A(U,"click",e[6]),A(E,"click",e[7])],P=!0)},p(j,[S]){S&1&&s.value!==j[0]&&N(s,j[0]),S&8&&d.value!==j[3]&&N(d,j[3]),S&2&&y.value!==j[1]&&N(y,j[1]),S&4&&T.value!==j[2]&&N(T,j[2]),j[5]?O?O.p(j,S):(O=Nl(j),O.c(),O.m(t,null)):O&&(O.d(1),O=null)},i:F,o:F,d(j){j&&_(t),O&&O.d(),P=!1,he(X)}}}function fa(e,t,n){const i=navigator.userAgent.includes("Windows");let s=i?"cmd":"sh",r=i?["/C"]:["-c"],{onMessage:u}=t,p='echo "hello world"',d=null,f="SOMETHING=value ANOTHER=2",g="",v="",y;function M(){return f.split(" ").reduce((I,P)=>{let[X,O]=P.split("=");return{...I,[X]:O}},{})}function h(){n(5,y=null);const I=Vn.create(s,[...r,p],{cwd:d||null,env:M(),encoding:g||void 0});I.on("close",P=>{u(`command finished with code ${P.code} and signal ${P.signal}`),n(5,y=null)}),I.on("error",P=>u(`command error: "${P}"`)),I.stdout.on("data",P=>u(`command stdout: "${P}"`)),I.stderr.on("data",P=>u(`command stderr: "${P}"`)),I.spawn().then(P=>{n(5,y=P)}).catch(u)}function W(){y.kill().then(()=>u("killed child process")).catch(u)}function T(){y.write(v).catch(u)}function G(){p=this.value,n(0,p)}function H(){g=this.value,n(3,g)}function U(){d=this.value,n(1,d)}function R(){f=this.value,n(2,f)}function E(){v=this.value,n(4,v)}return e.$$set=I=>{"onMessage"in I&&n(9,u=I.onMessage)},[p,d,f,g,v,y,h,W,T,u,G,H,U,R,E]}class pa extends He{constructor(t){super(),Re(this,t,fa,da,Se,{onMessage:9})}}var ma={};Qe(ma,{checkUpdate:()=>bs,installUpdate:()=>_s,onUpdaterEvent:()=>Ai});async function Ai(e){return qt("tauri://update-status",t=>{e(t==null?void 0:t.payload)})}async function _s(){let e;function t(){e&&e(),e=void 0}return new Promise((n,i)=>{function s(r){if(r.error){t(),i(r.error);return}r.status==="DONE"&&(t(),n())}Ai(s).then(r=>{e=r}).catch(r=>{throw t(),r}),Gn("tauri://update-install").catch(r=>{throw t(),r})})}async function bs(){let e;function t(){e&&e(),e=void 0}return new Promise((n,i)=>{function s(u){t(),n({manifest:u,shouldUpdate:!0})}function r(u){if(u.error){t(),i(u.error);return}u.status==="UPTODATE"&&(t(),n({shouldUpdate:!1}))}is("tauri://update-available",u=>{s(u==null?void 0:u.payload)}).catch(u=>{throw t(),u}),Ai(r).then(u=>{e=u}).catch(u=>{throw t(),u}),Gn("tauri://update").catch(u=>{throw t(),u})})}function ha(e){let t;return{c(){t=a("button"),t.innerHTML='
',o(t,"class","btn text-accentText dark:text-darkAccentText flex items-center justify-center")},m(n,i){b(n,t,i)},p:F,d(n){n&&_(t)}}}function _a(e){let t,n,i;return{c(){t=a("button"),t.textContent="Install update",o(t,"class","btn")},m(s,r){b(s,t,r),n||(i=A(t,"click",e[4]),n=!0)},p:F,d(s){s&&_(t),n=!1,i()}}}function ba(e){let t,n,i;return{c(){t=a("button"),t.textContent="Check update",o(t,"class","btn")},m(s,r){b(s,t,r),n||(i=A(t,"click",e[3]),n=!0)},p:F,d(s){s&&_(t),n=!1,i()}}}function ga(e){let t;function n(r,u){return!r[0]&&!r[2]?ba:!r[1]&&r[2]?_a:ha}let i=n(e),s=i(e);return{c(){t=a("div"),s.c(),o(t,"class","flex children:grow children:h10")},m(r,u){b(r,t,u),s.m(t,null)},p(r,[u]){i===(i=n(r))&&s?s.p(r,u):(s.d(1),s=i(r),s&&(s.c(),s.m(t,null)))},i:F,o:F,d(r){r&&_(t),s.d()}}}function va(e,t,n){let{onMessage:i}=t,s;at(async()=>{s=await qt("tauri://update-status",i)}),ki(()=>{s&&s()});let r,u,p;async function d(){n(0,r=!0);try{const{shouldUpdate:g,manifest:v}=await bs();i(`Should update: ${g}`),i(v),n(2,p=g)}catch(g){i(g)}finally{n(0,r=!1)}}async function f(){n(1,u=!0);try{await _s(),i("Installation complete, restart required."),await Ci()}catch(g){i(g)}finally{n(1,u=!1)}}return e.$$set=g=>{"onMessage"in g&&n(5,i=g.onMessage)},[r,u,p,d,f,i]}class ya extends He{constructor(t){super(),Re(this,t,va,ga,Se,{onMessage:5})}}function wa(e){let t;return{c(){t=a("div"),t.innerHTML=`
Not available for Linux
+ `,o(t,"class","flex flex-col gap-2")},m(n,i){b(n,t,i)},p:F,i:F,o:F,d(n){n&&_(t)}}}function ka(e,t,n){let{onMessage:i}=t;const s=window.constraints={audio:!0,video:!0};function r(p){const d=document.querySelector("video"),f=p.getVideoTracks();i("Got stream with constraints:",s),i(`Using video device: ${f[0].label}`),window.stream=p,d.srcObject=p}function u(p){if(p.name==="ConstraintNotSatisfiedError"){const d=s.video;i(`The resolution ${d.width.exact}x${d.height.exact} px is not supported by your device.`)}else p.name==="PermissionDeniedError"&&i("Permissions have not been granted to use your camera and microphone, you need to allow the page access to your devices in order for the demo to work.");i(`getUserMedia error: ${p.name}`,p)}return at(async()=>{try{const p=await navigator.mediaDevices.getUserMedia(s);r(p)}catch(p){u(p)}}),ki(()=>{window.stream.getTracks().forEach(function(p){p.stop()})}),e.$$set=p=>{"onMessage"in p&&n(0,i=p.onMessage)},[i]}class Ma extends He{constructor(t){super(),Re(this,t,ka,wa,Se,{onMessage:0})}}function La(e){let t,n,i,s,r,u;return{c(){t=a("div"),n=a("button"),n.textContent="Show",i=m(),s=a("button"),s.textContent="Hide",o(n,"class","btn"),o(n,"id","show"),o(n,"title","Hides and shows the app after 2 seconds"),o(s,"class","btn"),o(s,"id","hide")},m(p,d){b(p,t,d),l(t,n),l(t,i),l(t,s),r||(u=[A(n,"click",e[0]),A(s,"click",e[1])],r=!0)},p:F,i:F,o:F,d(p){p&&_(t),r=!1,he(u)}}}function za(e,t,n){let{onMessage:i}=t;function s(){r().then(()=>{setTimeout(()=>{ps().then(()=>i("Shown app")).catch(i)},2e3)}).catch(i)}function r(){return ms().then(()=>i("Hide app")).catch(i)}return e.$$set=u=>{"onMessage"in u&&n(2,i=u.onMessage)},[s,r,i]}class Wa extends He{constructor(t){super(),Re(this,t,za,La,Se,{onMessage:2})}}function jl(e,t,n){const i=e.slice();return i[30]=t[n],i}function ql(e,t,n){const i=e.slice();return i[33]=t[n],i}function Fl(e){let t,n,i,s,r,u,p,d,f,g,v,y,M;function h(R,E){return R[3]?Aa:Ca}let W=h(e),T=W(e);function G(R,E){return R[2]?Ta:Sa}let H=G(e),U=H(e);return{c(){t=a("div"),n=a("span"),n.textContent="Tauri API Validation",i=m(),s=a("span"),r=a("span"),T.c(),p=m(),d=a("span"),d.innerHTML='
',f=m(),g=a("span"),U.c(),o(n,"class","lt-sm:pl-10 text-darkPrimaryText"),o(r,"title",u=e[3]?"Switch to Light mode":"Switch to Dark mode"),o(r,"class","hover:bg-hoverOverlay active:bg-hoverOverlayDarker dark:hover:bg-darkHoverOverlay dark:active:bg-darkHoverOverlayDarker"),o(d,"title","Minimize"),o(d,"class","hover:bg-hoverOverlay active:bg-hoverOverlayDarker dark:hover:bg-darkHoverOverlay dark:active:bg-darkHoverOverlayDarker"),o(g,"title",v=e[2]?"Restore":"Maximize"),o(g,"class","hover:bg-hoverOverlay active:bg-hoverOverlayDarker dark:hover:bg-darkHoverOverlay dark:active:bg-darkHoverOverlayDarker"),o(s,"class","h-100% children:h-100% children:w-12 children:inline-flex children:items-center children:justify-center"),o(t,"class","w-screen select-none h-8 pl-2 flex justify-between items-center absolute text-primaryText dark:text-darkPrimaryText"),o(t,"data-tauri-drag-region","")},m(R,E){b(R,t,E),l(t,n),l(t,i),l(t,s),l(s,r),T.m(r,null),l(s,p),l(s,d),l(s,f),l(s,g),U.m(g,null),y||(M=[A(r,"click",e[11]),A(d,"click",e[9]),A(g,"click",e[10])],y=!0)},p(R,E){W!==(W=h(R))&&(T.d(1),T=W(R),T&&(T.c(),T.m(r,null))),E[0]&8&&u!==(u=R[3]?"Switch to Light mode":"Switch to Dark mode")&&o(r,"title",u),H!==(H=G(R))&&(U.d(1),U=H(R),U&&(U.c(),U.m(g,null))),E[0]&4&&v!==(v=R[2]?"Restore":"Maximize")&&o(g,"title",v)},d(R){R&&_(t),T.d(),U.d(),y=!1,he(M)}}}function Ca(e){let t;return{c(){t=a("div"),o(t,"class","i-ph-moon")},m(n,i){b(n,t,i)},d(n){n&&_(t)}}}function Aa(e){let t;return{c(){t=a("div"),o(t,"class","i-ph-sun")},m(n,i){b(n,t,i)},d(n){n&&_(t)}}}function Sa(e){let t;return{c(){t=a("div"),o(t,"class","i-codicon-chrome-maximize")},m(n,i){b(n,t,i)},d(n){n&&_(t)}}}function Ta(e){let t;return{c(){t=a("div"),o(t,"class","i-codicon-chrome-restore")},m(n,i){b(n,t,i)},d(n){n&&_(t)}}}function Ea(e){let t;return{c(){t=a("span"),o(t,"class","i-codicon-menu animate-duration-300ms animate-fade-in")},m(n,i){b(n,t,i)},d(n){n&&_(t)}}}function Pa(e){let t;return{c(){t=a("span"),o(t,"class","i-codicon-close animate-duration-300ms animate-fade-in")},m(n,i){b(n,t,i)},d(n){n&&_(t)}}}function Vl(e){let t,n,i,s,r,u,p,d,f;function g(M,h){return M[3]?Da:Oa}let v=g(e),y=v(e);return{c(){t=a("a"),y.c(),n=m(),i=a("br"),s=m(),r=a("div"),u=m(),p=a("br"),o(t,"href","##"),o(t,"class","nv justify-between h-8"),o(r,"class","bg-white/5 h-2px")},m(M,h){b(M,t,h),y.m(t,null),b(M,n,h),b(M,i,h),b(M,s,h),b(M,r,h),b(M,u,h),b(M,p,h),d||(f=A(t,"click",e[11]),d=!0)},p(M,h){v!==(v=g(M))&&(y.d(1),y=v(M),y&&(y.c(),y.m(t,null)))},d(M){M&&_(t),y.d(),M&&_(n),M&&_(i),M&&_(s),M&&_(r),M&&_(u),M&&_(p),d=!1,f()}}}function Oa(e){let t,n;return{c(){t=w(`Switch to Dark mode + `),n=a("div"),o(n,"class","i-ph-moon")},m(i,s){b(i,t,s),b(i,n,s)},d(i){i&&_(t),i&&_(n)}}}function Da(e){let t,n;return{c(){t=w(`Switch to Light mode + `),n=a("div"),o(n,"class","i-ph-sun")},m(i,s){b(i,t,s),b(i,n,s)},d(i){i&&_(t),i&&_(n)}}}function Ia(e){let t,n,i,s,r=e[33].label+"",u,p,d,f;function g(){return e[19](e[33])}return{c(){t=a("a"),n=a("div"),i=m(),s=a("p"),u=w(r),o(n,"class",e[33].icon+" mr-2"),o(t,"href","##"),o(t,"class",p="nv "+(e[1]===e[33]?"nv_selected":""))},m(v,y){b(v,t,y),l(t,n),l(t,i),l(t,s),l(s,u),d||(f=A(t,"click",g),d=!0)},p(v,y){e=v,y[0]&2&&p!==(p="nv "+(e[1]===e[33]?"nv_selected":""))&&o(t,"class",p)},d(v){v&&_(t),d=!1,f()}}}function xl(e){let t,n=e[33]&&Ia(e);return{c(){n&&n.c(),t=Kl()},m(i,s){n&&n.m(i,s),b(i,t,s)},p(i,s){i[33]&&n.p(i,s)},d(i){n&&n.d(i),i&&_(t)}}}function Gl(e){let t,n=e[30].html+"",i;return{c(){t=new zs(!1),i=Kl(),t.a=i},m(s,r){t.m(n,s,r),b(s,i,r)},p(s,r){r[0]&64&&n!==(n=s[30].html+"")&&t.p(n)},d(s){s&&_(i),s&&t.d()}}}function Ra(e){let t,n,i,s,r,u,p,d,f,g,v,y,M,h,W,T,G,H,U,R,E,I,P,X,O,j,S=e[1].label+"",V,oe,ce,ie,x,C,q,K,_e,le,ve,ke,Me,se,re,be,Ue,de,te=e[5]&&Fl(e);function Te(z,Y){return z[0]?Pa:Ea}let Ee=Te(e),Z=Ee(e),ne=!e[5]&&Vl(e),ue=e[7],J=[];for(let z=0;z`,v=m(),y=a("a"),y.innerHTML=`GitHub + `,M=m(),h=a("a"),h.innerHTML=`Source + `,W=m(),T=a("br"),G=m(),H=a("div"),U=m(),R=a("br"),E=m(),I=a("div");for(let z=0;z',se=m(),re=a("div");for(let z=0;z<$.length;z+=1)$[z].c();o(n,"id","sidebarToggle"),o(n,"class","z-2000 display-none lt-sm:flex justify-center items-center absolute top-2 left-2 w-8 h-8 rd-8 bg-accent dark:bg-darkAccent active:bg-accentDark dark:active:bg-darkAccentDark"),o(u,"class","self-center p-7 cursor-pointer"),vs(u.src,p="tauri_logo.png")||o(u,"src",p),o(u,"alt","Tauri logo"),o(g,"class","nv justify-between h-8"),o(g,"target","_blank"),o(g,"href","https://tauri.app/v1/guides/"),o(y,"class","nv justify-between h-8"),o(y,"target","_blank"),o(y,"href","https://github.com/tauri-apps/tauri"),o(h,"class","nv justify-between h-8"),o(h,"target","_blank"),o(h,"href","https://github.com/tauri-apps/tauri/tree/dev/examples/api"),o(H,"class","bg-white/5 h-2px"),o(I,"class","flex flex-col overflow-y-auto children-h-10 children-flex-none gap-1"),o(r,"id","sidebar"),o(r,"class","lt-sm:h-screen lt-sm:shadow-lg lt-sm:shadow lt-sm:transition-transform lt-sm:absolute lt-sm:z-1999 bg-darkPrimaryLighter transition-colors-250 overflow-hidden grid select-none px-2"),o(ie,"class","mr-2"),o(ce,"class","overflow-y-auto"),o(O,"class","px-5 overflow-hidden grid grid-rows-[auto_1fr]"),o(K,"class","bg-black/20 h-2px cursor-ns-resize"),o(ve,"class","font-semibold"),o(Me,"class","cursor-pointer h-85% rd-1 p-1 flex justify-center items-center hover:bg-hoverOverlay dark:hover:bg-darkHoverOverlay active:bg-hoverOverlay/25 dark:active:bg-darkHoverOverlay/25 "),o(le,"class","flex justify-between items-center px-2"),o(re,"class","px-2 overflow-y-auto all:font-mono code-block all:text-xs"),o(q,"id","console"),o(q,"class","select-none h-15rem grid grid-rows-[2px_2rem_1fr] gap-1 overflow-hidden"),o(X,"class","flex-1 bg-primary dark:bg-darkPrimary transition-transform transition-colors-250 grid grid-rows-[2fr_auto]"),o(s,"class","flex h-screen w-screen overflow-hidden children-pt8 children-pb-2 text-primaryText dark:text-darkPrimaryText")},m(z,Y){te&&te.m(z,Y),b(z,t,Y),b(z,n,Y),Z.m(n,null),b(z,i,Y),b(z,s,Y),l(s,r),l(r,u),l(r,d),ne&&ne.m(r,null),l(r,f),l(r,g),l(r,v),l(r,y),l(r,M),l(r,h),l(r,W),l(r,T),l(r,G),l(r,H),l(r,U),l(r,R),l(r,E),l(r,I);for(let D=0;D{wi(D,1)}),Ts()}Le?(x=new Le(fe(z)),El(x.$$.fragment),vi(x.$$.fragment,1),yi(x,ie,null)):x=null}if(Y[0]&64){ze=z[6];let D;for(D=0;D{W(`File drop: ${JSON.stringify(C.payload)}`)});const s=navigator.userAgent.toLowerCase(),r=s.includes("android")||s.includes("iphone"),u=[{label:"Welcome",component:ta,icon:"i-ph-hand-waving"},{label:"Communication",component:oa,icon:"i-codicon-radio-tower"},!r&&{label:"CLI",component:la,icon:"i-codicon-terminal"},!r&&{label:"App",component:Wa,icon:"i-codicon-hubot"},!r&&{label:"Window",component:ca,icon:"i-codicon-window"},{label:"Shell",component:pa,icon:"i-codicon-terminal-bash"},!r&&{label:"Updater",component:ya,icon:"i-codicon-cloud-download"},{label:"WebRTC",component:Ma,icon:"i-ph-broadcast"}];let p=u[0];function d(C){n(1,p=C)}let f;at(async()=>{const C=jn();n(2,f=await C.isMaximized()),qt("tauri://resize",async()=>{n(2,f=await C.isMaximized())})});function g(){jn().minimize()}async function v(){const C=jn();await C.isMaximized()?C.unmaximize():C.maximize()}let y;at(()=>{n(3,y=localStorage&&localStorage.getItem("theme")=="dark"),Yl(y)});function M(){n(3,y=!y),Yl(y)}let h=Ps([]);ks(e,h,C=>n(6,i=C));function W(C){h.update(q=>[{html:`
[${new Date().toLocaleTimeString()}]: `+(typeof C=="string"?C:JSON.stringify(C,null,1))+"
"},...q])}function T(C){h.update(q=>[{html:`
[${new Date().toLocaleTimeString()}]: `+C+"
"},...q])}function G(){h.update(()=>[])}let H,U,R;function E(C){R=C.clientY;const q=window.getComputedStyle(H);U=parseInt(q.height,10);const K=le=>{const ve=le.clientY-R,ke=U-ve;n(4,H.style.height=`${ke{document.removeEventListener("mouseup",_e),document.removeEventListener("mousemove",K)};document.addEventListener("mouseup",_e),document.addEventListener("mousemove",K)}let I;at(async()=>{n(5,I=await us()==="win32")});let P=!1,X,O,j=!1,S=0,V=0;const oe=(C,q,K)=>Math.min(Math.max(q,C),K);at(()=>{n(17,X=document.querySelector("#sidebar")),O=document.querySelector("#sidebarToggle"),document.addEventListener("click",C=>{O.contains(C.target)?n(0,P=!P):P&&!X.contains(C.target)&&n(0,P=!1)}),document.addEventListener("touchstart",C=>{if(O.contains(C.target))return;const q=C.touches[0].clientX;(0{if(j){const q=C.touches[0].clientX;V=q;const K=(q-S)/10;X.style.setProperty("--translate-x",`-${oe(0,P?0-K:18.75-K,18.75)}rem`)}}),document.addEventListener("touchend",()=>{if(j){const C=(V-S)/10;n(0,P=P?C>-(18.75/2):C>18.75/2)}j=!1})});const ce=()=>Mi("https://tauri.app/"),ie=C=>{d(C),n(0,P=!1)};function x(C){bi[C?"unshift":"push"](()=>{H=C,n(4,H)})}return e.$$.update=()=>{if(e.$$.dirty[0]&1){const C=document.querySelector("#sidebar");C&&Ha(C,P)}},[P,p,f,y,H,I,i,u,d,g,v,M,h,W,T,G,E,X,ce,ie,x]}class Na extends He{constructor(t){super(),Re(this,t,Ua,Ra,Se,{},null,[-1,-1])}}new Na({target:document.querySelector("#app")}); diff --git a/examples/api/src-tauri/Cargo.lock b/examples/api/src-tauri/Cargo.lock index 18c18d39e47..68e7af1fd20 100644 --- a/examples/api/src-tauri/Cargo.lock +++ b/examples/api/src-tauri/Cargo.lock @@ -162,110 +162,6 @@ version = "1.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d92bec98840b8f03a5ff5413de5293bfcd8bf96467cf5452609f939ec6f5de16" -[[package]] -name = "async-broadcast" -version = "0.5.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7c48ccdbf6ca6b121e0f586cbc0e73ae440e56c67c30fa0873b4e110d9c26d2b" -dependencies = [ - "event-listener", - "futures-core", -] - -[[package]] -name = "async-channel" -version = "1.8.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cf46fee83e5ccffc220104713af3292ff9bc7c64c7de289f66dae8e38d826833" -dependencies = [ - "concurrent-queue", - "event-listener", - "futures-core", -] - -[[package]] -name = "async-executor" -version = "1.5.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "17adb73da160dfb475c183343c8cccd80721ea5a605d3eb57125f0a7b7a92d0b" -dependencies = [ - "async-lock", - "async-task", - "concurrent-queue", - "fastrand", - "futures-lite", - "slab", -] - -[[package]] -name = "async-fs" -version = "1.6.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "279cf904654eeebfa37ac9bb1598880884924aab82e290aa65c9e77a0e142e06" -dependencies = [ - "async-lock", - "autocfg", - "blocking", - "futures-lite", -] - -[[package]] -name = "async-io" -version = "1.13.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0fc5b45d93ef0529756f812ca52e44c221b35341892d3dcc34132ac02f3dd2af" -dependencies = [ - "async-lock", - "autocfg", - "cfg-if", - "concurrent-queue", - "futures-lite", - "log", - "parking", - "polling", - "rustix", - "slab", - "socket2", - "waker-fn", -] - -[[package]] -name = "async-lock" -version = "2.7.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fa24f727524730b077666307f2734b4a1a1c57acb79193127dcc8914d5242dd7" -dependencies = [ - "event-listener", -] - -[[package]] -name = "async-recursion" -version = "1.0.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3b015a331cc64ebd1774ba119538573603427eaace0a1950c423ab971f903796" -dependencies = [ - "proc-macro2", - "quote", - "syn", -] - -[[package]] -name = "async-task" -version = "4.4.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ecc7ab41815b3c653ccd2978ec3255c81349336702dfdf62ee6f7069b12a3aae" - -[[package]] -name = "async-trait" -version = "0.1.66" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b84f9ebcc6c1f5b8cb160f6990096a5c127f423fcb6e1ccc46c370cbdfb75dfc" -dependencies = [ - "proc-macro2", - "quote", - "syn", -] - [[package]] name = "atk" version = "0.16.0" @@ -290,12 +186,6 @@ dependencies = [ "system-deps", ] -[[package]] -name = "atomic-waker" -version = "1.1.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "debc29dde2e69f9e47506b525f639ed42300fc014a3e007832592448fa8e4599" - [[package]] name = "autocfg" version = "1.1.0" @@ -335,20 +225,6 @@ dependencies = [ "generic-array", ] -[[package]] -name = "blocking" -version = "1.3.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3c67b173a56acffd6d2326fb7ab938ba0b00a71480e14902b2591c87bc5741e8" -dependencies = [ - "async-channel", - "async-lock", - "async-task", - "atomic-waker", - "fastrand", - "futures-lite", -] - [[package]] name = "brotli" version = "3.3.4" @@ -587,15 +463,6 @@ dependencies = [ "memchr", ] -[[package]] -name = "concurrent-queue" -version = "2.1.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c278839b831783b70278b14df4d45e1beb1aad306c07bb796637de9a0e323e8e" -dependencies = [ - "crossbeam-utils", -] - [[package]] name = "convert_case" version = "0.4.0" @@ -772,17 +639,6 @@ dependencies = [ "syn", ] -[[package]] -name = "derivative" -version = "2.2.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fcc3dd5e9e9c0b295d6e1e4d811fb6f157d5ffd784b8d202fc62eac8035a770b" -dependencies = [ - "proc-macro2", - "quote", - "syn", -] - [[package]] name = "derive_more" version = "0.99.17" @@ -806,15 +662,6 @@ dependencies = [ "crypto-common", ] -[[package]] -name = "dirs" -version = "4.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ca3aa72a6f96ea37bbc5aa912f6788242832f75369bdfdadcb0e38423f100059" -dependencies = [ - "dirs-sys", -] - [[package]] name = "dirs-next" version = "2.0.0" @@ -825,17 +672,6 @@ dependencies = [ "dirs-sys-next", ] -[[package]] -name = "dirs-sys" -version = "0.3.7" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1b1d1d91c932ef41c0f2663aa8b0ca0342d444d842c06914aa0a7e352d0bada6" -dependencies = [ - "libc", - "redox_users", - "winapi", -] - [[package]] name = "dirs-sys-next" version = "0.1.2" @@ -889,27 +725,6 @@ dependencies = [ "cfg-if", ] -[[package]] -name = "enumflags2" -version = "0.7.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e75d4cd21b95383444831539909fbb14b9dc3fdceb2a6f5d36577329a1f55ccb" -dependencies = [ - "enumflags2_derive", - "serde", -] - -[[package]] -name = "enumflags2_derive" -version = "0.7.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f58dc3c5e468259f19f2d46304a6b28f1c3d034442e14b322d2b850e36f6d5ae" -dependencies = [ - "proc-macro2", - "quote", - "syn", -] - [[package]] name = "env_logger" version = "0.10.0" @@ -941,12 +756,6 @@ dependencies = [ "libc", ] -[[package]] -name = "event-listener" -version = "2.5.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0206175f82b8d6bf6652ff7d71a1e27fd2e4efde587fd368662814d6ec1d9ce0" - [[package]] name = "fastrand" version = "1.8.0" @@ -971,7 +780,7 @@ version = "0.3.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "1e1c54951450cbd39f3dbcf1005ac413b49487dabf18a720ad2383eccfeffb92" dependencies = [ - "memoffset 0.6.5", + "memoffset", "rustc_version 0.3.3", ] @@ -1069,21 +878,6 @@ version = "0.3.26" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "bfb8371b6fb2aeb2d280374607aeabfc99d95c72edfe51692e42d3d7f0d08531" -[[package]] -name = "futures-lite" -version = "1.12.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7694489acd39452c77daa48516b894c153f192c3578d5a839b62c58099fcbf48" -dependencies = [ - "fastrand", - "futures-core", - "futures-io", - "memchr", - "parking", - "pin-project-lite", - "waker-fn", -] - [[package]] name = "futures-macro" version = "0.3.26" @@ -1336,7 +1130,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e084807350b01348b6d9dbabb724d1a0bb987f47a2c85de200e98e12e30733bf" dependencies = [ "anyhow", - "heck 0.4.1", + "heck", "proc-macro-crate", "proc-macro-error", "proc-macro2", @@ -1464,15 +1258,6 @@ version = "0.12.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "8a9ee70c43aaf417c914396645a0fa852624801b24ebb7ae78fe8272889ac888" -[[package]] -name = "heck" -version = "0.3.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6d621efb26863f0e9924c6ac577e8275e5e6b77455db64ffa6c65c904e9e132c" -dependencies = [ - "unicode-segmentation", -] - [[package]] name = "heck" version = "0.4.1" @@ -1494,12 +1279,6 @@ version = "0.3.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "fed44880c466736ef9a5c5b5facefb5ed0785676d0c02d612db14e54f0d84286" -[[package]] -name = "hex" -version = "0.4.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7f24254aa9a54b5c858eaee2f5bccdb46aaf0e486a595ed5fd8f86ba55232a70" - [[package]] name = "html5ever" version = "0.25.2" @@ -1909,19 +1688,6 @@ version = "0.1.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c41e0c4fef86961ac6d6f8a82609f55f31b05e4fce149ac5710e439df7619ba4" -[[package]] -name = "mac-notification-sys" -version = "0.5.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3e72d50edb17756489e79d52eb146927bec8eba9dd48faadf9ef08bca3791ad5" -dependencies = [ - "cc", - "dirs-next", - "objc-foundation", - "objc_id", - "time", -] - [[package]] name = "malloc_buf" version = "0.0.6" @@ -1975,15 +1741,6 @@ dependencies = [ "autocfg", ] -[[package]] -name = "memoffset" -version = "0.7.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5de893c32cde5f383baa4c04c5d6dbdd735cfd4a794b0debdb2bb1b421da5ff4" -dependencies = [ - "autocfg", -] - [[package]] name = "mime" version = "0.3.16" @@ -2061,20 +1818,6 @@ version = "1.0.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e4a24736216ec316047a1fc4252e27dabb04218aa4a3f37c6e7ddbf1f9782b54" -[[package]] -name = "nix" -version = "0.26.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bfdda3d196821d6af13126e40375cdf7da646a96114af134d5f417a9a1dc8e1a" -dependencies = [ - "bitflags", - "cfg-if", - "libc", - "memoffset 0.7.1", - "pin-utils", - "static_assertions", -] - [[package]] name = "nodrop" version = "0.1.14" @@ -2090,18 +1833,6 @@ dependencies = [ "memchr", ] -[[package]] -name = "notify-rust" -version = "4.7.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3ce656bb6d22a93ae276a23de52d1aec5ba4db3ece3c0eb79dfd5add7384db6a" -dependencies = [ - "mac-notification-sys", - "serde", - "tauri-winrt-notification", - "zbus", -] - [[package]] name = "nu-ansi-term" version = "0.46.0" @@ -2183,17 +1914,6 @@ dependencies = [ "objc_exception", ] -[[package]] -name = "objc-foundation" -version = "0.1.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1add1b659e36c9607c7aab864a76c7a4c2760cd0cd2e120f3fb8b952c7e22bf9" -dependencies = [ - "block", - "objc", - "objc_id", -] - [[package]] name = "objc_exception" version = "0.1.2" @@ -2234,16 +1954,6 @@ dependencies = [ "windows-sys 0.42.0", ] -[[package]] -name = "ordered-stream" -version = "0.2.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9aa2b01e1d916879f73a53d01d1d6cee68adbb31d6d9177a8cfce093cced1d50" -dependencies = [ - "futures-core", - "pin-project-lite", -] - [[package]] name = "os_info" version = "3.6.0" @@ -2297,12 +2007,6 @@ dependencies = [ "system-deps", ] -[[package]] -name = "parking" -version = "2.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "427c3892f9e783d91cc128285287e70a59e206ca452770ece88a76f7a3eddd72" - [[package]] name = "parking_lot" version = "0.12.1" @@ -2473,7 +2177,7 @@ dependencies = [ "base64 0.13.1", "indexmap", "line-wrap", - "quick-xml 0.26.0", + "quick-xml", "serde", "time", ] @@ -2490,22 +2194,6 @@ dependencies = [ "miniz_oxide", ] -[[package]] -name = "polling" -version = "2.6.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7e1f879b2998099c2d69ab9605d145d5b661195627eccc680002c4918a7fb6fa" -dependencies = [ - "autocfg", - "bitflags", - "cfg-if", - "concurrent-queue", - "libc", - "log", - "pin-project-lite", - "windows-sys 0.45.0", -] - [[package]] name = "polyval" version = "0.6.0" @@ -2579,15 +2267,6 @@ dependencies = [ "unicode-ident", ] -[[package]] -name = "quick-xml" -version = "0.23.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "11bafc859c6815fbaffbbbf4229ecb767ac913fecb27f9ad4343662e9ef099ea" -dependencies = [ - "memchr", -] - [[package]] name = "quick-xml" version = "0.26.0" @@ -3011,17 +2690,6 @@ dependencies = [ "stable_deref_trait", ] -[[package]] -name = "sha1" -version = "0.10.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f04293dc80c3993519f2d7f6f511707ee7094fe0c6d3406feb330cdb3540eba3" -dependencies = [ - "cfg-if", - "cpufeatures", - "digest", -] - [[package]] name = "sha2" version = "0.10.6" @@ -3126,12 +2794,6 @@ dependencies = [ "loom", ] -[[package]] -name = "static_assertions" -version = "1.1.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a2eb9349b6444b326872e140eb1cf5e7c522154d69e7a0ffb0fb81c06b37543f" - [[package]] name = "string_cache" version = "0.8.4" @@ -3164,27 +2826,6 @@ version = "0.10.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "73473c0e59e6d5812c5dfe2a064a6444949f089e20eec9a2e5506596494e4623" -[[package]] -name = "strum" -version = "0.22.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f7ac893c7d471c8a21f31cfe213ec4f6d9afeed25537c772e08ef3f005f8729e" -dependencies = [ - "strum_macros", -] - -[[package]] -name = "strum_macros" -version = "0.22.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "339f799d8b549e3744c7ac7feb216383e4005d94bdb22561b3ab8f3b808ae9fb" -dependencies = [ - "heck 0.3.3", - "proc-macro2", - "quote", - "syn", -] - [[package]] name = "subtle" version = "2.4.1" @@ -3220,7 +2861,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "2955b1fe31e1fa2fbd1976b71cc69a606d7d4da16f6de3333d0c92d51419aeff" dependencies = [ "cfg-expr", - "heck 0.4.1", + "heck", "pkg-config", "toml", "version-compare", @@ -3313,7 +2954,7 @@ dependencies = [ "glib", "glob", "gtk", - "heck 0.4.1", + "heck", "http", "ico 0.2.0", "ignore", @@ -3322,7 +2963,6 @@ dependencies = [ "libc", "log", "minisign-verify", - "notify-rust", "objc", "once_cell", "open", @@ -3356,7 +2996,6 @@ dependencies = [ "uuid", "webkit2gtk", "webview2-com", - "win7-notifications", "windows 0.44.0", "zip", ] @@ -3368,7 +3007,7 @@ dependencies = [ "anyhow", "cargo_toml", "filetime", - "heck 0.4.1", + "heck", "json-patch", "quote", "semver 1.0.16", @@ -3410,7 +3049,7 @@ dependencies = [ name = "tauri-macros" version = "2.0.0-alpha.4" dependencies = [ - "heck 0.4.1", + "heck", "proc-macro2", "quote", "syn", @@ -3510,7 +3149,7 @@ dependencies = [ "ctor", "getrandom 0.2.8", "glob", - "heck 0.4.1", + "heck", "html5ever", "infer 0.12.0", "json-patch", @@ -3540,17 +3179,6 @@ dependencies = [ "version_check", ] -[[package]] -name = "tauri-winrt-notification" -version = "0.1.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c58de036c4d2e20717024de2a3c4bf56c301f07b21bc8ef9b57189fce06f1f3b" -dependencies = [ - "quick-xml 0.23.1", - "strum", - "windows 0.39.0", -] - [[package]] name = "tempfile" version = "3.3.0" @@ -3818,16 +3446,6 @@ version = "0.1.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "9e79c4d996edb816c91e4308506774452e55e95c3c9de07b6729e17e15a5ef81" -[[package]] -name = "uds_windows" -version = "1.0.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ce65604324d3cce9b966701489fbd0cf318cb1f7bd9dd07ac9a4ee6fb791930d" -dependencies = [ - "tempfile", - "winapi", -] - [[package]] name = "unicase" version = "2.6.0" @@ -3941,12 +3559,6 @@ version = "0.9.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "49874b5167b65d7193b8aba1567f5c7d93d001cafc34600cee003eda787e483f" -[[package]] -name = "waker-fn" -version = "1.1.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9d5b2c62b4012a3e1eca5a7e077d13b3bf498c4073e33ccd58626607748ceeca" - [[package]] name = "walkdir" version = "2.3.2" @@ -4151,16 +3763,6 @@ dependencies = [ "windows-metadata", ] -[[package]] -name = "win7-notifications" -version = "0.3.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "210952d7163b9ed83a6fd9754ab2a101d14480f8491b5f1d6292771d88dbee70" -dependencies = [ - "once_cell", - "windows-sys 0.36.1", -] - [[package]] name = "winapi" version = "0.3.9" @@ -4266,19 +3868,6 @@ version = "0.44.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ee78911e3f4ce32c1ad9d3c7b0bd95389662ad8d8f1a3155688fed70bd96e2b6" -[[package]] -name = "windows-sys" -version = "0.36.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ea04155a16a59f9eab786fe12a4a450e75cdb175f9e0d80da1e17db09f55b8d2" -dependencies = [ - "windows_aarch64_msvc 0.36.1", - "windows_i686_gnu 0.36.1", - "windows_i686_msvc 0.36.1", - "windows_x86_64_gnu 0.36.1", - "windows_x86_64_msvc 0.36.1", -] - [[package]] name = "windows-sys" version = "0.42.0" @@ -4360,12 +3949,6 @@ version = "0.48.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "91ae572e1b79dba883e0d315474df7305d12f569b400fcf90581b06062f7e1bc" -[[package]] -name = "windows_aarch64_msvc" -version = "0.36.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9bb8c3fd39ade2d67e9874ac4f3db21f0d710bee00fe7cab16949ec184eeaa47" - [[package]] name = "windows_aarch64_msvc" version = "0.39.0" @@ -4384,12 +3967,6 @@ version = "0.48.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b2ef27e0d7bdfcfc7b868b317c1d32c641a6fe4629c171b8928c7b08d98d7cf3" -[[package]] -name = "windows_i686_gnu" -version = "0.36.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "180e6ccf01daf4c426b846dfc66db1fc518f074baa793aa7d9b9aaeffad6a3b6" - [[package]] name = "windows_i686_gnu" version = "0.39.0" @@ -4408,12 +3985,6 @@ version = "0.48.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "622a1962a7db830d6fd0a69683c80a18fda201879f0f447f065a3b7467daa241" -[[package]] -name = "windows_i686_msvc" -version = "0.36.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e2e7917148b2812d1eeafaeb22a97e4813dfa60a3f8f78ebe204bcc88f12f024" - [[package]] name = "windows_i686_msvc" version = "0.39.0" @@ -4432,12 +4003,6 @@ version = "0.48.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "4542c6e364ce21bf45d69fdd2a8e455fa38d316158cfd43b3ac1c5b1b19f8e00" -[[package]] -name = "windows_x86_64_gnu" -version = "0.36.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4dcd171b8776c41b97521e5da127a2d86ad280114807d0b2ab1e462bc764d9e1" - [[package]] name = "windows_x86_64_gnu" version = "0.39.0" @@ -4468,12 +4033,6 @@ version = "0.48.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "7896dbc1f41e08872e9d5e8f8baa8fdd2677f29468c4e156210174edc7f7b953" -[[package]] -name = "windows_x86_64_msvc" -version = "0.36.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c811ca4a8c853ef420abd8592ba53ddbbac90410fab6903b3e79972a631f7680" - [[package]] name = "windows_x86_64_msvc" version = "0.39.0" @@ -4570,70 +4129,6 @@ dependencies = [ "libc", ] -[[package]] -name = "zbus" -version = "3.11.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3dc29e76f558b2cb94190e8605ecfe77dd40f5df8c072951714b4b71a97f5848" -dependencies = [ - "async-broadcast", - "async-executor", - "async-fs", - "async-io", - "async-lock", - "async-recursion", - "async-task", - "async-trait", - "byteorder", - "derivative", - "dirs", - "enumflags2", - "event-listener", - "futures-core", - "futures-sink", - "futures-util", - "hex", - "nix", - "once_cell", - "ordered-stream", - "rand 0.8.5", - "serde", - "serde_repr", - "sha1", - "static_assertions", - "tracing", - "uds_windows", - "winapi", - "zbus_macros", - "zbus_names", - "zvariant", -] - -[[package]] -name = "zbus_macros" -version = "3.11.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "62a80fd82c011cd08459eaaf1fd83d3090c1b61e6d5284360074a7475af3a85d" -dependencies = [ - "proc-macro-crate", - "proc-macro2", - "quote", - "regex", - "syn", - "zvariant_utils", -] - -[[package]] -name = "zbus_names" -version = "2.5.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f34f314916bd89bdb9934154627fab152f4f28acdda03e7c4c68181b214fe7e3" -dependencies = [ - "serde", - "static_assertions", - "zvariant", -] - [[package]] name = "zip" version = "0.6.4" @@ -4644,41 +4139,3 @@ dependencies = [ "crc32fast", "crossbeam-utils", ] - -[[package]] -name = "zvariant" -version = "3.12.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "46fe4914a985446d6fd287019b5fceccce38303d71407d9e6e711d44954a05d8" -dependencies = [ - "byteorder", - "enumflags2", - "libc", - "serde", - "static_assertions", - "zvariant_derive", -] - -[[package]] -name = "zvariant_derive" -version = "3.12.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "34c20260af4b28b3275d6676c7e2a6be0d4332e8e0aba4616d34007fd84e462a" -dependencies = [ - "proc-macro-crate", - "proc-macro2", - "quote", - "syn", - "zvariant_utils", -] - -[[package]] -name = "zvariant_utils" -version = "1.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "53b22993dbc4d128a17a3b6c92f1c63872dd67198537ee728d8b5d7c40640a8b" -dependencies = [ - "proc-macro2", - "quote", - "syn", -] diff --git a/examples/api/src-tauri/Cargo.toml b/examples/api/src-tauri/Cargo.toml index 01f29118896..7d2e0a68fa1 100644 --- a/examples/api/src-tauri/Cargo.toml +++ b/examples/api/src-tauri/Cargo.toml @@ -40,7 +40,6 @@ features = [ "icon-png", "isolation", "macos-private-api", - "windows7-compat", "system-tray", "updater" ] diff --git a/examples/api/src/App.svelte b/examples/api/src/App.svelte index c12c494e8c5..7f5110cfeb8 100644 --- a/examples/api/src/App.svelte +++ b/examples/api/src/App.svelte @@ -7,7 +7,6 @@ import Welcome from './views/Welcome.svelte' import Cli from './views/Cli.svelte' import Communication from './views/Communication.svelte' - import Notifications from './views/Notifications.svelte' import Window from './views/Window.svelte' import Shell from './views/Shell.svelte' import Updater from './views/Updater.svelte' @@ -40,11 +39,6 @@ component: Cli, icon: 'i-codicon-terminal' }, - !isMobile && { - label: 'Notifications', - component: Notifications, - icon: 'i-codicon-bell-dot' - }, !isMobile && { label: 'App', component: App, diff --git a/examples/api/src/views/Notifications.svelte b/examples/api/src/views/Notifications.svelte deleted file mode 100644 index 624561dfa11..00000000000 --- a/examples/api/src/views/Notifications.svelte +++ /dev/null @@ -1,34 +0,0 @@ - - - diff --git a/examples/api/src/views/Window.svelte b/examples/api/src/views/Window.svelte index 7ffd6523dcc..76a6e558d66 100644 --- a/examples/api/src/views/Window.svelte +++ b/examples/api/src/views/Window.svelte @@ -7,7 +7,6 @@ PhysicalSize, PhysicalPosition } from '@tauri-apps/api/window' - import { open as openDialog } from '@tauri-apps/api/dialog' import { open } from '@tauri-apps/api/shell' let selectedWindow = appWindow.label @@ -109,16 +108,6 @@ setTimeout(windowMap[selectedWindow].unminimize, 2000) } - function getIcon() { - openDialog({ - multiple: false - }).then((path) => { - if (typeof path === 'string') { - windowMap[selectedWindow].setIcon(path) - } - }) - } - function createWindow() { if (!newWindowLabel) return @@ -262,7 +251,6 @@ > Hide -