!function(e){var t={};function n(o){if(t[o])return t[o].exports;var r=t[o]={i:o,l:!1,exports:{}};return e[o].call(r.exports,r,r.exports,n),r.l=!0,r.exports}n.m=e,n.c=t,n.d=function(e,t,o){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(o,r,function(t){return e[t]}.bind(null,r));return o},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=0)}([function(e,t,n){e.exports=n(1)},function(e,t,n){const{contextBridge:o,ipcRenderer:r,desktopCapturer:i,clipboard:l,nativeImage:a}=n(2),{resolutionEnum:c,ScreenShotSaveWayEnum:u}=n(3),s=n(4);n(5),n(6),o.exposeInMainWorld("electronAPI",{screenShot:async e=>{var t,n=[{width:1920,height:1080},{width:2560,height:1440},{width:3840,height:2160}];switch(e.resolution){case c.R_1080P:t=n[0];break;case c.R_2K:t=n[1];break;case c.R_4K:t=n[2];break;default:t=n[0]}let o=null;const d=(await i.getSources({types:["screen"],thumbnailSize:t}))[0].thumbnail;let f;switch(e.imageFormat){case"jpg":f=d.toJPEG(100);break;case"png":f=d.toPNG()}if(e.screenShotSaveWay!=u.CilpboardOnly&&(o=await r.invoke("file-conflict-handle",e),null!=o&&s.writeFileSync(o,f)),e.screenShotSaveWay!=u.FileOnly){const e=a.createFromBuffer(f);l.writeImage(e)}return o},onOpenFolderTriggered:e=>{r.on("open-folder-triggered",e)},offOpenFolderTriggered:()=>{r.removeAllListeners("open-folder-triggered")},onDeviceChanged:e=>{r.on("device-changed",e)},offDeviceChanged:()=>{r.removeAllListeners("device-changed")},selectFolder:()=>r.invoke("select-folder"),copyText:e=>l.writeText(e),getAllGamePad:()=>r.invoke("get-all-gamepad"),openSdl2Device:e=>r.invoke("open-sdl2-device",e),removeSdl2DeviceInstanceAllListeners:()=>r.invoke("remove-sdl2-device-instance-all-listeners"),getCurrentButtonsValue:()=>r.invoke("get-current-buttons-value"),getDeviceInstanceButtonNumber:()=>r.invoke("get-device-instance-button-number"),setStore:(e,t)=>r.invoke("set-store",e,t),getStore:(e,t)=>r.invoke("get-store",e,t),showConfirmMessageBox:(e,t,n,o)=>r.invoke("show-confirm-messageBox",e,t,n,o),fileConflictHandle:e=>r.invoke("file-conflict-handle",e),openFolder:e=>r.invoke("open-folder",e),restartApp:()=>r.send("restart-app"),getActiveWindowsInfo:()=>r.invoke("get-active-win-info")})},function(e,t){e.exports=require("electron")},function(e,t){e.exports={resolutionEnum:{R_1080P:"1080P (1920x1080)",R_2K:"2K (2560x1440)",R_4K:"4K (3840x2160)"},screenshotSoundEnum:{None:"None",NS2:"NS2"},CommonButtonEnum:{Home:"Home",L1:"L1",R1:"R1",Start:"Start",Select:"Select"},ScreenShotWayEnum:{DesktopCapturer:"Default",OBS:"OBS"},ScreenShotSaveWayEnum:{FileOnly:"file",CilpboardOnly:"clipboard",FileAndCilpboard:"fileAndClipboard"}}},function(e,t){e.exports=require("fs")},function(e,t){e.exports=require("path")},function(e,t){e.exports=require("os")}]);