2026-07-29 08:29:29 +00:00
// Module ID: 245
// Function ID: 246
// Name: map
// Dependencies: [38, 246, 239, 258, 257, 259, 261]
// Module 245 (map)
2026-08-24 06:08:38 +00:00
import frozen from "frozen" /* 257 */ ;
require = arg1 ;
2026-07-29 08:29:29 +00:00
const module = arg2 ;
const dependencyMap = arg6 ;
let closure _5 = { } ;
let closure _6 = { } ;
const map = new Map ( ) ;
const map1 = new Map ( ) ;
function componentProviderInstrumentationHook ( arg0 ) {
return arg0 ( ) ;
}
arg5 . setWrapperComponentProvider = function setWrapperComponentProvider ( arg0 ) {
2026-08-24 06:08:38 +00:00
closure _3 = arg0 ;
2026-07-29 08:29:29 +00:00
} ;
arg5 . setRootViewStyleProvider = function setRootViewStyleProvider ( arg0 ) {
2026-08-24 06:08:38 +00:00
closure _4 = arg0 ;
2026-07-29 08:29:29 +00:00
} ;
arg5 . registerConfig = function registerConfig ( arr ) {
const item = arr . forEach ( ( run ) => {
if ( run . run ) {
closure _5 [ run . appKey ] = run . run ;
} else {
component ( table [ 0 ] ) ( null != run . component , "AppRegistry.registerConfig(...): Every config is expected to set either `run` or `component`, but `%s` has neither." , run . appKey ) ;
const appKey = run . appKey ;
component = run . component ;
closure _5 [ appKey ] = ( arg0 , arg1 ) => {
2026-08-24 06:08:38 +00:00
const obj = { RootComponent : closure _1 _9 ( component , component ( closure _1 _2 [ 2 ] ) ) , initialProps : null , rootTag : null , WrapperComponent : null , rootViewStyle : null , isLogBox : null , debugName : null , displayMode : null } ;
2026-07-29 08:29:29 +00:00
( { initialProps : obj [ 1 ] , rootTag : obj [ 2 ] } = arg0 ) ;
2026-08-24 06:08:38 +00:00
let tmp = closure _1 _3 ;
if ( closure _1 _3 ) {
tmp = closure _1 _3 ( arg0 ) ;
2026-07-29 08:29:29 +00:00
}
obj [ 3 ] = tmp ;
2026-08-24 06:08:38 +00:00
let tmp2 = closure _1 _4 ;
if ( closure _1 _4 ) {
tmp2 = closure _1 _4 ( arg0 ) ;
2026-07-29 08:29:29 +00:00
}
obj [ 4 ] = tmp2 ;
obj [ 5 ] = "LogBox" === appKey ;
obj [ 6 ] = appKey ;
obj [ 7 ] = arg1 ;
2026-08-24 06:08:38 +00:00
appKey ( closure _1 _2 [ 1 ] ) . default ( obj ) ;
2026-07-29 08:29:29 +00:00
} ;
if ( run . section ) {
closure _6 [ appKey ] = tmp5 [ appKey ] ;
}
}
} ) ;
} ;
arg5 . registerComponent = function registerComponent ( Discord , arg1 ) {
2026-08-24 06:08:38 +00:00
closure _0 = Discord ;
closure _1 = arg1 ;
2026-07-29 08:29:29 +00:00
closure _5 [ Discord ] = ( arg0 , arg1 ) => {
2026-08-24 06:08:38 +00:00
const obj = { RootComponent : closure _1 _9 ( component , component ( closure _1 _2 [ 2 ] ) ) , initialProps : null , rootTag : null , WrapperComponent : null , rootViewStyle : null , isLogBox : null , debugName : null , displayMode : null } ;
2026-07-29 08:29:29 +00:00
( { initialProps : obj [ 1 ] , rootTag : obj [ 2 ] } = arg0 ) ;
2026-08-24 06:08:38 +00:00
let tmp = closure _1 _3 ;
if ( closure _1 _3 ) {
tmp = closure _1 _3 ( arg0 ) ;
2026-07-29 08:29:29 +00:00
}
obj [ 3 ] = tmp ;
2026-08-24 06:08:38 +00:00
let tmp2 = closure _1 _4 ;
if ( closure _1 _4 ) {
tmp2 = closure _1 _4 ( arg0 ) ;
2026-07-29 08:29:29 +00:00
}
obj [ 4 ] = tmp2 ;
obj [ 5 ] = "LogBox" === appKey ;
obj [ 6 ] = appKey ;
obj [ 7 ] = arg1 ;
2026-08-24 06:08:38 +00:00
appKey ( closure _1 _2 [ 1 ] ) . default ( obj ) ;
2026-07-29 08:29:29 +00:00
} ;
if ( arg2 ) {
closure _6 [ Discord ] = tmp [ Discord ] ;
}
return Discord ;
} ;
arg5 . registerRunnable = function registerRunnable ( Discord , arg1 ) {
closure _5 [ Discord ] = arg1 ;
return Discord ;
} ;
arg5 . registerSection = function registerSection ( arg0 , arg1 ) {
2026-08-24 06:08:38 +00:00
closure _0 = arg0 ;
closure _1 = arg1 ;
2026-07-29 08:29:29 +00:00
dependencyMap [ arg0 ] = ( arg0 , arg1 ) => {
2026-08-24 06:08:38 +00:00
const obj = { RootComponent : closure _1 _9 ( component , component ( closure _1 _2 [ 2 ] ) ) , initialProps : null , rootTag : null , WrapperComponent : null , rootViewStyle : null , isLogBox : null , debugName : null , displayMode : null } ;
2026-07-29 08:29:29 +00:00
( { initialProps : obj [ 1 ] , rootTag : obj [ 2 ] } = arg0 ) ;
2026-08-24 06:08:38 +00:00
let tmp = closure _1 _3 ;
if ( closure _1 _3 ) {
tmp = closure _1 _3 ( arg0 ) ;
2026-07-29 08:29:29 +00:00
}
obj [ 3 ] = tmp ;
2026-08-24 06:08:38 +00:00
let tmp2 = closure _1 _4 ;
if ( closure _1 _4 ) {
tmp2 = closure _1 _4 ( arg0 ) ;
2026-07-29 08:29:29 +00:00
}
obj [ 4 ] = tmp2 ;
obj [ 5 ] = "LogBox" === appKey ;
obj [ 6 ] = appKey ;
obj [ 7 ] = arg1 ;
2026-08-24 06:08:38 +00:00
appKey ( closure _1 _2 [ 1 ] ) . default ( obj ) ;
2026-07-29 08:29:29 +00:00
} ;
closure _6 [ arg0 ] = dependencyMap [ arg0 ] ;
} ;
arg5 . getAppKeys = function getAppKeys ( ) {
return Object . keys ( closure _5 ) ;
} ;
arg5 . getSectionKeys = function getSectionKeys ( ) {
return Object . keys ( closure _6 ) ;
} ;
arg5 . getSections = function getSections ( ) {
const merged = Object . assign ( closure _6 ) ;
return { } ;
} ;
arg5 . getRunnable = function getRunnable ( Discord ) {
return dependencyMap [ Discord ] ;
} ;
arg5 . getRegistry = function getRegistry ( ) {
let obj = { sections : Object . keys ( closure _6 ) , runnables : null } ;
obj = { } ;
const merged = Object . assign ( closure _5 ) ;
obj [ 1 ] = obj ;
return obj ;
} ;
arg5 . setComponentProviderInstrumentationHook = function setComponentProviderInstrumentationHook ( arg0 ) {
2026-08-24 06:08:38 +00:00
closure _9 = arg0 ;
2026-07-29 08:29:29 +00:00
} ;
arg5 . runApplication = function runApplication ( name ) {
if ( "LogBox" !== name ) {
const _HermesInternal = HermesInternal ;
const _console = console ;
console . log ( "Running \"" + name + "\"" ) ;
}
module ( 38 ) ( dependencyMap [ name ] , "\"" + name + "\" has not been registered. This can happen if:\n* Metro (the local dev server) is run from the wrong folder. Check if Metro is running, stop it and restart it in the current project.\n* A module failed to load due to an error and `AppRegistry.registerComponent` wasn't called." ) ;
let obj = module ( 258 ) ;
obj = { name } ;
obj . setActiveScene ( obj ) ;
const tmp3 = module ( 38 ) ;
2026-08-24 06:08:38 +00:00
dependencyMap [ name ] ( arg1 , frozen . coerceDisplayMode ( arg2 ) ) ;
2026-07-29 08:29:29 +00:00
} ;
arg5 . setSurfaceProps = function setSurfaceProps ( arg0 , arg1 , arg2 ) {
if ( "LogBox" !== arg0 ) {
const _JSON = JSON ;
const text = ` Updating props for Surface " ${ arg0 } ` ;
const _console = console ;
console . log ( ` ${ ` Updating props for Surface " ${ arg0 } ` } " with ${ JSON . stringify ( arg1 ) } ` ) ;
}
module ( 38 ) ( dependencyMap [ arg0 ] , "\"" + arg0 + "\" has not been registered. This can happen if:\n* Metro (the local dev server) is run from the wrong folder. Check if Metro is running, stop it and restart it in the current project.\n* A module failed to load due to an error and `AppRegistry.registerComponent` wasn't called." ) ;
const tmp4 = module ( 38 ) ;
2026-08-24 06:08:38 +00:00
dependencyMap [ arg0 ] ( arg1 , frozen . coerceDisplayMode ( arg2 ) ) ;
2026-07-29 08:29:29 +00:00
} ;
arg5 . unmountApplicationComponentAtRootTag = function unmountApplicationComponentAtRootTag ( arg0 ) {
console . error ( "Unexpected call to unmountApplicationComponentAtRootTag in Fabric." ) ;
} ;
arg5 . registerHeadlessTask = function registerHeadlessTask ( BackgroundSync , arg1 ) {
if ( map . has ( BackgroundSync ) ) {
const _console = console ;
const _HermesInternal = HermesInternal ;
console . warn ( "registerHeadlessTask or registerCancellableHeadlessTask called multiple times for same key '" + BackgroundSync + "'" ) ;
}
const fn = ( ) => ( ) => {
} ;
const result = map . set ( BackgroundSync , arg1 ) ;
const result1 = map1 . set ( BackgroundSync , fn ) ;
} ;
arg5 . registerCancellableHeadlessTask = function registerCancellableHeadlessTask ( arg0 , arg1 , arg2 ) {
if ( map . has ( arg0 ) ) {
const _console = console ;
const _HermesInternal = HermesInternal ;
console . warn ( "registerHeadlessTask or registerCancellableHeadlessTask called multiple times for same key '" + arg0 + "'" ) ;
}
const result = map . set ( arg0 , arg1 ) ;
const result1 = map1 . set ( arg0 , arg2 ) ;
} ;
arg5 . startHeadlessTask = function startHeadlessTask ( arg0 , arg1 , arg2 ) {
const _require = arg0 ;
const _default = _require ( 259 ) . default ;
const value = map . get ( arg1 ) ;
if ( value ) {
const promise = value ( ) ( arg2 ) ;
value ( ) ( arg2 ) . then ( ( ) => {
if ( _default ) {
_default . notifyTaskFinished ( closure _0 ) ;
}
} ) . catch ( ( arg0 ) => {
console . error ( arg0 ) ;
let tmp2 = _default ;
if ( _default ) {
2026-08-24 06:08:38 +00:00
tmp2 = arg0 instanceof _default ( closure _1 _2 [ 6 ] ) ;
2026-07-29 08:29:29 +00:00
}
if ( tmp2 ) {
_default . notifyTaskRetry ( closure _0 ) . then ( ( arg0 ) => {
if ( ! arg0 ) {
closure _1 . notifyTaskFinished ( closure _0 ) ;
}
} ) ;
const notifyTaskRetryResult = _default . notifyTaskRetry ( closure _0 ) ;
}
} ) ;
} else {
const _console = console ;
const _HermesInternal = HermesInternal ;
console . warn ( "No task registered for key " + arg1 ) ;
if ( _default ) {
_default . notifyTaskFinished ( arg0 ) ;
}
}
} ;
arg5 . cancelHeadlessTask = function cancelHeadlessTask ( arg0 , arg1 ) {
const value = map1 . get ( arg1 ) ;
if ( value ) {
value ( ) ( ) ;
} else {
const _Error = Error ;
const _HermesInternal = HermesInternal ;
2026-08-24 06:08:38 +00:00
error = new Error ( "No task canceller registered for key '" + arg1 + "'" ) ;
2026-07-29 08:29:29 +00:00
throw error ;
}
} ;