/* Metro module 3545; source: unknown; dependencies: [3477, 3238, 3543, 3541] */ function _fun27050(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#27050, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3672:6, offset: 0x00f55676, size: 204 bytes, params: 8, frame: 19 let env0_0 = require; const _typeof_27051 = function(a0) { var r2; r2 = typeof global.Symbol !== 'function' ? _fun27053 : typeof global.Symbol.iterator === 'symbol' ? _fun27052 : _fun27053; env0_4 = r2; return r2(a0); }; const closure = function(a0) { var value = a0; return value && value.__esModule ? value : {default: value}; }; const _defineProperties_27055 = function(a0, a1) { var r5; var r0; var property; var enumerable; var Object; var value = 0; if (value < a1.length) { r5 = value; while (true) { property = a1[r5]; enumerable = property.enumerable; r0 = enumerable || false; property.enumerable = r0; property.configurable = true; if (!('value' in property)) { continue; } property.writable = true; Object = global.Object; Object.defineProperty(a0, property.key, property); value = typeof r5 === 'bigint' ? r5 + 1n : +r5 + 1; if (value < a1.length) { r5 = value; continue; } break; } } }; const _setPrototypeOf_27056 = function(a0, a1) { var r3; r3 = global.Object.setPrototypeOf || _fun27057; env0_6 = r3; return r3(a0, a1); }; const _createSuper_27058 = function(a0) { var env0_0 = a0; var env0_1 = _fun27059(); return _fun27061; }; const _assertThisInitialized_27062 = function(a0) { if (a0 === undefined) { throw new global.ReferenceError("this hasn't been initialised - super() hasn't been called"); } return a0; }; const _getPrototypeOf_27063 = function(a0) { var r2; r2 = global.Object.setPrototypeOf ? global.Object.getPrototypeOf : _fun27064; env0_9 = r2; return r2(a0); }; const _defineProperty_27065 = function(a0, a1, a2) { if (a1 in a0) { global.Object.defineProperty(a0, a1, {'value': null, 'enumerable': true, 'configurable': true, 'writable': true, value: a2}); } else { a0[a1] = a2; } return a0; }; let Object = global.Object; Object.defineProperty(exports, '__esModule', {value: true}); exports.LocalWeekYearParser = undefined; const env0_2 = closure(require(3477) /* metro dependency 3477 */); const env0_3 = closure(require(3238) /* metro dependency 3238 */); const Parser = (require(3541) /* metro dependency 3541 */).Parser; exports.LocalWeekYearParser = _fun27066(Parser); } function _typeof_27051(a0) { // fn#27051, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3672:45, offset: 0x00f55742, size: 74 bytes, params: 2, frame: 12 const Symbol = global.Symbol; return (typeof Symbol !== 'function' ? function(a0) { return a0 ? typeof global.Symbol !== 'function' || a0.constructor !== global.Symbol ? typeof a0 : a0 !== global.Symbol.prototype ? 'symbol' : typeof a0 : typeof a0; } : typeof global.Symbol.iterator === 'symbol' ? _typeof_27051_typeof : _typeof_27051_typeof_27053)(a0); } function _setPrototypeOf_27056(a0, a1) { // fn#27056, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3672:715, offset: 0x00f5578c, size: 47 bytes, params: 3, frame: 13 const Object = global.Object; return (Object.setPrototypeOf || (function(a0, a1) { a0.__proto__ = a1; return a0; }))(a0, a1); } function _createSuper_27058(a0) { // fn#27058, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3672:866, offset: 0x00f557bb, size: 31 bytes, params: 2, frame: 10 const env0_0 = a0; const env0_1 = _createSuper_27058_isNativeReflectConstruct(); return _createSuper_27058_createSuperInternal; } function _getPrototypeOf_27063(a0) { // fn#27063, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3672:1653, offset: 0x00f558ff, size: 57 bytes, params: 2, frame: 11 const Object = global.Object; return (Object.setPrototypeOf ? global.Object.getPrototypeOf : function(a0) { return a0.__proto__ || global.Object.getPrototypeOf(a0); })(a0); } function _fun27066(a0) { // fn#27066, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3672:1981, offset: 0x00f55938, size: 254 bytes, params: 2, frame: 18 var environment; var Object; let value = a0; const closure = value_27067; if (typeof value === 'function') { Object = global.Object; closure.prototype = Object.create(value && value.prototype, {constructor: {'value': null, 'writable': true, 'configurable': true, value: closure}}); if (value) { _setPrototypeOf_27056(closure, value); } value = environment; } else { if (value !== null) { throw new global.TypeError('Super expression must either be null or a function'); } Object = global.Object; closure.prototype = Object.create(value && value.prototype, {constructor: {'value': null, 'writable': true, 'configurable': true, value: closure}}); if (value) { _setPrototypeOf_27056(closure, value); } } const env0_0 = _createSuper_27058(closure); _defineProperties_27055(closure.prototype, [{key: 'parse', value: value_27068}, {key: 'validate', value: function(a0, a1) { return a1.isTwoDigitYear || a1.year > 0; }}, {key: 'set', value: value_27071}]) /* class methods: parse, validate, set */; return closure; } function _createSuper_27058_isNativeReflectConstruct() { // fn#27059, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3672:897, owner: _createSuper_27058._isNativeReflectConstruct, offset: 0x00f557da, size: 155 bytes, params: 1, frame: 17 var Boolean; var prototype; var valueOf; var call; var closure; var value; var error; let Reflect = global.Reflect; if (typeof Reflect !== 'undefined') { Reflect = global.Reflect; var construct = Reflect.construct; if (construct) { Reflect = global.Reflect; construct = Reflect.construct; if (construct.sham) { return false; } if (typeof global.Proxy === 'function') { return true; } 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]); Reflect.apply(call, valueOf, [value]); } catch (error) { return false; } return true; } } return false; } function value_27067() { // fn#27067, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3672:2308, offset: 0x00f55a36, size: 213 bytes, params: 1, frame: 19 var r1; var length; var array; var value5; var value6; var value7; var _defineProperty_27065Binding; var _assertThisInitialized_27062Binding; var call; var apply; var binding; var items2; var value; if (this instanceof value_27067) { length = arguments.length; array = new global.Array(); value5 = 0; if (value5 < length) { r1 = value5; reducibleLoop3: while (true) { array[r1] = arguments[r1]; value6 = typeof r1 === 'bigint' ? r1 + 1n : +r1 + 1; if (value6 < length) { r1 = value6; continue reducibleLoop3; } break reducibleLoop3; } } value7 = environment.__proto__; _defineProperty_27065Binding = _defineProperty_27065; _assertThisInitialized_27062Binding = _assertThisInitialized_27062; call = env0_0.call; apply = call.apply; binding = env0_0; items2 = [this]; value = Reflect.apply(apply, call, [binding, items2.concat(array)]); _assertThisInitialized_27062Binding(value); _defineProperty_27065Binding(value, 'priority', 130); _assertThisInitialized_27062Binding(value); _defineProperty_27065Binding(value, 'incompatibleTokens', ['y', 'R', 'u', 'Q', 'q', 'M', 'L', 'I', 'd', 'D', 'i', 't', 'T']); return value; } const TypeError = global.TypeError; throw new TypeError('Cannot call a class as a function'); } function value_27068(a0, a1, a2) { // fn#27068, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3672:2919, offset: 0x00f55b0b, size: 231 bytes, params: 4, frame: 18 var environment; var value; const mapValue = (require(3543) /* metro dependency 3543 */).mapValue; const parseNDigits = (require(3543) /* metro dependency 3543 */).parseNDigits; const env0_0 = a1; const closure = function(a0) { return {year: a0, isTwoDigitYear: require === 'YY'}; }; if (a1 === 'Y') { value = environment.__proto__; return mapValue(parseNDigits(4, a0), closure); } if (a1 === 'Yo') { value = environment.__proto__; return mapValue(a2.ordinalNumber(a0, {unit: 'year'}), closure); } return mapValue(parseNDigits(a1.length, a0), closure); } function value_27071(a0, a1, a2, a3) { // fn#27071, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3672:3339, offset: 0x00f55c14, size: 239 bytes, params: 5, frame: 21 if (a2.isTwoDigitYear) { a0.setUTCFullYear((require(3543) /* metro dependency 3543 */).normalizeTwoDigitYear(a2.year, (0, env1_2.default)(a0, a3)), 0, a3.firstWeekContainsDate); } else { a0.setUTCFullYear('era' in a1 && a1.era !== 1 ? 1 - a2.year : a2.year, 0, a3.firstWeekContainsDate); } a0.setUTCHours(0, 0, 0, 0); return (0, env1_3.default)(a0, a3); }