diff --git a/apps/gpgui-helper/dist/assets/main-yAo_rN_V.js b/apps/gpgui-helper/dist/assets/main-BWBKPQer.js similarity index 99% rename from apps/gpgui-helper/dist/assets/main-yAo_rN_V.js rename to apps/gpgui-helper/dist/assets/main-BWBKPQer.js index 10f2bd1..cbac8d4 100644 --- a/apps/gpgui-helper/dist/assets/main-yAo_rN_V.js +++ b/apps/gpgui-helper/dist/assets/main-BWBKPQer.js @@ -165,4 +165,4 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann } `,Ls=typeof Is==`string`?null:qt` animation: ${Is} 3s infinite linear; - `,Rs=e=>{let{classes:t,variant:n,color:r}=e;return Hi({root:[`root`,`color${V(r)}`,n],dashed:[`dashed`,`dashedColor${V(r)}`],bar1:[`bar`,`bar1`,`barColor${V(r)}`,(n===`indeterminate`||n===`query`)&&`bar1Indeterminate`,n===`determinate`&&`bar1Determinate`,n===`buffer`&&`bar1Buffer`],bar2:[`bar`,`bar2`,n!==`buffer`&&`barColor${V(r)}`,n===`buffer`&&`color${V(r)}`,(n===`indeterminate`||n===`query`)&&`bar2Indeterminate`,n===`buffer`&&`bar2Buffer`]},As,t)},zs=(e,t)=>e.vars?e.vars.palette.LinearProgress[`${t}Bg`]:e.palette.mode===`light`?e.lighten(e.palette[t].main,.62):e.darken(e.palette[t].main,.5),Bs=Ka(`span`,{name:`MuiLinearProgress`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,t[`color${V(n.color)}`],t[n.variant]]}})(Xa(({theme:e})=>({position:`relative`,overflow:`hidden`,display:`block`,height:4,zIndex:0,"@media print":{colorAdjust:`exact`},variants:[...Object.entries(e.palette).filter(Ho()).map(([t])=>({props:{color:t},style:{backgroundColor:zs(e,t)}})),{props:({ownerState:e})=>e.color===`inherit`&&e.variant!==`buffer`,style:{"&::before":{content:`""`,position:`absolute`,left:0,top:0,right:0,bottom:0,backgroundColor:`currentColor`,opacity:.3}}},{props:{variant:`buffer`},style:{backgroundColor:`transparent`}},{props:{variant:`query`},style:{transform:`rotate(180deg)`}}]}))),Vs=Ka(`span`,{name:`MuiLinearProgress`,slot:`Dashed`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.dashed,t[`dashedColor${V(n.color)}`]]}})(Xa(({theme:e})=>({position:`absolute`,marginTop:0,height:`100%`,width:`100%`,backgroundSize:`10px 10px`,backgroundPosition:`0 -23px`,variants:[{props:{color:`inherit`},style:{opacity:.3,backgroundImage:`radial-gradient(currentColor 0%, currentColor 16%, transparent 42%)`}},...Object.entries(e.palette).filter(Ho()).map(([t])=>{let n=zs(e,t);return{props:{color:t},style:{backgroundImage:`radial-gradient(${n} 0%, ${n} 16%, transparent 42%)`}}})]})),Ls||{animation:`${Is} 3s infinite linear`}),Hs=Ka(`span`,{name:`MuiLinearProgress`,slot:`Bar1`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.bar,t.bar1,t[`barColor${V(n.color)}`],(n.variant===`indeterminate`||n.variant===`query`)&&t.bar1Indeterminate,n.variant===`determinate`&&t.bar1Determinate,n.variant===`buffer`&&t.bar1Buffer]}})(Xa(({theme:e})=>({width:`100%`,position:`absolute`,left:0,bottom:0,top:0,transition:`transform 0.2s linear`,transformOrigin:`left`,variants:[{props:{color:`inherit`},style:{backgroundColor:`currentColor`}},...Object.entries(e.palette).filter(Ho()).map(([t])=>({props:{color:t},style:{backgroundColor:(e.vars||e).palette[t].main}})),{props:{variant:`determinate`},style:{transition:`transform .${js}s linear`}},{props:{variant:`buffer`},style:{zIndex:1,transition:`transform .${js}s linear`}},{props:({ownerState:e})=>e.variant===`indeterminate`||e.variant===`query`,style:{width:`auto`}},{props:({ownerState:e})=>e.variant===`indeterminate`||e.variant===`query`,style:Ns||{animation:`${Ms} 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite`}}]}))),Us=Ka(`span`,{name:`MuiLinearProgress`,slot:`Bar2`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.bar,t.bar2,t[`barColor${V(n.color)}`],(n.variant===`indeterminate`||n.variant===`query`)&&t.bar2Indeterminate,n.variant===`buffer`&&t.bar2Buffer]}})(Xa(({theme:e})=>({width:`100%`,position:`absolute`,left:0,bottom:0,top:0,transition:`transform 0.2s linear`,transformOrigin:`left`,variants:[...Object.entries(e.palette).filter(Ho()).map(([t])=>({props:{color:t},style:{"--LinearProgressBar2-barColor":(e.vars||e).palette[t].main}})),{props:({ownerState:e})=>e.variant!==`buffer`&&e.color!==`inherit`,style:{backgroundColor:`var(--LinearProgressBar2-barColor, currentColor)`}},{props:({ownerState:e})=>e.variant!==`buffer`&&e.color===`inherit`,style:{backgroundColor:`currentColor`}},{props:{color:`inherit`},style:{opacity:.3}},...Object.entries(e.palette).filter(Ho()).map(([t])=>({props:{color:t,variant:`buffer`},style:{backgroundColor:zs(e,t),transition:`transform .${js}s linear`}})),{props:({ownerState:e})=>e.variant===`indeterminate`||e.variant===`query`,style:{width:`auto`}},{props:({ownerState:e})=>e.variant===`indeterminate`||e.variant===`query`,style:Fs||{animation:`${Ps} 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite`}}]}))),Ws=M.forwardRef(function(e,t){let n=Za({props:e,name:`MuiLinearProgress`}),{className:r,color:i=`primary`,value:a,valueBuffer:o,variant:s=`indeterminate`,...c}=n,l={...n,color:i,variant:s},u=Rs(l),d=Di(),f={},p={bar1:{},bar2:{}};if((s===`determinate`||s===`buffer`)&&a!==void 0){f[`aria-valuenow`]=Math.round(a),f[`aria-valuemin`]=0,f[`aria-valuemax`]=100;let e=a-100;d&&(e=-e),p.bar1.transform=`translateX(${e}%)`}if(s===`buffer`&&o!==void 0){let e=(o||0)-100;d&&(e=-e),p.bar2.transform=`translateX(${e}%)`}return(0,N.jsxs)(Bs,{className:Gr(u.root,r),ownerState:l,role:`progressbar`,...f,ref:t,...c,children:[s===`buffer`?(0,N.jsx)(Vs,{className:u.dashed,ownerState:l}):null,(0,N.jsx)(Hs,{className:u.bar1,ownerState:l,style:p.bar1}),s===`determinate`?null:(0,N.jsx)(Us,{className:u.bar2,ownerState:l,style:p.bar2})]})}),Gs=g();function Ks(e,t,n,r){if(n===`a`&&!r)throw TypeError(`Private accessor was defined without a getter`);if(typeof t==`function`?e!==t||!r:!t.has(e))throw TypeError(`Cannot read private member from an object whose class did not declare it`);return n===`m`?r:n===`a`?r.call(e):r?r.value:t.get(e)}function qs(e,t,n,r,i){if(r===`m`)throw TypeError(`Private method is not writable`);if(r===`a`&&!i)throw TypeError(`Private accessor was defined without a setter`);if(typeof t==`function`?e!==t||!i:!t.has(e))throw TypeError(`Cannot write private member to an object whose class did not declare it`);return r===`a`?i.call(e,n):i?i.value=n:t.set(e,n),n}var Js,Ys=`__TAURI_TO_IPC_KEY__`;function Xs(e,t=!1){return window.__TAURI_INTERNALS__.transformCallback(e,t)}async function W(e,t={},n){return window.__TAURI_INTERNALS__.invoke(e,t,n)}var Zs=class{get rid(){return Ks(this,Js,`f`)}constructor(e){Js.set(this,void 0),qs(this,Js,e,`f`)}async close(){return W(`plugin:resources|close`,{rid:this.rid})}};Js=new WeakMap;var Qs=class{constructor(...e){this.type=`Logical`,e.length===1?`Logical`in e[0]?(this.width=e[0].Logical.width,this.height=e[0].Logical.height):(this.width=e[0].width,this.height=e[0].height):(this.width=e[0],this.height=e[1])}toPhysical(e){return new $s(this.width*e,this.height*e)}[Ys](){return{width:this.width,height:this.height}}toJSON(){return this[Ys]()}},$s=class{constructor(...e){this.type=`Physical`,e.length===1?`Physical`in e[0]?(this.width=e[0].Physical.width,this.height=e[0].Physical.height):(this.width=e[0].width,this.height=e[0].height):(this.width=e[0],this.height=e[1])}toLogical(e){return new Qs(this.width/e,this.height/e)}[Ys](){return{width:this.width,height:this.height}}toJSON(){return this[Ys]()}},ec=class{constructor(e){this.size=e}toLogical(e){return this.size instanceof Qs?this.size:this.size.toLogical(e)}toPhysical(e){return this.size instanceof $s?this.size:this.size.toPhysical(e)}[Ys](){return{[`${this.size.type}`]:{width:this.size.width,height:this.size.height}}}toJSON(){return this[Ys]()}},tc=class{constructor(...e){this.type=`Logical`,e.length===1?`Logical`in e[0]?(this.x=e[0].Logical.x,this.y=e[0].Logical.y):(this.x=e[0].x,this.y=e[0].y):(this.x=e[0],this.y=e[1])}toPhysical(e){return new G(this.x*e,this.y*e)}[Ys](){return{x:this.x,y:this.y}}toJSON(){return this[Ys]()}},G=class{constructor(...e){this.type=`Physical`,e.length===1?`Physical`in e[0]?(this.x=e[0].Physical.x,this.y=e[0].Physical.y):(this.x=e[0].x,this.y=e[0].y):(this.x=e[0],this.y=e[1])}toLogical(e){return new tc(this.x/e,this.y/e)}[Ys](){return{x:this.x,y:this.y}}toJSON(){return this[Ys]()}},nc=class{constructor(e){this.position=e}toLogical(e){return this.position instanceof tc?this.position:this.position.toLogical(e)}toPhysical(e){return this.position instanceof G?this.position:this.position.toPhysical(e)}[Ys](){return{[`${this.position.type}`]:{x:this.position.x,y:this.position.y}}}toJSON(){return this[Ys]()}},rc;(function(e){e.WINDOW_RESIZED=`tauri://resize`,e.WINDOW_MOVED=`tauri://move`,e.WINDOW_CLOSE_REQUESTED=`tauri://close-requested`,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_CREATED=`tauri://window-created`,e.WINDOW_SUSPENDED=`tauri://suspended`,e.WINDOW_RESUMED=`tauri://resumed`,e.WEBVIEW_CREATED=`tauri://webview-created`,e.DRAG_ENTER=`tauri://drag-enter`,e.DRAG_OVER=`tauri://drag-over`,e.DRAG_DROP=`tauri://drag-drop`,e.DRAG_LEAVE=`tauri://drag-leave`})(rc||={});async function ic(e,t){window.__TAURI_EVENT_PLUGIN_INTERNALS__.unregisterListener(e,t),await W(`plugin:event|unlisten`,{event:e,eventId:t})}async function ac(e,t,n){return W(`plugin:event|listen`,{event:e,target:typeof n?.target==`string`?{kind:`AnyLabel`,label:n.target}:n?.target??{kind:`Any`},handler:Xs(t)}).then(t=>async()=>ic(e,t))}async function oc(e,t,n){return ac(e,n=>{ic(e,n.id),t(n)},n)}async function sc(e,t){await W(`plugin:event|emit`,{event:e,payload:t})}async function cc(e,t,n){await W(`plugin:event|emit_to`,{target:typeof e==`string`?{kind:`AnyLabel`,label:e}:e,event:t,payload:n})}var lc=class e extends Zs{constructor(e){super(e)}static async new(t,n,r){return W(`plugin:image|new`,{rgba:uc(t),width:n,height:r}).then(t=>new e(t))}static async fromBytes(t){return W(`plugin:image|from_bytes`,{bytes:uc(t)}).then(t=>new e(t))}static async fromPath(t){return W(`plugin:image|from_path`,{path:t}).then(t=>new e(t))}async rgba(){return W(`plugin:image|rgba`,{rid:this.rid}).then(e=>new Uint8Array(e))}async size(){return W(`plugin:image|size`,{rid:this.rid})}};function uc(e){return e==null?null:typeof e==`string`?e:e instanceof lc?e.rid:e}var dc;(function(e){e[e.Critical=1]=`Critical`,e[e.Informational=2]=`Informational`})(dc||={});var fc=class{constructor(e){this._preventDefault=!1,this.event=e.event,this.id=e.id}preventDefault(){this._preventDefault=!0}isPreventDefault(){return this._preventDefault}},pc;(function(e){e.None=`none`,e.Normal=`normal`,e.Indeterminate=`indeterminate`,e.Paused=`paused`,e.Error=`error`})(pc||={});function mc(){return new _c(window.__TAURI_INTERNALS__.metadata.currentWindow.label,{skip:!0})}async function hc(){return W(`plugin:window|get_all_windows`).then(e=>e.map(e=>new _c(e,{skip:!0})))}var gc=[`tauri://created`,`tauri://error`],_c=class{constructor(e,t={}){this.label=e,this.listeners=Object.create(null),t?.skip||W(`plugin:window|create`,{options:{...t,parent:typeof t.parent==`string`?t.parent:t.parent?.label,label:e}}).then(async()=>this.emit(`tauri://created`)).catch(async e=>this.emit(`tauri://error`,e))}static async getByLabel(e){return(await hc()).find(t=>t.label===e)??null}static getCurrent(){return mc()}static async getAll(){return hc()}static async getFocusedWindow(){for(let e of await hc())if(await e.isFocused())return e;return null}async listen(e,t){return this._handleTauriEvent(e,t)?()=>{let n=this.listeners[e];n.splice(n.indexOf(t),1)}:ac(e,t,{target:{kind:`Window`,label:this.label}})}async once(e,t){return this._handleTauriEvent(e,t)?()=>{let n=this.listeners[e];n.splice(n.indexOf(t),1)}:oc(e,t,{target:{kind:`Window`,label:this.label}})}async emit(e,t){if(gc.includes(e)){for(let n of this.listeners[e]||[])n({event:e,id:-1,payload:t});return}return sc(e,t)}async emitTo(e,t,n){if(gc.includes(t)){for(let e of this.listeners[t]||[])e({event:t,id:-1,payload:n});return}return cc(e,t,n)}_handleTauriEvent(e,t){return gc.includes(e)?(e in this.listeners?this.listeners[e].push(t):this.listeners[e]=[t],!0):!1}async scaleFactor(){return W(`plugin:window|scale_factor`,{label:this.label})}async innerPosition(){return W(`plugin:window|inner_position`,{label:this.label}).then(e=>new G(e))}async outerPosition(){return W(`plugin:window|outer_position`,{label:this.label}).then(e=>new G(e))}async innerSize(){return W(`plugin:window|inner_size`,{label:this.label}).then(e=>new $s(e))}async outerSize(){return W(`plugin:window|outer_size`,{label:this.label}).then(e=>new $s(e))}async isFullscreen(){return W(`plugin:window|is_fullscreen`,{label:this.label})}async isMinimized(){return W(`plugin:window|is_minimized`,{label:this.label})}async isMaximized(){return W(`plugin:window|is_maximized`,{label:this.label})}async isFocused(){return W(`plugin:window|is_focused`,{label:this.label})}async isDecorated(){return W(`plugin:window|is_decorated`,{label:this.label})}async isResizable(){return W(`plugin:window|is_resizable`,{label:this.label})}async isMaximizable(){return W(`plugin:window|is_maximizable`,{label:this.label})}async isMinimizable(){return W(`plugin:window|is_minimizable`,{label:this.label})}async isClosable(){return W(`plugin:window|is_closable`,{label:this.label})}async isVisible(){return W(`plugin:window|is_visible`,{label:this.label})}async title(){return W(`plugin:window|title`,{label:this.label})}async theme(){return W(`plugin:window|theme`,{label:this.label})}async isAlwaysOnTop(){return W(`plugin:window|is_always_on_top`,{label:this.label})}async activityName(){return W(`plugin:window|activity_name`,{label:this.label})}async sceneIdentifier(){return W(`plugin:window|scene_identifier`,{label:this.label})}async center(){return W(`plugin:window|center`,{label:this.label})}async requestUserAttention(e){let t=null;return e&&(t=e===dc.Critical?{type:`Critical`}:{type:`Informational`}),W(`plugin:window|request_user_attention`,{label:this.label,value:t})}async setResizable(e){return W(`plugin:window|set_resizable`,{label:this.label,value:e})}async setEnabled(e){return W(`plugin:window|set_enabled`,{label:this.label,value:e})}async isEnabled(){return W(`plugin:window|is_enabled`,{label:this.label})}async setMaximizable(e){return W(`plugin:window|set_maximizable`,{label:this.label,value:e})}async setMinimizable(e){return W(`plugin:window|set_minimizable`,{label:this.label,value:e})}async setClosable(e){return W(`plugin:window|set_closable`,{label:this.label,value:e})}async setTitle(e){return W(`plugin:window|set_title`,{label:this.label,value:e})}async maximize(){return W(`plugin:window|maximize`,{label:this.label})}async unmaximize(){return W(`plugin:window|unmaximize`,{label:this.label})}async toggleMaximize(){return W(`plugin:window|toggle_maximize`,{label:this.label})}async minimize(){return W(`plugin:window|minimize`,{label:this.label})}async unminimize(){return W(`plugin:window|unminimize`,{label:this.label})}async show(){return W(`plugin:window|show`,{label:this.label})}async hide(){return W(`plugin:window|hide`,{label:this.label})}async close(){return W(`plugin:window|close`,{label:this.label})}async destroy(){return W(`plugin:window|destroy`,{label:this.label})}async setDecorations(e){return W(`plugin:window|set_decorations`,{label:this.label,value:e})}async setShadow(e){return W(`plugin:window|set_shadow`,{label:this.label,value:e})}async setEffects(e){return W(`plugin:window|set_effects`,{label:this.label,value:e})}async clearEffects(){return W(`plugin:window|set_effects`,{label:this.label,value:null})}async setAlwaysOnTop(e){return W(`plugin:window|set_always_on_top`,{label:this.label,value:e})}async setAlwaysOnBottom(e){return W(`plugin:window|set_always_on_bottom`,{label:this.label,value:e})}async setContentProtected(e){return W(`plugin:window|set_content_protected`,{label:this.label,value:e})}async setSize(e){return W(`plugin:window|set_size`,{label:this.label,value:e instanceof ec?e:new ec(e)})}async setMinSize(e){return W(`plugin:window|set_min_size`,{label:this.label,value:e instanceof ec?e:e?new ec(e):null})}async setMaxSize(e){return W(`plugin:window|set_max_size`,{label:this.label,value:e instanceof ec?e:e?new ec(e):null})}async setSizeConstraints(e){function t(e){return e?{Logical:e}:null}return W(`plugin:window|set_size_constraints`,{label:this.label,value:{minWidth:t(e?.minWidth),minHeight:t(e?.minHeight),maxWidth:t(e?.maxWidth),maxHeight:t(e?.maxHeight)}})}async setPosition(e){return W(`plugin:window|set_position`,{label:this.label,value:e instanceof nc?e:new nc(e)})}async setFullscreen(e){return W(`plugin:window|set_fullscreen`,{label:this.label,value:e})}async setSimpleFullscreen(e){return W(`plugin:window|set_simple_fullscreen`,{label:this.label,value:e})}async setFocus(){return W(`plugin:window|set_focus`,{label:this.label})}async setFocusable(e){return W(`plugin:window|set_focusable`,{label:this.label,value:e})}async setIcon(e){return W(`plugin:window|set_icon`,{label:this.label,value:uc(e)})}async setSkipTaskbar(e){return W(`plugin:window|set_skip_taskbar`,{label:this.label,value:e})}async setCursorGrab(e){return W(`plugin:window|set_cursor_grab`,{label:this.label,value:e})}async setCursorVisible(e){return W(`plugin:window|set_cursor_visible`,{label:this.label,value:e})}async setCursorIcon(e){return W(`plugin:window|set_cursor_icon`,{label:this.label,value:e})}async setBackgroundColor(e){return W(`plugin:window|set_background_color`,{color:e})}async setCursorPosition(e){return W(`plugin:window|set_cursor_position`,{label:this.label,value:e instanceof nc?e:new nc(e)})}async setIgnoreCursorEvents(e){return W(`plugin:window|set_ignore_cursor_events`,{label:this.label,value:e})}async startDragging(){return W(`plugin:window|start_dragging`,{label:this.label})}async startResizeDragging(e){return W(`plugin:window|start_resize_dragging`,{label:this.label,value:e})}async setBadgeCount(e){return W(`plugin:window|set_badge_count`,{label:this.label,value:e})}async setBadgeLabel(e){return W(`plugin:window|set_badge_label`,{label:this.label,value:e})}async setOverlayIcon(e){return W(`plugin:window|set_overlay_icon`,{label:this.label,value:e?uc(e):void 0})}async setProgressBar(e){return W(`plugin:window|set_progress_bar`,{label:this.label,value:e})}async setVisibleOnAllWorkspaces(e){return W(`plugin:window|set_visible_on_all_workspaces`,{label:this.label,value:e})}async setTitleBarStyle(e){return W(`plugin:window|set_title_bar_style`,{label:this.label,value:e})}async setTheme(e){return W(`plugin:window|set_theme`,{label:this.label,value:e})}async onResized(e){return this.listen(rc.WINDOW_RESIZED,t=>{t.payload=new $s(t.payload),e(t)})}async onMoved(e){return this.listen(rc.WINDOW_MOVED,t=>{t.payload=new G(t.payload),e(t)})}async onCloseRequested(e){return this.listen(rc.WINDOW_CLOSE_REQUESTED,async t=>{let n=new fc(t);await e(n),n.isPreventDefault()||await this.destroy()})}async onDragDropEvent(e){let t=await this.listen(rc.DRAG_ENTER,t=>{e({...t,payload:{type:`enter`,paths:t.payload.paths,position:new G(t.payload.position)}})}),n=await this.listen(rc.DRAG_OVER,t=>{e({...t,payload:{type:`over`,position:new G(t.payload.position)}})}),r=await this.listen(rc.DRAG_DROP,t=>{e({...t,payload:{type:`drop`,paths:t.payload.paths,position:new G(t.payload.position)}})}),i=await this.listen(rc.DRAG_LEAVE,t=>{e({...t,payload:{type:`leave`}})});return()=>{t(),r(),n(),i()}}async onFocusChanged(e){let t=await this.listen(rc.WINDOW_FOCUS,t=>{e({...t,payload:!0})}),n=await this.listen(rc.WINDOW_BLUR,t=>{e({...t,payload:!1})});return()=>{t(),n()}}async onScaleChanged(e){return this.listen(rc.WINDOW_SCALE_FACTOR_CHANGED,e)}async onThemeChanged(e){return this.listen(rc.WINDOW_THEME_CHANGED,e)}},vc;(function(e){e.Disabled=`disabled`,e.Throttle=`throttle`,e.Suspend=`suspend`})(vc||={});var yc;(function(e){e.Default=`default`,e.FluentOverlay=`fluentOverlay`})(yc||={});var bc;(function(e){e.AppearanceBased=`appearanceBased`,e.Light=`light`,e.Dark=`dark`,e.MediumLight=`mediumLight`,e.UltraDark=`ultraDark`,e.Titlebar=`titlebar`,e.Selection=`selection`,e.Menu=`menu`,e.Popover=`popover`,e.Sidebar=`sidebar`,e.HeaderView=`headerView`,e.Sheet=`sheet`,e.WindowBackground=`windowBackground`,e.HudWindow=`hudWindow`,e.FullScreenUI=`fullScreenUI`,e.Tooltip=`tooltip`,e.ContentBackground=`contentBackground`,e.UnderWindowBackground=`underWindowBackground`,e.UnderPageBackground=`underPageBackground`,e.Mica=`mica`,e.Blur=`blur`,e.Acrylic=`acrylic`,e.Tabbed=`tabbed`,e.TabbedDark=`tabbedDark`,e.TabbedLight=`tabbedLight`})(bc||={});var xc;(function(e){e.FollowsWindowActiveState=`followsWindowActiveState`,e.Active=`active`,e.Inactive=`inactive`})(xc||={});var Sc=`/assets/icon-small-BO4dlTNl.svg`,Cc=mc();function wc(){let[e,t]=(0,M.useState)(null);return(0,M.useEffect)(()=>{let e=Cc.listen(`app://update-progress`,e=>{t(e.payload)});return()=>{e.then(e=>e())}},[]),e}function Tc(){let[e,t]=(0,M.useState)(!1);return(0,M.useEffect)(()=>{Cc.emit(`app://update`);let e=Cc.listen(`app://update-error`,()=>{t(!0)});return()=>{e.then(e=>e())}},[]),(0,N.jsxs)(N.Fragment,{children:[(0,N.jsx)(ks,{}),(0,N.jsx)(ls,{sx:{position:`absolute`,inset:0},display:`flex`,alignItems:`center`,px:2,"data-tauri-drag-region":!0,children:(0,N.jsxs)(ls,{display:`flex`,alignItems:`center`,flex:`1`,"data-tauri-drag-region":!0,children:[(0,N.jsx)(ls,{component:`img`,src:Sc,alt:`logo`,sx:{width:`4rem`,height:`4rem`},"data-tauri-drag-region":!0}),(0,N.jsx)(ls,{flex:1,ml:2,children:e?(0,N.jsx)(Dc,{onRetry:()=>{t(!1),Cc.emit(`app://update`)}}):(0,N.jsx)(Ec,{})})]})})]})}function Ec(){let e=wc();return(0,N.jsxs)(N.Fragment,{children:[(0,N.jsx)(ss,{variant:`h1`,fontSize:`1rem`,"data-tauri-drag-region":!0,children:`Updating the GUI components...`}),(0,N.jsx)(ls,{mt:1,children:(0,N.jsx)(Oc,{value:e})})]})}function Dc({onRetry:e}){return(0,N.jsxs)(N.Fragment,{children:[(0,N.jsx)(ss,{variant:`h1`,fontSize:`1rem`,"data-tauri-drag-region":!0,children:`Failed to update the GUI components.`}),(0,N.jsx)(ls,{mt:1,"data-tauri-drag-region":!0,children:(0,N.jsx)(xs,{variant:`contained`,color:`primary`,size:`small`,onClick:e,sx:{textTransform:`none`},children:`Retry`})})]})}function Oc(e){let{value:t}=e;return(0,N.jsxs)(ls,{sx:{display:`flex`,alignItems:`center`},children:[(0,N.jsx)(ls,{flex:`1`,children:(0,N.jsx)(Ws,{variant:t===null?`indeterminate`:`determinate`,value:t??0,sx:{py:1.2,".MuiLinearProgress-bar":{transition:`none`}}})}),t!==null&&(0,N.jsx)(ls,{sx:{minWidth:35,textAlign:`right`,ml:1},children:(0,N.jsx)(ss,{variant:`body2`,color:`text.secondary`,children:`${Math.round(t)}%`})})]})}(0,Gs.createRoot)(document.getElementById(`root`)).render((0,N.jsx)(Tc,{})); \ No newline at end of file + `,Rs=e=>{let{classes:t,variant:n,color:r}=e;return Hi({root:[`root`,`color${V(r)}`,n],dashed:[`dashed`,`dashedColor${V(r)}`],bar1:[`bar`,`bar1`,`barColor${V(r)}`,(n===`indeterminate`||n===`query`)&&`bar1Indeterminate`,n===`determinate`&&`bar1Determinate`,n===`buffer`&&`bar1Buffer`],bar2:[`bar`,`bar2`,n!==`buffer`&&`barColor${V(r)}`,n===`buffer`&&`color${V(r)}`,(n===`indeterminate`||n===`query`)&&`bar2Indeterminate`,n===`buffer`&&`bar2Buffer`]},As,t)},zs=(e,t)=>e.vars?e.vars.palette.LinearProgress[`${t}Bg`]:e.palette.mode===`light`?e.lighten(e.palette[t].main,.62):e.darken(e.palette[t].main,.5),Bs=Ka(`span`,{name:`MuiLinearProgress`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,t[`color${V(n.color)}`],t[n.variant]]}})(Xa(({theme:e})=>({position:`relative`,overflow:`hidden`,display:`block`,height:4,zIndex:0,"@media print":{colorAdjust:`exact`},variants:[...Object.entries(e.palette).filter(Ho()).map(([t])=>({props:{color:t},style:{backgroundColor:zs(e,t)}})),{props:({ownerState:e})=>e.color===`inherit`&&e.variant!==`buffer`,style:{"&::before":{content:`""`,position:`absolute`,left:0,top:0,right:0,bottom:0,backgroundColor:`currentColor`,opacity:.3}}},{props:{variant:`buffer`},style:{backgroundColor:`transparent`}},{props:{variant:`query`},style:{transform:`rotate(180deg)`}}]}))),Vs=Ka(`span`,{name:`MuiLinearProgress`,slot:`Dashed`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.dashed,t[`dashedColor${V(n.color)}`]]}})(Xa(({theme:e})=>({position:`absolute`,marginTop:0,height:`100%`,width:`100%`,backgroundSize:`10px 10px`,backgroundPosition:`0 -23px`,variants:[{props:{color:`inherit`},style:{opacity:.3,backgroundImage:`radial-gradient(currentColor 0%, currentColor 16%, transparent 42%)`}},...Object.entries(e.palette).filter(Ho()).map(([t])=>{let n=zs(e,t);return{props:{color:t},style:{backgroundImage:`radial-gradient(${n} 0%, ${n} 16%, transparent 42%)`}}})]})),Ls||{animation:`${Is} 3s infinite linear`}),Hs=Ka(`span`,{name:`MuiLinearProgress`,slot:`Bar1`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.bar,t.bar1,t[`barColor${V(n.color)}`],(n.variant===`indeterminate`||n.variant===`query`)&&t.bar1Indeterminate,n.variant===`determinate`&&t.bar1Determinate,n.variant===`buffer`&&t.bar1Buffer]}})(Xa(({theme:e})=>({width:`100%`,position:`absolute`,left:0,bottom:0,top:0,transition:`transform 0.2s linear`,transformOrigin:`left`,variants:[{props:{color:`inherit`},style:{backgroundColor:`currentColor`}},...Object.entries(e.palette).filter(Ho()).map(([t])=>({props:{color:t},style:{backgroundColor:(e.vars||e).palette[t].main}})),{props:{variant:`determinate`},style:{transition:`transform .${js}s linear`}},{props:{variant:`buffer`},style:{zIndex:1,transition:`transform .${js}s linear`}},{props:({ownerState:e})=>e.variant===`indeterminate`||e.variant===`query`,style:{width:`auto`}},{props:({ownerState:e})=>e.variant===`indeterminate`||e.variant===`query`,style:Ns||{animation:`${Ms} 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite`}}]}))),Us=Ka(`span`,{name:`MuiLinearProgress`,slot:`Bar2`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.bar,t.bar2,t[`barColor${V(n.color)}`],(n.variant===`indeterminate`||n.variant===`query`)&&t.bar2Indeterminate,n.variant===`buffer`&&t.bar2Buffer]}})(Xa(({theme:e})=>({width:`100%`,position:`absolute`,left:0,bottom:0,top:0,transition:`transform 0.2s linear`,transformOrigin:`left`,variants:[...Object.entries(e.palette).filter(Ho()).map(([t])=>({props:{color:t},style:{"--LinearProgressBar2-barColor":(e.vars||e).palette[t].main}})),{props:({ownerState:e})=>e.variant!==`buffer`&&e.color!==`inherit`,style:{backgroundColor:`var(--LinearProgressBar2-barColor, currentColor)`}},{props:({ownerState:e})=>e.variant!==`buffer`&&e.color===`inherit`,style:{backgroundColor:`currentColor`}},{props:{color:`inherit`},style:{opacity:.3}},...Object.entries(e.palette).filter(Ho()).map(([t])=>({props:{color:t,variant:`buffer`},style:{backgroundColor:zs(e,t),transition:`transform .${js}s linear`}})),{props:({ownerState:e})=>e.variant===`indeterminate`||e.variant===`query`,style:{width:`auto`}},{props:({ownerState:e})=>e.variant===`indeterminate`||e.variant===`query`,style:Fs||{animation:`${Ps} 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite`}}]}))),Ws=M.forwardRef(function(e,t){let n=Za({props:e,name:`MuiLinearProgress`}),{className:r,color:i=`primary`,value:a,valueBuffer:o,variant:s=`indeterminate`,...c}=n,l={...n,color:i,variant:s},u=Rs(l),d=Di(),f={},p={bar1:{},bar2:{}};if((s===`determinate`||s===`buffer`)&&a!==void 0){f[`aria-valuenow`]=Math.round(a),f[`aria-valuemin`]=0,f[`aria-valuemax`]=100;let e=a-100;d&&(e=-e),p.bar1.transform=`translateX(${e}%)`}if(s===`buffer`&&o!==void 0){let e=(o||0)-100;d&&(e=-e),p.bar2.transform=`translateX(${e}%)`}return(0,N.jsxs)(Bs,{className:Gr(u.root,r),ownerState:l,role:`progressbar`,...f,ref:t,...c,children:[s===`buffer`?(0,N.jsx)(Vs,{className:u.dashed,ownerState:l}):null,(0,N.jsx)(Hs,{className:u.bar1,ownerState:l,style:p.bar1}),s===`determinate`?null:(0,N.jsx)(Us,{className:u.bar2,ownerState:l,style:p.bar2})]})}),Gs=g();function Ks(e,t,n,r){if(n===`a`&&!r)throw TypeError(`Private accessor was defined without a getter`);if(typeof t==`function`?e!==t||!r:!t.has(e))throw TypeError(`Cannot read private member from an object whose class did not declare it`);return n===`m`?r:n===`a`?r.call(e):r?r.value:t.get(e)}function qs(e,t,n,r,i){if(r===`m`)throw TypeError(`Private method is not writable`);if(r===`a`&&!i)throw TypeError(`Private accessor was defined without a setter`);if(typeof t==`function`?e!==t||!i:!t.has(e))throw TypeError(`Cannot write private member to an object whose class did not declare it`);return r===`a`?i.call(e,n):i?i.value=n:t.set(e,n),n}var Js,Ys=`__TAURI_TO_IPC_KEY__`;function Xs(e,t=!1){return window.__TAURI_INTERNALS__.transformCallback(e,t)}async function W(e,t={},n){return window.__TAURI_INTERNALS__.invoke(e,t,n)}var Zs=class{get rid(){return Ks(this,Js,`f`)}constructor(e){Js.set(this,void 0),qs(this,Js,e,`f`)}async close(){return W(`plugin:resources|close`,{rid:this.rid})}};Js=new WeakMap;var Qs=class{constructor(...e){this.type=`Logical`,e.length===1?`Logical`in e[0]?(this.width=e[0].Logical.width,this.height=e[0].Logical.height):(this.width=e[0].width,this.height=e[0].height):(this.width=e[0],this.height=e[1])}toPhysical(e){return new $s(this.width*e,this.height*e)}[Ys](){return{width:this.width,height:this.height}}toJSON(){return this[Ys]()}},$s=class{constructor(...e){this.type=`Physical`,e.length===1?`Physical`in e[0]?(this.width=e[0].Physical.width,this.height=e[0].Physical.height):(this.width=e[0].width,this.height=e[0].height):(this.width=e[0],this.height=e[1])}toLogical(e){return new Qs(this.width/e,this.height/e)}[Ys](){return{width:this.width,height:this.height}}toJSON(){return this[Ys]()}},ec=class{constructor(e){this.size=e}toLogical(e){return this.size instanceof Qs?this.size:this.size.toLogical(e)}toPhysical(e){return this.size instanceof $s?this.size:this.size.toPhysical(e)}[Ys](){return{[`${this.size.type}`]:{width:this.size.width,height:this.size.height}}}toJSON(){return this[Ys]()}},tc=class{constructor(...e){this.type=`Logical`,e.length===1?`Logical`in e[0]?(this.x=e[0].Logical.x,this.y=e[0].Logical.y):(this.x=e[0].x,this.y=e[0].y):(this.x=e[0],this.y=e[1])}toPhysical(e){return new G(this.x*e,this.y*e)}[Ys](){return{x:this.x,y:this.y}}toJSON(){return this[Ys]()}},G=class{constructor(...e){this.type=`Physical`,e.length===1?`Physical`in e[0]?(this.x=e[0].Physical.x,this.y=e[0].Physical.y):(this.x=e[0].x,this.y=e[0].y):(this.x=e[0],this.y=e[1])}toLogical(e){return new tc(this.x/e,this.y/e)}[Ys](){return{x:this.x,y:this.y}}toJSON(){return this[Ys]()}},nc=class{constructor(e){this.position=e}toLogical(e){return this.position instanceof tc?this.position:this.position.toLogical(e)}toPhysical(e){return this.position instanceof G?this.position:this.position.toPhysical(e)}[Ys](){return{[`${this.position.type}`]:{x:this.position.x,y:this.position.y}}}toJSON(){return this[Ys]()}},rc;(function(e){e.WINDOW_RESIZED=`tauri://resize`,e.WINDOW_MOVED=`tauri://move`,e.WINDOW_CLOSE_REQUESTED=`tauri://close-requested`,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_CREATED=`tauri://window-created`,e.WINDOW_SUSPENDED=`tauri://suspended`,e.WINDOW_RESUMED=`tauri://resumed`,e.WEBVIEW_CREATED=`tauri://webview-created`,e.DRAG_ENTER=`tauri://drag-enter`,e.DRAG_OVER=`tauri://drag-over`,e.DRAG_DROP=`tauri://drag-drop`,e.DRAG_LEAVE=`tauri://drag-leave`})(rc||={});async function ic(e,t){window.__TAURI_EVENT_PLUGIN_INTERNALS__.unregisterListener(e,t),await W(`plugin:event|unlisten`,{event:e,eventId:t})}async function ac(e,t,n){return W(`plugin:event|listen`,{event:e,target:typeof n?.target==`string`?{kind:`AnyLabel`,label:n.target}:n?.target??{kind:`Any`},handler:Xs(t)}).then(t=>async()=>ic(e,t))}async function oc(e,t,n){return ac(e,n=>{ic(e,n.id),t(n)},n)}async function sc(e,t){await W(`plugin:event|emit`,{event:e,payload:t})}async function cc(e,t,n){await W(`plugin:event|emit_to`,{target:typeof e==`string`?{kind:`AnyLabel`,label:e}:e,event:t,payload:n})}var lc=class e extends Zs{constructor(e){super(e)}static async new(t,n,r){return W(`plugin:image|new`,{rgba:uc(t),width:n,height:r}).then(t=>new e(t))}static async fromBytes(t){return W(`plugin:image|from_bytes`,{bytes:uc(t)}).then(t=>new e(t))}static async fromPath(t){return W(`plugin:image|from_path`,{path:t}).then(t=>new e(t))}async rgba(){return W(`plugin:image|rgba`,{rid:this.rid}).then(e=>new Uint8Array(e))}async size(){return W(`plugin:image|size`,{rid:this.rid})}};function uc(e){return e==null?null:typeof e==`string`?e:e instanceof lc?e.rid:e}var dc;(function(e){e[e.Critical=1]=`Critical`,e[e.Informational=2]=`Informational`})(dc||={});var fc=class{constructor(e){this._preventDefault=!1,this.event=e.event,this.id=e.id}preventDefault(){this._preventDefault=!0}isPreventDefault(){return this._preventDefault}},pc;(function(e){e.None=`none`,e.Normal=`normal`,e.Indeterminate=`indeterminate`,e.Paused=`paused`,e.Error=`error`})(pc||={});function mc(){return new _c(window.__TAURI_INTERNALS__.metadata.currentWindow.label,{skip:!0})}async function hc(){return W(`plugin:window|get_all_windows`).then(e=>e.map(e=>new _c(e,{skip:!0})))}var gc=[`tauri://created`,`tauri://error`],_c=class{constructor(e,t={}){this.label=e,this.listeners=Object.create(null),t?.skip||W(`plugin:window|create`,{options:{...t,parent:typeof t.parent==`string`?t.parent:t.parent?.label,label:e}}).then(async()=>this.emit(`tauri://created`)).catch(async e=>this.emit(`tauri://error`,e))}static async getByLabel(e){return(await hc()).find(t=>t.label===e)??null}static getCurrent(){return mc()}static async getAll(){return hc()}static async getFocusedWindow(){for(let e of await hc())if(await e.isFocused())return e;return null}async listen(e,t){return this._handleTauriEvent(e,t)?()=>{let n=this.listeners[e];n.splice(n.indexOf(t),1)}:ac(e,t,{target:{kind:`Window`,label:this.label}})}async once(e,t){return this._handleTauriEvent(e,t)?()=>{let n=this.listeners[e];n.splice(n.indexOf(t),1)}:oc(e,t,{target:{kind:`Window`,label:this.label}})}async emit(e,t){if(gc.includes(e)){for(let n of this.listeners[e]||[])n({event:e,id:-1,payload:t});return}return sc(e,t)}async emitTo(e,t,n){if(gc.includes(t)){for(let e of this.listeners[t]||[])e({event:t,id:-1,payload:n});return}return cc(e,t,n)}_handleTauriEvent(e,t){return gc.includes(e)?(e in this.listeners?this.listeners[e].push(t):this.listeners[e]=[t],!0):!1}async scaleFactor(){return W(`plugin:window|scale_factor`,{label:this.label})}async innerPosition(){return W(`plugin:window|inner_position`,{label:this.label}).then(e=>new G(e))}async outerPosition(){return W(`plugin:window|outer_position`,{label:this.label}).then(e=>new G(e))}async innerSize(){return W(`plugin:window|inner_size`,{label:this.label}).then(e=>new $s(e))}async outerSize(){return W(`plugin:window|outer_size`,{label:this.label}).then(e=>new $s(e))}async isFullscreen(){return W(`plugin:window|is_fullscreen`,{label:this.label})}async isMinimized(){return W(`plugin:window|is_minimized`,{label:this.label})}async isMaximized(){return W(`plugin:window|is_maximized`,{label:this.label})}async isFocused(){return W(`plugin:window|is_focused`,{label:this.label})}async isDecorated(){return W(`plugin:window|is_decorated`,{label:this.label})}async isResizable(){return W(`plugin:window|is_resizable`,{label:this.label})}async isMaximizable(){return W(`plugin:window|is_maximizable`,{label:this.label})}async isMinimizable(){return W(`plugin:window|is_minimizable`,{label:this.label})}async isClosable(){return W(`plugin:window|is_closable`,{label:this.label})}async isVisible(){return W(`plugin:window|is_visible`,{label:this.label})}async title(){return W(`plugin:window|title`,{label:this.label})}async theme(){return W(`plugin:window|theme`,{label:this.label})}async isAlwaysOnTop(){return W(`plugin:window|is_always_on_top`,{label:this.label})}async activityName(){return W(`plugin:window|activity_name`,{label:this.label})}async sceneIdentifier(){return W(`plugin:window|scene_identifier`,{label:this.label})}async center(){return W(`plugin:window|center`,{label:this.label})}async requestUserAttention(e){let t=null;return e&&(t=e===dc.Critical?{type:`Critical`}:{type:`Informational`}),W(`plugin:window|request_user_attention`,{label:this.label,value:t})}async setResizable(e){return W(`plugin:window|set_resizable`,{label:this.label,value:e})}async setEnabled(e){return W(`plugin:window|set_enabled`,{label:this.label,value:e})}async isEnabled(){return W(`plugin:window|is_enabled`,{label:this.label})}async setMaximizable(e){return W(`plugin:window|set_maximizable`,{label:this.label,value:e})}async setMinimizable(e){return W(`plugin:window|set_minimizable`,{label:this.label,value:e})}async setClosable(e){return W(`plugin:window|set_closable`,{label:this.label,value:e})}async setTitle(e){return W(`plugin:window|set_title`,{label:this.label,value:e})}async maximize(){return W(`plugin:window|maximize`,{label:this.label})}async unmaximize(){return W(`plugin:window|unmaximize`,{label:this.label})}async toggleMaximize(){return W(`plugin:window|toggle_maximize`,{label:this.label})}async minimize(){return W(`plugin:window|minimize`,{label:this.label})}async unminimize(){return W(`plugin:window|unminimize`,{label:this.label})}async show(){return W(`plugin:window|show`,{label:this.label})}async hide(){return W(`plugin:window|hide`,{label:this.label})}async close(){return W(`plugin:window|close`,{label:this.label})}async destroy(){return W(`plugin:window|destroy`,{label:this.label})}async setDecorations(e){return W(`plugin:window|set_decorations`,{label:this.label,value:e})}async setShadow(e){return W(`plugin:window|set_shadow`,{label:this.label,value:e})}async setEffects(e){return W(`plugin:window|set_effects`,{label:this.label,value:e})}async clearEffects(){return W(`plugin:window|set_effects`,{label:this.label,value:null})}async setAlwaysOnTop(e){return W(`plugin:window|set_always_on_top`,{label:this.label,value:e})}async setAlwaysOnBottom(e){return W(`plugin:window|set_always_on_bottom`,{label:this.label,value:e})}async setContentProtected(e){return W(`plugin:window|set_content_protected`,{label:this.label,value:e})}async setSize(e){return W(`plugin:window|set_size`,{label:this.label,value:e instanceof ec?e:new ec(e)})}async setMinSize(e){return W(`plugin:window|set_min_size`,{label:this.label,value:e instanceof ec?e:e?new ec(e):null})}async setMaxSize(e){return W(`plugin:window|set_max_size`,{label:this.label,value:e instanceof ec?e:e?new ec(e):null})}async setSizeConstraints(e){function t(e){return e?{Logical:e}:null}return W(`plugin:window|set_size_constraints`,{label:this.label,value:{minWidth:t(e?.minWidth),minHeight:t(e?.minHeight),maxWidth:t(e?.maxWidth),maxHeight:t(e?.maxHeight)}})}async setPosition(e){return W(`plugin:window|set_position`,{label:this.label,value:e instanceof nc?e:new nc(e)})}async setFullscreen(e){return W(`plugin:window|set_fullscreen`,{label:this.label,value:e})}async setSimpleFullscreen(e){return W(`plugin:window|set_simple_fullscreen`,{label:this.label,value:e})}async setFocus(){return W(`plugin:window|set_focus`,{label:this.label})}async setFocusable(e){return W(`plugin:window|set_focusable`,{label:this.label,value:e})}async setIcon(e){return W(`plugin:window|set_icon`,{label:this.label,value:uc(e)})}async setSkipTaskbar(e){return W(`plugin:window|set_skip_taskbar`,{label:this.label,value:e})}async setCursorGrab(e){return W(`plugin:window|set_cursor_grab`,{label:this.label,value:e})}async setCursorVisible(e){return W(`plugin:window|set_cursor_visible`,{label:this.label,value:e})}async setCursorIcon(e){return W(`plugin:window|set_cursor_icon`,{label:this.label,value:e})}async setBackgroundColor(e){return W(`plugin:window|set_background_color`,{color:e})}async setCursorPosition(e){return W(`plugin:window|set_cursor_position`,{label:this.label,value:e instanceof nc?e:new nc(e)})}async setIgnoreCursorEvents(e){return W(`plugin:window|set_ignore_cursor_events`,{label:this.label,value:e})}async startDragging(){return W(`plugin:window|start_dragging`,{label:this.label})}async startResizeDragging(e){return W(`plugin:window|start_resize_dragging`,{label:this.label,value:e})}async setBadgeCount(e){return W(`plugin:window|set_badge_count`,{label:this.label,value:e})}async setBadgeLabel(e){return W(`plugin:window|set_badge_label`,{label:this.label,value:e})}async setOverlayIcon(e){return W(`plugin:window|set_overlay_icon`,{label:this.label,value:e?uc(e):void 0})}async setProgressBar(e){return W(`plugin:window|set_progress_bar`,{label:this.label,value:e})}async setVisibleOnAllWorkspaces(e){return W(`plugin:window|set_visible_on_all_workspaces`,{label:this.label,value:e})}async setTitleBarStyle(e){return W(`plugin:window|set_title_bar_style`,{label:this.label,value:e})}async setTheme(e){return W(`plugin:window|set_theme`,{label:this.label,value:e})}async onResized(e){return this.listen(rc.WINDOW_RESIZED,t=>{t.payload=new $s(t.payload),e(t)})}async onMoved(e){return this.listen(rc.WINDOW_MOVED,t=>{t.payload=new G(t.payload),e(t)})}async onCloseRequested(e){return this.listen(rc.WINDOW_CLOSE_REQUESTED,async t=>{let n=new fc(t);await e(n),n.isPreventDefault()||await this.destroy()})}async onDragDropEvent(e){let t=await this.listen(rc.DRAG_ENTER,t=>{e({...t,payload:{type:`enter`,paths:t.payload.paths,position:new G(t.payload.position)}})}),n=await this.listen(rc.DRAG_OVER,t=>{e({...t,payload:{type:`over`,position:new G(t.payload.position)}})}),r=await this.listen(rc.DRAG_DROP,t=>{e({...t,payload:{type:`drop`,paths:t.payload.paths,position:new G(t.payload.position)}})}),i=await this.listen(rc.DRAG_LEAVE,t=>{e({...t,payload:{type:`leave`}})});return()=>{t(),r(),n(),i()}}async onFocusChanged(e){let t=await this.listen(rc.WINDOW_FOCUS,t=>{e({...t,payload:!0})}),n=await this.listen(rc.WINDOW_BLUR,t=>{e({...t,payload:!1})});return()=>{t(),n()}}async onScaleChanged(e){return this.listen(rc.WINDOW_SCALE_FACTOR_CHANGED,e)}async onThemeChanged(e){return this.listen(rc.WINDOW_THEME_CHANGED,e)}},vc;(function(e){e.Disabled=`disabled`,e.Throttle=`throttle`,e.Suspend=`suspend`})(vc||={});var yc;(function(e){e.Default=`default`,e.FluentOverlay=`fluentOverlay`})(yc||={});var bc;(function(e){e.AppearanceBased=`appearanceBased`,e.Light=`light`,e.Dark=`dark`,e.MediumLight=`mediumLight`,e.UltraDark=`ultraDark`,e.Titlebar=`titlebar`,e.Selection=`selection`,e.Menu=`menu`,e.Popover=`popover`,e.Sidebar=`sidebar`,e.HeaderView=`headerView`,e.Sheet=`sheet`,e.WindowBackground=`windowBackground`,e.HudWindow=`hudWindow`,e.FullScreenUI=`fullScreenUI`,e.Tooltip=`tooltip`,e.ContentBackground=`contentBackground`,e.UnderWindowBackground=`underWindowBackground`,e.UnderPageBackground=`underPageBackground`,e.Mica=`mica`,e.Blur=`blur`,e.Acrylic=`acrylic`,e.Tabbed=`tabbed`,e.TabbedDark=`tabbedDark`,e.TabbedLight=`tabbedLight`})(bc||={});var xc;(function(e){e.FollowsWindowActiveState=`followsWindowActiveState`,e.Active=`active`,e.Inactive=`inactive`})(xc||={});var Sc=`/assets/icon-small-BO4dlTNl.svg`,Cc=mc();function wc(){let[e,t]=(0,M.useState)(!1),[n,r]=(0,M.useState)(null);return(0,M.useEffect)(()=>{let e=[],n=!1;return(async()=>{let i=await Cc.listen(`app://update-progress`,e=>{r(e.payload)}),a=await Cc.listen(`app://update-error`,()=>{t(!0)});if(n){i(),a();return}e.push(i,a),await Cc.emit(`app://update`)})(),()=>{n=!0,e.forEach(e=>e())}},[]),(0,N.jsxs)(N.Fragment,{children:[(0,N.jsx)(ks,{}),(0,N.jsxs)(ls,{className:`update-window`,"data-tauri-drag-region":!0,children:[(0,N.jsx)(ls,{component:`img`,src:Sc,alt:`GPGUI`,className:`update-logo`,"data-tauri-drag-region":!0}),(0,N.jsx)(ls,{className:`update-content`,"data-tauri-drag-region":!0,children:e?(0,N.jsx)(Ec,{onRetry:()=>{t(!1),r(null),Cc.emit(`app://update`)}}):(0,N.jsx)(Tc,{progress:n})})]})]})}function Tc({progress:e}){return(0,N.jsxs)(ls,{className:`update-status`,"data-tauri-drag-region":!0,children:[(0,N.jsx)(ss,{component:`h1`,className:`update-title`,"data-tauri-drag-region":!0,children:`Downloading GPGUI`}),(0,N.jsx)(ss,{className:`update-description`,"data-tauri-drag-region":!0,children:`This may take a moment.`}),(0,N.jsx)(Dc,{value:e})]})}function Ec({onRetry:e}){return(0,N.jsxs)(ls,{className:`update-status error-status`,"data-tauri-drag-region":!0,children:[(0,N.jsx)(ss,{component:`h1`,className:`update-title`,"data-tauri-drag-region":!0,children:`GPGUI couldn’t be downloaded`}),(0,N.jsxs)(ls,{className:`error-actions`,"data-tauri-drag-region":!0,children:[(0,N.jsx)(ss,{className:`update-description`,"data-tauri-drag-region":!0,children:`Check your connection and try again.`}),(0,N.jsx)(xs,{variant:`contained`,size:`small`,onClick:e,className:`retry-button`,children:`Retry`})]})]})}function Dc(e){let{value:t}=e;return(0,N.jsxs)(ls,{className:`progress-row`,children:[(0,N.jsx)(ls,{className:`progress-track`,children:(0,N.jsx)(Ws,{variant:t===null?`indeterminate`:`determinate`,value:t??0,className:`progress-bar`,"aria-label":`Update progress`})}),(0,N.jsx)(ss,{className:`progress-label${t===null?` progress-label-hidden`:``}`,"aria-hidden":t===null,children:t===null?`100%`:`${Math.round(t)}%`})]})}(0,Gs.createRoot)(document.getElementById(`root`)).render((0,N.jsx)(wc,{})); \ No newline at end of file diff --git a/apps/gpgui-helper/dist/assets/main-C5muOSVO.css b/apps/gpgui-helper/dist/assets/main-C5muOSVO.css deleted file mode 100644 index 368a455..0000000 --- a/apps/gpgui-helper/dist/assets/main-C5muOSVO.css +++ /dev/null @@ -1 +0,0 @@ -html,body,#root{-webkit-user-select:none;user-select:none;cursor:default;height:100%;margin:0;padding:0} diff --git a/apps/gpgui-helper/dist/assets/main-CcrtollN.css b/apps/gpgui-helper/dist/assets/main-CcrtollN.css new file mode 100644 index 0000000..f5e20f4 --- /dev/null +++ b/apps/gpgui-helper/dist/assets/main-CcrtollN.css @@ -0,0 +1 @@ +html,body,#root{-webkit-user-select:none;user-select:none;cursor:default;height:100%;margin:0;padding:0;overflow:hidden}body{color:#2e3436;background:#f6f5f4;font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}.update-window{box-sizing:border-box;background:#f6f5f4;align-items:center;gap:15px;width:100%;height:100%;padding:16px 18px;display:flex}.update-logo{flex:none;width:48px;height:48px}.update-content,.update-status{width:100%;min-width:0}.update-title.MuiTypography-root{color:#2e3436;letter-spacing:-.01em;font-size:16px;font-weight:600;line-height:1.25}.update-description.MuiTypography-root{color:#5e5c64;margin-top:3px;font-size:12px;line-height:1.4}.progress-row{align-items:center;gap:10px;margin-top:9px;display:flex}.progress-track{flex:1;min-width:0}.progress-bar.MuiLinearProgress-root{background-color:#d5d3d1;border-radius:3px;height:6px;overflow:hidden}.progress-bar .MuiLinearProgress-bar{background:#3584e4;border-radius:3px;transition:transform .18s ease-out}.progress-label.MuiTypography-root{color:#3d3846;font-variant-numeric:tabular-nums;text-align:right;min-width:36px;font-size:12px;font-weight:500}.progress-label-hidden.MuiTypography-root{visibility:hidden}.error-status .update-title.MuiTypography-root{color:#9c2f2f}.error-actions{justify-content:space-between;align-items:center;gap:16px;margin-top:8px;display:flex}.error-actions .update-description.MuiTypography-root{margin-top:0}.retry-button.MuiButton-root{min-width:68px;box-shadow:none;text-transform:none;background:#3584e4;border-radius:8px;font-size:12px;font-weight:600;line-height:1.5}.retry-button.MuiButton-root:hover{box-shadow:none;background:#1c71d8} diff --git a/apps/gpgui-helper/dist/index.html b/apps/gpgui-helper/dist/index.html index cc2c108..3d3164f 100644 --- a/apps/gpgui-helper/dist/index.html +++ b/apps/gpgui-helper/dist/index.html @@ -4,9 +4,9 @@ -