Module 9302

1,153 characters · in no known chunk
Dependencies
Source Raw
function(e,t,n){"use strict";let i;n.r(t),n.d(t,{DEV_PID:()=>f,OVERLAY_DEFAULT_RESOLUTION:()=>d,OVERLAY_LAYOUT_ID:()=>h,OVERLAY_MIN_RESOLUTION:()=>_,OVERLAY_VERSION:()=>c,UNSET_PID:()=>E,getPID:()=>m,getRPCAuthToken:()=>I,isValidGamePID:()=>A,log:()=>T,setOutOfProcessSupport:()=>N,setPID:()=>g,supportsLegacy:()=>y,supportsOutOfProcess:()=>C,validResolution:()=>S}),n(323874),n(14289),n(35956);var r=n(719129),s=n(996308),a=n(206885),o=n(723702),l=n(19575),u=n(652215);let c=2,d={width:3840,height:2160},_={width:768,height:432},h="overlay_default",f=-2,E=-1,p=!1;function m(){if(void 0!==i&&i!==E)return i;let e=parseInt(new URLSearchParams(window.location.search).get("pid")??"",10);return isNaN(e)&&(e=E),i=e}function g(e){i=e}function A(e){return null!=e&&0!==e&&e!==E}function I(){return new URLSearchParams(window.location.search).get("rpc_auth_token")}function T(e){(0,s.tN)({type:u.kGV.LOG_MESSAGES,pid:m(),token:I(),payload:e})}function S(e){return!o.isPlatformEmbedded||e.width>=_.width&&e.height>=_.height}function N(e){p=e}function C(){return p}function y(){let e=(0,o.isWindows)()&&"arm64"===l.Ay.architecture;return a.O&&!e&&!(0,r.Zi)()}}