Files
discord-decomp/sources/by-id/module-00161.js
T
2026-07-28 01:06:53 +03:00

140 lines
7.5 KiB
JavaScript

/* Metro module 161; source: unknown; dependencies: [6, 7, 15, 17, 18, 162, 99, 100, 129] */
import ClassCallCheck from './module-00006-ClassCallCheck.js'; /* Metro dependency 6 */
import CreateClass from './module-00007-CreateClass.js'; /* Metro dependency 7 */
import PossibleConstructorReturn from './module-00015-PossibleConstructorReturn.js'; /* Metro dependency 15 */
import Module00017 from './module-00017.js'; /* Metro dependency 17 */
import Inherits from './module-00018-Inherits.js'; /* Metro dependency 18 */
import Module00099 from './module-00099.js'; /* Metro dependency 99 */
import Module00100 from './module-00100.js'; /* Metro dependency 100 */
import Module00162 from './module-00162.js'; /* Metro dependency 162 */
import * as Module00129Module from './module-00129.js'; /* Metro dependency 129 */
function _fun2458(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#2458, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:186:6, offset: 0x00c8136f, size: 389 bytes, params: 8, frame: 30
var propertyName;
var prototype;
let Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
let value = Module00162;
const env0_6 = {'IndexSizeError': 1, 'HierarchyRequestError': 3, 'WrongDocumentError': 4,
'InvalidCharacterError': 5, 'NoModificationAllowedError': 7, 'NotFoundError': 8, 'NotSupportedError': 9,
'InUseAttributeError': 10, 'InvalidStateError': 11, 'SyntaxError': 12, 'InvalidModificationError': 13,
'NamespaceError': 14, 'InvalidAccessError': 15, 'TypeMismatchError': 17, 'SecurityError': 18,
'NetworkError': 19, 'AbortError': 20, 'URLMismatchError': 21, 'QuotaExceededError': 22, 'TimeoutError': 23,
'InvalidNodeTypeError': 24, 'DataCloneError': 25};
object = {'INDEX_SIZE_ERR': 1, 'DOMSTRING_SIZE_ERR': 2, 'HIERARCHY_REQUEST_ERR': 3, 'WRONG_DOCUMENT_ERR': 4,
'INVALID_CHARACTER_ERR': 5, 'NO_DATA_ALLOWED_ERR': 6, 'NO_MODIFICATION_ALLOWED_ERR': 7, 'NOT_FOUND_ERR': 8,
'NOT_SUPPORTED_ERR': 9, 'INUSE_ATTRIBUTE_ERR': 10, 'INVALID_STATE_ERR': 11, 'SYNTAX_ERR': 12,
'INVALID_MODIFICATION_ERR': 13, 'NAMESPACE_ERR': 14, 'INVALID_ACCESS_ERR': 15, 'VALIDATION_ERR': 16,
'TYPE_MISMATCH_ERR': 17, 'SECURITY_ERR': 18, 'NETWORK_ERR': 19, 'ABORT_ERR': 20, 'URL_MISMATCH_ERR': 21,
'QUOTA_EXCEEDED_ERR': 22, 'TIMEOUT_ERR': 23, 'INVALID_NODE_TYPE_ERR': 24, 'DATA_CLONE_ERR': 25};
const env0_7 = Module00100('name');
const env0_8 = Module00100('code');
const Error = global.Error;
value = value(Error);
value = _fun2462(value);
for (propertyName in object) {
Object = global.Object;
Object.defineProperty(value, propertyName, {enumerable: true, value: object[propertyName]});
Object = global.Object;
defineProperty = Object.defineProperty;
prototype = value.prototype;
Reflect.apply(defineProperty, Object, [prototype, propertyName, {enumerable: true,
value: object[propertyName]}]);
}
Module00129Module.setPlatformObject(value, {clone: clone_2466});
exports.default = value;
function _isNativeReflectConstruct_2459() { // fn#2459, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:186:178, offset: 0x00c814f4, size: 94 bytes, params: 1, frame: 18
var Boolean;
var prototype;
var valueOf;
var call;
var Reflect;
var construct;
var closure;
var value;
var error;
try {
Boolean = global.Boolean;
prototype = Boolean.prototype;
valueOf = prototype.valueOf;
call = valueOf.call;
Reflect = global.Reflect;
construct = Reflect.construct;
Boolean = global.Boolean;
closure = function() {
};
value = Reflect.apply(construct, Reflect, [Boolean, [], closure]);
value = Reflect.apply(call, valueOf, [value]);
var result = !value;
} catch (error) {
}
return (_isNativeReflectConstruct_2459_isNativeReflectConstruct = function() {
return !!result;
})();
}
function _fun2462(a0) { // fn#2462, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:186:1384, offset: 0x00c81552, size: 91 bytes, params: 2, frame: 16
const DOMException2 = DOMException;
Inherits(DOMException2, a0);
return CreateClass(DOMException2, [{key: 'name', get: get_2464}, {key: 'code', get: get_2465}]);
function DOMException(a0, a1) { // fn#2463, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:186:1396, offset: 0x00c815ad, size: 302 bytes, params: 3, frame: 21
var binding2;
var binding3;
var value8;
var binding4;
var binding5;
const value = environment.__proto__;
let binding = env1_0;
binding(this, DOMException);
const items2 = [a0];
const value3 = env1_3(DOMException);
const value6 = env1_2(this, _isNativeReflectConstruct_2459() ? global.Reflect.construct(value3, items2,
env1_3(this).constructor) : value3.apply(this, items2));
let Object = global.Object;
Object.defineProperty(value6, env1_7, {writable: true, value: undefined});
Object = global.Object;
Object.defineProperty(value6, env1_8, {writable: true, value: undefined});
if (a1 === undefined) {
binding = env1_5;
binding4 = env1_7;
binding(value6, binding4)[binding4] = 'Error';
binding5 = env1_8;
binding(value6, binding5)[binding5] = 0;
} else {
binding = env1_5;
binding2 = env1_7;
binding(value6, binding2)[binding2] = global.String(a1);
binding3 = env1_8;
value8 = binding(value6, binding3);
binding = env1_6;
value8[binding3] = binding[value6.name] ?? 0;
}
return value6;
}
function get_2464() { // fn#2464, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:186:1884, offset: 0x00c81353, size: 28 bytes, params: 1, frame: 13
const binding = env1_5;
const binding2 = env1_7;
return binding(this, binding2)[binding2];
}
function get_2465() { // fn#2465, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:186:1937, offset: 0x00c816db, size: 28 bytes, params: 1, frame: 13
const binding = env1_5;
const binding2 = env1_8;
return binding(this, binding2)[binding2];
}
}
function clone_2466({message, name}) { // fn#2466, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:186:2155, offset: 0x00c816f7, size: 42 bytes, params: 2, frame: 13
const binding = env0_9;
const value = Object.create(binding.prototype, {constructor: {value: binding}});
const binding2 = new binding(message, name);
return binding2 instanceof Object ? binding2 : value;
}
}
global.__d(_fun2458, 161, [6, 7, 15, 17, 18, 162, 99, 100,
129]) /* metro module 161, dependencies: [6, 7, 15, 17, 18, 162, 99, 100, 129] */;