2026-07-20 16:05:17 +00:00
// Module ID: 998
2026-07-25 08:10:48 +00:00
// Function ID: 10721
2026-07-20 16:05:17 +00:00
// Name: disable
2026-07-23 10:11:24 +00:00
// Dependencies: [995]
2026-07-20 16:05:17 +00:00
// Module 998 (disable)
2026-07-23 10:11:24 +00:00
const require = arg1 ;
let dependencyMap = arg6 ;
2026-07-20 16:05:17 +00:00
function disable ( ) {
2026-07-23 10:11:24 +00:00
let c3 = false ;
require ( 995 ) /* noop */ . _37 = null ;
require ( 995 ) /* noop */ . _87 = null ;
2026-07-20 16:05:17 +00:00
}
function matchWhitelist ( arg0 , arr ) {
2026-07-23 10:11:24 +00:00
let closure _0 = arg0 ;
return arr . some ( ( arg0 ) => closure _0 instanceof arg0 ) ;
2026-07-20 16:05:17 +00:00
}
const items = [ ReferenceError , TypeError , RangeError ] ;
2026-07-23 10:11:24 +00:00
let c3 = false ;
2026-07-20 16:05:17 +00:00
arg5 . disable = disable ;
arg5 . enable = function enable ( arg0 ) {
let obj = arg0 ;
2026-07-23 10:11:24 +00:00
obj = arg0 ;
2026-07-20 16:05:17 +00:00
function onUnhandled ( arg0 ) {
let allRejections = obj . allRejections ;
if ( ! allRejections ) {
let whitelist = obj . whitelist ;
if ( ! whitelist ) {
2026-07-23 10:11:24 +00:00
whitelist = c2 ;
2026-07-20 16:05:17 +00:00
}
2026-07-23 10:11:24 +00:00
allRejections = outer1 _5 ( dependencyMap [ arg0 ] . error , whitelist ) ;
const tmp = outer1 _5 ;
2026-07-20 16:05:17 +00:00
}
if ( allRejections ) {
2026-07-23 10:11:24 +00:00
let closure _2 = tmp6 + 1 ;
dependencyMap [ arg0 ] . displayId = + closure _2 ;
dependencyMap [ arg0 ] . logged = true ;
2026-07-20 16:05:17 +00:00
if ( obj . onUnhandled ) {
2026-07-23 10:11:24 +00:00
obj . onUnhandled ( dependencyMap [ arg0 ] . displayId , dependencyMap [ arg0 ] . error ) ;
2026-07-20 16:05:17 +00:00
} else {
2026-07-23 10:11:24 +00:00
( function logError ( displayId , error ) {
2026-07-20 16:05:17 +00:00
console . warn ( ` Possible Unhandled Promise Rejection (id: ${ displayId } ): ` ) ;
let tmp2 = error ;
if ( error ) {
tmp2 = error . stack || error ;
const tmp3 = error . stack || error ;
}
const parts = ` ${ tmp2 } ` . split ( "\n" ) ;
const item = parts . forEach ( ( arg0 ) => {
console . warn ( ` ${ arg0 } ` ) ;
} ) ;
2026-07-23 10:11:24 +00:00
} ) ( dependencyMap [ arg0 ] . displayId , dependencyMap [ arg0 ] . error ) ;
2026-07-20 16:05:17 +00:00
}
}
}
if ( ! arg0 ) {
obj = { } ;
}
if ( closure _3 ) {
onUnhandled ( ) ;
}
closure _3 = true ;
2026-07-23 10:11:24 +00:00
const dependencyMap = 0 ;
let c2 = 0 ;
2026-07-20 16:05:17 +00:00
closure _3 = { } ;
2026-07-23 10:11:24 +00:00
obj ( 995 ) . _37 = ( _65 ) => {
2026-07-20 16:05:17 +00:00
let _51 = _65 ;
2026-07-23 10:11:24 +00:00
let tmp3 = 2 === _65 . _65 ;
if ( tmp3 ) {
tmp3 = dependencyMap [ _51 . _51 ] ;
2026-07-20 16:05:17 +00:00
}
2026-07-23 10:11:24 +00:00
if ( tmp3 ) {
if ( dependencyMap [ _51 . _51 ] . logged ) {
2026-07-20 16:05:17 +00:00
const _512 = _51 . _51 ;
2026-07-23 10:11:24 +00:00
if ( dependencyMap [ _512 ] . logged ) {
2026-07-20 16:05:17 +00:00
if ( obj . onHandled ) {
2026-07-23 10:11:24 +00:00
obj . onHandled ( dependencyMap [ _512 ] . displayId , dependencyMap [ _512 ] . error ) ;
} else if ( ! dependencyMap [ _512 ] . onUnhandled ) {
2026-07-20 16:05:17 +00:00
const _console = console ;
console . warn ( ` Promise Rejection Handled (id: ${ closure _3 [ _512 ] . displayId } ): ` ) ;
const _console2 = console ;
console . warn ( ` This means you can ignore any previous messages of the form "Possible Unhandled Promise Rejection" with id ${ closure _3 [ _512 ] . displayId } . ` ) ;
}
}
} else {
const _clearTimeout = clearTimeout ;
2026-07-23 10:11:24 +00:00
clearTimeout ( dependencyMap [ _51 . _51 ] . timeout ) ;
2026-07-20 16:05:17 +00:00
}
_51 = _51 . _51 ;
2026-07-23 10:11:24 +00:00
delete tmp2 [ tmp ] ;
2026-07-20 16:05:17 +00:00
}
} ;
2026-07-23 10:11:24 +00:00
obj ( 995 ) . _87 = ( _40 , error ) => {
2026-07-20 16:05:17 +00:00
if ( 0 === _40 . _40 ) {
let closure _1 = tmp2 + 1 ;
_40 . _51 = + closure _1 ;
const obj = { displayId : null , error } ;
let num = 2000 ;
2026-07-23 10:11:24 +00:00
if ( outer1 _5 ( error , c2 ) ) {
2026-07-20 16:05:17 +00:00
num = 100 ;
}
obj . timeout = setTimeout ( onUnhandled . bind ( null , _40 . _51 ) , num ) ;
obj . logged = false ;
closure _3 [ _40 . _51 ] = obj ;
const bindResult = onUnhandled . bind ( null , _40 . _51 ) ;
const tmp3 = closure _3 ;
}
} ;
} ;