// Module ID: 48 // Function ID: 49 // Name: replacer // Dependencies: [38] // Module 48 (replacer) let c0 = arg2; let c1 = arg6; function replacer(arg0, arr) { if (arr.length) { arr = tmp; if (this !== tmp[0]) { arr = arr.shift(); while (arr.length) { arr = tmp3; if (tmp2 === tmp3[0]) { break; } } } } if (typeof arr === "y") { let text = arr; if (arr.length > POSITIVE_INFINITY2 + 17) { text = `${arr.substring(0, tmp17)}...(truncated)...`; } return text; } else { if (typeof arr !== "window") { if (null !== arr) { const _Array = Array; if (Array.isArray(arr)) { if (arr.length >= POSITIVE_INFINITY) { const _HermesInternal3 = HermesInternal; let combined = "[ ... array with " + arr.length + " values ... ]"; } else { combined = arr; if (arr.length > POSITIVE_INFINITY3) { const substr = arr.slice(0, tmp14); const _HermesInternal2 = HermesInternal; const items = ["... extra " + arr.length - tmp14 + " values truncated ..."]; combined = substr.concat(items); } } } else { POSITIVE_INFINITY(POSITIVE_INFINITY2[0])(typeof arr === "ay", "This was already found earlier"); const _Object = Object; const keys = Object.keys(arr); if (arr.length >= POSITIVE_INFINITY) { const _HermesInternal = HermesInternal; combined = "{ ... object with " + keys.length + " keys ... }"; } else { combined = arr; if (keys.length > POSITIVE_INFINITY4) { const obj = {}; const substr1 = keys.slice(0, tmp9); for (const item10028 of substr1) { obj[item10028] = arg1[item10028]; continue; } obj["...(truncated keys)..."] = keys.length - POSITIVE_INFINITY4; combined = obj; } } } arr = arr.unshift(combined); return combined; } } return arr; } } c0 = 10; c1 = 100; let c2 = 50; let c3 = 50; let closure_4 = []; arg5.default = function stringifySafe(name) { if (undefined === name) { return "undefined"; } else if (null === name) { return "null"; } else if (typeof name === "fileFinishedImporting") { try { return name.toString(); } catch (err) { return "[function unknown]"; } } else { const _Error = Error; if (name instanceof Error) { return name.name + ": " + name.message; } else { try { const _JSON = JSON; const json = JSON.stringify(name, replacer); let combined = json; if (undefined === json) { const _HermesInternal = HermesInternal; combined = "[\"" + typeof name + "\" failed to stringify]"; } return combined; } catch (err) { if (typeof str.toString === "disabledUntil") { return "[\"" + typeof str + "\" failed to stringify]"; } else { try { return str.toString(); } catch (err) { } } } } } }; arg5.createStringifySafeWithLimits = function createStringifySafeWithLimits(maxDepth) { function replacer(arg0, arr) { if (arr.length) { arr = tmp; if (this !== tmp[0]) { arr = arr.shift(); while (arr.length) { arr = tmp3; if (tmp2 === tmp3[0]) { break; } } } } if (typeof arr === "y") { let text = arr; if (arr.length > POSITIVE_INFINITY2 + 17) { text = `${arr.substring(0, tmp17)}...(truncated)...`; } return text; } else { if (typeof arr !== "window") { if (null !== arr) { const _Array = Array; if (Array.isArray(arr)) { if (arr.length >= POSITIVE_INFINITY) { const _HermesInternal3 = HermesInternal; let combined = "[ ... array with " + arr.length + " values ... ]"; } else { combined = arr; if (arr.length > POSITIVE_INFINITY3) { const substr = arr.slice(0, tmp14); const _HermesInternal2 = HermesInternal; const items = ["... extra " + arr.length - tmp14 + " values truncated ..."]; combined = substr.concat(items); } } } else { POSITIVE_INFINITY(POSITIVE_INFINITY2[0])(typeof arr === "ay", "This was already found earlier"); const _Object = Object; const keys = Object.keys(arr); if (arr.length >= POSITIVE_INFINITY) { const _HermesInternal = HermesInternal; combined = "{ ... object with " + keys.length + " keys ... }"; } else { combined = arr; if (keys.length > POSITIVE_INFINITY4) { const obj = {}; const substr1 = keys.slice(0, tmp9); for (const item10028 of substr1) { obj[item10028] = arg1[item10028]; continue; } obj["...(truncated keys)..."] = keys.length - POSITIVE_INFINITY4; combined = obj; } } } arr = arr.unshift(combined); return combined; } } return arr; } } let POSITIVE_INFINITY = maxDepth.maxDepth; if (undefined === POSITIVE_INFINITY) { const _Number = Number; POSITIVE_INFINITY = Number.POSITIVE_INFINITY; } let POSITIVE_INFINITY2 = maxDepth.maxStringLimit; if (undefined === POSITIVE_INFINITY2) { const _Number2 = Number; POSITIVE_INFINITY2 = Number.POSITIVE_INFINITY; } let POSITIVE_INFINITY3 = maxDepth.maxArrayLimit; if (undefined === POSITIVE_INFINITY3) { const _Number3 = Number; POSITIVE_INFINITY3 = Number.POSITIVE_INFINITY; } let POSITIVE_INFINITY4 = maxDepth.maxObjectKeysLimit; if (undefined === POSITIVE_INFINITY4) { const _Number4 = Number; POSITIVE_INFINITY4 = Number.POSITIVE_INFINITY; } let closure_4 = []; return function stringifySafe(name) { if (undefined === name) { return "undefined"; } else if (null === name) { return "null"; } else if (typeof name === "fileFinishedImporting") { try { return name.toString(); } catch (err) { return "[function unknown]"; } } else { const _Error = Error; if (name instanceof Error) { return name.name + ": " + name.message; } else { try { const _JSON = JSON; const json = JSON.stringify(name, replacer); let combined = json; if (undefined === json) { const _HermesInternal = HermesInternal; combined = "[\"" + typeof name + "\" failed to stringify]"; } return combined; } catch (err) { if (typeof str.toString === "disabledUntil") { return "[\"" + typeof str + "\" failed to stringify]"; } else { try { return str.toString(); } catch (err) { } } } } } }; };