/* Metro module 5132; source: unknown; dependencies: [] */ function _fun45098(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#45098, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5310:6, offset: 0x01180fbb, size: 31 bytes, params: 8, frame: 11 const Math = global.Math; _fun45099(Math); } function _fun45099(a0) { // fn#45099, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5310:36, offset: 0x01180fda, size: 1372 bytes, params: 2, frame: 19 var object3; var r5; var propertyName; var propertyName2; var hasOwnProperty; var RegExp; const env0_0 = a0; const closure = tinycolor; const _spin = function(a0, a1) { var value3 = tinycolor(a0).toHsl(); var value4 = (value3.h + a1) % 360; value3.h = value4 < 0 ? 360 + value4 : value4; return tinycolor(value3); }; const boundAlpha = function(a0) { var r1; var value = (0, global.parseFloat)(a0); r1 = (0, global.isNaN)(value) || value < 0; r1 = !r1 ? value > 1 : r1; return r1 ? 1 : value; }; const parseIntFromHex = function(a0) { return (0, global.parseInt)(a0, 16); }; const pad2_45125 = function(a0) { return a0.length == 1 ? '0' + a0 : String(a0); }; const convertToPercentage = function(a0) { var value = a0; return value <= 1 ? 100 * value + '%' : value; }; const env0_1 = RegExp('^\\s+', ''); const env0_2 = RegExp('\\s+$', ''); const env0_4 = a0.round; const env0_5 = a0.min; const env0_6 = a0.max; const env0_7 = a0.random; closure.prototype = {isDark: function() { return this.getBrightness() < 128; }, isLight: function() { return !this.isDark(); }, isValid: function() { return this._ok; }, getOriginalInput: function() { return this._originalInput; }, getFormat: function() { return this._format; }, getAlpha: function() { return this._a; }, getBrightness: function() { var value = this.toRgb(); var value2 = 299 * value.r; var value3 = 587 * value.g; value = 114 * value.b; return (value2 + value3 + value) / 1000; }, getLuminance: getLuminance_45137, setAlpha: function(a0) { this._a = boundAlpha(a0); this._roundA = round(100 * this._a) / 100; return this; }, toHsv: toHsv, toHsvString: toHsvString, toHsl: toHsl, toHslString: toHslString, toHex: function(a0) { return rgbToHex_45106(this._r, this._g, this._b, a0); }, toHexString: function(a0) { return '#' + this.toHex(a0); }, toHex8: toHex8, toHex8String: function(a0) { return '#' + this.toHex8(a0); }, toRgb: function() { var object = {}; object.r = round(this._r); object.g = round(this._g); object.b = round(this._b); object.a = this._a; return object; }, toRgbString: toRgbString, toPercentageRgb: toPercentageRgb, toPercentageRgbString: toPercentageRgbString, toName: toName, toFilter: toFilter, toString: toString_45153, clone: clone_45154, _applyModification: function(a0, a1) { var value = [this].concat([].slice.call(a1)); value = a0.apply(null, value); this._r = value._r; this._g = value._g; this._b = value._b; this.setAlpha(value._a); return this; }, lighten: function() { return this._applyModification(_lighten, arguments); }, brighten: function() { return this._applyModification(_brighten, arguments); }, darken: function() { return this._applyModification(_darken, arguments); }, desaturate: function() { return this._applyModification(_desaturate, arguments); }, saturate: function() { return this._applyModification(_saturate, arguments); }, greyscale: function() { return this._applyModification(_greyscale, arguments); }, spin: function() { return this._applyModification(_spin, arguments); }, _applyCombination: function(a0, a1) { return a0.apply(null, [this].concat([].slice.call(a1))); }, analogous: function() { return this._applyCombination(_analogous, arguments); }, complement: function() { return this._applyCombination(_complement, arguments); }, monochromatic: function() { return this._applyCombination(_monochromatic, arguments); }, splitcomplement: function() { return this._applyCombination(_splitcomplement, arguments); }, triad: function() { return this._applyCombination(_triad, arguments); }, tetrad: function() { return this._applyCombination(_tetrad, arguments); }}; closure.fromRatio = fromRatio; closure.equals = equals_45171; closure.random = function() { var tinycolorBinding = tinycolor; var object = {}; var randomBinding = random; object.r = randomBinding(); object.g = randomBinding(); object.b = randomBinding(); return tinycolorBinding.fromRatio(object); }; closure.mix = mix_45173; closure.readability = readability; closure.isReadable = isReadable; closure.mostReadable = mostReadable; object3 = {'aliceblue': 'f0f8ff', 'antiquewhite': 'faebd7', 'aqua': '0ff', 'aquamarine': '7fffd4', 'azure': 'f0ffff', 'beige': 'f5f5dc', 'bisque': 'ffe4c4', 'black': '000', 'blanchedalmond': 'ffebcd', 'blue': '00f', 'blueviolet': '8a2be2', 'brown': 'a52a2a', 'burlywood': 'deb887', 'burntsienna': 'ea7e5d', 'cadetblue': '5f9ea0', 'chartreuse': '7fff00', 'chocolate': 'd2691e', 'coral': 'ff7f50', 'cornflowerblue': '6495ed', 'cornsilk': 'fff8dc', 'crimson': 'dc143c', 'cyan': '0ff', 'darkblue': '00008b', 'darkcyan': '008b8b', 'darkgoldenrod': 'b8860b', 'darkgray': 'a9a9a9', 'darkgreen': '006400', 'darkgrey': 'a9a9a9', 'darkkhaki': 'bdb76b', 'darkmagenta': '8b008b', 'darkolivegreen': '556b2f', 'darkorange': 'ff8c00', 'darkorchid': '9932cc', 'darkred': '8b0000', 'darksalmon': 'e9967a', 'darkseagreen': '8fbc8f', 'darkslateblue': '483d8b', 'darkslategray': '2f4f4f', 'darkslategrey': '2f4f4f', 'darkturquoise': '00ced1', 'darkviolet': '9400d3', 'deeppink': 'ff1493', 'deepskyblue': '00bfff', 'dimgray': '696969', 'dimgrey': '696969', 'dodgerblue': '1e90ff', 'firebrick': 'b22222', 'floralwhite': 'fffaf0', 'forestgreen': '228b22', 'fuchsia': 'f0f', 'gainsboro': 'dcdcdc', 'ghostwhite': 'f8f8ff', 'gold': 'ffd700', 'goldenrod': 'daa520', 'gray': '808080', 'green': '008000', 'greenyellow': 'adff2f', 'grey': '808080', 'honeydew': 'f0fff0', 'hotpink': 'ff69b4', 'indianred': 'cd5c5c', 'indigo': '4b0082', 'ivory': 'fffff0', 'khaki': 'f0e68c', 'lavender': 'e6e6fa', 'lavenderblush': 'fff0f5', 'lawngreen': '7cfc00', 'lemonchiffon': 'fffacd', 'lightblue': 'add8e6', 'lightcoral': 'f08080', 'lightcyan': 'e0ffff', 'lightgoldenrodyellow': 'fafad2', 'lightgray': 'd3d3d3', 'lightgreen': '90ee90', 'lightgrey': 'd3d3d3', 'lightpink': 'ffb6c1', 'lightsalmon': 'ffa07a', 'lightseagreen': '20b2aa', 'lightskyblue': '87cefa', 'lightslategray': '789', 'lightslategrey': '789', 'lightsteelblue': 'b0c4de', 'lightyellow': 'ffffe0', 'lime': '0f0', 'limegreen': '32cd32', 'linen': 'faf0e6', 'magenta': 'f0f', 'maroon': '800000', 'mediumaquamarine': '66cdaa', 'mediumblue': '0000cd', 'mediumorchid': 'ba55d3', 'mediumpurple': '9370db', 'mediumseagreen': '3cb371', 'mediumslateblue': '7b68ee', 'mediumspringgreen': '00fa9a', 'mediumturquoise': '48d1cc', 'mediumvioletred': 'c71585', 'midnightblue': '191970', 'mintcream': 'f5fffa', 'mistyrose': 'ffe4e1', 'moccasin': 'ffe4b5', 'navajowhite': 'ffdead', 'navy': '000080', 'oldlace': 'fdf5e6', 'olive': '808000', 'olivedrab': '6b8e23', 'orange': 'ffa500', 'orangered': 'ff4500', 'orchid': 'da70d6', 'palegoldenrod': 'eee8aa', 'palegreen': '98fb98', 'paleturquoise': 'afeeee', 'palevioletred': 'db7093', 'papayawhip': 'ffefd5', 'peachpuff': 'ffdab9', 'peru': 'cd853f', 'pink': 'ffc0cb', 'plum': 'dda0dd', 'powderblue': 'b0e0e6', 'purple': '800080', 'rebeccapurple': '663399', 'red': 'f00', 'rosybrown': 'bc8f8f', 'royalblue': '4169e1', 'saddlebrown': '8b4513', 'salmon': 'fa8072', 'sandybrown': 'f4a460', 'seagreen': '2e8b57', 'seashell': 'fff5ee', 'sienna': 'a0522d', 'silver': 'c0c0c0', 'skyblue': '87ceeb', 'slateblue': '6a5acd', 'slategray': '708090', 'slategrey': '708090', 'snow': 'fffafa', 'springgreen': '00ff7f', 'steelblue': '4682b4', 'tan': 'd2b48c', 'teal': '008080', 'thistle': 'd8bfd8', 'tomato': 'ff6347', 'turquoise': '40e0d0', 'violet': 'ee82ee', 'wheat': 'f5deb3', 'white': 'fff', 'whitesmoke': 'f5f5f5', 'yellow': 'ff0', 'yellowgreen': '9acd32'}; closure.names = object3; const object4 = {}; for (propertyName in object3) { hasOwnProperty = object3.hasOwnProperty; if (!Reflect.apply(hasOwnProperty, object3, [propertyName])) { r5 = propertyName2; continue; } object4[object3[propertyName]] = propertyName; r5 = propertyName2; } closure.hexNames = object4; object3 = {}; RegExp = global.RegExp; object3.CSS_UNIT = new RegExp('(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)'); RegExp = global.RegExp; object3.rgb = new RegExp('rgb[\\s|\\(]+((?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?))[,|\\s]+((?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?))[,|\\s]+((?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?))\\s*\\)?'); RegExp = global.RegExp; object3.rgba = new RegExp('rgba[\\s|\\(]+((?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?))[,|\\s]+((?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?))[,|\\s]+((?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?))[,|\\s]+((?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?))\\s*\\)?'); RegExp = global.RegExp; object3.hsl = new RegExp('hsl[\\s|\\(]+((?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?))[,|\\s]+((?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?))[,|\\s]+((?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?))\\s*\\)?'); RegExp = global.RegExp; object3.hsla = new RegExp('hsla[\\s|\\(]+((?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?))[,|\\s]+((?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?))[,|\\s]+((?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?))[,|\\s]+((?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?))\\s*\\)?'); RegExp = global.RegExp; object3.hsv = new RegExp('hsv[\\s|\\(]+((?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?))[,|\\s]+((?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?))[,|\\s]+((?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?))\\s*\\)?'); RegExp = global.RegExp; object3.hsva = new RegExp('hsva[\\s|\\(]+((?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?))[,|\\s]+((?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?))[,|\\s]+((?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?))[,|\\s]+((?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?))\\s*\\)?'); object3.hex3 = RegExp('^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$', ''); object3.hex6 = RegExp('^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$', ''); object3.hex4 = RegExp('^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$', ''); object3.hex8 = RegExp('^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$', ''); if (env0_0 === undefined) { if (typeof global.define !== 'function') { global.window.tinycolor = closure; } else if (global.define.amd) { global.define(function() { return tinycolor; }); } else { global.window.tinycolor = closure; } } else if (env0_0.exports) { env0_0.exports = closure; } else if (typeof global.define !== 'function') { global.window.tinycolor = closure; } else if (global.define.amd) { global.define(_fun45177); } else { global.window.tinycolor = closure; } } function exports_45100(a0, a1) { // fn#45100, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5310:111, offset: 0x01181536, size: 342 bytes, params: 3, frame: 18 var format; var value3; var binding; var value4; let value = a0; const r4 = a1 || ({}); const r0 = value || ''; if (r0 instanceof tinycolor) { return r0; } if (this instanceof tinycolor) { value3 = inputToRGB(r0); this._originalInput = r0; this._r = value3.r; this._g = value3.g; this._b = value3.b; this._a = value3.a; this._roundA = round(100 * this._a) / 100; format = r4.format; format = !format ? value3.format : format; this._format = format; this._gradientType = r4.gradientType; if (this._r < 1) { this._r = round(this._r); } if (this._g < 1) { this._g = round(this._g); } if (this._b < 1) { this._b = round(this._b); } this._ok = value3.ok; binding = env0_3; value4 = typeof binding === 'bigint' ? binding : +binding; env0_3 = typeof value4 === 'bigint' ? value4 + 1n : +value4 + 1; this._tc_id = value4; return undefined; } tinycolorBinding = tinycolor; value = Object.create(tinycolorBinding.prototype, {constructor: {value: tinycolorBinding}}); const tinycolor2 = new tinycolorBinding(r0, r4); return tinycolor2 instanceof Object ? tinycolor2 : value; } function rgbToHsl_45104(a0, a1, a2) { // fn#45104, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5310:3065, offset: 0x01181ee2, size: 215 bytes, params: 4, frame: 24 var r0; var r5; var r2; var r3; var value9; var value; const bound01Binding = bound01; const value2 = undefined; const value3 = bound01Binding(a0, 255); const value4 = bound01Binding(a1, 255); const value5 = bound01Binding(a2, 255); const value6 = max(value3, value4, value5); const value7 = (value6 + min(value3, value4, value5)) / 2; const value8 = 0; if (value6 == value) { r2 = value8; r3 = value8; } else { value9 = value6 - value; if (value7 > 0.5) { value = value9 / (2 - value6 - value); r0 = value; } else { value = value9 / (value6 + value); r0 = value; } if (value3 === value6) { value = (value4 - value5) / value9; value += value4 < value5 ? 6 : value8; r5 = value; } else { r5 = value4 === value6 ? (value5 - value3) / value9 + 2 : value5 !== value6 ? value2 : (value3 - value4) / value9 + 4; } value = r5 / 6; r2 = r0; r3 = value; } return {h: r3, s: r2, l: value7}; } function rgbToHsv(a0, a1, a2) { // fn#45105, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5310:3347, offset: 0x01181fb9, size: 178 bytes, params: 4, frame: 21 var r4; var r3; var value; const bound01Binding = bound01; const value2 = undefined; const value3 = bound01Binding(a0, 255); const value4 = bound01Binding(a1, 255); const value5 = bound01Binding(a2, 255); const value6 = max(value3, value4, value5); const value7 = value6 - min(value3, value4, value5); const value8 = 0; const r2 = value8 === value6 ? value8 : value7 / value6; if (value6 == value) { r3 = value8; } else { if (value3 === value6) { value = (value4 - value5) / value7; value += value4 < value5 ? 6 : value8; r4 = value; } else { r4 = value4 === value6 ? (value5 - value3) / value7 + 2 : value5 !== value6 ? value2 : (value3 - value4) / value7 + 4; } value = r4 / 6; r3 = value; } return {h: r3, s: r2, v: value6}; } function rgbToHex_45106(a0, a1, a2, a3) { // fn#45106, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5310:3606, offset: 0x0118206b, size: 296 bytes, params: 5, frame: 15 var r0; var property; var charAt; const pad2_45125Binding = pad2_45125; const value2 = round(a0); const items2 = [pad2_45125Binding(value2.toString(16))]; const value4 = round(a1); items2[1] = pad2_45125Binding(value4.toString(16)); let value = round(a2); items2[2] = pad2_45125Binding(value.toString(16)); if (a3) { property = items2[0]; value = property.charAt(0); property = items2[0]; charAt = property.charAt; if (value != Reflect.apply(charAt, property, [1])) { r0 = items2.join(''); } else { property = items2[1]; value = property.charAt(0); property = items2[1]; charAt = property.charAt; if (value != Reflect.apply(charAt, property, [1])) { r0 = items2.join(''); } else { property = items2[2]; value = property.charAt(0); property = items2[2]; charAt = property.charAt; if (value == Reflect.apply(charAt, property, [1])) { property = items2[0]; value = property.charAt(0); property = items2[1]; charAt = property.charAt; value += Reflect.apply(charAt, property, [0]); property = items2[2]; charAt = property.charAt; value += Reflect.apply(charAt, property, [0]); r0 = value; } else { r0 = items2.join(''); } } } } else { r0 = items2.join(''); } return r0; } function rgbaToArgbHex(a0, a1, a2, a3) { // fn#45107, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5310:3874, offset: 0x01182193, size: 146 bytes, params: 5, frame: 15 const pad2_45125Binding = pad2_45125; const items2 = [pad2_45125Binding(convertDecimalToHex(a3))]; const value3 = round(a0); items2[1] = pad2_45125Binding(value3.toString(16)); const value4 = round(a1); items2[2] = pad2_45125Binding(value4.toString(16)); const value = round(a2); items2[3] = pad2_45125Binding(value.toString(16)); return items2.join(''); } function _desaturate(a0, a1) { // fn#45108, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5310:4024, offset: 0x01182225, size: 94 bytes, params: 3, frame: 15 const value = a1; const value2 = 0; const r6 = value2 === value ? value2 : value || 10; const tinycolorBinding = tinycolor; const value4 = tinycolorBinding(a0).toHsl(); value4.s = value4.s - r6 / 100; value4.s = clamp01(value4.s); return tinycolorBinding(value4); } function _saturate(a0, a1) { // fn#45109, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5310:4141, offset: 0x01182283, size: 94 bytes, params: 3, frame: 15 const value = a1; const value2 = 0; const r6 = value2 === value ? value2 : value || 10; const tinycolorBinding = tinycolor; const value4 = tinycolorBinding(a0).toHsl(); value4.s = value4.s + r6 / 100; value4.s = clamp01(value4.s); return tinycolorBinding(value4); } function _greyscale(a0) { // fn#45110, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5310:4256, offset: 0x011822e1, size: 33 bytes, params: 2, frame: 11 return tinycolor(a0).desaturate(100); } function _lighten(a0, a1) { // fn#45111, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5310:4315, offset: 0x01182302, size: 94 bytes, params: 3, frame: 15 const value = a1; const value2 = 0; const r6 = value2 === value ? value2 : value || 10; const tinycolorBinding = tinycolor; const value4 = tinycolorBinding(a0).toHsl(); value4.l = value4.l + r6 / 100; value4.l = clamp01(value4.l); return tinycolorBinding(value4); } function _brighten(a0, a1) { // fn#45112, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5310:4429, offset: 0x01182360, size: 226 bytes, params: 3, frame: 22 const value = a1; const value2 = 0; const r3 = value2 === value ? value2 : value || 10; const tinycolorBinding = tinycolor; const value4 = tinycolorBinding(a0).toRgb(); value4.r = max(value2, min(255, value4.r - round(-r3 / 100 * 255))); value4.g = max(value2, min(255, value4.g - round(-r3 / 100 * 255))); value4.b = max(value2, min(255, value4.b - round(-r3 / 100 * 255))); return tinycolorBinding(value4); } function _darken(a0, a1) { // fn#45113, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5310:4618, offset: 0x01182442, size: 94 bytes, params: 3, frame: 15 const value = a1; const value2 = 0; const r6 = value2 === value ? value2 : value || 10; const tinycolorBinding = tinycolor; const value4 = tinycolorBinding(a0).toHsl(); value4.l = value4.l - r6 / 100; value4.l = clamp01(value4.l); return tinycolorBinding(value4); } function _complement(a0) { // fn#45115, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5310:4828, offset: 0x011824ef, size: 62 bytes, params: 2, frame: 13 const tinycolorBinding = tinycolor; let value = tinycolorBinding(a0); value = value.toHsl(); value.h = (value.h + 180) % 360; return tinycolorBinding(value); } function _triad(a0) { // fn#45116, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5310:4917, offset: 0x0118252d, size: 141 bytes, params: 2, frame: 16 const tinycolorBinding = tinycolor; let value = tinycolorBinding(a0); value = value.toHsl(); const h = value.h; const items2 = [tinycolorBinding(a0)]; items2[1] = tinycolorBinding({h: (h + 120) % 360, s: value.s, l: value.l}); items2[2] = tinycolorBinding({h: (h + 240) % 360, s: value.s, l: value.l}); return items2; } function _tetrad(a0) { // fn#45117, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5310:5068, offset: 0x011825ba, size: 188 bytes, params: 2, frame: 16 const tinycolorBinding = tinycolor; let value = tinycolorBinding(a0); value = value.toHsl(); const h = value.h; const items2 = [tinycolorBinding(a0)]; items2[1] = tinycolorBinding({h: (h + 90) % 360, s: value.s, l: value.l}); items2[2] = tinycolorBinding({h: (h + 180) % 360, s: value.s, l: value.l}); items2[3] = tinycolorBinding({h: (h + 270) % 360, s: value.s, l: value.l}); return items2; } function _splitcomplement(a0) { // fn#45118, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5310:5258, offset: 0x01182676, size: 141 bytes, params: 2, frame: 16 const tinycolorBinding = tinycolor; let value = tinycolorBinding(a0); value = value.toHsl(); const h = value.h; const items2 = [tinycolorBinding(a0)]; items2[1] = tinycolorBinding({h: (h + 72) % 360, s: value.s, l: value.l}); items2[2] = tinycolorBinding({h: (h + 216) % 360, s: value.s, l: value.l}); return items2; } function _analogous(a0, a1, a2) { // fn#45119, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5310:5418, offset: 0x01182703, size: 160 bytes, params: 4, frame: 18 var r1; var r2; var push; var value8; let value = a1; const value2 = a2; reducibleJoin2: while (true) { if (value) { r1 = value; break reducibleJoin2; } value = 6; r1 = value; break reducibleJoin2; } reducibleJoin4: while (true) { if (value2) { r2 = value2; break reducibleJoin4; } value = 30; r2 = value; break reducibleJoin4; } const tinycolorBinding = tinycolor; const value4 = tinycolorBinding(a0).toHsl(); const value5 = 360 / r2; const items2 = [tinycolorBinding(a0)]; let h = value4.h; value4.h = (h - (value5 * r1 >> 1) + 720) % 360; const value7 = typeof r1 === 'bigint' ? r1 - 1n : +r1 - 1; if (value7) { r1 = value7; reducibleLoop5: while (true) { h = value4.h; value4.h = (h + value5) % 360; push = items2.push; Reflect.apply(push, items2, [tinycolor(value4)]); value8 = typeof r1 === 'bigint' ? r1 - 1n : +r1 - 1; if (value8) { r1 = value8; continue reducibleLoop5; } break reducibleLoop5; } } return items2; } function _monochromatic(a0, a1) { // fn#45120, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5310:5594, offset: 0x011827a3, size: 123 bytes, params: 3, frame: 21 var r1; var r2; var r5; var push; var value7; var value8; var value9; let value = a1; reducibleJoin2: while (true) { if (value) { r1 = value; break reducibleJoin2; } value = 6; r1 = value; break reducibleJoin2; } const {h, s, v} = tinycolor(a0).toHsv(); const items2 = []; const value4 = 1 / r1; const value5 = typeof r1 === 'bigint' ? r1 : +r1; if (value5) { r2 = typeof value5 === 'bigint' ? value5 - 1n : +value5 - 1; r5 = v; reducibleLoop3: while (true) { push = items2.push; Reflect.apply(push, items2, [tinycolor({h: h, s: s, v: r5})]); value7 = (r5 + value4) % 1; value8 = typeof r2 === 'bigint' ? r2 : +r2; value9 = typeof value8 === 'bigint' ? value8 - 1n : +value8 - 1; if (value8) { r2 = value9; r5 = value7; continue reducibleLoop3; } break reducibleLoop3; } } return items2; } function bound01(a0, a1) { // fn#45122, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5310:15435, offset: 0x01182856, size: 249 bytes, params: 3, frame: 18 var r0; var r6; let value = a0; const r7 = typeof value === 'string' && value.indexOf('.') != -1 && global.parseFloat(value) === 1 ? '100%' : value; value = typeof r7 === 'string'; if (value) { value = r7.indexOf('%'); value = value != -1; r6 = value; } else { r6 = value; } const value6 = min(a1, max(0, global.parseFloat(r7))); const r2 = r6 ? global.parseInt(value6 * a1, 10) / 100 : value6; value = env0_0.abs(r2 - a1); value = 1; if (value < 0.000001) { r0 = value; } else { value = r2 % a1; value /= global.parseFloat(a1); r0 = value; } return r0; } function clamp01(a0) { // fn#45123, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5310:15743, offset: 0x0118294f, size: 35 bytes, params: 2, frame: 14 return min(1, max(0, a0)); } function convertDecimalToHex(a0) { // fn#45127, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5310:15940, offset: 0x011829c8, size: 57 bytes, params: 2, frame: 13 const binding = env0_0; const round = binding.round; let value = global.parseFloat(a0); value = Reflect.apply(round, binding, [255 * value]); return value.toString(16); } function convertHexToDecimal(a0) { // fn#45128, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5310:16019, offset: 0x01182a01, size: 26 bytes, params: 2, frame: 11 return parseIntFromHex(a0) / 255; } function isValidCSSUnit(a0) { // fn#45129, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5310:17717, offset: 0x01182a1b, size: 35 bytes, params: 2, frame: 11 const CSS_UNIT = env0_10.CSS_UNIT; return !!CSS_UNIT.exec(a0); } function getLuminance_45137() { // fn#45137, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5310:6197, offset: 0x01182ad7, size: 336 bytes, params: 1, frame: 17 var r3; let value = this.toRgb(); const value2 = value.r / 255; const value3 = value.g / 255; value = value.b / 255; const value7 = 0.2126 * (value2 <= 0.03928 ? value2 / 12.92 : env0_0.pow((value2 + 0.055) / 1.055, 2.4)); const value11 = 0.7152 * (value3 <= 0.03928 ? value3 / 12.92 : env0_0.pow((value3 + 0.055) / 1.055, 2.4)); if (value <= 0.03928) { value /= 12.92; r3 = value; } else { value = env0_0.pow((value + 0.055) / 1.055, 2.4); r3 = value; } return value7 + value11 + 0.0722 * r3; } function toHsv() { // fn#45139, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5310:6543, offset: 0x01182c62, size: 87 bytes, params: 1, frame: 16 const value = rgbToHsv(this._r, this._g, this._b); return {h: 360 * value.h, s: value.s, v: value.v, a: this._a}; } function toHsvString() { // fn#45140, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5310:6653, offset: 0x01182cb9, size: 226 bytes, params: 1, frame: 18 var r0; const value2 = rgbToHsv(this._r, this._g, this._b); const value3 = round(360 * value2.h); const value4 = round(100 * value2.s); let value = round(100 * value2.v); if (this._a == 1) { value = 'hsv(' + value3 + ', ' + value4 + '%, ' + value + '%)'; r0 = value; } else { value = 'hsva(' + value3 + ', ' + value4 + '%, ' + value; value = value + '%, ' + this._roundA + ')'; r0 = value; } return r0; } function toHsl() { // fn#45141, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5310:6857, offset: 0x01182d9b, size: 87 bytes, params: 1, frame: 16 const value = rgbToHsl_45104(this._r, this._g, this._b); return {h: 360 * value.h, s: value.s, l: value.l, a: this._a}; } function toHslString() { // fn#45142, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5310:6967, offset: 0x01182df2, size: 226 bytes, params: 1, frame: 18 var r0; const value2 = rgbToHsl_45104(this._r, this._g, this._b); const value3 = round(360 * value2.h); const value4 = round(100 * value2.s); let value = round(100 * value2.l); if (this._a == 1) { value = 'hsl(' + value3 + ', ' + value4 + '%, ' + value + '%)'; r0 = value; } else { value = 'hsla(' + value3 + ', ' + value4 + '%, ' + value; value = value + '%, ' + this._roundA + ')'; r0 = value; } return r0; } function toHex8(a0) { // fn#45145, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5310:7301, offset: 0x01182f14, size: 390 bytes, params: 2, frame: 17 var r0; var property; var charAt; const _r = this._r; const _g = this._g; const _b = this._b; const _a = this._a; var value; const pad2_45125Binding = pad2_45125; const value2 = round(_r); const items2 = [pad2_45125Binding(value2.toString(16))]; const value4 = round(_g); items2[1] = pad2_45125Binding(value4.toString(16)); const value5 = round(_b); items2[2] = pad2_45125Binding(value5.toString(16)); items2[3] = pad2_45125Binding(convertDecimalToHex(_a)); if (a0) { property = items2[0]; value = property.charAt(0); property = items2[0]; charAt = property.charAt; if (value != Reflect.apply(charAt, property, [1])) { r0 = items2.join(''); } else { property = items2[1]; value = property.charAt(0); property = items2[1]; charAt = property.charAt; if (value != Reflect.apply(charAt, property, [1])) { r0 = items2.join(''); } else { property = items2[2]; value = property.charAt(0); property = items2[2]; charAt = property.charAt; if (value != Reflect.apply(charAt, property, [1])) { r0 = items2.join(''); } else { property = items2[3]; value = property.charAt(0); property = items2[3]; charAt = property.charAt; if (value == Reflect.apply(charAt, property, [1])) { property = items2[0]; value = property.charAt(0); property = items2[1]; charAt = property.charAt; value += Reflect.apply(charAt, property, [0]); property = items2[2]; charAt = property.charAt; value += Reflect.apply(charAt, property, [0]); property = items2[3]; charAt = property.charAt; value += Reflect.apply(charAt, property, [0]); r0 = value; } else { r0 = items2.join(''); } } } } } else { r0 = items2.join(''); } return r0; } function toRgbString() { // fn#45148, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5310:7878, offset: 0x01183103, size: 217 bytes, params: 1, frame: 15 var r0; var value; var value5; var value9; if (this._a == 1) { value9 = 'rgb(' + round(this._r) + ', ' + round(this._g); value = round(this._b); value = value9 + ', ' + value + ')'; r0 = value; } else { value5 = 'rgba(' + round(this._r) + ', ' + round(this._g); value = round(this._b); value = value5 + ', ' + value; value = value + ', ' + this._roundA + ')'; r0 = value; } return r0; } function toPercentageRgb() { // fn#45149, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5310:8063, offset: 0x011831dc, size: 135 bytes, params: 1, frame: 19 const object2 = {}; const roundBinding = round; const bound01Binding = bound01; object2.r = roundBinding(100 * bound01Binding(this._r, 255)) + '%'; object2.g = round(100 * bound01Binding(this._g, 255)) + '%'; object2.b = round(100 * bound01Binding(this._b, 255)) + '%'; object2.a = this._a; return object2; } function toPercentageRgbString() { // fn#45150, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5310:8233, offset: 0x01183263, size: 303 bytes, params: 1, frame: 19 var r0; var value; var roundBinding; var bound01Binding; var value6; var value11; if (this._a == 1) { roundBinding = round; bound01Binding = bound01; value11 = 'rgb(' + roundBinding(100 * bound01Binding(this._r, 255)) + '%, ' + round(100 * bound01Binding(this._g, 255)); value = round(100 * bound01Binding(this._b, 255)); value = value11 + '%, ' + value + '%)'; r0 = value; } else { roundBinding = round; bound01Binding = bound01; value6 = 'rgba(' + roundBinding(100 * bound01Binding(this._r, 255)) + '%, ' + round(100 * bound01Binding(this._g, 255)); value = round(100 * bound01Binding(this._b, 255)); value = value6 + '%, ' + value; value = value + '%, ' + this._roundA + ')'; r0 = value; } return r0; } function toName() { // fn#45151, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5310:8527, offset: 0x01183392, size: 91 bytes, params: 1, frame: 20 return this._a === 0 ? 'transparent' : !(this._a < 1) && (env0_9[rgbToHex_45106(this._r, this._g, this._b, true)] || false); } function toFilter(a0) { // fn#45152, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5310:8648, offset: 0x011833ed, size: 174 bytes, params: 2, frame: 21 var r1; var value6; const value3 = '#' + rgbaToArgbHex(this._r, this._g, this._b, this._a); const r3 = this._gradientType ? 'GradientType = 1, ' : ''; if (a0) { value6 = tinycolor(a0); r1 = '#' + rgbaToArgbHex(value6._r, value6._g, value6._b, value6._a); } else { r1 = value3; } return 'progid:DXImageTransform.Microsoft.gradient(' + r3 + 'startColorstr=' + value3 + ',endColorstr=' + r1 + ')'; } function toString_45153(a0) { // fn#45153, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5310:8946, offset: 0x0118349b, size: 350 bytes, params: 2, frame: 14 var r1; let value = a0; const r4 = value || this._format; let r0 = this._a < 1 && this._a >= 0; if (value) { value = false; r1 = r4 !== 'rgb' ? value : this.toRgbString(); r1 = r4 === 'prgb' ? this.toPercentageRgbString() : r1; value = r4 !== 'hex'; r1 = !(value && r4 !== 'hex6') ? this.toHexString() : r1; r1 = r4 === 'hex3' ? this.toHexString(true) : r1; r1 = r4 === 'hex4' ? this.toHex8String(true) : r1; r1 = r4 === 'hex8' ? this.toHex8String() : r1; r1 = r4 === 'name' ? this.toName() : r1; r1 = r4 === 'hsl' ? this.toHslString() : r1; r1 = r4 === 'hsv' ? this.toHsvString() : r1; r1 = !r1 ? this.toHexString() : r1; r0 = r1; } else if (r0) { if (r4 === 'hex') { r0 = r4 !== 'name' ? this.toRgbString() : this._a === 0 ? this.toName() : this.toRgbString(); } else if (r4 === 'hex6') { r0 = r4 !== 'name' ? this.toRgbString() : this._a === 0 ? this.toName() : this.toRgbString(); } else if (r4 === 'hex3') { r0 = r4 !== 'name' ? this.toRgbString() : this._a === 0 ? this.toName() : this.toRgbString(); } else if (r4 === 'hex4') { r0 = r4 !== 'name' ? this.toRgbString() : this._a === 0 ? this.toName() : this.toRgbString(); } else if (r4 === 'hex8') { r0 = r4 !== 'name' ? this.toRgbString() : this._a === 0 ? this.toName() : this.toRgbString(); } else if (r4 !== 'name') { value = false; r1 = r4 !== 'rgb' ? value : this.toRgbString(); r1 = r4 === 'prgb' ? this.toPercentageRgbString() : r1; value = r4 !== 'hex'; r1 = !(value && r4 !== 'hex6') ? this.toHexString() : r1; r1 = r4 === 'hex3' ? this.toHexString(true) : r1; r1 = r4 === 'hex4' ? this.toHex8String(true) : r1; r1 = r4 === 'hex8' ? this.toHex8String() : r1; r1 = r4 === 'name' ? this.toName() : r1; r1 = r4 === 'hsl' ? this.toHslString() : r1; r1 = r4 === 'hsv' ? this.toHsvString() : r1; r1 = !r1 ? this.toHexString() : r1; r0 = r1; } else { r0 = r4 !== 'name' ? this.toRgbString() : this._a === 0 ? this.toName() : this.toRgbString(); } } else { value = false; r1 = r4 !== 'rgb' ? value : this.toRgbString(); r1 = r4 === 'prgb' ? this.toPercentageRgbString() : r1; value = r4 !== 'hex'; r1 = !(value && r4 !== 'hex6') ? this.toHexString() : r1; r1 = r4 === 'hex3' ? this.toHexString(true) : r1; r1 = r4 === 'hex4' ? this.toHex8String(true) : r1; r1 = r4 === 'hex8' ? this.toHex8String() : r1; r1 = r4 === 'name' ? this.toName() : r1; r1 = r4 === 'hsl' ? this.toHslString() : r1; r1 = r4 === 'hsv' ? this.toHsvString() : r1; r1 = !r1 ? this.toHexString() : r1; r0 = r1; } return r0; } function clone_45154() { // fn#45154, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5310:9534, offset: 0x011835f9, size: 27 bytes, params: 1, frame: 11 return tinycolor(this.toString()); } function fromRatio(a0, a1) { // fn#45170, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5310:10965, offset: 0x01183820, size: 120 bytes, params: 3, frame: 23 var r6; var r11; var r3; var object2; var properties; var properties2; var properties3; var propertyName; var propertyName2; var hasOwnProperty; var value3; var property; const value = a0; if (typeof value !== 'object') { r3 = value; } else { object2 = {}; properties = Object.keys(value); properties2 = 0; properties3 = properties.length; if (properties === undefined) { r3 = object2; } else { r6 = properties2; while (true) { propertyName = properties[r6]; propertyName2 = r6 + 1; if (propertyName === undefined) { r3 = object2; break; } hasOwnProperty = value.hasOwnProperty; if (!Reflect.apply(hasOwnProperty, value, [propertyName])) { r6 = propertyName2; continue; } if (propertyName === 'a') { property = value[propertyName]; r11 = property; } else { value3 = convertToPercentage(value[propertyName]); r11 = value3; } object2[propertyName] = r11; r6 = propertyName2; } } } return tinycolor(r3, a1); } function equals_45171(a0, a1) { // fn#45171, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5310:11137, offset: 0x01183898, size: 66 bytes, params: 3, frame: 14 var r0; var tinycolorBinding; var value2; const r1 = a0 ? !a1 : !a0; value = !r1; if (r1) { r0 = value; } else { tinycolorBinding = tinycolor; value = tinycolorBinding(a0); value = value.toRgbString(); value2 = tinycolorBinding(a1); value = value == value2.toRgbString(); r0 = value; } return r0; } function mix_45173(a0, a1, a2) { // fn#45173, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5310:11315, offset: 0x0118390f, size: 207 bytes, params: 4, frame: 16 let value = a2; const value2 = 0; const r5 = value2 === value ? value2 : value || 50; const tinycolorBinding = tinycolor; value = tinycolorBinding(a0); value = value.toRgb(); const value4 = tinycolorBinding(a1).toRgb(); const value5 = r5 / 100; return tinycolorBinding({r: (value4.r - value.r) * value5 + value.r, g: (value4.g - value.g) * value5 + value.g, b: (value4.b - value.b) * value5 + value.b, a: (value4.a - value.a) * value5 + value.a}); } function readability(a0, a1) { // fn#45174, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5310:11520, offset: 0x011839de, size: 115 bytes, params: 3, frame: 16 const tinycolorBinding = tinycolor; const value2 = tinycolorBinding(a0); const value3 = tinycolorBinding(a1); const binding = env0_0; const max = binding.max; let getLuminance = value2.getLuminance; let value = Reflect.apply(getLuminance, value2, []); getLuminance = value3.getLuminance; value = Reflect.apply(max, binding, [value, Reflect.apply(getLuminance, value3, [])]); value += 0.05; const min = binding.min; const luminance = value2.getLuminance(); getLuminance = value3.getLuminance; return value / (Reflect.apply(min, binding, [luminance, Reflect.apply(getLuminance, value3, [])]) + 0.05); } function isReadable(a0, a1, a2) { // fn#45175, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5310:11690, offset: 0x01183a51, size: 248 bytes, params: 4, frame: 15 let value = a2; const value3 = tinycolor.readability(a0, a1); const r0 = value || ({'level': 'AA', 'size': 'small'}); let level = r0.level; level = !level ? 'AA' : level; value = level.toUpperCase(); let size = r0.size; size = !size ? 'small' : size; const value5 = size.toLowerCase(); const value6 = 'AA'; const r3 = value6 !== value && value !== 'AAA' ? value6 : value; value = 'small'; const object2 = {level: r3, size: value !== value5 && value5 !== 'large' ? value : value5}; value = object2.level + object2.size; return value === 'AAsmall' || value === 'AAAlarge' ? value3 >= 4.5 : value === 'AAlarge' ? value3 >= 3 : !(value !== 'AAAsmall') && value3 >= 7; } function mostReadable(a0, a1, a2) { // fn#45176, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5310:12130, offset: 0x01183b49, size: 191 bytes, params: 4, frame: 25 var r6; var r7; var r10; var r0; var value4; const r4 = a2 || ({}); const includeFallbackColors = r4.includeFallbackColors; const level = r4.level; const size = r4.size; let length = a1.length; value = 0; const value2 = null; if (value < length) { r6 = value; r7 = value; r10 = value2; while (true) { value = tinycolor.readability(a0, a1[r6]); if (value > r7) { value4 = tinycolor(a1[r6]); r7 = value; r10 = value4; } value = typeof r6 === 'bigint' ? r6 + 1n : +r6 + 1; length = a1.length; if (value < length) { r6 = value; continue; } r0 = r10; break; } } else { r0 = value2; } const tinycolorBinding = tinycolor; if (!tinycolorBinding.isReadable(a0, r0, {level: level, size: size})) { if (includeFallbackColors) { r4.includeFallbackColors = false; r0 = tinycolor.mostReadable(a0, ['#fff', '#000'], r4); } } return r0; } function _fun45177() { // fn#45177, offset: 0x01183c08, size: 9 bytes, params: 1, frame: 1 return tinycolor; } function inputToRGB(a0) { // fn#45101, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5310:249, owner: exports_45100.inputToRGB, offset: 0x0118168c, size: 1946 bytes, params: 2, frame: 31 var environment; var r1; var r12; var r2; var r0; var r3; var r11; var r10; var r5; var r9; var r4; var r8; var replace; var value2; var property; var object2; var parseIntFromHexBinding; var object7; var object8; var object9; var value13; var isValidCSSUnitBinding; var r; var g; var b; var h; var convertToPercentageBinding; var value16; var value17; var value19; var value20; var bound01Binding; var value22; var value23; var value24; var value25; var value26; var value27; var value28; var value29; var value30; var property2; var value31; var String; var value37; let value = a0; let object = {'r': 0, 'g': 0, 'b': 0}; if (typeof value !== 'string') { r3 = value; } else { replace = value.replace; value2 = environment.__proto__; value = Reflect.apply(replace, value, [env1_1, '']); value = value.replace(env1_2, ''); value = value.toLowerCase(); if (env1_8[value]) { property = env1_8[value]; value = true; r1 = property; r12 = value; value = env1_10.rgb.exec(r1); if (value) { r0 = {r: value[1], g: value[2], b: value[3]}; } else { value = env1_10.rgba.exec(r1); if (value) { r0 = {r: value[1], g: value[2], b: value[3], a: value[4]}; } else { value = env1_10.hsl.exec(r1); if (value) { r0 = {h: value[1], s: value[2], l: value[3]}; } else { value = env1_10.hsla.exec(r1); if (value) { r0 = {h: value[1], s: value[2], l: value[3], a: value[4]}; } else { value = env1_10.hsv.exec(r1); if (value) { r0 = {h: value[1], s: value[2], v: value[3]}; } else { value = env1_10.hsva.exec(r1); if (value) { r0 = {h: value[1], s: value[2], v: value[3], a: value[4]}; } else { value = env1_10.hex8.exec(r1); if (value) { object9 = {}; parseIntFromHexBinding = parseIntFromHex; object9.r = parseIntFromHexBinding(value[1]); object9.g = parseIntFromHexBinding(value[2]); object9.b = parseIntFromHexBinding(value[3]); object9.a = convertHexToDecimal(value[4]); value = 'hex8'; object9.format = r12 ? 'name' : value; r0 = object9; } else { value = env1_10.hex6.exec(r1); if (value) { object8 = {}; parseIntFromHexBinding = parseIntFromHex; object8.r = parseIntFromHexBinding(value[1]); object8.g = parseIntFromHexBinding(value[2]); object8.b = parseIntFromHexBinding(value[3]); value = 'hex'; object8.format = r12 ? 'name' : value; r0 = object8; } else { value = env1_10.hex4.exec(r1); if (value) { object7 = {}; parseIntFromHexBinding = parseIntFromHex; object7.r = parseIntFromHexBinding(String(value[1]) + value[1]); object7.g = parseIntFromHexBinding(String(value[2]) + value[2]); object7.b = parseIntFromHexBinding(String(value[3]) + value[3]); object7.a = convertHexToDecimal(String(value[4]) + value[4]); value = 'hex8'; object7.format = r12 ? 'name' : value; r0 = object7; } else { value = env1_10.hex3.exec(r1); if (value) { object2 = {}; parseIntFromHexBinding = parseIntFromHex; object2.r = parseIntFromHexBinding(String(value[1]) + value[1]); object2.g = parseIntFromHexBinding(String(value[2]) + value[2]); object2.b = parseIntFromHexBinding(String(value[3]) + value[3]); value = 'hex'; object2.format = r12 ? 'name' : value; r0 = object2; } else { r0 = false; } } } } } } } } } } } else if (value == 'transparent') { r0 = {'r': 0, 'g': 0, 'b': 0, 'a': 0, 'format': 'name'}; } else { r1 = value; r12 = false; value = env1_10.rgb.exec(r1); if (value) { r0 = {r: value[1], g: value[2], b: value[3]}; } else { value = env1_10.rgba.exec(r1); if (value) { r0 = {r: value[1], g: value[2], b: value[3], a: value[4]}; } else { value = env1_10.hsl.exec(r1); if (value) { r0 = {h: value[1], s: value[2], l: value[3]}; } else { value = env1_10.hsla.exec(r1); if (value) { r0 = {h: value[1], s: value[2], l: value[3], a: value[4]}; } else { value = env1_10.hsv.exec(r1); if (value) { r0 = {h: value[1], s: value[2], v: value[3]}; } else { value = env1_10.hsva.exec(r1); if (value) { r0 = {h: value[1], s: value[2], v: value[3], a: value[4]}; } else { value = env1_10.hex8.exec(r1); if (value) { object9 = {}; parseIntFromHexBinding = parseIntFromHex; object9.r = parseIntFromHexBinding(value[1]); object9.g = parseIntFromHexBinding(value[2]); object9.b = parseIntFromHexBinding(value[3]); object9.a = convertHexToDecimal(value[4]); value = 'hex8'; object9.format = r12 ? 'name' : value; r0 = object9; } else { value = env1_10.hex6.exec(r1); if (value) { object8 = {}; parseIntFromHexBinding = parseIntFromHex; object8.r = parseIntFromHexBinding(value[1]); object8.g = parseIntFromHexBinding(value[2]); object8.b = parseIntFromHexBinding(value[3]); value = 'hex'; object8.format = r12 ? 'name' : value; r0 = object8; } else { value = env1_10.hex4.exec(r1); if (value) { object7 = {}; parseIntFromHexBinding = parseIntFromHex; object7.r = parseIntFromHexBinding(String(value[1]) + value[1]); object7.g = parseIntFromHexBinding(String(value[2]) + value[2]); object7.b = parseIntFromHexBinding(String(value[3]) + value[3]); object7.a = convertHexToDecimal(String(value[4]) + value[4]); value = 'hex8'; object7.format = r12 ? 'name' : value; r0 = object7; } else { value = env1_10.hex3.exec(r1); if (value) { object2 = {}; parseIntFromHexBinding = parseIntFromHex; object2.r = parseIntFromHexBinding(String(value[1]) + value[1]); object2.g = parseIntFromHexBinding(String(value[2]) + value[2]); object2.b = parseIntFromHexBinding(String(value[3]) + value[3]); value = 'hex'; object2.format = r12 ? 'name' : value; r0 = object2; } else { r0 = false; } } } } } } } } } } } r3 = r0; } value = 1; const value12 = false; if (typeof r3 !== 'object') { r1 = value; r2 = object; r4 = value12; r8 = value12; } else { value13 = environment.__proto__; isValidCSSUnitBinding = isValidCSSUnit; r = r3.r; if (isValidCSSUnitBinding(r)) { isValidCSSUnitBinding = isValidCSSUnit; g = r3.g; if (isValidCSSUnitBinding(g)) { isValidCSSUnitBinding = isValidCSSUnit; b = r3.b; if (isValidCSSUnitBinding(b)) { r = r3.r; g = r3.g; b = r3.b; object = {}; bound01Binding = bound01; object.r = 255 * bound01Binding(r, 255); object.g = 255 * bound01Binding(g, 255); object.b = 255 * bound01Binding(b, 255); String = global.String; r = r3.r; r10 = String(r).substr(-1) !== '%' ? 'rgb' : 'prgb'; value37 = true; r0 = r10; r5 = value37; r9 = object; } else { isValidCSSUnitBinding = isValidCSSUnit; h = r3.h; if (isValidCSSUnitBinding(h)) { if (isValidCSSUnit(r3.s)) { if (isValidCSSUnit(r3.v)) { convertToPercentageBinding = convertToPercentage; value19 = convertToPercentageBinding(r3.s); value20 = convertToPercentageBinding(r3.v); h = r3.h; bound01Binding = bound01; value22 = 6 * bound01Binding(h, 360); value23 = bound01Binding(value19, 100); value24 = bound01Binding(value20, 100); value25 = env1_0.floor(value22); value26 = value22 - value25; value27 = value24 * (value - value23); value28 = value24 * (value - value26 * value23); value29 = value24 * (value - (value - value26) * value23); value30 = value25 % 6; property = [value24, value28, value27, value27, value29, value24][value30]; property2 = [value29, value24, value24, value28, value27, value27][value30]; object = [value27, value27, value29, value24, value24, value28]; object = {r: 255 * property, g: 255 * property2, b: 255 * object[value30]}; value31 = true; r0 = 'hsv'; r5 = value31; r9 = object; } else { r11 = isValidCSSUnit(r3.h) && isValidCSSUnit(r3.s); r11 = r11 && isValidCSSUnit(r3.l); if (r11) { convertToPercentageBinding = convertToPercentage; value16 = inputToRGBHslToRgb(r3.h, convertToPercentageBinding(r3.s), convertToPercentageBinding(r3.l)); value17 = true; r0 = 'hsl'; r5 = value17; r9 = value16; } else { r0 = value12; r5 = value12; r9 = object; } } } else { r11 = isValidCSSUnit(r3.h) && isValidCSSUnit(r3.s); r11 = r11 && isValidCSSUnit(r3.l); if (r11) { convertToPercentageBinding = convertToPercentage; value16 = inputToRGBHslToRgb(r3.h, convertToPercentageBinding(r3.s), convertToPercentageBinding(r3.l)); value17 = true; r0 = 'hsl'; r5 = value17; r9 = value16; } else { r0 = value12; r5 = value12; r9 = object; } } } else { r11 = isValidCSSUnit(r3.h) && isValidCSSUnit(r3.s); r11 = r11 && isValidCSSUnit(r3.l); if (r11) { convertToPercentageBinding = convertToPercentage; value16 = inputToRGBHslToRgb(r3.h, convertToPercentageBinding(r3.s), convertToPercentageBinding(r3.l)); value17 = true; r0 = 'hsl'; r5 = value17; r9 = value16; } else { r0 = value12; r5 = value12; r9 = object; } } } } else { isValidCSSUnitBinding = isValidCSSUnit; h = r3.h; if (isValidCSSUnitBinding(h)) { if (isValidCSSUnit(r3.s)) { if (isValidCSSUnit(r3.v)) { convertToPercentageBinding = convertToPercentage; value19 = convertToPercentageBinding(r3.s); value20 = convertToPercentageBinding(r3.v); h = r3.h; bound01Binding = bound01; value22 = 6 * bound01Binding(h, 360); value23 = bound01Binding(value19, 100); value24 = bound01Binding(value20, 100); value25 = env1_0.floor(value22); value26 = value22 - value25; value27 = value24 * (value - value23); value28 = value24 * (value - value26 * value23); value29 = value24 * (value - (value - value26) * value23); value30 = value25 % 6; property = [value24, value28, value27, value27, value29, value24][value30]; property2 = [value29, value24, value24, value28, value27, value27][value30]; object = [value27, value27, value29, value24, value24, value28]; object = {r: 255 * property, g: 255 * property2, b: 255 * object[value30]}; value31 = true; r0 = 'hsv'; r5 = value31; r9 = object; } else { r11 = isValidCSSUnit(r3.h) && isValidCSSUnit(r3.s); r11 = r11 && isValidCSSUnit(r3.l); if (r11) { convertToPercentageBinding = convertToPercentage; value16 = inputToRGBHslToRgb(r3.h, convertToPercentageBinding(r3.s), convertToPercentageBinding(r3.l)); value17 = true; r0 = 'hsl'; r5 = value17; r9 = value16; } else { r0 = value12; r5 = value12; r9 = object; } } } else { r11 = isValidCSSUnit(r3.h) && isValidCSSUnit(r3.s); r11 = r11 && isValidCSSUnit(r3.l); if (r11) { convertToPercentageBinding = convertToPercentage; value16 = inputToRGBHslToRgb(r3.h, convertToPercentageBinding(r3.s), convertToPercentageBinding(r3.l)); value17 = true; r0 = 'hsl'; r5 = value17; r9 = value16; } else { r0 = value12; r5 = value12; r9 = object; } } } else { r11 = isValidCSSUnit(r3.h) && isValidCSSUnit(r3.s); r11 = r11 && isValidCSSUnit(r3.l); if (r11) { convertToPercentageBinding = convertToPercentage; value16 = inputToRGBHslToRgb(r3.h, convertToPercentageBinding(r3.s), convertToPercentageBinding(r3.l)); value17 = true; r0 = 'hsl'; r5 = value17; r9 = value16; } else { r0 = value12; r5 = value12; r9 = object; } } } } else { isValidCSSUnitBinding = isValidCSSUnit; h = r3.h; if (isValidCSSUnitBinding(h)) { if (isValidCSSUnit(r3.s)) { if (isValidCSSUnit(r3.v)) { convertToPercentageBinding = convertToPercentage; value19 = convertToPercentageBinding(r3.s); value20 = convertToPercentageBinding(r3.v); h = r3.h; bound01Binding = bound01; value22 = 6 * bound01Binding(h, 360); value23 = bound01Binding(value19, 100); value24 = bound01Binding(value20, 100); value25 = env1_0.floor(value22); value26 = value22 - value25; value27 = value24 * (value - value23); value28 = value24 * (value - value26 * value23); value29 = value24 * (value - (value - value26) * value23); value30 = value25 % 6; property = [value24, value28, value27, value27, value29, value24][value30]; property2 = [value29, value24, value24, value28, value27, value27][value30]; object = [value27, value27, value29, value24, value24, value28]; object = {r: 255 * property, g: 255 * property2, b: 255 * object[value30]}; value31 = true; r0 = 'hsv'; r5 = value31; r9 = object; } else { r11 = isValidCSSUnit(r3.h) && isValidCSSUnit(r3.s); r11 = r11 && isValidCSSUnit(r3.l); if (r11) { convertToPercentageBinding = convertToPercentage; value16 = inputToRGBHslToRgb(r3.h, convertToPercentageBinding(r3.s), convertToPercentageBinding(r3.l)); value17 = true; r0 = 'hsl'; r5 = value17; r9 = value16; } else { r0 = value12; r5 = value12; r9 = object; } } } else { r11 = isValidCSSUnit(r3.h) && isValidCSSUnit(r3.s); r11 = r11 && isValidCSSUnit(r3.l); if (r11) { convertToPercentageBinding = convertToPercentage; value16 = inputToRGBHslToRgb(r3.h, convertToPercentageBinding(r3.s), convertToPercentageBinding(r3.l)); value17 = true; r0 = 'hsl'; r5 = value17; r9 = value16; } else { r0 = value12; r5 = value12; r9 = object; } } } else { r11 = isValidCSSUnit(r3.h) && isValidCSSUnit(r3.s); r11 = r11 && isValidCSSUnit(r3.l); if (r11) { convertToPercentageBinding = convertToPercentage; value16 = inputToRGBHslToRgb(r3.h, convertToPercentageBinding(r3.s), convertToPercentageBinding(r3.l)); value17 = true; r0 = 'hsl'; r5 = value17; r9 = value16; } else { r0 = value12; r5 = value12; r9 = object; } } } r1 = r3.hasOwnProperty('a') ? r3.a : value; r2 = r9; r4 = r0; r8 = r5; } value = environment.__proto__; const value38 = boundAlpha(r1); object = {ok: r8}; object.format = r3.format || r4; object.r = min(255, max(r2.r, 0)); object.g = min(255, max(r2.g, 0)); object.b = min(255, max(r2.b, 0)); object.a = value38; return object; } function inputToRGBHslToRgb(a0, a1, a2) { // fn#45102, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5310:2193, owner: exports_45100.inputToRGB.hslToRgb, offset: 0x01181e26, size: 188 bytes, params: 4, frame: 21 var environment; var r7; var r2; var r3; var r4; var value7; var value8; var value9; const closure = hslToRgbHue2rgb; let value = environment.__proto__.__proto__; const bound01Binding = bound01; value = bound01Binding(a0, 360); const value2 = bound01Binding(a1, 100); const value3 = bound01Binding(a2, 100); if (value2 === 0) { r2 = value3; r3 = value3; r4 = value3; } else { r7 = value3 < 0.5 ? value3 * (1 + value2) : value3 + value2 - value3 * value2; value7 = 2 * value3 - r7; value8 = closure(value7, r7, value + 0.3333333333333333); value9 = closure(value7, r7, value); value = closure(value7, r7, value - 0.3333333333333333); r2 = value; r3 = value9; r4 = value8; } return {r: 255 * r4, g: 255 * r3, b: 255 * r2}; } function hslToRgbHue2rgb(a0, a1, a2) { // fn#45103, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5310:2228, owner: exports_45100.inputToRGB.hslToRgb.hue2rgb, offset: 0x00c56f28, size: 136 bytes, params: 4, frame: 7 var r0; let value = a0; const value2 = a1; const value3 = a2; let r4 = value3 < 0 ? value3 + 1 : value3; const r3 = r4 > 1 ? r4 - 1 : r4; if (r3 < 0.16666666666666666) { value += 6 * (value2 - value) * r3; r0 = value; } else if (r3 < 0.5) { r0 = value2; } else { if (r3 < 0.6666666666666666) { value += (value2 - value) * (0.6666666666666666 - r3) * 6; r4 = value; } else { r4 = value; } r0 = r4; } return r0; }