2026-07-23 10:11:24 +00:00
// Module ID: 4144
2026-07-24 07:16:23 +00:00
// Function ID: 34834
2026-07-20 16:05:17 +00:00
// Name: _isNativeReflectConstruct
2026-07-23 10:11:24 +00:00
// Dependencies: [6, 7, 15, 17, 18, 4145, 4146, 566, 686, 2]
// Module 4144 (_isNativeReflectConstruct)
import _isNativeReflectConstruct from "_isNativeReflectConstruct" ;
import initialize from "initialize" ;
import _possibleConstructorReturn from "_possibleConstructorReturn" ;
import _getPrototypeOf from "_getPrototypeOf" ;
import _inherits from "_inherits" ;
import closure_5 from "_isNativeReflectConstruct" ;
import closure_6 from "_isNativeReflectConstruct" ;
import set from "_possibleConstructorReturn" ;
2026-07-20 16:05:17 +00:00
function _isNativeReflectConstruct() {
2026-07-23 10:11:24 +00:00
let _isNativeReflectConstruct = ! valueOf . call ( Reflect . construct ( Boolean , [ ] , ( ) = > {
2026-07-20 16:05:17 +00:00
} ) ) ;
function _isNativeReflectConstruct() {
2026-07-23 10:11:24 +00:00
return _isNativeReflectConstruct ;
2026-07-20 16:05:17 +00:00
}
const result = _isNativeReflectConstruct ( ) ;
}
2026-07-23 10:11:24 +00:00
function _createForOfIteratorHelperLoose ( iterable ) {
let _isNativeReflectConstruct = iterable ;
iterable = "undefined" !== typeof Symbol ;
if ( iterable ) {
2026-07-20 16:05:17 +00:00
const _Symbol = Symbol ;
2026-07-23 10:11:24 +00:00
iterable = iterable [ Symbol . iterator ] ;
2026-07-20 16:05:17 +00:00
}
2026-07-23 10:11:24 +00:00
if ( ! iterable ) {
iterable = iterable [ Symbol . iterator ] ;
2026-07-20 16:05:17 +00:00
}
2026-07-23 10:11:24 +00:00
if ( iterable ) {
const iter = iterable . call ( iterable ) ;
2026-07-20 16:05:17 +00:00
const next = iter . next ;
return next . bind ( iter ) ;
} else {
const _Array = Array ;
2026-07-23 10:11:24 +00:00
let tmp = iterable ;
if ( ! Array . isArray ( iterable ) ) {
2026-07-20 16:05:17 +00:00
let tmp2 ;
2026-07-23 10:11:24 +00:00
if ( iterable ) {
if ( "string" === typeof iterable ) {
tmp2 = _arrayLikeToArray ( iterable , undefined ) ;
2026-07-20 16:05:17 +00:00
} else {
const toString = { } . toString ;
2026-07-23 10:11:24 +00:00
const substr = toString . call ( iterable ) . slice ( 8 , - 1 ) ;
2026-07-20 16:05:17 +00:00
let name = substr ;
if ( tmp3 ) {
2026-07-23 10:11:24 +00:00
name = iterable . constructor . name ;
2026-07-20 16:05:17 +00:00
}
if ( "Map" !== name ) {
if ( "Set" !== name ) {
if ( "Arguments" === name ) {
2026-07-23 10:11:24 +00:00
let arr = _arrayLikeToArray ( iterable , undefined ) ;
2026-07-20 16:05:17 +00:00
} else {
2026-07-23 10:11:24 +00:00
let obj = /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/ ;
2026-07-20 16:05:17 +00:00
}
}
tmp2 = arr ;
}
const _Array2 = Array ;
2026-07-23 10:11:24 +00:00
arr = Array . from ( iterable ) ;
const callResult = toString . call ( iterable ) ;
tmp3 = "Object" === substr && iterable . constructor ;
2026-07-20 16:05:17 +00:00
}
}
tmp = tmp2 ;
if ( ! tmp2 ) {
const _TypeError = TypeError ;
const typeError = new TypeError ( "Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method." ) ;
throw typeError ;
}
}
if ( tmp ) {
2026-07-23 10:11:24 +00:00
_isNativeReflectConstruct = tmp ;
2026-07-20 16:05:17 +00:00
}
2026-07-23 10:11:24 +00:00
let c1 = 0 ;
2026-07-20 16:05:17 +00:00
return ( ) = > {
2026-07-23 10:11:24 +00:00
if ( initialize >= length . length ) {
2026-07-20 16:05:17 +00:00
let obj = { done : true } ;
} else {
obj = { done : false } ;
2026-07-23 10:11:24 +00:00
initialize = tmp3 + 1 ;
obj . value = length [ + initialize ] ;
2026-07-20 16:05:17 +00:00
}
return obj ;
} ;
}
}
function _arrayLikeToArray ( arg0 , arg1 ) {
let length ;
if ( tmp ) {
length = arg0 . length ;
}
const ArrayResult = Array ( length ) ;
for ( let num = 0 ; num < length ; num = num + 1 ) {
ArrayResult [ num ] = arg0 [ num ] ;
}
return ArrayResult ;
}
2026-07-23 10:11:24 +00:00
let c7 = null ;
let c8 = null ;
let set = new Set ( ) ;
2026-07-20 16:05:17 +00:00
let closure_10 = { } ;
let closure_11 = { } ;
const set1 = new Set ( ) ;
let closure_13 = Object . freeze ( { } ) ;
2026-07-23 10:11:24 +00:00
let tmp4 = ( ( DeviceSettingsStore ) = > {
2026-07-20 16:05:17 +00:00
class GameConsoleStore {
constructor ( ) {
self = this ;
tmp = GameConsoleStore ( this , GameConsoleStore ) ;
2026-07-23 10:11:24 +00:00
obj = outer1_3 ( GameConsoleStore ) ;
tmp2 = outer1_2 ;
if ( outer1_14 ( ) ) {
2026-07-20 16:05:17 +00:00
tmp6 = globalThis ;
_Reflect = Reflect ;
2026-07-23 10:11:24 +00:00
tmp7 = outer1_3 ;
2026-07-20 16:05:17 +00:00
tmp8 = arguments ;
2026-07-23 10:11:24 +00:00
constructResult = Reflect . construct ( obj , arguments , outer1_3 ( self ) . constructor ) ;
2026-07-20 16:05:17 +00:00
} else {
tmp3 = arguments ;
tmp4 = arguments ;
constructResult = obj ( . . . arguments ) ;
}
return tmp2 ( self , constructResult ) ;
}
}
callback2 ( GameConsoleStore , DeviceSettingsStore ) ;
let obj = {
key : "initialize" ,
value ( lastSelectedDeviceByPlatform ) {
const self = this ;
if ( null != lastSelectedDeviceByPlatform ) {
2026-07-23 10:11:24 +00:00
const outer1_11 = lastSelectedDeviceByPlatform . lastSelectedDeviceByPlatform ;
2026-07-20 16:05:17 +00:00
}
2026-07-23 10:11:24 +00:00
self . waitFor ( outer1_5 , outer1_6 ) ;
2026-07-20 16:05:17 +00:00
}
} ;
const items = [ obj , , , , , , , , ] ;
obj = {
key : "getUserAgnosticState" ,
value() {
2026-07-23 10:11:24 +00:00
return { lastSelectedDeviceByPlatform : outer1_11 } ;
2026-07-20 16:05:17 +00:00
}
} ;
items [ 1 ] = obj ;
obj = {
key : "getDevicesForPlatform" ,
value ( arg0 ) {
2026-07-23 10:11:24 +00:00
let tmp = outer1_10 [ arg0 ] ;
2026-07-20 16:05:17 +00:00
if ( null == tmp ) {
2026-07-23 10:11:24 +00:00
tmp = outer1_13 ;
2026-07-20 16:05:17 +00:00
}
return tmp ;
}
} ;
items [ 2 ] = obj ;
items [ 3 ] = {
key : "getLastSelectedDeviceByPlatform" ,
value ( arg0 ) {
2026-07-23 10:11:24 +00:00
return outer1_11 [ arg0 ] ;
2026-07-20 16:05:17 +00:00
}
} ;
items [ 4 ] = {
key : "getDevice" ,
value ( arg0 , arg1 ) {
let tmp2 ;
2026-07-23 10:11:24 +00:00
if ( null != outer1_10 [ arg0 ] ) {
2026-07-20 16:05:17 +00:00
tmp2 = tmp [ arg1 ] ;
}
return tmp2 ;
}
} ;
items [ 5 ] = {
key : "getFetchingDevices" ,
value ( arg0 ) {
2026-07-23 10:11:24 +00:00
return outer1_12 . has ( arg0 ) ;
2026-07-20 16:05:17 +00:00
}
} ;
items [ 6 ] = {
key : "getPendingDeviceCommands" ,
value() {
2026-07-23 10:11:24 +00:00
return outer1_9 ;
2026-07-20 16:05:17 +00:00
}
} ;
items [ 7 ] = {
key : "getRemoteSessionId" ,
value() {
2026-07-23 10:11:24 +00:00
return outer1_7 ;
2026-07-20 16:05:17 +00:00
}
} ;
items [ 8 ] = {
key : "getAwaitingRemoteSessionInfo" ,
value() {
2026-07-23 10:11:24 +00:00
return outer1_8 ;
2026-07-20 16:05:17 +00:00
}
} ;
return callback ( GameConsoleStore , items ) ;
2026-07-23 10:11:24 +00:00
} ) ( require ( "initialize" ) . DeviceSettingsStore ) ;
2026-07-20 16:05:17 +00:00
tmp4 . displayName = "GameConsoleStore" ;
tmp4 . persistKey = "GameConsoleStore" ;
2026-07-23 10:11:24 +00:00
tmp4 = new tmp4 ( require ( "dispatcher" ) , {
2026-07-20 16:05:17 +00:00
REMOTE_SESSION_CONNECT : function handleRemoteSessionConnect ( sessionId ) {
sessionId = sessionId . sessionId ;
2026-07-23 10:11:24 +00:00
let c8 = null ;
2026-07-20 16:05:17 +00:00
} ,
REMOTE_SESSION_DISCONNECT : function handleRemoteSessionDisconnect() {
2026-07-23 10:11:24 +00:00
let c7 = null ;
let c8 = null ;
2026-07-20 16:05:17 +00:00
} ,
WAIT_FOR_REMOTE_SESSION : function handleWaitForRemoteSession ( sessionType ) {
let commandId ;
let deviceId ;
2026-07-23 10:11:24 +00:00
const obj = { type : sessionType . sessionType , nonce : sessionType.nonce , channelId : sessionType.channelId , startedAt : Date.now ( ) , deviceId , commandId } ;
2026-07-20 16:05:17 +00:00
( { deviceId , commandId } = sessionType ) ;
} ,
GAME_CONSOLE_FETCH_DEVICES_START : function handleFetchDevicesStart ( platform ) {
set1 . add ( platform . platform ) ;
} ,
GAME_CONSOLE_FETCH_DEVICES_SUCCESS : function handleFetchDevicesSuccess ( platform ) {
let iter2 ;
platform = platform . platform ;
set1 . delete ( platform ) ;
let obj = { } ;
closure_10 [ platform ] = obj ;
obj = { } ;
const tmp2 = _createForOfIteratorHelperLoose ( platform . devices ) ;
let iter = tmp2 ( ) ;
if ( ! iter . done ) {
do {
let value = iter . value ;
obj [ value . id ] = value ;
2026-07-23 10:11:24 +00:00
let tmp3 = obj ;
if ( obj [ platform ] === value . id ) {
2026-07-20 16:05:17 +00:00
obj [ platform ] = value . id ;
}
iter2 = tmp2 ( ) ;
iter = iter2 ;
} while ( ! iter2 . done ) ;
}
} ,
GAME_CONSOLE_FETCH_DEVICES_FAIL : function handleFetchDevicesFail ( platform ) {
set1 . delete ( platform . platform ) ;
} ,
GAME_CONSOLE_SELECT_DEVICE : function handleSelectDevice ( platform ) {
closure_11 [ platform . platform ] = platform . deviceId ;
}
} ) ;
2026-07-23 10:11:24 +00:00
let result = set . fileFinishedImporting ( "modules/game_console/GameConsoleStore.tsx" ) ;
2026-07-20 16:05:17 +00:00
export default tmp4 ;