var a=Object.defineProperty;var p=Object.getOwnPropertyDescriptor;var l=Object.getOwnPropertyNames;var d=Object.prototype.hasOwnProperty;var u=(e,s)=>{for(var n in s)a(e,n,{get:s[n],enumerable:!0})},g=(e,s,n,i)=>{if(s&&typeof s=="object"||typeof s=="function")for(let r of l(s))!d.call(e,r)&&r!==n&&a(e,r,{get:()=>s[r],enumerable:!(i=p(s,r))||i.enumerable});return e};var f=e=>g(a({},"__esModule",{value:!0}),e);var W={};u(W,{getRecommendedGPUFlags:()=>h,getRecommendedOSFlags:()=>m});module.exports=f(W);const o=process.platform!=="win32"&&process.platform!=="darwin",t=o&&process.argv.includes("--ozone-platform=wayland")||process.argv.includes("--ozone-hint=auto")||process.argv.includes("--ozone-hint=wayland"),c=o&&(process.env.XDG_SESSION_TYPE==="wayland"||process.env.WAYLAND_DISPLAY!==void 0||t);function h(){const e=[];return(c||o&&process.arch==="arm64")&&e.push(["use-gl","egl"]),o&&e.push(["enable-features","VaapiVideoDecoder,VaapiVideoEncoder,VaapiIgnoreDriverChecks"],["disable-features","UseChromeOSDirectVideoDecoder"],["ignore-gpu-blocklist"],["enable-zero-copy"]),e}function m(){const e=[];return t?e.push(["enable-features","UseOzonePlatform,WebRTCPipeWireCapturer,WaylandWindowDecorations"]):c&&e.push(["enable-features","WebRTCPipeWireCapturer"]),e}0&&(module.exports={getRecommendedGPUFlags,getRecommendedOSFlags});
