diff --git a/src/aes.js b/src/aes.js new file mode 100644 index 0000000..61fcc00 --- /dev/null +++ b/src/aes.js @@ -0,0 +1,803 @@ +/*! MIT License. Copyright 2015-2018 Richard Moore . See LICENSE.txt. */ +(function(root) { + "use strict"; + + function checkInt(value) { + return (parseInt(value) === value); + } + + function checkInts(arrayish) { + if (!checkInt(arrayish.length)) { return false; } + + for (var i = 0; i < arrayish.length; i++) { + if (!checkInt(arrayish[i]) || arrayish[i] < 0 || arrayish[i] > 255) { + return false; + } + } + + return true; + } + + function coerceArray(arg, copy) { + + // ArrayBuffer view + if (arg.buffer && arg.name === 'Uint8Array') { + + if (copy) { + if (arg.slice) { + arg = arg.slice(); + } else { + arg = Array.prototype.slice.call(arg); + } + } + + return arg; + } + + // It's an array; check it is a valid representation of a byte + if (Array.isArray(arg)) { + if (!checkInts(arg)) { + throw new Error('Array contains invalid value: ' + arg); + } + + return new Uint8Array(arg); + } + + // Something else, but behaves like an array (maybe a Buffer? Arguments?) + if (checkInt(arg.length) && checkInts(arg)) { + return new Uint8Array(arg); + } + + throw new Error('unsupported array-like object'); + } + + function createArray(length) { + return new Uint8Array(length); + } + + function copyArray(sourceArray, targetArray, targetStart, sourceStart, sourceEnd) { + if (sourceStart != null || sourceEnd != null) { + if (sourceArray.slice) { + sourceArray = sourceArray.slice(sourceStart, sourceEnd); + } else { + sourceArray = Array.prototype.slice.call(sourceArray, sourceStart, sourceEnd); + } + } + targetArray.set(sourceArray, targetStart); + } + + + + var convertUtf8 = (function() { + function toBytes(text) { + var result = [], i = 0; + text = encodeURI(text); + while (i < text.length) { + var c = text.charCodeAt(i++); + + // if it is a % sign, encode the following 2 bytes as a hex value + if (c === 37) { + result.push(parseInt(text.substr(i, 2), 16)) + i += 2; + + // otherwise, just the actual byte + } else { + result.push(c) + } + } + + return coerceArray(result); + } + + function fromBytes(bytes) { + var result = [], i = 0; + + while (i < bytes.length) { + var c = bytes[i]; + + if (c < 128) { + result.push(String.fromCharCode(c)); + i++; + } else if (c > 191 && c < 224) { + result.push(String.fromCharCode(((c & 0x1f) << 6) | (bytes[i + 1] & 0x3f))); + i += 2; + } else { + result.push(String.fromCharCode(((c & 0x0f) << 12) | ((bytes[i + 1] & 0x3f) << 6) | (bytes[i + 2] & 0x3f))); + i += 3; + } + } + + return result.join(''); + } + + return { + toBytes: toBytes, + fromBytes: fromBytes, + } + })(); + + var convertHex = (function() { + function toBytes(text) { + var result = []; + for (var i = 0; i < text.length; i += 2) { + result.push(parseInt(text.substr(i, 2), 16)); + } + + return result; + } + + // http://ixti.net/development/javascript/2011/11/11/base64-encodedecode-of-utf8-in-browser-with-js.html + var Hex = '0123456789abcdef'; + + function fromBytes(bytes) { + var result = []; + for (var i = 0; i < bytes.length; i++) { + var v = bytes[i]; + result.push(Hex[(v & 0xf0) >> 4] + Hex[v & 0x0f]); + } + return result.join(''); + } + + return { + toBytes: toBytes, + fromBytes: fromBytes, + } + })(); + + + // Number of rounds by keysize + var numberOfRounds = {16: 10, 24: 12, 32: 14} + + // Round constant words + var rcon = [0x01, 0x02, 0x04, 0x08, 0x10, 0x20, 0x40, 0x80, 0x1b, 0x36, 0x6c, 0xd8, 0xab, 0x4d, 0x9a, 0x2f, 0x5e, 0xbc, 0x63, 0xc6, 0x97, 0x35, 0x6a, 0xd4, 0xb3, 0x7d, 0xfa, 0xef, 0xc5, 0x91]; + + // S-box and Inverse S-box (S is for Substitution) + var S = [0x63, 0x7c, 0x77, 0x7b, 0xf2, 0x6b, 0x6f, 0xc5, 0x30, 0x01, 0x67, 0x2b, 0xfe, 0xd7, 0xab, 0x76, 0xca, 0x82, 0xc9, 0x7d, 0xfa, 0x59, 0x47, 0xf0, 0xad, 0xd4, 0xa2, 0xaf, 0x9c, 0xa4, 0x72, 0xc0, 0xb7, 0xfd, 0x93, 0x26, 0x36, 0x3f, 0xf7, 0xcc, 0x34, 0xa5, 0xe5, 0xf1, 0x71, 0xd8, 0x31, 0x15, 0x04, 0xc7, 0x23, 0xc3, 0x18, 0x96, 0x05, 0x9a, 0x07, 0x12, 0x80, 0xe2, 0xeb, 0x27, 0xb2, 0x75, 0x09, 0x83, 0x2c, 0x1a, 0x1b, 0x6e, 0x5a, 0xa0, 0x52, 0x3b, 0xd6, 0xb3, 0x29, 0xe3, 0x2f, 0x84, 0x53, 0xd1, 0x00, 0xed, 0x20, 0xfc, 0xb1, 0x5b, 0x6a, 0xcb, 0xbe, 0x39, 0x4a, 0x4c, 0x58, 0xcf, 0xd0, 0xef, 0xaa, 0xfb, 0x43, 0x4d, 0x33, 0x85, 0x45, 0xf9, 0x02, 0x7f, 0x50, 0x3c, 0x9f, 0xa8, 0x51, 0xa3, 0x40, 0x8f, 0x92, 0x9d, 0x38, 0xf5, 0xbc, 0xb6, 0xda, 0x21, 0x10, 0xff, 0xf3, 0xd2, 0xcd, 0x0c, 0x13, 0xec, 0x5f, 0x97, 0x44, 0x17, 0xc4, 0xa7, 0x7e, 0x3d, 0x64, 0x5d, 0x19, 0x73, 0x60, 0x81, 0x4f, 0xdc, 0x22, 0x2a, 0x90, 0x88, 0x46, 0xee, 0xb8, 0x14, 0xde, 0x5e, 0x0b, 0xdb, 0xe0, 0x32, 0x3a, 0x0a, 0x49, 0x06, 0x24, 0x5c, 0xc2, 0xd3, 0xac, 0x62, 0x91, 0x95, 0xe4, 0x79, 0xe7, 0xc8, 0x37, 0x6d, 0x8d, 0xd5, 0x4e, 0xa9, 0x6c, 0x56, 0xf4, 0xea, 0x65, 0x7a, 0xae, 0x08, 0xba, 0x78, 0x25, 0x2e, 0x1c, 0xa6, 0xb4, 0xc6, 0xe8, 0xdd, 0x74, 0x1f, 0x4b, 0xbd, 0x8b, 0x8a, 0x70, 0x3e, 0xb5, 0x66, 0x48, 0x03, 0xf6, 0x0e, 0x61, 0x35, 0x57, 0xb9, 0x86, 0xc1, 0x1d, 0x9e, 0xe1, 0xf8, 0x98, 0x11, 0x69, 0xd9, 0x8e, 0x94, 0x9b, 0x1e, 0x87, 0xe9, 0xce, 0x55, 0x28, 0xdf, 0x8c, 0xa1, 0x89, 0x0d, 0xbf, 0xe6, 0x42, 0x68, 0x41, 0x99, 0x2d, 0x0f, 0xb0, 0x54, 0xbb, 0x16]; + var Si =[0x52, 0x09, 0x6a, 0xd5, 0x30, 0x36, 0xa5, 0x38, 0xbf, 0x40, 0xa3, 0x9e, 0x81, 0xf3, 0xd7, 0xfb, 0x7c, 0xe3, 0x39, 0x82, 0x9b, 0x2f, 0xff, 0x87, 0x34, 0x8e, 0x43, 0x44, 0xc4, 0xde, 0xe9, 0xcb, 0x54, 0x7b, 0x94, 0x32, 0xa6, 0xc2, 0x23, 0x3d, 0xee, 0x4c, 0x95, 0x0b, 0x42, 0xfa, 0xc3, 0x4e, 0x08, 0x2e, 0xa1, 0x66, 0x28, 0xd9, 0x24, 0xb2, 0x76, 0x5b, 0xa2, 0x49, 0x6d, 0x8b, 0xd1, 0x25, 0x72, 0xf8, 0xf6, 0x64, 0x86, 0x68, 0x98, 0x16, 0xd4, 0xa4, 0x5c, 0xcc, 0x5d, 0x65, 0xb6, 0x92, 0x6c, 0x70, 0x48, 0x50, 0xfd, 0xed, 0xb9, 0xda, 0x5e, 0x15, 0x46, 0x57, 0xa7, 0x8d, 0x9d, 0x84, 0x90, 0xd8, 0xab, 0x00, 0x8c, 0xbc, 0xd3, 0x0a, 0xf7, 0xe4, 0x58, 0x05, 0xb8, 0xb3, 0x45, 0x06, 0xd0, 0x2c, 0x1e, 0x8f, 0xca, 0x3f, 0x0f, 0x02, 0xc1, 0xaf, 0xbd, 0x03, 0x01, 0x13, 0x8a, 0x6b, 0x3a, 0x91, 0x11, 0x41, 0x4f, 0x67, 0xdc, 0xea, 0x97, 0xf2, 0xcf, 0xce, 0xf0, 0xb4, 0xe6, 0x73, 0x96, 0xac, 0x74, 0x22, 0xe7, 0xad, 0x35, 0x85, 0xe2, 0xf9, 0x37, 0xe8, 0x1c, 0x75, 0xdf, 0x6e, 0x47, 0xf1, 0x1a, 0x71, 0x1d, 0x29, 0xc5, 0x89, 0x6f, 0xb7, 0x62, 0x0e, 0xaa, 0x18, 0xbe, 0x1b, 0xfc, 0x56, 0x3e, 0x4b, 0xc6, 0xd2, 0x79, 0x20, 0x9a, 0xdb, 0xc0, 0xfe, 0x78, 0xcd, 0x5a, 0xf4, 0x1f, 0xdd, 0xa8, 0x33, 0x88, 0x07, 0xc7, 0x31, 0xb1, 0x12, 0x10, 0x59, 0x27, 0x80, 0xec, 0x5f, 0x60, 0x51, 0x7f, 0xa9, 0x19, 0xb5, 0x4a, 0x0d, 0x2d, 0xe5, 0x7a, 0x9f, 0x93, 0xc9, 0x9c, 0xef, 0xa0, 0xe0, 0x3b, 0x4d, 0xae, 0x2a, 0xf5, 0xb0, 0xc8, 0xeb, 0xbb, 0x3c, 0x83, 0x53, 0x99, 0x61, 0x17, 0x2b, 0x04, 0x7e, 0xba, 0x77, 0xd6, 0x26, 0xe1, 0x69, 0x14, 0x63, 0x55, 0x21, 0x0c, 0x7d]; + + // Transformations for encryption + var T1 = [0xc66363a5, 0xf87c7c84, 0xee777799, 0xf67b7b8d, 0xfff2f20d, 0xd66b6bbd, 0xde6f6fb1, 0x91c5c554, 0x60303050, 0x02010103, 0xce6767a9, 0x562b2b7d, 0xe7fefe19, 0xb5d7d762, 0x4dababe6, 0xec76769a, 0x8fcaca45, 0x1f82829d, 0x89c9c940, 0xfa7d7d87, 0xeffafa15, 0xb25959eb, 0x8e4747c9, 0xfbf0f00b, 0x41adadec, 0xb3d4d467, 0x5fa2a2fd, 0x45afafea, 0x239c9cbf, 0x53a4a4f7, 0xe4727296, 0x9bc0c05b, 0x75b7b7c2, 0xe1fdfd1c, 0x3d9393ae, 0x4c26266a, 0x6c36365a, 0x7e3f3f41, 0xf5f7f702, 0x83cccc4f, 0x6834345c, 0x51a5a5f4, 0xd1e5e534, 0xf9f1f108, 0xe2717193, 0xabd8d873, 0x62313153, 0x2a15153f, 0x0804040c, 0x95c7c752, 0x46232365, 0x9dc3c35e, 0x30181828, 0x379696a1, 0x0a05050f, 0x2f9a9ab5, 0x0e070709, 0x24121236, 0x1b80809b, 0xdfe2e23d, 0xcdebeb26, 0x4e272769, 0x7fb2b2cd, 0xea75759f, 0x1209091b, 0x1d83839e, 0x582c2c74, 0x341a1a2e, 0x361b1b2d, 0xdc6e6eb2, 0xb45a5aee, 0x5ba0a0fb, 0xa45252f6, 0x763b3b4d, 0xb7d6d661, 0x7db3b3ce, 0x5229297b, 0xdde3e33e, 0x5e2f2f71, 0x13848497, 0xa65353f5, 0xb9d1d168, 0x00000000, 0xc1eded2c, 0x40202060, 0xe3fcfc1f, 0x79b1b1c8, 0xb65b5bed, 0xd46a6abe, 0x8dcbcb46, 0x67bebed9, 0x7239394b, 0x944a4ade, 0x984c4cd4, 0xb05858e8, 0x85cfcf4a, 0xbbd0d06b, 0xc5efef2a, 0x4faaaae5, 0xedfbfb16, 0x864343c5, 0x9a4d4dd7, 0x66333355, 0x11858594, 0x8a4545cf, 0xe9f9f910, 0x04020206, 0xfe7f7f81, 0xa05050f0, 0x783c3c44, 0x259f9fba, 0x4ba8a8e3, 0xa25151f3, 0x5da3a3fe, 0x804040c0, 0x058f8f8a, 0x3f9292ad, 0x219d9dbc, 0x70383848, 0xf1f5f504, 0x63bcbcdf, 0x77b6b6c1, 0xafdada75, 0x42212163, 0x20101030, 0xe5ffff1a, 0xfdf3f30e, 0xbfd2d26d, 0x81cdcd4c, 0x180c0c14, 0x26131335, 0xc3ecec2f, 0xbe5f5fe1, 0x359797a2, 0x884444cc, 0x2e171739, 0x93c4c457, 0x55a7a7f2, 0xfc7e7e82, 0x7a3d3d47, 0xc86464ac, 0xba5d5de7, 0x3219192b, 0xe6737395, 0xc06060a0, 0x19818198, 0x9e4f4fd1, 0xa3dcdc7f, 0x44222266, 0x542a2a7e, 0x3b9090ab, 0x0b888883, 0x8c4646ca, 0xc7eeee29, 0x6bb8b8d3, 0x2814143c, 0xa7dede79, 0xbc5e5ee2, 0x160b0b1d, 0xaddbdb76, 0xdbe0e03b, 0x64323256, 0x743a3a4e, 0x140a0a1e, 0x924949db, 0x0c06060a, 0x4824246c, 0xb85c5ce4, 0x9fc2c25d, 0xbdd3d36e, 0x43acacef, 0xc46262a6, 0x399191a8, 0x319595a4, 0xd3e4e437, 0xf279798b, 0xd5e7e732, 0x8bc8c843, 0x6e373759, 0xda6d6db7, 0x018d8d8c, 0xb1d5d564, 0x9c4e4ed2, 0x49a9a9e0, 0xd86c6cb4, 0xac5656fa, 0xf3f4f407, 0xcfeaea25, 0xca6565af, 0xf47a7a8e, 0x47aeaee9, 0x10080818, 0x6fbabad5, 0xf0787888, 0x4a25256f, 0x5c2e2e72, 0x381c1c24, 0x57a6a6f1, 0x73b4b4c7, 0x97c6c651, 0xcbe8e823, 0xa1dddd7c, 0xe874749c, 0x3e1f1f21, 0x964b4bdd, 0x61bdbddc, 0x0d8b8b86, 0x0f8a8a85, 0xe0707090, 0x7c3e3e42, 0x71b5b5c4, 0xcc6666aa, 0x904848d8, 0x06030305, 0xf7f6f601, 0x1c0e0e12, 0xc26161a3, 0x6a35355f, 0xae5757f9, 0x69b9b9d0, 0x17868691, 0x99c1c158, 0x3a1d1d27, 0x279e9eb9, 0xd9e1e138, 0xebf8f813, 0x2b9898b3, 0x22111133, 0xd26969bb, 0xa9d9d970, 0x078e8e89, 0x339494a7, 0x2d9b9bb6, 0x3c1e1e22, 0x15878792, 0xc9e9e920, 0x87cece49, 0xaa5555ff, 0x50282878, 0xa5dfdf7a, 0x038c8c8f, 0x59a1a1f8, 0x09898980, 0x1a0d0d17, 0x65bfbfda, 0xd7e6e631, 0x844242c6, 0xd06868b8, 0x824141c3, 0x299999b0, 0x5a2d2d77, 0x1e0f0f11, 0x7bb0b0cb, 0xa85454fc, 0x6dbbbbd6, 0x2c16163a]; + var T2 = [0xa5c66363, 0x84f87c7c, 0x99ee7777, 0x8df67b7b, 0x0dfff2f2, 0xbdd66b6b, 0xb1de6f6f, 0x5491c5c5, 0x50603030, 0x03020101, 0xa9ce6767, 0x7d562b2b, 0x19e7fefe, 0x62b5d7d7, 0xe64dabab, 0x9aec7676, 0x458fcaca, 0x9d1f8282, 0x4089c9c9, 0x87fa7d7d, 0x15effafa, 0xebb25959, 0xc98e4747, 0x0bfbf0f0, 0xec41adad, 0x67b3d4d4, 0xfd5fa2a2, 0xea45afaf, 0xbf239c9c, 0xf753a4a4, 0x96e47272, 0x5b9bc0c0, 0xc275b7b7, 0x1ce1fdfd, 0xae3d9393, 0x6a4c2626, 0x5a6c3636, 0x417e3f3f, 0x02f5f7f7, 0x4f83cccc, 0x5c683434, 0xf451a5a5, 0x34d1e5e5, 0x08f9f1f1, 0x93e27171, 0x73abd8d8, 0x53623131, 0x3f2a1515, 0x0c080404, 0x5295c7c7, 0x65462323, 0x5e9dc3c3, 0x28301818, 0xa1379696, 0x0f0a0505, 0xb52f9a9a, 0x090e0707, 0x36241212, 0x9b1b8080, 0x3ddfe2e2, 0x26cdebeb, 0x694e2727, 0xcd7fb2b2, 0x9fea7575, 0x1b120909, 0x9e1d8383, 0x74582c2c, 0x2e341a1a, 0x2d361b1b, 0xb2dc6e6e, 0xeeb45a5a, 0xfb5ba0a0, 0xf6a45252, 0x4d763b3b, 0x61b7d6d6, 0xce7db3b3, 0x7b522929, 0x3edde3e3, 0x715e2f2f, 0x97138484, 0xf5a65353, 0x68b9d1d1, 0x00000000, 0x2cc1eded, 0x60402020, 0x1fe3fcfc, 0xc879b1b1, 0xedb65b5b, 0xbed46a6a, 0x468dcbcb, 0xd967bebe, 0x4b723939, 0xde944a4a, 0xd4984c4c, 0xe8b05858, 0x4a85cfcf, 0x6bbbd0d0, 0x2ac5efef, 0xe54faaaa, 0x16edfbfb, 0xc5864343, 0xd79a4d4d, 0x55663333, 0x94118585, 0xcf8a4545, 0x10e9f9f9, 0x06040202, 0x81fe7f7f, 0xf0a05050, 0x44783c3c, 0xba259f9f, 0xe34ba8a8, 0xf3a25151, 0xfe5da3a3, 0xc0804040, 0x8a058f8f, 0xad3f9292, 0xbc219d9d, 0x48703838, 0x04f1f5f5, 0xdf63bcbc, 0xc177b6b6, 0x75afdada, 0x63422121, 0x30201010, 0x1ae5ffff, 0x0efdf3f3, 0x6dbfd2d2, 0x4c81cdcd, 0x14180c0c, 0x35261313, 0x2fc3ecec, 0xe1be5f5f, 0xa2359797, 0xcc884444, 0x392e1717, 0x5793c4c4, 0xf255a7a7, 0x82fc7e7e, 0x477a3d3d, 0xacc86464, 0xe7ba5d5d, 0x2b321919, 0x95e67373, 0xa0c06060, 0x98198181, 0xd19e4f4f, 0x7fa3dcdc, 0x66442222, 0x7e542a2a, 0xab3b9090, 0x830b8888, 0xca8c4646, 0x29c7eeee, 0xd36bb8b8, 0x3c281414, 0x79a7dede, 0xe2bc5e5e, 0x1d160b0b, 0x76addbdb, 0x3bdbe0e0, 0x56643232, 0x4e743a3a, 0x1e140a0a, 0xdb924949, 0x0a0c0606, 0x6c482424, 0xe4b85c5c, 0x5d9fc2c2, 0x6ebdd3d3, 0xef43acac, 0xa6c46262, 0xa8399191, 0xa4319595, 0x37d3e4e4, 0x8bf27979, 0x32d5e7e7, 0x438bc8c8, 0x596e3737, 0xb7da6d6d, 0x8c018d8d, 0x64b1d5d5, 0xd29c4e4e, 0xe049a9a9, 0xb4d86c6c, 0xfaac5656, 0x07f3f4f4, 0x25cfeaea, 0xafca6565, 0x8ef47a7a, 0xe947aeae, 0x18100808, 0xd56fbaba, 0x88f07878, 0x6f4a2525, 0x725c2e2e, 0x24381c1c, 0xf157a6a6, 0xc773b4b4, 0x5197c6c6, 0x23cbe8e8, 0x7ca1dddd, 0x9ce87474, 0x213e1f1f, 0xdd964b4b, 0xdc61bdbd, 0x860d8b8b, 0x850f8a8a, 0x90e07070, 0x427c3e3e, 0xc471b5b5, 0xaacc6666, 0xd8904848, 0x05060303, 0x01f7f6f6, 0x121c0e0e, 0xa3c26161, 0x5f6a3535, 0xf9ae5757, 0xd069b9b9, 0x91178686, 0x5899c1c1, 0x273a1d1d, 0xb9279e9e, 0x38d9e1e1, 0x13ebf8f8, 0xb32b9898, 0x33221111, 0xbbd26969, 0x70a9d9d9, 0x89078e8e, 0xa7339494, 0xb62d9b9b, 0x223c1e1e, 0x92158787, 0x20c9e9e9, 0x4987cece, 0xffaa5555, 0x78502828, 0x7aa5dfdf, 0x8f038c8c, 0xf859a1a1, 0x80098989, 0x171a0d0d, 0xda65bfbf, 0x31d7e6e6, 0xc6844242, 0xb8d06868, 0xc3824141, 0xb0299999, 0x775a2d2d, 0x111e0f0f, 0xcb7bb0b0, 0xfca85454, 0xd66dbbbb, 0x3a2c1616]; + var T3 = [0x63a5c663, 0x7c84f87c, 0x7799ee77, 0x7b8df67b, 0xf20dfff2, 0x6bbdd66b, 0x6fb1de6f, 0xc55491c5, 0x30506030, 0x01030201, 0x67a9ce67, 0x2b7d562b, 0xfe19e7fe, 0xd762b5d7, 0xabe64dab, 0x769aec76, 0xca458fca, 0x829d1f82, 0xc94089c9, 0x7d87fa7d, 0xfa15effa, 0x59ebb259, 0x47c98e47, 0xf00bfbf0, 0xadec41ad, 0xd467b3d4, 0xa2fd5fa2, 0xafea45af, 0x9cbf239c, 0xa4f753a4, 0x7296e472, 0xc05b9bc0, 0xb7c275b7, 0xfd1ce1fd, 0x93ae3d93, 0x266a4c26, 0x365a6c36, 0x3f417e3f, 0xf702f5f7, 0xcc4f83cc, 0x345c6834, 0xa5f451a5, 0xe534d1e5, 0xf108f9f1, 0x7193e271, 0xd873abd8, 0x31536231, 0x153f2a15, 0x040c0804, 0xc75295c7, 0x23654623, 0xc35e9dc3, 0x18283018, 0x96a13796, 0x050f0a05, 0x9ab52f9a, 0x07090e07, 0x12362412, 0x809b1b80, 0xe23ddfe2, 0xeb26cdeb, 0x27694e27, 0xb2cd7fb2, 0x759fea75, 0x091b1209, 0x839e1d83, 0x2c74582c, 0x1a2e341a, 0x1b2d361b, 0x6eb2dc6e, 0x5aeeb45a, 0xa0fb5ba0, 0x52f6a452, 0x3b4d763b, 0xd661b7d6, 0xb3ce7db3, 0x297b5229, 0xe33edde3, 0x2f715e2f, 0x84971384, 0x53f5a653, 0xd168b9d1, 0x00000000, 0xed2cc1ed, 0x20604020, 0xfc1fe3fc, 0xb1c879b1, 0x5bedb65b, 0x6abed46a, 0xcb468dcb, 0xbed967be, 0x394b7239, 0x4ade944a, 0x4cd4984c, 0x58e8b058, 0xcf4a85cf, 0xd06bbbd0, 0xef2ac5ef, 0xaae54faa, 0xfb16edfb, 0x43c58643, 0x4dd79a4d, 0x33556633, 0x85941185, 0x45cf8a45, 0xf910e9f9, 0x02060402, 0x7f81fe7f, 0x50f0a050, 0x3c44783c, 0x9fba259f, 0xa8e34ba8, 0x51f3a251, 0xa3fe5da3, 0x40c08040, 0x8f8a058f, 0x92ad3f92, 0x9dbc219d, 0x38487038, 0xf504f1f5, 0xbcdf63bc, 0xb6c177b6, 0xda75afda, 0x21634221, 0x10302010, 0xff1ae5ff, 0xf30efdf3, 0xd26dbfd2, 0xcd4c81cd, 0x0c14180c, 0x13352613, 0xec2fc3ec, 0x5fe1be5f, 0x97a23597, 0x44cc8844, 0x17392e17, 0xc45793c4, 0xa7f255a7, 0x7e82fc7e, 0x3d477a3d, 0x64acc864, 0x5de7ba5d, 0x192b3219, 0x7395e673, 0x60a0c060, 0x81981981, 0x4fd19e4f, 0xdc7fa3dc, 0x22664422, 0x2a7e542a, 0x90ab3b90, 0x88830b88, 0x46ca8c46, 0xee29c7ee, 0xb8d36bb8, 0x143c2814, 0xde79a7de, 0x5ee2bc5e, 0x0b1d160b, 0xdb76addb, 0xe03bdbe0, 0x32566432, 0x3a4e743a, 0x0a1e140a, 0x49db9249, 0x060a0c06, 0x246c4824, 0x5ce4b85c, 0xc25d9fc2, 0xd36ebdd3, 0xacef43ac, 0x62a6c462, 0x91a83991, 0x95a43195, 0xe437d3e4, 0x798bf279, 0xe732d5e7, 0xc8438bc8, 0x37596e37, 0x6db7da6d, 0x8d8c018d, 0xd564b1d5, 0x4ed29c4e, 0xa9e049a9, 0x6cb4d86c, 0x56faac56, 0xf407f3f4, 0xea25cfea, 0x65afca65, 0x7a8ef47a, 0xaee947ae, 0x08181008, 0xbad56fba, 0x7888f078, 0x256f4a25, 0x2e725c2e, 0x1c24381c, 0xa6f157a6, 0xb4c773b4, 0xc65197c6, 0xe823cbe8, 0xdd7ca1dd, 0x749ce874, 0x1f213e1f, 0x4bdd964b, 0xbddc61bd, 0x8b860d8b, 0x8a850f8a, 0x7090e070, 0x3e427c3e, 0xb5c471b5, 0x66aacc66, 0x48d89048, 0x03050603, 0xf601f7f6, 0x0e121c0e, 0x61a3c261, 0x355f6a35, 0x57f9ae57, 0xb9d069b9, 0x86911786, 0xc15899c1, 0x1d273a1d, 0x9eb9279e, 0xe138d9e1, 0xf813ebf8, 0x98b32b98, 0x11332211, 0x69bbd269, 0xd970a9d9, 0x8e89078e, 0x94a73394, 0x9bb62d9b, 0x1e223c1e, 0x87921587, 0xe920c9e9, 0xce4987ce, 0x55ffaa55, 0x28785028, 0xdf7aa5df, 0x8c8f038c, 0xa1f859a1, 0x89800989, 0x0d171a0d, 0xbfda65bf, 0xe631d7e6, 0x42c68442, 0x68b8d068, 0x41c38241, 0x99b02999, 0x2d775a2d, 0x0f111e0f, 0xb0cb7bb0, 0x54fca854, 0xbbd66dbb, 0x163a2c16]; + var T4 = [0x6363a5c6, 0x7c7c84f8, 0x777799ee, 0x7b7b8df6, 0xf2f20dff, 0x6b6bbdd6, 0x6f6fb1de, 0xc5c55491, 0x30305060, 0x01010302, 0x6767a9ce, 0x2b2b7d56, 0xfefe19e7, 0xd7d762b5, 0xababe64d, 0x76769aec, 0xcaca458f, 0x82829d1f, 0xc9c94089, 0x7d7d87fa, 0xfafa15ef, 0x5959ebb2, 0x4747c98e, 0xf0f00bfb, 0xadadec41, 0xd4d467b3, 0xa2a2fd5f, 0xafafea45, 0x9c9cbf23, 0xa4a4f753, 0x727296e4, 0xc0c05b9b, 0xb7b7c275, 0xfdfd1ce1, 0x9393ae3d, 0x26266a4c, 0x36365a6c, 0x3f3f417e, 0xf7f702f5, 0xcccc4f83, 0x34345c68, 0xa5a5f451, 0xe5e534d1, 0xf1f108f9, 0x717193e2, 0xd8d873ab, 0x31315362, 0x15153f2a, 0x04040c08, 0xc7c75295, 0x23236546, 0xc3c35e9d, 0x18182830, 0x9696a137, 0x05050f0a, 0x9a9ab52f, 0x0707090e, 0x12123624, 0x80809b1b, 0xe2e23ddf, 0xebeb26cd, 0x2727694e, 0xb2b2cd7f, 0x75759fea, 0x09091b12, 0x83839e1d, 0x2c2c7458, 0x1a1a2e34, 0x1b1b2d36, 0x6e6eb2dc, 0x5a5aeeb4, 0xa0a0fb5b, 0x5252f6a4, 0x3b3b4d76, 0xd6d661b7, 0xb3b3ce7d, 0x29297b52, 0xe3e33edd, 0x2f2f715e, 0x84849713, 0x5353f5a6, 0xd1d168b9, 0x00000000, 0xeded2cc1, 0x20206040, 0xfcfc1fe3, 0xb1b1c879, 0x5b5bedb6, 0x6a6abed4, 0xcbcb468d, 0xbebed967, 0x39394b72, 0x4a4ade94, 0x4c4cd498, 0x5858e8b0, 0xcfcf4a85, 0xd0d06bbb, 0xefef2ac5, 0xaaaae54f, 0xfbfb16ed, 0x4343c586, 0x4d4dd79a, 0x33335566, 0x85859411, 0x4545cf8a, 0xf9f910e9, 0x02020604, 0x7f7f81fe, 0x5050f0a0, 0x3c3c4478, 0x9f9fba25, 0xa8a8e34b, 0x5151f3a2, 0xa3a3fe5d, 0x4040c080, 0x8f8f8a05, 0x9292ad3f, 0x9d9dbc21, 0x38384870, 0xf5f504f1, 0xbcbcdf63, 0xb6b6c177, 0xdada75af, 0x21216342, 0x10103020, 0xffff1ae5, 0xf3f30efd, 0xd2d26dbf, 0xcdcd4c81, 0x0c0c1418, 0x13133526, 0xecec2fc3, 0x5f5fe1be, 0x9797a235, 0x4444cc88, 0x1717392e, 0xc4c45793, 0xa7a7f255, 0x7e7e82fc, 0x3d3d477a, 0x6464acc8, 0x5d5de7ba, 0x19192b32, 0x737395e6, 0x6060a0c0, 0x81819819, 0x4f4fd19e, 0xdcdc7fa3, 0x22226644, 0x2a2a7e54, 0x9090ab3b, 0x8888830b, 0x4646ca8c, 0xeeee29c7, 0xb8b8d36b, 0x14143c28, 0xdede79a7, 0x5e5ee2bc, 0x0b0b1d16, 0xdbdb76ad, 0xe0e03bdb, 0x32325664, 0x3a3a4e74, 0x0a0a1e14, 0x4949db92, 0x06060a0c, 0x24246c48, 0x5c5ce4b8, 0xc2c25d9f, 0xd3d36ebd, 0xacacef43, 0x6262a6c4, 0x9191a839, 0x9595a431, 0xe4e437d3, 0x79798bf2, 0xe7e732d5, 0xc8c8438b, 0x3737596e, 0x6d6db7da, 0x8d8d8c01, 0xd5d564b1, 0x4e4ed29c, 0xa9a9e049, 0x6c6cb4d8, 0x5656faac, 0xf4f407f3, 0xeaea25cf, 0x6565afca, 0x7a7a8ef4, 0xaeaee947, 0x08081810, 0xbabad56f, 0x787888f0, 0x25256f4a, 0x2e2e725c, 0x1c1c2438, 0xa6a6f157, 0xb4b4c773, 0xc6c65197, 0xe8e823cb, 0xdddd7ca1, 0x74749ce8, 0x1f1f213e, 0x4b4bdd96, 0xbdbddc61, 0x8b8b860d, 0x8a8a850f, 0x707090e0, 0x3e3e427c, 0xb5b5c471, 0x6666aacc, 0x4848d890, 0x03030506, 0xf6f601f7, 0x0e0e121c, 0x6161a3c2, 0x35355f6a, 0x5757f9ae, 0xb9b9d069, 0x86869117, 0xc1c15899, 0x1d1d273a, 0x9e9eb927, 0xe1e138d9, 0xf8f813eb, 0x9898b32b, 0x11113322, 0x6969bbd2, 0xd9d970a9, 0x8e8e8907, 0x9494a733, 0x9b9bb62d, 0x1e1e223c, 0x87879215, 0xe9e920c9, 0xcece4987, 0x5555ffaa, 0x28287850, 0xdfdf7aa5, 0x8c8c8f03, 0xa1a1f859, 0x89898009, 0x0d0d171a, 0xbfbfda65, 0xe6e631d7, 0x4242c684, 0x6868b8d0, 0x4141c382, 0x9999b029, 0x2d2d775a, 0x0f0f111e, 0xb0b0cb7b, 0x5454fca8, 0xbbbbd66d, 0x16163a2c]; + + // Transformations for decryption + var T5 = [0x51f4a750, 0x7e416553, 0x1a17a4c3, 0x3a275e96, 0x3bab6bcb, 0x1f9d45f1, 0xacfa58ab, 0x4be30393, 0x2030fa55, 0xad766df6, 0x88cc7691, 0xf5024c25, 0x4fe5d7fc, 0xc52acbd7, 0x26354480, 0xb562a38f, 0xdeb15a49, 0x25ba1b67, 0x45ea0e98, 0x5dfec0e1, 0xc32f7502, 0x814cf012, 0x8d4697a3, 0x6bd3f9c6, 0x038f5fe7, 0x15929c95, 0xbf6d7aeb, 0x955259da, 0xd4be832d, 0x587421d3, 0x49e06929, 0x8ec9c844, 0x75c2896a, 0xf48e7978, 0x99583e6b, 0x27b971dd, 0xbee14fb6, 0xf088ad17, 0xc920ac66, 0x7dce3ab4, 0x63df4a18, 0xe51a3182, 0x97513360, 0x62537f45, 0xb16477e0, 0xbb6bae84, 0xfe81a01c, 0xf9082b94, 0x70486858, 0x8f45fd19, 0x94de6c87, 0x527bf8b7, 0xab73d323, 0x724b02e2, 0xe31f8f57, 0x6655ab2a, 0xb2eb2807, 0x2fb5c203, 0x86c57b9a, 0xd33708a5, 0x302887f2, 0x23bfa5b2, 0x02036aba, 0xed16825c, 0x8acf1c2b, 0xa779b492, 0xf307f2f0, 0x4e69e2a1, 0x65daf4cd, 0x0605bed5, 0xd134621f, 0xc4a6fe8a, 0x342e539d, 0xa2f355a0, 0x058ae132, 0xa4f6eb75, 0x0b83ec39, 0x4060efaa, 0x5e719f06, 0xbd6e1051, 0x3e218af9, 0x96dd063d, 0xdd3e05ae, 0x4de6bd46, 0x91548db5, 0x71c45d05, 0x0406d46f, 0x605015ff, 0x1998fb24, 0xd6bde997, 0x894043cc, 0x67d99e77, 0xb0e842bd, 0x07898b88, 0xe7195b38, 0x79c8eedb, 0xa17c0a47, 0x7c420fe9, 0xf8841ec9, 0x00000000, 0x09808683, 0x322bed48, 0x1e1170ac, 0x6c5a724e, 0xfd0efffb, 0x0f853856, 0x3daed51e, 0x362d3927, 0x0a0fd964, 0x685ca621, 0x9b5b54d1, 0x24362e3a, 0x0c0a67b1, 0x9357e70f, 0xb4ee96d2, 0x1b9b919e, 0x80c0c54f, 0x61dc20a2, 0x5a774b69, 0x1c121a16, 0xe293ba0a, 0xc0a02ae5, 0x3c22e043, 0x121b171d, 0x0e090d0b, 0xf28bc7ad, 0x2db6a8b9, 0x141ea9c8, 0x57f11985, 0xaf75074c, 0xee99ddbb, 0xa37f60fd, 0xf701269f, 0x5c72f5bc, 0x44663bc5, 0x5bfb7e34, 0x8b432976, 0xcb23c6dc, 0xb6edfc68, 0xb8e4f163, 0xd731dcca, 0x42638510, 0x13972240, 0x84c61120, 0x854a247d, 0xd2bb3df8, 0xaef93211, 0xc729a16d, 0x1d9e2f4b, 0xdcb230f3, 0x0d8652ec, 0x77c1e3d0, 0x2bb3166c, 0xa970b999, 0x119448fa, 0x47e96422, 0xa8fc8cc4, 0xa0f03f1a, 0x567d2cd8, 0x223390ef, 0x87494ec7, 0xd938d1c1, 0x8ccaa2fe, 0x98d40b36, 0xa6f581cf, 0xa57ade28, 0xdab78e26, 0x3fadbfa4, 0x2c3a9de4, 0x5078920d, 0x6a5fcc9b, 0x547e4662, 0xf68d13c2, 0x90d8b8e8, 0x2e39f75e, 0x82c3aff5, 0x9f5d80be, 0x69d0937c, 0x6fd52da9, 0xcf2512b3, 0xc8ac993b, 0x10187da7, 0xe89c636e, 0xdb3bbb7b, 0xcd267809, 0x6e5918f4, 0xec9ab701, 0x834f9aa8, 0xe6956e65, 0xaaffe67e, 0x21bccf08, 0xef15e8e6, 0xbae79bd9, 0x4a6f36ce, 0xea9f09d4, 0x29b07cd6, 0x31a4b2af, 0x2a3f2331, 0xc6a59430, 0x35a266c0, 0x744ebc37, 0xfc82caa6, 0xe090d0b0, 0x33a7d815, 0xf104984a, 0x41ecdaf7, 0x7fcd500e, 0x1791f62f, 0x764dd68d, 0x43efb04d, 0xccaa4d54, 0xe49604df, 0x9ed1b5e3, 0x4c6a881b, 0xc12c1fb8, 0x4665517f, 0x9d5eea04, 0x018c355d, 0xfa877473, 0xfb0b412e, 0xb3671d5a, 0x92dbd252, 0xe9105633, 0x6dd64713, 0x9ad7618c, 0x37a10c7a, 0x59f8148e, 0xeb133c89, 0xcea927ee, 0xb761c935, 0xe11ce5ed, 0x7a47b13c, 0x9cd2df59, 0x55f2733f, 0x1814ce79, 0x73c737bf, 0x53f7cdea, 0x5ffdaa5b, 0xdf3d6f14, 0x7844db86, 0xcaaff381, 0xb968c43e, 0x3824342c, 0xc2a3405f, 0x161dc372, 0xbce2250c, 0x283c498b, 0xff0d9541, 0x39a80171, 0x080cb3de, 0xd8b4e49c, 0x6456c190, 0x7bcb8461, 0xd532b670, 0x486c5c74, 0xd0b85742]; + var T6 = [0x5051f4a7, 0x537e4165, 0xc31a17a4, 0x963a275e, 0xcb3bab6b, 0xf11f9d45, 0xabacfa58, 0x934be303, 0x552030fa, 0xf6ad766d, 0x9188cc76, 0x25f5024c, 0xfc4fe5d7, 0xd7c52acb, 0x80263544, 0x8fb562a3, 0x49deb15a, 0x6725ba1b, 0x9845ea0e, 0xe15dfec0, 0x02c32f75, 0x12814cf0, 0xa38d4697, 0xc66bd3f9, 0xe7038f5f, 0x9515929c, 0xebbf6d7a, 0xda955259, 0x2dd4be83, 0xd3587421, 0x2949e069, 0x448ec9c8, 0x6a75c289, 0x78f48e79, 0x6b99583e, 0xdd27b971, 0xb6bee14f, 0x17f088ad, 0x66c920ac, 0xb47dce3a, 0x1863df4a, 0x82e51a31, 0x60975133, 0x4562537f, 0xe0b16477, 0x84bb6bae, 0x1cfe81a0, 0x94f9082b, 0x58704868, 0x198f45fd, 0x8794de6c, 0xb7527bf8, 0x23ab73d3, 0xe2724b02, 0x57e31f8f, 0x2a6655ab, 0x07b2eb28, 0x032fb5c2, 0x9a86c57b, 0xa5d33708, 0xf2302887, 0xb223bfa5, 0xba02036a, 0x5ced1682, 0x2b8acf1c, 0x92a779b4, 0xf0f307f2, 0xa14e69e2, 0xcd65daf4, 0xd50605be, 0x1fd13462, 0x8ac4a6fe, 0x9d342e53, 0xa0a2f355, 0x32058ae1, 0x75a4f6eb, 0x390b83ec, 0xaa4060ef, 0x065e719f, 0x51bd6e10, 0xf93e218a, 0x3d96dd06, 0xaedd3e05, 0x464de6bd, 0xb591548d, 0x0571c45d, 0x6f0406d4, 0xff605015, 0x241998fb, 0x97d6bde9, 0xcc894043, 0x7767d99e, 0xbdb0e842, 0x8807898b, 0x38e7195b, 0xdb79c8ee, 0x47a17c0a, 0xe97c420f, 0xc9f8841e, 0x00000000, 0x83098086, 0x48322bed, 0xac1e1170, 0x4e6c5a72, 0xfbfd0eff, 0x560f8538, 0x1e3daed5, 0x27362d39, 0x640a0fd9, 0x21685ca6, 0xd19b5b54, 0x3a24362e, 0xb10c0a67, 0x0f9357e7, 0xd2b4ee96, 0x9e1b9b91, 0x4f80c0c5, 0xa261dc20, 0x695a774b, 0x161c121a, 0x0ae293ba, 0xe5c0a02a, 0x433c22e0, 0x1d121b17, 0x0b0e090d, 0xadf28bc7, 0xb92db6a8, 0xc8141ea9, 0x8557f119, 0x4caf7507, 0xbbee99dd, 0xfda37f60, 0x9ff70126, 0xbc5c72f5, 0xc544663b, 0x345bfb7e, 0x768b4329, 0xdccb23c6, 0x68b6edfc, 0x63b8e4f1, 0xcad731dc, 0x10426385, 0x40139722, 0x2084c611, 0x7d854a24, 0xf8d2bb3d, 0x11aef932, 0x6dc729a1, 0x4b1d9e2f, 0xf3dcb230, 0xec0d8652, 0xd077c1e3, 0x6c2bb316, 0x99a970b9, 0xfa119448, 0x2247e964, 0xc4a8fc8c, 0x1aa0f03f, 0xd8567d2c, 0xef223390, 0xc787494e, 0xc1d938d1, 0xfe8ccaa2, 0x3698d40b, 0xcfa6f581, 0x28a57ade, 0x26dab78e, 0xa43fadbf, 0xe42c3a9d, 0x0d507892, 0x9b6a5fcc, 0x62547e46, 0xc2f68d13, 0xe890d8b8, 0x5e2e39f7, 0xf582c3af, 0xbe9f5d80, 0x7c69d093, 0xa96fd52d, 0xb3cf2512, 0x3bc8ac99, 0xa710187d, 0x6ee89c63, 0x7bdb3bbb, 0x09cd2678, 0xf46e5918, 0x01ec9ab7, 0xa8834f9a, 0x65e6956e, 0x7eaaffe6, 0x0821bccf, 0xe6ef15e8, 0xd9bae79b, 0xce4a6f36, 0xd4ea9f09, 0xd629b07c, 0xaf31a4b2, 0x312a3f23, 0x30c6a594, 0xc035a266, 0x37744ebc, 0xa6fc82ca, 0xb0e090d0, 0x1533a7d8, 0x4af10498, 0xf741ecda, 0x0e7fcd50, 0x2f1791f6, 0x8d764dd6, 0x4d43efb0, 0x54ccaa4d, 0xdfe49604, 0xe39ed1b5, 0x1b4c6a88, 0xb8c12c1f, 0x7f466551, 0x049d5eea, 0x5d018c35, 0x73fa8774, 0x2efb0b41, 0x5ab3671d, 0x5292dbd2, 0x33e91056, 0x136dd647, 0x8c9ad761, 0x7a37a10c, 0x8e59f814, 0x89eb133c, 0xeecea927, 0x35b761c9, 0xede11ce5, 0x3c7a47b1, 0x599cd2df, 0x3f55f273, 0x791814ce, 0xbf73c737, 0xea53f7cd, 0x5b5ffdaa, 0x14df3d6f, 0x867844db, 0x81caaff3, 0x3eb968c4, 0x2c382434, 0x5fc2a340, 0x72161dc3, 0x0cbce225, 0x8b283c49, 0x41ff0d95, 0x7139a801, 0xde080cb3, 0x9cd8b4e4, 0x906456c1, 0x617bcb84, 0x70d532b6, 0x74486c5c, 0x42d0b857]; + var T7 = [0xa75051f4, 0x65537e41, 0xa4c31a17, 0x5e963a27, 0x6bcb3bab, 0x45f11f9d, 0x58abacfa, 0x03934be3, 0xfa552030, 0x6df6ad76, 0x769188cc, 0x4c25f502, 0xd7fc4fe5, 0xcbd7c52a, 0x44802635, 0xa38fb562, 0x5a49deb1, 0x1b6725ba, 0x0e9845ea, 0xc0e15dfe, 0x7502c32f, 0xf012814c, 0x97a38d46, 0xf9c66bd3, 0x5fe7038f, 0x9c951592, 0x7aebbf6d, 0x59da9552, 0x832dd4be, 0x21d35874, 0x692949e0, 0xc8448ec9, 0x896a75c2, 0x7978f48e, 0x3e6b9958, 0x71dd27b9, 0x4fb6bee1, 0xad17f088, 0xac66c920, 0x3ab47dce, 0x4a1863df, 0x3182e51a, 0x33609751, 0x7f456253, 0x77e0b164, 0xae84bb6b, 0xa01cfe81, 0x2b94f908, 0x68587048, 0xfd198f45, 0x6c8794de, 0xf8b7527b, 0xd323ab73, 0x02e2724b, 0x8f57e31f, 0xab2a6655, 0x2807b2eb, 0xc2032fb5, 0x7b9a86c5, 0x08a5d337, 0x87f23028, 0xa5b223bf, 0x6aba0203, 0x825ced16, 0x1c2b8acf, 0xb492a779, 0xf2f0f307, 0xe2a14e69, 0xf4cd65da, 0xbed50605, 0x621fd134, 0xfe8ac4a6, 0x539d342e, 0x55a0a2f3, 0xe132058a, 0xeb75a4f6, 0xec390b83, 0xefaa4060, 0x9f065e71, 0x1051bd6e, 0x8af93e21, 0x063d96dd, 0x05aedd3e, 0xbd464de6, 0x8db59154, 0x5d0571c4, 0xd46f0406, 0x15ff6050, 0xfb241998, 0xe997d6bd, 0x43cc8940, 0x9e7767d9, 0x42bdb0e8, 0x8b880789, 0x5b38e719, 0xeedb79c8, 0x0a47a17c, 0x0fe97c42, 0x1ec9f884, 0x00000000, 0x86830980, 0xed48322b, 0x70ac1e11, 0x724e6c5a, 0xfffbfd0e, 0x38560f85, 0xd51e3dae, 0x3927362d, 0xd9640a0f, 0xa621685c, 0x54d19b5b, 0x2e3a2436, 0x67b10c0a, 0xe70f9357, 0x96d2b4ee, 0x919e1b9b, 0xc54f80c0, 0x20a261dc, 0x4b695a77, 0x1a161c12, 0xba0ae293, 0x2ae5c0a0, 0xe0433c22, 0x171d121b, 0x0d0b0e09, 0xc7adf28b, 0xa8b92db6, 0xa9c8141e, 0x198557f1, 0x074caf75, 0xddbbee99, 0x60fda37f, 0x269ff701, 0xf5bc5c72, 0x3bc54466, 0x7e345bfb, 0x29768b43, 0xc6dccb23, 0xfc68b6ed, 0xf163b8e4, 0xdccad731, 0x85104263, 0x22401397, 0x112084c6, 0x247d854a, 0x3df8d2bb, 0x3211aef9, 0xa16dc729, 0x2f4b1d9e, 0x30f3dcb2, 0x52ec0d86, 0xe3d077c1, 0x166c2bb3, 0xb999a970, 0x48fa1194, 0x642247e9, 0x8cc4a8fc, 0x3f1aa0f0, 0x2cd8567d, 0x90ef2233, 0x4ec78749, 0xd1c1d938, 0xa2fe8cca, 0x0b3698d4, 0x81cfa6f5, 0xde28a57a, 0x8e26dab7, 0xbfa43fad, 0x9de42c3a, 0x920d5078, 0xcc9b6a5f, 0x4662547e, 0x13c2f68d, 0xb8e890d8, 0xf75e2e39, 0xaff582c3, 0x80be9f5d, 0x937c69d0, 0x2da96fd5, 0x12b3cf25, 0x993bc8ac, 0x7da71018, 0x636ee89c, 0xbb7bdb3b, 0x7809cd26, 0x18f46e59, 0xb701ec9a, 0x9aa8834f, 0x6e65e695, 0xe67eaaff, 0xcf0821bc, 0xe8e6ef15, 0x9bd9bae7, 0x36ce4a6f, 0x09d4ea9f, 0x7cd629b0, 0xb2af31a4, 0x23312a3f, 0x9430c6a5, 0x66c035a2, 0xbc37744e, 0xcaa6fc82, 0xd0b0e090, 0xd81533a7, 0x984af104, 0xdaf741ec, 0x500e7fcd, 0xf62f1791, 0xd68d764d, 0xb04d43ef, 0x4d54ccaa, 0x04dfe496, 0xb5e39ed1, 0x881b4c6a, 0x1fb8c12c, 0x517f4665, 0xea049d5e, 0x355d018c, 0x7473fa87, 0x412efb0b, 0x1d5ab367, 0xd25292db, 0x5633e910, 0x47136dd6, 0x618c9ad7, 0x0c7a37a1, 0x148e59f8, 0x3c89eb13, 0x27eecea9, 0xc935b761, 0xe5ede11c, 0xb13c7a47, 0xdf599cd2, 0x733f55f2, 0xce791814, 0x37bf73c7, 0xcdea53f7, 0xaa5b5ffd, 0x6f14df3d, 0xdb867844, 0xf381caaf, 0xc43eb968, 0x342c3824, 0x405fc2a3, 0xc372161d, 0x250cbce2, 0x498b283c, 0x9541ff0d, 0x017139a8, 0xb3de080c, 0xe49cd8b4, 0xc1906456, 0x84617bcb, 0xb670d532, 0x5c74486c, 0x5742d0b8]; + var T8 = [0xf4a75051, 0x4165537e, 0x17a4c31a, 0x275e963a, 0xab6bcb3b, 0x9d45f11f, 0xfa58abac, 0xe303934b, 0x30fa5520, 0x766df6ad, 0xcc769188, 0x024c25f5, 0xe5d7fc4f, 0x2acbd7c5, 0x35448026, 0x62a38fb5, 0xb15a49de, 0xba1b6725, 0xea0e9845, 0xfec0e15d, 0x2f7502c3, 0x4cf01281, 0x4697a38d, 0xd3f9c66b, 0x8f5fe703, 0x929c9515, 0x6d7aebbf, 0x5259da95, 0xbe832dd4, 0x7421d358, 0xe0692949, 0xc9c8448e, 0xc2896a75, 0x8e7978f4, 0x583e6b99, 0xb971dd27, 0xe14fb6be, 0x88ad17f0, 0x20ac66c9, 0xce3ab47d, 0xdf4a1863, 0x1a3182e5, 0x51336097, 0x537f4562, 0x6477e0b1, 0x6bae84bb, 0x81a01cfe, 0x082b94f9, 0x48685870, 0x45fd198f, 0xde6c8794, 0x7bf8b752, 0x73d323ab, 0x4b02e272, 0x1f8f57e3, 0x55ab2a66, 0xeb2807b2, 0xb5c2032f, 0xc57b9a86, 0x3708a5d3, 0x2887f230, 0xbfa5b223, 0x036aba02, 0x16825ced, 0xcf1c2b8a, 0x79b492a7, 0x07f2f0f3, 0x69e2a14e, 0xdaf4cd65, 0x05bed506, 0x34621fd1, 0xa6fe8ac4, 0x2e539d34, 0xf355a0a2, 0x8ae13205, 0xf6eb75a4, 0x83ec390b, 0x60efaa40, 0x719f065e, 0x6e1051bd, 0x218af93e, 0xdd063d96, 0x3e05aedd, 0xe6bd464d, 0x548db591, 0xc45d0571, 0x06d46f04, 0x5015ff60, 0x98fb2419, 0xbde997d6, 0x4043cc89, 0xd99e7767, 0xe842bdb0, 0x898b8807, 0x195b38e7, 0xc8eedb79, 0x7c0a47a1, 0x420fe97c, 0x841ec9f8, 0x00000000, 0x80868309, 0x2bed4832, 0x1170ac1e, 0x5a724e6c, 0x0efffbfd, 0x8538560f, 0xaed51e3d, 0x2d392736, 0x0fd9640a, 0x5ca62168, 0x5b54d19b, 0x362e3a24, 0x0a67b10c, 0x57e70f93, 0xee96d2b4, 0x9b919e1b, 0xc0c54f80, 0xdc20a261, 0x774b695a, 0x121a161c, 0x93ba0ae2, 0xa02ae5c0, 0x22e0433c, 0x1b171d12, 0x090d0b0e, 0x8bc7adf2, 0xb6a8b92d, 0x1ea9c814, 0xf1198557, 0x75074caf, 0x99ddbbee, 0x7f60fda3, 0x01269ff7, 0x72f5bc5c, 0x663bc544, 0xfb7e345b, 0x4329768b, 0x23c6dccb, 0xedfc68b6, 0xe4f163b8, 0x31dccad7, 0x63851042, 0x97224013, 0xc6112084, 0x4a247d85, 0xbb3df8d2, 0xf93211ae, 0x29a16dc7, 0x9e2f4b1d, 0xb230f3dc, 0x8652ec0d, 0xc1e3d077, 0xb3166c2b, 0x70b999a9, 0x9448fa11, 0xe9642247, 0xfc8cc4a8, 0xf03f1aa0, 0x7d2cd856, 0x3390ef22, 0x494ec787, 0x38d1c1d9, 0xcaa2fe8c, 0xd40b3698, 0xf581cfa6, 0x7ade28a5, 0xb78e26da, 0xadbfa43f, 0x3a9de42c, 0x78920d50, 0x5fcc9b6a, 0x7e466254, 0x8d13c2f6, 0xd8b8e890, 0x39f75e2e, 0xc3aff582, 0x5d80be9f, 0xd0937c69, 0xd52da96f, 0x2512b3cf, 0xac993bc8, 0x187da710, 0x9c636ee8, 0x3bbb7bdb, 0x267809cd, 0x5918f46e, 0x9ab701ec, 0x4f9aa883, 0x956e65e6, 0xffe67eaa, 0xbccf0821, 0x15e8e6ef, 0xe79bd9ba, 0x6f36ce4a, 0x9f09d4ea, 0xb07cd629, 0xa4b2af31, 0x3f23312a, 0xa59430c6, 0xa266c035, 0x4ebc3774, 0x82caa6fc, 0x90d0b0e0, 0xa7d81533, 0x04984af1, 0xecdaf741, 0xcd500e7f, 0x91f62f17, 0x4dd68d76, 0xefb04d43, 0xaa4d54cc, 0x9604dfe4, 0xd1b5e39e, 0x6a881b4c, 0x2c1fb8c1, 0x65517f46, 0x5eea049d, 0x8c355d01, 0x877473fa, 0x0b412efb, 0x671d5ab3, 0xdbd25292, 0x105633e9, 0xd647136d, 0xd7618c9a, 0xa10c7a37, 0xf8148e59, 0x133c89eb, 0xa927eece, 0x61c935b7, 0x1ce5ede1, 0x47b13c7a, 0xd2df599c, 0xf2733f55, 0x14ce7918, 0xc737bf73, 0xf7cdea53, 0xfdaa5b5f, 0x3d6f14df, 0x44db8678, 0xaff381ca, 0x68c43eb9, 0x24342c38, 0xa3405fc2, 0x1dc37216, 0xe2250cbc, 0x3c498b28, 0x0d9541ff, 0xa8017139, 0x0cb3de08, 0xb4e49cd8, 0x56c19064, 0xcb84617b, 0x32b670d5, 0x6c5c7448, 0xb85742d0]; + + // Transformations for decryption key expansion + var U1 = [0x00000000, 0x0e090d0b, 0x1c121a16, 0x121b171d, 0x3824342c, 0x362d3927, 0x24362e3a, 0x2a3f2331, 0x70486858, 0x7e416553, 0x6c5a724e, 0x62537f45, 0x486c5c74, 0x4665517f, 0x547e4662, 0x5a774b69, 0xe090d0b0, 0xee99ddbb, 0xfc82caa6, 0xf28bc7ad, 0xd8b4e49c, 0xd6bde997, 0xc4a6fe8a, 0xcaaff381, 0x90d8b8e8, 0x9ed1b5e3, 0x8ccaa2fe, 0x82c3aff5, 0xa8fc8cc4, 0xa6f581cf, 0xb4ee96d2, 0xbae79bd9, 0xdb3bbb7b, 0xd532b670, 0xc729a16d, 0xc920ac66, 0xe31f8f57, 0xed16825c, 0xff0d9541, 0xf104984a, 0xab73d323, 0xa57ade28, 0xb761c935, 0xb968c43e, 0x9357e70f, 0x9d5eea04, 0x8f45fd19, 0x814cf012, 0x3bab6bcb, 0x35a266c0, 0x27b971dd, 0x29b07cd6, 0x038f5fe7, 0x0d8652ec, 0x1f9d45f1, 0x119448fa, 0x4be30393, 0x45ea0e98, 0x57f11985, 0x59f8148e, 0x73c737bf, 0x7dce3ab4, 0x6fd52da9, 0x61dc20a2, 0xad766df6, 0xa37f60fd, 0xb16477e0, 0xbf6d7aeb, 0x955259da, 0x9b5b54d1, 0x894043cc, 0x87494ec7, 0xdd3e05ae, 0xd33708a5, 0xc12c1fb8, 0xcf2512b3, 0xe51a3182, 0xeb133c89, 0xf9082b94, 0xf701269f, 0x4de6bd46, 0x43efb04d, 0x51f4a750, 0x5ffdaa5b, 0x75c2896a, 0x7bcb8461, 0x69d0937c, 0x67d99e77, 0x3daed51e, 0x33a7d815, 0x21bccf08, 0x2fb5c203, 0x058ae132, 0x0b83ec39, 0x1998fb24, 0x1791f62f, 0x764dd68d, 0x7844db86, 0x6a5fcc9b, 0x6456c190, 0x4e69e2a1, 0x4060efaa, 0x527bf8b7, 0x5c72f5bc, 0x0605bed5, 0x080cb3de, 0x1a17a4c3, 0x141ea9c8, 0x3e218af9, 0x302887f2, 0x223390ef, 0x2c3a9de4, 0x96dd063d, 0x98d40b36, 0x8acf1c2b, 0x84c61120, 0xaef93211, 0xa0f03f1a, 0xb2eb2807, 0xbce2250c, 0xe6956e65, 0xe89c636e, 0xfa877473, 0xf48e7978, 0xdeb15a49, 0xd0b85742, 0xc2a3405f, 0xccaa4d54, 0x41ecdaf7, 0x4fe5d7fc, 0x5dfec0e1, 0x53f7cdea, 0x79c8eedb, 0x77c1e3d0, 0x65daf4cd, 0x6bd3f9c6, 0x31a4b2af, 0x3fadbfa4, 0x2db6a8b9, 0x23bfa5b2, 0x09808683, 0x07898b88, 0x15929c95, 0x1b9b919e, 0xa17c0a47, 0xaf75074c, 0xbd6e1051, 0xb3671d5a, 0x99583e6b, 0x97513360, 0x854a247d, 0x8b432976, 0xd134621f, 0xdf3d6f14, 0xcd267809, 0xc32f7502, 0xe9105633, 0xe7195b38, 0xf5024c25, 0xfb0b412e, 0x9ad7618c, 0x94de6c87, 0x86c57b9a, 0x88cc7691, 0xa2f355a0, 0xacfa58ab, 0xbee14fb6, 0xb0e842bd, 0xea9f09d4, 0xe49604df, 0xf68d13c2, 0xf8841ec9, 0xd2bb3df8, 0xdcb230f3, 0xcea927ee, 0xc0a02ae5, 0x7a47b13c, 0x744ebc37, 0x6655ab2a, 0x685ca621, 0x42638510, 0x4c6a881b, 0x5e719f06, 0x5078920d, 0x0a0fd964, 0x0406d46f, 0x161dc372, 0x1814ce79, 0x322bed48, 0x3c22e043, 0x2e39f75e, 0x2030fa55, 0xec9ab701, 0xe293ba0a, 0xf088ad17, 0xfe81a01c, 0xd4be832d, 0xdab78e26, 0xc8ac993b, 0xc6a59430, 0x9cd2df59, 0x92dbd252, 0x80c0c54f, 0x8ec9c844, 0xa4f6eb75, 0xaaffe67e, 0xb8e4f163, 0xb6edfc68, 0x0c0a67b1, 0x02036aba, 0x10187da7, 0x1e1170ac, 0x342e539d, 0x3a275e96, 0x283c498b, 0x26354480, 0x7c420fe9, 0x724b02e2, 0x605015ff, 0x6e5918f4, 0x44663bc5, 0x4a6f36ce, 0x587421d3, 0x567d2cd8, 0x37a10c7a, 0x39a80171, 0x2bb3166c, 0x25ba1b67, 0x0f853856, 0x018c355d, 0x13972240, 0x1d9e2f4b, 0x47e96422, 0x49e06929, 0x5bfb7e34, 0x55f2733f, 0x7fcd500e, 0x71c45d05, 0x63df4a18, 0x6dd64713, 0xd731dcca, 0xd938d1c1, 0xcb23c6dc, 0xc52acbd7, 0xef15e8e6, 0xe11ce5ed, 0xf307f2f0, 0xfd0efffb, 0xa779b492, 0xa970b999, 0xbb6bae84, 0xb562a38f, 0x9f5d80be, 0x91548db5, 0x834f9aa8, 0x8d4697a3]; + var U2 = [0x00000000, 0x0b0e090d, 0x161c121a, 0x1d121b17, 0x2c382434, 0x27362d39, 0x3a24362e, 0x312a3f23, 0x58704868, 0x537e4165, 0x4e6c5a72, 0x4562537f, 0x74486c5c, 0x7f466551, 0x62547e46, 0x695a774b, 0xb0e090d0, 0xbbee99dd, 0xa6fc82ca, 0xadf28bc7, 0x9cd8b4e4, 0x97d6bde9, 0x8ac4a6fe, 0x81caaff3, 0xe890d8b8, 0xe39ed1b5, 0xfe8ccaa2, 0xf582c3af, 0xc4a8fc8c, 0xcfa6f581, 0xd2b4ee96, 0xd9bae79b, 0x7bdb3bbb, 0x70d532b6, 0x6dc729a1, 0x66c920ac, 0x57e31f8f, 0x5ced1682, 0x41ff0d95, 0x4af10498, 0x23ab73d3, 0x28a57ade, 0x35b761c9, 0x3eb968c4, 0x0f9357e7, 0x049d5eea, 0x198f45fd, 0x12814cf0, 0xcb3bab6b, 0xc035a266, 0xdd27b971, 0xd629b07c, 0xe7038f5f, 0xec0d8652, 0xf11f9d45, 0xfa119448, 0x934be303, 0x9845ea0e, 0x8557f119, 0x8e59f814, 0xbf73c737, 0xb47dce3a, 0xa96fd52d, 0xa261dc20, 0xf6ad766d, 0xfda37f60, 0xe0b16477, 0xebbf6d7a, 0xda955259, 0xd19b5b54, 0xcc894043, 0xc787494e, 0xaedd3e05, 0xa5d33708, 0xb8c12c1f, 0xb3cf2512, 0x82e51a31, 0x89eb133c, 0x94f9082b, 0x9ff70126, 0x464de6bd, 0x4d43efb0, 0x5051f4a7, 0x5b5ffdaa, 0x6a75c289, 0x617bcb84, 0x7c69d093, 0x7767d99e, 0x1e3daed5, 0x1533a7d8, 0x0821bccf, 0x032fb5c2, 0x32058ae1, 0x390b83ec, 0x241998fb, 0x2f1791f6, 0x8d764dd6, 0x867844db, 0x9b6a5fcc, 0x906456c1, 0xa14e69e2, 0xaa4060ef, 0xb7527bf8, 0xbc5c72f5, 0xd50605be, 0xde080cb3, 0xc31a17a4, 0xc8141ea9, 0xf93e218a, 0xf2302887, 0xef223390, 0xe42c3a9d, 0x3d96dd06, 0x3698d40b, 0x2b8acf1c, 0x2084c611, 0x11aef932, 0x1aa0f03f, 0x07b2eb28, 0x0cbce225, 0x65e6956e, 0x6ee89c63, 0x73fa8774, 0x78f48e79, 0x49deb15a, 0x42d0b857, 0x5fc2a340, 0x54ccaa4d, 0xf741ecda, 0xfc4fe5d7, 0xe15dfec0, 0xea53f7cd, 0xdb79c8ee, 0xd077c1e3, 0xcd65daf4, 0xc66bd3f9, 0xaf31a4b2, 0xa43fadbf, 0xb92db6a8, 0xb223bfa5, 0x83098086, 0x8807898b, 0x9515929c, 0x9e1b9b91, 0x47a17c0a, 0x4caf7507, 0x51bd6e10, 0x5ab3671d, 0x6b99583e, 0x60975133, 0x7d854a24, 0x768b4329, 0x1fd13462, 0x14df3d6f, 0x09cd2678, 0x02c32f75, 0x33e91056, 0x38e7195b, 0x25f5024c, 0x2efb0b41, 0x8c9ad761, 0x8794de6c, 0x9a86c57b, 0x9188cc76, 0xa0a2f355, 0xabacfa58, 0xb6bee14f, 0xbdb0e842, 0xd4ea9f09, 0xdfe49604, 0xc2f68d13, 0xc9f8841e, 0xf8d2bb3d, 0xf3dcb230, 0xeecea927, 0xe5c0a02a, 0x3c7a47b1, 0x37744ebc, 0x2a6655ab, 0x21685ca6, 0x10426385, 0x1b4c6a88, 0x065e719f, 0x0d507892, 0x640a0fd9, 0x6f0406d4, 0x72161dc3, 0x791814ce, 0x48322bed, 0x433c22e0, 0x5e2e39f7, 0x552030fa, 0x01ec9ab7, 0x0ae293ba, 0x17f088ad, 0x1cfe81a0, 0x2dd4be83, 0x26dab78e, 0x3bc8ac99, 0x30c6a594, 0x599cd2df, 0x5292dbd2, 0x4f80c0c5, 0x448ec9c8, 0x75a4f6eb, 0x7eaaffe6, 0x63b8e4f1, 0x68b6edfc, 0xb10c0a67, 0xba02036a, 0xa710187d, 0xac1e1170, 0x9d342e53, 0x963a275e, 0x8b283c49, 0x80263544, 0xe97c420f, 0xe2724b02, 0xff605015, 0xf46e5918, 0xc544663b, 0xce4a6f36, 0xd3587421, 0xd8567d2c, 0x7a37a10c, 0x7139a801, 0x6c2bb316, 0x6725ba1b, 0x560f8538, 0x5d018c35, 0x40139722, 0x4b1d9e2f, 0x2247e964, 0x2949e069, 0x345bfb7e, 0x3f55f273, 0x0e7fcd50, 0x0571c45d, 0x1863df4a, 0x136dd647, 0xcad731dc, 0xc1d938d1, 0xdccb23c6, 0xd7c52acb, 0xe6ef15e8, 0xede11ce5, 0xf0f307f2, 0xfbfd0eff, 0x92a779b4, 0x99a970b9, 0x84bb6bae, 0x8fb562a3, 0xbe9f5d80, 0xb591548d, 0xa8834f9a, 0xa38d4697]; + var U3 = [0x00000000, 0x0d0b0e09, 0x1a161c12, 0x171d121b, 0x342c3824, 0x3927362d, 0x2e3a2436, 0x23312a3f, 0x68587048, 0x65537e41, 0x724e6c5a, 0x7f456253, 0x5c74486c, 0x517f4665, 0x4662547e, 0x4b695a77, 0xd0b0e090, 0xddbbee99, 0xcaa6fc82, 0xc7adf28b, 0xe49cd8b4, 0xe997d6bd, 0xfe8ac4a6, 0xf381caaf, 0xb8e890d8, 0xb5e39ed1, 0xa2fe8cca, 0xaff582c3, 0x8cc4a8fc, 0x81cfa6f5, 0x96d2b4ee, 0x9bd9bae7, 0xbb7bdb3b, 0xb670d532, 0xa16dc729, 0xac66c920, 0x8f57e31f, 0x825ced16, 0x9541ff0d, 0x984af104, 0xd323ab73, 0xde28a57a, 0xc935b761, 0xc43eb968, 0xe70f9357, 0xea049d5e, 0xfd198f45, 0xf012814c, 0x6bcb3bab, 0x66c035a2, 0x71dd27b9, 0x7cd629b0, 0x5fe7038f, 0x52ec0d86, 0x45f11f9d, 0x48fa1194, 0x03934be3, 0x0e9845ea, 0x198557f1, 0x148e59f8, 0x37bf73c7, 0x3ab47dce, 0x2da96fd5, 0x20a261dc, 0x6df6ad76, 0x60fda37f, 0x77e0b164, 0x7aebbf6d, 0x59da9552, 0x54d19b5b, 0x43cc8940, 0x4ec78749, 0x05aedd3e, 0x08a5d337, 0x1fb8c12c, 0x12b3cf25, 0x3182e51a, 0x3c89eb13, 0x2b94f908, 0x269ff701, 0xbd464de6, 0xb04d43ef, 0xa75051f4, 0xaa5b5ffd, 0x896a75c2, 0x84617bcb, 0x937c69d0, 0x9e7767d9, 0xd51e3dae, 0xd81533a7, 0xcf0821bc, 0xc2032fb5, 0xe132058a, 0xec390b83, 0xfb241998, 0xf62f1791, 0xd68d764d, 0xdb867844, 0xcc9b6a5f, 0xc1906456, 0xe2a14e69, 0xefaa4060, 0xf8b7527b, 0xf5bc5c72, 0xbed50605, 0xb3de080c, 0xa4c31a17, 0xa9c8141e, 0x8af93e21, 0x87f23028, 0x90ef2233, 0x9de42c3a, 0x063d96dd, 0x0b3698d4, 0x1c2b8acf, 0x112084c6, 0x3211aef9, 0x3f1aa0f0, 0x2807b2eb, 0x250cbce2, 0x6e65e695, 0x636ee89c, 0x7473fa87, 0x7978f48e, 0x5a49deb1, 0x5742d0b8, 0x405fc2a3, 0x4d54ccaa, 0xdaf741ec, 0xd7fc4fe5, 0xc0e15dfe, 0xcdea53f7, 0xeedb79c8, 0xe3d077c1, 0xf4cd65da, 0xf9c66bd3, 0xb2af31a4, 0xbfa43fad, 0xa8b92db6, 0xa5b223bf, 0x86830980, 0x8b880789, 0x9c951592, 0x919e1b9b, 0x0a47a17c, 0x074caf75, 0x1051bd6e, 0x1d5ab367, 0x3e6b9958, 0x33609751, 0x247d854a, 0x29768b43, 0x621fd134, 0x6f14df3d, 0x7809cd26, 0x7502c32f, 0x5633e910, 0x5b38e719, 0x4c25f502, 0x412efb0b, 0x618c9ad7, 0x6c8794de, 0x7b9a86c5, 0x769188cc, 0x55a0a2f3, 0x58abacfa, 0x4fb6bee1, 0x42bdb0e8, 0x09d4ea9f, 0x04dfe496, 0x13c2f68d, 0x1ec9f884, 0x3df8d2bb, 0x30f3dcb2, 0x27eecea9, 0x2ae5c0a0, 0xb13c7a47, 0xbc37744e, 0xab2a6655, 0xa621685c, 0x85104263, 0x881b4c6a, 0x9f065e71, 0x920d5078, 0xd9640a0f, 0xd46f0406, 0xc372161d, 0xce791814, 0xed48322b, 0xe0433c22, 0xf75e2e39, 0xfa552030, 0xb701ec9a, 0xba0ae293, 0xad17f088, 0xa01cfe81, 0x832dd4be, 0x8e26dab7, 0x993bc8ac, 0x9430c6a5, 0xdf599cd2, 0xd25292db, 0xc54f80c0, 0xc8448ec9, 0xeb75a4f6, 0xe67eaaff, 0xf163b8e4, 0xfc68b6ed, 0x67b10c0a, 0x6aba0203, 0x7da71018, 0x70ac1e11, 0x539d342e, 0x5e963a27, 0x498b283c, 0x44802635, 0x0fe97c42, 0x02e2724b, 0x15ff6050, 0x18f46e59, 0x3bc54466, 0x36ce4a6f, 0x21d35874, 0x2cd8567d, 0x0c7a37a1, 0x017139a8, 0x166c2bb3, 0x1b6725ba, 0x38560f85, 0x355d018c, 0x22401397, 0x2f4b1d9e, 0x642247e9, 0x692949e0, 0x7e345bfb, 0x733f55f2, 0x500e7fcd, 0x5d0571c4, 0x4a1863df, 0x47136dd6, 0xdccad731, 0xd1c1d938, 0xc6dccb23, 0xcbd7c52a, 0xe8e6ef15, 0xe5ede11c, 0xf2f0f307, 0xfffbfd0e, 0xb492a779, 0xb999a970, 0xae84bb6b, 0xa38fb562, 0x80be9f5d, 0x8db59154, 0x9aa8834f, 0x97a38d46]; + var U4 = [0x00000000, 0x090d0b0e, 0x121a161c, 0x1b171d12, 0x24342c38, 0x2d392736, 0x362e3a24, 0x3f23312a, 0x48685870, 0x4165537e, 0x5a724e6c, 0x537f4562, 0x6c5c7448, 0x65517f46, 0x7e466254, 0x774b695a, 0x90d0b0e0, 0x99ddbbee, 0x82caa6fc, 0x8bc7adf2, 0xb4e49cd8, 0xbde997d6, 0xa6fe8ac4, 0xaff381ca, 0xd8b8e890, 0xd1b5e39e, 0xcaa2fe8c, 0xc3aff582, 0xfc8cc4a8, 0xf581cfa6, 0xee96d2b4, 0xe79bd9ba, 0x3bbb7bdb, 0x32b670d5, 0x29a16dc7, 0x20ac66c9, 0x1f8f57e3, 0x16825ced, 0x0d9541ff, 0x04984af1, 0x73d323ab, 0x7ade28a5, 0x61c935b7, 0x68c43eb9, 0x57e70f93, 0x5eea049d, 0x45fd198f, 0x4cf01281, 0xab6bcb3b, 0xa266c035, 0xb971dd27, 0xb07cd629, 0x8f5fe703, 0x8652ec0d, 0x9d45f11f, 0x9448fa11, 0xe303934b, 0xea0e9845, 0xf1198557, 0xf8148e59, 0xc737bf73, 0xce3ab47d, 0xd52da96f, 0xdc20a261, 0x766df6ad, 0x7f60fda3, 0x6477e0b1, 0x6d7aebbf, 0x5259da95, 0x5b54d19b, 0x4043cc89, 0x494ec787, 0x3e05aedd, 0x3708a5d3, 0x2c1fb8c1, 0x2512b3cf, 0x1a3182e5, 0x133c89eb, 0x082b94f9, 0x01269ff7, 0xe6bd464d, 0xefb04d43, 0xf4a75051, 0xfdaa5b5f, 0xc2896a75, 0xcb84617b, 0xd0937c69, 0xd99e7767, 0xaed51e3d, 0xa7d81533, 0xbccf0821, 0xb5c2032f, 0x8ae13205, 0x83ec390b, 0x98fb2419, 0x91f62f17, 0x4dd68d76, 0x44db8678, 0x5fcc9b6a, 0x56c19064, 0x69e2a14e, 0x60efaa40, 0x7bf8b752, 0x72f5bc5c, 0x05bed506, 0x0cb3de08, 0x17a4c31a, 0x1ea9c814, 0x218af93e, 0x2887f230, 0x3390ef22, 0x3a9de42c, 0xdd063d96, 0xd40b3698, 0xcf1c2b8a, 0xc6112084, 0xf93211ae, 0xf03f1aa0, 0xeb2807b2, 0xe2250cbc, 0x956e65e6, 0x9c636ee8, 0x877473fa, 0x8e7978f4, 0xb15a49de, 0xb85742d0, 0xa3405fc2, 0xaa4d54cc, 0xecdaf741, 0xe5d7fc4f, 0xfec0e15d, 0xf7cdea53, 0xc8eedb79, 0xc1e3d077, 0xdaf4cd65, 0xd3f9c66b, 0xa4b2af31, 0xadbfa43f, 0xb6a8b92d, 0xbfa5b223, 0x80868309, 0x898b8807, 0x929c9515, 0x9b919e1b, 0x7c0a47a1, 0x75074caf, 0x6e1051bd, 0x671d5ab3, 0x583e6b99, 0x51336097, 0x4a247d85, 0x4329768b, 0x34621fd1, 0x3d6f14df, 0x267809cd, 0x2f7502c3, 0x105633e9, 0x195b38e7, 0x024c25f5, 0x0b412efb, 0xd7618c9a, 0xde6c8794, 0xc57b9a86, 0xcc769188, 0xf355a0a2, 0xfa58abac, 0xe14fb6be, 0xe842bdb0, 0x9f09d4ea, 0x9604dfe4, 0x8d13c2f6, 0x841ec9f8, 0xbb3df8d2, 0xb230f3dc, 0xa927eece, 0xa02ae5c0, 0x47b13c7a, 0x4ebc3774, 0x55ab2a66, 0x5ca62168, 0x63851042, 0x6a881b4c, 0x719f065e, 0x78920d50, 0x0fd9640a, 0x06d46f04, 0x1dc37216, 0x14ce7918, 0x2bed4832, 0x22e0433c, 0x39f75e2e, 0x30fa5520, 0x9ab701ec, 0x93ba0ae2, 0x88ad17f0, 0x81a01cfe, 0xbe832dd4, 0xb78e26da, 0xac993bc8, 0xa59430c6, 0xd2df599c, 0xdbd25292, 0xc0c54f80, 0xc9c8448e, 0xf6eb75a4, 0xffe67eaa, 0xe4f163b8, 0xedfc68b6, 0x0a67b10c, 0x036aba02, 0x187da710, 0x1170ac1e, 0x2e539d34, 0x275e963a, 0x3c498b28, 0x35448026, 0x420fe97c, 0x4b02e272, 0x5015ff60, 0x5918f46e, 0x663bc544, 0x6f36ce4a, 0x7421d358, 0x7d2cd856, 0xa10c7a37, 0xa8017139, 0xb3166c2b, 0xba1b6725, 0x8538560f, 0x8c355d01, 0x97224013, 0x9e2f4b1d, 0xe9642247, 0xe0692949, 0xfb7e345b, 0xf2733f55, 0xcd500e7f, 0xc45d0571, 0xdf4a1863, 0xd647136d, 0x31dccad7, 0x38d1c1d9, 0x23c6dccb, 0x2acbd7c5, 0x15e8e6ef, 0x1ce5ede1, 0x07f2f0f3, 0x0efffbfd, 0x79b492a7, 0x70b999a9, 0x6bae84bb, 0x62a38fb5, 0x5d80be9f, 0x548db591, 0x4f9aa883, 0x4697a38d]; + + function convertToInt32(bytes) { + var result = []; + for (var i = 0; i < bytes.length; i += 4) { + result.push( + (bytes[i ] << 24) | + (bytes[i + 1] << 16) | + (bytes[i + 2] << 8) | + bytes[i + 3] + ); + } + return result; + } + + var AES = function(key) { + if (!(this instanceof AES)) { + throw Error('AES must be instanitated with `new`'); + } + + Object.defineProperty(this, 'key', { + value: coerceArray(key, true) + }); + + this._prepare(); + } + + + AES.prototype._prepare = function() { + + var rounds = numberOfRounds[this.key.length]; + if (rounds == null) { + throw new Error('invalid key size (must be 16, 24 or 32 bytes)'); + } + + // encryption round keys + this._Ke = []; + + // decryption round keys + this._Kd = []; + + for (var i = 0; i <= rounds; i++) { + this._Ke.push([0, 0, 0, 0]); + this._Kd.push([0, 0, 0, 0]); + } + + var roundKeyCount = (rounds + 1) * 4; + var KC = this.key.length / 4; + + // convert the key into ints + var tk = convertToInt32(this.key); + + // copy values into round key arrays + var index; + for (var i = 0; i < KC; i++) { + index = i >> 2; + this._Ke[index][i % 4] = tk[i]; + this._Kd[rounds - index][i % 4] = tk[i]; + } + + // key expansion (fips-197 section 5.2) + var rconpointer = 0; + var t = KC, tt; + while (t < roundKeyCount) { + tt = tk[KC - 1]; + tk[0] ^= ((S[(tt >> 16) & 0xFF] << 24) ^ + (S[(tt >> 8) & 0xFF] << 16) ^ + (S[ tt & 0xFF] << 8) ^ + S[(tt >> 24) & 0xFF] ^ + (rcon[rconpointer] << 24)); + rconpointer += 1; + + // key expansion (for non-256 bit) + if (KC != 8) { + for (var i = 1; i < KC; i++) { + tk[i] ^= tk[i - 1]; + } + + // key expansion for 256-bit keys is "slightly different" (fips-197) + } else { + for (var i = 1; i < (KC / 2); i++) { + tk[i] ^= tk[i - 1]; + } + tt = tk[(KC / 2) - 1]; + + tk[KC / 2] ^= (S[ tt & 0xFF] ^ + (S[(tt >> 8) & 0xFF] << 8) ^ + (S[(tt >> 16) & 0xFF] << 16) ^ + (S[(tt >> 24) & 0xFF] << 24)); + + for (var i = (KC / 2) + 1; i < KC; i++) { + tk[i] ^= tk[i - 1]; + } + } + + // copy values into round key arrays + var i = 0, r, c; + while (i < KC && t < roundKeyCount) { + r = t >> 2; + c = t % 4; + this._Ke[r][c] = tk[i]; + this._Kd[rounds - r][c] = tk[i++]; + t++; + } + } + + // inverse-cipher-ify the decryption round key (fips-197 section 5.3) + for (var r = 1; r < rounds; r++) { + for (var c = 0; c < 4; c++) { + tt = this._Kd[r][c]; + this._Kd[r][c] = (U1[(tt >> 24) & 0xFF] ^ + U2[(tt >> 16) & 0xFF] ^ + U3[(tt >> 8) & 0xFF] ^ + U4[ tt & 0xFF]); + } + } + } + + AES.prototype.encrypt = function(plaintext) { + if (plaintext.length != 16) { + throw new Error('invalid plaintext size (must be 16 bytes)'); + } + + var rounds = this._Ke.length - 1; + var a = [0, 0, 0, 0]; + + // convert plaintext to (ints ^ key) + var t = convertToInt32(plaintext); + for (var i = 0; i < 4; i++) { + t[i] ^= this._Ke[0][i]; + } + + // apply round transforms + for (var r = 1; r < rounds; r++) { + for (var i = 0; i < 4; i++) { + a[i] = (T1[(t[ i ] >> 24) & 0xff] ^ + T2[(t[(i + 1) % 4] >> 16) & 0xff] ^ + T3[(t[(i + 2) % 4] >> 8) & 0xff] ^ + T4[ t[(i + 3) % 4] & 0xff] ^ + this._Ke[r][i]); + } + t = a.slice(); + } + + // the last round is special + var result = createArray(16), tt; + for (var i = 0; i < 4; i++) { + tt = this._Ke[rounds][i]; + result[4 * i ] = (S[(t[ i ] >> 24) & 0xff] ^ (tt >> 24)) & 0xff; + result[4 * i + 1] = (S[(t[(i + 1) % 4] >> 16) & 0xff] ^ (tt >> 16)) & 0xff; + result[4 * i + 2] = (S[(t[(i + 2) % 4] >> 8) & 0xff] ^ (tt >> 8)) & 0xff; + result[4 * i + 3] = (S[ t[(i + 3) % 4] & 0xff] ^ tt ) & 0xff; + } + + return result; + } + + AES.prototype.decrypt = function(ciphertext) { + if (ciphertext.length != 16) { + throw new Error('invalid ciphertext size (must be 16 bytes)'); + } + + var rounds = this._Kd.length - 1; + var a = [0, 0, 0, 0]; + + // convert plaintext to (ints ^ key) + var t = convertToInt32(ciphertext); + for (var i = 0; i < 4; i++) { + t[i] ^= this._Kd[0][i]; + } + + // apply round transforms + for (var r = 1; r < rounds; r++) { + for (var i = 0; i < 4; i++) { + a[i] = (T5[(t[ i ] >> 24) & 0xff] ^ + T6[(t[(i + 3) % 4] >> 16) & 0xff] ^ + T7[(t[(i + 2) % 4] >> 8) & 0xff] ^ + T8[ t[(i + 1) % 4] & 0xff] ^ + this._Kd[r][i]); + } + t = a.slice(); + } + + // the last round is special + var result = createArray(16), tt; + for (var i = 0; i < 4; i++) { + tt = this._Kd[rounds][i]; + result[4 * i ] = (Si[(t[ i ] >> 24) & 0xff] ^ (tt >> 24)) & 0xff; + result[4 * i + 1] = (Si[(t[(i + 3) % 4] >> 16) & 0xff] ^ (tt >> 16)) & 0xff; + result[4 * i + 2] = (Si[(t[(i + 2) % 4] >> 8) & 0xff] ^ (tt >> 8)) & 0xff; + result[4 * i + 3] = (Si[ t[(i + 1) % 4] & 0xff] ^ tt ) & 0xff; + } + + return result; + } + + + /** + * Mode Of Operation - Electonic Codebook (ECB) + */ + var ModeOfOperationECB = function(key) { + if (!(this instanceof ModeOfOperationECB)) { + throw Error('AES must be instanitated with `new`'); + } + + this.description = "Electronic Code Block"; + this.name = "ecb"; + + this._aes = new AES(key); + } + + ModeOfOperationECB.prototype.encrypt = function(plaintext) { + plaintext = coerceArray(plaintext); + + if ((plaintext.length % 16) !== 0) { + throw new Error('invalid plaintext size (must be multiple of 16 bytes)'); + } + + var ciphertext = createArray(plaintext.length); + var block = createArray(16); + + for (var i = 0; i < plaintext.length; i += 16) { + copyArray(plaintext, block, 0, i, i + 16); + block = this._aes.encrypt(block); + copyArray(block, ciphertext, i); + } + + return ciphertext; + } + + ModeOfOperationECB.prototype.decrypt = function(ciphertext) { + ciphertext = coerceArray(ciphertext); + + if ((ciphertext.length % 16) !== 0) { + throw new Error('invalid ciphertext size (must be multiple of 16 bytes)'); + } + + var plaintext = createArray(ciphertext.length); + var block = createArray(16); + + for (var i = 0; i < ciphertext.length; i += 16) { + copyArray(ciphertext, block, 0, i, i + 16); + block = this._aes.decrypt(block); + copyArray(block, plaintext, i); + } + + return plaintext; + } + + + /** + * Mode Of Operation - Cipher Block Chaining (CBC) + */ + var ModeOfOperationCBC = function(key, iv) { + if (!(this instanceof ModeOfOperationCBC)) { + throw Error('AES must be instanitated with `new`'); + } + + this.description = "Cipher Block Chaining"; + this.name = "cbc"; + + if (!iv) { + iv = createArray(16); + + } else if (iv.length != 16) { + throw new Error('invalid initialation vector size (must be 16 bytes)'); + } + + this._lastCipherblock = coerceArray(iv, true); + + this._aes = new AES(key); + } + + ModeOfOperationCBC.prototype.encrypt = function(plaintext) { + plaintext = coerceArray(plaintext); + + if ((plaintext.length % 16) !== 0) { + throw new Error('invalid plaintext size (must be multiple of 16 bytes)'); + } + + var ciphertext = createArray(plaintext.length); + var block = createArray(16); + + for (var i = 0; i < plaintext.length; i += 16) { + copyArray(plaintext, block, 0, i, i + 16); + + for (var j = 0; j < 16; j++) { + block[j] ^= this._lastCipherblock[j]; + } + + this._lastCipherblock = this._aes.encrypt(block); + copyArray(this._lastCipherblock, ciphertext, i); + } + + return ciphertext; + } + + ModeOfOperationCBC.prototype.decrypt = function(ciphertext) { + ciphertext = coerceArray(ciphertext); + + if ((ciphertext.length % 16) !== 0) { + throw new Error('invalid ciphertext size (must be multiple of 16 bytes)'); + } + + var plaintext = createArray(ciphertext.length); + var block = createArray(16); + + for (var i = 0; i < ciphertext.length; i += 16) { + copyArray(ciphertext, block, 0, i, i + 16); + block = this._aes.decrypt(block); + + for (var j = 0; j < 16; j++) { + plaintext[i + j] = block[j] ^ this._lastCipherblock[j]; + } + + copyArray(ciphertext, this._lastCipherblock, 0, i, i + 16); + } + + return plaintext; + } + + + /** + * Mode Of Operation - Cipher Feedback (CFB) + */ + var ModeOfOperationCFB = function(key, iv, segmentSize) { + if (!(this instanceof ModeOfOperationCFB)) { + throw Error('AES must be instanitated with `new`'); + } + + this.description = "Cipher Feedback"; + this.name = "cfb"; + + if (!iv) { + iv = createArray(16); + + } else if (iv.length != 16) { + throw new Error('invalid initialation vector size (must be 16 size)'); + } + + if (!segmentSize) { segmentSize = 1; } + + this.segmentSize = segmentSize; + + this._shiftRegister = coerceArray(iv, true); + + this._aes = new AES(key); + } + + ModeOfOperationCFB.prototype.encrypt = function(plaintext) { + if ((plaintext.length % this.segmentSize) != 0) { + throw new Error('invalid plaintext size (must be segmentSize bytes)'); + } + + var encrypted = coerceArray(plaintext, true); + + var xorSegment; + for (var i = 0; i < encrypted.length; i += this.segmentSize) { + xorSegment = this._aes.encrypt(this._shiftRegister); + for (var j = 0; j < this.segmentSize; j++) { + encrypted[i + j] ^= xorSegment[j]; + } + + // Shift the register + copyArray(this._shiftRegister, this._shiftRegister, 0, this.segmentSize); + copyArray(encrypted, this._shiftRegister, 16 - this.segmentSize, i, i + this.segmentSize); + } + + return encrypted; + } + + ModeOfOperationCFB.prototype.decrypt = function(ciphertext) { + if ((ciphertext.length % this.segmentSize) != 0) { + throw new Error('invalid ciphertext size (must be segmentSize bytes)'); + } + + var plaintext = coerceArray(ciphertext, true); + + var xorSegment; + for (var i = 0; i < plaintext.length; i += this.segmentSize) { + xorSegment = this._aes.encrypt(this._shiftRegister); + + for (var j = 0; j < this.segmentSize; j++) { + plaintext[i + j] ^= xorSegment[j]; + } + + // Shift the register + copyArray(this._shiftRegister, this._shiftRegister, 0, this.segmentSize); + copyArray(ciphertext, this._shiftRegister, 16 - this.segmentSize, i, i + this.segmentSize); + } + + return plaintext; + } + + /** + * Mode Of Operation - Output Feedback (OFB) + */ + var ModeOfOperationOFB = function(key, iv) { + if (!(this instanceof ModeOfOperationOFB)) { + throw Error('AES must be instanitated with `new`'); + } + + this.description = "Output Feedback"; + this.name = "ofb"; + + if (!iv) { + iv = createArray(16); + + } else if (iv.length != 16) { + throw new Error('invalid initialation vector size (must be 16 bytes)'); + } + + this._lastPrecipher = coerceArray(iv, true); + this._lastPrecipherIndex = 16; + + this._aes = new AES(key); + } + + ModeOfOperationOFB.prototype.encrypt = function(plaintext) { + var encrypted = coerceArray(plaintext, true); + + for (var i = 0; i < encrypted.length; i++) { + if (this._lastPrecipherIndex === 16) { + this._lastPrecipher = this._aes.encrypt(this._lastPrecipher); + this._lastPrecipherIndex = 0; + } + encrypted[i] ^= this._lastPrecipher[this._lastPrecipherIndex++]; + } + + return encrypted; + } + + // Decryption is symetric + ModeOfOperationOFB.prototype.decrypt = ModeOfOperationOFB.prototype.encrypt; + + + /** + * Counter object for CTR common mode of operation + */ + var Counter = function(initialValue) { + if (!(this instanceof Counter)) { + throw Error('Counter must be instanitated with `new`'); + } + + // We allow 0, but anything false-ish uses the default 1 + if (initialValue !== 0 && !initialValue) { initialValue = 1; } + + if (typeof(initialValue) === 'number') { + this._counter = createArray(16); + this.setValue(initialValue); + + } else { + this.setBytes(initialValue); + } + } + + Counter.prototype.setValue = function(value) { + if (typeof(value) !== 'number' || parseInt(value) != value) { + throw new Error('invalid counter value (must be an integer)'); + } + + // We cannot safely handle numbers beyond the safe range for integers + if (value > Number.MAX_SAFE_INTEGER) { + throw new Error('integer value out of safe range'); + } + + for (var index = 15; index >= 0; --index) { + this._counter[index] = value % 256; + value = parseInt(value / 256); + } + } + + Counter.prototype.setBytes = function(bytes) { + bytes = coerceArray(bytes, true); + + if (bytes.length != 16) { + throw new Error('invalid counter bytes size (must be 16 bytes)'); + } + + this._counter = bytes; + }; + + Counter.prototype.increment = function() { + for (var i = 15; i >= 0; i--) { + if (this._counter[i] === 255) { + this._counter[i] = 0; + } else { + this._counter[i]++; + break; + } + } + } + + + /** + * Mode Of Operation - Counter (CTR) + */ + var ModeOfOperationCTR = function(key, counter) { + if (!(this instanceof ModeOfOperationCTR)) { + throw Error('AES must be instanitated with `new`'); + } + + this.description = "Counter"; + this.name = "ctr"; + + if (!(counter instanceof Counter)) { + counter = new Counter(counter) + } + + this._counter = counter; + + this._remainingCounter = null; + this._remainingCounterIndex = 16; + + this._aes = new AES(key); + } + + ModeOfOperationCTR.prototype.encrypt = function(plaintext) { + var encrypted = coerceArray(plaintext, true); + + for (var i = 0; i < encrypted.length; i++) { + if (this._remainingCounterIndex === 16) { + this._remainingCounter = this._aes.encrypt(this._counter._counter); + this._remainingCounterIndex = 0; + this._counter.increment(); + } + encrypted[i] ^= this._remainingCounter[this._remainingCounterIndex++]; + } + + return encrypted; + } + + // Decryption is symetric + ModeOfOperationCTR.prototype.decrypt = ModeOfOperationCTR.prototype.encrypt; + + + /////////////////////// + // Padding + + // See:https://tools.ietf.org/html/rfc2315 + function pkcs7pad(data) { + data = coerceArray(data, true); + var padder = 16 - (data.length % 16); + var result = createArray(data.length + padder); + copyArray(data, result); + for (var i = data.length; i < result.length; i++) { + result[i] = padder; + } + return result; + } + + function pkcs7strip(data) { + data = coerceArray(data, true); + if (data.length < 16) { throw new Error('PKCS#7 invalid length'); } + + var padder = data[data.length - 1]; + if (padder > 16) { throw new Error('PKCS#7 padding byte out of range'); } + + var length = data.length - padder; + for (var i = 0; i < padder; i++) { + if (data[length + i] !== padder) { + throw new Error('PKCS#7 invalid padding byte'); + } + } + + var result = createArray(length); + copyArray(data, result, 0, 0, length); + return result; + } + + /////////////////////// + // Exporting + + + // The block cipher + var aesjs = { + AES: AES, + Counter: Counter, + + ModeOfOperation: { + ecb: ModeOfOperationECB, + cbc: ModeOfOperationCBC, + cfb: ModeOfOperationCFB, + ofb: ModeOfOperationOFB, + ctr: ModeOfOperationCTR + }, + + utils: { + hex: convertHex, + utf8: convertUtf8 + }, + + padding: { + pkcs7: { + pad: pkcs7pad, + strip: pkcs7strip + } + }, + + _arrayTest: { + coerceArray: coerceArray, + createArray: createArray, + copyArray: copyArray, + } + }; + + + // node.js + if (typeof exports !== 'undefined') { + module.exports = aesjs + + // RequireJS/AMD + // http://www.requirejs.org/docs/api.html + // https://github.com/amdjs/amdjs-api/wiki/AMD + } else if (typeof(define) === 'function' && define.amd) { + define([], function() { return aesjs; }); + + // Web Browsers + } else { + + // If there was an existing library at "aesjs" make sure it's still available + if (root.aesjs) { + aesjs._aesjs = root.aesjs; + } + + root.aesjs = aesjs; + } + + +})(this); diff --git a/src/background.js b/src/background.js index 0497e24..25509fd 100644 --- a/src/background.js +++ b/src/background.js @@ -1,9 +1,17 @@ browser.webRequest.onBeforeRequest.addListener( function(details) { - return { - //redirectUrl: browser.extension.getURL("cadmium-playercore-5.0008.544.011-1080p.js") - redirectUrl: browser.extension.getURL("cadmium-playercore-1080p.js") + let filter = browser.webRequest.filterResponseData(details.requestId); + let encoder = new TextEncoder(); + + filter.ondata = event => { + fetch(browser.extension.getURL("cadmium-playercore-1080p.js")). + then(response => response.text()). + then(text => { + filter.write(encoder.encode(text)); + filter.disconnect(); + }); }; + return {}; }, { urls: [ "*://assets.nflxext.com/*/ffe/player/html/*", diff --git a/src/cadmium-playercore-1080p.js b/src/cadmium-playercore-1080p.js index 67c14c8..1b7bfd8 100644 --- a/src/cadmium-playercore-1080p.js +++ b/src/cadmium-playercore-1080p.js @@ -1,569 +1,551 @@ -v7AA.J9W = function() { - return typeof v7AA.m9W.r9c === 'function' ? v7AA.m9W.r9c.apply(v7AA.m9W, arguments) : v7AA.m9W.r9c; -}; -v7AA.f3g = function() { - return typeof v7AA.l3g.T9c === 'function' ? v7AA.l3g.T9c.apply(v7AA.l3g, arguments) : v7AA.l3g.T9c; +var esnPrefix; +var manifestOverridden = false; + +H4DD.A5C = function() { + return typeof H4DD.m5C.N6n === 'function' ? H4DD.m5C.N6n.apply(H4DD.m5C, arguments) : H4DD.m5C.N6n; }; -v7AA.a9c = function() { - return typeof v7AA.v9c.r9c === 'function' ? v7AA.v9c.r9c.apply(v7AA.v9c, arguments) : v7AA.v9c.r9c; +H4DD.b6A = function() { + return typeof H4DD.h6A.A6n === 'function' ? H4DD.h6A.A6n.apply(H4DD.h6A, arguments) : H4DD.h6A.A6n; }; -v7AA.K52 = function() { - return typeof v7AA.G52.T9c === 'function' ? v7AA.G52.T9c.apply(v7AA.G52, arguments) : v7AA.G52.T9c; +H4DD.D05 = function() { + return typeof H4DD.G05.N6n === 'function' ? H4DD.G05.N6n.apply(H4DD.G05, arguments) : H4DD.G05.N6n; }; - -function v7AA() {} -v7AA.E3u = function(b3u) { +H4DD.d72 = function(G72) { return { - r9c: function() { - var S3u, j3u = arguments; - switch (b3u) { - case 2: - S3u = j3u[0] >= j3u[1]; - break; - case 1: - S3u = j3u[1] + j3u[0]; - break; - case 3: - S3u = j3u[1] < j3u[0]; - break; + N6n: function() { + var U72, i72 = arguments; + switch (G72) { case 0: - S3u = j3u[2] - j3u[1] + j3u[0]; + U72 = i72[0] * i72[1]; break; } - return S3u; + return U72; }, - T9c: function(t3u) { - b3u = t3u; + A6n: function(q72) { + G72 = q72; } }; }(); -v7AA.c2S = function(t2S) { +H4DD.o3W = function(f3W) { return { - r9c: function() { - var A2S, d2S = arguments; - switch (t2S) { + N6n: function() { + var X3W, G3W = arguments; + switch (f3W) { + case 2: + X3W = G3W[0] - G3W[2] + G3W[1]; + break; case 0: - A2S = d2S[1] - d2S[2] + d2S[0]; + X3W = G3W[1] - G3W[0]; + break; + case 1: + X3W = G3W[0] + G3W[1]; break; } - return A2S; + return X3W; }, - T9c: function(i2S) { - t2S = i2S; + A6n: function(v3W) { + f3W = v3W; } }; }(); -v7AA.G47 = function() { - return typeof v7AA.b47.r9c === 'function' ? v7AA.b47.r9c.apply(v7AA.b47, arguments) : v7AA.b47.r9c; +H4DD.a05 = function() { + return typeof H4DD.G05.A6n === 'function' ? H4DD.G05.A6n.apply(H4DD.G05, arguments) : H4DD.G05.A6n; }; -v7AA.s91 = function() { - return typeof v7AA.O91.r9c === 'function' ? v7AA.O91.r9c.apply(v7AA.O91, arguments) : v7AA.O91.r9c; +H4DD.d71 = function() { + return typeof H4DD.G71.N6n === 'function' ? H4DD.G71.N6n.apply(H4DD.G71, arguments) : H4DD.G71.N6n; }; -v7AA.b47 = function(U47) { +H4DD.s9t = function(X9t) { return { - r9c: function() { - var y47, x47 = arguments; - switch (U47) { - case 3: - y47 = x47[1] / x47[0]; - break; - case 2: - y47 = x47[0] * x47[2] / x47[1]; - break; - case 8: - y47 = (x47[4] + x47[3]) / x47[1] - x47[2] + x47[0]; - break; + N6n: function() { + var M9t, G9t = arguments; + switch (X9t) { case 0: - y47 = x47[0] - x47[1]; - break; - case 6: - y47 = x47[0] + x47[1]; + M9t = G9t[0] + G9t[1]; break; case 1: - y47 = x47[2] * x47[1] - x47[0]; - break; - case 7: - y47 = x47[0] / x47[3] - x47[2] + x47[1] + x47[4]; - break; - case 10: - y47 = (x47[1] - x47[0]) * -x47[2] / x47[3]; - break; - case 5: - y47 = void x47[1] !== x47[0]; - break; - case 9: - y47 = -x47[0]; - break; - case 4: - y47 = +x47[1] == x47[0]; + M9t = G9t[0] - G9t[1]; break; } - return y47; + return M9t; }, - T9c: function(u47) { - U47 = u47; + A6n: function(i9t) { + X9t = i9t; } }; }(); -v7AA.n22 = function() { - return typeof v7AA.A22.r9c === 'function' ? v7AA.A22.r9c.apply(v7AA.A22, arguments) : v7AA.A22.r9c; +H4DD.Q5C = function() { + return typeof H4DD.m5C.N6n === 'function' ? H4DD.m5C.N6n.apply(H4DD.m5C, arguments) : H4DD.m5C.N6n; }; -v7AA.l3g = function(s3g) { +H4DD.x0X = function(r0X) { return { - r9c: function() { - var C3g, t3g = arguments; - switch (s3g) { + N6n: function() { + var g0X, j0X = arguments; + switch (r0X) { case 0: - C3g = t3g[1] - t3g[0] + t3g[2]; - break; - case 1: - C3g = t3g[4] - t3g[2] + -t3g[3] + -t3g[1] + -t3g[0]; - break; - case 2: - C3g = (t3g[2] + t3g[1]) / t3g[0]; + g0X = (j0X[2] + j0X[0]) / j0X[1]; break; } - return C3g; + return g0X; }, - T9c: function(d3g) { - s3g = d3g; + A6n: function(h0X) { + r0X = h0X; } }; }(); -v7AA.h52 = function() { - return typeof v7AA.G52.T9c === 'function' ? v7AA.G52.T9c.apply(v7AA.G52, arguments) : v7AA.G52.T9c; +H4DD.w6M = function() { + return typeof H4DD.D6M.N6n === 'function' ? H4DD.D6M.N6n.apply(H4DD.D6M, arguments) : H4DD.D6M.N6n; +}; +H4DD.p9t = function() { + return typeof H4DD.s9t.A6n === 'function' ? H4DD.s9t.A6n.apply(H4DD.s9t, arguments) : H4DD.s9t.A6n; +}; +H4DD.e72 = function() { + return typeof H4DD.d72.N6n === 'function' ? H4DD.d72.N6n.apply(H4DD.d72, arguments) : H4DD.d72.N6n; }; -v7AA.g4Q = function(W3Q) { +H4DD.D6M = function(i6M) { return { - r9c: function() { - var m3Q, A3Q = arguments; - switch (W3Q) { + N6n: function() { + var B6M, T6M = arguments; + switch (i6M) { case 0: - m3Q = A3Q[1] * A3Q[0]; + B6M = T6M[1] - T6M[2] + T6M[0]; + break; + case 1: + B6M = T6M[0] - T6M[1]; + break; + case 4: + B6M = T6M[2] * (T6M[1] - T6M[0]); + break; + case 3: + B6M = T6M[2] / (T6M[1] + T6M[0]); + break; + case 2: + B6M = T6M[1] / T6M[0]; break; } - return m3Q; + return B6M; }, - T9c: function(L4Q) { - W3Q = L4Q; + A6n: function(E6M) { + i6M = E6M; } }; }(); -v7AA.t9W = function() { - return typeof v7AA.m9W.T9c === 'function' ? v7AA.m9W.T9c.apply(v7AA.m9W, arguments) : v7AA.m9W.T9c; +H4DD.e05 = function() { + return typeof H4DD.G05.A6n === 'function' ? H4DD.G05.A6n.apply(H4DD.G05, arguments) : H4DD.G05.A6n; }; -v7AA.v5M = function() { - return typeof v7AA.w5M.T9c === 'function' ? v7AA.w5M.T9c.apply(v7AA.w5M, arguments) : v7AA.w5M.T9c; +H4DD.L9t = function() { + return typeof H4DD.s9t.N6n === 'function' ? H4DD.s9t.N6n.apply(H4DD.s9t, arguments) : H4DD.s9t.N6n; }; -v7AA.x3u = function() { - return typeof v7AA.E3u.r9c === 'function' ? v7AA.E3u.r9c.apply(v7AA.E3u, arguments) : v7AA.E3u.r9c; +H4DD.G6M = function() { + return typeof H4DD.D6M.A6n === 'function' ? H4DD.D6M.A6n.apply(H4DD.D6M, arguments) : H4DD.D6M.A6n; }; -v7AA.z4Q = function() { - return typeof v7AA.g4Q.r9c === 'function' ? v7AA.g4Q.r9c.apply(v7AA.g4Q, arguments) : v7AA.g4Q.r9c; +H4DD.p6A = function() { + return typeof H4DD.h6A.N6n === 'function' ? H4DD.h6A.N6n.apply(H4DD.h6A, arguments) : H4DD.h6A.N6n; }; -v7AA.f91 = function() { - return typeof v7AA.O91.r9c === 'function' ? v7AA.O91.r9c.apply(v7AA.O91, arguments) : v7AA.O91.r9c; +H4DD.i7C = function() { + return typeof H4DD.m5C.A6n === 'function' ? H4DD.m5C.A6n.apply(H4DD.m5C, arguments) : H4DD.m5C.A6n; }; -v7AA.w3u = function() { - return typeof v7AA.E3u.T9c === 'function' ? v7AA.E3u.T9c.apply(v7AA.E3u, arguments) : v7AA.E3u.T9c; +H4DD.S26 = function() { + return typeof H4DD.x26.A6n === 'function' ? H4DD.x26.A6n.apply(H4DD.x26, arguments) : H4DD.x26.A6n; }; -v7AA.W91 = function() { - return typeof v7AA.O91.T9c === 'function' ? v7AA.O91.T9c.apply(v7AA.O91, arguments) : v7AA.O91.T9c; +H4DD.H6M = function() { + return typeof H4DD.D6M.N6n === 'function' ? H4DD.D6M.N6n.apply(H4DD.D6M, arguments) : H4DD.D6M.N6n; }; -v7AA.U5B = function() { - return typeof v7AA.I5B.r9c === 'function' ? v7AA.I5B.r9c.apply(v7AA.I5B, arguments) : v7AA.I5B.r9c; +H4DD.s05 = function() { + return typeof H4DD.G05.N6n === 'function' ? H4DD.G05.N6n.apply(H4DD.G05, arguments) : H4DD.G05.N6n; }; -v7AA.y4Q = function() { - return typeof v7AA.g4Q.r9c === 'function' ? v7AA.g4Q.r9c.apply(v7AA.g4Q, arguments) : v7AA.g4Q.r9c; +H4DD.J6n = function() { + return typeof H4DD.O6n.N6n === 'function' ? H4DD.O6n.N6n.apply(H4DD.O6n, arguments) : H4DD.O6n.N6n; }; -v7AA.g5M = function() { - return typeof v7AA.w5M.r9c === 'function' ? v7AA.w5M.r9c.apply(v7AA.w5M, arguments) : v7AA.w5M.r9c; -}; -v7AA.A22 = function(I22) { +H4DD.G05 = function(S05) { return { - r9c: function() { - var j22, S22 = arguments; - switch (I22) { - case 3: - j22 = S22[0] + S22[1]; + N6n: function() { + var Q05, E05 = arguments; + switch (S05) { + case 0: + Q05 = E05[1] + E05[0]; + break; + } + return Q05; + }, + A6n: function(V05) { + S05 = V05; + } + }; +}(); +H4DD.m5C = function(q5C) { + return { + N6n: function() { + var v5C, Y5C = arguments; + switch (q5C) { + case 2: + v5C = Y5C[1] - Y5C[0]; break; case 1: - j22 = S22[1] * S22[3] / S22[2] * S22[0]; + v5C = Y5C[1] / -Y5C[0]; break; case 0: - j22 = S22[1] / S22[0]; - break; - case 2: - j22 = (S22[0] + S22[3]) * S22[2] - S22[1]; + v5C = -Y5C[0] - Y5C[2] + Y5C[1]; break; } - return j22; + return v5C; }, - T9c: function(W22) { - I22 = W22; + A6n: function(W5C) { + q5C = W5C; } }; }(); -v7AA.q8P = function() { - return typeof v7AA.y8P.T9c === 'function' ? v7AA.y8P.T9c.apply(v7AA.y8P, arguments) : v7AA.y8P.T9c; +H4DD.S6M = function() { + return typeof H4DD.D6M.A6n === 'function' ? H4DD.D6M.A6n.apply(H4DD.D6M, arguments) : H4DD.D6M.A6n; +}; +H4DD.T26 = function() { + return typeof H4DD.x26.N6n === 'function' ? H4DD.x26.N6n.apply(H4DD.x26, arguments) : H4DD.x26.N6n; +}; +H4DD.c71 = function() { + return typeof H4DD.G71.N6n === 'function' ? H4DD.G71.N6n.apply(H4DD.G71, arguments) : H4DD.G71.N6n; +}; +H4DD.M72 = function() { + return typeof H4DD.d72.A6n === 'function' ? H4DD.d72.A6n.apply(H4DD.d72, arguments) : H4DD.d72.A6n; }; -v7AA.t47 = function() { - return typeof v7AA.b47.T9c === 'function' ? v7AA.b47.T9c.apply(v7AA.b47, arguments) : v7AA.b47.T9c; +H4DD.J57 = function() { + return typeof H4DD.v57.N6n === 'function' ? H4DD.v57.N6n.apply(H4DD.v57, arguments) : H4DD.v57.N6n; }; -v7AA.H3g = function() { - return typeof v7AA.l3g.r9c === 'function' ? v7AA.l3g.r9c.apply(v7AA.l3g, arguments) : v7AA.l3g.r9c; +H4DD.B9t = function() { + return typeof H4DD.s9t.N6n === 'function' ? H4DD.s9t.N6n.apply(H4DD.s9t, arguments) : H4DD.s9t.N6n; }; -v7AA.C4Q = function() { - return typeof v7AA.g4Q.T9c === 'function' ? v7AA.g4Q.T9c.apply(v7AA.g4Q, arguments) : v7AA.g4Q.T9c; +H4DD.W6n = function() { + return typeof H4DD.O6n.N6n === 'function' ? H4DD.O6n.N6n.apply(H4DD.O6n, arguments) : H4DD.O6n.N6n; }; -v7AA.H9c = function() { - return typeof v7AA.v9c.r9c === 'function' ? v7AA.v9c.r9c.apply(v7AA.v9c, arguments) : v7AA.v9c.r9c; +H4DD.Q26 = function() { + return typeof H4DD.x26.N6n === 'function' ? H4DD.x26.N6n.apply(H4DD.x26, arguments) : H4DD.x26.N6n; }; -v7AA.u91 = function() { - return typeof v7AA.O91.T9c === 'function' ? v7AA.O91.T9c.apply(v7AA.O91, arguments) : v7AA.O91.T9c; +H4DD.c3W = function() { + return typeof H4DD.o3W.N6n === 'function' ? H4DD.o3W.N6n.apply(H4DD.o3W, arguments) : H4DD.o3W.N6n; }; -v7AA.y8P = function(C8P) { +H4DD.p5u = function() { + return typeof H4DD.O5u.N6n === 'function' ? H4DD.O5u.N6n.apply(H4DD.O5u, arguments) : H4DD.O5u.N6n; +}; +H4DD.x26 = function(u26) { return { - r9c: function() { - var R8P, s8P = arguments; - switch (C8P) { + N6n: function() { + var f26, H26 = arguments; + switch (u26) { case 1: - R8P = s8P[0] + s8P[1]; + f26 = H26[0] <= H26[1]; + break; + case 4: + f26 = (H26[3] - H26[2]) * H26[0] + H26[1]; + break; + case 2: + f26 = H26[1] > H26[0]; break; case 0: - R8P = s8P[2] + s8P[1] + s8P[0]; + f26 = H26[1] >= H26[0]; + break; + case 3: + f26 = H26[1] + H26[0]; break; } - return R8P; + return f26; }, - T9c: function(T8P) { - C8P = T8P; + A6n: function(O26) { + u26 = O26; } }; }(); -v7AA.O5B = function() { - return typeof v7AA.I5B.T9c === 'function' ? v7AA.I5B.T9c.apply(v7AA.I5B, arguments) : v7AA.I5B.T9c; +H4DD.z26 = function() { + return typeof H4DD.x26.A6n === 'function' ? H4DD.x26.A6n.apply(H4DD.x26, arguments) : H4DD.x26.A6n; +}; +H4DD.m5u = function() { + return typeof H4DD.O5u.A6n === 'function' ? H4DD.O5u.A6n.apply(H4DD.O5u, arguments) : H4DD.O5u.A6n; +}; +H4DD.H6A = function() { + return typeof H4DD.h6A.N6n === 'function' ? H4DD.h6A.N6n.apply(H4DD.h6A, arguments) : H4DD.h6A.N6n; +}; +H4DD.Z57 = function() { + return typeof H4DD.v57.A6n === 'function' ? H4DD.v57.A6n.apply(H4DD.v57, arguments) : H4DD.v57.A6n; +}; +H4DD.I5u = function() { + return typeof H4DD.O5u.N6n === 'function' ? H4DD.O5u.N6n.apply(H4DD.O5u, arguments) : H4DD.O5u.N6n; +}; +H4DD.j3W = function() { + return typeof H4DD.o3W.A6n === 'function' ? H4DD.o3W.A6n.apply(H4DD.o3W, arguments) : H4DD.o3W.A6n; }; -v7AA.O52 = function() { - return typeof v7AA.G52.r9c === 'function' ? v7AA.G52.r9c.apply(v7AA.G52, arguments) : v7AA.G52.r9c; +H4DD.O7C = function() { + return typeof H4DD.m5C.A6n === 'function' ? H4DD.m5C.A6n.apply(H4DD.m5C, arguments) : H4DD.m5C.A6n; }; -v7AA.J47 = function() { - return typeof v7AA.b47.r9c === 'function' ? v7AA.b47.r9c.apply(v7AA.b47, arguments) : v7AA.b47.r9c; +H4DD.y6n = function() { + return typeof H4DD.O6n.A6n === 'function' ? H4DD.O6n.A6n.apply(H4DD.O6n, arguments) : H4DD.O6n.A6n; }; -v7AA.U2S = function() { - return typeof v7AA.c2S.r9c === 'function' ? v7AA.c2S.r9c.apply(v7AA.c2S, arguments) : v7AA.c2S.r9c; +H4DD.W72 = function() { + return typeof H4DD.d72.N6n === 'function' ? H4DD.d72.N6n.apply(H4DD.d72, arguments) : H4DD.d72.N6n; }; -v7AA.l9W = function() { - return typeof v7AA.m9W.T9c === 'function' ? v7AA.m9W.T9c.apply(v7AA.m9W, arguments) : v7AA.m9W.T9c; +H4DD.T57 = function() { + return typeof H4DD.v57.A6n === 'function' ? H4DD.v57.A6n.apply(H4DD.v57, arguments) : H4DD.v57.A6n; }; -v7AA.m9W = function(K9W) { +H4DD.h6A = function(E6A) { return { - r9c: function() { - var Q9W, O9W = arguments; - switch (K9W) { + N6n: function() { + var N6A, u6A = arguments; + switch (E6A) { case 0: - Q9W = (O9W[1] - O9W[2]) * O9W[0]; + N6A = u6A[1] + u6A[0]; break; } - return Q9W; + return N6A; }, - T9c: function(W9W) { - K9W = W9W; + A6n: function(V6A) { + E6A = V6A; } }; }(); -v7AA.s5M = function() { - return typeof v7AA.w5M.r9c === 'function' ? v7AA.w5M.r9c.apply(v7AA.w5M, arguments) : v7AA.w5M.r9c; +H4DD.a71 = function() { + return typeof H4DD.G71.A6n === 'function' ? H4DD.G71.A6n.apply(H4DD.G71, arguments) : H4DD.G71.A6n; }; -v7AA.p8P = function() { - return typeof v7AA.y8P.r9c === 'function' ? v7AA.y8P.r9c.apply(v7AA.y8P, arguments) : v7AA.y8P.r9c; -}; -v7AA.I9c = function() { - return typeof v7AA.v9c.T9c === 'function' ? v7AA.v9c.T9c.apply(v7AA.v9c, arguments) : v7AA.v9c.T9c; -}; -v7AA.O4Q = function() { - return typeof v7AA.g4Q.T9c === 'function' ? v7AA.g4Q.T9c.apply(v7AA.g4Q, arguments) : v7AA.g4Q.T9c; -}; -v7AA.f2S = function() { - return typeof v7AA.c2S.T9c === 'function' ? v7AA.c2S.T9c.apply(v7AA.c2S, arguments) : v7AA.c2S.T9c; -}; -v7AA.F3u = function() { - return typeof v7AA.E3u.T9c === 'function' ? v7AA.E3u.T9c.apply(v7AA.E3u, arguments) : v7AA.E3u.T9c; -}; -v7AA.X8P = function() { - return typeof v7AA.y8P.r9c === 'function' ? v7AA.y8P.r9c.apply(v7AA.y8P, arguments) : v7AA.y8P.r9c; -}; -v7AA.O91 = function(x91) { +H4DD.O6n = function(D6n) { return { - r9c: function() { - var y91, P91 = arguments; - switch (x91) { - case 0: - y91 = P91[0] + P91[1]; + N6n: function() { + var o6n, T6n = arguments; + switch (D6n) { + case 2: + o6n = T6n[1] + T6n[0]; break; - case 6: - y91 = P91[0] + P91[3] + P91[1] + P91[2]; + case 7: + o6n = (T6n[2] / T6n[0] | T6n[1]) * T6n[3]; break; case 4: - y91 = -((P91[0] + P91[2]) / P91[1]); + o6n = T6n[2] * T6n[0] / T6n[1] | T6n[3]; break; - case 3: - y91 = P91[1] - P91[0]; + case 1: + o6n = T6n[0] === T6n[1]; break; - case 2: - y91 = P91[1] / P91[0]; + case 6: + o6n = T6n[0] / T6n[1]; + break; + case 0: + o6n = T6n[0] - T6n[1]; break; case 5: - y91 = (P91[3] + P91[0]) * P91[1] / P91[2]; + o6n = T6n[2] / T6n[0] | T6n[1]; break; - case 1: - y91 = -(P91[0] * (P91[1] / P91[3] - P91[2])); + case 3: + o6n = T6n[3] + T6n[0] / T6n[1] * T6n[2]; + break; + case 8: + o6n = T6n[1] - T6n[3] + -T6n[0] + T6n[2]; break; } - return y91; + return o6n; }, - T9c: function(F91) { - x91 = F91; + A6n: function(r6n) { + D6n = r6n; } }; }(); -v7AA.w5M = function(B5M) { +H4DD.u0X = function() { + return typeof H4DD.x0X.A6n === 'function' ? H4DD.x0X.A6n.apply(H4DD.x0X, arguments) : H4DD.x0X.A6n; +}; +H4DD.G71 = function(A71) { return { - r9c: function() { - var h5M, S5M = arguments; - switch (B5M) { - case 1: - h5M = S5M[1] - S5M[0]; + N6n: function() { + var x71, S71 = arguments; + switch (A71) { + case 4: + x71 = S71[1] / S71[0]; break; case 0: - h5M = S5M[0] + S5M[1]; + x71 = S71[0] + S71[1]; break; - } - return h5M; - }, - T9c: function(d5M) { - B5M = d5M; - } - }; -}(); -v7AA.G52 = function(U52) { - return { - r9c: function() { - var i52, m52 = arguments; - switch (U52) { - case 0: - i52 = m52[0] * m52[1]; + case 2: + x71 = S71[1] - S71[0]; + break; + case 1: + x71 = (S71[3] - S71[2]) * -S71[0] / S71[1]; + break; + case 3: + x71 = S71[1] + S71[2] + S71[0] + S71[3]; break; } - return i52; + return x71; }, - T9c: function(N52) { - U52 = N52; + A6n: function(H71) { + A71 = H71; } }; }(); -v7AA.s2S = function() { - return typeof v7AA.c2S.r9c === 'function' ? v7AA.c2S.r9c.apply(v7AA.c2S, arguments) : v7AA.c2S.r9c; -}; -v7AA.r5M = function() { - return typeof v7AA.w5M.T9c === 'function' ? v7AA.w5M.T9c.apply(v7AA.w5M, arguments) : v7AA.w5M.T9c; +H4DD.b3W = function() { + return typeof H4DD.o3W.N6n === 'function' ? H4DD.o3W.N6n.apply(H4DD.o3W, arguments) : H4DD.o3W.N6n; }; -v7AA.o52 = function() { - return typeof v7AA.G52.r9c === 'function' ? v7AA.G52.r9c.apply(v7AA.G52, arguments) : v7AA.G52.r9c; +H4DD.d5u = function() { + return typeof H4DD.O5u.A6n === 'function' ? H4DD.O5u.A6n.apply(H4DD.O5u, arguments) : H4DD.O5u.A6n; }; -v7AA.R5B = function() { - return typeof v7AA.I5B.T9c === 'function' ? v7AA.I5B.T9c.apply(v7AA.I5B, arguments) : v7AA.I5B.T9c; +H4DD.M3W = function() { + return typeof H4DD.o3W.A6n === 'function' ? H4DD.o3W.A6n.apply(H4DD.o3W, arguments) : H4DD.o3W.A6n; }; -v7AA.C2S = function() { - return typeof v7AA.c2S.T9c === 'function' ? v7AA.c2S.T9c.apply(v7AA.c2S, arguments) : v7AA.c2S.T9c; +H4DD.q71 = function() { + return typeof H4DD.G71.A6n === 'function' ? H4DD.G71.A6n.apply(H4DD.G71, arguments) : H4DD.G71.A6n; }; -v7AA.D9W = function() { - return typeof v7AA.m9W.r9c === 'function' ? v7AA.m9W.r9c.apply(v7AA.m9W, arguments) : v7AA.m9W.r9c; -}; -v7AA.I5B = function(b5B) { +H4DD.v57 = function(k57) { return { - r9c: function() { - var z5B, g5B = arguments; - switch (b5B) { - case 2: - z5B = g5B[0] - g5B[1]; + N6n: function() { + var I57, a57 = arguments; + switch (k57) { + case 0: + I57 = (a57[3] - a57[2] + a57[1]) / a57[0]; break; case 1: - z5B = g5B[0] / (g5B[2] + g5B[1]); - break; - case 0: - z5B = g5B[2] % (g5B[1] * g5B[0]); + I57 = a57[0] - a57[1]; break; } - return z5B; + return I57; }, - T9c: function(t5B) { - b5B = t5B; + A6n: function(h57) { + k57 = h57; } }; }(); -v7AA.c47 = function() { - return typeof v7AA.b47.T9c === 'function' ? v7AA.b47.T9c.apply(v7AA.b47, arguments) : v7AA.b47.T9c; -}; -v7AA.a22 = function() { - return typeof v7AA.A22.T9c === 'function' ? v7AA.A22.T9c.apply(v7AA.A22, arguments) : v7AA.A22.T9c; -}; -v7AA.X22 = function() { - return typeof v7AA.A22.T9c === 'function' ? v7AA.A22.T9c.apply(v7AA.A22, arguments) : v7AA.A22.T9c; -}; -v7AA.B3g = function() { - return typeof v7AA.l3g.T9c === 'function' ? v7AA.l3g.T9c.apply(v7AA.l3g, arguments) : v7AA.l3g.T9c; -}; -v7AA.s3u = function() { - return typeof v7AA.E3u.r9c === 'function' ? v7AA.E3u.r9c.apply(v7AA.E3u, arguments) : v7AA.E3u.r9c; + +function H4DD() {} +H4DD.I6A = function() { + return typeof H4DD.h6A.A6n === 'function' ? H4DD.h6A.A6n.apply(H4DD.h6A, arguments) : H4DD.h6A.A6n; }; -v7AA.x8P = function() { - return typeof v7AA.y8P.T9c === 'function' ? v7AA.y8P.T9c.apply(v7AA.y8P, arguments) : v7AA.y8P.T9c; +H4DD.X0X = function() { + return typeof H4DD.x0X.A6n === 'function' ? H4DD.x0X.A6n.apply(H4DD.x0X, arguments) : H4DD.x0X.A6n; }; -v7AA.h5B = function() { - return typeof v7AA.I5B.r9c === 'function' ? v7AA.I5B.r9c.apply(v7AA.I5B, arguments) : v7AA.I5B.r9c; +H4DD.i0X = function() { + return typeof H4DD.x0X.N6n === 'function' ? H4DD.x0X.N6n.apply(H4DD.x0X, arguments) : H4DD.x0X.N6n; }; -v7AA.X3g = function() { - return typeof v7AA.l3g.r9c === 'function' ? v7AA.l3g.r9c.apply(v7AA.l3g, arguments) : v7AA.l3g.r9c; +H4DD.p0X = function() { + return typeof H4DD.x0X.N6n === 'function' ? H4DD.x0X.N6n.apply(H4DD.x0X, arguments) : H4DD.x0X.N6n; }; -v7AA.v9c = function(b9c) { +H4DD.O5u = function(t9u) { return { - r9c: function() { - var d9c, C9c = arguments; - switch (b9c) { - case 2: - d9c = C9c[3] * C9c[0] / C9c[2] | C9c[1]; - break; - case 5: - d9c = C9c[2] * C9c[3] - C9c[1] + -C9c[0]; - break; - case 3: - d9c = C9c[0] / C9c[2] | C9c[1]; - break; - case 1: - d9c = C9c[1] - C9c[0]; - break; + N6n: function() { + var x9u, V9u = arguments; + switch (t9u) { case 0: - d9c = C9c[0] + C9c[1]; - break; - case 4: - d9c = C9c[0] === C9c[1]; + x9u = (V9u[1] - V9u[2]) * V9u[0]; break; } - return d9c; + return x9u; }, - T9c: function(g9c) { - b9c = g9c; + A6n: function(z9u) { + t9u = z9u; } }; }(); -v7AA.o9c = function() { - return typeof v7AA.v9c.T9c === 'function' ? v7AA.v9c.T9c.apply(v7AA.v9c, arguments) : v7AA.v9c.T9c; +H4DD.P72 = function() { + return typeof H4DD.d72.A6n === 'function' ? H4DD.d72.A6n.apply(H4DD.d72, arguments) : H4DD.d72.A6n; }; -v7AA.H22 = function() { - return typeof v7AA.A22.r9c === 'function' ? v7AA.A22.r9c.apply(v7AA.A22, arguments) : v7AA.A22.r9c; +H4DD.Y6n = function() { + return typeof H4DD.O6n.A6n === 'function' ? H4DD.O6n.A6n.apply(H4DD.O6n, arguments) : H4DD.O6n.A6n; }; -(function(t, ga) { - var rb, Fb, Da, vc, ma, ra, Qa, Nd, Od, Ca, Aa, Nb, Pd, wc, Qd, Rd, Zc, q, fa, jc, Sd, $c, A, P, aa, bb, fb, Oa, Y, Xa, Ga, Pb, xa, sa, ya, cb, xc, yb, jb, sb, yc, ad, Td, Hb, Ib, Qb, bd, Zb, ob, zc, Mb, cd, Ud, $b, dd, ed, fd, gd, pb, hd, id, jd, bc, Ab, Bb, cc, Ac, Bc, Cc, $a, Ye, Fa, Ob, Vd, Dc, lb, Wd, Ze, tb, Xd, Yd, Ec, Zd, $e, ic, $d, Ve, af, kd, Fc, bf, cf, Gd, df, Hd, ae, kb, kc, be, lc, ce, qb, de, ld, ee, md, Gc, fe, ff, Id, Hc, Vc, ge, ef, he, nd, ie, je, ke, od, Lb, me, le, gf, mc, ne, qd, nc, oe, pd, pe, qe, rd, se, te, Kc, Tb, dc, Ub, ue, ve, we, xe, ye, ze, Lc, hf, Ae, Be, td, Ce, eb, Rb, ac, Sb, Jb, Cb, Ic, ab, Gb, re, oc, Vb, De, jf, pc, Ee, kf, ec, Fe, Mc, ud, qc, vd, Ge, rc, He, Ie, Je, lf, sc, Ke, mf, nf, Le, sd, Jc, Me, Ue, Ne, of , qf, pf, fc, uc, rf, Fd, sf, Oe, Wc, pa, Xe; +H4DD.j9t = function() { + return typeof H4DD.s9t.A6n === 'function' ? H4DD.s9t.A6n.apply(H4DD.s9t, arguments) : H4DD.s9t.A6n; +}; +H4DD.b57 = function() { + return typeof H4DD.v57.N6n === 'function' ? H4DD.v57.N6n.apply(H4DD.v57, arguments) : H4DD.v57.N6n; +}; +(function(A, da) { + var vb, Fb, Ia, wc, ka, oa, $a, Jd, Kd, Ba, Ca, Nb, Ld, xc, Md, Nd, Yc, q, ha, ic, Od, Zc, G, R, ba, yb, lb, Wa, ca, ab, Ha, Pb, ta, qa, xa, db, yc, zb, qb, rb, zc, $c, Pd, Hb, Ib, Qb, ad, Zb, Ab, Ac, Mb, bd, Qd, $b, cd, dd, ed, fd, Bb, gd, hd, id, bc, Cb, Db, cc, Bc, Cc, Dc, gb, Te, Fa, Ob, Rd, Ec, ob, Sd, Ue, sb, Td, Ud, Fc, Vd, Ve, hc, Wd, Qe, We, jd, Gc, Xe, Ye, Dd, Ze, Ed, Xd, mb, jc, Yd, kc, Zd, pb, $d, kd, ae, ld, Hc, be, af, Fd, Ic, Vc, ce, $e, de, md, ee, fe, ge, nd, Lb, ie, he, bf, lc, je, pd, mc, ke, od, le, me, qd, oe, pe, Lc, Tb, dc, Ub, qe, re, se, te, ue, ve, Mc, cf, we, xe, sd, ye, fb, Rb, ac, Sb, Jb, Eb, Jc, bb, Gb, ne, nc, Vb, ze, df, oc, Ae, ef, ec, Be, Nc, td, pc, ud, Ce, qc, De, Ee, Fe, ff, rc, Ge, gf, hf, He, rd, Kc, Ie, Pe, Je, jf, lf, kf, fc, uc, mf, Cd, nf, Ke, Wc, na, Se; - function Ia(k, q) { - if (!q || "utf-8" === q) return Pc(k); + function Ra(l, q) { + if (!q || "utf-8" === q) return Pc(l); throw Error("unsupported encoding"); } - function Ma(k, q) { - if (!q || "utf-8" === q) return Qc(k); + function Oa(l, q) { + if (!q || "utf-8" === q) return Qc(l); throw Error("unsupported encoding"); } - function Pc(k) { - for (var q = 0, n, Ja = k.length, t = ""; q < Ja;) { - n = k[q++]; + function Pc(l) { + for (var q = 0, n, Na = l.length, G = ""; q < Na;) { + n = l[q++]; if (n & 128) - if (192 === (n & 224)) n = ((n & 31) << 6) + (k[q++] & 63); - else if (224 === (n & 240)) n = ((n & 15) << 12) + ((k[q++] & 63) << 6) + (k[q++] & 63); + if (192 === (n & 224)) n = ((n & 31) << 6) + (l[q++] & 63); + else if (224 === (n & 240)) n = ((n & 15) << 12) + ((l[q++] & 63) << 6) + (l[q++] & 63); else throw Error("unsupported character"); - t += String.fromCharCode(n); + G += String.fromCharCode(n); } - return t; + return G; } - function Qc(k) { - var q, n, Ja, t, A; - q = k.length; + function Qc(l) { + var q, n, Na, G, t; + q = l.length; n = 0; - t = 0; - for (Ja = q; Ja--;) A = k.charCodeAt(Ja), 128 > A ? n++ : n = 2048 > A ? n + 2 : n + 3; + G = 0; + for (Na = q; Na--;) t = l.charCodeAt(Na), 128 > t ? n++ : n = 2048 > t ? n + 2 : n + 3; n = new Uint8Array(n); - for (Ja = 0; Ja < q; Ja++) A = k.charCodeAt(Ja), 128 > A ? n[t++] = A : (2048 > A ? n[t++] = 192 | A >>> 6 : (n[t++] = 224 | A >>> 12, n[t++] = 128 | A >>> 6 & 63), n[t++] = 128 | A & 63); + for (Na = 0; Na < q; Na++) t = l.charCodeAt(Na), 128 > t ? n[G++] = t : (2048 > t ? n[G++] = 192 | t >>> 6 : (n[G++] = 224 | t >>> 12, n[G++] = 128 | t >>> 6 & 63), n[G++] = 128 | t & 63); return n; } - function Wa(k, n) { - if (k === n) return !0; - if (!k || !n || k.length != n.length) return !1; - for (var q = 0; q < k.length; ++q) - if (k[q] != n[q]) return !1; + function Xa(l, n) { + if (l === n) return !0; + if (!l || !n || l.length != n.length) return !1; + for (var q = 0; q < l.length; ++q) + if (l[q] != n[q]) return !1; return !0; } - function ib(k) { - var Ja; - if (!(k && k.constructor == Uint8Array || Array.isArray(k))) throw new TypeError("Cannot compute the hash code of " + k); - for (var n = 1, q = 0; q < k.length; ++q) { - Ja = k[q]; - if ("number" !== typeof Ja) throw new TypeError("Cannot compute the hash code over non-numeric elements: " + Ja); - n = 31 * n + Ja & 4294967295; + function eb(l) { + var Na; + if (!(l && l.constructor == Uint8Array || Array.isArray(l))) throw new TypeError("Cannot compute the hash code of " + l); + for (var n = 1, q = 0; q < l.length; ++q) { + Na = l[q]; + if ("number" !== typeof Na) throw new TypeError("Cannot compute the hash code over non-numeric elements: " + Na); + n = 31 * n + Na & 4294967295; } return n; } - function Ad(k, n) { - var H; - if (k === n) return !0; - if (!k || !n) return !1; + function xd(l, n) { + var A; + if (l === n) return !0; + if (!l || !n) return !1; n instanceof Array || (n = [n]); for (var q = 0; q < n.length; ++q) { - for (var Ja = n[q], A = !1, t = 0; t < k.length; ++t) { - H = k[t]; - if (Ja.equals && "function" === typeof Ja.equals && Ja.equals(H) || Ja == H) { - A = !0; + for (var Na = n[q], t = !1, G = 0; G < l.length; ++G) { + A = l[G]; + if (Na.equals && "function" === typeof Na.equals && Na.equals(A) || Na == A) { + t = !0; break; } } - if (!A) return !1; + if (!t) return !1; } return !0; } - function Bd(k, n) { - return Ad(k, n) && (k.length == n.length || Ad(n, k)); + function yd(l, n) { + return xd(l, n) && (l.length == n.length || xd(n, l)); } - function n(k, n, q) { - var Ja, A; - q && (Ja = q); - if ("object" !== typeof k || "function" !== typeof k.result || "function" !== typeof k.error) throw new TypeError("callback must be an object with function properties 'result' and 'error'."); + function n(l, n, q) { + var Na, t; + q && (Na = q); + if ("object" !== typeof l || "function" !== typeof l.result || "function" !== typeof l.error) throw new TypeError("callback must be an object with function properties 'result' and 'error'."); try { - A = n.call(Ja, k); - A !== ga && k.result(A); + t = n.call(Na, l); + t !== da && l.result(t); } catch (Rc) { try { - k.error(Rc); + l.error(Rc); } catch (Ea) {} } } - function H(k, q, A) { - if ("object" !== typeof k || "function" !== typeof k.timeout) throw new TypeError("callback must be an object with function properties 'result', 'timeout', and 'error'."); - n(k, q, A); + function t(l, q, t) { + if ("object" !== typeof l || "function" !== typeof l.timeout) throw new TypeError("callback must be an object with function properties 'result', 'timeout', and 'error'."); + n(l, q, t); } - function k(k, n, q) { - 1E5 > k && (k = 1E5 + k); + function l(l, n, q) { + 1E5 > l && (l = 1E5 + l); Object.defineProperties(this, { internalCode: { - value: k, + value: l, writable: !1, configurable: !1 }, @@ -580,8 +562,8 @@ v7AA.H22 = function() { }); } - function Sc(k) { - switch (k) { + function Sc(l) { + switch (l) { case Fa.PSK: case Fa.MGK: return !0; @@ -590,8 +572,8 @@ v7AA.H22 = function() { } } - function Cd(k) { - switch (k) { + function zd(l) { + switch (l) { case Fa.PSK: case Fa.MGK: case Fa.X509: @@ -604,414 +586,427 @@ v7AA.H22 = function() { } } - function Re(k) { - return k.toJSON(); + function Me(l) { + return l.toJSON(); } - function Dd(n, q) { + function Ad(n, q) { uc ? q.result(uc) : Promise.resolve().then(function() { - return ya.getKeyByName(n); + return xa.getKeyByName(n); })["catch"](function() { - return ya.generateKey({ + return xa.generateKey({ name: n }, !1, ["wrapKey", "unwrapKey"]); - }).then(function(k) { - uc = k; + }).then(function(l) { + uc = l; q.result(uc); })["catch"](function(n) { - q.error(new A(k.INTERNAL_EXCEPTION, "Unable to get system key")); + q.error(new G(l.INTERNAL_EXCEPTION, "Unable to get system key")); }); } - function Ed(k, n) { - var q, A, t; + function Bd(l, n) { + var q, t, G; q = n.masterToken; - A = n.userIdToken; - t = n.serviceTokens; + t = n.userIdToken; + G = n.serviceTokens; return { - NccpMethod: k.method, - UserId: k.userId, - UT: A && A.serialNumber, + NccpMethod: l.method, + UserId: l.userId, + UT: t && t.serialNumber, MT: q && q.serialNumber + ":" + q.sequenceNumber, - STCount: t && t.length + STCount: G && G.length }; } - function Se(k) { - return k.uniqueKey(); + function Ne(l) { + return l.uniqueKey(); } - function Te(t, H, Xb, nb, Yb) { - var za; + function Oe(t, A, Xb, Sa, Yb) { + var wa; - function Ja(k, M) { - k.errorCode === q.ENTITY_REAUTH || k.errorCode === q.ENTITYDATA_REAUTH ? (nb.clearCryptoContexts(), Ta()) : k.errorCode !== q.USER_REAUTH && k.errorCode !== q.USERDATA_REAUTH || Ea(M); + function Na(l, I) { + l.errorCode === q.ENTITY_REAUTH || l.errorCode === q.ENTITYDATA_REAUTH ? (Sa.clearCryptoContexts(), Pa()) : l.errorCode !== q.USER_REAUTH && l.errorCode !== q.USERDATA_REAUTH || Ea(I); } - function Ea(k) { - if (k = nb.getUserIdToken(k)) nb.removeUserIdToken(k), Ta(); + function Ea(l) { + if (l = Sa.getUserIdToken(l)) Sa.removeUserIdToken(l), Pa(); } - function W(k, M, R) { - var I; - I = []; - (function Q() { - k.read(-1, M, { - result: function(k) { - n(R, function() { - var E, K, L, R, M; - if (k) I.push(k), Q(); - else switch (I.length) { + function W(l, I, K) { + var B; + B = []; + (function V() { + l.read(-1, I, { + result: function(l) { + n(K, function() { + var C, M, J, K, I; + if (l) B.push(l), V(); + else switch (B.length) { case 0: return new Uint8Array(0); case 1: - return I[0]; + return B[0]; default: - R = I.length, M = 0; - for (K = E = 0; K < R; K++) E += I[K].length; - E = new Uint8Array(E); - for (K = 0; K < R; K++) L = I[K], E.set(L, M), M += L.length; - return E; + K = B.length, I = 0; + for (M = C = 0; M < K; M++) C += B[M].length; + C = new Uint8Array(C); + for (M = 0; M < K; M++) J = B[M], C.set(J, I), I += J.length; + return C; } }); }, timeout: function() { - R.timeout(); + K.timeout(); }, - error: function(k) { - R.error(k); + error: function(l) { + K.error(l); } }); }()); } - function Ta() { - nb.getStoreState({ - result: function(k) { - for (var M = za.slice(), R = 0; R < M.length; R++) M[R]({ - storeState: k + function Pa() { + Sa.getStoreState({ + result: function(l) { + for (var I = wa.slice(), K = 0; K < I.length; K++) I[K]({ + storeState: l }); }, timeout: function() { t.error("Timeout getting store state", "" + e); }, - error: function(k) { - t.error("Error getting store state", "" + k); + error: function(l) { + t.error("Error getting store state", "" + l); } }); } - za = []; - this.addEventHandler = function(k, M) { - switch (k) { + wa = []; + this.addEventHandler = function(l, I) { + switch (l) { case "shouldpersist": - za.push(M); + wa.push(I); } }; this.send = function(n) { - return new Promise(function(M, R) { - var I, J, Q; - I = n.timeout; - J = new Fd(t, Xb, n, nb.getKeyRequestData()); - Q = new Gd(n.url); + return new Promise(function(I, K) { + var B, L, V; + B = n.timeout; + L = new Cd(t, Xb, n, Sa.getKeyRequestData()); + V = new Dd(n.url); t.trace("Sending MSL request"); - H.request(Xb, J, Q, I, { - result: function(J) { - var E; - J && J.getMessageHeader(); + A.request(Xb, L, V, B, { + result: function(L) { + var C; + L && L.getMessageHeader(); t.trace("Received MSL response", { Method: n.method }); - if (J) { - n.allowTokenRefresh && Ta(); - E = J.getErrorHeader(); - E ? (Ja(E, n.userId), R({ + if (L) { + n.allowTokenRefresh && Pa(); + C = L.getErrorHeader(); + C ? (Na(C, n.userId), K({ success: !1, - error: E - })) : W(J, I, { - result: function(k) { - M({ + error: C + })) : W(L, B, { + result: function(l) { + I({ success: !0, - body: Ia(k) + body: Ra(l) }); }, timeout: function() { - R({ + K({ success: !1, subCode: Yb.MSL_READ_TIMEOUT }); }, - error: function(k) { - R({ + error: function(l) { + K({ success: !1, - error: k + error: l }); } }); - } else R({ + } else K({ success: !1, - error: new A(k.INTERNAL_EXCEPTION, "Null response stream"), + error: new G(l.INTERNAL_EXCEPTION, "Null response stream"), description: "Null response stream" }); }, timeout: function() { - R({ + K({ success: !1, subCode: Yb.MSL_REQUEST_TIMEOUT }); }, - error: function(k) { - R({ + error: function(l) { + K({ success: !1, - error: k + error: l }); } }); }); }; - this.hasUserIdToken = function(k) { - return !!nb.getUserIdToken(k); + this.hasUserIdToken = function(l) { + return !!Sa.getUserIdToken(l); }; this.getUserIdTokenKeys = function() { - return nb.getUserIdTokenKeys(); + return Sa.getUserIdTokenKeys(); }; this.removeUserIdToken = Ea; this.clearUserIdTokens = function() { - nb.clearUserIdTokens(); - Ta(); + Sa.clearUserIdTokens(); + Pa(); }; - this.isErrorReauth = function(k) { - return k && k.errorCode == q.USERDATA_REAUTH; + this.isErrorReauth = function(l) { + return l && l.errorCode == q.USERDATA_REAUTH; }; - this.isErrorHeader = function(k) { - return k instanceof Lb; + this.isErrorHeader = function(l) { + return l instanceof Lb; }; - this.getErrorCode = function(k) { - return k && k.errorCode; + this.getErrorCode = function(l) { + return l && l.errorCode; }; - this.getStateForMdx = function(k) { - var M, R; - M = nb.getMasterToken(); - k = nb.getUserIdToken(k); - R = nb.getCryptoContext(M); + this.getStateForMdx = function(l) { + var I, K; + I = Sa.getMasterToken(); + l = Sa.getUserIdToken(l); + K = Sa.getCryptoContext(I); return { - masterToken: M, - userIdToken: k, - cryptoContext: R + masterToken: I, + userIdToken: l, + cryptoContext: K }; }; - this.buildPlayDataRequest = function(k, M) { - var R; - R = new Hd(); - H.request(Xb, new Fd(t, Xb, k), R, k.timeout, { + this.buildPlayDataRequest = function(l, I) { + var K; + K = new Ed(); + A.request(Xb, new Cd(t, Xb, l), K, l.timeout, { result: function() { - M.result(R.getRequest()); + I.result(K.getRequest()); }, error: function() { - M.result(R.getRequest()); + I.result(K.getRequest()); }, timeout: function() { - M.timeout(); + I.timeout(); } }); }; - this.rekeyUserIdToken = function(k, M) { - nb.rekeyUserIdToken(k, M); - Ta(); + this.rekeyUserIdToken = function(l, I) { + Sa.rekeyUserIdToken(l, I); + Pa(); + }; + this.getServiceTokens = function(l) { + var I; + I = Sa.getMasterToken(); + (l = Sa.getUserIdToken(l)) && !l.isBoundTo(I) && (l = da); + return Sa.getServiceTokens(I, l); + }; + this.removeServiceToken = function(l) { + var I; + I = Sa.getMasterToken(); + Sa.getServiceTokens(I).find(function(K) { + return K.name === l; + }) && (Sa.removeServiceTokens(l, I), Pa()); }; } - function Tc(n, q, t, H, Yb, P) { - function Ja(q) { + function Tc(n, q, t, A, Yb, R) { + function Sa(q) { var W; return Promise.resolve().then(function() { W = n.authenticationKeyNames[q]; - if (!W) throw new A(k.KEY_IMPORT_ERROR, "Invalid config keyName " + q); - return ya.getKeyByName(W); + if (!W) throw new G(l.KEY_IMPORT_ERROR, "Invalid config keyName " + q); + return xa.getKeyByName(W); }).then(function(n) { - return new Promise(function(q, M) { + return new Promise(function(q, I) { Zb(n, { result: q, error: function() { - M(new A(k.KEY_IMPORT_ERROR, "Unable to create " + W + " CipherKey")); + I(new G(l.KEY_IMPORT_ERROR, "Unable to create " + W + " CipherKey")); } }); }); })["catch"](function(n) { - throw new A(k.KEY_IMPORT_ERROR, "Unable to import " + W, n); + throw new G(l.KEY_IMPORT_ERROR, "Unable to import " + W, n); }); } return Promise.resolve().then(function() { - if (!ya.getKeyByName) throw new A(k.INTERNAL_EXCEPTION, "No WebCrypto cryptokeys"); - return Promise.all([Ja("e"), Ja("h"), Ja("w")]); - }).then(function(k) { - var W, za, Ka; + if (!xa.getKeyByName) throw new G(l.INTERNAL_EXCEPTION, "No WebCrypto cryptokeys"); + return Promise.all([Sa("e"), Sa("h"), Sa("w")]); + }).then(function(l) { + var W, wa, ya; W = {}; - W[q] = new t(n.esn, k[0], k[1], k[2]); - k = new H(n.esn); - za = new Ue(); - za = [new Yb(za)]; - Ka = new P(q); + W[q] = new t(n.esn, l[0], l[1], l[2]); + l = new A(n.esn); + wa = new Pe(); + wa = [new Yb(wa)]; + ya = new R(q); return { entityAuthFactories: W, - entityAuthData: k, - keyExchangeFactories: za, - keyRequestData: Ka + entityAuthData: l, + keyExchangeFactories: wa, + keyRequestData: ya }; }); } function Uc(n, q, t) { - var hc; + var gc; - function H() { + function A() { return Promise.resolve().then(function() { - return ya.generateKey(q, !1, ["wrapKey", "unwrapKey"]); - }).then(function(k) { - return Ja(k.publicKey, k.privateKey); + return xa.generateKey(q, !1, ["wrapKey", "unwrapKey"]); + }).then(function(l) { + return Na(l.publicKey, l.privateKey); }); } - function Ja(n, q) { + function Na(n, q) { return Promise.all([new Promise(function(q, W) { Mb(n, { result: q, error: function(n) { - W(new A(k.INTERNAL_EXCEPTION, "Unable to create keyx public key", n)); + W(new G(l.INTERNAL_EXCEPTION, "Unable to create keyx public key", n)); } }); }), new Promise(function(n, W) { $b(q, { result: n, error: function(n) { - W(new A(k.INTERNAL_EXCEPTION, "Unable to create keyx private key", n)); + W(new G(l.INTERNAL_EXCEPTION, "Unable to create keyx private key", n)); } }); - })]).then(function(k) { - k = new Vc("rsaKeypairId", t, k[0], k[1]); - hc && (k.storeData = { + })]).then(function(l) { + l = new Vc("rsaKeypairId", t, l[0], l[1]); + gc && (l.storeData = { keyxPublicKey: n, keyxPrivateKey: q }); - return k; + return l; }); } - hc = !n.systemKeyWrapFormat; + gc = !n.systemKeyWrapFormat; return Promise.resolve().then(function() { - var k, q; - k = n.storeState; - q = k && k.keyxPublicKey; - k = k && k.keyxPrivateKey; - return hc && q && k ? Ja(q, k) : H(); - }).then(function(k) { - var q, Ta, za; + var l, q; + l = n.storeState; + q = l && l.keyxPublicKey; + l = l && l.keyxPrivateKey; + return gc && q && l ? Na(q, l) : A(); + }).then(function(l) { + var q, Pa, wa; q = {}; - q[Fa.NONE] = new Ve(); - Ta = new ic(n.esn); - za = [new Id()]; + q[Fa.NONE] = new Qe(); + Pa = new hc(n.esn); + wa = [new Fd()]; return { entityAuthFactories: q, - entityAuthData: Ta, - keyExchangeFactories: za, - keyRequestData: k, - createKeyRequestData: hc ? H : ga + entityAuthData: Pa, + keyExchangeFactories: wa, + keyRequestData: l, + createKeyRequestData: gc ? A : da }; }); } - function Ua() { - Ua = function() {}; - pa.Symbol || (pa.Symbol = We); + function La() { + La = function() {}; + na.Symbol || (na.Symbol = Re); } - function We(k) { - return "jscomp_symbol_" + (k || "") + Xe++; + function Re(l) { + return "jscomp_symbol_" + (l || "") + Se++; } - function Za() { - var k; - Ua(); - k = pa.Symbol.iterator; - k || (k = pa.Symbol.iterator = pa.Symbol("iterator")); - "function" != typeof Array.prototype[k] && Wc(Array.prototype, k, { + function Ya() { + var l; + La(); + l = na.Symbol.iterator; + l || (l = na.Symbol.iterator = na.Symbol("iterator")); + "function" != typeof Array.prototype[l] && Wc(Array.prototype, l, { configurable: !0, writable: !0, value: function() { - return Jd(this); + return Gd(this); } }); - Za = function() {}; + Ya = function() {}; } - function Jd(k) { + function Gd(l) { var n; n = 0; - return Kd(function() { - return n < k.length ? { + return Hd(function() { + return n < l.length ? { done: !1, - value: k[n++] + value: l[n++] } : { done: !0 }; }); } - function Kd(k) { - Za(); - k = { - next: k + function Hd(l) { + Ya(); + l = { + next: l }; - k[pa.Symbol.iterator] = function() { + l[na.Symbol.iterator] = function() { return this; }; - return k; + return l; } - function Na(k) { + function za(l) { var n; - Za(); - Ua(); - Za(); - n = k[Symbol.iterator]; - return n ? n.call(k) : Jd(k); + Ya(); + La(); + Ya(); + n = l[Symbol.iterator]; + return n ? n.call(l) : Gd(l); } - function oa(k, n) { - var A; + function ia(l, n) { + var G; function q() {} q.prototype = n.prototype; - k.prototype = new q(); - k.prototype.constructor = k; + l.prototype = new q(); + l.prototype.constructor = l; for (var t in n) if (Object.defineProperties) { - A = Object.getOwnPropertyDescriptor(n, t); - A && Object.defineProperty(k, t, A); - } else k[t] = n[t]; + G = Object.getOwnPropertyDescriptor(n, t); + G && Object.defineProperty(l, t, G); + } else l[t] = n[t]; } - function Xc(k) { - if (!(k instanceof Array)) { - k = Na(k); - for (var n, q = []; !(n = k.next()).done;) q.push(n.value); - k = q; + function wb(l) { + if (!(l instanceof Array)) { + l = za(l); + for (var n, q = []; !(n = l.next()).done;) q.push(n.value); + l = q; } - return k; + return l; } - function Va(k, n) { - var q, A; + function Va(l, n) { + var q, G; if (n) { - q = pa; - k = k.split("."); - for (var t = 0; t < k.length - 1; t++) { - A = k[t]; - A in q || (q[A] = {}); - q = q[A]; - } - k = k[k.length - 1]; - t = q[k]; + q = na; + l = l.split("."); + for (var t = 0; t < l.length - 1; t++) { + G = l[t]; + G in q || (q[G] = {}); + q = q[G]; + } + l = l[l.length - 1]; + t = q[l]; n = n(t); - n != t && null != n && Wc(q, k, { + n != t && null != n && Wc(q, l, { configurable: !0, writable: !0, value: n @@ -1019,22 +1014,22 @@ v7AA.H22 = function() { } } - function xb(k, n) { - return Object.prototype.hasOwnProperty.call(k, n); + function xb(l, n) { + return Object.prototype.hasOwnProperty.call(l, n); } - function Yc(k, n) { + function Xc(l, n) { var q, t; - Za(); - k instanceof String && (k += ""); + Ya(); + l instanceof String && (l += ""); q = 0; t = { next: function() { - var A; - if (q < k.length) { - A = q++; + var G; + if (q < l.length) { + G = q++; return { - value: n(A, k[A]), + value: n(G, l[G]), done: !1 }; } @@ -1053,64 +1048,64 @@ v7AA.H22 = function() { return t; } - function Ld(k, n, q) { - var H; - k instanceof String && (k = String(k)); - for (var t = k.length, A = 0; A < t; A++) { - H = k[A]; - if (n.call(q, H, A, k)) return { - Mh: A, - RR: H + function vc(l, n, q) { + if (null == l) throw new TypeError("The 'this' value for String.prototype." + q + " must not be null or undefined"); + if (n instanceof RegExp) throw new TypeError("First argument to String.prototype." + q + " must not be a regular expression"); + return l + ""; + } + + function Id(l, n, q) { + var A; + l instanceof String && (l = String(l)); + for (var t = l.length, G = 0; G < t; G++) { + A = l[G]; + if (n.call(q, A, G, l)) return { + gi: G, + KV: A }; } return { - Mh: -1, - RR: void 0 + gi: -1, + KV: void 0 }; } - - function Md(k, n, q) { - if (null == k) throw new TypeError("The 'this' value for String.prototype." + q + " must not be null or undefined"); - if (n instanceof RegExp) throw new TypeError("First argument to String.prototype." + q + " must not be a regular expression"); - return k + ""; - } - Fb = t.nfCrypto || t.msCrypto || t.webkitCrypto || t.crypto; - Da = Fb && (Fb.webkitSubtle || Fb.subtle); - vc = t.nfCryptokeys || t.msCryptokeys || t.webkitCryptokeys || t.cryptokeys; - (function(k) { + Fb = A.nfCrypto || A.msCrypto || A.webkitCrypto || A.crypto; + Ia = Fb && (Fb.webkitSubtle || Fb.subtle); + wc = A.nfCryptokeys || A.msCryptokeys || A.webkitCryptokeys || A.cryptokeys; + (function(l) { var n, q; n = function() { - function k(k, q) { - k instanceof n ? (this.abv = k.abv, this.position = k.position) : (this.abv = k, this.position = q || 0); + function l(l, q) { + l instanceof n ? (this.abv = l.abv, this.position = l.position) : (this.abv = l, this.position = q || 0); } - k.prototype = { + l.prototype = { readByte: function() { return this.abv[this.position++]; }, - writeByte: function(k) { - this.abv[this.position++] = k; + writeByte: function(l) { + this.abv[this.position++] = l; }, - peekByte: function(k) { - return this.abv[k]; + peekByte: function(l) { + return this.abv[l]; }, - copyBytes: function(k, n, q) { + copyBytes: function(l, n, q) { var W; W = new Uint8Array(this.abv.buffer, this.position, q); - k = new Uint8Array(k.buffer, n, q); - W.set(k); + l = new Uint8Array(l.buffer, n, q); + W.set(l); this.position += q; }, - seek: function(k) { - this.position = k; + seek: function(l) { + this.position = l; }, - skip: function(k) { - this.position += k; + skip: function(l) { + this.position += l; }, getPosition: function() { return this.position; }, - setPosition: function(k) { - this.position = k; + setPosition: function(l) { + this.position = l; }, getRemaining: function() { return this.abv.length - this.position; @@ -1125,39 +1120,39 @@ v7AA.H22 = function() { return "AbvStream: pos " + (this.getPosition().toString() + " of " + this.getLength().toString()); } }; - return k; + return l; }(); q = {}; (function() { - var L, E, K, La, qa, Ha, va, f, c; + var J, C, M, Ka, pa, Aa, sa, g, d; - function k(a, b) { + function l(a, b) { var c; b.writeByte(a.tagClass << 6 | a.constructed << 5 | a.tag); c = a.payloadLen; if (128 > c) b.writeByte(c); else { - for (var h = c, l = 0; h;) ++l, h >>= 8; - b.writeByte(128 | l); - for (h = 0; h < l; ++h) b.writeByte(c >> 8 * (l - h - 1) & 255); + for (var d = c, k = 0; d;) ++k, d >>= 8; + b.writeByte(128 | k); + for (d = 0; d < k; ++d) b.writeByte(c >> 8 * (k - d - 1) & 255); } if (a.child) - for (a.tag == L.BIT_STRING && b.writeByte(0), c = a._child; c;) { - if (!k(c, b)) return !1; + for (a.tag == J.BIT_STRING && b.writeByte(0), c = a._child; c;) { + if (!l(c, b)) return !1; c = c.next; } else switch (a.tag) { - case L.INTEGER: + case J.INTEGER: a.backingStore[a.dataIdx] >> 7 && b.writeByte(0); b.copyBytes(a.backingStore, a.dataIdx, a.dataLen); break; - case L.BIT_STRING: + case J.BIT_STRING: b.writeByte(0); b.copyBytes(a.backingStore, a.dataIdx, a.dataLen); break; - case L.OCTET_STRING: + case J.OCTET_STRING: b.copyBytes(a.backingStore, a.dataIdx, a.dataLen); break; - case L.OBJECT_IDENTIFIER: + case J.OBJECT_IDENTIFIER: b.copyBytes(a.backingStore, a.dataIdx, a.dataLen); } return !0; @@ -1169,57 +1164,57 @@ v7AA.H22 = function() { c = b & 127; if (c == b) return c; if (3 < c || 0 === c) return -1; - for (var h = b = 0; h < c; ++h) b = b << 8 | a.readByte(); + for (var d = b = 0; d < c; ++d) b = b << 8 | a.readByte(); return b; } - function A(a, b, c) { - var d, l, g, m, p, r, u; + function G(a, b, c) { + var d, k, f, p, m, r, u; d = a.backingStore; - l = new n(d, b); + k = new n(d, b); b += c; c = a; - if (8 < qa++) return ga; - for (; l.getPosition() < b;) { - l.getPosition(); - p = l.readByte(); - if (31 == (p & 31)) { - for (m = 0; p & 128;) m <<= 8, m |= p & 127; - p = m; + if (8 < pa++) return da; + for (; k.getPosition() < b;) { + k.getPosition(); + m = k.readByte(); + if (31 == (m & 31)) { + for (p = 0; m & 128;) p <<= 8, p |= m & 127; + m = p; } - g = p; - m = g & 31; - if (0 > m || 30 < m) return ga; - p = t(l); - if (0 > p || p > l.getRemaining()) return ga; - c.constructed = g & 32; - c.tagClass = (g & 192) >> 6; - c.tag = m; - c.dataLen = p; - c.dataIdx = l.getPosition(); - m = l; - r = g; - g = p; - if (r & 32) m = !0; - else if (r < L.BIT_STRING || r > L.OCTET_STRING) m = !1; + f = m; + p = f & 31; + if (0 > p || 30 < p) return da; + m = t(k); + if (0 > m || m > k.getRemaining()) return da; + c.constructed = f & 32; + c.tagClass = (f & 192) >> 6; + c.tag = p; + c.dataLen = m; + c.dataIdx = k.getPosition(); + p = k; + r = f; + f = m; + if (r & 32) p = !0; + else if (r < J.BIT_STRING || r > J.OCTET_STRING) p = !1; else { - u = new n(m); - r == L.BIT_STRING && u.skip(1); - u.readByte() >> 6 & 1 ? m = !1 : (r = t(u), m = u.getPosition() - m.getPosition() + r == g); + u = new n(p); + r == J.BIT_STRING && u.skip(1); + u.readByte() >> 6 & 1 ? p = !1 : (r = t(u), p = u.getPosition() - p.getPosition() + r == f); } - m && (m = l.getPosition(), g = p, c.tag == L.BIT_STRING && (c.dataIdx++, c.dataLen--, m++, g--), c.child = new E(d, c), A(c.child, m, g)); - c.tag == L.INTEGER && (m = l.getPosition(), 0 == l.peekByte(m) && l.peekByte(m + 1) >> 7 && (c.dataIdx++, c.dataLen--)); - l.skip(p); - l.getPosition() < b && (c.next = new E(d, c.parent), c = c.next); + p && (p = k.getPosition(), f = m, c.tag == J.BIT_STRING && (c.dataIdx++, c.dataLen--, p++, f--), c.child = new C(d, c), G(c.child, p, f)); + c.tag == J.INTEGER && (p = k.getPosition(), 0 == k.peekByte(p) && k.peekByte(p + 1) >> 7 && (c.dataIdx++, c.dataLen--)); + k.skip(m); + k.getPosition() < b && (c.next = new C(d, c.parent), c = c.next); } - qa--; + pa--; return a; } - function H(a, b, c) { + function A(a, b, c) { if (9 != c) return !1; for (c = 0; 9 > c; ++c) - if (a[b++] != Ha[c]) return !1; + if (a[b++] != Aa[c]) return !1; return !0; } @@ -1227,114 +1222,114 @@ v7AA.H22 = function() { var b; if (!(a && a.child && a.child.next && a.child.child && a.child.next.child)) return !1; b = a.child.child; - return H(b.backingStore, b.dataIdx, b.dataLen) && 2 == a.nChildren && 2 == a.child.nChildren && 2 == a.child.next.child.nChildren ? !0 : !1; + return A(b.backingStore, b.dataIdx, b.dataLen) && 2 == a.nChildren && 2 == a.child.nChildren && 2 == a.child.next.child.nChildren ? !0 : !1; } - function Ta(a) { + function Pa(a) { var b; if (!(a && a.child && a.child.next && a.child.next.child && a.child.next.next && a.child.next.next.child)) return !1; b = a.child.next.child; - return H(b.backingStore, b.dataIdx, b.dataLen) && 3 == a.nChildren && 2 == a.child.next.nChildren && 9 == a.child.next.next.child.nChildren ? !0 : !1; + return A(b.backingStore, b.dataIdx, b.dataLen) && 3 == a.nChildren && 2 == a.child.next.nChildren && 9 == a.child.next.next.child.nChildren ? !0 : !1; } - function za(a) { + function wa(a) { var b, c; - b = K.createSequenceNode(); - c = new La(b); - c.addChild(K.createSequenceNode()); - c.addChild(K.createOidNode(Ha)); - c.addSibling(K.createNullNode()); - c.addToParent(b, K.createBitStringNode(null)); - c.addChild(K.createSequenceNode()); - c.addChild(K.createIntegerNode(a.n)); - c.addSibling(K.createIntegerNode(a.e)); + b = M.createSequenceNode(); + c = new Ka(b); + c.addChild(M.createSequenceNode()); + c.addChild(M.createOidNode(Aa)); + c.addSibling(M.createNullNode()); + c.addToParent(b, M.createBitStringNode(null)); + c.addChild(M.createSequenceNode()); + c.addChild(M.createIntegerNode(a.n)); + c.addSibling(M.createIntegerNode(a.e)); return b; } - function Ka(a) { + function ya(a) { var b; a = a.child.next.child.child; b = a.data; a = a.next; - return new va(b, a.data, null, null); + return new sa(b, a.data, null, null); } - function M(a) { + function I(a) { var b, c; - b = K.createSequenceNode(); - c = new La(b); - c.addChild(K.createIntegerNode(new Uint8Array([0]))); - c.addSibling(K.createSequenceNode()); - c.addChild(K.createOidNode(Ha)); - c.addSibling(K.createNullNode()); - c.addToParent(b, K.createOctetStringNode(null)); - c.addChild(K.createSequenceNode()); - c.addChild(K.createIntegerNode(new Uint8Array([0]))); - c.addSibling(K.createIntegerNode(a.n)); - c.addSibling(K.createIntegerNode(a.e)); - c.addSibling(K.createIntegerNode(a.d)); - c.addSibling(K.createIntegerNode(a.p)); - c.addSibling(K.createIntegerNode(a.q)); - c.addSibling(K.createIntegerNode(a.dp)); - c.addSibling(K.createIntegerNode(a.dq)); - c.addSibling(K.createIntegerNode(a.qi)); + b = M.createSequenceNode(); + c = new Ka(b); + c.addChild(M.createIntegerNode(new Uint8Array([0]))); + c.addSibling(M.createSequenceNode()); + c.addChild(M.createOidNode(Aa)); + c.addSibling(M.createNullNode()); + c.addToParent(b, M.createOctetStringNode(null)); + c.addChild(M.createSequenceNode()); + c.addChild(M.createIntegerNode(new Uint8Array([0]))); + c.addSibling(M.createIntegerNode(a.n)); + c.addSibling(M.createIntegerNode(a.e)); + c.addSibling(M.createIntegerNode(a.d)); + c.addSibling(M.createIntegerNode(a.p)); + c.addSibling(M.createIntegerNode(a.q)); + c.addSibling(M.createIntegerNode(a.dp)); + c.addSibling(M.createIntegerNode(a.dq)); + c.addSibling(M.createIntegerNode(a.qi)); return b; } - function R(a) { + function K(a) { var b; b = []; a = a.child.next.next.child.child.next; for (var c = 0; 8 > c; c++) b.push(a.data), a = a.next; - return new f(b[0], b[1], b[2], b[3], b[4], b[5], b[6], b[7]); + return new g(b[0], b[1], b[2], b[3], b[4], b[5], b[6], b[7]); } - function I(a, b, d, h) { - if (!(a instanceof va || a instanceof f)) return ga; - if (d) - for (var l = 0; l < d.length; ++l) - if (-1 == c.indexOf(d[l])) return ga; + function B(a, b, c, h) { + if (!(a instanceof sa || a instanceof g)) return da; + if (c) + for (var k = 0; k < c.length; ++k) + if (-1 == d.indexOf(c[k])) return da; b = { kty: "RSA", alg: b, - key_ops: d || [], - ext: h == ga ? !1 : h, - n: ma(a.n, !0), - e: ma(a.e, !0) + key_ops: c || [], + ext: h == da ? !1 : h, + n: ka(a.n, !0), + e: ka(a.e, !0) }; - a instanceof f && (b.d = ma(a.d, !0), b.p = ma(a.p, !0), b.q = ma(a.q, !0), b.dp = ma(a.dp, !0), b.dq = ma(a.dq, !0), b.qi = ma(a.qi, !0)); + a instanceof g && (b.d = ka(a.d, !0), b.p = ka(a.p, !0), b.q = ka(a.q, !0), b.dp = ka(a.dp, !0), b.dq = ka(a.dq, !0), b.qi = ka(a.qi, !0)); return b; } - function J(a) { - var b, c, h, l, g, m, p, r, u, v; - if (!a.kty || "RSA" != a.kty || !a.n || !a.e) return ga; + function L(a) { + var b, c, d, k, f, p, m, r, u, x; + if (!a.kty || "RSA" != a.kty || !a.n || !a.e) return da; b = "RSA1_5 RSA-OAEP RSA-OAEP-256 RSA-OAEP-384 RSA-OAEP-512 RS256 RS384 RS512".split(" "); - if (a.alg && -1 == b.indexOf(a.alg)) return ga; + if (a.alg && -1 == b.indexOf(a.alg)) return da; b = []; a.use ? "enc" == a.use ? b = ["encrypt", "decrypt", "wrap", "unwrap"] : "sig" == a.use && (b = ["sign", "verify"]) : b = a.key_ops; c = a.ext; - h = ra(a.n, !0); - l = ra(a.e, !0); + d = oa(a.n, !0); + k = oa(a.e, !0); if (a.d) { - g = ra(a.d, !0); - m = ra(a.p, !0); - p = ra(a.q, !0); - r = ra(a.dp, !0); - u = ra(a.dq, !0); - v = ra(a.qi, !0); - return new f(h, l, g, m, p, r, u, v, a.alg, b, c); + f = oa(a.d, !0); + p = oa(a.p, !0); + m = oa(a.q, !0); + r = oa(a.dp, !0); + u = oa(a.dq, !0); + x = oa(a.qi, !0); + return new g(d, k, f, p, m, r, u, x, a.alg, b, c); } - return new va(h, l, c, b); + return new sa(d, k, c, b); } - function Q(a, b, c, h) { + function V(a, b, c, d) { this.der = a; this.type = b; this.keyOps = c; - this.extractable = h; + this.extractable = d; } - L = { + J = { BER: 0, BOOLEAN: 1, INTEGER: 2, @@ -1367,18 +1362,18 @@ v7AA.H22 = function() { CHARACTER_STRING: 29, BMP_STRING: 30 }; - E = function(a, b, c, h, l, g) { + C = function(a, b, c, d, k, f) { this._data = a; - this._parent = b || ga; + this._parent = b || da; this._constructed = c || !1; this._tagClass = 0; - this._tag = h || 0; - this._dataIdx = l || 0; - this._dataLen = g || 0; + this._tag = d || 0; + this._dataIdx = k || 0; + this._dataLen = f || 0; }; - E.prototype = { - _child: ga, - _next: ga, + C.prototype = { + _child: da, + _next: da, get data() { return new Uint8Array(this._data.buffer.slice(this._dataIdx, this._dataIdx + this._dataLen)); }, @@ -1439,23 +1434,23 @@ v7AA.H22 = function() { a = 0; if (this._child) { for (var b = this._child; b;) a += b.length, b = b.next; - this._tag == L.BIT_STRING && a++; + this._tag == J.BIT_STRING && a++; } else switch (this._tag) { - case L.INTEGER: + case J.INTEGER: a = this._dataLen; this._data[this._dataIdx] >> 7 && a++; break; - case L.BIT_STRING: + case J.BIT_STRING: a = this._dataLen + 1; break; - case L.OCTET_STRING: + case J.OCTET_STRING: a = this._dataLen; break; - case L.NULL: + case J.NULL: a = 0; break; - case L.OBJECT_IDENTIFIER: - H(this._data, this._dataIdx, this._dataLen) && (a = 9); + case J.OBJECT_IDENTIFIER: + A(this._data, this._dataIdx, this._dataLen) && (a = 9); } return a; }, @@ -1469,40 +1464,40 @@ v7AA.H22 = function() { get der() { var a, b; a = this.length; - if (!a) return ga; + if (!a) return da; a = new Uint8Array(a); b = new n(a); - return k(this, b) ? a : ga; + return l(this, b) ? a : da; }, get nChildren() { for (var a = 0, b = this._child; b;) a++, b = b.next; return a; } }; - K = { + M = { createSequenceNode: function() { - return new E(null, null, !0, L.SEQUENCE, null, null); + return new C(null, null, !0, J.SEQUENCE, null, null); }, createOidNode: function(a) { - return new E(a, null, !1, L.OBJECT_IDENTIFIER, 0, a ? a.length : 0); + return new C(a, null, !1, J.OBJECT_IDENTIFIER, 0, a ? a.length : 0); }, createNullNode: function() { - return new E(null, null, !1, L.NULL, null, null); + return new C(null, null, !1, J.NULL, null, null); }, createBitStringNode: function(a) { - return new E(a, null, !1, L.BIT_STRING, 0, a ? a.length : 0); + return new C(a, null, !1, J.BIT_STRING, 0, a ? a.length : 0); }, createIntegerNode: function(a) { - return new E(a, null, !1, L.INTEGER, 0, a ? a.length : 0); + return new C(a, null, !1, J.INTEGER, 0, a ? a.length : 0); }, createOctetStringNode: function(a) { - return new E(a, null, !1, L.OCTET_STRING, 0, a ? a.length : 0); + return new C(a, null, !1, J.OCTET_STRING, 0, a ? a.length : 0); } }; - La = function(a) { + Ka = function(a) { this._currentNode = this._rootNode = a; }; - La.prototype = { + Ka.prototype = { addChild: function(a) { this.addTo(this._currentNode, a); }, @@ -1528,84 +1523,84 @@ v7AA.H22 = function() { return !1; } }; - qa = 0; - Ha = new Uint8Array([42, 134, 72, 134, 247, 13, 1, 1, 1]); - va = function(a, b, c, h) { + pa = 0; + Aa = new Uint8Array([42, 134, 72, 134, 247, 13, 1, 1, 1]); + sa = function(a, b, c, d) { this.n = a; this.e = b; this.ext = c; - this.keyOps = h; + this.keyOps = d; }; - f = function(a, b, c, h, l, g, m, p, r, u, v) { + g = function(a, b, c, d, k, f, p, m, r, u, x) { this.n = a; this.e = b; this.d = c; - this.p = h; - this.q = l; - this.dp = g; - this.dq = m; - this.qi = p; + this.p = d; + this.q = k; + this.dp = f; + this.dq = p; + this.qi = m; this.alg = r; this.keyOps = u; - this.ext = v; + this.ext = x; }; - c = "sign verify encrypt decrypt wrapKey unwrapKey deriveKey deriveBits".split(" "); - Q.prototype.getDer = function() { + d = "sign verify encrypt decrypt wrapKey unwrapKey deriveKey deriveBits".split(" "); + V.prototype.getDer = function() { return this.der; }; - Q.prototype.getType = function() { + V.prototype.getType = function() { return this.type; }; - Q.prototype.getKeyOps = function() { + V.prototype.getKeyOps = function() { return this.keyOps; }; - Q.prototype.getExtractable = function() { + V.prototype.getExtractable = function() { return this.extractable; }; q.parse = function(a) { - qa = 0; - return A(new E(a), 0, a.length); + pa = 0; + return G(new C(a), 0, a.length); }; q.show = function(a, b) {}; q.isRsaSpki = W; - q.isRsaPkcs8 = Ta; - q.NodeFactory = K; - q.Builder = La; - q.tagVal = L; - q.RsaPublicKey = va; - q.RsaPrivateKey = f; - q.buildRsaSpki = za; + q.isRsaPkcs8 = Pa; + q.NodeFactory = M; + q.Builder = Ka; + q.tagVal = J; + q.RsaPublicKey = sa; + q.RsaPrivateKey = g; + q.buildRsaSpki = wa; q.parseRsaSpki = function(a) { a = q.parse(a); - return W ? Ka(a) : ga; + return W ? ya(a) : da; }; - q.buildRsaPkcs8 = M; + q.buildRsaPkcs8 = I; q.parseRsaPkcs8 = function(a) { a = q.parse(a); - return Ta(a) ? R(a) : ga; + return Pa(a) ? K(a) : da; }; - q.buildRsaJwk = I; - q.parseRsaJwk = J; - q.RsaDer = Q; - q.rsaDerToJwk = function(a, b, c, h) { + q.buildRsaJwk = B; + q.parseRsaJwk = L; + q.RsaDer = V; + q.rsaDerToJwk = function(a, b, c, d) { a = q.parse(a); - if (!a) return ga; - if (W(a)) a = Ka(a); - else if (Ta(a)) a = R(a); - else return ga; - return I(a, b, c, h); + if (!a) return da; + if (W(a)) a = ya(a); + else if (Pa(a)) a = K(a); + else return da; + return B(a, b, c, d); }; q.jwkToRsaDer = function(a) { var b, c; - a = J(a); - if (!a) return ga; - if (a instanceof va) b = "spki", c = za(a).der; - else if (a instanceof f) b = "pkcs8", c = M(a).der; - else return ga; - return new Q(c, b, a.keyOps, a.ext); + a = L(a); + if (!a) return da; + if (a instanceof sa) b = "spki", c = wa(a).der; + else if (a instanceof g) b = "pkcs8", c = I(a).der; + else return da; + return new V(c, b, a.keyOps, a.ext); }; q.webCryptoAlgorithmToJwkAlg = function(a) { - return "RSAES-PKCS1-v1_5" == a.name ? "RSA1_5" : "RSASSA-PKCS1-v1_5" == a.name ? "SHA-256" == a.hash.name ? "RS256" : "SHA-384" == a.hash.name ? "RS384" : "SHA-512" == a.hash.name ? "RS512" : ga : ga; + return "RSAES-PKCS1-v1_5" == a.name ? "RSA1_5" : "RSASSA-PKCS1-v1_5" == a.name ? "SHA-256" == a.hash.name ? "RS256" : "SHA-384" == a.hash.name ? "RS384" : "SHA-512" == a.hash.name ? "RS512" : da : da; }; q.webCryptoUsageToJwkKeyOps = function(a) { return a.map(function(a) { @@ -1613,50 +1608,50 @@ v7AA.H22 = function() { }); }; }()); - k.ASN1 = q; - }(t)); + l.ASN1 = q; + }(A)); (function() { - for (var k = {}, n = {}, q = { + for (var l = {}, n = {}, q = { "=": 0, ".": 0 }, t = { "=": 0, ".": 0 - }, A = /\s+/g, H = /^[ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/_-]*[=]{0,2}$/, Ea = 64; Ea--;) k["ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/" [Ea]] = 262144 * Ea, n["ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/" [Ea]] = 4096 * Ea, q["ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/" [Ea]] = 64 * Ea, t["ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/" [Ea]] = Ea; - for (Ea = 64; Ea-- && "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/" [Ea] != "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_" [Ea];) k["ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_" [Ea]] = 262144 * Ea, n["ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_" [Ea]] = 4096 * Ea, q["ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_" [Ea]] = 64 * Ea, t["ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_" [Ea]] = Ea; - ma = function(k, n) { - for (var q = "", W = 0, M = k.length, R = M - 2, I, J = n ? "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_" : "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", Q = n ? "" : "="; W < R;) I = 65536 * k[W++] + 256 * k[W++] + k[W++], q += J[I >>> 18] + J[I >>> 12 & 63] + J[I >>> 6 & 63] + J[I & 63]; - W == R ? (I = 65536 * k[W++] + 256 * k[W++], q += J[I >>> 18] + J[I >>> 12 & 63] + J[I >>> 6 & 63] + Q) : W == M - 1 && (I = 65536 * k[W++], q += J[I >>> 18] + J[I >>> 12 & 63] + Q + Q); + }, G = /\s+/g, A = /^[ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/_-]*[=]{0,2}$/, Ea = 64; Ea--;) l["ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/" [Ea]] = 262144 * Ea, n["ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/" [Ea]] = 4096 * Ea, q["ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/" [Ea]] = 64 * Ea, t["ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/" [Ea]] = Ea; + for (Ea = 64; Ea-- && "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/" [Ea] != "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_" [Ea];) l["ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_" [Ea]] = 262144 * Ea, n["ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_" [Ea]] = 4096 * Ea, q["ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_" [Ea]] = 64 * Ea, t["ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_" [Ea]] = Ea; + ka = function(l, n) { + for (var q = "", W = 0, I = l.length, K = I - 2, B, L = n ? "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_" : "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", V = n ? "" : "="; W < K;) B = 65536 * l[W++] + 256 * l[W++] + l[W++], q += L[B >>> 18] + L[B >>> 12 & 63] + L[B >>> 6 & 63] + L[B & 63]; + W == K ? (B = 65536 * l[W++] + 256 * l[W++], q += L[B >>> 18] + L[B >>> 12 & 63] + L[B >>> 6 & 63] + V) : W == I - 1 && (B = 65536 * l[W++], q += L[B >>> 18] + L[B >>> 12 & 63] + V + V); return q; }; - ra = function(W, Ta) { - var za; - W = W.replace(A, ""); - if (Ta) { - za = W.length % 4; - if (za) - for (var za = 4 - za, Ka = 0; Ka < za; ++Ka) W += "="; + oa = function(W, Pa) { + var wa; + W = W.replace(G, ""); + if (Pa) { + wa = W.length % 4; + if (wa) + for (var wa = 4 - wa, ya = 0; ya < wa; ++ya) W += "="; } - za = W.length; - if (0 != za % 4 || !H.test(W)) throw Error("bad base64: " + W); - for (var M = za / 4 * 3 - ("=" == W[za - 1] ? 1 : 0) - ("=" == W[za - 2] ? 1 : 0), R = new Uint8Array(M), I = 0, J = 0; I < za;) Ka = k[W[I++]] + n[W[I++]] + q[W[I++]] + t[W[I++]], R[J++] = Ka >>> 16, J < M && (R[J++] = Ka >>> 8 & 255, J < M && (R[J++] = Ka & 255)); - return R; + wa = W.length; + if (0 != wa % 4 || !A.test(W)) throw Error("bad base64: " + W); + for (var I = wa / 4 * 3 - ("=" == W[wa - 1] ? 1 : 0) - ("=" == W[wa - 2] ? 1 : 0), K = new Uint8Array(I), B = 0, L = 0; B < wa;) ya = l[W[B++]] + n[W[B++]] + q[W[B++]] + t[W[B++]], K[L++] = ya >>> 16, L < I && (K[L++] = ya >>> 8 & 255, L < I && (K[L++] = ya & 255)); + return K; }; }()); - Qa = {}; + $a = {}; (function() { - var H, Ea, W, za; + var A, Ea, W, wa; - function k(q) { - if (!(this instanceof k)) return new k(q); - for (var M = 0, R = Ea.length; M < R; M++) this[Ea[M]] = ""; - this.bufferCheckPosition = Qa.MAX_BUFFER_LENGTH; + function l(q) { + if (!(this instanceof l)) return new l(q); + for (var I = 0, K = Ea.length; I < K; I++) this[Ea[I]] = ""; + this.bufferCheckPosition = $a.MAX_BUFFER_LENGTH; this.q = this.c = this.p = ""; this.opt = q || {}; this.closed = this.closedRoot = this.sawRoot = !1; this.tag = this.error = null; this.state = W.BEGIN; - this.stack = new H(); + this.stack = new A(); this.index = this.position = this.column = 0; this.line = 1; this.slashed = !1; @@ -1665,54 +1660,54 @@ v7AA.H22 = function() { n(this, "onready"); } - function n(k, n, R) { - if (k[n]) k[n](R); + function n(l, n, K) { + if (l[n]) l[n](K); } - function q(k, q) { - var R, I; - R = k.opt; - I = k.textNode; - R.trim && (I = I.trim()); - R.normalize && (I = I.replace(/\s+/g, " ")); - k.textNode = I; - k.textNode && n(k, q ? q : "onvalue", k.textNode); - k.textNode = ""; + function q(l, I) { + var K, B; + K = l.opt; + B = l.textNode; + K.trim && (B = B.trim()); + K.normalize && (B = B.replace(/\s+/g, " ")); + l.textNode = B; + l.textNode && n(l, I ? I : "onvalue", l.textNode); + l.textNode = ""; } - function t(k, M) { - q(k); - M += "\nLine: " + k.line + "\nColumn: " + k.column + "\nChar: " + k.c; - M = Error(M); - k.error = M; - n(k, "onerror", M); - return k; + function t(l, I) { + q(l); + I += "\nLine: " + l.line + "\nColumn: " + l.column + "\nChar: " + l.c; + I = Error(I); + l.error = I; + n(l, "onerror", I); + return l; } - function A(Ka) { - Ka.state !== W.VALUE && t(Ka, "Unexpected end"); - q(Ka); - Ka.c = ""; - Ka.closed = !0; - n(Ka, "onend"); - k.call(Ka, Ka.opt); - return Ka; - } - H = Array; - Qa.parser = function(n) { - return new k(n); - }; - Qa.CParser = k; - Qa.MAX_BUFFER_LENGTH = 65536; - Qa.DEBUG = !1; - Qa.INFO = !1; - Qa.EVENTS = "value string key openobject closeobject openarray closearray error end ready".split(" "); + function G(ya) { + ya.state !== W.VALUE && t(ya, "Unexpected end"); + q(ya); + ya.c = ""; + ya.closed = !0; + n(ya, "onend"); + l.call(ya, ya.opt); + return ya; + } + A = Array; + $a.parser = function(n) { + return new l(n); + }; + $a.CParser = l; + $a.MAX_BUFFER_LENGTH = 65536; + $a.DEBUG = !1; + $a.INFO = !1; + $a.EVENTS = "value string key openobject closeobject openarray closearray error end ready".split(" "); Ea = ["textNode", "numberNode"]; - Qa.EVENTS.filter(function(k) { - return "error" !== k && "end" !== k; + $a.EVENTS.filter(function(l) { + return "error" !== l && "end" !== l; }); W = 0; - Qa.STATE = { + $a.STATE = { BEGIN: W++, VALUE: W++, OPEN_OBJECT: W++, @@ -1738,163 +1733,163 @@ v7AA.H22 = function() { NUMBER_DECIMAL_POINT: W++, NUMBER_DIGIT: W++ }; - for (var Ta in Qa.STATE) Qa.STATE[Qa.STATE[Ta]] = Ta; - W = Qa.STATE; - Object.getPrototypeOf || (Object.getPrototypeOf = function(k) { - return k.__proto__; + for (var Pa in $a.STATE) $a.STATE[$a.STATE[Pa]] = Pa; + W = $a.STATE; + Object.getPrototypeOf || (Object.getPrototypeOf = function(l) { + return l.__proto__; }); - za = /[\\"\n]/g; - k.prototype = { + wa = /[\\"\n]/g; + l.prototype = { end: function() { - A(this); + G(this); }, - write: function(k) { - var I, J, Q; + write: function(l) { + var B, L, V; if (this.error) throw this.error; if (this.closed) return t(this, "Cannot write after close. Assign an onready handler."); - if (null === k) return A(this); - for (var M = k[0], R; M;) { - R = M; - this.c = M = k.charAt(this.index++); - R !== M ? this.p = R : R = this.p; - if (!M) break; + if (null === l) return G(this); + for (var I = l[0], K; I;) { + K = I; + this.c = I = l.charAt(this.index++); + K !== I ? this.p = K : K = this.p; + if (!I) break; this.position++; - "\n" === M ? (this.line++, this.column = 0) : this.column++; + "\n" === I ? (this.line++, this.column = 0) : this.column++; switch (this.state) { case W.BEGIN: - "{" === M ? this.state = W.OPEN_OBJECT : "[" === M ? this.state = W.OPEN_ARRAY : "\r" !== M && "\n" !== M && " " !== M && "\t" !== M && t(this, "Non-whitespace before {[."); + "{" === I ? this.state = W.OPEN_OBJECT : "[" === I ? this.state = W.OPEN_ARRAY : "\r" !== I && "\n" !== I && " " !== I && "\t" !== I && t(this, "Non-whitespace before {[."); continue; case W.OPEN_KEY: case W.OPEN_OBJECT: - if ("\r" === M || "\n" === M || " " === M || "\t" === M) continue; + if ("\r" === I || "\n" === I || " " === I || "\t" === I) continue; if (this.state === W.OPEN_KEY) this.stack.push(W.CLOSE_KEY); - else if ("}" === M) { + else if ("}" === I) { n(this, "onopenobject"); n(this, "oncloseobject"); this.state = this.stack.pop() || W.VALUE; continue; } else this.stack.push(W.CLOSE_OBJECT); - '"' === M ? this.state = W.STRING : t(this, 'Malformed object key should start with "'); + '"' === I ? this.state = W.STRING : t(this, 'Malformed object key should start with "'); continue; case W.CLOSE_KEY: case W.CLOSE_OBJECT: - if ("\r" === M || "\n" === M || " " === M || "\t" === M) continue; - ":" === M ? (this.state === W.CLOSE_OBJECT ? (this.stack.push(W.CLOSE_OBJECT), q(this, "onopenobject")) : q(this, "onkey"), this.state = W.VALUE) : "}" === M ? (q(this), n(this, "oncloseobject", void 0), this.state = this.stack.pop() || W.VALUE) : "," === M ? (this.state === W.CLOSE_OBJECT && this.stack.push(W.CLOSE_OBJECT), q(this), this.state = W.OPEN_KEY) : t(this, "Bad object"); + if ("\r" === I || "\n" === I || " " === I || "\t" === I) continue; + ":" === I ? (this.state === W.CLOSE_OBJECT ? (this.stack.push(W.CLOSE_OBJECT), q(this, "onopenobject")) : q(this, "onkey"), this.state = W.VALUE) : "}" === I ? (q(this), n(this, "oncloseobject", void 0), this.state = this.stack.pop() || W.VALUE) : "," === I ? (this.state === W.CLOSE_OBJECT && this.stack.push(W.CLOSE_OBJECT), q(this), this.state = W.OPEN_KEY) : t(this, "Bad object"); continue; case W.OPEN_ARRAY: case W.VALUE: - if ("\r" === M || "\n" === M || " " === M || "\t" === M) continue; + if ("\r" === I || "\n" === I || " " === I || "\t" === I) continue; if (this.state === W.OPEN_ARRAY) - if (n(this, "onopenarray"), this.state = W.VALUE, "]" === M) { + if (n(this, "onopenarray"), this.state = W.VALUE, "]" === I) { n(this, "onclosearray"); this.state = this.stack.pop() || W.VALUE; continue; } else this.stack.push(W.CLOSE_ARRAY); - '"' === M ? this.state = W.STRING : "{" === M ? this.state = W.OPEN_OBJECT : "[" === M ? this.state = W.OPEN_ARRAY : "t" === M ? this.state = W.TRUE : "f" === M ? this.state = W.FALSE : "n" === M ? this.state = W.NULL : "-" === M ? this.numberNode += M : "0" === M ? (this.numberNode += M, this.state = W.NUMBER_DIGIT) : -1 !== "123456789".indexOf(M) ? (this.numberNode += M, this.state = W.NUMBER_DIGIT) : t(this, "Bad value"); + '"' === I ? this.state = W.STRING : "{" === I ? this.state = W.OPEN_OBJECT : "[" === I ? this.state = W.OPEN_ARRAY : "t" === I ? this.state = W.TRUE : "f" === I ? this.state = W.FALSE : "n" === I ? this.state = W.NULL : "-" === I ? this.numberNode += I : "0" === I ? (this.numberNode += I, this.state = W.NUMBER_DIGIT) : -1 !== "123456789".indexOf(I) ? (this.numberNode += I, this.state = W.NUMBER_DIGIT) : t(this, "Bad value"); continue; case W.CLOSE_ARRAY: - if ("," === M) this.stack.push(W.CLOSE_ARRAY), q(this, "onvalue"), this.state = W.VALUE; - else if ("]" === M) q(this), n(this, "onclosearray", void 0), this.state = this.stack.pop() || W.VALUE; - else if ("\r" === M || "\n" === M || " " === M || "\t" === M) continue; + if ("," === I) this.stack.push(W.CLOSE_ARRAY), q(this, "onvalue"), this.state = W.VALUE; + else if ("]" === I) q(this), n(this, "onclosearray", void 0), this.state = this.stack.pop() || W.VALUE; + else if ("\r" === I || "\n" === I || " " === I || "\t" === I) continue; else t(this, "Bad array"); continue; case W.STRING: - R = this.index - 1; - I = this.slashed, J = this.unicodeI; + K = this.index - 1; + B = this.slashed, L = this.unicodeI; a: for (;;) { - if (Qa.DEBUG) - for (; 0 < J;) - if (this.unicodeS += M, M = k.charAt(this.index++), 4 === J ? (this.textNode += String.fromCharCode(parseInt(this.unicodeS, 16)), J = 0, R = this.index - 1) : J++, !M) break a; - if ('"' === M && !I) { + if ($a.DEBUG) + for (; 0 < L;) + if (this.unicodeS += I, I = l.charAt(this.index++), 4 === L ? (this.textNode += String.fromCharCode(parseInt(this.unicodeS, 16)), L = 0, K = this.index - 1) : L++, !I) break a; + if ('"' === I && !B) { this.state = this.stack.pop() || W.VALUE; - (this.textNode += k.substring(R, this.index - 1)) || n(this, "onvalue", ""); + (this.textNode += l.substring(K, this.index - 1)) || n(this, "onvalue", ""); break; } - if ("\\" === M && !I && (I = !0, this.textNode += k.substring(R, this.index - 1), M = k.charAt(this.index++), !M)) break; - if (I) - if (I = !1, "n" === M ? this.textNode += "\n" : "r" === M ? this.textNode += "\r" : "t" === M ? this.textNode += "\t" : "f" === M ? this.textNode += "\f" : "b" === M ? this.textNode += "\b" : "u" === M ? (J = 1, this.unicodeS = "") : this.textNode += M, M = k.charAt(this.index++), R = this.index - 1, M) continue; + if ("\\" === I && !B && (B = !0, this.textNode += l.substring(K, this.index - 1), I = l.charAt(this.index++), !I)) break; + if (B) + if (B = !1, "n" === I ? this.textNode += "\n" : "r" === I ? this.textNode += "\r" : "t" === I ? this.textNode += "\t" : "f" === I ? this.textNode += "\f" : "b" === I ? this.textNode += "\b" : "u" === I ? (L = 1, this.unicodeS = "") : this.textNode += I, I = l.charAt(this.index++), K = this.index - 1, I) continue; else break; - za.lastIndex = this.index; - Q = za.exec(k); - if (null === Q) { - this.index = k.length + 1; - this.textNode += k.substring(R, this.index - 1); + wa.lastIndex = this.index; + V = wa.exec(l); + if (null === V) { + this.index = l.length + 1; + this.textNode += l.substring(K, this.index - 1); break; } - this.index = Q.index + 1; - M = k.charAt(Q.index); - if (!M) { - this.textNode += k.substring(R, this.index - 1); + this.index = V.index + 1; + I = l.charAt(V.index); + if (!I) { + this.textNode += l.substring(K, this.index - 1); break; } } - this.slashed = I; - this.unicodeI = J; + this.slashed = B; + this.unicodeI = L; continue; case W.TRUE: - if ("" === M) continue; - "r" === M ? this.state = W.TRUE2 : t(this, "Invalid true started with t" + M); + if ("" === I) continue; + "r" === I ? this.state = W.TRUE2 : t(this, "Invalid true started with t" + I); continue; case W.TRUE2: - if ("" === M) continue; - "u" === M ? this.state = W.TRUE3 : t(this, "Invalid true started with tr" + M); + if ("" === I) continue; + "u" === I ? this.state = W.TRUE3 : t(this, "Invalid true started with tr" + I); continue; case W.TRUE3: - if ("" === M) continue; - "e" === M ? (n(this, "onvalue", !0), this.state = this.stack.pop() || W.VALUE) : t(this, "Invalid true started with tru" + M); + if ("" === I) continue; + "e" === I ? (n(this, "onvalue", !0), this.state = this.stack.pop() || W.VALUE) : t(this, "Invalid true started with tru" + I); continue; case W.FALSE: - if ("" === M) continue; - "a" === M ? this.state = W.FALSE2 : t(this, "Invalid false started with f" + M); + if ("" === I) continue; + "a" === I ? this.state = W.FALSE2 : t(this, "Invalid false started with f" + I); continue; case W.FALSE2: - if ("" === M) continue; - "l" === M ? this.state = W.FALSE3 : t(this, "Invalid false started with fa" + M); + if ("" === I) continue; + "l" === I ? this.state = W.FALSE3 : t(this, "Invalid false started with fa" + I); continue; case W.FALSE3: - if ("" === M) continue; - "s" === M ? this.state = W.FALSE4 : t(this, "Invalid false started with fal" + M); + if ("" === I) continue; + "s" === I ? this.state = W.FALSE4 : t(this, "Invalid false started with fal" + I); continue; case W.FALSE4: - if ("" === M) continue; - "e" === M ? (n(this, "onvalue", !1), this.state = this.stack.pop() || W.VALUE) : t(this, "Invalid false started with fals" + M); + if ("" === I) continue; + "e" === I ? (n(this, "onvalue", !1), this.state = this.stack.pop() || W.VALUE) : t(this, "Invalid false started with fals" + I); continue; case W.NULL: - if ("" === M) continue; - "u" === M ? this.state = W.NULL2 : t(this, "Invalid null started with n" + M); + if ("" === I) continue; + "u" === I ? this.state = W.NULL2 : t(this, "Invalid null started with n" + I); continue; case W.NULL2: - if ("" === M) continue; - "l" === M ? this.state = W.NULL3 : t(this, "Invalid null started with nu" + M); + if ("" === I) continue; + "l" === I ? this.state = W.NULL3 : t(this, "Invalid null started with nu" + I); continue; case W.NULL3: - if ("" === M) continue; - "l" === M ? (n(this, "onvalue", null), this.state = this.stack.pop() || W.VALUE) : t(this, "Invalid null started with nul" + M); + if ("" === I) continue; + "l" === I ? (n(this, "onvalue", null), this.state = this.stack.pop() || W.VALUE) : t(this, "Invalid null started with nul" + I); continue; case W.NUMBER_DECIMAL_POINT: - "." === M ? (this.numberNode += M, this.state = W.NUMBER_DIGIT) : t(this, "Leading zero not followed by ."); + "." === I ? (this.numberNode += I, this.state = W.NUMBER_DIGIT) : t(this, "Leading zero not followed by ."); continue; case W.NUMBER_DIGIT: - -1 !== "0123456789".indexOf(M) ? this.numberNode += M : "." === M ? (-1 !== this.numberNode.indexOf(".") && t(this, "Invalid number has two dots"), this.numberNode += M) : "e" === M || "E" === M ? (-1 === this.numberNode.indexOf("e") && -1 === this.numberNode.indexOf("E") || t(this, "Invalid number has two exponential"), this.numberNode += M) : "+" === M || "-" === M ? ("e" !== R && "E" !== R && t(this, "Invalid symbol in number"), this.numberNode += M) : (this.numberNode && n(this, "onvalue", parseFloat(this.numberNode)), this.numberNode = "", this.index--, this.state = this.stack.pop() || W.VALUE); + -1 !== "0123456789".indexOf(I) ? this.numberNode += I : "." === I ? (-1 !== this.numberNode.indexOf(".") && t(this, "Invalid number has two dots"), this.numberNode += I) : "e" === I || "E" === I ? (-1 === this.numberNode.indexOf("e") && -1 === this.numberNode.indexOf("E") || t(this, "Invalid number has two exponential"), this.numberNode += I) : "+" === I || "-" === I ? ("e" !== K && "E" !== K && t(this, "Invalid symbol in number"), this.numberNode += I) : (this.numberNode && n(this, "onvalue", parseFloat(this.numberNode)), this.numberNode = "", this.index--, this.state = this.stack.pop() || W.VALUE); continue; default: t(this, "Unknown state: " + this.state); } } if (this.position >= this.bufferCheckPosition) { - k = Math.max(Qa.MAX_BUFFER_LENGTH, 10); - R = M = 0; - for (I = Ea.length; R < I; R++) { - J = this[Ea[R]].length; - if (J > k) switch (Ea[R]) { + l = Math.max($a.MAX_BUFFER_LENGTH, 10); + K = I = 0; + for (B = Ea.length; K < B; K++) { + L = this[Ea[K]].length; + if (L > l) switch (Ea[K]) { case "text": break; default: - t(this, "Max buffer length exceeded: " + Ea[R]); + t(this, "Max buffer length exceeded: " + Ea[K]); } - M = Math.max(M, J); + I = Math.max(I, L); } - this.bufferCheckPosition = Qa.MAX_BUFFER_LENGTH - M + this.position; + this.bufferCheckPosition = $a.MAX_BUFFER_LENGTH - I + this.position; } return this; }, @@ -1910,107 +1905,107 @@ v7AA.H22 = function() { (function() { var t; - function k(k, n) { - n || (n = k.length); - return k.reduce(function(k, q, W) { - return W < n ? k + String.fromCharCode(q) : k; + function l(l, n) { + n || (n = l.length); + return l.reduce(function(l, q, W) { + return W < n ? l + String.fromCharCode(q) : l; }, ""); } for (var n = {}, q = 0; 256 > q; ++q) { - t = k([q]); + t = l([q]); n[t] = q; } - for (var A = Object.keys(n).length, H = [], q = 0; 256 > q; ++q) H[q] = [q]; - Nd = function(q, W) { - var E, K; + for (var G = Object.keys(n).length, A = [], q = 0; 256 > q; ++q) A[q] = [q]; + Jd = function(q, W) { + var C, M; - function t(k, E) { - var K; - for (; 0 < E;) { - if (J >= I.length) return !1; - if (E > Q) { - K = k; - K = K >>> E - Q; - I[J] |= K & 255; - E -= Q; - Q = 8; - ++J; - } else E <= Q && (K = k, K <<= Q - E, K &= 255, K >>>= 8 - Q, I[J] |= K & 255, Q -= E, E = 0, 0 == Q && (Q = 8, ++J)); + function t(l, C) { + var M; + for (; 0 < C;) { + if (L >= B.length) return !1; + if (C > V) { + M = l; + M = M >>> C - V; + B[L] |= M & 255; + C -= V; + V = 8; + ++L; + } else C <= V && (M = l, M <<= V - C, M &= 255, M >>>= 8 - V, B[L] |= M & 255, V -= C, C = 0, 0 == V && (V = 8, ++L)); } return !0; } - for (var za in n) W[za] = n[za]; - for (var Ka = A, M = [], R = 8, I = new Uint8Array(q.length), J = 0, Q = 8, L = 0; L < q.length; ++L) { - E = q[L]; - M.push(E); - za = k(M); - K = W[za]; - if (!K) { - M = k(M, M.length - 1); - if (!t(W[M], R)) return null; - 0 != Ka >> R && ++R; - W[za] = Ka++; - M = [E]; - } - } - return 0 < M.length && (za = k(M), K = W[za], !t(K, R)) ? null : I.subarray(0, 8 > Q ? J + 1 : J); - }; - Od = function(k) { - var L, E, Q, t; - for (var q = H.slice(), n = 0, t = 0, A = 8, M = new Uint8Array(Math.ceil(1.5 * k.length)), R = 0, I, J = []; n < k.length && !(8 * (k.length - n) - t < A);) { - for (var Q = I = 0; Q < A;) { - L = Math.min(A - Q, 8 - t); - E = k[n]; - E = E << t; - E = E & 255; - E = E >>> 8 - L; - Q = Q + L; - t = t + L; - 8 == t && (t = 0, ++n); - I |= (E & 255) << A - Q; - } - Q = q[I]; - 0 == J.length ? ++A : (Q ? J.push(Q[0]) : J.push(J[0]), q[q.length] = J, J = [], q.length == 1 << A && ++A, Q || (Q = q[I])); - I = R + Q.length; - I >= M.length && (L = new Uint8Array(Math.ceil(1.5 * I)), L.set(M), M = L); - M.set(Q, R); - R = I; - J = J.concat(Q); - } - return M.subarray(0, R); + for (var wa in n) W[wa] = n[wa]; + for (var ya = G, I = [], K = 8, B = new Uint8Array(q.length), L = 0, V = 8, J = 0; J < q.length; ++J) { + C = q[J]; + I.push(C); + wa = l(I); + M = W[wa]; + if (!M) { + I = l(I, I.length - 1); + if (!t(W[I], K)) return null; + 0 != ya >> K && ++K; + W[wa] = ya++; + I = [C]; + } + } + return 0 < I.length && (wa = l(I), M = W[wa], !t(M, K)) ? null : B.subarray(0, 8 > V ? L + 1 : L); + }; + Kd = function(l) { + var J, C, V, t; + for (var n = A.slice(), q = 0, t = 0, ya = 8, I = new Uint8Array(Math.ceil(1.5 * l.length)), K = 0, B, L = []; q < l.length && !(8 * (l.length - q) - t < ya);) { + for (var V = B = 0; V < ya;) { + J = Math.min(ya - V, 8 - t); + C = l[q]; + C = C << t; + C = C & 255; + C = C >>> 8 - J; + V = V + J; + t = t + J; + 8 == t && (t = 0, ++q); + B |= (C & 255) << ya - V; + } + V = n[B]; + 0 == L.length ? ++ya : (V ? L.push(V[0]) : L.push(L[0]), n[n.length] = L, L = [], n.length == 1 << ya && ++ya, V || (V = n[B])); + B = K + V.length; + B >= I.length && (J = new Uint8Array(Math.ceil(1.5 * B)), J.set(I), I = J); + I.set(V, K); + K = B; + L = L.concat(V); + } + return I.subarray(0, K); }; }()); (function() { - var k, n, t; - Ca = "utf-8"; - Aa = 9007199254740992; - k = Nb = { + var l, n, t; + Ba = "utf-8"; + Ca = 9007199254740992; + l = Nb = { GZIP: "GZIP", LZW: "LZW" }; Object.freeze(Nb); - Pd = function(n) { - for (var q = [k.GZIP, k.LZW], t = 0; t < q.length && 0 < n.length; ++t) - for (var A = q[t], W = 0; W < n.length; ++W) - if (n[W] == A) return A; + Ld = function(n) { + for (var q = [l.GZIP, l.LZW], t = 0; t < q.length && 0 < n.length; ++t) + for (var G = q[t], W = 0; W < n.length; ++W) + if (n[W] == G) return G; return null; }; - n = wc = { + n = xc = { AES_CBC_PKCS5Padding: "AES/CBC/PKCS5Padding", AESWrap: "AESWrap", RSA_ECB_PKCS1Padding: "RSA/ECB/PKCS1Padding" }; - Object.freeze(wc); - Qd = function(k) { - return n.AES_CBC_PKCS5Padding == k ? n.AES_CBC_PKCS5Padding : n.RSA_ECB_PKCS1Padding == k ? n.RSA_ECB_PKCS1Padding : n[k]; + Object.freeze(xc); + Md = function(l) { + return n.AES_CBC_PKCS5Padding == l ? n.AES_CBC_PKCS5Padding : n.RSA_ECB_PKCS1Padding == l ? n.RSA_ECB_PKCS1Padding : n[l]; }; - t = Rd = { + t = Nd = { HmacSHA256: "HmacSHA256", SHA256withRSA: "SHA256withRSA" }; - Object.freeze(Rd); - Zc = function(k) { - return t[k]; + Object.freeze(Nd); + Yc = function(l) { + return t[l]; }; q = { FAIL: 1, @@ -2026,195 +2021,195 @@ v7AA.H22 = function() { }; Object.freeze(q); }()); - fa = { - isObjectLiteral: function(k) { - return null !== k && "object" === typeof k && k.constructor === Object; + ha = { + isObjectLiteral: function(l) { + return null !== l && "object" === typeof l && l.constructor === Object; }, extendDeep: function() { - var k, n, q, t, A, H, P, W; - k = arguments[0]; + var l, n, q, t, G, A, R, W; + l = arguments[0]; n = 1; q = arguments.length; t = !1; - "boolean" === typeof k && (t = k, k = arguments[1], n = 2); + "boolean" === typeof l && (t = l, l = arguments[1], n = 2); for (; n < q; n++) - if (null != (A = arguments[n])) - for (H in A) t && H in k || (W = A[H], k !== W && W !== ga && (P = k[H], k[H] = null !== P && null !== W && "object" === typeof P && "object" === typeof W ? fa.extendDeep(t, {}, P, W) : W)); - return k; + if (null != (G = arguments[n])) + for (A in G) t && A in l || (W = G[A], l !== W && W !== da && (R = l[A], l[A] = null !== R && null !== W && "object" === typeof R && "object" === typeof W ? ha.extendDeep(t, {}, R, W) : W)); + return l; } }; (function() { - var P, W; + var R, W; - function k(k, n) { + function l(l, n) { return function() { - var q, M; - q = k.base; - k.base = n; - M = k.apply(this, arguments); - k.base = q; - return M; + var q, I; + q = l.base; + l.base = n; + I = l.apply(this, arguments); + l.base = q; + return I; }; } function n(n, q, t) { - var M, R, I, J; + var I, K, B, L; t = t || W; - J = !!t.extendAll; - for (M in q) R = q.__lookupGetter__(M), I = q.__lookupSetter__(M), R || I ? (R && n.__defineGetter__(M, R), I && n.__defineSetter__(M, I)) : (R = q[M], I = n[M], "function" === typeof R && "function" === typeof I && R !== I ? (R.base !== Function.prototype.base && (R = k(R, I)), R.base = I) : (J || t[M]) && fa.isObjectLiteral(R) && fa.isObjectLiteral(I) && (R = fa.extendDeep({}, I, R)), n[M] = R); + L = !!t.extendAll; + for (I in q) K = q.__lookupGetter__(I), B = q.__lookupSetter__(I), K || B ? (K && n.__defineGetter__(I, K), B && n.__defineSetter__(I, B)) : (K = q[I], B = n[I], "function" === typeof K && "function" === typeof B && K !== B ? (K.base !== Function.prototype.base && (K = l(K, B)), K.base = B) : (L || t[I]) && ha.isObjectLiteral(K) && ha.isObjectLiteral(B) && (K = ha.extendDeep({}, B, K)), n[I] = K); } function q() { - var k, n; - k = Array.prototype.slice; - n = k.call(arguments, 1); + var l, n; + l = Array.prototype.slice; + n = l.call(arguments, 1); return this.extend({ - init: function M() { - var R; - R = k.call(arguments, 0); - M.base.apply(this, n.concat(R)); + init: function I() { + var K; + K = l.call(arguments, 0); + I.base.apply(this, n.concat(K)); } }); } - function t(k, q) { + function t(l, q) { var W; - W = new this(P); - n(W, k, q); - return H(W); + W = new this(R); + n(W, l, q); + return A(W); } - function A(k, q) { - n(this.prototype, k, q); + function G(l, q) { + n(this.prototype, l, q); return this; } - function H(k) { + function A(l) { var n; n = function() { - var k; - k = this.init; - k && arguments[0] !== P && k.apply(this, arguments); + var l; + l = this.init; + l && arguments[0] !== R && l.apply(this, arguments); }; - k && (n.prototype = k); + l && (n.prototype = l); n.prototype.constructor = n; n.extend = t; n.bind = q; - n.mixin = A; + n.mixin = G; return n; } - P = {}; + R = {}; W = { actions: !0 }; Function.prototype.base = function() {}; - fa.Class = { - create: H, + ha.Class = { + create: A, mixin: n, - extend: function(k, n) { + extend: function(l, n) { var q; - q = H(); - q.prototype = new k(); + q = A(); + q.prototype = new l(); return q.extend(n); } }; - fa.mixin = function() { - fa.log && fa.log.warn("util.mixin is deprecated. Please change your code to use util.Class.mixin()"); + ha.mixin = function() { + ha.log && ha.log.warn("util.mixin is deprecated. Please change your code to use util.Class.mixin()"); n.apply(null, arguments); }; }()); (function() { - var P, W, Ta; + var R, W, Pa; - function k(k, n) { + function l(l, n) { return function() { - var q, R; - q = k.base; - k.base = n; - R = k.apply(this, arguments); - k.base = q; - return R; + var q, K; + q = l.base; + l.base = n; + K = l.apply(this, arguments); + l.base = q; + return K; }; } - function n(n, q, M) { - var R, I, J, Q; - M = M || W; - Q = !!M.extendAll; - for (R in q) I = q.__lookupGetter__(R), J = q.__lookupSetter__(R), I || J ? (I && n.__defineGetter__(R, I), J && n.__defineSetter__(R, J)) : (I = q[R], J = n[R], "function" === typeof I && "function" === typeof J && I !== J ? (I.base !== Ta && (I = k(I, J)), I.base = J) : (Q || M[R]) && fa.isObjectLiteral(I) && fa.isObjectLiteral(J) && (I = fa.extendDeep({}, J, I)), n[R] = I); + function n(n, q, I) { + var K, B, L, V; + I = I || W; + V = !!I.extendAll; + for (K in q) B = q.__lookupGetter__(K), L = q.__lookupSetter__(K), B || L ? (B && n.__defineGetter__(K, B), L && n.__defineSetter__(K, L)) : (B = q[K], L = n[K], "function" === typeof B && "function" === typeof L && B !== L ? (B.base !== Pa && (B = l(B, L)), B.base = L) : (V || I[K]) && ha.isObjectLiteral(B) && ha.isObjectLiteral(L) && (B = ha.extendDeep({}, L, B)), n[K] = B); } function q() { - var k, n; - k = Array.prototype.slice; - n = k.call(arguments, 1); + var l, n; + l = Array.prototype.slice; + n = l.call(arguments, 1); return this.extend({ - init: function R() { - var I; - I = k.call(arguments, 0); - R.base.apply(this, n.concat(I)); + init: function K() { + var B; + B = l.call(arguments, 0); + K.base.apply(this, n.concat(B)); } }); } - function t(k, q) { - var M; - M = new this(P); - n(M, k, q); - return H(M); + function t(l, q) { + var I; + I = new this(R); + n(I, l, q); + return A(I); } - function A(k, q) { - n(this.prototype, k, q); + function G(l, q) { + n(this.prototype, l, q); return this; } - function H(k) { + function A(l) { var n; n = function() { - var k; - k = this.init; - k && arguments[0] !== P && k.apply(this, arguments); + var l; + l = this.init; + l && arguments[0] !== R && l.apply(this, arguments); }; - k && (n.prototype = k); + l && (n.prototype = l); n.prototype.constructor = n; n.extend = t; n.bind = q; - n.mixin = A; + n.mixin = G; return n; } - P = {}; + R = {}; W = { actions: !0 }; - Ta = function() {}; - Function.prototype.base = Ta; - fa.Class = { - create: H, + Pa = function() {}; + Function.prototype.base = Pa; + ha.Class = { + create: A, mixin: n, - extend: function(k, n) { + extend: function(l, n) { var q; - q = H(); - q.prototype = new k(); + q = A(); + q.prototype = new l(); return q.extend(n); } }; - fa.mixin = function() { - fa.log && fa.log.warn("util.mixin is deprecated. Please change your code to use util.Class.mixin()"); + ha.mixin = function() { + ha.log && ha.log.warn("util.mixin is deprecated. Please change your code to use util.Class.mixin()"); n.apply(null, arguments); }; }()); (function() { - function k(k) { - return k == Aa ? 1 : k + 1; + function l(l) { + return l == Ca ? 1 : l + 1; } function n(n) { if (0 === Object.keys(n._waiters).length) return 0; - for (var q = k(n._nextWaiter); !n._waiters[q];) q = k(q); + for (var q = l(n._nextWaiter); !n._waiters[q];) q = l(q); return q; } - jc = fa.Class.create({ + ic = ha.Class.create({ init: function() { Object.defineProperties(this, { _queue: { @@ -2243,86 +2238,86 @@ v7AA.H22 = function() { } }); }, - cancel: function(k) { + cancel: function(l) { var q; - if (this._waiters[k]) { - q = this._waiters[k]; - delete this._waiters[k]; - k == this._nextWaiter && (this._nextWaiter = n(this)); - q.call(this, ga); + if (this._waiters[l]) { + q = this._waiters[l]; + delete this._waiters[l]; + l == this._nextWaiter && (this._nextWaiter = n(this)); + q.call(this, da); } }, cancelAll: function() { for (; 0 !== this._nextWaiter;) this.cancel(this._nextWaiter); }, - poll: function(q, t) { - var A, P; + poll: function(q, G) { + var A, R; A = this; - P = k(this._lastWaiter); - this._lastWaiter = P; - H(t, function() { - var k, W; + R = l(this._lastWaiter); + this._lastWaiter = R; + t(G, function() { + var l, W; if (0 < this._queue.length) { - k = this._queue.shift(); + l = this._queue.shift(); setTimeout(function() { - t.result(k); + G.result(l); }, 0); } else { -1 != q && (W = setTimeout(function() { - delete A._waiters[P]; - P == A._nextWaiter && (A._nextWaiter = n(A)); - t.timeout(); + delete A._waiters[R]; + R == A._nextWaiter && (A._nextWaiter = n(A)); + G.timeout(); }, q)); - this._waiters[P] = function(k) { + this._waiters[R] = function(l) { clearTimeout(W); setTimeout(function() { - t.result(k); + G.result(l); }, 0); }; - this._nextWaiter || (this._nextWaiter = P); + this._nextWaiter || (this._nextWaiter = R); } }, A); - return P; + return R; }, - add: function(k) { + add: function(l) { var q; if (this._nextWaiter) { q = this._waiters[this._nextWaiter]; delete this._waiters[this._nextWaiter]; this._nextWaiter = n(this); - q.call(this, k); - } else this._queue.push(k); + q.call(this, l); + } else this._queue.push(l); } }); }()); (function() { - var k; - k = 0 - Aa; - Sd = fa.Class.create({ + var l; + l = 0 - Ca; + Od = ha.Class.create({ nextBoolean: function() { - var k; - k = new Uint8Array(1); - Fb.getRandomValues(k); - return k[0] & 1 ? !0 : !1; + var l; + l = new Uint8Array(1); + Fb.getRandomValues(l); + return l[0] & 1 ? !0 : !1; }, - nextInt: function(k) { + nextInt: function(l) { var n; - if (null !== k && k !== ga) { - if ("number" !== typeof k) throw new TypeError("n must be of type number"); - if (1 > k) throw new RangeError("n must be greater than zero"); - --k; + if (null !== l && l !== da) { + if ("number" !== typeof l) throw new TypeError("n must be of type number"); + if (1 > l) throw new RangeError("n must be greater than zero"); + --l; n = new Uint8Array(4); Fb.getRandomValues(n); - return Math.floor(((n[3] & 127) << 24 | n[2] << 16 | n[1] << 8 | n[0]) / 2147483648 * (k - 0 + 1) + 0); + return Math.floor(((n[3] & 127) << 24 | n[2] << 16 | n[1] << 8 | n[0]) / 2147483648 * (l - 0 + 1) + 0); } - k = new Uint8Array(4); - Fb.getRandomValues(k); - n = (k[3] & 127) << 24 | k[2] << 16 | k[1] << 8 | k[0]; - return k[3] & 128 ? -n : n; + l = new Uint8Array(4); + Fb.getRandomValues(l); + n = (l[3] & 127) << 24 | l[2] << 16 | l[1] << 8 | l[0]; + return l[3] & 128 ? -n : n; }, nextLong: function() { var q, n; - for (var n = k; n == k;) { + for (var n = l; n == l;) { n = new Uint8Array(7); Fb.getRandomValues(n); q = 16777216 * ((n[6] & 31) << 24 | n[5] << 16 | n[4] << 8 | n[3]) + (n[2] << 16 | n[1] << 8 | n[0]); @@ -2330,28 +2325,28 @@ v7AA.H22 = function() { } return n; }, - nextBytes: function(k) { - Fb.getRandomValues(k); + nextBytes: function(l) { + Fb.getRandomValues(l); } }); }()); (function() { - function k(k) { - return k == Aa ? 1 : k + 1; + function l(l) { + return l == Ca ? 1 : l + 1; } function n(n) { if (0 === Object.keys(n._waitingReaders).length) return 0; - for (var q = k(n._nextReader); !n._waitingReaders[q];) q = k(q); + for (var q = l(n._nextReader); !n._waitingReaders[q];) q = l(q); return q; } function q(n) { if (0 === Object.keys(n._waitingWriters).length) return 0; - for (var q = k(n._nextWriter); !n._waitingWriters[q];) q = k(q); + for (var q = l(n._nextWriter); !n._waitingWriters[q];) q = l(q); return q; } - $c = fa.Class.create({ + Zc = ha.Class.create({ init: function() { Object.defineProperties(this, { _readers: { @@ -2398,354 +2393,354 @@ v7AA.H22 = function() { } }); }, - cancel: function(k) { + cancel: function(l) { var t; - if (this._waitingReaders[k]) { - t = this._waitingReaders[k]; - delete this._waitingReaders[k]; - k == this._nextReader && (this._nextReader = n(this)); + if (this._waitingReaders[l]) { + t = this._waitingReaders[l]; + delete this._waitingReaders[l]; + l == this._nextReader && (this._nextReader = n(this)); t.call(this, !0); } - this._waitingWriters[k] && (t = this._waitingWriters[k], delete this._waitingWriters[k], k == this._nextWriter && (this._nextWriter = q(this)), t.call(this, !0)); + this._waitingWriters[l] && (t = this._waitingWriters[l], delete this._waitingWriters[l], l == this._nextWriter && (this._nextWriter = q(this)), t.call(this, !0)); }, cancelAll: function() { for (; 0 !== this._nextWriter;) this.cancel(this._nextWriter); for (; 0 !== this._nextReader;) this.cancel(this._nextReader); }, - readLock: function(q, t) { - var A, P; + readLock: function(q, G) { + var A, R; A = this; - P = k(this._lastNumber); - this._lastNumber = P; - H(t, function() { - var k; - if (!this._writer && 0 === Object.keys(this._waitingWriters).length) return this._readers[P] = !0, P; - 1 != q && (k = setTimeout(function() { - delete A._waitingReaders[P]; - P == A._nextReader && (A._nextReader = n(A)); - t.timeout(); + R = l(this._lastNumber); + this._lastNumber = R; + t(G, function() { + var l; + if (!this._writer && 0 === Object.keys(this._waitingWriters).length) return this._readers[R] = !0, R; - 1 != q && (l = setTimeout(function() { + delete A._waitingReaders[R]; + R == A._nextReader && (A._nextReader = n(A)); + G.timeout(); }, q)); - this._waitingReaders[P] = function(n) { - clearTimeout(k); + this._waitingReaders[R] = function(n) { + clearTimeout(l); n ? setTimeout(function() { - t.result(ga); - }, 0) : (A._readers[P] = !0, setTimeout(function() { - t.result(P); + G.result(da); + }, 0) : (A._readers[R] = !0, setTimeout(function() { + G.result(R); }, 0)); }; - this._nextReader || (this._nextReader = P); + this._nextReader || (this._nextReader = R); }, A); - return P; + return R; }, - writeLock: function(n, t) { - var A, P; + writeLock: function(n, G) { + var A, R; A = this; - P = k(this._lastNumber); - this._lastNumber = P; - H(t, function() { - var k; - if (0 === Object.keys(this._readers).length && 0 === Object.keys(this._waitingReaders).length && !this._writer) return this._writer = P; - 1 != n && (k = setTimeout(function() { - delete A._waitingWriters[P]; - P == A._nextWriter && (A._nextWriter = q(A)); - t.timeout(); + R = l(this._lastNumber); + this._lastNumber = R; + t(G, function() { + var l; + if (0 === Object.keys(this._readers).length && 0 === Object.keys(this._waitingReaders).length && !this._writer) return this._writer = R; - 1 != n && (l = setTimeout(function() { + delete A._waitingWriters[R]; + R == A._nextWriter && (A._nextWriter = q(A)); + G.timeout(); }, n)); - this._waitingWriters[P] = function(n) { - clearTimeout(k); + this._waitingWriters[R] = function(n) { + clearTimeout(l); n ? setTimeout(function() { - t.result(ga); - }, 0) : (A._writer = P, setTimeout(function() { - t.result(P); + G.result(da); + }, 0) : (A._writer = R, setTimeout(function() { + G.result(R); }, 0)); }; - this._nextWriter || (this._nextWriter = P); + this._nextWriter || (this._nextWriter = R); }, A); - return P; + return R; }, unlock: function(n) { if (n == this._writer) this._writer = null; else { - if (!this._readers[n]) throw new Y("There is no reader or writer with ticket number " + n + "."); + if (!this._readers[n]) throw new ca("There is no reader or writer with ticket number " + n + "."); delete this._readers[n]; } if (this._nextWriter) 0 < Object.keys(this._readers).length || (n = this._waitingWriters[this._nextWriter], delete this._waitingWriters[this._nextWriter], this._nextWriter = q(this), n.call(this, !1)); else { - for (var t = this._nextReader; 0 < Object.keys(this._waitingReaders).length; t = k(t)) this._waitingReaders[t] && (n = this._waitingReaders[t], delete this._waitingReaders[t], n.call(this, !1)); + for (var t = this._nextReader; 0 < Object.keys(this._waitingReaders).length; t = l(t)) this._waitingReaders[t] && (n = this._waitingReaders[t], delete this._waitingReaders[t], n.call(this, !1)); this._nextReader = 0; } } }); }()); - fa.Class.mixin(k, { - JSON_PARSE_ERROR: new k(0, q.FAIL, "Error parsing JSON."), - JSON_ENCODE_ERROR: new k(1, q.FAIL, "Error encoding JSON."), - ENVELOPE_HASH_MISMATCH: new k(2, q.FAIL, "Computed hash does not match envelope hash."), - INVALID_PUBLIC_KEY: new k(3, q.FAIL, "Invalid public key provided."), - INVALID_PRIVATE_KEY: new k(4, q.FAIL, "Invalid private key provided."), - PLAINTEXT_ILLEGAL_BLOCK_SIZE: new k(5, q.FAIL, "Plaintext is not a multiple of the block size."), - PLAINTEXT_BAD_PADDING: new k(6, q.FAIL, "Plaintext contains incorrect padding."), - CIPHERTEXT_ILLEGAL_BLOCK_SIZE: new k(7, q.FAIL, "Ciphertext is not a multiple of the block size."), - CIPHERTEXT_BAD_PADDING: new k(8, q.FAIL, "Ciphertext contains incorrect padding."), - ENCRYPT_NOT_SUPPORTED: new k(9, q.FAIL, "Encryption not supported."), - DECRYPT_NOT_SUPPORTED: new k(10, q.FAIL, "Decryption not supported."), - ENVELOPE_KEY_ID_MISMATCH: new k(11, q.FAIL, "Encryption envelope key ID does not match crypto context key ID."), - CIPHERTEXT_ENVELOPE_PARSE_ERROR: new k(12, q.FAIL, "Error parsing ciphertext envelope."), - CIPHERTEXT_ENVELOPE_ENCODE_ERROR: new k(13, q.FAIL, "Error encoding ciphertext envelope."), - SIGN_NOT_SUPPORTED: new k(14, q.FAIL, "Sign not supported."), - VERIFY_NOT_SUPPORTED: new k(15, q.FAIL, "Verify not suppoprted."), - SIGNATURE_ERROR: new k(16, q.FAIL, "Signature not initialized or unable to process data/signature."), - HMAC_ERROR: new k(17, q.FAIL, "Error computing HMAC."), - ENCRYPT_ERROR: new k(18, q.FAIL, "Error encrypting plaintext."), - DECRYPT_ERROR: new k(19, q.FAIL, "Error decrypting ciphertext."), - INSUFFICIENT_CIPHERTEXT: new k(20, q.FAIL, "Insufficient ciphertext for decryption."), - SESSION_KEY_CREATION_FAILURE: new k(21, q.FAIL, "Error when creating session keys."), - ASN1_PARSE_ERROR: new k(22, q.FAIL, "Error parsing ASN.1."), - ASN1_ENCODE_ERROR: new k(23, q.FAIL, "Error encoding ASN.1."), - INVALID_SYMMETRIC_KEY: new k(24, q.FAIL, "Invalid symmetric key provided."), - INVALID_ENCRYPTION_KEY: new k(25, q.FAIL, "Invalid encryption key."), - INVALID_HMAC_KEY: new k(26, q.FAIL, "Invalid HMAC key."), - WRAP_NOT_SUPPORTED: new k(27, q.FAIL, "Wrap not supported."), - UNWRAP_NOT_SUPPORTED: new k(28, q.FAIL, "Unwrap not supported."), - UNIDENTIFIED_JWK_TYPE: new k(29, q.FAIL, "Unidentified JSON web key type."), - UNIDENTIFIED_JWK_USAGE: new k(30, q.FAIL, "Unidentified JSON web key usage."), - UNIDENTIFIED_JWK_ALGORITHM: new k(31, q.FAIL, "Unidentified JSON web key algorithm."), - WRAP_ERROR: new k(32, q.FAIL, "Error wrapping plaintext."), - UNWRAP_ERROR: new k(33, q.FAIL, "Error unwrapping ciphertext."), - INVALID_JWK: new k(34, q.FAIL, "Invalid JSON web key."), - INVALID_JWK_KEYDATA: new k(35, q.FAIL, "Invalid JSON web key keydata."), - UNSUPPORTED_JWK_ALGORITHM: new k(36, q.FAIL, "Unsupported JSON web key algorithm."), - WRAP_KEY_CREATION_FAILURE: new k(37, q.FAIL, "Error when creating wrapping key."), - INVALID_WRAP_CIPHERTEXT: new k(38, q.FAIL, "Invalid wrap ciphertext."), - UNSUPPORTED_JWE_ALGORITHM: new k(39, q.FAIL, "Unsupported JSON web encryption algorithm."), - JWE_ENCODE_ERROR: new k(40, q.FAIL, "Error encoding JSON web encryption header."), - JWE_PARSE_ERROR: new k(41, q.FAIL, "Error parsing JSON web encryption header."), - INVALID_ALGORITHM_PARAMS: new k(42, q.FAIL, "Invalid algorithm parameters."), - JWE_ALGORITHM_MISMATCH: new k(43, q.FAIL, "JSON web encryption header algorithms mismatch."), - KEY_IMPORT_ERROR: new k(44, q.FAIL, "Error importing key."), - KEY_EXPORT_ERROR: new k(45, q.FAIL, "Error exporting key."), - DIGEST_ERROR: new k(46, q.FAIL, "Error in digest."), - UNSUPPORTED_KEY: new k(47, q.FAIL, "Unsupported key type or algorithm."), - UNSUPPORTED_JWE_SERIALIZATION: new k(48, q.FAIL, "Unsupported JSON web encryption serialization."), - XML_PARSE_ERROR: new k(49, q.FAIL, "Error parsing XML."), - XML_ENCODE_ERROR: new k(50, q.FAIL, "Error encoding XML."), - INVALID_WRAPPING_KEY: new k(51, q.FAIL, "Invalid wrapping key."), - UNIDENTIFIED_CIPHERTEXT_ENVELOPE: new k(52, q.FAIL, "Unidentified ciphertext envelope version."), - UNIDENTIFIED_SIGNATURE_ENVELOPE: new k(53, q.FAIL, "Unidentified signature envelope version."), - UNSUPPORTED_CIPHERTEXT_ENVELOPE: new k(54, q.FAIL, "Unsupported ciphertext envelope version."), - UNSUPPORTED_SIGNATURE_ENVELOPE: new k(55, q.FAIL, "Unsupported signature envelope version."), - UNIDENTIFIED_CIPHERSPEC: new k(56, q.FAIL, "Unidentified cipher specification."), - UNIDENTIFIED_ALGORITHM: new k(57, q.FAIL, "Unidentified algorithm."), - SIGNATURE_ENVELOPE_PARSE_ERROR: new k(58, q.FAIL, "Error parsing signature envelope."), - SIGNATURE_ENVELOPE_ENCODE_ERROR: new k(59, q.FAIL, "Error encoding signature envelope."), - INVALID_SIGNATURE: new k(60, q.FAIL, "Invalid signature."), - WRAPKEY_FINGERPRINT_NOTSUPPORTED: new k(61, q.FAIL, "Wrap key fingerprint not supported"), - UNIDENTIFIED_JWK_KEYOP: new k(62, q.FAIL, "Unidentified JSON web key key operation."), - MASTERTOKEN_UNTRUSTED: new k(1E3, q.ENTITY_REAUTH, "Master token is not trusted."), - MASTERTOKEN_KEY_CREATION_ERROR: new k(1001, q.ENTITY_REAUTH, "Unable to construct symmetric keys from master token."), - MASTERTOKEN_EXPIRES_BEFORE_RENEWAL: new k(1002, q.ENTITY_REAUTH, "Master token expiration timestamp is before the renewal window opens."), - MASTERTOKEN_SESSIONDATA_MISSING: new k(1003, q.ENTITY_REAUTH, "No master token session data found."), - MASTERTOKEN_SEQUENCE_NUMBER_OUT_OF_RANGE: new k(1004, q.ENTITY_REAUTH, "Master token sequence number is out of range."), - MASTERTOKEN_SERIAL_NUMBER_OUT_OF_RANGE: new k(1005, q.ENTITY_REAUTH, "Master token serial number is out of range."), - MASTERTOKEN_TOKENDATA_INVALID: new k(1006, q.ENTITY_REAUTH, "Invalid master token data."), - MASTERTOKEN_SIGNATURE_INVALID: new k(1007, q.ENTITY_REAUTH, "Invalid master token signature."), - MASTERTOKEN_SESSIONDATA_INVALID: new k(1008, q.ENTITY_REAUTH, "Invalid master token session data."), - MASTERTOKEN_SEQUENCE_NUMBER_OUT_OF_SYNC: new k(1009, q.ENTITY_REAUTH, "Master token sequence number does not have the expected value."), - MASTERTOKEN_TOKENDATA_MISSING: new k(1010, q.ENTITY_REAUTH, "No master token data found."), - MASTERTOKEN_TOKENDATA_PARSE_ERROR: new k(1011, q.ENTITY_REAUTH, "Error parsing master token data."), - MASTERTOKEN_SESSIONDATA_PARSE_ERROR: new k(1012, q.ENTITY_REAUTH, "Error parsing master token session data."), - MASTERTOKEN_IDENTITY_REVOKED: new k(1013, q.ENTITY_REAUTH, "Master token entity identity is revoked."), - MASTERTOKEN_REJECTED_BY_APP: new k(1014, q.ENTITY_REAUTH, "Master token is rejected by the application."), - USERIDTOKEN_MASTERTOKEN_MISMATCH: new k(2E3, q.USER_REAUTH, "User ID token master token serial number does not match master token serial number."), - USERIDTOKEN_NOT_DECRYPTED: new k(2001, q.USER_REAUTH, "User ID token is not decrypted or verified."), - USERIDTOKEN_MASTERTOKEN_NULL: new k(2002, q.USER_REAUTH, "User ID token requires a master token."), - USERIDTOKEN_EXPIRES_BEFORE_RENEWAL: new k(2003, q.USER_REAUTH, "User ID token expiration timestamp is before the renewal window opens."), - USERIDTOKEN_USERDATA_MISSING: new k(2004, q.USER_REAUTH, "No user ID token user data found."), - USERIDTOKEN_MASTERTOKEN_NOT_FOUND: new k(2005, q.USER_REAUTH, "User ID token is bound to an unknown master token."), - USERIDTOKEN_MASTERTOKEN_SERIAL_NUMBER_OUT_OF_RANGE: new k(2006, q.USER_REAUTH, "User ID token master token serial number is out of range."), - USERIDTOKEN_SERIAL_NUMBER_OUT_OF_RANGE: new k(2007, q.USER_REAUTH, "User ID token serial number is out of range."), - USERIDTOKEN_TOKENDATA_INVALID: new k(2008, q.USER_REAUTH, "Invalid user ID token data."), - USERIDTOKEN_SIGNATURE_INVALID: new k(2009, q.USER_REAUTH, "Invalid user ID token signature."), - USERIDTOKEN_USERDATA_INVALID: new k(2010, q.USER_REAUTH, "Invalid user ID token user data."), - USERIDTOKEN_IDENTITY_INVALID: new k(2011, q.USER_REAUTH, "Invalid user ID token user identity."), - RESERVED_2012: new k(2012, q.USER_REAUTH, "The entity is not associated with the user."), - USERIDTOKEN_IDENTITY_NOT_FOUND: new k(2013, q.USER_REAUTH, "The user identity was not found."), - USERIDTOKEN_PASSWORD_VERSION_CHANGED: new k(2014, q.USER_REAUTH, "The user identity must be reauthenticated because the password version changed."), - USERIDTOKEN_USERAUTH_DATA_MISMATCH: new k(2015, q.USER_REAUTH, "The user ID token and user authentication data user identities do not match."), - USERIDTOKEN_TOKENDATA_MISSING: new k(2016, q.USER_REAUTH, "No user ID token data found."), - USERIDTOKEN_TOKENDATA_PARSE_ERROR: new k(2017, q.USER_REAUTH, "Error parsing user ID token data."), - USERIDTOKEN_USERDATA_PARSE_ERROR: new k(2018, q.USER_REAUTH, "Error parsing user ID token user data."), - USERIDTOKEN_REVOKED: new k(2019, q.USER_REAUTH, "User ID token is revoked."), - USERIDTOKEN_REJECTED_BY_APP: new k(2020, q.USER_REAUTH, "User ID token is rejected by the application."), - SERVICETOKEN_MASTERTOKEN_MISMATCH: new k(3E3, q.FAIL, "Service token master token serial number does not match master token serial number."), - SERVICETOKEN_USERIDTOKEN_MISMATCH: new k(3001, q.FAIL, "Service token user ID token serial number does not match user ID token serial number."), - SERVICETOKEN_SERVICEDATA_INVALID: new k(3002, q.FAIL, "Service token data invalid."), - SERVICETOKEN_MASTERTOKEN_NOT_FOUND: new k(3003, q.FAIL, "Service token is bound to an unknown master token."), - SERVICETOKEN_USERIDTOKEN_NOT_FOUND: new k(3004, q.FAIL, "Service token is bound to an unknown user ID token."), - SERVICETOKEN_MASTERTOKEN_SERIAL_NUMBER_OUT_OF_RANGE: new k(3005, q.FAIL, "Service token master token serial number is out of range."), - SERVICETOKEN_USERIDTOKEN_SERIAL_NUMBER_OUT_OF_RANGE: new k(3006, q.FAIL, "Service token user ID token serial number is out of range."), - SERVICETOKEN_TOKENDATA_INVALID: new k(3007, q.FAIL, "Invalid service token data."), - SERVICETOKEN_SIGNATURE_INVALID: new k(3008, q.FAIL, "Invalid service token signature."), - SERVICETOKEN_TOKENDATA_MISSING: new k(3009, q.FAIL, "No service token data found."), - UNIDENTIFIED_ENTITYAUTH_SCHEME: new k(4E3, q.FAIL, "Unable to identify entity authentication scheme."), - ENTITYAUTH_FACTORY_NOT_FOUND: new k(4001, q.FAIL, "No factory registered for entity authentication scheme."), - X509CERT_PARSE_ERROR: new k(4002, q.ENTITYDATA_REAUTH, "Error parsing X.509 certificate data."), - X509CERT_ENCODE_ERROR: new k(4003, q.ENTITYDATA_REAUTH, "Error encoding X.509 certificate data."), - X509CERT_VERIFICATION_FAILED: new k(4004, q.ENTITYDATA_REAUTH, "X.509 certificate verification failed."), - ENTITY_NOT_FOUND: new k(4005, q.FAIL, "Entity not recognized."), - INCORRECT_ENTITYAUTH_DATA: new k(4006, q.FAIL, "Entity used incorrect entity authentication data type."), - RSA_PUBLICKEY_NOT_FOUND: new k(4007, q.ENTITYDATA_REAUTH, "RSA public key not found."), - NPTICKET_GRACE_PERIOD_EXCEEDED: new k(4008, q.ENTITYDATA_REAUTH, "Fake NP-Tickets cannot be used after the grace period when the Playstation Network is up."), - NPTICKET_SERVICE_ID_MISSING: new k(4009, q.ENTITYDATA_REAUTH, "NP-Ticket service ID is missing."), - NPTICKET_SERVICE_ID_DISALLOWED: new k(4010, q.ENTITYDATA_REAUTH, "NP-Ticket service ID is not allowed."), - NPTICKET_NOT_YET_VALID: new k(4011, q.ENTITYDATA_REAUTH, "NP-Ticket issuance date is in the future."), - NPTICKET_EXPIRED: new k(4012, q.ENTITYDATA_REAUTH, "NP-Ticket has expired."), - NPTICKET_PRIVATE_KEY_NOT_FOUND: new k(4013, q.ENTITYDATA_REAUTH, "No private key found for NP-Ticket GUID."), - NPTICKET_COOKIE_VERIFICATION_FAILED: new k(4014, q.ENTITYDATA_REAUTH, "NP-Ticket cookie signature verification failed."), - NPTICKET_INCORRECT_COOKIE_VERSION: new k(4015, q.ENTITYDATA_REAUTH, "Incorrect NP-Ticket cookie version."), - NPTICKET_BROKEN: new k(4016, q.ENTITYDATA_REAUTH, "NP-Ticket broken."), - NPTICKET_VERIFICATION_FAILED: new k(4017, q.ENTITYDATA_REAUTH, "NP-Ticket signature verification failed."), - NPTICKET_ERROR: new k(4018, q.ENTITYDATA_REAUTH, "Unknown NP-Ticket TCM error."), - NPTICKET_CIPHER_INFO_NOT_FOUND: new k(4019, q.ENTITYDATA_REAUTH, "No cipher information found for NP-Ticket."), - NPTICKET_INVALID_CIPHER_INFO: new k(4020, q.ENTITYDATA_REAUTH, "Cipher information for NP-Ticket is invalid."), - NPTICKET_UNSUPPORTED_VERSION: new k(4021, q.ENTITYDATA_REAUTH, "Unsupported NP-Ticket version."), - NPTICKET_INCORRECT_KEY_LENGTH: new k(4022, q.ENTITYDATA_REAUTH, "Incorrect NP-Ticket public key length."), - UNSUPPORTED_ENTITYAUTH_DATA: new k(4023, q.FAIL, "Unsupported entity authentication data."), - CRYPTEX_RSA_KEY_SET_NOT_FOUND: new k(4024, q.FAIL, "Cryptex RSA key set not found."), - ENTITY_REVOKED: new k(4025, q.FAIL, "Entity is revoked."), - ENTITY_REJECTED_BY_APP: new k(4026, q.ENTITYDATA_REAUTH, "Entity is rejected by the application."), - FORCE_LOGIN: new k(5E3, q.USERDATA_REAUTH, "User must login again."), - NETFLIXID_COOKIES_EXPIRED: new k(5001, q.USERDATA_REAUTH, "Netflix ID cookie identity has expired."), - NETFLIXID_COOKIES_BLANK: new k(5002, q.USERDATA_REAUTH, "Netflix ID or Secure Netflix ID cookie is blank."), - UNIDENTIFIED_USERAUTH_SCHEME: new k(5003, q.FAIL, "Unable to identify user authentication scheme."), - USERAUTH_FACTORY_NOT_FOUND: new k(5004, q.FAIL, "No factory registered for user authentication scheme."), - EMAILPASSWORD_BLANK: new k(5005, q.USERDATA_REAUTH, "Email or password is blank."), - AUTHMGR_COMMS_FAILURE: new k(5006, q.TRANSIENT_FAILURE, "Error communicating with authentication manager."), - EMAILPASSWORD_INCORRECT: new k(5007, q.USERDATA_REAUTH, "Email or password is incorrect."), - UNSUPPORTED_USERAUTH_DATA: new k(5008, q.FAIL, "Unsupported user authentication data."), - SSOTOKEN_BLANK: new k(5009, q.SSOTOKEN_REJECTED, "SSO token is blank."), - SSOTOKEN_NOT_ASSOCIATED: new k(5010, q.USERDATA_REAUTH, "SSO token is not associated with a Netflix user."), - USERAUTH_USERIDTOKEN_INVALID: new k(5011, q.USERDATA_REAUTH, "User authentication data user ID token is invalid."), - PROFILEID_BLANK: new k(5012, q.USERDATA_REAUTH, "Profile ID is blank."), - UNIDENTIFIED_USERAUTH_MECHANISM: new k(5013, q.FAIL, "Unable to identify user authentication mechanism."), - UNSUPPORTED_USERAUTH_MECHANISM: new k(5014, q.FAIL, "Unsupported user authentication mechanism."), - SSOTOKEN_INVALID: new k(5015, q.SSOTOKEN_REJECTED, "SSO token invalid."), - USERAUTH_MASTERTOKEN_MISSING: new k(5016, q.USERDATA_REAUTH, "User authentication required master token is missing."), - ACCTMGR_COMMS_FAILURE: new k(5017, q.TRANSIENT_FAILURE, "Error communicating with the account manager."), - SSO_ASSOCIATION_FAILURE: new k(5018, q.TRANSIENT_FAILURE, "SSO user association failed."), - SSO_DISASSOCIATION_FAILURE: new k(5019, q.TRANSIENT_FAILURE, "SSO user disassociation failed."), - MDX_USERAUTH_VERIFICATION_FAILED: new k(5020, q.USERDATA_REAUTH, "MDX user authentication data verification failed."), - USERAUTH_USERIDTOKEN_NOT_DECRYPTED: new k(5021, q.USERDATA_REAUTH, "User authentication data user ID token is not decrypted or verified."), - MDX_USERAUTH_ACTION_INVALID: new k(5022, q.USERDATA_REAUTH, "MDX user authentication data action is invalid."), - CTICKET_DECRYPT_ERROR: new k(5023, q.USERDATA_REAUTH, "CTicket decryption failed."), - USERAUTH_MASTERTOKEN_INVALID: new k(5024, q.USERDATA_REAUTH, "User authentication data master token is invalid."), - USERAUTH_MASTERTOKEN_NOT_DECRYPTED: new k(5025, q.USERDATA_REAUTH, "User authentication data master token is not decrypted or verified."), - CTICKET_CRYPTOCONTEXT_ERROR: new k(5026, q.USERDATA_REAUTH, "Error creating CTicket crypto context."), - MDX_PIN_BLANK: new k(5027, q.USERDATA_REAUTH, "MDX controller or target PIN is blank."), - MDX_PIN_MISMATCH: new k(5028, q.USERDATA_REAUTH, "MDX controller and target PIN mismatch."), - MDX_USER_UNKNOWN: new k(5029, q.USERDATA_REAUTH, "MDX controller user ID token or CTicket is not decrypted or verified."), - USERAUTH_USERIDTOKEN_MISSING: new k(5030, q.USERDATA_REAUTH, "User authentication required user ID token is missing."), - MDX_CONTROLLERDATA_INVALID: new k(5031, q.USERDATA_REAUTH, "MDX controller authentication data is invalid."), - USERAUTH_ENTITY_MISMATCH: new k(5032, q.USERDATA_REAUTH, "User authentication data does not match entity identity."), - USERAUTH_INCORRECT_DATA: new k(5033, q.FAIL, "Entity used incorrect key request data type"), - SSO_ASSOCIATION_WITH_NONMEMBER: new k(5034, q.USERDATA_REAUTH, "SSO user association failed because the customer is not a member."), - SSO_ASSOCIATION_WITH_FORMERMEMBER: new k(5035, q.USERDATA_REAUTH, "SSO user association failed because the customer is a former member."), - SSO_ASSOCIATION_CONFLICT: new k(5036, q.USERDATA_REAUTH, "SSO user association failed because the token identifies a different member."), - USER_REJECTED_BY_APP: new k(5037, q.USERDATA_REAUTH, "User is rejected by the application."), - PROFILE_SWITCH_DISALLOWED: new k(5038, q.TRANSIENT_FAILURE, "Unable to switch user profile."), - MEMBERSHIPCLIENT_COMMS_FAILURE: new k(5039, q.TRANSIENT_FAILURE, "Error communicating with the membership manager."), - USERIDTOKEN_IDENTITY_NOT_ASSOCIATED_WITH_ENTITY: new k(5040, q.USER_REAUTH, "The entity is not associated with the user."), - UNSUPPORTED_COMPRESSION: new k(6E3, q.FAIL, "Unsupported compression algorithm."), - COMPRESSION_ERROR: new k(6001, q.FAIL, "Error compressing data."), - UNCOMPRESSION_ERROR: new k(6002, q.FAIL, "Error uncompressing data."), - MESSAGE_ENTITY_NOT_FOUND: new k(6003, q.FAIL, "Message header entity authentication data or master token not found."), - PAYLOAD_MESSAGE_ID_MISMATCH: new k(6004, q.FAIL, "Payload chunk message ID does not match header message ID ."), - PAYLOAD_SEQUENCE_NUMBER_MISMATCH: new k(6005, q.FAIL, "Payload chunk sequence number does not match expected sequence number."), - PAYLOAD_VERIFICATION_FAILED: new k(6006, q.FAIL, "Payload chunk payload signature verification failed."), - MESSAGE_DATA_MISSING: new k(6007, q.FAIL, "No message data found."), - MESSAGE_FORMAT_ERROR: new k(6008, q.FAIL, "Malformed message data."), - MESSAGE_VERIFICATION_FAILED: new k(6009, q.FAIL, "Message header/error data signature verification failed."), - HEADER_DATA_MISSING: new k(6010, q.FAIL, "No header data found."), - PAYLOAD_DATA_MISSING: new k(6011, q.FAIL, "No payload data found in non-EOM payload chunk."), - PAYLOAD_DATA_CORRUPT: new k(6012, q.FAIL, "Corrupt payload data found in non-EOM payload chunk."), - UNIDENTIFIED_COMPRESSION: new k(6013, q.FAIL, "Unidentified compression algorithm."), - MESSAGE_EXPIRED: new k(6014, q.EXPIRED, "Message expired and not renewable. Rejected."), - MESSAGE_ID_OUT_OF_RANGE: new k(6015, q.FAIL, "Message ID is out of range."), - INTERNAL_CODE_NEGATIVE: new k(6016, q.FAIL, "Error header internal code is negative."), - UNEXPECTED_RESPONSE_MESSAGE_ID: new k(6017, q.FAIL, "Unexpected response message ID. Possible replay."), - RESPONSE_REQUIRES_ENCRYPTION: new k(6018, q.KEYX_REQUIRED, "Message response requires encryption."), - PAYLOAD_SEQUENCE_NUMBER_OUT_OF_RANGE: new k(6019, q.FAIL, "Payload chunk sequence number is out of range."), - PAYLOAD_MESSAGE_ID_OUT_OF_RANGE: new k(6020, q.FAIL, "Payload chunk message ID is out of range."), - MESSAGE_REPLAYED: new k(6021, q.REPLAYED, "Non-replayable message replayed."), - INCOMPLETE_NONREPLAYABLE_MESSAGE: new k(6022, q.FAIL, "Non-replayable message sent non-renewable or without key request data or without a master token."), - HEADER_SIGNATURE_INVALID: new k(6023, q.FAIL, "Invalid Header signature."), - HEADER_DATA_INVALID: new k(6024, q.FAIL, "Invalid header data."), - PAYLOAD_INVALID: new k(6025, q.FAIL, "Invalid payload."), - PAYLOAD_SIGNATURE_INVALID: new k(6026, q.FAIL, "Invalid payload signature."), - RESPONSE_REQUIRES_MASTERTOKEN: new k(6027, q.KEYX_REQUIRED, "Message response requires a master token."), - RESPONSE_REQUIRES_USERIDTOKEN: new k(6028, q.USER_REAUTH, "Message response requires a user ID token."), - REQUEST_REQUIRES_USERAUTHDATA: new k(6029, q.FAIL, "User-associated message requires user authentication data."), - UNEXPECTED_MESSAGE_SENDER: new k(6030, q.FAIL, "Message sender is equal to the local entity or not the master token entity."), - NONREPLAYABLE_MESSAGE_REQUIRES_MASTERTOKEN: new k(6031, q.FAIL, "Non-replayable message requires a master token."), - NONREPLAYABLE_ID_OUT_OF_RANGE: new k(6032, q.FAIL, "Non-replayable message non-replayable ID is out of range."), - MESSAGE_SERVICETOKEN_MISMATCH: new k(6033, q.FAIL, "Service token master token or user ID token serial number does not match the message token serial numbers."), - MESSAGE_PEER_SERVICETOKEN_MISMATCH: new k(6034, q.FAIL, "Peer service token master token or user ID token serial number does not match the message peer token serial numbers."), - RESPONSE_REQUIRES_INTEGRITY_PROTECTION: new k(6035, q.KEYX_REQUIRED, "Message response requires integrity protection."), - HANDSHAKE_DATA_MISSING: new k(6036, q.FAIL, "Handshake message is not renewable or does not contain key request data."), - MESSAGE_RECIPIENT_MISMATCH: new k(6037, q.FAIL, "Message recipient does not match local identity."), - UNIDENTIFIED_KEYX_SCHEME: new k(7E3, q.FAIL, "Unable to identify key exchange scheme."), - KEYX_FACTORY_NOT_FOUND: new k(7001, q.FAIL, "No factory registered for key exchange scheme."), - KEYX_REQUEST_NOT_FOUND: new k(7002, q.FAIL, "No key request found matching header key response data."), - UNIDENTIFIED_KEYX_KEY_ID: new k(7003, q.FAIL, "Unable to identify key exchange key ID."), - UNSUPPORTED_KEYX_KEY_ID: new k(7004, q.FAIL, "Unsupported key exchange key ID."), - UNIDENTIFIED_KEYX_MECHANISM: new k(7005, q.FAIL, "Unable to identify key exchange mechanism."), - UNSUPPORTED_KEYX_MECHANISM: new k(7006, q.FAIL, "Unsupported key exchange mechanism."), - KEYX_RESPONSE_REQUEST_MISMATCH: new k(7007, q.FAIL, "Key exchange response does not match request."), - KEYX_PRIVATE_KEY_MISSING: new k(7008, q.FAIL, "Key exchange private key missing."), - UNKNOWN_KEYX_PARAMETERS_ID: new k(7009, q.FAIL, "Key exchange parameters ID unknown or invalid."), - KEYX_MASTER_TOKEN_MISSING: new k(7010, q.FAIL, "Master token required for key exchange is missing."), - KEYX_INVALID_PUBLIC_KEY: new k(7011, q.FAIL, "Key exchange public key is invalid."), - KEYX_PUBLIC_KEY_MISSING: new k(7012, q.FAIL, "Key exchange public key missing."), - KEYX_WRAPPING_KEY_MISSING: new k(7013, q.FAIL, "Key exchange wrapping key missing."), - KEYX_WRAPPING_KEY_ID_MISSING: new k(7014, q.FAIL, "Key exchange wrapping key ID missing."), - KEYX_INVALID_WRAPPING_KEY: new k(7015, q.FAIL, "Key exchange wrapping key is invalid."), - KEYX_INCORRECT_DATA: new k(7016, q.FAIL, "Entity used incorrect wrapping key data type"), - CRYPTEX_ENCRYPTION_ERROR: new k(8E3, q.FAIL, "Error encrypting data with cryptex."), - CRYPTEX_DECRYPTION_ERROR: new k(8001, q.FAIL, "Error decrypting data with cryptex."), - CRYPTEX_MAC_ERROR: new k(8002, q.FAIL, "Error computing MAC with cryptex."), - CRYPTEX_VERIFY_ERROR: new k(8003, q.FAIL, "Error verifying MAC with cryptex."), - CRYPTEX_CONTEXT_CREATION_FAILURE: new k(8004, q.FAIL, "Error creating cryptex cipher or MAC context."), - DATAMODEL_DEVICE_ACCESS_ERROR: new k(8005, q.TRANSIENT_FAILURE, "Error accessing data model device."), - DATAMODEL_DEVICETYPE_NOT_FOUND: new k(8006, q.FAIL, "Data model device type not found."), - CRYPTEX_KEYSET_UNSUPPORTED: new k(8007, q.FAIL, "Cryptex key set not supported."), - CRYPTEX_PRIVILEGE_EXCEPTION: new k(8008, q.FAIL, "Insufficient privileges for cryptex operation."), - CRYPTEX_WRAP_ERROR: new k(8009, q.FAIL, "Error wrapping data with cryptex."), - CRYPTEX_UNWRAP_ERROR: new k(8010, q.FAIL, "Error unwrapping data with cryptex."), - CRYPTEX_COMMS_FAILURE: new k(8011, q.TRANSIENT_FAILURE, "Error comunicating with cryptex."), - CRYPTEX_SIGN_ERROR: new k(8012, q.FAIL, "Error computing signature with cryptex."), - INTERNAL_EXCEPTION: new k(9E3, q.TRANSIENT_FAILURE, "Internal exception."), - MSL_COMMS_FAILURE: new k(9001, q.FAIL, "Error communicating with MSL entity."), - NONE: new k(9999, q.FAIL, "Special unit test error.") + ha.Class.mixin(l, { + JSON_PARSE_ERROR: new l(0, q.FAIL, "Error parsing JSON."), + JSON_ENCODE_ERROR: new l(1, q.FAIL, "Error encoding JSON."), + ENVELOPE_HASH_MISMATCH: new l(2, q.FAIL, "Computed hash does not match envelope hash."), + INVALID_PUBLIC_KEY: new l(3, q.FAIL, "Invalid public key provided."), + INVALID_PRIVATE_KEY: new l(4, q.FAIL, "Invalid private key provided."), + PLAINTEXT_ILLEGAL_BLOCK_SIZE: new l(5, q.FAIL, "Plaintext is not a multiple of the block size."), + PLAINTEXT_BAD_PADDING: new l(6, q.FAIL, "Plaintext contains incorrect padding."), + CIPHERTEXT_ILLEGAL_BLOCK_SIZE: new l(7, q.FAIL, "Ciphertext is not a multiple of the block size."), + CIPHERTEXT_BAD_PADDING: new l(8, q.FAIL, "Ciphertext contains incorrect padding."), + ENCRYPT_NOT_SUPPORTED: new l(9, q.FAIL, "Encryption not supported."), + DECRYPT_NOT_SUPPORTED: new l(10, q.FAIL, "Decryption not supported."), + ENVELOPE_KEY_ID_MISMATCH: new l(11, q.FAIL, "Encryption envelope key ID does not match crypto context key ID."), + CIPHERTEXT_ENVELOPE_PARSE_ERROR: new l(12, q.FAIL, "Error parsing ciphertext envelope."), + CIPHERTEXT_ENVELOPE_ENCODE_ERROR: new l(13, q.FAIL, "Error encoding ciphertext envelope."), + SIGN_NOT_SUPPORTED: new l(14, q.FAIL, "Sign not supported."), + VERIFY_NOT_SUPPORTED: new l(15, q.FAIL, "Verify not suppoprted."), + SIGNATURE_ERROR: new l(16, q.FAIL, "Signature not initialized or unable to process data/signature."), + HMAC_ERROR: new l(17, q.FAIL, "Error computing HMAC."), + ENCRYPT_ERROR: new l(18, q.FAIL, "Error encrypting plaintext."), + DECRYPT_ERROR: new l(19, q.FAIL, "Error decrypting ciphertext."), + INSUFFICIENT_CIPHERTEXT: new l(20, q.FAIL, "Insufficient ciphertext for decryption."), + SESSION_KEY_CREATION_FAILURE: new l(21, q.FAIL, "Error when creating session keys."), + ASN1_PARSE_ERROR: new l(22, q.FAIL, "Error parsing ASN.1."), + ASN1_ENCODE_ERROR: new l(23, q.FAIL, "Error encoding ASN.1."), + INVALID_SYMMETRIC_KEY: new l(24, q.FAIL, "Invalid symmetric key provided."), + INVALID_ENCRYPTION_KEY: new l(25, q.FAIL, "Invalid encryption key."), + INVALID_HMAC_KEY: new l(26, q.FAIL, "Invalid HMAC key."), + WRAP_NOT_SUPPORTED: new l(27, q.FAIL, "Wrap not supported."), + UNWRAP_NOT_SUPPORTED: new l(28, q.FAIL, "Unwrap not supported."), + UNIDENTIFIED_JWK_TYPE: new l(29, q.FAIL, "Unidentified JSON web key type."), + UNIDENTIFIED_JWK_USAGE: new l(30, q.FAIL, "Unidentified JSON web key usage."), + UNIDENTIFIED_JWK_ALGORITHM: new l(31, q.FAIL, "Unidentified JSON web key algorithm."), + WRAP_ERROR: new l(32, q.FAIL, "Error wrapping plaintext."), + UNWRAP_ERROR: new l(33, q.FAIL, "Error unwrapping ciphertext."), + INVALID_JWK: new l(34, q.FAIL, "Invalid JSON web key."), + INVALID_JWK_KEYDATA: new l(35, q.FAIL, "Invalid JSON web key keydata."), + UNSUPPORTED_JWK_ALGORITHM: new l(36, q.FAIL, "Unsupported JSON web key algorithm."), + WRAP_KEY_CREATION_FAILURE: new l(37, q.FAIL, "Error when creating wrapping key."), + INVALID_WRAP_CIPHERTEXT: new l(38, q.FAIL, "Invalid wrap ciphertext."), + UNSUPPORTED_JWE_ALGORITHM: new l(39, q.FAIL, "Unsupported JSON web encryption algorithm."), + JWE_ENCODE_ERROR: new l(40, q.FAIL, "Error encoding JSON web encryption header."), + JWE_PARSE_ERROR: new l(41, q.FAIL, "Error parsing JSON web encryption header."), + INVALID_ALGORITHM_PARAMS: new l(42, q.FAIL, "Invalid algorithm parameters."), + JWE_ALGORITHM_MISMATCH: new l(43, q.FAIL, "JSON web encryption header algorithms mismatch."), + KEY_IMPORT_ERROR: new l(44, q.FAIL, "Error importing key."), + KEY_EXPORT_ERROR: new l(45, q.FAIL, "Error exporting key."), + DIGEST_ERROR: new l(46, q.FAIL, "Error in digest."), + UNSUPPORTED_KEY: new l(47, q.FAIL, "Unsupported key type or algorithm."), + UNSUPPORTED_JWE_SERIALIZATION: new l(48, q.FAIL, "Unsupported JSON web encryption serialization."), + XML_PARSE_ERROR: new l(49, q.FAIL, "Error parsing XML."), + XML_ENCODE_ERROR: new l(50, q.FAIL, "Error encoding XML."), + INVALID_WRAPPING_KEY: new l(51, q.FAIL, "Invalid wrapping key."), + UNIDENTIFIED_CIPHERTEXT_ENVELOPE: new l(52, q.FAIL, "Unidentified ciphertext envelope version."), + UNIDENTIFIED_SIGNATURE_ENVELOPE: new l(53, q.FAIL, "Unidentified signature envelope version."), + UNSUPPORTED_CIPHERTEXT_ENVELOPE: new l(54, q.FAIL, "Unsupported ciphertext envelope version."), + UNSUPPORTED_SIGNATURE_ENVELOPE: new l(55, q.FAIL, "Unsupported signature envelope version."), + UNIDENTIFIED_CIPHERSPEC: new l(56, q.FAIL, "Unidentified cipher specification."), + UNIDENTIFIED_ALGORITHM: new l(57, q.FAIL, "Unidentified algorithm."), + SIGNATURE_ENVELOPE_PARSE_ERROR: new l(58, q.FAIL, "Error parsing signature envelope."), + SIGNATURE_ENVELOPE_ENCODE_ERROR: new l(59, q.FAIL, "Error encoding signature envelope."), + INVALID_SIGNATURE: new l(60, q.FAIL, "Invalid signature."), + WRAPKEY_FINGERPRINT_NOTSUPPORTED: new l(61, q.FAIL, "Wrap key fingerprint not supported"), + UNIDENTIFIED_JWK_KEYOP: new l(62, q.FAIL, "Unidentified JSON web key key operation."), + MASTERTOKEN_UNTRUSTED: new l(1E3, q.ENTITY_REAUTH, "Master token is not trusted."), + MASTERTOKEN_KEY_CREATION_ERROR: new l(1001, q.ENTITY_REAUTH, "Unable to construct symmetric keys from master token."), + MASTERTOKEN_EXPIRES_BEFORE_RENEWAL: new l(1002, q.ENTITY_REAUTH, "Master token expiration timestamp is before the renewal window opens."), + MASTERTOKEN_SESSIONDATA_MISSING: new l(1003, q.ENTITY_REAUTH, "No master token session data found."), + MASTERTOKEN_SEQUENCE_NUMBER_OUT_OF_RANGE: new l(1004, q.ENTITY_REAUTH, "Master token sequence number is out of range."), + MASTERTOKEN_SERIAL_NUMBER_OUT_OF_RANGE: new l(1005, q.ENTITY_REAUTH, "Master token serial number is out of range."), + MASTERTOKEN_TOKENDATA_INVALID: new l(1006, q.ENTITY_REAUTH, "Invalid master token data."), + MASTERTOKEN_SIGNATURE_INVALID: new l(1007, q.ENTITY_REAUTH, "Invalid master token signature."), + MASTERTOKEN_SESSIONDATA_INVALID: new l(1008, q.ENTITY_REAUTH, "Invalid master token session data."), + MASTERTOKEN_SEQUENCE_NUMBER_OUT_OF_SYNC: new l(1009, q.ENTITY_REAUTH, "Master token sequence number does not have the expected value."), + MASTERTOKEN_TOKENDATA_MISSING: new l(1010, q.ENTITY_REAUTH, "No master token data found."), + MASTERTOKEN_TOKENDATA_PARSE_ERROR: new l(1011, q.ENTITY_REAUTH, "Error parsing master token data."), + MASTERTOKEN_SESSIONDATA_PARSE_ERROR: new l(1012, q.ENTITY_REAUTH, "Error parsing master token session data."), + MASTERTOKEN_IDENTITY_REVOKED: new l(1013, q.ENTITY_REAUTH, "Master token entity identity is revoked."), + MASTERTOKEN_REJECTED_BY_APP: new l(1014, q.ENTITY_REAUTH, "Master token is rejected by the application."), + USERIDTOKEN_MASTERTOKEN_MISMATCH: new l(2E3, q.USER_REAUTH, "User ID token master token serial number does not match master token serial number."), + USERIDTOKEN_NOT_DECRYPTED: new l(2001, q.USER_REAUTH, "User ID token is not decrypted or verified."), + USERIDTOKEN_MASTERTOKEN_NULL: new l(2002, q.USER_REAUTH, "User ID token requires a master token."), + USERIDTOKEN_EXPIRES_BEFORE_RENEWAL: new l(2003, q.USER_REAUTH, "User ID token expiration timestamp is before the renewal window opens."), + USERIDTOKEN_USERDATA_MISSING: new l(2004, q.USER_REAUTH, "No user ID token user data found."), + USERIDTOKEN_MASTERTOKEN_NOT_FOUND: new l(2005, q.USER_REAUTH, "User ID token is bound to an unknown master token."), + USERIDTOKEN_MASTERTOKEN_SERIAL_NUMBER_OUT_OF_RANGE: new l(2006, q.USER_REAUTH, "User ID token master token serial number is out of range."), + USERIDTOKEN_SERIAL_NUMBER_OUT_OF_RANGE: new l(2007, q.USER_REAUTH, "User ID token serial number is out of range."), + USERIDTOKEN_TOKENDATA_INVALID: new l(2008, q.USER_REAUTH, "Invalid user ID token data."), + USERIDTOKEN_SIGNATURE_INVALID: new l(2009, q.USER_REAUTH, "Invalid user ID token signature."), + USERIDTOKEN_USERDATA_INVALID: new l(2010, q.USER_REAUTH, "Invalid user ID token user data."), + USERIDTOKEN_IDENTITY_INVALID: new l(2011, q.USER_REAUTH, "Invalid user ID token user identity."), + RESERVED_2012: new l(2012, q.USER_REAUTH, "The entity is not associated with the user."), + USERIDTOKEN_IDENTITY_NOT_FOUND: new l(2013, q.USER_REAUTH, "The user identity was not found."), + USERIDTOKEN_PASSWORD_VERSION_CHANGED: new l(2014, q.USER_REAUTH, "The user identity must be reauthenticated because the password version changed."), + USERIDTOKEN_USERAUTH_DATA_MISMATCH: new l(2015, q.USER_REAUTH, "The user ID token and user authentication data user identities do not match."), + USERIDTOKEN_TOKENDATA_MISSING: new l(2016, q.USER_REAUTH, "No user ID token data found."), + USERIDTOKEN_TOKENDATA_PARSE_ERROR: new l(2017, q.USER_REAUTH, "Error parsing user ID token data."), + USERIDTOKEN_USERDATA_PARSE_ERROR: new l(2018, q.USER_REAUTH, "Error parsing user ID token user data."), + USERIDTOKEN_REVOKED: new l(2019, q.USER_REAUTH, "User ID token is revoked."), + USERIDTOKEN_REJECTED_BY_APP: new l(2020, q.USER_REAUTH, "User ID token is rejected by the application."), + SERVICETOKEN_MASTERTOKEN_MISMATCH: new l(3E3, q.FAIL, "Service token master token serial number does not match master token serial number."), + SERVICETOKEN_USERIDTOKEN_MISMATCH: new l(3001, q.FAIL, "Service token user ID token serial number does not match user ID token serial number."), + SERVICETOKEN_SERVICEDATA_INVALID: new l(3002, q.FAIL, "Service token data invalid."), + SERVICETOKEN_MASTERTOKEN_NOT_FOUND: new l(3003, q.FAIL, "Service token is bound to an unknown master token."), + SERVICETOKEN_USERIDTOKEN_NOT_FOUND: new l(3004, q.FAIL, "Service token is bound to an unknown user ID token."), + SERVICETOKEN_MASTERTOKEN_SERIAL_NUMBER_OUT_OF_RANGE: new l(3005, q.FAIL, "Service token master token serial number is out of range."), + SERVICETOKEN_USERIDTOKEN_SERIAL_NUMBER_OUT_OF_RANGE: new l(3006, q.FAIL, "Service token user ID token serial number is out of range."), + SERVICETOKEN_TOKENDATA_INVALID: new l(3007, q.FAIL, "Invalid service token data."), + SERVICETOKEN_SIGNATURE_INVALID: new l(3008, q.FAIL, "Invalid service token signature."), + SERVICETOKEN_TOKENDATA_MISSING: new l(3009, q.FAIL, "No service token data found."), + UNIDENTIFIED_ENTITYAUTH_SCHEME: new l(4E3, q.FAIL, "Unable to identify entity authentication scheme."), + ENTITYAUTH_FACTORY_NOT_FOUND: new l(4001, q.FAIL, "No factory registered for entity authentication scheme."), + X509CERT_PARSE_ERROR: new l(4002, q.ENTITYDATA_REAUTH, "Error parsing X.509 certificate data."), + X509CERT_ENCODE_ERROR: new l(4003, q.ENTITYDATA_REAUTH, "Error encoding X.509 certificate data."), + X509CERT_VERIFICATION_FAILED: new l(4004, q.ENTITYDATA_REAUTH, "X.509 certificate verification failed."), + ENTITY_NOT_FOUND: new l(4005, q.FAIL, "Entity not recognized."), + INCORRECT_ENTITYAUTH_DATA: new l(4006, q.FAIL, "Entity used incorrect entity authentication data type."), + RSA_PUBLICKEY_NOT_FOUND: new l(4007, q.ENTITYDATA_REAUTH, "RSA public key not found."), + NPTICKET_GRACE_PERIOD_EXCEEDED: new l(4008, q.ENTITYDATA_REAUTH, "Fake NP-Tickets cannot be used after the grace period when the Playstation Network is up."), + NPTICKET_SERVICE_ID_MISSING: new l(4009, q.ENTITYDATA_REAUTH, "NP-Ticket service ID is missing."), + NPTICKET_SERVICE_ID_DISALLOWED: new l(4010, q.ENTITYDATA_REAUTH, "NP-Ticket service ID is not allowed."), + NPTICKET_NOT_YET_VALID: new l(4011, q.ENTITYDATA_REAUTH, "NP-Ticket issuance date is in the future."), + NPTICKET_EXPIRED: new l(4012, q.ENTITYDATA_REAUTH, "NP-Ticket has expired."), + NPTICKET_PRIVATE_KEY_NOT_FOUND: new l(4013, q.ENTITYDATA_REAUTH, "No private key found for NP-Ticket GUID."), + NPTICKET_COOKIE_VERIFICATION_FAILED: new l(4014, q.ENTITYDATA_REAUTH, "NP-Ticket cookie signature verification failed."), + NPTICKET_INCORRECT_COOKIE_VERSION: new l(4015, q.ENTITYDATA_REAUTH, "Incorrect NP-Ticket cookie version."), + NPTICKET_BROKEN: new l(4016, q.ENTITYDATA_REAUTH, "NP-Ticket broken."), + NPTICKET_VERIFICATION_FAILED: new l(4017, q.ENTITYDATA_REAUTH, "NP-Ticket signature verification failed."), + NPTICKET_ERROR: new l(4018, q.ENTITYDATA_REAUTH, "Unknown NP-Ticket TCM error."), + NPTICKET_CIPHER_INFO_NOT_FOUND: new l(4019, q.ENTITYDATA_REAUTH, "No cipher information found for NP-Ticket."), + NPTICKET_INVALID_CIPHER_INFO: new l(4020, q.ENTITYDATA_REAUTH, "Cipher information for NP-Ticket is invalid."), + NPTICKET_UNSUPPORTED_VERSION: new l(4021, q.ENTITYDATA_REAUTH, "Unsupported NP-Ticket version."), + NPTICKET_INCORRECT_KEY_LENGTH: new l(4022, q.ENTITYDATA_REAUTH, "Incorrect NP-Ticket public key length."), + UNSUPPORTED_ENTITYAUTH_DATA: new l(4023, q.FAIL, "Unsupported entity authentication data."), + CRYPTEX_RSA_KEY_SET_NOT_FOUND: new l(4024, q.FAIL, "Cryptex RSA key set not found."), + ENTITY_REVOKED: new l(4025, q.FAIL, "Entity is revoked."), + ENTITY_REJECTED_BY_APP: new l(4026, q.ENTITYDATA_REAUTH, "Entity is rejected by the application."), + FORCE_LOGIN: new l(5E3, q.USERDATA_REAUTH, "User must login again."), + NETFLIXID_COOKIES_EXPIRED: new l(5001, q.USERDATA_REAUTH, "Netflix ID cookie identity has expired."), + NETFLIXID_COOKIES_BLANK: new l(5002, q.USERDATA_REAUTH, "Netflix ID or Secure Netflix ID cookie is blank."), + UNIDENTIFIED_USERAUTH_SCHEME: new l(5003, q.FAIL, "Unable to identify user authentication scheme."), + USERAUTH_FACTORY_NOT_FOUND: new l(5004, q.FAIL, "No factory registered for user authentication scheme."), + EMAILPASSWORD_BLANK: new l(5005, q.USERDATA_REAUTH, "Email or password is blank."), + AUTHMGR_COMMS_FAILURE: new l(5006, q.TRANSIENT_FAILURE, "Error communicating with authentication manager."), + EMAILPASSWORD_INCORRECT: new l(5007, q.USERDATA_REAUTH, "Email or password is incorrect."), + UNSUPPORTED_USERAUTH_DATA: new l(5008, q.FAIL, "Unsupported user authentication data."), + SSOTOKEN_BLANK: new l(5009, q.SSOTOKEN_REJECTED, "SSO token is blank."), + SSOTOKEN_NOT_ASSOCIATED: new l(5010, q.USERDATA_REAUTH, "SSO token is not associated with a Netflix user."), + USERAUTH_USERIDTOKEN_INVALID: new l(5011, q.USERDATA_REAUTH, "User authentication data user ID token is invalid."), + PROFILEID_BLANK: new l(5012, q.USERDATA_REAUTH, "Profile ID is blank."), + UNIDENTIFIED_USERAUTH_MECHANISM: new l(5013, q.FAIL, "Unable to identify user authentication mechanism."), + UNSUPPORTED_USERAUTH_MECHANISM: new l(5014, q.FAIL, "Unsupported user authentication mechanism."), + SSOTOKEN_INVALID: new l(5015, q.SSOTOKEN_REJECTED, "SSO token invalid."), + USERAUTH_MASTERTOKEN_MISSING: new l(5016, q.USERDATA_REAUTH, "User authentication required master token is missing."), + ACCTMGR_COMMS_FAILURE: new l(5017, q.TRANSIENT_FAILURE, "Error communicating with the account manager."), + SSO_ASSOCIATION_FAILURE: new l(5018, q.TRANSIENT_FAILURE, "SSO user association failed."), + SSO_DISASSOCIATION_FAILURE: new l(5019, q.TRANSIENT_FAILURE, "SSO user disassociation failed."), + MDX_USERAUTH_VERIFICATION_FAILED: new l(5020, q.USERDATA_REAUTH, "MDX user authentication data verification failed."), + USERAUTH_USERIDTOKEN_NOT_DECRYPTED: new l(5021, q.USERDATA_REAUTH, "User authentication data user ID token is not decrypted or verified."), + MDX_USERAUTH_ACTION_INVALID: new l(5022, q.USERDATA_REAUTH, "MDX user authentication data action is invalid."), + CTICKET_DECRYPT_ERROR: new l(5023, q.USERDATA_REAUTH, "CTicket decryption failed."), + USERAUTH_MASTERTOKEN_INVALID: new l(5024, q.USERDATA_REAUTH, "User authentication data master token is invalid."), + USERAUTH_MASTERTOKEN_NOT_DECRYPTED: new l(5025, q.USERDATA_REAUTH, "User authentication data master token is not decrypted or verified."), + CTICKET_CRYPTOCONTEXT_ERROR: new l(5026, q.USERDATA_REAUTH, "Error creating CTicket crypto context."), + MDX_PIN_BLANK: new l(5027, q.USERDATA_REAUTH, "MDX controller or target PIN is blank."), + MDX_PIN_MISMATCH: new l(5028, q.USERDATA_REAUTH, "MDX controller and target PIN mismatch."), + MDX_USER_UNKNOWN: new l(5029, q.USERDATA_REAUTH, "MDX controller user ID token or CTicket is not decrypted or verified."), + USERAUTH_USERIDTOKEN_MISSING: new l(5030, q.USERDATA_REAUTH, "User authentication required user ID token is missing."), + MDX_CONTROLLERDATA_INVALID: new l(5031, q.USERDATA_REAUTH, "MDX controller authentication data is invalid."), + USERAUTH_ENTITY_MISMATCH: new l(5032, q.USERDATA_REAUTH, "User authentication data does not match entity identity."), + USERAUTH_INCORRECT_DATA: new l(5033, q.FAIL, "Entity used incorrect key request data type"), + SSO_ASSOCIATION_WITH_NONMEMBER: new l(5034, q.USERDATA_REAUTH, "SSO user association failed because the customer is not a member."), + SSO_ASSOCIATION_WITH_FORMERMEMBER: new l(5035, q.USERDATA_REAUTH, "SSO user association failed because the customer is a former member."), + SSO_ASSOCIATION_CONFLICT: new l(5036, q.USERDATA_REAUTH, "SSO user association failed because the token identifies a different member."), + USER_REJECTED_BY_APP: new l(5037, q.USERDATA_REAUTH, "User is rejected by the application."), + PROFILE_SWITCH_DISALLOWED: new l(5038, q.TRANSIENT_FAILURE, "Unable to switch user profile."), + MEMBERSHIPCLIENT_COMMS_FAILURE: new l(5039, q.TRANSIENT_FAILURE, "Error communicating with the membership manager."), + USERIDTOKEN_IDENTITY_NOT_ASSOCIATED_WITH_ENTITY: new l(5040, q.USER_REAUTH, "The entity is not associated with the user."), + UNSUPPORTED_COMPRESSION: new l(6E3, q.FAIL, "Unsupported compression algorithm."), + COMPRESSION_ERROR: new l(6001, q.FAIL, "Error compressing data."), + UNCOMPRESSION_ERROR: new l(6002, q.FAIL, "Error uncompressing data."), + MESSAGE_ENTITY_NOT_FOUND: new l(6003, q.FAIL, "Message header entity authentication data or master token not found."), + PAYLOAD_MESSAGE_ID_MISMATCH: new l(6004, q.FAIL, "Payload chunk message ID does not match header message ID ."), + PAYLOAD_SEQUENCE_NUMBER_MISMATCH: new l(6005, q.FAIL, "Payload chunk sequence number does not match expected sequence number."), + PAYLOAD_VERIFICATION_FAILED: new l(6006, q.FAIL, "Payload chunk payload signature verification failed."), + MESSAGE_DATA_MISSING: new l(6007, q.FAIL, "No message data found."), + MESSAGE_FORMAT_ERROR: new l(6008, q.FAIL, "Malformed message data."), + MESSAGE_VERIFICATION_FAILED: new l(6009, q.FAIL, "Message header/error data signature verification failed."), + HEADER_DATA_MISSING: new l(6010, q.FAIL, "No header data found."), + PAYLOAD_DATA_MISSING: new l(6011, q.FAIL, "No payload data found in non-EOM payload chunk."), + PAYLOAD_DATA_CORRUPT: new l(6012, q.FAIL, "Corrupt payload data found in non-EOM payload chunk."), + UNIDENTIFIED_COMPRESSION: new l(6013, q.FAIL, "Unidentified compression algorithm."), + MESSAGE_EXPIRED: new l(6014, q.EXPIRED, "Message expired and not renewable. Rejected."), + MESSAGE_ID_OUT_OF_RANGE: new l(6015, q.FAIL, "Message ID is out of range."), + INTERNAL_CODE_NEGATIVE: new l(6016, q.FAIL, "Error header internal code is negative."), + UNEXPECTED_RESPONSE_MESSAGE_ID: new l(6017, q.FAIL, "Unexpected response message ID. Possible replay."), + RESPONSE_REQUIRES_ENCRYPTION: new l(6018, q.KEYX_REQUIRED, "Message response requires encryption."), + PAYLOAD_SEQUENCE_NUMBER_OUT_OF_RANGE: new l(6019, q.FAIL, "Payload chunk sequence number is out of range."), + PAYLOAD_MESSAGE_ID_OUT_OF_RANGE: new l(6020, q.FAIL, "Payload chunk message ID is out of range."), + MESSAGE_REPLAYED: new l(6021, q.REPLAYED, "Non-replayable message replayed."), + INCOMPLETE_NONREPLAYABLE_MESSAGE: new l(6022, q.FAIL, "Non-replayable message sent non-renewable or without key request data or without a master token."), + HEADER_SIGNATURE_INVALID: new l(6023, q.FAIL, "Invalid Header signature."), + HEADER_DATA_INVALID: new l(6024, q.FAIL, "Invalid header data."), + PAYLOAD_INVALID: new l(6025, q.FAIL, "Invalid payload."), + PAYLOAD_SIGNATURE_INVALID: new l(6026, q.FAIL, "Invalid payload signature."), + RESPONSE_REQUIRES_MASTERTOKEN: new l(6027, q.KEYX_REQUIRED, "Message response requires a master token."), + RESPONSE_REQUIRES_USERIDTOKEN: new l(6028, q.USER_REAUTH, "Message response requires a user ID token."), + REQUEST_REQUIRES_USERAUTHDATA: new l(6029, q.FAIL, "User-associated message requires user authentication data."), + UNEXPECTED_MESSAGE_SENDER: new l(6030, q.FAIL, "Message sender is equal to the local entity or not the master token entity."), + NONREPLAYABLE_MESSAGE_REQUIRES_MASTERTOKEN: new l(6031, q.FAIL, "Non-replayable message requires a master token."), + NONREPLAYABLE_ID_OUT_OF_RANGE: new l(6032, q.FAIL, "Non-replayable message non-replayable ID is out of range."), + MESSAGE_SERVICETOKEN_MISMATCH: new l(6033, q.FAIL, "Service token master token or user ID token serial number does not match the message token serial numbers."), + MESSAGE_PEER_SERVICETOKEN_MISMATCH: new l(6034, q.FAIL, "Peer service token master token or user ID token serial number does not match the message peer token serial numbers."), + RESPONSE_REQUIRES_INTEGRITY_PROTECTION: new l(6035, q.KEYX_REQUIRED, "Message response requires integrity protection."), + HANDSHAKE_DATA_MISSING: new l(6036, q.FAIL, "Handshake message is not renewable or does not contain key request data."), + MESSAGE_RECIPIENT_MISMATCH: new l(6037, q.FAIL, "Message recipient does not match local identity."), + UNIDENTIFIED_KEYX_SCHEME: new l(7E3, q.FAIL, "Unable to identify key exchange scheme."), + KEYX_FACTORY_NOT_FOUND: new l(7001, q.FAIL, "No factory registered for key exchange scheme."), + KEYX_REQUEST_NOT_FOUND: new l(7002, q.FAIL, "No key request found matching header key response data."), + UNIDENTIFIED_KEYX_KEY_ID: new l(7003, q.FAIL, "Unable to identify key exchange key ID."), + UNSUPPORTED_KEYX_KEY_ID: new l(7004, q.FAIL, "Unsupported key exchange key ID."), + UNIDENTIFIED_KEYX_MECHANISM: new l(7005, q.FAIL, "Unable to identify key exchange mechanism."), + UNSUPPORTED_KEYX_MECHANISM: new l(7006, q.FAIL, "Unsupported key exchange mechanism."), + KEYX_RESPONSE_REQUEST_MISMATCH: new l(7007, q.FAIL, "Key exchange response does not match request."), + KEYX_PRIVATE_KEY_MISSING: new l(7008, q.FAIL, "Key exchange private key missing."), + UNKNOWN_KEYX_PARAMETERS_ID: new l(7009, q.FAIL, "Key exchange parameters ID unknown or invalid."), + KEYX_MASTER_TOKEN_MISSING: new l(7010, q.FAIL, "Master token required for key exchange is missing."), + KEYX_INVALID_PUBLIC_KEY: new l(7011, q.FAIL, "Key exchange public key is invalid."), + KEYX_PUBLIC_KEY_MISSING: new l(7012, q.FAIL, "Key exchange public key missing."), + KEYX_WRAPPING_KEY_MISSING: new l(7013, q.FAIL, "Key exchange wrapping key missing."), + KEYX_WRAPPING_KEY_ID_MISSING: new l(7014, q.FAIL, "Key exchange wrapping key ID missing."), + KEYX_INVALID_WRAPPING_KEY: new l(7015, q.FAIL, "Key exchange wrapping key is invalid."), + KEYX_INCORRECT_DATA: new l(7016, q.FAIL, "Entity used incorrect wrapping key data type"), + CRYPTEX_ENCRYPTION_ERROR: new l(8E3, q.FAIL, "Error encrypting data with cryptex."), + CRYPTEX_DECRYPTION_ERROR: new l(8001, q.FAIL, "Error decrypting data with cryptex."), + CRYPTEX_MAC_ERROR: new l(8002, q.FAIL, "Error computing MAC with cryptex."), + CRYPTEX_VERIFY_ERROR: new l(8003, q.FAIL, "Error verifying MAC with cryptex."), + CRYPTEX_CONTEXT_CREATION_FAILURE: new l(8004, q.FAIL, "Error creating cryptex cipher or MAC context."), + DATAMODEL_DEVICE_ACCESS_ERROR: new l(8005, q.TRANSIENT_FAILURE, "Error accessing data model device."), + DATAMODEL_DEVICETYPE_NOT_FOUND: new l(8006, q.FAIL, "Data model device type not found."), + CRYPTEX_KEYSET_UNSUPPORTED: new l(8007, q.FAIL, "Cryptex key set not supported."), + CRYPTEX_PRIVILEGE_EXCEPTION: new l(8008, q.FAIL, "Insufficient privileges for cryptex operation."), + CRYPTEX_WRAP_ERROR: new l(8009, q.FAIL, "Error wrapping data with cryptex."), + CRYPTEX_UNWRAP_ERROR: new l(8010, q.FAIL, "Error unwrapping data with cryptex."), + CRYPTEX_COMMS_FAILURE: new l(8011, q.TRANSIENT_FAILURE, "Error comunicating with cryptex."), + CRYPTEX_SIGN_ERROR: new l(8012, q.FAIL, "Error computing signature with cryptex."), + INTERNAL_EXCEPTION: new l(9E3, q.TRANSIENT_FAILURE, "Internal exception."), + MSL_COMMS_FAILURE: new l(9001, q.FAIL, "Error communicating with MSL entity."), + NONE: new l(9999, q.FAIL, "Special unit test error.") }); - Object.freeze(k); + Object.freeze(l); (function() { - A = fa.Class.create(Error()); - A.mixin({ - init: function(k, n, q) { - var H, P, Y; + G = ha.Class.create(Error()); + G.mixin({ + init: function(l, n, q) { + var A, R, ca; function t() { - return P ? P : this.cause && this.cause instanceof A ? this.cause.messageId : ga; + return R ? R : this.cause && this.cause instanceof G ? this.cause.messageId : da; } Error.captureStackTrace && Error.captureStackTrace(this, this.constructor); - H = k.message; - n && (H += " [" + n + "]"); - Y = this.stack; + A = l.message; + n && (A += " [" + n + "]"); + ca = this.stack; Object.defineProperties(this, { message: { - value: H, + value: A, writable: !1, configurable: !0 }, error: { - value: k, + value: l, writable: !1, configurable: !0 }, @@ -2781,34 +2776,34 @@ v7AA.H22 = function() { }, messageId: { get: t, - set: function(k) { - if (0 > k || k > Aa) throw new RangeError("Message ID " + k + " is outside the valid range."); - t() || (P = k); + set: function(l) { + if (0 > l || l > Ca) throw new RangeError("Message ID " + l + " is outside the valid range."); + t() || (R = l); }, configurable: !0 }, stack: { get: function() { - var k; - k = this.toString(); - Y && (k += "\n" + Y); - q && q.stack && (k += "\nCaused by " + q.stack); - return k; + var l; + l = this.toString(); + ca && (l += "\n" + ca); + q && q.stack && (l += "\nCaused by " + q.stack); + return l; }, configurable: !0 } }); }, - setEntity: function(k) { - !k || this.masterToken || this.entityAuthenticationData || (k instanceof eb ? this.masterToken = k : k instanceof Ob && (this.entityAuthenticationData = k)); + setEntity: function(l) { + !l || this.masterToken || this.entityAuthenticationData || (l instanceof fb ? this.masterToken = l : l instanceof Ob && (this.entityAuthenticationData = l)); return this; }, - setUser: function(k) { - !k || this.userIdToken || this.userAuthenticationData || (k instanceof ac ? this.userIdToken = k : k instanceof Gb && (this.userAuthenticationData = k)); + setUser: function(l) { + !l || this.userIdToken || this.userAuthenticationData || (l instanceof ac ? this.userIdToken = l : l instanceof Gb && (this.userAuthenticationData = l)); return this; }, - setMessageId: function(k) { - this.messageId = k; + setMessageId: function(l) { + this.messageId = l; return this; }, toString: function() { @@ -2816,9 +2811,9 @@ v7AA.H22 = function() { } }); }()); - P = A.extend({ - init: function hc(k, n, q) { - hc.base.call(this, k, n, q); + R = G.extend({ + init: function gc(l, n, q) { + gc.base.call(this, l, n, q); Object.defineProperties(this, { name: { value: "MslCryptoException", @@ -2828,9 +2823,9 @@ v7AA.H22 = function() { }); } }); - aa = A.extend({ - init: function Xb(k, n, q) { - Xb.base.call(this, k, n, q); + ba = G.extend({ + init: function Xb(l, n, q) { + Xb.base.call(this, l, n, q); Object.defineProperties(this, { name: { value: "MslEncodingException", @@ -2840,9 +2835,9 @@ v7AA.H22 = function() { }); } }); - bb = A.extend({ - init: function nb(k, n, q) { - nb.base.call(this, k, n, q); + yb = G.extend({ + init: function Sa(l, n, q) { + Sa.base.call(this, l, n, q); Object.defineProperties(this, { name: { value: "MslEntityAuthException", @@ -2853,15 +2848,15 @@ v7AA.H22 = function() { } }); (function() { - fb = fa.Class.create(Error()); - fb.mixin({ - init: function(k, n, q) { + lb = ha.Class.create(Error()); + lb.mixin({ + init: function(l, n, q) { var t; Error.captureStackTrace && Error.captureStackTrace(this, this.constructor); t = this.stack; Object.defineProperties(this, { message: { - value: k, + value: l, writable: !1, configurable: !1 }, @@ -2882,11 +2877,11 @@ v7AA.H22 = function() { }, stack: { get: function() { - var k; - k = this.toString(); - t && (k += "\n" + t); - n && n.stack && (k += "\nCaused by " + n.stack); - return k; + var l; + l = this.toString(); + t && (l += "\n" + t); + n && n.stack && (l += "\nCaused by " + n.stack); + return l; }, configurable: !0 } @@ -2898,15 +2893,15 @@ v7AA.H22 = function() { }); }()); (function() { - Oa = fa.Class.create(Error()); - Oa.mixin({ - init: function(k, n) { + Wa = ha.Class.create(Error()); + Wa.mixin({ + init: function(l, n) { var q; Error.captureStackTrace && Error.captureStackTrace(this, this.constructor); q = this.stack; Object.defineProperties(this, { message: { - value: k, + value: l, writable: !1, configurable: !1 }, @@ -2922,11 +2917,11 @@ v7AA.H22 = function() { }, stack: { get: function() { - var k; - k = this.toString(); - q && (k += "\n" + q); - n && n.stack && (k += "\nCaused by " + n.stack); - return k; + var l; + l = this.toString(); + q && (l += "\n" + q); + n && n.stack && (l += "\nCaused by " + n.stack); + return l; }, configurable: !0 } @@ -2938,15 +2933,15 @@ v7AA.H22 = function() { }); }()); (function() { - Y = fa.Class.create(Error()); - Y.mixin({ - init: function(k, n) { + ca = ha.Class.create(Error()); + ca.mixin({ + init: function(l, n) { var q; Error.captureStackTrace && Error.captureStackTrace(this, this.constructor); q = this.stack; Object.defineProperties(this, { message: { - value: k, + value: l, writable: !1, configurable: !1 }, @@ -2962,11 +2957,11 @@ v7AA.H22 = function() { }, stack: { get: function() { - var k; - k = this.toString(); - q && (k += "\n" + q); - n && n.stack && (k += "\nCaused by " + n.stack); - return k; + var l; + l = this.toString(); + q && (l += "\n" + q); + n && n.stack && (l += "\nCaused by " + n.stack); + return l; }, configurable: !0 } @@ -2978,15 +2973,15 @@ v7AA.H22 = function() { }); }()); (function() { - Xa = fa.Class.create(Error()); - Xa.mixin({ - init: function(k, n) { + ab = ha.Class.create(Error()); + ab.mixin({ + init: function(l, n) { var q; Error.captureStackTrace && Error.captureStackTrace(this, this.constructor); q = this.stack; Object.defineProperties(this, { message: { - value: k, + value: l, writable: !1, configurable: !1 }, @@ -3002,11 +2997,11 @@ v7AA.H22 = function() { }, stack: { get: function() { - var k; - k = this.toString(); - q && (k += "\n" + q); - n && n.stack && (k += "\nCaused by " + n.stack); - return k; + var l; + l = this.toString(); + q && (l += "\n" + q); + n && n.stack && (l += "\nCaused by " + n.stack); + return l; }, configurable: !0 } @@ -3017,9 +3012,9 @@ v7AA.H22 = function() { } }); }()); - Ga = A.extend({ - init: function Yb(k, n, q) { - Yb.base.call(this, k, n, q); + Ha = G.extend({ + init: function Yb(l, n, q) { + Yb.base.call(this, l, n, q); Object.defineProperties(this, { name: { value: "MslKeyExchangeException", @@ -3029,9 +3024,9 @@ v7AA.H22 = function() { }); } }); - Pb = A.extend({ - init: function Rc(k, n) { - Rc.base.call(this, k); + Pb = G.extend({ + init: function Rc(l, n) { + Rc.base.call(this, l); Object.defineProperties(this, { masterToken: { value: n, @@ -3046,9 +3041,9 @@ v7AA.H22 = function() { }); } }); - xa = A.extend({ - init: function Ea(k, n, q) { - Ea.base.call(this, k, n, q); + ta = G.extend({ + init: function Ea(l, n, q) { + Ea.base.call(this, l, n, q); Object.defineProperties(this, { name: { value: "MslMessageException", @@ -3058,9 +3053,9 @@ v7AA.H22 = function() { }); } }); - sa = A.extend({ - init: function W(k, n, q) { - W.base.call(this, k, n, q); + qa = G.extend({ + init: function W(l, n, q) { + W.base.call(this, l, n, q); Object.defineProperties(this, { name: { value: "MslUserAuthException", @@ -3071,342 +3066,342 @@ v7AA.H22 = function() { } }); (function() { - var M; + var I; - function k(k) { - return "undefined" === typeof k ? !1 : k; + function l(l) { + return "undefined" === typeof l ? !1 : l; } - function n(k) { - return k && k.length ? (cb === M.V2014_02 && (k = k.map(function(k) { - return "wrap" == k ? "wrapKey" : "unwrap" == k ? "unwrapKey" : k; - })), k) : cb === M.V2014_02 ? "encrypt decrypt sign verify deriveKey wrapKey unwrapKey".split(" ") : "encrypt decrypt sign verify deriveKey wrap unwrap".split(" "); + function n(l) { + return l && l.length ? (db === I.V2014_02 && (l = l.map(function(l) { + return "wrap" == l ? "wrapKey" : "unwrap" == l ? "unwrapKey" : l; + })), l) : db === I.V2014_02 ? "encrypt decrypt sign verify deriveKey wrapKey unwrapKey".split(" ") : "encrypt decrypt sign verify deriveKey wrap unwrap".split(" "); } - function q(k, n, q, Q, L) { + function q(l, n, L, q, J) { return Promise.resolve().then(function() { - return Da.importKey(k, n, q, Q, L); - })["catch"](function(E) { - var I; - if ("spki" !== k && "pkcs8" !== k) throw E; - E = ASN1.webCryptoAlgorithmToJwkAlg(q); - I = ASN1.webCryptoUsageToJwkKeyOps(L); - E = ASN1.rsaDerToJwk(n, E, I, Q); - if (!E) throw Error("Could not make valid JWK from DER input"); - E = JSON.stringify(E); - return Da.importKey("jwk", Qc(E), q, Q, L); + return Ia.importKey(l, n, L, q, J); + })["catch"](function(C) { + var B; + if ("spki" !== l && "pkcs8" !== l) throw C; + C = ASN1.webCryptoAlgorithmToJwkAlg(L); + B = ASN1.webCryptoUsageToJwkKeyOps(J); + C = ASN1.rsaDerToJwk(n, C, B, q); + if (!C) throw Error("Could not make valid JWK from DER input"); + C = JSON.stringify(C); + return Ia.importKey("jwk", Qc(C), L, q, J); }); } - function A(k, n) { + function t(l, n) { return Promise.resolve().then(function() { - return Da.exportKey(k, n); - })["catch"](function(I) { - if ("spki" !== k && "pkcs8" !== k) throw I; - return Da.exportKey("jwk", n).then(function(k) { - k = JSON.parse(Pc(new Uint8Array(k))); - k = ASN1.jwkToRsaDer(k); - if (!k) throw Error("Could not make valid DER from JWK input"); - return k.getDer().buffer; + return Ia.exportKey(l, n); + })["catch"](function(B) { + if ("spki" !== l && "pkcs8" !== l) throw B; + return Ia.exportKey("jwk", n).then(function(l) { + l = JSON.parse(Pc(new Uint8Array(l))); + l = ASN1.jwkToRsaDer(l); + if (!l) throw Error("Could not make valid DER from JWK input"); + return l.getDer().buffer; }); }); } - M = xc = { + I = yc = { LEGACY: 1, V2014_01: 2, V2014_02: 3, LATEST: 3 }; - Object.freeze(xc); - cb = M.LATEST; - ya = { - encrypt: function(k, n, q) { - switch (cb) { - case M.LEGACY: - return new Promise(function(I, J) { - var E; - E = Da.encrypt(k, n, q); - E.oncomplete = function(k) { - I(k.target.result); + Object.freeze(yc); + db = I.LATEST; + xa = { + encrypt: function(l, n, q) { + switch (db) { + case I.LEGACY: + return new Promise(function(B, L) { + var C; + C = Ia.encrypt(l, n, q); + C.oncomplete = function(l) { + B(l.target.result); }; - E.onerror = function(k) { - J(k); + C.onerror = function(l) { + L(l); }; }); - case M.V2014_01: - case M.V2014_02: - return Da.encrypt(k, n, q).then(function(k) { - return new Uint8Array(k); + case I.V2014_01: + case I.V2014_02: + return Ia.encrypt(l, n, q).then(function(l) { + return new Uint8Array(l); }); default: throw Error("Unsupported Web Crypto version " + WEB_CRYPTO_VERSION + "."); } }, - decrypt: function(k, n, q) { - switch (cb) { - case M.LEGACY: - return new Promise(function(I, J) { - var E; - E = Da.decrypt(k, n, q); - E.oncomplete = function(k) { - I(k.target.result); + decrypt: function(l, n, q) { + switch (db) { + case I.LEGACY: + return new Promise(function(B, L) { + var C; + C = Ia.decrypt(l, n, q); + C.oncomplete = function(l) { + B(l.target.result); }; - E.onerror = function(k) { - J(k); + C.onerror = function(l) { + L(l); }; }); - case M.V2014_01: - case M.V2014_02: - return Da.decrypt(k, n, q).then(function(k) { - return new Uint8Array(k); + case I.V2014_01: + case I.V2014_02: + return Ia.decrypt(l, n, q).then(function(l) { + return new Uint8Array(l); }); default: throw Error("Unsupported Web Crypto version " + WEB_CRYPTO_VERSION + "."); } }, - sign: function(k, n, q) { - switch (cb) { - case M.LEGACY: - return new Promise(function(I, J) { - var E; - E = Da.sign(k, n, q); - E.oncomplete = function(k) { - I(k.target.result); + sign: function(l, n, q) { + switch (db) { + case I.LEGACY: + return new Promise(function(B, L) { + var C; + C = Ia.sign(l, n, q); + C.oncomplete = function(l) { + B(l.target.result); }; - E.onerror = function(k) { - J(k); + C.onerror = function(l) { + L(l); }; }); - case M.V2014_01: - case M.V2014_02: - return Da.sign(k, n, q).then(function(k) { - return new Uint8Array(k); + case I.V2014_01: + case I.V2014_02: + return Ia.sign(l, n, q).then(function(l) { + return new Uint8Array(l); }); default: throw Error("Unsupported Web Crypto version " + WEB_CRYPTO_VERSION + "."); } }, - verify: function(k, n, q, Q) { - switch (cb) { - case M.LEGACY: - return new Promise(function(I, E) { - var K; - K = Da.verify(k, n, q, Q); - K.oncomplete = function(k) { - I(k.target.result); + verify: function(l, n, q, V) { + switch (db) { + case I.LEGACY: + return new Promise(function(B, C) { + var M; + M = Ia.verify(l, n, q, V); + M.oncomplete = function(l) { + B(l.target.result); }; - K.onerror = function(k) { - E(k); + M.onerror = function(l) { + C(l); }; }); - case M.V2014_01: - case M.V2014_02: - return Da.verify(k, n, q, Q); + case I.V2014_01: + case I.V2014_02: + return Ia.verify(l, n, q, V); default: throw Error("Unsupported Web Crypto version " + WEB_CRYPTO_VERSION + "."); } }, - digest: function(k, n) { - switch (cb) { - case M.LEGACY: - return new Promise(function(q, I) { - var J; - J = Da.digest(k, n); - J.oncomplete = function(k) { - q(k.target.result); + digest: function(l, n) { + switch (db) { + case I.LEGACY: + return new Promise(function(B, q) { + var L; + L = Ia.digest(l, n); + L.oncomplete = function(l) { + B(l.target.result); }; - J.onerror = function(k) { - I(k); + L.onerror = function(l) { + q(l); }; }); - case M.V2014_01: - case M.V2014_02: - return Da.digest(k, n).then(function(k) { - return new Uint8Array(k); + case I.V2014_01: + case I.V2014_02: + return Ia.digest(l, n).then(function(l) { + return new Uint8Array(l); }); default: throw Error("Unsupported Web Crypto version " + WEB_CRYPTO_VERSION + "."); } }, - generateKey: function(q, I, J) { - var R, L; - R = k(I); - L = n(J); - switch (cb) { - case M.LEGACY: - return new Promise(function(k, n) { - var E; - E = Da.generateKey(q, R, L); - E.oncomplete = function(n) { - k(n.target.result); + generateKey: function(q, B, L) { + var K, J; + K = l(B); + J = n(L); + switch (db) { + case I.LEGACY: + return new Promise(function(l, n) { + var C; + C = Ia.generateKey(q, K, J); + C.oncomplete = function(n) { + l(n.target.result); }; - E.onerror = function(k) { - n(k); + C.onerror = function(l) { + n(l); }; }); - case M.V2014_01: - case M.V2014_02: - return Da.generateKey(q, R, L); + case I.V2014_01: + case I.V2014_02: + return Ia.generateKey(q, K, J); default: throw Error("Unsupported Web Crypto version " + WEB_CRYPTO_VERSION + "."); } }, - deriveKey: function(q, I, J, Q, L) { - var E, K; - E = k(Q); - K = n(L); - switch (cb) { - case M.LEGACY: - return new Promise(function(k, n) { - var L; - L = Da.deriveKey(q, I, J, E, K); - L.oncomplete = function(n) { - k(n.target.result); + deriveKey: function(q, B, L, V, J) { + var C, M; + C = l(V); + M = n(J); + switch (db) { + case I.LEGACY: + return new Promise(function(l, n) { + var J; + J = Ia.deriveKey(q, B, L, C, M); + J.oncomplete = function(n) { + l(n.target.result); }; - L.onerror = function(k) { - n(k); + J.onerror = function(l) { + n(l); }; }); - case M.V2014_01: - case M.V2014_02: - return Da.deriveKey(q, I, J, E, K); + case I.V2014_01: + case I.V2014_02: + return Ia.deriveKey(q, B, L, C, M); default: throw Error("Unsupported Web Crypto version " + WEB_CRYPTO_VERSION + "."); } }, - importKey: function(R, I, J, Q, L) { - var E, K; - E = k(Q); - K = n(L); - switch (cb) { - case M.LEGACY: - return new Promise(function(k, n) { + importKey: function(K, B, L, V, J) { + var C, M; + C = l(V); + M = n(J); + switch (db) { + case I.LEGACY: + return new Promise(function(l, n) { var q; - q = Da.importKey(R, I, J, E, K); + q = Ia.importKey(K, B, L, C, M); q.oncomplete = function(n) { - k(n.target.result); + l(n.target.result); }; - q.onerror = function(k) { - n(k); + q.onerror = function(l) { + n(l); }; }); - case M.V2014_01: - case M.V2014_02: - return q(R, I, J, E, K); + case I.V2014_01: + case I.V2014_02: + return q(K, B, L, C, M); default: throw Error("Unsupported Web Crypto version " + WEB_CRYPTO_VERSION + "."); } }, - exportKey: function(k, n) { - switch (cb) { - case M.LEGACY: - return new Promise(function(q, I) { - var J; - J = Da.exportKey(k, n); - J.oncomplete = function(k) { - q(k.target.result); + exportKey: function(l, n) { + switch (db) { + case I.LEGACY: + return new Promise(function(q, B) { + var L; + L = Ia.exportKey(l, n); + L.oncomplete = function(l) { + q(l.target.result); }; - J.onerror = function(k) { - I(k); + L.onerror = function(l) { + B(l); }; }); - case M.V2014_01: - case M.V2014_02: - return A(k, n).then(function(k) { - return new Uint8Array(k); + case I.V2014_01: + case I.V2014_02: + return t(l, n).then(function(l) { + return new Uint8Array(l); }); default: throw Error("Unsupported Web Crypto version " + WEB_CRYPTO_VERSION + "."); } }, - wrapKey: function(k, n, q, Q) { - switch (cb) { - case M.LEGACY: - return new Promise(function(k, E) { - var I; - I = Da.wrapKey(n, q, Q); - I.oncomplete = function(n) { - k(n.target.result); + wrapKey: function(l, n, q, V) { + switch (db) { + case I.LEGACY: + return new Promise(function(l, C) { + var B; + B = Ia.wrapKey(n, q, V); + B.oncomplete = function(n) { + l(n.target.result); }; - I.onerror = function(k) { - E(k); + B.onerror = function(l) { + C(l); }; }); - case M.V2014_01: - case M.V2014_02: - return Da.wrapKey(k, n, q, Q).then(function(k) { - return new Uint8Array(k); + case I.V2014_01: + case I.V2014_02: + return Ia.wrapKey(l, n, q, V).then(function(l) { + return new Uint8Array(l); }); default: throw Error("Unsupported Web Crypto version " + WEB_CRYPTO_VERSION + "."); } }, - unwrapKey: function(q, I, J, Q, L, E, K) { - switch (cb) { - case M.LEGACY: - return new Promise(function(k, n) { - var E; - E = Da.unwrapKey(I, L, J); - E.oncomplete = function(n) { - k(n.target.result); + unwrapKey: function(q, B, L, V, J, C, M) { + switch (db) { + case I.LEGACY: + return new Promise(function(l, n) { + var C; + C = Ia.unwrapKey(B, J, L); + C.oncomplete = function(n) { + l(n.target.result); }; - E.onerror = function(k) { - n(k); + C.onerror = function(l) { + n(l); }; }); - case M.V2014_01: - case M.V2014_02: - return Da.unwrapKey(q, I, J, Q, L, k(E), n(K)); + case I.V2014_01: + case I.V2014_02: + return Ia.unwrapKey(q, B, L, V, J, l(C), n(M)); default: throw Error("Unsupported Web Crypto version " + WEB_CRYPTO_VERSION + "."); } } }; - vc && vc.getKeyByName && (ya.getKeyByName = function(k) { - switch (cb) { - case M.LEGACY: + wc && wc.getKeyByName && (xa.getKeyByName = function(l) { + switch (db) { + case I.LEGACY: return new Promise(function(n, q) { - var I; - I = vc.getKeyByName(k); - I.oncomplete = function(k) { - n(k.target.result); + var B; + B = wc.getKeyByName(l); + B.oncomplete = function(l) { + n(l.target.result); }; - I.onerror = function(k) { - q(k); + B.onerror = function(l) { + q(l); }; }); - case M.V2014_01: - case M.V2014_02: - return vc.getKeyByName(k); + case I.V2014_01: + case I.V2014_02: + return wc.getKeyByName(l); default: throw Error("Unsupported Web Crypto version " + WEB_CRYPTO_VERSION + "."); } }); - t.netflix = t.netflix || {}; - t.netflix.crypto = ya; + A.netflix = A.netflix || {}; + A.netflix.crypto = xa; }()); - yb = { + zb = { name: "AES-KW" }; - jb = { + qb = { name: "AES-CBC" }; - sb = { + rb = { name: "HMAC", hash: { name: "SHA-256" } }; - yc = { + zc = { name: "RSA-OAEP", hash: { name: "SHA-1" } }; - ad = { + $c = { name: "RSAES-PKCS1-v1_5" }; - Td = { + Pd = { name: "RSASSA-PKCS1-v1_5", hash: { name: "SHA-256" @@ -3416,22 +3411,22 @@ v7AA.H22 = function() { Ib = ["wrap", "unwrap"]; Qb = ["sign", "verify"]; (function() { - bd = fa.Class.create({ - init: function(q, t, A) { - var M; + ad = ha.Class.create({ + init: function(q, t, G) { + var I; - function W(k) { + function W(l) { n(t, function() { var n; - n = k ? ma(k) : ga; - Object.defineProperties(M, { + n = l ? ka(l) : da; + Object.defineProperties(I, { rawKey: { value: q, writable: !1, configurable: !1 }, keyData: { - value: k, + value: l, writable: !1, configurable: !1 }, @@ -3442,17 +3437,17 @@ v7AA.H22 = function() { } }); return this; - }, M); + }, I); } - M = this; + I = this; n(t, function() { - if (!q || "object" != typeof q) throw new P(k.INVALID_SYMMETRIC_KEY); - !A && q.extractable ? ya.exportKey("raw", q).then(function(k) { - W(new Uint8Array(k)); + if (!q || "object" != typeof q) throw new R(l.INVALID_SYMMETRIC_KEY); + !G && q.extractable ? xa.exportKey("raw", q).then(function(l) { + W(new Uint8Array(l)); }, function(n) { - t.error(new P(k.KEY_EXPORT_ERROR, "raw")); - }) : W(A); - }, M); + t.error(new R(l.KEY_EXPORT_ERROR, "raw")); + }) : W(G); + }, I); }, size: function() { return this.keyData.length; @@ -3464,136 +3459,136 @@ v7AA.H22 = function() { return this.keyDataB64; } }); - Zb = function(k, n) { - new bd(k, n); + Zb = function(l, n) { + new ad(l, n); }; - ob = function(q, t, A, H) { - n(H, function() { + Ab = function(q, t, G, A) { + n(A, function() { try { - q = "string" == typeof q ? ra(q) : q; - } catch (M) { - throw new P(k.INVALID_SYMMETRIC_KEY, "keydata " + q, M); + q = "string" == typeof q ? oa(q) : q; + } catch (I) { + throw new R(l.INVALID_SYMMETRIC_KEY, "keydata " + q, I); } - ya.importKey("raw", q, t, !0, A).then(function(k) { - new bd(k, H, q); + xa.importKey("raw", q, t, !0, G).then(function(l) { + new ad(l, A, q); }, function(n) { - H.error(new P(k.INVALID_SYMMETRIC_KEY)); + A.error(new R(l.INVALID_SYMMETRIC_KEY)); }); }); }; }()); (function() { - zc = fa.Class.create({ - init: function(q, t, A) { - var M; + Ac = ha.Class.create({ + init: function(q, t, G) { + var I; - function W(k) { + function W(l) { n(t, function() { - Object.defineProperties(M, { + Object.defineProperties(I, { rawKey: { value: q, writable: !1, configurable: !1 }, encoded: { - value: k, + value: l, writable: !1, configurable: !1 } }); return this; - }, M); + }, I); } - M = this; + I = this; n(t, function() { if (!q || "object" != typeof q || "public" != q.type) throw new TypeError("Only original public crypto keys are supported."); - !A && q.extractable ? ya.exportKey("spki", q).then(function(k) { - W(new Uint8Array(k)); + !G && q.extractable ? xa.exportKey("spki", q).then(function(l) { + W(new Uint8Array(l)); }, function(n) { - t.error(new P(k.KEY_EXPORT_ERROR, "spki")); - }) : W(A); + t.error(new R(l.KEY_EXPORT_ERROR, "spki")); + }) : W(G); }); }, getEncoded: function() { return this.encoded; } }); - Mb = function(k, n) { - new zc(k, n); + Mb = function(l, n) { + new Ac(l, n); }; - cd = function(q, t, A, H) { - n(H, function() { + bd = function(q, t, G, A) { + n(A, function() { try { - q = "string" == typeof q ? ra(q) : q; - } catch (M) { - throw new P(k.INVALID_PUBLIC_KEY, "spki " + q, M); + q = "string" == typeof q ? oa(q) : q; + } catch (I) { + throw new R(l.INVALID_PUBLIC_KEY, "spki " + q, I); } - ya.importKey("spki", q, t, !0, A).then(function(k) { - new zc(k, H, q); + xa.importKey("spki", q, t, !0, G).then(function(l) { + new Ac(l, A, q); }, function(n) { - H.error(new P(k.INVALID_PUBLIC_KEY)); + A.error(new R(l.INVALID_PUBLIC_KEY)); }); }); }; }()); (function() { - Ud = fa.Class.create({ - init: function(q, t, A) { - var M; + Qd = ha.Class.create({ + init: function(q, t, G) { + var I; - function W(k) { + function A(l) { n(t, function() { - Object.defineProperties(M, { + Object.defineProperties(I, { rawKey: { value: q, writable: !1, configurable: !1 }, encoded: { - value: k, + value: l, writable: !1, configurable: !1 } }); return this; - }, M); + }, I); } - M = this; + I = this; n(t, function() { if (!q || "object" != typeof q || "private" != q.type) throw new TypeError("Only original private crypto keys are supported."); - !A && q.extractable ? ya.exportKey("pkcs8", q).then(function(k) { - W(new Uint8Array(k)); + !G && q.extractable ? xa.exportKey("pkcs8", q).then(function(l) { + A(new Uint8Array(l)); }, function(n) { - t.error(new P(k.KEY_EXPORT_ERROR, "pkcs8")); - }) : W(A); + t.error(new R(l.KEY_EXPORT_ERROR, "pkcs8")); + }) : A(G); }); }, getEncoded: function() { return this.encoded; } }); - $b = function(k, n) { - new Ud(k, n); + $b = function(l, n) { + new Qd(l, n); }; }()); (function() { var q; - q = gd = { + q = fd = { V1: 1, V2: 2 }; - dd = fa.Class.create({ - init: function(k, t, A, M) { - n(M, function() { - var n, I, J, Q; + cd = ha.Class.create({ + init: function(l, t, G, I) { + n(I, function() { + var n, B, L, V; n = q.V1; - I = k; - J = null; - for (Q in wc) - if (wc[Q] == k) { + B = l; + L = null; + for (V in xc) + if (xc[V] == l) { n = q.V2; - I = null; - J = k; + B = null; + L = l; break; } Object.defineProperties(this, { version: { @@ -3603,12 +3598,12 @@ v7AA.H22 = function() { configurable: !1 }, keyId: { - value: I, + value: B, writable: !1, configurable: !1 }, cipherSpec: { - value: J, + value: L, writable: !1, configurable: !1 }, @@ -3618,7 +3613,7 @@ v7AA.H22 = function() { configurable: !1 }, ciphertext: { - value: A, + value: G, writable: !1, configurable: !1 } @@ -3627,98 +3622,98 @@ v7AA.H22 = function() { }, this); }, toJSON: function() { - var k; - k = {}; + var l; + l = {}; switch (this.version) { case q.V1: - k.keyid = this.keyId; - this.iv && (k.iv = ma(this.iv)); - k.ciphertext = ma(this.ciphertext); - k.sha256 = "AA=="; + l.keyid = this.keyId; + this.iv && (l.iv = ka(this.iv)); + l.ciphertext = ka(this.ciphertext); + l.sha256 = "AA=="; break; case q.V2: - k.version = this.version; - k.cipherspec = this.cipherSpec; - this.iv && (k.iv = ma(this.iv)); - k.ciphertext = ma(this.ciphertext); + l.version = this.version; + l.cipherspec = this.cipherSpec; + this.iv && (l.iv = ka(this.iv)); + l.ciphertext = ka(this.ciphertext); break; default: - throw new Y("Ciphertext envelope version " + this.version + " encoding unsupported."); + throw new ca("Ciphertext envelope version " + this.version + " encoding unsupported."); } - return k; + return l; } }); - ed = function(k, n, q, M) { - new dd(k, n, q, M); + dd = function(l, n, q, I) { + new cd(l, n, q, I); }; - fd = function(t, A, W) { - n(W, function() { - var n, R, I, J, Q, L, E; + ed = function(t, G, A) { + n(A, function() { + var n, K, B, L, V, J, C; n = t.keyid; - R = t.cipherspec; - I = t.iv; - J = t.ciphertext; - Q = t.sha256; - if (!A) - if ((A = t.version) && "number" === typeof A && A === A) { - L = !1; - for (E in q) - if (q[E] == A) { - L = !0; + K = t.cipherspec; + B = t.iv; + L = t.ciphertext; + V = t.sha256; + if (!G) + if ((G = t.version) && "number" === typeof G && G === G) { + J = !1; + for (C in q) + if (q[C] == G) { + J = !0; break; - } if (!L) throw new P(k.UNIDENTIFIED_CIPHERTEXT_ENVELOPE, "ciphertext envelope " + JSON.stringify(t)); - } else A = q.V1; - switch (A) { + } if (!J) throw new R(l.UNIDENTIFIED_CIPHERTEXT_ENVELOPE, "ciphertext envelope " + JSON.stringify(t)); + } else G = q.V1; + switch (G) { case q.V1: - if ("string" !== typeof n || I && "string" !== typeof I || "string" !== typeof J || "string" !== typeof Q) throw new aa(k.JSON_PARSE_ERROR, "ciphertext envelope " + JSON.stringify(t)); + if ("string" !== typeof n || B && "string" !== typeof B || "string" !== typeof L || "string" !== typeof V) throw new ba(l.JSON_PARSE_ERROR, "ciphertext envelope " + JSON.stringify(t)); break; case q.V2: - E = t.version; - if (E != q.V2) throw new P(k.UNIDENTIFIED_CIPHERTEXT_ENVELOPE, "ciphertext envelope " + JSON.stringify(t)); - if ("string" !== typeof R || I && "string" !== typeof I || "string" !== typeof J) throw new aa(k.JSON_PARSE_ERROR, "ciphertext envelope " + JSON.stringify(t)); - R = Qd(R); - if (!R) throw new P(k.UNIDENTIFIED_CIPHERSPEC, "ciphertext envelope " + JSON.stringify(t)); - n = R; + C = t.version; + if (C != q.V2) throw new R(l.UNIDENTIFIED_CIPHERTEXT_ENVELOPE, "ciphertext envelope " + JSON.stringify(t)); + if ("string" !== typeof K || B && "string" !== typeof B || "string" !== typeof L) throw new ba(l.JSON_PARSE_ERROR, "ciphertext envelope " + JSON.stringify(t)); + K = Md(K); + if (!K) throw new R(l.UNIDENTIFIED_CIPHERSPEC, "ciphertext envelope " + JSON.stringify(t)); + n = K; break; default: - throw new P(k.UNSUPPORTED_CIPHERTEXT_ENVELOPE, "ciphertext envelope " + JSON.stringify(t)); + throw new R(l.UNSUPPORTED_CIPHERTEXT_ENVELOPE, "ciphertext envelope " + JSON.stringify(t)); } try { - I && (I = ra(I)); - J = ra(J); - } catch (K) { - throw new P(k.CIPHERTEXT_ENVELOPE_PARSE_ERROR, "encryption envelope " + JSON.stringify(t), K); + B && (B = oa(B)); + L = oa(L); + } catch (M) { + throw new R(l.CIPHERTEXT_ENVELOPE_PARSE_ERROR, "encryption envelope " + JSON.stringify(t), M); } - new dd(n, I, J, W); + new cd(n, B, L, A); }); }; }()); (function() { var q; - q = jd = { + q = id = { V1: 1, V2: 2 }; - pb = fa.Class.create({ - init: function(k, n, t) { - var M; - switch (k) { + Bb = ha.Class.create({ + init: function(l, n, t) { + var I; + switch (l) { case q.V1: - M = t; + I = t; break; case q.V2: - M = {}; - M.version = k; - M.algorithm = n; - M.signature = ma(t); - M = Ma(JSON.stringify(M), Ca); + I = {}; + I.version = l; + I.algorithm = n; + I.signature = ka(t); + I = Oa(JSON.stringify(I), Ba); break; default: - throw new Y("Signature envelope version " + k + " encoding unsupported."); + throw new ca("Signature envelope version " + l + " encoding unsupported."); } Object.defineProperties(this, { version: { - value: k, + value: l, writable: !1, enumerable: !1, configurable: !1 @@ -3734,108 +3729,108 @@ v7AA.H22 = function() { configurable: !1 }, bytes: { - value: M, + value: I, writable: !1, configurable: !1 } }); } }); - hd = function() { - var k, t, A, M; - 2 == arguments.length ? (k = q.V1, t = arguments[0], A = null, M = arguments[1]) : 3 == arguments.length && (k = q.V2, A = arguments[0], t = arguments[1], M = arguments[2]); - n(M, function() { - return new pb(k, A, t); + gd = function() { + var l, t, G, I; + 2 == arguments.length ? (l = q.V1, t = arguments[0], G = null, I = arguments[1]) : 3 == arguments.length && (l = q.V2, G = arguments[0], t = arguments[1], I = arguments[2]); + n(I, function() { + return new Bb(l, G, t); }); }; - id = function(t, A, H) { - n(H, function() { - var n, R, I, J, Q, L, E; - if (A) switch (A) { + hd = function(t, G, A) { + n(A, function() { + var n, K, B, L, V, J, C; + if (G) switch (G) { case q.V1: - return new pb(q.V1, null, t); + return new Bb(q.V1, null, t); case q.V2: try { - n = Ia(t, Ca); - R = JSON.parse(n); - I = parseInt(R.version); - J = R.algorithm; - Q = R.signature; - if (!I || "number" !== typeof I || I != I || "string" !== typeof J || "string" !== typeof Q) throw new aa(k.JSON_PARSE_ERROR, "signature envelope " + ma(t)); - if (q.V2 != I) throw new P(k.UNSUPPORTED_SIGNATURE_ENVELOPE, "signature envelope " + ma(t)); - L = Zc(J); - if (!L) throw new P(k.UNIDENTIFIED_ALGORITHM, "signature envelope " + ma(t)); - E = ra(Q); - if (!E) throw new P(k.INVALID_SIGNATURE, "signature envelope " + Base64Util.encode(t)); - return new pb(q.V2, L, E); - } catch (K) { - if (K instanceof SyntaxError) throw new aa(k.JSON_PARSE_ERROR, "signature envelope " + ma(t), K); - throw K; + n = Ra(t, Ba); + K = JSON.parse(n); + B = parseInt(K.version); + L = K.algorithm; + V = K.signature; + if (!B || "number" !== typeof B || B != B || "string" !== typeof L || "string" !== typeof V) throw new ba(l.JSON_PARSE_ERROR, "signature envelope " + ka(t)); + if (q.V2 != B) throw new R(l.UNSUPPORTED_SIGNATURE_ENVELOPE, "signature envelope " + ka(t)); + J = Yc(L); + if (!J) throw new R(l.UNIDENTIFIED_ALGORITHM, "signature envelope " + ka(t)); + C = oa(V); + if (!C) throw new R(l.INVALID_SIGNATURE, "signature envelope " + Base64Util.encode(t)); + return new Bb(q.V2, J, C); + } catch (M) { + if (M instanceof SyntaxError) throw new ba(l.JSON_PARSE_ERROR, "signature envelope " + ka(t), M); + throw M; } - default: - throw new P(k.UNSUPPORTED_SIGNATURE_ENVELOPE, "signature envelope " + ma(t)); + default: + throw new R(l.UNSUPPORTED_SIGNATURE_ENVELOPE, "signature envelope " + ka(t)); } try { - n = Ia(t, Ca); - R = JSON.parse(n); - } catch (K) { - R = null; + n = Ra(t, Ba); + K = JSON.parse(n); + } catch (M) { + K = null; } - if (R && R.version) { - if (n = R.version, "number" !== typeof n || n !== n) n = q.V1; + if (K && K.version) { + if (n = K.version, "number" !== typeof n || n !== n) n = q.V1; } else n = q.V1; switch (n) { case q.V1: - return new pb(n, null, t); + return new Bb(n, null, t); case q.V2: - L = R.algorithm; - Q = R.signature; - if ("string" !== typeof L || "string" !== typeof Q) return new pb(q.V1, null, t); - L = Zc(L); - if (!L) return new pb(q.V1, null, t); + J = K.algorithm; + V = K.signature; + if ("string" !== typeof J || "string" !== typeof V) return new Bb(q.V1, null, t); + J = Yc(J); + if (!J) return new Bb(q.V1, null, t); try { - E = ra(Q); - } catch (K) { - return new pb(q.V1, null, t); + C = oa(V); + } catch (M) { + return new Bb(q.V1, null, t); } - return new pb(n, L, E); + return new Bb(n, J, C); default: - throw new P(k.UNSUPPORTED_SIGNATURE_ENVELOPE, "signature envelope " + t); + throw new R(l.UNSUPPORTED_SIGNATURE_ENVELOPE, "signature envelope " + t); } }); }; }()); - bc = fa.Class.create({ - encrypt: function(k, n) {}, - decrypt: function(k, n) {}, - wrap: function(k, n) {}, - unwrap: function(k, n, q, t) {}, - sign: function(k, n) {}, - verify: function(k, n, q) {} + bc = ha.Class.create({ + encrypt: function(l, n) {}, + decrypt: function(l, n) {}, + wrap: function(l, n) {}, + unwrap: function(l, n, q, t) {}, + sign: function(l, n) {}, + verify: function(l, n, q) {} }); (function() { var q; - q = Bb = { - RSA_OAEP: yc.name, - A128KW: yb.name + q = Db = { + RSA_OAEP: zc.name, + A128KW: zb.name }; - rb = "A128GCM"; - Ab = fa.Class.create({ - init: function(k, n, t, M, R) { + vb = "A128GCM"; + Cb = ha.Class.create({ + init: function(l, n, t, I, K) { switch (n) { case q.RSA_OAEP: - R = R && (R.rawKey || R); - M = M && (M.rawKey || M); + K = K && (K.rawKey || K); + I = I && (I.rawKey || I); break; case q.A128KW: - R = M = M && (M.rawKey || M); + K = I = I && (I.rawKey || I); break; default: - throw new Y("Unsupported algorithm: " + n); + throw new ca("Unsupported algorithm: " + n); } Object.defineProperties(this, { _ctx: { - value: k, + value: l, writable: !1, enumerable: !1, configurable: !1 @@ -3853,13 +3848,13 @@ v7AA.H22 = function() { configurable: !1 }, _wrapKey: { - value: R, + value: K, writable: !1, enumerable: !1, configurable: !1 }, _unwrapKey: { - value: M, + value: I, writable: !1, enumerable: !1, configurable: !1 @@ -3867,88 +3862,88 @@ v7AA.H22 = function() { }); }, encrypt: function(n, q) { - q.error(new P(k.ENCRYPT_NOT_SUPPORTED)); + q.error(new R(l.ENCRYPT_NOT_SUPPORTED)); }, decrypt: function(n, q) { - q.error(new P(k.DECRYPT_NOT_SUPPORTED)); + q.error(new R(l.DECRYPT_NOT_SUPPORTED)); }, wrap: function(q, t) { n(t, function() { - ya.wrapKey("jwe+jwk", q.rawKey, this._wrapKey, this._wrapKey.algorithm).then(function(k) { - t.result(k); + xa.wrapKey("jwe+jwk", q.rawKey, this._wrapKey, this._wrapKey.algorithm).then(function(l) { + t.result(l); }, function(n) { - t.error(new P(k.WRAP_ERROR)); + t.error(new R(l.WRAP_ERROR)); }); }, this); }, - unwrap: function(q, t, A, M) { - function R(q) { - n(M, function() { + unwrap: function(q, t, G, I) { + function K(q) { + n(I, function() { switch (q.type) { case "secret": - Zb(q, M); + Zb(q, I); break; case "public": - Mb(q, M); + Mb(q, I); break; case "private": - $b(q, M); + $b(q, I); break; default: - throw new P(k.UNSUPPORTED_KEY, "type: " + q.type); + throw new R(l.UNSUPPORTED_KEY, "type: " + q.type); } }); } - n(M, function() { - ya.unwrapKey("jwe+jwk", q, this._unwrapKey, this._unwrapKey.algorithm, t, !1, A).then(function(k) { - R(k); + n(I, function() { + xa.unwrapKey("jwe+jwk", q, this._unwrapKey, this._unwrapKey.algorithm, t, !1, G).then(function(l) { + K(l); }, function() { - M.error(new P(k.UNWRAP_ERROR)); + I.error(new R(l.UNWRAP_ERROR)); }); }, this); }, sign: function(n, q) { - q.error(new P(k.SIGN_NOT_SUPPORTED)); + q.error(new R(l.SIGN_NOT_SUPPORTED)); }, verify: function(n, q, t) { - t.error(new P(k.VERIFY_NOT_SUPPORTED)); + t.error(new R(l.VERIFY_NOT_SUPPORTED)); } }); }()); cc = bc.extend({ - encrypt: function(k, n) { - n.result(k); + encrypt: function(l, n) { + n.result(l); }, - decrypt: function(k, n) { - n.result(k); + decrypt: function(l, n) { + n.result(l); }, - wrap: function(k, n) { - n.result(k); + wrap: function(l, n) { + n.result(l); }, - unwrap: function(k, n, q, t) { - t.result(k); + unwrap: function(l, n, q, t) { + t.result(l); }, - sign: function(k, n) { + sign: function(l, n) { n.result(new Uint8Array(0)); }, - verify: function(k, n, q) { + verify: function(l, n, q) { q.result(!0); } }); (function() { var q; - q = Bc = { + q = Cc = { ENCRYPT_DECRYPT_OAEP: 1, ENCRYPT_DECRYPT_PKCS1: 2, WRAP_UNWRAP_OAEP: 3, WRAP_UNWRAP_PKCS1: 4, SIGN_VERIFY: 5 }; - Ac = bc.extend({ - init: function za(k, n, R, I, J) { - za.base.call(this); - R && (R = R.rawKey); - I && (I = I.rawKey); + Bc = bc.extend({ + init: function wa(l, n, K, B, L) { + wa.base.call(this); + K && (K = K.rawKey); + B && (B = B.rawKey); Object.defineProperties(this, { id: { value: n, @@ -3957,31 +3952,31 @@ v7AA.H22 = function() { configurable: !1 }, privateKey: { - value: R, + value: K, writable: !1, enumerable: !1, configurable: !1 }, publicKey: { - value: I, + value: B, writable: !1, enumerable: !1, configurable: !1 }, transform: { - value: J == q.ENCRYPT_DECRYPT_PKCS1 ? ad : J == q.ENCRYPT_DECRYPT_OAEP ? yc : "nullOp", + value: L == q.ENCRYPT_DECRYPT_PKCS1 ? $c : L == q.ENCRYPT_DECRYPT_OAEP ? zc : "nullOp", writable: !1, enumerable: !1, configurable: !1 }, wrapTransform: { - value: J == q.WRAP_UNWRAP_PKCS1 ? ad : J == q.WRAP_UNWRAP_OAEP ? yc : "nullOp", + value: L == q.WRAP_UNWRAP_PKCS1 ? $c : L == q.WRAP_UNWRAP_OAEP ? zc : "nullOp", writable: !1, enumerable: !1, configurable: !1 }, algo: { - value: J == q.SIGN_VERIFY ? Td : "nullOp", + value: L == q.SIGN_VERIFY ? Pd : "nullOp", writable: !1, enumerable: !1, configurable: !1 @@ -3989,64 +3984,64 @@ v7AA.H22 = function() { }); }, encrypt: function(q, t) { - var M; - M = this; + var I; + I = this; n(t, function() { if ("nullOp" == this.transform) return q; - if (!this.publicKey) throw new P(k.ENCRYPT_NOT_SUPPORTED, "no public key"); + if (!this.publicKey) throw new R(l.ENCRYPT_NOT_SUPPORTED, "no public key"); if (0 == q.length) return q; - ya.encrypt(M.transform, M.publicKey, q).then(function(n) { - ed(M.id, null, n, { + xa.encrypt(I.transform, I.publicKey, q).then(function(n) { + dd(I.id, null, n, { result: function(n) { var q; try { q = JSON.stringify(n); - t.result(Ma(q, Ca)); - } catch (Q) { - t.error(new P(k.ENCRYPT_ERROR, null, Q)); + t.result(Oa(q, Ba)); + } catch (V) { + t.error(new R(l.ENCRYPT_ERROR, null, V)); } }, error: function(n) { - n instanceof A || (n = new P(k.ENCRYPT_ERROR, null, n)); + n instanceof G || (n = new R(l.ENCRYPT_ERROR, null, n)); t.error(n); } }); }, function(n) { - t.error(new P(k.ENCRYPT_ERROR)); + t.error(new R(l.ENCRYPT_ERROR)); }); }, this); }, decrypt: function(q, t) { - var M; - M = this; + var I; + I = this; n(t, function() { - var n, I; + var n, B; if ("nullOp" == this.transform) return q; - if (!this.privateKey) throw new P(k.DECRYPT_NOT_SUPPORTED, "no private key"); + if (!this.privateKey) throw new R(l.DECRYPT_NOT_SUPPORTED, "no private key"); if (0 == q.length) return q; try { - I = Ia(q, Ca); - n = JSON.parse(I); - } catch (J) { - if (J instanceof SyntaxError) throw new P(k.CIPHERTEXT_ENVELOPE_PARSE_ERROR, null, J); - throw new P(k.DECRYPT_ERROR, null, J); + B = Ra(q, Ba); + n = JSON.parse(B); + } catch (L) { + if (L instanceof SyntaxError) throw new R(l.CIPHERTEXT_ENVELOPE_PARSE_ERROR, null, L); + throw new R(l.DECRYPT_ERROR, null, L); } - fd(n, gd.V1, { + ed(n, fd.V1, { result: function(n) { var q; try { - if (n.keyId != M.id) throw new P(k.ENVELOPE_KEY_ID_MISMATCH); + if (n.keyId != I.id) throw new R(l.ENVELOPE_KEY_ID_MISMATCH); q = t.result; - ya.decrypt(M.transform, M.privateKey, n.ciphertext).then(q, function(n) { - t.error(new P(k.DECRYPT_ERROR)); + xa.decrypt(I.transform, I.privateKey, n.ciphertext).then(q, function(n) { + t.error(new R(l.DECRYPT_ERROR)); }); - } catch (L) { - L instanceof A ? t.error(L) : t.error(new P(k.DECRYPT_ERROR, null, L)); + } catch (J) { + J instanceof G ? t.error(J) : t.error(new R(l.DECRYPT_ERROR, null, J)); } }, error: function(n) { - n instanceof aa && (n = new P(k.CIPHERTEXT_ENVELOPE_ENCODE_ERROR, null, n)); - n instanceof A || (n = new P(k.DECRYPT_ERROR, null, n)); + n instanceof ba && (n = new R(l.CIPHERTEXT_ENVELOPE_ENCODE_ERROR, null, n)); + n instanceof G || (n = new R(l.DECRYPT_ERROR, null, n)); t.error(n); } }); @@ -4055,91 +4050,91 @@ v7AA.H22 = function() { wrap: function(q, t) { n(t, function() { var n; - if ("nullOp" == this.wrapTransform || !this.publicKey) throw new P(k.WRAP_NOT_SUPPORTED, "no public key"); + if ("nullOp" == this.wrapTransform || !this.publicKey) throw new R(l.WRAP_NOT_SUPPORTED, "no public key"); n = t.result; - ya.wrapKey("jwk", q.rawKey, this.publicKey, this.wrapTransform).then(n, function(n) { - t.error(new P(k.WRAP_ERROR)); + xa.wrapKey("jwk", q.rawKey, this.publicKey, this.wrapTransform).then(n, function(n) { + t.error(new R(l.WRAP_ERROR)); }); }, this); }, - unwrap: function(q, t, M, R) { - function I(q) { - n(R, function() { + unwrap: function(q, t, I, K) { + function B(q) { + n(K, function() { switch (q.type) { case "secret": - Zb(q, R); + Zb(q, K); break; case "public": - Mb(q, R); + Mb(q, K); break; case "private": - $b(q, R); + $b(q, K); break; default: - throw new P(k.UNSUPPORTED_KEY, "type: " + q.type); + throw new R(l.UNSUPPORTED_KEY, "type: " + q.type); } }); } - n(R, function() { - if ("nullOp" == this.wrapTransform || !this.privateKey) throw new P(k.UNWRAP_NOT_SUPPORTED, "no private key"); - ya.unwrapKey("jwk", q, this.privateKey, { + n(K, function() { + if ("nullOp" == this.wrapTransform || !this.privateKey) throw new R(l.UNWRAP_NOT_SUPPORTED, "no private key"); + xa.unwrapKey("jwk", q, this.privateKey, { name: this.privateKey.algorithm.name, hash: { name: "SHA-1" } - }, t, !1, M).then(I, function(n) { - R.error(new P(k.UNWRAP_ERROR)); + }, t, !1, I).then(B, function(n) { + K.error(new R(l.UNWRAP_ERROR)); }); }, this); }, sign: function(q, t) { n(t, function() { if ("nullOp" == this.algo) return new Uint8Array(0); - if (!this.privateKey) throw new P(k.SIGN_NOT_SUPPORTED, "no private key"); - ya.sign(this.algo, this.privateKey, q).then(function(k) { - hd(k, { - result: function(k) { - t.result(k.bytes); + if (!this.privateKey) throw new R(l.SIGN_NOT_SUPPORTED, "no private key"); + xa.sign(this.algo, this.privateKey, q).then(function(l) { + gd(l, { + result: function(l) { + t.result(l.bytes); }, error: t.error }); }, function(n) { - t.error(new P(k.SIGNATURE_ERROR)); + t.error(new R(l.SIGNATURE_ERROR)); }); }, this); }, - verify: function(q, t, M) { - var R; - R = this; - n(M, function() { + verify: function(q, t, I) { + var K; + K = this; + n(I, function() { if ("nullOp" == this.algo) return !0; - if (!this.publicKey) throw new P(k.VERIFY_NOT_SUPPORTED, "no public key"); - id(t, jd.V1, { - result: function(I) { - n(M, function() { + if (!this.publicKey) throw new R(l.VERIFY_NOT_SUPPORTED, "no public key"); + hd(t, id.V1, { + result: function(B) { + n(I, function() { var n; - n = M.result; - ya.verify(this.algo, this.publicKey, I.signature, q).then(n, function(n) { - M.error(new P(k.SIGNATURE_ERROR)); + n = I.result; + xa.verify(this.algo, this.publicKey, B.signature, q).then(n, function(n) { + I.error(new R(l.SIGNATURE_ERROR)); }); - }, R); + }, K); }, - error: M.error + error: I.error }); }, this); } }); }()); (function() { - Cc = bc.extend({ - init: function Ta(k, n, q, R, I) { - Ta.base.call(this); + Dc = bc.extend({ + init: function Pa(l, n, q, K, B) { + Pa.base.call(this); q = q && q.rawKey; - R = R && R.rawKey; - I = I && I.rawKey; + K = K && K.rawKey; + B = B && B.rawKey; Object.defineProperties(this, { ctx: { - value: k, + value: l, writable: !1, enumerable: !1, configurable: !1 @@ -4157,13 +4152,13 @@ v7AA.H22 = function() { configurable: !1 }, hmacKey: { - value: R, + value: K, writable: !1, enumerable: !1, configurable: !1 }, wrapKey: { - value: I, + value: B, writable: !1, enumerable: !1, configurable: !1 @@ -4171,73 +4166,73 @@ v7AA.H22 = function() { }); }, encrypt: function(q, t) { - var H; - H = this; + var A; + A = this; n(t, function() { var n; - if (!this.encryptionKey) throw new P(k.ENCRYPT_NOT_SUPPORTED, "no encryption/decryption key"); + if (!this.encryptionKey) throw new R(l.ENCRYPT_NOT_SUPPORTED, "no encryption/decryption key"); if (0 == q.length) return q; n = new Uint8Array(16); this.ctx.getRandom().nextBytes(n); - ya.encrypt({ - name: jb.name, + xa.encrypt({ + name: qb.name, iv: n - }, H.encryptionKey, q).then(function(q) { + }, A.encryptionKey, q).then(function(q) { q = new Uint8Array(q); - ed(H.id, n, q, { + dd(A.id, n, q, { result: function(n) { var q; try { q = JSON.stringify(n); - t.result(Ma(q, Ca)); - } catch (Q) { - t.error(new P(k.ENCRYPT_ERROR, null, Q)); + t.result(Oa(q, Ba)); + } catch (V) { + t.error(new R(l.ENCRYPT_ERROR, null, V)); } }, error: function(n) { - n instanceof A || (n = new P(k.ENCRYPT_ERROR, null, n)); + n instanceof G || (n = new R(l.ENCRYPT_ERROR, null, n)); t.error(n); } }); }, function(n) { - t.error(new P(k.ENCRYPT_ERROR)); + t.error(new R(l.ENCRYPT_ERROR)); }); }, this); }, decrypt: function(q, t) { - var H; - H = this; + var A; + A = this; n(t, function() { - var n, R; - if (!this.encryptionKey) throw new P(k.DECRYPT_NOT_SUPPORTED, "no encryption/decryption key"); + var n, K; + if (!this.encryptionKey) throw new R(l.DECRYPT_NOT_SUPPORTED, "no encryption/decryption key"); if (0 == q.length) return q; try { - R = Ia(q, Ca); - n = JSON.parse(R); - } catch (I) { - if (I instanceof SyntaxError) throw new P(k.CIPHERTEXT_ENVELOPE_PARSE_ERROR, null, I); - throw new P(k.DECRYPT_ERROR, null, I); + K = Ra(q, Ba); + n = JSON.parse(K); + } catch (B) { + if (B instanceof SyntaxError) throw new R(l.CIPHERTEXT_ENVELOPE_PARSE_ERROR, null, B); + throw new R(l.DECRYPT_ERROR, null, B); } - fd(n, gd.V1, { + ed(n, fd.V1, { result: function(n) { try { - if (n.keyId != H.id) throw new P(k.ENVELOPE_KEY_ID_MISMATCH); - ya.decrypt({ - name: jb.name, + if (n.keyId != A.id) throw new R(l.ENVELOPE_KEY_ID_MISMATCH); + xa.decrypt({ + name: qb.name, iv: n.iv - }, H.encryptionKey, n.ciphertext).then(function(k) { - k = new Uint8Array(k); - t.result(k); + }, A.encryptionKey, n.ciphertext).then(function(l) { + l = new Uint8Array(l); + t.result(l); }, function() { - t.error(new P(k.DECRYPT_ERROR)); + t.error(new R(l.DECRYPT_ERROR)); }); - } catch (J) { - J instanceof A ? t.error(J) : t.error(new P(k.DECRYPT_ERROR, null, J)); + } catch (L) { + L instanceof G ? t.error(L) : t.error(new R(l.DECRYPT_ERROR, null, L)); } }, error: function(n) { - n instanceof aa && (n = new P(k.CIPHERTEXT_ENVELOPE_ENCODE_ERROR, null, n)); - n instanceof A || (n = new P(k.DECRYPT_ERROR, null, n)); + n instanceof ba && (n = new R(l.CIPHERTEXT_ENVELOPE_ENCODE_ERROR, null, n)); + n instanceof G || (n = new R(l.DECRYPT_ERROR, null, n)); t.error(n); } }); @@ -4245,109 +4240,109 @@ v7AA.H22 = function() { }, wrap: function(q, t) { n(t, function() { - if (!this.wrapKey) throw new P(k.WRAP_NOT_SUPPORTED, "no wrap/unwrap key"); - ya.wrapKey("raw", q.rawKey, this.wrapKey, this.wrapKey.algorithm).then(function(k) { - t.result(k); + if (!this.wrapKey) throw new R(l.WRAP_NOT_SUPPORTED, "no wrap/unwrap key"); + xa.wrapKey("raw", q.rawKey, this.wrapKey, this.wrapKey.algorithm).then(function(l) { + t.result(l); }, function(n) { - t.error(new P(k.WRAP_ERROR)); + t.error(new R(l.WRAP_ERROR)); }); }, this); }, - unwrap: function(q, t, A, M) { - function R(q) { - n(M, function() { + unwrap: function(q, t, G, I) { + function K(q) { + n(I, function() { switch (q.type) { case "secret": - Zb(q, M); + Zb(q, I); break; case "public": - Mb(q, M); + Mb(q, I); break; case "private": - $b(q, M); + $b(q, I); break; default: - throw new P(k.UNSUPPORTED_KEY, "type: " + q.type); + throw new R(l.UNSUPPORTED_KEY, "type: " + q.type); } }); } - n(M, function() { - if (!this.wrapKey) throw new P(k.UNWRAP_NOT_SUPPORTED, "no wrap/unwrap key"); - ya.unwrapKey("raw", q, this.wrapKey, this.wrapKey.algorithm, t, !1, A).then(function(k) { - R(k); + n(I, function() { + if (!this.wrapKey) throw new R(l.UNWRAP_NOT_SUPPORTED, "no wrap/unwrap key"); + xa.unwrapKey("raw", q, this.wrapKey, this.wrapKey.algorithm, t, !1, G).then(function(l) { + K(l); }, function(n) { - M.error(new P(k.UNWRAP_ERROR)); + I.error(new R(l.UNWRAP_ERROR)); }); }, this); }, sign: function(q, t) { - var A; - A = this; + var G; + G = this; n(t, function() { - if (!this.hmacKey) throw new P(k.SIGN_NOT_SUPPORTED, "no HMAC key."); - ya.sign(sb, this.hmacKey, q).then(function(k) { + if (!this.hmacKey) throw new R(l.SIGN_NOT_SUPPORTED, "no HMAC key."); + xa.sign(rb, this.hmacKey, q).then(function(l) { n(t, function() { var n; - n = new Uint8Array(k); - hd(n, { - result: function(k) { - t.result(k.bytes); + n = new Uint8Array(l); + gd(n, { + result: function(l) { + t.result(l.bytes); }, error: t.error }); - }, A); + }, G); }, function() { - t.error(new P(k.HMAC_ERROR)); + t.error(new R(l.HMAC_ERROR)); }); }, this); }, - verify: function(q, t, A) { - var M; - M = this; - n(A, function() { - if (!this.hmacKey) throw new P(k.VERIFY_NOT_SUPPORTED, "no HMAC key."); - id(t, jd.V1, { + verify: function(q, t, G) { + var I; + I = this; + n(G, function() { + if (!this.hmacKey) throw new R(l.VERIFY_NOT_SUPPORTED, "no HMAC key."); + hd(t, id.V1, { result: function(t) { - n(A, function() { - ya.verify(sb, this.hmacKey, t.signature, q).then(function(k) { - A.result(k); + n(G, function() { + xa.verify(rb, this.hmacKey, t.signature, q).then(function(l) { + G.result(l); }, function(n) { - A.error(new P(k.HMAC_ERROR)); + G.error(new R(l.HMAC_ERROR)); }); - }, M); + }, I); }, - error: A.error + error: G.error }); }, this); } }); }()); - $a = Cc.extend({ - init: function Ta(n, q, t, R, I) { - if (t || R || I) Ta.base.call(this, n, t + "_" + q.sequenceNumber, R, I, null); + gb = Dc.extend({ + init: function Pa(n, q, t, K, B) { + if (t || K || B) Pa.base.call(this, n, t + "_" + q.sequenceNumber, K, B, null); else { - if (!q.isDecrypted()) throw new Pb(k.MASTERTOKEN_UNTRUSTED, q); - Ta.base.call(this, n, q.identity + "_" + q.sequenceNumber, q.encryptionKey, q.hmacKey, null); + if (!q.isDecrypted()) throw new Pb(l.MASTERTOKEN_UNTRUSTED, q); + Pa.base.call(this, n, q.identity + "_" + q.sequenceNumber, q.encryptionKey, q.hmacKey, null); } } }); - Ye = bc.extend({ - encrypt: function(k, n) { - n.result(k); + Te = bc.extend({ + encrypt: function(l, n) { + n.result(l); }, - decrypt: function(k, n) { - n.result(k); + decrypt: function(l, n) { + n.result(l); }, - wrap: function(k, n) { - n.error(new Y("Wrap is unsupported by the MSL token crypto context.")); + wrap: function(l, n) { + n.error(new ca("Wrap is unsupported by the MSL token crypto context.")); }, - unwrap: function(k, n, q, t) { - t.error(new Y("Unwrap is unsupported by the MSL token crypto context.")); + unwrap: function(l, n, q, t) { + t.error(new ca("Unwrap is unsupported by the MSL token crypto context.")); }, - sign: function(k, n) { + sign: function(l, n) { n.result(new Uint8Array(0)); }, - verify: function(k, n, q) { + verify: function(l, n, q) { q.result(!1); } }); @@ -4362,11 +4357,11 @@ v7AA.H22 = function() { }; Object.freeze(Fa); (function() { - Ob = fa.Class.create({ - init: function(k) { + Ob = ha.Class.create({ + init: function(l) { Object.defineProperties(this, { scheme: { - value: k, + value: l, writable: !1, configurable: !1 } @@ -4374,48 +4369,48 @@ v7AA.H22 = function() { }, getIdentity: function() {}, getAuthData: function() {}, - equals: function(k) { - return this === k ? !0 : k instanceof Ob ? this.scheme == k.scheme : !1; + equals: function(l) { + return this === l ? !0 : l instanceof Ob ? this.scheme == l.scheme : !1; }, toJSON: function() { - var k; - k = {}; - k.scheme = this.scheme; - k.authdata = this.getAuthData(); - return k; + var l; + l = {}; + l.scheme = this.scheme; + l.authdata = this.getAuthData(); + return l; } }); - Vd = function(n, q) { - var t, M, R; + Rd = function(n, q) { + var t, I, K; t = q.scheme; - M = q.authdata; - if (!t || !M) throw new aa(k.JSON_PARSE_ERROR, "entityauthdata " + JSON.stringify(q)); - if (!Fa[t]) throw new bb(k.UNIDENTIFIED_ENTITYAUTH_SCHEME, t); - R = n.getEntityAuthenticationFactory(t); - if (!R) throw new bb(k.ENTITYAUTH_FACTORY_NOT_FOUND, t); - return R.createData(n, M); + I = q.authdata; + if (!t || !I) throw new ba(l.JSON_PARSE_ERROR, "entityauthdata " + JSON.stringify(q)); + if (!Fa[t]) throw new yb(l.UNIDENTIFIED_ENTITYAUTH_SCHEME, t); + K = n.getEntityAuthenticationFactory(t); + if (!K) throw new yb(l.ENTITYAUTH_FACTORY_NOT_FOUND, t); + return K.createData(n, I); }; }()); - Dc = fa.Class.create({ - init: function(k) { + Ec = ha.Class.create({ + init: function(l) { Object.defineProperties(this, { scheme: { - value: k, + value: l, writable: !1, configurable: !1 } }); }, - createData: function(k, n) {}, - getCryptoContext: function(k, n) {} + createData: function(l, n) {}, + getCryptoContext: function(l, n) {} }); (function() { - lb = Ob.extend({ - init: function za(k) { - za.base.call(this, Fa.MGK); + ob = Ob.extend({ + init: function wa(l) { + wa.base.call(this, Fa.MGK); Object.defineProperties(this, { identity: { - value: k, + value: l, writable: !1, configurable: !1 } @@ -4425,50 +4420,50 @@ v7AA.H22 = function() { return this.identity; }, getAuthData: function() { - var k; - k = {}; - k.identity = this.identity; - return k; + var l; + l = {}; + l.identity = this.identity; + return l; }, - equals: function Ka(k) { - return this === k ? !0 : k instanceof lb ? Ka.base.call(this, this, k) && this.identity == k.identity : !1; + equals: function ya(l) { + return this === l ? !0 : l instanceof ob ? ya.base.call(this, this, l) && this.identity == l.identity : !1; } }); - Wd = function(n) { + Sd = function(n) { var q; q = n.identity; - if (!q) throw new aa(k.JSON_PARSE_ERROR, "mgk authdata" + JSON.stringify(n)); - return new lb(q); + if (!q) throw new ba(l.JSON_PARSE_ERROR, "mgk authdata" + JSON.stringify(n)); + return new ob(q); }; }()); - Ze = Dc.extend({ - init: function za(k) { - za.base.call(this, Fa.MGK); + Ue = Ec.extend({ + init: function wa(l) { + wa.base.call(this, Fa.MGK); Object.defineProperties(this, { localIdentity: { - value: k, + value: l, writable: !1, enumerable: !1, configurable: !1 } }); }, - createData: function(k, n) { - return Wd(n); + createData: function(l, n) { + return Sd(n); }, getCryptoContext: function(n, q) { - if (!(q instanceof lb)) throw new Y("Incorrect authentication data type " + JSON.stringify(q) + "."); - if (q.identity != this.localIdentity) throw new bb(k.ENTITY_NOT_FOUND, "mgk " + q.identity).setEntity(q); + if (!(q instanceof ob)) throw new ca("Incorrect authentication data type " + JSON.stringify(q) + "."); + if (q.identity != this.localIdentity) throw new yb(l.ENTITY_NOT_FOUND, "mgk " + q.identity).setEntity(q); return new cc(); } }); (function() { - tb = Ob.extend({ - init: function Ka(k) { - Ka.base.call(this, Fa.PSK); + sb = Ob.extend({ + init: function ya(l) { + ya.base.call(this, Fa.PSK); Object.defineProperties(this, { identity: { - value: k, + value: l, writable: !1 } }); @@ -4477,50 +4472,50 @@ v7AA.H22 = function() { return this.identity; }, getAuthData: function() { - var k; - k = {}; - k.identity = this.identity; - return k; + var l; + l = {}; + l.identity = this.identity; + return l; }, - equals: function M(k) { - return this === k ? !0 : k instanceof tb ? M.base.call(this, this, k) && this.identity == k.identity : !1; + equals: function I(l) { + return this === l ? !0 : l instanceof sb ? I.base.call(this, this, l) && this.identity == l.identity : !1; } }); - Xd = function(n) { + Td = function(n) { var q; q = n.identity; - if (!q) throw new aa(k.JSON_PARSE_ERROR, "psk authdata" + JSON.stringify(n)); - return new tb(q); + if (!q) throw new ba(l.JSON_PARSE_ERROR, "psk authdata" + JSON.stringify(n)); + return new sb(q); }; }()); - Yd = Dc.extend({ - init: function Ka(k) { - Ka.base.call(this, Fa.PSK); + Ud = Ec.extend({ + init: function ya(l) { + ya.base.call(this, Fa.PSK); Object.defineProperties(this, { localIdentity: { - value: k, + value: l, writable: !1, enumerable: !1, configurable: !1 } }); }, - createData: function(k, n) { - return Xd(n); + createData: function(l, n) { + return Td(n); }, getCryptoContext: function(n, q) { - if (!(q instanceof tb)) throw new Y("Incorrect authentication data type " + JSON.stringify(q) + "."); - if (q.getIdentity() != this.localIdentity) throw new bb(k.ENTITY_NOT_FOUND, "psk " + q.identity).setEntity(q); + if (!(q instanceof sb)) throw new ca("Incorrect authentication data type " + JSON.stringify(q) + "."); + if (q.getIdentity() != this.localIdentity) throw new yb(l.ENTITY_NOT_FOUND, "psk " + q.identity).setEntity(q); return new cc(); } }); (function() { - Ec = Ob.extend({ - init: function M(k, n) { - M.base.call(this, Fa.RSA); + Fc = Ob.extend({ + init: function I(l, n) { + I.base.call(this, Fa.RSA); Object.defineProperties(this, { identity: { - value: k, + value: l, writable: !1, configurable: !1 }, @@ -4535,56 +4530,56 @@ v7AA.H22 = function() { return this.identity; }, getAuthData: function() { - var k; - k = {}; - k.identity = this.identity; - k.pubkeyid = this.publicKeyId; - return k; + var l; + l = {}; + l.identity = this.identity; + l.pubkeyid = this.publicKeyId; + return l; }, - equals: function R(k) { - return this === k ? !0 : k instanceof Ec ? R.base.call(this, this, k) && this.identity == k.identity && this.publicKeyId == k.publicKeyId : !1; + equals: function K(l) { + return this === l ? !0 : l instanceof Fc ? K.base.call(this, this, l) && this.identity == l.identity && this.publicKeyId == l.publicKeyId : !1; } }); - Zd = function(n) { - var q, J; + Vd = function(n) { + var q, L; q = n.identity; - J = n.pubkeyid; - if (!q || "string" !== typeof q || !J || "string" !== typeof J) throw new aa(k.JSON_PARSE_ERROR, "RSA authdata" + JSON.stringify(n)); - return new Ec(q, J); + L = n.pubkeyid; + if (!q || "string" !== typeof q || !L || "string" !== typeof L) throw new ba(l.JSON_PARSE_ERROR, "RSA authdata" + JSON.stringify(n)); + return new Fc(q, L); }; }()); - $e = Dc.extend({ - init: function M(k) { - M.base.call(this, Fa.RSA); + Ve = Ec.extend({ + init: function I(l) { + I.base.call(this, Fa.RSA); Object.defineProperties(this, { store: { - value: k, + value: l, writable: !1, enumerable: !1, configurable: !1 } }); }, - createData: function(k, n) { - return Zd(n); + createData: function(l, n) { + return Vd(n); }, getCryptoContext: function(n, q) { - var I, J, t; - if (!(q instanceof Ec)) throw new Y("Incorrect authentication data type " + q + "."); - I = q.identity; - J = q.publicKeyId; - t = this.store.getPublicKey(J); - if (!t) throw new bb(k.RSA_PUBLICKEY_NOT_FOUND, J).setEntity(q); - return new Ac(n, I, null, t, Bc.SIGN_VERIFY); + var B, L, t; + if (!(q instanceof Fc)) throw new ca("Incorrect authentication data type " + q + "."); + B = q.identity; + L = q.publicKeyId; + t = this.store.getPublicKey(L); + if (!t) throw new yb(l.RSA_PUBLICKEY_NOT_FOUND, L).setEntity(q); + return new Bc(n, B, null, t, Cc.SIGN_VERIFY); } }); (function() { - ic = Ob.extend({ - init: function R(k) { - R.base.call(this, Fa.NONE); + hc = Ob.extend({ + init: function K(l) { + K.base.call(this, Fa.NONE); Object.defineProperties(this, { identity: { - value: k, + value: l, writable: !1 } }); @@ -4593,35 +4588,35 @@ v7AA.H22 = function() { return this.identity; }, getAuthData: function() { - var k; - k = {}; - k.identity = this.identity; - return k; + var l; + l = {}; + l.identity = this.identity; + return l; }, - equals: function I(k) { - return this === k ? !0 : k instanceof ic ? I.base.call(this, this, k) && this.identity == k.identity : !1; + equals: function B(l) { + return this === l ? !0 : l instanceof hc ? B.base.call(this, this, l) && this.identity == l.identity : !1; } }); - $d = function(n) { + Wd = function(n) { var q; q = n.identity; - if (!q) throw new aa(k.JSON_PARSE_ERROR, "Unauthenticated authdata" + JSON.stringify(n)); - return new ic(q); + if (!q) throw new ba(l.JSON_PARSE_ERROR, "Unauthenticated authdata" + JSON.stringify(n)); + return new hc(q); }; }()); - Ve = Dc.extend({ - init: function R() { - R.base.call(this, Fa.NONE); + Qe = Ec.extend({ + init: function K() { + K.base.call(this, Fa.NONE); }, - createData: function(k, n) { - return $d(n); + createData: function(l, n) { + return Wd(n); }, - getCryptoContext: function(k, n) { - if (!(n instanceof ic)) throw new Y("Incorrect authentication data type " + JSON.stringify(n) + "."); + getCryptoContext: function(l, n) { + if (!(n instanceof hc)) throw new ca("Incorrect authentication data type " + JSON.stringify(n) + "."); return new cc(); } }); - af = fa.Class.create({ + We = ha.Class.create({ init: function() { Object.defineProperties(this, { rsaKeys: { @@ -4632,39 +4627,39 @@ v7AA.H22 = function() { } }); }, - addPublicKey: function(k, n) { - if (!(n instanceof zc)) throw new Y("Incorrect key data type " + n + "."); - this.rsaKeys[k] = n; + addPublicKey: function(l, n) { + if (!(n instanceof Ac)) throw new ca("Incorrect key data type " + n + "."); + this.rsaKeys[l] = n; }, getIdentities: function() { return Object.keys(this.rsaKeys); }, - removePublicKey: function(k) { - delete this.rsaKeys[k]; + removePublicKey: function(l) { + delete this.rsaKeys[l]; }, - getPublicKey: function(k) { - return this.rsaKeys[k]; + getPublicKey: function(l) { + return this.rsaKeys[l]; } }); - kd = fa.Class.create({ + jd = ha.Class.create({ abort: function() {}, close: function() {}, mark: function() {}, reset: function() {}, markSupported: function() {}, - read: function(k, n, q) {} + read: function(l, n, q) {} }); - Fc = fa.Class.create({ + Gc = ha.Class.create({ abort: function() {}, - close: function(k, n) {}, - write: function(k, n, q, t, L) {}, - flush: function(k, n) {} + close: function(l, n) {}, + write: function(l, n, q, t, J) {}, + flush: function(l, n) {} }); - bf = fa.Class.create({ - init: function(k) { + Xe = ha.Class.create({ + init: function(l) { Object.defineProperties(this, { _data: { - value: k, + value: l, writable: !1, enumerable: !1, configurable: !1 @@ -4697,27 +4692,27 @@ v7AA.H22 = function() { this._mark = this._currentPosition; }, reset: function() { - if (-1 == this._mark) throw new Oa("Stream has not been marked."); + if (-1 == this._mark) throw new Wa("Stream has not been marked."); this._currentPosition = this._mark; }, markSupported: function() { return !0; }, - read: function(k, n, q) { - H(q, function() { + read: function(l, n, q) { + t(q, function() { var n; - if (this._closed) throw new Oa("Stream is already closed."); - if (this._currentPosition == this._data.length) return null; - 1 == k && (k = this._data.length - this._currentPosition); - n = this._data.subarray(this._currentPosition, this._currentPosition + k); + if (this._closed) throw new Wa("Stream is already closed."); + if (this._currentPosition == this._data.length) return null; - 1 == l && (l = this._data.length - this._currentPosition); + n = this._data.subarray(this._currentPosition, this._currentPosition + l); this._currentPosition += n.length; return n; }, this); } }); - cf = fa.Class.create({ + Ye = ha.Class.create({ init: function() { - var k; - k = { + var l; + l = { _closed: { value: !1, writable: !0, @@ -4737,34 +4732,34 @@ v7AA.H22 = function() { configurable: !1 } }; - Object.defineProperties(this, k); + Object.defineProperties(this, l); }, abort: function() {}, - close: function(k, n) { + close: function(l, n) { this._closed = !0; n.result(!0); }, - write: function(k, n, q, t, L) { - H(L, function() { - var E; - if (this._closed) throw new Oa("Stream is already closed."); + write: function(l, n, q, V, J) { + t(J, function() { + var C; + if (this._closed) throw new Wa("Stream is already closed."); if (0 > n) throw new RangeError("Offset cannot be negative."); if (0 > q) throw new RangeError("Length cannot be negative."); - if (n + q > k.length) throw new RangeError("Offset plus length cannot be greater than the array length."); - E = k.subarray(n, q); - this._buffered.push(E); - return E.length; + if (n + q > l.length) throw new RangeError("Offset plus length cannot be greater than the array length."); + C = l.subarray(n, q); + this._buffered.push(C); + return C.length; }, this); }, - flush: function(k, n) { - var q, I; + flush: function(l, n) { + var q, B; for (; 0 < this._buffered.length;) { q = this._buffered.shift(); if (this._result) { - I = new Uint8Array(this._result.length + q.length); - I.set(this._result); - I.set(q, this._result.length); - this._result = I; + B = new Uint8Array(this._result.length + q.length); + B.set(this._result); + B.set(q, this._result.length); + this._result = B; } else this._result = new Uint8Array(q); } n.result(!0); @@ -4782,17 +4777,17 @@ v7AA.H22 = function() { return this._result; } }); - df = fa.Class.create({ - getResponse: function(k, n, q) {} + Ze = ha.Class.create({ + getResponse: function(l, n, q) {} }); (function() { - var k, n; - k = Fc.extend({ - init: function(k, n) { + var l, n; + l = Gc.extend({ + init: function(l, n) { var q; q = { _httpLocation: { - value: k, + value: l, writable: !1, enumerable: !1, configurable: !1 @@ -4804,25 +4799,25 @@ v7AA.H22 = function() { configurable: !1 }, _buffer: { - value: new cf(), + value: new Ye(), writable: !1, enumerable: !1, configurable: !1 }, _response: { - value: ga, + value: da, writable: !0, enumerable: !1, configurable: !1 }, _abortToken: { - value: ga, + value: da, writable: !0, enumerable: !1, configurable: !1 }, _responseQueue: { - value: new jc(), + value: new ic(), writable: !0, enumerable: !1, configurable: !1 @@ -4830,21 +4825,21 @@ v7AA.H22 = function() { }; Object.defineProperties(this, q); }, - setTimeout: function(k) { - this._timeout = k; + setTimeout: function(l) { + this._timeout = l; }, - getResponse: function(k, n) { + getResponse: function(l, n) { var q; q = this; - this._responseQueue.poll(k, { - result: function(k) { - H(n, function() { - k && this._responseQueue.add(k); - return k; + this._responseQueue.poll(l, { + result: function(l) { + t(n, function() { + l && this._responseQueue.add(l); + return l; }, q); }, timeout: function() { - H(n, function() { + t(n, function() { this._response = { isTimeout: !0 }; @@ -4853,13 +4848,13 @@ v7AA.H22 = function() { n.timeout(); }, q); }, - error: function(k) { - H(n, function() { + error: function(l) { + t(n, function() { this._response = { isError: !0 }; this._responseQueue.add(this._response); - throw k; + throw l; }, q); } }); @@ -4867,19 +4862,19 @@ v7AA.H22 = function() { abort: function() { this._abortToken && this._abortToken.abort(); }, - close: function(k, n) { + close: function(l, n) { var q; q = this; - H(n, function() { - var k; + t(n, function() { + var l; if (this._response) return !0; - k = this._buffer.toByteArray(); - 0 < k.length && (this._abortToken = this._httpLocation.getResponse({ - body: k + l = this._buffer.toByteArray(); + 0 < l.length && (this._abortToken = this._httpLocation.getResponse({ + body: l }, this._timeout, { - result: function(k) { + result: function(l) { q._response = { - response: k + response: l }; q._responseQueue.add(q._response); }, @@ -4889,10 +4884,10 @@ v7AA.H22 = function() { }; q._responseQueue.add(q._response); }, - error: function(k) { + error: function(l) { q._response = { isError: !0, - error: k + error: l }; q._responseQueue.add(q._response); } @@ -4900,36 +4895,36 @@ v7AA.H22 = function() { return !0; }, this); }, - write: function(k, n, q, E, K) { - H(K, function() { - if (this._response) throw new Oa("HttpOutputStream already closed."); - this._buffer.write(k, n, q, E, K); + write: function(l, n, q, C, M) { + t(M, function() { + if (this._response) throw new Wa("HttpOutputStream already closed."); + this._buffer.write(l, n, q, C, M); }, this); }, - flush: function(k, n) { - H(n, function() { + flush: function(l, n) { + t(n, function() { if (this._response) return !0; - this._buffer.flush(k, n); + this._buffer.flush(l, n); }, this); } }); - n = kd.extend({ - init: function(k) { + n = jd.extend({ + init: function(l) { Object.defineProperties(this, { _out: { - value: k, + value: l, writable: !1, enumerable: !1, configurable: !1 }, _buffer: { - value: ga, + value: da, writable: !0, enumerable: !1, configurable: !1 }, _exception: { - value: ga, + value: da, writable: !0, enumerable: !1, configurable: !1 @@ -4947,7 +4942,7 @@ v7AA.H22 = function() { configurable: !1 }, _json: { - value: ga, + value: da, writable: !0, enumerable: !1, configurable: !1 @@ -4969,64 +4964,64 @@ v7AA.H22 = function() { markSupported: function() { if (this._buffer) return this._buffer.markSupported(); }, - read: function(k, n, q) { - var K; + read: function(l, n, q) { + var M; - function E(E) { - H(q, function() { - if (!E) return new Uint8Array(0); + function C(C) { + t(q, function() { + if (!C) return new Uint8Array(0); this._out.getResponse(n, { - result: function(E) { - H(q, function() { - var I; - if (E.isTimeout) this._timedout = !0, q.timeout(); + result: function(C) { + t(q, function() { + var B; + if (C.isTimeout) this._timedout = !0, q.timeout(); else { - if (E.isError) throw this._exception = E.error || new Oa("Unknown HTTP exception."), this._exception; - if (!E.response) throw this._exception = new Oa("Missing HTTP response."), this._exception; - E.response.json !== ga && (this._json = E.response.json, this.getJSON = function() { - return K._json; + if (C.isError) throw this._exception = C.error || new Wa("Unknown HTTP exception."), this._exception; + if (!C.response) throw this._exception = new Wa("Missing HTTP response."), this._exception; + C.response.json !== da && (this._json = C.response.json, this.getJSON = function() { + return M._json; }); - I = E.response.content || Qc("string" === typeof E.response.body ? E.response.body : JSON.stringify(this._json)); - this._buffer = new bf(I); - this._buffer.read(k, n, q); + B = C.response.content || Qc("string" === typeof C.response.body ? C.response.body : JSON.stringify(this._json)); + this._buffer = new Xe(B); + this._buffer.read(l, n, q); } - }, K); + }, M); }, timeout: function() { q.timeout(); }, - error: function(k) { - q.error(k); + error: function(l) { + q.error(l); } }); - }, K); + }, M); } - K = this; - H(q, function() { + M = this; + t(q, function() { if (this._exception) throw this._exception; if (this._timedout) q.timeout(); else { if (this._aborted) return new Uint8Array(0); - this._buffer ? this._buffer.read(k, n, q) : this._out.close(n, { - result: function(k) { - E(k); + this._buffer ? this._buffer.read(l, n, q) : this._out.close(n, { + result: function(l) { + C(l); }, timeout: function() { q.timeout(); }, - error: function(k) { - q.error(k); + error: function(l) { + q.error(l); } }); } - }, K); + }, M); } }); - Gd = fa.Class.create({ - init: function(k, n) { + Dd = ha.Class.create({ + init: function(l, n) { Object.defineProperties(this, { _httpLocation: { - value: k, + value: l, writable: !1, enumerable: !1, configurable: !1 @@ -5039,12 +5034,12 @@ v7AA.H22 = function() { } }); }, - setTimeout: function(k) { - this._timeout = k; + setTimeout: function(l) { + this._timeout = l; }, openConnection: function() { var q; - q = new k(this._httpLocation, this._timeout); + q = new l(this._httpLocation, this._timeout); return { input: new n(q), output: q @@ -5053,11 +5048,11 @@ v7AA.H22 = function() { }); }()); (function() { - var k, n; - k = Fc.extend({ + var l, n; + l = Gc.extend({ init: function() { - var k; - k = { + var l; + l = { _buffer: { value: new Uint8Array(), writable: !0, @@ -5065,61 +5060,61 @@ v7AA.H22 = function() { configurable: !1 } }; - Object.defineProperties(this, k); + Object.defineProperties(this, l); }, setTimeout: function() {}, - getResponse: function(k, n) { + getResponse: function(l, n) { n.result({ success: !1, content: null, - errorHttpCode: ga, - errorSubCode: ga + errorHttpCode: da, + errorSubCode: da }); }, abort: function() {}, - close: function(k, n) { + close: function(l, n) { n.result(!0); }, - write: function(k, n, q, E, K) { - var I, t; + write: function(l, n, q, C, M) { + var B, L; try { if (0 > n) throw new RangeError("Offset cannot be negative."); if (0 > q) throw new RangeError("Length cannot be negative."); - if (n + q > k.length) throw new RangeError("Offset plus length cannot be greater than the array length."); - I = k.subarray(n, q); - t = new Uint8Array(this._buffer.length + I.length); - t.set(this._buffer); - t.set(I, this._buffer.length); - this._buffer = t; - K.result(I.length); - } catch (Ha) { - K.error(Ha); - } - }, - flush: function(k, n) { + if (n + q > l.length) throw new RangeError("Offset plus length cannot be greater than the array length."); + B = l.subarray(n, q); + L = new Uint8Array(this._buffer.length + B.length); + L.set(this._buffer); + L.set(B, this._buffer.length); + this._buffer = L; + M.result(B.length); + } catch (Aa) { + M.error(Aa); + } + }, + flush: function(l, n) { n.result(!0); }, request: function() { return this._buffer; } }); - n = kd.extend({ + n = jd.extend({ init: function() {}, abort: function() {}, close: function() {}, mark: function() {}, reset: function() {}, markSupported: function() {}, - read: function(k, n, q) { + read: function(l, n, q) { q.result(new Uint8Array(16)); } }); - Hd = fa.Class.create({ + Ed = ha.Class.create({ init: function() { var q; q = { output: { - value: new k(), + value: new l(), writable: !1, enumerable: !1, configurable: !1 @@ -5145,30 +5140,30 @@ v7AA.H22 = function() { } }); }()); - ae = function(k, n, q) { - function I(k) { + Xd = function(l, n, q) { + function B(l) { var n, q; - k = new ef(Ia(k, "utf-8")); + l = new $e(Ra(l, "utf-8")); n = []; - for (q = k.nextValue(); q !== ga;) n.push(q), q = k.nextValue(); + for (q = l.nextValue(); q !== da;) n.push(q), q = l.nextValue(); return n; - }(function(k, n, K) { - k.read(-1, n, { - result: function(k) { - k && k.length ? K(null, k) : K(null, null); + }(function(l, n, M) { + l.read(-1, n, { + result: function(l) { + l && l.length ? M(null, l) : M(null, null); }, timeout: function() { q.timeout(); }, - error: function(k) { - K(k, null); + error: function(l) { + M(l, null); } }); - }(k, n, function(n, E) { - n ? q.error(n) : E ? k.getJSON !== ga && "function" === typeof k.getJSON ? q.result(k.getJSON()) : q.result(I(E)) : q.result(null); + }(l, n, function(n, C) { + n ? q.error(n) : C ? l.getJSON !== da && "function" === typeof l.getJSON ? q.result(l.getJSON()) : q.result(B(C)) : q.result(null); })); }; - kb = { + mb = { SYMMETRIC_WRAPPED: "SYMMETRIC_WRAPPED", ASYMMETRIC_WRAPPED: "ASYMMETRIC_WRAPPED", DIFFIE_HELLMAN: "DIFFIE_HELLMAN", @@ -5176,13 +5171,13 @@ v7AA.H22 = function() { JWK_LADDER: "JWK_LADDER", AUTHENTICATED_DH: "AUTHENTICATED_DH" }; - Object.freeze(kb); + Object.freeze(mb); (function() { - kc = fa.Class.create({ - init: function(k) { + jc = ha.Class.create({ + init: function(l) { Object.defineProperties(this, { keyExchangeScheme: { - value: k, + value: l, writable: !1, configurable: !1 } @@ -5190,38 +5185,38 @@ v7AA.H22 = function() { }, getKeydata: function() {}, toJSON: function() { - var k; - k = {}; - k.scheme = this.keyExchangeScheme; - k.keydata = this.getKeydata(); - return k; + var l; + l = {}; + l.scheme = this.keyExchangeScheme; + l.keydata = this.getKeydata(); + return l; }, - equals: function(k) { - return this === k ? !0 : k instanceof kc ? this.keyExchangeScheme == k.keyExchangeScheme : !1; + equals: function(l) { + return this === l ? !0 : l instanceof jc ? this.keyExchangeScheme == l.keyExchangeScheme : !1; }, uniqueKey: function() { return this.keyExchangeScheme; } }); - be = function(q, I, t) { - n(t, function() { - var n, J, E; - n = I.scheme; - J = I.keydata; - if (!n || !J || "object" !== typeof J) throw new aa(k.JSON_PARSE_ERROR, "keyrequestdata " + JSON.stringify(I)); - if (!kb[n]) throw new Ga(k.UNIDENTIFIED_KEYX_SCHEME, n); - E = q.getKeyExchangeFactory(n); - if (!E) throw new Ga(k.KEYX_FACTORY_NOT_FOUND, n); - E.createRequestData(q, J, t); + Yd = function(q, B, L) { + n(L, function() { + var n, t, C; + n = B.scheme; + t = B.keydata; + if (!n || !t || "object" !== typeof t) throw new ba(l.JSON_PARSE_ERROR, "keyrequestdata " + JSON.stringify(B)); + if (!mb[n]) throw new Ha(l.UNIDENTIFIED_KEYX_SCHEME, n); + C = q.getKeyExchangeFactory(n); + if (!C) throw new Ha(l.KEYX_FACTORY_NOT_FOUND, n); + C.createRequestData(q, t, L); }); }; }()); (function() { - lc = fa.Class.create({ - init: function(k, n) { + kc = ha.Class.create({ + init: function(l, n) { Object.defineProperties(this, { masterToken: { - value: k, + value: l, writable: !1, configurable: !1 }, @@ -5234,39 +5229,39 @@ v7AA.H22 = function() { }, getKeydata: function() {}, toJSON: function() { - var k; - k = {}; - k.mastertoken = this.masterToken; - k.scheme = this.keyExchangeScheme; - k.keydata = this.getKeydata(); - return k; + var l; + l = {}; + l.mastertoken = this.masterToken; + l.scheme = this.keyExchangeScheme; + l.keydata = this.getKeydata(); + return l; }, - equals: function(k) { - return this === k ? !0 : k instanceof lc ? this.masterToken.equals(k.masterToken) && this.keyExchangeScheme == k.keyExchangeScheme : !1; + equals: function(l) { + return this === l ? !0 : l instanceof kc ? this.masterToken.equals(l.masterToken) && this.keyExchangeScheme == l.keyExchangeScheme : !1; }, uniqueKey: function() { return this.masterToken.uniqueKey() + ":" + this.keyExchangeScheme; } }); - ce = function(q, I, t) { + Zd = function(q, B, t) { n(t, function() { - var J, L, E; - J = I.mastertoken; - L = I.scheme; - E = I.keydata; - if (!L || !J || "object" !== typeof J || !E || "object" !== typeof E) throw new aa(k.JSON_PARSE_ERROR, "keyresponsedata " + JSON.stringify(I)); - if (!kb[L]) throw new Ga(k.UNIDENTIFIED_KEYX_SCHEME, L); - Rb(q, J, { - result: function(K) { + var L, J, C; + L = B.mastertoken; + J = B.scheme; + C = B.keydata; + if (!J || !L || "object" !== typeof L || !C || "object" !== typeof C) throw new ba(l.JSON_PARSE_ERROR, "keyresponsedata " + JSON.stringify(B)); + if (!mb[J]) throw new Ha(l.UNIDENTIFIED_KEYX_SCHEME, J); + Rb(q, L, { + result: function(M) { n(t, function() { var n; - n = q.getKeyExchangeFactory(L); - if (!n) throw new Ga(k.KEYX_FACTORY_NOT_FOUND, L); - return n.createResponseData(q, K, E); + n = q.getKeyExchangeFactory(J); + if (!n) throw new Ha(l.KEYX_FACTORY_NOT_FOUND, J); + return n.createResponseData(q, M, C); }); }, - error: function(k) { - t.error(k); + error: function(l) { + t.error(l); } }); }); @@ -5274,11 +5269,11 @@ v7AA.H22 = function() { }()); (function() { var q; - q = fa.Class.create({ - init: function(k, n) { + q = ha.Class.create({ + init: function(l, n) { Object.defineProperties(this, { keyResponseData: { - value: k, + value: l, writable: !1, configurable: !1 }, @@ -5290,122 +5285,122 @@ v7AA.H22 = function() { }); } }); - qb = fa.Class.create({ - init: function(k) { + pb = ha.Class.create({ + init: function(l) { Object.defineProperties(this, { scheme: { - value: k, + value: l, writable: !1, configurable: !1 } }); }, - createRequestData: function(k, n, q) {}, - createResponseData: function(k, n, q) {}, - generateResponse: function(k, n, q, t) {}, - getCryptoContext: function(k, n, q, t, E) {}, + createRequestData: function(l, n, q) {}, + createResponseData: function(l, n, q) {}, + generateResponse: function(l, n, q, t) {}, + getCryptoContext: function(l, n, q, t, C) {}, generateSessionKeys: function(q, t) { n(t, function() { - var n, I; + var n, B; n = new Uint8Array(16); - I = new Uint8Array(32); + B = new Uint8Array(32); q.getRandom().nextBytes(n); - q.getRandom().nextBytes(I); - ob(n, jb, Hb, { + q.getRandom().nextBytes(B); + Ab(n, qb, Hb, { result: function(n) { - ob(I, sb, Qb, { - result: function(k) { + Ab(B, rb, Qb, { + result: function(l) { t.result({ encryptionKey: n, - hmacKey: k + hmacKey: l }); }, error: function(n) { - t.error(new P(k.SESSION_KEY_CREATION_FAILURE, null, n)); + t.error(new R(l.SESSION_KEY_CREATION_FAILURE, null, n)); } }); }, error: function(n) { - t.error(new P(k.SESSION_KEY_CREATION_FAILURE, null, n)); + t.error(new R(l.SESSION_KEY_CREATION_FAILURE, null, n)); } }); }); }, - importSessionKeys: function(k, n, q) { - ob(k, jb, Hb, { - result: function(k) { - ob(n, sb, Qb, { + importSessionKeys: function(l, n, q) { + Ab(l, qb, Hb, { + result: function(l) { + Ab(n, rb, Qb, { result: function(n) { q.result({ - encryptionKey: k, + encryptionKey: l, hmacKey: n }); }, - error: function(k) { - q.error(k); + error: function(l) { + q.error(l); } }); }, - error: function(k) { - q.error(k); + error: function(l) { + q.error(l); } }); } }); - qb.KeyExchangeData = q; + pb.KeyExchangeData = q; }()); (function() { - var t, J, Q; + var B, t, V; - function q(q, E, K, I, J) { - n(J, function() { - var qa, L; - switch (E) { - case t.PSK: - qa = new tb(I), L = q.getEntityAuthenticationFactory(Fa.PSK); - if (!L) throw new Ga(k.UNSUPPORTED_KEYX_MECHANISM, E); - qa = L.getCryptoContext(q, qa); - return new Ab(q, Bb.A128KW, rb, ga); - case t.MGK: - qa = new lb(I); - L = q.getEntityAuthenticationFactory(Fa.MGK); - if (!L) throw new Ga(k.UNSUPPORTED_KEYX_MECHANISM, E); - qa = L.getCryptoContext(q, qa); - return new Ab(q, Bb.A128KW, rb, ga); - case t.WRAP: - qa = q.getMslCryptoContext(); - qa.unwrap(K, yb, Ib, { - result: function(f) { - n(J, function() { - return new Ab(q, Bb.A128KW, rb, f); + function q(q, C, M, t, L) { + n(L, function() { + var pa, J; + switch (C) { + case B.PSK: + pa = new sb(t), J = q.getEntityAuthenticationFactory(Fa.PSK); + if (!J) throw new Ha(l.UNSUPPORTED_KEYX_MECHANISM, C); + pa = J.getCryptoContext(q, pa); + return new Cb(q, Db.A128KW, vb, da); + case B.MGK: + pa = new ob(t); + J = q.getEntityAuthenticationFactory(Fa.MGK); + if (!J) throw new Ha(l.UNSUPPORTED_KEYX_MECHANISM, C); + pa = J.getCryptoContext(q, pa); + return new Cb(q, Db.A128KW, vb, da); + case B.WRAP: + pa = q.getMslCryptoContext(); + pa.unwrap(M, zb, Ib, { + result: function(g) { + n(L, function() { + return new Cb(q, Db.A128KW, vb, g); }); }, - error: J.error + error: L.error }); break; default: - throw new Ga(k.UNSUPPORTED_KEYX_MECHANISM, E); + throw new Ha(l.UNSUPPORTED_KEYX_MECHANISM, C); } }); } - t = { + B = { PSK: "PSK", MGK: "MGK", WRAP: "WRAP" }; - J = ld = kc.extend({ - init: function E(k, n) { - E.base.call(this, kb.JWE_LADDER); - switch (k) { - case t.WRAP: - if (!n) throw new Y("Previous wrapping key based key exchange requires the previous wrapping key data and ID."); + t = kd = jc.extend({ + init: function C(l, n) { + C.base.call(this, mb.JWE_LADDER); + switch (l) { + case B.WRAP: + if (!n) throw new ca("Previous wrapping key based key exchange requires the previous wrapping key data and ID."); break; default: n = null; } Object.defineProperties(this, { mechanism: { - value: k, + value: l, writable: !1, configurable: !1 }, @@ -5417,25 +5412,25 @@ v7AA.H22 = function() { }); }, getKeydata: function() { - var k; - k = {}; - k.mechanism = this.mechanism; - this.wrapdata && (k.wrapdata = ma(this.wrapdata)); - return k; + var l; + l = {}; + l.mechanism = this.mechanism; + this.wrapdata && (l.wrapdata = ka(this.wrapdata)); + return l; }, - equals: function K(k) { - return k === this ? !0 : k instanceof ld ? K.base.call(this, k) && this.mechanism == k.mechanism && Wa(this.wrapdata, k.wrapdata) : !1; + equals: function M(l) { + return l === this ? !0 : l instanceof kd ? M.base.call(this, l) && this.mechanism == l.mechanism && Xa(this.wrapdata, l.wrapdata) : !1; }, - uniqueKey: function La() { - var k; - k = La.base.call(this) + ":" + this.mechanism; - this.wrapdata && (k += ":" + ib(this.wrapdata)); - return k; + uniqueKey: function Ka() { + var l; + l = Ka.base.call(this) + ":" + this.mechanism; + this.wrapdata && (l += ":" + eb(this.wrapdata)); + return l; } }); - Q = ee = lc.extend({ - init: function qa(k, n, f, c, a) { - qa.base.call(this, k, kb.JWE_LADDER); + V = ae = kc.extend({ + init: function pa(l, n, g, d, a) { + pa.base.call(this, l, mb.JWE_LADDER); Object.defineProperties(this, { wrapKey: { value: n, @@ -5443,12 +5438,12 @@ v7AA.H22 = function() { configurable: !1 }, wrapdata: { - value: f, + value: g, writable: !1, configurable: !1 }, encryptionKey: { - value: c, + value: d, writable: !1, configurable: !1 }, @@ -5460,110 +5455,110 @@ v7AA.H22 = function() { }); }, getKeydata: function() { - var k; - k = {}; - k.wrapkey = ma(this.wrapKey); - k.wrapdata = ma(this.wrapdata); - k.encryptionkey = ma(this.encryptionKey); - k.hmackey = ma(this.hmacKey); - return k; + var l; + l = {}; + l.wrapkey = ka(this.wrapKey); + l.wrapdata = ka(this.wrapdata); + l.encryptionkey = ka(this.encryptionKey); + l.hmackey = ka(this.hmacKey); + return l; }, - equals: function Ha(k) { - return this === k ? !0 : k instanceof ee ? Ha.base.call(this, k) && Wa(this.wrapKey, k.wrapKey) && Wa(this.wrapdata, k.wrapdata) && Wa(this.encryptionKey, k.encryptionKey) && Wa(this.hmacKey, k.hmacKey) : !1; + equals: function Aa(l) { + return this === l ? !0 : l instanceof ae ? Aa.base.call(this, l) && Xa(this.wrapKey, l.wrapKey) && Xa(this.wrapdata, l.wrapdata) && Xa(this.encryptionKey, l.encryptionKey) && Xa(this.hmacKey, l.hmacKey) : !1; }, - uniqueKey: function va() { - return va.base.call(this) + ":" + ib(this.wrapKey) + ":" + ib(this.wrapdata) + ":" + ib(this.encryptionKey) + ":" + ib(this.hmacKey); + uniqueKey: function sa() { + return sa.base.call(this) + ":" + eb(this.wrapKey) + ":" + eb(this.wrapdata) + ":" + eb(this.encryptionKey) + ":" + eb(this.hmacKey); } }); - de = qb.extend({ - init: function f(c) { - f.base.call(this, kb.JWE_LADDER); + $d = pb.extend({ + init: function g(d) { + g.base.call(this, mb.JWE_LADDER); Object.defineProperties(this, { repository: { - value: c, + value: d, writable: !1, enumerable: !1, configurable: !1 } }); }, - createRequestData: function(f, c, a) { + createRequestData: function(g, d, a) { n(a, function() { - var a, d, h; - a = c.mechanism; - d = c.wrapdata; - if (!a || a == t.WRAP && (!d || "string" !== typeof d)) throw new aa(k.JSON_PARSE_ERROR, "keydata " + JSON.stringify(c)); - if (!t[a]) throw new Ga(k.UNIDENTIFIED_KEYX_MECHANISM, a); + var a, c, h; + a = d.mechanism; + c = d.wrapdata; + if (!a || a == B.WRAP && (!c || "string" !== typeof c)) throw new ba(l.JSON_PARSE_ERROR, "keydata " + JSON.stringify(d)); + if (!B[a]) throw new Ha(l.UNIDENTIFIED_KEYX_MECHANISM, a); switch (a) { - case t.WRAP: + case B.WRAP: try { - h = ra(d); - } catch (l) { - throw new Ga(k.KEYX_WRAPPING_KEY_MISSING, "keydata " + c.toString()); + h = oa(c); + } catch (k) { + throw new Ha(l.KEYX_WRAPPING_KEY_MISSING, "keydata " + d.toString()); } - if (null == h || 0 == h.length) throw new Ga(k.KEYX_WRAPPING_KEY_MISSING, "keydata " + c.toString()); + if (null == h || 0 == h.length) throw new Ha(l.KEYX_WRAPPING_KEY_MISSING, "keydata " + d.toString()); break; default: h = null; } - return new J(a, h); + return new t(a, h); }); }, - createResponseData: function(f, c, a) { - var b, d, h, l, g, m, p; - f = a.wrapkey; + createResponseData: function(g, d, a) { + var b, c, h, k, f, p, m; + g = a.wrapkey; b = a.wrapdata; - d = a.encryptionkey; + c = a.encryptionkey; h = a.hmackey; - if (!(f && "string" === typeof f && b && "string" === typeof b && d && "string" === typeof d && h) || "string" !== typeof h) throw new aa(k.JSON_PARSE_ERROR, "keydata " + JSON.stringify(a)); + if (!(g && "string" === typeof g && b && "string" === typeof b && c && "string" === typeof c && h) || "string" !== typeof h) throw new ba(l.JSON_PARSE_ERROR, "keydata " + JSON.stringify(a)); try { - l = ra(f); - g = ra(b); + k = oa(g); + f = oa(b); } catch (r) { - throw new P(k.INVALID_SYMMETRIC_KEY, "keydata " + JSON.stringify(a), r); + throw new R(l.INVALID_SYMMETRIC_KEY, "keydata " + JSON.stringify(a), r); } try { - m = ra(d); + p = oa(c); } catch (r) { - throw new P(k.INVALID_ENCRYPTION_KEY, "keydata " + JSON.stringify(a), r); + throw new R(l.INVALID_ENCRYPTION_KEY, "keydata " + JSON.stringify(a), r); } try { - p = ra(h); + m = oa(h); } catch (r) { - throw new P(k.INVALID_HMAC_KEY, "keydata " + JSON.stringify(a), r); + throw new R(l.INVALID_HMAC_KEY, "keydata " + JSON.stringify(a), r); } - return new Q(c, l, g, m, p); + return new V(d, k, f, p, m); }, - generateResponse: function(f, c, a, b) { - var m, p; + generateResponse: function(g, d, a, b) { + var p, m; - function d(a, c, g) { - m.generateSessionKeys(f, { - result: function(p) { + function c(a, f, c) { + p.generateSessionKeys(g, { + result: function(d) { n(b, function() { - h(a, c, g, p.encryptionKey, p.hmacKey); - }, m); + h(a, f, c, d.encryptionKey, d.hmacKey); + }, p); }, error: function(a) { n(b, function() { - a instanceof A && a.setEntity(p); + a instanceof G && a.setEntity(m); throw a; }); } }); } - function h(a, g, d, h, w) { + function h(a, f, c, h, y) { n(b, function() { - q(f, c.mechanism, c.wrapdata, a, { + q(g, d.mechanism, d.wrapdata, a, { result: function(a) { - a.wrap(g, { + a.wrap(f, { result: function(a) { - l(g, d, h, w, a); + k(f, c, h, y, a); }, error: function(a) { n(b, function() { - a instanceof A && a.setEntity(p); + a instanceof G && a.setEntity(m); throw a; }); } @@ -5571,27 +5566,27 @@ v7AA.H22 = function() { }, error: function(a) { n(b, function() { - a instanceof A && a.setEntity(p); + a instanceof G && a.setEntity(m); throw a; }); } }); - }, m); + }, p); } - function l(a, c, d, h, l) { + function k(a, c, d, h, k) { n(b, function() { - var m; - m = new Ab(f, Bb.A128KW, rb, a); - m.wrap(d, { + var p; + p = new Cb(g, Db.A128KW, vb, a); + p.wrap(d, { result: function(a) { - m.wrap(h, { + p.wrap(h, { result: function(b) { - g(c, l, d, a, h, b); + f(c, k, d, a, h, b); }, error: function(a) { n(b, function() { - a instanceof A && a.setEntity(p); + a instanceof G && a.setEntity(m); throw a; }); } @@ -5599,221 +5594,221 @@ v7AA.H22 = function() { }, error: function(a) { n(b, function() { - a instanceof A && a.setEntity(p); + a instanceof G && a.setEntity(m); throw a; }); } }); - }, m); + }, p); } - function g(c, g, d, h, l, G) { + function f(f, c, d, h, k, w) { n(b, function() { var r; - r = f.getTokenFactory(); - p ? r.renewMasterToken(f, p, d, l, { + r = g.getTokenFactory(); + m ? r.renewMasterToken(g, m, d, k, { result: function(a) { n(b, function() { - var p, d; - p = new $a(f, a); - d = new Q(a, g, c, h, G); - return new qb.KeyExchangeData(d, p, b); - }, m); + var d, m; + d = new gb(g, a); + m = new V(a, c, f, h, w); + return new pb.KeyExchangeData(m, d, b); + }, p); }, error: function(a) { n(b, function() { - a instanceof A && a.setEntity(p); + a instanceof G && a.setEntity(m); throw a; }); } - }) : r.createMasterToken(f, a, d, l, { + }) : r.createMasterToken(g, a, d, k, { result: function(a) { n(b, function() { - var p, d; - p = new $a(f, a); - d = new Q(a, g, c, h, G); - return new qb.KeyExchangeData(d, p, b); - }, m); + var d, m; + d = new gb(g, a); + m = new V(a, c, f, h, w); + return new pb.KeyExchangeData(m, d, b); + }, p); }, error: b.error }); - }, m); + }, p); } - m = this; + p = this; n(b, function() { - var g, h; - if (!(c instanceof J)) throw new Y("Key request data " + JSON.stringify(c) + " was not created by this factory."); - g = a; - if (a instanceof eb) { - if (!a.isVerified()) throw new Pb(k.MASTERTOKEN_UNTRUSTED, a); - p = a; - g = a.identity; + var f, h; + if (!(d instanceof t)) throw new ca("Key request data " + JSON.stringify(d) + " was not created by this factory."); + f = a; + if (a instanceof fb) { + if (!a.isVerified()) throw new Pb(l.MASTERTOKEN_UNTRUSTED, a); + m = a; + f = a.identity; } h = new Uint8Array(16); - f.getRandom().nextBytes(h); - ob(h, yb, Ib, { + g.getRandom().nextBytes(h); + Ab(h, zb, Ib, { result: function(a) { n(b, function() { - f.getMslCryptoContext().wrap(a, { + g.getMslCryptoContext().wrap(a, { result: function(b) { - d(g, a, b); + c(f, a, b); }, error: function(a) { n(b, function() { - a instanceof A && a.setEntity(p); + a instanceof G && a.setEntity(m); throw a; - }, m); + }, p); } }); - }, m); + }, p); }, error: function(a) { n(b, function() { - throw new P(k.WRAP_KEY_CREATION_FAILURE, null, a).setEntity(p); - }, m); + throw new R(l.WRAP_KEY_CREATION_FAILURE, null, a).setEntity(m); + }, p); } }); - }, m); + }, p); }, - getCryptoContext: function(f, c, a, b, d) { - var l; + getCryptoContext: function(g, d, a, b, c) { + var k; - function h(a, b, c, r, h) { - n(d, function() { - var g; - g = new Ab(f, Bb.A128KW, rb, h); - g.unwrap(b.encryptionKey, jb, Hb, { - result: function(p) { - g.unwrap(b.hmacKey, sb, Qb, { + function h(a, b, d, r, h) { + n(c, function() { + var f; + f = new Cb(g, Db.A128KW, vb, h); + f.unwrap(b.encryptionKey, qb, Hb, { + result: function(m) { + f.unwrap(b.hmacKey, rb, Qb, { result: function(a) { - n(d, function() { - this.repository.addCryptoContext(b.wrapdata, g); - this.repository.removeCryptoContext(c); - return new $a(f, b.masterToken, r, p, a); - }, l); + n(c, function() { + this.repository.addCryptoContext(b.wrapdata, f); + this.repository.removeCryptoContext(d); + return new gb(g, b.masterToken, r, m, a); + }, k); }, - error: function(b) { - n(d, function() { - b instanceof A && b.setEntity(a); - throw b; + error: function(f) { + n(c, function() { + f instanceof G && f.setEntity(a); + throw f; }); } }); }, - error: function(b) { - n(d, function() { - b instanceof A && b.setEntity(a); - throw b; + error: function(f) { + n(c, function() { + f instanceof G && f.setEntity(a); + throw f; }); } }); - }, l); + }, k); } - l = this; - n(d, function() { - var b, m; - if (!(c instanceof J)) throw new Y("Key request data " + JSON.stringify(c) + " was not created by this factory."); - if (!(a instanceof Q)) throw new Y("Key response data " + JSON.stringify(a) + " was not created by this factory."); - b = c.mechanism; - m = c.wrapdata; - f.getEntityAuthenticationData(null, { - result: function(c) { - n(d, function() { - var g, p, l; - g = c.getIdentity(); - switch (b) { - case t.PSK: - p = new tb(g); - l = f.getEntityAuthenticationFactory(Fa.PSK); - if (!l) throw new Ga(k.UNSUPPORTED_KEYX_MECHANISM, b).setEntity(c); - p = l.getCryptoContext(f, p); - p = new Ab(f, Bb.A128KW, rb, ga); - break; - case t.MGK: - p = new lb(g); - l = f.getEntityAuthenticationFactory(Fa.MGK); - if (!l) throw new Ga(k.UNSUPPORTED_KEYX_MECHANISM, b).setEntity(c); - p = l.getCryptoContext(f, p); - p = new Ab(f, Bb.A128KW, rb, p.wrapKey); - break; - case t.WRAP: - p = this.repository.getCryptoContext(m); - if (!p) throw new Ga(k.KEYX_WRAPPING_KEY_MISSING, ma(m)).setEntity(c); + k = this; + n(c, function() { + var f, b; + if (!(d instanceof t)) throw new ca("Key request data " + JSON.stringify(d) + " was not created by this factory."); + if (!(a instanceof V)) throw new ca("Key response data " + JSON.stringify(a) + " was not created by this factory."); + f = d.mechanism; + b = d.wrapdata; + g.getEntityAuthenticationData(null, { + result: function(d) { + n(c, function() { + var m, p, k; + m = d.getIdentity(); + switch (f) { + case B.PSK: + p = new sb(m); + k = g.getEntityAuthenticationFactory(Fa.PSK); + if (!k) throw new Ha(l.UNSUPPORTED_KEYX_MECHANISM, f).setEntity(d); + p = k.getCryptoContext(g, p); + p = new Cb(g, Db.A128KW, vb, da); + break; + case B.MGK: + p = new ob(m); + k = g.getEntityAuthenticationFactory(Fa.MGK); + if (!k) throw new Ha(l.UNSUPPORTED_KEYX_MECHANISM, f).setEntity(d); + p = k.getCryptoContext(g, p); + p = new Cb(g, Db.A128KW, vb, p.wrapKey); + break; + case B.WRAP: + p = this.repository.getCryptoContext(b); + if (!p) throw new Ha(l.KEYX_WRAPPING_KEY_MISSING, ka(b)).setEntity(d); break; default: - throw new Ga(k.UNSUPPORTED_KEYX_MECHANISM, b).setEntity(c); + throw new Ha(l.UNSUPPORTED_KEYX_MECHANISM, f).setEntity(d); } - p.unwrap(a.wrapKey, yb, Ib, { - result: function(b) { - h(c, a, m, g, b); + p.unwrap(a.wrapKey, zb, Ib, { + result: function(f) { + h(d, a, b, m, f); }, error: function(a) { - n(d, function() { - a instanceof A && a.setEntity(c); + n(c, function() { + a instanceof G && a.setEntity(d); throw a; }); } }); - }, l); + }, k); }, - error: d.error + error: c.error }); - }, l); + }, k); } }); }()); (function() { - var t, J, Q, L; - - function q(q, K, I, J, Q) { - n(Q, function() { - var E, f; - switch (K) { - case t.PSK: - E = new tb(J), f = q.getEntityAuthenticationFactory(Fa.PSK); - if (!f) throw new Ga(k.UNSUPPORTED_KEYX_MECHANISM, K); - E = f.getCryptoContext(q, E); - return new L(ga); - case t.MGK: - E = new lb(J); - f = q.getEntityAuthenticationFactory(Fa.MGK); - if (!f) throw new Ga(k.UNSUPPORTED_KEYX_MECHANISM, K); - E = f.getCryptoContext(q, E); - return new L(ga); - case t.WRAP: - E = q.getMslCryptoContext(); - E.unwrap(I, yb, Ib, { - result: function(c) { - n(Q, function() { - return new L(c); + var B, t, V, J; + + function q(q, M, t, L, V) { + n(V, function() { + var C, g; + switch (M) { + case B.PSK: + C = new sb(L), g = q.getEntityAuthenticationFactory(Fa.PSK); + if (!g) throw new Ha(l.UNSUPPORTED_KEYX_MECHANISM, M); + C = g.getCryptoContext(q, C); + return new J(da); + case B.MGK: + C = new ob(L); + g = q.getEntityAuthenticationFactory(Fa.MGK); + if (!g) throw new Ha(l.UNSUPPORTED_KEYX_MECHANISM, M); + C = g.getCryptoContext(q, C); + return new J(da); + case B.WRAP: + C = q.getMslCryptoContext(); + C.unwrap(t, zb, Ib, { + result: function(d) { + n(V, function() { + return new J(d); }); }, - error: Q.error + error: V.error }); break; default: - throw new Ga(k.UNSUPPORTED_KEYX_MECHANISM, K); + throw new Ha(l.UNSUPPORTED_KEYX_MECHANISM, M); } }); } - t = { + B = { PSK: "PSK", MGK: "MGK", WRAP: "WRAP" }; - J = Gc = kc.extend({ - init: function K(k, n) { - K.base.call(this, kb.JWK_LADDER); - switch (k) { - case t.WRAP: - if (!n) throw new Y("Previous wrapping key based key exchange requires the previous wrapping key data and ID."); + t = Hc = jc.extend({ + init: function M(l, n) { + M.base.call(this, mb.JWK_LADDER); + switch (l) { + case B.WRAP: + if (!n) throw new ca("Previous wrapping key based key exchange requires the previous wrapping key data and ID."); break; default: n = null; } Object.defineProperties(this, { mechanism: { - value: k, + value: l, writable: !1, configurable: !1 }, @@ -5825,33 +5820,33 @@ v7AA.H22 = function() { }); }, getKeydata: function() { - var k; - k = {}; - k.mechanism = this.mechanism; - this.wrapdata && (k.wrapdata = ma(this.wrapdata)); - return k; + var l; + l = {}; + l.mechanism = this.mechanism; + this.wrapdata && (l.wrapdata = ka(this.wrapdata)); + return l; }, - equals: function La(k) { - return k === this ? !0 : k instanceof Gc ? La.base.call(this, k) && this.mechanism == k.mechanism && Wa(this.wrapdata, k.wrapdata) : !1; + equals: function Ka(l) { + return l === this ? !0 : l instanceof Hc ? Ka.base.call(this, l) && this.mechanism == l.mechanism && Xa(this.wrapdata, l.wrapdata) : !1; }, - uniqueKey: function qa() { - var k; - k = qa.base.call(this) + ":" + this.mechanism; - this.wrapdata && (k += ":" + ib(this.wrapdata)); - return k; + uniqueKey: function pa() { + var l; + l = pa.base.call(this) + ":" + this.mechanism; + this.wrapdata && (l += ":" + eb(this.wrapdata)); + return l; } }); - Q = fe = lc.extend({ - init: function Ha(k, f, c, a, b) { - Ha.base.call(this, k, kb.JWK_LADDER); + V = be = kc.extend({ + init: function Aa(l, g, d, a, b) { + Aa.base.call(this, l, mb.JWK_LADDER); Object.defineProperties(this, { wrapKey: { - value: f, + value: g, writable: !1, configurable: !1 }, wrapdata: { - value: c, + value: d, writable: !1, configurable: !1 }, @@ -5868,50 +5863,50 @@ v7AA.H22 = function() { }); }, getKeydata: function() { - var k; - k = {}; - k.wrapkey = ma(this.wrapKey); - k.wrapdata = ma(this.wrapdata); - k.encryptionkey = ma(this.encryptionKey); - k.hmackey = ma(this.hmacKey); - return k; + var l; + l = {}; + l.wrapkey = ka(this.wrapKey); + l.wrapdata = ka(this.wrapdata); + l.encryptionkey = ka(this.encryptionKey); + l.hmackey = ka(this.hmacKey); + return l; }, - equals: function va(f) { - return this === f ? !0 : f instanceof fe ? va.base.call(this, f) && Wa(this.wrapKey, f.wrapKey) && Wa(this.wrapdata, f.wrapdata) && Wa(this.encryptionKey, f.encryptionKey) && Wa(this.hmacKey, f.hmacKey) : !1; + equals: function sa(g) { + return this === g ? !0 : g instanceof be ? sa.base.call(this, g) && Xa(this.wrapKey, g.wrapKey) && Xa(this.wrapdata, g.wrapdata) && Xa(this.encryptionKey, g.encryptionKey) && Xa(this.hmacKey, g.hmacKey) : !1; }, - uniqueKey: function f() { - return f.base.call(this) + ":" + ib(this.wrapKey) + ":" + ib(this.wrapdata) + ":" + ib(this.encryptionKey) + ":" + ib(this.hmacKey); + uniqueKey: function g() { + return g.base.call(this) + ":" + eb(this.wrapKey) + ":" + eb(this.wrapdata) + ":" + eb(this.encryptionKey) + ":" + eb(this.hmacKey); } }); - L = bc.extend({ - init: function(f) { - f && f.rawKey && (f = f.rawKey); + J = bc.extend({ + init: function(g) { + g && g.rawKey && (g = g.rawKey); Object.defineProperties(this, { _wrapKey: { - value: f, + value: g, writable: !1, enumerable: !1, configurable: !1 } }); }, - encrypt: function(f, c) { - c.error(new P(k.ENCRYPT_NOT_SUPPORTED)); + encrypt: function(g, d) { + d.error(new R(l.ENCRYPT_NOT_SUPPORTED)); }, - decrypt: function(f, c) { - c.error(new P(k.DECRYPT_NOT_SUPPORTED)); + decrypt: function(g, d) { + d.error(new R(l.DECRYPT_NOT_SUPPORTED)); }, - wrap: function(f, c) { - n(c, function() { - ya.wrapKey("jwk", f.rawKey, this._wrapKey, yb).then(function(a) { - c.result(a); + wrap: function(g, d) { + n(d, function() { + xa.wrapKey("jwk", g.rawKey, this._wrapKey, zb).then(function(a) { + d.result(a); }, function(a) { - c.error(new P(k.WRAP_ERROR)); + d.error(new R(l.WRAP_ERROR)); }); }, this); }, - unwrap: function(f, c, a, b) { - function d(a) { + unwrap: function(g, d, a, b) { + function c(a) { n(b, function() { switch (a.type) { case "secret": @@ -5924,28 +5919,28 @@ v7AA.H22 = function() { $b(a, b); break; default: - throw new P(k.UNSUPPORTED_KEY, "type: " + a.type); + throw new R(l.UNSUPPORTED_KEY, "type: " + a.type); } }); } n(b, function() { - ya.unwrapKey("jwk", f, this._wrapKey, yb, c, !1, a).then(function(a) { - d(a); + xa.unwrapKey("jwk", g, this._wrapKey, zb, d, !1, a).then(function(a) { + c(a); }, function(a) { - b.error(new P(k.UNWRAP_ERROR)); + b.error(new R(l.UNWRAP_ERROR)); }); }, this); }, - sign: function(f, c) { - c.error(new P(k.SIGN_NOT_SUPPORTED)); + sign: function(g, d) { + d.error(new R(l.SIGN_NOT_SUPPORTED)); }, - verify: function(f, c, a) { - a.error(new P(k.VERIFY_NOT_SUPPORTED)); + verify: function(g, d, a) { + a.error(new R(l.VERIFY_NOT_SUPPORTED)); } }); - md = qb.extend({ - init: function c(a) { - c.base.call(this, kb.JWK_LADDER); + ld = pb.extend({ + init: function d(a) { + d.base.call(this, mb.JWK_LADDER); Object.defineProperties(this, { repository: { value: a, @@ -5955,303 +5950,303 @@ v7AA.H22 = function() { } }); }, - createRequestData: function(c, a, b) { + createRequestData: function(d, a, b) { n(b, function() { - var b, c, l; + var b, d, k; b = a.mechanism; - c = a.wrapdata; - if (!b || b == t.WRAP && (!c || "string" !== typeof c)) throw new aa(k.JSON_PARSE_ERROR, "keydata " + JSON.stringify(a)); - if (!t[b]) throw new Ga(k.UNIDENTIFIED_KEYX_MECHANISM, b); + d = a.wrapdata; + if (!b || b == B.WRAP && (!d || "string" !== typeof d)) throw new ba(l.JSON_PARSE_ERROR, "keydata " + JSON.stringify(a)); + if (!B[b]) throw new Ha(l.UNIDENTIFIED_KEYX_MECHANISM, b); switch (b) { - case t.WRAP: + case B.WRAP: try { - l = ra(c); - } catch (g) { - throw new Ga(k.KEYX_WRAPPING_KEY_MISSING, "keydata " + a.toString()); + k = oa(d); + } catch (f) { + throw new Ha(l.KEYX_WRAPPING_KEY_MISSING, "keydata " + a.toString()); } - if (null == l || 0 == l.length) throw new Ga(k.KEYX_WRAPPING_KEY_MISSING, "keydata " + a.toString()); + if (null == k || 0 == k.length) throw new Ha(l.KEYX_WRAPPING_KEY_MISSING, "keydata " + a.toString()); break; default: - l = null; + k = null; } - return new J(b, l); + return new t(b, k); }); }, - createResponseData: function(c, a, b) { - var d, h, l, g, m, p, r; - c = b.wrapkey; - d = b.wrapdata; + createResponseData: function(d, a, b) { + var c, h, k, f, p, m, r; + d = b.wrapkey; + c = b.wrapdata; h = b.encryptionkey; - l = b.hmackey; - if (!(c && "string" === typeof c && d && "string" === typeof d && h && "string" === typeof h && l) || "string" !== typeof l) throw new aa(k.JSON_PARSE_ERROR, "keydata " + JSON.stringify(b)); + k = b.hmackey; + if (!(d && "string" === typeof d && c && "string" === typeof c && h && "string" === typeof h && k) || "string" !== typeof k) throw new ba(l.JSON_PARSE_ERROR, "keydata " + JSON.stringify(b)); try { - g = ra(c); - m = ra(d); + f = oa(d); + p = oa(c); } catch (u) { - throw new P(k.INVALID_SYMMETRIC_KEY, "keydata " + JSON.stringify(b), u); + throw new R(l.INVALID_SYMMETRIC_KEY, "keydata " + JSON.stringify(b), u); } try { - p = ra(h); + m = oa(h); } catch (u) { - throw new P(k.INVALID_ENCRYPTION_KEY, "keydata " + JSON.stringify(b), u); + throw new R(l.INVALID_ENCRYPTION_KEY, "keydata " + JSON.stringify(b), u); } try { - r = ra(l); + r = oa(k); } catch (u) { - throw new P(k.INVALID_HMAC_KEY, "keydata " + JSON.stringify(b), u); + throw new R(l.INVALID_HMAC_KEY, "keydata " + JSON.stringify(b), u); } - return new Q(a, g, m, p, r); + return new V(a, f, p, m, r); }, - generateResponse: function(c, a, b, d) { - var p, r; + generateResponse: function(d, a, b, c) { + var m, r; - function h(a, b, g) { - p.generateSessionKeys(c, { - result: function(c) { - n(d, function() { - l(a, b, g, c.encryptionKey, c.hmacKey); - }, p); + function h(a, f, b) { + m.generateSessionKeys(d, { + result: function(d) { + n(c, function() { + k(a, f, b, d.encryptionKey, d.hmacKey); + }, m); }, error: function(a) { - n(d, function() { - a instanceof A && a.setEntity(r); + n(c, function() { + a instanceof G && a.setEntity(r); throw a; }); } }); } - function l(b, m, h, l, G) { - n(d, function() { - q(c, a.mechanism, a.wrapdata, b, { + function k(b, p, k, h, w) { + n(c, function() { + q(d, a.mechanism, a.wrapdata, b, { result: function(a) { - a.wrap(m, { + a.wrap(p, { result: function(a) { - g(m, h, l, G, a); + f(p, k, h, w, a); }, error: function(a) { - n(d, function() { - a instanceof A && a.setEntity(r); + n(c, function() { + a instanceof G && a.setEntity(r); throw a; }); } }); }, error: function(a) { - n(d, function() { - a instanceof A && a.setEntity(r); + n(c, function() { + a instanceof G && a.setEntity(r); throw a; }); } }); - }, p); + }, m); } - function g(a, b, c, g, h) { - n(d, function() { - var p; - p = new L(a); - p.wrap(c, { + function f(a, f, b, d, k) { + n(c, function() { + var m; + m = new J(a); + m.wrap(b, { result: function(a) { - p.wrap(g, { - result: function(p) { - m(b, h, c, a, g, p); + m.wrap(d, { + result: function(c) { + p(f, k, b, a, d, c); }, error: function(a) { - n(d, function() { - a instanceof A && a.setEntity(r); + n(c, function() { + a instanceof G && a.setEntity(r); throw a; }); } }); }, error: function(a) { - n(d, function() { - a instanceof A && a.setEntity(r); + n(c, function() { + a instanceof G && a.setEntity(r); throw a; }); } }); - }, p); + }, m); } - function m(a, g, m, h, l, x) { - n(d, function() { + function p(a, f, p, k, h, D) { + n(c, function() { var u; - u = c.getTokenFactory(); - r ? u.renewMasterToken(c, r, m, l, { + u = d.getTokenFactory(); + r ? u.renewMasterToken(d, r, p, h, { result: function(b) { - n(d, function() { + n(c, function() { var p, m; - p = new $a(c, b); - m = new Q(b, g, a, h, x); - return new qb.KeyExchangeData(m, p, d); - }, p); + p = new gb(d, b); + m = new V(b, f, a, k, D); + return new pb.KeyExchangeData(m, p, c); + }, m); }, error: function(a) { - n(d, function() { - a instanceof A && a.setEntity(r); + n(c, function() { + a instanceof G && a.setEntity(r); throw a; }); } - }) : u.createMasterToken(c, b, m, l, { + }) : u.createMasterToken(d, b, p, h, { result: function(b) { - n(d, function() { + n(c, function() { var p, m; - p = new $a(c, b); - m = new Q(b, g, a, h, x); - return new qb.KeyExchangeData(m, p, d); - }, p); + p = new gb(d, b); + m = new V(b, f, a, k, D); + return new pb.KeyExchangeData(m, p, c); + }, m); }, - error: d.error + error: c.error }); - }, p); + }, m); } - p = this; - n(d, function() { - var g, m; - if (!(a instanceof J)) throw new Y("Key request data " + JSON.stringify(a) + " was not created by this factory."); - g = b; - if (b instanceof eb) { - if (!b.isVerified()) throw new Pb(k.MASTERTOKEN_UNTRUSTED, b); + m = this; + n(c, function() { + var f, p; + if (!(a instanceof t)) throw new ca("Key request data " + JSON.stringify(a) + " was not created by this factory."); + f = b; + if (b instanceof fb) { + if (!b.isVerified()) throw new Pb(l.MASTERTOKEN_UNTRUSTED, b); r = b; - g = b.identity; + f = b.identity; } - m = new Uint8Array(16); - c.getRandom().nextBytes(m); - ob(m, yb, Ib, { + p = new Uint8Array(16); + d.getRandom().nextBytes(p); + Ab(p, zb, Ib, { result: function(a) { - n(d, function() { - c.getMslCryptoContext().wrap(a, { + n(c, function() { + d.getMslCryptoContext().wrap(a, { result: function(b) { - h(g, a, b); + h(f, a, b); }, error: function(a) { - n(d, function() { - a instanceof A && a.setEntity(r); + n(c, function() { + a instanceof G && a.setEntity(r); throw a; - }, p); + }, m); } }); - }, p); + }, m); }, error: function(a) { - n(d, function() { - throw new P(k.WRAP_KEY_CREATION_FAILURE, null, a).setEntity(r); - }, p); + n(c, function() { + throw new R(l.WRAP_KEY_CREATION_FAILURE, null, a).setEntity(r); + }, m); } }); - }, p); + }, m); }, - getCryptoContext: function(c, a, b, d, h) { - var g; + getCryptoContext: function(d, a, b, c, h) { + var f; - function l(a, b, d, u, l) { + function k(a, b, c, k, x) { n(h, function() { var p; - p = new L(l); - p.unwrap(b.encryptionKey, jb, Hb, { + p = new J(x); + p.unwrap(b.encryptionKey, qb, Hb, { result: function(m) { - p.unwrap(b.hmacKey, sb, Qb, { + p.unwrap(b.hmacKey, rb, Qb, { result: function(a) { n(h, function() { this.repository.addCryptoContext(b.wrapdata, p); - this.repository.removeCryptoContext(d); - return new $a(c, b.masterToken, u, m, a); - }, g); + this.repository.removeCryptoContext(c); + return new gb(d, b.masterToken, k, m, a); + }, f); }, - error: function(b) { + error: function(f) { n(h, function() { - b instanceof A && b.setEntity(a); - throw b; + f instanceof G && f.setEntity(a); + throw f; }); } }); }, - error: function(b) { + error: function(f) { n(h, function() { - b instanceof A && b.setEntity(a); - throw b; + f instanceof G && f.setEntity(a); + throw f; }); } }); - }, g); + }, f); } - g = this; + f = this; n(h, function() { - var d, p; - if (!(a instanceof J)) throw new Y("Key request data " + JSON.stringify(a) + " was not created by this factory."); - if (!(b instanceof Q)) throw new Y("Key response data " + JSON.stringify(b) + " was not created by this factory."); - d = a.mechanism; - p = a.wrapdata; - c.getEntityAuthenticationData(null, { + var c, m; + if (!(a instanceof t)) throw new ca("Key request data " + JSON.stringify(a) + " was not created by this factory."); + if (!(b instanceof V)) throw new ca("Key response data " + JSON.stringify(b) + " was not created by this factory."); + c = a.mechanism; + m = a.wrapdata; + d.getEntityAuthenticationData(null, { result: function(a) { n(h, function() { - var g, m, r; - g = a.getIdentity(); - switch (d) { - case t.PSK: - m = new tb(g); - r = c.getEntityAuthenticationFactory(Fa.PSK); - if (!r) throw new Ga(k.UNSUPPORTED_KEYX_MECHANISM, d).setEntity(a); - m = r.getCryptoContext(c, m); - m = new L(m.wrapKey); - break; - case t.MGK: - m = new lb(g); - r = c.getEntityAuthenticationFactory(Fa.MGK); - if (!r) throw new Ga(k.UNSUPPORTED_KEYX_MECHANISM, d).setEntity(a); - m = r.getCryptoContext(c, m); - m = new L(m.wrapKey); - break; - case t.WRAP: - m = this.repository.getCryptoContext(p); - if (!m) throw new Ga(k.KEYX_WRAPPING_KEY_MISSING, ma(p)).setEntity(a); + var f, p, r; + f = a.getIdentity(); + switch (c) { + case B.PSK: + p = new sb(f); + r = d.getEntityAuthenticationFactory(Fa.PSK); + if (!r) throw new Ha(l.UNSUPPORTED_KEYX_MECHANISM, c).setEntity(a); + p = r.getCryptoContext(d, p); + p = new J(p.wrapKey); + break; + case B.MGK: + p = new ob(f); + r = d.getEntityAuthenticationFactory(Fa.MGK); + if (!r) throw new Ha(l.UNSUPPORTED_KEYX_MECHANISM, c).setEntity(a); + p = r.getCryptoContext(d, p); + p = new J(p.wrapKey); + break; + case B.WRAP: + p = this.repository.getCryptoContext(m); + if (!p) throw new Ha(l.KEYX_WRAPPING_KEY_MISSING, ka(m)).setEntity(a); break; default: - throw new Ga(k.UNSUPPORTED_KEYX_MECHANISM, d).setEntity(a); + throw new Ha(l.UNSUPPORTED_KEYX_MECHANISM, c).setEntity(a); } - m.unwrap(b.wrapKey, yb, Ib, { + p.unwrap(b.wrapKey, zb, Ib, { result: function(c) { - l(a, b, p, g, c); + k(a, b, m, f, c); }, - error: function(b) { + error: function(f) { n(h, function() { - b instanceof A && b.setEntity(a); - throw b; + f instanceof G && f.setEntity(a); + throw f; }); } }); - }, g); + }, f); }, error: h.error }); - }, g); + }, f); } }); }()); - ff = fa.Class.create({ - addCryptoContext: function(k, n) {}, - getCryptoContext: function(k) {}, - removeCryptoContext: function(k) {} + af = ha.Class.create({ + addCryptoContext: function(l, n) {}, + getCryptoContext: function(l) {}, + removeCryptoContext: function(l) {} }); (function() { - var t, J, Q, L; + var t, L, V, J; - function q(n, q, I, J, L) { - switch (I) { + function q(n, q, B, L, J) { + switch (B) { case t.JWE_RSA: case t.JWEJS_RSA: - return new Ab(n, Bb.RSA_OAEP, rb, J, L); + return new Cb(n, Db.RSA_OAEP, vb, L, J); case t.JWK_RSA: - return new Ac(n, q, J, L, Bc.WRAP_UNWRAP_OAEP); + return new Bc(n, q, L, J, Cc.WRAP_UNWRAP_OAEP); case t.JWK_RSAES: - return new Ac(n, q, J, L, Bc.WRAP_UNWRAP_PKCS1); + return new Bc(n, q, L, J, Cc.WRAP_UNWRAP_PKCS1); default: - throw new P(k.UNSUPPORTED_KEYX_MECHANISM, I); + throw new R(l.UNSUPPORTED_KEYX_MECHANISM, B); } } - t = Hc = { + t = Ic = { RSA: "RSA", ECC: "ECC", JWE_RSA: "JWE_RSA", @@ -6259,12 +6254,12 @@ v7AA.H22 = function() { JWK_RSA: "JWK_RSA", JWK_RSAES: "JWK_RSAES" }; - J = Vc = kc.extend({ - init: function K(k, n, q, t) { - K.base.call(this, kb.ASYMMETRIC_WRAPPED); + L = Vc = jc.extend({ + init: function M(l, n, q, t) { + M.base.call(this, mb.ASYMMETRIC_WRAPPED); Object.defineProperties(this, { keyPairId: { - value: k, + value: l, writable: !1, configurable: !1 }, @@ -6286,82 +6281,82 @@ v7AA.H22 = function() { }); }, getKeydata: function() { - var k; - k = {}; - k.keypairid = this.keyPairId; - k.mechanism = this.mechanism; - k.publickey = ma(this.publicKey.getEncoded()); - return k; + var l; + l = {}; + l.keypairid = this.keyPairId; + l.mechanism = this.mechanism; + l.publickey = ka(this.publicKey.getEncoded()); + return l; }, - equals: function La(k) { + equals: function Ka(l) { var n; - if (k === this) return !0; - if (!(k instanceof Vc)) return !1; - n = this.privateKey === k.privateKey || this.privateKey && k.privateKey && Wa(this.privateKey.getEncoded(), k.privateKey.getEncoded()); - return La.base.call(this, k) && this.keyPairId == k.keyPairId && this.mechanism == k.mechanism && Wa(this.publicKey.getEncoded(), k.publicKey.getEncoded()) && n; - }, - uniqueKey: function qa() { - var k, n; - k = this.publicKey.getEncoded(); + if (l === this) return !0; + if (!(l instanceof Vc)) return !1; + n = this.privateKey === l.privateKey || this.privateKey && l.privateKey && Xa(this.privateKey.getEncoded(), l.privateKey.getEncoded()); + return Ka.base.call(this, l) && this.keyPairId == l.keyPairId && this.mechanism == l.mechanism && Xa(this.publicKey.getEncoded(), l.publicKey.getEncoded()) && n; + }, + uniqueKey: function pa() { + var l, n; + l = this.publicKey.getEncoded(); n = this.privateKey && this.privateKey.getEncoded(); - k = qa.base.call(this) + ":" + this.keyPairId + ":" + this.mechanism + ":" + ib(k); - n && (k += ":" + ib(n)); - return k; + l = pa.base.call(this) + ":" + this.keyPairId + ":" + this.mechanism + ":" + eb(l); + n && (l += ":" + eb(n)); + return l; } }); - Q = function(q, I) { - n(I, function() { - var n, f, c, a; + V = function(q, B) { + n(B, function() { + var n, g, d, a; n = q.keypairid; - f = q.mechanism; - c = q.publickey; - if (!n || "string" !== typeof n || !f || !c || "string" !== typeof c) throw new aa(k.JSON_PARSE_ERROR, "keydata " + JSON.stringify(q)); - if (!t[f]) throw new Ga(k.UNIDENTIFIED_KEYX_MECHANISM, f); + g = q.mechanism; + d = q.publickey; + if (!n || "string" !== typeof n || !g || !d || "string" !== typeof d) throw new ba(l.JSON_PARSE_ERROR, "keydata " + JSON.stringify(q)); + if (!t[g]) throw new Ha(l.UNIDENTIFIED_KEYX_MECHANISM, g); try { - a = ra(c); - switch (f) { + a = oa(d); + switch (g) { case t.JWE_RSA: case t.JWEJS_RSA: case t.JWK_RSA: - cd(a, yc, Ib, { + bd(a, zc, Ib, { result: function(a) { - I.result(new J(n, f, a, null)); + B.result(new L(n, g, a, null)); }, error: function(a) { - I.error(a); + B.error(a); } }); break; case t.JWK_RSAES: - cd(a, ad, Ib, { + bd(a, $c, Ib, { result: function(a) { - I.result(new J(n, f, a, null)); + B.result(new L(n, g, a, null)); }, error: function(a) { - I.error(a); + B.error(a); } }); break; default: - throw new P(k.UNSUPPORTED_KEYX_MECHANISM, f); + throw new R(l.UNSUPPORTED_KEYX_MECHANISM, g); } } catch (b) { - if (!(b instanceof A)) throw new P(k.INVALID_PUBLIC_KEY, "keydata " + JSON.stringify(q), b); + if (!(b instanceof G)) throw new R(l.INVALID_PUBLIC_KEY, "keydata " + JSON.stringify(q), b); throw b; } }); }; - L = ge = lc.extend({ - init: function Ha(k, f, c, a) { - Ha.base.call(this, k, kb.ASYMMETRIC_WRAPPED); + J = ce = kc.extend({ + init: function Aa(l, g, d, a) { + Aa.base.call(this, l, mb.ASYMMETRIC_WRAPPED); Object.defineProperties(this, { keyPairId: { - value: f, + value: g, writable: !1, configurable: !1 }, encryptionKey: { - value: c, + value: d, writable: !1, configurable: !1 }, @@ -6373,228 +6368,228 @@ v7AA.H22 = function() { }); }, getKeydata: function() { - var k; - k = {}; - k.keypairid = this.keyPairId; - k.encryptionkey = ma(this.encryptionKey); - k.hmackey = ma(this.hmacKey); - return k; + var l; + l = {}; + l.keypairid = this.keyPairId; + l.encryptionkey = ka(this.encryptionKey); + l.hmackey = ka(this.hmacKey); + return l; }, - equals: function va(f) { - return this === f ? !0 : f instanceof ge ? va.base.call(this, f) && this.keyPairId == f.keyPairId && Wa(this.encryptionKey, f.encryptionKey) && Wa(this.hmacKey, f.hmacKey) : !1; + equals: function sa(g) { + return this === g ? !0 : g instanceof ce ? sa.base.call(this, g) && this.keyPairId == g.keyPairId && Xa(this.encryptionKey, g.encryptionKey) && Xa(this.hmacKey, g.hmacKey) : !1; }, - uniqueKey: function f() { - return f.base.call(this) + ":" + this.keyPairId + ":" + ib(this.encryptionKey) + ":" + ib(this.hmacKey); + uniqueKey: function g() { + return g.base.call(this) + ":" + this.keyPairId + ":" + eb(this.encryptionKey) + ":" + eb(this.hmacKey); } }); - Id = qb.extend({ - init: function c() { - c.base.call(this, kb.ASYMMETRIC_WRAPPED); + Fd = pb.extend({ + init: function d() { + d.base.call(this, mb.ASYMMETRIC_WRAPPED); }, - createRequestData: function(c, a, b) { - Q(a, b); + createRequestData: function(d, a, b) { + V(a, b); }, - createResponseData: function(c, a, b) { - var d, h, l, g; - c = b.keypairid; - d = b.encryptionkey; + createResponseData: function(d, a, b) { + var c, h, k, f; + d = b.keypairid; + c = b.encryptionkey; h = b.hmackey; - if (!c || "string" !== typeof c || !d || "string" !== typeof d || !h || "string" !== typeof h) throw new aa(k.JSON_PARSE_ERROR, "keydata " + JSON.stringify(b)); + if (!d || "string" !== typeof d || !c || "string" !== typeof c || !h || "string" !== typeof h) throw new ba(l.JSON_PARSE_ERROR, "keydata " + JSON.stringify(b)); try { - l = ra(d); - } catch (m) { - throw new P(k.INVALID_ENCRYPTION_KEY, "keydata " + JSON.stringify(b), m); + k = oa(c); + } catch (p) { + throw new R(l.INVALID_ENCRYPTION_KEY, "keydata " + JSON.stringify(b), p); } try { - g = ra(h); - } catch (m) { - throw new P(k.INVALID_HMAC_KEY, "keydata " + JSON.stringify(b), m); + f = oa(h); + } catch (p) { + throw new R(l.INVALID_HMAC_KEY, "keydata " + JSON.stringify(b), p); } - return new L(a, c, l, g); + return new J(a, d, k, f); }, - generateResponse: function(c, a, b, d) { - var g; + generateResponse: function(d, a, b, c) { + var f; - function h(m, p) { - n(d, function() { + function h(p, m) { + n(c, function() { var r; - r = q(c, a.keyPairId, a.mechanism, null, a.publicKey); - r.wrap(m, { + r = q(d, a.keyPairId, a.mechanism, null, a.publicKey); + r.wrap(p, { result: function(a) { - n(d, function() { - r.wrap(p, { - result: function(b) { - l(m, a, p, b); + n(c, function() { + r.wrap(m, { + result: function(f) { + k(p, a, m, f); }, error: function(a) { - n(d, function() { - a instanceof A && b instanceof eb && a.setEntity(b); + n(c, function() { + a instanceof G && b instanceof fb && a.setEntity(b); throw a; - }, g); + }, f); } }); - }, g); + }, f); }, error: function(a) { - n(d, function() { - a instanceof A && b instanceof eb && a.setEntity(b); + n(c, function() { + a instanceof G && b instanceof fb && a.setEntity(b); throw a; - }, g); + }, f); } }); - }, g); + }, f); } - function l(m, p, r, h) { - n(d, function() { - var u; - u = c.getTokenFactory(); - b instanceof eb ? u.renewMasterToken(c, b, m, r, { + function k(p, m, r, k) { + n(c, function() { + var h; + h = d.getTokenFactory(); + b instanceof fb ? h.renewMasterToken(d, b, p, r, { result: function(b) { - n(d, function() { - var g, m; - g = new $a(c, b); - m = new L(b, a.keyPairId, p, h); - return new qb.KeyExchangeData(m, g, d); - }, g); + n(c, function() { + var f, p; + f = new gb(d, b); + p = new J(b, a.keyPairId, m, k); + return new pb.KeyExchangeData(p, f, c); + }, f); }, error: function(a) { - n(d, function() { - a instanceof A && a.setEntity(b); + n(c, function() { + a instanceof G && a.setEntity(b); throw a; - }, g); + }, f); } - }) : u.createMasterToken(c, b, m, r, { + }) : h.createMasterToken(d, b, p, r, { result: function(b) { - n(d, function() { - var g, m; - g = new $a(c, b); - m = new L(b, a.keyPairId, p, h); - return new qb.KeyExchangeData(m, g, d); - }, g); + n(c, function() { + var f, p; + f = new gb(d, b); + p = new J(b, a.keyPairId, m, k); + return new pb.KeyExchangeData(p, f, c); + }, f); }, - error: d.error + error: c.error }); - }, g); + }, f); } - g = this; - n(d, function() { - if (!(a instanceof J)) throw new Y("Key request data " + JSON.stringify(a) + " was not created by this factory."); - this.generateSessionKeys(c, { + f = this; + n(c, function() { + if (!(a instanceof L)) throw new ca("Key request data " + JSON.stringify(a) + " was not created by this factory."); + this.generateSessionKeys(d, { result: function(a) { h(a.encryptionKey, a.hmacKey); }, error: function(a) { - n(d, function() { - a instanceof A && b instanceof eb && a.setEntity(b); + n(c, function() { + a instanceof G && b instanceof fb && a.setEntity(b); throw a; - }, g); + }, f); } }); - }, g); + }, f); }, - getCryptoContext: function(c, a, b, d, h) { - var l; - l = this; + getCryptoContext: function(d, a, b, c, h) { + var k; + k = this; n(h, function() { - var g, m, p; - if (!(a instanceof J)) throw new Y("Key request data " + JSON.stringify(a) + " was not created by this factory."); - if (!(b instanceof L)) throw new Y("Key response data " + JSON.stringify(b) + " was not created by this factory."); - g = a.keyPairId; - m = b.keyPairId; - if (g != m) throw new Ga(k.KEYX_RESPONSE_REQUEST_MISMATCH, "request " + g + "; response " + m).setEntity(d); - m = a.privateKey; - if (!m) throw new Ga(k.KEYX_PRIVATE_KEY_MISSING, "request Asymmetric private key").setEntity(d); - p = q(c, g, a.mechanism, m, null); - p.unwrap(b.encryptionKey, jb, Hb, { + var f, p, m; + if (!(a instanceof L)) throw new ca("Key request data " + JSON.stringify(a) + " was not created by this factory."); + if (!(b instanceof J)) throw new ca("Key response data " + JSON.stringify(b) + " was not created by this factory."); + f = a.keyPairId; + p = b.keyPairId; + if (f != p) throw new Ha(l.KEYX_RESPONSE_REQUEST_MISMATCH, "request " + f + "; response " + p).setEntity(c); + p = a.privateKey; + if (!p) throw new Ha(l.KEYX_PRIVATE_KEY_MISSING, "request Asymmetric private key").setEntity(c); + m = q(d, f, a.mechanism, p, null); + m.unwrap(b.encryptionKey, qb, Hb, { result: function(a) { - p.unwrap(b.hmacKey, sb, Qb, { - result: function(g) { - c.getEntityAuthenticationData(null, { - result: function(p) { + m.unwrap(b.hmacKey, rb, Qb, { + result: function(f) { + d.getEntityAuthenticationData(null, { + result: function(c) { n(h, function() { - var d; - d = p.getIdentity(); - return new $a(c, b.masterToken, d, a, g); - }, l); + var p; + p = c.getIdentity(); + return new gb(d, b.masterToken, p, a, f); + }, k); }, error: function(a) { n(h, function() { - a instanceof A && a.setEntity(d); + a instanceof G && a.setEntity(c); throw a; - }, l); + }, k); } }); }, error: function(a) { n(h, function() { - a instanceof A && a.setEntity(d); + a instanceof G && a.setEntity(c); throw a; - }, l); + }, k); } }); }, error: function(a) { n(h, function() { - a instanceof A && a.setEntity(d); + a instanceof G && a.setEntity(c); throw a; - }, l); + }, k); } }); - }, l); + }, k); } }); }()); - ef = fa.Class.create({ - init: function(k) { - var n, q, t, L, E, K, A, qa; - n = Qa.parser(); + $e = ha.Class.create({ + init: function(l) { + var n, q, t, J, C, M, K, pa; + n = $a.parser(); q = []; t = []; - A = 0; - qa = !1; - n.onerror = function(k) { - qa || (qa = !0, n.end()); + K = 0; + pa = !1; + n.onerror = function(l) { + pa || (pa = !0, n.end()); }; - n.onopenobject = function(k) { + n.onopenobject = function(l) { var n; - if (L) L[K] = {}, t.push(L), L = L[K]; - else if (E) { + if (J) J[M] = {}, t.push(J), J = J[M]; + else if (C) { n = {}; - t.push(E); - E.push(n); - L = n; - E = ga; - } else L = {}; - K = k; + t.push(C); + C.push(n); + J = n; + C = da; + } else J = {}; + M = l; }; n.oncloseobject = function() { - var k; - k = t.pop(); - k ? "object" === typeof k ? L = k : (L = ga, E = k) : (q.push(L), A = n.index, L = ga); + var l; + l = t.pop(); + l ? "object" === typeof l ? J = l : (J = da, C = l) : (q.push(J), K = n.index, J = da); }; n.onopenarray = function() { - var k; - if (L) L[K] = [], t.push(L), E = L[K], L = ga; - else if (E) { - k = []; - t.push(E); - E.push(k); - E = k; - } else E = []; + var l; + if (J) J[M] = [], t.push(J), C = J[M], J = da; + else if (C) { + l = []; + t.push(C); + C.push(l); + C = l; + } else C = []; }; n.onclosearray = function() { - var k; - k = t.pop(); - k ? "object" === typeof k ? (L = k, E = ga) : E = k : (q.push(E), A = n.index, E = ga); + var l; + l = t.pop(); + l ? "object" === typeof l ? (J = l, C = da) : C = l : (q.push(C), K = n.index, C = da); }; - n.onkey = function(k) { - K = k; + n.onkey = function(l) { + M = l; }; - n.onvalue = function(k) { - L ? L[K] = k : E ? E.push(k) : (q.push(k), A = n.index); + n.onvalue = function(l) { + J ? J[M] = l : C ? C.push(l) : (q.push(l), K = n.index); }; - n.write(k).close(); + n.write(l).close(); Object.defineProperties(this, { _values: { value: q, @@ -6603,7 +6598,7 @@ v7AA.H22 = function() { configurable: !1 }, _lastIndex: { - value: A, + value: K, writable: !0, enumerable: !1, configurable: !1 @@ -6614,133 +6609,133 @@ v7AA.H22 = function() { return 0 < this._values.length; }, nextValue: function() { - return 0 == this._values.length ? ga : this._values.shift(); + return 0 == this._values.length ? da : this._values.shift(); }, lastIndex: function() { return this._lastIndex; } }); (function() { - var q, t, J, Q, L; - q = nd = "entityauthdata"; - t = ie = "mastertoken"; - J = je = "headerdata"; - Q = ke = "errordata"; - L = od = "signature"; - he = function(E, K, I, qa) { - n(qa, function() { - var n, A, f, c, a, b; - n = K[q]; - A = K[t]; - f = K[L]; - if (n && "object" !== typeof n || A && "object" !== typeof A || "string" !== typeof f) throw new aa(k.JSON_PARSE_ERROR, "header/errormsg " + JSON.stringify(K)); + var q, t, L, V, J; + q = md = "entityauthdata"; + t = ee = "mastertoken"; + L = fe = "headerdata"; + V = ge = "errordata"; + J = nd = "signature"; + de = function(C, M, B, pa) { + n(pa, function() { + var n, K, g, d, a, b; + n = M[q]; + K = M[t]; + g = M[J]; + if (n && "object" !== typeof n || K && "object" !== typeof K || "string" !== typeof g) throw new ba(l.JSON_PARSE_ERROR, "header/errormsg " + JSON.stringify(M)); try { - c = ra(f); - } catch (d) { - throw new xa(k.HEADER_SIGNATURE_INVALID, "header/errormsg " + JSON.stringify(K), d); + d = oa(g); + } catch (c) { + throw new ta(l.HEADER_SIGNATURE_INVALID, "header/errormsg " + JSON.stringify(M), c); } a = null; - n && (a = Vd(E, n)); - b = K[J]; - if (b != ga && null != b) { - if ("string" !== typeof b) throw new aa(k.JSON_PARSE_ERROR, "header/errormsg " + JSON.stringify(K)); - A ? Rb(E, A, { - result: function(d) { - pd(E, b, a, d, c, I, qa); + n && (a = Rd(C, n)); + b = M[L]; + if (b != da && null != b) { + if ("string" !== typeof b) throw new ba(l.JSON_PARSE_ERROR, "header/errormsg " + JSON.stringify(M)); + K ? Rb(C, K, { + result: function(c) { + od(C, b, a, c, d, B, pa); }, error: function(a) { - qa.error(a); + pa.error(a); } - }) : pd(E, b, a, null, c, I, qa); - } else if (n = K[Q], n != ga && null != n) { - if ("string" !== typeof n) throw new aa(k.JSON_PARSE_ERROR, "header/errormsg " + JSON.stringify(K)); - le(E, n, a, c, qa); - } else throw new aa(k.JSON_PARSE_ERROR, JSON.stringify(K)); + }) : od(C, b, a, null, d, B, pa); + } else if (n = M[V], n != da && null != n) { + if ("string" !== typeof n) throw new ba(l.JSON_PARSE_ERROR, "header/errormsg " + JSON.stringify(M)); + he(C, n, a, d, pa); + } else throw new ba(l.JSON_PARSE_ERROR, JSON.stringify(M)); }); }; }()); (function() { - function t(k, n) { - this.errordata = k; + function t(l, n) { + this.errordata = l; this.signature = n; } - Lb = fa.Class.create({ - init: function(q, t, Q, L, E, K, R, qa, Ha, va) { - var f; - f = this; - n(va, function() { - var c, a; - 0 > K && (K = -1); - if (0 > L || L > Aa) throw new Y("Message ID " + L + " is out of range."); - if (!t) throw new xa(k.MESSAGE_ENTITY_NOT_FOUND); - if (Ha) return Object.defineProperties(this, { + Lb = ha.Class.create({ + init: function(q, t, V, J, C, M, K, pa, Aa, sa) { + var g; + g = this; + n(sa, function() { + var d, a; + 0 > M && (M = -1); + if (0 > J || J > Ca) throw new ca("Message ID " + J + " is out of range."); + if (!t) throw new ta(l.MESSAGE_ENTITY_NOT_FOUND); + if (Aa) return Object.defineProperties(this, { entityAuthenticationData: { value: t, writable: !1, configurable: !1 }, recipient: { - value: Q, + value: V, writable: !1, configurable: !1 }, messageId: { - value: L, + value: J, writable: !1, configurable: !1 }, errorCode: { - value: E, + value: C, writable: !1, configurable: !1 }, internalCode: { - value: K, + value: M, writable: !1, configurable: !1 }, errorMessage: { - value: R, + value: K, writable: !1, configurable: !1 }, userMessage: { - value: qa, + value: pa, writable: !1, configurable: !1 }, errordata: { - value: Ha.errordata, + value: Aa.errordata, writable: !1, enumerable: !1, configurable: !1 }, signature: { - value: Ha.signature, + value: Aa.signature, writable: !1, enumerable: !1, configurable: !1 } }), this; - c = {}; - Q && (c.recipient = Q); - c.messageid = L; - c.errorcode = E; - 0 < K && (c.internalcode = K); - R && (c.errormsg = R); - qa && (c.usermsg = qa); + d = {}; + V && (d.recipient = V); + d.messageid = J; + d.errorcode = C; + 0 < M && (d.internalcode = M); + K && (d.errormsg = K); + pa && (d.usermsg = pa); try { a = q.getEntityAuthenticationFactory(t.scheme).getCryptoContext(q, t); } catch (b) { - throw b instanceof A && (b.setEntity(t), b.setMessageId(L)), b; + throw b instanceof G && (b.setEntity(t), b.setMessageId(J)), b; } - c = Ma(JSON.stringify(c), Ca); - a.encrypt(c, { + d = Oa(JSON.stringify(d), Ba); + a.encrypt(d, { result: function(b) { - n(va, function() { + n(sa, function() { a.sign(b, { result: function(a) { - n(va, function() { + n(sa, function() { Object.defineProperties(this, { entityAuthenticationData: { value: t, @@ -6748,32 +6743,32 @@ v7AA.H22 = function() { configurable: !1 }, recipient: { - value: Q, + value: V, writable: !1, configurable: !1 }, messageId: { - value: L, + value: J, writable: !1, configurable: !1 }, errorCode: { - value: E, + value: C, writable: !1, configurable: !1 }, internalCode: { - value: K, + value: M, writable: !1, configurable: !1 }, errorMessage: { - value: R, + value: K, writable: !1, configurable: !1 }, userMessage: { - value: qa, + value: pa, writable: !1, configurable: !1 }, @@ -6791,138 +6786,138 @@ v7AA.H22 = function() { } }); return this; - }, f); + }, g); }, error: function(a) { - n(va, function() { - a instanceof A && (a.setEntity(t), a.setMessageId(L)); + n(sa, function() { + a instanceof G && (a.setEntity(t), a.setMessageId(J)); throw a; - }, f); + }, g); } }); - }, f); + }, g); }, error: function(a) { - n(va, function() { - a instanceof A && (a.setEntity(t), a.setMessageId(L)); + n(sa, function() { + a instanceof G && (a.setEntity(t), a.setMessageId(J)); throw a; - }, f); + }, g); } }); - }, f); + }, g); }, toJSON: function() { - var k; - k = {}; - k[nd] = this.entityAuthenticationData; - k[ke] = ma(this.errordata); - k[od] = ma(this.signature); - return k; + var l; + l = {}; + l[md] = this.entityAuthenticationData; + l[ge] = ka(this.errordata); + l[nd] = ka(this.signature); + return l; } }); - me = function(k, n, q, t, E, K, A, qa, R) { - new Lb(k, n, q, t, E, K, A, qa, null, R); + ie = function(l, n, q, t, C, M, K, pa, Aa) { + new Lb(l, n, q, t, C, M, K, pa, null, Aa); }; - le = function(I, J, Q, L, E) { - n(E, function() { - var K, R, qa; - if (!Q) throw new xa(k.MESSAGE_ENTITY_NOT_FOUND); + he = function(B, L, V, J, C) { + n(C, function() { + var M, K, pa; + if (!V) throw new ta(l.MESSAGE_ENTITY_NOT_FOUND); try { - R = Q.scheme; - qa = I.getEntityAuthenticationFactory(R); - if (!qa) throw new bb(k.ENTITYAUTH_FACTORY_NOT_FOUND, R); - K = qa.getCryptoContext(I, Q); - } catch (Ha) { - throw Ha instanceof A && Ha.setEntity(Q), Ha; + K = V.scheme; + pa = B.getEntityAuthenticationFactory(K); + if (!pa) throw new yb(l.ENTITYAUTH_FACTORY_NOT_FOUND, K); + M = pa.getCryptoContext(B, V); + } catch (Aa) { + throw Aa instanceof G && Aa.setEntity(V), Aa; } try { - J = ra(J); - } catch (Ha) { - throw new xa(k.HEADER_DATA_INVALID, J, Ha).setEntity(Q); - } - if (!J || 0 == J.length) throw new xa(k.HEADER_DATA_MISSING, J).setEntity(Q); - K.verify(J, L, { - result: function(qa) { - n(E, function() { - if (!qa) throw new P(k.MESSAGE_VERIFICATION_FAILED).setEntity(Q); - K.decrypt(J, { - result: function(K) { - n(E, function() { - var f, c, a, b, d, h, l, g; - f = Ia(K, Ca); + L = oa(L); + } catch (Aa) { + throw new ta(l.HEADER_DATA_INVALID, L, Aa).setEntity(V); + } + if (!L || 0 == L.length) throw new ta(l.HEADER_DATA_MISSING, L).setEntity(V); + M.verify(L, J, { + result: function(pa) { + n(C, function() { + if (!pa) throw new R(l.MESSAGE_VERIFICATION_FAILED).setEntity(V); + M.decrypt(L, { + result: function(M) { + n(C, function() { + var g, d, a, b, c, h, k, f; + g = Ra(M, Ba); try { - c = JSON.parse(f); - } catch (p) { - if (p instanceof SyntaxError) throw new aa(k.JSON_PARSE_ERROR, "errordata " + f, p).setEntity(Q); - throw p; + d = JSON.parse(g); + } catch (m) { + if (m instanceof SyntaxError) throw new ba(l.JSON_PARSE_ERROR, "errordata " + g, m).setEntity(V); + throw m; } - a = c.recipient !== ga ? c.recipient : null; - b = parseInt(c.messageid); - d = parseInt(c.errorcode); - h = parseInt(c.internalcode); - l = c.errormsg; - g = c.usermsg; - if (a && "string" !== typeof a || !b || b != b || !d || d != d || c.internalcode && h != h || l && "string" !== typeof l || g && "string" !== typeof g) throw new aa(k.JSON_PARSE_ERROR, "errordata " + f).setEntity(Q); - if (0 > b || b > Aa) throw new xa(k.MESSAGE_ID_OUT_OF_RANGE, "errordata " + f).setEntity(Q); - c = !1; - for (var m in q) - if (q[m] == d) { - c = !0; + a = d.recipient !== da ? d.recipient : null; + b = parseInt(d.messageid); + c = parseInt(d.errorcode); + h = parseInt(d.internalcode); + k = d.errormsg; + f = d.usermsg; + if (a && "string" !== typeof a || !b || b != b || !c || c != c || d.internalcode && h != h || k && "string" !== typeof k || f && "string" !== typeof f) throw new ba(l.JSON_PARSE_ERROR, "errordata " + g).setEntity(V); + if (0 > b || b > Ca) throw new ta(l.MESSAGE_ID_OUT_OF_RANGE, "errordata " + g).setEntity(V); + d = !1; + for (var p in q) + if (q[p] == c) { + d = !0; break; - } c || (d = q.FAIL); + } d || (c = q.FAIL); if (h) { - if (0 > h) throw new xa(k.INTERNAL_CODE_NEGATIVE, "errordata " + f).setEntity(Q).setMessageId(b); + if (0 > h) throw new ta(l.INTERNAL_CODE_NEGATIVE, "errordata " + g).setEntity(V).setMessageId(b); } else h = -1; - f = new t(J, L); - new Lb(I, Q, a, b, d, h, l, g, f, E); + g = new t(L, J); + new Lb(B, V, a, b, c, h, k, f, g, C); }); }, - error: function(k) { - n(E, function() { - k instanceof A && k.setEntity(Q); - throw k; + error: function(l) { + n(C, function() { + l instanceof G && l.setEntity(V); + throw l; }); } }); }); }, - error: function(k) { - n(E, function() { - k instanceof A && k.setEntity(Q); - throw k; + error: function(l) { + n(C, function() { + l instanceof G && l.setEntity(V); + throw l; }); } }); }); }; }()); - gf = fa.Class.create({ - getUserMessage: function(k, n) {} + bf = ha.Class.create({ + getUserMessage: function(l, n) {} }); (function() { - qd = function(k, n) { + pd = function(l, n) { var q, t; - if (!k || !n) return null; - q = k.compressionAlgorithms.filter(function(k) { + if (!l || !n) return null; + q = l.compressionAlgorithms.filter(function(l) { for (var q = 0; q < n.compressionAlgorithms.length; ++q) - if (k == n.compressionAlgorithms[q]) return !0; + if (l == n.compressionAlgorithms[q]) return !0; return !1; }); - t = k.languages.filter(function(k) { + t = l.languages.filter(function(l) { for (var q = 0; q < n.languages.length; ++q) - if (k == n.languages[q]) return !0; + if (l == n.languages[q]) return !0; return !1; }); - return new mc(q, t); + return new lc(q, t); }; - mc = fa.Class.create({ - init: function(k, n) { - k || (k = []); + lc = ha.Class.create({ + init: function(l, n) { + l || (l = []); n || (n = []); - k.sort(); + l.sort(); Object.defineProperties(this, { compressionAlgorithms: { - value: k, + value: l, writable: !1, enumerable: !0, configurable: !1 @@ -6936,44 +6931,44 @@ v7AA.H22 = function() { }); }, toJSON: function() { - var k; - k = {}; - k.compressionalgos = this.compressionAlgorithms; - k.languages = this.languages; - return k; + var l; + l = {}; + l.compressionalgos = this.compressionAlgorithms; + l.languages = this.languages; + return l; }, - equals: function(k) { - return this === k ? !0 : k instanceof mc ? Bd(this.compressionAlgorithms, k.compressionAlgorithms) && Bd(this.languages, k.languages) : !1; + equals: function(l) { + return this === l ? !0 : l instanceof lc ? yd(this.compressionAlgorithms, l.compressionAlgorithms) && yd(this.languages, l.languages) : !1; }, uniqueKey: function() { return this.compressionAlgorithms.join(":") + "|" + this.languages.join(":"); } }); - ne = function(n) { - var q, t, L; + je = function(n) { + var q, t, J; q = n.compressionalgos; t = n.languages; - if (q && !(q instanceof Array) || t && !(t instanceof Array)) throw new aa(k.JSON_PARSE_ERROR, "capabilities " + JSON.stringify(n)); + if (q && !(q instanceof Array) || t && !(t instanceof Array)) throw new ba(l.JSON_PARSE_ERROR, "capabilities " + JSON.stringify(n)); n = []; - for (var Q = 0; q && Q < q.length; ++Q) { - L = q[Q]; - Nb[L] && n.push(L); + for (var V = 0; q && V < q.length; ++V) { + J = q[V]; + Nb[J] && n.push(J); } - return new mc(n, t); + return new lc(n, t); }; }()); (function() { - var va, f; + var sa, g; - function q(c, a, b, d, h) { - this.customer = c; + function q(d, a, b, c, h) { + this.customer = d; this.sender = a; this.messageCryptoContext = b; - this.headerdata = d; + this.headerdata = c; this.signature = h; } - function t(c, a, b, d, h, l, g, m, p, r, u, v, f, w, G, x, y, C, F, N) { + function t(d, a, b, c, h, k, f, p, m, r, u, x, g, y, w, D, z, E, P, F) { return { cryptoContext: { value: a, @@ -6986,7 +6981,7 @@ v7AA.H22 = function() { configurable: !1 }, entityAuthenticationData: { - value: d, + value: c, writable: !1, configurable: !1 }, @@ -6996,27 +6991,27 @@ v7AA.H22 = function() { configurable: !1 }, sender: { - value: l, + value: k, writable: !1, configurable: !1 }, messageId: { - value: g, + value: f, writable: !1, configurable: !1 }, nonReplayableId: { - value: x, + value: D, writable: !1, configurable: !1 }, keyRequestData: { - value: m, + value: p, writable: !1, configurable: !1 }, keyResponseData: { - value: p, + value: m, writable: !1, configurable: !1 }, @@ -7031,44 +7026,44 @@ v7AA.H22 = function() { configurable: !1 }, serviceTokens: { - value: v, + value: x, writable: !1, configurable: !1 }, peerMasterToken: { - value: f, + value: g, writable: !1, configurable: !1 }, peerUserIdToken: { - value: w, + value: y, writable: !1, configurable: !1 }, peerServiceTokens: { - value: G, + value: w, writable: !1, configurable: !1 }, messageCapabilities: { - value: C, + value: E, writable: !1, configurable: !1 }, renewable: { - value: y, + value: z, writable: !1, enumerable: !1, configurable: !1 }, headerdata: { - value: F, + value: P, writable: !1, enumerable: !1, configurable: !1 }, signature: { - value: N, + value: F, writable: !1, enumerable: !1, configurable: !1 @@ -7076,29 +7071,29 @@ v7AA.H22 = function() { }; } - function J(c, a, b) { - var d; + function L(d, a, b) { + var c; if (b) { - if (a = c.getMslStore().getCryptoContext(b)) return a; - if (!b.isVerified() || !b.isDecrypted()) throw new Pb(k.MASTERTOKEN_UNTRUSTED, b); - return new $a(c, b); + if (a = d.getMslStore().getCryptoContext(b)) return a; + if (!b.isVerified() || !b.isDecrypted()) throw new Pb(l.MASTERTOKEN_UNTRUSTED, b); + return new gb(d, b); } b = a.scheme; - d = c.getEntityAuthenticationFactory(b); - if (!d) throw new bb(k.ENTITYAUTH_FACTORY_NOT_FOUND, b); - return d.getCryptoContext(c, a); + c = d.getEntityAuthenticationFactory(b); + if (!c) throw new yb(l.ENTITYAUTH_FACTORY_NOT_FOUND, b); + return c.getCryptoContext(d, a); } - function Q(c, a, b, d, h) { + function V(d, a, b, c, h) { n(h, function() { - a.verify(b, d, { + a.verify(b, c, { result: function(c) { n(h, function() { - if (!c) throw new P(k.MESSAGE_VERIFICATION_FAILED); + if (!c) throw new R(l.MESSAGE_VERIFICATION_FAILED); a.decrypt(b, { result: function(a) { n(h, function() { - return Ia(a, Ca); + return Ra(a, Ba); }); }, error: function(a) { @@ -7114,108 +7109,108 @@ v7AA.H22 = function() { }); } - function L(c, a, b) { + function J(d, a, b) { n(b, function() { - if (a) ce(c, a, b); + if (a) Zd(d, a, b); else return null; }); } - function E(c, a, b, d) { - n(d, function() { - if (a) Sb(c, a, b, d); + function C(d, a, b, c) { + n(c, function() { + if (a) Sb(d, a, b, c); else return null; }); } - function K(c, a, b, d) { - n(d, function() { - if (b) re(c, a, b, d); + function M(d, a, b, c) { + n(c, function() { + if (b) ne(d, a, b, c); else return null; }); } - function La(c, a, b, d, h, l, g) { - var p; + function Ka(d, a, b, c, h, k, f) { + var m; - function m(a, g, v) { + function p(a, f, x) { var r, u; - if (g >= a.length) { + if (f >= a.length) { r = []; - for (u in p) r.push(p[u]); - v.result(r); + for (u in m) r.push(m[u]); + x.result(r); } else { - r = a[g]; - if ("object" !== typeof r) throw new aa(k.JSON_PARSE_ERROR, "headerdata " + l); - Ic(c, r, b, d, h, { + r = a[f]; + if ("object" !== typeof r) throw new ba(l.JSON_PARSE_ERROR, "headerdata " + k); + Jc(d, r, b, c, h, { result: function(b) { - n(v, function() { - p[b.uniqueKey()] = b; - m(a, g + 1, v); + n(x, function() { + m[b.uniqueKey()] = b; + p(a, f + 1, x); }); }, error: function(a) { - v.error(a); + x.error(a); } }); } } - p = {}; - n(g, function() { + m = {}; + n(f, function() { if (a) { - if (!(a instanceof Array)) throw new aa(k.JSON_PARSE_ERROR, "headerdata " + l); - m(a, 0, g); + if (!(a instanceof Array)) throw new ba(l.JSON_PARSE_ERROR, "headerdata " + k); + p(a, 0, f); } else return []; }); } - function qa(c, a, b, d, h, l) { - function g(a, b, c) { - n(c, function() { - var g; - g = b.peermastertoken; - if (g && "object" !== typeof g) throw new aa(k.JSON_PARSE_ERROR, "headerdata " + h); - if (!g) return null; - Rb(a, g, c); + function pa(d, a, b, c, h, k) { + function f(a, f, b) { + n(b, function() { + var c; + c = f.peermastertoken; + if (c && "object" !== typeof c) throw new ba(l.JSON_PARSE_ERROR, "headerdata " + h); + if (!c) return null; + Rb(a, c, b); }); } - function m(a, b, c, g) { - n(g, function() { - var p; - p = b.peeruseridtoken; - if (p && "object" !== typeof p) throw new aa(k.JSON_PARSE_ERROR, "headerdata " + h); - if (!p) return null; - Sb(a, p, c, g); + function p(a, f, b, c) { + n(c, function() { + var d; + d = f.peeruseridtoken; + if (d && "object" !== typeof d) throw new ba(l.JSON_PARSE_ERROR, "headerdata " + h); + if (!d) return null; + Sb(a, d, b, c); }); } - n(l, function() { - if (!c.isPeerToPeer()) return { + n(k, function() { + if (!d.isPeerToPeer()) return { peerMasterToken: null, peerUserIdToken: null, peerServiceTokens: [] }; - g(c, a, { - result: function(g) { - n(l, function() { - var p; - p = b ? b.masterToken : g; - m(c, a, p, { + f(d, a, { + result: function(f) { + n(k, function() { + var m; + m = b ? b.masterToken : f; + p(d, a, m, { result: function(b) { - n(l, function() { - La(c, a.peerservicetokens, p, b, d, h, { + n(k, function() { + Ka(d, a.peerservicetokens, m, b, c, h, { result: function(a) { - n(l, function() { + n(k, function() { return { - peerMasterToken: g, + peerMasterToken: f, peerUserIdToken: b, peerServiceTokens: a }; }); }, error: function(a) { - n(l, function() { - a instanceof A && (a.setEntity(p), a.setUser(b)); + n(k, function() { + a instanceof G && (a.setEntity(m), a.setUser(b)); throw a; }); } @@ -7223,52 +7218,52 @@ v7AA.H22 = function() { }); }, error: function(a) { - n(l, function() { - a instanceof A && a.setEntity(p); + n(k, function() { + a instanceof G && a.setEntity(m); throw a; }); } }); }); }, - error: l.error + error: k.error }); }); } - function Ha(c, a, b, d) { - var l; + function Aa(d, a, b, c) { + var k; function h(a, b) { - n(d, function() { - if (b >= a.length) return l; - be(c, a[b], { - result: function(c) { - n(d, function() { - l.push(c); + n(c, function() { + if (b >= a.length) return k; + Yd(d, a[b], { + result: function(f) { + n(c, function() { + k.push(f); h(a, b + 1); }); }, error: function(a) { - d.error(a); + c.error(a); } }); }); } - l = []; - n(d, function() { - var c; - c = a.keyrequestdata; - if (!c) return l; - if (!(c instanceof Array)) throw new aa(k.JSON_PARSE_ERROR, "headerdata " + b); - h(c, 0); + k = []; + n(c, function() { + var f; + f = a.keyrequestdata; + if (!f) return k; + if (!(f instanceof Array)) throw new ba(l.JSON_PARSE_ERROR, "headerdata " + b); + h(f, 0); }); } - va = pe = fa.Class.create({ - init: function(c, a, b, d, h, l, g, m, p) { + sa = le = ha.Class.create({ + init: function(d, a, b, c, h, k, f, p, m) { Object.defineProperties(this, { messageId: { - value: c, + value: d, writable: !1, configurable: !1 }, @@ -7283,7 +7278,7 @@ v7AA.H22 = function() { configurable: !1 }, capabilities: { - value: d, + value: c, writable: !1, configurable: !1 }, @@ -7293,33 +7288,33 @@ v7AA.H22 = function() { configurable: !1 }, keyResponseData: { - value: l, + value: k, writable: !1, configurable: !1 }, userAuthData: { - value: g, + value: f, writable: !1, configurable: !1 }, userIdToken: { - value: m, + value: p, writable: !1, configurable: !1 }, serviceTokens: { - value: p, + value: m, writable: !1, configurable: !1 } }); } }); - f = qe = fa.Class.create({ - init: function(c, a, b) { + g = me = ha.Class.create({ + init: function(d, a, b) { Object.defineProperties(this, { peerMasterToken: { - value: c, + value: d, writable: !1, configurable: !1 }, @@ -7336,105 +7331,105 @@ v7AA.H22 = function() { }); } }); - nc = fa.Class.create({ - init: function(c, a, b, d, h, l, g) { - var p; + mc = ha.Class.create({ + init: function(d, a, b, c, h, k, f) { + var m; - function m(m) { - n(g, function() { - var r, v, f, w, G, x, y, C, F, N, T, ca, k, O, B, ja, V; + function p(p) { + n(f, function() { + var r, g, v, y, w, D, z, E, P, F, l, N, O, Y, U, ga, S; a = b ? null : a; - r = d.nonReplayableId; - v = d.renewable; - f = d.capabilities; - w = d.messageId; - G = d.keyRequestData ? d.keyRequestData : []; - x = d.keyResponseData; - y = d.userAuthData; - C = d.userIdToken; - F = d.serviceTokens ? d.serviceTokens : []; - c.isPeerToPeer() ? (N = h.peerMasterToken, T = h.peerUserIdToken, ca = h.peerServiceTokens ? h.peerServiceTokens : []) : (T = N = null, ca = []); - if (0 > w || w > Aa) throw new Y("Message ID " + w + " is out of range."); - if (!a && !b) throw new Y("Message entity authentication data or master token must be provided."); - x ? c.isPeerToPeer() ? (k = b, O = x.masterToken) : (k = x.masterToken, O = N) : (k = b, O = N); - if (C && (!k || !C.isBoundTo(k))) throw new Y("User ID token must be bound to a master token."); - if (T && (!O || !T.isBoundTo(O))) throw new Y("Peer user ID token must be bound to a peer master token."); - F.forEach(function(a) { - if (a.isMasterTokenBound() && (!k || !a.isBoundTo(k))) throw new Y("Master token bound service tokens must be bound to the provided master token."); - if (a.isUserIdTokenBound() && (!C || !a.isBoundTo(C))) throw new Y("User ID token bound service tokens must be bound to the provided user ID token."); + r = c.nonReplayableId; + g = c.renewable; + v = c.capabilities; + y = c.messageId; + w = c.keyRequestData ? c.keyRequestData : []; + D = c.keyResponseData; + z = c.userAuthData; + E = c.userIdToken; + P = c.serviceTokens ? c.serviceTokens : []; + d.isPeerToPeer() ? (F = h.peerMasterToken, l = h.peerUserIdToken, N = h.peerServiceTokens ? h.peerServiceTokens : []) : (l = F = null, N = []); + if (0 > y || y > Ca) throw new ca("Message ID " + y + " is out of range."); + if (!a && !b) throw new ca("Message entity authentication data or master token must be provided."); + D ? d.isPeerToPeer() ? (O = b, Y = D.masterToken) : (O = D.masterToken, Y = F) : (O = b, Y = F); + if (E && (!O || !E.isBoundTo(O))) throw new ca("User ID token must be bound to a master token."); + if (l && (!Y || !l.isBoundTo(Y))) throw new ca("Peer user ID token must be bound to a peer master token."); + P.forEach(function(a) { + if (a.isMasterTokenBound() && (!O || !a.isBoundTo(O))) throw new ca("Master token bound service tokens must be bound to the provided master token."); + if (a.isUserIdTokenBound() && (!E || !a.isBoundTo(E))) throw new ca("User ID token bound service tokens must be bound to the provided user ID token."); }, this); - ca.forEach(function(a) { - if (a.isMasterTokenBound() && (!O || !a.isBoundTo(O))) throw new Y("Master token bound peer service tokens must be bound to the provided peer master token."); - if (a.isUserIdTokenBound() && (!T || !a.isBoundTo(T))) throw new Y("User ID token bound peer service tokens must be bound to the provided peer user ID token."); + N.forEach(function(a) { + if (a.isMasterTokenBound() && (!Y || !a.isBoundTo(Y))) throw new ca("Master token bound peer service tokens must be bound to the provided peer master token."); + if (a.isUserIdTokenBound() && (!l || !a.isBoundTo(l))) throw new ca("User ID token bound peer service tokens must be bound to the provided peer user ID token."); }, this); - if (l) { - B = l.customer; - ja = l.messageCryptoContext; - V = t(c, ja, B, a, b, m, w, G, x, y, C, F, N, T, ca, r, v, f, l.headerdata, l.signature); - Object.defineProperties(this, V); + if (k) { + U = k.customer; + ga = k.messageCryptoContext; + S = t(d, ga, U, a, b, p, y, w, D, z, E, P, F, l, N, r, g, v, k.headerdata, k.signature); + Object.defineProperties(this, S); return this; } - B = C ? C.customer : null; - V = {}; - m && (V.sender = m); - V.messageid = w; - "number" === typeof r && (V.nonreplayableid = r); - V.renewable = v; - f && (V.capabilities = f); - 0 < G.length && (V.keyrequestdata = G); - x && (V.keyresponsedata = x); - y && (V.userauthdata = y); - C && (V.useridtoken = C); - 0 < F.length && (V.servicetokens = F); - N && (V.peermastertoken = N); - T && (V.peeruseridtoken = T); - 0 < ca.length && (V.peerservicetokens = ca); + U = E ? E.customer : null; + S = {}; + p && (S.sender = p); + S.messageid = y; + "number" === typeof r && (S.nonreplayableid = r); + S.renewable = g; + v && (S.capabilities = v); + 0 < w.length && (S.keyrequestdata = w); + D && (S.keyresponsedata = D); + z && (S.userauthdata = z); + E && (S.useridtoken = E); + 0 < P.length && (S.servicetokens = P); + F && (S.peermastertoken = F); + l && (S.peeruseridtoken = l); + 0 < N.length && (S.peerservicetokens = N); try { - ja = J(c, a, b); - } catch (D) { - throw D instanceof A && (D.setEntity(b), D.setEntity(a), D.setUser(C), D.setUser(y), D.setMessageId(w)), D; + ga = L(d, a, b); + } catch (T) { + throw T instanceof G && (T.setEntity(b), T.setEntity(a), T.setUser(E), T.setUser(z), T.setMessageId(y)), T; } - V = Ma(JSON.stringify(V), Ca); - ja.encrypt(V, { - result: function(d) { - n(g, function() { - ja.sign(d, { - result: function(h) { - n(g, function() { - var g; - g = t(c, ja, B, a, b, m, w, G, x, y, C, F, N, T, ca, r, v, f, d, h); - Object.defineProperties(this, g); + S = Oa(JSON.stringify(S), Ba); + ga.encrypt(S, { + result: function(c) { + n(f, function() { + ga.sign(c, { + result: function(k) { + n(f, function() { + var f; + f = t(d, ga, U, a, b, p, y, w, D, z, E, P, F, l, N, r, g, v, c, k); + Object.defineProperties(this, f); return this; - }, p); + }, m); }, error: function(c) { - n(g, function() { - c instanceof A && (c.setEntity(b), c.setEntity(a), c.setUser(C), c.setUser(y), c.setMessageId(w)); + n(f, function() { + c instanceof G && (c.setEntity(b), c.setEntity(a), c.setUser(E), c.setUser(z), c.setMessageId(y)); throw c; - }, p); + }, m); } }); - }, p); + }, m); }, error: function(c) { - n(g, function() { - c instanceof A && (c.setEntity(b), c.setEntity(a), c.setUser(C), c.setUser(y), c.setMessageId(w)); + n(f, function() { + c instanceof G && (c.setEntity(b), c.setEntity(a), c.setUser(E), c.setUser(z), c.setMessageId(y)); throw c; - }, p); + }, m); } }); - }, p); + }, m); } - p = this; - n(g, function() { - l ? m(l.sender) : b ? c.getEntityAuthenticationData(null, { + m = this; + n(f, function() { + k ? p(k.sender) : b ? d.getEntityAuthenticationData(null, { result: function(a) { a = a.getIdentity(); - m(a); + p(a); }, - error: g.error - }) : m(null); - }, p); + error: f.error + }) : p(null); + }, m); }, isEncrypting: function() { return this.masterToken || Sc(this.entityAuthenticationData.scheme); @@ -7443,120 +7438,120 @@ v7AA.H22 = function() { return this.renewable; }, toJSON: function() { - var c; - c = {}; - this.masterToken ? c[ie] = this.masterToken : c[nd] = this.entityAuthenticationData; - c[je] = ma(this.headerdata); - c[od] = ma(this.signature); - return c; + var d; + d = {}; + this.masterToken ? d[ee] = this.masterToken : d[md] = this.entityAuthenticationData; + d[fe] = ka(this.headerdata); + d[nd] = ka(this.signature); + return d; } }); - oe = function(c, a, b, d, h, l) { - new nc(c, a, b, d, h, null, l); + ke = function(d, a, b, c, h, k) { + new mc(d, a, b, c, h, null, k); }; - pd = function(c, a, b, d, h, l, g) { - n(g, function() { - var m, p; - b = d ? null : b; - if (!b && !d) throw new xa(k.MESSAGE_ENTITY_NOT_FOUND); - m = a; + od = function(d, a, b, c, h, k, f) { + n(f, function() { + var p, m; + b = c ? null : b; + if (!b && !c) throw new ta(l.MESSAGE_ENTITY_NOT_FOUND); + p = a; try { - a = ra(m); + a = oa(p); } catch (r) { - throw new xa(k.HEADER_DATA_INVALID, m, r); + throw new ta(l.HEADER_DATA_INVALID, p, r); } - if (!a || 0 == a.length) throw new xa(k.HEADER_DATA_MISSING, m); + if (!a || 0 == a.length) throw new ta(l.HEADER_DATA_MISSING, p); try { - p = J(c, b, d); + m = L(d, b, c); } catch (r) { - throw r instanceof A && (r.setEntity(d), r.setEntity(b)), r; + throw r instanceof G && (r.setEntity(c), r.setEntity(b)), r; } - Q(c, p, a, h, { - result: function(m) { - n(g, function() { - var r, v, z, w, G; + V(d, m, a, h, { + result: function(p) { + n(f, function() { + var r, x, v, y, w; try { - r = JSON.parse(m); - } catch (x) { - if (x instanceof SyntaxError) throw new aa(k.JSON_PARSE_ERROR, "headerdata " + m, x).setEntity(d).setEntity(b); - throw x; + r = JSON.parse(p); + } catch (D) { + if (D instanceof SyntaxError) throw new ba(l.JSON_PARSE_ERROR, "headerdata " + p, D).setEntity(c).setEntity(b); + throw D; } - v = parseInt(r.messageid); - if (!v || v != v) throw new aa(k.JSON_PARSE_ERROR, "headerdata " + m).setEntity(d).setEntity(b); - if (0 > v || v > Aa) throw new xa(k.MESSAGE_ID_OUT_OF_RANGE, "headerdata " + m).setEntity(d).setEntity(b); - z = d ? r.sender : null; - if (d && (!z || "string" !== typeof z)) throw new aa(k.JSON_PARSE_ERROR, "headerdata " + m).setEntity(d).setEntity(b).setMessageId(v); - w = r.keyresponsedata; - if (w && "object" !== typeof w) throw new aa(k.JSON_PARSE_ERROR, "headerdata " + m).setEntity(d).setEntity(b).setMessageId(v); - G = g; - g = { + x = parseInt(r.messageid); + if (!x || x != x) throw new ba(l.JSON_PARSE_ERROR, "headerdata " + p).setEntity(c).setEntity(b); + if (0 > x || x > Ca) throw new ta(l.MESSAGE_ID_OUT_OF_RANGE, "headerdata " + p).setEntity(c).setEntity(b); + v = c ? r.sender : null; + if (c && (!v || "string" !== typeof v)) throw new ba(l.JSON_PARSE_ERROR, "headerdata " + p).setEntity(c).setEntity(b).setMessageId(x); + y = r.keyresponsedata; + if (y && "object" !== typeof y) throw new ba(l.JSON_PARSE_ERROR, "headerdata " + p).setEntity(c).setEntity(b).setMessageId(x); + w = f; + f = { result: function(a) { - G.result(a); + w.result(a); }, error: function(a) { - a instanceof A && (a.setEntity(d), a.setEntity(b), a.setMessageId(v)); - G.error(a); + a instanceof G && (a.setEntity(c), a.setEntity(b), a.setMessageId(x)); + w.error(a); } }; - L(c, w, { + J(d, y, { result: function(u) { - n(g, function() { - var x, w; - x = !c.isPeerToPeer() && u ? u.masterToken : d; + n(f, function() { + var y, w; + y = !d.isPeerToPeer() && u ? u.masterToken : c; w = r.useridtoken; - if (w && "object" !== typeof w) throw new aa(k.JSON_PARSE_ERROR, "headerdata " + m); - E(c, w, x, { - result: function(y) { - n(g, function() { + if (w && "object" !== typeof w) throw new ba(l.JSON_PARSE_ERROR, "headerdata " + p); + C(d, w, y, { + result: function(z) { + n(f, function() { var w; w = r.userauthdata; - if (w && "object" !== typeof w) throw new aa(k.JSON_PARSE_ERROR, "headerdata " + m); - K(c, x, w, { + if (w && "object" !== typeof w) throw new ba(l.JSON_PARSE_ERROR, "headerdata " + p); + M(d, y, w, { result: function(w) { - n(g, function() { - var T, C, F; + n(f, function() { + var D, E, F; if (w) { - C = w.scheme; - F = c.getUserAuthenticationFactory(C); - if (!F) throw new sa(k.USERAUTH_FACTORY_NOT_FOUND, C).setUser(y).setUser(w); - C = d ? d.identity : b.getIdentity(); - T = F.authenticate(c, C, w, y); - } else T = y ? y.customer : null; - La(c, r.servicetokens, x, y, l, m, { - result: function(x) { - n(g, function() { - var C, F, G, N; - C = r.nonreplayableid !== ga ? parseInt(r.nonreplayableid) : null; + E = w.scheme; + F = d.getUserAuthenticationFactory(E); + if (!F) throw new qa(l.USERAUTH_FACTORY_NOT_FOUND, E).setUser(z).setUser(w); + E = c ? c.identity : b.getIdentity(); + D = F.authenticate(d, E, w, z); + } else D = z ? z.customer : null; + Ka(d, r.servicetokens, y, z, k, p, { + result: function(y) { + n(f, function() { + var E, F, P, N; + E = r.nonreplayableid !== da ? parseInt(r.nonreplayableid) : null; F = r.renewable; - if (C != C || "boolean" !== typeof F) throw new aa(k.JSON_PARSE_ERROR, "headerdata " + m); - if (0 > C || C > Aa) throw new xa(k.NONREPLAYABLE_ID_OUT_OF_RANGE, "headerdata " + m); - G = null; + if (E != E || "boolean" !== typeof F) throw new ba(l.JSON_PARSE_ERROR, "headerdata " + p); + if (0 > E || E > Ca) throw new ta(l.NONREPLAYABLE_ID_OUT_OF_RANGE, "headerdata " + p); + P = null; N = r.capabilities; if (N) { - if ("object" !== typeof N) throw new aa(k.JSON_PARSE_ERROR, "headerdata " + m); - G = ne(N); + if ("object" !== typeof N) throw new ba(l.JSON_PARSE_ERROR, "headerdata " + p); + P = je(N); } - Ha(c, r, m, { + Aa(d, r, p, { result: function(N) { - qa(c, r, u, l, m, { - result: function(m) { - n(g, function() { - var r, l, X, ca; - r = m.peerMasterToken; - l = m.peerUserIdToken; - X = m.peerServiceTokens; - ca = new va(v, C, F, G, N, u, w, y, x); - r = new f(r, l, X); - l = new q(T, z, p, a, h); - new nc(c, b, d, ca, r, l, g); + pa(d, r, u, k, p, { + result: function(p) { + n(f, function() { + var r, k, Q, l; + r = p.peerMasterToken; + k = p.peerUserIdToken; + Q = p.peerServiceTokens; + l = new sa(x, E, F, P, N, u, w, z, y); + r = new g(r, k, Q); + k = new q(D, v, m, a, h); + new mc(d, b, c, l, r, k, f); }); }, - error: g.error + error: f.error }); }, error: function(a) { - n(g, function() { - a instanceof A && (a.setUser(y), a.setUser(w)); + n(f, function() { + a instanceof G && (a.setUser(z), a.setUser(w)); throw a; }); } @@ -7564,47 +7559,47 @@ v7AA.H22 = function() { }); }, error: function(a) { - n(g, function() { - a instanceof A && (a.setEntity(x), a.setUser(y), a.setUser(w)); + n(f, function() { + a instanceof G && (a.setEntity(y), a.setUser(z), a.setUser(w)); throw a; }); } }); }); }, - error: g.error + error: f.error }); }); }, - error: g.error + error: f.error }); }); }, - error: g.error + error: f.error }); }); }, - error: g.error + error: f.error }); }); }; }()); (function() { - function q(k, n) { - this.payload = k; + function q(l, n) { + this.payload = l; this.signature = n; } - rd = fa.Class.create({ - init: function(k, q, t, L, E, K, A, qa) { - var J; - J = this; - n(qa, function() { - var I, f; - if (0 > k || k > Aa) throw new Y("Sequence number " + k + " is outside the valid range."); - if (0 > q || q > Aa) throw new Y("Message ID " + q + " is outside the valid range."); - if (A) return Object.defineProperties(this, { + qd = ha.Class.create({ + init: function(l, q, t, J, C, M, K, pa) { + var B; + B = this; + n(pa, function() { + var L, g; + if (0 > l || l > Ca) throw new ca("Sequence number " + l + " is outside the valid range."); + if (0 > q || q > Ca) throw new ca("Message ID " + q + " is outside the valid range."); + if (K) return Object.defineProperties(this, { sequenceNumber: { - value: k, + value: l, writable: !1, configurable: !1 }, @@ -7614,12 +7609,12 @@ v7AA.H22 = function() { configurable: !1 }, compressionAlgo: { - value: L, + value: J, writable: !1, configurable: !1 }, data: { - value: E, + value: C, writable: !1, configurable: !1 }, @@ -7630,35 +7625,35 @@ v7AA.H22 = function() { configurable: !1 }, payload: { - value: A.payload, + value: K.payload, writable: !1, enumerable: !1, configurable: !1 }, signature: { - value: A.signature, + value: K.signature, writable: !1, enumerable: !1, configurable: !1 } }), this; - L ? (I = sd(L, E), I || (L = null, I = E)) : (L = null, I = E); - f = {}; - f.sequencenumber = k; - f.messageid = q; - t && (f.endofmsg = t); - L && (f.compressionalgo = L); - f.data = ma(I); - I = Ma(JSON.stringify(f), Ca); - K.encrypt(I, { - result: function(c) { - n(qa, function() { - K.sign(c, { + J ? (L = rd(J, C), L || (J = null, L = C)) : (J = null, L = C); + g = {}; + g.sequencenumber = l; + g.messageid = q; + t && (g.endofmsg = t); + J && (g.compressionalgo = J); + g.data = ka(L); + L = Oa(JSON.stringify(g), Ba); + M.encrypt(L, { + result: function(d) { + n(pa, function() { + M.sign(d, { result: function(a) { - n(qa, function() { + n(pa, function() { Object.defineProperties(this, { sequenceNumber: { - value: k, + value: l, writable: !1, configurable: !1 }, @@ -7668,12 +7663,12 @@ v7AA.H22 = function() { configurable: !1 }, compressionAlgo: { - value: L, + value: J, writable: !1, configurable: !1 }, data: { - value: E, + value: C, writable: !1, configurable: !1 }, @@ -7684,7 +7679,7 @@ v7AA.H22 = function() { configurable: !1 }, payload: { - value: c, + value: d, writable: !1, enumerable: !1, configurable: !1 @@ -7697,303 +7692,303 @@ v7AA.H22 = function() { } }); return this; - }, J); + }, B); }, error: function(a) { - qa.error(a); + pa.error(a); } }); - }, J); + }, B); }, - error: function(c) { - qa.error(c); + error: function(d) { + pa.error(d); } }); - }, J); + }, B); }, isEndOfMessage: function() { return this.endofmsg; }, toJSON: function() { - var k; - k = {}; - k.payload = ma(this.payload); - k.signature = ma(this.signature); - return k; + var l; + l = {}; + l.payload = ka(this.payload); + l.signature = ka(this.signature); + return l; } }); - se = function(k, n, q, t, E, K, A) { - new rd(k, n, q, t, E, K, null, A); + oe = function(l, n, q, t, C, M, K) { + new qd(l, n, q, t, C, M, null, K); }; - te = function(t, J, Q) { - n(Q, function() { - var L, E, K, I; - L = t.payload; - E = t.signature; - if (!L || "string" !== typeof L || "string" !== typeof E) throw new aa(k.JSON_PARSE_ERROR, "payload chunk " + JSON.stringify(t)); + pe = function(t, L, V) { + n(V, function() { + var B, C, M, K; + B = t.payload; + C = t.signature; + if (!B || "string" !== typeof B || "string" !== typeof C) throw new ba(l.JSON_PARSE_ERROR, "payload chunk " + JSON.stringify(t)); try { - K = ra(L); - } catch (qa) { - throw new xa(k.PAYLOAD_INVALID, "payload chunk " + JSON.stringify(t), qa); + M = oa(B); + } catch (pa) { + throw new ta(l.PAYLOAD_INVALID, "payload chunk " + JSON.stringify(t), pa); } try { - I = ra(E); - } catch (qa) { - throw new xa(k.PAYLOAD_SIGNATURE_INVALID, "payload chunk " + JSON.stringify(t), qa); - } - J.verify(K, I, { - result: function(E) { - n(Q, function() { - if (!E) throw new P(k.PAYLOAD_VERIFICATION_FAILED); - J.decrypt(K, { - result: function(E) { - n(Q, function() { - var n, f, c, a, b, d, h; - n = Ia(E, Ca); + K = oa(C); + } catch (pa) { + throw new ta(l.PAYLOAD_SIGNATURE_INVALID, "payload chunk " + JSON.stringify(t), pa); + } + L.verify(M, K, { + result: function(C) { + n(V, function() { + if (!C) throw new R(l.PAYLOAD_VERIFICATION_FAILED); + L.decrypt(M, { + result: function(C) { + n(V, function() { + var n, g, d, a, b, c, h; + n = Ra(C, Ba); try { - f = JSON.parse(n); - } catch (l) { - if (l instanceof SyntaxError) throw new aa(k.JSON_PARSE_ERROR, "payload chunk payload " + n, l); - throw l; + g = JSON.parse(n); + } catch (k) { + if (k instanceof SyntaxError) throw new ba(l.JSON_PARSE_ERROR, "payload chunk payload " + n, k); + throw k; } - c = parseInt(f.sequencenumber); - a = parseInt(f.messageid); - b = f.endofmsg; - d = f.compressionalgo; - f = f.data; - if (!c || c != c || !a || a != a || b && "boolean" !== typeof b || d && "string" !== typeof d || "string" !== typeof f) throw new aa(k.JSON_PARSE_ERROR, "payload chunk payload " + n); - if (0 > c || c > Aa) throw new A(k.PAYLOAD_SEQUENCE_NUMBER_OUT_OF_RANGE, "payload chunk payload " + n); - if (0 > a || a > Aa) throw new A(k.PAYLOAD_MESSAGE_ID_OUT_OF_RANGE, "payload chunk payload " + n); + d = parseInt(g.sequencenumber); + a = parseInt(g.messageid); + b = g.endofmsg; + c = g.compressionalgo; + g = g.data; + if (!d || d != d || !a || a != a || b && "boolean" !== typeof b || c && "string" !== typeof c || "string" !== typeof g) throw new ba(l.JSON_PARSE_ERROR, "payload chunk payload " + n); + if (0 > d || d > Ca) throw new G(l.PAYLOAD_SEQUENCE_NUMBER_OUT_OF_RANGE, "payload chunk payload " + n); + if (0 > a || a > Ca) throw new G(l.PAYLOAD_MESSAGE_ID_OUT_OF_RANGE, "payload chunk payload " + n); b || (b = !1); - if (d && !Nb[d]) throw new xa(k.UNIDENTIFIED_COMPRESSION, d); + if (c && !Nb[c]) throw new ta(l.UNIDENTIFIED_COMPRESSION, c); try { - h = ra(f); - } catch (l) { - throw new xa(k.PAYLOAD_DATA_CORRUPT, f, l); + h = oa(g); + } catch (k) { + throw new ta(l.PAYLOAD_DATA_CORRUPT, g, k); } - if (h && 0 != h.length) n = d ? Jc(d, h) : h; + if (h && 0 != h.length) n = c ? Kc(c, h) : h; else { - if (0 < f.length) throw new xa(k.PAYLOAD_DATA_CORRUPT, f); + if (0 < g.length) throw new ta(l.PAYLOAD_DATA_CORRUPT, g); if (b) n = new Uint8Array(0); - else throw new xa(k.PAYLOAD_DATA_MISSING, f); + else throw new ta(l.PAYLOAD_DATA_MISSING, g); } - h = new q(K, I); - new rd(c, a, b, d, n, J, h, Q); + h = new q(M, K); + new qd(d, a, b, c, n, L, h, V); }); }, - error: function(k) { - Q.error(k); + error: function(l) { + V.error(l); } }); }); }, - error: function(k) { - Q.error(k); + error: function(l) { + V.error(l); } }); }); }; }()); (function() { - var Q, L; + var V, J; - function q(q, t, J, L, I) { - var f, c, a, b, d; + function q(q, t, L, B, J) { + var g, d, a, b, c; - function E() { - n(I, function() { - var h, l; - c >= t.length && (c = 0, ++f); - if (f >= a.length) { + function C() { + n(J, function() { + var h, k; + d >= t.length && (d = 0, ++g); + if (g >= a.length) { if (b) throw b; - throw new Ga(k.KEYX_FACTORY_NOT_FOUND, JSON.stringify(t)); + throw new Ha(l.KEYX_FACTORY_NOT_FOUND, JSON.stringify(t)); } - h = a[f]; - l = t[c]; - h.scheme != l.keyExchangeScheme ? (++c, E()) : h.generateResponse(q, l, d, { + h = a[g]; + k = t[d]; + h.scheme != k.keyExchangeScheme ? (++d, C()) : h.generateResponse(q, k, c, { result: function(a) { - I.result(a); + J.result(a); }, error: function(a) { - n(I, function() { - if (!(a instanceof A)) throw a; + n(J, function() { + if (!(a instanceof G)) throw a; b = a; - ++c; - E(); + ++d; + C(); }); } }); }); } - f = 0; - c = 0; + g = 0; + d = 0; a = q.getKeyExchangeFactories(); - d = J ? J : L; - E(); + c = L ? L : B; + C(); } - function t(k, t, J, L, I) { - n(I, function() { - var E; - E = t.keyRequestData; - if (t.isRenewable() && 0 < E.length) L ? L.isRenewable() || L.isExpired() ? q(k, E, L, null, I) : k.getTokenFactory().isNewestMasterToken(k, L, { - result: function(f) { - n(I, function() { - if (f) return null; - q(k, E, L, null, I); + function t(l, t, L, B, J) { + n(J, function() { + var C; + C = t.keyRequestData; + if (t.isRenewable() && 0 < C.length) B ? B.isRenewable() || B.isExpired() ? q(l, C, B, null, J) : l.getTokenFactory().isNewestMasterToken(l, B, { + result: function(g) { + n(J, function() { + if (g) return null; + q(l, C, B, null, J); }); }, - error: I.error - }) : q(k, E, null, J.getIdentity(), I); + error: J.error + }) : q(l, C, null, L.getIdentity(), J); else return null; }); } - function J(q, t, J, L) { + function L(q, t, B, L) { n(L, function() { - var n, E, f, c; + var n, C, g, d; n = t.userIdToken; - E = t.userAuthenticationData; - f = t.messageId; + C = t.userAuthenticationData; + g = t.messageId; if (n && n.isVerified()) { - if (n.isRenewable() && t.isRenewable() || n.isExpired() || !n.isBoundTo(J)) { - E = q.getTokenFactory(); - E.renewUserIdToken(q, n, J, L); + if (n.isRenewable() && t.isRenewable() || n.isExpired() || !n.isBoundTo(B)) { + C = q.getTokenFactory(); + C.renewUserIdToken(q, n, B, L); return; } - } else if (t.isRenewable() && J && E) { + } else if (t.isRenewable() && B && C) { n = t.customer; if (!n) { - n = E.scheme; - c = q.getUserAuthenticationFactory(n); - if (!c) throw new sa(k.USERAUTH_FACTORY_NOT_FOUND, n).setEntity(J).setUser(E).setMessageId(f); - n = c.authenticate(q, J.identity, E, null); + n = C.scheme; + d = q.getUserAuthenticationFactory(n); + if (!d) throw new qa(l.USERAUTH_FACTORY_NOT_FOUND, n).setEntity(B).setUser(C).setMessageId(g); + n = d.authenticate(q, B.identity, C, null); } - E = q.getTokenFactory(); - E.createUserIdToken(q, n, J, L); + C = q.getTokenFactory(); + C.createUserIdToken(q, n, B, L); return; } return n; }); } - Q = new Uint8Array(0); - L = Tb = function(k) { - if (0 > k || k > Aa) throw new Y("Message ID " + k + " is outside the valid range."); - return k == Aa ? 0 : k + 1; + V = new Uint8Array(0); + J = Tb = function(l) { + if (0 > l || l > Ca) throw new ca("Message ID " + l + " is outside the valid range."); + return l == Ca ? 0 : l + 1; }; - dc = function(k) { - if (0 > k || k > Aa) throw new Y("Message ID " + k + " is outside the valid range."); - return 0 == k ? Aa : k - 1; + dc = function(l) { + if (0 > l || l > Ca) throw new ca("Message ID " + l + " is outside the valid range."); + return 0 == l ? Ca : l - 1; }; - Ub = function(k, q, t, J, L) { + Ub = function(l, q, t, B, L) { n(L, function() { - var E; - if (J == ga || null == J) { - E = k.getRandom(); - do J = E.nextLong(); while (0 > J || J > Aa); - } else if (0 > J || J > Aa) throw new Y("Message ID " + J + " is outside the valid range."); - k.getEntityAuthenticationData(null, { - result: function(f) { + var C; + if (B == da || null == B) { + C = l.getRandom(); + do B = C.nextLong(); while (0 > B || B > Ca); + } else if (0 > B || B > Ca) throw new ca("Message ID " + B + " is outside the valid range."); + l.getEntityAuthenticationData(null, { + result: function(g) { n(L, function() { - var c; - c = k.getMessageCapabilities(); - return new Kc(k, J, c, f, q, t, null, null, null, null, null); + var d; + d = l.getMessageCapabilities(); + return new Lc(l, B, d, g, q, t, null, null, null, null, null); }); }, - error: function(f) { - L.error(f); + error: function(g) { + L.error(g); } }); }); }; - ue = function(k, q, I) { - n(I, function() { - var K, Q, f, c, a, b; + qe = function(l, q, B) { + n(B, function() { + var M, V, g, d, a, b; - function E(b) { - n(I, function() { - b instanceof A && (b.setEntity(K), b.setEntity(Q), b.setUser(f), b.setUser(c), b.setMessageId(a)); + function C(b) { + n(B, function() { + b instanceof G && (b.setEntity(M), b.setEntity(V), b.setUser(g), b.setUser(d), b.setMessageId(a)); throw b; }); } - K = q.masterToken; - Q = q.entityAuthenticationData; - f = q.userIdToken; - c = q.userAuthenticationData; + M = q.masterToken; + V = q.entityAuthenticationData; + g = q.userIdToken; + d = q.userAuthenticationData; a = q.messageId; - b = L(a); - t(k, q, Q, K, { + b = J(a); + t(l, q, V, M, { result: function(a) { - n(I, function() { + n(B, function() { var c; - c = a ? a.keyResponseData.masterToken : c = K; - k.getEntityAuthenticationData(null, { + c = a ? a.keyResponseData.masterToken : c = M; + l.getEntityAuthenticationData(null, { result: function(d) { - n(I, function() { - J(k, q, c, { - result: function(c) { - n(I, function() { - var g, p, r; - f = c; - g = qd(q.messageCapabilities, k.getMessageCapabilities()); - p = q.keyResponseData; + n(B, function() { + L(l, q, c, { + result: function(f) { + n(B, function() { + var c, m, r; + g = f; + c = pd(q.messageCapabilities, l.getMessageCapabilities()); + m = q.keyResponseData; r = q.serviceTokens; - return k.isPeerToPeer() ? new Kc(k, b, g, d, p ? p.masterToken : q.peerMasterToken, q.peerUserIdToken, q.peerServiceTokens, K, f, r, a) : new Kc(k, b, g, d, p ? p.masterToken : K, f, r, null, null, null, a); + return l.isPeerToPeer() ? new Lc(l, b, c, d, m ? m.masterToken : q.peerMasterToken, q.peerUserIdToken, q.peerServiceTokens, M, g, r, a) : new Lc(l, b, c, d, m ? m.masterToken : M, g, r, null, null, null, a); }); }, - error: E + error: C }); }); }, - error: E + error: C }); }); }, - error: E + error: C }); }); }; - ve = function(k, q, t, J, I) { - n(I, function() { - k.getEntityAuthenticationData(null, { - result: function(E) { - n(I, function() { - var f, c; - if (q != ga && null != q) f = L(q); + re = function(l, q, t, B, L) { + n(L, function() { + l.getEntityAuthenticationData(null, { + result: function(C) { + n(L, function() { + var g, d; + if (q != da && null != q) g = J(q); else { - c = k.getRandom(); - do f = c.nextInt(); while (0 > f || f > Aa); + d = l.getRandom(); + do g = d.nextInt(); while (0 > g || g > Ca); } - me(k, E, f, t.responseCode, t.internalCode, t.message, J, I); + ie(l, C, g, t.responseCode, t.internalCode, t.message, B, L); }); }, - error: function(k) { - I.error(k); + error: function(l) { + L.error(l); } }); }); }; - Kc = fa.Class.create({ - init: function(k, n, q, t, J, L, f, c, a, b, d) { - var h, l, g, m, p; - if (!k.isPeerToPeer() && (c || a)) throw new Y("Cannot set peer master token or peer user ID token when not in peer-to-peer mode."); - h = d && !k.isPeerToPeer() ? d.keyResponseData.masterToken : J; - l = {}; - k.getMslStore().getServiceTokens(h, L).forEach(function(a) { - l[a.name] = a; + Lc = ha.Class.create({ + init: function(l, n, q, t, B, L, g, d, a, b, c) { + var h, k, f, p, m; + if (!l.isPeerToPeer() && (d || a)) throw new ca("Cannot set peer master token or peer user ID token when not in peer-to-peer mode."); + h = c && !l.isPeerToPeer() ? c.keyResponseData.masterToken : B; + k = {}; + l.getMslStore().getServiceTokens(h, L).forEach(function(a) { + k[a.name] = a; }, this); - f && f.forEach(function(a) { - l[a.name] = a; + g && g.forEach(function(a) { + k[a.name] = a; }, this); - p = {}; - k.isPeerToPeer() && (g = c, m = a, f = d ? d.keyResponseData.masterToken : c, k.getMslStore().getServiceTokens(f, a).forEach(function(a) { - p[a.name] = a; + m = {}; + l.isPeerToPeer() && (f = d, p = a, g = c ? c.keyResponseData.masterToken : d, l.getMslStore().getServiceTokens(g, a).forEach(function(a) { + m[a.name] = a; }, this), b && b.forEach(function(a) { - p[a.name] = a; + m[a.name] = a; }, this)); Object.defineProperties(this, { _ctx: { - value: k, + value: l, writable: !1, enumerable: !1, configurable: !1 @@ -8005,7 +8000,7 @@ v7AA.H22 = function() { configurable: !1 }, _masterToken: { - value: J, + value: B, writable: !0, enumerable: !1, configurable: !1 @@ -8023,7 +8018,7 @@ v7AA.H22 = function() { configurable: !1 }, _keyExchangeData: { - value: d, + value: c, writable: !1, enumerable: !1, configurable: !1 @@ -8059,25 +8054,25 @@ v7AA.H22 = function() { configurable: !1 }, _serviceTokens: { - value: l, + value: k, writable: !1, enumerable: !1, configurable: !1 }, _peerMasterToken: { - value: g, + value: f, writable: !0, enumerable: !1, configurable: !1 }, _peerUserIdToken: { - value: m, + value: p, writable: !0, enumerable: !1, configurable: !1 }, _peerServiceTokens: { - value: p, + value: m, writable: !1, enumerable: !1, configurable: !1 @@ -8103,141 +8098,141 @@ v7AA.H22 = function() { return this._masterToken || !this._ctx.isPeerToPeer() && this._keyExchangeData || Sc(this._entityAuthData.scheme); }, willIntegrityProtectHeader: function() { - return this._masterToken || Cd(this._entityAuthData.scheme); + return this._masterToken || zd(this._entityAuthData.scheme); }, willIntegrityProtectPayloads: function() { - return this._masterToken || !this._ctx.isPeerToPeer() && this._keyExchangeData || Cd(this._entityAuthData.scheme); + return this._masterToken || !this._ctx.isPeerToPeer() && this._keyExchangeData || zd(this._entityAuthData.scheme); }, getHeader: function(q) { n(q, function() { - var n, E, t, J, L; + var n, C, t, B, L; n = this._keyExchangeData ? this._keyExchangeData.keyResponseData : null; - E = []; - for (t in this._serviceTokens) E.push(this._serviceTokens[t]); - J = []; - for (L in this._keyRequestData) J.push(this._keyRequestData[L]); + C = []; + for (t in this._serviceTokens) C.push(this._serviceTokens[t]); + B = []; + for (L in this._keyRequestData) B.push(this._keyRequestData[L]); if (this._nonReplayable) { - if (!this._masterToken) throw new xa(k.NONREPLAYABLE_MESSAGE_REQUIRES_MASTERTOKEN); + if (!this._masterToken) throw new ta(l.NONREPLAYABLE_MESSAGE_REQUIRES_MASTERTOKEN); L = this._ctx.getMslStore().getNonReplayableId(this._masterToken); } else L = null; - n = new pe(this._messageId, L, this._renewable, this._capabilities, J, n, this._userAuthData, this._userIdToken, E); - E = []; - for (t in this._peerServiceTokens) E.push(this._peerServiceTokens[t]); - t = new qe(this._peerMasterToken, this._peerUserIdToken, E); - oe(this._ctx, this._entityAuthData, this._masterToken, n, t, q); + n = new le(this._messageId, L, this._renewable, this._capabilities, B, n, this._userAuthData, this._userIdToken, C); + C = []; + for (t in this._peerServiceTokens) C.push(this._peerServiceTokens[t]); + t = new me(this._peerMasterToken, this._peerUserIdToken, C); + ke(this._ctx, this._entityAuthData, this._masterToken, n, t, q); }, this); }, isNonReplayable: function() { return this._nonReplayable; }, - setNonReplayable: function(k) { - this._nonReplayable = k; + setNonReplayable: function(l) { + this._nonReplayable = l; return this; }, isRenewable: function() { return this._renewable; }, - setRenewable: function(k) { - this._renewable = k; + setRenewable: function(l) { + this._renewable = l; return this; }, - setAuthTokens: function(k, n) { - var q, t, E; - if (n && !n.isBoundTo(k)) throw new Y("User ID token must be bound to master token."); - if (this._keyExchangeData && !this._ctx.isPeerToPeer()) throw new Y("Attempt to set message builder master token when key exchange data exists as a trusted network server."); + setAuthTokens: function(l, n) { + var q, C, t; + if (n && !n.isBoundTo(l)) throw new ca("User ID token must be bound to master token."); + if (this._keyExchangeData && !this._ctx.isPeerToPeer()) throw new ca("Attempt to set message builder master token when key exchange data exists as a trusted network server."); try { - q = this._ctx.getMslStore().getServiceTokens(k, n); - } catch (va) { - if (va instanceof A) throw new Y("Invalid master token and user ID token combination despite checking above.", va); - throw va; - } - t = []; - for (E in this._serviceTokens) t.push(this._serviceTokens[E]); - t.forEach(function(q) { - (q.isUserIdTokenBound() && !q.isBoundTo(n) || q.isMasterTokenBound() && !q.isBoundTo(k)) && delete this._serviceTokens[q.name]; + q = this._ctx.getMslStore().getServiceTokens(l, n); + } catch (sa) { + if (sa instanceof G) throw new ca("Invalid master token and user ID token combination despite checking above.", sa); + throw sa; + } + C = []; + for (t in this._serviceTokens) C.push(this._serviceTokens[t]); + C.forEach(function(q) { + (q.isUserIdTokenBound() && !q.isBoundTo(n) || q.isMasterTokenBound() && !q.isBoundTo(l)) && delete this._serviceTokens[q.name]; }, this); - q.forEach(function(k) { - this._serviceTokens[k.name] = k; + q.forEach(function(l) { + this._serviceTokens[l.name] = l; }, this); - this._masterToken = k; + this._masterToken = l; this._userIdToken = n; }, - setUserAuthenticationData: function(k) { - this._userAuthData = k; + setUserAuthenticationData: function(l) { + this._userAuthData = l; return this; }, - setCustomer: function(k, q) { - var t; - t = this; + setCustomer: function(l, q) { + var C; + C = this; n(q, function() { - var E; - if (!this._ctx.isPeerToPeer() && null != this._userIdToken || this._ctx.isPeerToPeer() && null != this._peerUserIdToken) throw new Y("User ID token or peer user ID token already exists for the remote user."); - E = this._keyExchangeData ? this._keyExchangeData.keyResponseData.masterToken : this._ctx.isPeerToPeer() ? this._peerMasterToken : this._masterToken; - if (!E) throw new Y("User ID token or peer user ID token cannot be created because no corresponding master token exists."); - this._ctx.getTokenFactory().createUserIdToken(this._ctx, k, E, { - result: function(k) { + var t; + if (!this._ctx.isPeerToPeer() && null != this._userIdToken || this._ctx.isPeerToPeer() && null != this._peerUserIdToken) throw new ca("User ID token or peer user ID token already exists for the remote user."); + t = this._keyExchangeData ? this._keyExchangeData.keyResponseData.masterToken : this._ctx.isPeerToPeer() ? this._peerMasterToken : this._masterToken; + if (!t) throw new ca("User ID token or peer user ID token cannot be created because no corresponding master token exists."); + this._ctx.getTokenFactory().createUserIdToken(this._ctx, l, t, { + result: function(l) { n(q, function() { - this._ctx.isPeerToPeer() ? this._peerUserIdToken = k : (this._userIdToken = k, this._userAuthData = null); + this._ctx.isPeerToPeer() ? this._peerUserIdToken = l : (this._userIdToken = l, this._userAuthData = null); return !0; - }, t); + }, C); }, - error: function(k) { - q.error(k); + error: function(l) { + q.error(l); } }); - }, t); + }, C); }, - addKeyRequestData: function(k) { - this._keyRequestData[k.uniqueKey()] = k; + addKeyRequestData: function(l) { + this._keyRequestData[l.uniqueKey()] = l; return this; }, - removeKeyRequestData: function(k) { - delete this._keyRequestData[k.uniqueKey()]; + removeKeyRequestData: function(l) { + delete this._keyRequestData[l.uniqueKey()]; return this; }, addServiceToken: function(n) { var q; q = this._keyExchangeData && !this._ctx.isPeerToPeer() ? this._keyExchangeData.keyResponseData.masterToken : this._masterToken; - if (n.isMasterTokenBound() && !n.isBoundTo(q)) throw new xa(k.SERVICETOKEN_MASTERTOKEN_MISMATCH, "st " + JSON.stringify(n) + "; mt " + JSON.stringify(q)).setEntity(q); - if (n.isUserIdTokenBound() && !n.isBoundTo(this._userIdToken)) throw new xa(k.SERVICETOKEN_USERIDTOKEN_MISMATCH, "st " + JSON.stringify(n) + "; uit " + JSON.stringify(this._userIdToken)).setEntity(q).setUser(this._userIdToken); + if (n.isMasterTokenBound() && !n.isBoundTo(q)) throw new ta(l.SERVICETOKEN_MASTERTOKEN_MISMATCH, "st " + JSON.stringify(n) + "; mt " + JSON.stringify(q)).setEntity(q); + if (n.isUserIdTokenBound() && !n.isBoundTo(this._userIdToken)) throw new ta(l.SERVICETOKEN_USERIDTOKEN_MISMATCH, "st " + JSON.stringify(n) + "; uit " + JSON.stringify(this._userIdToken)).setEntity(q).setUser(this._userIdToken); this._serviceTokens[n.name] = n; return this; }, - addServiceTokenIfAbsent: function(k) { - this._serviceTokens[k.name] || this.addServiceToken(k); + addServiceTokenIfAbsent: function(l) { + this._serviceTokens[l.name] || this.addServiceToken(l); return this; }, - excludeServiceToken: function(k) { - delete this._serviceTokens[k]; + excludeServiceToken: function(l) { + delete this._serviceTokens[l]; return this; }, - deleteServiceToken: function(k, q) { + deleteServiceToken: function(l, q) { var t; t = this; n(q, function() { - var E, K; - E = this._serviceTokens[k]; - if (!E) return this; - K = E.isMasterTokenBound() ? this._masterToken : null; - E = E.isUserIdTokenBound() ? this._userIdToken : null; - Cb(this._ctx, k, Q, K, E, !1, null, new cc(), { - result: function(k) { + var C, M; + C = this._serviceTokens[l]; + if (!C) return this; + M = C.isMasterTokenBound() ? this._masterToken : null; + C = C.isUserIdTokenBound() ? this._userIdToken : null; + Eb(this._ctx, l, V, M, C, !1, null, new cc(), { + result: function(l) { n(q, function() { - return this.addServiceToken(k); + return this.addServiceToken(l); }, t); }, - error: function(k) { - k instanceof A && (k = new Y("Failed to create and add empty service token to message.", k)); - q.error(k); + error: function(l) { + l instanceof G && (l = new ca("Failed to create and add empty service token to message.", l)); + q.error(l); } }); }, t); }, getServiceTokens: function() { - var k, n; - k = []; - for (n in this._serviceTokens) k.push(this._serviceTokens[n]); - return k; + var l, n; + l = []; + for (n in this._serviceTokens) l.push(this._serviceTokens[n]); + return l; }, getPeerMasterToken: function() { return this._peerMasterToken; @@ -8247,89 +8242,89 @@ v7AA.H22 = function() { }, setPeerAuthTokens: function(n, q) { var t; - if (!this._ctx.isPeerToPeer()) throw new Y("Cannot set peer master token or peer user ID token when not in peer-to-peer mode."); - if (q && !n) throw new Y("Peer master token cannot be null when setting peer user ID token."); - if (q && !q.isBoundTo(n)) throw new xa(k.USERIDTOKEN_MASTERTOKEN_MISMATCH, "uit " + q + "; mt " + n).setEntity(n).setUser(q); + if (!this._ctx.isPeerToPeer()) throw new ca("Cannot set peer master token or peer user ID token when not in peer-to-peer mode."); + if (q && !n) throw new ca("Peer master token cannot be null when setting peer user ID token."); + if (q && !q.isBoundTo(n)) throw new ta(l.USERIDTOKEN_MASTERTOKEN_MISMATCH, "uit " + q + "; mt " + n).setEntity(n).setUser(q); try { t = this._ctx.getMslStore().getServiceTokens(n, q); - } catch (qa) { - if (qa instanceof A) throw new Y("Invalid peer master token and user ID token combination despite proper check.", qa); - throw qa; + } catch (pa) { + if (pa instanceof G) throw new ca("Invalid peer master token and user ID token combination despite proper check.", pa); + throw pa; } - Object.keys(this._peerServiceTokens).forEach(function(k) { + Object.keys(this._peerServiceTokens).forEach(function(l) { var t; - t = this._peerServiceTokens[k]; - t.isUserIdTokenBound() && !t.isBoundTo(q) ? delete this._peerServiceTokens[k] : t.isMasterTokenBound() && !t.isBoundTo(n) && delete this._peerServiceTokens[k]; + t = this._peerServiceTokens[l]; + t.isUserIdTokenBound() && !t.isBoundTo(q) ? delete this._peerServiceTokens[l] : t.isMasterTokenBound() && !t.isBoundTo(n) && delete this._peerServiceTokens[l]; }, this); - t.forEach(function(k) { + t.forEach(function(l) { var n; - n = k.name; - this._peerServiceTokens[n] || (this._peerServiceTokens[n] = k); + n = l.name; + this._peerServiceTokens[n] || (this._peerServiceTokens[n] = l); }, this); this._peerUserIdToken = q; this._peerMasterToken = n; return this; }, addPeerServiceToken: function(n) { - if (!this._ctx.isPeerToPeer()) throw new Y("Cannot set peer service tokens when not in peer-to-peer mode."); - if (n.isMasterTokenBound() && !n.isBoundTo(this._peerMasterToken)) throw new xa(k.SERVICETOKEN_MASTERTOKEN_MISMATCH, "st " + JSON.stringify(n) + "; mt " + JSON.stringify(this._peerMasterToken)).setEntity(this._peerMasterToken); - if (n.isUserIdTokenBound() && !n.isBoundTo(this._peerUserIdToken)) throw new xa(k.SERVICETOKEN_USERIDTOKEN_MISMATCH, "st " + JSON.stringify(n) + "; uit " + JSON.stringify(this._peerUserIdToken)).setEntity(this._peerMasterToken).setUser(this._peerUserIdToken); + if (!this._ctx.isPeerToPeer()) throw new ca("Cannot set peer service tokens when not in peer-to-peer mode."); + if (n.isMasterTokenBound() && !n.isBoundTo(this._peerMasterToken)) throw new ta(l.SERVICETOKEN_MASTERTOKEN_MISMATCH, "st " + JSON.stringify(n) + "; mt " + JSON.stringify(this._peerMasterToken)).setEntity(this._peerMasterToken); + if (n.isUserIdTokenBound() && !n.isBoundTo(this._peerUserIdToken)) throw new ta(l.SERVICETOKEN_USERIDTOKEN_MISMATCH, "st " + JSON.stringify(n) + "; uit " + JSON.stringify(this._peerUserIdToken)).setEntity(this._peerMasterToken).setUser(this._peerUserIdToken); this._peerServiceTokens[n.name] = n; return this; }, - addPeerServiceTokenIfAbsent: function(k) { - this._peerServiceTokens[k.name] || this.addPeerServiceToken(k); + addPeerServiceTokenIfAbsent: function(l) { + this._peerServiceTokens[l.name] || this.addPeerServiceToken(l); return this; }, - excludePeerServiceToken: function(k) { - delete this._peerServiceTokens[k]; + excludePeerServiceToken: function(l) { + delete this._peerServiceTokens[l]; return this; }, - deletePeerServiceToken: function(k, q) { + deletePeerServiceToken: function(l, q) { var t; t = this; n(q, function() { - var E, K; - E = this._peerServiceTokens[k]; - if (!E) return this; - K = E.isMasterTokenBound() ? this._peerMasterToken : null; - E = E.isUserIdTokenBound() ? this._peerUserIdToken : null; - Cb(this._ctx, k, Q, K, E, !1, null, new cc(), { - result: function(k) { + var C, B; + C = this._peerServiceTokens[l]; + if (!C) return this; + B = C.isMasterTokenBound() ? this._peerMasterToken : null; + C = C.isUserIdTokenBound() ? this._peerUserIdToken : null; + Eb(this._ctx, l, V, B, C, !1, null, new cc(), { + result: function(l) { n(q, function() { - return this.addPeerServiceToken(k); + return this.addPeerServiceToken(l); }, t); }, - error: function(k) { - k instanceof A && (k = new Y("Failed to create and add empty peer service token to message.", k)); - q.error(k); + error: function(l) { + l instanceof G && (l = new ca("Failed to create and add empty peer service token to message.", l)); + q.error(l); } }); }, t); }, getPeerServiceTokens: function() { - var k, n; - k = []; - for (n in this._peerServiceTokens) k.push(this._peerServiceTokens[n]); - return k; + var l, n; + l = []; + for (n in this._peerServiceTokens) l.push(this._peerServiceTokens[n]); + return l; } }); }()); (function() { - function k(k, n) { - return n[k] ? n[k] : n[""]; + function l(l, n) { + return n[l] ? n[l] : n[""]; } - function q(k) { + function q(l) { var n; - n = k.builder.getKeyExchangeData(); - return n && !k.ctx.isPeerToPeer() ? n.keyResponseData.masterToken : k.builder.getMasterToken(); + n = l.builder.getKeyExchangeData(); + return n && !l.ctx.isPeerToPeer() ? n.keyResponseData.masterToken : l.builder.getMasterToken(); } - we = fa.Class.create({ - init: function(k, n, q) { - k = { + se = ha.Class.create({ + init: function(l, n, q) { + l = { ctx: { - value: k, + value: l, writable: !1, enumerable: !1, configurable: !1 @@ -8347,7 +8342,7 @@ v7AA.H22 = function() { configurable: !1 } }; - Object.defineProperties(this, k); + Object.defineProperties(this, l); }, isPrimaryMasterTokenAvailable: function() { return q(this) ? !0 : !1; @@ -8367,220 +8362,220 @@ v7AA.H22 = function() { getPeerServiceTokens: function() { return this.builder.getPeerServiceTokens(); }, - addPrimaryServiceToken: function(k) { + addPrimaryServiceToken: function(l) { try { - return this.builder.addServiceToken(k), !0; - } catch (Q) { - if (Q instanceof xa) return !1; - throw Q; + return this.builder.addServiceToken(l), !0; + } catch (V) { + if (V instanceof ta) return !1; + throw V; } }, - addPeerServiceToken: function(k) { + addPeerServiceToken: function(l) { try { - return this.builder.addPeerServiceToken(k), !0; - } catch (Q) { - if (Q instanceof xa) return !1; - throw Q; + return this.builder.addPeerServiceToken(l), !0; + } catch (V) { + if (V instanceof ta) return !1; + throw V; } }, - addUnboundPrimaryServiceToken: function(q, t, L, E, K) { - var J; - J = this; - n(K, function() { - var I; - I = k(q, this.cryptoContexts); - if (!I) return !1; - Cb(this.ctx, q, t, null, null, L, E, I, { - result: function(k) { - n(K, function() { + addUnboundPrimaryServiceToken: function(q, t, B, C, M) { + var L; + L = this; + n(M, function() { + var J; + J = l(q, this.cryptoContexts); + if (!J) return !1; + Eb(this.ctx, q, t, null, null, B, C, J, { + result: function(l) { + n(M, function() { try { - this.builder.addServiceToken(k); - } catch (va) { - if (va instanceof xa) throw new Y("Service token bound to incorrect authentication tokens despite being unbound.", va); - throw va; + this.builder.addServiceToken(l); + } catch (sa) { + if (sa instanceof ta) throw new ca("Service token bound to incorrect authentication tokens despite being unbound.", sa); + throw sa; } return !0; - }, J); + }, L); }, - error: function(k) { - K.error(k); + error: function(l) { + M.error(l); } }); - }, J); + }, L); }, - addUnboundPeerServiceToken: function(q, t, L, E, K) { - var J; - J = this; - n(K, function() { - var I; - I = k(q, this.cryptoContexts); - if (!I) return !1; - Cb(this.ctx, q, t, null, null, L, E, I, { - result: function(k) { - n(K, function() { + addUnboundPeerServiceToken: function(q, t, B, C, M) { + var L; + L = this; + n(M, function() { + var J; + J = l(q, this.cryptoContexts); + if (!J) return !1; + Eb(this.ctx, q, t, null, null, B, C, J, { + result: function(l) { + n(M, function() { try { - this.builder.addPeerServiceToken(k); - } catch (va) { - if (va instanceof xa) throw new Y("Service token bound to incorrect authentication tokens despite being unbound.", va); - throw va; + this.builder.addPeerServiceToken(l); + } catch (sa) { + if (sa instanceof ta) throw new ca("Service token bound to incorrect authentication tokens despite being unbound.", sa); + throw sa; } return !0; - }, J); + }, L); }, - error: function(k) { - K.error(k); + error: function(l) { + M.error(l); } }); - }, J); + }, L); }, - addMasterBoundPrimaryServiceToken: function(t, I, L, E, K) { - var J; - J = this; - n(K, function() { - var Q, A; - Q = q(this); - if (!Q) return !1; - A = k(t, this.cryptoContexts); - if (!A) return !1; - Cb(this.ctx, t, I, Q, null, L, E, A, { - result: function(k) { - n(K, function() { + addMasterBoundPrimaryServiceToken: function(t, B, J, C, M) { + var L; + L = this; + n(M, function() { + var V, K; + V = q(this); + if (!V) return !1; + K = l(t, this.cryptoContexts); + if (!K) return !1; + Eb(this.ctx, t, B, V, null, J, C, K, { + result: function(l) { + n(M, function() { try { - this.builder.addServiceToken(k); - } catch (f) { - if (f instanceof xa) throw new Y("Service token bound to incorrect authentication tokens despite setting correct master token.", f); - throw f; + this.builder.addServiceToken(l); + } catch (g) { + if (g instanceof ta) throw new ca("Service token bound to incorrect authentication tokens despite setting correct master token.", g); + throw g; } return !0; - }, J); + }, L); }, - error: function(k) { - K.error(k); + error: function(l) { + M.error(l); } }); - }, J); + }, L); }, - addMasterBoundPeerServiceToken: function(q, t, L, E, K) { - var I; - I = this; - n(K, function() { - var J, Q; + addMasterBoundPeerServiceToken: function(q, t, B, C, M) { + var L; + L = this; + n(M, function() { + var J, V; J = this.builder.getPeerMasterToken(); if (!J) return !1; - Q = k(q, this.cryptoContexts); - if (!Q) return !1; - Cb(this.ctx, q, t, J, null, L, E, Q, { - result: function(k) { - n(K, function() { + V = l(q, this.cryptoContexts); + if (!V) return !1; + Eb(this.ctx, q, t, J, null, B, C, V, { + result: function(l) { + n(M, function() { try { - this.builder.addPeerServiceToken(k); - } catch (f) { - if (f instanceof xa) throw new Y("Service token bound to incorrect authentication tokens despite setting correct master token.", f); - throw f; + this.builder.addPeerServiceToken(l); + } catch (g) { + if (g instanceof ta) throw new ca("Service token bound to incorrect authentication tokens despite setting correct master token.", g); + throw g; } return !0; - }, I); + }, L); }, - error: function(k) { - K.error(k); + error: function(l) { + M.error(l); } }); - }, I); + }, L); }, - addUserBoundPrimaryServiceToken: function(t, I, L, E, K) { - var J; - J = this; - n(K, function() { - var Q, A, R; - Q = q(this); - if (!Q) return !1; - A = this.builder.getUserIdToken(); - if (!A) return !1; - R = k(t, this.cryptoContexts); - if (!R) return !1; - Cb(this.ctx, t, I, Q, A, L, E, R, { - result: function(f) { - n(K, function() { + addUserBoundPrimaryServiceToken: function(t, B, J, C, M) { + var L; + L = this; + n(M, function() { + var V, K, G; + V = q(this); + if (!V) return !1; + K = this.builder.getUserIdToken(); + if (!K) return !1; + G = l(t, this.cryptoContexts); + if (!G) return !1; + Eb(this.ctx, t, B, V, K, J, C, G, { + result: function(g) { + n(M, function() { try { - this.builder.addServiceToken(f); - } catch (c) { - if (c instanceof xa) throw new Y("Service token bound to incorrect authentication tokens despite setting correct master token and user ID token.", c); - throw c; + this.builder.addServiceToken(g); + } catch (d) { + if (d instanceof ta) throw new ca("Service token bound to incorrect authentication tokens despite setting correct master token and user ID token.", d); + throw d; } return !0; - }, J); + }, L); }, - error: function(f) { - K.error(f); + error: function(g) { + M.error(g); } }); - }, J); + }, L); }, - addUserBoundPeerServiceToken: function(q, t, I, E, K) { + addUserBoundPeerServiceToken: function(q, t, B, C, M) { var L; L = this; - n(K, function() { - var J, Q, A; + n(M, function() { + var J, V, K; J = this.builder.getPeerMasterToken(); if (!J) return !1; - Q = this.builder.getPeerUserIdToken(); - if (!Q) return !1; - A = k(q, this.cryptoContexts); - if (!A) return !1; - Cb(this.ctx, q, t, J, Q, I, E, A, { - result: function(f) { - n(K, function() { + V = this.builder.getPeerUserIdToken(); + if (!V) return !1; + K = l(q, this.cryptoContexts); + if (!K) return !1; + Eb(this.ctx, q, t, J, V, B, C, K, { + result: function(g) { + n(M, function() { try { - this.builder.addPeerServiceToken(f); - } catch (c) { - if (c instanceof xa) throw new Y("Service token bound to incorrect authentication tokens despite setting correct master token and user ID token.", c); - throw c; + this.builder.addPeerServiceToken(g); + } catch (d) { + if (d instanceof ta) throw new ca("Service token bound to incorrect authentication tokens despite setting correct master token and user ID token.", d); + throw d; } return !0; }, L); }, - error: function(f) { - K.error(f); + error: function(g) { + M.error(g); } }); }, L); }, - excludePrimaryServiceToken: function(k) { + excludePrimaryServiceToken: function(l) { for (var n = this.builder.getServiceTokens(), q = 0; q < n.length; ++q) - if (n[q].name == k) return this.builder.excludeServiceToken(k), !0; + if (n[q].name == l) return this.builder.excludeServiceToken(l), !0; return !1; }, - excludePeerServiceToken: function(k) { + excludePeerServiceToken: function(l) { for (var n = this.builder.getPeerServiceTokens(), q = 0; q < n.length; ++q) - if (n[q].name == k) return this.builder.excludePeerServiceToken(k), !0; + if (n[q].name == l) return this.builder.excludePeerServiceToken(l), !0; return !1; }, - deletePrimaryServiceToken: function(k, q) { + deletePrimaryServiceToken: function(l, q) { n(q, function() { for (var n = this.builder.getServiceTokens(), t = 0; t < n.length; ++t) - if (n[t].name == k) { - this.builder.deleteServiceToken(k, { + if (n[t].name == l) { + this.builder.deleteServiceToken(l, { result: function() { q.result(!0); }, - error: function(k) { - q.error(k); + error: function(l) { + q.error(l); } }); return; } return !1; }, this); }, - deletePeerServiceToken: function(k, q) { + deletePeerServiceToken: function(l, q) { n(q, function() { for (var n = this.builder.getPeerServiceTokens(), t = 0; t < n.length; ++t) - if (n[t].name == k) { - this.builder.deletePeerServiceToken(k, { + if (n[t].name == l) { + this.builder.deletePeerServiceToken(l, { result: function() { q.result(!0); }, - error: function(k) { - q.error(k); + error: function(l) { + q.error(l); } }); return; @@ -8590,154 +8585,154 @@ v7AA.H22 = function() { }); }()); (function() { - function q(q, t, Q, L) { - n(L, function() { - var K, I, J, R, H, f; + function q(q, t, V, J) { + n(J, function() { + var B, L, K, A, sa, g; - function E() { - n(L, function() { - var c; - if (f >= Q.length) { - if (H) throw H; - throw new Ga(k.KEYX_RESPONSE_REQUEST_MISMATCH, JSON.stringify(Q)); + function C() { + n(J, function() { + var d; + if (g >= V.length) { + if (sa) throw sa; + throw new Ha(l.KEYX_RESPONSE_REQUEST_MISMATCH, JSON.stringify(V)); } - c = Q[f]; - J != c.keyExchangeScheme ? (++f, E()) : R.getCryptoContext(q, c, I, K, { - result: L.result, + d = V[g]; + K != d.keyExchangeScheme ? (++g, C()) : A.getCryptoContext(q, d, L, B, { + result: J.result, error: function(a) { - n(L, function() { - if (!(a instanceof A)) throw a; - H = a; - ++f; - E(); + n(J, function() { + if (!(a instanceof G)) throw a; + sa = a; + ++g; + C(); }); } }); }); } - K = t.masterToken; - I = t.keyResponseData; - if (!I) return null; - J = I.keyExchangeScheme; - R = q.getKeyExchangeFactory(J); - if (!R) throw new Ga(k.KEYX_FACTORY_NOT_FOUND, J); - f = 0; - E(); + B = t.masterToken; + L = t.keyResponseData; + if (!L) return null; + K = L.keyExchangeScheme; + A = q.getKeyExchangeFactory(K); + if (!A) throw new Ha(l.KEYX_FACTORY_NOT_FOUND, K); + g = 0; + C(); }); } - xe = kd.extend({ - init: function(n, t, Q, L, E, K, R) { - var I; - I = this; - H(R, function() { + te = jd.extend({ + init: function(n, L, V, J, C, M, K) { + var B; + B = this; + t(K, function() { var b; - function J() { - I._ready = !0; - I._readyQueue.add(!0); + function t() { + B._ready = !0; + B._readyQueue.add(!0); } - function R(a, b) { + function K(a, b) { var c; try { c = b.masterToken; a.getTokenFactory().isMasterTokenRevoked(a, c, { - result: function(g) { - g ? (I._errored = new Pb(g, c).setUser(b.userIdToken).setUser(b.userAuthenticationData).setMessageId(b.messageId), J()) : f(a, b); + result: function(f) { + f ? (B._errored = new Pb(f, c).setUser(b.userIdToken).setUser(b.userAuthenticationData).setMessageId(b.messageId), t()) : g(a, b); }, error: function(a) { - a instanceof A && (a.setEntity(b.masterToken), a.setUser(b.userIdToken), a.setUser(b.userAuthenticationData), a.setMessageId(b.messageId)); - I._errored = a; - J(); + a instanceof G && (a.setEntity(b.masterToken), a.setUser(b.userIdToken), a.setUser(b.userAuthenticationData), a.setMessageId(b.messageId)); + B._errored = a; + t(); } }); - } catch (g) { - g instanceof A && (g.setEntity(b.masterToken), g.setUser(b.userIdToken), g.setUser(b.userAuthenticationData), g.setMessageId(b.messageId)); - I._errored = g; - J(); + } catch (f) { + f instanceof G && (f.setEntity(b.masterToken), f.setUser(b.userIdToken), f.setUser(b.userAuthenticationData), f.setMessageId(b.messageId)); + B._errored = f; + t(); } } - function f(a, b) { - var d, g; + function g(a, b) { + var c, f; try { - d = b.masterToken; - g = b.userIdToken; - g ? a.getTokenFactory().isUserIdTokenRevoked(a, d, g, { - result: function(m) { - m ? (I._errored = new MslUserIdTokenException(m, g).setEntity(d).setUser(g).setMessageId(b.messageId), J()) : c(a, b); + c = b.masterToken; + f = b.userIdToken; + f ? a.getTokenFactory().isUserIdTokenRevoked(a, c, f, { + result: function(p) { + p ? (B._errored = new MslUserIdTokenException(p, f).setEntity(c).setUser(f).setMessageId(b.messageId), t()) : d(a, b); }, error: function(a) { - a instanceof A && (a.setEntity(b.masterToken), a.setUser(b.userIdToken), a.setUser(b.userAuthenticationData), a.setMessageId(b.messageId)); - I._errored = a; - J(); + a instanceof G && (a.setEntity(b.masterToken), a.setUser(b.userIdToken), a.setUser(b.userAuthenticationData), a.setMessageId(b.messageId)); + B._errored = a; + t(); } - }) : c(a, b); - } catch (m) { - m instanceof A && (m.setEntity(b.masterToken), m.setUser(b.userIdToken), m.setUser(b.userAuthenticationData), m.setMessageId(b.messageId)); - I._errored = m; - J(); + }) : d(a, b); + } catch (p) { + p instanceof G && (p.setEntity(b.masterToken), p.setUser(b.userIdToken), p.setUser(b.userAuthenticationData), p.setMessageId(b.messageId)); + B._errored = p; + t(); } } - function c(b, c) { - var d; + function d(b, d) { + var c; try { - d = c.masterToken; - d.isExpired() ? c.isRenewable() && 0 != c.keyRequestData.length ? b.getTokenFactory().isMasterTokenRenewable(b, d, { - result: function(g) { - g ? (I._errored = new xa(g, "Master token is expired and not renewable.").setEntity(d).setUser(c.userIdToken).setUser(c.userAuthenticationData).setMessageId(c.messageId), J()) : a(b, c); + c = d.masterToken; + c.isExpired() ? d.isRenewable() && 0 != d.keyRequestData.length ? b.getTokenFactory().isMasterTokenRenewable(b, c, { + result: function(f) { + f ? (B._errored = new ta(f, "Master token is expired and not renewable.").setEntity(c).setUser(d.userIdToken).setUser(d.userAuthenticationData).setMessageId(d.messageId), t()) : a(b, d); }, error: function(a) { - a instanceof A && (a.setEntity(c.masterToken), a.setUser(c.userIdToken), a.setUser(c.userAuthenticationData), a.setMessageId(c.messageId)); - I._errored = a; - J(); + a instanceof G && (a.setEntity(d.masterToken), a.setUser(d.userIdToken), a.setUser(d.userAuthenticationData), a.setMessageId(d.messageId)); + B._errored = a; + t(); } - }) : (I._errored = new xa(k.MESSAGE_EXPIRED, JSON.stringify(c)).setEntity(d).setUser(c.userIdToken).setUser(c.userAuthenticationData).setMessageId(c.messageId), J()) : a(b, c); - } catch (g) { - g instanceof A && (g.setEntity(c.masterToken), g.setUser(c.userIdToken), g.setUser(c.userAuthenticationData), g.setMessageId(c.messageId)); - I._errored = g; - J(); + }) : (B._errored = new ta(l.MESSAGE_EXPIRED, JSON.stringify(d)).setEntity(c).setUser(d.userIdToken).setUser(d.userAuthenticationData).setMessageId(d.messageId), t()) : a(b, d); + } catch (f) { + f instanceof G && (f.setEntity(d.masterToken), f.setUser(d.userIdToken), f.setUser(d.userAuthenticationData), f.setMessageId(d.messageId)); + B._errored = f; + t(); } } function a(a, b) { - var c, g; + var c, f; try { c = b.masterToken; - g = b.nonReplayableId; - "number" === typeof g ? c ? a.getTokenFactory().acceptNonReplayableId(a, c, g, { + f = b.nonReplayableId; + "number" === typeof f ? c ? a.getTokenFactory().acceptNonReplayableId(a, c, f, { result: function(a) { - a || (I._errored = new xa(k.MESSAGE_REPLAYED, JSON.stringify(b)).setEntity(c).setUser(b.userIdToken).setUser(b.userAuthenticationData).setMessageId(b.messageId)); - J(); + a || (B._errored = new ta(l.MESSAGE_REPLAYED, JSON.stringify(b)).setEntity(c).setUser(b.userIdToken).setUser(b.userAuthenticationData).setMessageId(b.messageId)); + t(); }, error: function(a) { - a instanceof A && (a.setEntity(c), a.setUser(b.userIdToken), a.setUser(b.userAuthenticationData), a.setMessageId(b.messageId)); - I._errored = a; - J(); + a instanceof G && (a.setEntity(c), a.setUser(b.userIdToken), a.setUser(b.userAuthenticationData), a.setMessageId(b.messageId)); + B._errored = a; + t(); } - }) : (I._errored = new xa(k.INCOMPLETE_NONREPLAYABLE_MESSAGE, JSON.stringify(b)).setEntity(b.entityAuthenticationData).setUser(b.userIdToken).setUser(b.userAuthenticationData).setMessageId(b.messageId), J()) : J(); - } catch (m) { - m instanceof A && (m.setEntity(b.masterToken), m.setEntity(b.entityAuthenticationData), m.setUser(b.userIdToken), m.setUser(b.userAuthenticationData), m.setMessageId(b.messageId)); - I._errored = m; - J(); + }) : (B._errored = new ta(l.INCOMPLETE_NONREPLAYABLE_MESSAGE, JSON.stringify(b)).setEntity(b.entityAuthenticationData).setUser(b.userIdToken).setUser(b.userAuthenticationData).setMessageId(b.messageId), t()) : t(); + } catch (p) { + p instanceof G && (p.setEntity(b.masterToken), p.setEntity(b.entityAuthenticationData), p.setUser(b.userIdToken), p.setUser(b.userAuthenticationData), p.setMessageId(b.messageId)); + B._errored = p; + t(); } } b = { _source: { - value: t, + value: L, writable: !1, enumerable: !1, configurable: !1 }, _parser: { - value: ga, + value: da, writable: !0, enumerable: !1, configurable: !1 }, _charset: { - value: Q, + value: V, writable: !1, enumerable: !1, configurable: !1 @@ -8749,25 +8744,25 @@ v7AA.H22 = function() { configurable: !1 }, _timeout: { - value: K, + value: M, writable: !1, enumerable: !1, configurable: !1 }, _header: { - value: ga, + value: da, writable: !0, enumerable: !1, configurable: !1 }, _cryptoContext: { - value: ga, + value: da, writable: !0, enumerable: !1, configurable: !1 }, _keyxCryptoContext: { - value: ga, + value: da, writable: !0, enumerable: !1, configurable: !1 @@ -8833,7 +8828,7 @@ v7AA.H22 = function() { configurable: !1 }, _readyQueue: { - value: new jc(), + value: new ic(), writable: !1, enumerable: !1, configurable: !1 @@ -8858,181 +8853,181 @@ v7AA.H22 = function() { } }; Object.defineProperties(this, b); - ae(I._source, K, { + Xd(B._source, M, { result: function(b) { - I._json = b; - I._jsonIndex = 0; - null === I._json ? (I._errored = new aa(k.MESSAGE_DATA_MISSING), J()) : he(n, I._json[I._jsonIndex++], E, { + B._json = b; + B._jsonIndex = 0; + null === B._json ? (B._errored = new ba(l.MESSAGE_DATA_MISSING), t()) : de(n, B._json[B._jsonIndex++], C, { result: function(b) { var c; - I._header = b; - if (I._header instanceof Lb) I._keyxCryptoContext = null, I._cryptoContext = null, J(); + B._header = b; + if (B._header instanceof Lb) B._keyxCryptoContext = null, B._cryptoContext = null, t(); else { - c = I._header; - q(n, c, L, { + c = B._header; + q(n, c, J, { result: function(b) { - var g; + var f; try { - I._keyxCryptoContext = b; - n.isPeerToPeer() || !I._keyxCryptoContext ? I._cryptoContext = c.cryptoContext : I._cryptoContext = I._keyxCryptoContext; + B._keyxCryptoContext = b; + n.isPeerToPeer() || !B._keyxCryptoContext ? B._cryptoContext = c.cryptoContext : B._cryptoContext = B._keyxCryptoContext; try { - g = c.masterToken; - g && (n.isPeerToPeer() || g.isVerified()) ? R(n, c) : a(n, c); - } catch (p) { - p instanceof A && (p.setEntity(c.masterToken), p.setUser(c.userIdToken), p.setUser(c.userAuthenticationData), p.setMessageId(c.messageId)); - I._errored = p; - J(); + f = c.masterToken; + f && (n.isPeerToPeer() || f.isVerified()) ? K(n, c) : a(n, c); + } catch (m) { + m instanceof G && (m.setEntity(c.masterToken), m.setUser(c.userIdToken), m.setUser(c.userAuthenticationData), m.setMessageId(c.messageId)); + B._errored = m; + t(); } - } catch (p) { - p instanceof A && (p.setEntity(c.masterToken), p.setEntity(c.entityAuthenticationData), p.setUser(c.userIdToken), p.setUser(c.userAuthenticationData), p.setMessageId(c.messageId)); - I._errored = p; - J(); + } catch (m) { + m instanceof G && (m.setEntity(c.masterToken), m.setEntity(c.entityAuthenticationData), m.setUser(c.userIdToken), m.setUser(c.userAuthenticationData), m.setMessageId(c.messageId)); + B._errored = m; + t(); } }, error: function(a) { - a instanceof A && (a.setEntity(c.masterToken), a.setEntity(c.entityAuthenticationData), a.setUser(c.userIdToken), a.setUser(c.userAuthenticationData), a.setMessageId(c.messageId)); - I._errored = a; - J(); + a instanceof G && (a.setEntity(c.masterToken), a.setEntity(c.entityAuthenticationData), a.setUser(c.userIdToken), a.setUser(c.userAuthenticationData), a.setMessageId(c.messageId)); + B._errored = a; + t(); } }); } }, error: function(a) { - I._errored = a; - J(); + B._errored = a; + t(); } }); }, timeout: function() { - I._timedout = !0; - J(); + B._timedout = !0; + t(); }, error: function(a) { - I._errored = a; - J(); + B._errored = a; + t(); } }); return this; - }, I); + }, B); }, nextData: function(n, q) { - var t; - t = this; - H(q, function() { - var E; + var B; + B = this; + t(q, function() { + var C; - function n(k) { - H(k, function() { + function n(l) { + t(l, function() { var q; if (this._jsonIndex < this._json.length) return q = this._json[this._jsonIndex++]; - ae(this._source, this._timeout, { + Xd(this._source, this._timeout, { result: function(q) { - q && q.length && 0 < q.length ? (q.forEach(function(k) { - this._json.push(k); - }), n(k)) : (this._eom = !0, k.result(null)); + q && q.length && 0 < q.length ? (q.forEach(function(l) { + this._json.push(l); + }), n(l)) : (this._eom = !0, l.result(null)); }, timeout: function() { - k.timeout(); + l.timeout(); }, error: function(n) { - k.error(n); + l.error(n); } }); - }, t); + }, B); } - E = this.getMessageHeader(); - if (!E) throw new Y("Read attempted with error message."); + C = this.getMessageHeader(); + if (!C) throw new ca("Read attempted with error message."); if (-1 != this._payloadIndex && this._payloadIndex < this._payloads.length) return this._payloads[this._payloadIndex++]; if (this._eom) return null; n({ result: function(n) { - H(q, function() { + t(q, function() { if (!n) return null; - if ("object" !== typeof n) throw new aa(k.MESSAGE_FORMAT_ERROR); - te(n, this._cryptoContext, { + if ("object" !== typeof n) throw new ba(l.MESSAGE_FORMAT_ERROR); + pe(n, this._cryptoContext, { result: function(n) { - H(q, function() { - var q, t, I, f; - q = E.masterToken; - t = E.entityAuthenticationData; - I = E.userIdToken; - f = E.getUserAuthenticationData; - if (n.messageId != E.messageId) throw new xa(k.PAYLOAD_MESSAGE_ID_MISMATCH, "payload mid " + n.messageId + " header mid " + E.messageId).setEntity(q).setEntity(t).setUser(I).setUser(f); - if (n.sequenceNumber != this._payloadSequenceNumber) throw new xa(k.PAYLOAD_SEQUENCE_NUMBER_MISMATCH, "payload seqno " + n.sequenceNumber + " expected seqno " + this._payloadSequenceNumber).setEntity(q).setEntity(t).setUser(I).setUser(f); + t(q, function() { + var q, t, B, g; + q = C.masterToken; + t = C.entityAuthenticationData; + B = C.userIdToken; + g = C.getUserAuthenticationData; + if (n.messageId != C.messageId) throw new ta(l.PAYLOAD_MESSAGE_ID_MISMATCH, "payload mid " + n.messageId + " header mid " + C.messageId).setEntity(q).setEntity(t).setUser(B).setUser(g); + if (n.sequenceNumber != this._payloadSequenceNumber) throw new ta(l.PAYLOAD_SEQUENCE_NUMBER_MISMATCH, "payload seqno " + n.sequenceNumber + " expected seqno " + this._payloadSequenceNumber).setEntity(q).setEntity(t).setUser(B).setUser(g); ++this._payloadSequenceNumber; n.isEndOfMessage() && (this._eom = !0); q = n.data; this._payloads.push(q); this._payloadIndex = -1; return q; - }, t); + }, B); }, error: function(n) { - n instanceof SyntaxError && (n = new aa(k.JSON_PARSE_ERROR, "payloadchunk", n)); + n instanceof SyntaxError && (n = new ba(l.JSON_PARSE_ERROR, "payloadchunk", n)); q.error(n); } }); - }, t); + }, B); }, timeout: function() { q.timeout(); }, - error: function(k) { - q.error(k); + error: function(l) { + q.error(l); } }); - }, t); + }, B); }, - isReady: function(k, n) { - var t; + isReady: function(l, n) { + var B; function q() { - H(n, function() { + t(n, function() { if (this._aborted) return !1; if (this._timedout) n.timeout(); else { if (this._errored) throw this._errored; return !0; } - }, t); - } - t = this; - H(n, function() { - this._ready ? q() : this._readyQueue.poll(k, { - result: function(k) { - H(n, function() { - if (k === ga) return !1; + }, B); + } + B = this; + t(n, function() { + this._ready ? q() : this._readyQueue.poll(l, { + result: function(l) { + t(n, function() { + if (l === da) return !1; q(); - }, t); + }, B); }, timeout: function() { n.timeout(); }, - error: function(k) { - n.error(k); + error: function(l) { + n.error(l); } }); - }, t); + }, B); }, getMessageHeader: function() { - return this._header instanceof nc ? this._header : null; + return this._header instanceof mc ? this._header : null; }, getErrorHeader: function() { return this._header instanceof Lb ? this._header : null; }, getIdentity: function() { - var k, n; - k = this.getMessageHeader(); - if (k) { - n = k.masterToken; - return n ? n.identity : k.entityAuthenticationData.getIdentity(); + var l, n; + l = this.getMessageHeader(); + if (l) { + n = l.masterToken; + return n ? n.identity : l.entityAuthenticationData.getIdentity(); } return this.getErrorHeader().entityAuthenticationData.getIdentity(); }, getCustomer: function() { - var k; - k = this.getMessageHeader(); - return k ? k.customer : null; + var l; + l = this.getMessageHeader(); + return l ? l.customer : null; }, getPayloadCryptoContext: function() { return this._cryptoContext; @@ -9040,8 +9035,8 @@ v7AA.H22 = function() { getKeyExchangeCryptoContext: function() { return this._keyxCryptoContext; }, - closeSource: function(k) { - this._closeSource = k; + closeSource: function(l) { + this._closeSource = l; }, abort: function() { this._aborted = !0; @@ -9062,108 +9057,108 @@ v7AA.H22 = function() { markSupported: function() { return !0; }, - read: function(k, n, q) { - var E; + read: function(l, n, q) { + var C; - function t() { - H(q, function() { - var I, J, L, Q; + function B() { + t(q, function() { + var L, J, V, K; - function t(f) { - H(f, function() { - var c, a, b; - if (J && Q >= J.length) return J.subarray(0, Q); - c = -1; + function B(g) { + t(g, function() { + var d, a, b; + if (J && K >= J.length) return J.subarray(0, K); + d = -1; if (this._currentPayload) { a = this._currentPayload.length - this._payloadOffset; if (!J) { b = a; if (-1 != this._payloadIndex) - for (var d = this._payloadIndex; d < this._payloads.length; ++d) b += this._payloads[d].length; + for (var c = this._payloadIndex; c < this._payloads.length; ++c) b += this._payloads[c].length; 0 < b && (J = new Uint8Array(b)); } - a = Math.min(a, J ? J.length - Q : 0); - 0 < a && (c = this._currentPayload.subarray(this._payloadOffset, this._payloadOffset + a), J.set(c, L), c = a, L += a, this._payloadOffset += a); - } - 1 != c ? (Q += c, t(f)) : this.nextData(n, { + a = Math.min(a, J ? J.length - K : 0); + 0 < a && (d = this._currentPayload.subarray(this._payloadOffset, this._payloadOffset + a), J.set(d, V), d = a, V += a, this._payloadOffset += a); + } - 1 != d ? (K += d, B(g)) : this.nextData(n, { result: function(a) { - H(f, function() { - if (this._aborted) return J ? J.subarray(0, Q) : new Uint8Array(0); + t(g, function() { + if (this._aborted) return J ? J.subarray(0, K) : new Uint8Array(0); this._currentPayload = a; this._payloadOffset = 0; - if (this._currentPayload) t(f); - else return 0 == Q && 0 != k ? null : J ? J.subarray(0, Q) : new Uint8Array(0); - }, E); + if (this._currentPayload) B(g); + else return 0 == K && 0 != l ? null : J ? J.subarray(0, K) : new Uint8Array(0); + }, C); }, timeout: function() { - f.timeout(J ? J.subarray(0, Q) : new Uint8Array(0)); + g.timeout(J ? J.subarray(0, K) : new Uint8Array(0)); }, error: function(a) { - H(f, function() { - a instanceof A && (a = new Oa("Error reading the payload chunk.", a)); - if (0 < Q) return E._readException = a, J.subarray(0, Q); + t(g, function() { + a instanceof G && (a = new Wa("Error reading the payload chunk.", a)); + if (0 < K) return C._readException = a, J.subarray(0, K); throw a; - }, E); + }, C); } }); - }, E); + }, C); } if (this._aborted) return new Uint8Array(0); if (this._timedout) q.timeout(new Uint8Array(0)); else { if (this._errored) throw this._errored; if (null != this._readException) { - I = this._readException; + L = this._readException; this._readException = null; - throw I; + throw L; } - J = -1 != k ? new Uint8Array(k) : ga; - L = 0; - Q = 0; - t(q); + J = -1 != l ? new Uint8Array(l) : da; + V = 0; + K = 0; + B(q); } - }, E); - } - E = this; - H(q, function() { - if (-1 > k) throw new RangeError("read requested with illegal length " + k); - this._ready ? t() : this._readyQueue.poll(n, { - result: function(k) { - k === ga ? q.result(!1) : t(); + }, C); + } + C = this; + t(q, function() { + if (-1 > l) throw new RangeError("read requested with illegal length " + l); + this._ready ? B() : this._readyQueue.poll(n, { + result: function(l) { + l === da ? q.result(!1) : B(); }, timeout: function() { q.timeout(new Uint8Array(0)); }, - error: function(k) { - q.error(k); + error: function(l) { + q.error(l); } }); - }, E); + }, C); }, reset: function() { this._payloadIndex = 0; 0 < this._payloads.length ? (this._currentPayload = this._payloads[this._payloadIndex++], this._payloadOffset = this._markOffset) : this._currentPayload = null; } }); - ye = function(k, n, q, t, E, K, A) { - new xe(k, n, q, t, E, K, A); + ue = function(l, n, q, t, C, M, K) { + new te(l, n, q, t, C, M, K); }; }()); (function() { - ze = Fc.extend({ - init: function(k, n, q, t, L, E, K) { - var I; - I = this; - H(K, function() { - var K, A, f; - - function J() { - I._ready = !0; - I._readyQueue.add(!0); + ve = Gc.extend({ + init: function(l, n, q, V, J, C, M) { + var B; + B = this; + t(M, function() { + var M, L, g; + + function t() { + B._ready = !0; + B._readyQueue.add(!0); } - K = qd(k.getMessageCapabilities(), t.messageCapabilities); - A = null; - K && (A = Pd(K.compressionAlgorithms)); - K = { + M = pd(l.getMessageCapabilities(), V.messageCapabilities); + L = null; + M && (L = Ld(M.compressionAlgorithms)); + M = { _destination: { value: n, writable: !1, @@ -9177,25 +9172,25 @@ v7AA.H22 = function() { configurable: !1 }, _capabilities: { - value: K, + value: M, writable: !1, enumerable: !1, configurable: !1 }, _header: { - value: t, + value: V, writable: !1, enumerable: !1, configurable: !1 }, _compressionAlgo: { - value: A, + value: L, writable: !0, enumerable: !1, configurable: !1 }, _cryptoContext: { - value: L, + value: J, writable: !1, enumerable: !1, configurable: !1 @@ -9231,7 +9226,7 @@ v7AA.H22 = function() { configurable: !1 }, _readyQueue: { - value: new jc(), + value: new ic(), writable: !1, enumerable: !1, configurable: !1 @@ -9255,79 +9250,79 @@ v7AA.H22 = function() { configurable: !1 } }; - Object.defineProperties(this, K); - f = Ma(JSON.stringify(t), q); - n.write(f, 0, f.length, E, { - result: function(c) { + Object.defineProperties(this, M); + g = Oa(JSON.stringify(V), q); + n.write(g, 0, g.length, C, { + result: function(d) { try { - I._aborted ? J() : c < f.length ? (I._timedout = !0, J()) : n.flush(E, { + B._aborted ? t() : d < g.length ? (B._timedout = !0, t()) : n.flush(C, { result: function(a) { - I._aborted || (I._timedout = !a); - J(); + B._aborted || (B._timedout = !a); + t(); }, timeout: function() { - I._timedout = !0; - J(); + B._timedout = !0; + t(); }, error: function(a) { - I._errored = a; - J(); + B._errored = a; + t(); } }); } catch (a) { - I._errored = a; - J(); + B._errored = a; + t(); } }, timeout: function() { - I._timedout = !0; - J(); + B._timedout = !0; + t(); }, - error: function(c) { - I._errored = c; - J(); + error: function(d) { + B._errored = d; + t(); } }); return this; - }, I); + }, B); }, - setCompressionAlgorithm: function(k, n, q) { - var I; + setCompressionAlgorithm: function(l, n, q) { + var J; - function t() { - I.flush(n, { + function B() { + J.flush(n, { result: function(n) { - H(q, function() { - if (!n) throw new Oa("flush() aborted"); - this._compressionAlgo = k; + t(q, function() { + if (!n) throw new Wa("flush() aborted"); + this._compressionAlgo = l; return !0; - }, I); + }, J); }, timeout: function() { q.timeout(); }, - error: function(k) { - q.error(k); + error: function(l) { + q.error(l); } }); } - I = this; - H(q, function() { - if (!this.getMessageHeader()) throw new Y("Cannot write payload data for an error message."); - if (this._compressionAlgo == k) return !0; - if (k) { + J = this; + t(q, function() { + if (!this.getMessageHeader()) throw new ca("Cannot write payload data for an error message."); + if (this._compressionAlgo == l) return !0; + if (l) { if (!this._capabilities) return !1; for (var n = this._capabilities.compressionAlgorithms, q = 0; q < n.length; ++q) - if (n[q] == k) { - t(); + if (n[q] == l) { + B(); return; } return !1; } - t(); - }, I); + B(); + }, J); }, getMessageHeader: function() { - return this._header instanceof nc ? this._header : null; + return this._header instanceof mc ? this._header : null; }, getErrorMessage: function() { return this._header instanceof Lb ? this._header : null; @@ -9340,39 +9335,39 @@ v7AA.H22 = function() { this._destination.abort(); this._readyQueue.cancelAll(); }, - close: function(k, n) { + close: function(l, n) { var q; q = this; - H(n, function() { + t(n, function() { if (this._aborted) return !1; if (this._timedout) n.timeout(); else { if (this._errored) throw this._errored; if (this._closed) return !0; this._closed = !0; - this.flush(k, { - result: function(k) { - H(n, function() { - k && (this._currentPayload = null); - return k; + this.flush(l, { + result: function(l) { + t(n, function() { + l && (this._currentPayload = null); + return l; }, q); }, timeout: function() { n.timeout(); }, - error: function(k) { - n.error(k); + error: function(l) { + n.error(l); } }); } }, q); }, - flush: function(k, n) { - var t; + flush: function(l, n) { + var B; function q() { - H(n, function() { - var q, E, R; + t(n, function() { + var q, C, V; if (this._aborted) return !1; if (this._timedout) n.timeout(); else { @@ -9380,108 +9375,108 @@ v7AA.H22 = function() { if (!this._currentPayload || !this._closed && 0 == this._currentPayload.length) return !0; q = this.getMessageHeader(); if (!q) return !0; - E = 0; - this._currentPayload && this._currentPayload.forEach(function(k) { - E += k.length; + C = 0; + this._currentPayload && this._currentPayload.forEach(function(l) { + C += l.length; }); - for (var I = new Uint8Array(E), J = 0, Q = 0; this._currentPayload && Q < this._currentPayload.length; ++Q) { - R = this._currentPayload[Q]; - I.set(R, J); - J += R.length; + for (var M = new Uint8Array(C), L = 0, K = 0; this._currentPayload && K < this._currentPayload.length; ++K) { + V = this._currentPayload[K]; + M.set(V, L); + L += V.length; } - se(this._payloadSequenceNumber, q.messageId, this._closed, this._compressionAlgo, I, this._cryptoContext, { + oe(this._payloadSequenceNumber, q.messageId, this._closed, this._compressionAlgo, M, this._cryptoContext, { result: function(q) { - H(n, function() { - var f; + t(n, function() { + var g; this._payloads.push(q); - f = Ma(JSON.stringify(q), this._charset); - this._destination.write(f, 0, f.length, k, { - result: function(c) { - H(n, function() { + g = Oa(JSON.stringify(q), this._charset); + this._destination.write(g, 0, g.length, l, { + result: function(d) { + t(n, function() { if (this._aborted) return !1; - c < q.length ? n.timeout() : this._destination.flush(k, { + d < q.length ? n.timeout() : this._destination.flush(l, { result: function(a) { - H(n, function() { + t(n, function() { if (this._aborted) return !1; if (a) return ++this._payloadSequenceNumber, this._currentPayload = this._closed ? null : [], !0; n.timeout(); - }, t); + }, B); }, timeout: function() { n.timeout(); }, error: function(a) { - a instanceof A && (a = new Oa("Error encoding payload chunk [sequence number " + t._payloadSequenceNumber + "].", a)); + a instanceof G && (a = new Wa("Error encoding payload chunk [sequence number " + B._payloadSequenceNumber + "].", a)); n.error(a); } }); - }, t); + }, B); }, - timeout: function(c) { + timeout: function(d) { n.timeout(); }, - error: function(c) { - c instanceof A && (c = new Oa("Error encoding payload chunk [sequence number " + t._payloadSequenceNumber + "].", c)); - n.error(c); + error: function(d) { + d instanceof G && (d = new Wa("Error encoding payload chunk [sequence number " + B._payloadSequenceNumber + "].", d)); + n.error(d); } }); - }, t); + }, B); }, - error: function(k) { - k instanceof A && (k = new Oa("Error encoding payload chunk [sequence number " + t._payloadSequenceNumber + "].", k)); - n.error(k); + error: function(l) { + l instanceof G && (l = new Wa("Error encoding payload chunk [sequence number " + B._payloadSequenceNumber + "].", l)); + n.error(l); } }); } - }, t); + }, B); } - t = this; - H(n, function() { - this._ready ? q() : this._readyQueue.poll(k, { - result: function(k) { - k === ga ? n.result(!1) : q(); + B = this; + t(n, function() { + this._ready ? q() : this._readyQueue.poll(l, { + result: function(l) { + l === da ? n.result(!1) : q(); }, timeout: function() { n.timeout(); }, - error: function(k) { - n.error(k); + error: function(l) { + n.error(l); } }); - }, t); + }, B); }, - write: function(k, n, q, t, L) { - H(L, function() { + write: function(l, n, q, V, J) { + t(J, function() { var t; if (this._aborted) return !1; - if (this._timedout) L.timeout(); + if (this._timedout) J.timeout(); else { if (this._errored) throw this._errored; - if (this._closed) throw new Oa("Message output stream already closed."); + if (this._closed) throw new Wa("Message output stream already closed."); if (0 > n) throw new RangeError("Offset cannot be negative."); if (0 > q) throw new RangeError("Length cannot be negative."); - if (n + q > k.length) throw new RangeError("Offset plus length cannot be greater than the array length."); - if (!this.getMessageHeader()) throw new Y("Cannot write payload data for an error message."); - t = k.subarray(n, n + q); + if (n + q > l.length) throw new RangeError("Offset plus length cannot be greater than the array length."); + if (!this.getMessageHeader()) throw new ca("Cannot write payload data for an error message."); + t = l.subarray(n, n + q); this._currentPayload.push(t); return t.length; } }, this); } }); - Lc = function(k, n, q, t, L, E, K) { - new ze(k, n, q, t, L, E, K); + Mc = function(l, n, q, t, J, C, M) { + new ve(l, n, q, t, J, C, M); }; }()); - hf = fa.Class.create({ - sentHeader: function(k) {}, - receivedHeader: function(k) {} + cf = ha.Class.create({ + sentHeader: function(l) {}, + receivedHeader: function(l) {} }); Object.freeze({ USERDATA_REAUTH: q.USERDATA_REAUTH, SSOTOKEN_REJECTED: q.SSOTOKEN_REJECTED }); - Ae = fa.Class.create({ + we = ha.Class.create({ getCryptoContexts: function() {}, getRecipient: function() {}, isEncrypted: function() {}, @@ -9489,27 +9484,27 @@ v7AA.H22 = function() { isNonReplayable: function() {}, isRequestingTokens: function() {}, getUserId: function() {}, - getUserAuthData: function(k, n, q, t) {}, + getUserAuthData: function(l, n, q, t) {}, getCustomer: function() {}, - getKeyRequestData: function(k) {}, - updateServiceTokens: function(k, n, q) {}, - write: function(k, n, q) {}, + getKeyRequestData: function(l) {}, + updateServiceTokens: function(l, n, q) {}, + write: function(l, n, q) {}, getDebugContext: function() {} }); - fa.Class.create({ - getInputStream: function(k) {}, - getOutputStream: function(k) {} + ha.Class.create({ + getInputStream: function(l) {}, + getOutputStream: function(l) {} }); (function() { - var La, qa, P, va, f, c, a, b, d, h, l, g; + var A, pa, Aa, R, g, d, a, b, c, h, k, f; - function t(a) { + function K(a) { return function() { a.abort(); }; } - function I(a, b) { + function B(a, b) { Object.defineProperties(this, { masterToken: { value: a, @@ -9524,7 +9519,7 @@ v7AA.H22 = function() { }); } - function J(a, b) { + function L(a, b) { Object.defineProperties(this, { builder: { value: a, @@ -9539,7 +9534,7 @@ v7AA.H22 = function() { }); } - function Q(a, b, c) { + function V(a, b, f) { Object.defineProperties(this, { requestHeader: { value: a, @@ -9552,14 +9547,14 @@ v7AA.H22 = function() { configurable: !1 }, handshake: { - value: c, + value: f, writable: !1, configurable: !1 } }); } - function L(a, b) { + function J(a, b) { Object.defineProperties(this, { requestHeader: { value: b.requestHeader, @@ -9584,68 +9579,68 @@ v7AA.H22 = function() { }); } - function E(a) { + function C(a) { for (; a;) { - if (a instanceof Xa) return !0; - a = a instanceof A ? a.cause : ga; + if (a instanceof ab) return !0; + a = a instanceof G ? a.cause : da; } return !1; } - function K(a, b, c, g, d, h, l, f, x) { - ve(b, g, d, h, { - result: function(g) { - c && c.sentHeader(g); - Lc(b, l, Ca, g, null, null, f, { + function M(a, b, f, c, d, k, h, g, D) { + re(b, c, d, k, { + result: function(c) { + f && f.sentHeader(c); + Mc(b, h, Ba, c, null, null, g, { result: function(b) { a.setAbort(function() { b.abort(); }); - b.close(f, { + b.close(g, { result: function(a) { - H(x, function() { - if (!a) throw new Xa("sendError aborted."); + t(D, function() { + if (!a) throw new ab("sendError aborted."); return a; }); }, timeout: function() { - x.timeout(); + D.timeout(); }, error: function(a) { - x.error(a); + D.error(a); } }); }, timeout: function() {}, error: function(a) { - x.error(a); + D.error(a); } }); }, error: function(a) { - x.error(a); + D.error(a); } }); } - La = Fc.extend({ + A = Gc.extend({ close: function(a, b) { b.result(!0); }, - write: function(a, b, c, g, d) { + write: function(a, b, f, c, d) { n(d, function() { - return Math.min(a.length - b, c); + return Math.min(a.length - b, f); }); }, flush: function(a, b) { b.result(!0); } }); - qa = gf.extend({ + pa = bf.extend({ getUserMessage: function(a, b) { return null; } }); - P = Ae.extend({ + Aa = we.extend({ init: function(a) { Object.defineProperties(this, { _appCtx: { @@ -9674,8 +9669,8 @@ v7AA.H22 = function() { getUserId: function() { return this._appCtx.getUserId(); }, - getUserAuthData: function(a, b, c, g) { - this._appCtx.getUserAuthData(a, b, c, g); + getUserAuthData: function(a, b, f, c) { + this._appCtx.getUserAuthData(a, b, f, c); }, getCustomer: function() { return this._appCtx.getCustomer(); @@ -9683,19 +9678,19 @@ v7AA.H22 = function() { getKeyRequestData: function(a) { this._appCtx.getKeyRequestData(a); }, - updateServiceTokens: function(a, b, c) { - this._appCtx.updateServiceTokens(a, b, c); + updateServiceTokens: function(a, b, f) { + this._appCtx.updateServiceTokens(a, b, f); }, - write: function(a, b, c) { - this._appCtx.write(a, b, c); + write: function(a, b, f) { + this._appCtx.write(a, b, f); }, getDebugContext: function() { return this._appCtx.getDebugContext(); } }); - va = P.extend({ - init: function p(a, b) { - p.base.call(this, b); + R = Aa.extend({ + init: function m(a, b) { + m.base.call(this, b); Object.defineProperties(this, { _payloads: { value: a, @@ -9705,52 +9700,52 @@ v7AA.H22 = function() { } }); }, - write: function(a, b, c) { - var p; + write: function(a, b, f) { + var d; - function g(d, r) { - var h; - if (d == p._payloads.length) c.result(!0); + function c(m, r) { + var k; + if (m == d._payloads.length) f.result(!0); else { - h = p._payloads[d]; - a.setCompressionAlgorithm(h.compressionAlgo, b, { - result: function(u) { - a.write(h.data, 0, h.data.length, b, { - result: function(u) { - H(c, function() { - h.isEndOfMessage() ? g(d + 1, r) : a.flush(b, { + k = d._payloads[m]; + a.setCompressionAlgorithm(k.compressionAlgo, b, { + result: function(h) { + a.write(k.data, 0, k.data.length, b, { + result: function(h) { + t(f, function() { + k.isEndOfMessage() ? c(m + 1, r) : a.flush(b, { result: function(a) { - c.result(a); + f.result(a); }, timeout: function() { - c.timeout(); + f.timeout(); }, error: function(a) { - c.error(a); + f.error(a); } }); - }, p); + }, d); }, timeout: function(a) { - c.timeout(a); + f.timeout(a); }, error: function(a) { - c.error(a); + f.error(a); } }); }, timeout: function() {}, error: function(a) { - c.error(a); + f.error(a); } }); } } - p = this; - g(0); + d = this; + c(0); } }); - f = P.extend({ + g = Aa.extend({ init: function r(a) { r.base.call(this, a); }, @@ -9760,14 +9755,14 @@ v7AA.H22 = function() { isNonReplayable: function() { return !1; }, - write: function(a, b, c) { - c.result(!0); + write: function(a, b, f) { + f.result(!0); } }); - c = {}; - l = fa.Class.create({ + d = {}; + k = ha.Class.create({ init: function(a) { - a || (a = new qa()); + a || (a = new pa()); Object.defineProperties(this, { _filterFactory: { value: null, @@ -9798,72 +9793,72 @@ v7AA.H22 = function() { setFilterFactory: function(a) { this._filterFactory = a; }, - getNewestMasterToken: function(a, b, c, g) { + getNewestMasterToken: function(a, b, f, c) { var d; d = this; - H(g, function() { - var r, h, u, l, v; + t(c, function() { + var r, k, h, u, g; r = b.getMslStore(); - h = r.getMasterToken(); - if (!h) return null; - u = h.uniqueKey(); - l = this._masterTokenLocks[u]; - l || (l = new $c(), this._masterTokenLocks[u] = l); - v = l.readLock(c, { - result: function(v) { - H(g, function() { + k = r.getMasterToken(); + if (!k) return null; + h = k.uniqueKey(); + u = this._masterTokenLocks[h]; + u || (u = new Zc(), this._masterTokenLocks[h] = u); + g = u.readLock(f, { + result: function(g) { + t(c, function() { var x; - if (v === ga) throw new Xa("getNewestMasterToken aborted."); + if (g === da) throw new ab("getNewestMasterToken aborted."); x = r.getMasterToken(); - if (h.equals(x)) return new I(h, v); - l.unlock(v); - l.writeLock(c, { + if (k.equals(x)) return new B(k, g); + u.unlock(g); + u.writeLock(f, { result: function(r) { - H(g, function() { - if (r === ga) throw new Xa("getNewestMasterToken aborted."); - delete this._masterTokenLocks[u]; - l.unlock(r); - return this.getNewestMasterToken(a, b, c, g); + t(c, function() { + if (r === da) throw new ab("getNewestMasterToken aborted."); + delete this._masterTokenLocks[h]; + u.unlock(r); + return this.getNewestMasterToken(a, b, f, c); }, d); }, timeout: function() { - g.timeout(); + c.timeout(); }, error: function(a) { - g.error(a); + c.error(a); } }); }, d); }, timeout: function() { - g.timeout(); + c.timeout(); }, error: function(a) { - g.error(a); + c.error(a); } }); a.setAbort(function() { - v && (l.cancel(v), v = ga); + g && (u.cancel(g), g = da); }); }, d); }, deleteMasterToken: function(a, b) { - var c; + var f; if (b) { - c = this; + f = this; setTimeout(function() { - var g, d; - g = b.uniqueKey(); - d = c._masterTokenLocks[g]; - d || (d = new $c(), c._masterTokenLocks[g] = d); + var c, d; + c = b.uniqueKey(); + d = f._masterTokenLocks[c]; + d || (d = new Zc(), f._masterTokenLocks[c] = d); d.writeLock(-1, { result: function(r) { a.getMslStore().removeCryptoContext(b); - delete c._masterTokenLocks[g]; + delete f._masterTokenLocks[c]; d.unlock(r); }, timeout: function() { - throw new Y("Unexpected timeout received."); + throw new ca("Unexpected timeout received."); }, error: function(a) { throw a; @@ -9877,52 +9872,52 @@ v7AA.H22 = function() { if (a && a.masterToken) { b = a.masterToken.uniqueKey(); b = this._masterTokenLocks[b]; - if (!b) throw new Y("Master token read/write lock does not exist when it should."); + if (!b) throw new ca("Master token read/write lock does not exist when it should."); b.unlock(a.ticket); } }, - updateOutgoingCryptoContexts: function(a, b, c) { - var g; - g = a.getMslStore(); - !a.isPeerToPeer() && c && (g.setCryptoContext(c.keyResponseData.masterToken, c.cryptoContext), this.deleteMasterToken(a, b.masterToken)); + updateOutgoingCryptoContexts: function(a, b, f) { + var c; + c = a.getMslStore(); + !a.isPeerToPeer() && f && (c.setCryptoContext(f.keyResponseData.masterToken, f.cryptoContext), this.deleteMasterToken(a, b.masterToken)); }, - updateIncomingCryptoContexts: function(a, b, c) { - var g, d; - g = c.getMessageHeader(); - if (g) { + updateIncomingCryptoContexts: function(a, b, f) { + var c, d; + c = f.getMessageHeader(); + if (c) { d = a.getMslStore(); - if (g = g.keyResponseData) d.setCryptoContext(g.masterToken, c.getKeyExchangeCryptoContext()), this.deleteMasterToken(a, b.masterToken); + if (c = c.keyResponseData) d.setCryptoContext(c.masterToken, f.getKeyExchangeCryptoContext()), this.deleteMasterToken(a, b.masterToken); } }, - storeServiceTokens: function(a, b, c, g) { - var h, l; + storeServiceTokens: function(a, b, f, c) { + var k, h; a = a.getMslStore(); - for (var d = [], r = 0; r < g.length; ++r) { - h = g[r]; - if (!h.isBoundTo(b) || !b.isVerified()) { - l = h.data; - l && 0 == l.length ? a.removeServiceTokens(h.name, h.isMasterTokenBound() ? b : null, h.isUserIdTokenBound() ? c : null) : d.push(h); + for (var d = [], r = 0; r < c.length; ++r) { + k = c[r]; + if (!k.isBoundTo(b) || !b.isVerified()) { + h = k.data; + h && 0 == h.length ? a.removeServiceTokens(k.name, k.isMasterTokenBound() ? b : null, k.isUserIdTokenBound() ? f : null) : d.push(k); } } 0 < d.length && a.addServiceTokens(d); }, - buildRequest: function(a, b, c, g, d) { + buildRequest: function(a, b, f, c, d) { var r; r = this; - this.getNewestMasterToken(a, b, g, { + this.getNewestMasterToken(a, b, c, { result: function(a) { n(d, function() { - var g, h, l; - g = a && a.masterToken; - if (g) { - h = c.getUserId(); - l = b.getMslStore(); - h = (h = h ? l.getUserIdToken(h) : null) && h.isBoundTo(g) ? h : null; - } else h = null; - Ub(b, g, h, null, { + var c, k, h; + c = a && a.masterToken; + if (c) { + k = f.getUserId(); + h = b.getMslStore(); + k = (k = k ? h.getUserIdToken(k) : null) && k.isBoundTo(c) ? k : null; + } else k = null; + Ub(b, c, k, null, { result: function(b) { n(d, function() { - b.setNonReplayable(c.isNonReplayable()); + b.setNonReplayable(f.isNonReplayable()); return { builder: b, tokenTicket: a @@ -9932,7 +9927,7 @@ v7AA.H22 = function() { error: function(b) { n(d, function() { this.releaseMasterToken(a); - b instanceof A && (b = new Y("User ID token not bound to master token despite internal check.", b)); + b instanceof G && (b = new ca("User ID token not bound to master token despite internal check.", b)); throw b; }, r); } @@ -9947,558 +9942,558 @@ v7AA.H22 = function() { } }); }, - buildResponse: function(a, b, c, g, d, h) { + buildResponse: function(a, b, f, c, d, k) { var r; r = this; - ue(b, g, { - result: function(l) { - H(h, function() { - l.setNonReplayable(c.isNonReplayable()); - if (!b.isPeerToPeer() && !g.keyResponseData) return { - builder: l, + qe(b, c, { + result: function(h) { + t(k, function() { + h.setNonReplayable(f.isNonReplayable()); + if (!b.isPeerToPeer() && !c.keyResponseData) return { + builder: h, tokenTicket: null }; this.getNewestMasterToken(a, b, d, { result: function(a) { - H(h, function() { - var g, d, r; - g = a && a.masterToken; - if (g) { - d = c.getUserId(); + t(k, function() { + var c, d, r; + c = a && a.masterToken; + if (c) { + d = f.getUserId(); r = b.getMslStore(); - d = (d = d ? r.getUserIdToken(d) : null) && d.isBoundTo(g) ? d : null; + d = (d = d ? r.getUserIdToken(d) : null) && d.isBoundTo(c) ? d : null; } else d = null; - l.setAuthTokens(g, d); + h.setAuthTokens(c, d); return { - builder: l, + builder: h, tokenTicket: a }; }, r); }, timeout: function() { - h.timeout(); + k.timeout(); }, error: function(a) { - h.error(a); + k.error(a); } }); }, r); }, error: function(a) { - h.error(a); + k.error(a); } }); }, - buildErrorResponse: function(a, b, c, g, d, h, l) { - var v; + buildErrorResponse: function(a, b, f, c, d, k, h) { + var g; - function r(a, g) { - H(l, function() { - var r, h; + function r(a, c) { + t(h, function() { + var r, k; r = Tb(d.messageId); - h = new va(g, c); + k = new R(c, f); Ub(b, null, null, r, { - result: function(c) { - H(l, function() { - b.isPeerToPeer() && c.setPeerAuthTokens(a.peerMasterToken, a.peerUserIdToken); - c.setNonReplayable(h.isNonReplayable()); + result: function(f) { + t(h, function() { + b.isPeerToPeer() && f.setPeerAuthTokens(a.peerMasterToken, a.peerUserIdToken); + f.setNonReplayable(k.isNonReplayable()); return { - errorResult: new J(c, h), + errorResult: new L(f, k), tokenTicket: null }; - }, v); + }, g); }, error: function(a) { - l.error(a); + h.error(a); } }); - }, v); + }, g); } - function u(g, r) { - v.getNewestMasterToken(a, b, h, { + function u(c, r) { + g.getNewestMasterToken(a, b, k, { result: function(a) { - H(l, function() { - var h, u, x; - h = a && a.masterToken; + t(h, function() { + var k, u, x; + k = a && a.masterToken; u = Tb(d.messageId); - x = new va(r, c); - Ub(b, h, null, u, { - result: function(c) { - H(l, function() { - b.isPeerToPeer() && c.setPeerAuthTokens(g.peerMasterToken, g.peerUserIdToken); - c.setNonReplayable(x.isNonReplayable()); + x = new R(r, f); + Ub(b, k, null, u, { + result: function(f) { + t(h, function() { + b.isPeerToPeer() && f.setPeerAuthTokens(c.peerMasterToken, c.peerUserIdToken); + f.setNonReplayable(x.isNonReplayable()); return { - errorResult: new J(c, x), + errorResult: new L(f, x), tokenTicket: a }; - }, v); + }, g); }, error: function(a) { - l.error(a); + h.error(a); } }); - }, v); + }, g); }, timeout: function() { - l.timeout(); + h.timeout(); }, error: function(a) { - l.error(a); + h.error(a); } }); } - v = this; - H(l, function() { - var x, y, f, z; - x = g.requestHeader; - y = g.payloads; - f = d.errorCode; - switch (f) { + g = this; + t(h, function() { + var x, v, y, w; + x = c.requestHeader; + v = c.payloads; + y = d.errorCode; + switch (y) { case q.ENTITYDATA_REAUTH: case q.ENTITY_REAUTH: - b.getEntityAuthenticationData(f, { + b.getEntityAuthenticationData(y, { result: function(a) { - H(l, function() { + t(h, function() { if (!a) return null; - r(x, y); - }, v); + r(x, v); + }, g); }, error: function(a) { - l.error(a); + h.error(a); } }); break; case q.USERDATA_REAUTH: case q.SSOTOKEN_REJECTED: - c.getUserAuthData(f, !1, !0, { + f.getUserAuthData(y, !1, !0, { result: function(a) { - H(l, function() { + t(h, function() { if (!a) return null; - u(x, y); - }, v); + u(x, v); + }, g); }, error: function(a) { - l.error(a); + h.error(a); } }); break; case q.USER_REAUTH: - u(x, y); + u(x, v); break; case q.KEYX_REQUIRED: - f = Tb(d.messageId), z = new va(y, c); - Ub(b, null, null, f, { + y = Tb(d.messageId), w = new R(v, f); + Ub(b, null, null, y, { result: function(a) { - H(l, function() { + t(h, function() { b.isPeerToPeer() && a.setPeerAuthTokens(x.peerMasterToken, x.peerUserIdToken); a.setRenewable(!0); - a.setNonReplayable(z.isNonReplayable()); + a.setNonReplayable(w.isNonReplayable()); return { - errorResult: new J(a, z), + errorResult: new L(a, w), tokenTicket: null }; - }, v); + }, g); }, error: function(a) { - l.error(a); + h.error(a); } }); break; case q.EXPIRED: - this.getNewestMasterToken(a, b, h, { + this.getNewestMasterToken(a, b, k, { result: function(a) { - H(l, function() { - var g, r, h, u; - g = a && a.masterToken; + t(h, function() { + var c, r, k, u; + c = a && a.masterToken; r = x.userIdToken; - h = Tb(d.messageId); - u = new va(y, c); - Ub(b, g, r, h, { - result: function(c) { - H(l, function() { - b.isPeerToPeer() && c.setPeerAuthTokens(x.peerMasterToken, x.peerUserIdToken); - x.masterToken.equals(g) && c.setRenewable(!0); - c.setNonReplayable(u.isNonReplayable()); + k = Tb(d.messageId); + u = new R(v, f); + Ub(b, c, r, k, { + result: function(f) { + t(h, function() { + b.isPeerToPeer() && f.setPeerAuthTokens(x.peerMasterToken, x.peerUserIdToken); + x.masterToken.equals(c) && f.setRenewable(!0); + f.setNonReplayable(u.isNonReplayable()); return { - errorResult: new J(c, u), + errorResult: new L(f, u), tokenTicket: a }; - }, v); + }, g); }, error: function(a) { - l.error(a); + h.error(a); } - }, v); - }, v); + }, g); + }, g); }, timeout: function() { - l.timeout(); + h.timeout(); }, error: function(a) { - l.error(a); + h.error(a); } }); break; case q.REPLAYED: - this.getNewestMasterToken(a, b, h, { + this.getNewestMasterToken(a, b, k, { result: function(a) { - H(l, function() { - var g, r, h, u; - g = a && a.masterToken; + t(h, function() { + var c, r, k, u; + c = a && a.masterToken; r = x.userIdToken; - h = Tb(d.messageId); - u = new va(y, c); - Ub(b, g, r, h, { - result: function(c) { - H(l, function() { - b.isPeerToPeer() && c.setPeerAuthTokens(x.peerMasterToken, x.peerUserIdToken); - x.masterToken.equals(g) ? (c.setRenewable(!0), c.setNonReplayable(!1)) : c.setNonReplayable(u.isNonReplayable()); + k = Tb(d.messageId); + u = new R(v, f); + Ub(b, c, r, k, { + result: function(f) { + t(h, function() { + b.isPeerToPeer() && f.setPeerAuthTokens(x.peerMasterToken, x.peerUserIdToken); + x.masterToken.equals(c) ? (f.setRenewable(!0), f.setNonReplayable(!1)) : f.setNonReplayable(u.isNonReplayable()); return { - errorResult: new J(c, u), + errorResult: new L(f, u), tokenTicket: a }; - }, v); + }, g); }, error: function(a) { - l.error(a); + h.error(a); } }); - }, v); + }, g); }, timeout: function() { - l.timeout(); + h.timeout(); }, error: function(a) { - l.error(a); + h.error(a); } }); break; default: return null; } - }, v); + }, g); }, - cleanupContext: function(a, b, c) { - switch (c.errorCode) { + cleanupContext: function(a, b, f) { + switch (f.errorCode) { case q.ENTITY_REAUTH: this.deleteMasterToken(a, b.masterToken); break; case q.USER_REAUTH: - c = b.userIdToken, b.masterToken && c && a.getMslStore().removeUserIdToken(c); + f = b.userIdToken, b.masterToken && f && a.getMslStore().removeUserIdToken(f); } }, - send: function(a, b, c, g, d, h, l) { - var z; + send: function(a, b, f, c, d, k, h) { + var y; - function r(a, g, r) { - H(l, function() { - var h; - h = d.getPeerUserIdToken(); - !b.isPeerToPeer() && !g || b.isPeerToPeer() && !h ? (h = c.getCustomer()) ? d.setCustomer(h, { + function r(a, c, r) { + t(h, function() { + var k; + k = d.getPeerUserIdToken(); + !b.isPeerToPeer() && !c || b.isPeerToPeer() && !k ? (k = f.getCustomer()) ? d.setCustomer(k, { result: function(b) { - H(l, function() { - g = d.getUserIdToken(); - u(a, g, r); - }, z); + t(h, function() { + c = d.getUserIdToken(); + u(a, c, r); + }, y); }, error: function(a) { - l.error(a); + h.error(a); } - }) : u(a, g, r) : u(a, g, r); - }, z); + }) : u(a, c, r) : u(a, c, r); + }, y); } - function u(a, b, g) { - H(l, function() { - var r, h; - r = !g && (!c.isEncrypted() || d.willEncryptPayloads()) && (!c.isIntegrityProtected() || d.willIntegrityProtectPayloads()) && (!c.isNonReplayable() || d.isNonReplayable() && a); + function u(a, b, c) { + t(h, function() { + var r, k; + r = !c && (!f.isEncrypted() || d.willEncryptPayloads()) && (!f.isIntegrityProtected() || d.willIntegrityProtectPayloads()) && (!f.isNonReplayable() || d.isNonReplayable() && a); r || d.setNonReplayable(!1); - h = []; - d.isRenewable() && (!a || a.isRenewable() || c.isNonReplayable()) ? c.getKeyRequestData({ - result: function(c) { - H(l, function() { - var l; - for (var g = 0; g < c.length; ++g) { - l = c[g]; - h.push(l); - d.addKeyRequestData(l); + k = []; + d.isRenewable() && (!a || a.isRenewable() || f.isNonReplayable()) ? f.getKeyRequestData({ + result: function(f) { + t(h, function() { + var h; + for (var c = 0; c < f.length; ++c) { + h = f[c]; + k.push(h); + d.addKeyRequestData(h); } - v(a, b, r, h); - }, z); + g(a, b, r, k); + }, y); }, error: function(a) { - l.error(a); + h.error(a); } - }) : v(a, b, r, h); - }, z); + }) : g(a, b, r, k); + }, y); } - function v(r, u, v, y) { - H(l, function() { - var y; - y = new we(b, c, d); - c.updateServiceTokens(y, !v, { - result: function(y) { + function g(r, u, g, v) { + t(h, function() { + var v; + v = new se(b, f, d); + f.updateServiceTokens(v, !g, { + result: function(v) { d.getHeader({ - result: function(y) { - H(l, function() { - var f, z; - f = c.getDebugContext(); - f && f.sentHeader(y); - f = d.getKeyExchangeData(); - this.updateOutgoingCryptoContexts(b, y, f); - this.storeServiceTokens(b, r, u, y.serviceTokens); - f = !b.isPeerToPeer() && f ? f.cryptoContext : y.cryptoContext; - if (a.isAborted()) throw new Xa("send aborted."); - z = null != this._filterFactory ? this._filterFactory.getOutputStream(g) : g; - Lc(b, z, Ca, y, f, h, { + result: function(v) { + t(h, function() { + var y, w; + y = f.getDebugContext(); + y && y.sentHeader(v); + y = d.getKeyExchangeData(); + this.updateOutgoingCryptoContexts(b, v, y); + this.storeServiceTokens(b, r, u, v.serviceTokens); + y = !b.isPeerToPeer() && y ? y.cryptoContext : v.cryptoContext; + if (a.isAborted()) throw new ab("send aborted."); + w = null != this._filterFactory ? this._filterFactory.getOutputStream(c) : c; + Mc(b, w, Ba, v, y, k, { result: function(b) { a.setAbort(function() { b.abort(); }); - x(b, y, v); + x(b, v, g); }, timeout: function() { - l.timeout(); + h.timeout(); }, error: function(a) { - l.error(a); + h.error(a); } }); - }, z); + }, y); }, timeout: function() { - l.timeout(); + h.timeout(); }, error: function(a) { - l.error(a); + h.error(a); } }); }, error: function(a) { - l.error(a); + h.error(a); } }); - }, z); + }, y); } - function x(g, d, r) { - var u, v; - if (r) c.write(g, h, { + function x(c, d, r) { + var u, g; + if (r) f.write(c, k, { result: function(b) { - H(l, function() { - if (a.isAborted()) throw new Xa("MessageOutputStream write aborted."); - f(g, d, r); - }, z); + t(h, function() { + if (a.isAborted()) throw new ab("MessageOutputStream write aborted."); + v(c, d, r); + }, y); }, timeout: function() { - l.timeout(); + h.timeout(); }, error: function(a) { - l.error(a); + h.error(a); } }); else { - u = new La(); - v = new cc(); - Lc(b, u, Ca, d, v, h, { + u = new A(); + g = new cc(); + Mc(b, u, Ba, d, g, k, { result: function(b) { - c.write(b, h, { - result: function(c) { - H(l, function() { - if (a.isAborted()) throw new Xa("MessageOutputStream proxy write aborted."); - b.close(h, { + f.write(b, k, { + result: function(f) { + t(h, function() { + if (a.isAborted()) throw new ab("MessageOutputStream proxy write aborted."); + b.close(k, { result: function(a) { - H(l, function() { - var c; - if (!a) throw new Xa("MessageOutputStream proxy close aborted."); - c = b.getPayloads(); - f(g, d, r, c); - }, z); + t(h, function() { + var f; + if (!a) throw new ab("MessageOutputStream proxy close aborted."); + f = b.getPayloads(); + v(c, d, r, f); + }, y); }, timeout: function() { - l.timeout(); + h.timeout(); }, error: function(a) { - l.error(a); + h.error(a); } }); - }, z); + }, y); }, timeout: function() { - l.timeout(); + h.timeout(); }, error: function(a) { - l.error(a); + h.error(a); } }); }, timeout: function() { - l.timeout(); + h.timeout(); }, error: function(a) { - l.error(a); + h.error(a); } }); } } - function f(a, b, c, g) { - a.close(h, { + function v(a, b, f, c) { + a.close(k, { result: function(d) { - H(l, function() { - if (!d) throw new Xa("MessageOutputStream close aborted."); - g || (g = a.getPayloads()); - return new Q(b, g, !c); - }, z); + t(h, function() { + if (!d) throw new ab("MessageOutputStream close aborted."); + c || (c = a.getPayloads()); + return new V(b, c, !f); + }, y); }, timeout: function() { - l.timeout(); + h.timeout(); }, error: function(a) { - l.error(a); + h.error(a); } }); } - z = this; - H(l, function() { - var a, b, g, h; + y = this; + t(h, function() { + var a, b, c, k; a = d.getMasterToken(); b = d.getUserIdToken(); - g = !1; - if (c.getUserId()) { - h = !b; - c.getUserAuthData(null, d.isRenewable(), h, { - result: function(c) { - H(l, function() { - c && (d.willEncryptHeader() && d.willIntegrityProtectHeader() ? d.setUserAuthenticationData(c) : g = !0); - r(a, b, g); - }, z); + c = !1; + if (f.getUserId()) { + k = !b; + f.getUserAuthData(null, d.isRenewable(), k, { + result: function(f) { + t(h, function() { + f && (d.willEncryptHeader() && d.willIntegrityProtectHeader() ? d.setUserAuthenticationData(f) : c = !0); + r(a, b, c); + }, y); }, error: function(a) { - l.error(a); + h.error(a); } }); - } else r(a, b, g); - }, z); + } else r(a, b, c); + }, y); }, - receive: function(a, b, c, g, d, h, l) { + receive: function(a, b, f, c, d, k, h) { var r; r = this; - H(l, function() { - var u, v, x; - if (a.isAborted()) throw new Xa("receive aborted."); + t(h, function() { + var u, g, v; + if (a.isAborted()) throw new ab("receive aborted."); u = []; d && (u = d.keyRequestData.filter(function() { return !0; })); - v = c.getCryptoContexts(); - x = this._filterFactory ? this._filterFactory.getInputStream(g) : g; - ye(b, x, Ca, u, v, h, { - result: function(g) { + g = f.getCryptoContexts(); + v = this._filterFactory ? this._filterFactory.getInputStream(c) : c; + ue(b, v, Ba, u, g, k, { + result: function(c) { a.setAbort(function() { - g.abort(); + c.abort(); }); - g.isReady(h, { + c.isReady(k, { result: function(a) { - H(l, function() { - var h, u, v, x; - if (!a) throw new Xa("MessageInputStream aborted."); - h = g.getMessageHeader(); - u = g.getErrorHeader(); - v = c.getDebugContext(); - v && v.receivedHeader(h ? h : u); - if (d && (v = u ? u.errorCode : null, h || v != q.FAIL && v != q.TRANSIENT_FAILURE && v != q.ENTITY_REAUTH && v != q.ENTITYDATA_REAUTH)) { - v = h ? h.messageId : u.messageId; - x = Tb(d.messageId); - if (v != x) throw new xa(k.UNEXPECTED_RESPONSE_MESSAGE_ID, "expected " + x + "; received " + v); + t(h, function() { + var k, u, g, v; + if (!a) throw new ab("MessageInputStream aborted."); + k = c.getMessageHeader(); + u = c.getErrorHeader(); + g = f.getDebugContext(); + g && g.receivedHeader(k ? k : u); + if (d && (g = u ? u.errorCode : null, k || g != q.FAIL && g != q.TRANSIENT_FAILURE && g != q.ENTITY_REAUTH && g != q.ENTITYDATA_REAUTH)) { + g = k ? k.messageId : u.messageId; + v = Tb(d.messageId); + if (g != v) throw new ta(l.UNEXPECTED_RESPONSE_MESSAGE_ID, "expected " + v + "; received " + g); } b.getEntityAuthenticationData(null, { result: function(a) { - H(l, function() { - var r, l, v, x; + t(h, function() { + var r, h, g, v; r = a.getIdentity(); - if (h) { - l = h.entityAuthenticationData; - v = h.masterToken; - l = v ? h.sender : l.getIdentity(); - if (v && v.isDecrypted() && v.identity != l || r == l) throw new xa(k.UNEXPECTED_MESSAGE_SENDER, l); - d && this.updateIncomingCryptoContexts(b, d, g); - r = h.keyResponseData; - b.isPeerToPeer() ? (r = r ? r.masterToken : h.peerMasterToken, v = h.peerUserIdToken, l = h.peerServiceTokens) : (r = r ? r.masterToken : h.masterToken, v = h.userIdToken, l = h.serviceTokens); - x = c.getUserId(); - x && v && !v.isVerified() && b.getMslStore().addUserIdToken(x, v); - this.storeServiceTokens(b, r, v, l); - } else if (l = u.entityAuthenticationData.getIdentity(), r == l) throw new xa(k.UNEXPECTED_MESSAGE_SENDER, l); - return g; + if (k) { + h = k.entityAuthenticationData; + g = k.masterToken; + h = g ? k.sender : h.getIdentity(); + if (g && g.isDecrypted() && g.identity != h || r == h) throw new ta(l.UNEXPECTED_MESSAGE_SENDER, h); + d && this.updateIncomingCryptoContexts(b, d, c); + r = k.keyResponseData; + b.isPeerToPeer() ? (r = r ? r.masterToken : k.peerMasterToken, g = k.peerUserIdToken, h = k.peerServiceTokens) : (r = r ? r.masterToken : k.masterToken, g = k.userIdToken, h = k.serviceTokens); + v = f.getUserId(); + v && g && !g.isVerified() && b.getMslStore().addUserIdToken(v, g); + this.storeServiceTokens(b, r, g, h); + } else if (h = u.entityAuthenticationData.getIdentity(), r == h) throw new ta(l.UNEXPECTED_MESSAGE_SENDER, h); + return c; }, r); }, - error: l.error + error: h.error }); }, r); }, timeout: function() { - l.timeout(); + h.timeout(); }, error: function(a) { - l.error(a); + h.error(a); } }); }, timeout: function() { - l.timeout(); + h.timeout(); }, error: function(a) { - l.error(a); + h.error(a); } }); }, r); }, - sendReceive: function(a, b, c, g, d, h, l, y, f) { + sendReceive: function(a, b, f, c, d, k, h, g, E) { var u; function r(r, v) { - H(f, function() { - h.setRenewable(v); - this.send(a, b, c, d, h, l, { + t(E, function() { + k.setRenewable(v); + this.send(a, b, f, d, k, h, { result: function(d) { - H(f, function() { - var h; - h = d.requestHeader.keyRequestData; - y || d.handshake || !h.isEmpty() ? this.receive(a, b, c, g, d.requestHeader, l, { + t(E, function() { + var k; + k = d.requestHeader.keyRequestData; + g || d.handshake || !k.isEmpty() ? this.receive(a, b, f, c, d.requestHeader, h, { result: function(a) { - H(f, function() { + t(E, function() { v && this.releaseRenewalLock(b, r, a); - return new L(a, d); + return new J(a, d); }, u); }, timeout: function() { - H(f, function() { + t(E, function() { v && this.releaseRenewalLock(b, r, null); - f.timeout(); + E.timeout(); }, u); }, error: function(a) { - H(f, function() { + t(E, function() { v && this.releaseRenewalLock(b, r, null); throw a; }, u); } - }) : H(f, function() { + }) : t(E, function() { v && this.releaseRenewalLock(b, r, null); - return new L(null, d); + return new J(null, d); }, u); }, u); }, timeout: function() { - H(f, function() { + t(E, function() { v && this.releaseRenewalLock(b, r, null); - f.timeout(); + E.timeout(); }, u); }, error: function(a) { - H(f, function() { + t(E, function() { v && this.releaseRenewalLock(b, r, null); throw a; }, u); @@ -10507,54 +10502,54 @@ v7AA.H22 = function() { }, u); } u = this; - H(f, function() { - var g; - g = new jc(); - this.acquireRenewalLock(a, b, c, g, h, l, { + t(E, function() { + var c; + c = new ic(); + this.acquireRenewalLock(a, b, f, c, k, h, { result: function(a) { - r(g, a); + r(c, a); }, timeout: function() { - f.timeout(); + E.timeout(); }, error: function(a) { - a instanceof Xa ? f.result(null) : f.error(a); + a instanceof ab ? E.result(null) : E.error(a); } }); }, u); }, - acquireRenewalLock: function(a, b, g, d, h, l, x) { + acquireRenewalLock: function(a, b, f, c, k, h, g) { var v; - function r(y, f, z) { - H(x, function() { - var C, F; - if (a.isAborted()) throw new Xa("acquireRenewalLock aborted."); - for (var w = null, T = 0; T < this._renewingContexts.length; ++T) { - C = this._renewingContexts[T]; - if (C.ctx === b) { - w = C.queue; + function r(x, y, w) { + t(g, function() { + var E, F; + if (a.isAborted()) throw new ab("acquireRenewalLock aborted."); + for (var z = null, D = 0; D < this._renewingContexts.length; ++D) { + E = this._renewingContexts[D]; + if (E.ctx === b) { + z = E.queue; break; } } - if (!w) return this._renewingContexts.push({ + if (!z) return this._renewingContexts.push({ ctx: b, - queue: d + queue: c }), !0; - F = w.poll(l, { + F = z.poll(h, { result: function(a) { - H(x, function() { - var d; - if (a === ga) throw new Xa("acquireRenewalLock aborted."); - w.add(a); - if (a === c || a.isExpired()) r(a, f, z); + t(g, function() { + var c; + if (a === da) throw new ab("acquireRenewalLock aborted."); + z.add(a); + if (a === d || a.isExpired()) r(a, y, w); else { - if (z && !f || f && !f.isBoundTo(a)) { - d = b.getMslStore().getUserIdToken(z); - f = d && d.isBoundTo(a) ? d : null; + if (w && !y || y && !y.isBoundTo(a)) { + c = b.getMslStore().getUserIdToken(w); + y = c && c.isBoundTo(a) ? c : null; } - h.setAuthTokens(a, f); - h.isRenewable() && a.equals(y) ? r(a, f, z) : g.isRequestingTokens() && !f ? r(a, f, z) : u(a, f); + k.setAuthTokens(a, y); + k.isRenewable() && a.equals(x) ? r(a, y, w) : f.isRequestingTokens() && !y ? r(a, y, w) : u(a, y); } }, v); }, @@ -10562,61 +10557,61 @@ v7AA.H22 = function() { error: function(a) {} }); a.setAbort(function() { - F && (w.cancel(F), F = ga); + F && (z.cancel(F), F = da); }); }, v); } - function u(c, r) { - H(x, function() { + function u(d, r) { + t(g, function() { var u; - if (a.isAborted()) throw new Xa("acquireRenewalLock aborted."); - if (!c || c.isRenewable() || !r && g.getUserId() || r && r.isRenewable()) { - for (var h = null, l = 0; l < this._renewingContexts.length; ++l) { - u = this._renewingContexts[l]; + if (a.isAborted()) throw new ab("acquireRenewalLock aborted."); + if (!d || d.isRenewable() || !r && f.getUserId() || r && r.isRenewable()) { + for (var k = null, h = 0; h < this._renewingContexts.length; ++h) { + u = this._renewingContexts[h]; if (u.ctx === b) { - h = u.queue; + k = u.queue; break; } } - if (!h) return this._renewingContexts.push({ + if (!k) return this._renewingContexts.push({ ctx: b, - queue: d + queue: c }), !0; } return !1; }, v); } v = this; - H(x, function() { + t(g, function() { var a, b, c; - a = h.getMasterToken(); - b = h.getUserIdToken(); - c = g.getUserId(); - g.isEncrypted() && !h.willEncryptPayloads() || g.isIntegrityProtected() && !h.willIntegrityProtectPayloads() || h.isRenewable() || !a && g.isNonReplayable() || a && a.isExpired() || !(b || !c || h.willEncryptHeader() && h.willIntegrityProtectHeader()) || g.isRequestingTokens() && (!a || c && !b) ? r(a, b, c) : u(a, b); + a = k.getMasterToken(); + b = k.getUserIdToken(); + c = f.getUserId(); + f.isEncrypted() && !k.willEncryptPayloads() || f.isIntegrityProtected() && !k.willIntegrityProtectPayloads() || k.isRenewable() || !a && f.isNonReplayable() || a && a.isExpired() || !(b || !c || k.willEncryptHeader() && k.willIntegrityProtectHeader()) || f.isRequestingTokens() && (!a || c && !b) ? r(a, b, c) : u(a, b); }, v); }, - releaseRenewalLock: function(a, b, g) { - var l; - for (var d, r, h = 0; h < this._renewingContexts.length; ++h) { - l = this._renewingContexts[h]; - if (l.ctx === a) { - d = h; - r = l.queue; + releaseRenewalLock: function(a, b, f) { + var h; + for (var c, r, k = 0; k < this._renewingContexts.length; ++k) { + h = this._renewingContexts[k]; + if (h.ctx === a) { + c = k; + r = h.queue; break; } } - if (r !== b) throw new Y("Attempt to release renewal lock that is not owned by this queue."); - g ? (g = g.messageHeader) ? (r = g.keyResponseData) ? b.add(r.masterToken) : (a = a.isPeerToPeer() ? g.peerMasterToken : g.masterToken) ? b.add(a) : b.add(c) : b.add(c) : b.add(c); - this._renewingContexts.splice(d, 1); + if (r !== b) throw new ca("Attempt to release renewal lock that is not owned by this queue."); + f ? (f = f.messageHeader) ? (r = f.keyResponseData) ? b.add(r.masterToken) : (a = a.isPeerToPeer() ? f.peerMasterToken : f.masterToken) ? b.add(a) : b.add(d) : b.add(d) : b.add(d); + this._renewingContexts.splice(c, 1); } }); - Be = fa.Class.create({ + xe = ha.Class.create({ init: function() { var a; a = { _impl: { - value: new l(), + value: new k(), writable: !1, enumerable: !1, configurable: !1 @@ -10636,54 +10631,54 @@ v7AA.H22 = function() { shutdown: function() { this._shutdown = !0; }, - receive: function(b, c, g, d, h, l) { + receive: function(b, f, c, d, k, h) { var r; - if (this._shutdown) throw new A("MslControl is shutdown."); - r = new a(this._impl, b, c, g, d, h); + if (this._shutdown) throw new G("MslControl is shutdown."); + r = new a(this._impl, b, f, c, d, k); setTimeout(function() { - r.call(l); + r.call(h); }, 0); - return t(r); + return K(r); }, - respond: function(a, c, g, d, h, l, x) { + respond: function(a, f, c, d, k, h, g) { var r; - if (this._shutdown) throw new A("MslControl is shutdown."); - r = new b(this._impl, a, c, g, d, h, l); + if (this._shutdown) throw new G("MslControl is shutdown."); + r = new b(this._impl, a, f, c, d, k, h); setTimeout(function() { - r.call(x); + r.call(g); }, 0); - return t(r); + return K(r); }, - error: function(a, b, c, g, h, l, x) { + error: function(a, b, f, d, k, h, g) { var r; - if (this._shutdown) throw new A("MslControl is shutdown."); - r = new d(this._impl, a, b, c, g, h, l); + if (this._shutdown) throw new G("MslControl is shutdown."); + r = new c(this._impl, a, b, f, d, k, h); setTimeout(function() { - r.call(x); + r.call(g); }, 0); - return t(r); + return K(r); }, request: function(a, b) { - var c, g, d, r, l, u; - if (this._shutdown) throw new A("MslControl is shutdown."); + var f, c, d, r, k, u; + if (this._shutdown) throw new G("MslControl is shutdown."); if (5 == arguments.length) { - if (c = arguments[2], d = g = null, r = arguments[3], l = arguments[4], a.isPeerToPeer()) { - l.error(new Y("This method cannot be used in peer-to-peer mode.")); + if (f = arguments[2], d = c = null, r = arguments[3], k = arguments[4], a.isPeerToPeer()) { + k.error(new ca("This method cannot be used in peer-to-peer mode.")); return; } - } else if (6 == arguments.length && (c = null, g = arguments[2], d = arguments[3], r = arguments[4], l = arguments[5], !a.isPeerToPeer())) { - l.error(new Y("This method cannot be used in trusted network mode.")); + } else if (6 == arguments.length && (f = null, c = arguments[2], d = arguments[3], r = arguments[4], k = arguments[5], !a.isPeerToPeer())) { + k.error(new ca("This method cannot be used in trusted network mode.")); return; } - u = new h(this._impl, a, b, c, g, d, null, 0, r); + u = new h(this._impl, a, b, f, c, d, null, 0, r); setTimeout(function() { - u.call(l); + u.call(k); }, 0); - return t(u); + return K(u); } }); - a = fa.Class.create({ - init: function(a, b, c, g, d, h) { + a = ha.Class.create({ + init: function(a, b, f, c, d, k) { Object.defineProperties(this, { _ctrl: { value: a, @@ -10698,13 +10693,13 @@ v7AA.H22 = function() { configurable: !1 }, _msgCtx: { - value: c, + value: f, writable: !1, enumerable: !1, configurable: !1 }, _input: { - value: g, + value: c, writable: !1, enumerable: !1, configurable: !1 @@ -10716,7 +10711,7 @@ v7AA.H22 = function() { configurable: !1 }, _timeout: { - value: h, + value: k, writable: !1, enumerable: !1, configurable: !1 @@ -10728,7 +10723,7 @@ v7AA.H22 = function() { configurable: !1 }, _abortFunc: { - value: ga, + value: da, writable: !0, enumerable: !1, configurable: !1 @@ -10749,42 +10744,42 @@ v7AA.H22 = function() { var d; function b(b) { - H(a, function() { - var g; - g = b.messageHeader; - if (!g) return b; + t(a, function() { + var c; + c = b.messageHeader; + if (!c) return b; this.setAbort(function() { b.abort(); }); b.mark(Number.MAX_VALUE); b.read(1, d._timeout, { - result: function(g) { - H(a, function() { - if (g && 0 == g.length) return null; - if (g) return b.reset(), b; - c(b); + result: function(c) { + t(a, function() { + if (c && 0 == c.length) return null; + if (c) return b.reset(), b; + f(b); }, d); }, timeout: function() { a.timeout(); }, error: function(b) { - H(a, function() { - var c, r, h; - if (E(b)) return null; - c = g ? g.messageId : null; - b instanceof Oa ? (r = k.MSL_COMMS_FAILURE, h = b) : (r = k.INTERNAL_EXCEPTION, h = new Y("Error peeking into the message payloads.")); - K(this, this._ctx, this._msgCtx.getDebugContext(), c, r, null, this._output, this._timeout, { + t(a, function() { + var f, r, k; + if (C(b)) return null; + f = c ? c.messageId : null; + b instanceof Wa ? (r = l.MSL_COMMS_FAILURE, k = b) : (r = l.INTERNAL_EXCEPTION, k = new ca("Error peeking into the message payloads.")); + M(this, this._ctx, this._msgCtx.getDebugContext(), f, r, null, this._output, this._timeout, { result: function(b) { - a.error(h); + a.error(k); }, timeout: function() { a.timeout(); }, - error: function(c) { - H(a, function() { - if (E(c)) return null; - throw new fb("Error peeking into the message payloads.", c, b); + error: function(f) { + t(a, function() { + if (C(f)) return null; + throw new lb("Error peeking into the message payloads.", f, b); }, d); } }); @@ -10794,20 +10789,20 @@ v7AA.H22 = function() { }, d); } - function c(b) { - H(a, function() { + function f(b) { + t(a, function() { b.close(); this._ctrl.buildResponse(this, this._ctx, this._msgCtx, b.messageHeader, this._timeout, { - result: function(c) { - H(a, function() { - var d, r, l, u, v; - d = c.builder; - r = c.tokenTicket; - l = b.messageHeader; - u = new f(this._msgCtx); - if (!this._ctx.isPeerToPeer() || l.isEncrypting() || l.keyResponseData) g(l, d, u, r); + result: function(f) { + t(a, function() { + var d, r, k, u, v; + d = f.builder; + r = f.tokenTicket; + k = b.messageHeader; + u = new g(this._msgCtx); + if (!this._ctx.isPeerToPeer() || k.isEncrypting() || k.keyResponseData) c(k, d, u, r); else { - v = new h(this._ctrl, this._ctx, u, null, this._input, this._output, c, 1, this._timeout); + v = new h(this._ctrl, this._ctx, u, null, this._input, this._output, f, 1, this._timeout); this.setAbort(function() { v.abort(); }); @@ -10818,22 +10813,22 @@ v7AA.H22 = function() { timeout: function() { a.timeout(); }, - error: function(c) { - H(a, function() { - var g, r, h, l; - if (E(c)) return null; - c instanceof A ? (g = c.messageId, r = c.error, h = b.messageHeader.messageCapabilities, h = this._ctrl.messageRegistry.getUserMessage(r, h ? h.languages : null), l = c) : (g = requestHeader ? requestHeader.messageId : null, r = k.INTERNAL_EXCEPTION, h = null, l = new Y("Error creating an automatic handshake response.", c)); - K(this, this._ctx, this._msgCtx.getDebugContext(), g, r, h, this._output, this._timeout, { + error: function(f) { + t(a, function() { + var c, r, k, h; + if (C(f)) return null; + f instanceof G ? (c = f.messageId, r = f.error, k = b.messageHeader.messageCapabilities, k = this._ctrl.messageRegistry.getUserMessage(r, k ? k.languages : null), h = f) : (c = requestHeader ? requestHeader.messageId : null, r = l.INTERNAL_EXCEPTION, k = null, h = new ca("Error creating an automatic handshake response.", f)); + M(this, this._ctx, this._msgCtx.getDebugContext(), c, r, k, this._output, this._timeout, { result: function(b) { - a.error(l); + a.error(h); }, timeout: function() { a.timeout(); }, error: function(b) { - H(a, function() { - if (E(b)) return null; - throw new fb("Error creating an automatic handshake response.", b, c); + t(a, function() { + if (C(b)) return null; + throw new lb("Error creating an automatic handshake response.", b, f); }, d); } }); @@ -10843,29 +10838,29 @@ v7AA.H22 = function() { }, d); } - function g(b, c, g, r) { - H(a, function() { - c.setRenewable(!1); - this._ctrl.send(this._ctx, g, this._output, c, this._timeout, { + function c(b, f, c, r) { + t(a, function() { + f.setRenewable(!1); + this._ctrl.send(this._ctx, c, this._output, f, this._timeout, { result: function(b) { - H(a, function() { + t(a, function() { this._ctx.isPeerToPeer() && this._ctrl.releaseMasterToken(r); return null; }, d); }, timeout: function() { - H(a, function() { + t(a, function() { this._ctx.isPeerToPeer() && this._ctrl.releaseMasterToken(r); a.timeout(); }, d); }, - error: function(c) { - H(a, function() { - var g, h, l, u; + error: function(f) { + t(a, function() { + var c, k, h, u; this._ctx.isPeerToPeer() && this._ctrl.releaseMasterToken(r); - if (E(c)) return null; - c instanceof A ? (g = c.messageId, h = c.error, l = b ? b.messageCapabilities : null, l = this._ctrl.messageRegistry.getUserMessage(h, l ? l.languages : null), u = c) : c instanceof Oa ? (g = b ? b.messageId : null, h = k.MSL_COMMS_FAILURE, l = null, u = c) : (g = b ? b.messageId : null, h = k.INTERNAL_EXCEPTION, l = null, u = new Y("Error sending an automatic handshake response.", c)); - K(this, this._ctx, this._msgCtx.getDebugContext(), g, h, l, this._output, this._timeout, { + if (C(f)) return null; + f instanceof G ? (c = f.messageId, k = f.error, h = b ? b.messageCapabilities : null, h = this._ctrl.messageRegistry.getUserMessage(k, h ? h.languages : null), u = f) : f instanceof Wa ? (c = b ? b.messageId : null, k = l.MSL_COMMS_FAILURE, h = null, u = f) : (c = b ? b.messageId : null, k = l.INTERNAL_EXCEPTION, h = null, u = new ca("Error sending an automatic handshake response.", f)); + M(this, this._ctx, this._msgCtx.getDebugContext(), c, k, h, this._output, this._timeout, { result: function(b) { a.error(u); }, @@ -10873,9 +10868,9 @@ v7AA.H22 = function() { a.timeout(); }, error: function(b) { - H(a, function() { - if (E(b)) return null; - throw new fb("Error sending an automatic handshake response.", b, c); + t(a, function() { + if (C(b)) return null; + throw new lb("Error sending an automatic handshake response.", b, f); }, d); } }); @@ -10885,7 +10880,7 @@ v7AA.H22 = function() { }, d); } d = this; - H(a, function() { + t(a, function() { this._ctrl.receive(this, this._ctx, this._msgCtx, this._input, null, this._timeout, { result: function(a) { b(a); @@ -10894,21 +10889,21 @@ v7AA.H22 = function() { a.timeout(); }, error: function(b) { - H(a, function() { - var c, g, r, h; - if (E(b)) return null; - b instanceof A ? (c = b.messageId, g = b.error, r = this._ctrl.messageRegistry.getUserMessage(g, null), h = b) : (c = null, g = k.INTERNAL_EXCEPTION, r = null, h = new Y("Error receiving the message header.", b)); - K(this, this._ctx, this._msgCtx.getDebugContext(), c, g, r, this._output, this._timeout, { + t(a, function() { + var f, c, r, k; + if (C(b)) return null; + b instanceof G ? (f = b.messageId, c = b.error, r = this._ctrl.messageRegistry.getUserMessage(c, null), k = b) : (f = null, c = l.INTERNAL_EXCEPTION, r = null, k = new ca("Error receiving the message header.", b)); + M(this, this._ctx, this._msgCtx.getDebugContext(), f, c, r, this._output, this._timeout, { result: function(b) { - a.error(h); + a.error(k); }, timeout: function() { a.timeout(); }, - error: function(c) { - H(a, function() { - if (E(c)) return null; - throw new fb("Error receiving the message header.", c, b); + error: function(f) { + t(a, function() { + if (C(f)) return null; + throw new lb("Error receiving the message header.", f, b); }, d); } }); @@ -10918,8 +10913,8 @@ v7AA.H22 = function() { }, d); } }); - b = fa.Class.create({ - init: function(a, b, c, g, d, h, l) { + b = ha.Class.create({ + init: function(a, b, f, c, d, k, h) { Object.defineProperties(this, { _ctrl: { value: a, @@ -10934,13 +10929,13 @@ v7AA.H22 = function() { configurable: !1 }, _msgCtx: { - value: c, + value: f, writable: !1, enumerable: !1, configurable: !1 }, _input: { - value: g, + value: c, writable: !1, enumerable: !1, configurable: !1 @@ -10952,13 +10947,13 @@ v7AA.H22 = function() { configurable: !1 }, _request: { - value: h, + value: k, writable: !1, enumerable: !1, configurable: !1 }, _timeout: { - value: l, + value: h, writable: !1, enumerable: !1, configurable: !1 @@ -10970,7 +10965,7 @@ v7AA.H22 = function() { configurable: !1 }, _abortFunc: { - value: ga, + value: da, writable: !0, enumerable: !1, configurable: !1 @@ -10987,59 +10982,59 @@ v7AA.H22 = function() { setAbort: function(a) { this._abortFunc = a; }, - trustedNetworkExecute: function(a, b, c) { - var g; - g = this; - H(c, function() { + trustedNetworkExecute: function(a, b, f) { + var c; + c = this; + t(f, function() { var d, r; if (12 < b + 1) return !1; - if (d = this._msgCtx.isIntegrityProtected() && !a.willIntegrityProtectHeader() ? k.RESPONSE_REQUIRES_INTEGRITY_PROTECTION : this._msgCtx.isEncrypted() && !a.willEncryptPayloads() ? k.RESPONSE_REQUIRES_ENCRYPTION : null) { + if (d = this._msgCtx.isIntegrityProtected() && !a.willIntegrityProtectHeader() ? l.RESPONSE_REQUIRES_INTEGRITY_PROTECTION : this._msgCtx.isEncrypted() && !a.willEncryptPayloads() ? l.RESPONSE_REQUIRES_ENCRYPTION : null) { r = dc(a.getMessageId()); - K(this, this._ctx, this._msgCtx.getDebugContext(), r, d, null, this._output, this._timeout, { + M(this, this._ctx, this._msgCtx.getDebugContext(), r, d, null, this._output, this._timeout, { result: function(a) { - c.result(!1); + f.result(!1); }, timeout: function() { - c.timeout(); + f.timeout(); }, error: function(a) { - H(c, function() { - if (E(a)) return !1; - throw new fb("Response requires encryption or integrity protection but cannot be protected: " + d, a, null); - }, g); + t(f, function() { + if (C(a)) return !1; + throw new lb("Response requires encryption or integrity protection but cannot be protected: " + d, a, null); + }, c); } }); } else !this._msgCtx.getCustomer() || a.getMasterToken() || a.getKeyExchangeData() ? (a.setRenewable(!1), this._ctrl.send(this._ctx, this._msgCtx, this._output, a, this._timeout, { result: function(a) { - c.result(!0); + f.result(!0); }, timeout: function() { - c.timeout(); + f.timeout(); }, error: function(a) { - c.error(a); + f.error(a); } - })) : (r = dc(a.getMessageId()), K(this, this._ctx, this._msgCtx.getDebugContext(), r, k.RESPONSE_REQUIRES_MASTERTOKEN, null, this._output, this._timeout, { + })) : (r = dc(a.getMessageId()), M(this, this._ctx, this._msgCtx.getDebugContext(), r, l.RESPONSE_REQUIRES_MASTERTOKEN, null, this._output, this._timeout, { result: function(a) { - c.result(!1); + f.result(!1); }, timeout: function() { - c.timeout(); + f.timeout(); }, error: function(a) { - H(c, function() { - if (E(a)) return !1; - throw new fb("Response wishes to attach a user ID token but there is no master token.", a, null); - }, g); + t(f, function() { + if (C(a)) return !1; + throw new lb("Response wishes to attach a user ID token but there is no master token.", a, null); + }, c); } })); - }, g); + }, c); }, - peerToPeerExecute: function(a, b, c, g) { + peerToPeerExecute: function(a, b, f, c) { var r; function d(b) { - H(g, function() { + t(c, function() { var d; d = b.response; d.close(); @@ -11047,26 +11042,26 @@ v7AA.H22 = function() { this._ctrl.cleanupContext(this._ctx, b.requestHeader, d); this._ctrl.buildErrorResponse(this, this._ctx, a, b, d, { result: function(a) { - H(g, function() { + t(c, function() { var b, d; if (!a) return !1; b = a.errorResult; d = a.tokenTicket; - this.peerToPeerExecute(b.msgCtx, b.builder, c, { + this.peerToPeerExecute(b.msgCtx, b.builder, f, { result: function(a) { - H(g, function() { + t(c, function() { this._ctrl.releaseMasterToken(d); return a; }, r); }, timeout: function() { - H(g, function() { + t(c, function() { this._ctrl.releaseMasterToken(d); - g.timeout(); + c.timeout(); }, r); }, error: function(a) { - H(g, function() { + t(c, function() { this._ctrl.releaseMasterToken(d); throw a; }, r); @@ -11078,70 +11073,70 @@ v7AA.H22 = function() { }, r); } r = this; - H(g, function() { - var h; - if (12 < c + 2) return !1; + t(c, function() { + var k; + if (12 < f + 2) return !1; if (null != a.getCustomer() && null == b.getPeerMasterToken() && null == b.getKeyExchangeData()) { - h = dc(b.getMessageId()); - K(this, this._ctx, a.getDebugContext(), h, k.RESPONSE_REQUIRES_MASTERTOKEN, null, this._output, this._timeout, { + k = dc(b.getMessageId()); + M(this, this._ctx, a.getDebugContext(), k, l.RESPONSE_REQUIRES_MASTERTOKEN, null, this._output, this._timeout, { result: function(a) { - g.result(!1); + c.result(!1); }, timeout: function() { - g.timeout(); + c.timeout(); }, error: function(a) { - H(g, function() { - if (E(a)) return !1; - throw new fb("Response wishes to attach a user ID token but there is no master token.", a, null); + t(c, function() { + if (C(a)) return !1; + throw new lb("Response wishes to attach a user ID token but there is no master token.", a, null); }, r); } }); } else this._ctrl.sendReceive(this._ctx, a, this._input, this._output, b, this._timeout, !1, { result: function(b) { - H(g, function() { - var u, v, f; + t(c, function() { + var u, g, v; - function h() { + function k() { u.read(32768, r._timeout, { result: function(a) { - H(g, function() { - a ? h() : l(); + t(c, function() { + a ? k() : h(); }, r); }, timeout: function() { - g.timeout(); + c.timeout(); }, error: function(a) { - g.error(a); + c.error(a); } }); } - function l() { - H(g, function() { + function h() { + t(c, function() { var d; - d = new va(b.payloads, a); - this._ctrl.buildResponse(this, this._ctx, d, v, this._timeout, { + d = new R(b.payloads, a); + this._ctrl.buildResponse(this, this._ctx, d, g, this._timeout, { result: function(a) { - H(g, function() { + t(c, function() { var b; b = a.tokenTicket; - this.peerToPeerExecute(d, a.builder, c, { + this.peerToPeerExecute(d, a.builder, f, { result: function(a) { - H(g, function() { + t(c, function() { this._ctrl.releaseMasterToken(b); return a; }, r); }, timeout: function() { - H(g, function() { + t(c, function() { this._ctrl.releaseMasterToken(b); - g.timeout(); + c.timeout(); }, r); }, error: function(a) { - H(g, function() { + t(c, function() { this._ctrl.releaseMasterToken(b); throw a; }, r); @@ -11150,31 +11145,31 @@ v7AA.H22 = function() { }, r); }, timeout: function() { - g.timeout(); + c.timeout(); }, error: function(a) { - g.error(a); + c.error(a); } }); }, r); } u = b.response; - c += 2; + f += 2; if (!u) return !0; - v = u.getMessageHeader(); - if (v) { - f = b.payloads; - f = 0 < f.length && 0 < f[0].data.length; - if (b.handshake && f) h(); + g = u.getMessageHeader(); + if (g) { + v = b.payloads; + v = 0 < v.length && 0 < v[0].data.length; + if (b.handshake && v) k(); else return !0; } else d(b); }, r); }, timeout: function() { - g.timeout(); + c.timeout(); }, error: function(a) { - g.error(a); + c.error(a); } }); }, r); @@ -11183,78 +11178,78 @@ v7AA.H22 = function() { var b; b = this; this._ctrl.buildResponse(this, this._ctx, this._msgCtx, this._request, this._timeout, { - result: function(c) { - H(a, function() { - var g, d; - g = c.builder; - d = c.tokenTicket; - this._ctx.isPeerToPeer() ? this.peerToPeerExecute(this._msgCtx, g, 3, { - result: function(c) { - H(a, function() { + result: function(f) { + t(a, function() { + var c, d; + c = f.builder; + d = f.tokenTicket; + this._ctx.isPeerToPeer() ? this.peerToPeerExecute(this._msgCtx, c, 3, { + result: function(f) { + t(a, function() { this._ctx.isPeerToPeer() && this.releaseMasterToken(d); - return c; + return f; }, b); }, timeout: function() { - H(a, function() { + t(a, function() { this._ctx.isPeerToPeer() && this.releaseMasterToken(d); a.timeout(); }, b); }, - error: function(c) { - H(a, function() { - var r, h, l, u; + error: function(f) { + t(a, function() { + var r, k, h, u; this._ctx.isPeerToPeer() && this.releaseMasterToken(d); - if (E(c)) return !1; - r = dc(g.getMessageId()); - c instanceof A ? (h = c.error, l = this._request.messageCapabilities, l = this._ctrl.messageRegistry.getUserMessage(h, l ? l.languages : null), u = c) : c instanceof Oa ? (h = k.MSL_COMMS_FAILURE, l = null, u = c) : (h = k.INTERNAL_EXCEPTION, l = null, u = new Y("Error sending the response.", c)); - K(this, this._ctx, this._msgCtx.getDebugContext(), r, h, l, this._output, this._timeout, { + if (C(f)) return !1; + r = dc(c.getMessageId()); + f instanceof G ? (k = f.error, h = this._request.messageCapabilities, h = this._ctrl.messageRegistry.getUserMessage(k, h ? h.languages : null), u = f) : f instanceof Wa ? (k = l.MSL_COMMS_FAILURE, h = null, u = f) : (k = l.INTERNAL_EXCEPTION, h = null, u = new ca("Error sending the response.", f)); + M(this, this._ctx, this._msgCtx.getDebugContext(), r, k, h, this._output, this._timeout, { result: function(b) { a.error(u); }, timeout: function() { a.timeout(); }, - error: function(c) { - H(a, function() { - if (E(c)) return !1; - throw new fb("Error sending the response.", c, null); + error: function(f) { + t(a, function() { + if (C(f)) return !1; + throw new lb("Error sending the response.", f, null); }, b); } }); }, b); } - }) : this.trustedNetworkExecute(g, 3, { - result: function(c) { - H(a, function() { + }) : this.trustedNetworkExecute(c, 3, { + result: function(f) { + t(a, function() { this._ctx.isPeerToPeer() && this.releaseMasterToken(d); - return c; + return f; }, b); }, timeout: function() { - H(a, function() { + t(a, function() { this._ctx.isPeerToPeer() && this.releaseMasterToken(d); a.timeout(); }, b); }, - error: function(c) { - H(a, function() { - var r, h, l, u; + error: function(f) { + t(a, function() { + var r, k, h, u; this._ctx.isPeerToPeer() && this.releaseMasterToken(d); - if (E(c)) return !1; - r = dc(g.getMessageId()); - c instanceof A ? (h = c.error, l = this._request.messageCapabilities, l = this._ctrl.messageRegistry.getUserMessage(h, l ? l.languages : null), u = c) : c instanceof Oa ? (h = k.MSL_COMMS_FAILURE, l = null, u = c) : (h = k.INTERNAL_EXCEPTION, l = null, u = new Y("Error sending the response.", c)); - K(this, this._ctx, this._msgCtx.getDebugContext(), r, h, l, this._output, this._timeout, { + if (C(f)) return !1; + r = dc(c.getMessageId()); + f instanceof G ? (k = f.error, h = this._request.messageCapabilities, h = this._ctrl.messageRegistry.getUserMessage(k, h ? h.languages : null), u = f) : f instanceof Wa ? (k = l.MSL_COMMS_FAILURE, h = null, u = f) : (k = l.INTERNAL_EXCEPTION, h = null, u = new ca("Error sending the response.", f)); + M(this, this._ctx, this._msgCtx.getDebugContext(), r, k, h, this._output, this._timeout, { result: function(b) { a.error(u); }, timeout: function() { a.timeout(); }, - error: function(c) { - H(a, function() { - if (E(c)) return !1; - throw new fb("Error sending the response.", c, null); + error: function(f) { + t(a, function() { + if (C(f)) return !1; + throw new lb("Error sending the response.", f, null); }, b); } }); @@ -11266,22 +11261,22 @@ v7AA.H22 = function() { timeout: function() { a.timeout(); }, - error: function(c) { - H(a, function() { - var g, d, r, h; - if (E(c)) return !1; - c instanceof A ? (g = c.messageId, d = c.error, r = this._request.messageCapabilities, r = this._ctrl.messageRegistry.getUserMessage(d, r ? r.languages : null), h = c) : (g = null, d = k.INTERNAL_EXCEPTION, r = null, h = new Y("Error building the response.", c)); - K(this, this._ctx, this._msgCtx.getDebugContext(), g, d, r, this._output, this._timeout, { + error: function(f) { + t(a, function() { + var c, d, r, k; + if (C(f)) return !1; + f instanceof G ? (c = f.messageId, d = f.error, r = this._request.messageCapabilities, r = this._ctrl.messageRegistry.getUserMessage(d, r ? r.languages : null), k = f) : (c = null, d = l.INTERNAL_EXCEPTION, r = null, k = new ca("Error building the response.", f)); + M(this, this._ctx, this._msgCtx.getDebugContext(), c, d, r, this._output, this._timeout, { result: function(b) { - a.error(h); + a.error(k); }, timeout: function() { a.timeout(); }, - error: function(g) { - H(a, function() { - if (E(g)) return null; - throw new fb("Error building the response.", g, c); + error: function(c) { + t(a, function() { + if (C(c)) return null; + throw new lb("Error building the response.", c, f); }, b); } }); @@ -11290,8 +11285,8 @@ v7AA.H22 = function() { }); } }); - d = fa.Class.create({ - init: function(a, b, c, g, d, h, l) { + c = ha.Class.create({ + init: function(a, b, f, c, d, k, h) { Object.defineProperties(this, { _ctrl: { value: a, @@ -11306,13 +11301,13 @@ v7AA.H22 = function() { configurable: !1 }, _msgCtx: { - value: c, + value: f, writable: !1, enumerable: !1, configurable: !1 }, _appError: { - value: g, + value: c, writable: !1, enumerable: !1, configurable: !1 @@ -11324,13 +11319,13 @@ v7AA.H22 = function() { configurable: !1 }, _request: { - value: h, + value: k, writable: !1, enumerable: !1, configurable: !1 }, _timeout: { - value: l, + value: h, writable: !1, enumerable: !1, configurable: !1 @@ -11342,7 +11337,7 @@ v7AA.H22 = function() { configurable: !1 }, _abortFunc: { - value: ga, + value: da, writable: !0, enumerable: !1, configurable: !1 @@ -11362,38 +11357,38 @@ v7AA.H22 = function() { call: function(a) { var b; b = this; - H(a, function() { - var c, g; - if (this._appError == ENTITY_REJECTED) c = this._request.masterToken ? k.MASTERTOKEN_REJECTED_BY_APP : k.ENTITY_REJECTED_BY_APP; - else if (this._appError == USER_REJECTED) c = this._request.userIdToken ? k.USERIDTOKEN_REJECTED_BY_APP : k.USER_REJECTED_BY_APP; - else throw new Y("Unhandled application error " + this._appError + "."); - g = this._request.messageCapabilities; - g = this._ctrl.messageRegistry.getUserMessage(c, g ? g.languages : null); - K(this, this._ctx, this._msgCtx.getDebugContext(), this._request.messageId, c, g, this._output, this._timeout, { + t(a, function() { + var f, c; + if (this._appError == ENTITY_REJECTED) f = this._request.masterToken ? l.MASTERTOKEN_REJECTED_BY_APP : l.ENTITY_REJECTED_BY_APP; + else if (this._appError == USER_REJECTED) f = this._request.userIdToken ? l.USERIDTOKEN_REJECTED_BY_APP : l.USER_REJECTED_BY_APP; + else throw new ca("Unhandled application error " + this._appError + "."); + c = this._request.messageCapabilities; + c = this._ctrl.messageRegistry.getUserMessage(f, c ? c.languages : null); + M(this, this._ctx, this._msgCtx.getDebugContext(), this._request.messageId, f, c, this._output, this._timeout, { result: function(b) { a.result(b); }, timeout: a.timeout, - error: function(c) { - H(a, function() { - if (E(c)) return !1; - if (c instanceof A) throw c; - throw new Y("Error building the error response.", c); + error: function(f) { + t(a, function() { + if (C(f)) return !1; + if (f instanceof G) throw f; + throw new ca("Error building the error response.", f); }, b); } }); }, b); } }); - g = { + f = { result: function() {}, timeout: function() {}, error: function() {} }; - h = fa.Class.create({ - init: function(a, b, c, g, d, h, l, f, C) { + h = ha.Class.create({ + init: function(a, b, f, c, d, k, h, g, E) { var r; - l ? (r = l.builder, l = l.tokenTicket) : l = r = null; + h ? (r = h.builder, h = h.tokenTicket) : h = r = null; Object.defineProperties(this, { _ctrl: { value: a, @@ -11408,13 +11403,13 @@ v7AA.H22 = function() { configurable: !1 }, _msgCtx: { - value: c, + value: f, writable: !1, enumerable: !1, configurable: !1 }, _remoteEntity: { - value: g, + value: c, writable: !1, enumerable: !1, configurable: !1 @@ -11426,7 +11421,7 @@ v7AA.H22 = function() { configurable: !1 }, _output: { - value: h, + value: k, writable: !0, enumerable: !1, configurable: !1 @@ -11444,19 +11439,19 @@ v7AA.H22 = function() { configurable: !1 }, _tokenTicket: { - value: l, + value: h, writable: !0, enumerable: !1, configurable: !1 }, _timeout: { - value: C, + value: E, writable: !1, enumerable: !1, configurable: !1 }, _msgCount: { - value: f, + value: g, writable: !1, enumerable: !1, configurable: !1 @@ -11468,7 +11463,7 @@ v7AA.H22 = function() { configurable: !1 }, _abortFunc: { - value: ga, + value: da, writable: !0, enumerable: !1, configurable: !1 @@ -11485,57 +11480,57 @@ v7AA.H22 = function() { setAbort: function(a) { this._abortFunc = a; }, - execute: function(a, b, c, d, l) { + execute: function(a, b, c, d, k) { var v; function r(b) { function r(a) { - H(l, function() { - var c; - c = b.response; - return a ? a : c; + t(k, function() { + var f; + f = b.response; + return a ? a : f; }, v); } - H(l, function() { - var u, f; + t(k, function() { + var u, g; u = b.response; u.close(); - f = u.getErrorHeader(); - this._ctrl.cleanupContext(this._ctx, b.requestHeader, f); - this._ctrl.buildErrorResponse(this, this._ctx, a, b, f, c, { + g = u.getErrorHeader(); + this._ctrl.cleanupContext(this._ctx, b.requestHeader, g); + this._ctrl.buildErrorResponse(this, this._ctx, a, b, g, c, { result: function(a) { - H(l, function() { - var b, f, x, y; + t(k, function() { + var b, g, x, y; if (!a) return u; b = a.errorResult; - f = a.tokenTicket; + g = a.tokenTicket; x = b.builder; b = b.msgCtx; if (this._ctx.isPeerToPeer()) this.execute(b, x, this._timeout, d, { result: function(a) { - H(l, function() { - this._ctrl.releaseMasterToken(f); + t(k, function() { + this._ctrl.releaseMasterToken(g); r(a); }, v); }, timeout: function() { - H(l, function() { - this._ctrl.releaseMasterToken(f); - l.timeout(); + t(k, function() { + this._ctrl.releaseMasterToken(g); + k.timeout(); }, v); }, error: function(a) { - H(l, function() { - this._ctrl.releaseMasterToken(f); - l.error(a); + t(k, function() { + this._ctrl.releaseMasterToken(g); + k.error(a); }, v); } }); else { - this._openedStreams && (this._input.close(), this._output.close(c, g)); + this._openedStreams && (this._input.close(), this._output.close(c, f)); y = new h(this._ctrl, this._ctx, b, this._remoteEntity, null, null, { builder: x, - tokenTicket: f + tokenTicket: g }, d, this._timeout); this.setAbort(function() { y.abort(); @@ -11545,28 +11540,28 @@ v7AA.H22 = function() { r(a); }, timeout: function() { - l.timeout(); + k.timeout(); }, error: function(a) { - l.error(a); + k.error(a); } }); } }, v); }, timeout: function() { - l.timeout(); + k.timeout(); }, error: function(a) { - l.error(a); + k.error(a); } }); }, v); } function u(b) { - H(l, function() { - var x, y, z, w, C; + t(k, function() { + var x, y, z, w, D; function r() { x.read(32768, v._timeout, { @@ -11574,38 +11569,38 @@ v7AA.H22 = function() { a ? r() : u(); }, timeout: function() { - l.timeout(); + k.timeout(); }, error: function(a) { - l.error(a); + k.error(a); } }); } function u() { - H(l, function() { - var g; - g = new va(b.payloads, a); + t(k, function() { + var f; + f = new R(b.payloads, a); this._ctrl.buildResponse(this, this._ctx, a, y, c, { result: function(a) { - H(l, function() { + t(k, function() { var b; b = a.tokenTicket; - this.execute(g, a.builder, this._timeout, d, { + this.execute(f, a.builder, this._timeout, d, { result: function(a) { - H(l, function() { + t(k, function() { this._ctrl.releaseMasterToken(b); return a; }, v); }, timeout: function() { - H(l, function() { + t(k, function() { this._ctrl.releaseMasterToken(b); - l.timeout(); + k.timeout(); }, v); }, error: function(a) { - H(l, function() { + t(k, function() { this._ctrl.releaseMasterToken(b); throw a; }, v); @@ -11614,10 +11609,10 @@ v7AA.H22 = function() { }, v); }, timeout: function() { - l.timeout(); + k.timeout(); }, error: function(a) { - l.error(a); + k.error(a); } }); }, v); @@ -11628,103 +11623,103 @@ v7AA.H22 = function() { z = 0 < z.length && 0 < z[0].data.length; if (!this._ctx.isPeerToPeer()) { if (!b.handshake || !z) return x; - this._openedStreams && (this._input.close(), this._output.close(c, g)); - w = new va(b.payloads, a); + this._openedStreams && (this._input.close(), this._output.close(c, f)); + w = new R(b.payloads, a); this._ctrl.buildResponse(this, this._ctx, a, y, c, { result: function(a) { - H(l, function() { + t(k, function() { var b; b = new h(this._ctrl, this._ctx, w, this._remoteEntity, null, null, a, d, this._timeout); this.setAbort(function() { b.abort(); }); - b.call(l); + b.call(k); }, v); }, timeout: function() { - l.timeout(); + k.timeout(); }, error: function(a) { - l.error(a); + k.error(a); } }); } else if (b.handshake && z) r(); else if (0 < y.keyRequestData.length) { - C = new f(a); - this._ctrl.buildResponse(this, this._ctx, C, y, c, { + D = new g(a); + this._ctrl.buildResponse(this, this._ctx, D, y, c, { result: function(a) { - H(l, function() { - var b, c; + t(k, function() { + var b, f; b = a.builder; - c = a.tokenTicket; + f = a.tokenTicket; x.mark(); x.read(1, this._timeout, { result: function(a) { - H(l, function() { - function g() { + t(k, function() { + function c() { x.read(32768, v._timeout, { result: function(a) { - a ? g() : r(); + a ? c() : r(); }, timeout: function() { - l.timeout(); + k.timeout(); }, error: function(a) { - l.error(a); + k.error(a); } }); } function r() { - v.execute(C, b, v._timeout, d, { + v.execute(D, b, v._timeout, d, { result: function(a) { - H(l, function() { - this._ctrl.releaseMasterToken(c); + t(k, function() { + this._ctrl.releaseMasterToken(f); return a; }, v); }, timeout: function() { - H(l, function() { - this._ctrl.releaseMasterToken(c); - l.timeout(); + t(k, function() { + this._ctrl.releaseMasterToken(f); + k.timeout(); }, v); }, error: function(a) { - H(l, function() { - this._ctrl.releaseMasterToken(c); + t(k, function() { + this._ctrl.releaseMasterToken(f); throw a; }, v); } }); } if (a) - if (x.reset(), 12 >= d + 1) b.setRenewable(!1), this._ctrl.send(this, this._ctx, C, this._output, b, this._timeout, { + if (x.reset(), 12 >= d + 1) b.setRenewable(!1), this._ctrl.send(this, this._ctx, D, this._output, b, this._timeout, { result: function(a) { - H(l, function() { - this.releaseMasterToken(c); + t(k, function() { + this.releaseMasterToken(f); return x; }, v); }, timeout: function() { - l.timeout(); + k.timeout(); }, error: function(a) { - l.error(a); + k.error(a); } }); - else return this.releaseMasterToken(c), x; - else g(); + else return this.releaseMasterToken(f), x; + else c(); }, v); }, timeout: function() { - H(l, function() { - this.releaseMasterToken(c); - l.timeout(); + t(k, function() { + this.releaseMasterToken(f); + k.timeout(); }, v); }, error: function(a) { - H(l, function() { - this.releaseMasterToken(c); + t(k, function() { + this.releaseMasterToken(f); throw a; }, v); } @@ -11732,21 +11727,21 @@ v7AA.H22 = function() { }, v); }, timeout: function() { - l.timeout(); + k.timeout(); }, error: function(a) { - l.error(a); + k.error(a); } }); } }, v); } v = this; - H(l, function() { + t(k, function() { if (12 < d + 2) return null; this._ctrl.sendReceive(this, this._ctx, a, this._input, this._output, b, c, !0, { result: function(a) { - H(l, function() { + t(k, function() { var b; if (!a) return null; b = a.response; @@ -11755,10 +11750,10 @@ v7AA.H22 = function() { }, v); }, timeout: function() { - l.timeout(); + k.timeout(); }, error: function(a) { - l.error(a); + k.error(a); } }); }, v); @@ -11767,28 +11762,28 @@ v7AA.H22 = function() { var c; function b(b, d, r) { - H(a, function() { + t(a, function() { this.execute(this._msgCtx, b, r, this._msgCount, { result: function(b) { - H(a, function() { + t(a, function() { this._ctrl.releaseMasterToken(d); - this._openedStreams && this._output.close(r, g); + this._openedStreams && this._output.close(r, f); b && b.closeSource(this._openedStreams); return b; }, c); }, timeout: function() { - H(a, function() { + t(a, function() { this._ctrl.releaseMasterToken(d); - this._openedStreams && (this._output.close(r, g), this._input.close()); + this._openedStreams && (this._output.close(r, f), this._input.close()); a.timeout(); }, c); }, error: function(b) { - H(a, function() { + t(a, function() { this._ctrl.releaseMasterToken(d); - this._openedStreams && (this._output.close(r, g), this._input.close()); - if (E(b)) return null; + this._openedStreams && (this._output.close(r, f), this._input.close()); + if (C(b)) return null; throw b; }, c); } @@ -11796,39 +11791,39 @@ v7AA.H22 = function() { }, c); } c = this; - H(a, function() { - var d, r, h; + t(a, function() { + var d, r, k; d = this._timeout; if (!this._input || !this._output) try { this._remoteEntity.setTimeout(this._timeout); r = Date.now(); - h = this._remoteEntity.openConnection(); - this._output = h.output; - this._input = h.input; - 1 != d && (d = this._timeout - (Date.now() - r)); + k = this._remoteEntity.openConnection(); + this._output = k.output; + this._input = k.input; - 1 != d && (d = this._timeout - (Date.now() - r)); this._openedStreams = !0; - } catch (x) { + } catch (D) { this._builder && this._ctrl.releaseMasterToken(this._tokenTicket); - this._output && this._output.close(this._timeout, g); + this._output && this._output.close(this._timeout, f); this._input && this._input.close(); - if (E(x)) return null; - throw x; + if (C(D)) return null; + throw D; } this._builder ? b(this._builder, this._tokenTicket, d) : this._ctrl.buildRequest(this, this._ctx, this._msgCtx, this._timeout, { - result: function(g) { - H(a, function() { - b(g.builder, g.tokenTicket, d); + result: function(f) { + t(a, function() { + b(f.builder, f.tokenTicket, d); }, c); }, timeout: function() { - H(a, function() { - this._openedStreams && (this._output.close(this._timeout, g), this._input.close()); + t(a, function() { + this._openedStreams && (this._output.close(this._timeout, f), this._input.close()); a.timeout(); }, c); }, error: function(b) { - H(a, function() { - this._openedStreams && (this._output.close(this._timeout, g), this._input.close()); - if (E(b)) return null; + t(a, function() { + this._openedStreams && (this._output.close(this._timeout, f), this._input.close()); + if (C(b)) return null; throw b; }, c); } @@ -11838,77 +11833,77 @@ v7AA.H22 = function() { }); }()); (function() { - td = fa.Class.create({ - init: function(k) { + sd = ha.Class.create({ + init: function(l) { Object.defineProperties(this, { id: { - value: k, + value: l, writable: !1, configurable: !1 } }); }, toJSON: function() { - var k; - k = {}; - k.id = this.id; - return k; + var l; + l = {}; + l.id = this.id; + return l; }, - equals: function(k) { - return this === k ? !0 : k instanceof td ? this.id == k.id : !1; + equals: function(l) { + return this === l ? !0 : l instanceof sd ? this.id == l.id : !1; }, uniqueKey: function() { return this.id; } }); - Ce = function(n) { + ye = function(n) { var q; q = n.id; - if (!q) throw new aa(k.JSON_PARSE_ERROR, JSON.stringify(n)); - return new td(q); + if (!q) throw new ba(l.JSON_PARSE_ERROR, JSON.stringify(n)); + return new sd(q); }; }()); - fa.Class.create({ - isNewestMasterToken: function(k, n, q) {}, - isMasterTokenRevoked: function(k, n) {}, - acceptNonReplayableId: function(k, n, q, t) {}, - createMasterToken: function(k, n, q, t, L) {}, - isMasterTokenRenewable: function(k, n, q) {}, - renewMasterToken: function(k, n, q, t, L) {}, - isUserIdTokenRevoked: function(k, n, q, t) {}, - createUserIdToken: function(k, n, q, t) {}, - renewUserIdToken: function(k, n, q, t) {} + ha.Class.create({ + isNewestMasterToken: function(l, n, q) {}, + isMasterTokenRevoked: function(l, n) {}, + acceptNonReplayableId: function(l, n, q, t) {}, + createMasterToken: function(l, n, q, t, J) {}, + isMasterTokenRenewable: function(l, n, q) {}, + renewMasterToken: function(l, n, q, t, J) {}, + isUserIdTokenRevoked: function(l, n, q, t) {}, + createUserIdToken: function(l, n, q, t) {}, + renewUserIdToken: function(l, n, q, t) {} }); (function() { - function q(k, n, q, t) { - this.sessiondata = k; + function q(l, n, q, t) { + this.sessiondata = l; this.tokendata = n; this.signature = q; this.verified = t; } - eb = fa.Class.create({ - init: function(k, q, t, L, E, K, A, H, R, P, f) { - var c; - c = this; - n(f, function() { - var a, b, d, h, l; - if (t.getTime() < q.getTime()) throw new Y("Cannot construct a master token that expires before its renewal window opens."); - if (0 > L || L > Aa) throw new Y("Sequence number " + L + " is outside the valid range."); - if (0 > E || E > Aa) throw new Y("Serial number " + E + " is outside the valid range."); + fb = ha.Class.create({ + init: function(l, q, t, J, C, M, G, K, A, R, g) { + var d; + d = this; + n(g, function() { + var a, b, c, h, k; + if (t.getTime() < q.getTime()) throw new ca("Cannot construct a master token that expires before its renewal window opens."); + if (0 > J || J > Ca) throw new ca("Sequence number " + J + " is outside the valid range."); + if (0 > C || C > Ca) throw new ca("Serial number " + C + " is outside the valid range."); a = Math.floor(q.getTime() / 1E3); b = Math.floor(t.getTime() / 1E3); - if (P) d = P.sessiondata; + if (R) c = R.sessiondata; else { h = {}; - K && (h.issuerdata = K); - h.identity = A; - h.encryptionkey = ma(H.toByteArray()); - h.hmackey = ma(R.toByteArray()); - d = Ma(JSON.stringify(h), Ca); + M && (h.issuerdata = M); + h.identity = G; + h.encryptionkey = ka(K.toByteArray()); + h.hmackey = ka(A.toByteArray()); + c = Oa(JSON.stringify(h), Ba); } - if (P) return Object.defineProperties(this, { + if (R) return Object.defineProperties(this, { ctx: { - value: k, + value: l, writable: !1, enumerable: !1, configurable: !1 @@ -11926,78 +11921,78 @@ v7AA.H22 = function() { configurable: !1 }, sequenceNumber: { - value: L, + value: J, writable: !1, configurable: !1 }, serialNumber: { - value: E, + value: C, writable: !1, configurable: !1 }, issuerData: { - value: K, + value: M, writable: !1, configurable: !1 }, identity: { - value: A, + value: G, writable: !1, configurable: !1 }, encryptionKey: { - value: H, + value: K, writable: !1, configurable: !1 }, hmacKey: { - value: R, + value: A, writable: !1, configurable: !1 }, sessiondata: { - value: d, + value: c, writable: !1, enumerable: !1, configurable: !1 }, verified: { - value: P.verified, + value: R.verified, writable: !1, enumerable: !1, configurable: !1 }, tokendata: { - value: P.tokendata, + value: R.tokendata, writable: !1, enumerable: !1, configurable: !1 }, signature: { - value: P.signature, + value: R.signature, writable: !1, enumerable: !1, configurable: !1 } }), this; - l = k.getMslCryptoContext(); - l.encrypt(d, { - result: function(g) { - n(f, function() { - var m, p; - m = {}; - m.renewalwindow = a; - m.expiration = b; - m.sequencenumber = L; - m.serialnumber = E; - m.sessiondata = ma(g); - p = Ma(JSON.stringify(m), Ca); - l.sign(p, { - result: function(g) { - n(f, function() { + k = l.getMslCryptoContext(); + k.encrypt(c, { + result: function(f) { + n(g, function() { + var p, m; + p = {}; + p.renewalwindow = a; + p.expiration = b; + p.sequencenumber = J; + p.serialnumber = C; + p.sessiondata = ka(f); + m = Oa(JSON.stringify(p), Ba); + k.sign(m, { + result: function(f) { + n(g, function() { Object.defineProperties(this, { ctx: { - value: k, + value: l, writable: !1, enumerable: !1, configurable: !1 @@ -12015,39 +12010,39 @@ v7AA.H22 = function() { configurable: !1 }, sequenceNumber: { - value: L, + value: J, writable: !1, enumerable: !1, configurable: !1 }, serialNumber: { - value: E, + value: C, writable: !1, enumerable: !1, configurable: !1 }, issuerData: { - value: K, + value: M, writable: !1, configurable: !1 }, identity: { - value: A, + value: G, writable: !1, configurable: !1 }, encryptionKey: { - value: H, + value: K, writable: !1, configurable: !1 }, hmacKey: { - value: R, + value: A, writable: !1, configurable: !1 }, sessiondata: { - value: d, + value: c, writable: !1, enumerable: !1, configurable: !1 @@ -12059,29 +12054,29 @@ v7AA.H22 = function() { configurable: !1 }, tokendata: { - value: p, + value: m, writable: !1, enumerable: !1, configurable: !1 }, signature: { - value: g, + value: f, writable: !1, enumerable: !1, configurable: !1 } }); return this; - }, c); + }, d); }, error: function(a) { - f.error(a); + g.error(a); } }); - }, c); + }, d); }, error: function(a) { - f.error(a); + g.error(a); } }); }, this); @@ -12098,170 +12093,170 @@ v7AA.H22 = function() { isVerified: function() { return this.verified; }, - isRenewable: function(k) { + isRenewable: function(l) { return this.isVerified() ? this.renewalWindow.getTime() <= this.ctx.getTime() : !0; }, - isExpired: function(k) { + isExpired: function(l) { return this.isVerified() ? this.expiration.getTime() <= this.ctx.getTime() : !1; }, - isNewerThan: function(k) { + isNewerThan: function(l) { var n; - if (this.sequenceNumber == k.sequenceNumber) return this.expiration > k.expiration; - if (this.sequenceNumber > k.sequenceNumber) { - n = this.sequenceNumber - Aa + 127; - return k.sequenceNumber >= n; + if (this.sequenceNumber == l.sequenceNumber) return this.expiration > l.expiration; + if (this.sequenceNumber > l.sequenceNumber) { + n = this.sequenceNumber - Ca + 127; + return l.sequenceNumber >= n; } - n = k.sequenceNumber - Aa + 127; + n = l.sequenceNumber - Ca + 127; return this.sequenceNumber < n; }, toJSON: function() { - var k; - k = {}; - k.tokendata = ma(this.tokendata); - k.signature = ma(this.signature); - return k; + var l; + l = {}; + l.tokendata = ka(this.tokendata); + l.signature = ka(this.signature); + return l; }, - equals: function(k) { - return this === k ? !0 : k instanceof eb ? this.serialNumber == k.serialNumber && this.sequenceNumber == k.sequenceNumber && this.expiration.getTime() == k.expiration.getTime() : !1; + equals: function(l) { + return this === l ? !0 : l instanceof fb ? this.serialNumber == l.serialNumber && this.sequenceNumber == l.sequenceNumber && this.expiration.getTime() == l.expiration.getTime() : !1; }, uniqueKey: function() { return this.serialNumber + ":" + this.sequenceNumber + this.expiration.getTime(); } }); - Rb = function(t, J, Q) { - n(Q, function() { - var L, E, K, I, H; - L = t.getMslCryptoContext(); - E = J.tokendata; - K = J.signature; - if ("string" !== typeof E || "string" !== typeof K) throw new aa(k.JSON_PARSE_ERROR, "mastertoken " + JSON.stringify(J)); + Rb = function(t, L, V) { + n(V, function() { + var B, C, M, K, A; + B = t.getMslCryptoContext(); + C = L.tokendata; + M = L.signature; + if ("string" !== typeof C || "string" !== typeof M) throw new ba(l.JSON_PARSE_ERROR, "mastertoken " + JSON.stringify(L)); try { - I = ra(E); - } catch (Ha) { - throw new A(k.MASTERTOKEN_TOKENDATA_INVALID, "mastertoken " + JSON.stringify(J), Ha); + K = oa(C); + } catch (Aa) { + throw new G(l.MASTERTOKEN_TOKENDATA_INVALID, "mastertoken " + JSON.stringify(L), Aa); } - if (!I || 0 == I.length) throw new aa(k.MASTERTOKEN_TOKENDATA_MISSING, "mastertoken " + JSON.stringify(J)); + if (!K || 0 == K.length) throw new ba(l.MASTERTOKEN_TOKENDATA_MISSING, "mastertoken " + JSON.stringify(L)); try { - H = ra(K); - } catch (Ha) { - throw new A(k.MASTERTOKEN_SIGNATURE_INVALID, "mastertoken " + JSON.stringify(J), Ha); - } - L.verify(I, H, { - result: function(E) { - n(Q, function() { - var K, f, c, a, b, d, h, l, g, m; - d = Ia(I, Ca); + A = oa(M); + } catch (Aa) { + throw new G(l.MASTERTOKEN_SIGNATURE_INVALID, "mastertoken " + JSON.stringify(L), Aa); + } + B.verify(K, A, { + result: function(C) { + n(V, function() { + var M, g, d, a, b, c, h, k, f, p; + c = Ra(K, Ba); try { - h = JSON.parse(d); - K = parseInt(h.renewalwindow); - f = parseInt(h.expiration); - c = parseInt(h.sequencenumber); + h = JSON.parse(c); + M = parseInt(h.renewalwindow); + g = parseInt(h.expiration); + d = parseInt(h.sequencenumber); a = parseInt(h.serialnumber); b = h.sessiondata; - } catch (p) { - if (p instanceof SyntaxError) throw new aa(k.MASTERTOKEN_TOKENDATA_PARSE_ERROR, "mastertokendata " + d, p); - throw p; + } catch (m) { + if (m instanceof SyntaxError) throw new ba(l.MASTERTOKEN_TOKENDATA_PARSE_ERROR, "mastertokendata " + c, m); + throw m; } - if (!K || K != K || !f || f != f || "number" !== typeof c || c != c || "number" !== typeof a || a != a || "string" !== typeof b) throw new aa(k.MASTERTOKEN_TOKENDATA_PARSE_ERROR, "mastertokendata " + d); - if (f < K) throw new A(k.MASTERTOKEN_EXPIRES_BEFORE_RENEWAL, "mastertokendata " + d); - if (0 > c || c > Aa) throw new A(k.MASTERTOKEN_SEQUENCE_NUMBER_OUT_OF_RANGE, "mastertokendata " + d); - if (0 > a || a > Aa) throw new A(k.MASTERTOKEN_SERIAL_NUMBER_OUT_OF_RANGE, "mastertokendata " + d); - l = new Date(1E3 * K); - g = new Date(1E3 * f); + if (!M || M != M || !g || g != g || "number" !== typeof d || d != d || "number" !== typeof a || a != a || "string" !== typeof b) throw new ba(l.MASTERTOKEN_TOKENDATA_PARSE_ERROR, "mastertokendata " + c); + if (g < M) throw new G(l.MASTERTOKEN_EXPIRES_BEFORE_RENEWAL, "mastertokendata " + c); + if (0 > d || d > Ca) throw new G(l.MASTERTOKEN_SEQUENCE_NUMBER_OUT_OF_RANGE, "mastertokendata " + c); + if (0 > a || a > Ca) throw new G(l.MASTERTOKEN_SERIAL_NUMBER_OUT_OF_RANGE, "mastertokendata " + c); + k = new Date(1E3 * M); + f = new Date(1E3 * g); try { - m = ra(b); - } catch (p) { - throw new A(k.MASTERTOKEN_SESSIONDATA_INVALID, b, p); + p = oa(b); + } catch (m) { + throw new G(l.MASTERTOKEN_SESSIONDATA_INVALID, b, m); } - if (!m || 0 == m.length) throw new A(k.MASTERTOKEN_SESSIONDATA_MISSING, b); - E ? L.decrypt(m, { + if (!p || 0 == p.length) throw new G(l.MASTERTOKEN_SESSIONDATA_MISSING, b); + C ? B.decrypt(p, { result: function(b) { - n(Q, function() { - var d, p, m, h, f, G; - f = Ia(b, Ca); + n(V, function() { + var c, p, m, h, g, w; + g = Ra(b, Ba); try { - G = JSON.parse(f); - d = G.issuerdata; - p = G.identity; - m = G.encryptionkey; - h = G.hmackey; - } catch (x) { - if (x instanceof SyntaxError) throw new aa(k.MASTERTOKEN_SESSIONDATA_PARSE_ERROR, "sessiondata " + f, x); - throw x; + w = JSON.parse(g); + c = w.issuerdata; + p = w.identity; + m = w.encryptionkey; + h = w.hmackey; + } catch (D) { + if (D instanceof SyntaxError) throw new ba(l.MASTERTOKEN_SESSIONDATA_PARSE_ERROR, "sessiondata " + g, D); + throw D; } - if (d && "object" !== typeof d || !p || "string" !== typeof m || "string" !== typeof h) throw new aa(k.MASTERTOKEN_SESSIONDATA_PARSE_ERROR, "sessiondata " + f); - ob(m, jb, Hb, { + if (c && "object" !== typeof c || !p || "string" !== typeof m || "string" !== typeof h) throw new ba(l.MASTERTOKEN_SESSIONDATA_PARSE_ERROR, "sessiondata " + g); + Ab(m, qb, Hb, { result: function(m) { - ob(h, sb, Qb, { + Ab(h, rb, Qb, { result: function(r) { - n(Q, function() { + n(V, function() { var h; - h = new q(b, I, H, E); - new eb(t, l, g, c, a, d, p, m, r, h, Q); + h = new q(b, K, A, C); + new fb(t, k, f, d, a, c, p, m, r, h, V); }); }, error: function(a) { - Q.error(new P(k.MASTERTOKEN_KEY_CREATION_ERROR, a)); + V.error(new R(l.MASTERTOKEN_KEY_CREATION_ERROR, a)); } }); }, error: function(a) { - Q.error(new P(k.MASTERTOKEN_KEY_CREATION_ERROR, a)); + V.error(new R(l.MASTERTOKEN_KEY_CREATION_ERROR, a)); } }); }); }, error: function(a) { - Q.error(a); + V.error(a); } - }) : (K = new q(null, I, H, E), new eb(t, l, g, c, a, null, null, null, null, K, Q)); + }) : (M = new q(null, K, A, C), new fb(t, k, f, d, a, null, null, null, null, M, V)); }); }, - error: function(k) { - Q.error(k); + error: function(l) { + V.error(l); } }); }); }; }()); (function() { - function q(k, n, q) { - this.tokendata = k; + function q(l, n, q) { + this.tokendata = l; this.signature = n; this.verified = q; } - ac = fa.Class.create({ - init: function(k, q, t, L, E, K, H, R, P) { - var J; - J = this; - n(P, function() { - var f, c, a, b, d, h, l; - if (t.getTime() < q.getTime()) throw new Y("Cannot construct a user ID token that expires before its renewal window opens."); - if (!L) throw new Y("Cannot construct a user ID token without a master token."); - if (0 > E || E > Aa) throw new Y("Serial number " + E + " is outside the valid range."); - f = Math.floor(q.getTime() / 1E3); - c = Math.floor(t.getTime() / 1E3); - a = L.serialNumber; - if (R) { - b = R.tokendata; - d = R.signature; - h = R.verified; - a = L.serialNumber; + ac = ha.Class.create({ + init: function(l, q, t, J, C, M, K, A, R) { + var B; + B = this; + n(R, function() { + var g, d, a, b, c, h, k; + if (t.getTime() < q.getTime()) throw new ca("Cannot construct a user ID token that expires before its renewal window opens."); + if (!J) throw new ca("Cannot construct a user ID token without a master token."); + if (0 > C || C > Ca) throw new ca("Serial number " + C + " is outside the valid range."); + g = Math.floor(q.getTime() / 1E3); + d = Math.floor(t.getTime() / 1E3); + a = J.serialNumber; + if (A) { + b = A.tokendata; + c = A.signature; + h = A.verified; + a = J.serialNumber; Object.defineProperties(this, { ctx: { - value: k, + value: l, writable: !1, enumerable: !1, configurable: !1 }, renewalWindowSeconds: { - value: f, + value: g, writable: !1, enumerable: !1, configurable: !1 }, expirationSeconds: { - value: c, + value: d, writable: !1, enumerable: !1, configurable: !1 @@ -12272,17 +12267,17 @@ v7AA.H22 = function() { configurable: !1 }, serialNumber: { - value: E, + value: C, writable: !1, configurable: !1 }, issuerData: { - value: K, + value: M, writable: !1, configurable: !1 }, customer: { - value: H, + value: K, writable: !1, configurable: !1 }, @@ -12299,7 +12294,7 @@ v7AA.H22 = function() { configurable: !1 }, signature: { - value: d, + value: c, writable: !1, enumerable: !1, configurable: !1 @@ -12308,60 +12303,60 @@ v7AA.H22 = function() { return this; } b = {}; - K && (b.issuerdata = K); - b.identity = H; - b = Ma(JSON.stringify(b), Ca); - l = k.getMslCryptoContext(); - l.encrypt(b, { + M && (b.issuerdata = M); + b.identity = K; + b = Oa(JSON.stringify(b), Ba); + k = l.getMslCryptoContext(); + k.encrypt(b, { result: function(b) { - n(P, function() { - var g, d; - g = {}; - g.renewalwindow = f; - g.expiration = c; - g.mtserialnumber = a; - g.serialnumber = E; - g.userdata = ma(b); - d = Ma(JSON.stringify(g), Ca); - l.sign(d, { + n(R, function() { + var f, c; + f = {}; + f.renewalwindow = g; + f.expiration = d; + f.mtserialnumber = a; + f.serialnumber = C; + f.userdata = ka(b); + c = Oa(JSON.stringify(f), Ba); + k.sign(c, { result: function(a) { - n(P, function() { + n(R, function() { Object.defineProperties(this, { ctx: { - value: k, + value: l, writable: !1, enumerable: !1, configurable: !1 }, renewalWindowSeconds: { - value: f, + value: g, writable: !1, enumerable: !1, configurable: !1 }, expirationSeconds: { - value: c, + value: d, writable: !1, enumerable: !1, configurable: !1 }, mtSerialNumber: { - value: L.serialNumber, + value: J.serialNumber, writable: !1, configurable: !1 }, serialNumber: { - value: E, + value: C, writable: !1, configurable: !1 }, issuerData: { - value: K, + value: M, writable: !1, configurable: !1 }, customer: { - value: H, + value: K, writable: !1, configurable: !1 }, @@ -12372,7 +12367,7 @@ v7AA.H22 = function() { configurable: !1 }, tokendata: { - value: d, + value: c, writable: !1, enumerable: !1, configurable: !1 @@ -12385,22 +12380,22 @@ v7AA.H22 = function() { } }); return this; - }, J); + }, B); }, error: function(a) { - n(P, function() { - a instanceof A && a.setEntity(L); + n(R, function() { + a instanceof G && a.setEntity(J); throw a; - }, J); + }, B); } }); - }, J); + }, B); }, error: function(a) { - n(P, function() { - a instanceof A && a.setEntity(L); + n(R, function() { + a instanceof G && a.setEntity(J); throw a; - }, J); + }, B); } }); }, this); @@ -12423,106 +12418,106 @@ v7AA.H22 = function() { isExpired: function() { return this.expiration.getTime() <= this.ctx.getTime(); }, - isBoundTo: function(k) { - return k && k.serialNumber == this.mtSerialNumber; + isBoundTo: function(l) { + return l && l.serialNumber == this.mtSerialNumber; }, toJSON: function() { - var k; - k = {}; - k.tokendata = ma(this.tokendata); - k.signature = ma(this.signature); - return k; + var l; + l = {}; + l.tokendata = ka(this.tokendata); + l.signature = ka(this.signature); + return l; }, - equals: function(k) { - return this === k ? !0 : k instanceof ac ? this.serialNumber == k.serialNumber && this.mtSerialNumber == k.mtSerialNumber : !1; + equals: function(l) { + return this === l ? !0 : l instanceof ac ? this.serialNumber == l.serialNumber && this.mtSerialNumber == l.mtSerialNumber : !1; }, uniqueKey: function() { return this.serialNumber + ":" + this.mtSerialNumber; } }); - Sb = function(t, J, Q, L) { - n(L, function() { - var E, K, I, H, R; - E = t.getMslCryptoContext(); - K = J.tokendata; - I = J.signature; - if ("string" !== typeof K || "string" !== typeof I) throw new aa(k.JSON_PARSE_ERROR, "useridtoken " + JSON.stringify(J)).setEntity(Q); + Sb = function(t, L, K, J) { + n(J, function() { + var C, B, A, V, R; + C = t.getMslCryptoContext(); + B = L.tokendata; + A = L.signature; + if ("string" !== typeof B || "string" !== typeof A) throw new ba(l.JSON_PARSE_ERROR, "useridtoken " + JSON.stringify(L)).setEntity(K); try { - H = ra(K); - } catch (va) { - throw new A(k.USERIDTOKEN_TOKENDATA_INVALID, "useridtoken " + JSON.stringify(J), va).setEntity(Q); + V = oa(B); + } catch (sa) { + throw new G(l.USERIDTOKEN_TOKENDATA_INVALID, "useridtoken " + JSON.stringify(L), sa).setEntity(K); } - if (!H || 0 == H.length) throw new aa(k.USERIDTOKEN_TOKENDATA_MISSING, "useridtoken " + JSON.stringify(J)).setEntity(Q); + if (!V || 0 == V.length) throw new ba(l.USERIDTOKEN_TOKENDATA_MISSING, "useridtoken " + JSON.stringify(L)).setEntity(K); try { - R = ra(I); - } catch (va) { - throw new A(k.USERIDTOKEN_TOKENDATA_INVALID, "useridtoken " + JSON.stringify(J), va).setEntity(Q); - } - E.verify(H, R, { - result: function(K) { - n(L, function() { - var f, c, a, b, d, h, l, g, m, p; - h = Ia(H, Ca); + R = oa(A); + } catch (sa) { + throw new G(l.USERIDTOKEN_TOKENDATA_INVALID, "useridtoken " + JSON.stringify(L), sa).setEntity(K); + } + C.verify(V, R, { + result: function(B) { + n(J, function() { + var g, d, a, b, c, h, k, f, p, m; + h = Ra(V, Ba); try { - l = JSON.parse(h); - f = parseInt(l.renewalwindow); - c = parseInt(l.expiration); - a = parseInt(l.mtserialnumber); - b = parseInt(l.serialnumber); - d = l.userdata; + k = JSON.parse(h); + g = parseInt(k.renewalwindow); + d = parseInt(k.expiration); + a = parseInt(k.mtserialnumber); + b = parseInt(k.serialnumber); + c = k.userdata; } catch (r) { - if (r instanceof SyntaxError) throw new aa(k.USERIDTOKEN_TOKENDATA_PARSE_ERROR, "usertokendata " + h, r).setEntity(Q); + if (r instanceof SyntaxError) throw new ba(l.USERIDTOKEN_TOKENDATA_PARSE_ERROR, "usertokendata " + h, r).setEntity(K); throw r; } - if (!f || f != f || !c || c != c || "number" !== typeof a || a != a || "number" !== typeof b || b != b || "string" !== typeof d) throw new aa(k.USERIDTOKEN_TOKENDATA_PARSE_ERROR, "usertokendata " + h).setEntity(Q); - if (c < f) throw new A(k.USERIDTOKEN_EXPIRES_BEFORE_RENEWAL, "mastertokendata " + h).setEntity(Q); - if (0 > a || a > Aa) throw new A(k.USERIDTOKEN_MASTERTOKEN_SERIAL_NUMBER_OUT_OF_RANGE, "usertokendata " + h).setEntity(Q); - if (0 > b || b > Aa) throw new A(k.USERIDTOKEN_SERIAL_NUMBER_OUT_OF_RANGE, "usertokendata " + h).setEntity(Q); - g = new Date(1E3 * f); - m = new Date(1E3 * c); - if (!Q || a != Q.serialNumber) throw new A(k.USERIDTOKEN_MASTERTOKEN_MISMATCH, "uit mtserialnumber " + a + "; mt " + JSON.stringify(Q)).setEntity(Q); + if (!g || g != g || !d || d != d || "number" !== typeof a || a != a || "number" !== typeof b || b != b || "string" !== typeof c) throw new ba(l.USERIDTOKEN_TOKENDATA_PARSE_ERROR, "usertokendata " + h).setEntity(K); + if (d < g) throw new G(l.USERIDTOKEN_EXPIRES_BEFORE_RENEWAL, "mastertokendata " + h).setEntity(K); + if (0 > a || a > Ca) throw new G(l.USERIDTOKEN_MASTERTOKEN_SERIAL_NUMBER_OUT_OF_RANGE, "usertokendata " + h).setEntity(K); + if (0 > b || b > Ca) throw new G(l.USERIDTOKEN_SERIAL_NUMBER_OUT_OF_RANGE, "usertokendata " + h).setEntity(K); + f = new Date(1E3 * g); + p = new Date(1E3 * d); + if (!K || a != K.serialNumber) throw new G(l.USERIDTOKEN_MASTERTOKEN_MISMATCH, "uit mtserialnumber " + a + "; mt " + JSON.stringify(K)).setEntity(K); try { - p = ra(d); + m = oa(c); } catch (r) { - throw new A(k.USERIDTOKEN_USERDATA_INVALID, d, r).setEntity(Q); + throw new G(l.USERIDTOKEN_USERDATA_INVALID, c, r).setEntity(K); } - if (!p || 0 == p.length) throw new A(k.USERIDTOKEN_USERDATA_MISSING, d).setEntity(Q); - K ? E.decrypt(p, { + if (!m || 0 == m.length) throw new G(l.USERIDTOKEN_USERDATA_MISSING, c).setEntity(K); + B ? C.decrypt(m, { result: function(a) { - n(L, function() { - var c, d, p, r, h; - p = Ia(a, Ca); + n(J, function() { + var c, d, m, r, k; + m = Ra(a, Ba); try { - r = JSON.parse(p); + r = JSON.parse(m); c = r.issuerdata; d = r.identity; - } catch (x) { - if (x instanceof SyntaxError) throw new aa(k.USERIDTOKEN_USERDATA_PARSE_ERROR, "userdata " + p).setEntity(Q); - throw x; + } catch (D) { + if (D instanceof SyntaxError) throw new ba(l.USERIDTOKEN_USERDATA_PARSE_ERROR, "userdata " + m).setEntity(K); + throw D; } - if (c && "object" !== typeof c || "object" !== typeof d) throw new aa(k.USERIDTOKEN_USERDATA_PARSE_ERROR, "userdata " + p).setEntity(Q); + if (c && "object" !== typeof c || "object" !== typeof d) throw new ba(l.USERIDTOKEN_USERDATA_PARSE_ERROR, "userdata " + m).setEntity(K); try { - h = Ce(d); - } catch (x) { - throw new A(k.USERIDTOKEN_IDENTITY_INVALID, "userdata " + p, x).setEntity(Q); + k = ye(d); + } catch (D) { + throw new G(l.USERIDTOKEN_IDENTITY_INVALID, "userdata " + m, D).setEntity(K); } - d = new q(H, R, K); - new ac(t, g, m, Q, b, c, h, d, L); + d = new q(V, R, B); + new ac(t, f, p, K, b, c, k, d, J); }); }, error: function(a) { - n(L, function() { - a instanceof A && a.setEntity(Q); + n(J, function() { + a instanceof G && a.setEntity(K); throw a; }); } - }) : (f = new q(H, R, K), new ac(t, g, m, Q, b, null, null, f, L)); + }) : (g = new q(V, R, B), new ac(t, f, p, K, b, null, null, g, J)); }); }, - error: function(k) { - n(L, function() { - k instanceof A && k.setEntity(Q); - throw k; + error: function(l) { + n(J, function() { + l instanceof G && l.setEntity(K); + throw l; }); } }); @@ -12531,42 +12526,42 @@ v7AA.H22 = function() { }()); (function() { function q(n, q) { - var t, E, K; + var t, C, B; t = n.tokendata; - if ("string" !== typeof t) throw new aa(k.JSON_PARSE_ERROR, "servicetoken " + JSON.stringify(n)); + if ("string" !== typeof t) throw new ba(l.JSON_PARSE_ERROR, "servicetoken " + JSON.stringify(n)); try { - E = ra(t); - } catch (La) { - throw new A(k.SERVICETOKEN_TOKENDATA_INVALID, "servicetoken " + JSON.stringify(n), La); + C = oa(t); + } catch (Ka) { + throw new G(l.SERVICETOKEN_TOKENDATA_INVALID, "servicetoken " + JSON.stringify(n), Ka); } - if (!E || 0 == E.length) throw new aa(k.SERVICETOKEN_TOKENDATA_MISSING, "servicetoken " + JSON.stringify(n)); + if (!C || 0 == C.length) throw new ba(l.SERVICETOKEN_TOKENDATA_MISSING, "servicetoken " + JSON.stringify(n)); try { - K = JSON.parse(Ia(E, Ca)).name; - } catch (La) { - if (La instanceof SyntaxError) throw new aa(k.JSON_PARSE_ERROR, "servicetoken " + JSON.stringify(n), La); - throw La; + B = JSON.parse(Ra(C, Ba)).name; + } catch (Ka) { + if (Ka instanceof SyntaxError) throw new ba(l.JSON_PARSE_ERROR, "servicetoken " + JSON.stringify(n), Ka); + throw Ka; } - if (!K) throw new aa(k.JSON_PARSE_ERROR, "servicetoken " + JSON.stringify(n)); - return q[K] ? q[K] : q[""]; + if (!B) throw new ba(l.JSON_PARSE_ERROR, "servicetoken " + JSON.stringify(n)); + return q[B] ? q[B] : q[""]; } - function t(k, n, q) { - this.tokendata = k; + function t(l, n, q) { + this.tokendata = l; this.signature = n; this.verified = q; } - Jb = fa.Class.create({ - init: function(k, q, t, E, K, I, H, R, P, f) { - var c; - c = this; - n(f, function() { - var a, b, d, h, l; - if (E && K && !K.isBoundTo(E)) throw new Y("Cannot construct a service token bound to a master token and user ID token where the user ID token is not bound to the same master token."); - a = E ? E.serialNumber : -1; - b = K ? K.serialNumber : -1; - if (P) return l = P.tokendata, Object.defineProperties(this, { + Jb = ha.Class.create({ + init: function(l, q, t, C, B, K, A, R, sa, g) { + var d; + d = this; + n(g, function() { + var a, b, c, h, k; + if (C && B && !B.isBoundTo(C)) throw new ca("Cannot construct a service token bound to a master token and user ID token where the user ID token is not bound to the same master token."); + a = C ? C.serialNumber : -1; + b = B ? B.serialNumber : -1; + if (sa) return k = sa.tokendata, Object.defineProperties(this, { ctx: { - value: k, + value: l, writable: !1, enumerable: !1, configurable: !1 @@ -12592,52 +12587,52 @@ v7AA.H22 = function() { configurable: !1 }, encrypted: { - value: I, + value: K, writable: !1, enumerable: !1, configurable: !1 }, compressionAlgo: { - value: H, + value: A, writable: !1, configurable: !1 }, verified: { - value: P.verified, + value: sa.verified, writable: !1, enumerable: !1, configurable: !1 }, tokendata: { - value: l, + value: k, writable: !1, enumerable: !1, configurable: !1 }, signature: { - value: P.signature, + value: sa.signature, writable: !1, enumerable: !1, configurable: !1 } }), this; - H ? (d = sd(H, t), d.length < t.length || (H = null, d = t)) : (H = null, d = t); + A ? (c = rd(A, t), c.length < t.length || (A = null, c = t)) : (A = null, c = t); h = {}; h.name = q; - 1 != a && (h.mtserialnumber = a); - 1 != b && (h.uitserialnumber = b); - h.encrypted = I; - H && (h.compressionalgo = H); - if (I && 0 < d.length) R.encrypt(d, { - result: function(g) { - n(f, function() { - var d; - h.servicedata = ma(g); - d = Ma(JSON.stringify(h), Ca); - R.sign(d, { - result: function(g) { - n(f, function() { + h.encrypted = K; + A && (h.compressionalgo = A); + if (K && 0 < c.length) R.encrypt(c, { + result: function(f) { + n(g, function() { + var c; + h.servicedata = ka(f); + c = Oa(JSON.stringify(h), Ba); + R.sign(c, { + result: function(f) { + n(g, function() { Object.defineProperties(this, { ctx: { - value: k, + value: l, writable: !1, enumerable: !1, configurable: !1 @@ -12663,13 +12658,13 @@ v7AA.H22 = function() { configurable: !1 }, encrypted: { - value: I, + value: K, writable: !1, enumerable: !1, configurable: !1 }, compressionAlgo: { - value: H, + value: A, writable: !1, configurable: !1 }, @@ -12680,46 +12675,46 @@ v7AA.H22 = function() { configurable: !1 }, tokendata: { - value: d, + value: c, writable: !1, enumerable: !1, configurable: !1 }, signature: { - value: g, + value: f, writable: !1, enumerable: !1, configurable: !1 } }); return this; - }, c); + }, d); }, error: function(a) { - n(f, function() { - a instanceof A && (a.setEntity(E), a.setUser(K)); + n(g, function() { + a instanceof G && (a.setEntity(C), a.setUser(B)); throw a; }); } }); - }, c); + }, d); }, error: function(a) { - n(f, function() { - a instanceof A && (a.setEntity(E), a.setUser(K)); + n(g, function() { + a instanceof G && (a.setEntity(C), a.setUser(B)); throw a; }); } }); else { - h.servicedata = ma(d); - l = Ma(JSON.stringify(h), Ca); - R.sign(l, { - result: function(g) { - n(f, function() { + h.servicedata = ka(c); + k = Oa(JSON.stringify(h), Ba); + R.sign(k, { + result: function(f) { + n(g, function() { Object.defineProperties(this, { ctx: { - value: k, + value: l, writable: !1, enumerable: !1, configurable: !1 @@ -12745,13 +12740,13 @@ v7AA.H22 = function() { configurable: !1 }, encrypted: { - value: I, + value: K, writable: !1, enumerable: !1, configurable: !1 }, compressionAlgo: { - value: H, + value: A, writable: !1, configurable: !1 }, @@ -12762,24 +12757,24 @@ v7AA.H22 = function() { configurable: !1 }, tokendata: { - value: l, + value: k, writable: !1, enumerable: !1, configurable: !1 }, signature: { - value: g, + value: f, writable: !1, enumerable: !1, configurable: !1 } }); return this; - }, c); + }, d); }, error: function(a) { - n(f, function() { - a instanceof A && (a.setEntity(E), a.setUser(K)); + n(g, function() { + a instanceof G && (a.setEntity(C), a.setUser(B)); throw a; }); } @@ -12802,8 +12797,8 @@ v7AA.H22 = function() { isMasterTokenBound: function() { return -1 != this.mtSerialNumber; }, - isBoundTo: function(k) { - return k ? k instanceof eb ? k.serialNumber == this.mtSerialNumber : k instanceof ac ? k.serialNumber == this.uitSerialNumber : !1 : !1; + isBoundTo: function(l) { + return l ? l instanceof fb ? l.serialNumber == this.mtSerialNumber : l instanceof ac ? l.serialNumber == this.uitSerialNumber : !1 : !1; }, isUserIdTokenBound: function() { return -1 != this.uitSerialNumber; @@ -12812,172 +12807,172 @@ v7AA.H22 = function() { return -1 == this.mtSerialNumber && -1 == this.uitSerialNumber; }, toJSON: function() { - var k; - k = {}; - k.tokendata = ma(this.tokendata); - k.signature = ma(this.signature); - return k; + var l; + l = {}; + l.tokendata = ka(this.tokendata); + l.signature = ka(this.signature); + return l; }, - equals: function(k) { - return this === k ? !0 : k instanceof Jb ? this.name == k.name && this.mtSerialNumber == k.mtSerialNumber && this.uitSerialNumber == k.uitSerialNumber : !1; + equals: function(l) { + return this === l ? !0 : l instanceof Jb ? this.name == l.name && this.mtSerialNumber == l.mtSerialNumber && this.uitSerialNumber == l.uitSerialNumber : !1; }, uniqueKey: function() { return this.name + ":" + this.mtSerialNumber + ":" + this.uitSerialNumber; } }); - Cb = function(k, n, q, t, K, I, A, H, R) { - new Jb(k, n, q, t, K, I, A, H, null, R); + Eb = function(l, n, q, t, B, K, G, A, R) { + new Jb(l, n, q, t, B, K, G, A, null, R); }; - Ic = function(I, Q, L, E, K, H) { - n(H, function() { - var J, R, P, f, c, a, b, d, h, l, g, m, p; - !K || K instanceof bc || (K = q(Q, K)); - J = Q.tokendata; - R = Q.signature; - if ("string" !== typeof J || "string" !== typeof R) throw new aa(k.JSON_PARSE_ERROR, "servicetoken " + JSON.stringify(Q)).setEntity(L).setEntity(E); + Jc = function(B, K, J, C, M, A) { + n(A, function() { + var L, V, R, g, d, a, b, c, h, k, f, p, m; + !M || M instanceof bc || (M = q(K, M)); + L = K.tokendata; + V = K.signature; + if ("string" !== typeof L || "string" !== typeof V) throw new ba(l.JSON_PARSE_ERROR, "servicetoken " + JSON.stringify(K)).setEntity(J).setEntity(C); try { - P = ra(J); + R = oa(L); } catch (r) { - throw new A(k.SERVICETOKEN_TOKENDATA_INVALID, "servicetoken " + JSON.stringify(Q), r).setEntity(L).setEntity(E); + throw new G(l.SERVICETOKEN_TOKENDATA_INVALID, "servicetoken " + JSON.stringify(K), r).setEntity(J).setEntity(C); } - if (!P || 0 == P.length) throw new aa(k.SERVICETOKEN_TOKENDATA_MISSING, "servicetoken " + JSON.stringify(Q)).setEntity(L).setEntity(E); + if (!R || 0 == R.length) throw new ba(l.SERVICETOKEN_TOKENDATA_MISSING, "servicetoken " + JSON.stringify(K)).setEntity(J).setEntity(C); try { - f = ra(R); + g = oa(V); } catch (r) { - throw new A(k.SERVICETOKEN_SIGNATURE_INVALID, "servicetoken " + JSON.stringify(Q), r).setEntity(L).setEntity(E); + throw new G(l.SERVICETOKEN_SIGNATURE_INVALID, "servicetoken " + JSON.stringify(K), r).setEntity(J).setEntity(C); } - g = Ia(P, Ca); + f = Ra(R, Ba); try { - m = JSON.parse(g); - c = m.name; - a = m.mtserialnumber ? parseInt(m.mtserialnumber) : -1; - b = m.uitserialnumber ? parseInt(m.uitserialnumber) : -1; - d = m.encrypted; - h = m.compressionalgo; - l = m.servicedata; + p = JSON.parse(f); + d = p.name; + a = p.mtserialnumber ? parseInt(p.mtserialnumber) : -1; + b = p.uitserialnumber ? parseInt(p.uitserialnumber) : -1; + c = p.encrypted; + h = p.compressionalgo; + k = p.servicedata; } catch (r) { - if (r instanceof SyntaxError) throw new aa(k.JSON_PARSE_ERROR, "servicetokendata " + g, r).setEntity(L).setEntity(E); + if (r instanceof SyntaxError) throw new ba(l.JSON_PARSE_ERROR, "servicetokendata " + f, r).setEntity(J).setEntity(C); throw r; } - if (!c || "number" !== typeof a || a != a || "number" !== typeof b || b != b || "boolean" !== typeof d || h && "string" !== typeof h || "string" !== typeof l) throw new aa(k.JSON_PARSE_ERROR, "servicetokendata " + g).setEntity(L).setEntity(E); - if (m.mtserialnumber && 0 > a || a > Aa) throw new A(k.SERVICETOKEN_MASTERTOKEN_SERIAL_NUMBER_OUT_OF_RANGE, "servicetokendata " + g).setEntity(L).setEntity(E); - if (m.uitserialnumber && 0 > b || b > Aa) throw new A(k.SERVICETOKEN_USERIDTOKEN_SERIAL_NUMBER_OUT_OF_RANGE, "servicetokendata " + g).setEntity(L).setEntity(E); - if (-1 != a && (!L || a != L.serialNumber)) throw new A(k.SERVICETOKEN_MASTERTOKEN_MISMATCH, "st mtserialnumber " + a + "; mt " + L).setEntity(L).setEntity(E); - if (-1 != b && (!E || b != E.serialNumber)) throw new A(k.SERVICETOKEN_USERIDTOKEN_MISMATCH, "st uitserialnumber " + b + "; uit " + E).setEntity(L).setEntity(E); - d = !0 === d; + if (!d || "number" !== typeof a || a != a || "number" !== typeof b || b != b || "boolean" !== typeof c || h && "string" !== typeof h || "string" !== typeof k) throw new ba(l.JSON_PARSE_ERROR, "servicetokendata " + f).setEntity(J).setEntity(C); + if (p.mtserialnumber && 0 > a || a > Ca) throw new G(l.SERVICETOKEN_MASTERTOKEN_SERIAL_NUMBER_OUT_OF_RANGE, "servicetokendata " + f).setEntity(J).setEntity(C); + if (p.uitserialnumber && 0 > b || b > Ca) throw new G(l.SERVICETOKEN_USERIDTOKEN_SERIAL_NUMBER_OUT_OF_RANGE, "servicetokendata " + f).setEntity(J).setEntity(C); + if (-1 != a && (!J || a != J.serialNumber)) throw new G(l.SERVICETOKEN_MASTERTOKEN_MISMATCH, "st mtserialnumber " + a + "; mt " + J).setEntity(J).setEntity(C); + if (-1 != b && (!C || b != C.serialNumber)) throw new G(l.SERVICETOKEN_USERIDTOKEN_MISMATCH, "st uitserialnumber " + b + "; uit " + C).setEntity(J).setEntity(C); + c = !0 === c; if (h) { - if (!Nb[h]) throw new A(k.UNIDENTIFIED_COMPRESSION, h); - p = h; - } else p = null; - K ? K.verify(P, f, { - result: function(m) { - n(H, function() { + if (!Nb[h]) throw new G(l.UNIDENTIFIED_COMPRESSION, h); + m = h; + } else m = null; + M ? M.verify(R, g, { + result: function(p) { + n(A, function() { var r, h; - if (m) { + if (p) { try { - r = ra(l); - } catch (z) { - throw new A(k.SERVICETOKEN_SERVICEDATA_INVALID, "servicetokendata " + g, z).setEntity(L).setEntity(E); + r = oa(k); + } catch (v) { + throw new G(l.SERVICETOKEN_SERVICEDATA_INVALID, "servicetokendata " + f, v).setEntity(J).setEntity(C); } - if (!r || 0 != l.length && 0 == r.length) throw new A(k.SERVICETOKEN_SERVICEDATA_INVALID, "servicetokendata " + g).setEntity(L).setEntity(E); - if (d && 0 < r.length) K.decrypt(r, { - result: function(g) { - n(H, function() { - var r, h; - r = p ? Jc(p, g) : g; - h = new t(P, f, m); - new Jb(I, c, r, -1 != a ? L : null, -1 != b ? E : null, d, p, K, h, H); + if (!r || 0 != k.length && 0 == r.length) throw new G(l.SERVICETOKEN_SERVICEDATA_INVALID, "servicetokendata " + f).setEntity(J).setEntity(C); + if (c && 0 < r.length) M.decrypt(r, { + result: function(f) { + n(A, function() { + var r, k; + r = m ? Kc(m, f) : f; + k = new t(R, g, p); + new Jb(B, d, r, -1 != a ? J : null, -1 != b ? C : null, c, m, M, k, A); }); }, error: function(a) { - n(H, function() { - a instanceof A && (a.setEntity(L), a.setUser(E)); + n(A, function() { + a instanceof G && (a.setEntity(J), a.setUser(C)); throw a; }); } }); else { - r = p ? Jc(p, r) : r; - h = new t(P, f, m); - new Jb(I, c, r, -1 != a ? L : null, -1 != b ? E : null, d, p, K, h, H); + r = m ? Kc(m, r) : r; + h = new t(R, g, p); + new Jb(B, d, r, -1 != a ? J : null, -1 != b ? C : null, c, m, M, h, A); } - } else r = "" == l ? new Uint8Array(0) : null, h = new t(P, f, m), new Jb(I, c, r, -1 != a ? L : null, -1 != b ? E : null, d, p, K, h, H); + } else r = "" == k ? new Uint8Array(0) : null, h = new t(R, g, p), new Jb(B, d, r, -1 != a ? J : null, -1 != b ? C : null, c, m, M, h, A); }); }, error: function(a) { - n(H, function() { - a instanceof A && (a.setEntity(L), a.setUser(E)); + n(A, function() { + a instanceof G && (a.setEntity(J), a.setUser(C)); throw a; }); } - }) : (J = "" == l ? new Uint8Array(0) : null, R = new t(P, f, !1), new Jb(I, c, J, -1 != a ? L : null, -1 != b ? E : null, d, p, K, R, H)); + }) : (L = "" == k ? new Uint8Array(0) : null, V = new t(R, g, !1), new Jb(B, d, L, -1 != a ? J : null, -1 != b ? C : null, c, m, M, V, A)); }); }; }()); - ab = { + bb = { EMAIL_PASSWORD: "EMAIL_PASSWORD", NETFLIXID: "NETFLIXID", SSO: "SSO", SWITCH_PROFILE: "SWITCH_PROFILE", MDX: "MDX" }; - Object.freeze(ab); + Object.freeze(bb); (function() { - Gb = fa.Class.create({ - init: function(k) { + Gb = ha.Class.create({ + init: function(l) { Object.defineProperties(this, { scheme: { - value: k, + value: l, writable: !1, configurable: !1 } }); }, getAuthData: function() {}, - equals: function(k) { - return this === k ? !0 : k instanceof Gb ? this.scheme == k.scheme : !1; + equals: function(l) { + return this === l ? !0 : l instanceof Gb ? this.scheme == l.scheme : !1; }, toJSON: function() { - var k; - k = {}; - k.scheme = this.scheme; - k.authdata = this.getAuthData(); - return k; + var l; + l = {}; + l.scheme = this.scheme; + l.authdata = this.getAuthData(); + return l; } }); - re = function(q, t, J, A) { + ne = function(q, t, L, A) { n(A, function() { - var n, E, K; - n = J.scheme; - E = J.authdata; - if (!n || !E) throw new aa(k.JSON_PARSE_ERROR, "userauthdata " + JSON.stringify(J)); - if (!ab[n]) throw new sa(k.UNIDENTIFIED_USERAUTH_SCHEME, n); - K = q.getUserAuthenticationFactory(n); - if (!K) throw new sa(k.USERAUTH_FACTORY_NOT_FOUND, n); - K.createData(q, t, E, A); + var n, C, B; + n = L.scheme; + C = L.authdata; + if (!n || !C) throw new ba(l.JSON_PARSE_ERROR, "userauthdata " + JSON.stringify(L)); + if (!bb[n]) throw new qa(l.UNIDENTIFIED_USERAUTH_SCHEME, n); + B = q.getUserAuthenticationFactory(n); + if (!B) throw new qa(l.USERAUTH_FACTORY_NOT_FOUND, n); + B.createData(q, t, C, A); }); }; }()); - oc = fa.Class.create({ - init: function(k) { + nc = ha.Class.create({ + init: function(l) { Object.defineProperties(this, { scheme: { - value: k, + value: l, writable: !1, configurable: !1 } }); }, - createData: function(k, n, q, t) {}, - authenticate: function(k, n, q, t) {} + createData: function(l, n, q, t) {}, + authenticate: function(l, n, q, t) {} }); (function() { Vb = Gb.extend({ - init: function I(k, n) { - I.base.call(this, ab.NETFLIXID); + init: function B(l, n) { + B.base.call(this, bb.NETFLIXID); Object.defineProperties(this, { netflixId: { - value: k, + value: l, writable: !1, configurable: !1 }, @@ -12989,47 +12984,47 @@ v7AA.H22 = function() { }); }, getAuthData: function() { - var k; - k = {}; - k.netflixid = this.netflixId; - this.secureNetflixId && (k.securenetflixid = this.secureNetflixId); - return k; + var l; + l = {}; + l.netflixid = this.netflixId; + this.secureNetflixId && (l.securenetflixid = this.secureNetflixId); + return l; }, - equals: function J(k) { - return this === k ? !0 : k instanceof Vb ? J.base.call(this, k) && this.netflixId == k.netflixId && this.secureNetflixId == k.secureNetflixId : !1; + equals: function L(l) { + return this === l ? !0 : l instanceof Vb ? L.base.call(this, l) && this.netflixId == l.netflixId && this.secureNetflixId == l.secureNetflixId : !1; } }); - De = function(n) { + ze = function(n) { var q, t; q = n.netflixid; t = n.securenetflixid; - if (!q) throw new aa(k.JSON_PARSE_ERROR, "NetflixId authdata " + JSON.stringify(n)); + if (!q) throw new ba(l.JSON_PARSE_ERROR, "NetflixId authdata " + JSON.stringify(n)); return new Vb(q, t); }; }()); - jf = oc.extend({ - init: function I() { - I.base.call(this, ab.NETFLIXID); + df = nc.extend({ + init: function B() { + B.base.call(this, bb.NETFLIXID); }, - createData: function(k, q, t, L) { - n(L, function() { - return De(t); + createData: function(l, q, t, J) { + n(J, function() { + return ze(t); }); }, - authenticate: function(n, q, t, L) { - if (!(t instanceof Vb)) throw new Y("Incorrect authentication data type " + t + "."); + authenticate: function(n, q, t, J) { + if (!(t instanceof Vb)) throw new ca("Incorrect authentication data type " + t + "."); n = t.secureNetflixId; - if (!t.netflixId || !n) throw new sa(k.NETFLIXID_COOKIES_BLANK).setUser(t); - throw new sa(k.UNSUPPORTED_USERAUTH_DATA, this.scheme).setUser(t); + if (!t.netflixId || !n) throw new qa(l.NETFLIXID_COOKIES_BLANK).setUser(t); + throw new qa(l.UNSUPPORTED_USERAUTH_DATA, this.scheme).setUser(t); } }); (function() { - pc = Gb.extend({ - init: function J(k, n) { - J.base.call(this, ab.EMAIL_PASSWORD); + oc = Gb.extend({ + init: function L(l, n) { + L.base.call(this, bb.EMAIL_PASSWORD); Object.defineProperties(this, { email: { - value: k, + value: l, writable: !1, configurable: !1 }, @@ -13041,42 +13036,42 @@ v7AA.H22 = function() { }); }, getAuthData: function() { - var k; - k = {}; - k.email = this.email; - k.password = this.password; - return k; + var l; + l = {}; + l.email = this.email; + l.password = this.password; + return l; }, - equals: function Q(k) { - return this === k ? !0 : k instanceof pc ? Q.base.call(this, this, k) && this.email == k.email && this.password == k.password : !1; + equals: function V(l) { + return this === l ? !0 : l instanceof oc ? V.base.call(this, this, l) && this.email == l.email && this.password == l.password : !1; } }); - Ee = function(n) { + Ae = function(n) { var q, t; q = n.email; t = n.password; - if (!q || !t) throw new aa(k.JSON_PARSE_ERROR, "email/password authdata " + JSON.stringify(n)); - return new pc(q, t); + if (!q || !t) throw new ba(l.JSON_PARSE_ERROR, "email/password authdata " + JSON.stringify(n)); + return new oc(q, t); }; }()); - kf = oc.extend({ - init: function J() { - J.base.call(this, ab.EMAIL_PASSWORD); + ef = nc.extend({ + init: function L() { + L.base.call(this, bb.EMAIL_PASSWORD); }, - createData: function(k, q, t, E) { - n(E, function() { - return Ee(t); + createData: function(l, q, t, C) { + n(C, function() { + return Ae(t); }); }, - authenticate: function(n, q, t, E) { - if (!(t instanceof pc)) throw new Y("Incorrect authentication data type " + t + "."); + authenticate: function(n, q, t, C) { + if (!(t instanceof oc)) throw new ca("Incorrect authentication data type " + t + "."); n = t.password; - if (!t.email || !n) throw new sa(k.EMAILPASSWORD_BLANK).setUser(t); - throw new sa(k.UNSUPPORTED_USERAUTH_DATA, this.scheme).setUser(t); + if (!t.email || !n) throw new qa(l.EMAILPASSWORD_BLANK).setUser(t); + throw new qa(l.UNSUPPORTED_USERAUTH_DATA, this.scheme).setUser(t); } }); (function() { - var E, K, H, qa, Ha, va, f, c; + var C, M, A, pa, Aa, sa, g, d; function q(a, b) { return "<" + a + ">" + b + ""; @@ -13084,19 +13079,19 @@ v7AA.H22 = function() { function t(a) { return a.replace(/[<>&"']/g, function(a) { - return Ha[a]; + return Aa[a]; }); } - function L(a) { + function J(a) { return encodeURIComponent(a).replace("%20", "+").replace(/[!'()]/g, escape).replace(/\*/g, "%2A"); } - E = Mc = { + C = Nc = { MSL: "MSL", NTBA: "NTBA", MSL_LEGACY: "MSL_LEGACY" }; - K = fa.Class.create({ + M = ha.Class.create({ getAction: function() {}, getNonce: function() {}, getPin: function() {}, @@ -13104,34 +13099,34 @@ v7AA.H22 = function() { getEncoding: function() {}, equals: function() {} }); - H = ud = K.extend({ - init: function(a, b, c, h, l, g, m) { - var u; + A = td = M.extend({ + init: function(a, b, c, d, k, f, p) { + var h; - function d(g) { - n(m, function() { - var d, p; + function m(f) { + n(p, function() { + var d, m; try { - p = {}; - p.useridtoken = a; - p.action = b; - p.nonce = c; - p.pin = ma(g); - d = Ma(JSON.stringify(p), Ca); - } catch (G) { - throw new aa(k.JSON_ENCODE_ERROR, "MSL-based MDX authdata", G); + m = {}; + m.useridtoken = a; + m.action = b; + m.nonce = c; + m.pin = ka(f); + d = Oa(JSON.stringify(m), Ba); + } catch (w) { + throw new ba(l.JSON_ENCODE_ERROR, "MSL-based MDX authdata", w); } - l.sign(d, { + k.sign(d, { result: function(a) { r(d, a); }, - error: m.error + error: p.error }); - }, u); + }, h); } - function r(g, d) { - n(m, function() { + function r(f, m) { + n(p, function() { Object.defineProperties(this, { _userIdToken: { value: a, @@ -13152,36 +13147,36 @@ v7AA.H22 = function() { configurable: !1 }, _pin: { - value: h, + value: d, writable: !1, enumerable: !1, configurable: !1 }, _encoding: { - value: g, + value: f, writable: !1, enumerable: !1, configurable: !1 }, _signature: { - value: d, + value: m, writable: !1, enumerable: !1, configurable: !1 } }); return this; - }, u); + }, h); } - u = this; - n(m, function() { - g ? r(g.encoding, g.signature) : l.encrypt(Ma(h, Ca), { + h = this; + n(p, function() { + f ? r(f.encoding, f.signature) : k.encrypt(Oa(d, Ba), { result: function(a) { - d(a); + m(a); }, - error: m.error + error: p.error }); - }, u); + }, h); }, getUserIdToken: function() { return this._userIdToken; @@ -13202,36 +13197,36 @@ v7AA.H22 = function() { return this._encoding; }, equals: function(a) { - return this === a ? !0 : a instanceof H ? this._action == a._action && this._nonce == a._nonce && this._pin == a._pin && this._userIdToken.equals(a._userIdToken) : !1; + return this === a ? !0 : a instanceof A ? this._action == a._action && this._nonce == a._nonce && this._pin == a._pin && this._userIdToken.equals(a._userIdToken) : !1; } }); - ud.ACTION = "userauth"; - qa = function(a, b, c, h, l) { - function g(g) { - n(l, function() { - var p, m, h, f, w, G; - p = Ia(c, Ca); + td.ACTION = "userauth"; + pa = function(a, b, c, d, k) { + function f(f) { + n(k, function() { + var d, m, h, g, y, w; + d = Ra(c, Ba); try { - G = JSON.parse(p); - m = G.useridtoken; - h = G.action; - f = G.nonce; - w = G.pin; - } catch (x) { - if (x instanceof SyntaxError) throw new aa(k.JSON_PARSE_ERROR, "MDX authdata " + p, x); - throw x; + w = JSON.parse(d); + m = w.useridtoken; + h = w.action; + g = w.nonce; + y = w.pin; + } catch (D) { + if (D instanceof SyntaxError) throw new ba(l.JSON_PARSE_ERROR, "MDX authdata " + d, D); + throw D; } - if (!(m && "object" === typeof m && h && "string" === typeof h && f && "number" === typeof f && w) || "string" !== typeof w) throw new aa(k.JSON_PARSE_ERROR, "MDX authdata " + p); + if (!(m && "object" === typeof m && h && "string" === typeof h && g && "number" === typeof g && y) || "string" !== typeof y) throw new ba(l.JSON_PARSE_ERROR, "MDX authdata " + d); Sb(a, m, b, { result: function(a) { - n(l, function() { - if (!a.isDecrypted()) throw new sa(k.USERAUTH_USERIDTOKEN_NOT_DECRYPTED, "MDX authdata " + p); - d(g, a, h, f, w); + n(k, function() { + if (!a.isDecrypted()) throw new qa(l.USERAUTH_USERIDTOKEN_NOT_DECRYPTED, "MDX authdata " + d); + p(f, a, h, g, y); }); }, error: function(a) { - n(l, function() { - if (a instanceof A) throw new sa(k.USERAUTH_USERIDTOKEN_INVALID, "MDX authdata " + p, a); + n(k, function() { + if (a instanceof G) throw new qa(l.USERAUTH_USERIDTOKEN_INVALID, "MDX authdata " + d, a); throw a; }); } @@ -13239,60 +13234,60 @@ v7AA.H22 = function() { }); } - function d(a, b, g, d, m) { - n(l, function() { - var p; - p = ra(m); - a.decrypt(p, { + function p(a, b, f, p, h) { + n(k, function() { + var m; + m = oa(h); + a.decrypt(m, { result: function(a) { - n(l, function() { - var p; - p = Ia(a, Ca); - new H(b, g, d, p, null, { + n(k, function() { + var m; + m = Ra(a, Ba); + new A(b, f, p, m, null, { encoding: c, - signature: h - }, l); + signature: d + }, k); }); }, - error: l.error + error: k.error }); }); } - n(l, function() { - var d, m; + n(k, function() { + var p, r; try { - m = a.getMslStore().getCryptoContext(b); - d = m ? m : new $a(a, b); + r = a.getMslStore().getCryptoContext(b); + p = r ? r : new gb(a, b); } catch (u) { - if (u instanceof Pb) throw new sa(k.USERAUTH_MASTERTOKEN_NOT_DECRYPTED, "MDX authdata " + ma(c)); + if (u instanceof Pb) throw new qa(l.USERAUTH_MASTERTOKEN_NOT_DECRYPTED, "MDX authdata " + ka(c)); throw u; } - d.verify(c, h, { + p.verify(c, d, { result: function(a) { - n(l, function() { - if (!a) throw new P(k.MDX_USERAUTH_VERIFICATION_FAILED, "MDX authdata " + ma(c)); - g(d); + n(k, function() { + if (!a) throw new R(l.MDX_USERAUTH_VERIFICATION_FAILED, "MDX authdata " + ka(c)); + f(p); }); }, - error: l.error + error: k.error }); }); }; - Ha = { + Aa = { "<": "<", ">": ">", "&": "&", '"': """, "'": "'" }; - va = qc = K.extend({ - init: function(a, b, c, h) { - var d, g; - d = q("action", t(a)); - g = q("nonce", b.toString()); + sa = pc = M.extend({ + init: function(a, b, c, d) { + var k, f; + k = q("action", t(a)); + f = q("nonce", b.toString()); c = q("pin", c); - d = q("registerdata", d + g + c); - d = Ma(d, "utf-8"); + k = q("registerdata", k + f + c); + k = Oa(k, "utf-8"); Object.defineProperties(this, { _action: { value: a, @@ -13313,13 +13308,13 @@ v7AA.H22 = function() { configurable: !1 }, _encoding: { - value: d, + value: k, writable: !1, enumerable: !1, configurable: !1 }, _signature: { - value: h, + value: d, writable: !1, enumerable: !1, configurable: !1 @@ -13342,35 +13337,35 @@ v7AA.H22 = function() { return this._encoding; }, equals: function(a) { - return this === a ? !0 : a instanceof va ? this._action == a._action && this._nonce == a._nonce && this._pin == a._pin : !1; + return this === a ? !0 : a instanceof sa ? this._action == a._action && this._nonce == a._nonce && this._pin == a._pin : !1; } }); - qc.ACTION = "regpairrequest"; - f = vd = K.extend({ - init: function(a, b, c, h, l, g) { + pc.ACTION = "regpairrequest"; + g = ud = M.extend({ + init: function(a, b, c, d, k, f) { var r; - function d(c) { - n(g, function() { - var d, m, r, l, u; - d = ma(c); - m = q("action", t(a)); - r = q("nonce", b.toString()); - l = q("pin", d); - m = q("registerdata", m + r + l); - u = Ma(m, "utf-8"); - d = "action=" + L(a) + "&nonce=" + L(b.toString()) + "&pin=" + L(d); - h.sign(Ma(d, "utf-8"), { + function p(c) { + n(f, function() { + var p, r, k, h, u; + p = ka(c); + r = q("action", t(a)); + k = q("nonce", b.toString()); + h = q("pin", p); + r = q("registerdata", r + k + h); + u = Oa(r, "utf-8"); + p = "action=" + J(a) + "&nonce=" + J(b.toString()) + "&pin=" + J(p); + d.sign(Oa(p, "utf-8"), { result: function(a) { - p(u, a); + m(u, a); }, - error: g.error + error: f.error }); }, r); } - function p(d, p) { - n(g, function() { + function m(d, p) { + n(f, function() { Object.defineProperties(this, { _action: { value: a, @@ -13407,12 +13402,12 @@ v7AA.H22 = function() { }, r); } r = this; - n(g, function() { - l ? p(l.encoding, l.signature) : h.encrypt(Ma(c, "utf-8"), { + n(f, function() { + k ? m(k.encoding, k.signature) : d.encrypt(Oa(c, "utf-8"), { result: function(a) { - d(a); + p(a); }, - error: g.error + error: f.error }); }, r); }, @@ -13432,69 +13427,69 @@ v7AA.H22 = function() { return this._encoding; }, equals: function(a) { - return this === a ? !0 : a instanceof f ? this._action == a._action && this._nonce == a._nonce && this._pin == a._pin : !1; - } - }); - vd.ACTION = qc.ACTION; - c = function(a, b, c, h, l) { - n(l, function() { - var g, d, p, r, u, v, z; - g = a.getMslStore().getCryptoContext(b); - d = g ? g : new $a(a, b); - g = Ia(c, "utf-8"); - p = new DOMParser().parseFromString(g, "application/xml"); - g = p.getElementsByTagName("action"); - r = p.getElementsByTagName("nonce"); - p = p.getElementsByTagName("pin"); - u = g && 1 == g.length && g[0].firstChild ? g[0].firstChild.nodeValue : null; - v = r && 1 == r.length && r[0].firstChild ? parseInt(r[0].firstChild.nodeValue) : null; - z = p && 1 == p.length && p[0].firstChild ? p[0].firstChild.nodeValue : null; - if (!u || !v || !z) throw new aa(k.XML_PARSE_ERROR, "MDX authdata " + ma(c)); - g = "action=" + L(u) + "&nonce=" + L(v.toString()) + "&pin=" + L(z); - d.verify(Ma(g, "utf-8"), h, { + return this === a ? !0 : a instanceof g ? this._action == a._action && this._nonce == a._nonce && this._pin == a._pin : !1; + } + }); + ud.ACTION = pc.ACTION; + d = function(a, b, c, d, k) { + n(k, function() { + var f, p, m, r, h, x, v; + f = a.getMslStore().getCryptoContext(b); + p = f ? f : new gb(a, b); + f = Ra(c, "utf-8"); + m = new DOMParser().parseFromString(f, "application/xml"); + f = m.getElementsByTagName("action"); + r = m.getElementsByTagName("nonce"); + m = m.getElementsByTagName("pin"); + h = f && 1 == f.length && f[0].firstChild ? f[0].firstChild.nodeValue : null; + x = r && 1 == r.length && r[0].firstChild ? parseInt(r[0].firstChild.nodeValue) : null; + v = m && 1 == m.length && m[0].firstChild ? m[0].firstChild.nodeValue : null; + if (!h || !x || !v) throw new ba(l.XML_PARSE_ERROR, "MDX authdata " + ka(c)); + f = "action=" + J(h) + "&nonce=" + J(x.toString()) + "&pin=" + J(v); + p.verify(Oa(f, "utf-8"), d, { result: function(a) { - n(l, function() { + n(k, function() { var b; - if (!a) throw new P(k.MDX_USERAUTH_VERIFICATION_FAILED, "MDX authdata " + ma(c)); - b = ra(z); - d.decrypt(b, { + if (!a) throw new R(l.MDX_USERAUTH_VERIFICATION_FAILED, "MDX authdata " + ka(c)); + b = oa(v); + p.decrypt(b, { result: function(a) { - n(l, function() { + n(k, function() { var b; - b = Ia(a, "utf-8"); - new f(u, v, b, null, { + b = Ra(a, "utf-8"); + new g(h, x, b, null, { encoding: c, - signature: h - }, l); + signature: d + }, k); }); }, - error: l.error + error: k.error }); }); }, - error: l.error + error: k.error }); }); }; ec = Gb.extend({ - init: function b(c, h, l, g, m, p) { - var d, u, v, f, w, k; - b.base.call(this, ab.MDX); - d = null; - u = null; - v = null; - if ("string" === typeof l) c = E.MSL_LEGACY, v = l; - else if (l instanceof Uint8Array) c = E.NTBA, u = l; - else if (l instanceof eb) c = E.MSL, d = l; - else throw new TypeError("Controller token " + l + " is not a master token, encrypted CTicket, or MSL token construct."); - f = l = null; - w = null; - if (p) { - k = p.controllerAuthData; - l = k.getAction(); - f = k.getPin(); - p = p.userIdToken; - k instanceof H ? w = k.getUserIdToken().customer : p && (w = p.customer); + init: function b(c, d, k, f, p, m) { + var r, h, g, v, y, w; + b.base.call(this, bb.MDX); + r = null; + h = null; + g = null; + if ("string" === typeof k) c = C.MSL_LEGACY, g = k; + else if (k instanceof Uint8Array) c = C.NTBA, h = k; + else if (k instanceof fb) c = C.MSL, r = k; + else throw new TypeError("Controller token " + k + " is not a master token, encrypted CTicket, or MSL token construct."); + v = k = null; + y = null; + if (m) { + w = m.controllerAuthData; + k = w.getAction(); + v = w.getPin(); + m = m.userIdToken; + w instanceof A ? y = w.getUserIdToken().customer : m && (y = m.customer); } Object.defineProperties(this, { mechanism: { @@ -13503,51 +13498,51 @@ v7AA.H22 = function() { configurable: !1 }, action: { - value: l, + value: k, writable: !1, configurable: !1 }, targetPin: { - value: h, + value: d, writable: !1, configurable: !1 }, controllerPin: { - value: f, + value: v, writable: !1, configurable: !1 }, customer: { - value: w, + value: y, writable: !1, configurable: !1 }, _masterToken: { - value: d, + value: r, writable: !1, enumerable: !1, configurable: !1 }, _encryptedCTicket: { - value: u, + value: h, writable: !1, enumerable: !1, configurable: !1 }, _mslTokens: { - value: v, + value: g, writable: !1, enumerable: !1, configurable: !1 }, _controllerEncoding: { - value: g, + value: f, writable: !1, enumerable: !1, configurable: !1 }, _signature: { - value: m, + value: p, writable: !1, enumerable: !1, configurable: !1 @@ -13558,218 +13553,218 @@ v7AA.H22 = function() { var b, c; b = {}; switch (this.mechanism) { - case E.MSL: + case C.MSL: c = JSON.parse(JSON.stringify(this._masterToken)); b.mastertoken = c; break; - case E.NTBA: - c = Ia(this._encryptedCTicket, "utf-8"); + case C.NTBA: + c = Ra(this._encryptedCTicket, "utf-8"); b.cticket = c; break; - case E.MSL_LEGACY: + case C.MSL_LEGACY: b.cticket = this._mslTokens; break; default: - throw new Y("Unsupported MDX mechanism."); + throw new ca("Unsupported MDX mechanism."); } b.pin = this.targetPin; - b.mdxauthdata = ma(this._controllerEncoding); - b.signature = ma(this._signature); + b.mdxauthdata = ka(this._controllerEncoding); + b.signature = ka(this._signature); return b; }, - equals: function d(c) { - return this === c ? !0 : c instanceof ec ? d.base.call(this, c) && (this._masterToken == c._masterToken || this._masterToken && this._masterToken.equals(c._masterToken)) && (this._encryptedCTicket == c._encryptedCTicket || this._encryptedCTicket && Wa(this._encryptedCTicket, c._encryptedCTicket)) && this._mslTokens == c._mslTokens && Wa(this._controllerEncoding, c._controllerEncoding) && Wa(this._signature, c._signature) : !1; + equals: function c(d) { + return this === d ? !0 : d instanceof ec ? c.base.call(this, d) && (this._masterToken == d._masterToken || this._masterToken && this._masterToken.equals(d._masterToken)) && (this._encryptedCTicket == d._encryptedCTicket || this._encryptedCTicket && Xa(this._encryptedCTicket, d._encryptedCTicket)) && this._mslTokens == d._mslTokens && Xa(this._controllerEncoding, d._controllerEncoding) && Xa(this._signature, d._signature) : !1; } }); - Fe = function(d, h, l) { - function g(c, g, p, m) { - Rb(d, g, { - result: function(g) { - n(l, function() { - if (!g.isDecrypted()) throw new sa(k.USERAUTH_MASTERTOKEN_NOT_DECRYPTED, "MDX authdata " + h.toString()); - qa(d, g, p, m, { + Be = function(c, h, k) { + function f(f, d, p, m) { + Rb(c, d, { + result: function(d) { + n(k, function() { + if (!d.isDecrypted()) throw new qa(l.USERAUTH_MASTERTOKEN_NOT_DECRYPTED, "MDX authdata " + h.toString()); + pa(c, d, p, m, { result: function(p) { - n(l, function() { - var m, h; + n(k, function() { + var m, r; m = p.getEncoding(); - h = p.getSignature(); - return new ec(d, c, g, m, h, { + r = p.getSignature(); + return new ec(c, f, d, m, r, { controllerAuthData: p, userIdToken: null }); }); }, - error: l.error + error: k.error }); }); }, - error: function(c) { - n(l, function() { - if (c instanceof A) throw new sa(k.USERAUTH_MASTERTOKEN_INVALID, "MDX authdata " + JSON.stringify(h), c); - throw c; + error: function(f) { + n(k, function() { + if (f instanceof G) throw new qa(l.USERAUTH_MASTERTOKEN_INVALID, "MDX authdata " + JSON.stringify(h), f); + throw f; }); } }); } - function m(c, g, d, p) { - n(l, function() { - throw new sa(k.UNSUPPORTED_USERAUTH_MECHANISM, "NtbaControllerData$parse"); + function p(f, c, d, p) { + n(k, function() { + throw new qa(l.UNSUPPORTED_USERAUTH_MECHANISM, "NtbaControllerData$parse"); }); } - function p(g, p, m, f) { - function r(c, g) { - n(g, function() { + function m(f, p, m, g) { + function r(f, d) { + n(d, function() { var p, m; try { - p = ra(c); - } catch (N) { - throw new sa(k.USERAUTH_MASTERTOKEN_INVALID, "MDX authdata " + JSON.stringify(h), N); + p = oa(f); + } catch (F) { + throw new qa(l.USERAUTH_MASTERTOKEN_INVALID, "MDX authdata " + JSON.stringify(h), F); } - if (!p || 0 == p.length) throw new sa(k.USERAUTH_MASTERTOKEN_MISSING, "MDX authdata " + JSON.stringify(h)); + if (!p || 0 == p.length) throw new qa(l.USERAUTH_MASTERTOKEN_MISSING, "MDX authdata " + JSON.stringify(h)); try { - m = JSON.parse(Ia(p, "utf-8")); - Rb(d, m, { - result: function(c) { - n(g, function() { - if (!c.isDecrypted()) throw new sa(k.USERAUTH_MASTERTOKEN_NOT_DECRYPTED, "MDX authdata " + h.toString()); - return c; + m = JSON.parse(Ra(p, "utf-8")); + Rb(c, m, { + result: function(f) { + n(d, function() { + if (!f.isDecrypted()) throw new qa(l.USERAUTH_MASTERTOKEN_NOT_DECRYPTED, "MDX authdata " + h.toString()); + return f; }); }, - error: function(c) { - n(g, function() { - if (c instanceof A) throw new sa(k.USERAUTH_MASTERTOKEN_INVALID, "MDX authdata " + JSON.stringify(h), c); - throw c; + error: function(f) { + n(d, function() { + if (f instanceof G) throw new qa(l.USERAUTH_MASTERTOKEN_INVALID, "MDX authdata " + JSON.stringify(h), f); + throw f; }); } }); - } catch (N) { - if (N instanceof SyntaxError) throw new aa(k.JSON_PARSE_ERROR, "MDX authdata " + JSON.stringify(h), N); - throw N; + } catch (F) { + if (F instanceof SyntaxError) throw new ba(l.JSON_PARSE_ERROR, "MDX authdata " + JSON.stringify(h), F); + throw F; } }); } - function u(c, g, p) { + function u(f, d, p) { n(p, function() { var m, r; try { - m = ra(c); - } catch (T) { - throw new sa(k.USERAUTH_USERIDTOKEN_INVALID, "MDX authdata " + JSON.stringify(h), T); + m = oa(f); + } catch (la) { + throw new qa(l.USERAUTH_USERIDTOKEN_INVALID, "MDX authdata " + JSON.stringify(h), la); } - if (!m || 0 == m.length) throw new sa(k.USERAUTH_USERIDTOKEN_MISSING, "MDX authdata " + JSON.stringify(h)); + if (!m || 0 == m.length) throw new qa(l.USERAUTH_USERIDTOKEN_MISSING, "MDX authdata " + JSON.stringify(h)); try { - r = JSON.parse(Ia(m, "utf-8")); - Sb(d, r, g, { - result: function(c) { + r = JSON.parse(Ra(m, "utf-8")); + Sb(c, r, d, { + result: function(f) { n(p, function() { - if (!c.isDecrypted()) throw new sa(k.USERAUTH_USERIDTOKEN_NOT_DECRYPTED, "MDX authdata " + JSON.stringify(h)); - return c; + if (!f.isDecrypted()) throw new qa(l.USERAUTH_USERIDTOKEN_NOT_DECRYPTED, "MDX authdata " + JSON.stringify(h)); + return f; }); }, - error: function(c) { + error: function(f) { n(p, function() { - if (c instanceof A) throw new sa(k.USERAUTH_USERIDTOKEN_INVALID, "MDX authdata " + JSON.stringify(h), c); - throw c; + if (f instanceof G) throw new qa(l.USERAUTH_USERIDTOKEN_INVALID, "MDX authdata " + JSON.stringify(h), f); + throw f; }); } }); - } catch (T) { - if (T instanceof SyntaxError) throw new aa(k.JSON_PARSE_ERROR, "MDX authdata " + JSON.stringify(h), T); - throw T; + } catch (la) { + if (la instanceof SyntaxError) throw new ba(l.JSON_PARSE_ERROR, "MDX authdata " + JSON.stringify(h), la); + throw la; } }); } - n(l, function() { + n(k, function() { var v; v = p.split(","); - if (3 != v.length || "1" != v[0]) throw new sa(k.UNIDENTIFIED_USERAUTH_MECHANISM, "MDX authdata " + JSON.stringify(h)); + if (3 != v.length || "1" != v[0]) throw new qa(l.UNIDENTIFIED_USERAUTH_MECHANISM, "MDX authdata " + JSON.stringify(h)); r(v[1], { result: function(r) { u(v[2], r, { result: function(u) { - c(d, r, m, f, { - result: function(c) { - n(l, function() { - return new ec(d, g, p, m, f, { - controllerAuthData: c, + d(c, r, m, g, { + result: function(d) { + n(k, function() { + return new ec(c, f, p, m, g, { + controllerAuthData: d, userIdToken: u }); }); }, - error: function(c) { - n(l, function() { - if (c instanceof Pb) throw new sa(k.USERAUTH_MASTERTOKEN_NOT_DECRYPTED, "MDX authdata " + JSON.stringify(h), c); - throw c; + error: function(f) { + n(k, function() { + if (f instanceof Pb) throw new qa(l.USERAUTH_MASTERTOKEN_NOT_DECRYPTED, "MDX authdata " + JSON.stringify(h), f); + throw f; }); } }); }, - error: l.error + error: k.error }); }, - error: l.error + error: k.error }); }); } - n(l, function() { - var c, d, l, f, w; + n(k, function() { + var c, d, k, g, y; c = h.pin; d = h.mdxauthdata; - l = h.signature; - if (!c || "string" !== typeof c || !d || "string" !== typeof d || !l || "string" !== typeof l) throw new aa(k.JSON_PARSE_ERROR, "MDX authdata " + JSON.stringify(h)); + k = h.signature; + if (!c || "string" !== typeof c || !d || "string" !== typeof d || !k || "string" !== typeof k) throw new ba(l.JSON_PARSE_ERROR, "MDX authdata " + JSON.stringify(h)); try { - f = ra(d); - w = ra(l); - } catch (G) { - throw new sa(k.MDX_CONTROLLERDATA_INVALID, "MDX authdata " + JSON.stringify(h), G); + g = oa(d); + y = oa(k); + } catch (w) { + throw new qa(l.MDX_CONTROLLERDATA_INVALID, "MDX authdata " + JSON.stringify(h), w); } if (h.mastertoken) { d = h.mastertoken; - if (!d || "object" !== typeof d) throw new aa(k.JSON_PARSE_ERROR, "MDX authdata " + JSON.stringify(h)); - g(c, d, f, w); + if (!d || "object" !== typeof d) throw new ba(l.JSON_PARSE_ERROR, "MDX authdata " + JSON.stringify(h)); + f(c, d, g, y); } else if (h.cticket) { d = h.cticket; - if (!d || "string" !== typeof d) throw new aa(k.JSON_PARSE_ERROR, "MDX authdata " + JSON.stringify(h)); - 1 == d.indexOf(",") ? m(c, d, f, w) : p(c, d, f, w); - } else throw new sa(k.UNIDENTIFIED_USERAUTH_MECHANISM, "MDX authdata " + JSON.stringify(h)); + if (!d || "string" !== typeof d) throw new ba(l.JSON_PARSE_ERROR, "MDX authdata " + JSON.stringify(h)); - 1 == d.indexOf(",") ? p(c, d, g, y) : m(c, d, g, y); + } else throw new qa(l.UNIDENTIFIED_USERAUTH_MECHANISM, "MDX authdata " + JSON.stringify(h)); }); }; }()); (function() { var n, q, t; - n = ud.ACTION; - q = qc.ACTION; - t = vd.ACTION; - Ge = oc.extend({ - init: function K() { - K.base.call(this, ab.MDX); - }, - createData: function(k, n, q, t) { - Fe(k, q, t); - }, - authenticate: function(K, A, L, J) { - if (!(L instanceof ec)) throw new Y("Incorrect authentication data type " + L.getClass().getName() + "."); - K = L.action; - switch (L.mechanism) { - case Mc.MSL: - if (n != K) throw new sa(k.MDX_USERAUTH_ACTION_INVALID).setUser(L); + n = td.ACTION; + q = pc.ACTION; + t = ud.ACTION; + Ce = nc.extend({ + init: function M() { + M.base.call(this, bb.MDX); + }, + createData: function(l, n, q, t) { + Be(l, q, t); + }, + authenticate: function(M, J, A, G) { + if (!(A instanceof ec)) throw new ca("Incorrect authentication data type " + A.getClass().getName() + "."); + M = A.action; + switch (A.mechanism) { + case Nc.MSL: + if (n != M) throw new qa(l.MDX_USERAUTH_ACTION_INVALID).setUser(A); break; - case Mc.NTBA: - if (q != K) throw new sa(k.MDX_USERAUTH_ACTION_INVALID).setUser(L); + case Nc.NTBA: + if (q != M) throw new qa(l.MDX_USERAUTH_ACTION_INVALID).setUser(A); break; - case Mc.MSL_LEGACY: - if (t != K) throw new sa(k.MDX_USERAUTH_ACTION_INVALID).setUser(L); - } - K = L.controllerPin; - A = L.targetPin; - if (!K || !A) throw new sa(k.MDX_PIN_BLANK).setUser(L); - if (K != A) throw new sa(k.MDX_PIN_MISMATCH).setUser(L); - K = L.customer; - if (!K) throw new sa(k.MDX_USER_UNKNOWN).setUser(L); - if (J && (J = J.customer, !K.equals(J))) throw new sa(k.USERIDTOKEN_USERAUTH_DATA_MISMATCH, "uad customer " + K + "; uit customer " + J).setUser(L); - return K; + case Nc.MSL_LEGACY: + if (t != M) throw new qa(l.MDX_USERAUTH_ACTION_INVALID).setUser(A); + } + M = A.controllerPin; + J = A.targetPin; + if (!M || !J) throw new qa(l.MDX_PIN_BLANK).setUser(A); + if (M != J) throw new qa(l.MDX_PIN_MISMATCH).setUser(A); + M = A.customer; + if (!M) throw new qa(l.MDX_USER_UNKNOWN).setUser(A); + if (G && (G = G.customer, !M.equals(G))) throw new qa(l.USERIDTOKEN_USERAUTH_DATA_MISMATCH, "uad customer " + M + "; uit customer " + G).setUser(A); + return M; } }); }()); @@ -13781,11 +13776,11 @@ v7AA.H22 = function() { MICROSOFT_JWT: "MICROSOFT_JWT", GOOGLE_JWT: "GOOGLE_JWT" }; - q = Ie = fa.Class.create({ - init: function(k, n) { + q = Ee = ha.Class.create({ + init: function(l, n) { Object.defineProperties(this, { email: { - value: k, + value: l, writable: !1, enumerable: !0, configurable: !1 @@ -13799,11 +13794,11 @@ v7AA.H22 = function() { }); } }); - t = Je = fa.Class.create({ - init: function(k, n) { + t = Fe = ha.Class.create({ + init: function(l, n) { Object.defineProperties(this, { netflixId: { - value: k, + value: l, writable: !1, enumerable: !0, configurable: !1 @@ -13817,18 +13812,18 @@ v7AA.H22 = function() { }); } }); - rc = Gb.extend({ - init: function K(k, n, L, A) { - var f, c, a, b; - K.base.call(this, ab.SSO); - f = null; - c = null; + qc = Gb.extend({ + init: function M(l, n, J, A) { + var g, d, a, b; + M.base.call(this, bb.SSO); + g = null; + d = null; a = null; b = null; - L instanceof q ? (f = L.email, c = L.password) : L instanceof t && (a = L.netflixId, b = L.secureNetflixId); + J instanceof q ? (g = J.email, d = J.password) : J instanceof t && (a = J.netflixId, b = J.secureNetflixId); Object.defineProperties(this, { mechanism: { - value: k, + value: l, writable: !1, configurable: !1 }, @@ -13838,12 +13833,12 @@ v7AA.H22 = function() { configurable: !1 }, email: { - value: f, + value: g, writable: !1, configurable: !1 }, password: { - value: c, + value: d, writable: !1, configurable: !1 }, @@ -13865,69 +13860,69 @@ v7AA.H22 = function() { }); }, getAuthData: function() { - var k; - k = {}; - k.mechanism = this.mechanism; - k.token = ma(this.token); - this.email && this.password ? (k.email = this.email, k.password = this.password) : this.netflixId && this.secureNetflixId && (k.netflixid = this.netflixId, k.securenetflixid = this.secureNetflixId); - this.profileGuid && (k.profileguid = this.profileGuid); - return k; - }, - equals: function La(k) { - return this === k ? !0 : k instanceof rc ? La.base.call(this, k) && this.mechanism == k.mechanism && Wa(this.token, k.token) && this.email == k.email && this.password == k.password && this.netflixId == k.netflixId && this.secureNetflixId == k.secureNetflixId && this.profileGuid == k.profileGuid : !1; - } - }); - He = function(L) { - var A, J, H, f, c, a, b, d, h; - A = L.mechanism; - J = L.token; - if (!A || !J || "string" !== typeof J) throw new aa(k.JSON_PARSE_ERROR, "SSO authdata " + JSON.stringify(L)); - if (!n[A]) throw new sa(k.UNIDENTIFIED_USERAUTH_MECHANISM, "SSO authdata " + JSON.stringify(L)); - H = L.email; - f = L.password; - c = L.netflixid; - a = L.securenetflixid; - b = L.profileguid; - if (H && !f || !H && f || c && !a || !c && a || H && c) throw new aa(k.JSON_PARSE_ERROR, "SSO authdata " + JSON.stringify(L)); + var l; + l = {}; + l.mechanism = this.mechanism; + l.token = ka(this.token); + this.email && this.password ? (l.email = this.email, l.password = this.password) : this.netflixId && this.secureNetflixId && (l.netflixid = this.netflixId, l.securenetflixid = this.secureNetflixId); + this.profileGuid && (l.profileguid = this.profileGuid); + return l; + }, + equals: function Ka(l) { + return this === l ? !0 : l instanceof qc ? Ka.base.call(this, l) && this.mechanism == l.mechanism && Xa(this.token, l.token) && this.email == l.email && this.password == l.password && this.netflixId == l.netflixId && this.secureNetflixId == l.secureNetflixId && this.profileGuid == l.profileGuid : !1; + } + }); + De = function(J) { + var A, G, L, g, d, a, b, c, h; + A = J.mechanism; + G = J.token; + if (!A || !G || "string" !== typeof G) throw new ba(l.JSON_PARSE_ERROR, "SSO authdata " + JSON.stringify(J)); + if (!n[A]) throw new qa(l.UNIDENTIFIED_USERAUTH_MECHANISM, "SSO authdata " + JSON.stringify(J)); + L = J.email; + g = J.password; + d = J.netflixid; + a = J.securenetflixid; + b = J.profileguid; + if (L && !g || !L && g || d && !a || !d && a || L && d) throw new ba(l.JSON_PARSE_ERROR, "SSO authdata " + JSON.stringify(J)); try { - d = ra(J); - } catch (l) { - throw new sa(k.SSOTOKEN_INVALID, "SSO authdata " + JSON.stringify(L), l); + c = oa(G); + } catch (k) { + throw new qa(l.SSOTOKEN_INVALID, "SSO authdata " + JSON.stringify(J), k); } - H && f ? h = new q(H, f) : c && a && (h = new t(c, a)); - return new rc(A, d, h, b); + L && g ? h = new q(L, g) : d && a && (h = new t(d, a)); + return new qc(A, c, h, b); }; }()); - lf = oc.extend({ - init: function Q() { - Q.base.call(this, ab.SSO); + ff = nc.extend({ + init: function V() { + V.base.call(this, bb.SSO); }, - createData: function(k, q, t, K) { - n(K, function() { - return He(t); + createData: function(l, q, t, M) { + n(M, function() { + return De(t); }); }, - authenticate: function(n, q, t, K) { - var E, L; - if (!(t instanceof rc)) throw new Y("Incorrect authentication data type " + t + "."); + authenticate: function(n, q, t, M) { + var C, J; + if (!(t instanceof qc)) throw new ca("Incorrect authentication data type " + t + "."); n = t.token; q = t.email; - K = t.password; - E = t.netflixId; - L = t.secureNetflixId; - if (!n || 0 == n.length) throw new sa(k.SSOTOKEN_BLANK); - if (!(null === q && null === K || q && K)) throw new sa(k.EMAILPASSWORD_BLANK); - if (!(null === E && null === L || E && L)) throw new sa(k.NETFLIXID_COOKIES_BLANK).setUser(t); - throw new sa(k.UNSUPPORTED_USERAUTH_DATA, this.scheme).setUser(t); + M = t.password; + C = t.netflixId; + J = t.secureNetflixId; + if (!n || 0 == n.length) throw new qa(l.SSOTOKEN_BLANK); + if (!(null === q && null === M || q && M)) throw new qa(l.EMAILPASSWORD_BLANK); + if (!(null === C && null === J || C && J)) throw new qa(l.NETFLIXID_COOKIES_BLANK).setUser(t); + throw new qa(l.UNSUPPORTED_USERAUTH_DATA, this.scheme).setUser(t); } }); (function() { - sc = Gb.extend({ - init: function L(k, n) { - L.base.call(this, ab.SWITCH_PROFILE); + rc = Gb.extend({ + init: function J(l, n) { + J.base.call(this, bb.SWITCH_PROFILE); Object.defineProperties(this, { userIdToken: { - value: k, + value: l, writable: !1, configurable: !1 }, @@ -13939,62 +13934,62 @@ v7AA.H22 = function() { }); }, getAuthData: function() { - var k; - k = {}; - k.useridtoken = JSON.parse(JSON.stringify(this.userIdToken)); - k.profileguid = this.profileGuid; - return k; - }, - equals: function E(k) { - return this == k ? !0 : k instanceof sc ? E.base.call(this, k) && this.userIdToken.equals(k.userIdToken) && this.profileGuid == k.profileGuid : !1; - } - }); - Ke = function(q, t, A, H) { - n(H, function() { - var E, K; - if (!t) throw new sa(k.USERAUTH_MASTERTOKEN_MISSING); - E = A.useridtoken; - K = A.profileguid; - if ("object" !== typeof E || "string" !== typeof K) throw new aa(k.JSON_PARSE_ERROR, "switch profile authdata " + JSON.stringify(A)); - Sb(q, E, t, { - result: function(f) { - n(H, function() { - if (!f.isDecrypted()) throw new sa(k.USERAUTH_USERIDTOKEN_NOT_DECRYPTED, "switch profile authdata " + JSON.stringify(A)); - return new sc(f, K); + var l; + l = {}; + l.useridtoken = JSON.parse(JSON.stringify(this.userIdToken)); + l.profileguid = this.profileGuid; + return l; + }, + equals: function C(l) { + return this == l ? !0 : l instanceof rc ? C.base.call(this, l) && this.userIdToken.equals(l.userIdToken) && this.profileGuid == l.profileGuid : !1; + } + }); + Ge = function(q, t, A, G) { + n(G, function() { + var C, M; + if (!t) throw new qa(l.USERAUTH_MASTERTOKEN_MISSING); + C = A.useridtoken; + M = A.profileguid; + if ("object" !== typeof C || "string" !== typeof M) throw new ba(l.JSON_PARSE_ERROR, "switch profile authdata " + JSON.stringify(A)); + Sb(q, C, t, { + result: function(g) { + n(G, function() { + if (!g.isDecrypted()) throw new qa(l.USERAUTH_USERIDTOKEN_NOT_DECRYPTED, "switch profile authdata " + JSON.stringify(A)); + return new rc(g, M); }); }, - error: function(f) { - H.error(new sa(k.USERAUTH_USERIDTOKEN_INVALID, "switch profile authdata " + JSON.stringify(A), f)); + error: function(g) { + G.error(new qa(l.USERAUTH_USERIDTOKEN_INVALID, "switch profile authdata " + JSON.stringify(A), g)); } }); }); }; }()); - mf = oc.extend({ - init: function L(k) { - L.base.call(this, ab.SWITCH_PROFILE); + gf = nc.extend({ + init: function J(l) { + J.base.call(this, bb.SWITCH_PROFILE); Object.defineProperties(this, { _store: { - value: k, + value: l, writable: !1, enumerable: !1, configurable: !1 } }); }, - createData: function(k, n, q, t) { - Ke(k, n, q, t); + createData: function(l, n, q, t) { + Ge(l, n, q, t); }, authenticate: function(n, q, t, A) { - if (!(t instanceof sc)) throw new Y("Incorrect authentication data type " + t + "."); + if (!(t instanceof rc)) throw new ca("Incorrect authentication data type " + t + "."); q = t.userIdToken; n = t.profileGuid; - if (!n) throw new sa(NetflixMslError.PROFILEGUID_BLANK).setUserAuthenticationData(t); + if (!n) throw new qa(NetflixMslError.PROFILEGUID_BLANK).setUserAuthenticationData(t); q = q.user; - if (!q) throw new sa(k.USERAUTH_USERIDTOKEN_NOT_DECRYPTED).setUserAuthenticationData(t); + if (!q) throw new qa(l.USERAUTH_USERIDTOKEN_NOT_DECRYPTED).setUserAuthenticationData(t); n = this._store.switchUsers(q, n); - if (!n) throw new sa(NetflixMslError.PROFILE_SWITCH_DISALLOWED).setUserAuthenticationData(t); - if (A && (A = A.user, !n.equals(A))) throw new sa(k.USERIDTOKEN_USERAUTH_DATA_MISMATCH, "uad user " + n + "; uit user " + A).setUserAuthenticationData(t); + if (!n) throw new qa(NetflixMslError.PROFILE_SWITCH_DISALLOWED).setUserAuthenticationData(t); + if (A && (A = A.user, !n.equals(A))) throw new qa(l.USERIDTOKEN_USERAUTH_DATA_MISMATCH, "uad user " + n + "; uit user " + A).setUserAuthenticationData(t); return n; } }); @@ -14002,98 +13997,98 @@ v7AA.H22 = function() { ENTITY_REAUTH: q.ENTITY_REAUTH, ENTITYDATA_REAUTH: q.ENTITYDATA_REAUTH }); - nf = fa.Class.create({ + hf = ha.Class.create({ getTime: function() {}, getRandom: function() {}, isPeerToPeer: function() {}, getMessageCapabilities: function() {}, - getEntityAuthenticationData: function(k, n) {}, + getEntityAuthenticationData: function(l, n) {}, getMslCryptoContext: function() {}, - getEntityAuthenticationFactory: function(k) {}, - getUserAuthenticationFactory: function(k) {}, + getEntityAuthenticationFactory: function(l) {}, + getUserAuthenticationFactory: function(l) {}, getTokenFactory: function() {}, - getKeyExchangeFactory: function(k) {}, + getKeyExchangeFactory: function(l) {}, getKeyExchangeFactories: function() {}, getMslStore: function() {} }); - Le = fa.Class.create({ - setCryptoContext: function(k, n) {}, + He = ha.Class.create({ + setCryptoContext: function(l, n) {}, getMasterToken: function() {}, - getNonReplayableId: function(k) {}, - getCryptoContext: function(k) {}, - removeCryptoContext: function(k) {}, + getNonReplayableId: function(l) {}, + getCryptoContext: function(l) {}, + removeCryptoContext: function(l) {}, clearCryptoContexts: function() {}, - addUserIdToken: function(k, n) {}, - getUserIdToken: function(k) {}, - removeUserIdToken: function(k) {}, + addUserIdToken: function(l, n) {}, + getUserIdToken: function(l) {}, + removeUserIdToken: function(l) {}, clearUserIdTokens: function() {}, - addServiceTokens: function(k) {}, - getServiceTokens: function(k, n) {}, - removeServiceTokens: function(k, n, q) {}, + addServiceTokens: function(l) {}, + getServiceTokens: function(l, n) {}, + removeServiceTokens: function(l, n, q) {}, clearServiceTokens: function() {} }); (function() { var n; n = Nb; - sd = function(q, t) { - var E; - E = {}; + rd = function(q, t) { + var C; + C = {}; switch (q) { case n.LZW: - return Nd(t, E); + return Jd(t, C); case n.GZIP: return gzip$compress(t); default: - throw new A(k.UNSUPPORTED_COMPRESSION, q); + throw new G(l.UNSUPPORTED_COMPRESSION, q); } }; - Jc = function(q, t, L) { + Kc = function(q, t, A) { switch (q) { case n.LZW: - return Od(t); + return Kd(t); case n.GZIP: return gzip$uncompress(t); default: - throw new A(k.UNSUPPORTED_COMPRESSION, q.name()); + throw new G(l.UNSUPPORTED_COMPRESSION, q.name()); } }; }()); - Le.extend({ - setCryptoContext: function(k, n) {}, + He.extend({ + setCryptoContext: function(l, n) {}, getMasterToken: function() { return null; }, - getNonReplayableId: function(k) { + getNonReplayableId: function(l) { return 1; }, - getCryptoContext: function(k) { + getCryptoContext: function(l) { return null; }, - removeCryptoContext: function(k) {}, + removeCryptoContext: function(l) {}, clearCryptoContexts: function() {}, - addUserIdToken: function(k, n) {}, - getUserIdToken: function(k) { + addUserIdToken: function(l, n) {}, + getUserIdToken: function(l) { return null; }, - removeUserIdToken: function(k) {}, + removeUserIdToken: function(l) {}, clearUserIdTokens: function() {}, - addServiceTokens: function(k) {}, + addServiceTokens: function(l) {}, getServiceTokens: function(n, q) { if (q) { - if (!n) throw new A(k.USERIDTOKEN_MASTERTOKEN_NULL); - if (!q.isBoundTo(n)) throw new A(k.USERIDTOKEN_MASTERTOKEN_MISMATCH, "uit mtserialnumber " + q.mtSerialNumber + "; mt " + n.serialNumber); + if (!n) throw new G(l.USERIDTOKEN_MASTERTOKEN_NULL); + if (!q.isBoundTo(n)) throw new G(l.USERIDTOKEN_MASTERTOKEN_MISMATCH, "uit mtserialnumber " + q.mtSerialNumber + "; mt " + n.serialNumber); } return []; }, removeServiceTokens: function(n, q, t) { - if (t && q && !t.isBoundTo(q)) throw new A(k.USERIDTOKEN_MASTERTOKEN_MISMATCH, "uit mtserialnumber " + t.masterTokenSerialNumber + "; mt " + q.serialNumber); + if (t && q && !t.isBoundTo(q)) throw new G(l.USERIDTOKEN_MASTERTOKEN_MISMATCH, "uit mtserialnumber " + t.masterTokenSerialNumber + "; mt " + q.serialNumber); }, clearServiceTokens: function() {} }); (function() { - Me = Le.extend({ - init: function E() { - E.base.call(this); + Ie = He.extend({ + init: function C() { + C.base.call(this); Object.defineProperties(this, { masterTokens: { value: {}, @@ -14139,112 +14134,112 @@ v7AA.H22 = function() { } }); }, - setCryptoContext: function(k, n) { + setCryptoContext: function(l, n) { var q; if (n) { - q = k.uniqueKey(); - this.masterTokens[q] = k; + q = l.uniqueKey(); + this.masterTokens[q] = l; this.cryptoContexts[q] = n; - } else this.removeCryptoContext(k); + } else this.removeCryptoContext(l); }, getMasterToken: function() { - var k, n, q; - k = null; + var l, n, q; + l = null; for (n in this.masterTokens) { q = this.masterTokens[n]; - if (!k || q.isNewerThan(k)) k = q; + if (!l || q.isNewerThan(l)) l = q; } - return k; + return l; }, - getNonReplayableId: function(k) { + getNonReplayableId: function(l) { var n; - k = k.serialNumber; - n = this.nonReplayableIds[k] !== ga ? this.nonReplayableIds[k] : 0; - if (0 > n || n > Aa) throw new Y("Non-replayable ID " + n + " is outside the valid range."); - n = n == Aa ? 0 : n + 1; - return this.nonReplayableIds[k] = n; + l = l.serialNumber; + n = this.nonReplayableIds[l] !== da ? this.nonReplayableIds[l] : 0; + if (0 > n || n > Ca) throw new ca("Non-replayable ID " + n + " is outside the valid range."); + n = n == Ca ? 0 : n + 1; + return this.nonReplayableIds[l] = n; }, - getCryptoContext: function(k) { - return this.cryptoContexts[k.uniqueKey()]; + getCryptoContext: function(l) { + return this.cryptoContexts[l.uniqueKey()]; }, - removeCryptoContext: function(k) { + removeCryptoContext: function(l) { var n, q; - n = k.uniqueKey(); + n = l.uniqueKey(); if (this.masterTokens[n]) { delete this.masterTokens[n]; delete this.cryptoContexts[n]; - n = k.serialNumber; + n = l.serialNumber; for (q in this.masterTokens) if (this.masterTokens[q].serialNumber == n) return; delete this.nonReplayableIds[n]; Object.keys(this.userIdTokens).forEach(function(n) { n = this.userIdTokens[n]; - n.isBoundTo(k) && this.removeUserIdToken(n); + n.isBoundTo(l) && this.removeUserIdToken(n); }, this); try { - this.removeServiceTokens(null, k, null); - } catch (qa) { - if (qa instanceof A) throw new Y("Unexpected exception while removing master token bound service tokens.", qa); - throw qa; + this.removeServiceTokens(null, l, null); + } catch (pa) { + if (pa instanceof G) throw new ca("Unexpected exception while removing master token bound service tokens.", pa); + throw pa; } } }, clearCryptoContexts: function() { - [this.masterTokens, this.cryptoContexts, this.nonReplayableIds, this.userIdTokens, this.uitServiceTokens, this.mtServiceTokens].forEach(function(k) { - for (var n in k) delete k[n]; + [this.masterTokens, this.cryptoContexts, this.nonReplayableIds, this.userIdTokens, this.uitServiceTokens, this.mtServiceTokens].forEach(function(l) { + for (var n in l) delete l[n]; }, this); }, addUserIdToken: function(n, q) { - var t, E; + var t, C; t = !1; - for (E in this.masterTokens) - if (q.isBoundTo(this.masterTokens[E])) { + for (C in this.masterTokens) + if (q.isBoundTo(this.masterTokens[C])) { t = !0; break; - } if (!t) throw new A(k.USERIDTOKEN_MASTERTOKEN_NOT_FOUND, "uit mtserialnumber " + q.mtSerialNumber); + } if (!t) throw new G(l.USERIDTOKEN_MASTERTOKEN_NOT_FOUND, "uit mtserialnumber " + q.mtSerialNumber); this.userIdTokens[n] = q; }, - getUserIdToken: function(k) { - return this.userIdTokens[k]; + getUserIdToken: function(l) { + return this.userIdTokens[l]; }, - removeUserIdToken: function(k) { + removeUserIdToken: function(l) { var n, q, t; n = null; for (q in this.masterTokens) { t = this.masterTokens[q]; - if (k.isBoundTo(t)) { + if (l.isBoundTo(t)) { n = t; break; } } Object.keys(this.userIdTokens).forEach(function(q) { - if (this.userIdTokens[q].equals(k)) { + if (this.userIdTokens[q].equals(l)) { delete this.userIdTokens[q]; try { - this.removeServiceTokens(null, n, k); - } catch (va) { - if (va instanceof A) throw new Y("Unexpected exception while removing user ID token bound service tokens.", va); - throw va; + this.removeServiceTokens(null, n, l); + } catch (sa) { + if (sa instanceof G) throw new ca("Unexpected exception while removing user ID token bound service tokens.", sa); + throw sa; } } }, this); }, clearUserIdTokens: function() { var n; - for (var k in this.userIdTokens) { - n = this.userIdTokens[k]; + for (var l in this.userIdTokens) { + n = this.userIdTokens[l]; try { this.removeServiceTokens(null, null, n); - } catch (La) { - if (La instanceof A) throw new Y("Unexpected exception while removing user ID token bound service tokens.", La); - throw La; + } catch (Ka) { + if (Ka instanceof G) throw new ca("Unexpected exception while removing user ID token bound service tokens.", Ka); + throw Ka; } - delete this.userIdTokens[k]; + delete this.userIdTokens[l]; } }, addServiceTokens: function(n) { n.forEach(function(n) { - var q, t, E; + var q, t, C; if (n.isUnbound()) this.unboundServiceTokens[n.uniqueKey()] = n; else { if (n.isMasterTokenBound()) { @@ -14253,95 +14248,95 @@ v7AA.H22 = function() { if (n.isBoundTo(this.masterTokens[t])) { q = !0; break; - } if (!q) throw new A(k.SERVICETOKEN_MASTERTOKEN_NOT_FOUND, "st mtserialnumber " + n.mtSerialNumber); + } if (!q) throw new G(l.SERVICETOKEN_MASTERTOKEN_NOT_FOUND, "st mtserialnumber " + n.mtSerialNumber); } if (n.isUserIdTokenBound()) { q = !1; - for (E in this.userIdTokens) - if (n.isBoundTo(this.userIdTokens[E])) { + for (C in this.userIdTokens) + if (n.isBoundTo(this.userIdTokens[C])) { q = !0; break; - } if (!q) throw new A(k.SERVICETOKEN_USERIDTOKEN_NOT_FOUND, "st uitserialnumber " + n.uitSerialNumber); + } if (!q) throw new G(l.SERVICETOKEN_USERIDTOKEN_NOT_FOUND, "st uitserialnumber " + n.uitSerialNumber); } - n.isMasterTokenBound() && ((E = this.mtServiceTokens[n.mtSerialNumber]) || (E = {}), E[n.uniqueKey()] = n, this.mtServiceTokens[n.mtSerialNumber] = E); - n.isUserIdTokenBound() && ((E = this.uitServiceTokens[n.uitSerialNumber]) || (E = {}), E[n.uniqueKey()] = n, this.uitServiceTokens[n.uitSerialNumber] = E); + n.isMasterTokenBound() && ((C = this.mtServiceTokens[n.mtSerialNumber]) || (C = {}), C[n.uniqueKey()] = n, this.mtServiceTokens[n.mtSerialNumber] = C); + n.isUserIdTokenBound() && ((C = this.uitServiceTokens[n.uitSerialNumber]) || (C = {}), C[n.uniqueKey()] = n, this.uitServiceTokens[n.uitSerialNumber] = C); } }, this); }, getServiceTokens: function(n, q) { - var t, E, K, H; + var t, C, A, M; if (q) { - if (!n) throw new A(k.USERIDTOKEN_MASTERTOKEN_NULL); - if (!q.isBoundTo(n)) throw new A(k.USERIDTOKEN_MASTERTOKEN_MISMATCH, "uit mtserialnumber " + q.mtSerialNumber + "; mt " + n.serialNumber); + if (!n) throw new G(l.USERIDTOKEN_MASTERTOKEN_NULL); + if (!q.isBoundTo(n)) throw new G(l.USERIDTOKEN_MASTERTOKEN_MISMATCH, "uit mtserialnumber " + q.mtSerialNumber + "; mt " + n.serialNumber); } t = {}; - for (E in this.unboundServiceTokens) { - K = this.unboundServiceTokens[E]; - t[K.uniqueKey()] = K; - } - if (n && (K = this.mtServiceTokens[n.serialNumber])) - for (E in K) { - H = K[E]; - H.isUserIdTokenBound() || (t[E] = H); + for (C in this.unboundServiceTokens) { + A = this.unboundServiceTokens[C]; + t[A.uniqueKey()] = A; + } + if (n && (A = this.mtServiceTokens[n.serialNumber])) + for (C in A) { + M = A[C]; + M.isUserIdTokenBound() || (t[C] = M); } - if (q && (K = this.uitServiceTokens[q.serialNumber])) - for (E in K) H = K[E], H.isBoundTo(n) && (t[E] = H); - K = []; - for (E in t) K.push(t[E]); - return K; + if (q && (A = this.uitServiceTokens[q.serialNumber])) + for (C in A) M = A[C], M.isBoundTo(n) && (t[C] = M); + A = []; + for (C in t) A.push(t[C]); + return A; }, removeServiceTokens: function(n, q, t) { - var K, H, c; - if (t && q && !t.isBoundTo(q)) throw new A(k.USERIDTOKEN_MASTERTOKEN_MISMATCH, "uit mtserialnumber " + t.mtSerialNumber + "; mt " + q.serialNumber); + var A, M, d; + if (t && q && !t.isBoundTo(q)) throw new G(l.USERIDTOKEN_MASTERTOKEN_MISMATCH, "uit mtserialnumber " + t.mtSerialNumber + "; mt " + q.serialNumber); if (n && !q && !t) { Object.keys(this.unboundServiceTokens).forEach(function(a) { this.unboundServiceTokens[a].name == n && delete this.unboundServiceTokens[a]; }, this); - for (var E in this.mtServiceTokens) { - K = this.mtServiceTokens[E]; - H = Object.keys(K); - H.forEach(function(a) { - K[a].name == n && delete K[a]; + for (var C in this.mtServiceTokens) { + A = this.mtServiceTokens[C]; + M = Object.keys(A); + M.forEach(function(a) { + A[a].name == n && delete A[a]; }, this); - this.mtServiceTokens[E] = K; + this.mtServiceTokens[C] = A; } - for (var f in this.uitServiceTokens) K = this.uitServiceTokens[f], E = Object.keys(K), E.forEach(function(a) { - K[a].name == n && delete K[a]; - }, this), this.uitServiceTokens[f] = K; + for (var g in this.uitServiceTokens) A = this.uitServiceTokens[g], C = Object.keys(A), C.forEach(function(a) { + A[a].name == n && delete A[a]; + }, this), this.uitServiceTokens[g] = A; } if (q && !t) { - if (K = this.mtServiceTokens[q.serialNumber]) H = Object.keys(K), H.forEach(function(a) { + if (A = this.mtServiceTokens[q.serialNumber]) M = Object.keys(A), M.forEach(function(a) { var b; - b = K[a]; - n && b.name != n || delete K[a]; - }, this), this.mtServiceTokens[q.serialNumber] = K; - for (f in this.uitServiceTokens) { - c = this.uitServiceTokens[f]; - E = Object.keys(c); - E.forEach(function(a) { + b = A[a]; + n && b.name != n || delete A[a]; + }, this), this.mtServiceTokens[q.serialNumber] = A; + for (g in this.uitServiceTokens) { + d = this.uitServiceTokens[g]; + C = Object.keys(d); + C.forEach(function(a) { var b; - b = c[a]; - n && b.name != n || b.isBoundTo(q) && delete c[a]; + b = d[a]; + n && b.name != n || b.isBoundTo(q) && delete d[a]; }, this); - this.uitServiceTokens[f] = c; + this.uitServiceTokens[g] = d; } } - t && (K = this.uitServiceTokens[t.serialNumber]) && (E = Object.keys(K), E.forEach(function(a) { + t && (A = this.uitServiceTokens[t.serialNumber]) && (C = Object.keys(A), C.forEach(function(a) { var b; - b = K[a]; - n && b.name != n || q && !b.isBoundTo(q) || delete K[a]; - }, this), this.uitServiceTokens[t.serialNumber] = K); + b = A[a]; + n && b.name != n || q && !b.isBoundTo(q) || delete A[a]; + }, this), this.uitServiceTokens[t.serialNumber] = A); }, clearServiceTokens: function() { - [this.unboundServiceTokens, this.mtServiceTokens, this.uitServiceTokens].forEach(function(k) { - for (var n in k) delete k[n]; + [this.unboundServiceTokens, this.mtServiceTokens, this.uitServiceTokens].forEach(function(l) { + for (var n in l) delete l[n]; }, this); } }); }()); - Ue = ff.extend({ - init: function E() { - E.base.call(this); + Pe = af.extend({ + init: function C() { + C.base.call(this); Object.defineProperties(this, { _contextMap: { value: {}, @@ -14351,23 +14346,23 @@ v7AA.H22 = function() { } }); }, - addCryptoContext: function(k, n) { + addCryptoContext: function(l, n) { var q; - if (n && k && k.length) { - q = ma(k); + if (n && l && l.length) { + q = ka(l); this._contextMap[q] = n; } }, - getCryptoContext: function(k) { - return k && k.length ? (k = ma(k), this._contextMap[k] || null) : null; + getCryptoContext: function(l) { + return l && l.length ? (l = ka(l), this._contextMap[l] || null) : null; }, - removeCryptoContext: function(k) { - k && k.length && (k = ma(k), delete this._contextMap[k]); + removeCryptoContext: function(l) { + l && l.length && (l = ka(l), delete this._contextMap[l]); } }); - Ne = Ze.extend({ - init: function K(k, n, q, t) { - K.base.call(this, k); + Je = Ue.extend({ + init: function M(l, n, q, t) { + M.base.call(this, l); Object.defineProperties(this, { _kde: { value: n, @@ -14390,13 +14385,14 @@ v7AA.H22 = function() { }); }, getCryptoContext: function(n, q) { - if (!(q instanceof lb)) throw new Y("Incorrect authentication data type " + JSON.stringify(q) + "."); - if (q.identity != this.localIdentity) throw new bb(k.ENTITY_NOT_FOUND, "mgk " + q.identity); - return new Cc(n, this.localIdentity, this._kde, this._kdh, this._kdw); + if (!(q instanceof ob)) throw new ca("Incorrect authentication data type " + JSON.stringify(q) + "."); + if (q.identity != this.localIdentity) throw new yb(l.ENTITY_NOT_FOUND, "mgk " + q.identity); + return new Dc(n, this.localIdentity, this._kde, this._kdh, this._kdw); } - }); of = Yd.extend({ - init: function La(k, n, q, f) { - La.base.call(this, k); + }); + jf = Ud.extend({ + init: function Ka(l, n, q, g) { + Ka.base.call(this, l); Object.defineProperties(this, { _kpe: { value: n, @@ -14411,7 +14407,7 @@ v7AA.H22 = function() { configurable: !1 }, _kpw: { - value: f, + value: g, writable: !1, enumerable: !1, configurable: !1 @@ -14419,338 +14415,338 @@ v7AA.H22 = function() { }); }, getCryptoContext: function(n, q) { - if (!(q instanceof tb)) throw new Y("Incorrect authentication data type " + JSON.stringify(q) + "."); - if (q.identity != this.localIdentity) throw new bb(k.ENTITY_NOT_FOUND, "psk " + q.identity); - return new Cc(n, this.localIdentity, this._kpe, this._kph, this._kpw); + if (!(q instanceof sb)) throw new ca("Incorrect authentication data type " + JSON.stringify(q) + "."); + if (q.identity != this.localIdentity) throw new yb(l.ENTITY_NOT_FOUND, "psk " + q.identity); + return new Dc(n, this.localIdentity, this._kpe, this._kph, this._kpw); } }); - qf = Me.extend({ - init: function qa(k, n, f, c, a, b) { - qa.base.call(this); - this._log = k; + lf = Ie.extend({ + init: function pa(l, n, g, d, a, b) { + pa.base.call(this); + this._log = l; this._esn = n; - this._keyRequestData = f; - this._createKeyRequestData = c; + this._keyRequestData = g; + this._createKeyRequestData = d; this._systemKeyName = a; this._systemKeyWrapFormat = b; }, - setCryptoContext: function Ha(k, f, c) { + setCryptoContext: function Aa(l, g, d) { var a; a = this; a._log.trace("Adding MasterToken", { - SequenceNumber: k.sequenceNumber, - SerialNumber: k.serialNumber, - Expiration: k.expiration.getTime() + SequenceNumber: l.sequenceNumber, + SerialNumber: l.serialNumber, + Expiration: l.expiration.getTime() }); - Ha.base.call(this, k, f); - !c && (k = a._createKeyRequestData) && (a._log.trace("Generating new keyx request data"), k().then(function(b) { + Aa.base.call(this, l, g); + !d && (l = a._createKeyRequestData) && (a._log.trace("Generating new keyx request data"), l().then(function(b) { a._keyRequestData = b; }, function(b) { a._log.error("Unable to generate new keyx request data", "" + b); })); }, - addUserIdToken: function va(f, c) { + addUserIdToken: function sa(g, d) { this._log.trace("Adding UserIdToken", { - UserId: f, - SerialNumber: c.serialNumber, - MTSerialNumber: c.mtSerialNumber, - Expiration: c.expiration.getTime() + UserId: g, + SerialNumber: d.serialNumber, + MTSerialNumber: d.mtSerialNumber, + Expiration: d.expiration.getTime() }); - va.base.call(this, f, c); + sa.base.call(this, g, d); }, - addServiceTokens: function f(c) { - f.base.call(this, c.filter(function(a) { - return !pf[a.name]; + addServiceTokens: function g(d) { + g.base.call(this, d.filter(function(a) { + return !kf[a.name]; })); }, getUserIdTokenKeys: function() { - var f, c; - f = []; - for (c in this.userIdTokens) f.push(c); - return f; + var g, d; + g = []; + for (d in this.userIdTokens) g.push(d); + return g; }, - rekeyUserIdToken: function(f, c) { - this.userIdTokens[f] && (this.userIdTokens[c] = this.userIdTokens[f], delete this.userIdTokens[f]); + rekeyUserIdToken: function(g, d) { + this.userIdTokens[g] && (this.userIdTokens[d] = this.userIdTokens[g], delete this.userIdTokens[g]); }, getKeyRequestData: function() { return this._keyRequestData; }, - getStoreState: function(f) { - var c; - c = this; - n(f, function() { + getStoreState: function(g) { + var d; + d = this; + n(g, function() { var a; - a = c.getMasterToken(); - a ? c.getKeysForStore(a, { + a = d.getMasterToken(); + a ? d.getKeysForStore(a, { result: function(b) { - n(f, function() { - var d, h, l; - d = c.userIdTokens; - h = Object.keys(d).map(function(b) { - var g; - g = d[b]; + n(g, function() { + var c, h, k; + c = d.userIdTokens; + h = Object.keys(c).map(function(b) { + var f; + f = c[b]; return { userId: b, - userIdTokenJSON: d[b].toJSON(), - serviceTokenJSONList: c.getServiceTokens(a, g).map(Re) + userIdTokenJSON: c[b].toJSON(), + serviceTokenJSONList: d.getServiceTokens(a, f).map(Me) }; }); - b.esn = c._esn; + b.esn = d._esn; b.masterTokenJSON = a.toJSON(); b.userList = h; - l = c._keyRequestData.storeData; - l && Object.keys(l).forEach(function(a) { - b[a] = l[a]; + k = d._keyRequestData.storeData; + k && Object.keys(k).forEach(function(a) { + b[a] = k[a]; }); return b; }); }, - timeout: f.timeout, - error: f.error - }) : f.result(null); + timeout: g.timeout, + error: g.error + }) : g.result(null); }); }, - getKeysForStore: function(f, c) { + getKeysForStore: function(g, d) { var a; a = this; - n(c, function() { + n(d, function() { var b; - b = a.getCryptoContext(f); + b = a.getCryptoContext(g); b = { encryptionKey: b.encryptionKey, hmacKey: b.hmacKey }; if (b.encryptionKey && b.hmacKey) - if (a._systemKeyWrapFormat) a.wrapKeysWithSystemKey(b, c); + if (a._systemKeyWrapFormat) a.wrapKeysWithSystemKey(b, d); else return b; - else throw new A(k.INTERNAL_EXCEPTION, "Unable to get CryptoContext keys"); + else throw new G(l.INTERNAL_EXCEPTION, "Unable to get CryptoContext keys"); }); }, - wrapKeysWithSystemKey: function(f, c) { + wrapKeysWithSystemKey: function(g, d) { var a; a = this; - Dd(this._systemKeyName, { + Ad(this._systemKeyName, { result: function(b) { - n(c, function() { - var d, h, l, g; - d = f.encryptionKey; - h = f.hmacKey; - l = d[fc]; - g = h[fc]; - if (l && g) return { - wrappedEncryptionKey: l, - wrappedHmacKey: g + n(d, function() { + var c, h, k, f; + c = g.encryptionKey; + h = g.hmacKey; + k = c[fc]; + f = h[fc]; + if (k && f) return { + wrappedEncryptionKey: k, + wrappedHmacKey: f }; Promise.resolve().then(function() { - return Promise.all([ya.wrapKey(a._systemKeyWrapFormat, d, b, b.algorithm), ya.wrapKey(a._systemKeyWrapFormat, h, b, b.algorithm)]); + return Promise.all([xa.wrapKey(a._systemKeyWrapFormat, c, b, b.algorithm), xa.wrapKey(a._systemKeyWrapFormat, h, b, b.algorithm)]); }).then(function(a) { - l = ma(a[0]); - d[fc] = l; - g = ma(a[1]); - h[fc] = g; - c.result({ - wrappedEncryptionKey: l, - wrappedHmacKey: g + k = ka(a[0]); + c[fc] = k; + f = ka(a[1]); + h[fc] = f; + d.result({ + wrappedEncryptionKey: k, + wrappedHmacKey: f }); })["catch"](function(a) { - c.error(new A(k.INTERNAL_EXCEPTION, "Error wrapping key with SYSTEM key", a)); + d.error(new G(l.INTERNAL_EXCEPTION, "Error wrapping key with SYSTEM key", a)); }); }); }, - timeout: c.timeout, - error: c.error + timeout: d.timeout, + error: d.error }); }, - unwrapKeysWithSystemKey: function(f, c) { + unwrapKeysWithSystemKey: function(g, d) { var a; a = this; - Dd(this._systemKeyName, { + Ad(this._systemKeyName, { result: function(b) { - n(c, function() { - var d, h; - d = ra(f.wrappedEncryptionKey); - h = ra(f.wrappedHmacKey); + n(d, function() { + var c, h; + c = oa(g.wrappedEncryptionKey); + h = oa(g.wrappedHmacKey); Promise.resolve().then(function() { - return Promise.all([ya.unwrapKey(a._systemKeyWrapFormat, d, b, b.algorithm, jb, !1, Hb), ya.unwrapKey(a._systemKeyWrapFormat, h, b, b.algorithm, sb, !1, Qb)]); + return Promise.all([xa.unwrapKey(a._systemKeyWrapFormat, c, b, b.algorithm, qb, !1, Hb), xa.unwrapKey(a._systemKeyWrapFormat, h, b, b.algorithm, rb, !1, Qb)]); }).then(function(a) { var b; b = a[0]; a = a[1]; - b[fc] = f.wrappedEncryptionKey; - a[fc] = f.wrappedHmacKey; - c.result({ + b[fc] = g.wrappedEncryptionKey; + a[fc] = g.wrappedHmacKey; + d.result({ encryptionKey: b, hmacKey: a }); })["catch"](function(a) { - c.error(new A(k.INTERNAL_EXCEPTION, "Error unwrapping with SYSTEM key", a)); + d.error(new G(l.INTERNAL_EXCEPTION, "Error unwrapping with SYSTEM key", a)); }); }); }, - timeout: c.timeout, - error: c.error + timeout: d.timeout, + error: d.error }); }, - loadStoreState: function(f, c, a, b) { - var l, g; + loadStoreState: function(g, d, a, b) { + var k, f; - function d(b, g) { - var d; + function c(b, f) { + var c; try { - d = a.userList.slice(); + c = a.userList.slice(); } catch (u) {} - d ? function v() { + c ? function x() { var a; - a = d.shift(); - a ? Sb(c, a.userIdTokenJSON, b, { - result: function(c) { + a = c.shift(); + a ? Sb(d, a.userIdTokenJSON, b, { + result: function(f) { try { - l.addUserIdToken(a.userId, c); - h(b, c, a.serviceTokenJSONList, { - result: v, - timeout: v, - error: v + k.addUserIdToken(a.userId, f); + h(b, f, a.serviceTokenJSONList, { + result: x, + timeout: x, + error: x }); - } catch (G) { - v(); + } catch (w) { + x(); } }, - timeout: v, - error: v - }) : g.result(); - }() : g.result(); + timeout: x, + error: x + }) : f.result(); + }() : f.result(); } - function h(a, b, g, d) { + function h(a, b, f, c) { var p, m; try { - p = g.slice(); - } catch (w) {} + p = f.slice(); + } catch (y) {} if (p) { - m = l.getCryptoContext(a); - (function G() { - var g; - g = p.shift(); - g ? Ic(c, g, a, b, m, { + m = k.getCryptoContext(a); + (function w() { + var f; + f = p.shift(); + f ? Jc(d, f, a, b, m, { result: function(a) { - l.addServiceTokens([a]); - G(); + k.addServiceTokens([a]); + w(); }, timeout: function() { - G(); + w(); }, error: function() { - G(); + w(); } - }) : d.result(); + }) : c.result(); }()); - } else d.result(); + } else c.result(); } - l = this; - g = l._log; - a.esn != l._esn ? (g.error("Esn mismatch, starting fresh"), b.error()) : function(b) { - var h, v, z, w; + k = this; + f = k._log; + a.esn != k._esn ? (f.error("Esn mismatch, starting fresh"), b.error()) : function(b) { + var h, x, v, y; - function d() { + function c() { var a; - if (!h && v && z && w) { + if (!h && x && v && y) { h = !0; - a = new $a(c, v, f.esn, { - rawKey: z + a = new gb(d, x, g.esn, { + rawKey: v }, { - rawKey: w + rawKey: y }); - l.setCryptoContext(v, a, !0); - b.result(v); + k.setCryptoContext(x, a, !0); + b.result(x); } } - function m(a, c) { - g.error(a, c && "" + c); + function p(a, c) { + f.error(a, c && "" + c); h || (h = !0, b.error()); } - a.masterTokenJSON ? (Rb(c, a.masterTokenJSON, { + a.masterTokenJSON ? (Rb(d, a.masterTokenJSON, { result: function(a) { - v = a; - d(); + x = a; + c(); }, timeout: function() { - m("Timeout parsing MasterToken"); + p("Timeout parsing MasterToken"); }, error: function(a) { - m("Error parsing MasterToken", a); + p("Error parsing MasterToken", a); } - }), l._systemKeyWrapFormat ? l.unwrapKeysWithSystemKey(a, { + }), k._systemKeyWrapFormat ? k.unwrapKeysWithSystemKey(a, { result: function(a) { - z = a.encryptionKey; - w = a.hmacKey; - d(); + v = a.encryptionKey; + y = a.hmacKey; + c(); }, timeout: function() { - m("Timeout unwrapping keys"); + p("Timeout unwrapping keys"); }, error: function(a) { - m("Error unwrapping keys", a); + p("Error unwrapping keys", a); } }) : Promise.resolve().then(function() { - return ya.encrypt({ - name: jb.name, + return xa.encrypt({ + name: qb.name, iv: new Uint8Array(16) }, a.encryptionKey, new Uint8Array(1)); }).then(function(b) { - z = a.encryptionKey; + v = a.encryptionKey; })["catch"](function(a) { - m("Error loading encryptionKey"); + p("Error loading encryptionKey"); }).then(function() { - return ya.sign(sb, a.hmacKey, new Uint8Array(1)); + return xa.sign(rb, a.hmacKey, new Uint8Array(1)); }).then(function(b) { - w = a.hmacKey; - d(); + y = a.hmacKey; + c(); })["catch"](function(a) { - m("Error loading hmacKey"); - })) : m("Persisted store is corrupt"); + p("Error loading hmacKey"); + })) : p("Persisted store is corrupt"); }({ result: function(a) { - d(a, b); + c(a, b); }, timeout: b.timeout, error: b.error }); } }); - pf = { + kf = { "streaming.servicetokens.movie": !0, "streaming.servicetokens.license": !0 }; fc = "$netflix$msl$wrapsys"; - rf = nf.extend({ - init: function(f, c, a, b, d, h) { - var l, g; - l = new mc([Nb.LZW]); - g = new af(); - g.addPublicKey(c, a); - b[Fa.RSA] = new $e(g); - c = {}; - c[ab.EMAIL_PASSWORD] = new kf(); - c[ab.NETFLIXID] = new jf(); - c[ab.MDX] = new Ge(); - c[ab.SSO] = new lf(); - c[ab.SWITCH_PROFILE] = new mf(); - f = { + mf = hf.extend({ + init: function(g, d, a, b, c, h) { + var k, f; + k = new lc([Nb.LZW]); + f = new We(); + f.addPublicKey(d, a); + b[Fa.RSA] = new Ve(f); + d = {}; + d[bb.EMAIL_PASSWORD] = new ef(); + d[bb.NETFLIXID] = new df(); + d[bb.MDX] = new Ce(); + d[bb.SSO] = new ff(); + d[bb.SWITCH_PROFILE] = new gf(); + g = { _mslCryptoContext: { - value: new Ye(), + value: new Te(), writable: !0, enumerable: !1, configurable: !1 }, _capabilities: { - value: l, + value: k, writable: !1, enumerable: !1, configurable: !1 }, _entityAuthData: { - value: d, + value: c, writable: !0, enumerable: !1, configurable: !1 @@ -14762,7 +14758,7 @@ v7AA.H22 = function() { configurable: !1 }, _userAuthFactories: { - value: c, + value: d, writable: !1, enumerable: !1, configurable: !1 @@ -14774,19 +14770,19 @@ v7AA.H22 = function() { configurable: !1 }, _store: { - value: f, + value: g, writable: !1, enumerable: !1, configurable: !1 } }; - Object.defineProperties(this, f); + Object.defineProperties(this, g); }, getTime: function() { return Date.now(); }, getRandom: function() { - return new Sd(); + return new Od(); }, isPeerToPeer: function() { return !1; @@ -14794,24 +14790,24 @@ v7AA.H22 = function() { getMessageCapabilities: function() { return this._capabilities; }, - getEntityAuthenticationData: function(f, c) { - c.result(this._entityAuthData); + getEntityAuthenticationData: function(g, d) { + d.result(this._entityAuthData); }, getMslCryptoContext: function() { return this._mslCryptoContext; }, - getEntityAuthenticationFactory: function(f) { - return this._entityAuthFactories[f]; + getEntityAuthenticationFactory: function(g) { + return this._entityAuthFactories[g]; }, - getUserAuthenticationFactory: function(f) { - return this._userAuthFactories[f]; + getUserAuthenticationFactory: function(g) { + return this._userAuthFactories[g]; }, getTokenFactory: function() { return null; }, - getKeyExchangeFactory: function(f) { - return this._keyExchangeFactories.filter(function(c) { - return c.scheme == f; + getKeyExchangeFactory: function(g) { + return this._keyExchangeFactories.filter(function(d) { + return d.scheme == g; })[0]; }, getKeyExchangeFactories: function() { @@ -14821,10 +14817,10 @@ v7AA.H22 = function() { return this._store; } }); - Fd = Ae.extend({ - init: function(f, c, a, b) { - this._log = f; - this._mslContext = c; + Cd = we.extend({ + init: function(g, d, a, b) { + this._log = g; + this._mslContext = d; this._mslRequest = a; this._keyRequestData = b; }, @@ -14843,46 +14839,46 @@ v7AA.H22 = function() { getUserId: function() { return this._mslRequest.profileGuid || this._mslRequest.userId || null; }, - getUserAuthData: function(f, c, a, b) { - var d, h; - d = this._mslRequest; + getUserAuthData: function(g, d, a, b) { + var c, h; + c = this._mslRequest; h = this._mslContext; n(b, function() { - var b, c; - if (f || !d.shouldSendUserAuthData) return null; - if (d.token) { - d.email ? b = new Ie(d.email, d.password) : d.netflixId && (b = new Je(d.netflixId, d.secureNetflixId)); - c = "undefined" === typeof d.profileGuid ? null : d.profileGuid; - return new rc(d.mechanism, Ma(d.token), b, c); + var b, f; + if (g || !c.shouldSendUserAuthData) return null; + if (c.token) { + c.email ? b = new Ee(c.email, c.password) : c.netflixId && (b = new Fe(c.netflixId, c.secureNetflixId)); + f = "undefined" === typeof c.profileGuid ? null : c.profileGuid; + return new qc(c.mechanism, Oa(c.token), b, f); } - return d.email ? new pc(d.email, d.password) : d.netflixId ? new Vb(d.netflixId, d.secureNetflixId) : d.mdxControllerToken ? (b = new qc("regpairrequest", d.mdxNonce, d.mdxEncryptedPinB64, d.mdxSignature).getEncoding(), new ec(h, d.mdxPin, d.mdxControllerToken, b, d.mdxSignature)) : d.useNetflixUserAuthData ? new Vb() : d.profileGuid ? (b = d.userId, b = h.getMslStore().userIdTokens[b], new sc(b, d.profileGuid)) : a && d.sendUserAuthIfRequired ? new Vb() : null; + return c.email ? new oc(c.email, c.password) : c.netflixId ? new Vb(c.netflixId, c.secureNetflixId) : c.mdxControllerToken ? (b = new pc("regpairrequest", c.mdxNonce, c.mdxEncryptedPinB64, c.mdxSignature).getEncoding(), new ec(h, c.mdxPin, c.mdxControllerToken, b, c.mdxSignature)) : c.useNetflixUserAuthData ? new Vb() : c.profileGuid ? (b = c.userId, b = h.getMslStore().userIdTokens[b], new rc(b, c.profileGuid)) : a && c.sendUserAuthIfRequired ? new Vb() : null; }); }, getCustomer: function() { return null; }, - getKeyRequestData: function(f) { - f.result(this._mslRequest.allowTokenRefresh ? [this._keyRequestData] : []); + getKeyRequestData: function(g) { + g.result(this._mslRequest.allowTokenRefresh ? [this._keyRequestData] : []); }, - updateServiceTokens: function(f, c, a) { - var b, d, h, l, g, m; + updateServiceTokens: function(g, d, a) { + var b, c, h, k, f, p; b = this._log; - d = (this._mslRequest.serviceTokens || []).slice(); + c = (this._mslRequest.serviceTokens || []).slice(); h = this._mslContext; - c = h.getMslStore(); - l = f.builder.getMasterToken(); - g = this.getUserId(); - m = c.getUserIdToken(g); + d = h.getMslStore(); + k = g.builder.getMasterToken(); + f = this.getUserId(); + p = d.getUserIdToken(f); (function r() { - var c; - c = d.shift(); - if (c) try { - c instanceof Jb ? (f.addPrimaryServiceToken(c), r()) : Ic(h, c, l, m, null, { + var f; + f = c.shift(); + if (f) try { + f instanceof Jb ? (g.addPrimaryServiceToken(f), r()) : Jc(h, f, k, p, null, { result: function(a) { try { - f.addPrimaryServiceToken(a); - } catch (z) { - b.warn("Exception adding service token", "" + z); + g.addPrimaryServiceToken(a); + } catch (v) { + b.warn("Exception adding service token", "" + v); } r(); }, @@ -14895,18 +14891,18 @@ v7AA.H22 = function() { r(); } }); - } catch (v) { - b.warn("Exception processing service token", "" + v); + } catch (x) { + b.warn("Exception processing service token", "" + x); r(); } else a.result(!0); }()); }, - write: function(f, c, a) { + write: function(g, d, a) { var b; - b = Ma(this._mslRequest.body); - f.write(b, 0, b.length, c, { - result: function(d) { - d != b.length ? a.error(new Oa("Not all data was written to output.")) : f.flush(c, { + b = Oa(this._mslRequest.body); + g.write(b, 0, b.length, d, { + result: function(c) { + c != b.length ? a.error(new Wa("Not all data was written to output.")) : g.flush(d, { result: function() { a.result(!0); }, @@ -14927,112 +14923,112 @@ v7AA.H22 = function() { }); }, getDebugContext: function() { - this._dc || (this._dc = new sf(this._log, this._mslRequest)); + this._dc || (this._dc = new nf(this._log, this._mslRequest)); return this._dc; } }); - sf = hf.extend({ - init: function(f, c) { - this._log = f; - this._mslRequest = c; + nf = cf.extend({ + init: function(g, d) { + this._log = g; + this._mslRequest = d; }, - sentHeader: function(f) { - this._log.trace("Sent MSL header", Ed(this._mslRequest, f), f.serviceTokens && f.serviceTokens.map(Se).join("\n")); + sentHeader: function(g) { + this._log.trace("Sent MSL header", Bd(this._mslRequest, g), g.serviceTokens && g.serviceTokens.map(Ne).join("\n")); }, - receivedHeader: function(f) { - var c, a; - c = Ed(this._mslRequest, f); - a = f.errorCode; - a ? this._log.warn("Received MSL error header", c, { + receivedHeader: function(g) { + var d, a; + d = Bd(this._mslRequest, g); + a = g.errorCode; + a ? this._log.warn("Received MSL error header", d, { errorCode: a, - errorMessage: f.errorMessage, - internalCode: f.internalCode - }) : this._log.trace("Received MSL header", c); + errorMessage: g.errorMessage, + internalCode: g.internalCode + }) : this._log.trace("Received MSL header", d); } }); - Oe = { - PSK: function(f) { - return Tc(f, Fa.PSK, of , tb, md, Gc); + Ke = { + PSK: function(g) { + return Tc(g, Fa.PSK, jf, sb, ld, Hc); }, - MGK: function(f) { - return Tc(f, Fa.MGK, Ne, lb, md, Gc); + MGK: function(g) { + return Tc(g, Fa.MGK, Je, ob, ld, Hc); }, - MGK_WITH_FALLBACK: function(f) { - var c, a; - switch (f.esnPrefix) { + MGK_WITH_FALLBACK: function(g) { + var d, a; + switch (g.esnPrefix) { case "GOOGEUR001": case "GOOGLEXX01": - c = "PSK"; + d = "PSK"; break; default: - c = "MGK"; + d = "MGK"; } - a = Oe[c]; - if (!a) throw new A(k.INTERNAL_EXCEPTION, "Invalid fallback authenticationType: " + c); - return a(f); + a = Ke[d]; + if (!a) throw new G(l.INTERNAL_EXCEPTION, "Invalid fallback authenticationType: " + d); + return a(g); }, - MGK_JWE: function(f) { - return Tc(f, Fa.MGK, Ne, lb, de, ld); + MGK_JWE: function(g) { + return Tc(g, Fa.MGK, Je, ob, $d, kd); }, - JWK_RSA: function(f) { - return Uc(f, { + JWK_RSA: function(g) { + return Uc(g, { name: "RSA-OAEP", modulusLength: 2048, publicExponent: new Uint8Array([1, 0, 1]), hash: { name: "SHA-1" } - }, Hc.JWK_RSA); + }, Ic.JWK_RSA); }, - JWK_RSAES: function(f) { - return Uc(f, { + JWK_RSAES: function(g) { + return Uc(g, { name: "RSAES-PKCS1-v1_5", modulusLength: 2048, publicExponent: new Uint8Array([1, 0, 1]) - }, Hc.JWK_RSAES); + }, Ic.JWK_RSAES); }, - JWEJS_RSA: function(f) { - return Uc(f, { + JWEJS_RSA: function(g) { + return Uc(g, { name: "RSA-OAEP", modulusLength: 2048, publicExponent: new Uint8Array([1, 0, 1]) - }, Hc.JWEJS_RSA); + }, Ic.JWEJS_RSA); } }; - t.netflix = t.netflix || {}; - t.netflix.msl = { - createMslClient: function(f, c) { - var a, b, d, h, l; - a = f.log; - l = f.notifyMilestone || function() {}; + A.netflix = A.netflix || {}; + A.netflix.msl = { + createMslClient: function(g, d) { + var a, b, c, h, k; + a = g.log; + k = g.notifyMilestone || function() {}; Promise.resolve().then(function() { - if (!(Da && Da.generateKey && Da.importKey && Da.unwrapKey)) throw new A(k.INTERNAL_EXCEPTION, "No WebCrypto"); - cb = Da.generateKey({ + if (!(Ia && Ia.generateKey && Ia.importKey && Ia.unwrapKey)) throw new G(l.INTERNAL_EXCEPTION, "No WebCrypto"); + db = Ia.generateKey({ name: "AES-CBC", length: 128 - }, !0, Hb).then ? xc.V2014_02 : xc.LEGACY; - l("mslisik"); - return ya.importKey("spki", f.serverIdentityKeyData, Td, !1, ["verify"]); + }, !0, Hb).then ? yc.V2014_02 : yc.LEGACY; + k("mslisik"); + return xa.importKey("spki", g.serverIdentityKeyData, Pd, !1, ["verify"]); }).then(function(a) { - return new Promise(function(b, c) { + return new Promise(function(b, f) { Mb(a, { result: b, error: function() { - c(new A(k.KEY_IMPORT_ERROR, "Unable to create server identity verification key")); + f(new G(l.KEY_IMPORT_ERROR, "Unable to create server identity verification key")); } }); }); }).then(function(a) { b = a; - if (a = Oe[f.authenticationType]) return l("mslcc"), a(f); - throw new A(k.INTERNAL_EXCEPTION, "Invalid authenticationType: " + f.authenticationType); - }).then(function(c) { - var g; - d = new qf(a, f.esn, c.keyRequestData, c.createKeyRequestData, f.authenticationKeyNames.s, f.systemKeyWrapFormat); - h = new rf(d, f.serverIdentityId, b, c.entityAuthFactories, c.entityAuthData, c.keyExchangeFactories); - g = f.storeState; - if (g) return l("mslss"), a.info("Loading store state"), new Promise(function(a, b) { - d.loadStoreState(f, h, g, { + if (a = Ke[g.authenticationType]) return k("mslcc"), a(g); + throw new G(l.INTERNAL_EXCEPTION, "Invalid authenticationType: " + g.authenticationType); + }).then(function(f) { + var d; + c = new lf(a, g.esn, f.keyRequestData, f.createKeyRequestData, g.authenticationKeyNames.s, g.systemKeyWrapFormat); + h = new mf(c, g.serverIdentityId, b, f.entityAuthFactories, f.entityAuthData, f.keyExchangeFactories); + d = g.storeState; + if (d) return k("mslss"), a.info("Loading store state"), new Promise(function(a, b) { + c.loadStoreState(g, h, d, { result: a, timeout: a, error: a @@ -15041,121 +15037,121 @@ v7AA.H22 = function() { a.info("No store state, starting fresh"); }).then(function() { var b; - b = new Be(); - l("msldone"); - c.result(new Te(a, b, h, d, f.ErrorSubCodes)); + b = new xe(); + k("msldone"); + d.result(new Oe(a, b, h, c, g.ErrorSubCodes)); })["catch"](function(a) { - c.error(a); + d.error(a); }); }, - IHttpLocation: df, - MslIoException: Oa + IHttpLocation: Ze, + MslIoException: Wa }; - Wc = "function" == typeof Object.defineProperties ? Object.defineProperty : function(f, c, a) { + Wc = "function" == typeof Object.defineProperties ? Object.defineProperty : function(g, d, a) { if (a.get || a.set) throw new TypeError("ES3 does not support getters and setters."); - f != Array.prototype && f != Object.prototype && (f[c] = a.value); + g != Array.prototype && g != Object.prototype && (g[d] = a.value); }; - pa = "undefined" != typeof t && t === this ? this : "undefined" != typeof global && null != global ? global : this; - Xe = 0; - Va("Object.setPrototypeOf", function(f) { - return f ? f : "object" != typeof "".__proto__ ? null : function(c, a) { - c.__proto__ = a; - if (c.__proto__ !== a) throw new TypeError(c + " is not extensible"); - return c; + na = "undefined" != typeof A && A === this ? this : "undefined" != typeof global && null != global ? global : this; + Se = 0; + Va("Object.setPrototypeOf", function(g) { + return g ? g : "object" != typeof "".__proto__ ? null : function(d, a) { + d.__proto__ = a; + if (d.__proto__ !== a) throw new TypeError(d + " is not extensible"); + return d; }; }); - Va("Object.assign", function(f) { - return f ? f : function(c, a) { - var d; + Va("Object.assign", function(g) { + return g ? g : function(d, a) { + var c; for (var b = 1; b < arguments.length; b++) { - d = arguments[b]; - if (d) - for (var h in d) xb(d, h) && (c[h] = d[h]); + c = arguments[b]; + if (c) + for (var h in c) xb(c, h) && (d[h] = c[h]); } - return c; + return d; }; }); - Va("Object.getOwnPropertySymbols", function(f) { - return f ? f : function() { + Va("Object.getOwnPropertySymbols", function(g) { + return g ? g : function() { return []; }; }); - Va("Promise", function(f) { - var b, d; + Va("Promise", function(g) { + var b, c; - function c(a) { + function d(a) { var b; - this.TH = 0; - this.B4 = void 0; - this.SG = []; - b = this.cZ(); + this.$K = 0; + this.K9 = void 0; + this.UJ = []; + b = this.T1(); try { a(b.resolve, b.reject); - } catch (g) { - b.reject(g); + } catch (f) { + b.reject(f); } } function a() { - this.ks = null; + this.cu = null; } - if (f) return f; - a.prototype.Vfa = function(a) { - null == this.ks && (this.ks = [], this.VMa()); - this.ks.push(a); + if (g) return g; + a.prototype.yma = function(a) { + null == this.cu && (this.cu = [], this.eYa()); + this.cu.push(a); }; - a.prototype.VMa = function() { + a.prototype.eYa = function() { var a; a = this; - this.Wfa(function() { - a.NUa(); + this.zma(function() { + a.s6a(); }); }; - b = pa.setTimeout; - a.prototype.Wfa = function(a) { + b = na.setTimeout; + a.prototype.zma = function(a) { b(a, 0); }; - a.prototype.NUa = function() { - var a, c; - for (; this.ks && this.ks.length;) { - a = this.ks; - this.ks = []; + a.prototype.s6a = function() { + var a, f; + for (; this.cu && this.cu.length;) { + a = this.cu; + this.cu = []; for (var b = 0; b < a.length; ++b) { - c = a[b]; + f = a[b]; delete a[b]; try { - c(); - } catch (m) { - this.XMa(m); + f(); + } catch (p) { + this.gYa(p); } } } - this.ks = null; + this.cu = null; }; - a.prototype.XMa = function(a) { - this.Wfa(function() { + a.prototype.gYa = function(a) { + this.zma(function() { throw a; }); }; - c.prototype.cZ = function() { - var b, c; + d.prototype.T1 = function() { + var b, f; function a(a) { - return function(g) { - c || (c = !0, a.call(b, g)); + return function(c) { + f || (f = !0, a.call(b, c)); }; } b = this; - c = !1; + f = !1; return { - resolve: a(this.h8a), - reject: a(this.m4) + resolve: a(this.mmb), + reject: a(this.t9) }; }; - c.prototype.h8a = function(a) { + d.prototype.mmb = function(a) { var b; - if (a === this) this.m4(new TypeError("A Promise cannot resolve to itself")); - else if (a instanceof c) this.T9a(a); + if (a === this) this.t9(new TypeError("A Promise cannot resolve to itself")); + else if (a instanceof d) this.iob(a); else { a: switch (typeof a) { case "object": @@ -15167,234 +15163,185 @@ v7AA.H22 = function() { default: b = !1; } - b ? this.g8a(a) : this.qja(a); + b ? this.lmb(a) : this.Oqa(a); } }; - c.prototype.g8a = function(a) { + d.prototype.lmb = function(a) { var b; b = void 0; try { b = a.then; - } catch (g) { - this.m4(g); + } catch (f) { + this.t9(f); return; } - "function" == typeof b ? this.U9a(b, a) : this.qja(a); + "function" == typeof b ? this.job(b, a) : this.Oqa(a); }; - c.prototype.m4 = function(a) { - this.ora(2, a); + d.prototype.t9 = function(a) { + this.jAa(2, a); }; - c.prototype.qja = function(a) { - this.ora(1, a); + d.prototype.Oqa = function(a) { + this.jAa(1, a); }; - c.prototype.ora = function(a, b) { - if (0 != this.TH) throw Error("Cannot settle(" + a + ", " + b | "): Promise already settled in state" + this.TH); - this.TH = a; - this.B4 = b; - this.OUa(); + d.prototype.jAa = function(a, b) { + if (0 != this.$K) throw Error("Cannot settle(" + a + ", " + b | "): Promise already settled in state" + this.$K); + this.$K = a; + this.K9 = b; + this.t6a(); }; - c.prototype.OUa = function() { - if (null != this.SG) { - for (var a = this.SG, b = 0; b < a.length; ++b) a[b].call(), a[b] = null; - this.SG = null; + d.prototype.t6a = function() { + if (null != this.UJ) { + for (var a = this.UJ, b = 0; b < a.length; ++b) a[b].call(), a[b] = null; + this.UJ = null; } }; - d = new a(); - c.prototype.T9a = function(a) { + c = new a(); + d.prototype.iob = function(a) { var b; - b = this.cZ(); - a.vM(b.resolve, b.reject); + b = this.T1(); + a.RP(b.resolve, b.reject); }; - c.prototype.U9a = function(a, b) { - var c; - c = this.cZ(); + d.prototype.job = function(a, b) { + var f; + f = this.T1(); try { - a.call(b, c.resolve, c.reject); - } catch (m) { - c.reject(m); + a.call(b, f.resolve, f.reject); + } catch (p) { + f.reject(p); } }; - c.prototype.then = function(a, b) { - var d, p, r; + d.prototype.then = function(a, b) { + var c, m, r; - function g(a, b) { + function f(a, b) { return "function" == typeof a ? function(b) { try { - d(a(b)); - } catch (w) { - p(w); + c(a(b)); + } catch (y) { + m(y); } } : b; } - r = new c(function(a, b) { - d = a; - p = b; + r = new d(function(a, b) { + c = a; + m = b; }); - this.vM(g(a, d), g(b, p)); + this.RP(f(a, c), f(b, m)); return r; }; - c.prototype["catch"] = function(a) { + d.prototype["catch"] = function(a) { return this.then(void 0, a); }; - c.prototype.vM = function(a, b) { - var m; + d.prototype.RP = function(a, b) { + var d; - function c() { - switch (m.TH) { + function f() { + switch (d.$K) { case 1: - a(m.B4); + a(d.K9); break; case 2: - b(m.B4); + b(d.K9); break; default: - throw Error("Unexpected state: " + m.TH); + throw Error("Unexpected state: " + d.$K); } } - m = this; - null == this.SG ? d.Vfa(c) : this.SG.push(function() { - d.Vfa(c); + d = this; + null == this.UJ ? c.yma(f) : this.UJ.push(function() { + c.yma(f); }); }; - c.resolve = function(a) { - return a instanceof c ? a : new c(function(b) { + d.resolve = function(a) { + return a instanceof d ? a : new d(function(b) { b(a); }); }; - c.reject = function(a) { - return new c(function(b, c) { - c(a); + d.reject = function(a) { + return new d(function(b, f) { + f(a); }); }; - c.race = function(a) { - return new c(function(b, g) { - for (var d = Na(a), p = d.next(); !p.done; p = d.next()) c.resolve(p.value).vM(b, g); + d.race = function(a) { + return new d(function(b, f) { + for (var c = za(a), m = c.next(); !m.done; m = c.next()) d.resolve(m.value).RP(b, f); }); }; - c.all = function(a) { - var b, g; - b = Na(a); - g = b.next(); - return g.done ? c.resolve([]) : new c(function(a, d) { - var m, h; + d.all = function(a) { + var b, f; + b = za(a); + f = b.next(); + return f.done ? d.resolve([]) : new d(function(a, c) { + var m, k; function p(b) { - return function(c) { - m[b] = c; - h--; - 0 == h && a(m); + return function(f) { + m[b] = f; + k--; + 0 == k && a(m); }; } m = []; - h = 0; - do m.push(void 0), h++, c.resolve(g.value).vM(p(m.length - 1), d), g = b.next(); while (!g.done); + k = 0; + do m.push(void 0), k++, d.resolve(f.value).RP(p(m.length - 1), c), f = b.next(); while (!f.done); }); }; - c.$jscomp$new$AsyncExecutor = function() { + d.$jscomp$new$AsyncExecutor = function() { return new a(); }; - return c; + return d; }); - Va("Array.prototype.keys", function(f) { - return f ? f : function() { - return Yc(this, function(c) { - return c; + Va("Array.prototype.keys", function(g) { + return g ? g : function() { + return Xc(this, function(d) { + return d; }); }; }); - Va("Math.tanh", function(f) { - return f ? f : function(c) { + Va("Math.tanh", function(g) { + return g ? g : function(d) { var a; - c = Number(c); - if (0 === c) return c; - a = Math.exp(-2 * Math.abs(c)); + d = Number(d); + if (0 === d) return d; + a = Math.exp(-2 * Math.abs(d)); a = (1 - a) / (1 + a); - return 0 > c ? -a : a; - }; - }); - Va("Array.prototype.find", function(f) { - return f ? f : function(c, a) { - return Ld(this, c, a).RR; - }; - }); - Va("Array.prototype.entries", function(f) { - return f ? f : function() { - return Yc(this, function(c, a) { - return [c, a]; - }); + return 0 > d ? -a : a; }; }); - Va("Array.prototype.values", function(f) { - return f ? f : function() { - return Yc(this, function(c, a) { - return a; - }); - }; - }); - Va("Array.prototype.fill", function(f) { - return f ? f : function(c, a, b) { - var d; - d = this.length || 0; - 0 > a && (a = Math.max(0, d + a)); - if (null == b || b > d) b = d; - b = Number(b); - 0 > b && (b = Math.max(0, d + b)); - for (a = Number(a || 0); a < b; a++) this[a] = c; - return this; - }; - }); - Va("Array.prototype.findIndex", function(f) { - return f ? f : function(c, a) { - return Ld(this, c, a).Mh; - }; - }); - Va("String.prototype.startsWith", function(f) { - return f ? f : function(c, a) { - var b, d, h; - b = Md(this, c, "startsWith"); - c += ""; - d = b.length; - h = c.length; - a = Math.max(0, Math.min(a | 0, b.length)); - for (var l = 0; l < h && a < d;) - if (b[a++] != c[l++]) return !1; - return l >= h; - }; - }); - Va("WeakMap", function(f) { - var d, h; + Va("WeakMap", function(g) { + var c, h; - function c(a) { - this.QF = (h += Math.random() + 1).toString(); + function d(a) { + this.OI = (h += Math.random() + 1).toString(); if (a) { - Ua(); - Za(); - a = Na(a); + La(); + Ya(); + a = za(a); for (var b; !(b = a.next()).done;) b = b.value, this.set(b[0], b[1]); } } function a(a) { - xb(a, d) || Wc(a, d, { + xb(a, c) || Wc(a, c, { value: {} }); } function b(b) { - var c; - c = Object[b]; - c && (Object[b] = function(b) { + var f; + f = Object[b]; + f && (Object[b] = function(b) { a(b); - return c(b); + return f(b); }); } if (function() { var a, b, c; - if (!f || !Object.seal) return !1; + if (!g || !Object.seal) return !1; try { a = Object.seal({}); b = Object.seal({}); - c = new f([ + c = new g([ [a, 2], [b, 3] ]); @@ -15402,52 +15349,52 @@ v7AA.H22 = function() { c["delete"](a); c.set(b, 4); return !c.has(a) && 4 == c.get(b); - } catch (p) { + } catch (m) { return !1; } - }()) return f; - d = "$jscomp_hidden_" + Math.random().toString().substring(2); + }()) return g; + c = "$jscomp_hidden_" + Math.random().toString().substring(2); b("freeze"); b("preventExtensions"); b("seal"); h = 0; - c.prototype.set = function(b, c) { + d.prototype.set = function(b, f) { a(b); - if (!xb(b, d)) throw Error("WeakMap key fail: " + b); - b[d][this.QF] = c; + if (!xb(b, c)) throw Error("WeakMap key fail: " + b); + b[c][this.OI] = f; return this; }; - c.prototype.get = function(a) { - return xb(a, d) ? a[d][this.QF] : void 0; + d.prototype.get = function(a) { + return xb(a, c) ? a[c][this.OI] : void 0; }; - c.prototype.has = function(a) { - return xb(a, d) && xb(a[d], this.QF); + d.prototype.has = function(a) { + return xb(a, c) && xb(a[c], this.OI); }; - c.prototype["delete"] = function(a) { - return xb(a, d) && xb(a[d], this.QF) ? delete a[d][this.QF] : !1; + d.prototype["delete"] = function(a) { + return xb(a, c) && xb(a[c], this.OI) ? delete a[c][this.OI] : !1; }; - return c; + return d; }); - Va("Map", function(f) { - var h, l; + Va("Map", function(g) { + var h, k; - function c() { + function d() { var a; a = {}; - return a.Bq = a.next = a.head = a; + return a.Ih = a.next = a.head = a; } function a(a, b) { - var c; - c = a.gq; - return Kd(function() { - if (c) { - for (; c.head != a.gq;) c = c.Bq; - for (; c.next != c.head;) return c = c.next, { + var f; + f = a.Tr; + return Hd(function() { + if (f) { + for (; f.head != a.Tr;) f = f.Ih; + for (; f.next != f.head;) return f = f.next, { done: !1, - value: b(c) + value: b(f) }; - c = null; + f = null; } return { done: !0, @@ -15457,45 +15404,45 @@ v7AA.H22 = function() { } function b(a, b) { - var c, g, d; - c = b && typeof b; - "object" == c || "function" == c ? h.has(b) ? c = h.get(b) : (c = "" + ++l, h.set(b, c)) : c = "p_" + b; - g = a.Ds[c]; - if (g && xb(a.Ds, c)) - for (a = 0; a < g.length; a++) { - d = g[a]; + var f, c, d; + f = b && typeof b; + "object" == f || "function" == f ? h.has(b) ? f = h.get(b) : (f = "" + ++k, h.set(b, f)) : f = "p_" + b; + c = a.uu[f]; + if (c && xb(a.uu, f)) + for (a = 0; a < c.length; a++) { + d = c[a]; if (b !== b && d.key !== d.key || b === d.key) return { - id: c, - list: g, + id: f, + list: c, index: a, Od: d }; } return { - id: c, - list: g, + id: f, + list: c, index: -1, Od: void 0 }; } - function d(a) { - this.Ds = {}; - this.gq = c(); + function c(a) { + this.uu = {}; + this.Tr = d(); this.size = 0; if (a) { - a = Na(a); + a = za(a); for (var b; !(b = a.next()).done;) b = b.value, this.set(b[0], b[1]); } } if (function() { var a, b, c, d; - if (!f || !f.prototype.entries || "function" != typeof Object.seal) return !1; + if (!g || !g.prototype.entries || "function" != typeof Object.seal) return !1; try { a = Object.seal({ x: 4 }); - b = new f(Na([ + b = new g(za([ [a, "s"] ])); if ("s" != b.get(a) || 1 != b.size || b.get({ @@ -15511,422 +15458,467 @@ v7AA.H22 = function() { } catch (u) { return !1; } - }()) return f; - Ua(); - Za(); + }()) return g; + La(); + Ya(); h = new WeakMap(); - d.prototype.set = function(a, c) { - var g; - g = b(this, a); - g.list || (g.list = this.Ds[g.id] = []); - g.Od ? g.Od.value = c : (g.Od = { - next: this.gq, - Bq: this.gq.Bq, - head: this.gq, + c.prototype.set = function(a, c) { + var f; + f = b(this, a); + f.list || (f.list = this.uu[f.id] = []); + f.Od ? f.Od.value = c : (f.Od = { + next: this.Tr, + Ih: this.Tr.Ih, + head: this.Tr, key: a, value: c - }, g.list.push(g.Od), this.gq.Bq.next = g.Od, this.gq.Bq = g.Od, this.size++); + }, f.list.push(f.Od), this.Tr.Ih.next = f.Od, this.Tr.Ih = f.Od, this.size++); return this; }; - d.prototype["delete"] = function(a) { + c.prototype["delete"] = function(a) { a = b(this, a); - return a.Od && a.list ? (a.list.splice(a.index, 1), a.list.length || delete this.Ds[a.id], a.Od.Bq.next = a.Od.next, a.Od.next.Bq = a.Od.Bq, a.Od.head = null, this.size--, !0) : !1; + return a.Od && a.list ? (a.list.splice(a.index, 1), a.list.length || delete this.uu[a.id], a.Od.Ih.next = a.Od.next, a.Od.next.Ih = a.Od.Ih, a.Od.head = null, this.size--, !0) : !1; }; - d.prototype.clear = function() { - this.Ds = {}; - this.gq = this.gq.Bq = c(); + c.prototype.clear = function() { + this.uu = {}; + this.Tr = this.Tr.Ih = d(); this.size = 0; }; - d.prototype.has = function(a) { + c.prototype.has = function(a) { return !!b(this, a).Od; }; - d.prototype.get = function(a) { + c.prototype.get = function(a) { return (a = b(this, a).Od) && a.value; }; - d.prototype.entries = function() { + c.prototype.entries = function() { return a(this, function(a) { return [a.key, a.value]; }); }; - d.prototype.keys = function() { + c.prototype.keys = function() { return a(this, function(a) { return a.key; }); }; - d.prototype.values = function() { + c.prototype.values = function() { return a(this, function(a) { return a.value; }); }; - d.prototype.forEach = function(a, b) { - for (var c = this.entries(), g; !(g = c.next()).done;) g = g.value, a.call(b, g[1], g[0], this); - }; - d.prototype[Symbol.iterator] = d.prototype.entries; - l = 0; - return d; - }); - Va("String.prototype.endsWith", function(f) { - return f ? f : function(c, a) { - var b; - b = Md(this, c, "endsWith"); - c += ""; - void 0 === a && (a = b.length); - a = Math.max(0, Math.min(a | 0, b.length)); - for (var d = c.length; 0 < d && 0 < a;) - if (b[--a] != c[--d]) return !1; - return 0 >= d; + c.prototype.forEach = function(a, b) { + for (var f = this.entries(), c; !(c = f.next()).done;) c = c.value, a.call(b, c[1], c[0], this); }; + c.prototype[Symbol.iterator] = c.prototype.entries; + k = 0; + return c; }); - Va("Set", function(f) { - function c(a) { - this.ho = new Map(); + Va("Set", function(g) { + function d(a) { + this.Dp = new Map(); if (a) { - a = Na(a); + a = za(a); for (var b; !(b = a.next()).done;) this.add(b.value); } - this.size = this.ho.size; + this.size = this.Dp.size; } if (function() { - var a, b, c, h; - if (!f || !f.prototype.entries || "function" != typeof Object.seal) return !1; + var a, b, c, d; + if (!g || !g.prototype.entries || "function" != typeof Object.seal) return !1; try { a = Object.seal({ x: 4 }); - b = new f(Na([a])); + b = new g(za([a])); if (!b.has(a) || 1 != b.size || b.add(a) != b || 1 != b.size || b.add({ x: 4 }) != b || 2 != b.size) return !1; c = b.entries(); - h = c.next(); - if (h.done || h.value[0] != a || h.value[1] != a) return !1; - h = c.next(); - return h.done || h.value[0] == a || 4 != h.value[0].x || h.value[1] != h.value[0] ? !1 : c.next().done; - } catch (l) { + d = c.next(); + if (d.done || d.value[0] != a || d.value[1] != a) return !1; + d = c.next(); + return d.done || d.value[0] == a || 4 != d.value[0].x || d.value[1] != d.value[0] ? !1 : c.next().done; + } catch (k) { return !1; } - }()) return f; - Ua(); - Za(); - c.prototype.add = function(a) { - this.ho.set(a, a); - this.size = this.ho.size; + }()) return g; + La(); + Ya(); + d.prototype.add = function(a) { + this.Dp.set(a, a); + this.size = this.Dp.size; return this; }; - c.prototype["delete"] = function(a) { - a = this.ho["delete"](a); - this.size = this.ho.size; + d.prototype["delete"] = function(a) { + a = this.Dp["delete"](a); + this.size = this.Dp.size; return a; }; - c.prototype.clear = function() { - this.ho.clear(); + d.prototype.clear = function() { + this.Dp.clear(); this.size = 0; }; - c.prototype.has = function(a) { - return this.ho.has(a); + d.prototype.has = function(a) { + return this.Dp.has(a); }; - c.prototype.entries = function() { - return this.ho.entries(); + d.prototype.entries = function() { + return this.Dp.entries(); }; - c.prototype.values = function() { - return this.ho.values(); + d.prototype.values = function() { + return this.Dp.values(); }; - c.prototype[Symbol.iterator] = c.prototype.values; - c.prototype.forEach = function(a, b) { + d.prototype[Symbol.iterator] = d.prototype.values; + d.prototype.forEach = function(a, b) { var c; c = this; - this.ho.forEach(function(d) { + this.Dp.forEach(function(d) { return a.call(b, d, d, c); }); }; - return c; + return d; + }); + Va("String.prototype.includes", function(g) { + return g ? g : function(d, a) { + return -1 !== vc(this, d, "includes").indexOf(d, a || 0); + }; + }); + Va("Number.isNaN", function(g) { + return g ? g : function(d) { + return "number" === typeof d && isNaN(d); + }; + }); + Va("Array.prototype.find", function(g) { + return g ? g : function(d, a) { + return Id(this, d, a).KV; + }; + }); + Va("Number.MAX_SAFE_INTEGER", function() { + return 9007199254740991; + }); + Va("Array.prototype.entries", function(g) { + return g ? g : function() { + return Xc(this, function(d, a) { + return [d, a]; + }); + }; + }); + Va("String.prototype.repeat", function(g) { + return g ? g : function(d) { + var a; + a = vc(this, null, "repeat"); + if (0 > d || 1342177279 < d) throw new RangeError("Invalid count value"); + d |= 0; + for (var b = ""; d;) + if (d & 1 && (b += a), d >>>= 1) a += a; + return b; + }; + }); + Va("String.prototype.endsWith", function(g) { + return g ? g : function(d, a) { + var b; + b = vc(this, d, "endsWith"); + d += ""; + void 0 === a && (a = b.length); + a = Math.max(0, Math.min(a | 0, b.length)); + for (var c = d.length; 0 < c && 0 < a;) + if (b[--a] != d[--c]) return !1; + return 0 >= c; + }; }); - (function(f) { + Va("Array.prototype.findIndex", function(g) { + return g ? g : function(d, a) { + return Id(this, d, a).gi; + }; + }); + Va("String.prototype.startsWith", function(g) { + return g ? g : function(d, a) { + var b, c, h; + b = vc(this, d, "startsWith"); + d += ""; + c = b.length; + h = d.length; + a = Math.max(0, Math.min(a | 0, b.length)); + for (var k = 0; k < h && a < c;) + if (b[a++] != d[k++]) return !1; + return k >= h; + }; + }); + Va("Array.prototype.values", function(g) { + return g ? g : function() { + return Xc(this, function(d, a) { + return a; + }); + }; + }); + Va("Array.prototype.fill", function(g) { + return g ? g : function(d, a, b) { + var c; + c = this.length || 0; + 0 > a && (a = Math.max(0, c + a)); + if (null == b || b > c) b = c; + b = Number(b); + 0 > b && (b = Math.max(0, c + b)); + for (a = Number(a || 0); a < b; a++) this[a] = d; + return this; + }; + }); + (function(g) { var a; - function c(b) { - var d; - if (a[b]) return a[b].P; - d = a[b] = { - Mh: b, - g0a: !1, - P: {} + function d(b) { + var c; + if (a[b]) return a[b].M; + c = a[b] = { + gi: b, + Wcb: !1, + M: {} }; - f[b].call(d.P, d, d.P, c); - d.g0a = !0; - return d.P; + g[b].call(c.M, c, c.M, d); + c.Wcb = !0; + return c.M; } a = {}; - c.Jpb = f; - c.plb = a; - c.d = function(a, d, h) { - c.L3a(a, d) || Object.defineProperty(a, d, { + d.cGb = g; + d.aCb = a; + d.d = function(a, c, h) { + d.bhb(a, c) || Object.defineProperty(a, c, { configurable: !1, enumerable: !0, get: h }); }; - c.r = function(a) { + d.r = function(a) { Object.defineProperty(a, "__esModule", { value: !0 }); }; - c.n = function(a) { + d.n = function(a) { var b; - b = a && a.hca ? function() { + b = a && a.kia ? function() { return a["default"]; } : function() { return a; }; - c.d(b, "a", b); + d.d(b, "a", b); return b; }; - c.L3a = function(a, c) { + d.bhb = function(a, c) { return Object.prototype.hasOwnProperty.call(a, c); }; - c.p = ""; - return c(c.msb = 906); - }([function(f, c, a) { - Object.defineProperty(c, "__esModule", { - value: !0 - }); - f = a(40); - c.rgb = f; - f = a(903); - c.eC = f.eC; - f = a(78); - c.am = f.am; - c.Pg = f.Pg; - c.$o = f.$o; - f = a(887); - c.S6 = f.S6; - c.dc = f.dc; - f = a(886); - c.N = f.N; - f = a(885); - c.yR = f.yR; - f = a(884); - c.Kna = f.Kna; - f = a(419); - c.j = f.j; - c.HT = f.HT; - f = a(883); - c.optional = f.optional; - f = a(882); - c.Uh = f.Uh; - f = a(881); - c.tt = f.tt; - f = a(880); - c.hI = f.hI; - f = a(879); - c.bpa = f.bpa; - f = a(421); - c.UT = f.UT; - f = a(99); - c.id = f.id; - f = a(86); - c.Fs = f.Fs; - f = a(416); - c.usa = f.usa; - c.N5 = f.N5; - c.Lna = f.Lna; - c.ysa = f.ysa; - f = a(132); - c.$z = f.$z; - a = a(878); - c.Jna = a.Jna; - }, function(f, c, a) { - var T, ca; + d.p = ""; + return d(d.$Hb = 1036); + }([function(g, d, a) { + function b() { + b = Object.assign || function(a) { + for (var b, f = 1, c = arguments.length; f < c; f++) { + b = arguments[f]; + for (var d in b) Object.prototype.hasOwnProperty.call(b, d) && (a[d] = b[d]); + } + return a; + }; + return b.apply(this, arguments); + } - function b(a, b) { - function c() { + function c(a, b) { + c = Object.setPrototypeOf || { + __proto__: [] + } + instanceof Array && function(a, b) { + a.__proto__ = b; + } || function(a, b) { + for (var f in b) b.hasOwnProperty(f) && (a[f] = b[f]); + }; + return c(a, b); + } + + function h(a, b) { + function f() { this.constructor = a; } - T(a, b); - a.prototype = null === b ? Object.create(b) : (c.prototype = b.prototype, new c()); + c(a, b); + a.prototype = null === b ? Object.create(b) : (f.prototype = b.prototype, new f()); } - function d(a, b) { - var c, g, d; - c = {}; - for (g in a) Object.prototype.hasOwnProperty.call(a, g) && 0 > b.indexOf(g) && (c[g] = a[g]); + function k(a, b) { + var f, c, d; + f = {}; + for (c in a) Object.prototype.hasOwnProperty.call(a, c) && 0 > b.indexOf(c) && (f[c] = a[c]); if (null != a && "function" === typeof Object.getOwnPropertySymbols) { d = 0; - for (g = Object.getOwnPropertySymbols(a); d < g.length; d++) 0 > b.indexOf(g[d]) && (c[g[d]] = a[g[d]]); + for (c = Object.getOwnPropertySymbols(a); d < c.length; d++) 0 > b.indexOf(c[d]) && Object.prototype.propertyIsEnumerable.call(a, c[d]) && (f[c[d]] = a[c[d]]); } - return c; + return f; } - function h(a, b, c, g) { + function f(a, b, f, c) { var d, p, m; d = arguments.length; - p = 3 > d ? b : null === g ? g = Object.getOwnPropertyDescriptor(b, c) : g; - if ("object" === typeof Reflect && "function" === typeof Reflect.Fs) p = Reflect.Fs(a, b, c, g); + p = 3 > d ? b : null === c ? c = Object.getOwnPropertyDescriptor(b, f) : c; + if ("object" === typeof Reflect && "function" === typeof Reflect.vu) p = Reflect.vu(a, b, f, c); else for (var r = a.length - 1; 0 <= r; r--) - if (m = a[r]) p = (3 > d ? m(p) : 3 < d ? m(b, c, p) : m(b, c)) || p; - return 3 < d && p && Object.defineProperty(b, c, p), p; + if (m = a[r]) p = (3 > d ? m(p) : 3 < d ? m(b, f, p) : m(b, f)) || p; + return 3 < d && p && Object.defineProperty(b, f, p), p; } - function l(a, b) { - return function(c, g) { - b(c, g, a); + function p(a, b) { + return function(f, c) { + b(f, c, a); }; } - function g(a, b) { - if ("object" === typeof Reflect && "function" === typeof Reflect.Uc) return Reflect.Uc(a, b); + function m(a, b) { + if ("object" === typeof Reflect && "function" === typeof Reflect.Cc) return Reflect.Cc(a, b); } - function m(a, b, c, g) { - return new(c || (c = Promise))(function(d, p) { + function r(a, b, f, c) { + return new(f || (f = Promise))(function(d, p) { function m(a) { try { - h(g.next(a)); - } catch (ha) { - p(ha); + k(c.next(a)); + } catch (Q) { + p(Q); } } function r(a) { try { - h(g["throw"](a)); - } catch (ha) { - p(ha); + k(c["throw"](a)); + } catch (Q) { + p(Q); } } - function h(a) { - a.done ? d(a.value) : new c(function(b) { + function k(a) { + a.done ? d(a.value) : new f(function(b) { b(a.value); }).then(m, r); } - h((g = g.apply(a, b || [])).next()); + k((c = c.apply(a, b || [])).next()); }); } - function p(a, b) { - var d, p, m, r, h; + function u(a, b) { + var d, p, m, r, k; - function c(a) { + function f(a) { return function(b) { - return g([a, b]); + return c([a, b]); }; } - function g(c) { + function c(f) { if (p) throw new TypeError("Generator is already executing."); for (; d;) try { - if (p = 1, m && (r = m[c[0] & 2 ? "return" : c[0] ? "throw" : "next"]) && !(r = r.call(m, c[1])).done) return r; - if (m = 0, r) c = [0, r.value]; - switch (c[0]) { + if (p = 1, m && (r = f[0] & 2 ? m["return"] : f[0] ? m["throw"] || ((r = m["return"]) && r.call(m), 0) : m.next) && !(r = r.call(m, f[1])).done) return r; + if (m = 0, r) f = [f[0] & 2, r.value]; + switch (f[0]) { case 0: case 1: - r = c; + r = f; break; case 4: return d.label++, { - value: c[1], + value: f[1], done: !1 }; case 5: d.label++; - m = c[1]; - c = [0]; + m = f[1]; + f = [0]; continue; case 7: - c = d.Kw.pop(); - d.wx.pop(); + f = d.Vy.pop(); + d.Jz.pop(); continue; default: - if (!(r = d.wx, r = 0 < r.length && r[r.length - 1]) && (6 === c[0] || 2 === c[0])) { + if (!(r = d.Jz, r = 0 < r.length && r[r.length - 1]) && (6 === f[0] || 2 === f[0])) { d = 0; continue; } - if (3 === c[0] && (!r || c[1] > r[0] && c[1] < r[3])) d.label = c[1]; - else if (6 === c[0] && d.label < r[1]) d.label = r[1], r = c; - else if (r && d.label < r[2]) d.label = r[2], d.Kw.push(c); + if (3 === f[0] && (!r || f[1] > r[0] && f[1] < r[3])) d.label = f[1]; + else if (6 === f[0] && d.label < r[1]) d.label = r[1], r = f; + else if (r && d.label < r[2]) d.label = r[2], d.Vy.push(f); else { - r[2] && d.Kw.pop(); - d.wx.pop(); + r[2] && d.Vy.pop(); + d.Jz.pop(); continue; } } - c = b.call(a, d); - } catch (ha) { - c = [6, ha]; + f = b.call(a, d); + } catch (Q) { + f = [6, Q]; m = 0; } finally { p = r = 0; } - if (c[0] & 5) throw c[1]; + if (f[0] & 5) throw f[1]; return { - value: c[0] ? c[1] : void 0, + value: f[0] ? f[1] : void 0, done: !0 }; } d = { label: 0, - ara: function() { + LU: function() { if (r[0] & 1) throw r[1]; return r[1]; }, - wx: [], - Kw: [] - }; - Ua(); - Ua(); - Za(); - return h = { - next: c(0), - "throw": c(1), - "return": c(2) - }, "function" === typeof Symbol && (h[Symbol.iterator] = function() { + Jz: [], + Vy: [] + }; + La(); + La(); + Ya(); + return k = { + next: f(0), + "throw": f(1), + "return": f(2) + }, "function" === typeof Symbol && (k[Symbol.iterator] = function() { return this; - }), h; + }), k; } - function r(a, b) { - for (var c in a) b.hasOwnProperty(c) || (b[c] = a[c]); + function x(a, b) { + for (var f in a) b.hasOwnProperty(f) || (b[f] = a[f]); } - function u(a) { - var b, c; - Ua(); - Ua(); - Za(); + function v(a) { + var b, f; + La(); + La(); + Ya(); b = "function" === typeof Symbol && a[Symbol.iterator]; - c = 0; + f = 0; return b ? b.call(a) : { next: function() { - a && c >= a.length && (a = void 0); + a && f >= a.length && (a = void 0); return { - value: a && a[c++], + value: a && a[f++], done: !a }; } }; } - function v(a, b) { - var c, g, d, p; - Ua(); - Ua(); - Za(); - c = "function" === typeof Symbol && a[Symbol.iterator]; - if (!c) return a; - a = c.call(a); + function y(a, b) { + var f, c, d, p; + La(); + La(); + Ya(); + f = "function" === typeof Symbol && a[Symbol.iterator]; + if (!f) return a; + a = f.call(a); d = []; try { for (; - (void 0 === b || 0 < b--) && !(g = a.next()).done;) d.push(g.value); - } catch (S) { + (void 0 === b || 0 < b--) && !(c = a.next()).done;) d.push(c.value); + } catch (X) { p = { - error: S + error: X }; } finally { try { - g && !g.done && (c = a["return"]) && c.call(a); + c && !c.done && (f = a["return"]) && f.call(a); } finally { if (p) throw p.error; } @@ -15934,33 +15926,40 @@ v7AA.H22 = function() { return d; } - function z() { - for (var a = [], b = 0; b < arguments.length; b++) a = a.concat(v(arguments[b])); + function w() { + for (var a = [], b = 0; b < arguments.length; b++) a = a.concat(y(arguments[b])); return a; } - function w(a) { - return this instanceof w ? (this.RR = a, this) : new w(a); + function D() { + for (var a = 0, b = 0, f = arguments.length; b < f; b++) a += arguments[b].length; + for (var a = Array(a), c = 0, b = 0; b < f; b++) + for (var d = arguments[b], p = 0, m = d.length; p < m; p++, c++) a[c] = d[p]; + return a; } - function k(a, b, c) { - var h, l, u; + function z(a) { + return this instanceof z ? (this.KV = a, this) : new z(a); + } - function g(a) { - h[a] && (l[a] = function(b) { - return new Promise(function(c, g) { - 1 < u.push([a, b, c, g]) || d(a, b); + function E(a, b, f) { + var k, h, g; + + function c(a) { + k[a] && (h[a] = function(b) { + return new Promise(function(f, c) { + 1 < g.push([a, b, f, c]) || d(a, b); }); }); } function d(a, b) { - var c; + var f; try { - c = h[a](b); - c.value instanceof w ? Promise.resolve(c.value.RR).then(p, m) : r(u[0][2], c); - } catch (ka) { - r(u[0][3], ka); + f = k[a](b); + f.value instanceof z ? Promise.resolve(f.value.KV).then(p, m) : r(g[0][2], f); + } catch (va) { + r(g[0][3], va); } } @@ -15973,892 +15972,1082 @@ v7AA.H22 = function() { } function r(a, b) { - (a(b), u.shift(), u.length) && d(u[0][0], u[0][1]); - } - Ua(); - if (!Symbol.EX) throw new TypeError("Symbol.asyncIterator is not defined."); - h = c.apply(a, b || []); - u = []; - Ua(); - return l = {}, g("next"), g("throw"), g("return"), l[Symbol.EX] = function() { + (a(b), g.shift(), g.length) && d(g[0][0], g[0][1]); + } + La(); + if (!Symbol.FP) throw new TypeError("Symbol.asyncIterator is not defined."); + k = f.apply(a, b || []); + g = []; + La(); + return h = {}, c("next"), c("throw"), c("return"), h[Symbol.FP] = function() { return this; - }, l; + }, h; } - function x(a) { - var c, g; + function l(a) { + var f, c; function b(b, d) { - a[b] && (c[b] = function(c) { - return (g = !g) ? { - value: w(a[b](c)), + f[b] = a[b] ? function(f) { + return (c = !c) ? { + value: z(a[b](f)), done: "return" === b - } : d ? d(c) : c; - }); + } : d ? d(f) : f; + } : d; } - Ua(); - Za(); - return c = {}, b("next"), b("throw", function(a) { + La(); + Ya(); + return f = {}, b("next"), b("throw", function(a) { throw a; - }), b("return"), c[Symbol.iterator] = function() { + }), b("return"), f[Symbol.iterator] = function() { return this; - }, c; + }, f; } - function y(a) { - var b; - Ua(); - if (!Symbol.EX) throw new TypeError("Symbol.asyncIterator is not defined."); - Ua(); - b = a[Symbol.EX]; - Ua(); - Za(); - return b ? b.call(a) : "function" === typeof u ? u(a) : a[Symbol.iterator](); + function F(a) { + var c, d; + + function b(b) { + d[b] = a[b] && function(c) { + return new Promise(function(d, p) { + c = a[b](c); + f(d, p, c.done, c.value); + }); + }; + } + + function f(a, b, f, c) { + Promise.resolve(c).then(function(b) { + a({ + value: b, + done: f + }); + }, b); + } + La(); + if (!Symbol.FP) throw new TypeError("Symbol.asyncIterator is not defined."); + La(); + c = a[Symbol.FP]; + La(); + Ya(); + La(); + return c ? c.call(a) : (a = "function" === typeof v ? v(a) : a[Symbol.iterator](), d = {}, b("next"), b("throw"), b("return"), d[Symbol.FP] = function() { + return this; + }, d); } - function C(a, b) { + function la(a, b) { Object.defineProperty ? Object.defineProperty(a, "raw", { value: b }) : a.raw = b; return a; } - function F(a) { + function N(a) { var b; - if (a && a.hca) return a; + if (a && a.kia) return a; b = {}; if (null != a) - for (var c in a) Object.hasOwnProperty.call(a, c) && (b[c] = a[c]); + for (var f in a) Object.hasOwnProperty.call(a, f) && (b[f] = a[f]); b["default"] = a; return b; } - function N(a) { - return a && a.hca ? a : { + function O(a) { + return a && a.kia ? a : { "default": a }; } - a.r(c); - a.d(c, "__extends", function() { - return b; - }); - a.d(c, "__assign", function() { - return ca; - }); - a.d(c, "__rest", function() { - return d; - }); - a.d(c, "__decorate", function() { + a.r(d); + a.d(d, "__extends", function() { return h; }); - a.d(c, "__param", function() { - return l; + a.d(d, "__assign", function() { + return b; }); - a.d(c, "__metadata", function() { - return g; + a.d(d, "__rest", function() { + return k; }); - a.d(c, "__awaiter", function() { - return m; + a.d(d, "__decorate", function() { + return f; }); - a.d(c, "__generator", function() { + a.d(d, "__param", function() { return p; }); - a.d(c, "__exportStar", function() { + a.d(d, "__metadata", function() { + return m; + }); + a.d(d, "__awaiter", function() { return r; }); - a.d(c, "__values", function() { + a.d(d, "__generator", function() { return u; }); - a.d(c, "__read", function() { + a.d(d, "__exportStar", function() { + return x; + }); + a.d(d, "__values", function() { return v; }); - a.d(c, "__spread", function() { - return z; + a.d(d, "__read", function() { + return y; }); - a.d(c, "__await", function() { + a.d(d, "__spread", function() { return w; }); - a.d(c, "__asyncGenerator", function() { - return k; + a.d(d, "__spreadArrays", function() { + return D; }); - a.d(c, "__asyncDelegator", function() { - return x; + a.d(d, "__await", function() { + return z; }); - a.d(c, "__asyncValues", function() { - return y; + a.d(d, "__asyncGenerator", function() { + return E; }); - a.d(c, "__makeTemplateObject", function() { - return C; + a.d(d, "__asyncDelegator", function() { + return l; }); - a.d(c, "__importStar", function() { + a.d(d, "__asyncValues", function() { return F; }); - a.d(c, "__importDefault", function() { + a.d(d, "__makeTemplateObject", function() { + return la; + }); + a.d(d, "__importStar", function() { return N; }); - T = Object.setPrototypeOf || { - __proto__: [] - } - instanceof Array && function(a, b) { - a.__proto__ = b; - } || function(a, b) { - for (var c in b) b.hasOwnProperty(c) && (a[c] = b[c]); - }; - ca = Object.assign || function(a) { - for (var b, c = 1, g = arguments.length; c < g; c++) { - b = arguments[c]; - for (var d in b) Object.prototype.hasOwnProperty.call(b, d) && (a[d] = b[d]); - } - return a; - }; - }, function(f, c) { - Object.defineProperty(c, "__esModule", { + a.d(d, "__importDefault", function() { + return O; + }); + }, function(g, d, a) { + Object.defineProperty(d, "__esModule", { + value: !0 + }); + g = a(32); + d.bxb = g; + g = a(1033); + d.WE = g.WE; + g = a(80); + d.gn = g.gn; + d.kh = g.kh; + d.Gq = g.Gq; + g = a(1017); + d.Iba = g.Iba; + d.Vb = g.Vb; + g = a(1016); + d.N = g.N; + g = a(1015); + d.VAa = g.VAa; + g = a(1014); + d.Uva = g.Uva; + g = a(470); + d.l = g.l; + d.MX = g.MX; + g = a(1013); + d.optional = g.optional; + g = a(1012); + d.Jg = g.Jg; + g = a(1011); + d.Iy = g.Iy; + g = a(1010); + d.qL = g.qL; + g = a(1009); + d.Bxa = g.Bxa; + g = a(472); + d.WX = g.WX; + g = a(104); + d.id = g.id; + g = a(90); + d.vu = g.vu; + g = a(467); + d.yBa = g.yBa; + d.WAa = g.WAa; + d.Vva = g.Vva; + d.DBa = g.DBa; + g = a(139); + d.IC = g.IC; + a = a(1008); + d.Sva = a.Sva; + }, function(g, d) { + var a, b; + Object.defineProperty(d, "__esModule", { value: !0 }); (function(a) { - a[a.Vg = 7001] = "UNKNOWN"; - a[a.HFa = 7002] = "UNHANDLED_EXCEPTION"; - a[a.mya = 7003] = "INIT_COMPONENT_LOG_TO_REMOTE"; - a[a.U8 = 7010] = "INIT_ASYNCCOMPONENT"; - a[a.t9 = 7011] = "INIT_HTTP"; - a[a.kya = 7014] = "INIT_BADMOVIEID"; - a[a.zya = 7016] = "INIT_NETFLIXID_MISSING"; - a[a.yya = 7017] = "INIT_NETFLIXID_INVALID"; - a[a.Bya = 7018] = "INIT_SECURENETFLIXID_MISSING"; - a[a.u9 = 7020] = "INIT_PLAYBACK_LOCK"; - a[a.v9 = 7022] = "INIT_SESSION_LOCK"; - a[a.Aya = 7029] = "INIT_POSTAUTHORIZE"; - a[a.Lfb = 7031] = "INIT_HEADER_MEDIA"; - a[a.vfb = 7032] = "HEADER_MISSING"; - a[a.ufb = 7033] = "HEADER_FRAGMENTS_MISSING"; - a[a.Cya = 7034] = "INIT_TIMEDTEXT_TRACK"; - a[a.Mfb = 7035] = "INIT_LOAD_DOWNLOADED_MEDIA"; - a[a.Nfb = 7036] = "INIT_STREAMS_NOT_AVAILABLE"; - a[a.yta = 7037] = "ASE_SESSION_ERROR"; - a[a.vya = 7041] = "INIT_CORE_OBJECTS1"; - a[a.wya = 7042] = "INIT_CORE_OBJECTS2"; - a[a.xya = 7043] = "INIT_CORE_OBJECTS3"; - a[a.i9 = 7051] = "INIT_COMPONENT_REQUESTQUOTA"; - a[a.X8 = 7052] = "INIT_COMPONENT_FILESYSTEM"; - a[a.j9 = 7053] = "INIT_COMPONENT_STORAGE"; - a[a.k9 = 7054] = "INIT_COMPONENT_STORAGELOCK"; - a[a.a9 = 7055] = "INIT_COMPONENT_LOGPERSIST"; - a[a.Hfb = 7056] = "INIT_COMPONENT_NRDDPI"; - a[a.Jfb = 7057] = "INIT_COMPONENT_PEPPERCRYPTO"; - a[a.b9 = 7058] = "INIT_COMPONENT_MAINTHREADMONITOR"; - a[a.zT = 7059] = "INIT_COMPONENT_DEVICE"; - a[a.nya = 7061] = "INIT_COMPONENT_MOCKNCCPPLAYBACK"; - a[a.Ifb = 7062] = "INIT_COMPONENT_NTBA"; - a[a.c9 = 7063] = "INIT_COMPONENT_MSL"; - a[a.e9 = 7064] = "INIT_COMPONENT_NCCPDEVICEPARAMETERS"; - a[a.d9 = 7065] = "INIT_COMPONENT_NCCP"; - a[a.f9 = 7066] = "INIT_COMPONENT_NCCPLOGBATCHER"; - a[a.jl = 7067] = "INIT_COMPONENT_PERSISTEDPLAYDATA"; - a[a.Kfb = 7068] = "INIT_COMPONENT_PLAYBACKHEURISTICSRANDOM"; - a[a.DJ = 7069] = "INIT_COMPONENT_ACCOUNT"; - a[a.pya = 7070] = "INIT_COMPONENT_NRDP_CONFIG_LOADER"; - a[a.rya = 7071] = "INIT_COMPONENT_NRDP_ESN_PREFIX_LOADER"; - a[a.sya = 7072] = "INIT_COMPONENT_NRDP_MEDIA"; - a[a.tya = 7073] = "INIT_COMPONENT_NRDP_PREPARE_LOADER"; - a[a.uya = 7074] = "INIT_COMPONENT_NRDP_REGISTRATION"; - a[a.oya = 7081] = "INIT_COMPONENT_NRDP"; - a[a.qya = 7082] = "INIT_COMPONENT_NRDP_DEVICE"; - a[a.r9 = 7083] = "INIT_COMPONENT_WEBCRYPTO"; - a[a.n9 = 7084] = "INIT_COMPONENT_VIDEO_PREPARER"; - a[a.s9 = 7085] = "INIT_CONGESTION_SERVICE"; - a[a.Z8 = 7086] = "INIT_COMPONENT_IDB_VIEWER_TOOL"; - a[a.l9 = 7087] = "INIT_COMPONENT_TRACKING_LOG"; - a[a.W8 = 7088] = "INIT_COMPONENT_BATTERY_MANAGER"; - a[a.V8 = 7089] = "INIT_COMPONENT_ASE_MANAGER"; - a[a.m9 = 7090] = "INIT_COMPONENT_VIDEO_CACHE"; - a[a.Qx = 7091] = "INIT_COMPONENT_DRM_CACHE"; - a[a.lya = 7092] = "INIT_COMPONENT_DRM"; - a[a.g9 = 7093] = "INIT_COMPONENT_PREFETCH_EVENTS"; - a[a.Y8 = 7094] = "INIT_COMPONENT_FTL"; - a[a.h9 = 7095] = "INIT_COMPONENT_PREPARE_MODEL"; - a[a.o9 = 7096] = "INIT_COMPONENT_VIDEO_SESSION_EDGE"; - a[a.p9 = 7097] = "INIT_COMPONENT_VIDEO_SESSION_MDX"; - a[a.q9 = 7098] = "INIT_COMPONENT_VIDEO_SESSION_TEST"; - a[a.y$ = 7111] = "NCCP_AUTHORIZE"; - a[a.Ita = 7112] = "AUTHORIZE_UNKNOWN"; - a[a.xAa = 7113] = "NCCP_AUTHORIZE_REGISTER"; - a[a.wAa = 7115] = "NCCP_AUTHORIZE_AUTHRENEW"; - a[a.yAa = 7117] = "NCCP_AUTHORIZE_VERIFY"; - a[a.HU = 7120] = "START"; - a[a.mu = 7121] = "LICENSE"; - a[a.GU = 7122] = "SECURESTOP"; - a[a.$C = 7123] = "STOP"; - a[a.phb = 7124] = "NCCP_FPSAPPDATA"; - a[a.GT = 7125] = "KEEPALIVE"; - a[a.Cva = 7126] = "DEACTIVATE"; - a[a.NEa = 7127] = "SYNC_DEACTIVATE_LINKS"; - a[a.mhb = 7130] = "NCCP_ACTIVATE"; - a[a.$T = 7131] = "NCCP_PING"; - a[a.z$ = 7133] = "NCCP_NETFLIXID"; - a[a.k8 = 7134] = "ENGAGE"; - a[a.xC = 7135] = "LOGIN"; - a[a.fK = 7136] = "SWITCH_PROFILES"; - a[a.dza = 7137] = "LOGBLOB"; - a[a.P$ = 7138] = "PAUSE"; - a[a.Waa = 7139] = "RESUME"; - a[a.uEa = 7140] = "SPLICE"; - a[a.qwa = 7141] = "DOWNLOAD_EVENT"; - a[a.iCa = 7202] = "PLAY_INIT_EXCEPTION"; - a[a.mgb = 7301] = "MEDIA_DOWNLOAD"; - a[a.dib = 7330] = "PLAY_MSE_EME_CREATE_KEYSESSION_FAILED"; - a[a.eib = 7331] = "PLAY_MSE_EME_KEY_SESSION_UPDATE_EXCEPTION"; - a[a.jU = 7332] = "PLAY_MSE_EME_KEY_STATUS_CHANGE_EXPIRED"; - a[a.W$ = 7333] = "PLAY_MSE_EME_KEY_STATUS_CHANGE_INTERNAL_ERROR"; - a[a.kU = 7334] = "PLAY_MSE_EME_KEY_STATUS_CHANGE_OUTPUT_NOT_ALLOWED"; - a[a.oCa = 7335] = "PLAY_MSE_EME_KEY_STATUS_EXCEPTION"; - a[a.Z$ = 7351] = "PLAY_MSE_NOTSUPPORTED"; - a[a.X$ = 7352] = "PLAY_MSE_EME_NOTSUPPORTED"; - a[a.V$ = 7353] = "PLAY_MSE_DECODER_TIMEOUT"; - a[a.lU = 7354] = "PLAY_MSE_EME_TYPE_NOTSUPPORTED"; - a[a.nU = 7355] = "PLAY_MSE_SOURCEADD"; - a[a.jCa = 7356] = "PLAY_MSE_CREATE_MEDIAKEYS"; - a[a.Y$ = 7357] = "PLAY_MSE_GENERATEKEYREQUEST"; - a[a.iib = 7358] = "PLAY_MSE_PARSECHALLENGE"; - a[a.cib = 7359] = "PLAY_MSE_ADDKEY"; - a[a.lib = 7360] = "PLAY_MSE_UNEXPECTED_NEEDKEY"; - a[a.sCa = 7361] = "PLAY_MSE_EVENT_ERROR"; - a[a.mU = 7362] = "PLAY_MSE_SETMEDIAKEYS"; - a[a.TJ = 7363] = "PLAY_MSE_EVENT_KEYERROR"; - a[a.rCa = 7364] = "PLAY_MSE_EME_SESSION_CLOSE"; - a[a.tCa = 7365] = "PLAY_MSE_GETCURRENTTIME"; - a[a.uCa = 7367] = "PLAY_MSE_SETCURRENTTIME"; - a[a.vCa = 7371] = "PLAY_MSE_SOURCEAPPEND"; - a[a.jib = 7373] = "PLAY_MSE_SOURCEAPPEND_INIT"; - a[a.zCa = 7375] = "PLAY_MSE_UNEXPECTED_SEEKING"; - a[a.yCa = 7376] = "PLAY_MSE_UNEXPECTED_SEEKED"; - a[a.xCa = 7377] = "PLAY_MSE_UNEXPECTED_REWIND"; - a[a.kib = 7379] = "PLAY_MSE_SOURCE_EOS"; - a[a.wCa = 7381] = "PLAY_MSE_SOURCEBUFFER_ERROR"; - a[a.hib = 7385] = "PLAY_MSE_KEYSESSION_UPDATE"; - a[a.kCa = 7391] = "PLAY_MSE_CREATE_MEDIASOURCE"; - a[a.lCa = 7392] = "PLAY_MSE_CREATE_MEDIASOURCE_OBJECTURL"; - a[a.mCa = 7393] = "PLAY_MSE_CREATE_MEDIASOURCE_OPEN"; - a[a.pCa = 7394] = "PLAY_MSE_EME_MISSING_DRMHEADER"; - a[a.qCa = 7395] = "PLAY_MSE_EME_MISSING_PSSH"; - a[a.fib = 7396] = "PLAY_MSE_EME_MISSING_CERT"; - a[a.gib = 7397] = "PLAY_MSE_EME_NO_PRK_SUPPORT"; - a[a.nCa = 7398] = "PLAY_MSE_DURATIONCHANGE_ERROR"; - a[a.$$ = 7399] = "PLAY_MSE_SET_LICENSE_ERROR"; - a[a.dxa = 7400] = "EXTERNAL"; - a[a.RJ = 7500] = "PAUSE_TIMEOUT"; - a[a.BJ = 7502] = "INACTIVITY_TIMEOUT"; - a[a.Hta = 7510] = "AUTHORIZATION_EXPIRED"; - a[a.xeb = 7520] = "DECRYPT_AUDIO"; - a[a.dba = 7600] = "SECURE_STOP_PROMISE_EXPIRED"; - a[a.lEa = 7601] = "SECURE_STOP_KEY_ERROR"; - a[a.ejb = 7602] = "SECURE_STOP_VIDEO_ERROR"; - a[a.Pib = 7603] = "SECURE_STOP_NCCP_ERROR"; - a[a.Qib = 7604] = "SECURE_STOP_NCCP_PARSE_PAYLOAD_ERROR"; - a[a.djb = 7605] = "SECURE_STOP_STORAGE_REMOVE_ERROR"; - a[a.Uib = 7620] = "SECURE_STOP_PERSISTED_KEY_SESSION_NOT_AVAILABLE"; - a[a.mEa = 7621] = "SECURE_STOP_PERSISTED_NO_MORE_ERROR"; - a[a.Vib = 7622] = "SECURE_STOP_PERSISTED_MAX_ATTEMPTS_EXCEEDED"; - a[a.Wib = 7623] = "SECURE_STOP_PERSISTED_MSE_CREATE_MEDIASOURCE_OPEN"; - a[a.Zib = 7624] = "SECURE_STOP_PERSISTED_PLAY_MSE_GENERATEKEYREQUEST"; - a[a.Rib = 7625] = "SECURE_STOP_PERSISTED_CREATE_SESSION_WITH_KEY_RELEASE_FAILED"; - a[a.Xib = 7626] = "SECURE_STOP_PERSISTED_NCCP_FPSAPPDATA"; - a[a.ajb = 7627] = "SECURE_STOP_PERSISTED_PLIST_PARSE_ERROR"; - a[a.Yib = 7628] = "SECURE_STOP_PERSISTED_PENDING_KEY_ADDED_EXPIRED"; - a[a.Tib = 7631] = "SECURE_STOP_PERSISTED_KEY_ERROR"; - a[a.cjb = 7632] = "SECURE_STOP_PERSISTED_VIDEO_ERROR"; - a[a.$ib = 7633] = "SECURE_STOP_PERSISTED_PLAY_MSE_KEYSESSION_UPDATE"; - a[a.Sib = 7634] = "SECURE_STOP_PERSISTED_DRM_NOT_SUPPORTED"; - a[a.bjb = 7635] = "SECURE_STOP_PERSISTED_UNEXPECTED_MESSAGE_TYPE"; - a[a.Web = 7700] = "EME_INVALID_KEYSYSTEM"; - a[a.LS = 7701] = "EME_CREATE_MEDIAKEYS_SYSTEMACCESS_FAILED"; - a[a.KS = 7702] = "EME_CREATE_MEDIAKEYS_FAILED"; - a[a.NS = 7703] = "EME_GENERATEREQUEST_FAILED"; - a[a.gC = 7704] = "EME_UPDATE_FAILED"; - a[a.Xeb = 7705] = "EME_KEYSESSION_ERROR"; - a[a.ffb = 7706] = "EME_NO_KEYMESSAGE"; - a[a.j8 = 7707] = "EME_REMOVE_FAILED"; - a[a.$wa = 7708] = "EME_LOAD_FAILED"; - a[a.f8 = 7709] = "EME_CREATE_SESSION_FAILED"; - a[a.Zwa = 7710] = "EME_LDL_RENEWAL_ERROR"; - a[a.g8 = 7711] = "EME_INVALID_INITDATA_DATA"; - a[a.h8 = 7712] = "EME_INVALID_LICENSE_DATA"; - a[a.Ywa = 7713] = "EME_LDL_KEYSSION_ALREADY_CLOSED"; - a[a.axa = 7714] = "EME_MEDIAKEYS_GENERIC_ERROR"; - a[a.i8 = 7715] = "EME_INVALID_SECURESTOP_DATA"; - a[a.Vwa = 7716] = "EME_CLOSE_FAILED"; - a[a.gCa = 7800] = "PLAYDATA_STORE_FAILURE"; - a[a.fCa = 7801] = "PLAYDATA_SEND_FAILURE"; - a[a.aC = 7900] = "BRANCH_PLAY_FAILURE"; - a[a.Xq = 7901] = "BRANCH_QUEUE_FAILURE"; - a[a.X6 = 7902] = "BRANCH_UPDATE_NEXT_SEGMENT_WEIGHTS_FAILURE"; - a[a.Ghb = 8E3] = "NRDP_REGISTRATION_ACTIVATE_FAILURE"; - a[a.Hhb = 8010] = "NRDP_REGISTRATION_SSO_ACTIVATE_FAILURE"; - a[a.uBa = 8100] = "PBO_EVENTLOOKUP_FAILURE"; - }(c.v || (c.v = {}))); - (function(a) { - a[a.Vg = 1001] = "UNKNOWN"; - a[a.te = 1003] = "EXCEPTION"; - a[a.Gya = 1004] = "INVALID_DI"; - a[a.Bta = 1011] = "ASYNCLOAD_EXCEPTION"; - a[a.Cta = 1013] = "ASYNCLOAD_TIMEOUT"; - a[a.G6 = 1015] = "ASYNCLOAD_BADCONFIG"; - a[a.zta = 1016] = "ASYNCLOAD_COMPONENT_DUPLICATE"; - a[a.Ata = 1017] = "ASYNCLOAD_COMPONENT_MISSING"; - a[a.sC = 1101] = "HTTP_UNKNOWN"; - a[a.xT = 1102] = "HTTP_XHR"; - a[a.Ox = 1103] = "HTTP_PROTOCOL"; - a[a.yJ = 1104] = "HTTP_OFFLINE"; - a[a.rC = 1105] = "HTTP_TIMEOUT"; - a[a.ku = 1106] = "HTTP_READTIMEOUT"; - a[a.No = 1107] = "HTTP_ABORT"; - a[a.tT = 1108] = "HTTP_PARSE"; - a[a.K8 = 1110] = "HTTP_BAD_URL"; - a[a.Px = 1111] = "HTTP_PROXY"; - a[a.e$ = 1203] = "MSE_AUDIO"; - a[a.f$ = 1204] = "MSE_VIDEO"; - a[a.Nza = 1250] = "MSE_MEDIA_ERR_BASE"; - a[a.Vgb = 1251] = "MSE_MEDIA_ERR_ABORTED"; - a[a.Ygb = 1252] = "MSE_MEDIA_ERR_NETWORK"; - a[a.Wgb = 1253] = "MSE_MEDIA_ERR_DECODE"; - a[a.Zgb = 1254] = "MSE_MEDIA_ERR_SRC_NOT_SUPPORTED"; - a[a.Xgb = 1255] = "MSE_MEDIA_ERR_ENCRYPTED"; - a[a.eu = 1260] = "EME_MEDIA_KEYERR_BASE"; - a[a.dfb = 1261] = "EME_MEDIA_KEYERR_UNKNOWN"; - a[a.Zeb = 1262] = "EME_MEDIA_KEYERR_CLIENT"; - a[a.cfb = 1263] = "EME_MEDIA_KEYERR_SERVICE"; - a[a.bfb = 1264] = "EME_MEDIA_KEYERR_OUTPUT"; - a[a.afb = 1265] = "EME_MEDIA_KEYERR_HARDWARECHANGE"; - a[a.$eb = 1266] = "EME_MEDIA_KEYERR_DOMAIN"; - a[a.efb = 1269] = "EME_MEDIA_UNAVAILABLE_CDM"; - a[a.Xwa = 1280] = "EME_ERROR_NODRMSESSSION"; - a[a.Wwa = 1281] = "EME_ERROR_NODRMREQUESTS"; - a[a.Ueb = 1282] = "EME_ERROR_INDIV_FAILED"; - a[a.Veb = 1283] = "EME_ERROR_UNSUPPORTED_MESSAGETYPE"; - a[a.cxa = 1284] = "EME_TIMEOUT_MESSAGE"; - a[a.bxa = 1285] = "EME_TIMEOUT_KEYCHANGE"; - a[a.OS = 1286] = "EME_UNDEFINED_DATA"; - a[a.MS = 1286] = "EME_EMPTY_DATA"; - a[a.fC = 1287] = "EME_INVALID_STATE"; - a[a.Yeb = 1288] = "EME_LDL_DOES_NOT_SUPPORT_PRK"; - a[a.vhb = 1303] = "NCCP_METHOD_NOT_SUPPORTED"; - a[a.yhb = 1305] = "NCCP_PARSEXML"; - a[a.AAa = 1309] = "NCCP_PROCESS_EXCEPTION"; - a[a.xhb = 1311] = "NCCP_NETFLIXID_MISSING"; - a[a.zhb = 1312] = "NCCP_SECURENETFLIXID_MISSING"; - a[a.shb = 1313] = "NCCP_HMAC_MISSING"; - a[a.rhb = 1315] = "NCCP_HMAC_MISMATCH"; - a[a.qhb = 1317] = "NCCP_HMAC_FAILED"; - a[a.ohb = 1321] = "NCCP_CLIENTTIME_MISSING"; - a[a.nhb = 1323] = "NCCP_CLIENTTIME_MISMATCH"; - a[a.HC = 1331] = "NCCP_PROTOCOL"; - a[a.BAa = 1333] = "NCCP_PROTOCOL_INVALIDDEVICECREDENTIALS"; - a[a.CAa = 1337] = "NCCP_PROTOCOL_REDIRECT_LOOP"; - a[a.Ahb = 1341] = "NCCP_TRANSACTION"; - a[a.thb = 1343] = "NCCP_INVALID_DRMTYPE"; - a[a.uhb = 1344] = "NCCP_INVALID_LICENCE_RESPONSE"; - a[a.whb = 1345] = "NCCP_MISSING_PAYLOAD"; - a[a.pU = 1346] = "PROTOCOL_NOT_INITIALIZED"; - a[a.KCa = 1347] = "PROTOCOL_MISSING_FIELD"; - a[a.JCa = 1348] = "PROTOCOL_MISMATCHED_PROFILEGUID"; - a[a.sj = 1402] = "STORAGE_NODATA"; - a[a.jjb = 1403] = "STORAGE_EXCEPTION"; - a[a.lba = 1405] = "STORAGE_QUOTA_NOT_GRANTED"; - a[a.mba = 1407] = "STORAGE_QUOTA_TO_SMALL"; - a[a.kba = 1411] = "STORAGE_LOAD_ERROR"; - a[a.IEa = 1412] = "STORAGE_LOAD_TIMEOUT"; - a[a.nba = 1414] = "STORAGE_SAVE_ERROR"; - a[a.LEa = 1415] = "STORAGE_SAVE_TIMEOUT"; - a[a.IU = 1417] = "STORAGE_DELETE_ERROR"; - a[a.iba = 1418] = "STORAGE_DELETE_TIMEOUT"; - a[a.jba = 1421] = "STORAGE_FS_REQUESTFILESYSTEM"; - a[a.FEa = 1423] = "STORAGE_FS_GETDIRECTORY"; - a[a.HEa = 1425] = "STORAGE_FS_READENTRIES"; - a[a.CEa = 1427] = "STORAGE_FS_FILEREAD"; - a[a.EEa = 1429] = "STORAGE_FS_FILEWRITE"; - a[a.DEa = 1431] = "STORAGE_FS_FILEREMOVE"; - a[a.GEa = 1432] = "STORAGE_FS_PARSEJSON"; - a[a.KEa = 1451] = "STORAGE_NO_LOCALSTORAGE"; - a[a.JEa = 1453] = "STORAGE_LOCALSTORAGE_ACCESS_EXCEPTION"; - a[a.Nhb = 1501] = "NTBA_UNKNOWN"; - a[a.Mhb = 1502] = "NTBA_EXCEPTION"; - a[a.Ihb = 1504] = "NTBA_CRYPTO_KEY"; - a[a.Khb = 1506] = "NTBA_CRYPTO_OPERATION"; - a[a.Jhb = 1508] = "NTBA_CRYPTO_KEYEXCHANGE"; - a[a.Lhb = 1515] = "NTBA_DECRYPT_UNSUPPORTED"; - a[a.H7 = 1553] = "DEVICE_NO_ESN"; - a[a.uS = 1555] = "DEVICE_ERROR_GETTING_ESN"; - a[a.caa = 1603] = "PLUGIN_LOAD_MISSING"; - a[a.aaa = 1605] = "PLUGIN_LOAD_ERROR"; - a[a.daa = 1607] = "PLUGIN_LOAD_TIMEOUT"; - a[a.baa = 1609] = "PLUGIN_LOAD_EXCEPTION"; - a[a.DCa = 1625] = "PLUGIN_EXCEPTION"; - a[a.ACa = 1627] = "PLUGIN_CALLBACK_ERROR"; - a[a.BCa = 1629] = "PLUGIN_CALLBACK_TIMEOUT"; - a[a.vxa = 1701] = "FORMAT_UNKNOWN"; - a[a.y8 = 1713] = "FORMAT_XML"; - a[a.wxa = 1715] = "FORMAT_XML_CONTENT"; - a[a.uxa = 1721] = "FORMAT_BASE64"; - a[a.oJ = 1723] = "FORMAT_DFXP"; - a[a.Yxa = 1801] = "INDEXDB_OPEN_EXCEPTION"; - a[a.S8 = 1802] = "INDEXDB_NOT_SUPPORTED"; - a[a.Xxa = 1803] = "INDEXDB_OPEN_ERROR"; - a[a.T8 = 1804] = "INDEXDB_OPEN_NULL"; - a[a.Wxa = 1805] = "INDEXDB_OPEN_BLOCKED"; - a[a.Zxa = 1807] = "INDEXDB_OPEN_TIMEOUT"; - a[a.Vxa = 1808] = "INDEXDB_INVALID_STORE_STATE"; - a[a.CJ = 1809] = "INDEXDB_ACCESS_EXCEPTION"; - a[a.Uza = 1901] = "MSL_UNKNOWN"; - a[a.Oza = 1911] = "MSL_INIT_NO_MSL"; - a[a.j$ = 1913] = "MSL_INIT_ERROR"; - a[a.Pza = 1915] = "MSL_INIT_NO_WEBCRYPTO"; - a[a.KT = 1931] = "MSL_ERROR"; - a[a.k$ = 1933] = "MSL_REQUEST_TIMEOUT"; - a[a.Tza = 1934] = "MSL_READ_TIMEOUT"; - a[a.h$ = 1935] = "MSL_ERROR_HEADER"; - a[a.AC = 1936] = "MSL_ERROR_ENVELOPE"; - a[a.i$ = 1937] = "MSL_ERROR_MISSING_PAYLOAD"; - a[a.LT = 1957] = "MSL_ERROR_REAUTH"; - a[a.$U = 2103] = "WEBCRYPTO_MISSING"; - a[a.WFa = 2105] = "WEBCRYPTOKEYS_MISSING"; - a[a.XFa = 2107] = "WEBCRYPTO_IFRAME_LOAD_ERROR"; - a[a.feb = 2200] = "CACHEDDATA_PARSEJSON"; - a[a.kS = 2201] = "CACHEDDATA_UNSUPPORTED_VERSION"; - a[a.geb = 2202] = "CACHEDDATA_UPGRADE_FAILED"; - a[a.hn = 2203] = "CACHEDDATA_INVALID_FORMAT"; - a[a.E6 = 3E3] = "ACCOUNT_CHANGE_INFLIGHT"; - a[a.ota = 3001] = "ACCOUNT_INVALID"; - a[a.owa = 3100] = "DOWNLOADED_MANIFEST_UNAVAILABLE"; - a[a.nwa = 3101] = "DOWNLOADED_MANIFEST_PARSE_EXCEPTION"; - a[a.Deb = 3200] = "DOWNLOADED_LICENSE_UNAVAILABLE"; - a[a.Eeb = 3201] = "DOWNLOADED_LICENSE_UNUSEABLE"; - a[a.Ceb = 3202] = "DOWNLOADED_LICENSE_EXCEPTION"; - a[a.kjb = 3300] = "STORAGE_VA_LOAD_ERROR"; - a[a.ljb = 3301] = "STORAGE_VA_LOAD_TIMEOUT"; - a[a.ojb = 3302] = "STORAGE_VA_SAVE_ERROR"; - a[a.pjb = 3303] = "STORAGE_VA_SAVE_TIMEOUT"; - a[a.mjb = 3304] = "STORAGE_VA_REMOVE_ERROR"; - a[a.njb = 3305] = "STORAGE_VA_REMOVE_TIMEOUT"; - a[a.zBa = 5003] = "PBO_VIEWABLE_OUT_OF_AVAILABILITY_WINDOW"; - a[a.pBa = 5005] = "PBO_ACCOUNT_ON_HOLD"; - a[a.tBa = 5006] = "PBO_CONCURRENT_STREAM_QUOTA_EXCEEDED"; - a[a.vBa = 5033] = "PBO_INSUFFICIENT_MATURITY_LEVEL"; - a[a.rBa = 5059] = "PBO_BLACKLISTED_IP"; - a[a.qBa = 5070] = "PBO_AGE_VERIFICATION_REQUIRED"; - a[a.sBa = 5080] = "PBO_CHOICE_MAP_ERROR"; - a[a.yBa = 5090] = "PBO_RESTRICTED_TO_TESTERS"; - a[a.xBa = 5091] = "PBO_MALFORMED_REQUEST"; - a[a.wBa = 5092] = "PBO_INVALID_SERVICE_VERSION"; - a[a.Eva = 5100] = "DECODER_TIMEOUT_BUFFERING"; - a[a.Fva = 5101] = "DECODER_TIMEOUT_PRESENTING"; - a[a.pwa = 5200] = "DOWNLOADER_IO_ERROR"; - a[a.W6 = 5300] = "BRANCHING_SEGMENT_NOTFOUND"; - a[a.aua = 5301] = "BRANCHING_PRESENTER_UNINITIALIZED"; - a[a.Cdb = 5302] = "BRANCHING_SEGMENT_STREAMING_NOT_STARTED"; - a[a.gS = 5303] = "BRANCHING_ASE_UNINITIALIZED"; - a[a.Xta = 5304] = "BRANCHING_ASE_FAILURE"; - a[a.Zta = 5305] = "BRANCHING_MOMENT_FAILURE"; - a[a.Yta = 5306] = "BRANCHING_CURRENT_SEGMENT_UNINITIALIZED"; - a[a.Bdb = 5307] = "BRANCHING_SEGMENT_LASTPTS_UNINIITALIZED"; - a[a.bua = 5308] = "BRANCHING_SEEK_THREW"; - a[a.Adb = 5309] = "BRANCHING_PLAY_NOTENOUGHNEXTSEGMENTS"; - a[a.$ta = 5310] = "BRANCHING_PLAY_TIMEDOUT"; - a[a.V6 = 5311] = "BRANCHING_SEGMENT_ALREADYQUEUED"; - a[a.cua = 5312] = "BRANCHING_UPDATE_NEXT_SEGMENT_WEIGHTS_THREW"; - }(c.u || (c.u = {}))); + a[a.Sh = 7001] = "UNKNOWN"; + a[a.kQa = 7002] = "UNHANDLED_EXCEPTION"; + a[a.pIa = 7003] = "INIT_COMPONENT_LOG_TO_REMOTE"; + a[a.Gda = 7010] = "INIT_ASYNCCOMPONENT"; + a[a.cea = 7011] = "INIT_HTTP"; + a[a.nIa = 7014] = "INIT_BADMOVIEID"; + a[a.BIa = 7016] = "INIT_NETFLIXID_MISSING"; + a[a.AIa = 7017] = "INIT_NETFLIXID_INVALID"; + a[a.DIa = 7018] = "INIT_SECURENETFLIXID_MISSING"; + a[a.dea = 7020] = "INIT_PLAYBACK_LOCK"; + a[a.eea = 7022] = "INIT_SESSION_LOCK"; + a[a.CIa = 7029] = "INIT_POSTAUTHORIZE"; + a[a.vwb = 7031] = "INIT_HEADER_MEDIA"; + a[a.dwb = 7032] = "HEADER_MISSING"; + a[a.cwb = 7033] = "HEADER_FRAGMENTS_MISSING"; + a[a.EIa = 7034] = "INIT_TIMEDTEXT_TRACK"; + a[a.wwb = 7035] = "INIT_LOAD_DOWNLOADED_MEDIA"; + a[a.xwb = 7036] = "INIT_STREAMS_NOT_AVAILABLE"; + a[a.JCa = 7037] = "ASE_SESSION_ERROR"; + a[a.xIa = 7041] = "INIT_CORE_OBJECTS1"; + a[a.yIa = 7042] = "INIT_CORE_OBJECTS2"; + a[a.zIa = 7043] = "INIT_CORE_OBJECTS3"; + a[a.Tda = 7051] = "INIT_COMPONENT_REQUESTQUOTA"; + a[a.Kda = 7052] = "INIT_COMPONENT_FILESYSTEM"; + a[a.Uda = 7053] = "INIT_COMPONENT_STORAGE"; + a[a.Vda = 7054] = "INIT_COMPONENT_STORAGELOCK"; + a[a.Oda = 7055] = "INIT_COMPONENT_LOGPERSIST"; + a[a.qwb = 7056] = "INIT_COMPONENT_NRDDPI"; + a[a.swb = 7057] = "INIT_COMPONENT_PEPPERCRYPTO"; + a[a.Pda = 7058] = "INIT_COMPONENT_MAINTHREADMONITOR"; + a[a.FX = 7059] = "INIT_COMPONENT_DEVICE"; + a[a.rwb = 7062] = "INIT_COMPONENT_NTBA"; + a[a.Qda = 7063] = "INIT_COMPONENT_MSL"; + a[a.Jda = 7065] = "INIT_COMPONENT_CONTROL_PROTOCOL"; + a[a.Nda = 7066] = "INIT_COMPONENT_LOGBLOBBATCHER"; + a[a.Ws = 7067] = "INIT_COMPONENT_PERSISTEDPLAYDATA"; + a[a.twb = 7068] = "INIT_COMPONENT_PLAYBACKHEURISTICSRANDOM"; + a[a.QM = 7069] = "INIT_COMPONENT_ACCOUNT"; + a[a.rIa = 7070] = "INIT_COMPONENT_NRDP_CONFIG_LOADER"; + a[a.tIa = 7071] = "INIT_COMPONENT_NRDP_ESN_PREFIX_LOADER"; + a[a.uIa = 7072] = "INIT_COMPONENT_NRDP_MEDIA"; + a[a.vIa = 7073] = "INIT_COMPONENT_NRDP_PREPARE_LOADER"; + a[a.wIa = 7074] = "INIT_COMPONENT_NRDP_REGISTRATION"; + a[a.qIa = 7081] = "INIT_COMPONENT_NRDP"; + a[a.sIa = 7082] = "INIT_COMPONENT_NRDP_DEVICE"; + a[a.aea = 7083] = "INIT_COMPONENT_WEBCRYPTO"; + a[a.Xda = 7084] = "INIT_COMPONENT_VIDEO_PREPARER"; + a[a.bea = 7085] = "INIT_CONGESTION_SERVICE"; + a[a.Mda = 7086] = "INIT_COMPONENT_IDB_VIEWER_TOOL"; + a[a.Wda = 7087] = "INIT_COMPONENT_TRACKING_LOG"; + a[a.Ida = 7088] = "INIT_COMPONENT_BATTERY_MANAGER"; + a[a.Hda = 7089] = "INIT_COMPONENT_ASE_MANAGER"; + a[a.uwb = 7090] = "INIT_COMPONENT_VIDEO_CACHE"; + a[a.aA = 7091] = "INIT_COMPONENT_DRM_CACHE"; + a[a.oIa = 7092] = "INIT_COMPONENT_DRM"; + a[a.Rda = 7093] = "INIT_COMPONENT_PREFETCH_EVENTS"; + a[a.Lda = 7094] = "INIT_COMPONENT_FTL"; + a[a.Sda = 7095] = "INIT_COMPONENT_PREPARE_MODEL"; + a[a.Yda = 7096] = "INIT_COMPONENT_VIDEO_SESSION_EDGE"; + a[a.Zda = 7097] = "INIT_COMPONENT_VIDEO_SESSION_MDX"; + a[a.$da = 7098] = "INIT_COMPONENT_VIDEO_SESSION_TEST"; + a[a.MANIFEST = 7111] = "MANIFEST"; + a[a.UCa = 7112] = "AUTHORIZE_UNKNOWN"; + a[a.HJa = 7117] = "MANIFEST_VERIFY"; + a[a.dha = 7120] = "START"; + a[a.jw = 7121] = "LICENSE"; + a[a.xOa = 7122] = "SECURESTOP"; + a[a.hha = 7123] = "STOP"; + a[a.Tvb = 7124] = "FPSAPPDATA"; + a[a.LX = 7125] = "KEEPALIVE"; + a[a.Dub = 7126] = "DEACTIVATE"; + a[a.Xzb = 7127] = "SYNC_DEACTIVATE_LINKS"; + a[a.ftb = 7130] = "ACTIVATE"; + a[a.iY = 7131] = "PING"; + a[a.nfa = 7133] = "NETFLIXID"; + a[a.TGa = 7134] = "ENGAGE"; + a[a.rF = 7135] = "LOGIN"; + a[a.lN = 7136] = "SWITCH_PROFILES"; + a[a.iJa = 7137] = "LOGBLOB"; + a[a.Hfa = 7138] = "PAUSE"; + a[a.Tga = 7139] = "RESUME"; + a[a.cha = 7140] = "SPLICE"; + a[a.Oub = 7141] = "DOWNLOAD_EVENT"; + a[a.vDa = 7142] = "BIND"; + a[a.zLa = 7143] = "PAIR"; + a[a.tMa = 7202] = "PLAY_INIT_EXCEPTION"; + a[a.Xwb = 7301] = "MEDIA_DOWNLOAD"; + a[a.zyb = 7330] = "PLAY_MSE_EME_CREATE_KEYSESSION_FAILED"; + a[a.Ayb = 7331] = "PLAY_MSE_EME_KEY_SESSION_UPDATE_EXCEPTION"; + a[a.Nfa = 7332] = "PLAY_MSE_EME_KEY_STATUS_CHANGE_EXPIRED"; + a[a.zMa = 7333] = "PLAY_MSE_EME_KEY_STATUS_CHANGE_INTERNAL_ERROR"; + a[a.Ofa = 7334] = "PLAY_MSE_EME_KEY_STATUS_CHANGE_OUTPUT_NOT_ALLOWED"; + a[a.AMa = 7335] = "PLAY_MSE_EME_KEY_STATUS_EXCEPTION"; + a[a.Qfa = 7351] = "PLAY_MSE_NOTSUPPORTED"; + a[a.Pfa = 7352] = "PLAY_MSE_EME_NOTSUPPORTED"; + a[a.Mfa = 7353] = "PLAY_MSE_DECODER_TIMEOUT"; + a[a.jY = 7354] = "PLAY_MSE_EME_TYPE_NOTSUPPORTED"; + a[a.lY = 7355] = "PLAY_MSE_SOURCEADD"; + a[a.uMa = 7356] = "PLAY_MSE_CREATE_MEDIAKEYS"; + a[a.EMa = 7357] = "PLAY_MSE_GENERATEKEYREQUEST"; + a[a.Fyb = 7358] = "PLAY_MSE_PARSECHALLENGE"; + a[a.yyb = 7359] = "PLAY_MSE_ADDKEY"; + a[a.Iyb = 7360] = "PLAY_MSE_UNEXPECTED_NEEDKEY"; + a[a.DMa = 7361] = "PLAY_MSE_EVENT_ERROR"; + a[a.kY = 7362] = "PLAY_MSE_SETMEDIAKEYS"; + a[a.dN = 7363] = "PLAY_MSE_EVENT_KEYERROR"; + a[a.CMa = 7364] = "PLAY_MSE_EME_SESSION_CLOSE"; + a[a.FMa = 7365] = "PLAY_MSE_GETCURRENTTIME"; + a[a.GMa = 7367] = "PLAY_MSE_SETCURRENTTIME"; + a[a.HMa = 7371] = "PLAY_MSE_SOURCEAPPEND"; + a[a.Gyb = 7373] = "PLAY_MSE_SOURCEAPPEND_INIT"; + a[a.LMa = 7375] = "PLAY_MSE_UNEXPECTED_SEEKING"; + a[a.KMa = 7376] = "PLAY_MSE_UNEXPECTED_SEEKED"; + a[a.JMa = 7377] = "PLAY_MSE_UNEXPECTED_REWIND"; + a[a.Hyb = 7379] = "PLAY_MSE_SOURCE_EOS"; + a[a.IMa = 7381] = "PLAY_MSE_SOURCEBUFFER_ERROR"; + a[a.Eyb = 7385] = "PLAY_MSE_KEYSESSION_UPDATE"; + a[a.vMa = 7391] = "PLAY_MSE_CREATE_MEDIASOURCE"; + a[a.wMa = 7392] = "PLAY_MSE_CREATE_MEDIASOURCE_OBJECTURL"; + a[a.xMa = 7393] = "PLAY_MSE_CREATE_MEDIASOURCE_OPEN"; + a[a.Cyb = 7394] = "PLAY_MSE_EME_MISSING_DRMHEADER"; + a[a.BMa = 7395] = "PLAY_MSE_EME_MISSING_PSSH"; + a[a.Byb = 7396] = "PLAY_MSE_EME_MISSING_CERT"; + a[a.Dyb = 7397] = "PLAY_MSE_EME_NO_PRK_SUPPORT"; + a[a.yMa = 7398] = "PLAY_MSE_DURATIONCHANGE_ERROR"; + a[a.Rfa = 7399] = "PLAY_MSE_SET_LICENSE_ERROR"; + a[a.YGa = 7400] = "EXTERNAL"; + a[a.cN = 7500] = "PAUSE_TIMEOUT"; + a[a.OM = 7502] = "INACTIVITY_TIMEOUT"; + a[a.TCa = 7510] = "AUTHORIZATION_EXPIRED"; + a[a.Fub = 7520] = "DECRYPT_AUDIO"; + a[a.aha = 7600] = "SECURE_STOP_PROMISE_EXPIRED"; + a[a.yOa = 7601] = "SECURE_STOP_KEY_ERROR"; + a[a.Jzb = 7602] = "SECURE_STOP_VIDEO_ERROR"; + a[a.uzb = 7603] = "SECURE_STOP_NCCP_ERROR"; + a[a.vzb = 7604] = "SECURE_STOP_NCCP_PARSE_PAYLOAD_ERROR"; + a[a.Izb = 7605] = "SECURE_STOP_STORAGE_REMOVE_ERROR"; + a[a.zzb = 7620] = "SECURE_STOP_PERSISTED_KEY_SESSION_NOT_AVAILABLE"; + a[a.zOa = 7621] = "SECURE_STOP_PERSISTED_NO_MORE_ERROR"; + a[a.Azb = 7622] = "SECURE_STOP_PERSISTED_MAX_ATTEMPTS_EXCEEDED"; + a[a.Bzb = 7623] = "SECURE_STOP_PERSISTED_MSE_CREATE_MEDIASOURCE_OPEN"; + a[a.zY = 7624] = "SECURE_STOP_PERSISTED_PLAY_MSE_GENERATEKEYREQUEST"; + a[a.wzb = 7625] = "SECURE_STOP_PERSISTED_CREATE_SESSION_WITH_KEY_RELEASE_FAILED"; + a[a.Czb = 7626] = "SECURE_STOP_PERSISTED_NCCP_FPSAPPDATA"; + a[a.Fzb = 7627] = "SECURE_STOP_PERSISTED_PLIST_PARSE_ERROR"; + a[a.Dzb = 7628] = "SECURE_STOP_PERSISTED_PENDING_KEY_ADDED_EXPIRED"; + a[a.yzb = 7631] = "SECURE_STOP_PERSISTED_KEY_ERROR"; + a[a.Hzb = 7632] = "SECURE_STOP_PERSISTED_VIDEO_ERROR"; + a[a.Ezb = 7633] = "SECURE_STOP_PERSISTED_PLAY_MSE_KEYSESSION_UPDATE"; + a[a.xzb = 7634] = "SECURE_STOP_PERSISTED_DRM_NOT_SUPPORTED"; + a[a.Gzb = 7635] = "SECURE_STOP_PERSISTED_UNEXPECTED_MESSAGE_TYPE"; + a[a.OGa = 7700] = "EME_INVALID_KEYSYSTEM"; + a[a.Wca = 7701] = "EME_CREATE_MEDIAKEYS_SYSTEMACCESS_FAILED"; + a[a.Vca = 7702] = "EME_CREATE_MEDIAKEYS_FAILED"; + a[a.Xca = 7703] = "EME_GENERATEREQUEST_FAILED"; + a[a.xM = 7704] = "EME_UPDATE_FAILED"; + a[a.fvb = 7705] = "EME_KEYSESSION_ERROR"; + a[a.qvb = 7706] = "EME_NO_KEYMESSAGE"; + a[a.ada = 7707] = "EME_REMOVE_FAILED"; + a[a.QGa = 7708] = "EME_LOAD_FAILED"; + a[a.LGa = 7709] = "EME_CREATE_SESSION_FAILED"; + a[a.hvb = 7710] = "EME_LDL_RENEWAL_ERROR"; + a[a.Yca = 7711] = "EME_INVALID_INITDATA_DATA"; + a[a.Zca = 7712] = "EME_INVALID_LICENSE_DATA"; + a[a.PGa = 7713] = "EME_LDL_KEYSSION_ALREADY_CLOSED"; + a[a.ivb = 7714] = "EME_MEDIAKEYS_GENERIC_ERROR"; + a[a.$ca = 7715] = "EME_INVALID_SECURESTOP_DATA"; + a[a.KGa = 7716] = "EME_CLOSE_FAILED"; + a[a.rMa = 7800] = "PLAYDATA_STORE_FAILURE"; + a[a.xyb = 7801] = "PLAYDATA_SEND_FAILURE"; + a[a.RE = 7900] = "BRANCH_PLAY_FAILURE"; + a[a.Zv = 7901] = "BRANCH_QUEUE_FAILURE"; + a[a.Lba = 7902] = "BRANCH_UPDATE_NEXT_SEGMENT_WEIGHTS_FAILURE"; + a[a.Mxb = 8E3] = "NRDP_REGISTRATION_ACTIVATE_FAILURE"; + a[a.Nxb = 8010] = "NRDP_REGISTRATION_SSO_ACTIVATE_FAILURE"; + a[a.FLa = 8100] = "PBO_EVENTLOOKUP_FAILURE"; + }(a = d.I || (d.I = {}))); (function(a) { - a[a.iua = 5003] = "BR_VIEWABLE_OUT_OF_AVAILABILITY_WINDOW"; - a[a.dua = 5005] = "BR_ACCOUNT_ON_HOLD"; - a[a.gua = 5006] = "BR_CONCURRENT_STREAM_QUOTA_EXCEEDED"; - a[a.hua = 5033] = "BR_INSUFFICIENT_MATURITY_LEVEL"; - a[a.fua = 5059] = "BR_BLACKLISTED_IP"; - a[a.eua = 5070] = "BR_AGE_VERIFICATION_REQUIRED"; - a[a.Gdb = 2204] = "BR_PLAYBACK_CONTEXT_CREATION"; - a[a.Edb = 2205] = "BR_DRM_LICENSE_AQUISITION"; - a[a.Hdb = 2206] = "BR_PLAYBACK_SERVICE_ERROR"; - a[a.Fdb = 2207] = "BR_ENDPOINT_ERROR"; - a[a.Ddb = 2208] = "BR_AUTHORIZATION_ERROR"; - }(c.hu || (c.hu = {}))); + a[a.Sh = 1001] = "UNKNOWN"; + a[a.qg = 1003] = "EXCEPTION"; + a[a.IIa = 1004] = "INVALID_DI"; + a[a.NCa = 1011] = "ASYNCLOAD_EXCEPTION"; + a[a.OCa = 1013] = "ASYNCLOAD_TIMEOUT"; + a[a.KCa = 1015] = "ASYNCLOAD_BADCONFIG"; + a[a.LCa = 1016] = "ASYNCLOAD_COMPONENT_DUPLICATE"; + a[a.MCa = 1017] = "ASYNCLOAD_COMPONENT_MISSING"; + a[a.$z = 1101] = "HTTP_UNKNOWN"; + a[a.CX = 1102] = "HTTP_XHR"; + a[a.kF = 1103] = "HTTP_PROTOCOL"; + a[a.jF = 1104] = "HTTP_OFFLINE"; + a[a.lF = 1105] = "HTTP_TIMEOUT"; + a[a.hw = 1106] = "HTTP_READTIMEOUT"; + a[a.Vs = 1107] = "HTTP_ABORT"; + a[a.yX = 1108] = "HTTP_PARSE"; + a[a.wda = 1110] = "HTTP_BAD_URL"; + a[a.Zz = 1111] = "HTTP_PROXY"; + a[a.Mea = 1203] = "MSE_AUDIO"; + a[a.Nea = 1204] = "MSE_VIDEO"; + a[a.VJa = 1250] = "MSE_MEDIA_ERR_BASE"; + a[a.fxb = 1251] = "MSE_MEDIA_ERR_ABORTED"; + a[a.ixb = 1252] = "MSE_MEDIA_ERR_NETWORK"; + a[a.gxb = 1253] = "MSE_MEDIA_ERR_DECODE"; + a[a.jxb = 1254] = "MSE_MEDIA_ERR_SRC_NOT_SUPPORTED"; + a[a.hxb = 1255] = "MSE_MEDIA_ERR_ENCRYPTED"; + a[a.Vz = 1260] = "EME_MEDIA_KEYERR_BASE"; + a[a.ovb = 1261] = "EME_MEDIA_KEYERR_UNKNOWN"; + a[a.jvb = 1262] = "EME_MEDIA_KEYERR_CLIENT"; + a[a.nvb = 1263] = "EME_MEDIA_KEYERR_SERVICE"; + a[a.mvb = 1264] = "EME_MEDIA_KEYERR_OUTPUT"; + a[a.lvb = 1265] = "EME_MEDIA_KEYERR_HARDWARECHANGE"; + a[a.kvb = 1266] = "EME_MEDIA_KEYERR_DOMAIN"; + a[a.pvb = 1269] = "EME_MEDIA_UNAVAILABLE_CDM"; + a[a.NGa = 1280] = "EME_ERROR_NODRMSESSSION"; + a[a.MGa = 1281] = "EME_ERROR_NODRMREQUESTS"; + a[a.dvb = 1282] = "EME_ERROR_INDIV_FAILED"; + a[a.evb = 1283] = "EME_ERROR_UNSUPPORTED_MESSAGETYPE"; + a[a.SGa = 1284] = "EME_TIMEOUT_MESSAGE"; + a[a.RGa = 1285] = "EME_TIMEOUT_KEYCHANGE"; + a[a.JW = 1286] = "EME_UNDEFINED_DATA"; + a[a.$E = 1287] = "EME_INVALID_STATE"; + a[a.gvb = 1288] = "EME_LDL_DOES_NOT_SUPPORT_PRK"; + a[a.IW = 1289] = "EME_EMPTY_DATA"; + a[a.aF = 1290] = "EME_TIMEOUT"; + a[a.Bxb = 1303] = "NCCP_METHOD_NOT_SUPPORTED"; + a[a.Exb = 1305] = "NCCP_PARSEXML"; + a[a.UMa = 1309] = "PROCESS_EXCEPTION"; + a[a.Dxb = 1311] = "NCCP_NETFLIXID_MISSING"; + a[a.Fxb = 1312] = "NCCP_SECURENETFLIXID_MISSING"; + a[a.yxb = 1313] = "NCCP_HMAC_MISSING"; + a[a.xxb = 1315] = "NCCP_HMAC_MISMATCH"; + a[a.wxb = 1317] = "NCCP_HMAC_FAILED"; + a[a.vxb = 1321] = "NCCP_CLIENTTIME_MISSING"; + a[a.uxb = 1323] = "NCCP_CLIENTTIME_MISMATCH"; + a[a.rda = 1331] = "GENERIC"; + a[a.UKa = 1333] = "NCCP_PROTOCOL_INVALIDDEVICECREDENTIALS"; + a[a.VKa = 1337] = "NCCP_PROTOCOL_REDIRECT_LOOP"; + a[a.Gxb = 1341] = "NCCP_TRANSACTION"; + a[a.zxb = 1343] = "NCCP_INVALID_DRMTYPE"; + a[a.Axb = 1344] = "NCCP_INVALID_LICENCE_RESPONSE"; + a[a.Cxb = 1345] = "NCCP_MISSING_PAYLOAD"; + a[a.Yfa = 1346] = "PROTOCOL_NOT_INITIALIZED"; + a[a.Pyb = 1347] = "PROTOCOL_MISSING_FIELD"; + a[a.VMa = 1348] = "PROTOCOL_MISMATCHED_PROFILEGUID"; + a[a.dm = 1402] = "STORAGE_NODATA"; + a[a.Pzb = 1403] = "STORAGE_EXCEPTION"; + a[a.lha = 1405] = "STORAGE_QUOTA_NOT_GRANTED"; + a[a.mha = 1407] = "STORAGE_QUOTA_TO_SMALL"; + a[a.kha = 1411] = "STORAGE_LOAD_ERROR"; + a[a.TOa = 1412] = "STORAGE_LOAD_TIMEOUT"; + a[a.nha = 1414] = "STORAGE_SAVE_ERROR"; + a[a.WOa = 1415] = "STORAGE_SAVE_TIMEOUT"; + a[a.DY = 1417] = "STORAGE_DELETE_ERROR"; + a[a.iha = 1418] = "STORAGE_DELETE_TIMEOUT"; + a[a.jha = 1421] = "STORAGE_FS_REQUESTFILESYSTEM"; + a[a.ROa = 1423] = "STORAGE_FS_GETDIRECTORY"; + a[a.SOa = 1425] = "STORAGE_FS_READENTRIES"; + a[a.OOa = 1427] = "STORAGE_FS_FILEREAD"; + a[a.QOa = 1429] = "STORAGE_FS_FILEWRITE"; + a[a.POa = 1431] = "STORAGE_FS_FILEREMOVE"; + a[a.Qzb = 1432] = "STORAGE_FS_PARSEJSON"; + a[a.VOa = 1451] = "STORAGE_NO_LOCALSTORAGE"; + a[a.UOa = 1453] = "STORAGE_LOCALSTORAGE_ACCESS_EXCEPTION"; + a[a.Txb = 1501] = "NTBA_UNKNOWN"; + a[a.Sxb = 1502] = "NTBA_EXCEPTION"; + a[a.Oxb = 1504] = "NTBA_CRYPTO_KEY"; + a[a.Qxb = 1506] = "NTBA_CRYPTO_OPERATION"; + a[a.Pxb = 1508] = "NTBA_CRYPTO_KEYEXCHANGE"; + a[a.Rxb = 1515] = "NTBA_DECRYPT_UNSUPPORTED"; + a[a.yca = 1553] = "DEVICE_NO_ESN"; + a[a.tW = 1555] = "DEVICE_ERROR_GETTING_ESN"; + a[a.Ufa = 1603] = "PLUGIN_LOAD_MISSING"; + a[a.Sfa = 1605] = "PLUGIN_LOAD_ERROR"; + a[a.Vfa = 1607] = "PLUGIN_LOAD_TIMEOUT"; + a[a.Tfa = 1609] = "PLUGIN_LOAD_EXCEPTION"; + a[a.PMa = 1625] = "PLUGIN_EXCEPTION"; + a[a.MMa = 1627] = "PLUGIN_CALLBACK_ERROR"; + a[a.NMa = 1629] = "PLUGIN_CALLBACK_TIMEOUT"; + a[a.uHa = 1701] = "FORMAT_UNKNOWN"; + a[a.kda = 1713] = "FORMAT_XML"; + a[a.vHa = 1715] = "FORMAT_XML_CONTENT"; + a[a.tHa = 1721] = "FORMAT_BASE64"; + a[a.BM = 1723] = "FORMAT_DFXP"; + a[a.aIa = 1801] = "INDEXDB_OPEN_EXCEPTION"; + a[a.Eda = 1802] = "INDEXDB_NOT_SUPPORTED"; + a[a.$Ha = 1803] = "INDEXDB_OPEN_ERROR"; + a[a.Fda = 1804] = "INDEXDB_OPEN_NULL"; + a[a.ZHa = 1805] = "INDEXDB_OPEN_BLOCKED"; + a[a.bIa = 1807] = "INDEXDB_OPEN_TIMEOUT"; + a[a.YHa = 1808] = "INDEXDB_INVALID_STORE_STATE"; + a[a.PM = 1809] = "INDEXDB_ACCESS_EXCEPTION"; + a[a.dKa = 1901] = "MSL_UNKNOWN"; + a[a.XJa = 1911] = "MSL_INIT_NO_MSL"; + a[a.Sea = 1913] = "MSL_INIT_ERROR"; + a[a.YJa = 1915] = "MSL_INIT_NO_WEBCRYPTO"; + a[a.Pea = 1931] = "MSL_ERROR"; + a[a.cKa = 1933] = "MSL_REQUEST_TIMEOUT"; + a[a.bKa = 1934] = "MSL_READ_TIMEOUT"; + a[a.WJa = 1935] = "MSL_ERROR_HEADER"; + a[a.vF = 1936] = "MSL_ERROR_ENVELOPE"; + a[a.Qea = 1937] = "MSL_ERROR_MISSING_PAYLOAD"; + a[a.Rea = 1957] = "MSL_ERROR_REAUTH"; + a[a.TY = 2103] = "WEBCRYPTO_MISSING"; + a[a.AQa = 2105] = "WEBCRYPTOKEYS_MISSING"; + a[a.BQa = 2107] = "WEBCRYPTO_IFRAME_LOAD_ERROR"; + a[a.iub = 2200] = "CACHEDDATA_PARSEJSON"; + a[a.Wba = 2201] = "CACHEDDATA_UNSUPPORTED_VERSION"; + a[a.jub = 2202] = "CACHEDDATA_UPGRADE_FAILED"; + a[a.Ps = 2203] = "CACHEDDATA_INVALID_FORMAT"; + a[a.kba = 3E3] = "ACCOUNT_CHANGE_INFLIGHT"; + a[a.ACa = 3001] = "ACCOUNT_INVALID"; + a[a.Nub = 3100] = "DOWNLOADED_MANIFEST_UNAVAILABLE"; + a[a.Mub = 3101] = "DOWNLOADED_MANIFEST_PARSE_EXCEPTION"; + a[a.Kub = 3200] = "DOWNLOADED_LICENSE_UNAVAILABLE"; + a[a.Lub = 3201] = "DOWNLOADED_LICENSE_UNUSEABLE"; + a[a.Jub = 3202] = "DOWNLOADED_LICENSE_EXCEPTION"; + a[a.Rzb = 3300] = "STORAGE_VA_LOAD_ERROR"; + a[a.Szb = 3301] = "STORAGE_VA_LOAD_TIMEOUT"; + a[a.Vzb = 3302] = "STORAGE_VA_SAVE_ERROR"; + a[a.Wzb = 3303] = "STORAGE_VA_SAVE_TIMEOUT"; + a[a.Tzb = 3304] = "STORAGE_VA_REMOVE_ERROR"; + a[a.Uzb = 3305] = "STORAGE_VA_REMOVE_TIMEOUT"; + a[a.hY = 3077] = "PBO_DEVICE_EOL_WARNING"; + a[a.Ifa = 3078] = "PBO_DEVICE_EOL_FINAL"; + a[a.LLa = 5003] = "PBO_VIEWABLE_OUT_OF_AVAILABILITY_WINDOW"; + a[a.ALa = 5005] = "PBO_ACCOUNT_ON_HOLD"; + a[a.ELa = 5006] = "PBO_CONCURRENT_STREAM_QUOTA_EXCEEDED"; + a[a.Jfa = 5007] = "PBO_INCORRECT_PIN"; + a[a.JLa = 5008] = "PBO_MOBILE_ONLY"; + a[a.GLa = 5033] = "PBO_INSUFFICIENT_MATURITY_LEVEL"; + a[a.CLa = 5059] = "PBO_BLACKLISTED_IP"; + a[a.BLa = 5070] = "PBO_AGE_VERIFICATION_REQUIRED"; + a[a.DLa = 5080] = "PBO_CHOICE_MAP_ERROR"; + a[a.KLa = 5090] = "PBO_RESTRICTED_TO_TESTERS"; + a[a.ILa = 5091] = "PBO_MALFORMED_REQUEST"; + a[a.HLa = 5092] = "PBO_INVALID_SERVICE_VERSION"; + a[a.hFa = 5100] = "DECODER_TIMEOUT_BUFFERING"; + a[a.iFa = 5101] = "DECODER_TIMEOUT_PRESENTING"; + a[a.dGa = 5200] = "DOWNLOADER_IO_ERROR"; + a[a.Kba = 5300] = "BRANCHING_SEGMENT_NOTFOUND"; + a[a.ADa = 5301] = "BRANCHING_PRESENTER_UNINITIALIZED"; + a[a.wtb = 5302] = "BRANCHING_SEGMENT_STREAMING_NOT_STARTED"; + a[a.gW = 5303] = "BRANCHING_ASE_UNINITIALIZED"; + a[a.wDa = 5304] = "BRANCHING_ASE_FAILURE"; + a[a.yDa = 5305] = "BRANCHING_MOMENT_FAILURE"; + a[a.xDa = 5306] = "BRANCHING_CURRENT_SEGMENT_UNINITIALIZED"; + a[a.vtb = 5307] = "BRANCHING_SEGMENT_LASTPTS_UNINIITALIZED"; + a[a.BDa = 5308] = "BRANCHING_SEEK_THREW"; + a[a.utb = 5309] = "BRANCHING_PLAY_NOTENOUGHNEXTSEGMENTS"; + a[a.zDa = 5310] = "BRANCHING_PLAY_TIMEDOUT"; + a[a.CDa = 5311] = "BRANCHING_SEGMENT_ALREADYQUEUED"; + a[a.DDa = 5312] = "BRANCHING_UPDATE_NEXT_SEGMENT_WEIGHTS_THREW"; + }(b = d.H || (d.H = {}))); (function(a) { - a[a.Njb = 21E3] = "Undefined"; - a[a.sdb = 21001] = "AggregateError"; - a[a.nfb = 21002] = "EventStoreError"; - a[a.Mib = 21003] = "RequestTypeError"; - a[a.Rhb = 21004] = "NullPointerError"; - a[a.fhb = 22E3] = "MembershipError"; - a[a.egb = 22001] = "LicenseAggregateError"; - a[a.Ijb = 22002] = "TotalLicensesPerDeviceReached"; - a[a.Hjb = 22003] = "TotalLicensesPerAccountReached"; - a[a.Gjb = 22004] = "TitleNotAvailableForOffline"; - a[a.wjb = 22005] = "StudioOfflineTitleLimitReached"; - a[a.akb = 22006] = "YearlyStudioDownloadLimitReached"; - a[a.bkb = 22007] = "YearlyStudioLicenseLimitReached"; - a[a.Ntb = 22008] = "viewingWindowExpired"; - a[a.fgb = 22009] = "LicenseIdMismatch"; - a[a.Yhb = 23E3] = "OfflineDeviceLimitReached"; - a[a.Leb = 23001] = "DeviceAggregateError"; - a[a.Neb = 23002] = "DeviceDeactivationLimitError"; - a[a.hgb = 24E3] = "LicenseNotMarkedPlayable"; - a[a.Jib = 24001] = "RefreshLicenseIdMismatch"; - a[a.igb = 24002] = "LicenseReleasedError"; - a[a.kgb = 24003] = "LicenseTooOld"; - a[a.Heb = 24004] = "DataMissError"; - a[a.Ieb = 24005] = "DataWriteError"; - a[a.Oeb = 24006] = "DeviceNotActiveError"; - a[a.Yjb = 24007] = "ViewableNotAvailableInRegion"; - a[a.sib = 24008] = "PackageRevokedError"; - a[a.rjb = 25E3] = "ServerError"; - a[a.Rfb = 25001] = "IOError"; - a[a.Keb = 25002] = "DependencyCommandError"; - a[a.peb = 25003] = "ClientUsageError"; - a[a.Eib = 26001] = "PlayableAggregateError"; - a[a.ggb = 26002] = "LicenseNotActive"; - a[a.Fib = 26003] = "PlayableLicenseIdMismatch"; - a[a.Lib = 27001] = "ReleaseLicenseIdMismatch"; - a[a.Kib = 27002] = "ReleaseDeviceOwnerMismatch"; - a[a.jgb = 28008] = "LicenseReleasedViaDeactivate"; - a[a.ihb = 28001] = "MigrateLicenseIdMismatch"; - a[a.yjb = 28002] = "SyncLicenseIdMismatch"; - }(c.eza || (c.eza = {}))); - }, function(f, c, a) { - var b, d, h, l, g, m, p, r; - Object.defineProperty(c, "__esModule", { - value: !0 - }); - b = a(422); - f = a(12); - d = a(34); - h = a(2); - l = a(152); - g = a(153); - m = a(62); - p = a(14); - r = a(309); - c.T4a = r.a4; - c.Cx = b.sb.get(l.mK); - c.XB = c.Cx.encode.bind(c.Cx); - c.wI = c.Cx.decode.bind(c.Cx); - c.Ak = b.sb.get(g.MI); - c.dlb = c.Ak.encode.bind(c.Ak); - c.clb = c.Ak.decode.bind(c.Ak); - c.mM = c.Ak.yF.bind(c.Ak); - c.elb = c.Ak.osa.bind(c.Ak); - c.xg = b.sb.get(m.fl); - c.Dp = function(a) { - a = p.oc(a) ? c.wI(a) : a; - return c.xg.encode(a); - }; - c.Pi = c.xg.decode.bind(c.xg); - c.zNa = function(a) { - return c.XB(c.Pi(a)); - }; - c.Df = a(13); - c.kfb = function(a) { + a[a.Htb = 5003] = "BR_VIEWABLE_OUT_OF_AVAILABILITY_WINDOW"; + a[a.xtb = 5005] = "BR_ACCOUNT_ON_HOLD"; + a[a.Btb = 5006] = "BR_CONCURRENT_STREAM_QUOTA_EXCEEDED"; + a[a.Etb = 5033] = "BR_INSUFFICIENT_MATURITY_LEVEL"; + a[a.Atb = 5059] = "BR_BLACKLISTED_IP"; + a[a.ytb = 5070] = "BR_AGE_VERIFICATION_REQUIRED"; + a[a.Ftb = 2204] = "BR_PLAYBACK_CONTEXT_CREATION"; + a[a.Ctb = 2205] = "BR_DRM_LICENSE_AQUISITION"; + a[a.Gtb = 2206] = "BR_PLAYBACK_SERVICE_ERROR"; + a[a.Dtb = 2207] = "BR_ENDPOINT_ERROR"; + a[a.ztb = 2208] = "BR_AUTHORIZATION_ERROR"; + }(d.jHa || (d.jHa = {}))); + d.DX = { + IDa: "400", + BAb: "401", + $fa: "413" + }; + d.XX = { + Rvb: 1, + nAb: 2, + tvb: 3, + AAb: 4, + Qwb: 5, + svb: 6, + QY: 7, + XGa: 8, + mzb: 9, + Mzb: 10 + }; + d.Avb = function(a) { return 7100 <= a && 7200 > a; }; - c.kxa = function(a) { - return a == h.v.RJ || a == h.v.BJ; + d.iHa = function(b) { + return b == a.cN || b == a.OM; }; - c.mxa = function(a) { + d.lHa = function(a) { return 1100 <= a && 1199 >= a; }; - c.mfb = function(a) { + d.Cvb = function(a) { return 1300 <= a && 1399 >= a; }; - c.lfb = function(a) { + d.Bvb = function(a) { return 1900 <= a && 1999 >= a; }; - c.s8 = function(a, b) { + d.eda = function(a, b) { return 1 <= a && 9 >= a ? b + a : b; }; - c.nxa = function(a) { - return c.s8(a, h.u.Nza); + d.mHa = function(a) { + return d.eda(a, b.VJa); }; - c.t8 = function(a) { - return c.s8(a, h.u.eu); + d.fda = function(a) { + return d.eda(a, b.Vz); }; - c.jk = function(a) { - var b, c, g; - b = {}; - c = a.errorExternalCode || a.ub; - g = a.errorDetails || a.za; - b.ErrorSubCode = a.errorSubCode || a.R || h.u.Vg; - c && (b.ErrorExternalCode = c); - g && (b.ErrorDetails = g); - return b; + d.kn = function(a) { + var d, c, f; + d = {}; + c = a.errorExternalCode || a.ic; + f = a.errorDetails || a.Ja; + d.ErrorSubCode = a.errorSubCode || a.T || b.Sh; + c && (d.ErrorExternalCode = c); + f && (d.ErrorDetails = f); + return d; }; - c.fFa = a(554); - c.Sz = function() { - return b.sb.get(d.ES); + }, function(g, d, a) { + var b, c, h, k, f, p, m, r; + Object.defineProperty(d, "__esModule", { + value: !0 + }); + b = a(473); + g = a(7); + c = a(27); + h = a(99); + k = a(100); + f = a(44); + p = a(17); + m = a(63); + r = a(255); + d.oib = r.h9; + d.Vl = b.Nc.get(h.Iw); + d.IV = d.Vl.encode.bind(d.Vl); + d.IL = d.Vl.decode.bind(d.Vl); + d.Wg = b.Nc.get(k.$v); + d.LBb = d.Wg.encode.bind(d.Wg); + d.KBb = d.Wg.decode.bind(d.Wg); + d.Lma = d.Wg.sI.bind(d.Wg); + d.MBb = d.Wg.rBa.bind(d.Wg); + d.Rd = b.Nc.get(f.nj); + d.nr = function(a) { + a = p.bd(a) ? d.IL(a) : a; + return d.Rd.encode(a); + }; + d.hk = d.Rd.decode.bind(d.Rd); + d.LYa = function(a) { + return d.IV(d.hk(a)); + }; + d.yPa = a(514); + d.zC = function() { + return b.Nc.get(c.EW); + }; + d.af = b.Nc.get(g.sb); + d.log = d.af.lb("General"); + d.zd = function(a, b) { + return d.af.lb(a, void 0, b); + }; + d.qf = function(a, b) { + return d.af.lb(b, a, void 0); + }; + d.yR = function(a, b, f, c) { + return d.af.lb(a, void 0, c, b, f); + }; + d.ww = function(a, f) { + return b.Nc.get(m.Sj)(a, f, void 0).zaa(); + }; + d.ca = b.Nc; + }, function(g, d, a) { + var h; + + function b(a) { + return h.rN.apply(this, arguments) || this; + } + + function c(a) { + return new h.Ko(a, d.Aa); + } + Object.defineProperty(d, "__esModule", { + value: !0 + }); + h = a(465); + ia(b, h.rN); + d.tAb = b; + d.pGb = function(a) { + return new h.Ko(a, d.hA); + }; + d.Ejb = function(a) { + return new h.Ko(a * d.em.ue, d.hA); }; - c.si = b.sb.get(f.Jb); - c.log = c.si.Bb("General"); - c.Cc = function(a, b) { - return c.si.Bb(a, void 0, b); + d.rb = c; + d.hh = function(a) { + return new h.Ko(a, d.em); }; - c.Je = function(a, b) { - return c.si.Bb(b, a, void 0); + d.K7 = function(a) { + return new h.Ko(a, d.gfa); }; - c.UN = function(a, b, g, d) { - return c.si.Bb(a, void 0, d, b, g); + d.eFb = function(a) { + return new h.Ko(a, d.SHa); + }; + d.timestamp = function(a) { + return c(a); + }; + d.hA = new b(1, "\u03bcs"); + d.Aa = new b(1E3, "ms", d.hA); + d.em = new b(1E3 * d.Aa.ue, "s", d.hA); + d.gfa = new b(60 * d.em.ue, "min", d.hA); + d.SHa = new b(60 * d.gfa.ue, "hr", d.hA); + d.Sf = c(0); + }, function(g, d) { + Object.defineProperty(d, "__esModule", { + value: !0 + }); + d.Qb = function() {}; + d.iOa = function() { + return !0; + }; + d.Bb = { + S: !0 + }; + d.Qj = 1E3; + d.szb = 86400; + d.tzb = 604800; + d.Ywb = 1E4; + d.Zwb = 1E7; + d.EAb = 1.5; + d.Owb = .128; + d.ttb = 7.8125; + d.Jtb = 128; + d.nw = 145152E5; + d.JJa = 1E5; + d.eY = "$netflix$player$order"; + d.mA = -1; + d.fY = 1; + d.qFa = ["en-US"]; + d.Ktb = 8; + d.KJa = 65535; + d.Lzb = 65536; + d.Yxb = Number.MAX_VALUE; + d.HW = "playready"; + d.Qca = "widevine"; + d.cvb = "fps"; + d.GGa = "clearkey"; + d.ow = 'audio/mp4; codecs="mp4a.40.5"'; + d.MJa = 'audio/mp4; codecs="mp4a.a6"'; + d.Wk = 'video/mp4; codecs="avc1.640028"'; + d.axb = 'video/mp4; codecs="hev1.2.6.L153.B0"'; + d.$wb = 'video/mp4; codecs="dvhe.01000000"'; + d.EGa = "9A04F079-9840-4286-AB92-E65BE0885F95"; + d.avb = "29701FE4-3CC7-4A34-8C5B-AE90C7439A47"; + d.bvb = "EDEF8BA9-79D6-4ACE-A3C8-27DCD51D21ED"; + d.Ytb = ["4E657466-6C69-7850-6966-665374726D21", "4E657466-6C69-7848-6165-6465722E7632"]; + d.VDa = "A2394F52-5A9B-4F14-A244-6C427C648DF4"; + d.Ztb = "4E657466-6C69-7846-7261-6D6552617465"; + d.$tb = "8974DBCE-7BE7-4C51-84F9-7148F9882554"; + d.Utb = "mp4a"; + d.TDa = "enca"; + d.Rtb = "ec-3"; + d.Ptb = "avc1"; + d.UDa = "encv"; + d.Ttb = "hvcC"; + d.Stb = "hev1"; + d.Qtb = "dvhe"; + d.Vtb = "vp09"; + d.OX = 0; + d.uF = 1; + }, function(g, d) { + Object.defineProperty(d, "__esModule", { + value: !0 + }); + g = "undefined" === typeof A ? {} : A; + d.Ph = g.navigator || {}; + d.pj = d.Ph.userAgent; + d.YM = g.location; + d.xq = g.screen; + d.wq = g.performance; + d.wd = g.document || {}; + d.Ixb = d.wd.documentElement; + d.$t = Array.prototype; + d.sort = d.$t.sort; + d.map = d.$t.map; + d.slice = d.$t.slice; + d.every = d.$t.every; + d.reduce = d.$t.reduce; + d.filter = d.$t.filter; + d.forEach = d.$t.forEach; + d.pop = d.$t.pop; + d.DF = Object.create; + d.rLa = Object.keys; + d.uM = Date.now; + d.uPa = String.fromCharCode; + d.uq = Math.floor; + d.pKa = Math.ceil; + d.Uf = Math.round; + d.Xk = Math.max; + d.Ai = Math.min; + d.xF = Math.random; + d.wF = Math.abs; + d.Xea = Math.pow; + d.qKa = Math.sqrt; + d.bY = g.escape; + d.cY = g.unescape; + d.URL = g.URL || g.webkitURL; + d.jA = g.MediaSource || g.WebKitMediaSource; + d.AF = g.WebKitMediaKeys || g.MSMediaKeys || g.MediaKeys; + d.ht = g.nfCrypto || g.webkitCrypto || g.msCrypto || g.crypto; + d.Em = d.ht && (d.ht.webkitSubtle || d.ht.subtle); + d.aY = g.nfCryptokeys || g.webkitCryptokeys || g.msCryptokeys || g.cryptokeys; + d.PERSISTENT = g.PERSISTENT; + d.TEMPORARY = g.TEMPORARY; + d.$Ka = g.requestFileSystem || g.webkitRequestFileSystem; + d.pfa = g.Blob; + d.ZM = d.Ph.persistentStorage || d.Ph.webkitPersistentStorage; + d.qfa = d.ZM ? void 0 : g.storageInfo || g.webkitStorageInfo; + try { + d.indexedDB = g.indexedDB; + } catch (a) { + d.pFb = a || "noex"; + } + try { + d.localStorage = g.localStorage; + } catch (a) { + d.nua = a || "noex"; + } + }, function(g, d) { + Object.defineProperty(d, "__esModule", { + value: !0 + }); + g = d.Oh || (d.Oh = {}); + g[g.sHa = 0] = "FATAL"; + g[g.ERROR = 1] = "ERROR"; + g[g.dia = 2] = "WARN"; + g[g.EX = 3] = "INFO"; + g[g.LY = 4] = "TRACE"; + g[g.nq = 5] = "DEBUG"; + d.Eea = "LogFieldBuilderFactorySymbol"; + d.sb = "LoggerFactorySymbol"; + d.ew = {}; + }, function(g) { + g.M = { + SI: function(d) { + for (var a in d) d.hasOwnProperty(a) && (this[a] = d[a]); + }, + reset: function() {} }; - c.Z = b.sb; - }, function(f, c, a) { - var h, l, g, m, p, r, u, v, z, w, k, x, y, C; + }, function(g, d, a) { + var h, k, f, p, m, r, u, x, v, y, w, D, z, E, l; function b(a) { - return (a = c.config.Tbb[d(a)]) ? a : {}; + return (a = d.config.qrb[c(a)]) ? a : {}; } - function d(a) { + function c(a) { if (a) { if (0 <= a.indexOf("billboard")) return "billboard"; if (0 <= a.toLowerCase().indexOf("preplay")) return "preplay"; if (0 <= a.indexOf("embedded")) return "embedded"; } } - Object.defineProperty(c, "__esModule", { + Object.defineProperty(d, "__esModule", { value: !0 }); - h = a(6); - l = a(25); - g = a(3); - m = a(47); - p = a(8); - r = a(14); - u = a(36); - v = a(34); - z = a(64); - w = a(19); - a(12); - k = a(5); - x = a(17); - y = a(92); - C = a(15); - c.wPa = function(a) { - var ka, ua, la, Sa, vb, ub, A, wa, na, H, mb; + h = a(5); + k = a(25); + f = a(3); + p = a(52); + m = a(12); + r = a(17); + u = a(33); + x = a(27); + v = a(72); + y = a(18); + a(7); + w = a(6); + D = a(21); + z = a(97); + E = a(15); + l = a(209); + d.Z_a = function(a) { + var ma, va, fa, Ga, Da, ub, ib, Ma, G, jb; - function b(a, c) { - w.Kb(a, function(a, d) { - C.wb(d) ? c[a] = d.call(void 0, c[a]) : C.Pd(d) && (c[a] = c[a] || {}, b(d, c[a])); + function b(a, f) { + y.pc(a, function(a, c) { + E.qb(c) ? f[a] = c.call(void 0, f[a]) : E.ne(c) && (f[a] = f[a] || {}, b(c, f[a])); }); } - function d(a, b) { - for (var c = [], d = 1; d < arguments.length; ++d) c[d - 1] = arguments[d]; + function c(a, b) { + for (var f = [], c = 1; c < arguments.length; ++c) f[c - 1] = arguments[c]; return function(b) { - C.$a(b) && (c[1] = b); - p.ea(C.wb(a)); - return a.apply(void 0, c); + E.ab(b) && (f[1] = b); + m.sa(E.qb(a)); + return a.apply(void 0, f); }; } - function f(a) { + function g(a) { a = a.toLowerCase(); - vb.hasOwnProperty(a) && (Sa[a] = vb[a], ub[a] = vb[a]); + Ga.hasOwnProperty(a) && (fa[a] = Ga[a], Da[a] = Ga[a]); return a; } function F(a, b, c) { var d; a = a.toLowerCase(); - if (Sa.hasOwnProperty(a)) { - d = Sa[a]; + if (fa.hasOwnProperty(a)) { + d = fa[a]; try { d = c ? c(d) : d; - } catch (Ra) { + } catch (hb) { d = void 0; } if (void 0 !== d) return d; - p.ea(!1); - g.log.error("Invalid configuration value. Name: " + a); + m.sa(!1); + f.log.error("Invalid configuration value. Name: " + a); } return b; } - function G(a, b, c, d) { + function P(a, b, f, c) { return F(a, b, function(a) { - C.oc(a) && (a = w.Zc(a)); - if (C.I_a(a, c, d)) return a; + E.bd(a) && (a = y.Bd(a)); + if (E.ocb(a, f, c)) return a; }); } - function B(a, b, c, d) { + function n(a, b, f, c) { return F(a, b, function(a) { - C.oc(a) && (a = w.Zc(a)); - if (C.et(a, c, d)) return a; + E.bd(a) && (a = y.Bd(a)); + if (E.Tu(a, f, c)) return a; }); } - function n(a, b, c, d) { + function q(a, b, f, c) { return F(a, b, function(a) { - C.oc(a) && (a = parseFloat(a)); - if (C.da(a, c, d)) return a; + E.bd(a) && (a = parseFloat(a)); + if (E.ja(a, f, c)) return a; }); } - function q(a, b, c) { + function T(a, b, f) { return F(a, b, function(a) { - if (c ? c.test(a) : C.oc(a)) return a; + if (f ? f.test(a) : E.bd(a)) return a; }); } - function D(a, b) { + function H(a, b) { return F(a, b, function(a) { if ("true" == a || !0 === a) return !0; if ("false" == a || !1 === a) return !1; }); } - function S(a, b) { + function X(a, b) { return F(a, b, function(a) { - if (C.oc(a)) return JSON.parse(k.eU(a)); - if (C.Pd(a)) return a; + if (E.bd(a)) return JSON.parse(w.cY(a)); + if (E.ne(a)) return a; }); } - function da(a, b, c, d, g, p) { + function aa(a, b, f, c, d, p) { var m; a = a.toLowerCase(); - Sa.hasOwnProperty(a) && (m = Sa[a]); - if (!C.$a(m)) return b; - if (C.oc(m)) - if (m[0] !== c) m = d(m); + fa.hasOwnProperty(a) && (m = fa[a]); + if (!E.ab(m)) return b; + if (E.bd(m)) + if (m[0] !== f) m = c(m); else try { - m = JSON.parse(k.eU(m)); - } catch (gb) { + m = JSON.parse(w.cY(m)); + } catch (tb) { m = void 0; } if (void 0 === m) return b; - for (a = 0; a < g.length; a++) - if (!g[a](m)) return b; + for (a = 0; a < d.length; a++) + if (!d[a](m)) return b; return p ? p(m) : m; } - function X(a, b, c, d, g) { - return da(a, b, "[", function(a) { + function t(a, b, f, c, d) { + return aa(a, b, "[", function(a) { a = a.split("|"); - for (var b = a.length; b--;) a[b] = w.Zc(a[b]); + for (var b = a.length; b--;) a[b] = y.Bd(a[b]); return a; }, [function(a) { - return C.isArray(a) && 0 < a.length; + return E.isArray(a) && 0 < a.length; }, function(a) { for (var b = a.length; b--;) - if (!C.et(a[b], c, d)) return !1; - return !0; - }, function(a) { - return void 0 === g || a.length >= g; - }]); - } - - function U(a, b, c, d, g, p) { - return da(a, b, "[", function(a) { - a = a.split(";"); - for (var b = a.length; b--;) { - a[b] = a[b].split("|"); - for (var c = a[b].length; c--;) a[b][c] = w.Zc(a[b][c]); - } - return a; - }, [function(a) { - return C.isArray(a) && 0 < a.length; - }, function(a) { - for (var b = a.length; b-- && void 0 !== a;) { - if (!C.isArray(a[b])) return !1; - for (var g = a[b].length; g--;) - if (!C.et(a[b][g], c, d)) return !1; - } + if (!E.Tu(a[b], f, c)) return !1; return !0; }, function(a) { - if (void 0 !== g) - for (var b = a.length; b--;) - if (g !== a[b].length) return !1; - return !0; - }, function(a) { - return void 0 === p || a.length >= p; + return void 0 === d || a.length >= d; }]); } - function ha(a, b) { - return da(a, b, "[", function(a) { - a = C.isArray(a) ? a : a.split("|"); + function Z(a, b) { + return aa(a, b, "[", function(a) { + a = E.isArray(a) ? a : a.split("|"); for (var b = a.length; b--;) try { - a[b] = JSON.parse(k.eU(a[b])); - } catch (Ra) { + a[b] = JSON.parse(w.cY(a[b])); + } catch (hb) { a = void 0; break; } return a; }, [function(a) { - return C.isArray(a) && 0 < a.length; + return E.isArray(a) && 0 < a.length; }, function(a) { for (var b = a.length; b--;) - if (!C.$a(a[b]) || !C.Pd(a[b])) return !1; + if (!E.ab(a[b]) || !E.ne(a[b])) return !1; return !0; }]); } - function ba(a, b, c, d) { - return da(a, b, "[", function(a) { - return C.isArray(a) ? a : a.split("|"); + function Q(a, b, f, c) { + return aa(a, b, "[", function(a) { + return E.isArray(a) ? a : a.split("|"); }, [function(a) { - return C.isArray(a) && 0 < a.length; + return E.isArray(a) && 0 < a.length; }, function(a) { for (var b = a.length; b--;) - if (c ? !c.test(a[b]) : !C.kq(a[b])) return !1; + if (f ? !f.test(a[b]) : !E.Uu(a[b])) return !1; return !0; }, function(a) { - return void 0 === d || a.length >= d; + return void 0 === c || a.length >= c; }]); } - function ea(a, b, c) { - return da(a, b, "{", function(a) { - var b, d, g; + function ja(a, b, f) { + return aa(a, b, "{", function(a) { + var b, c, d; b = {}; a = a.split(";"); - for (var c = a.length; c--;) { - d = a[c]; - g = d.indexOf(":"); - if (0 >= g) return; - b[d.substring(0, g)] = d.substring(g + 1); + for (var f = a.length; f--;) { + c = a[f]; + d = c.indexOf(":"); + if (0 >= d) return; + b[c.substring(0, d)] = c.substring(d + 1); } return b; }, [function(a) { - return C.Pd(a) && 0 < Object.keys(a).length; + return E.ne(a) && 0 < Object.keys(a).length; }, function(a) { - if (c) + if (f) for (var b in a) - if (!c.test(a[b])) return !1; + if (!f.test(a[b])) return !1; return !0; }], function(a) { - var c; - c = {}; - w.oa(c, b); - w.oa(c, a); - return c; + var f; + f = {}; + y.La(f, b); + y.La(f, a); + return f; }); } - function ia(a) { + function ea(a) { var b; b = []; - w.Kb(a, function(a, c) { - var d; + y.pc(a, function(a, f) { + var c; try { - d = "videoapp" === a.toLowerCase() ? "[object object]" : JSON.stringify(c); - } catch (zb) { - d = "cantparse"; + c = "videoapp" === a.toLowerCase() ? "[object object]" : JSON.stringify(f); + } catch (Qa) { + c = "cantparse"; } - b.push(a + "=" + d); + b.push(a + "=" + c); }); return b.join("\n"); } - ka = /^[0-9-+]+$/; - ua = /^[0-9]+[%]?$/; - la = /^[0-9]*$/; - ub = {}; - A = !0; - wa = !0; - na = g.Z.get(m.oj); + ma = /^[0-9]+[%]?$/; + va = /^[0-9]*$/; + Da = {}; + ub = !0; + ib = !0; + Ma = f.ca.get(p.$l); (function() { var c; @@ -16866,307 +17055,285 @@ v7AA.H22 = function() { a.split(",").forEach(function(a) { var b; b = a.indexOf("="); - 0 < b && (Sa[a.substring(0, b).toLowerCase()] = a.substring(b + 1)); + 0 < b && (fa[a.substring(0, b).toLowerCase()] = a.substring(b + 1)); }); } - Sa = {}; - w.oa(Sa, u.S$); - a && a.length && k.forEach.call(a, function(a) { - C.oc(a) ? b(a) : C.Pd(a) && w.oa(Sa, a, { - AA: !0 + fa = {}; + y.La(fa, u.qMa); + a && a.length && w.forEach.call(a, function(a) { + E.bd(a) ? b(a) : E.ne(a) && y.La(fa, a, { + iD: !0 }); }); - vb = w.oa({}, l.Z_(), { - AA: !0 + Ga = y.La({}, k.E4(), { + iD: !0 }); - c = l.N6a().cadmiumconfig; - c && (g.log.info("Config cookie loaded", c), b(c)); - if (u.pta || Sa.istestaccount) w.oa(Sa, vb), ub = vb; - "clearkey" != q("drmType") || Sa.keysystemid || (Sa.keysystemid = (t.WebKitMediaKeys || HTMLVideoElement.prototype.webkitGenerateKeyRequest ? "webkit-" : HTMLVideoElement.prototype.msSetMediaKeys ? "ms-" : "") + "org.w3.clearkey"); + c = k.Kkb().cadmiumconfig; + c && (f.log.info("Config cookie loaded", c), b(c)); + if (u.BCa || fa.istestaccount) y.La(fa, Ga), Da = Ga; + "clearkey" != T("drmType") || fa.keysystemid || (fa.keysystemid = (A.WebKitMediaKeys || HTMLVideoElement.prototype.webkitGenerateKeyRequest ? "webkit-" : HTMLVideoElement.prototype.msSetMediaKeys ? "ms-" : "") + "org.w3.clearkey"); }()); - c.config = {}; - H = { - PZ: function(a) { - return D(f("enableDDPlus20"), r.zg(a, !0)); + d.config = {}; + G = { + P2: function(a) { + return H(g("enableDDPlus20"), r.bg(a, !0)); + }, + O2: function(a) { + return H(g("enableDDPlus"), r.bg(a, !0)); + }, + XH: c(H, g("enableDDPlusAtmos"), !1), + EDb: function(a) { + return ub = H(g("enableLSSDH"), r.bg(a, !0)); }, - OZ: function(a) { - return D(f("enableDDPlus"), r.zg(a, !0)); + j5a: function(a) { + return H(g("enableHEVC"), r.bg(a, !1)); }, - iF: d(D, f("enableDDPlusAtmos"), !1), - $mb: function(a) { - return A = D(f("enableLSSDH"), r.zg(a, !0)); + Uwa: function(a) { + return H(g("overrideEnableHEVC"), r.bg(a, !1)); }, - gUa: function(a) { - return D(f("enableHEVC"), r.zg(a, !1)); + i5a: function(a) { + return H(g("enableHDR"), r.bg(a, !1)); }, - yoa: function(a) { - return D(f("overrideEnableHEVC"), r.zg(a, !1)); + Twa: function(a) { + return H(g("overrideEnableHDR"), r.bg(a, !1)); }, - fUa: function(a) { - return D(f("enableHDR"), r.zg(a, !1)); + v5a: function(a) { + return H(g("enableVP9"), r.bg(a, !1)); }, - xoa: function(a) { - return D(f("overrideEnableHDR"), r.zg(a, !1)); + Vwa: function(a) { + return H(g("overrideEnableVP9"), r.bg(a, !1)); }, - rUa: function(a) { - return D(f("enableVP9"), r.zg(a, !1)); + f5a: function(a) { + return H(g("enableAV1"), r.bg(a, !1)); }, - zoa: function(a) { - return D(f("overrideEnableVP9"), r.zg(a, !1)); + Swa: function(a) { + return H(g("overrideEnableAV1"), r.bg(a, !1)); }, - lUa: function(a) { - return D(f("enablePRK"), r.zg(a, !1)); + p5a: function(a) { + return H(g("enablePRK"), r.bg(a, !1)); }, - hUa: function(a) { - return D(f("enableHWDRM"), r.zg(a, !1)); + k5a: function(a) { + return H(g("enableHWDRM"), r.bg(a, !1)); }, - Zmb: function(a) { - return wa = D(f("enableImageSubs"), r.zg(a, !0)); + DDb: function(a) { + return ib = H(g("enableImageSubs"), r.bg(a, !0)); }, - kM: function(a) { - return ba("audioProfiles", r.zg(a, u.FBa)); + HP: function(a) { + return Q("audioProfiles", r.bg(a, u.RLa)); }, - Mmb: function(a) { - return D("disableHD", r.zg(a, !1)); + uDb: function(a) { + return H("disableHD", r.bg(a, !1)); }, - UR: d(B, "videoCapabilityDetectorType", v.Fi.du), - IX: d(B, "audioCapabilityDetectorType", v.au.du), - DI: function(a) { - return ba("videoProfiles", r.zg(a, u.dCa)); + NV: c(n, "videoCapabilityDetectorType", x.rj.dw), + A0: c(n, "audioCapabilityDetectorType", x.Yv.dw), + QL: function(a) { + return Q("videoProfiles", r.bg(a, u.oMa)); }, - t6: d(q, f("videoCodecs")), - LB: function(a) { - return ba("timedTextProfiles", r.zg(a, u.ZBa)).filter(function(a) { - return a === z.uj.vS ? A : a === z.uj.Xx ? wa : !0; + Ds: function(a) { + return Q("timedTextProfiles", r.bg(a, u.jMa)).filter(function(a) { + return a === v.Vj.uW ? ub : a === v.Vj.iA ? ib : !0; }); }, - endpoint: d(D, f("endpoint"), !1), - i5: d(D, f("setMediaKeysEarly"), !1), - SF: d(D, f("ignoreKeyStatusOutputNotAllowed"), !1), - m6: d(D, f("useSetServerCertificateApi"), !1), - pB: d(q, "serverCertificate", u.R$), - cia: d(D, f("doNotPerformLdlOnPlaybackCreate"), !1), - dia: d(D, f("doNotPerformLdlOnPlaybackStart"), !1), - Dlb: d(D, f("checkHdcpLevelBeforeCreatingManifestRequest"), !1), - Rsa: d(D, f("useHdcpLevelOnCast"), !1), - iUa: d(D, f("enableHdcp"), !1), - epa: d(B, f("preCacheMediaKeys"), 0), - Rm: d(D, f("prepareCadmium"), !1), - wLa: d(D, f("acceptManifestOnPrepareItemParams"), !0), - dH: d(S, "ppmconfig", { + endpoint: c(H, g("endpoint"), !1), + cAa: c(H, g("setMediaKeysEarly"), !1), + dS: c(H, g("ignoreKeyStatusOutputNotAllowed"), !1), + Xaa: c(H, g("useSetServerCertificateApi"), !1), + PK: c(T, "serverCertificate", u.fMa), + lpa: c(H, g("doNotPerformLdlOnPlaybackCreate"), !1), + mpa: c(H, g("doNotPerformLdlOnPlaybackStart"), !1), + bCa: c(H, g("useHdcpLevelOnCast"), !1), + l5a: c(H, g("enableHdcp"), !1), + Fxa: c(n, g("preCacheMediaKeys"), 0), + Kl: c(H, g("prepareCadmium"), !1), + IWa: c(H, g("acceptManifestOnPrepareItemParams"), !0), + Exa: c(X, "ppmconfig", { maxNumberTitlesScheduled: 1 }), - C5a: d(D, f("playerPredictionModelV2"), !0), - wab: d(D, f("supportsLimitedDurationLicense"), !1), - RZ: d(D, f("enableLdlPrefetch"), !1), - iN: d(D, f("enableGetHeadersAndMediaPrefetch"), !1), - YE: d(D, f("deleteCachedManifestOnPlayback"), !1), - $E: d(D, f("deleteOtherManifestCacheOnCreate"), !1), - ZE: d(D, f("deleteOtherLdlCacheOnCreate"), !1), - g5a: d(B, f("periodicPrepareLogsIntervalMilliseconds"), 36E5), - Z5a: d(B, f("prepareManifestCacheMaxCount"), 50), - X5a: d(B, f("prepareLdlCacheMaxCount"), 30), - lpa: d(B, f("prepareManifestExpiryMilliseconds"), 12E5), - Y5a: d(B, f("prepareLdlExpiryMilliseconds"), 78E4), - nrb: d(q, "prepItemsStorePrefix", "prepitems"), - W5a: d(q, f("prepareInsertStrategyPersistentTasks"), "append", /^(prepend|append|ignore)$/), - Otb: d(D, "waitForSecureStopToTeardownMediaElement", !0), - Vq: d(S, "videoApp"), - zo: d(S, "storageRules"), - F0: d(D, "ignoreIdbOpenError"), - fWa: d(D, "ftlEnabled", !0), - sMa: d(D, "appStorageLogging", !0), - qlb: d(B, f("cacheApiGetRangeTimeoutMilliseconds"), 1), - Tmb: d(S, "downloaderForOfflineMock"), - h_a: d(B, f("imageSubsResolution"), 0), - g_a: d(B, f("imageSubsMaxBuffer"), u.SBa, 0), - DE: d(D, f("captureBatteryStatus"), !1), - EWa: d(B, f("getBatteryApiTimeoutMilliseconds"), 5E3), - ce: function() { - return q(f("keySystemId"), u.NBa, void 0); + qjb: c(H, g("playerPredictionModelV2"), !0), + iL: c(H, g("supportsLimitedDurationLicense"), !1), + QQ: c(H, g("enableLdlPrefetch"), !1), + PQ: c(H, g("enableGetHeadersAndMediaPrefetch"), !1), + HH: c(H, g("deleteCachedManifestOnPlayback"), !1), + JH: c(H, g("deleteOtherManifestCacheOnCreate"), !1), + IH: c(H, g("deleteOtherLdlCacheOnCreate"), !1), + Qib: c(n, g("periodicPrepareLogsIntervalMilliseconds"), 36E5), + Pjb: c(n, g("prepareManifestCacheMaxCount"), 50), + Njb: c(n, g("prepareLdlCacheMaxCount"), 30), + Mxa: c(n, g("prepareManifestExpiryMilliseconds"), 12E5), + Ojb: c(n, g("prepareLdlExpiryMilliseconds"), 78E4), + Mjb: c(T, g("prepareInsertStrategyPersistentTasks"), "append", /^(prepend|append|ignore)$/), + rsb: c(X, "videoApp"), + Gv: c(X, "storageRules"), + w5: c(H, "ignoreIdbOpenError"), + N7a: c(H, "ftlEnabled", !0), + EXa: c(H, "appStorageLogging", !1), + x5: c(n, g("imageSubsResolution"), 0), + Cbb: c(n, g("imageSubsMaxBuffer"), u.cMa, 0), + lH: c(H, g("captureBatteryStatus"), !1), + l8a: c(n, g("getBatteryApiTimeoutMilliseconds"), 5E3), + Ad: function() { + return T(g("keySystemId"), u.ZLa, void 0); }, - DOa: d(q, f("canHDCP"), "constrict", /^(constrict|ifpresent|never)$/), - t2a: d(B, f("hdcpGlobalTimeout1"), 1E4), - u2a: d(B, f("hdcpGlobalTimeout2"), 1E4), - $pb: d(B, f("hdcpQueryTimeout1"), 1E3), - aqb: d(B, f("hdcpQueryTimeout2"), 1E3), - v2a: d(B, f("hdcpQueryTimeout2"), 100), - w2a: d(D, f("microsoftHwdrmRequiresHevc"), !1), - q2a: d(D, f("microsoftEnableDeviceInfo"), !1), - r2a: d(D, f("microsoftEnableHardwareInfo"), !1), - s2a: d(D, f("microsoftEnableHardwareReset"), !1), - Usa: d(D, f("useNewLogger"), !1), - g1a: d(D, "logMediaPipelineStatus", !1), - tH: d(D, f("renderDomDiagnostics"), !0), - yma: function() { + i6: c(Q, g("keySystemList"), u.$La, void 0), + Bfb: c(n, g("hdcpGlobalTimeout1"), 1E4), + Cfb: c(n, g("hdcpGlobalTimeout2"), 1E4), + qGb: c(n, g("hdcpQueryTimeout1"), 1E3), + rGb: c(n, g("hdcpQueryTimeout2"), 1E3), + Dfb: c(n, g("hdcpQueryTimeout2"), 100), + Efb: c(H, g("microsoftHwdrmRequiresHevc"), !1), + yfb: c(H, g("microsoftEnableDeviceInfo"), !1), + zfb: c(H, g("microsoftEnableHardwareInfo"), !1), + Afb: c(H, g("microsoftEnableHardwareReset"), !1), + eCa: c(H, g("useNewLogger"), !1), + aeb: c(H, "logMediaPipelineStatus", !1), + yK: c(H, g("renderDomDiagnostics"), !0), + tua: function() { return -1; }, - vA: d(G, f("logDisplayMaxEntryCount"), u.OBa, -1), - p1a: d(G, f("logToConsoleLevel"), -1), - GNa: d(G, f("bladerunnerCmdHistorySize"), 10), - Jl: function() { - return na.Jl; + eD: c(P, g("logDisplayMaxEntryCount"), u.aMa, -1), + ieb: c(P, g("logToConsoleLevel"), -1), + RYa: c(P, g("bladerunnerCmdHistorySize"), 10), + Hm: function() { + return Ma.Hm; }, - jcb: d(D, "upgradeNetflixId", !0), - mqb: d(q, "netflixIdEsnPrefix"), - G1: d(D, "logErrorIfEsnNotProvided", !0), - UZ: d(D, "enforceSinglePlayback", u.LBa), - pN: d(D, "enforceSingleSession", u.MBa), - BY: d(D, "closeOtherPlaybacks", !0), - WMa: d(B, "asyncLoadTimeout", 15E3, 1), - E1a: d(B, "mainThreadMonitorPollRate", 0), - Wpb: d(B, "mediaBufferCompactionThrottleTimeMs", 500), - zqb: d(D, "nrdpAlwaysShowUIOverlay", !1), - Bqb: d(D, "nrdpValidateSSOTokens", !0), - Aqb: d(q, "nrdpConfigServiceApiPath", "/cbp/cadmiumconfig-default"), - Lsb: d(D, "showNrdpDebugBadging", !1), - zPa: d(q, "congestionServiceApiPath", "/cbp/html5player/congestion"), - hN: d(D, "enableCongestionService", !1), - XR: function() { - return na.XR; + Trb: c(H, "upgradeNetflixId", !0), + I6: c(H, "logErrorIfEsnNotProvided", !0), + X2: c(H, "enforceSinglePlayback", u.XLa), + VQ: c(H, "enforceSingleSession", u.YLa), + t1: c(H, "closeOtherPlaybacks", !0), + fYa: c(n, "asyncLoadTimeout", 15E3, 1), + web: c(n, "mainThreadMonitorPollRate", 0), + KGb: c(H, "nrdpAlwaysShowUIOverlay", !1), + MGb: c(H, "nrdpValidateSSOTokens", !0), + LGb: c(T, "nrdpConfigServiceApiPath", "/cbp/cadmiumconfig-default"), + rIb: c(H, "showNrdpDebugBadging", !1), + b0a: c(T, "congestionServiceApiPath", "/cbp/html5player/congestion"), + N2: c(H, "enableCongestionService", !1), + PV: function() { + return Ma.PV; }, - Zn: function() { - return na.Zn; + xp: function() { + return Ma.xp; }, - Kp: function() { - return na.Kp; + xr: function() { + return Ma.xr; }, - Tq: function() { - return na.Tq; + Ks: function() { + return Ma.Ks; }, - dta: d(B, f("verbosePlaybackInfoDenominator"), 0), - r4: d(D, "renderTimedText", u.UBa), - K5a: d(D, "preBufferTimedText", !0), - cVa: d(D, "fatalOnTimedTextLoadError", !0), - hsa: d(ea, "timedTextStyleDefaults", {}), - isa: d(ea, "timedTextStyleOverrides", {}), - X5: d(ea, "timedTextFontFamilyMapping", u.YBa || { + mCa: c(n, g("verbosePlaybackInfoDenominator"), 0), + UD: c(H, "renderTimedText", u.dMa), + zjb: c(H, "preBufferTimedText", !0), + N6a: c(H, "fatalOnTimedTextLoadError", !0), + lBa: c(ja, "timedTextStyleDefaults", {}), + uaa: c(ja, "timedTextStyleOverrides", {}), + taa: c(ja, "timedTextFontFamilyMapping", u.iMa || { "default": "font-family:Arial,Helvetica;font-weight:bolder" }), - Zab: d(B, f("timedTextTimeOverride"), 0), - DR: d(B, "timedTextSimpleFallbackThreshold", u.$Ba), - kZ: d(q, f("customDfxpUrl")), - pUa: d(D, f("enableSubtitleTrackerLogging"), !1), - Z8a: d(D, f("sendSubtitleQoeLogblobOnMidplay"), !1), - QOa: d(ba, "cdnIdWhiteList", []), - POa: d(ba, "cdnIdBlackList", []), - Rkb: d(D, f("asynchronousCDNSelection"), !0), - t_: d(q, f("forceAudioTrack")), - T2a: d(D, "muteVolumeOnPlaybackClose", !0), - Cqb: d(q, "nrdpVolumeControlType", "VOLUME_STREAM"), - JN: d(q, f("forceTimedTextTrack")), - gna: d(B, f("maxRetriesTimedTextDownload"), 0), - gsa: d(B, f("timedTextRetryInterval"), 8E3), - D5: d(B, "storageMinimumSize", u.WBa, 0), - qR: d(q, "storageType", u.XBa, /^(none|fs|idb|ls)$/), - c1a: d(B, "lockExpiration", 1E4), - d1a: d(B, "lockRefresh", 3E3), - JOa: d(D, "captureUnhandledExceptions", !0), - f_a: d(D, "ignoreUnhandledExceptionDuringPlayback", !0), - Ybb: d(D, "unhandledExceptionsArePlaybackErrors", !1), - Bsa: d(q, "unhandledExceptionSource", ""), - e6a: d(D, "preserveLastFrame", !1), - C2a: d(B, "minBufferingTimeInMilliseconds", 4E3), - Spb: d(B, "maxBufferingTimeInMilliseconds", 0), - r6a: d(B, "progressBackwardsGraceTimeMilliseconds", 4E3), - s6a: d(B, "progressBackwardsMinPercent", 10), - JNa: d(q, f("bookmarkIgnoreBeginning"), "0", ua), - KNa: d(q, f("bookmarkIgnoreEnd"), "5%", ua), - LNa: d(q, f("bookmarkIgnoreEndForBranching"), "5%", ua), - MNa: d(D, "bookmarkIgnoreEndForOverride", !1), - CPa: d(q, "connectionStrategy", "parallel", /^(parallel|single)$/), - alb: d(q, f("bandwidthMeterType"), "sliding_window", /^(historical|sliding_window)$/), - Sob: d(B, "initParallelConnections", 3), - qw: d(B, "maxParallelConnections", 3), - u4: d(D, "reportThroughputInLogblobs", !0), - Poa: d(D, "pingOnConnectTimeout", !1), - k5a: d(B, "pingCDNTimeoutMilliseconds", 8E3), - Wma: d(B, "maxBufferSizeMilliseconds", u.QBa, 1E4, h.pu), - c2: d(B, "maxBufferSizeBytes", u.PBa), - Xkb: d(B, "backToFrontBufferRatioPercent", 25, 0, 1E3), - JX: d(B, "audioChunkSizeMilliseconds", 16E3), - aNa: d(B, "audioChunkSizeMillisecondsBranching", 0), - s6: d(B, "videoChunkSizeMilliseconds", 4004), - Icb: d(B, "videoChunkSizeMillisecondsBranching", 0), - Hcb: d(B, "videoChunkSizeMillisecondsAL1", 0), - C2: d(B, "minAudioMediaRequestSizeBytes", 0), - G2: d(B, "minVideoMediaRequestSizeBytes", 0), - QTa: d(D, "droppedFrameRateFilterEnabled", !1), - RTa: d(B, "droppedFrameRateFilterMaxObservation", 60, 10, 1E3), - TTa: d(U, "droppedFrameRateFilterPolicy", [ + mBa: c(n, g("timedTextTimeOverride"), 0), + yE: c(n, "timedTextSimpleFallbackThreshold", u.kMa), + b2: c(T, g("customDfxpUrl")), + u5a: c(H, g("enableSubtitleTrackerLogging"), !1), + rnb: c(H, g("sendSubtitleQoeLogblobOnMidplay"), !1), + e1: c(t, "cdnIdWhiteList", []), + d1: c(t, "cdnIdBlackList", []), + D3: c(T, g("forceAudioTrack")), + mgb: c(H, "muteVolumeOnPlaybackClose", !0), + NGb: c(T, "nrdpVolumeControlType", "VOLUME_STREAM"), + F3: c(T, g("forceTimedTextTrack")), + fva: c(n, g("maxRetriesTimedTextDownload"), 0), + kBa: c(n, g("timedTextRetryInterval"), 8E3), + V$: c(n, "storageMinimumSize", u.gMa, 0), + iV: c(T, "storageType", u.hMa, /^(none|fs|idb|ls)$/), + Xdb: c(n, "lockExpiration", 1E4), + Ydb: c(n, "lockRefresh", 3E3), + VZa: c(H, "captureUnhandledExceptions", !0), + Bbb: c(H, "ignoreUnhandledExceptionDuringPlayback", !0), + vrb: c(H, "unhandledExceptionsArePlaybackErrors", !1), + HBa: c(T, "unhandledExceptionSource", ""), + Xjb: c(H, "preserveLastFrame", !1), + Nfb: c(n, "minBufferingTimeInMilliseconds", 4E3), + jkb: c(n, "progressBackwardsGraceTimeMilliseconds", 4E3), + kkb: c(n, "progressBackwardsMinPercent", 10), + TYa: c(T, g("bookmarkIgnoreBeginning"), "0", ma), + UYa: c(T, g("bookmarkIgnoreEnd"), "5%", ma), + VYa: c(T, g("bookmarkIgnoreEndForBranching"), "60000", ma), + AJ: c(n, "maxParallelConnections", 3), + y9: c(H, "reportThroughputInLogblobs", !0), + tD: c(n, "minAudioMediaRequestDuration", 16E3), + Lfb: c(n, "minAudioMediaRequestDurationBranching", 0), + uD: c(n, "minVideoMediaRequestDuration", 4E3), + Wfb: c(n, "minVideoMediaRequestDurationAL1", 0), + Xfb: c(n, "minVideoMediaRequestDurationBranching", 0), + dT: c(n, "minAudioMediaRequestSizeBytes", 0), + kT: c(n, "minVideoMediaRequestSizeBytes", 0), + Q4a: c(H, "droppedFrameRateFilterEnabled", !1), + R4a: c(n, "droppedFrameRateFilterMaxObservation", 60, 10, 1E3), + T4a: c(function(a, b, f, c, d, p) { + return aa(a, b, "[", function(a) { + a = a.split(";"); + for (var b = a.length; b--;) { + a[b] = a[b].split("|"); + for (var f = a[b].length; f--;) a[b][f] = y.Bd(a[b][f]); + } + return a; + }, [function(a) { + return E.isArray(a) && 0 < a.length; + }, function(a) { + for (var b = a.length; b-- && void 0 !== a;) { + if (!E.isArray(a[b])) return !1; + for (var d = a[b].length; d--;) + if (!E.Tu(a[b][d], f, c)) return !1; + } + return !0; + }, function(a) { + if (void 0 !== d) + for (var b = a.length; b--;) + if (d !== a[b].length) return !1; + return !0; + }, function(a) { + return void 0 === p || a.length >= p; + }]); + }, "droppedFrameRateFilterPolicy", [ [3, 15], [6, 9], [9, 2], [15, 1] ], void 0, void 0, 2, 0), - Vmb: d(D, "droppedFrameRateFilterWithoutRebufferEnabled", !0), - eN: d(B, "droppedFrameRateFilterBasedOnPreviousSession"), - lia: d(X, "droppedFrameRateFilterBasedOnPreviousSessionPolicy"), - STa: d(B, "droppedFrameRateFilterMinHeight", 384), - WTa: d(B, "droppedFramesStorageSessionLimit", 0), - VTa: d(B, "droppedFramesStorageInterval", 6E4), - UTa: d(X, "droppedFramesPercentilesList", []), - x2a: d(D, "microsoftScreenSizeFilterEnabled", !1), - Sbb: d(D, "uiLabelFilterEnabled", !0), - Rbb: d(S, "uiLabelFilter", {}), - KSa: d(B, f("defaultVolume"), 100, 0, 100), - $ha: d(D, "disableVideoRightClickMenu", !0), - D2a: d(B, "minDecoderBufferMilliseconds", 1E3, 0, h.pu), - roa: d(B, "optimalDecoderBufferMilliseconds", 5E3, 0, h.pu), - x4a: d(B, "optimalDecoderBufferMillisecondsBranching", 3E3, 0, h.pu), - e2: d(B, "maxDecoderBufferMilliseconds", u.RBa, 0, h.pu), - Oha: d(B, "decoderTimeoutMilliseconds", 1E4, 1), - tTa: d(D, "disgardMediaOnAppend", !1), - vMa: d(D, "appendMediaBeforeInit", !1), - b5a: d(B, "pauseTimeoutLimitMilliseconds", 18E5), - J0: d(B, "inactivityMonitorInterval", 3E4, 0), - uLa: d(X, "abrdelLogPointsSeconds", [15, 30, 60, 120], 0, void 0, 4), - Fnb: d(U, f("fixedVideoBitrates"), [], void 0, void 0, 2, 0), - Btb: d(D, f("useFilteredInitialBitratesOnly"), !1), - hA: d(ba, f("initialVideoBitrates"), ["0+", "400+", "900+"], ka, 1), - Wob: d(ba, f("initialVideoBitratesForCarreraFallback"), ["0+", "400+", "900+"], ka, 1), - gA: d(ba, f("initialAudioBitrates"), ["0+", "90+", "150+"], ka, 1), - Skb: d(B, "audioBandwidthDenominator", 15, 1), - Nsb: d(B, "simulationLimitMilliseconds", 12E5, 1E4), - uob: d(B, "highStreamSimulationMilliseconds", 12E4, 1), - jrb: d(U, "prebufferBitrate", [ - [500, 235], - [1E3, 560], - [5E3, 1050], - [1E4, 1050], - [3E4, 3E3] - ], void 0, void 0, 2, 1), - dtb: d(U, "switchUpToBitrate", [ - [235, 560], - [375, 750], - [560, 1050], - [750, 1400], - [1050, 1750], - [1750, 3E3], - [2350, 1E5] - ], void 0, void 0, 2, 1), - N5a: d(B, "prebufferMinAudioMilliseconds", 6E3), - O5a: d(B, "prebufferMinVideoMilliseconds", 6E3), - qUa: d(D, "enableTrickPlay", !1), - fMa: d(X, "additionalDownloadSimulationParams", [2E3, 2E3, 100], 0, void 0, 3), - Kbb: d(B, "trickPlayHighResolutionBitrateThreshold", 1E3), - Lbb: d(B, "trickPlayHighResolutionThresholdMilliseconds", 1E4), - Mbb: d(n, "trickplayBufferFactor", .5), - vsa: d(B, "trickPlayDownloadRetryCount", 1), - Omb: d(B, "doNotSwitchDownIfBufferIsAboveMilliseconds", 18E4), - vob: d(B, "histAggregationTimeSpanInSeconds", 300), - wob: d(B, "histCompareBitsIPv4", 24), - xob: d(B, "histCompareBitsIPv6", 32), - yob: d(q, "histFilterType", "none", /^(none|timeofDay|dayOfWeekAndTimeOfDay)$/), - Bob: d(B, "histSizeLimit", 1E3), - Aob: d(B, "histMinSampleSize", 1), - zob: d(B, "histMaxSampleSize", 1E3), - Cob: d(B, "histTimeOfDayRangeInSeconds", 3600), - Y1: d(q, "marginPredictor", "simple", /^(simple|scale|iqr|percentile)$/), - ura: d(B, "simplePercentilePredictorPercentile", 25), - sra: d(q, "simplePercentilePredictorCalcToUse", "simple", /^(simple|tdigest)$/), - tra: d(q, "simplePercentilePredictorMethod", "simple", /^(simple|minimum)$/), - w9: d(S, "IQRBandwidthFactorConfig", { + zDb: c(H, "droppedFrameRateFilterWithoutRebufferEnabled", !0), + MQ: c(n, "droppedFrameRateFilterBasedOnPreviousSession"), + wpa: c(t, "droppedFrameRateFilterBasedOnPreviousSessionPolicy"), + S4a: c(n, "droppedFrameRateFilterMinHeight", 384), + W4a: c(n, "droppedFramesStorageSessionLimit", 0), + V4a: c(n, "droppedFramesStorageInterval", 6E4), + U4a: c(t, "droppedFramesPercentilesList", []), + Ffb: c(H, "microsoftScreenSizeFilterEnabled", !1), + prb: c(H, "uiLabelFilterEnabled", !0), + orb: c(X, "uiLabelFilter", {}), + E3a: c(n, g("defaultVolume"), 100, 0, 100), + fpa: c(H, "disableVideoRightClickMenu", !1), + Sfb: c(n, "minDecoderBufferMilliseconds", 1E3, 0, h.nw), + Lwa: c(n, "optimalDecoderBufferMilliseconds", 5E3, 0, h.nw), + Thb: c(n, "optimalDecoderBufferMillisecondsBranching", 3E3, 0, h.nw), + lT: c(n, "minimumTimeBeforeBranchDecision", 3E3, 0, h.nw), + k7: c(n, "maxDecoderBufferMilliseconds", u.bMa, 0, h.nw), + Poa: c(n, "decoderTimeoutMilliseconds", 1E4, 1), + n4a: c(H, "disgardMediaOnAppend", !1), + HXa: c(H, "appendMediaBeforeInit", !1), + Eib: c(n, "pauseTimeoutLimitMilliseconds", 18E5), + A5: c(n, "inactivityMonitorInterval", 3E4, 0), + GWa: c(t, "abrdelLogPointsSeconds", [15, 30, 60, 120], 0, void 0, 4), + jC: c(H, "enableTrickPlay", !1), + pXa: c(t, "additionalDownloadSimulationParams", [2E3, 2E3, 100], 0, void 0, 3), + grb: c(n, "trickPlayHighResolutionBitrateThreshold", 1E3), + hrb: c(n, "trickPlayHighResolutionThresholdMilliseconds", 1E4), + jrb: c(q, "trickplayBufferFactor", .5), + frb: c(n, "trickPlayDownloadRetryCount", 1), + f7: c(T, "marginPredictor", "simple", /^(simple|scale|iqr|percentile)$/), + qAa: c(n, "simplePercentilePredictorPercentile", 25), + oAa: c(T, "simplePercentilePredictorCalcToUse", "simple", /^(simple|tdigest)$/), + pAa: c(T, "simplePercentilePredictorMethod", "simple", /^(simple|minimum)$/), + fea: c(X, "IQRBandwidthFactorConfig", { iur: !0, minr: 8E3, maxr: 2E4, @@ -17178,198 +17345,164 @@ v7AA.H22 = function() { fmintp: .25, fmindp: .75 }), - O8: d(S, "HistoricalTDigestConfig", { + T7: c(T, "networkMeasurementGranularity", "video_location", /^(location|video_location)$/), + Ada: c(X, "HistoricalTDigestConfig", { maxc: 25, rc: "ewma", c: .5, hl: 7200 }), - wFa: d(S, "TputTDigestConfig", { + WPa: c(X, "TputTDigestConfig", { maxc: 25, c: .5, b: 5E3, w: 15E3 }), - $ma: d(G, "maxIQRSamples", Infinity), - yna: d(G, "minIQRSamples", 5), - l6: d(D, "useResourceTimingAPI", !1), - bla: d(D, "ignoreFirstByte", !0), - $7a: d(D, "resetHeuristicStateAfterSkip", !0), - snb: d(X, "failedDownloadRetryWaits", [10, 200, 500, 1E3, 2E3, 4E3, 8E3, 16E3]), - b_: d(X, "failedDownloadRetryWaitsASE", [10, 200, 500, 1E3, 2E3, 4E3]), - Dsb: d(B, "selectCdnDownloadRetryCountBeforeCdnSwitch", 2), - Fsb: d(B, "selectCdnTimeoutMilliseconds", 1E3), - Esb: d(B, "selectCdnSignificantLatency", 300), - Csb: d(B, "selectCdnBandwidthThresholdKbps", 2E3), - Gsb: d(q, "selectCdnType", "bandwidth", /^(latency|bandwidth)$/), - blb: d(B, "bandwidthTestBytesPerCdn", 204800), - Etb: d(D, "useVariableConnectTimeout", !1), - bqb: d(B, "minConnectTimeoutMilliseconds", 4E3), - MY: d(B, "connectTimeoutMilliseconds", 8E3, 500), - Tlb: d(B, "connectTimeoutBufferDiscount", 2), - Ulb: d(B, "connectTimeoutoutUpperLimitMultiplier", 1E4), - X2: d(B, "noProgressTimeoutMilliseconds", 8E3, 500), - qcb: d(D, "useOnLineApi", !1), - rob: d(B, "headerDownloadRetryCountBeforeCdnSwitch", 1), - W5: d(B, "timedTextDownloadRetryCountBeforeCdnSwitch", 3), - Pna: d(B, "netflixRequestExpiryTimeout", !1), - Gkb: d(D, "abortInProgressDownload", !0), - Fkb: d(D, "abortInProgressAtRebuffer", !1), - sLa: d(D, "abortPreemptively", !1), - Uob: d(B, "initialHeaderDownloadTimeout", 2E3), - sob: d(B, "headerDownloadTimeout", 3E3), - Scb: d(D, "webkitDecodedFrameCountIncorrectlyReported", !1), - K8a: d(B, "seekBackOnAudioTrackChangeMilliseconds", 8E3), - Qra: d(ba, f("supportedAudioTrackTypes"), [], void 0, 1), - btb: d(ba, f("supportedAudioBitrates"), [], ka), - ctb: d(ba, f("supportedVideoBitrates"), [], ka), - jla: d(B, "initialLogFlushTimeout", 5E3), - TA: d(q, "playdataPersistKey", na.Jl ? "unsentplaydatatest" : "unsentplaydata"), - mB: d(D, "sendPersistedPlaydata", !0), - cH: d(B, "playdataPersistIntervalMilliseconds", 4E3), - Woa: d(B, "playdataSendDelayMilliseconds", 1E4), - RQ: d(D, "sendPlaydataBackupOnInit", !0), - r0: d(B, "heartbeatCooldown", 1E4, 1E3), - k1a: d(ba, "logPerformanceTiming", "navigationStart redirectStart fetchStart secureConnectionStart requestStart domLoading".split(" ")), - z2a: d(D, "midplayEnabled", !0), - qna: d(B, "midplayIntervalMilliseconds", 3E5), - A2a: d(X, "midplayKeyPoints", [15E3, 3E4, 6E4, 12E4]), - fF: d(B, "downloadReportDenominator", 0), - FTa: d(B, "downloadReportInterval", 3E5), - bN: d(ba, "downloadReportTcpInfo", []), - Rmb: d(B, "downloadReportTraceInterval", 1E3), - xma: d(B, "logConfigApplyDenominator", 0), - jga: d(ea, f("bookmarkByMovieId"), {}), - nma: d(D, f("limitedDurationLicense"), !1), - uA: d(B, f("licenseRenewalRequestDelay"), 0), - u3: d(B, f("persistedReleaseDelay"), 1E4), - Bpb: d(D, f("limitedDurationFlagOverride"), void 0), - Sh: d(D, f("secureStopEnabled"), !1), - zsb: d(D, f("secureStopFromPersistedKeySession"), !1), - Pqa: d(B, "secureStopKeyMessageTimeoutMilliseconds", 2E3, 1), - O4: d(B, "secureStopKeyAddedTimeoutMilliseconds", 1E3, 1), - I8a: d(B, f("secureStopPersistedKeyMessageTimeoutMilliseconds"), 2500, 1), - J8a: d(B, f("secureStopPersistedKeySessionRetries"), 17, 1), - H8a: d(B, "secureStopPersistedKeyAddedTimeoutUnmatchedSession", 1E3, 1), - ysb: d(D, f("secureStopDisplayLogWindowOnError"), !1), - Asb: d(D, f("secureStopIgnoreVideoError"), !1), - UB: d(D, f("useCdmId"), !1), - Tob: d(ba, "initSegmentBoxTypeList", ["ftyp", "moov"]), - Pob: d(ba, "ignorePsshList", []), - Bqa: d(B, "safariPlayPauseWorkaroundDelay", 100), - Zcb: d(D, "workaroundForMediaSourceDuration", !1), - jta: d(B, "workaroundValueForSeekIssue", 1200), - $cb: d(D, "workaroundSaio", !0), - Qtb: d(D, "workaroundTenc", !0), - z6: d(D, f("workaroundAudioKeyFrame"), u.eCa), - kY: d(D, f("callEndOfStream"), u.IBa), - e5a: d(D, "performRewindCheck", !0), - eVa: d(D, "fatalOnUnexpectedSeeking", !0), - dVa: d(D, "fatalOnUnexpectedSeeked", !0), - Pga: d(D, f("clipLongVideo"), u.KBa), - Q9a: d(D, f("setVideoElementSize")), - yY: d(D, f("clearVideoSrc"), u.JBa), - Vha: d(B, f("delayPlayPause"), 0), - sNa: d(D, f("avoidSBRemove"), !1), - dn: d(D, f("useTypescriptEme"), !1), - Iz: d(q, f("drmPersistKey"), "unsentDrmData"), - iH: d(D, f("promiseBasedEme"), !1), - IOa: d(D, "captureKeyStatusData", !1), - eA: d(D, "includeCapabilitiesInRequestMediaKeySystemAccess", !0), - E3a: d(D, f("nudgeSourceBuffer"), !1), - Rqa: d(G, f("seekDelta"), 1), - Q5a: d(D, f("preciseSeeking"), !1), - R5a: d(D, f("preciseSeekingOnTwoCoreDevice"), !1), - Uha: d(ea, f("delayErrorHandling")), - IR: d(D, "trackingLogEnabled", u.bCa), - c6: d(q, "trackingLogPath", "/customerevents/track/debug"), - obb: d(X, "trackingLogStallKeyPoints", [1E4, 3E4, 6E4, 12E4]), - qtb: d(D, "trackingLogRegPairRequests", !1), - $d: d(q, "esn", ""), - Sia: d(q, "fesn", ""), - QZ: d(D, f("enableEmeVerboseLogging"), !1), - jUa: d(D, "enableLastChunkLogging", !1), - gs: d(q, "appId", "", la), - sessionId: d(q, "sessionId", "", la), - oY: d(q, "cdnProxyUrl"), - scb: d(D, "usePlayReadyHeaderObject", !1), - kja: d(B, "forceXhrErrorResponseCode", void 0), - Dg: { - Gna: d(q, "mslApiPath", "/msl/"), - nia: d(q, f("edgePath"), "/cbp/cadmium-29"), - zrb: d(q, "proxyPath", ""), - xx: d(q, "uiVersion"), - zlb: function() { + Yua: c(P, "maxIQRSamples", Infinity), + Iva: c(P, "minIQRSamples", 5), + Waa: c(H, "useResourceTimingAPI", !1), + Ssa: c(H, "ignoreFirstByte", !0), + sfb: c(H, "mediaRequestAsyncLoadStart", !0), + dsb: c(H, "useXHROnLoadStart", !1), + emb: c(H, "resetHeuristicStateAfterSkip", !0), + l3: c(t, "failedDownloadRetryWaitsASE", [10, 200, 500, 1E3, 2E3, 4E3]), + aQ: c(n, "connectTimeoutMilliseconds", 8E3, 500), + Z7: c(n, "noProgressTimeoutMilliseconds", 8E3, 500), + $rb: c(H, "useOnLineApi", !1), + jBa: c(n, "timedTextDownloadRetryCountBeforeCdnSwitch", 3), + Wva: c(n, "netflixRequestExpiryTimeout", !1), + DWa: c(H, "abortPreemptively", !1), + Ksb: c(H, "webkitDecodedFrameCountIncorrectlyReported", !1), + Zmb: c(n, "seekBackOnAudioTrackChangeMilliseconds", 8E3), + caa: c(Q, g("supportedAudioTrackTypes"), [], void 0, 1), + fta: c(n, "initialLogFlushTimeout", 5E3), + uxa: c(T, "playdataPersistKey", Ma.Hm ? "unsentplaydatatest" : "unsentplaydata"), + m$: c(H, "sendPersistedPlaydata", !0), + ojb: c(n, "playdataPersistIntervalMilliseconds", 4E3), + qHb: c(n, "playdataSendDelayMilliseconds", 1E4), + KU: c(H, "sendPlaydataBackupOnInit", !0), + eeb: c(Q, "logPerformanceTiming", "navigationStart redirectStart fetchStart secureConnectionStart requestStart domLoading".split(" ")), + Hfb: c(H, "midplayEnabled", !0), + Cva: c(n, "midplayIntervalMilliseconds", 3E5), + Ifb: c(t, "midplayKeyPoints", [15E3, 3E4, 6E4, 12E4]), + SH: c(n, "downloadReportDenominator", 0), + z4a: c(n, "downloadReportInterval", 3E5), + TH: c(Q, "downloadReportTcpInfo", []), + sua: c(n, "logConfigApplyDenominator", 0), + Rma: c(ja, g("bookmarkByMovieId"), {}), + oI: c(H, g("forceLimitedDurationLicense"), !1), + $u: c(n, g("licenseRenewalRequestDelay"), 0), + x8: c(n, g("persistedReleaseDelay"), 1E4), + YFb: c(H, g("limitedDurationFlagOverride"), void 0), + Kh: c(H, g("secureStopEnabled"), !1), + mIb: c(H, g("secureStopFromPersistedKeySession"), !1), + zza: c(n, "secureStopKeyMessageTimeoutMilliseconds", 2E3, 1), + Y9: c(n, "secureStopKeyAddedTimeoutMilliseconds", 1E3, 1), + Xmb: c(n, g("secureStopPersistedKeyMessageTimeoutMilliseconds"), 2500, 1), + Ymb: c(n, g("secureStopPersistedKeySessionRetries"), 17, 1), + Wmb: c(n, "secureStopPersistedKeyAddedTimeoutUnmatchedSession", 1E3, 1), + HE: c(H, g("useCdmId"), !1), + jza: c(n, "safariPlayPauseWorkaroundDelay", 100), + Qsb: c(H, "workaroundForMediaSourceDuration", !1), + Ssb: c(n, "workaroundValueForSeekIssue", 1200), + Rsb: c(H, "workaroundSaio", !0), + fba: c(H, g("workaroundAudioKeyFrame"), u.pMa), + $0: c(H, g("callEndOfStream"), u.ULa), + Oib: c(H, "performRewindCheck", !0), + P6a: c(H, "fatalOnUnexpectedSeeking", !0), + O6a: c(H, "fatalOnUnexpectedSeeked", !0), + Bna: c(H, g("clipLongVideo"), u.WLa), + eob: c(H, g("setVideoElementSize")), + q1: c(H, g("clearVideoSrc"), u.VLa), + $oa: c(n, g("delayPlayPause"), 0), + CYa: c(H, g("avoidSBRemove"), !1), + Do: c(H, g("useTypescriptEme"), !1), + VH: c(T, g("drmPersistKey"), "unsentDrmData"), + Z8: c(H, g("promiseBasedEme"), !1), + UZa: c(H, "captureKeyStatusData", !1), + SC: c(H, "includeCapabilitiesInRequestMediaKeySystemAccess", !0), + Vgb: c(H, g("nudgeSourceBuffer"), !1), + Z9: c(P, g("seekDelta"), 1), + jK: c(H, g("preciseSeeking"), !1), + Fjb: c(H, g("preciseSeekingOnTwoCoreDevice"), !1), + Zoa: c(ja, g("delayErrorHandling")), + zV: c(H, "trackingLogEnabled", u.mMa), + Daa: c(T, "trackingLogPath", "/customerevents/track/debug"), + Oqb: c(t, "trackingLogStallKeyPoints", [1E4, 3E4, 6E4, 12E4]), + NIb: c(H, "trackingLogRegPairRequests", !1), + Df: c(T, "esn", ""), + hqa: c(T, "fesn", ""), + Q2: c(H, g("enableEmeVerboseLogging"), !1), + m5a: c(H, "enableLastChunkLogging", !1), + PG: c(T, "appId", "", va), + sessionId: c(T, "sessionId", "", va), + g1: c(T, "cdnProxyUrl"), + bsb: c(H, "usePlayReadyHeaderObject", !1), + Gqa: c(n, "forceXhrErrorResponseCode", void 0), + Bg: { + Qva: c(T, "mslApiPath", "/msl/"), + Bpa: c(T, g("edgePath"), "/cbp/cadmium-29"), + FHb: c(T, "proxyPath", ""), + Kz: c(T, "uiVersion"), + BV: c(T, "uiPlatform"), + iCb: function() { return "0"; }, - Sw: d(ba, "preferredLanguages", h.Gva, /^[a-zA-Z-]{2,5}$/, 1), - ksb: d(D, "retryOnNetworkFailures", !0), - QVa: d(q, f("forceDebugLogLevel"), void 0, /^(ERROR|WARN|INFO|TRACE)$/), - Mkb: d(D, "alwaysIncludeIdsInPlaydata", !0), - $sb: d(D, "supportPreviewContent", !1), - qab: d(D, "supportPreviewContentPin", !0), - rab: d(D, "supportWatermarking", !0), - Inb: d(D, "forceClearStreams", !1), - bta: d(D, "validatePinProtection", u.cCa), - g$a: d(D, "showAllSubDubTracks", !1), - xqb: d(q, f("nrdjsPath"), "nrdjs/2.4.9/"), - yqb: d(B, f("nrdjsVersion"), 2), - XUa: d(D, f("failOnGuidMismatch"), !1) + bz: c(Q, "preferredLanguages", h.qFa, /^[a-zA-Z-]{2,5}$/, 1), + w7a: c(T, g("forceDebugLogLevel"), void 0, /^(ERROR|WARN|INFO|TRACE)$/), + Mpb: c(H, "supportPreviewContentPin", !0), + Npb: c(H, "supportWatermarking", !0), + kCa: c(H, "validatePinProtection", u.nMa), + zob: c(H, "showAllSubDubTracks", !1), + E6a: c(H, g("failOnGuidMismatch"), !1) }, - bQ: { - enabled: d(D, "qcEnabled", !1), - oo: d(q, "qcPackageId", "") + eU: { + enabled: c(H, "qcEnabled", !1), + dj: c(T, "qcPackageId", "") }, - vh: { - Opb: d(B, f("managerIntervalMilliseconds"), 18E5), - ftb: d(B, f("syncLicensesIntervalMilliseconds"), 864E5), - zpb: d(B, f("licensePolicyIntervalMilliseconds"), 3E4), - u$a: d(B, f("startPlayWindowDelayMilliseconds"), 3E4) - }, - jE: d(q, "authenticationType", na.Jl ? u.HBa : u.GBa), - aga: d(ea, "authenticationKeyNames", w.oa({ + YG: c(T, "authenticationType", Ma.Hm ? u.TLa : u.SLa), + Gma: c(ja, "authenticationKeyNames", y.La({ e: "DKE", h: "DKH", w: "DKW", s: "DKS" })), - Bab: d(q, "systemKeyWrapFormat"), - i_a: d(D, "includeNetflixIdUserAuthData", !0), - d$a: d(D, "shouldSendUserAuthData", !0), - a5: d(D, "sendUserAuthIfRequired", u.VBa), - X9a: d(D, "shouldClearUserData", !1), - kQ: d(D, "refreshCredentialsAfterManifestAuthError", u.TBa), - P2a: d(D, "mslDeleteStore", !1), - Q2a: d(D, "mslPersistStore", !0), - RPa: d(D, "correctNetworkForShortTitles", !0), - I5a: d(D, "postplayHighInitBitrate", !1), - LVa: d(D, "flushHeaderCacheOnAudioTrackChange", !0), - bVa: d(D, "fatalOnAseStreamingFailure", !0), - Mha: d(B, f("debugAseDenominator"), 100), - AX: d(B, "aseAudioBufferSizeBytes", u.DBa), - DX: d(B, "aseVideoBufferSizeBytes", u.EBa), - UH: d(X, "streamingFailureRetryWaits", [4E3, 8E3]), - JA: d(B, "minInitVideoBitrate", 560), - E2: d(B, "minHCInitVideoBitrate", 560), - CA: d(B, "maxInitVideoBitrate", Infinity), - BG: d(B, "minInitAudioBitrate", 0), - AG: d(B, "minHCInitAudioBitrate", 0), - rG: d(B, "maxInitAudioBitrate", 65535), - qP: d(B, "minAcceptableVideoBitrate", 235), - CG: d(B, "minRequiredBuffer", 3E4), - Ph: d(B, "minPrebufSize", 7800), - g4: d(n, "rebufferingFactor", 1), - pq: d(B, "maxBufferingTime", 2600), - k6: d(D, "useMaxPrebufSize", !0), - EA: d(B, "maxPrebufSize", 45E3), - m2: d(B, "maxRebufSize", Infinity), - BO: d(ha, "initialBitrateSelectionCurve", null), - hla: d(B, "initSelectionLowerBound", 560), - ila: d(B, "initSelectionUpperBound", 1050), - AR: d(B, "throughputPercentForAudio", 15), - QX: d(B, "bandwidthMargin", 10), - RX: d(D, "bandwidthMarginContinuous", !1), - SX: d(ha, "bandwidthMarginCurve", [{ + Wpb: c(T, "systemKeyWrapFormat"), + Hbb: c(H, "includeNetflixIdUserAuthData", !0), + wob: c(H, "shouldSendUserAuthData", !0), + o$: c(H, "sendUserAuthIfRequired", u.eMa), + rob: c(H, "shouldClearUserData", !1), + igb: c(H, "mslDeleteStore", !1), + jgb: c(H, "mslPersistStore", !0), + r0a: c(H, "correctNetworkForShortTitles", !0), + xjb: c(H, "postplayHighInitBitrate", !1), + r7a: c(H, "flushHeaderCacheOnAudioTrackChange", !0), + M6a: c(H, "fatalOnAseStreamingFailure", !0), + Spb: c(H, "supportsUnequalizedDownloadables", !0), + Joa: c(n, g("debugAseDenominator"), 100), + t0: c(n, "aseAudioBufferSizeBytes", u.PLa), + v0: c(n, "aseVideoBufferSizeBytes", u.QLa), + gv: c(n, "minInitVideoBitrate", 560), + F7: c(n, "minHCInitVideoBitrate", 560), + zy: c(n, "maxInitVideoBitrate", Infinity), + IJ: c(n, "minInitAudioBitrate", 0), + HJ: c(n, "minHCInitAudioBitrate", 0), + xJ: c(n, "maxInitAudioBitrate", 65535), + cT: c(n, "minAcceptableVideoBitrate", 235), + JJ: c(n, "minRequiredBuffer", 3E4), + ki: c(n, "minPrebufSize", 7800), + m9: c(q, "rebufferingFactor", 1), + Zr: c(n, "maxBufferingTime", 2600), + Vaa: c(H, "useMaxPrebufSize", !0), + mD: c(n, "maxPrebufSize", 45E3), + p7: c(n, "maxRebufSize", Infinity), + iS: c(Z, "initialBitrateSelectionCurve", null), + bta: c(n, "initSelectionLowerBound", 560), + cta: c(n, "initSelectionUpperBound", 1050), + sV: c(n, "throughputPercentForAudio", 15), + F0: c(n, "bandwidthMargin", 10), + G0: c(H, "bandwidthMarginContinuous", !1), + H0: c(Z, "bandwidthMarginCurve", [{ m: 65, b: 8E3 }, { @@ -17391,10 +17524,10 @@ v7AA.H22 = function() { m: 5, b: 24E4 }]), - NY: d(B, "conservBandwidthMargin", 20), - J5: d(D, "switchConfigBasedOnInSessionTput", !1), - JE: d(B, "conservBandwidthMarginTputThreshold", 0), - OY: d(ha, "conservBandwidthMarginCurve", [{ + E1: c(n, "conservBandwidthMargin", 20), + gaa: c(H, "switchConfigBasedOnInSessionTput", !1), + sH: c(n, "conservBandwidthMarginTputThreshold", 0), + F1: c(Z, "conservBandwidthMarginCurve", [{ m: 80, b: 8E3 }, { @@ -17416,188 +17549,189 @@ v7AA.H22 = function() { m: 10, b: 24E4 }]), - Ura: d(D, "switchAlgoBasedOnHistIQR", !1), - Tt: d(q, "switchConfigBasedOnThroughputHistory", "none", /^(none|iqr|avg)$/), - l2: d(G, "maxPlayerStateToSwitchConfig", -1), - N1: d(q, "lowEndMarkingCriteria", "none", /^(none|iqr|avg)$/), - AT: d(n, "IQRThreshold", .5), - A0: d(q, "histIQRCalcToUse", "simple"), - xNa: d(n, "bandwidthMarginScaledRatioUpperBound", 2), - qq: d(B, "maxTotalBufferLevelPerSession", 0), - Pka: d(B, "highWatermarkLevel", 3E4), - nsa: d(B, "toStableThreshold", 3E4), - HR: d(B, "toUnstableThreshold", u.aCa), - t5: d(D, "skipBitrateInUpswitch", !0), - w6: d(B, "watermarkLevelForSkipStart", 8E3), - u0: d(B, "highStreamRetentionWindow", 9E4), - O1: d(B, "lowStreamTransitionWindow", 51E4), - w0: d(B, "highStreamRetentionWindowUp", 3E5), - Q1: d(B, "lowStreamTransitionWindowUp", 3E5), - v0: d(B, "highStreamRetentionWindowDown", 6E5), - P1: d(B, "lowStreamTransitionWindowDown", 0), - t0: d(n, "highStreamInfeasibleBitrateFactor", .5), - ow: d(B, "lowestBufForUpswitch", 15E3), - dP: d(B, "lockPeriodAfterDownswitch", 15E3), - S1: d(B, "lowWatermarkLevel", 25E3), - pw: d(B, "lowestWaterMarkLevel", 2E4), - V1: d(D, "lowestWaterMarkLevelBufferRelaxed", !1), - t2: d(n, "mediaRate", 1), - p2: d(B, "maxTrailingBufferLen", 1E4), - GX: d(B, "audioBufferTargetAvailableSize", 262144), - r6: d(B, "videoBufferTargetAvailableSize", 1048576), - hna: d(B, "maxVideoTrailingBufferSize", 8388608), - Vma: d(B, "maxAudioTrailingBufferSize", 393216), - zN: d(n, "fastUpswitchFactor", 3), - d_: d(n, "fastDownswitchFactor", 1), - i2: d(B, "maxMediaBufferAllowed", 24E4), - $Q: d(D, "simulatePartialBlocks", !0), - vra: d(D, "simulateBufferFull", !0), - PY: d(D, "considerConnectTime", !1), - LY: d(n, "connectTimeMultiplier", 1), - Ima: d(B, "lowGradeModeEnterThreshold", 12E4), - Jma: d(B, "lowGradeModeExitThreshold", 9E4), - Xma: d(B, "maxDomainFailureWaitDuration", 3E4), - Uma: d(B, "maxAttemptsOnFailure", 18), - Jia: d(D, "exhaustAllLocationsForFailure", !0), - cna: d(B, "maxNetworkErrorsDuringBuffering", 20), - d2: d(B, "maxBufferingTimeAllowedWithNetworkError", 6E4), - xN: d(B, "fastDomainSelectionBwThreshold", 2E3), - R5: d(B, "throughputProbingEnterThreshold", 4E4), - dsa: d(B, "throughputProbingExitThreshold", 34E3), - uma: d(B, "locationProbingTimeout", 1E4), - Via: d(B, "finalLocationSelectionBwThreshold", 1E4), - asa: d(n, "throughputHighConfidenceLevel", .75), - csa: d(n, "throughputLowConfidenceLevel", .4), - Lz: d(D, "enablePerfBasedLocationSwitch", !1), - so: d(D, "probeServerWhenError", !0), - K3: d(B, "probeRequestTimeoutMilliseconds", 8E3), - zp: d(D, "allowSwitchback", !0), - Uw: d(B, "probeDetailDenominator", 100), - gP: d(B, "maxDelayToReportFailure", 300), - E1: d(B, "locationStatisticsUpdateInterval", 6E4), - TY: d(D, "countGapInBuffer", !1), - nv: d(D, "allowReissueMediaRequestAfterAbort", !0), - qX: d(D, "allowCallToStreamSelector", !0), - ZX: d(B, "bufferThresholdForAbort", 1E4), - y3: d(B, "pipelineScheduleTimeoutMs", 2), - rw: d(B, "maxPartialBuffersAtBufferingStart", 2), - F2: d(B, "minPendingBufferLen", 6E3), - DA: d(B, "maxPendingBufferLen", 12E3), - X1a: d(B, "maxPendingBufferLenAL1", 3E4), - nUa: d(D, "enableRequestPacing", !1), - o2: d(B, "maxStreamingSkew", 4E3), - k2: d(B, "maxPendingBufferPercentage", 10), - tw: d(B, "maxRequestsInBuffer", 60), - ena: d(B, "maxRequestsInBufferAL1", 240), - fna: d(B, "maxRequestsInBufferBranching", 120), - tO: d(B, "headerRequestSize", 4096), - D2: d(B, "minBufferLenForHeaderDownloading", 1E4), - sQ: d(B, "reserveForSkipbackBufferMs", 1E4), - h3: d(B, "numExtraFragmentsAllowed", 2), - Pm: d(D, "pipelineEnabled", !1), - xra: d(B, "socketReceiveBufferSize", 0), - KX: d(B, "audioSocketReceiveBufferSize", 32768), - u6: d(B, "videoSocketReceiveBufferSize", 65536), - p0: d(B, "headersSocketReceiveBufferSize", 32768), - MR: d(B, "updatePtsIntervalMs", 1E3), - aY: d(B, "bufferTraceDenominator", 100), - ez: d(B, "bufferLevelNotifyIntervalMs", 2E3), - az: d(B, "aseReportDenominator", 0), - BX: d(B, "aseReportIntervalMs", 3E5), - sia: d(D, "enableAbortTesting", !1), - qfa: d(B, "abortRequestFrequency", 8), - F5: d(B, "streamingStatusIntervalMs", 2E3), - VA: d(B, "prebufferTimeLimit", 24E4), - rP: d(B, "minBufferLevelForTrackSwitch", 2E3), - r3: d(B, "penaltyFactorForLongConnectTime", 2), - L1: d(B, "longConnectTimeThreshold", 200), - lX: d(B, "additionalBufferingLongConnectTime", 2E3), - mX: d(B, "additionalBufferingPerFailure", 8E3), - rH: d(B, "rebufferCheckDuration", 6E4), - xia: d(D, "enableLookaheadHints", !1), - Fma: d(B, "lookaheadFragments", 2), - Qn: d(D, "enableOCSideChannel", !0), - PJ: d(S, "OCSCBufferQuantizationConfig", { + UAa: c(H, "switchAlgoBasedOnHistIQR", !1), + Mv: c(T, "switchConfigBasedOnThroughputHistory", "none", /^(none|iqr|avg)$/), + o7: c(P, "maxPlayerStateToSwitchConfig", -1), + Q6: c(T, "lowEndMarkingCriteria", "none", /^(none|iqr|avg)$/), + GX: c(q, "IQRThreshold", .5), + p5: c(T, "histIQRCalcToUse", "simple"), + IYa: c(q, "bandwidthMarginScaledRatioUpperBound", 2), + $r: c(n, "maxTotalBufferLevelPerSession", 0), + Esa: c(n, "highWatermarkLevel", 3E4), + qBa: c(n, "toStableThreshold", 3E4), + xV: c(n, "toUnstableThreshold", u.lMa), + L$: c(H, "skipBitrateInUpswitch", !0), + cba: c(n, "watermarkLevelForSkipStart", 8E3), + i5: c(n, "highStreamRetentionWindow", 9E4), + R6: c(n, "lowStreamTransitionWindow", 51E4), + k5: c(n, "highStreamRetentionWindowUp", 3E5), + T6: c(n, "lowStreamTransitionWindowUp", 3E5), + j5: c(n, "highStreamRetentionWindowDown", 6E5), + S6: c(n, "lowStreamTransitionWindowDown", 0), + h5: c(q, "highStreamInfeasibleBitrateFactor", .5), + wy: c(n, "lowestBufForUpswitch", 15E3), + MS: c(n, "lockPeriodAfterDownswitch", 15E3), + V6: c(n, "lowWatermarkLevel", 25E3), + xy: c(n, "lowestWaterMarkLevel", 2E4), + Y6: c(H, "lowestWaterMarkLevelBufferRelaxed", !1), + w7: c(q, "mediaRate", 1), + r7: c(n, "maxTrailingBufferLen", 1E4), + y0: c(n, "audioBufferTargetAvailableSize", 262144), + $aa: c(n, "videoBufferTargetAvailableSize", 1048576), + hva: c(n, "maxVideoTrailingBufferSize", 8388608), + Vua: c(n, "maxAudioTrailingBufferSize", 393216), + eR: c(q, "fastUpswitchFactor", 3), + n3: c(q, "fastDownswitchFactor", 1), + TS: c(n, "maxMediaBufferAllowed", 24E4), + J$: c(H, "simulatePartialBlocks", !0), + rAa: c(H, "simulateBufferFull", !0), + G1: c(H, "considerConnectTime", !1), + D1: c(q, "connectTimeMultiplier", 1), + Bua: c(n, "lowGradeModeEnterThreshold", 12E4), + Cua: c(n, "lowGradeModeExitThreshold", 9E4), + Wua: c(n, "maxDomainFailureWaitDuration", 3E4), + Tua: c(n, "maxAttemptsOnFailure", 18), + aqa: c(H, "exhaustAllLocationsForFailure", !0), + ava: c(n, "maxNetworkErrorsDuringBuffering", 20), + j7: c(n, "maxBufferingTimeAllowedWithNetworkError", 6E4), + m3: c(n, "fastDomainSelectionBwThreshold", 2E3), + paa: c(n, "throughputProbingEnterThreshold", 4E4), + fBa: c(n, "throughputProbingExitThreshold", 34E3), + pua: c(n, "locationProbingTimeout", 1E4), + kqa: c(n, "finalLocationSelectionBwThreshold", 1E4), + dBa: c(q, "throughputHighConfidenceLevel", .75), + eBa: c(q, "throughputLowConfidenceLevel", .4), + iC: c(H, "enablePerfBasedLocationSwitch", !1), + no: c(H, "probeServerWhenError", !0), + U8: c(n, "probeRequestTimeoutMilliseconds", 8E3), + ir: c(H, "allowSwitchback", !0), + dz: c(n, "probeDetailDenominator", 100), + QS: c(n, "maxDelayToReportFailure", 300), + F6: c(n, "locationStatisticsUpdateInterval", 6E4), + goa: c(H, "countGapInBuffer", !1), + xB: c(H, "allowReissueMediaRequestAfterAbort", !1), + f0: c(H, "allowCallToStreamSelector", !0), + O0: c(n, "bufferThresholdForAbort", 1E4), + A8: c(n, "pipelineScheduleTimeoutMs", 2), + Ay: c(n, "maxPartialBuffersAtBufferingStart", 2), + G7: c(n, "minPendingBufferLen", 6E3), + lD: c(n, "maxPendingBufferLen", 12E3), + Yeb: c(n, "maxPendingBufferLenAL1", 3E4), + TQ: c(H, "enableRequestPacing", !1), + q7: c(n, "maxStreamingSkew", 4E3), + n7: c(n, "maxPendingBufferPercentage", 10), + By: c(n, "maxRequestsInBuffer", 60), + cva: c(n, "maxRequestsInBufferAL1", 240), + dva: c(n, "maxRequestsInBufferBranching", 120), + ZR: c(n, "headerRequestSize", 4096), + E7: c(n, "minBufferLenForHeaderDownloading", 1E4), + sU: c(n, "reserveForSkipbackBufferMs", 1E4), + i8: c(n, "numExtraFragmentsAllowed", 2), + ko: c(H, "pipelineEnabled", !1), + tAa: c(n, "socketReceiveBufferSize", 0), + B0: c(n, "audioSocketReceiveBufferSize", 32768), + aba: c(n, "videoSocketReceiveBufferSize", 65536), + f5: c(n, "headersSocketReceiveBufferSize", 32768), + DV: c(n, "updatePtsIntervalMs", 1E3), + Q0: c(n, "bufferTraceDenominator", 100), + FB: c(n, "bufferLevelNotifyIntervalMs", 2E3), + AB: c(n, "aseReportDenominator", 0), + u0: c(n, "aseReportIntervalMs", 3E5), + Hpa: c(H, "enableAbortTesting", !1), + Fla: c(n, "abortRequestFrequency", 8), + Z$: c(n, "streamingStatusIntervalMs", 2E3), + LD: c(n, "prebufferTimeLimit", 24E4), + fT: c(n, "minBufferLevelForTrackSwitch", 2E3), + u8: c(n, "penaltyFactorForLongConnectTime", 2), + O6: c(n, "longConnectTimeThreshold", 200), + a0: c(n, "additionalBufferingLongConnectTime", 2E3), + b0: c(n, "additionalBufferingPerFailure", 8E3), + wK: c(n, "rebufferCheckDuration", 6E4), + Kpa: c(H, "enableLookaheadHints", !1), + yua: c(n, "lookaheadFragments", 2), + lp: c(H, "enableOCSideChannel", !0), + bN: c(X, "OCSCBufferQuantizationConfig", { lv: 5, mx: 240 }), - Gsa: d(D, "updateDrmRequestOnNetworkFailure", !1), - SM: d(D, "deferAseScheduling", !1), - hP: d(B, "maxDiffAudioVideoEndPtsMs", 16E3), - VB: d(D, "useHeaderCache", !0), - RM: d(B, "defaultHeaderCacheSize", 4), - xZ: d(B, "defaultHeaderCacheDataPrefetchMs", 8E3), - n0: d(B, "headerCacheMaxPendingData", 6), - $6a: d(D, "recreateHeaderCacheDownloadTracks", !0), - o0: d(B, "headerCachePriorityLimit", 5), - BZa: d(D, "headerCacheFlushForCircularBuffer", !0), - mF: d(D, "enableUsingHeaderCount", !1), - Kka: d(D, "headerCacheTruncateHeaderAfterParsing", !0), - KVa: d(D, f("flushHeaderCacheBeforePlayback"), !1), - S2: d(B, "networkFailureResetWaitMs", 2E3), - R2: d(B, "networkFailureAbandonMs", 6E4), - lP: d(B, "maxThrottledNetworkFailures", 3), - zR: d(B, "throttledNetworkFailureThresholdMs", 200), - lm: d(D, "abortUnsentBlocks", !1), - q2: d(B, "maxUnsentBlocks", 2), - YW: d(B, "abortStreamSelectionPeriod", 2E3), - R1: d(G, "lowThroughputThreshold", 400), - YZ: d(D, "excludeSessionWithoutHistoryFromLowThroughputThreshold", !1), - Fna: d(D, "mp4ParsingInNative", !1), - yra: d(D, "sourceBufferInOrderAppend", !0), - Vm: d(D, "requireAudioStreamToEncompassVideo", !0), - Hfa: d(D, "allowAudioToStreamPastVideo", !0), - y6a: d(D, "pruneRequestsFromNative", !1), - P5a: d(D, "preciseBufferLevel", !1), - Zd: d(D, "enableManagerDebugTraces", !1), - Oma: d(B, "managerDebugMessageInterval", 1E3), - Nma: d(B, "managerDebugMessageCount", 20), - d3: d(D, "notifyManifestCacheEom", !1), - qM: d(B, "bufferThresholdToSwitchToSingleConnMs", 18E4), - $X: d(B, "bufferThresholdToSwitchToParallelConnMs", 12E4), - PP: d(B, "periodicHistoryPersistMs", 3E5), - DQ: d(B, "saveVideoBitrateMs", 18E4), - wX: d(D, "appendMediaRequestOnComplete", !0), - YR: d(D, "waitForDrmToAppendMedia", !1), - s_: d(D, f("forceAppendHeadersAfterDrm"), !1), - qH: d(D, f("reappendRequestsOnSkip"), !0), - X2a: d(B, "netIntrStoreWindow", 36E3), - F2a: d(B, "minNetIntrDuration", 8E3), - aVa: d(B, "fastHistoricBandwidthExpirationTime", 10368E3), - uNa: d(B, "bandwidthExpirationTime", 5184E3), - ZUa: d(B, "failureExpirationTime", 86400), - HZa: d(B, "historyTimeOfDayGranularity", 4), - QUa: d(D, "expandDownloadTime", !1), - L2a: d(B, "minimumMeasurementTime", 500), - K2a: d(B, "minimumMeasurementBytes", 131072), - Lab: d(B, "throughputMeasurementTimeout", 2E3), - o_a: d(B, "initThroughputMeasureDataSize", 262144), - Nab: d(q, "throughputPredictor", "ewma"), - Kab: d(B, "throughputMeasureWindow", 5E3), - Qab: d(B, "throughputWarmupTime", 5E3), - Jab: d(B, "throughputIQRMeasureWindow", 5E3), - Mya: d(B, "IQRBucketizerWindow", 15E3), - APa: d(B, "connectTimeHalflife", 10), - j8a: d(B, "responseTimeHalflife", 10), - GZa: d(B, "historicBandwidthUpdateInterval", 2E3), - Mab: d(ha, "throughputMeasurementWindowCurve", null), - ZZa: d(B, "httpResponseTimeWarmup", 10), - k8a: d(B, "responseTimeWarmup", 10), - J2a: d(B, "minimumBufferToStopProbing", 1E4), - LZa: d(B, "holtWintersDiscretizeInterval", 500), - MZa: d(B, "holtWintersHalfLifeAlpha", 6700), - OZa: d(B, "holtWintersHalfLifeGamma", 6700), - PZa: d(B, "holtWintersInitialCounts", 3), - QZa: d(B, "holtWintersMinInitialCounts", 3), - NZa: d(D, "holtWintersHalfLifeCurveEnabled", !1), - RZa: d(D, "holtWintersUpperBoundEnabled", !1), - M4: d(q, "secondThroughputEstimator", "none"), - Lqa: d(G, "secondThroughputMeasureWindowInMs", Infinity), - eUa: d(ba, "enableFilters", "throughput-ewma throughput-sw throughput-iqr throughput-tdigest avtp entropy".split(" ")), - qVa: d(S, "filterDefinitionOverrides", {}), - ESa: d(q, "defaultFilter", "throughput-ewma"), - E8a: d(q, "secondaryFilter", "none"), - FSa: d(S, "defaultFilterDefinitions", { + NBa: c(H, "updateDrmRequestOnNetworkFailure", !1), + yQ: c(H, "deferAseScheduling", !1), + RS: c(n, "maxDiffAudioVideoEndPtsMs", 16E3), + IE: c(H, "useHeaderCache", !0), + uQ: c(n, "defaultHeaderCacheSize", 4), + p2: c(n, "defaultHeaderCacheDataPrefetchMs", 8E3), + c5: c(n, "headerCacheMaxPendingData", 6), + U7: c(H, "neverWipeHeaderCache", !0), + $kb: c(H, "recreateHeaderCacheDownloadTracks", !0), + d5: c(n, "headerCachePriorityLimit", 5), + Wab: c(H, "headerCacheFlushForCircularBuffer", !0), + aI: c(H, "enableUsingHeaderCount", !1), + Bsa: c(H, "headerCacheTruncateHeaderAfterParsing", !0), + q7a: c(H, g("flushHeaderCacheBeforePlayback"), !1), + S7: c(n, "networkFailureResetWaitMs", 2E3), + R7: c(n, "networkFailureAbandonMs", 6E4), + XS: c(n, "maxThrottledNetworkFailures", 3), + rV: c(n, "throttledNetworkFailureThresholdMs", 200), + dr: c(H, "abortUnsentBlocks", !1), + s7: c(n, "maxUnsentBlocks", 2), + P_: c(n, "abortStreamSelectionPeriod", 2E3), + U6: c(P, "lowThroughputThreshold", 400), + d3: c(H, "excludeSessionWithoutHistoryFromLowThroughputThreshold", !1), + Ova: c(H, "mp4ParsingInNative", !1), + uAa: c(H, "sourceBufferInOrderAppend", !0), + Wm: c(H, "requireAudioStreamToEncompassVideo", !0), + fma: c(H, "allowAudioToStreamPastVideo", !0), + tkb: c(H, "pruneRequestsFromNative", !1), + Djb: c(H, "preciseBufferLevel", !1), + Oe: c(H, "enableManagerDebugTraces", !1), + Mua: c(n, "managerDebugMessageInterval", 1E3), + Lua: c(n, "managerDebugMessageCount", 20), + lwa: c(H, "notifyManifestCacheEom", !1), + NP: c(n, "bufferThresholdToSwitchToSingleConnMs", 18E4), + P0: c(n, "bufferThresholdToSwitchToParallelConnMs", 12E4), + QT: c(n, "periodicHistoryPersistMs", 3E5), + AU: c(n, "saveVideoBitrateMs", 18E4), + n0: c(H, "appendMediaRequestOnComplete", !0), + QV: c(H, "waitForDrmToAppendMedia", !1), + C3: c(H, g("forceAppendHeadersAfterDrm"), !1), + vK: c(H, g("reappendRequestsOnSkip"), !0), + pgb: c(n, "netIntrStoreWindow", 36E3), + Ufb: c(n, "minNetIntrDuration", 8E3), + I6a: c(n, "fastHistoricBandwidthExpirationTime", 10368E3), + FYa: c(n, "bandwidthExpirationTime", 5184E3), + G6a: c(n, "failureExpirationTime", 86400), + cbb: c(n, "historyTimeOfDayGranularity", 4), + v6a: c(H, "expandDownloadTime", !1), + cgb: c(n, "minimumMeasurementTime", 500), + bgb: c(n, "minimumMeasurementBytes", 131072), + iqb: c(n, "throughputMeasurementTimeout", 2E3), + Sbb: c(n, "initThroughputMeasureDataSize", 262144), + kqb: c(T, "throughputPredictor", "ewma"), + hqb: c(n, "throughputMeasureWindow", 5E3), + nqb: c(n, "throughputWarmupTime", 5E3), + gqb: c(n, "throughputIQRMeasureWindow", 5E3), + OIa: c(n, "IQRBucketizerWindow", 15E3), + c0a: c(n, "connectTimeHalflife", 10), + omb: c(n, "responseTimeHalflife", 10), + bbb: c(n, "historicBandwidthUpdateInterval", 2E3), + jqb: c(Z, "throughputMeasurementWindowCurve", null), + sbb: c(n, "httpResponseTimeWarmup", 10), + pmb: c(n, "responseTimeWarmup", 10), + agb: c(n, "minimumBufferToStopProbing", 1E4), + fbb: c(n, "holtWintersDiscretizeInterval", 500), + gbb: c(n, "holtWintersHalfLifeAlpha", 6700), + ibb: c(n, "holtWintersHalfLifeGamma", 6700), + jbb: c(n, "holtWintersInitialCounts", 3), + kbb: c(n, "holtWintersMinInitialCounts", 3), + hbb: c(H, "holtWintersHalfLifeCurveEnabled", !1), + lbb: c(H, "holtWintersUpperBoundEnabled", !1), + W9: c(T, "secondThroughputEstimator", "none"), + wza: c(P, "secondThroughputMeasureWindowInMs", Infinity), + h5a: c(Q, "enableFilters", "throughput-ewma throughput-sw throughput-iqr throughput-tdigest avtp entropy".split(" ")), + X6a: c(X, "filterDefinitionOverrides", {}), + A3a: c(T, "defaultFilter", "throughput-ewma"), + Smb: c(T, "secondaryFilter", "none"), + B3a: c(X, "defaultFilterDefinitions", { "throughput-ewma": { type: "discontiguous-ewma", mw: 5E3, @@ -17653,37 +17787,37 @@ v7AA.H22 = function() { entropy: { type: "entropy", mw: 2E3, - sw: 3E4, + sw: 6E4, "in": "none", mins: 1, hdl: [150, 230, 352, 539, 825, 1264, 1936, 2966, 4543, 6958], uhdl: [150, 230, 352, 539, 825, 1264, 1936, 2966, 4543, 6958, 10657, 16322, 25E3] } }), - LG: d(D, "needMinimumNetworkConfidence", !0), - VX: d(D, "biasTowardHistoricalThroughput", !0), - hX: d(D, "addHeaderDataToNetworkMonitor", !1), - y5: d(D, "startMonitorOnLoadStart", !1), - t4: d(D, "reportFailedRequestsToNetworkMonitor", !1), - g2: d(G, "maxFastPlayBufferInMs", Infinity), - f2: d(G, "maxFastPlayBitThreshold", Infinity), - vX: d(D, "appendFirstHeaderOnComplete", !0), - IMa: d(q, "ase_stream_selector", "optimized"), - L0: d(q, "initBitrateSelectorAlgorithm", "default"), - cY: d(q, "bufferingSelectorAlgorithm", "default"), - qZ: d(q, "ase_ls_failure_simulation", ""), - oZ: d(D, "ase_dump_fragments", !1), - pZ: d(B, "ase_location_history", 0), - rZ: d(B, "ase_throughput", 0), - Nha: d(D, "ase_simulate_verbose", !1), - B3a: d(D, "notifyOpenConnectBlackBox", !0), - F5a: d(B, "pollingPeriod", 150), - rma: d(B, "loadTimeMs", 18E4), - Qma: d(B, "marginTimeMs", 1E4), - Bx: d(D, "useMediaCache", !1), - Ez: d(B, "diskCacheSizeLimit", 52428800), - nP: d(B, "mediaCachePrefetchMs", 8E3), - s2: d(ea, "mediaCachePartitionConfig", { + OJ: c(H, "needMinimumNetworkConfidence", !0), + J0: c(H, "biasTowardHistoricalThroughput", !0), + uP: c(H, "addHeaderDataToNetworkMonitor", !1), + R$: c(H, "startMonitorOnLoadStart", !1), + x9: c(H, "reportFailedRequestsToNetworkMonitor", !1), + m7: c(P, "maxFastPlayBufferInMs", Infinity), + l7: c(P, "maxFastPlayBitThreshold", Infinity), + m0: c(H, "appendFirstHeaderOnComplete", !0), + SXa: c(T, "ase_stream_selector", "optimized"), + I5: c(T, "initBitrateSelectorAlgorithm", "default"), + S0: c(T, "bufferingSelectorAlgorithm", "default"), + h2: c(T, "ase_ls_failure_simulation", ""), + f2: c(H, "ase_dump_fragments", !1), + g2: c(n, "ase_location_history", 0), + i2: c(n, "ase_throughput", 0), + Loa: c(H, "ase_simulate_verbose", !1), + Rgb: c(H, "notifyOpenConnectBlackBox", !0), + ujb: c(n, "pollingPeriod", 150), + mua: c(n, "loadTimeMs", 18E4), + Pua: c(n, "marginTimeMs", 1E4), + Nz: c(H, "useMediaCache", !1), + aC: c(n, "diskCacheSizeLimit", 52428800), + $S: c(n, "mediaCachePrefetchMs", 8E3), + u7: c(ja, "mediaCachePartitionConfig", { partitions: [{ key: "billboard", capacity: 31457280, @@ -17691,52 +17825,50 @@ v7AA.H22 = function() { evictionPolicy: "FIFO" }] }), - tMa: d(D, "appendCachedMediaAsMediaRequest", !0), - AF: d(D, "generateHardwareDeviceId", !1), - V3a: d(ba, "offlineLogCategories", ["VideoCache", "CachedVideoEdgeSession"]), - gX: d(D, "addFailedLogBlobsToQueue", !0), - b$a: d(D, "shouldSaveLogs", !1), - I1: d(ba, "logTypesToSave", "startup startplay endplay debug subtitleqoe playbackaborted".split(" ")), - q1a: d(ba, "logTypesToFilter", "repos resumeplay midplay serversel cdnsel statechanged".split(" ")), - Tbb: { + FXa: c(H, "appendCachedMediaAsMediaRequest", !0), + vI: c(H, "generateHardwareDeviceId", !1), + X_: c(H, "addFailedLogBlobsToQueue", !0), + uob: c(H, "shouldSaveLogs", !1), + L6: c(Q, "logTypesToSave", "startup startplay endplay debug subtitleqoe playbackaborted".split(" ")), + qrb: { billboard: { - JA: d(B, "billboardMinInitVideoBitrate", 1050), - CA: d(B, "billboardMaxInitVideoBitrate", null), - Ph: d(B, "billboardMinPrebufSize", null), - EA: d(B, "billboardMaxPrebufSize", null), - pq: d(B, "billboardMaxBufferingTime", null), - rw: d(B, "billboardMaxPartialBuffersAtBufferingStart", null), - pw: d(B, "billboardLowestWaterMarkLevel", 6E3), - ow: d(B, "billboardLowestBufForUpswitch", 25E3), - Tt: d(q, "billboardSwitchConfigBasedOnThroughputHistory", "none", /^(none|iqr|avg)$/) + gv: c(n, "billboardMinInitVideoBitrate", 1050), + zy: c(n, "billboardMaxInitVideoBitrate", null), + ki: c(n, "billboardMinPrebufSize", null), + mD: c(n, "billboardMaxPrebufSize", null), + Zr: c(n, "billboardMaxBufferingTime", null), + Ay: c(n, "billboardMaxPartialBuffersAtBufferingStart", null), + xy: c(n, "billboardLowestWaterMarkLevel", 6E3), + wy: c(n, "billboardLowestBufForUpswitch", 25E3), + Mv: c(T, "billboardSwitchConfigBasedOnThroughputHistory", "none", /^(none|iqr|avg)$/) }, preplay: { - JA: d(B, "preplayMinInitVideoBitrate", 1050), - CA: d(B, "preplayMaxInitVideoBitrate", null), - Ph: d(B, "preplayMinPrebufSize", null), - EA: d(B, "preplayMaxPrebufSize", null), - pq: d(B, "preplayMaxBufferingTime", null), - rw: d(B, "preplayMaxPartialBuffersAtBufferingStart", null), - pw: d(B, "preplayLowestWaterMarkLevel", 6E3), - ow: d(B, "preplayLowestBufForUpswitch", 25E3) + gv: c(n, "preplayMinInitVideoBitrate", 1050), + zy: c(n, "preplayMaxInitVideoBitrate", null), + ki: c(n, "preplayMinPrebufSize", null), + mD: c(n, "preplayMaxPrebufSize", null), + Zr: c(n, "preplayMaxBufferingTime", null), + Ay: c(n, "preplayMaxPartialBuffersAtBufferingStart", null), + xy: c(n, "preplayLowestWaterMarkLevel", 6E3), + wy: c(n, "preplayLowestBufForUpswitch", 25E3) }, embedded: { - JA: d(B, "embeddedMinInitVideoBitrate", 1050), - CA: d(B, "embeddedMaxInitVideoBitrate", null), - Ph: d(B, "embeddedMinPrebufSize", null), - EA: d(B, "embeddedMaxPrebufSize", null), - pq: d(B, "embeddedMaxBufferingTime", null), - rw: d(B, "embeddedMaxPartialBuffersAtBufferingStart", null), - pw: d(B, "embeddedLowestWaterMarkLevel", 6E3), - ow: d(B, "embeddedLowestBufForUpswitch", 25E3) + gv: c(n, "embeddedMinInitVideoBitrate", 1050), + zy: c(n, "embeddedMaxInitVideoBitrate", null), + ki: c(n, "embeddedMinPrebufSize", null), + mD: c(n, "embeddedMaxPrebufSize", null), + Zr: c(n, "embeddedMaxBufferingTime", null), + Ay: c(n, "embeddedMaxPartialBuffersAtBufferingStart", null), + xy: c(n, "embeddedLowestWaterMarkLevel", 6E3), + wy: c(n, "embeddedLowestBufForUpswitch", 25E3) } }, - jN: d(D, "enablePsd", !1), - S3: d(B, "psdCallFrequency", 6E4), - T3: d(D, "psdReturnToNormal", !1), - lH: d(B, "psdThroughputThresh", 0), - cF: d(B, "discardLastNPsdBins", 0), - Vf: d(S, "psdPredictor", { + RQ: c(H, "enablePsd", !1), + b9: c(n, "psdCallFrequency", 6E4), + c9: c(H, "psdReturnToNormal", !1), + oK: c(n, "psdThroughputThresh", 0), + NH: c(n, "discardLastNPsdBins", 0), + Hg: c(X, "psdPredictor", { numB: 240, bSizeMs: 1E3, fillS: "last", @@ -17749,346 +17881,228 @@ v7AA.H22 = function() { tol: 1E-10, tol2: 1E-4 }), - sUa: d(D, "enableVerbosePlaydelayLogging", !1), - Tp: d(D, "enableRl", !1), - jB: d(B, "rlLogParam", 5), - oUa: d(D, "enableSeamless", !1), - z0: d(B, "hindsightDenominator", 1), - y0: d(B, "hindsightDebugDenominator", 0), - OF: d(S, "hindsightParam", { + w5a: c(H, "enableVerbosePlaydelayLogging", !1), + s5a: c(H, "enableRl", !1), + umb: c(n, "rlLogParam", 5), + t5a: c(H, "enableSeamless", !1), + o5: c(n, "hindsightDenominator", 0), + n5: c(n, "hindsightDebugDenominator", 0), + $R: c(X, "hindsightParam", { numB: Infinity, bSizeMs: 1E3, fillS: "last", fillHl: 1E3 }), - lF: d(D, "enableSessionHistoryReport", !1), - KZ: d(B, "earlyStageEstimatePeriod", 1E4), - fma: d(B, "lateStageEstimatePeriod", 3E4), - jP: d(B, "maxNumSessionHistoryStored", 30), - tP: d(B, "minSessionHistoryDuration", 3E4), - kF: d(D, "enableInitThroughputEstimate", !1), - N0: d(S, "initThroughputPredictor", { + $H: c(H, "enableSessionHistoryReport", !1), + M2: c(n, "earlyStageEstimatePeriod", 1E4), + $ta: c(n, "lateStageEstimatePeriod", 3E4), + US: c(n, "maxNumSessionHistoryStored", 30), + iT: c(n, "minSessionHistoryDuration", 3E4), + ZH: c(H, "enableInitThroughputEstimate", !1), + p0: c(H, "applyInitThroughputEstimate", !1), + dta: c(X, "initThroughputPredictor", { bwThreshold: 4E3, lrWeights: {} }), - qG: d(B, "maxActiveRequestsPerSession", 3), - fP: d(B, "maxActiveRequestsSABCell100", 2), - kP: d(B, "maxPendingBufferLenSABCell100", 500), - v1: d(D, "limitAudioDiscountByMaxAudioBitrate", !0), - fi: d(S, "browserInfo", {}), - bOa: d(B, f("busyGracePeriod"), 199), - $8a: d(D, f("sendTransitionLogblob"), !0), - Sp: d(D, f("editAudioFragments"), !1), - Rv: d(D, f("editVideoFragments"), !1), - aUa: d(D, f("editAudioFragmentsBranching"), !0), - cUa: d(D, f("editVideoFragmentsBranching"), !0), - j_a: d(D, f("includeSegmentInfoOnLogblobs"), !0), - SUa: d(D, "exposeTestData", !1), - sZ: d(D, "declareBufferingCompleteAtSegmentEnd", !0) - }; - mb = !0; - c.gha = function(a) { - var d; - if (t._cad_global.logBatcher && 0 < c.config.xma && 0 === x.ir % c.config.xma) try { - d = new y.Zx(void 0, "config", "info", { + wJ: c(n, "maxActiveRequestsPerSession", 3), + PS: c(n, "maxActiveRequestsSABCell100", 2), + VS: c(n, "maxPendingBufferLenSABCell100", 500), + x6: c(H, "limitAudioDiscountByMaxAudioBitrate", !0), + Si: c(X, "browserInfo", {}), + nZa: c(n, g("busyGracePeriod"), 199), + snb: c(H, g("sendTransitionLogblob"), !0), + Gm: c(H, g("editAudioFragments"), !1), + Kr: c(H, g("editVideoFragments"), !1), + b5a: c(H, g("editAudioFragmentsBranching"), !0), + Cpa: c(H, g("editVideoFragmentsBranching"), !0), + OQ: c(H, g("earlyAppendSingleChildBranch"), !0), + Ibb: c(H, g("includeSegmentInfoOnLogblobs"), !0), + z6a: c(H, "exposeTestData", !1), + j2: c(H, "declareBufferingCompleteAtSegmentEnd", !0), + wx: c(H, "applyProfileTimestampOffset", !1), + Cn: c(H, "applyProfileStreamingOffset", !1), + zXa: c(H, g("allowSmallSeekDelta"), !1), + Iob: c(n, g("smallSeekDeltaThresholdMilliseconds"), l.AY), + g5a: c(H, "enableCDMAttestedDescriptors", !1), + C9: c(H, "requireDownloadDataAtBuffering", !1), + D9: c(H, "requireSetupConnectionDuringBuffering", !1), + Llb: c(H, "renormalizeFirstFragment", !1), + Mlb: c(H, "renormalizeLastFragment", !1), + n9: c(H, "recordFirstFragmentOnSubBranchCreate", !1), + ZYa: c(H, "branchingAudioTrackFrameDropSmallSeekFix", !0), + Fqa: c(H, "forceL3WidevineCdm", !1) + }; + jb = !0; + d.Sna = function(a) { + var c; + A._cad_global || (A._cad_global = {}); + if (A._cad_global.logBatcher && 0 < d.config.sua && 0 === D.oF % d.config.sua) try { + c = new z.fA(void 0, "config", "info", { params: a }); - t._cad_global.logBatcher.Vl(d); - } catch (Ba) { - g.log.error("Failed to log config$apply", Ba); - } - t._cad_global || (t._cad_global = {}); - t._cad_global.config = c.config; - t._cad_global.platformExtraInfo = u.Yh; - p.ea(a); - a && (Sa = w.oa({}, a, { - AA: !0 - }), w.oa(Sa, ub, { - AA: !0 - }), b(H, c.config), c.config.gG && g.log.trace("Config applied for", ia(mb ? Sa : a)), mb = !1); - }; - c.gha(Sa); - }; - c.Plb = function(a, b) { - return C.oc(a) && "%" == a[a.length - 1] ? k.ve(parseFloat(a) * b / 100) : a | 0; - }; - c.vPa = function(a) { - return a ? (a = w.oa({}, c.config), w.oa(a, { - roa: c.config.x4a + A._cad_global.logBatcher.Sb(c); + } catch (nb) { + f.log.error("Failed to log config$apply", nb); + } + A._cad_global.config = d.config; + A._cad_global.platformExtraInfo = u.ln; + m.sa(a); + a && (fa = y.La({}, a, { + iD: !0 + }), y.La(fa, Da, { + iD: !0 + }), b(G, d.config), fa.istestaccount && f.log.trace("Config applied for", ea(jb ? fa : a)), jb = !1); + }; + d.Sna(fa); + }; + d.yCb = function(a, b) { + return E.bd(a) && "%" == a[a.length - 1] ? w.Uf(parseFloat(a) * b / 100) : a | 0; + }; + d.Y_a = function(a) { + return a ? (a = y.La({}, d.config), y.La(a, { + Lwa: d.config.Thb }, { - no: !0 - })) : c.config; + Mp: !0 + })) : d.config; }; - c.Qlb = function(a) { - var d; - d = w.oa({}, c.config); - return w.oa(d, b(a), { - no: !0 + d.zCb = function(a) { + var f; + f = y.La({}, d.config); + return y.La(f, b(a), { + Mp: !0 }); }; - c.iha = function(c) { - c = b(c); - return w.oa({}, a(137)(c), { - no: !0 + d.Una = function(f) { + f = b(f); + return y.La({}, a(149)(f), { + Mp: !0 }); }; - c.hha = function(b, d) { - d = !!d && (0 <= d.indexOf("h264hpl") || 0 <= d.indexOf("vp9")); + d.Tna = function(b, f, c) { + c = !!c && (0 <= c.indexOf("h264hpl") || 0 <= c.indexOf("vp9")); b = { - JX: b ? c.config.aNa : c.config.JX, - s6: b ? c.config.Icb : d ? c.config.Hcb : c.config.s6, - nv: b ? !1 : c.config.nv, - tw: b && d ? Math.max(c.config.fna, c.config.ena) : b ? c.config.fna : d ? c.config.ena : c.config.tw, - DA: d ? c.config.X1a : c.config.DA, - Sp: c.config.Sp || b && c.config.aUa, - Rv: c.config.Rv || b && c.config.cUa - }; - return w.oa({}, a(137)(b), { - no: !0 - }); - }; - c.Slb = b; - c.Rlb = d; - c.Olb = ""; - }, function(f, c) { - Object.defineProperty(c, "__esModule", { - value: !0 - }); - f = "undefined" === typeof t ? {} : t; - c.Tg = f.navigator || {}; - c.Ug = c.Tg.userAgent; - c.KJ = f.location; - c.dm = f.screen; - c.cm = f.performance; - c.cd = f.document || {}; - c.Chb = c.cd.documentElement; - c.hs = Array.prototype; - c.sort = c.hs.sort; - c.map = c.hs.map; - c.slice = c.hs.slice; - c.every = c.hs.every; - c.reduce = c.hs.reduce; - c.filter = c.hs.filter; - c.forEach = c.hs.forEach; - c.pop = c.hs.pop; - c.OC = Object.create; - c.fBa = Object.keys; - c.fJ = Date.now; - c.cFa = String.fromCharCode; - c.Xh = Math.floor; - c.l$ = Math.ceil; - c.ve = Math.round; - c.ig = Math.max; - c.ue = Math.min; - c.CC = Math.random; - c.ru = Math.abs; - c.GJ = Math.pow; - c.Zza = Math.sqrt; - c.dU = f.escape; - c.eU = f.unescape; - c.URL = f.URL || f.webkitURL; - c.JC = f.MediaSource || f.WebKitMediaSource; - c.IC = f.WebKitMediaKeys || f.MSMediaKeys || f.MediaKeys; - c.mr = f.nfCrypto || f.webkitCrypto || f.msCrypto || f.crypto; - c.Gl = c.mr && (c.mr.webkitSubtle || c.mr.subtle); - c.cU = f.nfCryptokeys || f.webkitCryptokeys || f.msCryptokeys || f.cryptokeys; - c.PERSISTENT = f.PERSISTENT; - c.TEMPORARY = f.TEMPORARY; - c.GAa = f.requestFileSystem || f.webkitRequestFileSystem; - c.B$ = f.Blob; - c.LJ = c.Tg.persistentStorage || c.Tg.webkitPersistentStorage; - c.C$ = c.LJ ? void 0 : f.storageInfo || f.webkitStorageInfo; - try { - c.indexedDB = f.indexedDB; - } catch (a) { - c.Rob = a || "noex"; - } - try { - c.localStorage = f.localStorage; - } catch (a) { - c.sma = a || "noex"; - } - }, function(f, c, a) { - var b; - Object.defineProperty(c, "__esModule", { - value: !0 - }); - b = a(8); - c.Gb = function() {}; - c.T6 = function() { - b.ea(); - }; - c.aEa = function() { - return !0; - }; - c.cb = { - K: !0 - }; - c.pj = 1E3; - c.Nib = 86400; - c.Oib = 604800; - c.ngb = 1E4; - c.ogb = 1E7; - c.Sjb = 1.5; - c.cgb = .128; - c.zdb = 7.8125; - c.Kdb = 128; - c.pu = 145152E5; - c.Bza = 1E5; - c.QJ = "$netflix$player$order"; - c.ay = -1; - c.by = 1; - c.Gva = ["en-US"]; - c.Ldb = 8; - c.Cza = 65535; - c.gjb = 65536; - c.Thb = Number.MAX_VALUE; - c.JS = "playready"; - c.Z7 = "widevine"; - c.Twa = "fps"; - c.Swa = "clearkey"; - c.Vx = 'audio/mp4; codecs="mp4a.40.5"'; - c.Eza = 'audio/mp4; codecs="mp4a.a6"'; - c.qn = 'video/mp4; codecs="avc1.640028"'; - c.qgb = 'video/mp4; codecs="hev1.2.6.L153.B0"'; - c.pgb = 'video/mp4; codecs="dvhe.01000000"'; - c.Rwa = "9A04F079-9840-4286-AB92-E65BE0885F95"; - c.Seb = "29701FE4-3CC7-4A34-8C5B-AE90C7439A47"; - c.Teb = "EDEF8BA9-79D6-4ACE-A3C8-27DCD51D21ED"; - c.Xdb = ["4E657466-6C69-7850-6966-665374726D21", "4E657466-6C69-7848-6165-6465722E7632"]; - c.xua = "A2394F52-5A9B-4F14-A244-6C427C648DF4"; - c.Ydb = "4E657466-6C69-7846-7261-6D6552617465"; - c.Zdb = "8974DBCE-7BE7-4C51-84F9-7148F9882554"; - c.Tdb = "mp4a"; - c.vua = "enca"; - c.Qdb = "ec-3"; - c.Odb = "avc1"; - c.wua = "encv"; - c.Sdb = "hvcC"; - c.Rdb = "hev1"; - c.Pdb = "dvhe"; - c.Udb = "vp09"; - c.b$ = 0; - c.FJ = 1; - c.Eu = "PRIMARY"; - c.Nba = "ASSISTIVE"; - c.Oba = "COMMENTARY"; - c.UU = { - assistive: c.Nba, - closedcaptions: c.Nba, - directorscommentary: c.Oba, - commentary: c.Oba, - subtitles: c.Eu, - primary: c.Eu - }; - c.bNa = { - "playready-oggvorbis-2-piff": "OGG_VORBIS", - "playready-oggvorbis-2-dash": "OGG_VORBIS", - "heaac-2-piff": "AAC", - "heaac-2-dash": "AAC", - "heaac-5.1-dash": "AAC", - "playready-heaac-2-dash": "AAC", - "heaac-2-elem": "AAC", - "heaac-2-m2ts": "AAC", - "ddplus-5.1-piff": "DDPLUS", - "ddplus-2.0-dash": "DDPLUS", - "ddplus-5.1-dash": "DDPLUS", - "ddplus-atmos-dash": "DDPLUS", - "dd-5.1-elem": "DD", - "dd-5.1-m2ts": "DD" - }; - }, function(f, c, a) { - var h; - - function b(a) { - return h.kK.apply(this, arguments) || this; - } - - function d(a) { - return new h.Po(a, c.Ma); - } - Object.defineProperty(c, "__esModule", { - value: !0 - }); - h = a(415); - oa(b, h.kK); - c.Ejb = b; - c.Zpb = function(a) { - return new h.Po(a, c.GC); - }; - c.Cb = d; - c.ij = function(a) { - return new h.Po(a, c.Zo); - }; - c.I2 = function(a) { - return new h.Po(a, c.u$); - }; - c.Gob = function(a) { - return new h.Po(a, c.Qxa); - }; - c.timestamp = function(a) { - return d(a); - }; - c.GC = new b(1, "\u03bcs"); - c.Ma = new b(1E3, "ms", c.GC); - c.Zo = new b(1E3 * c.Ma.$f, "s", c.GC); - c.u$ = new b(60 * c.Zo.$f, "min", c.GC); - c.Qxa = new b(60 * c.u$.$f, "hr", c.GC); - c.cl = d(0); - }, function(f, c, a) { - Object.defineProperty(c, "__esModule", { - value: !0 - }); - f = a(3); - a = a(128); - c.vmb = !0; - c.Xd = f.Z.get(a.gJ); - c.ea = c.Xd.assert.bind(c.Xd); - c.rmb = c.Xd.LMa.bind(c.Xd); - c.smb = c.Xd.MMa.bind(c.Xd); - c.uSa = c.Xd.RMa.bind(c.Xd); - c.VE = c.Xd.UMa.bind(c.Xd); - c.umb = c.Xd.SMa.bind(c.Xd); - c.tmb = c.Xd.PMa.bind(c.Xd); - c.OM = c.Xd.OMa.bind(c.Xd); - c.Es = c.Xd.TMa.bind(c.Xd); - c.tSa = c.Xd.QMa.bind(c.Xd); - c.sSa = c.Xd.JMa.bind(c.Xd); - c.Lha = c.Xd.NMa.bind(c.Xd); - c.wmb = c.Xd.z_a.bind(c.Xd); - }, function(f) { - var c, a; - c = a = { - UF: function(a) { - for (var b in a) a.hasOwnProperty(b) && (c[b] = a[b]); - }, - reset: function() { - c = a; + tD: b ? d.config.Lfb : d.config.tD, + uD: b ? d.config.Xfb : c ? d.config.Wfb : d.config.uD, + xB: b ? !1 : d.config.xB, + By: b && c ? Math.max(d.config.dva, d.config.cva) : b ? d.config.dva : c ? d.config.cva : d.config.By, + lD: c ? d.config.Yeb : d.config.lD, + Gm: d.config.Gm || b && d.config.b5a, + Kr: d.config.Kr || b && d.config.Cpa, + OQ: !f + }; + return y.La({}, a(149)(b), { + Mp: !0 + }); + }; + d.BCb = b; + d.ACb = c; + d.xCb = ""; + }, function(g, d, a) { + var b, c, h, k; + b = a(79); + c = a(991); + h = a(238); + k = a(990); + g = function() { + function a(a) { + this.Oq = !1; + a && (this.zf = a); } - }; - f.P = c; - }, function(f) { - var c; - c = { - da: function(a) { + a.prototype.Gf = function(b) { + var f; + f = new a(); + f.source = this; + f.Uy = b; + return f; + }; + a.prototype.subscribe = function(a, b, f) { + var d; + d = this.Uy; + a = c.Fqb(a, b, f); + d ? d.call(a, this.source) : a.add(this.source || !a.Lj ? this.zf(a) : this.E_(a)); + if (a.Lj && (a.Lj = !1, a.yz)) throw a.zz; + return a; + }; + a.prototype.E_ = function(a) { + try { + return this.zf(a); + } catch (m) { + a.yz = !0; + a.zz = m; + a.error(m); + } + }; + a.prototype.forEach = function(a, f) { + var c; + c = this; + f || (b.root.zw && b.root.zw.config && b.root.zw.config.Promise ? f = b.root.zw.config.Promise : b.root.Promise && (f = b.root.Promise)); + if (!f) throw Error("no Promise impl found"); + return new f(function(b, f) { + var d; + d = c.subscribe(function(b) { + if (d) try { + a(b); + } catch (w) { + f(w); + d.unsubscribe(); + } else a(b); + }, f, b); + }); + }; + a.prototype.zf = function(a) { + return this.source.subscribe(a); + }; + a.prototype[h.observable] = function() { + return this; + }; + a.prototype.Uib = function() { + for (var a = [], b = 0; b < arguments.length; b++) a[b - 0] = arguments[b]; + return 0 === a.length ? this : k.Vib(a)(this); + }; + a.prototype.yaa = function() { + var a, f; + f = this; + a || (b.root.zw && b.root.zw.config && b.root.zw.config.Promise ? a = b.root.zw.config.Promise : b.root.Promise && (a = b.root.Promise)); + if (!a) throw Error("no Promise impl found"); + return new a(function(a, b) { + var c; + f.subscribe(function(a) { + return c = a; + }, function(a) { + return b(a); + }, function() { + return a(c); + }); + }); + }; + a.create = function(b) { + return new a(b); + }; + return a; + }(); + d.ta = g; + }, function(g) { + var d; + d = { + ja: function(a) { return "number" === typeof a; }, - Pd: function(a) { + ne: function(a) { return "object" === typeof a; }, - oc: function(a) { + bd: function(a) { return "string" === typeof a; }, - S: function(a) { + V: function(a) { return "undefined" === typeof a; }, - C_a: function(a) { + ecb: function(a) { return "boolean" === typeof a; }, - wb: function(a) { + qb: function(a) { return "function" === typeof a; }, - Ja: function(a) { + Na: function(a) { return null === a; }, isArray: function(a) { @@ -18100,142 +18114,68 @@ v7AA.H22 = function() { has: function(a, b) { return null !== a && "undefined" !== typeof a && Object.prototype.hasOwnProperty.call(a, b); }, - F4a: function(a) { - var b, d; - d = []; - if (!c.Pd(a)) throw new TypeError("Object.pairs called on non-object"); - for (b in a) a.hasOwnProperty(b) && d.push([b, a[b]]); - return d; + aib: function(a) { + var b, c; + c = []; + if (!d.ne(a)) throw new TypeError("Object.pairs called on non-object"); + for (b in a) a.hasOwnProperty(b) && c.push([b, a[b]]); + return c; } }; - c.Kc = c.forEach = function(a, b, d) { + d.Lc = d.forEach = function(a, b, c) { if (null === a || "undefined" === typeof a) return a; if (a.length === +a.length) - for (var h = 0, l = a.length; h < l; h++) b.call(d, a[h], h, a); + for (var h = 0, k = a.length; h < k; h++) b.call(c, a[h], h, a); else - for (h in a) c.has(a, h) && b.call(d, a[h], h, a); + for (h in a) d.has(a, h) && b.call(c, a[h], h, a); return a; }; - f.P = c; - }, function(f, c, a) { - var b, d, h, l; - b = a(76); - d = a(869); - h = a(229); - l = a(868); - f = function() { - function a(a) { - this.hp = !1; - a && (this.Ve = a); - } - a.prototype.af = function(b) { - var c; - c = new a(); - c.source = this; - c.Jw = b; - return c; - }; - a.prototype.subscribe = function(a, b, c) { - var g; - g = this.Jw; - a = d.gbb(a, b, c); - g ? g.call(a, this.source) : a.add(this.source || !a.kj ? this.Ve(a) : this.NW(a)); - if (a.kj && (a.kj = !1, a.ox)) throw a.px; - return a; - }; - a.prototype.NW = function(a) { - try { - return this.Ve(a); - } catch (p) { - a.ox = !0; - a.px = p; - a.error(p); - } - }; - a.prototype.forEach = function(a, c) { - var d; - d = this; - c || (b.root.zu && b.root.zu.config && b.root.zu.config.Promise ? c = b.root.zu.config.Promise : b.root.Promise && (c = b.root.Promise)); - if (!c) throw Error("no Promise impl found"); - return new c(function(b, c) { - var g; - g = d.subscribe(function(b) { - if (g) try { - a(b); - } catch (G) { - c(G); - g.unsubscribe(); - } else a(b); - }, c, b); - }); - }; - a.prototype.Ve = function(a) { - return this.source.subscribe(a); - }; - a.prototype[h.observable] = function() { - return this; - }; - a.prototype.l5a = function() { - for (var a = [], b = 0; b < arguments.length; b++) a[b - 0] = arguments[b]; - return 0 === a.length ? this : l.m5a(a)(this); - }; - a.prototype.FR = function() { - var a, c; - c = this; - a || (b.root.zu && b.root.zu.config && b.root.zu.config.Promise ? a = b.root.zu.config.Promise : b.root.Promise && (a = b.root.Promise)); - if (!a) throw Error("no Promise impl found"); - return new a(function(a, b) { - var d; - c.subscribe(function(a) { - return d = a; - }, function(a) { - return b(a); - }, function() { - return a(d); - }); - }); - }; - a.create = function(b) { - return new a(b); - }; - return a; - }(); - c.pa = f; - }, function(f, c) { - Object.defineProperty(c, "__esModule", { - value: !0 - }); - f = c.wh || (c.wh = {}); - f[f.txa = 0] = "FATAL"; - f[f.ERROR = 1] = "ERROR"; - f[f.bca = 2] = "WARN"; - f[f.yT = 3] = "INFO"; - f[f.PU = 4] = "TRACE"; - f[f.Dva = 5] = "DEBUG"; - c.U9 = "LogFieldBuilderFactorySymbol"; - c.Jb = "LoggerFactorySymbol"; - c.br = {}; - }, function(f) { - f.P = { - xa: { - ng: 0, - Yq: 1, - qr: 2, - nf: 3, - jy: 4, - iy: 5, - sn: 6, + g.M = d; + }, function(g, d, a) { + Object.defineProperty(d, "__esModule", { + value: !0 + }); + g = a(3); + a = a(137); + d.tDa = function() { + d.sa(); + }; + d.cDb = !0; + d.Be = g.ca.get(a.YE); + d.sa = d.Be.assert.bind(d.Be); + d.YCb = d.Be.VXa.bind(d.Be); + d.ZCb = d.Be.WXa.bind(d.Be); + d.S2a = d.Be.aYa.bind(d.Be); + d.FH = d.Be.dYa.bind(d.Be); + d.bDb = d.Be.bYa.bind(d.Be); + d.$Cb = d.Be.ZXa.bind(d.Be); + d.qQ = d.Be.YXa.bind(d.Be); + d.EH = d.Be.cYa.bind(d.Be); + d.aDb = d.Be.$Xa.bind(d.Be); + d.XCb = d.Be.TXa.bind(d.Be); + d.Ioa = d.Be.XXa.bind(d.Be); + d.dDb = d.Be.$bb.bind(d.Be); + }, function(g) { + g.M = { + Ca: { + Og: 0, + Ns: 1, + jt: 2, + xf: 3, + yA: 4, + xA: 5, + Bq: 6, name: "STARTING BUFFERING REBUFFERING PLAYING STOPPING STOPPED PAUSED".split(" ") }, - Idb: { - dK: 0, - ijb: 1, + Itb: { + mt: 0, + Ozb: 1, name: ["STARTUP", "STEADY"] }, - xJ: { - ng: 0, - hjb: 1, - IFa: 2, + LM: { + Og: 0, + Nzb: 1, + lQa: 2, name: ["STARTING", "STABLE", "UNSTABLE"] }, G: { @@ -18243,182 +18183,538 @@ v7AA.H22 = function() { VIDEO: 1, name: ["AUDIO", "VIDEO"] }, - Gf: { + rg: { AUDIO: 0, VIDEO: 1, name: ["AUDIO", "VIDEO"] }, - Fe: { + jf: { URL: 0, - Au: 1, - K9: 2, - Qo: 3, + Aw: 1, + vea: 2, + vq: 3, name: ["URL", "SERVER", "LOCATION", "NETWORK"] }, - Pc: { + gd: { HAVE_NOTHING: 0, - gr: 1, - ln: 2, - nC: 3, + Us: 1, + Ho: 2, + fF: 3, name: ["HAVE_NOTHING", "HAVE_SOMETHING", "HAVE_MINIMUM", "HAVE_ENOUGH"] }, - oU: { - dK: 0, - YDa: 1, - nEa: 2, - ofb: 3, - $hb: 4, - name: ["startup", "rebuffer", "seek", "dlfail", "perfprobe"] - }, - Xo: { - U6: 0, - sxa: 1, - qib: 2, + xe: { + Jba: 0, + rHa: 1, + Nyb: 2, NEXT: 3, - Vhb: 4, - zjb: 5, - pfb: 6, - Dza: 7, - dK: 8, + myb: 4, + lAb: 5, + Uvb: 6, + LJa: 7, + mt: 8, ERROR: 9, - ICa: 10, - HCa: 11, - name: "maxweightedbw fastselection reuseprevious nextdomain onlychoice tolowgrade fromlowgrade mcqueen startup error probeswitchback probeswitchaway".split(" ") - }, - gfb: { - Qo: 0, - web: 1, + mY: 10, + TMa: 11, + fW: 12, + hJa: 13, + gJa: 14, + COa: 15, + BOa: 16, + name: "maxweightedbw fastselection reuseprevious nextdomain onlychoice tolowgrade fromlowgrade mcqueen startup error probeswitchback probeswitchaway bitrate locswitchback locswitchaway serverswitchback serverswitchaway".split(" ") + }, + rvb: { + vq: 0, + Eub: 1, name: ["NETWORK", "DECODE"] }, - oEa: { - Iva: "delayedSeamless", - Efb: "hideLongTransition" + AOa: { + xFa: "delayedSeamless", + mwb: "hideLongTransition" + } + }; + }, function(g, d, a) { + (function(b) { + var E, l, F, n, N, O, q, U; + + function c(a, b) { + if (a === b) return 0; + for (var f = a.length, c = b.length, d = 0, m = Math.min(f, c); d < m; ++d) + if (a[d] !== b[d]) { + f = a[d]; + c = b[d]; + break; + } return f < c ? -1 : c < f ? 1 : 0; + } + + function d(a) { + return b.Tba && "function" === typeof b.Tba.isBuffer ? b.Tba.isBuffer(a) : !(null == a || !a.fBb); + } + + function k(a) { + return d(a) || "function" !== typeof b.ArrayBuffer ? !1 : "function" === typeof ArrayBuffer.isView ? ArrayBuffer.isView(a) : a ? a instanceof DataView || a.buffer && a.buffer instanceof ArrayBuffer ? !0 : !1 : !1; + } + + function f(a) { + if (l.qb(a)) return N ? a.name : (a = a.toString().match(q)) && a[1]; + } + + function p(a) { + return "string" === typeof a ? 128 > a.length ? a : a.slice(0, 128) : a; + } + + function m(a) { + if (N || !l.qb(a)) return l.aJ(a); + a = f(a); + return "[Function" + (a ? ": " + a : "") + "]"; + } + + function r(a, b, f, c, d) { + throw new O.AssertionError({ + message: f, + sx: a, + Jm: b, + Uy: c, + Mob: d + }); + } + + function u(a, b) { + a || r(a, !0, b, "==", O.ok); + } + + function x(a, b, f, m) { + var p; + if (a === b) return !0; + if (d(a) && d(b)) return 0 === c(a, b); + if (l.cJ(a) && l.cJ(b)) return a.getTime() === b.getTime(); + if (l.Fta(a) && l.Fta(b)) return a.source === b.source && a.global === b.global && a.multiline === b.multiline && a.lastIndex === b.lastIndex && a.ignoreCase === b.ignoreCase; + if (null !== a && "object" === typeof a || null !== b && "object" === typeof b) { + if (!k(a) || !k(b) || Object.prototype.toString.call(a) !== Object.prototype.toString.call(b) || a instanceof Float32Array || a instanceof Float64Array) { + if (d(a) !== d(b)) return !1; + m = m || { + sx: [], + Jm: [] + }; + p = m.sx.indexOf(a); + if (-1 !== p && p === m.Jm.indexOf(b)) return !0; + m.sx.push(a); + m.Jm.push(b); + return v(a, b, f, m); + } + return 0 === c(new Uint8Array(a.buffer), new Uint8Array(b.buffer)); + } + return f ? a === b : a == b; + } + + function v(a, b, f, c) { + var d, m, p; + if (null === a || void 0 === a || null === b || void 0 === b) return !1; + if (l.Bta(a) || l.Bta(b)) return a === b; + if (f && Object.getPrototypeOf(a) !== Object.getPrototypeOf(b)) return !1; + d = "[object Arguments]" == Object.prototype.toString.call(a); + m = "[object Arguments]" == Object.prototype.toString.call(b); + if (d && !m || !d && m) return !1; + if (d) return a = n.call(a), b = n.call(b), x(a, b, f); + d = U(a); + p = U(b); + if (d.length !== p.length) return !1; + d.sort(); + p.sort(); + for (m = d.length - 1; 0 <= m; m--) + if (d[m] !== p[m]) return !1; + for (m = d.length - 1; 0 <= m; m--) + if (p = d[m], !x(a[p], b[p], f, c)) return !1; + return !0; } + + function y(a, b, f) { + x(a, b, !0) && r(a, b, f, "notDeepStrictEqual", y); + } + + function w(a, b) { + if (!a || !b) return !1; + if ("[object RegExp]" == Object.prototype.toString.call(b)) return b.test(a); + try { + if (a instanceof b) return !0; + } catch (T) {} + return Error.isPrototypeOf(b) ? !1 : !0 === b.call({}, a); + } + + function D(a, b, f, c) { + var d, m, p; + if ("function" !== typeof b) throw new TypeError('"block" argument must be a function'); + "string" === typeof f && (c = f, f = null); + try { + b(); + } catch (Z) { + d = Z; + } + b = d; + c = (f && f.name ? " (" + f.name + ")." : ".") + (c ? " " + c : "."); + a && !b && r(b, f, "Missing expected exception" + c); + d = "string" === typeof c; + m = !a && l.qS(b); + p = !a && b && !f; + (m && d && w(b, f) || p) && r(b, f, "Got unwanted exception" + c); + if (a && b && f && !w(b, f) || !a && b) throw b; + } + + function z(a, b) { + a || r(a, !0, b, "==", z); + } + E = a(737); + l = a(230); + F = Object.prototype.hasOwnProperty; + n = Array.prototype.slice; + N = function() { + return "foo" === function() {}.name; + }(); + O = g.M = u; + q = /\s*function\s+([^\(\s]*)\s*/; + O.AssertionError = function(a) { + var b; + this.name = "AssertionError"; + this.sx = a.sx; + this.Jm = a.Jm; + this.Uy = a.Uy; + this.message = a.message ? a.message : p(m(this.sx)) + " " + this.Uy + " " + p(m(this.Jm)); + b = a.Mob || r; + Error.captureStackTrace ? Error.captureStackTrace(this, b) : (a = Error(), a.stack && (a = a.stack, b = f(b), b = a.indexOf("\n" + b), 0 <= b && (a = a.substring(a.indexOf("\n", b + 1) + 1)), this.stack = a)); + }; + l.Mbb(O.AssertionError, Error); + O.fail = r; + O.ok = u; + O.equal = function(a, b, f) { + a != b && r(a, b, f, "==", O.equal); + }; + O.xT = function(a, b, f) { + a == b && r(a, b, f, "!=", O.xT); + }; + O.Roa = function(a, b, f) { + x(a, b, !1) || r(a, b, f, "deepEqual", O.Roa); + }; + O.Soa = function(a, b, f) { + x(a, b, !0) || r(a, b, f, "deepStrictEqual", O.Soa); + }; + O.ewa = function(a, b, f) { + x(a, b, !1) && r(a, b, f, "notDeepEqual", O.ewa); + }; + O.Igb = y; + O.LAa = function(a, b, f) { + a !== b && r(a, b, f, "===", O.LAa); + }; + O.fwa = function(a, b, f) { + a === b && r(a, b, f, "!==", O.fwa); + }; + O["throws"] = function(a, b, f) { + D(!0, a, b, f); + }; + O.xDb = function(a, b, f) { + D(!1, a, b, f); + }; + O.lFb = function(a) { + if (a) throw a; + }; + O.$$ = E(z, O, { + equal: O.LAa, + Roa: O.Soa, + xT: O.fwa, + ewa: O.Igb + }); + O.$$.$$ = O.$$; + U = Object.keys || function(a) { + var b, f; + b = []; + for (f in a) F.call(a, f) && b.push(f); + return b; + }; + }.call(this, a(169))); + }, function(g, d, a) { + Object.defineProperty(d, "__esModule", { + value: !0 + }); + g = a(123); + d.is = g.tq; + d.ab = function(a) { + return d.is.Zg(a); + }; + d.ne = function(a) { + return d.is.ux(a); + }; + d.Icb = function(a) { + return d.is.pP(a); + }; + d.isArray = function(a) { + return d.is.Zt(a); + }; + d.Kta = function(a) { + return d.is.ima(a); + }; + d.ja = function(a, c, h) { + return d.is.Af(a, c, h); }; - }, function(f, c, a) { - var g; + d.ocb = function(a, c, h) { + return d.is.g0(a, c, h); + }; + d.Tu = function(a, c, h) { + return d.is.ap(a, c, h); + }; + d.Ata = function(a) { + return d.is.uB(a); + }; + d.CFb = function(a) { + return d.is.AWa(a); + }; + d.FFb = function(a) { + return d.is.BWa(a); + }; + d.Lta = function(a) { + return d.is.jma(a); + }; + d.bd = function(a) { + return d.is.uh(a); + }; + d.Uu = function(a) { + return d.is.Oi(a); + }; + d.qta = function(a) { + return d.is.tB(a); + }; + d.qb = function(a) { + return d.is.JG(a); + }; + }, function(g, d) { + function a() {} + + function b() {} + + function c() {} + + function h() {} + + function k() {} + + function f() {} + Object.defineProperty(d, "__esModule", { + value: !0 + }); + f.Tdb = "loadedtracks"; + f.Sdb = "loadedmetadata"; + f.loaded = "loaded"; + f.error = "error"; + f.closed = "closed"; + f.Fm = "currenttimechanged"; + f.Zma = "bufferedtimechanged"; + f.X4a = "durationchanged"; + f.ysb = "videosizechanged"; + f.Fib = "pausedchanged"; + f.sjb = "playingchanged"; + f.b6a = "endedchanged"; + f.V0 = "busychanged"; + f.Dma = "audiotracklistchanged"; + f.JP = "audiotrackchanged"; + f.Ez = "timedtexttracklistchanged"; + f.zE = "timedtexttrackchanged"; + f.zL = "trickplayframeschanged"; + f.ngb = "mutedchanged"; + f.Dsb = "volumechanged"; + f.Aob = "showsubtitle"; + f.Ilb = "removesubtitle"; + f.Isb = "watermark"; + f.X5 = "isReadyToTransition"; + f.RC = "inactivated"; + f.fnb = "segmentmaploaded"; + f.gnb = "segmentpresenting"; + f.uYa = "autoplaywasallowed"; + f.vYa = "autoplaywasblocked"; + d.kb = f; + k.Pza = "serverTimeChanged"; + d.mea = k; + h.Cza = "playlistsegmenttransition"; + d.Fga = h; + (function(a) { + a[a.BP = 0] = "aseException"; + a[a.CP = 1] = "aseReport"; + a[a.CBb = 2] = "aseSessionCreateRequest"; + a[a.Hma = 3] = "authorized"; + a[a.Ima = 4] = "autoplayWasAllowed"; + a[a.En = 5] = "autoplayWasBlocked"; + a[a.KYa = 6] = "bandwidthMeterAggregateUpdate"; + a[a.GB = 7] = "bufferUnderrun"; + a[a.closed = 8] = "closed"; + a[a.Ce = 9] = "closing"; + a[a.Fm = 10] = "currentTimeChanged"; + a[a.RH = 11] = "downloadComplete"; + a[a.RC = 12] = "inactivated"; + a[a.aua = 13] = "licenseAdded"; + a[a.IS = 14] = "licensed"; + a[a.av = 15] = "locationSelected"; + a[a.e7 = 16] = "manifestPresenting"; + a[a.ZS = 17] = "mediaBufferChanged"; + a[a.Q7 = 18] = "needLicense"; + a[a.uT = 19] = "nextSegmentChosen"; + a[a.Hh = 20] = "playbackStart"; + a[a.Rp = 21] = "repositioned"; + a[a.mz = 22] = "repositioning"; + a[a.kza = 23] = "safePlayRequested"; + a[a.$mb = 24] = "segmentAborted"; + a[a.bnb = 25] = "segmentLastPts"; + a[a.f$ = 26] = "segmentPresenting"; + a[a.enb = 27] = "segmentStarting"; + a[a.MU = 28] = "serverSwitch"; + a[a.mAa = 29] = "shouldUpdateVideoDiagInfo"; + a[a.Kj = 30] = "skipped"; + a[a.oV = 31] = "subtitleError"; + a[a.naa = 32] = "throttledMediaTimeChanged"; + a[a.uV = 33] = "timedTextRebuffer"; + a[a.Ez = 34] = "timedTextTrackListChanged"; + a[a.zL = 35] = "trickPlayFramesChanged"; + a[a.BL = 36] = "tryRecoverFromStall"; + a[a.fq = 37] = "updateNextSegmentWeights"; + a[a.hsb = 38] = "userInitiatedPause"; + a[a.iCa = 39] = "userInitiatedResume"; + }(d.X || (d.X = {}))); + c.MOa = 0; + c.gha = 1; + c.Fq = 2; + c.CY = 3; + c.BY = 4; + d.ph = c; + b.rfa = 1; + b.Ns = 2; + b.KOa = 3; + d.gM = b; + a.SF = 1; + a.xf = 2; + a.Bq = 3; + a.KW = 4; + d.rn = a; + (function(a) { + a[a.mF = 0] = "INITIAL"; + a[a.vA = 1] = "SEEK"; + a[a.MY = 2] = "TRACK_CHANGED"; + a[a.wA = 3] = "SEGMENT_CHANGED"; + }(d.Ng || (d.Ng = {}))); + }, function(g, d, a) { + var k, f; function b(a) { return null !== a && void 0 !== a; } - function d(a) { - return typeof a == c.jFa; - } - - function h(a, b) { - for (var c in a) a.hasOwnProperty(c) && b(c, a[c]); + function c(a) { + return typeof a == d.EPa; } - function l(a, c, d) { - var g, p, m; + function h(a, c, d) { + var m, p, r; if (c) if (d) { - g = d.AA; + m = d.iD; p = d.prefix; - m = d.no; - h(c, function(c, d) { - if (!m || b(d)) a[(p || "") + (g ? c.toLowerCase() : c)] = d; + r = d.Mp; + f.pc(c, function(f, c) { + if (!r || b(c)) a[(p || "") + (m ? f.toLowerCase() : f)] = c; }); - } else h(c, function(b, c) { - a[b] = c; + } else f.pc(c, function(b, f) { + a[b] = f; }); return a; } - Object.defineProperty(c, "__esModule", { - value: !0 - }); - g = a(5); - c.Gb = function() {}; - c.pj = 1E3; - c.OC = Object.create; - c.fBa = Object.keys; - c.fJ = Date.now; - c.Xh = Math.floor; - c.l$ = Math.ceil; - c.ve = Math.round; - c.ig = Math.max; - c.ue = Math.min; - c.CC = Math.random; - c.ru = Math.abs; - c.GJ = Math.pow; - c.Vh = "$attributes"; - c.$R = "$children"; - c.aS = "$name"; - c.Io = "$text"; - c.mta = "$parent"; - c.$B = "$sibling"; - c.jFa = "string"; - c.Cjb = "number"; - c.Bjb = "function"; - c.iFa = "object"; - c.$a = b; - c.Pd = function(a) { - return typeof a == c.iFa; - }; - c.oc = d; - c.kq = function(a) { - return d(a) && a; - }; - c.Zc = function(a) { + Object.defineProperty(d, "__esModule", { + value: !0 + }); + k = a(6); + f = a(18); + d.Qb = function() {}; + d.Qj = 1E3; + d.DF = Object.create; + d.rLa = Object.keys; + d.uM = Date.now; + d.uq = Math.floor; + d.pKa = Math.ceil; + d.Uf = Math.round; + d.Xk = Math.max; + d.Ai = Math.min; + d.xF = Math.random; + d.wF = Math.abs; + d.Xea = Math.pow; + d.wi = "$attributes"; + d.UV = "$children"; + d.VV = "$name"; + d.jq = "$text"; + d.xCa = "$parent"; + d.PE = "$sibling"; + d.EPa = "string"; + d.pAb = "number"; + d.oAb = "function"; + d.DPa = "object"; + d.ab = b; + d.ne = function(a) { + return typeof a == d.DPa; + }; + d.bd = c; + d.Uu = function(a) { + return c(a) && a; + }; + d.Bd = function(a) { return parseInt(a, 10); }; - c.ll = function(a, b, c) { - return a >= b ? a <= c ? a : c : b; + d.yq = function(a, b, f) { + return a >= b ? a <= f ? a : f : b; }; - c.Kb = h; - c.oa = l; - c.NH = function(a) { - return l({}, a); + d.La = h; + d.UK = function(a) { + return h({}, a); }; - c.zg = function(a) { - var g; - for (var c = 0; c < arguments.length; ++c); - for (var c = 0, d = arguments.length; c < d;) { - g = arguments[c++]; - if (b(g)) return g; + d.bg = function(a) { + var d; + for (var f = 0; f < arguments.length; ++f); + for (var f = 0, c = arguments.length; f < c;) { + d = arguments[f++]; + if (b(d)) return d; } }; - c.BMa = function(a) { - for (var b, c = !0, d; c;) - for (c = !1, b = a.length; --b;) d = a[b], d.startTime < a[b - 1].startTime && (a[b] = a[b - 1], a[b - 1] = d, c = !0); + d.NXa = function(a) { + for (var b, f = !0, c; f;) + for (f = !1, b = a.length; --b;) c = a[b], c.startTime < a[b - 1].startTime && (a[b] = a[b - 1], a[b - 1] = c, f = !0); }; - c.ws = function(a, b) { + d.ou = function(a, b) { if (a.length == b.length) { - for (var c = a.length; c--;) - if (a[c] != b[c]) return !1; + for (var f = a.length; f--;) + if (a[f] != b[f]) return !1; return !0; } return !1; }; - c.createElement = function(a, b, c, d) { - var p; - p = g.cd.createElement(a); - b && (p.style.cssText = b); - c && (p.innerHTML = c); - d && h(d, function(a, b) { - p.setAttribute(a, b); + d.createElement = function(a, b, c, d) { + var m; + m = k.wd.createElement(a); + b && (m.style.cssText = b); + c && (m.innerHTML = c); + d && f.pc(d, function(a, b) { + m.setAttribute(a, b); }); - return p; + return m; }; - c.ME = function(a) { + d.uH = function(a) { var b; b = ""; - h(a, function(a, c) { - b += (b ? ";" : "") + a + ":" + c; + f.pc(a, function(a, f) { + b += (b ? ";" : "") + a + ":" + f; }); return b; }; - c.HN = function(a, b, d) { - var g; - a / b > d ? (g = c.ve(b * d), a = b) : (g = a, a = c.ve(a / d)); + d.mR = function(a, b, f) { + var c; + a / b > f ? (c = d.Uf(b * f), a = b) : (c = a, a = d.Uf(a / f)); return { - width: g, + width: c, height: a }; }; - c.C0 = function() { - var b, c; + d.r5 = function() { + var b, f; function a(a) { return b[a]; @@ -18430,354 +18726,86 @@ v7AA.H22 = function() { "<": "<", ">": ">" }; - c = /[&'"<>]/g; + f = /[&'"<>]/g; return function(b) { - return b.replace(c, a); + return b.replace(f, a); }; }(); - c.yc = function(a) { - var b, c; + d.ad = function(a) { + var b, f; if (a) { b = a.stack; - c = a.number; + f = a.number; a = "" + a; b ? (b = "" + b, 0 != b.indexOf(a) && (b = a + "\n" + b)) : b = a; - c && (b += "\nnumber:" + c); + f && (b += "\nnumber:" + f); return b; } }; - c.u = { - Vg: 1001, - te: 1003, - vxa: 1701, - y8: 1713, - wxa: 1715, - uxa: 1721, - oJ: 1723 - }; - }, function(f, c, a) { - Object.defineProperty(c, "__esModule", { - value: !0 - }); - f = a(108); - c.is = f.nn; - c.$a = function(a) { - return c.is.uf(a); - }; - c.Pd = function(a) { - return c.is.ov(a); - }; - c.V_a = function(a) { - return c.is.$L(a); - }; - c.isArray = function(a) { - return c.is.Gn(a); - }; - c.Qla = function(a) { - return c.is.Kfa(a); - }; - c.da = function(a, d, h) { - return c.is.ye(a, d, h); - }; - c.I_a = function(a, d, h) { - return c.is.rX(a, d, h); - }; - c.et = function(a, d, h) { - return c.is.Hn(a, d, h); - }; - c.Gla = function(a) { - return c.is.Xy(a); - }; - c.fpb = function(a) { - return c.is.pLa(a); - }; - c.ipb = function(a) { - return c.is.qLa(a); - }; - c.e1 = function(a) { - return c.is.Lfa(a); - }; - c.oc = function(a) { - return c.is.Xg(a); - }; - c.kq = function(a) { - return c.is.Eh(a); - }; - c.ula = function(a) { - return c.is.Vy(a); - }; - c.wb = function(a) { - return c.is.Wy(a); - }; - }, function(f, c, a) { - var d, h; - - function b(a, g) { - var m; - m = c.Uo[0]; - m == g && (m = c.Uo[1]); - m ? m.close(function() { - b(a, g); - }) : a && a(d.cb); - } - Object.defineProperty(c, "__esModule", { - value: !0 - }); - d = a(6); - f = a(17); - h = a(8); - a = a(46); - c.xaa = b; - c.$J = function(a, b) { - switch (a) { - case c.vU: - c.yaa.push(b); - return; - case c.wU: - c.zaa.push(b); - return; - } - h.ea(!1); - }; - c.Uo = []; - c.yaa = []; - c.zaa = []; - c.vU = 1; - c.wU = 3; - f = f.Qga(); - c.xu = { - zU: f, - rDa: f, - lDa: 0, - qDa: void 0, - ZJ: void 0 - }; - c.Gaa = a.Ea.$ra; - c.Qe = a.Ea.Vga; - c.XJ = a.Ea.YNa; - c.BU = a.Ea.v4; - c.AU = a.Ea.oQ; - c.mg = a.Ea.SP; - c.waa = a.Ea.kNa; - c.VC = a.Ea.mma; - c.YJ = a.Ea.closed; - c.mDa = a.Ea.ASa; - c.wDa = a.Ea.Do; - c.Daa = a.Ea.e$a; - c.yDa = a.Ea.pI; - c.xDa = a.Ea.Zt; - c.oDa = a.Ea.q0a; - c.Faa = a.Ea.hab; - c.Baa = a.Ea.cP; - c.Caa = a.Ea.l9a; - c.Aaa = a.Ea.VF; - c.Haa = a.Ea.Yab; - c.vaa = a.Ea.HMa; - c.uaa = a.Ea.GMa; - c.uDa = a.Ea.T4; - c.vDa = a.Ea.N8a; - c.tDa = a.Ea.Tqa; - c.sDa = a.Ea.L8a; - c.pDa = a.Ea.J1a; - c.Eaa = a.Ea.Wm; - c.NT = a.OT.Hga; - c.bhb = a.OT.lbb; - c.TT = a.p$.Ona; - c.ST = a.p$.Ik; - c.saa = "network"; - c.raa = "media"; - c.jDa = "timedtext"; - c.UC = a.hy.ZDa; - c.taa = a.hy.Vaa; - c.yU = a.hy.$Da; - c.xU = a.hy.Uaa; - c.gy = a.mk.AEa; - c.qj = a.mk.zEa; - c.lk = a.mk.Bu; - c.wu = a.mk.hba; - c.fy = a.mk.gba; - c.hk = a.RI.D$; - c.Zq = a.RI.Yq; - c.e7 = a.RI.xEa; - c.Zh = a.fm.hD; - c.em = a.fm.nf; - c.Vo = a.fm.sn; - c.pr = a.fm.PS; - c.kDa = "playback"; - }, function(f, c, a) { - var d, h, l, g; - - function b() { - return c.wK.VO.qa(g.Ma); - } - Object.defineProperty(c, "__esModule", { - value: !0 - }); - f = a(422); - d = a(52); - h = a(38); - l = a(37); - g = a(7); - c.Ica = f.sb.get(d.mj); - c.wK = f.sb.get(h.eg); - c.RHa = f.sb.get(l.Rg); - c.ir = c.wK.id; - c.Ra = function() { - return c.wK.oe().qa(g.Ma); - }; - c.On = function() { - return c.Ica.Eg.qa(g.Zo); + d.H = { + Sh: 1001, + qg: 1003, + uHa: 1701, + kda: 1713, + vHa: 1715, + tHa: 1721, + BM: 1723 }; - c.fPa = function() { - return c.wK.VO.qa(g.Zo); - }; - c.Qga = function() { - return c.RHa.As(); - }; - c.Rga = b; - c.AM = function() { - return c.Ica.Eg.qa(g.Ma); - }; - c.Sga = function() { - return b(); - }; - }, function(f, c, a) { - var b, d, h, l, g, m, p, r, u, v, z, w, k, x, y; - Object.defineProperty(c, "__esModule", { - value: !0 - }); - f = a(196); - b = a(4); - d = a(6); - a(25); - h = a(17); - l = a(3); - g = a(95); - m = a(58); - p = a(8); - r = a(103); - u = a(2); - v = a(558); - c.A1 = {}; - z = l.Cc("loadAsync"); - w = []; - x = l.Z.get(g.xr); - y = m.tc.og; - c.Dd = function(a, b) { - p.ea(!k); - w.push({ - Q0a: b, - vm: a - }); - }; - c.kG = f.pJ(function(a) { - var p, m; - - function g(b) { - c.z1 = h.Ra(); - g = d.Gb; - m.Og(); - a(b); - } - p = 0; - m = new r.my(b.config.WMa, function() { - z.error("Load timed out"); - g({ - errorCode: p, - R: u.u.Cta - }); - }); - v.g6a(w).then(function(a) { - function b() { - var c, h, r; - if (c = a.shift()) try { - h = c.Q0a; - p = r = c.vm; - m.Og(); - m.Sn(); - h(function(a) { - a.K ? b() : (a.errorCode = a.errorCode || r, x.mark(y.Fta), g(a)); - }); - } catch (V) { - z.error("Exception while loading component", V); - x.mark(y.Eta); - g({ - errorCode: r, - R: u.u.Bta, - za: "" + V - }); - } else x.mark(y.Dta), g(d.cb); - } - c.YO = h.Ra(); - x.mark(y.Gta); - k = !0; - b(); - }, function(a) { - g({ - errorCode: a.vm, - R: a.dha - }); - }); - }); - c.lG = function(a) { - p.ea(void 0 === c.A1[a]); - c.A1[a] = h.Ra(); - }; - }, function(f, c, a) { - var b, d, h, l; - Object.defineProperty(c, "__esModule", { + }, function(g, d, a) { + var b, c, h, k; + Object.defineProperty(d, "__esModule", { value: !0 }); - b = a(8); - d = a(14); - h = a(5); - l = a(15); - c.Kb = c.Kb || function(a, b) { - for (var c in a) a.hasOwnProperty(c) && b(c, a[c]); + b = a(12); + c = a(17); + h = a(6); + k = a(15); + d.pc = function(a, b) { + for (var f in a) a.hasOwnProperty(f) && b(f, a[f]); }; - c.oa = c.oa || function(a, b, p) { - var g, m, h; + d.La = d.La || function(a, b, m) { + var f, p, k; if (b) - if (p) { - g = p.AA; - m = p.prefix; - h = p.no; - c.Kb(b, function(b, c) { - if (!h || d.$a(c)) a[(m || "") + (g ? b.toLowerCase() : b)] = c; + if (m) { + f = m.iD; + p = m.prefix; + k = m.Mp; + d.pc(b, function(b, d) { + if (!k || c.ab(d)) a[(p || "") + (f ? b.toLowerCase() : b)] = d; }); - } else c.Kb(b, function(b, c) { - a[b] = c; + } else d.pc(b, function(b, f) { + a[b] = f; }); return a; }; - c.BOa = function(a, b, c, d) { - var g; + d.OZa = function(a, b, c, d) { + var f; if (a) { - g = a[b]; - l.wb(g) && (c = g.apply(a, h.slice.call(arguments, 3))); + f = a[b]; + k.qb(f) && (c = f.apply(a, h.slice.call(arguments, 3))); } }; - c.Sfa = function(a) { - for (var b = {}, c = a.length; c--;) b[a[c]] = !0; + d.OXa = function() { + for (var a = ["info", "warn", "trace", "error"], b = {}, c = a.length; c--;) b[a[c]] = !0; return b; }; - c.Zc = c.Zc || function(a) { + d.Bd = d.Bd || function(a) { return parseInt(a, 10); }; - c.Oqb = function(a) { + d.YGb = function(a) { return /^true$/i.test(a); }; - c.Apa = function(a, b) { - return h.ve(a + h.CC() * (b - a)); + d.$xa = function(a, b) { + return h.Uf(a + h.xF() * (b - a)); }; - c.uR = function(a) { + d.lV = function(a) { return JSON.stringify(a, null, " "); }; - c.C0 = function() { + d.r5 = function() { var c, d; function a(a) { - b.ea(void 0 !== c[a]); + b.sa(void 0 !== c[a]); return c[a]; } c = { @@ -18792,567 +18820,481 @@ v7AA.H22 = function() { return b.replace(d, a); }; }(); - c.trim = function() { + d.trim = function() { var a; a = /^\s+|\s+$/gm; return function(b) { return b.replace(a, ""); }; }(); - c.F1a = function(a) { + d.a7 = function(a) { return Array.isArray(a) ? a : [a]; }; - c.yc = c.yc || function(a) { - var b, c, d; + d.ad = d.ad || function(a) { + var b, f, c; if (a) { b = a.stack; - c = a.number; - d = a.message; - d || (d = "" + a); - b ? (a = "" + b, 0 != a.indexOf(d) && (a = d + "\n" + a)) : a = d; - c && (a += "\nnumber:" + c); + f = a.number; + c = a.message; + c || (c = "" + a); + b ? (a = "" + b, 0 != a.indexOf(c) && (a = c + "\n" + a)) : a = c; + f && (a += "\nnumber:" + f); return a; } }; - c.kk = function(a) { - return l.da(a) ? a.toFixed(0) : ""; + d.Bl = function(a) { + return k.ja(a) ? a.toFixed(0) : ""; }; - c.MC = function(a) { - return l.da(a) ? (a / 1E3).toFixed(0) : ""; + d.Wx = function(a) { + return k.ja(a) ? (a / 1E3).toFixed(0) : ""; }; - c.OAa = function(a) { - return l.da(a) ? a.toFixed() : ""; + d.A7a = function(a) { + return k.ja(a) ? a.toFixed() : ""; }; - c.PPa = function(a) { - for (var b = [], c = 0; c < a.length; c++) b[c] = a[c]; + d.n0a = function(a) { + for (var b = [], f = 0; f < a.length; f++) b[f] = a[f]; return b; }; - }, function(f, c) { - Object.defineProperty(c, "__esModule", { + }, function(g, d, a) { + var b, c, h, k, f, p, m, r, u, x, v, y, w, D, z; + Object.defineProperty(d, "__esModule", { value: !0 }); - c.rd = "IsTypeSymbol"; - }, function(f, c, a) { - (function(b) { - var y, C, F, N, T, ca, n; - - function c(a, b) { - if (a === b) return 0; - for (var c = a.length, d = b.length, g = 0, p = Math.min(c, d); g < p; ++g) - if (a[g] !== b[g]) { - c = a[g]; - d = b[g]; - break; - } return c < d ? -1 : d < c ? 1 : 0; - } - - function h(a) { - return b.d7 && "function" === typeof b.d7.isBuffer ? b.d7.isBuffer(a) : !(null == a || !a.rkb); - } - - function l(a) { - return h(a) || "function" !== typeof b.ArrayBuffer ? !1 : "function" === typeof ArrayBuffer.isView ? ArrayBuffer.isView(a) : a ? a instanceof DataView || a.buffer && a.buffer instanceof ArrayBuffer ? !0 : !1 : !1; - } - - function g(a) { - if (y.wb(a)) return N ? a.name : (a = a.toString().match(ca)) && a[1]; - } - - function m(a) { - return "string" === typeof a ? 128 > a.length ? a : a.slice(0, 128) : a; - } + g = a(378); + b = a(9); + c = a(5); + a(25); + h = a(21); + k = a(3); + f = a(117); + p = a(61); + m = a(12); + r = a(2); + u = a(648); + x = a(116); + d.B6 = {}; + v = k.zd("loadAsync"); + y = []; + D = k.ca.get(f.Hw); + z = p.fd.qj; + d.Ge = function(a, b) { + m.sa(!w); + y.push({ + Jdb: b, + Gn: a + }); + }; + d.qJ = g.AHa(function(a) { + var m, p; - function p(a) { - if (N || !y.wb(a)) return y.aG(a); - a = g(a); - return "[Function" + (a ? ": " + a : "") + "]"; + function f(b) { + d.A6 = h.yc(); + f = c.Qb; + p.Pf(); + a(b); } - - function r(a, b, c, d, g) { - throw new T.AssertionError({ - message: c, - jv: a, - Kl: b, - Jw: d, - p$a: g + m = 0; + p = k.ca.get(x.Gw)(b.config.fYa, function() { + v.error("Load timed out"); + f({ + errorCode: m, + T: r.H.OCa }); - } - - function u(a, b) { - a || r(a, !0, b, "==", T.ok); - } - - function v(a, b, d, g) { - var p; - if (a === b) return !0; - if (h(a) && h(b)) return 0 === c(a, b); - if (y.cG(a) && y.cG(b)) return a.getTime() === b.getTime(); - if (y.Lla(a) && y.Lla(b)) return a.source === b.source && a.global === b.global && a.multiline === b.multiline && a.lastIndex === b.lastIndex && a.ignoreCase === b.ignoreCase; - if (null !== a && "object" === typeof a || null !== b && "object" === typeof b) { - if (!l(a) || !l(b) || Object.prototype.toString.call(a) !== Object.prototype.toString.call(b) || a instanceof Float32Array || a instanceof Float64Array) { - if (h(a) !== h(b)) return !1; - g = g || { - jv: [], - Kl: [] - }; - p = g.jv.indexOf(a); - if (-1 !== p && p === g.Kl.indexOf(b)) return !0; - g.jv.push(a); - g.Kl.push(b); - return z(a, b, d, g); - } - return 0 === c(new Uint8Array(a.buffer), new Uint8Array(b.buffer)); + }); + u.Zjb(y).then(function(a) { + function b() { + var d, k, h; + if (d = a.shift()) try { + k = d.Jdb; + m = h = d.Gn; + p.Pf(); + p.mp(); + k(function(a) { + a.S ? b() : (a.errorCode = a.errorCode || h, D.mark(z.RCa), f(a)); + }); + } catch (S) { + v.error("Exception while loading component", S); + D.mark(z.QCa); + f({ + errorCode: h, + T: r.H.NCa, + Ja: "" + S + }); + } else D.mark(z.PCa), f(c.Bb); } - return d ? a === b : a == b; - } - - function z(a, b, c, d) { - var g, p, m; - if (null === a || void 0 === a || null === b || void 0 === b) return !1; - if (y.Hla(a) || y.Hla(b)) return a === b; - if (c && Object.getPrototypeOf(a) !== Object.getPrototypeOf(b)) return !1; - g = "[object Arguments]" == Object.prototype.toString.call(a); - p = "[object Arguments]" == Object.prototype.toString.call(b); - if (g && !p || !g && p) return !1; - if (g) return a = F.call(a), b = F.call(b), v(a, b, c); - g = n(a); - m = n(b); - if (g.length !== m.length) return !1; - g.sort(); - m.sort(); - for (p = g.length - 1; 0 <= p; p--) - if (g[p] !== m[p]) return !1; - for (p = g.length - 1; 0 <= p; p--) - if (m = g[p], !v(a[m], b[m], c, d)) return !1; - return !0; - } - - function w(a, b, c) { - v(a, b, !0) && r(a, b, c, "notDeepStrictEqual", w); - } - - function k(a, b) { - if (!a || !b) return !1; - if ("[object RegExp]" == Object.prototype.toString.call(b)) return b.test(a); - try { - if (a instanceof b) return !0; - } catch (ja) {} - return Error.isPrototypeOf(b) ? !1 : !0 === b.call({}, a); - } + d.JS = h.yc(); + D.mark(z.SCa); + w = !0; + b(); + }, function(a) { + f({ + errorCode: a.Gn, + T: a.Ona + }); + }); + }); + d.rJ = function(a) { + m.sa(void 0 === d.B6[a]); + d.B6[a] = h.yc(); + }; + }, function(g, d) { + Object.defineProperty(d, "__esModule", { + value: !0 + }); + d.je = "ConfigSymbol"; + }, function(g, d, a) { + var c, h, k, f; - function x(a, b, c, d) { - var g, p, m; - if ("function" !== typeof b) throw new TypeError('"block" argument must be a function'); - "string" === typeof c && (d = c, c = null); - try { - b(); - } catch (X) { - g = X; - } - b = g; - d = (c && c.name ? " (" + c.name + ")." : ".") + (d ? " " + d : "."); - a && !b && r(b, c, "Missing expected exception" + d); - g = "string" === typeof d; - p = !a && y.eG(b); - m = !a && b && !c; - (p && g && k(b, c) || m) && r(b, c, "Got unwanted exception" + d); - if (a && b && c && !k(b, c) || !a && b) throw b; - } - y = a(520); - C = Object.prototype.hasOwnProperty; - F = Array.prototype.slice; - N = function() { - return "foo" === function() {}.name; - }(); - T = f.P = u; - ca = /\s*function\s+([^\(\s]*)\s*/; - T.AssertionError = function(a) { - var b; - this.name = "AssertionError"; - this.jv = a.jv; - this.Kl = a.Kl; - this.Jw = a.Jw; - this.message = a.message ? a.message : m(p(this.jv)) + " " + this.Jw + " " + m(p(this.Kl)); - b = a.p$a || r; - Error.captureStackTrace ? Error.captureStackTrace(this, b) : (a = Error(), a.stack && (a = a.stack, b = g(b), b = a.indexOf("\n" + b), 0 <= b && (a = a.substring(a.indexOf("\n", b + 1) + 1)), this.stack = a)); - }; - y.l_a(T.AssertionError, Error); - T.fail = r; - T.ok = u; - T.equal = function(a, b, c) { - a != b && r(a, b, c, "==", T.equal); - }; - T.Z2 = function(a, b, c) { - a == b && r(a, b, c, "!=", T.Z2); - }; - T.BSa = function(a, b, c) { - v(a, b, !1) || r(a, b, c, "deepEqual", T.BSa); - }; - T.CSa = function(a, b, c) { - v(a, b, !0) || r(a, b, c, "deepStrictEqual", T.CSa); - }; - T.p3a = function(a, b, c) { - v(a, b, !1) && r(a, b, c, "notDeepEqual", T.p3a); - }; - T.wqb = w; - T.V$a = function(a, b, c) { - a !== b && r(a, b, c, "===", T.V$a); - }; - T.q3a = function(a, b, c) { - a === b && r(a, b, c, "!==", T.q3a); - }; - T["throws"] = function(a, b, c) { - x(!0, a, b, c); - }; - T.Pmb = function(a, b, c) { - x(!1, a, b, c); - }; - T.Oob = function(a) { - if (a) throw a; - }; - n = Object.keys || function(a) { - var b, c; - b = []; - for (c in a) C.call(a, c) && b.push(c); - return b; - }; - }.call(this, a(162))); - }, function(f, c) { - Object.defineProperty(c, "__esModule", { + function b() { + return d.EN.bD.ma(f.Aa); + } + Object.defineProperty(d, "__esModule", { + value: !0 + }); + g = a(473); + c = a(37); + h = a(24); + k = a(119); + f = a(4); + d.Kia = g.Nc.get(c.yi); + d.EN = g.Nc.get(h.Ue); + d.CSa = g.Nc.get(k.dA); + d.oF = d.EN.id; + d.yc = function() { + return d.EN.Pe().ma(f.Aa); + }; + d.Ex = function() { + return d.Kia.eg.ma(f.em); + }; + d.D_a = function() { + return d.EN.bD.ma(f.em); + }; + d.B_a = function() { + return d.CSa.wH(); + }; + d.C_a = b; + d.oH = function() { + return d.Kia.eg.ma(f.Aa); + }; + d.E_a = function() { + return b(); + }; + }, function(g, d) { + Object.defineProperty(d, "__esModule", { value: !0 }); - c.Ee = "DeviceFactorySymbol"; - }, function(f, c) { - Object.defineProperty(c, "__esModule", { + d.Je = "UtilitiesSymbol"; + }, function(g, d) { + Object.defineProperty(d, "__esModule", { value: !0 }); - c.Oe = "PboConfigSymbol"; - }, function(f, c) { - Object.defineProperty(c, "__esModule", { + d.ve = "IsTypeSymbol"; + }, function(g, d) { + Object.defineProperty(d, "__esModule", { value: !0 }); - c.Pe = "PlatformSymbol"; - }, function(f, c, a) { - var v, z, w, k, x, y, C; + d.Ue = "ApplicationSymbol"; + }, function(g, d, a) { + var r, u, x, v, y, w, D; function b() { var a, b; - if (a = c.Z_.Eea) return a; - a = y.KJ.search.substr(1); + if (a = d.E4.Uka) return a; + a = w.YM.search.substr(1); b = a.indexOf("#"); 0 <= b && (a = a.substr(0, b)); - a = d(a); - return c.Z_.Eea = a; + a = c(a); + return d.E4.Uka = a; } - function d(a) { - for (var b = /[+]/g, c = (a || "").split("&"), d = {}, g, p = 0; p < c.length; p++) a = k.trim(c[p]), g = a.indexOf("="), 0 <= g ? d[decodeURIComponent(a.substr(0, g).replace(b, "%20")).toLowerCase()] = decodeURIComponent(a.substr(g + 1).replace(b, "%20")) : d[a.toLowerCase()] = null; - return d; + function c(a) { + for (var b = /[+]/g, f = (a || "").split("&"), c = {}, d, m = 0; m < f.length; m++) a = v.trim(f[m]), d = a.indexOf("="), 0 <= d ? c[decodeURIComponent(a.substr(0, d).replace(b, "%20")).toLowerCase()] = decodeURIComponent(a.substr(d + 1).replace(b, "%20")) : c[a.toLowerCase()] = null; + return c; } function h(a) { return (a = /function (.{1,})\(/.exec(a.toString())) && 1 < a.length ? a[1] : ""; } - function l(a) { + function k(a) { return h(a.constructor); } - function g(a) { - return y.sort.call(a, function(a, b) { + function f(a) { + return w.sort.call(a, function(a, b) { return a - b; }); } - function m(a) { - for (var b = 0, c = a.length; c--;) b += a[c]; - return b; - } - function p(a) { - return (a = a.match(/Chrome\/(\d*)\./)) && a[1] | 0; - } - - function r(a) { - return (a = a.match(/Firefox\/(\d*)\./)) && a[1] | 0; + for (var b = 0, f = a.length; f--;) b += a[f]; + return b; } - function u() { - return C.wb(y.Tg.requestMediaKeySystemAccess); + function m() { + return D.qb(w.Ph.requestMediaKeySystemAccess); } - Object.defineProperty(c, "__esModule", { + Object.defineProperty(d, "__esModule", { value: !0 }); - v = a(6); - z = a(8); - w = a(3); - k = a(19); - x = a(14); - y = a(5); - C = a(15); - c.aha = function(a, b) { + r = a(5); + u = a(12); + x = a(3); + v = a(18); + y = a(17); + w = a(6); + D = a(15); + d.Ina = function(a, b) { if (a === b) return !0; if (!a || !b) return !1; - for (var c in a) - if (a.hasOwnProperty(c) && (!b.hasOwnProperty(c) || a[c] !== b[c])) return !1; + for (var f in a) + if (a.hasOwnProperty(f) && (!b.hasOwnProperty(f) || a[f] !== b[f])) return !1; return !0; }; - c.ws = c.ws || function(a, b) { + d.ou = d.ou || function(a, b) { if (a.length == b.length) { - for (var c = a.length; c--;) - if (a[c] != b[c]) return !1; + for (var f = a.length; f--;) + if (a[f] != b[f]) return !1; return !0; } return !1; }; - c.Urb = function(a) { + d.HHb = function(a) { var b; if (a) { b = a.length; - if (b) return b = k.Apa(0, b - 1), a[b]; + if (b) return b = v.$xa(0, b - 1), a[b]; } }; - c.HPa = function(a, b) { + d.g0a = function(a, b) { if (a.length != b.length) return !1; a.sort(); b.sort(); - for (var c = a.length; c--;) - if (a[c] !== b[c]) return !1; + for (var f = a.length; f--;) + if (a[f] !== b[f]) return !1; return !0; }; - c.$La = function(a, b) { - function c() { - a.removeEventListener("loadedmetadata", c); + d.iXa = function(a, b) { + function f() { + a.removeEventListener("loadedmetadata", f); b.apply(this, arguments); } - a.addEventListener("loadedmetadata", c); + a.addEventListener("loadedmetadata", f); }; - c.N6a = function() { - var a, b, c, d, g, p; - a = y.cd.cookie.split("; "); + d.Kkb = function() { + var a, b, f, c, d, m; + a = w.wd.cookie.split("; "); b = a.length; - p = {}; - for (c = 0; c < b; c++) - if (d = k.trim(a[c])) g = d.indexOf("="), 0 < g && (p[d.substr(0, g)] = d.substr(g + 1)); - return p; + m = {}; + for (f = 0; f < b; f++) + if (c = v.trim(a[f])) d = c.indexOf("="), 0 < d && (m[c.substr(0, d)] = c.substr(d + 1)); + return m; }; - c.gob = b; - c.Z_ = Object.assign(b, { - Eea: void 0 + d.REb = b; + d.E4 = Object.assign(b, { + Uka: void 0 }); - c.KP = d; - c.PG = function(a) { + d.KT = c; + d.SJ = function(a) { var b; b = ""; - x.Kb(a, function(a, c) { + v.pc(a, function(a, f) { b && (b += "&"); - z.ea(x.oc(c) || C.da(c) || C.ula(c)); - b += encodeURIComponent(a) + "=" + encodeURIComponent(c); + u.sa(y.bd(f) || D.ja(f) || D.qta(f)); + b += encodeURIComponent(a) + "=" + encodeURIComponent(f); }); return b; }; - c.getFunctionName = h; - c.Hja = l; - c.eoa = function(a) { + d.getFunctionName = h; + d.hra = k; + d.uwa = function(a) { var b; b = ""; - C.isArray(a) || C.Qla(a) ? b = y.reduce.call(a, function(a, b) { - return a + (32 <= b && 128 > b ? y.cFa(b) : "."); - }, "") : x.oc(a) ? b = a : x.Kb(a, function(a, c) { - b += (b ? ", " : "") + "{" + a + ": " + (C.wb(c) ? h(c) || "function" : c) + "}"; + D.isArray(a) || D.Kta(a) ? b = w.reduce.call(a, function(a, b) { + return a + (32 <= b && 128 > b ? w.uPa(b) : "."); + }, "") : y.bd(a) ? b = a : v.pc(a, function(a, f) { + b += (b ? ", " : "") + "{" + a + ": " + (D.qb(f) ? h(f) || "function" : f) + "}"; }); - return "[" + l(a) + " " + b + "]"; + return "[" + k(a) + " " + b + "]"; }; - c.prb = function(a, b) { + d.yHb = function(a, b) { a.firstChild ? a.insertBefore(b, a.firstChild) : a.appendChild(b); }; - c.ME = c.ME || function(a) { + d.uH = d.uH || function(a) { var b; b = ""; - x.Kb(a, function(a, c) { - b += (b ? ";" : "") + a + ":" + c; + v.pc(a, function(a, f) { + b += (b ? ";" : "") + a + ":" + f; }); return b; }; - c.bpb = function(a, b) { - var c; - c = a[0]; - if (b <= c[0]) return c.slice(1); - for (var d = 1, g; g = a[d++];) { - if (b <= g[0]) { - a = (b - c[0]) / (g[0] - c[0]); + d.vFb = function(a, b) { + var f; + f = a[0]; + if (b <= f[0]) return f.slice(1); + for (var c = 1, d; d = a[c++];) { + if (b <= d[0]) { + a = (b - f[0]) / (d[0] - f[0]); b = []; - for (d = 1; d < c.length; d++) b.push((c[d] || 0) + a * ((g[d] || 0) - (c[d] || 0))); + for (c = 1; c < f.length; c++) b.push((f[c] || 0) + a * ((d[c] || 0) - (f[c] || 0))); return b; } - c = g; + f = d; } - return c.slice(1); + return f.slice(1); }; - c.udb = function(a, b) { - var g; - for (var c = {}, d = 0; d < b.length; d++) { - g = b[d]; - if ("string" != typeof g && "number" != typeof g) return !1; - c[b[d]] = 1; + d.ltb = function(a, b) { + var d; + for (var f = {}, c = 0; c < b.length; c++) { + d = b[c]; + if ("string" != typeof d && "number" != typeof d) return !1; + f[b[c]] = 1; } - for (d = 0; d < a.length; d++) - if (g = a[d], !c[g]) return !1; + for (c = 0; c < a.length; c++) + if (d = a[c], !f[d]) return !1; return !0; }; - c.O6 = function(a, b) { + d.gDa = function(a, b) { 0 > a.indexOf(b) && a.push(b); }; - c.dS = g; - c.wdb = m; - c.N6 = function(a, b) { - var c, d, g, p; - c = -1; - d = a.length; + d.YV = f; + d.ntb = p; + d.Cba = function(a, b) { + var f, c, d, m; + f = -1; + c = a.length; if (1 === arguments.length) { - for (; ++c < d && !(null != (g = a[c]) && g <= g);) g = void 0; - for (; ++c < d;) null != (p = a[c]) && p > g && (g = p); + for (; ++f < c && !(null != (d = a[f]) && d <= d);) d = void 0; + for (; ++f < c;) null != (m = a[f]) && m > d && (d = m); } else { - for (; ++c < d && !(null != (g = b.call(a, a[c], c)) && g <= g);) g = void 0; - for (; ++c < d;) null != (p = b.call(a, a[c], c)) && p > g && (g = p); + for (; ++f < c && !(null != (d = b.call(a, a[f], f)) && d <= d);) d = void 0; + for (; ++f < c;) null != (m = b.call(a, a[f], f)) && m > d && (d = m); } - return g; + return d; }; - c.vdb = function(a, b) { - var c, d, g, p; - c = -1; - d = a.length; + d.mtb = function(a, b) { + var f, c, d, m; + f = -1; + c = a.length; if (1 === arguments.length) { - for (; ++c < d && !(null != (g = a[c]) && g <= g);) g = void 0; - for (; ++c < d;) null != (p = a[c]) && g > p && (g = p); + for (; ++f < c && !(null != (d = a[f]) && d <= d);) d = void 0; + for (; ++f < c;) null != (m = a[f]) && d > m && (d = m); } else { - for (; ++c < d && !(null != (g = b.call(a, a[c], c)) && g <= g);) g = void 0; - for (; ++c < d;) null != (p = b.call(a, a[c], c)) && g > p && (g = p); + for (; ++f < c && !(null != (d = b.call(a, a[f], f)) && d <= d);) d = void 0; + for (; ++f < c;) null != (m = b.call(a, a[f], f)) && d > m && (d = m); } - return g; + return d; }; - c.NA = function(a) { - return C.wb(a.then) ? a : new Promise(function(b, c) { + d.AD = function(a) { + return D.qb(a.then) ? a : new Promise(function(b, f) { a.oncomplete = function() { b(a.result); }; a.onerror = function() { - c(a.error); + f(a.error); }; }); }; - c.oVa = function(a, b) { - var d, p, m, h, r, l; + d.fEb = function(a, b) { + var d, m, p, r, k, h; function c(a) { - 0 > d.indexOf(a) && C.da(a) && d.push(a); + 0 > d.indexOf(a) && D.ja(a) && d.push(a); } a = a.slice(); - g(a); + f(a); d = []; if (!b || !b.length) return a; if (!a.length) return []; - p = b.length; + m = b.length; try { - for (; p--;) { - r = "" + b[p]; - l = x.Zc(r); - switch (r[r.length - 1]) { + for (; m--;) { + k = "" + b[m]; + h = y.Bd(k); + switch (k[k.length - 1]) { case "-": - for (m = a.length; m--;) - if (h = a[m], h < l) { - c(h); + for (p = a.length; p--;) + if (r = a[p], r < h) { + c(r); break; } break; case "+": - for (m = 0; m < a.length; m++) - if (h = a[m], h > l) { - c(h); + for (p = 0; p < a.length; p++) + if (r = a[p], r > h) { + c(r); break; } break; default: - 0 <= a.indexOf(l) && c(l); + 0 <= a.indexOf(h) && c(h); } } - } catch (D) {} + } catch (ga) {} d.length || d.push(a[0]); - g(d); + f(d); return d; }; - c.HN = c.HN || function(a, b, c) { - var d; - a / b > c ? (d = y.ve(b * c), a = b) : (d = a, a = y.ve(a / c)); + d.mR = d.mR || function(a, b, f) { + var c; + a / b > f ? (c = w.Uf(b * f), a = b) : (c = a, a = w.Uf(a / f)); return { - width: d, + width: c, height: a }; }; - c.Nlb = function(a, b, c) { - for (var d = [], g = 0; g < b; g++) d.push(y.GJ(a[g] - c, 2)); - return y.Zza(m(d) / d.length); + d.wCb = function(a, b, f) { + for (var c = [], d = 0; d < b; d++) c.push(w.Xea(a[d] - f, 2)); + return w.qKa(p(c) / c.length); }; - c.rs = function(a, b) { - var c; - c = a.length; - b = (c - 1) * b + 1; + d.lu = function(a, b) { + var f; + f = a.length; + b = (f - 1) * b + 1; if (1 === b) return a[0]; - if (b == c) return a[c - 1]; - c = y.Xh(b); - return a[c - 1] + (b - c) * (a[c] - a[c - 1]); - }; - c.wMa = function(a) { - var b; - b = { - useSetServerCertificateApi: !0 - }; - 50 <= p(y.Ug) && x.oa(a, b); - }; - c.Rnb = p; - c.Nkb = function(a, b, c) { - r(y.Ug) >= a && x.oa(b, c); + if (b == f) return a[f - 1]; + f = w.uq(b); + return a[f - 1] + (b - f) * (a[f] - a[f - 1]); }; - c.Unb = r; - c.Enb = function(a, b) { - if (!C.isArray(a)) throw Error("boxes is not an array"); + d.hEb = function(a, b) { + if (!D.isArray(a)) throw Error("boxes is not an array"); if (0 >= a.length) throw Error("There are no boxes in boxes"); - b = C.isArray(b) ? b : [b]; - for (var c = a.length, d = 0; d < c; d++) - for (var g = 0; g < b.length; g++) - if (a[d].type == b[g]) return a[d]; + b = D.isArray(b) ? b : [b]; + for (var f = a.length, c = 0; c < f; c++) + for (var d = 0; d < b.length; d++) + if (a[c].type == b[d]) return a[c]; throw Error("Box not found " + b); }; - c.Wdb = function(a) { - return a.$p("trak/mdia/minf/stbl/stsd/" + v.vua + "|" + v.wua).children.filter(function(a) { - return "sinf" == a.type && "cenc" == a.n_.schm.z8a; - })[0].$p("schi/tenc").NO; + d.Xtb = function(a) { + return a.Or("trak/mdia/minf/stbl/stsd/" + r.TDa + "|" + r.UDa).children.filter(function(a) { + return "sinf" == a.type && "cenc" == a.w3.schm.Kmb; + })[0].Or("schi/tenc").iJ; }; - c.Vdb = function(a) { - var c; + d.Wtb = function(a) { + var f; function b(a, b) { - var d; - d = c[a]; - c[a] = c[b]; - c[b] = d; + var c; + c = f[a]; + f[a] = f[b]; + f[b] = c; } - c = new Uint8Array(a); + f = new Uint8Array(a); b(0, 3); b(1, 2); b(4, 5); b(6, 7); - return c; + return f; }; - c.Jla = u; - c.IO = function(a) { - return u() || a.wab; + d.Dta = m; + d.vS = function(a) { + return m() || a.iL; }; - c.erb = function(a) { + d.rHb = function(a) { return function(b) { return b && b[a]; }; }; - C.wb(ArrayBuffer.prototype.slice) || (ArrayBuffer.prototype.slice = function(a, b) { - var c, d; + D.qb(ArrayBuffer.prototype.slice) || (ArrayBuffer.prototype.slice = function(a, b) { + var f, c; void 0 === a && (a = 0); void 0 === b && (b = this.byteLength); a = Math.floor(a); @@ -19362,16 +19304,16 @@ v7AA.H22 = function() { a = Math.min(Math.max(0, a), this.byteLength); b = Math.min(Math.max(0, b), this.byteLength); if (0 >= b - a) return new ArrayBuffer(0); - c = new ArrayBuffer(b - a); - d = new Uint8Array(c); + f = new ArrayBuffer(b - a); + c = new Uint8Array(f); a = new Uint8Array(this, a, b - a); - d.set(a); - return c; + c.set(a); + return f; }); - c.f1 = function(a) { + d.b6 = function(a) { return a && 0 == a.toLowerCase().indexOf("https"); }; - c.mXa = function() { + d.Z8a = function() { var a, b; a = new ArrayBuffer(4); b = new Uint8Array(a); @@ -19382,1124 +19324,1223 @@ v7AA.H22 = function() { b[3] = 212; return 3569595041 == a[0] ? "LE" : 2712847316 == a[0] ? "BE" : "undefined"; }; - c.eO = function() { - var a, b, c; + d.IR = function() { + var a, b, f; try { a = /playercore.*js/; - b = y.cm.getEntries("resource").filter(function(b) { + b = w.wq.getEntries("resource").filter(function(b) { return null !== a.exec(b.name); }); if (b && 0 < b.length) { - c = y.ve(b[0].duration); - return JSON.stringify(c); + f = w.Uf(b[0].duration); + return JSON.stringify(f); } - } catch (ca) {} + } catch (F) {} }; - c.hrb = function(a, b, c) { + d.tHb = function(a, b, f) { if (a && a.length) - if (c && c.ZOa) try { - a.forEach(function(a, d) { - var g; - g = (d = c.ZOa[d]) && d.media; - g && x.oc(g) ? (g = w.Pi(g).buffer, a.media = { - arrayBuffer: g, - length: g.byteLength, + if (f && f.t_a) try { + a.forEach(function(a, c) { + var d; + d = (c = f.t_a[c]) && c.media; + d && y.bd(d) ? (d = x.hk(d).buffer, a.media = { + arrayBuffer: d, + length: d.byteLength, stream: b, - Ya: d.cdn - }) : w.log.warn("chunk not in cache", a.Zi); + Mb: c.cdn + }) : x.log.warn("chunk not in cache", a.If); }); - } catch (ca) { - w.log.error("error reading cached chunks", ca); - } else w.log.warn("chunks not available in cached stream", c.type); - else w.log.warn("chunks not available in mediabuffer", c.type); + } catch (F) { + x.log.error("error reading cached chunks", F); + } else x.log.warn("chunks not available in cached stream", f.type); + else x.log.warn("chunks not available in mediabuffer", f.type); }; - }, function(f, c) { - Object.defineProperty(c, "__esModule", { + }, function(g, d) { + Object.defineProperty(d, "__esModule", { value: !0 }); - c.Re = "UtilitiesSymbol"; - }, function(f, c) { - Object.defineProperty(c, "__esModule", { + d.qW = "ConfigurableInputsSymbol"; + d.Fi = "ValidatingConfigurableInputsSymbol"; + d.Tz = "ConfigNameSymbol"; + d.SM = "InitParamsSymbol"; + }, function(g, d) { + Object.defineProperty(d, "__esModule", { value: !0 }); - c.lf = "ApiInfoSymbol"; - }, function(f, c, a) { - var r, u, v, z, w, k, x, y, C, F, N, T, ca, n, q; + (function(a) { + a[a.Audio = 0] = "Audio"; + a[a.bia = 1] = "Video"; + }(d.zF || (d.zF = {}))); + (function(a) { + a[a.dw = 0] = "Default"; + a[a.rw = 1] = "Microsoft"; + }(d.Yv || (d.Yv = {}))); + (function(a) { + a[a.dw = 0] = "Default"; + a[a.nW = 1] = "Cast"; + a[a.pW = 2] = "Chrome"; + a[a.rw = 3] = "Microsoft"; + a[a.qha = 4] = "Safari"; + }(d.rj || (d.rj = {}))); + (function(a) { + a[a.MF = 0] = "SD"; + a[a.EM = 1] = "HD"; + a[a.qN = 2] = "UHD"; + a[a.og = 3] = "DV"; + a[a.sq = 4] = "HDR10"; + a[a.ot = 5] = "VP9"; + a[a.jh = 6] = "AV1"; + }(d.Jd || (d.Jd = {}))); + (function(a) { + a[a.Io = 0] = "Level_1_4"; + a[a.kw = 1] = "Level_2_2"; + }(d.mh || (d.mh = {}))); + d.IAb = function() {}; + (function(a) { + a[a.Xyb = 0] = "Platform"; + a[a.Bub = 1] = "CurrentTitle"; + }(d.wQa || (d.wQa = {}))); + d.EW = "DeviceCapabilitiesSymbol"; + d.Xub = function() {}; + }, function(g, d, a) { + g.M = { + BHa: a(743), + Ia: a(59).Ia, + MB: a(59).MB, + Br: a(59).Br, + vJ: a(59).vJ, + e$: a(59).e$, + uLa: a(742), + Vyb: a(208), + GQa: a(741) + }; + }, function(g, d, a) { + g.M = { + EventEmitter: a(746), + dF: a(745) + }; + }, function(g, d) { + Object.defineProperty(d, "__esModule", { + value: !0 + }); + d.Xf = "SchedulerSymbol"; + }, function(g, d, a) { + var h; function b(a) { - var b, c, d, g; - b = a.url.split("?"); - c = b[0]; - d = "sc=" + a.A8a; - g = a.fY ? "random=" + (1E17 * T.CC()).toFixed(0) : ""; - c = b[1] ? c + ("?" + b[1] + "&" + d) : c + ("?" + d); - c = c + (g ? "&" + g : ""); - a.Ya && !w.f1(c) && (a = v.config && v.config.oY) && (c = a.replace("{URL}", c).replace("{EURL}", encodeURIComponent(c))); - return c; + return h.rN.apply(this, arguments) || this; } - function d(a) { - var b, c, d, g; - b = a.url.split("?"); - c = b[0]; - d = "bb_reason=" + a.reason; - g = a.fY ? "random=" + (1E17 * T.CC()).toFixed(0) : ""; - c = b[1] ? c + ("?" + b[1] + "&" + d) : c + ("?" + d); - c = c + (g ? "&" + g : ""); - a.Ya && !w.f1(c) && (a = v.config && v.config.oY) && (c = a.replace("{URL}", c).replace("{EURL}", encodeURIComponent(c))); - return c; - } + function c(a) { + return new h.Ko(a, d.Qz); + } + Object.defineProperty(d, "__esModule", { + value: !0 + }); + h = a(465); + ia(b, h.rN); + d.gub = b; + d.KP = c; + d.Z = function(a) { + return new h.Ko(a, d.Yl); + }; + d.SFb = function(a) { + return new h.Ko(a, d.tea); + }; + d.nGb = function(a) { + return new h.Ko(a, d.CKa); + }; + d.Qz = new b(1, "b"); + d.Yl = new b(8 * d.Qz.ue, "B", d.Qz); + d.tea = new b(1024 * d.Yl.ue, "KB", d.Qz); + d.CKa = new b(1024 * d.tea.ue, "MB", d.Qz); + d.Sf = c(0); + }, function(g, d) { + Object.defineProperty(d, "__esModule", { + value: !0 + }); + d.ft = "named"; + d.WM = "name"; + d.PF = "unmanaged"; + d.Cfa = "optional"; + d.nF = "inject"; + d.pw = "multi_inject"; + d.Bha = "inversify:tagged"; + d.Cha = "inversify:tagged_props"; + d.gY = "inversify:paramtypes"; + d.zFa = "design:paramtypes"; + d.FF = "post_construct"; + }, function(g, d, a) { + var f, p, m, r, u, x, v, y, w; - function h(a, b) { - var c, d, g, p; - c = a.url.split("?"); - d = c[0]; - g = l(a); - g && (b.Fq = g, d = "/" == d[d.length - 1] ? d + "range/" : d + "/range/", d += g); - g = a.fY ? "random=" + (1E17 * T.CC()).toFixed(0) : ""; - v.config.Qn && a.YQ && (p = "sc=" + a.YQ, g = p + (g ? "&" + g : "")); - d = c[1] ? d + ("?" + c[1] + (g ? "&" + g : "")) : d + (g ? "?" + g : ""); - a.Ya && !w.f1(d) && (a = v.config && v.config.oY) && (d = a.replace("{URL}", d).replace("{EURL}", encodeURIComponent(d))); - b.url = d; + function b(a, b) { + var f, c, d; + try { + f = m.Ph.plugins; + c = f.length; + for (d = 0; d < c; d++) + if (b.test(f[d][a])) return f[d]; + return !1; + } catch (la) {} } - function l(a) { - var b; - b = a.offset; - if (void 0 !== b) return F.OM(b), void 0 !== a.length ? (a = a.offset + a.length - 1, F.OM(a), F.ea(b <= a), b + "-" + a) : b + "-"; + function c() { + var a, f; + a = b("filename", /widevinecdm/i); + if (a) { + try { + f = a.description.match(/version: ([0-9.]+)/); + if (f && f[1]) return f[1]; + } catch (E) {} + return "true"; + } + return "false"; } - function g() { - return !1 !== T.Tg.onLine; + function h() { + var a; + a = [{ + distinctiveIdentifier: "not-allowed", + videoCapabilities: [{ + contentType: f.Wk, + robustness: "HW_SECURE_DECODE" + }, { + contentType: f.Wk, + robustness: "SW_SECURE_DECODE" + }], + audioCapabilities: [{ + contentType: f.ow, + robustness: "SW_SECURE_CRYPTO" + }] + }]; + try { + m.Ph.requestMediaKeySystemAccess("com.widevine.alpha", a).then(function(a) { + var b; + b = a.getConfiguration(); + a = b.videoCapabilities; + (b = b.audioCapabilities) && b.length && (b = k(b), 0 <= b.indexOf("SW_SECURE_CRYPTO") && (d.ln.cptheaacwv_sw_cryp = !0)); + a && a.length ? (d.ln.cpth264wv = !0, b = k(a), 0 <= b.indexOf("SW_SECURE_DECODE") && (d.ln.cpth264wv_sw_dec = !0), 0 <= b.indexOf("HW_SECURE_DECODE") && (d.ln.cpth264wv_hw_dec = !0)) : d.ln.cpth264wv = !1; + })["catch"](function() { + d.ln.cpth264wv = !1; + }); + } catch (z) {} } - function m(a, b, d, g) { - var p, m; - p = g.apa; - m = g.headers; - a.open(p ? "POST" : "GET", b, !d); - switch (g.responseType) { - case c.Xs: - a.responseType = "arraybuffer"; - break; - case c.Tka: - N.BOa(a, "overrideMimeType", void 0, "text/xml"); - } - p && (b = { - "Content-Type": x.oc(p) ? "text/plain" : "application/x-octet-stream" - }, m = m ? x.oa(b, m) : b); - m && x.Kb(m, function(b, c) { - a.setRequestHeader(b, c); + function k(a) { + return a.map(function(a) { + return a.robustness; }); - g.withCredentials && (a.withCredentials = !0); - void 0 !== a.msCaching && (a.msCaching = "disabled"); - p ? a.send(p) : a.send(); - } - - function p(a, b) { - switch (b.type) { - case c.Xs: - return a.response || new ArrayBuffer(0); - case c.Tka: - return a.responseXML; - default: - return a.responseText; - } } - Object.defineProperty(c, "__esModule", { + Object.defineProperty(d, "__esModule", { value: !0 }); - r = a(18); - u = a(57); - v = a(4); - z = a(6); - w = a(25); - k = a(17); - x = a(14); - y = a(2); - C = a(3); - F = a(8); - N = a(19); - T = a(5); - ca = a(32); - n = a(15); - c.Za = function() { - var w, G, N, X; - - function a(a) { - var b; - try { - b = a.url; - n.e1(b) ? 0 === b.indexOf("https") ? X.ssl++ : 0 === b.indexOf("http") ? X["non-ssl"]++ : X.invalid++ : X.invalid++; - } catch (ba) {} - } + a(0).__exportStar(a(750), d); + f = a(5); + g = a(25); + p = a(17); + m = a(6); + a = a(27); + d.EFb = /CrOS/.test(m.pj); + d.Sga = /CrOS/.test(m.pj); + d.qMa = { + droppedFrameRateFilterEnabled: !0, + promiseBasedEme: !0, + workaroundValueForSeekIssue: 500, + captureKeyStatusData: !0, + logMediaPipelineStatus: !0, + enableCongestionService: !1, + prepareCadmium: !0, + enableLdlPrefetch: !0, + doNotPerformLdlOnPlaybackStart: !0, + captureBatteryStatus: !0, + enableGetHeadersAndMediaPrefetch: !0, + enableUsingHeaderCount: !0, + defaultHeaderCacheSize: 15, + enableSeamless: !0, + videoCapabilityDetectorType: a.rj.pW, + preciseSeeking: !0, + editAudioFragments: !0, + editVideoFragments: !0, + useSetServerCertificateApi: !0, + useTypescriptEme: !0 + }; + d.uyb = function() { + return {}; + }; + d.vyb = b; + d.wyb = c; + d.Lfa = c(); + a = d.Lfa; + if (!(r = d.Lfa)) a: { + try { + m.Ph.plugins.refresh(); + r = c(); + break a; + } catch (D) {} + r = void 0; + } + u = !!b("name", /Chrome Remote Desktop Viewer/i); + x = !!b("name", /Chromoting Viewer/i); + a: { + try { + v = MediaSource.isTypeSupported(f.Wk); + break a; + } catch (D) {} + v = void 0; + } + a: { + try { + y = p.createElement("VIDEO").canPlayType(f.Wk); + break a; + } catch (D) {} + y = void 0; + } + a: { + try { + if (g.Dta()) h(); + else { + w = p.createElement("VIDEO").canPlayType(f.Wk, "com.widevine.alpha"); + break a; + } + } catch (D) {} + w = void 0; + } + d.ln = { + wvp: a, + wvp2: r, + crdvp: u, + cvp: x, + itsh264: v, + cpth264: y, + cpth264wv: w + }; + d.mCb = h; + d.SEb = k; + }, function(g, d, a) { + var r, u, x, v, y, w, D, z, l, P, F, n, q, O, Y, U; - function l() { - G.mc(c.YZa); - G.mc(c.Uka); + function b(a) { + var b, f, c, d; + b = a.url.split("?"); + f = b[0]; + c = "sc=" + a.Mmb; + d = a.ena ? "random=" + (1E17 * n.xF()).toFixed(0) : ""; + f = b[1] ? f + ("?" + b[1] + "&" + c) : f + ("?" + c); + f = f + (d ? "&" + d : ""); + a.Mb && !y.b6(f) && (a = x.config && x.config.g1) && (f = a.replace("{URL}", f).replace("{EURL}", encodeURIComponent(f))); + return f; + } + + function c(a) { + var b, f, c, d; + b = a.url.split("?"); + f = b[0]; + c = "bb_reason=" + a.reason; + d = a.ena ? "random=" + (1E17 * n.xF()).toFixed(0) : ""; + f = b[1] ? f + ("?" + b[1] + "&" + c) : f + ("?" + c); + f = f + (d ? "&" + d : ""); + a.Mb && !y.b6(f) && (a = x.config && x.config.g1) && (f = a.replace("{URL}", f).replace("{EURL}", encodeURIComponent(f))); + return f; + } + + function h(a, b) { + var f, c, d, m, p; + f = a.url.split("?"); + c = f[0]; + d = k(a); + if (d) { + b.Pp = d; + m = void 0 === a.GL ? [] : a.GL; + Y.href = c; + p = Y.host; + m.some(function(a) { + return -1 < p.indexOf(a); + }) ? (a.headers = a.headers || {}, a.headers.Range = "bytes=" + d) : (b.Pp = d, c = "/" == c[c.length - 1] ? c + "range/" : c + "/range/", c += d); + } + d = a.ena ? "random=" + (1E17 * n.xF()).toFixed(0) : ""; + m = ""; + x.config.lp && a.VU && (m = "sc=" + a.VU, d = m + (d ? "&" + d : "")); + c = f[1] ? c + ("?" + f[1] + (d ? "&" + d : "")) : c + (d ? "?" + d : ""); + a.Mb && !y.b6(c) && (a = x.config && x.config.g1) && (c = a.replace("{URL}", c).replace("{EURL}", encodeURIComponent(c))); + b.url = c; + } + + function k(a) { + var b; + b = a.offset; + if (void 0 !== b) return P.qQ(b), void 0 !== a.length ? (a = a.offset + a.length - 1, P.qQ(a), P.sa(b <= a), b + "-" + a) : b + "-"; + } + + function f() { + return !1 !== n.Ph.onLine; + } + + function p(a, b, f, c) { + var m, p; + m = c.K8; + p = c.headers; + a.open(m ? "POST" : "GET", b, !f); + switch (c.responseType) { + case d.OC: + a.responseType = "arraybuffer"; + break; + case d.Isa: + F.OZa(a, "overrideMimeType", void 0, "text/xml"); } + m && (b = { + "Content-Type": D.bd(m) ? "text/plain" : "application/x-octet-stream" + }, p = p ? D.La(b, p) : b); + p && F.pc(p, function(b, f) { + a.setRequestHeader(b, f); + }); + c.withCredentials && (a.withCredentials = !0); + void 0 !== a.msCaching && (a.msCaching = "disabled"); + m ? a.send(m) : a.send(); + } - function f() { - G.mc(c.E0); - G.mc(c.Uka); + function m(a, b) { + switch (b.type) { + case d.OC: + return a.response || new ArrayBuffer(0); + case d.Isa: + return a.responseXML; + default: + return a.responseText; } - w = C.Cc("Http"); - G = new u.Ci(); - N = 0; - X = { + } + Object.defineProperty(d, "__esModule", { + value: !0 + }); + r = a(19); + u = a(68); + x = a(9); + v = a(5); + y = a(25); + w = a(21); + D = a(17); + z = a(2); + l = a(3); + P = a(12); + F = a(18); + n = a(6); + q = a(42); + O = a(15); + Y = document.createElement("a"); + d.Ab = function() { + var y, E, F, n; + + function a(a) { + var b; + try { + b = a.url; + O.Lta(b) ? 0 === b.indexOf("https") ? n.ssl++ : 0 === b.indexOf("http") ? n["non-ssl"]++ : n.invalid++ : n.invalid++; + } catch (ja) {} + } + + function k() { + E.Db(d.rbb); + E.Db(d.Jsa); + } + + function g() { + E.Db(d.t5); + E.Db(d.Jsa); + } + y = l.zd("Http"); + E = new u.Pj(); + F = 0; + n = { ssl: 0, "non-ssl": 0, invalid: 0 }; - r.Dd(y.v.t9, function(a) { - v.config.qcb && (t.addEventListener("online", l), t.addEventListener("offline", f), c.D0 = g); - a(z.cb); + r.Ge(z.I.cea, function(a) { + x.config.$rb && (A.addEventListener("online", k), A.addEventListener("offline", g), d.s5 = f); + a(v.Bb); }); return { - addEventListener: G.addListener, - removeEventListener: G.removeListener, - download: function(b, d, g) { - var Z, ha, O, D, ba, V, ja, t, S, da, A; + addEventListener: E.addListener, + removeEventListener: E.removeListener, + download: function(b, f) { + var la, N, H, T, Y, S, t, aa, X, ga, Z; - function r() { + function c() { var a; - r = x.Gb; - A && (clearTimeout(A), A = null); - G.removeListener(c.E0, z); - S && (S.onreadystatechange = null, S.onprogress = null, S.onerror = null, S.onload = null, S = S.onabort = null); - t.K || (t.R != y.u.No ? Z.warn("Download failed", ha, C.jk(t)) : Z.trace("Download aborted", ha)); - a = O; - O = void 0; + c = D.Qb; + Z && (clearTimeout(Z), Z = null); + E.removeListener(d.t5, u); + X && (X.onloadstart = null, X.onreadystatechange = null, X.onprogress = null, X.onerror = null, X.onload = null, X = X.onabort = null); + aa.S || (aa.T != z.H.Vs ? la.warn("Download failed", N, z.kn(aa)) : la.trace("Download aborted", N)); + a = H; + H = void 0; for (var b = a.length; b--;)(function() { - var c; - c = a[b]; - ca.Xa(function() { - c(t); + var f; + f = a[b]; + q.hb(function() { + f(aa); }); }()); - G.mc(c.WZa, t, !0); + E.Db(d.pbb, aa, !0); } - function l() { - A && (clearTimeout(A), A = null); - A = setTimeout(g ? T : X, da ? ja : V); + function r() { + Z && (clearTimeout(Z), Z = null); + Z = setTimeout(v, ga ? t : S); } - function u(a, b, c, d) { - var g; - t.K = !1; - t.R = a; - g = k.Ra(); - t.xf.hf = t.xf.hf || g; - t.xf.Zj = t.xf.Zj || g; - 0 < b && (t.Fg = t.ub = b); - c && (t.za = c); - d && (t.$j = d); - a !== y.u.yJ && a !== y.u.ku && a !== y.u.rC || !S || (S.onabort = null, U()); - r(); + function k(a, b, f, d) { + var m, p; + aa.S = !1; + aa.T = a; + m = w.yc(); + p = aa.Zi; + p.Mf = p.Mf || m; + p.Mk = p.Mk || m; + 0 < b && (aa.Bh = aa.ic = b); + f && (aa.Ja = f); + d && (aa.ij = d); + a !== z.H.jF && a !== z.H.hw && a !== z.H.lF || !X || (X.onabort = null, Q()); + c(); } - function f(a) { - var b, c; + function g(a) { + var b, f; try { - c = a.getResponseHeader("X-Netflix.Retry.Server.Policy"); - c && (b = JSON.parse(c)); - } catch (Db) {} + f = a.getResponseHeader("X-Netflix.Retry.Server.Policy"); + f && (b = JSON.parse(f)); + } catch (Za) {} return b; } - function z() { - c.D0() || u(y.u.yJ); - } - - function X() { - u(da ? y.u.ku : y.u.rC); + function u() { + d.s5() || k(z.H.jF); } - function T() { - void 0 === t.K && (g.g3++, g.Qoa.ping(g)); + function v() { + k(ga ? z.H.hw : z.H.lF); } - function U() { + function Q() { try { - S && S.abort(); - } catch (gb) {} + X && X.abort(); + } catch (tb) {} } - function B() { - u(y.u.No); + function n() { + k(z.H.Vs); } - F.ea(d); - Z = b.L && b.L.log && C.Je(b.L, "Http") || w; - ha = { - Num: N++ + P.sa(f); + la = b.j && b.j.log && l.qf(b.j, "Http") || y; + N = { + Num: F++ }; - O = [d]; - D = {}; - V = b.MY || v.config.MY; - ja = b.X2 || v.config.X2; + H = [f]; + T = {}; + S = b.aQ || x.config.aQ; + t = b.Z7 || x.config.Z7; a(b); - t = function() { - var a, c; - a = x.Gb; - c = x.Gb; + aa = function() { + var a, f, d; + a = D.Qb; + f = D.Qb; + d = D.Qb; return { request: b, type: b.responseType, - xf: D, - abort: U, - timeout: X, - cX: function(a) { - r !== x.Gb && (F.ea(O, "Callback should be added before download starts."), O && O.unshift(a)); + Zi: T, + abort: Q, + timeout: v, + Jla: function(a) { + c !== D.Qb && (P.sa(H, "Callback should be added before download starts."), H && H.unshift(a)); + }, + CT: function(a) { + d(a); }, - noa: function(b) { + DT: function(b) { a(b); }, - fj: function(a) { - c(a); + yD: function(a) { + f(a); + }, + Pnb: function(a) { + d = a; }, - J9a: function(b) { + Znb: function(b) { a = b; }, - x9a: function(a) { - c = a; + Nnb: function(a) { + f = a; } }; }(); - g && (g.stream = b.stream, g.yM = b.Hlb[0], g.kab = l, g.Qia = X); - ca.Xa(function() { - if (n.e1(b.url)) try { - h(b, t); - ba = t.url; - F.VE(ba); - ha.Url = ba; - c.D0() ? (S = new XMLHttpRequest(), S.onreadystatechange = function() { - if (2 == S.readyState) { - da = !0; - D.hf = k.Ra(); - S.onreadystatechange = null; - l(); - for (var a = t, c = S.getAllResponseHeaders().split("\n"), d = c.length, g, p, m = {}; d--;) - if (g = c[d]) p = g.indexOf(": "), 1 <= p && p < g.length - 1 && (m[g.substr(0, p)] = g.substr(p + 2)); - a.headers = m; - t.noa({ - timestamp: D.hf, - connect: !0, + q.hb(function() { + var a, f; + if (O.Lta(b.url)) try { + if (h(b, aa), Y = aa.url, P.FH(Y), N.Url = Y, d.s5()) { + X = new XMLHttpRequest(); + a = x.config.dsb && "undefined" != typeof X.onloadstart; + a && (X.onloadstart = function() { + var a; + a = w.yc(); + T.requestTime = a; + aa.CT({ mediaRequest: b, - start: D.requestTime, - rt: [D.hf - D.requestTime] + timestamp: a }); - } - }, S.onprogress = function(a) { - da = !0; - D.Op = a.loaded; - l(); - a = { - mediaRequest: b, - bytes: a.loaded, - tempstamp: k.Ra(), - bytesLoaded: a.loaded + }); + X.onreadystatechange = function() { + if (2 == X.readyState) { + ga = !0; + T.Mf = w.yc(); + X.onreadystatechange = null; + r(); + for (var a = aa, f = X.getAllResponseHeaders().split("\n"), c = f.length, d, m, p = {}; c--;) + if (d = f[c]) m = d.indexOf(": "), 1 <= m && m < d.length - 1 && (p[d.substr(0, m)] = d.substr(m + 2)); + a.headers = p; + aa.DT({ + timestamp: T.Mf, + connect: !0, + mediaRequest: b, + start: T.requestTime, + rt: [T.Mf - T.requestTime] + }); + } }; - t.noa(a); - }, S.onload = function() { - var a; - if (r !== x.Gb) { - F.ea(void 0 === D.Zj); - D.Zj = k.Ra(); - D.hf = D.hf || D.Zj; - if (200 <= S.status && 299 >= S.status) - if (a = p(S, t), b.o) try { - t.content = b.o(a, t); - t.K = !0; - t.parsed = !0; - t.raw = a; - } catch (hb) { - Z.warn("Exception parsing response", hb, ha); - u(y.u.tT, void 0, x.yc(hb)); - } else t.parsed = !1, t.content = a, t.K = !0; - else S.status == q ? u(y.u.Px, S.status) : u(y.u.Ox, S.status, S.response, f(S)); + X.onprogress = function(a) { + ga = !0; + T.Cr = a.loaded; r(); - } - }, S.onabort = B, S.onerror = function() { - var a, c; - a = S.status; - "undefined" !== typeof v.config.kja && (a = v.config.kja); - if (0 < a) - if (a == q) u(y.u.Px, a); - else { - try { - c = S.responseText; - } catch (Nc) {} - u(y.u.Ox, a, c, f(S)); + a = { + mediaRequest: b, + bytes: a.loaded, + tempstamp: w.yc(), + bytesLoaded: a.loaded + }; + aa.DT(a); + }; + X.onload = function() { + var a; + if (c !== D.Qb) { + P.sa(void 0 === T.Mk); + T.Mk = w.yc(); + T.Mf = T.Mf || T.Mk; + if (200 <= X.status && 299 >= X.status) + if (a = m(X, aa), b.u) try { + aa.content = b.u(a, aa); + aa.S = !0; + aa.parsed = !0; + aa.raw = a; + } catch (Za) { + la.warn("Exception parsing response", Za, N); + k(z.H.yX, void 0, D.ad(Za)); + } else aa.parsed = !1, aa.content = a, aa.S = !0; + else X.status == U ? k(z.H.Zz, X.status) : k(z.H.kF, X.status, X.response, g(X)); + c(); } - else a = { - status: S.status, - internalErrorCodeB10: S.internalErrorCode, - internalErrorCodeB16: C.mM(S.internalErrorCode, 4) - }, b.Ya && b.Ya.id && (a.cdnid = b.Ya.id), a.url = S.responseURL || b.url, Z.error("An error occurred downloading data.", a), u(y.u.sC, C.mM(S.internalErrorCode, 4)); - }, D.requestTime = k.Ra(), m(S, ba, !1, b), G.mc(c.XZa, t, !0), l(), G.addListener(c.E0, z)) : ca.Xa(u.bind(void 0, y.u.yJ)); - } catch (gb) { - Z.error("Exception starting download", gb, ha); - u(y.u.xT, void 0, x.yc(gb)); - } else u(y.u.K8); + }; + X.onabort = n; + X.onerror = function() { + var a, b; + a = X.status; + "undefined" !== typeof x.config.Gqa && (a = x.config.Gqa); + if (0 < a) + if (a == U) k(z.H.Zz, a); + else { + try { + b = X.responseText; + } catch (Kb) {} + k(z.H.kF, a, b, g(X)); + } + else k(z.H.$z); + }; + f = w.yc(); + p(X, Y, !1, b); + E.Db(d.qbb, aa, !0); + a || (T.requestTime = f, aa.CT({ + mediaRequest: b, + timestamp: f + })); + r(); + E.addListener(d.t5, u); + } else q.hb(k.bind(void 0, z.H.jF)); + } catch (Ua) { + la.error("Exception starting download", Ua, N); + k(z.H.CX, void 0, D.ad(Ua)); + } else k(z.H.wda); }); - return t; + return aa; }, - ad: X, - A3a: function(a) { + ac: n, + Qgb: function(a) { var b; b = new XMLHttpRequest(); - a = d(a); + a = c(a); b.open("HEAD", a); b.onreadystatechange = function() {}; b.send(); }, - h$a: function(a) { - var c; - c = new XMLHttpRequest(); + Cob: function(a) { + var f; + f = new XMLHttpRequest(); a = b(a); - c.open("HEAD", a); - c.onreadystatechange = function() {}; - c.send(); + f.open("HEAD", a); + f.onreadystatechange = function() {}; + f.send(); }, - m6a: function(a) { - var b, c, d; + dkb: function(a) { + var b, f, c; b = new XMLHttpRequest(); - c = a.url; - d = a.j6a; - b.open("HEAD", c); - b.timeout = Math.max(2 * d.$0a, v.config.K3); + f = a.url; + c = a.akb; + b.open("HEAD", f); + b.timeout = Math.max(2 * c.Vdb, x.config.U8); b.onreadystatechange = function() { - 2 == b.readyState && d && d.vi({ - url: c + 2 == b.readyState && c && c.bj({ + url: f }); }; b.ontimeout = b.onerror = function() { - d && d.e3({ - url: c + c && c.h8({ + url: f }); }; b.send(); } }; }(); - c.Kob = b; - c.Hob = d; - c.Job = h; - c.Iob = l; - c.D0 = z.aEa; - c.Mob = g; - c.bGa = m; - c.aGa = p; - c.XZa = 1; - c.WZa = 2; - c.YZa = 3; - c.E0 = 4; - c.Uka = 5; - c.VZa = 1; - c.Tka = 2; - c.Xs = 3; - q = 420; - t._cad_global || (t._cad_global = {}); - t._cad_global.http = c.Za; - }, function(f, c) { - Object.defineProperty(c, "__esModule", { - value: !0 - }); - c.Ef = "ConfigSymbol"; - }, function(f, c, a) { - f.P = { - Axa: a(523), - Ha: a(35).Ha, - Dv: a(35).Dv, - pG: a(35).pG, - S4: a(35).S4, - iBa: a(522), - uib: a(179), - cEa: a(521), - cGa: a(517) - }; - }, function(f, c, a) { - f.P = { - EventEmitter: a(530), - kC: a(529) - }; - }, function(f, c) { - Object.defineProperty(c, "__esModule", { - value: !0 - }); - c.Xa = function(a) { - return t.setTimeout(a, 0); - }; - }, function(f, c) { - Object.defineProperty(c, "__esModule", { - value: !0 - }); - f = c.ResponseType || (c.ResponseType = {}); - f[f.Text = 0] = "Text"; - f[f.$jb = 1] = "Xml"; - f[f.Ndb = 2] = "Binary"; - c.Gfb = "HttpClientSymbol"; - c.hg = "LegacyHttpSymbol"; - }, function(f, c) { - Object.defineProperty(c, "__esModule", { - value: !0 - }); - (function(a) { - a[a.Audio = 0] = "Audio"; - a[a.$ba = 1] = "Video"; - }(c.FC || (c.FC = {}))); - (function(a) { - a[a.du = 0] = "Default"; - a[a.su = 1] = "Microsoft"; - }(c.au || (c.au = {}))); - (function(a) { - a[a.du = 0] = "Default"; - a[a.oS = 1] = "Cast"; - a[a.qS = 2] = "Chrome"; - a[a.su = 3] = "Microsoft"; - a[a.pba = 4] = "Safari"; - }(c.Fi || (c.Fi = {}))); - (function(a) { - a[a.ZC = 0] = "SD"; - a[a.rJ = 1] = "HD"; - a[a.jK = 2] = "UHD"; - a[a.Ff = 3] = "DV"; - a[a.Mo = 4] = "HDR10"; - a[a.yr = 5] = "VP9"; - }(c.Jd || (c.Jd = {}))); - (function(a) { - a[a.pn = 0] = "Level_1_4"; - a[a.nu = 1] = "Level_2_2"; - }(c.Qg || (c.Qg = {}))); - c.Xjb = function() {}; - (function(a) { - a[a.vib = 0] = "Platform"; - a[a.ueb = 1] = "CurrentTitle"; - }(c.SFa || (c.SFa = {}))); - c.ES = "DeviceCapabilitiesSymbol"; - c.Qeb = function() {}; - }, function(f, c, a) { - var u; - - function b(a, b) { - if (a.length == b.length) { - for (var c = a.length, d = 0, p = g(a), m = g(b), h = 0; h < c; h++) d += a[h] * b[h]; - return (d - p * m / c) / c; - } - return !1; - } - - function d(a) { - if (!Array.isArray(a)) return !1; - a = h(a); - return Math.sqrt(a); - } - - function h(a) { - var b; - if (!Array.isArray(a)) return !1; - b = l(a); - return g(a.map(function(a) { - return (a - b) * (a - b); - })) / (a.length - 1); - } - - function l(a) { - return Array.isArray(a) ? g(a) / a.length : !1; - } + d.iFb = b; + d.fFb = c; + d.hFb = h; + d.gFb = k; + d.s5 = v.iOa; + d.jFb = f; + d.NAb = p; + d.MAb = m; + d.qbb = 1; + d.pbb = 2; + d.rbb = 3; + d.t5 = 4; + d.Jsa = 5; + d.Hsa = 1; + d.Isa = 2; + d.OC = 3; + U = 420; + A._cad_global || (A._cad_global = {}); + A._cad_global.http = d.Ab; + }, function(g, d, a) { + var k, f, p; - function g(a) { - return Array.isArray(a) ? a.reduce(function(a, b) { - return a + b; - }, 0) : !1; + function b(a) { + return function(b, f) { + return b.k9(f, a); + }; } - function m(a, b, c) { - return Math.max(Math.min(a, c), b); + function c(a, b) { + return a.gU.Bkb[b] || h(a, b); } - function p(a, b) { - return "number" === typeof a ? a : b; + function h(a, b) { + a = a.Wr.data[b]; + switch (typeof a) { + case "undefined": + break; + case "string": + case "number": + case "boolean": + return a.toString(); + default: + return JSON.stringify(a); + } } + Object.defineProperty(d, "__esModule", { + value: !0 + }); + k = a(31); + f = a(4); + p = a(136); + d.config = function(a, b) { + return function(f, d, m) { + var r, k; + r = void 0 !== b ? b : d; + k = m.get; + void 0 !== k && (m.get = function() { + var b; + if (!this.Acb(d)) return this.o$a(d); + a: { + b = (this.yXa ? c : h)(this, r.toString()); + if (void 0 !== b) + if (b = a(this.RJ, b), b instanceof p.bm) this.Hqa(r, b); + else break a;b = k.bind(this)(); + } + this.nmb(d, b); + return b; + }); + return m; + }; + }; + d.O5 = function(a, b) { + return a.gya(b); + }; + d.le = function(a, b) { + return a.i9(b); + }; + d.Qv = function(a, b) { + return a.Ea(b); + }; + d.string = function(a, b) { + return a.k9(b); + }; + d.aaa = function(a, b) { + return a.re(b, d.string); + }; + d.wFb = function(a, b) { + return a.re(b, d.O5); + }; + d.EBa = function(a, b) { + return a.re(b, d.Qv); + }; + d.Fg = function(a, b) { + a = a.Ea(b); + return a instanceof p.bm ? a : f.rb(a); + }; + d.Z = function(a, b) { + a = a.Ea(b); + return a instanceof p.bm ? a : k.Z(a); + }; + d.url = b(/^\S+$/); + d.MDb = function(a) { + return function(b, f) { + return b.eya(f, a); + }; + }; + d.object = function() { + return function(a, b) { + return a.hya(b); + }; + }; + d.wya = b; + d.Dn = function(a, b) { + return function(f, c) { + return f.re(c, a, b); + }; + }; + }, function(g, d, a) { + var b; + Object.defineProperty(d, "__esModule", { + value: !0 + }); + b = a(14); + d.nq = !1; + g = function() { + function a(a, b, f, c) { + this.u = a; + this.type = b; + this.startOffset = f; + this.length = c; + this.level = 0; + this.Wb = {}; + a && (this.level = a.level); + this.BD = c; + } + a.prototype.He = function() { + var a, b, f; + this.version = this.u.Sc(); + a = this.u.Sc(); + b = this.u.Sc(); + f = this.u.Sc(); + this.me = a << 16 | b << 8 | f; + }; + a.prototype.jI = function(a) { + var f; - function r(a) { - return 1 / (1 + Math.exp(-a)); - } - u = a(10); - f.P = { - Ha: function(a, b, c) { - try { - a.Ha(b, c); - } catch (G) { - a.Yb("JAVASCRIPT EXCEPTION: Caught in ASE client event listener. Exception:", G, "Event:", c); + function b(b) { + b && b.jI && (b = b.jI(a), b.length && (f = f.concat(b))); } - }, - Dv: function() { - var a, b, c; - a = Array.prototype.concat.apply([], arguments); - b = a.reduce(function(a, b) { - return a + b.byteLength; - }, 0); - c = new Uint8Array(b); - a.reduce(function(a, b) { - c.set(new Uint8Array(b), a); - return a + b.byteLength; - }, 0); - return c.buffer; - }, - FE: m, - Mga: function(a, b, c, d) { - return { - min: m(p(a.min, b), c, d), - max: m(p(a.max, b), c, d), - Mp: m(a.Mp || 6E4, 0, 6E5), - Fga: m(a.Fga || 0, -3E5, 3E5), - scale: m(a.scale || 6E4, 0, 3E5), - Hqa: m(a.Hqa || 0, -3E5, 3E5), - gamma: m(a.gamma || 1, .1, 10) - }; - }, - Kb: function(a, b) { - void 0 !== a && u.F4a(a).forEach(function(a) { - b(a[0], a[1]); + f = []; + this.type === a && f.push(this); + if (this.Wb) + for (var c in this.Wb) this.Wb[c].forEach(b); + return f; + }; + a.prototype.kI = function(a) { + return this.jI(a)[0]; + }; + a.prototype.parse = function() { + return !0; + }; + a.prototype.pI = function(a) { + this.u.Ia(a.type, a); + }; + a.prototype.Abb = function() {}; + a.prototype.Ao = function(a) { + return void 0 !== this.Wb[a] && 1 === this.Wb[a].length ? this.Wb[a][0] : void 0; + }; + a.prototype.uj = function(a, c) { + c = void 0 === c ? this.u.offset : c; + b(c >= this.startOffset + 8 && c + a <= this.startOffset + this.BD, "Removal range [0x" + c.toString(16) + "-0x" + (c + a).toString(16) + ") must be in box [0x" + this.startOffset.toString(16) + "-0x" + (this.startOffset + this.BD).toString(16) + ")"); + d.nq && this.u.Hb("rewriting length of " + this.type + " box at " + this.startOffset + " from " + this.length + " to " + (this.length - a)); + this.length -= a; + this.u.jl(this.length, !1, this.startOffset); + this.u.uj(a, c); + }; + a.prototype.kya = function(a, b, f) { + if (1 < f) { + for (var c = []; 0 < f--;) c.push(this.Xka(a, b)); + return c; + } + return this.Xka(a, b); + }; + a.prototype.Qp = function(a) { + var b, f; + f = this; + void 0 === b && (b = {}); + a.forEach(function(a) { + var c, d; + if ("offset" === a.type) { + f.u.Hb("Adding offset:" + a.offset); + c = a.offset; + if (0 < c % 8) throw Error("Requested offset " + a.offset + "is not an even byte multiple"); + f.u.offset += c / 8; + } else + for (c in a) { + d = a[c]; + b[c] = "string" === typeof d ? f.kya(d) : f.kya(d.type, d.length, d.MXa); + } }); - }, - Hia: function(a, b, c) { - return a.min + (a.max - a.min) * (1 - Math.pow(r(6 * (b - (a.Mp + (a.Fga || 0) * (1 - c))) / (a.scale + (a.Hqa || 0) * (1 - c))), a.gamma)); - }, - KUa: function(a, b) { - return a.min + (a.max - a.min) * Math.pow(r(6 * (b - a.Mp) / a.scale), a.gamma); - }, - MYa: g, - xWa: l, - bZa: h, - GYa: d, - Tnb: b, - Snb: function(a, c) { - var g; - if (a.length == c.length) { - g = b(a, c); - a = d(a); - c = d(c); - return g / (a * c); + return b; + }; + a.prototype.Er = function(a, b) { + var f, c; + f = this.u.offset; + c = this.length - (f - this.startOffset); + 0 < c && (b = this.u.U1(this, f, c, b), b.Uo = void 0, b.addEventListener("error", this.pI.bind(this)), b.addEventListener("drmheader", this.pI.bind(this)), b.addEventListener("nflxheader", this.pI.bind(this)), b.addEventListener("keyid", this.pI.bind(this)), b.addEventListener("requestdata", this.Abb.bind(this)), b.addEventListener("sampledescriptions", this.pI.bind(this)), this.Wb = b.Wb, b.parse(a)); + return !0; + }; + a.prototype.eB = function(a, c, f) { + f = void 0 === f ? this.u.offset : f; + b(f >= this.startOffset + 8 && f + a <= this.startOffset + this.BD, "Removal range [0x" + f.toString(16) + "-0x" + (f + a).toString(16) + ") must be in box [0x" + this.startOffset.toString(16) + "-0x" + (this.startOffset + this.BD).toString(16) + ")"); + d.nq && this.u.Hb("rewriting length of " + this.type + " box at " + this.startOffset + " from " + this.length + " to " + (this.length + (c ? c.byteLength : 0) - a)); + this.length += (c ? c.byteLength : 0) - a; + this.u.jl(this.length, !1, this.startOffset); + this.u.eB(a, c, f); + }; + a.prototype.Xka = function(a, b) { + var f; + f = this.length - this.u.offset + this.startOffset; + "undefined" === typeof b && (b = f); + switch (a) { + case "int8": + a = this.u.Sc(); + break; + case "int64": + a = this.u.rh(); + break; + case "int32": + a = this.u.fb(); + break; + case "int16": + a = this.u.lf(); + break; + case "string": + a = this.u.Jkb(Math.min(b, f)); + break; + default: + throw Error("Invalid type: " + a); } - return !1; - }, - pG: function(a, b, c) { - return b.ZRa ? b.ZRa(c) : new a.Console("ASEJS", "media|asejs", c); - }, - S4: function(a) { - return a.length ? "{" + a + "} " : ""; - }, - Gqa: function(a, b, c) { - return { - min: a.min * c + (1 - c) * b.min, - max: a.max * c + (1 - c) * b.max, - Mp: a.Mp * c + (1 - c) * b.Mp, - scale: a.scale * c + (1 - c) * b.scale, - gamma: a.gamma * c + (1 - c) * b.gamma - }; - }, - tanh: Math.tanh || function(a) { - var b; - b = Math.exp(+a); - a = Math.exp(-a); - return Infinity == b ? 1 : Infinity == a ? -1 : (b - a) / (b + a); - }, - i$a: r - }; - }, function(f, c, a) { - var g, m, p, r, u, v, z, w, k, x; + return a; + }; + return a; + }(); + d["default"] = g; + }, function(g, d) { + Object.defineProperty(d, "__esModule", { + value: !0 + }); + d.yi = "ClockSymbol"; + }, function(g, d, a) { + var h, k, f, p; function b(a, b) { - var c, d, g; - try { - c = p.Tg.plugins; - d = c.length; - for (g = 0; g < d; g++) - if (b.test(c[g][a])) return c[g]; - return !1; - } catch (ca) {} - } - - function d() { - var a, c; - a = b("filename", /widevinecdm/i); - if (a) { - try { - c = a.description.match(/version: ([0-9.]+)/); - if (c && c[1]) return c[1]; - } catch (F) {} - return "true"; - } - return "false"; - } - - function h() { - var a; - a = [{ - distinctiveIdentifier: "not-allowed", - videoCapabilities: [{ - contentType: g.qn, - robustness: "HW_SECURE_DECODE" - }, { - contentType: g.qn, - robustness: "SW_SECURE_DECODE" - }], - audioCapabilities: [{ - contentType: g.Vx, - robustness: "SW_SECURE_CRYPTO" - }] - }]; - try { - p.Tg.requestMediaKeySystemAccess("com.widevine.alpha", a).then(function(a) { - var b; - b = a.getConfiguration(); - a = b.videoCapabilities; - (b = b.audioCapabilities) && b.length && (b = l(b), 0 <= b.indexOf("SW_SECURE_CRYPTO") && (c.Yh.cptheaacwv_sw_cryp = !0)); - a && a.length ? (c.Yh.cpth264wv = !0, b = l(a), 0 <= b.indexOf("SW_SECURE_DECODE") && (c.Yh.cpth264wv_sw_dec = !0), 0 <= b.indexOf("HW_SECURE_DECODE") && (c.Yh.cpth264wv_hw_dec = !0)) : c.Yh.cpth264wv = !1; - })["catch"](function() { - c.Yh.cpth264wv = !1; - }); - } catch (C) {} + var f; + f = p.call(this, a, b) || this; + f.Vna = b; + f.debug = a.debug; + f.ga = a.af.lb(f.Vna); + return f; } - function l(a) { - return a.map(function(a) { - return a.robustness; - }); + function c(a, b) { + this.Vna = b; + this.a9 = {}; + this.Wr = a.Wr; + this.RJ = a.RJ; + this.gU = a.gU; } - Object.defineProperty(c, "__esModule", { + Object.defineProperty(d, "__esModule", { value: !0 }); - a(1).__exportStar(a(622), c); - g = a(6); - f = a(25); - m = a(14); - p = a(5); - r = a(34); - c.hpb = /CrOS/.test(p.Ug); - c.Taa = /CrOS/.test(p.Ug); - c.S$ = { - droppedFrameRateFilterEnabled: !0, - promiseBasedEme: !0, - workaroundValueForSeekIssue: 500, - captureKeyStatusData: !0, - logMediaPipelineStatus: !0, - enableCongestionService: !1, - prepareCadmium: !0, - enableLdlPrefetch: !0, - doNotPerformLdlOnPlaybackStart: !0, - captureBatteryStatus: !0, - enableGetHeadersAndMediaPrefetch: !0, - enableUsingHeaderCount: !0, - defaultHeaderCacheSize: 15, - enableSeamless: !0, - videoCapabilityDetectorType: r.Fi.qS - }; - f.wMa(c.S$); - c.aib = b; - c.bib = d; - c.U$ = d(); - r = c.U$; - if (!(u = c.U$)) a: { - try { - p.Tg.plugins.refresh(); - u = d(); - break a; - } catch (y) {} - u = void 0; - } - v = !!b("name", /Chrome Remote Desktop Viewer/i); - z = !!b("name", /Chromoting Viewer/i); - a: { - try { - w = MediaSource.isTypeSupported(g.qn); - break a; - } catch (y) {} - w = void 0; - } - a: { - try { - k = m.createElement("VIDEO").canPlayType(g.qn); - break a; - } catch (y) {} - k = void 0; - } - a: { - try { - if (f.Jla()) h(); - else { - x = m.createElement("VIDEO").canPlayType(g.qn, "com.widevine.alpha"); - break a; - } - } catch (y) {} - x = void 0; - } - c.Yh = { - wvp: r, - wvp2: u, - crdvp: v, - cvp: z, - itsh264: w, - cpth264: k, - cpth264wv: x + g = a(0); + h = a(1E3); + k = a(1); + f = a(136); + d.CPa = "isTestAccount"; + c.prototype.Hqa = function() {}; + c.prototype.nmb = function(a, b) { + this.a9[a] = [b, this.Wr.bza]; + }; + c.prototype.Acb = function(a) { + return h.Ffa.of(this.a9[a]).map(function(a) { + return a[1]; + }).Owa(-1) < this.Wr.bza; }; - c.T$ = function() { - return { - ph: function(b, c, d, g) { - return new(a(621))(b, c, d, g); - }, - request: a(620) - }; + c.prototype.o$a = function(a) { + return h.Ffa.of(this.a9[a]).map(function(a) { + return a[0]; + }).Owa(function() { + throw Error("Invalid State Error"); + }); }; - c.Elb = h; - c.hob = l; - c.R$ = "Cr0CCAMSEOVEukALwQ8307Y2+LVP+0MYh/HPkwUijgIwggEKAoIBAQDm875btoWUbGqQD8eAGuBlGY+Pxo8YF1LQR+Ex0pDONMet8EHslcZRBKNQ/09RZFTP0vrYimyYiBmk9GG+S0wB3CRITgweNE15cD33MQYyS3zpBd4z+sCJam2+jj1ZA4uijE2dxGC+gRBRnw9WoPyw7D8RuhGSJ95OEtzg3Ho+mEsxuE5xg9LM4+Zuro/9msz2bFgJUjQUVHo5j+k4qLWu4ObugFmc9DLIAohL58UR5k0XnvizulOHbMMxdzna9lwTw/4SALadEV/CZXBmswUtBgATDKNqjXwokohncpdsWSauH6vfS6FXwizQoZJ9TdjSGC60rUB2t+aYDm74cIuxAgMBAAE6EHRlc3QubmV0ZmxpeC5jb20SgAOE0y8yWw2Win6M2/bw7+aqVuQPwzS/YG5ySYvwCGQd0Dltr3hpik98WijUODUr6PxMn1ZYXOLo3eED6xYGM7Riza8XskRdCfF8xjj7L7/THPbixyn4mULsttSmWFhexzXnSeKqQHuoKmerqu0nu39iW3pcxDV/K7E6aaSr5ID0SCi7KRcL9BCUCz1g9c43sNj46BhMCWJSm0mx1XFDcoKZWhpj5FAgU4Q4e6f+S8eX39nf6D6SJRb4ap7Znzn7preIvmS93xWjm75I6UBVQGo6pn4qWNCgLYlGGCQCUm5tg566j+/g5jvYZkTJvbiZFwtjMW5njbSRwB3W4CrKoyxw4qsJNSaZRTKAvSjTKdqVDXV/U5HK7SaBA6iJ981/aforXbd2vZlRXO/2S+Maa2mHULzsD+S5l4/YGpSt7PnkCe25F+nAovtl/ogZgjMeEdFyd/9YMYjOS4krYmwp3yJ7m9ZzYCQ6I8RQN4x/yLlHG5RH/+WNLNUs6JAZ0fFdCmw="; - }, function(f, c) { - Object.defineProperty(c, "__esModule", { - value: !0 - }); - c.Rg = "IdProviderSymbol"; - }, function(f, c) { - Object.defineProperty(c, "__esModule", { - value: !0 - }); - c.eg = "ApplicationSymbol"; - }, function(f, c) { - Object.defineProperty(c, "__esModule", { - value: !0 + na.Object.defineProperties(c.prototype, { + yXa: { + configurable: !0, + enumerable: !0, + get: function() { + var a, b; + if (this && this.Wr && this.Wr.data) { + a = this.Wr.data[d.CPa]; + "undefined" !== typeof a && (b = a.toString()); + a = this.RJ.i9(b); + a = a instanceof f.bm ? !1 : a; + } else a = !1; + return a; + } + } }); - c.rS = "ConfigurableInputsSymbol"; - c.nk = "ValidatingConfigurableInputsSymbol"; - c.uC = "InitParamsSymbol"; - }, function(f, c) { - Object.defineProperty(c, "__esModule", { + p = c; + p = g.__decorate([k.N(), g.__param(0, k.Jg()), g.__param(1, k.Jg())], p); + d.cM = p; + ia(b, p); + b.prototype.Hqa = function(a, b) { + this.ga.error("Invalid configuration value.", { + name: a + }, b); + this.debug.assert(!1); + }; + a = b; + a = g.__decorate([g.__param(0, k.Jg()), g.__param(1, k.Jg())], a); + d.Yd = a; + }, function(g, d) { + Object.defineProperty(d, "__esModule", { + value: !0 + }); + d.fia = "WindowTimersSymbol"; + d.Ys = "JSONSymbol"; + d.lA = "NavigatorSymbol"; + d.cfa = "MediaSourceSymbol"; + d.Aea = "LocationSymbol"; + d.Eca = "DateSymbol"; + d.qY = "PerformanceSymbol"; + }, function(g, d) { + Object.defineProperty(d, "__esModule", { + value: !0 + }); + d.Tj = { + xua: "logblob", + Fa: "manifest", + $e: "license", + events: "events", + bind: "bind", + Ywa: "pair" + }; + g = d.Wf || (d.Wf = {}); + g[g.iw = 20] = "High"; + g[g.VX = 10] = "Medium"; + g[g.et = 0] = "Low"; + d.yY = { + Wf: "reqPriority", + qOa: "reqAttempt", + rOa: "reqName" + }; + }, function(g, d, a) { + var c, h; + + function b(a, f) { + var p; + p = d.Cq[0]; + p == f && (p = d.Cq[1]); + p ? p.close(function() { + b(a, f); + }) : a && a(c.Bb); + } + Object.defineProperty(d, "__esModule", { value: !0 }); - c.kr = "named"; - c.IJ = "name"; - c.eD = "unmanaged"; - c.N$ = "optional"; - c.tC = "inject"; - c.qu = "multi_inject"; - c.Aba = "inversify:tagged"; - c.Bba = "inversify:tagged_props"; - c.iU = "inversify:paramtypes"; - c.Kva = "design:paramtypes"; - c.RC = "post_construct"; - }, function(f, c, a) { - var l, g; + c = a(5); + h = a(12); + g = a(16); + d.vga = b; + d.yga = function(a, b) { + switch (a) { + case d.tga: + d.wga.push(b); + return; + case d.uga: + d.xga.push(b); + return; + } + h.sa(!1); + }; + d.Cq = []; + d.wga = []; + d.xga = []; + d.tga = 1; + d.uga = 3; + d.sY = { + zNa: 0, + BNa: void 0, + hN: void 0 + }; + d.sga = "network"; + d.rga = "media"; + d.xNa = "timedtext"; + d.sA = g.ph.MOa; + d.Yk = g.ph.gha; + d.qn = g.ph.Fq; + d.JF = g.ph.CY; + d.IF = g.ph.BY; + d.Vk = g.gM.rfa; + d.Os = g.gM.Ns; + d.Vba = g.gM.KOa; + d.Di = g.rn.SF; + d.Mo = g.rn.xf; + d.Dq = g.rn.Bq; + d.xw = g.rn.KW; + d.yNa = "playback"; + }, function(g, d) { + Object.defineProperty(d, "__esModule", { + value: !0 + }); + d.hb = function(a) { + return setTimeout(a, 0); + }; + }, function(g, d, a) { + var k, f; function b(a) { - return a && a.Ye && a.inRange && !a.fh && !1 !== a.Ok; + return a && a.Fe && a.inRange && !a.Eh && !1 !== a.Al; } - function d(a, b, c) { - return !l.da(a) || a < b ? b : a > c ? c : a; + function c(a, b, f) { + return !k.ja(a) || a < b ? b : a > f ? f : a; } function h(a) { if (!(this instanceof h)) return new h(a); - this.se = l.da(a) ? a : void 0; + this.Fd = k.ja(a) ? a : void 0; } - l = a(10); - g = new(a(9)).Console("ASEJS_STREAM_SELECTOR", "media|asejs"); - f.P = { - console: g, + k = a(11); + f = new(a(8)).Console("ASEJS_STREAM_SELECTOR", "media|asejs"); + g.M = { + console: f, debug: !1, assert: function(a, b) { - if (!a) throw a = b ? " : " + b : "", g.error("Assertion failed" + a), Error("ASEJS_STREAM_SELECTOR assertion failed" + a); - }, - iw: b, - T_a: function(a, b, c) { - var d, g, p, m, h; - d = !0; - p = 0; - if (!a) return d; - for (var r = [], l = 0, f = 0, k; p < a.length;) { - g = a.get(p); - h = g.ga; - m = g.duration; - if (f + h > c && l < b) { - d = !1; - break; - } - for (; 0 < r.length && f + h > c;) k = r.shift(), l -= k.duration, f -= k.ga; - l += m; - f += h; - r.push(g); - p += 1; - } - return d; - }, - UXa: function(a) { - var b, c; - c = 0; - if (a) { - for (var d = 0; d < a.length; ++d) b = Math.floor(8 * a.sizes(d) / a.hF(d)), c = Math.max(b, c); - return c; - } + if (!a) throw a = b ? " : " + b : "", f.error("Assertion failed" + a), Error("ASEJS_STREAM_SELECTOR assertion failed" + a); }, - m_: function(a, b, c) { - var p, m, h, r; + ny: b, + v3: function(a, b, f) { + var m, p, r, h; - function g(b) { - var d; - d = a[b]; - if (!d.Ye || !d.inRange || d.fh || c && !c(d, b)) return !1; - r = b; + function d(b) { + var c; + c = a[b]; + if (!c.Fe || !c.inRange || c.Eh || f && !f(c, b)) return !1; + h = b; return !0; } - p = a.length; - m = 0; - h = p; - l.isArray(b) && (m = d(b[0], 0, p), h = d(b[1], 0, p), b = b[2]); - b = d(b, m - 1, h); - for (p = b - 1; p >= m; --p) - if (g(p)) return r; - for (p = b + 1; p < h; ++p) - if (g(p)) return r; + m = a.length; + p = 0; + r = m; + k.isArray(b) && (p = c(b[0], 0, m), r = c(b[1], 0, m), b = b[2]); + b = c(b, p - 1, r); + for (m = b - 1; m >= p; --m) + if (d(m)) return h; + for (m = b + 1; m < r; ++m) + if (d(m)) return h; return -1; }, - N2a: function(a, b) { + fgb: function(a, b) { return Math.floor(a / (125 * b) * 1E3); }, - dOa: function(a, b) { + pZa: function(a, b) { return Math.ceil(a / 1E3 * b * 125); }, - hja: function(a, b, c) { - var d; - d = a.length - 1; - for (b = c ? b.bind(c) : b; 0 <= d; --d) b(a[d], d, a); + nR: function(a, b, f) { + var c; + c = a.length - 1; + for (b = f ? b.bind(f) : b; 0 <= c; --c) b(a[c], c, a); }, - jpb: function(a, c) { - return !a.slice(c + 1).some(b); + GFb: function(a, f) { + return !a.slice(f + 1).some(b); }, - gm: h, - AMa: function(a, b) { - var c; - return a.some(function(a, d, g) { - c = a; - return b(a, d, g); - }) ? c : void 0; + No: h, + LXa: function(a, b) { + var f; + return a.some(function(a, c, d) { + f = a; + return b(a, c, d); + }) ? f : void 0; }, - yX: function(a, b) { - var c; - return a.some(function(a, d, g) { - c = d; - return b(a, d, g); - }) ? c : -1; + uma: function(a, b) { + var f; + return a.some(function(a, c, d) { + f = c; + return b(a, c, d); + }) ? f : -1; }, - FE: d - }; - }, function(f, c, a) { - var h; - - function b(a) { - return h.kK.apply(this, arguments) || this; - } - - function d(a) { - return new h.Po(a, c.Ix); - } - Object.defineProperty(c, "__esModule", { - value: !0 - }); - h = a(415); - oa(b, h.kK); - c.eeb = b; - c.nM = d; - c.ga = function(a) { - return new h.Po(a, c.gl); - }; - c.vpb = function(a) { - return new h.Po(a, c.I9); - }; - c.Ypb = function(a) { - return new h.Po(a, c.iAa); - }; - c.Ix = new b(1, "b"); - c.gl = new b(8 * c.Ix.$f, "B", c.Ix); - c.I9 = new b(1024 * c.gl.$f, "KB", c.Ix); - c.iAa = new b(1024 * c.I9.$f, "MB", c.Ix); - c.cl = d(0); - }, function(f, c) { - Object.defineProperty(c, "__esModule", { - value: !0 - }); - c.xh = "SchedulerSymbol"; - }, function(f) { - f.P = function(c, a) { - for (var b in c) c.hasOwnProperty(b) && (a[b] = c[b]); - return a; + MB: c }; - }, function(f, c) { - Object.defineProperty(c, "__esModule", { + }, function(g, d) { + Object.defineProperty(d, "__esModule", { value: !0 }); - c.Di = "PboDispatcherSymbol"; - }, function(f, c) { - function a() {} - - function b() {} - - function d() {} - - function h() {} - - function l() {} - - function g() {} - - function m() {} - - function p() {} - Object.defineProperty(c, "__esModule", { - value: !0 - }); - p.aP = "loadedtracks"; - p.$O = "loadedmetadata"; - p.loaded = "loaded"; - p.error = "error"; - p.closed = "closed"; - p.Ik = "currenttimechanged"; - p.tE = "bufferedtimechanged"; - p.gN = "durationchanged"; - p.VR = "videosizechanged"; - p.MP = "pausedchanged"; - p.D3 = "playingchanged"; - p.oN = "endedchanged"; - p.gz = "busychanged"; - p.iE = "audiotracklistchanged"; - p.hE = "audiotrackchanged"; - p.Do = "timedtexttracklistchanged"; - p.jI = "timedtexttrackchanged"; - p.Zt = "trickplayframeschanged"; - p.xP = "mutedchanged"; - p.WR = "volumechanged"; - p.XQ = "showsubtitle"; - p.mQ = "removesubtitle"; - p.ZR = "watermark"; - p.$0 = "isReadyToTransition"; - p.VF = "inactivated"; - p.LQ = "segmentmaploaded"; - p.MQ = "segmentpresenting"; - p.NX = "autoplaywasallowed"; - p.OX = "autoplaywasblocked"; - c.Qa = p; - m.$ra = 1; - m.Vga = 2; - m.YNa = 3; - m.v4 = 4; - m.oQ = 5; - m.SP = 6; - m.kNa = 7; - m.mma = 8; - m.closed = 9; - m.ASa = 10; - m.Do = 11; - m.e$a = 12; - m.pI = 13; - m.Zt = 14; - m.q0a = 15; - m.hab = 16; - m.cP = 17; - m.l9a = 18; - m.VF = 19; - m.Yab = 20; - m.HMa = 21; - m.Hz = 22; - m.T4 = 23; - m.CX = 24; - m.N8a = 25; - m.Tqa = 26; - m.L8a = 27; - m.J1a = 28; - m.Wm = 29; - m.bga = 35; - m.vv = 36; - m.GMa = 37; - m.Ysa = 38; - m.Zsa = 39; - m.U2 = 40; - m.Uq = 41; - m.yNa = 42; - c.Ea = m; - g.Hga = 30; - g.lbb = 31; - c.OT = g; - l.Ona = 51; - l.paused = 52; - l.Ik = 53; - l.lB = 54; - c.p$ = l; - h.AEa = 0; - h.zEa = 1; - h.Bu = 2; - h.hba = 3; - h.gba = 4; - c.mk = h; - d.D$ = 1; - d.Yq = 2; - d.xEa = 3; - c.RI = d; - b.hD = 1; - b.nf = 2; - b.sn = 3; - b.PS = 4; - c.fm = b; - a.ZDa = 1; - a.Vaa = 2; - a.$Da = 3; - a.Uaa = 4; - c.hy = a; - }, function(f, c) { - Object.defineProperty(c, "__esModule", { - value: !0 - }); - f = c.er || (c.er = {}); - f[f.Gba = 0] = "Test"; - f[f.A9 = 1] = "Int"; - f[f.ZEa = 2] = "Staging"; - f[f.ODa = 3] = "Prod"; - c.oj = "GeneralConfigSymbol"; - }, function(f, c, a) { - var d; + d.nj = "Base64EncoderSymbol"; + }, function(g, d, a) { + var c; - function b(a, b, c, m, p, r, u, f, z, w) { - this.code = void 0 === a ? d.v.Vg : a; - this.tb = b; - this.Sc = c; - this.Jj = m; - this.sq = p; + function b(a, b, f, d, m, r, g, x, v, y, w) { + this.code = void 0 === a ? c.I.Sh : a; + this.tc = b; + this.Ef = f; + this.gC = d; + this.Ip = m; this.message = r; - this.Nv = u; - this.data = f; - this.ne = z; - this.w5a = w; - this.K = !1; + this.YB = g; + this.data = x; + this.xl = v; + this.ljb = y; + this.alert = w; + this.S = !1; } - Object.defineProperty(c, "__esModule", { + Object.defineProperty(d, "__esModule", { value: !0 }); - d = a(2); - b.yc = function(a) { - var b, c, d; + c = a(2); + b.ad = function(a) { + var b, f, c; if (a) { b = a.stack; - c = a.number; - d = a.message; - d || (d = "" + a); - b ? (a = "" + b, 0 !== a.indexOf(d) && (a = d + "\n" + a)) : a = d; - c && (a += "\nnumber:" + c); + f = a.number; + c = a.message; + c || (c = "" + a); + b ? (a = "" + b, 0 !== a.indexOf(c) && (a = c + "\n" + a)) : a = c; + f && (a += "\nnumber:" + f); return a; } return ""; }; - b.prototype.bF = function(a) { - this.Nv = b.yc(a); + b.prototype.MH = function(a) { + this.YB = b.ad(a); this.data = a; }; b.prototype.toString = function() { @@ -20508,366 +20549,101 @@ v7AA.H22 = function() { b.prototype.toJSON = function() { return { code: this.code, - subCode: this.tb, - extCode: this.Sc, - edgeCode: this.Jj, - mslCode: this.sq, + subCode: this.tc, + extCode: this.Ef, + edgeCode: this.gC, + mslCode: this.Ip, message: this.message, - details: this.Nv, + details: this.YB, data: this.data, - errorDisplayMessage: this.ne, - playbackServiceError: this.w5a + errorDisplayMessage: this.xl, + playbackServiceError: this.ljb }; }; - c.nb = b; - }, function(f, c) { - Object.defineProperty(c, "__esModule", { - value: !0 - }); - c.I3a = function(a, b) { - return a - b; - }; - c.Zsb = function(a, b) { - return a.localeCompare(b); - }; - c.$i = function(a, b) { - var c; - c = Object.getOwnPropertyDescriptor(a, b); - c && Object.defineProperty(a, b, { - configurable: c.configurable, - enumerable: !1, - value: c.value, - writable: c.writable - }); - }; - }, function(f, c) { - Object.defineProperty(c, "__esModule", { + d.Ub = b; + }, function(g, d) { + Object.defineProperty(d, "__esModule", { value: !0 }); - c.eca = "WindowTimers"; - c.hr = "JSONSymbol"; - c.LC = "NavigatorSymbol"; - c.q$ = "MediaSourceSymbol"; - c.Q9 = "LocationSymbol"; - c.N7 = "DateSymbol"; - c.tU = "PerformanceSymbol"; - }, function(f, c, a) { - var d, h, l, g, m, p, r; + d.Rj = "PboCommandContextSymbol"; + }, function(g, d, a) { + var h; - function b(a, b, c) { - l.ea(a && a != h.v.Vg, "There should always be a specific error code"); - this.errorCode = a || h.v.Vg; - b && m.Pd(b) ? (this.R = b.R || b.tb, this.ub = b.ub || b.Sc, this.Wv = b.Wv || b.Jj, this.za = b.za || b.Nv, this.$M = b.ne, this.Ms = b.Ms || b.Hna || b.sq, this.ji = b.ji || b.data, b.xG && (this.xG = b.xG), this.Fg = b.Fg, this.V2a = b.method, this.AP = b.AP, l.ea(!this.Fg || this.Fg == this.ub)) : (this.R = b, this.ub = c); - a = this.stack = [this.errorCode]; - this.R ? a.push(this.R) : this.ub && a.push(h.u.Vg); - this.ub && a.push(this.ub); - this.Fz = p.lJ + a.join("-"); + function b() { + h(!1); + } + + function c(a) { + a.set = b; + return a; } - Object.defineProperty(c, "__esModule", { + Object.defineProperty(d, "__esModule", { value: !0 }); - d = a(6); - h = a(2); - l = a(8); - g = a(3); - m = a(14); - p = a(36); - r = a(322); - c.rj = b; - b.prototype.toString = function() { - var a; - a = "[PlayerError #" + this.Fz + "]"; - this.za && (a += " " + this.za); - this.$M && (a += " (CustomMessage: " + this.$M + ")"); + h = a(14); + d.ai = function(a, b) { + Object.defineProperties(a, b); + }; + d.IGb = b; + d.L = c; + d.uo = function(a) { + a.set = b; return a; }; - b.prototype.GR = function() { - var a, b, c; - this.$M && (a = ["streaming_error"]); - a || r.PT.Tz() !== d.JS || ("80080017" == this.ub && (a = ["admin_mode_not_supported", "platform_error"]), "8004CD12" === this.ub && (a = ["pause_timeout"])); - a || r.PT.Tz() !== d.Z7 || this.errorCode !== h.v.LS && this.errorCode !== h.v.KS || (a = ["no_cdm", "platform_error", "plugin_error"]); - if (!a) switch (this.errorCode) { - case h.v.RJ: - case h.v.BJ: - case h.v.Hta: - case h.v.jU: - a = ["pause_timeout"]; - break; - case h.v.u9: - case h.v.v9: - a = this.R ? ["platform_error"] : ["multiple_tabs"]; - break; - case h.v.xC: - case h.v.fK: - case h.v.zya: - case h.v.yya: - case h.v.Bya: - a = ["should_signout_and_signin"]; - break; - case h.v.zT: - case h.v.Z$: - case h.v.X$: - case h.v.nU: - case h.v.jCa: - a = ["platform_error", "plugin_error"]; - break; - case h.v.Y$: - a = ["no_cdm", "platform_error", "plugin_error"]; - break; - case h.v.lU: - a = this.R ? ["platform_error", "plugin_error"] : ["no_cdm", "platform_error", "plugin_error"]; - break; - case h.v.gC: - case h.v.TJ: - case h.v.$$: - switch (this.ub) { - case "FFFFD000": - a = ["device_needs_service", "platform_error"]; - break; - case "48444350": - a = ["unsupported_output", "platform_error"]; - break; - case "00000024": - a = ["private_mode"]; - } - break; - case h.v.kU: - a = ["unsupported_output"]; - }!a && g.mxa(this.R) && (a = this.R == h.u.Px ? ["geo"] : ["internet_connection_problem"]); - if (!a) { - b = this.R; - c = parseInt(b, 10); - switch (isNaN(c) ? b : c) { - case h.u.$U: - a = ["should_upgrade"]; - break; - case h.u.BAa: - case h.u.LT: - a = ["should_signout_and_signin"]; - break; - case h.u.CAa: - a = ["internet_connection_problem"]; - break; - case h.u.lba: - case h.u.mba: - case h.u.jba: - a = ["storage_quota"]; - break; - case h.u.caa: - case h.u.aaa: - case h.u.daa: - case h.u.baa: - case h.u.H7: - a = ["platform_error", "plugin_error"]; - break; - case h.u.uS: - case h.u.S8: - case h.u.T8: - a = ["private_mode"]; - } - } - a = a || []; - a.push(p.lJ + this.errorCode); - this.R && a.push("" + this.R); - a = { - display: { - code: this.Fz, - text: this.$M - }, - messageIdList: a - }; - if (this.Ms || this.Hna) a.mslErrorCode = this.Ms || this.Hna || this.sq; - return a; - }; - c.yu = function(a, c) { - return new b(a, c, void 0).GR(); - }; - }, function(f, c) { - Object.defineProperty(c, "__esModule", { - value: !0 - }); - c.mj = "ClockSymbol"; - }, function(f, c, a) { - var h, l, g, m; - - function b(a) { + d.xXa = function(a) { var b; - b = m.call(this, a) || this; - b.debug = a.debug; - b.ca = a.si.Bb(b.Hj); + b = {}; + Object.getOwnPropertyNames(a).forEach(function(f) { + b[f] = c(a[f]); + }); return b; - } - - function d(a) { - this.Q3 = {}; - this.jq = a.jq; - this.OG = a.OG; - this.dQ = a.dQ; - } - Object.defineProperty(c, "__esModule", { - value: !0 - }); - f = a(1); - h = a(412); - l = a(0); - g = a(127); - c.hFa = "isTestAccount"; - d.prototype.lja = function() {}; - d.prototype.i8a = function(a, b) { - this.Q3[a] = [b, this.jq.uqa]; - }; - d.prototype.Q_a = function(a) { - return h.PC.of(this.Q3[a]).map(function(a) { - return a[1]; - }).UG(-1) < this.jq.uqa; }; - d.prototype.uYa = function(a) { - return h.PC.of(this.Q3[a]).map(function(a) { - return a[0]; - }).UG(function() { - throw Error("Invalid State Error"); - }); + }, function(g) { + g.M = function(d, a) { + for (var b in d) d.hasOwnProperty(b) && (a[b] = d[b]); + return a; }; - pa.Object.defineProperties(d.prototype, { - oMa: { - configurable: !0, - enumerable: !0, - get: function() { - var a, b; - if (this && this.jq && this.jq.data) { - a = this.jq.data[c.hFa]; - "undefined" !== typeof a && (b = a.toString()); - a = this.OG.b4(b); - a = a instanceof g.ml ? !1 : a; - } else a = !1; - return a; + }, function(g, d, a) { + var b, c; + b = a(113); + c = a(157); + g.M = function(a) { + return function f(d, m) { + switch (arguments.length) { + case 0: + return f; + case 1: + return c(d) ? f : b(function(b) { + return a(d, b); + }); + default: + return c(d) && c(m) ? f : c(d) ? b(function(b) { + return a(b, m); + }) : c(m) ? b(function(b) { + return a(d, b); + }) : a(d, m); } - } - }); - m = d; - m = f.__decorate([l.N(), f.__param(0, l.Uh())], m); - c.NI = m; - oa(b, m); - b.prototype.lja = function(a, b) { - this.ca.error("Invalid configuration value.", { - name: a - }, b); - this.debug.assert(!1); - }; - a = b; - a = f.__decorate([f.__param(0, l.Uh())], a); - c.we = a; - }, function(f, c, a) { - var l, g, m; - - function b(a) { - return function(b, c) { - return b.e4(c, a); - }; - } - - function d(a, b) { - return a.dQ.H6a[b] || h(a, b); - } - - function h(a, b) { - a = a.jq.data[b]; - switch (typeof a) { - case "undefined": - break; - case "string": - case "number": - case "boolean": - return a.toString(); - default: - return JSON.stringify(a); - } - } - Object.defineProperty(c, "__esModule", { - value: !0 - }); - l = a(42); - g = a(7); - m = a(127); - c.config = function(a, b) { - return function(c, g, p) { - var r, l; - r = void 0 !== b ? b : g; - l = p.get; - void 0 !== l && (p.get = function() { - var b; - if (!this.Q_a(g)) return this.uYa(g); - a: { - b = (this.oMa ? d : h)(this, r.toString()); - if (void 0 !== b) - if (b = a(this.OG, b), b instanceof m.ml) this.lja(r, b); - else break a;b = l.bind(this)(); - } - this.i8a(g, b); - return b; - }); - return p; - }; - }; - c.ola = function(a, b) { - return a.Hpa(b); - }; - c.We = function(a, b) { - return a.b4(b); - }; - c.rI = function(a, b) { - return a.Aa(b); - }; - c.string = function(a, b) { - return a.e4(b); - }; - c.bab = function(a, b) { - return a.re(b, c.string); - }; - c.cj = function(a, b) { - a = a.Aa(b); - return a instanceof m.ml ? a : g.Cb(a); - }; - c.ga = function(a, b) { - a = a.Aa(b); - return a instanceof m.ml ? a : l.ga(a); - }; - c.url = b(/^\S+$/); - c.gnb = function(a) { - return function(b, c) { - return b.Fpa(c, a); - }; - }; - c.object = function() { - return function(a, b) { - return a.Ipa(b); - }; - }; - c.Ypa = b; - c.Jn = function(a, b) { - return function(c, d) { - return c.re(d, a, b); }; }; - }, function(f, c, a) { - var b, d, h, l, g, m; + }, function(g, d, a) { + var b, c, h, k, f, p; b = this && this.__extends || function(a, b) { - function c() { + function f() { this.constructor = a; } - for (var d in b) b.hasOwnProperty(d) && (a[d] = b[d]); - a.prototype = null === b ? Object.create(b) : (c.prototype = b.prototype, new c()); + for (var c in b) b.hasOwnProperty(c) && (a[c] = b[c]); + a.prototype = null === b ? Object.create(b) : (f.prototype = b.prototype, new f()); }; - d = a(410); - f = a(70); - h = a(231); - l = a(230); - g = function(a) { + c = a(458); + g = a(71); + h = a(240); + k = a(239); + f = function(a) { function c(b, c, d) { - var p; + var m; a.call(this); - this.px = null; - this.Ze = this.kj = this.ox = !1; + this.zz = null; + this.Ff = this.Lj = this.yz = !1; switch (arguments.length) { case 0: this.destination = h.empty; @@ -20878,1023 +20654,737 @@ v7AA.H22 = function() { break; } if ("object" === typeof b) { - if (b instanceof g || "syncErrorThrowable" in b && b[l.fx]) { - p = b[l.fx](); - this.kj = p.kj; - this.destination = p; - p.add(this); - } else this.kj = !0, this.destination = new m(this, b); + if (b instanceof f || "syncErrorThrowable" in b && b[k.rz]) { + m = b[k.rz](); + this.Lj = m.Lj; + this.destination = m; + m.add(this); + } else this.Lj = !0, this.destination = new p(this, b); break; } - default: - this.kj = !0, this.destination = new m(this, b, c, d); + default: + this.Lj = !0, this.destination = new p(this, b, c, d); } } b(c, a); - c.prototype[l.fx] = function() { + c.prototype[k.rz] = function() { return this; }; - c.create = function(a, b, d) { - a = new c(a, b, d); - a.kj = !1; + c.create = function(a, b, f) { + a = new c(a, b, f); + a.Lj = !1; return a; }; c.prototype.next = function(a) { - this.Ze || this.tg(a); + this.Ff || this.Tg(a); }; c.prototype.error = function(a) { - this.Ze || (this.Ze = !0, this.Yb(a)); + this.Ff || (this.Ff = !0, this.Rb(a)); }; c.prototype.complete = function() { - this.Ze || (this.Ze = !0, this.qf()); + this.Ff || (this.Ff = !0, this.wb()); }; c.prototype.unsubscribe = function() { - this.closed || (this.Ze = !0, a.prototype.unsubscribe.call(this)); + this.closed || (this.Ff = !0, a.prototype.unsubscribe.call(this)); }; - c.prototype.tg = function(a) { + c.prototype.Tg = function(a) { this.destination.next(a); }; - c.prototype.Yb = function(a) { + c.prototype.Rb = function(a) { this.destination.error(a); this.unsubscribe(); }; - c.prototype.qf = function() { + c.prototype.wb = function() { this.destination.complete(); this.unsubscribe(); }; - c.prototype.$Ka = function() { + c.prototype.jWa = function() { var a, b; - a = this.Vu; - b = this.Xu; - this.Xu = this.Vu = null; + a = this.rm; + b = this.ax; + this.ax = this.rm = null; this.unsubscribe(); - this.Ze = this.closed = !1; - this.Vu = a; - this.Xu = b; + this.Ff = this.closed = !1; + this.rm = a; + this.ax = b; }; return c; - }(f.tj); - c.zh = g; - m = function(a) { - function c(b, c, g, p) { - var m; + }(g.Uj); + d.Rh = f; + p = function(a) { + function f(b, f, d, m) { + var p; a.call(this); - this.LD = b; + this.sG = b; b = this; - d.wb(c) ? m = c : c && (m = c.next, g = c.error, p = c.complete, c !== h.empty && (b = Object.create(c), d.wb(b.unsubscribe) && this.add(b.unsubscribe.bind(b)), b.unsubscribe = this.unsubscribe.bind(this))); - this.GK = b; - this.tg = m; - this.Yb = g; - this.qf = p; - } - b(c, a); - c.prototype.next = function(a) { + c.qb(f) ? p = f : f && (p = f.next, d = f.error, m = f.complete, f !== h.empty && (b = Object.create(f), c.qb(b.unsubscribe) && this.add(b.unsubscribe.bind(b)), b.unsubscribe = this.unsubscribe.bind(this))); + this.Th = b; + this.Tg = p; + this.Rb = d; + this.wb = m; + } + b(f, a); + f.prototype.next = function(a) { var b; - if (!this.Ze && this.tg) { - b = this.LD; - b.kj ? this.aV(b, this.tg, a) && this.unsubscribe() : this.bV(this.tg, a); + if (!this.Ff && this.Tg) { + b = this.sG; + b.Lj ? this.UY(b, this.Tg, a) && this.unsubscribe() : this.VY(this.Tg, a); } }; - c.prototype.error = function(a) { + f.prototype.error = function(a) { var b; - if (!this.Ze) { - b = this.LD; - if (this.Yb) b.kj ? this.aV(b, this.Yb, a) : this.bV(this.Yb, a), this.unsubscribe(); - else if (b.kj) b.px = a, b.ox = !0, this.unsubscribe(); + if (!this.Ff) { + b = this.sG; + if (this.Rb) b.Lj ? this.UY(b, this.Rb, a) : this.VY(this.Rb, a), this.unsubscribe(); + else if (b.Lj) b.zz = a, b.yz = !0, this.unsubscribe(); else throw this.unsubscribe(), a; } }; - c.prototype.complete = function() { - var a, b, c; + f.prototype.complete = function() { + var a, b, f; a = this; - if (!this.Ze) { - b = this.LD; - if (this.qf) { - c = function() { - return a.qf.call(a.GK); + if (!this.Ff) { + b = this.sG; + if (this.wb) { + f = function() { + return a.wb.call(a.Th); }; - b.kj ? this.aV(b, c) : this.bV(c); + b.Lj ? this.UY(b, f) : this.VY(f); } this.unsubscribe(); } }; - c.prototype.bV = function(a, b) { + f.prototype.VY = function(a, b) { try { - a.call(this.GK, b); - } catch (z) { - throw this.unsubscribe(), z; + a.call(this.Th, b); + } catch (v) { + throw this.unsubscribe(), v; } }; - c.prototype.aV = function(a, b, c) { + f.prototype.UY = function(a, b, f) { try { - b.call(this.GK, c); - } catch (w) { - return a.px = w, a.ox = !0; + b.call(this.Th, f); + } catch (y) { + return a.zz = y, a.yz = !0; } return !1; }; - c.prototype.rp = function() { + f.prototype.ar = function() { var a; - a = this.LD; - this.LD = this.GK = null; + a = this.sG; + this.sG = this.Th = null; a.unsubscribe(); }; - return c; - }(g); - }, function(f, c) { - Object.defineProperty(c, "__esModule", { + return f; + }(f); + }, function(g, d) { + Object.defineProperty(d, "__esModule", { value: !0 }); - c.wba = "StorageValidatorSymbol"; - c.fk = "AppStorageFactorySymbol"; - }, function(f, c, a) { - var d, h, l, g, m; - - function b() { - var a, b; - a = this; - this.rf = {}; - this.Hr = "$es$" + c.oxa++; - this.tD = l.Z.get(g.oj); - this.MJa = l.Z.get(m.Oaa); - this.on = function(b, c, d) { - a.addListener(b, c, d); - }; - this.addListener = this.tD.vI ? function(b, c, d) { - a.rf && (a.rf[b] = a.rf[b] || a.MJa()).add(c, d); - } : function(b, c, g) { - var p, m; - p = d.QJ + a.Hr + "$" + b; - if (a.rf) { - m = a.rf[b] ? a.rf[b].slice() : []; - g && (c[p] = g); - 0 > m.indexOf(c) && (m.push(c), m.sort(function(a, b) { - return (a[p] || 0) - (b[p] || 0); - })); - a.rf[b] = m; - } - }; - this.removeListener = this.tD.vI ? function(b, c) { - a.rf && a.rf[b] && a.rf[b].removeAll(c); - } : function(b, c) { - if (a.rf && a.rf[b]) { - for (var d = a.rf[b].slice(), g; 0 <= (g = d.indexOf(c));) d.splice(g, 1); - a.rf[b] = d; - } - }; - this.M_ = this.tD.vI ? function(b) { - return a.rf && a.rf[b] ? a.rf[b].JVa() : []; - } : function(b) { - return a.rf[b] || (a.rf[b] = []); - }; - b = this; - this.mc = function(a, c, d) { - var g; - if (b.rf) { - g = b.M_(a); - for (a = { - Mh: 0 - }; a.Mh < g.length; a = { - Mh: a.Mh - }, a.Mh++) d ? function(a) { - return function() { - var b; - b = g[a.Mh]; - h.Xa(function() { - b(c); - }); - }; - }(a)() : g[a.Mh].call(this, c); - } - }; - } - Object.defineProperty(c, "__esModule", { + d.Zgb = function(a, b) { + return a - b; + }; + d.zIb = function(a, b) { + return a.localeCompare(b); + }; + d.zk = function(a, b) { + var c; + c = Object.getOwnPropertyDescriptor(a, b); + c && Object.defineProperty(a, b, { + configurable: c.configurable, + enumerable: !1, + value: c.value, + writable: c.writable + }); + }; + }, function(g, d) { + Object.defineProperty(d, "__esModule", { value: !0 }); - d = a(6); - h = a(32); - l = a(3); - g = a(47); - m = a(377); - c.oxa = 0; - b.prototype.Ov = function() { - this.rf = void 0; - }; - c.Ci = b; - }, function(f, c, a) { - var g; - - function b() {} - - function d() {} - - function h() {} - - function l() {} - Object.defineProperty(c, "__esModule", { + g = d.Ts || (d.Ts = {}); + g[g.Iha = 0] = "Test"; + g[g.lea = 1] = "Int"; + g[g.nPa = 2] = "Staging"; + g[g.aOa = 3] = "Prod"; + d.$l = "GeneralConfigSymbol"; + }, function(g, d) { + Object.defineProperty(d, "__esModule", { value: !0 }); - a = a(106); - (function(a) { - a[a.vr = 0] = "STANDARD"; - a[a.vC = 1] = "LIMITED"; - a[a.pib = 2] = "PREVIEW"; - }(g || (g = {}))); - l.j7 = "created"; - l.fba = "started"; - l.oba = "succeeded"; - l.bm = "failed"; - l.Jx = "cancelled"; - l.UI = "cancelled_on_create"; - l.bC = "cancelled_on_start"; - l.TI = "cancelled_not_encrypted"; - c.ud = l; - h.Mjb = "uirequest"; - h.oib = "prefetch_start"; - h.mib = "prefetch_complete"; - h.nib = "prefetch_delete"; - h.BBa = "periodic_update"; - (function(a) { - a[a.faa = 0] = "PRE_FETCH"; - a[a.SDa = 1] = "QC"; - a[a.vr = 2] = "STANDARD"; - a[a.MEa = 3] = "SUPPLEMENTAL"; - a[a.Beb = 4] = "DOWNLOAD"; - }(f = c.vu || (c.vu = {}))); - a = { - manifest: a.vd.Wh.H6, - ldl: a.vd.Wh.mu, - getHeaders: a.vd.Wh.oC, - getMedia: a.vd.Wh.MEDIA - }; - d.Gta = "asl_start"; - d.Dta = "asl_comp"; - d.Eta = "asl_exc"; - d.Fta = "asl_fail"; - d.BEa = "stf_creat"; - d.Rjb = "vald_start"; - d.Qjb = "vald_fail"; - d.Pjb = "vald_comp"; - d.cya = "idb_open"; - d.$xa = "idb_block"; - d.jya = "idb_upgr"; - d.iya = "idb_succ"; - d.aya = "idb_error"; - d.bya = "idb_invalid_state"; - d.eya = "idb_open_timeout"; - d.gya = "idb_open_wrkarnd"; - d.hya = "idb_storelen_exc"; - d.dya = "idb_open_exc"; - d.fya = "idb_timeout_invalid_storelen"; - d.Qza = "msl_load_data"; - d.Sza = "msl_load_no_data"; - d.Rza = "msl_load_failed"; - d.odb = "app_st_idb_fail"; - d.tta = "app_st_winfs_fail"; - d.pdb = "app_st_idb_winfs_fail"; - d.uta = "app_st_winfs_start"; - d.vta = "app_st_winfs_succ"; - d.sta = "app_st_winfs_create_fail"; - d.Ogb = "mig_start"; - d.Kgb = "mig_result_degraded"; - d.Ngb = "mig_result_winfs"; - d.Lgb = "mig_result_idb"; - d.Mgb = "mig_result_invalid"; - d.Fgb = "mig_exc"; - d.Tgb = "mig_winfs_unavailable_degraded"; - d.wgb = "mig_already_done_in_winfs"; - d.Ggb = "mig_exc_during_migration_degraded"; - d.Pgb = "mig_winfs_loadall_failed_degraded"; - d.Sgb = "mig_winfs_saveall_undefined_degraded"; - d.Cgb = "mig_cant_proceed_idb_unavailable_degraded"; - d.Bgb = "mig_cant_proceed_idb_loadall_failed_degraded"; - d.Igb = "mig_idb_already_done_winfs_unavailable_degraded"; - d.Hgb = "mig_idb_already_done_winfs_no_status_forced"; - d.Jgb = "mig_idb_firsttime_user_forced"; - d.Dgb = "mig_done_no_downloads_data"; - d.Qgb = "mig_winfs_remove_all_failed"; - d.Rgb = "mig_winfs_remove_all_succ"; - d.ugb = "mig_aborted_winfs_saveall_failed"; - d.vgb = "mig_aborted_winfs_unavailable"; - d.Egb = "mig_done_winfs_saveall_succ"; - d.ygb = "mig_besteffort_idb_save_succ"; - d.xgb = "mig_besteffort_idb_save_fail"; - d.Agb = "mig_besteffort_winfs_save_succ"; - d.zgb = "mig_besteffort_winfs_save_fail"; - c.og = d; - b.cza = g; - b.mha = function(a) { - return ["STANDARD", "LIMITED", "PREVIEW"][a]; - }; - b.ud = l; - b.FCa = h; - b.vu = f; - b.oha = function(a) { - return ["PRE_FETCH", "QC", "STANDARD", "SUPPLEMENTAL", "DOWNLOAD"][a]; - }; - b.SC = a; - b.og = d; - c.tc = b; - }, function(f, c) { - Object.defineProperty(c, "__esModule", { - value: !0 - }); - c.rwa = "Cannot apply @injectable decorator multiple times."; - c.swa = "Metadata key was used more than once in a parameter:"; - c.KC = "NULL argument"; - c.G9 = "Key Not Found"; - c.rta = "Ambiguous match found for serviceIdentifier:"; - c.Eua = "Could not unbind serviceIdentifier:"; - c.IAa = "No matching bindings found for serviceIdentifier:"; - c.Lza = "Missing required @injectable annotation in:"; - c.Mza = "Missing required @inject or @multiInject annotation in:"; - c.GFa = function(a) { + d.xha = "StorageValidatorSymbol"; + d.Xl = "AppStorageFactorySymbol"; + }, function(g, d) { + Object.defineProperty(d, "__esModule", { + value: !0 + }); + d.eGa = "Cannot apply @injectable decorator multiple times."; + d.fGa = "Metadata key was used more than once in a parameter:"; + d.BF = "NULL argument"; + d.rea = "Key Not Found"; + d.DCa = "Ambiguous match found for serviceIdentifier:"; + d.cEa = "Could not unbind serviceIdentifier:"; + d.bLa = "No matching bindings found for serviceIdentifier:"; + d.TJa = "Missing required @injectable annotation in:"; + d.UJa = "Missing required @inject or @multiInject annotation in:"; + d.jQa = function(a) { return "@inject called with undefined this could mean that the class " + a + " has a circular dependency problem. You can use a LazyServiceIdentifer to overcome this limitation."; }; - c.Gua = "Circular dependency found:"; - c.Ehb = "Sorry, this feature is not fully implemented yet."; - c.Eya = "Invalid binding type:"; - c.JAa = "No snapshot available to restore."; - c.Hya = "Invalid return type in middleware. Middleware must return!"; - c.Qfb = "Value provided to function binding must be a function!"; - c.Jya = "The toSelf function can only be applied when a constructor is used as service identifier"; - c.Fya = "The @inject @multiInject @tagged and @named decorators must be applied to the parameters of a class constructor or a class property."; - c.wta = function() { + d.fEa = "Circular dependency found:"; + d.Kxb = "Sorry, this feature is not fully implemented yet."; + d.GIa = "Invalid binding type:"; + d.cLa = "No snapshot available to restore."; + d.JIa = "Invalid return type in middleware. Middleware must return!"; + d.Awb = "Value provided to function binding must be a function!"; + d.LIa = "The toSelf function can only be applied when a constructor is used as service identifier"; + d.HIa = "The @inject @multiInject @tagged and @named decorators must be applied to the parameters of a class constructor or a class property."; + d.ECa = function() { for (var a = [], b = 0; b < arguments.length; b++) a[b] = arguments[b]; return "The number of constructor arguments in the derived class " + (a[0] + " must be >= than the number of constructor arguments of its base class."); }; - c.Vua = "Invalid Container constructor argument. Container options must be an object."; - c.Tua = "Invalid Container option. Default scope must be a string ('singleton' or 'transient')."; - c.Sua = "Invalid Container option. Auto bind injectable must be a boolean"; - c.Uua = "Invalid Container option. Skip base check must be a boolean"; - c.Wza = "Cannot apply @postConstruct decorator multiple times in the same class"; - c.ECa = function() { + d.uEa = "Invalid Container constructor argument. Container options must be an object."; + d.sEa = "Invalid Container option. Default scope must be a string ('singleton' or 'transient')."; + d.rEa = "Invalid Container option. Auto bind injectable must be a boolean"; + d.tEa = "Invalid Container option. Skip base check must be a boolean"; + d.fKa = "Cannot apply @postConstruct decorator multiple times in the same class"; + d.QMa = function() { for (var a = [], b = 0; b < arguments.length; b++) a[b] = arguments[b]; return "@postConstruct error in class " + a[0] + ": " + a[1]; }; - c.Hua = function() { + d.gEa = function() { for (var a = [], b = 0; b < arguments.length; b++) a[b] = arguments[b]; return "It looks like there is a circular dependency " + ("in one of the '" + a[0] + "' bindings. Please investigate bindings with") + ("service identifier '" + a[1] + "'."); }; - c.wEa = "Maximum call stack size exceeded"; - }, function(f, c, a) { - var b, d; - Object.defineProperty(c, "__esModule", { + d.JOa = "Maximum call stack size exceeded"; + }, function(g, d, a) { + var b, c; + Object.defineProperty(d, "__esModule", { value: !0 }); - f = a(57); - b = a(32); - d = a(5); - c.Bd = new f.Ci(); - c.Pj = 1; - c.cw = 2; - c.k0 = 3; - c.LF = 4; - c.j0 = 5; - b.Xa(function() { - var b, g, m; + g = a(68); + b = a(42); + c = a(6); + d.ee = new g.Pj(); + d.uk = 1; + d.dy = 2; + d.Y4 = 3; + d.GI = 4; + d.X4 = 5; + b.hb(function() { + var b, f, p; function a(a, b) { - if (g) g.on(a, b); - else t.addEventListener(a, b); + if (f) f.on(a, b); + else A.addEventListener(a, b); } - b = t.jQuery; - g = b && b(t); - b = (b = t.netflix) && b.cadmium && b.cadmium.addBeforeUnloadHandler; - m = d.cd.hidden; + b = A.jQuery; + f = b && b(A); + b = (b = A.netflix) && b.cadmium && b.cadmium.addBeforeUnloadHandler; + p = c.wd.hidden; b ? b(function(a) { - c.Bd.mc(c.Pj, a); + d.ee.Db(d.uk, a); }) : a("beforeunload", function(a) { - c.Bd.mc(c.Pj, a); + d.ee.Db(d.uk, a); }); a("keydown", function(a) { - c.Bd.mc(c.cw, a); + d.ee.Db(d.dy, a); }); a("resize", function() { - c.Bd.mc(c.k0); + d.ee.Db(d.Y4); }); - d.cd.addEventListener("visibilitychange", function() { - m !== d.cd.hidden && (m = d.cd.hidden, c.Bd.mc(c.LF)); + c.wd.addEventListener("visibilitychange", function() { + p !== c.wd.hidden && (p = c.wd.hidden, d.ee.Db(d.GI)); }); }); (function() { - t.addEventListener("error", function(a) { - c.Bd.mc(c.j0, a); + A.addEventListener("error", function(a) { + d.ee.Db(d.X4, a); return !0; }); }()); - }, function(f, c) { - Object.defineProperty(c, "__esModule", { + }, function(g, d) { + Object.defineProperty(d, "__esModule", { value: !0 }); - c.gg = { - start: "start", - stop: "stop", - MO: "keepAlive", - resume: "resume", - pause: "pause", - Rn: "engage", - splice: "splice" - }; - c.mJ = "EventPboCommandFactorySymbol"; - c.tba = "StartEventPboCommandSymbol"; - c.uba = "StopEventPboCommandSymbol"; - c.H9 = "KeepAliveEventPboCommandSymbol"; - c.gaa = "PauseEventPboCommandSymbol"; - c.bba = "ResumeEventPboCommandSymbol"; - c.rba = "SpliceEventPboCommandSymbol"; - c.r8 = "EngageEventPboCommandSymbol"; - }, function(f, c) { - Object.defineProperty(c, "__esModule", { - value: !0 - }); - c.fl = "Base64EncoderSymbol"; - }, function(f, c) { - Object.defineProperty(c, "__esModule", { + d.NX = "LogBatcherConfigSymbol"; + d.dt = "LogBatcherSymbol"; + d.Bea = "LogBatcherProviderSymbol"; + }, function(g, d, a) { + var b; + Object.defineProperty(d, "__esModule", { value: !0 }); - c.J6 = "AccountManagerSymbol"; - c.gn = "AccountManagerProviderSymbol"; - }, function(f, c) { - function a() {} + b = a(14); + d.nZ = function(a) { + b("number" === typeof a); + return String.fromCharCode(a >>> 24 & 255) + String.fromCharCode(a >>> 16 & 255) + String.fromCharCode(a >>> 8 & 255) + String.fromCharCode(a & 255); + }; + d.Oia = function(a) { + return a.charCodeAt(3) + (a.charCodeAt(2) << 8) + (a.charCodeAt(1) << 16) + (a.charCodeAt(0) << 24); + }; + d.$Ab = function(a, b) { + return Math.floor(1E3 * a / b); + }; + }, function(g, d) { + var c; - function b() {} + function a(a, b, f, c) { + var d; + Object.getOwnPropertyNames(a).filter(function(a) { + return (!c || c(a)) && (f || !Object.prototype.hasOwnProperty.call(b, a)); + }).forEach(function(f) { + d = Object.getOwnPropertyDescriptor(a, f); + void 0 !== d && Object.defineProperty(b, f, d); + }); + } - function d() {} - Object.defineProperty(c, "__esModule", { - value: !0 - }); - d.fr = "playready-h264mpl30-dash"; - d.ju = "playready-h264mpl31-dash"; - d.lC = "playready-h264mpl40-dash"; - d.Cxa = "playready-h264hpl30-dash"; - d.Dxa = "playready-h264hpl31-dash"; - d.Exa = "playready-h264hpl40-dash"; - d.lT = "hevc-main-L30-dash-cenc"; - d.mT = "hevc-main-L31-dash-cenc"; - d.nT = "hevc-main-L40-dash-cenc"; - d.oT = "hevc-main-L41-dash-cenc"; - d.pT = "hevc-main-L50-dash-cenc"; - d.qT = "hevc-main-L51-dash-cenc"; - d.dT = "hevc-main10-L30-dash-cenc"; - d.fT = "hevc-main10-L31-dash-cenc"; - d.hT = "hevc-main10-L40-dash-cenc"; - d.jT = "hevc-main10-L41-dash-cenc"; - d.pC = "hevc-main10-L50-dash-cenc"; - d.qC = "hevc-main10-L51-dash-cenc"; - d.eT = "hevc-main10-L30-dash-cenc-prk"; - d.gT = "hevc-main10-L31-dash-cenc-prk"; - d.iT = "hevc-main10-L40-dash-cenc-prk"; - d.kT = "hevc-main10-L41-dash-cenc-prk"; - d.Afb = "hevc-main-L30-L31-dash-cenc-tl"; - d.Bfb = "hevc-main-L31-L40-dash-cenc-tl"; - d.Cfb = "hevc-main-L40-L41-dash-cenc-tl"; - d.Dfb = "hevc-main-L50-L51-dash-cenc-tl"; - d.wfb = "hevc-main10-L30-L31-dash-cenc-tl"; - d.xfb = "hevc-main10-L31-L40-dash-cenc-tl"; - d.yfb = "hevc-main10-L40-L41-dash-cenc-tl"; - d.zfb = "hevc-main10-L50-L51-dash-cenc-tl"; - d.wS = "hevc-dv-main10-L30-dash-cenc"; - d.xS = "hevc-dv-main10-L31-dash-cenc"; - d.yS = "hevc-dv-main10-L40-dash-cenc"; - d.zS = "hevc-dv-main10-L41-dash-cenc"; - d.AS = "hevc-dv-main10-L50-dash-cenc"; - d.M7 = "hevc-dv-main10-L51-dash-cenc"; - d.aJ = "hevc-dv5-main10-L30-dash-cenc-prk"; - d.bJ = "hevc-dv5-main10-L31-dash-cenc-prk"; - d.cJ = "hevc-dv5-main10-L40-dash-cenc-prk"; - d.dJ = "hevc-dv5-main10-L41-dash-cenc-prk"; - d.eJ = "hevc-dv5-main10-L50-dash-cenc-prk"; - d.BS = "hevc-dv5-main10-L51-dash-cenc-prk"; - d.US = "hevc-hdr-main10-L30-dash-cenc"; - d.VS = "hevc-hdr-main10-L31-dash-cenc"; - d.WS = "hevc-hdr-main10-L40-dash-cenc"; - d.XS = "hevc-hdr-main10-L41-dash-cenc"; - d.YS = "hevc-hdr-main10-L50-dash-cenc"; - d.$S = "hevc-hdr-main10-L51-dash-cenc"; - d.sJ = "hevc-hdr-main10-L30-dash-cenc-prk"; - d.tJ = "hevc-hdr-main10-L31-dash-cenc-prk"; - d.uJ = "hevc-hdr-main10-L40-dash-cenc-prk"; - d.vJ = "hevc-hdr-main10-L41-dash-cenc-prk"; - d.ZS = "hevc-hdr-main10-L50-dash-cenc-prk"; - d.aT = "hevc-hdr-main10-L51-dash-cenc-prk"; - d.Zba = "vp9-profile0-L21-dash-cenc"; - d.nK = "vp9-profile0-L30-dash-cenc"; - d.oK = "vp9-profile0-L31-dash-cenc"; - d.pK = "vp9-profile0-L40-dash-cenc"; - d.Uba = "vp9-profile2-L30-dash-cenc-prk"; - d.Vba = "vp9-profile2-L31-dash-cenc-prk"; - d.Wba = "vp9-profile2-L40-dash-cenc-prk"; - d.Xba = "vp9-profile2-L50-dash-cenc-prk"; - d.Yba = "vp9-profile2-L51-dash-cenc-prk"; - d.kEa = [d.fr]; - d.Jxa = [d.ju, d.lC]; - d.DFa = [d.lT, d.mT, d.nT, d.oT, d.pT, d.qT]; - d.FFa = [d.dT, d.fT, d.hT, d.jT, d.pC, d.qC]; - d.EFa = [d.eT, d.gT, d.iT, d.kT, d.pC, d.qC]; - d.Ixa = [d.US, d.VS, d.WS, d.XS, d.YS, d.$S]; - d.Hxa = [d.sJ, d.tJ, d.uJ, d.vJ, d.ZS, d.aT]; - d.uwa = [d.wS, d.yS, d.AS, d.xS, d.zS, d.M7]; - d.twa = [d.aJ, d.cJ, d.eJ, d.bJ, d.dJ, d.BS]; - d.Geb = [d.wS, d.xS, d.yS, d.AS, d.zS]; - d.Feb = [d.aJ, d.bJ, d.cJ, d.eJ, d.dJ]; - d.Vjb = [d.nK, d.oK, d.pK]; - d.yr = [d.Zba, d.nK, d.oK, d.pK, d.Uba, d.Vba, d.Wba, d.Xba, d.Yba]; - d.F8 = d.kEa.concat(d.Jxa); - d.Gxa = d.DFa; - d.Fxa = d.FFa; - d.Kta = [].concat(d.F8, d.Gxa, d.Fxa, d.EFa, d.Ixa, d.Hxa, d.uwa, d.twa, d.yr); - c.$ = d; - b.wJ = "heaac-2-dash"; - b.ZI = "ddplus-2.0-dash"; - b.tS = "ddplus-5.1-dash"; - b.$I = "ddplus-atmos-dash"; - b.bT = "playready-heaac-2-dash"; - b.Lxa = "heaac-2-dash-enc"; - b.xva = "ddplus-2.0-dash-enc"; - b.yva = "ddplus-5.1-dash-enc"; - b.Kxa = "playready-heaac-2-dash-enc"; - b.Kta = [].concat(b.wJ, b.ZI, b.tS, b.$I, b.bT, b.Lxa, b.xva, b.yva, b.Kxa); - c.gk = b; - a.sEa = "simplesdh"; - a.vS = "dfxp-ls-sdh"; - a.Xx = "nflx-cmisc"; - a.fjb = "simplesdh-enc"; - a.Aeb = "dfxp-ls-sdh-enc"; - a.JJ = "nflx-cmisc-enc"; - c.uj = a; - }, function(f, c) { - Object.defineProperty(c, "__esModule", { - value: !0 - }); - c.IT = "LogBatcherConfigSymbol"; - c.jr = "LogBatcherSymbol"; - c.R9 = "LogBatcherProviderSymbol"; - }, function(f, c, a) { - var b; - Object.defineProperty(c, "__esModule", { + function b(c, d, f) { + var p, m; + p = f ? [] : Object.keys(d); + m = Object.getPrototypeOf(c); + null !== m && m !== Object.prototype && b(m, d, f); + a(c, d, !0, function(a) { + return "constructor" !== a && -1 === p.indexOf(a); + }); + } + Object.defineProperty(d, "__esModule", { value: !0 }); - b = a(40); - f = function() { - function a(a, b) { - this.key = a; - this.value = b; - } - a.prototype.toString = function() { - return this.key === b.kr ? "named: " + this.value.toString() + " " : "tagged: { key:" + this.key.toString() + ", value: " + this.value + " }"; - }; - return a; - }(); - c.Metadata = f; - }, function(f, c, a) { - var h, l, g, m; + c = Object.getOwnPropertyNames(Function); + d.Rk = function(d, k, f) { + void 0 === f && (f = !0); + d.prototype ? (b(d.prototype, k.prototype, f), a(d, k, f, function(a) { + return -1 === c.indexOf(a); + })) : a(d, k.prototype, f, function(a) { + return -1 === c.indexOf(a); + }); + }; + }, function(g, d, a) { + var u; function b(a, b) { - g.call(this, a, b); - h(void 0 !== b.X && void 0 !== b.duration); - h(void 0 === b.fa || b.fa === b.X + b.duration); - h(void 0 === b.Ad || b.Ad <= b.X); - h(void 0 === b.mi || b.mi === b.Ad + b.ON); - this.wl = b.index; - this.Li = b.X; - this.wd = b.duration; - this.$K = void 0 !== b.Ad ? b.Ad : this.X; - this.rda = b.ON || this.duration; - this.OD = b.mh || 0; - this.Jda = !!b.Hm; - this.xIa = b.HG; - this.oy = b.Fh; - this.yy = b.yd; - this.PK = b.Lc; - this.cfa = b.Ut; - this.Nf = !1; + if (a.length == b.length) { + for (var c = a.length, d = 0, m = f(a), p = f(b), r = 0; r < c; r++) d += a[r] * b[r]; + return (d - m * p / c) / c; + } + return !1; } - function d() { - h(!1); + function c(a) { + if (!Array.isArray(a)) return !1; + a = h(a); + return Math.sqrt(a); } - h = a(21); - l = a(13); - g = a(174); - m = a(72); - b.prototype = Object.create(g.prototype); - Object.defineProperties(b.prototype, { - X0: { - get: function() { - return !0; - }, - set: d - }, - index: { - get: function() { - return this.wl; - }, - set: d - }, - X: { - get: function() { - return this.Li; - }, - set: d - }, - duration: { - get: function() { - return this.wd; - }, - set: d - }, - Ad: { - get: function() { - return this.$K; - }, - set: d - }, - ON: { - get: function() { - return this.rda; - }, - set: d - }, - mh: { - get: function() { - return this.OD; - }, - set: d - }, - Gv: { - get: function() { - return this.Li - this.OD; - }, - set: d - }, - Hm: { - get: function() { - return this.Jda; - }, - set: d - }, - HG: { - get: function() { - return this.xIa; - }, - set: d - }, - Fh: { - get: function() { - return this.oy; - }, - set: d - }, - yd: { - get: function() { - return this.yy; - }, - set: d - }, - Lc: { - get: function() { - return this.PK; - }, - set: d - }, - Ut: { - get: function() { - return this.cfa; - }, - set: d - }, - fa: { - get: function() { - return this.Li + this.wd; - }, - set: d - }, - mi: { - get: function() { - return this.$K + this.rda; - }, - set: d + + function h(a) { + var b; + if (!Array.isArray(a)) return !1; + b = k(a); + return f(a.map(function(a) { + return (a - b) * (a - b); + })) / (a.length - 1); + } + + function k(a) { + return Array.isArray(a) ? f(a) / a.length : !1; + } + + function f(a) { + return Array.isArray(a) ? a.reduce(function(a, b) { + return a + b; + }, 0) : !1; + } + + function p(a, b, f) { + return Math.max(Math.min(a, f), b); + } + + function m(a, b) { + return "number" === typeof a ? a : b; + } + + function r(a) { + return 1 / (1 + Math.exp(-a)); + } + u = a(11); + g.M = { + Ia: function(a, b, f) { + try { + a.Ia(b, f); + } catch (w) { + a.Rb("JAVASCRIPT EXCEPTION: Caught in ASE client event listener. Exception:", w, "Event:", f); + } }, - Ri: { - get: function() { - return this.Li - this.OD; - }, - set: d + Br: function() { + var a, b, f; + a = Array.prototype.concat.apply([], arguments); + b = a.reduce(function(a, b) { + return a + b.byteLength; + }, 0); + f = new Uint8Array(b); + a.reduce(function(a, b) { + f.set(new Uint8Array(b), a); + return a + b.byteLength; + }, 0); + return f.buffer; }, - Ij: { - get: function() { - return this.Ri + this.wd; - }, - set: d + MB: p, + w_a: function(a, b, f, c) { + return { + min: p(m(a.min, b), f, c), + max: p(m(a.max, b), f, c), + zr: p(a.zr || 6E4, 0, 6E5), + pna: p(a.pna || 0, -3E5, 3E5), + scale: p(a.scale || 6E4, 0, 3E5), + rza: p(a.rza || 0, -3E5, 3E5), + gamma: p(a.gamma || 1, .1, 10) + }; }, - qc: { - get: function() { - return this.Li; - }, - set: d + pc: function(a, b) { + void 0 !== a && u.aib(a).forEach(function(a) { + b(a[0], a[1]); + }); }, - df: { - get: function() { - return this.qc + this.wd; - }, - set: d + n6a: function(a, b, f) { + return a.min + (a.max - a.min) * (1 - Math.pow(r(6 * (b - (a.zr + (a.pna || 0) * (1 - f))) / (a.scale + (a.rza || 0) * (1 - f))), a.gamma)); }, - SVa: { - get: function() { - return this.Ad - this.mh; - }, - set: d + o6a: function(a, b) { + return a.min + (a.max - a.min) * Math.pow(r(6 * (b - a.zr) / a.scale), a.gamma); }, - mja: { - get: function() { - return this.mi - this.mh; - }, - set: d + L$a: f, + f8a: k, + gab: h, + E$a: c, + BEb: b, + AEb: function(a, f) { + var d; + if (a.length == f.length) { + d = b(a, f); + a = c(a); + f = c(f); + return d / (a * f); + } + return !1; }, - gd: { - get: function() { - return this.duration; - }, - set: d + vJ: function(a, b, f) { + return b.y2a ? b.y2a(f) : new a.Console("ASEJS", "media|asejs", f); }, - hb: { - get: function() { - return this.X; - }, - set: d + e$: function(a) { + return a.length ? "{" + a + "} " : ""; }, - Lg: { - get: function() { - return this.fa; - }, - set: d - } - }); - b.prototype.lra = function(a) { - var b; - b = a - this.OD; - 0 != b && (this.Li += b, this.$K += b, this.OD = a); - }; - b.prototype.Rma = function() { - this.Jda = !0; - }; - b.prototype.JH = function(a) { - this.cfa = a; - }; - b.prototype.oq = function(a, b) { - a ? b ? a.Qb < this.mja && (this.wd = a.Qb - this.SVa, this.PK = a, this.yy = !0) : 0 < a.Rd && (this.Li = a.Qb + this.mh, this.wd = this.mja - a.Qb, this.PK = a, this.yy = !0) : this.yy = !0; - }; - b.prototype.CVa = function(a) { - var c; - if (!(a < this.X || a >= this.fa) && this.Fh && this.Fh.length) { - a = new m(a - this.X, 1E3).Gz(this.stream.bc); - for (var b = this.Fh.length - 1; 0 <= b; --b) { - c = this.Fh[b]; - if (c.Rd <= a) return c; - } - return { - Rd: 0, - Qb: this.Ad - }; - } - }; - b.prototype.BVa = function(a) { - var c; - if (!(a < this.X || a >= this.fa) && this.Fh && this.Fh.length) { - a = new m(a - this.X, 1E3).Gz(this.stream.bc); - for (var b = 0; b < this.Fh.length; ++b) { - c = this.Fh[b]; - if (c.Rd >= a) return c; - } - } - }; - b.prototype.Xia = function(a, b) { - var c, d; - if (!(a < this.X || a >= this.fa)) { - c = this.Kn; - d = this.Mn; - a = Math.min((b ? Math.ceil : Math.floor)(Math.floor(((a - this.X + 1) * d - 1) / 1E3) / c), Math.floor(Math.floor(this.duration * d / 1E3) / c) - 1); + Imb: function(a, b, f) { return { - Rd: a, - Qb: this.Ad + m.ebb(a * c, d) + min: a.min * f + (1 - f) * b.min, + max: a.max * f + (1 - f) * b.max, + zr: a.zr * f + (1 - f) * b.zr, + scale: a.scale * f + (1 - f) * b.scale, + gamma: a.gamma * f + (1 - f) * b.gamma }; - } - }; - b.prototype.l_ = function(a) { - return this.O === l.G.VIDEO ? this.CVa(a) : this.Xia(a, !1); - }; - b.prototype.zVa = function(a) { - return this.O === l.G.VIDEO ? this.BVa(a) : this.Xia(a, !0); + }, + tanh: Math.tanh || function(a) { + var b; + b = Math.exp(+a); + a = Math.exp(-a); + return Infinity == b ? 1 : Infinity == a ? -1 : (b - a) / (b + a); + }, + Dob: r }; - b.prototype.nMa = function(a) { - this.pf += a.ga; - this.wd += a.duration; + }, function(g, d, a) { + Object.defineProperty(d, "__esModule", { + value: !0 + }); + a(0).__exportStar(a(749), d); + d.xeb = function(b) { + d.platform.SI(b); + return a(747); }; - b.prototype.toString = function() { - return "[" + this.ib + ", " + this.J + "kbit/s, pts " + this.X + "-" + this.fa + "]"; + d.GEb = function() { + return a(377); }; - f.P = b; - }, function(f, c, a) { - var b; - b = a(21); - f.P = { - Nca: function(a) { - b("number" === typeof a); - return String.fromCharCode(a >>> 24 & 255) + String.fromCharCode(a >>> 16 & 255) + String.fromCharCode(a >>> 8 & 255) + String.fromCharCode(a & 255); - }, - Mca: function(a) { - return a.charCodeAt(3) + (a.charCodeAt(2) << 8) + (a.charCodeAt(1) << 16) + (a.charCodeAt(0) << 24); - }, - RGa: function(a, b) { - return Math.floor(1E3 * a / b); - } + d.yGb = function() { + return a(201); }; - }, function(f, c, a) { - var r, u; - - function b(a) { - return !(!a || !a.Ow && !a.pboc || !a.code && !a.code); - } - - function d(a) { - return !(!a || !a.tb); - } - - function h(a) { - return !!(a instanceof Error); - } + g = a(13); + d.gc = g; + g = a(649); + d.wu = g; + g = a(8); + d.platform = g; + }, function(g, d, a) { + var f; - function l(a) { - switch (a) { - case "ACCOUNT_ON_HOLD": - return u.u.pBa; - case "STREAM_QUOTA_EXCEEDED": - return u.u.tBa; - case "INSUFFICICENT_MATURITY": - return u.u.vBa; - case "TITLE_OUT_OF_WINDOW": - return u.u.zBa; - case "CHOICE_MAP_ERROR": - return u.u.sBa; - case "BadRequest": - return u.u.xBa; - case "Invalid_SemVer_Format": - return u.u.wBa; - case "RESTRICTED_TO_TESTERS": - return u.u.yBa; - case "AGE_VERIFICATION_REQUIRED": - return u.u.qBa; - case "BLACKLISTED_IP": - return u.u.rBa; - default: - return u.u.HC; - } - } + function b() {} - function g(a, b) { - return new r.nb(a, l(b.code), "BadRequest" === b.code ? "400" : void 0, b.code, void 0, b.display, void 0, b.detail, b.display, b.bladeRunnerCode ? Number(b.bladeRunnerCode) : void 0); - } + function c() {} - function m(a, b) { - return new r.nb(a, b.tb, b.Sc, void 0, b.sq, b.message, b.Nv, b.data); - } + function h() {} - function p(a, b) { - return new r.nb(a, u.u.te, void 0, void 0, void 0, b.message, b.stack, b); - } - Object.defineProperty(c, "__esModule", { + function k() {} + Object.defineProperty(d, "__esModule", { value: !0 }); - r = a(48); - u = a(2); - c.M_a = b; - c.gpb = d; - c.eG = h; - c.Onb = l; - c.Yp = function(a, c) { - return d(c) ? m(a, c) : b(c) ? g(a, c) : h(c) ? p(a, c) : new r.nb(a, void 0, void 0, void 0, void 0, "Recieved an unexpected error type", void 0, c); - }; - c.Pnb = g; - c.Mnb = m; - c.Nnb = p; - c.yE = function(a, b, c) { - var d, g, p; - a = a.Bia; - d = b.oh[c]; - if (void 0 === d) throw { - Ow: !0, - code: "FAIL", - display: "Unable to build the URL for " + c + " because there was no configuration information", - detail: b + a = a(114); + (function(a) { + a[a.cm = 0] = "STANDARD"; + a[a.$s = 1] = "LIMITED"; + a[a.Myb = 2] = "PREVIEW"; + }(f || (f = {}))); + k.bca = "created"; + k.eha = "started"; + k.oha = "succeeded"; + k.rq = "failed"; + k.Rz = "cancelled"; + k.jM = "cancelled_on_create"; + k.SE = "cancelled_on_start"; + k.iM = "cancelled_not_encrypted"; + d.Wd = k; + h.zAb = "uirequest"; + h.Lyb = "prefetch_start"; + h.Jyb = "prefetch_complete"; + h.Kyb = "prefetch_delete"; + h.NLa = "periodic_update"; + (function(a) { + a[a.Xfa = 0] = "PRE_FETCH"; + a[a.Qga = 1] = "QC"; + a[a.cm = 2] = "STANDARD"; + a[a.pha = 3] = "SUPPLEMENTAL"; + a[a.cGa = 4] = "DOWNLOAD"; + }(g = d.nn || (d.nn = {}))); + a = { + manifest: a.Xd.xi.oba, + ldl: a.Xd.xi.jw, + getHeaders: a.Xd.xi.gF, + getMedia: a.Xd.xi.MEDIA + }; + c.SCa = "asl_start"; + c.PCa = "asl_comp"; + c.QCa = "asl_exc"; + c.RCa = "asl_fail"; + c.NOa = "stf_creat"; + c.fIa = "idb_open"; + c.cIa = "idb_block"; + c.mIa = "idb_upgr"; + c.lIa = "idb_succ"; + c.dIa = "idb_error"; + c.eIa = "idb_invalid_state"; + c.hIa = "idb_open_timeout"; + c.jIa = "idb_open_wrkarnd"; + c.kIa = "idb_storelen_exc"; + c.gIa = "idb_open_exc"; + c.iIa = "idb_timeout_invalid_storelen"; + c.ZJa = "msl_load_data"; + c.aKa = "msl_load_no_data"; + c.$Ja = "msl_load_failed"; + d.qj = c; + b.Rwb = f; + b.coa = function(a) { + return ["STANDARD", "LIMITED", "PREVIEW"][a]; + }; + b.Wd = k; + b.RMa = h; + b.nn = g; + b.l0a = function(a) { + return ["PRE_FETCH", "QC", "STANDARD", "SUPPLEMENTAL", "DOWNLOAD"][a]; + }; + b.GF = a; + b.qj = c; + d.fd = b; + }, function(g, d) { + Object.defineProperty(d, "__esModule", { + value: !0 + }); + d.Nh = { + start: "start", + stop: "stop", + hJ: "keepAlive", + resume: "resume", + pause: "pause", + bI: "engage", + splice: "splice" + }; + d.OW = "EventPboCommandFactorySymbol"; + d.uha = "StartEventPboCommandSymbol"; + d.vha = "StopEventPboCommandSymbol"; + d.sea = "KeepAliveEventPboCommandSymbol"; + d.Zfa = "PauseEventPboCommandSymbol"; + d.Zga = "ResumeEventPboCommandSymbol"; + d.sha = "SpliceEventPboCommandSymbol"; + d.dda = "EngageEventPboCommandSymbol"; + }, function(g, d) { + Object.defineProperty(d, "__esModule", { + value: !0 + }); + d.Sj = "PlayerErrorFactorySymbol"; + }, function(g, d) { + Object.defineProperty(d, "__esModule", { + value: !0 + }); + d.jn = "EmeConfigSymbol"; + }, function(g, d) { + Object.defineProperty(d, "__esModule", { + value: !0 + }); + d.yba = "AccountManagerSymbol"; + d.lq = "AccountManagerProviderSymbol"; + }, function(g, d) { + Object.defineProperty(d, "__esModule", { + value: !0 + }); + d.pn = "PlatformSymbol"; + }, function(g, d, a) { + var b; + Object.defineProperty(d, "__esModule", { + value: !0 + }); + b = a(32); + g = function() { + function a(a, b) { + this.key = a; + this.value = b; + } + a.prototype.toString = function() { + return this.key === b.ft ? "named: " + this.value.toString() + " " : "tagged: { key:" + this.key.toString() + ", value: " + this.value + " }"; }; - g = d.version; - if (void 0 === g) throw { - Ow: !0, - code: "FAIL", - display: "Unable to build the URL for " + c + " because there was no version information", - detail: b + return a; + }(); + d.Metadata = g; + }, function(g, d, a) { + var c, h, k; + + function b() { + var a, b; + a = this; + this.vn = {}; + this.JUa = h.ca.get(k.Mga); + this.on = function(b, f, c) { + a.addListener(b, f, c); }; - p = b.Rj && d.serviceNonMember ? d.serviceNonMember : d.service; - if (void 0 === p) throw { - Ow: !0, - code: "FAIL", - display: "Unable to build the URL for " + c + " because there was no service information", - detail: b + this.addListener = function(b, f, c) { + a.vn && (a.vn[b] = a.vn[b] || a.JUa()).add(f, c); }; - d = d.orgOverride; - if (void 0 === d && (d = b.uoa, void 0 === d)) throw { - Ow: !0, - code: "FAIL", - display: "Unable to build the URL for " + c + " because there was no organization information", - detail: b + this.removeListener = function(b, f) { + a.vn && a.vn[b] && a.vn[b].removeAll(f); }; - return a + "/" + d + "/" + p + "/" + g + "/router"; - }; - c.mlb = function() { - return { - "Content-Type": "text/plain" + this.j4 = function(b) { + return a.vn && a.vn[b] ? a.vn[b].p7a() : []; }; - }; - c.xE = function(a, b, c, d, g, p, m) { - return { - version: d.version, - url: b, - id: a, - esn: c, - languages: d.languages, - uiVersion: d.xx, - clientVersion: g.version, - params: p, - echo: m + b = this; + this.Db = function(a, f, d) { + var m; + if (b.vn) { + m = b.j4(a); + for (a = { + gi: 0 + }; a.gi < m.length; a = { + gi: a.gi + }, a.gi++) d ? function(a) { + return function() { + var b; + b = m[a.gi]; + c.hb(function() { + b(f); + }); + }; + }(a)() : m[a.gi].call(this, f); + } }; + } + Object.defineProperty(d, "__esModule", { + value: !0 + }); + c = a(42); + h = a(3); + k = a(425); + b.prototype.bC = function() { + this.vn = void 0; }; - }, function(f, c, a) { - var d, h, l, g, m, p; + d.Pj = b; + }, function(g, d) { + Object.defineProperty(d, "__esModule", { + value: !0 + }); + d.AM = "EventSourceSymbol"; + d.RW = "GlobalEventSourceSymbol"; + d.XE = "DebugEventSourceSymbol"; + }, function(g, d) { + function a(a) { + var b; + b = Error.call(this, "TimeoutError"); + this.message = b.message; + "stack" in b && (this.stack = b.stack); + this.interval = a; + } + Object.defineProperty(d, "__esModule", { + value: !0 + }); + ia(a, Error); + d.sn = a; + d.tA = "PromiseTimerSymbol"; + }, function(g, d, a) { + var c, h, k, f, p, m; function b(a) { return a.reduce(function(a, b) { - return a.concat(b instanceof p.lK ? b.oF : b); + return a.concat(b instanceof m.sN ? b.eI : b); }, []); } - d = a(98); - h = a(411); - l = a(410); - g = a(871); - m = a(409); - p = a(870); - f = function() { + c = a(103); + h = a(459); + k = a(458); + f = a(993); + p = a(457); + m = a(992); + g = function() { function a(a) { this.closed = !1; - this.Ry = this.Xu = this.Vu = null; - a && (this.rp = a); + this.nB = this.ax = this.rm = null; + a && (this.ar = a); } a.prototype.unsubscribe = function() { - var a, c, r, f, k, x; + var a, d, r, g, w, D; a = !1; if (!this.closed) { - r = this.Vu; - f = this.Xu; - k = this.rp; - x = this.Ry; + r = this.rm; + g = this.ax; + w = this.ar; + D = this.nB; this.closed = !0; - this.Ry = this.Xu = this.Vu = null; - for (var y = -1, C = f ? f.length : 0; r;) r.remove(this), r = ++y < C && f[y] || null; - l.wb(k) && (r = g.xsa(k).call(this), r === m.Ns && (a = !0, c = c || (m.Ns.e instanceof p.lK ? b(m.Ns.e.oF) : [m.Ns.e]))); - if (d.isArray(x)) - for (y = -1, C = x.length; ++y < C;) r = x[y], h.Pd(r) && (r = g.xsa(r.unsubscribe).call(r), r === m.Ns && (a = !0, c = c || [], r = m.Ns.e, r instanceof p.lK ? c = c.concat(b(r.oF)) : c.push(r))); - if (a) throw new p.lK(c); + this.nB = this.ax = this.rm = null; + for (var z = -1, l = g ? g.length : 0; r;) r.remove(this), r = ++z < l && g[z] || null; + k.qb(w) && (r = f.ABa(w).call(this), r === p.Eu && (a = !0, d = d || (p.Eu.e instanceof m.sN ? b(p.Eu.e.eI) : [p.Eu.e]))); + if (c.isArray(D)) + for (z = -1, l = D.length; ++z < l;) r = D[z], h.ne(r) && (r = f.ABa(r.unsubscribe).call(r), r === p.Eu && (a = !0, d = d || [], r = p.Eu.e, r instanceof m.sN ? d = d.concat(b(r.eI)) : d.push(r))); + if (a) throw new m.sN(d); } }; a.prototype.add = function(b) { - var c; + var f; if (!b || b === a.EMPTY) return a.EMPTY; if (b === this) return this; - c = b; + f = b; switch (typeof b) { case "function": - c = new a(b); + f = new a(b); case "object": - if (c.closed || "function" !== typeof c.unsubscribe) return c; - if (this.closed) return c.unsubscribe(), c; - "function" !== typeof c.nca && (b = c, c = new a(), c.Ry = [b]); + if (f.closed || "function" !== typeof f.unsubscribe) return f; + if (this.closed) return f.unsubscribe(), f; + "function" !== typeof f.pia && (b = f, f = new a(), f.nB = [b]); break; default: throw Error("unrecognized teardown " + b + " added to Subscription."); - }(this.Ry || (this.Ry = [])).push(c); - c.nca(this); - return c; + }(this.nB || (this.nB = [])).push(f); + f.pia(this); + return f; }; a.prototype.remove = function(a) { var b; - b = this.Ry; + b = this.nB; b && (a = b.indexOf(a), -1 !== a && b.splice(a, 1)); }; - a.prototype.nca = function(a) { - var b, c; - b = this.Vu; - c = this.Xu; - b && b !== a ? c ? -1 === c.indexOf(a) && c.push(a) : this.Xu = [a] : this.Vu = a; + a.prototype.pia = function(a) { + var b, f; + b = this.rm; + f = this.ax; + b && b !== a ? f ? -1 === f.indexOf(a) && f.push(a) : this.ax = [a] : this.rm = a; }; a.EMPTY = function(a) { a.closed = !0; @@ -21902,280 +21392,335 @@ v7AA.H22 = function() { }(new a()); return a; }(); - c.tj = f; - }, function(f) { - f.P = function a(b, d) { - var h; - b.__proto__ && b.__proto__ !== Object.prototype && a(b.__proto__, d); - Object.getOwnPropertyNames(b).forEach(function(a) { - h = Object.getOwnPropertyDescriptor(b, a); - void 0 !== h && Object.defineProperty(d, a, h); - }); - }; - }, function(f, c, a) { - var l; + d.Uj = g; + }, function(g, d) { + function a() {} + + function b() {} + + function c() {} + Object.defineProperty(d, "__esModule", { + value: !0 + }); + c.SW = "playready-h264mpl30-dash"; + c.DM = "playready-h264mpl31-dash"; + c.TW = "playready-h264mpl40-dash"; + c.EHa = "playready-h264hpl30-dash"; + c.FHa = "playready-h264hpl31-dash"; + c.GHa = "playready-h264hpl40-dash"; + c.qX = "hevc-main-L30-dash-cenc"; + c.rX = "hevc-main-L31-dash-cenc"; + c.sX = "hevc-main-L40-dash-cenc"; + c.tX = "hevc-main-L41-dash-cenc"; + c.uX = "hevc-main-L50-dash-cenc"; + c.vX = "hevc-main-L51-dash-cenc"; + c.cX = "hevc-main10-L30-dash-cenc"; + c.fX = "hevc-main10-L31-dash-cenc"; + c.iX = "hevc-main10-L40-dash-cenc"; + c.lX = "hevc-main10-L41-dash-cenc"; + c.hF = "hevc-main10-L50-dash-cenc"; + c.iF = "hevc-main10-L51-dash-cenc"; + c.dX = "hevc-main10-L30-dash-cenc-prk"; + c.gX = "hevc-main10-L31-dash-cenc-prk"; + c.jX = "hevc-main10-L40-dash-cenc-prk"; + c.mX = "hevc-main10-L41-dash-cenc-prk"; + c.eX = "hevc-main10-L30-dash-cenc-prk-do"; + c.hX = "hevc-main10-L31-dash-cenc-prk-do"; + c.kX = "hevc-main10-L40-dash-cenc-prk-do"; + c.nX = "hevc-main10-L41-dash-cenc-prk-do"; + c.oX = "hevc-main10-L50-dash-cenc-prk-do"; + c.pX = "hevc-main10-L51-dash-cenc-prk-do"; + c.iwb = "hevc-main-L30-L31-dash-cenc-tl"; + c.jwb = "hevc-main-L31-L40-dash-cenc-tl"; + c.kwb = "hevc-main-L40-L41-dash-cenc-tl"; + c.lwb = "hevc-main-L50-L51-dash-cenc-tl"; + c.ewb = "hevc-main10-L30-L31-dash-cenc-tl"; + c.fwb = "hevc-main10-L31-L40-dash-cenc-tl"; + c.gwb = "hevc-main10-L40-L41-dash-cenc-tl"; + c.hwb = "hevc-main10-L50-L51-dash-cenc-tl"; + c.vW = "hevc-dv-main10-L30-dash-cenc"; + c.wW = "hevc-dv-main10-L31-dash-cenc"; + c.xW = "hevc-dv-main10-L40-dash-cenc"; + c.yW = "hevc-dv-main10-L41-dash-cenc"; + c.zW = "hevc-dv-main10-L50-dash-cenc"; + c.Dca = "hevc-dv-main10-L51-dash-cenc"; + c.pM = "hevc-dv5-main10-L30-dash-cenc-prk"; + c.qM = "hevc-dv5-main10-L31-dash-cenc-prk"; + c.rM = "hevc-dv5-main10-L40-dash-cenc-prk"; + c.sM = "hevc-dv5-main10-L41-dash-cenc-prk"; + c.tM = "hevc-dv5-main10-L50-dash-cenc-prk"; + c.AW = "hevc-dv5-main10-L51-dash-cenc-prk"; + c.UW = "hevc-hdr-main10-L30-dash-cenc"; + c.VW = "hevc-hdr-main10-L31-dash-cenc"; + c.WW = "hevc-hdr-main10-L40-dash-cenc"; + c.XW = "hevc-hdr-main10-L41-dash-cenc"; + c.YW = "hevc-hdr-main10-L50-dash-cenc"; + c.$W = "hevc-hdr-main10-L51-dash-cenc"; + c.FM = "hevc-hdr-main10-L30-dash-cenc-prk"; + c.GM = "hevc-hdr-main10-L31-dash-cenc-prk"; + c.HM = "hevc-hdr-main10-L40-dash-cenc-prk"; + c.IM = "hevc-hdr-main10-L41-dash-cenc-prk"; + c.ZW = "hevc-hdr-main10-L50-dash-cenc-prk"; + c.aX = "hevc-hdr-main10-L51-dash-cenc-prk"; + c.aia = "vp9-profile0-L21-dash-cenc"; + c.tN = "vp9-profile0-L30-dash-cenc"; + c.uN = "vp9-profile0-L31-dash-cenc"; + c.vN = "vp9-profile0-L40-dash-cenc"; + c.Wha = "vp9-profile2-L30-dash-cenc-prk"; + c.Xha = "vp9-profile2-L31-dash-cenc-prk"; + c.Yha = "vp9-profile2-L40-dash-cenc-prk"; + c.Zha = "vp9-profile2-L50-dash-cenc-prk"; + c.$ha = "vp9-profile2-L51-dash-cenc-prk"; + c.pba = "av1-main-L20-dash-cbcs-prk"; + c.qba = "av1-main-L21-dash-cbcs-prk"; + c.rba = "av1-main-L30-dash-cbcs-prk"; + c.sba = "av1-main-L31-dash-cbcs-prk"; + c.tba = "av1-main-L40-dash-cbcs-prk"; + c.uba = "av1-main-L41-dash-cbcs-prk"; + c.vba = "av1-main-L50-dash-cbcs-prk"; + c.wba = "av1-main-L51-dash-cbcs-prk"; + c.wOa = [c.SW]; + c.LHa = [c.DM, c.TW]; + c.gQa = [c.qX, c.rX, c.sX, c.tX, c.uX, c.vX]; + c.iQa = [c.cX, c.fX, c.iX, c.lX, c.hF, c.iF]; + c.hQa = [c.dX, c.gX, c.jX, c.mX, c.hF, c.iF]; + c.xAb = [c.eX, c.hX, c.kX, c.nX, c.oX, c.pX]; + c.KHa = [c.UW, c.VW, c.WW, c.XW, c.YW, c.$W]; + c.JHa = [c.FM, c.GM, c.HM, c.IM, c.ZW, c.aX]; + c.hGa = [c.vW, c.xW, c.zW, c.wW, c.yW, c.Dca]; + c.gGa = [c.pM, c.rM, c.tM, c.qM, c.sM, c.AW]; + c.Qub = [c.vW, c.wW, c.xW, c.zW, c.yW]; + c.Pub = [c.pM, c.qM, c.rM, c.tM, c.sM]; + c.HAb = [c.tN, c.uN, c.vN]; + c.ot = [c.aia, c.tN, c.uN, c.vN, c.Wha, c.Xha, c.Yha, c.Zha, c.$ha]; + c.WCa = [c.pba, c.qba, c.rba]; + c.VCa = [c.sba, c.tba, c.uba]; + c.XCa = [c.vba, c.wba]; + c.jh = [].concat(c.WCa, c.VCa, c.XCa); + c.DHa = c.wOa.concat(c.LHa); + c.IHa = c.gQa; + c.HHa = c.iQa; + c.$Ca = [].concat(c.DHa, c.IHa, c.HHa, c.hQa, c.KHa, c.JHa, c.hGa, c.gGa, c.ot, c.jh); + d.ba = c; + b.JM = "heaac-2-dash"; + b.nM = "ddplus-2.0-dash"; + b.rW = "ddplus-5.1-dash"; + b.oM = "ddplus-atmos-dash"; + b.bX = "playready-heaac-2-dash"; + b.NHa = "heaac-2-dash-enc"; + b.cFa = "ddplus-2.0-dash-enc"; + b.dFa = "ddplus-5.1-dash-enc"; + b.MHa = "playready-heaac-2-dash-enc"; + b.$Ca = [].concat(b.JM, b.nM, b.rW, b.oM, b.bX, b.NHa, b.cFa, b.dFa, b.MHa); + d.Uk = b; + a.GOa = "simplesdh"; + a.uW = "dfxp-ls-sdh"; + a.iA = "nflx-cmisc"; + a.Kzb = "simplesdh-enc"; + a.Iub = "dfxp-ls-sdh-enc"; + a.XM = "nflx-cmisc-enc"; + d.Vj = a; + }, function(g, d) { + Object.defineProperty(d, "__esModule", { + value: !0 + }); + d.oq = "DeviceFactorySymbol"; + }, function(g, d, a) { + var h; function b(a, b) { - var c, d, g; + var f, c, d; if ("number" !== typeof a || "number" !== typeof b) a = !1; else if (a && b) { - c = Math.abs(a); - for (d = Math.abs(b); d;) { - g = d; - d = c % d; - c = g; + f = Math.abs(a); + for (c = Math.abs(b); c;) { + d = c; + c = f % c; + f = d; } - a = Math.abs(a * b / c); + a = Math.abs(a * b / f); } else a = 0; return a; } - function d(a, b) { - "object" === typeof a ? (this.IW = a.ticks, this.ZD = a.timescale) : (this.IW = a, this.ZD = b); - } - - function h() { - l(!1); + function c() { + h(!1); } - l = a(21); - Object.defineProperties(d.prototype, { - Bf: { + Object.defineProperty(d, "__esModule", { + value: !0 + }); + h = a(14); + g = a(47); + a = function() { + function a(a, b) { + "object" === typeof a ? (this.x_ = a.vd, this.St = a.ha) : (this.x_ = a, this.St = b); + } + a.SGb = function(b) { + return new a(1, b); + }; + a.I7a = function(b) { + return new a(b, 1E3); + }; + a.xaa = function(a, b) { + return Math.floor(1E3 * a / b); + }; + a.Pva = function(a, b) { + return Math.floor(a * b / 1E3); + }; + a.max = function() { + for (var a = [], b = 0; b < arguments.length; b++) a[b] = arguments[b]; + return a.reduce(function(a, b) { + return a.greaterThan(b) ? a : b; + }); + }; + a.min = function() { + for (var a = [], b = 0; b < arguments.length; b++) a[b] = arguments[b]; + return a.reduce(function(a, b) { + return a.lessThan(b) ? a : b; + }); + }; + a.prototype.yo = function(b) { + b /= this.ha; + return new a(Math.floor(this.vd * b), Math.floor(this.ha * b)); + }; + a.prototype.add = function(f) { + var c; + if (this.ha === f.ha) return new a(this.vd + f.vd, this.ha); + c = b(this.ha, f.ha); + return this.yo(c).add(f.yo(c)); + }; + a.prototype.Gd = function(b) { + return this.add(new a(-b.vd, b.ha)); + }; + a.prototype.P7 = function(b) { + return new a(this.vd * b, this.ha); + }; + a.prototype.HQ = function(a) { + var f; + if (this.ha === a.ha) return this.vd / a.vd; + f = b(this.ha, a.ha); + return this.yo(f).HQ(a.yo(f)); + }; + a.prototype.V$a = function(a) { + return b(this.ha, a); + }; + a.prototype.Zkb = function() { + return new a(this.ha, this.vd); + }; + a.prototype.compare = function(a, c) { + var f; + if (this.ha === c.ha) return a(this.vd, c.vd); + f = b(this.ha, c.ha); + return a(this.yo(f).vd, c.yo(f).vd); + }; + a.prototype.equal = function(a) { + return this.compare(function(a, b) { + return a === b; + }, a); + }; + a.prototype.xT = function(a) { + return this.compare(function(a, b) { + return a !== b; + }, a); + }; + a.prototype.lessThan = function(a) { + return this.compare(function(a, b) { + return a < b; + }, a); + }; + a.prototype.greaterThan = function(a) { + return this.compare(function(a, b) { + return a > b; + }, a); + }; + a.prototype.odb = function(a) { + return this.compare(function(a, b) { + return a <= b; + }, a); + }; + a.prototype.QR = function(a) { + return this.compare(function(a, b) { + return a >= b; + }, a); + }; + a.prototype.toJSON = function() { + return { + ticks: this.vd, + timescale: this.ha + }; + }; + a.prototype.toString = function() { + return this.vd + "/" + this.ha; + }; + a.Sf = new a(0, 1); + a.VJ = new a(1, 1E3); + return a; + }(); + d.cc = a; + g.ai(a.prototype, { + vd: { get: function() { - return this.IW; + return this.x_; }, - set: h + set: c }, - jb: { + ha: { get: function() { - return this.ZD; + return this.St; }, - set: h + set: c }, - hh: { + bf: { get: function() { - return 1E3 * this.IW / this.ZD; + return 1E3 * this.x_ / this.St; }, - set: h + set: c } }); - d.u4a = new d(1, 1E3); - d.Iqb = function(a) { - return new d(1, a); - }; - d.aWa = function(a) { - return new d(a, 1E3); - }; - d.ebb = function(a, b) { - return Math.floor(1E3 * a / b); - }; - d.gqb = function(a, b) { - return Math.floor(a * b / 1E3); - }; - d.max = function() { - return Array.prototype.slice.call(arguments).reduce(function(a, b) { - return a.greaterThan(b) ? a : b; - }); - }; - d.min = function() { - return Array.prototype.slice.call(arguments).reduce(function(a, b) { - return a.lessThan(b) ? a : b; - }); - }; - d.prototype.Sq = function(a) { - a /= this.jb; - return new d(this.Bf * a | 0, this.jb * a | 0); - }; - d.prototype.add = function(a) { - var c; - if (this.jb === a.jb) return new d(this.Bf + a.Bf, this.jb); - c = b(this.jb, a.jb); - return this.Sq(c).add(a.Sq(c)); - }; - d.prototype.ie = function(a) { - return this.add(new d(-a.Bf, a.jb)); - }; - d.prototype.O2 = function(a) { - return new d(this.Bf * a, this.jb); - }; - d.prototype.Gz = function(a) { - var c; - if (this.jb === a.jb) return this.Bf / a.Bf; - c = b(this.jb, a.jb); - return this.Sq(c).Gz(a.Sq(c)); - }; - d.prototype.compare = function(a, c) { - var d; - if (this.jb === c.jb) return a(this.Bf, c.Bf); - d = b(this.jb, c.jb); - return a(this.Sq(d).Bf, c.Sq(d).Bf); - }; - d.prototype.equal = function(a) { - return this.compare(function(a, b) { - return a === b; - }, a); - }; - d.prototype.Z2 = function(a) { - return this.compare(function(a, b) { - return a !== b; - }, a); - }; - d.prototype.lessThan = function(a) { - return this.compare(function(a, b) { - return a < b; - }, a); - }; - d.prototype.greaterThan = function(a) { - return this.compare(function(a, b) { - return a > b; - }, a); - }; - d.prototype.gma = function(a) { - return this.compare(function(a, b) { - return a <= b; - }, a); - }; - d.prototype.wka = function(a) { - return this.compare(function(a, b) { - return a >= b; - }, a); - }; - d.prototype.toJSON = function() { - return { - ticks: this.Bf, - timescale: this.jb - }; - }; - d.prototype.toString = function() { - return this.Bf + "/" + this.jb; - }; - f.P = d; - }, function(f, c, a) { - var d, h, l, g; - - function b(a) { - return !!a.pi; - } - Object.defineProperty(c, "__esModule", { + }, function(g, d) { + Object.defineProperty(d, "__esModule", { value: !0 }); - a(6); - d = a(25); - h = a(19); - l = a(5); - g = a(15); - c.bva = function(a, b, d, l, f, z, w, k, x, y) { - var p, m; - p = this; - m = { - Type: d, - Bitrate: f, - DownloadableId: l - }; - h.oa(p, { - track: b, - type: d, - ac: l, - J: f, - je: z, - le: x, - size: w, - EZ: k, - pi: null, - S9a: function(a, b) { - if (g.$a(a) || g.$a(b)) p.width = a, p.height = b, m.Resolution = (p.width || "") + ":" + (p.height || ""); - }, - u9a: function(a, b, c, d) { - g.$a(a) && g.$a(b) && g.$a(c) && g.$a(d) && (p.hSa = a, p.Dha = b, p.Cha = c, p.Bha = d); - }, - RN: y, - Zi: m, - toJSON: function() { - return m; - }, - qpb: function() { - var b, g; - b = !1; - d === c.ar ? g = a.Fl() : d === c.$q && (g = a.gc.value.Db); - 1 !== g.indexOf(this) && (b = !0); - return b; - } - }); - }; - c.$q = "audio"; - c.ar = "video"; - c.nS = "timedtext"; - c.m7 = "trickplay"; - c.meb = function() {}; - c.eva = { - Uga: function(a, c) { - var d; - d = this; - c && (d = d.filter(b)); - return d.reduce(function(b, c) { - return b && l.ru(b.J - a) < l.ru(c.J - a) ? b : c; - }); - }, - Bnb: function(a, c) { - var d; - d = this; - c && (d = d.filter(b)); - return d.reduce(function(b, c) { - return c.J > a && c.J < b.J ? c : b; - }, d[d.length - 1]); - }, - Cnb: function(a, c) { - var d; - d = this; - c && (d = d.filter(b)); - return d.reduce(function(b, c) { - return c.J < a && c.J > b.J ? c : b; - }, d[0]); - }, - ksa: function(a) { - var b; - b = this.map(function(a) { - return a.J; - }); - g.isArray(a) && (b = d.oVa(b, a)); - return b; - } - }; - c.WI = function(a) { - h.oa(a, c.eva); - }; - c.neb = b; - c.cva = function(a) { - return a.map(function(a) { - return a.J; - }); + d.Vf = { + audio: "audio", + video: "video", + vV: "timedtext", + Kaa: "trickplay" }; - c.dva = function(a) { - return d.N6(a.map(function(a) { - return a.height; - })); + }, function(g, d) { + Object.defineProperty(d, "__esModule", { + value: !0 + }); + (function(a) { + a[a.cm = 0] = "STANDARD"; + a[a.$s = 1] = "LIMITED"; + }(d.zi || (d.zi = {}))); + d.fua = function(a) { + return ["STANDARD", "LIMITED"][a]; }; - }, function(f, c, a) { - var b, d, h, l, g, m, p, r; - b = a(76); - d = a(400); - h = a(399); - l = a(411); - g = a(11); - m = a(157); - p = a(853); - r = a(229); - c.Oq = function(a, c, f, w) { + }, function(g, d, a) { + var b, c, h, k, f, p, m, r; + b = a(79); + c = a(448); + h = a(447); + k = a(459); + f = a(10); + p = a(163); + m = a(975); + r = a(238); + d.Cs = function(a, d, g, y) { var u; - u = new p.z9(a, f, w); + u = new m.kea(a, g, y); if (u.closed) return null; - if (c instanceof g.pa) - if (c.hp) u.next(c.value), u.complete(); - else return u.kj = !0, c.subscribe(u); - else if (d.sla(c)) { + if (d instanceof f.ta) + if (d.Oq) u.next(d.value), u.complete(); + else return u.Lj = !0, d.subscribe(u); + else if (c.ota(d)) { a = 0; - for (f = c.length; a < f && !u.closed; a++) u.next(c[a]); + for (g = d.length; a < g && !u.closed; a++) u.next(d[a]); u.closed || u.complete(); } else { - if (h.Ila(c)) return c.then(function(a) { + if (h.Cta(d)) return d.then(function(a) { u.closed || (u.next(a), u.complete()); }, function(a) { return u.error(a); @@ -22184,10 +21729,10 @@ v7AA.H22 = function() { throw a; }); }), u; - if (c && "function" === typeof c[m.iterator]) { - c = c[m.iterator](); + if (d && "function" === typeof d[p.iterator]) { + d = d[p.iterator](); do { - a = c.next(); + a = d.next(); if (a.done) { u.complete(); break; @@ -22195,640 +21740,408 @@ v7AA.H22 = function() { u.next(a.value); if (u.closed) break; } while (1); - } else if (c && "function" === typeof c[r.observable]) - if (c = c[r.observable](), "function" !== typeof c.subscribe) u.error(new TypeError("Provided object does not correctly implement Symbol.observable")); - else return c.subscribe(new p.z9(a, f, w)); - else c = "You provided " + (l.Pd(c) ? "an invalid object" : "'" + c + "'") + " where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.", u.error(new TypeError(c)); + } else if (d && "function" === typeof d[r.observable]) + if (d = d[r.observable](), "function" !== typeof d.subscribe) u.error(new TypeError("Provided object does not correctly implement Symbol.observable")); + else return d.subscribe(new m.kea(a, g, y)); + else d = "You provided " + (k.ne(d) ? "an invalid object" : "'" + d + "'") + " where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.", u.error(new TypeError(d)); } return null; }; - }, function(f, c, a) { + }, function(g, d, a) { var b; b = this && this.__extends || function(a, b) { function c() { this.constructor = a; } - for (var d in b) b.hasOwnProperty(d) && (a[d] = b[d]); + for (var f in b) b.hasOwnProperty(f) && (a[f] = b[f]); a.prototype = null === b ? Object.create(b) : (c.prototype = b.prototype, new c()); }; - f = function(a) { + g = function(a) { function c() { a.apply(this, arguments); } b(c, a); - c.prototype.Ew = function(a, b) { + c.prototype.Qy = function(a, b) { this.destination.next(b); }; - c.prototype.b3 = function(a) { + c.prototype.e8 = function(a) { this.destination.error(a); }; - c.prototype.vi = function() { + c.prototype.bj = function() { this.destination.complete(); }; return c; - }(a(55).zh); - c.So = f; - }, function(f, c, a) { - f = a(162); + }(a(50).Rh); + d.Aq = g; + }, function(g, d, a) { + g = a(169); a = "undefined" !== typeof self && "undefined" !== typeof WorkerGlobalScope && self instanceof WorkerGlobalScope && self; - f = "undefined" !== typeof t && t || "undefined" !== typeof f && f || a; - c.root = f; - if (!f) throw Error("RxJS could not find any global context (window, self, global)"); - }, function(f, c, a) { - Object.defineProperty(c, "__esModule", { + g = "undefined" !== typeof A && A || "undefined" !== typeof g && g || a; + d.root = g; + if (!g) throw Error("RxJS could not find any global context (window, self, global)"); + }, function(g, d) { + Object.defineProperty(d, "__esModule", { value: !0 }); - f = a(70); - c.Nya = f.Nya; - f = a(11); - c.pa = f.pa; - f = a(158); - c.yh = f.yh; - f = a(406); - c.YC = f.YC; - f = a(404); - c.v7 = f.v7; - f = a(860); - c.Hba = f.Hba; - a(856); - a(852); - a(846); - a(844); - a(841); - a(837); - a(834); - a(830); - a(827); - a(825); - a(823); - a(821); - a(818); - a(814); - a(811); - a(810); - a(807); - a(803); - a(800); - a(799); - a(797); - a(795); - a(792); - a(790); - a(789); - a(787); - a(784); - a(781); - a(778); - a(775); - a(774); - f = a(231); - c.jBa = f.jBa; - a = a(70); - c.tj = a.tj; - }, function(f, c) { - Object.defineProperty(c, "__esModule", { - value: !0 - }); - c.am = { + d.gn = { Request: "Request", - LU: "Singleton", - iK: "Transient" - }; - c.Pg = { - w7: "ConstantValue", - x7: "Constructor", - e8: "DynamicValue", - TS: "Factory", + GY: "Singleton", + pN: "Transient" + }; + d.kh = { + mca: "ConstantValue", + nca: "Constructor", + Uca: "DynamicValue", + QW: "Factory", Function: "Function", - ET: "Instance", - Yya: "Invalid", - Raa: "Provider" - }; - c.$o = { - t7: "ClassProperty", - y7: "ConstructorArgument", - ZU: "Variable" - }; - }, function(f, c, a) { - var b, d; - c = a(269); - b = a(268); - d = a(502); - a = a(72); - f.P = { - YT: b.YT, - XT: b.XT, - HJ: d.HJ, - tja: b.tja, - sjb: c.ic.sidx, - X1: d.X1, - Mba: a - }; - }, function(f, c, a) { - var b; - Object.defineProperty(c, "__esModule", { - value: !0 - }); - b = a(15); - c.ll = c.ll || function(a, b, c) { - return a >= b ? a <= c ? a : c : b; + IX: "Instance", + aJa: "Invalid", + Pga: "Provider" }; - c.Uhb = function(a, b, c, g, m) { - return (a - b) * (m - g) / (c - b) + g; - }; - c.kg = function(a) { - if (b.da(a)) return (a / 1E3).toFixed(3); - }; - }, function(f, c, a) { - var b, d, h, l, g, m; - Object.defineProperty(c, "__esModule", { - value: !0 - }); - f = a(18); - b = a(6); - d = a(4); - h = a(2); - l = a(3); - g = a(151); - m = a(557); - t._cad_global || (t._cad_global = {}); - f.Dd(h.v.m9, function(a) { - var p; - p = l.Cc("VideoCache"); - d.config.Vq && d.config.Vq.downloader ? l.Z.get(g.jJ).get() ? l.Z.get(m.OFa).create(d.config.Vq, "VIDEOAPP").then(function(d) { - c.vh = d; - t._cad_global.videoCache = c.vh; - a(b.cb); - })["catch"](function(c) { - p.error("Unable to load video cache", c); - a(b.cb); - }) : (p.warn("downloads unavailable"), a(b.cb)) : a(b.cb); - }); - }, function(f, c) { - Object.defineProperty(c, "__esModule", { - value: !0 - }); - c.wr = { - r1a: "logblob", - Sa: "manifest", - kd: "license", - events: "events" + d.Gq = { + jca: "ClassProperty", + oca: "ConstructorArgument", + SY: "Variable" }; - }, function(f, c) { - Object.defineProperty(c, "__esModule", { - value: !0 - }); - (function(a) { - a[a.hia = 0] = "downloading"; - a[a.ITa = 1] = "downloaded"; - a[a.Nf = 2] = "appended"; - a[a.buffered = 3] = "buffered"; - a[a.dsb = 4] = "removed"; - a[a.ztb = 5] = "unused"; - }(c.R6 || (c.R6 = {}))); - (function(a) { - a[a.waiting = 1] = "waiting"; - a[a.Gqb = 2] = "ondeck"; - a[a.hia = 4] = "downloading"; - a[a.ITa = 8] = "downloaded"; - a[a.ZF = 6] = "inprogress"; - }(c.Q6 || (c.Q6 = {}))); - c.xdb = "AseBufferViewSymbol"; - c.P6 = "AseBufferAccountingSymbol"; - }, function(f, c) { - Object.defineProperty(c, "__esModule", { + }, function(g, d) { + Object.defineProperty(d, "__esModule", { value: !0 }); - c.ou = "LoggerSinksSymbol"; - }, function(f, c) { - Object.defineProperty(c, "__esModule", { + g = d.ResponseType || (d.ResponseType = {}); + g[g.Text = 0] = "Text"; + g[g.OAb = 1] = "Xml"; + g[g.Otb = 2] = "Binary"; + d.pwb = "HttpClientSymbol"; + d.ct = "LegacyHttpSymbol"; + }, function(g, d, a) { + var b, c, h, k, f, p, m, r; + Object.defineProperty(d, "__esModule", { value: !0 }); - c.Wq = "ApplicationStateSymbol"; - }, function(f, c, a) { - var h, l; - - function b(a, b, c, d, l) { - var g, p, r; - g = {}; - p = "number" === typeof l; - l = void 0 !== l && p ? l.toString() : c; - if (p && void 0 !== c) throw Error(h.Fya); - Reflect.m0(a, b) && (g = Reflect.getMetadata(a, b)); - c = g[l]; - if (Array.isArray(c)) - for (var p = 0, m = c; p < m.length; p++) { - r = m[p]; - if (r.key === d.key) throw Error(h.swa + " " + r.key.toString()); - } else c = []; - c.push(d); - g[l] = c; - Reflect.yZ(a, g, b); - } - - function d(a, b) { - return function(c, d) { - b(c, d, a); + b = a(0); + a(14); + c = a(13); + h = a(111); + k = a(74); + g = a(47); + f = a(58); + p = a(154); + m = a(363); + a = a(153); + r = function(a) { + function f(b, f) { + var c; + c = a.call(this, b, f) || this; + c.Wh = f.index; + c.Qw = f.Ib; + c.Hq = f.Nb; + c.K_ = f.oc ? f.oc : b.oc; + c.Tka = f.ro || 0; + c.Uja = !!f.Cp; + c.qTa = f.N7; + c.LQa = f.wh; + c.Jq = !!f.$c; + c.Uw = f.ae; + c.pla = f.Nv; + c.ce = void 0 === f.qI || void 0 === f.G3 || f.qI === f.Ib && f.G3 === f.Nb ? c : new m.$L(c, { + Ib: f.qI, + Nb: f.G3 + }); + c.xh = !1; + return c; + } + b.__extends(f, a); + f.prototype.eAa = function(a) { + this.Tka = a.yo(this.ha).vd; }; - } - Object.defineProperty(c, "__esModule", { - value: !0 - }); - h = a(59); - l = a(40); - c.qx = function(a, c, d, h) { - b(l.Aba, a, c, h, d); - }; - c.fI = function(a, c, d) { - b(l.Bba, a.constructor, c, d); - }; - c.Fs = function(a, b, c) { - "number" === typeof c ? Reflect.Fs([d(c, a)], b) : "string" === typeof c ? Reflect.Fs([a], b, c) : Reflect.Fs([a], b); - }; - }, function(f, c, a) { - var b; - Object.defineProperty(c, "__esModule", { - value: !0 - }); - b = a(16); - c.hAa = function(a) { - var l; - - function d() {} - l = []; - this.Mq = function(a) { - var d; - for (var b = [], c = l.length; c--;) { - d = l[c]; - d.Mq(a) && b.push(d.rF); + f.prototype.g7 = function() { + this.Uja = !0; + }; + f.prototype.SK = function(a) { + this.pla = a; + }; + f.prototype.Ak = function(a, b) { + a ? (this.ce === this && (this.ce = new m.$L(this, this)), b ? a.Jb < this.Iqa && (this.Hq = this.qI + a.Vc * this.Ka.vd, this.Uw = a, this.Jq = !0) : 0 < a.Vc && (this.Qw = this.qI + a.Vc * this.Ka.vd, this.Uw = a, this.Jq = !0)) : this.Jq = !0; + }; + f.prototype.vpa = function() { + var a; + this.Jq && this.Uw ? (a = this.Uw, ++a.Vc, a.Jb += this.stream.Ka.bf) : a = { + Jb: this.H3 + this.stream.Ka.bf, + Vc: 1 + }; + this.Ak(a, !1); + }; + f.prototype.O4a = function() { + var a; + this.Jq && this.Uw ? (a = this.Uw, --a.Vc, a.Jb -= this.stream.Ka.bf) : a = { + Jb: this.Iqa - this.stream.Ka.bf, + Vc: this.Ah / this.stream.Ka.vd - 1 + }; + this.Ak(a, !0); + }; + f.prototype.j7a = function(a) { + var f; + if (!(a < this.U || a >= this.ea) && this.wh && this.wh.length) { + a = new k.cc(a + 1 - this.U, 1E3).HQ(this.stream.Ka); + for (var b = this.wh.length - 1; 0 <= b; --b) { + f = this.wh[b]; + if (f.Vc <= a) return f; + } + return { + Vc: 0, + Jb: this.Sn + }; } - if (b.length) return b; }; - c.r$.forEach(function(b) { - (b = b(a)) && l.push(b); - }); - 0 < l.length && a.addEventListener(b.mg, d); - }; - c.EC = function(a) { - c.r$.push(a); - }; - c.r$ = []; - }, function(f) { - function c(a) { - this.Hf = a; - } - c.prototype = {}; - c.prototype.K9a = function(a) { - this.Hf = a; - }; - c.prototype.dPa = function() { - this.Hf = void 0; - }; - c.prototype.Rz = function(a) { - this.Hf && this.Hf.Iw && this.Hf.Iw(a); - }; - c.prototype.Qz = function(a) { - this.Hf && this.Hf.xt && this.Hf.xt(a); - }; - c.prototype.xF = function(a) { - this.Hf && this.Hf.TG && this.Hf.TG(a); - }; - c.prototype.wF = function(a) { - this.Hf && this.Hf.wi && this.Hf.wi(a); - }; - c.prototype.NN = function(a) { - this.Hf && this.Hf.MA && this.Hf.MA(a); - }; - c.prototype.MN = function(a, b) { - this.Hf && this.Hf.FP && this.Hf.FP(a, b); - }; - c.prototype.Iw = c.prototype.Rz; - c.prototype.xt = c.prototype.Qz; - c.prototype.TG = c.prototype.xF; - c.prototype.wi = c.prototype.wF; - c.prototype.MA = c.prototype.NN; - c.prototype.FP = c.prototype.MN; - f.P = c; - }, function(f, c, a) { - var b, d, h, l, g, m; - Object.defineProperty(c, "__esModule", { - value: !0 - }); - f = a(18); - b = a(4); - d = a(6); - h = a(8); - l = a(2); - g = a(3); - m = a(63); - f.Dd(l.v.DJ, function(a) { - h.ea(b.config); - h.ea(t._cad_global.msl.Le); - g.Z.get(m.gn)().then(function(b) { - c.He = b; - a(d.cb); - })["catch"](function(b) { - a(b); - }); - }); - }, function(f, c, a) { - var b, d, h, l, g, m, p, r; - Object.defineProperty(c, "__esModule", { - value: !0 - }); - b = a(18); - d = a(6); - h = a(4); - f = a(2); - l = a(8); - g = a(3); - m = a(348); - p = a(36); - r = a(5); - b.Dd(f.v.zT, function(a) { - var f, u; - l.ea(h.config); - l.ea(r.mr && r.mr.getDeviceId || r.cU || p.E8); - f = g.Z.get(m.T7); - u = g.Cc("Device"); - b.lG("devs"); - f.create({ - deviceId: h.config.deviceId, - z_: p.E8, - XM: "deviceid", - $d: h.config.$d, - zm: p.Ne.QS, - B8a: p.I7, - userAgent: r.Ug, - G1: h.config.G1, - kTa: p.Ne.F7, - iNa: h.config.aga.e, - jTa: p.Ne.Lva, - AF: h.config.AF, - Aka: h.config.Vq, - R2a: h.config.Jl ? "mslstoretest" : "mslstore" - }).then(function(g) { - c.Bg = g; - t._cad_global || (t._cad_global = {}); - t._cad_global.device = c.Bg; - u.info("Esn source: " + c.Bg.Oz); - b.lG("devdone"); - a(d.cb); - })["catch"](function(b) { - b.K = void 0; - a(b); - }); - }); - }, function(f, c, a) { - var b, d, h; - Object.defineProperty(c, "__esModule", { - value: !0 - }); - b = a(17); - d = a(8); - h = a(32); - c.dD = function(a) { - var p, l, f; - - function c(b) { - f = null; - m(b || a); - } - - function m(a) { - var d, g; - d = b.Ra(); - if (l) { - g = a - (d - p); - 0 >= g ? (a = l, l = null, p = d, a()) : f = f || setTimeout(c.bind(this, a), g); + f.prototype.i7a = function(a) { + var f; + if (!(a < this.U || a >= this.ea) && this.wh && this.wh.length) { + a = new k.cc(a + 1 - this.U, 1E3).HQ(this.stream.Ka); + for (var b = this.wh.length - 1; 0 <= b; --b) { + f = this.wh[b]; + if (f.Vc <= a) return f; + } + return { + Vc: 0, + Jb: this.Sn + }; } - } - d.Es(a); - p = -a; - this.lb = function(a) { - l = a; - f = f || h.Xa(c); }; - this.Ov = function() { - f && clearTimeout(f); - f = null; + f.prototype.mqa = function(a, b) { + var f, c, d; + if (!(a < this.U || a >= this.ea)) { + f = this.Ka.vd; + c = this.Ka.ha; + d = Math.floor(this.Ah / f); + a = Math.min((b ? Math.ceil : Math.floor)((k.cc.Pva(a, c) - this.Ib + (b ? -1 : 1) * (c / 1E3 - 1)) / f), d); + f = k.cc.xaa(this.Ib + a * f, c); + return a === d ? void 0 : { + Vc: a, + Jb: f + }; + } }; - }; - c.tfb = function(a, c) { - var d, g; - d = 0; - this.get = function() { - var p; - p = b.Ra(); - if (!g || p - d > c) d = p, g = a(); - return g; + f.prototype.hR = function(a) { + return this.P === c.G.VIDEO ? this.j7a(a) : this.mqa(a, !1); }; - this.clear = function() { - g = void 0; + f.prototype.g7a = function(a) { + return this.P === c.G.VIDEO ? this.i7a(a) : this.mqa(a, !0); }; - }; - c.Jeb = function(a) { - var b; - d.Es(a); - this.lb = function(c) { - b && this.Ov(); - b = setTimeout(c, a); + f.prototype.e0 = function(a) { + this.Lb += a.Z; + this.Hq = a.Nb; }; - this.Ov = function() { - b && clearTimeout(b); - b = null; + f.prototype.toString = function() { + return "[" + this.Ya + ", " + this.O + "kbit/s, " + ("c:" + this.Kc + "-" + this.Md + ",") + ("p:" + this.$b + "-" + this.Cd + ",d:" + this.duration + "]"); }; - }; - }, function(f, c, a) { - var d, h, l, g, m, p, r, u, v, z, w, k; - - function b(a, b, c, f) { - var x, y; - if (d.config.Usa) return l.Z.get(g.Tx).Bs(b, c, f, a); - f = f || {}; - m.ea(void 0 === f.jssid && void 0 === f.client_utc && void 0 === f.type && void 0 === f.sev && void 0 === f.lver && void 0 === f.xid && void 0 === f.mid && void 0 === f.esn && void 0 === f.snum && void 0 === f.lnum); - f.clver = "6.0011.853.011"; - d.config && d.config.fi && (d.config.fi.os && (f.osplatform = d.config.fi.os.name, f.osver = d.config.fi.os.version), f.browsername = d.config.fi.name, f.browserver = d.config.fi.version); - l.Z.get(p.oj).gG && (f.tester = !0); - d.config.Zn && (f.groupname = d.config.Zn); - d.config.Tq && (f.uigroupname = d.config.Tq); - x = h.On(); - this.timestamp = l.Z.get(r.mj).Eg; - y = l.Z.get(u.eg); - c = { - type: b, - sev: c, - devmod: v.G7 - }; - z.oa(c, f); - z.oa(c, { - jssid: h.ir, - appId: y.id, - appLogSeqNum: y.Xja(), - jsoffms: h.Ra(), - client_utc: x, - lver: v.zAa || "2012.2-CAD" - }); - f = l.Z.get(w.YU); - c.uniqueLogId = f.A_(); - f = "startup" === b ? "playbackxid" : "xid"; - d.config.Kp && (c.groupname = c.groupname ? c.groupname + ("|" + d.config.Kp) : d.config.Kp); - c.uigroupname && (c.groupname = c.groupname ? c.groupname + ("|" + c.uigroupname) : c.uigroupname); - a && (z.oa(c, { - soffms: a.Us(), - mid: a.M, - lvpi: a.nG, - uiLabel: a.Oc || "" - }), c[f] = a.aa, a.rB && (f = a.rB, (a = a.rB.split(".")) && 1 < a.length && "S" !== a[0][0] && (f = "SABTest" + a[0] + ".Cell" + a[1]), c.groupname = c.groupname ? c.groupname + ("|" + f) : f)); - this.data = c; - this.type = b; - } - Object.defineProperty(c, "__esModule", { + f.prototype.toJSON = function() { + var a; + a = p.Xv.prototype.toJSON.call(this); + h({ + index: this.index, + startPts: this.U, + endPts: this.ea, + contentStartPts: this.Kc, + contentEndPts: this.Md, + fragmentStartPts: this.Sn !== this.U ? this.Sn : void 0, + fragmentEndPts: this.Hu !== this.ea ? this.Hu : void 0, + editStreamAccessPoint: this.ae + }, a); + return a; + }; + return f; + }(p.Xv); + d.Tk = r; + g.ai(r.prototype, { + yFb: g.L({ + get: function() { + return !0; + } + }), + U5: g.L({ + get: function() { + return !0; + } + }), + index: g.L({ + get: function() { + return this.Wh; + } + }), + oc: g.L({ + get: function() { + return this.K_; + } + }), + Ib: g.L({ + get: function() { + return this.Qw; + } + }), + Nb: g.L({ + get: function() { + return this.Hq; + } + }), + ro: g.L({ + get: function() { + return this.Tka; + } + }), + Cp: g.L({ + get: function() { + return this.Uja; + } + }), + N7: g.L({ + get: function() { + return this.qTa; + } + }), + wh: g.L({ + get: function() { + return this.LQa; + } + }), + $c: g.L({ + get: function() { + return this.Jq; + } + }), + ae: g.L({ + get: function() { + return this.Uw; + } + }), + Nv: g.L({ + get: function() { + return this.pla; + } + }), + qI: g.L({ + get: function() { + return this.ce.Ib; + } + }), + oEb: g.L({ + get: function() { + return this.ce.Ah; + } + }), + G3: g.L({ + get: function() { + return this.ce.Nb; + } + }), + Kqa: g.L({ + get: function() { + return this.ce.gK; + } + }), + qEb: g.L({ + get: function() { + return this.ce.HD; + } + }), + pEb: g.L({ + get: function() { + return this.ce.ypa; + } + }), + mEb: g.L({ + get: function() { + return this.ce.aoa; + } + }), + lEb: g.L({ + get: function() { + return this.ce.Xna; + } + }), + sEb: g.L({ + get: function() { + return this.ce.WT; + } + }), + rEb: g.L({ + get: function() { + return this.ce.vxa; + } + }), + Sn: g.L({ + get: function() { + return this.ce.$b; + } + }), + Hu: g.L({ + get: function() { + return this.ce.Cd; + } + }), + Jqa: g.L({ + get: function() { + return this.ce.duration; + } + }), + H3: g.L({ + get: function() { + return this.ce.Kc; + } + }), + Iqa: g.L({ + get: function() { + return this.ce.Md; + } + }) + }); + f.Rk(a.aM, r); + }, function(g, d) { + Object.defineProperty(d, "__esModule", { value: !0 }); - d = a(4); - h = a(17); - l = a(3); - g = a(105); - m = a(8); - p = a(47); - r = a(52); - u = a(38); - v = a(36); - z = a(19); - w = a(206); - k = a(138); - c.Zx = b; - b.prototype.WWa = function() { - this.Uca || (this.Uca = k.W1(this.data)); - return this.Uca; - }; - }, function(f, c, a) { - var d, h, l, g; - - function b(a, b, c, d, g, h, f, k, x, y) { - this.platform = a; - this.xc = b; - this.Cg = c; - this.Za = d; - this.config = g; - this.Kk = h; - this.iq = f; - this.errorCode = k; - this.LUa = x; - this.l8a = y; - this.name = l.wr.events; - } - Object.defineProperty(c, "__esModule", { + (function(a) { + a[a.spa = 0] = "downloading"; + a[a.F4a = 1] = "downloaded"; + a[a.xh = 2] = "appended"; + a[a.buffered = 3] = "buffered"; + a[a.SHb = 4] = "removed"; + a[a.WIb = 5] = "unused"; + }(d.Fba || (d.Fba = {}))); + (function(a) { + a[a.waiting = 1] = "waiting"; + a[a.QGb = 2] = "ondeck"; + a[a.spa = 4] = "downloading"; + a[a.F4a = 8] = "downloaded"; + a[a.YI = 6] = "inprogress"; + }(d.Dba || (d.Dba = {}))); + d.otb = "AseBufferViewSymbol"; + d.ZV = "AseBufferAccountingSymbol"; + }, function(g, d) { + Object.defineProperty(d, "__esModule", { value: !0 }); - f = a(1); - d = a(0); - h = a(69); - l = a(82); - g = a(7); - b.prototype.Pf = function(a, b, c) { - var d; - d = this; - return this.Pk(a, b, c.href, this.sM(c)).then(function(a) { - return d.Kk.send(a.context, a.request); - }).then(function() { - return c; - })["catch"](function(a) { - throw h.Yp(d.errorCode, a); - }); - }; - b.prototype.Am = function(a, b, c, d) { - var g; - g = this; - return this.Pk(a, b, c.GF("events").href, this.sM(d)).then(function(a) { - return g.Kk.send(a.context, a.request); - }).then(function(a) { - c.bE(a.result.links); - return d; - })["catch"](function(a) { - throw h.Yp(g.errorCode, a); - }); - }; - b.prototype.Pk = function(a, b, c, d) { - var g, p; - try { - g = h.xE(this.iq.As(), c, this.Cg().$d, this.config, this.platform, d); - p = this.Ip(a, b, g); - return Promise.resolve({ - context: p, - request: g - }); - } catch (w) { - return Promise.reject(w); - } - }; - b.prototype.Ip = function(a, b, c) { - return { - Za: this.Za, - log: a, - $g: this.name, - url: h.yE(this.xc, this.config, this.name), - profile: b, - ex: this.l8a, - timeout: g.ij(59), - xQ: c.url, - headers: { - "Content-Type": "text/plain" - } - }; - }; - b.prototype.sM = function(a) { - return { - event: this.LUa, - xid: a.aa, - position: a.position || 0, - clientTime: a.GE, - sessionStartTime: a.IH, - mediaId: a.Jg, - trackId: a.Ab, - sessionId: a.sessionId, - appId: a.gs, - playTimes: this.aOa(a.po), - sessionParams: a.jf, - mdxControllerEsn: a.r2, - persistentlicense: a.w3, - cachedcontent: a.jY - }; - }; - b.prototype.dY = function(a) { - return { - downloadableId: a.ac, - duration: a.duration - }; - }; - b.prototype.aOa = function(a) { - return { - total: a.total, - audio: a.audio.map(this.dY), - video: a.video.map(this.dY), - text: a.text.map(this.dY) - }; - }; - a = b; - a = f.__decorate([d.N(), f.__param(0, d.Uh()), f.__param(1, d.Uh()), f.__param(2, d.Uh()), f.__param(3, d.Uh()), f.__param(4, d.Uh()), f.__param(5, d.Uh()), f.__param(6, d.Uh()), f.__param(7, d.Uh()), f.__param(8, d.Uh()), f.__param(9, d.Uh())], a); - c.Bi = a; - }, function(f) { - function c(a) { + d.lw = "LoggerSinksSymbol"; + }, function(g, d) { + Object.defineProperty(d, "__esModule", { + value: !0 + }); + d.Ew = "ThrottleFactorySymbol"; + }, function(g) { + function d(a) { this.buffer = a; this.position = 0; } - c.prototype = { + d.prototype = { seek: function(a) { this.position = a; }, skip: function(a) { this.position += a; }, - Oj: function() { + tk: function() { return this.buffer.length - this.position; }, - ef: function() { + Jf: function() { return this.buffer[this.position++]; }, re: function(a) { @@ -22838,333 +22151,834 @@ v7AA.H22 = function() { a = this.buffer; return a.subarray ? a.subarray(b, this.position) : a.slice(b, this.position); }, - qd: function(a) { + Ud: function(a) { for (var b = 0; a--;) b = 256 * b + this.buffer[this.position++]; return b; }, - It: function(a) { + zv: function(a) { for (var b = ""; a--;) b += String.fromCharCode(this.buffer[this.position++]); return b; }, - Q6a: function() { - for (var a = "", b; b = this.ef();) a += String.fromCharCode(b); + Nkb: function() { + for (var a = "", b; b = this.Jf();) a += String.fromCharCode(b); return a; }, xb: function() { - return this.qd(2); + return this.Ud(2); }, - Aa: function() { - return this.qd(4); + Ea: function() { + return this.Ud(4); }, - ff: function() { - return this.qd(8); + Kf: function() { + return this.Ud(8); }, - Gpa: function() { - return this.qd(2) / 256; + fya: function() { + return this.Ud(2) / 256; }, - c4: function() { - return this.qd(4) / 65536; + j9: function() { + return this.Ud(4) / 65536; }, - Xj: function(a) { - for (var b, c = ""; a--;) b = this.ef(), c += "0123456789ABCDEF" [b >>> 4] + "0123456789ABCDEF" [b & 15]; + Lk: function(a) { + for (var b, c = ""; a--;) b = this.Jf(), c += "0123456789ABCDEF" [b >>> 4] + "0123456789ABCDEF" [b & 15]; return c; }, - bB: function() { - return this.Xj(4) + "-" + this.Xj(2) + "-" + this.Xj(2) + "-" + this.Xj(2) + "-" + this.Xj(6); + RD: function() { + return this.Lk(4) + "-" + this.Lk(2) + "-" + this.Lk(2) + "-" + this.Lk(2) + "-" + this.Lk(6); }, - R6a: function(a) { - for (var b = 0, c = 0; c < a; c++) b += this.ef() << (c << 3); + Okb: function(a) { + for (var b = 0, c = 0; c < a; c++) b += this.Jf() << (c << 3); return b; }, - pH: function() { - return this.R6a(4); + uK: function() { + return this.Okb(4); }, - A6: function(a) { + TV: function(a) { + this.SV(a, 2); + }, + Tv: function(a) { + this.SV(a, 4); + }, + hba: function(a) { this.buffer[this.position++] = a; }, - lta: function(a, b) { + SV: function(a, b) { this.position += b; for (var c = 1; c <= b; c++) this.buffer[this.position - c] = a & 255, a = Math.floor(a / 256); }, - adb: function(a) { + Sv: function(a) { + for (var b = 0; b < a.length; b++) this.buffer[this.position++] = a.charCodeAt(b); + }, + gba: function(a) { for (var b = a.length, c = 0; c < b; c++) this.buffer[this.position++] = a[c]; }, - II: function(a, b) { - this.adb(a.re(b)); + UL: function(a, b) { + this.gba(a.re(b)); } }; - f.P = c; - }, function(f, c) { - Object.defineProperty(c, "__esModule", { + g.M = d; + }, function(g, d, a) { + Object.defineProperty(d, "__esModule", { value: !0 }); - c.xr = "TimingApiSymbol"; - }, function(f, c, a) { - var d; + g = a(71); + d.PIa = g.PIa; + g = a(10); + d.ta = g.ta; + g = a(164); + d.Ei = g.Ei; + g = a(454); + d.LF = g.LF; + g = a(452); + d.lca = g.lca; + g = a(982); + d.Jha = g.Jha; + a(978); + a(974); + a(968); + a(966); + a(963); + a(959); + a(956); + a(952); + a(949); + a(947); + a(945); + a(943); + a(940); + a(936); + a(933); + a(932); + a(929); + a(925); + a(922); + a(921); + a(919); + a(917); + a(914); + a(912); + a(911); + a(909); + a(906); + a(903); + a(900); + a(897); + a(896); + g = a(240); + d.vLa = g.vLa; + a = a(71); + d.Uj = a.Uj; + }, function(g, d) { + Object.defineProperty(d, "__esModule", { + value: !0 + }); + d.Ms = "ApiInfoSymbol"; + }, function(g, d, a) { + var c, h; + + function b(a, b, d, m, r) { + a = void 0 === a ? c.I.Sh : a; + return h.Ub.call(this, a, b, d, void 0, void 0, m, h.Ub.ad(r), r) || this; + } + Object.defineProperty(d, "__esModule", { + value: !0 + }); + c = a(2); + h = a(45); + ia(b, h.Ub); + d.hf = b; + }, function(g, d, a) { + var h, k; - function b() {} - Object.defineProperty(c, "__esModule", { + function b(a, b, c, d, k) { + var f, m, r; + f = {}; + m = "number" === typeof k; + k = void 0 !== k && m ? k.toString() : c; + if (m && void 0 !== c) throw Error(h.HIa); + Reflect.b5(a, b) && (f = Reflect.getMetadata(a, b)); + c = f[k]; + if (Array.isArray(c)) + for (var m = 0, p = c; m < p.length; m++) { + r = p[m]; + if (r.key === d.key) throw Error(h.fGa + " " + r.key.toString()); + } else c = []; + c.push(d); + f[k] = c; + Reflect.u2(a, f, b); + } + + function c(a, b) { + return function(f, c) { + b(f, c, a); + }; + } + Object.defineProperty(d, "__esModule", { value: !0 }); - f = a(1); - a = a(0); - b.prototype.format = function(a, b) { - var d; - for (var c = 1; c < arguments.length; ++c); - d = Array.prototype.slice.call(arguments, 1); - return a.replace(/{(\d+)}/g, function(a, b) { - return "undefined" != typeof d[b] ? d[b] : a; - }); - }; - b.prototype.X$a = function(a) { - for (var b = a.length, c = new Uint16Array(b), d = 0; d < b; d++) c[d] = a.charCodeAt(d); - return c.buffer; - }; - b.prototype.uR = function(a) { - return JSON.stringify(a, null, " "); + h = a(54); + k = a(32); + d.Az = function(a, c, d, r) { + b(k.Bha, a, c, r, d); }; - d = b; - d = f.__decorate([a.N()], d); - c.Cu = d; - }, function(f, c, a) { - var b, d, h, l; - b = this && this.__extends || function(a, b) { - function c() { - this.constructor = a; - } - for (var d in b) b.hasOwnProperty(d) && (a[d] = b[d]); - a.prototype = null === b ? Object.create(b) : (c.prototype = b.prototype, new c()); + d.oL = function(a, c, d) { + b(k.Cha, a.constructor, c, d); }; - f = a(11); - d = a(225); - h = a(129); - l = a(112); - a = function(a) { - function c(b, c) { - a.call(this); - this.Jn = b; - (this.ha = c) || 1 !== b.length || (this.hp = !0, this.value = b[0]); - } - b(c, a); - c.create = function(a, b) { - return new c(a, b); - }; - c.of = function() { - var g; - for (var a = [], b = 0; b < arguments.length; b++) a[b - 0] = arguments[b]; - b = a[a.length - 1]; - l.hw(b) ? a.pop() : b = null; - g = a.length; - return 1 < g ? new c(a, b) : 1 === g ? new d.JU(a[0], b) : new h.jC(b); - }; - c.Xa = function(a) { - var b, c, d; - b = a.Jn; - c = a.index; - d = a.Ce; - c >= a.count ? d.complete() : (d.next(b[c]), d.closed || (a.index = c + 1, this.lb(a))); - }; - c.prototype.Ve = function(a) { - var b, d, g; - b = this.Jn; - d = b.length; - g = this.ha; - if (g) return g.lb(c.Xa, 0, { - Jn: b, - index: 0, - count: d, - Ce: a - }); - for (g = 0; g < d && !a.closed; g++) a.next(b[g]); - a.complete(); - }; - return c; - }(f.pa); - c.$t = a; - }, function(f, c) { - c.isArray = Array.isArray || function(a) { - return a && "number" === typeof a.length; + d.vu = function(a, b, d) { + "number" === typeof d ? Reflect.vu([c(d, a)], b) : "string" === typeof d ? Reflect.vu([a], b, d) : Reflect.vu([a], b); }; - }, function(f, c) { - var a; - Object.defineProperty(c, "__esModule", { + }, function(g, d, a) { + var c, h, k; + + function b(a, b, c, d, g) { + b = k.Nj.call(this, a, b, d, h.Tj.events, g, h.Tj.events + "/" + c) || this; + b.context = a; + b.p6a = c; + return b; + } + Object.defineProperty(d, "__esModule", { value: !0 }); - a = 0; - c.id = function() { - return a++; + g = a(0); + c = a(1); + h = a(40); + k = a(92); + a(148); + ia(b, k.Nj); + b.prototype.Cg = function(a, b, c) { + var f, d; + f = this; + d = this.PP(c); + return this.send(a, b, c.href, d).then(function() { + return c; + })["catch"](function(a) { + throw f.pp(a); + }); }; - }, function(f) { - var c; - c = { - UF: function(a) { - for (var b in a) a.hasOwnProperty(b) && (c[b] = a[b]); - } + b.prototype.op = function(a, b, c, d) { + var f, m; + f = this; + m = this.PP(d); + return this.send(a, b, c.v4("events").href, m).then(function(a) { + c.vP(a.result.links); + return d; + })["catch"](function(a) { + throw f.pp(a); + }); }; - f.P = c; - }, function(f, c, a) { - function b(a, b) { - this.Uy = a; - this.wg = Math.floor((a + b - 1) / b); - this.Mb = b; - this.reset(); + b.prototype.PP = function(a) { + return { + event: this.p6a, + xid: a.ka, + position: a.position || 0, + clientTime: a.nH, + sessionStartTime: a.RK, + mediaId: a.Cy, + trackId: a.Tb, + sessionId: a.sessionId, + appId: a.PG, + playTimes: this.mZa(a.dK), + sessionParams: a.ri, + mdxControllerEsn: a.t7 + }; + }; + b.prototype.T0 = function(a) { + return { + downloadableId: a.pd, + duration: a.duration + }; + }; + b.prototype.mZa = function(a) { + return { + total: a.total, + audio: a.audio.map(this.T0), + video: a.video.map(this.T0), + text: a.text.map(this.T0) + }; + }; + a = b; + a = g.__decorate([c.N(), g.__param(0, c.Jg()), g.__param(1, c.Jg()), g.__param(2, c.Jg()), g.__param(3, c.Jg()), g.__param(4, c.Jg())], a); + d.oj = a; + }, function(g, d, a) { + var c, h, k, f; + + function b(a, b, f, c, d, k) { + this.context = a; + this.errorCode = b; + this.smb = f; + this.A9 = d; + this.z9 = k; + this.name = c; } - a(21); - b.prototype.shift = function() { - this.Xb.shift(); - this.Cn.shift(); + Object.defineProperty(d, "__esModule", { + value: !0 + }); + g = a(0); + c = a(1); + h = a(297); + k = a(4); + f = a(45); + b.prototype.send = function(a, b, f, c, d, k, h) { + var m; + m = this; + return this.P8a(a, b, f, c, d, k, h).then(function(a) { + return m.context.p4a.send(a.context, a.request); + }); }; - b.prototype.$G = function(a) { - return this.wga(this.Xb[a], a); + b.prototype.P8a = function(a, b, f, c, d, k, g) { + var m, p; + try { + m = h.kZa(this.context.fy.wH(), f, this.context.Gr().Df, this.context.Sm, this.context.platform, c, d); + p = this.iZa(a, b, k, g); + return Promise.resolve({ + context: p, + request: m + }); + } catch (z) { + return Promise.reject(z); + } }; - b.prototype.update = function(a, b) { - this.Xb[a] = (this.Xb[a] || 0) + b; + b.prototype.iZa = function(a, b, f, c) { + return { + Ab: this.context.Ab, + log: a, + kk: this.name, + url: this.context.Xrb(h.lZa(this.context.mf, this.context.Sm, this.name)), + profile: b, + M9: this.smb, + timeout: k.hh(59), + headers: { + "Content-Type": "text/plain" + }, + z9: this.z9, + A9: void 0 !== f ? f : this.A9, + QYa: c + }; }; - b.prototype.push = function() { - this.Xb.push(0); - this.Cn.push(0); - this.ya += this.Mb; + b.prototype.pp = function(a) { + return a instanceof f.Ub ? a : h.pp(this.errorCode, a); }; - b.prototype.add = function(a, b, c) { - var d, m, p; - if (null === this.ya) - for (d = Math.max(Math.floor((c - b + this.Mb - 1) / this.Mb), 1), this.ya = b; this.Xb.length < d;) this.push(); - for (; this.ya <= c;) this.push(), this.Xb.length > this.wg && this.shift(); - if (null === this.vj || b < this.vj) this.vj = b; - if (b > this.ya - this.Mb) this.update(this.Xb.length - 1, a); - else if (b == c) d = this.Xb.length - Math.max(Math.ceil((this.ya - c) / this.Mb), 1), 0 <= d && this.update(d, a); - else - for (d = 1; d <= this.Xb.length; ++d) { - m = this.ya - d * this.Mb; - p = m + this.Mb; - if (!(m > c)) { - if (p < b) break; - this.update(this.Xb.length - d, Math.round(a * (Math.min(p, c) - Math.max(m, b)) / (c - b))); - } - } - for (; this.Xb.length > this.wg;) this.shift(); + b.prototype.sna = function(a) { + var b; + b = this; + a.forEach(function(a) { + if (b.qS(a)) throw a.error; + }); }; - b.prototype.start = function(a) { - null === this.vj && (this.vj = a); - null === this.ya && (this.ya = a); + b.prototype.qS = function(a) { + return void 0 !== a.error; }; - b.prototype.stop = function(a) { - var b, c; - if (null !== this.ya) - if (a - this.ya > 10 * this.Uy) this.reset(); - else { - for (; this.ya <= a;) this.push(), this.Xb.length > this.wg && this.shift(); - b = this.Xb.length - Math.ceil((this.ya - this.vj) / this.Mb); - 0 > b && (this.vj = this.ya - this.Mb * this.Xb.length, b = 0); - c = this.Xb.length - Math.ceil((this.ya - a) / this.Mb); - if (b === c) this.Cn[b] += a - this.vj; - else if (c > b) - for (this.Cn[b] += (this.ya - this.vj) % this.Mb, this.Cn[c] += this.Mb - (this.ya - a) % this.Mb, a = b + 1; a < c; ++a) this.Cn[a] = this.Mb; - this.vj = null; + a = b; + a = g.__decorate([c.N(), g.__param(0, c.Jg()), g.__param(1, c.Jg()), g.__param(2, c.Jg()), g.__param(3, c.Jg()), g.__param(4, c.Jg()), g.__param(5, c.Jg())], a); + d.Nj = a; + }, function(g, d, a) { + var b, c, h, k, f, p, m, r; + Object.defineProperty(d, "__esModule", { + value: !0 + }); + b = a(19); + c = a(5); + h = a(9); + g = a(2); + k = a(12); + f = a(3); + p = a(338); + m = a(33); + r = a(6); + b.Ge(g.I.FX, function(a) { + var g, u; + k.sa(h.config); + k.sa(r.ht && r.ht.getDeviceId || r.aY || m.qda); + g = f.ca.get(p.Jca); + u = f.zd("Device"); + b.rJ("devs"); + g.create({ + deviceId: h.config.deviceId, + R3: m.qda, + CQ: "deviceid", + Df: h.config.Df, + Im: m.wf.LW, + Nmb: m.zca, + userAgent: r.pj, + I6: h.config.I6, + d4a: m.wf.wca, + rYa: h.config.Gma.e, + c4a: m.wf.AFa, + vI: h.config.vI, + nsa: h.config.rsb, + kgb: h.config.Hm ? "mslstoretest" : "mslstore" + }).then(function(f) { + d.cg = f; + A._cad_global || (A._cad_global = {}); + A._cad_global.device = d.cg; + u.info("Esn source: " + d.cg.rC); + b.rJ("devdone"); + a(c.Bb); + })["catch"](function(b) { + b.S = void 0; + a(b); + }); + }); + }, function(g, d, a) { + var b; + Object.defineProperty(d, "__esModule", { + value: !0 + }); + b = a(16); + d.BKa = function(a) { + var k; + + function c() {} + k = []; + this.zs = function(a) { + var c; + for (var b = [], f = k.length; f--;) { + c = k[f]; + c.zs(a) && b.push(c.iI); } + if (b.length) return b; + }; + d.dfa.forEach(function(b) { + (b = b(a)) && k.push(b); + }); + 0 < k.length && a.addEventListener(b.X.Hh, c); }; - b.prototype.wga = function(a, b) { - b = this.B_(b); - return 0 === b ? null : 8 * a / b; + d.yF = function(a) { + d.dfa.push(a); }; - b.prototype.B_ = function(a) { - var b; - b = this.Cn[a]; - null !== this.vj && (a = this.ya - (this.Xb.length - a - 1) * this.Mb, a > this.vj && (b = a - this.vj <= this.Mb ? b + (a - this.vj) : this.Mb)); - return b; + d.dfa = []; + }, function(g, d, a) { + var b; + Object.defineProperty(d, "__esModule", { + value: !0 + }); + b = a(15); + d.yq = d.yq || function(a, b, d) { + return a >= b ? a <= d ? a : d : b; }; - b.prototype.get = function(a, b) { - var c, d; - c = this.Xb.map(this.wga, this); - if ("last" === a) - for (a = 0; a < c.length; ++a) null === c[a] && (c[a] = 0 < a ? c[a - 1] : 0); - else if ("average" === a) { - b = 1 - Math.pow(.5, 1 / ((b || 2E3) / this.Mb)); - for (a = 0; a < c.length; ++a) null === c[a] ? c[a] = Math.floor(d || 0) : d = void 0 !== d ? b * c[a] + (1 - b) * d : c[a]; + d.Zxb = function(a, b, d, f, p) { + return (a - b) * (p - f) / (d - b) + f; + }; + d.Mg = function(a) { + if (b.ja(a)) return (a / 1E3).toFixed(3); + }; + }, function(g) { + var d; + d = function() { + function a(a) { + this.sg = a; } - return c; + a.prototype.$nb = function(a) { + this.sg = a; + }; + a.prototype.yna = function() { + this.sg = void 0; + }; + a.prototype.Yx = function(a) { + this.sg && this.sg.Ty && this.sg.Ty(a); + }; + a.prototype.Xx = function(a) { + this.sg && this.sg.mv && this.sg.mv(a); + }; + a.prototype.wC = function(a) { + this.sg && this.sg.WJ && this.sg.WJ(a); + }; + a.prototype.Gu = function(a) { + this.sg && this.sg.li && this.sg.li(a); + }; + a.prototype.sR = function(a) { + this.sg && this.sg.zD && this.sg.zD(a); + }; + a.prototype.rR = function(a, c) { + this.sg && this.sg.ET && this.sg.ET(a, c); + }; + return a; + }(); + d.prototype.Ty = d.prototype.Yx; + d.prototype.mv = d.prototype.Xx; + d.prototype.WJ = d.prototype.wC; + d.prototype.li = d.prototype.Gu; + d.prototype.zD = d.prototype.sR; + d.prototype.ET = d.prototype.rR; + g.M = d; + }, function(g, d, a) { + var c, h, k, f, p, m, r, u, x, v, y, w; + + function b(a, b, d, g) { + var w, D; + if (c.config.eCa) return k.ca.get(f.eA).ru(b, d, g, a); + g = g || {}; + p.sa(void 0 === g.jssid && void 0 === g.client_utc && void 0 === g.type && void 0 === g.sev && void 0 === g.lver && void 0 === g.xid && void 0 === g.mid && void 0 === g.esn && void 0 === g.snum && void 0 === g.lnum); + g.clver = "6.0015.328.011"; + c.config && c.config.Si && (c.config.Si.os && (g.osplatform = c.config.Si.os.name, g.osver = c.config.Si.os.version), g.browsername = c.config.Si.name, g.browserver = c.config.Si.version); + k.ca.get(m.$l).zS && (g.tester = !0); + c.config.xp && (g.groupname = c.config.xp); + c.config.Ks && (g.uigroupname = c.config.Ks); + w = h.Ex(); + this.timestamp = k.ca.get(r.yi).eg; + D = k.ca.get(u.Ue); + d = { + type: b, + sev: d, + devmod: x.xca + }; + v.La(d, g); + v.La(d, { + jssid: h.oF, + appId: D.id, + appLogSeqNum: D.Bra(), + jsoffms: h.yc(), + client_utc: w, + lver: x.jJa || "2012.2-CAD" + }); + g = k.ca.get(y.RY); + d.uniqueLogId = g.S3(); + g = "startup" === b ? "playbackxid" : "xid"; + c.config.xr && (d.groupname = d.groupname ? d.groupname + ("|" + c.config.xr) : c.config.xr); + d.uigroupname && (d.groupname = d.groupname ? d.groupname + ("|" + d.uigroupname) : d.uigroupname); + a && (v.La(d, { + soffms: a.by(), + mid: a.R, + lvpi: a.tJ, + uiLabel: a.uc || "" + }), d[g] = a.ka, a.Cv && (g = a.Cv, (a = a.Cv.split(".")) && 1 < a.length && "S" !== a[0][0] && (g = "SABTest" + a[0] + ".Cell" + a[1]), d.groupname = d.groupname ? d.groupname + ("|" + g) : g)); + this.data = d; + this.type = b; + } + Object.defineProperty(d, "__esModule", { + value: !0 + }); + c = a(9); + h = a(21); + k = a(3); + f = a(112); + p = a(12); + m = a(52); + r = a(37); + u = a(24); + x = a(33); + v = a(18); + y = a(210); + w = a(155); + d.fA = b; + b.prototype.D8a = function() { + this.Uia || (this.Uia = w.b7(this.data)); + return this.Uia; + }; + }, function(g, d, a) { + var c; + + function b() {} + Object.defineProperty(d, "__esModule", { + value: !0 + }); + g = a(0); + a = a(1); + b.prototype.format = function(a, b) { + var c; + for (var f = 1; f < arguments.length; ++f); + c = Array.prototype.slice.call(arguments, 1); + return a.replace(/{(\d+)}/g, function(a, b) { + return "undefined" != typeof c[b] ? c[b] : a; + }); }; - b.prototype.reset = function() { - this.Xb = []; - this.Cn = []; - this.vj = this.ya = null; + b.prototype.vpb = function(a) { + for (var b = a.length, f = new Uint16Array(b), c = 0; c < b; c++) f[c] = a.charCodeAt(c); + return f.buffer; }; - b.prototype.setInterval = function(a) { - this.wg = Math.floor((a + this.Mb - 1) / this.Mb); + b.prototype.lV = function(a) { + return JSON.stringify(a, null, " "); }; - f.P = b; - }, function(f, c, a) { - var b, d, h, l, g, m, p, r, u, v; - Object.defineProperty(c, "__esModule", { + c = b; + c = g.__decorate([a.N()], c); + d.Dw = c; + }, function(g, d) { + Object.defineProperty(d, "__esModule", { value: !0 }); - f = a(18); - b = a(189); - d = a(290); - h = a(4); - l = a(6); - g = a(2); - m = a(8); - p = a(3); - r = a(19); - u = a(109); - v = a(27); - c.ti = {}; - t._cad_global || (t._cad_global = {}); - t._cad_global.controlProtocol = c.ti; - f.Dd(g.v.d9, function(a) { - var g, f, u; - m.ea(h.config); - m.ea(b.JG); - g = p.Cc("Nccp"); - f = h.config.Dg; - m.ea(f); - u = p.Z.get(v.lf); - g.info("Creating EDGE instance", { - Endpoint: u.endpoint + f.Gna, - Path: f.nia - }); - r.oa(c.ti, new d.NAa(g)); - a(l.cb); - }); - c.jqb = p.Z.get(u.nJ); - c.Mna = "resume"; - c.Nna = "suspend"; - c.uq = "interval"; - c.iqb = "1"; - c.kqb = "2"; - c.lqb = "3"; - c.hqb = "4"; - }, function(f, c, a) { - var b; - Object.defineProperty(c, "__esModule", { + d.Iw = "Utf8EncoderSymbol"; + }, function(g, d) { + Object.defineProperty(d, "__esModule", { value: !0 }); - b = a(14); - c.my = function(a, c) { - var d; - b.oa(this, { - Sn: function() { - d || (d = setTimeout(c, a)); - }, - Og: function() { - d && (clearTimeout(d), d = void 0); - } - }); + d.$v = "Base16EncoderSymbol"; + }, function(g, d) { + Object.defineProperty(d, "__esModule", { + value: !0 + }); + d.uw = "MslSymbol"; + }, function(g, d, a) { + var b, c, h, k; + b = this && this.__extends || function(a, b) { + function f() { + this.constructor = a; + } + for (var c in b) b.hasOwnProperty(c) && (a[c] = b[c]); + a.prototype = null === b ? Object.create(b) : (f.prototype = b.prototype, new f()); + }; + g = a(10); + c = a(234); + h = a(134); + k = a(120); + a = function(a) { + function f(b, f) { + a.call(this); + this.Dn = b; + (this.ia = f) || 1 !== b.length || (this.Oq = !0, this.value = b[0]); + } + b(f, a); + f.create = function(a, b) { + return new f(a, b); + }; + f.of = function() { + var d; + for (var a = [], b = 0; b < arguments.length; b++) a[b - 0] = arguments[b]; + b = a[a.length - 1]; + k.my(b) ? a.pop() : b = null; + d = a.length; + return 1 < d ? new f(a, b) : 1 === d ? new c.EY(a[0], b) : new h.cF(b); + }; + f.hb = function(a) { + var b, f, c; + b = a.Dn; + f = a.index; + c = a.ff; + f >= a.count ? c.complete() : (c.next(b[f]), c.closed || (a.index = f + 1, this.nb(a))); + }; + f.prototype.zf = function(a) { + var b, c, d; + b = this.Dn; + c = b.length; + d = this.ia; + if (d) return d.nb(f.hb, 0, { + Dn: b, + index: 0, + count: c, + ff: a + }); + for (d = 0; d < c && !a.closed; d++) a.next(b[d]); + a.complete(); + }; + return f; + }(g.ta); + d.Vv = a; + }, function(g, d) { + d.isArray = Array.isArray || function(a) { + return a && "number" === typeof a.length; + }; + }, function(g, d) { + var a; + Object.defineProperty(d, "__esModule", { + value: !0 + }); + a = 0; + d.id = function() { + return a++; }; - }, function(f, c) { - Object.defineProperty(c, "__esModule", { + }, function(g, d, a) { + var b, c, h, k, f, p; + Object.defineProperty(d, "__esModule", { value: !0 }); - c.laa = "PboLinksManagerSymbol"; - c.ey = "PboLinksManagerFactorySymbol"; - }, function(f, c) { - Object.defineProperty(c, "__esModule", { + g = a(19); + b = a(9); + c = a(5); + h = a(12); + k = a(2); + f = a(3); + p = a(65); + g.Ge(k.I.QM, function(a) { + h.sa(b.config); + h.sa(A._cad_global.msl.rf); + f.ca.get(p.lq)().then(function(b) { + d.xg = b; + a(c.Bb); + })["catch"](function(b) { + a(b); + }); + }); + }, function(g, d) { + Object.defineProperty(d, "__esModule", { + value: !0 + }); + g = d.Zs || (d.Zs = {}); + g[g.Mtb = 8] = "Backspace"; + g[g.Tab = 9] = "Tab"; + g[g.xvb = 13] = "Enter"; + g[g.cAb = 16] = "Shift"; + g[g.Aub = 17] = "Ctrl"; + g[g.jtb = 18] = "Alt"; + g[g.Syb = 19] = "PauseBreak"; + g[g.qub = 20] = "CapsLock"; + g[g.Dvb = 27] = "Escape"; + g[g.eAb = 32] = "Space"; + g[g.Ryb = 33] = "PageUp"; + g[g.Qyb = 34] = "PageDown"; + g[g.wvb = 35] = "End"; + g[g.nwb = 36] = "Home"; + g[g.Swb = 37] = "LeftArrow"; + g[g.CAb = 38] = "UpArrow"; + g[g.pzb = 39] = "RightArrow"; + g[g.$ub = 40] = "DownArrow"; + g[g.Jwb = 45] = "Insert"; + g[g.Tub = 46] = "Delete"; + g[g.RAb = 48] = "Zero"; + g[g.pyb = 49] = "One"; + g[g.vAb = 50] = "Two"; + g[g.rAb = 51] = "Three"; + g[g.Yvb = 52] = "Four"; + g[g.Wvb = 53] = "Five"; + g[g.dAb = 54] = "Six"; + g[g.bAb = 55] = "Seven"; + g[g.vvb = 56] = "Eight"; + g[g.Vxb = 57] = "Nine"; + g[g.dtb = 65] = "A"; + g[g.ptb = 66] = "B"; + g[g.hub = 67] = "C"; + g[g.bFa = 68] = "D"; + g[g.E = 69] = "E"; + g[g.Evb = 70] = "F"; + g[g.Zvb = 71] = "G"; + g[g.bwb = 72] = "H"; + g[g.VHa = 73] = "I"; + g[g.Lwb = 74] = "J"; + g[g.KX = 75] = "K"; + g[g.eJa = 76] = "L"; + g[g.Wwb = 77] = "M"; + g[g.TKa = 78] = "N"; + g[g.jyb = 79] = "O"; + g[g.syb = 80] = "P"; + g[g.Q = 81] = "Q"; + g[g.jzb = 82] = "R"; + g[g.uOa = 83] = "S"; + g[g.BPa = 84] = "T"; + g[g.wAb = 85] = "U"; + g[g.DAb = 86] = "V"; + g[g.JAb = 87] = "W"; + g[g.LAb = 88] = "X"; + g[g.PAb = 89] = "Y"; + g[g.QAb = 90] = "Z"; + g[g.Twb = 91] = "LeftWindowKey"; + g[g.qzb = 92] = "RightWindowKey"; + g[g.$zb = 93] = "SelectKey"; + g[g.$xb = 96] = "Numpad0"; + g[g.ayb = 97] = "Numpad1"; + g[g.byb = 98] = "Numpad2"; + g[g.cyb = 99] = "Numpad3"; + g[g.dyb = 100] = "Numpad4"; + g[g.eyb = 101] = "Numpad5"; + g[g.fyb = 102] = "Numpad6"; + g[g.gyb = 103] = "Numpad7"; + g[g.hyb = 104] = "Numpad8"; + g[g.iyb = 105] = "Numpad9"; + g[g.txb = 106] = "Multiply"; + g[g.itb = 107] = "Add"; + g[g.kAb = 109] = "Subtract"; + g[g.Sub = 110] = "DecimalPoint"; + g[g.Zub = 111] = "Divide"; + g[g.Fvb = 112] = "F1"; + g[g.Jvb = 113] = "F2"; + g[g.Kvb = 114] = "F3"; + g[g.Lvb = 115] = "F4"; + g[g.Mvb = 116] = "F5"; + g[g.Nvb = 117] = "F6"; + g[g.Ovb = 118] = "F7"; + g[g.Pvb = 119] = "F8"; + g[g.Qvb = 120] = "F9"; + g[g.Gvb = 121] = "F10"; + g[g.Hvb = 122] = "F11"; + g[g.Ivb = 123] = "F12"; + g[g.Xxb = 144] = "NumLock"; + g[g.Yzb = 145] = "ScrollLock"; + g[g.aAb = 186] = "SemiColon"; + g[g.zvb = 187] = "Equals"; + g[g.wub = 188] = "Comma"; + g[g.Rub = 189] = "Dash"; + g[g.Wyb = 190] = "Period"; + g[g.Xvb = 191] = "ForwardSlash"; + g[g.sAb = 192] = "Tilde"; + g[g.qyb = 219] = "OpenBracket"; + g[g.Ltb = 220] = "BackSlash"; + g[g.uub = 221] = "CloseBracket"; + g[g.izb = 222] = "Quote"; + }, function(g, d) { + Object.defineProperty(d, "__esModule", { + value: !0 + }); + d.hga = "PboLinksManagerSymbol"; + d.rA = "PboLinksManagerFactorySymbol"; + }, function(g, d) { + Object.defineProperty(d, "__esModule", { + value: !0 + }); + d.qA = "PboConfigSymbol"; + }, function(g, d, a) { + var f, p; + + function b(a) { + return a instanceof ArrayBuffer || "[object ArrayBuffer]" === Object.prototype.toString.call(a); + } + + function c(a) { + return f.bd(a); + } + + function h(a) { + return f.ja(a); + } + + function k(a) { + return !b(a) && !c(a) && !h(a) && !Array.isArray(a) && f.ne(a); + } + f = a(11); + p = { + cw: 0, + kN: 1, + eLa: 2, + OBJECT: 3, + Sh: 4 + }; + g.M = { + U4: function(a) { + return b(a) ? p.cw : c(a) ? p.kN : h(a) ? p.eLa : k(a) ? p.OBJECT : p.Sh; + }, + oS: b, + bd: c, + ja: h, + ne: k, + am: p + }; + }, function(g) { + var d; + d = { + SI: function(a) { + for (var b in a) a.hasOwnProperty(b) && (d[b] = a[b]); + } + }; + g.M = d; + }, function(g) { + g.M = function a(b, c) { + var h; + b.__proto__ && b.__proto__ !== Object.prototype && a(b.__proto__, c); + Object.getOwnPropertyNames(b).forEach(function(a) { + h = Object.getOwnPropertyDescriptor(b, a); + void 0 !== h && Object.defineProperty(c, a, h); + }); + }; + }, function(g, d) { + Object.defineProperty(d, "__esModule", { value: !0 }); - c.Tx = "LogMessageFactorySymbol"; - }, function(f, c) { - Object.defineProperty(c, "__esModule", { + d.eA = "LogMessageFactorySymbol"; + }, function(g, d, a) { + var b; + b = a(157); + g.M = function(a) { + return function k(f) { + return 0 === arguments.length || b(f) ? k : a.apply(this, arguments); + }; + }; + }, function(g, d) { + Object.defineProperty(d, "__esModule", { value: !0 }); (function(a) { @@ -23172,1839 +22986,765 @@ v7AA.H22 = function() { function c() {} - function h() {} - h.Cua = "cache_start"; - h.Dua = "cache_success"; - h.zua = "cache_abort"; - h.Bua = "cache_fail"; - h.Aua = "cache_evict"; - h.ABa = "pb_request"; - h.yEa = "start_playback"; - a.gu = h; - c.H6 = "auth"; - c.mu = "ldl"; - c.oC = "hdr"; + function d() {} + d.aEa = "cache_start"; + d.bEa = "cache_success"; + d.YDa = "cache_abort"; + d.$Da = "cache_fail"; + d.ZDa = "cache_evict"; + d.MLa = "pb_request"; + d.LOa = "start_playback"; + a.fw = d; + c.oba = "auth"; + c.jw = "ldl"; + c.gF = "hdr"; c.MEDIA = "media"; - a.Wh = c; - b.SI = "cached"; + a.xi = c; + b.hM = "cached"; b.LOADING = "loading"; - b.ifb = "expired"; - a.KI = b; - }(c.vd || (c.vd = {}))); - c.Maa = "PrefetchEventsFactorySymbol"; - }, function(f, c) { - Object.defineProperty(c, "__esModule", { + b.XGa = "expired"; + a.XL = b; + }(d.Xd || (d.Xd = {}))); + d.Kga = "PrefetchEventsFactorySymbol"; + }, function(g, d) { + Object.defineProperty(d, "__esModule", { + value: !0 + }); + d.zA = "SourceBufferTypeProviderSymbol"; + }, function(g, d) { + Object.defineProperty(d, "__esModule", { + value: !0 + }); + d.Gw = "TimeoutMonitorFactorySymbol"; + }, function(g, d) { + Object.defineProperty(d, "__esModule", { + value: !0 + }); + d.Hw = "TimingApiSymbol"; + }, function(g, d) { + Object.defineProperty(d, "__esModule", { value: !0 }); - c.ky = "SourceBufferTypeProviderSymbol"; - }, function(f, c) { + d.Aha = "SystemRandomSymbol"; + d.KF = "RandomGeneratorSymbol"; + }, function(g, d) { + Object.defineProperty(d, "__esModule", { + value: !0 + }); + d.dA = "IdProviderSymbol"; + }, function(g, d) { + d.my = function(a) { + return a && "function" === typeof a.nb; + }; + }, function(g, d) { + Object.defineProperty(d, "__esModule", { + value: !0 + }); + d.qw = "MediaKeySystemAccessServicesSymbol"; + }, function(g, d) { + Object.defineProperty(d, "__esModule", { + value: !0 + }); + d.Pca = "DrmServicesSymbol"; + d.wM = "DrmServicesProviderSymbol"; + }, function(g, d) { var b; function a() {} - Object.defineProperty(c, "__esModule", { + Object.defineProperty(d, "__esModule", { value: !0 }); b = /^\S+$/; - a.prototype.ah = function(a) { + a.prototype.tl = function(a) { return void 0 !== a; }; - a.prototype.uf = function(a) { + a.prototype.Zg = function(a) { return null !== a && void 0 !== a; }; - a.prototype.ov = function(b) { - return a.Jfa(b); + a.prototype.ux = function(b) { + return a.hma(b); }; - a.prototype.$L = function(b) { - return !(!b || !a.Jfa(b)); + a.prototype.pP = function(b) { + return !(!b || !a.hma(b)); }; - a.prototype.Gn = function(a) { + a.prototype.Zt = function(a) { return Array.isArray(a); }; - a.prototype.Kfa = function(a) { + a.prototype.ima = function(a) { return !(!a || a.constructor != Uint8Array); }; - a.prototype.ye = function(b, c, l) { - return a.ofa(b, c, l); + a.prototype.Af = function(b, d, k) { + return a.Dla(b, d, k); + }; + a.prototype.N_ = function(b) { + return a.N_(b); }; - a.prototype.rX = function(b, c, l) { - return a.eM(b, c, l) && 0 === b % 1; + a.prototype.g0 = function(b, d, k) { + return a.xP(b, d, k) && 0 === b % 1; }; - a.prototype.Hn = function(b, c, l) { - return a.eM(b, c || 0, l); + a.prototype.ap = function(b, d, k) { + return a.xP(b, d || 0, k); }; - a.prototype.Xy = function(b) { - return a.eM(b, 1); + a.prototype.uB = function(b) { + return a.xP(b, 1); }; - a.prototype.pLa = function(b) { - return a.eM(b, 0, 255); + a.prototype.AWa = function(b) { + return a.xP(b, 0, 255); }; - a.prototype.qLa = function(a) { + a.prototype.BWa = function(a) { return a === +a && (0 === a || a !== (a | 0)) && !0 && !0; }; - a.prototype.Lfa = function(a) { + a.prototype.jma = function(a) { return !(!a || !b.test(a)); }; - a.prototype.Xg = function(b) { - return a.pfa(b); + a.prototype.uh = function(b) { + return a.Ela(b); }; - a.prototype.Eh = function(b) { - return !(!a.pfa(b) || !b); + a.prototype.Oi = function(b) { + return !(!a.Ela(b) || !b); }; - a.prototype.Vy = function(a) { + a.prototype.tB = function(a) { return !0 === a || !1 === a; }; - a.prototype.Wy = function(a) { + a.prototype.JG = function(a) { return "function" == typeof a; }; - a.pfa = function(a) { + a.Ela = function(a) { return "string" == typeof a; }; - a.ofa = function(a, b, c) { - return "number" == typeof a && !isNaN(a) && isFinite(a) && (void 0 === b || a >= b) && (void 0 === c || a <= c); + a.Dla = function(a, b, d) { + return "number" == typeof a && !isNaN(a) && isFinite(a) && (void 0 === b || a >= b) && (void 0 === d || a <= d); }; - a.eM = function(b, c, l) { - return a.ofa(b, c, l) && 0 === b % 1; + a.N_ = function(a) { + return "number" == typeof a && isNaN(a); }; - a.Jfa = function(a) { - return "object" == typeof a; + a.xP = function(b, d, k) { + return a.Dla(b, d, k) && 0 === b % 1; }; - c.nn = new a(); - }, function(f, c) { - Object.defineProperty(c, "__esModule", { - value: !0 - }); - c.nJ = "EventSourceSymbol"; - c.CS = "DebugEventSourceSymbol"; - }, function(f, c) { - Object.defineProperty(c, "__esModule", { - value: !0 - }); - c.zba = "SystemRandomSymbol"; - c.XC = "RandomGeneratorSymbol"; - }, function(f, c) { - Object.defineProperty(c, "__esModule", { - value: !0 - }); - c.Wx = "MslSymbol"; - }, function(f, c) { - c.hw = function(a) { - return a && "function" === typeof a.lb; + a.hma = function(a) { + return "object" == typeof a; }; - }, function(f, c, a) { - var d, h; - - function b(a, b, c, p, r) { - a = void 0 === a ? d.v.Vg : a; - return h.nb.call(this, a, b, c, void 0, void 0, p, h.nb.yc(r), r) || this; - } - Object.defineProperty(c, "__esModule", { - value: !0 - }); - d = a(2); - h = a(48); - oa(b, h.nb); - c.mf = b; - }, function(f, c) { - Object.defineProperty(c, "__esModule", { - value: !0 - }); - c.Y7 = "DrmServicesSymbol"; - c.kJ = "DrmServicesProviderSymbol"; - }, function(f, c, a) { - var d, h, l, g, m, p, r, u, v, z, w, k, x, y, C, F, N, T, ca; - - function b() { - var a; - a = v.Z.get(T.Oe); - return a.oh.events && a.oh.events.active ? v.Z.get(ca.VJ)()["catch"](function(a) { - v.log.error("Unable to initialize the playdata services", a); - throw a; - }).then(function(a) { - return a.send(Infinity); - })["catch"](function(a) { - v.log.error("Unable to send deferred playdata", a); - }) : v.Z.get(k.DU)().then(function(a) { - return a.send(Infinity); - }); - } - Object.defineProperty(c, "__esModule", { - value: !0 - }); - d = a(18); - h = a(81); - l = a(183); - g = a(51); - m = a(165); - p = a(241); - r = a(4); - u = a(16); - v = a(3); - z = a(198); - w = a(38); - k = a(201); - x = a(2); - y = a(39); - C = a(151); - F = a(205); - N = a(14); - T = a(23); - ca = a(121); - c.TFa = function() { - var f, k; + d.tq = new a(); + }, function(g, d, a) { + var c, h, k, f, p, m, r, u, x, v, y, w, D, z, l, P; - function a(a) { - v.Z.get(y.uC).data = a; - } - f = this; - k = v.Z.get(z.uU); - f.createPlayer = function(a, b) { - var c, d, g, h; - b && (N.Pd(b) ? (c = b, d = b.uiLabel || "", g = b.manifest) : c = { - Zf: b - }); - h = v.Z.get(w.eg).oe(); - a = new m.PFa(a, c, d, g, h); - c = b.clipStart; - b = b.clipDuration; - return 0 < c || 0 < b ? p.ARa(a, c, b) : a; - }; - f.closeAllPlayers = function(a) { - u.xaa(function() { - a && a(); - }); - }; - f.init = function(a) { - d.kG(function(d) { - d.K ? r.config.RQ ? b().then(function() { - return l.gDa(); + function b(a) { + var d; + d = this; + this.createPlayer = function(a, b) { + var f, c; + b = void 0 === b ? {} : b; + b = "number" === typeof b ? { + Qf: b + } : b; + f = b.manifest; + if (f && f.runtime) f.clientGenesis = f.clientGenesis || w.oH(), f = p.ca.get(y.RX).decode(f); + else if (f) { + c = p.ca.get(P.rA)(); + c.Ila(f); + f.sy = c; + } + a = p.ca.get(z.Hga).u2a(a); + return p.ca.get(D.uY).create(a, b, f).pCa; + }; + this.createPlaylistPlayer = function(a, b, f) { + var c; + c = p.ca.get(l.Gga); + return p.ca.get(D.uY).create(c.Xqb(a), b, f).pCa; + }; + this.closeAllPlayers = function(a) { + f.vga(void 0 === a ? function() {} : a); + }; + this.init = function(a) { + a = void 0 === a ? function() {} : a; + c.qJ(function(f) { + f.S ? (k.config.KU ? d.mnb().then(function() { + h.uNa(); })["catch"](function(a) { - v.log.error("Unable to initialize the playdata services", a); - }).then(function() { - N.oa(f, c.Fu); - a && a(N.oa({ + p.log.error("Unable to initialize the playdata services", a); + }) : Promise.resolve()).then(function() { + Object.assign(d, b.TG); + a(Object.assign({ success: !0 - }, c.Fu)); - }) : (N.oa(f, c.Fu), a && a(N.oa({ - success: !0 - }, c.Fu))) : a && a({ + }, b.TG)); + }) : a({ success: !1, - error: g.yu(d.errorCode || x.v.U8, d) + error: p.ww(f.errorCode || r.I.Gda, f) }); }); }; - f.applyConfig = function(b) { - a(b); - r.gha(b); + this.applyConfig = function(a) { + d.QBa(a); + k.Sna(a); }; - f.prepare = function(a, b) { - var c, d; - c = k.Xha(a); - try { - d = []; - c.forEach(function(a, b) { - c.filter(function(c, d) { - return d > b && c.M == a.M; - })[0] || d.push(a); - }); - r.config.Rm && t._cad_global.videoPreparer && t._cad_global.videoPreparer.Dt(d, b); - } catch (da) { - v.log.warn("Prepare call failed", da); + this.prepare = function(a, b) { + var f; + a = d.Q8.cpa(a) || []; + f = new Set(); + a = a.filter(function(a) { + var b; + b = f.has(a.R); + f.add(a.R); + return !b; + }); + if (k.config.Kl && A._cad_global.videoPreparer) try { + A._cad_global.videoPreparer.xv(a, b); + } catch (U) { + p.log.warn("Prepare call failed", U); } }; - f.predownload = function(a, b) { - var c; - try { - c = k.Xha(a); - c && r.config.Bx && t._cad_global.videoPreparer && t._cad_global.videoPreparer.S5a(c, b); - } catch (S) { - v.log.warn("Predownload call failed", S); + this.predownload = function(a, b) { + if ((a = d.Q8.cpa(a)) && k.config.Nz && A._cad_global.videoPreparer) try { + A._cad_global.videoPreparer.Hjb(a, b); + } catch (Y) { + p.log.warn("Predownload call failed", Y); } }; - f.lookupPredownloaded = function() { - return r.config.Bx && t._cad_global.videoPreparer ? t._cad_global.videoPreparer.nw() : Promise.resolve([]); + this.lookupPredownloaded = function() { + return k.config.Nz && A._cad_global.videoPreparer ? A._cad_global.videoPreparer.vy() : Promise.resolve([]); }; - f.ppmUpdate = function(a) { - "undefined" !== typeof t._cad_global.playerPredictionModel ? ((a = k.eTa(a)) && t._cad_global.playerPredictionModel.update(a), t._cad_global.prefetchEvents && t._cad_global.prefetchEvents.update(a)) : v.log.error("ppmUpdate called but there is no ppmModel"); + this.ppmUpdate = function(a) { + A._cad_global.playerPredictionModel ? ((a = d.Q8.Z3a(a)) && A._cad_global.playerPredictionModel.update(a), A._cad_global.prefetchEvents && A._cad_global.prefetchEvents.update(a)) : p.log.error("ppmUpdate called but there is no ppmModel"); }; - f.canFulfillUIIntent = function(a, b, c) { - if (r.config.Rm && t._cad_global.videoPreparer) return t._cad_global.videoPreparer.mY(a, b, c); - c(!1); + this.canFulfillUIIntent = function(a, b, f) { + if (k.config.Kl && A._cad_global.videoPreparer) return A._cad_global.videoPreparer.b1(a, b, f); + f(!1); }; - f.supportsHdr = function(a) { + this.supportsHdr = function(a) { var b; try { - b = v.Sz().aI(); + b = p.zC().hL(); a(b); - } catch (D) { + } catch (Y) { a(!1); } }; - f.supportsUltraHd = function(a) { - v.Sz().bI().then(function(b) { - a(b); - })["catch"](function() { - a(!1); + this.supportsUltraHd = function(a) { + p.zC().jL().then(a)["catch"](function() { + return a(!1); }); }; - f.supportsDolbyAtmos = function(a) { + this.supportsDolbyAtmos = function(a) { var b; try { - b = v.Sz().YH(); + b = p.zC().eL(); a(b); - } catch (D) { + } catch (Y) { a(!1); } }; - f.supportsDolbyVision = function(a) { + this.supportsDolbyVision = function(a) { var b; try { - b = v.Sz().ZH(); + b = p.zC().fL(); a(b); - } catch (D) { + } catch (Y) { a(!1); } }; - f.videoCache = function() { - if (v.Z.get(C.jJ).get()) return h.vh; - }; - f.close = function() {}; - f.deviceThroughput = function() { + this.close = function() {}; + this.deviceThroughput = function() { var a; - a = v.Z.get(F.OJ).ZY(); - return a ? Promise.resolve(a.Nl()) : Promise.resolve(void 0); + a = p.ca.get(x.aN).P1(); + return a ? Promise.resolve(a.Tn()) : Promise.resolve(void 0); }; - f.deviceThroughputNiqr = function() { + this.deviceThroughputNiqr = function() { var a; - a = v.Z.get(F.OJ).ZY(); - return a ? Promise.resolve(a.$Xa()) : Promise.resolve(void 0); + a = p.ca.get(x.aN).P1(); + return a ? Promise.resolve(a.Q9a()) : Promise.resolve(void 0); }; - f.isSeamlessEnabled = function() { - return r.config.oUa; + this.isSeamlessEnabled = function() { + return k.config.t5a; }; - a(arguments[0]); - r.wPa(arguments); - v.Sz().bI(); - }; - c.Fu = {}; - }, function(f, c, a) { - var g, m; - - function b(a) { - return a instanceof ArrayBuffer || "[object ArrayBuffer]" === Object.prototype.toString.call(a); - } - - function d(a) { - return g.oc(a); - } - - function h(a) { - return g.da(a); + this.Q8 = p.ca.get(m.rY); + this.QBa(a); + k.Z_a([a]); + p.zC().jL(); } - - function l(a) { - return !b(a) && !d(a) && !h(a) && !Array.isArray(a) && g.Pd(a); - } - g = a(10); - m = { - cu: 0, - eK: 1, - LAa: 2, - OBJECT: 3, - Vg: 4 - }; - f.P = { - i0: function(a) { - return b(a) ? m.cu : d(a) ? m.eK : h(a) ? m.LAa : l(a) ? m.OBJECT : m.Vg; - }, - A_a: b, - oc: d, - da: h, - Pd: l, - kl: m - }; - }, function(f, c, a) { - var d, h; - - function b(a, b, c, d) { - h.call(this, c); - this.location = a.location || b.location; - this.Ec = a.Wb || b.Wb; - this.e5 = a.e5 || b.e5; - this.pk = !1; - this.V = d; - } - a(10); - a(31); - d = a(13); - c = a(9); - h = a(88); - new c.Console("ASEJS", "media|asejs"); - b.prototype = Object.create(h.prototype); - b.prototype.toJSON = function() { - return this.toString(); - }; - b.prototype.Xc = function(a, b) { - this.ph = a; - this.yf = b; - this.oX = !1; - this.V = b; - }; - b.prototype.SD = function() { - var a; - a = { - type: "logdata", - target: "endplay", - fields: {} - }; - a.fields[this.O === d.G.AUDIO ? "audioedit" : "videoedit"] = { - type: "array", - value: { - pts: this.Ad === this.X ? this.mi : this.Ad, - offset: this.Ad === this.X ? this.fa - this.mi : this.X - this.Ad - } - }; - this.ph && this.ph.emit(a.type, a); - }; - b.prototype.yL = function(a) { - this.ph.H.qH && (this.nja = !0, this.pia = a); + Object.defineProperty(d, "__esModule", { + value: !0 + }); + c = a(19); + h = a(178); + k = a(9); + f = a(41); + p = a(3); + m = a(181); + r = a(2); + u = a(26); + x = a(186); + v = a(127); + y = a(158); + w = a(21); + D = a(261); + z = a(257); + l = a(256); + P = a(107); + b.prototype.QBa = function(a) { + p.ca.get(u.SM).data = a; + }; + b.prototype.mnb = function() { + return p.ca.get(v.eN)()["catch"](function(a) { + p.log.error("Unable to initialize the playdata services", a); + throw a; + }).then(function(a) { + return a.send(Infinity); + })["catch"](function(a) { + p.log.error("Unable to send deferred playdata", a); + }); }; - f.P = b; - }, function(f, c, a) { - var b, d, h, l, g, m, p, r, u, v, z, k, G; - Object.defineProperty(c, "__esModule", { + b.TG = {}; + d.wN = b; + }, function(g, d, a) { + var b, c, h, k, f, p, m, r, u, x, v, y, w, D; + Object.defineProperty(d, "__esModule", { value: !0 }); - f = a(18); - b = a(135); - d = a(533); - h = a(134); - l = a(4); - g = a(6); - m = a(141); - p = a(281); - r = a(17); - u = a(2); + b = a(60); + g = a(19); + c = a(176); + h = a(558); + k = a(140); + f = a(9); + p = a(5); + m = a(144); + r = a(280); + u = a(21); + x = a(2); v = a(3); - z = a(205); - k = a(5); - G = a(120); - f.Dd(u.v.V8, function(f) { - var u, x, w, N, T, ca, n; - u = v.Z.get(z.OJ).ZY(); - x = v.Z.get(m.V7).Lx; - w = {}; - w.Qw = v.UN("ASE"); - w.FMa = v.UN("JS-ASE", void 0, "Platform"); - w.Cc = v.UN; - w.storage = G.storage; - w.Rp = G.Rp; - w.aYa = k.fJ; - w.getTime = r.Ra; - w.sA = {}; - w.Pa = b.Pa; - w.Wo = d.Wo; - w.Lx = x; - w.MediaSource = p.fAa; - w.SourceBuffer = h.o$; - w.Xnb = function() {}; - x = new Promise(function(a) { - G.storage.load("nh", function(b) { - w.sA.nh = b.K ? b.data : void 0; + y = a(186); + w = a(6); + D = a(126); + g.Ge(x.I.Hda, function(g) { + var x, z, l, n, q, O, Y; + x = v.ca.get(y.aN).P1(); + z = v.ca.get(m.Mca).Uz; + l = {}; + l.Zy = v.yR("ASE"); + l.QXa = v.yR("JS-ASE", void 0, "Platform"); + l.zd = v.yR; + l.storage = D.storage; + l.Hr = D.Hr; + l.R9a = w.uM; + l.getTime = u.yc; + l.cD = {}; + l.Eb = c.Eb; + l.Eq = h.Eq; + l.Uz = z; + l.MediaSource = r.zKa; + l.SourceBuffer = k.afa; + l.IEb = function() {}; + z = new Promise(function(a) { + D.storage.load("nh", function(b) { + l.cD.nh = b.S ? b.data : void 0; a(); }); }); - N = new Promise(function(a) { - G.storage.load("lh", function(b) { - w.sA.lh = b.K ? b.data : void 0; + n = new Promise(function(a) { + D.storage.load("lh", function(b) { + l.cD.lh = b.S ? b.data : void 0; a(); }); }); - T = new Promise(function(a) { - G.storage.load("gh", function(b) { - w.sA.gh = b.K ? b.data : void 0; + q = new Promise(function(a) { + D.storage.load("gh", function(b) { + l.cD.gh = b.S ? b.data : void 0; a(); }); }); - ca = new Promise(function(a) { - G.storage.load("sth", function(b) { - w.sA.sth = b.K ? b.data : void 0; + O = new Promise(function(a) { + D.storage.load("sth", function(b) { + l.cD.sth = b.S ? b.data : void 0; a(); }); }); - n = new Promise(function(a) { - G.storage.load("vb", function(b) { - w.sA.vb = b.K ? b.data : void 0; + Y = new Promise(function(a) { + D.storage.load("vb", function(b) { + l.cD.vb = b.S ? b.data : void 0; a(); }); }); - Promise.all([x, N, n, ca, T]).then(function() { - var b, d; - b = a(531)(w); - d = a(528); - c.Dj = a(256); - c.Dj.declare(d.Lv); - c.Dj.declare({ - Bx: ["useMediaCache", !1], - Ez: ["diskCacheSizeLimit", 0], - omb: ["dailyDiskCacheWriteLimit", 0], - nP: ["mediaCachePrefetchMs", 8E3], - s2: ["mediaCachePartitionConfig", {}] - }); - c.Dj.set(a(137)(l.config), !0, v.UN("ASE")); - b = d.G1a(b); - c.Oi = new b(c.Dj, u); - c.Oi.Xc(l.config.AX, l.config.DX, { - Qw: w.Qw - }, l.config.sQ); - f(g.cb); + Promise.all([z, n, Y, O, q]).then(function() { + var c; + c = a(556)(l); + d.fk = a(279); + d.fk.declare(b.wu); + d.fk.declare({ + Nz: ["useMediaCache", !1], + aC: ["diskCacheSizeLimit", 0], + UCb: ["dailyDiskCacheWriteLimit", 0], + $S: ["mediaCachePrefetchMs", 8E3], + u7: ["mediaCachePartitionConfig", {}] + }); + d.fk.set(a(149)(f.config), !0, v.yR("ASE")); + c = b.xeb(c); + d.gk = new c(d.fk, x); + d.gk.Ac(f.config.t0, f.config.v0, { + Zy: l.Zy + }, f.config.sU); + g(p.Bb); })["catch"](function(a) { - w.Qw.error("Exception loading location history from local storage", a); + l.Zy.error("Exception loading location history from local storage", a); }); }); - }, function(f, c, a) { - var g, m, p, r, u, v, z, w, k, x, y, C, F, N, T, ca, n, q, B, ja, V, D, S, da, X, U, ha, ba, ea, ia, ka, ua, la, A; - - function b(a) { - switch (a) { - case D.u.Ox: - return "http"; - case D.u.rC: - return "connectiontimeout"; - case D.u.ku: - return "readtimeout"; - case D.u.tT: - return "corruptcontent"; - case D.u.No: - return "abort"; - case D.u.sC: - case D.u.xT: - return "unknown"; - } - } - - function d(b, d, g, p) { - var m, r, f, v, y; - "undefined" !== typeof nrdp && nrdp.device && nrdp.device.deviceModel && (b.devmod = nrdp.device.deviceModel); - d.DM && (b.pbcrid = d.DM); - d.ge && (b.playbackoffline = d.ge, b.oxid = d.n3, b.offlinenetworkstatus = d.goa); - p & c.jg && (ca.ea(!b || void 0 === b.moff), 0 <= d.pc.value && (b.moff = n.MC(d.pc.value))); - if (p & c.$x) { - m = a(13); - r = d.Ya[m.G.VIDEO].value; - m = d.Ya[m.G.AUDIO].value; - f = d.Et.value; - v = d.Tl.value; - r && (b.cdnid = r.id, b.cdnname = r.name); - m && (b.acdnid = m.id, b.acdnname = m.name); - f && (b.adlid = f.stream.ac, b.abitrate = f.stream.J); - v && (b.vdlid = v.stream.ac, b.vbitrate = v.stream.J, b.vheight = v.stream.height, b.vwidth = v.stream.width); - } - p & c.Me && (d.bb && (b.abuflbytes = d.FX(), b.abuflmsec = d.sv(), b.vbuflbytes = d.q6(), b.vbuflmsec = d.Ex()), (r = d.Sk && d.Sk.$Wa && d.Sk.$Wa()) && (b.curdlstatename = r)); - if (p & c.NJ) { - l(b); - try { - y = d.Xf.getBoundingClientRect(); - b.rendersize = y.width + "x" + y.height; - b.renderpos = y.left + "x" + y.top; - } catch (Ba) {} - } - p & c.nr && (y = ba.Tg.hardwareConcurrency, 0 <= y && (b.numcores = y), 0 <= d.VY && (b.cpuspeed = d.VY), (y = d.fN && d.fN.BWa()) && (b.droppedFrames = JSON.stringify(y)), y = d.fN && d.fN.U_(u.config.UTa), n.Kb(y, function(a, c) { - b["droppedFramesP" + a] = JSON.stringify(c); - })); - if (p & c.MJ) try { - b.pricdnid = d.mpa.id; - b.cdninfo = JSON.stringify(d.Ej.map(function(a) { - return { - id: a.id, - nm: a.name, - rk: a.Fd, - wt: a.location.weight, - lv: a.location.level - }; - })); - } catch (Ba) {} - g && p & c.gU && (ca.ea(d.Gg), (g = d.Gg) ? h(b, g) : b.errorcode = D.v.Vg, b.errorcode === B.lJ + D.v.V$ && (b.lastSyncWithVideoElement = x.Ra() - d.Vra)); - } - - function h(a, c) { - ca.ea(c.errorCode); - a.errorcode = B.lJ + (c.errorCode || D.v.Vg); - c.R && (a.errorsubcode = c.R); - c.ub && (a.errorextcode = c.ub); - c.Wv && (a.erroredgecode = c.Wv); - c.za && (a.errordetails = c.za); - c.Fg && (a.httperr = c.Fg); - c.AP && (a.aseneterr = c.AP); - c.ji && (a.errordata = c.ji); - c.xG && (a.mediaerrormessage = c.xG); - if (c.ub === D.hu.iua || c.ub === D.hu.dua || c.ub === D.hu.gua || c.ub === D.hu.hua || c.ub === D.hu.fua || c.ub === D.hu.eua) a.nccperr = c.ub; - (c = b(c.R)) && (a.nwerr = c); - } - - function l(a) { - a.screensize = ba.dm.width + "x" + ba.dm.height; - a.screenavailsize = ba.dm.availWidth + "x" + ba.dm.availHeight; - a.clientsize = t.innerWidth + "x" + t.innerHeight; - } - Object.defineProperty(c, "__esModule", { + }, function(g, d, a) { + var b, c, h, k, f, p; + Object.defineProperty(d, "__esModule", { value: !0 }); - g = a(188); - m = a(28); + g = a(19); + b = a(9); + c = a(5); + h = a(291); + k = a(2); + f = a(290); p = a(288); - r = a(6); - u = a(4); - v = a(92); - z = a(16); - w = a(25); - k = a(73); - x = a(17); - y = a(3); - C = a(216); - F = a(369); - N = a(65); - T = a(211); - ca = a(8); - n = a(19); - q = a(7); - B = a(36); - ja = a(58); - V = a(26); - D = a(2); - S = a(14); - da = a(42); - X = a(349); - U = a(287); - ha = a(537); - ba = a(5); - ea = a(32); - ia = a(46); - ka = a(15); - ua = a(362); - la = a(536); - A = a(212); - c.PAa = function(h) { - var wb, Fa, Ga, Da, Ma, Ia, Na, Ua, Oa, Wa, Qa, Xa, ab, Va, cb, Za, ib, eb, $a, fb, kb, lb, qb, jb, sb, tb, rb, xb, bb, yb, ob, pb; - - function l(a, b, c, g, p) { - d(g, h, b, c); - a = new v.Zx(h, a, p || (b ? "error" : "info"), g); - t._cad_global.logBatcher.Vl(a); + d.storage = d.storage || void 0; + d.Hr = d.Hr || void 0; + g.Ge(k.I.Uda, function(a) { + var m; + switch (b.config.iV) { + case "idb": + m = f.kpb; + break; + case "none": + m = h.mpb; + break; + case "ls": + m = p.lpb; } - - function f(a) { - var b, d, v, C, X, F, G, N, T, U, ca, ha, Z, D, O, ea, ia, S, da, ua, Ba, ta, Ya, Ra; - b = {}; - try { - b = { - browserua: ba.Ug, - browserhref: location.href, - playdelaysdk: n.kk(h.xOa()), - applicationPlaydelay: n.kk(h.rOa()), - playdelay: n.kk(h.wOa()), - trackid: h.Zf, - connection_type: "parallel" === u.config.CPa ? "multi" : "single", - bookmark: n.kk(h.rm || 0), - pbnum: h.index, - endianness: w.mXa() - }; - u.config.sUa && (b.transitiontime = h.ux, b.uiplaystarttime = h.Pb.KR, b.playbackrequestedat = h.SA.qa(q.Ma), b.clockgettime = x.Ra(), b.clockgetpreciseepoch = x.AM(), b.clockgetpreciseappepoch = x.Sga(), b.absolutestarttime = h.TN(), b.relativetime = h.Us()); - Aa(b, "startplay"); - } catch (Kb) { - wb.error("error in startplay log fields", Kb); - } - h.vv && (b.blocked = h.vv); - u.config.endpoint || (b.configendpoint = "error"); - h.Dc && (b.playbackcontextid = h.Dc); - h.CM && (b.controllerESN = h.CM); - if (u.config.XR && h.Pb.v6) { - for (var p = {}, m = Object.keys(h.Pb.v6), r, f = m.length; f--;) r = m[f], p[r.toLowerCase()] = h.Pb.v6[r]; - b.vui = p; - } - ka.da(h.lga) && (b.bookmarkact = n.kk(h.lga)); - (p = Ga.wWa()) && (b.nccpat = p); - (p = Ga.OXa() || h.XO && h.XO.qa(q.Ma)) && (b.nccplt = p); - (p = tf()) && (b.downloadables = p); - t._cad_global.device && ka.$a(t._cad_global.device.Oz) && (b.esnSource = t._cad_global.device.Oz); - B.Yh && n.oa(b, B.Yh, { - prefix: "pi_" - }); - u.config.hN && (b.congested = g.Ev && g.Ev.BF() && g.Ev.BF().isCongested); - (p = ba.Tg && ba.Tg.connection && ba.Tg.connection.type) && (b.nettype = p); - h.gla && (b.initSelReason = h.gla); - h.fA && (b.initvbitrate = h.fA); - h.tfa && (b.actualbw = h.tfa); - h.Mt && (b.selector = h.Mt); - b.fullDlreports = h.tia; - b.hasasereport = h.Kj; - b.hashindsight = h.Lk; - h.Rka && (b.histdiscbw = h.Rka); - h.fla && (b.initseldiscbw = h.fla); - void 0 !== h.bG && (b.isConserv = h.bG); - void 0 !== h.Pn && (b.ccs = h.Pn); - h.JO && (b.isLowEnd = h.JO); - if (p = h.IZa) b.histtdmax = ka.da(p.max) ? Number(p.max).toFixed(2) : void 0, b.histtdp90 = ka.da(p.XG) ? Number(p.XG).toFixed(2) : void 0, b.histtdp75 = ka.da(p.kh) ? Number(p.kh).toFixed(2) : void 0, b.histtdp50 = ka.da(p.Tf) ? Number(p.Tf).toFixed(2) : void 0, b.histtdp25 = ka.da(p.jh) ? Number(p.jh).toFixed(2) : void 0, b.histtdp10 = ka.da(p.WG) ? Number(p.WG).toFixed(2) : void 0, b.histtdmin = ka.da(p.min) ? Number(p.min).toFixed(2) : void 0; - h.rE && (b.bcreason = h.rE); - if (h.state.value >= z.lk) try { - v = h.Fl(); - if (v) { - C = k.cva(v); - kb = w.N6(C); - lb = k.dva(v); - d = 0 < v.length ? la.R1a(v, function(a) { - return a.J; - }) : void 0; - b.maxbitrate = kb; - b.maxresheight = lb; + m(function(b) { + b.S ? (d.storage = b.storage, d.Hr = b.Hr, a(c.Bb)) : a(b); + }); + }); + }, function(g, d) { + Object.defineProperty(d, "__esModule", { + value: !0 + }); + d.nga = "PboPlaydataServicesSymbol"; + d.eN = "PboPlaydataServicesProviderSymbol"; + }, function(g, d, a) { + var b, c; + Object.defineProperty(d, "__esModule", { + value: !0 + }); + b = a(18); + c = a(12); + d.wi = "$attributes"; + d.UV = "$children"; + d.VV = "$name"; + d.jq = "$text"; + d.xCa = "$parent"; + d.PE = "$sibling"; + d.dHb = /^\s*\<\?xml.*\?\>/i; + d.M8a = function(a, b, f) { + for (var c = 2; c < arguments.length; ++c); + for (c = 1; + (b = arguments[c++]) && (a = a[b]);); + return a; + }; + d.$Gb = function(a, k) { + var f; + a ? f = b.Bd(a[d.jq]) : void 0 !== k && (f = k); + c.qQ(f); + return f; + }; + d.vib = function(a) { + var b; + a && (b = a[d.jq]); + c.S2a(b); + return b; + }; + d.gGb = function(a, b) { + var f; + f = {}; + f[d.wi] = a; + f[d.jq] = b; + return f; + }; + }, function(g, d, a) { + var b, c; + Object.defineProperty(d, "__esModule", { + value: !0 + }); + b = a(0); + c = a(13); + g = function(a) { + function d(b, c, d, r) { + d = a.call(this, d) || this; + d.hVa = b.Ya; + d.location = b.location || c.location; + d.cd = b.Pb || c.Pb; + d.s$ = b.s$ || c.s$; + d.W = r; + return d; + } + b.__extends(d, a); + d.prototype.Ac = function(a, b) { + this.te = a; + this.cf = b; + this.d0 = !1; + this.W = b; + }; + d.prototype.KO = function(a) { + var b, f, d; + b = { + type: "logdata", + target: "endplay", + fields: {} + }; + f = this.P === c.G.AUDIO ? "audioedit" : "videoedit"; + d = [this.Sn === this.U ? this.Md : this.Kc, this.Sn === this.U ? -this.duration : this.duration]; + a && a.Xp && d.push(a.Xp); + b.fields[f] = { + type: "array", + value: d + }; + this.te && this.te.emit(b.type, b); + }; + d.prototype.CO = function(a) { + this.te.K.vK && (this.Lqa = !0, this.Epa = a); + }; + d.prototype.Mrb = function(a, b) { + var f, c; + if (this.complete) return 0; + f = this.hVa; + c = a[f]; + return c ? c.url ? this.url === c.url || (b(this, c.location, c.Pb), this.pV(c.url)) ? 0 : (this.W.fa("swapUrl failed: ", this.cR), 3) : (this.W.fa("updateurl, missing url for streamId:", f, "mediaRequest:", this, "stream:", c), 2) : (this.W.fa("updateUrl, missing stream for streamId:", f, "mediaRequest:", this, "streamMap:", a), 1); + }; + return d; + }(a(96)); + d.Wv = g; + }, function(g, d, a) { + function b(a, b) { + this.rB = a; + this.Vg = Math.floor((a + b - 1) / b); + this.dc = b; + this.reset(); + } + a(14); + b.prototype.shift = function() { + this.wc.shift(); + this.Xo.shift(); + }; + b.prototype.ED = function(a) { + return this.ina(this.wc[a], a); + }; + b.prototype.update = function(a, b) { + this.wc[a] = (this.wc[a] || 0) + b; + }; + b.prototype.push = function() { + this.wc.push(0); + this.Xo.push(0); + this.Da += this.dc; + }; + b.prototype.add = function(a, b, d) { + var f, c, m; + if (null === this.Da) + for (f = Math.max(Math.floor((d - b + this.dc - 1) / this.dc), 1), this.Da = b; this.wc.length < f;) this.push(); + for (; this.Da <= d;) this.push(), this.wc.length > this.Vg && this.shift(); + if (null === this.Wj || b < this.Wj) this.Wj = b; + if (b > this.Da - this.dc) this.update(this.wc.length - 1, a); + else if (b == d) f = this.wc.length - Math.max(Math.ceil((this.Da - d) / this.dc), 1), 0 <= f && this.update(f, a); + else + for (f = 1; f <= this.wc.length; ++f) { + c = this.Da - f * this.dc; + m = c + this.dc; + if (!(c > d)) { + if (m < b) break; + this.update(this.wc.length - f, Math.round(a * (Math.min(m, d) - Math.max(c, b)) / (d - b))); } - } catch (Kb) { - wb.error("Exception computing max bitrate", Kb); } - try { - X = w.eO(); - X && (b.pdltime = X); - } catch (Kb) {} - try { - n.oa(b, h.de, { - prefix: "sm_" - }); - n.oa(b, h.kO(), { - prefix: "vd_" - }); - } catch (Kb) {} - "undefined" !== typeof nrdp && nrdp.device && (b.firmware_version = nrdp.device.firmwareVersion); - a && h.ZA && (b.pssh = h.ZA); - h.bh && h.bh.Oh && h.bh.Oh.keySystem && (b.keysys = h.bh.Oh.keySystem); - if (u.config.Rm && t._cad_global.videoPreparer) try { - v = {}; - F = t._cad_global.videoPreparer.getStats(void 0, void 0, h.M); - G = h.TN(); - N = F.Vt.tPa; - v.attempts = F.kpa || 0; - v.num_completed_tasks = N.length; - T = y.Z.get(V.Re).pVa; - C = {}; - U = ja.tc.ud.oba; - ca = ja.tc.ud.bm; - ha = ja.tc.ud.UI; - Z = ja.tc.ud.bC; - D = ja.tc.ud.TI; - F.Kh && (C.scheduled = F.Kh - G); - O = h.Sa; - O && ka.$a(O.ax) && (C.preauthsent = O.ax - h.Ed, C.preauthreceived = O.eB - h.Ed); - ea = N.filter(T("type", "manifest")); - v.mf_succ = ea.filter(T("status", U)).length; - v.mf_fail = ea.filter(T("status", ca)).length; - ia = h.de; - ka.$a(ia.lg) && 0 > ia.lg && h.Ed && (C.ldlsent = ia.lc, C.ldlreceived = ia.lr); - S = N.filter(T("type", "ldl")); - v.ldl_succ = S.filter(T("status", U)).length; - v.ldl_fail = S.filter(T("status", ca)).length; - F = !0; - if (!C.preauthreceived || 0 <= C.preauthreceived) F = !1; - da = S.filter(T("status", ha)).length; - ua = S.filter(T("status", Z)).length; - Ba = S.filter(T("status", D)).length; - u.config.RZ && 0 === da + ua + Ba && (!C.ldlreceived || 0 <= C.ldlreceived) && (F = !1); - if (u.config.iN) { - ta = t._cad_global.videoPreparer.VN(h.M); - if (ta) { - if (ta.GN && (C.headersent = ta.GN - h.Ed), ta.UO && (C.headerreceived = ta.UO - h.Ed), ta.WA && (C.prebuffstarted = ta.WA - h.Ed), ta.eH && (C.prebuffcomplete = ta.eH - h.Ed), !C.prebuffcomplete || 0 <= C.prebuffcomplete) F = !1; - } else F = !1; - } - Ya = N.filter(T("type", "getHeadersAndMedia")); - v.hm_succ = Ya.filter(T("status", U)).length; - v.hm_fail = Ya.filter(T("status", ca)).length; - n.oa(b, v, { - prefix: "pr_" - }); - b.eventlist = JSON.stringify(C); - b.prefetchCompleted = F; - Eb(b); - } catch (Kb) { - wb.warn("error in collecting video prepare data", Kb); - } - b.avtp = jb.Nl().rx; - h.jj && ma(b); - if (h.Fc.value) try { - b.ttTrackFields = h.Fc.value.Zi; - } catch (Kb) {} - if (N = h.gc && h.gc.value && h.gc.value.Db) { - Ra = {}; - N.forEach(function(a) { - Ra[a.le] = void 0; - }); - b.audioProfiles = Object.keys(Ra); - } - Nc(b); - h.Sa && "boolean" === typeof h.Sa.isSupplemental && (b.isSupplemental = h.Sa.isSupplemental); - b.headerCacheHit = !!h.$n; - h.$n && (b.headerCacheDataAudio = h.$n.audio, b.headerCacheDataAudioFromMediaCache = h.$n.audioFromMediaCache, b.headerCacheDataVideo = h.$n.video, b.headerCacheDataVideoFromMediaCache = h.$n.videoFromMediaCache); - void 0 !== h.iga && (b.bookmarkAdjustment = h.iga); - h.Sa && (b.packageId = h.Sa.packageId); - h.Sa && h.Sa.choiceMap && (b.hasChoiceMap = !0); - void 0 === bb && void 0 !== d && (bb = xb.e_(d)); - void 0 === ob && (ob = yb.gVa()); - h.Pb.Qf && (b.isBranching = !0); - H(h, b); - sa(b); - zd(b); - oa(b); - pa(b); - ra(b); - xa(b); - ya(b); - l("startplay", a, c.jg | c.$x | c.Me | c.NJ | c.nr | c.MJ | c.gU, b); - } - - function G() { - var a, b, d; - a = { - waittime: n.kk(h.Us()), - abortedevent: "startplay", - browserua: ba.Ug, - trackid: h.Zf - }; - h.Dc && (a.playbackcontextid = h.Dc); - b = h.Ai; - b && b.value && (a.vbitrate = b.value.J); - h.fA && (a.initvbitrate = h.fA); - try { - d = w.eO(); - d && (a.pdltime = d); - n.oa(a, h.de, { - prefix: "sm_" - }); - } catch (yd) {} - fa(a, !0); - xa(a); - ya(a); - Nc(a); - Db(a); - l("playbackaborted", !1, c.jg | c.Me | c.nr, a); - } - - function Z(a, b, d) { - a = n.oa({ - vdlid: h.Ai.value.ac, - playingms: a, - pausedms: b, - intrplayseq: Za++ - }, d); - Aa(a, "intrplay"); - a.cdnid = a.vcdnid = h.Ya[pb.G.VIDEO].value && h.Ya[pb.G.VIDEO].value.id; - a.acdnid = h.Ya[pb.G.AUDIO].value && h.Ya[pb.G.AUDIO].value.id; - a.locid = Oa && Oa.F1; - a.loclv = Oa && Oa.vma; - u.config.hN && (a.congested = g.Ev && g.Ev.BF() && g.Ev.BF().isCongested); - a.avtp = jb.Nl().rx; - h.jj && (fa(a, !0), ma(a), hb(a)); - try { - n.oa(a, h.kO(), { - prefix: "vd_" - }); - } catch (yd) {} - H(h, a); - l("intrplay", !1, c.jg | c.Me | c.Me, a); - } - - function O() { - l("timedtextrebuffer", !1, c.jg | c.Me, { - track: h.Fc.value.Zi - }); - } - - function Sa(a) { - a.newValue && Da && l("timedtextswitch", !1, c.jg | c.Me, { - track: a.newValue.Zi - }); - } - - function ta(a) { - l("serversel", !1, c.jg | c.Me, { - mediatype: a.mediatype, - server: a.server, - selreason: a.reason, - location: a.location, - bitrate: a.bitrate, - confidence: a.confidence, - throughput: a.throughput, - oldserver: a.oldserver - }); + for (; this.wc.length > this.Vg;) this.shift(); + }; + b.prototype.start = function(a) { + null === this.Wj && (this.Wj = a); + null === this.Da && (this.Da = a); + }; + b.prototype.stop = function(a) { + var b, c; + if (null !== this.Da) + if (a - this.Da > 10 * this.rB) this.reset(); + else { + for (; this.Da <= a;) this.push(), this.wc.length > this.Vg && this.shift(); + b = this.wc.length - Math.ceil((this.Da - this.Wj) / this.dc); + 0 > b && (this.Wj = this.Da - this.dc * this.wc.length, b = 0); + c = this.wc.length - Math.ceil((this.Da - a) / this.dc); + if (b === c) this.Xo[b] += a - this.Wj; + else if (c > b) + for (this.Xo[b] += (this.Da - this.Wj) % this.dc, this.Xo[c] += this.dc - (this.Da - a) % this.dc, a = b + 1; a < c; ++a) this.Xo[a] = this.dc; + this.Wj = null; + } + }; + b.prototype.ina = function(a, b) { + b = this.U3(b); + return 0 === b ? null : 8 * a / b; + }; + b.prototype.U3 = function(a) { + var b; + b = this.Xo[a]; + null !== this.Wj && (a = this.Da - (this.wc.length - a - 1) * this.dc, a > this.Wj && (b = a - this.Wj <= this.dc ? b + (a - this.Wj) : this.dc)); + return b; + }; + b.prototype.get = function(a, b) { + var c, f; + c = this.wc.map(this.ina, this); + if ("last" === a) + for (a = 0; a < c.length; ++a) null === c[a] && (c[a] = 0 < a ? c[a - 1] : 0); + else if ("average" === a) { + b = 1 - Math.pow(.5, 1 / ((b || 2E3) / this.dc)); + for (a = 0; a < c.length; ++a) null === c[a] ? c[a] = Math.floor(f || 0) : f = void 0 !== f ? b * c[a] + (1 - b) * f : c[a]; } + return c; + }; + b.prototype.reset = function() { + this.wc = []; + this.Xo = []; + this.Wj = this.Da = null; + }; + b.prototype.setInterval = function(a) { + this.Vg = Math.floor((a + this.dc - 1) / this.dc); + }; + g.M = b; + }, function(g, d, a) { + Object.defineProperty(d, "__esModule", { + value: !0 + }); + g = a(782); + a = a(779); + d.xfb = g; + d.qv = a; + }, function(g, d, a) { + var c, h, k, f; - function db(a) { - l("asereport", !1, c.Me, { - strmsel: a.strmsel - }); - } - - function Ba(a) { - l("aseexception", !1, c.Me, { - msg: a.msg - }); - } - - function Ya() { - var a, b; - if (h.Ej) try { - a = !1; - Fa % u.config.fF && !h.Kj && (a = !0, $a = $a.filter(function(a) { - return !a.K; - })); - if (0 < $a.length) { - b = p.DPa($a, h.SA.qa(q.Ma)); - $a = []; - b.erroronly = a; - u.config.bN.length && (b.tcpinfo = u.config.bN.join(",")); - n.Kb(b, function(a, c) { - b[a] = JSON.stringify(c); - }); - l("dlreport", !1, c.Me, b); - } - } catch (xd) { - wb.error("Exception in dlreport.", xd); - } - } - - function Ra(a) { - var d, g, p, m, r, f; - d = a.request; - g = a.request.bj; - p = d.track; - if (p) { - m = !a.K && a.R != D.u.No; - r = p.type; - f = a.xf; - if (m || h.nG) { - g = { - dltype: r, - url1: d.url, - url2: a.url || "", - cdnid: d.Ya && d.Ya.id, - tresp: n.kk(f.hf - f.requestTime), - brecv: n.OAa(f.Op), - trecv: n.kk(f.Zj - f.hf), - sbr: g && g.J - }; - a.Fq && (g.range = a.Fq); - switch (r) { - case k.$q: - g.adlid = d.stream.ac; - break; - case k.ar: - g.vdlid = d.stream.ac; - break; - case k.nS: - g.ttdlid = p.ac; - }(d = b(a.R)) && (g.nwerr = d); - a.Fg && (g.httperr = a.Fg); - l("dlreq", m, c.Me, g); - } - } - } - - function zb() { - var a, b; - if (h.state.value == z.lk) { - a = Qe(); - u.config.u4 && (a.avtp = jb.Nl().rx, h.jj && ma(a)); - a.midplayseq = ib++; - b = h.Tb.value; - a.prstate = b == z.em ? "playing" : b == z.Vo ? "paused" : b == z.pr ? "ended" : "waiting"; - !h.ge && u.config.Z8a && vb("midplay"); - u.config.Rm && t._cad_global.videoPreparer && Eb(a); - zd(a); - oa(a); - l("midplay", !1, c.jg | c.Me | c.nr | c.NJ, a); - } - } - - function vb(a) { - var b, d; - b = {}; - b.trigger = a; - try { - d = h.V_(); - b.subtitleqoescore = h.Pq.LYa(d); - b.metrics = JSON.stringify(h.Pq.d0(d)); - } catch (yd) { - wb.error("error getting subtitle qoe data", yd); - } - l("subtitleqoe", !1, c.jg | c.nr | c.$x, b, "info"); - } - - function H(a, b) { - var c, d; - if (u.config.j_a) { - c = a.W_(); - if (c) { - b.segment = c; - d = a.Ts(); - a: { - if (a = a.XN()) - if (c = a[c]) { - c = c.lR; - break a; - } c = void 0; - } - null !== d && void 0 !== c && (b.segmentoffset = d - c); - } - } - } - - function hb(a) { - var b, c; - b = h.x0; - c = b && b.Q7a; - b && b.Xka && (a.htwbr = b.Xka, a.pbtwbr = b.NP, a.hptwbr = b.UZa); - b && b.Aqa && (a.rr = b.Aqa, a.ra = b.L6a); - b && c && 0 < (c.length || 0) && (a.qe = JSON.stringify(c)); - } - - function Nc(a) { - var b, c; - b = h.Ud && h.Ud.value && h.Ud.value.Db; - if (b) { - c = {}; - b.forEach(function(a) { - c[a.le] = void 0; - }); - a.videoProfiles = Object.keys(c); - } - } - - function Db(a) { - var b, c, d; - try { - b = y.Z.get(V.Re).createElement("canvas"); - c = b.getContext("webgl") || b.getContext("experimental-webgl"); - if (c) { - d = c.getExtension("WEBGL_debug_renderer_info"); - d && (a.WebGLRenderer = c.getParameter(d.UNMASKED_RENDERER_WEBGL), a.WebGLVendor = c.getParameter(d.UNMASKED_VENDOR_WEBGL)); - } - } catch (zf) {} - } - - function P(a) { - var b, d, g, p, k, X; - b = Qe(); - d = []; - Aa(b, "endplay"); - b.browserua = ba.Ug; - h.Go && "downloaded" === h.Go.pka() && (b.trickplay_ms = h.oI.offset, b.trickplay_res = h.oI.mqa); - u.config.l6 && (b.rtinfo = h.vYa()); - u.config.u4 && (sb.LWa().forEach(function(a) { - d.push({ - cdnid: a.iz, - avtp: a.rx, - tm: a.DZ - }); - }), b.avtp = jb.Nl().rx, b.cdnavtp = d, h.jj && ma(b)); - void 0 !== h.bG && (b.isConserv = h.bG); - void 0 !== h.Pn && (b.ccs = h.Pn); - b.endreason = a ? "error" : h.Tb.value == z.pr ? "ended" : "stopped"; - h.wM && n.oa(B.Yh, { - cast_interaction_counts: h.wM.KW - }); - B.Yh && n.oa(b, B.Yh, { - prefix: "pi_" - }); - g = h.Gg; - a && g && y.kxa(g.errorCode) && (p = "info"); - try { - n.oa(b, h.de, { - prefix: "sm_" - }); - } catch (Af) {} - h.K0 && (b.inactivityTime = h.K0); - fa(b, "info" !== p && a); - hb(b); - if (h.yv) { - for (var g = h.yv, m = u.config.ez, r = ka.da(h.Ed) ? h.Ed : h.bSa, f = { - iv: m, - seg: [] - }, v = function(a, b, c) { - return 0 === b || void 0 === c[b - 1] ? a : a - c[b - 1]; - }, x = g.Ln.map(v), v = g.Ho.map(v), C, w = 0; w < x.length; w++) { - if (x[w] || v[w]) C ? (C.ams.push(x[w]), C.vms.push(v[w])) : C = { - ams: [g.Ln[w]], - vms: [g.Ho[w]], - soffms: g.startTime + w * m - r - }; - w !== x.length - 1 && x[w] && v[w] || !C || (f.seg.push(C), C = void 0); - } - b.bt = JSON.stringify(f); - } - if (h.mP && 0 < h.mP.length) { - k = []; - h.mP.forEach(function(a) { - k.push({ - soffms: a.time - h.Ed, - maxvb: a.maxvb, - maxvb_old: a.maxvb_old, - spts: a.spts, - reason: a.reason - }); - }); - b.maxvbevents = k; - } - if (h.bb && h.bb.ec.A6a) { - X = []; - h.bb.ec.A6a.forEach(function(a) { - X.push({ - t: a.t - h.Ed, - p: a.p, - b: a.Cp, - bl: a.FNa - }); - }); - b.psd = JSON.stringify(X); - } - h.tpa && (b.psdConservCount = h.tpa); - h.bb && h.bb.ec.kB && (b.rl = JSON.stringify(h.bb.ec.kB), b.rlmod = h.bb.ec.jB); - a && (Nc(b), Db(b)); - vb("endplay"); - u.config.Rm && t._cad_global.videoPreparer && Eb(b); - h.Pb.Qf && (b.isBranching = !0); - H(h, b); - sa(b); - zd(b); - oa(b); - pa(b); - h.QM && (b.dqec = h.QM); - ra(b); - ya(b); - Ca(b); - ob && (b.externaldisplay = ob.pF); - l("endplay", a, c.jg | c.$x | c.Me | c.nr | c.NJ | c.gU, b, p); - } - - function tc(a) { - a = S.NH(a); - a.details && (a.details = JSON.stringify(a.details)); - l("subtitleerror", !0, c.jg | c.$x | c.MJ, a); - } - - function tf() { - var a; - if (h.EI && h.js) { - a = []; - h.EI.concat(h.js).forEach(function(b) { - b.Db.forEach(function(b) { - a.push({ - dlid: b.ac, - type: b.type, - bitrate: b.J, - vmaf: b.je - }); - }); - }); - return JSON.stringify(a); - } - } - - function Y() { - var b, c, d; - - function a(a, b) { - var g, p, h; - g = a.cdnId; - p = d[g]; - h = a.vmaf; - p || (p = { - cdnid: g, - dls: [] - }, d[g] = p, c.push(p)); - ca.Es(a.bitrate); - ca.Es(a.duration); - g = { - bitrate: a.bitrate, - tm: ba.ve(a.duration) - }; - h && (ca.Es(a.vmaf), g.vf = h); - g[b] = n.Zc(a.downloadableId); - p.dls.push(g); - } - b = h.Sl.uWa(); - c = []; - d = {}; - b.audio.forEach(function(b) { - a(b, "adlid"); - }); - b.video.forEach(function(b) { - a(b, "dlid"); - }); - return JSON.stringify(c); - } - - function Qe() { - var a, b, c, d, g, p, m, l, r, f, u, v, x, y, z; - a = h.Sl; - b = { - totaltime: n.MC(a.h0()), - cdndldist: Y(), - reposcount: cb, - intrplaycount: Za - }; - try { - c = { - numskip: 0, - numlowqual: 0 - }; - d = h.bf; - g = d.bO(); - ka.da(g) && (b.totfr = g, c.numren = g); - g = d.Zv(); - ka.da(g) && (b.totdfr = g, c.numrendrop = g); - g = d.CF(); - ka.da(g) && (b.totcfr = g, c.numrenerr = g); - g = d.cO(); - ka.da(g) && (b.totfdl = g); - b.playqualvideo = JSON.stringify(c); - b.videofr = h.Ai.value.RN.toFixed(3); - p = a.Aja(); - p && (b.abrdel = p); - m = a.yZa() && a.AWa(); - m && (b.tw_vmaf = m); - l = a.yWa(); - l && n.oa(b, l); - b.rbfrs = Za; - b.maxbitrate = kb; - b.maxresheight = lb; - r = h.Ud.value.Db; - for (x = 0; x < r.length; x++) { - f = r[x]; - if (v = h.v2.Mq(f)) { - ca.ea(u); - b.maxbitrate = u ? u.J : 0; - b.maxresheight = u ? u.height : 0; - b.bitratefilters = v.join("|"); - break; - } - u = f; - } - if (h && h.Gtb && h.KOa && h.TX) { - y = h.KOa; - z = { - ab: ba.Xh(y.Wkb), - actual60: h.TX.VYa(), - b20: ba.Xh(y.Ykb), - b50: ba.Xh(y.Zkb), - b90: ba.Xh(y.$kb), - std: ba.Xh(y.Rsb), - ns: y.otb, - ss: y.gx, - filt: y.filter - }; - b.expectedbw = JSON.stringify(z); - } - h.Go && (b.trickplay = h.Go.pka()); - null !== h.Pq.PX && (b.avg_subt_delay = h.Pq.PX); - } catch (uf) { - wb.error("Exception reading some of the endplay fields", uf); - } - n.oa(b, h.kO(), { - prefix: "vd_" - }); - return b; - } - - function aa() { - l("blockedautoplay", !1, c.jg | c.nr, { - browserua: ba.Ug - }); - } - - function ga() { - var a, b, c; - b = []; - if (u.config.z2a) { - c = { - nna: function() {}, - $qa: function() { - zb(); - } - }; - tb.addListener(c); - u.config.A2a.forEach(function(a) { - b.push(setTimeout(zb, a)); - }); - u.config.qna && (a = setInterval(Oc, u.config.qna)); - h.addEventListener(z.Qe, function() { - tb.removeListener(c); - b.forEach(function(a) { - clearTimeout(a); - }); - a && clearInterval(a); - }); - } - } - - function Oc() { - t._cad_global.logBatcher.flush(!0)["catch"](function() { - return wb.warn("failed to flush logbatcher on midplay interval"); - }); - } - - function Eb(a) { - var b; - try { - b = t._cad_global.videoPreparer.getStats(); - a.pr_cache_size = JSON.stringify(b.cache); - a.pr_stats = JSON.stringify(b.rja); - } catch (xd) {} - } - - function zd(a) { - wb.debug("httpstats", m.Za.ad); - n.oa(a, m.Za.ad, { - prefix: "http_" - }); - } - - function fa(a, b) { - u.config.Mha && !(Fa % u.config.Mha) && h.bb && h.bb.S0 && (a.ASEstats = JSON.stringify(h.bb.S0(b))); - } - - function ma(a) { - var b, c; - b = h.jj.Hb.get(!0); - if (b.$b && b.ia) { - a.aseavtp = Number(b.ia.ta).toFixed(2); - a.asevartp = Number(b.ia.cg).toFixed(2); - if (b.Xi) { - c = b.Xi.Om; - !c || isNaN(c.kh) || isNaN(c.jh) || isNaN(c.Tf) || (a.aseniqr = 0 < c.Tf ? Number((c.kh - c.jh) / c.Tf).toFixed(2) : -1, a.aseiqr = Number(c.kh - c.jh).toFixed(2), a.asemedtp = Number(c.Tf).toFixed(2)); - a.iqrsamples = b.Xi.vo; - } - b.dk && b.dk.aq && (a.tdigest = b.dk.aq()); - } - } - - function oa(a) { - var b; - try { - b = ba.cm.memory; - ka.V_a(b) && (a.totalJSHeapSize = b.totalJSHeapSize, a.usedJSHeapSize = b.usedJSHeapSize, a.jsHeapSizeLimit = b.jsHeapSizeLimit); - } catch (xd) {} - } - - function pa(a) { - var b; - b = h.bh; - u.config.IOa && b && !u.config.dn && (a.keystatuses = h.n3a(b.QV), wb.trace("keystatuses", a.keystatuses)); - } - - function ra(a) { - try { - u.config.DE && (a.battery = h.FWa(), wb.trace("batterystatuses", a.battery)); - } catch (wd) {} - } - - function sa(a) { - try { - h.jpa && (a.pf_stats = h.jpa, y.log.trace("prefetch summary", JSON.stringify(h.jpa, [" "], "\t"))); - h.irb && (a.preCachedMedia = !0); - } catch (wd) { - wb.warn("error generating pf_stats", wd); - } - } - - function xa(a) { - var b; - b = h.Pb.jf; - b && b.isUIAutoPlay && (a.isUIAutoPlay = !0); - } - - function ya(a) { - if (rb) try { - a.storagestats = rb.getData(); - } catch (wd) {} - } - - function Ca(a) { - bb && bb.Zg && (a.media_capabilities_smooth = bb.Zg.l$a, a.media_capabilities_efficient = bb.Zg.J5a, a.media_capabilities_bitrate = bb.Zg.J, a.media_capabilities_height = bb.Zg.height, a.media_capabilities_width = bb.Zg.width); - } - - function Aa(a, b) { - var c; - c = h.aq(b); - c && Object.keys(c).forEach(function(b) { - a[b] = c[b]; - }); - } - wb = y.Je(h, "NccpLogging"); - Fa = h.aa; - Ga = h.dj; - Ma = h.paused.value; - Va = []; - cb = 0; - Za = 0; - ib = 0; - eb = 0; - $a = []; - jb = y.Z.get(C.RU)(); - sb = y.Z.get(F.s7); - tb = y.Z.get(N.jr); - xb = y.Z.get(ua.m$); - yb = y.Z.get(A.v8); - u.config.sMa && (rb = y.Z.get(T.M6)); - pb = a(13); - ca.ea(Ga); - ca.ea(t._cad_global.logBatcher); - (function() { - var d; - - function a(a) { - function c(a) { - var b; - if (h.Sb && h.Sb.sourceBuffers) { - b = h.Sb.sourceBuffers.filter(function(b) { - return b.type === a; - }).pop(); - if (b) return { - busy: b.Nj(), - updating: b.updating(), - ranges: b.WN() - }; - } - } - Qa = "rebuffer"; - a = { - cause: a.cause - }; - a.cause && a.cause === z.raa && (a.mediaTime = h.pc.value, a.buf_audio = c(r.b$), a.buf_video = c(r.FJ)); - Z(Va[z.em] || 0, Va[z.Vo] || 0, a); - Ia = x.Ra(); - ea.Xa(b); - } - - function b() { - var a, b; - if (Ia && h.Tb.value != z.Zh) { - a = x.Ra() - Ia; - b = Xa; - b = { - playdelay: n.kk(a), - reason: Qa, - intrplayseq: Za - 1, - skipped: b - }; - H(h, b); - l("resumeplay", !1, c.jg | c.$x | c.Me, b); - "rebuffer" == Qa && h.Sl.NLa(n.kk(a)); - Na && Na != h.gc.value && l("audioswitch", !1, c.jg | c.Me, { - switchdelay: n.kk(x.Ra() - Ua), - newtrackinfo: h.gc.value.Ab, - oldtrackinfo: Na.Ab - }); - Xa = Qa = Ia = void 0; - } - } - h.addEventListener(ia.Ea.Hz, Ra, r.by); - h.addEventListener(ia.Ea.vv, aa); - if (u.config.fF || u.config.az) h.addEventListener(ia.Ea.Hz, function(a) { - $a.push(p.EPa(a)); - }), eb = setInterval(Ya, u.config.FTa); - u.config.u4 && h.addEventListener(ia.Ea.Hz, function(a) { - var b, c, d; - b = q.Cb(a.xf.hf); - c = q.Cb(a.xf.Zj); - d = da.ga(a.xf.Op || 0); - d.Sla() || d.Ala() || (b = new X.Yaa(b, c), jb.cM(new U.FS(b, d)), a && a.request && a.request.bj && a.request.bj.Ec && sb.cM(new ha.jva(b, d, a.request.bj.Ec))); - }); - h.paused.addListener(function(a) { - var b; - b = a.newValue; - a.r3a && b || b == Ma || (a = { - newstate: b ? "Paused" : "Playing", - oldstate: Ma ? "Paused" : "Playing" - }, H(h, a), l("statechanged", !1, c.jg | c.Me, a), Ma = b); - }); - h.addEventListener(z.XJ, a); - h.addEventListener(z.mDa, a); - h.addEventListener(z.Haa, O); - h.up.addListener(Sa); - h.Tb.addListener(function(a) { - var b; - a = a.oldValue; - b = x.Ra(); - a == z.Zh ? Va = [] : Va[a] = (Va[a] || 0) + (b - ab); - ab = b; - }); - h.addEventListener(z.AU, function(a) { - var d, g; - switch (a.cause) { - case z.taa: - case z.yU: - if (Qa && Ia) { - d = x.Ra() - Ia; - g = Qa; - d = { - waittime: n.kk(d), - abortedevent: "resumeplay", - browserua: ba.Ug, - resumeplayreason: g - }; - h.Dc && (d.playbackcontextid = h.Dc); - (g = h.Ai) && g.value && (d.vbitrate = g.value.J); - h.fA && (d.initvbitrate = h.fA); - l("playbackaborted", !1, c.jg | c.Me, d); - } else Da || G(); - Qa = "repos"; - a = { - moffold: n.MC(a.RG), - reposseq: cb++ - }; - l("repos", !1, c.jg | c.Me, a); - Ia = x.Ra(); - ea.Xa(b); - } - }); - h.Tb.addListener(b); - h.gc.addListener(function(a) { - Ua = x.Ra(); - Na = a.oldValue; - }); - h.addEventListener(z.mg, function() { - ca.ea(!Da); - Da = !0; - f(!1); - ga(); - u.config.jla && (fb = setTimeout(function() { - t._cad_global.logBatcher && t._cad_global.logBatcher.flush(!1)["catch"](function() { - return wb.warn("failed to flush logbatcher on initialLogFlushTimeout"); - }); - fb = void 0; - }, u.config.jla)); - }); - h.addEventListener(z.Qe, function() { - fb && clearTimeout(fb); - if (u.config.fF || u.config.az) eb && clearInterval(eb), Ya(); - Da ? P(!!h.Gg) : h.Gg ? f(!0) : G(); - qb || (l = r.Gb); - }); - h.cz && h.cz.addListener(function(a) { - l("bitraterestriction", !1, c.jg | c.Me, a.newValue); - }); - h.Ai.addListener(function(a) { - var b, d, g; - if (a.oldValue && a.Lga) { - b = a.oldValue; - d = a.newValue; - g = a.tNa; - a = { - moff: n.MC(a.Lga), - vbitrate: d.J, - vbitrateold: b.J, - vdlid: d.ac, - vdlidold: b.ac, - vheight: d.height, - vheightold: b.height, - vwidth: d.width, - vwidthold: b.width, - bw: g - }; - H(h, a); - l("chgstrm", !1, c.Me, a); - } - }); - h.Tl.addListener(function(a) { - var b, g; - if (a.newValue) { - b = a.newValue.stream; - if (d != b) { - if (d) { - g = d; - a = { - moff: n.MC(a.newValue.yM.startTime), - vbitrate: b.J, - vdlidold: g.ac, - vdlid: b.ac, - vbitrateold: g.J - }; - H(h, a); - l("renderstrmswitch", !1, c.Me, a); - } - d = b; - } - } - }); - h.addEventListener(z.Baa, function(a) { - function b(a, b) { - var d, g, p, h, m; - if (!a || a.F1 !== b.location) { - d = { - F1: b.location, - vma: b.locationlv, - f5: b.serverid, - HH: b.servername - }; - g = b.serverid; - p = b.serverrtt; - h = b.serverbw; - m = { - locid: b.location, - loclv: b.locationlv, - selocaid: g, - selocaname: b.servername - }; - m.mediatype = b.mediatype; - m.selcdnrtt = p; - m.selcdnbw = h; - m.selreason = b.selreason; - m.testreason = b.testreason; - m.fastselthreshold = b.fastselthreshold; - m.seldetail = b.seldetail; - m.cdnbwdata = JSON.stringify([{ - id: g, - rtt: p, - bw: h - }]); - a && (m.oldlocid = a.F1, m.oldloclv = a.vma, m.oldocaid = a.f5, m.oldocaname = a.HH); - l("cdnsel", !1, c.MJ, m); - return d; - } - } - "audio" === a.mediaType ? (a = b(Wa, a)) && (Wa = a) : (a = b(Oa, a)) && (Oa = a); - }); - h.addEventListener(z.Caa, ta); - h.addEventListener(z.vaa, db); - h.addEventListener(z.uaa, Ba); - u.config.Sh && (qb = !0); - h.addEventListener(z.Faa, tc); - h.addEventListener(z.Eaa, function() { - Xa = !0; - }); - }()); - this.KQ = function(a) { - a.browserua = ba.Ug; - l("securestop", !a.success, c.jg | c.nr, a); - l = r.Gb; - }; - this.transition = function(a) { - l("transition", !1, 0, a); - }; - }; - c.SAa = b; - c.Ohb = d; - c.QAa = h; - c.RAa = l; - c.jg = 1; - c.$x = 2; - c.Me = 4; - c.NJ = 8; - c.nr = 16; - c.MJ = 32; - c.gU = 64; - }, function(f, c, a) { - var b, d, h, l, g, m, p; - Object.defineProperty(c, "__esModule", { - value: !0 - }); - f = a(18); - b = a(296); - d = a(4); - h = a(6); - l = a(297); - g = a(2); - m = a(295); - p = a(293); - c.storage = c.storage || void 0; - c.Rp = c.Rp || void 0; - f.Dd(g.v.j9, function(a) { - var g; - switch (d.config.qR) { - case "fs": - g = b.L$a; - break; - case "idb": - g = m.M$a; - break; - case "none": - g = l.O$a; - break; - case "ls": - g = p.N$a; - } - g(function(b) { - b.K ? (c.storage = b.storage, c.Rp = b.Rp, a(h.cb)) : a(b); - }); - }); - }, function(f, c) { - Object.defineProperty(c, "__esModule", { - value: !0 - }); - c.oaa = "PboPlaydataServicesSymbol"; - c.VJ = "PboPlaydataServicesProviderSymbol"; - }, function(f, c, a) { - var b, d, h; - Object.defineProperty(c, "__esModule", { - value: !0 - }); - b = a(19); - d = a(8); - h = a(143); - c.Vh = "$attributes"; - c.$R = "$children"; - c.aS = "$name"; - c.Io = "$text"; - c.mta = "$parent"; - c.$B = "$sibling"; - c.$4a = /^\s*\<\?xml.*\?\>/i; - c.Tqb = function(a, b, d) { - a = (a || "").replace(c.$4a, ""); - h.C6('' + a + "", d); - }; - c.eXa = function(a, b, c) { - for (var d = 2; d < arguments.length; ++d); - for (d = 1; - (b = arguments[d++]) && (a = a[b]);); - return a; - }; - c.Qqb = function(a, g) { - var h; - a ? h = b.Zc(a[c.Io]) : void 0 !== g && (h = g); - d.OM(h); - return h; - }; - c.Y4a = function(a) { - var b; - a && (b = a[c.Io]); - d.uSa(b); - return b; - }; - c.Npb = function(a, b) { - var d; - d = {}; - d[c.Vh] = a; - d[c.Io] = b; - return d; - }; - }, function(f, c, a) { - var d, h, l, g; - - function b(a, b, c) { - var h; - h = l.XI.call(this, a, b, d.FC.$ba) || this; - h.config = a; - h.u2 = b; - h.is = c; - h.type = d.Fi.du; - h.YB = g.od.zha(); - return h; + function b(a, b, d) { + var m; + m = k.lM.call(this, a, b, c.zF.bia) || this; + m.config = a; + m.x7 = b; + m.is = d; + m.type = c.rj.dw; + m.ME = f.vc.soa(); + return m; } - Object.defineProperty(c, "__esModule", { + Object.defineProperty(d, "__esModule", { value: !0 }); - d = a(34); - h = a(64); - l = a(366); - f = a(96); - g = a(124); - new f.Cu(); - oa(b, l.XI); - b.prototype.Co = function() { + c = a(27); + h = a(72); + k = a(408); + g = a(98); + f = a(133); + new g.Dw(); + ia(b, k.lM); + b.prototype.Zp = function() { return Promise.resolve(!1); }; - b.prototype.Vz = function() { + b.prototype.CC = function() { return Promise.resolve(""); }; - b.prototype.aI = function() { + b.prototype.hL = function() { return !1; }; - b.prototype.ZH = function() { + b.prototype.fL = function() { return !1; }; - b.prototype.bI = function() { + b.prototype.jL = function() { return Promise.resolve(!1); }; - b.prototype.YH = function() { + b.prototype.eL = function() { return !1; }; - b.prototype.YN = function(a) { - return this.YB[a]; + b.prototype.CR = function(a) { + return this.ME[a]; }; - b.prototype.fX = function(a) { + b.prototype.W_ = function(a) { return a; }; - b.prototype.Pma = function(a) { + b.prototype.Nua = function(a) { switch (a) { - case d.Qg.pn: + case c.mh.Io: return "1.4"; - case d.Qg.nu: + case c.mh.kw: return "2.2"; } }; - b.prototype.Iv = function() { + b.prototype.Jx = function() { var a; a = {}; - a[h.$.fr] = "avc1.4D401E"; - a[h.$.ju] = "avc1.4D401F"; - a[h.$.lC] = "avc1.4D4028"; - a[h.$.lT] = "hev1.1.6.L90.B0"; - a[h.$.mT] = "hev1.1.6.L93.B0"; - a[h.$.nT] = "hev1.1.6.L120.B0"; - a[h.$.oT] = "hev1.1.6.L123.B0"; - a[h.$.pT] = "hev1.1.6.L150.B0"; - a[h.$.qT] = "hev1.1.6.L153.B0"; - a[h.$.dT] = "hev1.2.6.L90.B0"; - a[h.$.fT] = "hev1.2.6.L93.B0"; - a[h.$.hT] = "hev1.2.6.L120.B0"; - a[h.$.jT] = "hev1.2.6.L123.B0"; - a[h.$.pC] = "hev1.2.6.L150.B0"; - a[h.$.qC] = "hev1.2.6.L153.B0"; - a[h.$.eT] = "hev1.2.6.L90.B0"; - a[h.$.gT] = "hev1.2.6.L93.B0"; - a[h.$.iT] = "hev1.2.6.L120.B0"; - a[h.$.kT] = "hev1.2.6.L123.B0"; - a[h.$.US] = "hev1.2.6.L90.B0"; - a[h.$.VS] = "hev1.2.6.L93.B0"; - a[h.$.WS] = "hev1.2.6.L120.B0"; - a[h.$.XS] = "hev1.2.6.L123.B0"; - a[h.$.YS] = "hev1.2.6.L150.B0"; - a[h.$.$S] = "hev1.2.6.L153.B0"; - a[h.$.sJ] = "hev1.2.6.L90.B0"; - a[h.$.tJ] = "hev1.2.6.L93.B0"; - a[h.$.uJ] = "hev1.2.6.L120.B0"; - a[h.$.vJ] = "hev1.2.6.L123.B0"; - a[h.$.wS] = g.od.Ff; - a[h.$.xS] = g.od.Ff; - a[h.$.yS] = g.od.Ff; - a[h.$.zS] = g.od.Ff; - a[h.$.AS] = g.od.Ff; - a[h.$.M7] = g.od.Ff; - a[h.$.aJ] = g.od.Ff; - a[h.$.bJ] = g.od.Ff; - a[h.$.cJ] = g.od.Ff; - a[h.$.dJ] = g.od.Ff; - a[h.$.eJ] = g.od.Ff; - a[h.$.BS] = g.od.p7; - a[h.$.Zba] = g.od.gD; - a[h.$.nK] = g.od.gD; - a[h.$.oK] = g.od.gD; - a[h.$.pK] = g.od.gD; - a[h.$.Uba] = g.od.fD; - a[h.$.Vba] = g.od.fD; - a[h.$.Wba] = g.od.fD; - a[h.$.Xba] = g.od.fD; - a[h.$.Yba] = g.od.fD; + a[h.ba.SW] = "avc1.4D401E"; + a[h.ba.DM] = "avc1.4D401F"; + a[h.ba.TW] = "avc1.4D4028"; + a[h.ba.qX] = "hev1.1.6.L90.B0"; + a[h.ba.rX] = "hev1.1.6.L93.B0"; + a[h.ba.sX] = "hev1.1.6.L120.B0"; + a[h.ba.tX] = "hev1.1.6.L123.B0"; + a[h.ba.uX] = "hev1.1.6.L150.B0"; + a[h.ba.vX] = "hev1.1.6.L153.B0"; + a[h.ba.cX] = "hev1.2.6.L90.B0"; + a[h.ba.fX] = "hev1.2.6.L93.B0"; + a[h.ba.iX] = "hev1.2.6.L120.B0"; + a[h.ba.lX] = "hev1.2.6.L123.B0"; + a[h.ba.hF] = "hev1.2.6.L150.B0"; + a[h.ba.iF] = "hev1.2.6.L153.B0"; + a[h.ba.dX] = "hev1.2.6.L90.B0"; + a[h.ba.gX] = "hev1.2.6.L93.B0"; + a[h.ba.jX] = "hev1.2.6.L120.B0"; + a[h.ba.mX] = "hev1.2.6.L123.B0"; + a[h.ba.UW] = "hev1.2.6.L90.B0"; + a[h.ba.VW] = "hev1.2.6.L93.B0"; + a[h.ba.WW] = "hev1.2.6.L120.B0"; + a[h.ba.XW] = "hev1.2.6.L123.B0"; + a[h.ba.YW] = "hev1.2.6.L150.B0"; + a[h.ba.$W] = "hev1.2.6.L153.B0"; + a[h.ba.FM] = "hev1.2.6.L90.B0"; + a[h.ba.GM] = "hev1.2.6.L93.B0"; + a[h.ba.HM] = "hev1.2.6.L120.B0"; + a[h.ba.IM] = "hev1.2.6.L123.B0"; + a[h.ba.vW] = f.vc.og; + a[h.ba.wW] = f.vc.og; + a[h.ba.xW] = f.vc.og; + a[h.ba.yW] = f.vc.og; + a[h.ba.zW] = f.vc.og; + a[h.ba.Dca] = f.vc.og; + a[h.ba.pM] = f.vc.og; + a[h.ba.qM] = f.vc.og; + a[h.ba.rM] = f.vc.og; + a[h.ba.sM] = f.vc.og; + a[h.ba.tM] = f.vc.og; + a[h.ba.AW] = f.vc.fca; + a[h.ba.aia] = f.vc.RF; + a[h.ba.tN] = f.vc.RF; + a[h.ba.uN] = f.vc.RF; + a[h.ba.vN] = f.vc.RF; + a[h.ba.Wha] = f.vc.QF; + a[h.ba.Xha] = f.vc.QF; + a[h.ba.Yha] = f.vc.QF; + a[h.ba.Zha] = f.vc.QF; + a[h.ba.$ha] = f.vc.QF; + a[h.ba.pba] = f.vc.jh; + a[h.ba.qba] = f.vc.jh; + a[h.ba.rba] = f.vc.jh; + a[h.ba.sba] = f.vc.jh; + a[h.ba.tba] = f.vc.jh; + a[h.ba.uba] = f.vc.jh; + a[h.ba.vba] = f.vc.jh; + a[h.ba.wba] = f.vc.jh; return a; }; - b.prototype.Y_ = function() { - return this.config().DI; + b.prototype.D4 = function() { + return this.config().QL; }; - b.prototype.Yz = function() { + b.prototype.FC = function() { return Promise.resolve(void 0); }; - b.prototype.IF = function() { + b.prototype.CI = function() { return Promise.resolve(void 0); }; - b.prototype.OE = function(a) { + b.prototype.xH = function(a) { var b; b = []; - this.is.uf(a) && b.push(this.Pma(a)); + this.is.Zg(a) && b.push(this.Nua(a)); return [{ type: "DigitalVideoOutputDescriptor", outputType: "unknown", @@ -25012,61557 +23752,67735 @@ v7AA.H22 = function() { isHdcpEngaged: !!b.length }]; }; - b.SB = "video/mp4;codecs={0};"; - c.ik = b; - }, function(f, c, a) { - var d; + b.EE = "video/mp4;codecs={0};"; + d.Zl = b; + }, function(g, d, a) { + var c; function b() {} - Object.defineProperty(c, "__esModule", { - value: !0 - }); - d = a(34); - b.zha = function(a) { - var c; - c = {}; - c[d.Jd.ZC] = b.qJ; - c[d.Jd.rJ] = b.qJ; - c[d.Jd.jK] = b.mC; - c[d.Jd.Mo] = b.Mo; - c[d.Jd.Ff] = a || b.Ff; - c[d.Jd.yr] = b.gD; - return c; - }; - b.qJ = "avc1.640028"; - b.mC = "hev1.1.6.L93.B0"; - b.o7 = "dvhe.01000000"; - b.gva = "dvhe.dtr.uhd60"; - b.p7 = "dvhe.05.09"; - b.Ff = b.o7; - b.Mo = b.mC; - b.bS = "mp4a.40.2"; - b.veb = "ec-3"; - b.Ujb = "vp9"; - b.gD = "vp09.00.11.08.02"; - b.fD = "vp09.02.31.10.01"; - b.hva = [b.p7, b.gva, b.o7]; - c.od = b; - }, function(f, c) { - function a(a) { - var b; - b = Error.call(this, "TimeoutError"); - this.message = b.message; - "stack" in b && (this.stack = b.stack); - this.interval = a; - } - Object.defineProperty(c, "__esModule", { - value: !0 - }); - oa(a, Error); - c.ly = a; - c.aK = "PromiseTimerSymbol"; - }, function(f, c) { - Object.defineProperty(c, "__esModule", { + Object.defineProperty(d, "__esModule", { value: !0 }); - (function(a) { - a[a.vr = 0] = "STANDARD"; - a[a.vC = 1] = "LIMITED"; - }(c.Oo || (c.Oo = {}))); - c.u0a = function(a) { - return ["STANDARD", "LIMITED"][a]; + c = a(27); + b.soa = function(a) { + var d; + d = {}; + d[c.Jd.MF] = b.CM; + d[c.Jd.EM] = b.CM; + d[c.Jd.qN] = b.eF; + d[c.Jd.sq] = b.sq; + d[c.Jd.og] = a || b.og; + d[c.Jd.ot] = b.RF; + d[c.Jd.jh] = b.jh; + return d; }; - }, function(f, c) { - Object.defineProperty(c, "__esModule", { - value: !0 - }); - c.ml = function() {}; - c.NU = "StringObjectReaderSymbol"; - }, function(f, c) { - Object.defineProperty(c, "__esModule", { - value: !0 - }); - c.O7 = "DebugConfigSymbol"; - c.gJ = "DebugSymbol"; - }, function(f, c, a) { + b.CM = "avc1.640028"; + b.eF = "hev1.1.6.L93.B0"; + b.eca = "dvhe.01000000"; + b.DEa = "dvhe.dtr.uhd60"; + b.fca = "dvhe.05.09"; + b.og = b.eca; + b.sq = b.eF; + b.WV = "mp4a.40.2"; + b.Cub = "ec-3"; + b.GAb = "vp9"; + b.RF = "vp09.00.11.08.02"; + b.QF = "vp09.02.31.10.01"; + b.jh = "av01.0.04M.08"; + b.EEa = [b.fca, b.DEa, b.eca]; + d.vc = b; + }, function(g, d, a) { var b; b = this && this.__extends || function(a, b) { function c() { this.constructor = a; } - for (var d in b) b.hasOwnProperty(d) && (a[d] = b[d]); + for (var f in b) b.hasOwnProperty(f) && (a[f] = b[f]); a.prototype = null === b ? Object.create(b) : (c.prototype = b.prototype, new c()); }; - f = function(a) { + g = function(a) { function c(b) { a.call(this); - this.ha = b; + this.ia = b; } b(c, a); c.create = function(a) { return new c(a); }; - c.Xa = function(a) { - a.Ce.complete(); + c.hb = function(a) { + a.ff.complete(); }; - c.prototype.Ve = function(a) { + c.prototype.zf = function(a) { var b; - b = this.ha; - if (b) return b.lb(c.Xa, 0, { - Ce: a + b = this.ia; + if (b) return b.nb(c.hb, 0, { + ff: a }); a.complete(); }; return c; - }(a(11).pa); - c.jC = f; - }, function(f, c, a) { - var b, d, h, l; - b = a(112); - d = a(398); - h = a(397); - l = a(394); - c.concat = function() { - for (var a = [], c = 0; c < arguments.length; c++) a[c - 0] = arguments[c]; - return 1 === a.length || 2 === a.length && b.hw(a[1]) ? h.from(a[0]) : l.IE()(d.of.apply(void 0, a)); + }(a(10).ta); + d.cF = g; + }, function(g, d, a) { + var b, c, h, k; + b = a(120); + c = a(446); + h = a(445); + k = a(442); + d.concat = function() { + for (var a = [], d = 0; d < arguments.length; d++) a[d - 0] = arguments[d]; + return 1 === a.length || 2 === a.length && b.my(a[1]) ? h.from(a[0]) : k.rH()(c.of.apply(void 0, a)); }; - }, function(f, c) { - Object.defineProperty(c, "__esModule", { + }, function(g, d) { + Object.defineProperty(d, "__esModule", { + value: !0 + }); + d.bm = function() {}; + d.IY = "StringObjectReaderSymbol"; + }, function(g, d) { + Object.defineProperty(d, "__esModule", { + value: !0 + }); + d.Fca = "DebugConfigSymbol"; + d.YE = "DebugSymbol"; + }, function(g, d, a) { + var c, h, k; + + function b() {} + Object.defineProperty(d, "__esModule", { value: !0 }); - c.iC = "EmeConfigSymbol"; - }, function(f, c, a) { - var m; + c = a(167); + h = a(45); + k = a(2); + b.g4 = function(a) { + if (a) { + if (a.includes(d.ZE.az)) return c.hn.az; + if (a.includes("fps")) return c.hn.tC; + if (a.includes(d.ZE.RV)) return c.hn.RV; + } + throw new h.Ub(k.I.OGa, void 0, void 0, void 0, void 0, "Invalid KeySystem: " + a); + }; + b.mra = function(a) { + switch (a) { + case c.hn.az: + return d.ZE.az; + case c.hn.tC: + return d.ZE.tC; + default: + return d.ZE.RV; + } + }; + b.Lo = "com.microsoft.playready"; + b.Wc = "com.microsoft.playready.hardware"; + b.HF = "com.microsoft.playready.software"; + b.Yyb = "com.chromecast.playready"; + b.Zyb = "org.chromium.external.playready"; + b.Vvb = "com.apple.fps.2_0"; + b.EQa = "com.widevine.alpha"; + b.$yb = "com.microsoft.playready.recommendation"; + b.azb = "com.microsoft.playready.recommendation.3000"; + b.bzb = "com.microsoft.playready.recommendation.2000"; + d.bb = b; + d.ZE = { + tC: "fairplay", + RV: "widevine", + az: "playready" + }; + }, function(g, d, a) { + var p; function b(a) { return "function" === typeof a ? a.name : "symbol" === typeof a ? a.toString() : a; } - function d(a, b) { - return null === a.xq ? !1 : a.xq.Td === b ? !0 : d(a.xq, b); + function c(a, b) { + return null === a.ks ? !1 : a.ks.se === b ? !0 : c(a.ks, b); } function h(a) { - function c(a, d) { - void 0 === d && (d = []); - d.push(b(a.Td)); - return null !== a.xq ? c(a.xq, d) : d; + function f(a, c) { + void 0 === c && (c = []); + c.push(b(a.se)); + return null !== a.ks ? f(a.ks, c) : c; } - return c(a).reverse().join(" --\x3e "); + return f(a).reverse().join(" --\x3e "); } - function l(a) { - a.rY.forEach(function(a) { - if (d(a, a.Td)) throw a = h(a), Error(m.Gua + " " + a); - l(a); + function k(a) { + a.l1.forEach(function(a) { + if (c(a, a.se)) throw a = h(a), Error(p.fEa + " " + a); + k(a); }); } - function g(a) { + function f(a) { var b; if (a.name) return a.name; a = a.toString(); b = a.match(/^function\s*([^\s(]+)/); return b ? b[1] : "Anonymous function: " + a; } - Object.defineProperty(c, "__esModule", { + Object.defineProperty(d, "__esModule", { value: !0 }); - m = a(59); - c.$z = b; - c.oma = function(a, b, c) { + p = a(54); + d.IC = b; + d.iua = function(a, b, c) { var d; d = ""; a = c(a, b); 0 !== a.length && (d = "\nRegistered bindings:", a.forEach(function(a) { var b; b = "Object"; - null !== a.ri && (b = g(a.ri)); + null !== a.Wi && (b = f(a.Wi)); d = d + "\n " + b; - a.Fv.pna && (d = d + " - " + a.Fv.pna); + a.PB.zva && (d = d + " - " + a.PB.zva); })); return d; }; - c.aPa = l; - c.w0a = function(a, b) { - var c, d; - if (b.c1() || b.Y0()) { - c = ""; - d = b.XXa(); - b = b.aXa(); - null !== d && (c += d.toString() + "\n"); + d.v_a = k; + d.pdb = function(a, b) { + var f, c; + if (b.Z5() || b.V5()) { + f = ""; + c = b.N9a(); + b = b.I8a(); + null !== c && (f += c.toString() + "\n"); null !== b && b.forEach(function(a) { - c += a.toString() + "\n"; + f += a.toString() + "\n"; }); - return " " + a + "\n " + a + " - " + c; + return " " + a + "\n " + a + " - " + f; } return " " + a; }; - c.getFunctionName = g; - }, function(f, c, a) { - (function() { - var v7A, w, k, x, y, C, F, N, T, n, q, O, B, t, V, D, S; - - function z(a, b, c, d) { - var e7A, D9c; - e7A = 2; - while (e7A !== 1) { - D9c = "pl"; - D9c += "ay"; - D9c += "i"; - D9c += "n"; - D9c += "g"; - switch (e7A) { - case 2: - return D9c === a.cY ? v(a, b, c, d) : r(a, c, d); - break; - } - } - } - v7A = 2; + d.getFunctionName = f; + }, function(g, d, a) { + var h, k, f, p, m, r, u, x, v, y, w, D; - function c(a, b, c) { - var I7A; - I7A = 2; - while (I7A !== 5) { - switch (I7A) { - case 2: - a = n(c.Ph, a * c.t2); - return T(a, b); - break; + function b(a) { + b = y.Qb; + d.vKa = a.appendBuffer ? "appendBuffer" : "append"; + d.TM = !f.config.CYa && !!a.remove; + d.SX = !!a.addEventListener; + } + + function c(a, c, g, v, x, y) { + var w, z; + w = this; + this.j = a; + this.uia = x; + this.UA = !1; + this.Rw = { + data: [], + state: "", + operation: "" + }; + this.type = c; + this.Ii = new m.Pj(); + c = g(this.type); + this.Yja = { + Type: this.type + }; + f.config.$u && (z = !0, this.x3 = new p.jd(!1)); + y.trace("Adding source buffer", this.Yja, { + TypeId: c + }); + this.Yc = v.addSourceBuffer(c); + b(this.Yc); + d.SX && (this.Yc.addEventListener("updatestart", function() { + w.Rw.state = "updatestart"; + }), this.Yc.addEventListener("update", function() { + w.Rw.state = "update"; + }), this.Yc.addEventListener("updateend", function() { + w.UA = !1; + w.yia && w.yia(); + w.Rw.state = "updateend"; + z && w.Yc.buffered.length && (z = !1, w.x3.set(!0)); + }), this.Yc.addEventListener("error", function(b) { + var f; + try { + f = b.target.error && b.target.error.message; + (b.message || f) && y.error("error event received on sourcebuffer", { + mediaErrorMessage: b.message + }); + } catch (S) {} + b = r.ca.get(k.Sj); + a.md(b(u.I.IMa, h.i4(w.type))); + }), this.Yc.addEventListener("abort", function() {})); + a.addEventListener(D.X.closed, function() { + w.Yc = void 0; + }); + } + Object.defineProperty(d, "__esModule", { + value: !0 + }); + h = a(209); + k = a(63); + f = a(9); + p = a(175); + m = a(68); + r = a(3); + a(83); + u = a(2); + a(4); + x = a(12); + v = a(281); + y = a(17); + w = a(15); + D = a(16); + c.prototype.qk = function() { + return this.UA; + }; + c.prototype.updating = function() { + return this.Yc ? this.Yc.updating : !1; + }; + c.prototype.Tza = function(a) { + this.yia = a; + }; + c.prototype.buffered = function() { + return this.Yc.buffered; + }; + c.prototype.toString = function() { + return "SourceBuffer (type: " + this.type + ")"; + }; + c.prototype.toJSON = function() { + return { + type: this.type + }; + }; + c.prototype.AR = function() { + var a, b, f, c, d, m, p; + try { + a = this.Yc.buffered; + d = 0; + if (a) + for (b = [], f = 0, c = a.length, f = 0; f < c; f++) { + m = a.start(f); + p = a.end(f); + d = d + (p - m); + x.sa(p > m); + b.push(m + "-" + p); } - } + if (b) return { + Buffered: d.toFixed(3), + Ranges: b.join("|") + }; + } catch (Y) {} + }; + c.prototype.pma = function(a, b) { + x.sa(this.Yc.buffered && 1 >= this.Yc.buffered.length, "Gaps in media are not allowed: " + JSON.stringify(this.AR())); + x.sa(!this.UA); + this.kAa("append", a); + b = b && b.Kk / 1E3; + w.ja(b) && this.Yc.timestampOffset !== b && (this.Yc.timestampOffset = b); + this.Yc[d.vKa](a); + d.SX && (this.UA = !0); + }; + c.prototype.remove = function(a, b) { + x.sa(!this.UA); + try { + d.TM && (this.kAa("remove"), this.Yc.remove(a, b), d.SX && (this.UA = !0)); + } catch (P) { + r.log.error("SourceBuffer remove exception", P, this.Yja); } - - function l(a) { - var m7A; - m7A = 2; - while (m7A !== 5) { - switch (m7A) { - case 2: - a.cf = D.iYa(a); - return w.wb(a.cf) ? !0 : !1; - break; - } + }; + c.prototype.kAa = function(a, b) { + this.Rw.data = b || []; + this.Rw.state = "init"; + this.Rw.operation = a; + }; + c.prototype.C$ = function() {}; + c.prototype.appendBuffer = function(a) { + this.j.Gh.GXa(this, a); + return !0; + }; + c.prototype.yP = function(a) { + v.tPa("MediaRequest {0} readystate: {1}", a.Vi(), a.readyState); + this.j.Gh.yP(a); + return !0; + }; + c.prototype.endOfStream = function() {}; + c.prototype.addEventListener = function(a, b, f) { + this.Ii.addListener(a, b, f); + }; + c.prototype.removeEventListener = function(a, b) { + this.Ii.removeListener(a, b); + }; + na.Object.defineProperties(c.prototype, { + P: { + configurable: !0, + enumerable: !0, + get: function() { + return this.type; } - } - - function h(a, b) { - var K82 = v7AA; - var N7A, c, c9c, J9c, g7A, F7A; - N7A = 2; - while (N7A !== 9) { - c9c = "s"; - c9c += "i"; - c9c += "g"; - c9c += "m"; - c9c += "oid"; - J9c = "l"; - J9c += "o"; - J9c += "g"; - switch (N7A) { - case 1: - N7A = 0 === b.NQ.lastIndexOf(J9c, 0) ? 5 : 3; - break; - case 2: - K82.I9c(5); - g7A = K82.a9c(100013, 3, 2, 100008); - K82.o9c(1); - F7A = K82.H9c(13, 1013); - a = q(a, 0, g7A) / F7A; - N7A = 1; - break; - case 5: - c = b.Uqa[b.NQ]; - return c && 2 == c.length ? 1E3 * (c[0] + c[1] * Math.log(1 + a)) : b.pq; - break; - case 3: - return 0 === b.NQ.lastIndexOf(c9c, 0) ? (c = b.Uqa[b.NQ]) && 2 == c.length ? 1E3 * (c[0] + c[1] * V(a)) : b.pq : b.pq; - break; - } + }, + MP: { + configurable: !0, + enumerable: !0, + get: function() { + return this.uia.MP; } - } - - function g(a, b, d) { - var U7A, r, g, p, f, O9c, e9c, m9c; - U7A = 2; - while (U7A !== 17) { - O9c = "no_his"; - O9c += "t_thr"; - O9c += "oughput"; - e9c = "hist"; - e9c += "_thro"; - e9c += "ughput"; - m9c = "hist_"; - m9c += "t"; - m9c += "di"; - m9c += "ge"; - m9c += "st"; - switch (U7A) { - case 2: - U7A = d.filter(function(a) { - var t7A; - t7A = 2; - while (t7A !== 1) { - switch (t7A) { - case 2: - return 110 >= a.je && 0 < a.je; - break; - case 4: - return 385 > a.je || 9 <= a.je; - break; - t7A = 1; - break; - } - } - }).length < d.length ? 1 : 5; - break; - case 7: - g.Qk = b.Cj ? b.Cj : 0; - r = S(g.Qj, {}); - U7A = 14; - break; - case 1: - return m(a, b, d); - break; - case 14: - U7A = w.da(a.OQ) && 0 <= a.OQ && 100 >= a.OQ && !w.S(r) && !w.Ja(r) && l(r) ? 13 : 20; - break; - case 5: - g = new O(); - g.Lb = d[0]; - b = g.Lb.ma || {}; - p = 0; - g.Qj = b.Cj && b.dk; - U7A = 7; - break; - case 13: - p = r.cf(a.OQ / 100) || g.Lb.ia, g.Ws = p, g.reason = m9c; - U7A = 12; - break; - case 19: - p = g.Lb.ia, g.Ws = b.ia, g.reason = e9c; - U7A = 12; - break; - case 20: - U7A = b.ia && g.Lb.ia ? 19 : 18; - break; - case 12: - f = h(p, a); - g.Lb = B(d.reverse(), function(b) { - var G7A, d; - G7A = 2; - while (G7A !== 3) { - switch (G7A) { - case 1: - G7A = (b = d < f && b.je > a.Ana && b.je < a.Y1a) ? 5 : 4; - break; - case 5: - g.YF = d; - G7A = 4; - break; - case 6: - g.YF = d; - G7A = 1; - break; - G7A = 4; - break; - case 2: - d = c(b.J, p, a); - G7A = 1; - break; - case 4: - return b; - break; - } - } - }) || d[0]; - return g; - break; - case 18: - return g.Lb = B(d, function(b) { - var r7A; - r7A = 2; - while (r7A !== 1) { - switch (r7A) { - case 4: - return b.je >= a.Ana; - break; - r7A = 1; - break; - case 2: - return b.je > a.Ana; - break; - } - } - }) || d[0], g.Ws = void 0, g.reason = O9c, g; - break; - } + }, + sourceId: { + configurable: !0, + enumerable: !0, + get: function() { + return this.uia.sourceId; } } + }); + d.afa = c; + }, function(g, d, a) { + var b, c, h, k, f, p, m, r, u; + Object.defineProperty(d, "__esModule", { + value: !0 + }); + g = a(19); + b = a(287); + c = a(9); + h = a(5); + k = a(2); + f = a(12); + p = a(3); + m = a(18); + r = a(69); + u = a(88); + d.Yg = {}; + A._cad_global || (A._cad_global = {}); + A._cad_global.controlProtocol = d.Yg; + g.Ge(k.I.Jda, function(a) { + var r, k, g; + f.sa(c.config); + r = p.zd("ControlProtocol"); + k = c.config.Bg; + f.sa(k); + g = p.ca.get(u.Ms); + r.info("Creating EDGE instance", { + Endpoint: g.endpoint + k.Qva, + Path: k.Bpa + }); + m.La(d.Yg, new b.WEa(r)); + a(h.Bb); + }); + d.JCb = p.ca.get(r.AM); + d.ICb = "1"; + d.KCb = "2"; + d.LCb = "3"; + d.HCb = "4"; + }, function(g, d) { + Object.defineProperty(d, "__esModule", { + value: !0 + }); + d.fN = "PboPublisherSymbol"; + }, function(g) { + var k, f, p, m; - function r(a, b, c) { - var k7A, g, h, p, m, k9c, X9c; - k7A = 2; + function d() { + d.Ac.call(this); + } - function d(b) { - var l7A, c, z9c; - l7A = 2; - while (l7A !== 8) { - z9c = "bu"; - z9c += "f"; - z9c += "f_lt_hi"; - z9c += "st"; - switch (l7A) { - case 4: - m = z9c; - p = c; - return !0; - break; - case 1: - l7A = !c || (b.J > g.J ? a.ncb : 1) * b.J > c ? 5 : 4; - break; - case 2: - c = b.ia; - l7A = 1; - break; - case 5: - return !1; - break; - } - } - } - while (k7A !== 7) { - k9c = "no_fea"; - k9c += "sible_st"; - k9c += "ream"; - X9c = "Must"; - X9c += " have at "; - X9c += "least one s"; - X9c += "elected stream"; - switch (k7A) { - case 3: - b.Lb = g; - h !== g && (b.reason = m, b.Ws = p); - return b; - break; - case 2: - N(!w.S(c), X9c); - g = b[c], h = g; - g.ia && (g = B(b.slice(0, Math.min(c + (a.pMa ? 2 : 1), b.length)).reverse(), d), void 0 === g && (g = b[0], m = k9c, p = g.ia)); - b = new O(); - k7A = 3; - break; - } - } - } + function a(a, b, f, c) { + var m, p; + if ("function" !== typeof f) throw new TypeError('The "listener" argument must be of type Function. Received type ' + typeof f); + m = a.Qg; + void 0 === m ? (m = a.Qg = Object.create(null), a.Vw = 0) : (void 0 !== m.DGb && (a.emit("newListener", b, f.listener ? f.listener : f), m = a.Qg), p = m[b]); + void 0 === p ? (m[b] = f, ++a.Vw) : ("function" === typeof p ? p = m[b] = c ? [f, p] : [p, f] : c ? p.unshift(f) : p.push(f), f = void 0 === a.qG ? d.nDb : a.qG, 0 < f && p.length > f && !p.Gsb && (p.Gsb = !0, f = Error("Possible EventEmitter memory leak detected. " + p.length + " " + String(b) + " listeners added. Use emitter.setMaxListeners() to increase limit"), f.name = "MaxListenersExceededWarning", f.BDb = a, f.type = b, f.count = p.length, console && console.warn && console.warn(f))); + return a; + } - function v(a, b, c, d, g, h) { - var P7A, r, f, v, x, y, z, X, G, T, U, n, ca, q, Z, ha, D, ba, ea, V, t, ja, S, V9c, A9c; - P7A = 2; - while (P7A !== 25) { - V9c = "pla"; - V9c += "yer m"; - V9c += "iss"; - V9c += "ing streamingIndex"; - A9c = "Must have at least one se"; - A9c += "lected str"; - A9c += "eam"; - switch (P7A) { - case 9: - return u.call(this, c); - break; - case 2: - N(!w.S(d), A9c); - N(w.da(b.al), V9c); - r = new O(), f = g = c[d], v = b.buffer.X, x = b.buffer.me, y = b.buffer.Ka, z = b.buffer.Qi, X = b.al, G = z - x, n = this.dL || k.xJ.ng, ca = b.state === k.xa.nf || b.state === k.xa.sn ? b.buffer.Mw : 0, q = a.p2, Z = a.pw ? a.pw : 1E3, ba = p(g.T, X, a.u0), ea = p(g.T, X + ba, a.O1); - this.Uda || (this.Uda = Math.min(g.J, a.qP)); - P7A = 3; - break; - case 15: - P7A = g.T && g.T.length ? 27 : 20; - break; - case 13: - P7A = d + 1 < c.length ? 12 : 16; - break; - case 11: - G = a.t5 && G >= a.w6 ? c.length : d + 2, V = p(g.T, X, a.w0), t = p(g.T, X + V, a.Q1); - P7A = 10; - break; - case 14: - P7A = (n = m(g, c[Math.max(d - 1, 0)], g, ba, ea, !1)) ? 13 : 15; - break; - case 3: - P7A = n == k.xJ.IFa || !g.ia ? 9 : 8; - break; - case 12: - P7A = l.call(this, G, y) ? 11 : 20; - break; - case 20: - r.Lb = g || f; - r.KE = ha; - r.lSa = !n; - return r; - break; - case 10: - g = B(c.slice(d + 1, G), function(a, b) { - var j7A; - j7A = 2; - while (j7A !== 1) { - switch (j7A) { - case 4: - return m(a, c[d * b], f, V, t, ~7); - break; - j7A = 1; - break; - case 2: - return m(a, c[d + b], f, V, t, !1); - break; - } - } - }); - P7A = 20; - break; - case 27: - ja = p(g.T, X, a.v0), S = p(g.T, X + ja, a.P1); - P7A = 26; - break; - case 8: - g.T && g.T.length || (g.sR = !0); - T = C.from(b.buffer.T); - U = b.buffer.Av - T.Yf; - P7A = 14; - break; - case 16: - ha = !0; - P7A = 20; - break; - case 26: - (g = B(c.slice(0, d).reverse(), function(a, b) { - var W7A; - W7A = 2; - while (W7A !== 1) { - switch (W7A) { - case 2: - return m(a, c[Math.max(d - b - 2, 0)], f, ja, S, !0); - break; - } - } - })) || (g = c[0], ha = !0); - P7A = 20; - break; - } - } - - function m(c, d, g, p, m, l) { - var m93 = v7AA; - var w7A, u, w, ea, k, n, ha, S, C, O, V, ja, B, ba, t, G, f, n1c, R1c, P1c, S1c, x1c, E1c, B1c, u1c, M1c, w1c, i9c; - w7A = 2; - while (w7A !== 49) { - n1c = "First s"; - n1c += "tream not in "; - n1c += "ra"; - n1c += "nge"; - R1c = "First "; - R1c += "stream u"; - R1c += "n"; - R1c += "a"; - R1c += "vailable"; - P1c = "First stream "; - P1c += "u"; - P1c += "ndefined"; - S1c = "Secon"; - S1c += "d stream n"; - S1c += "ot"; - S1c += " in range"; - x1c = "Second s"; - x1c += "tream una"; - x1c += "vail"; - x1c += "able"; - E1c = "Sec"; - E1c += "ond stream undef"; - E1c += "ined"; - B1c = "First "; - B1c += "stream has fa"; - B1c += "iled"; - u1c = "Se"; - u1c += "cond stre"; - u1c += "am has "; - u1c += "fail"; - u1c += "ed"; - switch (w7A) { - case 43: - ja || (u = c); - V = []; - w7A = 41; - break; - case 3: - w7A = !l || !C ? 9 : 13; - break; - case 30: - m = !1; - w7A = 29; - break; - case 29: - m && (m.result && (r.U1 = m.T1), a.VH || (c.Ok = !!m.Ok)); - D = { - fVa: m && m.result, - ia: f, - J: c.J - }; - return m && m.result; - break; - case 9: - w7A = C && !a.VH ? 8 : 6; - break; - case 1: - w7A = D && !D.fVa && D.ia >= f && D.J <= c.J ? 5 : 4; - break; - case 52: - a: { - M1c = " ";M1c += "/";M1c += " ";M1c += "1";M1c += "6";w1c = " ";w1c += ">= fragmen";w1c += "tsLengt";w1c += "h: ";i9c = "StreamingI";i9c += "nde";i9c += "x:";i9c += " ";u = w.concat(V).view;w = k;m93.o9c(0);ea = m93.a9c(d, ha);k = a.CG;n = a.VH;ha = Math.min(u.byteLength, 16 * (d + ha + O));m93.o9c(1);C = m93.H9c(w, C);O = Infinity;V = t = 0;ja = u.getUint16(14);m93.I9c(0);l = m93.H9c(ja, l);m93.I9c(2);ja = m93.H9c(g, 0, p, 8);m93.o9c(3);g = m93.a9c(p, 0, 8);d >= ha / 16 && F.error(i9c + d + w1c + ha + M1c);w += ja;0 === G && (w = 0);d *= 16; - for (p = 16 * ea; d < ha;) { - ea = u.getUint32(d); - m93.o9c(0); - S = u.getUint16(m93.a9c(d, 14)); - if (B < ea) { - for (t = Math.max(ea, m); B < t;) { - w = l; - B += u.getUint32(V); - V += 16; - ja = u.getUint16(V + 14); - l += ja; - } - if (!n && (ja = G - w, ja < k)) { - m = { - result: !1, - T1: ja, - Ok: !1 - }; - break a; - } - m93.I9c(1); - ja = m93.H9c(w, G); - } else if (ja = Math.max(G - w, 0), ja < ba && ja < t) { - m = { - result: !1, - T1: Math.min(ja, O), - Ok: !0 - }; - break a; - } - m93.I9c(3); - w += m93.H9c(ea, 0, g); - G += S; - for (B -= ea; l < w && V < d;) { - B += u.getUint32(V); - V += 16; - l += u.getUint16(V + 14); - } - d += 16; - if (d >= p && ja > C) break; - t = ja; - O = Math.min(ja, O); - } - m = { - result: !0, - T1: O, - Ok: !0 - }; - } - w7A = 29; - break; - case 20: - d = T.length; - g = ca; - B = U, ha = p, O = m, ba = Z; - w7A = 17; - break; - case 33: - N(!u.fh, u1c); - m93.I9c(4); - N(m93.H9c(V, d)); - w7A = 31; - break; - case 14: - return !0; - break; - case 36: - w7A = 0 < ea ? 54 : 53; - break; - case 22: - N(!c.fh, B1c); - N(u, E1c); - N(u.Ye, x1c); - N(u.inRange, S1c); - w7A = 33; - break; - case 17: - m = b.JTa; - ea = b.C1a; - w7A = 15; - break; - case 7: - return !0; - break; - case 8: - w7A = f >= Math.max(c.tG, c.J * u) && !c.ZQ ? 7 : 13; - break; - case 31: - w7A = !p || p < c.J * a.t0 || !t ? 30 : 43; - break; - case 38: - t = Math.min(ea, c.T.length - n), V.push(c.T.slice(n, n + t)), ea -= t, n += t, n >= c.T.length && (n = 0); - w7A = 39; - break; - case 54: - t = Math.min(ea, u.T.length - n), V.push(u.T.slice(n, n + t)), ea -= t, n += t, n >= u.T.length && (n = 0); - w7A = 36; - break; - case 50: - ha = Math.min(ha, c.T.length - n), O = Math.min(O, u.T.length - n - ha), 0 < ha && V.push(c.T.slice(n, n + ha)), 0 < O && V.push(u.T.slice(n + ha, n + ha + O)); - w7A = 53; - break; - case 40: - ea = ha; - w7A = 39; - break; - case 15: - p = c.ia; - V = w.length, t = c.T && c.T.length, ja = u.T && u.T.length; - a.V1 && (ba = Math.min(ba, C - k)); - N(c, P1c); - N(c.Ye, R1c); - N(c.inRange, n1c); - w7A = 22; - break; - case 37: - ea = O; - w7A = 36; - break; - case 4: - l || C || (c.sR = !0); - w7A = 3; - break; - case 13: - g = !a.PY || c === g || c.Wb === g.Wb && h ? 0 : (g = c.ma) && g.he && g.he.ta ? g.he.ta + a.LY * (g.he.cg ? Math.sqrt(g.he.cg) : 0) : 0; - u = d, w = T, k = x + g - v; - l = q; - C = z - v, G = y - v, n = X; - w7A = 20; - break; - case 6: - w7A = f >= c.J * u ? 14 : 13; - break; - case 41: - w7A = ea ? 40 : 50; - break; - case 39: - w7A = 0 < ea ? 38 : 37; - break; - case 2: - f = c.ia, u = l ? a.d_ : a.zN, C = c.T && c.T.length; - w7A = 1; - break; - case 53: - w7A = 0 < ha || 0 < O ? 52 : 51; - break; - case 51: - m = p > c.tG ? { - result: !0, - D1a: 0, - Ok: !0 - } : { - result: !1, - D1a: 0, - Ok: !0 - }; - w7A = 29; - break; - case 5: - return !1; - break; - } - } - } - - function p(a, b, c) { - var A7A, d; - A7A = 2; - while (A7A !== 8) { - switch (A7A) { - case 2: - d = 0; - A7A = 1; - break; - case 5: - A7A = 0 < c && b < a.length ? 4 : 9; - break; - case 1: - A7A = a && a.length ? 5 : 9; - break; - case 4: - c -= a.hF(b); - A7A = 3; - break; - case 3: - ++b, ++d; - A7A = 5; - break; - case 9: - return d; - break; - } - } - } + function b() { + for (var a = [], b = 0; b < arguments.length; b++) a.push(arguments[b]); + this.wqa || (this.target.removeListener(this.type, this.vCa), this.wqa = !0, f(this.listener, this.target, a)); + } - function l(b, c) { - var h7A; - h7A = 2; - while (h7A !== 1) { - switch (h7A) { - case 2: - return b > a.ow && (w.S(this.co) || this.rA > this.co || c - this.co > a.dP && b > a.S1); - break; - } - } - } - } - while (v7A !== 5) { - switch (v7A) { - case 2: - w = a(10), k = a(13), x = a(41), y = a(9), C = a(176), F = x.console, N = x.assert, T = x.N2a, n = x.dOa, q = x.FE, O = x.gm, B = x.AMa, t = x.yX, V = a(35).i$a, D = a(177), S = a(44); - f.P = { - STARTING: function(a, b, c) { - var q7A, Q1c; - q7A = 2; - while (q7A !== 1) { - Q1c = "hist"; - Q1c += "o"; - Q1c += "ric"; - Q1c += "a"; - Q1c += "l"; - switch (q7A) { - case 2: - return Q1c === a.L0 ? p(a, b, c) : a.sfa ? g(a, b, c) : m(a, b, c); - break; - } - } - }, - BUFFERING: z, - REBUFFERING: z, - PLAYING: v, - PAUSED: v - }; - v7A = 5; - break; - } - } + function c(a, f, c) { + a = { + wqa: !1, + vCa: void 0, + target: a, + type: f, + listener: c + }; + f = b.bind(a); + f.listener = c; + return a.vCa = f; + } - function u(a) { - var R7A, b, c; - R7A = 2; - while (R7A !== 3) { - switch (R7A) { - case 2: - b = new O(), c = this.Uda; - b.Lb = B(a, function(a) { - var O7A; - O7A = 2; - while (O7A !== 1) { - switch (O7A) { - case 4: - return a.J > c; - break; - O7A = 1; - break; - case 2: - return a.J >= c; - break; - } - } - }) || a[a.length - 1]; - b.KE = !0; - return b; - break; - } - } + function h(a) { + var b; + b = this.Qg; + if (void 0 !== b) { + a = b[a]; + if ("function" === typeof a) return 1; + if (void 0 !== a) return a.length; } - - function m(a, d, g) { - var Y7A, h, p; - Y7A = 2; - while (Y7A !== 3) { - switch (Y7A) { - case 2: - h = new O(); - p = Math.max(a.JA, a.qP, d.V0 ? a.E2 : -Infinity); - h.Lb = B(g.filter(function(b) { - var y7A; - y7A = 2; - while (y7A !== 1) { - switch (y7A) { - case 2: - return b.J <= a.CA; - break; - case 4: - return b.J < a.CA; - break; - y7A = 1; - break; - } - } - }).reverse(), function(d) { - var x7A, g, m, l, s1c, F1c, j1c, W1c; - x7A = 2; - while (x7A !== 7) { - s1c = "no_his"; - s1c += "tor"; - s1c += "ical_lte_minbitrat"; - s1c += "e"; - F1c = "his"; - F1c += "t_tpu"; - F1c += "t_lt_mi"; - F1c += "nbitra"; - F1c += "te"; - j1c = "lt_hist_lte_"; - j1c += "m"; - j1c += "inbi"; - j1c += "tra"; - j1c += "te"; - W1c = "his"; - W1c += "t"; - W1c += "_bu"; - W1c += "fftime"; - switch (x7A) { - case 2: - g = { - ia: d.ia, - Cj: d.ma && d.ma.Cj, - dk: d.ma && d.ma.dk - }; - x7A = 1; - break; - case 5: - d = d.J; - l = g.ia; - x7A = 3; - break; - case 3: - l ? (m = b(a, d), c(d, l, a) <= m ? (h.Ws = l, g && (h.Qk = g.Cj ? g.Cj : 0, h.Qj = g.Cj && g.dk), h.reason = W1c, g = !0) : g = !1) : g = !1; - x7A = 9; - break; - case 8: - m = g.ia, d.J <= m ? (h.Ws = m, g && (h.Qk = g.Cj ? g.Cj : 0, h.Qj = g.Cj ? g.dk : void 0), h.reason = j1c, g = !0) : m ? (h.Ws = m, g && (h.Qk = g.Cj ? g.Cj : 0, h.Qj = g.Cj ? g.dk : void 0), h.reason = F1c, g = !1) : (h.reason = s1c, g = !0); - x7A = 9; - break; - case 1: - x7A = d.J > p ? 5 : 8; - break; - case 9: - return g; - break; - } - } - }) || g[0]; - return h; - break; - } - } + return 0; + } + k = "object" === typeof Reflect ? Reflect : null; + f = k && "function" === typeof k.apply ? k.apply : function(a, b, f) { + return Function.prototype.apply.call(a, b, f); + }; + p = Number.isNaN || function(a) { + return a !== a; + }; + g.M = d; + d.EventEmitter = d; + d.prototype.Qg = void 0; + d.prototype.Vw = 0; + d.prototype.qG = void 0; + m = 10; + Object.defineProperty(d, "defaultMaxListeners", { + enumerable: !0, + get: function() { + return m; + }, + set: function(a) { + if ("number" !== typeof a || 0 > a || p(a)) throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received ' + a + "."); + m = a; } - - function p(a, b, c) { - var C7A, d, y1c, Y1c; - C7A = 2; - while (C7A !== 7) { - y1c = "v"; - y1c += "b"; - Y1c = "hist_bi"; - Y1c += "tr"; - Y1c += "at"; - Y1c += "e"; - switch (C7A) { - case 5: - return a.sfa ? g(a, b, c) : m(a, b, c); - break; - case 1: - C7A = void 0 === d ? 5 : 4; - break; - case 4: - a = new O(); - a.Lb = B(c.reverse(), function(a) { - var T7A; - T7A = 2; - while (T7A !== 1) { - switch (T7A) { - case 2: - return a.J <= d; - break; - case 4: - return a.J >= d; - break; - T7A = 1; - break; - } - } - }) || c[0]; - a.reason = Y1c; - return a; - break; - case 2: - d = y.storage.get(y1c); - C7A = 1; - break; - } - } + }); + d.Ac = function() { + if (void 0 === this.Qg || this.Qg === Object.getPrototypeOf(this).Qg) this.Qg = Object.create(null), this.Vw = 0; + this.qG = this.qG || void 0; + }; + d.prototype.setMaxListeners = function(a) { + if ("number" !== typeof a || 0 > a || p(a)) throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received ' + a + "."); + this.qG = a; + return this; + }; + d.prototype.emit = function(a) { + var d, c, m; + for (var b = [], c = 1; c < arguments.length; c++) b.push(arguments[c]); + d = "error" === a; + c = this.Qg; + if (void 0 !== c) d = d && void 0 === c.error; + else if (!d) return !1; + if (d) { + 0 < b.length && (m = b[0]); + if (m instanceof Error) throw m; + b = Error("Unhandled error." + (m ? " (" + m.message + ")" : "")); + b.context = m; + throw b; } - - function b(a, b) { - var H7A, c, d; - H7A = 2; - while (H7A !== 13) { - switch (H7A) { - case 2: - H7A = a.BO ? 1 : 14; - break; - case 1: - c = a.BO, d = t(c, function(a) { - var X7A; - X7A = 2; - while (X7A !== 1) { - switch (X7A) { - case 4: - return b < a.r; - break; - X7A = 1; - break; - case 2: - return b <= a.r; - break; - } - } - }); - H7A = 5; - break; - case 4: - return c[0].d; - break; - case 5: - H7A = 0 === d ? 4 : 3; - break; - case 3: - H7A = -1 === d ? 9 : 8; - break; - case 14: - return a.pq; - break; - case 9: - return c[c.length - 1].d; - break; - case 8: - v7AA.o9c(1); - a = c[v7AA.H9c(1, d)]; - c = c[d]; - return Math.floor(a.d + (c.d - a.d) * (b - a.r) / (c.r - a.r)); - break; - } - } + c = c[a]; + if (void 0 === c) return !1; + if ("function" === typeof c) f(c, this, b); + else { + m = c.length; + for (var d = Array(m), p = 0; p < m; ++p) d[p] = c[p]; + for (c = 0; c < m; ++c) f(d[c], this, b); } - }()); - }, function(f, c, a) { - var h, l, g, m, p, r, u, v, z, w, k, x; - - function b(a) { - b = k.Gb; - c.dAa = a.appendBuffer ? "appendBuffer" : "append"; - c.DC = !g.config.sNa && !!a.remove; - c.QT = !!a.addEventListener; - } - - function d(a, d, f, u, x, z) { - var y, C; - y = this; - this.L = a; - this.sca = x; - this.By = !1; - this.Mu = { - data: [], - state: "", - operation: "" - }; - this.type = d; - this.bi = new p.Ci(); - d = f(this.type); - this.Mda = { - Type: this.type - }; - g.config.uA && (C = !0, this.o_ = new m.sd(!1)); - z.trace("Adding source buffer", this.Mda, { - TypeId: d - }); - this.Wc = u.addSourceBuffer(d); - b(this.Wc); - c.QT && (this.Wc.addEventListener("updatestart", function() { - y.Mu.state = "updatestart"; - }), this.Wc.addEventListener("update", function() { - y.Mu.state = "update"; - }), this.Wc.addEventListener("updateend", function() { - y.By = !1; - y.wca && y.wca(); - y.Mu.state = "updateend"; - C && y.Wc.buffered.length && (C = !1, y.o_.set(!0)); - }), this.Wc.addEventListener("error", function(b) { - var c; - try { - c = b.target.error && b.target.error.message; - (b.message || c) && z.error("error event received on sourcebuffer", { - mediaErrorMessage: b.message - }); - } catch (V) {} - a.Hh(new l.rj(v.v.wCa, h.L_(y.type))); - }), this.Wc.addEventListener("abort", function() {})); - a.addEventListener(r.YJ, function() { - y.Wc = void 0; - }); - } - Object.defineProperty(c, "__esModule", { - value: !0 - }); - h = a(181); - l = a(51); - g = a(4); - m = a(180); - p = a(57); - r = a(16); - u = a(3); - a(83); - v = a(2); - a(7); - z = a(8); - w = a(307); - k = a(14); - x = a(15); - d.prototype.Nj = function() { - return this.By; + return !0; }; - d.prototype.updating = function() { - return this.Wc ? this.Wc.updating : !1; + d.prototype.addListener = function(b, f) { + return a(this, b, f, !1); }; - d.prototype.era = function(a) { - this.wca = a; + d.prototype.on = d.prototype.addListener; + d.prototype.Oxa = function(b, f) { + return a(this, b, f, !0); }; - d.prototype.buffered = function() { - return this.Wc.buffered; + d.prototype.once = function(a, b) { + if ("function" !== typeof b) throw new TypeError('The "listener" argument must be of type Function. Received type ' + typeof b); + this.on(a, c(this, a, b)); + return this; }; - d.prototype.toString = function() { - return "SourceBuffer (type: " + this.type + ")"; + d.prototype.Rjb = function(a, b) { + if ("function" !== typeof b) throw new TypeError('The "listener" argument must be of type Function. Received type ' + typeof b); + this.Oxa(a, c(this, a, b)); + return this; }; - d.prototype.toJSON = function() { - return { - type: this.type - }; + d.prototype.removeListener = function(a, b) { + var f, c, d, m, p; + if ("function" !== typeof b) throw new TypeError('The "listener" argument must be of type Function. Received type ' + typeof b); + c = this.Qg; + if (void 0 === c) return this; + f = c[a]; + if (void 0 === f) return this; + if (f === b || f.listener === b) 0 === --this.Vw ? this.Qg = Object.create(null) : (delete c[a], c.removeListener && this.emit("removeListener", a, f.listener || b)); + else if ("function" !== typeof f) { + d = -1; + for (m = f.length - 1; 0 <= m; m--) + if (f[m] === b || f[m].listener === b) { + p = f[m].listener; + d = m; + break; + } if (0 > d) return this; + if (0 === d) f.shift(); + else { + for (; d + 1 < f.length; d++) f[d] = f[d + 1]; + f.pop(); + } + 1 === f.length && (c[a] = f[0]); + void 0 !== c.removeListener && this.emit("removeListener", a, p || b); + } + return this; }; - d.prototype.WN = function() { - var a, b, d, g, h, p, m; - try { - a = this.Wc.buffered; - h = 0; - if (a) - for (b = [], d = 0, g = a.length, d = 0; d < g; d++) { - p = a.start(d); - m = a.end(d); - h = h + (m - p); - z.ea(m > p); - b.push(p + "-" + m); - } - c.DC && z.ea(85 > h, "Source buffer is too big, size is " + h + ", should not be more than 85"); - if (b) return { - Buffered: h.toFixed(3), - Ranges: b.join("|") - }; - } catch (O) {} - }; - d.prototype.Nfa = function(a, b) { - z.ea(this.Wc.buffered && 1 >= this.Wc.buffered.length, "Gaps in media are not allowed: " + JSON.stringify(this.WN())); - z.ea(!this.By); - this.pra("append", a); - b = b && b.mh / 1E3; - x.da(b) && this.Wc.timestampOffset !== b && (this.Wc.timestampOffset = b); - this.Wc[c.dAa](a); - c.QT && (this.By = !0); - }; - d.prototype.remove = function(a, b) { - z.ea(!this.By); - try { - c.DC && (this.pra("remove"), this.Wc.remove(a, b), c.QT && (this.By = !0)); - } catch (F) { - u.log.error("SourceBuffer remove exception", F, this.Mda); + d.prototype.lhb = d.prototype.removeListener; + d.prototype.removeAllListeners = function(a) { + var b, f, c; + f = this.Qg; + if (void 0 === f) return this; + if (void 0 === f.removeListener) return 0 === arguments.length ? (this.Qg = Object.create(null), this.Vw = 0) : void 0 !== f[a] && (0 === --this.Vw ? this.Qg = Object.create(null) : delete f[a]), this; + if (0 === arguments.length) { + b = Object.keys(f); + for (f = 0; f < b.length; ++f) c = b[f], "removeListener" !== c && this.removeAllListeners(c); + this.removeAllListeners("removeListener"); + this.Qg = Object.create(null); + this.Vw = 0; + return this; + } + b = f[a]; + if ("function" === typeof b) this.removeListener(a, b); + else if (void 0 !== b) + for (f = b.length - 1; 0 <= f; f--) this.removeListener(a, b[f]); + return this; + }; + d.prototype.listeners = function(a) { + var b; + b = this.Qg; + if (void 0 === b) a = []; + else if (a = b[a], void 0 === a) a = []; + else if ("function" === typeof a) a = [a.listener || a]; + else { + for (var b = Array(a.length), f = 0; f < b.length; ++f) b[f] = a[f].listener || a[f]; + a = b; } + return a; }; - d.prototype.pra = function(a, b) { - this.Mu.data = b || []; - this.Mu.state = "init"; - this.Mu.operation = a; + d.listenerCount = function(a, b) { + return "function" === typeof a.listenerCount ? a.listenerCount(b) : h.call(a, b); }; - d.prototype.k5 = function() {}; - d.prototype.appendBuffer = function(a) { - this.L.bf.uMa(this, a); - return !0; + d.prototype.listenerCount = h; + }, function(g, d) { + Object.defineProperty(d, "__esModule", { + value: !0 + }); + d.AGa = function() { + this.AUDIO = 0; + this.VIDEO = 1; + this.KM = 2; + this.Cg = function() {}; }; - d.prototype.fM = function(a) { - w.bFa("MediaRequest {0} readystate: {1}", a.oi(), a.readyState); - this.L.bf.fM(a); - return !0; + d.Mca = "DownloadTrackConstructorFactorySymbol"; + }, function(g, d) { + function a() {} + Object.defineProperty(d, "__esModule", { + value: !0 + }); + a.DFa = "display"; + a.qEa = "console"; + a.lzb = "remote"; + a.PX = "memory"; + a.DQa = "writer"; + d.gA = a; + }, function(g, d) { + Object.defineProperty(d, "__esModule", { + value: !0 + }); + d.sF = "LicenseProviderSymbol"; + }, function(g, d, a) { + var c, h; + + function b(a) { + switch (a) { + case c.H.kF: + return "http"; + case c.H.lF: + return "connectiontimeout"; + case c.H.hw: + return "readtimeout"; + case c.H.yX: + return "corruptcontent"; + case c.H.Vs: + return "abort"; + case c.H.$z: + case c.H.CX: + return "unknown"; + } + } + Object.defineProperty(d, "__esModule", { + value: !0 + }); + c = a(2); + h = a(6); + d.Gra = b; + d.Lra = function(a, f) { + a = { + errorcode: a + (f.errorCode || c.I.Sh) + }; + f.T && (a.errorsubcode = f.T); + f.ic && (a.errorextcode = f.ic); + f.oC && (a.erroredgecode = f.oC); + f.Ja && (a.errordetails = f.Ja); + f.Bh && (a.httperr = f.Bh); + f.rT && (a.aseneterr = f.rT); + f.Pn && (a.errordata = f.Pn); + f.DJ && (a.mediaerrormessage = f.DJ); + (f = b(Number(f.T))) && (a.nwerr = f); + return a; }; - d.prototype.endOfStream = function() {}; - d.prototype.addEventListener = function(a, b, c) { - this.bi.addListener(a, b, c); + d.Ura = function() { + return { + screensize: h.xq.width + "x" + h.xq.height, + screenavailsize: h.xq.availWidth + "x" + h.xq.availHeight, + clientsize: A.innerWidth + "x" + A.innerHeight + }; }; - d.prototype.removeEventListener = function(a, b) { - this.bi.removeListener(a, b); + }, function(g, d) { + Object.defineProperty(d, "__esModule", { + value: !0 + }); + (d.Gca || (d.Gca = {})).PboDebugEvent = "PboDebugEvent"; + d.BW = { + gKa: "Manifest", + Event: "Event", + Vwb: "Logblob" }; - pa.Object.defineProperties(d.prototype, { - O: { - configurable: !0, - enumerable: !0, + }, function(g) { + g.M = function(d) { + return { + minInitVideoBitrate: d.gv, + minHCInitVideoBitrate: d.F7, + maxInitVideoBitrate: d.zy, + minInitAudioBitrate: d.IJ, + maxInitAudioBitrate: d.xJ, + minHCInitAudioBitrate: d.HJ, + minAcceptableVideoBitrate: d.cT, + minRequiredBuffer: d.JJ, + minPrebufSize: d.ki, + rebufferingFactor: d.m9, + useMaxPrebufSize: d.Vaa, + maxPrebufSize: d.mD, + maxRebufSize: d.p7, + maxBufferingTime: d.Zr, + minAudioMediaRequestSizeBytes: d.dT, + minVideoMediaRequestSizeBytes: d.kT, + initialBitrateSelectionCurve: d.iS, + initSelectionLowerBound: d.bta, + initSelectionUpperBound: d.cta, + throughputPercentForAudio: d.sV, + bandwidthMargin: d.F0, + bandwidthMarginContinuous: d.G0, + bandwidthMarginCurve: d.H0, + conservBandwidthMargin: d.E1, + switchConfigBasedOnInSessionTput: d.gaa, + conservBandwidthMarginTputThreshold: d.sH, + conservBandwidthMarginCurve: d.F1, + switchAlgoBasedOnHistIQR: d.UAa, + switchConfigBasedOnThroughputHistory: d.Mv, + maxPlayerStateToSwitchConfig: d.o7, + lowEndMarkingCriteria: d.Q6, + IQRThreshold: d.GX, + histIQRCalcToUse: d.p5, + bandwidthMarginScaledRatioUpperBound: d.IYa, + maxTotalBufferLevelPerSession: d.$r, + highWatermarkLevel: d.Esa, + toStableThreshold: d.qBa, + toUnstableThreshold: d.xV, + skipBitrateInUpswitch: d.L$, + watermarkLevelForSkipStart: d.cba, + highStreamRetentionWindow: d.i5, + lowStreamTransitionWindow: d.R6, + highStreamRetentionWindowUp: d.k5, + lowStreamTransitionWindowUp: d.T6, + highStreamRetentionWindowDown: d.j5, + lowStreamTransitionWindowDown: d.S6, + highStreamInfeasibleBitrateFactor: d.h5, + lowestBufForUpswitch: d.wy, + lockPeriodAfterDownswitch: d.MS, + lowWatermarkLevel: d.V6, + lowestWaterMarkLevel: d.xy, + lowestWaterMarkLevelBufferRelaxed: d.Y6, + mediaRate: d.w7, + maxTrailingBufferLen: d.r7, + audioBufferTargetAvailableSize: d.y0, + videoBufferTargetAvailableSize: d.$aa, + maxVideoTrailingBufferSize: d.hva, + maxAudioTrailingBufferSize: d.Vua, + fastUpswitchFactor: d.eR, + fastDownswitchFactor: d.n3, + maxMediaBufferAllowed: d.TS, + simulatePartialBlocks: d.J$, + simulateBufferFull: d.rAa, + considerConnectTime: d.G1, + connectTimeMultiplier: d.D1, + lowGradeModeEnterThreshold: d.Bua, + lowGradeModeExitThreshold: d.Cua, + maxDomainFailureWaitDuration: d.Wua, + maxAttemptsOnFailure: d.Tua, + exhaustAllLocationsForFailure: d.aqa, + maxNetworkErrorsDuringBuffering: d.ava, + maxBufferingTimeAllowedWithNetworkError: d.j7, + fastDomainSelectionBwThreshold: d.m3, + throughputProbingEnterThreshold: d.paa, + throughputProbingExitThreshold: d.fBa, + locationProbingTimeout: d.pua, + finalLocationSelectionBwThreshold: d.kqa, + throughputHighConfidenceLevel: d.dBa, + throughputLowConfidenceLevel: d.eBa, + locationStatisticsUpdateInterval: d.F6, + enablePerfBasedLocationSwitch: d.iC, + probeServerWhenError: d.no, + probeRequestTimeoutMilliseconds: d.U8, + allowSwitchback: d.ir, + probeDetailDenominator: d.dz, + maxDelayToReportFailure: d.QS, + countGapInBuffer: d.goa, + allowReissueMediaRequestAfterAbort: d.xB, + bufferThresholdForAbort: d.O0, + allowCallToStreamSelector: d.f0, + pipelineScheduleTimeoutMs: d.A8, + maxPartialBuffersAtBufferingStart: d.Ay, + minPendingBufferLen: d.G7, + maxPendingBufferLen: d.lD, + maxPendingBufferLenSABCell100: d.VS, + maxActiveRequestsSABCell100: d.PS, + enableRequestPacing: d.TQ, + maxStreamingSkew: d.q7, + maxPendingBufferPercentage: d.n7, + maxRequestsInBuffer: d.By, + headerRequestSize: d.ZR, + minBufferLenForHeaderDownloading: d.E7, + reserveForSkipbackBufferMs: d.sU, + numExtraFragmentsAllowed: d.i8, + pipelineEnabled: d.ko, + maxParallelConnections: d.AJ, + socketReceiveBufferSize: d.tAa, + audioSocketReceiveBufferSize: d.B0, + videoSocketReceiveBufferSize: d.aba, + headersSocketReceiveBufferSize: d.f5, + updatePtsIntervalMs: d.DV, + bufferTraceDenominator: d.Q0, + bufferLevelNotifyIntervalMs: d.FB, + aseReportDenominator: d.AB, + aseReportIntervalMs: d.u0, + enableAbortTesting: d.Hpa, + abortRequestFrequency: d.Fla, + streamingStatusIntervalMs: d.Z$, + prebufferTimeLimit: d.LD, + minBufferLevelForTrackSwitch: d.fT, + penaltyFactorForLongConnectTime: d.u8, + longConnectTimeThreshold: d.O6, + additionalBufferingLongConnectTime: d.a0, + additionalBufferingPerFailure: d.b0, + rebufferCheckDuration: d.wK, + enableLookaheadHints: d.Kpa, + lookaheadFragments: d.yua, + enableOCSideChannel: d.lp, + OCSCBufferQuantizationConfig: d.bN, + updateDrmRequestOnNetworkFailure: d.NBa, + deferAseScheduling: d.yQ, + maxDiffAudioVideoEndPtsMs: d.RS, + useHeaderCache: d.IE, + useHeaderCacheData: d.PQ, + defaultHeaderCacheSize: d.uQ, + defaultHeaderCacheDataPrefetchMs: d.p2, + headerCacheMaxPendingData: d.c5, + neverWipeHeaderCache: d.U7, + recreateHeaderCacheDownloadTracks: d.$kb, + headerCachePriorityLimit: d.d5, + headerCacheFlushForCircularBuffer: d.Wab, + enableUsingHeaderCount: d.aI, + networkFailureResetWaitMs: d.S7, + networkFailureAbandonMs: d.R7, + maxThrottledNetworkFailures: d.XS, + throttledNetworkFailureThresholdMs: d.rV, + abortUnsentBlocks: d.dr, + maxUnsentBlocks: d.s7, + abortStreamSelectionPeriod: d.P_, + lowThroughputThreshold: d.U6, + excludeSessionWithoutHistoryFromLowThroughputThreshold: d.d3, + mp4ParsingInNative: d.Ova, + sourceBufferInOrderAppend: d.uAa, + requireAudioStreamToEncompassVideo: d.Wm, + allowAudioToStreamPastVideo: d.fma, + pruneRequestsFromNative: d.tkb, + preciseBufferLevel: d.Djb, + enableManagerDebugTraces: d.Oe, + managerDebugMessageInterval: d.Mua, + managerDebugMessageCount: d.Lua, + bufferThresholdToSwitchToSingleConnMs: d.NP, + bufferThresholdToSwitchToParallelConnMs: d.P0, + netIntrStoreWindow: d.pgb, + minNetIntrDuration: d.Ufb, + fastHistoricBandwidthExpirationTime: d.I6a, + bandwidthExpirationTime: d.FYa, + failureExpirationTime: d.G6a, + historyTimeOfDayGranularity: d.cbb, + expandDownloadTime: d.v6a, + minimumMeasurementTime: d.cgb, + minimumMeasurementBytes: d.bgb, + throughputMeasurementTimeout: d.iqb, + initThroughputMeasureDataSize: d.Sbb, + throughputMeasureWindow: d.hqb, + throughputIQRMeasureWindow: d.gqb, + IQRBucketizerWindow: d.OIa, + connectTimeHalflife: d.c0a, + responseTimeHalflife: d.omb, + historicBandwidthUpdateInterval: d.bbb, + throughputMeasurementWindowCurve: d.jqb, + httpResponseTimeWarmup: d.sbb, + responseTimeWarmup: d.pmb, + throughputWarmupTime: d.nqb, + minimumBufferToStopProbing: d.agb, + throughputPredictor: d.kqb, + holtWintersDiscretizeInterval: d.fbb, + holtWintersHalfLifeAlpha: d.gbb, + holtWintersHalfLifeGamma: d.ibb, + holtWintersInitialCounts: d.jbb, + holtWintersMinInitialCounts: d.kbb, + holtWintersHalfLifeCurveEnabled: d.hbb, + holtWintersUpperBoundEnabled: d.lbb, + ase_stream_selector: d.SXa, + enableFilters: d.h5a, + filterDefinitionOverrides: d.X6a, + defaultFilter: d.A3a, + secondaryFilter: d.Smb, + defaultFilterDefinitions: d.B3a, + initBitrateSelectorAlgorithm: d.I5, + bufferingSelectorAlgorithm: d.S0, + debugLocationSelectorFailureSimulation: d.h2, + debugDumpFragments: d.f2, + debugLocationHistoryThroughput: d.g2, + debugNetworkMonitorThroughput: d.i2, + debugVerboseSimulation: d.Loa, + secondThroughputEstimator: d.W9, + secondThroughputMeasureWindowInMs: d.wza, + marginPredictor: d.f7, + simplePercentilePredictorPercentile: d.qAa, + simplePercentilePredictorCalcToUse: d.oAa, + simplePercentilePredictorMethod: d.pAa, + IQRBandwidthFactorConfig: d.fea, + networkMeasurementGranularity: d.T7, + HistoricalTDigestConfig: d.Ada, + TputTDigestConfig: d.WPa, + maxIQRSamples: d.Yua, + minIQRSamples: d.Iva, + useResourceTimingAPI: d.Waa, + ignoreFirstByte: d.Ssa, + resetHeuristicStateAfterSkip: d.emb, + periodicHistoryPersistMs: d.QT, + saveVideoBitrateMs: d.AU, + needMinimumNetworkConfidence: d.OJ, + biasTowardHistoricalThroughput: d.J0, + maxFastPlayBufferInMs: d.m7, + maxFastPlayBitThreshold: d.l7, + headerCacheTruncateHeaderAfterParsing: d.Bsa, + minAudioMediaRequestDuration: d.tD, + minVideoMediaRequestDuration: d.uD, + minAudioMediaRequestDurationCache: d.tD, + minVideoMediaRequestDurationCache: d.uD, + notifyOpenConnectBlackBox: d.Rgb, + addHeaderDataToNetworkMonitor: d.uP, + useMediaCache: d.Nz, + mediaCachePartitionConfig: d.u7, + diskCacheSizeLimit: d.aC, + mediaCachePrefetchMs: d.$S, + appendCachedMediaAsMediaRequest: d.FXa, + enablePsd: d.RQ, + psdCallFrequency: d.b9, + psdReturnToNormal: d.c9, + psdThroughputThresh: d.oK, + discardLastNPsdBins: d.NH, + psdPredictor: d.Hg, + enableRl: d.s5a, + rlLogParam: d.umb, + hindsightDenominator: d.o5, + hindsightDebugDenominator: d.n5, + hindsightParam: d.$R, + minimumTimeBeforeBranchDecision: d.lT, + enableSessionHistoryReport: d.$H, + earlyStageEstimatePeriod: d.M2, + lateStageEstimatePeriod: d.$ta, + maxNumSessionHistoryStored: d.US, + minSessionHistoryDuration: d.iT, + enableInitThroughputEstimate: d.ZH, + applyInitThroughputEstimate: d.p0, + initThroughputPredictor: d.dta, + appendMediaRequestOnComplete: d.n0, + waitForDrmToAppendMedia: d.QV, + forceAppendHeadersAfterDrm: d.C3, + startMonitorOnLoadStart: d.R$, + reportFailedRequestsToNetworkMonitor: d.x9, + reappendRequestsOnSkip: d.vK, + maxActiveRequestsPerSession: d.wJ, + limitAudioDiscountByMaxAudioBitrate: d.x6, + appendFirstHeaderOnComplete: d.m0, + maxAudioFragmentOverlapMs: 0, + maxNumberTitlesScheduled: d.Exa ? d.Exa.maxNumberTitlesScheduled : 1, + editAudioFragments: d.Gm, + editVideoFragments: d.Kr, + declareBufferingCompleteAtSegmentEnd: d.j2, + applyProfileTimestampOffset: d.wx, + applyProfileStreamingOffset: d.Cn, + requireDownloadDataAtBuffering: d.C9, + requireSetupConnectionDuringBuffering: d.D9, + renormalizeFirstFragment: d.Llb, + renormalizeLastFragment: d.Mlb, + recordFirstFragmentOnSubBranchCreate: d.n9, + earlyAppendSingleChildBranch: d.OQ + }; + }; + }, function(g, d, a) { + (function(b, c) { + var k; + + function d(a, b) { + var f; + f = Date.now(); + this.Rob = f; + this.WQ = f + a; + this.Pib = a; + this.R2a = f + b; + this.debug = !1; + } + k = new(a(8)).Console("ASEJS_QOE_EVAL", "media|asejs"); + d.prototype.constructor = d; + d.prototype.Ua = function(a, b) { + a = ((a - this.Rob) / 1E3).toFixed(3); + a = " ".slice(a.length - 4) + a; + k.debug(a + " " + this.T2a + b); + }; + d.prototype.uVa = function(a) { + this.T2a = a; + this.Ua(Date.now(), "starting"); + }; + d.prototype.lWa = function(a) { + var f; + f = new Date().getTime(); + if (f >= this.R2a) throw Error("Execution deadline exceeded"); + if (3221225472 < b.oGb().$Eb) throw Error("Heap total limit exceeded"); + if (this.debug && !(f <= this.WQ)) { + for (; f > this.WQ;) this.WQ += this.Pib; + this.Ua(f, a); + } + }; + d.Ac = function() { + c.cU = new d(5E3, 12E5); + }; + d.u$ = function(a) { + c.cU && c.cU.uVa(a); + }; + d.update = function(a) { + c.cU && c.cU.lWa(a); + }; + g.M = d; + }.call(this, a(229), a(169))); + }, function(g, d) { + Object.defineProperty(d, "__esModule", { + value: !0 + }); + g = function() { + function a(a, c, d) { + this.u = a; + this.tag = c; + this.length = d; + this.tag = c; + this.startOffset = a.offset; + this.length = d; + } + a.prototype.parse = function() { + this.u.offset = this.startOffset + this.length; + this.u.Jy = 0; + return !0; + }; + a.prototype.oqa = function(a) { + var b; + b = []; + this.tag === a && b.push(this); + if (this.xu) + for (var d = 0; d < this.xu.length; d++) b = b.concat(this.xu[d].oqa(a)); + return b; + }; + a.prototype.kI = function(a) { + for (a = this.oqa(a); 0 < a.length;) return a[0]; + }; + a.prototype.Wka = function() { + for (this.xu = []; this.u.offset < this.startOffset + this.length;) this.xu.push(this.u.Vka(this)); + }; + return a; + }(); + g.prototype.skip = g.prototype.parse; + d["default"] = g; + }, function(g, d) { + Object.defineProperty(d, "__esModule", { + value: !0 + }); + d.XKa = "6674654e-696c-5078-6966-665374726d21"; + d.YKa = "6674654e-696c-4878-6165-6465722e7632"; + d.ofa = "6674654e-696c-5078-6966-66496e646578"; + d.$X = "6674654e-696c-4d78-6f6f-6653697a6573"; + d.YX = "6674654e-696c-5378-6565-6b506f696e74"; + d.OLa = "cedb7489-e77b-514c-84f9-7148f9882554"; + d.Kfa = "524f39a2-9b5a-144f-a244-6c427c648df4"; + d.ZX = "6674654e-696c-4678-7261-6d6552617465"; + }, function(g, d, a) { + var h; + + function b(a, b) { + return void 0 === a || void 0 === b ? void 0 : a + b; + } + + function c(a, b) { + return void 0 === a || void 0 === b ? void 0 : a - b; + } + Object.defineProperty(d, "__esModule", { + value: !0 + }); + h = a(74); + g = a(47); + a = function() { + function a() {} + a.prototype.oB = function(a) { + return void 0 === a ? void 0 : 0 === a ? h.cc.Sf : new h.cc(a, this.ha); + }; + a.prototype.Rt = function(a) { + return a && Math.floor(h.cc.xaa(a, this.ha)); + }; + return a; + }(); + d.aM = a; + g.ai(a.prototype, { + Ah: g.L({ get: function() { - return this.type; + return c(this.Nb, this.Ib) || 0; } - }, - oM: { - configurable: !0, - enumerable: !0, + }), + gK: g.L({ get: function() { - return this.sca.oM; + return b(this.Ib, this.ro); } - }, - sourceId: { - configurable: !0, - enumerable: !0, + }), + HD: g.L({ + get: function() { + return b(this.Nb, this.ro); + } + }), + ypa: g.L({ + get: function() { + return this.oB(this.Ah); + } + }), + aoa: g.L({ + get: function() { + return this.oB(this.Ib); + } + }), + Xna: g.L({ + get: function() { + return this.oB(this.Nb); + } + }), + WT: g.L({ + get: function() { + return this.oB(this.gK); + } + }), + vxa: g.L({ + get: function() { + return this.oB(this.HD); + } + }), + GHb: g.L({ + get: function() { + return this.oB(this.ro); + } + }), + U: g.L({ + get: function() { + return this.Rt(this.gK); + } + }), + ea: g.L({ + get: function() { + return this.Rt(this.HD); + } + }), + duration: g.L({ + get: function() { + return c(this.ea, this.U) || 0; + } + }), + Kk: g.L({ + get: function() { + return this.Rt(this.ro); + } + }), + Jn: g.L({ + get: function() { + return this.Rt(this.Ib); + } + }), + Kc: g.L({ + get: function() { + return this.Rt(this.Ib); + } + }), + Md: g.L({ + get: function() { + return this.Rt(this.Nb); + } + }), + $b: g.L({ + get: function() { + return this.Rt(this.gK); + } + }), + Cd: g.L({ + get: function() { + return this.Rt(this.HD); + } + }), + Jr: g.L({ + get: function() { + return this.duration; + } + }), + rs: g.L({ get: function() { - return this.sca.sourceId; + return this.U; + } + }), + PD: g.L({ + get: function() { + return this.ea; } + }) + }); + }, function(g, d, a) { + Object.defineProperty(d, "__esModule", { + value: !0 + }); + a(14); + g = a(47); + a = function() { + function a(a, b) { + this.Ec = a; + this.Lb = b.Z; + this.kd = b.offset; } + a.prototype.toJSON = function() { + return { + movieId: this.R, + streamId: this.Ya, + offset: this.offset, + bytes: this.Z + }; + }; + return a; + }(); + d.Xv = a; + g.ai(a.prototype, { + stream: g.uo({ + get: function() { + return this.Ec; + } + }), + Z: g.uo({ + get: function() { + return this.Lb; + } + }), + offset: g.uo({ + get: function() { + return this.kd; + } + }), + na: g.uo({ + get: function() { + return this.Ec.na; + } + }), + R: g.uo({ + get: function() { + return this.Ec.R; + } + }), + P: g.uo({ + get: function() { + return this.Ec.P; + } + }), + Ya: g.uo({ + get: function() { + return this.Ec.Ya; + } + }), + O: g.uo({ + get: function() { + return this.Ec.O; + } + }), + profile: g.uo({ + get: function() { + return this.Ec.profile; + } + }), + ha: g.uo({ + get: function() { + return this.Ec.ha; + } + }), + Hy: g.uo({ + get: function() { + return this.Ec.Hy; + } + }), + Ka: g.L({ + get: function() { + return this.Ec.Ka; + } + }), + WG: g.L({ + get: function() { + return this.Ec.WG; + } + }), + XG: g.L({ + get: function() { + return this.Ec.XG; + } + }), + P5: g.L({ + get: function() { + return this.Ec.P5; + } + }) }); - c.o$ = d; - }, function(f, c, a) { - var d, h, l, g, m, p, r, u, v, z, w, k; - - function b(a, b) { - var p; - p = new l.Ci(); - this.ZF = this.AE = this.BE = void 0; - this.addEventListener = p.addListener.bind(this); - this.removeEventListener = p.removeListener.bind(this); - this.emit = p.mc.bind(this); - this.RKa = a; - this.Dy = b; - this.Zu = w++; - this.wa = g.Cc("MediaRequest"); - "notification" === b ? h.config.Qn && (this.Nr = z.oBa) : this.Nr = d.l2a; - m.ea(void 0 !== this.Nr); - this.lV = this.Mf = this.DL = void 0; - this.xe = c.Pa.Va.UNSENT; - this.aW = this.CV = this.TK = this.WD = void 0; - this.Wj = this.Ju = 0; - this.Kca = this.FV = this.Lu = this.Lr = this.SV = this.rg = this.mL = this.Ge = this.$u = void 0; - this.wW = []; - } - Object.defineProperty(c, "__esModule", { - value: !0 - }); - d = a(284); - h = a(4); - l = a(57); - g = a(3); - m = a(8); - p = a(14); - r = a(5); - u = a(6); - v = a(15); - z = a(282); - w = 0; + }, function(g, d, a) { + var b, c, h; + Object.defineProperty(d, "__esModule", { + value: !0 + }); + b = a(12); + c = a(18); + h = a(15); (function() { - function a() { - var a; - a = { - requestId: this.Zu, - segmentId: this.wo, - isHeader: this.zc, - ptsStart: this.hb, - ptsOffset: this.mh, - responseType: this.DL, - duration: this.gd, - readystate: this.xe - }; - this.stream && (a.bitrate = this.stream.J); - return JSON.stringify(a); + var f, p, m; + + function a(a) { + b.sa(void 0 !== f[a]); + return f[a]; } - p.oa(b.prototype, { - x3a: function(a) { - this.xe === c.Pa.Va.OPENED && (this.ZF = !0, this.mL = this.rg = a.timestamp, this.xe = c.Pa.Va.ur, this.emit(c.Pa.bd.L$, a)); - }, - c3: function(a) { - var b; - if (this.xe < c.Pa.Va.sr) { - this.wW = []; - b = a.timestamp - this.mL; - !this.zc && 0 < b && (this.Kca = !0, this.wW.push(b)); - !0 !== h.config.bla && (this.rg = a.timestamp); - this.xe = c.Pa.Va.sr; - this.emit(c.Pa.bd.K$, a); - } - }, - C3a: function(a) { - this.xe === c.Pa.Va.sr && (this.SV = this.rg = a.timestamp, a.newBytes = a.bytesLoaded - this.Ju, this.Ju = a.bytesLoaded, v.$a(this.SV) && this.emit(c.Pa.bd.M$, a)); - }, - vi: function(a) { - if (this.xe === c.Pa.Va.ur || this.xe === c.Pa.Va.sr) this.ZF = !1, this.rg = a.timestamp, this.xe = c.Pa.Va.DONE, a.newBytes = this.Yf - this.Ju, this.Ju = this.Yf, v.$a(this.Lu) && (this.rg = this.Lu, 0 === a.newBytes && (this.SV = this.Lu)), v.$a(this.Lr) && (this.mL = this.Lr), this.$u = a.response, this.emit(c.Pa.bd.NC, a); - }, - s3a: function(a) { - this.ZF = !1; - this.emit(c.Pa.bd.eBa, a); - }, - e3: function(a) { - this.rg = a.timestamp; - this.WD = a.httpcode; - this.TK = a.errorcode; - this.CV = c.Pa.dr.name[this.TK]; - this.aW = a.nativecode; - this.emit(c.Pa.bd.uu, a); - this.ZF = !1; - }, - open: function(a, b, d, g, h, p, m) { - this.jx = !1; - this.lV = b; - this.Mf = a; - this.DL = d; - if (!a) return !1; - this.xe = c.Pa.Va.OPENED; - this.Nr.zF(this, b, m); - return !0; - }, - ze: function() { - -1 !== [c.Pa.Va.OPENED, c.Pa.Va.ur, c.Pa.Va.sr].indexOf(this.xe) && this.abort(); - return !0; - }, - Nga: function() { - this.$u = void 0; - this.HE.response = void 0; - this.Vka = this.HE.cadmiumResponse.content = void 0; - }, - I5: function(a) { - this.Mf = a; - this.Nr.e6(this); - return !0; - }, - abort: function() { - this.xe = c.Pa.Va.$l; - this.Nr.XW(this); - return !0; - }, - pause: u.Gb, - getResponseHeader: u.Gb, - getAllResponseHeaders: u.Gb, - oi: function() { - return this.Zu; - }, - toString: a, + f = { + '"': '""', + "\r": "", + "\n": " " + }; + p = /["\r\n]/g; + m = /[", ]/; + d.H2a = function(b) { + return h.ab(b) ? h.ja(b) ? b : h.bd(b) ? b.replace(p, a) : h.qta(b) ? b : isNaN(b) ? "NaN" : "" : ""; + }; + d.b7 = function(a) { + var b, f; + b = d.H2a; + f = ""; + c.pc(a, function(a, c) { + a = b(a) + "=" + b(c); + m.test(a) && (a = '"' + a + '"'); + f = f ? f + ("," + a) : a; + }); + return f; + }; + }()); + }, function(g, d) { + Object.defineProperty(d, "__esModule", { + value: !0 + }); + d.Oo = { + pA: "PRIMARY", + nba: "ASSISTIVE", + Yba: "COMMENTARY" + }; + d.PY = { + assistive: d.Oo.nba, + closedcaptions: d.Oo.nba, + directorscommentary: d.Oo.Yba, + commentary: d.Oo.Yba, + subtitles: d.Oo.pA, + primary: d.Oo.pA + }; + }, function(g) { + g.M = function(d) { + return null != d && "object" === typeof d && !0 === d["@@functional/placeholder"]; + }; + }, function(g, d) { + Object.defineProperty(d, "__esModule", { + value: !0 + }); + d.Tea = "ManifestEncoderSymbol"; + d.RX = "ManifestTransformerSymbol"; + }, function(g, d) { + Object.defineProperty(d, "__esModule", { + value: !0 + }); + d.Cda = "IDBDatabaseFactorySymbol"; + d.iea = "IndexedDBFactorySymbol"; + d.HX = "IndexedDBStorageFactorySymbol"; + }, function(g, d) { + Object.defineProperty(d, "__esModule", { + value: !0 + }); + d.fLa = "NativeLocalStorageSymbol"; + d.tfa = "NativeLocalStorageFactorySymbol"; + d.Dda = "IDBFactorySymbol"; + }, function(g, d, a) { + var b; + Object.defineProperty(d, "__esModule", { + value: !0 + }); + b = a(27); + d.Uub = function() { + this.HP = []; + this.QL = []; + this.A0 = b.Yv.dw; + this.NV = b.rj.dw; + }; + d.vM = "DeviceCapabilitiesConfigSymbol"; + }, function(g, d, a) { + g = a(237); + a = a(236); + d.async = new a.eW(g.dW); + }, function(g, d, a) { + function b(a) { + var b, f; + b = a.Symbol; + if ("function" === typeof b) return b.iterator || (b.iterator = b("iterator polyfill")), b.iterator; + if ((b = a.Set) && "function" === typeof new b()["@@iterator"]) return "@@iterator"; + if (a = a.Map) + for (var b = Object.getOwnPropertyNames(a.prototype), c = 0; c < b.length; ++c) { + f = b[c]; + if ("entries" !== f && "size" !== f && a.prototype[f] === a.prototype.entries) return f; + } + return "@@iterator"; + } + g = a(79); + d.BIb = b; + d.iterator = b(g.root); + d.atb = d.iterator; + }, function(g, d, a) { + var b, c, h, k, f, p, m, r; + b = this && this.__extends || function(a, b) { + function f() { + this.constructor = a; + } + for (var c in b) b.hasOwnProperty(c) && (a[c] = b[c]); + a.prototype = null === b ? Object.create(b) : (f.prototype = b.prototype, new f()); + }; + c = a(10); + g = a(50); + h = a(71); + k = a(456); + f = a(455); + p = a(239); + m = function(a) { + function f(b) { + a.call(this, b); + this.destination = b; + } + b(f, a); + return f; + }(g.Rh); + d.wPa = m; + a = function(a) { + function d() { + a.call(this); + this.hs = []; + this.II = this.Ff = this.closed = !1; + this.qaa = null; + } + b(d, a); + d.prototype[p.rz] = function() { + return new m(this); + }; + d.prototype.Gf = function(a) { + var b; + b = new r(this, this); + b.Uy = a; + return b; + }; + d.prototype.next = function(a) { + if (this.closed) throw new k.nA(); + if (!this.Ff) + for (var b = this.hs, f = b.length, b = b.slice(), c = 0; c < f; c++) b[c].next(a); + }; + d.prototype.error = function(a) { + if (this.closed) throw new k.nA(); + this.II = !0; + this.qaa = a; + this.Ff = !0; + for (var b = this.hs, f = b.length, b = b.slice(), c = 0; c < f; c++) b[c].error(a); + this.hs.length = 0; + }; + d.prototype.complete = function() { + if (this.closed) throw new k.nA(); + this.Ff = !0; + for (var a = this.hs, b = a.length, a = a.slice(), f = 0; f < b; f++) a[f].complete(); + this.hs.length = 0; + }; + d.prototype.unsubscribe = function() { + this.closed = this.Ff = !0; + this.hs = null; + }; + d.prototype.E_ = function(b) { + if (this.closed) throw new k.nA(); + return a.prototype.E_.call(this, b); + }; + d.prototype.zf = function(a) { + if (this.closed) throw new k.nA(); + if (this.II) return a.error(this.qaa), h.Uj.EMPTY; + if (this.Ff) return a.complete(), h.Uj.EMPTY; + this.hs.push(a); + return new f.yha(this, a); + }; + d.prototype.s0 = function() { + var a; + a = new c.ta(); + a.source = this; + return a; + }; + d.create = function(a, b) { + return new r(a, b); + }; + return d; + }(c.ta); + d.Ei = a; + r = function(a) { + function f(b, f) { + a.call(this); + this.destination = b; + this.source = f; + } + b(f, a); + f.prototype.next = function(a) { + var b; + b = this.destination; + b && b.next && b.next(a); + }; + f.prototype.error = function(a) { + var b; + b = this.destination; + b && b.error && this.destination.error(a); + }; + f.prototype.complete = function() { + var a; + a = this.destination; + a && a.complete && this.destination.complete(); + }; + f.prototype.zf = function(a) { + return this.source ? this.source.subscribe(a) : h.Uj.EMPTY; + }; + return f; + }(a); + d.ktb = r; + }, function(g, d) { + Object.defineProperty(d, "__esModule", { + value: !0 + }); + d.Yga = "ReportSyncSymbol"; + d.Xga = "ReportApiErrorSyncSymbol"; + d.oda = "FtlProbeConfigSymbol"; + d.pda = "FtlProbeSymbol"; + }, function(g, d) { + Object.defineProperty(d, "__esModule", { + value: !0 + }); + d.mW = "CachedDrmDataSymbol"; + }, function(g, d) { + Object.defineProperty(d, "__esModule", { + value: !0 + }); + g = d.hn || (d.hn = {}); + g[g.az = 0] = "playready"; + g[g.RV = 1] = "widevine"; + g[g.tC = 2] = "fairplay"; + g[g.nCb = 3] = "clearkey"; + d.HGa = "DrmTypeSymbol"; + }, function(g, d) { + Object.defineProperty(d, "__esModule", { + value: !0 + }); + d.gN = "PlatformConfigDefaultsSymbol"; + }, function(g) { + var d; + d = function() { + return this; + }(); + try { + d = d || Function("return this;")() || (0, eval)("this"); + } catch (a) { + "object" === typeof A && (d = A); + } + g.M = d; + }, function(g) { + g.M = { + mq: { + NY: 0, + bha: 1, + Qh: 2, + name: ["transient", "semiTransient", "permanent"] + }, + kq: { + jda: 0, + $ga: 1, + jN: 2, + EF: 3, + zq: 100, + name: ["firstLoad", "scrollHorizontal", "search", "playFocus"] + }, + FAb: { + mAb: 0, + exb: 1, + oub: 2, + zq: 100, + name: ["trailer", "montage", "content"] + }, + Jo: { + uea: 0, + Uga: 1, + mQa: 2, + bGa: 3, + zq: 100, + name: ["left", "right", "up", "down"] + }, + pF: { + vEa: 0, + jN: 1, + awb: 2, + uvb: 3, + stb: 4, + $vb: 5, + uDa: 6, + zq: 100, + name: "continueWatching search grid episode billboard genre bigRow".split(" ") + }, + cA: { + EF: 0, + vca: 1, + zq: 100, + name: ["playFocused", "detailsOpened"] + } + }; + }, function(g, d, a) { + d = a(229); + g.M = "undefined" !== typeof d && "undefined" !== typeof nrdp ? nrdp.da : Date.now; + }, function(g, d, a) { + var b, c, h, k, f, p, m, r, u, x, v, y, w, D, z, l, P; + Object.defineProperty(d, "__esModule", { + value: !0 + }); + b = a(19); + c = a(179); + h = a(93); + k = a(9); + f = a(5); + g = a(33); + p = a(2); + m = a(12); + r = a(3); + u = a(117); + x = a(61); + v = a(53); + y = a(18); + w = a(6); + D = a(15); + z = a(25); + l = a(85); + P = a(4); + d.$i = {}; + A._cad_global || (A._cad_global = {}); + A._cad_global.msl = d.$i; + g.Oea && b.Ge(p.I.Qda, function(a) { + var n, q, t, S, T, H, X, aa, ra, Z, Q, ja, ea, ma; + + function g(f) { + f && f.userList && k.config.rob && (f.userList = []); + S({ + esn: h.cg.Df, + esnPrefix: h.cg.Im, + authenticationType: k.config.YG, + authenticationKeyNames: k.config.Gma, + systemKeyWrapFormat: k.config.Wpb, + serverIdentityId: "MSL_TRUSTED_NETWORK_SERVER_KEY", + serverIdentityKeyData: ea, + storeState: f, + notifyMilestone: b.rJ, + log: X, + ErrorSubCodes: { + MSL_REQUEST_TIMEOUT: p.H.cKa, + MSL_READ_TIMEOUT: p.H.bKa + } + }, { + result: function(a) { + E(a); + }, + timeout: function() { + a({ + T: p.H.Sea + }); + }, + error: function(b) { + a(F(p.H.Sea, void 0, b)); + } + }); + } + + function E(b) { + var g, h, u; + + function c() { + ja && r.ca.get(v.Xl).create().then(function(a) { + return a.save(Z, h, !1); + })["catch"](function(a) { + X.error("Error persisting msl store", p.kn(a)); + }); + } + g = r.ca.get(l.Ew)(P.rb(100)); + u = T.extend({ + init: function(a) { + this.kka = a; + }, + getResponse: function(a, b, f) { + var c, d; + b = this.kka; + c = b.cs.Ab || c; + a = D.Kta(a.body) ? r.IV(a.body) : a.body; + m.FH(a, "Msl should not be sending empty request"); + a = { + url: b.url, + K8: a, + withCredentials: !0, + Ox: "nq-" + b.method, + headers: b.headers + }; + b = this.kka.timeout; + a.aQ = b; + a.Z7 = b; + d = c.download(a, function(a) { + try { + if (a.S) f.result({ + body: a.content + }); + else if (400 === a.Bh && a.Ja) f.result({ + body: a.Ja + }); + else throw y.La(new H("HTTP error, SubCode: " + a.T + (a.Bh ? ", HttpCode: " + a.Bh : "")), { + cadmiumResponse: a + }); + } catch (nb) { + f.error(nb); + } + }); + return { + abort: function() { + d.abort(); + } + }; + } + }); + ra && b.addEventHandler("shouldpersist", function(a) { + h = a.storeState; + g.nb(c); + }); + y.La(d.$i, { + nFb: function() { + Q = !0; + }, + send: function(a) { + function f() { + var b, f; + b = a.cs; + f = { + method: a.method, + nonReplayable: a.a8, + encrypted: a.V2, + userId: a.HL, + body: a.body, + timeout: 2 * a.timeout, + url: new u(a), + allowTokenRefresh: ja, + sendUserAuthIfRequired: ma, + shouldSendUserAuthData: k.config.wob + }; + b.Sx ? (f.email = b.Sx, f.password = b.password || "") : b.sBa ? (f.token = b.sBa, f.mechanism = b.mfb, b.Ly && (f.netflixId = b.Ly, f.secureNetflixId = b.FU), b.eh && (f.profileGuid = b.eh)) : b.Ly ? (f.netflixId = b.Ly, f.secureNetflixId = b.FU) : b.lva ? (f.mdxControllerToken = b.lva, f.mdxPin = b.hfb, f.mdxNonce = b.gfb, f.mdxEncryptedPinB64 = b.ffb, f.mdxSignature = b.ifb) : Q || b.useNetflixUserAuthData ? f.useNetflixUserAuthData = !0 : b.eh && (f.profileGuid = b.eh); + return f; + } + return new Promise(function(a, c) { + var d; + d = f(); + b.send(d).then(function(b) { + Q && (Q = !1); + a({ + S: !0, + body: b.body + }); + })["catch"](function(a) { + var f, d; + if (a.error) { + f = a.error.cadmiumResponse && a.error.cadmiumResponse.T ? a.error.cadmiumResponse.T : b.isErrorReauth(a.error) ? p.H.Rea : b.isErrorHeader(a.error) ? p.H.WJa : p.H.Pea; + d = b.getErrorCode(a.error); + c(F(f, d, a.error)); + } else X.error("Unknown MSL error", a), a.tc = a.subCode, c({ + T: a.tc ? a.tc : p.H.dKa + }); + }); + }); + }, + rf: b + }); + a(f.Bb); + } + + function F(a, b, f) { + var c, d, m, p; + p = { + T: a, + Du: b + }; + if (f) { + c = function(a) { + var b; + a = a || "" + f; + if (f.stack) { + b = "" + f.stack; + a = 0 <= b.indexOf(a) ? b : a + b; + } + return a; + }; + if (m = f.cadmiumResponse) { + if (d = m.ic && m.ic.toString()) m.ic = d; + m.T = a; + m.Du = b; + m.Ja = c(f.message); + m.error = { + tc: a, + Ef: d, + Ip: b, + data: f.cause, + message: f.message + }; + return m; + } + c = c(f.errorMessage); + d = y.Bd(f.internalCode) || y.Bd(f.error && f.error.internalCode); + m = void 0 !== f.l6a ? z.uwa(f.l6a) : void 0; + } + c && (p.Ja = c); + d && (p.ic = d); + p.error = { + tc: a, + Ef: d.toString(), + Ip: b, + data: m, + message: c + }; + return p; + } + m.sa(k.config); + n = r.ca.get(u.Hw); + q = x.fd.qj; + if (w.ht && w.Em && w.Em.unwrapKey) { + try { + t = A.netflix.msl; + S = t.createMslClient; + T = t.IHttpLocation; + H = t.MslIoException; + } catch (va) { + a({ + T: p.H.XJa + }); + return; + } + X = r.zd("Msl"); + aa = k.config.igb; + ra = k.config.jgb; + Z = k.config.Hm ? "mslstoretest" : "mslstore"; + t = c.qE.Rza; + Q = k.config.Hbb; + ja = !t || t.S; + ea = r.hk(k.config.Hm ? "MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAm84o+RfF7KdJgbE6lggYAdUxOArfgCsGCq33+kwAK/Jmf3VnNo1NOGlRpLQUFAqYRqG29u4wl8fH0YCn0v8JNjrxPWP83Hf5Xdnh7dHHwHSMc0LxA2MyYlGzn3jOF5dG/3EUmUKPEjK/SKnxeKfNRKBWnm0K1rzCmMUpiZz1pxgEB/cIJow6FrDAt2Djt4L1u6sJ/FOy/zA1Hf4mZhytgabDfapxAzsks+HF9rMr3wXW5lSP6y2lM+gjjX/bjqMLJQ6iqDi6++7ScBh0oNHmgUxsSFE3aBRBaCL1kz0HOYJe26UqJqMLQ71SwvjgM+KnxZvKa1ZHzQ+7vFTwE7+yxwIDAQAB" : "MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAlibeiUhffUDs6QqZiB+jXH/MNgITf7OOcMzuSv4G3JysWkc0aPbT3vkCVaxdjNtw50zo2Si8I24z3/ggS3wZaF//lJ/jgA70siIL6J8kBt8zy3x+tup4Dc0QZH0k1oxzQxM90FB5x+UP0hORqQEUYZCGZ9RbZ/WNV70TAmFkjmckutWN9DtR6WUdAQWr0HxsxI9R05nz5qU2530AfQ95h+WGZqnRoG0W6xO1X05scyscNQg0PNCy3nfKBG+E6uIl5JB4dpc9cgSNgkfAIeuPURhpD0jHkJ/+4ytpdsXAGmwYmoJcCSE1TJyYYoExuoaE8gLFeM01xXK5VINU7/eWjQIDAQAB"); + ma = !!k.config.o$; + r.ca.get(v.Xl).create().then(function(b) { + aa ? b.remove(Z).then(function() { + g(); + })["catch"](function(a) { + X.error("Unable to delete MSL store", p.kn(a)); + g(); + }) : ra ? b.load(Z).then(function(a) { + n.mark(q.ZJa); + g(a.value); + })["catch"](function(f) { + f.T == p.H.dm ? (n.mark(q.aKa), g()) : (X.error("Error loading msl store", p.kn(f)), n.mark(q.$Ja), b.remove(Z).then(function() { + g(); + })["catch"](function(b) { + a(b); + })); + }) : g(); + })["catch"](function(b) { + X.error("Error creating app storage while loading msl store", p.kn(b)); + a(b); + }); + } else a({ + T: p.H.YJa + }); + }); + }, function(g, d) { + Object.defineProperty(d, "__esModule", { + value: !0 + }); + d.Wga = function(a, b) { + var c; + this.B$ = function() { + c || (c = setInterval(b, a)); + }; + this.p1 = function() { + c && (clearInterval(c), c = void 0); + }; + }; + }, function(g, d) { + Object.defineProperty(d, "__esModule", { + value: !0 + }); + g = d.oh || (d.oh = {}); + g[g.wAa = 1] = "sourceopen"; + g[g.Fm = 2] = "currentTimeChanged"; + g[g.KK = 3] = "seeked"; + g[g.zGb = 4] = "needlicense"; + g[g.gua = 5] = "licenseadded"; + g[g.vAa = 6] = "sourceBuffersAdded"; + g[g.k8 = 7] = "onNeedKey"; + }, function(g, d, a) { + var c, h, k; + + function b(a, b) { + this.Ji = b ? [b] : []; + this.SA = "$op$" + k++; + this.o = a; + } + Object.defineProperty(d, "__esModule", { + value: !0 + }); + c = a(5); + h = a(12); + k = 0; + b.prototype.addListener = function(a, b) { + var f; + f = this; + h.Ioa(a); + h.sa(0 > this.Ji.indexOf(a)); + a[c.eY + this.SA] = b; + this.Ji = this.Ji.slice(); + this.Ji.push(a); + this.Ji.sort(function(a, b) { + return f.Lob(a, b); + }); + }; + b.prototype.removeListener = function(a) { + var b; + h.Ioa(a); + this.Ji = this.Ji.slice(); + 0 <= (b = this.Ji.indexOf(a)) && this.Ji.splice(b, 1); + }; + b.prototype.set = function(a, b) { + if (this.o !== a) { + b = { + oldValue: this.o, + newValue: a, + tu: b + }; + this.o = a; + a = this.Ji; + for (var f = a.length, c = 0; c < f; c++) a[c](b); + } + }; + b.prototype.Lob = function(a, b) { + return (a[c.eY + this.SA] || 0) - (b[c.eY + this.SA] || 0); + }; + na.Object.defineProperties(b.prototype, { + value: { + configurable: !0, + enumerable: !0, + get: function() { + return this.o; + } + } + }); + d.jd = b; + }, function(g, d, a) { + var c, h, k, f, p, m, r, u, x, v, y; + + function b(a, b) { + var m; + m = new k.Pj(); + this.YI = this.hH = this.iH = void 0; + this.addEventListener = m.addListener.bind(this); + this.removeEventListener = m.removeListener.bind(this); + this.emit = m.Db.bind(this); + this.Ni = a; + this.jG = b; + this.cx = y++; + this.Ua = f.zd("MediaRequest"); + "notification" === b ? h.config.lp && (this.Kt = v.yLa) : this.Kt = c.tfb; + p.sa(void 0 !== this.Kt); + this.JN = this.$f = this.NO = void 0; + this.We = d.Eb.Fb.UNSENT; + this.lka = this.mja = this.BZ = this.VO = void 0; + this.ni = this.Ow = 0; + this.Mia = this.EZ = this.Pw = this.It = this.NZ = this.tg = this.uO = this.Ve = this.dx = void 0; + this.q_ = []; + } + Object.defineProperty(d, "__esModule", { + value: !0 + }); + c = a(284); + h = a(9); + k = a(68); + f = a(3); + p = a(12); + m = a(17); + r = a(6); + u = a(5); + x = a(15); + v = a(282); + g = a(300); + y = 0; + (function() { + function a() { + var a; + a = { + requestId: this.cx, + segmentId: this.Ym, + isHeader: this.Bc, + ptsStart: this.rs, + ptsOffset: this.Kk, + responseType: this.NO, + duration: this.Jr, + readystate: this.We + }; + this.stream && (a.bitrate = this.stream.O); + return JSON.stringify(a); + } + m.La(b.prototype, { + Ogb: function(a) { + this.We === d.Eb.Fb.OPENED && (this.YI = !0, this.uO = this.tg = a.timestamp, this.We = d.Eb.Fb.kt, this.emit(d.Eb.ed.Afa, a)); + }, + f8: function(a) { + var b; + if (this.We < d.Eb.Fb.yw) { + this.q_ = []; + b = a.timestamp - this.uO; + !this.Bc && 0 < b && (this.Mia = !0, this.q_.push(b)); + !0 !== h.config.Ssa && (this.tg = a.timestamp); + this.We = d.Eb.Fb.yw; + this.emit(d.Eb.ed.zfa, a); + } + }, + Sgb: function(a) { + this.We === d.Eb.Fb.yw && (this.NZ = this.tg = a.timestamp, a.newBytes = a.bytesLoaded - this.Ow, this.Ow = a.bytesLoaded, x.ab(this.NZ) && this.emit(d.Eb.ed.Bfa, a)); + }, + bj: function(a) { + if (this.We === d.Eb.Fb.kt || this.We === d.Eb.Fb.yw) this.YI = !1, this.tg = a.timestamp, this.We = d.Eb.Fb.DONE, a.newBytes = this.en - this.Ow, this.Ow = this.en, x.ab(this.Pw) && (this.tg = this.Pw, 0 === a.newBytes && (this.NZ = this.Pw)), x.ab(this.It) && (this.uO = this.It), this.dx = a.response, this.emit(d.Eb.ed.CF, a); + }, + Jgb: function(a) { + this.YI = !1; + this.emit(d.Eb.ed.pLa, a); + }, + h8: function(a) { + this.tg = a.timestamp; + this.VO = a.httpcode; + this.BZ = a.errorcode; + this.mja = d.Eb.Ss.name[this.BZ]; + this.lka = a.nativecode; + this.emit(d.Eb.ed.vw, a); + this.YI = !1; + }, + open: function(a, b, f, c, m, p, r) { + this.vz = !1; + this.JN = b; + this.$f = a; + this.NO = f; + if (!a) return !1; + this.We = d.Eb.Fb.OPENED; + this.Kt.tI(this, b, r); + return !0; + }, + Ld: function() { + -1 !== [d.Eb.Fb.OPENED, d.Eb.Fb.kt, d.Eb.Fb.yw].indexOf(this.We) && this.abort(); + return !0; + }, + vna: function() { + this.dx = void 0; + this.qH.response = void 0; + this.Ksa = this.qH.cadmiumResponse.content = void 0; + }, + pV: function(a) { + this.$f = a; + this.Kt.Iaa(this); + return !0; + }, + abort: function() { + this.We = d.Eb.Fb.Uv; + this.Kt.O_(this); + return !0; + }, + pause: u.Qb, + getResponseHeader: u.Qb, + getAllResponseHeaders: u.Qb, + Vi: function() { + return this.cx; + }, + toString: a, toJSON: a, - YYa: function() { + W$a: function() { var a, b; - if (h.config.l6 && r.cm && r.cm.getEntriesByType && (!v.$a(this.Lr) || !v.$a(this.Lu))) { + if (h.config.Waa && r.wq && r.wq.getEntriesByType && (!x.ab(this.It) || !x.ab(this.Pw))) { a = this.url.split("nflxvideo.net")[0].split("//").pop() + ""; - a = a + ("*nflxvideo.net/range/" + this.BE + "-" + this.AE + "*"); + a = a + ("*nflxvideo.net/range/" + this.iH + "-" + this.hH + "*"); b = new RegExp(a); - a = r.cm.getEntriesByType("resource").filter(function(a) { + a = r.wq.getEntriesByType("resource").filter(function(a) { return b.exec(a.name); })[0]; - v.$a(a) && (0 < a.startTime && (this.Lr = a.startTime, 0 < a.requestStart && (this.Lr = Math.max(this.Lr, a.requestStart))), 0 < a.responseStart && (this.FV = a.responseStart), 0 < a.responseEnd && (this.Lu = a.responseEnd)); + x.ab(a) && (0 < a.startTime && (this.It = a.startTime, 0 < a.requestStart && (this.It = Math.max(this.It, a.requestStart))), 0 < a.responseStart && (this.EZ = a.responseStart), 0 < a.responseEnd && (this.Pw = a.responseEnd)); } }, - R_a: function() { - return v.$a(this.Lr) && v.$a(this.Lu) && v.$a(this.FV); + Bcb: function() { + return x.ab(this.It) && x.ab(this.Pw) && x.ab(this.EZ); } }); Object.defineProperties(b.prototype, { readyState: { get: function() { - return this.xe; + return this.We; }, set: function() {} }, status: { get: function() { - return this.WD; + return this.VO; } }, - Mj: { + pk: { get: function() { - return this.TK; + return this.BZ; } }, - c_: { + cR: { get: function() { - return this.CV; + return this.mja; } }, - Uk: { + Il: { get: function() { - return this.aW; + return this.lka; } }, - Jc: { + Ae: { get: function() { - return this.Ju; + return this.Ow; } }, response: { get: function() { - return this.$u; + return this.dx; } }, track: { get: function() { - return this.RKa; + return this.Ni; } }, label: { get: function() { - return this.Dy; + return this.jG; } }, byteLength: { get: function() { - return this.AE - this.BE + 1; + return this.hH - this.iH + 1; } }, url: { get: function() { - return this.Mf; + return this.$f; } }, responseType: { get: function() { - return this.DL; + return this.NO; } }, - Yf: { + oZa: { get: function() { - return this.lV.end - this.lV.start + 1; + return this.JN; } }, - Ed: { + en: { get: function() { - return this.mL; + return this.JN.end - this.JN.start + 1; } }, - Be: { + Hf: { get: function() { - return this.rg; + return this.uO; } }, - W0a: { + rd: { get: function() { - return this.Lr; + return this.tg; } }, - GVa: { + Pdb: { get: function() { - return this.FV; + return this.It; } }, - rPa: { + m7a: { get: function() { - return this.Lu; + return this.EZ; + } + }, + T_a: { + get: function() { + return this.Pw; } }, connect: { get: function() { - return this.Kca; + return this.Mia; } }, - Iq: { + vs: { get: function() { - return this.wW; + return this.q_; } }, - Dka: { + ssa: { get: function() { return this.response && 0 < this.response.byteLength; } } }); }()); - (function(a) { - a.bd = { - L$: "mr1", - K$: "mr2", - M$: "mr3", - NC: "mr4", - eBa: "mr5", - uu: "mr6" - }; - a.Va = { - UNSENT: 0, - OPENED: 1, - ur: 2, - sr: 3, - DONE: 5, - bm: 6, - $l: 7, - name: "UNSENT OPENED SENT RECEIVING DONE FAILED ABORTED".split(" ") - }; - a.Ei = { - el: 0, - Yo: 1, - fU: 2, - name: ["ARRAYBUFFER", "STREAM", "NOTIFICATION"] - }; - a.dr = { - NO_ERROR: -1, - Yva: 0, - K7: 1, - jwa: 2, - bwa: 3, - Nua: 4, - h7: 5, - lS: 6, - Oua: 7, - Pua: 8, - Qua: 9, - Kua: 10, - Mua: 11, - g7: 12, - Lua: 13, - Jua: 14, - Nxa: 15, - M8: 16, - L8: 17, - uT: 18, - zJ: 19, - vT: 20, - wT: 21, - Pxa: 22, - AJ: 23, - N8: 24, - Oxa: 25, - ewa: 26, - Zva: 27, - vEa: 28, - Pva: 29, - Qva: 30, - Rva: 31, - Sva: 32, - Tva: 33, - Uva: 34, - Vva: 35, - Wva: 36, - Xva: 37, - $va: 38, - awa: 39, - cwa: 40, - dwa: 41, - fwa: 42, - gwa: 43, - hwa: 44, - iwa: 45, - kwa: 46, - lwa: 47, - tEa: 48, - TIMEOUT: 49, - sT: 50, - J8: 51, - Mxa: 52, - name: "DNS_ERROR DNS_TIMEOUT DNS_QUERY_REFUSED DNS_NOT_FOUND CONNECTION_REFUSED CONNECTION_TIMEOUT CONNECTION_CLOSED CONNECTION_RESET CONNECTION_RESET_ON_CONNECT CONNECTION_RESET_WHILE_RECEIVING CONNECTION_NET_UNREACHABLE CONNECTION_NO_ROUTE_TO_HOST CONNECTION_NETWORK_DOWN CONNECTION_NO_ADDRESS CONNECTION_ERROR HTTP_CONNECTION_ERROR HTTP_CONNECTION_TIMEOUT HTTP_CONNECTION_STALL HTTP_PROTOCOL_ERROR HTTP_RESPONSE_4XX HTTP_RESPONSE_420 HTTP_RESPONSE_5XX HTTP_TOO_MANY_REDIRECTS HTTP_TRANSACTION_TIMEOUT HTTP_MESSAGE_LENGTH_ERROR HTTP_HEADER_LENGTH_ERROR DNS_NOT_SUPPORTED DNS_EXPIRED SSL_ERROR DNS_BAD_FAMILY DNS_BAD_FLAGS DNS_BAD_HINTS DNS_BAD_NAME DNS_BAD_STRING DNS_CANCELLED DNS_CHANNEL_DESTROYED DNS_CONNECTION_REFUSED DNS_EOF DNS_FILE DNS_FORMAT_ERROR DNS_NOT_IMPLEMENTED DNS_NOT_INITIALIZED DNS_NO_DATA DNS_NO_MEMORY DNS_NO_NAME DNS_QUERY_MALFORMED DNS_RESPONSE_MALFORMED DNS_SERVER_FAILURE SOCKET_ERROR TIMEOUT HTTPS_CONNECTION_ERROR HTTPS_CONNECTION_TIMEOUT HTTPS_CONNECTION_REDIRECT_TO_HTTP".split(" ") - }; - }(k || (k = {}))); - c.Pa = Object.assign(b, k); - }, function(f, c, a) { - var b, d, h, l, g, m, p, r, u, v, z; - Object.defineProperty(c, "__esModule", { + d.Eb = Object.assign(b, g.Bi); + }, function(g, d, a) { + var h, k, f, p, m, r, u, x, v, y, w, D, z, l, P; + + function b(a, b, f) { + var d; + d = m.ca.get(z.sF); + return a.ka && c(a.Yb) ? d.release(Object.assign({}, f, { + ka: a.ka, + Yb: a.Yb + }), b) : f.ka && c(f.Yb) ? d.release(f, b) : Promise.resolve({ + S: !0 + }); + } + + function c(a) { + return a && 0 < a.length && a[0].Zu; + } + Object.defineProperty(d, "__esModule", { value: !0 }); - f = a(18); - b = a(6); - d = a(4); - h = a(60); - l = a(17); - g = a(2); - m = a(8); - p = a(3); - r = a(19); - u = a(5); - v = a(120); - z = a(15); - f.Dd(g.v.k9, function(a) { - var y, C, w; + h = a(141); + k = a(5); + f = a(9); + p = a(21); + m = a(3); + r = a(12); + u = a(463); + x = a(2); + v = a(61); + y = a(33); + w = a(42); + D = a(15); + z = a(146); + l = a(127); + P = a(16); + d.XEa = function(a) { + var E, F, n, q; - function f() { - var a; - f = b.Gb; - a = setInterval(x, d.config.d1a); - h.Bd.addListener(h.Pj, function(b) { - b && b.isPopStateEvent ? y.trace("popstate event, Lock timers can stay") : (r.Kb(C, function(a, b) { - localStorage.removeItem(b.Ql); - }), clearInterval(a)); - }, b.ay); + function c() { + c = k.Qb; + a.fireEvent(P.X.Hma); + m.ca.get(l.eN)().then(function(b) { + b.Sob(a); + }); } - function x() { - var a; - a = l.On(); - r.Kb(C, function(b, c) { - b = localStorage.getItem(c.Ql); - b = JSON.parse(b); - b.updated = a; - localStorage.setItem(c.Ql, JSON.stringify(b)); - }); + function g() { + g = k.Qb; + d.YBa(F, E); + a.fireEvent(P.X.IS); } - m.ea(v.storage); - y = p.Cc("StorageLock"); - C = {}; - w = Date.now() + "-" + Math.floor(1E6 * Math.random()); - c.CB = { - Yy: function(a, c) { - var p, m, v, x, k, F, G; - function h(a) { - localStorage.setItem(m, JSON.stringify(a)); - a = { - Ql: m - }; - C[m] = a; - y.trace("Lock acquired", { - Name: a.Ql - }); - f(); - c({ - K: !0, - eP: a + function y(b) { + return new Promise(function(f, c) { + var d, p, r; + d = []; + p = v.fd.coa(b.bh); + b.ip.forEach(function(a) { + d.push({ + sessionId: a.sessionId, + dataBase64: m.nr(a.data) }); - } - if (localStorage) { - p = l.On(); - m = "lock-" + a; - a = { - updated: p, - sessionId: w, - count: 1 - }; + }); + r = a.a$a(b.ip[0].sessionId); + p = { + df: r.df, + bh: D.is.Oi(b.bh) ? b.bh : p, + JQ: [r.Bj], + ip: d, + ka: a.ka, + ul: b.ul + }; + a.bQ && (p.CJ = a.bQ); + q.vB(p, F).then(function(b) { + a.Yb = b.Yb; + f(b); + g(); + })["catch"](function(a) { + c(a); + }); + }); + } + E = m.qf(a, "Playback"); + F = { + Ab: a.NI, + log: m.qf(a, "MSLContext"), + profile: a.profile + }; + q = m.ca.get(z.sF); + r.sa(f.config); + r.sa(h.Yg); + r.sa(F.Ab); + f.config.Do || (n = m.ca.get(u.Nca)); + return { + cs: F, + ZG: function(b) { + var g, h; + + function d(f) { try { - if (m in localStorage) { - v = localStorage.getItem(m); - k = JSON.parse(v); - z.et(k.updated) && (x = k.updated); - F = u.ru(p - x) * b.pj < d.config.c1a; - G = w === k.sessionId; - F ? G ? (k.count += 1, y.debug("Incremented lock count for existing playbackSession", { - id: w, - count: k.count - }), k.updated = p, h(k)) : c({ - K: !1 - }) : (y.error("Lock was expired or invalid, ignoring", { - Epoch: p, - LockEpoch: x - }), h(a)); - } else h(a); - } catch (da) { - y.error("Error acquiring Lock", { - errorSubCode: g.u.te, - errorDetails: r.yc(da) - }); - c({ - K: !0 + if (/watch/.test(window.location.pathname)) { + for (var i = 0; i < f.audio_tracks.length; i++) { + f.audio_tracks[i].languageDescription += ' - ' + f.audio_tracks[i].channelsFormat; + } + } + + a.JT(f); + b(k.Bb); + c(); + } catch (Q) { + E.error("Exception processing authorization response", Q); + b({ + S: !1, + T: x.H.UMa }); } - } else u.sma ? y.error("Local storage access exception", { - errorSubCode: g.u.JEa, - errorDetails: r.yc(u.sma) - }) : y.error("No localstorage", { - errorSubCode: g.u.KEa - }), c({ - K: !0 + } + + function m() { + a.Gza().then(function(a) { + d(a); + })["catch"](function(a) { + b(a); + }); + } + r.EH(a.R); + r.EH(a.Qf); + g = a.Fa; + if (g) { + h = g.expiration; + h ? (h -= p.oH(), 18E5 < h ? w.hb(function() { + d(g); + a.ku = "ui"; + }) : (E.error("manifest is expired", { + gap: h + }), m())) : w.hb(function() { + d(g); + a.ku = "ui"; + }); + } else f.config.Kl && A._cad_global.videoPreparer ? (h = A._cad_global.videoPreparer.Fj(a.R, "manifest")) && h.then(function(b) { + d(b); + a.ku = "videopreparer"; + })["catch"](function(a) { + E.warn("manifest not in cache", a); + m(); + }) : m(); + }, + Pr: y, + release: function(f) { + return b(a, F, f); + }, + $e: function(a, b) { + y(a).then(function(a) { + b(a); + })["catch"](function(a) { + b(a); }); }, - release: function(a, c) { - var d, g; - m.ea(C[a.Ql] == a); - if (localStorage) { - try { - d = localStorage.getItem(a.Ql); - g = JSON.parse(d); - 1 < g.count ? (--g.count, localStorage.setItem(a.Ql, JSON.stringify(g)), y.trace("Lock count decremented", { - Name: a.Ql, - count: g.count - })) : (localStorage.removeItem(a.Ql), delete C[a.Ql], y.trace("Lock released", { - Name: a.Ql - })); - } catch (O) { - y.error("Unable to release Lock", { - Name: a.Ql - }, O); - } - c && c(b.cb); - } + ioa: function() { + var b; + b = n.create(); + b.profileId = a.profile.id; + a.dg && (b.Ad = a.dg.CC()); + b.Yb = a.Yb; + b.ka = a.ka; + b.R = a.R; + return b; } }; - d.config.pN ? c.CB.Yy("session", function(d) { - c.CB.dra = d; - a(b.cb); - }) : a(b.cb); - }); - }, function(f) { - f.P = function(c) { - return { - minInitVideoBitrate: c.JA, - minHCInitVideoBitrate: c.E2, - maxInitVideoBitrate: c.CA, - minInitAudioBitrate: c.BG, - maxInitAudioBitrate: c.rG, - minHCInitAudioBitrate: c.AG, - minAcceptableVideoBitrate: c.qP, - minRequiredBuffer: c.CG, - minPrebufSize: c.Ph, - rebufferingFactor: c.g4, - useMaxPrebufSize: c.k6, - maxPrebufSize: c.EA, - maxRebufSize: c.m2, - maxBufferingTime: c.pq, - minAudioMediaRequestSizeBytes: c.C2, - minVideoMediaRequestSizeBytes: c.G2, - initialBitrateSelectionCurve: c.BO, - initSelectionLowerBound: c.hla, - initSelectionUpperBound: c.ila, - throughputPercentForAudio: c.AR, - bandwidthMargin: c.QX, - bandwidthMarginContinuous: c.RX, - bandwidthMarginCurve: c.SX, - conservBandwidthMargin: c.NY, - switchConfigBasedOnInSessionTput: c.J5, - conservBandwidthMarginTputThreshold: c.JE, - conservBandwidthMarginCurve: c.OY, - switchAlgoBasedOnHistIQR: c.Ura, - switchConfigBasedOnThroughputHistory: c.Tt, - maxPlayerStateToSwitchConfig: c.l2, - lowEndMarkingCriteria: c.N1, - IQRThreshold: c.AT, - histIQRCalcToUse: c.A0, - bandwidthMarginScaledRatioUpperBound: c.xNa, - maxTotalBufferLevelPerSession: c.qq, - highWatermarkLevel: c.Pka, - toStableThreshold: c.nsa, - toUnstableThreshold: c.HR, - skipBitrateInUpswitch: c.t5, - watermarkLevelForSkipStart: c.w6, - highStreamRetentionWindow: c.u0, - lowStreamTransitionWindow: c.O1, - highStreamRetentionWindowUp: c.w0, - lowStreamTransitionWindowUp: c.Q1, - highStreamRetentionWindowDown: c.v0, - lowStreamTransitionWindowDown: c.P1, - highStreamInfeasibleBitrateFactor: c.t0, - lowestBufForUpswitch: c.ow, - lockPeriodAfterDownswitch: c.dP, - lowWatermarkLevel: c.S1, - lowestWaterMarkLevel: c.pw, - lowestWaterMarkLevelBufferRelaxed: c.V1, - mediaRate: c.t2, - maxTrailingBufferLen: c.p2, - audioBufferTargetAvailableSize: c.GX, - videoBufferTargetAvailableSize: c.r6, - maxVideoTrailingBufferSize: c.hna, - maxAudioTrailingBufferSize: c.Vma, - fastUpswitchFactor: c.zN, - fastDownswitchFactor: c.d_, - maxMediaBufferAllowed: c.i2, - simulatePartialBlocks: c.$Q, - simulateBufferFull: c.vra, - considerConnectTime: c.PY, - connectTimeMultiplier: c.LY, - lowGradeModeEnterThreshold: c.Ima, - lowGradeModeExitThreshold: c.Jma, - maxDomainFailureWaitDuration: c.Xma, - maxAttemptsOnFailure: c.Uma, - exhaustAllLocationsForFailure: c.Jia, - maxNetworkErrorsDuringBuffering: c.cna, - maxBufferingTimeAllowedWithNetworkError: c.d2, - fastDomainSelectionBwThreshold: c.xN, - throughputProbingEnterThreshold: c.R5, - throughputProbingExitThreshold: c.dsa, - locationProbingTimeout: c.uma, - finalLocationSelectionBwThreshold: c.Via, - throughputHighConfidenceLevel: c.asa, - throughputLowConfidenceLevel: c.csa, - locationStatisticsUpdateInterval: c.E1, - enablePerfBasedLocationSwitch: c.Lz, - probeServerWhenError: c.so, - probeRequestTimeoutMilliseconds: c.K3, - allowSwitchback: c.zp, - probeDetailDenominator: c.Uw, - maxDelayToReportFailure: c.gP, - countGapInBuffer: c.TY, - allowReissueMediaRequestAfterAbort: c.nv, - bufferThresholdForAbort: c.ZX, - allowCallToStreamSelector: c.qX, - pipelineScheduleTimeoutMs: c.y3, - maxPartialBuffersAtBufferingStart: c.rw, - minPendingBufferLen: c.F2, - maxPendingBufferLen: c.DA, - maxPendingBufferLenSABCell100: c.kP, - maxActiveRequestsSABCell100: c.fP, - enableRequestPacing: c.nUa, - maxStreamingSkew: c.o2, - maxPendingBufferPercentage: c.k2, - maxRequestsInBuffer: c.tw, - headerRequestSize: c.tO, - minBufferLenForHeaderDownloading: c.D2, - reserveForSkipbackBufferMs: c.sQ, - numExtraFragmentsAllowed: c.h3, - pipelineEnabled: c.Pm, - maxParallelConnections: c.qw, - socketReceiveBufferSize: c.xra, - audioSocketReceiveBufferSize: c.KX, - videoSocketReceiveBufferSize: c.u6, - headersSocketReceiveBufferSize: c.p0, - updatePtsIntervalMs: c.MR, - bufferTraceDenominator: c.aY, - bufferLevelNotifyIntervalMs: c.ez, - aseReportDenominator: c.az, - aseReportIntervalMs: c.BX, - enableAbortTesting: c.sia, - abortRequestFrequency: c.qfa, - streamingStatusIntervalMs: c.F5, - prebufferTimeLimit: c.VA, - minBufferLevelForTrackSwitch: c.rP, - penaltyFactorForLongConnectTime: c.r3, - longConnectTimeThreshold: c.L1, - additionalBufferingLongConnectTime: c.lX, - additionalBufferingPerFailure: c.mX, - rebufferCheckDuration: c.rH, - enableLookaheadHints: c.xia, - lookaheadFragments: c.Fma, - enableOCSideChannel: c.Qn, - OCSCBufferQuantizationConfig: c.PJ, - updateDrmRequestOnNetworkFailure: c.Gsa, - deferAseScheduling: c.SM, - maxDiffAudioVideoEndPtsMs: c.hP, - useHeaderCache: c.VB, - useHeaderCacheData: c.iN, - defaultHeaderCacheSize: c.RM, - defaultHeaderCacheDataPrefetchMs: c.xZ, - headerCacheMaxPendingData: c.n0, - recreateHeaderCacheDownloadTracks: c.$6a, - headerCachePriorityLimit: c.o0, - headerCacheFlushForCircularBuffer: c.BZa, - enableUsingHeaderCount: c.mF, - networkFailureResetWaitMs: c.S2, - networkFailureAbandonMs: c.R2, - maxThrottledNetworkFailures: c.lP, - throttledNetworkFailureThresholdMs: c.zR, - abortUnsentBlocks: c.lm, - maxUnsentBlocks: c.q2, - abortStreamSelectionPeriod: c.YW, - lowThroughputThreshold: c.R1, - excludeSessionWithoutHistoryFromLowThroughputThreshold: c.YZ, - mp4ParsingInNative: c.Fna, - sourceBufferInOrderAppend: c.yra, - requireAudioStreamToEncompassVideo: c.Vm, - allowAudioToStreamPastVideo: c.Hfa, - pruneRequestsFromNative: c.y6a, - preciseBufferLevel: c.P5a, - enableManagerDebugTraces: c.Zd, - managerDebugMessageInterval: c.Oma, - managerDebugMessageCount: c.Nma, - bufferThresholdToSwitchToSingleConnMs: c.qM, - bufferThresholdToSwitchToParallelConnMs: c.$X, - netIntrStoreWindow: c.X2a, - minNetIntrDuration: c.F2a, - fastHistoricBandwidthExpirationTime: c.aVa, - bandwidthExpirationTime: c.uNa, - failureExpirationTime: c.ZUa, - historyTimeOfDayGranularity: c.HZa, - expandDownloadTime: c.QUa, - minimumMeasurementTime: c.L2a, - minimumMeasurementBytes: c.K2a, - throughputMeasurementTimeout: c.Lab, - initThroughputMeasureDataSize: c.o_a, - throughputMeasureWindow: c.Kab, - throughputIQRMeasureWindow: c.Jab, - IQRBucketizerWindow: c.Mya, - connectTimeHalflife: c.APa, - responseTimeHalflife: c.j8a, - historicBandwidthUpdateInterval: c.GZa, - throughputMeasurementWindowCurve: c.Mab, - httpResponseTimeWarmup: c.ZZa, - responseTimeWarmup: c.k8a, - throughputWarmupTime: c.Qab, - minimumBufferToStopProbing: c.J2a, - throughputPredictor: c.Nab, - holtWintersDiscretizeInterval: c.LZa, - holtWintersHalfLifeAlpha: c.MZa, - holtWintersHalfLifeGamma: c.OZa, - holtWintersInitialCounts: c.PZa, - holtWintersMinInitialCounts: c.QZa, - holtWintersHalfLifeCurveEnabled: c.NZa, - holtWintersUpperBoundEnabled: c.RZa, - ase_stream_selector: c.IMa, - enableFilters: c.eUa, - filterDefinitionOverrides: c.qVa, - defaultFilter: c.ESa, - secondaryFilter: c.E8a, - defaultFilterDefinitions: c.FSa, - initBitrateSelectorAlgorithm: c.L0, - bufferingSelectorAlgorithm: c.cY, - debugLocationSelectorFailureSimulation: c.qZ, - debugDumpFragments: c.oZ, - debugLocationHistoryThroughput: c.pZ, - debugNetworkMonitorThroughput: c.rZ, - debugVerboseSimulation: c.Nha, - secondThroughputEstimator: c.M4, - secondThroughputMeasureWindowInMs: c.Lqa, - marginPredictor: c.Y1, - simplePercentilePredictorPercentile: c.ura, - simplePercentilePredictorCalcToUse: c.sra, - simplePercentilePredictorMethod: c.tra, - IQRBandwidthFactorConfig: c.w9, - HistoricalTDigestConfig: c.O8, - TputTDigestConfig: c.wFa, - maxIQRSamples: c.$ma, - minIQRSamples: c.yna, - useResourceTimingAPI: c.l6, - ignoreFirstByte: c.bla, - resetHeuristicStateAfterSkip: c.$7a, - periodicHistoryPersistMs: c.PP, - saveVideoBitrateMs: c.DQ, - needMinimumNetworkConfidence: c.LG, - biasTowardHistoricalThroughput: c.VX, - maxFastPlayBufferInMs: c.g2, - maxFastPlayBitThreshold: c.f2, - headerCacheTruncateHeaderAfterParsing: c.Kka, - audioFragmentDurationMilliseconds: c.JX, - videoFragmentDurationMilliseconds: c.s6, - notifyOpenConnectBlackBox: c.B3a, - addHeaderDataToNetworkMonitor: c.hX, - useMediaCache: c.Bx, - mediaCachePartitionConfig: c.s2, - diskCacheSizeLimit: c.Ez, - mediaCachePrefetchMs: c.nP, - appendCachedMediaAsMediaRequest: c.tMa, - enablePsd: c.jN, - psdCallFrequency: c.S3, - psdReturnToNormal: c.T3, - psdThroughputThresh: c.lH, - discardLastNPsdBins: c.cF, - psdPredictor: c.Vf, - enableRl: c.Tp, - rlLogParam: c.jB, - hindsightDenominator: c.z0, - hindsightDebugDenominator: c.y0, - hindsightParam: c.OF, - enableSessionHistoryReport: c.lF, - earlyStageEstimatePeriod: c.KZ, - lateStageEstimatePeriod: c.fma, - maxNumSessionHistoryStored: c.jP, - minSessionHistoryDuration: c.tP, - enableInitThroughputEstimate: c.kF, - initThroughputPredictor: c.N0, - appendMediaRequestOnComplete: c.wX, - waitForDrmToAppendMedia: c.YR, - forceAppendHeadersAfterDrm: c.s_, - startMonitorOnLoadStart: c.y5, - reportFailedRequestsToNetworkMonitor: c.t4, - reappendRequestsOnSkip: c.qH, - maxActiveRequestsPerSession: c.qG, - limitAudioDiscountByMaxAudioBitrate: c.v1, - appendFirstHeaderOnComplete: c.vX, - maxAudioFragmentOverlapMs: 0, - maxNumberTitlesScheduled: c.dH ? c.dH.maxNumberTitlesScheduled : 1, - editAudioFragments: c.Sp, - editVideoFragments: c.Rv, - declareBufferingCompleteAtSegmentEnd: c.sZ - }; }; - }, function(f, c, a) { - var b, d, h; - Object.defineProperty(c, "__esModule", { - value: !0 - }); - b = a(8); - d = a(19); - h = a(15); - (function() { - var g, m, p; + d.YBa = function(a, b) { + d.YBa = k.Qb; + y.dLa && f.config.Trb && h.Yg.K0(a).then(function() { + b.trace("Updated NetflixId"); + })["catch"](function(a) { + b.error("NetflixId upgrade failed", x.kn(a)); + }); + }; + d.Alb = b; + }, function(g, d, a) { + var k, f, p, m, r, u, x, v, y, w, D, z, l, P, F; - function a(a) { - b.ea(void 0 !== g[a]); - return g[a]; + function b(a, b) { + var E, F; + + function d(b) { + return f.Alb(a, E, b); } - g = { - '"': '""', - "\r": "", - "\n": " " - }; - m = /["\r\n]/g; - p = /[", ]/; - c.iSa = function(b) { - return h.$a(b) ? h.da(b) ? b : h.oc(b) ? b.replace(m, a) : h.ula(b) ? b : isNaN(b) ? "NaN" : "" : ""; - }; - c.W1 = function(a) { - var b, g; - b = c.iSa; - g = ""; - d.Kb(a, function(a, c) { - a = b(a) + "=" + b(c); - p.test(a) && (a = '"' + a + '"'); - g = g ? g + ("," + a) : a; - }); - return g; - }; - }()); - }, function(f, c, a) { - var d, h, l; - function b(a, b, c, d, h, l, f) { - this.platform = a; - this.xc = b; - this.Cg = c; - this.Za = d; - this.config = h; - this.Kk = l; - this.iq = f; - } - Object.defineProperty(c, "__esModule", { - value: !0 - }); - f = a(1); - d = a(7); - h = a(69); - a = a(0); - b.prototype.eG = function(a) { - return void 0 !== a.error; - }; - b.prototype.Pk = function(a, b, c, d, h) { - var g, p; - try { - g = this.zE(d, c, h); - p = this.Ip(a, b, g); - return Promise.resolve({ - context: p, - request: g + function g() { + var a, b, f; + b = y.zd("Eme"); + a = new v.wf.Rs(b, void 0, d, { + Dg: !1, + dJ: !1 + }); + f = y.ca.get(D.zA); + return v.wf.Go(b, "cenc", void 0, { + Dg: !1, + dJ: !1, + Gta: r.config.Kh, + Aza: { + yva: r.config.Xmb, + rna: r.config.Y9, + UIb: r.config.Wmb + }, + CK: a, + Uxa: r.config.Z8, + HE: r.config.HE, + Oz: r.config.Q2, + mHb: r.config.Ymb, + Bma: f.gQ(), + oCa: f.zH([]), + SC: r.config.SC }); - } catch (w) { - return Promise.reject(w); } - }; - b.prototype.zE = function(a, b, c) { - return h.xE(this.iq.As(), a, this.Cg().$d, this.config, this.platform, b, c); - }; - b.prototype.Ip = function(a, b, c) { - return { - Za: this.Za, - log: a, - $g: this.name, - url: h.yE(this.xc, this.config, this.name), - profile: b, - ex: 3, - timeout: d.ij(59), - xQ: c.url, - headers: { - "Content-Type": "text/plain" + + function u(a, b) { + var f; + f = { + ka: b.xid, + by: function() { + return 0; + }, + R: b.movieId, + tJ: !1 + }; + r.config.Kh && (F.info("secure stop is enabled"), b = a.S ? { + success: a.S, + persisted: !0, + ss_km: a.xva, + ss_sr: a.QK, + ss_ka: a.Lna + } : { + success: a.S, + persisted: !0, + state: a.state, + ErrorCode: a.code, + ErrorSubCode: a.tc, + ErrorExternalCode: a.Ef, + ErrorEdgeCode: a.gC, + ErrorDetails: a.cause && a.cause.Ja + }, b.browserua = l.pj, a = new x.fA(f, "securestop", a.S ? "info" : "error", b), A._cad_global.logBatcher.Sb(a)); + } + + function z() { + function a(a, b) { + var f, m; + f = k.xg.Nu(b.profileId); + if (!f) return F.warn("profile not found in release drm session, this is an orphan drmSession"), c(a, b); + if (!b.Yb || 0 === b.Yb.length || !b.Yb[0].Zu) return F.error("releaseDrmSession exception: missing valid keySessionData"), c(a, b); + E = { + Ab: p.Ab, + log: F, + profile: f + }; + if (0 < b.Yb.length) { + F.info("Sending the deferred playdata and secure stop data"); + m = g(); + return m.create(r.config.Ad).then(function() { + return m.oDb(b); + }).then(function(f) { + F.info("Sent the deferred playdata and secure stop data"); + u(f, b); + return c(a, b); + })["catch"](function(f) { + f && f.code === w.I.zOa && c(a, b); + f && f.code === w.I.yOa && c(a, b); + F.error("Unable to send last stop", f); + u(f, b); + throw f; + }); + } + F.info("No key session so just send the playdata"); + return d(b).then(function() { + F.trace("Successfully sent stop command for previous session"); + return c(a, b); + })["catch"](function(a) { + F.error("Unable to send stop command for previous session", a); + throw a; + }); } - }; - }; - l = b; - l = f.__decorate([a.N()], l); - c.or = l; - }, function(f) { - function c() { - this.qb = this.qb || {}; - this.ID = this.ID || void 0; + h(F).then(function(f) { + var c; + c = f.KQ.filter(function(a) { + return !1 === a.active; + }).map(function(b) { + return a(f, b); + }); + Promise.all(c).then(function() { + F.info("release drm session completed for " + c.length + " entries"); + b(m.Bb); + })["catch"](function(a) { + a = a || {}; + a.DrmCacheSize = c.length; + F.error("Unable to release one or more DRM session data", a); + b(m.Bb); + }); + })["catch"](function(a) { + F.error("Unable to load DRM session data", a); + b(m.Bb); + }); + } + F = y.zd("PlayDataManager"); + b = b || m.Qb; + r.config.Do ? b(m.Bb) : z(); } - function a(a) { - return "function" === typeof a; + function c(a, b) { + return a ? a.u9(b) : Promise.resolve(); } - function b(a) { - return "object" === typeof a && null !== a; - } - f.P = c; - c.EventEmitter = c; - c.prototype.qb = void 0; - c.prototype.ID = void 0; - c.GSa = 10; - c.prototype.setMaxListeners = function(a) { - if ("number" !== typeof a || 0 > a || isNaN(a)) throw TypeError("n must be a positive number"); - this.ID = a; - return this; - }; - c.prototype.emit = function(c) { - var d, l, g, m; - this.qb || (this.qb = {}); - if ("error" === c && (!this.qb.error || b(this.qb.error) && !this.qb.error.length)) { - d = arguments[1]; - if (d instanceof Error) throw d; - l = Error('Uncaught, unspecified "error" event. (' + d + ")"); - l.context = d; - throw l; - } - l = this.qb[c]; - if (void 0 === l) return !1; - if (a(l)) switch (arguments.length) { - case 1: - l.call(this); - break; - case 2: - l.call(this, arguments[1]); - break; - case 3: - l.call(this, arguments[1], arguments[2]); - break; - default: - d = Array.prototype.slice.call(arguments, 1), l.apply(this, d); - } else if (b(l)) - for (d = Array.prototype.slice.call(arguments, 1), m = l.slice(), l = m.length, g = 0; g < l; g++) m[g].apply(this, d); - return !0; - }; - c.prototype.addListener = function(d, h) { - if (!a(h)) throw TypeError("listener must be a function"); - this.qb || (this.qb = {}); - this.qb.qqb && this.emit("newListener", d, a(h.listener) ? h.listener : h); - this.qb[d] ? b(this.qb[d]) ? this.qb[d].push(h) : this.qb[d] = [this.qb[d], h] : this.qb[d] = h; - b(this.qb[d]) && !this.qb[d].Qcb && (h = void 0 === this.ID ? c.GSa : this.ID) && 0 < h && this.qb[d].length > h && (this.qb[d].Qcb = !0, console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.", this.qb[d].length), "function" === typeof console.trace && console.trace()); - return this; - }; - c.prototype.on = c.prototype.addListener; - c.prototype.once = function(b, c) { - var g; - - function d() { - this.removeListener(b, d); - g || (g = !0, c.apply(this, arguments)); - } - if (!a(c)) throw TypeError("listener must be a function"); - g = !1; - d.listener = c; - this.on(b, d); - return this; - }; - c.prototype.removeListener = function(c, h) { - var d, g, m; - if (!a(h)) throw TypeError("listener must be a function"); - if (!this.qb || !this.qb[c]) return this; - d = this.qb[c]; - m = d.length; - g = -1; - if (d === h || a(d.listener) && d.listener === h) delete this.qb[c], this.qb.removeListener && this.emit("removeListener", c, h); - else if (b(d)) { - for (; 0 < m--;) - if (d[m] === h || d[m].listener && d[m].listener === h) { - g = m; - break; - } if (0 > g) return this; - 1 === d.length ? (d.length = 0, delete this.qb[c]) : d.splice(g, 1); - this.qb.removeListener && this.emit("removeListener", c, h); + function h(a) { + var b; + if (!d.tpa) { + b = y.ca.get(z.mW); + d.tpa = new Promise(function(f, c) { + b.dya().then(function() { + f(b); + })["catch"](function(b) { + a.error("Unable to load DRM data for persistent secure stop", b); + c(b); + }); + }); } - return this; - }; - c.prototype.removeAllListeners = function(b) { - var c; - if (!this.qb) return this; - if (!this.qb.removeListener) return 0 === arguments.length ? this.qb = {} : this.qb[b] && delete this.qb[b], this; - if (0 === arguments.length) { - for (c in this.qb) "removeListener" !== c && this.removeAllListeners(c); - this.removeAllListeners("removeListener"); - this.qb = {}; - return this; - } - c = this.qb[b]; - if (a(c)) this.removeListener(b, c); - else if (c) - for (; c.length;) this.removeListener(b, c[c.length - 1]); - delete this.qb[b]; - return this; - }; - c.prototype.listeners = function(b) { - return this.qb && this.qb[b] ? a(this.qb[b]) ? [this.qb[b]] : this.qb[b].slice() : []; - }; - c.prototype.listenerCount = function(b) { - if (this.qb) { - b = this.qb[b]; - if (a(b)) return 1; - if (b) return b.length; - } - return 0; - }; - c.listenerCount = function(a, b) { - return a.listenerCount(b); - }; - }, function(f, c) { - Object.defineProperty(c, "__esModule", { - value: !0 - }); - c.Mwa = function() { - this.AUDIO = 0; - this.VIDEO = 1; - this.cT = 2; - this.Pf = function() {}; - }; - c.V7 = "DownloadTrackConstructorFactorySymbol"; - }, function(f, c) { - function a() {} - Object.defineProperty(c, "__esModule", { - value: !0 - }); - a.Ova = "display"; - a.Rua = "console"; - a.Hib = "remote"; - a.JT = "memory"; - a.YFa = "writer"; - c.Ux = a; - }, function(f, c, a) { - var b, d, h, l, g; - Object.defineProperty(c, "__esModule", { + return d.tpa; + } + Object.defineProperty(d, "__esModule", { value: !0 }); - b = a(3); - d = a(2); - h = a(330); - l = a(329); - g = a(32); - c.C6 = function(a, c) { - var p, m; - try { - p = h.cdb(a); - } catch (v) { - b.log.error("xml2xmlDoc exception", v); + g = a(19); + k = a(105); + f = a(177); + p = a(34); + m = a(5); + r = a(9); + u = a(55); + x = a(97); + v = a(33); + y = a(3); + w = a(2); + D = a(115); + z = a(166); + l = a(6); + P = a(127); + F = a(16); + d.tNa = function(a) { + var p, k, g, x, w; + + function f() { + k || (a.he("pdsb"), k = y.ca.get(P.eN)().then(function(b) { + x = b; + a.he("pdsc"); + return b; + })["catch"](function(b) { + p.error("Unable to initialize the playdata services", b); + a.he("pdse"); + throw b; + })); + return k; } - g.Xa(function() { - if (p && p.documentElement) try { - m = l.ddb(p); - } catch (v) { - b.log.error("xmlDoc2js exception", v); - } - g.Xa(function() { - m ? c({ - K: !0, - object: m - }) : c({ - K: !1, - R: d.u.y8 + + function d() { + g = !0; + x && x.close(); + u.ee.removeListener(u.uk, d); + } + p = y.qf(a, "PlayDataManager"); + g = !1; + if (!v.wf.Go || !v.wf.Rs) { + w = {}; + v.wf.Go = w.te; + v.wf.Rs = w.request; + } + a.he("pdctor"); + a.addEventListener(F.X.Ce, function() { + u.ee.removeListener(u.uk, d); + }); + a.addEventListener(F.X.IS, function() { + var b; + if (!r.config.Do && a.dg) { + b = a.Yg.ioa(); + h(p).then(function(a) { + return a.Nla(b); + })["catch"](function() { + p.error("Unable to load/add cached DRM data"); + }); + } + }); + a.addEventListener(F.X.Ce, function() { + var b; + if (!g) { + a.Esb(); + b = [function() { + return r.config.Do || !a.dg ? Promise.resolve() : new Promise(function(b) { + var f; + p.info("Sending the expedited playdata and secure stop data"); + f = a.Yg.ioa(); + a.dg.TDb(f).then(function(b) { + p.info("Sent the expedited playdata and secure stop data"); + r.config.Kh && a.fD.GU({ + success: b.S, + persisted: !1, + ss_km: b.xva, + ss_sr: b.QK, + ss_ka: b.Lna + }); + return h(p); + }).then(function(a) { + return c(a, f); + }).then(function() { + b(); + })["catch"](function(f) { + p.error("Unable to send the expedited playdata and secure stop data", f); + r.config.Kh && a.fD.GU({ + success: f.S, + state: f.state, + ErrorCode: f.code, + ErrorSubCode: f.tc, + ErrorExternalCode: f.Ef, + ErrorEdgeCode: f.gC, + ErrorDetails: f.cause && f.cause.Ja + }); + b(); + }); + }); + }(), function() { + return f().then(function(b) { + return b.fpb(a); + }).then(function() { + p.info("Sent the playdata"); + })["catch"](function(a) { + p.error("Unable to send the playdata", a); + }); + }(), function() { + if (A._cad_global.logBatcher) return new Promise(function(a) { + A._cad_global.logBatcher.flush(!1)["catch"](function() { + p.error("Unable to send logblob"); + a(); + }).then(function() { + a(); + }); + }); + Promise.resolve(); + }()]; + Promise.all(b).then(function() { + a.jwa(); + })["catch"](function() { + a.jwa(); + }); + } + }); + u.ee.addListener(u.uk, d); + return { + lnb: function(c) { + a.he("pdpb"); + r.config.KU || f().then(function(b) { + return b.send(a.R); + }).then(function() { + r.config.Do ? (a.he("pdpc"), c(m.Bb)) : b(a, function() { + a.he("pdpc"); + c(m.Bb); + }); + })["catch"](function() { + a.he("pdpe"); + c(m.Bb); }); + } + }; + }; + d.uNa = function() { + new Promise(function(a) { + b({}, function(b) { + a(b); }); }); }; - }, function(f, c) { - Object.defineProperty(c, "__esModule", { - value: !0 - }); - c.$gb = "ManifestEncoderSymbol"; - c.BC = "ManifestTransformerSymbol"; - }, function(f, c) { - Object.defineProperty(c, "__esModule", { - value: !0 + g.Ge(w.I.Ws, function(a) { + a(m.Bb); }); - c.yC = "LicenseProviderSymbol"; - }, function(f, c) { - Object.defineProperty(c, "__esModule", { + }, function(g, d, a) { + var b, c, h, k, f, p, m, r, u, x, v; + Object.defineProperty(d, "__esModule", { value: !0 }); - c.iJ = "DeviceParametersSymbol"; - }, function(f, c) { - Object.defineProperty(c, "__esModule", { - value: !0 + g = a(19); + b = a(5); + c = a(9); + h = a(55); + k = a(21); + f = a(2); + p = a(12); + m = a(3); + r = a(18); + u = a(6); + x = a(126); + v = a(15); + g.Ge(f.I.Vda, function(a) { + var z, l, P; + + function g() { + var a; + g = b.Qb; + a = setInterval(y, c.config.Ydb); + h.ee.addListener(h.uk, function(b) { + b && b.isPopStateEvent ? z.trace("popstate event, Lock timers can stay") : (r.pc(l, function(a, b) { + localStorage.removeItem(b.Om); + }), clearInterval(a)); + }, b.mA); + } + + function y() { + var a; + a = k.Ex(); + r.pc(l, function(b, f) { + b = localStorage.getItem(f.Om); + b = JSON.parse(b); + b.updated = a; + localStorage.setItem(f.Om, JSON.stringify(b)); + }); + } + p.sa(x.storage); + z = m.zd("StorageLock"); + l = {}; + P = Date.now() + "-" + Math.floor(1E6 * Math.random()); + d.qE = { + vB: function(a, d) { + var p, h, x, y, w, D, E; + + function m(a) { + localStorage.setItem(h, JSON.stringify(a)); + a = { + Om: h + }; + l[h] = a; + z.trace("Lock acquired", { + Name: a.Om + }); + g(); + d({ + S: !0, + NS: a + }); + } + if (localStorage) { + p = k.Ex(); + h = "lock-" + a; + a = { + updated: p, + sessionId: P, + count: 1 + }; + try { + if (h in localStorage) { + x = localStorage.getItem(h); + w = JSON.parse(x); + v.Tu(w.updated) && (y = w.updated); + D = u.wF(p - y) * b.Qj < c.config.Xdb; + E = P === w.sessionId; + D ? E ? (w.count += 1, z.debug("Incremented lock count for existing playbackSession", { + id: P, + count: w.count + }), w.updated = p, m(w)) : d({ + S: !1 + }) : (z.error("Lock was expired or invalid, ignoring", { + Epoch: p, + LockEpoch: y + }), m(a)); + } else m(a); + } catch (X) { + z.error("Error acquiring Lock", { + errorSubCode: f.H.qg, + errorDetails: r.ad(X) + }); + d({ + S: !0 + }); + } + } else u.nua ? z.error("Local storage access exception", { + errorSubCode: f.H.UOa, + errorDetails: r.ad(u.nua) + }) : z.error("No localstorage", { + errorSubCode: f.H.VOa + }), d({ + S: !0 + }); + }, + release: function(a, f) { + var c, d; + p.sa(l[a.Om] == a); + if (localStorage) { + try { + c = localStorage.getItem(a.Om); + d = JSON.parse(c); + 1 < d.count ? (--d.count, localStorage.setItem(a.Om, JSON.stringify(d)), z.trace("Lock count decremented", { + Name: a.Om, + count: d.count + })) : (localStorage.removeItem(a.Om), delete l[a.Om], z.trace("Lock released", { + Name: a.Om + })); + } catch (Y) { + z.error("Unable to release Lock", { + Name: a.Om + }, Y); + } + f && f(b.Bb); + } + } + }; + c.config.VQ ? d.qE.vB("session", function(f) { + d.qE.Rza = f; + a(b.Bb); + }) : a(b.Bb); }); - c.QI = "BookmarkSymbol"; - }, function(f, c) { - Object.defineProperty(c, "__esModule", { + }, function(g, d) { + Object.defineProperty(d, "__esModule", { value: !0 }); - c.Q8 = "IDBDatabaseFactorySymbol"; - c.y9 = "IndexedDBFactorySymbol"; - c.CT = "IndexedDBStorageFactorySymbol"; - }, function(f, c) { - Object.defineProperty(c, "__esModule", { + d.tY = "PlaybackMilestoneStoreSymbol"; + }, function(g, d) { + Object.defineProperty(d, "__esModule", { value: !0 }); - c.MAa = "NativeLocalStorageSymbol"; - c.E$ = "NativeLocalStorageFactorySymbol"; - c.R8 = "IDBFactorySymbol"; - }, function(f, c, a) { - var b; - Object.defineProperty(c, "__esModule", { + d.rY = "PlayPredictionDeserializerSymbol"; + }, function(g, d) { + Object.defineProperty(d, "__esModule", { value: !0 }); - b = a(34); - c.Meb = function() { - this.kM = []; - this.DI = []; - this.IX = b.au.du; - this.UR = b.Fi.du; + d.HS = function(a, b, c) { + var d; + if (c.set) throw Error("Property " + b + " has a setter and cannot be made into a lazy property."); + d = c.get; + c.get = function() { + var k, f; + k = d.apply(this, arguments); + f = { + enumerable: c.enumerable, + value: k + }; + Object.getPrototypeOf(a) === Function.prototype ? Object.defineProperty(a, b, f) : Object.defineProperty(this, b, f); + return k; + }; }; - c.hJ = "DeviceCapabilitiesConfigSymbol"; - }, function(f, c) { - Object.defineProperty(c, "__esModule", { - value: !0 - }); - c.jJ = "DownloadsAvailabilitySymbol"; - }, function(f, c) { - Object.defineProperty(c, "__esModule", { - value: !0 - }); - c.mK = "Utf8EncoderSymbol"; - }, function(f, c) { - Object.defineProperty(c, "__esModule", { - value: !0 - }); - c.MI = "Base16EncoderSymbol"; - }, function(f, c) { - Object.defineProperty(c, "__esModule", { + }, function(g, d) { + Object.defineProperty(d, "__esModule", { value: !0 }); - c.qn = 'video/mp4; codecs="avc1.640028"'; - c.Vx = 'audio/mp4; codecs="mp4a.40.5"'; - c.HS = "DrmTraitsSymbol"; - }, function(f, c) { - Object.defineProperty(c, "__esModule", { + d.oga = "PboPlaydataValidatorSymbol"; + d.lga = "PboPlaydataArrayValidatorSymbol"; + d.mga = "PboPlaydataCollectionValidatorSymbol"; + }, function(g, d, a) { + var f, p, m, r, u; + + function b(a, b, f) { + this.Ma = a; + this.hsa = b; + this.Va = f; + } + + function c() {} + + function h() {} + + function k() {} + Object.defineProperty(d, "__esModule", { value: !0 }); - c.aba = "ReportSyncSymbol"; - c.$aa = "ReportApiErrorSyncSymbol"; - c.C8 = "FtlProbeConfigSymbol"; - c.D8 = "FtlProbeSymbol"; - }, function(f, c, a) { - f = a(228); - a = a(227); - c.async = new a.fS(f.eS); - }, function(f, c, a) { - function b(a) { - var b, d; - b = a.Symbol; - if ("function" === typeof b) return b.iterator || (b.iterator = b("iterator polyfill")), b.iterator; - if ((b = a.Set) && "function" === typeof new b()["@@iterator"]) return "@@iterator"; - if (a = a.Map) - for (var b = Object.getOwnPropertyNames(a.prototype), c = 0; c < b.length; ++c) { - d = b[c]; - if ("entries" !== d && "size" !== d && a.prototype[d] === a.prototype.entries) return d; - } - return "@@iterator"; - } - f = a(76); - c.etb = b; - c.iterator = b(f.root); - c.kdb = c.iterator; - }, function(f, c, a) { - var b, d, h, l, g, m, p, r; - b = this && this.__extends || function(a, b) { - function c() { - this.constructor = a; - } - for (var d in b) b.hasOwnProperty(d) && (a[d] = b[d]); - a.prototype = null === b ? Object.create(b) : (c.prototype = b.prototype, new c()); - }; - d = a(11); - f = a(55); - h = a(70); - l = a(408); - g = a(407); - m = a(230); - p = function(a) { - function c(b) { - a.call(this, b); - this.destination = b; - } - b(c, a); - return c; - }(f.zh); - c.eFa = p; - a = function(a) { - function c() { - a.call(this); - this.wq = []; - this.NF = this.Ze = this.closed = !1; - this.S5 = null; - } - b(c, a); - c.prototype[m.fx] = function() { - return new p(this); - }; - c.prototype.af = function(a) { - var b; - b = new r(this, this); - b.Jw = a; - return b; - }; - c.prototype.next = function(a) { - if (this.closed) throw new l.cy(); - if (!this.Ze) - for (var b = this.wq, c = b.length, b = b.slice(), d = 0; d < c; d++) b[d].next(a); - }; - c.prototype.error = function(a) { - if (this.closed) throw new l.cy(); - this.NF = !0; - this.S5 = a; - this.Ze = !0; - for (var b = this.wq, c = b.length, b = b.slice(), d = 0; d < c; d++) b[d].error(a); - this.wq.length = 0; - }; - c.prototype.complete = function() { - if (this.closed) throw new l.cy(); - this.Ze = !0; - for (var a = this.wq, b = a.length, a = a.slice(), c = 0; c < b; c++) a[c].complete(); - this.wq.length = 0; - }; - c.prototype.unsubscribe = function() { - this.closed = this.Ze = !0; - this.wq = null; - }; - c.prototype.NW = function(b) { - if (this.closed) throw new l.cy(); - return a.prototype.NW.call(this, b); - }; - c.prototype.Ve = function(a) { - if (this.closed) throw new l.cy(); - if (this.NF) return a.error(this.S5), h.tj.EMPTY; - if (this.Ze) return a.complete(), h.tj.EMPTY; - this.wq.push(a); - return new g.xba(this, a); + g = a(0); + f = a(1); + p = a(37); + m = a(4); + r = a(20); + a = a(24); + k.prototype.encode = function(a) { + return { + downloadableId: a.pd, + duration: a.duration }; - c.prototype.CMa = function() { - var a; - a = new d.pa(); - a.source = this; - return a; + }; + k.prototype.decode = function(a) { + return { + pd: a.downloadableId, + duration: a.duration }; - c.create = function(a, b) { - return new r(a, b); + }; + h.prototype.encode = function(a) { + return { + total: a.total, + audio: a.audio.map(new k().encode), + video: a.video.map(new k().encode), + text: a.text.map(new k().encode) }; - return c; - }(d.pa); - c.yh = a; - r = function(a) { - function c(b, c) { - a.call(this); - this.destination = b; - this.source = c; - } - b(c, a); - c.prototype.next = function(a) { - var b; - b = this.destination; - b && b.next && b.next(a); + }; + h.prototype.decode = function(a) { + return { + total: a.total, + audio: a.audio.map(new k().decode), + video: a.video.map(new k().decode), + text: a.text.map(new k().decode) }; - c.prototype.error = function(a) { - var b; - b = this.destination; - b && b.error && this.destination.error(a); + }; + c.prototype.encode = function(a) { + return { + type: a.type, + profileId: a.profileId, + href: a.href, + xid: a.ka, + movieId: a.R, + position: a.position, + clientTime: a.nH, + sessionStartTime: a.RK, + mediaId: a.Cy, + playTimes: new h().encode(a.dK), + trackId: a.Tb, + sessionId: a.sessionId, + appId: a.PG, + sessionParams: a.ri, + mdxControllerEsn: a.t7 }; - c.prototype.complete = function() { - var a; - a = this.destination; - a && a.complete && this.destination.complete(); + }; + c.prototype.decode = function(a) { + return { + type: a.type, + profileId: a.profileId, + href: a.href, + ka: a.xid, + R: a.movieId, + position: a.position, + nH: a.clientTime, + RK: a.sessionStartTime, + Cy: a.mediaId, + dK: new h().decode(a.playTimes), + Tb: a.trackId, + sessionId: a.sessionId, + PG: a.appId, + ri: a.sessionParams, + t7: a.mdxControllerEsn }; - c.prototype.Ve = function(a) { - return this.source ? this.source.subscribe(a) : h.tj.EMPTY; + }; + d.oY = c; + b.prototype.qu = function(a, b) { + var f; + f = { + href: a.Fa && a.Fa.sy ? a.Fa.sy.v4("events").href : "", + type: "online", + profileId: a.profile.id, + ka: a.ka.toString(), + R: a.R, + position: a.ay() || 0, + nH: this.Ma.r$.ma(m.Aa), + RK: a.TC ? a.TC.ma(m.Aa) : -1, + Cy: this.F8a(a), + dK: this.Z9a(a), + Tb: void 0 !== a.Qf ? a.Qf.toString() : "", + sessionId: this.hsa().sessionId || this.Va.id, + PG: this.hsa().PG || this.Va.id, + ri: a.Ta.ri || {} + }; + b && (f = Object.assign({}, f, { + t7: a.bQ + })); + return f; + }; + b.prototype.load = function(a) { + return new c().decode(a); + }; + b.prototype.F8a = function(a) { + var b, f, c; + b = a.Ic.value; + f = a.Te.value; + c = a.kc.value; + return b && f && c ? (a = a.Fa.media.find(function(a) { + return a.tracks.AUDIO === b.Tb && a.tracks.VIDEO === f.Tb && a.tracks.TEXT === c.Tb; + })) ? a.id : "" : ""; + }; + b.prototype.B4 = function(a) { + return a.map(function(a) { + return { + pd: a.downloadableId, + duration: a.duration + }; + }); + }; + b.prototype.Z9a = function(a) { + return (a = a.lo) ? (a = a.Y9a(), { + total: a.total, + audio: this.B4(a.audio), + video: this.B4(a.video), + text: this.B4(a.timedtext) + }) : { + total: 0, + video: [], + audio: [], + text: [] }; - return c; - }(a); - c.tdb = r; - }, function(f, c) { - Object.defineProperty(c, "__esModule", { + }; + u = b; + u = g.__decorate([f.N(), g.__param(0, f.l(p.yi)), g.__param(1, f.l(r.je)), g.__param(2, f.l(a.Ue))], u); + d.mNa = u; + }, function(g, d) { + Object.defineProperty(d, "__esModule", { value: !0 }); - c.mS = "CachedDrmDataSymbol"; - }, function(f, c) { - function a() {} - Object.defineProperty(c, "__esModule", { + d.QX = "ManifestProviderSymbol"; + }, function(g, d) { + Object.defineProperty(d, "__esModule", { value: !0 }); - a.tn = "com.microsoft.playready"; - a.Hd = "com.microsoft.playready.hardware"; - a.TC = "com.microsoft.playready.software"; - a.wib = "com.chromecast.playready"; - a.xib = "org.chromium.external.playready"; - a.qfb = "com.apple.fps.2_0"; - a.ZFa = "com.widevine.alpha"; - c.Eb = a; - }, function(f, c) { - Object.defineProperty(c, "__esModule", { + d.aN = "NetworkMonitorFactorySymbol"; + }, function(g, d, a) { + var b, c, h, k, f, p, m, r; + Object.defineProperty(d, "__esModule", { value: !0 }); - c.WJ = "PlatformConfigDefaultsSymbol"; - }, function(f) { - var c; - c = function() { - return this; - }(); - try { - c = c || Function("return this;")() || (0, eval)("this"); - } catch (a) { - "object" === typeof t && (c = t); - } - f.P = c; - }, function(f) { - f.P = { - Ko: { - QU: 0, - eba: 1, - SJ: 2, - name: ["transient", "semiTransient", "permanent"] - }, - Jo: { - x8: 0, - cba: 1, - bK: 2, - QC: 3, - Ro: 100, - name: ["firstLoad", "scrollHorizontal", "search", "playFocus"] - }, - Tjb: { - Ajb: 0, - Ugb: 1, - leb: 2, - Ro: 100, - name: ["trailer", "montage", "content"] - }, - rn: { - J9: 0, - Xaa: 1, - JFa: 2, - mwa: 3, - Ro: 100, - name: ["left", "right", "up", "down"] - }, - wC: { - Wua: 0, - bK: 1, - sfb: 2, - hfb: 3, - ydb: 4, - rfb: 5, - Wta: 6, - Ro: 100, - name: "continueWatching search grid episode billboard genre bigRow".split(" ") - }, - Sx: { - QC: 0, - E7: 1, - Ro: 100, - name: ["playFocused", "detailsOpened"] + g = a(19); + b = a(34); + c = a(9); + h = a(5); + k = a(21); + f = a(2); + p = a(3); + m = a(325); + r = a(88); + g.Ge(f.I.bea, function(a) { + var f; + f = p.ca.get(r.Ms); + c.config.N2 && (d.Wna = new m.mM({ + i0: f.endpoint + c.config.b0a, + Ab: b.Ab, + Ma: { + ER: k.Ex + }, + jT: 600, + log: p.zd("Congestion") + })); + a(h.Bb); + }); + }, function(g, d) { + Object.defineProperty(d, "__esModule", { + value: !0 + }); + d.Fea = "LogMessageRulerConfigSymbol"; + d.Gea = "LogMessageRulerSymbol"; + }, function(g, d, a) { + var b, c, h, k, f; + Object.defineProperty(d, "__esModule", { + value: !0 + }); + b = a(3); + c = a(2); + h = a(345); + k = a(344); + f = a(42); + d.yCa = function(a, d) { + var m, p; + try { + m = h.Usb(a); + } catch (x) { + b.log.error("xml2xmlDoc exception", x); } + f.hb(function() { + if (m && m.documentElement) try { + p = k.Vsb(m); + } catch (x) { + b.log.error("xmlDoc2js exception", x); + } + f.hb(function() { + p ? d({ + S: !0, + object: p + }) : d({ + S: !1, + T: c.H.kda + }); + }); + }); }; - }, function(f, c, a) { - c = a(280); - f.P = "undefined" !== typeof c && "undefined" !== typeof nrdp ? nrdp.la : Date.now; - }, function(f, c, a) { - var b, d, h, l, g, m, p, r, u, v; - Object.defineProperty(c, "__esModule", { + }, function(g, d, a) { + var b, c, h, k, f, p, m; + Object.defineProperty(d, "__esModule", { value: !0 }); - b = a(51); - d = a(4); - h = a(57); - l = a(242); - g = a(17); - m = a(3); - p = a(373); - r = a(218); - a(83); - u = a(46); - a(14); - v = a(36); - c.PFa = function(a, c, f, x, y) { - var G, n, q, O, B, t, V; + b = a(12); + c = a(17); + h = a(5); + k = a(128); + f = a(6); + p = a(15); + m = a(18); + d.cib = function() { + var t, S, T, H, X, aa, ra, Z, Q, ja, ea, ma; - function z(a, b) { - b = b && 0 < b.length ? b[0] : {}; - b.type = a; - b.target = B; - O.mc(a, b); + function a(a) { + if (c.Uu(a)) { + a = a.toLowerCase(); + if ("#" == a[0]) { + if (7 == a.length) return a; + if (4 == a.length) return "#" + a[1] + a[1] + a[2] + a[2] + a[3] + a[3]; + } + return d.iib[a]; + } } - function k(a) { - var b, c, d; - q.info("Next episode added", a); - d = a.playbackParams; - d && (b = d.playbackState, b = { - Zf: d.trackingId, - jf: d.sessionParams, - pm: d.authParams, - Bz: d.disableTrackStickiness || !1, - KR: d.uiPlayStartTime, - ZO: d.loadImmediately || !1, - Qf: d.isBranching || !1, - playbackState: b ? { - currentTime: b.currentTime - } : void 0 - }, c = d.uiLabel); - return V.YLa({ - M: a.movieId, - NG: a.nextStartPts, - uz: a.currentEndPts, - mb: b, - Oc: c || a.uiLabel, - pe: a.manifestData, - SA: y - }); + function g(a, b, c) { + b = b[a]; + 0 <= b || (b = parseFloat(a)); + if (0 <= b) return f.Ai(b, c); } - function w() { - return V.xd.cc; + function x(a, b) { + var f, c; + f = a.length; + c = a[f - 1]; + if ("t" === c) return parseFloat(a) * b | 0; + if ("s" === c) return "m" === a[f - 2] ? parseFloat(a) | 0 : parseFloat(a) * h.Qj | 0; + if ((a = a.match(Q)) && 4 <= a.length) return (3600 * parseInt(a[1], 10) + 60 * parseInt(a[2], 10) + parseFloat(a[3])) * h.Qj | 0; + throw Error("dfxp-badtime"); } - G = u.Qa; - n = [{ - event: G.aP, - Cd: function() { - z(G.aP, arguments); + + function v(a, b, f, c, d) { + var m, p, k, r, g, h, u, v; + if (a) { + p = a.style; + f = p ? f[p] : void 0; + c = (p = a.region) ? c[p] : void 0; + p = d.length; + for (k = 0; k < p; k++) + if (r = d[k], g = a[r], void 0 === g && f && (g = f[r]), void 0 === g && c && (g = c[r]), void 0 !== g && g !== b[r]) { + if (!m) + for (m = {}, h = 0; h < p; h++) u = d[h], v = b[u], void 0 !== v && (m[u] = v); + m[r] = g; + } } - }, { - event: G.$O, - Cd: function() { - z(G.$O, arguments); + return m || b; + } + + function y(a, b, f, d, m, p, r, g, h) { + var x, y; + + function u(a, w, D) { + var z, E, F, Q, P, n; + z = a[k.wi]; + E = z.style || w.style || ""; + F = z.region || w.region || ""; + E || F ? (Q = E + "/" + F, P = f[Q]) : P = b; + if (!P) { + P = b; + n = c.UK(d); + c.La(n, m[E]); + P = l(P, n, r, g, h); + f[E + "/"] = P; + F && (c.La(n, p[F]), c.La(n, m[E]), P = l(P, n, r, g, h), f[Q] = P); + } + if (!D) a: { + for (D = aa.length; D--;) + if (void 0 !== z[aa[D]]) { + D = !0; + break a; + } D = void 0; + } + D && (z = v(z, w, m, p, ra), P = l(P, z, r, g, h)); + w = (a = a[k.UV]) && a.length; + for (E = 0; E < w; E++) F = a[E], c.ne(F) ? ja.test(F[k.VV]) ? y++ : u(F, z, D) : (x.push({ + text: F, + lineBreaks: y, + style: P + }), y = 0); } - }, { - event: G.loaded, - Cd: function() { - z(G.loaded, arguments); + x = []; + y = 0; + u(a, d, !1); + 0 < y && x.push({ + text: "", + lineBreaks: y, + style: b + }); + return x; + } + + function w(a, b, f, c, d, m, p, r) { + var k, g; + f && (f = S[f] || "top", a.verticalAlignment !== f && (a.verticalAlignment = f)); + c && (f = T[c] || "left", a.horizontalAlignment !== f && (a.horizontalAlignment = f)); + d ? ((g = r[d]) ? (c = g.marginLeft, f = g.marginTop) : (k = d.split(" "), c = n(k[0], p.x) || 0, f = n(k[1], p.y) || 0, g = { + np: 0, + marginLeft: c, + marginTop: f, + rXa: c * b.a5 + b.HI, + tXa: f * b.Yaa + b.LV + }, 30 > r.np && (r.np++, r[d] = g)), a.marginLeft = g.rXa, a.marginTop = g.tXa) : (f = c = 0, (g = r["default"]) || (r["default"] = g = { + np: 0 + })); + m && (d = g[m], d || (k = m.split(" "), d = { + sXa: (1 - (c + (n(k[0], p.x) || 0))) * b.a5 + b.HI, + qXa: (1 - (f + (n(k[1], p.y) || 0))) * b.Yaa + b.LV + }, 30 > g.np && (g.np++, g[m] = d)), a.marginRight = d.sXa, a.marginBottom = d.qXa); + } + + function D(a, b, f, d, m) { + var p, r, k; + p = a.displayAlign; + r = a.textAlign; + k = a.origin; + a = a.extent; + f = c.UK(f); + w(f, b, p, r, k, a, d, m); + f.id = t++; + return f; + } + + function z(b, f, m, p) { + var r, k, h, u, v, x; + r = g(m.characterSize || f.characterSize, d.jib, 2) || 1; + k = (k = b.fontSize) && ea.test(k) ? c.yq(c.Bd(k), 25, 200) : void 0; + r *= k / 100 || 1; + k = b.textOutline; + if (k && "none" != k) { + u = k.split(" "); + ma.test(u) ? (x = 0, v = b.color) : (x = 1, v = a(u[0])); + h = F(u[x]); + u = F(u[x + 1]); } - }, { - event: G.error, - Cd: function() { - z(G.error, arguments); + return { + characterStyle: m.characterStyle || d.kib[b.fontFamily] || f.characterStyle, + characterSize: r * p, + characterColor: a(m.characterColor || b.color || f.characterColor), + characterOpacity: g(c.bg(m.characterOpacity, b.opacity, f.characterOpacity), d.s8, 1), + characterEdgeAttributes: m.characterEdgeAttributes || k && ("none" === k ? d.gib : u ? d.r8 : d.$wa) || f.characterEdgeAttributes, + characterEdgeColor: a(m.characterEdgeColor || v || f.characterEdgeColor), + characterEdgeWidth: h, + characterEdgeBlur: u, + characterItalic: "italic" === b.fontStyle, + characterUnderline: "underline" === b.textDecoration, + backgroundColor: a(m.backgroundColor || b.backgroundColor || f.backgroundColor), + backgroundOpacity: g(c.bg(m.backgroundOpacity, b.opacity, f.backgroundOpacity), d.s8, 1) + }; + } + + function l(a, b, c, d, p) { + var k; + b = z(b, c, d, p); + m.pc(b, function(b, c) { + c !== a[b] && (k || (k = f.DF(a)), k[b] = c); + }); + return k || a; + } + + function P(a, b, c, d, m, p, r, g) { + var h; + h = a[k.wi]; + c = v(a[k.wi], b, c, m, Z); + b = c.region; + a = h.displayAlign; + c = c.textAlign; + m = h.origin; + h = h.extent; + b || a || c || m || h ? ((d = d[b]) ? d = f.DF(d) : a || m || h ? (d = f.DF(X), d.id = t++) : d = f.DF(H), w(d, p, a, c, m, h, r, g)) : d = H; + return d; + } + + function F(a) { + a = c.Bd(a); + return p.Tu(a, 0, 100) ? a : 0; + } + + function n(a, b) { + var f; + f = a[a.length - 1]; + if ("%" === f) return c.yq(.01 * parseFloat(a), 0, 1); + if ("c" === f) return c.yq(c.Bd(a) / b, 0, 1); + } + + function q(a) { + for (var b = a.length, c = a[--b].endTime; b--;) c = f.Ai(a[b].endTime, c); + return c; + } + + function O(b) { + m.pc(b, function(f, c) { + 0 <= f.toLowerCase().indexOf("color") && (b[f] = a(c)); + }); + } + + function Y(a, c) { + var d, m, p, k; + d = a.pixelAspectRatio; + k = { + HI: 0, + a5: 1, + LV: 0, + Yaa: 1 + }; + a = (a.extent || "640px 480px").split(" "); + 2 <= a.length && (d = (d || "").split(" "), m = parseFloat(a[0]) * (parseFloat(d[0]) || 1), p = parseFloat(a[1]) * (parseFloat(d[1]) || 1)); + m = 0 < m && 0 < p ? m / p : 1280 / 720; + c = c || 1280 / 720; + d = m / c; + .01 < f.wF(c - m) && (c >= m ? (k.HI = (1 - d) / 2, k.a5 = d) : b.sa(!1, "not implemented")); + return k; + } + + function U(a) { + var b, f, m, p, k; + if (b = a.cellResolution) + if (b = b.split(" "), 2 <= b.length) { + f = c.Bd(b[0]); + b = c.Bd(b[1]); + if (0 < f && 0 < b) return { + x: f, + y: b + }; + } b = a.extent; + if (b && (b = b.split(" "), 2 <= b.length)) { + f = c.Bd(b[0]); + k = c.Bd(b[1]); + if (a = a.pixelAspectRatio) b = a.split(" "), m = c.Bd(b[0]), p = c.Bd(b[1]); + if (f && k && 1.5 < f * (m || 1) / (k * (p || 1))) return d.eib; } - }, { - event: G.closed, - Cd: function() { - z(G.closed, arguments); + return d.dib; + } + t = 1; + S = { + before: "top", + center: "center", + after: "bottom" + }; + T = { + left: "left", + start: "left", + center: "center", + right: "right", + end: "right" + }; + H = { + id: t++, + verticalAlignment: "bottom", + horizontalAlignment: "center", + marginTop: .1, + marginLeft: .1, + marginRight: .1, + marginBottom: .1 + }; + X = { + id: t++, + verticalAlignment: "top", + horizontalAlignment: "left", + marginTop: 0, + marginLeft: 0, + marginRight: 0, + marginBottom: 0 + }; + aa = "fontFamily fontSize fontStyle textDecoration color opacity backgroundColor textOutline".split(" "); + ra = aa.concat(["style", "region"]); + Z = ["region", "textAlign", "displayAlign", "extent", "origin"]; + Q = /^([0-9]+):([0-9]+):([0-9.]+)$/; + ja = /^br$/i; + ea = /^[0-9]{1,3}%$/; + ma = /^[0-9]/; + return function(b, m, p, r, u) { + var F, Q, n, ja, la, N, ea, H, T, ma, S, aa, va, ga, fa, Ga, Da, A, ub, G, R, ca, kb, ba, da, ha, Le, ia, ka, na; + + function w() { + try { + for (var a; kb;) + if (T = kb[k.wi], ba.push({ + id: t++, + startTime: x(T.begin, n), + endTime: x(T.end, n), + region: P(kb, ha, N, H, ea, ja, ga, A), + textNodes: y(kb, Le, ia, da, N, ea, Ga, Da, fa) + }), kb = kb[k.PE], a = f.uM(), 100 < a - ka) { + ka = Date.now(); + na = setTimeout(w, 1); + return; + } + } catch (qf) { + E({ + T: c.H.BM, + Ja: c.ad(qf) + }); + return; + } + na = setTimeout(l, 1); } - }, { - event: G.Ik, - Cd: function() { - z(G.Ik, arguments); + + function l() { + var b, f, d, m, p, k, r; + + function a(a, d) { + for (var m, p = [], k = {}, r, g = f.length; g--;) m = f[g], r = m.region.id, k[r] || (k[r] = 1, p.unshift(m)); + (m = b[b.length - 1]) && m.endTime == a && c.ou(m.blocks, p) ? m.endTime = d : b.push({ + id: t++, + startTime: a, + endTime: d, + blocks: p + }); + } + try { + if (!ba.length) { + E({ + S: !0, + entries: [] + }); + return; + } + c.NXa(ba); + b = []; + f = []; + d = ba[0]; + p = ba[0].startTime; + for (k = 1; f.length || d;) { + for (; !f.length || d && d.startTime == p;) f.push(d), p = d.startTime, d = ba[k++]; + m = q(f); + if (!d || m <= d.startTime) + for (a(p, m), p = m, r = f.length; r--;) f[r].endTime <= p && f.splice(r, 1); + else a(p, d.startTime), p = d.startTime, f.push(d), d = ba[k++]; + } + for (k = b.length; k--;) b[k].index = k, b[k].previous = b[k - 1], b[k].next = b[k + 1]; + } catch (rf) { + E({ + T: c.H.BM, + Ja: c.ad(rf) + }); + return; + } + E({ + S: !0, + entries: b + }); } - }, { - event: G.tE, - Cd: function() { - z(G.tE, arguments); + + function E(a) { + setTimeout(function() { + F.abort = c.Qb; + u(a); + }, 1); } - }, { - event: G.gN, - Cd: function() { - z(G.gN, arguments); - } - }, { - event: G.VR, - Cd: function() { - z(G.VR, arguments); - } - }, { - event: G.MP, - Cd: function() { - z(G.MP, arguments); - } - }, { - event: G.D3, - Cd: function() { - z(G.D3, arguments); - } - }, { - event: G.oN, - Cd: function() { - z(G.oN, arguments); - } - }, { - event: G.gz, - Cd: function() { - z(G.gz, arguments); - } - }, { - event: G.iE, - Cd: function() { - z(G.iE, arguments); - } - }, { - event: G.hE, - Cd: function() { - z(G.hE, arguments); - } - }, { - event: G.Do, - Cd: function() { - z(G.Do, arguments); - } - }, { - event: G.jI, - Cd: function() { - z(G.jI, arguments); - } - }, { - event: G.Zt, - Cd: function() { - z(G.Zt, arguments); - } - }, { - event: G.xP, - Cd: function() { - z(G.xP, arguments); - } - }, { - event: G.WR, - Cd: function() { - z(G.WR, arguments); - } - }, { - event: G.XQ, - Cd: function() { - z(G.XQ, arguments); - } - }, { - event: G.mQ, - Cd: function() { - z(G.mQ, arguments); - } - }, { - event: G.ZR, - Cd: function() { - z(G.ZR, arguments); - } - }, { - event: G.LQ, - Cd: function() { - z(G.LQ, arguments); - } - }, { - event: G.MQ, - Cd: function() { - z(G.MQ, arguments); - } - }, { - event: G.NX, - Cd: function() { - z(G.NX, arguments); - } - }, { - event: G.OX, - Cd: function() { - z(G.OX, arguments); - } - }]; - q = m.Cc("VideoPlayer"); - O = new h.Ci(); - B = { - addEventListener: O.addListener, - removeEventListener: O.removeListener, - getReady: function() { - V.qYa(); - }, - getXid: function() { - return w().aa; - }, - getElement: function() { - return w().element; - }, - getPlaying: function() { - return w().kYa(); - }, - getPaused: function() { - return w().gYa(); - }, - getMuted: function() { - return w().WXa(); - }, - getVolume: function() { - return w().eZa(); - }, - getEnded: function() { - return w().lXa(); - }, - getBusy: function() { - return w().Nj(); - }, - getError: function() { - return w().getError(); - }, - getCurrentTime: function() { - return w().Un(); - }, - getBufferedTime: function() { - return w().F_(); - }, - getSegmentTime: function() { - return w().fO(); - }, - getDuration: function() { - return w().kXa(); - }, - getVideoSize: function() { - return w().dZa(); - }, - getAudioTrackList: function() { - return w().tWa(); - }, - getAudioTrack: function() { - return w().sWa(); - }, - getTimedTextTrackList: function() { - return w().UYa(); - }, - getTimedTextTrack: function() { - return w().TYa(); - }, - getAdditionalLogInfo: function() { - return w().pWa(); - }, - getTrickPlayFrame: function(a) { - return w().ZYa(a); - }, - getSessionSummary: function() { - return w().oka(); - }, - getCongestionInfo: function(a) { - a ? w().ZN().then(function(b) { - a(b); - })["catch"](function(b) { - a(b); - }) : w().ZN(); - }, - getTimedTextVisibility: function() { - return w().JF(); - }, - setMuted: function(a) { - w().E9a(a); - }, - setVolume: function(a) { - w().R9a(a); - }, - setPlaybackRate: function(a) { - w().I9a(a); - }, - setAudioTrack: function(a) { - w().r9a(a); - }, - setTimedTextTrack: function(a) { - w().O9a(a); - }, - setTimedTextBounds: function(a) { - return w().KH(a); - }, - setTimedTextMargins: function(a) { - return w().LH(a); - }, - setTimedTextVisibility: function(a) { - return w().MH(a); - }, - prepare: function() { - return w().Dt(); - }, - load: function() { - return w().load(); - }, - close: function(a) { - a ? V.close().then(function(b) { - a(b); - })["catch"](function(b) { - a(b); - }) : V.close(); - }, - play: function() { - return w().play(); - }, - pause: function() { - return w().pause(); - }, - seek: function(a) { - return w().seek(a); - }, - engage: function(a, b) { - b ? w().Rn(a).then(function(a) { - b(a); - })["catch"](function(a) { - b(a); - }) : w().Rn(a); - }, - induceError: function(a) { - return w().k_a(a); - }, - loadCustomTimedTextTrack: function(a, b, c) { - return w().P0a(a, b, c); - }, - tryRecoverFromStall: function() { - return w().pI(); - }, - addEpisode: k, - playNextEpisode: function(a) { - a = void 0 === a ? {} : a; - a = { - Zf: a.trackingId, - pm: a.authParams, - jf: a.sessionParams, - Bz: a.disableTrackStickiness, - KR: a.uiPlayStartTime, - IN: a.forceAudioTrackId, - KN: a.forceTimedTextTrackId, - Qf: a.isBranching, - v6: a.vuiCommand, - playbackState: a.playbackState - }; - q.info("Playing the next episode", a); - return V.transition(a); - }, - playSegment: function(a) { - return w().t5a(a); - }, - queueSegment: function(a) { - return w().J6a(a); - }, - updateNextSegmentWeights: function(a, b) { - return w().Uq(a, b); - }, - getCropAspectRatio: function() { - return w().UWa(); + F = { + abort: function() { + na && clearTimeout(na); + } + }; + try { + Q = b[k.wi]; + n = h.Qj / (c.Bd(Q.tickRate) || 1); + ja = Y(Q, m); + la = c.La(X, { + marginLeft: ja.HI, + marginTop: ja.LV, + marginRight: ja.HI, + marginBottom: ja.LV + }); + N = {}; + ea = {}; + H = {}; + aa = b.head; + va = b.body; + ga = U(Q); + fa = 1 / ga.y * ja.Yaa; + Ga = c.La({ + characterStyle: "PROPORTIONAL_SANS_SERIF", + characterColor: "#EBEB64", + characterEdgeAttributes: d.r8, + characterEdgeColor: "#000000", + characterSize: 1 + }, p, { + Mp: !0 + }); + Da = r || {}; + A = { + np: 0 + }; + if (aa) { + ub = aa.styling; + if (ub) + for (S = ub.style; S;) T = S[k.wi], O(T), N[T.id] = T, S = S[k.PE]; + G = aa.layout; + if (G) + for (var Wb = G.region; Wb;) { + T = Wb[k.wi]; + R = T.id; + ma = c.UK(N[T.style]); + ma = c.La(ma, T); + for (S = Wb.style; S;) c.La(ma, S[k.wi]), S = S[k.PE]; + O(ma); + ea[R] = ma; + H[R] = D(ma, ja, la, ga, A); + Wb = Wb[k.PE]; + } + } + ca = va.div; + kb = ca.p; + ba = []; + da = {}; + da = v(va[k.wi], da, N, ea, ra); + da = v(ca[k.wi], da, N, ea, ra); + ha = {}; + ha = v(va[k.wi], ha, N, ea, Z); + ha = v(ca[k.wi], ha, N, ea, Z); + Le = z(da, Ga, Da, fa); + c.La(Le, { + windowColor: a(Da.windowColor || Ga.windowColor), + windowOpacity: g(c.bg(Da.windowOpacity, Ga.windowOpacity), d.s8, 1), + cellResolution: ga + }, { + Mp: !0 + }); + ia = {}; + ca.p = void 0; + ca[k.UV] = []; + } catch ( of ) { + E({ + T: c.H.BM, + Ja: c.ad( of ) + }); + return; } + ka = f.uM(); + na = setTimeout(w, 1); + return F; }; - t = m.Z.get(p.qba).Zp(!1, "6.0011.853.011", g.ir, v.Yh, d.config); - V = m.Z.get(r.KU).QRa(t, function(a, c, d) { - return new b.rj(a, c, d); - }, l.URa, function(a, b) { - B && w() && (B.diagnostics = w().fXa()); - n.forEach(function(c) { - b && b.removeEventListener(c.event, c.Cd); - a.addEventListener(c.event, c.Cd); - }); - a.getError() ? z(G.gz, a.getError().GR() || {}) : (z(G.iE), z(G.hE), z(G.Do), z(G.jI), z(G.Zt), z(G.gz)); - }); - k({ - movieId: a, - playbackParams: c, - uiLabel: f, - manifestData: x - }); - return B; - }; - c.Irb = u.Qa.aP; - c.C6a = u.Qa.$O; - c.Hrb = u.Qa.loaded; - c.Grb = u.Qa.error; - c.Erb = u.Qa.closed; - c.B6a = u.Qa.Ik; - c.Crb = u.Qa.tE; - c.Frb = u.Qa.gN; - c.Rrb = u.Qa.VR; - c.vpa = u.Qa.MP; - c.upa = u.Qa.oN; - c.Drb = u.Qa.gz; - c.Brb = u.Qa.iE; - c.Arb = u.Qa.hE; - c.Prb = u.Qa.Do; - c.Orb = u.Qa.jI; - c.Qrb = u.Qa.Zt; - c.Jrb = u.Qa.xP; - c.Srb = u.Qa.WR; - c.Nrb = u.Qa.XQ; - c.Krb = u.Qa.mQ; - c.Trb = u.Qa.ZR; - c.Lrb = u.Qa.LQ; - c.Mrb = u.Qa.MQ; - }, function(f, c) { - Object.defineProperty(c, "__esModule", { - value: !0 - }); - f = c.Sg || (c.Sg = {}); - f[f.Ara = 1] = "sourceopen"; - f[f.Ik = 2] = "currentTimeChanged"; - f[f.lB = 3] = "seeked"; - f[f.Ona = 4] = "needlicense"; - f[f.lma = 5] = "licenseadded"; - f[f.zra = 6] = "sourceBuffersAdded"; - f[f.moa = 7] = "onNeedKey"; - }, function(f, c, a) { - var b, d, h, l, g, m; - Object.defineProperty(c, "__esModule", { - value: !0 - }); - f = a(18); - b = a(6); - d = a(4); - h = a(2); - l = a(3); - g = a(14); - m = a(5); - f.Dd(h.v.W8, function(a) { - var h, f, z; + }(); + d.kib = { + "default": "PROPORTIONAL_SANS_SERIF", + monospaceSansSerif: "MONOSPACED_SANS_SERIF", + monospaceSerif: "MONOSPACED_SERIF", + proportionalSansSerif: "PROPORTIONAL_SANS_SERIF", + proportionalSerif: "PROPORTIONAL_SERIF", + casual: "CASUAL", + cursive: "CURSIVE", + smallCapitals: "SMALL_CAPITALS", + monospace: "MONOSPACED_SANS_SERIF", + sansSerif: "PROPORTIONAL_SANS_SERIF", + serif: "PROPORTIONAL_SERIF" + }; + d.jib = { + SMALL: .5, + MEDIUM: 1, + LARGE: 2 + }; + d.s8 = { + NONE: 0, + SEMI_TRANSPARENT: .5, + OPAQUE: 1 + }; + d.iib = { + black: "#000000", + silver: "#c0c0c0", + gray: "#808080", + white: "#ffffff", + maroon: "#800000", + red: "#ff0000", + purple: "#800080", + fuchsia: "#ff00ff", + magenta: "#ff00ff", + green: "#00ff00", + lime: "#00ff00", + olive: "#808000", + yellow: "#ffff00", + navy: "#000080", + blue: "#0000ff", + teal: "#008080", + aqua: "#00ffff", + cyan: "#00ffff", + orange: "#ffa500", + pink: "#ffc0cb" + }; + d.gib = "NONE"; + d.hib = "RAISED"; + d.fib = "DEPRESED"; + d.$wa = "UNIFORM"; + d.r8 = "DROP_SHADOW"; + d.dib = { + x: 40, + y: 19 + }; + d.eib = { + x: 52, + y: 19 + }; + }, function(g, d, a) { + var k; - function p() { - z && clearTimeout(z); - a(b.cb); - p = g.Gb; - } - h = l.Cc("BatteryManager"); - c.Hp = { - Fua: "chargingchange", - Vja: function() { - return f ? f.level : null; - }, - H_: function() { - return f ? f.charging : null; - }, - addEventListener: function(a, b) { - f && f.addEventListener(a, b); - }, - removeEventListener: function(a, b) { - f && f.removeEventListener(a, b); - } - }; - if (d.config.DE) { - z = setTimeout(p, d.config.EWa); - try { - m.Tg.getBattery().then(function(a) { - f = a; - p(); - })["catch"](function(a) { - h.error("getBattery promise rejected", a); - p(); - }); - } catch (w) { - h.error("exception on getBattery api call", w); - p(); - } - } else p(); - }); - }, function(f, c, a) { - var b, d; - b = a(169); - d = {}; - f.P = { - xnb: function(a) { - a = a.map(b.nq); + function b() {} + + function c(a, b) { + this.Dm = a; + void 0 !== b ? (k(b <= a.Xm, "require remain_sec <= chunk.sec but has " + b + " and " + a.Xm), this.Jh = b) : this.Jh = a.Xm; + } + + function h(a) { + void 0 === a && (a = []); + this.pi = []; + this.gf = this.ti = 0; + for (var b in a) this.add(a[b], void 0); + } + k = a(14); + b.prototype = Error(); + c.prototype.constructor = c; + c.prototype.jp = function() { + return new c(this.Dm, this.Jh); + }; + h.prototype.constructor = h; + h.prototype.add = function(a, b) { + a = new c(a, b); + this.pi.push(a); + this.gf += a.Jh; + this.ti += a.Dm.Rr() * a.Jh; + }; + h.prototype.jp = function() { + var a, b; + a = new h(void 0); + for (b in this.pi) a.add(this.pi[b].Dm, this.pi[b].Jh); + return a; + }; + h.prototype.Un = function() { + try { + return this.pi[0]; + } catch (f) {} + }; + h.prototype.pxa = function(a) { + var f; + for (k(0 <= a, "unexpected play_for_x_sec: x=" + a); 0 < a;) { + if (void 0 === this.Un()) throw new b(); + if (a < this.Un().Jh) { + f = this.Un().Dm.Rr() * a; + this.Un().Jh -= a; + this.gf -= a; + this.ti -= f; + a = 0; + } else f = this.pi.shift(), this.gf -= f.Jh, this.ti -= f.Dm.Rr() * f.Jh, a -= f.Jh; + } + }; + h.prototype.gjb = function(a) { + var c; + k(0 <= a, "unexpected play_y_kb: y=" + a); + for (var f = 0; 0 < a;) { + if (void 0 === this.Un()) throw new b(); + if (a < this.Un().Jh * this.Un().Dm.Rr()) { + c = a / this.Un().Dm.Rr(); + this.Un().Jh -= c; + this.gf -= c; + this.ti -= a; + f += c; + a = 0; + } else c = this.pi.shift(), this.gf -= c.Jh, this.ti -= c.Dm.Rr() * c.Jh, f += c.Jh, a -= c.Dm.Rr() * c.Jh; + } + return f; + }; + g.M = { + Uba: h, + XDa: b + }; + }, function(g, d, a) { + var b, c; + b = a(193); + c = {}; + g.M = { + YDb: function(a) { + a = a.map(b.eo); return a.slice(0, a.length / 2); }, - wnb: function(a, b) { - var c; - c = b / a.length; + XDb: function(a, b) { + var f; + f = b / a.length; return a.slice(0, a.length / 2).map(function(a, b) { - return b * c; + return b * f; }); }, - a_: function(a, b) { - var c; - c = a / b * Math.PI * -2; - d[b] = d[b] || {}; - d[b][a] = d[b][a] || [Math.cos(c), Math.sin(c)]; - return d[b][a]; + g3: function(a, b) { + var f; + f = a / b * Math.PI * -2; + c[b] = c[b] || {}; + c[b][a] = c[b][a] || [Math.cos(f), Math.sin(f)]; + return c[b][a]; } }; - }, function(f) { - f.P = { - add: function(c, a) { - return [c[0] + a[0], c[1] + a[1]]; + }, function(g) { + g.M = { + add: function(d, a) { + return [d[0] + a[0], d[1] + a[1]]; }, - ie: function(c, a) { - return [c[0] - a[0], c[1] - a[1]]; + Gd: function(d, a) { + return [d[0] - a[0], d[1] - a[1]]; }, - multiply: function(c, a) { - return [c[0] * a[0] - c[1] * a[1], c[0] * a[1] + c[1] * a[0]]; + multiply: function(d, a) { + return [d[0] * a[0] - d[1] * a[1], d[0] * a[1] + d[1] * a[0]]; }, - nq: function(c) { - return Math.sqrt(c[0] * c[0] + c[1] * c[1]); + eo: function(d) { + return Math.sqrt(d[0] * d[0] + d[1] * d[1]); } }; - }, function(f, c, a) { - var b, d, h; - b = a(169); - d = a(168); - h = a(472); - f.P = { - f_: function g(a) { - var c, h, m, z, w; - c = []; - h = a.length; - if (1 == h) return Array.isArray(a[0]) ? [ + }, function(g, d, a) { + var b, c, h; + b = a(193); + c = a(192); + h = a(682); + g.M = { + p3: function f(a) { + var d, p, g, v, y; + d = []; + p = a.length; + if (1 == p) return Array.isArray(a[0]) ? [ [a[0][0], a[0][1]] ] : [ [a[0], 0] ]; - m = g(a.filter(function(a, b) { + g = f(a.filter(function(a, b) { return 0 == b % 2; })); - a = g(a.filter(function(a, b) { + a = f(a.filter(function(a, b) { return 1 == b % 2; })); - for (var f = 0; f < h / 2; f++) { - z = m[f]; - w = b.multiply(d.a_(f, h), a[f]); - c[f] = b.add(z, w); - c[f + h / 2] = b.ie(z, w); + for (var h = 0; h < p / 2; h++) { + v = g[h]; + y = b.multiply(c.g3(h, p), a[h]); + d[h] = b.add(v, y); + d[h + p / 2] = b.Gd(v, y); } - return c; + return d; }, - Tia: function(a) { - var f, v, z; - for (var c = a.length, g = h.SPa(c), r = 0; r < c; r++) { - f = h.reverse(r) >>> h.Dya - g; - if (f > r) { - v = [a[r], 0]; - a[r] = a[f]; - a[f] = v; - } else a[f] = [a[f], 0]; - } - for (g = 2; g <= c; g += g) - for (r = 0; r < g / 2; r++) - for (f = d.a_(r, g), v = 0; v < c / g; v++) { - z = b.multiply(f, a[v * g + r + g / 2]); - a[v * g + r + g / 2] = b.ie(a[v * g + r], z); - a[v * g + r] = b.add(a[v * g + r], z); + iqa: function(a) { + var g, x, v; + for (var f = a.length, d = h.s0a(f), r = 0; r < f; r++) { + g = h.reverse(r) >>> h.FIa - d; + if (g > r) { + x = [a[r], 0]; + a[r] = a[g]; + a[g] = x; + } else a[g] = [a[g], 0]; + } + for (d = 2; d <= f; d += d) + for (r = 0; r < d / 2; r++) + for (g = c.g3(r, d), x = 0; x < f / d; x++) { + v = b.multiply(g, a[x * d + r + d / 2]); + a[x * d + r + d / 2] = b.Gd(a[x * d + r], v); + a[x * d + r] = b.add(a[x * d + r], v); } } }; - }, function(f) { - f.P = { - c$: { - code: -1, - description: "MediaCache is not supported." - }, - Iib: { - code: 100, - description: "Resource was not found" - }, - Gza: { - code: 101, - description: "Resource Metadata was not found" - }, - WC: { - code: 102, - description: "Read failed", - Zl: function(c, a) { - return { - code: this.code, - description: c, - cause: a - }; - } - }, - rK: { - code: 200, - description: "Daily write limit exceeded" - }, - Kx: { - code: 201, - description: "Capacity has been exceeded" - }, - qK: { - code: 202, - description: "Write failed, cause unknown", - Zl: function(c, a) { - return { - code: this.code, - description: c, - cause: a - }; + }, function(g, d, a) { + (function() { + var H4D, y, w, D, z, l, P, F, n, q, O, Y, U, t, S, T, H, X, Q3n; + + function x(a, b, f, c, d, m) { + var N4D, ga, aa, S, t, g, h, v, x, D, z, l, E, Q, n, ja, la, q, O, N, ea, H, T, G6n, i6n; + + function r(b, f) { + var d4D; + d4D = 2; + while (d4D !== 1) { + switch (d4D) { + case 2: + return b > a.wy && (y.V(this.Bp) || this.aD > this.Bp || f - this.Bp > a.MS && b > a.V6); + break; + } + } } - }, - Zjb: { - code: 203, - description: "Write failed, cause unknown" - }, - Jva: { - code: 300, - description: "Failed to delete resource", - Zl: function(c, a) { - return { - code: this.code, - description: c, - cause: a - }; + N4D = 2; + while (N4D !== 21) { + G6n = "pla"; + G6n += "yer miss"; + G6n += "ing streamingInd"; + G6n += "e"; + G6n += "x"; + i6n = "Mus"; + i6n += "t have"; + i6n += " at "; + i6n += "least one selected strea"; + i6n += "m"; + switch (N4D) { + case 25: + N = !0; + N4D = 16; + break; + case 20: + N4D = c + 1 < f.length ? 19 : 25; + break; + case 24: + N4D = d.Y && d.Y.length ? 23 : 16; + break; + case 19: + N4D = r.call(this, E, D) ? 18 : 16; + break; + case 23: + ga = p(d, l, a.j5), aa = p(d, l + ga, a.S6); + N4D = 22; + break; + case 17: + d = U(f.slice(c + 1, a.L$ && E >= a.cba ? f.length : c + 2), function(a, b) { + var q4D; + q4D = 2; + while (q4D !== 1) { + switch (q4D) { + case 4: + return k(a, f[c / b], h, S, t, -6); + break; + q4D = 1; + break; + case 2: + return k(a, f[c + b], h, S, t, !1); + break; + } + } + }); + N4D = 16; + break; + case 16: + g.vo = d || h; + g.tH = N; + g.K2a = !ea; + return g; + break; + case 18: + S = p(d, l, a.k5), t = p(d, l + S, a.T6); + N4D = 17; + break; + case 2: + F(!y.V(c), i6n); + F(y.ja(b.Iv), G6n); + g = new Y(), h = d = f[c], v = b.buffer.U, x = b.buffer.nf, D = b.buffer.Ra, z = b.buffer.rl, l = b.Iv, E = z - x, ja = this.jO || w.LM.Og, la = b.state === w.Ca.xf || b.state === w.Ca.Bq ? b.buffer.pv : 0, q = a.r7, O = a.xy ? a.xy : 1E3; + N4D = 4; + break; + case 7: + return u.call(this, f); + break; + case 6: + d.Y && d.Y.length || (d.Y$ = !0); + Q = X.from(b.buffer.Y); + ja = b.buffer.nu; + 0 < a.oD && (ja = Math.min(ja, a.oD)); + n = ja - Q.Z; + N4D = 10; + break; + case 10: + N4D = (ea = k(d, f[Math.max(c - 1, 0)], d, ea, T, !1)) ? 20 : 24; + break; + case 4: + ea = p(d, l, a.i5); + H4DD.y6n(2); + T = p(d, H4DD.W6n(ea, l), a.R6); + this.gka || (this.gka = Math.min(d.O, a.cT)); + N4D = 8; + break; + case 22: + (d = U(f.slice(0, c).reverse(), function(a, b) { + var u4D; + u4D = 2; + while (u4D !== 1) { + switch (u4D) { + case 2: + return k(a, f[Math.max(c - b - 2, 0)], h, ga, aa, !0); + break; + } + } + })) || (d = f[0], N = !0); + N4D = 16; + break; + case 8: + N4D = ja == w.LM.lQa || !d.pa ? 7 : 6; + break; + } } - }, - lu: { - code: 900, - description: "Invalid partition name" - }, - Iya: { - code: 700, - description: "Invalid parition configuration, commitment exceeds capacity." - }, - J7: { - code: 701, - description: "Failed to initialize underlying disk cache." - }, - Fza: { - code: 800, - description: 'Metadata failed to pass validation. Metadata must be an object with a numeric "lifespan" property.' - } - }; - }, function(f, c, a) { - var d, h, l; - function b(a, b, c, d) { - l.call(this, a, b, c, d); - h.call(this, a, b); - this.yb = []; - this.Pu = {}; - this.oq(); - this.Nf = !1; - } - d = a(21); - c = a(71); - a(9); - a(117); - h = a(67); - l = a(265); - a(30); - b.prototype = Object.create(l.prototype); - c(h.prototype, b.prototype); - b.prototype.fw = function() { - return !this.Nf && this.yb.length && this.yb.every(function(a) { - return a.fw(); - }); - }; - b.prototype.$y = function(a) { - d(!this.Nf); - return this.Nf = this.yb.every(function(b) { - return b.fw() ? b.$y(a, void 0, void 0) : !1; - }); - }; - b.prototype.z7a = function() { - this.yb.forEach(function(a) { - a.lQ(); - }); - }; - b.prototype.xt = function(a) { - l.prototype.xt.call(this, a); - }; - b.prototype.wi = function(a) { - l.prototype.wi.call(this, a); - }; - b.prototype.oi = function() { - return this.yb[0].oi() + "-" + this.yb[this.yb.length - 1].oi(); - }; - b.prototype.toString = function() { - return h.prototype.toString.call(this) + "(aggregate)"; - }; - b.prototype.toJSON = b.prototype.toString; - f.P = b; - }, function(f, c, a) { - var d, h; - - function b(a, b, c, p, r, f) { - h.call(this, a, p); - d.call(this, a, b, c, p, r, f); - } - c = a(71); - d = a(264); - h = a(174); - b.prototype = Object.create(d.prototype); - c(h.prototype, b.prototype); - f.P = b; - }, function(f, c, a) { - var h; + function p(a, b, f) { + var E4D; + E4D = 2; + while (E4D !== 1) { + switch (E4D) { + case 2: + return a.Y ? a.Y.L1(b, f) : 0; + break; + case 4: + return a.Y ? a.Y.L1(b, f) : 3; + break; + E4D = 1; + break; + } + } + } - function b(a, b) { - this.Hc = a.B_a ? a : new AseStream(b); - this.pf = b.ga; - this.Zb = b.offset; - } + function k(f, c, d, p, k, r) { + var N88 = H4DD; + var J4D, ea, T, ma, S, y, w, E, u, ja, N, h, Y, U, t, X, va, ga, aa, Z, f6n, m6n, e6n, n6n, B6n, L6n, z6n, P6n, E6n, I6n; + J4D = 2; + while (J4D !== 49) { + f6n = "S"; + f6n += "econ"; + f6n += "d stream"; + f6n += " ha"; + f6n += "s failed"; + m6n = "Second"; + m6n += " strea"; + m6n += "m not in ran"; + m6n += "ge"; + e6n = "Second "; + e6n += "stre"; + e6n += "am un"; + e6n += "available"; + n6n = "Second s"; + n6n += "t"; + n6n += "ream undefined"; + B6n = "First stream"; + B6n += " has f"; + B6n += "ai"; + B6n += "l"; + B6n += "ed"; + L6n = "Fir"; + L6n += "s"; + L6n += "t stream not in range"; + z6n = "First stream "; + z6n += "unavail"; + z6n += "able"; + P6n = "F"; + P6n += "irst "; + P6n += "str"; + P6n += "eam undef"; + P6n += "ined"; + switch (J4D) { + case 31: + J4D = !p || p < f.O * a.h5 || !t ? 30 : 43; + break; + case 29: + k && (k.result && (g.X6 = k.W6), a.aL || (f.Al = !!k.Al)); + H = { + Q6a: k && k.result, + pa: h, + O: f.O + }; + return k && k.result; + break; + case 36: + J4D = 0 < Y ? 54 : 53; + break; + case 8: + J4D = h >= Math.max(f.WS, f.O * u) && !f.WU ? 7 : 13; + break; + case 25: + F(f, P6n); + F(f.Fe, z6n); + F(f.inRange, L6n); + F(!f.Eh, B6n); + J4D = 21; + break; + case 54: + t = Math.min(Y, y.Y.length - N), U.push(y.Y.iE.subarray(N, N + t)), Y -= t, N += t, N >= y.Y.length && (N = 0); + J4D = 36; + break; + case 14: + return !0; + break; + case 7: + return !0; + break; + case 5: + return !1; + break; + case 20: + c = Q.length; + r = la; + ea = n, T = p, ma = k, S = O; + k = b.H4a; + J4D = 16; + break; + case 39: + J4D = 0 < Y ? 38 : 37; + break; + case 13: + d = !a.G1 || f === d || f.Pb === d.Pb && m ? 0 : (d = f.Ga) && d.kg && d.kg.za ? d.kg.za + a.D1 * (d.kg.Kg ? Math.sqrt(d.kg.Kg) : 0) : 0; + y = c, w = Q, E = x + d - v, u = q, ja = z - v; + N88.Y6n(0); + d = N88.J6n(D, v); + N = l; + J4D = 20; + break; + case 50: + T = Math.max(0, Math.min(T, f.Y.length - N)), ma = Math.max(0, Math.min(ma, y.Y.length - N - T)), 0 < T && U.push(f.Y.iE.subarray(N, N + T)), 0 < ma && U.push(y.Y.iE.subarray(N + T, N + T + ma)); + J4D = 53; + break; + case 4: + r || y || (f.Y$ = !0); + J4D = 3; + break; + case 37: + Y = ma; + J4D = 36; + break; + case 2: + h = f.pa, u = r ? a.n3 : a.eR, y = f.Y && f.Y.length; + J4D = 1; + break; + case 6: + J4D = h >= f.O * u ? 14 : 13; + break; + case 43: + X || (y = f); + U = []; + J4D = 41; + break; + case 40: + Y = T; + J4D = 39; + break; + case 21: + F(y, n6n); + F(y.Fe, e6n); + F(y.inRange, m6n); + F(!y.Eh, f6n); + N88.Y6n(1); + F(N88.J6n(U, c)); + J4D = 31; + break; + case 16: + Y = b.teb; + p = f.pa; + U = w.length, t = f.Y && f.Y.length, X = y.Y && y.Y.length; + a.Y6 && (S = Math.min(S, ja - E)); + J4D = 25; + break; + case 38: + t = Math.min(Y, f.Y.length - N), U.push(f.Y.iE.subarray(N, N + t)), Y -= t, N += t, N >= f.Y.length && (N = 0); + J4D = 39; + break; + case 41: + J4D = Y ? 40 : 50; + break; + case 3: + J4D = !r || !y ? 9 : 13; + break; + case 30: + k = !1; + J4D = 29; + break; + case 1: + J4D = H && !H.Q6a && H.pa >= h && H.O <= f.O ? 5 : 4; + break; + case 51: + k = p > f.WS ? { + result: !0, + ueb: 0, + Al: !0 + } : { + result: !1, + ueb: 0, + Al: !0 + }; + J4D = 29; + break; + case 52: + a: { + E6n = " >";E6n += "= fr";E6n += "agmentsLength:";E6n += " ";I6n = "Stre";I6n += "amin";I6n += "gIndex: ";U = w.concat(U);X = E;N88.y6n(2);y = N88.J6n(T, c);t = S;va = a.JJ;S = a.aL;w = U.ha;T = Math.min(U.length, c + T + ma);ma = U.Sd;E = U.sizes;N88.y6n(0);Z = N88.W6n(ja, X);ja = Infinity;N = Y = 0;U = U.Sd[0];N88.y6n(3);u = N88.J6n(w, 1E3, u, U);N88.y6n(4);U = N88.J6n(r, p, 8, 0);N88.y6n(5);r = N88.J6n(8, 0, p);N88.Y6n(6);p = N88.J6n(w, 1E3);c >= T && P.error(I6n + c + E6n + T);X += U;0 === d && (X = 0);N88.Y6n(6);X *= N88.J6n(w, 1E3);N88.Y6n(6);d *= N88.J6n(w, 1E3);N88.y6n(6);va *= N88.W6n(w, 1E3);N88.y6n(6);t *= N88.J6n(w, 1E3); + for (Z *= w / 1E3; c < T;) { + ga = E[c]; + aa = ma[c]; + if (ea < ga) { + for (Y = Math.max(ga, k); ea < Y;) { + X = u; + ea += E[N]; + ++N; + U = ma[N]; + u += U; + } + if (!S && (U = d - X, U < va)) { + k = { + result: !1, + W6: U / (w / 1E3), + Al: !1 + }; + break a; + } + N88.Y6n(0); + U = N88.W6n(d, X); + } else if (U = Math.max(d - X, 0), U < t && U < Y) { + k = { + result: !1, + W6: Math.min(U, ja) / (w / 1E3), + Al: !0 + }; + break a; + } + N88.Y6n(7); + X += N88.J6n(r, 0, ga, p); + d += aa; + for (ea -= ga; u < X && N < c;) { + ea += E[N]; + ++N; + u += ma[N]; + }++c; + if (c >= y && U > Z) break; + Y = U; + ja = Math.min(U, ja); + } + k = { + result: !0, + W6: ja / (w / 1E3), + Al: !0 + }; + } + J4D = 29; + break; + case 9: + J4D = y && !a.aL ? 8 : 6; + break; + case 53: + J4D = 0 < T || 0 < ma ? 52 : 51; + break; + } + } + } + } - function d() { - h(!1); - } - h = a(21); - b.prototype = {}; - Object.defineProperties(b.prototype, { - stream: { - get: function() { - return this.Hc; - }, - set: d - }, - ga: { - get: function() { - return this.pf; - }, - set: d - }, - offset: { - get: function() { - return this.Zb; - }, - set: d - }, - Da: { - get: function() { - return this.Hc.Da; - }, - set: d - }, - M: { - get: function() { - return this.Hc.M; - }, - set: d - }, - O: { - get: function() { - return this.Hc.O; - }, - set: d - }, - ib: { - get: function() { - return this.Hc.ib; - }, - set: d - }, - J: { - get: function() { - return this.Hc.J; - }, - set: d - }, - profile: { - get: function() { - return this.Hc.profile; - }, - set: d - }, - jb: { - get: function() { - return this.Hc.jb; - }, - set: d - }, - bc: { - get: function() { - return this.Hc.bc; - }, - set: d - }, - Kn: { - get: function() { - return this.Hc.Kn; - }, - set: d - }, - Mn: { - get: function() { - return this.Hc.Mn; - }, - set: d - }, - pla: { - get: function() { - return this.Hc.pla; - }, - set: d + function m(a, b, c) { + var b4D, d, S6n, H6n; + b4D = 2; + while (b4D !== 7) { + S6n = "hi"; + S6n += "st_bit"; + S6n += "ra"; + S6n += "t"; + S6n += "e"; + H6n = "v"; + H6n += "b"; + switch (b4D) { + case 2: + d = z.storage.get(H6n); + b4D = 1; + break; + case 5: + return a.Hla ? f(a, c) : p(a, b, c); + break; + case 1: + b4D = void 0 === d ? 5 : 4; + break; + case 4: + a = new Y(); + a.vo = U(c.reverse(), function(a) { + var l4D; + l4D = 2; + while (l4D !== 1) { + switch (l4D) { + case 4: + return a.O > d; + break; + l4D = 1; + break; + case 2: + return a.O <= d; + break; + } + } + }) || c[0]; + a.reason = S6n; + b4D = 8; + break; + case 8: + return a; + break; + } + } } - }); - f.P = b; - }, function(f) { - f.P = { - DAa: "6674654e-696c-5078-6966-665374726d21", - EAa: "6674654e-696c-4878-6165-6465722e7632", - A$: "6674654e-696c-5078-6966-66496e646578", - bU: "6674654e-696c-4d78-6f6f-6653697a6573", - aU: "6674654e-696c-5378-6565-6b506f696e74", - CBa: "cedb7489-e77b-514c-84f9-7148f9882554", - Q$: "524f39a2-9b5a-144f-a244-6c427c648df4" - }; - }, function(f, c, a) { - var l, g, m; - function b(a, b) { - this.tl = a; - this.hv = a.view; - this.wl = b; - this.Zb = 16 * b; - } + function u(a) { + var h4D, b, f; + h4D = 2; + while (h4D !== 3) { + switch (h4D) { + case 14: + return b; + break; + h4D = 3; + break; + case 2: + b = new Y(), f = this.gka; + b.vo = U(a, function(a) { + var p4D; + p4D = 2; + while (p4D !== 1) { + switch (p4D) { + case 2: + return a.O >= f; + break; + case 4: + return a.O <= f; + break; + p4D = 1; + break; + } + } + }) || a[a.length - 1]; + b.tH = !0; + h4D = 4; + break; + case 4: + return b; + break; + } + } + } - function d() { - g(!1); - } + function r(a, b, f) { + var k4D, d, m, p, k, q3n, x3n; + k4D = 2; + while (k4D !== 7) { + q3n = "no_"; + q3n += "feasible_str"; + q3n += "eam"; + x3n = "Must h"; + x3n += "ave at lea"; + x3n += "st one selected st"; + x3n += "ream"; + switch (k4D) { + case 2: + F(!y.V(f), x3n); + d = b[f], m = d; + d.pa && (d = U(b.slice(0, Math.min(f + (a.AXa ? 2 : 1), b.length)).reverse(), c), void 0 === d && (d = b[0], k = q3n, p = d.pa)); + b = new Y(); + b.vo = d; + m !== d && (b.reason = k, b.Vr = p); + return b; + break; + } + } - function h(a, b, c, d) { - this.buffer = a; - this.O = b; - this.view = new DataView(a, 0); - this.length = a.byteLength / 16; - this.jb = c; - this.If = d; - this.Qda = this.dfa = void 0; - this.length && (this.X = this.Nq(0), this.fa = this.get(this.length - 1).fa, this.bz = Math.floor((this.fa - this.X) / this.length)); - } - a(10); - a(13); - l = new(a(9)).Console("FRAGMENTS", "media|asejs"); - g = a(21); - a(72); - m = a(503); - Object.defineProperties(b.prototype, { - index: { - get: function() { - return this.wl; - }, - set: d + function c(b) { + var Y4D, f, g3n; + Y4D = 2; + while (Y4D !== 8) { + g3n = "buff"; + g3n += "_lt_his"; + g3n += "t"; + switch (Y4D) { + case 1: + Y4D = !f || (b.O > d.O ? a.Wrb : 1) * b.O > f ? 5 : 4; + break; + case 2: + f = b.pa; + Y4D = 1; + break; + case 5: + return !1; + break; + case 4: + k = g3n; + p = f; + return !0; + break; + } + } + } + } + + function p(a, f, d) { + var L4D, m, p; + L4D = 2; + while (L4D !== 3) { + switch (L4D) { + case 4: + return m; + break; + case 14: + return m; + break; + L4D = 3; + break; + case 2: + m = new Y(); + p = Math.max(a.gv, a.cT, f.T5 ? a.F7 : -Infinity); + m.vo = U(d.filter(function(b) { + var m4D; + m4D = 2; + while (m4D !== 1) { + switch (m4D) { + case 4: + return b.O > a.zy; + break; + m4D = 1; + break; + case 2: + return b.O <= a.zy; + break; + } + } + }).reverse(), function(f) { + var M4D, k, r, d, t3n, w3n, u3n, j3n; + M4D = 2; + while (M4D !== 7) { + t3n = "no_historic"; + t3n += "al_lte_mi"; + t3n += "nbi"; + t3n += "t"; + t3n += "rate"; + w3n = "his"; + w3n += "t_tput_lt_minb"; + w3n += "itrate"; + u3n = "lt_h"; + u3n += "ist_lte_m"; + u3n += "inbit"; + u3n += "rate"; + j3n = "hist_b"; + j3n += "u"; + j3n += "ff"; + j3n += "t"; + j3n += "ime"; + switch (M4D) { + case 5: + f = f.O; + r = d.pa; + M4D = 3; + break; + case 1: + M4D = f.O > p ? 5 : 8; + break; + case 3: + r ? (k = b(a, f), c(f, r, a) <= k ? (m.Vr = r, d && (m.Dl = d.ek ? d.ek : 0, m.wk = d.ek && d.Tl), m.reason = j3n, d = !0) : d = !1) : d = !1; + M4D = 9; + break; + case 2: + d = { + pa: f.pa, + ek: f.Ga && f.Ga.ek, + Tl: f.Ga && f.Ga.Tl + }; + M4D = 1; + break; + case 8: + k = d.pa, f.O <= k ? (m.Vr = k, d && (m.Dl = d.ek ? d.ek : 0, m.wk = d.ek ? d.Tl : void 0), m.reason = u3n, d = !0) : k ? (m.Vr = k, d && (m.Dl = d.ek ? d.ek : 0, m.wk = d.ek ? d.Tl : void 0), m.reason = w3n, d = !1) : (m.reason = t3n, d = !0); + M4D = 9; + break; + case 9: + return d; + break; + } + } + }) || d[0]; + L4D = 4; + break; + } + } + } + H4D = 2; + + function k(a, b) { + var e4D, f, c, C3n, K3n; + e4D = 2; + while (e4D !== 12) { + C3n = "h"; + C3n += "ist_thr"; + C3n += "ough"; + C3n += "pu"; + C3n += "t"; + K3n = "his"; + K3n += "t_tdi"; + K3n += "ge"; + K3n += "st"; + switch (e4D) { + case 2: + f = new Y(); + f.vo = a; + a = f.vo.Ga || {}; + e4D = 4; + break; + case 8: + e4D = 7; + break; + case 4: + f.wk = a.ek && a.Tl; + f.Dl = a.ek ? a.ek : 0; + a = H(f.wk, {}); + e4D = 8; + break; + case 7: + e4D = (c = y.ja(b.JU) && 0 <= b.JU && 100 >= b.JU && !y.V(a) && !y.Na(a)) ? 6 : 14; + break; + case 6: + a.gg = T.X9a(a), c = y.qb(a.gg) ? !0 : !1; + e4D = 14; + break; + case 14: + c ? (b = a.gg(b.JU / 100) || f.vo.pa, f.Vr = b, f.reason = K3n) : f.vo.pa && (b = f.vo.pa, f.Vr = b, f.reason = C3n); + return f; + break; + } + } + } + while (H4D !== 4) { + Q3n = "1SIYbZ"; + Q3n += "r"; + Q3n += "NJ"; + Q3n += "C"; + Q3n += "p9"; + switch (H4D) { + case 2: + y = a(11), w = a(13), D = a(43), z = a(8), l = a(205), P = D.console, F = D.assert, n = D.fgb, q = D.pZa, O = D.MB, Y = D.No, U = D.LXa, t = D.uma, S = a(59).Dob, T = a(206), H = a(48), X = l.jPa; + g.M = { + STARTING: function(a, b, c) { + var A4D, l3n; + A4D = 2; + while (A4D !== 1) { + l3n = "histori"; + l3n += "ca"; + l3n += "l"; + switch (A4D) { + case 2: + return l3n === a.I5 ? m(a, b, c) : a.Hla ? f(a, c) : p(a, b, c); + break; + } + } + }, + BUFFERING: v, + REBUFFERING: v, + PLAYING: x, + PAUSED: x + }; + Q3n; + H4D = 4; + break; + } + } + + function b(a, b) { + var v4D, f, c; + v4D = 2; + while (v4D !== 13) { + switch (v4D) { + case 1: + f = a.iS, c = t(f, function(a) { + var W4D; + W4D = 2; + while (W4D !== 1) { + switch (W4D) { + case 2: + return b <= a.r; + break; + case 4: + return b < a.r; + break; + W4D = 1; + break; + } + } + }); + v4D = 5; + break; + case 2: + v4D = a.iS ? 1 : 14; + break; + case 7: + f = f[c]; + return Math.floor(a.d + (f.d - a.d) * (b - a.r) / (f.r - a.r)); + break; + case 5: + v4D = 0 === c ? 4 : 3; + break; + case 3: + v4D = -1 === c ? 9 : 8; + break; + case 4: + return f[0].d; + break; + case 8: + H4DD.Y6n(0); + a = f[H4DD.J6n(c, 1)]; + v4D = 7; + break; + case 9: + return f[f.length - 1].d; + break; + case 14: + return a.Zr; + break; + } + } + } + + function d(a, b) { + var w4D, f, b3n, v3n, n4D; + w4D = 2; + while (w4D !== 9) { + b3n = "l"; + b3n += "o"; + b3n += "g"; + v3n = "s"; + v3n += "ig"; + v3n += "moid"; + switch (w4D) { + case 3: + return 0 === b.IU.lastIndexOf(v3n, 0) ? (f = b.Dza[b.IU]) && 2 == f.length ? 1E3 * (f[0] + f[1] * S(a)) : b.Zr : b.Zr; + break; + case 5: + f = b.Dza[b.IU]; + return f && 2 == f.length ? 1E3 * (f[0] + f[1] * Math.log(1 + a)) : b.Zr; + break; + case 2: + H4DD.Y6n(8); + n4D = H4DD.W6n(9, 99997, 32, 20); + a = O(a, 0, n4D) / 1E3; + w4D = 1; + break; + case 1: + w4D = 0 === b.IU.lastIndexOf(b3n, 0) ? 5 : 3; + break; + } + } + } + + function f(a, b) { + var I4D, f, m, p, r, g, h, R3n, h3n, F3n, a3n, M3n; + I4D = 2; + while (I4D !== 8) { + R3n = "no_sui"; + R3n += "table_s"; + R3n += "t"; + R3n += "rea"; + R3n += "m"; + h3n = "Dela"; + h3n += "yTa"; + h3n += "rget"; + F3n = "Bitr"; + F3n += "a"; + F3n += "te"; + a3n = "V"; + a3n += "M"; + a3n += "A"; + a3n += "F"; + M3n = "no_"; + M3n += "valid"; + M3n += "_"; + switch (I4D) { + case 1: + I4D = 0 <= h && (f ? b[h].oc >= a.H7 : b[h].O >= a.gv) && !(p = b[h], m = k(p, a), r = c(p.O, m.Vr, a), g = d(m.Vr, a), m.UI = r, r = r < g, p = f ? p.oc >= a.H7 && p.oc <= a.gva : p.O >= a.gv && p.O <= a.zy, g = r && p) ? 5 : 3; + break; + case 2: + f = a.H7 && a.gva, f = f && b.filter(function(a) { + var F4D; + F4D = 2; + while (F4D !== 1) { + switch (F4D) { + case 2: + return 110 >= a.oc && 0 < a.oc; + break; + case 4: + return 519 <= a.oc || 1 <= a.oc; + break; + F4D = 1; + break; + } + } + }).length == b.length, m = null, p = !1, r = !1, g = !1, h = b.length - 1; + I4D = 1; + break; + case 5: + g = [M3n], !p && f && g.push(a3n), p || f || g.push(F3n), r || g.push(h3n), m.reason = g.join(""); + I4D = 4; + break; + case 4: + h--; + I4D = 1; + break; + case 3: + y.Na(m) && (m = k(b[0], a), m.reason = R3n); + return m; + break; + } + } + } + + function c(a, b, f) { + var U4D; + U4D = 2; + while (U4D !== 5) { + switch (U4D) { + case 2: + a = q(f.ki, a * f.w7); + return n(a, b); + break; + } + } + } + + function v(a, b, f, c) { + var O4D, V3n; + O4D = 2; + while (O4D !== 1) { + V3n = "p"; + V3n += "layin"; + V3n += "g"; + switch (O4D) { + case 2: + return V3n === a.S0 ? x(a, b, f, c) : r(a, f, c); + break; + } + } + } + }()); + }, function(g) { + g.M = { + isa: function(d) { + var a; + if (d && 0 !== d.length) { + a = []; + d.forEach(function(b) { + var c; + void 0 === b.error.code && (b.error.code = 0); + void 0 === b.error.description && (b.error.description = "Unknown"); + a.forEach(function(a) { + b.error && b.error.code == a.error.code && b.error.description === a.error.description && (c = a); + }); + c ? c.EK.push(b.hj) : a.push({ + error: b.error, + EK: [b.hj] + }); + }); + return a; + } }, - ga: { - get: function() { - return this.hv.getUint32(this.Zb); - }, - set: d + fra: function(d) { + var a; + a = { + freeSize: d.ei, + dailyBytesRemaining: d.WB, + bytesWritten: d.yh, + time: d.time, + duration: d.duration + }; + d.items && (a.items = d.items.map(function(a) { + return { + key: a.key, + operation: a.Re, + itemBytes: a.AS, + error: a.error + }; + })); + return a; }, - X: { - get: function() { - return this.hv.getUint32(this.Zb + 4); - }, - set: d + Op: function(d) { + return d["catch"](function(a) { + setTimeout(function() { + throw a; + }, 0); + }); + } + }; + }, function(g) { + g.M = { + Kea: { + code: -1, + description: "MediaCache is not supported." }, - duration: { - get: function() { - return this.hv.getUint16(this.Zb + 14); - }, - set: d + nzb: { + code: 100, + description: "Resource was not found" }, - fa: { - get: function() { - return this.X + this.duration; - }, - set: d + OJa: { + code: 101, + description: "Resource Metadata was not found" }, - Ad: { - get: function() { - return this.hv.getUint32(this.Zb + 4); - }, - set: d + uA: { + code: 102, + description: "Read failed", + Wl: function(d, a) { + return { + code: this.code, + description: d, + cause: a + }; + } }, - ON: { - get: function() { - return this.hv.getUint16(this.Zb + 14); - }, - set: d + yN: { + code: 200, + description: "Daily write limit exceeded" }, - mi: { - get: function() { - return this.Ad + this.ON; - }, - set: d + Sz: { + code: 201, + description: "Capacity has been exceeded" }, - offset: { - get: function() { - return 65536 * this.hv.getUint32(this.Zb + 8) + this.hv.getUint16(this.Zb + 12); - }, - set: d + xN: { + code: 202, + description: "Write failed, cause unknown", + Wl: function(d, a) { + return { + code: this.code, + description: d, + cause: a + }; + } }, - HG: { - get: function() { - return this.tl.vP && this.tl.vP[this.wl]; - }, - set: d + KAb: { + code: 203, + description: "Write failed, cause unknown" }, - Fh: { - get: function() { - return this.tl.Fh && this.tl.Fh.get(this.wl); - }, - set: d + yFa: { + code: 300, + description: "Failed to delete resource", + Wl: function(d, a) { + return { + code: this.code, + description: d, + cause: a + }; + } }, - je: { - get: function() { - return this.tl.en && this.tl.en[this.wl]; - }, - set: d + Xs: { + code: 900, + description: "Invalid partition name" }, - bc: { - get: function() { - return this.tl.bc; - }, - set: d + KIa: { + code: 700, + description: "Invalid parition configuration, commitment exceeds capacity." }, - Kn: { - get: function() { - return this.tl.bc.Bf; - }, - set: d + Aca: { + code: 701, + description: "Failed to initialize underlying disk cache." }, - Mn: { - get: function() { - return this.tl.bc.jb; - }, - set: d + NJa: { + code: 800, + description: 'Metadata failed to pass validation. Metadata must be an object with a numeric "lifespan" property.' } + }; + }, function(g, d) { + Object.defineProperty(d, "__esModule", { + value: !0 }); - b.prototype.constructor = b; - b.prototype.toJSON = function() { + d.RG = function(a, b) { + return "" + a === "" + b; + }; + }, function(g, d, a) { + var h, k, f, p; + + function b(a, b, f) { + k.call(this, a, b, f); + } + + function c(a, b) { + k.call(this, a, b, void 0); + } + a(14); + a(28); + h = a(152); + k = a(201).NKa; + f = a(709); + a(57); + p = a(57).Oia; + a(57); + b.prototype = Object.create(k.prototype); + b.prototype.U1 = function(a, f, c) { + return new b(this.stream, { + data: this.data, + offset: f, + length: c + }, a); + }; + c.prototype = Object.create(b.prototype); + c.prototype.nSa = function(a, b) { + return "string" === typeof b ? f[b] : b ? f.reset[a] || f.zAa[a] : f.zAa[a]; + }; + c.prototype.Bya = function(a, b, f, c) { + return this.$c(a, b, !1, f, c); + }; + c.prototype.Eya = function(a, b, f, c) { + return this.$c(a, b, !0, f, c); + }; + c.prototype.$c = function(a, b, f, c, d) { + var p, k, g, r, u, v, x, l, n, q, U, t, S, T; + + function m(a) { + g = k[a]; + r = g.Ao("traf"); + if (void 0 === r || void 0 === r.or) return !1; + u = r.Ao("tfdt"); + if (void 0 === u) return !1; + v = r.Ao("trun"); + return void 0 === v ? !1 : !0; + } + p = []; + if (!this.parse()) return !1; + k = this.Wb.moof; + if (!k || 0 === k.length) return !1; + if (void 0 !== a) + for (x = a, a = 0; a < k.length; ++a) { + if (!m(a)) return !1; + if (v.Ed > x || f && v.Ed === x) break; + x -= v.Ed; + } else if (a = f ? k.length - 1 : 0, !m(a)) return !1; + f && a < k.length - 1 ? (p = k[a + 1], this.uj(this.c2 - p.startOffset, p.startOffset)) : !f && 0 < a && this.uj(g.startOffset, 0); + p = r.Ao("tfhd"); + if (void 0 === p) return !1; + u = r.Ao("tfdt"); + l = v.Ed; + n = r.Ao("saiz"); + q = r.Ao("saio"); + U = r.Ao(h.Kfa); + t = r.Ao("sbgp"); + if (!(!n && !q || n && q)) return !1; + S = r.Ao("sdtp"); + if (this.Wb.mdat && a < this.Wb.mdat.length) T = this.Wb.mdat[a]; + else if (a !== k.length - 1) return !1; + void 0 === x && (x = f ? v.Ed : 0); + if (v.$c(r, p, T || this, b, x, r.or, f)) v.Dpa && (!f && u && u.$c(v.Gob), n && q && (n.$c(v.lE, f), q.$c(U ? 0 : n.Q9, r.or, f)), U && U.$c(v.lE, f), S && S.$c(v.lE, l, f), t && t.$c(v.lE, f)); + else if (!f) { + if (a === k.length - 1) return !1; + this.uj(k[a + 1].startOffset - g.startOffset, g.startOffset); + } else if (0 === v.lE) return !1; + c && (b = this.nSa(this.profile, d)) && v.Qlb(r, p, T, f, c, b); + p = this.Jq(); + v.Dpa && !T && (p.TD = r.or + v.TD, p.ss = v.ss); + return p; + }; + g.M = { + VM: c, + yeb: function(a) { + var b, f; + b = new ArrayBuffer(8); + f = new DataView(b); + f.setUint32(0, a + 8); + f.setUint32(4, p("mdat")); + return b; + } + }; + }, function(g, d, a) { + var b, c, h, k, f; + Object.defineProperty(d, "__esModule", { + value: !0 + }); + b = a(0); + c = a(14); + h = a(111); + g = a(58); + k = a(360); + f = a(82); + a = function(a) { + function d(b, c, d, m) { + d = a.call(this, b, c, d, m) || this; + f.Tk.call(d, b, c); + d.Lb = 0; + d.Ak(); + d.xh = !1; + return d; + } + b.__extends(d, a); + Object.defineProperties(d.prototype, { + Bc: { + get: function() { + return !1; + }, + enumerable: !0, + configurable: !0 + } + }); + d.prototype.push = function(b) { + this.Lb += b.Z; + a.prototype.push.call(this, b); + }; + d.prototype.ky = function() { + return !this.xh && !!this.oa.length && this.oa.every(function(a) { + return a.ky(); + }); + }; + d.prototype.zB = function(a) { + c(!this.xh); + return this.xh = this.oa.every(function(b) { + return b.ky() ? b.zB(a, void 0, void 0) : !1; + }); + }; + d.prototype.Blb = function() { + this.oa.forEach(function(a) { + a.mU(); + }); + }; + d.prototype.mv = function(a) { + k.YL.prototype.mv.call(this, a); + }; + d.prototype.li = function(a) { + k.YL.prototype.li.call(this, a); + }; + d.prototype.Vi = function() { + return this.oa ? this.oa[0].Vi() + "-" + this.oa[this.oa.length - 1].Vi() : "empty"; + }; + d.prototype.toString = function() { + return f.Tk.prototype.toString.call(this) + "(aggregate)"; + }; + d.prototype.toJSON = function() { + var b; + b = a.prototype.toJSON.call(this); + h(f.Tk.prototype.toJSON.call(this), b); + return b; + }; + return d; + }(k.YL); + d.$V = a; + g.Rk(f.Tk, a); + }, function(g, d, a) { + var f, p, m, r, u, x, v, y; + + function b(a, b, f, c, d, m, p, k, g) { + this.aRa = a; + this.Uo = b; + this.Sw = f; + this.dP = c; + this.$w = g; + this.stream = m; + p instanceof ArrayBuffer ? (this.data = p, this.offset = 0, this.c2 = p.byteLength) : (this.data = p.data, this.offset = p.offset || 0, this.c2 = p.length || this.data.byteLength); + this.level = g ? g.level + 1 : 0; + this.eH = {}; + this.vE = void 0; + d && (this.Wb = {}); + this.config = k || {}; + this.truncate = this.config.truncate; + this.hE = this.config.hE; + this.Aib = this.offset; + this.ZJ = this.Aib + this.c2; + this.view = new DataView(this.data); + this.Jy = this.KP = 0; + this.Goa = []; + this.Au = []; + } + + function c(a, b) { return { - ga: this.ga, - offset: this.offset, - X: this.X, - fa: this.fa, - duration: this.duration, - index: this.index - }; - }; - h.constructor = h; - h.Jdb = 16; - Object.defineProperties(h.prototype, { - Yf: { - get: function() { - return this.dfa || this.IGa(); - }, - set: d - }, - Zma: { + type: "done", + moovEnd: a, + parsedEnd: b + }; + } + + function h(a, c, d, p, k, g) { + var h; + p = p ? [r.$X, r.YX] : void 0; + h = Object.create(m.Wb); + k && ((k.uib || k.Gaa) && f(m.R9, h), k.Haa && f(m.brb, h), k.Gaa && f(m.Wqb, h)); + b.call(this, h, d, p, k && k.DIb || ["moof", r.ofa], !(!k || !k.yIb), a, c, k, g); + } + + function k(a, f, c) { + b.call(this, m.Wb, void 0, void 0, void 0, !0, a, f, void 0, c); + } + a(14); + f = a(48); + d = a(29).EventEmitter; + p = new(a(8)).Console("MP4", "media|asejs"); + m = a(725); + r = a(152); + u = a(368); + x = a(28).Br; + u.y6a(); + v = a(57).nZ; + y = a(57).Oia; + a(57); + b.prototype = Object.create(d); + b.prototype.constructor = b; + Object.defineProperties(b.prototype, { + P: { get: function() { - return this.Qda || this.EGa(); - }, - set: d + return this.stream.P; + } }, - vP: { + url: { get: function() { - return this.rL; - }, - set: d + return this.stream.url; + } }, - Fh: { + profile: { get: function() { - return this.oy; - }, - set: d + return this.stream.profile; + } }, - bc: { + O: { get: function() { - return this.If; - }, - set: d + return this.stream.O; + } } }); - h.from = function(a, b, c, d, g) { - var l, r, f; - for (var p = new DataView(new ArrayBuffer(16 * a.length)), m = 0; m < a.length; ++m) { - l = 16 * m; - r = b ? b(a[m], m, a) : a[m]; - p.setUint32(l, r.ga); - p.setUint32(l + 4, r.X); - f = r.offset; - p.setUint32(l + 8, f / 65536 | 0); - p.setUint16(l + 12, f & 65535); - p.setUint16(l + 14, r.duration); - } - return new h(p.buffer, c, d, g); + b.prototype.Hb = function(a) { + p.trace("MP4" + (void 0 !== this.level ? "." + this.level : ":") + ":" + a); }; - h.prototype.IGa = function() { - for (var a = 0, b = 0; b < this.length; ++b) a += this.sizes(b); - return this.dfa = a; + b.prototype.fa = function(a) { + p.warn("MP4" + (void 0 !== this.level ? "." + this.level : ":") + ":" + a); }; - h.prototype.spa = function(a, b, c, d) { - a && void 0 === this.If && (this.If = a); - a = this.If; - b && c && d && (this.rL = b, this.oy = new m(c, d, a, this.Nq.bind(this))); + b.prototype.V1a = function(a, b, f) { + var c; + c = this.aRa[a]; + if (c) return new c(this, a, b, f); }; - h.prototype.sizes = function(a) { - return this.view.getUint32(16 * a); + b.prototype.Hya = function(a) { + for (var b in a) a.hasOwnProperty(b) && (this.eH[b] = a[b], this.dP && -1 !== this.dP.indexOf(b) && (void 0 === this.vE || a[b].offset < this.vE) && (this.vE = a[b].offset)); }; - h.prototype.Nq = function(a) { - return this.view.getUint32(16 * a + 4); + b.prototype.parse = function(a) { + var f, c, d; + + function b(a, b, f, c, d) { + var m; + if (a) { + m = a.indexOf(b); - 1 != m && (d.Hb(c + " box " + b + " found at offset: 0x" + f.toString(16)), a.splice(m, 1)); + } + } + for (this.Xj = a || {};;) { + this.zx = this.offset; + if (8 > this.ZJ - this.zx) { + this.Uo && 0 < this.Uo.length && this.ala(); + break; + } + this.M0 = this.fb(); + f = this.fb(); + a = v(f); + if (0 === this.M0) { + this.c_("MP4: invalid zero length box for " + a); + break; + } + if (null === a) { + this.c_("MP4: invalid box type: " + f); + break; + } + f = this.zx + this.M0; + if (f > this.ZJ) { + this.Hb("more data needed: 0x" + f.toString(16) + " > 0x" + this.ZJ.toString(16)); + this.ala(a, f); + break; + } + "uuid" === a && (a = this.zG()); + c = !1; + if (this.dP && -1 !== this.dP.indexOf(a) && (this.vE = this.zx, c = !0, !this.config.cHb)) break; + d = this.V1a(a, this.zx, this.M0); + if (d) { + if (!d.parse(this.Xj)) { + this.Hb("box parser failed: " + a); + break; + } + this.Wb && (void 0 === this.Wb[a] && (this.Wb[a] = []), this.Wb[a].push(d)); + } + b(this.Sw, a, this.zx, "desired", this); + b(this.Uo, a, this.zx, "required", this); + if (this.Uo && 0 === this.Uo.length && !(this.Sw && this.Sw.length && this.Sw.some(function(a) { + return this.eH[a]; + }.bind(this)))) return this.Hb("done: moov end offset: " + this.NJ + ", parsing end offset: " + f), this.Eka(this.NJ, f), !0; + if (c) break; + this.offset = f; + if (this.vE === this.offset) break; + } + if (this.offset >= this.vE || this.offset > this.ZJ - 8) return this.Eka(this.NJ, this.offset), !0; + this.offset = this.zx; + return !1; }; - h.prototype.nN = function(a) { - return this.view.getUint32(16 * a + 4) + this.view.getUint16(16 * a + 14); + b.prototype.B_ = function(a) { + this.data = this.data.slice(0, a); + this.view = new DataView(this.data); }; - h.prototype.i3 = function(a) { - return 65536 * this.view.getUint32(16 * a + 8) + this.view.getUint16(16 * a + 12); + b.prototype.ala = function(a, b) { + a ? (this.Uo && this.Uo.length && (1 < this.Uo.length || this.Uo[0] !== a) ? b = this.lBb || b + 4096 : this.Sw && this.Sw.length && (b = this.Sw.filter(function(a) { + return this.eH[a]; + }.bind(this)).reduce(function(a, b) { + return Math.max(a, this.eH[b].offset + this.eH[b].size || 0); + }.bind(this), b)), this.config.JE && (b += 12), this.Fka(b - this.ZJ)) : this.Fka(4096); }; - h.prototype.hF = function(a) { - return this.view.getUint16(16 * a + 14); + b.prototype.Jkb = function(a) { + var b; + b = []; + if (0 === a) return ""; + a = a || Number.MAX_SAFE_INTEGER; + for (var f = this.Sc(); 0 !== f && 0 < --a;) b.push(f), f = this.Sc(); + return String.fromCharCode.apply(null, b); }; - h.prototype.get = function(a) { - return new b(this, a); + b.prototype.c_ = function(a) { + this.fa("ERROR: " + a); + a = { + type: "error", + ctxt: this.Xj, + errormsg: a + }; + this.Ia(a.type, a); }; - h.prototype.A$a = function(a) { - return function() { - for (var b = Array(this.length), c = 0; c < this.length; ++c) b[c] = a.call(this, c); - return b; + b.prototype.Eka = function(a, b) { + var f; + if (this.iq) { + f = { + type: "vmafs", + ctxt: this.Xj, + vmafs: this.iq + }; + this.Ia(f.type, f); + } + this.Y && (f = { + type: "fragments", + ctxt: this.Xj, + fragments: this.Y, + truncated: this.Js, + movieDataOffsets: this.jv, + additionalSAPs: this.wh, + timescale: this.ha, + defaultSampleDuration: this.Mx + }, this.Ia(f.type, f)); + f = c(a, b); + this.Ia(f.type, f); + }; + b.prototype.Fka = function(a) { + a = { + type: "requestdata", + ctxt: this.Xj, + bytes: a }; - }(h.prototype.Nq); - h.prototype.slice = function(a, b) { - g(void 0 === a || 0 <= a && a < this.length); - g(void 0 === b || b > a && b <= this.length); - a = this.buffer.slice(16 * (a || 0), 16 * (b || this.length)); - return new h(a, this.jb); + this.Ia(a.type, a); }; - h.prototype.concat = function() { - var a, b, c; - a = Array.prototype.concat.apply(Array(this), arguments); - b = a.reduce(function(a, b) { - return a + b.length; - }, 0); - c = new Uint8Array(16 * b); - a.reduce(function(a, b) { - c.set(new Uint8Array(b.buffer), a); - return a + b.buffer.byteLength; - }, 0); - return new h(c.buffer, this.O, this.jb); + b.prototype.hx = function(a) { + if (this.$w) this.$w.u.hx(a); + else + for (var b in a) this[b] = a[b]; }; - h.prototype.forEach = function(a) { - for (var b = 0; b < this.length; ++b) a(this.get(b), b, this); + b.prototype.yf = function(a) { + for (; this.Jy < a;) this.KP = (this.KP << 8) + this.Sc(), this.Jy += 8; + this.Jy -= a; + return this.KP >>> this.Jy & (1 << a) - 1; }; - h.prototype.map = function(a) { - for (var b = [], c = 0; c < this.length; ++c) b.push(a(this.get(c), c, this)); - return b; + b.prototype.Sc = function() { + var a; + a = this.view.getUint8(this.offset); + this.offset += 1; + return a; }; - h.prototype.reduce = function(a, b) { - var c; - c = void 0 !== b ? b : this.get(0); - for (b = void 0 !== b ? 0 : 1; b < this.length; ++b) c = a(c, this.get(b), b, this); - return c; + b.prototype.lf = function(a) { + a = this.view.getUint16(this.offset, a); + this.offset += 2; + return a; }; - h.prototype.Ll = function(a, b, c) { - if (0 > a || 0 === this.length) return -1; - a = Math.max(a, b || 0); - for (var d = 0, g = this.length - 1, h, p; g >= d;) - if (h = d + (g - d >> 1), p = this.Nq(h), a < p) g = h - 1; - else if (a >= p + this.hF(h)) d = h + 1; - else { - for (; b && h < this.length && this.Nq(h) < b;) ++h; - return h < this.length ? h : c ? this.length - 1 : -1; - } - return c ? this.length - 1 : -1; + b.prototype.fb = function(a) { + a = this.view.getUint32(this.offset, a); + this.offset += 4; + return a; }; - h.prototype.j_ = function(a, b, c) { - a = this.Ll(a, b, c); - return 0 <= a ? this.get(a) : void 0; + b.prototype.m_ = function() { + var a; + a = this.view.getInt32(this.offset, void 0); + this.offset += 4; + return a; }; - h.prototype.xMa = function(a) { - var b; - a = a.Sq(1E3).Bf; - b = 4; - for (0 > this.view.getUint32(4) + a && (this.view.setUint32(4, 0), this.view.setUint16(14, this.view.getUint32(20) + a), b = 20); b < 16 * this.length; b += 16) this.view.setUint32(b, Math.max(0, this.view.getUint32(b) + a)); + b.prototype.jl = function(a, b, f) { + this.view.setUint32(void 0 !== f ? f : this.offset, a, b); + this.offset += 4; }; - h.prototype.toJSON = function() { - return { - length: this.length, - bz: this.bz - }; + b.prototype.Cla = function(a) { + this.view.setInt32(this.offset, a, void 0); + this.offset += 4; }; - h.prototype.dump = function() { - var b; - l.trace("StreamFragments: " + this.length + ", averageFragmentDuration: " + this.bz + "ms"); - for (var a = 0; a < this.length; ++a) { - b = this.get(a); - l.trace("StreamFragments: " + a + ": [" + b.X + "-" + b.fa + "] @ " + b.offset + ", " + b.ga + " bytes"); - } + b.prototype.BUa = function(a, b) { + var f; + f = this.view.getUint32(this.offset + (a ? 4 : 0), a); + a = this.view.getUint32(this.offset + (a ? 0 : 4), a); + !b && f & 1 && this.fa("Warning: read unsigned value > 56 bits"); + return 4294967296 * f + a; }; - h.prototype.EGa = function() { - for (var a = 0, b, c = 0; c < this.length; c++) b = this.hF(c), b > a && (a = b); - return this.Qda = a; + b.prototype.rh = function(a, b) { + a = this.BUa(a, b); + this.offset += 8; + return a; }; - f.P = h; - }, function(f, c, a) { - var d, h; - - function b(a) { - this.H = { - sG: a.maxc || 25, - IY: a.c || .5, - W6a: a.rc || "none", - hZa: a.hl || 7200 - }; - this.UD(); - this.XJa = this.H.W6a; - this.wD = this.H.hZa; - this.gV = Math.exp(Math.log(2) / this.wD); - this.gV = Math.max(this.gV, 1); - this.JK = 1; - } - d = a(10); - h = a(178).TDigest; - new(a(9)).Console("ASEJS_NETWORK_HISTORY", "media|asejs"); - b.prototype.ae = function() { + b.prototype.CUa = function() { + var a, b; + a = this.view.getInt32(this.offset + 0, void 0); + b = this.view.getUint32(this.offset + 4, void 0); + (0 < a ? a : -a) & 1 && this.fa("Warning: read signed value > 56 bits"); + return 4294967296 * a + b; + }; + b.prototype.TUa = function() { var a; - if (0 === this.ed.size()) return null; - a = this.ed.cf([.25, .75]); - if (a[0] === a[1]) return null; - this.ed.size() > this.H.sG && this.ed.Np(); - a = this.ed.sx(!1).reduce(function(a, b) { - d.da(b.Qd) && d.da(b.n) && a.push({ - mean: b.Qd, - n: b.n / this.JK - }); - return a; - }.bind(this), []); - return { - tdigest: JSON.stringify(a) - }; + a = this.CUa(); + this.offset += 8; + return a; }; - b.prototype.qh = function(a) { - var b; - if (d.Ja(a) || !d.has(a, "tdigest") || !d.oc(a.tdigest)) return !1; - try { - b = JSON.parse(a.tdigest); - } catch (m) { - return !1; + b.prototype.yWa = function(a, b) { + var f; + f = Math.floor(a / 4294967296); + a &= 4294967295; + void 0 !== b ? (this.view.setUint32(b, f, !1), this.view.setUint32(b + 4, a, !1)) : (this.view.setUint32(this.offset, f, !1), this.offset += 4, this.view.setUint32(this.offset, a, !1), this.offset += 4); + }; + b.prototype.xG = function() { + return v(this.fb()); + }; + b.prototype.Bla = function(a) { + this.jl(y(a)); + }; + b.prototype.zG = function() { + var b, f, c, d, m, p; + + function a(a, b) { + return ("000000" + a.toString(16)).slice(2 * -b); } - b.forEach(function(a) { - d.isFinite(a.n) || (a.n = 1); - }); - a = b.map(function(a) { - return { - Qd: a.mean, - n: a.n - }; - }); - this.JK = 1; - this.ed.W3(a); - void 0 === this.ed.cf(0) && this.UD(); + b = this.fb(!0); + f = this.lf(!0); + c = this.lf(!0); + d = this.lf(); + m = this.lf(); + p = this.fb(); + return [a(b, 4), a(f, 2), a(c, 2), a(d, 2), a(m, 2) + a(p, 4)].join("-"); }; - b.prototype.get = function() { - var a, b; - a = this.ed; - b = a.cf([0, .1, .25, .5, .75, .9, 1]); - return { - min: b[0], - WG: b[1], - jh: b[2], - Tf: b[3], - kh: b[4], - XG: b[5], - max: b[6], - tf: a.sx(!1) - }; + b.prototype.jI = function(a) { + return m.Sba.prototype.jI.call(this, a); }; - b.iYa = function(a) { - var c; - c = new b({}); - d.Ja(a) || d.S(a) || !d.isArray(a.tf) || (c.ed.W3(a.tf), void 0 === c.ed.cf(0) && c.UD()); - a = c.ed.cf([.25, .75]); - return a[0] === a[1] ? null : function(a) { - return c.ed.cf(a); - }; + b.prototype.kI = function(a) { + return m.Sba.prototype.kI.call(this, a); }; - b.prototype.add = function(a) { + b.prototype.JO = function(a) { var b; - b = 1; - "ewma" === this.XJa && (this.JK = b = this.JK * this.gV); - this.ed.push(a, b); + b = (this.config.JE && u.cab || u.LC)(this.view, this.offset, a, void 0); + this.offset += 1 * a; + return b; }; - b.prototype.toString = function() { - return "TDigestHist(" + this.ed.summary() + ")"; + b.prototype.RUa = function(a) { + a = (this.config.JE && u.aab || u.NR)(this.view, this.offset, a, 10, void 0); + this.offset += 2; + return a; }; - b.prototype.UD = function() { - this.ed = new h(this.H.IY, this.H.sG); + b.prototype.IO = function(a, b, f) { + var c; + c = (this.config.JE && u.bab || u.KC)(this.view, this.offset, a, b, void 0); + this.offset = f || !b || 4 === b ? this.offset + a * (b || 4) : this.offset + 4; + return c; }; - f.P = b; - }, function(f, c, a) { - var g; - - function b(a, b, c) { - this.Dz = !1 === a; - this.aF = a || .01; - this.F9 = void 0 === b ? 25 : b; - this.k7 = void 0 === c ? 1.1 : c; - this.tf = new g(d); - this.reset(); - } - - function d(a, b) { - return a.Qd > b.Qd ? 1 : a.Qd < b.Qd ? -1 : 0; - } - + b.prototype.Vka = function(a) { + for (var b = this.Sc(), f = this.Sc(), c = f & 127; f & 128;) f = this.Sc(), c = (c << 7) + (f & 127); + b = new(m.xu[b] || m.xu.base)(this, b, c); + b.parse(a); + return b; + }; + b.prototype.uj = function(a, b) { + this.eB(a, void 0, b); + }; + b.prototype.eB = function(a, b, f) { + f = void 0 !== f ? f : this.offset; + this.$w ? this.$w.eB(a, b, f) : this.Au.push({ + offset: f, + remove: a, + replace: b + }); + }; + b.prototype.wO = function(a, b) { + b = void 0 !== b ? b : this.offset; + this.$w ? this.$w.u.wO(a, b) : this.Goa.push({ + offset: b, + Qa: a + }); + }; + b.prototype.Jq = function() { + var a, b, f, c; + if (this.Au && 0 < this.Au.length) { + this.Goa.forEach(function(a) { + var b, f; + b = a.Qa + this.view.getUint32(a.offset); + f = this.Au.reduce(function(f, c) { + return c.offset > a.Qa && c.offset < b ? f + (c.remove - (c.replace ? c.replace.byteLength : 0)) : f; + }, 0); + this.view.setUint32(a.offset, b - a.Qa - f); + }.bind(this)); + a = []; + this.Au.sort(function(a, b) { + return a.offset - b.offset; + }); + this.Au = this.Au.reduce(function(a, b) { + var f, c; + if (0 === a.length) return a.push(b), a; + f = a[a.length - 1]; + c = f.offset + f.remove; + b.offset >= c ? a.push(b) : b.offset + b.remove > c && (f.remove += b.offset + b.remove - c, b.replace && (f.replace = f.replace ? x(f.replace, b.replace) : b.replace)); + return a; + }, []); + b = 0; + f = this.data.byteLength; + c = 0; + this.Au.filter(function(a) { + return a.offset < f; + }).forEach(function(f) { + f.offset > b && (a.push(this.data.slice(b, f.offset)), c += f.offset - b); + f.replace && (a.push(f.replace), c += f.replace.byteLength); + b = f.offset + f.remove; + }.bind(this)); + a.push(this.data.slice(b)); + c += f - b; + return { + ce: a, + length: c, + BD: this.data.byteLength + }; + } + return { + ce: [this.data], + length: this.data.byteLength, + BD: this.data.byteLength + }; + }; + h.prototype = Object.create(b.prototype); + h.prototype.U1 = function(a, b, f, c) { + a = new h(this.stream, { + data: this.data, + offset: b, + length: f + }, void 0, !1, this.config, a); + c && (a.Wb = {}); + return a; + }; + h.prototype.krb = function(a) { + this.B_(a); + return this.config && this.config.Gaa ? (a = this.Jq(), x(a.ce)) : this.data; + }; + k.prototype = Object.create(b.prototype); + k.prototype.U1 = function(a, b, f) { + return new k(this.stream, { + data: this.data, + offset: b, + length: f + }, a); + }; + g.M = { + OKa: h, + NKa: k, + yEb: c + }; + }, function(g, d, a) { + var b, c, h, k, f, p, m, r; + Object.defineProperty(d, "__esModule", { + value: !0 + }); + b = a(0); + g = a(29); + c = a(11); + h = g.dF; + k = a(8); + f = k.Eb; + g = a(47); + p = a(58); + m = a(129); + r = a(154); + a = function(a) { + function d(b, c, d, p, k, g) { + c = a.call(this, c, d) || this; + m.Wv.call(c, b, p, k, g); + r.Xv.call(c, b, p); + c.AN = b.url || p.url; + c.zN = p.responseType; + c.iia = p.VU; + void 0 === c.zN && (c.zN = f.ec && !f.ec.XD.Bw ? 0 : 1); + c.Yf = new h(); + c.Yf.on(c, f.ed.Afa, c.BO); + c.Yf.on(c, f.ed.zfa, c.xka); + c.Yf.on(c, f.ed.Bfa, c.zka); + c.Yf.on(c, f.ed.CF, c.AO); + c.Yf.on(c, f.ed.vw, c.rG); + c.AA = !1; + c.Dc = !1; + c.wg = !1; + return c; + } + b.__extends(d, a); + d.prototype.Ac = function(a, b) { + m.Wv.prototype.Ac.call(this, a, b); + this.Wa || !a.K.uP && this.Bc || (this.Wa = a.$a.Wa, this.active && (this.Wa.oU(k.time.now(), this.Bt()), this.wg && (this.Wa.B9(k.time.now()), this.connect && 0 < this.vs.length && this.Wa.hr(this.vs[0])))); + }; + d.prototype.ky = function() { + return 1 === this.responseType ? 3 <= this.readyState : 5 === this.readyState; + }; + d.prototype.zB = function(a) { + return this.xh = a.appendBuffer(this.response, this); + }; + d.prototype.nta = function() { + return this.kl; + }; + d.prototype.nv = function() { + return f.prototype.open.call(this, this.AN, { + start: this.offset, + end: this.offset + this.Z - 1 + }, this.zN, {}, void 0, void 0, this.iia); + }; + d.prototype.abort = function() { + var a; + if (this.kl) return !0; + a = this.Dc; + this.Wa && a && this.Wa.qU(k.time.da(), this.wg, this.Bt()); + this.AA = !0; + this.wg = this.Dc = !1; + f.prototype.abort.call(this); + this.rR(this, a); + return !0; + }; + d.prototype.Ld = function() { + 0 !== this.readyState && 7 !== this.readyState && 5 !== this.readyState && (this.W.fa("AseMediaRequest: in-progress request should be aborted before cleanup", this), this.abort()); + this.Yf && this.Yf.clear(); + f.prototype.Ld.call(this); + }; + d.prototype.rG = function() { + var a, b, f, d; + this.W.fa("AseMediaRequest._onError:", this.toString()); + a = this.rd; + this.cl = k.time.da() - this.rd; + b = this.status; + f = this.pk; + d = this.Il; + this.complete ? this.W.fa("Error on a done request " + this.toString() + ", failurecode: " + f) : this.kl ? this.W.fa("Error on an aborted request " + this.toString() + ", failurecode: " + f) : c.ja(f) ? (this.Wa && this.te && this.te.K.x9 && this.Hf && void 0 === b && this.Wa.sP(this.ni ? this.Ae - this.ni : this.Ae, this.fj ? this.fj : this.Hf, a), this.sR(this)) : this.W.fa("ignoring undefined request error (nativecode: " + d + ")"); + }; + d.prototype.BO = function() { + var a; + a = this.rd || this.Hf; + this.Dc || (this.Dc = !0, this.Zn = this.track.Zn(), this.stream.K.Qua || this.Wa && this.Wa.oU(a, this.Bt()), this.Yx(this), this.ni = 0, this.fj = this.rd); + }; + d.prototype.xka = function() { + var a, b, f; + a = this.rd; + b = this.connect; + f = this.vs; + this.cl = k.time.da() - this.rd; + this.wg || (this.wg = !0, this.stream.K.Qua && this.Wa && this.Wa.oU(a, this.Bt()), this.Wa && this.Wa.B9(), b && 0 < f.length && this.Wa && this.Wa.hr(f[0]), this.Xx(this), this.fj = a); + }; + d.prototype.zka = function() { + var a, b, f; + a = this; + b = this.rd; + f = this.Ae - this.ni; + this.cl = k.time.da() - this.rd; + this.Wa && (this.Wa.sP(f, this.fj, b), this.vs && this.vs.length && this.vs.forEach(function(b) { + a.Wa.fr(b); + })); + this.wC(this); + this.fj = b; + this.ni = this.Ae; + }; + d.prototype.AO = function() { + var a, b, f; + a = this; + b = this.rd; + f = this.Ae - this.ni; + this.cl = k.time.da() - this.rd; + this.Wa && (0 < f && this.Wa.sP(f, this.fj, b), this.vs && this.vs.length && this.vs.forEach(function(b) { + a.Wa.fr(b); + }), this.Wa.qU(b, this.wg, this.Bt())); + this.wg = this.Dc = !1; + this.Gu(this); + this.fj = b; + this.ni = this.Ae; + this.Ld(); + }; + d.prototype.Bt = function() { + var a, b; + a = (a = this.stream) ? a.toString() : this.url; + b = this.oZa; + b && (a += ",range " + b.start + "-" + b.end); + return a; + }; + Object.defineProperties(d.prototype, { + CS: { + get: function() { + return this.cl; + }, + enumerable: !0, + configurable: !0 + } + }); + return d; + }(f); + d.QE = a; + g.ai(a.prototype, { + active: g.L({ + get: function() { + return this.Dc; + } + }), + oya: g.L({ + get: function() { + return this.wg; + } + }), + complete: g.L({ + get: function() { + return !this.AA && 5 === this.readyState; + } + }), + kl: g.L({ + get: function() { + return this.AA; + } + }) + }); + p.Rk(m.Wv, a, !1); + p.Rk(r.Xv, a, !1); + }, function(g, d, a) { + var b, c, h; + Object.defineProperty(d, "__esModule", { + value: !0 + }); + b = a(0); + g = a(111); + c = a(202); + h = a(154); + a = function(a) { + function f(b, f, c, d, k, g) { + f = a.call(this, b, f, c, d, k, g) || this; + h.Xv.call(f, b, d); + return f; + } + b.__extends(f, a); + return f; + }(c.QE); + d.ZL = a; + g(h.Xv.prototype, a.prototype); + }, function(g, d, a) { + var b, c, h, k; + Object.defineProperty(d, "__esModule", { + value: !0 + }); + b = a(0); + c = a(74); + h = a(366); + g = a(47); + a(14); + k = a(13); + a = function() { + function a(a, b) { + this.xn = a.Fa; + this.xc = a.na || 0; + this.JQa = a.Yo; + this.cWa = a.uf; + this.om = a.R; + this.$j = a.P; + this.gO = a.Ka; + this.Zja = a.Beb; + this.St = a.ha || a.Ka && a.Ka.ha; + this.jka = a.Hy; + this.jja = !1; + this.Cb = a.Ul || a.Y && a.Y.Ul; + this.l5 = -Infinity; + this.Dua = Infinity; + !1; + this.W = b; + } + a.uR = function(f, d, g, h, x, v) { + var m, p, r, u, l, P; + m = d[["audio_tracks", "video_tracks"][g]][h].streams[0]; + p = g === k.G.AUDIO ? d.video_tracks.length + h : h; + r = x && x.Ka; + if (g === k.G.VIDEO && void 0 !== m.framerate_value && void 0 !== m.framerate_scale) { + u = m.framerate_value; + m = m.framerate_scale; + l = Math.floor(1E3 * u / m); + P = 1E3 * Math.round(l / 1E3); + u = new c.cc(P, Math.abs(Math.floor(1001 * u / m) - P) > Math.abs(l - P) ? 1E3 : 1001).Zkb(); + } + return new a(b.__assign({}, x, { + Fa: d, + R: "" + d.movieId, + Ka: r || u, + Beb: u, + na: f, + P: g, + Yo: p, + uf: h + }), v); + }; + a.prototype.BT = function(a, b, f, c, d) { + if (c && void 0 !== c.Rl && (this.Mc || void 0 !== c.Sd && c.Sd.length)) + if (a.Fl && (this.jja = !0), this.Mc) c.Sd && c.Sd.length > this.Ul.length && (this.Cb = new h.Mha(this.P, this.Ka, c, d), this.l5 = -Infinity); + else { + this.kla(b); + if (f = f || this.Zja) this.jla(f || this.Zja), void 0 === this.ha && this.mla(f.ha); + this.Cb = new h.Mha(this.P, this.Ka, c, d); + } + else this.W && this.W.error("AseTrack.onHeaderReceived with missing fragments data"); + }; + a.prototype.o0a = function(a) { + this.Mc || (this.mla(a.ha), this.kla(a.Hy), this.jla(a.Ka), this.Cb = a.Ul); + }; + a.prototype.toJSON = function() { + return { + movieId: this.R, + mediaType: this.P, + trackIndex: this.uf + }; + }; + a.prototype.toString = function() { + return (0 === this.P ? "a" : "v") + ":" + this.uf; + }; + a.prototype.mla = function(a) { + this.St = a; + }; + a.prototype.kla = function(a) { + this.jka = a; + }; + a.prototype.jla = function(a) { + this.gO = a; + }; + return a; + }(); + d.cW = a; + g.ai(a.prototype, { + Mc: g.L({ + get: function() { + return !!this.Ul; + } + }), + K2: g.L({ + get: function() { + return this.jja; + } + }), + AFb: g.L({ + get: function() { + return !0; + } + }), + Fa: g.L({ + get: function() { + return this.xn; + } + }), + na: g.L({ + get: function() { + return this.xc; + } + }), + Yo: g.L({ + get: function() { + return this.JQa; + } + }), + uf: g.L({ + get: function() { + return this.cWa; + } + }), + R: g.L({ + get: function() { + return this.om; + } + }), + P: g.L({ + get: function() { + return this.$j; + } + }), + Ka: g.L({ + get: function() { + return this.gO; + } + }), + ha: g.L({ + get: function() { + return this.St; + } + }), + Hy: g.L({ + get: function() { + return this.jka; + } + }), + Ul: g.L({ + get: function() { + return this.Cb; + } + }), + K3: g.L({ + get: function() { + return this.Ka.ha; + } + }), + J3: g.L({ + get: function() { + return this.Ka.vd; + } + }), + WG: g.L({ + get: function() { + return this.Ka.vd; + } + }), + XG: g.L({ + get: function() { + return this.Ka.ha; + } + }), + P5: g.L({ + get: function() { + return this.Ka.bf; + } + }), + U: g.L({ + get: function() { + return 0; + } + }) + }); + }, function(g, d, a) { + var b, c, h, k, f, p, m, r, u; + Object.defineProperty(d, "__esModule", { + value: !0 + }); + b = a(0); + c = a(14); + h = a(368); + k = a(367); + f = a(8); + g = a(366); + a = a(47); + p = new f.Console("FRAGMENTS", "media|asejs"); + try { + m = !0; + } catch (x) { + m = !1; + } + r = function(a) { + function f(b, f) { + f = a.call(this, b.Ul, f) || this; + f.ix = b; + return f; + } + b.__extends(f, a); + f.prototype.toJSON = function() { + return { + index: this.index, + bytes: this.Z, + offset: this.offset, + contentStartTicks: this.Ib, + contentEndTicks: this.Nb, + durationTicks: this.Ah, + timescale: this.ha, + startPts: this.U, + endPts: this.ea, + duration: this.duration, + additionalSAPs: this.wh + }; + }; + return f; + }(g.XPa); + d.fAb = r; + a.ai(r.prototype, { + Z: a.L({ + get: function() { + return this.ix.sizes(this.Wh); + } + }), + offset: a.L({ + get: function() { + return this.ix.Jl(this.Wh); + } + }), + N7: a.L({ + get: function() { + return this.ix.jv && this.ix.jv[this.Wh]; + } + }), + wh: a.L({ + get: function() { + return this.ix.Y7a(this.Wh); + } + }), + oc: a.L({ + get: function() { + return this.ix.iq && this.ix.iq[this.Wh]; + } + }) + }); + u = function() { + function a(a, b, f) { + this.ha = f; + this.Sd = a; + this.sizes = b; + this.length = Math.min(a.length, b.length); + this.Lb = void 0; + } + a.from = function(b) { + for (var f = new Uint32Array(b.length), c = new Uint32Array(b.length), d = 0, m, p, k = 0; k < b.length; ++k) m = b[k], p = m.Lb, f[k] = m.Hq - m.Qw, c[k] = p, d += p; + b = new a(f, c, b.length ? b[0].ha : 1E3); + b.Lb = d; + return b; + }; + a.prototype.subarray = function(b, f) { + return new a(this.Sd.subarray(b, f), this.sizes.subarray(b, f), this.ha); + }; + a.prototype.concat = function() { + var f, b, c, d; + for (var b = [], f = 0; f < arguments.length; f++) b[f] = arguments[f]; + f = [this]; + b = f.concat.apply(f, b); + f = b.reduce(function(a, b) { + return a + b.length; + }, 0); + c = new Uint32Array(f); + d = new Uint32Array(f); + f = b.reduce(function(a, b) { + return a || b.ha; + }, void 0); + b.reduce(function(a, b) { + k.set(c, b.Sd, a); + k.set(d, b.sizes, a); + return a + b.length; + }, 0); + return new a(c, d, f); + }; + a.prototype.hZ = function() { + for (var a = this.sizes, b = this.length, f = 0, c = 0; c < b; ++c) f += a[c]; + return this.Lb = f; + }; + return a; + }(); + d.jPa = u; + a.ai(u.prototype, { + Z: a.L({ + get: function() { + return void 0 !== this.Lb ? this.Lb : this.hZ(); + } + }) + }); + f = function() { + function a(a, b, f, c, d, m) { + this.aB = 16; + this.Cb = a; + this.kd = b.offset; + this.zn = b.sizes; + this.IVa = new u(a.km, b.sizes, a.ha); + this.GA = this.ZF = this.Zf = this.qla = void 0; + this.rTa = f; + this.XY = c && c.Jl; + this.zla = d; + this.Ht = Math.min(this.Cb.length, this.zn.length); + this.cTa = this.jRa(); + this.Ul.km.length !== this.zn.length && p.error("Mis-matched stream duration (" + this.Ul.km.length + "," + this.zn.length + ") for movie id " + m); + this.Ul.wP && !this.XY && p.error("Mis-matched additional SAPs information for movie id " + m); + } + a.NCb = function(a, b) { + var f, c; + b = b.ha; + f = b / 1E3; + c = new DataView(a); + a = Math.floor(a.byteLength / 16); + return { + ha: b, + Rl: c.getUint32(4) * f, + offset: 65536 * c.getUint32(8) + c.getUint16(12), + sizes: h.KC(c, 0, a, 16), + Sd: k.from(Uint32Array, { + length: a + }, function(a, b) { + return c.getUint16(16 * b + 14) * f; + }) + }; + }; + a.prototype.sizes = function(a) { + return this.zn[a]; + }; + a.prototype.Of = function(a) { + return this.Cb.Of(a); + }; + a.prototype.mC = function(a) { + return this.Cb.Of(a) + this.Cb.Sd(a); + }; + a.prototype.Jl = function(a) { + if (this.ZF !== a || void 0 === this.GA) { + if (0 === a) return this.kd; + if (this.ZF === a - 1 && void 0 !== this.GA) this.GA += this.zn[this.ZF], ++this.ZF; + else { + for (var b = this.Zf || this.mRa(), f = Math.floor(a / this.aB), c = f * this.aB, b = b[f]; c < a; ++c) b += this.zn[c]; + this.ZF = a; + this.GA = b; + } + } + return this.GA; + }; + a.prototype.Sd = function(a) { + return this.Cb.Sd(a); + }; + a.prototype.get = function(a) { + return new r(this, a); + }; + a.prototype.Y7a = function(a) { + var b, f, d; + c(0 <= a); + b = this.Ul.wP; + f = this.Ul.cma; + d = this.XY; + if (!d || !b || !f || a >= b.length) return []; + for (var m = [], p = a === b.length - 1 ? f.length : b[a + 1], b = b[a]; b < p; ++b) m.push({ + Vc: f[b], + Jb: this.Of(a) + this.Ka.P7(f[b]).bf, + offset: d[b] + }); + return m; + }; + a.prototype.fob = function(a) { + this.zla = a; + }; + a.prototype.Dj = function(a, b, f) { + return this.Cb.Dj(a, b, f); + }; + a.prototype.t3 = function(a, b, f) { + return this.Cb.t3(a, b, f); + }; + a.prototype.L1 = function(a, b) { + return this.Cb.L1(a, b); + }; + a.prototype.yS = function(a, b, f) { + var c, d, m, p, k, g, r, h, u; + c = !0; + d = 0; + p = this.Cb.km; + k = this.zn; + g = Math.floor(a * this.ha / 1E3); + r = 0; + h = 0; + u = 0; + if (this.Cb.Paa && this.Cb.Oaa) + for (d = this.Cb.Paa; d <= this.Cb.Oaa; ++d) r += p[d], h += k[d]; + if (h > b) c = !1; + else + for (; d < this.length && (!f || d < f);) { + m = k[d]; + a = p[d]; + if (h + m > b && r < g) { + c = !1; + this.Cb.Paa = u; + this.Cb.Oaa = d; + break; + } + for (; 0 < d - u && h + m > b;) r -= p[u], h -= k[u], ++u; + r += a; + h += m; + ++d; + } + return c; + }; + a.prototype.subarray = function(b, f) { + c(void 0 === b || 0 <= b && b < this.length); + c(void 0 === f || f > b && f <= this.length); + return new a(this.Cb.subarray(b, f), { + offset: this.Jl(b), + sizes: this.zn.subarray(b, f) + }, this.jv && this.jv.subarray(b, f), this.bma && { + Jl: this.bma + }); + }; + a.prototype.forEach = function(a) { + for (var b = 0; b < this.length; ++b) a(this.get(b), b, this); + }; + a.prototype.map = function(a) { + for (var b = [], f = 0; f < this.length; ++f) b.push(a(this.get(f), f, this)); + return b; + }; + a.prototype.reduce = function(a, b) { + for (var f = 0; f < this.length; ++f) b = a(b, this.get(f), f, this); + return b; + }; + a.prototype.toJSON = function() { + return { + length: this.length, + averageFragmentDuration: this.ep + }; + }; + a.prototype.dump = function() { + var b; + p.trace("StreamFragments: " + this.length + ", averageFragmentDuration: " + this.ep + "ms"); + for (var a = 0; a < this.length; ++a) { + b = this.get(a); + p.trace("StreamFragments: " + a + ": [" + b.U + "-" + b.ea + "] @ " + b.offset + ", " + b.Z + " bytes"); + } + }; + a.prototype.hZ = function() { + for (var a = 0, b = 0; b < this.length; ++b) a += this.zn[b]; + return this.qla = a; + }; + a.prototype.mRa = function() { + var a; + if (!this.Zf) { + a = m ? new Float64Array(Math.ceil(this.length / this.aB)) : Array(Math.ceil(this.length / this.aB)); + for (var b = this.kd, f = 0; f < a.length; ++f) { + a[f] = b; + for (var c = 0; c < this.aB; ++c) b += this.zn[f * this.aB + c]; + } + this.Zf = a; + } + return this.Zf; + }; + a.prototype.jRa = function() { + var a, b, f, c, d; + b = 0; + f = this.Cb.Xua; + c = this.Cb.km; + d = this.zn; + if (void 0 === f || f >= this.length) { + for (var m = 0; m < this.length; ++m) a = d[m] / c[m], a > b && (b = a, f = m); + void 0 === this.Cb.Xua && (this.Cb.Xua = f); + } else b = d[f] / c[f]; + return Math.floor(b * this.ha / 125); + }; + return a; + }(); + d.sPa = f; + a.ai(f.prototype, { + P: a.L({ + get: function() { + return this.Cb.P; + } + }), + length: a.L({ + get: function() { + return this.Ht; + } + }), + Rl: a.L({ + get: function() { + return this.Cb.Rl; + } + }), + Rpa: a.L({ + get: function() { + return this.Cb.Rpa; + } + }), + U: a.L({ + get: function() { + return this.Cb.U; + } + }), + ea: a.L({ + get: function() { + return this.Cb.ea; + } + }), + ep: a.L({ + get: function() { + return this.Cb.ep; + } + }), + SS: a.L({ + get: function() { + return this.Cb.SS; + } + }), + WS: a.L({ + get: function() { + return this.cTa; + } + }), + Ka: a.L({ + get: function() { + return this.Cb.Ka; + } + }), + ha: a.L({ + get: function() { + return this.Cb.ha; + } + }), + en: a.L({ + get: function() { + return this.qla || this.hZ(); + } + }), + jv: a.L({ + get: function() { + return this.rTa; + } + }), + bma: a.L({ + get: function() { + return this.XY; + } + }), + iq: a.L({ + get: function() { + return this.zla; + } + }), + Ul: a.L({ + get: function() { + return this.Cb; + } + }), + iE: a.L({ + get: function() { + return this.IVa; + } + }) + }); + f.prototype.EAa = g.a7(f.prototype.Of); + }, function(g, d, a) { + var c, h; + + function b(a) { + this.K = { + yJ: a.maxc || 25, + B1: a.c || .5, + Vkb: a.rc || "none", + uab: a.hl || 7200 + }; + this.DG(); + this.VUa = this.K.Vkb; + this.fG = this.K.uab; + this.aZ = Math.exp(Math.log(2) / this.fG); + this.aZ = Math.max(this.aZ, 1); + this.VN = 1; + } + c = a(11); + h = a(207).TDigest; + new(a(8)).Console("ASEJS_NETWORK_HISTORY", "media|asejs"); + b.prototype.Ee = function() { + var a; + if (0 === this.Kd.size()) return null; + a = this.Kd.gg([.25, .75]); + if (a[0] === a[1]) return null; + this.Kd.size() > this.K.yJ && this.Kd.Ar(); + a = this.Kd.Fz(!1).reduce(function(a, b) { + c.ja(b.oe) && c.ja(b.n) && a.push({ + mean: b.oe, + n: b.n / this.VN + }); + return a; + }.bind(this), []); + return { + tdigest: JSON.stringify(a) + }; + }; + b.prototype.Lh = function(a) { + var b; + if (c.Na(a) || !c.has(a, "tdigest") || !c.bd(a.tdigest)) return !1; + try { + b = JSON.parse(a.tdigest); + } catch (p) { + return !1; + } + b.forEach(function(a) { + c.isFinite(a.n) || (a.n = 1); + }); + a = b.map(function(a) { + return { + oe: a.mean, + n: a.n + }; + }); + this.VN = 1; + this.Kd.d9(a); + void 0 === this.Kd.gg(0) && this.DG(); + }; + b.prototype.get = function() { + var a, b; + a = this.Kd; + b = a.gg([0, .1, .25, .5, .75, .9, 1]); + return { + min: b[0], + p8: b[1], + Fk: b[2], + cj: b[3], + Gk: b[4], + q8: b[5], + max: b[6], + ag: a.Fz(!1) + }; + }; + b.X9a = function(a) { + var f; + f = new b({}); + c.Na(a) || c.V(a) || !c.isArray(a.ag) || (f.Kd.d9(a.ag), void 0 === f.Kd.gg(0) && f.DG()); + a = f.Kd.gg([.25, .75]); + return a[0] === a[1] ? null : function(a) { + return f.Kd.gg(a); + }; + }; + b.prototype.add = function(a) { + var b; + b = 1; + "ewma" === this.VUa && (this.VN = b = this.VN * this.aZ); + this.Kd.push(a, b); + }; + b.prototype.toString = function() { + return "TDigestHist(" + this.Kd.summary() + ")"; + }; + b.prototype.DG = function() { + this.Kd = new h(this.K.B1, this.K.yJ); + }; + g.M = b; + }, function(g, d, a) { + var f; + + function b(a, b, d) { + this.$B = !1 === a; + this.KH = a || .01; + this.KX = void 0 === b ? 25 : b; + this.cca = void 0 === d ? 1.1 : d; + this.ag = new f(c); + this.reset(); + } + + function c(a, b) { + return a.oe > b.oe ? 1 : a.oe < b.oe ? -1 : 0; + } + function h(a, b) { - return a.io - b.io; + return a.Fp - b.Fp; } - function l(a) { + function k(a) { this.config = a || {}; this.mode = this.config.mode || "auto"; - b.call(this, "cont" === this.mode ? a.aF : !1); - this.pTa = this.config.ratio || .9; - this.qTa = this.config.Zra || 1E3; - this.yP = 0; + b.call(this, "cont" === this.mode ? a.KH : !1); + this.h4a = this.config.ratio || .9; + this.i4a = this.config.cBa || 1E3; + this.pT = 0; } - g = a(513).XDa; + f = a(736).hOa; b.prototype.reset = function() { - this.tf.clear(); - this.s1 = this.n = 0; + this.ag.clear(); + this.t6 = this.n = 0; }; b.prototype.size = function() { - return this.tf.size; + return this.ag.size; }; - b.prototype.sx = function(a) { + b.prototype.Fz = function(a) { var b; b = []; - a ? (this.KK(!0), this.tf.Kc(function(a) { + a ? (this.WN(!0), this.ag.Lc(function(a) { b.push(a); - })) : this.tf.Kc(function(a) { + })) : this.ag.Lc(function(a) { b.push({ - Qd: a.Qd, + oe: a.oe, n: a.n }); }); return b; }; b.prototype.summary = function() { - return [(this.Dz ? "exact " : "approximating ") + this.n + " samples using " + this.size() + " centroids", "min = " + this.cf(0), "Q1 = " + this.cf(.25), "Q2 = " + this.cf(.5), "Q3 = " + this.cf(.75), "max = " + this.cf(1)].join("\n"); + return [(this.$B ? "exact " : "approximating ") + this.n + " samples using " + this.size() + " centroids", "min = " + this.gg(0), "Q1 = " + this.gg(.25), "Q2 = " + this.gg(.5), "Q3 = " + this.gg(.75), "max = " + this.gg(1)].join("\n"); }; b.prototype.push = function(a, b) { b = b || 1; a = Array.isArray(a) ? a : [a]; - for (var c = 0; c < a.length; c++) this.dda(a[c], b); + for (var f = 0; f < a.length; f++) this.cja(a[f], b); }; - b.prototype.W3 = function(a) { + b.prototype.d9 = function(a) { a = Array.isArray(a) ? a : [a]; - for (var b = 0; b < a.length; b++) this.dda(a[b].Qd, a[b].n); + for (var b = 0; b < a.length; b++) this.cja(a[b].oe, a[b].n); }; - b.prototype.KK = function(a) { + b.prototype.WN = function(a) { var b; - if (!(this.n === this.s1 || !a && this.k7 && this.k7 > this.n / this.s1)) { + if (!(this.n === this.t6 || !a && this.cca && this.cca > this.n / this.t6)) { b = 0; - this.tf.Kc(function(a) { - a.io = b + a.n / 2; - b = a.tz = b + a.n; + this.ag.Lc(function(a) { + a.Fp = b + a.n / 2; + b = a.UB = b + a.n; }); - this.n = this.s1 = b; + this.n = this.t6 = b; } }; - b.prototype.DVa = function(a) { - var b, c; + b.prototype.k7a = function(a) { + var b, f; if (0 === this.size()) return null; - b = this.tf.lowerBound({ - Qd: a + b = this.ag.lowerBound({ + oe: a }); - c = null === b.data() ? b.Tw() : b.data(); - return c.Qd === a || this.Dz ? c : (b = b.Tw()) && Math.abs(b.Qd - a) < Math.abs(c.Qd - a) ? b : c; + f = null === b.data() ? b.cz() : b.data(); + return f.oe === a || this.$B ? f : (b = b.cz()) && Math.abs(b.oe - a) < Math.abs(f.oe - a) ? b : f; }; - b.prototype.Gy = function(a, b, c) { + b.prototype.$A = function(a, b, f) { a = { - Qd: a, + oe: a, n: b, - tz: c + UB: f }; - this.tf.jA(a); + this.ag.El(a); this.n += b; return a; }; - b.prototype.uK = function(a, b, c) { - b !== a.Qd && (a.Qd += c * (b - a.Qd) / (a.n + c)); - a.tz += c; - a.io += c / 2; - a.n += c; - this.n += c; + b.prototype.CN = function(a, b, f) { + b !== a.oe && (a.oe += f * (b - a.oe) / (a.n + f)); + a.UB += f; + a.Fp += f / 2; + a.n += f; + this.n += f; + }; + b.prototype.cja = function(a, b) { + var f, c, d; + f = this.ag.min(); + c = this.ag.max(); + d = this.k7a(a); + d && d.oe === a ? this.CN(d, a, b) : d === f ? this.$A(a, b, 0) : d === c ? this.$A(a, b, this.n) : this.$B ? this.$A(a, b, d.UB) : (f = d.Fp / this.n, Math.floor(4 * this.n * this.KH * f * (1 - f)) - d.n >= b ? this.CN(d, a, b) : this.$A(a, b, d.UB)); + this.WN(!1); + !this.$B && this.KX && this.size() > this.KX / this.KH && this.Ar(); }; - b.prototype.dda = function(a, b) { - var c, d, g; - c = this.tf.min(); - d = this.tf.max(); - g = this.DVa(a); - g && g.Qd === a ? this.uK(g, a, b) : g === c ? this.Gy(a, b, 0) : g === d ? this.Gy(a, b, this.n) : this.Dz ? this.Gy(a, b, g.tz) : (c = g.io / this.n, Math.floor(4 * this.n * this.aF * c * (1 - c)) - g.n >= b ? this.uK(g, a, b) : this.Gy(a, b, g.tz)); - this.KK(!1); - !this.Dz && this.F9 && this.size() > this.F9 / this.aF && this.Np(); - }; - b.prototype.ONa = function(a) { - var b, c; - this.tf.Gi = h; - b = this.tf.upperBound({ - io: a + b.prototype.XYa = function(a) { + var b, f; + this.ag.sj = h; + b = this.ag.upperBound({ + Fp: a }); - this.tf.Gi = d; - c = b.Tw(); - a = c && c.io === a ? c : b.next(); - return [c, a]; + this.ag.sj = c; + f = b.cz(); + a = f && f.Fp === a ? f : b.next(); + return [f, a]; }; - b.prototype.cf = function(a) { + b.prototype.gg = function(a) { var b; - b = (Array.isArray(a) ? a : [a]).map(this.IJa, this); + b = (Array.isArray(a) ? a : [a]).map(this.EUa, this); return Array.isArray(a) ? b : b[0]; }; - b.prototype.IJa = function(a) { - var b, c; + b.prototype.EUa = function(a) { + var b, f; if (0 !== this.size()) { - this.KK(!0); - this.tf.min(); - this.tf.max(); + this.WN(!0); + this.ag.min(); + this.ag.max(); a *= this.n; - b = this.ONa(a); - c = b[0]; + b = this.XYa(a); + f = b[0]; b = b[1]; - return b === c || null === c || null === b ? (c || b).Qd : this.Dz ? a <= c.tz ? c.Qd : b.Qd : c.Qd + (a - c.io) * (b.Qd - c.Qd) / (b.io - c.io); + return b === f || null === f || null === b ? (f || b).oe : this.$B ? a <= f.UB ? f.oe : b.oe : f.oe + (a - f.Fp) * (b.oe - f.oe) / (b.Fp - f.Fp); } }; - b.prototype.Np = function() { + b.prototype.Ar = function() { var a; - if (!this.eha) { - a = this.sx(); + if (!this.Pna) { + a = this.Fz(); this.reset(); - for (this.eha = !0; 0 < a.length;) this.W3(a.splice(Math.floor(Math.random() * a.length), 1)[0]); - this.KK(!0); - this.eha = !1; + for (this.Pna = !0; 0 < a.length;) this.d9(a.splice(Math.floor(Math.random() * a.length), 1)[0]); + this.WN(!0); + this.Pna = !1; } }; - l.prototype = Object.create(b.prototype); - l.prototype.constructor = l; - l.prototype.push = function(a) { + k.prototype = Object.create(b.prototype); + k.prototype.constructor = k; + k.prototype.push = function(a) { b.prototype.push.call(this, a); - this.YOa(); + this.n_a(); }; - l.prototype.Gy = function(a, c, d) { - this.yP += 1; - b.prototype.Gy.call(this, a, c, d); + k.prototype.$A = function(a, f, c) { + this.pT += 1; + b.prototype.$A.call(this, a, f, c); }; - l.prototype.uK = function(a, c, d) { - 1 === a.n && --this.yP; - b.prototype.uK.call(this, a, c, d); + k.prototype.CN = function(a, f, c) { + 1 === a.n && --this.pT; + b.prototype.CN.call(this, a, f, c); }; - l.prototype.YOa = function() { - !("auto" !== this.mode || this.size() < this.qTa) && this.yP / this.size() > this.pTa && (this.mode = "cont", this.Dz = !1, this.aF = this.config.aF || .01, this.Np()); + k.prototype.n_a = function() { + !("auto" !== this.mode || this.size() < this.i4a) && this.pT / this.size() > this.h4a && (this.mode = "cont", this.$B = !1, this.KH = this.config.KH || .01, this.Ar()); }; - f.P = { + g.M = { TDigest: b, - Digest: l + Digest: k }; - }, function(f) { - function c(a) { - this.mIa = a; - this.zl = []; - this.Yr = !1; - this.FW = void 0; - this.Ki = {}; + }, function(g) { + function d(a) { + this.bTa = a; + this.um = []; + this.Ut = !1; + this.v_ = void 0; + this.tj = {}; } - c.prototype.jX = function(a) { - this.zl.length === this.mIa && this.zl.shift(); - Array.isArray(a) ? this.zl = this.zl.concat(a) : this.zl.push(a); - this.Yr = !0; + d.prototype.Y_ = function(a) { + this.um.length === this.bTa && this.um.shift(); + Array.isArray(a) ? this.um = this.um.concat(a) : this.um.push(a); + this.Ut = !0; }; - c.prototype.Zz = function() { - return this.zl.length; + d.prototype.HC = function() { + return this.um.length; }; - c.prototype.yga = function() { + d.prototype.jna = function() { var a; - a = this.zl; + a = this.um; return 0 < a.length ? a.reduce(function(a, c) { return a + c; - }, 0) / this.zl.length : void 0; + }, 0) / this.um.length : void 0; }; - c.prototype.zOa = function() { + d.prototype.MZa = function() { var a, b; - a = this.zl; + a = this.um; if (0 < a.length) { - b = this.yga(); + b = this.jna(); a = a.reduce(function(a, b) { return a + b * b; }, 0) / a.length; return Math.sqrt(a - b * b); } }; - c.prototype.rs = function(a) { - var b, c, h; - if (this.Yr || void 0 === this.FW) this.FW = this.zl.slice(0).sort(function(a, b) { + d.prototype.lu = function(a) { + var b, c, d; + if (this.Ut || void 0 === this.v_) this.v_ = this.um.slice(0).sort(function(a, b) { return a - b; - }), this.Ki = {}, this.Yr = !1; - if (void 0 === this.Ki[a]) { - b = this.FW; + }), this.tj = {}, this.Ut = !1; + if (void 0 === this.tj[a]) { + b = this.v_; c = Math.floor(a / 100 * (b.length - 1) + 1) - 1; - h = (a / 100 * (b.length - 1) + 1) % 1; - this.Ki[a] = c === b.length - 1 ? b[c] : b[c] + h * (b[c + 1] - b[c]); + d = (a / 100 * (b.length - 1) + 1) % 1; + this.tj[a] = c === b.length - 1 ? b[c] : b[c] + d * (b[c + 1] - b[c]); } - return this.Ki[a]; + return this.tj[a]; }; - f.P = c; - }, function(f, c, a) { - var d, h, l; - - function b(a, b) { - this.wn = b ? [b] : []; - this.Hr = "$op$" + l++; - this.l = a; - } - Object.defineProperty(c, "__esModule", { + g.M = d; + }, function(g, d, a) { + var b, c; + Object.defineProperty(d, "__esModule", { value: !0 }); - d = a(6); - h = a(8); - l = 0; - b.prototype.addListener = function(a, b) { - var c; - c = this; - h.Lha(a); - h.ea(0 > this.wn.indexOf(a)); - a[d.QJ + this.Hr] = b; - this.wn = this.wn.slice(); - this.wn.push(a); - this.wn.sort(function(a, b) { - return c.o$a(a, b); + b = a(60); + c = a(2); + d.i4 = function(a) { + return a === b.gc.rg.AUDIO ? c.H.Mea : c.H.Nea; + }; + d.AY = 50; + d.jOa = 1E3; + }, function(g, d) { + Object.defineProperty(d, "__esModule", { + value: !0 + }); + d.RY = "UuidProviderSymbol"; + }, function(g, d, a) { + var c, h, k, f, p, m, r, u, x, v, y, w, D; + + function b(a, b, c, d, k, g, r, h, u, v, x, y, w, l, n) { + this.j = a; + this.Tb = b; + this.jy = c; + this.pd = d; + this.Ir = k; + this.H2 = g; + this.yj = r; + this.displayName = h; + this.vi = u; + this.iz = v; + this.profile = x; + this.io = y; + this.Dgb = w; + this.z7a = l; + this.fJ = n; + this.type = f.Vf.vV; + this.Ap = !(!x || x != m.Vj.iA && x != m.Vj.XM); + this.If = { + bcp47: r, + trackId: b, + downloadableId: d, + isImageBased: this.Ap + }; + this.log = p.qf(a, "TimedTextTrack"); + this.state = D.$M; + this.request = this.request.bind(this); + } + Object.defineProperty(d, "__esModule", { + value: !0 + }); + c = a(0); + h = a(34); + k = a(9); + f = a(75); + p = a(3); + m = a(72); + r = a(12); + u = a(346); + x = a(15); + v = a(647); + y = a(16); + w = a(2); + (function(a) { + a[a.$M = 0] = "NOT_LOADED"; + a[a.LOADING = 1] = "LOADING"; + a[a.LOADED = 2] = "LOADED"; + a[a.qF = 3] = "LOAD_FAILED"; + }(D || (D = {}))); + b.prototype.getEntries = function() { + var a; + a = this; + return new Promise(function(b, f) { + function c() { + a.j.state.removeListener(c); + a.download().then(b)["catch"](f); + } + a.state = D.LOADING; + a.j.state.value !== y.ph.gha ? a.download().then(b)["catch"](f) : a.j.state.addListener(c); }); }; - b.prototype.removeListener = function(a) { - var b; - h.Lha(a); - this.wn = this.wn.slice(); - 0 <= (b = this.wn.indexOf(a)) && this.wn.splice(b, 1); + b.prototype.Ee = function() { + return this.state; }; - b.prototype.set = function(a, b) { - if (this.l !== a) { - b = Object.assign({ - oldValue: this.l, - newValue: a - }, b); - this.l = a; - a = this.wn; - for (var c = a.length, d = 0; d < c; d++) a[d](b); - } + b.prototype.gJ = function() { + return this.Dgb; }; - b.prototype.o$a = function(a, b) { - return (a[d.QJ + this.Hr] || 0) - (b[d.QJ + this.Hr] || 0); + b.prototype.sS = function() { + return this.z7a; }; - pa.Object.defineProperties(b.prototype, { - value: { - configurable: !0, - enumerable: !0, - get: function() { - return this.l; - } + b.prototype.Ou = function(a, b) { + var f; + f = []; + try { + this.Ap ? f = this.Ye && this.Ye.Ou(a, b) || [] : this.entries && (f = this.entries.filter(function(f) { + var c; + c = za([f.startTime, f.endTime]); + f = c.next().value; + c = c.next().value; + return f >= a && f <= b || f <= a && a <= c; + })); + } catch (F) { + this.log.error("error in getSubtitles", F, { + start: a, + end: b, + isImageBased: this.Ap + }); } - }); - c.sd = b; - }, function(f, c, a) { - var b, d; - Object.defineProperty(c, "__esModule", { - value: !0 - }); - b = a(3); - d = a(2); - c.L_ = function(a) { - return a === b.Df.Gf.AUDIO ? d.u.e$ : d.u.f$; + return f; }; - c.cK = 50; - c.bEa = 1E3; - }, function(f, c, a) { - var b, d, h, l, g, m, p, r, u, v; - Object.defineProperty(c, "__esModule", { - value: !0 - }); - b = a(81); - d = a(28); - h = a(135); - l = a(4); - g = a(57); - m = a(191); - p = a(17); - a(3); - a(83); - r = a(8); - u = a(2); - v = a(15); - c.RT = function() { + b.prototype.F$a = function() { var a; - a = new g.Ci(); - return { - addEventListener: a.addListener, - removeEventListener: a.removeListener, - download: function(a, c) { - var z, k; - - function g(a) { - var b; - b = a.mediaRequest.bj; - b.readyState = h.Pa.Va.sr; - a.connect ? (a.mediaRequest = b, a.readyState = b.readyState) : a = { - mediaRequest: b, - readyState: b.readyState, - timestamp: p.Ra(), - connect: !1 - }; - b.c3(a); - } + if (!x.ab(this.U)) try { + this.U = this.Ap ? (a = this.Ou(0, b.IJa)[0]) && a.displayTime : (a = this.entries && this.entries[0]) && a.startTime; + } catch (E) { + this.log.error("exception in getStartPts", E); + } + return this.U; + }; + b.prototype.TU = function(a) { + return this.j.state.value === y.ph.CY || this.j.state.value === y.ph.BY ? (this.log.info("playback is closing, abort timed text retry", a), !1) : this.j.kc.value !== this ? (this.log.info("timed text track was changed, abort timed text retry", a), !1) : !0; + }; + b.prototype.download = function() { + var a; + a = this; + return new Promise(function(b, f) { + a.j.state.value == y.ph.Fq ? a.Ap ? a.Tbb(function(c) { + c.S ? (a.log.info("Loaded image subtitle manager"), b(c)) : (a.log.error("Unable to load image subtitles manager", c), a.state = D.qF, f(c)); + }) : a.qpa().then(function(b) { + return a.mib(b); + }).then(b)["catch"](f) : f({ + S: !1 + }); + }); + }; + b.prototype.Tbb = function(a) { + var f, c, d, m, g, r, h, u; - function f(a) { - var b, c, d, g; - b = a.mediaRequest; - c = a.errorcode; - d = a.httpcode; - g = h.Pa.dr; - if (void 0 !== b && (b = b.bj, void 0 !== b && b.readyState !== h.Pa.Va.bm)) - if (c === u.u.No) b.readyState = h.Pa.Va.$l, a.mediaRequest = b, a.readyState = b.readyState, b.s3a(a); - else { - b.readyState = h.Pa.Va.bm; - switch (c) { - case u.u.sC: - d = g.lS; - break; - case u.u.xT: - d = g.uT; - break; - case u.u.Ox: - d = 400 < d && 500 > d ? g.zJ : 500 <= d ? g.wT : g.uT; - break; - case u.u.Px: - d = g.vT; - break; - case u.u.yJ: - d = g.g7; - break; - case u.u.rC: - d = g.AJ; - break; - case u.u.ku: - d = g.AJ; - break; - case u.u.tT: - d = g.N8; - break; - case u.u.K8: - d = g.zJ; - break; - case u.u.pwa: - d = g.vT; - break; - default: - d = g.AJ; - } - a.mediaRequest = b; - a.readyState = b.readyState; - a.errorcode = d; - a.nativecode = c; - b.e3(a); - } - } - a.L && a.Ya && l.config.Poa && (z = { - Qoa: new m.f7(a.L.Ys), - Yma: l.config.qw, - g3: 0, - Ya: a.Ya - }); - l.config.Vq && a.bj && b.vh && b.vh.EOa(a.bj.M, a.bj.ib) && (k = a.bj.ib, r.ea(k, "streamId not available in mediaRequestAse"), k = b.vh.download(a.bj.M, a, k, c)); - k || (k = d.Za.download(a, c, z)); - a.bj && (c = a.bj, c.readyState === h.Pa.Va.OPENED || c.readyState === h.Pa.Va.bm) && (c.readyState = h.Pa.Va.ur, z = { - mediaRequest: c, - timestamp: p.Ra() - }, c.x3a(z)); - k.cX(function(b) { - var c, d; - c = b.request.bj; - void 0 !== c && (b.K ? a.L && c.readyState !== h.Pa.Va.DONE && c.readyState !== h.Pa.Va.$l && (c.readyState !== h.Pa.Va.bm && c.readyState === h.Pa.Va.ur && g({ - mediaRequest: b.request - }), c.readyState = h.Pa.Va.DONE, c.zc || (d = { - mediaRequest: c, - readyState: c.readyState, - timestamp: p.Ra(), - cadmiumResponse: b - }, a.L.a6 += 1, c.YYa(), c.R_a() && (a.L.A4 += 1, b.xf.hf = Math.ceil(c.GVa), b.xf.Zj = Math.ceil(c.rPa), b.xf.requestTime = Math.floor(c.W0a)), c.HE = d, c.vi(d))) : c.readyState !== h.Pa.Va.$l && (d = { - mediaRequest: b.request, - timestamp: p.Ra(), - errorcode: b.R, - httpcode: b.Fg - }, f(d))); - }); - k.J9a(function(a) { - var b, c; - b = a.mediaRequest.bj; - c = a.bytes; - void 0 !== b && (b.readyState === h.Pa.Va.ur && g(a), v.da(c) && (a.mediaRequest = b, a.timestamp = p.Ra(), c > b.Jc && (a.newBytes = c - b.Jc, a.bytesLoaded = c, b.C3a(a)))); + function b(d) { + var v; + if (x.ab(d)) + if (u || f.TU(f.up(f.Mn, "", "image"))) { + u = !1; + f.io.url = f.Ir[f.Mn]; + c.url = f.io.url; + h[d] = (h[d] || 0) + 1; + v = new p.yPa(m, c); + v.on("ready", function() { + f.Ye = v; + a({ + S: !0, + track: f + }); + }); + v.on("error", function(c) { + var m; + c = Object.assign({ + S: !1 + }, c); + m = f.up(f.Mn, f.io.url, "image"); + m.details = { + midxoffset: f.io.offset, + midxsize: f.io.length + }; + m.errorstring = c.errorString; + h[d] <= k.config.jBa ? (f.iR(m, !0, "retry with current cdn"), f.E0(h[d]).then(function(a) { + f.log.trace("retry timed text download after " + a, f.up(f.Mn, "", "image")); + b(f.Mn); + })) : (f.Mn = g[r++], f.Mn ? (f.iR(m, !0, "retry with next cdn"), f.E0(h[d]).then(function(a) { + f.log.trace("retry timed text download after " + a, f.up(f.Mn, "", "image")); + b(f.Mn); + })) : (f.iR(m, !1, "all cdns tried"), a({ + S: !1, + hgb: "all cdns failed for image subs", + track: f + }))); + }); + v.start(); + } else a({ + S: !1, + kl: !0 }); - k.x9a(f); - return k; - } + else a({ + S: !1, + hgb: "cdnId is not defined for image subs downloadUrl" + }), f.iR(f.up(0, "", "image"), !1, "cdnId is undefined"); + } + f = this; + c = { + wYa: !1, + profile: this.profile, + GJ: this.io.offset, + bT: this.io.length, + Jb: this.j.sd.value || 0, + bufferSize: k.config.Cbb, + nIb: { + Se: this.j.BR() + } + }; + d = p.qf(this.j, "TimedTextTrack"); + d.warn = d.trace.bind(d); + d.info = d.debug.bind(d); + m = v.z2a(this.j, d, this.request); + g = (this.H2 || []).filter(function(a) { + return a.id in f.Ir; + }).sort(function(a, b) { + return a.Qd - b.Qd; + }).map(function(a) { + return a.id; + }); + r = 0; + h = {}; + u = !0; + this.Mn = g[r++]; + b(this.Mn); + }; + b.prototype.iR = function(a, b, f) { + a = Object.assign({}, a, { + kJb: b, + status: f + }); + this.j.fireEvent(y.X.oV, a); + this.log.warn("subtitleerror event", a); + }; + b.prototype.request = function(a, b) { + var f; + f = this; + this.log.trace("Downloading", a); + a = { + url: a.url, + offset: a.offset, + length: a.size, + responseType: h.OC, + headers: {}, + Mb: this.Z3(this.Mn) }; + this.j.NI.download(a, function(a) { + f.log.trace("imgsub: request status " + a.S); + a.S ? b(null, new Uint8Array(a.content)) : b({ + T: a.T, + ic: a.ic + }); + }); }; - }, function(f, c, a) { - var l, g, m, p, r, u, v, z, k, G, x, y, C, F, N, T, n, q, O, B, ja, V; - - function b(a, b) { - var u, y; + b.prototype.up = function(a, b, f) { + return { + currentCdnId: a, + url: b, + profile: this.profile, + dlid: this.pd, + subtitletype: f, + bcp47: this.yj, + trackId: this.Tb, + cdnCount: Object.keys(this.Ir).length, + isImageBased: this.Ap + }; + }; + b.prototype.Z3 = function(a) { + return (this.H2 || []).find(function(b) { + return b.id === a; + }); + }; + b.prototype.qpa = function() { + var d, m; - function c(b) { - return p.VAa(a, u, b); - } + function a(a) { + return c.__awaiter(d, void 0, void 0, function() { + var d, p, k, g, r; - function g() { - var a, b, d; - b = F.Cc("Eme"); - a = new C.Ne.cr(b, void 0, c, { - Ke: !1, - dt: !1 - }); - d = F.Z.get(q.ky); - return C.Ne.kn(b, "cenc", void 0, { - Ke: !1, - dt: !1, - Mla: z.config.Sh, - Qqa: { - ona: z.config.I8a, - Iga: z.config.O4, - ytb: z.config.H8a - }, - Ta: a, - $P: z.config.iH, - UB: z.config.UB, - Dx: z.config.QZ, - Yqb: z.config.J8a, - Yfa: d.HM(), - t6: d.QE([]), - eA: z.config.eA + function c() { + for (;;) switch (d) { + case 0: + k = f(); + p = g.up(a.Mb.id, a.url, "text"); + p.errorstring = a.reason; + if (!k || !g.TU(p)) { + d = 1; + break; + } + d = -1; + return { + value: g.E0(m[k.id]).then(b), done: !0 + }; + case 1: + return d = -1, { + value: Promise.reject({ + S: !1, + kl: !0 + }), + done: !0 + }; + default: + return { + value: void 0, done: !0 + }; + } + } + d = 0; + g = this; + r = { + next: function() { + return c(); + }, + "throw": function() { + return c(); + }, + "return": function() { + throw Error("Not yet implemented"); + } + }; + Ya(); + r[Symbol.iterator] = function() { + return this; + }; + return r; }); } - function l(a, b) { - var c; - c = { - aa: b.xid, - Us: function() { - return 0; - }, - M: b.movieId, - nG: !1 - }; - z.config.Sh && (y.info("secure stop is enabled"), b = a.K ? { - success: a.K, - persisted: !0, - ss_km: a.z2, - ss_sr: a.qB, - ss_ka: a.HY - } : { - success: a.K, - persisted: !0, - state: a.state, - ErrorCode: a.code, - ErrorSubCode: a.tb, - ErrorExternalCode: a.Sc, - ErrorEdgeCode: a.Jj, - ErrorDetails: a.cause && a.cause.za - }, b.browserua = B.Ug, a = new x.Zx(c, "securestop", a.K ? "info" : "error", b), t._cad_global.logBatcher.Vl(a)); - } + function b() { + return c.__awaiter(d, void 0, void 0, function() { + var c, d, p, k, g; - function f() { - function c(b, c) { - var h, f; - h = m.He.Xn(c.profileId); - if (!h) return y.warn("profile not found in release drm session, this is an orphan drmSession"), d(b, c); - if (!c.Ob || 0 === c.Ob.length || !c.Ob[0].kt) return y.error("releaseDrmSession exception: missing valid keySessionData"), d(b, c); - u = { - Za: r.Za, - log: y, - profile: h - }; - if (0 < c.Ob.length) { - y.info("Sending the deferred playdata and secure stop data"); - f = g(); - return f.create(z.config.ce).then(function() { - return f.RSa(c); - }).then(function(a) { - y.info("Sent the deferred playdata and secure stop data"); - l(a, c); - return d(b, c); - })["catch"](function(a) { - a && a.code === n.v.mEa && d(b, c); - a && a.code === n.v.lEa && d(b, c); - y.error("Unable to send last stop", a); - l(a, c); - throw a; - }); - } - y.info("No key session so just send the playdata"); - return p.UAa(!1, a, u, c).then(function() { - y.trace("Successfully sent stop command for previous session"); - return d(b, c); - })["catch"](function(a) { - y.error("Unable to send stop command for previous session", a); - throw a; - }); - } - h(y).then(function(a) { - var d; - d = a.dN.filter(function(a) { - return !1 === a.active; - }).map(function(b) { - return c(a, b); - }); - Promise.all(d).then(function() { - y.info("release drm session completed for " + d.length + " entries"); - b(v.cb); - })["catch"](function(a) { - a = a || {}; - a.DrmCacheSize = d.length; - y.error("Unable to release one or more DRM session data", a); - b(v.cb); + function b() { + for (;;) switch (c) { + case 0: + d = (p = f()) && k.Ir[p.id]; + if (!p || !d) { + c = 1; + break; + } + m[p.id] = (m[p.id] || 0) + 1; + c = -1; + return { + value: k.x4a(d, p)["catch"](a), done: !0 + }; + case 1: + return c = -1, { + value: Promise.reject({}), + done: !0 + }; + default: + return { + value: void 0, done: !0 + }; + } + } + c = 0; + k = this; + g = { + next: function() { + return b(); + }, + "throw": function() { + return b(); + }, + "return": function() { + throw Error("Not yet implemented"); + } + }; + Ya(); + g[Symbol.iterator] = function() { + return this; + }; + return g; + }); + } + + function f() { + return (d.H2 || []).find(function(a) { + return !!((m[a.id] || 0) < k.config.jBa && d.Ir[a.id]); + }); + } + d = this; + m = {}; + return b(); + }; + b.prototype.E0 = function(a) { + return new Promise(function(b) { + var f; + f = 1E3 * Math.min(Math.pow(2, a - 1), 8); + setTimeout(function() { + return b(f); + }, f); + }); + }; + b.prototype.mib = function(a) { + var b, f; + b = this; + f = this.j.LE; + r.sa(f); + return u.lib(a, f.width / f.height, k.config.lBa, k.config.uaa).then(function(a) { + var f; + if (k.config.mBa) { + f = 0; + b.entries = a.map(function(a) { + return Object.assign({}, a, { + startTime: f, + endTime: f += k.config.mBa + }); }); - })["catch"](function(a) { - y.error("Unable to load DRM session data", a); - b(v.cb); + } else b.entries = a; + b.log.trace("Entries parsed", { + Length: a.length + }, b.If); + b.state = D.LOADED; + return { + S: !0, + entries: b.entries, + track: b + }; + })["catch"](function(a) { + b.log.error("Unable to parse timed text track", w.kn(a), b.If, { + url: a.url + }); + b.state = D.qF; + a.reason = "parseerror"; + a.track = b; + throw a; + }); + }; + b.prototype.x4a = function(a, b) { + var f; + f = this; + this.log.trace("Downloading", b && { + Mb: b.id + }, this.up(b.id, a, "text")); + return new Promise(function(c, d) { + var m; + m = { + responseType: h.Hsa, + url: a, + track: f, + Mb: b, + Ox: "tt-" + f.yj + }; + f.j.NI.download(m, function(a) { + a.S ? c(a.content) : (a.reason = "downloadfailed", a.url = m.url, a.track = f, a.Mb = b, d(a)); }); + }); + }; + b.IJa = 72E7; + b.fha = D; + d.OF = b; + }, function(g, d, a) { + var c; + + function b() {} + Object.defineProperty(d, "__esModule", { + value: !0 + }); + c = a(6); + b.C4 = function() { + var a; + a = c.xq && c.xq.height; + return a ? 1080 <= a ? 1080 : 720 : 720; + }; + d.KY = b; + }, function(g) { + g.M = function(d, a) { + switch (d) { + case 0: + return function() { + return a.apply(this, arguments); + }; + case 1: + return function(b) { + return a.apply(this, arguments); + }; + case 2: + return function(b, c) { + return a.apply(this, arguments); + }; + case 3: + return function(b, c, d) { + return a.apply(this, arguments); + }; + case 4: + return function(b, c, d, k) { + return a.apply(this, arguments); + }; + case 5: + return function(b, c, d, k, f) { + return a.apply(this, arguments); + }; + case 6: + return function(b, c, d, k, f, p) { + return a.apply(this, arguments); + }; + case 7: + return function(b, c, d, k, f, p, m) { + return a.apply(this, arguments); + }; + case 8: + return function(b, c, d, k, f, p, m, g) { + return a.apply(this, arguments); + }; + case 9: + return function(b, c, d, k, f, p, m, g, u) { + return a.apply(this, arguments); + }; + case 10: + return function(b, c, d, k, f, p, m, g, u, x) { + return a.apply(this, arguments); + }; + default: + throw Error("First argument to _arity must be a non-negative integer no greater than ten"); + } + }; + }, function(g, d, a) { + var h, k, f, p; + + function b(a, b, f) { + for (var c = f.next(); !c.done;) { + if ((b = a["@@transducer/step"](b, c.value)) && b["@@transducer/reduced"]) { + b = b["@@transducer/value"]; + break; + } + c = f.next(); } - y = F.Cc("PlayDataManager"); - b = b || v.Gb; - z.config.dn ? b(v.cb) : f(); + return a["@@transducer/result"](b); } - function d(a, b) { - return a ? a.o4(b) : Promise.resolve(); + function c(a, b, c, d) { + return a["@@transducer/result"](c[d](f(a["@@transducer/step"], a), b)); } + h = a(776); + k = a(774); + f = a(773); + La(); + La(); + Ya(); + p = "undefined" !== typeof Symbol ? Symbol.iterator : "@@iterator"; + g.M = function(a, f, d) { + "function" === typeof a && (a = k(a)); + if (h(d)) { + for (var m = 0, g = d.length; m < g;) { + if ((f = a["@@transducer/step"](f, d[m])) && f["@@transducer/reduced"]) { + f = f["@@transducer/value"]; + break; + } + m += 1; + } + return a["@@transducer/result"](f); + } + if ("function" === typeof d["fantasy-land/reduce"]) return c(a, f, d, "fantasy-land/reduce"); + if (null != d[p]) return b(a, f, d[p]()); + if ("function" === typeof d.next) return b(a, f, d); + if ("function" === typeof d.reduce) return c(a, f, d, "reduce"); + throw new TypeError("reduce: list must be array or iterable"); + }; + }, function(g) { + g.M = function(d, a) { + return Object.prototype.hasOwnProperty.call(a, d); + }; + }, function(g, d, a) { + var b, c, h; + b = a(113); + c = a(49); + h = a(157); + g.M = function(a) { + return function p(d, g, k) { + switch (arguments.length) { + case 0: + return p; + case 1: + return h(d) ? p : c(function(b, c) { + return a(d, b, c); + }); + case 2: + return h(d) && h(g) ? p : h(d) ? c(function(b, c) { + return a(b, g, c); + }) : h(g) ? c(function(b, c) { + return a(d, b, c); + }) : b(function(b) { + return a(d, g, b); + }); + default: + return h(d) && h(g) && h(k) ? p : h(d) && h(g) ? c(function(b, c) { + return a(b, c, k); + }) : h(d) && h(k) ? c(function(b, c) { + return a(b, g, c); + }) : h(g) && h(k) ? c(function(b, c) { + return a(d, b, c); + }) : h(d) ? b(function(b) { + return a(b, g, k); + }) : h(g) ? b(function(b) { + return a(d, b, k); + }) : h(k) ? b(function(b) { + return a(d, g, b); + }) : a(d, g, k); + } + }; + }; + }, function(g, d) { + Object.defineProperty(d, "__esModule", { + value: !0 + }); + d.eM = "BookmarkSymbol"; + }, function(g, d) { + Object.defineProperty(d, "__esModule", { + value: !0 + }); + g = d.VE || (d.VE = {}); + g[g.Hfa = 0] = "PAUSE"; + g[g.Tga = 1] = "RESUME"; + g[g.lub = 2] = "CAPTIONS_ON"; + g[g.kub = 3] = "CAPTIONS_OFF"; + g[g.mub = 4] = "CAPTION_LANGUAGE_CHANGED"; + g[g.gtb = 5] = "AUDIO_LANGUAGE_CHANGED"; + g[g.Hxb = 6] = "NEXT_EP"; + g[g.Oyb = 7] = "PREV_EP"; + g[g.vA = 8] = "SEEK"; + g[g.hha = 9] = "STOP"; + d.gca = "CastInteractionTrackerSymbol"; + }, function(g, d) { + Object.defineProperty(d, "__esModule", { + value: !0 + }); + d.wha = "load save remove removeAll loadAll loadKeys".split(" "); + d.Bba = "AppStorageStatsSymbol"; + }, function(g, d) { + Object.defineProperty(d, "__esModule", { + value: !0 + }); + g = d.gw || (d.gw = {}); + g.Unknown = "unknown"; + g.Absent = "absent"; + g.Present = "present"; + g.Error = "error"; + d.hda = "ExternalDisplayLogHelperSymbol"; + }, function(g, d, a) { + var c, h, k; - function h(a) { - var b; - if (!c.iia) { - b = F.Z.get(O.mS); - c.iia = new Promise(function(c, d) { - b.Epa().then(function() { - c(b); - })["catch"](function(b) { - a.error("Unable to load DRM data for persistent secure stop", b); - d(b); - }); + function b() { + this.type = c.Yv.rw; + } + Object.defineProperty(d, "__esModule", { + value: !0 + }); + c = a(27); + g = a(98); + h = a(138); + k = new g.Dw(); + b.N1 = function() { + return { + isTypeSupported: function(a) { + var f; + try { + if (-1 == a.toLowerCase().indexOf("codec")) return A.MSMediaKeys.isTypeSupported(a); + f = a.split("|"); + return 1 === f.length ? A.MSMediaKeys.isTypeSupported(h.bb.Lo, a) : "probably" === b.daa(f[0], f[1]); + } catch (m) { + return !1; + } + } + }; + }; + b.jQ = function(a, c, d) { + c = k.format(b.EE, c); + if (0 === d.length) return c; + d = k.format('features="{0}"', d.join()); + return k.format("{0}|{1}{2}", a, c, d); + }; + b.daa = function(a, b) { + var f; + try { + f = A.MSMediaKeys.isTypeSupportedWithFeatures ? A.MSMediaKeys.isTypeSupportedWithFeatures(a, b) : ""; + } catch (r) { + f = "exception"; + } + return f; + }; + b.EE = 'video/mp4;codecs="{0},mp4a";'; + d.tw = b; + }, function(g, d, a) { + var c, h, k, f, p, m; + + function b(a, c, d, p) { + var g; + g = h.Zl.call(this, a, c, d) || this; + g.cast = p; + g.type = k.rj.nW; + a = b.fQa; + g.ME[k.Jd.qN] = f.vc.eF + "; " + a; + g.ME[k.Jd.sq] = f.vc.sq + "; " + a; + a = f.vc.EEa.find(function(a) { + return g.wr(m(b.EE, a)); + }); + g.ME[k.Jd.og] = a; + return g; + } + Object.defineProperty(d, "__esModule", { + value: !0 + }); + c = a(72); + h = a(132); + k = a(27); + g = a(98); + f = a(133); + p = a(407); + m = new g.Dw().format; + ia(b, h.Zl); + b.N1 = function(a, f) { + return (f = b.Xya(f)) ? { + isTypeSupported: f + } : a; + }; + b.Xya = function(a) { + return "undefined" !== typeof a && (a.receiver && a.receiver.platform && a.receiver.platform.canDisplayType || a.__platform__ && a.__platform__.canDisplayType) || void 0; + }; + b.prototype.Zp = function(a) { + var c, d; + c = this.cast.__platform__.display && this.cast.__platform__.display.getHdcpVersion; + if (this.config().bCa) { + d = {}; + if (c) return d[k.mh.Io] = "1.4", d[k.mh.kw] = "2.2", c().then(function(b) { + return b === d[a]; }); + c = this.Nua(a); + c = m(b.EE, f.vc.eF) + " hdcp=" + c; + c = this.wr.bind(this, c); + return Promise.resolve(c()); } - return c.iia; + return Promise.resolve(!1); + }; + b.prototype.CR = function(a) { + return this.ME[a]; + }; + b.prototype.FC = function() { + var a; + a = this; + return this.config().bCa ? this.Zp(k.mh.kw).then(function(b) { + return b ? Promise.resolve(k.mh.kw) : a.Zp(k.mh.Io).then(function(a) { + return a ? Promise.resolve(k.mh.Io) : Promise.resolve(void 0); + }); + }).then(function(b) { + return a.xH(b); + }) : Promise.resolve(void 0); + }; + b.prototype.Jx = function() { + var a, f; + a = h.Zl.prototype.Jx.call(this); + f = b.Asa; + a[c.ba.UW] = ["hev1.2.6.L90.B0", f]; + a[c.ba.VW] = ["hev1.2.6.L93.B0", f]; + a[c.ba.WW] = ["hev1.2.6.L120.B0", f]; + a[c.ba.XW] = ["hev1.2.6.L123.B0", f]; + a[c.ba.YW] = ["hev1.2.6.L150.B0", "width=3840; height=2160; " + f]; + a[c.ba.$W] = ["hev1.2.6.L153.B0", "width=3840; height=2160; " + f]; + a[c.ba.FM] = ["hev1.2.6.L90.B0", f]; + a[c.ba.GM] = ["hev1.2.6.L93.B0", f]; + a[c.ba.HM] = ["hev1.2.6.L120.B0", f]; + a[c.ba.IM] = ["hev1.2.6.L123.B0", f]; + a[c.ba.ZW] = ["hev1.2.6.L150.B0", "width=3840; height=2160; " + f]; + a[c.ba.aX] = ["hev1.2.6.L153.B0", "width=3840; height=2160; " + f]; + a[c.ba.qX] = "hev1.1.6.L90.B0"; + a[c.ba.rX] = "hev1.1.6.L93.B0"; + a[c.ba.sX] = "hev1.1.6.L120.B0"; + a[c.ba.tX] = "hev1.1.6.L123.B0"; + a[c.ba.uX] = ["hev1.1.6.L150.B0", "width=3840; height=2160; "]; + a[c.ba.vX] = ["hev1.1.6.L153.B0", "width=3840; height=2160; "]; + a[c.ba.cX] = "hev1.2.6.L90.B0"; + a[c.ba.fX] = "hev1.2.6.L93.B0"; + a[c.ba.iX] = "hev1.2.6.L120.B0"; + a[c.ba.lX] = "hev1.2.6.L123.B0"; + a[c.ba.hF] = ["hev1.2.6.L150.B0", "width=3840; height=2160; "]; + a[c.ba.iF] = ["hev1.2.6.L153.B0", "width=3840; height=2160; "]; + a[c.ba.eX] = "hev1.2.6.L90.B0"; + a[c.ba.hX] = "hev1.2.6.L93.B0"; + a[c.ba.kX] = "hev1.2.6.L120.B0"; + a[c.ba.nX] = "hev1.2.6.L123.B0"; + a[c.ba.oX] = ["hev1.2.6.L150.B0", "width=3840; height=2160; "]; + a[c.ba.pX] = ["hev1.2.6.L153.B0", "width=3840; height=2160; "]; + return a; + }; + b.prototype.M5 = function() { + h.Zl.prototype.M5.call(this); + !b.Xya(this.cast) && this.Vm.push(p.Oj.sq); + }; + b.Asa = "eotf=smpte2084"; + b.YEb = "video/mp4;codecs={0}; " + b.Asa; + b.fQa = "width=3840; height=2160; "; + d.hca = b; + d.oW = "CastSDKSymbol"; + }, function(g, d) { + Object.defineProperty(d, "__esModule", { + value: !0 + }); + d.oea = "IsTypeSupportedProviderFactorySymbol"; + d.qga = "PlatformIsTypeSupportedSymbol"; + }, function(g, d) { + Object.defineProperty(d, "__esModule", { + value: !0 + }); + d.Lha = "ThroughputTrackerSymbol"; + d.OY = "ThroughputTrackerFactorySymbol"; + }, function(g, d) { + Object.defineProperty(d, "__esModule", { + value: !0 + }); + d.pY = "PboPlaydataFactorySymbol"; + }, function(g, d) { + Object.defineProperty(d, "__esModule", { + value: !0 + }); + d.FY = "SegmentManagerFactorySymbol"; + }, function(g, d, a) { + var c, h, k; + + function b(a, b, c, d) { + this.Va = a; + this.ur = b; + this.kj = c; + this.Cm = void 0 === d ? "General" : d; + this.x1 = {}; } - Object.defineProperty(c, "__esModule", { + Object.defineProperty(d, "__esModule", { value: !0 }); - f = a(18); - l = a(102); - g = a(189); - m = a(89); - p = a(184); - r = a(28); - u = a(51); - v = a(6); - z = a(4); - k = a(16); - G = a(60); - x = a(92); - y = a(17); - C = a(36); - F = a(3); - N = a(201); - T = a(8); - n = a(2); - q = a(107); - O = a(159); - B = a(5); - ja = a(23); - V = a(121); - c.fDa = function(a) { - var O, D, A, H, Pa, wa, na, P, mb, ta, db; + c = a(7); + h = a(419); + k = a(844); + b.prototype.Lla = function(a, b) { + this.x1[a] = b; + }; + b.prototype.fatal = function(a, b) { + for (var f = [], d = 1; d < arguments.length; ++d) f[d - 1] = arguments[d]; + this.Xt(c.Oh.sHa, a, k.HB(this.ur, this.yC(f))); + }; + b.prototype.error = function(a, b) { + for (var f = [], d = 1; d < arguments.length; ++d) f[d - 1] = arguments[d]; + this.Xt(c.Oh.ERROR, a, k.HB(this.ur, this.yC(f))); + }; + b.prototype.warn = function(a, b) { + for (var f = [], d = 1; d < arguments.length; ++d) f[d - 1] = arguments[d]; + this.Xt(c.Oh.dia, a, k.HB(this.ur, this.yC(f))); + }; + b.prototype.info = function(a, b) { + for (var f = [], d = 1; d < arguments.length; ++d) f[d - 1] = arguments[d]; + this.Xt(c.Oh.EX, a, k.HB(this.ur, this.yC(f))); + }; + b.prototype.trace = function(a, b) { + for (var f = [], d = 1; d < arguments.length; ++d) f[d - 1] = arguments[d]; + this.Xt(c.Oh.LY, a, k.HB(this.ur, this.yC(f))); + }; + b.prototype.debug = function(a, b) { + for (var f = 1; f < arguments.length; ++f); + }; + b.prototype.log = function(a, b) { + for (var f = 1; f < arguments.length; ++f); + this.debug.apply(this, arguments); + }; + b.prototype.write = function(a, b, c) { + for (var f = [], d = 2; d < arguments.length; ++d) f[d - 2] = arguments[d]; + this.Xt(a, b, k.HB(this.ur, this.yC(f))); + }; + b.prototype.toString = function() { + return JSON.stringify(this); + }; + b.prototype.toJSON = function() { + return { + category: this.Cm + }; + }; + b.prototype.S1 = function(a) { + return new b(this.Va, this.ur, this.kj, a); + }; + b.prototype.Xt = function(a, b, c) { + a = new h.Dea(a, this.Cm, this.Va.Pe(), b, c); + b = za(this.kj.kj); + for (c = b.next(); !c.done; c = b.next()) c = c.value, c(a); + }; + b.prototype.yC = function(a) { + return 0 < Object.keys(this.x1).length ? [].concat([this.x1], wb(a)) : a; + }; + d.tF = b; + }, function(g, d) { + Object.defineProperty(d, "__esModule", { + value: !0 + }); + d.JY = "StringUtilsSymbol"; + }, function(g) { + var m, r, u, x, v, y; - function c() { - na || (a.Yc("pdsb"), na = ta.oh.events && ta.oh.events.active ? F.Z.get(V.VJ)().then(function(b) { - mb = b; - a.Yc("pdsc"); - return b; - })["catch"](function(b) { - O.error("Unable to initialize the playdata services", b); - a.Yc("pdse"); - throw b; - }) : F.Z.get(N.DU)().then(function(b) { - mb = b; - a.Yc("pdsc"); - return b; - })["catch"](function(b) { - O.error("Unable to initialize the playdata services", b); - a.Yc("pdse"); - throw b; - })); - return na; + function d() { + throw Error("setTimeout has not been defined"); + } + + function a() { + throw Error("clearTimeout has not been defined"); + } + + function b(a) { + if (m === setTimeout) return setTimeout(a, 0); + if ((m === d || !m) && setTimeout) return m = setTimeout, setTimeout(a, 0); + try { + return m(a, 0); + } catch (D) { + try { + return m.call(null, a, 0); + } catch (z) { + return m.call(this, a, 0); + } } + } - function p() { - T.ea(a.dj, "Control protocol is not initialized for playdata"); - a.Tb.addListener(function() { - w(a.Tb.value == k.em ? l.Mna : l.Nna, a.Tb.value == k.pr ? 500 : 0); + function c(b) { + if (r === clearTimeout) clearTimeout(b); + else if (r !== a && r || !clearTimeout) try { + r(b); + } catch (D) { + try { + r.call(null, b); + } catch (z) { + r.call(this, b); + } + } else r = clearTimeout, clearTimeout(b); + } + + function h() { + x && v && (x = !1, v.length ? u = v.concat(u) : y = -1, u.length && k()); + } + + function k() { + var a; + if (!x) { + a = b(h); + x = !0; + for (var f = u.length; f;) { + v = u; + for (u = []; ++y < f;) v && v[y].ZD(); + y = -1; + f = u.length; + } + v = null; + x = !1; + c(a); + } + } + + function f(a, b) { + this.O7a = a; + this.Dn = b; + } + + function p() {} + g = g.M = {}; + try { + m = "function" === typeof setTimeout ? setTimeout : d; + } catch (w) { + m = d; + } + try { + r = "function" === typeof clearTimeout ? clearTimeout : a; + } catch (w) { + r = a; + } + u = []; + x = !1; + y = -1; + g.awa = function(a) { + var c; + c = Array(arguments.length - 1); + if (1 < arguments.length) + for (var d = 1; d < arguments.length; d++) c[d - 1] = arguments[d]; + u.push(new f(a, c)); + 1 !== u.length || x || b(k); + }; + f.prototype.ZD = function() { + this.O7a.apply(null, this.Dn); + }; + g.title = "browser"; + g.TBb = !0; + g.h6a = {}; + g.ABb = []; + g.version = ""; + g.dJb = {}; + g.on = p; + g.addListener = p; + g.once = p; + g.lhb = p; + g.removeListener = p; + g.removeAllListeners = p; + g.emit = p; + g.Oxa = p; + g.Rjb = p; + g.listeners = function() { + return []; + }; + g.PBb = function() { + throw Error("process.binding is not supported"); + }; + g.RCb = function() { + return "/"; + }; + g.lCb = function() { + throw Error("process.chdir is not supported"); + }; + g.TIb = function() { + return 0; + }; + }, function(g, d, a) { + (function(b) { + var S, T, H, X, aa, ra; + + function c(a, b) { + var f; + f = { + b$: [], + si: k + }; + 3 <= arguments.length && (f.depth = arguments[2]); + 4 <= arguments.length && (f.OB = arguments[3]); + w(b) ? f.F$ = b : b && d.lja(f, b); + l(f.F$) && (f.F$ = !1); + l(f.depth) && (f.depth = 2); + l(f.OB) && (f.OB = !1); + l(f.Eoa) && (f.Eoa = !0); + f.OB && (f.si = g); + return p(f, a, f.depth); + } + + function g(a, b) { + return (b = c.Apb[b]) ? "\u001b[" + c.OB[b][0] + "m" + a + "\u001b[" + c.OB[b][1] + "m" : a; + } + + function k(a) { + return a; + } + + function f(a) { + var b; + b = {}; + a.forEach(function(a) { + b[a] = !0; }); - x() && q(B.ig(z.config.r0, g.JG.s0)); + return b; } - function m() { - a.Yc("pdb"); - c().then(function(b) { - a.ge ? b.s$a({ - FF: a.dj.aZ - }) : b.t$a({ - FF: a.dj.aZ - }); - })["catch"](function(a) { - O.error("Unable to initialize the playdata services", a); + function p(a, b, c) { + var g, k, h, w, D; + if (a.Eoa && b && O(b.aJ) && b.aJ !== d.aJ && (!b.constructor || b.constructor.prototype !== b)) { + g = b.aJ(c, a); + z(g) || (g = p(a, g, c)); + return g; + } + if (g = m(a, b)) return g; + k = Object.keys(b); + h = f(k); + a.F$ && (k = Object.getOwnPropertyNames(b)); + if (q(b) && (0 <= k.indexOf("message") || 0 <= k.indexOf("description"))) return r(b); + if (0 === k.length) { + if (O(b)) return a.si("[Function" + (b.name ? ": " + b.name : "") + "]", "special"); + if (P(b)) return a.si(RegExp.prototype.toString.call(b), "regexp"); + if (n(b)) return a.si(Date.prototype.toString.call(b), "date"); + if (q(b)) return r(b); + } + g = ""; + w = !1; + D = ["{", "}"]; + y(b) && (w = !0, D = ["[", "]"]); + O(b) && (g = " [Function" + (b.name ? ": " + b.name : "") + "]"); + P(b) && (g = " " + RegExp.prototype.toString.call(b)); + n(b) && (g = " " + Date.prototype.toUTCString.call(b)); + q(b) && (g = " " + r(b)); + if (0 === k.length && (!w || 0 == b.length)) return D[0] + g + D[1]; + if (0 > c) return P(b) ? a.si(RegExp.prototype.toString.call(b), "regexp") : a.si("[Object]", "special"); + a.b$.push(b); + k = w ? u(a, b, c, h, k) : k.map(function(f) { + return x(a, b, c, h, f, w); }); + a.b$.pop(); + return v(k, g, D); } - function r() { - G.Bd.removeListener(G.Pj, f); - ca(); + function m(a, b) { + if (l(b)) return a.si("undefined", "undefined"); + if (z(b)) return b = "'" + JSON.stringify(b).replace(/^"|"$/g, "").replace(/'/g, "\\'").replace(/\\"/g, '"') + "'", a.si(b, "string"); + if (D(b)) return a.si("" + b, "number"); + if (w(b)) return a.si("" + b, "boolean"); + if (null === b) return a.si("null", "null"); } - function f() { - P = !0; - mb && mb.close(); - G.Bd.removeListener(G.Pj, f); + function r(a) { + return "[" + Error.prototype.toString.call(a) + "]"; } - function x() { - return g.JG.a9a && a.state.value == k.lk && !wa && (0 < g.JG.s0 || D != l.uq); + function u(a, b, f, c, d) { + for (var m = [], p = 0, g = b.length; p < g; ++p) Object.prototype.hasOwnProperty.call(b, String(p)) ? m.push(x(a, b, f, c, String(p), !0)) : m.push(""); + d.forEach(function(d) { + d.match(/^\d+$/) || m.push(x(a, b, f, c, d, !0)); + }); + return m; } - function w(a, b) { - a = a || l.uq; - a != l.uq && (D = a); - x() && (a = D != l.uq ? z.config.r0 : B.ig(z.config.r0, g.JG.s0), a = B.ig(a - (y.Ra() - A), b || 0), !b && (!A || 500 >= a || H == l.uq && D != l.uq) ? Z() : (T.tSa(a), q(a))); + function x(a, b, f, c, d, m) { + var g, k; + b = Object.getOwnPropertyDescriptor(b, d) || { + value: b[d] + }; + b.get ? k = b.set ? a.si("[Getter/Setter]", "special") : a.si("[Getter]", "special") : b.set && (k = a.si("[Setter]", "special")); + Object.prototype.hasOwnProperty.call(c, d) || (g = "[" + d + "]"); + k || (0 > a.b$.indexOf(b.value) ? (k = null === f ? p(a, b.value, null) : p(a, b.value, f - 1), -1 < k.indexOf("\n") && (k = m ? k.split("\n").map(function(a) { + return " " + a; + }).join("\n").substr(2) : "\n" + k.split("\n").map(function(a) { + return " " + a; + }).join("\n"))) : k = a.si("[Circular]", "special")); + if (l(g)) { + if (m && d.match(/^\d+$/)) return k; + g = JSON.stringify("" + d); + g.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/) ? (g = g.substr(1, g.length - 2), g = a.si(g, "name")) : (g = g.replace(/'/g, "\\'").replace(/\\"/g, '"').replace(/(^"|"$)/g, "'"), g = a.si(g, "string")); + } + return g + ": " + k; } - function ca() { - Pa && (clearTimeout(Pa), Pa = void 0); + function v(a, b, f) { + var c; + c = 0; + return 60 < a.reduce(function(a, b) { + c++; + 0 <= b.indexOf("\n") && c++; + return a + b.replace(/\u001b\[\d\d?m/g, "").length + 1; + }, 0) ? f[0] + ("" === b ? "" : b + "\n ") + " " + a.join(",\n ") + " " + f[1] : f[0] + b + " " + a.join(", ") + " " + f[1]; } - function q(a) { - ca(); - Pa = setTimeout(w, a); + function y(a) { + return Array.isArray(a); } - function Z() { - var b; - if (x()) { - ca(); - wa = !0; - b = D; - D = l.uq; - a.dj.q0(b, function(c) { - c.K || (O.error("Heartbeat failed", { - Type: b - }, F.jk(c)), c.ne && a.Hh(new u.rj(n.v.GT, c))); - H = b; - A = y.Ra(); - wa = !1; - w(); - }); - } + function w(a) { + return "boolean" === typeof a; } - O = F.Je(a, "PlayDataManager"); - D = l.uq; - A = 0; - P = !1; - ta = F.Z.get(ja.Oe); - if (!C.Ne.kn || !C.Ne.cr) { - db = C.T$(); - C.Ne.kn = db.ph; - C.Ne.cr = db.request; - } - a.Yc("pdctor"); - ta.oh.events && ta.oh.events.active || (a.addEventListener(k.mg, p, v.by), a.addEventListener(k.mg, m), a.addEventListener(k.VC, m), a.addEventListener(k.Qe, r)); - a.addEventListener(k.VC, function() { - var b; - if (!z.config.dn && a.bh) { - b = a.dj.sha(); - h(O).then(function(a) { - return a.wfa(b); - })["catch"](function() { - O.error("Unable to load/add cached DRM data"); - }); - } - }); - a.addEventListener(k.Qe, function() { - var b; - if (!P) { - a.Ocb(); - b = [function() { - return z.config.dn || !a.bh ? Promise.resolve() : new Promise(function(b) { - var c; - O.info("Sending the expedited playdata and secure stop data"); - c = a.dj.sha(); - a.bh.Mia(c).then(function(b) { - O.info("Sent the expedited playdata and secure stop data"); - z.config.Sh && a.KA.KQ({ - success: b.K, - persisted: !1, - ss_km: b.z2, - ss_sr: b.qB, - ss_ka: b.HY - }); - return h(O); - }).then(function(a) { - return d(a, c); - }).then(function() { - b(); - })["catch"](function(c) { - O.error("Unable to send the expedited playdata and secure stop data", c); - z.config.Sh && a.KA.KQ({ - success: c.K, - state: c.state, - ErrorCode: c.code, - ErrorSubCode: c.tb, - ErrorExternalCode: c.Sc, - ErrorEdgeCode: c.Jj, - ErrorDetails: c.cause && c.cause.za - }); - b(); - }); - }); - }(), function() { - return ta.oh.events && ta.oh.events.active && a ? c().then(function(b) { - return b.C5(a); - }).then(function() { - O.info("Sent the playdata"); - })["catch"](function(a) { - O.error("Unable to send the playdata", a); - }) : a && a.dj && !a.background ? new Promise(function(b) { - c().then(function(b) { - return b.C5(a.dj.aZ()); - }).then(function() { - O.info("Sent the playdata"); - b(); - })["catch"](function(a) { - O.error("Unable to send the playdata", a); - b(); - }); - }) : Promise.resolve(); - }(), function() { - if (t._cad_global.logBatcher) return new Promise(function(a) { - t._cad_global.logBatcher.flush(!1)["catch"](function() { - O.error("Unable to send logblob"); - a(); - }).then(function() { - a(); - }); - }); - Promise.resolve(); - }()]; - Promise.all(b).then(function() { - a.Xna(); - })["catch"](function() { - a.Xna(); - }); - } - }); - G.Bd.addListener(G.Pj, f); - return { - V8a: function(d) { - a.Yc("pdpb"); - z.config.RQ || c().then(function(b) { - return b.send(a.M); - }).then(function() { - z.config.dn ? (a.Yc("pdpc"), d(v.cb)) : b(a, function() { - a.Yc("pdpc"); - d(v.cb); - }); - })["catch"](function() { - a.Yc("pdpe"); - d(v.cb); - }); - } - }; - }; - c.gDa = function() { - return new Promise(function(a) { - b({}, function(b) { - a(b); - }); - }); - }; - f.Dd(n.v.jl, function(a) { - a(v.cb); - }); - }, function(f, c, a) { - var l, g, m, p, r, u, v, z, k, G, x, y, C, F, N, T, n, q, O, B, ja; - function b(a, b, c, d, g) { - return g ? Promise.resolve({ - K: !0 - }) : a || b.Dc && b.aa ? l.ti.stop(c, Object.assign({}, d, { - Dc: b.Dc, - aa: b.aa - })) : d.Dc && d.aa ? l.ti.stop(c, d) : Promise.resolve({ - K: !0 - }); - } + function D(a) { + return "number" === typeof a; + } - function d(a, b, c, d) { - var g; - g = z.Z.get(q.yC); - if (b.aa && h(b.Ob)) return g.release(Object.assign({}, d, { - aa: b.aa, - Ob: b.Ob - }), c); - if (d.aa && h(d.Ob)) return g.release(d, c); - a && z.log.error("playback started but no keySessionData"); - return Promise.resolve({ - K: !0 - }); - } + function z(a) { + return "string" === typeof a; + } - function h(a) { - return a && 0 < a.length && a[0].kt; - } - Object.defineProperty(c, "__esModule", { - value: !0 - }); - l = a(102); - g = a(81); - m = a(187); - p = a(6); - r = a(4); - u = a(16); - v = a(17); - z = a(3); - k = a(8); - G = a(202); - x = a(413); - a(19); - y = a(2); - C = a(58); - F = a(36); - N = a(32); - T = a(15); - n = a(203); - q = a(145); - O = a(104); - B = a(23); - ja = a(121); - c.TAa = function(a) { - var ea, V, ka, ua, la, A, H, ub, Pa, wa, na, P, mb, ta; + function l(a) { + return void 0 === a; + } - function h() { - h = p.Gb; - a.fireEvent(u.waa); - ta.oh.events && ta.oh.events.active && z.Z.get(ja.VJ)().then(function(b) { - b.jR(a); - }); + function P(a) { + return F(a) && "[object RegExp]" === Object.prototype.toString.call(a); } - function f() { - f = p.Gb; - c.F$(V, ea); - a.fireEvent(u.VC); + function F(a) { + return "object" === typeof a && null !== a; } - function w(b) { - return new Promise(function(c, d) { - var g, h, p; - g = v.Ra(); - h = []; - p = C.tc.mha(b.Rf); - b.Fj.forEach(function(a) { - h.push({ - sessionId: a.sessionId, - dataBase64: z.Dp(a.data) - }); - }); - p = { - Dc: a.Dc, - Rf: T.is.Eh(b.Rf) ? b.Rf : p, - cN: [a.Is], - Fj: h, - aa: a.aa, - ii: b.ii - }; - a.CM && (p.wG = a.CM); - mb.Yy(p, V).then(function(b) { - H = v.Ra() - g; - a.Ob = b.Ob; - c(b); - f(); - })["catch"](function(a) { - d(a); - }); - }); + function n(a) { + return F(a) && "[object Date]" === Object.prototype.toString.call(a); } - function F() { - var b, c; - b = na.create(); - b.type = a.ge ? "offline" : "online"; - b.profileId = a.profile.id; - b.Dc = a.Dc; - b.xi = a.xi; - b.aa = a.aa; - b.M = a.M; - b.Jg = ca(); - b.timestamp = l.ti.mka(); - b.L.ni(U()); - (a.ge || a.xi) && T.da(a.pc.value) && (b.position = a.Ts()); - c = a.Gg; - c && T.kq(c.Fz) && (b.K = !1, b.hnb = c.Fz); - return b; + function q(a) { + return F(a) && ("[object Error]" === Object.prototype.toString.call(a) || a instanceof Error); } - function U() { - if (ka) return { - startPosition: ua, - startEpoch: la, - playTimes: a.Sl.dka() - }; - if (a.ge) return { - startEpoch: v.On(), - playTimes: { - total: 0 - } - }; - if (a.Dc && a.aa) return { - playTimes: { - total: 0 - } - }; + function O(a) { + return "function" === typeof a; } - function ca() { - var b, c, d, g; - b = a.gc.value; - c = a.Ud.value; - d = a.Fc.value; - if (b && c && d) { - g = a.Sa.media.find(function(a) { - return a.tracks.AUDIO === b.Ab && a.tracks.VIDEO === c.Ab && a.tracks.TEXT === d.Ab; - }); - return g ? g.id : void 0; - } + function Y(a) { + return 10 > a ? "0" + a.toString(10) : a.toString(10); } - function Z() { - var a; - a = F(); - a.Jg && a.xi && l.ti.m2a(a, V, function(b) { - b.K ? ea.trace("Spliced new mediaId " + a.Jg) : ea.error("Media splice failed", z.jk(b)); - }); + function U() { + var a, b; + a = new Date(); + b = [Y(a.getHours()), Y(a.getMinutes()), Y(a.getSeconds())].join(":"); + return [a.getDate(), aa[a.getMonth()], b].join(" "); } - ea = z.Je(a, "NccpPlayback"); - V = { - Za: a.Ys, - log: z.Je(a, "Nccp"), - profile: a.profile - }; - ub = r.config.gs || v.ir; - Pa = r.config.sessionId || v.ir; - na = z.Z.get(G.CU); - P = z.Z.get(n.MT); - mb = z.Z.get(q.yC); - ta = z.Z.get(B.Oe); - k.ea(r.config); - k.ea(l.ti); - k.ea(V.Za); - r.config.dn || (wa = z.Z.get(x.W7)); - a.addEventListener(u.mg, function() { - ka = !0; - ua = a.pc.value; - la = v.On(); - k.Es(ua); - }); - a.Fc.addListener(function() { - a.Pb.Bz ? ea.trace("stickiness is disabled for timedtext") : Z(); - }); - a.gc.addListener(function() { - a.Pb.Bz ? ea.trace("stickiness is disabled for audio") : Z(); - }); - return { - P2: V, - kE: function(b) { - var l, f, u; - async function c(c) { - A = v.Ra() - l; - ea.trace("Auth Delay: " + A); - try { - if (/watch/.test(window.location.pathname)) { - for (var i = 0; i < c.audioTracks.length; i++) { - c.audioTracks[i].language += ' - ' + c.audioTracks[i].channelsLabel; + function t(a, b) { + var f; + if (!a) { + f = Error("Promise was rejected with a falsy value"); + f.reason = a; + a = f; + } + return b(a); + } + S = Object.NEb || function(a) { + for (var b = Object.keys(a), f = {}, c = 0; c < b.length; c++) f[b[c]] = Object.getOwnPropertyDescriptor(a, b[c]); + return f; + }; + T = /%[sdj%]/g; + d.format = function(a) { + if (!z(a)) { + for (var b = [], f = 0; f < arguments.length; f++) b.push(c(arguments[f])); + return b.join(" "); + } + for (var f = 1, d = arguments, m = d.length, b = String(a).replace(T, function(a) { + if ("%%" === a) return "%"; + if (f >= m) return a; + switch (a) { + case "%s": + return String(d[f++]); + case "%d": + return Number(d[f++]); + case "%j": + try { + return JSON.stringify(d[f++]); + } catch (Ga) { + return "[Circular]"; } - } - - m.R4a(c, a, a.IN, a.KN); - b(p.cb); - h(); - } catch (hb) { - ea.error("Exception processing authorization response", hb); - b({ - K: !1, - R: y.u.AAa - }); + default: + return a; } + }), p = d[f]; f < m; p = d[++f]) b = null !== p && F(p) ? b + (" " + c(p)) : b + (" " + p); + return b; + }; + d.Q3a = function(a, f) { + var c; + if ("undefined" !== typeof b && !0 === b.HGb) return a; + if ("undefined" === typeof b) return function() { + return d.Q3a(a, f).apply(this, arguments); + }; + c = !1; + return function() { + if (!c) { + if (b.FIb) throw Error(f); + b.IIb ? console.trace(f) : console.error(f); + c = !0; } - - function d() { - var d, g; - d = r.config.bQ.enabled ? C.tc.vu.SDa : a.KO() ? C.tc.vu.MEa : C.tc.vu.vr; - g = a.Pb; - d = { - jf: P.Zga(g.pm, g.jf), - dg: a.M, - $s: !!g.Qf, - eja: d + return a.apply(this, arguments); + }; + }; + H = {}; + d.fDb = function(a) { + var f; + l(X) && (X = b.h6a.Jxb || ""); + a = a.toUpperCase(); + if (!H[a]) + if (new RegExp("\\b" + a + "\\b", "i").test(X)) { + f = b.oHb; + H[a] = function() { + var b; + b = d.format.apply(d, arguments); + console.error("%s %d: %s", a, f, b); }; - r.config.bQ.enabled && T.kq(r.config.bQ.oo) && (d.oo = r.config.bQ.oo); - g = z.Z.get(O.ey)(); - P.Xz(d, g).then(function(a) { - c(a); - })["catch"](function(a) { - b(a); - }); - } - k.Es(a.M); - k.Es(a.Zf); - l = v.Ra(); - f = a.pe; - if (f) - if (f.willExpireOn) { - u = f.willExpireOn - v.Ra(); - 18E5 < u ? N.Xa(function() { - c(f); - a.uM = !0; - }) : (ea.error("manifestData is expired", { - gap: u - }), d()); - } else N.Xa(function() { - c(f); - a.uM = !0; - }); - else if (a.ge) - if (u = g.vh.Qnb(a.M)) { - ea.info("manifest consumed from video cache"); - try { - m.G4a(u, a, a.IN, a.KN); - b(p.cb); - h(); - } catch (gb) { - ea.error("Exception processing manifest from video cache", gb); - b({ - K: !1, - R: y.u.nwa - }); - } - a.uM = !0; - } else ea.error("video cache can play, but manifest not in video cache", a.M), b({ - K: !1, - R: y.u.owa - }); - else r.config.Rm && t._cad_global.videoPreparer ? (u = t._cad_global.videoPreparer.Ui(a.M, "manifest")) && u.then(function(b) { - c(b); - a.uM = !0; - })["catch"](function(a) { - ea.warn("manifest not in cache", a); - d(); - }) : d(); - }, - $v: w, - start: function() { - return new Promise(function(b, c) { - var d; - d = { - Dc: a.Dc, - Jg: ca(), - aa: a.aa, - gs: ub, - sessionId: Pa, - jf: a.Pb.jf, - pm: a.Pb.pm, - Ab: a.Zf, - kR: ua, - A5a: "standard" - }; - l.ti.start(V, d).then(function(d) { - d.K ? (a.xi = d.xi, b(p.cb)) : c(d); - })["catch"](function(a) { - c(a); - }); - }); - }, - Usb: function(b) { - return d(ka, a, V, b); - }, - stop: function(c) { - return b(ka, a, V, c, a.background); - }, - release: function(b) { - return d(ka, a, V, b); - }, - kd: function(a, b) { - w(a).then(function(a) { - b(a); - })["catch"](function(a) { - b(a); - }); - }, - q0: function(a, b) { - var c; - c = F(); - c.Jg && c.xi ? l.ti.q0(c, a, V, function(a) { - b && b(a); - }) : b && b({ - K: !0 - }); - }, - Rn: function(a) { - var b; - b = F(); - if (!b.Jg || !b.xi) return Promise.resolve({ - K: !0 + } else H[a] = function() {}; + return H[a]; + }; + d.aJ = c; + c.OB = { + bold: [1, 22], + italic: [3, 23], + underline: [4, 24], + inverse: [7, 27], + white: [37, 39], + grey: [90, 39], + black: [30, 39], + blue: [34, 39], + cyan: [36, 39], + green: [32, 39], + magenta: [35, 39], + red: [31, 39], + yellow: [33, 39] + }; + c.Apb = { + special: "cyan", + number: "yellow", + "boolean": "yellow", + undefined: "grey", + "null": "bold", + string: "green", + date: "magenta", + regexp: "red" + }; + d.isArray = y; + d.ecb = w; + d.Na = function(a) { + return null === a; + }; + d.IFb = function(a) { + return null == a; + }; + d.ja = D; + d.bd = z; + d.MFb = function(a) { + return "symbol" === typeof a; + }; + d.V = l; + d.Fta = P; + d.ne = F; + d.cJ = n; + d.qS = q; + d.qb = O; + d.Bta = function(a) { + return null === a || "boolean" === typeof a || "number" === typeof a || "string" === typeof a || "symbol" === typeof a || "undefined" === typeof a; + }; + d.isBuffer = a(864); + aa = "Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" "); + d.log = function() { + console.log("%s - %s", U(), d.format.apply(d, arguments)); + }; + d.Mbb = a(863); + d.lja = function(a, b) { + if (!b || !F(b)) return a; + for (var f = Object.keys(b), c = f.length; c--;) a[f[c]] = b[f[c]]; + return a; + }; + La(); + La(); + ra = "undefined" !== typeof Symbol ? Symbol("util.promisify.custom") : void 0; + d.mkb = function(a) { + function b() { + for (var b, f, c = new Promise(function(a, c) { + b = a; + f = c; + }), d = [], m = 0; m < arguments.length; m++) d.push(arguments[m]); + d.push(function(a, c) { + a ? f(a) : b(c); }); - b.action = a; - return l.ti.Rn(V, b); - }, - Qh: function(a, b) { - l.ti.Qh(a, V, function(a) { - b && b(a); + try { + a.apply(this, d); + } catch (Ga) { + f(Ga); + } + return c; + } + if ("function" !== typeof a) throw new TypeError('The "original" argument must be of type Function'); + if (ra && a[ra]) { + b = a[ra]; + if ("function" !== typeof b) throw new TypeError('The "util.promisify.custom" argument must be of type Function'); + Object.defineProperty(b, ra, { + value: b, + enumerable: !1, + writable: !1, + configurable: !0 }); - }, - aZ: F, - sha: function() { - var b; - b = wa.create(); - b.profileId = a.profile.id; - a.bh && (b.ce = a.bh.Vz()); - b.Ob = a.Ob; - b.aa = a.aa; - b.M = a.M; return b; - }, - wWa: function() { - return A; - }, - OXa: function() { - return H; } + Object.setPrototypeOf(b, Object.getPrototypeOf(a)); + ra && Object.defineProperty(b, ra, { + value: b, + enumerable: !1, + writable: !1, + configurable: !0 + }); + return Object.defineProperties(b, S(a)); }; - }; - c.F$ = function(a, b) { - c.F$ = p.Gb; - F.KAa && r.config.jcb && l.ti.WX(a).then(function() { - b.trace("Updated NetflixId"); - })["catch"](function(a) { - b.error("NetflixId upgrade failed", z.jk(a)); - }); - }; - c.VAa = function(a, b, c) { - return d(!1, a, b, c); - }; - c.Phb = b; - c.UAa = d; - }, function(f, c, a) { - var b, d, h, l, g, m, p, r, u; - Object.defineProperty(c, "__esModule", { - value: !0 - }); - b = a(81); - d = a(73); - h = a(4); - l = a(16); - g = a(3); - m = a(19); - p = a(286); - r = a(5); - u = a(28); - c.AFa = function(a, f, k, G, x, y, C, F, N) { - var n, q, t, V, D, S, da, X; + d.mkb.QCb = ra; + d.gCb = function(a) { + function f() { + var m, p; - function v(a) { - var b; - m.Kb(a, function(a, c) { - var d; - if (!b) { - d = D[c]; - d ? d < h.config.vsa + 1 && (D[c]++, b = { - url: c, - iz: a - }) : (D[c] = 1, b = { - url: c, - iz: a - }); + function f() { + return m.apply(p, arguments); } - }); - return b; - } - - function z(d) { - function h(b) { - if (b.K) try { - da = p.Z4a(b.content); - t = c.WU; - q.trace("TrickPlay parsed", { - Images: da.images.length - }, V); - a.fireEvent(l.xDa); - } catch (ea) { - t = c.Sba; - q.error("TrickPlay parse failed.", ea); - } else t = c.Rba, q.error("TrickPlay download failed.", g.jk(b), V); - } - a.ge ? b.vh.cq(a.M, N, 0, -1, function(a) { - a.K ? q.info("VideoCache trickplay track served from cache") : q.error("VideoCache failed to get trickplay track from cache"); - h(a); - }) : (q.trace("Downloading", d.url, V), a.Ys.download({ - responseType: u.Xs, - Ya: w(d.iz), - url: d.url, - track: n - }, h)); - } - - function w(b) { - var d; - for (var c = 0; c < a.Ej.length; c++) { - d = a.Ej[c]; - if (d && d.id == b) return d; + for (var c = [], d = 0; d < arguments.length; d++) c.push(arguments[d]); + m = c.pop(); + if ("function" !== typeof m) throw new TypeError("The last argument must be of type Function"); + p = this; + a.apply(this, c).then(function(a) { + b.awa(f, null, a); + }, function(a) { + b.awa(t, a, f); + }); } - } - n = this; - q = g.Je(a, "TrickPlay"); - t = c.Rba; - V = {}; - D = {}; - S = !0; - X = 0; - m.oa(n, { - type: d.m7, - id: f, - download: function() { - var b; - if (a.ge) X < h.config.vsa ? z("") : S = !1, X++; - else { - b = v(F); - b ? (t = c.XU, z(b)) : S = !1; - } - }, - sXa: function(a) { - if (da && (a = r.Xh(a / da.pi.jsa), 0 <= a && a < da.images.length)) return { - image: da.images[a], - time: a * da.pi.jsa, - height: k, - width: G, - pixelAspectHeight: x, - pixelAspectWidth: y - }; - }, - wYa: function() { - return S; - }, - ae: function() { - return t; - }, - pka: function() { - switch (t) { - case c.WU: - return "downloaded"; - case c.XU: - return "loading"; - case c.BFa: - return "downloadfailed"; - case c.Sba: - return "parsefailed"; - default: - return "notstarted"; - } - }, - Zi: V, - size: C - }); - }; - c.Rba = 0; - c.XU = 1; - c.WU = 2; - c.BFa = 3; - c.Sba = 4; - }, function(f, c, a) { - var b, d, h, l, g, m, p, r, u, v, z, k, G; - Object.defineProperty(c, "__esModule", { + if ("function" !== typeof a) throw new TypeError('The "original" argument must be of type Function'); + Object.setPrototypeOf(f, Object.getPrototypeOf(a)); + Object.defineProperties(f, S(a)); + return f; + }; + }.call(this, a(229))); + }, function(g, d, a) { + var c, h; + + function b() {} + Object.defineProperty(d, "__esModule", { value: !0 }); - b = a(196); - d = a(81); - h = a(28); - l = a(4); - g = a(16); - m = a(73); - p = a(3); - r = a(64); - u = a(8); - v = a(193); - z = a(5); - k = a(15); - G = a(534); - c.SU = function(a, f, C, w, N, T, n, q, O, B, ja, V, D, S) { - var la, A, H, ub, Pa, wa, na, P, mb, ta; - - function x(d) { - function h() { - a.state.removeListener(h); - m(); - } - - function m() { - a.state.value == g.lk ? Pa ? ca(function(a) { - a.K ? la.info("Loaded image subtitle manager") : (la.error("Unable to load image subtitles manager", a), A = c.TU, ub = b.pJ(x)); - d(a); - }) : y(function(a) { - a.K ? (la.trace("Entries parsed", { - Length: a.entries.length - }, H), ta.Ya = a.Ya, A = c.sFa) : (la.error("Unable to retreive timed text track", p.jk(a), H, { - url: a.url - }), A = c.TU, ub = b.pJ(x)); - d(a); - }) : d({}); - } - A = c.Lba; - a.state.value != g.qj ? m() : a.state.addListener(h); + g = a(0); + a = a(1); + c = { + 0: 0, + 1: 1, + 2: 2, + 3: 3, + 4: 4, + 5: 5, + 6: 6, + 7: 7, + 8: 8, + 9: 9, + A: 10, + B: 11, + C: 12, + D: 13, + E: 14, + F: 15, + a: 10, + b: 11, + c: 12, + d: 13, + e: 14, + f: 15 + }; + b.prototype.decode = function(a) { + for (var b = new Uint8Array(a.length / 2), c = 0; c < b.length; c++) b[c] = this.rBa(a.substr(2 * c, 2)); + return b; + }; + b.prototype.encode = function(a) { + for (var b = "", c = a.length, d = 0; d < c; d++) var g = a[d], + b = b + ("0123456789ABCDEF" [g >>> 4] + "0123456789ABCDEF" [g & 15]); + return b; + }; + b.prototype.sI = function(a, b) { + var f; + f = ""; + for (b <<= 1; b--;) f = ("0123456789ABCDEF" [a & 15] || "0") + f, a >>>= 4; + return f; + }; + b.prototype.rBa = function(a) { + var b; + b = a.length; + if (7 < b) throw Error("hex to long"); + for (var d = 0, m = 0; m < b; m++) d = 16 * d + c[a[m]]; + return d; + }; + h = b; + h = g.__decorate([a.N()], h); + d.hW = h; + }, function(g, d) { + Object.defineProperty(d, "__esModule", { + value: !0 + }); + d.Wk = 'video/mp4; codecs="avc1.640028"'; + d.ow = 'audio/mp4; codecs="mp4a.40.5"'; + d.FGa = "DrmTraitsSymbol"; + }, function(g, d, a) { + var b, c; + b = a(441); + c = a(969); + d.ev = function(a) { + void 0 === a && (a = Number.POSITIVE_INFINITY); + return b.rD(c.xbb, null, a); + }; + }, function(g, d, a) { + var b; + b = this && this.__extends || function(a, b) { + function c() { + this.constructor = a; } - - function y(b) { - var d, g, h; - - function c(p) { - var m, r, f, u, x, v, y; - m = {}; - if (p.K) b(p); - else { - if (!p.O0) { - m = ia(g, h, "text"); - m.errorstring = p.reason; - if (!ua(m)) { - b({ - K: !1, - Dn: !0 - }); - return; - } - g && d[g] <= l.config.W5 && (r = !0, f = "retry with current cdn"); - } - for (v = 0; v < a.iI.length; v++) - if (u = a.iI[v], x = w[u.id], d[u.id] > l.config.W5 || !x) u = null; - else break; - if (a.ge) la.info("load timedtext track from video cache"), F("", {}, c); - else if (u && x) - if (g !== u.id && (f = "retry with next cdn", r = !0), g = u.id, h = x, d[u.id] = (d[u.id] || 0) + 1, p.O0) F(x, u, c); - else { - y = 1E3 * z.ue(z.GJ(2, d[u.id] - 1), 8); - setTimeout(function() { - la.trace("retry timed text download after " + y, ia(u.id, "", "text")); - F(x, u, c); - }, y); - } - else r = !1, f = "all cdns tried", b(p); - p.K || p.O0 || ka(m, r, f); - } - } - if (k.oc(w)) F(w, void 0, b); - else if (k.isArray(w)) b({ - K: !0, - entries: w, - track: ta + for (var f in b) b.hasOwnProperty(f) && (a[f] = b[f]); + a.prototype = null === b ? Object.create(b) : (c.prototype = b.prototype, new c()); + }; + g = function(a) { + function c(b, f) { + a.call(this); + this.value = b; + this.ia = f; + this.Oq = !0; + f && (this.Oq = !1); + } + b(c, a); + c.create = function(a, b) { + return new c(a, b); + }; + c.hb = function(a) { + var b, c; + b = a.value; + c = a.ff; + a.done ? c.complete() : (c.next(b), c.closed || (a.done = !0, this.nb(a))); + }; + c.prototype.zf = function(a) { + var b, d; + b = this.value; + d = this.ia; + if (d) return d.nb(c.hb, 0, { + done: !1, + value: b, + ff: a }); - else { - d = {}; - c({ - K: !1, - O0: !0 - }); - } + a.next(b); + a.closed || a.complete(); + }; + return c; + }(a(10).ta); + d.EY = g; + }, function(g, d, a) { + a(10); + g = function() { + function a(a, b, d) { + this.kind = a; + this.value = b; + this.error = d; + this.Vn = "N" === a; } - - function F(b, c, g) { - var f; - - function m(b) { - var d; - d = a.Gx; - u.ea(d); - v.Doa(b, d.width / d.height, l.config.hsa, l.config.isa, function(a) { - var b, d; - if (a.K) { - a = a.entries; - b = l.config.Zab; - if (b) { - d = 0; - a.forEach(function(a) { - a.startTime = d; - a.endTime = d += b; - }); - } - P = a; - g({ - K: !0, - entries: a, - Ya: c, - track: ta - }); - } else a.url = f.url, a.reason = "parseerror", a.track = ta, g(a); - }); - } - - function r(a) { - var b; - b = { - name: "AES-CBC" - }; - return t.netflix.crypto.importKey("raw", p.Pi(D), b, !1, ["encrypt", "decrypt"]).then(function(c) { - var d; - b = { - name: "AES-CBC", - iv: new Uint8Array(a, 0, 16) - }; - d = new Uint8Array(a, 16); - return t.netflix.crypto.decrypt(b, c, d).then(function(a) { - a = new Uint8Array(a); - return p.XB(a); - }); - }); + a.prototype.observe = function(a) { + switch (this.kind) { + case "N": + return a.next && a.next(this.value); + case "E": + return a.error && a.error(this.error); + case "C": + return a.complete && a.complete(); } - if (a.ge) d.vh.cq(a.M, C, 0, -1, function(a) { - var b, c; - if (a.K) { - la.info("VideoCache timed text track served from cache"); - b = ""; - try { - c = new Uint8Array(a.content); - b = p.XB(c); - } catch (Db) { - la.error("failed to utf8 encode timedtext track", Db); - g({ - K: !1, - reason: "parse failed" - }); - return; - } - m(b); - } else la.error("VideoCache failed to get timed text track from cache"), a.reason = "cachefailed", g(a); - }); - else { - la.trace("Downloading", c && { - cdn: c.id - }, H); - f = { - responseType: D ? h.Xs : h.VZa, - url: b, - track: ta, - Ya: c, - Az: "tt-" + N - }; - a.Ys.download(f, function(a) { - a.K ? D ? r(a.content).then(function(a) { - m(a); - })["catch"](function() { - a.K = !1; - a.reason = "decrypt failed"; - a.track = ta; - g(a); - }) : m(a.content) : (a.reason = "downloadfailed", a.url = f.url, a.track = ta, g(a)); - }); + }; + a.prototype.QH = function(a, b, d) { + switch (this.kind) { + case "N": + return a && a(this.value); + case "E": + return b && b(this.error); + case "C": + return d && d(); } + }; + a.prototype.accept = function(a, b, d) { + return a && "function" === typeof a.next ? this.observe(a) : this.QH(a, b, d); + }; + a.Q1 = function(b) { + return "undefined" !== typeof b ? new a("N", b) : a.trb; + }; + a.koa = function(b) { + return new a("E", void 0, b); + }; + a.M1 = function() { + return a.S_a; + }; + a.S_a = new a("C"); + a.trb = new a("N", void 0); + return a; + }(); + d.Notification = g; + }, function(g, d, a) { + var b; + b = this && this.__extends || function(a, b) { + function c() { + this.constructor = a; } - - function ca(b) { - var d, g, h, m, r, f, u, x; - - function c(a) { - var g; - if (k.$a(a)) - if (x || ua(ia(na, "", "image"))) { - x = !1; - B.url = w[na]; - d.url = B.url; - u[a] = (u[a] || 0) + 1; - g = new p.fFa(h, d); - g.on("ready", function() { - wa = g; - b({ - K: !0, - track: ta - }); - }); - g.on("error", function(d) { - var g, h, p; - g = { - success: !1 - }; - for (h in d) g[h] = d[h]; - d = ia(na, B.url, "image"); - d.details = { - midxoffset: B.offset, - midxsize: B.length - }; - d.errorstring = g.errorString; - p = 1E3 * z.ue(z.GJ(2, u[a] - 1), 8); - u[a] <= l.config.W5 ? (ka(d, !0, "retry with current cdn"), setTimeout(function() { - la.trace("retry timed text download after " + p, ia(na, "", "image")); - c(na); - }, p)) : (na = r[f++]) ? (ka(d, !0, "retry with next cdn"), setTimeout(function() { - la.trace("retry timed text download after " + p, ia(na, "", "image")); - c(na); - }, p)) : (ka(d, !1, "all cdns tried"), b({ - K: !1, - msg: "all cdns failed for image subs", - track: ta - })); - }); - g.start(); - } else b({ - K: !1, - Dn: !0 - }); - else b({ - K: !1, - msg: "cdnId is not defined for image subs downloadUrl" - }), ka(ia("", "", "image"), !1, "cdnId is undefined"); - } - d = { - mNa: !1, - profile: O, - rna: B.offset, - sna: B.length, - Qb: a.pc.value || 0, - bufferSize: l.config.g_a, - crypto: t.netflix.crypto, - key: D && p.Pi(D), - Bsb: { - bk: a.XN() - } - }; - g = p.Je(a, "TimedTextTrack"); - g.warn = g.trace.bind(g); - g.info = g.debug.bind(g); - h = G.$Ra(a, g, Z); - m = a.iI.reduce(function(a, b) { - a[b.id] = b; - return a; - }, {}); - r = Object.keys(w).sort(function(a, b) { - return m[a].Fd - m[b].Fd; - }); - f = 0; - u = {}; - x = !0; - na = r[f++]; - c(na); + for (var f in b) b.hasOwnProperty(f) && (a[f] = b[f]); + a.prototype = null === b ? Object.create(b) : (c.prototype = b.prototype, new c()); + }; + g = function(a) { + function c() { + a.apply(this, arguments); + this.xj = []; + this.active = !1; } - - function Z(b, c) { - var g; - la.trace("Downloading", b); - g = { - url: b.url, - offset: b.offset, - length: b.size, - responseType: h.Xs, - headers: {}, - Ya: ea(na) - }; - a.ge ? d.vh.cq(a.M, C, b.offset, b.size, function(a) { - a.K ? (la.info("VideoCache image based timed text track served from cache"), c(null, new Uint8Array(a.content))) : (la.error("VideoCache failed to get image based timed text track from cache"), c({ - errorSubCode: "", - errorExternalCode: "" - })); - }) : a.Ys.download(g, function(a) { - la.trace("imgsub: request status " + a.K); - a.K ? c(null, new Uint8Array(a.content)) : c({ - errorSubCode: a.R, - errorExternalCode: a.ub - }); - }); + b(c, a); + c.prototype.flush = function(a) { + var b, c; + b = this.xj; + if (this.active) b.push(a); + else { + this.active = !0; + do + if (c = a.Cg(a.state, a.od)) break; while (a = b.shift()); + this.active = !1; + if (c) { + for (; a = b.shift();) a.unsubscribe(); + throw c; + } + } + }; + return c; + }(a(984).ZOa); + d.eW = g; + }, function(g, d, a) { + var b, c; + b = this && this.__extends || function(a, b) { + function f() { + this.constructor = a; } - - function ea(b) { - if (a.iI) return a.iI.filter(function(a) { - return a.id == b; - })[0]; + for (var c in b) b.hasOwnProperty(c) && (a[c] = b[c]); + a.prototype = null === b ? Object.create(b) : (f.prototype = b.prototype, new f()); + }; + c = a(79); + g = function(a) { + function d(b, c) { + a.call(this, b, c); + this.ia = b; + this.$J = !1; + this.TL = c; } - - function ia(a, b, c) { - var d; - d = {}; + b(d, a); + d.prototype.nb = function(a, b) { + var f; + void 0 === b && (b = 0); + if (this.closed) return this; + this.state = a; + this.$J = !0; + a = this.id; + f = this.ia; + null != a && (this.id = this.kU(f, a, b)); + this.od = b; + this.id = this.id || this.pU(f, this.id, b); + return this; + }; + d.prototype.pU = function(a, b, d) { + void 0 === d && (d = 0); + return c.root.setInterval(a.flush.bind(a, this), d); + }; + d.prototype.kU = function(a, b, d) { + void 0 === d && (d = 0); + return null !== d && this.od === d && !1 === this.$J ? b : (c.root.clearInterval(b), void 0); + }; + d.prototype.Cg = function(a, b) { + if (this.closed) return Error("executing a cancelled action"); + this.$J = !1; + if (a = this.cO(a, b)) return a; + !1 === this.$J && null != this.id && (this.id = this.kU(this.ia, this.id, null)); + }; + d.prototype.cO = function(a) { + var b, f; + b = !1; + f = void 0; try { - d = { - currentCdnId: a, - url: b, - profile: O, - dlid: C, - subtitletype: c, - bcp47: N, - cdnCount: Object.keys(w).length - }; - } catch (zb) { - la.warn("Error accummulating data", zb); + this.TL(a); + } catch (r) { + b = !0; + f = !!r && r || Error(r); } - return d; - } - - function ka(b, c, d) { - b.willRetry = c; - b.status = d; - a.fireEvent(g.Faa, b); - la.warn("subtitleerror event", b); - } - - function ua(b) { - return 0 <= [g.wu, g.fy].indexOf(a.state.value) ? (la.info("playback is closing, abort timed text retry", b), !1) : a.Fc.value !== ta ? (la.info("timed text track was changed, abort timed text retry", b), !1) : !0; - } - la = p.Je(a, "TimedTextTrack"); - A = c.tFa; - H = { - bcp47: N, - trackId: f, - downloadableId: C - }; - ub = b.pJ(x); - Pa = O && (O == r.uj.Xx || O == r.uj.JJ); - Pa && (H.isImageBased = !0); - ta = { - type: m.nS, - Ab: f, - b6: n, - zP: q, - Q2: O, - ac: C, - Dl: N, - displayName: T, - getEntries: function(a) { - ub(function(b) { - a(b); - }); - }, - ae: function() { - return A; - }, - Zi: H, - W0: Pa, - DXa: function() { - return wa; - }, - Vs: function(a, b) { - var c; - try { - Pa ? c = wa ? wa.Vs(a, b) : void 0 : P && (c = P.filter(function(c) { - var d; - d = c.startTime; - c = c.endTime; - return d >= a && d <= b || d <= a && a <= c; - })); - } catch (Ra) { - la.error("error in getSubtitles", Ra, { - start: a, - end: b, - isImageBased: Pa - }); - } - return c; - }, - Cla: function() { - return ja; - }, - yla: function() { - return V; - }, - HYa: function() { - var a; - if (!k.$a(mb)) { - try { - mb = Pa ? (a = this.Vs(0, 72E7)[0]) && a.displayTime : (a = P[0]) && a.startTime; - } catch (Ba) { - la.error("exception in getStartPts", Ba); - } - } - return mb; - }, - zla: S + if (b) return this.unsubscribe(), f; + }; + d.prototype.ar = function() { + var a, b, c, d; + a = this.id; + b = this.ia; + c = b.xj; + d = c.indexOf(this); + this.state = this.TL = null; + this.$J = !1; + this.ia = null; - 1 !== d && c.splice(d, 1); + null != a && (this.id = this.kU(b, a, null)); + this.od = null; }; - return ta; + return d; + }(a(986).ZCa); + d.dW = g; + }, function(g, d, a) { + function b(a) { + var b; + b = a.Symbol; + "function" === typeof b ? b.observable ? a = b.observable : (a = b("observable"), b.observable = a) : a = "@@observable"; + return a; + } + g = a(79); + d.VEb = b; + d.observable = b(g.root); + d.btb = d.observable; + }, function(g, d, a) { + g = a(79).root.Symbol; + d.rz = "function" === typeof g && "function" === typeof g["for"] ? g["for"]("rxSubscriber") : "@@rxSubscriber"; + d.ctb = d.rz; + }, function(g, d) { + d.empty = { + closed: !0, + next: function() {}, + error: function(a) { + throw a; + }, + complete: function() {} }; - c.Fjb = 10; - c.tFa = 0; - c.Lba = 1; - c.sFa = 2; - c.TU = 3; - }, function(f, c, a) { - var l, g, m, p, r, u, v, z, k, G, x, y; - - function b(a, b, c) { - var r; + }, function(g, d) { + function a() {} + Object.defineProperty(d, "__esModule", { + value: !0 + }); + a.prototype.tsa = function() { + return void 0 !== this.Ck; + }; + a.prototype.gE = function(a) { + this.Ck = a; + }; + a.prototype.Flb = function() { + this.tsa() && (this.Ck = void 0); + }; + d.UX = a; + }, function(g, d) { + Object.defineProperty(d, "__esModule", { + value: !0 + }); + d.TX = "MediaKeysStorageFactorySymbol"; + }, function(g, d, a) { + var h; - function d(a, b) { - a[b.type] = b.id; - return a; - } + function b() {} - function g(a, b) { - var d; - for (var c = 0; c < a.length; c++) { - d = a[c]; - if (d.Ab == b) return d; - } - return null; - } - for (var h = [], p = a.defaultMedia, m = {}, l = 0; l < a.media.length; l++) { - r = a.media[l]; - if (r.mediaId == p) { - m = r.tracks.reduce(d, m); - break; - } - } - h.push({ - gc: g(b, m.AUDIO), - Fc: g(c, m.TEXT), - krb: 0 - }); - return h; + function c(a) { + a ? (this.active = !1, this.P3(a)) : this.active = !0; } - - function d(a) { - a.audio_tracks.forEach(function(a) { - a.track_id = a.new_track_id; - }); - a.video_tracks.forEach(function(a) { - a.track_id = a.new_track_id; + Object.defineProperty(d, "__esModule", { + value: !0 + }); + g = a(0); + a = a(1); + c.prototype.P3 = function(a) { + this.profileId = a.profileId; + this.Yb = a.keySessionData ? a.keySessionData.map(function(a) { + return { + id: a.id, + Zu: a.licenseContextId, + dD: a.licenseId + }; + }) : []; + this.ka = a.xid; + this.R = a.movieId; + }; + c.prototype.aq = function() { + return JSON.parse(JSON.stringify({ + profileId: this.profileId, + keySessionData: this.Yb ? this.Yb.map(function(a) { + return { + id: a.id, + licenseContextId: a.Zu, + licenseId: a.dD + }; + }) : [], + xid: this.ka, + movieId: this.R + })); + }; + d.GW = c; + b.prototype.create = function() { + return new c(); + }; + b.prototype.load = function(a) { + return new c(a); + }; + h = b; + h = g.__decorate([a.N()], h); + d.BGa = h; + }, function(g, d, a) { + var b, c, h, k, f, p, m, r, u; + Object.defineProperty(d, "__esModule", { + value: !0 + }); + g = a(1); + b = a(122); + c = a(463); + h = a(243); + k = a(166); + f = a(1005); + p = a(1004); + m = a(121); + r = a(242); + u = a(241); + d.eme = new g.Vb(function(a) { + a(c.Nca).to(h.BGa).$(); + a(k.mW).to(f.AEa).$(); + a(b.wM).vL(p.okb); + a(m.qw).Gz(function(a) { + d.WH.parent = a.Xb; + return d.WH.get(m.qw); + }); + a(r.TX).ih(function() { + return function() { + return new u.UX(); + }; }); - } - - function h(a, c, d, h, f) { - var n, X, U, q, ca, ea, t, ka, ua, la, A, H; - - function x(a, b) { - return a.filter(function(a) { - if (a.downloadables && 0 < a.downloadables.length) return !0; - b && b(a); - return !1; - }); + }); + d.WH = new g.WE({ + Fv: !0 + }); + }, function(g, d, a) { + var b, c; + Object.defineProperty(d, "__esModule", { + value: !0 + }); + g = a(1); + b = a(65); + c = a(1006); + d.vh = new g.Vb(function(a) { + a(b.lq).vL(c.nkb); + }); + d.R_ = new g.WE({ + Fv: !0 + }); + }, function(g, d, a) { + var b; + Object.defineProperty(d, "__esModule", { + value: !0 + }); + b = a(247); + a(467); + g = function() { + function a(a) { + this.ub = a; } - - function y(a, b, c) { - var d, g, h; - d = p.config.QOa; - g = p.config.POa; - h = []; - a && a.forEach(function(a) { - var c, p; - c = a.id; - p = b ? b.find(function(b) { - return b.id === a.locationId; - }) : void 0; - (!d.length || 0 <= d.indexOf(c)) && 0 > g.indexOf(c) && h.push({ - id: a.id, - name: a.name, - Fd: a.rank, - type: a.type, - kpb: a.isLowgrade, - kA: a.isExclusive, - D1: a.locationId, - location: p ? { - id: p.id, - Fd: p.rank, - level: p.level, - weight: p.weight, - Ej: [] - } : {} - }); - }); - h.sort(function(a, b) { - return a.Fd - b.Fd; - }); - h.forEach(function(a) { - return a.location.Ej = h.filter(function(b) { - return b.D1 === a.D1; - }); - }); - n.trace("Transformed cdns", { - Count: h.length - }); - if (c && !h.length) throw Error("no valid cdns"); - return h; + a.prototype.SL = function() { + this.ub.PB = function(a) { + return null !== a.target && !a.target.V5() && !a.target.Z5(); + }; + return new b.jW(this.ub); + }; + return a; + }(); + d.kW = g; + }, function(g, d, a) { + var b; + Object.defineProperty(d, "__esModule", { + value: !0 + }); + b = a(246); + g = function() { + function a(a) { + this.ub = a; } + a.prototype.Lp = function(a) { + this.ub.Lp = a; + return new b.kW(this.ub); + }; + return a; + }(); + d.jW = g; + }, function(g, d, a) { + var k; - function w(a, b) { - var c; - c = []; - if (!a) return n.warn("There are no media streams for " + b.type + " track - " + b.Ab), c; - a.forEach(function(a) { - var g; - g = new r.bva(d, b, b.type, a.downloadableId, a.bitrate, a.vmaf, a.size, a.urls, a.contentProfile, a.frameRate / a.frameRateScale); - g.S9a(a.width, a.height); - g.u9a(a.cropParamsX, a.cropParamsY, a.cropParamsWidth, a.cropParamsHeight); - a.decryptionKey && (g.Pha = a.decryptionKey); - b.Is && (g.Is = b.Is); - if (b.type === r.ar || b.type === r.$q) X = X ? k.ue(X, a.validFor) : a.validFor; - b.kia && (g.kia = b.kia.map(function(a) { - var b; - b = {}; - b.htb = a.systemType; - a.bytes && (b.ga = a.bytes); - a.checksum && (b.Flb = a.checksum); - a.keyId && (b.NO = a.keyId); - return b; - })); - a.contentProfile && (g.le = a.contentProfile); - g.x4 = !(!a.hdcpVersions || "none" == a.hdcpVersions[0]); - g.x4 && "never" == p.config.DOa || c.push(g); - }); - c.sort(function(a, b) { - return a.J - b.J; - }); - r.WI(c); - c.sort(function(a, b) { - return a.J - b.J; - }); - r.WI(c); - return c; - } - - function C(b, c) { - return N(b, c, a.orderedAudioTracks); - } - - function F(b, c) { - return N(b, c, a.orderedTextTracks); - } - - function N(a, b, c) { - return c ? a ? b ? c.indexOf(a.displayName + ("CLOSEDCAPTIONS" === a.zP ? " [CC]" : "")) - c.indexOf(b.displayName + ("CLOSEDCAPTIONS" === b.zP ? " [CC]" : "")) : 1 : -1 : 0; - } - - function T(a, b) { - var c; - c = 0; - a.some(function(a, d) { - return a.track_id == b ? (c = d, !0) : !1; - }); - return c; - } - n = v.Je(d, "ParseManifest"); - X = 0; - U = y(a.cdns, a.locations, !0); - q = y(a.timedTextCdns, void 0, !1); - ca = function() { - var b, c; - b = x(a.trickPlayTracks); - c = []; - 0 < b.length ? (b = b[0].downloadables) && (c = b.map(function(a) { - return new g.AFa(d, a.id, a.resHeight, a.resWidth, a.pixHeight, a.pixWidth, a.size, a.urls, a.downloadableId); - })) : n.warn("There are no trickplay tracks"); - c.sort(function(a, b) { - return a.size - b.size; - }); - n.trace("Transformed trick play tracks", { - Count: c.length - }); - return c; - }(); - ea = function() { - var r; - - function b(a) { - var b; - a = a.downloadables; - b = []; - if (!a || 0 === a.length) return b; - a.forEach(function(a) { - var c, d, g; - c = a.contentProfile; - d = p.config.LB.indexOf(c); - g = a.size; - c = { - id: a.id, - ac: a.downloadableId, - profile: a.contentProfile, - size: a.size || 0, - Vc: 0 < p.config.DR && c === z.uj.vS && g > p.config.DR ? p.config.LB.length + 1 : 0 <= d ? d : p.config.LB.length, - offset: a.offset || 0, - n5a: a.pixWidth, - Roa: a.pixHeight, - ag: a.urls, - type: a.type - }; - a.decryptionKey && (c.Pha = a.decryptionKey); - b.push(c); - }); - b.sort(function(a, b) { - return a.Vc - b.Vc; - }); - return b; - } - - function c(a) { - var b, c; - b = p.config.h_a || g(); - c = a.filter(function(a) { - return a.profile === z.uj.Xx || a.profile === z.uj.JJ; - }).filter(function(a) { - return a.Roa === b; - })[0]; - if (c) return c; - n.warn("none of the downloadables match the intended resolution", { - screenHeight: k.dm.height, - intendedResolution: b - }); - return a[0]; - } - - function g() { - var a; - a = k.dm && k.dm.height; - if (G.da(a)) return 1080 <= a ? 1080 : 720; - n.error("screen height not available", k.Ug); - return 720; - } - - function h(a) { - try { - return { - isNone: a.isNone, - isForced: a.isForced, - bcp47: a.bcp47, - id: a.id - }; - } catch (ta) {} - } - r = []; - a.textTracks.forEach(function(a) { - var g, p, f; - f = b(a); - !1 !== a.isNone || f.length || n.error("track without downloadables", h(a)); - !0 !== a.isForced || f.length || n.error("forced track without downloadables", h(a)); - if (0 < f.length) { - g = f[0]; - p = g.profile; - if (p == z.uj.Xx || p == z.uj.JJ) g = c(f); - p = g.profile === z.uj.Xx || g.profile === z.uj.JJ ? { - offset: g.offset, - length: g.size, - gsb: { - width: g.n5a, - height: g.Roa - } - } : void 0; - a = l.SU(d, a.id, g.ac, g.ag, a.bcp47, a.language, m.UU[a.trackType.toLowerCase()] || m.Eu, a.trackType, g.profile, p, a.isNone, a.isForced, g.Pha, a.isLanguageLeftToRight); - } else a = l.SU(d, a.id, void 0, {}, a.bcp47, a.language, m.Eu, a.trackType, void 0, {}, a.isNone, a.isForced, void 0, a.isLanguageLeftToRight); - r.push(a); - n.trace("Transformed timed text track", a); - }); - r.sort(F); - n.trace("Transformed timed text tracks", { - Count: r.length - }); - return r; - }(); - t = function(b, c) { - var g, h; + function b(a, b, c, d, g, k, h) { + this.LL = d; + this.zCa = a; + this.bwa = b; + this.L7 = c; + this.Lcb = k; + this.Bv = h; + this.split = g; + } - function d(a, b, c) { - return b.filter(function(b) { - return 0 < b.tracks.filter(function(b) { - return "AUDIO" === b.type && b.id === a; - }).length; - }).map(function(a) { - var b; - b = a.tracks.filter(function(a) { - return "TEXT" === a.type; - })[0]; - a = c.filter(function(a) { - return a.Ab === b.id; - }); - return 0 < a.length ? a[0] : void 0; - }).filter(Boolean).sort(F); - } - g = x(a.audioTracks, function(a) { - n.warn("Audio track is missing downloadables", { - language: a.language, - bcp47: a.bcp47 - }); - }); - h = []; - g && g.forEach(function(a) { - var g; - g = a.trackType; - if (0 === p.config.Qra.length || 0 <= p.config.Qra.indexOf(g)) g = { - type: r.$q, - Ab: a.id, - b6: m.UU[g.toLowerCase()] || m.Eu, - zP: g, - Dl: a.bcp47, - displayName: a.language, - kz: a.channels, - Blb: a.channelsLabel, - Alb: a.channelsCount, - Ym: d(a.id, b, c), - Hpb: { - Bcp47: a.language, - TrackId: a.id - }, - Db: [] - }, g.Db = w(a.downloadables, g), n.trace("Transformed audio track", g, { - StreamCount: g.Db.length, - AllowedTimedTextTracks: g.Ym.length - }), g.Db.length ? (g.iPa = m.bNa[g.Db[0].le], h.push(g)) : n.warn("Audio track has no streams", g); - }); - if (!h.length) throw Error("no valid audio tracks"); - h.sort(C); - n.trace("Transformed audio tracks", { - Count: h.length - }); - return h; - }(a.media, ea); - ka = function() { - var b, c; - b = x(a.videoTracks, function(a) { - n.warn("Video track is missing downloadables", { - trackId: a.id - }); - }); - c = []; - b && b.forEach(function(a) { - var b; - b = a.trackType; - b = { - type: r.ar, - Ab: a.id, - b6: m.UU[b.toLowerCase()] || m.Eu, - zP: b, - Db: [] - }; - b.Db = w(a.downloadables, b); - n.trace("Transformed video track", { - StreamCount: b.Db.length - }); - b.Db.length ? c.push(b) : n.warn("Video track has no streams"); - }); - if (!c.length) throw Error("No valid video tracks"); - n.trace("Transformed video tracks", { - Count: c.length - }); - return c; - }(); - ua = b(a, t, ea); - la = ua[0] || {}; - A = ka[0]; - H = function(a) { - if (p.config.t_) { - if ((a = a.filter(function(a) { - return a.Dl == p.config.t_ || a.Ab == p.config.t_; - })) && a.length) return a[0]; - } else if (h && (a = a.filter(function(a) { - return a.Ab == h; - })) && a.length) return a[0]; - }(t) || la.gc || t[0]; - la = function(a) { - if (p.config.JN) { - if ((a = a.filter(function(a) { - return a ? a.Dl == p.config.JN || a.Ab == p.config.JN : "none" == p.config.JN.toLowerCase(); - })) && a.length) return a[0]; - } else if (f && (a = a.filter(function(a) { - return a.Ab == f; - })) && a.length) return a[0]; - }(H.Ym) || la.Fc || H.Ym[0]; - d.ZA = a.psshb64; - d.Ej = U; - d.iI = 0 < q.length ? q : U; - d.js = t; - d.EI = ka; - d.Ym = ea; - d.vx = ca; - d.Dc = c.playbackContextId; - d.o9a = c.clientIpAddress; - d.knb = c.duration; - d.rm = 1E3 * c.bookmark; - d.g1 = c.hasDrmStreams; - d.Is = c.drmContextId; - d.DSa = T(c.audio_tracks, H.Ab); - d.JSa = T(c.video_tracks, A.Ab); - d.Sa = c; - d.lrb = ua; - d.Ud.set(A); - d.gc.set(H); - d.Fc.set(la); - c = 1E3 * X; - 1E4 < c ? (a.willExpireOn || ("undefined" === typeof a.clientGenesis && (a.clientGenesis = Date.now()), U = a.clientGenesis - u.Rga(), a.willExpireOn = U + c), d.Ppb = a.willExpireOn) : d.ge || a.pboExpiration || n.error("Invalid url expiration, ignoring"); - } - Object.defineProperty(c, "__esModule", { - value: !0 - }); - l = a(186); - g = a(185); - m = a(6); - p = a(4); - r = a(73); - u = a(17); - v = a(3); - z = a(64); - k = a(5); - G = a(15); - x = a(144); - y = a(104); - c.S4a = b; - c.R4a = function(a, b, c, d) { - var g; - g = v.Z.get(x.BC).decode(a); - h(a, g, b, c, d); - }; - c.G4a = function(a, b, c, g) { - var p; - p = v.Z.get(y.ey); - a.mt = p(); - a.mt.bE(a.links); - d(a); - p = v.Z.get(x.BC).encode(a); - h(p, a, b, c, g); - }; - }, function(f, c, a) { - var b, d, h, l, g, m, p, r; - Object.defineProperty(c, "__esModule", { - value: !0 - }); - f = a(18); - b = a(28); - d = a(4); - h = a(6); - l = a(17); - g = a(2); - m = a(3); - p = a(289); - r = a(27); - f.Dd(g.v.s9, function(a) { - var g; - g = m.Z.get(r.lf); - d.config.hN && (c.Ev = new p.YI({ - tX: g.endpoint + d.config.zPa, - Za: b.Za, - Na: { - aO: l.On - }, - uP: 600, - log: m.Cc("Congestion") - })); - a(h.cb); - }); - }, function(f, c, a) { - var b, d, h, l; - Object.defineProperty(c, "__esModule", { - value: !0 - }); - f = a(18); - b = a(6); - d = a(3); - h = a(146); - l = a(7); - a = a(2); - f.Dd(a.v.e9, function(a) { - var g; - g = d.Z.get(h.iJ); - c.JG = { - Ipb: g.xA, - f3: g.f3, - a9a: g.S8a, - s0: g.Oka.qa(l.Ma) + function c() { + this.J = {}; + this.J["0"] = new b("1", "2", "1", "14", "-0.0000100136", 0, 0); + this.J["1"] = new b("3", "4", "3", "20", "-0.0000100136", 0, 0); + this.J["3"] = new b("7", "8", "7", "10", "1.5", 0, 0); + this.J["7"] = new b("15", "16", "15", "9", "4.5", 0, 0); + this.J["15"] = new b("31", "32", "31", "2", "5.5", 0, 0); + this.J["31"] = new b("63", "64", "63", "29", "-0.0000100136", 0, 0); + this.J["63"] = new b("123", "124", "123", "24", "-0.0000100136", 0, 0); + this.J["123"] = new b("123", "124", "123", "0", "0", 1, .207298); + this.J["124"] = new b("123", "124", "123", "0", "0", 1, .49076); + this.J["64"] = new b("125", "126", "125", "4", "40.5", 0, 0); + this.J["125"] = new b("125", "126", "125", "0", "0", 1, -.00157835); + this.J["126"] = new b("125", "126", "125", "0", "0", 1, .934205); + this.J["32"] = new b("65", "66", "65", "135", "5.5", 0, 0); + this.J["65"] = new b("127", "128", "128", "4", "1272.5", 0, 0); + this.J["127"] = new b("127", "128", "128", "0", "0", 1, -.510333); + this.J["128"] = new b("127", "128", "128", "0", "0", 1, .18363); + this.J["66"] = new b("129", "130", "129", "24", "-0.0000100136", 0, 0); + this.J["129"] = new b("129", "130", "129", "0", "0", 1, -.0464542); + this.J["130"] = new b("129", "130", "129", "0", "0", 1, .458833); + this.J["16"] = new b("33", "34", "34", "10", "2.00001", 0, 0); + this.J["33"] = new b("67", "68", "67", "0", "29.5", 0, 0); + this.J["67"] = new b("131", "132", "131", "2", "39.5", 0, 0); + this.J["131"] = new b("131", "132", "131", "0", "0", 1, -.37577); + this.J["132"] = new b("131", "132", "131", "0", "0", 1, .512087); + this.J["68"] = new b("133", "134", "134", "140", "1.5", 0, 0); + this.J["133"] = new b("133", "134", "134", "0", "0", 1, .321272); + this.J["134"] = new b("133", "134", "134", "0", "0", 1, -.675396); + this.J["34"] = new b("69", "70", "70", "2", "24.5", 0, 0); + this.J["69"] = new b("135", "136", "136", "9", "28.5", 0, 0); + this.J["135"] = new b("135", "136", "136", "0", "0", 1, -.0573845); + this.J["136"] = new b("135", "136", "136", "0", "0", 1, -.507455); + this.J["70"] = new b("137", "138", "137", "45", "-0.0000100136", 0, 0); + this.J["137"] = new b("137", "138", "137", "0", "0", 1, -.503909); + this.J["138"] = new b("137", "138", "137", "0", "0", 1, .450886); + this.J["8"] = new b("17", "18", "17", "4", "44189.5", 0, 0); + this.J["17"] = new b("35", "36", "35", "2", "21.5", 0, 0); + this.J["35"] = new b("71", "72", "72", "0", "19.5", 0, 0); + this.J["71"] = new b("139", "140", "140", "9", "2.5", 0, 0); + this.J["139"] = new b("139", "140", "140", "0", "0", 1, .00403497); + this.J["140"] = new b("139", "140", "140", "0", "0", 1, -.312656); + this.J["72"] = new b("141", "142", "141", "135", "96", 0, 0); + this.J["141"] = new b("141", "142", "141", "0", "0", 1, -.465786); + this.J["142"] = new b("141", "142", "141", "0", "0", 1, .159633); + this.J["36"] = new b("73", "74", "73", "130", "89.5", 0, 0); + this.J["73"] = new b("143", "144", "144", "10", "4.5", 0, 0); + this.J["143"] = new b("143", "144", "144", "0", "0", 1, -.76265); + this.J["144"] = new b("143", "144", "144", "0", "0", 1, -.580804); + this.J["74"] = new b("145", "146", "146", "10", "16.5", 0, 0); + this.J["145"] = new b("145", "146", "146", "0", "0", 1, .296357); + this.J["146"] = new b("145", "146", "146", "0", "0", 1, -.691659); + this.J["18"] = new b("37", "38", "38", "9", "1.5", 0, 0); + this.J["37"] = new b("37", "38", "38", "0", "0", 1, .993951); + this.J["38"] = new b("75", "76", "75", "0", "19", 0, 0); + this.J["75"] = new b("147", "148", "147", "39", "-0.0000100136", 0, 0); + this.J["147"] = new b("147", "148", "147", "0", "0", 1, -.346535); + this.J["148"] = new b("147", "148", "147", "0", "0", 1, -.995745); + this.J["76"] = new b("147", "148", "147", "0", "0", 1, -.99978); + this.J["4"] = new b("9", "10", "9", "5", "4.5", 0, 0); + this.J["9"] = new b("19", "20", "19", "2", "4.5", 0, 0); + this.J["19"] = new b("39", "40", "39", "140", "7.5", 0, 0); + this.J["39"] = new b("77", "78", "78", "134", "6.5", 0, 0); + this.J["77"] = new b("149", "150", "150", "7", "11.5", 0, 0); + this.J["149"] = new b("149", "150", "150", "0", "0", 1, .729843); + this.J["150"] = new b("149", "150", "150", "0", "0", 1, .383857); + this.J["78"] = new b("151", "152", "151", "133", "4.5", 0, 0); + this.J["151"] = new b("151", "152", "151", "0", "0", 1, .39017); + this.J["152"] = new b("151", "152", "151", "0", "0", 1, .0434342); + this.J["40"] = new b("79", "80", "79", "133", "3.5", 0, 0); + this.J["79"] = new b("153", "154", "154", "8", "4.5", 0, 0); + this.J["153"] = new b("153", "154", "154", "0", "0", 1, -.99536); + this.J["154"] = new b("153", "154", "154", "0", "0", 1, -.00943396); + this.J["80"] = new b("155", "156", "155", "125", "-0.0000100136", 0, 0); + this.J["155"] = new b("155", "156", "155", "0", "0", 1, .266272); + this.J["156"] = new b("155", "156", "155", "0", "0", 1, .959904); + this.J["20"] = new b("41", "42", "42", "10", "65.5", 0, 0); + this.J["41"] = new b("81", "82", "82", "7", "10.5", 0, 0); + this.J["81"] = new b("157", "158", "158", "2", "37.5", 0, 0); + this.J["157"] = new b("157", "158", "158", "0", "0", 1, -.701873); + this.J["158"] = new b("157", "158", "158", "0", "0", 1, .224649); + this.J["82"] = new b("159", "160", "159", "133", "9.5", 0, 0); + this.J["159"] = new b("159", "160", "159", "0", "0", 1, .0955181); + this.J["160"] = new b("159", "160", "159", "0", "0", 1, -.58962); + this.J["42"] = new b("83", "84", "83", "39", "-0.0000100136", 0, 0); + this.J["83"] = new b("161", "162", "161", "135", "31", 0, 0); + this.J["161"] = new b("161", "162", "161", "0", "0", 1, -.229692); + this.J["162"] = new b("161", "162", "161", "0", "0", 1, .88595); + this.J["84"] = new b("163", "164", "164", "1", "13.5", 0, 0); + this.J["163"] = new b("163", "164", "164", "0", "0", 1, -.992157); + this.J["164"] = new b("163", "164", "164", "0", "0", 1, .922159); + this.J["10"] = new b("21", "22", "22", "4", "486", 0, 0); + this.J["21"] = new b("43", "44", "44", "133", "4.5", 0, 0); + this.J["43"] = new b("85", "86", "86", "10", "4.5", 0, 0); + this.J["85"] = new b("165", "166", "166", "4", "158.5", 0, 0); + this.J["165"] = new b("165", "166", "166", "0", "0", 1, -.127778); + this.J["166"] = new b("165", "166", "166", "0", "0", 1, .955189); + this.J["86"] = new b("165", "166", "166", "0", "0", 1, -.994012); + this.J["44"] = new b("87", "88", "88", "1", "3.5", 0, 0); + this.J["87"] = new b("167", "168", "168", "135", "7", 0, 0); + this.J["167"] = new b("167", "168", "168", "0", "0", 1, -.997015); + this.J["168"] = new b("167", "168", "168", "0", "0", 1, .400821); + this.J["88"] = new b("169", "170", "169", "130", "36", 0, 0); + this.J["169"] = new b("169", "170", "169", "0", "0", 1, -.898638); + this.J["170"] = new b("169", "170", "169", "0", "0", 1, .56129); + this.J["22"] = new b("45", "46", "45", "9", "2.5", 0, 0); + this.J["45"] = new b("89", "90", "90", "9", "1.5", 0, 0); + this.J["89"] = new b("171", "172", "171", "10", "10.5", 0, 0); + this.J["171"] = new b("171", "172", "171", "0", "0", 1, .573986); + this.J["172"] = new b("171", "172", "171", "0", "0", 1, -.627266); + this.J["90"] = new b("173", "174", "173", "31", "-0.0000100136", 0, 0); + this.J["173"] = new b("173", "174", "173", "0", "0", 1, .925273); + this.J["174"] = new b("173", "174", "173", "0", "0", 1, -.994805); + this.J["46"] = new b("91", "92", "91", "136", "5.5", 0, 0); + this.J["91"] = new b("175", "176", "175", "10", "10.5", 0, 0); + this.J["175"] = new b("175", "176", "175", "0", "0", 1, .548352); + this.J["176"] = new b("175", "176", "175", "0", "0", 1, -.879195); + this.J["92"] = new b("177", "178", "178", "8", "14.5", 0, 0); + this.J["177"] = new b("177", "178", "178", "0", "0", 1, .457305); + this.J["178"] = new b("177", "178", "178", "0", "0", 1, -.998992); + this.J["2"] = new b("5", "6", "5", "10", "2.5", 0, 0); + this.J["5"] = new b("11", "12", "11", "9", "4.5", 0, 0); + this.J["11"] = new b("23", "24", "24", "10", "4.00001", 0, 0); + this.J["23"] = new b("47", "48", "48", "133", "5.5", 0, 0); + this.J["47"] = new b("93", "94", "93", "3", "13.5", 0, 0); + this.J["93"] = new b("179", "180", "179", "138", "15.5", 0, 0); + this.J["179"] = new b("179", "180", "179", "0", "0", 1, .658398); + this.J["180"] = new b("179", "180", "179", "0", "0", 1, -.927007); + this.J["94"] = new b("181", "182", "182", "3", "15.5", 0, 0); + this.J["181"] = new b("181", "182", "182", "0", "0", 1, -.111351); + this.J["182"] = new b("181", "182", "182", "0", "0", 1, -.99827); + this.J["48"] = new b("95", "96", "95", "7", "167", 0, 0); + this.J["95"] = new b("183", "184", "183", "132", "36.5", 0, 0); + this.J["183"] = new b("183", "184", "183", "0", "0", 1, .895161); + this.J["184"] = new b("183", "184", "183", "0", "0", 1, -.765217); + this.J["96"] = new b("185", "186", "186", "137", "6.00001", 0, 0); + this.J["185"] = new b("185", "186", "186", "0", "0", 1, -.851095); + this.J["186"] = new b("185", "186", "186", "0", "0", 1, .674286); + this.J["24"] = new b("49", "50", "49", "137", "5.5", 0, 0); + this.J["49"] = new b("97", "98", "97", "5", "23.5", 0, 0); + this.J["97"] = new b("187", "188", "187", "3", "28.5", 0, 0); + this.J["187"] = new b("187", "188", "187", "0", "0", 1, .951654); + this.J["188"] = new b("187", "188", "187", "0", "0", 1, -.993808); + this.J["98"] = new b("187", "188", "187", "0", "0", 1, -.99705); + this.J["50"] = new b("187", "188", "187", "0", "0", 1, -.997525); + this.J["12"] = new b("25", "26", "25", "8", "8.5", 0, 0); + this.J["25"] = new b("51", "52", "52", "10", "4.00001", 0, 0); + this.J["51"] = new b("99", "100", "100", "133", "5.5", 0, 0); + this.J["99"] = new b("189", "190", "190", "7", "40.5", 0, 0); + this.J["189"] = new b("189", "190", "190", "0", "0", 1, .151839); + this.J["190"] = new b("189", "190", "190", "0", "0", 1, -.855517); + this.J["100"] = new b("191", "192", "192", "133", "14.5", 0, 0); + this.J["191"] = new b("191", "192", "192", "0", "0", 1, .86223); + this.J["192"] = new b("191", "192", "192", "0", "0", 1, .544394); + this.J["52"] = new b("101", "102", "101", "135", "47.5", 0, 0); + this.J["101"] = new b("193", "194", "194", "4", "24.5", 0, 0); + this.J["193"] = new b("193", "194", "194", "0", "0", 1, .946185); + this.J["194"] = new b("193", "194", "194", "0", "0", 1, .811859); + this.J["102"] = new b("193", "194", "194", "0", "0", 1, -.991561); + this.J["26"] = new b("53", "54", "54", "132", "6.5", 0, 0); + this.J["53"] = new b("103", "104", "103", "131", "85", 0, 0); + this.J["103"] = new b("195", "196", "196", "134", "16.5", 0, 0); + this.J["195"] = new b("195", "196", "196", "0", "0", 1, .0473538); + this.J["196"] = new b("195", "196", "196", "0", "0", 1, -.999401); + this.J["104"] = new b("197", "198", "198", "8", "15.5", 0, 0); + this.J["197"] = new b("197", "198", "198", "0", "0", 1, .816129); + this.J["198"] = new b("197", "198", "198", "0", "0", 1, -.99322); + this.J["54"] = new b("105", "106", "105", "133", "3.5", 0, 0); + this.J["105"] = new b("105", "106", "105", "0", "0", 1, -.998783); + this.J["106"] = new b("199", "200", "199", "39", "-0.0000100136", 0, 0); + this.J["199"] = new b("199", "200", "199", "0", "0", 1, .528588); + this.J["200"] = new b("199", "200", "199", "0", "0", 1, -.998599); + this.J["6"] = new b("13", "14", "14", "10", "7.5", 0, 0); + this.J["13"] = new b("27", "28", "28", "133", "7.5", 0, 0); + this.J["27"] = new b("55", "56", "56", "10", "4.5", 0, 0); + this.J["55"] = new b("107", "108", "107", "3", "3.5", 0, 0); + this.J["107"] = new b("201", "202", "201", "4", "17.5", 0, 0); + this.J["201"] = new b("201", "202", "201", "0", "0", 1, -.379512); + this.J["202"] = new b("201", "202", "201", "0", "0", 1, .15165); + this.J["108"] = new b("203", "204", "203", "57", "-0.0000100136", 0, 0); + this.J["203"] = new b("203", "204", "203", "0", "0", 1, -.884606); + this.J["204"] = new b("203", "204", "203", "0", "0", 1, .265406); + this.J["56"] = new b("109", "110", "109", "136", "6.5", 0, 0); + this.J["109"] = new b("205", "206", "205", "4", "157.5", 0, 0); + this.J["205"] = new b("205", "206", "205", "0", "0", 1, -.0142737); + this.J["206"] = new b("205", "206", "205", "0", "0", 1, .691279); + this.J["110"] = new b("205", "206", "205", "0", "0", 1, -.998086); + this.J["28"] = new b("57", "58", "58", "138", "11.5", 0, 0); + this.J["57"] = new b("111", "112", "112", "2", "6.5", 0, 0); + this.J["111"] = new b("207", "208", "208", "7", "67.5", 0, 0); + this.J["207"] = new b("207", "208", "208", "0", "0", 1, .763925); + this.J["208"] = new b("207", "208", "208", "0", "0", 1, -.309645); + this.J["112"] = new b("209", "210", "209", "40", "-0.0000100136", 0, 0); + this.J["209"] = new b("209", "210", "209", "0", "0", 1, -.306635); + this.J["210"] = new b("209", "210", "209", "0", "0", 1, .556696); + this.J["58"] = new b("113", "114", "113", "138", "50.5", 0, 0); + this.J["113"] = new b("211", "212", "212", "8", "25.5", 0, 0); + this.J["211"] = new b("211", "212", "212", "0", "0", 1, .508234); + this.J["212"] = new b("211", "212", "212", "0", "0", 1, .793551); + this.J["114"] = new b("211", "212", "212", "0", "0", 1, -.998438); + this.J["14"] = new b("29", "30", "29", "134", "27.5", 0, 0); + this.J["29"] = new b("59", "60", "60", "7", "17.5", 0, 0); + this.J["59"] = new b("115", "116", "115", "135", "5.5", 0, 0); + this.J["115"] = new b("213", "214", "214", "137", "5.5", 0, 0); + this.J["213"] = new b("213", "214", "214", "0", "0", 1, .401747); + this.J["214"] = new b("213", "214", "214", "0", "0", 1, .0367503); + this.J["116"] = new b("215", "216", "216", "8", "5.5", 0, 0); + this.J["215"] = new b("215", "216", "216", "0", "0", 1, -.0241984); + this.J["216"] = new b("215", "216", "216", "0", "0", 1, -.999046); + this.J["60"] = new b("117", "118", "117", "0", "12.5", 0, 0); + this.J["117"] = new b("217", "218", "218", "132", "5.5", 0, 0); + this.J["217"] = new b("217", "218", "218", "0", "0", 1, -.997294); + this.J["218"] = new b("217", "218", "218", "0", "0", 1, .210398); + this.J["118"] = new b("219", "220", "219", "137", "1.5", 0, 0); + this.J["219"] = new b("219", "220", "219", "0", "0", 1, -.55763); + this.J["220"] = new b("219", "220", "219", "0", "0", 1, .074493); + this.J["30"] = new b("61", "62", "62", "133", "42.5", 0, 0); + this.J["61"] = new b("119", "120", "119", "135", "5.5", 0, 0); + this.J["119"] = new b("221", "222", "222", "4", "473.5", 0, 0); + this.J["221"] = new b("221", "222", "222", "0", "0", 1, -.920213); + this.J["222"] = new b("221", "222", "222", "0", "0", 1, -.17615); + this.J["120"] = new b("223", "224", "224", "5", "144", 0, 0); + this.J["223"] = new b("223", "224", "224", "0", "0", 1, -.954295); + this.J["224"] = new b("223", "224", "224", "0", "0", 1, -.382538); + this.J["62"] = new b("121", "122", "121", "133", "50", 0, 0); + this.J["121"] = new b("225", "226", "226", "10", "18.5", 0, 0); + this.J["225"] = new b("225", "226", "226", "0", "0", 1, -.0731343); + this.J["226"] = new b("225", "226", "226", "0", "0", 1, .755454); + this.J["122"] = new b("227", "228", "228", "0", "30", 0, 0); + this.J["227"] = new b("227", "228", "228", "0", "0", 1, .25); + this.J["228"] = new b("227", "228", "228", "0", "0", 1, -.997101); + } + + function h(a, b, c, d, g, k) { + this.wU = g; + this.XP = k; + } + d = a(279); + k = a(171); + a = {}; + a.jYa = new function() { + this.dSa = k(); + this.o = 0; + this.update = function() { + this.o = k() - this.dSa; }; - a(b.cb); - }); - }, function(f, c, a) { - var b, d, h, l, g, m, p, r, u, v, z, k, G, x, y, C; - Object.defineProperty(c, "__esModule", { - value: !0 - }); - b = a(18); - d = a(136); - h = a(90); - l = a(4); - g = a(6); - m = a(91); - f = a(36); - p = a(2); - r = a(8); - u = a(3); - v = a(95); - z = a(58); - k = a(56); - G = a(19); - x = a(5); - y = a(15); - C = a(25); - c.Tk = {}; - t._cad_global || (t._cad_global = {}); - t._cad_global.msl = c.Tk; - f.g$ && b.Dd(p.v.c9, function(a) { - var n, q, B, ja, V, D, S, da, X, U, ha, ba, ea, ia; - - function f(c) { - c && c.userList && l.config.X9a && (c.userList = []); - ja({ - esn: h.Bg.$d, - esnPrefix: h.Bg.zm, - authenticationType: l.config.jE, - authenticationKeyNames: l.config.aga, - systemKeyWrapFormat: l.config.Bab, - serverIdentityId: "MSL_TRUSTED_NETWORK_SERVER_KEY", - serverIdentityKeyData: ea, - storeState: c, - notifyMilestone: b.lG, - log: S, - ErrorSubCodes: { - MSL_REQUEST_TIMEOUT: p.u.k$, - MSL_READ_TIMEOUT: p.u.Tza + this.getValue = function() { + return this.o; + }; + this.type = "num"; + }(); + a.qdb = new function() { + this.getValue = function(a, b, c) { + return this.o = "becauseYouAdded" === c.xa[a].context || null; + }; + this.type = "cat"; + }(); + a.rdb = new function() { + this.getValue = function(a, b, c) { + return this.o = "becauseYouLiked" === c.xa[a].context || null; + }; + this.type = "cat"; + }(); + a.tdb = new function() { + this.getValue = function(a, b, c) { + return this.o = "billboard" === c.xa[a].context || null; + }; + this.type = "cat"; + }(); + a.udb = new function() { + this.getValue = function(a, b, c) { + return this.o = "continueWatching" === c.xa[a].context || null; + }; + this.type = "cat"; + }(); + a.sdb = new function() { + this.getValue = function(a, b, c) { + return this.o = "bigRow" === c.xa[a].context || null; + }; + this.type = "cat"; + }(); + a.vdb = new function() { + this.getValue = function(a, b, c) { + return this.o = "genre" === c.xa[a].context || null; + }; + this.type = "cat"; + }(); + a.wdb = new function() { + this.getValue = function(a, b, c) { + return this.o = "netflixOriginals" === c.xa[a].context || null; + }; + this.type = "cat"; + }(); + a.xdb = new function() { + this.getValue = function(a, b, c) { + return this.o = "newRelease" === c.xa[a].context || null; + }; + this.type = "cat"; + }(); + a.ydb = new function() { + this.getValue = function(a, b, c) { + return this.o = "popularTitles" === c.xa[a].context || null; + }; + this.type = "cat"; + }(); + a.zdb = new function() { + this.getValue = function(a, b, c) { + return this.o = "queue" === c.xa[a].context || null; + }; + this.type = "cat"; + }(); + a.Adb = new function() { + this.getValue = function(a, b, c) { + return this.o = "recentlyAdded" === c.xa[a].context || null; + }; + this.type = "cat"; + }(); + a.Bdb = new function() { + this.getValue = function(a, b, c) { + return this.o = "similars" === c.xa[a].context || null; + }; + this.type = "cat"; + }(); + a.Ddb = new function() { + this.getValue = function(a, b, c) { + return this.o = "trendingNow" === c.xa[a].context || null; + }; + this.type = "cat"; + }(); + a.Edb = new function() { + this.getValue = function(a, b, c) { + return this.o = "ultraHD" === c.xa[a].context || null; + }; + this.type = "cat"; + }(); + a.Fdb = new function() { + this.getValue = function(a, b, c) { + return this.o = "watchAgain" === c.xa[a].context || null; + }; + this.type = "cat"; + }(); + a.Cdb = new function() { + this.getValue = function(a, b, c) { + return this.o = "topTen" === c.xa[a].context || null; + }; + this.type = "cat"; + }(); + a.MYa = new function() { + this.update = function(a) { + for (var b in a.xa) + if ("becauseYouAdded" === a.xa[b].context) { + this.o = Math.max(a.xa[b].list.length, this.o); + break; } - }, { - result: function(a) { - w(a); - }, - timeout: function() { - a({ - R: p.u.j$ - }); - }, - error: function(b) { - a(F(p.u.j$, void 0, b)); + }; + this.getValue = function() { + return this.o; + }; + this.type = "num"; + this.o = 0; + }(); + a.NYa = new function() { + this.update = function(a) { + for (var b in a.xa) + if ("becauseYouLiked" === a.xa[b].context) { + this.o = Math.max(a.xa[b].list.length, this.o); + break; } - }); - } - - function w(b) { - var h, f, x; - - function d() { - ba && u.Z.get(k.fk).create().then(function(a) { - return a.save(U, f, !1); - })["catch"](function(a) { - S.error("Error persisting msl store", u.jk(a)); - }); - } - h = new m.dD(100); - x = V.extend({ - init: function(a) { - this.Yda = a; - }, - getResponse: function(a, b, c) { - var d, g; - b = this.Yda; - d = b.IG.Za || d; - a = y.Qla(a.body) ? u.XB(a.body) : a.body; - r.VE(a, "Msl should not be sending empty request"); - a = { - url: b.url, - apa: a, - withCredentials: !0, - Az: "nccp-" + b.method, - headers: b.headers - }; - b = this.Yda.timeout; - a.MY = b; - a.X2 = b; - g = d.download(a, function(a) { - try { - if (a.K) c.result({ - body: a.content - }); - else if (400 === a.Fg && a.za) c.result({ - body: a.za - }); - else throw G.oa(new D("HTTP error, SubCode: " + a.R + (a.Fg ? ", HttpCode: " + a.Fg : "")), { - cadmiumResponse: a - }); - } catch (ta) { - c.error(ta); - } - }); - return { - abort: function() { - g.abort(); - } - }; + }; + this.getValue = function() { + return this.o; + }; + this.type = "num"; + this.o = 0; + }(); + a.PYa = new function() { + this.update = function(a) { + for (var b in a.xa) + if ("billboard" === a.xa[b].context) { + this.o = Math.max(a.xa[b].list.length, this.o); + break; } - }); - X && b.addEventHandler("shouldpersist", function(a) { - f = a.storeState; - h.lb(d); - }); - G.oa(c.Tk, { - cla: function() { - ha = !0; - }, - send: function(a) { - function c() { - var b, c; - b = a.IG; - c = { - method: a.method, - nonReplayable: a.CP, - encrypted: a.mN, - userId: a.WB, - body: a.body, - timeout: 2 * a.timeout, - url: new x(a), - allowTokenRefresh: ba, - sendUserAuthIfRequired: ia, - shouldSendUserAuthData: l.config.d$a - }; - b.Tv ? (c.email = b.Tv, c.password = b.password || "") : b.psa ? (c.token = b.psa, c.mechanism = b.i2a, b.Aw && (c.netflixId = b.Aw, c.secureNetflixId = b.IQ), b.Kg && (c.profileGuid = b.Kg)) : b.Aw ? (c.netflixId = b.Aw, c.secureNetflixId = b.IQ) : b.ina ? (c.mdxControllerToken = b.ina, c.mdxPin = b.e2a, c.mdxNonce = b.d2a, c.mdxEncryptedPinB64 = b.c2a, c.mdxSignature = b.f2a) : ha || b.useNetflixUserAuthData ? c.useNetflixUserAuthData = !0 : b.Kg && (c.profileGuid = b.Kg); - return c; - } - return new Promise(function(a, d) { - var g; - g = c(); - b.send(g).then(function(b) { - ha && (ha = !1); - a({ - K: !0, - body: b.body - }); - })["catch"](function(a) { - var c, g; - if (a.error) { - c = a.error.cadmiumResponse && a.error.cadmiumResponse.R ? a.error.cadmiumResponse.R : b.isErrorReauth(a.error) ? p.u.LT : b.isErrorHeader(a.error) ? p.u.h$ : p.u.KT; - g = b.getErrorCode(a.error); - d(F(c, g, a.error)); - } else S.error("Unknown MSL error", a), a.tb = a.subCode, d({ - R: a.tb ? a.tb : p.u.Uza - }); - }); - }); - }, - nlb: function(a, c) { - b.buildPlayDataRequest({ - nccpMethod: a.V2a, - nonReplayable: a.CP, - encrypted: a.mN, - userId: a.WB, - body: a.body, - serviceTokens: a.Jsb, - timeout: a.timeout, - allowTokenRefresh: !1 - }, { - result: function(a) { - c({ - K: !0, - body: a - }); - }, - timeout: function() { - c({ - R: p.u.k$ - }); - }, - error: function(a) { - var d, g; - d = b.isErrorReauth(a) ? p.u.LT : b.isErrorHeader(a) ? p.u.h$ : p.u.KT; - g = b.getErrorCode(a); - c(F(d, g, a)); - } - }); - }, - Le: b - }); - a(g.cb); - } - - function F(a, b, c) { - var d, g, h, p; - p = { - R: a, - Ms: b - }; - if (c) { - d = function(a) { - var b; - a = a || "" + c; - if (c.stack) { - b = "" + c.stack; - a = 0 <= b.indexOf(a) ? b : a + b; - } - return a; - }; - if (h = c.cadmiumResponse) { - if (g = h.ub && h.ub.toString()) h.ub = g; - h.R = a; - h.Ms = b; - h.za = d(c.message); - h.error = { - tb: a, - Sc: g, - sq: b, - data: c.cause, - message: c.message - }; - return h; + }; + this.getValue = function() { + return this.o; + }; + this.type = "num"; + this.o = 0; + }(); + a.i0a = new function() { + this.update = function(a) { + for (var b in a.xa) + if ("continueWatching" === a.xa[b].context) { + this.o = Math.max(a.xa[b].list.length, this.o); + break; } - d = d(c.errorMessage); - g = G.Zc(c.internalCode) || G.Zc(c.error && c.error.internalCode); - h = void 0 !== c.IUa ? C.eoa(c.IUa) : void 0; - } - d && (p.za = d); - g && (p.ub = g); - p.error = { - tb: a, - Sc: g.toString(), - sq: b, - data: h, - message: d - }; - return p; - } - r.ea(l.config); - n = u.Z.get(v.xr); - q = z.tc.og; - if (x.mr && x.Gl && x.Gl.unwrapKey) { - try { - B = t.netflix.msl; - ja = B.createMslClient; - V = B.IHttpLocation; - D = B.MslIoException; - } catch (ka) { - a({ - R: p.u.Oza - }); - return; - } - S = u.Cc("Msl"); - da = l.config.P2a; - X = l.config.Q2a; - U = l.config.Jl ? "mslstoretest" : "mslstore"; - B = d.CB.dra; - ha = l.config.i_a; - ba = !B || B.K; - ea = u.Pi(l.config.Jl ? "MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAm84o+RfF7KdJgbE6lggYAdUxOArfgCsGCq33+kwAK/Jmf3VnNo1NOGlRpLQUFAqYRqG29u4wl8fH0YCn0v8JNjrxPWP83Hf5Xdnh7dHHwHSMc0LxA2MyYlGzn3jOF5dG/3EUmUKPEjK/SKnxeKfNRKBWnm0K1rzCmMUpiZz1pxgEB/cIJow6FrDAt2Djt4L1u6sJ/FOy/zA1Hf4mZhytgabDfapxAzsks+HF9rMr3wXW5lSP6y2lM+gjjX/bjqMLJQ6iqDi6++7ScBh0oNHmgUxsSFE3aBRBaCL1kz0HOYJe26UqJqMLQ71SwvjgM+KnxZvKa1ZHzQ+7vFTwE7+yxwIDAQAB" : "MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAlibeiUhffUDs6QqZiB+jXH/MNgITf7OOcMzuSv4G3JysWkc0aPbT3vkCVaxdjNtw50zo2Si8I24z3/ggS3wZaF//lJ/jgA70siIL6J8kBt8zy3x+tup4Dc0QZH0k1oxzQxM90FB5x+UP0hORqQEUYZCGZ9RbZ/WNV70TAmFkjmckutWN9DtR6WUdAQWr0HxsxI9R05nz5qU2530AfQ95h+WGZqnRoG0W6xO1X05scyscNQg0PNCy3nfKBG+E6uIl5JB4dpc9cgSNgkfAIeuPURhpD0jHkJ/+4ytpdsXAGmwYmoJcCSE1TJyYYoExuoaE8gLFeM01xXK5VINU7/eWjQIDAQAB"); - ia = !!l.config.a5; - u.Z.get(k.fk).create().then(function(b) { - da ? b.remove(U).then(function() { - f(); - })["catch"](function(a) { - S.error("Unable to delete MSL store", u.jk(a)); - f(); - }) : X ? b.load(U).then(function(a) { - n.mark(q.Qza); - f(a.value); - })["catch"](function(c) { - c.R == p.u.sj ? (n.mark(q.Sza), f()) : (S.error("Error loading msl store", u.jk(c)), n.mark(q.Rza), b.remove(U).then(function() { - f(); - })["catch"](function(b) { - a(b); - })); - }) : f(); - })["catch"](function(b) { - S.error("Error creating app storage while loading msl store", u.jk(b)); - a(b); - }); - } else a({ - R: p.u.Pza - }); - }); - }, function(f, c, a) { - var b, d; - Object.defineProperty(c, "__esModule", { - value: !0 - }); - b = a(4); - d = a(28); - c.f7 = function(a) { - function c(a, b, c) { - if (b.EZ[a.id]) return { - responseType: d.Xs, - url: b.EZ[a.id], - o: selectCdn$_verifyResponse, - offset: b.pi.Glb[c ? c.index : 0].offset, - length: 8, - Ya: a, - track: b.track, - stream: b, - Az: c.type + "-" + c.index + "-ping", - fY: !0 - }; - } - this.Ys = a; - this.ping = function(a) { - var h, l, f, z, k; - - function d(a) { - clearTimeout(k); - g(a); - } - - function g(b) { - (b = b && b.K) && a.kab(); - !b && a.Qia(); - } - h = this.Ys; - l = a.stream; - f = a.yM; - if (a.g3 > a.Yma) a.Qia(); - else if (f && !f.media) { - (l = c(a.Ya, l, f)) && (z = h.download(l, d)); - k = setTimeout(function() { - g(); - z && z.abort(); - }, b.config.k5a); - } }; - }; - }, function(f, c, a) { - var b, d, h, l, g, m, p, r, u, v; - Object.defineProperty(c, "__esModule", { - value: !0 - }); - f = a(18); - b = a(298); - d = a(4); - h = a(6); - l = a(2); - g = a(3); - m = a(8); - p = a(5); - f.Dd(l.v.X8, function(a) { - var f; - f = g.Cc("FileSystem"); - "fs" != d.config.qR ? a(h.cb) : (m.ea(0 < b.v3), p.GAa(p.PERSISTENT, b.v3, function(b) { - c.CN = b; - a(h.cb); - }, function() { - f.error("Error calling requestFileSystem"); - a({ - R: l.u.jba - }); - })); - }); - r = {}; - u = { - create: !0 - }; - v = { - create: !0, - exclusive: !0 - }; - c.hVa = function(a) { - c.CN.root.getDirectory("netflix.player.namedatapair", u, function(b) { - a({ - K: !0, - rTa: b - }); - }, function() { - a({ - R: l.u.FEa - }); - }); - }; - c.Anb = function(a, b) { - a.createReader().readEntries(function(a) { - var g; - for (var c = [], d = a.length; d--;) { - g = a[d]; - g.isFile && c.push(g.name); - } - b({ - K: !0, - znb: c - }); - }, function() { - b({ - R: l.u.HEa - }); - }); - }; - c.iVa = function(a, b, c) { - function d() { - c({ - R: l.u.CEa - }); - } - a.getFile(b, r, function(a) { - a.file(function(b) { - var g; - g = new FileReader(); - g.onloadend = function() { - c({ - K: !0, - text: g.result, - g_: a - }); - }; - g.onerror = d; - g.readAsText(b); - }, d); - }, d); - }; - c.kVa = function(a, b, c, d, g) { - function h() { - g && g({ - R: l.u.EEa - }); - } - - function m(a) { - a.createWriter(function(b) { - try { - b.onwriteend = function() { - b.onwriteend = null; - b.onerror = null; - b.truncate(b.position); - g && g({ - K: !0, - g_: a - }); - }; - b.onerror = h; - b.write(new p.B$([c])); - } catch (ca) { - h(); + this.getValue = function() { + return this.o; + }; + this.type = "num"; + this.o = 0; + }(); + a.OYa = new function() { + this.update = function(a) { + for (var b in a.xa) + if ("bigRow" === a.xa[b].context) { + this.o = Math.max(a.xa[b].list.length, this.o); + break; } - }, h); - } - b.createWriter ? m(b) : a.getFile(b, d ? v : u, m, h); - }; - c.jVa = function(a, b, c) { - function d() { - c && c({ - R: l.u.DEa - }); - } - - function g(a) { - a.remove(function() { - c && c(h.cb); - }, d); - } - b.remove ? g(b) : a.getFile(b, r, g, d); - }; - }, function(f, c, a) { - var b, d; - Object.defineProperty(c, "__esModule", { - value: !0 - }); - b = a(194); - d = a(143); - c.Doa = function(a, c, g, m, p) { - d.C6(a, function(a) { - a.K ? b.H4a(a.object, c, g, m, function(a) { - a.K ? p({ - K: !0, - entries: a.entries - }) : p(a); - }) : p(a); - }); - }; - }, function(f, c, a) { - var b, d, h, l, g, m; - Object.defineProperty(c, "__esModule", { - value: !0 - }); - b = a(8); - d = a(14); - h = a(6); - l = a(122); - g = a(5); - m = a(15); - c.H4a = function() { - var B, t, V, D, S, da, X, U, ha, ba, ea, ia; - - function a(a) { - if (d.kq(a)) { - a = a.toLowerCase(); - if ("#" == a[0]) { - if (7 == a.length) return a; - if (4 == a.length) return "#" + a[1] + a[1] + a[2] + a[2] + a[3] + a[3]; + }; + this.getValue = function() { + return this.o; + }; + this.type = "num"; + this.o = 0; + }(); + a.T7a = new function() { + this.update = function(a) { + for (var b in a.xa) + if ("genre" === a.xa[b].context) { + this.o = Math.max(a.xa[b].list.length, this.o); + break; } - return c.N4a[a]; - } - } - - function f(a, b, c) { - b = b[a]; - 0 <= b || (b = parseFloat(a)); - if (0 <= b) return g.ue(b, c); - } - - function u(a, b) { - var c, d; - c = a.length; - d = a[c - 1]; - if ("t" === d) return parseFloat(a) * b | 0; - if ("s" === d) return "m" === a[c - 2] ? parseFloat(a) | 0 : parseFloat(a) * h.pj | 0; - if ((a = a.match(ha)) && 4 <= a.length) return (3600 * parseInt(a[1], 10) + 60 * parseInt(a[2], 10) + parseFloat(a[3])) * h.pj | 0; - throw Error("dfxp-badtime"); - } - - function v(a, b, c, d, g) { - var h, p, m, l, f, r, u, x; - if (a) { - p = a.style; - c = p ? c[p] : void 0; - d = (p = a.region) ? d[p] : void 0; - p = g.length; - for (m = 0; m < p; m++) - if (l = g[m], f = a[l], void 0 === f && c && (f = c[l]), void 0 === f && d && (f = d[l]), void 0 !== f && f !== b[l]) { - if (!h) - for (h = {}, r = 0; r < p; r++) u = g[r], x = b[u], void 0 !== x && (h[u] = x); - h[l] = f; - } - } - return h || b; - } - - function z(a, b, c, g, h, p, m, f, r) { - var x, z; - - function u(a, k, w) { - var C, F, G, N, U, T; - C = a[l.Vh]; - F = C.style || k.style || ""; - G = C.region || k.region || ""; - F || G ? (N = F + "/" + G, U = c[N]) : U = b; - if (!U) { - U = b; - T = d.NH(g); - d.oa(T, h[F]); - U = y(U, T, m, f, r); - c[F + "/"] = U; - G && (d.oa(T, p[G]), d.oa(T, h[F]), U = y(U, T, m, f, r), c[N] = U); + }; + this.getValue = function() { + return this.o; + }; + this.type = "num"; + this.o = 0; + }(); + a.tgb = new function() { + this.update = function(a) { + for (var b in a.xa) + if ("netflixOriginals" === a.xa[b].context) { + this.o = Math.max(a.xa[b].list.length, this.o); + break; } - if (!w) a: { - for (w = da.length; w--;) - if (void 0 !== C[da[w]]) { - w = !0; - break a; - } w = void 0; + }; + this.getValue = function() { + return this.o; + }; + this.type = "num"; + this.o = 0; + }(); + a.xgb = new function() { + this.update = function(a) { + for (var b in a.xa) + if ("newRelease" === a.xa[b].context) { + this.o = Math.max(a.xa[b].list.length, this.o); + break; } - w && (C = v(C, k, h, p, X), U = y(U, C, m, f, r)); - k = (a = a[l.$R]) && a.length; - for (F = 0; F < k; F++) G = a[F], d.Pd(G) ? ba.test(G[l.aS]) ? z++ : u(G, C, w) : (x.push({ - text: G, - lineBreaks: z, - style: U - }), z = 0); - } - x = []; - z = 0; - u(a, g, !1); - 0 < z && x.push({ - text: "", - lineBreaks: z, - style: b - }); - return x; - } - - function k(a, b, c, d, g, h, p, m) { - var l, f; - c && (c = t[c] || "top", a.verticalAlignment !== c && (a.verticalAlignment = c)); - d && (c = V[d] || "left", a.horizontalAlignment !== c && (a.horizontalAlignment = c)); - g ? ((f = m[g]) ? (d = f.marginLeft, c = f.marginTop) : (l = g.split(" "), d = N(l[0], p.x) || 0, c = N(l[1], p.y) || 0, f = { - Tn: 0, - marginLeft: d, - marginTop: c, - iMa: d * b.l0 + b.MF, - kMa: c * b.n6 + b.SR - }, 30 > m.Tn && (m.Tn++, m[g] = f)), a.marginLeft = f.iMa, a.marginTop = f.kMa) : (c = d = 0, (f = m["default"]) || (m["default"] = f = { - Tn: 0 - })); - h && (g = f[h], g || (l = h.split(" "), g = { - jMa: (1 - (d + (N(l[0], p.x) || 0))) * b.l0 + b.MF, - hMa: (1 - (c + (N(l[1], p.y) || 0))) * b.n6 + b.SR - }, 30 > f.Tn && (f.Tn++, f[h] = g)), a.marginRight = g.jMa, a.marginBottom = g.hMa); - } - - function G(a, b, c, g, h) { - var p, m, l; - p = a.displayAlign; - m = a.textAlign; - l = a.origin; - a = a.extent; - c = d.NH(c); - k(c, b, p, m, l, a, g, h); - c.id = B++; - return c; - } - - function x(b, g, h, p) { - var m, l, r, u, x, v; - m = f(h.characterSize || g.characterSize, c.O4a, 2) || 1; - l = (l = b.fontSize) && ea.test(l) ? d.ll(d.Zc(l), 25, 200) : void 0; - m *= l / 100 || 1; - l = b.textOutline; - if (l && "none" != l) { - u = l.split(" "); - ia.test(u) ? (v = 0, x = b.color) : (v = 1, x = a(u[0])); - r = F(u[v]); - u = F(u[v + 1]); - } - return { - characterStyle: h.characterStyle || c.P4a[b.fontFamily] || g.characterStyle, - characterSize: m * p, - characterColor: a(h.characterColor || b.color || g.characterColor), - characterOpacity: f(d.zg(h.characterOpacity, b.opacity, g.characterOpacity), c.p3, 1), - characterEdgeAttributes: h.characterEdgeAttributes || l && ("none" === l ? c.L4a : u ? c.o3 : c.Coa) || g.characterEdgeAttributes, - characterEdgeColor: a(h.characterEdgeColor || x || g.characterEdgeColor), - characterEdgeWidth: r, - characterEdgeBlur: u, - characterItalic: "italic" === b.fontStyle, - characterUnderline: "underline" === b.textDecoration, - backgroundColor: a(h.backgroundColor || b.backgroundColor || g.backgroundColor), - backgroundOpacity: f(d.zg(h.backgroundOpacity, b.opacity, g.backgroundOpacity), c.p3, 1) - }; - } - - function y(a, b, c, h, p) { - var m; - b = x(b, c, h, p); - d.Kb(b, function(b, c) { - c !== a[b] && (m || (m = g.OC(a)), m[b] = c); - }); - return m || a; - } - - function C(a, b, c, d, h, p, m, f) { - var r; - r = a[l.Vh]; - c = v(a[l.Vh], b, c, h, U); - b = c.region; - a = r.displayAlign; - c = c.textAlign; - h = r.origin; - r = r.extent; - b || a || c || h || r ? ((d = d[b]) ? d = g.OC(d) : a || h || r ? (d = g.OC(S), d.id = B++) : d = g.OC(D), k(d, p, a, c, h, r, m, f)) : d = D; - return d; - } - - function F(a) { - a = d.Zc(a); - return m.et(a, 0, 100) ? a : 0; - } - - function N(a, b) { - var c; - c = a[a.length - 1]; - if ("%" === c) return d.ll(.01 * parseFloat(a), 0, 1); - if ("c" === c) return d.ll(d.Zc(a) / b, 0, 1); - } - - function T(a) { - for (var b = a.length, c = a[--b].endTime; b--;) c = g.ue(a[b].endTime, c); - return c; - } - - function n(b) { - d.Kb(b, function(c, d) { - 0 <= c.toLowerCase().indexOf("color") && (b[c] = a(d)); - }); - } - - function q(a, c) { - var d, h, p, m; - d = a.pixelAspectRatio; - m = { - MF: 0, - l0: 1, - SR: 0, - n6: 1 - }; - a = (a.extent || "640px 480px").split(" "); - 2 <= a.length && (d = (d || "").split(" "), h = parseFloat(a[0]) * (parseFloat(d[0]) || 1), p = parseFloat(a[1]) * (parseFloat(d[1]) || 1)); - h = 0 < h && 0 < p ? h / p : 1280 / 720; - c = c || 1280 / 720; - d = h / c; - .01 < g.ru(c - h) && (c >= h ? (m.MF = (1 - d) / 2, m.l0 = d) : b.ea(!1, "not implemented")); - return m; - } - - function O(a) { - var b, g, h, p, m; - if (b = a.cellResolution) - if (b = b.split(" "), 2 <= b.length) { - g = d.Zc(b[0]); - b = d.Zc(b[1]); - if (0 < g && 0 < b) return { - x: g, - y: b - }; - } b = a.extent; - if (b && (b = b.split(" "), 2 <= b.length)) { - g = d.Zc(b[0]); - m = d.Zc(b[1]); - if (a = a.pixelAspectRatio) b = a.split(" "), h = d.Zc(b[0]), p = d.Zc(b[1]); - if (g && m && 1.5 < g * (h || 1) / (m * (p || 1))) return c.J4a; - } - return c.I4a; - } - B = 1; - t = { - before: "top", - center: "center", - after: "bottom" }; - V = { - left: "left", - start: "left", - center: "center", - right: "right", - end: "right" + this.getValue = function() { + return this.o; }; - D = { - id: B++, - verticalAlignment: "bottom", - horizontalAlignment: "center", - marginTop: .1, - marginLeft: .1, - marginRight: .1, - marginBottom: .1 + this.type = "num"; + this.o = 0; + }(); + a.vjb = new function() { + this.update = function(a) { + for (var b in a.xa) + if ("popularTitles" === a.xa[b].context) { + this.o = Math.max(a.xa[b].list.length, this.o); + break; + } }; - S = { - id: B++, - verticalAlignment: "top", - horizontalAlignment: "left", - marginTop: 0, - marginLeft: 0, - marginRight: 0, - marginBottom: 0 + this.getValue = function() { + return this.o; }; - da = "fontFamily fontSize fontStyle textDecoration color opacity backgroundColor textOutline".split(" "); - X = da.concat(["style", "region"]); - U = ["region", "textAlign", "displayAlign", "extent", "origin"]; - ha = /^([0-9]+):([0-9]+):([0-9.]+)$/; - ba = /^br$/i; - ea = /^[0-9]{1,3}%$/; - ia = /^[0-9]/; - return function(b, p, m, r, y) { - var N, ca, Z, ha, D, ba, ea, t, V, ja, ia, ka, da, ua, la, A, H, Sa, vb, P, Oc, Eb, aa, fa, ga, ma, oa, pa, ra, sa; - - function k() { - try { - for (var a; aa;) - if (V = aa[l.Vh], fa.push({ - id: B++, - startTime: u(V.begin, Z), - endTime: u(V.end, Z), - region: C(aa, ma, ba, t, ea, ha, ua, Sa), - textNodes: z(aa, oa, pa, ga, ba, ea, A, H, la) - }), aa = aa[l.$B], a = g.fJ(), 100 < a - ra) { - ra = Date.now(); - sa = setTimeout(k, 1); - return; - } - } catch (wf) { - F({ - R: d.u.oJ, - za: d.yc(wf) - }); - return; - } - sa = setTimeout(w, 1); - } - - function w() { - var b, c, g, h, p, m, l; - - function a(a, g) { - for (var h, p = [], m = {}, l, f = c.length; f--;) h = c[f], l = h.region.id, m[l] || (m[l] = 1, p.unshift(h)); - (h = b[b.length - 1]) && h.endTime == a && d.ws(h.blocks, p) ? h.endTime = g : b.push({ - id: B++, - startTime: a, - endTime: g, - blocks: p - }); - } - try { - if (!fa.length) { - F({ - K: !0, - entries: [] - }); - return; - } - d.BMa(fa); - b = []; - c = []; - g = fa[0]; - p = fa[0].startTime; - for (m = 1; c.length || g;) { - for (; !c.length || g && g.startTime == p;) c.push(g), p = g.startTime, g = fa[m++]; - h = T(c); - if (!g || h <= g.startTime) - for (a(p, h), p = h, l = c.length; l--;) c[l].endTime <= p && c.splice(l, 1); - else a(p, g.startTime), p = g.startTime, c.push(g), g = fa[m++]; - } - for (m = b.length; m--;) b[m].index = m, b[m].previous = b[m - 1], b[m].next = b[m + 1]; - } catch (xf) { - F({ - R: d.u.oJ, - za: d.yc(xf) - }); - return; - } - F({ - K: !0, - entries: b - }); - } - - function F(a) { - setTimeout(function() { - N.abort = d.Gb; - y(a); - }, 1); - } - N = { - abort: function() { - sa && clearTimeout(sa); - } - }; - try { - ca = b[l.Vh]; - Z = h.pj / (d.Zc(ca.tickRate) || 1); - ha = q(ca, p); - D = d.oa(S, { - marginLeft: ha.MF, - marginTop: ha.SR, - marginRight: ha.MF, - marginBottom: ha.SR - }); - ba = {}; - ea = {}; - t = {}; - ka = b.head; - da = b.body; - ua = O(ca); - la = 1 / ua.y * ha.n6; - A = d.oa({ - characterStyle: "PROPORTIONAL_SANS_SERIF", - characterColor: "#EBEB64", - characterEdgeAttributes: c.o3, - characterEdgeColor: "#000000", - characterSize: 1 - }, m, { - no: !0 - }); - H = r || {}; - Sa = { - Tn: 0 - }; - if (ka) { - vb = ka.styling; - if (vb) - for (ia = vb.style; ia;) V = ia[l.Vh], n(V), ba[V.id] = V, ia = ia[l.$B]; - P = ka.layout; - if (P) - for (var Y = P.region; Y;) { - V = Y[l.Vh]; - Oc = V.id; - ja = d.NH(ba[V.style]); - ja = d.oa(ja, V); - for (ia = Y.style; ia;) d.oa(ja, ia[l.Vh]), ia = ia[l.$B]; - n(ja); - ea[Oc] = ja; - t[Oc] = G(ja, ha, D, ua, Sa); - Y = Y[l.$B]; - } + this.type = "num"; + this.o = 0; + }(); + a.pi = new function() { + this.update = function(a) { + for (var b in a.xa) + if ("queue" === a.xa[b].context) { + this.o = Math.max(a.xa[b].list.length, this.o); + break; } - Eb = da.div; - aa = Eb.p; - fa = []; - ga = {}; - ga = v(da[l.Vh], ga, ba, ea, X); - ga = v(Eb[l.Vh], ga, ba, ea, X); - ma = {}; - ma = v(da[l.Vh], ma, ba, ea, U); - ma = v(Eb[l.Vh], ma, ba, ea, U); - oa = x(ga, A, H, la); - d.oa(oa, { - windowColor: a(H.windowColor || A.windowColor), - windowOpacity: f(d.zg(H.windowOpacity, A.windowOpacity), c.p3, 1), - cellResolution: ua - }, { - no: !0 - }); - pa = {}; - Eb.p = void 0; - Eb[l.$R] = []; - } catch (vf) { - F({ - R: d.u.oJ, - za: d.yc(vf) - }); - return; - } - ra = g.fJ(); - sa = setTimeout(k, 1); - return N; }; + this.getValue = function() { + return this.o; + }; + this.type = "num"; + this.o = 0; }(); - c.P4a = { - "default": "PROPORTIONAL_SANS_SERIF", - monospaceSansSerif: "MONOSPACED_SANS_SERIF", - monospaceSerif: "MONOSPACED_SERIF", - proportionalSansSerif: "PROPORTIONAL_SANS_SERIF", - proportionalSerif: "PROPORTIONAL_SERIF", - casual: "CASUAL", - cursive: "CURSIVE", - smallCapitals: "SMALL_CAPITALS", - monospace: "MONOSPACED_SANS_SERIF", - sansSerif: "PROPORTIONAL_SANS_SERIF", - serif: "PROPORTIONAL_SERIF" - }; - c.O4a = { - SMALL: .5, - MEDIUM: 1, - LARGE: 2 - }; - c.p3 = { - NONE: 0, - SEMI_TRANSPARENT: .5, - OPAQUE: 1 - }; - c.N4a = { - black: "#000000", - silver: "#c0c0c0", - gray: "#808080", - white: "#ffffff", - maroon: "#800000", - red: "#ff0000", - purple: "#800080", - fuchsia: "#ff00ff", - magenta: "#ff00ff", - green: "#00ff00", - lime: "#00ff00", - olive: "#808000", - yellow: "#ffff00", - navy: "#000080", - blue: "#0000ff", - teal: "#008080", - aqua: "#00ffff", - cyan: "#00ffff", - orange: "#ffa500", - pink: "#ffc0cb" - }; - c.L4a = "NONE"; - c.M4a = "RAISED"; - c.K4a = "DEPRESED"; - c.Coa = "UNIFORM"; - c.o3 = "DROP_SHADOW"; - c.I4a = { - x: 40, - y: 19 - }; - c.J4a = { - x: 52, - y: 19 - }; - }, function(f, c) { - Object.defineProperty(c, "__esModule", { - value: !0 - }); - c.Zaa = function(a, b) { - var c; - this.j5 = function() { - c || (c = setInterval(b, a)); + a.Wkb = new function() { + this.update = function(a) { + for (var b in a.xa) + if ("recentlyAdded" === a.xa[b].context) { + this.o = Math.max(a.xa[b].list.length, this.o); + break; + } }; - this.xY = function() { - c && (clearInterval(c), c = void 0); + this.getValue = function() { + return this.o; }; - }; - }, function(f, c) { - Object.defineProperty(c, "__esModule", { - value: !0 - }); - c.pJ = function(a) { - var h, l, g, m; - - function b() { - if (g) - for (var a; a = h.pop();) a(m); - } - - function c(a) { - g = !0; - m = a; - b(); - } - h = []; - return function(d) { - h.push(d); - l || (l = !0, a(c)); - b(); + this.type = "num"; + this.o = 0; + }(); + a.Eob = new function() { + this.update = function(a) { + for (var b in a.xa) + if ("similars" === a.xa[b].context) { + this.o = Math.max(a.xa[b].list.length, this.o); + break; + } }; - }; - }, function(f, c) { - Object.defineProperty(c, "__esModule", { - value: !0 - }); - c.sU = "PboPublisherSymbol"; - }, function(f, c) { - Object.defineProperty(c, "__esModule", { - value: !0 - }); - c.uU = "PlayPredictionDeserializerSymbol"; - }, function(f, c) { - Object.defineProperty(c, "__esModule", { - value: !0 - }); - c.UJ = { - MO: "keepAlive", - resume: "resume", - pause: "pause", - splice: "splice" - }; - c.dy = "PboEventSenderSymbol"; - }, function(f, c, a) { - var g, m, p, r, u; - - function b(a, b, c) { - this.Na = a; - this.vka = b; - this.gb = c; - } - - function d() {} - - function h() {} - - function l() {} - Object.defineProperty(c, "__esModule", { - value: !0 - }); - f = a(1); - g = a(0); - m = a(52); - p = a(7); - r = a(29); - a = a(38); - l.prototype.encode = function(a) { - return { - downloadableId: a.ac, - duration: a.duration + this.getValue = function() { + return this.o; }; - }; - l.prototype.decode = function(a) { - return { - ac: a.downloadableId, - duration: a.duration + this.type = "num"; + this.o = 0; + }(); + a.erb = new function() { + this.update = function(a) { + for (var b in a.xa) + if ("trendingNow" === a.xa[b].context) { + this.o = Math.max(a.xa[b].list.length, this.o); + break; + } }; - }; - h.prototype.encode = function(a) { - return { - total: a.total, - audio: a.audio.map(new l().encode), - video: a.video.map(new l().encode), - text: a.text.map(new l().encode) + this.getValue = function() { + return this.o; }; - }; - h.prototype.decode = function(a) { - return { - total: a.total, - audio: a.audio.map(new l().decode), - video: a.video.map(new l().decode), - text: a.text.map(new l().decode) + this.type = "num"; + this.o = 0; + }(); + a.rrb = new function() { + this.update = function(a) { + for (var b in a.xa) + if ("ultraHD" === a.xa[b].context) { + this.o = Math.max(a.xa[b].list.length, this.o); + break; + } }; - }; - d.prototype.encode = function(a) { - return { - type: a.type, - profileId: a.profileId, - href: a.href, - xid: a.aa, - movieId: a.M, - position: a.position, - clientTime: a.GE, - sessionStartTime: a.IH, - mediaId: a.Jg, - playTimes: new h().encode(a.po), - trackId: a.Ab, - sessionId: a.sessionId, - appId: a.gs, - sessionParams: a.jf, - mdxControllerEsn: a.r2, - persistentlicense: a.w3, - cachedcontent: a.jY + this.getValue = function() { + return this.o; }; - }; - d.prototype.decode = function(a) { - return { - type: a.type, - profileId: a.profileId, - href: a.href, - aa: a.xid, - M: a.movieId, - position: a.position, - GE: a.clientTime, - IH: a.sessionStartTime, - Jg: a.mediaId, - po: new h().decode(a.playTimes), - Ab: a.trackId, - sessionId: a.sessionId, - gs: a.appId, - jf: a.sessionParams, - r2: a.mdxControllerEsn, - w3: a.persistentlicense, - jY: a.cachedcontent + this.type = "num"; + this.o = 0; + }(); + a.Hsb = new function() { + this.update = function(a) { + for (var b in a.xa) + if ("watchAgain" === a.xa[b].context) { + this.o = Math.max(a.xa[b].list.length, this.o); + break; + } }; - }; - c.qU = d; - b.prototype.zs = function(a, b) { - var c; - c = { - href: a.Sa && a.Sa.mt ? a.Sa.mt.GF("events").href : "", - type: a.ge ? "offline" : "online", - profileId: a.profile.id, - aa: a.aa.toString(), - M: a.M, - position: a.Ts() || 0, - GE: this.Na.Eg.qa(p.Ma), - IH: a.kla ? a.kla.qa(p.Ma) : -1, - Jg: this.YWa(a), - po: this.jYa(a), - Ab: void 0 !== a.Zf ? a.Zf.toString() : "", - sessionId: this.vka().sessionId || this.gb.id, - gs: this.vka().gs || this.gb.id, - jf: a.Pb.jf || {} - }; - b && (c = Object.assign({}, c, { - r2: a.CM, - w3: a.ge, - jY: a.ge - })); - return c; - }; - b.prototype.load = function(a) { - return new d().decode(a); - }; - b.prototype.YWa = function(a) { - var b, c, d; - b = a.gc.value; - c = a.Ud.value; - d = a.Fc.value; - return b && c && d ? (a = a.Sa.media.find(function(a) { - return a.tracks.AUDIO === b.Ab && a.tracks.VIDEO === c.Ab && a.tracks.TEXT === d.Ab; - })) ? a.id : "" : ""; - }; - b.prototype.X_ = function(a) { - return a.map(function(a) { - return { - ac: a.downloadableId, - duration: a.duration - }; - }); - }; - b.prototype.jYa = function(a) { - return (a = a.Sl) ? (a = a.dka(), { - total: a.total, - audio: this.X_(a.audio), - video: this.X_(a.video), - text: this.X_(a.timedtext) - }) : { - total: 0, - video: [], - audio: [], - text: [] + this.getValue = function() { + return this.o; }; - }; - u = b; - u = f.__decorate([g.N(), f.__param(0, g.j(m.mj)), f.__param(1, g.j(r.Ef)), f.__param(2, g.j(a.eg))], u); - c.ZCa = u; - }, function(f, c) { - Object.defineProperty(c, "__esModule", { - value: !0 - }); - c.Jaa = "PlaydataServicesSymbol"; - c.DU = "PlaydataServicesProviderSymbol"; - }, function(f, c) { - Object.defineProperty(c, "__esModule", { - value: !0 - }); - c.CU = "PlaydataFactorySymbol"; - }, function(f, c) { - Object.defineProperty(c, "__esModule", { - value: !0 - }); - c.MT = "ManifestProviderSymbol"; - }, function(f, c) { - Object.defineProperty(c, "__esModule", { - value: !0 - }); - c.sS = "ControlProtocolSymbol"; - }, function(f, c) { - Object.defineProperty(c, "__esModule", { - value: !0 - }); - c.OJ = "NetworkMonitorFactorySymbol"; - }, function(f, c) { - Object.defineProperty(c, "__esModule", { - value: !0 - }); - c.YU = "UuidProviderSymbol"; - }, function(f, c) { - Object.defineProperty(c, "__esModule", { - value: !0 - }); - c.X9 = "LogMessageRulerConfigSymbol"; - c.Y9 = "LogMessageRulerSymbol"; - }, function(f, c) { - Object.defineProperty(c, "__esModule", { - value: !0 - }); - c.V9 = "LogMessageFilterConfigSymbol"; - c.W9 = "LogMessageFilterSymbol"; - }, function(f, c) { - Object.defineProperty(c, "__esModule", { - value: !0 - }); - c.ZT = "MslDispatcherSymbol"; - }, function(f, c) { - Object.defineProperty(c, "__esModule", { - value: !0 - }); - f = c.dC || (c.dC = {}); - f[f.P$ = 0] = "PAUSE"; - f[f.Waa = 1] = "RESUME"; - f[f.ieb = 2] = "CAPTIONS_ON"; - f[f.heb = 3] = "CAPTIONS_OFF"; - f[f.jeb = 4] = "CAPTION_LANGUAGE_CHANGED"; - f[f.qdb = 5] = "AUDIO_LANGUAGE_CHANGED"; - f[f.Bhb = 6] = "NEXT_EP"; - f[f.rib = 7] = "PREV_EP"; - f[f.nEa = 8] = "SEEK"; - f[f.$C = 9] = "STOP"; - c.q7 = "CastInteractionTrackerSymbol"; - }, function(f, c) { - Object.defineProperty(c, "__esModule", { - value: !0 - }); - c.vba = "load save remove removeAll loadAll loadKeys".split(" "); - c.M6 = "AppStorageStatsSymbol"; - }, function(f, c) { - Object.defineProperty(c, "__esModule", { - value: !0 - }); - f = c.iu || (c.iu = {}); - f.Unknown = "unknown"; - f.Absent = "absent"; - f.Present = "present"; - f.Error = "error"; - c.v8 = "ExternalDisplayLogHelperSymbol"; - }, function(f, c, a) { - var d, h, l; - - function b() { - this.type = d.au.su; - } - Object.defineProperty(c, "__esModule", { - value: !0 - }); - d = a(34); - f = a(96); - h = a(160); - l = new f.Cu(); - b.XY = function() { - return { - isTypeSupported: function(a) { - var c; - try { - if (-1 == a.toLowerCase().indexOf("codec")) return t.MSMediaKeys.isTypeSupported(a); - c = a.split("|"); - return 1 === c.length ? t.MSMediaKeys.isTypeSupported(h.Eb.tn, a) : "probably" === b.G5(c[0], c[1]); - } catch (p) { - return !1; + this.type = "num"; + this.o = 0; + }(); + a.Jqb = new function() { + this.update = function(a) { + for (var b in a.xa) + if ("topTen" === a.xa[b].context) { + this.o = Math.max(a.xa[b].list.length, this.o); + break; } - } }; - }; - b.JM = function(a, c, d) { - c = l.format(b.SB, c); - if (0 === d.length) return c; - d = l.format('features="{0}"', d.join()); - return l.format("{0}|{1}{2}", a, c, d); - }; - b.G5 = function(a, b) { - var c; - try { - c = t.MSMediaKeys.isTypeSupportedWithFeatures ? t.MSMediaKeys.isTypeSupportedWithFeatures(a, b) : ""; - } catch (r) { - c = "exception"; - } - return c; - }; - b.SB = 'video/mp4;codecs="{0},mp4a";'; - c.tu = b; - }, function(f, c, a) { - var d, h, l, g, m, p; - - function b(a, c, d, m) { - var f; - f = h.ik.call(this, a, c, d) || this; - f.cast = m; - f.type = l.Fi.oS; - a = b.CFa; - f.YB[l.Jd.jK] = g.od.mC + "; " + a; - f.YB[l.Jd.Mo] = g.od.Mo + "; " + a; - a = g.od.hva.find(function(a) { - return f.Jp(p(b.SB, a)); - }); - f.YB[l.Jd.Ff] = a; - return f; - } - Object.defineProperty(c, "__esModule", { - value: !0 - }); - d = a(64); - h = a(123); - l = a(34); - f = a(96); - g = a(124); - m = a(365); - p = new f.Cu().format; - oa(b, h.ik); - b.XY = function(a, c) { - return (c = b.rqa(c)) ? { - isTypeSupported: c - } : a; - }; - b.rqa = function(a) { - return "undefined" !== typeof a && (a.receiver && a.receiver.platform && a.receiver.platform.canDisplayType || a.__platform__ && a.__platform__.canDisplayType) || void 0; - }; - b.prototype.Co = function(a) { - var c, d; - c = this.cast.__platform__.display && this.cast.__platform__.display.getHdcpVersion; - if (this.config().Rsa) { - d = {}; - if (c) return d[l.Qg.pn] = "1.4", d[l.Qg.nu] = "2.2", c().then(function(b) { - return b === d[a]; - }); - c = this.Pma(a); - c = p(b.SB, g.od.mC) + " hdcp=" + c; - c = this.Jp.bind(this, c); - return Promise.resolve(c()); - } - return Promise.resolve(!1); - }; - b.prototype.YN = function(a) { - return this.YB[a]; - }; - b.prototype.Yz = function() { - var a; - a = this; - return this.config().Rsa ? this.Co(l.Qg.nu).then(function(b) { - return b ? Promise.resolve(l.Qg.nu) : a.Co(l.Qg.pn).then(function(a) { - return a ? Promise.resolve(l.Qg.pn) : Promise.resolve(void 0); - }); - }).then(function(b) { - return a.OE(b); - }) : Promise.resolve(void 0); - }; - b.prototype.Iv = function() { - var a, c; - a = h.ik.prototype.Iv.call(this); - c = b.Jka; - a[d.$.US] = ["hev1.2.6.L90.B0", c]; - a[d.$.VS] = ["hev1.2.6.L93.B0", c]; - a[d.$.WS] = ["hev1.2.6.L120.B0", c]; - a[d.$.XS] = ["hev1.2.6.L123.B0", c]; - a[d.$.YS] = ["hev1.2.6.L150.B0", "width=3840; height=2160; " + c]; - a[d.$.$S] = ["hev1.2.6.L153.B0", "width=3840; height=2160; " + c]; - a[d.$.sJ] = ["hev1.2.6.L90.B0", c]; - a[d.$.tJ] = ["hev1.2.6.L93.B0", c]; - a[d.$.uJ] = ["hev1.2.6.L120.B0", c]; - a[d.$.vJ] = ["hev1.2.6.L123.B0", c]; - a[d.$.ZS] = ["hev1.2.6.L150.B0", "width=3840; height=2160; " + c]; - a[d.$.aT] = ["hev1.2.6.L153.B0", "width=3840; height=2160; " + c]; - a[d.$.lT] = "hev1.1.6.L90.B0"; - a[d.$.mT] = "hev1.1.6.L93.B0"; - a[d.$.nT] = "hev1.1.6.L120.B0"; - a[d.$.oT] = "hev1.1.6.L123.B0"; - a[d.$.pT] = ["hev1.1.6.L150.B0", "width=3840; height=2160; "]; - a[d.$.qT] = ["hev1.1.6.L153.B0", "width=3840; height=2160; "]; - a[d.$.dT] = "hev1.2.6.L90.B0"; - a[d.$.fT] = "hev1.2.6.L93.B0"; - a[d.$.hT] = "hev1.2.6.L120.B0"; - a[d.$.jT] = "hev1.2.6.L123.B0"; - a[d.$.pC] = ["hev1.2.6.L150.B0", "width=3840; height=2160; "]; - a[d.$.qC] = ["hev1.2.6.L153.B0", "width=3840; height=2160; "]; - return a; - }; - b.prototype.P0 = function() { - h.ik.prototype.P0.call(this); - !b.rqa(this.cast) && this.Tm.push(m.il.Mo); - }; - b.Jka = "eotf=smpte2084"; - b.pob = "video/mp4;codecs={0}; " + b.Jka; - b.CFa = "width=3840; height=2160; "; - c.r7 = b; - c.pS = "CastSDKSymbol"; - }, function(f, c) { - Object.defineProperty(c, "__esModule", { - value: !0 - }); - c.C9 = "IsTypeSupportedProviderFactorySymbol"; - c.qaa = "PlatformIsTypeSupportedSymbol"; - }, function(f, c) { - Object.defineProperty(c, "__esModule", { - value: !0 - }); - c.Kba = "ThroughputTrackerSymbol"; - c.RU = "ThroughputTrackerFactorySymbol"; - }, function(f, c) { - Object.defineProperty(c, "__esModule", { - value: !0 - }); - c.rU = "PboPlaydataFactorySymbol"; - }, function(f, c) { - Object.defineProperty(c, "__esModule", { - value: !0 - }); - c.KU = "SegmentManagerFactorySymbol"; - }, function(f, c, a) { - var d, h, l; - - function b(a, b, c, d) { - this.gb = a; - this.zv = b; - this.ck = c; - this.Ck = void 0 === d ? "General" : d; - } - Object.defineProperty(c, "__esModule", { - value: !0 - }); - d = a(12); - h = a(376); - l = a(729); - b.prototype.fatal = function(a) { - this.as(d.wh.txa, a, l.fz(this.zv, arguments)); - }; - b.prototype.error = function(a) { - this.as(d.wh.ERROR, a, l.fz(this.zv, arguments)); - }; - b.prototype.warn = function(a) { - this.as(d.wh.bca, a, l.fz(this.zv, arguments)); - }; - b.prototype.info = function(a) { - this.as(d.wh.yT, a, l.fz(this.zv, arguments)); - }; - b.prototype.trace = function(a) { - this.as(d.wh.PU, a, l.fz(this.zv, arguments)); - }; - b.prototype.debug = function() {}; - b.prototype.log = function(a) { - this.debug.apply(this, arguments); - }; - b.prototype.write = function(a, b) { - this.as(a, b, l.fz(this.zv, arguments, 2)); - }; - b.prototype.toString = function() { - return JSON.stringify(this); - }; - b.prototype.toJSON = function() { - return { - category: this.Ck + this.getValue = function() { + return this.o; }; - }; - b.prototype.as = function(a, b, c) { - a = new h.T9(a, this.Ck, this.gb.oe(), b, c); - b = Na(this.ck.ck); - for (c = b.next(); !c.done; c = b.next()) c = c.value, c(a); - }; - c.zC = b; - }, function(f, c) { - Object.defineProperty(c, "__esModule", { - value: !0 - }); - c.OU = "StringUtilsSymbol"; - }, function(f, c, a) { - var d, h; - - function b() {} - Object.defineProperty(c, "__esModule", { - value: !0 - }); - f = a(1); - a = a(0); - d = { - 0: 0, - 1: 1, - 2: 2, - 3: 3, - 4: 4, - 5: 5, - 6: 6, - 7: 7, - 8: 8, - 9: 9, - A: 10, - B: 11, - C: 12, - D: 13, - E: 14, - F: 15, - a: 10, - b: 11, - c: 12, - d: 13, - e: 14, - f: 15 - }; - b.prototype.decode = function(a) { - for (var b = new Uint8Array(a.length / 2), c = 0; c < b.length; c++) b[c] = this.osa(a.substr(2 * c, 2)); - return b; - }; - b.prototype.encode = function(a) { - for (var b = "", c = a.length, d = 0; d < c; d++) var h = a[d], - b = b + ("0123456789ABCDEF" [h >>> 4] + "0123456789ABCDEF" [h & 15]); - return b; - }; - b.prototype.yF = function(a, b) { - var c; - c = ""; - for (b <<= 1; b--;) c = ("0123456789ABCDEF" [a & 15] || "0") + c, a >>>= 4; - return c; - }; - b.prototype.osa = function(a) { - var b; - b = a.length; - if (7 < b) throw Error("hex to long"); - for (var c = 0, h = 0; h < b; h++) c = 16 * c + d[a[h]]; - return c; - }; - h = b; - h = f.__decorate([a.N()], h); - c.hS = h; - }, function(f, c) { - Object.defineProperty(c, "__esModule", { - value: !0 - }); - c.SS = "EmeApiSymbol"; - }, function(f, c) { - Object.defineProperty(c, "__esModule", { - value: !0 - }); - f = c.IS || (c.IS = {}); - f[f.drb = 0] = "playready"; - f[f.Ucb = 1] = "widevine"; - f[f.unb = 2] = "fairplay"; - f[f.Ilb = 3] = "clearkey"; - c.a8 = "DrmTypeSymbol"; - }, function(f, c, a) { - var b, d; - b = a(393); - d = a(847); - c.pt = function(a) { - void 0 === a && (a = Number.POSITIVE_INFINITY); - return b.HA(d.c_a, null, a); - }; - }, function(f, c, a) { - var b; - b = this && this.__extends || function(a, b) { - function c() { - this.constructor = a; - } - for (var d in b) b.hasOwnProperty(d) && (a[d] = b[d]); - a.prototype = null === b ? Object.create(b) : (c.prototype = b.prototype, new c()); - }; - f = function(a) { - function c(b, c) { - a.call(this); - this.value = b; - this.ha = c; - this.hp = !0; - c && (this.hp = !1); - } - b(c, a); - c.create = function(a, b) { - return new c(a, b); + this.type = "num"; + this.o = 0; + }(); + a.u0a = new function() { + this.getValue = function(a, b, c) { + return this.o = "AR" === c.ya || null; }; - c.Xa = function(a) { - var b, c; - b = a.value; - c = a.Ce; - a.done ? c.complete() : (c.next(b), c.closed || (a.done = !0, this.lb(a))); + this.type = "cat"; + }(); + a.v0a = new function() { + this.getValue = function(a, b, c) { + return this.o = "AT" === c.ya || null; }; - c.prototype.Ve = function(a) { - var b, d; - b = this.value; - d = this.ha; - if (d) return d.lb(c.Xa, 0, { - done: !1, - value: b, - Ce: a - }); - a.next(b); - a.closed || a.complete(); + this.type = "cat"; + }(); + a.w0a = new function() { + this.getValue = function(a, b, c) { + return this.o = "AU" === c.ya || null; }; - return c; - }(a(11).pa); - c.JU = f; - }, function(f, c, a) { - a(11); - f = function() { - function a(a, b, c) { - this.kind = a; - this.value = b; - this.error = c; - this.Cm = "N" === a; - } - a.prototype.observe = function(a) { - switch (this.kind) { - case "N": - return a.next && a.next(this.value); - case "E": - return a.error && a.error(this.error); - case "C": - return a.complete && a.complete(); - } - }; - a.prototype.eF = function(a, b, c) { - switch (this.kind) { - case "N": - return a && a(this.value); - case "E": - return b && b(this.error); - case "C": - return c && c(); - } - }; - a.prototype.accept = function(a, b, c) { - return a && "function" === typeof a.next ? this.observe(a) : this.eF(a, b, c); - }; - a.$Y = function(b) { - return "undefined" !== typeof b ? new a("N", b) : a.Wbb; - }; - a.tha = function(b) { - return new a("E", void 0, b); - }; - a.WY = function() { - return a.qPa; - }; - a.qPa = new a("C"); - a.Wbb = new a("N", void 0); - return a; - }(); - c.Notification = f; - }, function(f, c, a) { - var b; - b = this && this.__extends || function(a, b) { - function c() { - this.constructor = a; - } - for (var d in b) b.hasOwnProperty(d) && (a[d] = b[d]); - a.prototype = null === b ? Object.create(b) : (c.prototype = b.prototype, new c()); - }; - f = function(a) { - function c() { - a.apply(this, arguments); - this.Ni = []; - this.active = !1; - } - b(c, a); - c.prototype.flush = function(a) { - var b, c; - b = this.Ni; - if (this.active) b.push(a); - else { - this.active = !0; - do - if (c = a.Pf(a.state, a.Rc)) break; while (a = b.shift()); - this.active = !1; - if (c) { - for (; a = b.shift();) a.unsubscribe(); - throw c; - } - } - }; - return c; - }(a(862).PEa); - c.fS = f; - }, function(f, c, a) { - var b, d; - b = this && this.__extends || function(a, b) { - function c() { - this.constructor = a; - } - for (var d in b) b.hasOwnProperty(d) && (a[d] = b[d]); - a.prototype = null === b ? Object.create(b) : (c.prototype = b.prototype, new c()); - }; - d = a(76); - f = function(a) { - function c(b, c) { - a.call(this, b, c); - this.ha = b; - this.HI = c; - this.aH = !1; - } - b(c, a); - c.prototype.lb = function(a, b) { - var c; - void 0 === b && (b = 0); - if (this.closed) return this; - this.state = a; - this.aH = !0; - a = this.id; - c = this.ha; - null != a && (this.id = this.iQ(c, a, b)); - this.Rc = b; - this.id = this.id || this.pQ(c, this.id, b); - return this; - }; - c.prototype.pQ = function(a, b, c) { - void 0 === c && (c = 0); - return d.root.setInterval(a.flush.bind(a, this), c); - }; - c.prototype.iQ = function(a, b, c) { - void 0 === c && (c = 0); - return null !== c && this.Rc === c && !1 === this.aH ? b : (d.root.clearInterval(b), void 0); - }; - c.prototype.Pf = function(a, b) { - if (this.closed) return Error("executing a cancelled action"); - this.aH = !1; - if (a = this.SK(a, b)) return a; - !1 === this.aH && null != this.id && (this.id = this.iQ(this.ha, this.id, null)); - }; - c.prototype.SK = function(a) { - var b, c; - b = !1; - c = void 0; - try { - this.HI(a); - } catch (r) { - b = !0; - c = !!r && r || Error(r); - } - if (b) return this.unsubscribe(), c; - }; - c.prototype.rp = function() { - var a, b, c, d; - a = this.id; - b = this.ha; - c = b.Ni; - d = c.indexOf(this); - this.state = this.HI = null; - this.aH = !1; - this.ha = null; - 1 !== d && c.splice(d, 1); - null != a && (this.id = this.iQ(b, a, null)); - this.Rc = null; - }; - return c; - }(a(864).Jta); - c.eS = f; - }, function(f, c, a) { - function b(a) { - var b; - b = a.Symbol; - "function" === typeof b ? b.observable ? a = b.observable : (a = b("observable"), b.observable = a) : a = "@@observable"; - return a; - } - f = a(76); - c.kob = b; - c.observable = b(f.root); - c.ldb = c.observable; - }, function(f, c, a) { - f = a(76).root.Symbol; - c.fx = "function" === typeof f && "function" === typeof f["for"] ? f["for"]("rxSubscriber") : "@@rxSubscriber"; - c.mdb = c.fx; - }, function(f, c) { - c.empty = { - closed: !0, - next: function() {}, - error: function(a) { - throw a; - }, - complete: function() {} - }; - }, function(f, c, a) { - var d, h; - - function b(a, b, c, d, h) { - this.version = a; - this.QA = b; - this.Mra = c; - this.md = d; - this.Gd = h; - this.um = []; - } - Object.defineProperty(c, "__esModule", { - value: !0 - }); - d = a(2); - h = a(48); - b.prototype.load = function(a) { - return this.N0a(a); - }; - b.prototype.add = function(a) { - this.um.push(a); - return this.s3(); - }; - b.prototype.remove = function(a, b) { - a = this.Eja(this.Ui(a, b)); - return 0 <= a ? (this.um.splice(a, 1), this.s3()) : Promise.resolve(); - }; - b.prototype.update = function(a, b) { - b = this.Eja(this.Ui(a, b)); - return 0 <= b ? (this.um[b] = a, this.s3()) : Promise.resolve(); - }; - b.prototype.N0a = function(a) { - var b; - b = this; - this.pma || (this.pma = new Promise(function(c, g) { - function h(a) { - b.SSa().then(function() { - g(a); - })["catch"](function() { - g(a); - }); - } - b.c0().then(function(a) { - b.storage = a; - return b.storage.load(b.QA); - }).then(function(d) { - var g; - d = d.value; - try { - g = a(d); - b.version = g.version; - b.um = g.data; - c(); - } catch (z) { - h(z); - } - })["catch"](function(a) { - a.R !== d.u.sj ? g(a) : c(); - }); - })); - return this.pma; - }; - b.prototype.s3 = function() { - var a, b, c, d, h; - a = this; - if (!this.Mra) return Promise.resolve(); - if (this.rR) { - d = new Promise(function(a, d) { - b = a; - c = d; - }); - h = function() { - a.rR = d; - a.Lra().then(function() { - b(); - })["catch"](function(a) { - c(a); - }); - }; - this.rR.then(h)["catch"](h); - return d; - } - return this.rR = this.Lra(); - }; - b.prototype.Lra = function() { - var a, c; - a = this; - c = this.Gd(); - return new Promise(function(g, h) { - a.c0().then(function(b) { - return b.save(a.QA, c, !1); - }).then(function() { - g(); - })["catch"](function(a) { - h(b.kI(d.v.gCa, a)); - }); - }); - }; - b.prototype.SSa = function() { - var a; - a = this; - return this.Mra ? new Promise(function(b, c) { - a.c0().then(function(b) { - return b.remove(a.QA); - }).then(function() { - b(); - })["catch"](function(a) { - c(a); - }); - }) : Promise.resolve(); - }; - b.prototype.c0 = function() { - return this.storage ? Promise.resolve(this.storage) : this.md.create(); - }; - b.prototype.Ui = function(a, b) { - for (var c = 0; c < this.um.length; ++c) - if (b(this.um[c], a)) return this.um[c]; - }; - b.prototype.Eja = function(a) { - return a ? this.um.indexOf(a) : -1; - }; - b.kI = function(a, b, c) { - return b.R && b.cause ? new h.nb(a, b.R, void 0, void 0, void 0, c, void 0, b.cause) : void 0 !== b.tb ? (c = (b.message ? b.message + " " : "") + (c ? c : ""), b.code = a, b.message = "" === c ? void 0 : c, b) : b instanceof Error ? new h.nb(a, d.u.te, void 0, void 0, void 0, c, b.stack, b) : new h.nb(a, d.u.Vg, void 0, void 0, void 0, c, void 0, b); - }; - c.BT = b; - }, function(f, c, a) { - var h; - - function b() {} - - function d(a) { - a ? (this.active = !1, this.ni(a)) : this.active = !0; - } - Object.defineProperty(c, "__esModule", { - value: !0 - }); - f = a(1); - a = a(0); - d.prototype.ni = function(a) { - this.profileId = a.profileId; - this.Ob = a.keySessionData ? a.keySessionData.map(function(a) { - return { - id: a.id, - kt: a.licenseContextId, - tA: a.licenseId - }; - }) : []; - this.aa = a.xid; - this.M = a.movieId; - }; - d.prototype.Gd = function() { - return JSON.parse(JSON.stringify({ - profileId: this.profileId, - keySessionData: this.Ob ? this.Ob.map(function(a) { - return { - id: a.id, - licenseContextId: a.kt, - licenseId: a.tA - }; - }) : [], - xid: this.aa, - movieId: this.M - })); - }; - c.GS = d; - b.prototype.create = function() { - return new d(); - }; - b.prototype.load = function(a) { - return new d(a); - }; - h = b; - h = f.__decorate([a.N()], h); - c.Owa = h; - }, function(f, c, a) { - var b, d, h, l, g, m; - Object.defineProperty(c, "__esModule", { - value: !0 - }); - f = a(0); - b = a(114); - d = a(413); - h = a(233); - l = a(159); - g = a(875); - m = a(874); - c.eme = new f.dc(function(a) { - a(d.W7).to(h.Owa).Y(); - a(l.mS).to(g.$ua).Y(); - a(b.kJ).OB(m.v6a); - }); - c.NZ = new f.eC(); - }, function(f, c, a) { - var b, d; - Object.defineProperty(c, "__esModule", { - value: !0 - }); - f = a(0); - b = a(63); - d = a(876); - c.Yg = new f.dc(function(a) { - a(b.gn).OB(d.u6a); - }); - c.$W = new f.eC(); - }, function(f, c) { - Object.defineProperty(c, "__esModule", { - value: !0 - }); - c.DT = "Injector"; - c.pu = 145152E5; - }, function(f, c, a) { - var b, d; - Object.defineProperty(c, "__esModule", { - value: !0 - }); - b = a(238); - d = a(416); - f = function() { - function a(a) { - this.ob = a; - } - a.prototype.GI = function() { - this.ob.Fv = function(a) { - return null !== a.target && !a.target.Y0() && !a.target.c1(); - }; - return new b.OI(this.ob); - }; - a.prototype.ZB = function(a, c) { - this.ob.Fv = d.N5(a)(c); - return new b.OI(this.ob); - }; - return a; - }(); - c.jS = f; - }, function(f, c, a) { - var b; - Object.defineProperty(c, "__esModule", { - value: !0 - }); - b = a(237); - f = function() { - function a(a) { - this.ob = a; - } - a.prototype.mo = function(a) { - this.ob.mo = a; - return new b.jS(this.ob); - }; - return a; - }(); - c.OI = f; - }, function(f, c, a) { - var l; - - function b(a, b, c, d, h, l, f) { - this.zI = d; - this.nta = a; - this.Una = b; - this.J2 = c; - this.Y_a = l; - this.Kt = f; - this.split = h; - } - - function d() { - this.I = {}; - this.I["0"] = new b("1", "2", "1", "14", "-0.0000100136", 0, 0); - this.I["1"] = new b("3", "4", "3", "20", "-0.0000100136", 0, 0); - this.I["3"] = new b("7", "8", "7", "10", "1.5", 0, 0); - this.I["7"] = new b("15", "16", "15", "9", "4.5", 0, 0); - this.I["15"] = new b("31", "32", "31", "2", "5.5", 0, 0); - this.I["31"] = new b("63", "64", "63", "29", "-0.0000100136", 0, 0); - this.I["63"] = new b("123", "124", "123", "24", "-0.0000100136", 0, 0); - this.I["123"] = new b("123", "124", "123", "0", "0", 1, .207298); - this.I["124"] = new b("123", "124", "123", "0", "0", 1, .49076); - this.I["64"] = new b("125", "126", "125", "4", "40.5", 0, 0); - this.I["125"] = new b("125", "126", "125", "0", "0", 1, -.00157835); - this.I["126"] = new b("125", "126", "125", "0", "0", 1, .934205); - this.I["32"] = new b("65", "66", "65", "135", "5.5", 0, 0); - this.I["65"] = new b("127", "128", "128", "4", "1272.5", 0, 0); - this.I["127"] = new b("127", "128", "128", "0", "0", 1, -.510333); - this.I["128"] = new b("127", "128", "128", "0", "0", 1, .18363); - this.I["66"] = new b("129", "130", "129", "24", "-0.0000100136", 0, 0); - this.I["129"] = new b("129", "130", "129", "0", "0", 1, -.0464542); - this.I["130"] = new b("129", "130", "129", "0", "0", 1, .458833); - this.I["16"] = new b("33", "34", "34", "10", "2.00001", 0, 0); - this.I["33"] = new b("67", "68", "67", "0", "29.5", 0, 0); - this.I["67"] = new b("131", "132", "131", "2", "39.5", 0, 0); - this.I["131"] = new b("131", "132", "131", "0", "0", 1, -.37577); - this.I["132"] = new b("131", "132", "131", "0", "0", 1, .512087); - this.I["68"] = new b("133", "134", "134", "140", "1.5", 0, 0); - this.I["133"] = new b("133", "134", "134", "0", "0", 1, .321272); - this.I["134"] = new b("133", "134", "134", "0", "0", 1, -.675396); - this.I["34"] = new b("69", "70", "70", "2", "24.5", 0, 0); - this.I["69"] = new b("135", "136", "136", "9", "28.5", 0, 0); - this.I["135"] = new b("135", "136", "136", "0", "0", 1, -.0573845); - this.I["136"] = new b("135", "136", "136", "0", "0", 1, -.507455); - this.I["70"] = new b("137", "138", "137", "45", "-0.0000100136", 0, 0); - this.I["137"] = new b("137", "138", "137", "0", "0", 1, -.503909); - this.I["138"] = new b("137", "138", "137", "0", "0", 1, .450886); - this.I["8"] = new b("17", "18", "17", "4", "44189.5", 0, 0); - this.I["17"] = new b("35", "36", "35", "2", "21.5", 0, 0); - this.I["35"] = new b("71", "72", "72", "0", "19.5", 0, 0); - this.I["71"] = new b("139", "140", "140", "9", "2.5", 0, 0); - this.I["139"] = new b("139", "140", "140", "0", "0", 1, .00403497); - this.I["140"] = new b("139", "140", "140", "0", "0", 1, -.312656); - this.I["72"] = new b("141", "142", "141", "135", "96", 0, 0); - this.I["141"] = new b("141", "142", "141", "0", "0", 1, -.465786); - this.I["142"] = new b("141", "142", "141", "0", "0", 1, .159633); - this.I["36"] = new b("73", "74", "73", "130", "89.5", 0, 0); - this.I["73"] = new b("143", "144", "144", "10", "4.5", 0, 0); - this.I["143"] = new b("143", "144", "144", "0", "0", 1, -.76265); - this.I["144"] = new b("143", "144", "144", "0", "0", 1, -.580804); - this.I["74"] = new b("145", "146", "146", "10", "16.5", 0, 0); - this.I["145"] = new b("145", "146", "146", "0", "0", 1, .296357); - this.I["146"] = new b("145", "146", "146", "0", "0", 1, -.691659); - this.I["18"] = new b("37", "38", "38", "9", "1.5", 0, 0); - this.I["37"] = new b("37", "38", "38", "0", "0", 1, .993951); - this.I["38"] = new b("75", "76", "75", "0", "19", 0, 0); - this.I["75"] = new b("147", "148", "147", "39", "-0.0000100136", 0, 0); - this.I["147"] = new b("147", "148", "147", "0", "0", 1, -.346535); - this.I["148"] = new b("147", "148", "147", "0", "0", 1, -.995745); - this.I["76"] = new b("147", "148", "147", "0", "0", 1, -.99978); - this.I["4"] = new b("9", "10", "9", "5", "4.5", 0, 0); - this.I["9"] = new b("19", "20", "19", "2", "4.5", 0, 0); - this.I["19"] = new b("39", "40", "39", "140", "7.5", 0, 0); - this.I["39"] = new b("77", "78", "78", "134", "6.5", 0, 0); - this.I["77"] = new b("149", "150", "150", "7", "11.5", 0, 0); - this.I["149"] = new b("149", "150", "150", "0", "0", 1, .729843); - this.I["150"] = new b("149", "150", "150", "0", "0", 1, .383857); - this.I["78"] = new b("151", "152", "151", "133", "4.5", 0, 0); - this.I["151"] = new b("151", "152", "151", "0", "0", 1, .39017); - this.I["152"] = new b("151", "152", "151", "0", "0", 1, .0434342); - this.I["40"] = new b("79", "80", "79", "133", "3.5", 0, 0); - this.I["79"] = new b("153", "154", "154", "8", "4.5", 0, 0); - this.I["153"] = new b("153", "154", "154", "0", "0", 1, -.99536); - this.I["154"] = new b("153", "154", "154", "0", "0", 1, -.00943396); - this.I["80"] = new b("155", "156", "155", "125", "-0.0000100136", 0, 0); - this.I["155"] = new b("155", "156", "155", "0", "0", 1, .266272); - this.I["156"] = new b("155", "156", "155", "0", "0", 1, .959904); - this.I["20"] = new b("41", "42", "42", "10", "65.5", 0, 0); - this.I["41"] = new b("81", "82", "82", "7", "10.5", 0, 0); - this.I["81"] = new b("157", "158", "158", "2", "37.5", 0, 0); - this.I["157"] = new b("157", "158", "158", "0", "0", 1, -.701873); - this.I["158"] = new b("157", "158", "158", "0", "0", 1, .224649); - this.I["82"] = new b("159", "160", "159", "133", "9.5", 0, 0); - this.I["159"] = new b("159", "160", "159", "0", "0", 1, .0955181); - this.I["160"] = new b("159", "160", "159", "0", "0", 1, -.58962); - this.I["42"] = new b("83", "84", "83", "39", "-0.0000100136", 0, 0); - this.I["83"] = new b("161", "162", "161", "135", "31", 0, 0); - this.I["161"] = new b("161", "162", "161", "0", "0", 1, -.229692); - this.I["162"] = new b("161", "162", "161", "0", "0", 1, .88595); - this.I["84"] = new b("163", "164", "164", "1", "13.5", 0, 0); - this.I["163"] = new b("163", "164", "164", "0", "0", 1, -.992157); - this.I["164"] = new b("163", "164", "164", "0", "0", 1, .922159); - this.I["10"] = new b("21", "22", "22", "4", "486", 0, 0); - this.I["21"] = new b("43", "44", "44", "133", "4.5", 0, 0); - this.I["43"] = new b("85", "86", "86", "10", "4.5", 0, 0); - this.I["85"] = new b("165", "166", "166", "4", "158.5", 0, 0); - this.I["165"] = new b("165", "166", "166", "0", "0", 1, -.127778); - this.I["166"] = new b("165", "166", "166", "0", "0", 1, .955189); - this.I["86"] = new b("165", "166", "166", "0", "0", 1, -.994012); - this.I["44"] = new b("87", "88", "88", "1", "3.5", 0, 0); - this.I["87"] = new b("167", "168", "168", "135", "7", 0, 0); - this.I["167"] = new b("167", "168", "168", "0", "0", 1, -.997015); - this.I["168"] = new b("167", "168", "168", "0", "0", 1, .400821); - this.I["88"] = new b("169", "170", "169", "130", "36", 0, 0); - this.I["169"] = new b("169", "170", "169", "0", "0", 1, -.898638); - this.I["170"] = new b("169", "170", "169", "0", "0", 1, .56129); - this.I["22"] = new b("45", "46", "45", "9", "2.5", 0, 0); - this.I["45"] = new b("89", "90", "90", "9", "1.5", 0, 0); - this.I["89"] = new b("171", "172", "171", "10", "10.5", 0, 0); - this.I["171"] = new b("171", "172", "171", "0", "0", 1, .573986); - this.I["172"] = new b("171", "172", "171", "0", "0", 1, -.627266); - this.I["90"] = new b("173", "174", "173", "31", "-0.0000100136", 0, 0); - this.I["173"] = new b("173", "174", "173", "0", "0", 1, .925273); - this.I["174"] = new b("173", "174", "173", "0", "0", 1, -.994805); - this.I["46"] = new b("91", "92", "91", "136", "5.5", 0, 0); - this.I["91"] = new b("175", "176", "175", "10", "10.5", 0, 0); - this.I["175"] = new b("175", "176", "175", "0", "0", 1, .548352); - this.I["176"] = new b("175", "176", "175", "0", "0", 1, -.879195); - this.I["92"] = new b("177", "178", "178", "8", "14.5", 0, 0); - this.I["177"] = new b("177", "178", "178", "0", "0", 1, .457305); - this.I["178"] = new b("177", "178", "178", "0", "0", 1, -.998992); - this.I["2"] = new b("5", "6", "5", "10", "2.5", 0, 0); - this.I["5"] = new b("11", "12", "11", "9", "4.5", 0, 0); - this.I["11"] = new b("23", "24", "24", "10", "4.00001", 0, 0); - this.I["23"] = new b("47", "48", "48", "133", "5.5", 0, 0); - this.I["47"] = new b("93", "94", "93", "3", "13.5", 0, 0); - this.I["93"] = new b("179", "180", "179", "138", "15.5", 0, 0); - this.I["179"] = new b("179", "180", "179", "0", "0", 1, .658398); - this.I["180"] = new b("179", "180", "179", "0", "0", 1, -.927007); - this.I["94"] = new b("181", "182", "182", "3", "15.5", 0, 0); - this.I["181"] = new b("181", "182", "182", "0", "0", 1, -.111351); - this.I["182"] = new b("181", "182", "182", "0", "0", 1, -.99827); - this.I["48"] = new b("95", "96", "95", "7", "167", 0, 0); - this.I["95"] = new b("183", "184", "183", "132", "36.5", 0, 0); - this.I["183"] = new b("183", "184", "183", "0", "0", 1, .895161); - this.I["184"] = new b("183", "184", "183", "0", "0", 1, -.765217); - this.I["96"] = new b("185", "186", "186", "137", "6.00001", 0, 0); - this.I["185"] = new b("185", "186", "186", "0", "0", 1, -.851095); - this.I["186"] = new b("185", "186", "186", "0", "0", 1, .674286); - this.I["24"] = new b("49", "50", "49", "137", "5.5", 0, 0); - this.I["49"] = new b("97", "98", "97", "5", "23.5", 0, 0); - this.I["97"] = new b("187", "188", "187", "3", "28.5", 0, 0); - this.I["187"] = new b("187", "188", "187", "0", "0", 1, .951654); - this.I["188"] = new b("187", "188", "187", "0", "0", 1, -.993808); - this.I["98"] = new b("187", "188", "187", "0", "0", 1, -.99705); - this.I["50"] = new b("187", "188", "187", "0", "0", 1, -.997525); - this.I["12"] = new b("25", "26", "25", "8", "8.5", 0, 0); - this.I["25"] = new b("51", "52", "52", "10", "4.00001", 0, 0); - this.I["51"] = new b("99", "100", "100", "133", "5.5", 0, 0); - this.I["99"] = new b("189", "190", "190", "7", "40.5", 0, 0); - this.I["189"] = new b("189", "190", "190", "0", "0", 1, .151839); - this.I["190"] = new b("189", "190", "190", "0", "0", 1, -.855517); - this.I["100"] = new b("191", "192", "192", "133", "14.5", 0, 0); - this.I["191"] = new b("191", "192", "192", "0", "0", 1, .86223); - this.I["192"] = new b("191", "192", "192", "0", "0", 1, .544394); - this.I["52"] = new b("101", "102", "101", "135", "47.5", 0, 0); - this.I["101"] = new b("193", "194", "194", "4", "24.5", 0, 0); - this.I["193"] = new b("193", "194", "194", "0", "0", 1, .946185); - this.I["194"] = new b("193", "194", "194", "0", "0", 1, .811859); - this.I["102"] = new b("193", "194", "194", "0", "0", 1, -.991561); - this.I["26"] = new b("53", "54", "54", "132", "6.5", 0, 0); - this.I["53"] = new b("103", "104", "103", "131", "85", 0, 0); - this.I["103"] = new b("195", "196", "196", "134", "16.5", 0, 0); - this.I["195"] = new b("195", "196", "196", "0", "0", 1, .0473538); - this.I["196"] = new b("195", "196", "196", "0", "0", 1, -.999401); - this.I["104"] = new b("197", "198", "198", "8", "15.5", 0, 0); - this.I["197"] = new b("197", "198", "198", "0", "0", 1, .816129); - this.I["198"] = new b("197", "198", "198", "0", "0", 1, -.99322); - this.I["54"] = new b("105", "106", "105", "133", "3.5", 0, 0); - this.I["105"] = new b("105", "106", "105", "0", "0", 1, -.998783); - this.I["106"] = new b("199", "200", "199", "39", "-0.0000100136", 0, 0); - this.I["199"] = new b("199", "200", "199", "0", "0", 1, .528588); - this.I["200"] = new b("199", "200", "199", "0", "0", 1, -.998599); - this.I["6"] = new b("13", "14", "14", "10", "7.5", 0, 0); - this.I["13"] = new b("27", "28", "28", "133", "7.5", 0, 0); - this.I["27"] = new b("55", "56", "56", "10", "4.5", 0, 0); - this.I["55"] = new b("107", "108", "107", "3", "3.5", 0, 0); - this.I["107"] = new b("201", "202", "201", "4", "17.5", 0, 0); - this.I["201"] = new b("201", "202", "201", "0", "0", 1, -.379512); - this.I["202"] = new b("201", "202", "201", "0", "0", 1, .15165); - this.I["108"] = new b("203", "204", "203", "57", "-0.0000100136", 0, 0); - this.I["203"] = new b("203", "204", "203", "0", "0", 1, -.884606); - this.I["204"] = new b("203", "204", "203", "0", "0", 1, .265406); - this.I["56"] = new b("109", "110", "109", "136", "6.5", 0, 0); - this.I["109"] = new b("205", "206", "205", "4", "157.5", 0, 0); - this.I["205"] = new b("205", "206", "205", "0", "0", 1, -.0142737); - this.I["206"] = new b("205", "206", "205", "0", "0", 1, .691279); - this.I["110"] = new b("205", "206", "205", "0", "0", 1, -.998086); - this.I["28"] = new b("57", "58", "58", "138", "11.5", 0, 0); - this.I["57"] = new b("111", "112", "112", "2", "6.5", 0, 0); - this.I["111"] = new b("207", "208", "208", "7", "67.5", 0, 0); - this.I["207"] = new b("207", "208", "208", "0", "0", 1, .763925); - this.I["208"] = new b("207", "208", "208", "0", "0", 1, -.309645); - this.I["112"] = new b("209", "210", "209", "40", "-0.0000100136", 0, 0); - this.I["209"] = new b("209", "210", "209", "0", "0", 1, -.306635); - this.I["210"] = new b("209", "210", "209", "0", "0", 1, .556696); - this.I["58"] = new b("113", "114", "113", "138", "50.5", 0, 0); - this.I["113"] = new b("211", "212", "212", "8", "25.5", 0, 0); - this.I["211"] = new b("211", "212", "212", "0", "0", 1, .508234); - this.I["212"] = new b("211", "212", "212", "0", "0", 1, .793551); - this.I["114"] = new b("211", "212", "212", "0", "0", 1, -.998438); - this.I["14"] = new b("29", "30", "29", "134", "27.5", 0, 0); - this.I["29"] = new b("59", "60", "60", "7", "17.5", 0, 0); - this.I["59"] = new b("115", "116", "115", "135", "5.5", 0, 0); - this.I["115"] = new b("213", "214", "214", "137", "5.5", 0, 0); - this.I["213"] = new b("213", "214", "214", "0", "0", 1, .401747); - this.I["214"] = new b("213", "214", "214", "0", "0", 1, .0367503); - this.I["116"] = new b("215", "216", "216", "8", "5.5", 0, 0); - this.I["215"] = new b("215", "216", "216", "0", "0", 1, -.0241984); - this.I["216"] = new b("215", "216", "216", "0", "0", 1, -.999046); - this.I["60"] = new b("117", "118", "117", "0", "12.5", 0, 0); - this.I["117"] = new b("217", "218", "218", "132", "5.5", 0, 0); - this.I["217"] = new b("217", "218", "218", "0", "0", 1, -.997294); - this.I["218"] = new b("217", "218", "218", "0", "0", 1, .210398); - this.I["118"] = new b("219", "220", "219", "137", "1.5", 0, 0); - this.I["219"] = new b("219", "220", "219", "0", "0", 1, -.55763); - this.I["220"] = new b("219", "220", "219", "0", "0", 1, .074493); - this.I["30"] = new b("61", "62", "62", "133", "42.5", 0, 0); - this.I["61"] = new b("119", "120", "119", "135", "5.5", 0, 0); - this.I["119"] = new b("221", "222", "222", "4", "473.5", 0, 0); - this.I["221"] = new b("221", "222", "222", "0", "0", 1, -.920213); - this.I["222"] = new b("221", "222", "222", "0", "0", 1, -.17615); - this.I["120"] = new b("223", "224", "224", "5", "144", 0, 0); - this.I["223"] = new b("223", "224", "224", "0", "0", 1, -.954295); - this.I["224"] = new b("223", "224", "224", "0", "0", 1, -.382538); - this.I["62"] = new b("121", "122", "121", "133", "50", 0, 0); - this.I["121"] = new b("225", "226", "226", "10", "18.5", 0, 0); - this.I["225"] = new b("225", "226", "226", "0", "0", 1, -.0731343); - this.I["226"] = new b("225", "226", "226", "0", "0", 1, .755454); - this.I["122"] = new b("227", "228", "228", "0", "30", 0, 0); - this.I["227"] = new b("227", "228", "228", "0", "0", 1, .25); - this.I["228"] = new b("227", "228", "228", "0", "0", 1, -.997101); - } - - function h(a, b, c, d, h, l) { - this.yQ = h; - this.BM = l; - } - c = a(256); - l = a(164); - a = {}; - a.$Ma = new function() { - this.uHa = l(); - this.l = 0; - this.update = function() { - this.l = l() - this.uHa; - }; - this.getValue = function() { - return this.l; - }; - this.type = "num"; - }(); - a.x0a = new function() { - this.getValue = function(a, b, c) { - return this.l = "becauseYouAdded" === c.sa[a].context || null; + this.type = "cat"; + }(); + a.x0a = new function() { + this.getValue = function(a, b, c) { + return this.o = "AZ" === c.ya || null; }; this.type = "cat"; }(); a.y0a = new function() { this.getValue = function(a, b, c) { - return this.l = "becauseYouLiked" === c.sa[a].context || null; + return this.o = "BB" === c.ya || null; }; this.type = "cat"; }(); - a.A0a = new function() { + a.z0a = new function() { this.getValue = function(a, b, c) { - return this.l = "billboard" === c.sa[a].context || null; + return this.o = "BE" === c.ya || null; }; this.type = "cat"; }(); - a.B0a = new function() { + a.A0a = new function() { this.getValue = function(a, b, c) { - return this.l = "continueWatching" === c.sa[a].context || null; + return this.o = "BO" === c.ya || null; }; this.type = "cat"; }(); - a.z0a = new function() { + a.B0a = new function() { this.getValue = function(a, b, c) { - return this.l = "bigRow" === c.sa[a].context || null; + return this.o = "BR" === c.ya || null; }; this.type = "cat"; }(); a.C0a = new function() { this.getValue = function(a, b, c) { - return this.l = "genre" === c.sa[a].context || null; + return this.o = "BS" === c.ya || null; }; this.type = "cat"; }(); a.D0a = new function() { this.getValue = function(a, b, c) { - return this.l = "netflixOriginals" === c.sa[a].context || null; + return this.o = "CA" === c.ya || null; }; this.type = "cat"; }(); a.E0a = new function() { this.getValue = function(a, b, c) { - return this.l = "newRelease" === c.sa[a].context || null; + return this.o = "CH" === c.ya || null; }; this.type = "cat"; }(); a.F0a = new function() { this.getValue = function(a, b, c) { - return this.l = "popularTitles" === c.sa[a].context || null; + return this.o = "CL" === c.ya || null; }; this.type = "cat"; }(); a.G0a = new function() { this.getValue = function(a, b, c) { - return this.l = "queue" === c.sa[a].context || null; + return this.o = "CO" === c.ya || null; }; this.type = "cat"; }(); a.H0a = new function() { this.getValue = function(a, b, c) { - return this.l = "recentlyAdded" === c.sa[a].context || null; + return this.o = "CR" === c.ya || null; }; this.type = "cat"; }(); a.I0a = new function() { this.getValue = function(a, b, c) { - return this.l = "similars" === c.sa[a].context || null; - }; - this.type = "cat"; - }(); - a.K0a = new function() { - this.getValue = function(a, b, c) { - return this.l = "trendingNow" === c.sa[a].context || null; - }; - this.type = "cat"; - }(); - a.L0a = new function() { - this.getValue = function(a, b, c) { - return this.l = "ultraHD" === c.sa[a].context || null; - }; - this.type = "cat"; - }(); - a.M0a = new function() { - this.getValue = function(a, b, c) { - return this.l = "watchAgain" === c.sa[a].context || null; + return this.o = "CW" === c.ya || null; }; this.type = "cat"; }(); a.J0a = new function() { this.getValue = function(a, b, c) { - return this.l = "topTen" === c.sa[a].context || null; - }; - this.type = "cat"; - }(); - a.BNa = new function() { - this.update = function(a) { - for (var b in a.sa) - if ("becauseYouAdded" === a.sa[b].context) { - this.l = Math.max(a.sa[b].list.length, this.l); - break; - } - }; - this.getValue = function() { - return this.l; - }; - this.type = "num"; - this.l = 0; - }(); - a.CNa = new function() { - this.update = function(a) { - for (var b in a.sa) - if ("becauseYouLiked" === a.sa[b].context) { - this.l = Math.max(a.sa[b].list.length, this.l); - break; - } - }; - this.getValue = function() { - return this.l; - }; - this.type = "num"; - this.l = 0; - }(); - a.ENa = new function() { - this.update = function(a) { - for (var b in a.sa) - if ("billboard" === a.sa[b].context) { - this.l = Math.max(a.sa[b].list.length, this.l); - break; - } - }; - this.getValue = function() { - return this.l; - }; - this.type = "num"; - this.l = 0; - }(); - a.JPa = new function() { - this.update = function(a) { - for (var b in a.sa) - if ("continueWatching" === a.sa[b].context) { - this.l = Math.max(a.sa[b].list.length, this.l); - break; - } - }; - this.getValue = function() { - return this.l; - }; - this.type = "num"; - this.l = 0; - }(); - a.DNa = new function() { - this.update = function(a) { - for (var b in a.sa) - if ("bigRow" === a.sa[b].context) { - this.l = Math.max(a.sa[b].list.length, this.l); - break; - } - }; - this.getValue = function() { - return this.l; - }; - this.type = "num"; - this.l = 0; - }(); - a.mWa = new function() { - this.update = function(a) { - for (var b in a.sa) - if ("genre" === a.sa[b].context) { - this.l = Math.max(a.sa[b].list.length, this.l); - break; - } - }; - this.getValue = function() { - return this.l; - }; - this.type = "num"; - this.l = 0; - }(); - a.a3a = new function() { - this.update = function(a) { - for (var b in a.sa) - if ("netflixOriginals" === a.sa[b].context) { - this.l = Math.max(a.sa[b].list.length, this.l); - break; - } - }; - this.getValue = function() { - return this.l; - }; - this.type = "num"; - this.l = 0; - }(); - a.e3a = new function() { - this.update = function(a) { - for (var b in a.sa) - if ("newRelease" === a.sa[b].context) { - this.l = Math.max(a.sa[b].list.length, this.l); - break; - } - }; - this.getValue = function() { - return this.l; - }; - this.type = "num"; - this.l = 0; - }(); - a.G5a = new function() { - this.update = function(a) { - for (var b in a.sa) - if ("popularTitles" === a.sa[b].context) { - this.l = Math.max(a.sa[b].list.length, this.l); - break; - } - }; - this.getValue = function() { - return this.l; - }; - this.type = "num"; - this.l = 0; - }(); - a.Eq = new function() { - this.update = function(a) { - for (var b in a.sa) - if ("queue" === a.sa[b].context) { - this.l = Math.max(a.sa[b].list.length, this.l); - break; - } - }; - this.getValue = function() { - return this.l; - }; - this.type = "num"; - this.l = 0; - }(); - a.X6a = new function() { - this.update = function(a) { - for (var b in a.sa) - if ("recentlyAdded" === a.sa[b].context) { - this.l = Math.max(a.sa[b].list.length, this.l); - break; - } - }; - this.getValue = function() { - return this.l; - }; - this.type = "num"; - this.l = 0; - }(); - a.j$a = new function() { - this.update = function(a) { - for (var b in a.sa) - if ("similars" === a.sa[b].context) { - this.l = Math.max(a.sa[b].list.length, this.l); - break; - } - }; - this.getValue = function() { - return this.l; - }; - this.type = "num"; - this.l = 0; - }(); - a.Jbb = new function() { - this.update = function(a) { - for (var b in a.sa) - if ("trendingNow" === a.sa[b].context) { - this.l = Math.max(a.sa[b].list.length, this.l); - break; - } - }; - this.getValue = function() { - return this.l; - }; - this.type = "num"; - this.l = 0; - }(); - a.Ubb = new function() { - this.update = function(a) { - for (var b in a.sa) - if ("ultraHD" === a.sa[b].context) { - this.l = Math.max(a.sa[b].list.length, this.l); - break; - } - }; - this.getValue = function() { - return this.l; - }; - this.type = "num"; - this.l = 0; - }(); - a.Rcb = new function() { - this.update = function(a) { - for (var b in a.sa) - if ("watchAgain" === a.sa[b].context) { - this.l = Math.max(a.sa[b].list.length, this.l); - break; - } - }; - this.getValue = function() { - return this.l; - }; - this.type = "num"; - this.l = 0; - }(); - a.jbb = new function() { - this.update = function(a) { - for (var b in a.sa) - if ("topTen" === a.sa[b].context) { - this.l = Math.max(a.sa[b].list.length, this.l); - break; - } - }; - this.getValue = function() { - return this.l; - }; - this.type = "num"; - this.l = 0; - }(); - a.UPa = new function() { - this.getValue = function(a, b, c) { - return this.l = "AR" === c.va || null; - }; - this.type = "cat"; - }(); - a.VPa = new function() { - this.getValue = function(a, b, c) { - return this.l = "AT" === c.va || null; - }; - this.type = "cat"; - }(); - a.WPa = new function() { - this.getValue = function(a, b, c) { - return this.l = "AU" === c.va || null; - }; - this.type = "cat"; - }(); - a.XPa = new function() { - this.getValue = function(a, b, c) { - return this.l = "AZ" === c.va || null; - }; - this.type = "cat"; - }(); - a.YPa = new function() { - this.getValue = function(a, b, c) { - return this.l = "BB" === c.va || null; - }; - this.type = "cat"; - }(); - a.ZPa = new function() { - this.getValue = function(a, b, c) { - return this.l = "BE" === c.va || null; - }; - this.type = "cat"; - }(); - a.$Pa = new function() { - this.getValue = function(a, b, c) { - return this.l = "BO" === c.va || null; - }; - this.type = "cat"; - }(); - a.aQa = new function() { - this.getValue = function(a, b, c) { - return this.l = "BR" === c.va || null; - }; - this.type = "cat"; - }(); - a.bQa = new function() { - this.getValue = function(a, b, c) { - return this.l = "BS" === c.va || null; - }; - this.type = "cat"; - }(); - a.cQa = new function() { - this.getValue = function(a, b, c) { - return this.l = "CA" === c.va || null; - }; - this.type = "cat"; - }(); - a.dQa = new function() { - this.getValue = function(a, b, c) { - return this.l = "CH" === c.va || null; - }; - this.type = "cat"; - }(); - a.eQa = new function() { - this.getValue = function(a, b, c) { - return this.l = "CL" === c.va || null; - }; - this.type = "cat"; - }(); - a.fQa = new function() { - this.getValue = function(a, b, c) { - return this.l = "CO" === c.va || null; - }; - this.type = "cat"; - }(); - a.gQa = new function() { - this.getValue = function(a, b, c) { - return this.l = "CR" === c.va || null; - }; - this.type = "cat"; - }(); - a.hQa = new function() { - this.getValue = function(a, b, c) { - return this.l = "CW" === c.va || null; - }; - this.type = "cat"; - }(); - a.iQa = new function() { - this.getValue = function(a, b, c) { - return this.l = "DE" === c.va || null; + return this.o = "DE" === c.ya || null; }; this.type = "cat"; }(); - a.jQa = new function() { + a.K0a = new function() { this.getValue = function(a, b, c) { - return this.l = "DK" === c.va || null; + return this.o = "DK" === c.ya || null; }; this.type = "cat"; }(); - a.kQa = new function() { + a.L0a = new function() { this.getValue = function(a, b, c) { - return this.l = "DM" === c.va || null; + return this.o = "DM" === c.ya || null; }; this.type = "cat"; }(); - a.lQa = new function() { + a.M0a = new function() { this.getValue = function(a, b, c) { - return this.l = "DO" === c.va || null; + return this.o = "DO" === c.ya || null; }; this.type = "cat"; }(); - a.mQa = new function() { + a.N0a = new function() { this.getValue = function(a, b, c) { - return this.l = "EC" === c.va || null; + return this.o = "EC" === c.ya || null; }; this.type = "cat"; }(); - a.nQa = new function() { + a.O0a = new function() { this.getValue = function(a, b, c) { - return this.l = "EE" === c.va || null; + return this.o = "EE" === c.ya || null; }; this.type = "cat"; }(); - a.oQa = new function() { + a.P0a = new function() { this.getValue = function(a, b, c) { - return this.l = "EG" === c.va || null; + return this.o = "EG" === c.ya || null; }; this.type = "cat"; }(); - a.pQa = new function() { + a.Q0a = new function() { this.getValue = function(a, b, c) { - return this.l = "ES" === c.va || null; + return this.o = "ES" === c.ya || null; }; this.type = "cat"; }(); - a.qQa = new function() { + a.R0a = new function() { this.getValue = function(a, b, c) { - return this.l = "FI" === c.va || null; + return this.o = "FI" === c.ya || null; }; this.type = "cat"; }(); - a.rQa = new function() { + a.S0a = new function() { this.getValue = function(a, b, c) { - return this.l = "FR" === c.va || null; + return this.o = "FR" === c.ya || null; }; this.type = "cat"; }(); - a.sQa = new function() { + a.T0a = new function() { this.getValue = function(a, b, c) { - return this.l = "GB" === c.va || null; + return this.o = "GB" === c.ya || null; }; this.type = "cat"; }(); - a.tQa = new function() { + a.U0a = new function() { this.getValue = function(a, b, c) { - return this.l = "GF" === c.va || null; + return this.o = "GF" === c.ya || null; }; this.type = "cat"; }(); - a.uQa = new function() { + a.V0a = new function() { this.getValue = function(a, b, c) { - return this.l = "GP" === c.va || null; + return this.o = "GP" === c.ya || null; }; this.type = "cat"; }(); - a.vQa = new function() { + a.W0a = new function() { this.getValue = function(a, b, c) { - return this.l = "GT" === c.va || null; + return this.o = "GT" === c.ya || null; }; this.type = "cat"; }(); - a.wQa = new function() { + a.X0a = new function() { this.getValue = function(a, b, c) { - return this.l = "HK" === c.va || null; + return this.o = "HK" === c.ya || null; }; this.type = "cat"; }(); - a.xQa = new function() { + a.Y0a = new function() { this.getValue = function(a, b, c) { - return this.l = "HN" === c.va || null; + return this.o = "HN" === c.ya || null; }; this.type = "cat"; }(); - a.yQa = new function() { + a.Z0a = new function() { this.getValue = function(a, b, c) { - return this.l = "HR" === c.va || null; + return this.o = "HR" === c.ya || null; }; this.type = "cat"; }(); - a.zQa = new function() { + a.$0a = new function() { this.getValue = function(a, b, c) { - return this.l = "HU" === c.va || null; + return this.o = "HU" === c.ya || null; }; this.type = "cat"; }(); - a.AQa = new function() { + a.a1a = new function() { this.getValue = function(a, b, c) { - return this.l = "ID" === c.va || null; + return this.o = "ID" === c.ya || null; }; this.type = "cat"; }(); - a.BQa = new function() { + a.b1a = new function() { this.getValue = function(a, b, c) { - return this.l = "IE" === c.va || null; + return this.o = "IE" === c.ya || null; }; this.type = "cat"; }(); - a.CQa = new function() { + a.c1a = new function() { this.getValue = function(a, b, c) { - return this.l = "IL" === c.va || null; + return this.o = "IL" === c.ya || null; }; this.type = "cat"; }(); - a.DQa = new function() { + a.d1a = new function() { this.getValue = function(a, b, c) { - return this.l = "IN" === c.va || null; + return this.o = "IN" === c.ya || null; }; this.type = "cat"; }(); - a.EQa = new function() { + a.e1a = new function() { this.getValue = function(a, b, c) { - return this.l = "IT" === c.va || null; + return this.o = "IT" === c.ya || null; }; this.type = "cat"; }(); - a.FQa = new function() { + a.f1a = new function() { this.getValue = function(a, b, c) { - return this.l = "JE" === c.va || null; + return this.o = "JE" === c.ya || null; }; this.type = "cat"; }(); - a.GQa = new function() { + a.g1a = new function() { this.getValue = function(a, b, c) { - return this.l = "JM" === c.va || null; + return this.o = "JM" === c.ya || null; }; this.type = "cat"; }(); - a.HQa = new function() { + a.h1a = new function() { this.getValue = function(a, b, c) { - return this.l = "JP" === c.va || null; + return this.o = "JP" === c.ya || null; }; this.type = "cat"; }(); - a.IQa = new function() { + a.i1a = new function() { this.getValue = function(a, b, c) { - return this.l = "KE" === c.va || null; + return this.o = "KE" === c.ya || null; }; this.type = "cat"; }(); - a.JQa = new function() { + a.j1a = new function() { this.getValue = function(a, b, c) { - return this.l = "KN" === c.va || null; + return this.o = "KN" === c.ya || null; }; this.type = "cat"; }(); - a.KQa = new function() { + a.k1a = new function() { this.getValue = function(a, b, c) { - return this.l = "KR" === c.va || null; + return this.o = "KR" === c.ya || null; }; this.type = "cat"; }(); - a.LQa = new function() { + a.l1a = new function() { this.getValue = function(a, b, c) { - return this.l = "LU" === c.va || null; + return this.o = "LU" === c.ya || null; }; this.type = "cat"; }(); - a.MQa = new function() { + a.m1a = new function() { this.getValue = function(a, b, c) { - return this.l = "MK" === c.va || null; + return this.o = "MK" === c.ya || null; }; this.type = "cat"; }(); - a.NQa = new function() { + a.n1a = new function() { this.getValue = function(a, b, c) { - return this.l = "MU" === c.va || null; + return this.o = "MU" === c.ya || null; }; this.type = "cat"; }(); - a.OQa = new function() { + a.o1a = new function() { this.getValue = function(a, b, c) { - return this.l = "MX" === c.va || null; + return this.o = "MX" === c.ya || null; }; this.type = "cat"; }(); - a.PQa = new function() { + a.p1a = new function() { this.getValue = function(a, b, c) { - return this.l = "MY" === c.va || null; + return this.o = "MY" === c.ya || null; }; this.type = "cat"; }(); - a.QQa = new function() { + a.q1a = new function() { this.getValue = function(a, b, c) { - return this.l = "NI" === c.va || null; + return this.o = "NI" === c.ya || null; }; this.type = "cat"; }(); - a.RQa = new function() { + a.r1a = new function() { this.getValue = function(a, b, c) { - return this.l = "NL" === c.va || null; + return this.o = "NL" === c.ya || null; }; this.type = "cat"; }(); - a.SQa = new function() { + a.s1a = new function() { this.getValue = function(a, b, c) { - return this.l = "NO" === c.va || null; + return this.o = "NO" === c.ya || null; }; this.type = "cat"; }(); - a.TQa = new function() { + a.t1a = new function() { this.getValue = function(a, b, c) { - return this.l = "NZ" === c.va || null; + return this.o = "NZ" === c.ya || null; }; this.type = "cat"; }(); - a.UQa = new function() { + a.u1a = new function() { this.getValue = function(a, b, c) { - return this.l = "OM" === c.va || null; + return this.o = "OM" === c.ya || null; }; this.type = "cat"; }(); - a.VQa = new function() { + a.v1a = new function() { this.getValue = function(a, b, c) { - return this.l = "PA" === c.va || null; + return this.o = "PA" === c.ya || null; }; this.type = "cat"; }(); - a.WQa = new function() { + a.w1a = new function() { this.getValue = function(a, b, c) { - return this.l = "PE" === c.va || null; + return this.o = "PE" === c.ya || null; }; this.type = "cat"; }(); - a.XQa = new function() { + a.x1a = new function() { this.getValue = function(a, b, c) { - return this.l = "PF" === c.va || null; + return this.o = "PF" === c.ya || null; }; this.type = "cat"; }(); - a.YQa = new function() { + a.y1a = new function() { this.getValue = function(a, b, c) { - return this.l = "PH" === c.va || null; + return this.o = "PH" === c.ya || null; }; this.type = "cat"; }(); - a.ZQa = new function() { + a.z1a = new function() { this.getValue = function(a, b, c) { - return this.l = "PK" === c.va || null; + return this.o = "PK" === c.ya || null; }; this.type = "cat"; }(); - a.$Qa = new function() { + a.A1a = new function() { this.getValue = function(a, b, c) { - return this.l = "PL" === c.va || null; + return this.o = "PL" === c.ya || null; }; this.type = "cat"; }(); - a.aRa = new function() { + a.B1a = new function() { this.getValue = function(a, b, c) { - return this.l = "PT" === c.va || null; + return this.o = "PT" === c.ya || null; }; this.type = "cat"; }(); - a.bRa = new function() { + a.C1a = new function() { this.getValue = function(a, b, c) { - return this.l = "PY" === c.va || null; + return this.o = "PY" === c.ya || null; }; this.type = "cat"; }(); - a.cRa = new function() { + a.D1a = new function() { this.getValue = function(a, b, c) { - return this.l = "QA" === c.va || null; + return this.o = "QA" === c.ya || null; }; this.type = "cat"; }(); - a.dRa = new function() { + a.E1a = new function() { this.getValue = function(a, b, c) { - return this.l = "RO" === c.va || null; + return this.o = "RO" === c.ya || null; }; this.type = "cat"; }(); - a.eRa = new function() { + a.F1a = new function() { this.getValue = function(a, b, c) { - return this.l = "RS" === c.va || null; + return this.o = "RS" === c.ya || null; }; this.type = "cat"; }(); - a.fRa = new function() { + a.G1a = new function() { this.getValue = function(a, b, c) { - return this.l = "RU" === c.va || null; + return this.o = "RU" === c.ya || null; }; this.type = "cat"; }(); - a.gRa = new function() { + a.H1a = new function() { this.getValue = function(a, b, c) { - return this.l = "SA" === c.va || null; + return this.o = "SA" === c.ya || null; }; this.type = "cat"; }(); - a.hRa = new function() { + a.I1a = new function() { this.getValue = function(a, b, c) { - return this.l = "SE" === c.va || null; + return this.o = "SE" === c.ya || null; }; this.type = "cat"; }(); - a.iRa = new function() { + a.J1a = new function() { this.getValue = function(a, b, c) { - return this.l = "SG" === c.va || null; + return this.o = "SG" === c.ya || null; }; this.type = "cat"; }(); - a.jRa = new function() { + a.K1a = new function() { this.getValue = function(a, b, c) { - return this.l = "SV" === c.va || null; + return this.o = "SV" === c.ya || null; }; this.type = "cat"; }(); - a.kRa = new function() { + a.L1a = new function() { this.getValue = function(a, b, c) { - return this.l = "SX" === c.va || null; + return this.o = "SX" === c.ya || null; }; this.type = "cat"; }(); - a.lRa = new function() { + a.M1a = new function() { this.getValue = function(a, b, c) { - return this.l = "TH" === c.va || null; + return this.o = "TH" === c.ya || null; }; this.type = "cat"; }(); - a.mRa = new function() { + a.N1a = new function() { this.getValue = function(a, b, c) { - return this.l = "TR" === c.va || null; + return this.o = "TR" === c.ya || null; }; this.type = "cat"; }(); - a.nRa = new function() { + a.O1a = new function() { this.getValue = function(a, b, c) { - return this.l = "TT" === c.va || null; + return this.o = "TT" === c.ya || null; }; this.type = "cat"; }(); - a.oRa = new function() { + a.P1a = new function() { this.getValue = function(a, b, c) { - return this.l = "TW" === c.va || null; + return this.o = "TW" === c.ya || null; }; this.type = "cat"; }(); - a.pRa = new function() { + a.Q1a = new function() { this.getValue = function(a, b, c) { - return this.l = "US" === c.va || null; + return this.o = "US" === c.ya || null; }; this.type = "cat"; }(); - a.qRa = new function() { + a.R1a = new function() { this.getValue = function(a, b, c) { - return this.l = "UY" === c.va || null; + return this.o = "UY" === c.ya || null; }; this.type = "cat"; }(); - a.rRa = new function() { + a.S1a = new function() { this.getValue = function(a, b, c) { - return this.l = "VE" === c.va || null; + return this.o = "VE" === c.ya || null; }; this.type = "cat"; }(); - a.sRa = new function() { + a.T1a = new function() { this.getValue = function(a, b, c) { - return this.l = "ZA" === c.va || null; + return this.o = "ZA" === c.ya || null; }; this.type = "cat"; }(); - a.a7a = new function() { + a.alb = new function() { this.getValue = function(a, b, c) { - return this.l = 1 === c.gf || null; + return this.o = 1 === c.Lf || null; }; this.type = "cat"; }(); - a.b7a = new function() { + a.blb = new function() { this.getValue = function(a, b, c) { - return this.l = 10 === c.gf || null; + return this.o = 10 === c.Lf || null; }; this.type = "cat"; }(); - a.c7a = new function() { + a.clb = new function() { this.getValue = function(a, b, c) { - return this.l = 11 === c.gf || null; + return this.o = 11 === c.Lf || null; }; this.type = "cat"; }(); - a.d7a = new function() { + a.dlb = new function() { this.getValue = function(a, b, c) { - return this.l = 12 === c.gf || null; + return this.o = 12 === c.Lf || null; }; this.type = "cat"; }(); - a.e7a = new function() { + a.elb = new function() { this.getValue = function(a, b, c) { - return this.l = 13 === c.gf || null; + return this.o = 13 === c.Lf || null; }; this.type = "cat"; }(); - a.f7a = new function() { + a.glb = new function() { this.getValue = function(a, b, c) { - return this.l = 14 === c.gf || null; + return this.o = 14 === c.Lf || null; }; this.type = "cat"; }(); - a.g7a = new function() { + a.hlb = new function() { this.getValue = function(a, b, c) { - return this.l = 15 === c.gf || null; + return this.o = 15 === c.Lf || null; }; this.type = "cat"; }(); - a.h7a = new function() { + a.ilb = new function() { this.getValue = function(a, b, c) { - return this.l = 16 === c.gf || null; + return this.o = 16 === c.Lf || null; }; this.type = "cat"; }(); - a.i7a = new function() { + a.jlb = new function() { this.getValue = function(a, b, c) { - return this.l = 17 === c.gf || null; + return this.o = 17 === c.Lf || null; }; this.type = "cat"; }(); - a.j7a = new function() { + a.klb = new function() { this.getValue = function(a, b, c) { - return this.l = 18 === c.gf || null; + return this.o = 18 === c.Lf || null; }; this.type = "cat"; }(); - a.k7a = new function() { + a.llb = new function() { this.getValue = function(a, b, c) { - return this.l = 19 === c.gf || null; + return this.o = 19 === c.Lf || null; }; this.type = "cat"; }(); - a.l7a = new function() { + a.mlb = new function() { this.getValue = function(a, b, c) { - return this.l = 2 === c.gf || null; + return this.o = 2 === c.Lf || null; }; this.type = "cat"; }(); - a.m7a = new function() { + a.nlb = new function() { this.getValue = function(a, b, c) { - return this.l = 20 === c.gf || null; + return this.o = 20 === c.Lf || null; }; this.type = "cat"; }(); - a.n7a = new function() { + a.olb = new function() { this.getValue = function(a, b, c) { - return this.l = 21 === c.gf || null; + return this.o = 21 === c.Lf || null; }; this.type = "cat"; }(); - a.o7a = new function() { + a.plb = new function() { this.getValue = function(a, b, c) { - return this.l = 22 === c.gf || null; + return this.o = 22 === c.Lf || null; }; this.type = "cat"; }(); - a.p7a = new function() { + a.qlb = new function() { this.getValue = function(a, b, c) { - return this.l = 23 === c.gf || null; + return this.o = 23 === c.Lf || null; }; this.type = "cat"; }(); - a.q7a = new function() { + a.rlb = new function() { this.getValue = function(a, b, c) { - return this.l = 3 === c.gf || null; + return this.o = 3 === c.Lf || null; }; this.type = "cat"; }(); - a.r7a = new function() { + a.slb = new function() { this.getValue = function(a, b, c) { - return this.l = 4 === c.gf || null; + return this.o = 4 === c.Lf || null; }; this.type = "cat"; }(); - a.s7a = new function() { + a.tlb = new function() { this.getValue = function(a, b, c) { - return this.l = 5 === c.gf || null; + return this.o = 5 === c.Lf || null; }; this.type = "cat"; }(); - a.t7a = new function() { + a.ulb = new function() { this.getValue = function(a, b, c) { - return this.l = 6 === c.gf || null; + return this.o = 6 === c.Lf || null; }; this.type = "cat"; }(); - a.u7a = new function() { + a.vlb = new function() { this.getValue = function(a, b, c) { - return this.l = 7 === c.gf || null; + return this.o = 7 === c.Lf || null; }; this.type = "cat"; }(); - a.v7a = new function() { + a.wlb = new function() { this.getValue = function(a, b, c) { - return this.l = 8 === c.gf || null; + return this.o = 8 === c.Lf || null; }; this.type = "cat"; }(); - a.w7a = new function() { + a.xlb = new function() { this.getValue = function(a, b, c) { - return this.l = 9 === c.gf || null; + return this.o = 9 === c.Lf || null; }; this.type = "cat"; }(); - a.lab = new function() { + a.Hpb = new function() { this.update = function(a) { - "down" === a.direction && this.l++; + "down" === a.direction && this.o++; }; this.getValue = function() { - return this.l; + return this.o; }; this.type = "num"; - this.l = 0; + this.o = 0; }(); - a.nab = new function() { + a.Jpb = new function() { this.update = function(a) { - "right" === a.direction && this.l++; + "right" === a.direction && this.o++; }; this.getValue = function() { - return this.l; + return this.o; }; this.type = "num"; - this.l = 0; + this.o = 0; }(); - a.mab = new function() { + a.Ipb = new function() { this.update = function(a) { - "left" === a.direction && this.l++; + "left" === a.direction && this.o++; }; this.getValue = function() { - return this.l; + return this.o; }; this.type = "num"; - this.l = 0; + this.o = 0; }(); - a.oab = new function() { + a.Kpb = new function() { this.update = function(a) { - "up" === a.direction && this.l++; + "up" === a.direction && this.o++; }; this.getValue = function() { - return this.l; + return this.o; }; this.type = "num"; - this.l = 0; + this.o = 0; }(); - a.Z1a = new function() { - this.l = 0; + a.$eb = new function() { + this.o = 0; this.update = function(a) { - this.l = Math.max(this.l, a.rowIndex); + this.o = Math.max(this.o, a.rowIndex); }; this.getValue = function() { - return this.l; + return this.o; }; this.type = "num"; }(); - a.$1a = new function() { - this.l = 0; + a.cfb = new function() { + this.o = 0; this.update = function(a) { - this.l = Math.max(this.l, a.DY); + this.o = Math.max(this.o, a.v1); }; this.getValue = function() { - return this.l; + return this.o; }; this.type = "num"; }(); - a.g2a = new function() { - this.pD = this.l = 0; + a.jfb = new function() { + this.aG = this.o = 0; this.update = function(a) { - this.pD++; - this.l = 1 * (this.l + a.rowIndex) / this.pD; + this.aG++; + this.o = 1 * (this.o + a.rowIndex) / this.aG; }; this.getValue = function() { - return this.l; + return this.o; }; this.type = "num"; }(); - a.h2a = new function() { - this.pD = this.l = 0; + a.kfb = new function() { + this.aG = this.o = 0; this.update = function(a) { - this.pD++; - return this.l = 1 * (this.l + a.DY) / this.pD; + this.aG++; + return this.o = 1 * (this.o + a.v1) / this.aG; }; this.getValue = function() { - return this.l; + return this.o; }; this.type = "num"; }(); - a.b6a = new function() { + a.Tjb = new function() { this.getValue = function(a, b, c) { - return this.l = c.DY + b; + return this.o = c.v1 + b; }; this.type = "num"; }(); - a.c6a = new function() { + a.Ujb = new function() { this.getValue = function(a, b, c) { - return this.l = c.rowIndex + a; + return this.o = c.rowIndex + a; }; this.type = "num"; }(); - d.prototype.Kt = function(a) { - return this.Vea(this.I["0"].Kqa(a), a); + c.prototype.Bv = function(a) { + return this.fla(this.J["0"].vza(a), a); }; - d.prototype.Vea = function(a, b) { - return "string" == typeof a ? this.Vea(this.I[a].Kqa(b), b) : a; + c.prototype.fla = function(a, b) { + return "string" == typeof a ? this.fla(this.J[a].vza(b), b) : a; }; - b.prototype.Kqa = function(a) { - switch (this.Y_a) { + b.prototype.vza = function(a) { + switch (this.Lcb) { case 0: - switch (a.zd[this.zI].type) { + switch (a.Tc[this.LL].type) { case "cat": - return null === a.zd[this.zI].value ? this.Una : "missing" == a.zd[this.zI].value ? this.J2 : this.nta; + return null === a.Tc[this.LL].value ? this.bwa : "missing" == a.Tc[this.LL].value ? this.L7 : this.zCa; case "num": - return null === a.zd[this.zI].value ? this.J2 : a.zd[this.zI].value < this.split ? this.nta : this.Una; + return null === a.Tc[this.LL].value ? this.L7 : a.Tc[this.LL].value < this.split ? this.zCa : this.bwa; default: - return this.J2; + return this.L7; } - case 1: - return this.Kt; - default: - return this.Kt; - } - }; - c.declare({ - DG: ["modelSelector", "modelone"], - jPa: ["colEpisodeList", 5], - KZa: ["holdDuration", 15E3], - xqa: ["rowFirst", 2], - Xga: ["colFirst", 5], - zqa: ["rowScroll", 2], - Yga: ["colScroll", 6], - r8a: ["rowScrollHorizontal", 6], - D8a: ["searchTop", 3], - Iha: ["cwFirst", 2], - PF: ["horizontalItemsFocusedMode", 3], - Z_a: ["itemsPerRank", 1], - W1a: ["maxNumberPayloadsStored", 10], - dna: ["maxNumberTitlesScheduled", 5], - Ymb: ["enableDetailedLogging", !0], - lsb: ["rowStep", 20], - Jlb: ["colStep", 15], - Lqb: ["pageRows", 100], - Kqb: ["pageColumns", 75], - Z1: ["maskParamsList", new function() { + case 1: + return this.Bv; + default: + return this.Bv; + } + }; + d.declare({ + KJ: ["modelSelector", "modelone"], + H_a: ["colEpisodeList", 5], + ebb: ["holdDuration", 15E3], + fza: ["rowFirst", 2], + Ena: ["colFirst", 5], + hza: ["rowScroll", 2], + Fna: ["colScroll", 6], + xmb: ["rowScrollHorizontal", 6], + Rmb: ["searchTop", 3], + Foa: ["cwFirst", 2], + LI: ["horizontalItemsFocusedMode", 3], + Mcb: ["itemsPerRank", 1], + Web: ["maxNumberPayloadsStored", 10], + bva: ["maxNumberTitlesScheduled", 5], + CDb: ["enableDetailedLogging", !0], + ZHb: ["rowStep", 20], + pCb: ["colStep", 15], + VGb: ["pageRows", 100], + UGb: ["pageColumns", 75], + h7: ["maskParamsList", new function() { var a, b; - this.Z1 = []; - this.Zoa = {}; - this.yQ = 20; - this.BM = 15; + this.h7 = []; + this.zxa = {}; + this.wU = 20; + this.XP = 15; for (a = 0; 100 > a; a++) - for (b = 0; 75 > b; b++) Math.floor(a / this.yQ) + "_" + Math.floor(b / this.BM) in this.Zoa || (this.Zoa[Math.floor(a / this.yQ) + "_" + Math.floor(b / this.BM)] = 1, this.Z1.push(new h(0, 0, 0, 0, Math.floor(a / this.yQ), Math.floor(b / this.BM)))); - }().Z1], - I: ["nodes", new d().I], + for (b = 0; 75 > b; b++) Math.floor(a / this.wU) + "_" + Math.floor(b / this.XP) in this.zxa || (this.zxa[Math.floor(a / this.wU) + "_" + Math.floor(b / this.XP)] = 1, this.h7.push(new h(0, 0, 0, 0, Math.floor(a / this.wU), Math.floor(b / this.XP)))); + }().h7], + J: ["nodes", new c().J], mapping: ["mapping", { - $1a: "0", - h2a: "1", - Z1a: "2", - g2a: "3", - $Ma: "4", - oab: "5", - mab: "6", - nab: "7", - lab: "8", - c6a: "9", - b6a: "10", - x0a: "11", - y0a: "12", - A0a: "13", - B0a: "14", - z0a: "15", - C0a: "16", - D0a: "17", - E0a: "18", - F0a: "19", - G0a: "20", - H0a: "21", - I0a: "22", - J0a: "23", - K0a: "24", - L0a: "25", - M0a: "26", - a7a: "27", - b7a: "28", - c7a: "29", - d7a: "30", - e7a: "31", - f7a: "32", - g7a: "33", - h7a: "34", - i7a: "35", - j7a: "36", - k7a: "37", - l7a: "38", - m7a: "39", - n7a: "40", - o7a: "41", - p7a: "42", - q7a: "43", - r7a: "44", - s7a: "45", - t7a: "46", - u7a: "47", - v7a: "48", - w7a: "49", - UPa: "50", - VPa: "51", - WPa: "52", - XPa: "53", - YPa: "54", - ZPa: "55", - $Pa: "56", - aQa: "57", - bQa: "58", - cQa: "59", - dQa: "60", - eQa: "61", - fQa: "62", - gQa: "63", - hQa: "64", - iQa: "65", - jQa: "66", - kQa: "67", - lQa: "68", - mQa: "69", - nQa: "70", - oQa: "71", - pQa: "72", - qQa: "73", - rQa: "74", - sQa: "75", - tQa: "76", - uQa: "77", - vQa: "78", - wQa: "79", - xQa: "80", - yQa: "81", - zQa: "82", - AQa: "83", - BQa: "84", - CQa: "85", - DQa: "86", - EQa: "87", - FQa: "88", - GQa: "89", - HQa: "90", - IQa: "91", - JQa: "92", - KQa: "93", - LQa: "94", - MQa: "95", - NQa: "96", - OQa: "97", - PQa: "98", - QQa: "99", - RQa: "100", - SQa: "101", - TQa: "102", - UQa: "103", - VQa: "104", - WQa: "105", - XQa: "106", - YQa: "107", - ZQa: "108", - $Qa: "109", - aRa: "110", - bRa: "111", - cRa: "112", - dRa: "113", - eRa: "114", - fRa: "115", - gRa: "116", - hRa: "117", - iRa: "118", - jRa: "119", - kRa: "120", - lRa: "121", - mRa: "122", - nRa: "123", - oRa: "124", - pRa: "125", - qRa: "126", - rRa: "127", - sRa: "128", - Rcb: "129", - X6a: "130", - j$a: "131", - Eq: "132", - JPa: "133", - mWa: "134", - Jbb: "135", - jbb: "136", - ENa: "137", - e3a: "138", - Ubb: "139", - G5a: "140", - BNa: "141", - DNa: "142", - CNa: "143", - a3a: "144" + cfb: "0", + kfb: "1", + $eb: "2", + jfb: "3", + jYa: "4", + Kpb: "5", + Ipb: "6", + Jpb: "7", + Hpb: "8", + Ujb: "9", + Tjb: "10", + qdb: "11", + rdb: "12", + tdb: "13", + udb: "14", + sdb: "15", + vdb: "16", + wdb: "17", + xdb: "18", + ydb: "19", + zdb: "20", + Adb: "21", + Bdb: "22", + Cdb: "23", + Ddb: "24", + Edb: "25", + Fdb: "26", + alb: "27", + blb: "28", + clb: "29", + dlb: "30", + elb: "31", + glb: "32", + hlb: "33", + ilb: "34", + jlb: "35", + klb: "36", + llb: "37", + mlb: "38", + nlb: "39", + olb: "40", + plb: "41", + qlb: "42", + rlb: "43", + slb: "44", + tlb: "45", + ulb: "46", + vlb: "47", + wlb: "48", + xlb: "49", + u0a: "50", + v0a: "51", + w0a: "52", + x0a: "53", + y0a: "54", + z0a: "55", + A0a: "56", + B0a: "57", + C0a: "58", + D0a: "59", + E0a: "60", + F0a: "61", + G0a: "62", + H0a: "63", + I0a: "64", + J0a: "65", + K0a: "66", + L0a: "67", + M0a: "68", + N0a: "69", + O0a: "70", + P0a: "71", + Q0a: "72", + R0a: "73", + S0a: "74", + T0a: "75", + U0a: "76", + V0a: "77", + W0a: "78", + X0a: "79", + Y0a: "80", + Z0a: "81", + $0a: "82", + a1a: "83", + b1a: "84", + c1a: "85", + d1a: "86", + e1a: "87", + f1a: "88", + g1a: "89", + h1a: "90", + i1a: "91", + j1a: "92", + k1a: "93", + l1a: "94", + m1a: "95", + n1a: "96", + o1a: "97", + p1a: "98", + q1a: "99", + r1a: "100", + s1a: "101", + t1a: "102", + u1a: "103", + v1a: "104", + w1a: "105", + x1a: "106", + y1a: "107", + z1a: "108", + A1a: "109", + B1a: "110", + C1a: "111", + D1a: "112", + E1a: "113", + F1a: "114", + G1a: "115", + H1a: "116", + I1a: "117", + J1a: "118", + K1a: "119", + L1a: "120", + M1a: "121", + N1a: "122", + O1a: "123", + P1a: "124", + Q1a: "125", + R1a: "126", + S1a: "127", + T1a: "128", + Hsb: "129", + Wkb: "130", + Eob: "131", + pi: "132", + i0a: "133", + T7a: "134", + erb: "135", + Jqb: "136", + PYa: "137", + xgb: "138", + rrb: "139", + vjb: "140", + MYa: "141", + OYa: "142", + NYa: "143", + tgb: "144" }], - zd: ["features", a], - ukb: ["_modelName", "tree"], - mkb: ["_format", "xgboost"], - tkb: ["_itemsToKeep", 5], - skb: ["_itemsThreshold", null], - rlb: ["cacheLimit", 20] - }); - f.P = { - config: c, - Rpb: h, - mmb: b - }; - }, function(f, c, a) { - var d; + Tc: ["features", a], + iBb: ["_modelName", "tree"], + aBb: ["_format", "xgboost"], + hBb: ["_itemsToKeep", 5], + gBb: ["_itemsThreshold", null], + bCb: ["cacheLimit", 20] + }); + g.M = { + config: d, + hGb: h, + SCb: b + }; + }, function(g, d, a) { + var c; function b(a) { - for (var b = "", c = 0; c < a.length; c++) b += a[c].dg + "|"; + for (var b = "", f = 0; f < a.length; f++) b += a[f].Ie + "|"; return b; } - d = a(163); - f.P = { + c = a(170); + g.M = { assert: function(a, b) { if (!a) throw Error("PlayPredictionModel assertion failed" + (b ? " : " + b : "")); }, - Yob: function(a, b, c) { - Array.prototype.splice.apply(a, [b, 0].concat(c)); + rFb: function(a, b, f) { + Array.prototype.splice.apply(a, [b, 0].concat(f)); }, - SWa: function(a) { - for (var b = [], c = 0; c < a.length; c++) - if (a[c].context === d.wC.Wua) { - b = a[c].list; + z8a: function(a) { + for (var b = [], f = 0; f < a.length; f++) + if (a[f].context === c.pF.vEa) { + b = a[f].list; break; } return b; }, - GWa: function(a) { - for (var b = [], c = 0; c < a.length; c++) - if (a[c].context === d.wC.Wta) { - b = a[c].list; + n8a: function(a) { + for (var b = [], f = 0; f < a.length; f++) + if (a[f].context === c.pF.uDa) { + b = a[f].list; break; } return b; }, - gTa: function(a, c) { - for (var d = 0, h, p, l, f = 0, v = a.length - 1; f < v; f++) { - h = b(a[f].list || []); - l = !1; - for (var z = 0, k = c.length; z < k; z++) - if (p = b(c[z].list || []), p == h) { - l = !0; + a4a: function(a, c) { + for (var f = 0, d, m, g, k = 0, h = a.length - 1; k < h; k++) { + d = b(a[k].list || []); + g = !1; + for (var v = 0, y = c.length; v < y; v++) + if (m = b(c[v].list || []), m == d) { + g = !0; break; - } if (!1 === l) { - d = f; + } if (!1 === g) { + f = k; break; } } - return d; - }, - U3a: function(a, b, c) { - for (var d = [], g, h = 0; h < Math.min(b, a.length); h++) g = a[h].list || [], d = d.concat(g.slice(0, c)); - return d; + return f; }, - T3a: function(a, b) { - for (var c = [], d, h = 0; h < a.length && (d = a[h].list || [], d = d.slice(0, Math.min(d.length, b)), b -= d.length, c = c.concat(d), 0 !== b); h++); + khb: function(a, b, f) { + for (var c = [], d, g = 0; g < Math.min(b, a.length); g++) d = a[g].list || [], c = c.concat(d.slice(0, f)); return c; }, - S3a: function(a, b, c) { - var d; - b < a.length && 0 <= b && (a = a[b].list || [], c < a.length && (d = a[c])); - return d; + jhb: function(a, b) { + for (var f = [], c, d = 0; d < a.length && (c = a[d].list || [], c = c.slice(0, Math.min(c.length, b)), b -= c.length, f = f.concat(c), 0 !== b); d++); + return f; }, - $ia: function(a) { - for (var b = {}, c = a.length, h, p = 0; p < c; p++) { - h = a[p].list || []; - for (var f = 0; f < h.length; f++) - if (h[f].property === d.Sx.QC || h[f].property === d.Sx.E7) { - b.Mg = p; - b.gi = f; + ihb: function(a, b, f) { + var c; + b < a.length && 0 <= b && (a = a[b].list || [], f < a.length && (c = a[f])); + return c; + }, + tqa: function(a) { + for (var b = {}, f = a.length, d, g = 0; g < f; g++) { + d = a[g].list || []; + for (var r = 0; r < d.length; r++) + if (d[r].property === c.cA.EF || d[r].property === c.cA.vca) { + b.fh = g; + b.Ti = r; break; } } - void 0 === b.Mg && void 0 === b.gi && (b.Mg = 0, b.gi = 0); + void 0 === b.fh && void 0 === b.Ti && (b.fh = 0, b.Ti = 0); return b; } }; - }, function(f, c, a) { - var b, d, h, l, g, m; - Object.defineProperty(c, "__esModule", { + }, function(g, d, a) { + var b, c, h, k, f, p, m, r, u, x; + Object.defineProperty(d, "__esModule", { value: !0 }); - b = a(165); - d = a(180); - h = a(57); - l = a(19); - g = a(80); - m = a(5); - c.ARa = function(a, c, f) { - var y, C, F, N, T; - - function p() { - N.set(!1); - k() < f - 1 && a.play(); + g = a(19); + b = a(251); + c = a(9); + h = a(5); + k = a(2); + f = a(3); + p = a(12); + m = a(6); + g.Ge(k.I.Kda, function(a) { + var g; + g = f.zd("FileSystem"); + "fs" != c.config.iV ? a(h.Bb) : (p.sa(0 < b.y8), m.$Ka(m.PERSISTENT, b.y8, function(b) { + d.q3 = b; + a(h.Bb); + }, function() { + g.error("Error calling requestFileSystem"); + a({ + T: k.H.jha + }); + })); + }); + r = {}; + u = { + create: !0 + }; + x = { + create: !0, + exclusive: !0 + }; + d.aEb = function(a, b) { + d.q3.root.getDirectory(a, u, function(a) { + b({ + S: !0, + tDb: a + }); + }, function() { + b({ + T: k.H.ROa + }); + }); + }; + d.bEb = function(a, b) { + a.createReader().readEntries(function(a) { + var d; + for (var f = [], c = a.length; c--;) { + d = a[c]; + d.isFile && f.push(d.name); + } + b({ + S: !0, + $Db: f + }); + }, function() { + b({ + T: k.H.SOa + }); + }); + }; + d.cEb = function(a, b, f) { + function c() { + f({ + T: k.H.OOa + }); } - - function r() { - N.set(!0); - a.pause(); + a.getFile(b, r, function(a) { + a.file(function(b) { + var d; + d = new FileReader(); + d.onloadend = function() { + f({ + S: !0, + text: d.result, + S6a: a + }); + }; + d.onerror = c; + d.readAsText(b); + }, c); + }, c); + }; + d.eEb = function(a, b, f, c, d) { + function g() { + d && d({ + T: k.H.QOa + }); } - function u() { - var b; - b = k() >= f || a.getEnded(); - b && a.pause(); - N.value ? r() : p(); - T.set(b); - } - - function k() { - return g.ll(a.getCurrentTime() - c, 0, f); - } - - function x(b) { - a.seek(g.ll(c + b, c, c + f - 2E3)); - u(); - } - y = Object.create(a); - C = new h.Ci(); - F = l.Sfa([b.vpa, b.upa]); - N = new d.sd(!1, function() { - C.mc(b.vpa); - }); - T = new d.sd(!1, function() { - C.mc(b.upa); - }); - x(c || 0); - a.addEventListener(b.C6a, function() { - var b; - b = a.getDuration(); - c = m.ue(b - 2E3, c || 0); - f = m.ue(b - c, f || b); - x(0); - }); - a.addEventListener(b.B6a, u); - l.oa(y, { - addEventListener: function(b) { - (F[b] ? C.addListener : a.addEventListener).apply(null, arguments); - }, - removeEventListener: function(b) { - (F[b] ? C.removeListener : a.removeEventListener).apply(null, arguments); - }, - play: p, - pause: r, - getPaused: function() { - return N.value; - }, - getEnded: function() { - return T.value; - }, - getCurrentTime: k, - getDuration: function() { - return f; - }, - seek: x - }); - return y; - }; - }, function(f, c, a) { - var b, d, h, l; - Object.defineProperty(c, "__esModule", { - value: !0 - }); - b = a(16); - d = a(3); - h = a(37); - l = a(244); - c.Voa = {}; - c.URa = function(a, f, p, r) { - var m, z; - - function g(h) { - h.newValue === b.wu && (d.log.trace("removing movieId from playback map ", a), z.state.removeListener(g), delete c.Voa[a]); - } - m = d.Z.get(h.Rg); - z = new l.CDa(a, f, p, r, m); - c.Voa[a] = z; - d.log.trace("adding movieId to playback map", a); - z.state.addListener(g); - return z; - }; - }, function(f, c, a) { - var b, d, h, l, g, m; - Object.defineProperty(c, "__esModule", { - value: !0 - }); - b = a(51); - d = a(4); - h = a(60); - l = a(16); - g = a(19); - m = a(2); - c.pxa = function(a, c) { - function p(h) { - var p, f; - p = h.error || h; - f = g.yc(p); - c.error("uncaught exception", p, f); - (p = (p = p && p.stack) && d.config.Bsa && d.config.Ybb ? 0 <= p.indexOf(d.config.Bsa) : void 0) && (h && h.stopImmediatePropagation && h.stopImmediatePropagation(), a.Hh(new b.rj(m.v.HFa))); - } - - function f() { - h.Bd.removeListener(h.j0, p); - a.removeEventListener(l.Qe, f); - a.removeEventListener(l.mg, f); - } - try { - h.Bd.addListener(h.j0, p); - a.addEventListener(l.Qe, f); - d.config.f_a && a.addEventListener(l.mg, f); - } catch (z) { - c.error("exception in exception handler ", z); - } - }; - }, function(f, c, a) { - var d, h, l, g, m, p, r, u, v, z, k, G, x, y, C, F, N, T, n, q, O; - - function b() { - var a; - a = O.Z6.apply(this, [].concat(Xc(arguments))) || this; - a.EMa = void 0; - return a; - } - Object.defineProperty(c, "__esModule", { - value: !0 - }); - d = a(18); - h = a(89); - l = a(184); - g = a(119); - m = a(136); - p = a(167); - r = a(6); - u = a(243); - v = a(4); - z = a(16); - k = a(25); - G = a(17); - x = a(3); - a(83); - y = a(2); - C = a(19); - F = a(8); - N = a(147); - T = a(7); - n = a(5); - q = a(15); - O = a(285); - oa(b, O.Z6); - b.prototype.load = function(a) { - var b; - b = this; - this.load = r.T6; - this.$oa = a; - this.state.value == z.gy && (this.log.info("Playback loading", this), this.w3a(), this.Yc("asl_load_start"), q.$a(d.YO) ? q.$a(d.z1) ? this.Yc("asl_ended") : this.Yc("asl_in_progress") : this.Yc("asl_not_started"), d.kG(function(a) { - b.Yc("asl_load_complete"); - a.K ? b.DRa() : b.Wk(a.errorCode || y.v.U8, a); - })); - }; - b.prototype.H5a = function() { - var a; - try { - if (this.state.value == z.qj) { - this.n2 = this.duration = this.Sa.duration; - a = { - width: 1, - height: 1 - }; - this.Ud.value.Db.forEach(function(b) { - a.width * a.height < b.width * b.height && (a.width = b.width, a.height = b.height); - }); - this.Gx = a; - this.rm = x.Z.get(N.QI).nX({ - TB: T.Cb(this.rm), - M: this.M, - bH: T.Cb(this.duration), - Pb: this.Pb - }).qa(T.Ma); - this.gSa(); - } - } catch (ja) { - this.Wk(y.v.wya, { - R: y.u.te, - za: C.yc(ja) - }); - } - }; - b.prototype.DRa = function() { - try { - this.profile = h.He.profile; - this.dj = l.TAa(this); - this.KA = new g.PAa(this); - v.config.JOa && new u.pxa(this, this.log); - v.config.DE && this.DE(this); - this.zcb(); - } catch (B) { - this.Wk(y.v.vya, { - R: y.u.te, - za: C.yc(B) - }); - } - }; - b.prototype.zcb = function() { - this.Gg ? this.Hh(this.Gg) : q.Gla(this.M) ? this.XOa() : this.Wk(y.v.kya); - }; - b.prototype.XOa = function() { - var a; - a = m.CB.dra; - a ? a.K ? this.BY() : this.Wk(y.v.v9, a) : (F.ea(!v.config.pN), this.aX()); - }; - b.prototype.BY = function() { - var a; - a = this; - !this.background && v.config.BY ? z.xaa(function() { - a.aX(); - }, this) : this.aX(); - }; - b.prototype.aX = function() { - var a; - a = this; - this.state.value == z.qj && (v.config.UZ && !this.KO() ? m.CB.Yy(z.kDa, function(b) { - b.K ? (a.eP = b.eP, v.config.RQ ? a.kE() : a.mB()) : a.Wk(y.v.u9); - }) : v.config.RQ ? this.kE() : this.mB()); - }; - b.prototype.mB = function() { - var a; - a = this; - this.state.value == z.qj && (this.Yc("ic"), this.q5a.V8a(function(b) { - b.error && a.log.error("Error sending persisted playdata", x.jk(b)); - try { - a.kE(); - } catch (V) { - a.log.error("playback.authorize threw an exception", V); - a.Wk(y.v.Ita, { - R: y.u.te, - za: C.yc(V) - }); - } - })); - }; - b.prototype.kE = function() { - var a, b; - a = this; - if (this.state.value == z.qj) { - this.log.info("Authorizing", this); - b = G.Ra(); - this.Yc("ats"); - this.dj.kE(function(c) { - var d, g, h, p; - if (a.state.value == z.qj) { - a.Yc("at"); - d = a.Sa; - a.G0({ - pr_ats: d && q.$a(d.ax) ? d.ax : b, - pr_at: d && q.$a(d.eB) ? d.eB : G.Ra() - }); - if (!c.K) switch (c.method) { - case "register": - a.Wk(y.v.xAa, c); - return; - case "authenticationrenewal": - a.Wk(y.v.wAa, c); - return; - default: - a.Wk(y.v.y$, c); - return; - } - c = function(b) { - C.Kb(b.EZ, function(b, c) { - q.e1(c) && a.Ej.forEach(function(a) { - a.id === b && k.O6(g, a); - }); + function p(a) { + a.createWriter(function(b) { + try { + b.onwriteend = function() { + b.onwriteend = null; + b.onerror = null; + b.truncate(b.position); + d && d({ + S: !0, + S6a: a }); }; - try { - a.gA = v.config.gA; - a.hA = v.config.hA; - a.lOa && (a.gA = [a.lOa.J]); - a.mOa && (a.hA = [a.mOa.J]); - a.gA = a.gc.value.Db.ksa(a.gA); - a.hA = a.Ud.value.Db.ksa(a.hA); - a.p_a = a.gc.value.Db.Uga(a.gA[0] || 0); - a.t_a = a.Ud.value.Db.Uga(a.hA[0] || 0); - g = []; - n.map.call(a.gc.value.Db, c); - n.map.call(a.Ud.value.Db, c); - n.sort.call(g, function(a, b) { - return a.Fd - b.Fd; - }); - a.mpa = g[0]; - a.Wsb = g; - h = {}; - g.forEach(function(a) { - var b; - b = a.location.id; - h[b] || (h[b] = []); - h[b].push(a); - }); - p = []; - C.Kb(h, function(a, b) { - a = b[0].location; - a.Ej = b; - p.push(a); - }); - a.Xsb = p.sort(function(a, b) { - return a.Fd - b.Fd; - }); - a.mpa != a.Ej[0] && a.log.error("Primary CDN does not have downloadUrls for a/v streams", { - CdnId: a.Ej[0].id - }); - } catch (U) { - a.log.error("Exception while picking initial streams", U); - } - a.p_a && a.t_a && g.length ? a.o6a() : a.Wk(y.v.yAa); + b.onerror = g; + b.write(new m.pfa([f])); + } catch (N) { + g(); } - }); + }, g); } + b.createWriter ? p(b) : a.getFile(b, c ? x : u, p, g); }; - b.prototype.o6a = function() { - var a; - a = this; - this.$oa ? (this.log.info("Processing post-authorize", this), this.$oa(this, function(b) { - b.K ? a.Fsa() : a.Wk(y.v.Aya, b); - })) : this.Fsa(); - }; - b.prototype.DE = function(a) { - var c, d; - - function b() { - var b, d; - b = p.Hp.H_() + ""; - d = a.UX[b]; - d || (d = a.UX[b] = []); - d.push(G.Ra()); - c.log.trace("charging change event", { - level: p.Hp.Vja(), - charging: p.Hp.H_() + d.dEb = function(a, b, f) { + function c() { + f && f({ + T: k.H.POa }); } - c = this; - d = p.Hp.Fua; - p.Hp.addEventListener(d, b); - a.addEventListener(z.Qe, function() { - p.Hp.removeEventListener(d, b); - }); + + function d(a) { + a.remove(function() { + f && f(h.Bb); + }, c); + } + b.remove ? d(b) : a.getFile(b, r, d, c); }; - c.CDa = b; - }, function(f, c, a) { - var b, d, h, l, g, m, p, r, u, v, z, k, G, x, y; - Object.defineProperty(c, "__esModule", { + }, function(g, d, a) { + var b, c, h, k, f, p; + Object.defineProperty(d, "__esModule", { value: !0 }); - b = a(90); - d = a(292); - h = a(16); - l = a(4); - g = a(60); - m = a(91); - p = a(14); - r = a(80); - u = a(3); - v = a(107); - z = a(138); - k = a(19); - G = a(5); - x = a(15); - y = a(46); - c.zDa = function(c) { - var V, D, S, da, X, U, ha, ba, ea, ia, ka, ua, la, A, H, P; - - function f() { - if (!X) { - ia = setInterval(O, 1E3); - c.Xf.appendChild(D); - for (var a = ha.length; a--;) ha[a].addListener(B); - for (a = ba.length; a--;) c.addEventListener(ba[a], B); - X = !0; - } - q(); - } + g = a(19); + b = a(9); + c = a(5); + h = a(2); + k = a(12); + f = a(3); + p = a(6); + g.Ge(h.I.Tda, function(a) { + var v, y, w; - function w() { - if (X) { - clearInterval(ia); - ua = ka = void 0; - c.Xf.removeChild(D); - for (var a = ha.length; a--;) ha[a].removeListener(B); - for (a = ba.length; a--;) c.removeEventListener(ba[a], B); - V.lb(); - X = !1; - } + function g() { + p.ZM ? p.ZM.requestQuota(y, m, x) : p.qfa.requestQuota(p.PERSISTENT, y, m, x); } - function C() { - X ? w() : f(); + function m(b) { + b >= y ? (d.y8 = b, a(c.Bb)) : w ? (v.error("Quota request granted insufficent bytes"), a({ + T: h.H.mha + })) : (w = !0, g()); } - function n() { - var a, g, p, f, m, y, w, C, X, F, N, T, n, q, ca, B, ha, Z, O, D, ba, t; - a = []; - a.push({ - Version: "6.0011.853.011", - Esn: b.Bg ? b.Bg.$d : "UNKNOWN", - PBCID: c.DM, - UserAgent: G.Ug + function x() { + v.error("Request quota error"); + a({ + T: h.H.lha }); - try { - p = { - MovieId: c.M, - TrackingId: c.Zf, - Xid: c.aa + " (" + h.Uo.map(function(a) { - return a.aa; - }).join(", ") + ")", - Position: r.kg(c.pc.value), - Duration: r.kg(c.duration), - Volume: G.ve(100 * c.volume.value) + "%" + (c.muted.value ? " (Muted)" : "") - }; - c.Pb.Qf && (p["Segment Position"] = r.kg(c.Ts()), p.Segment = c.W_()); - a.push(p); - } catch (Wb) {} - try { - f = c.Sk ? c.Sk.TZa() : void 0; - a.push({ - "Player state": la[c.state.value], - "Buffering state": A[c.Bl.value] + (x.da(f) ? ", ETA:" + r.kg(f) : ""), - "Rendering state": H[c.Tb.value] - }); - } catch (Wb) {} - try { - m = c.q6() + c.FX(); - y = l.config.c2; - w = c.Et.value; - C = w && w.stream; - X = c.Tl.value; - F = X && X.stream; - N = F ? F.je : ""; - T = c.Ai.value ? c.Ai.value.je : ""; - n = c.Ya[U.G.VIDEO].value; - q = c.Ya[U.G.AUDIO].value; - a.push({ - "Playing bitrate (a/v)": C && F ? C.J + " / " + F.J + " (" + F.width + "x" + F.height + ")" : "?", - "Playing/Buffering vmaf": N + "/" + T, - "Buffering bitrate (a/v)": c.lM.value.J + " / " + c.Ai.value.J, - "Buffer size in Bytes (a/v)": c.FX() + " / " + c.q6(), - "Buffer size in Bytes": m + (y ? " (" + (100 * m / y).toFixed(0) + "% of max)" : ""), - "Buffer size in Seconds (a/v)": r.kg(c.sv()) + " / " + r.kg(c.Ex()), - "Current CDN (a/v)": (q ? q.name + ", Id: " + q.id : "") + " / " + (n ? n.name + ", Id: " + n.id : "") - }); - } catch (Wb) {} - try { - if (c.Et.value && c.Tl.value) { - ca = c.Et.value.stream.track; - B = c.Tl.value.stream; - ha = c.up.value; - Z = u.Z.get(v.ky); - O = Z.QE(c.Ud.value.Db); - D = Z.HM(); - ba = B.le; - t = /hevc/.test(ba) ? "hevc" : /vp9/.test(ba) ? "vp9" : /h264hpl/.test(ba) ? "avchigh" : "avc"; - /hdr/.test(ba) && (t += ", hdr"); - /dv/.test(ba) && (t += ", dv"); - /prk/.test(ba) && (t += ", prk"); - a.push({ - "Audio Track": ca.Dl + ", Id: " + ca.Ab + ", Channels: " + ca.kz + ", Codec: " + D, - "Video Track": "Codec: " + O + " (" + t + ")", - "Timed Text Track": ha ? ha.Dl + ", Profile: " + ha.Q2 + ", Id: " + ha.Ab : "none" - }); - } - } catch (Wb) {} - try { - a.push({ - Framerate: c.Ai.value.RN.toFixed(3), - "Current Dropped Frames": x.da(ka) ? ka : "", - "Total Frames": c.bf.bO(), - "Total Dropped Frames": c.bf.Zv(), - "Total Corrupted Frames": c.bf.CF(), - "Total Frame Delay": c.bf.cO(), - "Main Thread stall/sec": d.Lma ? d.Lma.yXa().join(" ") : "DISABLED", - VideoDiag: z.W1(c.kO()) - }); - } catch (Wb) {} - try { - a.push({ - Throughput: c.ia + " kbps" - }); - } catch (Wb) {} - try { - c.ge && a.push({ - PlaybackOffline: !!c.ge - }); - } catch (Wb) {} - try { - k.Kb(ea, function(a, b) { - g = g || {}; - g[a] = JSON.stringify(b); - }); - g && a.push(g); - } catch (Wb) {} - return a; } + v = f.zd("RequestQuota"); + y = b.config.V$; + 0 < y ? (k.sa(p.ZM || p.qfa), g()) : (d.y8 = 0, a(c.Bb)); + }); + }, function(g, d, a) { + var b, c, h, k, f, p, m, r, u, x, v, y, w; + Object.defineProperty(d, "__esModule", { + value: !0 + }); + b = a(34); + c = a(5); + h = a(19); + k = a(9); + f = a(25); + p = a(21); + m = a(33); + r = a(3); + u = a(2); + x = a(18); + v = a(117); + y = a(6); + w = a(88); + d.Nqb = function() { + var g, l; - function q() { - var a; - if (S.selectionStart == S.selectionEnd) { - a = ""; - n().forEach(function(b) { - a = a ? a + "\n" : ""; - k.Kb(b, function(c) { - a += c + ": " + b[c] + "\n"; - }); - }); - S.style.fontSize = r.ll(G.Xh(D.clientHeight / 60), 8, 18) + "px"; - S.value = a; - } + function a(a) { + var b, c, m; + b = "info"; + c = ""; + m = r.ca.get(v.Hw).Cra(); + a.S || (b = "error", c += "&errorcode=" + (a.errorCode || ""), c += "&errorsubcode=" + (a.T || "")); + c = "type=startup&sev=" + b + c + "&" + f.SJ(x.La({}, m, { + prefix: "m_" + })); + d(c, g); } - function O() { - var a; - if (c.bf) { - a = c.bf.Zv(); - ka = a - ua; - ua = a; - B(); + function d(a, d) { + d && (a = l + "&jsoffms=" + p.yc() + "&do=" + y.Ph.onLine + "&" + a + "&" + f.SJ(x.La({}, h.B6, { + prefix: "im_" + })), b.Ab.download({ + url: d, + K8: a, + withCredentials: !0, + headers: { + "Content-Type": "application/x-www-form-urlencoded" + }, + Ox: "track" + }, c.Qb)); + } + l = "cat=cadplayback&dev=" + encodeURIComponent(m.xca) + "&ep=" + encodeURIComponent(m.wf.LW) + "&ver=" + encodeURIComponent("6.0015.328.011") + "&jssid=" + p.oF; + r.zd("TrackingLog"); + l += "&browserua=" + y.pj; + h.Ge(u.I.Wda, function(b) { + var d, p; + g = r.ca.get(w.Ms).host + k.config.Daa; + if (k.config.zV && k.config.Daa) { + k.config.xp && (l += "&groupname=" + encodeURIComponent(k.config.xp)); + k.config.Ks && (l += "&uigroupname=" + encodeURIComponent(k.config.Ks)); + d = l; + p = ""; + m.ln && (p = x.La({}, m.ln, { + prefix: "pi_" + }), p = "&" + f.SJ(p)); + l = d + p; + h.qJ(a); } - } + b(c.Bb); + }); + return d; + }(); + }, function(g, d, a) { + var k; - function B() { - V.lb(q); + function b(a, b, d) { + b = b || 0; + d = d || a.length; + for (var f, g = b, m, k, p, h = {}; g < b + d;) { + f = a[g]; + m = f & 7; + k = f >> 3; + p = c(a, g); + if (!p.count) throw Error("Parsing error. bytes length is 0 for the tag " + f); + g += p.count + 1; + 2 == m && (g += p.value); + h[k] = { + ZDb: k, + lJb: m, + value: p.value, + count: p.count, + start: p.start + }; } + return h; + } - function t(a) { - a.ctrlKey && a.altKey && a.shiftKey && (68 == a.keyCode || 81 == a.keyCode) && C(); + function c(a, b) { + var f, c, d, g, p, h, w, D; + f = b + 1; + c = a.length; + d = f; + g = 0; + p = {}; + h = []; + D = 0; + if (f >= c) throw Error("Invalid Range for Protobuf - start: " + f + " , len: " + c); + for (; d < c;) { + g++; + f = a[d]; + w = f & 127; + h.push(w); + if (!(f & 128)) break; + d++; } - V = new m.dD(1E3); - D = p.createElement("DIV", "position:absolute;left:10px;top:10px;right:10px;bottom:10px", void 0, { - "class": "player-info" - }); - S = p.createElement("TEXTAREA", "position:absolute;resize:none;box-sizing:border-box;width:100%;height:100%;padding:10px;background-color:rgba(0,0,0,0.4);color:#fff;font-size:12px;font-family:Arial;overflow:auto"); - da = p.createElement("DIV", "position:absolute;top:2px;right:2px"); - ba = [h.NT, y.Ea.yNa]; - ea = {}; - U = a(13); - ha = [c.pc, c.Ya[U.G.AUDIO], c.Ya[U.G.VIDEO], c.Et, c.Tl, c.lM, c.Ai, c.up, c.state, c.Bl, c.Tb, c.volume, c.muted]; - this.v9a = function(a) { - ea.DFR = a; - }; - la = {}; - la[h.gy] = "Not Loaded"; - la[h.qj] = "Loading"; - la[h.lk] = "Normal"; - la[h.wu] = "Closing"; - la[h.fy] = "Closed"; - A = {}; - A[h.hk] = "Normal"; - A[h.Zq] = "Pre-buffering"; - A[h.e7] = "Network stalled"; - H = {}; - H[h.Zh] = "Waiting for decoder"; - H[h.em] = "Playing"; - H[h.Vo] = "Paused"; - H[h.pr] = "Media ended"; - S.setAttribute("readonly", "readonly"); - D.appendChild(S); - D.appendChild(da); - P = p.createElement("BUTTON", null, "X"); - P.addEventListener("click", w, !1); - da.appendChild(P); - g.Bd.addListener(g.cw, t); - c.addEventListener(h.Qe, function() { - g.Bd.removeListener(g.cw, t); - w(); - }); - k.oa(this, { - toggle: C, - show: f, - dw: w, - tXa: n - }); - }; - }, function(f, c, a) { - var d, h, l, g, m, p, r, u, v, z, k, G, x, y, C, F, N, T, n, q, O, B, t, V; + k.sa(h.length); + for (a = h.length - 1; 0 <= a; a--) D <<= 7, D |= h[a]; + p.count = g; + p.value = D; + p.start = b + g + 1; + return p; + } - function b(a) { - var b; - b = this; - this.L = a; - this.Sb = this.L.Sb; - this.tD = k.Z.get(B.oj); - this.rea = k.Z.get(V.Oe); - this.wa = k.Je(this.L, "MediaPresenterASE"); - this.aea = this.ada = this.vk = 0; - this.Ic = this.Sb.Ba; - this.sea = this.HW = this.lW = this.XL = this.yK = this.nW = !1; - this.sk = { - type: u.$q, - yz: [], - Lm: [] - }; - this.km = { - type: u.ar, - yz: [], - Lm: [] - }; - this.fv = {}; - this.Wda = g.config.D2a; - this.tL = g.vPa(!!this.L.Pb.Qf).roa; - this.YV = g.config.e2; - this.OKa = new z.dD(O.cK); - this.ke = {}; - this.Sda = {}; - this.uD = {}; - this.L.vv = !1; - this.fv[k.Df.Gf.AUDIO] = this.sk; - this.fv[k.Df.Gf.VIDEO] = this.km; - y.ea(this.YV > this.Wda, "bad config"); - y.ea(this.YV > this.tL, "bad config"); - y.ea(g.config.N5a >= this.tL, "bad config"); - y.ea(g.config.O5a >= this.tL, "bad config"); - this.Sb.addEventListener(t.Sg.zra, function() { - b.wa.trace("sourceBuffers have been created. Initialize MediaPresenter."); - try { - b.SHa(); - } catch (da) { - b.wa.error("Exception while initializing", da); - b.dd(G.v.iCa); - } - }); + function h(a, b) { + if (a && (a = a[b])) return a.value; } - Object.defineProperty(c, "__esModule", { + Object.defineProperty(d, "__esModule", { value: !0 }); - d = a(134); - h = a(51); - l = a(6); - g = a(4); - m = a(16); - p = a(60); - r = a(25); - u = a(73); - v = a(17); - z = a(91); - k = a(3); - a(83); - G = a(2); - x = a(380); - y = a(8); - C = a(80); - F = a(103); - N = a(14); - T = a(32); - n = a(46); - q = a(15); - O = a(181); - B = a(47); - t = a(166); - V = a(23); - b.prototype.Mja = function() { - return this.Sb.Un(!1); - }; - b.prototype.bO = function() { - return this.Sb.bO(); - }; - b.prototype.Zv = function() { - return this.Sb.Zv(); - }; - b.prototype.CF = function() { - return this.Sb.CF(); - }; - b.prototype.cO = function() { - return this.Sb.cO(); - }; - b.prototype.J_ = function() { - return this.Sb.J_(); - }; - b.prototype.SHa = function() { - var a, b; - a = this; - this.wa.trace("Video element initializing"); - b = this.Sb.sourceBuffers; - b.forEach(function(b) { - return a.rKa(b); - }); - g.config.Zcb && (b.filter(function(a) { - return a.type === k.Df.Gf.AUDIO; - })[0] || this.wa.error("unexpected: audio source buffer is not available yet")); - a.THa(a.L.g1); + k = a(12); + d.zcb = function(a) { + a = b(a); + if (1 == h(a, 1) && a[5] && a[5].value) return !0; }; - b.prototype.THa = function(a) { - var h; + d.LFb = function(a) { + var f; + f = b(a); + if (2 == h(f, 1) && (a = b(a, f[2].start, f[2].value), h(a, 5))) return !0; + }; + d.VDb = b; + d.PEb = c; + d.QEb = h; + }, function(g) { + function d(a) { + return Object.keys(a).every(function(b) { + return "function" === typeof a[b]; + }); + } + g.M = function(a) { + var k, f, p; - function b() { - function a() { - var a; - h.L.Tb.value == m.Zh && h.L.state.value == m.lk && h.L.Bl.value == m.hk && h.L.zi.value == m.hk && h.L.bb.qO() ? (h.sV.Sn(), a = "ensureTimer") : (h.sV.Og(), a = "stopTimer"); - h.wa.trace("Timer update: " + a, { - presentingState: h.L.Tb.value, - playbackState: h.L.state.value, - avBufferingState: h.L.Bl.value, - textBufferingState: h.L.zi.value - }); - } - g.config.Oha && (y.ea(!h.sV), h.sV = new F.my(g.config.Oha, function() { - var a; - a = k.Z.get(x.Q7).nTa(h.L); - h.dd(a.code, a); - }), h.L.Tb.addListener(a), h.L.Bl.addListener(a), h.L.zi.addListener(a), h.L.state.addListener(a), a()); + function b(a, b, f) { + throw new TypeError(("undefined" !== typeof f.key ? "Types: expected " + f.key : "Types: expected argument " + f.index) + (" to be '" + a + "' but found '" + b + "'")); } - function c() { - h.FK || (c = l.T6, h.Sb.addEventListener(t.Sg.lB, h.ke[t.Sg.lB] = function() { - return h.hW(); - }), h.Sb.addEventListener(t.Sg.Ik, h.ke[t.Sg.Ik] = function() { - return h.pJa(); - }), h.Ic.addEventListener("ended", h.ke.ended = function() { - return h.qJa(); - }), h.Ic.addEventListener("play", h.ke.play = function() { - return h.uJa(); - }), h.Ic.addEventListener("pause", h.ke.pause = function() { - return h.tJa(); - }), h.Ic.addEventListener("playing", h.ke.playing = function() { - return h.vJa(); - }), h.yD = !0, h.UL(), h.wa.trace("Video element initialization complete"), h.L.Yc("vi"), g.config.Vha ? setTimeout(function() { - h.eW = !0; - h.ei(); - }, g.config.Vha) : h.eW = !0, b(), T.Xa(function() { - return h.ei(); - })); + function c(a, c, d) { + var g; + g = f[a]; + "undefined" !== typeof g ? g(c) || b(a, c, d) : a !== typeof c && b(a, c, d); } - function d() { - h.L.ge || h.L.dj.start()["catch"](function(a) { - h.dd(G.v.HU, a); + function g(a, b) { + var f; + f = a.filter(function(a) { + return "object" !== typeof a && -1 === p.indexOf(a); }); - h.L.removeEventListener(m.mg, d); + f = f.concat(a.filter(function(a) { + return "object" === typeof a; + }).reduce(function(a, b) { + return a.concat(Object.keys(b).map(function(a) { + return b[a]; + }).filter(function(a) { + return -1 === p.indexOf(a); + })); + }, [])); + if (0 < f.length) throw Error(f.join(",") + " are invalid types"); + return function() { + var f; + f = Array.prototype.slice.call(arguments); + if (f.length !== a.length) throw new TypeError("Types: unexpected number of arguments"); + a.forEach(function(a, b) { + var d; + d = f[b]; + if ("string" === typeof a) c(a, d, { + index: b + }); + else if ("object" === typeof a) Object.keys(a).forEach(function(b) { + c(a[b], d[b], { + key: b + }); + }); + else throw Error("Types: unexpected type in type array"); + }); + return b.apply(this, f); + }; } - h = this; - a ? this.wa.trace("Waiting for needkey") : this.wa.warn("Movie is not DRM protected", { - MovieId: this.L.M - }); - this.wa.trace("Waiting for loadedmetadata"); - this.rea.oh.events && this.rea.oh.events.active || this.L.addEventListener(m.mg, d, this.tD.vI ? l.by : void 0); - a ? this.Sb.addEventListener(t.Sg.lma, function() { - h.L.Yc("ld"); - h.L.fireEvent(m.oDa); - h.L.bb.GZ(h.L.M); - }) : this.L.bb.GZ(this.L.M); - r.$La(this.Ic, function() { - h.wa.trace("Video element event: loadedmetadata"); - h.L.Yc("md"); - }); - p.Bd.addListener(p.Pj, this.uD[p.Pj] = function() { - return h.Jca(); - }, l.ay); - this.L.addEventListener(m.Qe, function() { - return h.Jca(); - }, l.ay); - this.L.paused.addListener(function() { - return h.ei(); - }); - this.L.muted.addListener(function() { - return h.RW(); - }); - this.L.volume.addListener(function() { - return h.RW(); - }); - this.L.playbackRate.addListener(function() { - return h.cLa(); - }); - this.L.Bl.addListener(function() { - return h.ei(); - }); - this.L.zi.addListener(function() { - return h.ei(); - }); - this.RW(); - this.sk.Wl.era(function() { - return h.pL(); - }); - this.km.Wl.era(function() { - return h.pL(); - }); - this.pL(); - T.Xa(function() { - c(); - }); - }; - b.prototype.fM = function(a) { - var b, c; - b = this; - c = this.fv[a.O]; - c ? c.Lm.push(a) : y.ea(!1); - this.LGa(a).then(function() { - b.pL(); - b.L.fireEvent(m.NT); - })["catch"](function(a) { - b.dd(G.v.nCa, { - za: N.yc(a) - }); - }); - }; - b.prototype.uMa = function(a, b) { - var c; - b = { - O: a.type, - zc: !0, - response: b, - oi: function() { - return "header"; + k = "number boolean string object function symbol".split(" "); + f = { + array: function(a) { + return Array.isArray(a); } }; - c = this.fv[a.type]; - c ? c.Lm.push(b) : y.ea(!1); - this.sea || a.type !== k.Df.Gf.VIDEO || (this.seek(this.L.rm || 0, m.UC), this.sea = !0); - }; - b.prototype.rKa = function(a) { - var b; - b = this.fv[a.type]; - if (b) try { - b.Wl = a; - } catch (da) { - this.dd(G.v.nU, { - R: O.L_(a.type), - za: N.yc(da) + if ("undefined" !== typeof a) { + if ("object" !== typeof a || !d(a)) throw new TypeError("Types: extensions must be an object of type definitions"); + Object.keys(a).forEach(function(b) { + if ("undefined" !== typeof f[b] || -1 < k.indexOf(b)) throw new TypeError("Types: attempting to override a built in type with " + b); + f[b] = a[b]; }); } + p = Object.keys(f).concat(k); + return g(["array", "function"], g); }; - b.prototype.pL = function() { - this.yD ? this.ei() : g.config.vMa && this.UL(); - }; - b.prototype.D3a = function() { - var a; - a = this.L.Ts() || 0; - this.L.Pb.Qf || (a = Math.max(a - g.config.K8a, this.bIa)); - this.seek(a, m.yU); - }; - b.prototype.a3 = function(a) { - var b; - b = this; - a.mediaType === k.Df.Gf.AUDIO ? this.yK = !0 : a.mediaType === k.Df.Gf.VIDEO && (this.XL = !0); - T.Xa(function() { - return b.ei(); - }); - }; - b.prototype.HXa = function() { - return { - zSa: this.ada, - c3a: this.aea - }; - }; - b.prototype.LGa = function(a) { - var b; - b = this.Sb && this.Sb.Zja(); - return void 0 === this.kW && b && a.yf && a.yf.jc && a.yf.jc.na && Infinity != a.yf.jc.na.fa && b < (a.yf.jc.na.fa + a.mh) / 1E3 ? (this.kW = 2 * b, this.SJa()) : Promise.resolve(); - }; - b.prototype.SJa = function() { - var a; - a = this; - return new Promise(function(b, c) { - function d() { - return g().then(function(a) { - if (!1 === a) return d(); - }); - } + }, function(g, d, a) { + var v, y, w; - function g() { - return new Promise(function(b) { - setTimeout(function() { - if (!a.sk.Wl.Nj() && !a.km.Wl.Nj()) try { - a.Sb.C9a(a.kW); - a.HW = !1; - a.kW = void 0; - b(!0); - } catch (ba) { - b(!1); - } - b(!1); - }, 0); - }); - } - a.HW = !0; - d().then(function() { - b(); - })["catch"](function(b) { - a.wa.error("Unable to change the duration", b); - c(b); - }); - }); - }; - b.prototype.ei = function() { - var a, b, c, h, p, f, l; - a = this; - this.L.Vra = v.Ra(); - if (!this.Kd() && this.yD) { - b = this.Sb.yYa(); - b || this.UL(); - d.DC || this.UL(); - c = this.L.Bl.value == m.hk && this.L.zi.value == m.hk; - h = this.L.Tb.value; - p = h == m.Zh ? this.tL : this.Wda; - f = this.eda(this.sk, p) && this.eda(this.km, p); - this.L.paused.value || !f || !c || b || this.yj ? this.xW() : this.nW || this.Uea(); - if (!b) - if (this.yj && c && f) this.Sb.seek(this.vk), this.yj = !1, d.DC || this.uW(), T.Xa(function() { - return a.ei(); - }); - else { - l = this.Sb.Un(!0); - this.Kd() || (this.yj || b ? h = m.Zh : this.Ic && this.Ic.ended ? h == m.em && (this.vk = this.L.duration, h = m.pr, this.xW()) : c && f ? this.Sb.oTa() ? h = this.Ic && this.Ic.paused ? m.Vo : m.em : this.OKa.lb(function() { - return a.NKa(); - }) : h = m.Zh, h != m.Zh && h != m.pr && (l < this.vk ? (b = this.vk - l, g.config.e5a && l && b > O.cK && (l = { - ElementTime: C.kg(l), - MediaTime: C.kg(this.vk) - }, b > O.bEa ? (this.wa.error("VIDEO.currentTime became much smaller", l), this.dd(G.v.xCa)) : this.wa.warn("VIDEO.currentTime became smaller", l))) : this.vk = N.ll(l, 0, this.L.duration)), this.jfa(), this.EK(), l = h == m.Zh && 0 <= [m.em, m.Vo].indexOf(this.L.Tb.value), this.L.Tb.set(h, { - epb: !0 - }), l && (h = this.QKa() > p, this.L.zi.value !== m.hk ? this.L.up.value ? (h = m.jDa, this.L.fireEvent(m.XJ, { - cause: h - }), this.wa.warn("rebuffer due to timed text", this.L.up.value.Zi)) : this.L.fireEvent(m.Haa) : (h ? (h = m.raa, this.ada++) : (h = m.saa, this.aea++), this.L.fireEvent(m.XJ, { - cause: h - })))); + function b(a, b, f) { + this.type = a; + this.size = b; + this.Cr = f; + } + + function c(a) { + var f, c, d, g, m; + a: { + f = a.position; + if (8 <= a.tk()) { + c = a.Ea(); + d = a.zv(4); + if (!y.test(d)) throw a.seek(f), Error("mp4-badtype"); + if (1 == c) { + if (8 > a.tk()) { + a.seek(f); + f = void 0; + break a; + } + c = a.Kf(); } - } - }; - b.prototype.QKa = function() { - var a, b; - a = 0; - b = 0; - this.km.Lm.filter(function(a) { - return !a.zc; - }).forEach(function(b) { - a += b.gd; - }); - this.sk.Lm.filter(function(a) { - return !a.zc; - }).forEach(function(a) { - b += a.gd; - }); - return Math.min(a, b); - }; - b.prototype.NKa = function() { - this.Kd() || (g.config.E3a && (this.sk.Wl.Nj() || this.sk.Wl.Nfa(new Uint8Array([0, 0, 0, 8, 102, 114, 101, 101]))), this.ei()); - }; - b.prototype.eda = function(a, b) { - var c; - c = a.PM; - c = c && c.yG; - return 0 === a.Lm.length && (a.type === u.$q && this.yK || a.type === u.ar && this.XL) ? !0 : c && c.Lg - this.vk >= b; - }; - b.prototype.hW = function() { - this.ei(); - }; - b.prototype.pJa = function() { - this.ei(); - this.L.fireEvent(m.ST); - }; - b.prototype.qJa = function() { - this.wa.trace("Video element event: ended"); - this.ei(); - }; - b.prototype.uJa = function() { - this.wa.trace("Video element event: play"); - this.ei(); - }; - b.prototype.tJa = function() { - this.wa.trace("Video element event: pause"); - this.ei(); - }; - b.prototype.vJa = function() { - this.wa.trace("Video element event: playing"); - this.ei(); - }; - b.prototype.RW = function() { - this.Kd() || (this.Ic && this.Ic.volume !== this.L.volume.value && (this.Ic.volume = this.L.volume.value), this.Ic && this.Ic.muted !== this.L.muted.value && (this.Ic.muted = this.L.muted.value)); - }; - b.prototype.cLa = function() { - !this.Kd() && this.Ic && (this.Ic.playbackRate = this.L.playbackRate.value); - }; - b.prototype.UL = function() { - this.HW || (this.hfa(this.sk), this.hfa(this.km)); - this.Kd() || !this.yK || !this.XL || this.sk.Wl.Nj() || this.km.Wl.Nj() || this.zV || (this.zV = !0, this.Sb.endOfStream()); - }; - b.prototype.hfa = function(a) { - var b, c; - if (!this.Kd()) { - b = a.Wl; - c = a.yz; - !b.Nj() && 0 < c.length && (a.PM = c[c.length - 1]); - if (a.n5) { - if (b.Nj()) return; - a.n5 = !1; - b.remove(0, this.Sb.Zja()); - } - for (var d = a.Lm[0]; d && d.response && (d.zc || d.hb - this.vk <= this.YV);) - if (this.zV = !1, this.YKa(d)) a.Lm.shift(), d = a.Lm[0]; - else break; - !b.Nj() && 0 < c.length && (a.PM = c[c.length - 1]); - } - }; - b.prototype.YKa = function(a) { - var b, c, h; - y.ea(a && a.response); - b = a.response; - c = a.O; - h = this.fv[c]; - if (!this.Kd() && !h.Wl.Nj()) { - try { - this.wa.trace("Feeding media segment to decoder", { - Bytes: b.byteLength - }); - h.Wl.Nfa(b, a); - a.zc || h.yz.push(this.TGa(a)); - g.config.tTa && !a.zc && (this.yj && !d.DC || a.Nga()); - } catch (U) { - "QuotaExceededError" != U.name ? (this.wa.error("Exception while appending media", a, U), this.dd(G.v.vCa, O.L_(c))) : this.L.QM = this.L.QM ? this.L.QM + 1 : 1; - return; - } - return !0; - } - }; - b.prototype.SGa = function(a) { - var b; - this.L.Ej.forEach(function(c) { - a.Ec == c.id && (b = c); - }); - b || (this.wa.error("Could not find CDN", { - cdnId: a.Ec - }), b = { - id: a.Ec, - D1: a.location - }); - return b; - }; - b.prototype.VGa = function(a) { - var b, c; - c = a.ib; - a.O === k.Df.Gf.AUDIO ? this.L.gc.value.Db.forEach(function(a) { - a.ac == c && (b = a); - }) : a.O === k.Df.Gf.VIDEO && this.L.Ud.value.Db.forEach(function(a) { - a.ac == c && (b = a); - }); - b || this.wa.error("Could not find stream", { - stream: c - }); - return b; - }; - b.prototype.TGa = function(a) { - var b; - b = this.VGa(a); - return { - yG: a, - stream: b, - yM: { - startTime: Math.floor(a.hb), - endTime: Math.floor(a.Lg) - }, - Ya: this.SGa(a) - }; - }; - b.prototype.Uea = function() { - var a; - a = this; - this.Kd() || !q.$a(this.Ic) || this.Ic.ended || !this.eW || !this.Ty && void 0 !== this.Ty || (this.wa.trace("Calling play on element"), Promise.resolve(this.Ic.play()).then(function() { - a.Ty = !1; - a.nW = !1; - a.Ic.style.display = null; - a.L.fireEvent(n.Ea.bga, a.L); - })["catch"](function(b) { - "NotAllowedError" === b.name ? (a.wa.warn("Playback is blocked by the browser settings", b), a.L.vv = !0, a.nW = !0, a.Ic.style.display = "none", a.L.fireEvent(n.Ea.vv, { - player: { - play: function() { - return a.Uea(); + if (!(8 <= c)) throw a.seek(f), Error("mp4-badsize"); + if ("uuid" == d) { + if (16 > a.tk()) { + a.seek(f); + f = void 0; + break a; } + d = a.RD(); } - })) : (a.Ty = !1, a.wa.error("Play promise rejected", b)); - })); - }; - b.prototype.xW = function() { - this.Kd() || !q.$a(this.Ic) || this.Ic.ended || !this.eW || this.Ty && void 0 !== this.Ty || (this.wa.trace("Calling pause on element"), this.Ic.pause(), this.Ty = !0); - }; - b.prototype.EK = function(a) { - if (q.$a(a)) { - for (var b = this.fv[a], c = b.yz, d, g; - (d = c[0]) && d.yG.hb <= this.vk;) - if (this.vk < d.yG.Lg) { - a = a === k.Df.Gf.AUDIO ? this.L.Et : this.L.Tl; - r.aha(d, a.value) || (g = !0, a.set(d)); - break; - } else c.shift(); - !g && !this.lW || this.zV || (d = d && d.yG.hb - d.yG.gd - 1, 0 < d && (b = b.Wl, b.Nj() ? this.lW = !0 : (b.remove(0, d / N.pj), this.lW = !1))); - } else this.EK(k.Df.Gf.AUDIO), this.EK(k.Df.Gf.VIDEO); - }; - b.prototype.jfa = function(a) { - this.L.pc.set(this.vk); - a && this.L.NVa(); - }; - b.prototype.hTa = function(a, b) { - var c, d; - if (!(b === m.xU || this.L.Pb.Qf && this.yj) && (b = this.L.bb)) { - c = b.fka(); - d = a + c.Ub; - if (a >= c.Ri && a < c.Ij && b.Cga(d)) return d; - } - }; - b.prototype.seek = function(a, b) { - var c, d, h; - b = void 0 === b ? m.taa : b; - if (!this.Kd()) { - c = N.ll(a, 0, this.L.n2); - !this.L.Pb.Qf && g.config.jta && (c = N.ll(a, 0, this.L.n2 - g.config.jta)); - d = this.EHa(c); - this.ZHa() && (d = Math.round(c)); - g.config.Rqa && (d += g.config.Rqa); - b == m.UC && (this.L.lga = d); - h = this.hTa(d, b); - (c = void 0 !== h) && (d = h); - this.EK(); - h = this.vk; - this.wa.info("Seeking", { - Requested: C.kg(a), - Actual: C.kg(d), - Cause: b, - Skip: c - }); - this.L.fireEvent(m.BU, { - RG: h, - Bw: d, - cause: b, - skip: c - }); - this.L.Tb.set(m.Zh); - b != m.UC && (this.uW(), this.sk.n5 = !0, this.km.n5 = !0); - this.bIa = this.vk = d; - this.L.Et.set(null); - this.L.Tl.set(null); - this.jfa(!0); - this.L.fireEvent(m.AU, { - RG: h, - Bw: d, - cause: b, - skip: c - }); - this.yj = !0; - this.ei(); - } - }; - b.prototype.ZHa = function() { - return g.config.Q5a ? navigator.hardwareConcurrency && 2 >= navigator.hardwareConcurrency ? g.config.R5a : !0 : !1; - }; - b.prototype.uW = function() { - this.sk.yz = []; - this.sk.PM = void 0; - this.sk.Lm = []; - this.km.yz = []; - this.km.PM = void 0; - this.km.Lm = []; - this.XL = this.yK = !1; - this.L.fireEvent(m.NT); - }; - b.prototype.EHa = function(a) { - var b; - b = this.L.bb.vz.Vb[k.Df.Gf.VIDEO].T.fa; - return this.L.Pb.Qf && a < b ? a : this.L.bb.AOa(a); - }; - b.prototype.dd = function(a, b, c) { - this.FK || this.L.Hh(new h.rj(a, b, c)); - }; - b.prototype.Jca = function() { - if (!this.FK) { - this.wa.info("Closing."); - this.Sb.removeEventListener(t.Sg.lB, this.Sda[t.Sg.lB]); - this.Sb.removeEventListener(t.Sg.Ik, this.Sda[t.Sg.Ik]); - this.Ic.removeEventListener("ended", this.ke.ended); - this.Ic.removeEventListener("play", this.ke.play); - this.Ic.removeEventListener("pause", this.ke.pause); - this.Ic.removeEventListener("playing", this.ke.playing); - p.Bd.removeListener(p.Pj, this.uD[p.Pj]); - this.FK = !0; - try { - g.config.T2a && (this.Ic.volume = 0, this.Ic.muted = !0); - this.xW(); - this.Sb.close(); - } catch (D) {} - this.Ic = void 0; - this.uW(); - } - }; - b.prototype.Kd = function() { - return this.FK ? !0 : q.$a(this.Ic) ? !1 : (this.wa.error("MediaPresenter not closed and _videoElement is not defined"), !0); - }; - c.eAa = b; - }, function(f, c, a) { - Object.defineProperty(c, "__esModule", { - value: !0 - }); - a(3); - c.nua = function(a) { - this.VYa = this.Nl = function() { - var b; - if (-1 === a.ia) { - b = a.jj.ej.get(); - b.he && (a.he = b.he.ta); - b.ia && (a.ia = b.ia.ta); - } - return a.ia; - }; - this.sOa = function(b) { - var c; - if (-1 === a.he || -1 === a.ia) { - c = a.jj && a.jj.ej.get(); - c && c.he && (a.he = c.he.ta); - c && c.ia && (a.ia = c.ia.ta); - } - return -1 === a.he || -1 === a.ia ? Number.MAX_VALUE : a.he + 8 * b / a.ia; - }; - }; - }, function(f, c, a) { - var b, d, h, l, g, m, p, r; - Object.defineProperty(c, "__esModule", { - value: !0 - }); - b = a(6); - d = a(16); - h = a(4); - l = a(17); - g = a(80); - m = a(5); - p = a(32); - r = a(15); - c.nDa = function(a) { - var k, x, y, C, F, N; - - function c() { - return a.state.value == d.qj || a.state.value == d.lk && a.Tb.value == d.Zh; - } - - function f() { - c() ? N || (N = setInterval(u, 100)) : N && (clearInterval(N), N = void 0, p.Xa(u)); + f = { + type: d, + offset: f, + size: c, + Cr: f + c - a.position + }; + } else f = void 0; + } + if (f && f.Cr <= a.tk()) { + g = f.type; + c = f.size; + m = f.Cr; + d = new b(g, c, m); + g = w[g]; + if (a.tk() < m) throw Error("mp4-shortcontent"); + g ? (m = new v(a.re(m)), g(d, m)) : a.skip(m); + a.seek(f.offset); + d.raw = a.re(c); + return d; } + } - function u() { - var b, p, f, u, v, z, w, G; - b = l.Ra(); - p = k.value; - f = p ? p.Rh : 0; - v = a.state.value == d.qj || c() && b - x > h.config.bOa; - v && a.state.value == d.lk ? (a.rM.value == d.e7 ? (w = f, z = !0) : (u = b + (a.Sk && a.Sk.TZa() || 0), y = y || b, C = C || y + h.config.C2a + 1, r.da(u) && (u = m.ig(u, C), w = a.Sk ? a.Sk.Wnb() : .99, w = m.ve(1E3 * g.ll((b - y) / (u - y), 0, w)) / 1E3)), w < f && (f - w < h.config.s6a / 100 ? (w = f, F = void 0) : F ? b - F > h.config.r6a ? (G = !0, F = void 0) : w = f : (F = b, w = f))) : F = C = y = void 0; - b = v ? { - hR: z, - Rh: w, - t6a: G - } : null; - (!b || !k || !k.value || r.da(b.Rh) && !r.da(k.value.Rh) || r.da(b.Rh) && r.da(k.value.Rh) && .01 < m.ru(b.Rh - k.value.Rh) || b.hR !== p.hR) && k.set(b); + function h(a, b) { + for (var f = [], d = {}, g, m; 0 < b.tk();) { + g = c(b); + if (!g) throw Error("mp4-badchildren"); + m = g.type; + f.push(g); + d[m] || (d[m] = g); } - k = a.eY; - x = 0; - a.state.addListener(function() { - f(); - u(); - }, b.by); - a.Tb.addListener(function(a) { - if (a.oldValue != d.Zh || a.newValue != d.Zh) x = l.Ra(); - f(); - }); - a.rM.addListener(function() { - f(); - }); - a.Bl.addListener(function() { - f(); - }); - a.zi.addListener(function() { - f(); - }); - N || (N = setInterval(u, 100)); - }; - }, function(f, c, a) { - var b, d, h, l, g, m; - Object.defineProperty(c, "__esModule", { - value: !0 - }); - b = a(4); - d = a(16); - h = a(60); - l = a(301); - g = a(8); - m = a(6); - c.qFa = function(a) { - var p, f, z; - - function c() { - f.G7a(); - } - p = a.Xf; - f = new l.oFa(b.config.X5, a.Fc.value ? a.Fc.value.zla : void 0); - z = a.Gx; - g.ea(.1 < z.width / z.height); - f.q9a(z.width / z.height); - p.appendChild(f.Lja()); - a.V5.addListener(function(a) { - f.w9a(a.newValue); - }); - a.Fc.addListener(function(a) { - f.z9a(a.newValue.zla); - }); - a.addEventListener(d.Qe, function() { - h.Bd.removeListener(h.k0, c); - p.removeChild(f.Lja()); - }, m.ay); - h.Bd.addListener(h.k0, c); - this.KH = f.KH; - this.LH = f.LH; - this.JF = f.JF; - this.MH = f.MH; - }; - }, function(f, c, a) { - var p, r, u, v, z, k, G, x; + a.children = f; + a.w3 = d; + } - function b(a, b) { - var c, d, g, h, p, f, l, m; - c = []; - h = {}; - l = a.length; - for (m = 0; m < l; m++) p = a[m], f = b(p), g = f.key, d = h[g], p = p.endTime - p.startTime, d ? d.duration += p : (delete f.key, d = f, d.duration = p, c.push(d), h[g] = d); - return c; + function k(a, b) { + a.version = b.Ud(1); + a.me = b.Ud(3); } - function d(a) { - var b, c, d; - d = a.stream; - d ? (a = d.ac, b = d.J, c = d.je) : a = a.track.ac; - return { - key: a + "$" + (b || 0), - downloadableId: a, - bitrate: b, - vmaf: c - }; + function f(a, b) { + b.skip(6); + a.N2a = b.xb(); + b.skip(8); + a.channelCount = b.xb(); + a.aE = b.xb(); + b.skip(4); + a.sampleRate = b.xb(); + b.skip(2); + h(a, b); } - function h(a) { - var b; - b = d(a); - a = a.Ya.id; - b.key += "$" + a; - b.cdnId = a; - return b; + function p(a, b) { + var f; + b.skip(6); + a.N2a = b.xb(); + b.skip(16); + a.width = b.xb(); + a.height = b.xb(); + a.aFb = b.Ea(); + a.eJb = b.Ea(); + b.skip(4); + a.C7a = b.xb(); + f = b.Jf(); + a.W_a = b.zv(f); + b.skip(31 - f); + a.depth = b.xb(); + b.skip(2); + h(a, b); } - function l(a) { - a = (a = a.stream) ? a.J : 0; - return { - key: a, - A2: a - }; + function m(a, b) { + k(a, b); + a.lDb = b.Ud(3); + a.mDb = b.Jf(); + a.iJ = b.re(16); } - function g(a) { - a = (a = a.stream) ? a.je : 0; - return { - key: a, - A2: a + function r(a, b) { + for (var f = [], c; b--;) c = a.xb(), f.push(a.re(c)); + return f; + } + + function u(a) { + var b; + b = a.re(2); + a = { + iIb: b[1] >> 1 & 7, + Bmb: !!(b[1] & 1), + cIb: a.xb() }; + x(a, (b[0] << 8 | b[1]) >> 4); + return a; } - function m(a) { - var b, c, d, g; - d = 0; - for (c = a.length; c--;) - if (b = a[c], x.$a(b.duration) && x.$a(b.A2)) d += b.duration; - else throw Error("invalid arguments"); - if (!d) return 0; - g = 0; - for (c = a.length; c--;) b = a[c], g += b.A2 * b.duration / d; - return g; + function x(a, b) { + a.dIb = b >> 4 & 3; + a.hIb = b >> 2 & 3; + a.fIb = b & 3; + return a; } - Object.defineProperty(c, "__esModule", { + v = a(86); + y = /^[a-zA-Z0-9-]{4,4}$/; + b.prototype.Or = function(a) { + var b, f, c, d, g; + b = this; + a = a.split("/"); + for (d = 0; d < a.length && b; d++) { + c = a[d].split("|"); + f = void 0; + for (g = 0; g < c.length && !f; g++) f = c[g], f = b.w3 && b.w3[f]; + b = f; + } + return b; + }; + b.prototype.toString = function() { + return "[" + this.type + "]"; + }; + w = { + ftyp: function(a, b) { + a.dGb = b.zv(4); + a.vGb = b.Ea(); + for (a.O_a = []; 4 <= b.tk();) a.O_a.push(b.zv(4)); + }, + moov: h, + sidx: function(a, b) { + k(a, b); + a.MHb = b.Ea(); + a.raa = b.Ea(); + a.L2 = 1 <= a.version ? b.Kf() : b.Ea(); + a.y3 = 1 <= a.version ? b.Kf() : b.Ea(); + b.skip(2); + for (var f = b.xb(), c = [], d, g; f--;) { + d = b.Ea(); + g = d >> 31; + if (0 !== g) throw Error("mp4-badsdix"); + d &= 2147483647; + g = b.Ea(); + b.skip(4); + c.push({ + size: d, + duration: g + }); + } + a.NHb = c; + }, + moof: h, + mvhd: function(a, b) { + var f; + k(a, b); + f = 1 <= a.version ? 8 : 4; + a.yg = b.Ud(f); + a.modificationTime = b.Ud(f); + a.raa = b.Ea(); + a.duration = b.Ud(f); + a.IHb = b.j9(); + a.volume = b.fya(); + b.skip(70); + a.GGb = b.Ea(); + }, + pssh: function(a, b) { + var f; + k(a, b); + a.M4a = b.RD(); + f = b.Ea(); + a.data = b.re(f); + }, + trak: h, + mdia: h, + minf: h, + stbl: h, + stsd: function(a, b) { + k(a, b); + b.Ea(); + h(a, b); + }, + encv: p, + avc1: p, + hvcC: p, + hev1: p, + mp4a: f, + enca: f, + "ec-3": f, + avcC: function(a, b) { + a.version = b.Jf(); + a.IBb = b.Jf(); + a.DHb = b.Jf(); + a.HBb = b.Jf(); + a.WFb = (b.Jf() & 3) + 1; + a.pIb = r(b, b.Jf() & 31); + a.nHb = r(b, b.Jf()); + }, + pasp: function(a, b) { + a.XEb = b.Ea(); + a.cJb = b.Ea(); + }, + sinf: h, + frma: function(a, b) { + a.VCb = b.zv(4); + }, + schm: function(a, b) { + k(a, b); + a.Kmb = b.zv(4); + a.lIb = b.Ea(); + a.me & 1 && (a.kIb = b.Nkb()); + }, + schi: h, + tenc: m, + mvex: h, + trex: function(a, b) { + k(a, b); + a.Tb = b.Ea(); + a.C3a = b.Ea(); + a.q2 = b.Ea(); + a.Voa = b.Ea(); + a.r2 = u(b); + }, + traf: h, + tfhd: function(a, b) { + var f; + k(a, b); + a.Tb = b.Ea(); + f = a.me; + f & 1 && (a.NBb = b.Kf()); + f & 2 && (a.eIb = b.Ea()); + f & 8 && (a.q2 = b.Ea()); + f & 16 && (a.Voa = b.Ea()); + f & 32 && (a.r2 = u(b)); + }, + saio: function(a, b) { + k(a, b); + a.me & 1 && (a.yYa = b.Ea(), a.zYa = b.Ea()); + for (var f = 1 <= a.version ? 8 : 4, c = b.Ea(), d = []; c--;) d.push(b.Ud(f)); + a.lza = d; + }, + mdat: function(a, b) { + a.data = b.re(b.tk()); + }, + tkhd: function(a, b) { + var f; + k(a, b); + f = 1 <= a.version ? 8 : 4; + a.yg = b.Ud(f); + a.modificationTime = b.Ud(f); + a.Tb = b.Ea(); + b.skip(4); + a.duration = b.Ud(f); + b.skip(8); + a.kdb = b.xb(); + a.BXa = b.xb(); + a.volume = b.fya(); + b.skip(2); + b.skip(36); + a.width = b.j9(); + a.height = b.j9(); + }, + mdhd: function(a, b) { + var f; + k(a, b); + f = 1 <= a.version ? 8 : 4; + a.yg = b.Ud(f); + a.modificationTime = b.Ud(f); + a.raa = b.Ea(); + a.duration = b.Ud(f); + f = b.xb(); + a.language = String.fromCharCode((f >> 10 & 31) + 96) + String.fromCharCode((f >> 5 & 31) + 96) + String.fromCharCode((f & 31) + 96); + b.skip(2); + }, + mfhd: function(a, b) { + k(a, b); + a.oIb = b.Ea(); + }, + tfdt: function(a, b) { + k(a, b); + a.aH = b.Ud(1 <= a.version ? 8 : 4); + 8 == b.tk() && b.skip(8); + }, + saiz: function(a, b) { + k(a, b); + a.me & 1 && (a.yYa = b.Ea(), a.zYa = b.Ea()); + for (var f = b.Jf(), c = b.Ea(), d = []; c--;) d.push(f || b.Jf()); + a.gIb = d; + }, + trun: function(a, b) { + var f, c; + k(a, b); + f = b.Ea(); + c = a.me; + c & 1 && (a.WCb = b.Ea()); + c & 4 && (a.gEb = u(b)); + for (var d = [], g; f--;) g = {}, c & 256 && (g.duration = b.Ea()), c & 512 && (g.size = b.Ea()), c & 1024 && (g.me = b.Ea()), c & 2048 && (g.vCb = b.Ea()), d.push(g); + a.Nl = d; + }, + sdtp: function(a, b) { + k(a, b); + for (var f = []; 0 < b.tk();) f.push(x({}, b.Jf())); + a.Nl = f; + }, + "4E657466-6C69-7850-6966-665374726D21": function(a, b) { + k(a, b); + a.fileSize = b.Kf(); + a.raa = b.Kf(); + a.duration = b.Kf(); + a.xwa = b.Kf(); + a.tIb = b.Kf(); + 1 <= a.version && (a.AGb = b.Kf(), a.BGb = b.Ea(), a.ywa = b.Kf(), a.xqa = b.Ea(), a.jqa = b.RD()); + }, + "A2394F52-5A9B-4F14-A244-6C427C648DF4": function(a, b) { + k(a, b); + a.me & 1 && (a.wBb = b.Ud(3), a.OFb = b.Jf(), a.Vcb = b.RD()); + a.bIb = b.Ea(); + a.xYa = b.re(b.tk()); + }, + "4E657466-6C69-7846-7261-6D6552617465": function(a, b) { + k(a, b); + a.zT = b.Ea(); + a.LH = b.xb(); + }, + "8974DBCE-7BE7-4C51-84F9-7148F9882554": m, + "636F6D2E-6E65-7466-6C69-782E6974726B": h, + "636F6D2E-6E65-7466-6C69-782E68696E66": function(a, b) { + k(a, b); + a.wma = b.RD(); + a.yg = b.Kf(); + a.R = b.Kf(); + a.dj = b.Kf(); + a.uU = b.xb(); + a.vU = b.xb(); + a.Xcb = b.re(16); + a.Fpb = b.re(16); + }, + "636F6D2E-6E65-7466-6C69-782E76696E66": function(a, b) { + k(a, b); + a.$Bb = b.re(b.tk()); + }, + "636F6D2E-6E65-7466-6C69-782E6D696478": function(a, b) { + var f; + k(a, b); + a.dnb = b.Kf(); + f = b.Ea(); + a.Se = []; + for (var c = 0; c < f; c++) a.Se.push({ + duration: b.Ea(), + size: b.xb() + }); + }, + "636F6D2E-6E65-7466-6C69-782E69736567": h, + "636F6D2E-6E65-7466-6C69-782E73696478": function(a, b) { + var f; + k(a, b); + a.wma = b.RD(); + a.duration = b.Ea(); + f = b.Ea(); + a.Nl = []; + for (var c = 0; c < f; c++) a.Nl.push({ + bi: b.Ea(), + duration: b.Ea(), + FT: b.xb(), + GT: b.xb(), + ZU: b.xb(), + $U: b.xb(), + yp: b.Kf(), + PC: b.Ea() + }); + }, + "636F6D2E-6E65-7466-6C69-782E73656E63": function(a, b) { + var f, c, g, m; + k(a, b); + f = b.Ea(); + c = b.Jf(); + a.Nl = []; + for (var d = 0; d < f; d++) { + g = b.Jf(); + m = g >> 6; + g = g & 63; + 0 != m && 0 === g && (g = c); + a.Nl.push({ + Qpa: m, + Xu: b.re(g) + }); + } + } + }; + g.M = { + KHb: function(a, b) { + a = new v(a); + b && a.seek(b); + return c(a); + }, + h9: function(a, b) { + var f; + if (!a) throw Error("mp4-badinput"); + a = new v(a); + f = []; + for (b && a.seek(b); b = c(a);) f.push(b); + return f; + } + }; + }, function(g, d) { + Object.defineProperty(d, "__esModule", { value: !0 }); - p = a(4); - r = a(6); - u = a(16); - v = a(19); - z = a(3); - k = a(8); - a(80); - G = a(5); - x = a(15); - c.iDa = function(a) { - var O, B, t, V, D, S, da, X, U, ha, ba, ea, ia, ka; - - function c() { - w(a.pc.value); - for (var b = 0, c = S.length; c--;) b += S[c].endTime - S[c].startTime; - k.ea(b === G.Xh(b), "Value of totalPlayTime is not an integer."); - return parseInt(G.Xh(b)); - } + d.Gga = "PlaylistMapTranslatorSymbol"; + }, function(g, d) { + Object.defineProperty(d, "__esModule", { + value: !0 + }); + d.Hga = "PlaylistShimSymbol"; + }, function(g, d, a) { + var c; - function f(a) { - w(a.RG); - X = a.Bw; - t = B = void 0; - V && (V.startTime = X); + function b(a, b, f, d, g, r) { + var m; + m = this; + this.Tm = g; + this.mi = r; + this.addEventListener = function(a, b, f) { + return m.mi.addListener(a, m.Qoa(a, b), f); + }; + this.removeEventListener = function(a, b) { + return m.mi.removeListener(a, m.Qoa(a, b)); + }; + this.getReady = function() { + return m.mi.F4(); + }; + this.getXid = function() { + return m.Za().V4(); + }; + this.getMovieId = function() { + return m.Za().M9a(); + }; + this.getElement = function() { + return m.Za().$x(); + }; + this.isPlaying = function() { + return m.Za().ly(); + }; + this.isPaused = function() { + return m.Za().tcb(); + }; + this.isMuted = function() { + return m.Za().scb(); + }; + this.isReady = function() { + return m.Za().isReady(); + }; + this.isBackground = function() { + return m.Za().dcb(); + }; + this.setBackground = function(a) { + return m.Za().Sza(a); + }; + this.startInactivityMonitor = function() { + return m.Za().YK(); + }; + this.setTransitionTime = function(a) { + return m.Za().RU(a); + }; + this.getDiagnostics = function() { + return m.Za().N8a(); + }; + this.getTextTrackList = function() { + return m.Za().csa(); + }; + this.getTextTrack = function() { + return m.Za().bsa(); + }; + this.setTextTrack = function(a) { + return m.Za().hAa(a); + }; + this.getVolume = function() { + return m.Za().kab(); + }; + this.isEnded = function() { + return m.Za().kcb(); + }; + this.getBusy = function() { + return m.Za().qk(); + }; + this.getError = function() { + return m.Za().getError(); + }; + this.getCurrentTime = function() { + return m.Za().qp(); + }; + this.getBufferedTime = function() { + return m.Za().o8a(); + }; + this.getSegmentTime = function() { + return m.Za().EI(); + }; + this.getDuration = function() { + return m.Za().pra(); + }; + this.getVideoSize = function() { + return m.Za().iab(); + }; + this.getAudioTrackList = function() { + return m.Za().c8a(); + }; + this.getAudioTrack = function() { + return m.Za().b8a(); + }; + this.getTimedTextTrackList = function() { + return m.Za().csa(); + }; + this.getTimedTextTrack = function() { + return m.Za().bsa(); + }; + this.getAdditionalLogInfo = function() { + return m.Za().X7a(); + }; + this.getTrickPlayFrame = function(a) { + return m.Za().Y$a(a); + }; + this.getSessionSummary = function() { + return m.Za().Wra(); + }; + this.getCongestionInfo = function(a) { + return m.o0(m.Za().f4(), a); + }; + this.getTimedTextSettings = function() { + return m.Za().MR(); + }; + this.setMuted = function(a) { + return m.Za().Tnb(a); + }; + this.setVolume = function(a) { + return m.Za().gob(a); + }; + this.setPlaybackRate = function(a) { + return m.Za().Xnb(a); + }; + this.setAudioTrack = function(a) { + return m.Za().Inb(a); + }; + this.setTimedTextTrack = function(a) { + return m.Za().hAa(a); + }; + this.setTimedTextSettings = function(a) { + return m.Za().TK(a); + }; + this.prepare = function() { + return m.Za().xv(); + }; + this.load = function() { + return m.Za().load(); + }; + this.close = function(a) { + return m.o0(m.mi.close(), a); + }; + this.play = function() { + return m.Za().play(); + }; + this.pause = function() { + return m.Za().pause(); + }; + this.seek = function(a) { + return m.Za().seek(a); + }; + this.engage = function(a, b) { + return m.o0(m.Za().bI(a), b); + }; + this.induceError = function(a) { + return m.Za().Lbb(a); + }; + this.loadCustomTimedTextTrack = function(a, b, f) { + return m.Za().Idb(a, b, f); + }; + this.tryRecoverFromStall = function() { + return m.Za().BL(); + }; + this.addEpisode = function(a) { + var b; + m.log.info("Next episode added", a); + b = a.playbackParams; + return m.mi.Z_({ + R: a.movieId, + QJ: a.nextStartPts, + VB: a.currentEndPts, + cb: b && m.Oua(b) || void 0, + uc: b && b.uiLabel || a.uiLabel, + ge: a.manifestData, + Tm: m.Tm + }); + }; + this.playNextEpisode = function(a) { + a = void 0 === a ? {} : a; + a = m.Oua(a); + m.log.info("Playing the next episode", a); + return m.mi.transition(a); + }; + this.playSegment = function(a) { + return m.Za().fjb(a); + }; + this.queueSegment = function(a) { + return m.Za().Ekb(a); + }; + this.updateNextSegmentWeights = function(a, b) { + return m.Za().fq(a, b); + }; + this.getCropAspectRatio = function() { + return m.Za().B8a(); + }; + this.getCurrentSegmentId = function() { + return m.mi.G8a(); + }; + this.getPlaylistMap = function() { + return m.mi.Mra(); + }; + this.setNextSegment = function(a) { + for (var b = [], f = 0; f < arguments.length; ++f) b[f - 0] = arguments[f]; + return m.mi.x$.apply(m.mi, [].concat(wb(b))); + }; + this.clearNextSegment = function(a) { + for (var b = [], f = 0; f < arguments.length; ++f) b[f - 0] = arguments[f]; + return m.mi.y_a.apply(m.mi, [].concat(wb(b))); + }; + this.updatePlaylistMap = function(a) { + return m.mi.Irb(a); + }; + this.goToNextSegment = function(a, b) { + return m.mi.mab(a, b); + }; + this.getPlaying = function() { + return m.isPlaying(); + }; + this.getPaused = function() { + return m.isPaused(); + }; + this.getMuted = function() { + return m.isMuted(); + }; + this.getEnded = function() { + return m.isEnded(); + }; + this.getTimedTextVisibility = function() { + return m.isTimedTextVisible(); + }; + this.isTimedTextVisible = function() { + return !!m.Za().MR().visibility; + }; + this.setTimedTextVisibility = function(a) { + return m.setTimedTextVisible(a); + }; + this.setTimedTextSize = function(a) { + return m.Za().TK({ + size: a + }); + }; + this.setTimedTextBounds = function(a) { + return m.Za().TK({ + bounds: a + }); + }; + this.setTimedTextMargins = function(a) { + return m.Za().TK({ + margins: a + }); + }; + this.setTimedTextVisible = function(a) { + return m.Za().TK({ + visibility: a + }); + }; + this.b3 = new Map(); + this.log = c.zd("VideoPlayer"); + this.addEpisode({ + movieId: a, + playbackParams: b, + uiLabel: f, + manifestData: d + }); + Object.defineProperty(this, "diagnostics", { + get: this.getDiagnostics + }); + } + Object.defineProperty(d, "__esModule", { + value: !0 + }); + c = a(3); + a(83); + b.prototype.Za = function() { + return this.mi.vp(); + }; + b.prototype.Qoa = function(a, b) { + var f; + this.b3.has(a) || this.b3.set(a, new Map()); + f = this.b3.get(a); + f.has(b) || f.set(b, this.y3a(a, b)); + return f.get(b); + }; + b.prototype.y3a = function(a, b) { + var f; + f = this; + return function(c) { + return b(Object.assign({}, c, { + type: a, + target: f + })); + }; + }; + b.prototype.o0 = function(a, b) { + return b ? a.then(b)["catch"](b) : a; + }; + b.prototype.Oua = function(a) { + return { + Qf: a.trackingId, + CB: a.authParams, + ri: a.sessionParams, + D2: a.disableTrackStickiness, + CV: a.uiPlayStartTime, + oR: a.forceAudioTrackId, + pR: a.forceTimedTextTrackId, + Ze: a.isBranching, + bba: a.vuiCommand, + playbackState: a.playbackState ? { + currentTime: a.playbackState.currentTime, + volume: a.playbackState.volume, + muted: a.playbackState.muted + } : void 0, + jC: a.enableTrickPlay, + g5: a.heartbeatCooldown, + W5: a.isPlaylist, + KS: a.loadImmediately || !1, + na: a.manifestIndex || 0, + Xy: a.pin, + jK: a.preciseSeeking, + U: a.startPts, + ea: a.endPts, + dj: a.packageId, + UD: a.renderTimedText + }; + }; + d.tQa = b; + }, function(g, d) { + Object.defineProperty(d, "__esModule", { + value: !0 + }); + d.Ega = "PlaylistConfigSymbol"; + }, function(g, d) { + Object.defineProperty(d, "__esModule", { + value: !0 + }); + d.Iga = "PlaylistVideoPlayerFactorySymbol"; + }, function(g, d) { + Object.defineProperty(d, "__esModule", { + value: !0 + }); + d.uY = "PlaylistManagerFactorySymbol"; + }, function(g, d, a) { + var c, h, k, f, p, m; + + function b(a, b, f) { + this.hg = a; + this.jb = b; + this.j = f; + this.mJ = []; + } + Object.defineProperty(d, "__esModule", { + value: !0 + }); + g = a(0); + c = a(2); + h = a(1); + k = a(15); + f = a(17); + p = a(3); + m = a(16); + b.prototype.u3 = function() { + this.mJ.forEach(function(a) { + return a(); + }); + }; + b.prototype.md = function(a, b, f) { + this.j.md(this.hg(a, b, f)); + }; + b.prototype.RR = function(a) { + this.j.fireEvent(m.X.Q7, { + hp: a + }); + }; + b.prototype.ZWa = function(a) { + -1 === this.mJ.indexOf(a) && this.mJ.push(a); + }; + b.prototype.Elb = function(a) { + a = this.mJ.indexOf(a); + 0 <= a && this.mJ.splice(a, 1); + }; + b.prototype.fsa = function(a) { + var b, d; + b = {}; + k.ab(a.code) ? b.T = c.fda(a.code) : b.T = c.H.qg; + try { + d = a.message.match(/\((\d*)\)/)[1]; + b.ic = p.Lma(d, 4); + } catch (v) {} + b.Ja = f.ad(a); + return b; + }; + a = b; + a = g.__decorate([h.N()], a); + d.dM = a; + }, function(g, d, a) { + var b, c, h, k, f, p, m; + Object.defineProperty(d, "__esModule", { + value: !0 + }); + b = a(9); + c = a(55); + h = a(18); + k = a(2); + f = a(63); + p = a(3); + m = a(16); + d.oHa = function(a, d) { + function g(c) { + var g, m; + g = c.error || c; + m = h.ad(g); + d.error("uncaught exception", g, m); + (g = (g = g && g.stack) && b.config.HBa && b.config.vrb ? 0 <= g.indexOf(b.config.HBa) : void 0) && (c && c.stopImmediatePropagation && c.stopImmediatePropagation(), c = p.ca.get(f.Sj), a.md(c(k.I.kQa))); } - function y(b) { - q(V, da, a.pc.value); - V = b.newValue ? { - Ya: b.newValue.Ya, - track: b.newValue, - startTime: a.pc.value, - endTime: r.pu - } : void 0; + function r() { + c.ee.removeListener(c.X4, g); + a.removeEventListener(m.X.Ce, r); + a.removeEventListener(m.X.Hh, r); } - - function w(a) { - B && t && (a = G.ue(a, B.endTime), a = G.ue(a, t.endTime), q(B, D, a), B.startTime = a, q(t, S, a), t.startTime = a, V && (q(V, da, a), V.startTime = a), X = a); + try { + c.ee.addListener(c.X4, g); + a.addEventListener(m.X.Ce, r); + b.config.Bbb && a.addEventListener(m.X.Hh, r); + } catch (y) { + d.error("exception in exception handler ", y); } + }; + }, function(g, d, a) { + var b, c, h, k, f, p; + Object.defineProperty(d, "__esModule", { + value: !0 + }); + g = a(19); + b = a(9); + c = a(5); + h = a(21); + k = a(2); + f = a(6); + p = a(15); + g.Ge(k.I.Pda, function(a) { + var m, k, v, y, w; - function n(b, c, d) { - b && q(b, c, G.ue(b.endTime, a.pc.value)); - if (d) return b = d.yM, c = d.stream, { - Ya: d.Ya, - track: c.track, - stream: c, - startTime: G.ig(b.startTime, X), - endTime: b.endTime - }; + function g() { + var a; + a = f.uq(h.yc() / v); + if (a != w) { + for (var b = f.Ai(a - w, 30); b--;) y.push(0); + (b = f.Xk(y.length - 31, 0)) && y.splice(0, b); + w = a; + } + y[y.length - 1]++; } - - function q(a, b, c) { - a && c >= a.startTime && (a = { - Ya: a.Ya, - track: a.track, - stream: a.stream, - startTime: a.startTime, - endTime: c - }, (c = b[b.length - 1]) && c.track == a.track && c.stream == a.stream && c.Ya == a.Ya && c.endTime == a.startTime ? c.endTime = a.endTime : b.push(a)); - } - O = z.Je(a, "PlayTimeTracker"); - D = []; - S = []; - da = []; - X = a.pc.value; - U = {}; - ha = !1; - ba = {}; - ea = 0; - ia = p.config.uLa; - ka = ia.length; - (function() { - a.addEventListener(u.BU, f); - a.Et.addListener(function(a) { - B = n(B, D, a.newValue); - }); - a.Tl.addListener(function(a) { - t = n(t, S, a.newValue); - }); - a.up.addListener(y); - }()); - for (U.abrdel = 0; ka--;) ba["abrdel" + ia[ka]] = 0, U["abrdel" + ia[ka]] = 0; - v.oa(this, { - h0: c, - uWa: function() { - w(a.pc.value); - return { - audio: b(D, h), - video: b(S, h) - }; - }, - dka: function() { - var a; - a = { - total: c(), - audio: b(D, d), - video: b(S, d), - timedtext: b(da, d) - }; - k.ea(a.audio && a.video); - return a; - }, - Aja: function() { - var c, d; - w(a.pc.value); - c = b(S, l); - try { - d = m(c); - } catch (Sa) { - return O.warn("Failed to calc average bitrate"), null; - } - U.abrdel = G.ve(d); - return U.abrdel; - }, - AWa: function() { - var c, d; - w(a.pc.value); - c = b(S, g); - try { - d = m(c); - } catch (Sa) { - return O.warn("Failed to calc average vmaf"), null; - } - return G.ve(d); - }, - yWa: function() { - var d; - if (!ha) { - for (var a = ia.length, b = c(); a--;) { - d = ia[a]; - if (0 == ba["abrdel" + d] && b > d * r.pj) { - for (var g = 0, h = S.length, p, f = 0, l = 0; l < h && !(p = S[l], g += p.stream.J * (p.endTime - p.startTime), f += p.endTime - p.startTime, p = p.stream.J, f > d * r.pj); l++); - g && (ba["abrdel" + d] = G.ve((g - p * (f - d * r.pj)) / (d * r.pj))); - } - } - 0 !== ba["abrdel" + ia[ia.length - 1]] && (ha = !0); - v.Kb(ba, function(a, b) { - U[a] = 0 == b ? U.abrdel : b; - }); + m = b.config.web; + k = -6 / (m - 2 - 2); + v = c.Qj; + y = []; + w = f.uq(h.yc() / v); + p.Ata(m) && (setInterval(g, 1E3 / m), d.Iua = { + n9a: function() { + var c; + for (var a = [], b = y.length - 1; b--;) { + c = y[b]; + a.unshift(0 >= c ? 9 : 1 >= c ? 8 : c >= m - 1 ? 0 : f.Uf((c - 2) * k + 7)); } - return U; - }, - NLa: function(a) { - ea += a; - }, - IXa: function() { - return ea; - }, - yZa: function() { - return !!(S[0] && S[0].stream && x.$a(S[0].stream.je)); + return a; } }); - }; - c.yib = b; - c.Bib = d; - c.Cib = h; - c.Aib = l; - c.Dib = g; - c.zib = m; - }, function(f, c, a) { - var b, d, h, l, g, m; - Object.defineProperty(c, "__esModule", { + a(c.Bb); + }); + }, function(g, d, a) { + var b, c, h, k, f, p, m, r, u, x, v, y, w, l, z, E, n; + Object.defineProperty(d, "__esModule", { value: !0 }); b = a(60); - d = a(16); - h = a(14); - l = a(19); - g = a(3); - m = a(47); - c.BDa = function(c) { - var N, T, n, q, O, B, t, V, D, S, da; + c = a(93); + h = a(264); + k = a(41); + f = a(55); + p = a(17); + m = a(95); + r = a(3); + u = a(115); + x = a(155); + v = a(18); + y = a(6); + w = a(15); + l = a(16); + z = a(106); + E = a(4); + n = a(85); + d.ENa = function(a) { + var H, t, aa, ra, Z, Q, ja, ea, ma, va, fa, Ga, Da, A, ib; - function p() { - t || (G(), c.Xf.appendChild(N), t = !0); + function d() { + if (!Z) { + ma = setInterval(q, 1E3); + a.sf.appendChild(t); + for (var b = Q.length; b--;) Q[b].addListener(S); + for (b = ja.length; b--;) a.addEventListener(ja[b], S); + Z = !0; + } + P(); } - function f() { - t && (c.Xf.removeChild(N), t = !1); + function g() { + if (Z) { + clearInterval(ma); + fa = va = void 0; + a.sf.removeChild(t); + for (var b = Q.length; b--;) Q[b].removeListener(S); + for (b = ja.length; b--;) a.removeEventListener(ja[b], S); + H.nb(); + Z = !1; + } } - function v() { - t ? f() : p(); + function D() { + Z ? g() : d(); } - function z() { - var d, g, h; - - function a(a, b, c) { - var d, g, h; - h = []; - b.filter(function(b) { - return b.le === a; - }).forEach(function(a) { - 0 <= c.indexOf(a) ? (void 0 === d ? d = a.J : g = a.J, void 0 === g && (g = a.J)) : void 0 !== d && void 0 !== g && (h.push({ - min: d, - max: g - }), d = g = void 0); + function F() { + var f, d, g, p, l, D, z, F, Q, n, P, ja, q, la, O, N, H, T, ma, S, U, Y, t, X, ga; + f = []; + f.push({ + Version: "6.0015.328.011", + Esn: c.cg ? c.cg.Df : "UNKNOWN", + PBCID: a.eQ, + UserAgent: y.pj + }); + try { + g = { + MovieId: a.R, + TrackingId: a.Qf, + Xid: a.ka + " (" + k.Cq.map(function(a) { + return a.ka; + }).join(", ") + ")", + Position: m.Mg(a.sd.value), + Duration: m.Mg(a.Hx.ma(E.Aa)), + Volume: y.Uf(100 * a.volume.value) + "%" + (a.muted.value ? " (Muted)" : "") + }; + a.Ta.Ze && (g["Segment Position"] = m.Mg(a.ay()), g.Segment = a.A4()); + f.push(g); + } catch (kb) {} + try { + p = a.Gp ? a.Gp.nbb() : void 0; + f.push({ + "Player state": Ga[a.state.value], + "Buffering state": Da[a.ym.value] + (w.ja(p) ? ", ETA:" + m.Mg(p) : ""), + "Rendering state": A[a.Pc.value] }); - void 0 !== d && void 0 !== g && (h.push({ - min: d, - max: g - }), d = g = void 0); - return h; - } - - function b(a, b, c) { - var d; - d = []; - b.filter(function(b) { - return b.le === a; - }).forEach(function(a) { - -1 === c.indexOf(a) && d.push({ - stream: { - bitrate: a.J - }, - disallowedBy: ["manual"] + } catch (kb) {} + try { + l = a.Zaa() + a.x0(); + D = a.dh.value; + z = D && D.stream; + F = a.ig.value; + Q = F && F.stream; + n = Q ? Q.oc : ""; + P = a.ie.value ? a.ie.value.oc : ""; + ja = a.Ri.value ? a.Ri.value.O : ""; + q = a.ie.value ? a.ie.value.O : ""; + la = a.Mb[b.gc.G.VIDEO].value; + O = a.Mb[b.gc.G.AUDIO].value; + f.push({ + "Playing bitrate (a/v)": z && Q ? z.O + " / " + Q.O + " (" + Q.width + "x" + Q.height + ")" : "?", + "Playing/Buffering vmaf": n + "/" + P, + "Buffering bitrate (a/v)": ja + " / " + q, + "Buffer size in Bytes (a/v)": a.x0() + " / " + a.Zaa(), + "Buffer size in Bytes": "" + l, + "Buffer size in Seconds (a/v)": m.Mg(a.VG()) + " / " + m.Mg(a.OL()), + "Current CDN (a/v)": (O ? O.name + ", Id: " + O.id : "") + " / " + (la ? la.name + ", Id: " + la.id : "") + }); + } catch (kb) {} + try { + if (a.dh.value && a.ig.value) { + N = a.dh.value.stream.track; + H = a.ig.value.stream; + T = a.Pi.value; + ma = a.Te.value ? a.Te.value.qc : []; + S = r.ca.get(u.zA); + U = S.zH(ma); + Y = S.gQ(); + t = H.Me; + X = /hevc/.test(t) ? "hevc" : /vp9/.test(t) ? "vp9" : /h264hpl/.test(t) ? "avchigh" : "avc"; + /hdr/.test(t) && (X += ", hdr"); + /dv/.test(t) && (X += ", dv"); + /prk/.test(t) && (X += ", prk"); + f.push({ + "Audio Track": N.yj + ", Id: " + N.Tb + ", Channels: " + N.jk + ", Codec: " + Y, + "Video Track": "Codec: " + U + " (" + X + ")", + "Timed Text Track": T ? T.yj + ", Profile: " + T.profile + ", Id: " + T.Tb : "none" }); + } + } catch (kb) {} + try { + ga = a.Gh; + f.push({ + Framerate: (a.ie.value ? a.ie.value.tR : 0).toFixed(3), + "Current Dropped Frames": w.ja(va) ? va : "", + "Total Frames": ga.FR(), + "Total Dropped Frames": ga.Zx(), + "Total Corrupted Frames": ga.wI(), + "Total Frame Delay": ga.GR(), + "Main Thread stall/sec": h.Iua ? h.Iua.n9a().join(" ") : "DISABLED", + VideoDiag: x.b7(a.OR()) }); - return d; - } - d = c.Fl(); - g = c.Ud.value.Db.sort(function(a, b) { - return a.J - b.J; - }); - h = g.reduce(function(a, b) { - 0 > a.indexOf(b.le) && a.push(b.le); - return a; - }, []).map(function(c) { - return { - profile: c, - ranges: a(c, g, d), - disallowed: b(c, g, d) - }; - }); - c.bb.VQ(h); + } catch (kb) {} + try { + f.push({ + Throughput: a.pa + " kbps" + }); + } catch (kb) {} + try { + v.pc(ea, function(a, b) { + d = d || {}; + d[a] = JSON.stringify(b); + }); + d && f.push(d); + } catch (kb) {} + return f; } - function k() { + function P() { var a; - a = c.Ud.value.Db.filter(function(a) { - return V[a.J]; - }); - a.length || a.push(c.vrb); - return a; - } - - function G() { - var a, b, d; - a = c.gc.value; - b = c.Ud.value; - d = c.Ej; - a && (d = d.slice(), d.sort(function(a, b) { - return a.Fd - b.Fd; - }), C(q, a.Db.map(function(a) { - return { - value: a.J, - caption: a.J, - selected: a == c.lM.value - }; - }))); - b && (C(O, b.Db.map(function(a) { - var b, d; - b = c.v2.Mq(a); - d = a = a.J; - b && (d += " (" + b.join("|") + ")"); - return { - value: a, - caption: d, - selected: c.Fl != k ? !b : V[a] - }; - })), O.removeAttribute("disabled")); - d && (C(B, d.map(function(a) { - return { - value: a.id, - caption: "[" + a.id + "] " + a.name, - selected: a == c.Ya[D.G.VIDEO].value - }; - })), B.removeAttribute("disabled")); - } - - function x() { - t && G(); + if (aa.selectionStart == aa.selectionEnd) { + a = ""; + F().forEach(function(b) { + a = a ? a + "\n" : ""; + v.pc(b, function(f) { + a += f + ": " + b[f] + "\n"; + }); + }); + aa.style.fontSize = m.yq(y.uq(t.clientHeight / 60), 8, 18) + "px"; + aa.value = a; + } } - function y(a) { - var b, c; - b = h.createElement("DIV", "display:inline-block;vertical-align:top;margin:5px;"); - a = h.createElement("DIV", void 0, a); - c = h.createElement("select", "width:120px;height:180px", void 0, { - disabled: "disabled", - multiple: "multiple" - }); - b.appendChild(a); - b.appendChild(c); - T.appendChild(b); - return c; + function q() { + var b; + if (a.Gh) { + b = a.Gh.Zx(); + b && (va = b - fa, fa = b, S()); + } } - function C(a, b) { - a.innerHTML = ""; - b.forEach(function(b) { - var c; - c = { - title: b.caption - }; - b.selected && (c.selected = "selected"); - c = h.createElement("option", void 0, b.caption, c); - c.value = b.value; - a.appendChild(c); - }); + function S() { + H.nb(P); } - function F(a) { - a.ctrlKey && a.altKey && a.shiftKey && 83 == a.keyCode && v(); + function T(a) { + a.ctrlKey && a.altKey && a.shiftKey && (a.keyCode == z.Zs.bFa || a.keyCode == z.Zs.Q) && D(); } - N = h.createElement("DIV", "position:absolute;left:0;top:50%;right:0;bottom:0;text-align:center;color:#040;font-size:11px;font-family:monospace", void 0, { - "class": "player-streams" + H = r.ca.get(n.Ew)(E.hh(1)); + t = p.createElement("DIV", "position:absolute;left:10px;top:10px;right:10px;bottom:10px", void 0, { + "class": "player-info" }); - T = h.createElement("DIV", "display:inline-block;background-color:rgba(255,255,255,0.86);border:3px solid #fff;padding:5px;margin-top:-90px"); - n = h.createElement("DIV", "width:100%;text-align:center"); - q = y("Audio Bitrate"); - O = y("Video Bitrate"); - B = y("CDN"); - V = {}; - D = a(13); - S = g.Z.get(m.oj); - N.appendChild(T); - T.appendChild(n); - da = h.createElement("BUTTON", void 0, "Override"); - da.addEventListener("click", function() { - var d, g, a, b; - V = {}; - for (var a = O.options, b = a.length; b--;) { - d = a[b]; - d.selected && (V[d.value] = 1); - } - c.Fl = k; - z(); - if (a = c.Ej) { - g = B.value; - a = a.filter(function(a) { - return a.id == g; - })[0]; - b = c.Ya[D.G.VIDEO].value; - a && a != b && (a.ylb = { - testreason: "streammanager", - selreason: "userselection" - }, c.Ya[D.G.VIDEO].set(a)); + aa = p.createElement("TEXTAREA", "position:absolute;resize:none;box-sizing:border-box;width:100%;height:100%;padding:10px;background-color:rgba(0,0,0,0.4);color:#fff;font-size:12px;font-family:Arial;overflow:auto"); + ra = p.createElement("DIV", "position:absolute;top:2px;right:2px"); + ja = [l.X.ZS, l.X.KYa]; + ea = {}; + Q = [a.sd, a.Mb[b.gc.G.AUDIO], a.Mb[b.gc.G.VIDEO], a.dh, a.ig, a.Ri, a.ie, a.Pi, a.state, a.ym, a.Pc, a.volume, a.muted]; + this.Lnb = function(a) { + ea.DFR = a; + }; + Ga = {}; + Ga[k.sA] = "Not Loaded"; + Ga[k.Yk] = "Loading"; + Ga[k.qn] = "Normal"; + Ga[k.JF] = "Closing"; + Ga[k.IF] = "Closed"; + Da = {}; + Da[k.Vk] = "Normal"; + Da[k.Os] = "Pre-buffering"; + Da[k.Vba] = "Network stalled"; + A = {}; + A[k.Di] = "Waiting for decoder"; + A[k.Mo] = "Playing"; + A[k.Dq] = "Paused"; + A[k.xw] = "Media ended"; + aa.setAttribute("readonly", "readonly"); + t.appendChild(aa); + t.appendChild(ra); + ib = p.createElement("BUTTON", null, "X"); + ib.addEventListener("click", g, !1); + ra.appendChild(ib); + f.ee.addListener(f.dy, T); + a.addEventListener(l.X.Ce, function() { + f.ee.removeListener(f.dy, T); + g(); + }); + v.La(this, { + toggle: D, + show: d, + ey: g, + i9a: F + }); + }; + }, function(g, d, a) { + var c, h, k, f, p, m, r, u, x, v, y, w, l, z, E, n, F, q, N, O, Y, U, t, S; + + function b(a) { + var b; + b = this; + this.j = a; + this.jb = this.j.jb; + this.Ua = y.qf(this.j, "MediaPresenterASE"); + this.oka = this.aja = this.el = 0; + this.Zc = this.jb.Ha; + this.Kka = this.Hka = this.w_ = this.f_ = this.lP = this.GN = this.i_ = !1; + this.$k = { + type: x.Vf.audio, + XB: [], + ho: [] + }; + this.Bn = { + type: x.Vf.video, + XB: [], + ho: [] + }; + this.nx = {}; + this.hka = p.config.Sfb; + this.Bka = p.Y_a(!!this.j.Ta.Ze).Lwa; + this.TZ = p.config.k7; + this.YVa = y.ca.get(t.Ew)(U.rb(O.AY)); + this.Le = {}; + this.eka = {}; + this.dG = {}; + this.j.En = !1; + this.nx[c.gc.rg.AUDIO] = this.$k; + this.nx[c.gc.rg.VIDEO] = this.Bn; + z.sa(this.TZ > this.hka, "bad config"); + z.sa(this.TZ > this.Bka, "bad config"); + this.jb.addEventListener(Y.oh.vAa, function() { + b.Ua.trace("sourceBuffers have been created. Initialize MediaPresenter."); + try { + b.DSa(); + } catch (X) { + b.Ua.error("Exception while initializing", X); + b.bl(w.I.tMa); } - f(); - }, !1); - n.appendChild(da); - da = h.createElement("BUTTON", void 0, "Reset"); - da.addEventListener("click", function() { - delete c.Fl; - z(); - f(); - }, !1); - n.appendChild(da); - b.Bd.addListener(b.cw, F); - c.addEventListener(d.Qe, function() { - b.Bd.removeListener(b.cw, F); - }); - c.Ya.forEach(function(a) { - a.addListener(x); - }); - c.gc.addListener(x); - c.Ud.addListener(x); - l.oa(this, { - toggle: v, - show: p, - dw: f }); - }; - }, function(f, c, a) { - var b, d, h, l, g, m, p, r; - Object.defineProperty(c, "__esModule", { + } + Object.defineProperty(d, "__esModule", { value: !0 }); - b = a(4); - d = a(16); - h = a(17); - l = a(103); - g = a(2); - m = a(195); - p = a(5); - r = a(15); - c.Qya = function(a) { - var f, u, k, x; + c = a(60); + h = a(140); + k = a(63); + f = a(5); + p = a(9); + m = a(41); + r = a(55); + u = a(25); + x = a(75); + v = a(21); + y = a(3); + a(83); + w = a(2); + l = a(427); + z = a(12); + E = a(95); + n = a(17); + F = a(42); + q = a(16); + N = a(15); + O = a(209); + Y = a(174); + U = a(4); + t = a(85); + S = a(116); + b.prototype.qra = function() { + return this.jb.qp(!1); + }; + b.prototype.FR = function() { + return this.jb.FR(); + }; + b.prototype.Zx = function() { + return this.jb.Zx(); + }; + b.prototype.wI = function() { + return this.jb.wI(); + }; + b.prototype.GR = function() { + return this.jb.GR(); + }; + b.prototype.DSa = function() { + var a, b; + a = this; + this.Ua.trace("Video element initializing"); + b = this.jb.sourceBuffers; + b.forEach(function(b) { + return a.zVa(b); + }); + p.config.Qsb && (b.filter(function(a) { + return a.type === c.gc.rg.AUDIO; + })[0] || this.Ua.error("unexpected: audio source buffer is not available yet")); + a.ESa(a.j.Vu); + }; + b.prototype.ESa = function(a) { + var d; - function c() { - a.state.value != d.lk || a.Tb.value != d.Vo && a.Tb.value != d.pr ? u.Og() : u.Sn(); - } - f = b.config.b5a; - if (!a.KO() && f) { - u = new l.my(f, function() { - a.fireEvent(d.Aaa, g.v.RJ); - }); - a.Tb.addListener(c); - a.state.addListener(c); - if (b.config.J0) { - x = h.Ra(); - k = new m.Zaa(b.config.J0, function() { - var c, l; - c = h.Ra(); - l = c - x; - l > f && (a.fireEvent(d.Aaa, g.v.BJ), k.xY()); - l > 2 * b.config.J0 && (a.K0 = p.ig(l, a.K0 || 0)); - x = c; + function b() { + function a() { + var a, b; + b = d.j.gb && d.j.gb.JI(); + d.j.Pc.value == m.Di && d.j.state.value == m.qn && d.j.ym.value == m.Vk && d.j.lj.value == m.Vk && b ? (d.qZ.mp(), a = "ensureTimer") : (d.qZ.Pf(), a = "stopTimer"); + d.Ua.trace("Timer update: " + a, { + presentingState: d.j.Pc.value, + playbackState: d.j.state.value, + avBufferingState: d.j.ym.value, + textBufferingState: d.j.lj.value, + hasLicense: b }); - k.j5(); } - a.addEventListener(d.Qe, function() { - u.Og(); - r.$a(k) && k.xY(); - }); + p.config.Poa && (z.sa(!d.qZ), d.qZ = y.ca.get(S.Gw)(p.config.Poa, function() { + var a; + a = y.ca.get(l.Hca).f4a(d.j); + d.bl(a.code, a); + }), d.j.Pc.addListener(a), d.j.ym.addListener(a), d.j.lj.addListener(a), d.j.state.addListener(a), d.j.addEventListener(q.X.aua, a), a()); } - }; - }, function(f, c, a) { - var b, d, h, l, g, m, p, r, u, v, z, k, G, x, y, C, F, N, T, n; - Object.defineProperty(c, "__esModule", { - value: !0 - }); - b = a(186); - d = a(51); - h = a(6); - l = a(57); - g = a(4); - m = a(16); - p = a(25); - r = a(3); - u = a(303); - v = a(452); - z = a(8); - k = a(19); - G = a(2); - x = a(5); - y = a(32); - C = a(15); - F = a(46); - c.pFa = function(a) { - var H, P, Pa, wa, na, Y, aa, ta, db, Ba, Ya, Ra, zb, gc, gb, hb; function c() { - return a.V_(); + d.RN || (c = z.tDa, d.jb.addEventListener(Y.oh.KK, d.Le[Y.oh.KK] = function() { + return d.a_(); + }), d.jb.addEventListener(Y.oh.Fm, d.Le[Y.oh.Fm] = function() { + return d.mUa(); + }), d.Zc.addEventListener("ended", d.Le.ended = function() { + return d.nUa(); + }), d.Zc.addEventListener("play", d.Le.play = function() { + return d.qUa(); + }), d.Zc.addEventListener("pause", d.Le.pause = function() { + return d.pUa(); + }), d.Zc.addEventListener("playing", d.Le.playing = function() { + return d.rUa(); + }), d.hG = !0, 0 === d.j.na && (d.hP(), d.Ua.trace("Video element initialization complete"), d.j.he("vi"), p.config.$oa ? setTimeout(function() { + d.$Z = !0; + d.Mi(); + }, p.config.$oa) : d.$Z = !0, b(), F.hb(function() { + return d.Mi(); + }))); } - - function f() { - hb && (na.start(), a.Tb.value != m.em && na.stop()); - } - - function w() { - var b, d; - b = c(); - q(); - ta && (H.info("Deactivating", ta), Ya.pSa(c())); - a.up.set(null); - na.ira(wa = void 0); - X(); - d = a.Fc.value; - d && d.Cla() && !d.yla() && (d = void 0); - d && a.Tb.value !== m.Zh && Ya.BLa(b, d); - d ? (H.info("Activating", d), a.zi.set(m.Zq), hb || a.Yc("tt_start"), d.getEntries(ca)) : a.zi.set(m.hk); - ta = d; - t(); - } - - function q() { - gc = 0; - clearTimeout(gb); - } - - function ca(b) { - var h, p; - if (!zb) { - h = b.track; - h == a.Fc.value && (h.W0 ? b.K ? (q(), Ba = h.DXa(), A("addListener"), H.info("Activated", h), a.up.set(h), hb ? y.Xa(function() { - Ba.cn(c()); - }) : Ba.pause()) : ((p = !!(gc < g.config.gna)) && (gb = setTimeout(Z.bind(null, h), g.config.gsa)), H.error("Failed to activate img subtitle", { - retry: p - }, b, h)) : ((p = b.entries) ? (q(), na.ira(wa = p), H.info("Activated", h), a.up.set(h)) : ((p = !!(gc < g.config.gna)) && (gb = setTimeout(Z.bind(null, h), g.config.gsa)), H.error("Failed to activate", { - retry: p - }, r.jk(b), h)), t())); - hb || a.Yc(b.K ? "tt_comp" : "tt_err"); - b.K ? (g.config.Bqa ? setTimeout(function() { - a.zi.set(m.hk); - }, g.config.Bqa) : a.zi.set(m.hk), h.W0 || t()) : b.Dn ? H.warn("aborted timed text track loading") : g.config.cVa ? (H.error("fatal playback error, failed to load subtitles", b.track ? b.track.Zi : {}), a.Hh(new d.rj(G.v.Cya))) : (H.error("ignore subtitle initialization error", b), a.zi.set(m.hk)); - } - } - - function Z(a) { - gc++; - a.getEntries(ca); - } - - function t() { - var b; - a.state.value == m.lk && a.Tb.value != m.Zh && (wa ? b = na.oWa() : a.Fc.value && (b = Pa[a.Fc.value.ae()])); - b && C.$a(b.startTime) && (Y++, aa += na.S_() - b.startTime, P.PX = x.l$(aa / (Y + 0))); - a.V5.set(b); - } - - function X() { - Ba && (Ba.stop(), A("removeListener")); - Ba = void 0; - } - - function U(a) { - Ba && Ba.F9a && Ba.F9a(a.Gha, a.g3a); - } - - function ha(a) { - Ba && Ba.Uq && Ba.Uq(a.wo, a.icb); - } - - function ba(a) { - P.fireEvent(T, a); - a && a.id && (Ya.Msa(a.id), Ra[a.id] = 1); - H.trace("showsubtitle", ia(a)); - } - - function ea(a) { - P.fireEvent(n, a); - a && a.id && delete Ra[a.id]; - H.trace("removesubtitle", ia(a)); - } - - function ia(a) { - return { - currentPts: c(), - displayTime: a.displayTime, - duration: a.duration, - id: a.id, - originX: a.originX, - originY: a.originY, - sizeX: a.sizeX, - sizeY: a.sizeY, - rootContainerExtentX: a.rootContainerExtentX, - rootContainerExtentY: a.rootContainerExtentY - }; - } - - function ka() { - hb && Ba.cn(c()); - } - - function ua() { - H.warn("imagesubs buffer underflow", a.Fc.value.Zi); - a.zi.set(m.Zq); - } - - function la() { - H.info("imagesubs buffering complete", a.Fc.value.Zi); - a.zi.set(m.hk); - } - - function A(b) { - Ba[b]("showsubtitle", ba); - Ba[b]("removesubtitle", ea); - Ba[b]("underflow", ua); - Ba[b]("bufferingComplete", la); - "addListener" == b ? (a.addEventListener(m.ST, ka), a.addEventListener(F.Ea.U2, U), a.addEventListener(F.Ea.Uq, ha)) : (a.removeEventListener(m.ST, ka), a.removeEventListener(F.Ea.U2, U), a.removeEventListener(F.Ea.Uq, ha)); - } - H = r.Je(a, "TimedTextManager"); - P = this; - Pa = {}; - na = new u.rFa(); - Y = 0; - aa = 0; - db = new l.Ci(); - Ya = new v.gFa(r.Je(a, "SubtitleTracker"), g.config.pUa, { - oa: k.oa, - Of: z.ea - }); - Ra = Object.create(null); - zb = !1; - gc = 0; - hb = !1; - this.PX = null; - P.addEventListener = db.addListener; - P.removeEventListener = db.removeListener; - P.fireEvent = db.mc; - this.dX = function(c, d) { - var g, f; - g = "custom" + ++N; - f = b.SU(a, g, "1", c, "xx", d || g, h.Eu, "primary", "custom", {}, !1, !1, void 0, void 0); - a.Ym.push(f); - a.js.forEach(function(a) { - p.O6(a.Ym, f); - }); - a.fireEvent(m.wDa); - return f; - }; - this.LYa = function(a) { - return Ya.xYa(a); - }; - this.d0 = function(a) { - return Ya.d0(a); - }; - Pa[b.Lba] = { - Fpb: !0 - }; - Pa[b.TU] = { - Xv: !0 - }; - na.S_ = c; - na.m3 = t; - a.Fc.addListener(w); - g.config.K5a ? (a.addEventListener(m.mg, function() { - hb = !0; - y.Xa(function() { - Ba ? Ba.cn(c()) : f(); - t(); - }); - }), w()) : (a.zi.set(m.hk), a.addEventListener(m.mg, function() { - hb = !0; - w(); - })); - a.Tb.addListener(function(b) { - var d, g; - d = b.newValue; - b = b.oldValue; - if (0 <= [m.em, m.Vo].indexOf(d)) { - g = a.Fc.value; - 0 <= [m.em, m.Vo].indexOf(b) || g && g.Cla() && !g.yla() || Ya.Rna(c(), g, "presentingstate:" + d); - } else 0 <= [m.Zh, m.pr].indexOf(d) && Ya.TZ(c(), "presentingstate:" + d); - }); - a.Tb.addListener(f); - a.addEventListener(m.Gaa, f); - a.V5.addListener(function(a) { - (a = a.newValue) && C.$a(a.id) && Ya.Msa(a.id); - }); - a.addEventListener(m.Qe, function() { - wa = void 0; - X(); - na.stop(); - t(); - zb = !0; - q(); - }); - }; - N = 0; - T = "showsubtitle"; - n = "removesubtitle"; - }, function(f, c, a) { - var b, d, h; - Object.defineProperty(c, "__esModule", { - value: !0 - }); - a(28); - a(16); - b = a(57); - a(17); - d = a(8); - h = a(32); - a(15); - a(46); - c.HDa = function() { - var f, p, r, u, v; - - function a() { - v = !1; - for (var a = f.length, b; a--;) b = f[a], u[b] && (u[b] = !1, r.mc(b + "changed", { - getModel: p[b] - })); - } - - function c(b) { - u[b] = !0; - v || (v = !0, h.Xa(a)); - } - f = []; - p = {}; - r = new b.Ci(); - u = {}; - v = !1; - return { - register: function(a, b) { - d.ea(!(0 <= f.indexOf(a)), "panel already registered"); - p[a] = b; - f.push(a); - }, - f3: c, - Znb: function(a) { - return (a = p[a]) ? a() : void 0; - }, - addEventListener: function(a, b) { - r.addListener(a, b); - p[a] && c(a); - }, - removeEventListener: function(a, b) { - r.removeListener(a, b); - } - }; + d = this; + a ? this.Ua.trace("Waiting for needkey") : this.Ua.warn("Movie is not DRM protected", { + MovieId: this.j.R + }); + this.Ua.trace("Waiting for loadedmetadata"); + a ? this.jb.addEventListener(Y.oh.gua, function() { + d.j.he("ld"); + d.j.gb.LQ("" + d.j.R); + d.j.fireEvent(q.X.aua); + }) : this.j.gb.LQ("" + this.j.R); + u.iXa(this.Zc, function() { + d.Ua.trace("Video element event: loadedmetadata"); + d.j.he("md"); + }); + r.ee.addListener(r.uk, this.dG[r.uk] = function() { + return d.Lia(); + }, f.mA); + this.j.addEventListener(q.X.Ce, function() { + return d.Lia(); + }, f.mA); + this.j.addEventListener(q.X.kza, function() { + return d.s_(); + }); + this.j.paused.addListener(function() { + return d.Mi(); + }); + this.j.muted.addListener(function() { + return d.I_(); + }); + this.j.volume.addListener(function() { + return d.I_(); + }); + this.j.playbackRate.addListener(function() { + return d.oWa(); + }); + this.j.ym.addListener(function() { + return d.Mi(); + }); + this.j.lj.addListener(function() { + return d.Mi(); + }); + this.I_(); + this.$k.Pl.Tza(function() { + return d.yO(); + }); + this.Bn.Pl.Tza(function() { + return d.yO(); + }); + this.yO(); + F.hb(function() { + c(); + }); }; - }, function(f, c, a) { - var g, m, p, r, u, v, z, k, G, x, y, C, F, N, T, n, q, O, B, ja, V, D, S, da, X, U; - - function b(a) { - var b; + b.prototype.yP = function(a) { + var b, f; b = this; - this.L = a; - this.ita = Promise.resolve(); - this.RS = t.WebKitMediaKeys || HTMLVideoElement.prototype.webkitGenerateKeyRequest ? "webkit" : HTMLVideoElement.prototype.msSetMediaKeys ? "ms" : ""; - this.Bn = []; - this.bi = new v.Ci(); - this.Wca = this.eV = 0; - this.HK = []; - this.wa = x.Je(this.L, "MediaElementASE"); - this.Sea = O.Gb; - this.tV = !1; - this.ke = {}; - this.uD = {}; - this.bO = this.IK(function() { - var a; - if (b.Ba) { - a = b.bL(); - return a ? a.totalVideoFrames : b.Ba.webkitDecodedFrameCount; - } - }); - this.Zv = this.IK(function() { - var a; - if (b.Ba) { - a = b.bL(); - return a ? a.droppedVideoFrames : b.Ba.webkitDroppedFrameCount; - } - }); - this.CF = this.IK(function() { - var a; - if (b.Ba) { - a = b.bL(); - return a && a.corruptedVideoFrames; - } - }); - this.cO = this.IK(function() { - var a; - if (b.Ba) { - a = b.bL(); - return a && ja.ve(a.totalFrameDelay * O.pj); - } - }); - this.Kda = function() { - return b.bi.mc(S.Sg.lma); - }; - this.xj = new(x.Z.get(D.N9))(this, this.L); - u.config.uA && (this.ita = new Promise(function(a) { - b.Sea = a; - b.L.addEventListener(z.Qe, a); - })); - this.wa.trace("Created Media Element"); - this.addEventListener = this.bi.addListener; - this.removeEventListener = this.bi.removeListener; - this.Ba = d(this.L.Gx); - this.sourceBuffers = this.Bn; - } - - function d(a) { - var b, c; - b = x.Z.get(da.fca).rYa(); - a = a.width / a.height * b.height; - c = (b.width - a) / 2; - return u.config.Q9a ? O.createElement("VIDEO", "position:absolute;width:" + a + "px;height:" + b.height + "px;left:" + c + "px;top:0px") : O.createElement("VIDEO", "position:absolute;width:100%;height:100%"); - } - - function h(a) { - a.preventDefault(); - return !1; - } - - function l(a, b) { - var c, d, g; - c = a.target; - c = c && c.error; - d = a.errorCode; - g = c && c.code; - O.$a(g) || (g = d && d.code); - d = c && c.msExtendedCode; - O.$a(d) || (d = c && c.systemCode); - O.$a(d) || (d = a.systemCode); - a = O.oa({}, { - code: g, - systemCode: d - }, { - no: !0 + f = this.nx[a.P]; + f ? f.ho.push(a) : z.sa(!1); + this.uRa(a).then(function() { + b.yO(); + b.j.fireEvent(q.X.ZS); + })["catch"](function(a) { + b.bl(w.I.yMa, { + Ja: n.ad(a) + }); }); + }; + b.prototype.GXa = function(a, b) { + var f; b = { - R: b(g), - za: B.W1(a) - }; - try { - c && c.message && (b.xG = c.message); - } catch (ua) {} - d = O.Zc(d); - V.da(d) && (b.ub = x.mM(d, 4)); - return { - Nz: b, - f1a: a + P: a.type, + Bc: !0, + response: b, + Vi: function() { + return "header"; + } }; - } - Object.defineProperty(c, "__esModule", { - value: !0 - }); - g = a(181); - m = a(134); - p = a(51); - r = a(6); - u = a(4); - v = a(57); - z = a(16); - k = a(60); - G = a(25); - x = a(3); - y = a(2); - C = a(107); - F = a(8); - N = a(80); - T = a(305); - n = a(103); - q = a(19); - O = a(14); - B = a(138); - ja = a(5); - V = a(15); - D = a(310); - S = a(166); - da = a(315); - X = !!(ja.JC && HTMLVideoElement && URL && HTMLVideoElement.prototype.play); - U = X && (HTMLVideoElement.prototype.webkitGenerateKeyRequest || ja.IC); - b.prototype.Un = function(a) { - try { - this.Ba && (this.Wca = this.Ba.currentTime); - } catch (ba) { - this.wa.error("Exception while getting VIDEO.currentTime", ba); - a && this.sy(y.v.tCa, ba); - } - return ja.ve(this.Wca * O.pj); + f = this.nx[a.type]; + f ? f.ho.push(b) : z.sa(!1); + this.Hka || a.type !== c.gc.rg.VIDEO || (this.seek(this.j.U, q.Ng.mF), this.Hka = !0); }; - b.prototype.seek = function(a) { + b.prototype.zVa = function(a) { var b; - F.ea(!this.wk); - this.Jea(); - b = this.Un(!0); - if (ja.ru(b - a) <= g.cK) this.wa.trace("Seek delta too small", { - currentTime: b, - seekTime: a, - min: g.cK - }); - else try { - this.wa.trace("Setting video elements currentTime", { - From: N.kg(b), - To: N.kg(a) - }); - this.wk = {}; - this.Ba.currentTime = a / O.pj; - this.bi.mc(S.Sg.Ik); - } catch (ea) { - this.wa.error("Exception while setting VIDEO.currentTime", ea); - this.sy(y.v.uCa, ea); - } - }; - b.prototype.yYa = function() { - return !!this.wk; - }; - b.prototype.addSourceBuffer = function(a) { - var c, d, g, h; - - function b(a) { - return c.DKa(g, c.L.gc, a); - } - c = this; - d = O.Zc(this.eV.toString() + this.Bn.length.toString()); - d = { - sourceId: this.eV, - oM: d - }; - g = x.Z.get(C.ky).QE(this.L.Ud.value.Db); - try { - h = new m.o$(this.L, a, b, this.Kf, d, this.wa); - } catch (la) { - h = O.yc(la); - this.wa.error("Unable to add source buffer.", { - mime: b(a), - error: h + b = this.nx[a.type]; + if (b) try { + b.Pl = a; + } catch (X) { + this.bl(w.I.lY, { + T: O.i4(a.type), + Ja: n.ad(X) }); - this.L.Hh(new p.rj(y.v.nU, { - R: a === x.Df.Gf.AUDIO ? O.u.e$ : O.u.f$, - za: h - })); - return; } - this.Bn.push(h); - a == r.FJ && h.o_ && h.o_.addListener(this.Sea); - return h; - }; - b.prototype.kX = function(a) { - for (var b = a.length, c = 0; c < b; c++) this.addSourceBuffer(a[c]); - this.bi.mc(S.Sg.zra); - return !0; - }; - b.prototype.removeSourceBuffer = function(a) { - for (var b = this.Bn.length, c = 0; c < b; c++) G.aha(a, this.Bn[c]) && (this.Bn = this.Bn.splice(c, 1)); - this.Kf.removeSourceBuffer(a); - }; - b.prototype.endOfStream = function() { - u.config.kY && this.Kf.endOfStream(); }; - b.prototype.ym = function(a) { - this.Bn = []; - a && a.Hqb(); - return !0; + b.prototype.yO = function() { + this.hG ? this.Mi() : p.config.HXa && this.hP(); }; - b.prototype.p9a = function(a) { - this.eV = a; + b.prototype.Ugb = function() { + var a; + a = this.j.ay() || 0; + this.j.Ta.Ze ? p.config.ZYa && (a = Math.max(a - (this.jb.a$ + 1) - p.config.Z9, this.j.gb.Ora().Kc)) : a = Math.max(a - p.config.Zmb, this.MSa); + this.seek(a, q.Ng.MY); }; - b.prototype.Zja = function() { - if (this.Kf) return this.Kf.duration; + b.prototype.d8 = function(a) { + var b; + b = this; + a.mediaType === c.gc.rg.AUDIO ? this.GN = !0 : a.mediaType === c.gc.rg.VIDEO && (this.lP = !0); + F.hb(function() { + return b.Mi(); + }); }; - b.prototype.C9a = function(a) { - this.Kf && (this.L.duration = 1E3 * a, this.L.n2 = 1E3 * a, this.Kf.duration = a); + b.prototype.t9a = function() { + return { + x3a: this.aja, + vgb: this.oka + }; }; - b.prototype.oTa = function() { - var a; - if (!this.tV && this.Ba && 2 <= this.Ba.readyState) { - a = this.Ba.webkitDecodedFrameCount; - if (void 0 === a || 0 < a || u.config.Scb) this.tV = !0; - } - return this.tV; + b.prototype.uRa = function(a) { + var b; + b = this.jb && this.jb.Dra(); + return void 0 === this.e_ && b && a.cf && a.cf.Fc && a.cf.Fc.qa && Infinity != a.cf.Fc.qa.ea && (a = a.cf.Fc.qa.ea + a.Kk, b.N8(U.Aa) < a) ? (this.e_ = b.scale(2), this.PUa()) : Promise.resolve(); }; - b.prototype.J_ = function() { + b.prototype.PUa = function() { var a; - a = this.yda(); - return !(!a || 1 != a.constrictionActive); - }; - b.prototype.open = function() { - var a, b, c; a = this; - this.L.addEventListener(z.Daa, function(b) { - return a.yJa(b); - }); - if (X) { - if (this.L.g1) { - if (!U) { - this.dd(y.v.X$); - return; - } - if (ja.IC && ja.IC.isTypeSupported && this.xj.ce) try { - if (!ja.IC.isTypeSupported(this.xj.ce, "video/mp4")) { - this.UKa(function(b) { - a.dd(y.v.lU, b); - }); - return; - } - } catch (ia) { - this.sy(y.v.lU, ia); - return; - } - } - try { - this.Kf = new ja.JC(); - } catch (ia) { - this.sy(y.v.kCa, ia); - return; - } - try { - this.Mf = URL.createObjectURL(this.Kf); - } catch (ia) { - this.sy(y.v.lCa, ia); - return; - } - try { - this.xj.PLa(this.Kda); - this.Kf.addEventListener("sourceopen", function(b) { - return a.lea(b); - }); - this.Kf.addEventListener(this.RS + "sourceopen", function(b) { - return a.lea(b); - }); - this.Ba.addEventListener("error", this.ke.error = function(b) { - return a.KD(b); - }); - this.Ba.addEventListener("seeking", this.ke.seeking = function() { - return a.xJa(); - }); - this.Ba.addEventListener("seeked", this.ke.seeked = function() { - return a.hW(); - }); - this.Ba.addEventListener("timeupdate", this.ke.timeupdate = function() { - return a.zJa(); - }); - this.Ba.addEventListener("loadstart", this.ke.loadstart = function() { - return a.gW(); - }); - this.Ba.addEventListener("volumechange", this.ke.volumechange = function(b) { - return a.AJa(b); - }); - this.Ba.addEventListener(this.xj.KG, this.ke[this.xj.KG] = function(b) { - return a.sJa(b); + return new Promise(function(b, f) { + function c() { + return d().then(function(a) { + if (!1 === a) return c(); }); - b = this.L.Xf; - c = b.lastChild; - c ? b.insertBefore(this.Ba, c) : b.appendChild(this.Ba); - u.config.$ha && this.Ba.addEventListener("contextmenu", h); - if (this.L.ge) try { - this.Ba.msAudioCategory = "Other"; - } catch (ia) { - this.wa.error("videoElement.msAudioCategory threw an exception."); - } - this.Ba.src = this.Mf; - k.Bd.addListener(k.LF, this.uD[k.LF] = function() { - return a.kea(); + } + + function d() { + return new Promise(function(b) { + setTimeout(function() { + if (!a.$k.Pl.qk() && !a.Bn.Pl.qk()) try { + a.jb.Snb(a.e_); + a.w_ = !1; + a.e_ = void 0; + b(!0); + } catch (Q) { + b(!1); + } + b(!1); + }, 0); }); - this.kea(); - } catch (ia) { - this.sy(y.v.mCa, ia); } - } else this.dd(y.v.Z$); + a.w_ = !0; + c().then(function() { + b(); + })["catch"](function(b) { + a.Ua.error("Unable to change the duration", b); + f(b); + }); + }); }; - b.prototype.close = function() { - var b; - - function a() { - b.Mf && (b.Jea(), k.Bd.removeListener(k.LF, b.uD[k.LF]), b.QGa()); + b.prototype.Mi = function() { + var a, b, f, c, d, g, k; + a = this; + this.j.lL = v.yc(); + if (!this.ke() && this.hG) { + b = this.jb.s$a(); + b || this.hP(); + h.TM || this.hP(); + f = this.j.ym.value == m.Vk && this.j.lj.value == m.Vk; + c = this.j.Pc.value; + d = c == m.Di ? this.Bka : this.hka; + g = this.eja(this.$k, d) && this.eja(this.Bn, d); + this.j.paused.value || !g || !f || b || this.ak ? this.r_() : this.i_ || this.s_(); + if (!b) + if (this.ak && f && g) this.jb.seek(this.el), this.ak = !1, h.TM || this.o_(), F.hb(function() { + return a.Mi(); + }); + else { + k = this.jb.qp(!0); + this.ke() || (this.ak || b ? c = m.Di : this.Zc && this.Zc.ended ? c == m.Mo && (this.el = this.j.D8.ma(U.Aa), c = m.xw, this.r_()) : f && g ? this.jb.g4a() ? c = this.Zc && this.Zc.paused ? m.Dq : m.Mo : this.YVa.nb(function() { + return a.XVa(); + }) : c = m.Di, c != m.Di && c != m.xw && (k < this.el ? (b = this.el - k, p.config.Oib && k && b > O.AY && (k = { + ElementTime: E.Mg(k), + MediaTime: E.Mg(this.el) + }, b > O.jOa ? (this.Ua.error("VIDEO.currentTime became much smaller", k), this.bl(w.I.JMa)) : this.Ua.warn("VIDEO.currentTime became smaller", k))) : this.el = n.yq(k, 0, this.j.D8.ma(U.Aa))), this.wla(), this.PN(), k = c == m.Di && 0 <= [m.Mo, m.Dq].indexOf(this.j.Pc.value), this.j.Pc.set(c), k && (c = this.bWa() > d, this.j.lj.value !== m.Vk ? this.j.Pi.value ? (c = m.xNa, this.j.fireEvent(q.X.GB, { + cause: c + }), this.Ua.warn("rebuffer due to timed text", this.j.Pi.value.If)) : this.j.fireEvent(q.X.uV) : (c ? (c = m.rga, this.aja++) : (c = m.sga, this.oka++), this.j.fireEvent(q.X.GB, { + cause: c + })))); + } } - b = this; - this.Ba.removeEventListener(this.xj.KG, this.ke[this.xj.KG]); - this.Ba.removeEventListener("error", this.ke.error); - this.Ba.removeEventListener("seeking", this.ke.seeking); - this.Ba.removeEventListener("seeked", this.ke.seeked); - this.Ba.removeEventListener("timeupdate", this.ke.timeupdate); - this.Ba.removeEventListener("loadstart", this.ke.loadstart); - this.Ba.removeEventListener("volumechange", this.ke.volumechange); - this.xj.E7a(this.Kda); - this.xj.dn ? this.xj.f5a().then(function() { - return a(); - }) : a(); - this.xj.dqa && clearTimeout(this.xj.dqa); - }; - b.prototype.sJa = function(a) { - return this.xj.moa(a); }; - b.prototype.bL = function() { - if (this.Ba) return this.Ba.getVideoPlaybackQuality && this.Ba.getVideoPlaybackQuality() || this.Ba.videoPlaybackQuality || this.Ba.playbackQuality; - }; - b.prototype.wKa = function() { - var a; - a = this.L.Gg; - return (a = a && a.errorCode) && 0 <= [y.v.RJ, y.v.BJ].indexOf(a); + b.prototype.bWa = function() { + var a, b; + a = this.Bn.ho.filter(function(a) { + return !a.Bc; + }).reduce(function(a, b) { + return a + b.Jr; + }, 0); + b = this.$k.ho.filter(function(a) { + return !a.Bc; + }).reduce(function(a, b) { + return a + b.Jr; + }, 0); + return Math.min(a, b); }; - b.prototype.QGa = function() { - var a; - a = !1; - u.config.e6a && this.wKa() && (a = !0); - u.config.yY && !a && (this.Ba.removeAttribute("src"), this.Ba.load && this.Ba.load()); - URL.revokeObjectURL(this.Mf); - u.config.$ha && this.Ba.removeEventListener("contextmenu", h); - !a && this.Ba && this.L.Xf.removeChild(this.Ba); - this.Ba = this.Kf = void 0; - this.Mf = ""; - }; - b.prototype.kea = function() { - !0 === ja.cd.hidden ? this.HK.forEach(function(a) { - a.refresh(); - a.q$a(); - }) : this.HK.forEach(function(a) { - a.refresh(); - a.F$a(); - }); + b.prototype.XVa = function() { + this.ke() || (p.config.Vgb && (this.$k.Pl.qk() || this.$k.Pl.pma(new Uint8Array([0, 0, 0, 8, 102, 114, 101, 101]))), this.Mi()); }; - b.prototype.IK = function(a) { - var c; - - function b() { - var b; - b = a(); - V.da(b) && c.ULa(b); + b.prototype.eja = function(a, b) { + var f; + f = a.sQ; + f = f && f.EJ; + return 0 === a.ho.length && (a.type === x.Vf.audio && this.GN || a.type === x.Vf.video && this.lP) ? !0 : f && f.PD - this.el >= b; + }; + b.prototype.a_ = function() { + this.Mi(); + }; + b.prototype.mUa = function() { + this.Mi(); + this.j.fireEvent(q.X.Fm); + }; + b.prototype.nUa = function() { + this.Ua.trace("Video element event: ended"); + this.Mi(); + }; + b.prototype.qUa = function() { + this.Ua.trace("Video element event: play"); + this.Mi(); + }; + b.prototype.pUa = function() { + this.Ua.trace("Video element event: pause"); + this.Mi(); + }; + b.prototype.rUa = function() { + this.Ua.trace("Video element event: playing"); + this.Mi(); + }; + b.prototype.I_ = function() { + this.ke() || (this.Zc && this.Zc.volume !== this.j.volume.value && (this.Zc.volume = this.j.volume.value), this.Zc && this.Zc.muted !== this.j.muted.value && (this.Zc.muted = this.j.muted.value)); + }; + b.prototype.oWa = function() { + !this.ke() && this.Zc && (this.Zc.playbackRate = this.j.playbackRate.value); + }; + b.prototype.hP = function() { + this.w_ || (this.ula(this.$k), this.ula(this.Bn)); + this.ke() || !this.GN || !this.lP || this.$k.Pl.qk() || this.Bn.Pl.qk() || this.yZ || (this.yZ = !0, this.jb.endOfStream()); + }; + b.prototype.ula = function(a) { + var b, f; + if (!this.ke() && a.Pl) { + b = a.Pl; + f = a.XB; + !b.qk() && 0 < f.length && (a.sQ = f[f.length - 1]); + if (a.E$) { + if (b.qk()) return; + a.E$ = !1; + b.remove(0, this.jb.Dra().N8(U.em)); + } + for (var c = a.ho[0]; c && c.response && (c.Bc || c.rs - this.el <= this.TZ);) + if (this.yZ = !1, this.hWa(c)) a.ho.shift(), c = a.ho[0]; + else break; + !b.qk() && 0 < f.length && (a.sQ = f[f.length - 1]); } - c = new T.lBa(); - this.HK.push(c); - c.refresh = b; - return function() { - b(); - return c.TWa(); - }; }; - b.prototype.DKa = function(a, b, c) { - var d; - switch (c) { - case x.Df.Gf.VIDEO: - d = a; - break; - case x.Df.Gf.AUDIO: - d = "AAC" == b.value.iPa ? r.Vx : r.Eza; + b.prototype.hWa = function(a) { + var b, f, c; + z.sa(a && a.response); + b = a.response; + f = a.P; + c = this.nx[f]; + if (!this.ke() && !c.Pl.qk()) { + try { + this.Ua.trace("Feeding media segment to decoder", { + Bytes: b.byteLength + }); + c.Pl.pma(b, a); + a.Bc || c.XB.push(this.DRa(a)); + p.config.n4a && !a.Bc && (this.ak && !h.TM || a.vna()); + } catch (ra) { + "QuotaExceededError" != ra.name ? (this.Ua.error("Exception while appending media", a, ra), this.bl(w.I.HMa, O.i4(f))) : this.j.tQ = this.j.tQ ? this.j.tQ + 1 : 1; + return; + } + return !0; } - return d; - }; - b.prototype.sy = function(a, b) { - var c, d; - c = { - R: O.u.te, - za: O.yc(b) - }; - try { - (d = b.message.match(/(?:[x\W\s]|^)([0-9a-f]{8})(?:[x\W\s]|$)/i)[1].toUpperCase()) && 8 == d.length && (c.ub = d); - } catch (ka) {} - this.L.Hh(new p.rj(a, c)); }; - b.prototype.Jea = function() { - this.HK.forEach(function(a) { - a.refresh(); + b.prototype.CRa = function(a) { + var b; + b = this.j.Kab(a.cd); + b || (this.Ua.error("Could not find CDN", { + cdnId: a.cd + }), b = { + id: a.cd, + E6: a.location }); + return b; }; - b.prototype.yda = function() { - return this.Ba && this.Ba.msGraphicsTrustStatus; + b.prototype.ERa = function(a) { + var b, f; + f = a.Ya; + a.P === c.gc.rg.AUDIO ? b = this.j.psa(f) : a.P === c.gc.rg.VIDEO && (b = this.j.vsa(f)); + b || this.Ua.error("Could not find stream", { + stream: f + }); + return b; }; - b.prototype.dd = function(a, b, c) { - this.L.Hh(new p.rj(a, b, c)); + b.prototype.DRa = function(a) { + var b; + b = this.ERa(a); + return { + EJ: a, + stream: b, + Dm: { + startTime: Math.floor(a.rs), + endTime: Math.floor(a.PD) + }, + Mb: this.CRa(a) + }; }; - b.prototype.UKa = function(a) { - var c, d; - - function b(d) { - b = O.Gb; - c.Og(); - a(d); - } - c = new n.my(500, function() { - b(); - }); - c.Sn(); - try { - d = this.L.Ai.value.pi.fqb.children.filter(function(a) { - return "pssh" == a.type && a.OTa == r.Rwa; - })[0]; - new ja.IC(this.xj.ce).createSession("video/mp4", d.raw, null).addEventListener(this.RS + "keyerror", function(a) { - a = l(a, x.t8); - b(a.Nz); + b.prototype.s_ = function() { + var a; + a = this; + this.ke() || !N.ab(this.Zc) || this.Zc.ended || !this.$Z || !this.qB && void 0 !== this.qB || (this.Ua.trace("Calling play on element"), Promise.resolve(this.Zc.play()).then(function() { + a.qB = !1; + a.i_ = !1; + a.Zc.style.display = null; + a.j.En = !1; + a.j.fireEvent(q.X.Ima, { + j: a.j }); - } catch (ka) { - b(); - } - }; - b.prototype.yJa = function(a) { - var b, d, g, h, p, f, l; - if (this.Ba) { - a = a.CI; - b = this.yda(); - b && (a.ConstrictionActive = b.constrictionActive, a.Status = b.status); - try { - a.readyState = "" + this.Ba.readyState; - a.currentTime = "" + this.Ba.currentTime; - a.pbRate = "" + this.Ba.playbackRate; - } catch (ub) {} - for (var b = this.Bn.length, c; b--;) { - c = this.Bn[b]; - d = ""; - c.type == r.b$ ? d = "audio" : c.type == r.FJ && (d = "video"); - O.oa(a, c.WN(), { - prefix: d - }); - u.config.jUa && this.L.Gg && r.FJ == c.type && (d = O.NH(c.Mu), 3E3 > (d.data && d.data.length) && (d.data = q.PPa(d.data).join(), O.oa(a, d, { - prefix: c.type - }))); - } - this.Kf && (b = this.Kf.duration) && !isNaN(b) && (a.duration = b.toFixed(4)); - if (u.config.g1a) try { - g = this.L.bh; - h = g && g.$e; - if (h) { - p = h.expiration; - isNaN(p) || (a.exp = p); - f = h.keyStatuses.entries(); - if (f.next) { - l = f.next().value; - l && (a.keyStatus = l[1]); + })["catch"](function(b) { + "NotAllowedError" === b.name ? (a.Ua.warn("Playback is blocked by the browser settings", b), a.j.En = !0, a.i_ = !0, a.Zc.style.display = "none", a.j.fireEvent(q.X.En, { + player: { + play: function() { + return a.s_(); } } - } catch (ub) {} - } + })) : (a.qB = !1, a.Kka || (a.Kka = !0, a.Ua.error("Play promise rejected", b))); + })); }; - b.prototype.lea = function(a) { - this.EKa || (this.EKa = !0, this.bi.mc(S.Sg.Ara, a)); + b.prototype.r_ = function() { + this.ke() || !N.ab(this.Zc) || this.Zc.ended || !this.$Z || this.qB && void 0 !== this.qB || (this.Ua.trace("Calling pause on element"), this.Zc.pause(), this.qB = !0); }; - b.prototype.xJa = function() { - this.wa.trace("Video element event: seeking"); - this.wk ? this.wk.P3a = !0 : (this.wa.error("unexpected seeking event"), u.config.eVa && this.dd(y.v.zCa)); + b.prototype.PN = function(a) { + if (N.ab(a)) { + for (var b = this.nx[a], f = b.XB, d, g; + (d = f[0]) && d.EJ.rs <= this.el;) + if (this.el < d.EJ.PD) { + a = a === c.gc.rg.AUDIO ? this.j.dh : this.j.ig; + u.Ina(d, a.value) || (g = !0, a.set(d)); + break; + } else f.shift(); + !g && !this.f_ || this.yZ || (d = d && d.EJ.rs - d.EJ.Jr - 1, 0 < d && (b = b.Pl, b.qk() ? this.f_ = !0 : (b.remove(0, d / n.Qj), this.f_ = !1))); + } else this.PN(c.gc.rg.AUDIO), this.PN(c.gc.rg.VIDEO); + }; + b.prototype.wla = function(a) { + this.j.sd.set(this.el); + a && this.j.t7a(); + }; + b.prototype.SP = function(a, b) { + return b === q.Ng.wA || this.j.Ta.Ze && this.ak ? !1 : (b = this.j.gb) && b.SP(a) || !1; + }; + b.prototype.seek = function(a, b, f) { + var c, d, g, k, h; + b = void 0 === b ? q.Ng.vA : b; + f = void 0 === f ? this.j.na : f; + if (!this.ke() && this.j.gb) { + c = b === q.Ng.wA; + c ? d = a : (d = this.j.GC(f).Hx.ma(U.Aa) - p.config.Ssb, d = n.yq(a, 0, d)); + d = this.JSa() ? Math.round(d) : this.oSa(d); + p.config.Z9 && (d += p.config.Z9); + b === q.Ng.mF && (this.j.Tma = d); + c = c || this.j.Ta.Ze ? d : this.j.gb.eoa(f, d); + g = this.SP(c, b); + this.PN(); + k = this.el; + this.Ua.info("Seeking", { + Requested: E.Mg(a), + Actual: E.Mg(d), + Cause: b, + Skip: g + }); + this.j.fireEvent(q.X.mz, { + AT: k, + V7: c, + cause: b, + skip: g + }); + this.j.Pc.set(m.Di); + b !== q.Ng.mF && (this.o_(), this.$k.E$ = !0, this.Bn.E$ = !0); + this.MSa = this.el = c; + a = this.j.dh.value; + h = this.j.ig.value; + this.j.dh.set(null); + this.j.ig.set(null); + this.wla(!0); + this.j.fireEvent(q.X.Rp, { + AT: k, + V7: c, + Jn: d, + cause: b, + skip: g, + dh: a, + ig: h, + na: f + }); + this.ak = !0; + this.Mi(); + } }; - b.prototype.hW = function() { - this.wa.trace("Video element event: seeked"); - this.wk ? (F.ea(this.wk.P3a), this.wk.O3a = !0, this.gfa()) : (this.wa.error("unexpected seeked event"), u.config.dVa && this.dd(y.v.yCa)); + b.prototype.JSa = function() { + return "boolean" === typeof this.j.Ta.jK ? this.j.Ta.jK : navigator.hardwareConcurrency && 2 >= navigator.hardwareConcurrency ? p.config.jK && p.config.Fjb : p.config.jK; }; - b.prototype.zJa = function() { - this.wk && (this.wk.Q3a = !0, this.gfa()); - this.bi.mc(S.Sg.Ik); + b.prototype.o_ = function() { + this.$k.XB = []; + this.$k.sQ = void 0; + this.$k.ho = []; + this.Bn.XB = []; + this.Bn.sQ = void 0; + this.Bn.ho = []; + this.lP = this.GN = !1; + this.j.fireEvent(q.X.ZS); }; - b.prototype.gW = function() { - this.wa.trace("Video element event: loadstart"); + b.prototype.oSa = function(a) { + var b; + b = this.j.gb.su.ib[c.gc.rg.VIDEO].Y.ea; + return this.j.Ta.Ze && a < b ? a : this.j.gb.NZa(a, this.j.Ta.Ze ? p.config.Cpa : p.config.Kr); }; - b.prototype.AJa = function(a) { - this.wa.trace("Video element event:", a.type); - try { - this.L.volume.set(this.Ba.volume); - this.L.muted.set(this.Ba.muted); - } catch (ba) { - this.wa.error("error updating volume", ba); + b.prototype.bl = function(a, b, f) { + var c; + if (!this.RN) { + c = y.ca.get(k.Sj); + this.j.md(c(a, b, f)); + } + }; + b.prototype.Lia = function() { + if (!this.RN) { + this.Ua.info("Closing."); + this.jb.removeEventListener(Y.oh.KK, this.eka[Y.oh.KK]); + this.jb.removeEventListener(Y.oh.Fm, this.eka[Y.oh.Fm]); + this.Zc.removeEventListener("ended", this.Le.ended); + this.Zc.removeEventListener("play", this.Le.play); + this.Zc.removeEventListener("pause", this.Le.pause); + this.Zc.removeEventListener("playing", this.Le.playing); + r.ee.removeListener(r.uk, this.dG[r.uk]); + this.RN = !0; + try { + p.config.mgb && (this.Zc.volume = 0, this.Zc.muted = !0); + this.r_(); + this.jb.close(); + } catch (T) {} + this.Zc = void 0; + this.o_(); } }; - b.prototype.KD = function(a) { - a = l(a, x.nxa); - this.wa.error("Video element event: error", a.f1a); - this.dd(y.v.sCa, a.Nz); + b.prototype.ke = function() { + return this.RN ? !0 : N.ab(this.Zc) ? !1 : (this.Ua.error("MediaPresenter not closed and _videoElement is not defined"), !0); }; - b.prototype.gfa = function() { - this.wk && this.wk.O3a && this.wk.Q3a && (this.wk = void 0, this.bi.mc(S.Sg.lB)); - }; - c.cAa = b; - }, function(f, c, a) { - var p, r, u, v, z, k, G, x; + d.yKa = b; + }, function(g, d, a) { + var b, c, h, k, f, p, m, r; + Object.defineProperty(d, "__esModule", { + value: !0 + }); + b = a(5); + c = a(41); + h = a(9); + k = a(21); + f = a(95); + p = a(6); + m = a(42); + r = a(15); + d.ANa = function(a) { + var w, l, z, E, n, F; - function b(a) { - return a.split(",").reduce(function(a, b) { - var c; - c = b.split("="); - b = c[0]; - c = c.slice(1).join("="); - b && b.length && (a[b] = c || !0); - return a; - }, {}); - } + function d() { + return a.state.value == c.Yk || a.state.value == c.qn && a.Pc.value == c.Di; + } - function d(a) { - return a && "object" === typeof a ? JSON.stringify(a) : "string" === typeof a ? '"' + a + '"' : "" + a; + function g() { + d() ? F || (F = setInterval(u, 100)) : F && (clearInterval(F), F = void 0, m.hb(u)); + } + + function u() { + var b, g, m, u, v, x, y, D; + b = k.yc(); + g = w.value; + m = g ? g.oi : 0; + v = a.state.value == c.Yk || d() && b - l > h.config.nZa; + v && a.state.value == c.qn ? (a.OP.value == c.Vba ? (y = m, x = !0) : (u = b + (a.Gp && a.Gp.nbb() || 0), z = z || b, E = E || z + h.config.Nfb + 1, r.ja(u) && (u = p.Xk(u, E), y = a.Gp ? a.Gp.HEb() : .99, y = p.Uf(1E3 * f.yq((b - z) / (u - z), 0, y)) / 1E3)), y < m && (m - y < h.config.kkb / 100 ? (y = m, n = void 0) : n ? b - n > h.config.jkb ? (D = !0, n = void 0) : y = m : (n = b, y = m))) : n = E = z = void 0; + b = v ? { + cV: x, + oi: y, + lkb: D + } : null; + (!b || !w || !g || r.ja(b.oi) && !r.ja(g.oi) || r.ja(b.oi) && r.ja(g.oi) && .01 < p.wF(b.oi - g.oi) || b.cV !== g.cV) && w.set(b); + } + w = a.U0; + l = 0; + a.state.addListener(function() { + g(); + u(); + }, b.fY); + a.Pc.addListener(function(a) { + if (a.oldValue != c.Di || a.newValue != c.Di) l = k.yc(); + g(); + }); + a.OP.addListener(function() { + g(); + }); + a.ym.addListener(function() { + g(); + }); + a.lj.addListener(function() { + g(); + }); + F || (F = setInterval(u, 100)); + }; + }, function(g, d, a) { + var p, m, r, u; + + function b(a, b, f, c, d) { + var g; + g = {}; + "right" == a.horizontalAlignment ? g.right = 100 * (f - b.left - b.width - d) / f + "%" : g.left = 100 * (b.left - d) / f + "%"; + "bottom" == a.verticalAlignment ? g.bottom = 100 * (c - b.top - b.height - d) / c + "%" : g.top = 100 * (b.top - d) / c + "%"; + return g; } - function h(a, c, g) { + function c(a, b) { var f; - if ("string" === typeof a) return h.call(this, b(a), c, g); - f = 0; - Object.keys(a).forEach(function(b) { - var h, l, m; - h = z[b]; - l = a[b]; - if (h) { - if (m = k[b] || x[typeof p[h]]) try { - l = m(l); - } catch (B) { - g && g.error("Failed to convert value '" + l + "' for config '" + b + "' : " + B.toString()); - return; - } - m = v[h]; - this[h] = l; - v[h] !== m && (g && g.debug("Config changed for '" + b + "' from " + d(m) + " (" + typeof m + ") to " + d(l) + " (" + typeof l + ")"), ++f); - } else c ? (h = (h = G[b]) ? h.filter(function(a) { - return a[0] !== this; - }, this) : [], h.push([this, l]), G[b] = h) : g && g.error("Attempt to change undeclared config option '" + b + "'"); - }, this); - f && v.emit("changed"); - return f; + if (a && b) { + 40 === b.x && 19 === b.y ? f = 4 / 3 / (40 / 19) : 52 === b.x && 19 === b.y && (f = 16 / 9 / (52 / 19)); + if (f) return a.width / a.fontSize / f; + } } - function l() { - return Object.keys(z).reduce(function(a, b) { - var c, d; - c = z[b]; - d = a[c]; - d ? (d.push(b), a[c] = d.sort(function(a, b) { - return b.length - a.length; - })) : a[c] = [b]; - return a; - }, {}); + function h(a, b, f, c, d) { + var g, m; + g = a.style; + m = r.r5(a.text); + for (a = a.lineBreaks; a--;) m = "
" + m; + return k(m, g, b, f, c, d); } - function g(a, b) { - return a.hasOwnProperty(b) ? d(a[b]) : void 0; + function k(a, b, d, g, k, h) { + var r; + r = b.characterStyle; + k = k[r]; + g = b.characterSize * g.height / ((0 <= r.indexOf("MONOSPACE") ? c(k, b.cellResolution) || k.lineHeight : k.lineHeight) || 1); + g = 0 < h ? u.uq(g * h) : u.Uf(g); + h = { + "font-size": g + "px", + "line-height": "normal", + "font-weight": "normal" + }; + b.characterItalic && (h["font-style"] = "italic"); + b.characterUnderline && (h["text-decoration"] = "underline"); + b.characterColor && (h.color = b.characterColor); + b.backgroundColor && 0 !== b.backgroundOpacity && (h["background-color"] = f(b.backgroundColor, b.backgroundOpacity)); + g = b.characterEdgeColor || "#000000"; + switch (b.characterEdgeAttributes) { + case m.r8: + h["text-shadow"] = g + " 0px 0px 7px"; + break; + case m.$wa: + h["text-shadow"] = "-1px 0px " + g + ",0px 1px " + g + ",1px 0px " + g + ",0px -1px " + g; + break; + case m.hib: + h["text-shadow"] = "-1px -1px white, 0px -1px white, -1px 0px white, 1px 1px black, 0px 1px black, 1px 0px black"; + break; + case m.fib: + h["text-shadow"] = "1px 1px white, 0px 1px white, 1px 0px white, -1px -1px black, 0px -1px black, -1px 0px black"; + } + h = p.uH(h); + (d = d[b.characterStyle || "PROPORTIONAL_SANS_SERIF"]) && (h += ";" + d); + b = b.characterOpacity; + 0 < b && 1 > b && (a = '' + a + ""); + return '' + a + ""; } - function m(a, b) { - return "undefined" === typeof a ? b : a; + function f(a, b) { + a = a.substring(1); + a = parseInt(a, 16); + return "rgba(" + (a >> 16 & 255) + "," + (a >> 8 & 255) + "," + (a & 255) + "," + (void 0 !== b ? b : 1) + ")"; } - c = a(44); - a = a(31).EventEmitter; - p = {}; - r = Object.create(p); - u = Object.create(r); - v = Object.create(u); - z = {}; - k = {}; - G = {}; - v.declare = function(a) { - Object.keys(a).forEach(function(b) { - var c, d, g, f; - c = a[b]; - d = c[0]; - g = c[1]; - f = c[2]; - if (p.hasOwnProperty(b)) throw Error("The local configuraion key '" + b + "' is already in use"); - "string" === typeof d && (d = [d]); - d.forEach(function(a) { - var c; - if (z.hasOwnProperty(a)) throw Error("The configuration value '" + a + "' has been declared more than once"); - p.hasOwnProperty(b) || ("function" === typeof g && (g = g()), p[b] = g); - z[a] = b; - "function" === typeof f && (k[a] = f); - if (c = G[a]) c.forEach(function(b) { - var c, d; - c = b[0]; - d = {}; - d[a] = b[1]; - h.call(c, d, !1); - }), delete G[a]; - }); + Object.defineProperty(d, "__esModule", { + value: !0 + }); + p = a(25); + m = a(190); + r = a(18); + u = a(6); + d.Xpa = function(a, b, f, c, d) { + var g; + g = ""; + a.textNodes.forEach(function(a) { + g += h(a, f, b, c, d); }); - return v; + return g; }; - x = { - object: function(a) { - return "object" == typeof a ? a : JSON.parse("" + a); - }, - "boolean": function(a) { - return "boolean" == typeof a ? a : !("0" === "" + a || "false" === ("" + a).toLowerCase()); - }, - number: function(a) { - if ("number" == typeof a) return a; - a = parseFloat("" + a); - if (isNaN(a)) throw Error("parseFloat returned NaN"); - return a; + d.g6a = function(a, f, c, d, g) { + var m, k, h, v, x; + m = ""; + k = g.width; + g = g.height; + for (var p = f.length; p--;) { + h = f[p]; + v = a[p]; + v = v && v.region; + x = "position:absolute;background:" + d + ";width:" + u.Uf(h.width + 2 * c) + "px;height:" + u.Uf(h.height + 2 * c) + "px;"; + r.pc(b(v, h, k, g, c), function(a, b) { + x += a + ":" + b + ";"; + }); + m += '
'; + } + return m; + }; + d.f6a = b; + d.JDb = c; + d.LDb = h; + d.IDb = k; + d.KDb = f; + d.e6a = function(a) { + var b; + b = { + display: "block", + "white-space": "nowrap" + }; + switch (a.region.horizontalAlignment) { + case "left": + b["text-align"] = "left"; + break; + case "right": + b["text-align"] = "right"; + break; + default: + b["text-align"] = "center"; } + return p.uH(b); }; - v.set = h.bind(r); - v.Lw = h.bind(u); - v.dump = function(a, b) { - var h, f, x, y; + }, function(g, d, a) { + var b; + Object.defineProperty(d, "__esModule", { + value: !0 + }); + b = a(6); + d.srb = function(a, d) { + function c(a, c, d) { + var r, u, l, F; + if (a && 1 < a.length) { + for (var g = [], m = [], k = 0; k < a.length; k++) g[k] = 0, m[k] = 0; + for (var p = !1, k = 0; k < a.length; k++) + for (var h = k + 1; h < a.length; h++) { + u = a[k]; + l = a[h]; + if (0 > u.width || 0 > l.width || l.left > u.left + u.width || l.left + l.width < u.left || l.top > u.top + u.height ? 0 : l.top + l.height >= u.top) { + r = b.Xk(u.left, l.left); + F = b.Xk(u.top, l.top); + r = { + width: b.Xk(b.Ai(u.left + u.width, l.left + l.width) - r, 0), + height: b.Xk(b.Ai(u.top + u.height, l.top + l.height) - F, 0), + x: r, + y: F + }; + } else r = void 0; + if (r && 1 < r.width && 1 < r.height) + if (F = r.width <= r.height, u = f(a[k]), l = f(a[h]), F && c || !F && !c) r = b.Xk(r.width / 2, .25), u.x <= l.x ? (m[k] -= r, m[h] += r) : (m[h] -= r, m[k] += r); + else if (F && !c || !F && c) u = b.Xk(r.height / 2, .25), g[k] -= u, g[h] += u; + } + for (k = 0; k < a.length; k++) { + if (-.25 > m[k] && 0 <= a[k].left + m[k] || .25 < m[k] && a[k].left + a[k].width + m[k] <= d.width) a[k].left += m[k], p = !0; + if (-.25 > g[k] && 0 <= a[k].top + g[k] || .25 < g[k] && a[k].top + a[k].height + g[k] <= d.height) a[k].top += g[k], p = !0; + } + return p; + } + } - function c() { - y && a && a.log("==========================================="); + function f(a) { + return { + x: a.left + a.width / 2, + y: a.top + a.height / 2 + }; } - h = Object.keys(G).sort(); - f = {}; - x = l(); - b = m(b, !0); - Object.keys(z).sort().forEach(function(h) { - var l, k, w; - h = z[h]; - !f[h] && (f[h] = !0, k = g(r, h), w = g(u, h), b || "undefined" !== typeof k || "undefined" !== typeof w) && (l = x[h].join(","), l += " = " + d(v[h]) + " (" + typeof v[h] + ") [", l += m(w, "") + ",", l += m(k, "") + ",", l += g(p, h) + "]", y || (y = !0, a && a.log("Current config values"), c()), a && a.log(l)); + a = a.map(function(a) { + return { + top: a.top, + left: a.left, + width: a.width, + height: a.height + }; }); - (b || h.length) && a && a.log(" :", h); - c(); + (function(a, f) { + a.forEach(function(a) { + 0 > a.left && a.left + a.width < f.width ? a.left += b.Ai(-a.left, f.width - (a.left + a.width)) : a.left + a.width > f.width && 0 < a.left && (a.left -= b.Ai(a.left + a.width - f.width, a.left)); + 0 > a.top && a.top + a.height < f.height ? a.top += b.Ai(-a.top, f.height - (a.top + a.height)) : a.top + a.height > f.height && 0 < a.top && (a.top -= b.Ai(a.top + a.height - f.height, a.top)); + }); + }(a, d)); + for (var g = 0; 50 > g && c(a, !0, d); g++); + for (g = 0; 50 > g && c(a, !1, d); g++); + return a; }; - v.SY = function(a) { - var b, c; - b = {}; - c = {}; - Object.keys(z).forEach(function(a) { - a = z[a]; - c[a] || (c[a] = !0, b[a] = v[a]); + }, function(g, d, a) { + var c, h, k, f, p; + + function b(a, b) { + this.B3 = a; + this.Rx = { + position: "absolute", + left: "0", + top: "0", + right: "0", + bottom: "0", + display: "block" + }; + this.element = c.createElement("DIV", void 0, void 0, { + "class": "player-timedtext" }); - a && h.call(b, a); - return b; + this.element.onselectstart = function() { + return !1; + }; + this.Yza(b); + this.Cqa = this.g9a(this.B3); + } + Object.defineProperty(d, "__esModule", { + value: !0 + }); + c = a(17); + h = a(269); + k = a(268); + f = a(6); + p = a(18); + b.prototype.$x = function() { + return this.element; }; - v.Noa = function() { - var a; - a = l(); - return Object.getOwnPropertyNames(r).reduce(function(b, c) { - b[a[c][0]] = r[c]; - return b; - }, {}); + b.prototype.Hnb = function(a) { + this.w0 = a; }; - v.reset = function() { - Object.keys(r).forEach(function(a) { - delete r[a]; - }); + b.prototype.Mnb = function(a) { + this.Od = a; + this.xK(); }; - v.uk = {}; - c(a, v); - f.P = Object.freeze(v); - }, function(f, c, a) { - var l, g, m; - - function b(a, b, c) { - this.VP = b; - this.Bk = c; - this.Rt = this.yO = this.NP = this.Ioa = this.Hoa = this.LA = this.Nc = this.B5a = this.Bk = this.Ao = this.Ka = this.X = this.AI = this.T = this.mla = this.MX = void 0; - } - - function d(a, b, c) { - this.fa = b; - this.Kla = c; - this.Rfa = this.gta = this.ZW = this.AI = this.iP = this.Ks = void 0; - } - - function h(a, c, d, g, h) { - var f; - f = new b(0, c, a.Bk); - a.forEach(function(a) { - var b, d; - b = a.buffer; - d = b.T; - a.O === l.G.AUDIO ? f.MX = d.length ? d[0].J : void 0 : a.O === l.G.VIDEO && (f.mla = d.length ? d[0].J : void 0, f.T = d, f.AI = b.Qi - b.me, f.X = b.me, f.Ka = b.Ka, f.Ao = a.al, f.Bk = a.Bk, f.B5a = c - a.Bk, f.Nc = a.Nc.filter(function(a) { - return m(a); - }), f.LA = d.filter(function(a) { - return f.X <= a.Lg; - }).length); + b.prototype.Onb = function(a) { + this.Yza(a); + this.xK(); + }; + b.prototype.xK = function() { + var a, f, d, g, p, y, w, l, z, E, n, q, N, O; + a = this; + f = this.$x(); + d = f.parentElement; + g = d && d.clientWidth || 0; + p = d && d.clientHeight || 0; + y = d = 0; + w = { + width: g, + height: p + }; + if (0 < g && 0 < p && this.Od) { + this.w0 && (w = c.mR(g, p, this.w0), d = Math.round((g - w.width) / 2), y = Math.round((p - w.height) / 2)); + l = this.LZa(w); + E = c.mR(l.width, l.height, this.w0); + l = (z = this.Od.blocks) && z.map(function(f) { + var d; + d = k.Xpa(f, E, a.B3, a.Cqa); + f = k.e6a(f) + ";position:absolute"; + return c.createElement("div", f, d, b.sW); + }); + } + Object.assign(this.Rx, { + left: d + "px", + right: d + "px", + top: y + "px", + bottom: y + "px" + }); + f.style.display = "none"; + f.style.direction = this.Rx.direction; + f.innerHTML = ""; + if (l && l.length) { + g = w.width; + d = w.height; + n = w; + this.dH && (n = this.JWa(w, this.dH, p, y)); + this.Rx.margin = this.Qm ? this.QP(w, "top") + "px " + this.QP(w, "right") + "px " + this.QP(w, "bottom") + "px " + this.QP(w, "left") + "px " : void 0; + l.forEach(function(a) { + return f.appendChild(a); + }); + p = c.uH(this.Rx); + f.style.cssText = p + ";visibility:hidden;z-index:-1"; + for (var y = [], F = l.length - 1; 0 <= F; F--) { + q = l[F]; + N = z[F]; + O = this.dwa(q, N, g, d); + O.width > g && (q.innerHTML = k.Xpa(N, w, this.B3, this.Cqa, g / O.width), O = this.dwa(q, N, g, d)); + y[F] = O; + } + y = h.srb(y, n); + if (F = z && z[0] && z[0].textNodes && z[0].textNodes[0] && z[0].textNodes[0].style) n = F.windowColor, F = F.windowOpacity, n && 0 < F && (w = k.g6a(z, y, Math.round(d / 50), n, w), w = c.createElement("div", "position:absolute;left:0;top:0;right:0;bottom:0;opacity:" + F, w, b.sW), f.insertBefore(w, f.firstChild)); + f.style.display = "none"; + for (w = y.length - 1; 0 <= w; w--) n = l[w].style, F = k.f6a(z[w].region, y[w], g, d, 0), Object.assign(n, F); + f.style.cssText = p; + } + }; + b.prototype.y$ = function(a) { + this.dH = a; + this.xK(); + }; + b.prototype.Q4 = function() { + return this.dH; + }; + b.prototype.z$ = function(a) { + this.Qm = a; + this.xK(); + }; + b.prototype.R4 = function() { + return this.Qm; + }; + b.prototype.S4 = function() { + return "block" === this.Rx.display; + }; + b.prototype.A$ = function(a) { + a = a ? "block" : "none"; + this.element.style.display = a; + this.Rx.display = a; + }; + b.prototype.g9a = function(a) { + var b, f; + b = this; + f = {}; + p.pc(a, function(a, c) { + f[a] = b.lfb(c); }); - this.BB = f; - this.Uv = void 0; - this.vSa = g; - this.UNa = h; - this.f4 = this.hQ = this.qoa = this.Eo = this.Zy = this.Wia = this.BI = this.Nc = this.Uv = void 0; - } - l = a(13); - c = a(41); - g = c.assert; - m = c.iw; - b.prototype.constructor = b; - d.prototype.constructor = d; - h.prototype.constructor = h; - h.prototype.sVa = function(a, b) { - var c, g, h, f, p, m, r, k, F, N, n, q, Z, O, B, V, D, S, da, X, U; - c = this.BB; - g = []; - f = a[l.G.VIDEO]; - p = a[l.G.AUDIO]; - if (void 0 === f || void 0 === p) return !1; - m = f.buffer; - r = p.buffer; - k = f.headers; - F = c.Nc.filter(function(a) { - return k && k[a.id] && k[a.id].T; - }); - if (void 0 === m || void 0 === r || void 0 === k || void 0 === F || 0 === F.length) return !1; - h = new d(0, f.me, b === l.xa.qr); - N = 0; - n = 0; - q = 0; - O = c.X; - a = a[l.G.VIDEO].me; - B = c.T; - Z = c.LA; - for (var t = 0; t < Z; t++) { - V = B[t]; - D = V.offset; - S = V.offset + V.ga - 1; - X = V.gd; - da = V.hb; - U = da + X; - V && da <= a && U > O && (X = V.gd, da = Math.min(X, Math.min(a, U) - Math.max(da, O) + 1), q += da, N += da / X * (S - D + 1), n += V.J * da); - } - c.Hoa = N; - c.Ioa = q; - c.NP = 0 < q ? n / q : 0; - c.yO || (c.yO = 0, F.some(function(a, b) { - if (a.J === c.mla) return c.yO = b, !0; - })); - F.forEach(function(a) { - var b, d; - a = k[a.id].T; - b = []; - c.Rt || (c.Rt = a.Ll(c.X, void 0, !0)); - h.Ks || (h.Ks = a.Ll(h.fa, void 0, !0), h.iP = a.length - 1); - c.Ao !== c.Rt + c.LA && (c.Ao = c.Rt + c.LA); - Z = Math.min(h.iP, h.Ks + 1); - for (var f = c.Rt; f <= Z; f++) d = a.get(f), b[f] = d; - g.push(b); - }); - b === l.xa.qr && (h.AI = m.Qi - m.me, h.ZW = r.Qi - r.me, h.gta = f.Npa, h.Rfa = p.Npa); - this.Uv = h; - this.Nc = F; - this.BI = g; - return this.Wia = !0; - }; - h.prototype.aq = function() { - var a, b, c, d, h, f, l, m; - if (this.yA) return this.yA; - c = this.Eo; - a = this.BB; - d = this.Uv; - h = this.Nc; - g(void 0 !== c, "throughput object must be defined before retrieving the logdata from PlaySegment"); - b = c.trace && 0 === c.trace.length || void 0 === c.timestamp ? d.Kla ? { - gw: !1, - Cw: !0, - BP: !0 - } : d.Ks - a.Rt + 1 <= a.LA ? { - gw: !0, - Cw: !0, - BP: !0 - } : { - gw: !0, - Cw: !1, - BP: !0 - } : this.qoa; - a = { - f: b && b.gw || !1, - bst: a.Bk, - pst: a.VP, - s: a.Rt, - e: d.Ks, - prebuf: a.LA, - brsi: a.Ao, - pbdlbytes: a.Hoa, - pbdur: a.Ioa, - pbtwbr: a.NP - }; - this.f4 && (a.rr = this.f4); - this.hQ && (a.ra = this.hQ); - if (!b.Cw && b.eR && (a.dltwbr = b.yTa, a.dlvdur = b.BTa, a.dlvbytes = b.ATa, a.dlabytes = b.xTa, this.vSa)) { - c = b.eR.filter(function(a) { - return a; - }).map(function(a) { - return a.se; - }); - f = 0; - l = []; - a.bitrate = h.map(function(a) { - return a.J; - }); - c.forEach(function(a) { - l.push(a - f); - f = a; - }); - a.strmsel = l; - c = this.Eo; - h = c.trace; - m = []; - f = 0; - h.forEach(function(a) { - a = Number(a).toFixed(0); - m.push(a - f); - f = a; - }); - a.tput = { - ts: c.timestamp, - trace: m, - bkms: c.dz - }; + return f; + }; + b.prototype.Yza = function(a) { + this.Rx.direction = "boolean" === typeof a ? a ? "ltr" : "rtl" : "inherit"; + }; + b.prototype.QP = function(a, b) { + if (this.Qm) { + if ("left" === b || "right" === b) return a.width * (this.Qm[b] || 0); + if ("top" === b || "bottom" === b) return a.height * (this.Qm[b] || 0); + } + return 0; + }; + b.prototype.LZa = function(a) { + return this.Qm ? { + height: a.height * (1 - (this.Qm.top || 0) - (this.Qm.bottom || 0)), + width: a.width * (1 - (this.Qm.left || 0) - (this.Qm.right || 0)) + } : a; + }; + b.prototype.lfb = function(a) { + var d; + a = c.createElement("DIV", "display:block;position:fixed;z-index:-1;visibility:hidden;font-size:1000px;" + a + ";", "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz", b.sW); + f.wd.body.appendChild(a); + d = { + fontSize: 1E3, + height: a.clientHeight, + width: a.clientWidth / 52, + lineHeight: a.clientHeight / 1E3 + }; + f.wd.body.removeChild(a); + return d; + }; + b.prototype.dwa = function(a, b, f, c) { + var d, g, m, k, p; + d = b.region; + g = (d.marginTop || 0) * c; + m = (d.marginBottom || 0) * c; + k = (d.marginLeft || 0) * f; + p = (d.marginRight || 0) * f; + b = a.clientWidth || 1; + a = a.clientHeight || 1; + switch (d.verticalAlignment) { + case "top": + c = g; + break; + case "center": + c = (g + c - m - a) / 2; + break; + default: + c = c - m - a; } - b.BP && (a.nt = b.BP); - b.Cw && (a.nd = b.Cw); - return this.yA = a; + switch (d.horizontalAlignment) { + case "left": + f = k; + break; + case "right": + f = f - p - b; + break; + default: + f = (k + f - p - b) / 2; + } + return { + top: c, + left: f, + width: b, + height: a + }; + }; + b.prototype.JWa = function(a, b, f, c) { + return { + height: f - Math.max(c, b.bottom | 0) - Math.max(c, b.top | 0), + width: a.width + }; + }; + b.sW = { + "class": "player-timedtext-text-container" }; - f.P = h; - }, function(f, c, a) { - var h, l, g, m, p, r; + d.NPa = b; + }, function(g, d, a) { + var m, r, u, x, v, y, w, l; - function b(a, b, c, d) { - m(!h.S(d), "Must have at least one selected stream"); - return new r(d); + function b(a, b) { + var f, c, d, g, m, k, p, h; + f = []; + g = {}; + p = a.length; + for (h = 0; h < p; h++) m = a[h], k = b(m), d = k.key, c = g[d], m = m.endTime - m.startTime, c ? c.duration += m : (delete k.key, c = k, c.duration = m, f.push(c), g[d] = c); + return f; } - function d(a, b, c, d) { - m(!h.S(d), "Must have at least one selected stream"); - return new r(d); + function c(a) { + var b, f, c; + c = a.stream; + c ? (a = c.pd, b = c.O, f = c.oc) : a = a.track.pd; + return { + key: a + "$" + (b || 0), + downloadableId: a, + bitrate: b, + vmaf: f + }; } - h = a(10); - c = a(41); - l = c.console; - g = c.debug; - m = c.assert; - p = c.iw; - r = c.gm; - f.P = { - STARTING: function(a, b, c) { - var h, f, m; - function d(c, d) { - var h, f, p, m; - h = c.id; - f = c.J; - p = c.ia || 0; - m = !!p; - g && l.log("Checking feasibility of [" + d + "] " + h + " (" + f + " Kbps)"); - if (!c.Ye) return g && l.log(" Not available"), !1; - if (!c.inRange) return g && l.log(" Not in range"), !1; - if (c.fh) return g && l.log(" Failed"), !1; - if (f > a.rG) return g && l.log(" Above maxInitAudioBitrate (" + a.rG + " Kbps)"), !1; - if (!(f * a.sP / 8 < b.buffer.Av)) return g && l.log(" audio buffer too small to handle this stream"), !1; - if (m) { - g && l.log(" Have throughput history = " + m + " : available throughput = " + p + " Kbps"); - if (f < p) return g && l.log(" +FEASIBLE: bitrate less than available throughput"), !0; - g && l.log(" bitrate requires more than available throughput"); - return !1; - } - c = a.BG; - b.V0 && (c = Math.max(c, a.AG)); - if (f <= c) return g && l.log(" Bitrate is less than max of minInitAudioBitrate (" + a.BG + " Kbps) " + (b.V0 ? " and also minHCInitAudioBitrate (" + a.AG + " Kbps)" : "")), g && l.log(" +FEASIBLE: no throughput history and has minimum bitrate configured"), !0; - g && l.log(" No throughput history"); - return !1; - } - h = new r(); - for (m = c.length - 1; 0 <= m; --m) { - f = c[m]; - if (d(f, m)) { - h.se = m; - break; - } - p(f) && (h.se = m); - } - return h; - }, - BUFFERING: b, - REBUFFERING: b, - PLAYING: d, - PAUSED: d - }; - }, function(f, c, a) { - f.P = a(489); - }, function(f, c, a) { - f.P = a(490); - }, function(f, c, a) { - var l, g; + function h(a) { + var b; + b = c(a); + a = a.Mb.id; + b.key += "$" + a; + b.cdnId = a; + return b; + } - function b(a, b, c, d, g, f) { - return new h(a, b, c, d, g, f); + function k(a) { + a = (a = a.stream) ? a.O : 0; + return { + key: a, + D7: a + }; } - function d(a) { - return a && 0 <= a.indexOf(".__metadata__"); + function f(a) { + a = (a = a.stream) ? a.oc : 0; + return { + key: a, + D7: a + }; } - function h(a, b, c, d, g, h) { - this.partition = a; - this.lifespan = c; - this.resourceIndex = b; - this.size = d; - this.creationTime = g; - this.lastRefresh = h; - return this.qsa(); - } - l = a(10); - g = a(100); - a(116); - new g.Console("MEDIACACHE", "media|asejs"); - h.prototype.refresh = function() { - this.lastRefresh = g.time.now(); - return this.qsa(); - }; - h.prototype.mra = function(a) { - this.size = a; - }; - h.prototype.fha = function() { - var a; - a = g.time.now(); - return (this.lastRefresh + 1E3 * this.lifespan - a) / 1E3; - }; - h.prototype.qsa = function() { - this.lastMetadataUpdate = g.time.now(); - return this; - }; - h.prototype.constructor = h; - f.P = { - create: b, - w_: function(a) { - var c; - c = a; - "string" === typeof a && (c = JSON.parse(a)); - if (c && c.partition && !l.S(c.lifespan) && c.resourceIndex && c.creationTime && c.lastRefresh) return a = b(c.partition, c.resourceIndex, c.lifespan, -1, c.creationTime, c.lastRefresh), c.lastMetadataUpdate && (a.lastMetadataUpdate = c.lastMetadataUpdate), !l.S(c.size) && 0 <= c.size && a.mra(c.size), a.fha(), a; - }, - YY: function(a) { - return a + ".__metadata__"; - }, - Oia: function(a) { - return d(a) ? a.slice(0, a.length - 13) : a; - }, - mA: d - }; - }, function(f, c, a) { - var k, w, G, x, y, C, F, N, n, q, Z; + function p(a) { + var b, f, c, d; + c = 0; + for (f = a.length; f--;) + if (b = a[f], w.ab(b.duration) && w.ab(b.D7)) c += b.duration; + else throw Error("invalid arguments"); + if (!c) return 0; + d = 0; + for (f = a.length; f--;) b = a[f], d += b.D7 * b.duration / c; + return d; + } + Object.defineProperty(d, "__esModule", { + value: !0 + }); + m = a(9); + r = a(5); + u = a(18); + x = a(3); + v = a(12); + a(95); + y = a(6); + w = a(15); + l = a(16); + d.wNa = function(a) { + var Y, U, t, S, T, H, X, aa, ra, Z, Q, ja, ea, ma; - function b() {} + function d() { + z(a.sd.value); + for (var b = 0, f = H.length; f--;) b += H[f].endTime - H[f].startTime; + v.sa(b === y.uq(b), "Value of totalPlayTime is not an integer."); + return parseInt(y.uq(b)); + } - function d(a, c) { - var d, g, h, f; - d = k.wb(c) ? c : b; - this.H = a || {}; - (function(a, b, c) { - this.ci[a].Ld[b] = c; - }.bind(this)); - (function(a, b) { - return this.ci[a].Ld ? this.ci[a].Ld[b] : void 0; - }.bind(this)); - this.on = this.addEventListener = q.addEventListener; - this.removeEventListener = q.removeEventListener; - this.emit = this.Ha = a.anb ? q.Ha : b; - g = x.FRa(a); - h = this.H.dailyDiskCacheWriteLimit; - if (g) { - this.bp = g; - f = r(a.s2 || Z, x.gXa()); - this.$r = function(a) { - return k.S(f) || null === f ? !1 : !k.S(f[a]); + function g(a) { + z(a.AT); + aa = a.V7; + t = U = void 0; + S && (S.startTime = aa); + } + + function D(b) { + q(S, X, a.sd.value); + S = b.newValue ? { + track: b.newValue, + startTime: a.sd.value, + endTime: r.nw + } : void 0; + } + + function z(a) { + U && t && (a = y.Ai(a, U.endTime), a = y.Ai(a, t.endTime), q(U, T, a), U.startTime = a, q(t, H, a), t.startTime = a, S && (q(S, X, a), S.startTime = a), aa = a); + } + + function n(b, f, c) { + b && q(b, f, y.Ai(b.endTime, a.sd.value)); + if (c && c.stream) return b = c.Dm, f = c.stream, { + Mb: c.Mb, + track: f.track, + stream: f, + startTime: y.Xk(b.startTime, aa), + endTime: b.endTime }; - f ? (this.ci = {}, w.Promise.all(Object.keys(f).map(function(b) { - return new w.Promise(function(c) { - var d; - d = f[b]; - d.Vsa = a.Vsa; - new y(b, g, d, function(a) { - c(a); - }, h); - }); - })).then(function(a) { - a.map(function(a) { - var b; - b = a.Pr; - this.ci[b] = a; - f[b].WVa = f[b].Av - a.sp; - this.ci[b].on(y.bd.REPLACE, function(a) { - a = a || {}; - a.partition = b; - a.type = "save"; - this.Ha("mediacache", a); - }.bind(this)); - this.ci[b].on(y.bd.dca, function(a) { - a = a || {}; - a.partition = b; - a.type = "save"; - this.Ha("mediacache", a); - }.bind(this)); - this.ci[b].on(y.bd.ERROR, function(a) { - a = a || {}; - a.partition = b; - a.type = y.bd.ERROR; - this.Ha("mediacache-error", a); - }.bind(this)); - }.bind(this)); - return this; - }.bind(this), function(a) { - this.iA = n.J7; - d(a, this); - }.bind(this)).then(function(a) { - m(g, w.storage.Yx, Object.keys(f)); + } + + function q(a, b, f) { + a && f >= a.startTime && (a = { + Mb: a.Mb, + track: a.track, + stream: a.stream, + startTime: a.startTime, + endTime: f + }, (f = b[b.length - 1]) && f.track == a.track && f.stream == a.stream && f.Mb == a.Mb && f.endTime == a.startTime ? f.endTime = a.endTime : b.push(a)); + } + Y = x.qf(a, "PlayTimeTracker"); + T = []; + H = []; + X = []; + aa = a.sd.value; + ra = {}; + Z = !1; + Q = {}; + ja = 0; + ea = m.config.GWa; + ma = ea.length; + (function() { + a.addEventListener(l.X.mz, g); + a.dh.addListener(function(a) { + U = n(U, T, a.newValue); + }); + a.ig.addListener(function(a) { + t = n(t, H, a.newValue); + }); + a.Pi.addListener(D); + }()); + for (ra.abrdel = 0; ma--;) Q["abrdel" + ea[ma]] = 0, ra["abrdel" + ea[ma]] = 0; + u.La(this, { + T4: d, + d8a: function() { + z(a.sd.value); + return { + audio: b(T, h), + video: b(H, h) + }; + }, + Y9a: function() { + var a; + a = { + total: d(), + audio: b(T, c), + video: b(H, c), + timedtext: b(X, c) + }; + v.sa(a.audio && a.video); return a; - }.bind(this)).then(function(a) { - a.vkb = f; - Object.keys(a.ci).map(function(b) { - a.ci[b].Pja().map(function(c) { - a["delete"](b, c); + }, + Yqa: function() { + var f, c; + z(a.sd.value); + f = b(H, k); + try { + c = p(f); + } catch (Ga) { + return Y.warn("Failed to calc average bitrate"), null; + } + ra.abrdel = y.Uf(c); + return ra.abrdel; + }, + h8a: function() { + var c, d; + z(a.sd.value); + c = b(H, f); + try { + d = p(c); + } catch (Ga) { + return Y.warn("Failed to calc average vmaf"), null; + } + return y.Uf(d); + }, + g8a: function() { + var f; + if (!Z) { + for (var a = ea.length, b = d(); a--;) { + f = ea[a]; + if (0 == Q["abrdel" + f] && b > f * r.Qj) { + for (var c = 0, g = H.length, m, k = 0, p = 0; p < g && !(m = H[p], c += m.stream.O * (m.endTime - m.startTime), k += m.endTime - m.startTime, m = m.stream.O, k > f * r.Qj); p++); + c && (Q["abrdel" + f] = y.Uf((c - m * (k - f * r.Qj)) / (f * r.Qj))); + } + } + 0 !== Q["abrdel" + ea[ea.length - 1]] && (Z = !0); + u.pc(Q, function(a, b) { + ra[a] = 0 == b ? ra.abrdel : b; }); - }); - a.Wi = !0; - d(null, a); - }.bind(this))) : (this.iA = n.Iya, d(this.iA, this)); - } else this.iA = n.J7, d(this.iA, this); - } + } + return ra; + }, + YWa: function(a) { + ja += a; + }, + u9a: function() { + return ja; + }, + Qab: function() { + return !!(H[0] && H[0].stream && w.ab(H[0].stream.oc)); + } + }); + }; + d.czb = b; + d.fzb = c; + d.gzb = h; + d.ezb = k; + d.hzb = f; + d.dzb = p; + }, function(g, d, a) { + var b, c, h, k, f, p, m, r; + Object.defineProperty(d, "__esModule", { + value: !0 + }); + b = a(60); + c = a(55); + h = a(17); + k = a(18); + f = a(3); + p = a(52); + m = a(106); + r = a(16); + d.INa = function(a) { + var N, O, t, U, ga, S, T, H, X, aa; - function h(a, b, c, d, g) { - var h; - h = g ? "mediacache-error" : "mediacache"; - b = { - partition: c, - type: b, - resource: d, - time: w.time.now() - }; - g && (b.error = g); - try { - a.Ha(h, b); - } catch (da) { - G.warn("caught exception while emitting basic event", da); + function d() { + T || (z(), a.sf.appendChild(N), T = !0); } - } - function l(a) { - return !k.S(a) && !k.Ja(a) && k.da(a.lifespan); - } + function g() { + T && (a.sf.removeChild(N), T = !1); + } - function g(a) { - return !C.mA(a) && !N.J_a(a); - } + function u() { + T ? g() : d(); + } - function m(a, c, d) { - a.query(c, "", function(g) { - Object.keys(g).filter(function(a) { - return 0 > d.indexOf(a.slice(0, a.indexOf("."))); - }).map(function(d) { - a.remove(c, d, b); - }); - }); - } + function w() { + var c, d, g; - function p(a, b, c) { - var g, h; + function b(a, b, f) { + var c, d, g; + g = []; + b.filter(function(b) { + return b.Me === a; + }).forEach(function(a) { + 0 <= f.indexOf(a) ? (void 0 === c ? c = a.O : d = a.O, void 0 === d && (d = a.O)) : void 0 !== c && void 0 !== d && (g.push({ + min: c, + max: d + }), c = d = void 0); + }); + void 0 !== c && void 0 !== d && (g.push({ + min: c, + max: d + }), c = d = void 0); + return g; + } - function d(b) { - a["delete"](g, function(d) { - d ? c(d) : (d = Object.keys(b.resourceIndex), w.Promise.all(d.map(function(b) { - return new w.Promise(function(c, d) { - a["delete"](b, function(a) { - a ? d(a) : c(b); - }); + function f(a, b, f) { + var c; + c = []; + b.filter(function(b) { + return b.Me === a; + }).forEach(function(a) { + -1 === f.indexOf(a) && c.push({ + stream: { + bitrate: a.O + }, + disallowedBy: ["manual"] }); - })).then(function() { - delete a.Ld[h]; - c(); - }, function(a) { - c(a); - })); + }); + return c; + } + c = a.Ln(); + d = a.cy().sort(function(a, b) { + return a.O - b.O; + }); + g = d.reduce(function(a, b) { + 0 > a.indexOf(b.Me) && a.push(b.Me); + return a; + }, []).map(function(a) { + return { + profile: a, + ranges: b(a, d, c), + disallowed: f(a, d, c) + }; }); + a.gb.SU(g); } - C.mA(b) ? (g = b, h = C.Oia(b)) : (g = C.YY(b), h = b); - (b = a.Ld[h]) ? d(b): a.read(g, function(a, b) { - a ? c(a) : d(b); - }); - } - function r(a, b) { - var c, d, g; - c = {}; - d = a.partitions.reduce(function(a, b) { - return a + b.capacity; - }, 0); - g = b / d; - a.partitions.map(function(a) { - var b; - b = a.key; - c[b] = {}; - c[b].Av = Math.floor(g * a.capacity); - c[b].mSa = a.dailyWriteFactor || 1; - c[b].Jqb = a.owner; - c[b].MUa = a.evictionPolicy; - }); - return c; - } + function l() { + return a.cy().filter(function(a) { + return H[a.O]; + }); + } - function u(a, b, c) { - if (c) return N.uTa(a, b).reduce(function(a, b) { - Object.keys(b).map(function(c) { - a[c] = b[c]; + function z() { + var f, c, d; + f = a.Ic.value; + c = a.Te.value; + d = a.$h; + f && (d = d.slice(), d.sort(function(a, b) { + return a.Qd - b.Qd; + }), F(U, f.qc.map(function(b) { + return { + value: b.O, + caption: b.O, + selected: b == a.Ri.value + }; + }))); + c && (F(ga, c.qc.map(function(b) { + var f, c; + f = a.y7.zs(b); + b = b.O; + c = "" + b; + f && (c += " (" + f.join("|") + ")"); + return { + value: b, + caption: c, + selected: a.Ln != l ? !f : H[b] + }; + })), ga.removeAttribute("disabled")); + d && (F(S, d.map(function(f) { + return { + value: f.id, + caption: "[" + f.id + "] " + f.name, + selected: f == a.Mb[b.gc.G.VIDEO].value + }; + })), S.removeAttribute("disabled")); + } + + function E() { + T && z(); + } + + function n(a) { + var b, f; + b = h.createElement("DIV", "display:inline-block;vertical-align:top;margin:5px;"); + a = h.createElement("DIV", void 0, a); + f = h.createElement("select", "width:120px;height:180px", void 0, { + disabled: "disabled", + multiple: "multiple" }); - return a; - }, {}); - c = {}; - c[a] = b; - return c; - } + b.appendChild(a); + b.appendChild(f); + O.appendChild(b); + return f; + } - function v(a, b, c, d, g, h, f, p, l, m, r) { - return function(u, x) { - var v; - if (u && 0 < Object.keys(u).length) x = Object.keys(u).map(function(a) { - return u[a]; - }), x.some(function(a) { - return a.code === n.Kx.code; - }) && !x.some(function(a) { - return a.code === n.rK.code; - }) ? r(m, u, function() { - l.save(b, c, d, g, h, f); - }) : (m["delete"](p), delete m.Ld[c], h(u)); - else { - v = x.items.filter(function(b) { - return 0 <= Object.keys(a).indexOf(b.key); - }).reduce(function(a, b) { - return a + b.LO; - }, 0); - m.Ld[c].mra(v); - h(null, { - WVa: x.Lh, - nmb: x.wz + function F(a, b) { + a.innerHTML = ""; + b.forEach(function(b) { + var f; + f = { + title: b.caption + }; + b.selected && (f.selected = "selected"); + f = h.createElement("option", void 0, b.caption, f); + f.value = b.value; + a.appendChild(f); + }); + } + + function q(a) { + a.ctrlKey && a.altKey && a.shiftKey && a.keyCode == m.Zs.uOa && u(); + } + N = h.createElement("DIV", "position:absolute;left:0;top:50%;right:0;bottom:0;text-align:center;color:#040;font-size:11px;font-family:monospace", void 0, { + "class": "player-streams" + }); + O = h.createElement("DIV", "display:inline-block;background-color:rgba(255,255,255,0.86);border:3px solid #fff;padding:5px;margin-top:-90px"); + t = h.createElement("DIV", "width:100%;text-align:center"); + U = n("Audio Bitrate"); + ga = n("Video Bitrate"); + S = n("CDN"); + H = {}; + X = f.ca.get(p.$l); + N.appendChild(O); + O.appendChild(t); + aa = h.createElement("BUTTON", void 0, "Override"); + aa.addEventListener("click", function() { + var d, m, f, c; + H = {}; + for (var f = ga.options, c = f.length; c--;) { + d = f[c]; + d.selected && (H[d.value] = 1); + } + a.Ln = l; + w(); + if (f = a.$h) { + m = S.value; + f = f.filter(function(a) { + return a.id == m; + })[0]; + c = a.Mb[b.gc.G.VIDEO].value; + f && f != c && (f.hCb = { + testreason: "streammanager", + selreason: "userselection" + }, a.Mb[b.gc.G.VIDEO].set(f)); + } + g(); + }, !1); + t.appendChild(aa); + aa = h.createElement("BUTTON", void 0, "Reset"); + aa.addEventListener("click", function() { + delete a.Ln; + w(); + g(); + }, !1); + t.appendChild(aa); + c.ee.addListener(c.dy, q); + a.addEventListener(r.X.Ce, function() { + c.ee.removeListener(c.dy, q); + }); + a.Mb.forEach(function(a) { + a.addListener(E); + }); + a.Ic.addListener(E); + a.Te.addListener(E); + k.La(this, { + toggle: u, + show: d, + ey: g + }); + }; + }, function(g, d, a) { + var b, c, h, k, f, p, m, r, u, x; + Object.defineProperty(d, "__esModule", { + value: !0 + }); + b = a(9); + c = a(41); + h = a(21); + k = a(2); + f = a(173); + p = a(6); + m = a(15); + r = a(16); + u = a(3); + x = a(116); + d.SIa = function(a) { + var g, v, l, E; + + function d() { + a.state.value != c.qn || a.Pc.value != c.Dq && a.Pc.value != c.xw ? v.Pf() : v.mp(); + } + g = b.config.Eib; + if (!a.XC() && g) { + v = u.ca.get(x.Gw)(g, function() { + a.fireEvent(r.X.RC, k.I.cN); + }); + a.Pc.addListener(d); + a.state.addListener(d); + if (b.config.A5) { + E = h.yc(); + l = new f.Wga(b.config.A5, function() { + var f, c; + f = h.yc(); + c = f - E; + c > g && (a.fireEvent(r.X.RC, k.I.OM), l.p1()); + c > 2 * b.config.A5 && (a.B5 = p.Xk(c, a.B5 || 0)); + E = f; }); + l.B$(); + } + a.addEventListener(r.X.Ce, function() { + v.Pf(); + m.ab(l) && l.p1(); + }); + } + }; + }, function(g, d, a) { + var b, c; + Object.defineProperty(d, "__esModule", { + value: !0 + }); + b = a(16); + c = a(34); + d.THa = function(a) { + function d(f) { + a.fireEvent(b.X.RH, { + response: f + }); + } + return { + download: function(b, g) { + b.j = a; + b = c.Ab.download(b, g); + b.Jla(d); + return b; } }; + }; + }, function(g, d, a) { + var c; + + function b(a, b) { + var f; + f = this; + this.Era = a; + this.zwa = b; + this.vaa = !1; + this.js = function() { + f.Pk = void 0; + f.update(); + }; } - k = a(10); - w = a(100); - G = new w.Console("MEDIACACHE", "media|asejs"); - x = a(497); - y = a(496); - C = a(261); - F = a(116); - N = a(491); - n = a(171); - q = a(31).EventEmitter; - Z = { - Uqb: [] + Object.defineProperty(d, "__esModule", { + value: !0 + }); + c = a(17); + b.prototype.update = function(a) { + var b, f, d; + b = this.Era(); + if (this.WBa !== b) { + c.ab(b) && c.ab(this.duration) && b < this.duration && this.entries && (d = this.$va || this.entries[Math.floor(b * this.uqb)] || this.entries[0]); + if (d) { + for (; d && d.endTime < b;) d = d.next; + for (; d && d.previous && d.previous.endTime >= b;) d = d.previous; + } + d && (d.startTime <= b && b <= d.endTime ? (f = d, this.RBa(d.endTime - b)) : this.RBa(d.startTime - b)); + this.$va = d; + this.WBa = b; + this.U_ !== f && (this.U_ = f, !a && this.zwa && this.zwa()); + } }; - d.prototype.aB = function(a, c) { - var d; - d = k.wb(c) ? c : b; - this.$r("billboard") ? this.ci.billboard.query(a, function(a) { - d(a.filter(g)); - }) : d([]); - }; - d.prototype.read = function(a, c, d) { - var g, f, p; - g = k.wb(d) ? d : b; - if (this.$r(a)) { - f = this.ci[a]; - if (!C.mA(c) && this.H.j2a) { - p = function(b) { - f.gQ(Object.keys(b), function(b, d) { - b ? g(n.WC.Zl("Failed to read " + c, b)) : (h(this, "read", a, c), g(null, N.v_a(d))); - }.bind(this), b); - }.bind(this); - (d = f.Ld[c]) ? p(d.resourceIndex): this.P6a(a, c, function(a, b) { - a ? g(n.WC.Zl("Failed to read " + c, a)) : p(b.resourceIndex); - }); - } else f.read(c, function(b, d) { - b ? g(n.WC.Zl("Failed to read " + c, b)) : (h(this, "read", a, c), g(null, d)); - }.bind(this)); - } else g(n.lu); + b.prototype.start = function() { + this.vaa = !0; + this.update(); }; - d.prototype.gQ = function(a, c, d) { - var g, h; - g = k.wb(d) ? d : b; - if (this.$r(a)) { - h = {}; - w.Promise.all(c.map(function(b) { - return new w.Promise(function(c, d) { - this.read(a, b, function(a, g) { - a ? (g = {}, g[b] = a, d(g)) : (h[b] = g, c()); - }); - }.bind(this)); - }.bind(this))).then(function() { - g(null, h); - }, function(a) { - g(a); - }); - } else g(n.lu); + b.prototype.Zza = function(a) { + this.$va = this.U_ = this.WBa = void 0; + this.duration = (this.entries = a) && Math.max.apply(Math, [].concat(wb(a.map(function(a) { + return a.endTime; + })))) || 0; + this.uqb = a && a.length / this.duration || 0; + this.update(); }; - d.prototype.Fqa = function(a, c) { - var d; - d = k.wb(c) ? c : b; - this.$r("billboard") ? "[object Object]" !== Object.prototype.toString.call(a) ? d(n.qK.Zl("items must be a map of keys to objects")) : w.Promise.all(Object.keys(a).map(function(b) { - return new w.Promise(function(c, d) { - this.save("billboard", b, a[b].Jt, a[b].Uc, function(a, g) { - a ? (G.error("Received an error saving", b, a), d(a)) : c(g); - }, !0); - }.bind(this)); - }.bind(this))).then(function(b) { - var c, g, h; + b.prototype.stop = function() { + this.vaa = !1; + this.Pf(); + }; + b.prototype.V7a = function() { + this.update(!0); + return this.U_; + }; + b.prototype.RBa = function(a) { + this.Pf(); + this.vaa && 0 < a && (this.Pk = setTimeout(this.js, a + b.WKa)); + }; + b.prototype.Pf = function() { + this.Pk && (clearTimeout(this.Pk), this.Pk = void 0); + }; + b.WKa = 10; + d.SPa = b; + }, function(g, d, a) { + var b, c, h; + Object.defineProperty(d, "__esModule", { + value: !0 + }); + a(34); + b = a(68); + a(21); + c = a(12); + h = a(42); + a(15); + a(16); + d.LNa = function() { + var d, g, r, u, x; + + function a() { + x = !1; + for (var a = d.length, b; a--;) b = d[a], u[b] && (u[b] = !1, r.Db(b + "changed", { + getModel: g[b] + })); + } + + function f(b) { + u[b] = !0; + x || (x = !0, h.hb(a)); + } + d = []; + g = {}; + r = new b.Pj(); + u = {}; + x = !1; + return { + register: function(a, b) { + c.sa(!(0 <= d.indexOf(a)), "panel already registered"); + g[a] = b; + d.push(a); + }, + JGb: f, + KEb: function(a) { + return (a = g[a]) ? a() : void 0; + }, + addEventListener: function(a, b) { + r.addListener(a, b); + g[a] && f(a); + }, + removeEventListener: function(a, b) { + r.removeListener(a, b); + } + }; + }; + }, function(g, d) { + Object.defineProperty(d, "__esModule", { + value: !0 + }); + d.yea = "LicenseBrokerFactorySymbol"; + }, function(g, d, a) { + var b, c, h, k, f, p; + Object.defineProperty(d, "__esModule", { + value: !0 + }); + g = a(19); + b = a(5); + c = a(9); + h = a(2); + k = a(3); + f = a(17); + p = a(6); + g.Ge(h.I.Ida, function(a) { + var m, h, v; + + function g() { + v && clearTimeout(v); + a(b.Bb); + g = f.Qb; + } + m = k.zd("BatteryManager"); + d.qr = { + eEa: "chargingchange", + yra: function() { + return h ? h.level : null; + }, + b4: function() { + return h ? h.charging : null; + }, + addEventListener: function(a, b) { + h && h.addEventListener(a, b); + }, + removeEventListener: function(a, b) { + h && h.removeEventListener(a, b); + } + }; + if (c.config.lH) { + v = setTimeout(g, c.config.l8a); try { - c = Number.MAX_VALUE; - g = Number.MAX_VALUE; - h = b.reduce(function(a, b) { - b.Lh && b.Lh < c && (c = b.Lh); - b.wz && b.wz < g && (g = b.wz); - c < Number.MAX_VALUE && (a.freeSize = c); - g < Number.MAX_VALUE && (a.dailyBytesRemaining = g); - return a; - }, { - partition: "billboard", - type: "saveMultiple", - keys: Object.keys(a), - time: w.time.now() + p.Ph.getBattery().then(function(a) { + h = a; + g(); + })["catch"](function(a) { + m.error("getBattery promise rejected", a); + g(); }); - this.Ha("mediacache", h); - d(null, h); - } catch (X) { - d(err); + } catch (y) { + m.error("exception on getBattery api call", y); + g(); } - }.bind(this), function(a) { - this.Ha("mediacache-error", { - partition: "billboard", - type: "saveMultiple", - error: a - }); - d(a); - }.bind(this)) : (k.wb(c) ? c : b)(n.lu); - }; - d.prototype.save = function(a, c, d, g, h, f) { - var p, m, r, x, y, z, N, T; - p = k.wb(h) ? h : b; - if (this.$r(a)) { - m = this.ci[a]; - r = C.YY(c); - m.Pja().map(function(b) { - b !== c && this["delete"](a, b); - }.bind(this)); - if (l(g)) { - x = u(c, d, this.H.j2a); - h = m.Ld[c] || {}; - y = h.resourceIndex; - y && Object.keys(y).map(function(a) { - k.S(x[a]) && m["delete"](a); - }); - y = w.time.now(); - z = {}; - z.partition = a; - z.resourceIndex = Object.keys(x).reduce(function(a, b) { - a[b] = F.i0(x[b]); - return a; - }, {}); - z.creationTime = h.creationTime || y; - z.lastRefresh = y; - z.lifespan = g.lifespan; - z.lastMetadataUpdate = y; - z.size = h.size; - N = function(a, b, c) { - a.USa(function(d, g) { - d && G.error("Evicting", "Failed to delete some orphaned records", d); - g.j4 ? c() : (d = a.oXa()) ? this["delete"](a.getName(), d, function(a) { - a ? p(b) : c(); - }.bind(this)) : p(n.Kx); - }.bind(this)); - }.bind(this); - T = function() { - var a, b, c; - a = this.ci; - b = 0; - c = w.time.now(); - if (!k.S(a)) - for (var d in a) b += a[d].IWa(c); - return b; - }.bind(this); - m.replace(r, z, function(b, h) { - h ? (m.Ld[c] = C.w_(z), m.J7a(x, v(x, a, c, d, g, p, f, r, this, m, N), f, T)) : b.code === n.Kx.code ? N(m, b, function() { - this.save(a, c, d, g, p, f); - }.bind(this)) : p(b); - }.bind(this), f, T); - } else p(n.Fza); - } else p(n.lu); - }; - d.prototype["delete"] = function(a, c, d) { + } else g(); + }); + }, function(g, d, a) { + var m, r, u, x, v, y, w, l; + + function b(a) { + return a.split(",").reduce(function(a, b) { + var f; + f = b.split("="); + b = f[0]; + f = f.slice(1).join("="); + b && b.length && (a[b] = f || !0); + return a; + }, {}); + } + + function c(a) { + return a && "object" === typeof a ? JSON.stringify(a) : "string" === typeof a ? '"' + a + '"' : "" + a; + } + + function h(a, f, d) { var g; - g = k.wb(d) ? d : b; - this.$r(a) ? p(this.ci[a], c, function(b) { - h(this, "delete", a, c, b); - g(b); - }.bind(this)) : g(n.lu); - }; - d.prototype.clear = function(a, c) { - var d; - d = k.wb(c) ? c : b; - this.$r(a) ? this.ci[a].clear(function(a) { - d(a.filter(g)); - }) : d(n.lu); - }; - d.prototype.P6a = function(a, c, d) { - var g, h; - g = k.wb(d) ? d : b; - if (this.$r(a)) { - d = C.YY(c); - h = this.ci[a]; - h.read(d, function(a, b) { - var d; - if (a) g(n.Gza); - else { - d = C.w_(b) || {}; - h.cka(Object.keys(d.hsb), function(a) { - d.size = a; - (a = h.Ld[c]) && (d.lastMetadataUpdate && a.lastMetadataUpdate && a.lastMetadataUpdate <= d.lastMetadataUpdate ? h.Ld[c] = d : a.lastMetadataUpdate && (a.lastMetadataUpdate > d.lastMetadataUpdate || k.S(d.lastMetadataUpdate)) && (d = a)); - g(null, d); - }); - } - }); - } else g(n.lu); - }; - d.prototype.Ksa = function(a) { - w.UF(a); - }; - d.prototype.constructor = d; - f.P = d; - }, function(f, c, a) { - (function() { - var f1c, c, h, l, g, m, p, r, u, v, k, w, G; - - function b(a, b, c, d, h, f) { - var Z1c, l, b1c, T1c; - Z1c = 2; - while (Z1c !== 8) { - b1c = "e"; - b1c += "d"; - b1c += "it"; - T1c = "cac"; - T1c += "h"; - T1c += "e"; - switch (Z1c) { - case 2: - r.call(this, a, c); - l = [T1c, b1c].filter(function(a, b) { - var L1c; - L1c = 2; - while (L1c !== 1) { - switch (L1c) { - case 2: - return [h, c.yd][b]; - break; - case 4: - return [h, c.yd][b]; - break; - L1c = 1; - break; - } - } - }); - l = l.length ? "(" + l.join(",") + ")" : ""; - Z1c = 3; - break; - case 3: - void 0 === c.responseType && (c.responseType = c.yd || g.Zg && !g.Zg.tQ.Yo ? g.Ei.el : g.Ei.Yo); - p.call(this, a, b, l, c, d, f); - Z1c = 8; - break; + if ("string" === typeof a) return h.call(this, b(a), f, d); + g = 0; + Object.keys(a).forEach(function(b) { + var k, p, h; + k = v[b]; + p = a[b]; + if (k) { + if (h = y[b] || l[typeof m[k]]) try { + p = h(p); + } catch (U) { + d && d.error("Failed to convert value '" + p + "' for config '" + b + "' : " + U.toString()); + return; } - } - } - f1c = 2; - while (f1c !== 35) { - switch (f1c) { - case 2: - a(21); - c = a(71); - h = a(13); - f1c = 3; - break; - case 12: - k = a(499); - w = a(72); - G = a(30).Dv; - b.prototype = Object.create(p.prototype); - f1c = 19; - break; - case 3: - l = a(9); - g = l.Pa; - m = l.MediaSource; - p = a(264); - r = a(67); - u = a(79).HJ; - v = a(172); - f1c = 12; - break; - case 24: - b.prototype.$y = function(a, b, c, d) { - var U1c, g; - U1c = 2; - while (U1c !== 6) { - switch (U1c) { - case 4: - return !1; - break; - case 5: - U1c = this.Nf ? 4 : 3; - break; - case 3: - a = this.nja ? a.appendBuffer(G(this.pia), this) : this.yd && !this.Hm ? this.iHa(a, b, d) : this.yd && this.Hm ? this.jHa(a, c, d) : this.O === h.G.AUDIO && g.Vm && b && this.Ut && b.df >= this.df && this.Ij - this.Ut < this.Ut - this.Ri ? !0 : a.appendBuffer(this.response, this); - this.Nf = !0; - this.lQ(); - return a; - break; - case 2: - g = this.ph.H; - U1c = 5; - break; - } - } - }; - b.prototype.iHa = function(a, b, c) { - var K1c, d, g, f, d1c, C1c; - K1c = 2; - while (K1c !== 7) { - d1c = " "; - d1c += "f"; - d1c += "rom "; - d1c += "["; - d1c += " "; - C1c = "AseFragmentMediaRequest: F"; - C1c += "ragme"; - C1c += "nt "; - C1c += "edi"; - C1c += "t failed for "; - switch (K1c) { - case 4: - f = !1; - this.O === h.G.AUDIO && b && (-1 != d.L4.indexOf(this.profile) ? c && (this.Lc ? (this.Lc.Rd += 1, this.Lc.Qb += this.stream.bc.hh) : this.Lc = { - Rd: 1, - Qb: this.stream.bc.hh - }, this.Li += this.stream.bc.hh, this.wd -= this.stream.bc.hh) : this.Lca(b) ? b.Lc && this.Lc && this.Lc.Rd !== b.Lc.Rd && this.oq({ - Rd: b.Lc.Rd, - Qb: b.Ij - }, !1) : g = this.GGa()); - this.qc > this.Ad || g.ix ? (c = this.Lc && this.Lc.Rd, b = new u(this.stream, this.response), (g = b.aqa(c, this.jb, g.ix, g.q5)) ? (f = a.appendBuffer(G(g.Xp), this), this.SD(), this.yL(g.Xp)) : this.V.Yb(C1c + this.toString() + d1c + this.Ad + "-" + this.mi + "]")) : f = a.appendBuffer(this.response, this); - return f; - break; - case 2: - d = this.ph.H; - g = { - ix: 0 - }; - K1c = 4; - break; - } - } - }; - b.prototype.jHa = function(a, b, c) { - var r1c, d, g, f, p, v1c, g1c; - r1c = 2; - while (r1c !== 6) { - v1c = " "; - v1c += "fr"; - v1c += "om ["; - v1c += " "; - g1c = "As"; - g1c += "eFra"; - g1c += "gmentMediaRe"; - g1c += "quest: Fragment"; - g1c += " edit failed for "; - switch (r1c) { - case 4: - f = !1; - p = !0; - r1c = 9; - break; - case 9: - this.O === h.G.AUDIO && (-1 != d.L4.indexOf(this.profile) ? c && (this.wd -= this.stream.bc.hh, this.Lc ? (--this.Lc.Rd, this.Lc.Qb -= this.stream.bc.hh) : this.Lc = { - Rd: new Timescale(this.wd, 1E3).Gz(this.stream.bc) - 1, - Qb: this.Ij - }, p = 0 < this.Lc.Rd) : this.Lca(b) ? b.Lc && 0 != b.Lc.Rd ? this.oq({ - Rd: b.Lc.Rd, - Qb: b.Ri - }, !0) : p = !1 : (g = this.HGa(), d.Vm || (p = this.pGa(b)))); - p ? this.df < this.mi || g.ix ? (c = this.Lc && this.Lc.Rd, b = new u(this.stream, this.response), (g = b.bqa(c, this.jb, g.ix, g.q5)) ? (f = a.appendBuffer(G(g.Xp), this), this.SD(), this.yL(g.Xp)) : this.V.Yb(g1c + this.toString() + v1c + this.Ad + "-" + this.mi + "]")) : f = a.appendBuffer(this.response, this) : f = !0; - return f; - break; - case 2: - d = this.ph.H; - g = { - ix: 0 - }; - r1c = 4; - break; - } - } - }; - f.P = b; - f1c = 35; - break; - case 19: - c(r.prototype, b.prototype); - b.prototype.toString = function() { - var q1c; - q1c = 2; - while (q1c !== 1) { - switch (q1c) { - case 2: - return g.prototype.toString.call(this) + " " + r.prototype.toString.call(this); - break; - } - } - }; - b.create = function(a, c, d, f, p, l) { - var h1c, m, r, u; - h1c = 2; - while (h1c !== 10) { - switch (h1c) { - case 1: - h1c = d.yd && a.O === h.G.VIDEO && g.Zg && g.Zg.tQ.Yo ? 5 : 4; - break; - case 5: - return new k(a, c, d, f, p, l); - break; - case 4: - h1c = d.uG && d.ga > d.uG ? 3 : 11; - break; - case 2: - h1c = 1; - break; - case 13: - d.offset = r, d.ga = Math.min(u, m), r += d.ga, u -= d.ga, f.push(new b(a, c, d, f, p, l)); - h1c = 14; - break; - case 12: - return f; - break; - case 6: - m = Math.ceil(d.ga / m); - h1c = 14; - break; - case 3: - m = Math.ceil(d.ga / d.uG); - r = d.offset; - u = d.ga; - f = new v(a, d, f, l); - h1c = 6; - break; - case 14: - h1c = 0 < u ? 13 : 12; - break; - case 11: - return new b(a, c, d, f, p, l); - break; - } - } - }; - b.prototype.SD = function() { - var t1c, a, D1c, o1c, I1c, a1c, H1c; - t1c = 2; - while (t1c !== 3) { - D1c = "a"; - D1c += "r"; - D1c += "r"; - D1c += "ay"; - o1c = "video"; - o1c += "edi"; - o1c += "t"; - I1c = "a"; - I1c += "u"; - I1c += "dioe"; - I1c += "dit"; - a1c = "en"; - a1c += "d"; - a1c += "pl"; - a1c += "a"; - a1c += "y"; - H1c = "l"; - H1c += "o"; - H1c += "gda"; - H1c += "ta"; - switch (t1c) { - case 4: - this.ph.emit(a.type, a); - t1c = 3; - break; - case 2: - a = { - type: H1c, - target: a1c, - fields: {} - }; - a.fields[this.O === h.G.AUDIO ? I1c : o1c] = { - type: D1c, - value: { - pts: this.Ad === this.qc ? this.mi : this.Ad, - offset: this.Ad === this.qc ? this.df - this.mi : this.qc - this.Ad - } - }; - t1c = 4; - break; - } - } - }; - b.prototype.Lca = function(a) { - var G1c; - G1c = 2; - while (G1c !== 1) { - switch (G1c) { - case 2: - return a && a.M === this.M && a.Ad === this.Ad ? !0 : !1; - break; - } - } - }; - f1c = 27; - break; - case 27: - b.prototype.GGa = function() { - var p1c, a, b, c, c1c, J1c; - p1c = 2; - while (p1c !== 9) { - c1c = "d"; - c1c += "ef"; - c1c += "au"; - c1c += "l"; - c1c += "t"; - J1c = "def"; - J1c += "a"; - J1c += "u"; - J1c += "lt"; - switch (p1c) { - case 2: - p1c = 1; - break; - case 1: - a = 0; - c = this.ph.H; - void 0 !== c.Zs && null !== c.Zs && (a = (void 0 !== c.Q0 ? c.Q0 : c.Zs) || 0, c = c.EO && c.EO[this.stream.profile]) && (b = c.name, a = void 0 !== c.onEntry ? c.onEntry : void 0 !== c[J1c] ? c[c1c] : a); - return { - ix: a, - q5: b - }; - break; - } - } - }; - b.prototype.HGa = function() { - var N1c, a, b, c, e1c, m1c; - N1c = 2; - while (N1c !== 9) { - e1c = "d"; - e1c += "e"; - e1c += "fau"; - e1c += "lt"; - m1c = "d"; - m1c += "e"; - m1c += "f"; - m1c += "a"; - m1c += "ult"; - switch (N1c) { - case 1: - a = 0; - c = this.ph.H; - N1c = 4; - break; - case 2: - N1c = 1; - break; - case 4: - void 0 !== c.Zs && null !== c.Zs && (a = (void 0 !== c.R0 ? c.R0 : c.Zs) || 0, c = c.EO && c.EO[this.stream.profile]) && (b = c.name, a = void 0 !== c.onExit ? c.onExit : void 0 !== c[m1c] ? c[e1c] : a); - return { - ix: a, - q5: b - }; - break; - } - } - }; - b.prototype.pGa = function(a) { - var l1c, b, c, d, g, h, f; - l1c = 2; - while (l1c !== 19) { - switch (l1c) { - case 2: - b = this.ph.H; - c = this.bc.hh; - d = !0; - l1c = 3; - break; - case 13: - a.ie(g).gma(w.u4a) && 0 < c && (--c, g = f.O2(c)); - this.wd = Math.min(this.wd, g.hh); - this.PK = { - Rd: c, - Qb: this.Ij - }; - c < (b.I2a || 1) && (d = !1); - return d; - break; - case 3: - g = b.vna; - h = m.Zg && m.Zg.vna; - f = this.bc; - a = w.aWa((a ? a.qc : this.df - 2 * c) - (void 0 !== g ? g : void 0 !== h ? h : 100) - this.Ad).Sq(f.jb); - c = Math.floor(a.Gz(f)); - g = f.O2(c); - l1c = 13; - break; - } - } - }; - f1c = 24; - break; - } - } - }()); - }, function(f, c, a) { - var h, l, g, m, p, r; - - function b(a, b, c, d, h, f) { - p.call(this, b, c); - r.call(this, a, d, h, f); - this.gGa = a.url || d.url; - this.eGa = d.responseType; - this.fGa = d.YQ; - this.sf = new g(); - this.sf.on(this, p.bd.L$, this.gW); - this.sf.on(this, p.bd.K$, this.rJa); - this.sf.on(this, p.bd.M$, this.wJa); - this.sf.on(this, p.bd.NC, this.fW); - this.sf.on(this, p.bd.uu, this.KD); - this.yl = this.pk = this.sK = !1; + h = x[k]; + this[k] = p; + x[k] !== h && (d && d.debug("Config changed for '" + b + "' from " + c(h) + " (" + typeof h + ") to " + c(p) + " (" + typeof p + ")"), ++g); + } else f ? (k = (k = w[b]) ? k.filter(function(a) { + return a[0] !== this; + }, this) : [], k.push([this, p]), w[b] = k) : d && d.error("Attempt to change undeclared config option '" + b + "'"); + }, this); + g && x.emit("changed"); + return g; } - function d() { - l(!1); + function k() { + return Object.keys(v).reduce(function(a, b) { + var f, c; + f = v[b]; + c = a[f]; + c ? (c.push(b), a[f] = c.sort(function(a, b) { + return b.length - a.length; + })) : a[f] = [b]; + return a; + }, {}); } - h = a(10); - l = a(21); - c = a(71); - g = a(31).kC; - m = a(9); - p = m.Pa; - r = a(117); - a(88); - new m.Console("ASEJS", "media|asejs"); - b.prototype = Object.create(p.prototype); - c(r.prototype, b.prototype); - Object.defineProperties(b.prototype, { - active: { - get: function() { - return this.pk; - }, - set: function(a) { - return function() { - this.V.ba("Property '" + a + "' is read-only and should not be set."); - }; - }("active") - }, - h4: { - get: function() { - return this.yl; - }, - set: d - }, - complete: { - get: function() { - return this.readyState === p.Va.DONE; - }, - set: d + + function f(a, b) { + return a.hasOwnProperty(b) ? c(a[b]) : void 0; + } + + function p(a, b) { + return "undefined" === typeof a ? b : a; + } + d = a(48); + a = a(29).EventEmitter; + m = {}; + r = Object.create(m); + u = Object.create(r); + x = Object.create(u); + v = {}; + y = {}; + w = {}; + x.declare = function(a) { + Object.keys(a).forEach(function(b) { + var f, c, d, g; + f = a[b]; + c = f[0]; + d = f[1]; + g = f[2]; + if (m.hasOwnProperty(b)) throw Error("The local configuraion key '" + b + "' is already in use"); + "string" === typeof c && (c = [c]); + c.forEach(function(a) { + var f; + if (v.hasOwnProperty(a)) throw Error("The configuration value '" + a + "' has been declared more than once"); + m.hasOwnProperty(b) || ("function" === typeof d && (d = d()), m[b] = d); + v[a] = b; + "function" === typeof g && (y[a] = g); + if (f = w[a]) f.forEach(function(b) { + var f, c; + f = b[0]; + c = {}; + c[a] = b[1]; + h.call(f, c, !1); + }), delete w[a]; + }); + }); + return x; + }; + l = { + object: function(a) { + return "object" == typeof a ? a : JSON.parse("" + a); }, - Dn: { - get: function() { - return this.sK; - }, - set: d + "boolean": function(a) { + return "boolean" == typeof a ? a : !("0" === "" + a || "false" === ("" + a).toLowerCase()); }, - l1: { - get: function() { - return this.ip; - }, - set: d + number: function(a) { + if ("number" == typeof a) return a; + a = parseFloat("" + a); + if (isNaN(a)) throw Error("parseFloat returned NaN"); + return a; + } + }; + x.set = h.bind(r); + x.CD = h.bind(u); + x.dump = function(a, b) { + var g, h, y, l; + + function d() { + l && a && a.log("==========================================="); } + g = Object.keys(w).sort(); + h = {}; + y = k(); + b = p(b, !0); + Object.keys(v).sort().forEach(function(g) { + var k, w, D; + g = v[g]; + !h[g] && (h[g] = !0, w = f(r, g), D = f(u, g), b || "undefined" !== typeof w || "undefined" !== typeof D) && (k = y[g].join(","), k += " = " + c(x[g]) + " (" + typeof x[g] + ") [", k += p(D, "") + ",", k += p(w, "") + ",", k += f(m, g) + "]", l || (l = !0, a && a.log("Current config values"), d()), a && a.log(k)); + }); + (b || g.length) && a && a.log(" :", g); + d(); + }; + x.jp = function(a) { + var b, f; + b = {}; + f = {}; + Object.keys(v).forEach(function(a) { + a = v[a]; + f[a] || (f[a] = !0, b[a] = x[a]); + }); + a && h.call(b, a); + return b; + }; + x.hxa = function() { + var a; + a = k(); + return Object.getOwnPropertyNames(r).reduce(function(b, f) { + b[a[f][0]] = r[f]; + return b; + }, {}); + }; + x.reset = function() { + Object.keys(r).forEach(function(a) { + delete r[a]; + }); + }; + x.dl = {}; + d(a, x); + g.M = Object.freeze(x); + }, function(g, d, a) { + var b, c, h, k, f; + Object.defineProperty(d, "__esModule", { + value: !0 }); - b.prototype.Xc = function(a, b) { - r.prototype.Xc.call(this, a, b); - this.Hb || !a.H.hX && this.zc || (this.Hb = a.La.Hb, this.active && (this.Hb.gqa(m.time.now()), this.yl && (this.Hb.T7a(m.time.now()), this.connect && 0 < this.Iq.length && this.Hb.yp(this.Iq[0])))); + b = a(3); + c = a(3); + h = a(22); + k = a(60); + f = { + Fb: { + CLOSED: 0, + OPEN: 1, + KW: 2, + name: ["CLOSED", "OPEN", "ENDED"] + }, + ec: { + WP: !0 + } }; - b.prototype.fw = function() { - return this.responseType === p.Ei.Yo ? this.readyState >= p.Va.sr : this.readyState == p.Va.DONE; + d.zKa = Object.assign(function(a) { + var d, g; + d = k.platform; + b.zd("MediaSourceASE").trace("Inside MediaSourceASE"); + g = a.x4(); + this.readyState = f.Fb.CLOSED; + this.sourceBuffers = g.sourceBuffers; + this.addSourceBuffer = function(a) { + return g.addSourceBuffer(a); + }; + this.$_ = function(a) { + return g.$_(a); + }; + this.removeSourceBuffer = function(a) { + return g.removeSourceBuffer(a); + }; + this.Nn = function(a) { + return g.Nn(a); + }; + this.sourceId = d.BI(); + d.TI(); + this.duration = void 0; + g.Gnb(this.sourceId); + this.readyState = f.Fb.OPEN; + this.ec = c.ca.get(h.Je).Dk(f.ec, {}); + }, f); + }, function(g, d, a) { + var b, c; + Object.defineProperty(d, "__esModule", { + value: !0 + }); + b = a(17); + c = a(6); + d.hAb = function(a, b, f) { + for (f = (f - a.length) / b.length; 0 < f--;) a += b; + return a; }; - b.prototype.$y = function(a) { - return this.Nf = a.appendBuffer(this.response, this); + d.gAb = function(a, c, f) { + f = b.bd(f) ? f : "..."; + return a.length <= c ? a : a.substr(0, a.length - (a.length + f.length - c)) + f; }; - b.prototype.rla = function() { - return this.Dn; + d.tPa = function(a, b) { + var d; + for (var f = 1; f < arguments.length; ++f); + d = c.slice.call(arguments, 1); + a.replace(/{(\d+)}/g, function(a, b) { + return "undefined" != typeof d[b] ? d[b] : a; + }); }; - b.prototype.open = function() { - return p.prototype.open.call(this, this.gGa, { - start: this.offset, - end: this.offset + this.ga - 1 - }, this.eGa, {}, this.ekb, this.fkb, this.fGa); + d.iAb = function(a) { + for (var b = a.length, f = new Uint16Array(b), c = 0; c < b; c++) f[c] = a.charCodeAt(c); + return f.buffer; }; - b.prototype.abort = function() { - var a; - if (this.Dn) return !0; - a = this.pk; - this.Hb && a && this.Hb.jqa(m.time.la()); - this.sK = !0; - this.yl = this.pk = !1; - p.prototype.abort.call(this); - this.MN(this, a); - return !0; + d.bJb = function(a) { + var b; + b = new Uint8Array(a.length); + Array.prototype.forEach.call(a, function(a, c) { + b[c] = a.charCodeAt(0); + }); + return b; }; - b.prototype.ze = function() { - this.readyState !== p.Va.UNSENT && this.readyState !== p.Va.$l && this.readyState !== p.Va.DONE && (this.V.ba("AseMediaRequest: in-progress request should be aborted before cleanup", this), this.abort()); - p.prototype.ze.call(this); - }; - b.prototype.KD = function() { - var a, b, c, d; - this.V.ba("AseMediaRequest._onError:", this.toString()); - a = this.Be; - this.ip = m.time.la() - this.Be; - b = this.status; - c = this.Mj; - d = this.Uk; - this.complete ? this.V.ba("Error on a done request " + this.toString() + ", failurecode: " + c) : this.Dn ? this.V.ba("Error on an aborted request " + this.toString() + ", failurecode: " + c) : h.da(c) ? (this.Hb && this.ph && this.ph.H.t4 && this.Ed && void 0 === b && this.Hb.eX(this.Wj ? this.Jc - this.Wj : this.Jc, this.Ul ? this.Ul : this.Ed, a), this.NN(this)) : this.V.ba("ignoring undefined request error (nativecode: " + d + ")"); - }; - b.prototype.gW = function() { - var a; - a = this.Be || this.Ed; - this.nA = this.track.nA(); - this.pk || (this.pk = !0, this.Hb && this.Hb.gqa(a)); - this.Rz(this); - this.Wj = 0; - this.Ul = this.Be; - }; - b.prototype.rJa = function() { - var a, b, c; - a = this.Be; - b = this.connect; - c = this.Iq; - this.ip = m.time.la() - this.Be; - this.yl || (this.yl = !0); - b && 0 < c.length && this.Hb && this.Hb.yp(c[0]); - this.Qz(this); - this.Ul = a; - }; - b.prototype.wJa = function() { - var a, b; - a = this.Be; - b = this.Jc - this.Wj; - this.ip = m.time.la() - this.Be; - this.Hb && (this.Hb.eX(b, this.Ul, a), this.Iq && this.Iq.length && this.Iq.forEach(function(a) { - this.Hb.vp(a); - }.bind(this))); - this.xF(this); - this.Ul = a; - this.Wj = this.Jc; - }; - b.prototype.fW = function() { - var a, b; - a = this.Be; - b = this.Jc - this.Wj; - this.ip = m.time.la() - this.Be; - this.Hb && (0 < b && this.Hb.eX(b, this.Ul, a), this.Iq && this.Iq.length && this.Iq.forEach(function(a) { - this.Hb.vp(a); - }.bind(this)), this.Hb.jqa(a)); - this.yl = this.pk = !1; - this.wF(this); - this.Ul = a; - this.Wj = this.Jc; - this.sf && this.sf.clear(); - this.ze(); - }; - f.P = b; - }, function(f, c, a) { - var h, l, g, m; + }, function(g, d, a) { + var b, c, h; + Object.defineProperty(d, "__esModule", { + value: !0 + }); + b = a(3); + c = a(5); + h = a(34); + d.yLa = function() { + b.zd("OpenConnectSideChannel"); + return { + tI: function(a, b, c) { + h.Ab.Cob({ + url: a.url, + Mmb: c + }); + }, + Iaa: c.Qb + }; + }(); + }, function(g, d, a) { + var c, h, k, f, p; - function b(a, b, c, d) { - m.call(this, a, b, c, d); - this.yb = []; - this.yl = this.pk = this.yD = this.iW = !1; - this.Pu = {}; + function b(a) { + var w; + for (var b = k.oib(a), d, g, m, y = 0; y < b.length; y += 2) { + d = b[y]; + if ("moof" != d.type || "mdat" != b[y + 1].type) throw k.log.error("data is not moof-mdat box pairs", { + boxType: d.type, + nextBoxType: b[y + 1].type + }), Error("data is not moof-mdat box pairs"); + if (c.config.Rsb && "moof" == d.type && (g = d.Or("traf/saio"), m = d.Or("traf/" + h.VDa), g && m && (m = m.xYa.byteOffset - d.raw.byteOffset, g.lza[0] != m))) { + k.log.error("Repairing bad SAIO", { + saioOffsets: g.lza[0], + auxDataOffsets: m + }); + w = g; + g = m; + m = new f(w.raw); + m.seek(w.size - w.Cr); + w = m.Ud(1); + m.Ud(3) & 1 && (m.Ea(), m.Ea()); + w = 1 <= w ? 8 : 4; + m.Ea(); + m.SV(g, w); + } + if (c.config.fba && "moof" == d.type && (g = d.Or("traf/tfhd"), (d = g.r2) && d.Bmb)) { + d = void 0; + m = new f(g.raw); + m.seek(g.size - g.Cr); + w = m.Ud(3); + m.Ea(); + switch (g.type) { + case "tfhd": + w & 1 && m.Kf(); + w & 2 && m.Ea(); + w & 8 && m.Ea(); + w & 16 && m.Ea(); + w & 32 && (d = m.re(2)); + break; + case "trex": + m.Ea(), m.Ea(), m.Ea(), d = m.re(2); + } + p.sa(d); + d && (d[1] &= 254); + } + } + return a; } + Object.defineProperty(d, "__esModule", { + value: !0 + }); + c = a(9); + h = a(5); + k = a(3); + f = a(86); + p = a(12); + d.tKa = function(a) { + return b(new Uint8Array(a)); + }; + d.jAb = function(a) { + return b(a); + }; + d.ZGb = b; + }, function(g, d, a) { + var b, c, h, k, f, p, m, r, u, x; + Object.defineProperty(d, "__esModule", { + value: !0 + }); + b = a(60); + c = a(176); + h = a(9); + k = a(75); + f = a(283); + p = a(21); + m = a(3); + r = a(17); + u = a(34); + x = a(301); + d.tfb = function() { + var d, g; - function d() { - h(!1); - } - h = a(21); - a(71); - l = a(9); - g = l.Pa; - m = a(117); - a(67); - a(30); - b.prototype = Object.create(m.prototype); - Object.defineProperties(b.prototype, { - active: { - get: function() { - return this.pk; - }, - set: d - }, - h4: { - get: function() { - return this.yl; - }, - set: d - }, - complete: { - get: function() { - return this.qf || (this.qf = this.yb.every(function(a) { - return a.complete; - })); - }, - set: d - }, - Dn: { - get: function() { - return this.sK; - }, - set: d - }, - Yf: { - get: function() { - return this.yb.reduce(function(a, b) { - return a + b.Yf; - }, 0); + function a(d, m, r) { + var x, y; + + function v() { + d.removeEventListener(c.Eb.ed.vw, v); + d.hI ? d.hI++ : d.hI = 1; + d.hI >= h.config.l3.length && (d.hI = h.config.l3.length - 1); + setTimeout(function() { + a(d, m, r); + }, h.config.l3[d.hI]); + } + d.KFb = !0; + x = g.download({ + url: d.url, + responseType: u.OC, + withCredentials: !1, + Ox: d.P === b.gc.G.AUDIO ? "audio" : "video", + offset: m.start, + length: d.en, + track: { + type: d.P === b.gc.G.AUDIO ? k.Vf.audio : k.Vf.video + }, + stream: { + pd: d.Ya, + O: d.O + }, + Mb: d.cd, + fo: d, + u: d.Bc ? void 0 : f.tKa, + VU: r, + GL: h.config.GL + }, function(a) { + a.S && d.readyState !== c.Eb.Fb.DONE && d.readyState !== c.Eb.Fb.Uv && (d.readyState !== c.Eb.Fb.rq && d.readyState === c.Eb.Fb.kt && (d.readyState = c.Eb.Fb.yw, d.f8({ + mediaRequest: d, + readyState: d.readyState, + timestamp: p.yc(), + connect: !1 + })), d.readyState = c.Eb.Fb.DONE, a = { + mediaRequest: d, + readyState: d.readyState, + timestamp: p.yc(), + cadmiumResponse: a, + response: a.content + }, d.qH = a, d.bj(a)); + }); + if (d.Bc) { + y = { + mediaRequest: d, + readyState: d.readyState, + timestamp: p.yc(), + connect: !1 + }; + d.f8(y); + } + d.addEventListener(c.Eb.ed.vw, v); + d.Ksa = x.abort; + } + d = m.zd("mediaRequestDownloader"); + g = m.ca.get(x.bfa); + return { + tI: a, + O_: function(a) { + try { + a.Ksa(); + } catch (z) { + d.warn("exception aborting request"); + } }, - set: d - }, - Jc: { - get: function() { - return this.yb.reduce(function(a, b) { - return a + b.Jc; - }, 0); + Iaa: r.Qb + }; + }(); + }, function(g, d) { + Object.defineProperty(d, "__esModule", { + value: !0 + }); + d.kga = "PboPairCommandSymbol"; + }, function(g, d) { + Object.defineProperty(d, "__esModule", { + value: !0 + }); + d.bga = "PboBindCommandSymbol"; + }, function(g, d, a) { + var b, c, h, k, f, p, m, r; + Object.defineProperty(d, "__esModule", { + value: !0 + }); + b = a(21); + c = a(3); + h = a(341); + k = a(23); + f = a(17); + p = a(286); + m = a(285); + r = a(108); + d.WEa = function(a) { + var n, F, q, N, O; + + function d(a, b, f) { + return new Promise(function(c, d) { + n.send(a, b, !1, void 0).then(function(a) { + f ? c(f(a)) : c({ + S: !0 + }); + })["catch"](function(f) { + var c, g; + try { + c = JSON.stringify(f.Pn); + } catch (ra) {} + g = { + method: a.method, + success: f.S + }; + F.tl(c) && (g.errorData = c); + F.tl(f.T) && (g.errorSubCode = f.T); + F.tl(f.ic) && (g.errorExternalCode = f.ic); + F.tl(f.Ja) && (g.errorDetails = f.Ja); + F.tl(f.xl) && (g.errorDisplayMessage = f.xl); + b.log.error("Processing EDGE response failed", g); + f.__logs && b.log.error(f.__logs); + d(f); + }); + }); + } + + function g(a) { + return d({ + method: "ping" + }, a); + } + + function u(b) { + return O.kva ? q.Cg(a, b.profile, {}, b).then(function(a) { + return { + L2a: a.customerGUID, + S: !0 + }; + }) : d({ + method: "bind", + isExclusive: !0 + }, b, function(a) { + return { + L2a: a.customerGUID, + S: !0 + }; + }); + } + + function w(b, f) { + var c; + c = { + method: "pair", + targetuuid: b.YAa, + cticket: b.I2a, + nonce: b.Cgb, + controlleruuid: b.boa, + pairdatahmac: b.WGb + }; + return O.mva ? N.Cg(a, f.profile, c).then(function(a) { + return { + S: !0, + oab: { + nonce: a.nonce, + controlleruuid: b.boa, + controlleruserid: a.controllerUserId, + controllersharedsecret: a.controllerSharedSecret, + targetuuid: b.YAa, + targetuserid: a.targetUserId, + targetsharedsecret: a.targetSharedSecret + }, + pab: a.grantDataHmac + }; + }) : d(c, f, function(a) { + return { + S: !0, + oab: { + nonce: a.nonce, + controlleruuid: b.boa, + controlleruserid: a.controllerUserId, + controllersharedsecret: a.controllerSharedSecret, + targetuuid: b.YAa, + targetuserid: a.targetUserId, + targetsharedsecret: a.targetSharedSecret + }, + pab: a.grantDataHmac + }; + }); + } + + function l(a, b) { + u(a).then(function(a) { + b(a); + })["catch"](function(a) { + b(a); + }); + } + + function z(b, c, d) { + w(b, c).then(function(a) { + d(a); + })["catch"](function(b) { + var c, g; + g = ""; + if (b.Pn) try { + c = JSON.parse(b.Pn); + c.error_message ? g = c.error_message.replace("com.netflix.streaming.nccp.handlers.mdx.MdxException: ", "") : c.implementingClass && (g = c.implementingClass); + } catch (X) { + a.error("Failed to parse Pairing errorData", { + Pn: c + }); + } + f.La(b, E(g)); + d(b); + }); + } + + function E(a) { + switch (a) { + case "MDX_ERROR_CONTROLLER_CTICKET_EXPIRED": + return { + XQ: 5, ZQ: 21, $Q: void 0, xl: void 0, YQ: void 0 + }; + case "MDX_ERROR_CONTROLLER_REQUEST_HMAC_FAILURE": + return { + XQ: 2, ZQ: 20, $Q: void 0, xl: void 0, YQ: void 0 + }; + case "MDX_ERROR_INVALID_CONTROLLER_REQUEST": + return { + XQ: 2, ZQ: 10, $Q: void 0, xl: void 0, YQ: void 0 + }; + case "com.netflix.api.service.mdx.MdxPairDependencyCommand": + return { + XQ: 2, ZQ: 13, $Q: void 0, xl: void 0, YQ: void 0 + }; + default: + return { + XQ: 4, ZQ: 30, $Q: void 0, xl: void 0, YQ: void 0 + }; + } + } + n = c.ca.get(h.lfa); + F = c.ca.get(k.ve); + q = c.ca.get(p.bga); + N = c.ca.get(m.kga); + O = c.ca.get(r.qA); + f.La(this, { + uy: function(a) { + return d({ + method: "login" + }, a, function(a) { + return { + S: a.success, + Yt: a.accountGuid, + eh: a.profileGuid, + Xi: a.isNonMember + }; + }); }, - set: d - }, - Be: { - get: function() { - return this.rg; + K0: u, + npa: g, + ping: function(a, b) { + g(a).then(function(a) { + b(a); + })["catch"](function(a) { + b(a); + }); }, - set: d - }, - l1: { - get: function() { - return this.ip; + sDb: function(a, b) { + a = Object.assign({}, a); + a.profile = void 0; + l(a, b); }, - set: d - }, - url: { - get: function() { - return this.yb[0] && this.yb[0].url; + Ly: l, + PHb: function(a, b, f, c) { + l(Object.assign({ + Ly: b, + FU: f + }, a), c); }, - set: d - }, - readyState: { - get: function() { - return this.xe || this.yb.reduce(function(a, b) { - return Math.min(a, b.readyState); - }, Infinity); + OHb: function(a, b, f, c) { + l(Object.assign({ + Sx: b, + password: f + }, a), c); }, - set: d - }, - status: { - get: function() { - return this.Pu.WD; + jGb: z, + kGb: function(a, b, f) { + var m; + + function d(c) { + z(a, b, function(a) { + a.S ? (a.Ly = c.Ly, a.FU = c.FU, a.rgb = c.rgb, a.Tmb = c.Tmb, f(a)) : f(c); + }); + } + + function g(a) { + u(m).then(function(a) { + a && a.S ? d(a) : f(a); + })["catch"](function(b) { + a ? g(!1) : f(b); + }); + } + m = Object.assign({ + lva: a.I2a, + hfb: a.Xy, + gfb: a.Cgb, + ffb: a.MCb, + ifb: c.hk(a.QHb) + }, b); + g(!0); }, - set: d - }, - Mj: { - get: function() { - return this.Pu.TK; + xIb: function(a, b, c, d) { + F.JG(c) && !f.ab(d) && (d = c, c = void 0); + nrdp && nrdp.registration && nrdp.registration.deactivateAll(function() { + l(Object.assign({ + mfb: "GOOGLE_JWT", + sBa: b, + eh: c + }, a), d); + }); }, - set: d - }, - c_: { - get: function() { - return this.Pu.CV; + z$a: function() { + return b.oH() + 0; }, - set: d - }, - Uk: { - get: function() { - return this.Pu.aW; + OCb: function(a) { + return a + 0; }, - set: d - } - }); - b.prototype.push = function(a) { - this.yD && a.Xc(this.ph, this.yf); - this.yb.push(a); - this.iW && a.open(); - }; - b.prototype.Xc = function(a, b) { - m.prototype.Xc.call(this, a, b); - this.yb.forEach(function(c) { - c.Xc(a, b); - }); - this.yD = !0; - }; - b.prototype.rla = function() { - return this.xe === g.Va.$l; - }; - b.prototype.open = function() { - return this.iW = this.yb.every(function(a) { - return a.open(); + OEb: function(a, b) { + return d({ + method: "secret", + dates: a + }, b, function(a) { + return { + S: !0, + wHb: a.prefetchKeys + }; + }); + } }); }; - b.prototype.ze = function() { - this.yb.forEach(function(a) { - a.ze(); + }, function(g, d, a) { + var b, c, h, k; + Object.defineProperty(d, "__esModule", { + value: !0 + }); + b = a(289); + c = a(3); + h = a(399); + k = a(22); + d.lpb = function(a) { + a({ + S: !0, + storage: new b.xea(c.ca.get(h.zea), c.ca.get(k.Je)) }); }; - b.prototype.I5 = function(a) { - this.Mf = a; - this.Pu = {}; - this.xe = void 0; - return this.yb.every(function(b) { - return b.readyState !== g.Va.DONE && b.readyState !== g.Va.$l ? b.I5(a) : !0; + }, function(g, d) { + function a(a, c) { + this.bp = a; + this.Hd = c; + } + Object.defineProperty(d, "__esModule", { + value: !0 + }); + a.prototype.load = function(b, c) { + var d; + d = this; + this.bp.load(b).then(function(b) { + c && c(a.QAa(b)); + })["catch"](function(a) { + c && c(d.qC(b, a)); }); }; - b.prototype.abort = function() { - var a, b; - a = this.active; - this.xe = g.Va.$l; - this.sK = !0; - this.yl = this.pk = !1; - b = this.yb.map(function(a) { - return a.abort(); - }).every(function(a) { - return a; + a.prototype.save = function(b, c, d, g) { + var f; + f = this; + this.bp.save(b, c, d).then(function() { + g && g(a.QAa({ + key: b, + value: c + })); + })["catch"](function(a) { + g && g(f.qC(b, a)); }); - this.MN(this, a); - return b; }; - b.prototype.getResponseHeader = function(a) { + a.prototype.remove = function(a, c) { var b; - this.yb.some(function(c) { - return b = c.getResponseHeader(a); - }); - return b; - }; - b.prototype.getAllResponseHeaders = function() { - var a; - this.yb.some(function(b) { - return a = b.getAllResponseHeaders(); + b = this; + this.bp.remove(a).then(function() { + c && c({ + S: !0, + hV: a + }); + })["catch"](function(d) { + c && c(b.qC(a, d)); }); - return a; }; - b.prototype.Iw = function(a) { - this.pk || (this.pk = !0); - this.xHa || (this.xHa = !0, this.Wj = 0, this.rg = this.Ul = a.Be, this.ip = l.time.la() - this.rg, this.Rz(this)); - }; - b.prototype.xt = function(a) { - this.yl || (this.yl = !0); - this.wHa || (this.wHa = !0, this.rg = a.Be, this.ip = l.time.la() - this.rg, this.Qz(this)); - }; - b.prototype.TG = function(a) { - this.rg = a.Be; - this.xF(this); - this.Wj = this.Jc; - this.Ul = a.Be; - }; - b.prototype.wi = function(a) { - this.rg = a.Be; - this.ip = l.time.la() - this.rg; - this.complete ? (this.qf = !0, this.xe = g.Va.DONE, this.yl = this.pk = !1, this.wF(this)) : this.xF(this); - this.Wj = this.Jc; - this.Ul = a.Be; - }; - b.prototype.MA = function(a) { - this.rg = a.Be; - this.ip = l.time.la() - this.rg; - this.Pu = a; - this.xe = g.Va.bm; - this.NN(this); - }; - b.prototype.FP = function() {}; - b.prototype.oi = function() { - return this.yb[0].oi() + "-" + this.yb[this.yb.length - 1].oi(); + a.QAa = function(a) { + return { + S: !0, + data: a.value, + hV: a.key + }; }; - b.prototype.toString = function() { - return "Compound[" + this.yb.map(function(a) { - return a.toString(); - }).join(",") + "]"; + a.prototype.qC = function(a, c) { + return { + S: !1, + hV: a, + T: c.T, + Ja: c.cause ? this.Hd.ad(c.cause) : void 0 + }; }; - f.P = b; - }, function(f, c, a) { - var h, l, g, m, p, r, u, v, k; - - function b(a, b, c, d, h, f, l) { - g.call(this, a, d); - m.call(this, a, d, h, l); - this.H = b; - this.OK = c; - this.vHa = !!d.Qs; - this.hHa = !!d.Qv; - this.yB = !!d.yB; - this.BJa = d.ga; - this.Dy = (f ? "(cache)" : "") + this.ib + " header"; - this.Oy(a.url || d.url, d.offset, d.ga); - } - - function d() { - h(!1); - } - h = a(21); - c = a(71); - l = a(9).Pa; - g = a(267); - m = a(265); - p = a(173); - r = a(13); - u = a(30).Dv; - v = a(79).YT; - k = a(79).Mba; - b.prototype = Object.create(m.prototype); - c(g.prototype, b.prototype); - Object.defineProperties(b.prototype, { - track: { - get: function() { - return this.OK; - }, - set: d - }, - Qs: { - get: function() { - return this.vHa; - }, - set: d - }, - Qv: { - get: function() { - return this.hHa; - }, - set: d - }, - y4a: { - get: function() { - return this.BJa; - }, - set: d - }, - parseError: { - get: function() { - return this.vL; - }, - set: d - }, - Eoa: { - get: function() { - return this.qea; - }, - set: d - }, - o: { - get: d, - set: d - } + d.xea = a; + }, function(g, d, a) { + var b, c, h, k, f; + Object.defineProperty(d, "__esModule", { + value: !0 }); - b.prototype.H7a = function() { - if (!this.TL) return !0; - this.TL = !1; - return this.nea(); + b = a(3); + c = a(53); + h = a(22); + k = a(289); + f = a(397); + d.kpb = function(a) { + b.ca.get(c.Xl).create().then(function(c) { + a({ + S: !0, + storage: new k.xea(c, b.ca.get(h.Je)), + Hr: b.ca.get(f.Kca) + }); + })["catch"](function(b) { + a(b); + }); }; - b.prototype.Oy = function(a, b, c) { - a = new p(this.stream, this.OK, this.Dy + " (" + this.yb.length + ")", { - offset: b, - ga: c, - url: a, - location: this.location, - Ec: this.Ec, - responseType: l.Ei.el - }, this, this.V); - this.push(a); - this.pf = this.yb.reduce(function(a, b) { - return a + b.ga; - }, 0); + }, function(g, d, a) { + var b, c, h; + Object.defineProperty(d, "__esModule", { + value: !0 + }); + b = a(5); + c = a(3); + h = a(2); + a(18); + d.mpb = function(a) { + var f; + c.zd("Storage"); + f = {}; + a({ + S: !0, + storage: { + load: function(a, b) { + f.hasOwnProperty(a) ? b({ + S: !0, + data: f[a], + hV: a + }) : b({ + T: h.H.dm + }); + }, + save: function(a, b, c, d) { + c && f.hasOwnProperty(a) ? d({ + S: !1 + }) : (f[a] = b, d && d({ + S: !0, + hV: a + })); + }, + remove: function(a, c) { + delete f[a]; + c && c(b.Bb); + } + } + }); }; - b.prototype.wi = function(a) { - this.Hi = this.Hi ? u(this.Hi, a.response) : a.response; - a.lQ(); - this.nea() ? m.prototype.wi.call(this, this) : this.oca ? (this.Oy(a.url, a.offset + a.ga, this.oca), m.prototype.wi.call(this, this)) : this.NN(this); + }, function(g, d, a) { + var c, h, k, f, p, m, r, u, x, v, y, w, l, z, E, n, F, q, N, O, t, U, ga, S, T, H, X, aa, ra, Z, Q, ja, ea, ma, va, fa, Ga, Da, ub, ib, Ma, G, R, vd, ca, nb, ua, hb, Qa, cb, tb, Ta, Ua, Za, Kb, sc, Ja, ba, da, ha, sf, ka; + + function b(a, b, d, g, m) { + var h, r, v, D; + + function k(a) { + a.newValue != ua.rn.SF && a.newValue != q.Dq && (h.Pc.removeListener(k), h.TC = h.Ma.r$, h.jc.Db(ua.X.Hh)); + } + + function p(a) { + a.newValue !== ua.rn.SF && (h.Pc.removeListener(p), h.txa = T.oH()); + } + h = this; + this.fy = m; + this.uv = []; + this.Ic = new l.jd(null); + this.Te = new l.jd(null); + this.kc = new l.jd(null); + this.Pi = new l.jd(null); + this.$p = new l.jd(void 0); + this.ie = new l.jd(null); + this.Ri = new l.jd(null); + this.Crb = function(a) { + return h.Ic.set(a.newValue); + }; + this.Qrb = function(a) { + return h.Te.set(a.newValue); + }; + this.Lrb = function(a) { + return h.kc.set(a.newValue); + }; + this.Arb = function(a) { + return h.Pi.set(a.newValue); + }; + this.Krb = function(a) { + return h.$p.set(a.newValue); + }; + this.Prb = function(a) { + return h.ie.set(a.newValue); + }; + this.Brb = function(a) { + return h.Ri.set(a.newValue); + }; + this.gD = {}; + this.J9 = this.Baa = 0; + this.jc = new E.Pj(); + this.PL = {}; + this.fka = 0; + this.AP = void 0; + this.Deb = H.ca.get(ka.Wea); + this.jeb = H.ca.get(Ma.Hea); + this.T$ = !1; + this.state = new l.jd(q.sA); + this.sd = new l.jd(void 0); + this.XT = new l.jd(!1); + this.paused = new l.jd(!1); + this.muted = new l.jd(!1); + this.volume = new l.jd(z.config.E3a / 100); + this.playbackRate = new l.jd(1); + this.Pc = new l.jd(ua.rn.SF); + this.OP = new l.jd(q.Os); + this.ym = new l.jd(q.Os); + this.lj = new l.jd(q.Os); + this.dh = new l.jd(null); + this.ig = new l.jd(null); + this.U0 = new l.jd(null); + this.NI = y.THa(this); + this.YS = []; + this.Mb = []; + this.I0 = {}; + this.du = new l.jd(null); + this.TP = 0 <= fa.zca.indexOf("cast") ? H.ca.get(X.gca) : void 0; + this.vl = this.Ipa = !1; + this.spb = this.pa = this.kg = -1; + this.Awa = function() { + h.P$(); + }; + this.Vla(a, b, g || {}, z.config.Kl && A._cad_global.videoPreparer ? A._cad_global.videoPreparer.V4(a) : void 0, d); + this.log = H.qf(this); + this.Ma = H.ca.get(nb.yi); + this.JYa = H.ca.get(S.Nba)(this); + this.sf = vd.createElement("DIV", "position:relative;width:100%;height:100%;overflow:hidden", void 0, { + id: this.R + }); + this.Qbb(); + r = H.ca.get(Ja.Ew)(aa.hh(1)); + this.aTa = H.ca.get(Qa.Vea); + this.Dva = H.ca.get(hb.tY); + this.C8 = this.Dva.ylb(this.ka, this.Tm); + this.addEventListener = this.jc.addListener; + this.removeEventListener = this.jc.removeListener; + this.fireEvent = this.jc.Db; + this.Td = this.log.S1("Playback"); + this.y7 = new N.BKa(this); + this.cjb = f.tNa(this); + this.z2 = u.LNa(); + this.tJ = !!z.config.mCa && !(this.ka % z.config.mCa); + this.If = { + MovieId: this.R, + TrackingId: this.Qf, + Xid: this.ka + }; + q.sY.BNa = this.log; + q.hN || (q.sY.hN = this.log); + this.Td.info("Playback created", this.If); + this.tJ ? this.Td.info("Playback selected for trace playback info logging") : this.Td.trace("Playback not selected for trace playback info logging"); + z.config.Kl && A._cad_global.videoPreparer && (A._cad_global.videoPreparer.Eab(this.R), this.addEventListener(ua.X.Hh, function() { + A._cad_global.videoPreparer.Fab(h.R); + h.kc.addListener(function() { + A._cad_global.videoPreparer.lsa(); + }); + h.Ic.addListener(function() { + A._cad_global.videoPreparer.lsa(); + }); + }), this.addEventListener(ua.X.Ce, function() { + A._cad_global.videoPreparer.Dab(h.R); + })); + this.state.addListener(function(a) { + h.Td.info("Playback state changed", { + From: a.oldValue, + To: a.newValue + }); + ea.sa(a.newValue > a.oldValue); + }); + F.ee.addListener(F.uk, this.Awa, w.fY); + this.sd.addListener(function() { + r.nb(function() { + return h.vqa(); + }); + }); + D = !1; + this.paused.addListener(function(a) { + var b; + b = h.gb; + !a.c8 && b && (!0 === a.newValue ? b.paused && b.paused() : b.IBa && b.IBa()); + a.newValue || (D = !1); + h.Td.info("Paused changed", { + From: a.oldValue, + To: a.newValue, + MediaTime: ma.Mg(h.sd.value) + }); + }); + this.Pc.addListener(function(a) { + h.Td.info("PresentingState changed", { + From: a.oldValue, + To: a.newValue, + MediaTime: ma.Mg(h.sd.value) + }, h.pD()); + }); + this.Pc.addListener(function() { + h.XT.set(h.Pc.value === ua.rn.xf); + }); + this.OP.addListener(function(a) { + h.Td.info("BufferingState changed", { + From: a.oldValue, + To: a.newValue, + MediaTime: ma.Mg(h.sd.value) + }, h.pD()); + }); + this.ym.addListener(function(a) { + h.Td.info("AV BufferingState changed", { + From: a.oldValue, + To: a.newValue, + MediaTime: ma.Mg(h.sd.value) + }, h.pD()); + }); + this.lj.addListener(function(a) { + h.Td.info("Text BufferingState changed", { + From: a.oldValue, + To: a.newValue, + MediaTime: ma.Mg(h.sd.value) + }, h.pD()); + }); + this.Ic.addListener(function(a) { + ea.sa(a.newValue); + h.Td.info("AudioTrack changed", a.newValue && { + ToBcp47: a.newValue.yj, + To: a.newValue.Tb + }, a.oldValue && { + FromBcp47: a.oldValue.yj, + From: a.oldValue.Tb + }, { + MediaTime: ma.Mg(h.sd.value) + }); + }); + this.Te.addListener(function() { + for (var a = h.cy(), b = a.length, f = 0; f < b; f++) a[f].lower = a[f - 1], a[f].Zab = a[f + 1]; + }); + this.kc.addListener(function(a) { + h.Td.info("TimedTextTrack changed", a.newValue ? { + ToBcp47: a.newValue.yj, + To: a.newValue.Tb + } : { + To: "none" + }, a.oldValue ? { + FromBcp47: a.oldValue.yj, + From: a.oldValue.Tb + } : { + From: "none" + }, { + MediaTime: ma.Mg(h.sd.value) + }); + }); + this.Mb[c.gc.G.AUDIO] = new l.jd(null); + this.Mb[c.gc.G.VIDEO] = new l.jd(null); + this.Pc.addListener(p, w.mA); + this.Pc.addListener(k); + this.addEventListener(ua.X.Hh, function() { + var a, b, f, c; + h.T$ = !0; + h.cK = va.Bl(h.by()); + h.he("start"); + a = h.ig.value; + b = A._cad_global.prefetchEvents; + if (b) { + f = aa.rb(h.Cl ? h.Cl.audio : 0); + c = aa.rb(h.Cl ? h.Cl.video : 0); + b.Hk(h.R, h.ka, "notcached" !== h.ku, "notcached" !== h.Cx, !!h.Cl, f, c); + } + h.kS = a.stream.O; + }); + ga.ANa(this); + q.Cq.push(this); + z.config.yK && (this.TT = new ca.ENa(this), this.njb = new O.INa(this)); + q.wga.forEach(function(a) { + a(h); + }); + this.hXa = function(a) { + var b, f; + h.addEventListener(ua.X.mz, function(b) { + b = b.cause; + b !== ua.Ng.mF && b !== ua.Ng.wA && a.stop(); + }); + h.addEventListener(ua.X.Rp, function(b) { + var f, c, d, g, m; + f = b.cause; + c = b.skip; + d = b.V7; + g = b.AT; + m = b.na; + b = b.Jn; + f !== ua.Ng.wA && (z.config.r7a && f === ua.Ng.MY && h.Ok.W0(), f !== ua.Ng.mF && (c ? a.SP(d) ? (h.Td.trace("Repositioned. Skipping from " + g + " to " + d), a.Kj(d), a.play()) : h.log.error("can skip returned false") : (h.Td.trace("Repositioned. Seeking from " + g + " to " + d), a.HU(b, m)))); + }); + a.addEventListener("segmentStarting", function(a) { + h.fireEvent(ua.X.enb, a); + }); + a.addEventListener("lastSegmentPts", function(a) { + h.fireEvent(ua.X.bnb, a); + }); + a.addEventListener("segmentPresenting", function(a) { + h.fireEvent(ua.X.f$, a); + }); + a.addEventListener("segmentAborted", function(a) { + h.fireEvent(ua.X.$mb, a); + }); + b = "boolean" === typeof h.Ta.jC ? h.Ta.jC : z.config.jC; + f = H.ca.get(Za.Sha); + a.addEventListener("manifestPresenting", function(a) { + h.dza(); + h.TC = h.Ma.r$; + b && f.jC(h); + h.fireEvent(ua.X.e7, a); + }); + a.addEventListener("skip", function(a) { + h.fireEvent(ua.X.Kj, a); + }); + a.addEventListener("error", function(a) { + "NFErr_MC_StreamingFailure" === a.error && (h.Td.trace("receiving an unrecoverable streaming error: " + JSON.stringify(a)), h.Td.trace("StreamingFailure, buffer status:" + JSON.stringify(h.pD())), z.config.M6a && !h.T$ && Ga.hb(function() { + var b; + b = H.ca.get(x.Sj); + h.md(b(ra.I.JCa, { + T: a.nativeCode, + Ja: a.errormsg, + Bh: a.httpCode, + rT: a.networkErrorCode + })); + })); + }); + a.addEventListener("maxvideobitratechanged", function(a) { + h.YS.push(a); + }); + a.addEventListener("bufferingStarted", function() { + h.ym.set(q.Os); + }); + a.addEventListener("locationSelected", function(a) { + h.fireEvent(ua.X.av, a); + }); + a.addEventListener("serverSwitch", function(a) { + var b; + h.fireEvent(ua.X.MU, a); + "video" === a.mediatype ? b = c.gc.G.VIDEO : "audio" === a.mediatype && (b = c.gc.G.AUDIO); + Da.ab(b) && h.Jnb(a.server, b); + }); + a.addEventListener("bufferingComplete", function(b) { + h.Td.trace("Buffering complete", { + Cause: "ASE Buffering complete", + evt: b + }, h.pD()); + h.Bm = b; + h.ym.set(q.Vk); + v || (v = !0, h.he("pb")); + a.play(); + }); + a.addEventListener("audioTrackSwitchStarted", function() { + a.phb(); + h.paused.value || (D = !0, h.paused.set(!0, { + c8: !0 + })); + }); + a.addEventListener("audioTrackSwitchComplete", function() { + h.paused.value && D && (D = !1, h.paused.set(!1, { + c8: !0 + })); + h.Gh.Ugb(); + }); + a.addEventListener("endOfStream", function(a) { + h.Gh.d8(a); + }); + a.addEventListener("asereportenabled", function() { + h.vl = !0; + }); + a.addEventListener("asereport", function(a) { + h.fireEvent(ua.X.CP, a); + }); + a.addEventListener("aseexception", function(a) { + h.fireEvent(ua.X.BP, a); + }); + a.addEventListener("hindsightreport", function(a) { + var b, f; + b = Da.ja(h.Hf) ? 0 : h.Hf; + f = a.report; + f && f.length && f.forEach(function(a) { + a.bst -= b; + a.pst -= b; + void 0 === a.nd && a.tput && (a.tput.ts -= b); + }); + h.m5 = { + Wlb: f, + obb: a.hptwbr, + Msa: a.htwbr, + NT: a.pbtwbr + }; + a.rr && (h.m5.iza = a.rr); + a.ra && (h.m5.Hkb = a.ra); + }); + a.addEventListener("streamingstat", function(a) { + var b; + b = a.bt; + h.pa = a.location.bandwidth; + h.kg = a.location.httpResponseTime; + h.spb = a.stat.streamingBitrate; + b && (void 0 === h.Ax && (h.Ax = { + interval: z.config.FB, + startTime: b.startTime, + kr: [], + Ls: [] + }), h.Ax.kr = h.Ax.kr.concat(b.kr), h.Ax.Ls = h.Ax.Ls.concat(b.Ls)); + a.psdConservCount && (h.Wxa = a.psdConservCount); + }); + z.config.DWa && a.addEventListener("currentStreamInfeasible", function(a) { + h.Gp.rBb(a.newBitrate); + }); + a.addEventListener("headerCacheDataHit", function(a) { + a.movieId === "" + h.R && (h.Cl = a); + }); + a.addEventListener("startEvent", function(a) { + A._cad_global.prefetchEvents && "adoptHcdEnd" === a.event && A._cad_global.prefetchEvents.jH(Z.Xd.xi.MEDIA, h.R); + }); + a.addEventListener("requestComplete", function(a) { + (a = (a = a && a.mediaRequest) && a.qH && a.qH.cadmiumResponse) && h.fireEvent(ua.X.RH, { + response: a + }); + }); + a.addEventListener("streamSelected", function(a) { + var b, f; + a.mediaType === c.gc.G.VIDEO ? (f = h.vsa(a.streamId), b = h.ie) : a.mediaType === c.gc.G.AUDIO && (f = h.psa(a.streamId), b = h.Ri); + f && b ? b.set(f, { + una: a.movieTime, + EYa: a.bandwidth + }) : h.Td.error("not matching stream for streamSelected event", { + streamId: a.streamId + }); + }); + a.addEventListener("logdata", function(a) { + var b, f; + if ("string" === typeof a.target && "object" === typeof a.fields) { + b = h.gD[a.target]; + f = Da.ja(h.Hf) ? h.Hf : 0; + b || (b = h.gD[a.target] = {}); + Object.keys(a.fields).forEach(function(c) { + var d, g, m, k; + d = a.fields[c]; + if ("object" !== typeof d || null === d) b[c] = d; + else { + g = d.type; + if ("count" === g) void 0 === b[c] && (b[c] = 0), ++b[c]; + else if (void 0 !== d.value) + if ("array" === g) { + g = b[c]; + m = d.adjust; + k = d.value; + g || (g = b[c] = []); + m && 0 < m.length && m.forEach(function(a) { + k[a] -= f || 0; + }); + g.push(k); + } else "sum" === g ? (void 0 === b[c] && (b[c] = 0), b[c] += d.value) : b[c] = d.value; + else b[c] = d; + } + }); + } + }); + }; + this.Ic.addListener(function(a) { + var b; + if (h.gb) + if (a.tu && a.tu.reset) h.Td.trace("ASE previously rejected the audio track switch, resetted!"); + else { + b = a.newValue; + h.gb.Vpb({ + BB: b.jy, + toJSON: function() { + return b.If; + } + }) ? h.Td.trace("ASE accepted the audio track switch") : (h.Td.trace("ASE rejected the audio track switch"), a.oldValue.jy !== b.jy && h.Ic.set(a.oldValue, { + reset: !0 + })); + } + }); + this.addEventListener(ua.X.GB, function(a) { + a.cause == q.sga && (h.OP.set(q.Os), h.gb.urb(h.Gh.qra())); + }); + } + Object.defineProperty(d, "__esModule", { + value: !0 + }); + c = a(60); + h = a(187); + k = a(179); + f = a(178); + p = a(125); + m = a(278); + r = a(555); + u = a(276); + x = a(63); + v = a(554); + y = a(274); + w = a(5); + l = a(175); + z = a(9); + E = a(68); + n = a(273); + F = a(55); + q = a(41); + N = a(94); + O = a(272); + t = a(271); + U = a(551); + ga = a(267); + S = a(293); + T = a(21); + H = a(3); + X = a(218); + aa = a(4); + ra = a(2); + Z = a(114); + Q = a(22); + ja = a(217); + ea = a(12); + ma = a(95); + va = a(18); + fa = a(33); + Ga = a(42); + Da = a(15); + ub = a(93); + ib = a(266); + Ma = a(328); + G = a(131); + R = a(174); + vd = a(17); + ca = a(265); + nb = a(37); + a(127); + a(56); + a(166); + ua = a(16); + hb = a(180); + Qa = a(393); + cb = a(550); + tb = a(185); + Ta = a(61); + Ua = a(107); + Za = a(294); + Kb = a(24); + sc = a(45); + Ja = a(85); + ba = a(19); + da = a(105); + ha = a(177); + sf = a(263); + a(83); + ka = a(379); + b.prototype.Qbb = function() { + var a; + a = this; + this.Ic.addListener(function(b) { + return a.Ba.Ic.set(b.newValue); + }); + this.Te.addListener(function(b) { + return a.Ba.Te.set(b.newValue); + }); + this.kc.addListener(function(b) { + return a.Ba.kc.set(b.newValue); + }); + this.Pi.addListener(function(b) { + return a.Ba.Pi.set(b.newValue); + }); + this.$p.addListener(function(b) { + return a.Ba.$p.set(b.newValue); + }); + this.ie.addListener(function(b) { + return a.Ba.ie.set(b.newValue); + }); + this.Ri.addListener(function(b) { + return a.Ba.Ri.set(b.newValue); + }); + this.dza(); + }; + b.prototype.dza = function() { + this.Ba !== this.g$ && (this.Pz(function(a) { + return a.Ic; + }, this.Crb), this.Pz(function(a) { + return a.Te; + }, this.Qrb), this.Pz(function(a) { + return a.$p; + }, this.Krb), this.Pz(function(a) { + return a.kc; + }, this.Lrb), this.Pz(function(a) { + return a.Pi; + }, this.Arb), this.Pz(function(a) { + return a.ie; + }, this.Prb), this.Pz(function(a) { + return a.Ri; + }, this.Brb), this.kc.set(this.Ba.kc.value), this.Ic.set(this.Ba.Ic.value), this.Te.set(this.Ba.Te.value), this.Pi.set(this.Ba.Pi.value), this.$p.set(this.Ba.$p.value), this.ie.set(this.Ba.ie.value), this.Ri.set(this.Ba.Ri.value), this.g$ = this.Ba); + }; + b.prototype.Pz = function(a, b) { + this.g$ && a(this.g$).removeListener(b); + a(this.Ba).addListener(b); }; - b.prototype.nea = function() { - var a, b, c; - b = void 0 !== this.Fx ? this.Fx : this.H.Fx; - c = void 0 !== this.tv ? this.tv : this.H.tv; - this.O === r.G.VIDEO && b ? a = b : this.O === r.G.AUDIO && c && (a = c); - a = new v(this.stream, this.Hi, ["sidx"], this.O === r.G.VIDEO && this.H.Rv || this.O === r.G.AUDIO && this.H.Sp, { - truncate: this.$m, - Pt: a, - dNa: this.O === r.G.AUDIO, - d6: this.H.d6, - xX: this.H.xX, - ZP: this.H.ZP - }); - a.addEventListener("error", this.AIa.bind(this)); - a.addEventListener("requestdata", this.FIa.bind(this)); - a.addEventListener("fragments", this.BIa.bind(this)); - a.addEventListener("vmafs", this.HIa.bind(this)); - a.addEventListener("sampledescriptions", this.GIa.bind(this)); - a.addEventListener("drmheader", this.zIa.bind(this)); - a.addEventListener("nflxheader", this.EIa.bind(this)); - a.addEventListener("keyid", this.DIa.bind(this)); - a.addEventListener("free", this.CIa.bind(this)); - a.addEventListener("done", this.yIa.bind(this)); - a.parse(); - this.xL && (this.stream.T = this.tl, (this.If || this.bda) && this.stream.y9a(this.If || new k(this.bda, this.ZD)), this.stream.T.spa(this.stream.bc, this.rL, this.oy, this.pca), this.pca = this.oy = this.rL = void 0); - return this.xL; - }; - b.prototype.AIa = function(a) { - this.xL = !1; - this.vL = a.errormsg; - }; - b.prototype.FIa = function(a) { - this.xL = !1; - this.oca = a.bytes; - }; - b.prototype.BIa = function(a) { - this.tl = a.fragments; - this.rL = a.movieDataOffsets; - this.oy = a.additionalSAPs; - this.pca = a.additionalSAPsTimescale; - this.TL = a.truncated; - this.bda = a.defaultSampleDuration; - this.ZD = a.timescale; - }; - b.prototype.HIa = function(a) { - this.lfa = a.vmafs; - }; - b.prototype.GIa = function(a) { - a.framelength && a.samplerate && (this.If = new k(a.framelength, a.samplerate)); - }; - b.prototype.zIa = function(a) { + b.prototype.load = function(a) { var b; - b = this.xy || {}; - b.source = "mp4"; - b.ii = a.drmType; - b.pi = a.header; - this.xy = b; + b = this; + this.load = function() {}; + this.Axa = a; + this.state.value == q.sA && (this.log.info("Playback loading", this), this.Ngb(), this.he("asl_load_start"), Da.ab(ba.JS) ? Da.ab(ba.A6) ? this.he("asl_ended") : this.he("asl_in_progress") : this.he("asl_not_started"), ba.qJ(function(a) { + b.he("asl_load_complete"); + a.S ? b.c2a() : b.po(a.errorCode || ra.I.Gda, a); + })); + }; + b.prototype.wjb = function() { + var a; + try { + if (this.state.value == q.Yk) { + this.D8 = aa.rb(this.Fa.duration); + a = { + width: 1, + height: 1 + }; + this.cy().forEach(function(b) { + a.width * a.height < b.width * b.height && (a.width = b.width, a.height = b.height); + }); + this.LE = a; + this.sr = H.ca.get(ja.eM).c0({ + FE: aa.rb(this.sr), + R: this.R, + eK: this.Hx, + Ta: this.Ta + }).ma(aa.Aa); + this.sma(); + this.F2a(); + } + } catch (tf) { + this.po(ra.I.yIa, { + T: ra.H.qg, + Ja: va.ad(tf) + }); + } }; - b.prototype.EIa = function(a) { - this.bW = a.header; + b.prototype.Vla = function(a, b, f, c, d) { + var g; + c = void 0 === c ? this.fy.wH() : c; + d = void 0 === d ? aa.rb(T.yc()) : d; + g = this.uv.length; + this.uv.push(new cb.HNa(q.sY.zNa++, g, a, b, f, c, d, this.Ba)); + return g; }; - b.prototype.DIa = function(a) { + b.prototype.f4 = function(a) { var b; - b = this.xy || {}; - b.jha = a.keyId; - b.c0a = (b.c0a || []).concat(a.offset); - b.upb = a.flipped; - this.xy = b; + if (z.config.N2) return h.Wna.e4(a); + a = a || w.Qb; + b = { + success: !1, + name: null, + isCongested: null + }; + a(b); + return b; }; - b.prototype.CIa = function(a) { - this.kda = a.data; + b.prototype.GC = function(a) { + return this.uv[a]; }; - b.prototype.yIa = function(a) { - var b; - this.xL = !0; - b = a.moovEnd; - this.qea = a.parsedEnd; - this.Hi = this.Hi.slice(0, b || this.qea); + b.prototype.a$a = function(a) { + return this.uv.find(function(b) { + b = b.dg; + return !!b && !!b.Tta && b.Tta.sessionId === a; + }) || this; }; - f.P = b; - }, function(f, c, a) { - var h, l; - - function b(a, b) { - l.call(this, a, b); - this.Hi = b.hq; - this.tl = b.T; - this.lfa = b.en; - this.xy = b.Ti; - this.bW = b.W2; - this.kda = b.DN; - this.TL = !!b.$m; - } - - function d() { - h(!1); - } - h = a(21); - l = a(174); - a(117); - a(13); - a(30); - a(79); - b.prototype = Object.create(l.prototype); - Object.defineProperties(b.prototype, { - zc: { - get: function() { - return !0; - }, - set: d - }, - data: { - get: function() { - return this.Hi; - }, - set: d - }, - hq: { - get: function() { - return this.Hi; - }, - set: d - }, - T: { - get: function() { - return this.stream.T; - }, - set: d - }, - en: { - get: function() { - return this.lfa; - }, - set: d - }, - Ti: { - get: function() { - return this.xy; - }, - set: d - }, - W2: { - get: function() { - return this.bW; - }, - set: d - }, - DN: { - get: function() { - return this.kda; - }, - set: d - }, - $m: { - get: function() { - return this.TL; - }, - set: d - }, - MTa: { - get: function() { - return !(!this.xy && !this.bW); - }, - set: function() { - h(!1); - } - } - }); - b.prototype.lMa = function(a) { - h(this.Hc.ib == a.ib); - a.T || (a.T = this.T, this.bc && (a.If = this.bc), a.T.spa(a.bc)); - !a.location && this.Hc.location && (a.location = this.Hc.location, a.Wb = this.Hc.Wb, a.HH = this.Hc.HH, a.url = this.Hc.url, a.ma = this.Hc.ma); - this.Hc = a; - }; - f.P = b; - }, function(f, c, a) { - var g, m, p, r, u, v; - - function b(a, b, c, d, g, h, f, l, p) { - this.vGa = a; - this.zn = b; - this.Nu = c; - this.PL = d; - this.Wu = p; - this.stream = h; - f instanceof ArrayBuffer ? (this.data = f, this.offset = 0, this.lZ = f.byteLength) : (this.data = f.data, this.offset = f.offset || 0, this.lZ = f.length || this.data.byteLength); - this.level = p ? p.level + 1 : 0; - this.qE = {}; - this.IB = void 0; - g && (this.ic = {}); - this.config = l || {}; - this.truncate = this.config.truncate; - this.Pt = this.config.Pt; - this.a5a = this.offset; - this.YG = this.a5a + this.lZ; - this.view = new DataView(this.data); - this.zw = this.nM = 0; - } - - function d(a, b, c) { - return { - type: "done", - ctxt: c, - moovEnd: a, - parsedEnd: b - }; - } - - function h(a, c, d, h, f, l) { - var m; - h = h ? [r.bU, r.aU] : void 0; - m = Object.create(p.ic); - f && f.d6 && g(p.Gbb, m); - f && f.dNa && g(p.eNa, m); - b.call(this, m, d, h, ["moof", r.A$], !1, a, c, f, l); - } - - function l(a, c, d) { - b.call(this, p.ic, void 0, void 0, void 0, !0, a, c, void 0, d); - } - a(21); - g = a(44); - c = a(31).EventEmitter; - m = new(a(9)).Console("MP4", "media|asejs"); - p = a(269); - r = a(175); - u = a(68).Nca; - v = a(68).Mca; - a(68); - b.prototype = Object.create(c); - b.prototype.constructor = b; - Object.defineProperties(b.prototype, { - O: { - get: function() { - return this.stream.O; - } - }, - url: { - get: function() { - return this.stream.url; - } - }, - profile: { - get: function() { - return this.stream.profile; - } - }, - J: { - get: function() { - return this.stream.J; - } - } - }); - b.prototype.wc = function(a) { - m.trace("MP4" + (void 0 !== this.level ? "." + this.level : ":") + ":" + a); + b.prototype.Ckb = function(a) { + var b, f; + b = this; + f = this.GC(a); + return this.Gza(f).then(function(a) { + if (!b.gb) throw Error("No streaming session"); + b.JT(a, f); + b.gb.KG(f.Fa, { + Gs: [f.Ob.Toa, f.Ob.Xoa], + replace: !1, + U: f.Ta.U, + ea: f.Ta.ea, + G8: !0, + NB: !f.Vu + }); + return b.jb.Yi.$za("cenc", f).then(function() { + return b.gb.LQ("" + f.R); + }); + })["catch"](function(a) { + return b.log.error("send manifest request failed", a); + }); }; - b.prototype.ba = function(a) { - m.warn("MP4" + (void 0 !== this.level ? "." + this.level : ":") + ":" + a); + b.prototype.he = function(a) { + this.C8.ll(a); }; - b.prototype.uRa = function(a, b, c) { - var d; - d = this.vGa[a]; - if (d) return new d(this, a, b, c); + b.prototype.e8a = function() { + if (Da.ja(this.ud.ats) && Da.ja(this.ud.at)) return this.ud.at - this.ud.ats; }; - b.prototype.eqa = function(a) { - for (var b in a) a.hasOwnProperty(b) && (this.qE[b] = a[b], this.PL && -1 !== this.PL.indexOf(b) && (void 0 === this.IB || a[b].offset < this.IB) && (this.IB = a[b].offset)); + b.prototype.ara = function() { + var a, b; + a = this.OL(); + b = this.VG(); + return Math.min(a, b); }; - b.prototype.parse = function(a) { - var b, c, d, g; - for (this.wj = a;;) { - b = function(a, b, c, d, g) { - var h; - if (a) { - h = a.indexOf(b); - 1 != h && (g.wc(d + " box " + b + " found at offset: 0x" + c.toString(16)), a.splice(h, 1)); - } - }; - this.xv = this.offset; - if (8 > this.YG - this.xv) { - this.zn && 0 < this.zn.length && this.Qea(); - break; - } - this.XX = this.Ua(); - c = this.Ua(); - d = u(c); - if (0 === this.XX) { - this.vL("MP4: invalid zero length box"); - break; - } - if (null === d) { - this.vL("MP4: invalid box type: " + c); - break; - } - c = this.xv + this.XX; - if (c > this.YG) { - this.wc("more data needed: 0x" + c.toString(16) + " > 0x" + this.YG.toString(16)); - this.Qea(d, c); - break; - } - "uuid" === d && (d = this.QD()); - if (this.PL && -1 !== this.PL.indexOf(d)) { - this.IB = this.xv; - break; - } - g = this.uRa(d, this.xv, this.XX); - if (g) { - if (!g.parse(a)) { - this.wc("box parser failed: " + d); - break; - } - this.ic && (void 0 === this.ic[d] && (this.ic[d] = []), this.ic[d].push(g)); - } - b(this.Nu, d, this.xv, "desired", this); - b(this.zn, d, this.xv, "required", this); - if (this.zn && 0 === this.zn.length && !(this.Nu && this.Nu.length && this.Nu.some(function(a) { - return this.qE[a]; - }.bind(this)))) return this.wc("done: moov end offset: " + this.M2 + ", parsing end offset: " + c), this.oea(this.M2, c), !0; - this.offset = c; - if (this.IB === this.offset) break; - } - if (this.offset >= this.IB || this.offset > this.YG - 8) return this.oea(this.M2, this.offset), !0; - this.offset = this.xv; - return !1; + b.prototype.s9a = function() { + if (Da.ja(this.ud.shs) && Da.ja(this.ud.sh)) return this.ud.sh - this.ud.shs; }; - b.prototype.Qea = function(a, b) { - a ? (this.zn && this.zn.length && (1 < this.zn.length || this.zn[0] !== a) ? b = this.ykb || b + 4096 : this.Nu && this.Nu.length && (b = this.Nu.filter(function(a) { - return this.qE[a]; - }.bind(this)).reduce(function(a, b) { - return Math.max(a, this.qE[b].offset + this.qE[b].size || 0); - }.bind(this), b)), this.pea(b - this.YG)) : this.pea(4096); + b.prototype.YK = function() { + this.background || (this.Td.info("Starting inactivity monitor for movie " + this.R), new n.SIa(this)); }; - b.prototype.vL = function(a) { - this.ba("ERROR: " + a); - a = { - type: "error", - ctxt: this.wj, - errormsg: a - }; - this.Ha(a.type, a); + b.prototype.close = function(a) { + a && (this.state.value == q.IF ? a() : this.addEventListener(ua.X.closed, function() { + a(); + })); + this.P$(); }; - b.prototype.oea = function(a, b) { - var c; - if (this.en) { - c = { - type: "vmafs", - ctxt: this.wj, - vmafs: this.en + b.prototype.md = function(a, b) { + var f, c, d; + f = this; + if (this.state.value == q.sA) this.Ch || (this.Ch = a, this.load()); + else { + b && (this.state.value == q.IF ? b() : this.addEventListener(ua.X.closed, function() { + b(); + })); + c = function() { + f.P$(a); }; - this.Ha(c.type, c); + d = z.config.Zoa && a && z.config.Zoa[a.errorCode]; + Da.Uu(d) && (d = va.Bd(d)); + this.Td.error("Fatal playback error", { + Error: "" + a, + HandleDelay: "" + d + }); + 0 <= d ? setTimeout(c, d) : c(); } - this.T && (c = { - type: "fragments", - ctxt: this.wj, - fragments: this.T, - truncated: this.$m, - movieDataOffsets: this.vP, - additionalSAPs: this.Fh, - additionalSAPsTimescale: this.gMa || this.T.jb, - timescale: this.jb, - defaultSampleDuration: this.XE - }, this.Ha(c.type, c)); - c = d(a, b, this.wj); - this.Ha(c.type, c); - }; - b.prototype.pea = function(a) { - a = { - type: "requestdata", - ctxt: this.wj, - bytes: a - }; - this.Ha(a.type, a); }; - b.prototype.Wr = function(a) { - if (this.Wu) this.Wu.o.Wr(a); - else - for (var b in a) this[b] = a[b]; + b.prototype.BL = function() { + this.jc.Db(ua.X.BL); }; - b.prototype.Ue = function(a) { - for (; this.zw < a;) this.nM = (this.nM << 8) + this.Te(), this.zw += 8; - this.zw -= a; - return this.nM >>> this.zw & (1 << a) - 1; + b.prototype.t7a = function() { + this.vqa(); }; - b.prototype.Te = function() { + b.prototype.A4 = function() { var a; - a = this.view.getUint8(this.offset); - this.offset += 1; - return a; + a = this.gb; + return a && (a = a.la.ej.qa.id, void 0 !== a) ? a : null; }; - b.prototype.Md = function(a) { - a = this.view.getUint16(this.offset, a); - this.offset += 2; - return a; + b.prototype.ay = function() { + return void 0 !== this.$na && void 0 === this.gb ? this.$na : this.EI(this.sd.value); }; - b.prototype.Ua = function(a) { - a = this.view.getUint32(this.offset, a); - this.offset += 4; - return a; + b.prototype.z4 = function() { + return this.EI(this.Gh.qra()); }; - b.prototype.sW = function() { + b.prototype.BR = function() { var a; - a = this.view.getInt32(this.offset, void 0); - this.offset += 4; - return a; + a = this.Fa.choiceMap; + if (a) return a.segments; }; - b.prototype.zk = function(a, b, c) { - this.view.setUint32(void 0 !== c ? c : this.offset, a, b); - this.offset += 4; + b.prototype.Hrb = function(a) { + this.Ta = G.xfb(this.Ta, a); + this.sma(); }; - b.prototype.nfa = function(a) { - this.view.setInt32(this.offset, a, void 0); - this.offset += 4; + b.prototype.cy = function() { + return this.Te.value ? this.Te.value.qc : []; }; - b.prototype.FJa = function(a, b) { - var c; - c = this.view.getUint32(this.offset + (a ? 4 : 0), a); - a = this.view.getUint32(this.offset + (a ? 0 : 4), a); - !b && c & 1 && this.ba("Warning: read unsigned value > 56 bits"); - return 4294967296 * c + a; + b.prototype.Kab = function(a) { + var f; + for (var b = 0; b < this.uv.length; b++) { + f = this.GC(b).$h; + if (f = f && f.find(function(b) { + return b.id === a; + })) return f; + } }; - b.prototype.Ch = function(a, b) { - a = this.FJa(a, b); - this.offset += 8; - return a; + b.prototype.psa = function(a) { + var f; + for (var b = 0; b < this.uv.length; b++) { + f = this.GC(b).Ic.value; + if (f = f && f.qc.find(function(b) { + return b.pd === a; + })) return f; + } + }; + b.prototype.vsa = function(a) { + var f; + for (var b = 0; b < this.uv.length; b++) { + f = this.GC(b).Te.value; + if (f = f && f.qc.find(function(b) { + return b.pd === a; + })) return f; + } + }; + b.prototype.Ln = function() { + var a, b, f, d, g, m, k; + a = this; + b = void 0; + f = a.cy().filter(function(f) { + var c; + c = a.y7.zs(f); + c && (b = b || [], b.push({ + stream: f, + ZB: c + })); + return !c; + }); + 0 === f.length && this.log.error("FilteredVideoStreamList is empty. Media stream filters are not setup correctly."); + for (var c = 0; c < f.length; c++) f[c].lower = f[c - 1], f[c].Zab = f[c + 1]; + if (a && a.gb) { + d = []; + a.cy().forEach(function(a) { + -1 == d.indexOf(a.Me) && d.push(a.Me); + }); + g = null; + m = null; + f.forEach(function(a) { + null === g ? m = g = a.O : m < a.O ? m = a.O : g > a.O && (g = a.O); + }); + k = []; + d.forEach(function(a) { + var f; + f = { + ranges: [] + }; + f.profile || (f.profile = a); + g && m && (f.ranges.push({ + min: g, + max: m + }), b && (f.disallowed = b.filter(function(b) { + return b.stream.Me === a; + })), k.push(f)); + }); + a.gb.SU(k); + } + return f; + }; + b.prototype.QC = function(a) { + var b; + b = this; + va.pc(a, function(a, f) { + b.C8.ll(a, aa.rb(f - b.Tm.ma(aa.Aa))); + }); + }; + b.prototype.RU = function(a) { + this.Iz = a; + }; + b.prototype.Fcb = function() { + return "trailer" === this.uc; + }; + b.prototype.pta = function() { + return !!this.uc && 0 <= this.uc.indexOf("billboard"); + }; + b.prototype.Jcb = function() { + return !!this.uc && 0 <= this.uc.indexOf("video-merch"); + }; + b.prototype.XC = function() { + return this.Fcb() || this.pta() || this.Jcb(); + }; + b.prototype.p$a = function() { + return { + tr: this.Baa, + rt: this.J9 + }; + }; + b.prototype.Qr = function(a) { + return this.gD[a]; + }; + b.prototype.CZa = function() { + return this.Iz ? T.yc() - this.Iz : T.oH() - this.xR(); + }; + b.prototype.JZa = function() { + var a; + if (this.Iz) return T.yc() - this.Iz; + a = H.ca.get(Kb.Ue).bD; + return this.txa - (this.Tm.ma(aa.Aa) + a.ma(aa.Aa)); + }; + b.prototype.IZa = function() { + return this.Iz ? T.yc() - this.Iz : this.txa - this.xR(); }; - b.prototype.GJa = function() { + b.prototype.Ggb = function(a) { + var b, f; + b = this.Hf; + f = {}; + va.pc(a, function(a, c) { + f[a] = c.map(function(a) { + return a - b; + }); + }); + return f; + }; + b.prototype.m8a = function() { var a, b; - a = this.view.getInt32(this.offset + 0, void 0); - b = this.view.getUint32(this.offset + 4, void 0); - (0 < a ? a : -a) & 1 && this.ba("Warning: read signed value > 56 bits"); - return 4294967296 * a + b; + a = this.Hf; + b = {}; + va.pc(this.I0, function(f, c) { + b[f] = c.map(function(b) { + return b - a; + }); + }); + return m.qr ? { + level: m.qr.yra(), + charging: m.qr.b4(), + statuses: b + } : null; + }; + b.prototype.OR = function() { + this.uqa(); + return this.PL; }; - b.prototype.VJa = function() { + b.prototype.xR = function() { var a; - a = this.GJa(); - this.offset += 8; + a = this.Ta.CV; + a = Da.ja(a) ? a : this.Tm.ma(aa.Aa) + T.E_a(); + ea.sa(Da.Tu(a)); return a; }; - b.prototype.nLa = function(a, b) { - var c; - c = Math.floor(a / 4294967296); - a &= 4294967295; - void 0 !== b ? (this.view.setUint32(b, c, !1), this.view.setUint32(b + 4, a, !1)) : (this.view.setUint32(this.offset, c, !1), this.offset += 4, this.view.setUint32(this.offset, a, !1), this.offset += 4); + b.prototype.by = function() { + return T.yc() - this.Tm.ma(aa.Aa); }; - b.prototype.BL = function() { - return u(this.Ua()); + b.prototype.dob = function() { + this.PL.HasRA = !0; }; - b.prototype.mLa = function(a) { - this.zk(v(a)); + b.prototype.Esb = function() { + this.yob = !0; }; - b.prototype.QD = function() { - var b, c, d, g, h, f; - - function a(a, b) { - return ("000000" + a.toString(16)).slice(2 * -b); + b.prototype.jwa = function() { + this.xya(); + }; + b.prototype.OL = function() { + var a; + a = this.EP(); + return a && a.vbuflmsec || 0; + }; + b.prototype.VG = function() { + var a; + a = this.EP(); + return a && a.abuflmsec || 0; + }; + b.prototype.Zaa = function() { + var a; + a = this.EP(); + return a && a.vbuflbytes || 0; + }; + b.prototype.x0 = function() { + var a; + a = this.EP(); + return a && a.abuflbytes || 0; + }; + b.prototype.Gza = function(a) { + var b, f, c; + a = void 0 === a ? this : a; + b = H.ca.get(tb.QX); + f = z.config.eU.enabled ? Ta.fd.nn.Qga : this.XC() ? Ta.fd.nn.pha : Ta.fd.nn.cm; + c = a.Ta; + a = { + ka: this.ka, + ri: b.Gna(c.CB, c.ri), + Ie: a.R, + Xr: !!c.Ze, + mI: f, + Xy: c.Xy + }; + if (c.dj || z.config.eU.enabled && Da.Uu(z.config.eU.dj)) a.dj = c.dj ? String(c.dj) : z.config.eU.dj; + c = H.ca.get(Ua.rA)(); + return b.DC(a, c); + }; + b.prototype.JT = function(a, b) { + b = void 0 === b ? this : b; + b.Fa = a; + a = this.aTa.create(this).JT(a); + b.Ob = a; + b.Te.set(a.t2); + b.Ic.set(a.n2); + b.kc.set(a.s2); + }; + b.prototype.c2a = function() { + try { + this.profile = da.xg.profile; + this.Yg = ha.XEa(this); + this.fD = this.jeb.create(this); + z.config.VZa && new sf.oHa(this, this.log); + z.config.lH && this.lH(this); + this.lsb(); + } catch (Wb) { + this.po(ra.I.xIa, { + T: ra.H.qg, + Ja: va.ad(Wb) + }); } - b = this.Ua(!0); - c = this.Md(!0); - d = this.Md(!0); - g = this.Md(); - h = this.Md(); - f = this.Ua(); - return [a(b, 4), a(c, 2), a(d, 2), a(g, 2), a(h, 2) + a(f, 4)].join("-"); }; - b.prototype.Fea = function(a) { - var b; - b = new DataView(this.data, this.offset, a); - this.offset += a; - return b; + b.prototype.lsb = function() { + this.Ch ? this.md(this.Ch) : Da.Ata(this.R) ? this.m_a() : this.po(ra.I.nIa); }; - b.prototype.rW = function(a) { - for (var b = new Uint8Array(a), c = 0; c < a; ++c) b[c] = this.Te(); - return b; + b.prototype.m_a = function() { + var a; + a = k.qE.Rza; + a ? a.S ? this.t1() : this.po(ra.I.eea, a) : (ea.sa(!z.config.VQ), this.S_()); }; - b.prototype.UJa = function(a) { - for (var b = new Uint32Array(a), c = 0; c < a; ++c) b[c] = this.Ua(); - return b; + b.prototype.t1 = function() { + var a; + a = this; + !this.background && z.config.t1 ? q.vga(function() { + a.S_(); + }, this) : this.S_(); }; - b.prototype.Gea = function(a) { - for (var b = this.Te(), c = this.Te(), d = c & 127; c & 128;) c = this.Te(), d = (d << 7) + (c & 127); - b = new(p.Hl[b] || p.Hl.base)(this, b, d); - b.parse(a); - return b; + b.prototype.S_ = function() { + var a; + a = this; + this.state.value == q.Yk && (z.config.X2 && !this.XC() ? k.qE.vB(q.yNa, function(b) { + b.S ? (a.NS = b.NS, z.config.KU ? a.ZG() : a.m$()) : a.po(ra.I.dea); + }) : z.config.KU ? this.ZG() : this.m$()); }; - h.prototype = Object.create(b.prototype); - h.prototype.eZ = function(a, b, c, d) { - a = new h(this.stream, { - data: this.data, - offset: b, - length: c - }, void 0, !1, this.config, a); - d && (a.ic = {}); - return a; + b.prototype.m$ = function() { + var a; + a = this; + this.state.value == q.Yk && (this.he("ic"), this.cjb.lnb(function(b) { + b.error && a.log.error("Error sending persisted playdata", ra.kn(b)); + try { + a.ZG(); + } catch (Oc) { + a.log.error("playback.authorize threw an exception", Oc); + a.po(ra.I.UCa, { + T: ra.H.qg, + Ja: va.ad(Oc) + }); + } + })); }; - l.prototype = Object.create(b.prototype); - l.prototype.eZ = function(a, b, c) { - return new l(this.stream, { - data: this.data, - offset: b, - length: c - }, a); + b.prototype.ZG = function() { + var a, b; + a = this; + if (this.state.value == q.Yk) { + this.log.info("Authorizing", this); + b = T.yc(); + this.he("ats"); + this.Yg.ZG(function(f) { + var c; + if (a.state.value == q.Yk) { + a.he("at"); + c = a.Fa; + a.QC({ + pr_ats: c && Da.ab(c.oz) ? c.oz : b, + pr_at: c && Da.ab(c.VD) ? c.VD : T.yc() + }); + f.S ? 0 < a.Ob.$h.length && a.Ob.n2 && a.Ob.t2 && a.Ob.s2 ? a.fkb() : a.po(ra.I.HJa, a.Deb(a.Ob)) : a.po(ra.I.MANIFEST, f); + } + }); + } }; - f.P = { - YT: h, - XT: l, - tja: d + b.prototype.fkb = function() { + var a; + a = this; + this.Axa ? (this.log.info("Processing post-authorize", this), this.Axa(this, function(b) { + b.S ? a.MBa() : a.po(ra.I.CIa, b); + })) : this.MBa(); }; - }, function(f, c, a) { - var wa, na, Y, aa, ta, db; - - function b(a, b, c, d) { - if (this.o = a) this.level = a.level; - this.type = b; - this.startOffset = c; - this.OA = this.length = d; - } - - function d(a, b, c) { - this.o = a; - this.tag = b; - this.startOffset = a.offset; - this.length = c; - } - - function h(a, c, d, g) { - this.Ga = b; - this.Ga.call(this, a, c, d, g); - } - - function l(a, c, d, g) { - this.Ga = b; - this.Ga.call(this, a, c, d, g); - } - - function g(a, c, d, g) { - this.Ga = b; - this.Ga.call(this, a, c, d, g); - } - - function m(a, c, d, g) { - this.Ga = b; - this.Ga.call(this, a, c, d, g); - } - - function p(a, c, d, g) { - this.Ga = b; - this.Ga.call(this, a, c, d, g); - } - - function r(a, c, d, g) { - this.Ga = b; - this.Ga.call(this, a, c, d, g); - } - - function u(a, c, d, g) { - this.Ga = b; - this.Ga.call(this, a, c, d, g); - this.Pt = a.config.Pt; - this.YA = new aa(0, 1); - a.config.xX && (c = a.config.ZP[a.profile]) && (a = c[a.J]) && (this.YA = new aa(a)); - } - - function v(a, c, d, g) { - this.Ga = b; - this.Ga.call(this, a, c, d, g); - } - - function k(a, c, d, g) { - this.Ga = b; - this.Ga.call(this, a, c, d, g); - } - - function w(a, c, d, g) { - this.Ga = b; - this.Ga.call(this, a, c, d, g); - } - - function G(a, c, d, g) { - b.call(this, a, c, d, g); - } - - function x(a, b, c, d) { - this.Ga = G; - this.Ga.call(this, a, b, c, d); - } - - function y(a, b, c, d) { - x.call(this, a, b, c, d); - } - - function C(a, b, c, d) { - x.call(this, a, b, c, d); - } - - function F(a, c, d, g) { - b.call(this, a, c, d, g); - } - - function N(a, c, d, g) { - b.call(this, a, c, d, g); - } - - function n(a, c, d, g) { - this.Ga = b; - this.Ga.call(this, a, c, d, g); - } - - function q(a, b, c) { - d.call(this, a, b, c); - } - - function Z(a, b, c) { - d.call(this, a, b, c); - } - - function O(a, b, c) { - d.call(this, a, b, c); - } - - function B(a, c, d, g) { - this.Ga = b; - this.Ga.call(this, a, c, d, g); - } - - function t() { - for (var a = new DataView(this), b = "", c, d = 0; d < this.byteLength; d++) c = a.getUint8(d), b += ("00" + c.toString(16)).slice(-2); - return b; - } - - function V(a, c, d, g) { - this.Ga = b; - this.Ga.call(this, a, c, d, g); - } - - function D(a, c, d, g) { - this.Ga = b; - this.Ga.call(this, a, c, d, g); - } - - function S(a, c, d, g) { - this.Ga = b; - this.Ga.call(this, a, c, d, g); - } - - function da(a, c, d, g) { - this.Ga = b; - this.Ga.call(this, a, c, d, g); - } - - function X(a, b, c, d) { - this.Ga = h; - this.Ga.call(this, a, b, c, d); - } - - function U(a, b, c, d) { - this.Ga = h; - this.Ga.call(this, a, b, c, d); - } - - function ha(a) { - function c(c, d, g, h) { - this.Ga = b; - this.Ga.call(this, c, d, g, h); - this.Sna = a; - } - c.prototype = new b(); - c.prototype.constructor = c; - Object.defineProperties(c.prototype, { - L7: { - get: function() { - return this.Sna; + b.prototype.MBa = function() { + var b, f, d, g; + b = this; + if (this.state.value == q.Yk) { + f = {}; + this.Ok = p.gk; + z.config.q7a && this.Ok.W0(); + p.fk.set(a(149)(z.config), !0, H.zd("ASE")); + z.config.r0a && 3E5 > this.Fa.duration ? p.fk.CD({ + expandDownloadTime: !1 + }, !0, this.Td) : p.fk.CD({ + expandDownloadTime: p.fk.hxa().expandDownloadTime + }, !0, this.Td); + this.background || z.config.xjb && "postplay" === this.uc ? p.fk.CD({ + initBitrateSelectorAlgorithm: "historical" + }, !0, this.Td) : p.fk.CD({ + initBitrateSelectorAlgorithm: p.fk.hxa().initBitrateSelectorAlgorithm + }, !0, this.Td); + g = this.Te && this.Te.value && this.Te.value.qc; + g && g.length && (d = g[0].Me); + p.fk.CD(z.Tna(this.Ta.Ze, this.Ta.W5, d), !0, this.Td); + f = H.ca.get(Q.Je).Dk(f, z.Una(this.uc)); + this.tpb = p.fk.jp(f); + c.platform.events.emit("networkchange", this.Ob.Fnb); + this.Ok.SBa({ + Ln: function() { + return b.Ln(); + }, + BI: function() { + return b.BI(); + }, + TI: function() { + return b.TI(); } - } - }); - c.prototype.parse = function() { - this.o.wc("renaming '" + this.type + "' to draft type '" + this.Sna + "'"); - this.o.offset = this.startOffset + 4; - this.o.mLa(this.L7); - this.type = this.L7; - return !0; - }; - return c; - } - - function ba(a, c, d, g) { - this.Ga = b; - this.Ga.call(this, a, c, d, g); - } - - function ea(a, c, d, g) { - this.Ga = b; - this.Ga.call(this, a, c, d, g); - } - - function ia(a, c, d, g) { - this.Ga = b; - this.Ga.call(this, a, c, d, g); - } - - function ka(a, c, d, g) { - this.Ga = b; - this.Ga.call(this, a, c, d, g); - } - - function ua(a, c, d, g) { - this.Ga = b; - this.Ga.call(this, a, c, d, g); - } - - function la(a, c, d, g) { - this.Ga = b; - this.Ga.call(this, a, c, d, g); - } - - function A(a, c, d, g) { - this.Ga = b; - this.Ga.call(this, a, c, d, g); - } - - function H(a, c, d, g) { - this.Ga = b; - this.Ga.call(this, a, c, d, g); - } - - function P(a, c, d, g) { - this.Ga = b; - this.Ga.call(this, a, c, d, g); - } - - function Pa(a, c, d, g) { - this.Ga = b; - this.Ga.call(this, a, c, d, g); - } - wa = a(21); - na = a(175); - Y = a(9); - aa = a(72); - ta = a(176); - a(68); - a(68); - db = a(68).RGa; - b.prototype.constructor = b; - b.prototype.Wf = function() { - var a, b, c; - this.version = this.o.Te(); - a = this.o.Te(); - b = this.o.Te(); - c = this.o.Te(); - this.Ie = a << 16 | b << 8 | c; - }; - b.prototype.parse = function() { - return !0; - }; - b.prototype.vF = function(a) { - this.o.Ha(a.type, a); - }; - b.prototype.e_a = function() {}; - b.prototype.rz = function(a, b) { - var c; - c = this.o.offset; - b = this.o.eZ(this, c, this.length - (c - this.startOffset), b); - b.zn = void 0; - b.addEventListener("error", this.vF.bind(this)); - b.addEventListener("drmheader", this.vF.bind(this)); - b.addEventListener("nflxheader", this.vF.bind(this)); - b.addEventListener("keyid", this.vF.bind(this)); - b.addEventListener("requestdata", this.e_a.bind(this)); - b.addEventListener("sampledescriptions", this.vF.bind(this)); - this.ic = b.ic; - b.parse(a); - return !0; - }; - b.prototype.bn = function(a) { - return void 0 !== this.ic[a] && 1 === this.ic[a].length ? this.ic[a][0] : void 0; - }; - b.prototype.zj = function(a, b) { - b = void 0 === b ? this.o.offset : b; - wa(b >= this.startOffset + 8 && b + a <= this.startOffset + this.OA, "Removal range [0x" + b.toString(16) + "-0x" + (b + a).toString(16) + ") must be in box [0x" + this.startOffset.toString(16) + "-0x" + (this.startOffset + this.OA).toString(16) + ")"); - this.length -= a; - this.o.zk(this.length, !1, this.startOffset); - this.o.zj(a, b); - }; - b.prototype.Ky = function(a, b, c) { - c = void 0 === c ? this.o.offset : c; - wa(c >= this.startOffset + 8 && c + a <= this.startOffset + this.OA, "Removal range [0x" + c.toString(16) + "-0x" + (c + a).toString(16) + ") must be in box [0x" + this.startOffset.toString(16) + "-0x" + (this.startOffset + this.OA).toString(16) + ")"); - this.length += (b ? b.byteLength : 0) - a; - this.o.zk(this.length, !1, this.startOffset); - this.o.Ky(a, b, c); - }; - d.prototype.parse = function() { - this.o.offset = this.startOffset + this.length; - this.o.zw = 0; - return !0; - }; - d.prototype.skip = d.prototype.parse; - d.prototype.Hea = function() { - for (this.Hl = []; this.o.offset < this.startOffset + this.length;) this.Hl.push(this.o.Gea(this)); - }; - h.prototype = new b(); - h.prototype.constructor = h; - h.prototype.parse = function(a) { - return this.rz(a); - }; - l.prototype = new b(); - l.prototype.constructor = l; - l.prototype.parse = function(a) { - var b; - a = this.rz(a); - b = this.startOffset + this.length; - this.o.wc("marking end of moov: 0x" + b.toString(16)); - this.o.M2 = b; - return a; - }; - g.prototype = new b(); - g.prototype.constructor = g; - g.prototype.parse = function(a) { - var b; - b = this.o.data.slice(this.o.offset, this.o.offset + this.length - 8); - a = { - type: "free", - ctxt: a, - data: b - }; - this.o.Ha(a.type, a); - return !0; - }; - m.prototype = new b(); - m.prototype.constructor = m; - m.prototype.parse = function() { - var a; - this.Wf(); - this.fileSize = this.o.Ch(); - this.jb = this.o.Ch(); - this.duration = this.o.Ch(!1, !0); - this.hoa = this.o.Ch(); - this.o.Ch(); - this.Z3a = this.o.Ch(); - this.j3a = this.o.Ua(); - this.ioa = this.o.Ch(); - this.cja = this.o.Ua(); - this.Uia = this.o.QD(); - a = { - moof: { - offset: this.hoa - }, - sidx: { - offset: this.ioa, - size: this.cja - } - }; - a[na.A$] = { - offset: this.Z3a, - size: this.j3a - }; - this.o.offset - this.startOffset <= this.length - 24 && (this.Y3a = this.o.Ch(), this.$2a = this.o.Ua(), this.X3a = this.o.Ch(), this.Y2a = this.o.Ua(), a[na.bU] = { - offset: this.Y3a, - size: this.$2a - }, a[na.aU] = { - offset: this.X3a, - size: this.Y2a - }); - this.o.eqa(a); - return !0; - }; - p.prototype = new b(); - p.prototype.constructor = p; - p.prototype.parse = function() { - var a, d, g; - this.Wf(); - 1 <= this.version && (this.Uia = this.o.QD()); - a = this.o.Ua(); - this.ic = {}; - for (var b = this.startOffset + this.length, c = 0; c < a; ++c) { - d = this.o.BL(); - "uuid" === d && (d = this.o.QD()); - g = this.o.Ch(); - this.ic[d] = { - offset: b, - size: g - }; - b += g; + }); + this.sr = H.ca.get(ja.eM).c0({ + FE: aa.rb(this.sr), + R: this.R, + eK: this.Hx, + Ta: this.Ta + }).ma(aa.Aa); + this.wjb(); } - this.o.eqa(this.ic); - return !0; - }; - r.prototype = new b(); - r.prototype.constructor = r; - r.prototype.parse = function() { - var a; - this.Wf(); - 1 === this.version ? (this.o.Ch(), this.o.Ch(), this.jb = this.o.Ua(), this.duration = this.o.Ch()) : (this.o.Ua(), this.o.Ua(), this.jb = this.o.Ua(), this.duration = this.o.Ua()); - a = this.o.Md() & 32767; - this.language = String.fromCharCode(96 + (a >>> 10), 96 + (a >>> 5 & 31), 96 + (a & 31)); - this.o.Wr({ - jb: this.jb - }); - return !0; }; - u.prototype = new b(); - u.prototype.constructor = u; - u.prototype.DJa = function() { - this.Wf(); - this.o.Ua(); - this.jb = this.o.Ua(); - this.YA = this.YA.Sq(this.jb); - 0 === this.version ? (this.JZ = this.o.Ua(), this.p_ = this.o.Ua()) : (this.JZ = this.o.Ch(), this.p_ = this.o.Ch()); - this.X7a = this.o.Md(); - this.Wpa = this.o.Md(); - }; - u.prototype.parse = function() { - var a, b, c, d, g, h, f, l, p, m, r, u, y; - this.DJa(); - if (Y.X4a) { - this.o.wc("using platform segment index parser"); - this.o.offset = this.startOffset + 8; - b = this.o.Fea(this.length - 8); - b = Y.X4a(b, this.startOffset + this.length, this.o.url); - if (!b || !b.success) return !1; - a = new ta(b.data, this.o.O, this.jb); - this.YA.Bf && a.xMa(this.YA); - this.o.Wr({ - T: a, - $m: !1 + b.prototype.F2a = function() { + var a, b, f, c; + a = this; + try { + this.jb = new r.uKa(this); + this.jb.open(); + b = new Promise(function(b) { + a.jb.addEventListener(R.oh.wAa, function() { + b(); + }); }); - } else { - c = this.jb; - d = this.JZ + this.YA.Bf; - g = d; - l = 0; - p = this.startOffset + this.length + this.p_; - m = (b = this.o.config.truncate && 60 < this.Wpa) ? 60 : this.Wpa; - r = this.o.Fea(12 * m); - u = 0; - if (this.Pt) { - for (var x = [], v = 0; v < m; ++v, u += 12) { - l += r.getUint32(u); - g += r.getUint32(u + 4); - h = Math.max(0, db(d, c)); - f = db(g, c); - a = f - h; - if (this.Pt && v < m - 1) { - y = db(r.getUint32(u + 4 + 12), c); - if (Math.abs(a - this.Pt) > Math.abs(a + y - this.Pt)) continue; - } - x.push({ - ga: l, - X: h, - offset: p, - duration: a - }); - p += l; - d = g; - l = 0; + this.Gh = new ib.yKa(this); + f = { + ci: !1, + IE: z.config.IE, + GV: z.config.PQ, + seb: !1, + NB: !this.Vu, + G8: !!this.Ta.W5, + ea: this.Ta.ea + }; + this.Fa.cdnResponseData && (this.eQ = this.Fa.cdnResponseData.pbcid, this.Fa.cdnResponseData.sessionABTestCell && (this.Cv = this.Fa.cdnResponseData.sessionABTestCell)); + c = { + Zy: this.log, + Gp: this.Gp, + sessionId: this.R + "-" + this.ka, + ka: this.ka, + MT: this.eQ, + Df: ub.cg ? ub.cg.Df : void 0, + ipa: 0 === z.config.SH || 0 !== this.ka % z.config.SH ? !1 : !0 + }; + this.Ipa = c.ipa; + this.gb = this.Ok.Dr(this.Fa, [this.Ob.Toa, this.Ob.Xoa], this.U, f, c, void 0, { + de: function() { + return a.sd.value; + }, + x4: function() { + return a.jb; } - a = ta.from(x, void 0, this.o.O, c); - } else a = ta.from({ - length: m - }, function() { - var a; - l = r.getUint32(u); - g = d + r.getUint32(u + 4); - h = Math.max(0, db(d, c)); - f = db(g, c); - a = { - ga: l, - X: h, - offset: p, - duration: f - h - }; - p += l; - d = g; - u += 12; - return a; - }, this.o.O, c); - this.o.Wr({ - T: a, - $m: b + }, this.tpb); + this.hXa(this.gb); + b.then(function() { + a.state.value !== q.JF && a.state.value !== q.IF && a.gb.open(); + }); + this.sd.set(this.U); + this.dn = new v.OPa(this); + if ("boolean" === typeof this.Ta.UD ? this.Ta.UD : z.config.UD) this.sL = new U.PPa(this); + this.lo = new t.wNa(this); + this.YK(); + q.xga.forEach(function(b) { + b(a); + }); + this.Mgb(); + } catch (pf) { + this.po(ra.I.zIa, { + T: ra.H.qg, + Ja: va.ad(pf) }); } - return !0; }; - v.prototype = new b(); - v.prototype.constructor = v; - v.prototype.parse = function() { - for (var a = [], b = 0; b < this.length; b++) a.push(this.o.Md() / 100); - this.o.Wr({ - en: a - }); - return !0; + b.prototype.Ngb = function() { + ea.sa(this.state.value == q.sA); + this.log.j.Hf = this.Hf = T.yc(); + this.state.set(q.Yk); + A._cad_global.prefetchEvents && A._cad_global.prefetchEvents.kjb(this.R); }; - k.prototype = new b(); - k.prototype.constructor = k; - Object.defineProperties(k.prototype, { - FAa: { - get: function() { - return "e41f7029-c73c-344a-8c5b-ae90c7439a47"; - } - }, - hCa: { - get: function() { - return "79f0049a-4098-8642-ab92-e65be0885f95"; - } + b.prototype.po = function(a, b) { + var f; + if (!this.done) { + this.done = !0; + f = H.ca.get(x.Sj); + b instanceof sc.Ub ? this.md(f(b.code, b)) : this.md(f(a, b)); } - }); - k.prototype.parse = function(a) { - var b, c; - this.Wf(); - b = this.o.QD(); - this.o.wc("parsing pssh box ID = " + b); - c = this.o.Ua(); - this.o.wc("pssh size = 0x" + c.toString(16)); - c = this.o.data.slice(this.o.offset, this.o.offset + c); - a = { - ctxt: a, - header: c - }; - if (b == this.hCa) a.type = "drmheader", a.drmType = "PlayReady"; - else if (b == this.FAa) a.type = "nflxheader"; - else return this.o.wc("Unrecognized pssh systemID: " + b), !0; - this.o.wc("Handling pssh type: " + a.type); - this.o.Ha(a.type, a); - return !0; }; - w.prototype = new b(); - w.prototype.constructor = w; - w.prototype.parse = function(a) { - var b, c; - this.Wf(); - this.o.Ua(); - if (a = this.rz(a, !0)) { - b = { - type: "sampledescriptions", - ic: this.ic - }; - c = Object.keys(this.ic); - c.length && this.ic[c[0]].length && this.ic[c[0]][0] instanceof x && (b.samplerate = this.ic[c[0]][0].w8a, b.framelength = this.ic[c[0]][0].QN); - this.o.Ha(b.type, b); + b.prototype.lH = function(a) { + var f, c; + + function b() { + var b, c; + b = m.qr.b4() + ""; + c = a.I0[b]; + c || (c = a.I0[b] = []); + c.push(T.yc()); + f.log.trace("charging change event", { + level: m.qr.yra(), + charging: m.qr.b4() + }); } - return a; + f = this; + c = m.qr.eEa; + m.qr.addEventListener(c, b); + a.addEventListener(ua.X.Ce, function() { + m.qr.removeEventListener(c, b); + }); }; - G.prototype = Object.create(b.prototype); - G.prototype.constructor = G; - G.prototype.parse = function() { - this.o.offset += 6; - this.o.Md(); - }; - x.prototype = Object.create(G.prototype); - x.prototype.constructor = x; - x.prototype.parse = function(a) { - G.prototype.parse.call(this, a); - this.o.offset += 8; - this.o.Md(); - this.o.Md(); - this.o.offset += 4; - this.w8a = this.o.Md(); - this.o.offset += 2; - }; - y.prototype = Object.create(x.prototype); - y.prototype.constructor = y; - y.prototype.parse = function(a) { + b.prototype.P$ = function(a) { var b; - x.prototype.parse.call(this, a); - if (a = this.rz(a, !0)) { - b = this.ic.esds; - b.length && 3 === b[0].Mx.tag && b[0].Mx.Hl.length && 4 === b[0].Mx.Hl[0].tag && b[0].Mx.Hl[0].Hl.length && 5 === b[0].Mx.Hl[0].Hl[0].tag && (this.QN = this.ic.esds[0].Mx.Hl[0].Hl[0].QN); + b = this; + if (this.state.value == q.sA || this.state.value == q.Yk || this.state.value == q.qn) { + this.Td.info("Playback closing", this, a ? { + ErrorCode: a.DQ + } : void 0); + F.ee.removeListener(F.uk, this.Awa); + this.Ch = a; + this.uqa(); + this.gb && this.gb.flush(); + try { + this.jc.Db(ua.X.Ce); + } catch (Oc) { + this.Td.error("Unable to fire playback closing event", Oc); + } + this.state.set(q.JF); + this.$na = this.ay(); + this.FCa(); + this.yob || Ga.hb(function() { + return b.xya(); + }); } - return a; - }; - C.prototype = Object.create(x.prototype); - C.prototype.constructor = C; - C.prototype.parse = function(a) { - x.prototype.parse.call(this, a); - if (a = this.rz(a, !0)) this.QN = 1536; - return a; - }; - F.prototype = Object.create(b.prototype); - F.prototype.parse = function() { - this.o.Ue(2); - this.o.Ue(5); - this.o.Ue(3); - this.o.Ue(3); - this.o.Wrb(1); - this.o.Ue(5); - this.o.Ue(5); - return !0; }; - N.prototype = Object.create(b.prototype); - N.prototype.parse = function() { - this.G3a = this.o.Md() & 7; - for (var a = 0; a < this.G3a; a++) this.o.Ue(2), this.o.Ue(5), this.o.Ue(5), this.o.Ue(3), this.o.M6a(1), 0 < this.o.Ue(4) ? this.o.M6a(9) : this.o.Ue(1); - return !0; + b.prototype.vqa = function() { + var a; + a = this.sd.value; + this.hdb != a && (this.hdb = a, this.jc.Db(ua.X.naa)); }; - n.prototype = new b(); - n.prototype.constructor = n; - n.prototype.parse = function() { - this.Wf(); - this.Mx = this.o.Gea(); - return !0; + b.prototype.EI = function(a) { + a = void 0 === a ? null : a; + return Da.ja(a) ? this.gb ? this.gb.SB(this.na, a) : a : null; }; - q.prototype = Object.create(d.prototype); - q.prototype.parse = function() { - var a; - this.o.Md(); - a = this.o.Te(); - this.Q$a = !!(a & 128); - this.KFa = !!(a & 64); - this.dBa = !!(a & 32); - this.Q$a && this.o.Md(); - this.KFa && this.o.rW(this.o.Te()); - this.dBa && this.o.Md(); - this.Hea(); - }; - Z.prototype = Object.create(d.prototype); - Z.prototype.parse = function() { - this.M3a = this.o.Te(); - this.o.Te(); - this.o.Md(); - this.o.Te(); - this.b2 = this.o.Ua(); - this.o.Ua(); - this.Hea(); - }; - O.prototype = Object.create(d.prototype); - O.prototype.Dpa = function() { + b.prototype.xya = function() { + var a, b; + a = this; + ea.sa(this.state.value == q.JF); + b = this.NS; + this.NS = void 0; + b ? k.qE.release(b, function(b) { + ea.sa(b.S); + a.z1(); + }) : this.z1(); + }; + b.prototype.FCa = function() { + this.gb && (this.gb.close(), this.gb.Ld()); + this.Ok && this.Ch && this.Ok.W0(); + delete this.gb; + delete this.Ok; + }; + b.prototype.z1 = function() { var a; - a = this.o.Ue(5); - 31 === a && (a = 32 + this.o.Ue(6)); - return a; - }; - O.prototype.Kpa = function() { - 15 !== this.o.Ue(4) || this.o.Ue(24); + this.z1 = w.Qb; + ea.sa(this.state.value == q.JF); + a = q.Cq.indexOf(this); + ea.sa(0 <= a); + q.Cq.splice(a, 1); + this.state.set(q.IF); + this.jc.Db(ua.X.closed, void 0, !0); + this.jc.bC(); + delete this.dg; + this.Dva.Hlb(this.ka); + }; + b.prototype.sma = function() { + this.Ta.playbackState && ("number" === typeof this.Ta.playbackState.volume && this.volume.set(this.Ta.playbackState.volume), "boolean" === typeof this.Ta.playbackState.muted && this.muted.set(this.Ta.playbackState.muted)); + }; + b.prototype.uqa = function() { + this.jc.Db(ua.X.mAa, { + PL: this.PL + }); + }; + b.prototype.Jnb = function(a, b) { + var f; + f = this.$h.filter(function(b) { + return b.id === a; + })[0]; + f && this.Mb[b].set(f); }; - O.prototype.parse = function(a) { - if (64 === a.M3a) switch (this.uv = this.Dpa(), this.Kpa(), this.o.Ue(4), this.UUa = 5 === this.uv || 29 === this.uv ? 5 : -1, 0 < this.UUa && (this.Kpa(), this.uv = this.Dpa(), 22 === this.uv && this.o.Ue(4)), this.uv) { - case 1: - case 2: - case 3: - case 4: - case 6: - case 7: - case 17: - case 19: - case 20: - case 21: - case 22: - case 23: - this.oja = this.o.Ue(1), (this.VSa = this.o.Ue(1)) && this.o.Ue(14), this.o.Ue(1), this.QN = 3 === this.uv ? 256 : 23 === this.uv ? this.oja ? 480 : 512 : this.oja ? 960 : 1024; - } - this.skip(); - }; - B.prototype = new b(); - B.prototype.constructor = B; - B.prototype.parse = function(a) { - this.o.offset += 8; - this.o.offset += 16; - this.o.Md(); - this.o.Md(); - this.o.offset += 14; - this.o.offset += 32; - this.o.offset += 4; - return this.rz(a); - }; - V.prototype = new b(); - V.prototype.constructor = V; - V.prototype.parse = function(a) { - var b, c; - this.Wf(); - this.o.offset += 4; - b = this.o.offset; - c = this.o.data.slice(b, b + 16); - c.toString = t; - this.o.wc("read KID: " + c.toString()); - a = { - type: "keyid", - ctxt: a, - keyId: c, - offset: b, - flipped: !1 + b.prototype.pD = function() { + return { + AudioBufferLength: this.VG(), + VideoBufferLength: this.OL() }; - this.o.Ha(a.type, a); - return !0; - }; - D.prototype = new b(); - D.prototype.constructor = D; - D.prototype.parse = function() { - this.Wf(); - this.o.Ua(); - this.o.Ua(); - this.XE = this.o.Ua(); - this.Tha = this.o.Ua(); - this.Sha = this.o.Ua(); - this.o.Wr({ - XE: this.XE - }); - return !0; - }; - S.prototype = new b(); - S.prototype.constructor = S; - S.prototype.parse = function() { - this.Wf(); - this.Il = this.o.Md(); - this.b2a = this.o.UJa(this.Il); - this.o.Wr({ - vP: this.b2a - }); - return !0; }; - da.prototype = new b(); - da.prototype.constructor = da; - da.prototype.parse = function() { - var a, b, c, d, g, h, f, l; - this.Wf(); - this.Il = this.o.Md(); - if (0 === this.version) - for (this.om = Array(this.Il), a = 0; a < this.Il; ++a) { - if (c = this.o.Te(), 0 !== c) - for (this.om[a] = Array(c), b = 0; b < c; ++b) this.om[a][b] = { - timestamp: this.o.Ua(), - offset: this.o.Ua() - }; - } else if (1 === this.version) - for (this.om = [], a = 0; a < this.Il; ++a) f = this.o.Md(), d = this.o.Ua(), g = this.o.Ua(), void 0 === this.om[f] && (this.om[f] = []), this.om[f].push({ - timestamp: d, - offset: g - }); - else - for (this.om = [], this.jb = this.o.Ua(), c = this.o.Md(), a = 0; a < c; ++a) - for (h = this.o.Md(), f = this.o.Md(), b = 0; b < h; ++b) d = this.o.Ua(), l = d >>> 24, d &= 16777215, g = this.o.Ua(), f += l, void 0 === this.om[f] && (this.om[f] = []), this.om[f].push({ - timestamp: d, - offset: g - }); - this.o.Wr({ - Fh: this.om, - gMa: this.jb - }); - return !0; + b.prototype.EP = function() { + if (this.gb) return this.gb.Q5(!1); }; - X.prototype = Object.create(h.prototype); - X.prototype.constructor = X; - X.prototype.parse = function(a) { - return h.prototype.parse.call(this, a); + b.prototype.BI = function() { + return this.fka; }; - U.prototype = Object.create(h.prototype); - U.prototype.constructor = U; - U.prototype.parse = function(a) { - if (!h.prototype.parse.call(this, a)) return !1; - if (a = this.bn("tfhd")) this.Fp = a.dga ? a.Fp : this.o.Wu.startOffset; - return !0; + b.prototype.TI = function() { + this.fka++; }; - ba.prototype = new b(); - ba.prototype.constructor = ba; - ba.prototype.parse = function() { - var a, b, m, r, d, h; - a = this.o; - b = a.offset; - this.Wf(); - if (1 === this.version) { - this.o.wc("translating vpcC box to draft equivalent"); - a.offset += 2; - for (var c = a.offset, d = a.Te(), g = a.Te(), h = a.Te(), f = a.Te(), l = a.Md(), p = [], m = 0; m < l; ++m) p = a.Te(); - m = (d & 240) >>> 4; - r = (d & 14) >>> 1; - d = d & 1; - h = 16 === h ? 1 : 0; - g != f && this.o.ba("VP9: Has the VP9 spec for vpcC changed? colourPrimaries " + g + " and matrixCoefficients " + f + " should be the same value!"); - f = 2; - switch (g) { - case 1: - f = 2; - break; - case 6: - f = 1; - break; - case 9: - f = 5; - break; - default: - this.o.ba("VP9: Unknown colourPrimaries " + g + "! Falling back to default color space VP9_COLOR_SPACE_BT709_6 (2)"); - } - this.version = 0; - a.view.setUint8(b, this.version); - a.view.setUint8(c++, m << 4 | f); - a.view.setUint8(c++, r << 4 | h << 1 | d); - l += 2; - p.push(0, 0); - a.view.setUint16(c, l); - c += 2; - p.forEach(function(b) { - a.view.setUint8(c++, b); - }); - } - return !0; + b.prototype.Mgb = function() { + this.state.value == q.Yk && this.state.set(q.qn); }; - ea.prototype = new b(); - ea.prototype.constructor = ea; - Object.defineProperties(ea.prototype, { - dga: { + na.Object.defineProperties(b.prototype, { + Ba: { + configurable: !0, + enumerable: !0, get: function() { - return this.Ie & 1; + return this.uv[this.gb && this.gb.kK || 0]; } }, - v8a: { + U: { + configurable: !0, + enumerable: !0, get: function() { - return this.Ie & 2; + var a; + a = this.GC(0); + return ("number" === typeof a.Ta.U ? a.Ta.U : this.sr) || 0; } }, - LSa: { + Ob: { + configurable: !0, + enumerable: !0, get: function() { - return this.Ie & 8; + return this.Ba.Ob; + }, + set: function(a) { + this.Ba.Ob = a; } }, - OSa: { + profile: { + configurable: !0, + enumerable: !0, get: function() { - return this.Ie & 16; + return this.Ba.profile; + }, + set: function(a) { + this.Ba.profile = a; } }, - MSa: { - get: function() { - return this.Ie & 32; - } - } - }); - ea.prototype.parse = function() { - this.Wf(); - this.o.Ua(); - this.Fp = this.dga ? this.o.Ch() : void 0; - this.v8a && this.o.Ua(); - this.XE = this.LSa ? this.o.Ua() : void 0; - this.Tha = this.OSa ? this.o.Ua() : void 0; - this.Sha = this.MSa ? this.o.Ua() : void 0; - return !0; - }; - ia.prototype = new b(); - ia.prototype.constructor = ia; - ia.prototype.parse = function() { - this.Wf(); - this.mE = 1 === this.version ? this.o.Ch() : this.o.Ua(); - return !0; - }; - ia.prototype.yd = function(a) { - var b; - b = this.startOffset + 12; - this.mE += a; - 1 === this.version ? this.o.nLa(this.mE, b) : this.o.zk(this.mE, !1, b); - }; - ka.prototype = new b(); - ka.prototype.constructor = ka; - Object.defineProperties(ka.prototype, { - Kha: { + oR: { + configurable: !0, + enumerable: !0, get: function() { - return this.Ie & 1; + return this.Ba.Ta.oR; } }, - r_: { + pR: { + configurable: !0, + enumerable: !0, get: function() { - return this.Ie & 4; + return this.Ba.Ta.pR; } }, - AQ: { + index: { + configurable: !0, + enumerable: !0, get: function() { - return this.Ie & 256; + return this.Ba.index; } }, - BQ: { + dg: { + configurable: !0, + enumerable: !0, get: function() { - return this.Ie & 512; + return this.Ba.dg; + }, + set: function(a) { + this.Ba.dg = a; } }, - Dqa: { + cK: { + configurable: !0, + enumerable: !0, get: function() { - return this.Ie & 1024; + return this.Ba.cK; + }, + set: function(a) { + this.Ba.cK = a; } }, - I4: { - get: function() { - return this.Ie & 2048; - } - } - }); - ka.prototype.parse = function() { - this.Wf(); - this.mga = this.o.offset; - this.$c = this.o.Ua(); - this.Qp = this.Kha ? this.o.sW() : 0; - this.r_ && this.o.Ua(); - this.yH = (this.AQ ? 4 : 0) + (this.BQ ? 4 : 0) + (this.Dqa ? 4 : 0) + (this.I4 ? 4 : 0); - this.FN = this.o.offset; - wa(this.Kha, "Expected data offset to be present in Track Run"); - wa(this.length - (this.o.offset - this.startOffset) === this.$c * this.yH, "Expected remaining data in box to be sample information"); - return !0; - }; - ka.prototype.PD = function(a, b, c) { - var d, g, h; - d = this.AQ ? this.o.Ua() : a.XE; - g = this.BQ ? this.o.Ua() : a.Tha; - a = this.Dqa ? this.o.Ua() : a.Sha; - h = 0 === this.version ? this.I4 ? this.o.Ua() : 0 : this.I4 ? this.o.sW() : 0; - return { - u8a: h, - vsb: a, - srb: c + h - (void 0 !== b ? b : h), - Jq: g, - zH: d - }; - }; - ka.prototype.yd = function(a, b, c, d, g, h, f) { - var l, p, m, r; - l = 0; - p = 0; - this.o.offset = this.FN; - for (d = 0; d < g; ++d) r = this.PD(b, m, p), 0 == d && (m = r.u8a), l += r.Jq, p += r.zH; - d = g; - g = this.o.offset; - r = this.PD(b, m, p); - this.wB = d; - this.k$a = p; - if (f) { - if (this.dB = this.Qp + l, this.Gq = 0, d === this.$c) return !0; - } else if (this.dB = this.Qp, this.Gq = l, 0 === d) return !0; - if (0 === d || d === this.$c) return !1; - this.oia = !0; - if (f) { - this.Gq += r.Jq; - for (f = d + 1; f < this.$c; ++f) r = this.PD(b, m, p), this.Gq += r.Jq; - this.o.offset = this.mga; - this.$c = d; - this.o.zk(this.$c); - this.o.oL(h); - this.r_ && (this.o.offset += 4); - this.zj(this.length - (g - this.startOffset), g); - } else b = g - this.FN, this.o.offset = this.mga, this.$c -= d, this.o.zk(this.$c), this.Qp += l, this.o.oL(h), this.o.nfa(this.Qp), this.r_ && (this.o.offset += 4), this.zj(b, this.o.offset); - c.zj(this.Gq, a.Fp + this.dB); - return !0; - }; - ka.prototype.K7a = function(a, b, c, d, g, h) { - var l; - if (d) { - d = this.dB; - for (var f = this.$c - 1; 0 <= f && this.$c - f <= g; --f) { - this.o.offset = this.FN + f * this.yH; - l = this.PD(b); - if (l.zH != h.duration) { - this.o.ba("Could not replace sample of duration " + l.zH + " with silence of duration " + h.duration); - break; - } - if (this.BQ) this.o.offset -= this.yH - (this.AQ ? 4 : 0), this.o.zk(h.Qt.byteLength); - else if (h.Qt.byteLength !== l.Jq) { - this.o.ba("Cannot replace sample with default size with silence of different size"); - break; - } - d -= l.Jq; - c.Ky(l.Jq, h.Qt, a.Fp + d); - } - } else - for (d = this.dB + this.Gq, f = 0; f < this.$c && f < g; ++f) { - this.o.offset = this.FN + (f + this.wB) * this.yH; - l = this.PD(b); - if (l.zH != h.duration) { - this.o.ba("Could not replace sample of duration " + l.zH + " with silence of duration " + h.duration); - break; - } - if (this.BQ) this.o.offset -= this.yH - (this.AQ ? 4 : 0), this.o.zk(h.Qt.byteLength); - else if (h.Qt.byteLength !== l.Jq) { - this.o.ba("Cannot replace sample with default size with silence of different size"); - break; - } - c.Ky(l.Jq, h.Qt, a.Fp + d); - d += l.Jq; - } - }; - ua.prototype = Object.create(b.prototype); - ua.prototype.constructor = ua; - Object.defineProperties(ua.prototype, { - wv: { - get: function() { - return this.Ie & 1; - } - } - }); - ua.prototype.parse = function() { - this.Wf(); - this.wv && this.o.BL(); - this.wv && this.o.Ua(); - this.NSa = this.o.Te(); - this.$c = this.o.Ua(); - this.o.rW(this.$c); - return !0; - }; - ua.prototype.yd = function(a, b) { - if (a && 0 === this.NSa) { - a = b ? this.$c - a : a; - this.o.offset = this.startOffset + 13 + (this.wv ? 8 : 0); - this.$c -= a; - this.o.zk(this.$c); - this.H4 = 0; - if (b) this.o.offset += this.$c; - else { - for (b = 0; b < a; ++b) this.H4 += this.o.Te(); - this.o.offset -= a; - } - this.zj(a, this.o.offset); - } - return !0; - }; - la.prototype = Object.create(b.prototype); - la.prototype.constructor = la; - Object.defineProperties(la.prototype, { - wv: { - get: function() { - return this.Ie & 1; - } - } - }); - la.prototype.parse = function() { - this.Wf(); - this.wv && this.o.BL(); - this.wv && this.o.Ua(); - this.Il = this.o.Ua(); - wa(1 === this.Il, "Expected a single entry in Sample Auxiliary Information Offsets box"); - this.Qp = 0 === this.version ? this.o.sW() : this.o.VJa(); - return !0; - }; - la.prototype.yd = function(a, b) { - this.Qp += a; - this.o.offset = this.startOffset + 16 + (this.wv ? 8 : 0) + (0 === this.version ? 0 : 4); - this.o.oL(b); - this.o.nfa(this.Qp); - return !0; - }; - A.prototype = Object.create(b.prototype); - A.prototype.constructor = A; - Object.defineProperties(A.prototype, { - Aoa: { + ku: { + configurable: !0, + enumerable: !0, get: function() { - return this.Ie & 1; + return this.Ba.ku; + }, + set: function(a) { + this.Ba.ku = a; } }, - tcb: { - get: function() { - return this.Ie & 2; - } - } - }); - A.prototype.parse = function() { - this.Wf(); - this.Aoa && (this.o.Ua(), this.f0a = this.o.rW(16)); - this.$c = this.o.Ua(); - return !0; - }; - A.prototype.yd = function(a, b) { - var c, d; - c = b ? this.$c - a : a; - this.o.offset = this.startOffset + 28 + (this.Aoa ? 20 : 0); - this.$c -= c; - this.o.zk(this.$c); - a = this.o.offset; - if (this.tcb) - for (c = b ? this.$c : c; 0 < c; --c) { - this.o.offset += 8; - d = this.o.Md(); - this.o.offset += 6 * d; - } else this.o.offset += 8 * (b ? this.$c : c); - b ? this.zj(this.length - (this.o.offset - this.startOffset), this.o.offset) : this.zj(this.o.offset - a, a); - }; - H.prototype = Object.create(b.prototype); - H.prototype.constructor = H; - H.prototype.parse = function() { - this.Wf(); - return !0; - }; - H.prototype.yd = function(a, b, c) { - c ? this.zj(b - a, this.startOffset + 12 + a) : this.zj(a, this.startOffset + 12); - return !0; - }; - P.prototype = Object.create(b.prototype); - P.prototype.constructor = P; - P.prototype.parse = function() { - this.Wf(); - this.o.BL(); - 1 === this.version && this.o.Ua(); - this.Il = this.o.Ua(); - this.AH = []; - for (var a = 0; a < this.Il; ++a) - for (var b = this.o.Ua(), c = this.o.Ua(), d = 0; d < b; ++d) this.AH.push(c); - return !0; - }; - P.prototype.yd = function(a, b) { - this.AH = b ? this.AH.slice(0, a) : this.AH.slice(a); - a = this.AH.reduce(function(a, b) { - 0 !== a.length && a[a.length - 1].group === b || a.push({ - group: b, - count: 0 - }); - ++a[a.length - 1].count; - return a; - }, []); - this.o.offset = this.startOffset + 16 + (1 === this.version ? 4 : 0); - this.o.zk(a.length); - a.forEach(function(a) { - this.o.zk(a.count); - this.o.zk(a.group); - }.bind(this)); - this.Il > a.length && this.zj(8 * (this.Il - a.length)); - this.Il = a.length; - return !0; - }; - Pa.prototype = Object.create(b.prototype); - Pa.prototype.constructor = Pa; - Pa.prototype.parse = function() { - return !0; - }; - c = { - ic: { - encv: B, - free: g, - moov: l, - trak: h, - mdia: h, - mdhd: r, - minf: h, - pssh: k, - schi: h, - sidx: u, - sinf: h, - stbl: h, - stsd: w, - tenc: V, - mvex: h, - trex: D, - moof: X, - traf: U, - tfhd: ea, - trun: ka, - sbgp: P, - sdtp: H, - saiz: ua, - saio: la, - tfdt: ia, - mdat: Pa, - vmaf: v - }, - Gbb: { - vpcC: ba, - SmDm: ha("smdm"), - CoLL: ha("coll") - }, - eNa: { - mp4a: y, - "ac-3": C, - "ec-3": C, - esds: n, - dac3: F, - dec3: N - }, - Hl: { - base: d, - 3: q, - 4: Z, - 5: O - } - }; - c.ic[na.DAa] = m; - c.ic[na.EAa] = p; - c.ic[na.CBa] = V; - c.ic[na.bU] = S; - c.ic[na.aU] = da; - c.ic[na.Q$] = A; - f.P = c; - }, function(f, c, a) { - var l, g, m, p, r; - - function b(a) { - return void 0 === a ? !0 : a; - } - - function d(a, c) { - this.Mr = a.Sa; - this.Bc = a.Da || 0; - this.iGa = a.cs; - this.SKa = a.lj; - this.JKa = a.rh; - this.xl = a.M; - this.Lf = a.O; - this.Hr = a.ib || a.id; - this.XHa = a.FO; - this.uGa = a.J; - this.jLa = a.je; - this.Yu = a.profile || a.le; - this.If = a.bc; - this.yKa = a.$k; - this.Ye = b(a.Ye); - this.inRange = b(a.inRange); - this.Cz = a.Cz; - this.Ok = b(a.Ok); - this.ZQ = !!a.ZQ; - this.tG = a.tG; - this.ma = a.ma; - this.T = a.T; - this.Wb = this.location = void 0; - this.V = c; - } - - function h() { - l(!1); - } - l = a(21); - g = a(44); - m = a(13); - p = a(79).Mba; - r = a(67); - d.prototype = {}; - Object.defineProperties(d.prototype, { - B_a: { + Cx: { + configurable: !0, + enumerable: !0, get: function() { - return !0; + return this.Ba.Cx; }, - set: h + set: function(a) { + this.Ba.Cx = a; + } }, - Sa: { + kS: { + configurable: !0, + enumerable: !0, get: function() { - return this.Mr; + return this.Ba.kS; }, - set: h + set: function(a) { + this.Ba.kS = a; + } }, - Da: { + Fa: { + configurable: !0, + enumerable: !0, get: function() { - return this.Bc; + return this.Ba.Fa; }, - set: h + set: function(a) { + this.Ba.Fa = a; + } }, - cs: { + sr: { + configurable: !0, + enumerable: !0, get: function() { - return this.iGa; + return this.Ba.sr; }, - set: h + set: function(a) { + this.Ba.sr = a; + } }, - lj: { + lL: { + configurable: !0, + enumerable: !0, get: function() { - return this.SKa; + return this.Ba.lL; }, - set: h + set: function(a) { + this.Ba.lL = a; + } }, - rh: { + Ta: { + configurable: !0, + enumerable: !0, get: function() { - return this.JKa; + return this.Ba.Ta; }, - set: h + set: function(a) { + this.Ba.Ta = a; + } }, - M: { + na: { + configurable: !0, + enumerable: !0, get: function() { - return this.xl; - }, - set: h + return this.Ba.na; + } }, - O: { + R: { + configurable: !0, + enumerable: !0, get: function() { - return this.Lf; - }, - set: h + return this.Ba.R; + } }, - ib: { + uc: { + configurable: !0, + enumerable: !0, get: function() { - return this.Hr; + return this.Ba.uc; }, - set: h + set: function(a) { + this.Ba.uc = a; + } }, - id: { + xm: { + configurable: !0, + enumerable: !0, get: function() { - return this.Hr; - }, - set: h + return this.Ba.xm; + } }, - FO: { + hq: { + configurable: !0, + enumerable: !0, get: function() { - return this.XHa; - }, - set: h + return this.Ba.hq; + } }, - J: { + Is: { + configurable: !0, + enumerable: !0, get: function() { - return this.uGa; - }, - set: h + return this.Ba.Is; + } }, - je: { + mj: { + configurable: !0, + enumerable: !0, get: function() { - return this.jLa; - }, - set: h + return this.Ba.mj; + } }, - profile: { + df: { + configurable: !0, + enumerable: !0, get: function() { - return this.Yu; - }, - set: h + return this.Ba.df; + } }, - le: { + Vu: { + configurable: !0, + enumerable: !0, get: function() { - return this.Yu; - }, - set: h + return this.Ba.Vu; + } }, - bc: { + qo: { + configurable: !0, + enumerable: !0, get: function() { - return this.If || this.lLa(); - }, - set: h + return this.Ba.qo; + } }, - $k: { + Bj: { + configurable: !0, + enumerable: !0, get: function() { - return this.yKa; - }, - set: h + return this.Ba.Bj; + } }, - jb: { + $h: { + configurable: !0, + enumerable: !0, get: function() { - return this.T && this.T.jb; - }, - set: h + return this.Ba.$h; + } }, - VVa: { + YT: { + configurable: !0, + enumerable: !0, get: function() { - return this.If.jb; - }, - set: h + return this.Ba.YT; + } }, - UVa: { + Hx: { + configurable: !0, + enumerable: !0, get: function() { - return this.If.Bf; - }, - set: h + return this.Ba.Hx; + } }, - Kn: { + ka: { + configurable: !0, + enumerable: !0, get: function() { - return this.If.Bf; - }, - set: h + return this.Ba.ka; + } }, - Mn: { + Qf: { + configurable: !0, + enumerable: !0, get: function() { - return this.If.jb; - }, - set: h + return this.Ba.Qf; + } }, - pla: { + Tm: { + configurable: !0, + enumerable: !0, get: function() { - return this.If.hh; - }, - set: h + return this.Ba.Tm; + } }, - X: { + TC: { + configurable: !0, + enumerable: !0, get: function() { - return 0; + return this.Ba.TC; }, - set: h - } - }); - d.pja = function(a, b, c, h, f, l, r) { - var u, x, v, y; - u = b[["audio_tracks", "video_tracks"][c]][h].streams[f]; - x = u.content_profile; - v = c === m.G.AUDIO ? b.video_tracks.length + h : h; - y = c === m.G.VIDEO ? new p(u.framerate_scale, u.framerate_value) : l && l.bc; - return new d(g(l, { - Sa: b, - M: 1 * b.movieId, - id: u.downloadable_id, - J: u.bitrate, - je: u.vmaf, - le: x, - bc: y, - $k: u.sidx, - Da: a, - O: c, - cs: v, - lj: h, - rh: f, - FO: -1 == x.indexOf("none") - }), r); - }; - d.prototype.lLa = function() { - return this.Lf === m.G.VIDEO ? new p(24, 1001) : new p(3072, 24E3); - }; - d.prototype.Vi = function(a) { - return new r(this, this.T.get(a)); - }; - d.prototype.Nja = function(a) { - var b, c, d; - b = this.Vi(a.index); - if (a.Lc) { - c = a.Lc; - if (this.O === m.G.VIDEO && this !== a.stream) { - if (b.Fh.some(function(a, b) { - d = b; - return a.Rd === c.Rd; - })) c = b.Fh[d]; - else return b; + set: function(a) { + this.Ba.TC = a; } - b.oq(c, a.mi !== a.fa); - b.JH(a.Ut); - } - return b; - }; - d.prototype.y9a = function(a) { - this.If = a; - }; - d.prototype.toJSON = function() { - return { - M: this.M, - O: this.O, - ib: this.ib, - J: this.J - }; - }; - d.prototype.toString = function() { - return (0 === this.O ? "a" : "v") + ":" + this.ib + ":" + this.J; - }; - f.P = d; - }, function(f) { - f.P = function(c, a) { - var b; - if (!Array.isArray(c.kha)) return c; - b = Object.create(c); - c.kha.forEach(function(c) { - if (void 0 !== c.H2a && a.duration >= c.H2a && c.config) - for (var d in c.config) b[d] = c.config[d]; - }); - return b; - }; - }, function(f, c, a) { - (function() { - var O1c, m, p, r, u, v, k, w, n9W, P9W; - - function b(a, b, c) { - var z1c, d, g, h; - z1c = 2; - while (z1c !== 3) { - switch (z1c) { - case 5: - a.some(function(a) { - var X1c, c; - X1c = 2; - while (X1c !== 6) { - switch (X1c) { - case 4: - X1c = b <= c ? 3 : 9; - break; - case 3: - return d = h && c !== g ? h + (a - h) / (c - g) * (b - g) : a, !0; - break; - case 2: - c = a.b; - a = a.m; - X1c = 4; - break; - case 9: - g = c; - d = h = a; - return !1; - break; - } - } - }); - z1c = 4; - break; - case 2: - z1c = 1; - break; - case 4: - return d; - break; - case 1: - z1c = c ? 5 : 9; - break; - case 9: - a.some(function(a) { - var k1c; - k1c = 2; - while (k1c !== 5) { - switch (k1c) { - case 2: - d = a.m; - return b <= a.b; - break; - } - } - }); - z1c = 4; - break; - } - } - } - - function g(a, b) { - var u7c; - u7c = 2; - while (u7c !== 7) { - switch (u7c) { - case 5: - this.tGa = r(a.Cl.threshold || 6E3, 1, 1E5); - this.sGa = r(a.Cl.gamma || 1, .1, 10); - this.lda = a.Cl.filter; - u7c = 9; - break; - case 9: - this.zKa = !!a.Cl.simpleScaling; - a.Cl.niqrfilter && a.Cl.niqrcurve && (this.cW = a.Cl.niqrfilter, this.JIa = u(a.Cl.niqrcurve, 1, 0, 4)); - u7c = 7; - break; - case 2: - h.call(this, a, b); - Array.isArray(a.Cl.curves) ? (this.Zca = u(a.Cl.curves[0], 0, 0, 1), this.Yca = u(a.Cl.curves[1], 0, 0, 1)) : this.Xca = u(a.Cl.curves, 0, 0, 1); - u7c = 5; - break; - } - } - } - O1c = 2; - while (O1c !== 25) { - n9W = "me"; - n9W += "d"; - n9W += "i"; - n9W += "a|ase"; - n9W += "js"; - P9W = "A"; - P9W += "SE"; - P9W += "JS_PREDICTOR"; - switch (O1c) { - case 2: - m = a(10); - a(13); - O1c = 4; - break; - case 4: - new(a(9)).Console(P9W, n9W); - p = a(35); - r = p.FE; - O1c = 8; - break; - case 8: - u = p.Mga; - v = p.Hia; - k = p.KUa; - O1c = 14; - break; - case 15: - g.prototype.wea = function(a, b) { - var n7c; - n7c = 2; - while (n7c !== 1) { - switch (n7c) { - case 2: - return c(this.H, a, b); - break; - case 4: - return c(this.H, a, b); - break; - n7c = 1; - break; - } - } - }; - g.prototype.xea = function(a, b) { - var Q7c, c, d, g; - Q7c = 2; - while (Q7c !== 13) { - switch (Q7c) { - case 2: - c = a.ia && a.ia.ta || 0; - Q7c = 5; - break; - case 5: - d = Math.pow(Math.max(1 - (a[this.lda] && a[this.lda].ta || c) / this.tGa, 0), this.sGa); - g = b.Qi - b.me; - Q7c = 3; - break; - case 3: - Q7c = a.fpa ? 9 : 8; - break; - case 8: - this.Xca ? d *= v(this.Xca, g, d) : this.zKa ? (b = v(this.Zca, g, 1), g = v(this.Yca, g, 1), d = b * d + g * (1 - d)) : d = v(w(this.Zca, this.Yca, d), g, 1); - a = this.cW && a[this.cW] && a[this.cW].ut; - void 0 !== a && (a = k(this.JIa, a), d = Math.min(d * a, 1)); - v7AA.t9W(0); - return this.uV(v7AA.J9W(c, 1, d)); - break; - case 9: - return this.uV((1 - a.fpa) * c); - break; - } - } - }; - f.P = function(a, b) { - var W7c, j7c, k9W; - W7c = 2; - while (W7c !== 5) { - k9W = "m"; - k9W += "a"; - k9W += "nifol"; - k9W += "d"; - switch (W7c) { - case 1: - return new g(a, b); - break; - case 2: - j7c = a.Y1; - W7c = j7c === k9W ? 1 : 4; - break; - case 14: - return new l(a, b); - break; - W7c = 5; - break; - case 4: - return new l(a, b); - break; - } - } - }; - O1c = 25; - break; - case 11: - l.prototype = Object.create(h.prototype); - l.prototype.yHa = function(a, c) { - var x7c, d, g; - x7c = 2; - while (x7c !== 8) { - switch (x7c) { - case 9: - return g; - break; - case 2: - d = this.H; - g = c ? d.NY : d.QX; - c = c ? d.OY : d.SX; - m.isArray(c) && (g = b(c, a.Qi - a.me, d.RX)); - x7c = 9; - break; - } - } - }; - l.prototype.wea = function(a, b) { - var S7c; - S7c = 2; - while (S7c !== 1) { - switch (S7c) { - case 4: - return c(this.H, a, b); - break; - S7c = 1; - break; - case 2: - return c(this.H, a, b); - break; - } - } - }; - l.prototype.xea = function(a, b) { - var P7c, c; - P7c = 2; - while (P7c !== 3) { - switch (P7c) { - case 2: - c = this.xKa(a, this.H); - a = a.ia ? a.ia.ta * (100 - this.yHa(b, c)) / 100 | 0 : 0; - return this.uV(a); - break; - } - } - }; - O1c = 18; - break; - case 14: - w = p.Gqa; - h.prototype.sB = function(a) { - var B7c; - B7c = 2; - while (B7c !== 1) { - switch (B7c) { - case 4: - this.iD = a; - B7c = 3; - break; - B7c = 1; - break; - case 2: - this.iD = a; - B7c = 1; - break; - } - } - }; - h.prototype.uV = function(a) { - var E7c, b, c; - E7c = 2; - while (E7c !== 9) { - switch (E7c) { - case 1: - b = this.H; - m.Ja(this.iD) ? c = a * (100 - b.AR) / 100 : (c = this.iD, c = a < 2 * c ? a / 2 : a - c); - b.v1 && this.Oda ? (b = this.Oda, a = Math.max(a < 2 * b ? a / 2 : a - b, c)) : a = c; - return a; - break; - case 2: - E7c = 1; - break; - } - } - }; - O1c = 11; - break; - case 18: - l.prototype.xKa = function(a, b) { - var R7c, c, d; - R7c = 2; - while (R7c !== 9) { - switch (R7c) { - case 3: - return c; - break; - case 2: - c = !1; - d = b.JE; - a.Gm ? c = !0 : b.J5 && a.ia && a.ia.ta < d ? c = !0 : a.Dq && (c = !0); - R7c = 3; - break; - } - } - }; - Object.create(l.prototype); - g.prototype = Object.create(h.prototype); - O1c = 15; - break; - } - } - - function l(a, b) { - var M7c; - M7c = 2; - while (M7c !== 1) { - switch (M7c) { - case 4: - h.call(this, a, b); - M7c = 0; - break; - M7c = 1; - break; - case 2: - h.call(this, a, b); - M7c = 1; - break; - } - } - } - - function c(a, b, c) { - var A1c; - A1c = 2; - while (A1c !== 5) { - switch (A1c) { - case 2: - b = b.ia ? b.ia.ta : 0; - return a.wNa ? (a = v(a.vNa, c.Qi - c.me, 1), b * (1 - a)) : b * a.AR / 100; - break; - } + }, + ud: { + configurable: !0, + enumerable: !0, + get: function() { + return this.C8.ud; } } - - function h(a, b) { - var V1c; - V1c = 2; - while (V1c !== 9) { - switch (V1c) { - case 2: - this.iD = null; - this.H = a; - this.Oda = b; - this.gpa = function(a, b) { - var i1c; - i1c = 2; - while (i1c !== 1) { - switch (i1c) { - case 4: - return this.wea(a, b); - break; - i1c = 1; - break; - case 2: - return this.wea(a, b); - break; - } - } - }.bind(this); - V1c = 3; - break; - case 3: - this.hpa = function(a, b) { - var w7c; - w7c = 2; - while (w7c !== 1) { - switch (w7c) { - case 4: - return this.xea(a, b); - break; - w7c = 1; - break; - case 2: - return this.xea(a, b); - break; - } - } - }.bind(this); - V1c = 9; - break; - } + }); + d.DNa = b; + }, function(g, d) { + Object.defineProperty(d, "__esModule", { + value: !0 + }); + d.Nba = "BandwidthMeterFactorySymbol"; + }, function(g, d) { + Object.defineProperty(d, "__esModule", { + value: !0 + }); + d.Sha = "TrickPlayManagerSymbol"; + }, function(g, d) { + Object.defineProperty(d, "__esModule", { + value: !0 + }); + g = d.fm || (d.fm = {}); + g[g.$M = 0] = "NOT_LOADED"; + g[g.LOADING = 1] = "LOADING"; + g[g.LOADED = 2] = "LOADED"; + g[g.qF = 3] = "LOAD_FAILED"; + g[g.Gfa = 4] = "PARSE_FAILED"; + }, function(g, d, a) { + var b, c; + Object.defineProperty(d, "__esModule", { + value: !0 + }); + b = a(86); + c = [137, 66, 73, 70, 13, 10, 26, 10]; + d.xib = function(a) { + var d, f; + if (!a) throw Error("invalid array buffer"); + d = new Uint8Array(a); + a = new b(d); + f = function(a) { + var b, f, d, g; + if (a.tk() < c.length + 4 + 4 + 4 + 44) throw Error("array buffer too short"); + c.forEach(function(b) { + if (b != a.Jf()) throw Error("BIF has invalid magic."); + }); + b = a.uK(); + if (0 < b) throw Error("BIF version in unsupported"); + f = a.uK(); + if (0 == f) throw Error("BIF has no frames."); + d = a.uK(); + g = a.re(44); + return { + version: b, + $gb: f, + oBa: d, + bmb: g + }; + }(a); + a = function(a) { + var g, k; + for (var b = [], c = 0; c <= f.$gb; c++) { + k = { + timestamp: a.uK(), + offset: a.uK() + }; + void 0 != g && b.push(d.subarray(g.offset, k.offset)); + g = k; } - } - }()); - }, function(f, c, a) { - var d; - - function b() { - this.Ki = void 0; - this.Ur = 0; - } - d = a(10); - b.prototype.ae = function() { - return 0 !== this.Ur && this.Ki ? { - p25: this.Ki.jh, - p50: this.Ki.Tf, - p75: this.Ki.kh, - c: this.Ur - } : null; - }; - b.prototype.qh = function(a) { - if (!(!d.Ja(a) && d.has(a, "p25") && d.has(a, "p50") && d.has(a, "p75") && d.has(a, "c") && d.isFinite(a.p25) && d.isFinite(a.p50) && d.isFinite(a.p75) && d.isFinite(a.c))) return this.Ki = void 0, this.Ur = 0, !1; - this.Ki = { - jh: a.p25, - Tf: a.p50, - kh: a.p75 - }; - this.Ur = a.c; - }; - b.prototype.get = function() { + return b; + }(a); return { - Om: this.Ki, - vo: this.Ur + vk: f, + images: a }; }; - b.prototype.set = function(a, b) { - this.Ki = a; - this.Ur = b; - }; - b.prototype.reset = function() { - this.Ki = void 0; - this.Ur = 0; - }; - b.prototype.toString = function() { - return "IQRHist(" + this.Ki + "," + this.Ur + ")"; - }; - f.P = b; - }, function(f) { - function c() {} - - function a(a) { - this.efa = a; - this.qk = []; - this.Vd = null; - } - c.prototype.clear = function() { - this.Qc = null; - this.size = 0; - }; - c.prototype.find = function(a) { - var c; - for (var b = this.Qc; null !== b;) { - c = this.Gi(a, b.data); - if (0 === c) return b.data; - b = b.Ae(0 < c); - } - return null; - }; - c.prototype.lowerBound = function(a) { - var g; - for (var b = this.Qc, c = this.iterator(), f = this.Gi; null !== b;) { - g = f(a, b.data); - if (0 === g) return c.Vd = b, c; - c.qk.push(b); - b = b.Ae(0 < g); - } - for (g = c.qk.length - 1; 0 <= g; --g) - if (b = c.qk[g], 0 > f(a, b.data)) return c.Vd = b, c.qk.length = g, c; - c.qk.length = 0; - return c; - }; - c.prototype.upperBound = function(a) { - for (var b = this.lowerBound(a), c = this.Gi; null !== b.data() && 0 === c(b.data(), a);) b.next(); - return b; - }; - c.prototype.min = function() { - var a; - a = this.Qc; - if (null === a) return null; - for (; null !== a.left;) a = a.left; - return a.data; - }; - c.prototype.max = function() { - var a; - a = this.Qc; - if (null === a) return null; - for (; null !== a.right;) a = a.right; - return a.data; - }; - c.prototype.iterator = function() { - return new a(this); - }; - c.prototype.Kc = function(a) { - for (var b = this.iterator(), c; null !== (c = b.next());) a(c); - }; - a.prototype.data = function() { - return null !== this.Vd ? this.Vd.data : null; - }; - a.prototype.next = function() { - var a; - if (null === this.Vd) { - a = this.efa.Qc; - null !== a && this.Xda(a); - } else if (null === this.Vd.right) { - do - if (a = this.Vd, this.qk.length) this.Vd = this.qk.pop(); - else { - this.Vd = null; - break; - } while (this.Vd.right === a); - } else this.qk.push(this.Vd), this.Xda(this.Vd.right); - return null !== this.Vd ? this.Vd.data : null; - }; - a.prototype.Tw = function() { - var a; - if (null === this.Vd) { - a = this.efa.Qc; - null !== a && this.Rda(a); - } else if (null === this.Vd.left) { - do - if (a = this.Vd, this.qk.length) this.Vd = this.qk.pop(); - else { - this.Vd = null; - break; - } while (this.Vd.left === a); - } else this.qk.push(this.Vd), this.Rda(this.Vd.left); - return null !== this.Vd ? this.Vd.data : null; - }; - a.prototype.Xda = function(a) { - for (; null !== a.left;) this.qk.push(a), a = a.left; - this.Vd = a; - }; - a.prototype.Rda = function(a) { - for (; null !== a.right;) this.qk.push(a), a = a.right; - this.Vd = a; - }; - f.P = c; - }, function(f, c, a) { - var d, h; + }, function(g, d, a) { + var r, u; function b(a) { - this.H = { - sG: a.maxc || 25, - IY: a.c || .5, - Vcb: a.w || 15E3, - dz: a.b || 5E3 - }; - d.call(this, this.H.Vcb, this.H.dz); - this.UD(); - } - d = a(101); - h = a(178).TDigest; - b.prototype = Object.create(d.prototype); - b.prototype.shift = function() { - var a; - a = this.$G(0); - d.prototype.shift.call(this); - null !== a && (this.ed.push(a, 1), this.Yr = !0); - return a; - }; - b.prototype.flush = function() { - var a; - a = this.get(); - this.ed.push(a, 1); - this.Yr = !0; - d.prototype.reset.call(this); - return a; - }; - b.prototype.get = function() { - return this.ska(); - }; - b.prototype.aq = function() { - var a; - a = this.ska(); - return { - min: a.min, - p10: a.WG, - p25: a.jh, - p50: a.Tf, - p75: a.kh, - p90: a.XG, - max: a.max, - centroidSize: a.ROa, - sampleSize: a.gx, - centroids: a.tf - }; - }; - b.prototype.ska = function() { - var a; - if (0 === this.ed.size()) return null; - a = this.ed.cf([0, .1, .25, .5, .75, .9, 1]); - if (a[2] === a[4]) return null; - if (this.Yr || !this.Gc) this.Yr = !1, this.Gc = { - min: a[0], - WG: a[1], - jh: a[2], - Tf: a[3], - kh: a[4], - XG: a[5], - max: a[6], - cf: this.ed.cf.bind(this.ed), - ROa: this.ed.size(), - gx: this.ed.n, - tf: this.MWa(), - aq: this.aq.bind(this) - }; - return this.Gc; - }; - b.prototype.MWa = function() { - var a; - if (0 === this.ed.size()) return null; - if (!this.Yr && this.Gc) return this.Gc.centroids; - a = this.ed.cf([.25, .75]); - if (a[0] === a[1]) return null; - this.ed.size() > this.H.sG && this.ed.Np(); - a = this.ed.sx(!1).map(function(a) { - return { - mean: a.Qd, - n: a.n - }; - }); - return JSON.stringify(a); - }; - b.prototype.size = function() { - return this.ed.size(); - }; - b.prototype.toString = function() { - return "btdtput(" + this.Uy + "," + this.Mb + "," + this.wg + "): " + this.ed.summary(); - }; - b.prototype.UD = function() { - this.ed = new h(this.H.IY, this.H.sG); - }; - f.P = b; - }, function(f, c, a) { - var d, h; - - function b(a, b, c, f) { - d.call(this, c, f); - this.xn = new h(a); - this.sIa = b; + return !(!a || !a.Wy && !a.pboc || !a.code && !a.code); } - d = a(101); - h = a(179); - b.prototype = Object.create(d.prototype); - b.prototype.shift = function() { - var a; - a = this.$G(0); - d.prototype.shift.call(this); - null !== a && this.xn.jX(a); - return a; - }; - b.prototype.flush = function() { - var a; - a = this.get(); - this.xn.jX(a); - d.prototype.reset.call(this); - return a; - }; - b.prototype.get = function() { - var a; - a = this.U_(); - return { - gx: this.Zz(), - Om: a, - ut: a.Tf ? (a.kh - a.jh) / a.Tf : void 0 - }; - }; - b.prototype.Zz = function() { - return this.xn.Zz(); - }; - b.prototype.U_ = function() { - return this.xn.Zz() < this.sIa ? { - jh: void 0, - Tf: void 0, - kh: void 0, - gx: void 0, - cf: void 0 - } : { - jh: this.xn.rs(25), - Tf: this.xn.rs(50), - kh: this.xn.rs(75), - gx: this.xn.Zz(), - cf: this.xn.rs.bind(this.xn) - }; - }; - b.prototype.toString = function() { - return "biqr(" + this.Uy + "," + this.Mb + "," + this.wg + ")"; - }; - f.P = b; - }, function(f, c, a) { - var h; - function b(a) { - this.TW = a; - this.reset(); + function c(a) { + return !(!a || !a.tc); } - function d(a) { - this.wg = new b(a); - this.Zb = 0; - this.zb = null; + function h(a) { + return !!(a instanceof Error); } - h = a(10); - b.prototype.Dea = function(a, b) { - this.ya += a; - this.wd += a; - this.pf += b; - this.yn.push({ - d: a, - Cp: b - }); - }; - b.prototype.Bea = function() { - var a; - for (; this.wd > this.TW;) { - a = this.yn.shift(); - this.pf -= a.Cp; - this.wd -= a.d; + + function k(a) { + switch (a) { + case "ACCOUNT_ON_HOLD": + return u.H.ALa; + case "STREAM_QUOTA_EXCEEDED": + return u.H.ELa; + case "INSUFFICICENT_MATURITY": + return u.H.GLa; + case "TITLE_OUT_OF_WINDOW": + return u.H.LLa; + case "CHOICE_MAP_ERROR": + return u.H.DLa; + case "BadRequest": + return u.H.ILa; + case "Invalid_SemVer_Format": + return u.H.HLa; + case "RESTRICTED_TO_TESTERS": + return u.H.KLa; + case "AGE_VERIFICATION_REQUIRED": + return u.H.BLa; + case "BLACKLISTED_IP": + return u.H.CLa; + case "DEVICE_EOL_WARNING": + return u.H.hY; + case "DEVICE_EOL_FINAL": + return u.H.Ifa; + case "INCORRECT_PIN": + return u.H.Jfa; + case "MOBILE_ONLY": + return u.H.JLa; + default: + return u.H.rda; } - }; - b.prototype.reset = function() { - this.yn = []; - this.ya = null; - this.wd = this.pf = 0; - }; - b.prototype.setInterval = function(a) { - this.TW = a; - this.Bea(); - }; - b.prototype.start = function(a) { - h.Ja(this.ya) && (this.ya = a); - }; - b.prototype.add = function(a, b, c) { - h.Ja(this.ya) && (this.ya = b); - b > this.ya && this.Dea(b - this.ya, 0); - this.Dea(c > this.ya ? c - this.ya : 0, a); - this.Bea(); - }; - b.prototype.get = function() { - return { - ta: Math.floor(8 * this.pf / this.wd), - cg: 0 - }; - }; - d.prototype.reset = function() { - this.wg.reset(); - this.Zb = 0; - this.zb = null; - }; - d.prototype.add = function(a, b, c) { - !h.Ja(this.zb) && c > this.zb && (b > this.zb && (this.Zb += b - this.zb), this.zb = null); - this.wg.add(a, b - this.Zb, c - this.Zb); - }; - d.prototype.start = function(a) { - !h.Ja(this.zb) && a > this.zb && (this.Zb += a - this.zb, this.zb = null); - this.wg.start(a - this.Zb); - }; - d.prototype.stop = function(a) { - this.zb = h.Ja(this.zb) ? a : Math.min(a, this.zb); - }; - d.prototype.get = function() { - return this.wg.get(); - }; - d.prototype.setInterval = function(a) { - this.wg.setInterval(a); - }; - f.P = { - seb: b, - Gwa: d - }; - }, function(f, c, a) { - var l; + } - function b(a, b) { - this.reset(); - this.H9a(a, b); + function f(a, b) { + return new r.Ub(a, k(b.code), "BadRequest" === b.code ? u.DX.IDa : void 0, b.code, void 0, b.display, void 0, b.detail, b.display, b.bladeRunnerCode ? Number(b.bladeRunnerCode) : void 0, b.alert); } - function d(a, b) { - this.mea = b; - this.mfa = 1.25; - this.setInterval(a); - this.reset(); + function p(a, b) { + return new r.Ub(a, b.tc, b.Ef, void 0, b.Ip, b.message, b.YB, b.data); } - function h(a, b) { - this.Gr = new d(a, b); - this.Zb = 0; - this.zb = null; + function m(a, b) { + return new r.Ub(a, u.H.qg, void 0, void 0, void 0, void 0, b.message, b.stack); } - l = a(10); - b.prototype.H9a = function(a, b) { - this.Gu = Math.pow(.5, 1 / a); - this.wD = a; - this.Ir = l.da(b) ? b : 0; - }; - b.prototype.reset = function(a) { - a && a.ta && l.da(a.ta) ? a.cg && l.da(a.cg) ? (this.Ah = this.Ir, this.$h = a.ta, this.un = a.cg + a.ta * a.ta) : (this.Ah = this.Ir, this.$h = a.ta, this.un = a.ta * a.ta) : this.un = this.$h = this.Ah = 0; - }; - b.prototype.add = function(a) { - var b; - if (l.da(a)) { - this.Ah++; - b = this.Ah > this.Ir ? this.Gu : 1 - 1 / this.Ah; - this.$h = b * this.$h + (1 - b) * a; - this.un = b * this.un + (1 - b) * a * a; - } - }; - b.prototype.get = function() { - var a, b, c; - if (0 === this.Ah) return { - ta: 0, - cg: 0 + Object.defineProperty(d, "__esModule", { + value: !0 + }); + r = a(45); + u = a(2); + d.ucb = b; + d.DFb = c; + d.qS = h; + d.vEb = k; + d.pp = function(a, d) { + return c(d) ? p(a, d) : b(d) ? f(a, d) : h(d) ? m(a, d) : new r.Ub(a, void 0, void 0, void 0, void 0, "Recieved an unexpected error type", void 0, d); + }; + d.wEb = f; + d.tEb = p; + d.uEb = m; + d.lZa = function(a, b, f) { + var c, d, g; + a = a.Tpa; + c = b.Qza[f]; + if (void 0 === c) throw { + Wy: !0, + code: "FAIL", + display: "Unable to build the URL for " + f + " because there was no configuration information", + detail: b }; - a = this.$h; - b = this.un; - if (0 === this.Ir) c = 1 - Math.pow(this.Gu, this.Ah), a = a / c, b = b / c; - c = a * a; - return { - ta: Math.floor(a), - cg: Math.floor(b > c ? b - c : 0) + d = c.version; + if (void 0 === d) throw { + Wy: !0, + code: "FAIL", + display: "Unable to build the URL for " + f + " because there was no version information", + detail: b }; - }; - b.prototype.ae = function() { - var a; - if (0 === this.Ah) return null; - a = { - a: Math.round(this.$h), - s: Math.round(this.un) + g = b.Xi && c.serviceNonMember ? c.serviceNonMember : c.service; + if (void 0 === g) throw { + Wy: !0, + code: "FAIL", + display: "Unable to build the URL for " + f + " because there was no service information", + detail: b }; - this.Ah < this.Ir && (a.c = this.Ah); - this.Ir || (a.n = this.Ah); - return a; - }; - b.prototype.qh = function(a) { - if (l.Ja(a) || !l.has(a, "a") || !l.has(a, "s") || !l.isFinite(a.a) || !l.isFinite(a.s)) return this.un = this.$h = this.Ah = 0, !1; - this.$h = a.a; - this.un = a.s; - this.Ir ? l.has(a, "c") && l.da(a.c) ? this.Ah = a.c : l.has(a, "n") && l.da(a.n) ? (this.Ah = a.n, a = 1 - Math.pow(this.Gu, a.n), this.$h /= a, this.un /= a) : this.Ah = this.Ir : l.has(a, "n") && l.da(a.n) ? this.Ah = a.n : this.Ah = 16 * this.wD; - return !0; - }; - d.prototype.setInterval = function(a) { - this.wD = a; - this.Gu = -Math.log(.5) / a; - }; - d.prototype.reset = function(a) { - this.ya = this.vc = null; - this.ZL = this.mea || 0; - a && l.isFinite(a.ta) ? (this.mD = 0, this.$h = a.ta) : this.$h = this.mD = 0; - }; - d.prototype.start = function(a) { - l.Ja(this.vc) && (this.ya = this.vc = a); - }; - d.prototype.add = function(a, b, c) { - var d, g; - l.Ja(this.vc) && (this.ya = this.vc = b); - this.vc = Math.min(this.vc, b); - this.ya < this.vc + this.ZL && c > this.vc + this.ZL && 0 < this.ya - this.vc && (this.$h = this.mD / (this.ya - this.vc)); - b = Math.max(c - b, 1); - a = 8 * a / b; - d = this.Gu; - g = c > this.ya ? c : this.ya; - this.$h = this.$h * (g > this.ya ? Math.exp(-d * (g - this.ya)) : 1) + a * (1 - Math.exp(-d * b)) * (c > g ? Math.exp(-d * (g - c)) : 1); - this.ya = g; - this.mD += a * b; + c = c.orgOverride; + if (void 0 === c && (c = b.Pwa, void 0 === c)) throw { + Wy: !0, + code: "FAIL", + display: "Unable to build the URL for " + f + " because there was no organization information", + detail: b + }; + return a + "/" + c + "/" + g + "/" + d + "/router"; }; - d.prototype.get = function(a) { - var b; - a = Math.max(a, this.ya); - b = this.$h * Math.exp(-this.Gu * (a - this.ya)); - 0 === this.ZL ? (a = 1 - Math.exp(-this.Gu * (a - this.vc)), 0 < a && (b /= a)) : null !== this.ya && this.ya <= this.vc + this.ZL && (a = this.mD / Math.max(this.ya - this.vc, 1), b = b < a * this.mfa && b > a / this.mfa ? b : a); + d.ZBb = function() { return { - ta: Math.floor(b) + "Content-Type": "text/plain" }; }; - d.prototype.toString = function() { - return "ewmav(" + this.wD + "," + this.mea + ")"; + d.kZa = function(a, b, f, c, d, g, m) { + return { + version: c.version, + url: b, + id: a, + esn: f, + languages: c.languages, + uiVersion: c.Kz, + clientVersion: d.version, + params: g, + echo: m + }; }; - h.prototype.setInterval = function(a) { - this.Gr.setInterval(a); + }, function(g, d) { + Object.defineProperty(d, "__esModule", { + value: !0 + }); + d.Qha = "TransportFactorySymbol"; + d.mfa = "MslTransportSymbol"; + d.tha = "SslTransportSymbol"; + }, function(g, d) { + Object.defineProperty(d, "__esModule", { + value: !0 + }); + d.dga = "PboDispatcherSymbol"; + }, function(g, d) { + Object.defineProperty(d, "__esModule", { + value: !0 + }); + g = d.Bi || (d.Bi = {}); + g.ed = { + Afa: "mr1", + zfa: "mr2", + Bfa: "mr3", + CF: "mr4", + pLa: "mr5", + vw: "mr6" + }; + g.Fb = { + UNSENT: 0, + OPENED: 1, + kt: 2, + yw: 3, + DONE: 5, + rq: 6, + Uv: 7, + name: "UNSENT OPENED SENT RECEIVING DONE FAILED ABORTED".split(" ") + }; + g.ozb = { + mba: 0, + Bw: 1, + sfa: 2, + name: ["ARRAYBUFFER", "STREAM", "NOTIFICATION"] + }; + g.Ss = { + NO_ERROR: -1, + NFa: 0, + Bca: 1, + ZFa: 2, + RFa: 3, + mEa: 4, + $ba: 5, + lW: 6, + nEa: 7, + oEa: 8, + pEa: 9, + jEa: 10, + lEa: 11, + Zba: 12, + kEa: 13, + iEa: 14, + PHa: 15, + yda: 16, + xda: 17, + zX: 18, + MM: 19, + AX: 20, + BX: 21, + RHa: 22, + NM: 23, + zda: 24, + QHa: 25, + UFa: 26, + OFa: 27, + IOa: 28, + EFa: 29, + FFa: 30, + GFa: 31, + HFa: 32, + IFa: 33, + JFa: 34, + KFa: 35, + LFa: 36, + MFa: 37, + PFa: 38, + QFa: 39, + SFa: 40, + TFa: 41, + VFa: 42, + WFa: 43, + XFa: 44, + YFa: 45, + $Fa: 46, + aGa: 47, + HOa: 48, + TIMEOUT: 49, + xX: 50, + vda: 51, + OHa: 52, + name: "DNS_ERROR DNS_TIMEOUT DNS_QUERY_REFUSED DNS_NOT_FOUND CONNECTION_REFUSED CONNECTION_TIMEOUT CONNECTION_CLOSED CONNECTION_RESET CONNECTION_RESET_ON_CONNECT CONNECTION_RESET_WHILE_RECEIVING CONNECTION_NET_UNREACHABLE CONNECTION_NO_ROUTE_TO_HOST CONNECTION_NETWORK_DOWN CONNECTION_NO_ADDRESS CONNECTION_ERROR HTTP_CONNECTION_ERROR HTTP_CONNECTION_TIMEOUT HTTP_CONNECTION_STALL HTTP_PROTOCOL_ERROR HTTP_RESPONSE_4XX HTTP_RESPONSE_420 HTTP_RESPONSE_5XX HTTP_TOO_MANY_REDIRECTS HTTP_TRANSACTION_TIMEOUT HTTP_MESSAGE_LENGTH_ERROR HTTP_HEADER_LENGTH_ERROR DNS_NOT_SUPPORTED DNS_EXPIRED SSL_ERROR DNS_BAD_FAMILY DNS_BAD_FLAGS DNS_BAD_HINTS DNS_BAD_NAME DNS_BAD_STRING DNS_CANCELLED DNS_CHANNEL_DESTROYED DNS_CONNECTION_REFUSED DNS_EOF DNS_FILE DNS_FORMAT_ERROR DNS_NOT_IMPLEMENTED DNS_NOT_INITIALIZED DNS_NO_DATA DNS_NO_MEMORY DNS_NO_NAME DNS_QUERY_MALFORMED DNS_RESPONSE_MALFORMED DNS_SERVER_FAILURE SOCKET_ERROR TIMEOUT HTTPS_CONNECTION_ERROR HTTPS_CONNECTION_TIMEOUT HTTPS_CONNECTION_REDIRECT_TO_HTTP".split(" ") + }; + }, function(g, d) { + Object.defineProperty(d, "__esModule", { + value: !0 + }); + d.bfa = "MediaHttpSymbol"; + }, function(g, d) { + Object.defineProperty(d, "__esModule", { + value: !0 + }); + d.Jga = "PrefetchEventsConfigSymbol"; + }, function(g, d) { + Object.defineProperty(d, "__esModule", { + value: !0 + }); + d.gia = "WindowUtilsSymbol"; + }, function(g, d) { + Object.defineProperty(d, "__esModule", { + value: !0 + }); + d.wfa = "NfCryptoSymbol"; + }, function(g, d) { + Object.defineProperty(d, "__esModule", { + value: !0 + }); + d.Cea = "LogDisplayConfigSymbol"; + }, function(g, d) { + Object.defineProperty(d, "__esModule", { + value: !0 + }); + d.Tca = "DxManagerSymbol"; + d.Sca = "DxManagerProviderSymbol"; + }, function(g, d, a) { + var c, h, k, f, p; + + function b(a, b, c) { + this.mc = a; + this.is = b; + this.prefix = c; + this.lK = this.Gl = !1; + this.cna = new f.aQa(b); + } + Object.defineProperty(d, "__esModule", { + value: !0 + }); + g = a(0); + c = a(1); + h = a(22); + k = a(23); + f = a(594); + p = a(6); + d.xEa = "position:fixed;left:0px;top:0px;right:0px;bottom:100px;z-index:1;background-color:rgba(255,255,255,.65)"; + d.yEa = "position:fixed;left:100px;top:30px;right:100px;bottom:210px;z-index:9999;color:#000;overflow:auto;box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.2), 0 5px 5px 0 rgba(0, 0, 0, 0.24);background-color:rgba(255,255,255,.65);"; + d.zEa = "position:fixed;left:100px;right:100px;height=30px;bottom:130px;z-index:9999;color:#000;overflow:auto;box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.2), 0 5px 5px 0 rgba(0, 0, 0, 0.24);background-color:rgba(255,255,255,.65);"; + d.UE = ""; + b.prototype.show = function() { + this.Gl || (this.e0a(), this.RB && p.wd.body.appendChild(this.RB), this.sf && p.wd.body.appendChild(this.sf), this.cH && p.wd.body.appendChild(this.cH), this.wz && p.wd.getElementsByTagName("head")[0].appendChild(this.wz), this.Gl = !0, this.refresh()); }; - h.prototype.reset = function(a) { - this.Gr.reset(a); - this.Zb = 0; - this.zb = null; + b.prototype.ey = function() { + this.Gl && (this.sf && p.wd.body.removeChild(this.sf), this.cH && p.wd.body.removeChild(this.cH), this.RB && p.wd.body.removeChild(this.RB), this.wz && p.wd.getElementsByTagName("head")[0].removeChild(this.wz), this.wz = this.nL = this.RB = this.cH = this.sf = void 0, this.Gl = !1); }; - h.prototype.start = function(a) { - !l.Ja(this.zb) && a > this.zb && (this.Zb += a - this.zb, this.zb = null); - this.Gr.start(a - this.Zb); + b.prototype.toggle = function() { + this.Gl ? this.ey() : this.show(); }; - h.prototype.add = function(a, b, c) { - !l.Ja(this.zb) && c > this.zb && (this.Zb += b > this.zb ? b - this.zb : 0, this.zb = null); - this.Gr.add(a, b - this.Zb, c - this.Zb); + b.prototype.Gqb = function() { + (this.lK = !this.lK) || this.refresh(); }; - h.prototype.stop = function(a) { - this.zb = Math.max(l.Ja(this.Gr.ya) ? 0 : this.Gr.ya + this.Zb, l.Ja(this.zb) ? a : Math.min(this.zb, a)); + b.prototype.q8a = function(a) { + return "table." + a + '-display-table {border-collapse:collapse;font-family:"Lucida Console", Monaco, monospace;font-size:small}' + ("table." + a + "-display-table tr:nth-child(2n+2) {background-color: #EAF3FF;}") + ("table." + a + "-display-table tr:nth-child(2n+3) {background-color: #fff;}") + ("table." + a + "-display-table tr:nth-child(0n+1) {background-color: lightgray;}") + ("table." + a + "-display-table, th, td {padding: 2px;text-align: left;vertical-align: top;border-right:solid 1px gray;border-left:solid 1px gray;}") + ("table." + a + "-display-table, th {border-top:solid 1px gray;border-bottom:solid 1px gray}") + ("span." + a + "-display-indexheader {margin-left:5px;}") + ("span." + a + "-display-indexvalue {margin-left:5px;}") + ("span." + a + "-display-keyheader {margin-left:5px;}") + ("span." + a + "-display-keyvalue {margin-left:5px;}") + ("span." + a + "-display-valueheader {margin-left:5px;}") + ("ul." + a + "-display-tree {margin-top: 0px;margin-bottom: 0px;margin-right: 5px;margin-left: -20px;}") + ("ul." + a + "-display-tree li {list-style-type: none; position: relative;}") + ("ul." + a + "-display-tree li ul {display: none;}") + ("ul." + a + "-display-tree li.open > ul {display: block;}") + ("ul." + a + "-display-tree li a {color: black;text-decoration: none;}") + ("ul." + a + "-display-tree li a:before {height: 1em;padding: 0 .1em;font-size: .8em;display: block;position: absolute;left: -1.3em;top: .2em;}") + ("ul." + a + "-display-tree li > a:not(:last-child):before {content: '+';}") + ("ul." + a + "-display-tree li.open > a:not(:last-child):before {content: '-';}") + ("div." + a + "-display-div {float:right;display:flex;align-items:center;height:30px;width:130px;margin:10px;background-color:#C6CCD2;transition: all 200ms ease-in-out 0s;border-radius:6px;font-weight:300;font-size:16px;border-style:none;}") + ("button." + a + "-display-btn {float:right;display:inline-block;height:30px;width:100px;padding:3px;margin:10px;background-color:#C6CCD2;transition: all 200ms ease-in-out 0s;border-radius:6px;font-weight:300;font-size:16px;border-style:none;}") + ("select." + a + "-display-select {float:right;display:inline-block;height:30px;width:100px;padding:3px;margin:10px;background-color:#C6CCD2;transition: all 200ms ease-in-out 0s;border-radius:6px;font-weight:300;font-size:16px;border-style:none;}") + ("ul." + a + "-display-item-inline {margin:0;padding:0}") + ("." + a + "-display-btn:hover, ." + a + "-display-btn:focus, ." + a + "-display-btn:active {background: none repeat scroll 0 0 #B8BFC7 !important; }") + ("button." + a + "-display-btn-inline {float:right;display:inline-block;height:20px;width:40px;background-color:#C6CCD2;transition: all 200ms ease-in-out 0s;border-radius:6px;font-weight:300;font-size:12px;border-style:none;padding:0;color:palevioletred;background:rgba(0,0,0,0)}") + ("." + a + "-display-btn-inline:hover, ." + a + "-display-btn-inline:focus, ." + a + "-display-btn-inline:active {background: none repeat scroll 0 0 #B8BFC7 !important; }"); }; - h.prototype.get = function(a) { - return this.Gr.get((l.Ja(this.zb) ? a : this.zb) - this.Zb); + b.prototype.e0a = function() { + var a; + a = this; + this.wz = p.wd.createElement("style"); + this.wz.type = "text/css"; + this.wz.innerHTML = this.q8a(this.prefix); + this.cH = this.mc.createElement("div", d.xEa, void 0, { + "class": this.prefix + "-display-blur" + }); + this.sf = this.mc.createElement("div", d.yEa, void 0, { + "class": this.prefix + "-display" + }); + this.RB = this.mc.createElement("div", d.zEa, void 0, { + "class": this.prefix + "-display" + }); + this.ira().forEach(function(b) { + return a.RB.appendChild(b); + }); }; - h.prototype.toString = function() { - return this.Gr.toString(); + b.prototype.f0a = function(a) { + a = this.mc.createElement("div", "", a, { + "class": this.prefix + "-display-tree1" + }); + for (var b = a.querySelectorAll("ul." + this.prefix + "-display-tree a:not(:last-child)"), f = 0; f < b.length; f++) b[f].addEventListener("click", function(a) { + var b, f; + if (a = a.target.parentElement) { + b = a.classList; + if (b.contains("open")) { + b.remove("open"); + try { + f = a.querySelectorAll(":scope .open"); + for (a = 0; a < f.length; a++) f[a].classList.remove("open"); + } catch (w) {} + } else b.add("open"); + } + }); + return a; }; - f.P = { - Hwa: b, - teb: d, - Fwa: h + b.prototype.refresh = function() { + var a; + a = this; + return !this.Gl || this.lK ? Promise.resolve() : this.vya().then(function(b) { + if (b && (b = a.f0a(b), a.sf)) { + a.nL && (a.sf.removeChild(a.nL), a.nL = void 0); + a.nL = b; + a.sf.appendChild(a.nL); + b = a.sf.querySelectorAll("button." + a.prefix + "-display-btn-inline"); + for (var f = 0; f < b.length; ++f) b[f].addEventListener("click", a.gza); + (b = a.sf.querySelector("#" + a.prefix + "-display-close-btn")) && b.addEventListener("click", function() { + a.toggle(); + }); + } + }); }; - }, function(f, c, a) { - f.P = { - mnb: a(278), - Psb: a(277), - ceb: a(516), - beb: a(276), - deb: a(275), - z8: a(510) + b.prototype.foa = function(a) { + var b; + if (p.wd.queryCommandSupported && p.wd.queryCommandSupported("copy")) { + b = p.wd.createElement("textarea"); + b.textContent = a; + b.style.position = "fixed"; + p.wd.body.appendChild(b); + b.select(); + try { + p.wd.execCommand("copy"); + } catch (u) { + console.warn("Copy to clipboard failed.", u); + } finally { + p.wd.body.removeChild(b); + } + } }; - }, function(f) { - var p, r, u, v, k, w; - - function c() { - throw Error("setTimeout has not been defined"); - } - - function a() { - throw Error("clearTimeout has not been defined"); - } + a = b; + a = g.__decorate([c.N(), g.__param(0, c.l(h.Je)), g.__param(1, c.l(k.ve)), g.__param(2, c.Jg())], a); + d.mN = a; + }, function(g, d) { + Object.defineProperty(d, "__esModule", { + value: !0 + }); + d.Rca = "DxDisplaySymbol"; + }, function(g, d) { + Object.defineProperty(d, "__esModule", { + value: !0 + }); + d.nY = { + hJ: "keepAlive", + resume: "resume", + pause: "pause", + splice: "splice" + }; + d.ega = "PboEventSenderSymbol"; + }, function(g, d) { + Object.defineProperty(d, "__esModule", { + value: !0 + }); + d.Bga = "PlaydataConfigSymbol"; + }, function(g, d) { + Object.defineProperty(d, "__esModule", { + value: !0 + }); + d.cga = "PboCachedPlaydataSymbol"; + }, function(g, d) { + Object.defineProperty(d, "__esModule", { + value: !0 + }); + d.gga = "PboLicenseResponseTransformerSymbol"; + }, function(g, d) { + Object.defineProperty(d, "__esModule", { + value: !0 + }); + d.fga = "PboLicenseRequestTransformerSymbol"; + }, function(g, d) { + Object.defineProperty(d, "__esModule", { + value: !0 + }); + d.pga = "PboReleaseLicenseCommandSymbol"; + }, function(g, d, a) { + var f, p, m, r, u, x; function b(a) { - if (p === setTimeout) return setTimeout(a, 0); - if ((p === c || !p) && setTimeout) return p = setTimeout, setTimeout(a, 0); - try { - return p(a, 0); - } catch (x) { - try { - return p.call(null, a, 0); - } catch (y) { - return p.call(this, a, 0); + var b; + a = new m(a); + if (1481462272 != a.Ea()) throw Error("Invalid header"); + b = { + XMR: { + Version: a.Ea(), + RightsID: a.Lk(16) } - } + }; + c(a, b.XMR, a.buffer.byteLength); + return b; } - function d(b) { - if (r === clearTimeout) clearTimeout(b); - else if (r !== a && r || !clearTimeout) try { - r(b); - } catch (x) { - try { - r.call(null, b); - } catch (y) { - r.call(this, b); + function c(a, b, f) { + var d, g, m, p, r; + for (; a.position < f;) { + d = a.xb(); + g = a.Ea(); + g = g - 8; + switch (d) { + case 1: + m = "OuterContainer"; + break; + case 2: + m = "GlobalPolicy"; + break; + case 3: + m = "MinimumEnvironment"; + break; + case 4: + m = "PlaybackPolicy"; + break; + case 5: + m = "OutputProtection"; + break; + case 6: + m = "UplinkKID"; + break; + case 7: + m = "ExplicitAnalogVideoOutputProtectionContainer"; + break; + case 8: + m = "AnalogVideoOutputConfiguration"; + break; + case 9: + m = "KeyMaterial"; + break; + case 10: + m = "ContentKey"; + break; + case 11: + m = "Signature"; + break; + case 12: + m = "DeviceIdentification"; + break; + case 13: + m = "Settings"; + break; + case 18: + m = "ExpirationRestriction"; + break; + case 42: + m = "ECCKey"; + break; + case 48: + m = "ExpirationAfterFirstPlayRestriction"; + break; + case 50: + m = "PlayReadyRevocationInformationVersion"; + break; + case 51: + m = "EmbeddedLicenseSettings"; + break; + case 52: + m = "SecurityLevel"; + break; + case 54: + m = "PlayEnabler"; + break; + case 57: + m = "PlayEnablerType"; + break; + case 85: + m = "RealTimeExpirationRestriction"; + break; + default: + m = "Other"; } - } else r = clearTimeout, clearTimeout(b); - } - - function h() { - v && k && (v = !1, k.length ? u = k.concat(u) : w = -1, u.length && l()); - } - - function l() { - var a; - if (!v) { - a = b(h); - v = !0; - for (var c = u.length; c;) { - k = u; - for (u = []; ++w < c;) k && k[w].zQ(); - w = -1; - c = u.length; + p = { + Type: h(d) + }; + r = b[m]; + r ? x.isArray(r) ? r.push(p) : (b[m] = [], b[m].push(r), b[m].push(p)) : b[m] = p; + switch (d) { + case 1: + case 2: + case 4: + case 7: + case 9: + case 54: + c(a, p, a.position + g); + break; + case 5: + p.Reserved1 = a.xb(); + p.MinimumUncompressedDigitalVideoOutputProtectionLevel = a.xb(); + p.MinimumAnalogVideoOutputProtectionLevel = a.xb(); + p.Reserved2 = a.xb(); + p.MinimumUncompressedDigitalAudioOutputProtectionLevel = a.xb(); + break; + case 10: + p.Reserved = a.Lk(16); + p.SymmetricCipherType = a.xb(); + p.AsymmetricCipherType = a.xb(); + g = a.xb(); + p.EncryptedKeyLength = g; + d = a.Lk(g); + p.EncryptedKeyData = 10 >= g ? d : d.substring(0, 4) + "..." + d.substring(d.length - 4, d.length); + break; + case 11: + p.SignatureType = a.Lk(2); + g = a.xb(); + d = a.Lk(g); + p.SignatureData = 10 >= g ? d : d.substring(0, 4) + "..." + d.substring(d.length - 4, d.length); + break; + case 13: + p.Reserved = a.xb(); + break; + case 18: + p.BeginDate = a.Ea(); + p.EndDate = a.Ea(); + break; + case 42: + p.CurveType = a.Lk(2); + g = a.xb(); + d = a.Lk(g); + p.Key = 10 >= g ? d : d.substring(0, 4) + "..." + d.substring(d.length - 4, d.length); + break; + case 48: + p.ExpireAfterFirstPlay = a.Ea(); + break; + case 50: + p.Sequence = a.Ea(); + break; + case 51: + p.LicenseProcessingIndicator = a.xb(); + break; + case 52: + p.MinimumSecurityLevel = a.xb(); + break; + case 57: + p.PlayEnablerType = k(a.Lk(16)); + break; + case 85: + break; + default: + p.OtherData = a.Lk(g); } - k = null; - v = !1; - d(a); } } - function g(a, b) { - this.gWa = a; - this.Jn = b; + function h(a) { + return "0x" + a.toString(16); } - function m() {} - f = f.P = {}; - try { - p = "function" === typeof setTimeout ? setTimeout : c; - } catch (G) { - p = c; - } - try { - r = "function" === typeof clearTimeout ? clearTimeout : a; - } catch (G) { - r = a; + function k(a) { + return a.substring(6, 8) + a.substring(4, 6) + a.substring(2, 4) + a.substring(0, 2) + "-" + a.substring(10, 12) + a.substring(8, 10) + "-" + a.substring(14, 16) + a.substring(12, 14) + "-" + a.substring(16, 20) + "-" + a.substring(20, 32); } - u = []; - v = !1; - w = -1; - f.tqb = function(a) { - var c; - c = Array(arguments.length - 1); - if (1 < arguments.length) - for (var d = 1; d < arguments.length; d++) c[d - 1] = arguments[d]; - u.push(new g(a, c)); - 1 !== u.length || v || b(l); - }; - g.prototype.zQ = function() { - this.gWa.apply(null, this.Jn); - }; - f.title = "browser"; - f.klb = !0; - f.DUa = {}; - f.Pkb = []; - f.version = ""; - f.Ktb = {}; - f.on = m; - f.addListener = m; - f.once = m; - f.Fqb = m; - f.removeListener = m; - f.removeAllListeners = m; - f.emit = m; - f.qrb = m; - f.rrb = m; - f.listeners = function() { - return []; - }; - f.ilb = function() { - throw Error("process.binding is not supported"); - }; - f.lmb = function() { - return "/"; - }; - f.Clb = function() { - throw Error("process.chdir is not supported"); - }; - f.xtb = function() { - return 0; - }; - }, function(f, c, a) { - var b, d; - Object.defineProperty(c, "__esModule", { + Object.defineProperty(d, "__esModule", { value: !0 }); - b = a(3); - d = { - Va: { - CLOSED: 0, - OPEN: 1, - PS: 2, - name: ["CLOSED", "OPEN", "ENDED"] + f = a(5); + p = a(3); + m = a(86); + r = a(128); + u = a(189); + x = a(15); + d.gDb = function(a, c, d) { + switch (c) { + case f.HW: + a && (a = p.LYa(a), u.yCa(a, function(a) { + a.S && (a = a.object) && (a = r.M8a(a, "Body", "AcquireLicenseResponse", "AcquireLicenseResult", "Response", "LicenseResponse", "Licenses", "License")) && (a = r.vib(a)) && (a = p.hk(a)) && (a = b(a)) && d(a); + })); } }; - c.fAa = Object.assign(function(c) { - var h, g; - h = a(9); - b.Cc("MediaSourceASE").trace("Inside MediaSourceASE"); - g = c.R_(); - this.readyState = d.Va.CLOSED; - this.sourceBuffers = g.sourceBuffers; - this.addSourceBuffer = function(a) { - return g.addSourceBuffer(a); - }; - this.kX = function(a) { - return g.kX(a); - }; - this.removeSourceBuffer = function(a) { - return g.removeSourceBuffer(a); - }; - this.ym = function(a) { - return g.ym(a); - }; - this.sourceId = h.HF(); - h.WF(); - this.duration = void 0; - g.p9a(this.sourceId); - this.readyState = d.Va.OPEN; - }, d); - }, function(f, c, a) { - var b, d, h; - Object.defineProperty(c, "__esModule", { + d.hDb = b; + d.iDb = c; + d.kDb = h; + d.jDb = k; + }, function(g, d) { + Object.defineProperty(d, "__esModule", { value: !0 }); - b = a(3); - d = a(6); - h = a(28); - c.oBa = function() { - b.Cc("OpenConnectSideChannel"); - return { - zF: function(a, b, c) { - h.Za.h$a({ - url: a.url, - A8a: c - }); - }, - e6: d.Gb - }; - }(); - }, function(f, c, a) { - var d, h, l, g, m; - - function b(a) { - var G; - for (var b = l.T4a(a), c, f, p, k = 0; k < b.length; k += 2) { - c = b[k]; - if ("moof" != c.type || "mdat" != b[k + 1].type) throw l.log.error("data is not moof-mdat box pairs", { - boxType: c.type, - nextBoxType: b[k + 1].type - }), Error("data is not moof-mdat box pairs"); - if (d.config.$cb && "moof" == c.type && (f = c.$p("traf/saio"), p = c.$p("traf/" + h.xua), f && p && (p = p.nNa.byteOffset - c.raw.byteOffset, f.Cqa[0] != p))) { - l.log.error("Repairing bad SAIO", { - saioOffsets: f.Cqa[0], - auxDataOffsets: p - }); - G = f; - f = p; - p = new g(G.raw); - p.seek(G.size - G.Op); - G = p.qd(1); - p.qd(3) & 1 && (p.Aa(), p.Aa()); - G = 1 <= G ? 8 : 4; - p.Aa(); - p.lta(f, G); - } - if (d.config.z6 && "moof" == c.type && (f = c.$p("traf/tfhd"), (c = f.Rha) && c.t8a)) { - c = void 0; - p = new g(f.raw); - p.seek(f.size - f.Op); - G = p.qd(3); - p.Aa(); - switch (f.type) { - case "tfhd": - G & 1 && p.ff(); - G & 2 && p.Aa(); - G & 8 && p.Aa(); - G & 16 && p.Aa(); - G & 32 && (c = p.re(2)); - break; - case "trex": - p.Aa(), p.Aa(), p.Aa(), c = p.re(2); - } - m.ea(c); - c && (c[1] &= 254); - } - } - return a; - } - Object.defineProperty(c, "__esModule", { + d.aga = "PboAcquireLicenseCommandSymbol"; + }, function(g, d) { + Object.defineProperty(d, "__esModule", { value: !0 }); - d = a(4); - h = a(6); - l = a(3); - g = a(94); - m = a(8); - c.bAa = function(a) { - return b(new Uint8Array(a)); - }; - c.xjb = function(a) { - return b(a); - }; - c.Pqb = b; - }, function(f, c, a) { - var b, d, h, l, g, m, p, r, u; - Object.defineProperty(c, "__esModule", { + d.jga = "PboManifestCommandSymbol"; + }, function(g, d) { + Object.defineProperty(d, "__esModule", { value: !0 }); - b = a(182); - d = a(135); - h = a(4); - l = a(73); - g = a(283); - m = a(17); - p = a(3); - r = a(14); - u = a(28); - c.l2a = function() { - var f, k, G; - - function c(a, b, f) { - var r, x; - - function p() { - a.removeEventListener(d.Pa.bd.uu, p); - a.qF ? a.qF++ : a.qF = 1; - a.qF >= h.config.b_.length && (a.qF = h.config.b_.length - 1); - setTimeout(function() { - c(a, b, f); - }, h.config.b_[a.qF]); - } - a.npb = !0; - r = k.download({ - url: a.url, - responseType: u.Xs, - withCredentials: !1, - Az: "media-request-download-service", - offset: b.start, - length: a.Yf, - track: { - type: a.O === G.G.AUDIO ? l.$q : l.ar - }, - stream: { - ac: a.ib, - J: a.J - }, - Ya: a.Ec, - bj: a, - o: a.zc ? void 0 : g.bAa, - YQ: f - }, function(b) { - b.K && a.readyState !== d.Pa.Va.DONE && a.readyState !== d.Pa.Va.$l && (a.readyState !== d.Pa.Va.bm && a.readyState === d.Pa.Va.ur && (a.readyState = d.Pa.Va.sr, a.c3({ - mediaRequest: a, - readyState: a.readyState, - timestamp: m.Ra(), - connect: !1 - })), a.readyState = d.Pa.Va.DONE, b = { - mediaRequest: a, - readyState: a.readyState, - timestamp: m.Ra(), - cadmiumResponse: b, - response: b.content - }, a.HE = b, a.vi(b)); - }); - if (a.zc) { - x = { - mediaRequest: a, - readyState: a.readyState, - timestamp: m.Ra(), - connect: !1 - }; - a.c3(x); - } - a.addEventListener(d.Pa.bd.uu, p); - a.Vka = r.abort; - } - f = p.Cc("mediaRequestDownloader"); - k = b.RT(f); - G = a(13); - return { - zF: c, - XW: function(a) { - try { - a.Vka(); - } catch (y) { - f.warn("exception aborting request"); - } - }, - e6: r.Gb - }; - }(); - }, function(f, c, a) { - var d, h, l, g, m, p, r, u, v, k, w, G, x, y, C, F, N, n, q, Z, O, B, ja, V, D, S, da, X, U, ha, ba, ea, ia, ka, ua, la, A, H, P, Pa, wa, na, Y, aa, ta, db, Ba, Ya, Ra, zb, gc, gb; - - function b(a, b, c, d, h) { - var m, u, z; - - function f(a) { - a.newValue != gb.fm.hD && a.newValue != q.Vo && (m.Tb.removeListener(f), m.UHa = U.Z.get(gc.mj).Eg, m.dh.mc(q.mg)); - } + d.qca = "ControlProtocolSymbol"; + }, function(g, d) { + Object.defineProperty(d, "__esModule", { + value: !0 + }); + d.Bda = "HttpRequesterSymbol"; + }, function(g, d) { + Object.defineProperty(d, "__esModule", { + value: !0 + }); + d.nda = "FtlDataParserSymbol"; + }, function(g, d) { + Object.defineProperty(d, "__esModule", { + value: !0 + }); + d.vfa = "NetworkMonitorSymbol"; + }, function(g, d) { + Object.defineProperty(d, "__esModule", { + value: !0 + }); + d.hia = "XhrFactorySymbol"; + }, function(g, d, a) { + var c, h, k, f, p, m, r, u, x; - function p(a) { - a.newValue !== gb.fm.hD && (m.Tb.removeListener(p), m.u5a = da.AM()); - } - m = this; - this.M = a; - this.Oc = b; - this.SA = c; - this.UX = []; - this.mP = []; - this.A5 = !1; - this.de = {}; - this.yA = {}; - this.A4 = this.a6 = 0; - this.dh = new F.Ci(); - this.CI = {}; - this.Ya = []; - this.lM = new y.sd(null); - this.Tda = 0; - this.log = U.Je(this); - this.index = q.xu.lDa + 1; - this.Xf = Ba.createElement("DIV", "position:relative;width:100%;height:100%;overflow:hidden", void 0, { - id: this.M - }); - this.wM = 0 <= P.I7.indexOf("cast") ? U.Z.get(ha.q7) : void 0; - this.tia = this.Kj = !1; - this.Fc = new y.sd(null); - this.gc = new y.sd(null); - this.state = new y.sd(q.gy); - this.pc = new y.sd(void 0); - this.UP = new y.sd(!1); - this.paused = new y.sd(!1); - this.muted = new y.sd(!1); - this.volume = new y.sd(C.config.KSa / 100); - this.playbackRate = new y.sd(1); - this.Tb = new y.sd(gb.fm.hD); - this.rM = new y.sd(q.Zq); - this.Bl = new y.sd(q.Zq); - this.zi = new y.sd(q.Zq); - this.Ud = new y.sd(null); - this.up = new y.sd(null); - this.V5 = new y.sd(null); - this.Ai = new y.sd(null); - this.Et = new y.sd(null); - this.Tl = new y.sd(null); - this.cz = new y.sd(null); - new y.sd(null); - this.eY = new y.sd(void 0); - this.Ys = G.Rxa(this); - r.RT(U.Cc("MediaHttp")); - this.TX = new S.nua(this); - this.T$a = this.he = this.ia = -1; - this.joa = function() { - m.w5(); - }; - this.Pb = d || {}; - this.Zf = this.Pb.Zf || 0; - this.IN = this.Pb.IN; - this.KN = this.Pb.KN; - u = new X.dD(1E3); - C.config.Rm && t._cad_global.videoPreparer && (this.aa = t._cad_global.videoPreparer.KF(a)); - this.aa || (q.xu.zU ? (this.aa = q.xu.zU, q.xu.zU = void 0) : this.aa = h.As()); - q.xu.rDa = this.aa; - this.addEventListener = this.dh.addListener; - this.removeEventListener = this.dh.removeListener; - this.fireEvent = this.dh.mc; - this.jd = this.log.VRa(); - this.v2 = new O.hAa(this); - this.q5a = l.fDa(this); - this.CZ = v.HDa(); - this.nG = C.config.dta && !(this.aa % C.config.dta); - this.Zi = { - MovieId: this.M, - TrackingId: this.Zf, - Xid: this.aa - }; - q.xu.qDa = this.log; - q.ZJ || (q.xu.ZJ = this.log); - this.jd.info("Playback created", this.Zi); - this.nG ? this.jd.info("Playback selected for trace playback info logging") : this.jd.trace("Playback not selected for trace playback info logging"); - C.config.Rm && t._cad_global.videoPreparer && (t._cad_global.videoPreparer.pZa(this.M), this.addEventListener(q.mg, function() { - t._cad_global.videoPreparer.qZa(m.M); - m.Fc.addListener(function() { - t._cad_global.videoPreparer.zka(); - }); - m.gc.addListener(function() { - t._cad_global.videoPreparer.zka(); - }); - }), this.addEventListener(q.Qe, function() { - t._cad_global.videoPreparer.yka(m.M); - })); - this.state.addListener(function(a) { - m.jd.info("Playback state changed", { - From: a.oldValue, - To: a.newValue - }); - la.ea(a.newValue > a.oldValue); - }); - n.Bd.addListener(n.Pj, this.joa, x.by); - this.pc.addListener(function() { - u.lb(function() { - return m.bja(); - }); - }); - this.paused.addListener(function(a) { + function b(a) { + this.config = a; + } + Object.defineProperty(d, "__esModule", { + value: !0 + }); + g = a(0); + c = a(147); + h = a(75); + k = a(18); + f = a(2); + p = a(12); + m = a(6); + r = a(15); + u = a(1); + a = a(20); + b.prototype.construct = function(a, b) { + var f, c, d; + f = this; + c = {}; + a.forEach(function(a) { var b; - b = m.bb; - !a.r3a && b && (!0 === a.newValue ? b.paused && b.paused() : b.Csa && b.Csa()); - m.jd.info("Paused changed", { - From: a.oldValue, - To: a.newValue, - MediaTime: A.kg(m.pc.value) - }); - }); - this.Tb.addListener(function(a) { - m.jd.info("PresentingState changed", { - From: a.oldValue, - To: a.newValue, - MediaTime: A.kg(m.pc.value) - }, m.FA()); - }); - this.Tb.addListener(function() { - m.UP.set(m.Tb.value === gb.fm.nf); + b = a.url; + c[b] || (c[b] = []); + c[b].push(a); }); - this.rM.addListener(function(a) { - m.jd.info("BufferingState changed", { - From: a.oldValue, - To: a.newValue, - MediaTime: A.kg(m.pc.value) - }, m.FA()); + d = []; + k.pc(c, function(a, c) { + d.push(f.fab(c, b)); }); - this.Bl.addListener(function(a) { - m.jd.info("AV BufferingState changed", { - From: a.oldValue, - To: a.newValue, - MediaTime: A.kg(m.pc.value) - }, m.FA()); + return { + urls: d + }; + }; + b.prototype.fab = function(a, b) { + var f, c, d, g; + f = this; + c = a[0]; + d = { + url: c.url, + bitrate: c.O, + cdnid: r.ne(c.Mb) ? c.Mb.id : c.Mb, + dltype: c.t4a, + id: c.pd + }; + g = {}; + a.forEach(function(a) { + var b; + b = f.lcb(a) ? "fail" : "success"; + g[b] || (g[b] = []); + g[b].push(a); }); - this.zi.addListener(function(a) { - m.jd.info("Text BufferingState changed", { - From: a.oldValue, - To: a.newValue, - MediaTime: A.kg(m.pc.value) - }, m.FA()); - }); - this.gc.addListener(function(a) { - la.ea(a.newValue); - m.jd.info("AudioTrack changed", a.newValue && { - ToBcp47: a.newValue.Dl, - To: a.newValue.Ab - }, a.oldValue && { - FromBcp47: a.oldValue.Dl, - From: a.oldValue.Ab - }, { - MediaTime: A.kg(m.pc.value) - }); + k.pc(g, function(a, c) { + "fail" === a ? d.failures = f.d9a(c, b) : "success" === a && (d.downloads = f.V8a(c, b)); }); - this.Ud.addListener(function() { - var a, b; - a = m.Ud.value.Db; - b = a.length; - Z.WI(a); - for (var c = 0; c < b; c++) a[c].lower = a[c - 1], a[c].DZa = a[c + 1]; + return d; + }; + b.prototype.V8a = function(a, b) { + var f, c, d; + f = this; + c = {}; + a.forEach(function(a) { + var b; + b = a.A_a; + c[b] || (c[b] = []); + c[b].push(a); }); - this.Fc.addListener(function(a) { - m.jd.info("TimedTextTrack changed", a.newValue ? { - ToBcp47: a.newValue.Dl, - To: a.newValue.Ab - } : { - To: "none" - }, a.oldValue ? { - FromBcp47: a.oldValue.Dl, - From: a.oldValue.Ab - } : { - From: "none" - }, { - MediaTime: A.kg(m.pc.value) + d = []; + k.pc(c, function(a, c) { + var g; + g = []; + c.forEach(function(c) { + g.push(c); + f.ccb(c) && (d.push(f.lra(g, b, a)), g = []); }); + 0 < g.length && d.push(f.lra(g, b, a)); }); - this.Ya[Ra.G.AUDIO] = new y.sd(null); - this.Ya[Ra.G.VIDEO] = new y.sd(null); - this.Tb.addListener(p, x.ay); - this.Tb.addListener(f); - this.addEventListener(q.mg, function() { - var a, b, c; - m.A5 = !0; - m.Toa = H.kk(m.Us()); - m.Yc("start"); - a = m.Tl.value; - if (t._cad_global.prefetchEvents) { - b = ba.Cb(m.$n ? m.$n.audio : 0); - c = ba.Cb(m.$n ? m.$n.video : 0); - t._cad_global.prefetchEvents.x5a(m.M, m.aa, m.uM, m.uga, m.wlb, b, c); - } - m.s_a = a.stream.J; - }); - D.nDa(this); - q.Uo.push(this); - C.config.tH && (this.RP = new Ya.zDa(this), this.z5a = new B.BDa(this)); - C.config.Vq && g.vh && g.vh.EOa(this.M) && (this.ge = !0, this.n3 = g.vh.cob(this.M), this.goa = g.vh.$nb(), this.addEventListener(q.Qe, function() { - g.vh.yka(m.M); - }, x.by), this.addEventListener(q.mg, function() { - m.goa && (m.Fra = setTimeout(function() { - g.vh.Tsb(m.M); - }, C.config.vh.u$a)); - }), this.addEventListener(q.Qe, function() { - m.Fra && clearTimeout(m.Fra); - })); - q.yaa.forEach(function(a) { - a(m); - }); - this.ZLa = function(a) { - m.addEventListener(q.BU, function(a) { - a.cause !== q.UC && a.cause !== q.xU && m.bb.stop(); - }); - m.addEventListener(q.AU, function(a) { - a.cause !== q.xU && (C.config.LVa && a.cause === q.yU && m.jj.gY(), a.cause !== q.UC && (a.skip ? m.bb.Cga(a.Bw) ? (m.jd.trace("Repositioned. Skipping from " + a.RG + " to " + a.Bw), m.bb.Wm(a.Bw), m.bb.play()) : m.log.error("can skip returned false") : (m.jd.trace("Repositioned. Seeking from " + a.RG + " to " + a.Bw), m.bb.seek(a.Bw)))); - }); - a.addEventListener("segmentStarting", function(a) { - m.fireEvent(q.vDa, a); - }); - a.addEventListener("lastSegmentPts", function(a) { - m.fireEvent(q.tDa, a); - }); - a.addEventListener("segmentPresenting", function(a) { - m.fireEvent(q.uDa, a); - }); - a.addEventListener("segmentAborted", function(a) { - m.fireEvent(q.sDa, a); - }); - a.addEventListener("manifestPresenting", function(a) { - m.fireEvent(q.pDa, a); - }); - a.addEventListener("skip", function(a) { - m.fireEvent(q.Eaa, a); - }); - a.addEventListener("error", function(a) { - var b; - if ("NFErr_MC_StreamingFailure" === a.error) - if (m.jd.trace("receiving an unrecoverable streaming error: " + JSON.stringify(a)), m.jd.trace("StreamingFailure, buffer status:" + JSON.stringify(m.FA())), C.config.bVa && !m.A5) wa.Xa(function() { - m.Hh(new k.rj(ea.v.yta, { - R: a.nativeCode, - za: a.errormsg, - Fg: a.httpCode, - AP: a.networkErrorCode - })); - }); - else { - m.tR >= m.UH.length && (m.tR = m.UH.length - 1); - b = m.UH[m.tR]; - m.tR++; - setTimeout(function() { - m.bb && m.bb.lHa && m.bb.lHa.fB(!0); - }, b); - } - }); - a.addEventListener("headerCacheHit", function() {}); - a.addEventListener("maxvideobitratechanged", function(a) { - m.mP.push(a); - }); - a.addEventListener("bufferingStarted", function() { - m.Bl.set(q.Zq); - }); - a.addEventListener("locationSelected", function(a) { - m.fireEvent(q.Baa, a); - }); - a.addEventListener("serverSwitch", function(a) { - var b; - m.fireEvent(q.Caa, a); - "video" === a.mediatype ? b = Ra.G.VIDEO : "audio" === a.mediatype && (b = Ra.G.AUDIO); - na.$a(b) && m.t9a(a.server, b); - }); - a.addEventListener("bufferingComplete", function(a) { - m.jd.trace("Buffering complete", { - Cause: "ASE Buffering complete" - }, m.FA()); - m.Lk = a.enableHindsightReport; - m.tfa = a.actualBW; - m.IZa = a.histtd; - m.Dob = a.histage; - m.Rka = a.histDiscBW; - m.gla = a.initSelReason; - m.fA = a.initBitrate; - m.fla = a.initSelDiscBW; - m.Mt = a.selector; - m.bG = a.isConserv; - m.Pn = a.ccs; - m.JO = a.isLowEnd; - m.rE = a.buffCompleteReason; - m.ge && m.log.info("VC buffering complete, playback from video cache"); - m.Bl.set(q.hk); - z || (z = !0, m.Yc("pb")); - m.bb.play(); - }); - a.addEventListener("audioTrackSwitchStarted", function() { - m.bb.a4a(); - }); - a.addEventListener("audioTrackSwitchRejected", function() { - m.bb.$3a(); - }); - a.addEventListener("audioTrackSwitchComplete", function() { - m.bf.D3a(); - }); - a.addEventListener("endOfStream", function(a) { - m.bf.a3(a); - }); - a.addEventListener("createrequest", function(a) { - m.fireEvent(gb.Ea.CX, a.mediaRequest); - }); - a.addEventListener("asereportenabled", function() { - m.Kj = !0; - }); - a.addEventListener("asereport", function(a) { - var b; - b = na.da(m.Ed) ? 0 : m.Ed; - a.strmsel.forEach(function(a) { - a.seltrace[0][1] -= b; - }); - m.fireEvent(q.vaa, a); - }); - a.addEventListener("aseexception", function(a) { - m.fireEvent(q.uaa, a); - }); - a.addEventListener("hindsightreport", function(a) { - var b, c; - b = na.da(m.Ed) ? 0 : m.Ed; - c = a.report; - c && c.length && c.forEach(function(a) { - a.bst -= b; - a.pst -= b; - void 0 === a.nd && a.tput && (a.tput.ts -= b); + return d; + }; + b.prototype.lra = function(a, b, f) { + var p; + for (var c = a.sort(function(a, b) { + return a.Zi.Mf < b.Zi.Mf ? -1 : a.Zi.Mf > b.Zi.Mf ? 1 : 0; + }), d = c[0].Zi, g = d.requestTime, m = d.Mf, d = d.Mk, k = 1; k < a.length; k++) { + p = a[k].Zi; + p.requestTime < g && (g = p.requestTime); + p.Mf < m && (m = p.Mf); + p.Mk > d && (d = p.Mk); + } + k = this.g$a(c); + p = c[c.length - 1]; + b = { + time: g - b, + tcpid: f ? parseInt(f) : -1, + tresp: m - g, + first: k, + ranges: this.h$a(c, k), + dur: d - m, + trace: this.X$a(a), + status: this.JR(p) + }; + this.config().TH && this.config().TH.length && (b.servertcp = this.A$a(a)); + return b; + }; + b.prototype.A$a = function(a) { + var b; + b = this.config().TH || []; + return a.reduce(function(a, f) { + var c, d; + c = []; + if (f.ZAa) { + d = {}; + f.ZAa.split(";").forEach(function(a) { + a = a.split("="); + 2 == a.length && (d[a[0]] = a[1]); }); - m.x0 = { - Q7a: c, - UZa: a.hptwbr, - Xka: a.htwbr, - NP: a.pbtwbr - }; - a.rr && (m.x0.Aqa = a.rr); - a.ra && (m.x0.L6a = a.ra); - }); - a.addEventListener("streamingstat", function(a) { - var b; - b = a.bt; - m.ia = a.location.bandwidth; - m.he = a.location.httpResponseTime; - m.T$a = a.stat.streamingBitrate; - m.bG = a.isConserv; - m.Pn = a.ccs; - b && (void 0 === m.yv && (m.yv = { - interval: C.config.ez, - startTime: b.startTime, - Ln: [], - Ho: [] - }), m.yv.Ln = m.yv.Ln.concat(b.Ln), m.yv.Ho = m.yv.Ho.concat(b.Ho)); - a.psdConservCount && (m.tpa = a.psdConservCount); - }); - C.config.sLa && a.addEventListener("currentStreamInfeasible", function(a) { - m.Sk.Ekb(a.newBitrate); - }); - a.addEventListener("headerCacheDataHit", function(a) { - a.movieId == m.M && (m.$n = a); - }); - a.addEventListener("startEvent", function(a) { - t._cad_global.prefetchEvents && "adoptHcdEnd" === a.event && t._cad_global.prefetchEvents.CE(ia.vd.Wh.MEDIA, m.M); - }); - a.addEventListener("requestComplete", function(a) { - (a = (a = a && a.mediaRequest) && a.HE && a.HE.cadmiumResponse) && m.fireEvent(gb.Ea.Hz, a); - }); - a.addEventListener("streamSelected", function(a) { - var b, c; - a.mediaType === Ra.G.VIDEO ? (b = m.Ud.value.Db, c = m.Ai) : a.mediaType === Ra.G.AUDIO && (b = m.gc.value.Db, c = m.lM); - (b = b.find(function(b) { - return b.ac === a.streamId; - })) ? c.set(b, { - Lga: a.movieTime, - tNa: a.bandwidth - }): m.jd.error("not matching stream for streamSelected event", { - streamId: a.streamId + b.forEach(function(a) { + c.push(d[a]); }); - }); - a.addEventListener("logdata", function(a) { - var b, c; - if ("string" === typeof a.target && "object" === typeof a.fields) { - b = m.yA[a.target]; - c = na.da(m.Ed) ? m.Ed : 0; - b || (b = m.yA[a.target] = {}); - Object.keys(a.fields).forEach(function(d) { - var g, h, f, m; - g = a.fields[d]; - if ("object" !== typeof g || null === g) b[d] = g; - else { - h = g.type; - if ("count" === h) void 0 === b[d] && (b[d] = 0), ++b[d]; - else if (void 0 !== g.value) - if ("array" === h) { - h = b[d]; - f = g.adjust; - m = g.value; - h || (h = b[d] = []); - f && 0 < f.length && f.forEach(function(a) { - m[a] -= c || 0; - }); - h.push(m); - } else "sum" === h ? (void 0 === b[d] && (b[d] = 0), b[d] += g.value) : b[d] = g.value; - else b[d] = g; - } - }); - } - }); - }; - this.gc.addListener(function(a) { - m.bb && (a.reset ? m.jd.trace("ASE previously rejected the audio track switch, resetted!") : m.bb.Aab({ - LX: a.newValue.Ab, - toJSON: function() { - return a.newValue.Zi; - } - }) ? m.jd.trace("ASE accepted the audio track switch") : (m.jd.trace("ASE rejected the audio track switch"), m.gc.set(a.oldValue, { - reset: !0 - }))); - }); - this.addEventListener(q.XJ, function(a) { - a.cause == q.saa && (m.rM.set(q.Zq), m.bb.Xbb(m.bf.Mja())); - }); - } - Object.defineProperty(c, "__esModule", { - value: !0 - }); - d = a(188); - h = a(136); - l = a(183); - g = a(81); - m = a(118); - p = a(167); - r = a(182); - u = a(255); - v = a(254); - k = a(51); - w = a(253); - G = a(291); - x = a(6); - y = a(180); - C = a(4); - F = a(57); - N = a(252); - n = a(60); - q = a(16); - Z = a(73); - O = a(87); - B = a(251); - ja = a(250); - V = a(249); - D = a(248); - S = a(247); - da = a(17); - X = a(91); - U = a(3); - ha = a(210); - ba = a(7); - ea = a(2); - ia = a(106); - ka = a(26); - ua = a(147); - la = a(8); - A = a(80); - H = a(19); - P = a(36); - Pa = a(5); - wa = a(32); - na = a(15); - Y = a(90); - aa = a(246); - ta = a(451); - db = a(166); - Ba = a(14); - Ya = a(245); - Ra = a(13); - zb = a(9); - gc = a(52); - a(23); - a(121); - a(65); - a(159); - gb = a(46); - b.prototype.ZN = function(a) { + } + a.push(c); + return a; + }, []); + }; + b.prototype.g$a = function(a) { var b; - if (C.config.hN) return d.Ev.BF(a); - a = a || x.Gb; - b = { - success: !1, - name: null, - isCongested: null - }; - a(b); + b = 0; + a.forEach(function(a) { + a.Pp && (b = m.Ai(b, a.Pp[0])); + }); return b; }; - b.prototype.Yc = function(a) { - this.jd.trace("Milestone", { - Id: a + b.prototype.h$a = function(a, b) { + var f; + f = []; + a.forEach(function(a) { + a.Pp ? f.push([a.Pp[0] - b, a.Pp[1] - b]) : f.push([0, -1]); }); - this.de[a] = this.Us(); - }; - b.prototype.vWa = function() { - if (na.da(this.de.ats) && na.da(this.de.at)) return this.de.at - this.de.ats; - }; - b.prototype.HWa = function() { - var a, b; - a = this.Ex() || 0; - b = this.sv() || 0; - return Pa.ue(a, b); + return f; }; - b.prototype.GXa = function() { - if (na.da(this.de.shs) && na.da(this.de.sh)) return this.de.sh - this.de.shs; + b.prototype.X$a = function(a) { + var b, f; + b = []; + a.forEach(function(a) { + var c; + a = a.Zi; + if (f) { + c = a.requestTime - f.Mk; + 0 < c && b.push([c, -2]); + c = m.Xk(f.Mk, a.requestTime); + c = a.Mf - c; + 0 < c && b.push([c, -3]); + } + b.push([a.Mk - a.Mf, a.Cr || 0]); + f = a; + }); + return b; }; - b.prototype.iR = function() { - this.background || (this.jd.info("Starting inactivity monitor for movie " + this.M), new N.Qya(this)); + b.prototype.ccb = function(a) { + if (a.T === f.H.Vs || a.T === f.H.hw) return !0; }; - b.prototype.close = function(a) { - a && (this.state.value == q.fy ? a() : this.addEventListener(q.YJ, function() { - a(); - })); - this.w5(); + b.prototype.JR = function(a) { + if (a.S) return "complete"; + if (a.T === f.H.Vs) return "abort"; + if (a.T === f.H.hw) return "stall"; + p.sa(!1, "download status should never be: other"); + return "other"; }; - b.prototype.Hh = function(a, b) { - var c, d, g; - c = this; - if (this.state.value == q.gy) this.Gg || (this.Gg = a, this.load()); - else { - b && (this.state.value == q.fy ? b() : this.addEventListener(q.YJ, function() { - b(); - })); - d = function() { - c.w5(a); + b.prototype.d9a = function(a, b) { + var f, d; + f = this; + d = []; + a.forEach(function(a) { + var g; + g = a.Zi; + a = { + time: g.Mf - b, + tresp: g.Mf - g.requestTime, + dur: g.Mk - g.Mf, + range: a.Pp, + reason: f.i$a(a), + httpcode: a.Bh, + nwerr: c.Gra(a.T) }; - g = C.config.Uha && a && C.config.Uha[a.errorCode]; - na.kq(g) && (g = H.Zc(g)); - this.jd.error("Fatal playback error", { - Error: "" + a, - HandleDelay: "" + g - }); - 0 <= g ? setTimeout(d, g) : d(); - } - }; - b.prototype.pI = function() { - this.dh.mc(q.yDa); + d.push(a); + }); + return d; }; - b.prototype.NVa = function() { - this.bja(); + b.prototype.i$a = function(a) { + return a.Bh || a.T === f.H.kF ? "http" : a.T === f.H.lF ? "timeout" : "network"; }; - b.prototype.W_ = function() { - var a; - a = this.bb; - return a && (a = a.ja.yi.na.id, void 0 !== a) ? a : null; + b.prototype.lcb = function(a) { + return a.S || void 0 === a.S || a.T === f.H.Vs || a.T === f.H.hw ? !1 : !0; }; - b.prototype.Ts = function() { - return void 0 !== this.lha && void 0 === this.bb ? this.lha : this.fO(this.pc.value); - }; - b.prototype.V_ = function() { - return this.fO(this.bf.Mja()); - }; - b.prototype.XN = function() { - var a; - a = this.Sa.choiceMap; - if (a) return a.segments; - }; - b.prototype.fcb = function(a) { - this.Pb = ta.o2a(this.Pb, a); - }; - b.prototype.Fl = function() { - var a, b, c, g, h, f, m; - a = this; - b = void 0; - c = a.Ud.value.Db.filter(function(c) { - var d; - d = a.v2.Mq(c); - d && (b = b || [], b.push({ - stream: c, - Cz: d - })); - return !d; - }); - Z.WI(c); - for (var d = 0; d < c.length; d++) c[d].lower = c[d - 1], c[d].DZa = c[d + 1]; - if (a && a.bb) { - g = []; - a.Ud.value.Db.forEach(function(a) { - -1 == g.indexOf(a.le) && g.push(a.le); - }); - h = null; - f = null; - c.forEach(function(a) { - null === h ? f = h = a.J : f < a.J ? f = a.J : h > a.J && (h = a.J); - }); - m = []; - g.forEach(function(a) { - var c; - c = { - ranges: [] - }; - c.profile || (c.profile = a); - h && f && (c.ranges.push({ - min: h, - max: f - }), b && (c.disallowed = b.filter(function(b) { - return b.stream.le === a; - })), m.push(c)); - }); - a.bb.VQ(m); - } - return c; - }; - b.prototype.G0 = function(a) { - var b, c; - b = this.Ed; - c = this; - U.log.trace("importing milestones", a); - H.Kb(a, function(a, d) { - c.de[a] = d - b; - }); - }; - b.prototype.l5 = function(a) { - this.ux = a; - }; - b.prototype.U_a = function() { - return "trailer" === this.Oc; - }; - b.prototype.tla = function() { - return !!this.Oc && 0 <= this.Oc.indexOf("billboard"); - }; - b.prototype.W_a = function() { - return !!this.Oc && 0 <= this.Oc.indexOf("video-merch"); - }; - b.prototype.KO = function() { - return this.U_a() || this.tla() || this.W_a(); - }; - b.prototype.F_ = function() { - return na.da(this.pc.value) && na.da(this.sv()) && na.da(this.Ex()) ? this.pc.value + Pa.ue(this.sv(), this.Ex()) : null; - }; - b.prototype.Fsa = function() { - var b, c, d, g; - b = this; - if (this.state.value == q.qj) { - c = {}; - this.jj = m.Oi; - (this.ge || C.config.KVa) && this.jj.gY(); - m.Dj.set(a(137)(C.config), !0, U.Cc("ASE")); - C.config.RPa && 3E5 > this.Sa.duration ? m.Dj.Lw({ - expandDownloadTime: !1 - }, !0, this.jd) : m.Dj.Lw({ - expandDownloadTime: m.Dj.Noa().expandDownloadTime - }, !0, this.jd); - this.background || C.config.I5a && "postplay" === this.Oc ? m.Dj.Lw({ - initBitrateSelectorAlgorithm: "historical" - }, !0, this.jd) : m.Dj.Lw({ - initBitrateSelectorAlgorithm: m.Dj.Noa().initBitrateSelectorAlgorithm - }, !0, this.jd); - g = this.Ud && this.Ud.value && this.Ud.value.Db; - g && g.length && (d = g[0].le); - m.Dj.Lw(C.hha(this.Pb.Qf, d), !0, this.jd); - c = U.Z.get(ka.Re).st(c, C.iha(this.Oc)); - this.U$a = m.Dj.SY(c); - zb.events.emit("networkchange", this.o9a); - this.jj.Ksa({ - Fl: function() { - return b.Fl(); - }, - HF: function() { - return b.HF(); - }, - WF: function() { - return b.WF(); - } - }); - c = U.Z.get(ua.QI); - d = this.rm; - this.rm = c.nX({ - TB: ba.Cb(this.rm), - M: this.M, - bH: ba.Cb(this.duration), - Pb: this.Pb - }).qa(ba.Ma); - this.iga = this.rm - d; - this.H5a(); - } - }; - b.prototype.gSa = function() { - var a, b, c, d; - a = this; - try { - this.Sb = new u.cAa(this); - this.Sb.open(); - b = new Promise(function(b) { - a.Sb.addEventListener(db.Sg.Ara, function() { - b(); - }); - }); - this.bf = new aa.eAa(this); - this.QB = [this.DSa, this.JSa]; - c = { - ki: !1, - VB: C.config.VB, - QR: C.config.iN, - B1a: !1, - zM: !this.g1 - }; - this.tR = 0; - this.UH = C.config.UH; - this.Sa.cdnResponseData && (this.DM = this.Sa.cdnResponseData.pbcid, this.Sa.cdnResponseData.sessionABTestCell && (this.rB = this.Sa.cdnResponseData.sessionABTestCell)); - d = { - Qw: this.log, - Sk: this.Sk, - sessionId: this.M + "-" + this.aa, - aa: this.aa, - Goa: this.DM, - $d: Y.Bg ? Y.Bg.$d : void 0, - aia: 0 === C.config.fF || 0 !== this.aa % C.config.fF ? !1 : !0 - }; - this.tia = d.aia; - this.bb = this.jj.Cs(this.Sa, this.QB, this.rm || 0, c, d, void 0, { - Hg: function() { - return a.pc.value; - }, - R_: function() { - return a.Sb; - } - }, this.U$a); - this.ZLa(this.bb); - b.then(function() { - a.state.value !== q.wu && a.state.value !== q.fy && a.bb.open(); - }); - this.pc.set(this.rm || 0); - this.Pq = new w.pFa(this); - C.config.r4 && (this.Xt = new V.qFa(this)); - this.Sl = new ja.iDa(this); - this.iR(); - q.zaa.forEach(function(b) { - b(a); - }); - this.v3a(); - } catch (tc) { - this.Wk(ea.v.xya, { - R: ea.u.te, - za: H.yc(tc) - }); - } - }; - b.prototype.w3a = function() { - la.ea(this.state.value == q.gy); - this.log.L.Ed = this.Ed = da.Ra(); - da.On(); - da.Ra(); - this.state.set(q.qj); - t._cad_global.prefetchEvents && t._cad_global.prefetchEvents.v5a(this.M); - }; - b.prototype.vYa = function() { - return { - tr: this.a6, - rt: this.A4 - }; - }; - b.prototype.aq = function(a) { - return this.yA[a]; - }; - b.prototype.rOa = function() { - return this.ux ? da.Ra() - this.ux : da.AM() - this.TN(); - }; - b.prototype.xOa = function() { - return this.ux ? da.Ra() - this.ux : this.Us(); - }; - b.prototype.wOa = function() { - return this.ux ? da.Ra() - this.ux : this.u5a - this.TN(); - }; - b.prototype.n3a = function(a) { - var b, c; - b = this.Ed; - c = {}; - H.Kb(a, function(a, d) { - c[a] = d.map(function(a) { - return a - b; - }); - }); - return c; - }; - b.prototype.FWa = function() { - var a, b; - a = this.Ed; - b = {}; - H.Kb(this.UX, function(c, d) { - b[c] = d.map(function(b) { - return b - a; - }); - }); - return p.Hp ? { - level: p.Hp.Vja(), - charging: p.Hp.H_(), - statuses: b - } : null; - }; - b.prototype.kO = function() { - this.aja(); - return this.CI; - }; - b.prototype.P9a = function() { - this.CI.HasRA = !0; - }; - b.prototype.Wk = function(a, b) { - this.done || (this.done = !0, this.Hh(new k.rj(a, b))); - }; - b.prototype.Ocb = function() { - this.f$a = !0; - }; - b.prototype.Xna = function() { - this.$pa(); - }; - b.prototype.w5 = function(a) { - var b; - b = this; - if (this.state.value == q.gy || this.state.value == q.qj || this.state.value == q.lk) { - this.jd.info("Playback closing", this, a ? { - ErrorCode: a.Fz - } : void 0); - n.Bd.removeListener(n.Pj, this.joa); - this.Gg = a; - this.aja(); - this.bb && this.bb.flush(); - try { - this.dh.mc(q.Qe); - } catch (Db) { - this.jd.error("Unable to fire playback closing event", Db); - } - this.state.set(q.wu); - this.lha = this.Ts(); - this.xta(); - this.f$a || wa.Xa(function() { - return b.$pa(); - }); + b.prototype.m0a = function(a) { + var b, f, c, d, g, m; + b = a.request; + f = b.stream; + c = b.track; + d = b.url; + g = this.S8a(c, d); + switch (g) { + case h.Vf.audio: + case h.Vf.video: + m = b.stream.pd; + break; + case h.Vf.vV: + case h.Vf.Kaa: + m = c.pd; } - }; - b.prototype.bja = function() { - var a; - a = this.pc.value; - this.n0a != a && (this.n0a = a, this.dh.mc(q.Gaa)); - }; - b.prototype.fO = function(a) { - var b; - a = void 0 === a ? null : a; - b = this.bb; - return na.da(a) ? b ? b.pz(void 0, a) : a : null; - }; - b.prototype.$pa = function() { - var a, b; - a = this; - la.ea(this.state.value == q.wu); - b = this.eP; - this.eP = void 0; - b ? h.CB.release(b, function(b) { - la.ea(b.K); - a.GY(); - }) : this.GY(); - }; - b.prototype.xta = function() { - this.bb && (this.bb.close(), this.bb.ze()); - this.jj && this.Gg && this.jj.gY(); - delete this.bb; - delete this.jj; - }; - b.prototype.GY = function() { - var a; - this.GY = x.Gb; - la.ea(this.state.value == q.wu); - a = q.Uo.indexOf(this); - la.ea(0 <= a); - q.Uo.splice(a, 1); - this.state.set(q.fy); - this.dh.mc(q.YJ, {}, !0); - this.dh.Ov(); - delete this.bh; - }; - b.prototype.aja = function() { - this.dh.mc(q.Daa, { - CI: this.CI - }); - }; - b.prototype.TN = function() { - var a; - a = this.Pb.KR; - a = na.da(a) ? a : this.SA.qa(ba.Ma) + da.Sga(); - la.ea(na.et(a)); + a = { + O: f && f.O, + t4a: g, + pd: m, + Zi: a.Zi, + Mb: b.Mb, + url: d, + ic: a.ic, + Bh: a.Bh, + T: a.T, + S: a.S, + ZAa: a.headers && (a.headers["X-TCP-Info"] || a.headers["x-tcp-info"]), + A_a: this.D6a(a) + }; + void 0 !== b.offset && void 0 != b.length && (a.Pp = [b.offset, b.offset + b.length - 1]); return a; }; - b.prototype.t9a = function(a, b) { - var c; - c = this.Ej.filter(function(b) { - return b.id === a; - })[0]; - c && this.Ya[b].set(c); - }; - b.prototype.FA = function() { - return { - AudioBufferLength: this.sv(), - VideoBufferLength: this.Ex() - }; - }; - b.prototype.Ex = function() { - var a; - a = this.jM(); - return a && a.vbuflmsec; - }; - b.prototype.sv = function() { - var a; - a = this.jM(); - return a && a.abuflmsec; - }; - b.prototype.q6 = function() { - var a; - a = this.jM(); - return a && a.vbuflbytes; - }; - b.prototype.FX = function() { - var a; - a = this.jM(); - return a && a.abuflbytes; - }; - b.prototype.jM = function() { - if (this.bb) return this.bb.S0(void 0); - }; - b.prototype.HF = function() { - return this.Tda; - }; - b.prototype.WF = function() { - this.Tda++; - }; - b.prototype.v3a = function() { - this.state.value == q.qj && this.state.set(q.lk); - }; - b.prototype.Us = function() { - return da.Ra() - this.SA.qa(ba.Ma); - }; - pa.Object.defineProperties(b.prototype, { - kla: { - configurable: !0, - enumerable: !0, - get: function() { - return this.UHa; - } - } - }); - c.Z6 = b; - }, function(f, c, a) { - var b, d; - Object.defineProperty(c, "__esModule", { - value: !0 - }); - b = a(94); - d = [137, 66, 73, 70, 13, 10, 26, 10]; - c.Z4a = function(a) { - var c, g; - if (!a) throw Error("invalid array buffer"); - c = new Uint8Array(a); - a = new b(c); - g = function(a) { - var b, c, g, h; - if (a.Oj() < d.length + 4 + 4 + 4 + 44) throw Error("array buffer too short"); - d.forEach(function(b) { - if (b != a.ef()) throw Error("BIF has invalid magic."); - }); - b = a.pH(); - if (0 < b) throw Error("BIF version in unsupported"); - c = a.pH(); - if (0 == c) throw Error("BIF has no frames."); - g = a.pH(); - h = a.re(44); - return { - version: b, - J3a: c, - jsa: g, - X7a: h - }; - }(a); - a = function(a) { - var h, f; - for (var b = [], d = 0; d <= g.J3a; d++) { - f = { - timestamp: a.pH(), - offset: a.pH() - }; - void 0 != h && b.push(c.subarray(h.offset, f.offset)); - h = f; - } - return b; - }(a); - return { - pi: g, - images: a - }; - }; - }, function(f, c, a) { - var b; - Object.defineProperty(c, "__esModule", { - value: !0 - }); - b = a(42); - c.FS = function(a, c) { - this.GTa = a; - this.size = c.Ala() ? b.cl : c; - }; - }, function(f, c, a) { - var y, C, F, N, n, q, Z, O; - - function b(a, b) { - var c, g, h; - c = a[0]; - g = { - url: c.url, - bitrate: c.J, - cdnid: O.Pd(c.Ya) ? c.Ya.id : c.Ya, - dltype: c.zTa, - id: c.ac - }; - h = {}; - a.forEach(function(a) { - var b; - b = w(a) ? "fail" : "success"; - h[b] || (h[b] = []); - h[b].push(a); - }); - N.Kb(h, function(a, c) { - "fail" === a ? g.failures = v(c, b) : "success" === a && (g.downloads = d(c, b)); - }); - return g; - } - - function d(a, b) { - var c, d; - c = {}; - a.forEach(function(a) { - var b; - b = a.ePa; - c[b] || (c[b] = []); - c[b].push(a); - }); - d = []; - N.Kb(c, function(a, c) { - var g; - g = []; - c.forEach(function(c) { - g.push(c); - r(c) && (d.push(h(g, b, a)), g = []); - }); - 0 < g.length && d.push(h(g, b, a)); - }); - return d; - } - - function h(a, b, c) { - var v; - for (var d = a.sort(function(a, b) { - return a.xf.hf < b.xf.hf ? -1 : a.xf.hf > b.xf.hf ? 1 : 0; - }), h = d[0].xf, f = h.requestTime, r = h.hf, h = h.Zj, x = 1; x < a.length; x++) { - v = a[x].xf; - v.requestTime < f && (f = v.requestTime); - v.hf < r && (r = v.hf); - v.Zj > h && (h = v.Zj); - } - x = g(d); - v = d[d.length - 1]; - b = { - time: f - b, - tcpid: c ? parseInt(c) : -1, - tresp: r - f, - first: x, - ranges: m(d, x), - dur: h - r, - trace: p(a), - status: u(v) - }; - C.config.bN.length && (b.servertcp = l(a)); - return b; - } - - function l(a) { - var b; - b = C.config.bN; - return a.reduce(function(a, c) { - var d, g; - d = []; - if (c.Wra) { - g = {}; - c.Wra.split(";").forEach(function(a) { - a = a.split("="); - 2 == a.length && (g[a[0]] = a[1]); - }); - b.forEach(function(a) { - d.push(g[a]); - }); - } - a.push(d); - return a; - }, []); - } - - function g(a) { - var b; - b = 0; - a.forEach(function(a) { - a.Fq && (b = Z.ue(b, a.Fq[0])); - }); - return b; - } - - function m(a, b) { - var c; - c = []; - a.forEach(function(a) { - a.Fq ? c.push([a.Fq[0] - b, a.Fq[1] - b]) : c.push([0, -1]); - }); - return c; - } - - function p(a) { - var b, c; - b = []; - a.forEach(function(a) { - var d; - a = a.xf; - if (c) { - d = a.requestTime - c.Zj; - 0 < d && b.push([d, -2]); - d = Z.ig(c.Zj, a.requestTime); - d = a.hf - d; - 0 < d && b.push([d, -3]); - } - b.push([a.Zj - a.hf, a.Op || 0]); - c = a; - }); - return b; - } - - function r(a) { - if (a.R === n.u.No || a.R === n.u.ku) return !0; - } - - function u(a) { - if (a.K) return "complete"; - if (a.R === n.u.No) return "abort"; - if (a.R === n.u.ku) return "stall"; - q.ea(!1, "download status should never be: other"); - return "other"; - } - - function v(a, b) { - var c; - c = []; - a.forEach(function(a) { - var d; - d = a.xf; - a = { - time: d.hf - b, - tresp: d.hf - d.requestTime, - dur: d.Zj - d.hf, - range: a.Fq, - reason: k(a), - httpcode: a.Fg, - nwerr: y.SAa(a.R) - }; - c.push(a); - }); - return c; - } - - function k(a) { - return a.Fg || a.R === n.u.Ox ? "http" : a.R === n.u.rC ? "timeout" : "network"; - } - - function w(a) { - return a.K || void 0 === a.K || a.R === n.u.No || a.R === n.u.ku ? !1 : !0; - } - - function G(a, b) { + b.prototype.S8a = function(a, b) { if (a) return a.type; if (0 <= b.indexOf("netflix.com")) { if (0 <= b.indexOf("nccp")) return "nccp"; if (0 <= b.indexOf("api")) return "api"; } return "other"; - } - - function x(a) { + }; + b.prototype.D6a = function(a) { if (a.headers && (a = a.headers["X-Session-Info"] || a.headers["x-session-info"])) return a = (a ? a.split(";") : []).filter(function(a) { return 0 == a.indexOf("port="); }).map(function(a) { return a.split("=")[1]; - })[0], N.Zc(a); - } - Object.defineProperty(c, "__esModule", { + })[0], k.Bd(a); + }; + x = b; + x = g.__decorate([u.N(), g.__param(0, u.l(a.je))], x); + d.yGa = x; + }, function(g, d) { + Object.defineProperty(d, "__esModule", { value: !0 }); - y = a(119); - C = a(4); - F = a(73); - N = a(19); - n = a(2); - q = a(8); - Z = a(5); - O = a(15); - c.DPa = function(a, c) { - var d, g; - d = {}; - a.forEach(function(a) { - var b; - b = a.url; - d[b] || (d[b] = []); - d[b].push(a); - }); - g = []; - N.Kb(d, function(a, d) { - g.push(b(d, c)); - }); - return { - urls: g - }; - }; - c.emb = b; - c.Xlb = d; - c.Vlb = h; - c.bmb = l; - c.Zlb = g; - c.$lb = m; - c.dmb = p; - c.fmb = r; - c.cmb = u; - c.Ylb = v; - c.amb = k; - c.gmb = w; - c.EPa = function(a) { - var b, c, d, g, h, f; - b = a.request; - c = b.stream; - d = b.track; - g = b.url; - h = G(d, g); - f = void 0; - switch (h) { - case F.$q: - case F.ar: - f = b.stream.ac; - break; - case F.nS: - case F.m7: - f = d.ac; - } - a = { - J: c && c.J, - zTa: h, - ac: f, - xf: a.xf, - Ya: b.Ya, - url: g, - ub: a.ub, - Fg: a.Fg, - R: a.R, - K: a.K, - Wra: a.headers && (a.headers["X-TCP-Info"] || a.headers["x-tcp-info"]), - ePa: x(a) - }; - void 0 !== b.offset && void 0 != b.length && (a.Fq = [b.offset, b.offset + b.length - 1]); - return a; - }; - c.Wlb = G; - c.qnb = x; - }, function(f, c, a) { - var d; + d.Lca = "DownloadReportBuilderSymbol"; + }, function(g, d, a) { + var c; function b(a) { - this.tX = a.tX; - this.Za = a.Za; - this.Na = a.Na; - this.uP = a.uP; - this.b1 = !1; - this.lY = []; + this.i0 = a.i0; + this.Ab = a.Ab; + this.Ma = a.Ma; + this.jT = a.jT; + this.Y5 = !1; + this.a1 = []; this.log = a.log; - a.yPa && this.fra(a.yPa); - this.ama() ? this.BN() : this.Iqa(); + a.a0a && this.Uza(a.a0a); + this.Vta() ? this.fR() : this.tza(); } - Object.defineProperty(c, "__esModule", { + Object.defineProperty(d, "__esModule", { value: !0 }); - d = a(28); - b.prototype.BF = function(a) { + c = a(34); + b.prototype.e4 = function(a) { var b; a = a || function() {}; - this.ama() ? (b = { + this.Vta() ? (b = { success: !1, name: "", isCongested: !1 - }, this.b1 ? this.lY.push(a) : a(b)) : (b = { + }, this.Y5 ? this.a1.push(a) : a(b)) : (b = { success: !0, - name: this.jw.Tfa, - isCongested: this.jw.wla + name: this.py.vma, + isCongested: this.py.sta }, a(b)); return b; }; - b.prototype.BN = function() { + b.prototype.fR = function() { var a; a = this; - this.b1 = !0; - this.Za.download(this.KM(), function(b) { - var d; - if (b.K) try { - d = a.W4a(b.content); - a.fra(d); - a.Iqa(); - a.F4({ + this.Y5 = !0; + this.Ab.download(this.kQ(), function(b) { + var f; + if (b.S) try { + f = a.tib(b.content); + a.Uza(f); + a.tza(); + a.O9({ success: !0, - name: a.jw.Tfa, - isCongested: a.jw.wla + name: a.py.vma, + isCongested: a.py.sta }); - } catch (m) { - a.log.error("Response Processing Failed", m); - a.F4({ + } catch (p) { + a.log.error("Response Processing Failed", p); + a.O9({ success: !1, name: "", isCongested: !1 }); - setTimeout(a.BN.bind(a), c.YI.tqa); - } else a.log.error("HTTP Request Failed"), a.F4({ + setTimeout(a.fR.bind(a), d.mM.Zya); + } else a.log.error("HTTP Request Failed"), a.O9({ success: !1, name: "", isCongested: !1 - }), setTimeout(a.BN.bind(a), c.YI.tqa); - a.b1 = !1; + }), setTimeout(a.fR.bind(a), d.mM.Zya); + a.Y5 = !1; }); }; - b.prototype.F4 = function(a) { - this.lY.forEach(function(b) { + b.prototype.O9 = function(a) { + this.a1.forEach(function(b) { b(a); }); - this.lY = []; + this.a1 = []; }; - b.prototype.KM = function() { + b.prototype.kQ = function() { return { - url: this.tX, - responseType: d.Xs, + url: this.i0, + responseType: c.OC, withCredentials: !0, - Az: "congestion-service" + Ox: "congestion-service" }; }; - b.prototype.W4a = function(a) { + b.prototype.tib = function(a) { a = new Uint8Array(a); a = JSON.parse(String.fromCharCode.apply(null, a)); return { - K: a.success, - Qkb: a.asnName, - Tfa: a.asnDisplayName, - wla: a.isCongested, - JR: a.ttlEpoch + S: a.success, + DBb: a.asnName, + vma: a.asnDisplayName, + sta: a.isCongested, + AV: a.ttlEpoch }; }; - b.prototype.ama = function() { - return this.jw && this.Na.aO() < this.jw.JR ? !1 : !0; + b.prototype.Vta = function() { + return this.py && this.Ma.ER() < this.py.AV ? !1 : !0; }; - b.prototype.fra = function(a) { + b.prototype.Uza = function(a) { var b; - b = this.Na.aO(); - a.K && (a.JR - b < 1E3 * this.uP && (a.JR = b + 1E3 * this.uP), this.jw = a); + b = this.Ma.ER(); + a.S && (a.AV - b < 1E3 * this.jT && (a.AV = b + 1E3 * this.jT), this.py = a); }; - b.prototype.Iqa = function() { + b.prototype.tza = function() { var a; - a = this.jw.JR - this.Na.aO() - 6E4; + a = this.py.AV - this.Ma.ER() - 6E4; 0 > a && (a = 0); - setTimeout(this.BN.bind(this), a); + setTimeout(this.fR.bind(this), a); }; - b.tqa = 6E4; - c.YI = c.YI || b; - }, function(f, c, a) { - var b, d, h, l, g, m, p, r, u; - Object.defineProperty(c, "__esModule", { - value: !0 - }); - b = a(102); - d = a(17); - h = a(3); - l = a(209); - g = a(20); - m = a(14); - a(8); - p = a(39); - r = a(24); - u = a(89); - c.NAa = function(a) { - var B, t, V, D, S, da, X; - - function c(a, b, c) { - return new Promise(function(d, g) { - B.send(a, b, !1, void 0).then(function(a) { - c ? d(c(a)) : d({ - K: !0 + b.Zya = 6E4; + d.mM = d.mM || b; + }, function(g, d, a) { + var b; + Object.defineProperty(d, "__esModule", { + value: !0 + }); + b = a(31); + d.FW = function(a, d) { + this.A4a = a; + this.size = d.vta() ? b.Sf : d; + }; + }, function(g, d, a) { + var c, h, k, f, p, m, r, u, x, v, y, l, D, z, n, P, F, q, N, O, t, U, ga, S; + + function b(a, b, f, c, d, g, v, w, E, O, la, t, Y, Da, ub) { + var Q; + Q = this; + this.j = a; + this.UP = f; + this.Eg = c; + this.v7 = d; + this.j3 = g; + this.Sm = v; + this.Hd = w; + this.IQ = E; + this.Ab = O; + this.config = la; + this.Ma = t; + this.Va = Y; + this.platform = Da; + this.l0 = ub; + this.rL = []; + this.I2 = this.Jfb = this.nS = this.Jya = 0; + this.cC = []; + this.uV = function() { + Q.Sb(U.we.QPa, !1, S.Lg | S.Tf, { + track: Q.j.kc.value.If + }); + }; + this.wqb = function(a) { + a.newValue && Q.Hk && (a = { + track: a.newValue.If + }, Q.gy(a, Q.j.ig.value && Q.j.ig.value.stream, Q.j.dh.value && Q.j.dh.value.stream), Q.Sb(U.we.RPa, !1, S.Lg | S.Tf, a)); + }; + this.gpa = function() { + var a, b, f; + if (Q.j.$h) try { + a = !1; + Q.ka % Q.config().SH && !Q.j.vl && (a = !0, Q.cC = Q.cC.filter(function(a) { + return !a.S; + })); + if (0 < Q.cC.length) { + b = Q.IQ.construct(Q.cC, 0); + Q.cC = []; + b.erroronly = a; + Q.config().TH.length && (b.tcpinfo = Q.config().TH.join(",")); + f = {}; + u.pc(b, function(a, b) { + f[a] = JSON.stringify(b); }); - })["catch"](function(c) { - var d, h; - try { - d = JSON.stringify(c.ji); - } catch (Sa) {} - h = { - method: a.method, - success: c.K + Q.Sb(U.we.wGa, !1, S.Tf, f); + } + } catch (vd) { + Q.log.error("Exception in dlreport.", vd); + } + }; + this.Bva = function() { + var a, b; + if (Q.j.state.value == k.qn) { + a = Q.sxa(); + Q.config().y9 && (a.avtp = Q.Cz.Tn().Bz, Q.j.Ok && Q.eS(a)); + a.midplayseq = Q.Jfb++; + b = Q.j.Pc.value; + a.prstate = b == k.Mo ? "playing" : b == k.Dq ? "paused" : b == k.xw ? "ended" : "waiting"; + Q.config().rnb && Q.NAa("midplay"); + Q.config().Kl && A._cad_global.videoPreparer && Q.G5(a); + Q.E5(a); + Q.F5(a); + Q.Sb(U.we.IKa, !1, S.Lg | S.Tf | S.Qs | S.iN, a); + } + }; + this.r4a = function(a) { + var b, f, c, d, g, m; + a = a.response; + b = a.request; + f = a.request.fo; + c = b.track; + if (c) { + d = !a.S && a.T != y.H.Vs; + g = c.type; + m = a.Zi; + if (d || Q.j.tJ) { + f = { + dltype: g, + url1: b.url, + url2: a.url || "", + cdnid: b.Mb && b.Mb.id, + tresp: u.Bl(m.Mf - m.requestTime), + brecv: u.A7a(m.Cr), + trecv: u.Bl(m.Mk - m.Mf), + sbr: f && f.O + }; + a.Pp && (f.range = a.Pp); + switch (g) { + case p.Vf.audio: + f.adlid = b.stream.pd; + break; + case p.Vf.video: + f.vdlid = b.stream.pd; + break; + case p.Vf.vV: + f.ttdlid = c.pd; + }(b = ga.Gra(a.T)) && (f.nwerr = b); + a.Bh && (f.httperr = a.Bh); + Q.Sb(U.we.xGa, d, S.Tf, f); + } + } + }; + this.En = function() { + Q.Sb(U.we.PDa, !1, S.Lg | S.Qs, { + browserua: F.pj + }); + }; + this.J_a = function(a) { + var b, f, c; + a = a.response; + b = a.Zi; + f = x.rb(b.Mf); + c = x.rb(b.Mk); + b = D.Z(b.Cr || 0); + b.Mta() || b.vta() || (f = new z.Vga(f, c), Q.Cz.tP(new n.FW(f, b)), a && a.request && a.request.fo && a.request.fo.cd && Q.UP.tP(new P.GEa(f, b, a.request.fo.cd))); + }; + this.Gib = function(a) { + var b; + b = a.newValue; + a.tu && a.tu.c8 && b || b == Q.n6 || (Q.Yob(Q.n6, b), Q.n6 = b); + }; + this.GB = function(a) { + function b(a) { + var b; + if (Q.j.jb && Q.j.jb.sourceBuffers) { + b = Q.j.jb.sourceBuffers.filter(function(b) { + return b.type === a; + }).pop(); + if (b) return { + busy: b.qk(), + updating: b.updating(), + ranges: b.AR() }; - D.ah(d) && (h.errorData = d); - D.ah(c.R) && (h.errorSubCode = c.R); - D.ah(c.ub) && (h.errorExternalCode = c.ub); - D.ah(c.za) && (h.errorDetails = c.za); - D.ah(c.ne) && (h.errorDisplayMessage = c.ne); - b.log.error("Processing EDGE response failed", h); - c.__logs && b.log.error(c.__logs); - g(c); + } + } + Q.YD = "rebuffer"; + a = { + cause: a.cause + }; + a.cause && a.cause === k.rga && (a.mediaTime = Q.j.sd.value, a.buf_audio = b(h.OX), a.buf_video = b(h.uF)); + Q.Zbb(Q.rL[k.Mo] || 0, Q.rL[k.Dq] || 0, a); + Q.OE = Q.getTime(); + q.hb(Q.i1); + }; + this.Lqb = function(a) { + var b; + a = a.oldValue; + b = Q.getTime(); + a == k.Di ? Q.rL = [] : Q.rL[a] = (Q.rL[a] || 0) + (b - Q.fdb); + Q.fdb = b; + }; + this.Rp = function(a) { + switch (a.cause) { + case N.Ng.vA: + case N.Ng.MY: + Q.YD && Q.OE ? Q.hjb(Q.getTime() - Q.OE, Q.YD) : Q.Hk || Q.qxa(), Q.YD = "repos", Q.Xlb(a.AT, a.dh, a.ig), Q.OE = Q.getTime(), q.hb(Q.i1); + } + }; + this.i1 = function() { + var a; + if (Q.OE && Q.j.Pc.value != k.Di) { + a = Q.getTime() - Q.OE; + Q.rmb(a, Q.Kj); + Q.j6 && Q.j6 != Q.j.Ic.value && Q.IP(); + Q.OE = void 0; + Q.YD = void 0; + Q.Kj = void 0; + } + }; + this.JP = function(a) { + Q.$cb = Q.getTime(); + Q.j6 = a.oldValue; + }; + this.Hh = function() { + r.sa(!Q.Hk); + Q.Hk = !0; + Q.FAa(!1); + Q.Pbb(); + Q.config().fta && (Q.K5 = A.setTimeout(function() { + A._cad_global.logBatcher && A._cad_global.logBatcher.flush(!1)["catch"](function() { + return Q.log.warn("failed to flush logbatcher on initialLogFlushTimeout"); }); + Q.K5 = void 0; + }, Q.config().fta)); + }; + this.Ce = function() { + Q.K5 && clearTimeout(Q.K5); + if (Q.config().SH || Q.config().AB) Q.I2 && clearInterval(Q.I2), Q.gpa(); + Q.Hk ? Q.c6a(!!Q.j.Ch) : Q.j.Ch ? Q.FAa(!0) : Q.qxa(); + Q.Vmb || (Q.Sb = h.Qb); + }; + this.zsb = function(a) { + a.oldValue && a.tu && a.tu.una && Q.p_a(a.oldValue, a.newValue, a.tu.una, a.tu.EYa); + }; + this.Vjb = function(a) { + var b; + if (a.newValue) { + b = a.newValue.stream; + Q.o6 != b && (Q.o6 && Q.Klb(Q.o6, b, a.newValue.Dm.startTime), Q.o6 = b); + } + }; + this.av = function(a) { + function b(a, b) { + var f; + if (!a || a.H6 !== b.location) { + f = { + H6: b.location, + qua: b.locationlv, + Cnb: b.serverid, + tz: b.servername + }; + Q.c_a(a, b); + return f; + } + } + if ("audio" === a.mediaType) { + if (a = b(Q.Zcb, a)) Q.Zcb = a; + } else if (a = b(Q.kJ, a)) Q.kJ = a; + }; + this.MU = function(a) { + Q.Sb(U.we.gPa, !1, S.Lg | S.Tf, { + mediatype: a.mediatype, + server: a.server, + selreason: a.reason, + location: a.location, + bitrate: a.bitrate, + confidence: a.confidence, + throughput: a.throughput, + oldserver: a.oldserver }); - } - - function f(a, b) { + }; + this.CP = function(a) { + Q.Sb(U.we.HCa, !1, S.Tf, { + strmsel: a.strmsel + }); + }; + this.BP = function(a) { + Q.Sb(U.we.GCa, !1, S.Tf, { + msg: a.msg + }); + }; + this.oV = function(a) { + a = l.UK(a); + a.details && (a.details = JSON.stringify(a.details)); + Q.Sb(U.we.xPa, !0, S.Lg | S.oA | S.kM, a); + }; + this.zhb = function() { + A._cad_global.logBatcher.flush(!0)["catch"](function() { + return Q.log.warn("failed to flush logbatcher on midplay interval"); + }); + }; + this.Cz = b(); + this.log = m.qf(a, "LogblobBuilder"); + this.n6 = a.paused.value; + this.ka = a.ka; + this.Qob(); + } + Object.defineProperty(d, "__esModule", { + value: !0 + }); + c = a(60); + h = a(5); + k = a(41); + f = a(25); + p = a(75); + m = a(3); + r = a(12); + u = a(18); + x = a(4); + v = a(61); + y = a(2); + l = a(17); + D = a(31); + z = a(339); + n = a(326); + P = a(627); + F = a(6); + q = a(42); + N = a(16); + O = a(15); + t = a(626); + U = a(625); + ga = a(147); + b.prototype.Qob = function() { + var a; + a = this; + this.j.Pi.addListener(this.wqb); + this.j.Ic.addListener(this.JP); + this.j.paused.addListener(this.Gib); + this.j.ig.addListener(this.Vjb); + this.j.Pc.addListener(this.i1); + this.j.Pc.addListener(this.Lqb); + this.j.ie.addListener(this.zsb); + this.j.addEventListener(N.X.BP, this.BP); + this.j.addEventListener(N.X.CP, this.CP); + this.j.addEventListener(N.X.En, this.En); + this.j.addEventListener(N.X.GB, this.GB); + this.j.addEventListener(N.X.Ce, this.Ce); + this.j.addEventListener(N.X.RH, this.r4a, h.fY); + this.j.addEventListener(N.X.av, this.av); + this.j.addEventListener(N.X.Hh, this.Hh); + this.j.addEventListener(N.X.Rp, this.Rp); + this.j.addEventListener(N.X.MU, this.MU); + this.j.addEventListener(N.X.oV, this.oV); + this.j.addEventListener(N.X.uV, this.uV); + this.j.addEventListener(N.X.Kj, function() { + a.Kj = !0; + }); + this.j.du && this.j.du.addListener(function(b) { + a.du(b.newValue); + }); + this.config().Kh && (this.Vmb = !0); + if (this.config().SH || this.config().AB) this.j.addEventListener(N.X.RH, function(b) { + a.cC.push(a.IQ.m0a(b.response)); + }), this.I2 = A.setInterval(this.gpa, this.config().z4a); + this.config().y9 && this.j.addEventListener(N.X.RH, this.J_a); + }; + b.prototype.FAa = function(a) { + var b, c, h, r, y, l, w, D, z, n, E, P, q, la, N, T, Y, ga, G, R, cb, tb, Ta; + b = {}; + try { b = { - method: "stop", - playbackContextId: b.Dc, - playbackSessionId: b.xi, - xid: b.aa, - mediaId: b.Jg, - type: S, - position: b.position, - playback: O(b.L), - timestamp: b.timestamp, - uiProfileGuid: Z() - }; - return c(b, a); - } - - function v(a, b, d) { - a = { - method: "pblifecycle", - type: b, - playbackSessionId: a.xi, - mediaId: a.Jg, - position: a.position, - timestamp: a.timestamp, - playback: O(a.L), - uiProfileGuid: Z() + browserua: F.pj, + browserhref: location.href, + playdelaysdk: u.Bl(this.j.JZa()), + applicationPlaydelay: u.Bl(this.j.CZa()), + playdelay: u.Bl(this.j.IZa()), + trackid: this.j.Qf, + bookmark: u.Bl(this.j.sr || 0), + pbnum: this.j.index, + endianness: f.Z8a() }; - return c(a, d); + this.config().w5a && (b.transitiontime = this.j.Iz, b.uiplaystarttime = this.j.Ta.CV, b.playbackrequestedat = this.j.Tm.ma(x.Aa), b.clockgettime = this.getTime(), b.clockgetpreciseepoch = this.Ma.eg.ma(x.Aa), b.clockgetpreciseappepoch = this.Va.bD.ma(x.Aa), b.absolutestarttime = this.j.xR(), b.relativetime = this.j.by()); + this.T3(b, "startplay"); + } catch (Ua) { + this.log.error("error in startplay log fields", Ua); + } + this.j.En && (b.blocked = this.j.En); + this.config().endpoint || (b.configendpoint = "error"); + this.j.df && (b.playbackcontextid = this.j.df); + this.j.bQ && (b.controllerESN = this.j.bQ); + if (this.config().PV && this.j.Ta.bba) { + for (var d = {}, g = Object.keys(this.j.Ta.bba), m, p = g.length; p--;) m = g[p], d[m.toLowerCase()] = this.j.Ta.bba[m]; + b.vui = d; + } + O.ja(this.j.Tma) && (b.bookmarkact = u.Bl(this.j.Tma)); + (d = this.j.ud.at && this.j.ud.ats ? this.j.ud.at - this.j.ud.ats : void 0) && (b.nccpat = d); + (d = this.j.ud.lr && this.j.ud.lc ? this.j.ud.lr - this.j.ud.lc : void 0) && (b.nccplt = d); + (d = this.E4a()) && (b.downloadables = d); + A._cad_global.device && O.ab(A._cad_global.device.rC) && (b.esnSource = A._cad_global.device.rC); + (d = A._cad_global.platformExtraInfo) && u.La(b, d, { + prefix: "pi_" + }); + (d = F.Ph && F.Ph.connection && F.Ph.connection.type) && (b.nettype = d); + this.j.Bm && this.j.Bm.initBitrate && (b.initvbitrate = this.j.Bm.initBitrate); + this.j.Bm && this.j.Bm.selector && (b.selector = this.j.Bm.selector); + b.fullDlreports = this.j.Ipa; + if (this.j.state.value >= k.qn) try { + h = this.j.Ln(); + h && (this.bv = f.Cba(h.map(function(a) { + return a.O; + })), this.eva = f.Cba(h.map(function(a) { + return a.height; + })), c = 0 < h.length ? t.Leb(h, function(a) { + return a.O; + }) : void 0, b.maxbitrate = this.bv, b.maxresheight = this.eva); + } catch (Ua) { + this.log.error("Exception computing max bitrate", Ua); } - - function x(a) { - return c({ - method: "ping" - }, a); + try { + r = f.IR(); + r && (b.pdltime = r); + } catch (Ua) {} + try { + u.La(b, this.j.ud, { + prefix: "sm_" + }); + u.La(b, this.j.OR(), { + prefix: "vd_" + }); + } catch (Ua) {} + "undefined" !== typeof nrdp && nrdp.device && (b.firmware_version = nrdp.device.firmwareVersion); + a && this.j.qo && (b.pssh = this.j.qo); + this.j.dg && this.j.dg.Ck && this.j.dg.Ck.keySystem && (b.keysys = this.j.dg.Ck.keySystem); + if (this.config().Kl && A._cad_global.videoPreparer) try { + h = {}; + y = A._cad_global.videoPreparer.getStats(void 0, void 0, this.j.R); + l = this.j.xR(); + w = y.Ov.V_a; + h.attempts = y.Lxa || 0; + h.num_completed_tasks = w.length; + D = this.Hd.W6a; + r = {}; + z = v.fd.Wd.oha; + n = v.fd.Wd.rq; + E = v.fd.Wd.jM; + P = v.fd.Wd.SE; + q = v.fd.Wd.iM; + y.di && (r.scheduled = y.di - l); + la = this.j.Fa; + la && O.ab(la.oz) && (r.preauthsent = la.oz - this.j.Hf, r.preauthreceived = la.VD - this.j.Hf); + N = w.filter(D("type", "manifest")); + h.mf_succ = N.filter(D("status", z)).length; + h.mf_fail = N.filter(D("status", n)).length; + T = this.j.ud; + O.ab(T.lg) && 0 > T.lg && this.j.Hf && (r.ldlsent = T.lc, r.ldlreceived = T.lr); + Y = w.filter(D("type", "ldl")); + h.ldl_succ = Y.filter(D("status", z)).length; + h.ldl_fail = Y.filter(D("status", n)).length; + y = !0; + if (!r.preauthreceived || 0 <= r.preauthreceived) y = !1; + this.config().QQ || (y = !1); + ga = Y.filter(D("status", E)).length; + G = Y.filter(D("status", P)).length; + R = Y.filter(D("status", q)).length; + this.config().QQ && 0 === ga + G + R && (!r.ldlreceived || 0 <= r.ldlreceived) && (y = !1); + if (this.config().PQ) { + cb = this.j.Cl && this.j.Cl.stats; + if (cb) { + if (cb.lR && (r.headersent = cb.lR - this.j.Hf), cb.GS && (r.headerreceived = cb.GS - this.j.Hf), cb.MD && (r.prebuffstarted = cb.MD - this.j.Hf), cb.hK && (r.prebuffcomplete = cb.hK - this.j.Hf), !r.prebuffcomplete || 0 <= r.prebuffcomplete) y = !1; + } else y = !1; + } + tb = w.filter(D("type", "getHeadersAndMedia")); + h.hm_succ = tb.filter(D("status", z)).length; + h.hm_fail = tb.filter(D("status", n)).length; + u.La(b, h, { + prefix: "pr_" + }); + b.eventlist = JSON.stringify(r); + b.prefetchCompleted = y; + this.G5(b); + } catch (Ua) { + this.log.warn("error in collecting video prepare data", Ua); + } + b.avtp = this.Cz.Tn().Bz; + this.j.Ok && this.eS(b); + if (this.j.kc.value) try { + b.ttTrackFields = this.j.kc.value.If; + } catch (Ua) {} + if (w = this.j.Ic && this.j.Ic.value && this.j.Ic.value.qc) { + Ta = {}; + w.forEach(function(a) { + Ta[a.Me] = void 0; + }); + b.audioProfiles = Object.keys(Ta); + } + this.H5(b); + this.j.Fa && "boolean" === typeof this.j.Fa.isSupplemental && (b.isSupplemental = this.j.Fa.isSupplemental); + b.headerCacheHit = !!this.j.Cl; + this.j.Cl && (b.headerCacheDataAudio = this.j.Cl.audio, b.headerCacheDataAudioFromMediaCache = this.j.Cl.audioFromMediaCache, b.headerCacheDataVideo = this.j.Cl.video, b.headerCacheDataVideoFromMediaCache = this.j.Cl.videoFromMediaCache); + this.j.Fa && (b.packageId = this.j.Fa.packageId); + this.j.Fa && this.j.Fa.choiceMap && (b.hasChoiceMap = !0); + this.config().Fqa && (b.forceL3WidevineCdm = !0); + b.isNonMember = this.Sm.Xi; + this.Ucb(c); + this.Tcb(); + this.Usa(this.j, b); + this.Vsa(this.j, b); + this.hy(this.j, b); + this.E5(b); + this.F5(b); + this.Zsa(b); + this.Tsa(b); + this.$sa(b); + this.Wsa(b); + this.D5(b); + this.Sb(U.we.pPa, a, S.Lg | S.oA | S.Tf | S.iN | S.Qs | S.kM | S.PW, b); + }; + b.prototype.rmb = function(a, b) { + b = { + playdelay: u.Bl(a), + reason: this.YD, + intrplayseq: this.nS - 1, + skipped: b + }; + this.hy(this.j, b); + this.Sb(U.we.tOa, !1, S.Lg | S.oA | S.Tf, b); + "rebuffer" == this.YD && this.j.lo.YWa(Number(u.Bl(a))); + }; + b.prototype.p_a = function(a, b, f, c) { + a = { + moff: u.Wx(f), + vbitrate: b.O, + vbitrateold: a.O, + vdlid: b.pd, + vdlidold: a.pd, + vheight: b.height, + vheightold: a.height, + vwidth: b.width, + vwidthold: a.width, + bw: c + }; + this.hy(this.j, a); + this.Sb(U.we.KEa, !1, S.Tf, a); + }; + b.prototype.Klb = function(a, b, f) { + a = { + moff: u.Wx(f), + vdlidold: a.pd, + vbitrateold: a.O + }; + this.hy(this.j, a); + this.gy(a, b, this.j.dh.value && this.j.dh.value.stream); + this.Sb(U.we.mOa, !1, S.Tf, a); + }; + b.prototype.qxa = function() { + var a, b; + a = { + waittime: u.Bl(this.j.by()), + abortedevent: "startplay", + browserua: F.pj, + trackid: this.j.Qf + }; + this.j.df && (a.playbackcontextid = this.j.df); + this.j.Bm && this.j.Bm.initBitrate && (a.initvbitrate = this.j.Bm.initBitrate); + try { + b = f.IR(); + b && (a.pdltime = b); + u.La(a, this.j.ud, { + prefix: "sm_" + }); + } catch (X) {} + this.C5(a, !0); + this.$sa(a); + this.D5(a); + this.H5(a); + this.Xsa(a); + this.gy(a, this.j.ie.value, this.j.Ri.value); + this.Sb(U.we.zga, !1, S.Lg | S.Tf | S.Qs, a); + }; + b.prototype.hjb = function(a, b) { + a = { + waittime: u.Bl(a), + abortedevent: "resumeplay", + browserua: F.pj, + resumeplayreason: b + }; + this.j.df && (a.playbackcontextid = this.j.df); + this.j.Bm && this.j.Bm.initBitrate && (a.initvbitrate = this.j.Bm.initBitrate); + this.gy(a, this.j.ie.value, this.j.Ri.value); + this.Sb(U.we.zga, !1, S.Lg | S.Tf, a); + }; + b.prototype.Yob = function(a, b) { + a = { + newstate: b ? "Paused" : "Playing", + oldstate: a ? "Paused" : "Playing" + }; + this.hy(this.j, a); + this.gy(a, this.j.ig.value && this.j.ig.value.stream, this.j.dh.value && this.j.dh.value.stream); + this.Sb(U.we.qPa, !1, S.Lg | S.Tf, a); + }; + b.prototype.Zbb = function(a, b, f) { + a = u.La({ + vdlid: this.j.ie.value.pd, + playingms: a, + pausedms: b, + intrplayseq: this.nS++ + }, f); + this.T3(a, "intrplay"); + b = this.j.Mb[c.gc.G.VIDEO].value; + f = this.j.Mb[c.gc.G.AUDIO].value; + a.cdnid = a.vcdnid = b && b.id; + a.acdnid = f && f.id; + a.locid = this.kJ && this.kJ.H6; + a.loclv = this.kJ && this.kJ.qua; + a.avtp = this.Cz.Tn().Bz; + this.j.Ok && (this.C5(a, !0), this.eS(a), this.Ysa(a)); + try { + u.La(a, this.j.OR(), { + prefix: "vd_" + }); + } catch (aa) {} + this.Wsa(a); + this.hy(this.j, a); + this.gy(a, this.j.ig.value && this.j.ig.value.stream, this.j.dh.value && this.j.dh.value.stream); + this.Sb(U.we.$Ia, !1, S.Lg | S.Tf, a); + }; + b.prototype.Xlb = function(a, b, f) { + a = { + moffold: u.Wx(a), + reposseq: this.Jya++ + }; + this.gy(a, f && f.stream, b && b.stream); + this.Sb(U.we.pOa, !1, S.Lg | S.Tf, a); + }; + b.prototype.IP = function() { + this.Sb(U.we.qDa, !1, S.Lg | S.Tf, { + switchdelay: u.Bl(this.getTime() - this.$cb), + newtrackinfo: this.j.Ic.value.Tb, + oldtrackinfo: this.j6.Tb + }); + }; + b.prototype.du = function(a) { + this.Sb(U.we.ODa, !1, S.Lg | S.Tf, a); + }; + b.prototype.c_a = function(a, b) { + var f, c, d, g; + f = b.serverid; + c = b.serverrtt; + d = b.serverbw; + g = { + locid: b.location, + loclv: b.locationlv, + selocaid: f, + selcdnid: f, + selocaname: b.servername + }; + g.mediatype = b.mediatype; + g.selcdnrtt = c; + g.selcdnbw = d; + g.selreason = b.selreason || "unknown"; + g.testreason = b.testreason; + g.fastselthreshold = b.fastselthreshold; + g.seldetail = b.seldetail; + g.cdnbwdata = JSON.stringify([{ + id: f, + rtt: c, + bw: d + }]); + a && (g.oldlocid = a.H6, g.oldloclv = a.qua, g.oldocaid = a.Cnb, g.oldocaname = a.tz); + this.Sb(U.we.IEa, !1, S.kM, g); + }; + b.prototype.NAa = function(a) { + var b, f; + b = {}; + b.trigger = a; + try { + f = this.j.z4(); + b.subtitleqoescore = this.j.dn.K$a(f); + b.metrics = JSON.stringify(this.j.dn.N4(f)); + } catch (aa) { + this.log.error("error getting subtitle qoe data", aa); } - - function y(a) { - return c({ - method: "bind", - isExclusive: !0 - }, a, function(a) { - return { - kmb: a.customerGUID, - K: !0 - }; + this.Sb(U.we.zPa, !1, S.Lg | S.Qs | S.oA, b, "info"); + }; + b.prototype.transition = function(a) { + this.Sb(U.we.YPa, !1, 0, a); + }; + b.prototype.v$a = function(a, b) { + if (a = a.BR()) + if (b = a[b]) return b.wo; + }; + b.prototype.Usa = function(a, b) { + a.Ta.Ze && (b.isBranching = !0); + }; + b.prototype.Vsa = function(a, b) { + b.cachedManifest = a.ku; + b.cachedLicense = a.Cx; + }; + b.prototype.hy = function(a, b) { + var f, c; + if (this.config().Ibb) { + f = a.A4(); + if (f) { + b.segment = f; + c = a.ay(); + a = this.v$a(a, f); + null !== c && void 0 !== a && (b.segmentoffset = c - a); + } + } + }; + b.prototype.Ysa = function(a) { + var b, f; + b = this.j.m5; + f = b && b.Wlb; + b && b.Msa && (a.htwbr = b.Msa, a.pbtwbr = b.NT, a.hptwbr = b.obb); + b && b.iza && (a.rr = b.iza, a.ra = b.Hkb); + b && f && 0 < (f.length || 0) && (a.qe = JSON.stringify(f)); + }; + b.prototype.H5 = function(a) { + var b, f; + b = this.j.Te && this.j.Te.value && this.j.Te.value.qc; + if (b) { + f = {}; + b.forEach(function(a) { + f[a.Me] = void 0; }); + a.videoProfiles = Object.keys(f); } - - function k(a, b) { - return c({ - method: "pair", - targetuuid: a.Gab, - cticket: a.jSa, - nonce: a.k3a, - controlleruuid: a.KPa, - pairdatahmac: a.Mqb - }, b, function(b) { + }; + b.prototype.Xsa = function(a) { + var b, f, c; + try { + b = this.Hd.createElement("canvas"); + f = b.getContext("webgl") || b.getContext("experimental-webgl"); + if (f) { + c = f.getExtension("WEBGL_debug_renderer_info"); + c && (a.WebGLRenderer = f.getParameter(c.UNMASKED_RENDERER_WEBGL), a.WebGLVendor = f.getParameter(c.UNMASKED_VENDOR_WEBGL)); + } + } catch (ra) {} + }; + b.prototype.c6a = function(a) { + var b, f, c, d, l; + b = this; + f = this.sxa(); + this.T3(f, "endplay"); + f.browserua = F.pj; + this.j.Hs && "downloaded" === this.j.Hs.JR() && (f.trickplay_ms = this.j.AL.offset, f.trickplay_res = this.j.AL.Nya); + this.config().Waa && (f.rtinfo = this.j.p$a()); + if (this.config().y9) { + c = this.Cz.Tn().Bz; + void 0 !== f.avtp ? f.avtp_retired = c : f.avtp = c; + f.cdnavtp = this.UP.v8a().map(function(a) { return { - K: !0, - mob: { - nonce: b.nonce, - controlleruuid: a.KPa, - controlleruserid: b.controllerUserId, - controllersharedsecret: b.controllerSharedSecret, - targetuuid: a.Gab, - targetuserid: b.targetUserId, - targetsharedsecret: b.targetSharedSecret - }, - nob: b.grantDataHmac + cdnid: a.mH, + avtp: a.Bz, + tm: a.J2 }; }); + this.j.Ok && this.eS(f); } - - function F(a, b) { - y(a).then(function(a) { - b(a); - })["catch"](function(a) { - b(a); + f.endreason = a ? "error" : this.j.Pc.value == k.xw ? "ended" : "stopped"; + c = A._cad_global.platformExtraInfo; + this.Dbb(c); + c && u.La(f, c, { + prefix: "pi_" + }); + c = this.j.Ch; + a && c && y.iHa(c.errorCode) && (d = "info"); + try { + u.La(f, this.j.ud, { + prefix: "sm_" }); + } catch (Da) {} + this.j.B5 && (f.inactivityTime = this.j.B5); + this.C5(f, "info" !== d && a); + this.Ysa(f); + if (this.j.Ax) { + for (var c = this.j.Ax, g = this.config().FB, m = this.j.Hf, p = { + iv: g, + seg: [] + }, h = function(a, b, f) { + return 0 === b || void 0 === f[b - 1] ? a : a - f[b - 1]; + }, r = c.kr.map(h), h = c.Ls.map(h), v, x = 0; x < r.length; x++) { + if (r[x] || h[x]) v ? (v.ams.push(r[x]), v.vms.push(h[x])) : v = { + ams: [c.kr[x]], + vms: [c.Ls[x]], + soffms: c.startTime + x * g - m + }; + x !== r.length - 1 && r[x] && h[x] || !v || (p.seg.push(v), v = void 0); + } + f.bt = JSON.stringify(p); } - - function N(a, b, c, d) { - v(a, b, c).then(function(a) { - d(a); - })["catch"](function(a) { - d(a); + if (this.j.YS && 0 < this.j.YS.length) { + l = []; + this.j.YS.forEach(function(a) { + l.push({ + soffms: a.time - b.j.Hf, + maxvb: a.maxvb, + maxvb_old: a.maxvb_old, + spts: a.spts, + reason: a.reason + }); }); - } - - function n(b, c, d) { - k(b, c).then(function(a) { - d(a); - })["catch"](function(b) { - var c, g; - g = ""; - if (b.ji) try { - c = JSON.parse(b.ji); - c.error_message ? g = c.error_message.replace("com.netflix.streaming.nccp.handlers.mdx.MdxException: ", "") : c.implementingClass && (g = c.implementingClass); - } catch (ua) { - a.error("Failed to parse Pairing errorData", { - ji: c + f.maxvbevents = l; + } + this.j.Wxa && (f.psdConservCount = this.j.Wxa); + a && (this.H5(f), this.Xsa(f)); + this.NAa("endplay"); + this.config().Kl && A._cad_global.videoPreparer && this.G5(f); + f.isNonMember = this.Sm.Xi; + this.Usa(this.j, f); + this.Vsa(this.j, f); + this.hy(this.j, f); + this.E5(f); + this.F5(f); + this.Zsa(f); + this.Ebb(f); + this.Tsa(f); + this.D5(f); + this.Gbb(f); + this.Fbb(f); + this.Sb(U.we.gHa, a, S.Lg | S.oA | S.Tf | S.Qs | S.iN | S.PW, f, d); + }; + b.prototype.E4a = function() { + var a; + if (this.j.hq && this.j.xm) { + a = []; + this.j.hq.concat(this.j.xm).forEach(function(b) { + b.qc.forEach(function(b) { + a.push({ + dlid: b.pd, + type: b.type, + bitrate: b.O, + vmaf: b.oc }); - } - m.oa(b, q(g)); - d(b); + }); }); + return JSON.stringify(a); } + }; + b.prototype.a_a = function() { + var b, f, c; - function q(a) { - switch (a) { - case "MDX_ERROR_CONTROLLER_CTICKET_EXPIRED": - return { - rN: 5, - tN: 21, - uN: void 0, - ne: void 0, - sN: void 0 - }; - case "MDX_ERROR_CONTROLLER_REQUEST_HMAC_FAILURE": - return { - rN: 2, - tN: 20, - uN: void 0, - ne: void 0, - sN: void 0 - }; - case "MDX_ERROR_INVALID_CONTROLLER_REQUEST": - return { - rN: 2, - tN: 10, - uN: void 0, - ne: void 0, - sN: void 0 - }; - case "com.netflix.api.service.mdx.MdxPairDependencyCommand": - return { - rN: 2, - tN: 13, - uN: void 0, - ne: void 0, - sN: void 0 - }; - default: - return { - rN: 4, - tN: 30, - uN: void 0, - ne: void 0, - sN: void 0 - }; - } - } - - function Z() { - return "windows_app" === V.WM && u.He && u.He.fG ? u.He.profile.id : t.data.profileGuid; + function a(a, b) { + var d, g, m; + d = a.cdnId; + g = c[d]; + m = a.vmaf; + g || (g = { + cdnid: d, + dls: [] + }, c[d] = g, f.push(g)); + r.EH(a.bitrate); + r.EH(a.duration); + d = { + bitrate: a.bitrate, + tm: F.Uf(a.duration) + }; + m && (r.EH(a.vmaf), d.vf = m); + d[b] = u.Bd(a.downloadableId); + g.dls.push(d); } - - function O(a) { - return a.Gd ? a.Gd() : a; - } - B = h.Z.get(l.ZT); - t = h.Z.get(p.uC); - V = h.Z.get(r.Pe); - D = h.Z.get(g.rd); - m.oa(this, { - lw: function(a) { - return c({ - method: "login" - }, a, function(a) { - return { - K: a.success, - ds: a.accountGuid, - Kg: a.profileGuid, - Rj: a.isNonMember - }; - }); - }, - start: function(a, b) { - var d; - d = { - method: "start", - playbackContextId: b.Dc, - mediaId: b.Jg, - xid: b.aa, - appId: b.gs, - sessionId: b.sessionId, - sessionParams: function() { - var a; - a = {}; - b.pm && m.Kb(b.pm, function(b, c) { - a[b] = m.oc(c) ? c : JSON.stringify(c); - }); - b.jf && m.Kb(b.jf, function(b, c) { - a[b] = m.oc(c) ? c : JSON.stringify(c); - }); - return a; - }(), - trackId: b.Ab, - startPosition: b.kR, - playbackType: b.A5a, - uiProfileGuid: Z() - }; - return c(d, a, function(a) { - return { - K: !0, - xi: a.playbackSessionId - }; - }); - }, - stop: f, - Rn: function(a, b) { - b = { - method: "engage", - type: "engage", - playbackSessionId: b.xi, - mediaId: b.Jg, - position: b.position, - timestamp: b.timestamp, - playback: O(b.L), - action: b.action, - uiProfileGuid: Z() - }; - return c(b, a); - }, - m2a: function(a, b, c) { - N(a, da, b, c); - }, - WX: y, - eia: x, - ping: function(a, b) { - x(a).then(function(a) { - b(a); - })["catch"](function(a) { - b(a); - }); - }, - Lmb: function(a, b) { - a = Object.assign({}, a); - a.profile = void 0; - F(a, b); - }, - Aw: F, - bsb: function(a, b, c, d) { - F(Object.assign({ - Aw: b, - IQ: c - }, a), d); - }, - asb: function(a, b, c, d) { - F(Object.assign({ - Tv: b, - password: c - }, a), d); - }, - Qh: function(a, b, c) { - f(b, a).then(function(a) { - c(a); - })["catch"](function(a) { - c(a); - }); - }, - q0: function(b, c, d, g) { - var h; - h = X[c]; - h ? N(b, h, d, g) : a.error("heartbeat type " + c + " not recognized"); - }, - Tpb: n, - Upb: function(a, b, c) { - var f; - - function d(d) { - n(a, b, function(a) { - a.K ? (a.Aw = d.Aw, a.IQ = d.IQ, a.Z2a = d.Z2a, a.F8a = d.F8a, c(a)) : c(d); - }); + b = this.j.lo.d8a(); + f = []; + c = {}; + b.audio.forEach(function(b) { + a(b, "adlid"); + }); + b.video.forEach(function(b) { + a(b, "dlid"); + }); + return JSON.stringify(f); + }; + b.prototype.sxa = function() { + var a, b, f, c, d, g, m, k, p, h, v, x, y; + a = this.j.lo; + b = { + totaltime: u.Wx(a.T4()), + cdndldist: this.a_a(), + reposcount: this.Jya, + intrplaycount: this.nS + }; + try { + f = { + numskip: 0, + numlowqual: 0 + }; + c = this.j.Gh; + d = c.FR(); + O.ja(d) && (b.totfr = d, f.numren = d); + d = c.Zx(); + O.ja(d) && (b.totdfr = d, f.numrendrop = d); + d = c.wI(); + O.ja(d) && (b.totcfr = d, f.numrenerr = d); + d = c.GR(); + O.ja(d) && (b.totfdl = d); + b.playqualvideo = JSON.stringify(f); + b.videofr = this.j.ie.value.tR.toFixed(3); + g = a.Yqa(); + g && (b.abrdel = g); + m = a.Qab() && a.h8a(); + m && (b.tw_vmaf = m); + k = a.g8a(); + k && u.La(b, k); + b.rbfrs = this.nS; + b.maxbitrate = this.bv; + b.maxresheight = this.eva; + p = this.j.cy(); + for (y = 0; y < p.length; y++) { + h = p[y]; + if (x = this.j.y7.zs(h)) { + r.sa(v); + b.maxbitrate = v ? v.O : 0; + b.maxresheight = v ? v.height : 0; + b.bitratefilters = x.join("|"); + break; } - - function g(a) { - y(f).then(function(a) { - a.K ? d(a) : c(a); - })["catch"](function(b) { - a ? g(!1) : c(b); - }); + v = h; + } + this.j.Hs && (b.trickplay = this.j.Hs.JR()); + null !== this.j.dn.Jma && (b.avg_subt_delay = this.j.dn.Jma); + } catch (Da) { + this.log.error("Exception reading some of the endplay fields", Da); + } + u.La(b, this.j.OR(), { + prefix: "vd_" + }); + return b; + }; + b.prototype.getTime = function() { + return this.Va.Pe().ma(x.Aa); + }; + b.prototype.GU = function(a) { + a.browserua = F.pj; + this.Sb(U.we.bPa, !a.success, S.Lg | S.Qs, a); + this.Sb = h.Qb; + }; + b.prototype.Pbb = function() { + var a, b, f, c; + a = this; + f = []; + if (this.config().Hfb) { + c = { + wva: function() {}, + Mza: function() { + a.Bva(); } - f = Object.assign({ - ina: a.jSa, - e2a: a.arb, - d2a: a.k3a, - c2a: a.hmb, - f2a: h.Pi(a.csb) - }, b); - g(!0); - }, - Qsb: function(a, b, c, d) { - D.Wy(c) && !m.$a(d) && (d = c, c = void 0); - nrdp && nrdp.registration && nrdp.registration.deactivateAll(function() { - F(Object.assign({ - i2a: "GOOGLE_JWT", - psa: b, - Kg: c - }, a), d); - }); - }, - mka: function() { - return d.AM() + 0; - }, - imb: function(a) { - return a + 0; - }, - dob: function(a, b) { - return c({ - method: "secret", - dates: a - }, b, function(a) { - return { - K: !0, - mrb: a.prefetchKeys - }; + }; + this.Eg.addListener(c); + this.config().Ifb.forEach(function(b) { + f.push(A.setTimeout(a.Bva, b)); + }); + this.config().Cva && (b = A.setInterval(this.zhb, this.config().Cva)); + this.j.addEventListener(N.X.Ce, function() { + a.Eg.removeListener(c); + f.forEach(function(a) { + clearTimeout(a); }); + b && clearInterval(b); + }); + } + }; + b.prototype.G5 = function(a) { + var b; + try { + b = A._cad_global.videoPreparer.getStats(); + a.pr_cache_size = JSON.stringify(b.cache); + a.pr_stats = JSON.stringify(b.Pqa); + } catch (X) {} + }; + b.prototype.E5 = function(a) { + this.log.debug("httpstats", this.Ab.ac); + u.La(a, this.Ab.ac, { + prefix: "http_" + }); + }; + b.prototype.C5 = function(a, b) { + this.config().Joa && !(this.ka % this.config().Joa) && this.j.gb && this.j.gb.Q5 && (a.ASEstats = JSON.stringify(this.j.gb.Q5(b))); + }; + b.prototype.eS = function(a) { + var b, f; + b = this.j.Ok.Wa.get(!0); + if (b.zc && b.pa) { + a.aseavtp = Number(b.pa.za).toFixed(2); + a.asevartp = Number(b.pa.Kg).toFixed(2); + if (b.xk) { + f = b.xk.PT; + !f || isNaN(f.Gk) || isNaN(f.Fk) || isNaN(f.cj) || (a.aseniqr = 0 < f.cj ? Number((f.Gk - f.Fk) / f.cj).toFixed(2) : -1, a.aseiqr = Number(f.Gk - f.Fk).toFixed(2), a.asemedtp = Number(f.cj).toFixed(2)); + a.iqrsamples = b.xk.Nl; } + b.Tl && b.Tl.Qr && (a.tdigest = b.Tl.Qr()); + } + }; + b.prototype.F5 = function(a) { + var b; + try { + b = F.wq.memory; + O.Icb(b) && (a.totalJSHeapSize = b.totalJSHeapSize, a.usedJSHeapSize = b.usedJSHeapSize, a.jsHeapSizeLimit = b.jsHeapSizeLimit); + } catch (X) {} + }; + b.prototype.Zsa = function(a) { + var b; + b = this.j.dg; + this.config().UZa && b && !this.config().Do && (a.keystatuses = this.j.Ggb(b.FEb()), this.log.trace("keystatuses", a.keystatuses)); + }; + b.prototype.Tsa = function(a) { + try { + this.config().lH && (a.battery = this.j.m8a(), this.log.trace("batterystatuses", a.battery)); + } catch (H) {} + }; + b.prototype.Ebb = function(a) { + this.j.tQ && (a.dqec = this.j.tQ); + }; + b.prototype.Dbb = function(a) { + this.j.TP && u.La(a, { + cast_interaction_counts: this.j.TP.z_ }); - S = "stop"; - da = "splice"; - X = {}; - X[b.Mna] = "resume"; - X[b.Nna] = "suspend"; - X[b.uq] = "interval"; }; - }, function(f, c, a) { - var b, d, h, l; - Object.defineProperty(c, "__esModule", { - value: !0 - }); - b = a(46); - d = a(4); - h = a(191); - l = a(28); - c.Rxa = function(a) { - function c(c) { - a.fireEvent(b.Ea.Hz, c); + b.prototype.$sa = function(a) { + var b; + b = this.j.Ta.ri; + b && b.isUIAutoPlay && (a.isUIAutoPlay = !0); + }; + b.prototype.D5 = function(a) { + if (this.config().EXa) try { + a.storagestats = this.l0.getData(); + } catch (H) {} + }; + b.prototype.Wsa = function(b) { + var f; + if (this.config().N2) { + f = a(187).Wna; + b.congested = f && f.e4() && f.e4().isCongested; } - return { - download: function(b, d) { - b.L = a; - b = l.Za.download(b, d); - b.cX(c); - return b; - } - }; }; - c.RT = function(a) { - return { - download: function(c, g) { - var f, m; - c.L = a; - m = c.Ya; - m && d.config.Poa && (f = { - Qoa: new h.f7(a.Ys), - Yma: d.config.qw, - g3: 0, - Ya: m - }); - c = l.Za.download(c, g, f); - c.cX(function(c) { - a.fireEvent(b.Ea.Hz, c); - }); - return c; - } - }; + b.prototype.Fbb = function(a) { + this.i3 && (a.externaldisplay = this.i3.fI); + }; + b.prototype.Gbb = function(a) { + this.Rv && this.Rv.ec && (a.media_capabilities_smooth = this.Rv.ec.Job, a.media_capabilities_efficient = this.Rv.ec.yjb, a.media_capabilities_bitrate = this.Rv.ec.O, a.media_capabilities_height = this.Rv.ec.height, a.media_capabilities_width = this.Rv.ec.width); + }; + b.prototype.gy = function(a, b, f) { + f && (a.adlid = f.pd, a.abitrate = f.O); + b && (a.vdlid = b.pd, a.vbitrate = b.O); + }; + b.prototype.Tcb = function() { + void 0 === this.i3 && (this.i3 = this.j3.R6a()); + }; + b.prototype.Ucb = function(a) { + void 0 === this.Rv && void 0 !== a && (this.Rv = this.v7.o3(a)); + }; + b.prototype.T3 = function(a, b) { + var f; + f = this.j.Qr(b); + f && Object.keys(f).forEach(function(b) { + a[b] = f[b]; + }); + }; + b.prototype.Sb = function(b, f, c, d, g) { + this.RWa(d, this.j, f, c); + b = new(a(97)).fA(this.j, b, g || (f ? "error" : "info"), d); + A._cad_global.logBatcher.Sb(b); + }; + b.prototype.RWa = function(a, b, f, d) { + var g, m, k, p, h; + "undefined" !== typeof nrdp && nrdp.device && nrdp.device.deviceModel && (a.devmod = nrdp.device.deviceModel); + b.eQ && (a.pbcid = b.eQ); + d & S.Lg && (r.sa(!a || void 0 === a.moff), 0 <= b.sd.value && (a.moff = u.Wx(b.sd.value))); + if (d & S.oA) { + g = b.Mb[c.gc.G.VIDEO].value; + m = b.Mb[c.gc.G.AUDIO].value; + k = b.dh.value; + p = b.ig.value; + g && (a.cdnid = g.id, a.cdnname = g.name); + m && (a.acdnid = m.id, a.acdnname = m.name); + k && (a.adlid = k.stream.pd, a.abitrate = k.stream.O); + p && (a.vdlid = p.stream.pd, a.vbitrate = p.stream.O, a.vheight = p.stream.height, a.vwidth = p.stream.width); + } + d & S.Tf && b.gb && (a.abuflbytes = b.x0(), a.abuflmsec = b.VG(), a.vbuflbytes = b.Zaa(), a.vbuflmsec = b.OL()); + if (d & S.iN) { + Object.assign(a, ga.Ura()); + try { + h = b.sf.getBoundingClientRect(); + a.rendersize = h.width + "x" + h.height; + a.renderpos = h.left + "x" + h.top; + } catch (ma) {} + } + d & S.Qs && (g = F.Ph.hardwareConcurrency, 0 <= g && (a.numcores = g), 0 <= b.hoa && (a.cpuspeed = b.hoa), (g = b.NQ && b.NQ.i8a()) && (a.droppedFrames = JSON.stringify(g)), g = b.NQ && b.NQ.y4(this.config().U4a), u.pc(g, function(b, f) { + a["droppedFramesP" + b] = JSON.stringify(f); + })); + if (d & S.kM) try { + b.$h && (a.cdninfo = JSON.stringify(b.$h.map(function(a) { + return { + id: a.id, + nm: a.name, + rk: a.Qd, + wt: a.location.weight, + lv: a.location.level + }; + }))); + } catch (ma) {} + f && d & S.PW && (r.sa(b.Ch), (f = b.Ch) ? a = Object.assign(a, ga.Lra(this.platform.pC, f)) : a.errorcode = y.I.Sh, a.errorcode === this.platform.pC + y.I.Mfa && (a.lastSyncWithVideoElement = this.getTime() - b.lL)); }; - }, function(f, c, a) { - var b, d, h, l, g, m; - Object.defineProperty(c, "__esModule", { + d.CJa = b; + (function(a) { + a[a.Lg = 1] = "MOFF"; + a[a.oA = 2] = "PRESENTEDSTREAMS"; + a[a.Tf = 4] = "BUFFER"; + a[a.iN = 8] = "SCREEN"; + a[a.Qs = 16] = "CPU"; + a[a.kM = 32] = "CDN"; + a[a.PW = 64] = "FATALERROR"; + }(S || (S = {}))); + }, function(g, d) { + Object.defineProperty(d, "__esModule", { value: !0 }); - f = a(18); - b = a(4); - d = a(6); - h = a(17); - l = a(2); - g = a(5); - m = a(15); - f.Dd(l.v.b9, function(a) { - var p, l, k, w, G; - - function f() { - var a; - a = g.Xh(h.Ra() / k); - if (a != G) { - for (var b = g.ue(a - G, 30); b--;) w.push(0); - (b = g.ig(w.length - 31, 0)) && w.splice(0, b); - G = a; - } - w[w.length - 1]++; - } - p = b.config.E1a; - l = -6 / (p - 2 - 2); - k = d.pj; - w = []; - G = g.Xh(h.Ra() / k); - m.Gla(p) && (setInterval(f, 1E3 / p), c.Lma = { - yXa: function() { - var c; - for (var a = [], b = w.length - 1; b--;) { - c = w[b]; - a.unshift(0 >= c ? 9 : 1 >= c ? 8 : c >= p - 1 ? 0 : g.ve((c - 2) * l + 7)); - } - return a; - } - }); - a(d.cb); + d.Hea = "LogblobBuilderFactorySymbol"; + }, function(g, d) { + Object.defineProperty(d, "__esModule", { + value: !0 }); - }, function(f, c, a) { - var b, d, h, l; - Object.defineProperty(c, "__esModule", { + d.wea = "LegacyLogBatcherSymbol"; + }, function(g, d) { + Object.defineProperty(d, "__esModule", { value: !0 }); - b = a(294); - d = a(3); - h = a(357); - l = a(26); - c.N$a = function(a) { - a({ - K: !0, - storage: new b.M9(d.Z.get(h.P9), d.Z.get(l.Re)) + d.zba = "AppLogSinkSymbol"; + }, function(g, d) { + Object.defineProperty(d, "__esModule", { + value: !0 + }); + d.iga = "PboLogblobCommandSymbol"; + }, function(g, d, a) { + var c; + + function b() {} + Object.defineProperty(d, "__esModule", { + value: !0 + }); + g = a(0); + a = a(1); + b.prototype.Cf = function(a, b) { + var f; + f = this; + return a.map(function(a) { + return b.call(f, a); }); }; - }, function(f, c) { - function a(a, c) { - this.In = a; - this.bg = c; + b.prototype.kC = function(a, b) { + var f, c; + f = {}; + for (c in a) f[c] = b.call(this, a[c]); + return f; + }; + c = b; + c = g.__decorate([a.N()], c); + d.yM = c; + }, function(g, d, a) { + var f, p, m; + + function b() { + this.Bu = new f.xJa(); + } + + function c(a) { + var f; + f = p.yM.call(this) || this; + f.Hp = a; + f.Bu = new b(); + return f; + } + + function h(a, b) { + this.Hp = a; + this.profile = b; + this.qP = this.profile.vh.id; + this.sD = {}; + } + + function k(a) { + this.Hp = a; + this.kE = m.Z(0); + this.sD = []; } - Object.defineProperty(c, "__esModule", { + Object.defineProperty(d, "__esModule", { value: !0 }); - a.prototype.load = function(b, c) { - var d; - d = this; - this.In.load(b).then(function(b) { - c && c(a.Pra(b)); - })["catch"](function(a) { - c && c(d.Nz(b, a)); + f = a(635); + p = a(332); + m = a(31); + k.prototype.gr = function(a) { + this.kE = this.kE.add(this.Hp.measure([a.message])); + this.sD.push(a); + }; + k.prototype.jz = function(a) { + var b, f; + b = this; + this.kE = m.Z(0); + f = []; + this.sD.forEach(function(c) { + 0 > a.indexOf(c.id) && (b.kE = b.kE.add(b.Hp.measure([c.message])), f.push(c)); }); + this.sD = f; }; - a.prototype.save = function(b, c, h, f) { + na.Object.defineProperties(k.prototype, { + size: { + configurable: !0, + enumerable: !0, + get: function() { + return this.kE; + } + }, + Pd: { + configurable: !0, + enumerable: !0, + get: function() { + return this.sD; + } + } + }); + h.prototype.gr = function(a, b, f, c) { var d; - d = this; - this.In.save(b, c, h).then(function() { - f && f(a.Pra({ - key: b, - value: c - })); - })["catch"](function(a) { - f && f(d.Nz(b, a)); + d = this.Pd[a]; + d || (d = new k(this.Hp), this.Pd[a] = d); + d.gr({ + id: b, + url: f, + message: c }); }; - a.prototype.remove = function(a, c) { - var b; + h.prototype.jz = function(a) { + var f; + for (var b in this.Pd) { + f = this.Pd[b]; + f && (f.jz(a), 0 === f.Pd.length && delete this.Pd[b]); + } + }; + na.Object.defineProperties(h.prototype, { + Pd: { + configurable: !0, + enumerable: !0, + get: function() { + return this.sD; + } + } + }); + d.FKa = h; + ia(c, p.yM); + c.prototype.encode = function(a) { + return { + accountId: a.qP, + messages: this.K5a(a.Pd) + }; + }; + c.prototype.decode = function(a) { + return { + qP: a.accountId, + Pd: this.g3a(a.messages) + }; + }; + c.prototype.K5a = function(a) { + var b, f, c, d; b = this; - this.In.remove(a).then(function() { - c && c({ - K: !0, - DB: a - }); - })["catch"](function(d) { - c && c(b.Nz(a, d)); - }); + f = {}; + c = {}; + for (d in a) c.UQ = [], a[d].Pd.forEach(function(a) { + return function(f) { + 0 < f.id && a.UQ.push(b.Bu.encode(f)); + }; + }(c)), f[d] = c.UQ, c = { + UQ: c.UQ + }; + return f; + }; + c.prototype.g3a = function(a) { + var b, f, c, d; + b = this; + f = {}; + c = {}; + for (d in a) c.aU = new k(this.Hp), a[d].forEach(function(a) { + return function(f) { + a.aU.gr(b.Bu.decode(f)); + }; + }(c)), f[d] = c.aU, c = { + aU: c.aU + }; + return f; }; - a.Pra = function(a) { + d.EKa = c; + b.prototype.encode = function(a) { return { - K: !0, - data: a.value, - DB: a.key + id: a.id, + url: a.url, + message: this.Bu.encode(a.message) }; }; - a.prototype.Nz = function(a, c) { + b.prototype.decode = function(a) { + var b; + b = this.Bu.decode(a.message); return { - K: !1, - DB: a, - R: c.R, - za: c.cause ? this.bg.yc(c.cause) : void 0 + id: a.id, + url: a.url, + message: b }; }; - c.M9 = a; - }, function(f, c, a) { - var b, d, h, l, g; - Object.defineProperty(c, "__esModule", { + }, function(g, d) { + Object.defineProperty(d, "__esModule", { value: !0 }); - b = a(3); - d = a(56); - h = a(26); - l = a(294); - g = a(354); - c.M$a = function(a) { - b.Z.get(d.fk).create().then(function(c) { - a({ - K: !0, - storage: new l.M9(c, b.Z.get(h.Re)), - Rp: b.Z.get(g.U7) - }); - })["catch"](function(b) { - a(b); - }); - }; - }, function(f, c, a) { - var b, d, h, l, g, m, p; - Object.defineProperty(c, "__esModule", { + d.ffa = "MessageQueueSymbol"; + }, function(g, d) { + Object.defineProperty(d, "__esModule", { value: !0 }); - b = a(192); - d = a(8); - h = a(3); - l = a(2); - g = a(6); - a(19); - m = a(306); - p = a(32); - c.L$a = function(a) { - var r, k; - - function c() { - c = g.Gb; - a({ - K: !0, - storage: { - load: function(a, c) { - f(a, function(d) { - b.iVa(r, a, function(a) { - var b, g; - p.Xa(d.releaseLock); - if (a.K) { - b = a.text; - try { - b && (g = JSON.parse(b)); - } catch (T) { - c({ - R: l.u.GEa - }); - return; - } - g ? c({ - K: !0, - data: g, - DB: a.g_ - }) : c({ - R: l.u.sj - }); - } else c(a); - }); - }); - }, - save: function(a, c, d, g) { - var h, m; - h = a.name || a; - m = JSON.stringify(c); - f(h, function(c) { - b.kVa(r, a, m, d, function(a) { - p.Xa(c.releaseLock); - a.K ? g && g({ - K: !0, - DB: a.g_ - }) : g && g(a); - }); - }); - }, - remove: function(a, c) { - f(a.name || a, function(d) { - b.jVa(r, a, function(a) { - p.Xa(d.releaseLock); - c && c(a); - }); - }); - } - } - }); - } - - function f(a, b) { - (k[a] || (k[a] = new m.eEa())).zLa(!0, b); - } - d.ea(b.CN); - h.Cc("Storage"); - k = {}; - b.hVa(function(b) { - b.K ? (r = b.rTa, c()) : a(b); - }); - }; - }, function(f, c, a) { - var b, d, h; - Object.defineProperty(c, "__esModule", { + d.Iea = "LogblobSenderSymbol"; + }, function(g, d) { + Object.defineProperty(d, "__esModule", { value: !0 }); - b = a(6); - d = a(3); - h = a(2); - a(19); - c.O$a = function(a) { - var c; - d.Cc("Storage"); - c = {}; - a({ - K: !0, - storage: { - load: function(a, b) { - c.hasOwnProperty(a) ? b({ - K: !0, - data: c[a], - DB: a - }) : b({ - R: h.u.sj - }); - }, - save: function(a, b, d, g) { - d && c.hasOwnProperty(a) ? g({ - K: !1 - }) : (c[a] = b, g && g({ - K: !0, - DB: a - })); - }, - remove: function(a, d) { - delete c[a]; - d && d(b.cb); - } - } - }); + d.tca = "CryptoKeysSymbol"; + }, function(g, d) { + Object.defineProperty(d, "__esModule", { + value: !0 + }); + d.sca = "CryptoDeviceIdSymbol"; + }, function(g, d) { + Object.defineProperty(d, "__esModule", { + value: !0 + }); + d.Jca = "DeviceProviderSymbol"; + }, function(g, d) { + function a(b, c, d) { + if (null != d) { + if (0 < d(b, c)) throw a.qoa(b, c); + } else if (b.ql && 0 < b.ql(c)) throw a.qoa(b, c); + this.start = b; + this.end = c; + } + Object.defineProperty(d, "__esModule", { + value: !0 + }); + a.qoa = function(a, c) { + return new RangeError("end [" + c + "] must be >= start [" + a + "]"); }; - }, function(f, c, a) { - var b, d, h, l, g, m; - Object.defineProperty(c, "__esModule", { + d.Vga = a; + }, function(g, d) { + Object.defineProperty(d, "__esModule", { value: !0 }); - f = a(18); - b = a(4); - d = a(6); - h = a(2); - l = a(8); - g = a(3); - m = a(5); - f.Dd(h.v.i9, function(a) { - var k, w, G; - - function f() { - m.LJ ? m.LJ.requestQuota(w, p, v) : m.C$.requestQuota(m.PERSISTENT, w, p, v); - } - - function p(b) { - b >= w ? (c.v3 = b, a(d.cb)) : G ? (k.error("Quota request granted insufficent bytes"), a({ - R: h.u.mba - })) : (G = !0, f()); - } - - function v() { - k.error("Request quota error"); - a({ - R: h.u.lba - }); - } - k = g.Cc("RequestQuota"); - w = b.config.D5; - 0 < w ? (l.ea(m.LJ || m.C$), f()) : (c.v3 = 0, a(d.cb)); + d.Ica = "DeviceIdGeneratorSymbol"; + }, function(g, d) { + Object.defineProperty(d, "__esModule", { + value: !0 }); - }, function(f, c, a) { - var b, d, h, l, g, m, p, r, u, v, k, w, G; - Object.defineProperty(c, "__esModule", { + d.lfa = "MslDispatcherSymbol"; + }, function(g, d) { + Object.defineProperty(d, "__esModule", { value: !0 }); - b = a(28); - d = a(6); - h = a(18); - l = a(4); - g = a(25); - m = a(17); - p = a(36); - r = a(3); - u = a(2); - v = a(19); - k = a(95); - w = a(5); - G = a(27); - c.nbb = function() { - var f, z; - - function a(a) { - var b, d, h; - b = "info"; - d = ""; - h = r.Z.get(k.xr).Yja(); - a.K || (b = "error", d += "&errorcode=" + (a.errorCode || ""), d += "&errorsubcode=" + (a.R || "")); - d = "type=startup&sev=" + b + d + "&" + g.PG(v.oa({}, h, { - prefix: "m_" - })); - c(d, f); - } - - function c(a, c) { - c && (a = z + "&jsoffms=" + m.Ra() + "&do=" + w.Tg.onLine + "&" + a + "&" + g.PG(v.oa({}, h.A1, { - prefix: "im_" - })), b.Za.download({ - url: c, - apa: a, - withCredentials: !0, - headers: { - "Content-Type": "application/x-www-form-urlencoded" - }, - Az: "track" - }, d.Gb)); - } - z = "cat=cadplayback&dev=" + encodeURIComponent(p.G7) + "&ep=" + encodeURIComponent(p.Ne.QS) + "&ver=" + encodeURIComponent("6.0011.853.011") + "&jssid=" + m.ir; - r.Cc("TrackingLog"); - z += "&browserua=" + w.Ug; - h.Dd(u.v.l9, function(b) { - var c, m; - f = r.Z.get(G.lf).host + l.config.c6; - if (l.config.IR && l.config.c6) { - l.config.Zn && (z += "&groupname=" + encodeURIComponent(l.config.Zn)); - l.config.Tq && (z += "&uigroupname=" + encodeURIComponent(l.config.Tq)); - c = z; - m = ""; - p.Yh && (m = v.oa({}, p.Yh, { - prefix: "pi_" - }), m = "&" + g.PG(m)); - z = c + m; - h.kG(a); - } - b(d.cb); - }); - return c; - }(); - }, function(f, c, a) { - var b; - Object.defineProperty(c, "__esModule", { + d.kfa = "MslClientSendStrategySymbol"; + }, function(g, d, a) { + var b, c, h, k; + Object.defineProperty(d, "__esModule", { value: !0 }); b = a(5); - c.Vbb = function(a, c) { - function d(a, c, d) { - var r, u, k, n; - if (a && 1 < a.length) { - for (var h = [], f = [], m = 0; m < a.length; m++) h[m] = 0, f[m] = 0; - for (var p = !1, m = 0; m < a.length; m++) - for (var l = m + 1; l < a.length; l++) { - u = a[m]; - k = a[l]; - if (0 > u.width || 0 > k.width || k.left > u.left + u.width || k.left + k.width < u.left || k.top > u.top + u.height ? 0 : k.top + k.height >= u.top) { - r = b.ig(u.left, k.left); - n = b.ig(u.top, k.top); - r = { - width: b.ig(b.ue(u.left + u.width, k.left + k.width) - r, 0), - height: b.ig(b.ue(u.top + u.height, k.top + k.height) - n, 0), - x: r, - y: n - }; - } else r = void 0; - if (r && 1 < r.width && 1 < r.height) - if (n = r.width <= r.height, u = g(a[m]), k = g(a[l]), n && c || !n && !c) r = b.ig(r.width / 2, .25), u.x <= k.x ? (f[m] -= r, f[l] += r) : (f[l] -= r, f[m] += r); - else if (n && !c || !n && c) u = b.ig(r.height / 2, .25), h[m] -= u, h[l] += u; - } - for (m = 0; m < a.length; m++) { - if (-.25 > f[m] && 0 <= a[m].left + f[m] || .25 < f[m] && a[m].left + a[m].width + f[m] <= d.width) a[m].left += f[m], p = !0; - if (-.25 > h[m] && 0 <= a[m].top + h[m] || .25 < h[m] && a[m].top + a[m].height + h[m] <= d.height) a[m].top += h[m], p = !0; - } - return p; + c = a(18); + h = a(15); + k = a(75); + d.BEa = function(a, b, d, g, k, x, v, y, l, D) { + var f, m; + f = this; + m = { + Type: b, + Bitrate: g, + DownloadableId: d + }; + c.La(f, { + track: a, + type: b, + pd: d, + O: g, + oc: k, + Me: y, + size: x, + Ir: v, + vk: null, + hob: function(a, b) { + if (h.ab(a) || h.ab(b)) f.width = a, f.height = b, m.Resolution = (f.width || "") + ":" + (f.height || ""); + }, + Knb: function(a, b, c, d) { + h.ab(a) && h.ab(b) && h.ab(c) && h.ab(d) && (f.G2a = a, f.woa = b, f.voa = c, f.uoa = d); + }, + tR: l, + Fl: D, + If: m, + toJSON: function() { + return m; } - } - - function g(a) { - return { - x: a.left + a.width / 2, - y: a.top + a.height / 2 - }; - } - a = a.map(function(a) { - return { - top: a.top, - left: a.left, - width: a.width, - height: a.height - }; }); - (function(a, c) { - a.forEach(function(a) { - 0 > a.left && a.left + a.width < c.width ? a.left += b.ue(-a.left, c.width - (a.left + a.width)) : a.left + a.width > c.width && 0 < a.left && (a.left -= b.ue(a.left + a.width - c.width, a.left)); - 0 > a.top && a.top + a.height < c.height ? a.top += b.ue(-a.top, c.height - (a.top + a.height)) : a.top + a.height > c.height && 0 < a.top && (a.top -= b.ue(a.top + a.height - c.height, a.top)); - }); - }(a, c)); - for (var h = 0; 50 > h && d(a, !0, c); h++); - for (h = 0; 50 > h && d(a, !1, c); h++); - return a; }; - }, function(f, c, a) { - var h, l, g, m, p; + d.pub = function(a, c, d, g, h) { + if (a == b.OX || a === k.Vf.audio) return c; + if (a == b.uF || a === k.Vf.video) return d; + if (a == k.Vf.vV) return g; + if (a == k.Vf.Kaa) return h; + }; + }, function(g, d, a) { + var c; - function b(a, b, c, d) { - var g, h, f, m, p; - g = b.region; - h = (g.marginTop || 0) * d; - f = (g.marginBottom || 0) * d; - m = (g.marginLeft || 0) * c; - p = (g.marginRight || 0) * c; - b = a.clientWidth || 1; - a = a.clientHeight || 1; - switch (g.verticalAlignment) { - case "top": - d = h; - break; - case "center": - d = (h + d - f - a) / 2; - break; - default: - d = d - f - a; + function b(a) { + var g, f, p, m, h, u, x; + p = {}; + p[c.VV] = a.localName; + m = {}; + p[c.wi] = m; + h = []; + p[c.UV] = h; + u = a.attributes; + g = u.length; + for (f = 0; f < g; f++) { + x = u[f]; + m[x.localName] = x.value; } - switch (g.horizontalAlignment) { - case "left": - c = m; - break; - case "right": - c = c - p - b; + a = a.childNodes; + g = a.length; + m = {}; + for (f = 0; f < g; f++) switch (u = a[f], u.nodeType) { + case d.Ysb: + u = b(u); + x = u[c.VV]; + u[c.xCa] = p; + h.push(u); + p[x] ? m[x][c.PE] = u : p[x] = u; + m[x] = u; break; - default: - c = (m + c - p - b) / 2; + case d.Zsb: + case d.Wsb: + u = u.text || u.nodeValue, h.push(u), p[c.jq] || (p[c.jq] = u); } - return { - top: d, - left: c, - width: b, - height: a - }; - } - - function d(a, b, c, d) { - return { - height: c - m.ig(d, b.bottom | 0) - m.ig(d, b.top | 0), - width: a.width - }; + return p; } - Object.defineProperty(c, "__esModule", { + Object.defineProperty(d, "__esModule", { value: !0 }); - h = a(14); - l = a(300); - g = a(302); - m = a(5); - c.oFa = function(a, c) { - var k, x, y, C, F, n, q; - - function f(a) { - k.direction = "boolean" === typeof a ? a ? "ltr" : "rtl" : "inherit"; - } - - function r() { - var c, f, r, v, z, w, G, N, T, X, U, t, ba; - c = x.parentNode; - f = c && c.clientWidth; - r = c && c.clientHeight; - v = c = 0; - z = { - width: f, - height: r - }; - if (0 < f && 0 < r && y) { - C && (z = h.HN(f, r, C), c = m.ve((f - z.width) / 2), v = m.ve((r - z.height) / 2)); - w = q ? { - height: z.height * (1 - (q.top || 0) - (q.bottom || 0)), - width: z.width * (1 - (q.left || 0) - (q.right || 0)) - } : z; - T = h.HN(w.width, w.height, C); - w = (N = y.blocks) && N.map(function(b) { - var c; - c = g.Fia(b, T, a, F); - b = g.AUa(b) + ";position:absolute"; - return h.createElement("div", b, c, p); - }); - } - h.oa(k, { - left: c + "px", - right: c + "px", - top: v + "px", - bottom: v + "px" - }); - x.style.display = "none"; - x.style.direction = k.direction; - x.innerHTML = ""; - if (w && w.length) { - f = z.width; - c = z.height; - X = z; - n && (X = d(z, n, r, v)); - k.margin = q ? u(z, "top") + "px " + u(z, "right") + "px " + u(z, "bottom") + "px " + u(z, "left") + "px " : void 0; - w.forEach(function(a) { - x.appendChild(a); - }); - r = h.ME(k); - x.style.cssText = r + ";visibility:hidden;z-index:-1"; - v = []; - for (G = w.length; G--;) t = w[G], ba = N[G], U = b(t, ba, f, c), U.width > f && (t.innerHTML = g.Fia(ba, z, a, F, f / U.width), U = b(t, ba, f, c)), v[G] = U; - v = l.Vbb(v, X); - if (X = N && N[0] && N[0].textNodes && N[0].textNodes[0] && N[0].textNodes[0].style) G = X.windowColor, X = X.windowOpacity, G && 0 < X && (U = m.ve(c / 50), z = g.CUa(N, v, U, G, z), z = h.createElement("div", "position:absolute;left:0;top:0;right:0;bottom:0;opacity:" + X, z, p), x.insertBefore(z, x.firstChild)); - x.style.display = "none"; - for (G = v.length; G--;) U = v[G], z = w[G].style, X = g.BUa(N[G].region, U, f, c, 0), h.oa(z, X); - x.style.cssText = r; - } - } - - function u(a, b) { - if (q) { - if ("left" === b || "right" === b) return a.width * (q[b] || 0); - if ("top" === b || "bottom" === b) return a.height * (q[b] || 0); + c = a(128); + d.Vsb = function(a) { + return b(a.nodeType == d.Xsb ? a.documentElement : a); + }; + d.nJb = b; + d.Ysb = 1; + d.mJb = 2; + d.Zsb = 3; + d.Wsb = 4; + d.Xsb = 9; + }, function(g, d, a) { + var b, c; + Object.defineProperty(d, "__esModule", { + value: !0 + }); + b = a(3); + c = a(15); + d.Usb = function(a) { + var d, f; + if (c.Uu(a)) { + d = new DOMParser().parseFromString(a, "text/xml"); + f = d.getElementsByTagName("parsererror"); + if (f && f[0]) { + try { + b.log.error("parser error details", { + errornode: new XMLSerializer().serializeToString(f[0]), + xmlData: a.slice(0, 300), + fileSize: a.length + }); + } catch (p) {} + throw Error("xml parser error"); } - return 0; + return d; } - k = { - position: "absolute", - left: "0", - top: "0", - right: "0", - bottom: "0", - display: "block" - }; - x = h.createElement("DIV", void 0, void 0, { - "class": "player-timedtext" - }); - F = function(a) { - var b; - b = {}; - h.Kb(a, function(a, c) { - var d; - c = h.createElement("DIV", "display:block;position:fixed;z-index:-1;visibility:hidden;font-size:1000px;" + c + ";", "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz", p); - m.cd.body.appendChild(c); - d = { - fontSize: 1E3, - height: c.clientHeight, - width: c.clientWidth / 52, - lineHeight: c.clientHeight / 1E3 - }; - m.cd.body.removeChild(c); - b[a] = d; + throw Error("bad xml text"); + }; + }, function(g, d, a) { + var b, c; + Object.defineProperty(d, "__esModule", { + value: !0 + }); + b = a(190); + c = a(189); + d.lib = function(a, d, f, g) { + return new Promise(function(m, k) { + c.yCa(a, function(a) { + a.S ? b.cib(a.object, d, f, g, function(a) { + a.S ? m(a.entries) : k(a); + }) : k(a); }); - return b; - }(a); - x.onselectstart = function() { - return !1; - }; - f(c); - h.oa(this, { - Lja: function() { - return x; - }, - q9a: function(a) { - C = a; - }, - w9a: function(a) { - y = a; - r(); - }, - z9a: function(a) { - f(a); - r(); - }, - G7a: r, - KH: function(a) { - n = a; - r(); - }, - LH: function(a) { - q = a; - r(); - }, - JF: function() { - return "block" === k.display; - }, - MH: function(a) { - a = a ? "block" : "none"; - x.style.display = a; - k.display = a; - } }); }; - p = { - "class": "player-timedtext-text-container" + }, function(g) { + g.M = { + EU: function(d, a) { + var b, c, g; + b = a.profile; + a = a.R; + c = d.Omb; + g = d.Pmb; + return d.EU || Array.isArray(c) && -1 !== c.indexOf(b) || "object" === typeof g && Array.isArray(g[b]) && -1 !== g[b].indexOf("" + a); + } }; - }, function(f, c, a) { - var m, p, r, u; + }, function(g, d, a) { + var k; - function b(a, b, c, d, g) { - var h; - h = {}; - "right" == a.horizontalAlignment ? h.right = 100 * (c - b.left - b.width - g) / c + "%" : h.left = 100 * (b.left - g) / c + "%"; - "bottom" == a.verticalAlignment ? h.bottom = 100 * (d - b.top - b.height - g) / d + "%" : h.top = 100 * (b.top - g) / d + "%"; - return h; + function b() {} + + function c(a, b, c) { + void 0 === c && (c = !1); + k(a.length === b.length, "bitrates_kbps and durations_sec must be of the same length."); + k(1E-8 < h(a), "bitrate zero, won't be able to send anything."); + this.eu = a; + this.zpa = b; + this.repeat = c; + this.Ui = this.lk = 0; } - function d(a, b) { - var c; - if (a && b) { - 40 === b.x && 19 === b.y ? c = 4 / 3 / (40 / 19) : 52 === b.x && 19 === b.y && (c = 16 / 9 / (52 / 19)); - if (c) return a.width / a.fontSize / c; - } - } - - function h(a, b, c, d, g) { - var h, f; - h = a.style; - f = r.C0(a.text); - for (a = a.lineBreaks; a--;) f = "
" + f; - return l(f, h, b, c, d, g); - } - - function l(a, b, c, h, f, l) { - var r; - r = b.characterStyle; - f = f[r]; - h = b.characterSize * h.height / ((0 <= r.indexOf("MONOSPACE") ? d(f, b.cellResolution) || f.lineHeight : f.lineHeight) || 1); - h = 0 < l ? u.Xh(h * l) : u.ve(h); - l = { - "font-size": h + "px", - "line-height": "normal", - "font-weight": "normal" - }; - b.characterItalic && (l["font-style"] = "italic"); - b.characterUnderline && (l["text-decoration"] = "underline"); - b.characterColor && (l.color = b.characterColor); - b.backgroundColor && 0 !== b.backgroundOpacity && (l["background-color"] = g(b.backgroundColor, b.backgroundOpacity)); - h = b.characterEdgeColor || "#000000"; - switch (b.characterEdgeAttributes) { - case p.o3: - l["text-shadow"] = h + " 0px 0px 7px"; - break; - case p.Coa: - l["text-shadow"] = "-1px 0px " + h + ",0px 1px " + h + ",1px 0px " + h + ",0px -1px " + h; - break; - case p.M4a: - l["text-shadow"] = "-1px -1px white, 0px -1px white, -1px 0px white, 1px 1px black, 0px 1px black, 1px 0px black"; - break; - case p.K4a: - l["text-shadow"] = "1px 1px white, 0px 1px white, 1px 0px white, -1px -1px black, 0px -1px black, -1px 0px black"; - } - l = m.ME(l); - (c = c[b.characterStyle || "PROPORTIONAL_SANS_SERIF"]) && (l += ";" + c); - b = b.characterOpacity; - 0 < b && 1 > b && (a = '' + a + ""); - return '' + a + ""; - } - - function g(a, b) { - a = a.substring(1); - a = parseInt(a, 16); - return "rgba(" + (a >> 16 & 255) + "," + (a >> 8 & 255) + "," + (a & 255) + "," + (void 0 !== b ? b : 1) + ")"; + function h(a) { + return a.reduce(function(a, b) { + return a + b; + }, 0); } - Object.defineProperty(c, "__esModule", { - value: !0 - }); - m = a(25); - p = a(194); - r = a(19); - u = a(5); - c.Fia = function(a, b, c, d, g) { - var f; - f = ""; - a.textNodes.forEach(function(a) { - f += h(a, c, b, d, g); - }); - return f; - }; - c.CUa = function(a, c, d, g, h) { - var f, m, l, x, v; - f = ""; - m = h.width; - h = h.height; - for (var p = c.length; p--;) { - l = c[p]; - x = a[p]; - x = x && x.region; - v = "position:absolute;background:" + g + ";width:" + u.ve(l.width + 2 * d) + "px;height:" + u.ve(l.height + 2 * d) + "px;"; - r.Kb(b(x, l, m, h, d), function(a, b) { - v += a + ":" + b + ";"; - }); - f += '
'; - } - return f; + k = a(14); + b.prototype = Error(); + c.prototype.constructor = c; + c.prototype.jp = function() { + var a; + a = new c(this.eu, this.zpa, this.repeat); + a.lk = this.lk; + a.Ui = this.Ui; + return a; }; - c.BUa = b; - c.dnb = d; - c.fnb = h; - c.cnb = l; - c.enb = g; - c.AUa = function(a) { - var b; - b = { - display: "block", - "white-space": "nowrap" - }; - switch (a.region.horizontalAlignment) { - case "left": - b["text-align"] = "left"; - break; - case "right": - b["text-align"] = "right"; + c.prototype.W4 = function() { + return this.eu[this.lk % this.eu.length]; + }; + c.prototype.Qu = function() { + return this.zpa[this.lk % this.eu.length]; + }; + c.prototype.C4a = function(a) { + k(0 < a, "expect x_sec > 0.0"); + if (!(this.repeat || 0 <= this.lk && this.lk < this.eu.length)) throw new b(); + k(this.Ui < this.Qu(), "expect this.cur_pos_sec_in_bin < this.get_curr_duration_sec()"); + for (var f;;) { + f = this.Qu() - this.Ui; + f = a < f ? a : f; + a -= f; + this.Ui += f; + if (this.Ui < this.Qu()) break; + this.Ui -= this.Qu(); + this.lk += 1; + if (!this.repeat && this.lk >= this.eu.length) { + if (0 < a) throw new b(); break; - default: - b["text-align"] = "center"; + } } - return m.ME(b); }; - }, function(f, c, a) { - var b, d, h; - Object.defineProperty(c, "__esModule", { - value: !0 - }); - b = a(14); - d = a(5); - c.rFa = function() { - var p, r, u, v, k, w, G, x, y; - - function a(a) { - var g, h, f; - g = p.S_(); - if (r != g) { - b.$a(g) && b.$a(x) && g < x && (f = k || G[d.Xh(g * y)] || G[0]); - if (f) { - for (; f && f.endTime < g;) f = f.next; - for (; f && f.previous && f.previous.endTime >= g;) f = f.previous; - } - f && (f.startTime <= g && g <= f.endTime ? (h = f, c(f.endTime - g)) : c(f.startTime - g)); - k = f; - r = g; - v != h && (v = h, !a && p.m3 && p.m3()); + c.prototype.cxa = function(a) { + this.C4a(a); + }; + c.prototype.D4a = function(a) { + k(0 < a, "expect y_kb > 0.0"); + if (!(this.repeat || 0 <= this.lk && this.lk < this.eu.length)) throw new b(); + k(this.Ui < this.Qu(), "expect this.cur_pos_sec_in_bin < this.get_curr_duration_sec()"); + for (var f, c = 0;;) { + f = this.Qu() - this.Ui; + f = a < f * this.W4() ? a / this.W4() : f; + a -= this.W4() * f; + c += f; + this.Ui += f; + if (this.Ui < this.Qu()) return c; + this.Ui -= this.Qu(); + this.lk += 1; + if (!this.repeat && this.lk >= this.eu.length) { + if (0 < a) throw new b(); + return c; } } - - function c(a) { - w && (clearTimeout(w), w = void 0); - u && 0 < a && (w = setTimeout(f, a + h)); - } - - function f() { - w = void 0; - a(); - } - p = this; - b.oa(p, { - ira: function(b) { - var c; - c = b && b.length; - k = v = r = void 0; - G = b; - x = c && d.ig.apply(null, b.map(function(a) { - return a.endTime; - })); - y = c && c / x; - a(); - }, - S_: void 0, - start: function() { - u = !0; - a(); - }, - stop: function() { - u = !1; - w && (clearTimeout(w), w = void 0); - }, - oWa: function() { - a(!0); - return v; - }, - m3: void 0 - }); }; - h = 10; - }, function(f, c, a) { - var l; + g.M = { + KPa: c, + LPa: b + }; + }, function(g, d, a) { + var h; function b(a, b, c) { - b = b || 0; - c = c || a.length; - for (var g, h = b, f, m, p, l = {}; h < b + c;) { - g = a[h]; - f = g & 7; - m = g >> 3; - p = d(a, h); - if (!p.count) throw Error("Parsing error. bytes length is 0 for the tag " + g); - h += p.count + 1; - 2 == f && (h += p.value); - l[m] = { - ynb: m, - Ptb: f, - value: p.value, - count: p.count, - start: p.start - }; - } - return l; - } - - function d(a, b) { - var c, d, g, h, f, m, k, x; - c = b + 1; - d = a.length; - g = c; - h = 0; - f = {}; - m = []; - x = 0; - if (c >= d) throw Error("Invalid Range for Protobuf - start: " + c + " , len: " + d); - for (; g < d;) { - h++; - c = a[g]; - k = c & 127; - m.push(k); - if (!(c & 128)) break; - g++; - } - l.ea(m.length); - for (a = m.length - 1; 0 <= a; a--) x <<= 7, x |= m[a]; - f.count = h; - f.value = x; - f.start = b + h + 1; - return f; + this.Z = a; + this.Xm = b; + this.pK = c; } - function h(a, b) { - if (a && (a = a[b])) return a.value; + function c(a, b) { + this.c7 = b; + void 0 === b && (this.c7 = !0); + this.zh = a; + this.UQa(); } - Object.defineProperty(c, "__esModule", { - value: !0 - }); - l = a(8); - c.P_a = function(a) { - a = b(a); - if (1 == h(a, 1) && a[5] && a[5].value) return !0; - }; - c.opb = function(a) { - var c; - c = b(a); - if (2 == h(c, 1) && (a = b(a, c[2].start, c[2].value), h(a, 5))) return !0; + h = a(14); + b.prototype.constructor = b; + b.prototype.Rr = function() { + return 8 * this.Z / 1E3 / this.Xm; }; - c.rnb = b; - c.eob = d; - c.fob = h; - }, function(f, c, a) { - var d; - - function b() {} - Object.defineProperty(c, "__esModule", { - value: !0 - }); - f = a(14); - d = a(15); - c.lBa = b; - f.oa(b.prototype, { - nO: !1, - JB: 0, - mI: 0, - vO: 0, - TF: !1, - wO: 0, - ULa: function(a) { - d.da(a) && (a < this.JB && (this.mI += this.JB), this.JB = a, this.nO = !0); - }, - TWa: function() { - if (this.nO) return this.TF ? this.wO - this.vO : this.mI + this.JB - this.vO; - }, - q$a: function() { - this.TF || (this.nO && (this.wO = this.mI + this.JB), this.TF = !0); - }, - F$a: function() { - this.TF && (this.nO && (this.vO += this.mI + this.JB - this.wO), this.wO = 0, this.TF = !1); - } - }); - }, function(f, c, a) { - var b, d, h; - Object.defineProperty(c, "__esModule", { - value: !0 - }); - b = a(8); - d = a(14); - h = a(32); - c.eEa = function() { - var f, p, r, u; - - function a(a) { - var d; - d = f.indexOf(a); - 0 <= d ? f.splice(d, 1) : a == p ? p = void 0 : b.ea(!1, "lock released without being acquired"); - h.Xa(c); - } - - function c() { - for (var b = 0, c, d; !p && (c = r[b]);) { - if (0 >= f.length || !c.Rla) r.splice(b, 1), d = u++, c.Rla ? p = d : f.push(d), c.COa({ - K: !0, - Gpb: d, - releaseLock: function() { - a(d); - } - }); - b++; - } + c.prototype.constructor = c; + c.prototype.jp = function(a, b, d, g, h) { + void 0 === b && (b = 0); + void 0 === d && (d = a.MC()); + void 0 === g && (g = 0); + void 0 === h && (h = a.zh.length); + for (var f = [], m, k = g; k < h; k++) { + g = []; + for (var p = b; p < d; p++) m = a.zh[k][p], g.push(m); + f.push(g); } - f = []; - r = []; - u = 1; - d.oa(this, { - zLa: function(a, b) { - r.push({ - Rla: a, - COa: b - }); - c(); - }, - releaseLock: a - }); + return new c(f, a.c7); }; - }, function(f, c, a) { - var b, d; - Object.defineProperty(c, "__esModule", { - value: !0 - }); - b = a(14); - d = a(5); - c.ujb = function(a, b, c) { - for (c = (c - a.length) / b.length; 0 < c--;) a += b; - return a; + c.prototype.UQa = function() { + var a, b; + a = this.zh[0].length; + for (b in this.zh.slice(1)) h(this.zh[b].length === a, "expect this.chunkss[chunksIndex].length === n but got " + this.zh[b].length + " and " + a); + this.c7 && this.VQa(); + this.WQa(); }; - c.tjb = function(a, c, d) { - d = b.oc(d) ? d : "..."; - return a.length <= c ? a : a.substr(0, a.length - (a.length + d.length - c)) + d; + c.prototype.MC = function() { + return this.zh[0].length; }; - c.bFa = function(a, b) { - var h; - for (var c = 1; c < arguments.length; ++c); - h = d.slice.call(arguments, 1); - a.replace(/{(\d+)}/g, function(a, b) { - return "undefined" != typeof h[b] ? h[b] : a; - }); + c.prototype.VQa = function() { + for (var a = 0; a < this.zh.length - 1; a++) + for (var b = 0; b < this.MC(); b++) h(this.zh[a][b].Z <= this.zh[a + 1][b].Z, "Chunk size for epoch " + b + " is not monotonic"); }; - c.vjb = function(a) { - for (var b = a.length, c = new Uint16Array(b), d = 0; d < b; d++) c[d] = a.charCodeAt(d); - return c.buffer; + c.prototype.WQa = function() { + for (var a = 0; a < this.zh.length - 1; a++) + for (var b = 0; b < this.MC(); b++) h(1E-8 > Math.abs(this.zh[a][b].Xm - this.zh[a + 1][b].Xm), "Chunk duration for epoch " + b + " is not consistent"); }; - c.Htb = function(a) { - var b; - b = new Uint8Array(a.length); - Array.prototype.forEach.call(a, function(a, c) { - b[c] = a.charCodeAt(0); + c.prototype.lab = function() { + var a; + a = []; + this.zh[0].forEach(function(b) { + a.push(b.Xm); }); - return b; + return a; }; - }, function(f) { - function c(a) { - return Object.keys(a).every(function(b) { - return "function" === typeof a[b]; - }); + g.M = { + NEa: b, + OEa: c + }; + }, function(g, d, a) { + var k, f, p; + + function b(a, b, f) { + this.Um = b; + this.ol = f; + this.Bs = this.VI = this.NT = this.exa = this.dxa = this.xD = this.bc = this.pjb = this.ol = this.ng = this.Ra = this.U = this.ML = this.NL = this.Y = this.ita = this.au = void 0; } - f.P = function(a) { - var f, g, m; - function b(a, b, c) { - throw new TypeError(("undefined" !== typeof c.key ? "Types: expected " + c.key : "Types: expected argument " + c.index) + (" to be '" + a + "' but found '" + b + "'")); - } + function c(a, b, f) { + this.ea = b; + this.Eta = f; + this.tma = this.sCa = this.Q_ = this.NL = this.Ep = this.Cj = void 0; + } - function d(a, c, d) { - var h; - h = g[a]; - "undefined" !== typeof h ? h(c) || b(a, c, d) : a !== typeof c && b(a, c, d); + function h(a, f, c, d, g, h) { + var m; + m = new b(0, f, a.ol); + a.forEach(function(a) { + var b, c; + b = a.buffer; + c = b.Y; + a.P === k.G.AUDIO ? m.au = c.length ? c[0].O : void 0 : a.P === k.G.VIDEO && (m.ita = c.length ? c[0].O : void 0, m.Y = c, m.NL = b.rl - b.nf, m.ML = b.en, m.U = b.nf, m.Ra = b.Ra, m.ng = a.Iv, m.ol = a.ol, m.pjb = f - a.ol, m.bc = a.bc.filter(function(a) { + return p(a); + }), m.xD = c.filter(function(a) { + return m.U <= a.PD; + }).length); + }); + this.mg = m; + this.nk = void 0; + this.Koa = d; + this.N0 = g; + this.l9 = this.jU = this.Kwa = this.zo = this.yB = this.lqa = this.Mj = this.bc = this.nk = void 0; + this.wXa = h; + } + k = a(13); + d = a(43); + f = d.assert; + p = d.ny; + b.prototype.constructor = b; + c.prototype.constructor = c; + h.prototype.constructor = h; + h.prototype.Y6a = function(a, b) { + var f, d, g, m, p, h, r, l, n, F, q, N, O, t, U, ga, T, H, X, aa, ra, Z; + f = this.mg; + d = []; + m = a[k.G.VIDEO]; + p = a[k.G.AUDIO]; + if (void 0 === m || void 0 === p) return !1; + h = m.buffer; + r = p.buffer; + l = m.headers; + n = f.bc.filter(function(a) { + return l && l[a.id] && l[a.id].Y; + }); + if (void 0 === h || void 0 === r || void 0 === l || void 0 === n || 0 === n.length) return !1; + g = new c(0, m.nf, b === k.Ca.jt); + F = 0; + q = 0; + N = 0; + O = 0; + U = f.U; + a = a[k.G.VIDEO].nf; + ga = f.Y; + t = f.xD; + for (var S = 0; S < t; S++) { + T = ga[S]; + H = T.offset; + X = T.offset + T.Z - 1; + ra = T.Jr; + aa = T.rs; + Z = aa + ra; + T && aa <= a && Z > U && (ra = T.Jr, aa = Math.min(ra, Math.min(a, Z) - Math.max(aa, U) + 1), O += aa, F += aa / ra * (X - H + 1), q += T.O * aa, N += T.oc * aa); + } + f.dxa = F; + f.exa = O; + f.NT = 0 < O ? q / O : 0; + f.Lib = 0 < O ? N / O : 0; + f.VI || (f.VI = 0, n.some(function(a, b) { + if (a.O === f.ita) return f.VI = b, !0; + })); + n.forEach(function(a) { + var b, c; + a = l[a.id].Y; + b = []; + f.Bs || (f.Bs = a.Dj(f.U, void 0, !0)); + g.Cj || (g.Cj = a.Dj(g.ea, void 0, !0), g.Ep = a.length - 1); + f.ng !== f.Bs + f.xD && (f.ng = f.Bs + f.xD); + t = Math.min(g.Ep, g.Cj + 1); + for (var m = f.Bs; m <= t; m++) c = a.get(m), b[m] = c; + d.push(b); + }); + b === k.Ca.jt && (g.NL = h.rl - h.nf, g.Q_ = r.rl - r.nf, g.sCa = m.nya, g.tma = p.nya); + this.nk = g; + this.bc = n; + this.Mj = d; + return this.lqa = !0; + }; + h.prototype.Qr = function() { + var a, b, c, d, g, k, p, h, l, n, P, q, N, O; + if (this.gD) return this.gD; + b = this.zo; + a = this.mg; + d = this.nk; + g = this.bc; + k = this.Kwa; + P = this.wXa; + f(void 0 !== b, "throughput object must be defined before retrieving the logdata from PlaySegment"); + if (b.trace && 0 === b.trace.length || void 0 === b.timestamp) d.Eta ? (l = !1, p = !0) : d.Cj - a.Bs + 1 <= a.xD ? p = l = !0 : (l = !0, p = !1), h = !0; + if (k) { + n = k.zp; + for (var F = 0; F < P.length; F++) c = P[F], (b = k[c]) && b.kv && (p = !0); } - - function h(a, b) { - var c; - c = a.filter(function(a) { - return "object" !== typeof a && -1 === m.indexOf(a); + a = { + bst: a.ol, + pst: a.Um, + s: a.Bs, + e: d.Cj, + prebuf: a.xD, + brsi: a.ng, + pbdlbytes: a.dxa, + pbdur: a.exa, + pbtwbr: a.NT, + pbvmaf: a.Lib + }; + h && (a.nt = h); + p && (a.nd = p); + n && (a.invalid = n); + this.l9 && (a.rr = this.l9); + this.jU && (a.ra = this.jU); + if (!p && !n && this.Koa) { + a.bitrate = g.map(function(a) { + return a.O; + }); + b = this.zo; + c = b.trace; + q = []; + N = 0; + c.forEach(function(a) { + a = Number(a).toFixed(0); + q.push(a - N); + N = a; }); - c = c.concat(a.filter(function(a) { - return "object" === typeof a; - }).reduce(function(a, b) { - return a.concat(Object.keys(b).map(function(a) { - return b[a]; - }).filter(function(a) { - return -1 === m.indexOf(a); - })); - }, [])); - if (0 < c.length) throw Error(c.join(",") + " are invalid types"); - return function() { - var c; - c = Array.prototype.slice.call(arguments); - if (c.length !== a.length) throw new TypeError("Types: unexpected number of arguments"); - a.forEach(function(a, b) { - var g; - g = c[b]; - if ("string" === typeof a) d(a, g, { - index: b - }); - else if ("object" === typeof a) Object.keys(a).forEach(function(b) { - d(a[b], g[b], { - key: b - }); - }); - else throw Error("Types: unexpected type in type array"); - }); - return b.apply(this, c); + a.tput = { + ts: b.timestamp, + trace: q, + bkms: b.ik }; } - f = "number boolean string object function symbol".split(" "); - g = { - array: function(a) { - return Array.isArray(a); + if (p || h || n) a.feasible = l; + else + for (a.sols = {}, F = 0; F < P.length; F++) { + c = P[F]; + b = k[c]; + p = {}; + if (b && b.Yp && (p.f = b && b.hi || !1, p.dltwbr = b.s4a, p.dlvmaf = b.jpa, p.dlvdur = b.G2, p.dlvbytes = b.F2, p.dlabytes = b.E2, this.Koa)) { + N = 0; + O = []; + b.Yp.filter(function(a) { + return a; + }).map(function(a) { + return a.Fd; + }).forEach(function(a) { + O.push(a - N); + N = a; + }); + p.strmsel = O; + } + a.sols[c] = p; } - }; - if ("undefined" !== typeof a) { - if ("object" !== typeof a || !c(a)) throw new TypeError("Types: extensions must be an object of type definitions"); - Object.keys(a).forEach(function(b) { - if ("undefined" !== typeof g[b] || -1 < f.indexOf(b)) throw new TypeError("Types: attempting to override a built in type with " + b); - g[b] = a[b]; - }); - } - m = Object.keys(g).concat(f); - return h(["array", "function"], h); + return this.gD = a; }; - }, function(f, c, a) { - var k, w, n; + g.M = h; + }, function(g, d, a) { + var h, k, f, p, m, r; - function b(a, b, c) { - this.type = a; - this.size = b; - this.Op = c; + function b(a, b, f, c) { + p(!h.V(c), "Must have at least one selected stream"); + return new r(c); } - function d(a) { - var c, d, g, h, f; - a: { - c = a.position; - if (8 <= a.Oj()) { - d = a.Aa(); - g = a.It(4); - if (!w.test(g)) throw a.seek(c), Error("mp4-badtype"); - if (1 == d) { - if (8 > a.Oj()) { - a.seek(c); - c = void 0; - break a; - } - d = a.ff(); + function c(a, b, f, c) { + p(!h.V(c), "Must have at least one selected stream"); + return new r(c); + } + h = a(11); + d = a(43); + k = d.console; + f = d.debug; + p = d.assert; + m = d.ny; + r = d.No; + g.M = { + STARTING: function(a, b, c) { + var g, p, h, u; + + function d(c, d) { + var g, m, p, r; + g = c.id; + m = c.O; + p = c.pa || 0; + r = !!p; + f && k.log("Checking feasibility of [" + d + "] " + g + " (" + m + " Kbps)"); + if (!c.Fe) return f && k.log(" Not available"), !1; + if (!c.inRange) return f && k.log(" Not in range"), !1; + if (c.Eh) return f && k.log(" Failed"), !1; + if (m > a.xJ) return f && k.log(" Above maxInitAudioBitrate (" + a.xJ + " Kbps)"), !1; + if (!(m * a.hT / 8 < b.buffer.nu)) return f && k.log(" audio buffer too small to handle this stream"), !1; + if (r) { + f && k.log(" Have throughput history = " + r + " : available throughput = " + p + " Kbps"); + if (m < p / h) return f && k.log(" +FEASIBLE: bitrate less than available throughput"), !0; + f && k.log(" bitrate requires more than available throughput"); + return !1; } - if (!(8 <= d)) throw a.seek(c), Error("mp4-badsize"); - if ("uuid" == g) { - if (16 > a.Oj()) { - a.seek(c); - c = void 0; - break a; - } - g = a.bB(); + c = a.IJ; + b.T5 && (c = Math.max(c, a.HJ)); + if (m <= c) return f && k.log(" Bitrate is less than max of minInitAudioBitrate (" + a.IJ + " Kbps) " + (b.T5 ? " and also minHCInitAudioBitrate (" + a.HJ + " Kbps)" : "")), f && k.log(" +FEASIBLE: no throughput history and has minimum bitrate configured"), !0; + f && k.log(" No throughput history"); + return !1; + } + g = new r(); + h = a.EBb || 1; + for (u = c.length - 1; 0 <= u; --u) { + p = c[u]; + if (d(p, u)) { + g.Fd = u; + break; } - c = { - type: g, - offset: c, - size: d, - Op: c + d - a.position - }; - } else c = void 0; - } - if (c && c.Op <= a.Oj()) { - h = c.type; - d = c.size; - f = c.Op; - g = new b(h, d, f); - h = n[h]; - if (a.Oj() < f) throw Error("mp4-shortcontent"); - h ? (f = new k(a.re(f)), h(g, f)) : a.skip(f); - a.seek(c.offset); - g.raw = a.re(d); + m(p) && (g.Fd = u); + } return g; + }, + BUFFERING: b, + REBUFFERING: b, + PLAYING: c, + PAUSED: c + }; + }, function(g, d, a) { + Object.defineProperty(d, "__esModule", { + value: !0 + }); + a(0).__exportStar(a(697), d); + }, function(g, d, a) { + d = a(698); + g.M = d; + }, function(g, d, a) { + var k, f; + + function b(a, b, f, c, d, g) { + return new h(a, b, f, c, d, g); + } + + function c(a) { + return a && 0 <= a.indexOf(".__metadata__"); + } + + function h(a, b, f, c, d, g) { + this.partition = a; + this.lifespan = f; + this.resourceIndex = b; + this.size = c; + this.creationTime = d; + this.lastRefresh = g; + return this.tBa(); + } + k = a(11); + f = a(110); + a(109); + new f.Console("MEDIACACHE", "media|asejs"); + h.prototype.refresh = function() { + this.lastRefresh = f.time.now(); + return this.tBa(); + }; + h.prototype.gAa = function(a) { + this.size = a; + }; + h.prototype.Qna = function() { + var a; + a = f.time.now(); + return (this.lastRefresh + 1E3 * this.lifespan - a) / 1E3; + }; + h.prototype.tBa = function() { + this.lastMetadataUpdate = f.time.now(); + return this; + }; + h.prototype.constructor = h; + g.M = { + create: b, + O3: function(a) { + var f; + f = a; + "string" === typeof a && (f = JSON.parse(a)); + if (f && f.partition && !k.V(f.lifespan) && f.resourceIndex && f.creationTime && f.lastRefresh) return a = b(f.partition, f.resourceIndex, f.lifespan, -1, f.creationTime, f.lastRefresh), f.lastMetadataUpdate && (a.lastMetadataUpdate = f.lastMetadataUpdate), !k.V(f.size) && 0 <= f.size && a.gAa(f.size), a.Qna(), a.convertToBinaryData = f.convertToBinaryData, a; + }, + O1: function(a) { + return a + ".__metadata__"; + }, + bR: function(a) { + return c(a) ? a.slice(0, a.length - 13) : a; + }, + UC: c + }; + }, function(g, d, a) { + var l, w, D, z, n, P, F, q, N, O, t, U, ga; + + function b() {} + + function c(a, f) { + var c, d, g, k; + c = l.qb(f) ? f : b; + this.K = a || {}; + (function(a, b, f) { + this.Ug[a].Xc[b] = f; + }.bind(this)); + (function(a, b) { + return this.Ug[a].Xc ? this.Ug[a].Xc[b] : void 0; + }.bind(this)); + this.on = this.addEventListener = U.addEventListener; + this.removeEventListener = U.removeEventListener; + this.emit = this.Ia = a.FDb ? U.Ia : b; + d = z.f2a(a); + g = this.K.dailyDiskCacheWriteLimit; + if (d) { + this.Qo = d; + k = u(a.u7 || ga, z.O8a()); + this.cr = function(a) { + return l.V(k) || null === k || void 0 === this.Ug[a] ? !1 : !l.V(k[a]); + }; + k ? (this.Ug = {}, f = w.Promise.all(Object.keys(k).map(function(b) { + return new w.Promise(function(f, c) { + var m; + m = k[b]; + m.fCa = a.fCa; + new n(b, d, m, function(a, b) { + a ? c(a) : f(b); + }, g); + }); + })).then(function(a) { + a.map(function(a) { + var b; + b = a.Lt; + this.Ug[b] = a; + k[b].D7a = k[b].nu - a.br; + this.Ug[b].on(n.ed.REPLACE, function(a) { + a = a || {}; + a.partition = b; + a.type = "save"; + this.Ia("mediacache", a); + }.bind(this)); + this.Ug[b].on(n.ed.eia, function(a) { + a = a || {}; + a.partition = b; + a.type = "save"; + this.Ia("mediacache", a); + }.bind(this)); + this.Ug[b].on(n.ed.ERROR, function(a) { + a = a || {}; + a.partition = b; + a.type = n.ed.ERROR; + this.Ia("mediacache-error", a); + }.bind(this)); + }.bind(this)); + return this; + }.bind(this)).then(function(a) { + m(d, w.storage.kA, Object.keys(k)); + return a; + }.bind(this)).then(function(a) { + Object.keys(a.Ug).map(function(b) { + a.Ug[b].k4().map(function(f) { + a["delete"](b, f); + }); + }); + a.Nm = !0; + c(null, a); + }.bind(this))["catch"](function(a) { + D.error("Failed to initialize media cache ", a); + this.iy = O.Aca; + c(this.iy, this); + }.bind(this)), t.Op(f)) : (this.iy = O.KIa, c(this.iy, this)); + } else this.iy = O.Aca, c(this.iy, this); + } + + function h(a, b, f, c, d, g) { + var m; + m = g ? "mediacache-error" : "mediacache"; + b = { + partition: f, + type: b, + resource: c, + time: w.time.now() + }; + g && (b.error = g); + d && (l.ja(d.duration) && (b.duration = d.duration), l.ja(d.vr) && (b.bytesRead = d.vr)); + try { + a.Ia(m, b); + } catch (Q) { + D.warn("caught exception while emitting basic event", Q); } } - function h(a, b) { - for (var c = [], g = {}, h, f; 0 < b.Oj();) { - h = d(b); - if (!h) throw Error("mp4-badchildren"); - f = h.type; - c.push(h); - g[f] || (g[f] = h); + function k(a, b, f, c, d) { + var g; + g = d ? "mediacache-error" : "mediacache"; + b = { + partition: f, + type: b, + resources: c, + time: w.time.now() + }; + d && (b.error = d); + try { + a.Ia(g, b); + } catch (Z) { + D.warn("caught exception while emitting basic event", Z); } - a.children = c; - a.n_ = g; } - function l(a, b) { - a.version = b.qd(1); - a.Ie = b.qd(3); + function f(a) { + return !l.V(a) && !l.Na(a) && l.ja(a.lifespan); } - function g(a, b) { - b.skip(6); - a.nSa = b.xb(); - b.skip(8); - a.channelCount = b.xb(); - a.gx = b.xb(); - b.skip(4); - a.sampleRate = b.xb(); - b.skip(2); - h(a, b); + function p(a) { + return !P.UC(a) && !q.pcb(a); } - function m(a, b) { - var c; - b.skip(6); - a.nSa = b.xb(); - b.skip(16); - a.width = b.xb(); - a.height = b.xb(); - a.Eob = b.Aa(); - a.Ltb = b.Aa(); - b.skip(4); - a.Lnb = b.xb(); - c = b.ef(); - a.Mlb = b.It(c); - b.skip(31 - c); - a.depth = b.xb(); - b.skip(2); - h(a, b); + function m(a, f, c) { + a.query(f, "", function(d, g) { + d || Object.keys(g).filter(function(a) { + return 0 > c.indexOf(a.slice(0, a.indexOf("."))); + }).map(function(c) { + a.remove(f, c, b); + }); + }); } - function p(a, b) { - l(a, b); - a.Emb = b.qd(3); - a.Fmb = b.ef(); - a.NO = b.re(16); + function r(a, b, f) { + var d, g; + + function c(b) { + a["delete"](d, function(c) { + c ? f(c) : (delete a.Xc[g], c = Object.keys(b.resourceIndex), c = w.Promise.all(c.map(function(b) { + return new w.Promise(function(f, c) { + a["delete"](b, function(a) { + a ? c(a) : f(b); + }); + }); + })).then(function() { + f(); + }, function(a) { + f(a); + }), t.Op(c)); + }); + } + P.UC(b) ? (d = b, g = P.bR(b)) : (d = P.O1(b), g = b); + (b = a.Xc[g]) ? c(b): a.read(d, function(a, b) { + a ? f(a) : c(b); + }); } - function r(a, b) { - for (var c = [], d; b--;) d = a.xb(), c.push(a.re(d)); - return c; + function u(a, b) { + var f, c, d; + f = {}; + c = a.partitions.reduce(function(a, b) { + return a + b.capacity; + }, 0); + d = b / c; + a.partitions.map(function(a) { + var b; + b = a.key; + f[b] = {}; + f[b].nu = Math.floor(d * a.capacity); + f[b].M2a = a.dailyWriteFactor || 1; + f[b].TGb = a.owner; + f[b].r6a = a.evictionPolicy; + }); + return f; } - function u(a) { - var b; - b = a.re(2); - a = { - usb: b[1] >> 1 & 7, - t8a: !!(b[1] & 1), - osb: a.xb() - }; - v(a, (b[0] << 8 | b[1]) >> 4); - return a; + function x(a, b, f) { + if (f) return q.o4a(a, b).reduce(function(a, b) { + Object.keys(b).map(function(f) { + a[f] = b[f]; + }); + return a; + }, {}); + f = {}; + f[a] = b; + return f; } - function v(a, b) { - a.psb = b >> 4 & 3; - a.tsb = b >> 2 & 3; - a.rsb = b & 3; - return a; + function v(a, b, f, c, d, g, m, k, p, h, r) { + return function(u, v) { + u ? l.isArray(u) ? (v = u.map(function(a) { + return a.error; + }), v.some(function(a) { + return a.code === O.Sz.code; + }) && !v.some(function(a) { + return a.code === O.yN.code; + }) ? r(h, u, function() { + p.save(b, f, c, d, g, m); + }) : (h["delete"](k), delete h.Xc[f], g({ + error: u[0].error, + qv: u[0].qv, + type: u[0].type, + ema: u + }))) : g({ + error: u, + qv: b, + type: "save" + }) : (u = v.items.filter(function(b) { + return 0 <= Object.keys(a).indexOf(b.key); + }).reduce(function(a, b) { + return a + b.AS; + }, 0), h.Xc[f].gAa(u), u = { + D7a: v.ei, + TCb: v.WB, + yh: 0, + items: v + }, 0 < v.yh && (u.yh = v.yh), 0 < v.duration && (u.duration = v.duration), g(null, u)); + }; } - k = a(94); - w = /^[a-zA-Z0-9-]{4,4}$/; - b.prototype.$p = function(a) { - var b, c, d, g, h; - b = this; - a = a.split("/"); - for (g = 0; g < a.length && b; g++) { - d = a[g].split("|"); - c = void 0; - for (h = 0; h < d.length && !c; h++) c = d[h], c = b.n_ && b.n_[c]; - b = c; - } - return b; + l = a(11); + w = a(110); + D = new w.Console("MEDIACACHE", "media|asejs"); + z = a(706); + n = a(705); + P = a(354); + F = a(109); + q = a(700); + N = a(699); + O = a(197); + t = a(196); + U = a(29).EventEmitter; + ga = { + iHb: [] + }; + c.prototype.gz = function(a, f) { + var c; + c = l.qb(f) ? f : b; + this.cr("billboard") ? this.Ug.billboard.query(a, function(a, b) { + a ? (D.error("Failed to query resources", a), c([])) : c(b.filter(p)); + }) : c([]); + }; + c.prototype.read = function(a, f, c) { + var d, g, m, k; + d = l.qb(c) ? c : b; + if (this.cr(a)) { + g = this.Ug[a]; + m = g.Xc[f]; + if (!P.UC(f) && this.K.pfb) { + k = function(b) { + g.iU(Object.keys(b), function(b, c, g) { + b ? d(O.uA.Wl("Failed to read " + f, b)) : (h(this, "read", a, f, g), d(null, q.Vbb(c))); + }.bind(this), b); + }.bind(this); + m ? k(m.resourceIndex) : this.Mkb(a, f, function(a, b) { + a ? d(O.uA.Wl("Failed to read " + f, a)) : k(b.resourceIndex); + }); + } else g.read(f, function(b, c, g) { + b ? d(O.uA.Wl("Failed to read " + f, b)) : (m && m.convertToBinaryData && (c = N.j0a(c)), h(this, "read", a, f, g), d(null, c)); + }.bind(this)); + } else d(O.Xs); }; - b.prototype.toString = function() { - return "[" + this.type + "]"; + c.prototype.iU = function(a, f, c) { + var d, g; + d = l.qb(c) ? c : b; + if (this.cr(a)) { + g = {}; + f = w.Promise.all(f.map(function(b) { + return new w.Promise(function(f, c) { + this.read(a, b, function(a, d) { + a ? (d = {}, d[b] = a, c(d)) : (g[b] = d, f()); + }); + }.bind(this)); + }.bind(this))).then(function() { + d(null, g); + }, function(a) { + d(a); + }); + t.Op(f); + } else d(O.Xs); }; - n = { - ftyp: function(a, b) { - a.Kpb = b.It(4); - a.dqb = b.Aa(); - for (a.pPa = []; 4 <= b.Oj();) a.pPa.push(b.It(4)); - }, - moov: h, - sidx: function(a, b) { - l(a, b); - a.Zrb = b.Aa(); - a.T5 = b.Aa(); - a.JZ = 1 <= a.version ? b.ff() : b.Aa(); - a.p_ = 1 <= a.version ? b.ff() : b.Aa(); - b.skip(2); - for (var c = b.xb(), d = [], g, h; c--;) { - g = b.Aa(); - h = g >> 31; - if (0 !== h) throw Error("mp4-badsdix"); - g &= 2147483647; - h = b.Aa(); - b.skip(4); - d.push({ - size: g, - duration: h + c.prototype.pza = function(a, f) { + var c; + c = l.qb(f) ? f : b; + this.cr("billboard") ? "[object Object]" !== Object.prototype.toString.call(a) ? c(O.xN.Wl("items must be a map of keys to objects")) : (f = new w.Promise(function(b) { + var f, c; + f = this.Ug.billboard.k4(); + c = Object.keys(a); + (f = f.filter(function(a) { + return -1 === c.indexOf(a); + })) && 0 < f.length ? this.apa("billboard", f, function() { + b(); + }) : b(); + }.bind(this)).then(function() { + return w.Promise.all(Object.keys(a).map(function(b) { + return new w.Promise(function(f, c) { + this.save("billboard", b, a[b].hj, a[b].Cc, function(a, d) { + a ? (D.error("Received an error saving", b, a), c(a)) : f(d); + }, !0); + }.bind(this)); + }.bind(this))); + }.bind(this)).then(function(b) { + var f, d, g; + try { + f = Number.MAX_VALUE; + d = Number.MAX_VALUE; + g = b.reduce(function(a, b) { + b.ei && b.ei < f && (f = b.ei); + b.WB && b.WB < d && (d = b.WB); + f < Number.MAX_VALUE && (a.freeSize = f); + d < Number.MAX_VALUE && (a.dailyBytesRemaining = d); + l.ja(b.yh) && (a.bytesWritten += b.yh); + l.ja(b.duration) && (a.duration += b.duration); + return a; + }, { + partition: "billboard", + type: "saveMultiple", + keys: Object.keys(a), + time: w.time.now(), + bytesWritten: 0, + duration: 0 }); + this.Ia("mediacache", g); + c(null, g); + } catch (Q) { + c(err); } - a.$rb = d; - }, - moof: h, - mvhd: function(a, b) { - var c; - l(a, b); - c = 1 <= a.version ? 8 : 4; - a.hi = b.qd(c); - a.modificationTime = b.qd(c); - a.T5 = b.Aa(); - a.duration = b.qd(c); - a.Vrb = b.c4(); - a.volume = b.Gpa(); - b.skip(70); - a.uqb = b.Aa(); - }, - pssh: function(a, b) { - var c; - l(a, b); - a.OTa = b.bB(); - c = b.Aa(); - a.data = b.re(c); - }, - trak: h, - mdia: h, - minf: h, - stbl: h, - stsd: function(a, b) { - l(a, b); - b.Aa(); - h(a, b); - }, - encv: m, - avc1: m, - hvcC: m, - hev1: m, - mp4a: g, - enca: g, - "ec-3": g, - avcC: function(a, b) { - a.version = b.ef(); - a.Vkb = b.ef(); - a.yrb = b.ef(); - a.Ukb = b.ef(); - a.ypb = (b.ef() & 3) + 1; - a.Isb = r(b, b.ef() & 31); - a.Zqb = r(b, b.ef()); - }, - pasp: function(a, b) { - a.oob = b.Aa(); - a.Jtb = b.Aa(); - }, - sinf: h, - frma: function(a, b) { - a.pmb = b.It(4); - }, - schm: function(a, b) { - l(a, b); - a.z8a = b.It(4); - a.xsb = b.Aa(); - a.Ie & 1 && (a.wsb = b.Q6a()); - }, - schi: h, - tenc: p, - mvex: h, - trex: function(a, b) { - l(a, b); - a.Ab = b.Aa(); - a.Gmb = b.Aa(); - a.HSa = b.Aa(); - a.ISa = b.Aa(); - a.Rha = u(b); - }, - traf: h, - tfhd: function(a, b) { - var c; - l(a, b); - a.Ab = b.Aa(); - c = a.Ie; - c & 1 && (a.glb = b.ff()); - c & 2 && (a.qsb = b.Aa()); - c & 8 && (a.HSa = b.Aa()); - c & 16 && (a.ISa = b.Aa()); - c & 32 && (a.Rha = u(b)); - }, - saio: function(a, b) { - l(a, b); - a.Ie & 1 && (a.oNa = b.Aa(), a.pNa = b.Aa()); - for (var c = 1 <= a.version ? 8 : 4, d = b.Aa(), g = []; d--;) g.push(b.qd(c)); - a.Cqa = g; - }, - mdat: function(a, b) { - a.data = b.re(b.Oj()); - }, - tkhd: function(a, b) { - var c; - l(a, b); - c = 1 <= a.version ? 8 : 4; - a.hi = b.qd(c); - a.modificationTime = b.qd(c); - a.Ab = b.Aa(); - b.skip(4); - a.duration = b.qd(c); - b.skip(8); - a.xpb = b.xb(); - a.Lkb = b.xb(); - a.volume = b.Gpa(); - b.skip(2); - b.skip(36); - a.width = b.c4(); - a.height = b.c4(); - }, - mdhd: function(a, b) { - var c; - l(a, b); - c = 1 <= a.version ? 8 : 4; - a.hi = b.qd(c); - a.modificationTime = b.qd(c); - a.T5 = b.Aa(); - a.duration = b.qd(c); - c = b.xb(); - a.language = String.fromCharCode((c >> 10 & 31) + 96) + String.fromCharCode((c >> 5 & 31) + 96) + String.fromCharCode((c & 31) + 96); - b.skip(2); - }, - mfhd: function(a, b) { - l(a, b); - a.Hsb = b.Aa(); - }, - tfdt: function(a, b) { - l(a, b); - a.mE = b.qd(1 <= a.version ? 8 : 4); - 8 == b.Oj() && b.skip(8); - }, - saiz: function(a, b) { - l(a, b); - a.Ie & 1 && (a.oNa = b.Aa(), a.pNa = b.Aa()); - for (var c = b.ef(), d = b.Aa(), g = []; d--;) g.push(c || b.ef()); - a.ssb = g; - }, - trun: function(a, b) { - var c, d; - l(a, b); - c = b.Aa(); - d = a.Ie; - d & 1 && (a.qmb = b.Aa()); - d & 4 && (a.Dnb = u(b)); - for (var g = [], h; c--;) h = {}, d & 256 && (h.duration = b.Aa()), d & 512 && (h.size = b.Aa()), d & 1024 && (h.Ie = b.Aa()), d & 2048 && (h.Llb = b.Aa()), g.push(h); - a.vo = g; - }, - sdtp: function(a, b) { - l(a, b); - for (var c = []; 0 < b.Oj();) c.push(v({}, b.ef())); - a.vo = c; - }, - "4E657466-6C69-7850-6966-665374726D21": function(a, b) { - l(a, b); - a.fileSize = b.ff(); - a.T5 = b.ff(); - a.duration = b.ff(); - a.hoa = b.ff(); - a.Osb = b.ff(); - 1 <= a.version && (a.nqb = b.ff(), a.oqb = b.Aa(), a.ioa = b.ff(), a.cja = b.Aa(), a.Uia = b.bB()); - }, - "A2394F52-5A9B-4F14-A244-6C427C648DF4": function(a, b) { - l(a, b); - a.Ie & 1 && (a.Kkb = b.qd(3), a.rpb = b.ef(), a.f0a = b.bB()); - a.nsb = b.Aa(); - a.nNa = b.re(b.Oj()); - }, - "4E657466-6C69-7846-7261-6D6552617465": function(a, b) { - l(a, b); - a.Dqb = b.Aa(); - a.Kmb = b.xb(); - }, - "8974DBCE-7BE7-4C51-84F9-7148F9882554": p, - "636F6D2E-6E65-7466-6C69-782E6974726B": h, - "636F6D2E-6E65-7466-6C69-782E68696E66": function(a, b) { - l(a, b); - a.Ufa = b.bB(); - a.hi = b.ff(); - a.M = b.ff(); - a.oo = b.ff(); - a.vQ = b.xb(); - a.wQ = b.xb(); - a.h0a = b.re(16); - a.iab = b.re(16); - }, - "636F6D2E-6E65-7466-6C69-782E76696E66": function(a, b) { - l(a, b); - a.olb = b.re(b.Oj()); - }, - "636F6D2E-6E65-7466-6C69-782E6D696478": function(a, b) { - var c; - l(a, b); - a.M8a = b.ff(); - c = b.Aa(); - a.bk = []; - for (var d = 0; d < c; d++) a.bk.push({ - duration: b.Aa(), - size: b.xb() - }); - }, - "636F6D2E-6E65-7466-6C69-782E69736567": h, - "636F6D2E-6E65-7466-6C69-782E73696478": function(a, b) { - var c; - l(a, b); - a.Ufa = b.bB(); - a.duration = b.Aa(); - c = b.Aa(); - a.vo = []; - for (var d = 0; d < c; d++) a.vo.push({ - Jh: b.Aa(), - duration: b.Aa(), - GP: b.xb(), - HP: b.xb(), - cR: b.xb(), - dR: b.xb(), - ao: b.ff(), - dA: b.Aa() - }); - }, - "636F6D2E-6E65-7466-6C69-782E73656E63": function(a, b) { - var c, d, h, f; - l(a, b); - c = b.Aa(); - d = b.ef(); - a.vo = []; - for (var g = 0; g < c; g++) { - h = b.ef(); - f = h >> 6; - h = h & 63; - 0 != f && 0 === h && (h = d); - a.vo.push({ - Aia: f, - ht: b.re(h) + }.bind(this), function(a) { + l.isArray(a.ema) ? a.ema.forEach(function(a) { + this.Ia("mediacache-error", { + partition: "billboard", + type: "saveMultiple", + error: a.error, + resources: a.EK }); - } - } + }.bind(this)) : this.Ia("mediacache-error", { + partition: "billboard", + type: "saveMultiple", + error: a + }); + c(a); + }.bind(this)), t.Op(f)) : (l.qb(f) ? f : b)(O.Xs); + }; + c.prototype.save = function(a, c, d, g, m, p) { + var r, u, y, z, n, E, q, la, t; + r = l.qb(m) ? m : b; + if (this.cr(a)) { + u = this.Ug[a]; + y = P.O1(c); + m = u.k4(); + m = m.filter(function(a) { + return a !== c; + }); + if (f(g)) { + z = x(c, d, this.K.pfb); + n = u.Xc[c] || {}; + E = n.resourceIndex; + E && Object.keys(E).map(function(a) { + l.V(z[a]) && u["delete"](a); + }); + g.convertToBinaryData && (d = N.k0a(z), z = x(c, d, !1)); + E = w.time.now(); + q = {}; + q.partition = a; + q.resourceIndex = Object.keys(z).reduce(function(a, b) { + a[b] = F.U4(z[b]); + return a; + }, {}); + q.creationTime = n.creationTime || E; + q.lastRefresh = E; + q.lifespan = g.lifespan; + q.lastMetadataUpdate = E; + q.size = n.size; + q.convertToBinaryData = g.convertToBinaryData; + la = function(a, b, f) { + a.N3a(function(d, g) { + d && D.error("Evicting", "Failed to delete some orphaned records", d); + g.p9 ? f() : (d = a.a9a()) ? this["delete"](a.getName(), d, function(d) { + d ? (p || (l.isArray(b) ? b.forEach(function(b) { + k(this, "save", a.getName, b.EK, b.error); + }.bind(this)) : h(this, "save", a.getName(), c, void 0, b)), r(b)) : f(); + }.bind(this)) : r(O.Sz); + }.bind(this)); + }.bind(this); + t = function() { + var a, b, f; + a = this.Ug; + b = 0; + f = w.time.now(); + if (!l.V(a)) + for (var c in a) b += a[c].p8a(f); + return b; + }.bind(this); + this.apa(a, m, function() { + u.replace(y, q, function(b, f) { + f ? (u.Xc[c] = P.O3(q), u.Plb(z, v(z, a, c, d, g, r, p, y, this, u, la), p, t)) : b.code === O.Sz.code ? la(u, b, function() { + this.save(a, c, d, g, r, p); + }.bind(this)) : r(b); + }.bind(this), p, t); + }.bind(this)); + } else r(O.NJa); + } else r(O.Xs); }; - f.P = { - Xrb: function(a, b) { - a = new k(a); - b && a.seek(b); - return d(a); - }, - a4: function(a, b) { - var c; - if (!a) throw Error("mp4-badinput"); - a = new k(a); - c = []; - for (b && a.seek(b); b = d(a);) c.push(b); - return c; - } + c.prototype["delete"] = function(a, f, c) { + var d; + d = l.qb(c) ? c : b; + this.cr(a) ? r(this.Ug[a], f, function(b) { + h(this, "delete", a, f, void 0, b); + d(b); + }.bind(this)) : d(O.Xs); + }; + c.prototype.apa = function(a, f, c) { + var d, g; + d = l.qb(c) ? c : b; + if (this.cr(a)) { + g = this.Ug[a]; + c = w.Promise.all(f.map(function(a) { + return new w.Promise(function(b) { + r(g, a, function(f) { + b({ + S: l.V(f), + error: f, + hj: a + }); + }.bind(this)); + }.bind(this)); + }.bind(this))).then(function(b) { + var p, h; + for (var f = [], c = [], g = [], m = 0; m < b.length; m++) { + p = b[m]; + p.S ? f.push(p.hj) : p.error && c.push(p); + } + 0 < f.length && k(this, "delete", a, f); + 0 < c.length && (g = c.map(function(a) { + return a.hj; + }), b = t.isa(c), h = b[0], b.forEach(function(b) { + D.error("Failed to delete resources ", b.error, b.EK); + k(this, "delete", a, b.EK, b.error); + }.bind(this))); + b = {}; + b.WHb = f; + 0 < g.length && (b.XHb = g); + h ? d(h, b) : d(void 0, b); + }.bind(this), function(b) { + k(this, "delete", a, f, b); + d(b); + }.bind(this)); + t.Op(c); + } else d(O.Xs); + }; + c.prototype.clear = function(a, f) { + var c; + c = l.qb(f) ? f : b; + this.cr(a) ? this.Ug[a].clear(function(a) { + c(a.filter(p)); + }) : c(O.Xs); + }; + c.prototype.Mkb = function(a, f, c) { + var d, g; + d = l.qb(c) ? c : b; + if (this.cr(a)) { + c = P.O1(f); + g = this.Ug[a]; + g.read(c, function(a, b) { + var c; + if (a) d(O.OJa); + else { + c = P.O3(b) || {}; + g.Kra(Object.keys(c.I9), function(a) { + c.size = a; + (a = g.Xc[f]) && (c.lastMetadataUpdate && a.lastMetadataUpdate && a.lastMetadataUpdate <= c.lastMetadataUpdate ? g.Xc[f] = c : a.lastMetadataUpdate && (a.lastMetadataUpdate > c.lastMetadataUpdate || l.V(c.lastMetadataUpdate)) && (c = a)); + d(null, c); + }); + } + }); + } else d(O.Xs); }; - }, function(f, c) { - Object.defineProperty(c, "__esModule", { + c.prototype.SBa = function(a) { + w.SI(a); + }; + c.prototype.constructor = c; + g.M = c; + }, function(g, d, a) { + var b, c, h, k, f, p, m, r, u; + Object.defineProperty(d, "__esModule", { value: !0 }); - c.N9 = "LicenseBrokerConstructorSymbol"; - }, function(f, c) { - Object.defineProperty(c, "__esModule", { + b = a(0); + a(14); + g = a(58); + c = a(200); + h = a(82); + k = a(202); + f = a(13); + p = a(111); + m = a(8).Eb; + r = a(710); + a = a(708); + u = function(a) { + var c3n; + + function d(b, f, c, d, g, k) { + var U3n, p, s3n, k3n, X3n; + U3n = 2; + while (U3n !== 14) { + s3n = "e"; + s3n += "d"; + s3n += "i"; + s3n += "t"; + k3n = "c"; + k3n += "ach"; + k3n += "e"; + X3n = "1S"; + X3n += "IYbZ"; + X3n += "rNJ"; + X3n += "C"; + X3n += "p9"; + switch (U3n) { + case 2: + p = this; + X3n; + p = [k3n, s3n].filter(function(a, b) { + var p3n; + p3n = 2; + while (p3n !== 1) { + switch (p3n) { + case 2: + return [g, c.$c][b]; + break; + case 4: + return [g, c.$c][b]; + break; + p3n = 1; + break; + } + } + }); + p = p.length ? "(" + p.join(",") + ")" : ""; + void 0 === c.responseType && (c.responseType = c.$c || m.ec && !m.ec.XD.Bw ? 0 : 1); + U3n = 8; + break; + case 8: + p = a.call(this, b, f, p, c, d, k) || this; + h.Tk.call(p, b, c); + return p; + break; + } + } + } + c3n = 2; + while (c3n !== 3) { + switch (c3n) { + case 2: + b.__extends(d, a); + d.create = function(a, b, g, p, h, u, v) { + var d3n, x, l, N3n; + d3n = 2; + while (d3n !== 18) { + N3n = "su"; + N3n += "breq"; + N3n += "u"; + N3n += "est"; + switch (d3n) { + case 20: + return h; + break; + case 10: + h.push(new k.QE(a, g, N3n, l, h, v)); + d3n = 14; + break; + case 3: + x = Math.ceil(p.Z / p.nD); + b = p.offset; + u = p.Z; + d3n = 7; + break; + case 6: + x = Math.ceil(p.Z / x); + d3n = 14; + break; + case 1: + d3n = !b.Ql && p.$c && a.P === f.G.VIDEO && m.ec && m.ec.XD.Bw ? 5 : 4; + break; + case 19: + return new d(a, g, p, h, u, v); + break; + case 2: + d3n = 1; + break; + case 7: + h = new c.$V(a, p, h, v); + d3n = 6; + break; + case 14: + d3n = 0 < u ? 13 : 20; + break; + case 13: + l = { + offset: b, + Z: Math.min(u, x), + responseType: p.responseType + }; + b += l.Z; + u -= l.Z; + d3n = 10; + break; + case 4: + d3n = p.nD && p.Z > p.nD ? 3 : 19; + break; + case 5: + return new r.kDa(a, g, p, h, u, v); + break; + } + } + }; + d.prototype.toString = function() { + var Z3n; + Z3n = 2; + while (Z3n !== 1) { + switch (Z3n) { + case 4: + return k.QE.prototype.toString.call(this); + break; + Z3n = 1; + break; + case 2: + return k.QE.prototype.toString.call(this); + break; + } + } + }; + return d; + break; + } + } + }(k.QE); + d.Eba = u; + p(a["default"], u.prototype); + g.Rk(h.Tk, u, !1); + }, function(g, d, a) { + var b, c; + Object.defineProperty(d, "__esModule", { value: !0 }); - c.Jjb = function() {}; - c.VU = "TransportConfigSymbol"; - }, function(f, c) { - Object.defineProperty(c, "__esModule", { + b = a(0); + c = a(36); + g = function(a) { + function d() { + return null !== a && a.apply(this, arguments) || this; + } + b.__extends(d, a); + d.prototype.parse = function() { + var a; + this.vwa = this.u.Sc(); + a = this.u.Sc(); + this.rpb = a >>> 2; + this.zrb = a >>> 1 & 1; + this.fZa = 256 * this.u.lf() + this.u.Sc(); + this.bv = this.u.fb(); + this.Kma = this.u.fb(); + c.nq && this.u.Hb("DecoderConfigDescriptor: objectTypeIndication= 0x" + this.vwa.toString(16) + ", streamType=" + this.rpb + ", upStream=" + this.zrb + ", bufferSizeDB=" + this.fZa + ", maxBitrate=" + this.bv + ", avgBitrate=" + this.Kma); + this.Wka(); + return !0; + }; + d.tag = 4; + return d; + }(a(151)["default"]); + d["default"] = g; + }, function(g, d, a) { + var b, c; + Object.defineProperty(d, "__esModule", { value: !0 }); - c.Qba = "TransportFactorySymbol"; - c.x$ = "MslTransportSymbol"; - c.sba = "SslTransportSymbol"; - }, function(f, c) { - Object.defineProperty(c, "__esModule", { + b = a(0); + c = a(36); + g = function(a) { + function d() { + return null !== a && a.apply(this, arguments) || this; + } + b.__extends(d, a); + d.prototype.parse = function(b) { + b = a.prototype.parse.call(this, b); + this.u.offset += 8; + this.g_a = this.u.lf(); + this.Emb = this.u.lf(); + this.u.offset += 4; + this.nza = this.u.lf(); + this.u.offset += 2; + c.nq && this.u.Hb("MP4AudioSampleEntry: channelcount: " + this.g_a + ", samplesize: " + this.Emb + ", samplerate: " + this.nza); + return b; + }; + return d; + }(a(359)["default"]); + d["default"] = g; + }, function(g, d, a) { + var b; + Object.defineProperty(d, "__esModule", { value: !0 }); - c.Laa = "PrefetchEventsConfigSymbol"; - }, function(f, c) { - Object.defineProperty(c, "__esModule", { + b = a(0); + g = function(a) { + function c() { + return null !== a && a.apply(this, arguments) || this; + } + b.__extends(c, a); + c.prototype.parse = function() { + this.u.offset += 6; + this.u.lf(); + return !0; + }; + return c; + }(a(36)["default"]); + d["default"] = g; + }, function(g, d, a) { + var b, c, h; + Object.defineProperty(d, "__esModule", { value: !0 }); - c.t1 = function(a, b, c) { - var d; - if (c.set) throw Error("Property " + b + " has a setter and cannot be made into a lazy property."); - d = c.get; - c.get = function() { - var h, g; - h = d.apply(this, arguments); - g = { - enumerable: c.enumerable, - value: h + b = a(0); + c = a(8); + h = a(129); + g = function(a) { + function f(b, f, c, d) { + b = a.call(this, b, f, c, d) || this; + b.oa = []; + b.b_ = !1; + b.hG = !1; + b.Dc = !1; + b.wg = !1; + b.wb = !1; + b.AA = !1; + b.wja = !1; + b.vja = !1; + b.tg = void 0; + b.cl = void 0; + b.Ro = void 0; + return b; + } + b.__extends(f, a); + Object.defineProperties(f.prototype, { + active: { + get: function() { + return this.Dc; + }, + enumerable: !0, + configurable: !0 + } + }); + Object.defineProperties(f.prototype, { + oya: { + get: function() { + return this.wg; + }, + enumerable: !0, + configurable: !0 + } + }); + Object.defineProperties(f.prototype, { + complete: { + get: function() { + return this.wb || (this.wb = this.oa.every(function(a) { + return a.complete; + })); + }, + enumerable: !0, + configurable: !0 + } + }); + Object.defineProperties(f.prototype, { + kl: { + get: function() { + return this.AA; + }, + enumerable: !0, + configurable: !0 + } + }); + Object.defineProperties(f.prototype, { + en: { + get: function() { + return this.oa.reduce(function(a, b) { + return a + b.en; + }, 0); + }, + enumerable: !0, + configurable: !0 + } + }); + Object.defineProperties(f.prototype, { + Ae: { + get: function() { + return this.oa.reduce(function(a, b) { + return a + b.Ae; + }, 0); + }, + enumerable: !0, + configurable: !0 + } + }); + Object.defineProperties(f.prototype, { + rd: { + get: function() { + return this.tg || 0; + }, + enumerable: !0, + configurable: !0 + } + }); + Object.defineProperties(f.prototype, { + CS: { + get: function() { + return this.cl; + }, + enumerable: !0, + configurable: !0 + } + }); + Object.defineProperties(f.prototype, { + url: { + get: function() { + return this.oa[0] && this.oa[0].url; + }, + enumerable: !0, + configurable: !0 + } + }); + Object.defineProperties(f.prototype, { + readyState: { + get: function() { + return this.We || this.oa.reduce(function(a, b) { + return Math.min(a, b.readyState); + }, Infinity); + }, + enumerable: !0, + configurable: !0 + } + }); + Object.defineProperties(f.prototype, { + status: { + get: function() { + return this.Ro && this.Ro.status || 0; + }, + enumerable: !0, + configurable: !0 + } + }); + Object.defineProperties(f.prototype, { + pk: { + get: function() { + return this.Ro && this.Ro.pk; + }, + enumerable: !0, + configurable: !0 + } + }); + Object.defineProperties(f.prototype, { + cR: { + get: function() { + return this.Ro && this.Ro.cR; + }, + enumerable: !0, + configurable: !0 + } + }); + Object.defineProperties(f.prototype, { + Il: { + get: function() { + return this.Ro && this.Ro.Il; + }, + enumerable: !0, + configurable: !0 + } + }); + Object.defineProperties(f.prototype, { + Zn: { + get: function() { + return !!this.oa.length && this.oa[0].Zn; + }, + enumerable: !0, + configurable: !0 + } + }); + f.prototype.push = function(a) { + this.hG && a.Ac(this.te, this.cf); + this.oa.push(a); + this.b_ && a.nv(); + }; + f.prototype.Ac = function(a, b) { + h.Wv.prototype.Ac.call(this, a, b); + this.oa.forEach(function(f) { + return f.Ac(a, b); + }); + this.hG = !0; + }; + f.prototype.nta = function() { + return 7 === this.We; + }; + f.prototype.nv = function() { + return this.b_ = this.oa.every(function(a) { + return a.nv(); + }); + }; + f.prototype.Ld = function() { + this.oa.forEach(function(a) { + return a.Ld(); + }); + }; + f.prototype.pV = function(a) { + this.We = this.Ro = void 0; + return this.oa.every(function(b) { + return 5 !== b.readyState && 7 !== b.readyState ? b.pV(a) : !0; + }); + }; + f.prototype.abort = function() { + var a, b; + a = this.active; + this.We = 7; + this.AA = !0; + this.wg = this.Dc = !1; + b = this.oa.map(function(a) { + return a.abort(); + }).every(function(a) { + return a; + }); + this.rR(this, a); + return b; + }; + f.prototype.getResponseHeader = function(a) { + var b; + b = null; + this.oa.some(function(f) { + return !!(b = f.getResponseHeader(a)); + }); + return b; + }; + f.prototype.getAllResponseHeaders = function() { + var a; + a = null; + this.oa.some(function(b) { + return !!(a = b.getAllResponseHeaders()); + }); + return a; + }; + f.prototype.Ty = function(a) { + this.Dc || (this.Dc = !0); + this.wja || (this.wja = !0, this.ni = 0, this.tg = this.fj = a.rd, this.cl = c.time.da() - this.tg, this.Yx(this)); + }; + f.prototype.mv = function(a) { + this.wg || (this.wg = !0); + this.vja || (this.vja = !0, this.tg = a.rd, this.cl = c.time.da() - this.tg, this.Xx(this)); + }; + f.prototype.WJ = function(a) { + this.tg = a.rd; + this.wC(this); + this.ni = this.Ae; + this.fj = a.rd; + }; + f.prototype.li = function(a) { + this.tg = a.rd; + this.cl = c.time.da() - this.tg; + this.complete ? (this.wb = !0, this.We = 5, this.wg = this.Dc = !1, this.Gu(this)) : this.wC(this); + this.ni = this.Ae; + this.fj = a.rd; + }; + f.prototype.zD = function(a) { + this.tg = a.rd; + this.cl = c.time.da() - this.tg; + this.Ro = a; + this.We = 6; + this.sR(this); + }; + f.prototype.ET = function() {}; + f.prototype.Vi = function() { + return this.oa[0].Vi() + "-" + this.oa[this.oa.length - 1].Vi(); + }; + f.prototype.toString = function() { + return "Compound[" + this.oa.map(function(a) { + return a.toString(); + }).join(",") + "]"; + }; + f.prototype.toJSON = function() { + return { + requests: this.oa }; - Object.getPrototypeOf(a) === Function.prototype ? Object.defineProperty(a, b, g) : Object.defineProperty(this, b, g); - return h; }; - }; - }, function(f, c) { - Object.defineProperty(c, "__esModule", { - value: !0 - }); - c.fca = "WindowUtilsSymbol"; - }, function(f, c) { - Object.defineProperty(c, "__esModule", { - value: !0 - }); - c.I$ = "NfCryptoSymbol"; - }, function(f, c) { - Object.defineProperty(c, "__esModule", { - value: !0 - }); - (c.P7 || (c.P7 = {})).PboDebugEvent = "PboDebugEvent"; - }, function(f, c) { - Object.defineProperty(c, "__esModule", { - value: !0 - }); - c.S9 = "LogDisplayConfigSymbol"; - }, function(f, c) { - Object.defineProperty(c, "__esModule", { - value: !0 - }); - c.d8 = "DxManagerSymbol"; - c.c8 = "DxManagerProviderSymbol"; - }, function(f, c, a) { - var d, h, l, g, m; - - function b(a, b, c) { - this.kf = a; - this.is = b; - this.prefix = c; - this.qga = new g.zFa(b); - } - Object.defineProperty(c, "__esModule", { + return f; + }(h.Wv); + d.YL = g; + }, function(g, d, a) { + var b, c, h, k, f, p, m, r, u; + Object.defineProperty(d, "__esModule", { value: !0 }); - f = a(1); - d = a(0); - h = a(26); - l = a(20); - g = a(613); - m = a(5); - c.Xua = "position:fixed;left:0px;top:0px;right:0px;bottom:100px;z-index:1;background-color:rgba(255,255,255,.65)"; - c.Yua = "position:fixed;left:100px;top:30px;right:100px;bottom:210px;z-index:9999;color:#000;overflow:auto;box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.2), 0 5px 5px 0 rgba(0, 0, 0, 0.24);background-color:rgba(255,255,255,.65);"; - c.Zua = "position:fixed;left:100px;right:100px;height=30px;bottom:130px;z-index:9999;color:#000;overflow:auto;box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.2), 0 5px 5px 0 rgba(0, 0, 0, 0.24);background-color:rgba(255,255,255,.65);"; - c.VI = ""; - b.prototype.show = function() { - this.Pl || (this.FPa(), this.oz && m.cd.body.appendChild(this.oz), this.Xf && m.cd.body.appendChild(this.Xf), this.oE && m.cd.body.appendChild(this.oE), this.lx && m.cd.getElementsByTagName("head")[0].appendChild(this.lx), this.Pl = !0, this.refresh()); - }; - b.prototype.dw = function() { - this.Pl && (this.Xf && m.cd.body.removeChild(this.Xf), this.oE && m.cd.body.removeChild(this.oE), this.oz && m.cd.body.removeChild(this.oz), this.lx && m.cd.getElementsByTagName("head")[0].removeChild(this.lx), this.lx = this.eI = this.oz = this.oE = this.Xf = void 0, this.Pl = !1); - }; - b.prototype.toggle = function() { - this.Pl ? this.dw() : this.show(); - }; - b.prototype.JWa = function(a) { - return "table." + a + '-display-table {border-collapse:collapse;font-family:"Lucida Console", Monaco, monospace;font-size:small}' + ("table." + a + "-display-table tr:nth-child(2n+2) {background-color: #EAF3FF;}") + ("table." + a + "-display-table tr:nth-child(2n+3) {background-color: #fff;}") + ("table." + a + "-display-table tr:nth-child(0n+1) {background-color: lightgray;}") + ("table." + a + "-display-table, th, td {padding: 2px;text-align: left;vertical-align: top;border-right:solid 1px gray;border-left:solid 1px gray;}") + ("table." + a + "-display-table, th {border-top:solid 1px gray;border-bottom:solid 1px gray}") + ("span." + a + "-display-indexheader {margin-left:5px;}") + ("span." + a + "-display-indexvalue {margin-left:5px;}") + ("span." + a + "-display-keyheader {margin-left:5px;}") + ("span." + a + "-display-keyvalue {margin-left:5px;}") + ("span." + a + "-display-valueheader {margin-left:5px;}") + ("ul." + a + "-display-tree {margin-top: 0px;margin-bottom: 0px;margin-right: 5px;margin-left: -20px;}") + ("ul." + a + "-display-tree li {list-style-type: none; position: relative;}") + ("ul." + a + "-display-tree li ul {display: none;}") + ("ul." + a + "-display-tree li.open > ul {display: block;}") + ("ul." + a + "-display-tree li a {color: black;text-decoration: none;}") + ("ul." + a + "-display-tree li a:before {height: 1em;padding: 0 .1em;font-size: .8em;display: block;position: absolute;left: -1.3em;top: .2em;}") + ("ul." + a + "-display-tree li > a:not(:last-child):before {content: '+';}") + ("ul." + a + "-display-tree li.open > a:not(:last-child):before {content: '-';}") + ("button." + a + "-display-btn {float:right;display:inline-block;height:30px;width:100px;padding:3px;margin:10px;background-color:#C6CCD2;transition: all 200ms ease-in-out 0s;border-radius:6px;font-weight:300;font-size:16px;border-style:none;}") + ("ul." + a + "-display-item-inline {margin:0;padding:0}") + ("." + a + "-display-btn:hover, ." + a + "-display-btn:focus, ." + a + "-display-btn:active {background: none repeat scroll 0 0 #B8BFC7 !important; }") + ("button." + a + "-display-btn-inline {float:right;display:inline-block;height:20px;width:40px;background-color:#C6CCD2;transition: all 200ms ease-in-out 0s;border-radius:6px;font-weight:300;font-size:12px;border-style:none;padding:0;color:palevioletred;background:rgba(0,0,0,0)}") + ("." + a + "-display-btn-inline:hover, ." + a + "-display-btn-inline:focus, ." + a + "-display-btn-inline:active {background: none repeat scroll 0 0 #B8BFC7 !important; }"); - }; - b.prototype.FPa = function() { - var a; - a = this; - this.lx = m.cd.createElement("style"); - this.lx.type = "text/css"; - this.lx.innerHTML = this.JWa(this.prefix); - this.oE = this.kf.createElement("div", c.Xua, void 0, { - "class": this.prefix + "-display-blur" + b = a(0); + c = a(13); + h = a(8); + k = a(360); + f = a(362); + p = a(203); + g = a(29); + m = a(201); + r = a(28); + a = a(58); + u = h.MediaSource; + h = function(a) { + function d(b, c, d, g, m, k, p) { + m = a.call(this, b, g, m, p) || this; + f.bW.call(m, b, g, p); + m.K = c; + m.$N = d; + m.eSa = !!g.Mr; + m.RRa = !!g.Qx; + m.nE = !!g.nE; + m.wUa = g.Z; + m.jG = (k ? "(cache)" : "") + m.Ya + " header"; + m.jB(b.url || g.url, g.offset, g.Z); + return m; + } + b.__extends(d, a); + Object.defineProperties(d.prototype, { + Bc: { + get: function() { + return !0; + }, + enumerable: !0, + configurable: !0 + } }); - this.Xf = this.kf.createElement("div", c.Yua, void 0, { - "class": this.prefix + "-display" + Object.defineProperties(d.prototype, { + track: { + get: function() { + return this.$N; + }, + enumerable: !0, + configurable: !0 + } }); - this.oz = this.kf.createElement("div", c.Zua, void 0, { - "class": this.prefix + "-display" + Object.defineProperties(d.prototype, { + Mr: { + get: function() { + return this.eSa; + }, + enumerable: !0, + configurable: !0 + } + }); + Object.defineProperties(d.prototype, { + Qx: { + get: function() { + return this.RRa; + }, + enumerable: !0, + configurable: !0 + } }); - this.Ija().forEach(function(b) { - return a.oz.appendChild(b); + Object.defineProperties(d.prototype, { + Uhb: { + get: function() { + return this.wUa; + }, + enumerable: !0, + configurable: !0 + } }); - }; - b.prototype.GPa = function(a) { - a = this.kf.createElement("div", "", a, { - "class": this.prefix + "-display-tree1" + Object.defineProperties(d.prototype, { + parseError: { + get: function() { + return this.c_; + }, + enumerable: !0, + configurable: !0 + } }); - for (var b = a.querySelectorAll("ul." + this.prefix + "-display-tree a:not(:last-child)"), c = 0; c < b.length; c++) b[c].addEventListener("click", function(a) { - var b, c; - if (a = a.target.parentElement) { - b = a.classList; - if (b.contains("open")) { - b.remove("open"); - try { - c = a.querySelectorAll(":scope .open"); - for (a = 0; a < c.length; a++) c[a].classList.remove("open"); - } catch (G) {} - } else b.add("open"); + Object.defineProperties(d.prototype, { + YJ: { + get: function() { + return this.zUa; + }, + enumerable: !0, + configurable: !0 } }); - return a; - }; - b.prototype.refresh = function() { - var a; - a = this; - return this.Pl ? this.Xpa().then(function(b) { - if (b && (b = a.GPa(b), a.Xf)) { - a.eI && (a.Xf.removeChild(a.eI), a.eI = void 0); - a.eI = b; - a.Xf.appendChild(a.eI); - b = a.Xf.querySelectorAll("button." + a.prefix + "-display-btn-inline"); - for (var c = 0; c < b.length; ++c) b[c].addEventListener("click", a.yqa); - (b = a.Xf.querySelector("#" + a.prefix + "-display-close-btn")) && b.addEventListener("click", function() { - a.toggle(); - }); + Object.defineProperties(d.prototype, { + config: { + get: function() { + return this.K; + }, + enumerable: !0, + configurable: !0 } - }) : Promise.resolve(); - }; - b.prototype.qha = function(a) { - var b; - if (m.cd.queryCommandSupported && m.cd.queryCommandSupported("copy")) { - b = m.cd.createElement("textarea"); - b.textContent = a; - b.style.position = "fixed"; - m.cd.body.appendChild(b); - b.select(); - try { - m.cd.execCommand("copy"); - } catch (u) { - console.warn("Copy to clipboard failed.", u); - } finally { - m.cd.body.removeChild(b); + }); + d.prototype.Ld = function() { + var b; + if (!this.complete) { + b = { + type: "headerRequestCancelled", + request: this + }; + this.emit(b.type, b); } - } - }; - a = b; - a = f.__decorate([d.N(), f.__param(0, d.j(h.Re)), f.__param(1, d.j(l.rd)), f.__param(2, d.Uh())], a); - c.gK = a; - }, function(f, c) { - Object.defineProperty(c, "__esModule", { + a.prototype.Ld.call(this); + }; + d.prototype.Nlb = function() { + if (!this.C_) return !0; + this.C_ = !1; + return this.Dka(); + }; + d.prototype.li = function(b) { + this.Yj = this.Yj ? r.Br(this.Yj, b.response) : b.response; + b.mU(); + this.Dka() ? a.prototype.li.call(this, b) : this.qia ? (this.jB(b.url, b.offset + b.Z, this.qia), a.prototype.li.call(this, b)) : this.sR(this); + }; + d.prototype.uTa = function(a, b) { + a.LT = !1; + a.parseError = b.errormsg; + }; + d.prototype.yTa = function(a, b) { + a.LT = !1; + a.oXa = b.bytes; + }; + d.prototype.vTa = function(a, b) { + a.Y = b.fragments; + a.jv = b.movieDataOffsets; + a.wh = b.additionalSAPs; + a.Js = b.truncated; + a.q2 = b.defaultSampleDuration; + a.ha = b.timescale; + }; + d.prototype.ATa = function(a, b) { + this.K.aK.enabled && (a.iq = b.vmafs); + }; + d.prototype.zTa = function(a, b) { + b.frameDuration && (a.Ka = b.frameDuration, this.Gka.Ka = a.Ka); + }; + d.prototype.tTa = function(a, b) { + var f; + f = a.Ne || {}; + f.source = "mp4"; + f.ul = b.drmType; + f.vk = b.header; + a.Ne = f; + }; + d.prototype.xTa = function(a, b) { + a.Ny = b.header; + }; + d.prototype.wTa = function(a, b) { + var f; + f = a.Ne || {}; + f.Yna = b.keyId; + f.Qcb = (f.Qcb || []).concat(b.offset); + f.RFb = b.flipped; + a.Ne = f; + }; + d.prototype.sTa = function(a, b) { + a.LT = !0; + a.NJ = b.moovEnd; + a.YJ = b.parsedEnd; + }; + d.prototype.jB = function(a, b, f) { + a = new p.ZL(this.stream, this.$N, this.jG + " (" + this.oa.length + ")", { + offset: b, + Z: f, + url: a, + location: this.location, + cd: this.cd, + responseType: 0 + }, this, this.W); + this.push(a); + this.Lb = this.oa.reduce(function(a, b) { + return a + b.Z; + }, 0); + }; + d.prototype.Dka = function() { + var a, b, f; + b = this.K.tsb; + f = this.K.kYa; + this.P === c.G.VIDEO && b && !this.K.Kr ? a = b : this.P === c.G.AUDIO && f && (a = f); + a = new m.OKa(this.stream, this.Yj, ["sidx"], this.P === c.G.VIDEO && this.K.Kr || this.P === c.G.AUDIO && this.K.Gm, { + truncate: this.Js, + sIb: this.stream.track.K2, + hE: a, + uib: void 0 === this.Ka, + Gaa: !u.ec || !u.ec.WP, + Haa: this.K.Haa, + Cn: this.K.Cn && this.K.Gm, + mK: this.K.mK, + JE: this.K.JE + }); + b = {}; + a.addEventListener("error", this.uTa.bind(this, b)); + a.addEventListener("requestdata", this.yTa.bind(this, b)); + a.addEventListener("fragments", this.vTa.bind(this, b)); + a.addEventListener("vmafs", this.ATa.bind(this, b)); + a.addEventListener("sampledescriptions", this.zTa.bind(this, b)); + a.addEventListener("drmheader", this.tTa.bind(this, b)); + a.addEventListener("nflxheader", this.xTa.bind(this, b)); + a.addEventListener("keyid", this.wTa.bind(this, b)); + a.addEventListener("done", this.sTa.bind(this, b)); + this.Gka = { + Ka: this.Ka + }; + a.parse(this.Gka); + b.LT ? (this.Yj = a.krb(b.NJ || b.YJ), this.zUa = b.YJ, this.vZ = b.Ne, this.XZ = b.Ny, void 0 === this.Ka && void 0 === b.Ka && this.W.Rb("No frame duration available for " + this.Ya), void 0 === this.Ka && void 0 === b.Ka && this.W.Rb("No frame duration available for " + this.Ya), this.stream.BT(b.ha, b.Ka || this.Ka, b.Y, b.jv, b.wh, b.iq)) : this.qia = b.oXa || 0; + return !!b.LT; + }; + return d; + }(k.YL); + d.Gba = h; + a.Rk(f.bW, h, !1); + a.Rk(g.EventEmitter, h); + }, function(g, d, a) { + var b, c; + Object.defineProperty(d, "__esModule", { value: !0 }); - c.b8 = "DxDisplaySymbol"; - }, function(f, c, a) { - var d, h, l; - - function b() {} - Object.defineProperty(c, "__esModule", { + b = a(0); + c = a(14); + g = function(a) { + function d(b, c, d) { + b = a.call(this, b, c) || this; + b.Yj = c.Wn; + b.vZ = c.Ne; + b.XZ = c.Ny; + b.C_ = !!c.Js; + b.W = d; + return b; + } + b.__extends(d, a); + Object.defineProperties(d.prototype, { + Bc: { + get: function() { + return !0; + }, + enumerable: !0, + configurable: !0 + } + }); + Object.defineProperties(d.prototype, { + data: { + get: function() { + return this.Yj; + }, + enumerable: !0, + configurable: !0 + } + }); + Object.defineProperties(d.prototype, { + Wn: { + get: function() { + return this.Yj; + }, + enumerable: !0, + configurable: !0 + } + }); + Object.defineProperties(d.prototype, { + Y: { + get: function() { + return this.stream.Y; + }, + enumerable: !0, + configurable: !0 + } + }); + Object.defineProperties(d.prototype, { + iq: { + get: function() { + return this.Y && this.Y.iq; + }, + enumerable: !0, + configurable: !0 + } + }); + Object.defineProperties(d.prototype, { + Ne: { + get: function() { + return this.vZ; + }, + enumerable: !0, + configurable: !0 + } + }); + Object.defineProperties(d.prototype, { + Ny: { + get: function() { + return this.XZ; + }, + enumerable: !0, + configurable: !0 + } + }); + Object.defineProperties(d.prototype, { + Js: { + get: function() { + return this.C_; + }, + enumerable: !0, + configurable: !0 + } + }); + Object.defineProperties(d.prototype, { + K4a: { + get: function() { + return !(!this.vZ && !this.XZ); + }, + enumerable: !0, + configurable: !0 + } + }); + d.prototype.uXa = function(a) { + c(this.Ec.Ya === a.Ya); + !a.Mc && this.Ec.Mc && a.dQ(this.Ec); + !a.location && this.Ec.location && (a.location = this.Ec.location, a.Pb = this.Ec.Pb, a.tz = this.Ec.tz, a.url = this.Ec.url, a.Ga = this.Ec.Ga); + this.Ec = a; + }; + d.prototype.toJSON = function() { + return b.__assign({}, a.prototype.toJSON.call(this), { + isHeader: !0, + fragments: this.Y + }); + }; + return d; + }(a(154).Xv); + d.bW = g; + }, function(g, d, a) { + var b, c; + Object.defineProperty(d, "__esModule", { value: !0 }); - d = a(3); - h = a(29); - l = a(6); - b.prototype.Tz = function() { - return this.D_a() ? l.Swa : /widevine/i.test(this.config().ce) ? l.Z7 : /fps/i.test(this.config().ce) ? l.Twa : l.JS; - }; - b.prototype.D_a = function() { - return /clearkey/i.test(this.config().ce); - }; - pa.Object.defineProperties(b.prototype, { - config: { - configurable: !0, - enumerable: !0, + g = a(47); + b = a(58); + a = a(153); + c = function() { + function a(a, b) { + this.rm = a; + this.Qw = b.Ib; + this.Hq = b.Nb; + } + a.prototype.Wza = function(a) { + this.Hq = a; + }; + a.prototype.wna = function() { + this.Hq = void 0; + }; + return a; + }(); + d.$L = c; + g.ai(c.prototype, { + Ib: g.L({ get: function() { - this.H || (this.H = d.Z.get(h.Ef)); - return this.H; + return void 0 !== this.Qw ? this.Qw : this.rm.Ib; } - } - }); - c.PT = new b(); - }, function(f, c) { - Object.defineProperty(c, "__esModule", { - value: !0 - }); - c.Iaa = "PlaydataConfigSymbol"; - }, function(f, c) { - Object.defineProperty(c, "__esModule", { - value: !0 - }); - c.iaa = "PboCachedPlaydataSymbol"; - }, function(f, c) { - Object.defineProperty(c, "__esModule", { - value: !0 - }); - c.l7 = "CachedPlaydataSymbol"; - }, function(f, c) { - Object.defineProperty(c, "__esModule", { - value: !0 - }); - c.kaa = "PboLicenseResponseTransformerSymbol"; - }, function(f, c) { - Object.defineProperty(c, "__esModule", { - value: !0 - }); - c.jaa = "PboLicenseRequestTransformerSymbol"; - }, function(f, c) { - Object.defineProperty(c, "__esModule", { - value: !0 + }), + Nb: g.L({ + get: function() { + return void 0 !== this.Hq ? this.Hq : this.rm.Nb; + } + }), + ha: g.L({ + get: function() { + return this.rm.ha; + } + }), + ro: g.L({ + get: function() { + return this.rm.ro; + } + }) }); - c.paa = "PboReleaseLicenseCommandSymbol"; - }, function(f, c, a) { - var d; + b.Rk(a.aM, c); + }, function(g, d, a) { + var c, h, k, f, p, m; function b(a) { - var h, g, f, p, r, u, v; - f = {}; - f[d.aS] = a.localName; - p = {}; - f[d.Vh] = p; - r = []; - f[d.$R] = r; - u = a.attributes; - h = u.length; - for (g = 0; g < h; g++) { - v = u[g]; - p[v.localName] = v.value; - } - a = a.childNodes; - h = a.length; - p = {}; - for (g = 0; g < h; g++) switch (u = a[g], u.nodeType) { - case c.gdb: - u = b(u); - v = u[d.aS]; - u[d.mta] = f; - r.push(u); - f[v] ? p[v][d.$B] = u : f[v] = u; - p[v] = u; - break; - case c.hdb: - case c.edb: - u = u.text || u.nodeValue, r.push(u), f[d.Io] || (f[d.Io] = u); - } - return f; + return void 0 === a ? !0 : a; } - Object.defineProperty(c, "__esModule", { + Object.defineProperty(d, "__esModule", { value: !0 }); - d = a(122); - c.ddb = function(a) { - return b(a.nodeType == c.fdb ? a.documentElement : a); - }; - c.Stb = b; - c.gdb = 1; - c.Rtb = 2; - c.hdb = 3; - c.edb = 4; - c.fdb = 9; - }, function(f, c, a) { - var b, d; - Object.defineProperty(c, "__esModule", { - value: !0 - }); - b = a(3); - d = a(15); - c.cdb = function(a) { - var c, g; - if (d.kq(a)) { - c = new DOMParser().parseFromString(a, "text/xml"); - g = c.getElementsByTagName("parsererror"); - if (g && g[0]) { - try { - b.log.error("parser error details", { - errornode: new XMLSerializer().serializeToString(g[0]), - xmlData: a.slice(0, 300), - fileSize: a.length - }); - } catch (m) {} - throw Error("xml parser error"); + c = a(0); + h = a(74); + k = a(205); + g = a(47); + f = a(82); + p = a(204); + a(14); + m = a(13); + a = function() { + function a(a, f, c, d) { + this.K = c; + this.W = d; + this.Ni = a; + this.SVa = f.ef; + this.SA = f.Ya || f.id; + this.pO = f.Fl; + this.$Qa = f.O; + this.K_ = f.oc; + this.bx = f.profile || f.Me; + this.GVa = f.Jj; + this.va = f.Y; + this.Fe = b(f.Fe); + this.inRange = b(f.inRange); + this.ZB = f.ZB; + this.Al = b(f.Al); + this.WU = !!f.WU; + this.Ga = f.Ga; + this.url = this.tz = this.Pb = this.Nk = this.G6 = this.location = this.pa = void 0; + this.Eh = !1; + this.yd = void 0; + a = this.K && "object" === typeof this.K.mK && this.K.mK[this.profile]; + "object" === typeof a && (a = a[this.O]) && (this.dB = new h.cc(a)); + } + a.uR = function(b, f, c, d, g, m, k, h) { + b = p.cW.uR(b, f, c, d, m, h); + return a.M3(b, g, m, k, h); + }; + a.M3 = function(b, f, d, g, m) { + var k, p; + k = b.Fa[["audio_tracks", "video_tracks"][b.P]][b.uf].streams[f]; + p = k.content_profile; + return new a(b, c.__assign({}, d, { + id: k.downloadable_id, + O: k.bitrate, + oc: k.vmaf, + Me: p, + Jj: k.sidx, + ef: f, + Fl: -1 === p.indexOf("none") + }), g, m); + }; + a.prototype.BT = function(a, b, f, c, d, g) { + f && void 0 !== f.Rl && (this.track.Mc || void 0 !== f.Sd && f.Sd.length) && void 0 !== f.offset && void 0 !== f.sizes && f.sizes.length ? this.Mc || (this.track.BT(this, a, b, f, d), this.va = new k.sPa(this.track.Ul, f, c, d, g, this.R)) : this.W.error("AseStream.onHeaderReceived with missing fragments data:" + (void 0 !== f.Rl) + "," + this.track.Mc + "," + this.track.K2 + "," + (void 0 !== f.Sd) + "," + !(!f.Sd || !f.Sd.length) + "," + (void 0 !== f.offset) + "," + (void 0 !== f.sizes) + "," + !(!f.sizes || !f.sizes.length)); + }; + a.prototype.dQ = function(a) { + this.Mc || (this.track.o0a(a.track), this.va = a.Y); + }; + a.prototype.$g = function(a) { + return new f.Tk(this, this.Y.get(a)); + }; + a.prototype.sra = function(a) { + var b, f, c; + b = this.$g(a.index); + if (a.ae) { + f = a.ae; + if (this.P === m.G.VIDEO && this !== a.stream) { + if (b.wh && b.wh.some(function(a, b) { + c = b; + return a.Vc === f.Vc; + })) f = b.wh[c]; + else return this.W.error("AdditionalSAP not found in stream " + this + ": " + a + "," + JSON.stringify(f)), b; + } + b.Ak(f, a.Hu !== a.ea); + b.SK(a.Nv); + } else a.$c && b.Ak(); + return b; + }; + a.prototype.yS = function(a, b, f) { + if (!this.Mc || this.track.l5 >= this.O) return !0; + if (this.track.Dua <= this.O) return !1; + if (a = this.va.yS(a, b, f)) { + if (!this.track.K2 || this.Fl) this.track.l5 = this.O; + } else this.track.Dua = this.O; + return a; + }; + a.prototype.z_a = function() { + this.pa = this.Ga = this.Pb = this.location = this.url = void 0; + }; + a.prototype.toJSON = function() { + return { + movieId: this.R, + mediaType: this.P, + streamId: this.Ya, + bitrate: this.O + }; + }; + a.prototype.toString = function() { + return (0 === this.P ? "a" : "v") + ":" + this.Ya + ":" + this.O; + }; + return a; + }(); + d.Hba = a; + g.ai(a.prototype, { + Mc: g.L({ + get: function() { + return !!this.Y; } - return c; - } - throw Error("bad xml text"); - }; - }, function(f, c, a) { - var g, m, p, r, u, v; - - function b(a) { - var b; - a = new p(a); - if (1481462272 != a.Aa()) throw Error("Invalid header"); - b = { - XMR: { - Version: a.Aa(), - RightsID: a.Xj(16) + }), + zFb: g.L({ + get: function() { + return !0; } - }; - d(a, b.XMR, a.buffer.byteLength); - return b; - } - - function d(a, b, c) { - var g, f, m, p, r; - for (; a.position < c;) { - g = a.xb(); - f = a.Aa(); - f = f - 8; - switch (g) { - case 1: - m = "OuterContainer"; - break; - case 2: - m = "GlobalPolicy"; - break; - case 3: - m = "MinimumEnvironment"; - break; - case 4: - m = "PlaybackPolicy"; - break; - case 5: - m = "OutputProtection"; - break; - case 6: - m = "UplinkKID"; - break; - case 7: - m = "ExplicitAnalogVideoOutputProtectionContainer"; - break; - case 8: - m = "AnalogVideoOutputConfiguration"; - break; - case 9: - m = "KeyMaterial"; - break; - case 10: - m = "ContentKey"; - break; - case 11: - m = "Signature"; - break; - case 12: - m = "DeviceIdentification"; - break; - case 13: - m = "Settings"; - break; - case 18: - m = "ExpirationRestriction"; - break; - case 42: - m = "ECCKey"; - break; - case 48: - m = "ExpirationAfterFirstPlayRestriction"; - break; - case 50: - m = "PlayReadyRevocationInformationVersion"; - break; - case 51: - m = "EmbeddedLicenseSettings"; - break; - case 52: - m = "SecurityLevel"; - break; - case 54: - m = "PlayEnabler"; - break; - case 57: - m = "PlayEnablerType"; - break; - case 85: - m = "RealTimeExpirationRestriction"; - break; - default: - m = "Other"; + }), + Fa: g.L({ + get: function() { + return this.Ni.Fa; } - p = { - Type: h(g) - }; - r = b[m]; - r ? v.isArray(r) ? r.push(p) : (b[m] = [], b[m].push(r), b[m].push(p)) : b[m] = p; - switch (g) { - case 1: - case 2: - case 4: - case 7: - case 9: - case 54: - d(a, p, a.position + f); - break; - case 5: - p.Reserved1 = a.xb(); - p.MinimumUncompressedDigitalVideoOutputProtectionLevel = a.xb(); - p.MinimumAnalogVideoOutputProtectionLevel = a.xb(); - p.Reserved2 = a.xb(); - p.MinimumUncompressedDigitalAudioOutputProtectionLevel = a.xb(); - break; - case 10: - p.Reserved = a.Xj(16); - p.SymmetricCipherType = a.xb(); - p.AsymmetricCipherType = a.xb(); - f = a.xb(); - p.EncryptedKeyLength = f; - g = a.Xj(f); - p.EncryptedKeyData = 10 >= f ? g : g.substring(0, 4) + "..." + g.substring(g.length - 4, g.length); - break; - case 11: - p.SignatureType = a.Xj(2); - f = a.xb(); - g = a.Xj(f); - p.SignatureData = 10 >= f ? g : g.substring(0, 4) + "..." + g.substring(g.length - 4, g.length); - break; - case 13: - p.Reserved = a.xb(); - break; - case 18: - p.BeginDate = a.Aa(); - p.EndDate = a.Aa(); - break; - case 42: - p.CurveType = a.Xj(2); - f = a.xb(); - g = a.Xj(f); - p.Key = 10 >= f ? g : g.substring(0, 4) + "..." + g.substring(g.length - 4, g.length); - break; - case 48: - p.ExpireAfterFirstPlay = a.Aa(); - break; - case 50: - p.Sequence = a.Aa(); - break; - case 51: - p.LicenseProcessingIndicator = a.xb(); - break; - case 52: - p.MinimumSecurityLevel = a.xb(); - break; - case 57: - p.PlayEnablerType = l(a.Xj(16)); - break; - case 85: - break; - default: - p.OtherData = a.Xj(f); + }), + na: g.L({ + get: function() { + return this.Ni.na; } - } - } - - function h(a) { - return "0x" + a.toString(16); - } - - function l(a) { - return a.substring(6, 8) + a.substring(4, 6) + a.substring(2, 4) + a.substring(0, 2) + "-" + a.substring(10, 12) + a.substring(8, 10) + "-" + a.substring(14, 16) + a.substring(12, 14) + "-" + a.substring(16, 20) + "-" + a.substring(20, 32); - } - Object.defineProperty(c, "__esModule", { - value: !0 + }), + R: g.L({ + get: function() { + return this.Ni.R; + } + }), + P: g.L({ + get: function() { + return this.Ni.P; + } + }), + Yo: g.L({ + get: function() { + return this.Ni.Yo; + } + }), + uf: g.L({ + get: function() { + return this.Ni.uf; + } + }), + Ka: g.L({ + get: function() { + return this.Ni.Ka; + } + }), + ha: g.L({ + get: function() { + return this.Ni.ha; + } + }), + Hy: g.L({ + get: function() { + return this.Ni.Hy; + } + }), + track: g.L({ + get: function() { + return this.Ni; + } + }), + ef: g.L({ + get: function() { + return this.SVa; + } + }), + Ya: g.L({ + get: function() { + return this.SA; + } + }), + id: g.L({ + get: function() { + return this.SA; + } + }), + Fl: g.L({ + get: function() { + return this.pO; + } + }), + O: g.L({ + get: function() { + return this.$Qa; + } + }), + oc: g.L({ + get: function() { + return this.K_; + } + }), + profile: g.L({ + get: function() { + return this.bx; + } + }), + Me: g.L({ + get: function() { + return this.bx; + } + }), + Jj: g.L({ + get: function() { + return this.GVa; + } + }), + Ik: g.L({ + get: function() { + return this.dB; + } + }), + Y: g.L({ + get: function() { + return this.va; + } + }), + WS: g.L({ + get: function() { + return this.va && this.va.WS; + } + }), + K3: g.L({ + get: function() { + return this.Ni.K3; + } + }), + J3: g.L({ + get: function() { + return this.Ni.J3; + } + }), + WG: g.L({ + get: function() { + return this.Ni.WG; + } + }), + XG: g.L({ + get: function() { + return this.Ni.XG; + } + }), + P5: g.L({ + get: function() { + return this.Ka.bf; + } + }), + U: g.L({ + get: function() { + return 0; + } + }) }); - g = a(6); - m = a(3); - p = a(94); - r = a(122); - u = a(143); - v = a(15); - c.zmb = function(a, c, d) { - switch (c) { - case g.JS: - a && (a = m.zNa(a), u.C6(a, function(a) { - a.K && (a = a.object) && (a = r.eXa(a, "Body", "AcquireLicenseResponse", "AcquireLicenseResult", "Response", "LicenseResponse", "Licenses", "License")) && (a = r.Y4a(a)) && (a = m.Pi(a)) && (a = b(a)) && d(a); - })); - } + }, function(g) { + g.M = function(d, a) { + var b; + if (!Array.isArray(d.Zna)) return d; + b = Object.create(d); + d.Zna.forEach(function(c) { + if (void 0 !== c.Zfb && a.duration >= c.Zfb && c.config) + for (var d in c.config) b[d] = c.config[d]; + }); + return b; }; - c.Amb = b; - c.Bmb = d; - c.Dmb = h; - c.Cmb = l; - }, function(f, c) { - Object.defineProperty(c, "__esModule", { - value: !0 - }); - c.haa = "PboAcquireLicenseCommandSymbol"; - }, function(f, c) { - Object.defineProperty(c, "__esModule", { - value: !0 - }); - c.naa = "PboManifestCommandSymbol"; - }, function(f, c) { - Object.defineProperty(c, "__esModule", { - value: !0 - }); - c.O9 = "LifecycleProviderSymbol"; - }, function(f, c) { - Object.defineProperty(c, "__esModule", { - value: !0 - }); - c.cca = "CAUSwwUKvQIIAxIQ5US6QAvBDzfTtjb4tU/7QxiH8c+TBSKOAjCCAQoCggEBAObzvlu2hZRsapAPx4Aa4GUZj4/GjxgXUtBH4THSkM40x63wQeyVxlEEo1D/T1FkVM/S+tiKbJiIGaT0Yb5LTAHcJEhODB40TXlwPfcxBjJLfOkF3jP6wIlqbb6OPVkDi6KMTZ3EYL6BEFGfD1ag/LDsPxG6EZIn3k4S3ODcej6YSzG4TnGD0szj5m6uj/2azPZsWAlSNBRUejmP6Tiota7g5u6AWZz0MsgCiEvnxRHmTRee+LO6U4dswzF3Odr2XBPD/hIAtp0RX8JlcGazBS0GABMMo2qNfCiSiGdyl2xZJq4fq99LoVfCLNChkn1N2NIYLrStQHa35pgObvhwi7ECAwEAAToQdGVzdC5uZXRmbGl4LmNvbRKAA4TTLzJbDZaKfozb9vDv5qpW5A/DNL9gbnJJi/AIZB3QOW2veGmKT3xaKNQ4NSvo/EyfVlhc4ujd4QPrFgYztGLNrxeyRF0J8XzGOPsvv9Mc9uLHKfiZQuy21KZYWF7HNedJ4qpAe6gqZ6uq7Se7f2JbelzENX8rsTpppKvkgPRIKLspFwv0EJQLPWD1zjew2PjoGEwJYlKbSbHVcUNygplaGmPkUCBThDh7p/5Lx5ff2d/oPpIlFvhqntmfOfumt4i+ZL3fFaObvkjpQFVAajqmfipY0KAtiUYYJAJSbm2DnrqP7+DmO9hmRMm9uJkXC2MxbmeNtJHAHdbgKsqjLHDiqwk1JplFMoC9KNMp2pUNdX9TkcrtJoEDqIn3zX9p+itdt3a9mVFc7/ZL4xpraYdQvOwP5LmXj9galK3s+eQJ7bkX6cCi+2X+iBmCMx4R0XJ3/1gxiM5LiStibCnfInub1nNgJDojxFA3jH/IuUcblEf/5Y0s1SzokBnR8V0KbA=="; - c.rxa = "MIIE2jCCA8KgAwIBAgIIBRGnbPd8z1YwDQYJKoZIhvcNAQEFBQAwfzELMAkGA1UEBhMCVVMxEzARBgNVBAoMCkFwcGxlIEluYy4xJjAkBgNVBAsMHUFwcGxlIENlcnRpZmljYXRpb24gQXV0aG9yaXR5MTMwMQYDVQQDDCpBcHBsZSBLZXkgU2VydmljZXMgQ2VydGlmaWNhdGlvbiBBdXRob3JpdHkwHhcNMTMwMzI3MjEyNjU2WhcNMTUwMzI4MjEyNjU2WjBjMQswCQYDVQQGEwJVUzEUMBIGA1UECgwLTmV0ZmxpeC5jb20xDDAKBgNVBAsMA0VEUzEwMC4GA1UEAwwnRlBTIEFwcGxpY2F0aW9uIENlcnRpZmljYXRlICgyMDEzIHYxLjApMIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDfaIdDptThILsQcAbDMvT5FpK4JNn/BnHAY++rS9OFfhg5R4pV7CI+UMZeC64TFJJZciq6dX4/Vh7JDDULooAeZxlOLqJB4v+KDMpFS6VsRPweeMRSCE5rQffF5HoRKx682Kw4Ltv2PTxE3M16ktYCOxq+/7fxevMt3uII+2V0tQIDAQABo4IB+DCCAfQwHQYDVR0OBBYEFDuQUJCSl+l2UeybrEfNbUR1JcwSMAwGA1UdEwEB/wQCMAAwHwYDVR0jBBgwFoAUY+RHVMuFcVlGLIOszEQxZGcDLL4wgeIGA1UdIASB2jCB1zCB1AYJKoZIhvdjZAUBMIHGMIHDBggrBgEFBQcCAjCBtgyBs1JlbGlhbmNlIG9uIHRoaXMgY2VydGlmaWNhdGUgYnkgYW55IHBhcnR5IGFzc3VtZXMgYWNjZXB0YW5jZSBvZiB0aGUgdGhlbiBhcHBsaWNhYmxlIHN0YW5kYXJkIHRlcm1zIGFuZCBjb25kaXRpb25zIG9mIHVzZSwgY2VydGlmaWNhdGUgcG9saWN5IGFuZCBjZXJ0aWZpY2F0aW9uIHByYWN0aWNlIHN0YXRlbWVudHMuMDUGA1UdHwQuMCwwKqAooCaGJGh0dHA6Ly9jcmwuYXBwbGUuY29tL2tleXNlcnZpY2VzLmNybDAOBgNVHQ8BAf8EBAMCBSAwLQYLKoZIhvdjZAYNAQMBAf8EGwGcLBpLUU8iNtuBsGfgldUUE/I42u6RKyl8uzBJBgsqhkiG92NkBg0BBAEB/wQ3AV+LX+Xo3O4lI5WzFXfxVrna5jJD1GHioNsMHMKUv97Kx9dCozZVRhmiGdTREdjOptDoUjj2ODANBgkqhkiG9w0BAQUFAAOCAQEAmkGc6tT450ENeFTTmvhyTHfntjWyEpEvsvoubGpqPnbPXhYsaz6U1RuoLkf5q4BkaXVE0yekfKiPa5lOSIYOebyWgDkWBuJDPrQFw8QYreq5T/rteSNQnJS1lAbg5vyLzexLMH7kq47OlCAnUlrI20mvGM71RuU6HlKJIlWIVlId5JZQF2ae0/A6BVZWh35+bQu+iPI1PXjrTVYqtmrV6N+vV8UaHRdKV6rCD648iJebynWZj4Gbgzqw7AX4RE6UwiX0Rgz9ZMM5Vzfgrgk8KxOmsuaP8Kgqf5KWeH/LDa+ocftU7zGz1jO5L999JptFIatsdPyZXnA3xM+QjzBW8w=="; - }, function(f, c) { - Object.defineProperty(c, "__esModule", { - value: !0 - }); - c.P8 = "HttpRequesterSymbol"; - }, function(f, c) { - Object.defineProperty(c, "__esModule", { - value: !0 - }); - c.B8 = "FtlDataParserSymbol"; - }, function(f, c) { - Object.defineProperty(c, "__esModule", { - value: !0 - }); - c.H$ = "NetworkMonitorSymbol"; - }, function(f, c) { - Object.defineProperty(c, "__esModule", { - value: !0 - }); - c.gca = "XhrFactorySymbol"; - }, function(f, c) { - Object.defineProperty(c, "__esModule", { - value: !0 - }); - c.L9 = "LegacyLogBatcherSymbol"; - }, function(f, c) { - Object.defineProperty(c, "__esModule", { - value: !0 - }); - c.K6 = "AppLogSinkSymbol"; - }, function(f, c) { - Object.defineProperty(c, "__esModule", { - value: !0 - }); - c.maa = "PboLogblobCommandSymbol"; - }, function(f, c, a) { - var g, m, p; - - function b() { - this.Js = new g.rza(); - } - - function d(a) { - var c; - c = m.q8.call(this) || this; - c.jo = a; - c.Js = new b(); - return c; - } - - function h(a, b) { - this.jo = a; - this.profile = b; - this.aM = this.profile.Yg.id; - this.IA = {}; - } + }, function(g, d, a) { + var c, h, k; - function l(a) { - this.jo = a; - this.vB = p.ga(0); - this.IA = []; + function b(a) { + return function() { + for (var b = Array(this.length), f = 0; f < this.length; ++f) b[f] = a.call(this, f); + return b; + }; } - Object.defineProperty(c, "__esModule", { + Object.defineProperty(d, "__esModule", { value: !0 }); - g = a(660); - m = a(659); - p = a(42); - l.prototype.wp = function(a) { - this.vB = this.vB.add(this.jo.measure([a.message])); - this.IA.push(a); - }; - l.prototype.Yw = function(a) { - var b, c; - b = this; - this.vB = p.ga(0); - c = []; - this.IA.forEach(function(d) { - 0 > a.indexOf(d.id) && (b.vB = b.vB.add(b.jo.measure([d.message])), c.push(d)); - }); - this.IA = c; - }; - pa.Object.defineProperties(l.prototype, { - size: { - configurable: !0, - enumerable: !0, + c = a(14); + g = a(8); + a = a(47); + h = new g.Console("FRAGMENTS", "media|asejs"); + k = function() { + function a(a, b) { + this.Cb = a; + this.Wh = b; + } + a.prototype.toJSON = function() { + return { + startPts: 1E3 * this.Ib / this.Ka.ha, + endPts: 1E3 * this.Nb / this.Ka.ha, + duration: 1E3 * this.Ah / this.Ka.ha, + index: this.index + }; + }; + return a; + }(); + d.XPa = k; + a.ai(k.prototype, { + index: a.L({ get: function() { - return this.vB; + return this.Wh; } - }, - ld: { - configurable: !0, - enumerable: !0, + }), + Ib: a.L({ get: function() { - return this.IA; + return this.Cb.GG + this.Cb.Zq[this.Wh]; } - } - }); - h.prototype.wp = function(a, b, c, d) { - var g; - g = this.ld[a]; - g || (g = new l(this.jo), this.ld[a] = g); - g.wp({ - id: b, - url: c, - message: d - }); - }; - h.prototype.Yw = function(a) { - var c; - for (var b in this.ld) { - c = this.ld[b]; - c && (c.Yw(a), 0 === c.ld.length && delete this.ld[b]); - } - }; - pa.Object.defineProperties(h.prototype, { - ld: { - configurable: !0, - enumerable: !0, + }), + Nb: a.L({ get: function() { - return this.IA; + return this.Ib + this.Cb.km[this.Wh]; } - } + }), + Ah: a.L({ + get: function() { + return this.Cb.km[this.Wh]; + } + }), + Ka: a.L({ + get: function() { + return this.Cb.Ka; + } + }), + ha: a.L({ + get: function() { + return this.Cb.ha; + } + }), + WG: a.L({ + get: function() { + return this.Cb.Ka.vd; + } + }), + XG: a.L({ + get: function() { + return this.Cb.Ka.ha; + } + }), + U: a.L({ + get: function() { + return Math.floor(1E3 * this.Ib / this.ha); + } + }), + ea: a.L({ + get: function() { + return Math.floor(1E3 * (this.Ib + this.Ah) / this.ha); + } + }), + duration: a.L({ + get: function() { + return Math.floor(1E3 * this.Ah / this.ha); + } + }) }); - c.lAa = h; - oa(d, m.q8); - d.prototype.encode = function(a) { - return { - accountId: a.aM, - messages: this.tUa(a.ld) + g = function() { + function a(a, b, f, c) { + this.P = a; + this.length = f.Sd.length; + this.St = f.ha; + this.km = f.Sd; + this.wP = c && c.KD; + this.cma = c && c.$D; + this.gO = b; + this.Oaa = this.Paa = this.bka = void 0; + this.GG = f.Rl; + this.Zq = new Uint32Array(this.length + 1); + if (this.length) { + for (b = a = 0; b < this.length; ++b) this.Zq[b] = a, a += this.km[b]; + this.Zq[b] = a; + this.ea = this.Of(this.length); + this.ep = Math.floor((this.ea - this.U) / this.length); + } + } + a.prototype.Of = function(a) { + return Math.floor(1E3 * (this.GG + this.Zq[a]) / this.ha); + }; + a.prototype.mC = function(a) { + return a < this.length - 1 ? this.Of(a + 1) : this.ea; + }; + a.prototype.Sd = function(a) { + return this.mC(a) - this.Of(a); }; - }; - d.prototype.decode = function(a) { - return { - aM: a.accountId, - ld: this.wSa(a.messages) + a.prototype.get = function(a) { + return new k(this, a); + }; + a.prototype.Dj = function(a, b, f) { + if (0 === this.length || a < this.Of(0)) return -1; + a = Math.max(a, b || 0); + for (var c = 0, d = this.length - 1, g, m; d >= c;) + if (g = c + (d - c >> 1), m = this.Of(g), a < m) d = g - 1; + else if (a >= m + this.Sd(g)) c = g + 1; + else { + for (; b && g < this.length && this.Of(g) < b;) ++g; + return g < this.length ? g : f ? this.length - 1 : -1; + } + return f ? this.length - 1 : -1; + }; + a.prototype.t3 = function(a, b, f) { + a = this.Dj(a, b, f); + return 0 <= a ? this.get(a) : void 0; + }; + a.prototype.L1 = function(a, b) { + var f, c; + f = Math.floor(b * this.ha / 1E3); + b = Math.min(a + Math.ceil(b / this.ep), this.length); + c = this.Zq[b] - this.Zq[a]; + if (c > f) { + for (; c >= f;) --b, c -= this.km[b]; + return b - a + 1; + } + for (; c < f && b <= this.length;) c += this.km[b], ++b; + return b - a; + }; + a.prototype.subarray = function(b, f) { + c(void 0 === b || 0 <= b && b < this.length); + c(void 0 === f || f > b && f <= this.length); + return new a(this.P, this.Ka, { + ha: this.ha, + Rl: this.GG + this.Zq[b], + Sd: this.km.subarray(b, f) + }, this.wP && { + KD: this.wP.subarray(b, f + 1), + $D: this.cma + }); + }; + a.prototype.forEach = function(a) { + for (var b = 0; b < this.length; ++b) a(this.get(b), b, this); + }; + a.prototype.map = function(a) { + for (var b = [], f = 0; f < this.length; ++f) b.push(a(this.get(f), f, this)); + return b; }; - }; - d.prototype.tUa = function(a) { - var b, c, d, g; - b = this; - c = {}; - d = {}; - for (g in a) d.lN = [], a[g].ld.forEach(function(a) { - return function(c) { - 0 < c.id && a.lN.push(b.Js.encode(c)); - }; - }(d)), c[g] = d.lN, d = { - lN: d.lN + a.prototype.reduce = function(a, b) { + for (var f = 0; f < this.length; ++f) b = a(b, this.get(f), f, this); + return b; }; - return c; - }; - d.prototype.wSa = function(a) { - var b, c, d, g; - b = this; - c = {}; - d = {}; - for (g in a) d.YP = new l(this.jo), a[g].forEach(function(a) { - return function(c) { - a.YP.wp(b.Js.decode(c)); + a.prototype.toJSON = function() { + return { + length: this.length, + averageFragmentDuration: this.ep }; - }(d)), c[g] = d.YP, d = { - YP: d.YP }; - return c; - }; - c.kAa = d; - b.prototype.encode = function(a) { - return { - id: a.id, - url: a.url, - message: this.Js.encode(a.message) + a.prototype.dump = function() { + var b; + h.trace("TrackFragments: " + this.length + ", averageFragmentDuration: " + this.ep + "ms"); + for (var a = 0; a < this.length; ++a) { + b = this.get(a); + h.trace("TrackFragments: " + a + ": [" + b.U + "-" + b.ea + "]"); + } }; - }; - b.prototype.decode = function(a) { - var b; - b = this.Js.decode(a.message); - return { - id: a.id, - url: a.url, - message: b + a.prototype.iRa = function() { + for (var a = 0, b = 0; b < this.length; b++) a = Math.max(this.km[b], a); + return this.bka = a; }; - }; - }, function(f, c) { - Object.defineProperty(c, "__esModule", { - value: !0 - }); - c.t$ = "MessageQueueSymbol"; - }, function(f, c) { - Object.defineProperty(c, "__esModule", { - value: !0 - }); - c.Z9 = "LogblobSenderSymbol"; - }, function(f, c) { - Object.defineProperty(c, "__esModule", { - value: !0 - }); - c.C7 = "CryptoKeysSymbol"; - }, function(f, c) { - Object.defineProperty(c, "__esModule", { - value: !0 - }); - c.B7 = "CryptoDeviceIdSymbol"; - }, function(f, c) { - Object.defineProperty(c, "__esModule", { - value: !0 - }); - c.T7 = "DeviceProviderSymbol"; - }, function(f, c) { - function a(b, c, h) { - if (null != h) { - if (0 < h(b, c)) throw a.yha(b, c); - } else if (b.Gk && 0 < b.Gk(c)) throw a.yha(b, c); - this.start = b; - this.end = c; - } - Object.defineProperty(c, "__esModule", { - value: !0 - }); - a.yha = function(a, c) { - return new RangeError("end [" + c + "] must be >= start [" + a + "]"); - }; - c.Yaa = a; - }, function(f, c) { - Object.defineProperty(c, "__esModule", { - value: !0 - }); - c.S7 = "DeviceIdGeneratorSymbol"; - }, function(f, c) { - Object.defineProperty(c, "__esModule", { - value: !0 - }); - c.w$ = "MslClientSendStrategySymbol"; - }, function(f, c) { - Object.defineProperty(c, "__esModule", { - value: !0 - }); - c.b7 = "BookmarkConfigParserSymbol"; - }, function(f, c) { - Object.defineProperty(c, "__esModule", { - value: !0 - }); - c.c7 = "BookmarkConfigSymbol"; - }, function(f, c) { - Object.defineProperty(c, "__esModule", { - value: !0 - }); - c.U7 = "DiskStorageRegistrySymbol"; - }, function(f, c) { - Object.defineProperty(c, "__esModule", { - value: !0 - }); - c.R7 = "DeepErrorUtilsSymbol"; - }, function(f, c) { - Object.defineProperty(c, "__esModule", { - value: !0 - }); - c.s$ = "MemoryStorageSymbol"; - }, function(f, c) { - Object.defineProperty(c, "__esModule", { - value: !0 - }); - c.P9 = "LocalStorageSymbol"; - }, function(f, c) { - Object.defineProperty(c, "__esModule", { - value: !0 - }); - c.A7 = "CorruptedStorageValidatorConfigSymbol"; - }, function(f, c) { - Object.defineProperty(c, "__esModule", { - value: !0 - }); - c.MU = "Storage"; - }, function(f, c) { - Object.defineProperty(c, "__esModule", { - value: !0 - }); - c.EJ = "IndexedDBConfigSymbol"; - }, function(f, c) { - Object.defineProperty(c, "__esModule", { - value: !0 - }); - c.Naa = "PresentationAPISymbol"; - }, function(f, c) { - Object.defineProperty(c, "__esModule", { - value: !0 - }); - c.m$ = "MediaCapabilitiesLogHelperSymbol"; - }, function(f, c) { - Object.defineProperty(c, "__esModule", { - value: !0 - }); - c.n$ = "MediaCapabilitiesSymbol"; - }, function(f, c, a) { - var d, h, l; - - function b(a, b) { - var c; - c = h.XI.call(this, a, b, d.FC.Audio) || this; - c.config = a; - c.u2 = b; - c.type = d.au.du; - return c; - } - Object.defineProperty(c, "__esModule", { - value: !0 + return a; + }(); + d.Mha = g; + a.ai(g.prototype, { + Rl: a.L({ + get: function() { + return this.GG + this.Zq[0]; + } + }), + Rpa: a.L({ + get: function() { + return this.GG + this.Zq[this.length]; + } + }), + U: a.L({ + get: function() { + return this.Of(0); + } + }), + SS: a.L({ + get: function() { + return this.bka || this.iRa(); + } + }), + Ka: a.L({ + get: function() { + return this.gO; + } + }), + ha: a.L({ + get: function() { + return this.St; + } + }) }); - d = a(34); - h = a(366); - l = a(64); - a(124); - new(a(96)).Cu(); - oa(b, h.XI); - b.prototype.YH = function() { - return !1; + d.a7 = b; + g.prototype.EAa = b(g.prototype.Of); + d.BBb = function(a) { + return "[" + Array(a.length).map(function(b, f) { + return a[f].toString(); + }).join(",") + "]"; }; - b.prototype.Iv = function() { + }, function(g) { + var d; + d = function() { var a; - a = {}; - a[l.gk.wJ] = "mp4a.40.2"; - a[l.gk.bT] = "mp4a.40.5"; - this.config().PZ && (a[l.gk.ZI] = "ec-3"); - this.config().OZ && (a[l.gk.tS] = "ec-3"); - this.config().iF && (a[l.gk.$I] = "ec-3"); - return a; - }; - b.prototype.Y_ = function() { - return this.config().kM; + a = new Uint32Array([0, 0]); + a.set(new Uint32Array([16843009]), 1); + return 0 !== a[0]; + }() ? function(a, b, c) { + new Uint8Array(a.buffer, a.byteOffset, a.byteLength).set(new Uint8Array(b.buffer, b.byteOffset, b.byteLength), c * a.byteLength / a.length); + } : function(a, b, c) { + a.set(b, c); + }; + g.M = { + from: function(a, b, c, d) { + a = new a(b.length); + for (var g = "function" === typeof c, f = 0; f < b.length; ++f) a[f] = g ? c.call(d, b[f], f, b) : b[f]; + return a; + }, + set: d }; - b.SB = "audio/mp4;codecs={0};"; - c.DS = b; - }, function(f, c) { - function a() {} - Object.defineProperty(c, "__esModule", { - value: !0 - }); - a.H8 = /^hevc-main/; - a.G8 = /^hevc-hdr-|hevc-dv/; - a.Mo = /^hevc-hdr-/; - a.Ff = /^hevc-dv/; - a.qJ = /-h264/; - a.yr = /^vp9-/; - a.bS = /^heaac/; - a.zva = /ddplus-2/; - a.Ava = /ddplus-5/; - a.Bva = /ddplus-atmos/; - c.il = a; - }, function(f, c, a) { - var d, h, l; + }, function(g) { + var a, b; - function b(a, b, c) { - this.config = a; - this.u2 = b; - this.O = c; - this.w2 = {}; - this.w2[d.FC.Audio] = "audio"; - this.w2[d.FC.$ba] = "video"; + function d(a, b, d) { + return function(f, c, g, k) { + var m; + g = g || d.BYTES_PER_ELEMENT; + if (f + c * g > this.byteLength) { + m = new d(c); + m.set(a.call(this, f, c - 1, g, k)); + m[c - 1] = b.call(this, f + (c - 1 * g), k); + return m; + } + return a.call(this, f, c, g, k); + }; } - Object.defineProperty(c, "__esModule", { - value: !0 - }); - d = a(34); - f = a(96); - h = a(365); - l = new f.Cu().format; - b.prototype.jO = function() { - return this.iTa(this.Y_()); - }; - b.prototype.Jp = function(a) { - return this.u2.isTypeSupported(a); - }; - b.prototype.P0 = function() { - this.Tm = []; - this.Gt = []; - this.config().yoa && this.Gt.push(h.il.H8); - this.config().xoa && this.Gt.push(h.il.G8); - this.config().zoa && this.Gt.push(h.il.yr); - this.Gt = this.Gt.concat([h.il.bS, h.il.qJ]); - !this.config().PZ && this.Tm.push(h.il.zva); - !this.config().OZ && this.Tm.push(h.il.Ava); - !this.config().iF && this.Tm.push(h.il.Bva); - !this.config().lUa && this.Tm.push(/prk$/); - this.config().yoa || this.config().gUa || this.Tm.push(h.il.H8); - this.config().xoa || this.config().fUa || this.Tm.push(h.il.G8); - this.config().zoa || this.config().rUa || this.Tm.push(h.il.yr); - }; - b.prototype.h_ = function(a) { - var b; - b = this; - return a.filter(function(a) { - for (var c = Na(b.Gt), d = c.next(); !d.done; d = c.next()) - if (d.value.test(a)) return !0; - c = Na(b.Tm); - for (d = c.next(); !d.done; d = c.next()) - if (d.value.test(a)) return !1; - a = b.O3[a]; - d = ""; - if (a) return Array.isArray(a) && (d = 1 < a.length ? " " + a[1] : "", a = a[0]), a = l("{0}/mp4;codecs={1};{2}", b.w2[b.O], a, d), b.Jp(a); - }); - }; - b.prototype.iTa = function(a) { - var b; - b = {}; - this.P0(); - this.h_(a).forEach(function(a) { - return b[a] = 1; - }); - return Object.keys(b); + a = { + LC: function(a, b, d, f, g) { + var c; + c = new Uint8Array(d); + f = f || 1; + for (var k = 0; k < d; ++k, b += f) c[k] = a.getUint8(b, g); + return c; + }, + NR: function(a, b, d, f, g) { + var c; + c = new Uint16Array(d); + f = f || 2; + for (var k = 0; k < d; ++k, b += f) c[k] = a.getUint16(b, g); + return c; + }, + KC: function(a, b, d, f, g) { + var c; + c = new Uint32Array(d); + f = f || 4; + for (var k = 0; k < d; ++k, b += f) c[k] = a.getUint32(b, g); + return c; + }, + r4: function(a, b, d, f, g) { + var c; + c = new Int8Array(d); + f = f || 1; + for (var k = 0; k < d; ++k, b += f) c[k] = a.getInt8(b, g); + return c; + }, + p4: function(a, b, d, f, g) { + var c; + c = new Int16Array(d); + f = f || 2; + for (var k = 0; k < d; ++k, b += f) c[k] = a.getInt16(b, g); + return c; + }, + q4: function(a, b, d, f, g) { + var c; + c = new Int32Array(d); + f = f || 4; + for (var k = 0; k < d; ++k, b += f) c[k] = a.getInt32(b, g); + return c; + }, + y6a: function() { + var c, g; + if (DataView.prototype && DataView.prototype.KC && !b) { + try { + c = new ArrayBuffer(4); + g = new DataView(c); + g.LC(0, 4, 1); + } catch (k) { + return; + } + try { + c = new ArrayBuffer(4); + g = new DataView(c); + g.LC(1, 2, 2); + } catch (k) { + DataView.prototype.LC = d(DataView.prototype.LC, DataView.prototype.getUint8, Uint8Array); + DataView.prototype.NR = d(DataView.prototype.NR, DataView.prototype.getUint16, Uint16Array); + DataView.prototype.KC = d(DataView.prototype.KC, DataView.prototype.getUint32, Uint32Array); + DataView.prototype.r4 = d(DataView.prototype.r4, DataView.prototype.getInt8, Int8Array); + DataView.prototype.p4 = d(DataView.prototype.p4, DataView.prototype.getInt16, Int16Array); + DataView.prototype.q4 = d(DataView.prototype.q4, DataView.prototype.getInt32, Int32Array); + } + a.cab = function(a, b, c, d, g) { + return a.LC(b, c, d || 1, g); + }; + a.aab = function(a, b, c, d, g) { + return a.NR(b, c, d || 2, g); + }; + a.bab = function(a, b, c, d, g) { + return a.KC(b, c, d || 4, g); + }; + a.EEb = function(a, b, c, d, g) { + return a.r4(b, c, d || 1, g); + }; + a.CEb = function(a, b, c, d, g) { + return a.p4(b, c, d || 2, g); + }; + a.DEb = function(a, b, c, d, g) { + return a.q4(b, c, d || 4, g); + }; + b = !0; + } + } }; - pa.Object.defineProperties(b.prototype, { - O3: { - configurable: !0, - enumerable: !0, - get: function() { - this.Aea || (this.Aea = this.Iv()); - return this.Aea; + b = !1; + g.M = a; + }, function(g, d, a) { + (function() { + var A3n, p, m, r, u, x, v, l, y5u, J5u, u5u; + + function c(a, b, f) { + var r3n; + r3n = 2; + while (r3n !== 5) { + switch (r3n) { + case 2: + b = b.pa ? b.pa.za : 0; + return a.HYa ? (a = x(a.GYa, f.rl - f.nf, 1), b * (1 - a)) : b * a.sV / 100; + break; + } } } - }); - c.XI = b; - }, function(f, c) { - Object.defineProperty(c, "__esModule", { - value: !0 - }); - c.n7 = "CapabilityDetectorFactorySymbol"; - }, function(f, c) { - Object.defineProperty(c, "__esModule", { - value: !0 - }); - c.w8 = "ExtraPlatformInfoProviderSymbol"; - }, function(f, c) { - Object.defineProperty(c, "__esModule", { - value: !0 - }); - c.s7 = "CdnThroughputTracker"; - }, function(f, c) { - Object.defineProperty(c, "__esModule", { - value: !0 - }); - c.Jba = "ThroughputTrackerConfigSymbol"; - }, function(f, c) { - Object.defineProperty(c, "__esModule", { - value: !0 - }); - c.Pba = "TransitionLoggerSymbol"; - }, function(f, c) { - Object.defineProperty(c, "__esModule", { - value: !0 - }); - c.aca = "VideoPlayerFactorySymbol"; - }, function(f, c) { - Object.defineProperty(c, "__esModule", { - value: !0 - }); - c.qba = "SegmentConfigFactorySymbol"; - }, function(f, c) { - Object.defineProperty(c, "__esModule", { - value: !0 - }); - c.WT = "MomentObserverFactory"; - }, function(f, c) { - Object.defineProperty(c, "__esModule", { - value: !0 - }); - c.VT = "MomentFactorySymbol"; - }, function(f, c, a) { - var d; - function b(a, b, c, d, f, r) { - this.level = a; - this.Ck = b; - this.timestamp = c; - this.message = d; - this.li = f; - this.index = void 0 === r ? 0 : r; - this.bza = { - 0: "F", - 1: "E", - 2: "W", - 3: "I", - 4: "T", - 5: "D" - }; - } - Object.defineProperty(c, "__esModule", { - value: !0 - }); - d = a(7); - b.prototype.lI = function(a, b) { - var c; - c = "" + this.message; - this.li.forEach(function(d) { - c += d.tx(a, b); - }); - return (this.timestamp.qa(d.Ma) / 1E3).toFixed(3) + "|" + this.index + "|" + (this.bza[this.level] || this.level) + "|" + this.Ck + "| " + c; - }; - c.T9 = b; - }, function(f, c) { - Object.defineProperty(c, "__esModule", { - value: !0 - }); - c.EU = "PrioritizedSetOfListsSymbol"; - c.LDa = "PrioritizedSetOfListsFactorySymbol"; - c.Oaa = "PrioritizedSetOfSetsFactorySymbol"; - }, function(f, c) { - Object.defineProperty(c, "__esModule", { - value: !0 - }); - c.Iba = "ThrottleSymbol"; - }, function(f, c) { - Object.defineProperty(c, "__esModule", { - value: !0 - }); - c.jhb = function() {}; - c.v$ = "MseConfigSymbol"; - }, function(f, c) { - Object.defineProperty(c, "__esModule", { - value: !0 - }); - c.Q7 = "DecoderTimeoutPathologistSymbol"; - }, function(f, c) { - Object.defineProperty(c, "__esModule", { - value: !0 - }); - c.D7 = "CsvEncoderSymbol"; - }, function(f, c, a) { - var h, l, g, m, p; + function b(a, b, f) { + var D3n, c, d, g; + D3n = 2; + while (D3n !== 3) { + switch (D3n) { + case 4: + return c; + break; + case 1: + D3n = f ? 5 : 9; + break; + case 2: + D3n = 1; + break; + case 5: + a.some(function(a) { + var T3n, f; + T3n = 2; + while (T3n !== 6) { + switch (T3n) { + case 2: + f = a.b; + a = a.m; + T3n = 4; + break; + case 4: + T3n = b <= f ? 3 : 9; + break; + case 9: + d = f; + c = g = a; + return !1; + break; + case 3: + return c = g && f !== d ? g + (a - g) / (f - d) * (b - d) : a, !0; + break; + } + } + }); + D3n = 4; + break; + case 9: + a.some(function(a) { + var o3n; + o3n = 2; + while (o3n !== 5) { + switch (o3n) { + case 2: + c = a.m; + return b <= a.b; + break; + } + } + }); + D3n = 4; + break; + } + } + } - function b() {} + function k(a, b) { + var Y3n; + Y3n = 2; + while (Y3n !== 1) { + switch (Y3n) { + case 4: + d.call(this, a, b); + Y3n = 2; + break; + Y3n = 1; + break; + case 2: + d.call(this, a, b); + Y3n = 1; + break; + } + } + } - function d(a, b) { - this.is = a; - this.Ak = b; - } - Object.defineProperty(c, "__esModule", { - value: !0 - }); - f = a(1); - h = a(0); - l = a(2); - g = a(20); - m = a(153); - p = a(5); - d.prototype.st = function(a, b, c) { - var d, g, h, f; - d = this; - if (b) - if (c) { - g = c.AA; - h = c.prefix; - f = c.no; - this.Ls(b, function(b, c) { - if (!f || d.is.uf(c)) a[(h || "") + (g ? b.toLowerCase() : b)] = c; - }); - } else this.Ls(b, function(b, c) { - a[b] = c; - }); - return a; + function d(a, b) { + var O3n; + O3n = 2; + while (O3n !== 9) { + switch (O3n) { + case 2: + this.VF = null; + this.K = a; + this.aka = b; + this.Gxa = function(a, b) { + var J3n; + J3n = 2; + while (J3n !== 1) { + switch (J3n) { + case 2: + return this.Mka(a, b); + break; + case 4: + return this.Mka(a, b); + break; + J3n = 1; + break; + } + } + }.bind(this); + this.Hxa = function(a, b) { + var W3n; + W3n = 2; + while (W3n !== 1) { + switch (W3n) { + case 2: + return this.Nka(a, b); + break; + case 4: + return this.Nka(a, b); + break; + W3n = 1; + break; + } + } + }.bind(this); + O3n = 9; + break; + } + } + } + A3n = 2; + while (A3n !== 24) { + y5u = "1SIYb"; + y5u += "ZrN"; + y5u += "J"; + y5u += "Cp"; + y5u += "9"; + J5u = "med"; + J5u += "i"; + J5u += "a|as"; + J5u += "e"; + J5u += "js"; + u5u = "ASEJS_PR"; + u5u += "E"; + u5u += "DICT"; + u5u += "OR"; + switch (A3n) { + case 12: + d.prototype.sZ = function(a) { + var G3n, b, f; + G3n = 2; + while (G3n !== 9) { + switch (G3n) { + case 3: + return a; + break; + case 2: + b = this.K; + p.Na(this.VF) ? f = a * (100 - b.sV) / 100 : (f = this.VF, f = a < 2 * f ? a / 2 : a - f); + b.x6 && this.aka ? (b = this.aka, a = Math.max(a < 2 * b ? a / 2 : a - b, f)) : a = f; + G3n = 3; + break; + } + } + }; + k.prototype = Object.create(d.prototype); + k.prototype.fSa = function(a, f) { + var P3n, c, d; + P3n = 2; + while (P3n !== 8) { + switch (P3n) { + case 3: + p.isArray(f) && (d = b(f, a.rl - a.nf, c.G0)); + return d; + break; + case 2: + c = this.K; + d = f ? c.E1 : c.F0; + f = f ? c.F1 : c.H0; + P3n = 3; + break; + } + } + }; + A3n = 20; + break; + case 7: + x = m.n6a; + v = m.o6a; + l = m.Imb; + d.prototype.fE = function(a) { + var i3n; + i3n = 2; + while (i3n !== 1) { + switch (i3n) { + case 4: + this.VF = a; + i3n = 2; + break; + i3n = 1; + break; + case 2: + this.VF = a; + i3n = 1; + break; + } + } + }; + A3n = 12; + break; + case 2: + p = a(11); + a(13); + A3n = 4; + break; + case 19: + k.prototype.Nka = function(a, b) { + var L3n, f; + L3n = 2; + while (L3n !== 3) { + switch (L3n) { + case 2: + f = this.FVa(a, this.K); + a = a.pa ? a.pa.za * (100 - this.fSa(b, f)) / 100 | 0 : 0; + return this.sZ(a); + break; + } + } + }; + k.prototype.FVa = function(a, b) { + var B3n, f, c; + B3n = 2; + while (B3n !== 9) { + switch (B3n) { + case 2: + f = !1; + c = b.sH; + a.$n ? f = !0 : b.gaa && a.pa && a.pa.za < c ? f = !0 : a.qs && (f = !0); + return f; + break; + } + } + }; + Object.create(k.prototype); + A3n = 16; + break; + case 20: + k.prototype.Mka = function(a, b) { + var z3n; + z3n = 2; + while (z3n !== 1) { + switch (z3n) { + case 2: + return c(this.K, a, b); + break; + case 4: + return c(this.K, a, b); + break; + z3n = 1; + break; + } + } + }; + A3n = 19; + break; + case 4: + new(a(8)).Console(u5u, J5u); + m = a(59); + r = m.MB; + u = m.w_a; + A3n = 7; + break; + case 16: + f.prototype = Object.create(d.prototype); + f.prototype.Mka = function(a, b) { + var n3n; + n3n = 2; + while (n3n !== 1) { + switch (n3n) { + case 2: + return c(this.K, a, b); + break; + case 4: + return c(this.K, a, b); + break; + n3n = 1; + break; + } + } + }; + f.prototype.Nka = function(a, b) { + var e3n, f, c, d; + e3n = 2; + while (e3n !== 13) { + switch (e3n) { + case 2: + f = a.pa && a.pa.za || 0; + c = Math.pow(Math.max(1 - (a[this.nja] && a[this.nja].za || f) / this.ZQa, 0), this.YQa); + d = b.rl - b.nf; + e3n = 3; + break; + case 9: + return this.sZ((1 - a.Cjb) * f); + break; + case 3: + e3n = a.Cjb ? 9 : 8; + break; + case 8: + this.Xia ? c *= x(this.Xia, d, c) : this.HVa ? (b = x(this.Zia, d, 1), d = x(this.Yia, d, 1), c = b * c + d * (1 - c)) : c = x(l(this.Zia, this.Yia, c), d, 1); + a = this.YZ && a[this.YZ] && a[this.YZ].Oy; + void 0 !== a && (a = v(this.CTa, a), c = Math.min(c * a, 1)); + H4DD.d5u(0); + return this.sZ(H4DD.p5u(f, 1, c)); + break; + } + } + }; + g.M = function(a, b) { + var m3n, f3n, o5u; + m3n = 2; + while (m3n !== 5) { + o5u = "m"; + o5u += "a"; + o5u += "n"; + o5u += "if"; + o5u += "old"; + switch (m3n) { + case 4: + return new k(a, b); + break; + case 2: + f3n = a.f7; + m3n = f3n === o5u ? 1 : 4; + break; + case 1: + return new f(a, b); + break; + case 14: + return new k(a, b); + break; + m3n = 5; + break; + } + } + }; + y5u; + A3n = 24; + break; + } + } + + function f(a, b) { + var y3n; + y3n = 2; + while (y3n !== 7) { + switch (y3n) { + case 5: + this.ZQa = r(a.zm.threshold || 6E3, 1, 1E5); + this.YQa = r(a.zm.gamma || 1, .1, 10); + this.nja = a.zm.filter; + this.HVa = !!a.zm.simpleScaling; + a.zm.niqrfilter && a.zm.niqrcurve && (this.YZ = a.zm.niqrfilter, this.CTa = u(a.zm.niqrcurve, 1, 0, 4)); + y3n = 7; + break; + case 2: + d.call(this, a, b); + Array.isArray(a.zm.curves) ? (this.Zia = u(a.zm.curves[0], 0, 0, 1), this.Yia = u(a.zm.curves[1], 0, 0, 1)) : this.Xia = u(a.zm.curves, 0, 0, 1); + y3n = 5; + break; + } + } + } + }()); + }, function(g, d, a) { + var c; + + function b() { + this.tj = void 0; + this.Pt = 0; + } + c = a(11); + b.prototype.Ee = function() { + return 0 !== this.Pt && this.tj ? { + p25: this.tj.Fk, + p50: this.tj.cj, + p75: this.tj.Gk, + c: this.Pt + } : null; }; - d.prototype.Ls = function(a, b) { - for (var c in a) a.hasOwnProperty(c) && b(c, a[c]); + b.prototype.Lh = function(a) { + if (!(!c.Na(a) && c.has(a, "p25") && c.has(a, "p50") && c.has(a, "p75") && c.has(a, "c") && c.isFinite(a.p25) && c.isFinite(a.p50) && c.isFinite(a.p75) && c.isFinite(a.c))) return this.tj = void 0, this.Pt = 0, !1; + this.tj = { + Fk: a.p25, + cj: a.p50, + Gk: a.p75 + }; + this.Pt = a.c; }; - d.prototype.ws = function(a, b) { - if (a.length == b.length) { - for (var c = a.length; c--;) - if (a[c] != b[c]) return !1; - return !0; - } - return !1; + b.prototype.get = function() { + return { + PT: this.tj, + Nl: this.Pt + }; }; - d.prototype.HPa = function(a, b) { - if (a.length != b.length) return !1; - a.sort(); - b.sort(); - for (var c = a.length; c--;) - if (a[c] !== b[c]) return !1; - return !0; + b.prototype.set = function(a, b) { + this.tj = a; + this.Pt = b; }; - d.prototype.yc = function(a) { - var b, c, d; - if (a) { - b = a.stack; - c = a.number; - d = a.message; - d || (d = "" + a); - b ? (a = "" + b, 0 !== a.indexOf(d) && (a = d + "\n" + a)) : a = d; - c && (a += "\nnumber:" + c); - return a; - } + b.prototype.reset = function() { + this.tj = void 0; + this.Pt = 0; }; - d.prototype.IZ = function(a, b) { - var c, d; - a = a.target.keyStatuses.entries(); - for (c = a.next(); !c.done;) d = c.value[0], c = c.value[1], b && b(d, c), c = a.next(); + b.prototype.toString = function() { + return "IQRHist(" + this.tj + "," + this.Pt + ")"; }; - d.prototype.PWa = function(a) { - var c, d, g; - d = new b(); - this.is.uf(a.code) ? (c = parseInt(a.code, 10), d.tb = 1 <= c && 9 >= c ? l.u.eu + c : l.u.eu) : d.tb = l.u.te; - try { - g = a.message.match(/\((\d*)\)/)[1]; - d.Sc = this.Ak.yF(g, 4); - } catch (w) {} - d.za = this.yc(a); - return d; + g.M = b; + }, function(g) { + function d() {} + + function a(a) { + this.rla = a; + this.Zk = []; + this.ye = null; + } + d.prototype.clear = function() { + this.ld = null; + this.size = 0; }; - d.prototype.Fja = function(a) { - var c, d; - c = new b(); - try { - d = parseInt(a.systemCode, 10); - c.tb = l.u.eu + a.errorCode.code; - c.Sc = this.Ak.yF(d, 4); - c.za = this.yc(a); - } catch (z) {} - return c; + d.prototype.find = function(a) { + var d; + for (var b = this.ld; null !== b;) { + d = this.sj(a, b.data); + if (0 === d) return b.data; + b = b.Xe(0 < d); + } + return null; }; - d.prototype.getFunctionName = function(a) { - return (a = /function (.{1,})\(/.exec(a.toString())) && 1 < a.length ? a[1] : ""; + d.prototype.lowerBound = function(a) { + var f; + for (var b = this.ld, d = this.iterator(), g = this.sj; null !== b;) { + f = g(a, b.data); + if (0 === f) return d.ye = b, d; + d.Zk.push(b); + b = b.Xe(0 < f); + } + for (f = d.Zk.length - 1; 0 <= f; --f) + if (b = d.Zk[f], 0 > g(a, b.data)) return d.ye = b, d.Zk.length = f, d; + d.Zk.length = 0; + return d; }; - d.prototype.Hja = function(a) { - return this.getFunctionName(a.constructor); + d.prototype.upperBound = function(a) { + for (var b = this.lowerBound(a), d = this.sj; null !== b.data() && 0 === d(b.data(), a);) b.next(); + return b; }; - d.prototype.eoa = function(a) { - var b, c; - b = this; - c = ""; - this.is.Gn(a) || this.is.Kfa(a) ? c = Array.prototype.reduce.call(a, function(a, b) { - return a + (32 <= b && 128 > b ? String.fromCharCode(b) : "."); - }, "") : this.is.Xg(a) ? c = a : this.Ls(a, function(a, d) { - c += (c ? ", " : "") + "{" + a + ": " + (b.is.Wy(d) ? b.getFunctionName(d) || "function" : d) + "}"; - }); - return "[" + this.Hja(a) + " " + c + "]"; + d.prototype.min = function() { + var a; + a = this.ld; + if (null === a) return null; + for (; null !== a.left;) a = a.left; + return a.data; }; - d.prototype.createElement = function(a, b, c, d) { - var g; - g = p.cd.createElement(a); - b && (g.style.cssText = b); - c && (g.innerHTML = c); - d && this.Ls(d, function(a, b) { - g.setAttribute(a, b); - }); - return g; + d.prototype.max = function() { + var a; + a = this.ld; + if (null === a) return null; + for (; null !== a.right;) a = a.right; + return a.data; }; - d.prototype.pVa = function(a, b) { - return function(c) { - return c[a] === b; - }; + d.prototype.iterator = function() { + return new a(this); }; - d.prototype.KP = function(a) { - var b; - b = {}; - (a || "").split("&").forEach(function(a) { - var c; - a = a.trim(); - c = a.indexOf("="); - 0 <= c ? b[decodeURIComponent(a.substr(0, c)).toLowerCase()] = decodeURIComponent(a.substr(c + 1)) : b[a.toLowerCase()] = void 0; - }); - return b; + d.prototype.Lc = function(a) { + for (var b = this.iterator(), d; null !== (d = b.next());) a(d); }; - a = d; - a = f.__decorate([h.N(), f.__param(0, h.j(g.rd)), f.__param(1, h.j(m.MI))], a); - c.Tba = a; - }, function(f, c) { - Object.defineProperty(c, "__esModule", { - value: !0 - }); - c.u7 = "ClockConfigSymbol"; - }, function(f, c) { - var a; - Object.defineProperty(c, "__esModule", { - value: !0 - }); - (function(a) { - a[a.kma = 0] = "licenseStarted"; - a[a.Qpa = 1] = "recievedLicenseChallenge"; - a[a.Ppa = 2] = "recievedLicense"; - a[a.Rpa = 3] = "recievedRenewalChallengeComplete"; - a[a.Spa = 4] = "recievedRenewalLicenseComplete"; - a[a.Tpa = 5] = "recievedRenewalLicenseFailed"; - a[a.Y6a = 6] = "recievedIndivChallengeComplete"; - a[a.Z6a = 7] = "recievedIndivLicenseComplete"; - a[a.yfa = 8] = "addLicenseComplete"; - a[a.Cfa = 9] = "addRenewalLicenseComplete"; - a[a.Dfa = 10] = "addRenewalLicenseFailed"; - }(a = c.jn || (c.jn = {}))); - c.NTa = function(b) { - switch (b) { - case a.kma: - return "lg"; - case a.Qpa: - return "lc"; - case a.Ppa: - return "lr"; - case a.Rpa: - return "renew_lc"; - case a.Spa: - return "renew_lr"; - case a.Tpa: - return "renew_lr_failed"; - case a.Y6a: - return "ilc"; - case a.Z6a: - return "ilr"; - case a.yfa: - return "ld"; - case a.Cfa: - return "renew_ld"; - case a.Dfa: - return "renew_ld_failed"; - default: - return "unknown"; - } + a.prototype.data = function() { + return null !== this.ye ? this.ye.data : null; }; - }, function(f, c) { - Object.defineProperty(c, "__esModule", { - value: !0 - }); - c.p8 = "EmeSessionSymbol"; - c.o8 = "EmeSessionFactorySymbol"; - }, function(f, c) { - Object.defineProperty(c, "__esModule", { - value: !0 - }); - c.X7 = "DrmProviderSymbol"; - }, function(f, c) { - Object.defineProperty(c, "__esModule", { - value: !0 - }); - c.x9 = "IdentityProviderSymbol"; - }, function(f, c) { - Object.defineProperty(c, "__esModule", { - value: !0 - }); - c.G$ = "NetworkMonitorConfigSymbol"; - }, function(f, c) { - Object.defineProperty(c, "__esModule", { - value: !0 - }); - c.FU = "QueryStringDataProviderSymbol"; - }, function(f, c, a) { - var b; - b = a(98); - c.Dla = function(a) { - return !b.isArray(a) && 0 <= a - parseFloat(a) + 1; + a.prototype.next = function() { + var a; + if (null === this.ye) { + a = this.rla.ld; + null !== a && this.ika(a); + } else if (null === this.ye.right) { + do + if (a = this.ye, this.Zk.length) this.ye = this.Zk.pop(); + else { + this.ye = null; + break; + } while (this.ye.right === a); + } else this.Zk.push(this.ye), this.ika(this.ye.right); + return null !== this.ye ? this.ye.data : null; }; - }, function(f, c, a) { - var b, d, h, l, g, m; - b = this && this.__extends || function(a, b) { - function c() { - this.constructor = a; - } - for (var d in b) b.hasOwnProperty(d) && (a[d] = b[d]); - a.prototype = null === b ? Object.create(b) : (c.prototype = b.prototype, new c()); + a.prototype.cz = function() { + var a; + if (null === this.ye) { + a = this.rla.ld; + null !== a && this.cka(a); + } else if (null === this.ye.left) { + do + if (a = this.ye, this.Zk.length) this.ye = this.Zk.pop(); + else { + this.ye = null; + break; + } while (this.ye.left === a); + } else this.Zk.push(this.ye), this.cka(this.ye.left); + return null !== this.ye ? this.ye.data : null; }; - d = a(396); - h = a(98); - f = a(75); - l = a(74); - c.Gw = function() { - for (var a = [], b = 0; b < arguments.length; b++) a[b - 0] = arguments[b]; - 1 === a.length && h.isArray(a[0]) && (a = a[0]); - return function(b) { - return b.af(new g(a)); - }; + a.prototype.ika = function(a) { + for (; null !== a.left;) this.Zk.push(a), a = a.left; + this.ye = a; }; - c.g4a = function() { - for (var a = [], b = 0; b < arguments.length; b++) a[b - 0] = arguments[b]; - 1 === a.length && h.isArray(a[0]) && (a = a[0]); - b = a.shift(); - return new d.A8(b, null).af(new g(a)); + a.prototype.cka = function(a) { + for (; null !== a.right;) this.Zk.push(a), a = a.right; + this.ye = a; }; - g = function() { - function a(a) { - this.V2 = a; - } - a.prototype.call = function(a, b) { - return b.subscribe(new m(a, this.V2)); - }; + g.M = d; + }, function(g, d, a) { + var c, h; + + function b(a) { + this.K = { + yJ: a.maxc || 25, + B1: a.c || .5, + Msb: a.w || 15E3, + ik: a.b || 5E3 + }; + c.call(this, this.K.Msb, this.K.ik); + this.DG(); + } + c = a(130); + h = a(207).TDigest; + b.prototype = Object.create(c.prototype); + b.prototype.shift = function() { + var a; + a = this.ED(0); + c.prototype.shift.call(this); + null !== a && (this.Kd.push(a, 1), this.Ut = !0); return a; - }(); - m = function(a) { - function c(b, c) { - a.call(this, b); - this.destination = b; - this.V2 = c; - } - b(c, a); - c.prototype.b3 = function() { - this.wR(); - }; - c.prototype.vi = function() { - this.wR(); - }; - c.prototype.Yb = function() { - this.wR(); - }; - c.prototype.qf = function() { - this.wR(); - }; - c.prototype.wR = function() { - var a; - a = this.V2.shift(); - a ? this.add(l.Oq(this, a)) : this.destination.complete(); - }; - return c; - }(f.So); - }, function(f, c) { - c.cG = function(a) { - return a instanceof Date && !isNaN(+a); }; - }, function(f, c, a) { - var b, d, h, l; - b = this && this.__extends || function(a, b) { - function c() { - this.constructor = a; - } - for (var d in b) b.hasOwnProperty(d) && (a[d] = b[d]); - a.prototype = null === b ? Object.create(b) : (c.prototype = b.prototype, new c()); + b.prototype.flush = function() { + var a; + a = this.get(); + this.Kd.push(a, 1); + this.Ut = !0; + c.prototype.reset.call(this); + return a; }; - d = a(74); - f = a(75); - c.HA = function(a, b, c) { - void 0 === c && (c = Number.POSITIVE_INFINITY); - return function(d) { - "number" === typeof b && (c = b, b = null); - return d.af(new h(a, b, c)); + b.prototype.get = function() { + return this.asa(); + }; + b.prototype.Qr = function() { + var a; + a = this.asa(); + return { + min: a.min, + p10: a.p8, + p25: a.Fk, + p50: a.cj, + p75: a.Gk, + p90: a.q8, + max: a.max, + centroidSize: a.d_a, + sampleSize: a.aE, + centroids: a.ag }; }; - h = function() { - function a(a, b, c) { - void 0 === c && (c = Number.POSITIVE_INFINITY); - this.zf = a; - this.hj = b; - this.JY = c; - } - a.prototype.call = function(a, b) { - return b.subscribe(new l(a, this.zf, this.hj, this.JY)); + b.prototype.asa = function() { + var a; + if (0 === this.Kd.size()) return null; + a = this.Kd.gg([0, .1, .25, .5, .75, .9, 1]); + if (a[2] === a[4]) return null; + if (this.Ut || !this.Gb) this.Ut = !1, this.Gb = { + min: a[0], + p8: a[1], + Fk: a[2], + cj: a[3], + Gk: a[4], + q8: a[5], + max: a[6], + gg: this.Kd.gg.bind(this.Kd), + d_a: this.Kd.size(), + aE: this.Kd.n, + ag: this.w8a(), + Qr: this.Qr.bind(this) }; + return this.Gb; + }; + b.prototype.w8a = function() { + var a; + if (0 === this.Kd.size()) return null; + if (!this.Ut && this.Gb) return this.Gb.centroids; + a = this.Kd.gg([.25, .75]); + if (a[0] === a[1]) return null; + this.Kd.size() > this.K.yJ && this.Kd.Ar(); + a = this.Kd.Fz(!1).map(function(a) { + return { + mean: a.oe, + n: a.n + }; + }); + return JSON.stringify(a); + }; + b.prototype.size = function() { + return this.Kd.size(); + }; + b.prototype.toString = function() { + return "btdtput(" + this.rB + "," + this.dc + "," + this.Vg + "): " + this.Kd.summary(); + }; + b.prototype.DG = function() { + this.Kd = new h(this.K.B1, this.K.yJ); + }; + g.M = b; + }, function(g, d, a) { + var c, h; + + function b(a, b, d, g) { + c.call(this, d, g); + this.So = new h(a); + this.jTa = b; + } + c = a(130); + h = a(208); + b.prototype = Object.create(c.prototype); + b.prototype.shift = function() { + var a; + a = this.ED(0); + c.prototype.shift.call(this); + null !== a && this.So.Y_(a); return a; - }(); - c.ghb = h; - l = function(a) { - function c(b, c, d, g) { - void 0 === g && (g = Number.POSITIVE_INFINITY); - a.call(this, b); - this.zf = c; - this.hj = d; - this.JY = g; - this.bA = !1; - this.buffer = []; - this.index = this.active = 0; - } - b(c, a); - c.prototype.tg = function(a) { - this.active < this.JY ? this.VKa(a) : this.buffer.push(a); - }; - c.prototype.VKa = function(a) { - var b, c; - c = this.index++; - try { - b = this.zf(a, c); - } catch (v) { - this.destination.error(v); - return; - } - this.active++; - this.NV(b, a, c); - }; - c.prototype.NV = function(a, b, c) { - this.add(d.Oq(this, a, b, c)); - }; - c.prototype.qf = function() { - this.bA = !0; - 0 === this.active && 0 === this.buffer.length && this.destination.complete(); - }; - c.prototype.Ew = function(a, b, c, d) { - this.hj ? this.eJa(a, b, c, d) : this.destination.next(b); - }; - c.prototype.eJa = function(a, b, c, d) { - var g; - try { - g = this.hj(a, b, c, d); - } catch (w) { - this.destination.error(w); - return; - } - this.destination.next(g); + }; + b.prototype.flush = function() { + var a; + a = this.get(); + this.So.Y_(a); + c.prototype.reset.call(this); + return a; + }; + b.prototype.get = function() { + var a; + a = this.y4(); + return { + aE: this.HC(), + PT: a, + Oy: a.cj ? (a.Gk - a.Fk) / a.cj : void 0 }; - c.prototype.vi = function(a) { - var b; - b = this.buffer; - this.remove(a); - this.active--; - 0 < b.length ? this.tg(b.shift()) : 0 === this.active && this.bA && this.destination.complete(); + }; + b.prototype.HC = function() { + return this.So.HC(); + }; + b.prototype.y4 = function() { + return this.So.HC() < this.jTa ? { + Fk: void 0, + cj: void 0, + Gk: void 0, + aE: void 0, + gg: void 0 + } : { + Fk: this.So.lu(25), + cj: this.So.lu(50), + Gk: this.So.lu(75), + aE: this.So.HC(), + gg: this.So.lu.bind(this.So) }; - return c; - }(f.So); - c.hhb = l; - }, function(f, c, a) { - var b; - b = a(224); - c.IE = function() { - return b.pt(1); }; - }, function(f, c, a) { - var h, l; + b.prototype.toString = function() { + return "biqr(" + this.rB + "," + this.dc + "," + this.Vg + ")"; + }; + g.M = b; + }, function(g, d, a) { + var h; function b(a) { - var b; - b = a.value; - a = a.Ce; - a.closed || (a.next(b), a.complete()); + this.rx = a; + this.reset(); } - function d(a) { - var b; - b = a.VZ; - a = a.Ce; - a.closed || a.error(b); + function c(a) { + this.Vg = new b(a); + this.kd = 0; + this.zb = null; } - h = this && this.__extends || function(a, b) { - function c() { - this.constructor = a; - } - for (var d in b) b.hasOwnProperty(d) && (a[d] = b[d]); - a.prototype = null === b ? Object.create(b) : (c.prototype = b.prototype, new c()); + h = a(11); + b.prototype.HO = function(a, b) { + this.Da += a; + this.jm += a; + this.Lb += b; + this.vg.push({ + d: a, + bu: b + }); }; - l = a(76); - f = function(a) { - function c(b, c) { - a.call(this); - this.P3 = b; - this.ha = c; + b.prototype.vG = function() { + var a; + for (; this.jm > this.rx;) { + a = this.vg.shift(); + this.Lb -= a.bu; + this.jm -= a.d; } - h(c, a); - c.create = function(a, b) { - return new c(a, b); + }; + b.prototype.reset = function() { + this.vg = []; + this.Da = null; + this.jm = this.Lb = 0; + }; + b.prototype.setInterval = function(a) { + this.rx = a; + this.vG(); + }; + b.prototype.start = function(a) { + h.Na(this.Da) && (this.Da = a); + }; + b.prototype.add = function(a, b, c) { + h.Na(this.Da) && (this.Da = b); + b > this.Da && this.HO(b - this.Da, 0); + this.HO(c > this.Da ? c - this.Da : 0, a); + this.vG(); + }; + b.prototype.get = function() { + return { + za: Math.floor(8 * this.Lb / this.jm), + Kg: 0 }; - c.prototype.Ve = function(a) { - var c, g, h; - c = this; - g = this.P3; - h = this.ha; - if (null == h) this.hp ? a.closed || (a.next(this.value), a.complete()) : g.then(function(b) { - c.value = b; - c.hp = !0; - a.closed || (a.next(b), a.complete()); - }, function(b) { - a.closed || a.error(b); - }).then(null, function(a) { - l.root.setTimeout(function() { - throw a; - }); - }); - else if (this.hp) { - if (!a.closed) return h.lb(b, 0, { - value: this.value, - Ce: a - }); - } else g.then(function(d) { - c.value = d; - c.hp = !0; - a.closed || a.add(h.lb(b, 0, { - value: d, - Ce: a - })); - }, function(b) { - a.closed || a.add(h.lb(d, 0, { - VZ: b, - Ce: a - })); - }).then(null, function(a) { - l.root.setTimeout(function() { - throw a; - }); - }); - }; - return c; - }(a(11).pa); - c.Qaa = f; - }, function(f, c, a) { - var b, d, h, l, g, m, p, r, u, k, z, w; - b = this && this.__extends || function(a, b) { - function c() { - this.constructor = a; - } - for (var d in b) b.hasOwnProperty(d) && (a[d] = b[d]); - a.prototype = null === b ? Object.create(b) : (c.prototype = b.prototype, new c()); }; - d = a(98); - h = a(400); - l = a(399); - g = a(395); - m = a(849); - p = a(97); - r = a(848); - u = a(157); - k = a(11); - z = a(405); - w = a(229); - f = function(a) { - function c(b, c) { - a.call(this, null); - this.X_a = b; - this.ha = c; - } - b(c, a); - c.create = function(a, b) { - if (null != a) { - if ("function" === typeof a[w.observable]) return a instanceof k.pa && !b ? a : new c(a, b); - if (d.isArray(a)) return new p.$t(a, b); - if (l.Ila(a)) return new g.Qaa(a, b); - if ("function" === typeof a[u.iterator] || "string" === typeof a) return new m.$ya(a, b); - if (h.sla(a)) return new r.Sta(a, b); - } - throw new TypeError((null !== a && typeof a || a) + " is not observable"); - }; - c.prototype.Ve = function(a) { - var b, c; - b = this.X_a; - c = this.ha; - return null == c ? b[w.observable]().subscribe(a) : b[w.observable]().subscribe(new z.O$(a, c, 0)); - }; - return c; - }(k.pa); - c.A8 = f; - }, function(f, c, a) { - f = a(396); - c.from = f.A8.create; - }, function(f, c, a) { - f = a(97); - c.of = f.$t.of; - }, function(f, c) { - c.Ila = function(a) { - return a && "function" !== typeof a.subscribe && "function" === typeof a.then; + c.prototype.reset = function() { + this.Vg.reset(); + this.kd = 0; + this.zb = null; }; - }, function(f, c) { - c.sla = function(a) { - return a && "number" === typeof a.length; + c.prototype.add = function(a, b, c) { + !h.Na(this.zb) && c > this.zb && (b > this.zb && (this.kd += b - this.zb), this.zb = null); + this.Vg.add(a, b - this.kd, c - this.kd); }; - }, function(f, c) { - c.Pfa = function(a, b) { - var r; - for (var c = 0, h = b.length; c < h; c++) - for (var f = b[c], g = Object.getOwnPropertyNames(f.prototype), m = 0, p = g.length; m < p; m++) { - r = g[m]; - a.prototype[r] = f.prototype[r]; - } + c.prototype.start = function(a) { + !h.Na(this.zb) && a > this.zb && (this.kd += a - this.zb, this.zb = null); + this.Vg.start(a - this.kd); }; - }, function(f, c) { - c.bD = function() { - return function(a) { - this.gab = a; - }; - }(); - }, function(f, c, a) { - var b; - b = a(402); - f = function() { - function a() { - this.XH = []; - } - a.prototype.Bma = function() { - this.XH.push(new b.bD(this.ha.now())); - return this.XH.length - 1; - }; - a.prototype.Cma = function(a) { - var c; - c = this.XH; - c[a] = new b.bD(c[a].gab, this.ha.now()); - }; - return a; - }(); - c.yba = f; - }, function(f, c, a) { - var b, d, h, l, g, m, p; - b = this && this.__extends || function(a, b) { - function c() { - this.constructor = a; - } - for (var d in b) b.hasOwnProperty(d) && (a[d] = b[d]); - a.prototype = null === b ? Object.create(b) : (c.prototype = b.prototype, new c()); + c.prototype.stop = function(a) { + this.zb = h.Na(this.zb) ? a : Math.min(a, this.zb); }; - f = a(158); - d = a(11); - h = a(55); - l = a(70); - g = a(861); - a = function(a) { - function c(b, c) { - a.call(this); - this.source = b; - this.vR = c; - this.Tr = 0; - this.fL = !1; - } - b(c, a); - c.prototype.Ve = function(a) { - return this.hO().subscribe(a); - }; - c.prototype.hO = function() { - var a; - a = this.LL; - if (!a || a.Ze) this.LL = this.vR(); - return this.LL; - }; - c.prototype.connect = function() { - var a; - a = this.Br; - a || (this.fL = !1, a = this.Br = new l.tj(), a.add(this.source.subscribe(new m(this.hO(), this))), a.closed ? (this.Br = null, a = l.tj.EMPTY) : this.Br = a); - return a; - }; - c.prototype.jQ = function() { - return g.jQ()(this); - }; - return c; - }(d.pa); - c.v7 = a; - a = a.prototype; - c.BPa = { - Jw: { - value: null - }, - Tr: { - value: 0, - writable: !0 - }, - LL: { - value: null, - writable: !0 - }, - Br: { - value: null, - writable: !0 - }, - Ve: { - value: a.Ve - }, - fL: { - value: a.fL, - writable: !0 - }, - hO: { - value: a.hO - }, - connect: { - value: a.connect - }, - jQ: { - value: a.jQ - } + c.prototype.get = function() { + return this.Vg.get(); }; - m = function(a) { - function c(b, c) { - a.call(this, b); - this.Hk = c; + c.prototype.setInterval = function(a) { + this.Vg.setInterval(a); + }; + g.M = { + yub: b, + tGa: c + }; + }, function(g, d, a) { + var k; + + function b(a, b) { + this.reset(); + this.Vnb(a, b); + } + + function c(a, b) { + this.Cka = b; + this.Ala = 1.25; + this.setInterval(a); + this.reset(); + } + + function h(a, b) { + this.At = new c(a, b); + this.kd = 0; + this.zb = null; + } + k = a(11); + b.prototype.Vnb = function(a, b) { + this.Lw = Math.pow(.5, 1 / a); + this.fG = a; + this.Ct = k.ja(b) ? b : 0; + }; + b.prototype.reset = function(a) { + a && a.za && k.ja(a.za) ? a.Kg && k.ja(a.Kg) ? (this.Uh = this.Ct, this.Gi = a.za, this.Po = a.Kg + a.za * a.za) : (this.Uh = this.Ct, this.Gi = a.za, this.Po = a.za * a.za) : this.Po = this.Gi = this.Uh = 0; + }; + b.prototype.add = function(a) { + var b; + if (k.ja(a)) { + this.Uh++; + b = this.Uh > this.Ct ? this.Lw : 1 - 1 / this.Uh; + this.Gi = b * this.Gi + (1 - b) * a; + this.Po = b * this.Po + (1 - b) * a * a; } - b(c, a); - c.prototype.Yb = function(b) { - this.rp(); - a.prototype.Yb.call(this, b); - }; - c.prototype.qf = function() { - this.Hk.fL = !0; - this.rp(); - a.prototype.qf.call(this); + }; + b.prototype.get = function() { + var a, b, c; + if (0 === this.Uh) return { + za: 0, + Kg: 0 }; - c.prototype.rp = function() { - var a, b; - a = this.Hk; - if (a) { - this.Hk = null; - b = a.Br; - a.Tr = 0; - a.LL = null; - a.Br = null; - b && b.unsubscribe(); - } + a = this.Gi; + b = this.Po; + if (0 === this.Ct) c = 1 - Math.pow(this.Lw, this.Uh), a = a / c, b = b / c; + c = a * a; + return { + za: Math.floor(a), + Kg: Math.floor(b > c ? b - c : 0) }; - return c; - }(f.eFa); - (function() { - function a(a) { - this.Hk = a; - } - a.prototype.call = function(a, b) { - var c; - c = this.Hk; - c.Tr++; - a = new p(a, c); - b = b.subscribe(a); - a.closed || (a.wm = c.connect()); - return b; + }; + b.prototype.Ee = function() { + var a; + if (0 === this.Uh) return null; + a = { + a: Math.round(this.Gi), + s: Math.round(this.Po) }; + this.Uh < this.Ct && (a.c = this.Uh); + this.Ct || (a.n = this.Uh); return a; - }()); - p = function(a) { - function c(b, c) { - a.call(this, b); - this.Hk = c; - } - b(c, a); - c.prototype.rp = function() { - var a, b; - a = this.Hk; - if (a) { - this.Hk = null; - b = a.Tr; - 0 >= b ? this.wm = null : (a.Tr = b - 1, 1 < b ? this.wm = null : (b = this.wm, a = a.Br, this.wm = null, !a || b && a !== b || a.unsubscribe())); - } else this.wm = null; - }; - return c; - }(h.zh); - }, function(f, c, a) { - var b, d, h, l, g; - b = this && this.__extends || function(a, b) { - function c() { - this.constructor = a; - } - for (var d in b) b.hasOwnProperty(d) && (a[d] = b[d]); - a.prototype = null === b ? Object.create(b) : (c.prototype = b.prototype, new c()); }; - f = a(55); - d = a(226); - c.Eqb = function(a, b) { - void 0 === b && (b = 0); - return function(c) { - return c.af(new h(a, b)); - }; + b.prototype.Lh = function(a) { + if (k.Na(a) || !k.has(a, "a") || !k.has(a, "s") || !k.isFinite(a.a) || !k.isFinite(a.s)) return this.Po = this.Gi = this.Uh = 0, !1; + this.Gi = a.a; + this.Po = a.s; + this.Ct ? k.has(a, "c") && k.ja(a.c) ? this.Uh = a.c : k.has(a, "n") && k.ja(a.n) ? (this.Uh = a.n, a = 1 - Math.pow(this.Lw, a.n), this.Gi /= a, this.Po /= a) : this.Uh = this.Ct : k.has(a, "n") && k.ja(a.n) ? this.Uh = a.n : this.Uh = 16 * this.fG; + return !0; }; - h = function() { - function a(a, b) { - void 0 === b && (b = 0); - this.ha = a; - this.Rc = b; - } - a.prototype.call = function(a, b) { - return b.subscribe(new l(a, this.ha, this.Rc)); - }; - return a; - }(); - c.Xhb = h; - l = function(a) { - function c(b, c, d) { - void 0 === d && (d = 0); - a.call(this, b); - this.ha = c; - this.Rc = d; - } - b(c, a); - c.Xa = function(a) { - a.notification.observe(a.destination); - this.unsubscribe(); - }; - c.prototype.J4 = function(a) { - this.add(this.ha.lb(c.Xa, this.Rc, new g(a, this.destination))); - }; - c.prototype.tg = function(a) { - this.J4(d.Notification.$Y(a)); - }; - c.prototype.Yb = function(a) { - this.J4(d.Notification.tha(a)); - }; - c.prototype.qf = function() { - this.J4(d.Notification.WY()); - }; - return c; - }(f.zh); - c.O$ = l; - g = function() { - return function(a, b) { - this.notification = a; - this.destination = b; - }; - }(); - c.Whb = g; - }, function(f, c, a) { - var b, d, h, l, g, m, p; - b = this && this.__extends || function(a, b) { - function c() { - this.constructor = a; - } - for (var d in b) b.hasOwnProperty(d) && (a[d] = b[d]); - a.prototype = null === b ? Object.create(b) : (c.prototype = b.prototype, new c()); + c.prototype.setInterval = function(a) { + this.fG = a; + this.Lw = -Math.log(.5) / a; }; - f = a(158); - d = a(866); - h = a(70); - l = a(405); - g = a(408); - m = a(407); - a = function(a) { - function c(b, c, d) { - void 0 === b && (b = Number.POSITIVE_INFINITY); - void 0 === c && (c = Number.POSITIVE_INFINITY); - a.call(this); - this.ha = d; - this.qb = []; - this.ol = 1 > b ? 1 : b; - this.kLa = 1 > c ? 1 : c; - } - b(c, a); - c.prototype.next = function(b) { - var c; - c = this.Cda(); - this.qb.push(new p(c, b)); - this.ffa(); - a.prototype.next.call(this, b); - }; - c.prototype.Ve = function(a) { - var b, c, d; - b = this.ffa(); - c = this.ha; - if (this.closed) throw new g.cy(); - this.NF ? d = h.tj.EMPTY : this.Ze ? d = h.tj.EMPTY : (this.wq.push(a), d = new m.xba(this, a)); - c && a.add(a = new l.O$(a, c)); - for (var c = b.length, f = 0; f < c && !a.closed; f++) a.next(b[f].value); - this.NF ? a.error(this.S5) : this.Ze && a.complete(); - return d; - }; - c.prototype.Cda = function() { - return (this.ha || d.Eq).now(); - }; - c.prototype.ffa = function() { - for (var a = this.Cda(), b = this.ol, c = this.kLa, d = this.qb, g = d.length, h = 0; h < g && !(a - d[h].time < c);) h++; - g > b && (h = Math.max(h, g - b)); - 0 < h && d.splice(0, h); - return d; - }; - return c; - }(f.yh); - c.YC = a; - p = function() { - return function(a, b) { - this.time = a; - this.value = b; - }; - }(); - }, function(f, c, a) { - var b; - b = this && this.__extends || function(a, b) { - function c() { - this.constructor = a; - } - for (var d in b) b.hasOwnProperty(d) && (a[d] = b[d]); - a.prototype = null === b ? Object.create(b) : (c.prototype = b.prototype, new c()); + c.prototype.reset = function(a) { + this.Da = this.Gc = null; + this.oP = this.Cka || 0; + a && k.isFinite(a.za) ? (this.XF = 0, this.Gi = a.za) : this.Gi = this.XF = 0; }; - f = function(a) { - function c(b, c) { - a.call(this); - this.Bo = b; - this.Ce = c; - this.closed = !1; - } - b(c, a); - c.prototype.unsubscribe = function() { - var a, b; - if (!this.closed) { - this.closed = !0; - a = this.Bo; - b = a.wq; - this.Bo = null; - !b || 0 === b.length || a.Ze || a.closed || (a = b.indexOf(this.Ce), -1 !== a && b.splice(a, 1)); - } + c.prototype.start = function(a) { + k.Na(this.Gc) && (this.Da = this.Gc = a); + }; + c.prototype.add = function(a, b, c) { + var f, d; + k.Na(this.Gc) && (this.Da = this.Gc = b); + this.Gc = Math.min(this.Gc, b); + this.Da < this.Gc + this.oP && c > this.Gc + this.oP && 0 < this.Da - this.Gc && (this.Gi = this.XF / (this.Da - this.Gc)); + b = Math.max(c - b, 1); + a = 8 * a / b; + f = this.Lw; + d = c > this.Da ? c : this.Da; + this.Gi = this.Gi * (d > this.Da ? Math.exp(-f * (d - this.Da)) : 1) + a * (1 - Math.exp(-f * b)) * (c > d ? Math.exp(-f * (d - c)) : 1); + this.Da = d; + this.XF += a * b; + }; + c.prototype.get = function(a) { + var b; + a = Math.max(a, this.Da); + b = this.Gi * Math.exp(-this.Lw * (a - this.Da)); + 0 === this.oP ? (a = 1 - Math.exp(-this.Lw * (a - this.Gc)), 0 < a && (b /= a)) : null !== this.Da && this.Da <= this.Gc + this.oP && (a = this.XF / Math.max(this.Da - this.Gc, 1), b = b < a * this.Ala && b > a / this.Ala ? b : a); + return { + za: Math.floor(b) }; - return c; - }(a(70).tj); - c.xba = f; - }, function(f, c) { - var a; - a = this && this.__extends || function(a, c) { - function b() { - this.constructor = a; - } - for (var d in c) c.hasOwnProperty(d) && (a[d] = c[d]); - a.prototype = null === c ? Object.create(c) : (b.prototype = c.prototype, new b()); }; - f = function(b) { - function c() { - var a; - a = b.call(this, "object unsubscribed"); - this.name = a.name = "ObjectUnsubscribedError"; - this.stack = a.stack; - this.message = a.message; - } - a(c, b); - return c; - }(Error); - c.cy = f; - }, function(f, c) { - c.Ns = { - e: {} + c.prototype.toString = function() { + return "ewmav(" + this.fG + "," + this.Cka + ")"; }; - }, function(f, c) { - c.wb = function(a) { - return "function" === typeof a; + h.prototype.setInterval = function(a) { + this.At.setInterval(a); }; - }, function(f, c) { - c.Pd = function(a) { - return null != a && "object" === typeof a; + h.prototype.reset = function(a) { + this.At.reset(a); + this.kd = 0; + this.zb = null; }; - }, function(f, c) { - function a(a) { - this.value = a; - } - Object.defineProperty(c, "__esModule", { - value: !0 - }); - a.empty = function() { - return a.of(void 0); + h.prototype.start = function(a) { + !k.Na(this.zb) && a > this.zb && (this.kd += a - this.zb, this.zb = null); + this.At.start(a - this.kd); }; - a.of = function(b) { - return new a(b); + h.prototype.add = function(a, b, c) { + !k.Na(this.zb) && c > this.zb && (this.kd += b > this.zb ? b - this.zb : 0, this.zb = null); + this.At.add(a, b - this.kd, c - this.kd); }; - a.prototype.UG = function(a) { - return void 0 === this.value ? a instanceof Function ? a() : a : this.value; + h.prototype.stop = function(a) { + this.zb = Math.max(k.Na(this.At.Da) ? 0 : this.At.Da + this.kd, k.Na(this.zb) ? a : Math.min(this.zb, a)); }; - a.prototype.map = function(b) { - return void 0 === this.value ? a.empty() : a.of(b(this.value)); + h.prototype.get = function(a) { + return this.At.get((k.Na(this.zb) ? a : this.zb) - this.kd); }; - c.PC = a; - }, function(f, c) { - Object.defineProperty(c, "__esModule", { - value: !0 - }); - c.W7 = "DrmDataFactorySymbol"; - }, function(f, c) { - function a() {} - Object.defineProperty(c, "__esModule", { - value: !0 - }); - a.LCa = "PSK"; - a.Hza = "MGK"; - a.tgb = "MGK_WITH_FALLBACK"; - a.sgb = "MGK_JWE"; - a.agb = "JWEJS_RSA"; - a.E9 = "JWK_RSA"; - a.bgb = "JWK_RSAES"; - c.LI = a; - }, function(f, c, a) { - var h; + h.prototype.toString = function() { + return this.At.toString(); + }; + g.M = { + uGa: b, + zub: c, + sGa: h + }; + }, function(g, d, a) { + g.M = { + QDb: a(375), + vIb: a(374), + dub: a(740), + cub: a(373), + eub: a(372), + lda: a(733) + }; + }, function(g, d, a) { + var f, p, m, r, u, x; - function b(a, b) { - this.$f = b; - this.nq = Math.floor(a); - this.display = this.nq + " " + this.$f.name; + function b(a) { + var b; + b = a.DZ; + this.K = a; + this.Pg = p.gd.HAVE_NOTHING; + this.OA = a.OA; + a = new u(this.OA); + this.HG = a.create("throughput-location-history", b); + this.Xq = a.create("respconn-location-history", b); + this.Nq = a.create("respconn-location-history", b); + this.bP = a.create("throughput-tdigest-history", b); + this.mO = a.create("throughput-iqr-history", b); + this.Da = null; + } + + function c(a, f, c, d, g) { + this.Mq = new b(g); + this.vm = []; + this.iTa = m.time.da() - Date.now() % 864E5; + this.Kq = null; + this.K = g; + for (a = 0; a < d; ++a) this.vm.push(new b(g)); } - function d(a, b, c) { - this.$f = a; - this.name = b; - this.Ga = c ? c : this; - h.$i(this, "base"); + function h(a, b, c) { + return f.has(a, b) ? a[b] : a[b] = c; } - Object.defineProperty(c, "__esModule", { - value: !0 - }); - h = a(49); - d.prototype.qN = function(a) { - return this.$f == a.$f; + + function k(a, f) { + var c; + this.K = a; + this.eP = f; + this.i6a(); + this.eG = new b(this.K); + this.lG(); + c = a.g2; + c && (c = { + zc: p.gd.fF, + pa: { + za: parseInt(c, 10), + Kg: 0 + }, + kg: { + za: 0, + Kg: 0 + }, + Xn: { + za: 0, + Kg: 0 + } + }, this.get = function() { + return c; + }); + } + f = a(11); + p = a(13); + d = a(28); + m = a(8); + r = d.BHa; + u = a(376).lda; + new m.Console("ASEJS_LOCATION_HISTORY", "media|asejs"); + x = { + zc: p.gd.HAVE_NOTHING + }; + b.prototype.tx = function(a, b) { + this.Pg = b; + this.HG.add(a); + this.bP.add(a); + this.Da = m.time.da(); + }; + b.prototype.Mz = function(a, b) { + this.mO.set(a, b); + }; + b.prototype.hr = function(a) { + this.Xq.add(a); + }; + b.prototype.fr = function(a) { + this.Nq.add(a); + }; + b.prototype.Ee = function() { + var a, b, c, d, g, k; + a = this.HG.Ee(); + b = this.Xq.Ee(); + c = this.Nq.Ee(); + d = this.mO.Ee(); + g = this.bP.Ee(); + if (f.Na(a) && f.Na(b) && f.Na(c)) return null; + k = { + c: this.Pg, + t: m.time.MJ(this.Da) + }; + f.Na(a) || (k.tp = a); + f.Na(b) || (k.rt = b); + f.Na(c) || (k.hrt = c); + f.Na(d) || (k.iqr = d); + f.Na(g) || (k.td = g); + return k; }; - d.prototype.toJSON = function() { - return this.name; + b.prototype.Lh = function(a) { + var b; + b = m.time.now(); + if (!(a && f.has(a, "c") && f.has(a, "t") && f.has(a, "tp") && f.isFinite(a.c) && f.isFinite(a.t)) || 0 > a.c || a.c > p.gd.fF || a.t > b || !this.HG.Lh(a.tp)) return this.Pg = p.gd.HAVE_NOTHING, this.Kq = this.Da = null, this.HG.Lh(null), this.Xq.Lh(null), this.Nq.Lh(null), !1; + this.Pg = a.c; + this.Da = m.time.yT(a.t); + this.Xq.Lh(f.has(a, "rt") ? a.rt : null); + this.Nq.Lh(f.has(a, "hrt") ? a.hrt : null); + f.has(a, "iqr") && this.mO.Lh(a.iqr); + f.has(a, "td") && this.bP.Lh(a.td); + return !0; + }; + b.prototype.get = function() { + var a, b, c, d, g, k; + a = this.K; + if (f.Na(this.Da)) return x; + b = (m.time.da() - this.Da) / 1E3; + b > a.BSa ? this.Pg = p.gd.HAVE_NOTHING : b > a.bSa && (this.Pg = Math.min(this.Pg, p.gd.Us)); + a = this.HG.get(); + c = this.Xq.get(); + d = this.Nq.get(); + g = this.mO.get(); + k = this.bP.get(); + b = { + ek: b, + zc: this.Pg, + pa: a, + kg: c, + Xn: d, + xk: g, + Tl: k + }; + a && (b.EIb = r.prototype.L8.bind(a)); + c && (b.YHb = r.prototype.L8.bind(c)); + d && (b.kFb = r.prototype.L8.bind(d)); + return b; }; - c.kK = d; - b.prototype.qa = function(a) { - return this.$f.qN(a) ? this.nq : Math.floor(this.nq * this.$f.$f / a.$f); + b.prototype.time = function() { + return this.Da; }; - b.prototype.to = function(a) { - return new b(this.qa(a), a); + b.prototype.yt = function() { + this.get(); + m.time.da(); }; - b.prototype.toString = function() { - return this.display; + c.prototype.Wh = function() { + return ((m.time.da() - this.iTa) / 1E3 / 3600 / (24 / this.vm.length) | 0) % this.vm.length; }; - b.prototype.toJSON = function() { - return { - magnitude: this.nq, - units: this.$f.name + c.prototype.Ee = function() { + var a; + a = { + g: this.Mq.Ee(), + h: this.vm.map(function(a) { + return a.Ee(); + }) }; + f.Na(this.Kq) || (a.f = m.time.MJ(this.Kq)); + return a; }; - b.prototype.add = function(a) { - return this.$ga(a); + c.prototype.Lh = function(a) { + var b, c; + if (!this.Mq.Lh(a.g)) return !1; + b = this.vm.length; + c = !1; + this.vm.forEach(function(f, d) { + c = !f.Lh(a.h[d * a.h.length / b | 0]) || c; + }); + this.Kq = f.has(a, "f") ? m.time.yT(a.f) : null; + return c; }; - b.prototype.ie = function(a) { - return this.$ga(a, function(a) { - return -a; + c.prototype.tx = function(a, b) { + this.Mq.tx(a, b); + this.vm[this.Wh()].tx(a, b); + this.Kq = null; + }; + c.prototype.Mz = function(a, b) { + this.Mq.Mz(a, b); + this.vm[this.Wh()].Mz(a, b); + }; + c.prototype.hr = function(a) { + this.Mq.hr(a); + this.vm[this.Wh()].hr(a); + }; + c.prototype.fr = function(a) { + this.Mq.fr(a); + this.vm[this.Wh()].fr(a); + }; + c.prototype.fail = function(a) { + this.Kq = a; + }; + c.prototype.get = function() { + var a, b; + if (!f.Na(this.Kq)) { + if ((m.time.da() - this.Kq) / 1E3 < this.K.aSa) return { + zc: p.gd.HAVE_NOTHING, + Vx: !0 + }; + this.Kq = null; + } + a = this.vm[this.Wh()].get(); + b = this.Mq.get(); + a = a.zc >= b.zc ? a : b; + a.Vx = !1; + return a; + }; + c.prototype.time = function() { + return this.Mq.time(); + }; + c.prototype.yt = function(a) { + this.Mq.yt(a + ": global"); + this.vm.forEach(function(b, c, d) { + f.Na(b.time()) || (c = 24 * c / d.length, b.yt(a + ": " + ((10 > c ? "0" : "") + c + "00") + "h")); }); }; - b.prototype.Gk = function(a) { - return this.qa(this.$f.Ga) - a.qa(this.$f.Ga); + k.prototype.Dja = function(a, b) { + var f; + f = this.K; + a = h(this.RA, a, {}); + return h(a, b, new c(0, 0, 0, f.Ika || 4, f)); + }; + k.prototype.lG = function() { + var a, b; + a = m.storage.get("lh"); + b = m.storage.get("gh"); + a && this.EG(a); + b && this.wVa(b); }; - b.prototype.qN = function(a) { - return 0 == this.Gk(a); + k.prototype.HZ = function() { + var a; + a = {}; + f.Lc(this.RA, function(b, c) { + f.Lc(b, function(b, f) { + h(a, c, {})[f] = b.Ee(); + }, this); + }, this); + return a; }; - b.prototype.Sla = function() { - return 0 == this.nq; + k.prototype.wVa = function(a) { + this.eG.Lh(a); }; - b.prototype.Ala = function() { - return 0 > this.nq; + k.prototype.EG = function(a) { + var b, d; + b = null; + d = this.K; + f.Lc(a, function(a, g) { + f.Lc(a, function(a, m) { + var k; + k = new c(0, 0, 0, d.Ika || 4, d); + k.Lh(a) ? (h(this.RA, g, {})[m] = k, b = !0) : f.Na(b) && (b = !1); + }, this); + }, this); + return f.Na(b) ? !0 : b; }; - b.prototype.Fla = function() { - return 0 < this.nq; + k.prototype.save = function() { + var a; + a = this.HZ(); + m.storage.set("lh", a); + m.storage.set("gh", this.eG.Ee()); + this.eP && this.eP.v$(this.eG.Ee()); }; - b.prototype.$ga = function(a, c) { - c = void 0 === c ? function(a) { - return a; - } : c; - return new b(this.qa(this.$f.Ga) + c(a.qa(this.$f.Ga)), this.$f.Ga); + k.prototype.i6a = function() { + this.RA = {}; + this.MA = this.Via = ""; + this.ug = null; }; - c.Po = b; - }, function(f, c, a) { - var h; - - function b(a) { - return function(b) { - function c(c) { - return null !== c && null !== c.target && c.target.a2(a)(b); - } - c.pna = new h.Metadata(a, b); - return c; - }; - } - - function d(a, b) { - a = a.xq; - return null !== a ? b(a) ? !0 : d(a, b) : !1; - } - Object.defineProperty(c, "__esModule", { + k.prototype.QU = function(a) { + this.Via = a; + this.ug = null; + }; + k.prototype.OU = function(a) { + this.MA = a; + this.ug = null; + }; + k.prototype.hO = function() { + f.Na(this.ug) && (this.ug = this.Dja(this.Via, this.MA)); + return this.ug; + }; + k.prototype.tx = function(a, b) { + this.hO().tx(a, b); + this.eG.tx(a, b); + }; + k.prototype.Mz = function(a, b) { + a && a.Fk && a.cj && a.Gk && (this.hO().Mz(a, b), this.eG.Mz(a, b)); + }; + k.prototype.hr = function(a) { + this.hO().hr(a); + }; + k.prototype.fr = function(a) { + this.hO().fr(a); + }; + k.prototype.fail = function(a, b) { + this.Dja(a, this.MA).fail(b); + }; + k.prototype.get = function(a, b) { + var c, d, g, m; + a = (a = this.RA[a]) ? a[this.MA] : null; + c = null; + if (a && (c = a.get(), c.zc > p.gd.HAVE_NOTHING)) return c; + if (!1 === b) return x; + d = c = null; + g = !1; + m = null; + f.Lc(this.RA, function(a) { + f.Lc(a, function(a, b) { + var f; + if (!g || b == this.MA) { + f = a.get(); + f && (!d || d <= f.zc) && (!m || d < f.zc || m < a.time()) && (d = f.zc, g = b == this.MA, m = a.time(), c = f); + } + }, this); + }, this); + return c ? c : x; + }; + k.prototype.yt = function() { + f.Lc(this.RA, function(a, b) { + f.Lc(a, function(a, f) { + a.yt(b + ":" + f); + }); + }); + }; + g.M = k; + }, function(g, d) { + Object.defineProperty(d, "__esModule", { value: !0 }); - f = a(40); - h = a(66); - c.usa = d; - c.N5 = b; - c.Lna = b(f.kr); - c.ysa = function(a) { - return function(b) { - var c; - return null !== b ? (c = b.nE[0], "string" === typeof a ? c.Td === a : a === b.nE[0].ri) : !1; + d.AHa = function(a) { + var d, g, f, p; + + function b() { + if (f) + for (var a; a = d.pop();) a(p); + } + + function c(a) { + f = !0; + p = a; + b(); + } + d = []; + return function(f) { + d.push(f); + g || (g = !0, a(c)); + b(); }; }; - }, function(f, c, a) { - var b, d; - Object.defineProperty(c, "__esModule", { + }, function(g, d) { + Object.defineProperty(d, "__esModule", { value: !0 }); - b = a(238); - d = a(237); - f = function() { - function a(a) { - this.ob = a; - this.kD = new d.jS(this.ob); - this.hV = new b.OI(this.ob); - } - a.prototype.GI = function() { - return this.kD.GI(); - }; - a.prototype.ZB = function(a, b) { - return this.kD.ZB(a, b); - }; - a.prototype.mo = function(a) { - return this.hV.mo(a); - }; - return a; - }(); - c.bu = f; - }, function(f, c, a) { - var b, d, h, l; - Object.defineProperty(c, "__esModule", { + d.Wea = "ManifestVerifyErrorFactorySymbol"; + }, function(g, d) { + Object.defineProperty(d, "__esModule", { value: !0 }); - b = a(40); - d = a(99); - h = a(66); - l = a(896); - f = function() { - function a(a, c, g, f) { - this.id = d.id(); - this.type = a; - this.Td = g; - this.name = new l.UDa(c || ""); - this.Uc = []; - a = null; - "string" === typeof f ? a = new h.Metadata(b.kr, f) : f instanceof h.Metadata && (a = f); - null !== a && this.Uc.push(a); - } - a.prototype.Eka = function(a) { - for (var b = 0, c = this.Uc; b < c.length; b++) - if (c[b].key === a) return !0; - return !1; - }; - a.prototype.isArray = function() { - return this.Eka(b.qu); - }; - a.prototype.M1a = function(a) { - return this.a2(b.qu)(a); - }; - a.prototype.Y0 = function() { - return this.Eka(b.kr); - }; - a.prototype.c1 = function() { - return this.Uc.some(function(a) { - return a.key !== b.tC && a.key !== b.qu && a.key !== b.IJ && a.key !== b.eD && a.key !== b.kr; - }); - }; - a.prototype.Ela = function() { - return this.a2(b.N$)(!0); - }; - a.prototype.XXa = function() { - return this.Y0() ? this.Uc.filter(function(a) { - return a.key === b.kr; - })[0] : null; - }; - a.prototype.aXa = function() { - return this.c1() ? this.Uc.filter(function(a) { - return a.key !== b.tC && a.key !== b.qu && a.key !== b.IJ && a.key !== b.eD && a.key !== b.kr; - }) : null; - }; - a.prototype.a2 = function(a) { - var b; - b = this; - return function(c) { - var h; - for (var d = 0, g = b.Uc; d < g.length; d++) { - h = g[d]; - if (h.key === a && h.value === c) return !0; - } - return !1; - }; - }; - return a; - }(); - c.hK = f; - }, function(f, c, a) { - var b, d, h, l; - Object.defineProperty(c, "__esModule", { + d.Rha = "TrickPlayFactorySymbol"; + }, function(g, d) { + Object.defineProperty(d, "__esModule", { value: !0 }); - b = a(59); - d = a(40); - h = a(66); - l = a(86); - f = function() { - function a(a) { - this.KGa = a; - } - a.prototype.acb = function() { - return this.KGa(); - }; + d.Nha = "TrackStreamFactorySymbol"; + }, function(g, d) { + Object.defineProperty(d, "__esModule", { + value: !0 + }); + d.Dga = "PlayerTextTrackFactorySymbol"; + }, function(g, d) { + function a(a, c) { + this.log = a; + this.yV = c; + } + Object.defineProperty(d, "__esModule", { + value: !0 + }); + a.prototype.uBa = function(a, c) { + var b; + b = this; + if (!a) return this.log.warn("There are no media streams for " + c.type + " track - " + c.Tb), []; + a = a.map(function(a) { + var f; + f = b.yV(c, c.type, a.dC, a.O, a.oc, a.size, b.T8a(a.Qc), a.QB, a.Nqa / a.Mqa, a.Fl); + f.hob(a.Pya, a.Oya); + f.Knb(a.zoa, a.Aoa, a.yoa, a.xoa); + c.Bj && (f.Bj = c.Bj); + a.QB && (f.Me = a.QB); + return f; + }); + a.sort(function(a, b) { + return a.O - b.O; + }); return a; + }; + a.prototype.T8a = function(a) { + return a.reduce(function(a, b) { + a[b.nna] = b.url; + return a; + }, {}); + }; + d.UM = a; + }, function(g, d, a) { + var b, c, h; + b = a(213); + c = a(113); + d = a(49); + h = a(768); + a = d(function(a, f) { + return 1 === a ? c(f) : b(a, h(a, [], f)); + }); + g.M = a; + }, function(g) { + g.M = function(d, a) { + for (var b = 0, c = a.length, g = Array(c); b < c;) g[b] = d(a[b]), b += 1; + return g; + }; + }, function(g, d, a) { + var b, c, h, k, f; + d = a(113); + b = a(215); + c = a(771); + h = !{ + toString: null + }.propertyIsEnumerable("toString"); + k = "constructor valueOf isPrototypeOf toString propertyIsEnumerable hasOwnProperty toLocaleString".split(" "); + f = function() { + return arguments.propertyIsEnumerable("length"); }(); - c.HT = f; - c.j = function(a) { - return function(c, g, f) { - var m; - if (void 0 === a) throw Error(b.GFa(c.name)); - m = new h.Metadata(d.tC, a); - "number" === typeof f ? l.qx(c, g, f, m) : l.fI(c, g, m); + a = d("function" !== typeof Object.keys || f ? function(a) { + var d, g, p, x; + if (Object(a) !== a) return []; + p = []; + g = f && c(a); + for (d in a) !b(d, a) || g && "length" === d || (p[p.length] = d); + if (h) + for (g = k.length - 1; 0 <= g;) { + d = k[g]; + if (x = b(d, a)) { + a: { + for (x = 0; x < p.length;) { + if (p[x] === d) { + x = !0; + break a; + } + x += 1; + } + x = !1; + } + x = !x; + } + x && (p[p.length] = d); + --g; + } + return p; + } : function(a) { + return Object(a) !== a ? [] : Object.keys(a); + }); + g.M = a; + }, function(g) { + g.M = { + Ac: function() { + return this.VL["@@transducer/init"](); + }, + result: function(d) { + return this.VL["@@transducer/result"](d); + } + }; + }, function(g) { + g.M = Array.isArray || function(d) { + return null != d && 0 <= d.length && "[object Array]" === Object.prototype.toString.call(d); + }; + }, function(g, d, a) { + var b, c; + b = a(388); + c = a(778); + g.M = function(a, d, f) { + return function() { + var g, m; + if (0 === arguments.length) return f(); + g = Array.prototype.slice.call(arguments, 0); + m = g.pop(); + if (!b(m)) { + for (var k = 0; k < a.length;) { + if ("function" === typeof m[a[k]]) return m[a[k]].apply(m, g); + k += 1; + } + if (c(m)) return d.apply(null, g)(m); + } + return f.apply(this, arguments); }; }; - }, function(f, c, a) { - var b; - Object.defineProperty(c, "__esModule", { + }, function(g, d, a) { + var b, c, h, k, f, p; + d = a(49); + b = a(389); + c = a(777); + h = a(391); + k = a(214); + f = a(772); + p = a(386); + a = d(b(["filter"], f, function(a, b) { + return h(b) ? k(function(f, c) { + a(b[c]) && (f[c] = b[c]); + return f; + }, {}, p(b)) : c(a, b); + })); + g.M = a; + }, function(g) { + g.M = function(d) { + return "[object Object]" === Object.prototype.toString.call(d); + }; + }, function(g, d) { + Object.defineProperty(d, "__esModule", { value: !0 }); - b = a(59); - c.Nla = function(a) { - return a instanceof RangeError || a.message === b.wEa; - }; - }, function(f, c, a) { - var b; - Object.defineProperty(c, "__esModule", { + d.Uea = "ManifestProviderConfigSymbol"; + }, function(g, d) { + Object.defineProperty(d, "__esModule", { value: !0 }); - b = a(40); - f = function() { - function a() {} - a.prototype.Gja = function(a) { - var c; - c = Reflect.getMetadata(b.iU, a); - a = Reflect.getMetadata(b.Aba, a); - return { - bha: c, - vcb: a || {} - }; - }; - a.prototype.oYa = function(a) { - return Reflect.getMetadata(b.Bba, a) || []; - }; - return a; - }(); - c.UT = f; - }, function(f, c, a) { - var b, d, h, l, g, m, p, r; - Object.defineProperty(c, "__esModule", { - value: !0 - }); - f = a(0); - b = a(236); - d = a(877); - h = a(235); - l = a(234); - g = a(873); - m = a(766); - p = a(760); - r = a(752); - a = a(556); - c.sb = new f.eC(); - r.O0a(c.sb); - c.sb.load(d.platform); - c.sb.load(g.config); - h.$W.load(m.Yg); - l.NZ.load(p.dUa); - c.sb.load(a.uX); - c.sb.bind(b.DT).th(c.sb); - }, function(f, c, a) { - var g, m; - - function b(a) { - return null != a && "object" === typeof a && !0 === a["@@functional/placeholder"]; - } + d.Vea = "ManifestParserFactorySymbol"; + }, function(g, d) { + Object.defineProperty(d, "__esModule", { + value: !0 + }); + d.Xba = "CDMAttestedDescriptorStore"; + }, function(g, d) { + Object.defineProperty(d, "__esModule", { + value: !0 + }); + d.Qba = "BookmarkConfigParserSymbol"; + }, function(g, d) { + Object.defineProperty(d, "__esModule", { + value: !0 + }); + d.Rba = "BookmarkConfigSymbol"; + }, function(g, d) { + Object.defineProperty(d, "__esModule", { + value: !0 + }); + d.Kca = "DiskStorageRegistrySymbol"; + }, function(g, d) { + Object.defineProperty(d, "__esModule", { + value: !0 + }); + d.efa = "MemoryStorageSymbol"; + }, function(g, d) { + Object.defineProperty(d, "__esModule", { + value: !0 + }); + d.zea = "LocalStorageSymbol"; + }, function(g, d) { + Object.defineProperty(d, "__esModule", { + value: !0 + }); + d.rca = "CorruptedStorageValidatorConfigSymbol"; + }, function(g, d) { + Object.defineProperty(d, "__esModule", { + value: !0 + }); + d.HY = "Storage"; + }, function(g, d) { + Object.defineProperty(d, "__esModule", { + value: !0 + }); + d.RM = "IndexedDBConfigSymbol"; + }, function(g, d) { + Object.defineProperty(d, "__esModule", { + value: !0 + }); + d.Lga = "PresentationAPISymbol"; + }, function(g, d) { + Object.defineProperty(d, "__esModule", { + value: !0 + }); + d.Yea = "MediaCapabilitiesLogHelperSymbol"; + }, function(g, d) { + Object.defineProperty(d, "__esModule", { + value: !0 + }); + d.Zea = "MediaCapabilitiesSymbol"; + }, function(g, d, a) { + var c, h, k; - function d(a) { - return function u(c) { - return 0 === arguments.length || b(c) ? u : a.apply(this, arguments); - }; + function b(a, b) { + var f; + f = h.lM.call(this, a, b, c.zF.Audio) || this; + f.config = a; + f.x7 = b; + f.type = c.Yv.dw; + return f; } - - function h(a) { - return function u(c, g) { - switch (arguments.length) { - case 0: - return u; - case 1: - return b(c) ? u : d(function(b) { - return a(c, b); - }); - default: - return b(c) && b(g) ? u : b(c) ? d(function(b) { - return a(b, g); - }) : b(g) ? d(function(b) { - return a(c, b); - }) : a(c, g); + Object.defineProperty(d, "__esModule", { + value: !0 + }); + c = a(27); + h = a(408); + k = a(72); + a(133); + new(a(98)).Dw(); + ia(b, h.lM); + b.prototype.eL = function() { + return !1; + }; + b.prototype.Jx = function() { + var a; + a = {}; + a[k.Uk.JM] = "mp4a.40.2"; + a[k.Uk.bX] = "mp4a.40.5"; + this.config().P2 && (a[k.Uk.nM] = "ec-3"); + this.config().O2 && (a[k.Uk.rW] = "ec-3"); + this.config().XH && (a[k.Uk.oM] = "ec-3"); + return a; + }; + b.prototype.D4 = function() { + return this.config().HP; + }; + b.EE = "audio/mp4;codecs={0};"; + d.DW = b; + }, function(g, d) { + function a() {} + Object.defineProperty(d, "__esModule", { + value: !0 + }); + a.tda = /^hevc-main/; + a.sda = /^hevc-hdr-|hevc-dv/; + a.sq = /^hevc-hdr-/; + a.og = /^hevc-dv/; + a.CM = /-h264/; + a.ot = /^vp9-/; + a.jh = /^av1-/; + a.WV = /^heaac/; + a.eFa = /ddplus-2/; + a.fFa = /ddplus-5/; + a.gFa = /ddplus-atmos/; + d.Oj = a; + }, function(g, d, a) { + var c, h, k; + + function b(a, b, d) { + this.config = a; + this.x7 = b; + this.P = d; + this.z7 = {}; + this.z7[c.zF.Audio] = "audio"; + this.z7[c.zF.bia] = "video"; + } + Object.defineProperty(d, "__esModule", { + value: !0 + }); + c = a(27); + g = a(98); + h = a(407); + k = new g.Dw().format; + b.prototype.$ra = function() { + return this.b4a(this.D4()); + }; + b.prototype.wr = function(a) { + return this.x7.isTypeSupported(a); + }; + b.prototype.M5 = function() { + this.Vm = []; + this.ps = []; + this.config().Uwa && this.ps.push(h.Oj.tda); + this.config().Twa && this.ps.push(h.Oj.sda); + this.config().Vwa && this.ps.push(h.Oj.ot); + this.config().Swa && this.ps.push(h.Oj.jh); + this.ps = this.ps.concat([h.Oj.WV, h.Oj.CM]); + !this.config().P2 && this.Vm.push(h.Oj.eFa); + !this.config().O2 && this.Vm.push(h.Oj.fFa); + !this.config().XH && this.Vm.push(h.Oj.gFa); + !this.config().p5a && this.Vm.push(/prk$/); + this.config().Uwa || this.config().j5a || this.Vm.push(h.Oj.tda); + this.config().Twa || this.config().i5a || this.Vm.push(h.Oj.sda); + this.config().Vwa || this.config().v5a || this.Vm.push(h.Oj.ot); + this.config().Swa || this.config().f5a || this.Vm.push(h.Oj.jh); + }; + b.prototype.r3 = function(a) { + var b; + b = this; + return a.filter(function(a) { + for (var f = za(b.ps), c = f.next(); !c.done; c = f.next()) + if (c.value.test(a)) return !0; + f = za(b.Vm); + for (c = f.next(); !c.done; c = f.next()) + if (c.value.test(a)) return !1; + a = b.W8[a]; + c = ""; + if (a) return Array.isArray(a) && (c = 1 < a.length ? " " + a[1] : "", a = a[0]), a = k("{0}/mp4;codecs={1};{2}", b.z7[b.P], a, c), b.wr(a); + }); + }; + b.prototype.b4a = function(a) { + var b; + b = {}; + this.M5(); + this.r3(a).forEach(function(a) { + return b[a] = 1; + }); + return Object.keys(b); + }; + na.Object.defineProperties(b.prototype, { + W8: { + configurable: !0, + enumerable: !0, + get: function() { + this.Qka || (this.Qka = this.Jx()); + return this.Qka; } - }; - } + } + }); + d.lM = b; + }, function(g, d) { + Object.defineProperty(d, "__esModule", { + value: !0 + }); + d.dca = "CapabilityDetectorFactorySymbol"; + }, function(g, d) { + Object.defineProperty(d, "__esModule", { + value: !0 + }); + d.ida = "ExtraPlatformInfoProviderSymbol"; + }, function(g, d) { + Object.defineProperty(d, "__esModule", { + value: !0 + }); + d.ica = "CdnThroughputTracker"; + }, function(g, d) { + Object.defineProperty(d, "__esModule", { + value: !0 + }); + d.Kha = "ThroughputTrackerConfigSymbol"; + }, function(g, d) { + Object.defineProperty(d, "__esModule", { + value: !0 + }); + d.Oha = "TransitionLoggerSymbol"; + }, function(g, d) { + Object.defineProperty(d, "__esModule", { + value: !0 + }); + d.cia = "VideoPlayerFactorySymbol"; + }, function(g, d) { + Object.defineProperty(d, "__esModule", { + value: !0 + }); + d.Aga = "PlaybackFactorySymbol"; + }, function(g, d) { + Object.defineProperty(d, "__esModule", { + value: !0 + }); + d.rha = "SegmentConfigFactorySymbol"; + }, function(g, d) { + Object.defineProperty(d, "__esModule", { + value: !0 + }); + d.ifa = "MomentObserverFactory"; + }, function(g, d) { + Object.defineProperty(d, "__esModule", { + value: !0 + }); + d.hfa = "MomentFactorySymbol"; + }, function(g, d, a) { + var c; - function l(a) { - return function u(c, g, f) { - switch (arguments.length) { - case 0: - return u; - case 1: - return b(c) ? u : h(function(b, d) { - return a(c, b, d); - }); - case 2: - return b(c) && b(g) ? u : b(c) ? h(function(b, c) { - return a(b, g, c); - }) : b(g) ? h(function(b, d) { - return a(c, b, d); - }) : d(function(b) { - return a(c, g, b); - }); - default: - return b(c) && b(g) && b(f) ? u : b(c) && b(g) ? h(function(b, c) { - return a(b, c, f); - }) : b(c) && b(f) ? h(function(b, c) { - return a(b, g, c); - }) : b(g) && b(f) ? h(function(b, d) { - return a(c, b, d); - }) : b(c) ? d(function(b) { - return a(b, g, f); - }) : b(g) ? d(function(b) { - return a(c, b, f); - }) : b(f) ? d(function(b) { - return a(c, g, b); - }) : a(c, g, f); - } + function b(a, b, f, c, d, g) { + this.level = a; + this.Cm = b; + this.timestamp = f; + this.message = c; + this.Uc = d; + this.index = void 0 === g ? 0 : g; + this.fJa = { + 0: "F", + 1: "E", + 2: "W", + 3: "I", + 4: "T", + 5: "D" }; } - a.r(c); - g = l(function(a, b, c) { - var d, g; - d = {}; - for (g in b) Object.prototype.hasOwnProperty.call(b, g) && (d[g] = Object.prototype.hasOwnProperty.call(c, g) ? a(g, b[g], c[g]) : b[g]); - for (g in c) Object.prototype.hasOwnProperty.call(c, g) && !Object.prototype.hasOwnProperty.call(d, g) && (d[g] = c[g]); - return d; + Object.defineProperty(d, "__esModule", { + value: !0 }); - m = l(function r(a, b, c) { - return g(function(b, c, d) { - return "[object Object]" === Object.prototype.toString.call(c) && "[object Object]" === Object.prototype.toString.call(d) ? r(a, c, d) : a(b, c, d); - }, b, c); + c = a(4); + b.prototype.uL = function(a, b) { + var f; + f = "" + this.message; + this.Uc.forEach(function(c) { + f += c.Hz(a, b); + }); + return (this.timestamp.ma(c.Aa) / 1E3).toFixed(3) + "|" + this.index + "|" + (this.fJa[this.level] || this.level) + "|" + this.Cm + "| " + f; + }; + d.Dea = b; + }, function(g, d, a) { + var c, h; + + function b() {} + Object.defineProperty(d, "__esModule", { + value: !0 }); - c["default"] = h(function(a, b) { - return m(function(a, b, c) { - return c; - }, a, b); + g = a(0); + c = a(429); + a = a(1); + b.prototype.create = function() { + return new c.Pj(); + }; + h = b; + h = g.__decorate([a.N()], h); + d.nHa = h; + d.zM = "EventSourceFactorySymbol"; + }, function(g, d) { + Object.defineProperty(d, "__esModule", { + value: !0 }); - }, function(f, c, a) { - var b, d, h, l, g, m; - Object.defineProperty(c, "__esModule", { + d.zM = "EventSourceFactorySymbol"; + }, function(g, d, a) { + var c, h, k; + + function b() {} + Object.defineProperty(d, "__esModule", { value: !0 }); - f = a(18); - b = a(118); - d = a(6); - c = a(2); - h = a(3); - l = a(106); - g = a(58); - f.Dd(c.v.g9, function(a) { - var c, f; - c = t._cad_global.videoPreparer; - f = t._cad_global.playerPredictionModel; - c && t._cad_global.playerPredictionModel && (m = h.Z.get(l.Maa).create(f, c.U5a.bind(c)), t._cad_global.prefetchEvents = m, c.yg.on("deletedCacheItem", function(a) { - m.CE(g.tc.SC[a.type], parseInt(a.movieId, 10), a.reason); - }), b.Oi.addEventListener("cacheEvict", function(a) { - m.CE(l.vd.Wh.oC, a.movieId, "ase_cacheEvict"); - m.CE(l.vd.Wh.MEDIA, a.movieId); - "ase_cacheEvict"; - }), b.Oi.addEventListener("flushedBytes", function() { - b.Oi.tM().forEach(function(a) { - m.CE(l.vd.Wh.MEDIA, a.M, "ase_flushedBytes"); - }, this); - }), c.Xl.addEventListener(c.Xl.events.Eba, function(a) { - m.iOa(g.tc.SC[a.type], a.M, a.reason); - }), c.Xl.addEventListener(c.Xl.events.Cba, function(a) { - m.eOa(g.tc.SC[a.type], a.M, a.reason); - }), c.Xl.addEventListener(c.Xl.events.Dba, function(a) { - m.gOa(g.tc.SC[a.type], a.M, a.reason); - }), c.Xl.addEventListener(c.Xl.events.Fba, function(a) { - m.kOa(g.tc.SC[a.type], a.M, a.reason); - })); - a(d.cb); + c = a(3); + h = a(20); + k = a(5); + b.prototype.rp = function() { + return this.fcb() ? k.GGa : /widevine/i.test(this.config().Ad) ? k.Qca : /fps/i.test(this.config().Ad) ? "fairplay" : k.HW; + }; + b.prototype.fcb = function() { + return /clearkey/i.test(this.config().Ad); + }; + na.Object.defineProperties(b.prototype, { + config: { + configurable: !0, + enumerable: !0, + get: function() { + this.K || (this.K = c.ca.get(h.je)); + return this.K; + } + } }); - }, function(f, c, a) { - var h, l, g, m, p, r, u, k, z, w; - - function b(a, b) { - this.Mg = a; - this.gi = b; - } + d.$ea = new b(); + }, function(g, d, a) { + var c, h, k, f; - function d(a) { - this.V = a; - this.reset(); + function b(a, b, f, c, d, g, l) { + this.debug = a; + this.config = b; + this.platform = f; + this.pva = c; + this.debug.assert(d && d != h.I.Sh, "There should always be a specific error code"); + this.errorCode = d || h.I.Sh; + g && k.ne(g) ? (this.T = g.T || g.tc, this.ic = g.ic || g.Ef, this.oC = g.oC || g.gC, this.Ja = g.Ja || g.YB, this.PH = g.xl, this.Du = g.Du || g.Rva || g.Ip, this.Pn = g.Pn || g.data, g.DJ && (this.DJ = g.DJ), this.Bh = g.Bh, this.method = g.method, this.rT = g.rT, this.alert = g.alert, this.debug.assert(!this.Bh || this.Bh == this.ic)) : (this.T = g, this.ic = l); + this.stack = [this.errorCode]; + this.T ? this.stack.push(this.T) : this.ic && this.stack.push(h.H.Sh); + this.ic && this.stack.push(this.ic); + this.DQ = this.platform.pC + this.stack.join("-"); } - h = a(164); - l = a(163); - c = a(240); - g = a(239).config; - m = c.SWa; - p = c.GWa; - r = c.gTa; - u = c.U3a; - k = c.T3a; - z = c.S3a; - w = c.$ia; - d.prototype.constructor = d; - d.prototype.reset = function() { - this.yea = void 0; - this.Wg = []; - this.iea = this.jea = !1; + Object.defineProperty(d, "__esModule", { + value: !0 + }); + c = a(5); + h = a(2); + k = a(17); + f = a(15); + a(18); + b.prototype.toString = function() { + var a; + a = "[PlayerError #" + this.DQ + "]"; + this.Ja && (a += " " + this.Ja); + this.PH && (a += " (CustomMessage: " + this.PH + ")"); + return a; }; - d.prototype.update = function(a, b) { - var c; - this.Wg && (this.Wg = this.Wg.filter(this.Y9a, this)); - if (!1 === this.jea) { - c = m(a.sa).slice(0, g.Iha); - 0 < c.length && (this.vw(c, l.Ko.SJ), this.jea = !0, this.Wg = this.yx(c.concat(this.Wg))); - }!1 === this.iea && (c = p(a.sa).slice(0, g.Iha), 0 < c.length && (this.vw(c, l.Ko.SJ), this.iea = !0, this.Wg = this.yx(c.concat(this.Wg)))); - switch (b) { - case l.Jo.x8: - b = this.jZa(a); + b.prototype.zaa = function() { + var a, b; + this.PH && (a = ["streaming_error"]); + a || this.pva.rp() !== c.HW || ("80080017" == this.ic && (a = ["admin_mode_not_supported", "platform_error"]), "8004CD12" === this.ic && (a = ["pause_timeout"])); + a || this.pva.rp() !== c.Qca || this.errorCode !== h.I.Wca && this.errorCode !== h.I.Vca || (a = ["no_cdm", "platform_error", "plugin_error"]); + this.Dcb() && (a = ["received_soad"]); + b = this.t8a(); + b && (a = [b], this.PH = void 0); + if (!a) switch (this.errorCode) { + case h.I.cN: + case h.I.OM: + case h.I.TCa: + case h.I.Nfa: + a = ["pause_timeout"]; + break; + case h.I.dea: + case h.I.eea: + a = this.T ? ["platform_error"] : ["multiple_tabs"]; + break; + case h.I.rF: + case h.I.lN: + case h.I.BIa: + case h.I.AIa: + case h.I.DIa: + a = ["should_signout_and_signin"]; + break; + case h.I.FX: + case h.I.Qfa: + case h.I.Pfa: + case h.I.lY: + case h.I.uMa: + a = ["platform_error", "plugin_error"]; + break; + case h.I.EMa: + a = ["no_cdm", "platform_error", "plugin_error"]; + break; + case h.I.jY: + a = this.T ? ["platform_error", "plugin_error"] : ["no_cdm", "platform_error", "plugin_error"]; + break; + case h.I.xM: + case h.I.dN: + case h.I.Rfa: + switch (this.ic) { + case "FFFFD000": + a = ["device_needs_service", "platform_error"]; + break; + case "48444350": + a = ["unsupported_output", "platform_error"]; + break; + case "00000024": + a = ["private_mode"]; + } + break; + case h.I.Ofa: + a = ["unsupported_output"]; + }!a && h.lHa(this.T) && (a = this.T == h.H.Zz ? ["geo"] : ["internet_connection_problem"]); + if (!a) switch (this.MAa(this.T)) { + case h.H.TY: + a = ["should_upgrade"]; + break; + case h.H.UKa: + case h.H.Rea: + a = ["should_signout_and_signin"]; + break; + case h.H.VKa: + a = ["internet_connection_problem"]; break; - case l.Jo.cba: - b = this.rZa(a); + case h.H.lha: + case h.H.mha: + case h.H.jha: + a = ["storage_quota"]; break; - case l.Jo.bK: - b = this.sZa(a); + case h.H.Ufa: + case h.H.Sfa: + case h.H.Vfa: + case h.H.Tfa: + case h.H.yca: + a = ["platform_error", "plugin_error"]; break; - case l.Jo.QC: - b = this.oZa(a); + case h.H.tW: + case h.H.Eda: + case h.H.Fda: + a = ["private_mode"]; + } + a = a || []; + a.push(this.platform.pC + this.errorCode); + if (this.T) switch (this.MAa(this.T)) { + case h.H.Jfa: + a.push("incorrect_pin"); break; default: - b = this.iZa(a); + a.push("" + this.T); } - this.yea = a; - return b; + a = { + display: { + code: this.DQ, + text: this.PH + }, + messageIdList: a, + alert: this.alert + }; + if (this.Du || this.Rva) a.mslErrorCode = this.Du || this.Rva || this.Ip; + return a; }; - d.prototype.jZa = function(a) { - a = u(a.sa, g.xqa, g.Xga); - this.vw(a, l.Ko.SJ); - return this.Wg = this.yx(this.Wg.concat(a)); + b.prototype.MAa = function(a) { + var b; + b = parseInt(a, 10); + return isNaN(b) ? a : b; }; - d.prototype.rZa = function(a) { - var b, c; - this.V.log("handleScrollHorizontal"); - b = a.sa; - a = u(b, g.zqa, g.Yga); - c = r(b, this.yea.sa); - b = b[c].list.slice(0, g.r8a); - b.concat(a); - this.vw(b, l.Ko.QU); - return this.yx(b.concat(this.Wg)); + b.prototype.Dcb = function() { + var a; + a = f.ja(this.ic) ? this.ic.toString() : f.bd(this.ic) ? this.ic : ""; + return this.Du === h.XX.QY && (a.endsWith("2018") || a.endsWith("2020")); + }; + b.prototype.t8a = function() { + if (this.errorCode === h.I.jw && (this.T === h.H.hY || this.T === h.H.Ifa)) return this.u8a(this.T === h.H.hY); + }; + b.prototype.u8a = function(a) { + var b, f, c; + b = (this.config().browserInfo || {}).os || {}; + f = b.name; + c = (b.version || "").split("."); + b = parseInt(c && c[0]); + c = parseInt(c && c[1]); + switch (f) { + case "Windows": + return 6 > b || 6 === b && 1 > c ? a ? "cdm_not_supported_warning_switch_windows" : "cdm_not_supported_switch_windows" : a ? "cdm_not_supported_warning_update" : "cdm_not_supported_update"; + case "Mac OS X": + return 10 > b || 10 === b && 10 > c ? a ? "cdm_not_supported_warning_switch_mac" : "cdm_not_supported_switch_mac" : a ? "cdm_not_supported_warning_update" : "cdm_not_supported_update"; + default: + return a ? "cdm_not_supported_warning_other" : "cdm_not_supported_other"; + } }; - d.prototype.vw = function(a, b) { - a.forEach(function(a) { - if (void 0 === a.qs || a.qs < b) a.qs = b; - void 0 === a.KB && (a.KB = h()); - void 0 === a.Kh && (a.Kh = h()); - }); + d.MNa = b; + }, function(g, d) { + Object.defineProperty(d, "__esModule", { + value: !0 + }); + d.Uha = "UrlFactorySymbol"; + }, function(g, d) { + Object.defineProperty(d, "__esModule", { + value: !0 + }); + d.vY = "PrioritizedSetOfListsSymbol"; + d.XNa = "PrioritizedSetOfListsFactorySymbol"; + d.Mga = "PrioritizedSetOfSetsFactorySymbol"; + }, function(g, d) { + Object.defineProperty(d, "__esModule", { + value: !0 + }); + d.qxb = function() {}; + d.jfa = "MseConfigSymbol"; + }, function(g, d) { + Object.defineProperty(d, "__esModule", { + value: !0 + }); + d.Hca = "DecoderTimeoutPathologistSymbol"; + }, function(g, d) { + Object.defineProperty(d, "__esModule", { + value: !0 + }); + d.uca = "CsvEncoderSymbol"; + }, function(g, d, a) { + var c, h; + + function b() { + this.yl = {}; + this.id = "$es$" + c.t0a++; + } + Object.defineProperty(d, "__esModule", { + value: !0 + }); + g = a(0); + a = a(1); + b.prototype.addListener = function(a, b, c) { + var f, d; + f = "$netflix$player$order" + this.id + "$" + a; + if (this.yl) { + d = this.yl[a] ? this.yl[a].slice() : []; + c && (b[f] = c); + 0 > d.indexOf(b) && (d.push(b), d.sort(function(a, b) { + return (a[f] || 0) - (b[f] || 0); + })); + this.yl[a] = d; + } }; - d.prototype.sZa = function(a) { - this.V.log("handleSearch"); - a = k(a.sa, g.D8a); - this.vw(a, l.Ko.eba); - this.Wg = a.concat(this.Wg); - return this.Wg = this.yx(this.Wg); + b.prototype.removeListener = function(a, b) { + if (this.yl && this.yl[a]) { + for (var f = this.yl[a].slice(), c; 0 <= (c = f.indexOf(b));) f.splice(c, 1); + this.yl[a] = f; + } }; - d.prototype.oZa = function(a) { - var c, d, h, f, m; - this.V.log("handlePlayFocus: ", g.PF); - c = a.direction; - d = a.sa; - a = []; - h = w(d); - if (void 0 !== h.Mg) switch (a.push(h), c) { - case l.rn.Xaa: - for (c = 1; c < g.PF; c++) a.push(new b(h.Mg, h.gi + c)); - a.push(new b(h.Mg - 1, h.gi)); - a.push(new b(h.Mg + 1, h.gi)); - break; - case l.rn.J9: - for (c = 1; c < g.PF; c++) a.push(new b(h.Mg, h.gi - c)); - a.push(new b(h.Mg - 1, h.gi)); - a.push(new b(h.Mg + 1, h.gi)); - break; - case l.rn.JFa: - a.push(new b(h.Mg - 1, h.gi)); - for (c = 1; c <= g.PF / 2; c++) a.push(new b(h.Mg, h.gi + c)), a.push(new b(h.Mg, h.gi - c)); - break; - case l.rn.mwa: - for (a.push(new b(h.Mg + 1, h.gi)), c = 1; c <= g.PF / 2; c++) a.push(new b(h.Mg, h.gi + c)), a.push(new b(h.Mg, h.gi - c)); + b.prototype.Db = function(a, b, c) { + var f; + if (this.yl) { + f = this.j4(a); + for (a = { + gi: 0 + }; a.gi < f.length; a = { + gi: a.gi + }, a.gi++) c ? function(a) { + return function() { + var c; + c = f[a.gi]; + setTimeout(function() { + c(b); + }, 0); + }; + }(a)() : f[a.gi].call(this, b); } - f = []; - a.forEach(function(a) { - m = z(d, a.Mg, a.gi); - void 0 !== m && f.push(m); - }); - this.vw(f, l.Ko.QU); - return this.yx(f.concat(this.Wg)); }; - d.prototype.iZa = function(a) { - this.V.log("ModelOne: handleDefaultCase"); - a = u(a.sa, g.zqa, g.Yga); - this.vw(a, l.Ko.QU); - return this.yx(a.concat(this.Wg)); + b.prototype.bC = function() { + this.yl = void 0; }; - d.prototype.Y9a = function(a) { - return a.qs == l.Ko.SJ | a.qs == l.Ko.eba & h() - a.KB < g.KZa; + b.prototype.on = function(a, b, c) { + this.addListener(a, b, c); }; - d.prototype.yx = function(a) { - var b, c, d, g, h, f, m; - b = []; - c = {}; - f = 0; - m = a.length; - for (h = 0; h < m; h++) d = a[h].dg, g = a[h], !1 === d in c ? (b.push(g), c[d] = f, f++) : (d = b[c[d]], g.Kh < d.Kh && (d.Kh = g.Kh), g.qs > d.qs && (d.qs = g.qs), g.KB > d.KB && (d.KB = g.KB)); - return b; + b.prototype.j4 = function(a) { + return this.yl && (this.yl[a] || (this.yl[a] = [])); }; - f.P = d; - }, function(f, c, a) { - var l, g, m, p, r, u, k; - - function b(a, b, c, d, g, h) { - this.M = this.dg = a; - this.Vc = b; - this.Qb = c; - h && h.Oc && (this.Oc = h.Oc); - void 0 !== d && (this.Pw = d); - this.Kh = g; - this.mb = h; - } - - function d(a, b, c, d, g) { - m(void 0 !== d, "video preparer is null"); - m(void 0 !== g, "ui preparer is null"); - this.V = b || console; - this.V = b; - this.eb = c; - this.gLa = d; - this.ZKa = g; - this.vea = u.H3; - this.Qy = []; - this.SW = !1; - this.sl = 0; - new k().on(u, "changed", h, this); - this.reset(); - } + h = c = b; + h.t0a = 0; + h = c = g.__decorate([a.N()], h); + d.Pj = h; + }, function(g, d, a) { + var c, h, k, f; - function h() { - this.V.log("config changed"); - u.H3 && (this.vea = u.H3); - u.DG !== this.Fy && (this.reset(), this.L7a()); - } - l = a(164); - g = a(163); - c = a(240); - m = c.assert; - p = c.$ia; - r = a(425); - u = a(239).config; - k = a(31).kC; - u.declare({ - H3: ["ppmConfig", { - $db: { - boa: 0, - aoa: 2, - Zna: 0, - $na: 5, - nra: 0 - }, - qjb: { - boa: 0, - aoa: 1, - Zna: 0, - $na: 3, - nra: 1E3 - }, - oeb: { - boa: 0, - aoa: 1, - Zna: 0, - $na: 3, - nra: 1E3 - } - }] + function b(a, b) { + this.is = a; + this.Wg = b; + } + Object.defineProperty(d, "__esModule", { + value: !0 }); - d.prototype.constructor = d; - d.prototype.reset = function() { - this.GV = !0; - this.Fy = u.DG; - this.V.log("create model: " + u.DG, u.xqa, u.Xga); - switch (u.DG) { - case "modelone": - this.Fy = new r(this.V); - break; - default: - this.Fy = new r(this.V); - } + g = a(0); + c = a(1); + a(2); + h = a(23); + k = a(100); + f = a(6); + b.prototype.Dk = function(a, b, f) { + var c, d, g, m; + c = this; + if (b) + if (f) { + d = f.iD; + g = f.prefix; + m = f.Mp; + this.Cu(b, function(b, f) { + if (!m || c.is.Zg(f)) a[(g || "") + (d ? b.toLowerCase() : b)] = f; + }); + } else this.Cu(b, function(b, f) { + a[b] = f; + }); + return a; }; - d.prototype.L7a = function() { - var b, c; - if (!1 === this.SW) { - this.SW = !0; - for (var a = 0; a < this.Qy.length; a++) { - this.V.log("PlayPredictionModel replay: ", JSON.stringify(this.Qy[a])); - b = this.nha(this.Qy[a]); - c = this.uja(b); - this.Fy.update(b, c); - this.GV = !1; - } - this.Qy = []; - } + b.prototype.Cu = function(a, b) { + for (var f in a) a.hasOwnProperty(f) && b(f, a[f]); }; - d.prototype.update = function(a) { - var b, c, d; - this.V.log("PlayPredictionModel update: ", JSON.stringify(a)); - if (a && a.sa && a.sa[0]) { - !1 === this.SW && this.Qy.length < u.W1a && this.Qy.push(a); - b = this.nha(a); - c = this.uja(b); - this.V.log("actionType", c); - b = "mlmodel" == u.DG ? this.Fy.update(a, c) : this.Fy.update(b, c); - b = this.jWa(b, u.Z_a || 1); - this.V.log("PlayPredictionModel.prototype.update() - returnedList: ", JSON.stringify(b)); - 0 === this.sl && (this.sl = l(), this.eb && this.eb.vH && this.eb.vH({ - UM: this.sl - })); - if (this.eb && this.eb.fqa) { - d = { - UM: this.sl, - offset: this.$N(), - ipa: [] - }; - b.forEach(function(a) { - d.ipa.push({ - Zm: a.dg - }); - }); - d.cpa = JSON.stringify(a); - d.dpa = JSON.stringify(b); - this.eb.fqa(d); - } - this.gLa.Dt(b); - this.ZKa.Dt(b); - this.GV = !1; + b.prototype.ou = function(a, b) { + if (a.length == b.length) { + for (var f = a.length; f--;) + if (a[f] != b[f]) return !1; + return !0; } + return !1; }; - d.prototype.Y7a = function() { - this.sl = 0; + b.prototype.g0a = function(a, b) { + if (a.length != b.length) return !1; + a.sort(); + b.sort(); + for (var f = a.length; f--;) + if (a[f] !== b[f]) return !1; + return !0; }; - d.prototype.$N = function() { - return l() - this.sl; + b.prototype.ad = function(a) { + var b, f, c; + if (a) { + b = a.stack; + f = a.number; + c = a.message; + c || (c = "" + a); + b ? (a = "" + b, 0 !== a.indexOf(c) && (a = c + "\n" + a)) : a = c; + f && (a += "\nnumber:" + f); + return a; + } }; - d.prototype.vH = function() { - this.sl = l(); - this.eb && this.eb.vH && this.eb.vH({ - UM: this.sl - }); + b.prototype.Apa = function(a, b) { + var f, c; + a = a.target.keyStatuses.entries(); + for (f = a.next(); !f.done;) c = f.value[0], f = f.value[1], b && b(c, f), f = a.next(); }; - d.prototype.nha = function(a) { - var b, c, d, h, f; - b = {}; - h = a.sa || []; - f = function(a) { - var h, f; - h = {}; - c = g.wC.name.indexOf(a.context); - h.context = 0 <= c ? c : g.wC.Ro; - h.rowIndex = a.rowIndex; - h.requestId = a.requestId; - h.list = []; - d = a.list || []; - d.forEach(function(a) { - f = { - dg: a.dg, - Qb: a.Qb, - index: a.index, - Pw: a.Pw, - XA: a.XA, - list: a.list, - mb: a.mb - }; - void 0 !== a.property && (c = g.Sx.name.indexOf(a.property), f.property = 0 <= c ? c : g.Sx.Ro); - h.list.push(f); - }.bind(this)); - b.sa.push(h); - }.bind(this); - void 0 !== a.direction && (c = g.rn.name.indexOf(a.direction), b.direction = 0 <= c ? c : g.rn.Ro); - void 0 !== a.uF && (b.Hnb = a.uF.rowIndex, b.Gnb = a.uF.lPa); - b.uF = a.uF; - b.sa = []; - h.forEach(f); - return b; + b.prototype.getFunctionName = function(a) { + return (a = /function (.{1,})\(/.exec(a.toString())) && 1 < a.length ? a[1] : ""; }; - d.prototype.uja = function(a) { - var b, c, d; - b = a.direction || g.rn.Ro; - c = a.uF; - d = a.sa || []; - !0 === this.GV ? a = g.Jo.x8 : !0 === d.some(this.wZa) ? (a = g.Jo.QC, this.nQ(d, b, c)) : a = d[0].context === g.wC.bK ? g.Jo.bK : b === g.rn.Xaa || b === g.rn.J9 ? g.Jo.cba : g.Jo.Ro; - return a; + b.prototype.hra = function(a) { + return this.getFunctionName(a.constructor); }; - d.prototype.wZa = function(a) { - return (a.list || []).some(function(a) { - return a.property === g.Sx.QC || a.property === g.Sx.E7; + b.prototype.uwa = function(a) { + var b, f; + b = this; + f = ""; + this.is.Zt(a) || this.is.ima(a) ? f = Array.prototype.reduce.call(a, function(a, b) { + return a + (32 <= b && 128 > b ? String.fromCharCode(b) : "."); + }, "") : this.is.uh(a) ? f = a : this.Cu(a, function(a, c) { + f += (f ? ", " : "") + "{" + a + ": " + (b.is.JG(c) ? b.getFunctionName(c) || "function" : c) + "}"; }); + return "[" + this.hra(a) + " " + f + "]"; }; - d.prototype.nQ = function(a, b, c) { - var d, h; - this.V.log("reportPlayFocusEvent: ", b, c); - d = {}; - h = p(a); - this.eb && this.eb.nQ && (d.lnb = l(), d.direction = g.rn.name[b], c && (d.rowIndex = c.rowIndex, d.DY = c.lPa), void 0 !== h.Mg && (d.requestId = a[h.Mg].requestId), this.eb.nQ && this.eb.nQ(d)); - }; - d.prototype.jWa = function(a, b) { - for (var c = a.length, d = [], g, h, f, m, l = 0; l < c; l++) { - h = a[l]; - g = Math.floor(l / b) + 1; - if (void 0 !== h.list) { - f = h.list; - m = f.length; - for (var p = 0; p < Math.min(u.jPa, m) && !(f[p].Kh = h.Kh, this.Afa(f[p], g, d), d.length >= u.dna); p++); - } else this.Afa(h, g, d); - if (d.length >= u.dna) break; - } - return d; + b.prototype.createElement = function(a, b, c, d) { + var g; + g = f.wd.createElement(a); + b && (g.style.cssText = b); + c && (g.innerHTML = c); + d && this.Cu(d, function(a, b) { + g.setAttribute(a, b); + }); + return g; }; - d.prototype.Afa = function(a, c, d) { - var h, f; - - function g(a) { - a.Oc && (a.mb || (a.mb = {}), a.mb.Oc = a.Oc); - return a.mb; - } - h = a.XA; - void 0 !== h && h instanceof Array ? h.forEach(function(h) { - void 0 !== h.dg && (f = g(h), d.push(new b(h.dg, c, h.Qb, h.Pw, a.Kh, f))); - }) : void 0 !== h && void 0 !== h.dg && (h = a.XA, f = g(h), d.push(new b(h.dg, c, h.Qb, h.Pw, a.Kh, f))); - void 0 !== a.dg && (f = g(a), d.push(new b(a.dg, c, a.Qb, a.Pw, a.Kh, f))); + b.prototype.W6a = function(a, b) { + return function(f) { + return f[a] === b; + }; }; - d.prototype.Zp = function(a) { + b.prototype.KT = function(a) { var b; - b = this.vea; - return a ? b[a] : b; + b = {}; + (a || "").split("&").forEach(function(a) { + var f; + a = a.trim(); + f = a.indexOf("="); + 0 <= f ? b[decodeURIComponent(a.substr(0, f)).toLowerCase()] = decodeURIComponent(a.substr(f + 1)) : b[a.toLowerCase()] = void 0; + }); + return b; }; - f.P = d; - }, function(f, c, a) { - var b, d, h, l; - Object.defineProperty(c, "__esModule", { + a = b; + a = g.__decorate([c.N(), g.__param(0, c.l(h.ve)), g.__param(1, c.l(k.$v))], a); + d.Vha = a; + }, function(g, d) { + Object.defineProperty(d, "__esModule", { value: !0 }); - f = a(18); - b = a(4); - d = a(6); - c = a(2); - h = a(3); - f.Dd(c.v.h9, function(c) { - var g, f; - if (b.config.C5a) { - g = h.Cc("PlayerPredictionModel"); - t._cad_global.videoPreparer || (g.error("videoPreparer is not defined"), c(d.cb)); - f = a(426); - g.log = g.trace.bind(g); - l = new f({}, g, { - vH: function(a) { - t._cad_global.prefetchEvents.fTa(a.UM); - }, - fqa: function(a) { - t._cad_global.prefetchEvents.V5a(a); - } - }, t._cad_global.videoPreparer, { - Dt: function() {} - }); - t._cad_global.playerPredictionModel = l; - g.info("ppm v2 initialized"); - } - c(d.cb); + d.Efa = "OneWayCounterFactorySymbol"; + }, function(g, d) { + Object.defineProperty(d, "__esModule", { + value: !0 }); - }, function(f) { - f.P = { - Os: { - Sa: 12E5, - iG: 9E5, - Uc: 12E5 - }, - ps: { - Sa: 10, - iG: 10, - Uc: 10 - }, - ms: { - Sa: 10240, - iG: 10240, - Uc: 10240 - } - }; - }, function(f) { - function c(a) { - var b; - b = []; - return function h(a) { - if (a && "object" === typeof a) { - if (-1 !== b.indexOf(a)) return !0; - b.push(a); - for (var c in a) - if (a.hasOwnProperty(c) && h(a[c])) return !0; - } - return !1; - }(a); - } - f.P = function(a, b) { - var h; - if (b && c(a)) return -1; - b = []; - a = [a]; - for (var d = 0; a.length;) { - h = a.pop(); - if ("boolean" === typeof h) d += 4; - else if ("string" === typeof h) d += 2 * h.length; - else if ("number" === typeof h) d += 8; - else if ("object" === typeof h && -1 === b.indexOf(h)) { - b.push(h); - for (var f in h) a.push(h[f]); - } + d.kca = "ClockConfigSymbol"; + }, function(g, d) { + var a; + Object.defineProperty(d, "__esModule", { + value: !0 + }); + (function(a) { + a[a.eua = 0] = "licenseStarted"; + a[a.qya = 1] = "recievedLicenseChallenge"; + a[a.pya = 2] = "recievedLicense"; + a[a.rya = 3] = "recievedRenewalChallengeComplete"; + a[a.sya = 4] = "recievedRenewalLicenseComplete"; + a[a.tya = 5] = "recievedRenewalLicenseFailed"; + a[a.Xkb = 6] = "recievedIndivChallengeComplete"; + a[a.Ykb = 7] = "recievedIndivLicenseComplete"; + a[a.Rla = 8] = "addLicenseComplete"; + a[a.Xla = 9] = "addRenewalLicenseComplete"; + a[a.Yla = 10] = "addRenewalLicenseFailed"; + }(a = d.Fo || (d.Fo = {}))); + d.L4a = function(b) { + switch (b) { + case a.eua: + return "lg"; + case a.qya: + return "lc"; + case a.pya: + return "lr"; + case a.rya: + return "renew_lc"; + case a.sya: + return "renew_lr"; + case a.tya: + return "renew_lr_failed"; + case a.Xkb: + return "ilc"; + case a.Ykb: + return "ilr"; + case a.Rla: + return "ld"; + case a.Xla: + return "renew_ld"; + case a.Yla: + return "renew_ld_failed"; + default: + return "unknown"; } - return d; }; - }, function(f, c, a) { - var g, m; - - function b() { - return Object.create(null); - } - - function d(a) { - this.log = a.log; - this.Na = a.Na; - this.xw = b(); - this.Promise = a.Promise; - this.Np = a.Np; - this.f6 = a.f6; - this.Ke = a.Ke || !1; - this.Os = b(); - this.ps = b(); - this.ms = b(); - this.sKa(a); - a.Pz && (this.Pz = a.Pz, g(this.Pz, d.prototype)); - } + }, function(g, d, a) { + var c, h, k, f, p, m, r; - function h(a) { - return "undefined" !== typeof a; + function b(a, b) { + this.qT = a; + this.is = b; + k.zk(this, "nav"); } - - function l(a) { - var d; - for (var b = 0, c = arguments.length; b < c;) { - d = arguments[b++]; - if (h(d)) return d; - } - } - g = a(44); - a(429); - m = a(428); - d.prototype.sKa = function(a) { - this.Os.manifest = l(a.$Z, m.Os.Sa); - this.Os.ldl = l(a.ZZ, m.Os.iG); - this.Os.metadata = l(a.pnb, m.Os.Uc); - this.ps.manifest = l(a.iY, m.ps.Sa); - this.ps.ldl = l(a.hY, m.ps.iG); - this.ps.metadata = l(a.vlb, m.ps.Uc); - this.ms.manifest = l(a.tlb, m.ms.Sa); - this.ms.ldl = l(a.slb, m.ms.iG); - this.ms.metadata = l(a.ulb, m.ms.Uc); - }; - d.prototype.oO = function(a, b, c) { - this.Of("undefined" !== typeof a); - this.Of("undefined" !== typeof b); - return !!this.oda(a, b, c).value; - }; - d.prototype.oda = function(a, b, c) { - var d, g; - d = { - value: null, - reason: "", - log: "" - }; - g = this.xw[b]; - if ("undefined" === typeof g) return d.log = "cache miss: no data exists for field:" + b, d.reason = "unavailable", d; - "undefined" === typeof g[a] ? (d.log = "cache miss: no data exists for movieId:" + a, d.reason = "unavailable") : (c = g[a][c ? c : "DEFAULTCAPS"]) && c.value ? this.GO(b, c.hi) ? (d.log = "cache miss: " + b + " data expired for movieId:" + a, d.reason = "expired") : (d.log = this.Promise && c.value instanceof this.Promise ? "cache hit: " + b + " request in flight for movieId:" + a : "cache hit: " + b + " available for movieId:" + a, d.value = c.value) : (d.log = "cache miss: " + b + " data not available for movieId:" + a, d.reason = "unavailable"); - return d; + Object.defineProperty(d, "__esModule", { + value: !0 + }); + g = a(0); + h = a(1); + k = a(51); + f = a(2); + p = a(39); + m = a(23); + r = a(89); + b.prototype.Mu = function() { + if (this.aa) return this.aa.sessionId; }; - d.prototype.getData = function(a, b, c) { - this.Of("undefined" !== typeof a); - this.Of("undefined" !== typeof b); - a = this.oda(a, b, c); - this.log.trace(a.log); - return a.value ? this.Promise ? a.value instanceof this.Promise ? a.value : Promise.resolve(a.value) : this.f6 ? JSON.parse(this.f6(a.value, "gzip", !1)) : a.value : this.Promise ? Promise.reject(a.reason) : a.reason; + b.prototype.Kya = function(a, b) { + return this.qT.requestMediaKeySystemAccess(a, b); }; - d.prototype.setData = function(a, c, d, g, h) { - var f; - this.Of("undefined" !== typeof a); - this.Of("undefined" !== typeof c); - f = this.xw; - h = h ? h : "DEFAULTCAPS"; - f[c] || (f[c] = b(), Object.defineProperty(f[c], "numEntries", { - enumerable: !1, - configurable: !0, - writable: !0, - value: 0 - }), Object.defineProperty(f[c], "size", { - enumerable: !1, - configurable: !0, - writable: !0, - value: 0 - })); - d = this.Np ? this.Np(JSON.stringify(d), "gzip", !0) : d; - f = f[c]; - this.kIa(a, c, h, f); - c = { - hi: this.Na.getTime(), - value: d, - size: 0, - type: c, - AZ: g - }; - f[a] = f[a] || b(); - f[a][h] = f[a][h] || b(); - f[a][h] = c; - f.size += 0; - f.numEntries++; - this.Pz && this.emit("addedCacheItem", c); - return c; + b.prototype.iQ = function(a, b) { + return b.createMediaKeys(); }; - d.prototype.kIa = function(a, b, c, d) { - var g, h, f, m, l, p, r, u, k; - g = this; - h = d.numEntries; - f = this.ps[b]; - p = d[a] && d[a][c]; - if (p && p.value) m = a, l = "promise_or_expired"; - else if (h >= f) { - u = Number.POSITIVE_INFINITY; - Object.keys(d).every(function(a) { - var h; - h = d[a] && d[a][c]; - h && h.value && g.GO(b, h.hi) && (k = a); - h && h.value && h.hi < u && (u = h.hi, r = a); - return !0; - }); - m = k || r; - l = "cache_full"; - } - this.Ke && this.log.debug("makespace ", { - maxCount: f, - currentCount: d.numEntries, - field: b, - movieId: a, - movieToBeRemoved: m - }); - m && (g.clearData(m, b, c, void 0, l), this.log.debug("removed from cache: ", m, b)); + b.prototype.Dr = function(a, b) { + this.aa = a.createSession(b); }; - d.prototype.vY = function(a, b) { - var c, d; - c = this; - c.Of("undefined" !== typeof a); - d = a + ""; - b.forEach(function(a) { - var b; - b = c.xw[a]; - b && Object.keys(b).forEach(function(b) { - b != d && c.clearData(b, a, void 0, void 0, "clear_all"); - }); - }); + b.prototype.Hta = function() { + return !!this.aa; }; - d.prototype.clearData = function(a, b, c, d, g) { - var h; - this.Of("undefined" !== typeof a); - this.Of("undefined" !== typeof b); - h = this.xw[b]; - b = h ? h[a] : void 0; - c = c ? c : "DEFAULTCAPS"; - if (b && b[c]) { - h.size -= b[c].size; - h.numEntries--; - if (h = b && b[c]) b[c] = void 0, !d && h.AZ && h.AZ(); - this.Pz && (a = { - creationTime: h.hi, - destroyFn: h.AZ, - size: h.size, - type: h.type, - value: h.value, - reason: g, - movieId: a - }, this.emit("deletedCacheItem", a)); - } + b.prototype.fAa = function(a, b) { + return this.is.JG(a.setServerCertificate) ? a.setServerCertificate(b) : Promise.resolve(); }; - d.prototype.flush = function(a) { - var c; - this.Of("undefined" !== typeof a); - c = this.xw; - c[a] = b(); - c[a].numEntries = 0; - c[a].size = 0; + b.prototype.Rqa = function(a, b) { + return this.aa ? this.aa.generateRequest(a, b) : Promise.reject(new r.hf(f.I.Xca, f.H.$E, void 0, "Unable to generate a license request, key session is not valid")); }; - d.prototype.GO = function(a, b) { - return this.Na.getTime() - b > this.Os[a]; + b.prototype.update = function(a) { + return this.aa ? this.aa.update(a) : Promise.reject(new r.hf(f.I.xM, f.H.$E, void 0, "Unable to update the EME with a response, key session is not valid")); }; - d.prototype.getStats = function(a, b, c) { - var d, g, f, m, l; - d = {}; - g = this; - f = g.xw; - m = h(a) && h(b); - l = c || "DEFAULTCAPS"; - Object.keys(f).forEach(function(c) { - var p, r; - p = Object.keys(f[c]); - r = f[c]; - p.forEach(function(f) { - !(f = r && r[f] && r[f][l]) || !h(f.value) || f.value instanceof this.Promise || (d[c] = (d[c] | 0) + 1, g.GO(f.type, f.hi) && (d[c + "_expired"] = (d[c + "_expired"] | 0) + 1), m && f.hi >= a && f.hi < b && (d[c + "_delta"] = (d[c + "_delta"] | 0) + 1)); - }); - }); - return d; + b.prototype.load = function(a) { + return this.aa ? this.aa.load(a) : Promise.reject(new r.hf(f.I.QGa, f.H.$E, void 0, "Unable to load a key session, key session is not valid")); }; - d.prototype.ae = function(a) { - var b, c, d, g; - b = []; - c = this; - d = c.xw; - g = a || "DEFAULTCAPS"; - Object.keys(d).forEach(function(a) { - var f, m; - f = Object.keys(d[a]); - m = d[a]; - f.forEach(function(d) { - var f, l; - f = m && m[d] && m[d][g]; - f && h(f.value) && (l = c.GO(f.type, f.hi) ? "expired" : f.value instanceof this.Promise ? "loading" : "cached", b.push({ - movieId: d, - state: l, - type: a, - size: f.size - })); - }); - }); - return b; + b.prototype.close = function() { + var a; + if (!this.aa) return Promise.reject(new r.hf(f.I.KGa, f.H.$E, void 0, "Unable to close a key session, key session is not valid")); + a = Promise.resolve(); + this.Mu() && (a = this.aa.close()); + this.aa = void 0; + return a; }; - d.prototype.kra = function(a, b) { - this.Of("undefined" !== typeof a); - this.Of("undefined" !== typeof b); - this.ms[a] = b; + b.prototype.remove = function() { + return this.aa ? this.aa.remove() : Promise.reject(new r.hf(f.I.ada, f.H.$E, void 0, "Unable to remove a key session, key session is not valid")); }; - d.prototype.Of = function(a) { - if (!a && (this.log.error("Debug Assert Failed for"), this.Ke)) throw Error("Debug Assert Failed "); + b.prototype.Sla = function(a) { + if (!this.aa) throw ReferenceError("Unable to add message handler, key session is not valid"); + this.aa.addEventListener(c.Xz, a); }; - f.P = d; - }, function(f, c, a) { - var d, h; - - function b(a, b, c, f, r, u, k) { - this.M = a; - this.Vc = b; - this.type = c; - this.id = ++h; - this.LM = f; - this.status = d.ud.j7; - this.h5a = void 0 === r ? !1 : r; - this.Wna = k; - } - Object.defineProperty(c, "__esModule", { + b.prototype.Pla = function(a) { + if (!this.aa) throw ReferenceError("Unable to add key status handler, key session is not valid"); + this.aa.addEventListener(c.bda, a); + }; + b.prototype.Ola = function(a) { + if (!this.aa) throw ReferenceError("Unable to add error handler, key session is not valid"); + this.aa.addEventListener(c.Wz, a); + }; + b.prototype.Cya = function(a) { + if (!this.aa) throw ReferenceError("Unable to remove message handler, key session is not valid"); + this.aa.removeEventListener(c.Xz, a); + }; + b.prototype.Aya = function(a) { + if (!this.aa) throw ReferenceError("Unable to remove key status handler, key session is not valid"); + this.aa.removeEventListener(c.bda, a); + }; + b.prototype.zya = function(a) { + if (!this.aa) throw ReferenceError("Unable to remove error handler, key session is not valid"); + this.aa.removeEventListener(c.Wz, a); + }; + a = c = b; + a.Xz = "message"; + a.bda = "keystatuseschange"; + a.Wz = "error"; + a = c = g.__decorate([h.N(), g.__param(0, h.l(p.lA)), g.__param(1, h.l(m.ve))], a); + d.wY = a; + }, function(g, d) { + Object.defineProperty(d, "__esModule", { value: !0 }); - d = a(58); - h = 0; - b.prototype.Wja = function() { - var a; - a = { - id: this.id, - type: this.type, - created: this.LM, - status: this.status, - movieId: this.M - }; - this.startTime && (a.startTime = this.startTime); - this.endTime && this.startTime && (a.duration = this.endTime - this.startTime, a.endTime = this.endTime); - return a; - }; - b.prototype.vi = function(a) { - this.Wna && this.Wna(a); + d.cda = "EmeSessionFactorySymbol"; + }, function(g, d) { + Object.defineProperty(d, "__esModule", { + value: !0 + }); + d.Oca = "DrmProviderSymbol"; + }, function(g, d) { + Object.defineProperty(d, "__esModule", { + value: !0 + }); + d.hea = "IdentityProviderSymbol"; + }, function(g, d, a) { + var b; + b = a(103); + d.xta = function(a) { + return !b.isArray(a) && 0 <= a - parseFloat(a) + 1; }; - c.cD = b; - }, function(f, c, a) { - var l, g, m; - - function b() {} - - function d(a) { - this.log = a.log; - this.Na = a.Na; - this.NM = this.SE = 0; - this.Vt = []; - this.paused = !1; - this.oR = []; - this.cha = []; - this.$F = a.$F || b.F6; - this.sb = a.sb; - this.bi = this.sb.get(g.nJ); - this.addEventListener = this.bi.addListener.bind(this.bi); - this.events = { - Eba: "taskstart", - Cba: "taskabort", - Dba: "taskfail", - Fba: "tasksuccess" - }; - } - - function h(a) { - return a.Wja(); - } - Object.defineProperty(c, "__esModule", { - value: !0 - }); - f = a(108); - l = a(58); - g = a(109); - b.GCa = "prepend"; - b.F6 = "append"; - b.Uxa = "ignore"; - m = f.nn; - c.kFa = d; - d.prototype.Ffa = function(a) { - this.log.trace("adding tasks, number of tasks: " + a.length); - this.paused = !1; - this.Vt = this.WHa(a); - this.SE = 0; - this.NM += 1; - this.Xa(); + }, function(g, d, a) { + var b, c, h, k, f, p; + b = this && this.__extends || function(a, b) { + function f() { + this.constructor = a; + } + for (var c in b) b.hasOwnProperty(c) && (a[c] = b[c]); + a.prototype = null === b ? Object.create(b) : (f.prototype = b.prototype, new f()); }; - d.prototype.WHa = function(a) { - var c, d; - c = this.Vt.filter(function(a) { - return a.h5a && a.status === l.ud.j7; - }); - d = this.$F; - if (d === b.Uxa) return [].concat(a); - if (d === b.GCa) return c.concat(a); - if (d === b.F6) return a.concat(c); + c = a(444); + h = a(103); + g = a(78); + k = a(77); + d.Sy = function() { + for (var a = [], b = 0; b < arguments.length; b++) a[b - 0] = arguments[b]; + 1 === a.length && h.isArray(a[0]) && (a = a[0]); + return function(b) { + return b.Gf(new f(a)); + }; }; - d.prototype.pause = function() { - this.paused = !0; + d.yhb = function() { + for (var a = [], b = 0; b < arguments.length; b++) a[b - 0] = arguments[b]; + 1 === a.length && h.isArray(a[0]) && (a = a[0]); + b = a.shift(); + return new c.mda(b, null).Gf(new f(a)); }; - d.prototype.Xa = function() { - var a, b; - if (this.SE === this.Vt.length) this.log.trace("all tasks completed"); - else if (this.paused) this.log.trace("in paused state", { - currentTaskIndex: this.SE, - numberOfTasks: this.Vt.length - }); - else { - a = this.ZXa(); - b = this.NM; - a.startTime = this.Na.getTime(); - a.status = l.ud.fba; - this.bi.mc(this.events.Eba, { - M: a.M, - type: a.type - }); - this.oR.push(a); - a.fe(function(c) { - a.endTime = this.Na.getTime(); - c ? 0 <= [l.ud.Jx, l.ud.UI, l.ud.bC, l.ud.TI].indexOf(c.status) ? (a.status = c.status, this.pW(a, this.events.Cba, "cancelled task")) : (a.status = l.ud.bm, this.pW(a, this.events.Dba, "task failed", c)) : (a.status = l.ud.oba, this.pW(a, this.events.Fba, "task succeeded")); - this.cha.push(a); - this.oR.splice(this.oR.indexOf(a), 1); - this.NM === b && (this.SE++, this.Xa()); - }.bind(this)); + f = function() { + function a(a) { + this.Y7 = a; + } + a.prototype.call = function(a, b) { + return b.subscribe(new p(a, this.Y7)); + }; + return a; + }(); + p = function(a) { + function f(b, f) { + a.call(this, b); + this.destination = b; + this.Y7 = f; } + b(f, a); + f.prototype.e8 = function() { + this.nV(); + }; + f.prototype.bj = function() { + this.nV(); + }; + f.prototype.Rb = function() { + this.nV(); + }; + f.prototype.wb = function() { + this.nV(); + }; + f.prototype.nV = function() { + var a; + a = this.Y7.shift(); + a ? this.add(k.Cs(this, a)) : this.destination.complete(); + }; + return f; + }(g.Aq); + }, function(g, d) { + d.cJ = function(a) { + return a instanceof Date && !isNaN(+a); }; - d.prototype.ZXa = function() { - return this.Vt[this.SE]; + }, function(g, d, a) { + var b, c, h, k; + b = this && this.__extends || function(a, b) { + function f() { + this.constructor = a; + } + for (var c in b) b.hasOwnProperty(c) && (a[c] = b[c]); + a.prototype = null === b ? Object.create(b) : (f.prototype = b.prototype, new f()); }; - d.prototype.pW = function(a, b, c, d) { - var g; - g = a.Wja(); - d ? this.log.warn(c, g, d) : this.log.trace(c, g); - this.bi.mc(b, { - M: a.M, - type: a.type, - reason: a.status - }); - a.vi(g); + c = a(77); + g = a(78); + d.rD = function(a, b, c) { + void 0 === c && (c = Number.POSITIVE_INFINITY); + return function(f) { + "number" === typeof b && (c = b, b = null); + return f.Gf(new h(a, b, c)); + }; }; - d.prototype.getStats = function(a, b, c) { - var d, g, f, p; - d = this.cha.map(h); - g = this.oR.map(h); - f = m.uf(a) && m.uf(b); - p = {}; - if (m.uf(c)) return p.tPa = d.filter(function(a) { - return a.movieId === c; - }), p; - d.concat(g).forEach(function(c) { + h = function() { + function a(a, b, f) { + void 0 === f && (f = Number.POSITIVE_INFINITY); + this.jg = a; + this.Ij = b; + this.C1 = f; + } + a.prototype.call = function(a, b) { + return b.subscribe(new k(a, this.jg, this.Ij, this.C1)); + }; + return a; + }(); + d.oxb = h; + k = function(a) { + function f(b, f, c, d) { + void 0 === d && (d = Number.POSITIVE_INFINITY); + a.call(this, b); + this.jg = f; + this.Ij = c; + this.C1 = d; + this.NC = !1; + this.buffer = []; + this.index = this.active = 0; + } + b(f, a); + f.prototype.Tg = function(a) { + this.active < this.C1 ? this.eWa(a) : this.buffer.push(a); + }; + f.prototype.eWa = function(a) { + var b, f; + f = this.index++; + try { + b = this.jg(a, f); + } catch (x) { + this.destination.error(x); + return; + } + this.active++; + this.JZ(b, a, f); + }; + f.prototype.JZ = function(a, b, f) { + this.add(c.Cs(this, a, b, f)); + }; + f.prototype.wb = function() { + this.NC = !0; + 0 === this.active && 0 === this.buffer.length && this.destination.complete(); + }; + f.prototype.Qy = function(a, b, f, c) { + this.Ij ? this.ZTa(a, b, f, c) : this.destination.next(b); + }; + f.prototype.ZTa = function(a, b, f, c) { var d; - p[c.type + "_" + c.status] = (p[c.type + "_" + c.status] | 0) + 1; - d = c.status == l.ud.fba ? c.startTime : c.endTime; - f && d >= a && d < b && (p[c.type + "_" + c.status + "_delta"] = (p[c.type + "_" + c.status + "_delta"] | 0) + 1); - }); - return p; + try { + d = this.Ij(a, b, f, c); + } catch (y) { + this.destination.error(y); + return; + } + this.destination.next(d); + }; + f.prototype.bj = function(a) { + var b; + b = this.buffer; + this.remove(a); + this.active--; + 0 < b.length ? this.Tg(b.shift()) : 0 === this.active && this.NC && this.destination.complete(); + }; + return f; + }(g.Aq); + d.pxb = k; + }, function(g, d, a) { + var b; + b = a(233); + d.rH = function() { + return b.ev(1); }; - }, function(f, c, a) { - var l, g, m, p, r, u, k, z, w, n; + }, function(g, d, a) { + var h, k; function b(a) { - if (!a) throw Error("Debug Assert Failed "); - } - - function d(a) { - this.log = a.log; - this.Na = a.Na; - this.Xz = a.Xz; - this.dO = a.dO; - this.Uz = a.Uz; - this.cq = a.cq; - this.nw = a.nw; - this.qY = a.qY; - this.YE = a.YE; - this.sb = a.sb; - this.config = this.sb.get(u.Ef)(); - this.$E = a.$E; - this.ZE = a.ZE; - this.B6 = a.B6; - this.k3 = a.k3; - this.l3 = a.l3; - this.j3 = a.j3; - this.K_ = a.K_; - this.Ke = a.Ke || !1; - this.WW = {}; - this.sL = {}; - this.HL = { - num_of_calls: 0, - num_of_movies: 0 - }; - this.pY = a.pY; - this.N2 = a.N2; - this.VN = a.VN; - this.qWa = a.qWa; - this.C_ = a.C_; - this.mY = a.mY; - this.yg = new k({ - log: this.log, - Na: this.Na, - Promise: Promise, - Ke: this.Ke, - iY: a.iY, - hY: a.hY, - $Z: a.$Z, - ZZ: a.ZZ, - Pz: z - }); - this.Xl = new l.kFa({ - log: this.log, - Na: this.Na, - $F: a.$F, - sb: this.sb - }); - this.Ui = this.yg.getData.bind(this.yg); - this.Ot = this.yg.setData.bind(this.yg); - this.mO = this.yg.oO.bind(this.yg); + var b; + b = a.value; + a = a.ff; + a.closed || (a.next(b), a.complete()); } - function h(a) { - var c; - b(w.Gn(a.poa)); - c = this.Na; - return a.poa.map(function(b) { - var d; - d = new g.cD(a.M, a.Vc, a.itb, c.getTime(), !0); - d.fe = b; - return d; - }); + function c(a) { + var b; + b = a.Y2; + a = a.ff; + a.closed || a.error(b); } - Object.defineProperty(c, "__esModule", { - value: !0 - }); - l = a(432); - g = a(431); - f = a(108); - m = a(221); - p = a(382); - r = a(106); - u = a(29); - k = a(430); - z = a(31).EventEmitter; - w = f.nn; - n = new p.Tba(w, new m.hS()); - c.RFa = d; - d.prototype.Dt = function(a, b) { - var c, d, g; - c = this; - a = a.map(function(a) { - a.mb = a.mb || { - pm: { - Ooa: !1 - }, - Zf: 0 - }; - w.ah(a.mb.Zf) || (a.mb.Zf = 0); - w.ah(a.Qb) && (a.mb.X = a.Qb); + h = this && this.__extends || function(a, b) { + function f() { + this.constructor = a; + } + for (var c in b) b.hasOwnProperty(c) && (a[c] = b[c]); + a.prototype = null === b ? Object.create(b) : (f.prototype = b.prototype, new f()); + }; + k = a(79); + g = function(a) { + function f(b, f) { + a.call(this); + this.OD = b; + this.ia = f; + } + h(f, a); + f.create = function(a, b) { + return new f(a, b); + }; + f.prototype.zf = function(a) { + var f, d, g; + f = this; + d = this.OD; + g = this.ia; + if (null == g) this.Oq ? a.closed || (a.next(this.value), a.complete()) : d.then(function(b) { + f.value = b; + f.Oq = !0; + a.closed || (a.next(b), a.complete()); + }, function(b) { + a.closed || a.error(b); + }).then(null, function(a) { + k.root.setTimeout(function() { + throw a; + }); + }); + else if (this.Oq) { + if (!a.closed) return g.nb(b, 0, { + value: this.value, + ff: a + }); + } else d.then(function(c) { + f.value = c; + f.Oq = !0; + a.closed || a.add(g.nb(b, 0, { + value: c, + ff: a + })); + }, function(b) { + a.closed || a.add(g.nb(c, 0, { + Y2: b, + ff: a + })); + }).then(null, function(a) { + k.root.setTimeout(function() { + throw a; + }); + }); + }; + return f; + }(a(10).ta); + d.Oga = g; + }, function(g, d, a) { + var b, c, h, k, f, p, m, r, u, x, v, l; + b = this && this.__extends || function(a, b) { + function f() { + this.constructor = a; + } + for (var c in b) b.hasOwnProperty(c) && (a[c] = b[c]); + a.prototype = null === b ? Object.create(b) : (f.prototype = b.prototype, new f()); + }; + c = a(103); + h = a(448); + k = a(447); + f = a(443); + p = a(971); + m = a(102); + r = a(970); + u = a(163); + x = a(10); + v = a(453); + l = a(238); + g = function(a) { + function d(b, f) { + a.call(this, null); + this.Kcb = b; + this.ia = f; + } + b(d, a); + d.create = function(a, b) { + if (null != a) { + if ("function" === typeof a[l.observable]) return a instanceof x.ta && !b ? a : new d(a, b); + if (c.isArray(a)) return new m.Vv(a, b); + if (k.Cta(a)) return new f.Oga(a, b); + if ("function" === typeof a[u.iterator] || "string" === typeof a) return new p.cJa(a, b); + if (h.ota(a)) return new r.iDa(a, b); + } + throw new TypeError((null !== a && typeof a || a) + " is not observable"); + }; + d.prototype.zf = function(a) { + var b, f; + b = this.Kcb; + f = this.ia; + return null == f ? b[l.observable]().subscribe(a) : b[l.observable]().subscribe(new v.Dfa(a, f, 0)); + }; + return d; + }(x.ta); + d.mda = g; + }, function(g, d, a) { + g = a(444); + d.from = g.mda.create; + }, function(g, d, a) { + g = a(102); + d.of = g.Vv.of; + }, function(g, d) { + d.Cta = function(a) { + return a && "function" !== typeof a.subscribe && "function" === typeof a.then; + }; + }, function(g, d) { + d.ota = function(a) { + return a && "number" === typeof a.length; + }; + }, function(g, d) { + d.rma = function(a, b) { + var r; + for (var c = 0, d = b.length; c < d; c++) + for (var g = b[c], f = Object.getOwnPropertyNames(g.prototype), p = 0, m = f.length; p < m; p++) { + r = f[p]; + a.prototype[r] = g.prototype[r]; + } + }; + }, function(g, d) { + d.NF = function() { + return function(a) { + this.Epb = a; + }; + }(); + }, function(g, d, a) { + var b; + b = a(450); + g = function() { + function a() { + this.dL = []; + } + a.prototype.uua = function() { + this.dL.push(new b.NF(this.ia.now())); + return this.dL.length - 1; + }; + a.prototype.vua = function(a) { + var c; + c = this.dL; + c[a] = new b.NF(c[a].Epb, this.ia.now()); + }; + return a; + }(); + d.zha = g; + }, function(g, d, a) { + var b, c, h, k, f, p, m; + b = this && this.__extends || function(a, b) { + function f() { + this.constructor = a; + } + for (var c in b) b.hasOwnProperty(c) && (a[c] = b[c]); + a.prototype = null === b ? Object.create(b) : (f.prototype = b.prototype, new f()); + }; + g = a(164); + c = a(10); + h = a(50); + k = a(71); + f = a(983); + a = function(a) { + function c(b, f) { + a.call(this); + this.source = b; + this.mV = f; + this.sm = 0; + this.nO = !1; + } + b(c, a); + c.prototype.zf = function(a) { + return this.KR().subscribe(a); + }; + c.prototype.KR = function() { + var a; + a = this.ZO; + if (!a || a.Ff) this.ZO = this.mV(); + return this.ZO; + }; + c.prototype.connect = function() { + var a; + a = this.ut; + a || (this.nO = !1, a = this.ut = new k.Uj(), a.add(this.source.subscribe(new p(this.KR(), this))), a.closed ? (this.ut = null, a = k.Uj.EMPTY) : this.ut = a); return a; - }); - this.config && this.config.dH && "undefined" !== typeof this.config.dH.maxNumberTitlesScheduled && a.splice(this.config.dH.maxNumberTitlesScheduled); - d = a.map(function(a) { - return c.Sca(a, b); - }).reduce(function(a, b) { - return a.concat(b); - }, []); - g = d.map(function(a) { - return a.M + "-" + a.type; - }); - this.log.trace("prepare tasks", g); - this.Xl.Ffa(d); - this.HL.num_of_calls++; - this.HL.num_of_movies += a.length; + }; + c.prototype.lU = function() { + return f.lU()(this); + }; + return c; + }(c.ta); + d.lca = a; + a = a.prototype; + d.d0a = { + Uy: { + value: null + }, + sm: { + value: 0, + writable: !0 + }, + ZO: { + value: null, + writable: !0 + }, + ut: { + value: null, + writable: !0 + }, + zf: { + value: a.zf + }, + nO: { + value: a.nO, + writable: !0 + }, + KR: { + value: a.KR + }, + connect: { + value: a.connect + }, + lU: { + value: a.lU + } }; - d.prototype.S5a = function(a, b) { - var c, d, g; - c = this; - d = a.map(function(a) { - return a.M + ""; - }); - a = a.map(function(a) { - a.mb = a.mb || { - pm: { - Ooa: !1 - }, - Zf: 0 - }; - a.mb.Sd = !0; - a.mb.Ena = d; - return c.Sca(a, b); - }).reduce(function(a, b) { - return a.concat(b); - }, []); - g = a.map(function(a) { - return a.M + "-" + a.type; - }); - this.log.trace("predownload tasks", g); - this.Xl.Ffa(a); + p = function(a) { + function f(b, f) { + a.call(this, b); + this.sl = f; + } + b(f, a); + f.prototype.Rb = function(b) { + this.ar(); + a.prototype.Rb.call(this, b); + }; + f.prototype.wb = function() { + this.sl.nO = !0; + this.ar(); + a.prototype.wb.call(this); + }; + f.prototype.ar = function() { + var a, b; + a = this.sl; + if (a) { + this.sl = null; + b = a.ut; + a.sm = 0; + a.ZO = null; + a.ut = null; + b && b.unsubscribe(); + } + }; + return f; + }(g.wPa); + (function() { + function a(a) { + this.sl = a; + } + a.prototype.call = function(a, b) { + var f; + f = this.sl; + f.sm++; + a = new m(a, f); + b = b.subscribe(a); + a.closed || (a.In = f.connect()); + return b; + }; + return a; + }()); + m = function(a) { + function f(b, f) { + a.call(this, b); + this.sl = f; + } + b(f, a); + f.prototype.ar = function() { + var a, b; + a = this.sl; + if (a) { + this.sl = null; + b = a.sm; + 0 >= b ? this.In = null : (a.sm = b - 1, 1 < b ? this.In = null : (b = this.In, a = a.ut, this.In = null, !a || b && a !== b || a.unsubscribe())); + } else this.In = null; + }; + return f; + }(h.Rh); + }, function(g, d, a) { + var b, c, h, k, f; + b = this && this.__extends || function(a, b) { + function f() { + this.constructor = a; + } + for (var c in b) b.hasOwnProperty(c) && (a[c] = b[c]); + a.prototype = null === b ? Object.create(b) : (f.prototype = b.prototype, new f()); }; - d.prototype.uh = function(a, b) { - this.sL[a] || (this.sL[a] = {}); - a = this.sL[a]; - a.kpa = (a.kpa | 0) + 1; - a.Kh = b; + g = a(50); + c = a(235); + d.OGb = function(a, b) { + void 0 === b && (b = 0); + return function(f) { + return f.Gf(new h(a, b)); + }; }; - d.prototype.getStats = function(a, b, c) { - var d; - d = c && this.sL[c] || {}; - d.Vt = this.Xl.getStats(a, b, c); - d.cache = this.yg.getStats(a, b); - d.rja = n.st(this.K_(), this.HL); - return d || {}; - }; - d.prototype.Sca = function(a, b) { - var c, d, f, m, l; - if (w.uf(a.poa)) return h.call(this, a); - a.Oc && (a.mb.Oc = a.Oc); - c = []; - d = a.M; - f = !!a.mb.Sd; - this.uh(d, a.Kh); - m = null; - if (this.yg.oO(d, "manifest")) this.log.trace("manifest exists in cache for " + d); - else { - l = new g.cD(d, a.Vc, "manifest", this.Na.getTime(), f, void 0, b); - m = l.id; - l.fe = this.Xz.bind(this, d, a.mb); - c.push(l); + h = function() { + function a(a, b) { + void 0 === b && (b = 0); + this.ia = a; + this.od = b; + } + a.prototype.call = function(a, b) { + return b.subscribe(new k(a, this.ia, this.od)); + }; + return a; + }(); + d.oyb = h; + k = function(a) { + function d(b, f, c) { + void 0 === c && (c = 0); + a.call(this, b); + this.ia = f; + this.od = c; + } + b(d, a); + d.hb = function(a) { + a.notification.observe(a.destination); + this.unsubscribe(); + }; + d.prototype.T9 = function(a) { + this.add(this.ia.nb(d.hb, this.od, new f(a, this.destination))); + }; + d.prototype.Tg = function(a) { + this.T9(c.Notification.Q1(a)); + }; + d.prototype.Rb = function(a) { + this.T9(c.Notification.koa(a)); + }; + d.prototype.wb = function() { + this.T9(c.Notification.M1()); + }; + return d; + }(g.Rh); + d.Dfa = k; + f = function() { + return function(a, b) { + this.notification = a; + this.destination = b; + }; + }(); + d.nyb = f; + }, function(g, d, a) { + var b, c, h, k, f, p, m; + b = this && this.__extends || function(a, b) { + function f() { + this.constructor = a; + } + for (var c in b) b.hasOwnProperty(c) && (a[c] = b[c]); + a.prototype = null === b ? Object.create(b) : (f.prototype = b.prototype, new f()); + }; + g = a(164); + c = a(988); + h = a(71); + k = a(453); + f = a(456); + p = a(455); + a = function(a) { + function d(b, f, c) { + void 0 === b && (b = Number.POSITIVE_INFINITY); + void 0 === f && (f = Number.POSITIVE_INFINITY); + a.call(this); + this.ia = c; + this.Qg = []; + this.eRa = 1 > b ? 1 : b; + this.wWa = 1 > f ? 1 : f; + } + b(d, a); + d.prototype.next = function(b) { + var f; + f = this.Gja(); + this.Qg.push(new m(f, b)); + this.sla(); + a.prototype.next.call(this, b); + }; + d.prototype.zf = function(a) { + var b, c, d; + b = this.sla(); + c = this.ia; + if (this.closed) throw new f.nA(); + this.II ? d = h.Uj.EMPTY : this.Ff ? d = h.Uj.EMPTY : (this.hs.push(a), d = new p.yha(this, a)); + c && a.add(a = new k.Dfa(a, c)); + for (var c = b.length, g = 0; g < c && !a.closed; g++) a.next(b[g].value); + this.II ? a.error(this.qaa) : this.Ff && a.complete(); + return d; + }; + d.prototype.Gja = function() { + return (this.ia || c.pi).now(); + }; + d.prototype.sla = function() { + for (var a = this.Gja(), b = this.eRa, f = this.wWa, c = this.Qg, d = c.length, g = 0; g < d && !(a - c[g].time < f);) g++; + d > b && (g = Math.max(g, d - b)); + 0 < g && c.splice(0, g); + return c; + }; + return d; + }(g.Ei); + d.LF = a; + m = function() { + return function(a, b) { + this.time = a; + this.value = b; + }; + }(); + }, function(g, d, a) { + var b; + b = this && this.__extends || function(a, b) { + function c() { + this.constructor = a; + } + for (var f in b) b.hasOwnProperty(f) && (a[f] = b[f]); + a.prototype = null === b ? Object.create(b) : (c.prototype = b.prototype, new c()); + }; + g = function(a) { + function c(b, f) { + a.call(this); + this.cL = b; + this.ff = f; + this.closed = !1; + } + b(c, a); + c.prototype.unsubscribe = function() { + var a, b; + if (!this.closed) { + this.closed = !0; + a = this.cL; + b = a.hs; + this.cL = null; + !b || 0 === b.length || a.Ff || a.closed || (a = b.indexOf(this.ff), -1 !== a && b.splice(a, 1)); + } + }; + return c; + }(a(71).Uj); + d.yha = g; + }, function(g, d) { + var a; + a = this && this.__extends || function(a, c) { + function b() { + this.constructor = a; + } + for (var d in c) c.hasOwnProperty(d) && (a[d] = c[d]); + a.prototype = null === c ? Object.create(c) : (b.prototype = c.prototype, new b()); + }; + g = function(b) { + function c() { + var a; + a = b.call(this, "object unsubscribed"); + this.name = a.name = "ObjectUnsubscribedError"; + this.stack = a.stack; + this.message = a.message; } - this.dO && this.qY() && (this.yg.oO(d, "ldl") ? this.Ke && this.log.trace("ldl exists in cache for " + d) : (l = new g.cD(d, a.Vc, "ldl", this.Na.getTime(), f, m, b), l.fe = this.dO.bind(this, d), c.push(l))); - this.Uz && this.cq && this.pY() && (this.N2(d) ? this.Ke && this.log.trace("headers/media exists in cache for " + d) : (d = new g.cD(a.M, a.Vc, "getHeaders", this.Na.getTime(), f, m, b), d.fe = this.Uz.bind(this, a.M, a.mb), c.push(d), b = new g.cD(a.M, a.Vc, "getMedia", this.Na.getTime(), f, m, b), b.fe = this.cq.bind(this, a.M, a.mb), c.push(b))); + a(c, b); return c; + }(Error); + d.nA = g; + }, function(g, d) { + d.Eu = { + e: {} }; - d.prototype.qZa = function(a) { - this.l3(a); + }, function(g, d) { + d.qb = function(a) { + return "function" === typeof a; }; - d.prototype.pZa = function(a) { - this.log.trace("task scheduler paused on playback created"); - this.Xl.pause(); - this.$E && this.yg.vY(a, ["manifest"]); - this.ZE && this.yg.vY(a, ["ldl"]); - this.k3(a); + }, function(g, d) { + d.ne = function(a) { + return null != a && "object" === typeof a; }; - d.prototype.zka = function() { - this.log.info("track changed, clearing all manifests from cache"); - this.yg.vY("none", ["manifest"]); + }, function(g, d) { + Object.defineProperty(d, "__esModule", { + value: !0 + }); + d.ufa = "NetworkMonitorConfigSymbol"; + }, function(g, d) { + Object.defineProperty(d, "__esModule", { + value: !0 + }); + d.xY = "QueryStringDataProviderSymbol"; + }, function(g, d, a) { + var c, h; + + function b(a, b, c, d, g) { + this.version = a; + this.FD = b; + this.IAa = c; + this.tf = d; + this.aq = g; + this.gp = []; + } + Object.defineProperty(d, "__esModule", { + value: !0 + }); + c = a(2); + h = a(45); + b.prototype.load = function(a) { + return this.Gdb(a); }; - d.prototype.yka = function(a) { - var b; - b = this; - this.YE ? this.yg.clearData(a, "manifest") : this.yg.oO(a, "manifest") && this.yg.getData(a, "manifest").then(function(c) { - c.isSupplemental || b.yg.clearData(a, "manifest"); - }, function(c) { - b.log.warn("Failed to get manifest for movieId [" + a + "] from cacheManager.", c); - }); - this.yg.clearData(a, "ldl", void 0, !0); - this.zY(a); - this.j3(); + b.prototype.add = function(a) { + this.gp.push(a); + return this.v8(); }; - d.prototype.zY = function(a) { - this.WW[a] = void 0; + b.prototype.remove = function(a, b) { + a = this.cra(this.Fj(a, b)); + return 0 <= a ? (this.gp.splice(a, 1), this.v8()) : Promise.resolve(); }; - d.prototype.KF = function(a) { - return this.WW[a]; + b.prototype.update = function(a, b) { + b = this.cra(this.Fj(a, b)); + return 0 <= b ? (this.gp[b] = a, this.v8()) : Promise.resolve(); }; - d.prototype.Aha = function(a) { - return this.WW[a] = this.B6(); + b.prototype.Gdb = function(a) { + var b; + b = this; + this.kua || (this.kua = new Promise(function(f, d) { + function g(a) { + b.L3a().then(function() { + d(a); + })["catch"](function() { + d(a); + }); + } + b.M4().then(function(a) { + b.storage = a; + return b.storage.load(b.FD); + }).then(function(c) { + var d; + c = c.value; + try { + d = a(c); + b.version = d.version; + b.gp = d.data; + f(); + } catch (v) { + g(v); + } + })["catch"](function(a) { + a.T !== c.H.dm ? d(a) : f(); + }); + })); + return this.kua; }; - d.prototype.U5a = function() { - var a; - a = []; - a = this.yg.ae().map(function(a) { - return { - Zm: parseInt(a.movieId, 10), - state: a.state, - Ap: a.type, - size: a.size || void 0 - }; - }); - this.C_().map(function(b) { - 2 === b.cA ? a.push({ - Zm: b.M, - state: "cached", - Ap: r.vd.Wh.oC, - size: void 0 - }) : b.IVa && !b.k0a && a.push({ - Zm: b.M, - state: "loading", - Ap: r.vd.Wh.oC, - size: void 0 + b.prototype.v8 = function() { + var a, b, c, d, g; + a = this; + if (!this.IAa) return Promise.resolve(); + if (this.jV) { + d = new Promise(function(a, f) { + b = a; + c = f; }); - b.eta && 0 < b.eta && b.Xfa && 0 < b.Xfa ? a.push({ - Zm: b.M, - state: "cached", - Ap: r.vd.Wh.MEDIA, - size: void 0 - }) : b.M5a && !b.L5a && a.push({ - Zm: b.M, - state: "loading", - Ap: r.vd.Wh.MEDIA, - size: void 0 + g = function() { + a.jV = d; + a.HAa().then(function() { + b(); + })["catch"](function(a) { + c(a); + }); + }; + this.jV.then(g)["catch"](g); + return d; + } + return this.jV = this.HAa(); + }; + b.prototype.HAa = function() { + var a, f; + a = this; + f = this.aq(); + return new Promise(function(d, g) { + a.M4().then(function(b) { + return b.save(a.FD, f, !1); + }).then(function() { + d(); + })["catch"](function(a) { + g(b.tL(c.I.rMa, a)); }); }); - return a; }; - d.prototype.tla = function(a) { - return a && 0 <= a.indexOf("billboard"); + b.prototype.L3a = function() { + var a; + a = this; + return this.IAa ? new Promise(function(b, c) { + a.M4().then(function(b) { + return b.remove(a.FD); + }).then(function() { + b(); + })["catch"](function(a) { + c(a); + }); + }) : Promise.resolve(); }; - }, function(f, c, a) { - var b, d, h, l, g, m, p, r, u, k, z, w, n, x, y, C, F, q, T, ca, Z, O, B, ja, V, D, S; - Object.defineProperty(c, "__esModule", { + b.prototype.M4 = function() { + return this.storage ? Promise.resolve(this.storage) : this.tf.create(); + }; + b.prototype.Fj = function(a, b) { + for (var f = 0; f < this.gp.length; ++f) + if (b(this.gp[f], a)) return this.gp[f]; + }; + b.prototype.cra = function(a) { + return a ? this.gp.indexOf(a) : -1; + }; + b.tL = function(a, b, d) { + return b.T && b.cause ? new h.Ub(a, b.T, void 0, void 0, void 0, d, void 0, b.cause) : void 0 !== b.tc ? (d = (b.message ? b.message + " " : "") + (d ? d : ""), b.code = a, b.message = "" === d ? void 0 : d, b) : b instanceof Error ? new h.Ub(a, c.H.qg, void 0, void 0, void 0, d, b.stack, b) : new h.Ub(a, c.H.Sh, void 0, void 0, void 0, d, void 0, b); + }; + d.gea = b; + }, function(g, d) { + Object.defineProperty(d, "__esModule", { value: !0 }); - f = a(18); - b = a(28); - d = a(118); - h = a(89); - l = a(187); - g = a(4); - m = a(6); - p = a(92); - r = a(25); - u = a(17); - c = a(2); - k = a(3); - z = a(20); - w = a(147); - n = a(7); - x = a(126); - y = a(114); - C = a(107); - F = a(58); - q = a(195); - T = a(14); - ca = a(36); - Z = a(32); - O = a(433); - B = a(144); - ja = a(203); - V = a(145); - D = a(104); - f.Dd(c.v.n9, function(a) { - var ka, ua, la, da, A, H, P, wa, na, Y, aa, ta, db, Ba, Ya, Ra; - - function c() { - var a, b, c; - if (g.config.Rm) { - a = {}; - a.trigger = F.tc.FCa.BBa; - b = ka.getTime(); - c = S.getStats(Ya, b); - a.startoffset = Ya; - Ya = a.endoffset = b; - a.cache = JSON.stringify(c.cache); - a.tasks = JSON.stringify(c.Vt); - a.general = JSON.stringify(c.rja); - a = new p.Zx(null, "prepare", "info", a); - t._cad_global.logBatcher.Vl(a); - } - } + d.Nca = "DrmDataFactorySymbol"; + }, function(g, d) { + function a() {} + Object.defineProperty(d, "__esModule", { + value: !0 + }); + a.WMa = "PSK"; + a.PJa = "MGK"; + a.dxb = "MGK_WITH_FALLBACK"; + a.cxb = "MGK_JWE"; + a.Mwb = "JWEJS_RSA"; + a.qea = "JWK_RSA"; + a.Nwb = "JWK_RSAES"; + d.bM = a; + }, function(g, d, a) { + var h; - function f(a, b, c) { - var h, f, m, p; - h = la.decode(a); - f = a.audioTracks.map(function(a) { - a.Ab = a.id; - return a; - }); - m = l.S4a(a, f, []); - h.video_tracks && h.video_tracks.length && h.video_tracks[0].streams && h.video_tracks[0].streams.length && (p = h.video_tracks[0].streams[0].content_profile); - a = g.iha(b.Oc); - p = g.hha(!!h.choiceMap, p); - p = d.Dj.SY(Object.assign({}, a, p)); - return { - M: c, - Vc: 0, - SXa: function() { - return { - Sa: h, - ki: !1, - LX: m[0].gc.Ab - }; - }, - config: p, - Sd: !!b.Sd, - Ena: b.Ena - }; - } + function b(a, b) { + this.ue = b; + this.eo = Math.floor(a); + this.display = this.eo + " " + this.ue.name; + } - function v(a, b) { - S.Ui(a, "ldl").then(function(a) { - b(null, a); - })["catch"](function(c) { - wa.trace("ldl not available in cache", c); - S.Ui(a, "manifest").then(function(c) { - var h, f, m; - - function d(b) { - wa.warn("ldl is now invalid", b); - f.close(); - S.Ot(a, "ldl", void 0); - S.zY(a); - } - if (S.mO(a, "ldl")) b({ - status: F.tc.ud.Jx - }); - else if (c.audioEncrypted || c.videoEncrypted) - if (g.config.cia && na && na != a) b({ - status: F.tc.ud.UI - }); - else if (g.config.dia && Y && Y != a) b({ - status: F.tc.ud.bC - }); - else { - na && na != a && (aa[a] = (aa[a] | 0) + 1); - Y && Y != a && (ta[a] = (ta[a] | 0) + 1); - h = c.psshb64; - f = G({ - XF: "cenc", - ria: wa, - $v: function(b) { - var d; - d = []; - b.Fj.forEach(function(a) { - d.push({ - sessionId: a.sessionId, - dataBase64: k.Dp(a.data) - }); - }); - b = { - Fj: d, - cN: [c.drmContextId], - Rf: F.tc.mha(b.Rf), - Dc: c.playbackContextId, - aa: S.Aha(a) - }; - wa.trace("xid created ", { - MovieId: a, - xid: b.aa - }); - return A.Yy(b, db); - }, - H$a: void 0, - FUa: d, - Yc: void 0, - DP: T.Gb, - Na: H - }); - S.Ot(a, "ldl", f, function() { - f.close(); - }); - m = P.shift(); - k.log.trace("cached mediakeys count " + P.length); - return f.create(g.config.ce, m).then(function() { - return f.kd(x.Oo.vC, [k.Pi(h[0])], !0); - }).then(function() { - b(null, f); - })["catch"](function(a) { - d(a); - b(a); - }); - } else b({ - status: F.tc.ud.TI - }); - })["catch"](function(a) { - wa.warn("Manifest not available for ldl request", a); - b({ - status: F.tc.ud.Jx - }); - }); - }); - } - - function N(a, b) { - S.Ui(a, "ldl").then(function(a) { - b(null, a); - })["catch"](function(c) { - wa.trace("ldl not available in cache", c); - S.Ui(a, "manifest").then(function(c) { - var f, m; - - function d(b, c) { - wa.warn(b + " LDL is now invalid.", c); - S.Ot(a, "ldl", void 0); - S.zY(a); - } - if (S.mO(a, "ldl")) b({ - status: F.tc.ud.Jx - }); - else if (c.audioEncrypted || c.videoEncrypted) - if (g.config.cia && na && na != a) b({ - status: F.tc.ud.UI - }); - else if (g.config.dia && Y && Y != a) b({ - status: F.tc.ud.bC - }); - else { - na && na != a && (aa[a] = (aa[a] | 0) + 1); - Y && Y != a && (ta[a] = (ta[a] | 0) + 1); - f = c.psshb64; - m = k.Z.get(y.kJ)().then(function(b) { - var d; - d = { - type: x.Oo.vC, - dla: k.Pi(f[0]), - context: { - ce: g.config.ce, - M: a, - aa: S.Aha(a), - Dc: c.playbackContextId, - Is: c.drmContextId, - profileId: h.He.profile.id - } - }; - return b.Dt(d); - }).then(function(a) { - b(null, a); - return a; - })["catch"](function(a) { - d("Unable to prepare an EME session.", a); - }); - S.Ot(a, "ldl", m, function() { - try { - m.then(function(a) { - a.close().subscribe(void 0, function(a) { - d("Unable to cleanup LDL session, unable to close the session.", a); - }); - })["catch"](function(a) { - d("Unable to cleanup LDL session, Unable to get the session.", a); - }); - } catch (tc) { - d("Unable to cleanup LDL session, unexpected exception.", tc); - } - }); - } else b({ - status: F.tc.ud.TI - }); - })["catch"](function(a) { - wa.warn("Manifest not available for ldl request", a); - b({ - status: F.tc.ud.Jx - }); - }); - }); - } - - function G(a) { - var b, c; - b = new ca.Ne.cr(a.ria, a.$v, a.H$a, { - Ke: !1, - dt: !1 - }); - c = k.Z.get(C.ky); - return ca.Ne.kn(a.ria, a.XF, a.Yc, { - Ke: !1, - dt: !1, - Mla: g.config.Sh, - Qqa: { - ona: g.config.Pqa, - Iga: g.config.O4 - }, - Ta: b, - $P: g.config.iH, - Ba: void 0, - UB: g.config.UB, - Dx: g.config.QZ, - onerror: a.FUa, - DP: a.DP, - Na: a.Na, - B3: !1, - pB: g.config.m6 && g.config.pB, - SF: g.config.SF, - Yfa: c.HM(), - t6: c.QE([]), - eA: g.config.eA - }); - } - - function ia(a, b) { - 0 === a && k.log.trace("generete mediakeys for pre-caching"); - a < b ? ca.Ne.kn.NE && ca.Ne.kn.NE("cenc", g.config.ce, k.log, g.config.m6 && g.config.pB).then(function(c) { - P.push(c); - Z.Xa(ia.bind(null, ++a, b)); - })["catch"](function(a) { - k.log.error("abort pre-caching due to error in creating mediakeys", a); - }) : k.log.trace("pre-cached mediakeys complete, number of instances: " + b); - } - ka = { - getTime: u.Ra, - aO: u.On - }; - ua = k.Z.get(z.rd); - la = k.Z.get(B.BC); - da = k.Z.get(ja.MT); - A = k.Z.get(V.yC); - H = ka; - P = []; - wa = k.Cc("VideoPreparer"); - aa = {}; - ta = {}; - db = { - Za: b.Za, - log: wa - }; - if (!ca.Ne.kn || !ca.Ne.cr) { - Ba = ca.T$(); - ca.Ne.kn = Ba.ph; - ca.Ne.cr = Ba.request; - } - wa.info("instance created"); - S = new O.RFa({ - log: wa, - Na: ka, - B6: u.Qga, - Xz: function(a, b, c) { - function d() { - var c, d; - ua.ov(b) || (b = { - trackingId: b - }); - c = { - jf: da.Zga(b.pm, b.jf), - dg: a, - $s: !!b.Qf, - eja: F.tc.vu.faa - }; - db.profile = h.He.profile; - wa.trace("manifest request for:" + a); - d = k.Z.get(D.ey)(); - return da.Xz(c, d); - } - wa.trace("getManifest: " + a); - g.config.wLa && b && b.Sa && !S.mO(a, "manifest") && (!b.Sa.clientGenesis || Date.now() - b.Sa.clientGenesis < g.config.lpa) ? (b.Sa.ax = ka.getTime(), b.Sa.eB = ka.getTime(), S.Ot(a, "manifest", b.Sa), c(null, b.Sa)) : S.Ui(a, "manifest").then(function(a) { - c(null, a); - })["catch"](function(b) { - var g; - wa.trace("manifest not available in cache", b); - if (S.mO(a, "manifest")) c({ - status: F.tc.ud.Jx - }); - else { - g = ka.getTime(); - b = d(); - S.Ot(a, "manifest", b); - b.then(function(b) { - b.ax = g; - b.eB = ka.getTime(); - S.Ot(a, "manifest", b); - c(null, b); - })["catch"](function(b) { - c(b); - S.Ot(a, "manifest", void 0); - }); - } - }); - }, - dO: g.config.dn ? N : v, - qY: function() { - return g.config.RZ && r.IO(g.config); - }, - Uz: function(a, b, c) { - S.Ui(a, "manifest").then(function(g) { - g = f(g, b, a); - d.Oi.tga(g, function() { - c(null, {}); - }); - })["catch"](function(a) { - wa.error("Exception in getHeaders", a); - c(a); - }); - }, - cq: function(a, b, c) { - S.Ui(a, "manifest").then(function(g) { - var h, m, l; - h = f(g, b, a); - m = g.runtime; - g = k.Z.get(w.QI).nX({ - TB: n.Cb(g.bookmark.position), - M: a, - bH: n.Cb(m), - Pb: b - }).qa(n.Ma); - k.Z.get(z.rd).Hn(b.X) && (g = b.X); - h.Qb = g; - if (na != a || b.Sd) { - l = function(b) { - b.movieId === a && b.stats && b.stats.prebuffcomplete && (d.Oi.removeEventListener("prebuffstats", l), c(null, {})); - }; - d.Oi.addEventListener("prebuffstats", l); - d.Oi.tga(h); - } else c({ - status: F.tc.ud.bC - }); - })["catch"](function(a) { - wa.error("Exception in getMedia", a); - c(a); - }); - }, - nw: function() { - return d.Oi.nw(); - }, - pY: function() { - return g.config.iN; - }, - N2: function(a) { - var b; - b = !1; - d.Oi.tM().forEach(function(c) { - c.M == a && (b = !0); - }); - return b; - }, - VN: function(a) { - var b; - d.Oi.tM().forEach(function(c) { - c.M == a && (b = c.ad, b.X = c.En); - }); - return b; - }, - C_: function() { - return d.Oi.tM().map(function(a) { - var b, c; - b = d.Oi.z1a(a.M); - c = b[k.Df.Gf.AUDIO] && b[k.Df.Gf.AUDIO].data; - b = b[k.Df.Gf.VIDEO] && b[k.Df.Gf.VIDEO].data; - return { - M: a.M, - cA: a.cA, - Xfa: c && c.length, - eta: b && b.length, - IVa: ua.Hn(a.ad.GN), - k0a: ua.Hn(a.ad.UO), - M5a: ua.Hn(a.ad.WA), - L5a: ua.Hn(a.ad.eH) - }; - }); - }, - k3: function(a) { - na = a; - }, - l3: function(a) { - Ra && (Ra.xY(), c()); - Y = a; - }, - j3: function() { - Ra && Ra.j5(); - Y = na = void 0; - }, - K_: function() { - return { - ldls_after_create: aa, - ldls_after_start: ta - }; - }, - mY: function(a, b, c) { - var d, g; - try { - d = S.VN(a); - g = d && d.X === b; - d && d.eH ? ua.ah(b) && !g ? c(!1) : S.Ui(a, "manifest").then(function(b) { - b.Mtb ? S.Ui(a, "ldl").then(function() { - c(!0); - })["catch"](function() { - c(!1); - }) : c(!0); - })["catch"](function() { - c(!1); - }) : c(!1); - } catch (Db) { - c(!1); - } - }, - YE: g.config.YE, - $E: g.config.$E, - ZE: g.config.ZE, - $F: g.config.W5a, - iY: g.config.Z5a, - hY: g.config.X5a, - $Z: g.config.lpa, - ZZ: g.config.Y5a, - Ke: !1, - sb: k.Z - }); - t._cad_global.videoPreparer = S; - Ba = g.config.g5a; - Ya = ka.getTime(); - Ba && (Ra = new q.Zaa(Ba, c), Ra.j5()); - g.config.RZ && r.IO(g.config) && g.config.epa && Z.Xa(ia.bind(null, 0, g.config.epa)); - a(m.cb); - }); - }, function(f, c, a) { - var b, d, h, l, g, m, p, r, u, k, z, w; - Object.defineProperty(c, "__esModule", { + function c(a, b, c) { + this.ue = a; + this.name = b; + this.Qa = c ? c : this; + h.zk(this, "base"); + } + Object.defineProperty(d, "__esModule", { value: !0 }); - f = a(18); - b = a(115); - d = a(90); - h = a(89); - l = a(190); - g = a(102); - m = a(6); - p = a(25); - c = a(2); - r = a(3); - u = a(94); - k = a(8); - z = a(14); - w = a(5); - f.Dd(c.v.p9, function(a) { - function c(a, b) { - function c(a) { - a = new u(r.Pi(a)); - a.ef(); - return { - ht: a.Cpa(), - vUa: a.Cpa() - }; - } - return { - encrypt: function(b, c) { - var d; - b = z.oc(b) ? r.wI(b) : b; - d = w.mr.getRandomValues(new Uint8Array(16)); - p.NA(w.Gl.encrypt({ - name: "AES-CBC", - iv: d - }, a, b)).then(function(a) { - var b, g; - a = new Uint8Array(a); - b = []; - g = new u(b); - g.A6(2); - g.kta(d); - g.kta(a); - a = r.Dp(b); - c({ - success: !0, - encryptedDataAsn1Base64: a - }); - }, function(a) { - k.ea(!1, "Encrypt error: " + a); - c({ - success: !1 - }); - }); - }, - decrypt: function(b, d) { - b = c(b); - p.NA(w.Gl.decrypt({ - name: "AES-CBC", - iv: b.ht - }, a, b.vUa)).then(function(a) { - a = new Uint8Array(a); - d({ - success: !0, - text: r.XB(a) - }); - }, function(a) { - k.ea(!1, "Decrypt error: " + a); - d({ - success: !1 - }); - }); - }, - hmac: function(a, c) { - a = z.oc(a) ? r.wI(a) : a; - p.NA(w.Gl.sign({ - name: "HMAC", - hash: { - name: "SHA-256" - } - }, b, a)).then(function(a) { - a = new Uint8Array(a); - c({ - success: !0, - hmacBase64: r.Dp(a) - }); - }, function(a) { - k.ea(!1, "Hmac error: " + a); - c({ - success: !1 - }); - }); - } - }; - } - b.Fu.mdx = { - getEsn: function() { - return d.Bg.$d; - }, - createCryptoContext: function(a) { - var b, c, d; - b = l.Tk.Le.getStateForMdx(h.He.profile.id); - c = b.cryptoContext; - d = b.masterToken; - b = b.userIdToken; - d && b ? (k.ea(c), d = ["1", r.Dp(JSON.stringify(d.toJSON())), r.Dp(JSON.stringify(b.toJSON()))].join(), a({ - success: !0, - cryptoContext: { - cTicket: d, - encrypt: function(a, b) { - a = z.oc(a) ? r.wI(a) : a; - c.encrypt(a, { - result: function(a) { - a = r.Dp(a); - b({ - success: !0, - mslEncryptionEnvelopeBase64: a - }); - }, - timeout: function() { - b({ - success: !1 - }); - }, - error: function(a) { - k.ea(!1, "Encrypt error: " + a); - b({ - success: !1 - }); - } - }); - }, - decrypt: function(a, b) { - a = r.Pi(a); - c.decrypt(a, { - result: function(a) { - b({ - success: !0, - text: r.XB(a) - }); - }, - timeout: function() { - b({ - success: !1 - }); - }, - error: function(a) { - k.ea(!1, "Decrypt error: " + a); - b({ - success: !1 - }); - } - }); - }, - hmac: function(a, b) { - a = z.oc(a) ? r.wI(a) : a; - c.sign(a, { - result: function(a) { - b({ - success: !0, - hmacBase64: r.Dp(a) - }); - }, - timeout: function() { - b({ - success: !1 - }); - }, - error: function(a) { - k.ea(!1, "Hmac error: " + a); - b({ - success: !1 - }); - } - }); - } - } - })) : (k.ea(!1, "Must login first"), a({ - success: !1 - })); - }, - createCryptoContextFromSharedSecret: function(a, b) { - var d; - d = r.Pi(a); - a = d.subarray(32, 48); - d = d.subarray(0, 32); - if (16 != a.length || 32 != d.length) throw Error("Bad shared secret"); - Promise.all([p.NA(w.Gl.importKey("raw", a, { - name: "AES-CBC" - }, !1, ["encrypt", "decrypt"])), p.NA(w.Gl.importKey("raw", d, { - name: "HMAC", - hash: { - name: "SHA-256" - } - }, !1, ["sign", "verify"]))]).then(function(a) { - b({ - success: !0, - cryptoContext: c(a[0], a[1]) - }); - }, function() { - b({ - success: !1 - }); - }); - }, - getServerEpoch: function() { - return g.ti.mka(); - } + h = a(51); + c.prototype.dI = function(a) { + return this.ue == a.ue; + }; + c.prototype.toJSON = function() { + return this.name; + }; + d.rN = c; + b.prototype.ma = function(a) { + return this.ue.dI(a) ? this.eo : Math.floor(this.eo * this.ue.ue / a.ue); + }; + b.prototype.N8 = function(a) { + return this.ue.dI(a) ? this.eo : this.eo * this.ue.ue / a.ue; + }; + b.prototype.to = function(a) { + return new b(this.ma(a), a); + }; + b.prototype.toString = function() { + return this.display; + }; + b.prototype.toJSON = function() { + return { + magnitude: this.eo, + units: this.ue.name }; - a(m.cb); - }); - }, function(f, c, a) { - var b, d, h, l, g, m, p, r, u; - Object.defineProperty(c, "__esModule", { + }; + b.prototype.add = function(a) { + return this.Hna(a); + }; + b.prototype.Gd = function(a) { + return this.Hna(a, function(a) { + return -a; + }); + }; + b.prototype.scale = function(a) { + return new b(this.ma(this.ue.Qa) * a, this.ue.Qa); + }; + b.prototype.ql = function(a) { + return this.ma(this.ue.Qa) - a.ma(this.ue.Qa); + }; + b.prototype.dI = function(a) { + return 0 == this.ql(a); + }; + b.prototype.Mta = function() { + return 0 == this.eo; + }; + b.prototype.vta = function() { + return 0 > this.eo; + }; + b.prototype.zta = function() { + return 0 < this.eo; + }; + b.prototype.Hna = function(a, f) { + f = void 0 === f ? function(a) { + return a; + } : f; + return new b(this.ma(this.ue.Qa) + f(a.ma(this.ue.Qa)), this.ue.Qa); + }; + d.Ko = b; + }, function(g, d) { + Object.defineProperty(d, "__esModule", { value: !0 }); - f = a(115); - b = a(6); - d = a(4); - h = a(16); - c = a(12); - l = a(3); - g = a(65); - m = a(84); - p = a(8); - r = a(14); - u = a(5); - t.netflix = t.netflix || {}; - p.ea(!t.netflix.player); - t.netflix.player = { - VideoSession: f.TFa, - diag: { - togglePanel: function(a, b) { - var c; - if (!d.config || d.config.tH) { - switch (a) { - case "info": - c = h.Uo.map(function(a) { - return a.RP; - }); - break; - case "streams": - c = h.Uo.map(function(a) { - return a.z5a; - }); - break; - case "log": - c = []; - } - c && c.forEach(function(a) { - r.$a(b) ? b ? a.show() : a.dw() : a.toggle(); - }); - } - }, - addNccpLogMessageSink: function(a) { - l.Z.get(g.jr).addListener({ - $qa: function() {}, - nna: function(b) { - a({ - data: b.data - }); - } - }); - } - }, - log: l.Cc("Ext"), - LogLevel: c.wh, - addLogSink: function(a, b) { - l.Z.get(m.ou).cB(a, b); - }, - getVersion: function() { - return "6.0011.853.011"; - }, - isWidevineSupported: function(a) { - var d; + d.jea = "Injector"; + d.nw = 145152E5; + }, function(g, d, a) { + var h; - function c(a) { - return function(b, c) { - return c.contentType == a; - }; - } - if ("function" !== typeof a) throw Error("input param is not a function"); - d = [{ - distinctiveIdentifier: "not-allowed", - videoCapabilities: [{ - contentType: b.qn, - robustness: "SW_SECURE_DECODE" - }], - audioCapabilities: [{ - contentType: b.Vx, - robustness: "SW_SECURE_CRYPTO" - }] - }]; - try { - u.Tg.requestMediaKeySystemAccess("com.widevine.alpha", d).then(function(d) { - var g; - g = d.getConfiguration(); - d = g.videoCapabilities || []; - g = (g.audioCapabilities || []).reduce(c(b.Vx), !1); - d = d.reduce(c(b.qn), !1); - a(g && d); - })["catch"](function() { - a(!1); - }); - } catch (G) { - a(!1); + function b(a) { + return function(b) { + function f(f) { + return null !== f && null !== f.target && f.target.i7(a)(b); } - } + f.zva = new h.Metadata(a, b); + return f; + }; + } + + function c(a, b) { + a = a.ks; + return null !== a ? b(a) ? !0 : c(a, b) : !1; + } + Object.defineProperty(d, "__esModule", { + value: !0 + }); + g = a(32); + h = a(67); + d.yBa = c; + d.WAa = b; + d.Vva = b(g.ft); + d.DBa = function(a) { + return function(b) { + var f; + return null !== b ? (f = b.bH[0], "string" === typeof a ? f.se === a : a === b.bH[0].Wi) : !1; + }; }; - }, function(f, c, a) { - var b, d, h, l, g, m, p; - Object.defineProperty(c, "__esModule", { + }, function(g, d, a) { + var b, c; + Object.defineProperty(d, "__esModule", { value: !0 }); - f = a(18); - b = a(115); - d = a(6); - c = a(2); - h = a(4); - l = a(197); - g = a(3); - m = a(16); - p = a(118); - f.Dd(c.v.q9, function(a) { - var c; - if (h.config.SUa) { - c = g.Z.get(l.sU); - b.Fu.test = { - pboRequests: c.Ta, - playbacks: m.Uo, - aseManager: { - cacheDestroy: function() { - return p.Oi.sga(); - } + b = a(247); + c = a(246); + g = function() { + function a(a) { + this.ub = a; + this.cZ = new c.kW(this.ub); + this.bZ = new b.jW(this.ub); + } + a.prototype.SL = function() { + return this.cZ.SL(); + }; + a.prototype.Lp = function(a) { + return this.bZ.Lp(a); + }; + return a; + }(); + d.aw = g; + }, function(g, d, a) { + var b, c, h, k; + Object.defineProperty(d, "__esModule", { + value: !0 + }); + b = a(32); + c = a(104); + h = a(67); + k = a(1026); + g = function() { + function a(a, f, d, g) { + this.id = c.id(); + this.type = a; + this.se = d; + this.name = new k.eOa(f || ""); + this.Cc = []; + a = null; + "string" === typeof g ? a = new h.Metadata(b.ft, g) : g instanceof h.Metadata && (a = g); + null !== a && this.Cc.push(a); + } + a.prototype.usa = function(a) { + for (var b = 0, f = this.Cc; b < f.length; b++) + if (f[b].key === a) return !0; + return !1; + }; + a.prototype.isArray = function() { + return this.usa(b.pw); + }; + a.prototype.Feb = function(a) { + return this.i7(b.pw)(a); + }; + a.prototype.V5 = function() { + return this.usa(b.ft); + }; + a.prototype.Z5 = function() { + return this.Cc.some(function(a) { + return a.key !== b.nF && a.key !== b.pw && a.key !== b.WM && a.key !== b.PF && a.key !== b.ft; + }); + }; + a.prototype.yta = function() { + return this.i7(b.Cfa)(!0); + }; + a.prototype.N9a = function() { + return this.V5() ? this.Cc.filter(function(a) { + return a.key === b.ft; + })[0] : null; + }; + a.prototype.I8a = function() { + return this.Z5() ? this.Cc.filter(function(a) { + return a.key !== b.nF && a.key !== b.pw && a.key !== b.WM && a.key !== b.PF && a.key !== b.ft; + }) : null; + }; + a.prototype.i7 = function(a) { + var b; + b = this; + return function(f) { + var g; + for (var c = 0, d = b.Cc; c < d.length; c++) { + g = d[c]; + if (g.key === a && g.value === f) return !0; } + return !1; }; + }; + return a; + }(); + d.nN = g; + }, function(g, d, a) { + var b, c, h, k; + Object.defineProperty(d, "__esModule", { + value: !0 + }); + b = a(54); + c = a(32); + h = a(67); + k = a(90); + g = function() { + function a(a) { + this.tRa = a; } - a(d.cb); + a.prototype.yrb = function() { + return this.tRa(); + }; + return a; + }(); + d.MX = g; + d.l = function(a) { + return function(f, d, g) { + var m; + if (void 0 === a) throw Error(b.jQa(f.name)); + m = new h.Metadata(c.nF, a); + "number" === typeof g ? k.Az(f, d, g, m) : k.oL(f, d, m); + }; + }; + }, function(g, d, a) { + var b; + Object.defineProperty(d, "__esModule", { + value: !0 }); - }, function(f, c, a) { - var b, d, h, l, g, m, p, r, u, k, z, w, n, x, y, C; - Object.defineProperty(c, "__esModule", { + b = a(54); + d.Ita = function(a) { + return a instanceof RangeError || a.message === b.JOa; + }; + }, function(g, d, a) { + var b; + Object.defineProperty(d, "__esModule", { value: !0 }); - f = a(18); - b = a(90); - d = a(89); - h = a(115); - l = a(102); - g = a(190); - m = a(28); - p = a(51); - r = a(6); - u = a(4); - k = a(92); - z = a(2); - w = a(3); - n = a(8); - x = a(19); - y = a(14); - C = a(15); - f.Dd(z.v.o9, function(a) { - var v, F; - - function c(a, b) { + b = a(32); + g = function() { + function a() {} + a.prototype.gra = function(a) { var c; - c = { - profile: d.He.profile, - log: v, - Za: m.Za - }; - a.email && (c.Tv = a.email, c.password = a.password || ""); - a.sendNetflixIdUserAuthData && (c.useNetflixUserAuthData = a.sendNetflixIdUserAuthData); - a.Kg && (c.Kg = a.Kg); - b({ - K: !0, - P2: c - }); - } - - function f(a) { + c = Reflect.getMetadata(b.gY, a); + a = Reflect.getMetadata(b.Bha, a); return { - account: { - id: a.Yg.id - }, - id: a.id, - lastAccessTime: a.hG, - languages: a.languages, - registered: a.k4 + Jna: c, + gsb: a || {} }; + }; + a.prototype.e$a = function(a) { + return Reflect.getMetadata(b.Cha, a) || []; + }; + return a; + }(); + d.WX = g; + }, function(g, d, a) { + var b, c, h, k, f, p, m, r; + Object.defineProperty(d, "__esModule", { + value: !0 + }); + g = a(1); + b = a(466); + c = a(1007); + h = a(245); + k = a(244); + f = a(1003); + p = a(995); + m = a(889); + r = a(874); + a = a(516); + d.Nc = new g.WE({ + Fv: !0 + }); + r.Hdb(d.Nc); + d.Nc.load(c.platform); + d.Nc.load(f.config); + h.R_.load(p.vh); + k.WH.load(m.d5a); + d.Nc.load(a.j0); + d.Nc.bind(b.jea).Ig(d.Nc); + }, function(g, d, a) { + var b, c, h, k, f, p; + Object.defineProperty(d, "__esModule", { + value: !0 + }); + g = a(19); + b = a(125); + c = a(5); + d = a(2); + h = a(3); + k = a(114); + f = a(61); + g.Ge(d.I.Rda, function(a) { + var d, g; + d = A._cad_global.videoPreparer; + g = A._cad_global.playerPredictionModel; + d && A._cad_global.playerPredictionModel && (p = h.ca.get(k.Kga).create(g, d.Kjb.bind(d)), A._cad_global.prefetchEvents = p, d.Xg.on("deletedCacheItem", function(a) { + p.jH(f.fd.GF[a.type], parseInt(a.movieId, 10), a.reason); + }), b.gk.addEventListener("cacheEvict", function(a) { + p.jH(k.Xd.xi.gF, a.movieId, "ase_cacheEvict"); + p.jH(k.Xd.xi.MEDIA, a.movieId, "ase_cacheEvict"); + }), b.gk.addEventListener("flushedBytes", function() { + b.gk.X0().forEach(function(a) { + p.jH(k.Xd.xi.MEDIA, a.R, "ase_flushedBytes"); + }, this); + }), d.cn.addEventListener(d.cn.events.Fha, function(a) { + p.uZa(f.fd.GF[a.type], a.R, a.reason); + }), d.cn.addEventListener(d.cn.events.Dha, function(a) { + p.qZa(f.fd.GF[a.type], a.R, a.reason); + }), d.cn.addEventListener(d.cn.events.Eha, function(a) { + p.sZa(f.fd.GF[a.type], a.R, a.reason); + }), d.cn.addEventListener(d.cn.events.Gha, function(a) { + p.wZa(f.fd.GF[a.type], a.R, a.reason); + })); + a(c.Bb); + }); + }, function(g, d, a) { + var h, k, f, p, m, r, u, l, v, y; + + function b(a, b) { + this.fh = a; + this.Ti = b; + } + + function c(a) { + this.W = a; + this.reset(); + } + h = a(171); + k = a(170); + d = a(249); + f = a(248).config; + p = d.z8a; + m = d.n8a; + r = d.a4a; + u = d.khb; + l = d.jhb; + v = d.ihb; + y = d.tqa; + c.prototype.constructor = c; + c.prototype.reset = function() { + this.Oka = void 0; + this.qh = []; + this.vka = this.wka = !1; + }; + c.prototype.update = function(a, b) { + var c; + this.qh && (this.qh = this.qh.filter(this.sob, this)); + if (!1 === this.wka) { + c = p(a.xa).slice(0, f.Foa); + 0 < c.length && (this.Fy(c, k.mq.Qh), this.wka = !0, this.qh = this.Lz(c.concat(this.qh))); + }!1 === this.vka && (c = m(a.xa).slice(0, f.Foa), 0 < c.length && (this.Fy(c, k.mq.Qh), this.vka = !0, this.qh = this.Lz(c.concat(this.qh)))); + switch (b) { + case k.kq.jda: + b = this.wab(a); + break; + case k.kq.$ga: + b = this.Gab(a); + break; + case k.kq.jN: + b = this.Hab(a); + break; + case k.kq.EF: + b = this.Cab(a); + break; + default: + b = this.vab(a); } - v = w.Cc("NccpApi"); - F = x.Sfa(["info", "warn", "trace", "error"]); - h.Fu.nccp = { - getEsn: function() { - return b.Bg.$d; - }, - getPreferredLanguages: function() { - return u.config.Dg.Sw; + this.Oka = a; + return b; + }; + c.prototype.wab = function(a) { + a = u(a.xa, f.fza, f.Ena); + this.Fy(a, k.mq.Qh); + return this.qh = this.Lz(this.qh.concat(a)); + }; + c.prototype.Gab = function(a) { + var b, c; + this.W.log("handleScrollHorizontal"); + b = a.xa; + a = u(b, f.hza, f.Fna); + c = r(b, this.Oka.xa); + b = b[c].list.slice(0, f.xmb); + b.concat(a); + this.Fy(b, k.mq.NY); + return this.Lz(b.concat(this.qh)); + }; + c.prototype.Fy = function(a, b) { + a.forEach(function(a) { + if (void 0 === a.ju || a.ju < b) a.ju = b; + void 0 === a.xE && (a.xE = h()); + void 0 === a.di && (a.di = h()); + }); + }; + c.prototype.Hab = function(a) { + this.W.log("handleSearch"); + a = l(a.xa, f.Rmb); + this.Fy(a, k.mq.bha); + this.qh = a.concat(this.qh); + return this.qh = this.Lz(this.qh); + }; + c.prototype.Cab = function(a) { + var c, d, g, m, h; + this.W.log("handlePlayFocus: ", f.LI); + c = a.direction; + d = a.xa; + a = []; + g = y(d); + if (void 0 !== g.fh) switch (a.push(g), c) { + case k.Jo.Uga: + for (c = 1; c < f.LI; c++) a.push(new b(g.fh, g.Ti + c)); + a.push(new b(g.fh - 1, g.Ti)); + a.push(new b(g.fh + 1, g.Ti)); + break; + case k.Jo.uea: + for (c = 1; c < f.LI; c++) a.push(new b(g.fh, g.Ti - c)); + a.push(new b(g.fh - 1, g.Ti)); + a.push(new b(g.fh + 1, g.Ti)); + break; + case k.Jo.mQa: + a.push(new b(g.fh - 1, g.Ti)); + for (c = 1; c <= f.LI / 2; c++) a.push(new b(g.fh, g.Ti + c)), a.push(new b(g.fh, g.Ti - c)); + break; + case k.Jo.bGa: + for (a.push(new b(g.fh + 1, g.Ti)), c = 1; c <= f.LI / 2; c++) a.push(new b(g.fh, g.Ti + c)), a.push(new b(g.fh, g.Ti - c)); + } + m = []; + a.forEach(function(a) { + h = v(d, a.fh, a.Ti); + void 0 !== h && m.push(h); + }); + this.Fy(m, k.mq.NY); + return this.Lz(m.concat(this.qh)); + }; + c.prototype.vab = function(a) { + this.W.log("ModelOne: handleDefaultCase"); + a = u(a.xa, f.hza, f.Fna); + this.Fy(a, k.mq.NY); + return this.Lz(a.concat(this.qh)); + }; + c.prototype.sob = function(a) { + return a.ju == k.mq.Qh | a.ju == k.mq.bha & h() - a.xE < f.ebb; + }; + c.prototype.Lz = function(a) { + var b, f, c, d, g, m, h; + b = []; + f = {}; + m = 0; + h = a.length; + for (g = 0; g < h; g++) c = a[g].Ie, d = a[g], !1 === c in f ? (b.push(d), f[c] = m, m++) : (c = b[f[c]], d.di < c.di && (c.di = d.di), d.ju > c.ju && (c.ju = d.ju), d.xE > c.xE && (c.xE = d.xE)); + return b; + }; + g.M = c; + }, function(g, d, a) { + var k, f, p, m, r, u, l; + + function b(a, b, f, c, d, g) { + this.R = this.Ie = a; + this.Dd = b; + this.Jb = f; + g && g.uc && (this.uc = g.uc); + void 0 !== c && (this.Yy = c); + this.di = d; + this.cb = g; + } + + function c(a, b, f, c, d) { + p(void 0 !== c, "video preparer is null"); + p(void 0 !== d, "ui preparer is null"); + this.W = b || console; + this.W = b; + this.eb = f; + this.tWa = c; + this.iWa = d; + this.Lka = u.M8; + this.lB = []; + this.J_ = !1; + this.im = 0; + new l().on(u, "changed", h, this); + this.reset(); + } + + function h() { + this.W.log("config changed"); + u.M8 && (this.Lka = u.M8); + u.KJ !== this.ZA && (this.reset(), this.Rlb()); + } + k = a(171); + f = a(170); + d = a(249); + p = d.assert; + m = d.tqa; + r = a(475); + u = a(248).config; + l = a(29).dF; + u.declare({ + M8: ["ppmConfig", { + aub: { + swa: 0, + rwa: 2, + pwa: 0, + qwa: 5, + iAa: 0 }, - setPreferredLanguages: function(a) { - n.ea(C.isArray(a) && y.kq(a[0])); - u.config.Dg.Sw = a; + Zzb: { + swa: 0, + rwa: 1, + pwa: 0, + qwa: 3, + iAa: 1E3 }, - login: function(a, b) { - return new Promise(function(c, g) { - d.He.lw(a, b).then(function(a) { - c(f(a)); - })["catch"](function(a) { - g({ - success: !1, - error: p.yu(a.code, a) - }); - }); - }); - }, - logout: function() { - return new Promise(function(a, b) { - d.He.x1a().then(a)["catch"](function(a) { - b({ - success: !1, - error: p.yu(a.code, a) - }); - }); - }); - }, - isLoggedIn: function() { - return d.He.kSa().map(function(a) { - return !(a.Rj || "browser" === a.id); - }); - }, - switchProfile: function(a) { - return new Promise(function(b, c) { - d.He.zab(a).then(function(a) { - b(f(a)); - })["catch"](function(a) { - c({ - success: !1, - error: p.yu(a.code, a) - }); - }); - }); - }, - ping: function(a, b) { - c(a, function(a) { - l.ti.ping(a.P2, function(a) { - b && (a.K ? b({ - success: !0 - }) : b({ - success: !1, - error: p.yu(z.v.$T, a) - })); - }); - }); - }, - netflixId: function(a, b) { - c(a, function(a) { - l.ti.WX(a.P2).then(function() { - b && b({ - success: !0 - }); - })["catch"](function(a) { - b({ - success: !1, - error: p.yu(z.v.z$, a) - }); - }); - }); - }, - getDeviceTokens: function(a) { - n.ea(C.wb(a)); - l.ti.WX({ - log: v, - Za: m.Za - }).then(function(b) { - a && a(b); - })["catch"](function(b) { - a({ - success: !1, - error: p.yu(z.v.z$, b) - }); - }); - }, - getRegistered: function(a, b) { - var c; - try { - c = g.Tk.Le.hasUserIdToken(a.id || d.He.profile.id); - b({ - success: !0, - registered: c - }); - } catch (V) { - b({ - success: !1 - }); - } - }, - unregister: function(a, b) { - try { - g.Tk.Le.removeUserIdToken(a.id || d.He.profile.id); - b({ - success: !0 - }); - } catch (ja) { - b({ - success: !1 - }); - } - }, - queueLogblob: function(a, b, c) { - a && b && (b = b.toLowerCase(), F[b] ? t._cad_global.logBatcher && (a = new k.Zx(void 0, a, b, c), t._cad_global.logBatcher.Vl(a)) : v.warn("Invalid severity", { - severity: b - })); - }, - flushLogblobs: function() { - t._cad_global.logBatcher.flush(!0); + rub: { + swa: 0, + rwa: 1, + pwa: 0, + qwa: 3, + iAa: 1E3 } - }; - a(r.cb); - }); - }, function(f, c, a) { - var b, d, h, l, g; - Object.defineProperty(c, "__esModule", { - value: !0 + }] }); - b = a(28); - d = a(25); - h = a(8); - l = a(19); - g = a(14); - c.rva = function(a, b) { - h.ea(a); - h.ea(b); - h.VE(b.zUa, "endpointURL property is required"); - h.ea(b.fi); - this.log = a; - this.Xoa = b; - }; - c.rva.prototype.Zp = function() { - var a, c, h; - a = this; - a.log.trace("Downloading config data."); - c = { - browserInfo: JSON.stringify(a.Xoa.fi) - }; - h = a.Xoa.zUa + "?" + d.PG(c); - return new Promise(function(c, d) { - function f(b) { - var c; - try { - if (b.K) { - c = new Uint8Array(b.content); - return { - K: !0, - config: JSON.parse(String.fromCharCode.apply(null, c)).core.initParams - }; - } - return { - K: !1, - message: "Unable to download the config. " + b.za, - ew: b.Fg - }; - } catch (F) { - return b = l.yc(F), a.log.error("Unable to download the config. Received an exception parsing response", { - message: F.message, - exception: b, - url: h - }), { - K: !1, - za: b, - message: "Unable to download the config. " + F.message - }; - } - } - - function m(b, c, d) { - return c > d ? (a.log.error("Config download failed, retry limit exceeded, giving up", g.oa({ - Attempts: c - 1, - MaxRetries: d - }, b)), !1) : !0; - } - - function p(a) { - return new Promise(function(b) { - setTimeout(function() { - b(); - }, a); - }); - } - - function r(h, u, k) { - b.Za.download(h, function(b) { - var v; - b = f(b); - if (b.K) c(b); - else { - a.log.warn("Config download failed, retrying", g.oa({ - Attempt: u, - WaitTime: v, - MaxRetries: k - }, b)); - if (m(b, u + 1, k)) return v = l.Apa(1E3, 1E3 * Math.pow(2, Math.min(u - 1, k))), p(v).then(function() { - return r(h, u + 1, k); - }); - d(b); - } + c.prototype.constructor = c; + c.prototype.reset = function() { + this.FZ = !0; + this.ZA = u.KJ; + this.W.log("create model: " + u.KJ, u.fza, u.Ena); + switch (u.KJ) { + case "modelone": + this.ZA = new r(this.W); + break; + default: + this.ZA = new r(this.W); + } + }; + c.prototype.Rlb = function() { + var b, f; + if (!1 === this.J_) { + this.J_ = !0; + for (var a = 0; a < this.lB.length; a++) { + this.W.log("PlayPredictionModel replay: ", JSON.stringify(this.lB[a])); + b = this.doa(this.lB[a]); + f = this.Sqa(b); + this.ZA.update(b, f); + this.FZ = !1; + } + this.lB = []; + } + }; + c.prototype.update = function(a) { + var b, f, c; + this.W.log("PlayPredictionModel update: ", JSON.stringify(a)); + if (a && a.xa && a.xa[0]) { + !1 === this.J_ && this.lB.length < u.Web && this.lB.push(a); + b = this.doa(a); + f = this.Sqa(b); + this.W.log("actionType", f); + b = "mlmodel" == u.KJ ? this.ZA.update(a, f) : this.ZA.update(b, f); + b = this.R7a(b, u.Mcb || 1); + this.W.log("PlayPredictionModel.prototype.update() - returnedList: ", JSON.stringify(b)); + 0 === this.im && (this.im = k(), this.eb && this.eb.AK && this.eb.AK({ + AQ: this.im + })); + if (this.eb && this.eb.Iya) { + c = { + AQ: this.im, + offset: this.DR(), + Ixa: [] + }; + b.forEach(function(a) { + c.Ixa.push({ + xo: a.Ie + }); }); + c.Cxa = JSON.stringify(a); + c.Dxa = JSON.stringify(b); + this.eb.Iya(c); } - return b.Za ? r({ - url: h, - responseType: 3, - withCredentials: !0, - Az: "config-download" - }, 1, 3) : Promise.reject({ - K: !1, - message: "Unable to download Config. There was no HTTP object supplied" - }); + this.tWa.xv(b); + this.iWa.xv(b); + this.FZ = !1; + } + }; + c.prototype.cmb = function() { + this.im = 0; + }; + c.prototype.DR = function() { + return k() - this.im; + }; + c.prototype.AK = function() { + this.im = k(); + this.eb && this.eb.AK && this.eb.AK({ + AQ: this.im }); }; - }, function(f, c, a) { - var b, d, h, l; - Object.defineProperty(c, "__esModule", { - value: !0 - }); - f = a(18); - b = a(4); - d = a(6); - c = a(2); - h = a(3); - l = a(155); - f.Dd(c.v.Y8, function(a) { - b.config.fWa && h.Z.get(l.D8).start(); - a(d.cb); - }); - }, function(f, c, a) { - var d, h, l, g, m; - - function b(a) { - function b() { - var f, m; - if (a.Ai.value && a.A5) { - f = a.Go; - m = f.ae(); - m != l.XU && (m != l.WU && f.wYa() ? (f = !1, a.Sl.h0() < d.config.Lbb && (f = a.Ai.value.J > d.config.Kbb), f && (f = a.vx[a.vx.length - 1], c(f.size)) ? a.oI.mqa = "h" : (f = a.vx[0], c(f.size) ? a.oI.mqa = "l" : f = void 0), f && (a.oI.offset = g.Ra(), a.Go = f, a.Go.download())) : (a.removeEventListener(h.mg, b), a.Ai.removeListener(b))); - } + c.prototype.doa = function(a) { + var b, c, d, g, m; + b = {}; + g = a.xa || []; + m = function(a) { + var g, m; + g = {}; + c = f.pF.name.indexOf(a.context); + g.context = 0 <= c ? c : f.pF.zq; + g.rowIndex = a.rowIndex; + g.requestId = a.requestId; + g.list = []; + d = a.list || []; + d.forEach(function(a) { + m = { + Ie: a.Ie, + Jb: a.Jb, + index: a.index, + Yy: a.Yy, + ND: a.ND, + list: a.list, + cb: a.cb + }; + void 0 !== a.property && (c = f.cA.name.indexOf(a.property), m.property = 0 <= c ? c : f.cA.zq); + g.list.push(m); + }.bind(this)); + b.xa.push(g); + }.bind(this); + void 0 !== a.direction && (c = f.Jo.name.indexOf(a.direction), b.direction = 0 <= c ? c : f.Jo.zq); + void 0 !== a.nI && (b.jEb = a.nI.rowIndex, b.iEb = a.nI.K_a); + b.nI = a.nI; + b.xa = []; + g.forEach(m); + return b; + }; + c.prototype.Sqa = function(a) { + var b, c, d; + b = a.direction || f.Jo.zq; + c = a.nI; + d = a.xa || []; + !0 === this.FZ ? a = f.kq.jda : !0 === d.some(this.Pab) ? (a = f.kq.EF, this.nU(d, b, c)) : a = d[0].context === f.pF.jN ? f.kq.jN : b === f.Jo.Uga || b === f.Jo.uea ? f.kq.$ga : f.kq.zq; + return a; + }; + c.prototype.Pab = function(a) { + return (a.list || []).some(function(a) { + return a.property === f.cA.EF || a.property === f.cA.vca; + }); + }; + c.prototype.nU = function(a, b, c) { + var d, g; + this.W.log("reportPlayFocusEvent: ", b, c); + d = {}; + g = m(a); + this.eb && this.eb.nU && (d.PDb = k(), d.direction = f.Jo.name[b], c && (d.rowIndex = c.rowIndex, d.v1 = c.K_a), void 0 !== g.fh && (d.requestId = a[g.fh].requestId), this.eb.nU && this.eb.nU(d)); + }; + c.prototype.R7a = function(a, b) { + for (var f = a.length, c = [], d, g, m, h, k = 0; k < f; k++) { + g = a[k]; + d = Math.floor(k / b) + 1; + if (void 0 !== g.list) { + m = g.list; + h = m.length; + for (var p = 0; p < Math.min(u.H_a, h) && !(m[p].di = g.di, this.Ula(m[p], d, c), c.length >= u.bva); p++); + } else this.Ula(g, d, c); + if (c.length >= u.bva) break; } + return c; + }; + c.prototype.Ula = function(a, f, c) { + var g, m; - function c(b) { - var c; - c = m.ue(a.sv(), a.Ex()); - b = a.TX.sOa(b); - b *= 1 + .01 * d.config.fMa[2]; - return b < c * d.config.Mbb; + function d(a) { + a.uc && (a.cb || (a.cb = {}), a.cb.uc = a.uc); + return a.cb; } - a.oI = {}; - !a.KO() && a.vx && 0 < a.vx.length && (a.Go = a.vx[a.vx.length - 1], a.Go && (a.addEventListener(h.mg, b), a.Ai.addListener(b))); - } - Object.defineProperty(c, "__esModule", { - value: !0 - }); - d = a(4); - h = a(16); - l = a(185); - g = a(17); - m = a(5); - h.$J(h.wU, function(a) { - d.config.qUa && (a.stb = new b(a)); - }); - c.Kjb = b; - }, function(f, c, a) { - var b, d, h, l, g, m; - Object.defineProperty(c, "__esModule", { + g = a.ND; + void 0 !== g && g instanceof Array ? g.forEach(function(g) { + void 0 !== g.Ie && (m = d(g), c.push(new b(g.Ie, f, g.Jb, g.Yy, a.di, m))); + }) : void 0 !== g && void 0 !== g.Ie && (g = a.ND, m = d(g), c.push(new b(g.Ie, f, g.Jb, g.Yy, a.di, m))); + void 0 !== a.Ie && (m = d(a), c.push(new b(a.Ie, f, a.Jb, a.Yy, a.di, m))); + }; + c.prototype.Ju = function(a) { + var b; + b = this.Lka; + return a ? b[a] : b; + }; + g.M = c; + }, function(g, d, a) { + var b, c, h, k; + Object.defineProperty(d, "__esModule", { value: !0 }); - b = a(16); - d = a(4); - h = a(60); - l = a(3); - g = a(14); - m = a(193); - b.$J(b.wU, function(a) { - var f, p; - - function c(b) { - var c; - if (b.ctrlKey && b.altKey && b.shiftKey && 84 == b.keyCode) { - c = g.createElement("INPUT", void 0, void 0, { - type: "file" - }); - c.addEventListener("change", function() { - var b, g, h; - b = c.files[0]; - if (b) { - g = b.name; - f.info("Loading file", { - FileName: g - }); - h = new FileReader(); - h.readAsText(b); - h.addEventListener("load", function() { - var b; - b = a.Gx; - m.Doa(h.result, b.width / b.height, d.config.hsa, d.config.isa, function(b) { - b.K ? (b = b = a.Pq.dX(b.entries, g), a.Fc.set(b)) : f.error("Inavlid custom DFXP"); - }); - }); - } - }); - c.click(); - } - } - f = l.Je(a, "TimedTextCustomTrack"); - if (d.config.kZ) { - f.info("Loading url", { - Url: d.config.kZ + g = a(19); + b = a(9); + c = a(5); + d = a(2); + h = a(3); + g.Ge(d.I.Sda, function(f) { + var d, g; + if (b.config.qjb) { + d = h.zd("PlayerPredictionModel"); + A._cad_global.videoPreparer || (d.error("videoPreparer is not defined"), f(c.Bb)); + g = a(476); + d.log = d.trace.bind(d); + k = new g({}, d, { + AK: function(a) { + A._cad_global.prefetchEvents.$3a(a.AQ); + }, + Iya: function(a) { + A._cad_global.prefetchEvents.Ljb(a); + } + }, A._cad_global.videoPreparer, { + xv: function() {} }); - p = a.Pq.dX(d.config.kZ, "custom"); - a.Fc.set(p); + A._cad_global.playerPredictionModel = k; + d.info("ppm v2 initialized"); } - h.Bd.addListener(h.cw, c); - a.addEventListener(b.Qe, function() { - h.Bd.removeListener(h.cw, c); - }); - }); - }, function(f, c, a) { - var b, d, h; - Object.defineProperty(c, "__esModule", { - value: !0 + f(c.Bb); }); - b = a(46); - d = a(32); - h = a(5); - f = a(16); - f.$J(f.vU, function(a) { - function c(g) { - g && 4E3 < g.byteLength && (a.removeEventListener(b.Ea.CX, c), d.Xa(function() { - for (var b = 2E3, c = h.cm.now(), d = c, g = [], f = 0; f < b; f++) { - for (var m = 10; m--;) a.jtb = Math.atan2(m, m); - m = h.cm.now(); - g.push(m - d); - d = m; - } - c = d - c; - m = c / b; - d = []; - for (f = 0; f < g.length; f++) g[f] > 5 * m && d.push(f); - f = d.reduce(function(a, b) { - return a + g[b]; - }, 0); - c -= f; - b -= d.length; - 0 != c && (a.VY = Math.round(b / c)); - })); + }, function(g) { + g.M = { + Fu: { + Fa: 12E5, + lJ: 9E5, + Cc: 12E5 + }, + iu: { + Fa: 10, + lJ: 10, + Cc: 10 + }, + hu: { + Fa: 10240, + lJ: 10240, + Cc: 10240 } - a.addEventListener(b.Ea.CX, c); - }); - }, function(f, c, a) { - var b, d, h, l, g, m, p, r, k, v, z, w, n; - Object.defineProperty(c, "__esModule", { - value: !0 - }); - b = a(119); - d = a(18); - h = a(299); - l = a(16); - g = a(4); - m = a(60); - p = a(6); - r = a(25); - k = a(17); - v = a(19); - z = a(5); - w = a(3); - n = a(27); - l.$J(l.vU, function(a) { - var t, B, ja, V, D, S; - - function c(b) { - b.newValue >= l.qj && (a.state.removeListener(c), Z("type=openplay&sev=info&locstor=" + z.dU(G())), ja = k.Ra(), x()); + }; + }, function(g) { + function d(a) { + var b; + b = []; + return function h(a) { + if (a && "object" === typeof a) { + if (-1 !== b.indexOf(a)) return !0; + b.push(a); + for (var f in a) + if (a.hasOwnProperty(f) && h(a[f])) return !0; + } + return !1; + }(a); + } + g.M = function(a, b) { + var g; + if (b && d(a)) return -1; + b = []; + a = [a]; + for (var c = 0; a.length;) { + g = a.pop(); + if ("boolean" === typeof g) c += 4; + else if ("string" === typeof g) c += 2 * g.length; + else if ("number" === typeof g) c += 8; + else if ("object" === typeof g && -1 === b.indexOf(g)) { + b.push(g); + for (var k in g) a.push(g[k]); + } } + return c; + }; + }, function(g, d, a) { + var f, p; - function f() { - S("type=startplay&sev=info&outcome=success"); - } + function b() { + return Object.create(null); + } - function u() { - var c, d, g; - c = a.Gg; - if (c) { - d = "type=startplay&sev=error&outcome=error"; - g = {}; - b.QAa(g, c); - v.Kb(g, function(a, b) { - d += "&" + z.dU(a) + "=" + z.dU(b || ""); - }); - S(d); - } else S("type=startplay&sev=info&outcome=abort"); - } + function c(a) { + this.log = a.log; + this.Ma = a.Ma; + this.Gy = b(); + this.Promise = a.Promise; + this.Ar = a.Ar; + this.Naa = a.Naa; + this.Dg = a.Dg || !1; + this.Fu = b(); + this.iu = b(); + this.hu = b(); + this.AVa(a); + a.sC && (this.sC = a.sC, f(this.sC, c.prototype)); + } - function x() { - var a, b; - a = V.shift(); - if (0 < a) { - b = z.ig(a - (k.Ra() - ja), 0); - B = setTimeout(function() { - Z("type=startstall&sev=info&kt=" + a); - x(); - }, b); - } - } + function h(a) { + return "undefined" !== typeof a; + } - function q() { - S("type=startplay&sev=info&outcome=unload"); + function k(a) { + var c; + for (var b = 0, f = arguments.length; b < f;) { + c = arguments[b++]; + if (h(c)) return c; + } + } + f = a(48); + a(479); + p = a(478); + c.prototype.AVa = function(a) { + this.Fu.manifest = k(a.f3, p.Fu.Fa); + this.Fu.ldl = k(a.e3, p.Fu.lJ); + this.Fu.metadata = k(a.UDb, p.Fu.Cc); + this.iu.manifest = k(a.Z0, p.iu.Fa); + this.iu.ldl = k(a.Y0, p.iu.lJ); + this.iu.metadata = k(a.fCb, p.iu.Cc); + this.hu.manifest = k(a.dCb, p.hu.Fa); + this.hu.ldl = k(a.cCb, p.hu.lJ); + this.hu.metadata = k(a.eCb, p.hu.Cc); + }; + c.prototype.VR = function(a, b, f) { + this.zg("undefined" !== typeof a); + this.zg("undefined" !== typeof b); + return !!this.rja(a, b, f).value; + }; + c.prototype.rja = function(a, b, f) { + var c, d; + c = { + value: null, + reason: "", + log: "" + }; + d = this.Gy[b]; + if ("undefined" === typeof d) return c.log = "cache miss: no data exists for field:" + b, c.reason = "unavailable", c; + "undefined" === typeof d[a] ? (c.log = "cache miss: no data exists for movieId:" + a, c.reason = "unavailable") : (f = d[a][f ? f : "DEFAULTCAPS"]) && f.value ? this.rS(b, f.yg) ? (c.log = "cache miss: " + b + " data expired for movieId:" + a, c.reason = "expired") : (c.log = this.Promise && f.value instanceof this.Promise ? "cache hit: " + b + " request in flight for movieId:" + a : "cache hit: " + b + " available for movieId:" + a, c.value = f.value) : (c.log = "cache miss: " + b + " data not available for movieId:" + a, c.reason = "unavailable"); + return c; + }; + c.prototype.getData = function(a, b, f) { + this.zg("undefined" !== typeof a); + this.zg("undefined" !== typeof b); + a = this.rja(a, b, f); + this.log.trace(a.log); + return a.value ? this.Promise ? a.value instanceof this.Promise ? a.value : Promise.resolve(a.value) : this.Naa ? JSON.parse(this.Naa(a.value, "gzip", !1)) : a.value : this.Promise ? Promise.reject(a.reason) : a.reason; + }; + c.prototype.setData = function(a, f, c, d, g) { + var m; + this.zg("undefined" !== typeof a); + this.zg("undefined" !== typeof f); + m = this.Gy; + g = g ? g : "DEFAULTCAPS"; + m[f] || (m[f] = b(), Object.defineProperty(m[f], "numEntries", { + enumerable: !1, + configurable: !0, + writable: !0, + value: 0 + }), Object.defineProperty(m[f], "size", { + enumerable: !1, + configurable: !0, + writable: !0, + value: 0 + })); + c = this.Ar ? this.Ar(JSON.stringify(c), "gzip", !0) : c; + m = m[f]; + this.ZSa(a, f, g, m); + f = { + yg: this.Ma.getTime(), + value: c, + size: 0, + type: f, + w2: d + }; + m[a] = m[a] || b(); + m[a][g] = m[a][g] || b(); + m[a][g] = f; + m.size += 0; + m.numEntries++; + this.sC && this.emit("addedCacheItem", f); + return f; + }; + c.prototype.ZSa = function(a, b, f, c) { + var d, g, m, h, k, p, r, u, l; + d = this; + g = c.numEntries; + m = this.iu[b]; + p = c[a] && c[a][f]; + if (p && p.value) h = a, k = "promise_or_expired"; + else if (g >= m) { + u = Number.POSITIVE_INFINITY; + Object.keys(c).every(function(a) { + var g; + g = c[a] && c[a][f]; + g && g.value && d.rS(b, g.yg) && (l = a); + g && g.value && g.yg < u && (u = g.yg, r = a); + return !0; + }); + h = l || r; + k = "cache_full"; } - - function G() { - var a, b, c; - try { - b = "" + k.On(); - localStorage.setItem("player$test", b); - c = localStorage.getItem("player$test"); - localStorage.removeItem("player$test"); - a = b == c ? "success" : "mism"; - } catch (ha) { - a = "ex: " + ha; - } - return a; + this.Dg && this.log.debug("makespace ", { + maxCount: m, + currentCount: c.numEntries, + field: b, + movieId: a, + movieToBeRemoved: h + }); + h && (d.clearData(h, b, f, void 0, k), this.log.debug("removed from cache: ", h, b)); + }; + c.prototype.n1 = function(a, b) { + var f, c; + f = this; + f.zg("undefined" !== typeof a); + c = a + ""; + b.forEach(function(a) { + var b; + b = f.Gy[a]; + b && Object.keys(b).forEach(function(b) { + b != c && f.clearData(b, a, void 0, void 0, "clear_all"); + }); + }); + }; + c.prototype.clearData = function(a, b, f, c, d) { + var g; + this.zg("undefined" !== typeof a); + this.zg("undefined" !== typeof b); + g = this.Gy[b]; + b = g ? g[a] : void 0; + f = f ? f : "DEFAULTCAPS"; + if (b && b[f]) { + g.size -= b[f].size; + g.numEntries--; + if (g = b && b[f]) b[f] = void 0, !c && g.w2 && g.w2(); + this.sC && (a = { + creationTime: g.yg, + destroyFn: g.w2, + size: g.size, + type: g.type, + value: g.value, + reason: d, + movieId: a + }, this.emit("deletedCacheItem", a)); } + }; + c.prototype.flush = function(a) { + var f; + this.zg("undefined" !== typeof a); + f = this.Gy; + f[a] = b(); + f[a].numEntries = 0; + f[a].size = 0; + }; + c.prototype.rS = function(a, b) { + return this.Ma.getTime() - b > this.Fu[a]; + }; + c.prototype.getStats = function(a, b, f) { + var c, d, g, m, k; + c = {}; + d = this; + g = d.Gy; + m = h(a) && h(b); + k = f || "DEFAULTCAPS"; + Object.keys(g).forEach(function(f) { + var p, r; + p = Object.keys(g[f]); + r = g[f]; + p.forEach(function(g) { + !(g = r && r[g] && r[g][k]) || !h(g.value) || g.value instanceof this.Promise || (c[f] = (c[f] | 0) + 1, d.rS(g.type, g.yg) && (c[f + "_expired"] = (c[f + "_expired"] | 0) + 1), m && g.yg >= a && g.yg < b && (c[f + "_delta"] = (c[f + "_delta"] | 0) + 1)); + }); + }); + return c; + }; + c.prototype.Ee = function(a) { + var b, f, c, d; + b = []; + f = this; + c = f.Gy; + d = a || "DEFAULTCAPS"; + Object.keys(c).forEach(function(a) { + var g, m; + g = Object.keys(c[a]); + m = c[a]; + g.forEach(function(c) { + var g, k; + g = m && m[c] && m[c][d]; + g && h(g.value) && (k = f.rS(g.type, g.yg) ? "expired" : g.value instanceof this.Promise ? "loading" : "cached", b.push({ + movieId: c, + state: k, + type: a, + size: g.size + })); + }); + }); + return b; + }; + c.prototype.bAa = function(a, b) { + this.zg("undefined" !== typeof a); + this.zg("undefined" !== typeof b); + this.hu[a] = b; + }; + c.prototype.zg = function(a) { + if (!a && (this.log.error("Debug Assert Failed for"), this.Dg)) throw Error("Debug Assert Failed "); + }; + g.M = c; + }, function(g, d, a) { + var c, h; - function Z(b) { - b = D + "&soffms=" + a.Us() + "&" + b; - a.de && Object.keys(a.de).length && (b += "&" + r.PG(v.oa({}, a.de, { - prefix: "sm_" - }))); - h.nbb(b, t); - } - t = w.Z.get(n.lf).host + g.config.c6; - if (g.config.IR && t) { - V = g.config.obb.slice(); - D = "xid=" + a.aa + "&pbi=" + a.index + "&uiLabel=" + (a.Oc || ""); - a.state.addListener(c); - a.addEventListener(l.mg, f); - a.addEventListener(l.Qe, u); - m.Bd.addListener(m.Pj, q, p.ay); - S = function(b) { - S = p.Gb; - b += "&initstart=" + d.YO + "&initend=" + d.z1; - Z(b); - clearTimeout(B); - a.removeEventListener(l.mg, f); - a.removeEventListener(l.Qe, u); - m.Bd.removeListener(m.Pj, q); - }; - } - }); - }, function(f, c, a) { - var b, d; - Object.defineProperty(c, "__esModule", { + function b(a, b, d, g, r, u, l) { + this.R = a; + this.Dd = b; + this.type = d; + this.id = ++h; + this.lQ = g; + this.status = c.Wd.bca; + this.Rib = void 0 === r ? !1 : r; + this.iwa = l; + } + Object.defineProperty(d, "__esModule", { value: !0 }); - f = a(87); - b = a(4); - d = a(3); - f.EC(function(a) { - var c, g, h, f; - c = { - "video-merch-bob-vertical": 480, - "video-merch-bob-horizontal": 384, - "video-merch-jaw": 720 + c = a(61); + h = 0; + b.prototype.up = function() { + var a; + a = { + id: this.id, + type: this.type, + created: this.lQ, + status: this.status, + movieId: this.R }; - Object.assign(c, b.config.Rbb); - g = c[a.Oc]; - if (b.config.Sbb && g) { - h = {}; - f = d.Je(a, "MediaStreamFilter"); - return { - rF: "uiLabel", - Mq: function(b) { - if (b.lower && b.height > g) return h[b.height] || (h[b.height] = !0, f.warn("Restricting resolution due to uiLabel", { - MaxHeight: g, - streamHeight: b.height - }), a.cz.set({ - reason: "uiLabel", - height: b.height - })), !0; - } - }; - } - }); - }, function(f, c, a) { - var d, h, l, g; + this.startTime && (a.startTime = this.startTime); + this.endTime && this.startTime && (a.duration = this.endTime - this.startTime, a.endTime = this.endTime); + return a; + }; + b.prototype.bj = function(a) { + this.iwa && this.iwa(a); + }; + d.oN = b; + }, function(g, d, a) { + var k, f, p; - function b(a) { - var c, f; + function b() {} - function b(h) { - a.removeEventListener(d.TT, b); - try { - g.P_a(h.data) && (f = !0, a.P9a()); - c.trace("RA check", { - HasRA: f - }); - } catch (z) { - c.error("RA check exception", z); - } - } - c = h.Je(a, "RAF"); - a.addEventListener(d.TT, b); - return { - rF: "ra", - Mq: function(a) { - if (!f) return a.x4 || a.le !== l.$.fr; - } + function c(a) { + this.log = a.log; + this.Ma = a.Ma; + this.nQ = this.AH = 0; + this.Ov = []; + this.paused = !1; + this.fV = []; + this.Nna = []; + this.$I = a.$I || b.lba; + this.Nc = a.Nc; + this.Ii = this.Nc.get(f.AM); + this.addEventListener = this.Ii.addListener.bind(this.Ii); + this.events = { + Fha: "taskstart", + Dha: "taskabort", + Eha: "taskfail", + Gha: "tasksuccess" }; } - Object.defineProperty(c, "__esModule", { + + function h(a) { + return a.up(); + } + Object.defineProperty(d, "__esModule", { value: !0 }); - f = a(87); - d = a(16); - h = a(3); - l = a(64); - g = a(304); - a(36).Taa && f.EC(b); - c.ehb = b; - }, function(f, c, a) { - var d, h; + g = a(123); + k = a(61); + f = a(69); + b.SMa = "prepend"; + b.lba = "append"; + b.XHa = "ignore"; + p = g.tq; + d.FPa = c; + c.prototype.$la = function(a) { + this.log.trace("adding tasks, number of tasks: " + a.length); + this.paused = !1; + this.Ov = this.GSa(a); + this.AH = 0; + this.nQ += 1; + this.hb(); + }; + c.prototype.GSa = function(a) { + var f, c; + f = this.Ov.filter(function(a) { + return a.Rib && a.status === k.Wd.bca; + }); + c = this.$I; + if (c === b.XHa) return [].concat(a); + if (c === b.SMa) return f.concat(a); + if (c === b.lba) return a.concat(f); + }; + c.prototype.pause = function() { + this.paused = !0; + }; + c.prototype.hb = function() { + var a, b; + if (this.AH === this.Ov.length) this.log.trace("all tasks completed"); + else if (this.paused) this.log.trace("in paused state", { + currentTaskIndex: this.AH, + numberOfTasks: this.Ov.length + }); + else { + a = this.P9a(); + b = this.nQ; + a.startTime = this.Ma.getTime(); + a.status = k.Wd.eha; + this.Ii.Db(this.events.Fha, { + R: a.R, + type: a.type + }); + this.fV.push(a); + a.Re(function(f) { + a.endTime = this.Ma.getTime(); + f ? 0 <= [k.Wd.Rz, k.Wd.jM, k.Wd.SE, k.Wd.iM].indexOf(f.status) ? (a.status = f.status, this.j_(a, this.events.Dha, "cancelled task")) : (a.status = k.Wd.rq, this.j_(a, this.events.Eha, "task failed", f)) : (a.status = k.Wd.oha, this.j_(a, this.events.Gha, "task succeeded")); + this.Nna.push(a); + this.fV.splice(this.fV.indexOf(a), 1); + this.nQ === b && (this.AH++, this.hb()); + }.bind(this)); + } + }; + c.prototype.P9a = function() { + return this.Ov[this.AH]; + }; + c.prototype.j_ = function(a, b, f, c) { + var d; + d = a.up(); + c ? this.log.warn(f, d, c) : this.log.trace(f, d); + this.Ii.Db(b, { + R: a.R, + type: a.type, + reason: a.status + }); + a.bj(d); + }; + c.prototype.getStats = function(a, b, f) { + var c, d, g, m; + c = this.Nna.map(h); + d = this.fV.map(h); + g = p.Zg(a) && p.Zg(b); + m = {}; + if (p.Zg(f)) return m.V_a = c.filter(function(a) { + return a.movieId === f; + }), m; + c.concat(d).forEach(function(f) { + var c; + m[f.type + "_" + f.status] = (m[f.type + "_" + f.status] | 0) + 1; + c = f.status == k.Wd.eha ? f.startTime : f.endTime; + g && c >= a && c < b && (m[f.type + "_" + f.status + "_delta"] = (m[f.type + "_" + f.status + "_delta"] | 0) + 1); + }); + return m; + }; + }, function(g, d, a) { + var c, h, k, f, p, m, r, u, l, v; function b(a) { - var b, c; - b = h.Je(a, "MSS"); - if (d.config.x2a) return { - rF: "mss", - Mq: function(d) { - var g, h; - if (d.lower && 2160 <= d.height) a: { - for (g = d; g.lower;) { - if (2160 > g.height && 1080 < g.height) { - g = !0; - break a; - } - if (1080 >= g.height) break; - g = g.lower; - } - g = !1; - } - else g = void 0; - if (g) { - if (void 0 === c) { - try { - h = t.MSMediaKeys; - c = h && h.isTypeSupportedWithFeatures ? "probably" === h.isTypeSupportedWithFeatures("com.microsoft.playready.software", 'video/mp4;codecs="avc1,mp4a";features="display-res-x=3840,display-res-y=2160,display-bpc=8"') : !1; - } catch (v) { - b.error("hasUltraHdDisplay exception"); - c = !0; - } - c || (b.warn("Restricting resolution due screen size", { - MaxHeight: d.height - }), a.cz.set({ - reason: "microsoftScreenSize", - height: d.height - })); - } - return !c; - } - } + this.log = a.log; + this.Ma = a.Ma; + this.DC = a.DC; + this.HR = a.HR; + this.BC = a.BC; + this.EC = a.EC; + this.vy = a.vy; + this.k1 = a.k1; + this.HH = a.HH; + this.Nc = a.Nc; + this.config = this.Nc.get(m.je)(); + this.JH = a.JH; + this.IH = a.IH; + this.iba = a.iba; + this.l8 = a.l8; + this.m8 = a.m8; + this.TJ = a.TJ; + this.h4 = a.h4; + this.Dg = a.Dg || !1; + this.M_ = {}; + this.zO = {}; + this.UO = { + num_of_calls: 0, + num_of_movies: 0 }; + this.j1 = a.j1; + this.O7 = a.O7; + this.$7a = a.$7a; + this.V3 = a.V3; + this.b1 = a.b1; + this.Xg = new r({ + log: this.log, + Ma: this.Ma, + Promise: Promise, + Dg: this.Dg, + Z0: a.Z0, + Y0: a.Y0, + f3: a.f3, + e3: a.e3, + sC: u + }); + this.cn = new c.FPa({ + log: this.log, + Ma: this.Ma, + $I: a.$I, + Nc: this.Nc + }); + this.Fj = this.Xg.getData.bind(this.Xg); + this.Ev = this.Xg.setData.bind(this.Xg); + this.TR = this.Xg.VR.bind(this.Xg); } - Object.defineProperty(c, "__esModule", { - value: !0 - }); - f = a(87); - d = a(4); - h = a(3); - f.EC(b); - c.dhb = b; - }, function(f, c, a) { - Object.defineProperty(c, "__esModule", { + Object.defineProperty(d, "__esModule", { value: !0 }); - a(87).EC(function(a) { - return { - rF: "op", - Mq: function(b) { - var c; - if (b = b.x4) { - c = a.bf; - if (c && c.J_()) return b; - } - } - }; - }); - }, function(f, c, a) { - var d, h, l, g, m, p, r, k, v, z; - - function b(a) { - var F, n, q, ca, Z, t, B, ja, V, D, S, A, X, U, ha, ba, ea; - - function b() { - var b; - b = a.Tb.value == l.em && a.state.value == l.lk; - A ? b || (clearInterval(A), B = A = void 0, X && (clearInterval(ha), ha = void 0)) : b && (A = setInterval(f, 1E3), X && (ha = setInterval(u, U))); + c = a(482); + h = a(481); + g = a(123); + k = a(231); + f = a(430); + p = a(114); + m = a(20); + r = a(480); + u = a(29).EventEmitter; + l = g.tq; + v = new f.Vha(l, new k.hW()); + d.vQa = b; + b.prototype.xv = function(a, b) { + var f, c, d; + f = this; + a = a.map(function(a) { + a.cb = a.cb || { + CB: { + ixa: !1 + }, + Qf: 0 + }; + l.tl(a.cb.Qf) || (a.cb.Qf = 0); + l.tl(a.Jb) && (a.cb.U = a.Jb); + return a; + }); + c = a.map(function(a) { + return f.Sia(a, b); + }).reduce(function(a, b) { + return a.concat(b); + }, []); + d = c.map(function(a) { + return a.R + "-" + a.type; + }); + this.log.trace("prepare tasks", d); + this.cn.$la(c); + this.UO.num_of_calls++; + this.UO.num_of_movies += a.length; + }; + b.prototype.Hjb = function(a, b) { + var f, c, d; + f = this; + c = a.map(function(a) { + return a.R + ""; + }); + a = a.map(function(a) { + a.cb = a.cb || { + CB: { + ixa: !1 + }, + Qf: 0 + }; + a.cb.Vd = !0; + a.cb.Nva = c; + return f.Sia(a, b); + }).reduce(function(a, b) { + return a.concat(b); + }, []); + d = a.map(function(a) { + return a.R + "-" + a.type; + }); + this.log.trace("predownload tasks", d); + this.cn.$la(a); + }; + b.prototype.Sk = function(a, b) { + this.zO[a] || (this.zO[a] = {}); + a = this.zO[a]; + a.Lxa = (a.Lxa | 0) + 1; + a.di = b; + }; + b.prototype.getStats = function(a, b, f) { + var c; + c = f && this.zO[f] || {}; + c.Ov = this.cn.getStats(a, b, f); + c.cache = this.Xg.getStats(a, b); + c.Pqa = v.Dk(this.h4(), this.UO); + return c || {}; + }; + b.prototype.Sia = function(a, b) { + var f, c, d, g, k; + a.uc && (a.cb.uc = a.uc); + f = []; + c = a.R; + d = !!a.cb.Vd; + this.Sk(c, a.di); + g = null; + if (this.Xg.VR(c, "manifest")) this.log.trace("manifest exists in cache for " + c); + else { + k = new h.oN(c, a.Dd, "manifest", this.Ma.getTime(), d, void 0, b); + g = k.id; + k.Re = this.DC.bind(this, c, a); + f.push(k); } + this.HR && this.k1() && (this.Xg.VR(c, "ldl") ? this.Dg && this.log.trace("ldl exists in cache for " + c) : (k = new h.oN(c, a.Dd, "ldl", this.Ma.getTime(), d, g, b), k.Re = this.HR.bind(this, c, a), f.push(k))); + this.BC && this.EC && this.j1() && (this.O7(c) ? this.Dg && this.log.trace("headers/media exists in cache for " + c) : (c = new h.oN(a.R, a.Dd, "getHeaders", this.Ma.getTime(), d, g, b), c.Re = this.BC.bind(this, a.R, a), f.push(c), b = new h.oN(a.R, a.Dd, "getMedia", this.Ma.getTime(), d, g, b), b.Re = this.EC.bind(this, a.R, a), f.push(b))); + return f; + }; + b.prototype.Fab = function(a) { + this.m8(a); + }; + b.prototype.Eab = function(a) { + this.log.trace("task scheduler paused on playback created"); + this.cn.pause(); + this.JH && this.Xg.n1(a, ["manifest"]); + this.IH && this.Xg.n1(a, ["ldl"]); + this.l8(a); + }; + b.prototype.lsa = function() { + this.log.info("track changed, clearing all manifests from cache"); + this.Xg.n1("none", ["manifest"]); + }; + b.prototype.Dab = function(a) { + var b; + b = this; + this.HH ? this.Xg.clearData(a, "manifest") : this.Xg.VR(a, "manifest") && this.Xg.getData(a, "manifest").then(function(f) { + f.isSupplemental || b.Xg.clearData(a, "manifest"); + }, function(f) { + b.log.warn("Failed to get manifest for movieId [" + a + "] from cacheManager.", f); + }); + this.Xg.clearData(a, "ldl", void 0, !0); + this.r1(a); + this.TJ(); + }; + b.prototype.r1 = function(a) { + this.M_[a] = void 0; + }; + b.prototype.V4 = function(a) { + return this.M_[a]; + }; + b.prototype.toa = function(a) { + return this.M_[a] = this.iba(); + }; + b.prototype.Kjb = function() { + var a; + a = []; + a = this.Xg.Ee().map(function(a) { + return { + xo: parseInt(a.movieId, 10), + state: a.state, + jr: a.type, + size: a.size || void 0 + }; + }); + this.V3().map(function(b) { + 2 === b.Ur ? a.push({ + xo: b.R, + state: "cached", + jr: p.Xd.xi.gF, + size: void 0 + }) : b.o7a && !b.edb && a.push({ + xo: b.R, + state: "loading", + jr: p.Xd.xi.gF, + size: void 0 + }); + b.nCa && 0 < b.nCa && b.Ama && 0 < b.Ama ? a.push({ + xo: b.R, + state: "cached", + jr: p.Xd.xi.MEDIA, + size: void 0 + }) : b.Bjb && !b.Ajb && a.push({ + xo: b.R, + state: "loading", + jr: p.Xd.xi.MEDIA, + size: void 0 + }); + }); + return a; + }; + b.prototype.pta = function(a) { + return a && 0 <= a.indexOf("billboard"); + }; + }, function(g, d, a) { + var b, c, h, k, f, p, m, r, u, l, v, y, w, n, z, E, q, F, la, N, O, t, U, ga, S, T, H, X; + Object.defineProperty(d, "__esModule", { + value: !0 + }); + b = a(60); + g = a(19); + c = a(34); + h = a(125); + k = a(105); + f = a(9); + p = a(5); + m = a(97); + r = a(25); + u = a(21); + d = a(2); + l = a(3); + v = a(23); + y = a(217); + w = a(4); + n = a(76); + z = a(122); + E = a(115); + q = a(61); + F = a(173); + la = a(17); + N = a(33); + O = a(42); + t = a(483); + U = a(158); + ga = a(185); + S = a(146); + T = a(107); + H = a(241); + g.Ge(d.I.Xda, function(a) { + var Y, fa, Ga, aa, G, ib, Ma, R, jb, ca, ba, nb, ua, hb, Qa; - function f() { - var b, c, d, h, f, l; - b = a.Tl.value; - b = (b = b && b.stream) && b.height; - if (0 < b) { - c = m.Ra(); - d = a.bf.Zv(); - if (B && 2E3 > c - B.time && b == B.height) { - h = d - B.PTa; - f = n[b]; - f || (n[b] = f = [], b > V && (t.push(b), g.dS(t))); - 0 < h && !(S < b) && (S = b); - f.push(h); - f.length > ja && f.shift(); - (f = ca[b]) || (ca[b] = f = {}); - l = f[h]; - f[h] = l ? l + 1 : 1; - } - B = { - time: c, - PTa: d, - height: b - }; - a.RP && a.RP.v9a(n); + function d() { + var a, b, c; + if (f.config.Kl) { + a = {}; + a.trigger = q.fd.RMa.NLa; + b = Y.getTime(); + c = X.getStats(hb, b); + a.startoffset = hb; + hb = a.endoffset = b; + a.cache = JSON.stringify(c.cache); + a.tasks = JSON.stringify(c.Ov); + a.general = JSON.stringify(c.Pqa); + a = new m.fA(void 0, "prepare", "info", a); + A._cad_global.logBatcher.Sb(a); } } - function u() { - z.storage.save(c.rT, { - xid: a.aa, - data: ca - }); + function g(a, b, c) { + var d, g; + g = a.video_tracks; + g && g.length && g[0].streams && g[0].streams.length && (d = g[0].streams[0].content_profile); + g = f.Una(b.uc); + d = f.Tna(!!a.choiceMap, !1, d); + d = h.fk.jp(Object.assign({}, g, d)); + return { + R: c, + Dd: 0, + G9a: function() { + return { + Fa: a, + ci: !1, + BB: a.defaultTrackOrderList[0].audioTrackId + }; + }, + config: d, + Vd: !!b.Vd, + Nva: b.Nva + }; } - function w() { - r.ea(z.storage); - a.addEventListener(l.Qe, function() { - u(); + function x(a, b, c) { + X.Fj(a, "ldl").then(function(a) { + c(null, a); + })["catch"](function(d) { + Ma.trace("ldl not available in cache", d); + X.Fj(a, "manifest").then(function(d) { + var h, k, m; + + function g(b) { + Ma.warn("ldl is now invalid", b); + k.close(); + X.Ev(a, "ldl", void 0); + X.r1(a); + } + if (X.TR(a, "ldl")) c({ + status: q.fd.Wd.Rz + }); + else if (d.hasDrmStreams) + if (f.config.lpa && R && R !== a && !b.force) c({ + status: q.fd.Wd.jM + }); + else if (f.config.mpa && jb && jb !== a && !b.force) c({ + status: q.fd.Wd.SE + }); + else { + R && R !== a && (ca[a] = (ca[a] | 0) + 1); + jb && jb !== a && (ba[a] = (ba[a] | 0) + 1); + h = d.video_tracks[0].drmHeader.bytes; + k = P({ + Nbb: "cenc", + Gpa: Ma, + Pr: function(b) { + var f; + f = []; + b.ip.forEach(function(a) { + f.push({ + sessionId: a.sessionId, + dataBase64: l.nr(a.data) + }); + }); + b = { + ip: f, + JQ: [d.drmContextId], + bh: q.fd.coa(b.bh), + df: d.playbackContextId, + ka: X.toa(a) + }; + Ma.trace("xid created ", { + MovieId: a, + xid: b.ka + }); + return aa.vB(b, nb); + }, + gpb: void 0, + j6a: g, + he: void 0, + g8: la.Qb, + Ma: G + }); + X.Ev(a, "ldl", k, function() { + k.close(); + }); + m = ib.shift(); + l.log.trace("cached mediakeys count " + ib.length); + return k.create(f.config.Ad, m).then(function() { + return k.$e(n.zi.$s, [l.hk(h)], !0); + }).then(function() { + c(null, k); + })["catch"](function(a) { + g(a); + c(a); + }); + } else c({ + status: q.fd.Wd.iM + }); + })["catch"](function(a) { + Ma.warn("Manifest not available for ldl request", a); + c({ + status: q.fd.Wd.Rz + }); + }); }); - Z = []; - z.storage.load(c.I8, function(a) { - var b; - a.K && (Z = a.data); - b = {}; - z.storage.load(c.rT, function(a) { - a.K && (b = a.data); - b && b.data && Object.keys(b.data).length && (Z.push(b), Z.length > X && Z.shift(), z.storage.save(c.I8, Z), z.storage.save(c.rT, {})); + } + + function D(a, b, c) { + X.Fj(a, "ldl").then(function(a) { + c(null, a); + })["catch"](function(d) { + Ma.trace("ldl not available in cache", d); + X.Fj(a, "manifest").then(function(d) { + var h, m; + + function g(b, f) { + Ma.warn(b + " LDL is now invalid.", f); + X.Ev(a, "ldl", void 0); + X.r1(a); + } + if (X.TR(a, "ldl")) c({ + status: q.fd.Wd.Rz + }); + else if (d.hasDrmStreams) + if (f.config.lpa && R && R !== a && !b.force) c({ + status: q.fd.Wd.jM + }); + else if (f.config.mpa && jb && jb !== a && !b.force) c({ + status: q.fd.Wd.SE + }); + else { + R && R !== a && (ca[a] = (ca[a] | 0) + 1); + jb && jb !== a && (ba[a] = (ba[a] | 0) + 1); + h = d.video_tracks[0].drmHeader.bytes; + m = l.ca.get(z.wM)().then(function(b) { + var c; + c = { + type: n.zi.$s, + gS: l.hk(h), + context: { + Ad: f.config.Ad + }, + Gg: { + R: a, + ka: X.toa(a), + df: d.playbackContextId, + Bj: d.drmContextId, + profileId: k.xg.profile.id + } + }; + return b.xv(c, new H.UX()); + }).then(function(a) { + c(null, a); + return a; + })["catch"](function(a) { + g("Unable to prepare an EME session.", a); + }); + X.Ev(a, "ldl", m, function() { + try { + m.then(function(a) { + a.close().subscribe(void 0, function(a) { + g("Unable to cleanup LDL session, unable to close the session.", a); + }); + })["catch"](function(a) { + g("Unable to cleanup LDL session, Unable to get the session.", a); + }); + } catch (tc) { + g("Unable to cleanup LDL session, unexpected exception.", tc); + } + }); + } else c({ + status: q.fd.Wd.iM + }); + })["catch"](function(a) { + Ma.warn("Manifest not available for ldl request", a); + c({ + status: q.fd.Wd.Rz + }); }); }); } - F = p.Je(a, "DFF"); - n = {}; - q = d.config.TTa; + + function P(a) { + var b, c; + b = new N.wf.Rs(a.Gpa, a.Pr, a.gpb, { + Dg: !1, + dJ: !1 + }); + c = l.ca.get(E.zA); + return N.wf.Go(a.Gpa, a.Nbb, a.he, { + Dg: !1, + dJ: !1, + Gta: f.config.Kh, + Aza: { + yva: f.config.zza, + rna: f.config.Y9 + }, + CK: b, + Uxa: f.config.Z8, + Ha: void 0, + HE: f.config.HE, + Oz: f.config.Q2, + onerror: a.j6a, + g8: a.g8, + Ma: a.Ma, + ijb: !1, + PK: f.config.Xaa && f.config.PK, + dS: f.config.dS, + Bma: c.gQ(), + oCa: c.zH([]), + SC: f.config.SC + }); + } + + function ma(a, b) { + 0 === a && l.log.trace("generete mediakeys for pre-caching"); + a < b ? N.wf.Go.iQ && N.wf.Go.iQ("cenc", f.config.Ad, l.log, f.config.Xaa && f.config.PK).then(function(f) { + ib.push(f); + O.hb(ma.bind(null, ++a, b)); + })["catch"](function(a) { + l.log.error("abort pre-caching due to error in creating mediakeys", a); + }) : l.log.trace("pre-cached mediakeys complete, number of instances: " + b); + } + Y = { + getTime: u.yc, + ER: u.Ex + }; + fa = l.ca.get(v.ve); + Ga = l.ca.get(ga.QX); + aa = l.ca.get(S.sF); + G = Y; + ib = []; + Ma = l.zd("VideoPreparer"); ca = {}; - Z = []; - t = []; - ja = d.config.RTa; - V = d.config.STa; - D = h.Bza; - X = d.config.WTa; - U = d.config.VTa; - ba = v.Tg.hardwareConcurrency || 0; - if (d.config.QTa) return X && a.addEventListener(l.waa, w), a.fN = { - BWa: function() { - var a; - a = {}; - ca && t.forEach(function(b) { - var c, d, g; - c = ca[b]; - if (c) { - d = 0; - g = 0; - k.Kb(c, function(a, b) { - g += k.Zc(a); - d += b; + ba = {}; + nb = { + Ab: c.Ab, + log: Ma + }; + if (!N.wf.Go || !N.wf.Rs) { + ua = {}; + N.wf.Go = ua.te; + N.wf.Rs = ua.request; + } + Ma.info("instance created"); + X = new t.vQa({ + log: Ma, + Ma: Y, + iba: u.B_a, + DC: function(a, b, c) { + var g; + + function d() { + var b, f; + fa.ux(g) || (g = { + trackingId: g + }); + b = { + ri: Ga.Gna(g.CB, g.ri), + Ie: a, + Xr: !!g.Ze, + mI: q.fd.nn.Xfa, + Xy: g.Xy + }; + nb.profile = k.xg.profile; + Ma.trace("manifest request for:" + a); + f = l.ca.get(T.rA)(); + return Ga.DC(b, f); + } + g = b.cb; + Ma.trace("getManifest: " + a); + f.config.IWa && g && g.Fa && !X.TR(a, "manifest") && (!g.Fa.clientGenesis || Date.now() - g.Fa.clientGenesis < f.config.Mxa) ? (g.Fa.oz = Y.getTime(), g.Fa.VD = Y.getTime(), b = g.Fa.runtime ? l.ca.get(U.RX).decode(g.Fa) : g.Fa, X.Ev(a, "manifest", b), c(null, b)) : X.Fj(a, "manifest").then(function(a) { + c(null, a); + })["catch"](function(b) { + var f; + Ma.trace("manifest not available in cache", b); + if (X.TR(a, "manifest")) c({ + status: q.fd.Wd.Rz + }); + else { + f = Y.getTime(); + b = d(); + X.Ev(a, "manifest", b); + b.then(function(b) { + b.oz = f; + b.VD = Y.getTime(); + X.Ev(a, "manifest", b); + c(null, b); + })["catch"](function(b) { + c(b); + X.Ev(a, "manifest", void 0); }); - a[b] = g / d; } }); - return a; }, - U_: function(a) { + HR: f.config.Do ? D : x, + k1: function() { + return f.config.QQ && r.vS(f.config); + }, + BC: function(a, b, f) { + var c; + c = b.cb; + X.Fj(a, "manifest").then(function(b) { + b = g(b, c, a); + h.gk.gna(b, function() { + f(null, {}); + }); + })["catch"](function(a) { + Ma.error("Exception in getHeaders", a); + f(a); + }); + }, + EC: function(a, b, f) { + var c; + c = b.cb; + X.Fj(a, "manifest").then(function(d) { + var k, m, p; + k = g(d, c, a); + m = d.duration; + d = l.ca.get(y.eM).c0({ + FE: w.rb(d.bookmark), + R: a, + eK: w.rb(m), + Ta: c + }).ma(w.Aa); + l.ca.get(v.ve).ap(c.U) && (d = c.U); + k.Jb = d; + if (R != a || c.Vd || b.force) { + p = function(b) { + b.movieId === a && b.stats && b.stats.prebuffcomplete && (h.gk.removeEventListener("prebuffstats", p), f(null, {})); + }; + h.gk.addEventListener("prebuffstats", p); + h.gk.gna(k); + } else f({ + status: q.fd.Wd.SE + }); + })["catch"](function(a) { + Ma.error("Exception in getMedia", a); + f(a); + }); + }, + vy: function() { + return h.gk.vy(); + }, + j1: function() { + return f.config.PQ; + }, + O7: function(a) { var b; - b = {}; - a.forEach(function(a) { - b[a] = {}; + b = !1; + h.gk.X0().forEach(function(f) { + f.R == a && (b = !0); }); - ca && (g.dS(a), t.forEach(function(c) { - var d, h, f, m; - d = ca[c]; - if (d) { - h = 0; - f = 0; - k.Kb(d, function(a, b) { - h += b; + return b; + }, + V3: function() { + return h.gk.X0().map(function(a) { + var f, c; + f = h.gk.reb(a.R); + c = f[b.gc.rg.AUDIO] && f[b.gc.rg.AUDIO].data; + f = f[b.gc.rg.VIDEO] && f[b.gc.rg.VIDEO].data; + return { + R: a.R, + Ur: a.Ur, + Ama: c && c.length, + nCa: f && f.length, + o7a: fa.ap(a.ac.lR), + edb: fa.ap(a.ac.GS), + Bjb: fa.ap(a.ac.MD), + Ajb: fa.ap(a.ac.hK) + }; + }); + }, + l8: function(a) { + R = a; + }, + m8: function(a) { + Qa && (Qa.p1(), d()); + jb = a; + }, + TJ: function() { + Qa && Qa.B$(); + jb = R = void 0; + }, + h4: function() { + return { + ldls_after_create: ca, + ldls_after_start: ba + }; + }, + b1: function(a, b, f) { + var c, d; + try { + c = X.zEb(a); + d = c && c.U === b; + c && c.hK ? fa.tl(b) && !d ? f(!1) : X.Fj(a, "manifest").then(function(b) { + b.hJb ? X.Fj(a, "ldl").then(function() { + f(!0); + })["catch"](function() { + f(!1); + }) : f(!0); + })["catch"](function() { + f(!1); + }) : f(!1); + } catch (Kb) { + f(!1); + } + }, + HH: f.config.HH, + JH: f.config.JH, + IH: f.config.IH, + $I: f.config.Mjb, + Z0: f.config.Pjb, + Y0: f.config.Njb, + f3: f.config.Mxa, + e3: f.config.Ojb, + Dg: !1, + Nc: l.ca + }); + A._cad_global.videoPreparer = X; + ua = f.config.Qib; + hb = Y.getTime(); + ua && (Qa = new F.Wga(ua, d), Qa.B$()); + f.config.QQ && r.vS(f.config) && f.config.Fxa && O.hb(ma.bind(null, 0, f.config.Fxa)); + a(p.Bb); + }); + }, function(g, d, a) { + var b, c, h, k, f, p, m, r, u, l, v, y; + Object.defineProperty(d, "__esModule", { + value: !0 + }); + g = a(19); + b = a(124); + c = a(93); + h = a(105); + k = a(172); + f = a(141); + p = a(5); + m = a(25); + d = a(2); + r = a(3); + u = a(86); + l = a(12); + v = a(17); + y = a(6); + g.Ge(d.I.Zda, function(a) { + function d(a, b) { + function f(a) { + a = new u(r.hk(a)); + a.Jf(); + return { + Xu: a.bya(), + $5a: a.bya() + }; + } + return { + encrypt: function(b, f) { + var c; + b = v.bd(b) ? r.IL(b) : b; + c = y.ht.getRandomValues(new Uint8Array(16)); + m.AD(y.Em.encrypt({ + name: "AES-CBC", + iv: c + }, a, b)).then(function(a) { + var b, d; + a = new Uint8Array(a); + b = []; + d = new u(b); + d.hba(2); + d.wCa(c); + d.wCa(a); + a = r.nr(b); + f({ + success: !0, + encryptedDataAsn1Base64: a + }); + }, function(a) { + l.sa(!1, "Encrypt error: " + a); + f({ + success: !1 + }); + }); + }, + decrypt: function(b, c) { + b = f(b); + m.AD(y.Em.decrypt({ + name: "AES-CBC", + iv: b.Xu + }, a, b.$5a)).then(function(a) { + a = new Uint8Array(a); + c({ + success: !0, + text: r.IV(a) }); - m = Object.keys(d); - g.dS(m); - for (var l = m.length - 1, p = m[l], r = a.length - 1; 0 <= r; r--) { - for (var u = a[r]; p >= u && 0 <= l;)(p = d[p]) && (f += p), p = m[--l]; - b[u][c] = v.ve(f / h * 100); + }, function(a) { + l.sa(!1, "Decrypt error: " + a); + c({ + success: !1 + }); + }); + }, + hmac: function(a, f) { + a = v.bd(a) ? r.IL(a) : a; + m.AD(y.Em.sign({ + name: "HMAC", + hash: { + name: "SHA-256" + } + }, b, a)).then(function(a) { + a = new Uint8Array(a); + f({ + success: !0, + hmacBase64: r.nr(a) + }); + }, function(a) { + l.sa(!1, "Hmac error: " + a); + f({ + success: !1 + }); + }); + } + }; + } + b.wN.TG.mdx = { + getEsn: function() { + return c.cg.Df; + }, + createCryptoContext: function(a) { + var b, f, c; + b = k.$i.rf.getStateForMdx(h.xg.profile.id); + f = b.cryptoContext; + c = b.masterToken; + b = b.userIdToken; + c && b ? (l.sa(f), c = ["1", r.nr(JSON.stringify(c.toJSON())), r.nr(JSON.stringify(b.toJSON()))].join(), a({ + success: !0, + cryptoContext: { + cTicket: c, + encrypt: function(a, b) { + a = v.bd(a) ? r.IL(a) : a; + f.encrypt(a, { + result: function(a) { + a = r.nr(a); + b({ + success: !0, + mslEncryptionEnvelopeBase64: a + }); + }, + timeout: function() { + b({ + success: !1 + }); + }, + error: function(a) { + l.sa(!1, "Encrypt error: " + a); + b({ + success: !1 + }); + } + }); + }, + decrypt: function(a, b) { + a = r.hk(a); + f.decrypt(a, { + result: function(a) { + b({ + success: !0, + text: r.IV(a) + }); + }, + timeout: function() { + b({ + success: !1 + }); + }, + error: function(a) { + l.sa(!1, "Decrypt error: " + a); + b({ + success: !1 + }); + } + }); + }, + hmac: function(a, b) { + a = v.bd(a) ? r.IL(a) : a; + f.sign(a, { + result: function(a) { + b({ + success: !0, + hmacBase64: r.nr(a) + }); + }, + timeout: function() { + b({ + success: !1 + }); + }, + error: function(a) { + l.sa(!1, "Hmac error: " + a); + b({ + success: !1 + }); + } + }); } } + })) : (l.sa(!1, "Must login first"), a({ + success: !1 })); - return b; - } - }, a.state.addListener(b), a.Tb.addListener(b), { - rF: "df", - Mq: function(b) { - var c, g, h, f, m, l, p, r, k, u; - if (b.lower && b.height > V) { - b = b.height; - a: { - !ea && d.config.lia && d.config.eN && a.VY < d.config.lia[ba] && (D = v.ue(D, d.config.eN), a.cz.set({ - reason: "droppedFramesPreviousSession", - height: d.config.eN - }));ea = !0; - if (S) { - c = t.length; - for (g = 0; g < c; g++) - if (h = t[g], h >= S && h < D) { - f = n[h]; - if (m = f) b: { - k = q.length;u = f.length; - for (r = 0; r < k; r++) - for (l = q[r], m = l[0], l = l[1], p = 0; p < u; p++) - if (f[p] >= l && 0 >= --m) { - m = !0; - break b; - } m = void 0; - } - if (m && D != h) { - F.warn("Restricting resolution due to high number of dropped frames", { - MaxHeight: h - }); - a.cz.set({ - reason: "droppedFrames", - height: h - }); - c = d.config.eN = D = h; - break a; - } - } S = void 0; - } - c = D; + }, + createCryptoContextFromSharedSecret: function(a, b) { + var f; + f = r.hk(a); + a = f.subarray(32, 48); + f = f.subarray(0, 32); + if (16 != a.length || 32 != f.length) throw Error("Bad shared secret"); + Promise.all([m.AD(y.Em.importKey("raw", a, { + name: "AES-CBC" + }, !1, ["encrypt", "decrypt"])), m.AD(y.Em.importKey("raw", f, { + name: "HMAC", + hash: { + name: "SHA-256" } - return b >= c; - } + }, !1, ["sign", "verify"]))]).then(function(a) { + b({ + success: !0, + cryptoContext: d(a[0], a[1]) + }); + }, function() { + b({ + success: !1 + }); + }); + }, + getServerEpoch: function() { + return f.Yg.z$a(); } }; - } - Object.defineProperty(c, "__esModule", { - value: !0 + a(p.Bb); }); - f = a(87); - d = a(4); - h = a(6); - l = a(16); - g = a(25); - m = a(17); - p = a(3); - r = a(8); - k = a(14); - v = a(5); - z = a(120); - f.EC(b); - c.I8 = "DroppedFramesHistory"; - c.rT = "DroppedFramesSession"; - c.chb = b; - }, function(f, c, a) { - var b, d, h; - Object.defineProperty(c, "__esModule", { + }, function(g, d, a) { + var b, c, h, k, f, p, m, r, u; + Object.defineProperty(d, "__esModule", { value: !0 }); - b = a(28); - d = a(3); - h = a(14); - c.Zhb = function() { - d.Cc("OpenConnectNotifier"); - return { - zF: function(a) { - b.Za.A3a({ - url: a.url, - reason: a.reason - }); + g = a(124); + b = a(5); + c = a(9); + h = a(41); + d = a(7); + k = a(3); + f = a(56); + p = a(84); + m = a(12); + r = a(17); + u = a(6); + A.netflix = A.netflix || {}; + m.sa(!A.netflix.player); + A.netflix.player = { + VideoSession: g.wN, + diag: { + togglePanel: function(a, b) { + var f; + if (!c.config || c.config.yK) { + switch (a) { + case "info": + f = h.Cq.map(function(a) { + return a.TT; + }); + break; + case "streams": + f = h.Cq.map(function(a) { + return a.njb; + }); + break; + case "log": + f = []; + } + f && f.forEach(function(a) { + r.ab(b) ? b ? a.show() : a.ey() : a.toggle(); + }); + } }, - e6: h.Gb - }; - }(); - }, function(f, c, a) { - Object.defineProperty(c, "__esModule", { + addLogMessageSink: function(a) { + k.ca.get(f.dt).addListener({ + Mza: function() {}, + wva: function(b) { + a({ + data: b.data + }); + } + }); + } + }, + log: k.zd("Ext"), + LogLevel: d.Oh, + addLogSink: function(a, b) { + k.ca.get(p.lw).SD(a, b); + }, + getVersion: function() { + return "6.0015.328.011"; + }, + isWidevineSupported: function(a) { + var c; + + function f(a) { + return function(b, f) { + return f.contentType == a; + }; + } + if ("function" !== typeof a) throw Error("input param is not a function"); + c = [{ + distinctiveIdentifier: "not-allowed", + videoCapabilities: [{ + contentType: b.Wk, + robustness: "SW_SECURE_DECODE" + }], + audioCapabilities: [{ + contentType: b.ow, + robustness: "SW_SECURE_CRYPTO" + }] + }]; + try { + u.Ph.requestMediaKeySystemAccess("com.widevine.alpha", c).then(function(c) { + var d; + d = c.getConfiguration(); + c = d.videoCapabilities || []; + d = (d.audioCapabilities || []).reduce(f(b.ow), !1); + c = c.reduce(f(b.Wk), !1); + a(d && c); + })["catch"](function() { + a(!1); + }); + } catch (w) { + a(!1); + } + } + }; + }, function(g, d, a) { + var b, c, h, k, f, p, m, r; + Object.defineProperty(d, "__esModule", { value: !0 }); - f = a(423); - c.o2a = f["default"]; - }, function(f, c) { - function a(a, b, c) { - this.start = a; - this.track = b; - this.nx = c; - this.end = void 0; - this.nx = Array.isArray(c) ? c : []; - } - - function b(a, b, c) { - this.log = a; - this.Dx = b; - this.oa = c.oa; - this.Of = c.Of || function() {}; - this.current = void 0; - this.Z3 = []; - this.orphans = []; - } - - function d(a) { - var b; - b = !1; - a.reduce(function(a, c) { - a[c] = (a[c] | 0) + 1; - 1 < a[c] && (b = !0); - return a; - }, Object.create(null)); - return b; - } - - function h(a, b) { - return d(a) ? (b.error("duplicates in entries"), a.filter(function(a, b, c) { - return c.indexOf(a) === b; - })) : a; - } - - function l(a) { - return Object.keys(a).map(function(b) { - return a[b]; - }); - } - Object.defineProperty(c, "__esModule", { + g = a(19); + b = a(124); + c = a(5); + d = a(2); + h = a(9); + k = a(142); + f = a(3); + p = a(41); + m = a(125); + r = a(66); + g.Ge(d.I.$da, function(a) { + var d, g; + if (h.config.z6a) { + d = f.ca.get(k.fN); + g = f.ca.get(r.pn); + b.wN.TG.test = { + pboRequests: d.CK, + playbacks: p.Cq, + aseManager: { + cacheDestroy: function() { + return m.gk.fna(); + } + }, + device: { + esn: A._cad_global.device.Df, + esnPrefix: g.Im, + errorPrefix: g.pC + } + }; + } + a(c.Bb); + }); + }, function(g, d, a) { + var b, c, h, k, f, p, m, r, u, l, v, y, w, n, z; + Object.defineProperty(d, "__esModule", { value: !0 }); - b.prototype.BLa = function(a, b) { - this.Rna(a, b, "activating"); - }; - b.prototype.pSa = function(a) { - this.TZ(a, "de-activating"); - }; - b.prototype.Rna = function(b, c, d) { - var g; - g = []; - this.current && this.TZ(b, "close current for new"); - this.orphans.length && (g.push(this.orphans), this.orphans = []); - this.current = new a(b, c, g); - this.Dx && this.log.trace("new range: " + d, this.oa({}, this.current)); - }; - b.prototype.TZ = function(a, b) { - this.current && (this.current.end = a, this.Z3.push(this.current), this.Dx && this.log.trace("end range: " + b, this.oa({}, this.current || {})), this.current = void 0); - }; - b.prototype.Msa = function(a) { - this.current ? this.current.nx.push(a) : this.orphans.push(a); - }; - b.prototype.d0 = function(b) { - var c, d, g; - c = this; - d = c.Z3.slice(0); - if (c.current && "undefined" != typeof b) { - g = new a(c.current.start, c.current.track, c.current.nx); - g.end = b; - d.push(g); + g = a(19); + b = a(93); + c = a(105); + h = a(124); + k = a(141); + f = a(172); + p = a(34); + m = a(5); + r = a(9); + u = a(97); + l = a(2); + v = a(3); + y = a(12); + w = a(18); + n = a(17); + z = a(15); + g.Ge(l.I.Yda, function(a) { + var x, D; + + function d(a, b) { + var f; + f = { + profile: c.xg.profile, + log: x, + Ab: p.Ab + }; + a.email && (f.Sx = a.email, f.password = a.password || ""); + a.sendNetflixIdUserAuthData && (f.useNetflixUserAuthData = a.sendNetflixIdUserAuthData); + a.eh && (f.eh = a.eh); + b({ + S: !0, + cs: f + }); } - b = d.reduce(function(a, b) { - var d, g, f, m; - if (!b.track) return a; - d = b.track.ac; - g = b.track.Vs(b.start, b.end); - if (!g) return a; - f = h(b.nx, c.log); - a[d] ? (m = a[d], m.expected += g.length, m.missed += g.length - f.length) : (m = {}, m.dlid = d, m.bcp47 = b.track.Dl, m.profile = b.track.Q2, m.expected = g.length, m.missed = g.length - f.length, m.startPts = b.track.HYa(), a[d] = m); - return a; - }, {}); - b = l(b); - c.Dx && c.log.trace("subtitleqoe:", JSON.stringify(b, null, "\t")); - return b; - }; - b.prototype.xYa = function(b) { - var c, d, g, f, l; - c = this; - d = c.Z3.slice(0); - g = 0; - f = 0; - c.current && "undefined" != typeof b && (l = new a(c.current.start, c.current.track, c.current.nx), l.end = b, d.push(l)); - d.forEach(function(a) { - var b, d; - if (a.track) { - if (a.end < a.start) { - c.Of("negative range", a); - a.Kt = 0; - return; - } - b = h(a.nx, c.log); - d = a.track.Vs(a.start, a.end); - a.Kl = d ? d.map(function(a) { - return a.id; - }) : []; - a.Kt = d ? 0 === d.length ? 100 : 100 * b.length / d.length : 0; - } else a.Kt = 100; - b = a.end - a.start; - g += b; - f += a.Kt * b; - }); - l = g ? Math.round(f / g) : 100; - c.log.trace("qoe score " + l + ", at pts: " + b); - c.Dx && (b = d.map(function(a) { + + function g(a) { return { - start: a.start, - "end ": a.end, - duration: a.end - a.start, - score: Math.round(a.Kt), - lang: a.track ? a.track.Dl : "none", - "actual ": a.nx.join(" "), - expected: (a.Kl || []).join(" ") + account: { + id: a.vh.id + }, + id: a.id, + lastAccessTime: a.jJ, + languages: a.languages, + registered: a.r9 }; - }), c.log.trace("score for each range: ", JSON.stringify(b, function(a, b) { - return b; - }, " "))); - return l; - }; - c.gFa = b; - }, function(f) { - f.P = "3.1.49"; - }, function(f, c, a) { - var b, d, h, l, g, m; - b = a(21); - d = a(71); - h = a(9); - l = h.Pa; - g = h.MediaSource; - m = h.gAa; - f.P = function(a) { - var c, f, p, k, w, n; - new h.Console("ASEJSMONKEY", "media|asejs"); - if (!h.Pa.Zg) { - c = m.prototype.appendBuffer; - if (a.wX) { - l.Zg = { - tQ: { - el: !0, - Yo: !1, - fU: !0 - } - }; - Object.defineProperties(l.prototype, { - $u: { - get: function() { - return this.jGa; - }, - set: function() {} - }, - zc: { - get: function() { - return !this.X0; - } - } + } + x = v.zd("NccpApi"); + D = w.OXa(); + h.wN.TG.nccp = { + getEsn: function() { + return b.cg.Df; + }, + getPreferredLanguages: function() { + return r.config.Bg.bz; + }, + setPreferredLanguages: function(a) { + y.sa(z.isArray(a) && n.Uu(a[0])); + r.config.Bg.bz = a; + }, + login: function(a, b) { + return new Promise(function(f, d) { + c.xg.uy(a, b).then(function(a) { + f(g(a)); + })["catch"](function(a) { + d({ + success: !1, + error: v.ww(a.code, a) + }); + }); }); - f = l.prototype.vi; - l.prototype.vi = function(a) { - a.response && (this.jGa = a.response instanceof ArrayBuffer ? a.response : a.response.buffer); - return f.call(this, a); - }; - l.prototype.lQ = function() { - this.response = void 0; - }; - Object.defineProperty(g.prototype, "duration", { - get: function() { - return this.wd; - }, - set: function(a) { - var b; - this.wd = a || Infinity; - b = Math.floor(1E3 * a) || Infinity; - this.sourceBuffers.forEach(function(a) { - a.wd = b; + }, + logout: function() { + return new Promise(function(a, b) { + c.xg.peb().then(a)["catch"](function(a) { + b({ + success: !1, + error: v.ww(a.code, a) }); - } + }); }); - p = m.prototype.k5; - k = { - zc: !1, - oi: function() { - return this.requestId; - }, - Nga: function() { - this.response = void 0; - }, - constructor: { - name: "MediaRequest" - }, - toJSON: function() { - var a; - a = { - requestId: this.requestId, - segmentId: this.wo, - isHeader: this.zc, - ptsStart: this.hb, - ptsOffset: this.mh, - responseType: this.DL, - duration: this.gd, - readystate: this.xe - }; - this.stream && (a.bitrate = this.stream.J); - return JSON.stringify(a); - } - }; - m.prototype.appendBuffer = function(a, b) { - var g; - if (!b) return c.call(this, a); - g = Object.create(k); - d({ - O: this.O, - readyState: l.Va.DONE, - requestId: b.oi(), - hb: b.X, - Lg: b.X + b.duration, - gd: b.duration, - mh: this.kL || 0, - Gv: b.Gv, - wo: b.yf.jc.na.id, - ib: b.ib, - Ec: b.Ec, - location: b.location, - BE: b.offset, - AE: b.offset + b.ga - 1, - J: b.J, - response: a, - Dka: a && 0 < a.byteLength, - yf: { - jc: { - na: { - fa: this.wd - (this.kL || 0) || Infinity - } - } - } - }, g); - return this.fM(g); - }; - m.prototype.k5 = function(a, b) { - this.kL = Math.floor(1E3 * a / b); - return p.call(this, a, b); - }; - } else { - w = function(a) { - this.oIa = a; - }; - h.Pa.Zg = { - tQ: { - el: !0, - Yo: !0, - fU: !0 - } - }; - Object.defineProperty(l.prototype, "_response", { - get: function() { - return this.KKa || this.YGa; - }, - set: function(a) { - this.YGa = a; - } + }, + isLoggedIn: function() { + return c.xg.J2a().map(function(a) { + return !(a.Xi || "browser" === a.id); }); - n = l.prototype.open; - l.prototype.open = function(a, b, c, d, g, h, f) { - c === l.Ei.Yo && (this.KKa = new w(this)); - return n.call(this, a, b, c, d, g, h, f); - }; - l.prototype.lQ = function() { - this.$u = void 0; - }; - m.prototype.appendBuffer = function(a) { - if (a instanceof ArrayBuffer) return c.call(this, a); - if (a instanceof w) return this.fM(a.oIa); - b(!1); - }; + }, + switchProfile: function(a) { + return new Promise(function(b, f) { + c.xg.Upb(a).then(function(a) { + b(g(a)); + })["catch"](function(a) { + f({ + success: !1, + error: v.ww(a.code, a) + }); + }); + }); + }, + ping: function(a, b) { + d(a, function(a) { + k.Yg.ping(a.cs, function(a) { + b && (a.S ? b({ + success: !0 + }) : b({ + success: !1, + error: v.ww(l.I.iY, a) + })); + }); + }); + }, + netflixId: function(a, b) { + d(a, function(a) { + k.Yg.K0(a.cs).then(function() { + b && b({ + success: !0 + }); + })["catch"](function(a) { + b({ + success: !1, + error: v.ww(l.I.nfa, a) + }); + }); + }); + }, + getDeviceTokens: function(a) { + y.sa(z.qb(a)); + k.Yg.K0({ + log: x, + Ab: p.Ab + }).then(function(b) { + a && a(b); + })["catch"](function(b) { + a({ + success: !1, + error: v.ww(l.I.nfa, b) + }); + }); + }, + getRegistered: function(a, b) { + var d; + try { + d = f.$i.rf.hasUserIdToken(a.id || c.xg.profile.id); + b({ + success: !0, + registered: d + }); + } catch (ga) { + b({ + success: !1 + }); + } + }, + unregister: function(a, b) { + try { + f.$i.rf.removeUserIdToken(a.id || c.xg.profile.id); + b({ + success: !0 + }); + } catch (U) { + b({ + success: !1 + }); + } + }, + queueLogblob: function(a, b, f) { + a && b && (b = b.toLowerCase(), D[b] ? A._cad_global.logBatcher && (a = new u.fA(void 0, a, b, f), A._cad_global.logBatcher.Sb(a)) : x.warn("Invalid severity", { + severity: b + })); + }, + flushLogblobs: function() { + A._cad_global.logBatcher.flush(!0); } - } - }; - }, function(f, c, a) { - var d, h, l; - - function b(a) { - h.call(this); - this.Jy = a; - this.sf = new d(); - this.sf.on(this, h.bd.NC, this.fW); - this.sf.on(this, h.bd.uu, this.KD); - this.V = l; - this.Dda = a.groupId; - } - d = a(31).kC; - c = a(9); - h = c.Wo; - l = new c.Console("ASEJS", "media|asejs"); - b.prototype = Object.create(h.prototype); - b.prototype.constructor = b; - b.prototype.open = function(a, b, c) { - h.prototype.open.call(this, a, b, c); - }; - b.prototype.ze = function() { - this.sf && this.sf.clear(); - h.prototype.ze.call(this); - }; - b.prototype.fW = function(a) { - this.Jy.l6a(a.probed, a.affected); - this.ze(); - }; - b.prototype.KD = function(a) { - this.Jy.i6a(a.probed, a.affected); - this.ze(); - }; - f.P = b; - }, function(f, c, a) { - var d, h, l; - - function b(a, b) { - this.DD = a; - this.Tu = 0 === Math.floor(1E6 * Math.random()) % b.Uw; - this.groupId = 1; - this.config = b; - this.Vp = {}; - this.Ft = {}; - } - d = a(10); - h = a(455); - l = a(9); - new l.Console("ASEJS_PROBE_MANAGER", "asejs"); - b.prototype.constructor = b; - b.prototype.k6a = function(a, b) { - var c, g, h, f, m, k, n, x, y, C, F; - c = this.DD; - g = a.Ec; - h = c.Nra(a.url); - f = c.bP(a.url); - m = this.config; - k = l.time.la(); - x = b; - y = []; - C = h.Sf[0]; - F = !1; - n = this.Vp[g]; - if (!n) n = this.Vp[g] = { - count: 0, - Sj: k, - Hq: !1, - error: b, - g5: [], - L3: {} - }; - else if (n.Sj >= k - m.zR) return; - n.Hq || (C && f.id === C.id && (a.isPrimary = !0), n.Sj = k, n.Hq = !1, n.error = b, ++n.count, h && h.ag && 0 !== h.ag.length && (d.forEach(h.ag, function(b) { - var c, d, h; - c = b.Wb.id; - d = c + "-" + g; - h = this.Ft[d]; - if (void 0 === h || void 0 === h.XP) h && h.Qq && clearTimeout(h.Qq), b = this.wha(b.url, a, c), this.Ft[d] = { - K: !1, - count: 0, - XP: b.oi() - }, y.push(b.oi()), F = !0; - 1 === n.g5.indexOf(c) && n.g5.push(c); - }, this), this.Tu && 0 < y.length && (h = { - type: "logdata", - target: "endplay", - fields: {} - }, b = x, x = { - ts: l.time.la(), - es: b.pX, - fc: b.Mj, - fn: b.wN, - nc: b.Uk, - pb: y, - gid: this.groupId - }, b.ew && (x.hc = b.ew), h.fields.errpb = { - type: "array", - value: x, - adjust: ["ts"] - }, c.Dw(h)), F && this.groupId++)); - }; - b.prototype.wha = function(a, b, c) { - var d, g, f, m; - d = this.DD.bP(b.url); - d = d && d.ma && d.ma.Dm && d.ma.Dm.ta || 300 * Math.random(0, 1); - g = new h(this); - f = a.split("?"); - m = "random=" + parseInt(1E7 * Math.random()); - g.open(1 < f.length ? a + "&" + m : a + "?" + m, b, c, d); - return g; + }; + a(m.Bb); + }); + }, function(g, d, a) { + var b, c, h, k, f; + Object.defineProperty(d, "__esModule", { + value: !0 + }); + b = a(34); + c = a(25); + h = a(12); + k = a(18); + f = a(17); + d.UEa = function(a, b) { + h.sa(a); + h.sa(b); + h.FH(b.d6a, "endpointURL property is required"); + h.sa(b.Si); + this.log = a; + this.wxa = b; }; - b.prototype.l6a = function(a, b) { - var c, d, g, h, f, m, k, x; - c = this.DD; - d = this.config; - g = b.Ec; - h = this.Vp[g]; - m = a.url; - k = this.Ft[a.Ec + "-" + g]; - if (h && (f = h.error, k)) { - k && k.Qq && clearTimeout(k.Qq); - k.K = !0; - k.count = 0; - k.XP = void 0; - h.L3[a.Ec] = !0; - (k = this.Vp[a.Ec]) && !0 === k.Hq && d.zp && (c.pqa(a.Ec, k.error.qI[1]), this.Tu && (k = { - type: "logdata", - target: "endplay", - fields: {} - }, k.fields.errst = { - type: "array", - value: { - ts: l.time.la(), - id: a.requestId, - servid: b.Ec, - gid: a.groupId ? a.groupId : -1 - }, - adjust: ["ts"] - }, c.Dw(k)), this.Vp[a.Ec] = void 0); - if (m !== b.url) { - x = this.Ft[g + "-" + g]; - x && x.K || (g = (g = c.bP(m)) && g.ma && g.ma.Dm && g.ma.Dm.ta || Math.random(0, 1) * d.gP, g = Math.min(g, d.gP), setTimeout(function() { - var d; - if (!(!1 !== h.Hq || x && x.K) && (h.Hq = !0, c.Xk(f.qI[0], f.qI[1], b.url, f), this.Tu)) { - d = { - type: "logdata", - target: "endplay", - fields: {} - }; - d.fields.erep = { - type: "array", - value: { - ts: l.time.la(), - id: a.requestId, - servid: b.Ec, - gid: a.groupId ? a.groupId : -1 - }, - adjust: ["ts"] + d.UEa.prototype.Ju = function() { + var a, d, g; + a = this; + a.log.trace("Downloading config data."); + d = { + browserInfo: JSON.stringify(a.wxa.Si) + }; + g = a.wxa.d6a + "?" + c.SJ(d); + return new Promise(function(c, d) { + function h(b) { + var f; + try { + if (b.S) { + f = new Uint8Array(b.content); + return { + S: !0, + config: JSON.parse(String.fromCharCode.apply(null, f)).core.initParams }; - c.Dw(d); } - }.bind(this), g)); - } - this.Tu && (k = { - type: "logdata", - target: "endplay", - fields: {} - }, k.fields.pbres = { - type: "array", - value: { - ts: l.time.la(), - id: a.requestId, - result: 1, - servid: a.Ec, - gid: a.groupId ? a.groupId : -1 - }, - adjust: ["ts"] - }, c.Dw(k)); - } - }; - b.prototype.i6a = function(a, b) { - var c, g, h, f, m, k, n, x, y; - c = this.DD; - g = parseInt(b.Ec); - h = this.Vp[g]; - f = parseInt(a.Ec); - m = this.Ft[f + "-" + g]; - k = 0; - config = this.config; - if (m && h) { - m.K = !1; - m.XP = void 0; - h.L3[f] = !1; - x = h.g5; - if (config.zp && f === g && b.isPrimary) { - y = c.bP(b.url); - y = y && y.ma && y.ma.Dm && y.ma.Dm.ta || 300 * Math.random(0, 1); - y = y * Math.pow(2, m.count); - y = Math.min(y, 12E4); - y = y + Math.random(0, 1) * (1E4 > y ? 100 : 1E4); - m.Qq = setTimeout(function() { - m.Qq = void 0; - probeRequest = this.wha(a.url, b, f); - m.XP = probeRequest.oi(); - }.bind(this), y); - }++m.count; - f === g && (k = 0, x.forEach(function(a) { - !1 === h.L3[a] && k++; - }), x.length === k && h.count >= config.lP && (n = h.error, h.Hq = !0, d.forEach(c.Nra(b.url).ag, function(a) { - var b; - c.Xk(n.qI[0], n.qI[1], a.url, n); - if (this.Tu) { - b = { - type: "logdata", - target: "endplay", - fields: {} + return { + S: !1, + message: "Unable to download the config. " + b.Ja, + MI: b.Bh }; - b.fields.erep = { - type: "array", - value: { - ts: l.time.la(), - id: -1, - servid: a.Wb.id - }, - adjust: ["ts"] + } catch (P) { + return b = k.ad(P), a.log.error("Unable to download the config. Received an exception parsing response", { + message: P.message, + exception: b, + url: g + }), { + S: !1, + Ja: b, + message: "Unable to download the config. " + P.message }; - c.Dw(b); } - }, this))); - this.Tu && (g = { - type: "logdata", - target: "endplay", - fields: {} - }, g.fields.pbres = { - type: "array", - value: { - ts: l.time.la(), - id: a.requestId, - result: 0, - servid: a.Ec, - gid: a.groupId ? a.groupId : -1 - }, - adjust: ["ts"] - }, c.Dw(g)); - } - }; - b.prototype.h6 = function(a) { - var b, c, d; - b = a.url || a.mediaRequest.url; - if (b) { - a = this.DD; - b = a.cra(b); - c = this.Vp[b]; - d = this.Ft[b + "-" + b]; - c && c.Hq && this.config.zp && (a.pqa(c.error.pX, !1), this.Tu && (c = { - type: "logdata", - target: "endplay", - fields: {} - }, c.fields.errst = { - type: "array", - value: { - ts: l.time.la(), - id: -1, - servid: b - }, - adjust: ["ts"] - }, a.Dw(c)), this.Vp[b] = void 0, d && d.Qq && clearTimeout(d.Qq)); - } - }; - b.prototype.reset = function() { - var a, b, c; - a = this.Ft; - for (c in a) a.hasOwnProperty(c) && (b = a[c + "-" + c]) && b.Qq && clearTimeout(b.Qq); - this.Ft = {}; - this.Vp = {}; - }; - f.P = b; - }, function(f, c, a) { - var d, h, l, g, m, p, r, k, v, z, w, n, x, y, C, F; + } - function b(a, b, c) { - var d, g; - this.fo = b; - this.config = c; - C[y.sT] = c.$Za ? z : x; - this.fo.on("networkFailed", this.mZa.bind(this)); - this.qA = l.time.la(); - this.MM = 0; - d = this.h6.bind(this); - g = this.b4a.bind(this); - a.on("underflow", this.t4a.bind(this)); - a.on("requestProgress", d); - a.on("requestComplete", d); - a.on("startBuffering", g); - this.Q5 = {}; - this.Jy = new r(b, c); - this.m_a(); - } - c = a(44); - d = a(31).EventEmitter; - h = a(10); - l = a(9); - g = new l.Console("ASEJS_ERROR_DIRECTOR", "asejs"); - m = a(13); - p = l.Pa; - r = a(456); - a = [m.Fe.Qo, !1]; - k = [m.Fe.Qo, !0]; - v = [m.Fe.Au, !1]; - z = [m.Fe.Au, !0]; - w = [m.Fe.URL, !0]; - n = []; - x = [m.Fe.Au, !1]; - y = p.dr; - C = {}; - C[y.ndb] = v; - C[y.Yva] = v; - C[y.K7] = v; - C[y.jwa] = v; - C[y.bwa] = z; - C[y.Nua] = z; - C[y.h7] = x; - C[y.lS] = x; - C[y.Oua] = n; - C[y.Pua] = x; - C[y.Qua] = x; - C[y.Kua] = v; - C[y.Mua] = v; - C[y.g7] = a; - C[y.Lua] = v; - C[y.Jua] = x; - C[y.keb] = z; - C[y.Nxa] = x; - C[y.M8] = x; - C[y.L8] = x; - C[y.sT] = x; - C[y.J8] = x; - C[y.Mxa] = w; - C[y.uT] = z; - C[y.zJ] = w; - C[y.vT] = k; - C[y.wT] = z; - C[y.Pxa] = w; - C[y.AJ] = x; - C[y.N8] = z; - C[y.Oxa] = z; - C[y.ewa] = z; - C[y.Zva] = v; - C[y.vEa] = v; - C[y.Pva] = v; - C[y.Qva] = v; - C[y.Rva] = v; - C[y.Sva] = v; - C[y.Tva] = v; - C[y.Uva] = v; - C[y.Vva] = v; - C[y.Wva] = v; - C[y.Xva] = v; - C[y.$va] = v; - C[y.awa] = v; - C[y.cwa] = v; - C[y.dwa] = v; - C[y.fwa] = v; - C[y.gwa] = v; - C[y.hwa] = v; - C[y.iwa] = v; - C[y.kwa] = v; - C[y.lwa] = v; - C[y.tEa] = x; - C[y.TIMEOUT] = a; - F = {}; - F[y.h7] = !0; - F[y.M8] = !0; - F[y.L8] = !0; - F[y.J8] = !0; - F[y.K7] = !0; - c(d, b.prototype); - b.prototype.N9a = function(a) { - this.An = a; - }; - b.prototype.Xk = function(a, b, c, d) { - var f, l, r, k, u, y, z; - f = p.dr.name[b]; - l = C[b]; - y = this.config; - z = this.fo; - g.warn("Failure " + f + " on " + JSON.stringify(d) + " : critical error count = " + this.MM); - this.QO = { - ew: a, - Mj: b, - wN: f, - Uk: c - }; - F[b] && ++this.MM; - if (!h.isArray(l)) g.error("Unmapped failure code in JSASE error director : " + b); - else if (l !== n) { - if (d.url) u = {}, u[z.cra(d.url)] = [d.url]; - else if (d.host) u = z.m9a(d.host, d.port); - else { - g.error("Invalid affected for network failure"); - return; + function m(b, c, d) { + return c > d ? (a.log.error("Config download failed, retry limit exceeded, giving up", f.La({ + Attempts: c - 1, + MaxRetries: d + }, b)), !1) : !0; } - r = l[0]; - k = l[1]; - y.so ? h.forEach(u, function(g, h) { - l === x || l === v ? this.Jy.k6a({ - url: d.url ? d.url : g[0], - Ec: h - }, { - pX: h, - qI: l, - ew: a, - Mj: b, - wN: f, - Uk: c - }) : g.some(function(a) { - z.Xk(r, k, a); - return r === m.Fe.Au; + + function p(a) { + return new Promise(function(b) { + setTimeout(function() { + b(); + }, a); }); - !y.Qn || 0 !== a && void 0 !== a || (g = void 0 !== d.url ? d.url : g[0], this.An && g && this.An.X4("error", g)); - }, this) : h.forEach(u, function(b, c) { - if (l !== x || this.N7a(c)) b.some(function(a) { - z.Xk(r, k, a); - return r === m.Fe.Au; - }), !y.Qn || 0 !== a && void 0 !== a || (b = void 0 !== d.url ? d.url : b[0], this.An && b && this.An.X4("error", b)); - }, this); - } - }; - b.prototype.N7a = function(a) { - var b, c, d; - b = l.time.la(); - d = this.config; - if (c = this.Q5[a]) - if (c.Sj < this.qA) c.Sj = b, c.count = 1; - else { - if (!(c.Sj >= b - d.zR || c.Hq || (c.Sj = b, ++c.count, c.count < d.lP))) return c.Hq = !0; } - else this.Q5[a] = { - Sj: b, - count: 1 - }; - }; - b.prototype.mZa = function(a) { - var b, c, d, h, f, m; - b = l.time.la() - this.qA; - c = a; - m = this.config; - g.warn("Network has failed " + (a ? "permanently" : "temporarily") + " last success was " + b + " ms ago"); - !a && b > m.R2 && (c = !0); - c ? (this.gB && (clearTimeout(this.gB), delete this.gB), this.Oga(), this.Jy.reset(), this.QO && (d = this.QO.Mj, h = this.QO.ew, f = this.QO.Uk), this.emit("streamingFailure", { - N_a: a, - z4a: d, - A4a: h, - B4a: f - })) : this.gB || (this.gB = setTimeout(function() { - delete this.gB; - this.fB(); - }.bind(this), m.S2)); - }; - b.prototype.fB = function(a) { - this.gB || (this.fo.fB(!!a), this.Q5 = {}, this.emit("networkFailureReset")); - }; - b.prototype.h6 = function(a) { - var b; - b = this.config; - this.qA = Math.max(a.timestamp || l.time.la(), this.qA); - this.Oga(); - b.so && this.Jy.h6(a); - }; - b.prototype.b4a = function() { - this.MM = 0; - }; - b.prototype.t4a = function(a) { - var b, c; - b = this.config; - c = b.d2; - this.qA = Math.max(a || l.time.la(), this.qA); - b.ocb && !this.sI && (g.info("Setting underflow timeout in " + c + "ms"), this.sI = setTimeout(function() { - g.info("Forcing permanent network failure after " + c + "ms, since underflow with no success"); - delete this.sI; - this.fo.Xk(m.Fe.Qo, !0); - }.bind(this), c)); - }; - b.prototype.Oga = function() { - this.sI && (clearTimeout(this.sI), delete this.sI, g.info("Cleared underflow timeout")); - }; - b.prototype.m_a = function() { - var b, c, d, h; - function a(a) { - for (var b = a.length, c, d; b;) d = Math.floor(Math.random() * b--), c = a[b], a[b] = a[d], a[d] = c; - return a; - } - b = this.fo; - c = this; - d = this.config.qZ; - h = {}; - switch (d) { - case "1": - b.on("manifestAdded", function() { - var d; - d = []; - h.n = h.n || 0; - b.ija(function(a, b, c, g) { - h[g.id] || (h[g.id] = !0, d.push(g.id)); - }); - a(d).forEach(function(a) { - setTimeout(function() { - c.Xk(p.dr.wT, { - url: a - }); - }, 4E3 + h.n); - h.n += 1E3; - }); - }); - break; - case "2": - b.on("manifestAdded", function() { - var a; - a = []; - b.ija(function(b, c, d, g) { - h[g.id] || (h[g.id] = !0, a.push({ - J: d.J, - url: g.id - })); - }); - a.sort(function(a, b) { - return b.J - a.J; - }).map(function(a) { - return a.url; - }).forEach(function(a) { - setTimeout(function() { - b.Xv() || c.Xk(p.dr.zJ, { - url: a - }); - }, 5E3 * Math.random()); - }); + function r(g, u, l) { + b.Ab.download(g, function(b) { + var v; + b = h(b); + if (b.S) c(b); + else { + a.log.warn("Config download failed, retrying", f.La({ + Attempt: u, + WaitTime: v, + MaxRetries: l + }, b)); + if (m(b, u + 1, l)) return v = k.$xa(1E3, 1E3 * Math.pow(2, Math.min(u - 1, l))), p(v).then(function() { + return r(g, u + 1, l); + }); + d(b); + } }); - break; - default: - return; - } - g.warn('Initialized network failure simulation "' + d + '"'); + } + return b.Ab ? r({ + url: g, + responseType: 3, + withCredentials: !0, + Ox: "config-download" + }, 1, 3) : Promise.reject({ + S: !1, + message: "Unable to download Config. There was no HTTP object supplied" + }); + }); }; - f.P = b; - }, function(f, c, a) { - var d, h, l; + }, function(g, d, a) { + var b, c, h, k; + Object.defineProperty(d, "__esModule", { + value: !0 + }); + g = a(19); + b = a(9); + c = a(5); + d = a(2); + h = a(3); + k = a(165); + g.Ge(d.I.Lda, function(a) { + b.config.N7a && h.ca.get(k.pda).start(); + a(c.Bb); + }); + }, function(g, d, a) { + var b, c, h, k, f, p, m, r, u, l, v, y, w, n, z; + Object.defineProperty(d, "__esModule", { + value: !0 + }); + b = a(147); + c = a(19); + h = a(252); + k = a(41); + f = a(9); + p = a(55); + m = a(5); + r = a(25); + u = a(21); + l = a(18); + v = a(6); + y = a(3); + w = a(88); + n = a(16); + z = a(33); + k.yga(k.tga, function(a) { + var ga, S, T, H, X, aa; - function b(a, b, c) { - this.ka = c; - this.oLa = new d(a); - this.VW = b.aa; - this.xGa = 1E3 * b.a2a / b.TNa; - this.fHa = b.aia; - } - d = a(30).cGa; - h = a(35).FE; - c = a(9); - l = c.Pa; - new c.Console("ASEJS_SIDECHANNEL", "media|asejs"); - b.prototype.constructor = b; - b.prototype.b9a = function(a) { - return Object.keys(a).map(function(b) { - return encodeURIComponent(b) + "=" + encodeURIComponent(JSON.stringify(a[b])); - }).join("&"); - }; - b.prototype.Bs = function(a) { - var b; - b = { - s_xid: this.VW, - dl: this.fHa ? 1 : 0 - }; - a.Nd && (b.bs = h(Math.floor(a.Nd / this.xGa) + 1, 1, 5)); - a.hga && (b.bb_reason = a.hga); - return b; - }; - b.prototype.doa = function(a) { - var b; - try { - b = this.b9a(a); - return this.oLa.encrypt(b); - } catch (p) { - this.ka.lo("SideChannel: Error when obfuscating msg. Error: " + p); - } - }; - b.prototype.X4 = function(a, b) { - var c, d, g; - try { - c = new l(void 0, "notification"); - d = this.Bs({ - hga: a - }); - g = this.doa(d); - b && g && c.open(b, void 0, l.Ei.fU, void 0, void 0, void 0, g); - } catch (v) { - this.ka.lo("SideChannel: Error when sending sendBlackBoxNotification. Error: " + v); + function d(b) { + b.newValue >= k.Yk && (a.state.removeListener(d), t("type=openplay&sev=info&locstor=" + v.bY(q())), T = u.yc(), D()); } - }; - f.P = b; - }, function(f, c, a) { - var d, h; - function b(a) { - this.cv = void 0; - this.pIa = a; - this.yW = []; - this.Gc = []; - } - a(10); - a(13); - d = a(9); - h = a(41).iw; - a(30); - b.prototype.reset = function(a) { - this.cv = void 0; - this.yW = []; - a && (this.Gc = []); - }; - b.prototype.add = function(a, b) { - var c; - c = b.filter(function(a) { - return h(a); - }); - bitrateList = c.map(function(a) { - return a.J; - }); - selectedStream = b[a.se]; - selectedStreamIndex = c.indexOf(selectedStream); - this.cv && (this.cv.length !== bitrateList.length || this.cv.some(function(a, b) { - a !== bitrateList[b]; - })) && (b = this.Jja()) && (this.Gc.push(b), this.reset(!1)); - void 0 === this.cv && (this.cv = bitrateList); - this.yW.push({ - time: d.time.la(), - Ka: a.Ka, - wE: a.wE, - vE: a.vE, - gH: a.gH, - QG: a.QG, - se: selectedStreamIndex, - UA: a.UA - }); - }; - b.prototype.uUa = function() { - var h; - for (var a = this.yW, b = [], c = { - se: 0, - time: 0, - Ka: 0, - wE: 0, - vE: 0, - gH: 0, - QG: 0, - UA: 0 - }, d = 0; d < a.length; d++) { - h = a[d]; - b.push([h.se - c.se, h.time - c.time, h.Ka - c.Ka, h.wE - c.wE, h.vE - c.vE, h.gH - c.gH, h.QG - c.QG, h.UA - c.UA]); - c = h; + function g() { + aa("type=startplay&sev=info&outcome=success"); } - return b; - }; - b.prototype.Jja = function() { - var a; - a = this.uUa(); - if (0 !== a.length) return { - dltype: this.pIa, - bitrates: this.cv, - seltrace: a - }; - }; - b.prototype.get = function() { - var a, b; - a = this.Jja(); - b = this.Gc; - a && b.push(a); - if (0 !== b.length) return b; - }; - f.P = b; - }, function(f, c, a) { - var d, h; - function b() { - this.KL = []; - this.KL[d.G.VIDEO] = new h(d.G.VIDEO); - this.KL[d.G.AUDIO] = new h(d.G.AUDIO); - } - a(10); - d = a(13); - a(9); - a(30); - h = a(459); - b.prototype.aMa = function(a, b, c) { - this.KL[a].add(b, c); - }; - b.prototype.JYa = function() { - var a; - a = []; - this.KL.forEach(function(b) { - var c; - if (b) { - c = b.get(); - c && 0 < c.length && c.forEach(function(b) { - a.push(b); + function x() { + var f, c; + f = a.Ch; + if (f) { + c = "type=startplay&sev=error&outcome=error"; + f = b.Lra(z.UGa, f); + l.pc(f, function(a, b) { + c += "&" + v.bY(a) + "=" + v.bY(b || ""); }); - b.reset(!0); + aa(c); + } else aa("type=startplay&sev=info&outcome=abort"); + } + + function D() { + var a, b; + a = H.shift(); + if (0 < a) { + b = v.Xk(a - (u.yc() - T), 0); + S = setTimeout(function() { + t("type=startstall&sev=info&kt=" + a); + D(); + }, b); } - }); - return a; - }; - b.prototype.lVa = function(a) { - var b; - b = this.JYa(); - a.strmsel = b; - return 0 < b.length; - }; - f.P = b; - }, function(f, c, a) { - var h, l, g, m, p, r; + } - function b(a, b, c) { - this.ka = a; - this.pl = b; - this.H = c; - this.XD = [new d(a, l.G.AUDIO), new d(a, l.G.VIDEO)]; - this.Dr = void 0; - } + function E() { + aa("type=startplay&sev=info&outcome=unload"); + } - function d(a, b) { - this.V = p(g, a.V, "[" + b + "]"); - this.Yb = this.V.error.bind(this.V); - this.ba = this.V.warn.bind(this.V); - this.wc = this.V.trace.bind(this.V); - this.wa = this.V.log.bind(this.V); - this.Fr = this.V.debug.bind(this.V); - this.O = b; - this.Nk = this.sF = this.Bk = this.uE = this.En = this.m1 = this.Si = void 0; - this.fH = this.Qm = 0; - this.connected = !1; - this.r1 = this.kw = this.dma = this.o1 = this.jt = this.Im = this.Nh = void 0; - this.Hx = this.jia = !1; - this.b2 = this.rE = this.Em = void 0; - } - h = a(10); - l = a(13); - g = a(9); - m = a(41).iw; - p = a(30).pG; - r = a(257); - Object.defineProperties(b.prototype, { - rb: { - get: function() { - return this.XD; + function q() { + var a, b, f; + try { + b = "" + u.Ex(); + localStorage.setItem("player$test", b); + f = localStorage.getItem("player$test"); + localStorage.removeItem("player$test"); + a = b == f ? "success" : "mism"; + } catch (ja) { + a = "ex: " + ja; } + return a; + } + + function t(b) { + b = X + "&soffms=" + a.by() + "&" + b; + a.ud && Object.keys(a.ud).length && (b += "&" + r.SJ(l.La({}, a.ud, { + prefix: "sm_" + }))); + h.Nqb(b, ga); + } + ga = y.ca.get(w.Ms).host + f.config.Daa; + if (f.config.zV && ga) { + H = f.config.Oqb.slice(); + X = "xid=" + a.ka + "&pbi=" + a.index + "&uiLabel=" + (a.uc || ""); + a.state.addListener(d); + a.addEventListener(n.X.Hh, g); + a.addEventListener(n.X.Ce, x); + p.ee.addListener(p.uk, E, m.mA); + aa = function(b) { + aa = m.Qb; + b += "&initstart=" + c.JS + "&initend=" + c.A6; + t(b); + clearTimeout(S); + a.removeEventListener(n.X.Hh, g); + a.removeEventListener(n.X.Ce, x); + p.ee.removeListener(p.uk, E); + }; } }); - b.prototype.BA = function(a) { - var b, c, d, f, m, p, r, k, u, n; - b = this.H; - c = this.ka; - d = a.O; - f = this.pl.bufferSize[d]; - m = a.jc.Da; - p = c.Ca[m]; - r = this.XD[d]; - b = d === l.G.VIDEO ? b.GX : b.r6; - k = c.Hy.Hg(); - f = { - Av: f, - X: null, - me: k, - Ka: null, - Qi: a.nz || k, - Yf: 0, - Mw: 0, - T: [] + }, function(g, d, a) { + var b, c; + Object.defineProperty(d, "__esModule", { + value: !0 + }); + g = a(94); + b = a(9); + c = a(3); + g.yF(function(a) { + var d, f, g, h; + d = { + "video-merch-bob-vertical": 480, + "video-merch-bob-horizontal": 384, + "video-merch-jaw": 720 }; - p = { - state: c.Ib.value, - al: a.ih, - buffer: f, - bz: p.Bp[d], - JTa: b, - C1a: c.ED, - onb: c.oHa, - Kj: c.Kj - }; - b = a.Ia.jka(); - f.Ka = b.ro; - f.X = b.qc; - f.Yf = b.Yf; - f.Mw = b.Mw; - f.Knb = b.T.length; - void 0 === p.al && (p.al = c.XK(d, m, f.Ka)); - f.T = b.T; - if (p.state === l.xa.nf && 0 === f.T.length && !h.da(a.EB.Su)) { - a.z4 && (n = g.time.la() - a.z4.time, u = a.z4.reason); - a.Yb("makePlayerInfo, PLAYING with 0 fragments,", "lastStreamAppended:", r.Im, "lastStreamSelected:", r.Nh, "last pipeline.reset:", u, "delta:", n); - } - h.da(f.X) ? a.seeking && f.me != f.X && (f.me = f.X) : (f.X = 0, f.Ka = 0); - c.ec.WOa(p); - c.ec.WLa(p); - return p; - }; - b.prototype.VOa = function(a, b, c) { - var p, r; - a = this.XD[a]; - for (var d = a.b2, g = "manifest", h = this.ka, f = 0, l = b.length - 1; 0 <= l; l--) { - p = b[l]; - r = p.J; - if (m(p)) { - f = Math.max(f, r); - break; - } else !p.inRange && p.Cz && p.Cz.join ? g = p.Cz.join("|") : p.Ok ? p.Ye ? p.fh && (g = "hf") : g = "av" : g = "bc"; + Object.assign(d, b.config.orb); + f = d[a.uc]; + if (b.config.prb && f) { + g = {}; + h = c.qf(a, "MediaStreamFilter"); + return { + iI: "uiLabel", + zs: function(b) { + if (b.lower && b.height > f) return g[b.height] || (g[b.height] = !0, h.warn("Restricting resolution due to uiLabel", { + MaxHeight: f, + streamHeight: b.height + }), a.du.set({ + reason: "uiLabel", + height: b.height + })), !0; + } + }; } - if (void 0 === d || f !== d) { - a.b2 = f; - if (h.Lk) try { - this.Dr && this.lZa(); - } catch (T) { - h.lo("Hindsight: Error when handling maxbitrate chagned: " + T); + }); + }, function(g, d, a) { + var c, h, k, f; + + function b(a) { + var d, g; + + function b(c) { + c = c.hp; + a.removeEventListener(f.X.Q7, b); + try { + h.zcb(c.data) && (g = !0, a.dob()); + d.trace("RA check", { + HasRA: g + }); + } catch (v) { + d.error("RA check exception", v); } - h.z3a(d, f, g, c); } - }; - b.prototype.gO = function(a) { - var b, c, d, g, f, m, p, r, k, u, n, q; - b = this.H; - c = this.ka; - d = a.O; - g = d == l.G.VIDEO; - f = 0; - p = this.XD[d]; - if (!p.Si) return { - rh: void 0 - }; - r = this.BA(a); - k = p.Nh; - u = a.jc.Da; - n = a.Nc; - q = k ? k.index : p.sF; - if (k && (f = k.J, k.xM)) { - q = c.qda(n, f); - m = n[q]; - if (k.J !== m.J || !k.xM.replace && d === l.G.VIDEO) r.state = l.xa.ng; - k.index = q; - k.J = m.J; - } - m = c.bq(u); - n = m.fo.NR(r, n); - if (!n) return a.Yb("location selector did not find any urls"), { - rh: void 0 - }; - if (!g) { - u = b.M5; - if (!(u && u.length || a.uQ) && q && n[q] && k && k.location === n[q].location) return { - rh: q, - KE: !0 - }; - a.uQ && (r.state = l.xa.ng, q = void 0); - } - if (g && b.Kz && b.sTa && !p.Si.nA() && a.Nd > b.qM) return { - rh: a.EZa, - KE: !0 - }; - c.ec.Aga(r.al, n); - r = a.EB.V4(r, n, q, c.ec.lYa(d), p.Si.config.yf, b.k6 && 0 === c.hea ? b.EA : b.m2, m.Mz); - if (!r) return a.Yb("stream selector did not find a stream"), { - rh: void 0 - }; - c.Kj && c.P7a.aMa(a.O, r, n); - g && this.VOa(d, n, a.Ka); - c.ec.s4a(r); - d = r.se; - n = n[d].J; - k = c.Bm(l.G.VIDEO); - r.lSa && k < b.ZX && n < f && c.jJa(f, n); - d != q && (g && b.Kz && c.jca(a, n), g || c.ec.sB(n)); - h.da(p.sF) || (p.sF = d); - a.Nn || (r.Nn ? (a.Nn = !0, p.rE = r.reason) : (a.oG = r.oG, a.cx = r.cx, a.Rh = r.Rh)); - c.Ku(); - g && c.nKa(a, r.Mv) || delete a.Hs; + d = c.qf(a, "RAF"); + a.addEventListener(f.X.Q7, b); return { - rh: d, - KE: r.KE, - iB: r.iB + iI: "ra", + zs: function(a) { + if (!g && a.Fl) return a = a.Me, !(0 < a.toLowerCase().indexOf("l30") || 0 < a.toLowerCase().indexOf("l31")); + } }; - }; - b.prototype.i_ = function(a, b) { - var c, d, g, h, f; - if (this.Dr) { - c = this; - d = this.Dr; - g = this.ka; - h = g.Hg(); - f = []; - b && (h = b.fa); - g.ja.Yd.forEach(function(b) { - var d, m; - d = c.BA(b); - m = b.O; - d.O = m; - d.headers = g.Uz(m); - d.me = h; - a === l.xa.qr && (d.Npa = b.Ia.sX(h)); - f[m] = d; - }); - d.Wia || d.sVa(f, a) || this.y4(); - return d; - } - }; - b.prototype.lZa = function() { - var a, b, c, d, h; - a = this; - b = this.Dr; - c = this.H; - d = this.ka; - h = []; - b && (this.i_(void 0), b && !b.Zy && d.dE.cQ.WZ(b)); - d.ja.Yd.forEach(function(b) { - var c, d; - c = a.BA(b); - d = b.O; - c.Bk = g.time.la(); - c.Nc = b.Nc; - c.O = d; - h[d] = c; - }); - b = { - vLa: a.pl.bufferSize[l.G.AUDIO], - p6: a.pl.bufferSize[l.G.VIDEO], - j2: c.tw - }; - this.Dr = b = new r(h, g.time.la(), void 0, d.uia, b); - }; - b.prototype.y4 = function() { - this.Dr = void 0; - }; - b.prototype.ecb = function(a) { - var b, c, d, h, f, m; - b = this; - c = a.oldValue; - d = a.newValue; - h = this.Dr; - a = this.H; - f = this.ka; - d === l.xa.nf && c !== l.xa.nf ? (h && f.V.warn("override an existing play segment!"), m = [], f.ja.Yd.forEach(function(a) { - var c, d, g; - c = b.BA(a); - d = a.O; - g = b.rb[d]; - g.u5 ? (c.Bk = g.u5, delete g.u5) : c.Bk = g.Bk; - c.Nc = a.Nc; - c.O = d; - m[d] = c; - }), d = { - vLa: b.pl.bufferSize[l.G.AUDIO], - p6: b.pl.bufferSize[l.G.VIDEO], - j2: a.tw - }, this.Dr = h = new r(m, g.time.la(), c, a.OF, d)) : d !== l.xa.nf && c === l.xa.nf && h && (this.i_(d), h && !h.Zy && f.dE.cQ.WZ(h), this.y4()); - }; - b.prototype.nZa = function(a) { - this.XD.forEach(function(b) { - b.Nh || (b.Nh = {}); - b.Nh.xM = { - replace: a - }; - b.Nh.location = void 0; - }.bind(this)); - }; - f.P = b; - }, function(f, c, a) { - var d, h, l, g, m, p, r; - - function b(a, b, c, d, g, h, f) { - this.xl = c; - this.Lf = b; - this.Kf = d; - this.Wc = g; - this.Ge = h; - this.H = f; - this.V = a; - this.Yb = this.V.error.bind(this.V); - this.ba = this.V.warn.bind(this.V); - this.wc = this.V.trace.bind(this.V); - this.on = this.addEventListener = m.addEventListener; - this.removeEventListener = m.removeEventListener; - this.emit = this.Ha = m.Ha; - this.reset(); - p && this.wc("BufferManager ctor"); } - d = a(10); - a(21); - h = a(9); - l = a(13); - g = a(72); - m = a(31).EventEmitter; - g = a(72); - r = new g(500, 1E3); - b.prototype.constructor = b; - Object.defineProperties(b.prototype, { - oM: { - get: function() { - return this.Wc ? this.Wc.oM : -1; - } - }, - Pcb: { - get: function() { - return this.Dh.length; + Object.defineProperty(d, "__esModule", { + value: !0 + }); + g = a(94); + c = a(3); + h = a(253); + k = a(33); + f = a(16); + k.Sga && g.yF(b); + d.nxb = b; + }, function(g, d, a) { + var c, h; + + function b(a) { + var b, d; + b = h.qf(a, "MSS"); + if (c.config.Ffb) return { + iI: "mss", + zs: function(f) { + var c, g; + if (f.lower && 2160 <= f.height) a: { + for (c = f; c.lower;) { + if (2160 > c.height && 1080 < c.height) { + c = !0; + break a; + } + if (1080 >= c.height) break; + c = c.lower; + } + c = !1; + } + else c = void 0; + if (c) { + if (void 0 === d) { + try { + g = A.MSMediaKeys; + d = g && g.isTypeSupportedWithFeatures ? "probably" === g.isTypeSupportedWithFeatures("com.microsoft.playready.software", 'video/mp4;codecs="avc1,mp4a";features="display-res-x=3840,display-res-y=2160,display-bpc=8"') : !1; + } catch (x) { + b.error("hasUltraHdDisplay exception"); + d = !0; + } + d || (b.warn("Restricting resolution due screen size", { + MaxHeight: f.height + }), a.du.set({ + reason: "microsoftScreenSize", + height: f.height + })); + } + return !d; + } } - } + }; + } + Object.defineProperty(d, "__esModule", { + value: !0 }); - b.prototype.reset = function() { - this.lp = !1; - this.Dh = []; - this.AD = this.hL = this.HV = this.RV = void 0; - this.KV = this.H.Qfa ? r : new g(0, 1); - this.qW = new g(0, 1E3); - this.jm = void 0; - this.jD = new g(0, 1); - this.Pda = new g(0, 1); - this.Vda = new g(0, 1); - this.yV = !1; - this.DW(this.KV); - }; - b.prototype.DW = function(a) { - this.Wc.k5(a.Bf, a.jb); - }; - b.prototype.PVa = function() { - this.HV = !0; - }; - b.prototype.pause = function() { - this.lp = !0; - }; - b.prototype.resume = function() { - this.lp = !1; - this.Hu(); - }; - b.prototype.NXa = function() { - return this.hL && this.hL.Ij; - }; - b.prototype.GOa = function(a, b) { - var d; - for (var c = 0; c < this.Dh.length; c++) { - d = this.Dh[c]; - d.yf.jc.na.id === a && d.Ri >= b && (d.abort(), this.Dh.splice(c, 1), c--); + g = a(94); + c = a(9); + h = a(3); + g.yF(b); + d.mxb = b; + }, function(g, d, a) { + Object.defineProperty(d, "__esModule", { + value: !0 + }); + a(94).yF(function() { + return { + iI: "op", + zs: function() {} + }; + }); + }, function(g, d, a) { + var c, h, k, f, p, m, r, u, l, v, y, w; + + function b(a) { + var D, q, O, t, U, ga, S, T, H, X, aa, A, Z, Q, ja, ea, ma; + + function b() { + var b; + b = a.Pc.value == k.Mo && a.state.value == k.qn; + A ? b || (clearInterval(A), S = A = void 0, Z && (clearInterval(ja), ja = void 0)) : b && (A = setInterval(g, 1E3), Z && (ja = setInterval(x, Q))); } - }; - b.prototype.YMa = function(a) { - var b; - if (this.H.jF) { - b = a.yf.jc; - if (a.Ri >= b.fa) return; - a.mh != b.Ub && a.lra(b.Ub); - } - this.Dh.push(a); - this.Hu(); - }; - b.prototype.cn = function() { - this.Hu(); - }; - b.prototype.wH = function(a) { - a = this.Dh.indexOf(a); - 1 !== a && this.Dh.splice(a, 1); - }; - b.prototype.t3a = function() { - this.Hu(); - }; - b.prototype.a3 = function() { - this.yV || (this.yV = !0, this.Hu(), this.Wc.endOfStream()); - }; - b.prototype.Hu = function() { - var a, b, c, g, f, m; - b = this.H; - c = Object.getOwnPropertyNames(this.Ge); - b.vX && d.S(this.RV) && 1 === c.length && (a = this.Ge[c[0]], a.complete && !d.S(a.ib) && this.qca(a)); - if (this.Dh.length) - if (this.Wc) - if (c = this.Dh[0], this.lp) this.Ly("@" + h.time.la() + ", bufferManager _append ignored, paused, nextRequest: " + JSON.stringify(c)); - else if (!c.complete && c.rla()) this.ba("aborted MediaRequest should not appear in the toAppend list"), this.Ly("@" + h.time.la() + ", append: removing aborted request from toAppend: " + c.toString()), this.Dh.shift(); - else { - g = c.ib; - if ((a = this.Ge[g]) && a.data) - if (this.HV || g != this.RV) this.HV = !1, this.qca(a); - else if (!b.YR || c.ph.qO()) { - a = c.yf; - f = a.pv; - if (!(this.Lf === l.G.AUDIO && c.Hm && c.yd && !b.Vm && !this.yV && 1 === this.Dh.length && f > b.H2)) { - if (b.jF || b.wia) { - g = a.jc.Ih; - m = c.Ij >= a.jc.qm; - b = f > b.H2; - if (a.jc.qm < a.jc.fa && m && b && !g) return; + + function g() { + var b, c, d, g, h, k; + b = a.ig.value; + b = (b = b && b.stream) && b.height; + if (0 < b) { + c = p.yc(); + d = a.Gh.Zx(); + if (d) { + if (S && 2E3 > c - S.time && b == S.height) { + g = d - S.P4a; + h = q[b]; + h || (q[b] = h = [], b > H && (ga.push(b), f.YV(ga))); + 0 < g && !(aa < b) && (aa = b); + h.push(g); + h.length > T && h.shift(); + (h = t[b]) || (t[b] = h = {}); + k = h[g]; + h[g] = k ? k + 1 : 1; } - this.Dh.shift(); - this.nGa(c); + S = { + time: c, + P4a: d, + height: b + }; + a.TT && a.TT.Lnb(q); } } - } else this.Ly("@" + h.time.la() + ", append: not appending, sourceBuffer not ready"); - }; - b.prototype.kGa = function(a) { - var b; - if (this.H.Qfa) { - b = this.H.ZP[a.profile]; - b && (a = b[a.J]) && (this.qW = new g(a)); } - }; - b.prototype.qca = function(a) { - if (this.Wc.appendBuffer(a.data)) this.Ly("@" + h.time.la() + ", header appended, streamId: " + a.ib), this.RV = a.ib, this.dKa(a.Da || 0, a.ib), this.kGa(a), this.Hu(); - else throw this.ba("appendHeader error: " + this.Wc.error), this.Ly("@" + h.time.la() + ", appendHeader error: " + this.Wc.error), "appendHeaderError"; - }; - b.prototype.nGa = function(a) { - var b, c, d, f, m; - b = a.mh; - c = !1; - d = this.Lf === l.G.AUDIO && a.yd && -1 !== this.H.L4.indexOf(a.profile); - f = a.yf.jc.na; - f.fa && Infinity != f.fa && (f = (f.fa + b) / 1E3, Infinity == this.Kf.duration || this.Kf.duration < f) && (this.Kf.duration = f); - b != this.AD && (f = this.KV.add(this.qW).add(this.jD).add(new g(b, 1E3)), this.DW(f), this.AD = b); - if (d) { - b = a.stream.bc; - m = a.Ut + a.mh; - if (a.Hm) c = new g(a.fa - m, 1E3), c = this.jD.add(c).wka(b); - else if (void 0 !== this.jm) { - d = new g(this.jm, 1E3); - f = new g(a.X, 1E3); - new g(m - a.X, 1E3); - m = this.jD.add(d.ie(f)); - if (f.add(b).gma(d) || m.wka(b)) c = !0, f.add(b), m = m.ie(b); - m.Z2(this.jD) && (f = this.KV.add(this.qW).add(m).add(new g(this.AD, 1E3)), this.DW(f), this.Pda = g.max(this.Pda, m), this.Vda = g.min(this.Vda, m), this.jD = m); - } - } - if (a.$y(this.Wc, this.hL, this.Dh[0], c)) void 0 !== this.jm && this.Lf === l.G.AUDIO && a.hb !== this.jm && (this.Nea(this.jm - this.AD, a.hb - this.AD), this.jm = void 0), a.Hm && (this.jm = a.Lg), this.Ly("@" + h.time.la() + ", request appended, type: " + a.O + ", streamId: " + a.ib + ", pts: " + a.hb + "-" + a.Lg), this.hL = a, void 0 !== this.jm && this.Lf === l.G.AUDIO && a.hb !== this.jm && this.Nea(this.jm - this.kL, a.hb - this.kL), this.jm = a.Hm ? a.Lg : void 0, this.eKa(a), this.Hu(); - else if ("done" != this.Wc.error) throw this.Yb("failure to append queued mediaRequest: " + (a && a.toJSON()) + " err: " + this.Wc.error), this.Wc.error; - }; - b.prototype.dKa = function(a, b) { - a = { - type: "headerAppended", - mediaType: this.Lf, - manifestIndex: a, - streamId: b - }; - this.Ha(a.type, a); - }; - b.prototype.eKa = function(a) { - a = { - type: "requestAppended", - mediaType: this.Lf, - request: a - }; - this.Ha(a.type, a); - }; - b.prototype.Ly = function(a) { - a = { - type: "managerdebugevent", - message: a - }; - this.Ha(a.type, a); - }; - b.prototype.Nea = function(a, b) { - a = { - type: "logdata", - target: "endplay", - fields: { - audiodisc: { - type: "array", - value: { - pts: b, - offset: b - a + + function x() { + v.storage.save(d.wX, { + xid: a.ka, + data: t + }); + } + + function n() { + r.sa(v.storage); + a.addEventListener(y.X.Ce, function() { + x(); + }); + U = []; + v.storage.load(d.uda, function(a) { + var b; + a.S && (U = a.data); + b = {}; + v.storage.load(d.wX, function(a) { + a.S && (b = a.data); + b && b.data && Object.keys(b.data).length && (U.push(b), U.length > Z && U.shift(), v.storage.save(d.uda, U), v.storage.save(d.wX, {})); + }); + }); + } + D = m.qf(a, "DFF"); + q = {}; + O = c.config.T4a; + t = {}; + U = []; + ga = []; + T = c.config.R4a; + H = c.config.S4a; + X = h.JJa; + Z = c.config.W4a; + Q = c.config.V4a; + ea = l.Ph.hardwareConcurrency || 0; + if (c.config.Q4a) return Z && a.addEventListener(y.X.Hma, n), a.NQ = { + i8a: function() { + var a; + a = {}; + t && ga.forEach(function(b) { + var f, c, d; + f = t[b]; + if (f) { + c = 0; + d = 0; + w.pc(f, function(a, b) { + d += u.Bd(a); + c += b; + }); + a[b] = d / c; + } + }); + return a; + }, + y4: function(a) { + var b; + b = {}; + a.forEach(function(a) { + b[a] = {}; + }); + t && (f.YV(a), ga.forEach(function(c) { + var d, g, h, k; + d = t[c]; + if (d) { + g = 0; + h = 0; + w.pc(d, function(a, b) { + g += b; + }); + k = Object.keys(d); + f.YV(k); + for (var m = k.length - 1, p = k[m], r = a.length - 1; 0 <= r; r--) { + for (var u = a[r]; p >= u && 0 <= m;)(p = d[p]) && (h += p), p = k[--m]; + b[u][c] = l.Uf(h / g * 100); + } } + })); + return b; + } + }, a.state.addListener(b), a.Pc.addListener(b), { + iI: "df", + zs: function(b) { + var f, d, g, h, k, m, p, r, u, v; + if (b.lower && b.height > H) { + b = b.height; + a: { + !ma && c.config.wpa && c.config.MQ && a.hoa < c.config.wpa[ea] && (X = l.Ai(X, c.config.MQ), a.du.set({ + reason: "droppedFramesPreviousSession", + height: c.config.MQ + }));ma = !0; + if (aa) { + f = ga.length; + for (d = 0; d < f; d++) + if (g = ga[d], g >= aa && g < X) { + h = q[g]; + if (k = h) b: { + u = O.length;v = h.length; + for (r = 0; r < u; r++) + for (m = O[r], k = m[0], m = m[1], p = 0; p < v; p++) + if (h[p] >= m && 0 >= --k) { + k = !0; + break b; + } k = void 0; + } + if (k && X != g) { + D.warn("Restricting resolution due to high number of dropped frames", { + MaxHeight: g + }); + a.du.set({ + reason: "droppedFrames", + height: g + }); + f = c.config.MQ = X = g; + break a; + } + } aa = void 0; + } + f = X; + } + return b >= f; } } }; - this.Ha(a.type, a); + } + Object.defineProperty(d, "__esModule", { + value: !0 + }); + g = a(94); + c = a(9); + h = a(5); + k = a(41); + f = a(25); + p = a(21); + m = a(3); + r = a(12); + u = a(17); + l = a(6); + v = a(126); + y = a(16); + w = a(18); + g.yF(b); + d.uda = "DroppedFramesHistory"; + d.wX = "DroppedFramesSession"; + d.lxb = b; + }, function(g, d, a) { + var b, c, h; + Object.defineProperty(d, "__esModule", { + value: !0 + }); + b = a(34); + c = a(3); + h = a(17); + d.ryb = function() { + c.zd("OpenConnectNotifier"); + return { + tI: function(a) { + b.Ab.Qgb({ + url: a.url, + reason: a.reason + }); + }, + Iaa: h.Qb + }; + }(); + }, function(g, d) { + Object.defineProperty(d, "__esModule", { + value: !0 + }); + }, function(g, d, a) { + Object.defineProperty(d, "__esModule", { + value: !0 + }); + g = a(3); + a = a(330); + a = g.ca.get(a.zba); + a; + }, function(g, d, a) { + var b, c, h, k, f, p, m, r, u, l, v, y, w, n; + Object.defineProperty(d, "__esModule", { + value: !0 + }); + b = a(19); + c = a(329); + h = a(147); + k = a(5); + f = a(9); + p = a(97); + m = a(41); + r = a(21); + g = a(2); + u = a(3); + l = a(117); + v = a(6); + y = a(42); + w = a(15); + b.Ge(g.I.Nda, function(a) { + var g; + + function d() { + var a, c, d, k; + a = { + browserua: v.pj, + browserhref: v.YM.href, + initstart: b.JS, + initdelay: b.A6 - b.JS + }; + c = v.wd.documentMode; + c && (a.browserdm = "" + c); + "undefined" !== typeof A.nrdp && A.nrdp.device && (a.firmware_version = A.nrdp.device.firmwareVersion); + w.Uu(f.config.hqa) && (a.fesn = f.config.hqa); + Object.assign(a, h.Ura()); + d = v.wq && v.wq.timing; + d && f.config.eeb.map(function(b) { + var f; + f = d[b]; + f && (a["pt_" + b] = f - r.C_a()); + }); + k = g.Cra(); + Object.keys(k).forEach(function(b) { + return a["m_" + b] = k[b]; + }); + c = new p.fA(m.hN && m.hN.j, "startup", "info", a); + n.Sb(c); + } + n = u.ca.get(c.wea); + A._cad_global.logBatcher = n; + g = u.ca.get(l.Hw); + b.qJ(function() { + n.Ac(); + y.hb(d); + }); + a(k.Bb); + }); + }, function(g, d, a) { + var b, c, h; + Object.defineProperty(d, "__esModule", { + value: !0 + }); + b = a(5); + c = a(9); + h = a(21); + d.bub = function(a) { + var f; + f = { + tBb: a, + bqa: !0, + r9: !1, + jJ: h.yc(), + load: function(a) { + (a || b.Qb)(b.Bb); + }, + save: function() { + f.bqa = !0; + }, + remove: function(a) { + f.bqa = !1; + (a || b.Qb)(b.Bb); + }, + yAb: c.config.Bg.bz, + BFb: !0 + }; + return f; }; - f.P = b; - }, function(f, c, a) { - var h, l, g, m, p, r, k; + }, function(g, d, a) { + var k, f, p, m; - function b(a, c, d, h, f, m) { - h.responseType = l.Ei.el; - g.call(this, a, h, f, m); - this.H = c; - this.OK = d; - this.Hi = void 0; - this.DV = b.Nx.INIT; - this.Dy = p.prototype.toString.call(this) + " multiple"; - this.Oy(a.url, h.offset, 8, l.Ei.el); + function b(a, b, d, g) { + var r, u, l; + k.sa(m.ne(a) && !m.isArray(a)); + g = g || ""; + r = ""; + u = a.hasOwnProperty(p.wi) && a[p.wi]; + u && f.pc(u, function(a, b) { + r && (r += " "); + r += a + '="' + h(b) + '"'; + }); + d = (b ? b + ":" : "") + d; + u = g + "<" + d + (r ? " " + r : ""); + l = a.hasOwnProperty(p.jq) && a[p.jq].trim && "" !== a[p.jq].trim() && a[p.jq]; + if (l) return u + ">" + h(l) + ""; + a = c(a, b, g + " "); + return u + (a ? ">\n" + a + "\n" + g + "" : "/>"); } - function d() { - h(!1); + function c(a, c, d) { + var g; + k.sa(m.ne(a) && !m.isArray(a)); + d = d || ""; + g = ""; + f.pc(a, function(a, k) { + var u; + if ("$" != a[0]) + for (var p = f.a7(k), r = 0; r < p.length; r++) + if (k = p[r], g && (g += "\n"), m.ne(k)) g += b(k, c, a, d); + else { + u = (c ? c + ":" : "") + a; + g += d + "<" + u + ">" + h(k) + ""; + } + }); + return g; } - h = a(21); - c = a(71); - l = a(9).Pa; - g = a(172); - m = a(173); - p = a(67); - a(13); - r = a(30).Dv; - k = a(68).Nca; - b.prototype = Object.create(g.prototype); - c({ - Nx: { - INIT: 0, - d$: 1, - a$: 2, - name: ["INIT", "MOOF", "MDAT"] - } - }, b); - Object.defineProperties(b.prototype, { - data: { - get: function() { - return this.Hi; - }, - set: d + + function h(a) { + if (m.bd(a)) return f.r5(a); + if (m.ja(a)) return k.qQ(a, "Convert non-integer numbers to string for xml serialization."), "" + a; + if (null === a || void 0 === a) return ""; + k.sa(!1, "Invalid xml value."); + return ""; + } + Object.defineProperty(d, "__esModule", { + value: !0 + }); + k = a(12); + f = a(18); + p = a(128); + m = a(15); + d.PFb = b; + d.QFb = c; + d.HIb = h; + }, function(g, d, a) { + var b, c; + Object.defineProperty(d, "__esModule", { + value: !0 + }); + g = a(19); + d = a(2); + b = a(3); + c = a(306); + g.Ge(d.I.Mda, function(a) { + b.ca.get(c.Sca)().then(function() { + a({ + S: !0 + }); + })["catch"](function(c) { + b.log.error("error in initializing indexedDb debug tool", c); + a({ + S: !0 + }); + }); + }); + }, function(g, d, a) { + var b, c, h, k, f, p, m, r; + Object.defineProperty(d, "__esModule", { + value: !0 + }); + b = a(19); + c = a(25); + h = a(5); + k = a(9); + f = a(2); + p = a(464); + m = a(33); + r = a(6); + m.Oea && b.Ge(f.I.aea, function(a) { + r.Em && r.Em.generateKey && r.Em.importKey && r.Em.unwrapKey ? !m.wf.wca && k.config.YG != p.bM.WMa && k.config.YG != p.bM.PJa || r.aY ? (b.rJ("wcs"), c.AD(r.Em.generateKey({ + name: "AES-CBC", + length: 128 + }, !0, ["encrypt", "decrypt"])).then(function() { + b.rJ("wcdone"); + a(h.Bb); + }, function(b) { + var c; + b = "" + b; + 0 <= b.indexOf("missing crypto.subtle") ? c = f.H.TY : 0 <= b.indexOf("timeout waiting for iframe to load") && (c = f.H.BQa); + a({ + T: c, + Ja: b + }); + })) : a({ + T: f.H.AQa + }) : a({ + T: f.H.TY + }); + }); + }, function(g, d, a) { + var h, k, f, p, m, r, u, l, v, y, w, n, z, E, q, F, la, N, O; + + function b() { + try { + q.write(new v.pfa([la])); + la = ""; + } catch (Y) { + N.nb(b); } + } + + function c(a) { + a.level <= E && (a = a.uL(!1, !0) + "\n", la += a, N.nb(b)); + } + Object.defineProperty(d, "__esModule", { + value: !0 }); - b.prototype.Oy = function(a, b, c, d) { - a = new m(this.OK, this.Dy + " (" + this.yb.length + ")", { - M: this.M, - O: this.O, - ib: this.ib, - J: this.J, - offset: b, - ga: c, - url: a, - location: this.location, - Ec: this.Ec, - responseType: d - }, this, this.V); - this.push(a); - this.xca = this.yb.reduce(function(a, b) { - return a + b.ga; - }, 0); + g = a(19); + h = a(250); + k = a(9); + f = a(5); + p = a(21); + d = a(7); + m = a(84); + r = a(3); + u = a(2); + l = a(12); + v = a(6); + y = a(145); + w = a(93); + n = a(85); + a = a(4); + z = { + create: !0 }; - b.prototype.wi = function(a) { - var c, h; - this.Hi = this.Hi ? r(this.Hi, a.response) : a.response; - a.response = void 0; - switch (this.DV) { - case b.Nx.INIT: - c = new DataView(this.Hi); - h = c.getUint32(0); - c = c.getUint32(4); - k(c); - this.Oy(a.url, a.offset + a.ga, h, l.Ei.el); - g.prototype.wi.call(this, this); - this.DV = b.Nx.d$; - break; - case b.Nx.d$: - c = new DataView(this.Hi); - h = c.getUint32(this.xca - 8); - c = c.getUint32(this.xca - 4); - k(c); - this.Oy(a.url, a.offset + a.ga, h - 8, l.Ei.el); - this.DV = b.Nx.a$; - g.prototype.wi.call(this, this); - break; - case b.Nx.a$: - g.prototype.wi.call(this, this); - break; - default: + E = d.Oh.LY; + F = []; + la = ""; + N = r.ca.get(n.Ew)(a.rb(10)); + O = r.ca.get(m.lw); + O.SD(y.gA.PX, function(a) { + F.push(a); + }); + g.Ge(u.I.Oda, function(a) { + var g, m, r, u; + + function d() { + var a; + O.JBa(y.gA.PX); + if (q) { + q.seek(q.length); + a = "Version: 6.0015.328.011\n" + (w.cg ? "Esn: " + w.cg.Df + "\n" : "") + "JsSid: " + p.oF + ", Epoch: " + p.Ex() + ", Start: " + p.D_a() + ", TimeZone: " + new Date().getTimezoneOffset() + "\nHref: " + v.YM.href + "\nUserAgent: " + v.pj + "\n--------------------------------------------------------------------------------\n"; + la += a; + N.nb(b); + for (a = 0; a < F.length; a++) c(F[a]); + F = void 0; + O.SD(y.gA.DQa, c); + } + } + l.sa(k.config); + if (h.q3) { + g = p.oF + ".log"; + m = function(a) { + q = a; d(); - } - }; - f.P = b; - }, function(f, c, a) { - var g, m, p, r, k, v, z, n, q; + }; + r = function() { + l.sa(!1); + d(); + }; + u = function(a) { + a.createWriter(m, r); + }; + h.q3.root.getDirectory("netflix.player.logs", z, function(a) { + k.config.lHb ? a.getFile(g, z, u, r) : (a.removeRecursively(f.Qb), d()); + }, r); + } else O.JBa(y.gA.PX), F = void 0; + a(f.Bb); + }); + }, function(g, d, a) { + Object.defineProperty(d, "__esModule", { + value: !0 + }); + a(19); + a(9); + a(5); + a(3); + a(84); + a(145); + a(2); + a(85); + a(4); + }, function(g, d, a) { + var m, r, u, l, v; - function b(a, c) { - var d; - d = a.Uf ? b(a.Uf, c) : []; - d.push({ - jc: a.na.id, - ko: a.kb[c].Ia - }); - return d; + function b(a) { + var b, c; + r.FH(a); + if (u.bd(a) && d.MIa.test(a)) { + b = a.split("."); + if (4 === b.length) { + for (var f = 0; f < b.length; f++) { + c = u.Bd(b[f]); + if (0 > c || !v.Tu(c, 0, 255) || 1 !== b[f].length && 0 === b[f].indexOf("0")) return; + } + return a; + } + } } - function d(a, b, c, d, g) { - this.ka = a; - this.Rr = c; - this.Lf = d; - this.Fb = b; - this.H = g; - this.gra(c.V); - this.on = this.addEventListener = k.addEventListener; - this.removeEventListener = k.removeEventListener; - this.emit = this.Ha = k.Ha; - this.Rea(); - q.call(this, c); + function c(a) { + var f; + f = 0; + if (b(a) === a) return a = a.split("."), f += u.Bd(a[0]) << 24, f += u.Bd(a[1]) << 16, f += u.Bd(a[2]) << 8, f + u.Bd(a[3]); } - function h(a, b, c, d) { - for (var g, h = this.Fb, f = this.fb; h;) { - if (g = b ? f.k_(a, c) : f.Ps(a, c)) return g; - if (d) break; - if (h = h.Uf) f = h.kb[this.Lf].Ia.fb; + function h(a) { + var b; + r.FH(a); + if (u.bd(a) && a.match(d.NIa)) { + b = a.split(":"); - 1 !== b[b.length - 1].indexOf(".") && (a = k(b[b.length - 1]), b.pop(), b.push(a[0]), b.push(a[1]), a = b.join(":")); + a = a.split("::"); + if (!(2 < a.length || 1 === a.length && 8 !== b.length) && (b = 1 < a.length ? f(a) : b, a = b.length, 8 === a)) { + for (; a--;) + if (!v.Tu(parseInt(b[a], 16), 0, m.KJa)) return; + return b.join(":"); + } } } - function l(a, b, c) { - this.La = a; - this.H = b; - this.Dy = c; - this.qc = null; - this.ro = void 0; - this.Nw = this.LP = this.rv = this.qv = this.Xw = this.Ww = this.Gh = this.fs = this.Yf = this.xs = 0; - this.Jm = this.Sm = void 0; - this.Ta = []; - this.V = a.V; - this.Yb = this.V.error.bind(this.V); - this.ba = this.V.warn.bind(this.V); - this.wc = this.V.trace.bind(this.V); - this.wa = this.V.log.bind(this.V); - q.call(this, this.La); + function k(a) { + var b; + a = c(a) >>> 0; + b = []; + b.push((a >>> 16 & 65535).toString(16)); + b.push((a & 65535).toString(16)); + return b; } - g = a(10); - m = a(21); - p = a(9); - r = a(13); - k = a(31).EventEmitter; - v = a(266); - z = a(263); - n = a(463); - q = a(88); - d.prototype = Object.create(q.prototype); - d.prototype.constructor = d; - Object.defineProperties(d.prototype, { - jx: { - get: function() { - return 0 < this.$w; + + function f(a) { + var b, f, c; + b = a[0].split(":"); + a = a[1].split(":"); + 1 === b.length && "" === b[0] && (b = []); + 1 === a.length && "" === a[0] && (a = []); + f = 8 - (b.length + a.length); + if (1 > f) return []; + for (c = 0; c < f; c++) b.push("0"); + for (c = 0; c < a.length; c++) b.push(a[c]); + return b; + } + + function p(a) { + return -1 << 32 - a; + } + Object.defineProperty(d, "__esModule", { + value: !0 + }); + m = a(5); + r = a(12); + u = a(17); + l = a(6); + v = a(15); + d.MIa = /^[0-9.]*$/; + d.NIa = /^([a-fA-F0-9]*:){2}[a-fA-F0-9:.]*$/; + d.bA = "0000000000000000"; + d.Fwb = b; + d.Bwb = c; + d.Gwb = h; + d.Dwb = k; + d.Ewb = f; + d.Hwb = function(a, f, g) { + var k, m, r, u; + k = b(a); + m = h(a); + r = b(f); + u = h(f); + if (!k && !m || !r && !u || k && !r || m && !u) return !1; + if (a === k) return g = p(g), (c(a) & g) !== (c(f) & g) ? !1 : !0; + if (a === m) { + a = a.split(":"); + f = f.split(":"); + for (k = l.uq(g / d.bA.length); k--;) + if (a[k] !== f[k]) return !1; + g %= d.bA.length; + if (0 !== g) + for (a = parseInt(a[k], 16).toString(2), f = parseInt(f[k], 16).toString(2), a = d.bA.substring(0, d.bA.length - a.length) + a, f = d.bA.substring(0, d.bA.length - f.length) + f, k = 0; k < g; k++) + if (a[k] !== f[k]) return !1; + return !0; + } + return !1; + }; + d.Cwb = p; + }, function(g, d, a) { + var b, c, h, k, f, p, m, r; + Object.defineProperty(d, "__esModule", { + value: !0 + }); + b = a(3); + c = a(12); + a(18); + h = a(17); + k = a(2); + f = a(33); + p = a(42); + m = a(6); + a(15); + r = a(116); + d.ZFb = function(a, d) { + var l, x, n; + + function g(a) { + var b; + b = d; + d = h.Qb; + b(a); + } + + function u(a) { + var b, f, d, h; + try { + b = JSON.parse(a.data); + f = b.method; + d = b.success; + h = b.payload; + c.sa("ready" == f); + "ready" == f && (x.removeEventListener("message", u), n.Pf(), p.hb(function() { + l.info("Plugin sent ready message"); + d ? g({ + success: !0, + pluginObject: x, + pluginVersion: h && h.version + }) : g({ + T: k.H.Sfa, + ic: b.errorCode + }); + })); + } catch (O) { + l.error("Exception while parsing message from plugin", O); + g({ + T: k.H.Tfa + }); } - }, - z5: { - get: function() { - return !this.Qu; + } + l = b.zd("Plugin"); + c.sa(a); + if (a) { + a = a[0].type; + l.info("Injecting plugin OBJECT", { + Type: a + }); + x = h.createElement("OBJECT", f.wf.OMa, void 0, { + type: a, + "class": "netflix-plugin" + }); + x.addEventListener("message", u); + n = b.ca.get(r.Gw)(8E3, function() { + l.error("Plugin load timeout"); + g({ + T: k.H.Vfa + }); + }); + m.wd.body.appendChild(x); + n.mp(); + } else g({ + T: k.H.Ufa + }); + }; + d.aGb = function() {}; + d.$Fb = function(a) { + var f, c, d; + f = b.zd("Plugin"); + c = 1; + d = {}; + a.addEventListener("message", function(a) { + var b, c, g, h; + try { + b = JSON.parse(a.data); + c = b.success; + g = b.payload; + h = d[b.idx]; + h && (c ? h({ + S: !0, + zBb: g + }) : h({ + S: !1, + T: k.H.MMa, + Ja: b.errorMessage, + ic: b.errorCode + })); + } catch (F) { + f.error("Exception while parsing message from plugin", F); } - }, - $w: { - get: function() { - return this.fd.length + this.fb.length; + }, !1); + return function(g, h, m) { + var u, l, v, x; + + function p(a) { + a.S || f.info("Plugin called back with error", { + Method: g + }, k.kn(a)); + v.Pf(); + delete d[u]; + m(a); } - }, - LR: { - get: function() { - return this.fd.length; + try { + u = c++; + l = { + idx: u, + method: g + }; + l.argsObj = h || {}; + v = b.ca.get(r.Gw)(8E3, function() { + f.error("Plugin never called back", { + Method: g + }); + delete d[u]; + m({ + T: k.H.NMa + }); + }); + v.mp(); + x = JSON.stringify(l); + d[u] = p; + a.postMessage(x); + } catch (O) { + f.error("Exception calling plugin", O); + m({ + T: k.H.PMa + }); } - }, - bra: { - get: function() { - return this.fb; + }; + }; + }, function(g, d, a) { + var b, c; + Object.defineProperty(d, "__esModule", { + value: !0 + }); + b = a(86); + c = a(6); + b.prototype.wCa = function(a) { + a = new b(a); + for (var d, f;;) + if (d = a.tk(), f = d >>> 14) f = c.Ai(4, f), this.hba(192 | f), this.UL(a, 16384 * f); + else { + 128 > d ? this.hba(d) : this.SV(d | 32768, 2); + this.UL(a, d); + break; } + }; + b.prototype.bya = function() { + for (var a = [], c = new b(a), f;;) { + f = this.Jf(); + if (f & 128) + if (128 == (f & 192)) f &= 63, f = (f << 8) + this.Jf(), c.UL(this, f); + else if (f &= 63, 0 < f && 4 >= f) { + c.UL(this, 16384 * f); + continue; + } else throw Error("bad asn1"); + else c.UL(this, f); + break; + } + return new Uint8Array(a); + }; + }, function(g, d, a) { + Object.defineProperty(d, "__esModule", { + value: !0 + }); + g = a(3); + d = a(84); + a = a(145); + g.ca.get(d.lw).SD(a.gA.qEa, function(a) { + var b, d; + b = a.level; + if (!A._cad_global.config || b <= A._cad_global.config.ieb) { + a = a.uL(); + d = A.console; + 1 >= b ? d.error(a) : 2 >= b ? d.warn(a) : d.log(a); + } + }); + }, function(g) { + function d(a, b) { + return a.id === b.id && a.displayTime + a.duration === b.displayTime; + } + + function a(a) { + return a.duration; + } + + function b(a, b) { + return a + b; + } + g.M = { + N_a: function(a, b, d) { + for (var f = 0; f < a.length; f++) + if (a[f] !== b[f]) return d.error("indexId mismatch in sidx", { + sIndexId: a, + mIndexId: b + }), !1; + return !0; }, - nz: { - get: function() { - return this.CGa(); - } + V1: function(a, b, d) { + var f; + f = {}; + f.displayTime = a.bi; + f.duration = a.duration; + f.originX = a.FT; + f.originY = a.GT; + f.sizeX = a.ZU; + f.sizeY = a.$U; + f.imageData = b; + f.id = a.yp; + f.rootContainerExtentX = d.uU; + f.rootContainerExtentY = d.vU; + return f; }, - Nd: { - get: function() { - return this.zca(); - } + R8a: function(a, b) { + return "o_" + a + "s_" + b; }, - Gh: { - get: function() { - return this.yca(); - } - }, - Yj: { - get: function() { - return this.FGa(); - } - }, - ls: { - get: function() { - return this.BGa(); - } - }, - pv: { - get: function() { - return this.AGa(); - } - }, - gM: { - get: function() { - return this.zGa(); - } + lCa: function(a, b) { + b("P" == String.fromCharCode(a[1])); + b("N" == String.fromCharCode(a[2])); + b("G" == String.fromCharCode(a[3])); }, - PB: { - get: function() { - return this.Bga(); - } + ab: function(a) { + return "undefined" !== typeof a; }, - Yt: { - get: function() { - return this.DGa(); - } + Qmb: function(a, b) { + return a.some(function(a) { + return a.id === b; + }); }, - yt: { - get: function() { - return this.CHa(); - } + Y4a: function(c, g) { + return c.filter(d.bind(null, g)).map(a).reduce(b, 0); }, - Foa: { - get: function() { - return this.zga(); - } + zI: function(a, b) { + var c, f; + c = Object.create({}); + for (f in a) c[f] = a[f]; + a instanceof Error && (c.message = a.message, c.stack = a.stack); + c.errorString = b; + return c; }, - pO: { - get: function() { - return 0 < this.fb.length; + assert: function(a, b) { + if (!a) throw b && b.error(Error("Assertion Failed").stack), Error("Assertion Failed"); + } + }; + }, function(g, d, a) { + var la, N, O, t, U, ga; + + function b(a) { + la.call(this); + this.E8a = m; + this.$f = a.url; + this.CG = a.request; + this.GO = a.Jb || 0; + this.oO = a.Dg; + this.eb = a.ga; + this.Ki = this.Sg = null; + this.bG = {}; + this.vt = 0; + this.oG = a.bufferSize || 4194304; + this.d_ = {}; + this.yla = a.version || 1; + a.key && (this.Tia = a.crypto, this.Xw = this.Tia.importKey("raw", a.key, { + name: "AES-CTR" + }, !1, ["encrypt", "decrypt"])); + a.io ? this.Sg = a.io : (this.kd = a.offset, this.JVa = a.size); + } + + function c() {} + + function h() {} + + function k(a, b) { + var d, g, k, m, h, p, r, u; + if (a) this.emit(U.ERROR, t.zI(a, ga.QJa)); + else try { + if (2 === this.yla) { + g = new c(); + k = O.h9(b)[0]; + m = k.Or("636F6D2E-6E65-7466-6C69-782E68696E66"); + h = k.Or("636F6D2E-6E65-7466-6C69-782E6D696478"); + g.fS = m.wma; + g.yg = m.yg; + g.dj = m.dj; + g.R = m.R; + g.uU = m.uU; + g.vU = m.vU; + g.language = m.Xcb; + g.dqb = m.Fpb; + g.startOffset = h.dnb; + p = []; + r = 0; + for (a = 0; a < h.Se.length; a++) { + u = h.Se[a]; + b = {}; + b.duration = u.duration; + b.size = u.size; + p.push(b); + r += b.duration; + } + g.entries = p; + g.endTime = r; + d = g; + } else { + p = new N(b); + r = new c(); + r.identifier = p.zv(4); + t.assert("midx" === r.identifier); + r.version = p.Ud(4); + t.assert(0 === r.version); + r.fS = p.re(36); + r.yg = p.Kf(); + r.dj = p.Kf(); + r.R = p.Kf(); + r.uU = p.xb(); + r.vU = p.xb(); + r.language = p.re(16); + r.dqb = p.re(16); + r.startOffset = p.Kf(); + r.np = p.xb(); + g = []; + for (u = h = 0; u < r.np; u++) a = {}, a.duration = p.Ud(4), a.size = p.xb(), g.push(a), h += a.duration; + r.entries = g; + r.endTime = h; + d = r; + } + this.Sg = d; + f.call(this); + } catch (ma) { + this.emit(U.ERROR, t.zI(ma, ga.RJa)); + } + } + + function f() { + var a, b; + a = this.Sg; + b = a.startOffset; + (a = a.entries.reduce(function(a, b) { + return a + b.size; + }, 0)) ? (b = { + url: this.$f, + offset: b, + size: a + }, this.emit(U.SJa, this.Sg), this.CG(b, p.bind(this))) : this.emit(U.ERROR, t.zI({}, ga.aLa)); + } + + function p(a, b) { + var f, c, d, g; + f = this; + if (a) f.emit(U.ERROR, t.zI(a, ga.DOa)); + else { + c = 0; + d = []; + g = 0; + try { + f.Sg.entries.forEach(function(a) { + var k, m, p, r, u, v, x; + m = c; + p = f.Sg.fS; + r = f.eb; + if (2 === f.yla) { + k = new h(); + u = O.h9(b); + k.entries = []; + k.images = []; + for (var l = 0; l < u.length; l++) + for (p = u[l], m = p.Or("636F6D2E-6E65-7466-6C69-782E73696478"), p = p.Or("636F6D2E-6E65-7466-6C69-782E73656E63"), r = 0; r < m.Nl.length; r++) { + v = {}; + x = m.Nl[r]; + v.bi = x.bi; + v.duration = x.duration; + v.FT = x.FT; + v.GT = x.GT; + v.ZU = x.ZU; + v.$U = x.$U; + v.yp = x.yp; + v.PC = x.PC; + if (x = p && p.Nl[r]) v.Ppa = { + Xu: x.Xu.slice(0), + mode: x.Qpa + }; + k.entries.push(v); + } + } else { + k = new N(b); + u = new h(); + l = 0; + k.position = m; + u.identifier = k.zv(4); + t.assert("sidx" === u.identifier); + u.fS = k.re(36); + t.N_a(u.fS, p, r); + u.duration = k.Ud(4); + u.np = k.xb(); + u.entries = []; + for (u.images = []; l < u.np;) m = {}, m.bi = k.Ud(4), m.duration = k.Ud(4), m.FT = k.xb(), m.GT = k.xb(), m.ZU = k.xb(), m.$U = k.xb(), m.yp = k.Kf(), m.PC = k.Ud(4), l++, u.entries.push(m); + k = u; + } + d.push(k); + a.G$ = k; + k.f9 = g; + k.tK = g + a.duration; + g = k.tK; + u = k.entries; + u.length && (k.startTime = u[0].bi, k.endTime = u[u.length - 1].bi + u[u.length - 1].duration); + c += a.size; + }); + } catch (Z) { + f.emit(U.ERROR, t.zI(Z, ga.EOa)); + return; } - }, - fs: { - get: function() { - return this.fb.fs; + f.Ki = d; + f.emit(U.FOa, this.Ki); + a = r.call(f, f.GO, 2); + a.length ? y.call(f, a, f.GO, function(a) { + a && f.eb.error("initial sidx download failed"); + f.emit(U.Rga); + }) : f.emit(U.Rga); + } + } + + function m(a) { + var b, f, c, d, g; + b = r.call(this, a, 2); + f = (f = this.Sg) ? f.endTime : void 0; + if (a > f) return []; + c = this.bG.Jj; + d = this.bG.index; + f = []; + d = t.ab(d) && this.Ki[d + 1]; + if (!(d && d.entries.length || c && !(a > c.endTime))) return []; + b.length && y.call(this, b, a); + c && c.images.length && (f = l(c, a, [], this.Sg)); + d && d.images.length && (b = l(d, a, f, this.Sg), f.push.apply(f, b)); + b = v(f); + if (this.Ki && 0 != this.Ki.length) { + f = this.Ki[Math.floor(a / 6E4)]; + if (!(f.f9 <= a && a <= f.tK)) a: { + f = this.Ki.length; + if (!this.k6a) { + this.k6a = !0; + b: { + try { + g = String.fromCharCode.apply(String, this.Sg.language); + break b; + } catch (Z) {} + g = ""; + } + this.eb.error("bruteforce search for ", { + movieId: this.Sg.R, + packageId: this.Sg.dj, + lang: g + }); + } + for (g = 0; g < f; g++) + if (c = this.Ki[g], c.f9 <= a && a <= c.tK) { + f = c; + break a; + } f = void 0; + } + g = f; + } else g = void 0; + if (f = g && 0 < g.entries.length && 0 === g.images.length) a: { + f = g.entries.length; + for (d = 0; d < f; d++) + if (c = g.entries[d], c.bi <= a && c.bi + c.duration >= a) { + f = !0; + break a; + } f = !1; + } + return f ? null : b; + } + + function r(a, b) { + var f, g; + f = []; + if (a = u.call(this, a)) this.bG = a; + else return this.bG = {}, f; + for (var c = 0, d = this.Ki ? this.Ki.length : 0; c < b && a.index + c < d;) { + g = this.Ki[a.index + c]; + g && !g.images.length && f.push(g); + c++; + } + return f; + } + + function u(a) { + var b, f, c, d, g, k, m; + f = this.bG; + c = f.Jj; + d = f.index; + g = this.Ki; + this.zg(t.ab(a)); + c && (0 === d && a <= c.startTime ? (m = !0, b = f) : a >= c.startTime && a <= c.endTime ? (m = !0, b = f) : (k = g[d - 1], g = g[d + 1], k && a > k.endTime && a <= c.startTime ? (m = !0, b = f) : g && a >= c.endTime && a <= g.endTime && (m = !0, b = { + Jj: g, + index: d + 1 + }))); + if (!m) + for (f = this.Sg.entries, c = f.length, d = 0; d < c; d++) + if (k = f[d].G$, a <= k.startTime || a > k.startTime && a <= k.endTime) { + b = { + Jj: f[d].G$, + index: d + }; + break; + } return b; + } + + function l(a, b, f, c) { + var d, g, k, m, h, p; + d = a.entries; + g = d.length; + k = []; + h = 0; + if (!d.length) return k; + for (; h < g;) { + m = d[h]; + if (m.bi <= b) m.bi + m.duration >= b && k.push(t.V1(m, a.images[h].data, c)); + else { + p = k.length && k[k.length - 1] || f.length && f[f.length - 1]; + if (p && p.bi > b && p.bi !== m.bi) break; + p.yp !== m.yp && k.push(t.V1(m, a.images[h].data, c)); } - }, - ema: { - get: function() { - return this.fb.ema; + h++; + } + return k; + } + + function v(a) { + return a.map(function(b, f) { + b.duration += t.Y4a(a.slice(f + 1), b); + return b; + }).reduce(function(a, b) { + t.Qmb(a, b.id) || a.push(b); + return a; + }, []); + } + + function y(a, b, f) { + var c, d, g, k, m, h; + c = this; + d = a[0]; + g = a[a.length - 1]; + 0 < d.entries.length && (k = d.entries[0].yp, m = d.entries[d.entries.length - 1]); + 0 < g.entries.length && (t.ab(k) || (k = g.entries[0].yp), m = g.entries[g.entries.length - 1]); + if (k) { + d = m.yp + m.PC - k; + h = t.R8a(k, d); + c.d_[h] || (c.d_[h] = !0, w.call(c, a, b), c.CG({ + url: c.$f, + offset: k, + size: d + }, function(b, d) { + var g, m, p, r; + setTimeout(function() { + delete c.d_[h]; + }, 1E3); + if (b) f && f(b); + else { + g = new N(d); + m = 0; + r = []; + a.forEach(function(a) { + a.entries.forEach(function(b, f) { + var d, h; + g.position = b.yp - k; + d = { + data: g.re(b.PC) + }; + h = b.Ppa; + h && (d.Xu = h.Xu, d.Qpa = h.mode, p = !0, r.push(d)); + a.images[f] = d; + !b.Ppa && t.lCa(a.images[f].data, c.zg.bind(c)); + m += a.images[f].data.length; + }); + }); + c.vt += m; + p ? c.Xw.then(function(a) { + return F.call(c, r, a); + }).then(function() { + f && f(null); + })["catch"](function(a) { + c.eb.error("decrypterror", a); + f && f({ + S: !1 + }); + }) : f && f(null); + } + })); + } else f && f(null); + } + + function w(a, b) { + var g, k, m, h, p, r; + + function f() { + return { + pts: b, + hasEnoughSpace: g.vt + k <= g.oG, + required: k, + currentSize: g.vt, + max: g.oG, + currentIndex: u.call(g, b).index, + sidxWithImages: z.call(g), + newSidxes: a.map(function(a) { + return g.Ki.indexOf(a); + }) + }; + } + + function c(a, b) { + g.oO && !a && g.eb.info("not done in iteration", b); + } + + function d(a) { + var b, f, c; + b = g.Ki[a]; + f = b.images && b.images.length; + if (0 < f) { + c = n([b]); + b.images = []; + g.vt -= c; + g.oO && g.eb.info("cleaning up space from sidx", { + index: a, + start: b.startTime, + size: c, + images: f + }); + if (g.vt + k <= g.oG) return !0; } - }, - d5a: { - get: function() { - return this.yb.length - this.JD; + } + g = this; + k = n(a); + g.eb.info("make space start:", f()); + if (!(g.vt + k <= g.oG)) { + m = u.call(g, b).index; + h = !1; + p = 0; + r = g.Ki.length - 1; + if (0 > m) { + g.eb.error("inconsistent sidx index"); + return; } + for (; !h && p < m - 2;) h = d(p), p++; + for (c(h, 1); !h && r > m + 2;) h = d(r), r--; + for (c(h, 2); !h && p < m;) h = d(p), p++; + for (c(h, 3); !h && r > m;) h = d(r), r--; + c(h, 4); + h || g.eb.error("could not make enough space", { + maxBuffer: this.oG + }); } - }); - d.prototype.gra = function(a) { - this.V = a; - this.Yb = this.V.error.bind(this.V); - this.ba = this.V.warn.bind(this.V); - this.wc = this.V.trace.bind(this.V); - this.wa = this.V.log.bind(this.V); - }; - d.prototype.CHa = function() { + g.eb.info("make space end", f()); + } + + function n(a) { + return a.reduce(function(a, b) { + return a + b.entries.reduce(function(a, b) { + return b.PC + a; + }, 0); + }, 0); + } + + function z() { var a; - a = this.fb.LP; - this.H.lm || (a += this.fd.length); - return a; - }; - d.prototype.FGa = function() { - return g.da(this.fd.qc) && g.da(this.fd.ro) ? this.fd.ro - this.fd.qc : 0; - }; - d.prototype.BGa = function() { - var a, b; - a = this.yca(!0); - b = this.zca(0, !0); - return { - ga: a, - hh: b - }; + a = []; + this.Sg && this.Sg.entries && this.Sg.entries.reduce(function(b, f, c) { + var d; + f = f.G$; + d = 0; + f && f.images.length && (a.push(c), d = f.images.reduce(function(a, b) { + return a + b.data.length; + }, 0)); + return b + d; + }, 0); + return a.join(", "); + } + + function E(a, b) { + return a && a.f9 <= b && a.tK >= b; + } + + function q(a, b) { + var f, c, d, g, k, m; + f = this; + c = f.Sg; + d = f.Ki; + g = d && d.length; + if (a > b || 0 > a) throw Error("invalid range startPts: " + a + ", endPts: " + b); + if (c && d) { + if (0 === g) return []; + c = d[0].duration; + if (t.ab(c) && 0 < c) c = Math.floor(a / c), k = c < g && E(d[c], a) ? d[c] : void 0; + else + for (f.oO && f.eb.warn("duration not defined, so use brute force to get starting sidx"), c = 0; c < g; c++) { + m = d[c]; + if (E(m, a)) { + k = m; + break; + } + } + if (t.ab(k)) { + k = []; + for (var h = function(f) { + var c; + c = f.bi <= a && a <= f.bi + f.duration; + return a <= f.bi && f.bi <= b || c; + }; c < g;) { + m = d[c]; + k = k.concat(m.entries.filter(h)); + if (b < m.tK) break; + c++; + } + k = k.map(function(a) { + return t.V1(a, null, f.Sg); + }); + return v(k); + } + } + } + + function F(a, b) { + var c, d; + + function f(a, b) { + var f, c; + f = this; + c = new Uint8Array(16); + c.set(a.Xu); + return f.Tia.decrypt({ + name: "AES-CTR", + counter: c, + length: 128 + }, b, a.data).then(function(b) { + a.data.set(new Uint8Array(b)); + t.lCa(a.data, f.zg.bind(f)); + }); + } + c = this; + try { + d = []; + a.forEach(function(a) { + a.Xu && (a = f.call(c, a, b), d.push(a)); + }); + return (void 0).all(d); + } catch (ra) { + return c.eb.error("decrypterror", ra), (void 0).reject(ra); + } + } + la = a(143).EventEmitter; + N = a(86); + O = a(255); + t = a(511); + U = b.events = { + SJa: "midxready", + FOa: "sidxready", + Rga: "ready", + ERROR: "error" }; - d.prototype.CGa = function() { - for (var a = 0, c = b(this.Fb, this.Lf), d = c.length - 1; 0 <= d && 0 == a; --d) a = c[d].ko.fb.QWa(); - return a; + ga = b.NDb = { + QJa: "midxdownloaderror", + RJa: "midxparseerror", + aLa: "nosidxfoundinmidx", + DOa: "sidxdownloaderror", + EOa: "sidxparseerror" }; - d.prototype.zca = function(a, c) { - return c ? this.fb.Bm(a) : b(this.Fb, this.Lf).reduce(function(b, c) { - return b + c.ko.fb.Bm(a); - }, 0); + b.prototype = Object.create(la.prototype); + b.prototype.constructor = b; + b.prototype.start = function() { + var a; + if (this.Sg) this.eb.warn("midx was prefectched and provided"), f.call(this); + else { + a = { + url: this.$f, + offset: this.kd, + size: this.JVa, + responseType: "binary" + }; + this.eb.warn("downloading midx..."); + this.CG(a, k.bind(this)); + } }; - d.prototype.yca = function(a) { - return a ? this.fb.Gh : b(this.Fb, this.Lf).reduce(function(a, b) { - return a + b.ko.fb.Gh; - }, 0); + b.prototype.close = function() {}; + b.prototype.zg = function(a) { + this.oO && t.assert(a, this.eb); }; - d.prototype.AGa = function() { - return b(this.Fb, this.Lf).reduce(function(a, b) { - return a + b.ko.fb.vja(void 0); - }, 0); + b.prototype.Ou = function(a, b) { + return q.call(this, a, b); }; - d.prototype.zGa = function() { - return b(this.Fb, this.Lf).reduce(function(a, b) { - return a + b.ko.fb.qv; - }, 0); + b.prototype.O4 = function(a, b) { + return (a = this.Ou(a, b)) ? a.length : a; }; - d.prototype.DGa = function() { - return b(this.Fb, this.Lf).reduce(function(a, b) { - return a + b.ko.fb.xs; - }, 0); + g.M = b; + }, function(g, d, a) { + var h; + + function b(a, b) { + return b.reduce(c.bind(this, a), []); + } + + function c(a, b, c) { + var f, d; + f = c.displayTime - a; + a = c.displayTime + c.duration - a; + d = 0 < b.length ? b[0].timeout : Infinity; + return 0 < f && f < d ? [{ + timeout: f, + type: "showsubtitle", + Od: c + }] : f === d ? b.concat([{ + timeout: f, + type: "showsubtitle", + Od: c + }]) : 0 < a && a < d ? [{ + timeout: a, + type: "removesubtitle", + Od: c + }] : a === d ? b.concat([{ + timeout: a, + type: "removesubtitle", + Od: c + }]) : b; + } + h = a(143).EventEmitter; + d = a(254)({}); + a = function f(a, b, c) { + if (!(this instanceof f)) return new f(a, b, c); + h.call(this); + this.Lq = a; + this.pSa = b; + this.Yq = {}; + this.iB = {}; + this.eb = c || console; + this.IN = !1; }; - d.prototype.zga = function() { + a.prototype = Object.create(h.prototype); + a.prototype.stop = function() { var a; - a = this.fb.Nw; - this.H.lm || this.fd.forEach(function(b) { - a += b.gd; + a = this; + clearTimeout(a.wj); + Object.keys(a.Yq).forEach(function(b) { + a.emit("removesubtitle", a.Yq[b]); }); - return a; + a.Yq = {}; }; - d.prototype.Bga = function(a) { - return this.fb.Sm && (g.S(a) && (a = this.ka.Hg()), a -= this.fb.Sm.hb, 0 < a) ? this.fb.Xw - a : this.fb.Xw; + a.prototype.pause = function() { + clearTimeout(this.wj); }; - d.prototype.DHa = function(a) { - var b, c; - b = this.ka && this.ka.An; - b && (c = b.Bs(a), c = b.doa(c)); - return c; + a.prototype.Co = function(a, c) { + var f, d; + f = this; + d = f.Lq(); + clearTimeout(this.wj); + a = f.pSa(d); + null !== a && f.IN && (f.IN = !1, f.emit("bufferingComplete")); + c = "number" === typeof c ? c : 0; + Object.keys(f.Yq).forEach(function(a) { + a = f.Yq[a]; + a.displayTime <= d && d < a.displayTime + a.duration || (delete f.Yq[a.id], f.emit("removesubtitle", a)); + }); + Object.keys(f.iB).forEach(function(a) { + a = f.iB[a]; + d >= a.displayTime + a.duration && delete f.iB[a.id]; + }); + null !== a && 0 < a.length ? (c = a.length, f.eb.info("found " + c + " entries for pts " + d), a.forEach(function(a) { + a.displayTime <= d && d < a.displayTime + a.duration && !f.Yq[a.id] && (f.emit("showsubtitle", a), f.Yq[a.id] = a, delete f.iB[a.id]); + }), c = a[a.length - 1], f.Yq[c.id] || f.iB[c.id] || (f.emit("stagesubtitle", c), f.iB[c.id] = c), c = b(d, a), 0 < c.length ? f.OO(c[0].timeout) : f.OO(2E4)) : null === a ? (a = 250 * Math.pow(2, c), 2E3 < a && (a = 2E3), f.eb.warn("checking buffer again in " + a + "ms"), f.IN || (f.IN = !0, f.emit("underflow")), f.OO(a, c + 1)) : f.OO(2E4); }; - d.prototype.KM = function(a, b, c, d, h) { - b = this.H; - c.uG = this.H.uG; - g.S(h) || (c.location = h.location, c.Ec = h.Wb, c.e5 = h.QQ); - b.Qn && (c.YQ = this.DHa({ - Nd: this.Rr.Nd - })); - c = c.pi ? new v(h, b, d, c, this, !1, this.Rr) : b.kUa ? new n(h, b, d, c, this, this.Rr) : z.create(h, d, c, this.fd, !1, this.Rr); - c.Xc(a, this.Rr); - this.kv(c); - c.Wab = p.time.la(); - a.QIa(c); - return c; + a.prototype.OO = function(a, b) { + var f; + f = this; + f.eb.trace("Scheduling pts check."); + f.wj = setTimeout(function() { + f.Co(f.Lq(), b); + }, a); }; - d.prototype.mMa = function(a, b) { - var c; - c = this.Rr; - b.Xc(a, this.Rr); - b.oX = !0; - b.complete ? (this.nV(b), this.yb.push(b), this.fb.kv(b), a.Yna(c, b.Da, b.ib, b.hb), this.fb.hqa(b, b.Jc), this.RB()) : (this.kv(b), b.active && this.Rz(b), b.h4 && this.Qz(b)); - }; - d.prototype.reset = function(a) { - this.fd.forEach(this.Ar.bind(this)); - this.fb.forEach(this.Ar.bind(this)); - this.fb.Sm = void 0; - a || (this.ul = this.ul.forEach(this.Ar.bind(this))); - this.Rea(a); - }; - d.prototype.qqa = function() { - this.Qu = !1; - }; - d.prototype.Rea = function(a) { - this.fd = new l(this, this.H, "unsent"); - this.fb = new l(this, this.H, "sent"); - this.yb = []; - this.JD = 0; - this.qc = null; - a || (this.ul = []); - this.Qu = !1; - }; - d.prototype.rLa = function(a) { + g.M = d(["function", "function", "object"], a); + }, function(g, d, a) { + var f, p, m; + + function b(a) { var b; - b = function(a) { - a.abort(); - }.bind(this); - this.fd.forEach(b); - this.fb.forEach(b); - this.reset(a); + b = 1; + "dfxp-ls-sdh" === this.bx && (b = a.SBb.length); + this.eb.info("show subtitle called at " + this.Lq() + " for displayTime " + a.displayTime); + this.emit("showsubtitle", a); + this.Dt[this.Dt.length - 1].UU += b; + } + + function c(a) { + this.eb.info("remove subtitle called at " + this.Lq() + " for remove time " + (a.displayTime + a.duration)); + this.emit("removesubtitle", a); + } + + function h() { + this.eb.info("underflow fired by the subtitle timer"); + this.emit("underflow"); + } + + function k() { + this.eb.info("bufferingComplete fired by the subtitle timer"); + this.emit("bufferingComplete"); + } + f = a(143).EventEmitter; + p = a(513); + d = a(254)(); + m = a(512); + a = function u(a, d) { + var g, l; + g = this; + l = a.Dg || !1; + if (!(g instanceof u)) return new u(a, d); + f.call(g); + g.eb = a.ga || console; + g.CG = a.request; + g.Lq = a.Qra; + g.wj = null; + g.Tq = !0; + g.Dt = []; + g.bx = d.profile; + g.$f = d.url; + g.GO = d.Jb; + g.HUa = d.Jjb; + g.KRa = d.wu; + a = { + url: g.$f, + request: g.CG, + Jb: g.GO, + xml: d.xml, + Jjb: g.HUa, + wu: g.KRa, + ga: g.eb, + Dg: l, + bufferSize: d.bufferSize, + crypto: d.crypto, + key: d.key, + io: d.io + }; + if ("nflx-cmisc" === g.bx) a.offset = d.GJ, a.size = d.bT, g.Ec = new m(a); + else if ("nflx-cmisc-enc" === g.bx) a.version = 2, a.offset = d.GJ, a.size = d.bT, g.Ec = new m(a); + else throw Error("SubtitleManager: " + g.bx + " is an unsupported profile"); + g.Ec.on("ready", function() { + var a, f; + a = !!d.wYa; + g.eb.info("ready event fired by subtitle stream"); + g.emit("ready"); + f = g.Ec.E8a.bind(g.Ec); + g.wj = new p(g.Lq, f, g.eb); + g.wj.on("showsubtitle", b.bind(g)); + g.wj.on("removesubtitle", c.bind(g)); + g.wj.on("underflow", h.bind(g)); + g.wj.on("bufferingComplete", k.bind(g)); + a && (g.eb.info("autostarting subtitles"), setTimeout(function() { + g.Co(g.Lq()); + }, 10)); + }); + g.Ec.on("error", g.emit.bind(g, "error")); + }; + a.prototype = Object.create(f.prototype); + a.prototype.start = function() { + this.Ec.start(); }; - d.prototype.nV = function(a) { - this.Qu ? a.EN = !1 : this.Qu = a.EN = !0; + a.prototype.Co = function(a) { + this.Tq && (this.Tq = !1, this.eb.info("creating a new subtitle interval at " + a), this.Dt.push({ + U: a, + UU: 0 + })); + null !== this.wj && this.wj.Co(a); }; - d.prototype.kv = function(a) { - a.zc ? this.ul.push(a) : (a.complete || a.active ? this.fb.kv(a) : this.fd.kv(a), this.nV(a), a.Hm && (this.Qu = !1), this.yb.push(a)); + a.prototype.stop = function() { + var a; + this.Lq(); + this.eb.info("stop called"); + this.Tq || this.pause(); + this.Ec.removeAllListeners(["ready"]); + null !== this.wj && this.wj.stop(); + a = this.Dt.reduce(function(a, b) { + a.nAa += b.UU; + a.Jm += b.cqa; + a.Xbb.push(b); + return a; + }, { + nAa: 0, + Jm: 0, + Xbb: [] + }); + "object" === typeof this.Ec && this.Ec.close(); + this.eb.info("metrics: " + JSON.stringify(a)); + return a; }; - d.prototype.RB = function() { + a.prototype.pause = function() { var a, b; - b = this.Rr.O; - a = this.Fb; - if (a.active && (a = a.Uf, !a || 0 == a.hYa(b))) - for (; this.JD < this.yb.length;) { - if (a = this.yb[this.JD]) { - if (!a.fw()) break; - this.ka.Se[b].YMa(a); - g.da(this.qc) || (this.qc = a.qc); - }++this.JD; - } - }; - d.prototype.U6a = function(a) { - var d; - for (var b, c = 0; c < this.yb.length; ++c) { - d = this.yb[c]; - d && a < d.df && (g.S(b) && (b = c), d.Nf = !1); + a = this.Lq(); + if (this.Tq) this.eb.warn("pause called on subtitle manager, but it was already paused!"); + else { + this.eb.info("pause called at " + a); + this.Tq = !0; + this.eb.info("ending subtitle interval at " + a); + b = this.Dt[this.Dt.length - 1]; + b.ea = a; + b.ea < b.U && (this.eb.warn("correcting for interval where endPts is smaller than startPts"), b.U = 0 < b.ea ? b.ea - 1 : 0); + b.cqa = this.Ec.O4(b.U, b.ea); + this.eb.info("showed " + b.UU + " during this interval"); + this.eb.info("expected " + b.cqa + " for this interval"); } - g.S(b) || (this.JD = b, this.RB()); + null !== this.wj && this.wj.pause(); }; - d.prototype.L9a = function(a, b, c) { - var d; - d = this.H; - 0 !== this.fd.length && this.fd.FVa !== b && (d.Zd && this.ug("setSelectedBitrate new bitrate: " + b), this.rfa(a, c)); + a.prototype.Ou = function(a, b) { + return this.Ec.Ou(a, b); }; - d.prototype.zr = function(a, b) { - if (!a.abort()) return !1; - "function" == typeof b && b(a); - return !0; + a.prototype.O4 = function(a, b) { + return this.Ec.O4(a, b); }; - d.prototype.tLa = function(a) { - var b; - b = function(b) { - var c, d; - d = 0; - b.forEach(function(b, h) { - b.qc > a && (this.zr(b), g.S(c) && (c = h), ++d); - }.bind(this)); - 0 < d && b.splice(c, d); - }.bind(this); - b(this.fd); - b(this.fb); - this.RB(); - }; - d.prototype.rfa = function(a, b) { - var c, d, h; - if (0 !== this.fd.length) { - d = this.fb.Ta; - h = d && d.length ? d[d.length - 1].hb : 0; - this.fd.m$a(function(b, d) { - if (!g.S(a) && b.Da !== a || b.Hm || h > b.hb) return !0; - b.EN && (this.Qu = !1); - if (!this.zr(b)) return this.ba("request abort failed:", b.toString()), !0; - c = d; - }.bind(this)); - g.S(c) || (d = this.fd.splice(c, this.fd.length - c), "function" == typeof b && b(d)); + a = d([{ + request: "function", + Qra: "function", + ga: "object" + }, "object"], a); + g.M = a; + }, function(g, d, a) { + var c, h, k, f, p; + + function b(a, b, c) { + a = f.Yd.call(this, a, void 0 === c ? "AppInfoConfigImpl" : c) || this; + a.config = b; + return a; + } + Object.defineProperty(d, "__esModule", { + value: !0 + }); + g = a(0); + c = a(1); + h = a(52); + k = a(35); + f = a(38); + a = a(26); + ia(b, f.Yd); + na.Object.defineProperties(b.prototype, { + endpoint: { + configurable: !0, + enumerable: !0, + get: function() { + return this.host + "/api"; + } + }, + Tpa: { + configurable: !0, + enumerable: !0, + get: function() { + return this.host + "/nq/msl_v1"; + } + }, + host: { + configurable: !0, + enumerable: !0, + get: function() { + var a; + switch (this.config.cI) { + case h.Ts.nPa: + a = "www.stage"; + break; + case h.Ts.Iha: + a = "www-qa.test"; + break; + case h.Ts.lea: + a = "www-int.test"; + break; + default: + a = "www"; + } + return "https://" + a + ".netflix.com"; + } } + }); + p = b; + g.__decorate([k.config(k.string, "apiEndpoint")], p.prototype, "endpoint", null); + g.__decorate([k.config(k.string, "nqEndpoint")], p.prototype, "Tpa", null); + p = g.__decorate([c.N(), g.__param(0, c.l(a.Fi)), g.__param(1, c.l(h.$l)), g.__param(2, c.l(a.Tz)), g.__param(2, c.optional())], p); + d.aDa = p; + }, function(g, d, a) { + var b, c; + Object.defineProperty(d, "__esModule", { + value: !0 + }); + b = a(515); + c = a(88); + g = a(1); + d.j0 = new g.Vb(function(a) { + a(c.Ms).to(b.aDa).$(); + }); + }, function(g, d, a) { + var c; + + function b() {} + Object.defineProperty(d, "__esModule", { + value: !0 + }); + g = a(0); + a = a(1); + b.prototype.Xqb = function(a) { + return { + XI: a.initialSegment, + Se: this.arb(a.segments) + }; }; - d.prototype.xH = function(a) { - this.fb.xH(a); + b.prototype.arb = function(a) { + var b; + b = this; + return Object.keys(a).reduce(function(f, c) { + f[c] = b.Yqb(a[c]); + return f; + }, {}); }; - d.prototype.wH = function(a) { + b.prototype.Yqb = function(a) { var b; - a.zc ? (b = this.ul.indexOf(a), -1 !== b ? this.ul.splice(b, 1) : this.ba("requestAborted: unknown header mediaRequest: " + (a && a.toJSON()))) : this.fd.Bra(a) || this.fb.Bra(a) || this.ba("requestAborted: unknown mediaRequest: " + (a && a.toJSON())); - }; - d.prototype.x6a = function(a, c) { - var d, g, h, f; - d = this.H; - g = a; - h = this.ka.La.wra; - if (a > h) { - g = a - h; - f = function(a, b) { - var h, f, m; - h = !1; - f = 0; - m = b.some(function(b) { - if (g < b.Lg) return h && a.nV(b), !0; - ++f; - b.Nf || (a.ba("pruning unappended request:", b && b.toJSON()), d.Zd && a.ug("prune pts:", g, "unappended request:", b && b.toJSON()), b.EN && (a.Qu = !1, h = !0), a.zr(b, c) || a.Yb("MediaRequest.abort error:", b.Mj)); - }); - 0 < f && b.splice(0, f); - return m; - }; - b(this.Fb, this.Lf).some(function(a) { - var b; - a = a.ko; - b = f(a, a.fd); - return f(a, a.fb) || b; - }.bind(this)); - return g; - } + b = {}; + b = a.next && this.$qb(a.next) || a.defaultNext && (b[a.defaultNext] = {}, b) || void 0; + return { + Ie: a.viewableId, + wo: a.startTimeMs, + lC: a.endTimeMs, + vQ: a.defaultNext, + next: b + }; }; - d.prototype.YXa = function() { + b.prototype.$qb = function(a) { var b; - - function a(a) { - if (null === b || b === a.hb) b = a.hb + a.gd; - return a.hb > b ? !0 : !1; - } - b = null; - this.fb.some(a); - 0 < this.fd.length && this.fd.some(a); - return b; + b = this; + return Object.keys(a).reduce(function(f, c) { + f[c] = b.Zqb(a[c]); + return f; + }, {}); + }; + b.prototype.Zqb = function(a) { + return { + weight: a.weight, + a5a: a.earliestSkipRequestOffset + }; }; - d.prototype.jka = function() { - var c, d, h, f, m, l; + c = b; + c = g.__decorate([a.N()], c); + d.QNa = c; + }, function(g, d, a) { + var c, h, k, f; - function a(a) { - g.da(a.qc) && (null === h || a.qc < h) && (h = a.qc); - g.da(a.ro) && (null === d || a.ro > d) && (d = a.ro); - f += a.Yf - a.Ww; - m = c.$Q ? m + a.Ww : m + a.xs; - a.WUa(l); + function b(a) { + return h.Yd.call(this, a, "PlaylistConfigImpl") || this; + } + Object.defineProperty(d, "__esModule", { + value: !0 + }); + g = a(0); + c = a(1); + h = a(38); + k = a(26); + a = a(35); + ia(b, h.Yd); + na.Object.defineProperties(b.prototype, { + Nxa: { + configurable: !0, + enumerable: !0, + get: function() { + return 2; + } } - c = this.H; - d = null; - h = null; - f = 0; - m = 0; - l = []; - b(this.Fb, this.Lf).forEach(function(b) { - a(b.ko.fb); - !c.lm && 0 < b.ko.fd.length && a(b.ko.fd); - }.bind(this)); + }); + f = b; + g.__decorate([a.config(a.Qv, "prepareSegmentsUpfront")], f.prototype, "Nxa", null); + f = g.__decorate([c.N(), g.__param(0, c.l(k.Fi))], f); + d.NNa = f; + }, function(g, d, a) { + var c; + + function b() {} + Object.defineProperty(d, "__esModule", { + value: !0 + }); + g = a(0); + a = a(1); + b.prototype.u2a = function(a) { + var c; + for (var b = [], f = 0; f < arguments.length; ++f) b[f - 0] = arguments[f]; + c = this; + if (0 === b.length) throw Error("Empty playlist"); return { - ro: d, - qc: h, - Mw: f, - Yf: m, - T: l + XI: this.d$(0), + Se: b.reduce(function(a, f, d) { + var g; + g = c.d$(d); + a[g] = { + Ie: f, + wo: 0 + }; + d + 1 < b.length && (a[g].vQ = c.d$(d + 1)); + return a; + }, {}) }; }; - d.prototype.Ps = function(a, b, c) { - return h.call(this, a, !1, b, c); - }; - d.prototype.k_ = function(a, b, c) { - return h.call(this, a, !0, b, c); + b.prototype.d$ = function(a) { + return "segment" + a; }; - d.prototype.hcb = function(a, b) { - var c, d; - c = []; - d = function(d) { - var g, h; - if (!d.complete) { - g = d.ib; - h = a[g]; - h ? h.url ? d.url != h.url && (b(d, h.location, h.Wb), d.I5(h.url) || (this.ba("swapUrl failed: ", d.c_), this.Aj("swapUrl failure"))) : (this.ba("missing url for streamId:", g, "mediaRequest:", d.toString(), "stream:", h), c.push(d)) : (this.ba("missing stream for streamId:", g, "mediaRequest:", d, "streamMap:", a), c.push(d)); - } - }.bind(this); - this.ul.forEach(d); - this.fd.forEach(d); - this.fb.forEach(d); - return c; + c = b; + c = g.__decorate([a.N()], c); + d.RNa = c; + }, function(g, d, a) { + var c, h; + + function b() {} + Object.defineProperty(d, "__esModule", { + value: !0 + }); + g = a(0); + c = a(1); + b.prototype.create = function(b, f, c, d, g, h) { + return new(a(258)).tQa(b, f, c, d, g, h); }; - d.prototype.Wm = function(a) { - this.fb.Sm = void 0; - this.xga(a); - this.H.qH && this.U6a(a); + h = b; + h = g.__decorate([c.N()], h); + d.SNa = h; + }, function(g, d, a) { + var c; + + function b(a, b, f, c, d, g, u, l, v, y) { + b = void 0 === b ? {} : b; + this.H8 = y; + this.My = {}; + this.DP = {}; + this.jc = l.create(); + this.log = d.lb("PlaylistManager"); + this.dAa(a); + this.mk = a.XI; + this.wD = this.My[this.mk]; + this.Up = u.p2a(v); + this.DP[this.mk] = this.Uqa(0); + a = a.Se[this.mk]; + c = c.Pe(); + this.pCa = g.create(a.Ie, Object.assign({ + startPts: b.playbackState && b.playbackState.currentTime || a.wo, + endPts: a.lC, + uiPlayStartTime: Date.now() + }, b, { + isPlaylist: !0 + }), b.uc || "", f, c, this); + this.mob(); + } + Object.defineProperty(d, "__esModule", { + value: !0 + }); + c = a(16); + b.prototype.G8a = function() { + return this.mk; + }; + b.prototype.Mra = function() { + return this.ID; + }; + b.prototype.x$ = function(a) { + var c; + for (var b = [], f = 0; f < arguments.length; ++f) b[f - 0] = arguments[f]; + c = this; + b.filter(function(a) { + return c.LK(a.Ym); + }).filter(function(a) { + a = a.vT; + return !a || c.LK(a); + }).forEach(function(a) { + c.My[a.Ym] = c.owa(a.vT); + }); }; - d.prototype.xga = function(a) { - var n; - for (var b, c = this.H, d = 0, h = 0, f = 0, m = 0, l = 0, p = 0, r = 0, k = 0, u = !1, v, x, z, X = 0; X < this.fb.length; ++X) - if (z = this.fb.Ta[X], z.EM = !1, z.LE = !1, z.FM = !1, !g.S(x) && z.hb > x && (this.ba("Gap found in _sentData: request.ptsStart:", z.hb, "continuousEndPts:", x), c.TY && (u = !0), x = z.hb), z.complete ? (b = a < z.hb ? z.gd : z.gd - (a - z.hb), z.Nf && 0 < b && (z.LE = !0, f += z.gd, m += z.Jc), u || (v = z, !g.S(a) && z.hb + z.gd > a && (z.EM = !0, d += z.gd, h += z.Jc)), 0 < b && (z.FM = !0, l += z.gd, p += z.Jc)) : u = !0, z.ZG && (++r, k += z.gd), void 0 === x || z.hb === x) x = z.hb + z.gd; - c.lm || (r += this.fd.length, this.fd.forEach(function(a) { - k += a.gd; - })); - n = !1; - b = function(a, b, c) { - b != c && (this.ba("MISMATCH: " + a + " " + b + " != " + c), n = !0); - }.bind(this); - b("bufferLevelMs", d, this.fb.Bm(a)); - b("bufferLevelBytes", h, this.fb.Gh); - b("appendedBufferMs", f, this.fb.vja(a)); - b("appendedBufferBytes", m, this.fb.qv); - b("totalBufferMs", l, this.Bga(a)); - b("totalBufferBytes", p, this.fb.xs); - b("latestCompletedRequest", v, this.fb.Jm); - b("partialBuffers", r, this.yt); - b("partialBuffersMs", k, this.zga()); - n && this.fb.D9a(h, m, f, l, p); - }; - d.prototype.vt = function(a) { - this.fb.vt(a); - }; - d.prototype.Ar = function(a) { - var b; - if (!a.zc) { - b = this.yb.indexOf(a); - 1 !== b ? this.yb[b] = void 0 : this.ba("cleanupRequest, request not found in all array"); - } - a.zc && !a.complete && this.WIa(a); - a.sf && a.sf.clear(); - a.ze(); + b.prototype.y_a = function(a) { + for (var b = [], f = 0; f < arguments.length; ++f) b[f - 0] = arguments[f]; + this.xma(b); }; - d.prototype.Iw = function(a) { - !a.zc && this.fd.xZa(a) && (this.fb.pbb(this.fd, a), this.fb.qQ(a)); - this.Rz(a); + b.prototype.Irb = function(a) { + if (!this.LK(this.mk, a.Se)) throw Error("Provided playlistMap does not contain the current segmentId " + this.mk); + this.dAa(a); }; - d.prototype.xt = function(a) { - a.X0 && a.fw() && this.RB(); - this.Qz(a); + b.prototype.fq = function(a, b) { + var f, c; + f = this; + c = this.ID.Se[a]; + c && c.next && Object.keys(b).filter(function(a) { + return f.LK(a, c.next); + }).forEach(function(a) { + return c.next[a].weight = b[a]; + }); }; - d.prototype.wi = function(a) { - a.X0 && !a.Nf && this.RB(); - this.wF(a); + b.prototype.mab = function(a, b) { + var f, d; + if (a !== this.mk) throw Error("Invalid currentSegmentId"); + if (b !== this.My[a]) throw Error("Invalid nextSegmentId"); + f = this.DP[b]; + if (!f) throw Error("Manifest for " + b + " is not ready yet"); + d = this.vp().j.gb; + if (!d) throw this.log.debug("No streaming session. Aborting transition"), Error("No streaming session"); + this.log.debug("going to next segment: " + a + " -> " + b + " (" + f.id + " in ASE)"); + d.c4(f.id) ? (this.log.debug("Segment is already pre-buffered - triggering a transition"), this.nab(b)) : (a = this.Mra().Se[b].wo, this.log.debug("Segment is not pre-buffered - performing a regular seek"), this.vp().seek(a, c.Ng.vA, f.na)); }; - d.prototype.WIa = function(a) { - a = { - type: "headerRequestCancelled", - request: a - }; - this.Ha(a.type, a); + b.prototype.addListener = function(a, b, f) { + this.jc.addListener(a, b, f); }; - d.prototype.Aj = function(a) { - a = { - type: "streamingFailure", - msg: a - }; - this.Ha(a.type, a); + b.prototype.removeListener = function(a, b) { + this.jc.removeListener(a, b); }; - d.prototype.ug = function(a) { - a = { - type: "managerdebugevent", - message: "@" + p.time.la() + ", " + a - }; - this.Ha(a.type, a); + b.prototype.F4 = function() { + return this.Up.F4(); }; - d.prototype.sX = function(a) { - var b, c, d; - b = this.Lf === r.G.VIDEO ? "v_" : "a_"; - c = this.fb; - d = c.filter(function(b) { - return b.hb > a; - })[0]; - c = c.filter(function(b) { - return b.hb <= a && b.Lg >= a; - })[0]; - return b = d && c ? c.Lg !== d.hb ? b + "rg" : c.complete && d.complete ? b + "uk" : b + "fd" : b + "rm"; + b.prototype.vp = function() { + return this.Up.vp(); }; - l.prototype = Object.create(q.prototype); - Object.defineProperties(l.prototype, { - length: { - get: function() { - return this.Ta.length; - } - }, - FVa: { - get: function() { - return 0 === this.length ? 0 : this.Ta[0].J; - } - }, - ema: { - get: function() { - return this.Ta.length ? this.Ta[this.Ta.length - 1] : void 0; - } - } - }); - l.prototype.forEach = function() { - return this.Ta.forEach.apply(this.Ta, arguments); + b.prototype.Z_ = function(a) { + return this.Up.Z_(a); }; - l.prototype.map = function() { - return this.Ta.map.apply(this.Ta, arguments); + b.prototype.transition = function(a) { + return this.Up.transition(a); }; - l.prototype.some = function() { - return this.Ta.some.apply(this.Ta, arguments); + b.prototype.close = function(a) { + return this.Up.close(a); }; - l.prototype.filter = function() { - return this.Ta.filter.apply(this.Ta, arguments); - }; - l.prototype.toJSON = function() { - return JSON.stringify(this.Ta); - }; - l.prototype.xZa = function(a) { - return -1 !== this.Ta.indexOf(a); - }; - l.prototype.D9a = function(a, b, c, d, g) { - this.Gh = a; - this.qv = b; - this.rv = c; - this.Xw = d; - this.xs = g; - }; - l.prototype.WUa = function(a) { - var b; - b = this.H; - this.Ta.some(function(c) { - if (!b.$Q && !c.complete) return !0; - a.push(c); - return !1; - }.bind(this)); - }; - l.prototype.Ps = function(a, b) { - var c, d; - c = this.La.ka; - this.Ta.some(function(h) { - if (a >= h.qc && a < h.df && (g.S(b) || c.dG(h.Da, b))) return d = h, !0; - }); - return d; - }; - l.prototype.k_ = function(a, b) { - for (var c = this.La.ka, d, h = this.Ta.length - 1; 0 <= h; --h) - if (d = this.Ta[h], a >= d.Ri && a < d.Ij && (g.S(b) || c.dG(d.Da, b))) return d; - }; - l.prototype.sHa = function(a) { - for (var b, c, d, h, f, m = 0; m < this.Ta.length; ++m) { - b = this.Ta[m]; - c = b.qc; - if (g.S(h)) c > a && (h = m); - else if (g.S(f)) c > d && (f = d); - else break; - d = b.df; - } - return { - nla: h, - Tna: f - }; - }; - l.prototype.kv = function(a) { - var b; - b = this.H; - if (-1 !== this.Ta.indexOf(a)) return !1; - a.K9a(this); - b.nv ? (b = this.sHa(a.qc), g.S(b.nla) ? this.Ta.push(a) : this.Ta.splice(b.nla, 0, a), g.S(b.Tna) ? (b = this.Ta[this.Ta.length - 1], this.ro = b.df) : this.ro = b.Tna) : (this.Ta.push(a), this.ro = a.df); - (a.active || a.complete) && this.qQ(a); - a.active && ++this.fs; - a.complete || (a.ZG = !0, ++this.LP, this.Nw += a.gd, a.h4 && this.w4(a, a.Jc)); - a.Nf && this.xH(a); - g.da(this.qc) || (this.qc = a.qc); - return !0; - }; - l.prototype.pbb = function(a, b) { - var c; - c = a.Ta.indexOf(b); - 1 !== c && (a.Ta.splice(c, 1), a.Mea(b, c)); - this.kv(b); - }; - l.prototype.Lea = function(a) { - a.ZG && (a.ZG = !1, --this.LP, this.Nw -= a.gd); - a.EM && (a.EM = !1, this.Gh -= a.Jc); - a.LE && (a.LE = !1, this.rv -= a.gd, this.qv -= a.Jc); - a.FM && (a.FM = !1, this.Xw -= a.gd, this.xs -= a.Jc); - }; - l.prototype.Mea = function(a, b) { - this.Lea(a); - a.active && --this.fs; - a.UY && (a.UY = !1, this.Yf -= a.ga); - a.rha && (a.rha = !1, this.Ww -= a.Jc); - a == this.Jm && (this.Jm = 0 < b ? this.Ta[b - 1] : void 0); - }; - l.prototype.YJa = function(a, b) { - this.Mea(a, b); - this.La.Ar(a); - }; - l.prototype.Bra = function(a) { - a = this.Ta.indexOf(a); - if (-1 === a) return !1; - this.splice(a, 1); - return !0; - }; - l.prototype.splice = function(a, b) { - for (var c, d = a + b - 1; d >= a; --d) c = this.Ta[d], this.YJa(c, d); - return this.Ta.splice(a, b); - }; - l.prototype.qQ = function(a) { - a.zc || a.UY || (a.UY = !0, this.Yf += a.ga); - }; - l.prototype.w4 = function(a, b) { - a.zc || (a.rha = !0, this.Ww += b, m(this.Ww <= this.Yf)); - }; - l.prototype.xH = function(a) { - a.zc || !a.complete || a.LE || (a.LE = !0, this.qv += a.Jc, this.rv += a.gd); - }; - l.prototype.hqa = function(a, b) { - if (!a.zc && -1 !== this.Ta.indexOf(a)) { - a.ZG && (a.ZG = !1, --this.LP, this.Nw -= a.gd); - this.qQ(a); - 0 < b && this.w4(a, b); - a.Nf && this.xH(a); - this.Xw += a.gd; - a.FM = !0; - this.xs += a.Jc; - a = -1; - b = 0; - this.Jm && (a = this.Jm.hb, b = this.Ta.indexOf(this.Jm) + 1); - for (var c = b; c < this.Ta.length; ++c) { - b = this.Ta[c]; - if (!b.complete) break; - b.hb > a && (this.Jm = b, a = b.hb, b.EM = !0, this.Gh += b.Jc); - } - } - }; - l.prototype.m$a = function(a) { - for (var b, c = this.Ta.length - 1; 0 <= c && (b = this.Ta[c], !a(b, c)); --c); - }; - l.prototype.vt = function(a) { - var b; - if (a !== this.Sm) { - b = this.Sm; - this.Sm = a; - b && this.Lea(b); - } - }; - l.prototype.QWa = function() { + b.prototype.mob = function() { var a; - a = 0; - this.Jm ? a = this.Jm.df : 0 < this.Ta.length && (a = this.Ta[0].qc); - return a; - }; - l.prototype.fYa = function(a) { - if (!this.Sm) return 0; - a -= this.Sm.hb; - 0 > a && (this.ba("resetting bad partialMs to 0, was:", a), a = 0); - a > this.Sm.gd && (a -= this.Sm.gd); - return a; - }; - l.prototype.Bm = function(a) { - var b, c; - g.S(a) && (a = this.La.ka.Hg()); - c = 0; - this.Jm && (b = this.Jm.df, b > a && (c = b - Math.max(a, this.qc))); - return c; - }; - l.prototype.vja = function(a) { - if (0 === this.rv) return 0; - g.S(a) && (a = this.La.ka.Hg()); - a = this.fYa(a); - return this.rv - a; - }; - l.prototype.Iw = function(a) { - ++this.fs; - this.qQ(a); - this.Rz(a); - }; - l.prototype.TG = function(a) { - this.w4(a, a.Jc - a.Wj); - this.xF(a); + a = this; + this.Up.addListener(c.kb.loaded, function() { + return a.R8(); + }); + this.Up.addListener(c.Fga.Cza, function() { + return a.Iwa(); + }); + Object.keys(c.kb).forEach(function(b) { + var f; + f = c.kb[b]; + a.Up.addListener(f, function(b) { + return a.jc.Db(f, b); + }); + }); }; - l.prototype.wi = function(a) { - var b; - b = a.Jc - a.Wj; - --this.fs; - this.hqa(a, b); - this.wF(a); - }; - l.prototype.FP = function(a, b) { - b && --this.fs; - this.MN(a, b); - }; - f.P = d; - }, function(f, c, a) { - var d, h, l, g, m, p, r, k; - - function b(a, b, c, d, f, k, u) { - this.H = u; - this.La = a.La; - this.ka = a; - this.jc = b; - this.O = c; - this.lIa(b.na.id); - this.Ka = d; - d = b.Uf ? b.Uf.kb[c].EB : void 0; - this.R8a = k; - this.EB = new l(f, k, u, d); - this.p1 = p.time.la(); - this.i0a = void 0; - this.Ia = new g(a, b, this, c, u); - this.Ia.addEventListener("headerRequestCancelled", function(b) { - a.PHa(b.request); - }); - this.Ia.addEventListener("streamingFailure", function(b) { - a.Aj(b.msg); - }); - u.Zd && this.Ia.addEventListener("managerdebugevent", function(b) { - r(a, b.type, b); - }); - this.vt = this.Ia.vt.bind(this.Ia); - this.E2a = c === h.G.VIDEO ? u.G2 : u.C2; - this.Nn = !1; - this.bY = 0; - m.call(this, b); - } - a(10); - d = a(21); - h = a(13); - l = a(259); - g = a(464); - a(67); - m = a(88); - p = a(9); - c = a(30); - r = c.Ha; - k = c.pG; - b.prototype = Object.create(m.prototype); - Object.defineProperties(b.prototype, { - jx: { - get: function() { - return this.Ia.jx; - } - }, - z5: { - get: function() { - return this.Ia.z5; - } - }, - wo: { - get: function() { - return this.jc.na.id; - } - }, - nz: { - get: function() { - return this.Ia.nz; - } - }, - Nd: { - get: function() { - return this.Ia.Nd; - } - }, - Gh: { - get: function() { - return this.Ia.Gh; - } - }, - Yj: { - get: function() { - return this.Ia.Yj; - } - }, - ls: { - get: function() { - return this.Ia.ls; - } - }, - pv: { - get: function() { - return this.Ia.pv; - } - }, - gM: { - get: function() { - return this.Ia.gM; - } - }, - PB: { - get: function() { - return this.Ia.PB; - } - }, - Yt: { - get: function() { - return this.Ia.Yt; - } - }, - VNa: { - get: function() { - return this.Ia.Yt / this.La.ol[this.O]; - } - }, - WNa: { - get: function() { - return this.Ia.jka().Yf / this.La.ol[this.O]; - } - }, - Da: { - get: function() { - return this.jc.Da; - } - }, - pO: { - get: function() { - return this.Ia.pO; - } - }, - $w: { - get: function() { - return this.Ia.$w; + b.prototype.nab = function(a) { + var b, f, d, g, h, u, l; + b = this; + f = this.vp().j; + d = f.gb; + if (!d) throw Error("No streaming session"); + g = this.DP[a]; + h = d.c4(g.id); + if (!h) throw Error("Segment is not pre-buffered"); + u = new Promise(function(a) { + function f() { + b.log.debug("Stopped ASE"); + d.removeEventListener("stop", f); + a(); } - }, - Nc: { - get: function() { - return this.jc.qka(this.O); + d.addEventListener("stop", f); + }); + l = new Promise(function(a) { + function g() { + b.log.debug("Repositioned"); + f.removeEventListener(c.X.Rp, g); + a(); } - }, - Xm: { - get: function() { - return this.jc.IYa(this.O); + + function k() { + b.log.debug("Repositioning"); + f.removeEventListener(c.X.mz, k); + d.stop(); } - } - }); - b.prototype.lIa = function(a) { - a = a && a.length ? "{" + a + "} " : ""; - a += "[" + this.O + "]"; - this.V = k(p, this.ka.V, a); - this.Yb = this.V.error.bind(this.V); - this.ba = this.V.warn.bind(this.V); - this.wc = this.V.trace.bind(this.V); - this.wa = this.V.log.bind(this.V); - this.Fr = this.V.debug.bind(this.V); - this.Ia && this.Ia.gra(this.V); - }; - b.prototype.reset = function(a, b) { - this.Nn = !1; - this.l0a = this.seeking = void 0; - this.fg = !1; - this.Ia.reset(a); - this.z4 = { - reason: b, - time: p.time.la() - }; + f.addEventListener(c.X.mz, k); + f.addEventListener(c.X.Rp, g); + }); + Promise.all([u, l]).then(function() { + d.LB(g.id, !1, !0); + f.fireEvent(c.X.uT, { + mk: b.mk, + vT: a + }); + }); + this.log.debug("Calling seek on internal player to " + h.$b); + this.vp().seek(h.$b, c.Ng.wA, g.na); }; - b.prototype.Opa = function(a) { - this.Ia.xga(a); + b.prototype.Iwa = function() { + var a; + a = this.vp().getError(); + a ? this.jc.Db(c.kb.V0, a) : (this.jc.Db(c.kb.Dma), this.jc.Db(c.kb.JP), this.jc.Db(c.kb.Ez), this.jc.Db(c.kb.zE), this.jc.Db(c.kb.zL), this.jc.Db(c.kb.V0)); }; - b.prototype.Wm = function(a) { - this.Ia.Wm(a); + b.prototype.R8 = function() { + var a, b, f, d, g, r; + a = this; + if (this.wD) { + b = this.Q8a(this.mk, this.wD); + if (!(0 > b || b > this.H8.Nxa)) { + b = this.ID.Se[this.wD]; + this.log.debug("creating new playback", b, new Date()); + f = this.vp().j; + d = f.Vla(b.Ie, f.uc, { + Qf: f.Qf, + U: b.wo, + ea: b.lC, + Ze: !1, + CV: Date.now(), + W5: !0 + }); + g = this.wD; + r = function(b) { + b.index === d && (a.mk = g, a.R8(), f.removeEventListener(c.X.e7, r), a.Iwa()); + }; + f.addEventListener(c.X.e7, r); + this.wD = this.My[this.wD]; + f.Ckb(d).then(function() { + a.DP[g] = a.Uqa(d); + }).then(function() { + return a.R8(); + }); + } + } else this.Z6a(); }; - b.prototype.ALa = function() { - this.Ia.RB(); + b.prototype.Z6a = function() { + var a; + a = this.vp().j; + a.gb && a.gb.Ynb(); }; - b.prototype.A9a = function(a, b) { - var c, d; - c = this.ka; - d = this.O; - this.lj = b.lj; - this.cs = b.cs; - b.Nc.forEach(function(b) { - var g; - g = c.Ge[d][b.id]; - b.T && b.T.length || !g || (g.T ? (b.T = g.T, b.If = g.bc) : (g.VG || (g.VG = []), g.VG.push(a))); - }.bind(this)); - c.MHa(this, b.Q8a); - this.uOa(b.Nc); - this.Hs = void 0; - this.fg = !1; + b.prototype.Q8a = function(a, b) { + for (var f = 0; a !== b && void 0 !== a;) f++, a = this.My[a]; + return a ? f : -1; }; - b.prototype.G9a = function(a, b) { - var c; - if (this.H.nv) { - c = this.Ia.YXa(); - null !== c ? (this.Ka = c, this.ih = c === a ? b : this.ka.XK(this.O, this.jc.Da, this.Ka)) : (this.ba("nextPts from requestManager returns null,", "fall back to linear increasing streamingPts"), this.Ka = a, this.ih = b); - } else this.Ka = a, this.ih = b; + b.prototype.dAa = function(a) { + this.ID = a; + this.My = {}; + this.xma(Object.keys(this.ID.Se)); }; - b.prototype.yo = function(a) { - var b, c, d; - if (this.wf && this.wf.X === a) b = this.wf.index, c = a; - else { - d = this.ka.bq(this.Da); - b = d.Vb[this.O]; - if (!b || !b.T) { - this.zt = !0; - this.OP = a; - return; - } - c = b.T; - this.wf = this.Zia(b.stream, a, void 0, void 0); - if (void 0 === this.wf) { - if (b = c.length - 1, c = c.Nq(b), this.ba("setStreamingPts out of range of fragments, pts:", a, "last startPts:", c, "fragment index:", b, "fastplay:", d.ki), d.ki) { - this.zt = !0; - this.OP = a; - return; - } - } else b = this.wf.index, c = this.wf.X; - } - this.ih = b; - this.Ka = c; - delete this.zt; - }; - b.prototype.b8a = function(a) { - this.yo(a); - this.fg = !1; - this.fa = void 0; - this.Ia.qqa(); - }; - b.prototype.a8a = function(a) { - this.wf = a; - this.fg = !1; - this.fa = void 0; - this.ih = this.wf.index; - this.Ka = this.wf.X; - delete this.zt; - this.Ia.qqa(); - }; - b.prototype.m8a = function(a) { + b.prototype.xma = function(a) { var b; - b = this.ka.bq(this.Da).Vb[this.O]; - if (b && b.T) { - for (var c = b.T; 0 < this.ih && this.Ka > a;) this.Ka = c.Nq(--this.ih); - this.ih < this.wf.index && (this.wf = b.stream.Vi(this.ih)); - this.zt = void 0; - } else this.zt = !0, this.OP = a; - }; - b.prototype.Fcb = function(a) { - var b, c; - b = this.Xm[a]; - c = "verifying streamId: " + a + " stream's track: " + (b ? b.lj : "unknown") + " currentTrack: " + this.lj; - if (!b) return this.ka.ug("unknown streamId: " + a), !1; - b.lj !== this.lj && this.ka.ug(c); - return b.lj == this.lj; - }; - b.prototype.uOa = function(a) { - this.Qka = a.reduce(function(a, b) { - return b.inRange && b.Ye && !b.fh && b.J > a.J ? b : a; - }, a[0]); - this.EZa = a.indexOf(this.Qka); - }; - b.prototype.wUa = function(a) { - return this.O === h.G.VIDEO ? 0 : this.H.Vm ? a && a.hh || 0 : this.H.Sp && a ? -a.hh : 0; - }; - b.prototype.m5 = function() { - return this.O === h.G.VIDEO && this.H.Rv || this.O === h.G.AUDIO && this.H.Sp; - }; - b.prototype.Zia = function(a, b, c, g, f) { - var m, l, p, r, k, u, v, x; - d(0 <= b); - m = this.H; - l = a.T; - p = l.bc; - r = b + 0; - k = l.Ll(r, void 0, !0); - u = a.Vi(k); - v = this.m5(); - if (u.fa < b) return u; - if (v) { - r = this.O === h.G.VIDEO ? r : b; - x = u.l_(r); - x ? 0 < x.Rd && u.oq(x, !1) : r >= u.fa && k < l.length - 1 && (u = a.Vi(k + 1)); - } - this.O === h.G.VIDEO && c && u.fa === c && k < l.length - 1 ? u = a.Vi(k + 1) : this.O === h.G.AUDIO && void 0 !== g && !m.Vm && (c = b + g, c - u.X > m.O1a || u.X < c - f || p && 2 > Math.floor(u.duration / p.hh)) && (u = a.Vi(k + 1)); - v && this.O === h.G.AUDIO && !u.yd && (m.Zs || m.R0 || m.bUa) && void 0 !== g && u.oq(); - u.JH(b); - return u; - }; - b.prototype.wVa = function(a, b) { - var c, d, g, f, m; - c = this.H; - d = a.T; - g = d.bc; - f = b ? b + this.wUa(g) : d.nN(d.length - 1); - d = d.Ll(f, void 0, !0); - g = a.Vi(d); - 0 == d || g.X !== b || this.O !== h.G.VIDEO && c.Vm || (--d, g = a.Vi(d)); - if (this.m5()) { - f = this.O === h.G.VIDEO ? f : b; - if (f < g.fa) { - m = g.zVa(f); - m && 0 != m.Rd ? g.oq(m, !0) : this.O === h.G.AUDIO && (m || f < g.X) && 0 != d && (g = a.Vi(d - 1)); - } - this.O === h.G.AUDIO && (c.Zs || c.Q0) && g.oq(); - } else this.O === h.G.AUDIO && !c.Vm && b - g.X < g.duration / 2 && 0 != d && (g = a.Vi(d - 1)); - g.JH(b); - return g; + b = this; + a.filter(function(a) { + return b.LK(a); + }).forEach(function(a) { + b.My[a] = b.owa(b.ID.Se[a].vQ); + }); }; - b.prototype.TQ = function(a) { - this.Rk = a; - this.fa = a.fa; + b.prototype.LK = function(a, b) { + b = void 0 === b ? this.ID.Se : b; + return a in b; }; - b.prototype.xt = function(a) { - this.Qz(a); + b.prototype.owa = function(a) { + return null === a ? void 0 : a; }; - b.prototype.toJSON = function() { + b.prototype.Uqa = function(a) { return { - started: this.jx, - startOfSequence: this.z5, - segmentId: this.wo, - requestedBufferLevel: this.Yj, - manifestIndex: this.Da, - hasFragments: this.pO + id: "m" + a, + na: a }; }; - f.P = b; - }, function(f, c, a) { - var g, m, p, r, k, v, z, n, q; - - function b(a, b, c, d, g) { - this.H = g; - this.ka = a; - this.ec = b; - this.V = a.V; - this.Yb = this.V.error.bind(this.V); - this.ba = this.V.warn.bind(this.V); - this.wc = this.V.trace.bind(this.V); - this.wa = this.V.log.bind(this.V); - this.nl = []; - this.xk = Object.create(null); - c ? (this.jV = !0, this.CJa(c, d)) : (this.tk = this.rV("", 0, 0, void 0, void 0, [], !0), this.tk.Y2 = !0, this.tk.fa = Infinity, this.OL = [this.tk]); - this.Fb = new h(this, b, this.tk, this.tk.X, 0, void 0, d); - this.Fb.active = !0; - this.iL = void 0; - } + d.PNa = b; + }, function(g, d, a) { + var c, h, k, f, p, m, r, u, l, v, y; - function d(a, b, c) { - var m; - for (var d = this.ka, h = "findBranchBy" + (b ? "ContentPts" : "PlayerPts"), f = this.Fb; f;) { - if (!g.da(c) || d.dG(c, f.Da)) { - m = b ? f.Ij : f.df; - if ((b ? f.Ri : f.qc) <= a && a < m) return f; - } - f = f.Uf; - } - this.ba(h, "pts:", a, "not in immediate branch history, default branch:", this.Fb); + function b(b, f, c, d, g, k, m, h) { + this.Va = b; + this.af = f; + this.tjb = c; + this.cnb = g; + this.c3 = k; + this.H8 = m; + f = a(33).ln; + this.anb = d.Ju(!1, "6.0015.328.011", b.id, f, h()); } + Object.defineProperty(d, "__esModule", { + value: !0 + }); + g = a(0); + c = a(1); + h = a(521); + k = a(7); + f = a(24); + p = a(260); + m = a(259); + r = a(416); + u = a(226); + l = a(20); + v = a(421); + b.prototype.create = function(a, b, f) { + return new h.PNa(a, b, f, this.Va, this.af, this.tjb, this.cnb, this.c3, this.anb, this.H8); + }; + y = b; + y = g.__decorate([c.N(), g.__param(0, c.l(f.Ue)), g.__param(1, c.l(k.sb)), g.__param(2, c.l(p.Iga)), g.__param(3, c.l(r.rha)), g.__param(4, c.l(u.FY)), g.__param(5, c.l(v.zM)), g.__param(6, c.l(m.Ega)), g.__param(7, c.l(l.je))], y); + d.ONa = y; + }, function(g, d, a) { + var b, c, h, k, f, p, m, r, u, l; + Object.defineProperty(d, "__esModule", { + value: !0 + }); + g = a(1); + b = a(261); + c = a(522); + h = a(260); + k = a(520); + f = a(257); + p = a(519); + m = a(518); + r = a(259); + u = a(256); + l = a(517); + d.mi = new g.Vb(function(a) { + a(b.uY).to(c.ONa).$(); + a(h.Iga).to(k.SNa).$(); + a(f.Hga).to(p.RNa).$(); + a(r.Ega).to(m.NNa).$(); + a(u.Gga).to(l.QNa).$(); + }); + }, function(g, d, a) { + var c, h, k, f, p, m, r, u, l, v; - function h(a, b, c, d, h, f, m) { - var l; - this.La = a; - l = a.ka; - this.ka = l; - this.Uf = f; - this.na = c; - this.X = d; - this.qm = c.qm; - this.children = Object.create(null); - this.Fo = []; - this.V = n(v, l.V, c.id && c.id.length ? "{" + c.id + "}" : void 0); - this.Yb = this.V.error.bind(this.V); - this.ba = this.V.warn.bind(this.V); - this.wc = this.V.trace.bind(this.V); - this.wa = this.V.log.bind(this.V); - this.Fr = this.V.debug.bind(this.V); - this.Ub = l.bq(h).Rl; - this.Da = h; - this.Ac = void 0; - g.da(m) || (m = d); - c = b.S$a; - b = new r(l, this, p.G.AUDIO, m, l, c[p.G.AUDIO], l.H); - m = new r(l, this, p.G.VIDEO, m, l, c[p.G.VIDEO], l.H); - this.kb = [b, m]; - this.M0(h); - a.nl.push(this); - q.call(this, l); - } - - function l(a, b, c, d, g, h, f, m, l) { - this.id = a; - this.Da = b; - this.X = c; - this.fa = d || Infinity; - this.WE = g; - this.Jk = h; - this.HB = f; - this.qm = "number" === typeof m ? m : this.fa; - this.Dbb = l; + function b(a, b, c, d) { + b = u.dM.call(this, b, c, d) || this; + b.config = a; + b.log = h.qf(b.j, "LegacyLicenseBroker"); + b.Ad = b.config().Ad; + b.config().Z8 ? f.Dta() ? b.HV = !0 : b.log.error("Promise based eme requested but platform does not support it", { + browserua: p.pj + }) : b.HV = !1; + return b; } - g = a(10); - m = a(21); - p = a(13); - r = a(465); - k = a(44); - v = a(9); - c = a(30); - z = c.S4; - n = c.pG; - v = a(9); - q = a(88); - Object.defineProperties(b.prototype, { - $s: { - get: function() { - return !!this.jV; - } - }, - E_a: { - get: function() { - return 0 === this.Fb.kb.length; - } - }, - Gha: { - get: function() { - return this.Fb.na.id; - } - }, - Fha: { - get: function() { - return this.Fb.Da; - } - }, - xm: { - get: function() { - return this.Fb; - } - }, - Yd: { - get: function() { - return this.Fb.kb; - } - }, - QNa: { - get: function() { - return this.nl; - } - }, - Ub: { - get: function() { - return this.Fb.Ub; - } - }, - Se: { - get: function() { - return this.ka.Se; - } - }, - yi: { - get: function() { - return this.iL ? this.iL : this.Fb; - } - } + Object.defineProperty(d, "__esModule", { + value: !0 }); - b.prototype.a0 = function(a) { - return "m" + a; - }; - b.prototype.Ml = function(a) { - return this.Fb.kb[a]; - }; - b.prototype.Bm = function(a) { - return this.Fb.kb[a].Nd; - }; - b.prototype.kka = function(a, b) { - var c; - c = this.xk[a]; - if (c) return (a = c.Jk[b]) && a.weight; - this.ba("getSegmentWeight, unknown segment:", a); - }; - b.prototype.AYa = function(a) { - var b; - b = this.xk[a]; - if (b) return b.X; - this.ba("getSegmentStartPts, unknown segment:", a); - }; - b.prototype.nYa = function() { - var a; - a = this.yi.na; - return a && ("number" === typeof a.qm ? a.qm : a.fa); - }; - b.prototype.zYa = function(a) { + g = a(0); + c = a(2); + h = a(3); + k = a(115); + f = a(25); + p = a(6); + m = a(1); + r = a(182); + u = a(262); + l = a(76); + ia(b, u.dM); + b.prototype.joa = function(a) { var b; - b = this.xk[a]; - if (!b) this.ba("getSegmentDuration, unknown segment:", a); - else if (g.da(b.fa) && isFinite(b.fa) && g.da(b.X) && isFinite(b.X)) return b.fa - b.X; - }; - b.prototype.Yia = function(a) { - for (var b = this.Fb; b;) { - if (this.ka.dG(b.Da, a)) return b; - b = b.Uf; - } - }; - b.prototype.uVa = function(a, b) { - return d.call(this, a, !1, b); - }; - b.prototype.tVa = function(a, b) { - return d.call(this, a, !0, b); - }; - b.prototype.I7a = function(a, b) { - g.Kc(this.nl, function(c) { - c.Da === a && (c.Da = b); + b = void 0 === b ? this.j : b; + return new this.bK.Rs(a, b.Yg.Pr, b.Yg.release, { + Dg: !1, + dJ: !1 }); - g.Kc(this.xk, function(c) { - c.Da === a && (c.Da = b); - }); - }; - b.prototype.oqa = function() { - g.Kc(this.nl, function(a) { - a.Ub = this.ka.bq(a.Da).Rl; - }.bind(this)); - }; - b.prototype.VQ = function(a) { - g.Kc(this.nl, function(b) { - b.qka(p.G.VIDEO).forEach(function(b) { - k(this.ka.rca(b.le, b.J, a), b); - }.bind(this)); - }.bind(this)); }; - b.prototype.qSa = function() { - this.nl.forEach(function(a) { - a.active = !1; + b.prototype.vH = function(b, f) { + var d, g, m, p, r, u; + f = void 0 === f ? this.j : f; + d = this; + p = a(21).yc; + this.bK.Rs || this.md(c.I.jw, c.H.MGa); + m = h.qf(f, "Eme"); + g = this.joa(m); + r = h.ca.get(k.zA); + u = r.gQ(); + r = r.zH(f.Te.value.qc); + return this.bK.Go(m, b, function(a) { + return f.he(a); + }, { + Dg: !1, + dJ: !1, + Gta: this.config().Kh, + Aza: { + yva: this.config().zza, + rna: this.config().Y9 + }, + Ma: { + getTime: p + }, + CK: g, + Uxa: this.HV, + Ha: this.jb.Ha, + HE: this.config().HE, + Oz: this.config().Q2, + onerror: function(a, b, f) { + return d.md(a, b, f); + }, + g8: function(a) { + return d.RR(a); + }, + ijb: !0, + PK: this.config().Xaa && this.config().PK, + dS: this.config().dS, + Bma: u, + oCa: r, + SC: this.config().SC }); }; - b.prototype.w6a = function() { - this.nl.every(function(a) { - if (a.active) return a.kb.every(function(a) { - return 0 === a.$w; - }) ? (a.ze(), this.nl.shift(), !0) : !1; - }.bind(this)); - }; - b.prototype.gPa = function(a, b) { - var c, d; - c = this.Fb; - if (c.Hma) a = c.Hma; - else { - d = this.Fb.Ub; - a = new h(this, this.ec, c.na, 0, a, c); - a.kb.forEach(function(a) { - a.yo(0); - a.TQ(c.kb[a.O].Rk); + b.prototype.gE = function(a) { + var b; + b = this; + return this.HV ? new Promise(function(f, d) { + if (b.jb.Ha) b.jb.Ha.setMediaKeys(a).then(function() { + f(); + })["catch"](function(a) { + var f; + f = b.fsa(a); + d({ + S: !1, + code: c.I.kY, + tc: f.T, + Ef: f.ic, + Ja: f.Ja, + message: "Set media keys is a failure", + cause: a + }); }); - a.Ub = d + b; - c.Hma = a; - } - this.ny(a, c); + else return Promise.resolve(); + }) : Promise.resolve(); + }; + b.prototype.Ypa = function(a) { + return { + code: a.code, + subCode: a.tc, + extCode: a.Ef, + edgeCode: a.gC, + message: a.message, + errorDetails: a.Ja, + errorData: a.Pn, + state: a.state + }; }; - b.prototype.XLa = function(a, b, c) { + b.prototype.w$ = function(a, b, f) { var d, g; - if (!this.jV) { - this.jV = !0; - d = this.a0(0); - this.tk.id = d; - this.xk[d] = this.tk; - this.nl[d] = this.Fb; - this.tk.fa = this.ka.Bda(this.ka.EXa()); - this.tk.Rw = !0; - } - g = this.a0(a); - a = this.rV(g, a, b, c, void 0, [], !0); - a.Rw = !0; - this.OL.forEach(function(a) { - a.Jk = {}; - a.Jk[g] = { - weight: 100 - }; - a.WE = g; - a.HB = !1; - }.bind(this)); - this.OL = [a]; - }; - b.prototype.EE = function(a, b) { - var c, d, h, f; - c = this.yi; - d = c.mR(b); - h = c.na; - f = c.children[a]; - if (b) { - if (!h.Jk[a]) return this.Fb.ba("chooseNextSegment, invalid destination:", a, "for current segment:", h.id), !1; - if (c.Ih) return c.Ih === a; - c.Ih = a; - f && c.LN ? this.ny(f, c) : this.H.jF && (a = c.Jga(), g.S(a) || c.Hsa(a)); - return !0; + + function c() { + g.Fya()["catch"](function(a) { + d.log.error("Unable to set the license", d.Ypa(a)); + a.cause && a.cause.Ja && (a.Ja = a.Ja ? a.Ja + a.cause.Ja : a.cause.Ja); + d.md(a.code, a, a.Ef); + }); } - if (!f) return d.Qna = !0, !1; - b || (d.Qna = !f.lz()); - this.ka.vW("chooseNextSegment"); - c.LN = void 0; - c.Ih = a; - this.ny(f, c); - return !0; - }; - b.prototype.JZa = function(a, b) { - var c, d, f; - c = this.ka; - d = a.na; - b && !a.Ih && (a.Ih = d.WE, a.mR(!0, !0)); - a.children = Object.create(null); - g.Kc(d.Jk, function(b, d) { - var g, m, l, r; - if (!a.Ih || d == a.Ih) { - b = this.xk[d]; - g = b.Da; - m = c.Ca[g]; - l = m.M === c.M; - f = new h(this, this.ec, b, b.X, g, a); - r = this.ka.DK(f.Da, b.X, f, a, l).$A; - g = this.ka.sD(f.kb, m.Vb, b.fa); - f.kb[p.G.VIDEO].Rk = g[p.G.VIDEO]; - f.kb[p.G.AUDIO].Rk = g[p.G.AUDIO]; - [p.G.VIDEO, p.G.AUDIO].forEach(function(b) { - var c, d; - c = f.kb[b]; - d = a.kb[b]; - b === p.G.VIDEO && (d = d.Ka + a.Ub, f.Ub = d - r[b], f.X = r[b]); - c.yo(r[b]); - c.r_a = c.Ka; - c.q_a = c.ih; - }.bind(this)); - c.fea(b, f.Ub); - a.children[d] = f; - } - }.bind(this)); - a.Ih && this.ny(a.children[a.Ih], a); - a.LN = !0; - }; - b.prototype.kbb = function() { - var a; - a = 0; - g.Kc(this.nl, function(b) { - b.kb.forEach(function(b) { - a += b.Ia.fs; - }.bind(this)); - }.bind(this)); - return a; - }; - b.prototype.hGa = function(a) { - for (var b = [a.na.id]; a.Uf;) a = a.Uf, b.unshift(a.na.id); - this.cV(a, !0); - }; - b.prototype.cV = function(a, b) { - var c, d; - c = a.na; - g.Kc(a.children, function(a) { - this.cV(a, b); - }.bind(this)); - a.kb.forEach(function(a) { - a.Ia.rLa(b); - }.bind(this)); - a.active = !1; - a.ze(); - d = -1; - this.nl.some(function(b, c) { - if (b === a) return d = c, !0; - }); - 1 !== d ? this.nl.splice(d, 1) : this.ba("Unable to find branch:", a, "in branches array"); - this.ka.fJa(c); + f = void 0 === f ? this.j : f; + d = this; + g = f.dg; + this.log.info("Setting the license"); + f = b ? function() { + return Promise.resolve(); + } : function() { + return g.$e(d.u4(), a); + }; + return (b ? function() { + return g.yBb(d.jb.Ha); + } : function() { + return g.create(d.Ad).then(function() { + return Promise.resolve(); + }); + })().then(function() { + return d.config().cAa ? d.gE(g.Ck) : Promise.resolve(); + }).then(f).then(function() { + return d.config().cAa ? Promise.resolve() : d.gE(g.Ck); + }).then(function() { + d.log.info("license set"); + d.u3(); + d.jb.tCa.then(function() { + d.config().$u && (b || d.config().oI) && (d.Gya = A.setTimeout(c, d.config().$u)); + }); + })["catch"](function(a) { + d.log.error("Unable to set the license", d.Ypa(a)); + a.cause && a.cause.Ja && (a.Ja = a.Ja ? a.Ja + a.cause.Ja : a.cause.Ja); + if (b) throw Error(a && a.message ? a.message : "failed to set license"); + d.md(a.code, a, a.Ef); + }); }; - b.prototype.yab = function(a, b) { - var c, d; - c = this.tHa(a, b); - if (c) { - c !== this.Fb.na && (this.qSa(), d = new h(this, this.ec, c, a, b, this.Fb), d.Uf = void 0, this.hGa(this.Fb), this.ny(d, this.Fb)); - c === this.yi.na && (this.yi.Fo.shift(), d && (d.Fo = this.yi.Fo, d.Ih = this.yi.Ih)); - this.ka.fea(c, this.Fb.Ub); - this.Fb.LN = void 0; - } else this.ba("findSegment no segment for manifestIndex:", b); - }; - b.prototype.ny = function(a, b) { - var c, d, h, f, m; - c = b.na; - b.Da != a.Da && this.ka.Nda(a.Da); - a.active = !0; - if (this.H.jF) { - d = this.Fb.Jga(); - if (!g.S(d)) { - h = this.Fb.fa; - this.Fb.Hsa(d); - a.bcb(this.Fb.fa - h); - } - } - a.kb.forEach(function(a) { - a.ALa(); - }.bind(this)); - f = v.time.la(); - m = {}; - g.Kc(b.children, function(b) { - b.Ac && (b.Ac.Nd = b.kb.map(function(a) { - return a.ls.hh; - }), b.Ac.KTa = f - b.Ac.CO, b.Ac.CO = void 0, m[b.na.id] = b.Ac); - b.na.id !== a.na.id && this.cV(b); - }.bind(this)); - b.children = Object.create(null); - b.children[a.na.id] = a; - this.hra(a); - this.ka.gJa(a.na, m); - 1 < Object.keys(c.Jk).length && a.lz(); - this.ka.iqa(); - }; - b.prototype.Mma = function(a, b) { - var c; - c = a.na; - b || (b = c.WE); - z(c.id); - a.Ih || (a.Ih = b, a.mR(!0, !0)); - (b = a.children[a.Ih]) && this.ny(b, a); - }; - b.prototype.hra = function(a, b) { - if (this.Fb != a) { - if (b) - for (b = this.Fb; b != a;) b.active = !1, b = b.Uf; - this.Fb = a; - } + b.prototype.gxa = function() { + return Promise.resolve(); }; - b.prototype.nqa = function(a) { - g.Kc(a.children, function(a) { + b.prototype.k8 = function(a) { + var d; + + function b() { var b; - b = a.kb[p.G.AUDIO]; - b.reset(!0, "audioTrackChange"); - b.Ka = b.r_a; - b.ih = b.q_a; - this.nqa(a); - }.bind(this)); - }; - b.prototype.cn = function(a, b) { - var c, d, g, h; - if (this.$s) { - c = this.H; - d = this.yi; - g = d.na; - h = z(g.id); - !d.Ih && !g.HB && d.fa - b < c.Cna && (this.ba(h + "updatePts making fork decision at playerPts:", a, "contentPts:", b), this.Mma(d)); - } - this.Fb.kb.forEach(function(a) { - this.Se[a.O].cn(b); - }.bind(this)); - }; - b.prototype.vt = function(a, b) { - var c; - if (this.$s) { - c = this.iL; - a = a.yf.jc; - c && a.na.id == c.na.id || (this.iL = a, this.wGa(c), c = c && c.sPa(a), this.ka.iJa(a.na, b, c)); - } - }; - b.prototype.ze = function() { - this.bHa(this.Fb); - }; - b.prototype.bHa = function(a) { - 0 !== a.kb.length && (a.kb.forEach(function(a) { - a.Ia.reset(); - delete a.EB; - a.active && (this.Yb("Destroying active pipeline!"), this.ka.wkb(v.time.la())); - }.bind(this)), a.kb = [], a.ze()); - }; - b.prototype.wGa = function(a) { - var b, c; - if (a) { - b = v.time.la(); - c = a.Fo[0]; - c && void 0 === c.TM ? c.TM = b - c.requestTime : c || (this.ba("missing metrics for branch:", a.na.id), c = { - gR: a.na.id, - HQ: !0, - TM: 0, - Ac: {} - }, a.Fo.unshift(c)); - void 0 === c.startTime && (c.startTime = b); - a.kb.forEach(function(a) { - a.vt(); - }.bind(this)); - } - }; - b.prototype.tHa = function(a, b) { - var c, d, f, l; - m(0 <= a); - for (var h in this.xk) { - f = this.xk[h]; - if (this.ka.dG(f.Da, b)) { - if (f.X <= a && (g.S(f.fa) || a < f.fa)) return f; - l = Math.min(Math.abs(a - f.X), Math.abs(a - f.fa)); - if (g.S(c) || l < c) c = l, d = f; - } + d.j.dg = d.vH(a.initDataType); + b = []; + d.j.qo.forEach(function(a) { + b.push(h.hk(a)); + }); + d.w$(b); } - return d; - }; - b.prototype.o3a = function(a, b, c) { - b.Y2 || (b.X = this.ka.aka(a, b.X, !0), c || (b.fa = this.ka.aka(a, b.fa, !1)), b.Y2 = !0); - }; - b.prototype.rV = function(a, b, c, d, g, h, f, m, p) { - b = new l(a, b, c, d, g, h, f, m, p); - return this.xk[a] = b; - }; - b.prototype.CJa = function(a, b) { - var c, d; - this.tk = void 0; - this.OL = []; - c = null; - d = null; - g.Kc(a.segments, function(a, h) { - var f, m, l, p, r, k; - f = a.startTimeMs; - m = a.endTimeMs; - l = {}; - g.Kc(a.next, function(b, c) { - l[c] = { - weight: b.weight || 0, - rtb: b.transitionHint || a.transitionHint, - Wmb: "number" === typeof b.earliestSkipRequestOffset ? b.earliestSkipRequestOffset : a.earliestSkipRequestOffset - }; + d = this; + this.log.trace("Received event: " + a.type); + this.w6 || (this.w6 = !0, this.bK.Go ? this.j.qo ? f.vS(this.config()) && this.config().Kl && A._cad_global.videoPreparer ? A._cad_global.videoPreparer.Fj(this.j.R, "ldl").then(function(a) { + d.j.dg = a; + return a.jJb.then(function() { + var b; + b = []; + d.j.qo.forEach(function(a) { + b.push(h.hk(a)); + }); + return d.w$(b, !0).then(function() { + var b; + if (a.oCb) d.md(c.I.PGa); + else { + b = h.qf(d.j, "Eme"); + a.YIb({ + log: b, + PGb: function(a) { + return d.j.he(a); + } + }, { + CK: d.joa(b), + onerror: function(a, b, f) { + return d.md(a, b, f); + } + }); + (b = a.kHb) && d.RR(b); + d.j.QC(a.ud || {}); + d.j.Cx = "videopreparer"; + } + }); }); - r = this.vda(l); - "number" === typeof r && (p = f + r); - k = a.defaultNext; - g.S(k) && (k = Object.keys(l)[0]); - r = g.S(k); - p = this.rV(h, 0, f, m, k, l, r, p, a.transitionDelayZones); - f <= b && (b < m || g.S(m)) ? this.tk = p : f > b && (!c || f < d) && (c = h, d = f); - r && this.OL.push(p); - }.bind(this)); - this.tk || (this.tk = c ? this.xk[c] : this.xk[a.initialSegment]); + })["catch"](function(a) { + d.log.warn("eme not in cache", a); + b(); + }) : b() : (this.log.error("Missing the PSSH on the video track, closing the player"), this.md(c.I.BMa)) : this.md(c.I.jw, c.H.NGa)); }; - b.prototype.vda = function(a) { - var b, c; - c = 0; - g.Kc(a, function(a) { - var d, g; - d = a.weight || 0; - c += 0 < d; - g = a.earliestSkipRequestOffset; - 0 < d && a.transitionHint === p.oEa.Iva && "number" === typeof g && (void 0 === b || b > g) && (b = g); + b.prototype.$za = function(a, b) { + var f; + b = void 0 === b ? this.j : b; + b.dg = this.vH(void 0 === a ? "cenc" : a); + f = []; + b.qo.forEach(function(a) { + f.push(h.hk(a)); }); - return 1 < c && b; + return this.w$(f, !1, b); }; - b.prototype.g6 = function(a, b) { - var c; - z(a); - c = this.xk[a]; - c ? (g.Kc(c.Jk, function(a, c) { - a.weight = b[c] || 0; - }.bind(this)), a = this.vda(c.Jk), c.qm = "number" === typeof a ? c.X + a : c.fa) : this.ba("updateChoiceMapEntry, unknown segment:", a); + b.prototype.u4 = function() { + return this.config().oI ? l.zi.$s : l.zi.cm; }; - h.prototype = Object.create(q.prototype); - h.prototype.constructor = h; - Object.defineProperties(h.prototype, { - Yj: { - get: function() { - return [this.kb[0].Yj, this.kb[1].Yj]; - } - }, - ls: { - get: function() { - return [this.kb[0].ls, this.kb[1].ls]; - } - }, - Rl: { - get: function() { - return this.ka.Ca[this.Da].Rl; - } - }, - Ri: { - get: function() { - return this.X; - } - }, - Ij: { - get: function() { - return this.fa; - } - }, - fa: { - get: function() { - return g.da(this.jda) ? this.jda : this.na.fa; - } - }, - qc: { + na.Object.defineProperties(b.prototype, { + bK: { + configurable: !0, + enumerable: !0, get: function() { - return this.X + this.Ub; + return a(33).wf; } }, - df: { + Ky: { + configurable: !0, + enumerable: !0, get: function() { - return this.fa + this.Ub; + return this.HV ? "encrypted" : this.jb.NW + "needkey"; } } }); - h.prototype.toJSON = function() { - return { - segment: this.na.id, - active: this.active, - branchOffset: this.Ub, - manifestIndex: this.Da, - contentStartPts: this.X, - contentEndPts: this.fa, - playerStartPts: this.qc, - playerEndPts: this.df, - pipelines: this.kb, - previousBranch: this.Uf + v = b; + g.__decorate([r.HS], v.prototype, "bK", null); + g.__decorate([r.HS], v.prototype, "Ky", null); + v = g.__decorate([m.N()], v); + d.kJa = v; + }, function(g, d, a) { + var c, h, k, f, p, m, r, u, l, v, y; + + function b(a, b, f, c, d, g, k) { + var m; + m = l.dM.call(this, f, c, d) || this; + m.Ad = a; + m.config = b; + m.eC = g; + m.sva = k; + m.log = h.qf(m.j, "LicenseBroker"); + m.rva = !1; + m.qma = { + next: function() { + m.log.info("Finished a license"); + }, + error: function(a) { + m.QC(); + m.md(a.code, a, a.Ef); + }, + complete: function() { + m.log.info("Successfully applied license"); + m.zu.v6 && m.RR(m.zu.v6); + m.QC(); + m.gE(); + } }; + return m; + } + Object.defineProperty(d, "__esModule", { + value: !0 + }); + g = a(0); + c = a(2); + h = a(3); + k = a(25); + f = a(5); + p = a(433); + m = a(4); + r = a(1); + u = a(182); + l = a(262); + v = a(76); + y = a(16); + ia(b, l.dM); + b.prototype.k8 = function() { + var a; + a = this; + this.w6 || (this.w6 = !0, k.vS(this.config) && this.config.Kl && A._cad_global.videoPreparer ? A._cad_global.videoPreparer.Fj(this.j.R, "ldl").then(function(b) { + a.Rxa(b); + a.j.Cx = "videopreparer"; + a.zu.q0().subscribe(a.qma); + })["catch"](function(b) { + a.log.warn("eme not in cache", b); + a.Pr(); + }) : this.Pr()); }; - h.prototype.B9a = function(a) { - this.Da = a; - }; - h.prototype.qka = function(a) { - return this.ka.Ca[this.Da].pe[a].Nc; - }; - h.prototype.IYa = function(a) { - return this.ka.Ca[this.Da].pe[a].Xm; - }; - h.prototype.tYa = function(a) { - return this.kb[a].$w; - }; - h.prototype.Bm = function(a) { - return this.kb[a].Nd; - }; - h.prototype.M0 = function(a) { + b.prototype.B7a = function(a) { var b; - b = this.ka.bq(a).pe; - this.kb.forEach(function(c) { - var d; - d = b[c.O]; - d && c.A9a(a, d); + b = {}; + a.forEach(function(a) { + b[p.L4a(a.Kfb)] = a.time.ma(m.Aa); }); - }; - h.prototype.ze = function() { - this.Uf && (delete this.Uf.children[this.na.id], this.Uf = void 0); - g.Kc(this.children, function(a) { - a.Uf && (a.Uf = void 0); - }.bind(this)); - this.children = Object.create(null); - }; - h.prototype.zHa = function() { - var a, b; - a = this.ka; - b = 0; - this.kb.forEach(function(c) { - c = a.Se[c.O].NXa() || 0; - c > b && (b = c); - }.bind(this)); return b; }; - h.prototype.hYa = function(a) { - return this.kb[a].Ia.d5a; - }; - h.prototype.tOa = function(a) { - var b, c; - b = this.zHa(); - b = this.wda(a, b); - b = a.nN(b); - c = this.fa; - c = this.wda(a, this.qm || c); - a = a.Nq(c); - return Math.max(b, a); - }; - h.prototype.wda = function(a, b) { - return a.Ll(b - 1, 0, !0) || 0; - }; - h.prototype.Jga = function() { - var a, b; - if (!("number" !== typeof this.qm || this.qm >= this.fa)) { - a = this.ka.bq(this.Da).Vb[p.G.VIDEO].T; - b = this.tOa(a); - b = a.Ll(b, 0, !0) || 0; - b = this.xda(b, a); - if ((a = b < a.length && a.nN(b)) && a < this.fa) return a; - } - }; - h.prototype.xda = function(a, b) { - var c, d; - c = this.na.Dbb; - d = a >= b.length - 1; - if (!c || d) return d ? b.length - 1 : a; - this.YHa(c, b.nN(a)) && (a = this.xda(a + 1, b)); - return a; + b.prototype.xab = function(a, b) { + this.log.trace("Key status", { + keyId: a, + status: b + }); }; - h.prototype.YHa = function(a, b) { - var d, g; - if (!a) return !1; - for (var c = 0; c < a.length; c++) { - d = a[c][0]; - g = a[c][1]; - if (b < d) break; - if (b >= d && b < g) return !0; - } - return !1; + b.prototype.Rxa = function(a) { + var b, c, d; + b = void 0 === b ? this.j : b; + c = this; + this.zu = a; + b.dg = a; + d = { + next: function(a) { + c.xab(h.nr(a.iJ), a.value); + }, + error: f.Qb, + complete: f.Qb + }; + b = { + next: function(a) { + c.md(a.code, a, a.Ef, c.j); + }, + error: f.Qb, + complete: f.Qb + }; + a.Rcb().subscribe(d); + (a = a.eI()) && a.subscribe(b); }; - h.prototype.bcb = function(a) { - this.Ub += a; + b.prototype.QC = function() { + this.zu && this.j.QC(this.B7a(this.zu.ud)); }; - h.prototype.Hsa = function(a) { + b.prototype.Pr = function(a) { var b, c; - this.jda = a; - b = this.ka; - c = b.bq(this.Da); - this.kb.forEach(function(d) { - var g, h, f; - g = d.O; - h = c.Vb[g].T.j_(a - 1, 0, !0); - d.TQ(h); - f = d.Ia.k_(h.X); - f && (f.Rma(), g === p.G.VIDEO && b.dW(this.na, h.fa)); - d.Ia.tLa(a); - b.Se[g].GOa(this.na.id, a); - d.Ka > h.fa && d.yo(h.fa); - }.bind(this)); - }; - h.prototype.lz = function(a, b) { - var c, d, g, h, f; - c = this.La.H; - z(this.na.id); - d = this.kb[p.G.AUDIO]; - g = this.kb[p.G.VIDEO]; - h = b ? d.Yj : d.Nd; - b = b ? g.Yj : g.Nd; - a || (a = c.Ph); - f = d.fg && 0 === d.Ia.yt && g.fg && 0 === g.Ia.yt; - if (!f && (h < c.Ph || b < a)) return !1; - if (g.Nn) return !0; - a = c.lm && (0 !== d.Ia.LR || 0 !== g.Ia.LR); - if (f && !a) - if (this.ka.oW && 0 === h && 0 === b) this.ba("playlist mode with nothing buffered, waiting for next manifest"); - else return !0; - return !1; - }; - h.prototype.Cja = function() { - var a, b; - a = !0; - b = {}; - this.kb.map(function(c) { - var d; - d = c.O === p.G.VIDEO ? "v" : "a"; - c = c.ls; - b[d + "buflmsec"] = c.hh; - b[d + "buflbytes"] = c.ga; - a = a && 0 < c.hh; - }); - return { - lO: a, - sE: b + a = void 0 === a ? this.j : a; + b = this; + c = { + next: function(a) { + b.RR(a); + }, + error: f.Qb, + complete: f.Qb }; - }; - h.prototype.mR = function(a, b) { - var c, d; - c = v.time.la(); - d = {}; - g.Kc(this.children, function(a) { - var b, g; - a.Ac ? (a.Ac.KTa = c - a.Ac.CO, a.Ac.CO = void 0, b = a.Ac.weight) : b = this.La.kka(this.na.id, a.na.id); - g = a.Cja(); - d[a.na.id] = { - weight: b, - sE: g.sE, - lO: g.lO + return this.eC().then(function(f) { + var d; + d = { + type: b.u4(), + gS: h.hk(a.qo[0]), + context: { + Ad: b.Ad, + Ha: b.jb.Ha + }, + Gg: { + R: a.R, + ka: b.j.ka, + df: a.df, + Bj: a.Bj, + profileId: a.profile.id + } }; - }.bind(this)); - b = { - requestTime: c, - HQ: a, - PSa: b, - gR: this.na.id, - Ac: d - }; - a || (a = this.ka.Hg(), b.Cra = a - this.X + this.Ub, b.TM = 0, b.startTime = c); - this.Fo.unshift(b); - return b; + f.oJ().subscribe(c); + f.$e(d, b.sva).Nr(function(a) { + b.Rxa(a); + b.j.fireEvent(y.X.IS); + return b.zu.q0(); + }).subscribe(b.qma); + })["catch"](function(a) { + b.md(a.code, a, a.Ef, b.j); + }); }; - h.prototype.sPa = function(a) { - var b, c; - b = this.Fo[0]; - b.HQ && (b.Cra = this.fa - this.X); - c = a.Cja(); - b.ssa = {}; - k(c.sE, b.ssa); - b.lO = a.ls.every(function(a) { - return 0 < a.hh; - }); - this.Fo = []; - return b; + b.prototype.gE = function() { + var a; + a = this; + if (this.rva) this.log.trace("Media Keys already set"); + else { + this.rva = !0; + try { + this.jb.Ha ? this.jb.Ha.setMediaKeys(this.j.dg.Ck).then(function() { + a.u3(); + })["catch"](function(b) { + b = a.fsa(b); + a.md(c.I.kY, b, b.ic, a.j); + }) : this.u3(); + } catch (D) { + this.md(c.I.kY, D, void 0, this.j); + } + } }; - h.prototype.Wm = function(a) { + b.prototype.gxa = function(a) { var b; - b = this.na; - a -= this.Ub; - if (b.X < a && a < b.fa) this.Fo.shift(); - else if (b = this.Fo[0]) b.Wm = !0; - }; - h.prototype.TOa = function() { - var a, b, c; - a = this.La; - b = this.ka; - c = !0; - g.Kc(this.na.Jk, function(d, g) { - d = b.Ca[a.xk[g].Da]; - d.Vb[0] && d.Vb[1] || (c = !1); - b.qO(d.M) || (c = !1); - }.bind(this)); - return c; + a = void 0 === a ? this.j : a; + b = this; + return this.zu ? this.eC().then(function(f) { + return new Promise(function(c) { + f.ipb(b.zu, b.sva).Nr(function(a) { + return a.JXa(); + }).Nr(function(f) { + b.log.trace("Fulfilled the last secure stop"); + b.config.Kh && a.fD.GU({ + success: !0, + persisted: !1 + }); + return f.close(); + }).subscribe({ + error: function(f) { + b.log.error("Unable to get/add secure stop data", f); + b.config.Kh && a.fD.GU({ + success: f.S, + ErrorCode: f.code, + ErrorSubCode: f.tc, + ErrorExternalCode: f.Ef, + ErrorEdgeCode: f.gC, + ErrorDetails: f.YB + }); + c(); + }, + complete: function() { + c(); + } + }); + }); + }) : Promise.resolve(); }; - h.prototype.reset = function(a, b, c) { - this.kb.forEach(function(d) { - (g.S(c) || d.O === c) && d.reset(a, b); - }); - this.Uf && this.Uf.reset(a, b, c); + b.prototype.$za = function(a, b) { + b = void 0 === b ? this.j : b; + return this.Pr(b); }; - l.prototype.constructor = l; - l.prototype.toString = function() { - return "segmentId: " + this.id + " manifestIndex: " + this.Da + " pts: " + this.X + "-" + this.fa + " defaultKey: " + this.WE + " dests: " + JSON.stringify(this.Jk) + " terminal: " + !!this.HB; + b.prototype.u4 = function() { + return this.config.oI ? v.zi.$s : v.zi.cm; }; - l.prototype.toJSON = function() { - return { - id: this.id, - manifestIndex: this.Da, - "startPts:": this.X, - endPts: this.fa, - defaultKey: this.WE, - "dests:": this.Jk, - terminal: !!this.HB, - beginJITPts: this.qm - }; + na.Object.defineProperties(b.prototype, { + Ky: { + configurable: !0, + enumerable: !0, + get: function() { + return "encrypted"; + } + } + }); + a = b; + g.__decorate([u.HS], a.prototype, "Ky", null); + a = g.__decorate([r.N()], a); + d.nJa = a; + }, function(g, d, a) { + var c, h, k, f, p, m, r, u; + + function b(a, b, f, c, d) { + this.eC = a; + this.kp = b; + this.hg = f; + this.config = c; + this.tva = d; + } + Object.defineProperty(d, "__esModule", { + value: !0 + }); + g = a(0); + c = a(1); + h = a(122); + k = a(525); + f = a(524); + p = a(64); + m = a(63); + r = a(20); + a = a(242); + b.prototype.create = function(a, b, c) { + return a ? new k.nJa(this.config().Ad, this.kp, this.hg, b, c, this.eC, this.tva()) : new f.kJa(this.config, this.hg, b, c); }; - f.P = b; - }, function(f) { - function c(a, b, c) { - var d, h; - d = []; - c.forEach(function(a) { - d.push(a[b].ga); - }); - c = d.filter(function(b) { - return b <= a; - }); - 0 < c.length ? (c = c[c.length - 1], h = d.lastIndexOf(c)) : (c = d[0], h = 0); - return { - CH: c, - se: h - }; - } - - function a(a, b, c) { - b = Math.min(a.length - 1, b); - b = Math.max(0, b); - return a[b] * c * 1 / 8; - } + u = b; + u = g.__decorate([c.N(), g.__param(0, c.l(h.wM)), g.__param(1, c.l(p.jn)), g.__param(2, c.l(m.Sj)), g.__param(3, c.l(r.je)), g.__param(4, c.l(a.TX))], u); + d.mJa = u; + }, function(g, d, a) { + var b, c; + Object.defineProperty(d, "__esModule", { + value: !0 + }); + g = a(1); + b = a(277); + c = a(526); + d.Yi = new g.Vb(function(a) { + a(b.yea).to(c.mJa); + }); + }, function(g, d, a) { + var c, h, k, f; - function b(a, b, c, g, f) { - var d, h, m, l, k, n; - d = a.BB; - h = c + d.X; - c = a.BI[d.yO]; - a = a.UNa; - m = { - ata: !0, - waitUntil: void 0 - }; - l = c.filter(function(a) { - return a && a.X <= h && a.X + a.duration > h; - })[0]; - k = f - 1 - (l.index - 1); - g = d.Ecb + g; - n = 0; - n = l.index < d.Ao ? n + c.slice(d.Rt, l.index).reduce(function(a, b) { - return a + b.ga; - }, 0) : n + d.Ecb; - n = n + b.slice(d.Ao, l.index).reduce(function(a, b) { - return a + b.CH; - }, 0); - g -= n; - if (k >= a.j2 || g >= a.p6) - for (m.ata = !1, l = l.index; l < f && (k >= a.j2 || g >= a.p6);) m.waitUntil = c[l].X + c[l].duration - d.X, g = l < d.Ao ? g - c[l].ga : g - b[l].CH, --k, l += 1; - return m; + function b(a) { + return h.Yd.call(this, a, "TransportConfigImpl") || this; } - f.P = { - fZa: function(d) { - var h, f, w, q, x, y, C, F, N, T, t, n, m, Z, O, B; - f = d.BB; - h = d.Uv; - for (var g = h.Ks, m = d.BI, p = !0, r, k = [], v, n = g = Math.min(h.iP, g); n >= f.Ao; n--) { - r = d.BI[0][n].X - d.BB.X; - n < g && (r = Math.min(k[n + 1].startTime, r)); - h = m[0][n].ga; - v = f.MX * m[0][n].duration * 1 / 8; - a: { - w = void 0;C = h + v;v = d.Eo;F = f.VP;N = v.trace;T = 1 * v.dz;q = r + F - v.timestamp;x = Math.floor(1 * q / T);y = 0 + (q - x * T) / T * a(N, x, T); - if (y >= C) w = q - 1 * C / y * (q - x * T); - else - for (q = x; y < C;) { - --q; - if (0 > q) { - w = -1; - break a; - } - x = a(N, q, T); - if (y + x >= C) { - w = 1 * (C - y) / x * T; - w = (q + 1) * T - w; - break; - } - y += x; - } - w = w + v.timestamp - F; - } - if (0 > w) { - p = !1; - break; - } - k[n] = { - startTime: w, - endTime: r, - rSa: r, - CH: h, - se: 0 - }; - } - h = { - gw: p, - eR: k, - Cw: 0 === k.length ? !0 : !1 - }; - if (!1 === h.gw || !0 === h.Cw) return h; - f = d.BB; - g = d.Uv; - m = g.Ks; - p = d.BI; - k = 0; - h = h.eR; - n = r = 0; - m = Math.min(g.iP, m); - for (v = f.Ao; v <= m; v++) { - t = h[v]; - y = t.se; - w = p[y][v].duration; - F = v === f.Ao ? 0 : h[v - 1].endTime; - y = b(d, h, F, k, v); - y.ata || (F = y.waitUntil); - N = t.rSa; - q = d.Eo; - x = f.VP; - t = 0; - T = q.trace; - y = 1 * q.dz; - C = Math.max(0, F + x - q.timestamp); - q = N + x - q.timestamp; - if (!(F >= N)) { - Z = Math.max(0, Math.floor(1 * C / y)); - O = 1 * q / y; - if (Z === Math.floor(O)) t += (q - C) / y * a(T, Z, y); - else - for (O = Math.ceil(O), x = Z, N = O, Z * y < C && (x += 1, t += (Z * y + y - C) / y * a(T, Z, y)), O * y > q && (--N, t += (q - N * y) / y * a(T, N, y)), C = x; C < N; C++) t += a(T, C, y); - } - T = t; - t = f.MX * w * 1 / 8; - y = c(T - t, v, p); - T = y.CH; - y = y.se; - x = d.Eo; - N = C = 0; - q = x.trace; - O = Math.max(0, F + f.VP - x.timestamp); - x = 1 * x.dz; - B = Z = Math.max(0, Math.floor(1 * O / x)); - for (B * x < O && (Z += 1, O = B * x + x - O, B = O / x * a(q, B, x), C = T - N < B ? C + (T - N) / B * 1 * O : C + O, N += B); N < T;) O = a(q, Z, x), C = T - N < O ? C + (T - N) / O * 1 * x : C + x, N += O, Z += 1; - h[v].startTime = F; - h[v].endTime = F + C; - h[v].CH = T; - h[v].se = y; - v <= g.Ks && (k += T, n += w, r += w * d.Nc[y].J); + Object.defineProperty(d, "__esModule", { + value: !0 + }); + g = a(0); + c = a(1); + h = a(38); + k = a(26); + a = a(35); + ia(b, h.Yd); + na.Object.defineProperties(b.prototype, { + jCa: { + configurable: !0, + enumerable: !0, + get: function() { + return !0; } - return { - gw: !0, - eR: h, - yTa: 0 < n ? 1 * r / n : 0, - BTa: n, - ATa: k, - xTa: t - }; } - }; - }, function(f, c, a) { - var d, h; + }); + f = b; + g.__decorate([a.config(a.le, "usesMsl")], f.prototype, "jCa", null); + f = g.__decorate([c.N(), g.__param(0, c.l(k.Fi))], f); + d.$Pa = f; + }, function(g, d, a) { + var c, h, k, f, p; - function b(a, b, c) { - this.ka = a; - this.V = a.V; - this.Yb = this.V.error.bind(this.V); - this.ba = this.V.warn.bind(this.V); - this.wc = this.V.trace.bind(this.V); - this.wa = this.V.log.bind(this.V); - this.H = c; - this.zL = []; - this.IL = void 0; - a = c.OF; - d.call(this, a.numB * a.bSizeMs, a.bSizeMs); + function b(a, b, f) { + this.receiver = b; + this.Ab = f; + this.log = a.lb("SslTransport"); } - a(13); - a(9); - d = a(101); - a(257); - h = a(467); - b.prototype = Object.create(d.prototype); - b.prototype.add = function(a, b, c) { - this.IL || (this.IL = b); - d.prototype.add.call(this, a, b, c); - }; - b.prototype.KWa = function() { - var a; - if (0 !== this.zL.length) { - a = []; - this.zL.forEach(function(b) { - b && b.Zy && a.push(b.aq()); + Object.defineProperty(d, "__esModule", { + value: !0 + }); + g = a(0); + c = a(1); + h = a(4); + k = a(7); + f = a(142); + a = a(81); + b.prototype.send = function(a, b) { + var f, c; + f = this; + c = { + url: a.url.href, + Ox: "nq-" + a.kk, + K8: JSON.stringify(b), + aQ: a.timeout.ma(h.Aa), + headers: a.headers, + withCredentials: !0 + }; + return new Promise(function(a, b) { + f.Ab.download(c, function(f) { + f.S ? a(f) : b(f); }); - return a; - } + }).then(function(a) { + return JSON.parse(a.content); + }).then(function(c) { + f.receiver.QD({ + command: a.kk, + inputs: b, + outputs: c + }); + return c; + })["catch"](function(c) { + var d; + if (!c.error) throw c.tc = c.T || c.tc, f.receiver.QD({ + command: a.kk, + inputs: b, + outputs: c + }), c; + d = c.error; + d.ij = c.ij; + f.log.error("Error sending SSL request", { + subCode: d.tc, + data: d.content, + message: d.message + }); + f.receiver.QD({ + command: a.kk, + inputs: b, + outputs: d + }); + throw d; + }); }; - b.prototype.ze = function() { - this.zL = []; + b.prototype.H1 = function() { + return {}; }; - b.prototype.WYa = function() { - var a, b, c; - a = this.get(this.H.OF.fillS); - if (0 === a[0] || null === a[0]) { - a.some(function(a, d) { - if (a) return b = a, c = d, !0; - }); - if (b) - for (var h = 0; h < c; h++) a[h] = b; - } - a = { - trace: a, - timestamp: this.IL, - dz: this.Mb + p = b; + p = g.__decorate([c.N(), g.__param(0, c.l(k.sb)), g.__param(1, c.l(f.fN)), g.__param(2, c.l(a.ct))], p); + d.mPa = p; + }, function(g, d, a) { + var c, h, k, f, p, m; + + function b(a, b, f) { + this.rf = b; + this.receiver = f; + this.log = a.lb("MslTransport"); + } + Object.defineProperty(d, "__esModule", { + value: !0 + }); + g = a(0); + c = a(1); + h = a(7); + k = a(101); + f = a(4); + a = a(142); + p = { + license: !0 + }; + b.prototype.send = function(a, b) { + var c, d; + c = this; + d = { + cs: Object.assign({ + Ab: a.Ab, + log: a.log, + profile: a.profile + }, a.QYa), + method: a.kk, + url: a.url.href, + body: JSON.stringify(b), + timeout: a.timeout.ma(f.Aa), + HL: a.profile.id, + Slb: !p[a.kk], + a8: !!p[a.kk], + V2: !0, + Av: a.M9, + headers: a.headers }; - d.prototype.reset.call(this); - this.IL = void 0; - return a; + return this.rf.send(d).then(function(f) { + c.receiver.QD({ + command: a.kk, + inputs: b, + outputs: f + }); + return f; + })["catch"](function(f) { + var d; + if (!f.error) throw f.tc = f.T || f.tc, c.receiver.QD({ + command: a.kk, + inputs: b, + outputs: f + }), f; + d = f.error; + d.ij = f.ij; + c.log.error("Error sending MSL request", { + mslCode: d.Ip, + subCode: d.tc, + data: d.data, + message: d.message + }); + c.receiver.QD({ + command: a.kk, + inputs: b, + outputs: d + }); + throw d; + }); }; - b.prototype.WZ = function(a) { - var b, c; - if (a && !a.Zy) { - c = a.Uv.Kla; - c && (a.f4 = this.sX(a), a.hQ = !1); - (b = this.WYa()) && b.trace && b.trace.length && b.trace.pop(); - a.Eo = b; - b.trace && 0 === b.trace.length || void 0 === b.timestamp || (b = this.pOa(a), a.qoa = b, c && b && (a.hQ = b.gw), a.Zy = !0, this.zL.push(a)); - } + b.prototype.H1 = function() { + return { + userTokens: this.rf.rf.getUserIdTokenKeys() + }; }; - b.prototype.pOa = function(a) { - return h.fZa(a); + m = b; + m = g.__decorate([c.N(), g.__param(0, c.l(h.sb)), g.__param(1, c.l(k.uw)), g.__param(2, c.l(a.fN))], m); + d.SKa = m; + }, function(g, d) { + Object.defineProperty(d, "__esModule", { + value: !0 + }); + d.uAb = function() {}; + d.Pha = "TransportConfigSymbol"; + }, function(g, d, a) { + var b, c, h, k, f; + Object.defineProperty(d, "__esModule", { + value: !0 + }); + g = a(1); + b = a(531); + c = a(298); + h = a(530); + k = a(529); + f = a(528); + d.crb = new g.Vb(function(a) { + a(b.Pha).to(f.$Pa).$(); + a(c.mfa).to(h.SKa); + a(c.tha).to(k.mPa); + a(c.Qha).ih(function(a) { + return function() { + return a.Xb.get(b.Pha).jCa ? a.Xb.get(c.mfa) : a.Xb.get(c.tha); + }; + }); + }); + }, function(g, d, a) { + var c, h, k, f, p; + + function b(a) { + return f.Nj.call(this, a, h.I.zLa, 2, k.Tj.Ywa, k.Wf.iw, k.Tj.Ywa) || this; + } + Object.defineProperty(d, "__esModule", { + value: !0 + }); + g = a(0); + c = a(1); + h = a(2); + k = a(40); + f = a(92); + a = a(46); + ia(b, f.Nj); + b.prototype.Cg = function(a, b, f, c) { + var d; + d = this; + return this.send(a, b, "/" + this.name, f, void 0, void 0, c).then(function(a) { + return a.result; + })["catch"](function(a) { + throw d.pp(a); + }); }; - b.prototype.sX = function(a) { - var b; - a = a.Uv; - b = ""; - 1E3 > a.AI && (b += a.gta); - 1E3 > a.ZW && (b = b + ("" !== b ? "," : "") + a.Rfa); - 1E3 <= a.AI && 1E3 <= a.ZW && (b = "media"); - return b; + b.prototype.op = function() { + return Promise.reject(Error("Links are unsupported with pair")); }; - f.P = b; - }, function(f, c, a) { - (function() { - var E9W, c, h, j5M; - E9W = 2; - while (E9W !== 14) { - j5M = "IT"; - j5M += "E"; - j5M += "_A"; - j5M += "SE"; - j5M += "JS"; - switch (E9W) { - case 7: - b.prototype.Oja = function() { - var H9W, a, b, c; - H9W = 2; - while (H9W !== 6) { - switch (H9W) { - case 1: - H9W = 2 > this.xo.length || this.zWa() > this.cOa ? 5 : 4; - break; - case 4: - a = this.Qja(); - b = 0; - c = !0; - Object.keys(a).forEach(function(d) { - var F9W, u5M; - F9W = 2; - while (F9W !== 1) { - u5M = "n"; - u5M += "u"; - u5M += "m"; - u5M += "b"; - u5M += "er"; - switch (F9W) { - case 2: - this.Kma.hasOwnProperty(d) && u5M == typeof a[d] ? b += a[d] * this.Kma[d] : c = !1; - F9W = 1; - break; - } - } - }, this); - H9W = 7; - break; - case 2: - H9W = 1; - break; - case 5: - return 0; - break; - case 7: - return 0 < b && b <= this.Q1a && c && 1 < a.n9a ? b : 0; - break; - } - } - }; - f.P = b; - E9W = 14; - break; - case 2: - c = a(9); - new c.Console(j5M); - h = a(179); - b.prototype.Un = function() { - var S9W, a; - S9W = 2; - while (S9W !== 4) { - switch (S9W) { - case 2: - a = c.time.now(); - return { - Eha: new Date(a).getHours(), - jZ: a - }; - break; - } - } - }; - b.prototype.zWa = function() { - var b9W, a, b; - b9W = 2; - while (b9W !== 7) { - switch (b9W) { - case 2: - b9W = 1 > this.xo.length ? 1 : 5; - break; - case 5: - a = 0, b = 0; - b9W = 4; - break; - case 1: - return 0; - break; - case 3: - a += this.xo[b].get().bnb.cga; - b9W = 9; - break; - case 9: - b++; - b9W = 4; - break; - case 8: - return a / this.xo.length; - break; - case 4: - b9W = b < this.xo.length ? 3 : 8; - break; - } - } - }; - b.prototype.Qja = function() { - var R9W, a, b, c, R5M, X5M, l5M, Q5M, A5M, N5M, D5M, E5M; - R9W = 2; - while (R9W !== 20) { - R5M = "n"; - R5M += "i"; - R5M += "q"; - R5M += "r"; - X5M = "f"; - X5M += "n"; - X5M += "s"; - l5M = "a"; - l5M += "v"; - l5M += "t"; - l5M += "p"; - Q5M = "f"; - Q5M += "n"; - Q5M += "s"; - A5M = "a"; - A5M += "vt"; - A5M += "p"; - N5M = "l"; - N5M += "n"; - N5M += "s"; - D5M = "a"; - D5M += "v"; - D5M += "t"; - D5M += "p"; - E5M = "e"; - E5M += "n"; - E5M += "s"; - switch (R9W) { - case 6: - c = this.Un(); - b.Eha = c.Eha; - b.jZ = c.jZ; - b.mtb = b.jZ - b.f6a; - R9W = 11; - break; - case 3: - c = this.xo.length; - b.n9a = c; - b.trb = this.xo[c - 1].get().Fob; - b.f6a = this.xo[c - 1].get().t; - R9W = 6; - break; - case 2: - a = new h(100); - b = {}; - [{ - RH: E5M, - yI: D5M - }, { - RH: N5M, - yI: A5M - }, { - RH: Q5M, - yI: l5M - }, { - RH: X5M, - yI: R5M - }].forEach(function(c) { - var a93 = v7AA; - var s9W, d, g, p9M, V9M, Z9M, b9M, n9M, k9M, c9M, F9M, m9M, J9M, e9M, G9M, T9M, U9M, q9M, I9M, t9M; - s9W = 2; - while (s9W !== 17) { - p9M = "s"; - p9M += "t"; - p9M += "d"; - V9M = "m"; - V9M += "e"; - V9M += "a"; - V9M += "n"; - Z9M = "p"; - Z9M += "7"; - Z9M += "5"; - b9M = "p"; - b9M += "5"; - b9M += "0"; - n9M = "p"; - n9M += "2"; - n9M += "5"; - k9M = "la"; - k9M += "s"; - k9M += "t"; - c9M = "s"; - c9M += "t"; - c9M += "d"; - F9M = "m"; - F9M += "e"; - F9M += "a"; - F9M += "n"; - m9M = "s"; - m9M += "t"; - m9M += "d"; - J9M = "m"; - J9M += "e"; - J9M += "an"; - e9M = "m"; - e9M += "e"; - e9M += "a"; - e9M += "n"; - G9M = "s"; - G9M += "t"; - G9M += "d"; - T9M = "p"; - T9M += "5"; - T9M += "0"; - U9M = "p"; - U9M += "2"; - U9M += "5"; - q9M = "p"; - q9M += "7"; - q9M += "5"; - I9M = "p"; - I9M += "5"; - I9M += "0"; - t9M = "n"; - t9M += "i"; - t9M += "q"; - t9M += "r"; - switch (s9W) { - case 5: - s9W = d < this.xo.length ? 4 : 8; - break; - case 1: - d = 0; - s9W = 5; - break; - case 4: - g = this.xo[d].get()[c.RH][c.yI]; - g && a.jX(Number(g)); - s9W = 9; - break; - case 10: - a93.r5M(0); - b[a93.s5M(prefix, t9M)] = 0 < b[prefix + I9M] ? (b[prefix + q9M] - b[prefix + U9M]) / b[prefix + T9M] : 0; - a93.r5M(0); - b[a93.g5M(prefix, "b")] = 0 < b[prefix + G9M] || 0 < b[prefix + e9M] ? (b[prefix + J9M] - b[prefix + m9M]) / (b[prefix + F9M] + b[prefix + c9M]) : 0; - a93.v5M(0); - b[a93.s5M(prefix, k9M)] = a.zl[a93.s5M(1, numSamples, a93.r5M(1))]; - s9W = 18; - break; - case 8: - numSamples = a.Zz(); - prefix = c.RH + "-" + c.yI + "-"; - a93.r5M(0); - b[a93.s5M(prefix, n9M)] = a.rs(25); - a93.r5M(0); - b[a93.s5M(prefix, b9M)] = a.rs(50); - a93.r5M(0); - b[a93.g5M(prefix, Z9M)] = a.rs(75); - a93.v5M(0); - b[a93.g5M(prefix, V9M)] = a.yga(); - a93.v5M(0); - b[a93.g5M(prefix, p9M)] = a.zOa(); - s9W = 10; - break; - case 9: - d++; - s9W = 5; - break; - case 2: - s9W = 1; - break; - case 18: - a.zl = []; - s9W = 17; - break; - } - } - }, this); - R9W = 3; - break; - case 11: - b.Zob = 1; - return b; - break; - } - } - }; - E9W = 7; - break; - } - } + p = b; + p = g.__decorate([c.N(), g.__param(0, c.l(a.Rj))], p); + d.jNa = p; + }, function(g, d, a) { + var c, h, k, f, p; - function b(a, b) { - var y9W; - y9W = 2; - while (y9W !== 8) { - switch (y9W) { - case 2: - this.config = a; - this.xo = b; - a = a.N0; - y9W = 4; - break; - case 4: - this.Kma = a.lrWeights; - this.cOa = a.bwThreshold; - this.Q1a = a.maxBwPrediction; - y9W = 8; - break; - } - } - } - }()); - }, function(f, c, a) { - var b, d; - b = a(169); - d = a(168); - f.P = function(a) { - var r; - for (var c = [], g = a.length, h = 0; h < g; h++) { - c[h] = [0, 0]; - for (var f = 0; f < g; f++) { - r = d.a_(h * f, g); - r = b.multiply([a[f], 0], r); - c[h] = b.add(c[h], r); - } - } - return c; + function b(a) { + return f.Nj.call(this, a, h.I.vDa, 2, k.Tj.bind, k.Wf.iw, k.Tj.bind) || this; + } + Object.defineProperty(d, "__esModule", { + value: !0 + }); + g = a(0); + c = a(1); + h = a(2); + k = a(40); + f = a(92); + a = a(46); + ia(b, f.Nj); + b.prototype.Cg = function(a, b, f, c) { + var d; + d = this; + return this.send(a, b, "/" + this.name, f, void 0, void 0, c).then(function(a) { + return a.result; + })["catch"](function(a) { + throw d.pp(a); + }); }; - }, function(f, c, a) { - var b; - b = a(170).f_; - f.P = { - $ka: function(a) { - for (var c = [], d = 0; d < a.length; d++) c[d] = [a[d][1], a[d][0]]; - a = b(c); - c = []; - for (d = 0; d < a.length; d++) c[d] = [a[d][1] / a.length, a[d][0] / a.length]; - return c; - } + b.prototype.op = function() { + return Promise.reject(Error("Links are unsupported with bind")); }; - }, function(f, c) { - var b; + p = b; + p = g.__decorate([c.N(), g.__param(0, c.l(a.Rj))], p); + d.ZMa = p; + }, function(g, d, a) { + var c, h, k, f, p, m, r, u, l; - function a(a) { - var b; - b = 32; - (a &= -a) && b--; - a & 65535 && (b -= 16); - a & 16711935 && (b -= 8); - a & 252645135 && (b -= 4); - a & 858993459 && (b -= 2); - a & 1431655765 && --b; - return b; + function b(a, b, f, c, d, g, k, m, h) { + this.platform = a; + this.mf = b; + this.Gr = f; + this.Ab = c; + this.Sm = d; + this.p4a = g; + this.fy = k; + this.Xrb = m; + this.rQ = h; } - "use restrict"; - c.Dya = 32; - c.Ofb = 2147483647; - c.Pfb = -2147483648; - c.sign = function(a) { - return (0 < a) - (0 > a); + Object.defineProperty(d, "__esModule", { + value: !0 + }); + g = a(0); + c = a(1); + h = a(66); + k = a(88); + f = a(73); + p = a(108); + m = a(299); + r = a(119); + u = a(81); + l = a(424); + a = a(69); + b = g.__decorate([c.N(), g.__param(0, c.l(h.pn)), g.__param(1, c.l(k.Ms)), g.__param(2, c.l(f.oq)), g.__param(3, c.l(u.ct)), g.__param(4, c.l(p.qA)), g.__param(5, c.l(m.dga)), g.__param(6, c.l(r.dA)), g.__param(7, c.l(l.Uha)), g.__param(8, c.l(a.XE))], b); + d.aNa = b; + }, function(g, d, a) { + var c, h, k, f, p, m; + + function b(a) { + return k.oj.call(this, a, h.I.TGa, f.Nh.bI, 3, m.Wf.et) || this; + } + Object.defineProperty(d, "__esModule", { + value: !0 + }); + g = a(0); + c = a(1); + h = a(2); + k = a(91); + f = a(62); + p = a(46); + m = a(40); + ia(b, k.oj); + b.prototype.PP = function(a) { + return Object.assign({}, k.oj.prototype.PP.call(this, a), { + action: a.action + }); + }; + a = b; + a = g.__decorate([c.N(), g.__param(0, c.l(p.Rj))], a); + d.hHa = a; + }, function(g, d, a) { + var c, h, k, f, p, m; + + function b(a) { + return k.oj.call(this, a, h.I.cha, f.Nh.splice, 1, m.Wf.et) || this; + } + Object.defineProperty(d, "__esModule", { + value: !0 + }); + g = a(0); + c = a(1); + h = a(2); + k = a(91); + f = a(62); + p = a(46); + m = a(40); + ia(b, k.oj); + a = b; + a = g.__decorate([c.N(), g.__param(0, c.l(p.Rj))], a); + d.lPa = a; + }, function(g, d, a) { + var c, h, k, f, p, m; + + function b(a) { + return k.oj.call(this, a, h.I.Tga, f.Nh.resume, 1, m.Wf.et) || this; + } + Object.defineProperty(d, "__esModule", { + value: !0 + }); + g = a(0); + c = a(1); + h = a(2); + k = a(91); + f = a(62); + p = a(46); + m = a(40); + ia(b, k.oj); + a = b; + a = g.__decorate([c.N(), g.__param(0, c.l(p.Rj))], a); + d.sOa = a; + }, function(g, d, a) { + var c, h, k, f, p, m; + + function b(a) { + return k.oj.call(this, a, h.I.Hfa, f.Nh.pause, 1, m.Wf.et) || this; + } + Object.defineProperty(d, "__esModule", { + value: !0 + }); + g = a(0); + c = a(1); + h = a(2); + k = a(91); + f = a(62); + p = a(46); + m = a(40); + ia(b, k.oj); + a = b; + a = g.__decorate([c.N(), g.__param(0, c.l(p.Rj))], a); + d.XMa = a; + }, function(g, d, a) { + var c, h, k, f, p, m; + + function b(a) { + return k.oj.call(this, a, h.I.LX, f.Nh.hJ, 1, m.Wf.et) || this; + } + Object.defineProperty(d, "__esModule", { + value: !0 + }); + g = a(0); + c = a(1); + h = a(2); + k = a(91); + f = a(62); + p = a(46); + m = a(40); + ia(b, k.oj); + a = b; + a = g.__decorate([c.N(), g.__param(0, c.l(p.Rj))], a); + d.dJa = a; + }, function(g, d, a) { + var c, h, k, f, p, m; + + function b(a) { + return k.oj.call(this, a, h.I.hha, f.Nh.stop, 3, m.Wf.VX) || this; + } + Object.defineProperty(d, "__esModule", { + value: !0 + }); + g = a(0); + c = a(1); + h = a(2); + k = a(91); + f = a(62); + p = a(46); + m = a(40); + ia(b, k.oj); + a = b; + a = g.__decorate([c.N(), g.__param(0, c.l(p.Rj))], a); + d.rPa = a; + }, function(g, d, a) { + var c, h, k, f, p, m; + + function b(a) { + return k.oj.call(this, a, h.I.dha, f.Nh.start, 3, m.Wf.iw) || this; + } + Object.defineProperty(d, "__esModule", { + value: !0 + }); + g = a(0); + c = a(1); + h = a(2); + k = a(91); + f = a(62); + p = a(46); + m = a(40); + ia(b, k.oj); + a = b; + a = g.__decorate([c.N(), g.__param(0, c.l(p.Rj))], a); + d.oPa = a; + }, function(g, d, a) { + var c, h, k; + + function b(a, b) { + this.mc = a; + this.ml = b; + } + Object.defineProperty(d, "__esModule", { + value: !0 + }); + g = a(0); + c = a(1); + h = a(22); + a = a(44); + b.prototype.Qqb = function(a) { + var b, f; + b = this; + f = a.map(function(a) { + return a.links.releaseLicense.href; + }).map(function(a) { + return b.mc.KT(a.substring(a.indexOf("?") + 1)); + }); + return { + S: !0, + Yb: a.map(function(a, b) { + return { + id: a.sessionId, + Zu: f[b].drmlicensecontextid, + dD: f[b].licenseid + }; + }), + pJ: a.map(function(a) { + return { + data: b.ml.decode(a.licenseResponseBase64), + sessionId: a.sessionId + }; + }) + }; + }; + b.prototype.Tqb = function(a) { + return { + S: !0, + response: { + data: a.reduce(function(a, b) { + var f; + f = b.secureStopResponseBase64; + (b = b.sessionId) && f && (a[b] = f); + return a; + }, {}) + } + }; }; - c.abs = function(a) { + k = b; + k = g.__decorate([c.N(), g.__param(0, c.l(h.Je)), g.__param(1, c.l(a.nj))], k); + d.fNa = k; + }, function(g, d, a) { + var c, h, k; + + function b(a) { + this.Ma = a; + } + Object.defineProperty(d, "__esModule", { + value: !0 + }); + g = a(0); + c = a(1); + h = a(37); + k = a(4); + b.prototype.Pqb = function(a) { var b; - b = a >> 31; - return (a ^ b) - b; + b = this.Ma.eg.ma(k.em); + return { + inputs: a.ip.map(function(f) { + return { + sessionId: f.sessionId, + clientTime: b, + challengeBase64: f.dataBase64, + xid: a.ka.toString(), + mdxControllerEsn: a.CJ + }; + }), + hua: "standard" === a.bh.toLowerCase() ? "license" : "ldl" + }; }; - c.min = function(a, b) { - return b ^ (a ^ b) & -(a < b); + b.prototype.Sqb = function(a) { + var b, f, c, d; + b = this; + f = a.Umb || {}; + c = []; + d = a.Yb.map(function(d) { + var g; + c.push(d.id); + g = f[d.id]; + delete f[d.id]; + return { + url: b.bna(d.Zu, d.dD), + echo: "sessionId", + params: { + sessionId: d.id, + secureStop: g, + secureStopId: g ? d.dD : void 0, + xid: a.ka.toString() + } + }; + }); + Object.keys(f).forEach(function(c) { + d.push({ + url: b.bna(a.Yb[0].Zu), + echo: "sessionId", + params: { + sessionId: c, + secureStop: f[c], + secureStopId: void 0, + xid: a.ka.toString() + } + }); + }); + return d; }; - c.max = function(a, b) { - return a ^ (a ^ b) & -(a < b); + b.prototype.bna = function(a, b) { + return "/releaseLicense?drmLicenseContextId=" + a + (b ? "&licenseId=" + b : ""); }; - c.mpb = function(a) { - return !(a & a - 1) && !!a; + a = b; + a = g.__decorate([c.N(), g.__param(0, c.l(h.yi))], a); + d.eNa = a; + }, function(g, d, a) { + var c, h, k, f, p; + + function b(a) { + return f.Nj.call(this, a, h.I.xOa, 3, k.Tj.$e, k.Wf.VX, k.Tj.$e) || this; + } + Object.defineProperty(d, "__esModule", { + value: !0 + }); + g = a(0); + c = a(1); + h = a(2); + k = a(40); + f = a(92); + a = a(46); + ia(b, f.Nj); + b.prototype.Cg = function(a, b, f) { + var c; + c = this; + return this.send(a, b, "/bundle", f).then(function(a) { + a = a.result; + c.sna(a); + return a; + })["catch"](function(a) { + throw c.pp(a); + }); }; - c.log2 = function(a) { - var b, c; - b = (65535 < a) << 4; - a >>>= b; - c = (255 < a) << 3; - a >>>= c; - b |= c; - c = (15 < a) << 2; - a >>>= c; - b |= c; - c = (3 < a) << 1; - return b | c | a >>> c >> 1; + b.prototype.op = function() { + return Promise.reject(Error("Links are unsupported with release")); }; - c.log10 = function(a) { - return 1E9 <= a ? 9 : 1E8 <= a ? 8 : 1E7 <= a ? 7 : 1E6 <= a ? 6 : 1E5 <= a ? 5 : 1E4 <= a ? 4 : 1E3 <= a ? 3 : 100 <= a ? 2 : 10 <= a ? 1 : 0; + p = b; + p = g.__decorate([c.N(), g.__param(0, c.l(a.Rj))], p); + d.qNa = p; + }, function(g, d, a) { + var c, h, k, f, p; + + function b(a) { + return f.Nj.call(this, a, h.I.jw, 3, k.Tj.$e, k.Wf.iw, k.Tj.$e) || this; + } + Object.defineProperty(d, "__esModule", { + value: !0 + }); + g = a(0); + c = a(1); + h = a(2); + k = a(40); + f = a(92); + a = a(46); + ia(b, f.Nj); + b.prototype.Cg = function() { + return Promise.reject(Error("Links are required with acquire command")); }; - c.grb = function(a) { - a -= a >>> 1 & 1431655765; - a = (a & 858993459) + (a >>> 2 & 858993459); - return 16843009 * (a + (a >>> 4) & 252645135) >>> 24; + b.prototype.op = function(a, b, f, c) { + var d; + d = this; + f = f.v4(c.hua).href; + return this.send(a, b, f, c.inputs, "sessionId", "license" === c.hua ? k.Wf.iw : k.Wf.et).then(function(a) { + a = a.result; + d.sna(a); + d.i_a(a); + return a; + })["catch"](function(a) { + throw d.pp(a); + }); }; - c.SPa = a; - c.sqb = function(a) { - a += 0 === a; - --a; - a |= a >>> 1; - a |= a >>> 2; - a |= a >>> 4; - a |= a >>> 8; - return (a | a >>> 16) + 1; + b.prototype.i_a = function(a) { + a.forEach(function(a) { + if (!a.licenseResponseBase64) throw Error("Received empty licenseResponseBase64"); + }); }; - c.urb = function(a) { - a |= a >>> 1; - a |= a >>> 2; - a |= a >>> 4; - a |= a >>> 8; - a |= a >>> 16; - return a - (a >>> 1); + p = b; + p = g.__decorate([c.N(), g.__param(0, c.l(a.Rj))], p); + d.YMa = p; + }, function(g, d, a) { + var c, h, k, f, p, m, r, u, l, v, y, n, D, z, q; + + function b(a, b, f, c, d, g) { + a = v.Nj.call(this, a, h.I.MANIFEST, 3, k.Tj.Fa, k.Wf.iw, k.Tj.Fa) || this; + a.config = b; + a.rQ = f; + a.XZa = c; + a.jjb = d; + a.Rm = g; + return a; + } + Object.defineProperty(d, "__esModule", { + value: !0 + }); + g = a(0); + c = a(1); + h = a(2); + k = a(40); + f = a(422); + p = a(3); + m = a(20); + r = a(61); + u = a(123); + l = a(69); + a(148); + v = a(92); + y = a(46); + n = a(212); + D = a(394); + z = a(180); + a = a(121); + ia(b, v.Nj); + b.prototype.Cg = function(a, b, f) { + var c; + c = this; + return this.F9a(f).then(function(d) { + return c.send(a, b, "/" + c.name, d, void 0, c.m$a(f.mI)); + }).then(function(a) { + return a.result; + })["catch"](function(a) { + throw c.pp(a); + }); }; - c.Nqb = function(a) { - a ^= a >>> 16; - a ^= a >>> 8; - return 27030 >>> ((a ^ a >>> 4) & 15) & 1; + b.prototype.op = function(a, b, f, c) { + return this.Cg(a, b, c).then(function(a) { + f.vP(a.links); + a.sy = f; + return a; + }); }; - b = Array(256); - (function(a) { - for (var b = 0; 256 > b; ++b) { - for (var c = b, d = b, f = 7, c = c >>> 1; c; c >>>= 1) d <<= 1, d |= c & 1, --f; - a[b] = d << f & 255; - } - }(b)); - c.reverse = function(a) { - return b[a & 255] << 24 | b[a >>> 8 & 255] << 16 | b[a >>> 16 & 255] << 8 | b[a >>> 24 & 255]; - }; - c.$ob = function(a, b) { - a &= 65535; - a = (a | a << 8) & 16711935; - a = (a | a << 4) & 252645135; - a = (a | a << 2) & 858993459; - b &= 65535; - b = (b | b << 8) & 16711935; - b = (b | b << 4) & 252645135; - b = (b | b << 2) & 858993459; - return (a | a << 1) & 1431655765 | ((b | b << 1) & 1431655765) << 1; + b.prototype.F9a = function(a) { + var b, c, d, g, k, m, h, u; + b = this; + c = a.ri || {}; + d = {}; + g = a.Ie; + d[g] = { + unletterboxed: this.a6(c.preferUnletterboxed) + }; + k = this.config().bsb ? 30 : 25; + m = p.zC(); + h = m.N$a().concat(m.M$a()).concat(this.config().Ds).concat(["BIF240", "BIF320"]).filter(Boolean); + u = this.config().Do ? this.Rm.W8a() : Promise.resolve(f.$ea.rp()); + return Promise.all([m.FC(), m.CI(), this.s8a(a.ka), u]).then(function(f) { + var m, p, u, l; + m = za(f); + f = m.next().value; + p = m.next().value; + u = m.next().value; + m = m.next().value; + l = p && void 0 !== p.SUPPORTS_SECURE_STOP ? !!p.SUPPORTS_SECURE_STOP : void 0; + p = p ? p.DEVICE_SECURITY_LEVEL : void 0; + var profiles = [ + "playready-h264mpl30-dash", + "playready-h264mpl31-dash", + "playready-h264mpl40-dash", + "playready-h264hpl30-dash", + "playready-h264hpl31-dash", + "playready-h264hpl40-dash", + "vp9-profile0-L30-dash-cenc", + "vp9-profile0-L31-dash-cenc", + "vp9-profile0-L40-dash-cenc", + "heaac-2-dash", + "simplesdh", + "nflx-cmisc", + "BIF240", + "BIF320" + ]; + + if(window.use6Channels) { + profiles.push("heaac-5.1-dash"); + } + + return { + type: "standard", + viewableId: g, + profiles: profiles, + flavor: r.fd.l0a(a.mI), + drmType: m, + drmVersion: k, + usePsshBox: !0, + isBranching: a.Xr, + useHttpsStreams: !0, + supportsUnequalizedDownloadables: b.config().Spb, + imageSubtitleHeight: n.KY.C4(), + uiVersion: b.context.Sm.Kz, + uiPlatform: b.context.Sm.BV, + clientVersion: b.context.platform.version, + supportsPreReleasePin: b.config().Bg.Mpb, + supportsWatermark: b.config().Bg.Npb, + showAllSubDubTracks: b.config().Bg.zob || b.a6(c.showAllSubDubTracks), + packageId: a.dj ? Number(a.dj) : void 0, + deviceSupportsSecureStop: l, + deviceSecurityLevel: p, + videoOutputInfo: f, + titleSpecificData: d, + preferAssistiveAudio: b.a6(c.assistiveAudioPreferred), + preferredTextLocale: c.preferredTextLocale, + preferredAudioLocale: c.preferredAudioLocale, + challenge: u, + isNonMember: b.context.Sm.Xi, + pin: a.Xy + }; + }); }; - c.Hmb = function(a, b) { - a = a >>> b & 1431655765; - a = (a | a >>> 1) & 858993459; - a = (a | a >>> 2) & 252645135; - a = (a | a >>> 4) & 16711935; - return ((a | a >>> 16) & 65535) << 16 >> 16; + b.prototype.m$a = function(a) { + switch (a) { + case r.nn.cm: + case r.nn.cGa: + return k.Wf.iw; + case r.nn.Qga: + case r.nn.pha: + return k.Wf.VX; + case r.nn.Xfa: + return k.Wf.et; + } }; - c.apb = function(a, b, c) { - a &= 1023; - a = (a | a << 16) & 4278190335; - a = (a | a << 8) & 251719695; - a = (a | a << 4) & 3272356035; - b &= 1023; - b = (b | b << 16) & 4278190335; - b = (b | b << 8) & 251719695; - b = (b | b << 4) & 3272356035; - c &= 1023; - c = (c | c << 16) & 4278190335; - c = (c | c << 8) & 251719695; - c = (c | c << 4) & 3272356035; - return (a | a << 2) & 1227133513 | ((b | b << 2) & 1227133513) << 1 | ((c | c << 2) & 1227133513) << 2; + b.prototype.a6 = function(a) { + return u.tq.uh(a) ? "true" === a.toLowerCase() : !!a; }; - c.Imb = function(a, b) { - a = a >>> b & 1227133513; - a = (a | a >>> 2) & 3272356035; - a = (a | a >>> 4) & 251719695; - a = (a | a >>> 8) & 4278190335; - return ((a | a >>> 16) & 1023) << 22 >> 22; + b.prototype.s8a = function(a) { + var b; + b = this; + return this.XZa.era().then(function(f) { + var c; + c = a && b.jjb.$9a(a); + c && c.ll("cad"); + return f; + }); }; - c.rqb = function(b) { + q = b; + q = g.__decorate([c.N(), g.__param(0, c.l(y.Rj)), g.__param(1, c.l(m.je)), g.__param(2, c.l(l.XE)), g.__param(3, c.l(D.Xba)), g.__param(4, c.l(z.tY)), g.__param(5, c.l(a.qw))], q); + d.iNa = q; + }, function(g, d, a) { + var c, h, k, f, p; + + function b(a) { + return f.Nj.call(this, a, h.I.iJa, 1, k.Tj.xua, k.Wf.et, k.Tj.xua) || this; + } + Object.defineProperty(d, "__esModule", { + value: !0 + }); + g = a(0); + c = a(1); + h = a(2); + k = a(40); + f = a(92); + a = a(46); + ia(b, f.Nj); + b.prototype.Cg = function(a, b, f) { var c; - c = b | b - 1; - return c + 1 | (~c & -~c) - 1 >>> a(b) + 1; + c = this; + return this.send(a, b, "/" + this.name, f).then(function(a) { + return a.result; + })["catch"](function(a) { + throw c.pp(a); + }); }; - }, function(f, c, a) { - f.P = { - f_: a(170).f_, - $ka: a(471).$ka, - Tia: a(170).Tia, - xI: a(168), - mTa: a(470) + b.prototype.op = function() { + return Promise.reject(Error("Links are unsupported with logblobs")); }; - }, function(f, c, a) { - (function() { - var x9M, c, h, l; - - function b(a) { - var i9M; - i9M = 2; - while (i9M !== 1) { - switch (i9M) { - case 2: - this.console = a; - i9M = 1; - break; - case 4: - this.console = a; - i9M = 8; - break; - i9M = 1; - break; + p = b; + p = g.__decorate([c.N(), g.__param(0, c.l(a.Rj))], p); + d.hNa = p; + }, function(g, d, a) { + var b, c, h, k, f, p, m, r, u, l, v, y, n, D, z, q, P, F, la, N, O, t, U, ga, S, T, H, A; + Object.defineProperty(d, "__esModule", { + value: !0 + }); + g = a(1); + b = a(331); + c = a(548); + h = a(317); + k = a(547); + f = a(316); + p = a(546); + m = a(314); + r = a(545); + u = a(313); + l = a(544); + v = a(312); + y = a(543); + n = a(62); + D = a(542); + z = a(541); + q = a(45); + P = a(2); + F = a(540); + la = a(539); + N = a(538); + O = a(537); + t = a(536); + U = a(46); + ga = a(535); + S = a(286); + T = a(534); + H = a(285); + A = a(533); + d.L_a = new g.Vb(function(a) { + a(U.Rj).to(ga.aNa); + a(b.iga).to(c.hNa); + a(S.bga).to(T.ZMa); + a(H.kga).to(A.jNa); + a(h.jga).to(k.iNa); + a(f.aga).to(p.YMa); + a(m.pga).to(r.qNa); + a(u.fga).to(l.eNa); + a(v.gga).to(y.fNa); + a(n.uha).to(D.oPa); + a(n.vha).to(z.rPa); + a(n.sea).to(F.dJa); + a(n.Zfa).to(la.XMa); + a(n.Zga).to(N.sOa); + a(n.sha).to(O.lPa); + a(n.dda).to(t.hHa); + a(n.OW).ih(function(a) { + return function(b) { + switch (b) { + case n.Nh.start: + return a.Xb.get(n.uha); + case n.Nh.stop: + return a.Xb.get(n.vha); + case n.Nh.hJ: + return a.Xb.get(n.sea); + case n.Nh.pause: + return a.Xb.get(n.Zfa); + case n.Nh.resume: + return a.Xb.get(n.Zga); + case n.Nh.splice: + return a.Xb.get(n.sha); + case n.Nh.bI: + return a.Xb.get(n.dda); } + throw new q.Ub(P.I.FLa, void 0, void 0, void 0, void 0, "The event key was invalid - " + b); + }; + }); + }); + }, function(g, d, a) { + var c, h; + + function b(a, b, d, g, h, u, l, v) { + this.index = a; + this.na = b; + this.R = d; + this.uc = g; + this.Ta = h; + this.ka = u; + this.Tm = l; + this.Ic = new c.jd(null); + this.Te = new c.jd(null); + this.kc = new c.jd(null); + this.Pi = new c.jd(null); + this.$p = new c.jd(void 0); + this.ie = new c.jd(null); + this.Ri = new c.jd(null); + this.ku = this.Cx = "notcached"; + v && (this.ie = v.ie, this.Ri = v.Ri, this.profile = v.profile); + } + Object.defineProperty(d, "__esModule", { + value: !0 + }); + c = a(175); + h = a(4); + na.Object.defineProperties(b.prototype, { + Bj: { + configurable: !0, + enumerable: !0, + get: function() { + return this.Ob && this.Ob.Bj; } - } - x9M = 2; - while (x9M !== 14) { - switch (x9M) { - case 2: - c = a(473).mTa; - h = a(35).MYa; - l = a(35).GYa; - b.prototype.nOa = function(a, b, c) { - var a9M, d; - a9M = 2; - while (a9M !== 3) { - switch (a9M) { - case 5: - a9M = 0 !== d.length ? 4 : 3; - break; - case 4: - return a = h(d) / d.length, d = l(d), (d - a) / (d + a + c); - break; - case 2: - d = function(a) { - var y9M, b; - y9M = 2; - while (y9M !== 9) { - switch (y9M) { - case 2: - b = []; - a.reduce(function(a, c) { - var P9M; - P9M = 2; - while (P9M !== 4) { - switch (P9M) { - case 2: - a.push(c); - c && (b.push(a.length), a = []); - return a; - break; - } - } - }, []); - b.shift(); - return b; - break; - } - } - }(a.map(function(a) { - var L9M; - L9M = 2; - while (L9M !== 1) { - switch (L9M) { - case 2: - return a >= b ? 1 : 0; - break; - case 4: - return a < b ? 2 : 6; - break; - L9M = 1; - break; - } - } - })); - a9M = 5; - break; - } - } - }; - b.prototype.z6a = function(a, b, d, f) { - var C9M, m, l, p, g; - C9M = 2; - while (C9M !== 13) { - switch (C9M) { - case 9: - C9M = p < g.length ? 8 : 6; - break; - case 3: - m = 0, l = 0, p = 0; - C9M = 9; - break; - case 8: - a[m] = h(g.slice(p, p + b)), l += a[m], m += 1; - C9M = 7; - break; - case 7: - p += b; - C9M = 9; - break; - case 6: - a = a.splice(0, a.length - 1).map(function(a) { - var J93 = v7AA; - var o9M; - o9M = 2; - while (o9M !== 1) { - switch (o9M) { - case 4: - J93.R5B(0); - return J93.U5B(d, l, a); - break; - o9M = 1; - break; - case 2: - J93.R5B(1); - return J93.U5B(a, d, l); - break; - } - } - }); - return a.splice(0, f); - break; - case 2: - g = c(a); - g = g.map(function(a) { - var Y9M, O9M; - Y9M = 2; - while (Y9M !== 1) { - switch (Y9M) { - case 2: - v7AA.O5B(2); - O9M = v7AA.h5B(19, 18); - return (Math.pow(a[0], 2) + Math.pow(a[O9M], 2)) / g.length; - break; - } - } - }); - a = []; - C9M = 3; - break; - } - } - }; - x9M = 8; - break; - case 8: - b.prototype.qOa = function(a, b, c, d, h, f, l) { - var W9M; - W9M = 2; - while (W9M !== 7) { - switch (W9M) { - case 1: - W9M = void 0 !== b && (a = this.z6a(a, c, f, d), a = a.map(function(a) { - var z9M; - z9M = 2; - while (z9M !== 5) { - switch (z9M) { - case 2: - a += l; - return Math.log(a); - break; - } - } - }), c = [1].concat(a).concat(b), c.length === h.length) ? 5 : 7; - break; - case 2: - b = this.nOa(a, b, l); - W9M = 1; - break; - case 5: - f = d = 0; - W9M = 4; - break; - case 3: - d += c[f] * h[f]; - W9M = 9; - break; - case 4: - W9M = f < c.length ? 3 : 8; - break; - case 8: - return { - p: Math.exp(d) / (1 + Math.exp(d)), - Cp: b, - z: a - }; - break; - case 9: - f++; - W9M = 4; - break; - } - } - }; - b.prototype.I3 = function(a, b, c, d, h, f, l, k) { - var H9M; - H9M = 2; - while (H9M !== 5) { - switch (H9M) { - case 2: - b = (a = this.qOa(a, b, c, d, h, l, k)) ? a.p : void 0; - return { - p: b ? b : -1, - Cp: a ? a.Cp : -1, - r: b ? b <= f ? 1 : 0 : -1, - z: a ? a.z : void 0 - }; - break; - } - } - }; - f.P = { - IDa: b - }; - x9M = 14; - break; + }, + xm: { + configurable: !0, + enumerable: !0, + get: function() { + return this.Ob && this.Ob.xm; } - } - }()); - }, function(f, c, a) { - (function() { - var w5B, c, h, l, E4Q; - w5B = 2; - while (w5B !== 11) { - E4Q = "PSD"; - E4Q += "_A"; - E4Q += "SE"; - E4Q += "J"; - E4Q += "S"; - switch (w5B) { - case 2: - c = new(a(9)).Console(E4Q); - h = a(101); - w5B = 4; - break; - case 14: - b.prototype.reset = function() { - var q5B; - q5B = 2; - while (q5B !== 1) { - switch (q5B) { - case 4: - h.prototype.reset.call(this); - q5B = 3; - break; - q5B = 1; - break; - case 2: - h.prototype.reset.call(this); - q5B = 1; - break; - } - } - }; - b.prototype.toString = function() { - var V5B, v4Q; - V5B = 2; - while (V5B !== 1) { - v4Q = "p"; - v4Q += "s"; - v4Q += "d"; - v4Q += "("; - switch (V5B) { - case 4: - return ")" / this.Mb - ")"; - break; - V5B = 1; - break; - case 2: - return v4Q + this.Mb + ")"; - break; - } - } - }; - f.P = b; - w5B = 11; - break; - case 8: - b.prototype.g0 = function() { - var o5B; - o5B = 2; - while (o5B !== 1) { - switch (o5B) { - case 2: - return this.get(this.config.Vf.fillS, this.config.Vf.fillHl); - break; - } - } - }; - b.prototype.pYa = function() { - var i5B, a; - i5B = 2; - while (i5B !== 9) { - switch (i5B) { - case 5: - this.config.cF && a.splice(a.length - this.config.cF); - i5B = 4; - break; - case 2: - a = this.g0(); - i5B = 5; - break; - case 3: - return l.I3(a, this.SNa, this.XVa, this.K3a, this.beta, this.Zra, this.hbb, this.ibb); - break; - case 4: - i5B = a.length === this.config.Vf.numB ? 3 : 9; - break; - } - } - }; - b.prototype.stop = function(a) { - var E5B; - E5B = 2; - while (E5B !== 1) { - switch (E5B) { - case 2: - h.prototype.stop.call(this, a); - E5B = 1; - break; - } - } - }; - w5B = 14; - break; - case 4: - l = new(a(474)).IDa(c); - b.prototype = Object.create(h.prototype); - b.prototype.shift = function() { - var G5B; - G5B = 2; - while (G5B !== 1) { - switch (G5B) { - case 2: - h.prototype.shift.call(this); - G5B = 1; - break; - case 4: - h.prototype.shift.call(this); - G5B = 0; - break; - G5B = 1; - break; - } - } - }; - w5B = 8; - break; + }, + hq: { + configurable: !0, + enumerable: !0, + get: function() { + return this.Ob && this.Ob.hq; + } + }, + Is: { + configurable: !0, + enumerable: !0, + get: function() { + return this.Ob && this.Ob.Is; + } + }, + mj: { + configurable: !0, + enumerable: !0, + get: function() { + return this.Ob && this.Ob.mj; + } + }, + df: { + configurable: !0, + enumerable: !0, + get: function() { + return this.Ob && this.Ob.df; + } + }, + Vu: { + configurable: !0, + enumerable: !0, + get: function() { + return this.Ob && this.Ob.Vu; + } + }, + qo: { + configurable: !0, + enumerable: !0, + get: function() { + return this.Ob && this.Ob.qo; + } + }, + $h: { + configurable: !0, + enumerable: !0, + get: function() { + return this.Ob && this.Ob.$h; + } + }, + YT: { + configurable: !0, + enumerable: !0, + get: function() { + return this.Ob && this.Ob.YT; + } + }, + Hx: { + configurable: !0, + enumerable: !0, + get: function() { + return h.rb(this.Fa ? this.Fa.duration : 0); + } + }, + Qf: { + configurable: !0, + enumerable: !0, + get: function() { + return this.Ta.Qf || 0; } } + }); + d.HNa = b; + }, function(g, d, a) { + var c, h, k, f, p, m; - function b(a, b, c) { - var A5B; - A5B = 2; - while (A5B !== 14) { - switch (A5B) { - case 2: - v7AA.O4Q(0); - h.call(this, v7AA.y4Q(b, a), b); - this.config = c; - this.SNa = c.Vf.bthresh; - this.XVa = c.Vf.freqave; - A5B = 3; - break; - case 3: - this.K3a = c.Vf.numfreq; - this.beta = c.Vf.beta; - this.Zra = c.Vf.thresh; - this.hbb = c.Vf.tol; - this.ibb = c.Vf.tol2; - A5B = 14; - break; - } + function b(a) { + var b, d; + b = this; + this.j = a; + this.vhb = function() { + k.ee.removeListener(k.Y4, b.Hwa); + b.sf.removeChild(b.Mm.$x()); + }; + this.n8 = function(a) { + b.Mm.Mnb(a.newValue); + }; + this.Ohb = function(a) { + b.Mm.Onb(a.newValue ? a.newValue.fJ : void 0); + }; + this.Hwa = function() { + b.Mm.xK(); + }; + this.sf = a.sf; + this.Mm = new p.NPa(f.config.taa, a.kc.value ? a.kc.value.fJ : void 0); + d = a.LE; + h.sa(.1 < d.width / d.height); + this.Mm.Hnb(d.width / d.height); + this.sf.appendChild(this.Mm.$x()); + a.$p.addListener(this.n8); + a.kc.addListener(this.Ohb); + a.addEventListener(m.X.Ce, this.vhb, c.mA); + k.ee.addListener(k.Y4, this.Hwa); + } + Object.defineProperty(d, "__esModule", { + value: !0 + }); + c = a(5); + h = a(12); + k = a(55); + f = a(9); + p = a(270); + m = a(16); + b.prototype.A$ = function(a) { + this.Mm.A$(a); + }; + b.prototype.S4 = function() { + return this.Mm.S4(); + }; + b.prototype.y$ = function(a) { + this.Mm.y$(a); + }; + b.prototype.Q4 = function() { + return this.Mm.Q4(); + }; + b.prototype.z$ = function(a) { + this.Mm.z$(a); + }; + b.prototype.R4 = function() { + return this.Mm.R4(); + }; + d.PPa = b; + }, function(g, d, a) { + var c, h, k, f, p, m, r, u, l; + + function b(a, b, f, c, d) { + a = p.OF.call(this, b, a, a, "1", { + 0: f + }, void 0, "xx", c || a, m.Oo.pA, "primary", "custom", {}, !1, !1, !1) || this; + a.j = b; + a.url = f; + a.content = d; + return a; + } + Object.defineProperty(d, "__esModule", { + value: !0 + }); + g = a(41); + c = a(9); + h = a(55); + k = a(3); + f = a(17); + p = a(211); + m = a(156); + r = a(34); + u = a(106); + l = a(16); + g.yga(g.uga, function(a) { + var d; + + function b(b) { + var c; + if (b.ctrlKey && b.altKey && b.shiftKey && b.keyCode == u.Zs.BPa) { + c = f.createElement("INPUT", void 0, void 0, { + type: "file" + }); + c.addEventListener("change", function() { + var b, f, g; + b = c.files[0]; + if (b) { + f = b.name; + d.info("Loading file", { + FileName: f + }); + g = new FileReader(); + g.readAsText(b); + g.addEventListener("load", function() { + return a.dn.V_("nourl", f, g.result); + }); + } + }); + c.click(); } } - }()); - }, function(f, c, a) { - (function() { - var j4Q, c, h, l, g, m, p, r; - j4Q = 2; - - function b(a, b, c, d, g, h) { - var b4Q, f, k, u4Q, q4Q; - b4Q = 2; - while (b4Q !== 26) { - switch (b4Q) { - case 2: - this.H = d; - b4Q = 5; - break; - case 3: - this.V = a.V; - this.Yb = this.V.error.bind(this.V); - this.ba = this.V.warn.bind(this.V); - this.wc = this.V.trace.bind(this.V); - this.wa = this.V.log.bind(this.V); - this.iD = null; - b4Q = 13; - break; - case 5: - this.ka = a; - this.Hb = c; - b4Q = 3; - break; - case 10: - c = this.Ada(b); - c && (f = (c.kh - c.jh) / c.Tf); - this.LKa = [d.Zfa, d.kx]; - g = d.LG ? p.Pc.ln : p.Pc.gr; - b && b.$b >= g && b.ia && this.VHa(b, c, f); - b4Q = 16; - break; - case 13: - v7AA.q8P(0); - q4Q = v7AA.X8P(2, 499998, 500000); - this.Lda = 0 === Math.floor(q4Q * Math.random()) % d.aY; - this.pKa(); - this.MD = l(d, g); - b4Q = 10; - break; - case 16: - b4Q = a.Lk ? 15 : 27; - break; - case 27: - d.kF && h && 1 < h.length && (this.AO = new m(d, h), this.zO = this.AO.Oja()); - b4Q = 26; - break; - case 15: - try { - u4Q = 2; - while (u4Q !== 4) { - switch (u4Q) { - case 5: - this.cQ = k; - u4Q = 4; - break; - case 2: - k = new r(a, { - bufferSize: a.La.ol - }, d); - a.ej.KLa(k); - u4Q = 5; - break; - } - } - } catch (F) { - var J3P; - J3P = "Hi"; - J3P += "ndsight: Error whe"; - J3P += "n "; - J3P += "creating QoEEvaluator: "; - v7AA.q8P(1); - a.lo(v7AA.p8P(J3P, F)); + d = k.qf(a, "TimedTextCustomTrack"); + c.config.b2 && (d.info("Loading url", { + Url: c.config.b2 + }), a.dn.V_(c.config.b2, "custom")); + h.ee.addListener(h.dy, b); + a.addEventListener(l.X.Ce, function() { + h.ee.removeListener(h.dy, b); + }); + }); + ia(b, p.OF); + b.d2a = function(a, f, c, d) { + var g; + g = "custom" + b.Ubb++; + return new b(g, a, f, c, d); + }; + b.prototype.qpa = function() { + var a; + a = this; + return new Promise(function(b, f) { + var c; + if (a.content) b(a.content); + else if (a.url) { + c = { + responseType: r.Hsa, + url: a.url, + track: a, + Mb: null, + Ox: "tt-" + a.yj + }; + a.j.NI.download(c, function(d) { + d.S ? b(d.content) : (d.reason = "downloadfailed", d.url = c.url, d.track = a, f(d)); + }); + } + }); + }; + b.Ubb = 0; + d.MPa = b; + }, function(g, d) { + function a(a, b, c) { + this.start = a; + this.track = b; + this.xz = c; + this.end = void 0; + this.xz = Array.isArray(c) ? c : []; + } + + function b(a, b, c) { + this.log = a; + this.Oz = b; + this.La = c.La; + this.zg = c.zg || function() {}; + this.current = void 0; + this.g9 = []; + this.orphans = []; + } + + function c(a) { + var b; + b = !1; + a.reduce(function(a, f) { + a[f] = (a[f] | 0) + 1; + 1 < a[f] && (b = !0); + return a; + }, Object.create(null)); + return b; + } + + function h(a, b) { + return c(a) ? (b.error("duplicates in entries"), a.filter(function(a, b, f) { + return f.indexOf(a) === b; + })) : a; + } + + function k(a) { + return Object.keys(a).map(function(b) { + return a[b]; + }); + } + Object.defineProperty(d, "__esModule", { + value: !0 + }); + b.prototype.MWa = function(a, b) { + this.Yva(a, b, "activating"); + }; + b.prototype.P2a = function(a) { + this.W2(a, "de-activating"); + }; + b.prototype.Yva = function(b, c, d) { + var f; + f = []; + this.current && this.W2(b, "close current for new"); + this.orphans.length && (f.push(this.orphans), this.orphans = []); + this.current = new a(b, c, f); + this.Oz && this.log.trace("new range: " + d, this.La({}, this.current)); + }; + b.prototype.W2 = function(a, b) { + this.current && (this.current.end = a, this.g9.push(this.current), this.Oz && this.log.trace("end range: " + b, this.La({}, this.current || {})), this.current = void 0); + }; + b.prototype.VBa = function(a) { + this.current ? this.current.xz.push(a) : this.orphans.push(a); + }; + b.prototype.N4 = function(b) { + var f, c, d; + f = this; + c = f.g9.slice(0); + if (f.current && "undefined" != typeof b) { + d = new a(f.current.start, f.current.track, f.current.xz); + d.end = b; + c.push(d); + } + b = c.reduce(function(a, b) { + var c, d, g, k; + if (!b.track) return a; + c = b.track.pd; + d = b.track.Ou(b.start, b.end); + if (!d) return a; + g = h(b.xz, f.log); + a[c] ? (k = a[c], k.expected += d.length, k.missed += d.length - g.length) : (k = {}, k.dlid = c, k.bcp47 = b.track.yj, k.profile = b.track.profile, k.expected = d.length, k.missed = d.length - g.length, k.startPts = b.track.F$a(), a[c] = k); + return a; + }, {}); + b = k(b); + f.Oz && f.log.trace("subtitleqoe:", JSON.stringify(b, null, "\t")); + return b; + }; + b.prototype.r$a = function(b) { + var f, c, d, g, k; + f = this; + c = f.g9.slice(0); + d = 0; + g = 0; + f.current && "undefined" != typeof b && (k = new a(f.current.start, f.current.track, f.current.xz), k.end = b, c.push(k)); + c.forEach(function(a) { + var b, c; + if (a.track) { + if (a.end < a.start) { + f.zg("negative range", a); + a.Bv = 0; + return; + } + b = h(a.xz, f.log); + c = a.track.Ou(a.start, a.end); + a.Jm = c ? c.map(function(a) { + return a.id; + }) : []; + a.Bv = c ? 0 === c.length ? 100 : 100 * b.length / c.length : 0; + } else a.Bv = 100; + b = a.end - a.start; + d += b; + g += a.Bv * b; + }); + k = d ? Math.round(g / d) : 100; + f.log.trace("qoe score " + k + ", at pts: " + b); + f.Oz && (b = c.map(function(a) { + return { + start: a.start, + "end ": a.end, + duration: a.end - a.start, + score: Math.round(a.Bv), + lang: a.track ? a.track.yj : "none", + "actual ": a.xz.join(" "), + expected: (a.Jm || []).join(" ") + }; + }), f.log.trace("score for each range: ", JSON.stringify(b, function(a, b) { + return b; + }, " "))); + return k; + }; + d.APa = b; + }, function(g, d, a) { + var c, h, k, f, p, m, r, u, l, v, n, w, D, z, q; + + function b(a) { + var d; + d = this; + this.j = a; + this.baa = this.Tva = 0; + this.Ce = this.Hk = !1; + this.Av = 0; + this.zE = function() { + var a, b; + a = d.de(); + d.tU(); + d.Doa && (d.log.info("Deactivating", d.Doa), d.Jv.P2a(d.de())); + d.j.Pi.set(null); + d.Dz.Zza(d.entries = void 0); + d.xna(); + b = d.j.kc.value; + b && b.gJ() && !b.sS() && (b = null); + b && d.j.Pc.value !== f.Di && d.Jv.MWa(a, b); + b ? (d.log.info("Activating", b), d.j.lj.set(f.Os), d.Hk || d.j.he("tt_start"), b.getEntries().then(d.AC)["catch"](d.AC)) : d.j.lj.set(f.Vk); + d.Doa = b; + d.GE(); + }; + this.kaa = function() { + d.Hk && (d.Dz.start(), d.j.Pc.value != f.Mo && d.Dz.stop()); + }; + this.GE = function() { + var a; + d.j.state.value === f.qn && d.j.Pc.value !== f.Di && (d.entries ? a = d.Dz.V7a() : d.j.kc.value && (a = b.Zob[d.j.kc.value.Ee()])); + a && w.ab(a.startTime) && (d.Tva++, d.baa += d.Dz.Era() - a.startTime, d.Jma = Math.ceil(d.baa / (d.Tva + 0))); + d.j.$p.set(a); + }; + this.de = function() { + return d.j.z4(); + }; + this.Mhb = function(a) { + d.fireEvent(b.Bob, a); + a && a.id && d.Jv.VBa(a.id); + d.log.trace("showsubtitle", d.Zra(a)); + }; + this.Hhb = function(a) { + d.fireEvent(b.Jlb, a); + d.log.trace("removesubtitle", d.Zra(a)); + }; + this.o8 = function() { + d.log.warn("imagesubs buffer underflow", d.j.kc.value.If); + d.j.lj.set(f.Os); + }; + this.qhb = function() { + d.log.info("imagesubs buffering complete", d.j.kc.value.If); + d.j.lj.set(f.Vk); + }; + this.Bwa = function() { + d.Hk && d.Ye && d.Ye.Co(d.de()); + }; + this.Fwa = function(a) { + d.Ye && d.Ye.x$ && d.Ye.x$(a.mk, a.vT); + }; + this.Jwa = function(a) { + d.Ye && d.Ye.fq && d.Ye.fq(a.Ym, a.Rrb); + }; + this.Ehb = function() { + d.Hk = !0; + n.hb(function() { + d.Ye ? d.Ye.Co(d.de()) : d.kaa(); + d.GE(); + }); + }; + this.TJ = function() { + d.entries = void 0; + d.xna(); + d.Dz.stop(); + d.GE(); + d.Ce = !0; + d.tU(); + }; + this.n8 = function(a) { + (a = a.newValue) && w.ab(a.id) && d.Jv.VBa(a.id); + }; + this.Fhb = function(a) { + d.Jrb(a.newValue, a.oldValue); + d.kaa(); + }; + this.AC = function(a) { + var b, c; + if (!d.Ce) { + b = a.track; + c = !1; + if (b == d.j.kc.value) + if (b.Ap) + if (a.S) d.tU(), d.Ye = b.Ye, d.Kua("addListener"), d.log.info("Activated", b), d.j.Pi.set(b), d.Hk ? n.hb(function() { + d.Ye.Co(d.de()); + }) : d.Ye.pause(); + else { + if (c = !!(d.Av < k.config.fva)) d.$ya = setTimeout(d.aza.bind(d, b), k.config.kBa); + d.log.error("Failed to activate img subtitle", { + retry: c + }, a, b); } - b4Q = 27; - break; + else { + if (c = a.entries) d.tU(), d.Dz.Zza(d.entries = c), d.log.info("Activated", b), d.j.Pi.set(b); + else { + if (c = !!(d.Av < k.config.fva)) d.$ya = setTimeout(d.aza.bind(d, b), k.config.kBa); + d.log.error("Failed to activate", { + retry: c + }, v.kn(a), b); + } + d.GE(); } + d.Hk || d.j.he(a.S ? "tt_comp" : "tt_err"); + a.S ? (k.config.jza ? setTimeout(function() { + d.j.lj.set(f.Vk); + }, k.config.jza) : d.j.lj.set(f.Vk), b.Ap || d.GE()) : a.kl ? d.log.warn("aborted timed text track loading") : k.config.N6a ? (b = m.ca.get(q.Sj), d.j.md(b(v.I.EIa, { + Ja: a.track ? a.track.If : {} + }))) : (d.log.error("ignore subtitle initialization error", a), d.j.lj.set(f.Vk)); + } + }; + this.jc = new h.Pj(); + this.Jv = new r.APa(m.qf(a, "SubtitleTracker"), k.config.u5a, { + La: l.La, + zg: u.sa + }); + this.log = m.qf(a, "TimedTextManager"); + this.Dz = new c.SPa(this.de, this.GE); + this.j.kc.addListener(this.zE); + k.config.zjb ? (this.j.addEventListener(D.X.Hh, this.Ehb), this.zE()) : (this.j.lj.set(f.Vk), this.j.addEventListener(D.X.Hh, function() { + d.Hk = !0; + d.zE(); + })); + this.j.Pc.addListener(this.Fhb); + this.j.addEventListener(D.X.naa, this.kaa); + this.j.$p.addListener(this.n8); + this.j.addEventListener(D.X.Ce, this.TJ); + } + Object.defineProperty(d, "__esModule", { + value: !0 + }); + g = a(211); + c = a(275); + h = a(68); + k = a(9); + f = a(41); + p = a(25); + m = a(3); + r = a(553); + u = a(12); + l = a(18); + v = a(2); + n = a(42); + w = a(15); + D = a(16); + z = a(552); + q = a(63); + b.prototype.addEventListener = function(a, b, f) { + this.jc.addListener(a, b, f); + }; + b.prototype.removeEventListener = function(a, b) { + this.jc.removeListener(a, b); + }; + b.prototype.fireEvent = function(a, b, f) { + this.jc.Db(a, b, f); + }; + b.prototype.V_ = function(a, b, f) { + var c; + c = z.MPa.d2a(this.j, a, b, f); + this.j.mj.push(c); + this.j.xm.forEach(function(a) { + p.gDa(a.mj, c); + }); + this.j.kc.set(c); + this.j.fireEvent(D.X.Ez); + }; + b.prototype.K$a = function(a) { + return this.Jv.r$a(a); + }; + b.prototype.N4 = function(a) { + return this.Jv.N4(a); + }; + b.prototype.MR = function() { + var a, b; + a = this.j.sL; + b = k.config.lBa.characterSize; + b = { + size: k.config.uaa.characterSize || b + }; + a && (b.visibility = a.S4(), b.dH = a.Q4(), b.Qm = a.R4()); + return b; + }; + b.prototype.cob = function(a) { + k.config.uaa.characterSize = a; + a = this.j.kc.value; + !a || a.gJ() || a.Ap || a.getEntries().then(this.AC)["catch"](this.AC); + }; + b.prototype.Jrb = function(a, b) { + a === f.Mo || a == f.Dq ? b !== f.Mo && b !== f.Dq && ((b = this.j.kc.value) && b.gJ() && !b.sS() || this.Jv.Yva(this.de(), b, "presentingstate:" + a)) : a !== f.Di && a !== f.xw || this.Jv.W2(this.de(), "presentingstate:" + a); + }; + b.prototype.tU = function() { + this.Av = 0; + clearTimeout(this.$ya); + }; + b.prototype.xna = function() { + this.Ye && (this.Ye.stop(), this.Kua("removeListener")); + this.Ye = void 0; + }; + b.prototype.Kua = function(a) { + this.Ye && (this.Ye[a]("showsubtitle", this.Mhb), this.Ye[a]("removesubtitle", this.Hhb), this.Ye[a]("underflow", this.o8), this.Ye[a]("bufferingComplete", this.qhb), "addListener" === a ? (this.j.addEventListener(D.X.Fm, this.Bwa), this.j.addEventListener(D.X.uT, this.Fwa), this.j.addEventListener(D.X.fq, this.Jwa)) : (this.j.removeEventListener(D.X.Fm, this.Bwa), this.j.removeEventListener(D.X.uT, this.Fwa), this.j.removeEventListener(D.X.fq, this.Jwa))); + }; + b.prototype.Zra = function(a) { + return { + currentPts: this.de(), + displayTime: a.displayTime, + duration: a.duration, + id: a.id, + originX: a.originX, + originY: a.originY, + sizeX: a.sizeX, + sizeY: a.sizeY, + rootContainerExtentX: a.rootContainerExtentX, + rootContainerExtentY: a.rootContainerExtentY + }; + }; + b.prototype.aza = function(a) { + this.Av++; + a.getEntries().then(this.AC)["catch"](this.AC); + }; + a = {}; + b.Zob = (a[g.OF.fha.LOADING] = { + bGb: !0 + }, a[g.OF.fha.qF] = { + Vx: !0 + }, a); + b.Bob = "showsubtitle"; + b.Jlb = "removesubtitle"; + d.OPa = b; + }, function(g, d, a) { + var f, p, m, r, u, l, v, n, w, D, z, q, P, F, la, N, O, t, U, ga, S, T, H, X, G, ra, Z; + + function b(a) { + var b; + b = this; + this.j = a; + this.tCa = Promise.resolve(); + this.NW = A.WebKitMediaKeys || HTMLVideoElement.prototype.webkitGenerateKeyRequest ? "webkit" : HTMLVideoElement.prototype.msSetMediaKeys ? "ms" : ""; + this.Wo = []; + this.Ii = new l.Pj(); + this.Wia = this.ZY = 0; + this.SN = []; + this.Ua = w.qf(this.j, "MediaElementASE"); + this.cla = N.Qb; + this.rZ = !1; + this.Le = {}; + this.dG = {}; + this.FR = this.TN(function() { + var a; + if (b.Ha) { + a = b.iO(); + return a ? a.totalVideoFrames : b.Ha.webkitDecodedFrameCount; + } + }); + this.Zx = this.TN(function() { + var a; + if (b.Ha) { + a = b.iO(); + return a ? a.droppedVideoFrames : b.Ha.webkitDroppedFrameCount; + } + }); + this.wI = this.TN(function() { + var a; + if (b.Ha) { + a = b.iO(); + return a && a.corruptedVideoFrames; + } + }); + this.GR = this.TN(function() { + var a; + if (b.Ha) { + a = b.iO(); + return a && t.Uf(a.totalFrameDelay * N.Qj); } + }); + this.Wja = function() { + return b.Ii.Db(S.oh.gua); + }; + this.Yi = w.ca.get(ga.yea).create(u.config.Do, this, this.j); + u.config.$u && (this.tCa = new Promise(function(a) { + b.cla = a; + b.j.addEventListener(X.X.Ce, a); + })); + this.Ua.trace("Created Media Element"); + this.addEventListener = this.Ii.addListener; + this.removeEventListener = this.Ii.removeListener; + this.Ha = c(this.j.LE); + this.sourceBuffers = this.Wo; + } + + function c(a) { + var b, f; + b = w.ca.get(T.gia).j$a(); + a = a.width / a.height * b.height; + f = (b.width - a) / 2; + return u.config.eob ? N.createElement("VIDEO", "position:absolute;width:" + a + "px;height:" + b.height + "px;left:" + f + "px;top:0px") : N.createElement("VIDEO", "position:absolute;width:100%;height:100%"); + } + + function h(a) { + a.preventDefault(); + return !1; + } + + function k(a, b) { + var f, c, d; + f = a.target; + f = f && f.error; + c = a.errorCode; + d = f && f.code; + N.ab(d) || (d = c && c.code); + c = f && f.msExtendedCode; + N.ab(c) || (c = f && f.systemCode); + N.ab(c) || (c = a.systemCode); + a = N.La({}, { + code: d, + systemCode: c + }, { + Mp: !0 + }); + b = { + T: b(d), + Ja: O.b7(a) + }; + try { + f && f.message && (b.DJ = f.message); + } catch (fa) {} + c = N.Bd(c); + U.ja(c) && (b.ic = w.Lma(c, 4)); + return { + qC: b, + $db: a + }; + } + Object.defineProperty(d, "__esModule", { + value: !0 + }); + f = a(60); + p = a(140); + m = a(63); + r = a(5); + u = a(9); + l = a(68); + v = a(55); + n = a(25); + w = a(3); + D = a(2); + z = a(115); + q = a(12); + P = a(95); + F = a(431); + la = a(18); + N = a(17); + O = a(155); + t = a(6); + U = a(15); + ga = a(277); + S = a(174); + T = a(303); + H = a(4); + X = a(16); + G = a(116); + ra = !!(t.jA && HTMLVideoElement && URL && HTMLVideoElement.prototype.play); + Z = ra && (HTMLVideoElement.prototype.webkitGenerateKeyRequest || t.AF); + b.prototype.qp = function(a) { + try { + this.Ha && (this.Wia = this.Ha.currentTime); + } catch (ja) { + this.Ua.error("Exception while getting VIDEO.currentTime", ja); + a && this.KA(D.I.FMa, ja); } - while (j4Q !== 29) { - switch (j4Q) { - case 11: - b.prototype.Ada = function(a) { - var X4Q, Y4Q, U3P; - X4Q = 2; - while (X4Q !== 4) { - U3P = "t"; - U3P += "diges"; - U3P += "t"; - switch (X4Q) { - case 2: - Y4Q = this.H.A0; - X4Q = Y4Q === U3P ? 1 : 3; - break; - case 5: - return a; - break; - case 1: - a = a.dk; - X4Q = 5; - break; - case 3: - X4Q = 9; - break; - case 9: - a = a.Xi && a.Xi.Om; - X4Q = 5; - break; - } - } - }; - b.prototype.VHa = function(a, b, c) { - var G4Q, d; - G4Q = 2; - while (G4Q !== 9) { - switch (G4Q) { - case 2: - d = this.H; - this.OV(d.Tt, a, b, c) ? this.Gm = !0 : this.Gm = !1; - this.Pn = 0; - G4Q = 3; - break; - case 3: - this.OV(d.N1, a, b, c) && (this.JO = !0); - G4Q = 9; - break; - } - } - }; - b.prototype.lYa = function(a) { - var R4Q; - R4Q = 2; - while (R4Q !== 1) { - switch (R4Q) { - case 2: - return a === p.G.VIDEO ? this.MD.hpa : this.MD.gpa; - break; - } - } - }; - b.prototype.sB = function(a) { - var w4Q; - w4Q = 2; - while (w4Q !== 5) { - switch (w4Q) { - case 2: - this.MD.sB(a); - this.iD = a; - w4Q = 5; - break; - } - } - }; - j4Q = 18; - break; - case 4: - l = a(272); - g = a(475); - m = a(469); - p = a(13); - j4Q = 7; - break; - case 7: - r = a(468); - Object.defineProperties(b.prototype, { - S$a: { - get: function() { - var Q4Q; - Q4Q = 2; - while (Q4Q !== 1) { - switch (Q4Q) { - case 2: - return this.LKa; - break; - case 4: - return this.LKa; - break; - Q4Q = 1; - break; - } - } - } - } - }); - b.prototype.pKa = function() { - var F4Q; - F4Q = 2; - while (F4Q !== 5) { - switch (F4Q) { - case 2: - this.Ol = this.uO = this.Ska = this.Pn = this.Gm = void 0; - this.U1 = this.L5 = this.aR = this.bR = this.K5 = this.IP = this.JP = 0; - F4Q = 5; - break; - } - } - }; - b.prototype.jra = function(a, b, d) { - var M4Q; - M4Q = 2; - while (M4Q !== 4) { - switch (M4Q) { - case 2: - this.Ol = a; - c.S(b) || (this.Ska = b); - c.S(d) || (this.uO = d); - M4Q = 4; - break; - } - } - }; - b.prototype.OV = function(a, b, d, g) { - var i4Q, h, e3P, W3P; - i4Q = 2; - while (i4Q !== 7) { - e3P = "i"; - e3P += "q"; - e3P += "r"; - W3P = "a"; - W3P += "v"; - W3P += "g"; - switch (i4Q) { - case 3: - i4Q = a === W3P ? 9 : 8; - break; - case 5: - i4Q = a === e3P ? 4 : 3; - break; - case 2: - h = this.H; - i4Q = 5; - break; - case 9: - return b.ia ? b.ia.ta < h.JE : !0; - break; - case 4: - return b.ia && d && c.da(g) && b.ia.ta < h.JE && g > h.AT; - break; - case 8: - return !1; - break; - } - } - }; - j4Q = 11; - break; - case 26: - b.prototype.m4a = function(a) { - var k4Q; - k4Q = 2; - while (k4Q !== 1) { - switch (k4Q) { - case 2: - this.H.Kz && a === p.G.VIDEO && (this.L5 = this.K5 = this.aR = this.bR = this.IP = this.JP = 0); - k4Q = 1; - break; - } - } - }; - b.prototype.o4a = function(a, b, c, d) { - var N4Q; - N4Q = 2; - while (N4Q !== 1) { - switch (N4Q) { - case 2: - this.H.Kz && a === p.G.VIDEO && (d ? (this.JP += b, this.IP += c) : (this.bR += b, this.aR += c)); - N4Q = 1; - break; - } - } - }; - b.prototype.j4a = function(a, b) { - var d4Q; - d4Q = 2; - while (d4Q !== 1) { - switch (d4Q) { - case 2: - a === p.G.VIDEO && (this.Kcb = b); - d4Q = 1; - break; - } - } - }; - j4Q = 23; - break; - case 15: - b.prototype.l4a = function() { - var K4Q, a; - K4Q = 2; - while (K4Q !== 3) { - switch (K4Q) { - case 2: - a = this.H; - this.uKa(); - a.Tp && (this.kB = [], this.jB = a.jB); - K4Q = 3; - break; - } - } - }; - b.prototype.c4a = function() { - var V4Q, s4Q, a; - V4Q = 2; - while (V4Q !== 9) { - switch (V4Q) { - case 3: - try { - s4Q = 2; - while (s4Q !== 5) { - switch (s4Q) { - case 2: - a.La.Hb.C7a(); - this.cQ.ze(); - s4Q = 5; - break; - } - } - } catch (v) { - var Z3P; - Z3P = "Hind"; - Z3P += "sight: E"; - Z3P += "r"; - Z3P += "ro"; - Z3P += "r during clean up: "; - v7AA.x8P(1); - a.lo(v7AA.p8P(Z3P, v)); - } - V4Q = 9; - break; - case 2: - a = this.ka; - this.ND && (clearInterval(this.ND), delete this.ND); - V4Q = 4; - break; - case 4: - V4Q = a.Lk ? 3 : 9; - break; - } - } - }; - j4Q = 26; - break; - case 23: - b.prototype.k4a = function(a) { - var x4Q; - x4Q = 2; - while (x4Q !== 1) { - switch (x4Q) { - case 2: - this.Vf && this.Vf.stop(a); - x4Q = 1; - break; - } - } - }; - b.prototype.koa = function(a, b, c) { - var D4Q; - D4Q = 2; - while (D4Q !== 1) { - switch (D4Q) { - case 2: - this.Vf && this.Vf.add(a, b, c); - D4Q = 1; - break; - } - } - }; - b.prototype.s4a = function(a) { - var I4Q; - I4Q = 2; - while (I4Q !== 5) { - switch (I4Q) { - case 2: - this.H.Tp && a.kB && this.kB.push(a.kB); - this.U1 = a.U1; - I4Q = 5; - break; - } - } - }; - j4Q = 35; - break; - case 2: - c = a(10); - h = a(9); - j4Q = 4; - break; - case 31: - b.prototype.nVa = function(a) { - var f4Q, b, c, d, g, h, f, F3P; - f4Q = 2; - while (f4Q !== 20) { - F3P = "n"; - F3P += "on"; - F3P += "e"; - switch (f4Q) { - case 11: - b.jN && (a.psdConservCount = this.Cea); - F3P !== b.Tt && (a.isConserv = this.Gm, a.ccs = this.Pn); - f4Q = 20; - break; - case 2: - b = this.H; - f4Q = 5; - break; - case 5: - c = this.Hb.get(!0); - d = []; - [p.G.VIDEO, p.G.AUDIO].forEach(function(a) { - var h4Q, g; - h4Q = 2; - while (h4Q !== 3) { - switch (h4Q) { - case 14: - d.push(g); - h4Q = 8; - break; - h4Q = 3; - break; - case 2: - g = this.ka.KYa(a); - a === p.G.VIDEO && (b.Kz && (g.parallelDownloadMs = this.JP, g.parallelDownloadBytes = this.IP, g.singleDownloadMs = this.bR, g.singleDownloadBytes = this.aR, g.switchFromParallelToSingle = this.K5, g.switchFromSingleToParallel = this.L5), c && c.$b && c.ia && (g.asetput = c.ia, g.aseiqr = c.Xi, g.tdigest = c.dk && c.dk.aq() || void 0), c && c.cga && (g.avtp = c.cga.ta)); - h4Q = 4; - break; - case 4: - d.push(g); - h4Q = 3; - break; - } - } - }.bind(this)); - a.stat = d; - g = 0; - h = 0; - f = 0; - f4Q = 14; - break; - case 14: - c.$b && (g = c.ia ? c.ia.ta : 0, h = c.he ? c.he.ta : 0, f = c.Dm ? c.Dm.ta : 0); - a.location = { - responseTime: h, - httpResponseTime: f, - bandwidth: g, - confidence: c.$b, - name: this.Kcb - }; - this.Lda && (a.bt = { - startTime: this.ai.startTime, - Ln: this.ai.Ln, - Ho: this.ai.Ho - }, this.ai.Ln = [], this.ai.Ho = [], this.ai.q1 = this.ai.n1); - f4Q = 11; - break; - } - } - }; - f.P = b; - j4Q = 29; - break; - case 18: - b.prototype.Aga = function(a, b) { - var p4Q; - p4Q = 2; - while (p4Q !== 1) { - switch (p4Q) { - case 2: - this.MD.fsb && a && this.MD.Aga(b, a); - p4Q = 1; - break; - } - } - }; - b.prototype.CLa = function(a, b, c, d, g, h) { - var J4Q, f; - J4Q = 2; - while (J4Q !== 4) { - switch (J4Q) { - case 2: - f = this.H; - c && d && (c = h ? Math.min(c, d, h) : Math.min(c, d)) && (this.Hb.get(!1), a = this.ka.Bm(a), b.nA() && a > f.qM && c === g ? (b.Upa({ - connections: 1, - openRange: !0 - }), this.K5++) : f.Pm && !b.nA() && (a < f.$X || c !== g) && (b.Upa({ - connections: f.qw, - openRange: !1 - }), this.L5++)); - J4Q = 4; - break; - } - } - }; - b.prototype.FLa = function(a, b) { - var a4Q, c, d, g; - a4Q = 2; - while (a4Q !== 13) { - switch (a4Q) { - case 4: - void 0 === this.ai && (this.ai = { - startTime: h.time.la(), - Ln: [], - Ho: [], - q1: void 0, - n1: void 0 - }); - c = Math.floor((h.time.la() - this.ai.startTime) / c.ez); - d = this.ai.n1; - a4Q = 8; - break; - case 8: - g = this.ai.q1 ? c - this.ai.q1 - 1 : c; - a4Q = 7; - break; - case 5: - a4Q = this.Lda ? 4 : 13; - break; - case 2: - c = this.H; - a4Q = 5; - break; - case 14: - this.ai.n1 = c; - a4Q = 13; - break; - case 7: - a4Q = void 0 === d || c > d ? 6 : 14; - break; - case 6: - this.ai.Ln[g] = a, this.ai.Ho[g] = b; - a4Q = 14; - break; - } - } - }; - j4Q = 15; - break; - case 35: - b.prototype.uKa = function() { - var H4Q, a; - H4Q = 2; - while (H4Q !== 4) { - switch (H4Q) { - case 2: - a = this.H; - a.jN && (this.ND && clearInterval(this.ND), this.Ht = void 0, this.Cea = 0, this.Vf = new g(a.Vf.numB + a.cF, a.Vf.bSizeMs, a), this.ND = setInterval(function() { - var U4Q, b, c, d, g; - U4Q = 2; - while (U4Q !== 12) { - switch (U4Q) { - case 1: - b = this.Vf.pYa(); - U4Q = 5; - break; - case 5: - U4Q = b ? 4 : 12; - break; - case 4: - c = b.p; - d = b.Cp; - g = b.r; - this.Ht = { - t: h.time.la(), - p: Number(c).toFixed(2) / 1, - Cp: Number(d).toFixed(2) / 1, - FNa: this.ka.Bm(p.G.VIDEO), - z: b.z - }; - U4Q = 7; - break; - case 2: - U4Q = 1; - break; - case 7: - U4Q = g ? 6 : 13; - break; - case 13: - a.T3 && (this.Dq = !1); - U4Q = 12; - break; - case 6: - U4Q = (b = this.Hb.get(!0), 0 === a.lH || 0 < a.lH && b.ia.ta < a.lH) ? 14 : 12; - break; - case 14: - this.Dq || this.Cea++, this.Dq = !0; - U4Q = 12; - break; - } - } - }.bind(this), a.S3)); - H4Q = 4; - break; - } - } - }; - b.prototype.WOa = function(a) { - var e4Q, b, c, d, g, h, w3P, o3P; - e4Q = 2; - while (e4Q !== 7) { - w3P = "i"; - w3P += "q"; - w3P += "r"; - o3P = "n"; - o3P += "o"; - o3P += "n"; - o3P += "e"; - switch (e4Q) { - case 1: - b = this.H; - e4Q = 5; - break; - case 5: - e4Q = o3P !== b.Tt && !0 !== this.Gm && a.state <= b.l2 ? 4 : 7; - break; - case 4: - c = this.Hb.get(); - w3P === b.Tt && (d = this.Ada(c)) && (g = (d.kh - d.jh) / d.Tf); - h = b.LG ? p.Pc.ln : p.Pc.gr; - c && c.$b >= h && this.OV(b.Tt, c, d, g) && (this.Gm = !0, this.Pn = a.state); - e4Q = 7; - break; - case 2: - e4Q = 1; - break; - } - } - }; - b.prototype.WLa = function(a) { - var P4Q; - P4Q = 2; - while (P4Q !== 3) { - switch (P4Q) { - case 2: - a.Gm = this.Gm; - P4Q = 1; - break; - case 1: - a.Dq = this.Dq; - a.zO = this.zO; - a.Ht = this.Ht; - P4Q = 3; - break; - } - } - }; - b.prototype.mVa = function(a) { - var B4Q, b, d, g, h, f, m, l, H3P, G3P; - B4Q = 2; - while (B4Q !== 22) { - H3P = "s"; - H3P += "t"; - H3P += "a"; - H3P += "rtplay"; - G3P = "l"; - G3P += "o"; - G3P += "g"; - G3P += "data"; - switch (B4Q) { - case 19: - l = function(a) { - var S4Q; - S4Q = 2; - while (S4Q !== 1) { - switch (S4Q) { - case 2: - return c.da(a) ? Number(a).toFixed(2) : -1; - break; - } - } - }; - f = [l(m.min || void 0), l(m.WG || void 0), l(m.jh || void 0), l(m.Tf || void 0), l(m.kh || void 0), l(m.XG || void 0), l(m.max || void 0)]; - m = c.isArray(m.tf) && m.tf.reduce(function(a, b) { - var Z4Q, c; - Z4Q = 2; - while (Z4Q !== 9) { - switch (Z4Q) { - case 2: - c = l(b.Qd || void 0); - b = l(b.n || void 0); - 1 < c && -1 < b && a.push({ - mean: c, - n: b - }); - Z4Q = 3; - break; - case 3: - return a; - break; - } - } - }, []); - h.histtdc = m; - B4Q = 15; - break; - case 9: - Object.keys(a).forEach(function(b) { - var t4Q; - t4Q = 2; - while (t4Q !== 1) { - switch (t4Q) { - case 4: - h[b] = a[b]; - t4Q = 2; - break; - t4Q = 1; - break; - case 2: - h[b] = a[b]; - t4Q = 1; - break; - } - } - }); - f = this.Hb.get(); - f && f.ia && (f = f.ia.ta); - h.actualbw = f; - h.isConserv = this.Gm; - h.ccs = this.Pn; - h.isLowEnd = this.JO; - B4Q = 11; - break; - case 2: - b = this.H; - d = this.ka; - g = { - type: G3P, - target: H3P, - fields: {} - }; - h = g.fields; - B4Q = 9; - break; - case 20: - B4Q = m ? 19 : 27; - break; - case 27: - h.histage = this.Ska; - b.kF && this.AO && (h.histsessionstat = this.AO.Qja(), h.initbwestimate = this.AO.Oja()); - B4Q = 25; - break; - case 11: - h.histdiscbw = this.Ol; - m = this.uO; - B4Q = 20; - break; - case 15: - h.histtd = f; - B4Q = 27; - break; - case 25: - B4Q = (b = d.La) ? 24 : 23; - break; - case 23: - d.emit(g.type, g); - B4Q = 22; - break; - case 24: - b = b.ol, h.maxAudioBufferAllowedBytes = b[p.G.AUDIO], h.maxVideoBufferAllowedBytes = b[p.G.VIDEO]; - B4Q = 23; - break; - } - } - }; - j4Q = 31; - break; - } - } - }()); - }, function(f, c, a) { - (function() { - var A3P, c, h, l, g, m, p, r, k, v, n, q, G, x, y, C, F, N, T, t, Z, O, B, ja, V, D, S, A; - A3P = 2; - - function b(a, b, c, d, f, l, r, u, n) { - var V3P, X, D11, N11, p11, S11, a11, k91; - V3P = 2; - while (V3P !== 71) { - D11 = "i"; - D11 += "n"; - D11 += "a"; - D11 += "ct"; - D11 += "ive"; - N11 = "SideCh"; - N11 += "annel: pbci"; - N11 += "d is"; - N11 += " miss"; - N11 += "ing."; - p11 = "man"; - p11 += "a"; - p11 += "gerdebug"; - p11 += "ev"; - p11 += "ent"; - S11 = "m"; - S11 += "ed"; - S11 += "i"; - S11 += "a|asejs"; - a11 = "A"; - a11 += "S"; - a11 += "E"; - a11 += "J"; - a11 += "S"; - k91 = "me"; - k91 += "dia"; - k91 += "cache"; - switch (V3P) { - case 14: - V3P = void 0 === this.Hy || void 0 === this.Hy.Hg ? 13 : 12; - break; - case 74: - V3P = (this.Kj = 0 === Math.floor(1E6 * Math.random()) % n.az) ? 73 : 72; - break; - case 12: - this.H = n = this.oGa(b, n); - this.oW = f.D5a; - this.Ii = f.ki; - this.Hca = f.zM; - this.dLa = f.VB; - this.eLa = f.QR; - this.ED = f.B1a; - V3P = 16; - break; - case 37: - this.sf.on(this.La.uc, k91, function(a) { - var d3P, l91; - d3P = 2; - while (d3P !== 1) { - l91 = "me"; - l91 += "di"; - l91 += "aca"; - l91 += "ch"; - l91 += "e"; - switch (d3P) { - case 4: - D(this, "", a); - d3P = 4; - break; - d3P = 1; - break; - case 2: - D(this, l91, a); - d3P = 1; - break; - } - } - }.bind(this)); - V3P = 36; - break; - case 38: - V3P = (n.Ssa || n.Bx) && this.La.uc ? 37 : 36; - break; - case 16: - this.av = void 0; - this.oHa = F.time.la() + f.nnb; - this.Ib = new V(h.xa.ng); - V3P = 26; - break; - case 28: - this.XV = Object.create(null); - this.on = this.addEventListener = g.addEventListener; - this.removeEventListener = g.removeEventListener; - V3P = 42; - break; - case 76: - X = this; - V3P = 75; - break; - case 75: - this.Ib.addListener(function(a) { - var r3P, u3P; - r3P = 2; - while (r3P !== 1) { - switch (r3P) { - case 2: - try { - u3P = 2; - while (u3P !== 1) { - switch (u3P) { - case 2: - X.Wa.ecb.bind(X.Wa)(a); - u3P = 1; - break; - } - } - } catch (ub) { - var j91; - j91 = "Hindsight: Error when adding updatePlaySe"; - j91 += "gment Liste"; - j91 += "ner: "; - v7AA.u91(0); - X.lo(v7AA.s91(j91, ub)); - } - r3P = 1; - break; - } - } + return t.Uf(this.Wia * N.Qj); + }; + b.prototype.seek = function(a) { + var b; + q.sa(!this.gl); + this.Zka(); + b = this.qp(!0); + if (!u.config.zXa && t.wF(b - a) <= this.a$) this.Ua.trace("Seek delta too small", { + currentTime: b, + seekTime: a, + min: this.a$ + }); + else try { + this.Ua.trace("Setting video elements currentTime", { + From: P.Mg(b), + To: P.Mg(a) + }); + this.gl = {}; + this.Ha.currentTime = a / N.Qj; + this.Ii.Db(S.oh.Fm); + } catch (ea) { + this.Ua.error("Exception while setting VIDEO.currentTime", ea); + this.KA(D.I.GMa, ea); + } + }; + b.prototype.s$a = function() { + return !!this.gl; + }; + b.prototype.addSourceBuffer = function(a) { + var c, d, g, k; + + function b(a) { + return c.NVa(g, c.j.Ic, a); + } + c = this; + d = N.Bd(this.ZY.toString() + this.Wo.length.toString()); + d = { + sourceId: this.ZY, + MP: d + }; + g = w.ca.get(z.zA).zH(this.j.Te.value.qc); + try { + k = new p.afa(this.j, a, b, this.ze, d, this.Ua); + } catch (Ga) { + k = N.ad(Ga); + this.Ua.error("Unable to add source buffer.", { + mime: b(a), + error: k + }); + d = w.ca.get(m.Sj); + this.j.md(d(D.I.lY, { + T: a === f.gc.rg.AUDIO ? N.H.Mea : N.H.Nea, + Ja: k + })); + return; + } + this.Wo.push(k); + a == r.uF && k.x3 && k.x3.addListener(this.cla); + return k; + }; + b.prototype.$_ = function(a) { + for (var b = a.length, f = 0; f < b; f++) this.addSourceBuffer(a[f]); + this.Ii.Db(S.oh.vAa); + return !0; + }; + b.prototype.removeSourceBuffer = function(a) { + for (var b = this.Wo.length, f = 0; f < b; f++) n.Ina(a, this.Wo[f]) && (this.Wo = this.Wo.splice(f, 1)); + this.ze.removeSourceBuffer(a); + }; + b.prototype.endOfStream = function() { + u.config.$0 && this.ze.endOfStream(); + }; + b.prototype.Nn = function(a) { + this.Wo = []; + a && a.RGb(); + return !0; + }; + b.prototype.Gnb = function(a) { + this.ZY = a; + }; + b.prototype.Dra = function() { + if (this.ze) return H.Ejb(this.ze.duration); + }; + b.prototype.Snb = function(a) { + this.ze && (this.j.D8 = a, this.ze.duration = a.N8(H.em)); + }; + b.prototype.g4a = function() { + var a; + if (!this.rZ && this.Ha && 2 <= this.Ha.readyState) { + a = this.Ha.webkitDecodedFrameCount; + if (void 0 === a || 0 < a || u.config.Ksb) this.rZ = !0; + } + return this.rZ; + }; + b.prototype.open = function() { + var a, b, f; + a = this; + this.j.addEventListener(X.X.mAa, function(b) { + return a.tUa(b); + }); + if (ra) { + if (this.j.Vu) { + if (!Z) { + this.bl(D.I.Pfa); + return; + } + if (t.AF && t.AF.isTypeSupported && this.Yi.Ad) try { + if (!t.AF.isTypeSupported(this.Yi.Ad, "video/mp4")) { + this.dWa(function(b) { + a.bl(D.I.jY, b); }); - V3P = 74; - break; - case 2: - this.V = new F.Console(a11, S11, "(" + l.sessionId + ")"); - this.Yb = this.V.error.bind(this.V); - this.ba = this.V.warn.bind(this.V); - this.wc = this.V.trace.bind(this.V); - this.wa = this.V.log.bind(this.V); - V3P = 8; - break; - case 32: - this.Er = c; - this.tK = this.xD = void 0; - this.hea = 0; - this.jL = -1; - V3P = 28; - break; - case 42: - this.emit = this.Ha = g.Ha; - this.sf = new m(); - V3P = 40; - break; - case 26: - this.ai = void 0; - this.VW = l.aa; - this.xl = 1 * b.movieId; - V3P = 23; - break; - case 39: - this.sf.on(this.La.uc, p11, function(a) { - var K3P; - K3P = 2; - while (K3P !== 1) { - switch (K3P) { - case 4: - D(this, a.type, a); - K3P = 9; - break; - K3P = 1; - break; - case 2: - D(this, a.type, a); - K3P = 1; - break; - } - } - }.bind(this)); - V3P = 38; - break; - case 23: - this.wd = b.duration; - this.Li = d || 0; - this.Mr = b; - this.Bc = 0; - this.fV = r; - this.ev = !1; - V3P = 32; - break; - case 8: - this.La = a; - this.wj = l; - this.Hy = u; - V3P = 14; - break; - case 40: - V3P = n.Zd && this.La.uc ? 39 : 38; - break; - case 46: - a = null; - n.lF && (a = this.La.Lq.Vr); - V3P = 65; - break; - case 77: - V3P = this.Lk ? 76 : 74; - break; - case 72: - B.call(this); - V3P = 71; - break; - case 51: - this.uia = this.Lk && 0 === a % n.y0; - this.Kj = 0 === a % n.az; - this.Ge = [Object.create(null), Object.create(null)]; - this.Se = []; - l = this.Qca(b, this.Ii).ee.Sf[0].ma; - V3P = 46; - break; - case 36: - n.Qn && (l && l.Goa ? (l.TNa = n.PJ.lv, l.a2a = n.PJ.mx, this.An = new x(l.Goa, l, this)) : this.lo(N11)); - a = Math.floor(1E6 * Math.random()); - this.Lk = 0 === a % n.z0; - l && l.Qf && (this.Lk = !1); - V3P = 51; - break; - case 13: - this.Hy = { - path: l.cc, - Hg: l.Hg, - R_: l.R_ - }; - V3P = 12; - break; - case 65: - this.ec = new k(this, l, this.La.Hb, n, this.N1a(), a); - n.kN && (this.ML = new p(n.D9.c, n.D9.maxc)); - this.Zda = this.ec.k4a.bind(this.ec); - this.ej.addEventListener(D11, this.Zda); - V3P = 61; - break; - case 61: - c = this.wL(b, 0, c, f.ki); - c = this.qV(this.xl, b, 0, f.fa, c); - c.ki = f.ki; - c.tob = !0; - this.Ca = [c]; - this.ja = new v(this, this.ec, b.choiceMap, this.Li, n); - this.Wa = new q(this, { - bufferSize: this.La.ol - }, n); - V3P = 77; - break; - case 73: - this.Oea = new G(this, n); - V3P = 72; - break; + return; + } + } catch (ma) { + this.KA(D.I.jY, ma); + return; } } + try { + this.ze = new t.jA(); + } catch (ma) { + this.KA(D.I.vMa, ma); + return; + } + try { + this.$f = URL.createObjectURL(this.ze); + } catch (ma) { + this.KA(D.I.wMa, ma); + return; + } + try { + this.Yi.ZWa(this.Wja); + this.ze.addEventListener("sourceopen", function(b) { + return a.Aka(b); + }); + this.ze.addEventListener(this.NW + "sourceopen", function(b) { + return a.Aka(b); + }); + this.Ha.addEventListener("error", this.Le.error = function(b) { + return a.rG(b); + }); + this.Ha.addEventListener("seeking", this.Le.seeking = function() { + return a.sUa(); + }); + this.Ha.addEventListener("seeked", this.Le.seeked = function() { + return a.a_(); + }); + this.Ha.addEventListener("timeupdate", this.Le.timeupdate = function() { + return a.uUa(); + }); + this.Ha.addEventListener("loadstart", this.Le.loadstart = function() { + return a.BO(); + }); + this.Ha.addEventListener("volumechange", this.Le.volumechange = function(b) { + return a.vUa(b); + }); + this.Ha.addEventListener(this.Yi.Ky, this.Le[this.Yi.Ky] = function(b) { + return a.oUa(b); + }); + b = this.j.sf; + f = b.lastChild; + f ? b.insertBefore(this.Ha, f) : b.appendChild(this.Ha); + u.config.fpa && this.Ha.addEventListener("contextmenu", h); + this.Ha.src = this.$f; + v.ee.addListener(v.GI, this.dG[v.GI] = function() { + return a.yka(); + }); + this.yka(); + } catch (ma) { + this.KA(D.I.xMa, ma); + } + } else this.bl(D.I.Qfa); + }; + b.prototype.close = function() { + var b; + + function a() { + b.$f && (b.Zka(), v.ee.removeListener(v.GI, b.dG[v.GI]), b.ARa()); } - while (A3P !== 217) { - switch (A3P) { - case 76: - b.prototype.stop = function() { - var a6P, a, K11; - a6P = 2; - while (a6P !== 6) { - K11 = "s"; - K11 += "t"; - K11 += "o"; - K11 += "p"; - switch (a6P) { - case 4: - this.Gca(); - a !== h.xa.jy && a !== h.xa.iy && this.ja.yi.mR(!1); - this.ja.Yd.forEach(function(a) { - var v6P; - v6P = 2; - while (v6P !== 1) { - switch (v6P) { - case 4: - a.fg = +2; - v6P = 8; - break; - v6P = 1; - break; - case 2: - a.fg = !1; - v6P = 1; - break; - } - } - }); - [h.G.VIDEO, h.G.AUDIO].forEach(function(a) { - var b6P; - b6P = 2; - while (b6P !== 1) { - switch (b6P) { - case 2: - (a = this.Se[a]) && a.pause(); - b6P = 1; - break; - } - } - }.bind(this)); - this.emit(K11); - a6P = 6; - break; - case 5: - this.Ib.set(h.xa.jy); - a6P = 4; - break; - case 2: - a = this.Ib.value; - a6P = 5; - break; - } - } - }; - b.prototype.P4 = function(a, b) { - var c6P, d, g, f, m, l, t11, m11, C11, V11, A11, R11, I11, b11, c11, q11, M11, n11, h11, T11; - c6P = 2; - while (c6P !== 39) { - t11 = "s"; - t11 += "e"; - t11 += "e"; - t11 += "k"; - m11 = "se"; - m11 += "ekFa"; - m11 += "iled"; - C11 = "after seeking, play"; - C11 += "erS"; - C11 += "tate no longer STARTING: "; - V11 = "se"; - V11 += "ekDe"; - V11 += "l"; - V11 += "aye"; - V11 += "d"; - A11 = " playerS"; - A11 += "tate:"; - A11 += " "; - R11 = " me"; - R11 += "dia."; - R11 += "currentPts:"; - R11 += " "; - I11 = " "; - I11 += "current m"; - I11 += "anifest"; - I11 += ": "; - b11 = " mani"; - b11 += "fes"; - b11 += "tIndex: "; - c11 = "se"; - c11 += "ek"; - c11 += ": "; - q11 = "seek"; - q11 += "F"; - q11 += "ai"; - q11 += "led"; - M11 = "seek,"; - M11 += " no "; - M11 += "manifest at manifestIndex:"; - n11 = "see"; - n11 += "kD"; - n11 += "e"; - n11 += "l"; - n11 += "ayed"; - h11 = "s"; - h11 += "ee"; - h11 += "k"; - T11 = "ptsch"; - T11 += "an"; - T11 += "ge"; - T11 += "d"; - switch (c6P) { - case 27: - f = this.sD(this.ja.Yd, g.Vb, g.fa || Infinity); - f = Math.min(f[h.G.AUDIO].X, f[h.G.VIDEO].X); - c6P = 25; - break; - case 23: - c6P = !this.Sy(this.Bc + 1) ? 22 : 33; - break; - case 13: - c6P = b != this.Bc ? 12 : 27; - break; - case 41: - return this.emit(T11, m), this.emit(h11), this.GL(1), this.vg(), m; - break; - case 15: - return; - break; - case 20: - c6P = !this.Dca(b) ? 19 : 16; - break; - case 19: - this.yj = { - Da: b, - Gv: a - }; - this.emit(n11); - c6P = 17; - break; - case 17: - return; - break; - case 40: - this.ba(M11, b), this.emit(q11); - c6P = 39; - break; - case 34: - a = f, m = a + this.ja.Ub; - c6P = 33; - break; - case 7: - c6P = (g = this.Ca[b]) ? 6 : 40; - break; - case 4: - m = a; - g.Zd && this.ug(c11 + a + b11 + b + I11 + this.Bc + R11 + f + A11 + this.Ib.value); - c.S(b) && (b = this.Bc); - this.ja.oqa(); - c6P = 7; - break; - case 6: - !g.vG && 0 < b && (m = this.MPa(b, a)); - this.Ib.set(h.xa.iy); - c6P = 13; - break; - case 22: - this.yj = { - Da: this.Bc + 1, - Gv: a - }; - this.emit(V11); - return; - break; - case 42: - this.ba(C11 + this.Ib.value), this.emit(m11); - c6P = 39; - break; - case 28: - this.PW(g, b); - this.ja.Yd.forEach(function(b) { - var Y6P; - Y6P = 2; - while (Y6P !== 1) { - switch (Y6P) { - case 2: - this.PJa(b, l[b.O], a); - Y6P = 1; - break; - } - } - }.bind(this)); - c6P = 43; - break; - case 43: - c6P = this.Ib.value != h.xa.ng ? 42 : 41; - break; - case 2: - g = this.H; - f = this.Hg(); - c6P = 4; - break; - case 24: - c6P = this.Ii ? 23 : 34; - break; - case 33: - this.Ib.set(h.xa.ng); - this.ja.yab(a, b); - this.vW(t11); - f = this.ja.xm; - l = this.DK(f.Da, a, f).$A; - c6P = 28; - break; - case 16: - c6P = this.EE(this.ja.a0(b), !1, !0) ? 15 : 27; - break; - case 25: - c6P = a > f ? 24 : 33; - break; - case 12: - b < this.Bc && g.replace && (g.replace = !1); - d = this.Ca[this.Bc]; - this.ja.Yd.forEach(function(a) { - var O6P; - O6P = 2; - while (O6P !== 1) { - switch (O6P) { - case 2: - this.Yea(a, d.Km && d.Km.aj); - O6P = 1; - break; - } - } - }.bind(this)); - c6P = 20; - break; - } - } - }; - b.prototype.seek = function(a, b) { - var E6P, d; - E6P = 2; - while (E6P !== 8) { - switch (E6P) { - case 3: - this.Ca[b].vG || this.ED || (d = this.pz(b, a)); - return this.P4(d, b); - break; - case 2: - d = a; - c.S(b) && (b = this.Bc); - this.ja.oqa(); - E6P = 3; - break; - } - } - }; - b.prototype.Xbb = function(a) { - var I6P, b, c, i6P, e11, H11, w11, v11, Y11; - I6P = 2; - while (I6P !== 13) { - e11 = "un"; - e11 += "der"; - e11 += "flow"; - H11 = "branch"; - H11 += "Of"; - H11 += "fs"; - H11 += "et:"; - w11 = "entry.mani"; - w11 += "fe"; - w11 += "s"; - w11 += "tOffset:"; - v11 = "conte"; - v11 += "n"; - v11 += "tP"; - v11 += "ts:"; - Y11 = "und"; - Y11 += "erflow: goi"; - Y11 += "ng to BUFFERING at player pts:"; - switch (I6P) { - case 6: - I6P = this.Lk ? 14 : 13; - break; - case 5: - c = this.pz(this.WP, a); - this.ba(Y11, a, v11, c, w11, this.vz.Rl, H11, this.ja.Ub); - this.ja.Yd.forEach(function(c) { - var j6P, d, g, L11, U11, J11, E11, z11, d11, g11, r11, G11, B11, o11, Q11, Z11, X11; - j6P = 2; - while (j6P !== 7) { - L11 = ", ne"; - L11 += "xtA"; - L11 += "ppendPts: "; - U11 = ", toAppen"; - U11 += "d"; - U11 += ": "; - J11 = ", s"; - J11 += "e"; - J11 += "ntData"; - J11 += ": "; - E11 = ","; - E11 += " complet"; - E11 += "eStreamingPts: "; - z11 = ", stre"; - z11 += "ami"; - z11 += "ngPts: "; - d11 = ", partia"; - d11 += "ls"; - d11 += ": "; - g11 = ","; - g11 += " t"; - g11 += "otalBu"; - g11 += "fferBytes"; - g11 += ": "; - r11 = ", t"; - r11 += "otalB"; - r11 += "ufferMs"; - r11 += ": "; - G11 = ","; - G11 += " appendedBu"; - G11 += "fferBytes: "; - B11 = ", appe"; - B11 += "ndedBuffer"; - B11 += "Ms: "; - o11 = ", b"; - o11 += "uffe"; - o11 += "rLevelByt"; - o11 += "es: "; - Q11 = ", "; - Q11 += "medi"; - Q11 += "aType: "; - Z11 = "u"; - Z11 += "n"; - Z11 += "derflow: "; - X11 = "r"; - X11 += "e"; - X11 += "buff"; - X11 += "e"; - X11 += "r"; - switch (j6P) { - case 3: - c.Nn = !1; - c.Opa(a); - b.Qn && this.An && (c = this.An, d = this.Wa.rb[d], c.X4(X11, d.r1)); - j6P = 7; - break; - case 2: - d = c.O; - b.Zd && (g = this.Se[d], g = Z11 + a + Q11 + d + o11 + c.Gh + B11 + c.pv + G11 + c.gM + r11 + c.PB + g11 + c.Yt + d11 + c.Ia.yt + z11 + c.Ka + E11 + c.nz + J11 + JSON.stringify(c.Ia.fb.Ta) + U11 + JSON.stringify(g.Dh) + L11 + g.IIa); - b.Zd && this.ug(g); - j6P = 3; - break; - } - } - }.bind(this)); - this.emit(e11); - I6P = 8; - break; - case 2: - b = this.H; - I6P = 5; - break; - case 8: - this.GL(2); - I6P = 7; - break; - case 7: - this.vg(); - I6P = 6; - break; - case 14: - try { - i6P = 2; - while (i6P !== 1) { - switch (i6P) { - case 2: - this.XZ(h.xa.Yq); - i6P = 1; - break; - case 4: - this.XZ(h.xa.Yq); - i6P = 9; - break; - i6P = 1; - break; - } - } - } catch (ba) { - var i11; - i11 = "Hinds"; - i11 += "i"; - i11 += "ght: Error whe"; - i11 += "n evaluating QoE at Bu"; - i11 += "ffering: "; - v7AA.W91(0); - this.lo(v7AA.s91(i11, ba)); - } - I6P = 13; - break; - } - } - }; - b.prototype.Wm = function(a) { - var B6P, b, P11; - B6P = 2; - while (B6P !== 7) { - P11 = "s"; - P11 += "k"; - P11 += "i"; - P11 += "p"; - switch (B6P) { - case 2: - b = this.H; - this.ja.yi.Wm(a); - B6P = 4; - break; - case 4: - [h.G.AUDIO, h.G.VIDEO].forEach(function(c) { - var M6P, d, x11; - M6P = 2; - while (M6P !== 9) { - x11 = "skip:"; - x11 += " not resuming bufferManager, audio track swi"; - x11 += "tch in progress"; - switch (M6P) { - case 2: - d = this.Wa.rb[c]; - this.Lk && (d.u5 = F.time.la()); - b.qH ? this.Se[c].reset() : d.Hx ? d.ba(x11) : this.Se[c].resume(); - this.ja.yi.kb[c].Wm(a); - M6P = 9; - break; - } - } - }.bind(this)); - this.Ib.set(h.xa.nf); - this.$D(); - this.emit(P11); - B6P = 7; - break; - } - } - }; - b.prototype.EE = function(a, b, c) { - var S6P, d, F11, y11; - S6P = 2; - while (S6P !== 8) { - F11 = "s"; - F11 += "e"; - F11 += "e"; - F11 += "k"; - y11 = "p"; - y11 += "tsc"; - y11 += "hanged"; - switch (S6P) { - case 5: - S6P = b ? 4 : 3; - break; - case 3: - d ? (this.Ib.set(h.xa.iy), (a = this.ja.yi.children[a]) && this.emit(y11, a.qc), this.Ib.set(h.xa.ng), this.emit(F11), this.GL(1), this.vg(), this.Ku()) : c || (a = this.ja.AYa(a), this.P4(a)); - return d; - break; - case 2: - d = this.ja.EE(a, b); - S6P = 5; - break; - case 4: - return d; - break; - } - } - }; - b.prototype.Nda = function(a) { - var N6P, b; - N6P = 2; - while (N6P !== 6) { - switch (N6P) { - case 2: - this.Bc = a; - b = this.Ca[a]; - N6P = 4; - break; - case 4: - this.Er = b.QB; - this.xl = b.M; - this.Mr = b.Sa; - this.aJa(a, b.replace, b.$A); - N6P = 7; - break; - case 7: - this.Wa.nZa(b.replace); - N6P = 6; - break; - } - } - }; - b.prototype.dM = function(a, b) { - var L6P, d, g, f, m, l, p, r, k, u, v, a71, j11, l11, k11, u11, W11, s11, f11, O11, L79; - L6P = 2; - while (L6P !== 43) { - a71 = ","; - a71 += " "; - j11 = ") "; - j11 += "lastStre"; - j11 += "amAppend"; - j11 += "ed: ("; - l11 = ","; - l11 += " "; - k11 = " stre"; - k11 += "amCo"; - k11 += "unt:"; - k11 += " ("; - u11 = " pl"; - u11 += "a"; - u11 += "yer"; - u11 += "Sta"; - u11 += "te: "; - W11 = "ad"; - W11 += "dManifest, c"; - W11 += "urren"; - W11 += "tPts"; - W11 += ": "; - s11 = "addMa"; - s11 += "nifest in fastplay bu"; - s11 += "t not drm manifest, leaving space"; - s11 += " for it"; - f11 = "addManifest ignored, pip"; - f11 += "elines"; - f11 += " already set EO"; - f11 += "S:"; - O11 = "addManif"; - O11 += "est:"; - O11 += " pipe"; - O11 += "lines already "; - O11 += "shutdown"; - switch (L6P) { - case 4: - this.ba(O11); - L6P = 43; - break; - case 2: - d = this.H; - L6P = 5; - break; - case 3: - g = this.ja.Yd; - f = g[h.G.AUDIO]; - g = g[h.G.VIDEO]; - L6P = 7; - break; - case 6: - this.ba(f11, f.fu, g.fu); - L6P = 43; - break; - case 30: - return !0; - break; - case 14: - b || (b = {}); - b.D5a && (this.oW = !0); - g = this.Ca.length; - b.replace && 1 !== g ? g = 1 : this.Ii && !b.replace && 1 === g && (this.ba(s11), g = this.PGa(this.Ca[0]), g.$Ua = !0, this.Ca.push(g), g = this.Ca.length); - v7AA.u91(1); - L79 = v7AA.f91(11.00000000000001, 21, 2, 11); - m = L79 * a.movieId; - L6P = 20; - break; - case 5: - L6P = this.Kd() ? 4 : 3; - break; - case 31: - L6P = c.S(b) || c.S(a) ? 30 : 29; - break; - case 35: - b.replace || this.ja.XLa(g, l, p); - b = this.Wa.rb[h.G.AUDIO].Im; - a = this.Wa.rb[h.G.VIDEO].Im; - d.Zd && this.ug(W11 + this.Hg() + u11 + this.Ib.value + k11 + r[0].Nc.length + l11 + r[1].Nc.length + j11 + b + a71 + a + ")"); - L6P = 31; - break; - case 29: - this.tW(m, g, r); - this.Sy(this.Bc + 1); - return !0; - break; - case 20: - l = b.X || 0; - p = b.fa; - b.replace && (r = this.Ca[0].pe); - k = this.Ge[h.G.AUDIO]; - L6P = 16; - break; - case 7: - L6P = f.fu || g.fu ? 6 : 14; - break; - case 16: - for (v in k) { - u = k[v]; - u.$m && (u.H7a() ? this.Eda(f, u) : this.MA(u)); - } - f = b.QB ? b.QB : this.Er; - r = this.wL(a, g, f, !1, r); - a = this.qV(m, a, l, p, r, !!b.replace); - a.vG = a.replace; - a.QB = f; - a.zM = b.zM; - L6P = 22; - break; - case 22: - this.Ca[g] = a; - this.Aca(g); - L6P = 35; - break; - } - } - }; - b.prototype.GZ = function(a) { - var g6P, b, d, g, f, D71, N71, p71, S71; - g6P = 2; - while (g6P !== 13) { - D71 = " readyS"; - D71 += "tate"; - D71 += ":"; - D71 += " "; - N71 = " "; - N71 += "f"; - N71 += "or movieId: "; - p71 = ","; - p71 += " "; - S71 = "d"; - S71 += "rmR"; - S71 += "eady at streaming pts: "; - switch (g6P) { - case 4: - c.S(b) && (b = !0); - g = this.ja.Yd; - f = g[h.G.AUDIO]; - g6P = 8; - break; - case 5: - g6P = !this.Kd() ? 4 : 13; - break; - case 2: - d = this.H; - g6P = 5; - break; - case 8: - g = g[h.G.VIDEO]; - d.Zd && this.ug(S71 + f.Ka + p71 + g.Ka + N71 + a + D71 + b); - g6P = 6; - break; - case 14: - this.Se.forEach(function(a) { - var P6P; - P6P = 2; - while (P6P !== 5) { - switch (P6P) { - case 2: - d.s_ && a.PVa(); - d.YR && a.resume(); - P6P = 5; - break; - } - } - }), this.Ii && this.Sy(this.yj ? this.yj.Da : this.Bc + 1), this.BV(); - g6P = 13; - break; - case 6: - g6P = (this.XV[1 * a] = b) ? 14 : 13; - break; - } - } - }; - b.prototype.qO = function(a) { - var z6P; - z6P = 2; - while (z6P !== 5) { - switch (z6P) { - case 2: - a || (a = this.xl); - return this.XV[a]; - break; - } - } - }; - b.prototype.Dca = function(a) { - var D6P, b, c, d; - D6P = 2; - while (D6P !== 6) { - switch (D6P) { - case 2: - b = this.ja.Yd; - c = b[h.G.AUDIO]; - b = b[h.G.VIDEO]; - D6P = 3; - break; - case 3: - D6P = a >= this.Ca.length ? 9 : 8; - break; - case 9: - return !1; - break; - case 8: - d = this.Ca[a]; - return (a === this.Bc + 1 && d.replace || c.fg && b.fg) && (this.XV[d.M] || d.zM) && d.Vb[0] && d.Vb[1] ? !0 : !1; - break; - } - } - }; - b.prototype.Sy = function(a) { - var m6P, b; - m6P = 2; - while (m6P !== 14) { - switch (m6P) { - case 4: - b = this.Ca[a]; - m6P = 3; - break; - case 2: - m6P = 1; - break; - case 8: - this.MKa(a); - this.vg(); - m6P = 6; - break; - case 1: - m6P = !this.Dca(a) ? 5 : 4; - break; - case 6: - return !0; - break; - case 5: - return !1; - break; - case 3: - m6P = b.$Ua || !b.replace ? 9 : 8; - break; - case 9: - return !1; - break; - } - } - }; - b.prototype.MKa = function(a) { - var t6P, b, c, d, h71, T71, K71; - t6P = 2; - while (t6P !== 17) { - h71 = ","; - h71 += " "; - T71 = ","; - T71 += " st"; - T71 += "reamingPts: "; - K71 = "switchManife"; - K71 += "st"; - K71 += " mani"; - K71 += "festIndex: "; - switch (t6P) { - case 2: - b = this.ja.Yd; - c = b[h.G.AUDIO]; - b = b[h.G.VIDEO]; - d = this.Ca[a]; - this.H.Zd && this.ug(K71 + a + T71 + c.Ka + h71 + b.Ka); - c = this.Ii; - t6P = 7; - break; - case 7: - this.Ii = !1; - d.$fa && (b = this.wL(d.Sa, a, d.QB, !1, d.pe, h.G.AUDIO), d.pe[h.G.AUDIO] = b[h.G.AUDIO], delete d.$fa); - b = this.Bc; - c ? this.ja.I7a(b, a) : this.ja.xm.B9a(a); - t6P = 12; - break; - case 12: - this.ja.xm.M0(a); - [h.G.VIDEO, h.G.AUDIO].forEach(function(a) { - var l6P, b; - l6P = 2; - while (l6P !== 4) { - switch (l6P) { - case 2: - b = this.ja.Ml(a); - d.replace || (d.Wp ? b.a8a(d.Wp[a]) : (a = d.$A[a], b.b8a(a))); - l6P = 4; - break; - } - } - }.bind(this)); - this.Nda(a); - this.PW(d, a); - this.BV(); - this.vg(); - t6P = 17; - break; - } - } - }; - b.prototype.BV = function() { - var C6P, a, b; - C6P = 2; - while (C6P !== 9) { - switch (C6P) { - case 1: - C6P = this.yj ? 5 : 9; - break; - case 5: - a = this.yj.Gv; - b = this.yj.Da; - this.Ca[b] && (this.yj = void 0, this.P4(a, b)); - C6P = 9; - break; - case 2: - C6P = 1; - break; - } - } - }; - b.prototype.a4a = function() { - var s6P, a, b, c; - s6P = 2; - while (s6P !== 6) { - switch (s6P) { - case 5: - b = this.Wa.rb[a.O]; - c = this.Hg(); - s6P = 3; - break; - case 2: - a = this.ja.Ml(h.G.AUDIO); - s6P = 5; - break; - case 3: - (c = a.Ia.Ps(c)) && c.yf != a && (a = c.yf); - this.QJa(a); - b.Hx = !1; - s6P = 7; - break; - case 7: - this.vg(); - s6P = 6; - break; - } - } - }; - b.prototype.$3a = function() { - var R6P, a; - R6P = 2; - while (R6P !== 8) { - switch (R6P) { - case 5: - a.Hx = !1; - this.Se[a.O].resume(); - delete a.MG; - this.vg(); - R6P = 8; - break; - case 2: - a = this.Wa.rb[h.G.AUDIO]; - R6P = 5; - break; - } - } - }; - b.prototype.gNa = function() { - var T6P, a; - T6P = 2; - while (T6P !== 3) { - switch (T6P) { - case 2: - this.LIa(this.Iu); - T6P = 1; - break; - case 7: - a = this.Bc; - T6P = 8; - break; - T6P = 5; - break; - case 5: - T6P = a < this.Ca.length ? 4 : 3; - break; - case 1: - a = this.Bc; - T6P = 5; - break; - case 6: - T6P = a >= this.Ca.length ? 5 : 2; - break; - T6P = a < this.Ca.length ? 4 : 3; - break; - case 4: - this.Ca[a++].$fa = !0; - T6P = 5; - break; - case 8: - this.LIa(this.Iu); - T6P = 6; - break; - T6P = 1; - break; - } - } - }; - b.prototype.Aab = function(a) { - var y6P, b, c, d, g, f, R71, I71, b71, c71, q71, M71, n71; - y6P = 2; - while (y6P !== 24) { - R71 = "switchT"; - R71 += "racks rejected, previous swi"; - R71 += "tch still waiting to s"; - R71 += "tart"; - I71 = "switchTracks rejected, previous switch st"; - I71 += "ill i"; - I71 += "n progre"; - I71 += "ss: "; - b71 = "swi"; - b71 += "tchTra"; - b71 += "cks r"; - b71 += "ejected, buffer"; - b71 += "ing"; - c71 = "switchTracks"; - c71 += " "; - c71 += "reject"; - c71 += "ed, bufferLevelMs"; - q71 = "switchTracks can'"; - q71 += "t fin"; - q71 += "d trackId:"; - M71 = " to "; - M71 += "ind"; - M71 += "ex: "; - n71 = "switchTrac"; - n71 += "k"; - n71 += "s current"; - n71 += ":"; - n71 += " "; - switch (y6P) { - case 17: - y6P = f == g ? 16 : 15; - break; - case 3: - d = this.ja.Ml(h.G.AUDIO); - y6P = 9; - break; - case 7: - g = this.ja.Bm(h.G.VIDEO); - y6P = 6; - break; - case 15: - b.Zd && this.ug(n71 + g + M71 + f); - a.MG = { - Ab: c, - lj: f - }; - this.GKa(d); - return !0; - break; - case 13: - y6P = this.Iu ? 12 : 11; - break; - case 19: - return this.ba(q71, c), !1; - break; - case 2: - b = this.H; - c = a.LX; - a = this.Wa.rb[h.G.AUDIO]; - y6P = 3; - break; - case 6: - y6P = g < b.rP ? 14 : 13; - break; - case 14: - return this.ba(c71, g, "<", b.rP), !1; - break; - case 11: - y6P = a.Hx ? 10 : 20; - break; - case 18: - g = this.Er[h.G.AUDIO]; - y6P = 17; - break; - case 20: - y6P = !this.Mr.audio_tracks.some(function(a, b) { - var X6P; - X6P = 2; - while (X6P !== 1) { - switch (X6P) { - case 2: - return a.track_id == c ? (f = b, !0) : !1; - break; - } - } - }) ? 19 : 18; - break; - case 8: - return this.ba(b71), !1; - break; - case 9: - y6P = this.hm(this.Ib.value) ? 8 : 7; - break; - case 16: - return !1; - break; - case 12: - return this.ba(I71 + JSON.stringify(this.Iu)), !1; - break; - case 10: - return this.ba(R71), !1; - break; - } - } - }; - b.prototype.VQ = function(a) { - var p6P; - p6P = 2; - while (p6P !== 5) { - switch (p6P) { - case 2: - this.vca = a; - this.ja.VQ(a); - p6P = 5; - break; - } - } - }; - b.prototype.lo = function(a) { - var q6P, V71, A71; - q6P = 2; - while (q6P !== 1) { - V71 = "aseexc"; - V71 += "e"; - V71 += "ption"; - A71 = "as"; - A71 += "eex"; - A71 += "ception"; - switch (q6P) { - case 2: - this.emit(A71, { - type: V71, - msg: a - }); - q6P = 1; - break; - } - } - }; - b.prototype.z3a = function(a, b, c, d) { - var x6P, m71, C71; - x6P = 2; - while (x6P !== 5) { - m71 = "maxv"; - m71 += "ideo"; - m71 += "bitratechanged"; - C71 = "maxvideobi"; - C71 += "tratec"; - C71 += "hang"; - C71 += "ed"; - switch (x6P) { - case 2: - a = { - type: C71, - time: F.time.la(), - spts: d, - maxvb_old: a, - maxvb: b, - reason: c - }; - this.emit(m71, a); - x6P = 5; - break; - } - } - }; - b.prototype.rca = function(a, b, d) { - var J9P, g, h; - J9P = 2; - while (J9P !== 3) { - switch (J9P) { - case 2: - g = !0; - d.some(function(d) { - var U9P, f; - U9P = 2; - while (U9P !== 8) { - switch (U9P) { - case 1: - U9P = a === d.profile ? 5 : 8; - break; - case 2: - U9P = 1; - break; - case 5: - f = d.ranges; - g = c.S(f) ? b >= d.min && b <= d.max : f.some(function(a) { - var W9P; - W9P = 2; - while (W9P !== 1) { - switch (W9P) { - case 2: - return b >= a.min && b <= a.max; - break; - case 4: - return b > a.min || b >= a.max; - break; - W9P = 1; - break; - } - } - }); - !g && d.disallowed && d.disallowed.some(function(a) { - var e9P; - e9P = 2; - while (e9P !== 5) { - switch (e9P) { - case 2: - e9P = a.stream.bitrate === b ? 1 : 5; - break; - case 1: - return h = a.disallowedBy, !0; - break; - } - } - }); - return !0; - break; - } - } - }); - J9P = 4; - break; - case 4: - return { - inRange: g, - Cz: h - }; - break; - case 14: - return { - inRange: g, - Cz: h - }; - break; - J9P = 3; - break; - } - } - }; - A3P = 79; - break; - case 113: - b.prototype.AW = function() { - var B9P, a; - B9P = 2; - while (B9P !== 6) { - switch (B9P) { - case 7: - this.vg(); - B9P = 6; - break; - case 2: - a = this.H; - this.ja.Yd.forEach(function(a) { - var M9P; - M9P = 2; - while (M9P !== 1) { - switch (M9P) { - case 2: - delete a.seeking; - M9P = 1; - break; - case 4: - !a.seeking; - M9P = 7; - break; - M9P = 1; - break; - } - } - }); - this.hm(this.Ib.value) && (a.Zd && this.ja.Yd.forEach(function(a) { - var S9P, b, r71, G71, B71, o71, Q71, Z71, X71, H71, w71, v71, Y71, t71; - S9P = 2; - while (S9P !== 3) { - r71 = ", ne"; - r71 += "xtAppe"; - r71 += "ndPts:"; - r71 += " "; - G71 = ","; - G71 += " toAppend:"; - G71 += " "; - B71 = ","; - B71 += " sent"; - B71 += "Da"; - B71 += "ta"; - B71 += ": "; - o71 = ", comp"; - o71 += "leteStreami"; - o71 += "ngPts: "; - Q71 = ", str"; - Q71 += "eamin"; - Q71 += "gPt"; - Q71 += "s:"; - Q71 += " "; - Z71 = ", "; - Z71 += "partials:"; - Z71 += " "; - X71 = ", "; - X71 += "tota"; - X71 += "lBuffer"; - X71 += "Bytes: "; - H71 = ", totalBu"; - H71 += "ff"; - H71 += "erMs: "; - w71 = ", a"; - w71 += "pp"; - w71 += "endedBufferByte"; - w71 += "s:"; - w71 += " "; - v71 = ", appe"; - v71 += "n"; - v71 += "de"; - v71 += "dBufferMs: "; - Y71 = ", buffe"; - Y71 += "rLe"; - Y71 += "velByt"; - Y71 += "e"; - Y71 += "s: "; - t71 = "bufferingComplete"; - t71 += ": , "; - t71 += "mediaType: "; - switch (S9P) { - case 2: - b = this.Se[a.O]; - a = t71 + a.O + Y71 + a.Gh + v71 + a.pv + w71 + a.gM + H71 + a.PB + X71 + a.Yt + Z71 + a.Ia.yt + Q71 + a.Ka + o71 + a.nz + B71 + JSON.stringify(a.Ia.fb.Ta) + G71 + JSON.stringify(b.Dh) + r71 + b.IIa; - S9P = 4; - break; - case 4: - this.ug(a); - S9P = 3; - break; - } - } - }.bind(this)), this.OIa()); - this.$D(); - this.qy && (clearTimeout(this.qy), delete this.qy); - this.Ib.set(h.xa.nf); - B9P = 7; - break; - } - } - }; - b.prototype.Yea = function(a, b) { - var N9P, L9P; - N9P = 2; - while (N9P !== 7) { - switch (N9P) { - case 2: - a.fg = !0; - a.fa = c.da(b) ? b : a.Ka; - a.fu = !1; - this.oV(a); - this.Ku(); - N9P = 9; - break; - case 8: - try { - L9P = 2; - while (L9P !== 1) { - switch (L9P) { - case 2: - this.XZ(h.xa.jy, { - fa: a.fa - }); - L9P = 1; - break; - } - } - } catch (ha) { - var g71; - g71 = "Hindsi"; - g71 += "ght:"; - g71 += " Error evaluating QoE at e"; - g71 += "ndOf"; - g71 += "Stream: "; - v7AA.u91(0); - this.lo(v7AA.s91(g71, ha)); - } - N9P = 7; - break; - case 9: - N9P = this.Lk && a.O === h.G.VIDEO ? 8 : 7; - break; - } - } - }; - b.prototype.bKa = function() { - var g9P, a; - g9P = 2; - while (g9P !== 4) { - switch (g9P) { - case 2: - a = this.La.Hb; - a && (a = a.get()) && a.avtp && this.Lq.GLa({ - avtp: a.avtp.ta - }); - g9P = 4; - break; - } - } - }; - b.prototype.HKa = function(a) { - var P9P, b, c, E71, z71, d71; - P9P = 2; - while (P9P !== 9) { - E71 = "fai"; - E71 += "led to s"; - E71 += "tart video p"; - E71 += "ipel"; - E71 += "ine"; - z71 = "fa"; - z71 += "i"; - z71 += "led to start audio pipeline"; - d71 = "startup, playerState no "; - d71 += "longer START"; - d71 += "ING:"; - switch (P9P) { - case 4: - c = b[h.G.AUDIO]; - this.afa(a, b[h.G.VIDEO]) ? this.afa(a, c) ? (this.uea = !0, this.Ca[0].Lka = !0, b = this.Wa.rb[h.G.VIDEO], c = this.Wa.rb[h.G.AUDIO], (0 < b.Qm || 0 < c.Qm) && this.UIa(a, c.Qm, b.Qm, c.fH, b.fH), this.Ib.value != h.xa.ng ? this.ba(d71, this.Ib.value) : (this.GL(0), this.YIa())) : this.ba(z71) : this.ba(E71); - P9P = 9; - break; - case 2: - this.Ib.set(h.xa.ng); - b = this.ja.Yd; - P9P = 4; - break; - } - } - }; - b.prototype.afa = function(a, b) { - var z9P, d, g, f, U71, J71; - z9P = 2; - while (z9P !== 12) { - U71 = "NFErr_"; - U71 += "MC_"; - U71 += "St"; - U71 += "reamingIn"; - U71 += "itFailure"; - J71 = "star"; - J71 += "tPipeline "; - J71 += "fa"; - J71 += "il"; - J71 += "ed"; - switch (z9P) { - case 9: - g = b.Nc[g]; - z9P = 8; - break; - case 6: - f = this.RK(d, g.$k, g.ki); - z9P = 14; - break; - case 3: - return this.Kd() || this.Aj(J71, U71), !1; - break; - case 2: - d = b.O; - g = this.Wa.gO(b).rh; - z9P = 4; - break; - case 7: - return !0; - break; - case 4: - z9P = c.S(g) ? 3 : 9; - break; - case 8: - z9P = this.Ge[d][g.id] ? 7 : 6; - break; - case 14: - this.FD(b, a, g, { - offset: 0, - ga: f, - Qv: !this.Ii && !this.Hca && d === h.G.VIDEO, - Qs: !this.Wa.rb[d].HVa - }); - return !0; - break; - } - } - }; - b.prototype.GL = function(a) { - var D9P, b, c, d; - D9P = 2; - while (D9P !== 11) { - switch (D9P) { - case 2: - c = this.H; - b = this.Wa.rb[h.G.AUDIO]; - d = this.Wa.rb[h.G.VIDEO]; - D9P = 3; - break; - case 3: - b.uE = void 0; - d.uE = void 0; - this.Ib.set(2 === a ? h.xa.qr : h.xa.Yq); - this.PIa(); - D9P = 6; - break; - case 6: - this.ja.Yd.forEach(function(b) { - var m9P; - m9P = 2; - while (m9P !== 5) { - switch (m9P) { - case 2: - b.bY = 0; - b.seeking = 0 === a || 1 === a; - m9P = 5; - break; - } - } - }); - this.kV = F.time.la(); - b.Bk = d.Bk = this.kV; - D9P = 12; - break; - case 12: - 0 === a && 0 < d.Qm && 0 < b.Qm && (b = this.Ku()) && c.SM ? (this.av && (clearTimeout(this.av), delete this.av), this.mW = !0) : (c.lF && (this.xV = setTimeout(function() { - var t9P; - t9P = 2; - while (t9P !== 1) { - switch (t9P) { - case 2: - this.bKa(); - t9P = 1; - break; - case 4: - this.bKa(); - t9P = 5; - break; - t9P = 1; - break; - } - } - }.bind(this), c.KZ)), this.hm(this.Ib.value) && (this.qy = setTimeout(function() { - var l9P; - l9P = 2; - while (l9P !== 1) { - switch (l9P) { - case 4: - this.Ku(); - l9P = 7; - break; - l9P = 1; - break; - case 2: - this.Ku(); - l9P = 1; - break; - } - } - }.bind(this), c.VA)), this.vg()); - D9P = 11; - break; - } - } - }; - b.prototype.hm = function(a) { - var C9P; - C9P = 2; - while (C9P !== 1) { - switch (C9P) { - case 2: - return a === h.xa.Yq || a === h.xa.qr; - break; - } - } - }; - b.prototype.UW = function() { - var s9P, L71; - s9P = 2; - while (s9P !== 4) { - L71 = "wipe"; - L71 += "Head"; - L71 += "e"; - L71 += "r"; - L71 += "Cache"; - switch (s9P) { - case 2: - this.H.Zd && this.ug(L71); - this.La.sga(); - this.pg && delete this.pg; - s9P = 4; - break; - } - } - }; - b.prototype.Cca = function(a) { - var R9P, b, d, g, F71, e71; - R9P = 2; - while (R9P !== 6) { - F71 = "chec"; - F71 += "kFo"; - F71 += "rHcdStart"; - e71 = "c"; - e71 += "a"; - e71 += "t"; - e71 += "c"; - e71 += "h"; - switch (R9P) { - case 7: - return this.La.uc.y1a(a).then(g)[e71](function(a) { - var X9P; - X9P = 2; - while (X9P !== 1) { - switch (X9P) { - case 2: - this.ba(a); - X9P = 1; - break; - case 4: - this.ba(a); - X9P = 8; - break; - X9P = 1; - break; - } - } - }.bind(this)); - break; - case 5: - R9P = !this.eLa || !this.La.uc ? 4 : 3; - break; - case 2: - b = this.H; - R9P = 5; - break; - case 4: - return this.La.hOa(), t.resolve(); - break; - case 3: - d = function(a, b) { - var T9P, d, g, f, m, l, p, i71; - T9P = 2; - while (T9P !== 13) { - i71 = "adopt"; - i71 += "Pipeline no hea"; - i71 += "d"; - i71 += "er for st"; - i71 += "reamId:"; - switch (T9P) { - case 9: - T9P = p && (g = p.ib, d = p.pi.stream, c.S(b.Ol) || this.ec.jra(b.Ol, b.Qk, b.Qj), m.Em = b.Em, m.Nk = b.Nk, m.n_a = b.Ol, a.Fcb(g)) ? 8 : 13; - break; - case 4: - l = !this.Ii && !this.Hca && f === h.G.VIDEO; - p = b[f]; - T9P = 9; - break; - case 8: - T9P = !p.pi ? 7 : 6; - break; - case 2: - f = a.O; - m = this.Wa.rb[f]; - T9P = 4; - break; - case 7: - a.Yb(i71, g); - T9P = 13; - break; - case 14: - return b = this.Ge[f][g].T, b = b.Ll(a.Ka, void 0, !0), l = d.Vi(b), d = l.X, a.m5() && (l = l.l_(a.Ka)) && 0 < l.Qb && (d = l.Qb), a.Ka !== d && (a.Ka = d, a.ih = b, this.zW(f, d)), this.lGa(a, p.data), m.HVa = !0, f === h.G.AUDIO && this.ec.sB(p.pi.J), g; - break; - case 6: - T9P = this.mca(a, this.Bc, p.pi, l, !0) ? 14 : 13; - break; - } - } - }.bind(this); - g = function(a) { - var y9P, g, f, y71, P71, x71; - y9P = 2; - while (y9P !== 13) { - y71 = "ad"; - y71 += "optHc"; - y71 += "d"; - y71 += "E"; - y71 += "nd"; - P71 = "adop"; - P71 += "tHcd"; - P71 += "St"; - P71 += "a"; - P71 += "rt"; - x71 = "che"; - x71 += "c"; - x71 += "kForHcdE"; - x71 += "nd"; - switch (y9P) { - case 1: - this.kp(x71); - y9P = 5; - break; - case 5: - y9P = c.S(a) ? 4 : 3; - break; - case 2: - y9P = 1; - break; - case 4: - b.eE || this.UW(); - y9P = 13; - break; - case 3: - g = this.ja.Yd; - f = g[h.G.AUDIO]; - g = g[h.G.VIDEO]; - this.kp(P71); - b.zZa ? c.S(d(g, a)) || d(f, a) : (d(g, a), d(f, a)); - this.kp(y71); - y9P = 13; - break; - } - } - }.bind(this); - this.kp(F71); - R9P = 7; - break; - } - } - }; - b.prototype.MGa = function(a, b, c, d, g) { - var p9P; - p9P = 2; - while (p9P !== 1) { - switch (p9P) { - case 2: - return this.dLa && this.La.uc && (c = this.La.uc.M1(c, d)) && this.mca(a, b, c, !1, g) ? !0 : !1; - break; - } - } - }; - b.prototype.mca = function(a, b, c, d, g) { - var q9P, h, f, O71; - q9P = 2; - while (q9P !== 11) { - O71 = "h"; - O71 += "ead"; - O71 += "erc"; - O71 += "ache"; - switch (q9P) { - case 4: - q9P = d != !(!c.Ti && !c.Umb) ? 3 : 9; - break; - case 3: - return !1; - break; - case 2: - h = this.Ca[b].pe[a.O].Xm; - f = c.ib; - q9P = 4; - break; - case 9: - this.Ge[a.O][f] = c; - c.lMa(h[f]); - this.lca(a, c); - c.Ti && (c.Ti.source = O71, this.LV(a, b, c.Ti)); - g && this.VIa(c.M, c.ib); - q9P = 13; - break; - case 13: - a.zt && a.yo(a.OP); - return !0; - break; - } - } - }; - b.prototype.lGa = function(a, b) { - var x9P, m, l, p, d, g, f, r, s71, f71; - x9P = 2; - while (x9P !== 19) { - s71 = "adoptData, not "; - s71 += "adopting"; - s71 += " fa"; - s71 += "iled mediaR"; - s71 += "equest:"; - f71 = "adoptD"; - f71 += "at"; - f71 += "a,"; - f71 += " not adopting aborted "; - f71 += "mediaRequest:"; - switch (x9P) { - case 6: - x9P = 0 < b.length ? 14 : 12; - break; - case 5: - d = this.Ca[0]; - g = a.jc; - f = g.na; - g = Math.min(d.fa || Infinity, g.fa || Infinity); - this.dV = !0; - x9P = 7; - break; - case 7: - m = a.O, l = this.Wa.rb[m]; - x9P = 6; - break; - case 1: - x9P = 0 !== b.length ? 5 : 19; - break; - case 14: - r = b.shift(); - x9P = 13; - break; - case 2: - x9P = 1; - break; - case 13: - r.readyState === T.Va.$l ? a.ba(f71, r.toString()) : r.readyState === T.Va.bm ? (a.ba(s71, r.toString()), this.zr(a, r, !1)) : a.Ka >= r.hb && a.Ka < r.Lg && (a.Ka < g || !c.da(g)) ? (this.mGa(a, r), a.Ka = r.Lg, c.da(g) && a.Ka >= g && this.dW(f, r.Lg), m === h.G.AUDIO && this.ec.sB(r.J), r.complete ? (l.Qm += r.Lg - r.hb, r.Y0a && (l.fH += r.Lg - r.hb), p = r) : (this.pg || (this.pg = []), this.pg.push(r))) : this.zr(a, r, !1); - x9P = 6; - break; - case 12: - p && this.Gda(p); - this.dV = !1; - a.ih = this.XK(m, a.jc.Da, a.Ka); - a.wf = d.Vb[m].stream.Vi(a.ih); - x9P = 19; - break; - } - } - }; - b.prototype.mGa = function(a, b) { - var J4P, c, k71, u71, W71; - J4P = 2; - while (J4P !== 9) { - k71 = ", p"; - k71 += "t"; - k71 += "s: "; - u71 = ", "; - u71 += "s"; - u71 += "tate"; - u71 += ": "; - W71 = "adopt"; - W71 += "Media"; - W71 += "Request: "; - W71 += "type: "; - switch (J4P) { - case 2: - c = a.O; - this.H.Zd && this.ug(W71 + c + u71 + b.readyState + k71 + b.hb); - this.zW(c, b.hb); - J4P = 3; - break; - case 3: - a.Ia.mMa(this, b); - J4P = 9; - break; - } - } - }; - b.prototype.FD = function(a, b, c, d) { - var U4P, g, h, f, j71, l71; - U4P = 2; - while (U4P !== 20) { - j71 = "NFErr_M"; - j71 += "C_Stream"; - j71 += "ing"; - j71 += "Fa"; - j71 += "ilure"; - l71 = "MediaRequ"; - l71 += "est o"; - l71 += "pen "; - l71 += "failed (2)"; - switch (U4P) { - case 2: - g = c.id; - U4P = 5; - break; - case 5: - U4P = this.MGa(a, c.Da, b, g, d.Qs) ? 4 : 3; - break; - case 3: - b = a.O; - h = !!d.Qv; - f = this.Wa.rb[b]; - U4P = 7; - break; - case 7: - h = d.Qs && !h ? f.Si : this.xD; - c.Wb && !f.kw && (this.gea(a, c.Wb, c.QQ, c.location, c.J), f.kw = c.Wb); - c.url && (f.r1 = c.url); - d.pi = !0; - a = a.Ia.KM(this, this.ja.xm, d, h, c); - this.Ge[b][g] = a; - U4P = 10; - break; - case 4: - this.vg(); - U4P = 20; - break; - case 10: - a.open() ? this.vg() : this.Aj(l71, j71); - U4P = 20; - break; - } - } - }; - b.prototype.tW = function(a, b, c) { - var W4P, d, g; - W4P = 2; - while (W4P !== 8) { - switch (W4P) { - case 2: - d = this.Ca[b]; - g = d.fo; - this.ja.Yd.forEach(function(b) { - var e4P, f, m, l, S01, a01; - e4P = 2; - while (e4P !== 7) { - S01 = "requestHeadersFromManifest"; - S01 += ", unable to update"; - S01 += " urls"; - a01 = "requestHeadersFromMa"; - a01 += "nifest, shut"; - a01 += "d"; - a01 += "own detected"; - switch (e4P) { - case 2: - f = b.O; - m = c[f]; - e4P = 4; - break; - case 4: - e4P = this.Kd() ? 3 : 9; - break; - case 3: - this.ba(a01); - e4P = 7; - break; - case 9: - l = this.Wa.BA(b); - (l = g.NR(l, m.Nc)) ? (m.Nc = l, l = this.Wa.rb[f], l = this.qda(m.Nc, l.Im ? l.Im.J : 0), m = m.Nc[l], (l = this.Ge[f][m.id]) && l.T ? this.bLa(b, d, l) : (f = { - offset: 0, - ga: this.RK(f, m.$k, m.ki), - yB: !1, - Qv: f === h.G.VIDEO, - Qs: !0 - }, this.FD(b, a, m, f))) : b.ba(S01); - e4P = 7; - break; - } - } - }.bind(this)); - d.Lka = !0; - this.oD(d, b); - W4P = 8; - break; - } - } - }; - b.prototype.PHa = function(a) { - var Z4P; - Z4P = 2; - while (Z4P !== 1) { - switch (Z4P) { - case 2: - delete this.Ge[a.O][a.ib]; - Z4P = 1; - break; - } - } - }; - b.prototype.XK = function(a, b, c) { - var F4P, d; - F4P = 2; - while (F4P !== 6) { - switch (F4P) { - case 2: - b = this.Ca[b]; - d = b.Vb[a]; - F4P = 4; - break; - case 4: - F4P = d ? 3 : 8; - break; - case 9: - return c; - break; - case 3: - F4P = (c = d.T.Ll(c), -1 !== c) ? 9 : 6; - break; - case 7: - v7AA.u91(2); - return Math.round(v7AA.f91(a, c)); - break; - case 8: - F4P = (a = b.Bp[a]) ? 7 : 6; - break; - } - } - }; - b.prototype.lca = function(a, b) { - var o4P, c, d, g, f, m, l, p, r, D01, N01, p01; - o4P = 2; - while (o4P !== 22) { - D01 = "c"; - D01 += "o"; - D01 += "un"; - D01 += "t"; - D01 += ":"; - N01 = "addFragment"; - N01 += "s fo"; - N01 += "r stale ma"; - N01 += "nifestIndex"; - N01 += ":"; - p01 = "firstHe"; - p01 += "ader, but initialHeader al"; - p01 += "re"; - p01 += "ady s"; - p01 += "et to:"; - switch (o4P) { - case 9: - o4P = d >= this.Ca.length ? 8 : 7; - break; - case 2: - c = a.O; - d = b.Da; - g = b.ib; - f = b.T; - o4P = 9; - break; - case 7: - m = b.$m ? 60 : f.length; - v7AA.W91(3); - l = f.get(v7AA.f91(1, m)); - p = l.X + l.duration; - r = this.Ca[d]; - b.Bp = f.bz; - b.Km = { - aj: p, - j0a: l.X, - lastIndex: m - 1 - }; - o4P = 10; - break; - case 10: - r.Bp[c] = f.bz; - r.h2[c] = f.Zma; - b.VG && (b.VG.forEach(function(a) { - var w4P; - w4P = 2; - while (w4P !== 5) { - switch (w4P) { - case 2: - a = this.Ca[a].pe[c].Xm; - a[g] && a[g] !== b.stream && (a[g].T = b.T, a[g].$m = b.$m, a[g].If = b.bc); - w4P = 5; - break; - } - } - }.bind(this)), delete b.VG); - m = r.pe[c].Xm[g]; - l = S(f, this.H.CG, this.La.ol[a.O]); - this.H.VH ? m.Ok = l : m.ZQ = !l; - void 0 === m.tG && (m.tG = A(f)); - o4P = 27; - break; - case 27: - r.Vb[c] ? b.Qs ? a.ba(p01, r.Vb[c]) : r.Vb[c].Jsa && (r.Vb[c].Jsa = !1, r.Vb[c] = b, delete a.wf, delete a.Rk, r.fQ = !1, this.oD(r, d), a.yo(a.Ka)) : (r.Vb[c] = b, 0 === d && this.DK(d, this.ja.Ml(h.G.VIDEO).Ka, this.ja.xm), this.oD(r, d)); - this.Sy(this.Bc + 1); - this.BV(); - o4P = 24; - break; - case 8: - this.ba(N01, d, D01, this.Ca.length); - o4P = 22; - break; - case 24: - b.$m || this.dJa(d, c, g, r.M, f); - this.vg(); - o4P = 22; - break; - } - } - }; - b.prototype.oD = function(a, b) { - var G4P, c, d; - G4P = 2; - while (G4P !== 19) { - switch (G4P) { - case 2: - G4P = 1; - break; - case 1: - G4P = !a.fQ && a.Vb[0] && a.Vb[1] ? 5 : 19; - break; - case 5: - this.PW(a, b); - d = [0, 0]; - 0 === b || a.vG || a.replace || (c = this.DK(b, a.X, this.ja.xm, this.ja.xm, a.M === this.Ca[b - 1].M), d = c.$A); - a.X = d[h.G.VIDEO]; - G4P = 8; - break; - case 13: - a.fQ = !0; - G4P = 12; - break; - case 8: - a.$A = d; - a.Wp = c && c.Wp; - this.Aca(b); - this.$Ia(b, a.Rl, a.X, a.Km.aj, a.Vb[h.G.VIDEO].Km.aj); - G4P = 13; - break; - case 11: - G4P = a < this.Ca.length ? 10 : 19; - break; - case 10: - b = this.Ca[a], b.fQ = !1, this.oD(b, a); - G4P = 20; - break; - case 20: - ++a; - G4P = 11; - break; - case 12: - v7AA.u91(0); - a = v7AA.s91(b, 1); - G4P = 11; - break; - } - } - }; - b.prototype.Bda = function(a) { - var H4P; - H4P = 2; - while (H4P !== 1) { - switch (H4P) { - case 2: - return a.Km ? a.Km.aj : a.fa ? a.fa : a.Sa.duration; - break; - } - } - }; - b.prototype.Aca = function(a) { - var A4P, b; - A4P = 2; - while (A4P !== 4) { - switch (A4P) { - case 2: - b = this.Ca[a]; - 0 === a || b.replace ? b.Rl = 0 : (a = this.Ca[a - 1], b.Rl = a.Rl + this.Bda(a) - b.X); - A4P = 4; - break; - } - } - }; - b.prototype.PW = function(a, b) { - var V4P, c, d, g, f, m, l, p; - V4P = 2; - while (V4P !== 20) { - switch (V4P) { - case 2: - c = this.H; - V4P = 5; - break; - case 5: - V4P = a.Vb[0] && a.Vb[1] ? 4 : 20; - break; - case 14: - p.length && (a.wpb = p); - c = !c.Vm || c.Sp ? l[h.G.VIDEO] : this.iKa(l[h.G.AUDIO], l[h.G.VIDEO]); - a.Km = c; - this.bJa(b, a.Vb[h.G.VIDEO].Km.aj, c.aj); - b === this.ja.Fha && ((b = g.jc.na.fa) && b < m && (p = this.sD(d, a.Vb, b)), g.TQ(p[h.G.VIDEO]), f.TQ(p[h.G.AUDIO])); - V4P = 20; - break; - case 4: - d = this.ja.Yd; - g = d[h.G.VIDEO]; - f = d[h.G.AUDIO]; - m = a.fa || Infinity; - p = this.sD(d, a.Vb, m); - l = p.map(function(a) { - var K4P; - K4P = 2; - while (K4P !== 1) { - switch (K4P) { - case 2: - return { - aj: a.fa, - j0a: a.X, - lastIndex: a.index - }; - break; - } - } - }); - V4P = 14; - break; - } - } - }; - A3P = 122; - break; - case 54: - b.prototype.fka = function() { - var D3P, a; - D3P = 2; - while (D3P !== 4) { - switch (D3P) { - case 2: - a = this.ja.yi; - return { - id: a.na.id, - Ub: a.Ub, - qc: a.qc, - df: a.df, - Ri: a.Ri, - Ij: a.Ij - }; - break; - } - } - }; - b.prototype.g6 = function(a, b) { - var m3P; - m3P = 2; - while (m3P !== 1) { - switch (m3P) { - case 4: - return this.ja.g6(a, b); - break; - m3P = 1; - break; - case 2: - return this.ja.g6(a, b); - break; - } - } - }; - b.prototype.oGa = function(a, b) { - var t3P, b01, c01, q01, M01, n01, h01, T01, K01; - t3P = 2; - while (t3P !== 8) { - b01 = "using"; - b01 += " "; - b01 += "sab cell >= 100, pipelineEnabled: "; - c01 = "using sab "; - c01 += "cell"; - c01 += " >= 200, pipelineEnabled: "; - q01 = ", "; - q01 += "al"; - q01 += "low"; - q01 += "Switchback"; - M01 = ", probeDet"; - M01 += "ail"; - M01 += "Deno"; - M01 += "minator: "; - n01 = "using"; - n01 += " sab cell >= 300, pro"; - n01 += "beServerWhe"; - n01 += "nError: "; - h01 = ", allow"; - h01 += "Swit"; - h01 += "chback"; - T01 = ", probeDetailDenomi"; - T01 += "n"; - T01 += "ator: "; - K01 = "using sab ce"; - K01 += "ll >= 4"; - K01 += "00, probeServerWhenE"; - K01 += "rror: "; - switch (t3P) { - case 5: - t3P = !a ? 4 : 3; - break; - case 3: - (a = a.sessionABTestCell) && (a = a.split(".")) && 1 < a.length && (a = parseInt(a[1].replace(/cell/i, ""), 10), 400 <= a ? (b.set ? (b.set({ - probeServerWhenError: !0 - }), b.set({ - probeDetailDenominator: 1 - }), b.set({ - allowSwitchback: !0 - })) : (b.so = !0, b.Uw = 1, b.zp = !0), this.wc(K01 + b.so + T01 + b.Uw + h01 + b.zp)) : 300 <= a ? (b.set ? (b.set({ - probeServerWhenError: !0 - }), b.set({ - probeDetailDenominator: 1 - }), b.set({ - allowSwitchback: !1 - })) : (b.so = !0, b.Uw = 1, b.zp = !1), this.wc(n01 + b.so + M01 + b.Uw + q01 + b.zp)) : 200 <= a ? (b.set ? b.set({ - pipelineEnabled: !1 - }) : b.Pm = !1, this.wc(c01 + b.Pm)) : 100 <= a && (b.set ? (b.set({ - pipelineEnabled: !0 - }), b.set({ - maxParallelConnections: 1 - }), b.set({ - maxActiveRequestsPerSession: b.fP - }), b.set({ - maxPendingBufferLen: b.kP - })) : (b.Pm = !0, b.qw = 1, b.qG = b.fP, b.DA = b.kP), this.wc(b01 + b.Pm))); - return b; - break; - case 2: - b = y(b, a); - a = a.cdnResponseData; - t3P = 5; - break; - case 4: - return b; - break; - } - } - }; - b.prototype.qGa = function(a, b) { - var l3P, d, g; - l3P = 2; - while (l3P !== 8) { - switch (l3P) { - case 2: - l3P = 1; - break; - case 1: - l3P = !b.RY || a === this.aIa ? 5 : 4; - break; - case 5: - return b; - break; - case 3: - for (var c in b.RY) - if (new RegExp(c).test(a)) { - d = b.RY[c]; - for (g in d) { - d.hasOwnProperty(g) && (b[g] = d[g]); - } - } return b; - break; - case 4: - this.aIa = a; - l3P = 3; - break; - } - } - }; - b.prototype.qV = function(a, b, c, d, g, h) { - var C3P, f, l, p, r, V01, A01, R01, I01; - C3P = 2; - while (C3P !== 9) { - V01 = "networkFail"; - V01 += "u"; - V01 += "reR"; - V01 += "e"; - V01 += "set"; - A01 = "str"; - A01 += "eamingFail"; - A01 += "ure"; - R01 = "l"; - R01 += "o"; - R01 += "gdata"; - I01 = "locati"; - I01 += "onSel"; - I01 += "ected"; - switch (C3P) { - case 2: - f = this.H; - h ? (r = this.Ca[this.Ca.length - 1], l = r.x1, p = r.fo, r = r.Mz, p.dM(b)) : (l = new m(), p = this.Qca(b, this.Ii), l.on(p, I01, this.eea, this), l.on(p, R01, function(a) { - var s3P; - s3P = 2; - while (s3P !== 1) { - switch (s3P) { - case 2: - D(this, a.type, a); - s3P = 1; - break; - case 4: - D(this, a.type, a); - s3P = 4; - break; - s3P = 1; - break; - } - } - }, this), r = new C(this, p, this.H), l.on(r, A01, this.NHa, this), l.on(r, V01, this.KHa, this)); - f.Qn && this.An && r.N9a(this.An); - return { - M: a, - Sa: b, - replace: h, - pe: g, - Vb: [], - Bp: [], - h2: [], - X: c, - fa: d, - Rl: 0, - x1: l, - fo: p, - Mz: r - }; - break; - } - } - }; - b.prototype.PGa = function(a) { - var R3P; - R3P = 2; - while (R3P !== 1) { - switch (R3P) { - case 2: - return this.qV(a.M, a.Sa, a.X, a.fa, a.pe); - break; - } - } - }; - b.prototype.bLa = function(a, b, c) { - var T3P; - T3P = 2; - while (T3P !== 3) { - switch (T3P) { - case 2: - a = a.O; - b.Vb[a] = c; - b.Bp[a] = c.Bp; - b.h2[a] = c.T ? c.T.Zma : c.Bp; - T3P = 3; - break; - } - } - }; - b.prototype.NGa = function() { - var y3P, a, b; - y3P = 2; - while (y3P !== 9) { - switch (y3P) { - case 2: - b = 0; - y3P = 1; - break; - case 3: - this.Ca.length = 0; - y3P = 9; - break; - case 1: - y3P = b < this.Ca.length ? 5 : 3; - break; - case 5: - a = this.Ca[b], a.x1.clear(); - y3P = 4; - break; - case 4: - ++b; - y3P = 1; - break; - } - } - }; - b.prototype.Qca = function(a, b) { - var X3P; - X3P = 2; - while (X3P !== 4) { - switch (X3P) { - case 7: - return b; - break; - X3P = 4; - break; - case 5: - return b; - break; - case 2: - b = new r(this, this.La.Hb, this.La.Jf, !b, this.H); - b.dM(a); - X3P = 5; - break; - } - } - }; - b.prototype.open = function() { - var p3P, a, b, d, g, f, m, l, p, g01, r01, G01, B01, o01, t01, m01, C01; - p3P = 2; - while (p3P !== 21) { - g01 = "NFErr_MC_"; - g01 += "Streamin"; - g01 += "gInitFailure"; - r01 = "ex"; - r01 += "ce"; - r01 += "ption"; - r01 += " i"; - r01 += "n init"; - G01 = "Er"; - G01 += "r"; - G01 += "or"; - G01 += ":"; - B01 = "NFErr_M"; - B01 += "C_StreamingInitFa"; - B01 += "i"; - B01 += "lure"; - o01 = "start"; - o01 += "Pts mus"; - o01 += "t be a positive number"; - o01 += ", not "; - t01 = "cre"; - t01 += "ateM"; - t01 += "ed"; - t01 += "iaSourceE"; - t01 += "nd"; - m01 = "E"; - m01 += "r"; - m01 += "ror:"; - C01 = "c"; - C01 += "reateMe"; - C01 += "diaSource"; - C01 += "Start"; - switch (p3P) { - case 12: - m = this.Oca(d); - d.forEach(function(a, b) { - var q3P; - q3P = 2; - while (q3P !== 1) { - switch (q3P) { - case 2: - a.type == N.cT ? this.xD = m[b] : this.Wa.rb[a.type].Si = m[b]; - q3P = 1; - break; - } - } - }.bind(this)); - this.kp(C01); - p3P = 20; - break; - case 23: - a.QSa ? setTimeout(function() { - var Z6P; - Z6P = 2; - while (Z6P !== 1) { - switch (Z6P) { - case 4: - this.Cca(g).then(p); - Z6P = 2; - break; - Z6P = 1; - break; - case 2: - this.Cca(g).then(p); - Z6P = 1; - break; - } - } - }.bind(this), 0) : this.Cca(g).then(function() { - var F6P; - F6P = 2; - while (F6P !== 1) { - switch (F6P) { - case 2: - setTimeout(p, 0); - F6P = 1; - break; - case 4: - setTimeout(p, 6); - F6P = 3; - break; - F6P = 1; - break; - } - } - }); - p3P = 21; - break; - case 20: - l = new Z(this.Hy); - p3P = 19; - break; - case 15: - throw this.wc(m01, l.error), l.error; - p3P = 27; - break; - case 4: - a = this.H; - b = [h.G.VIDEO, h.G.AUDIO]; - d = this.tda(); - p3P = 8; - break; - case 1: - p3P = !c.da(this.Li) || 0 > this.Li ? 5 : 4; - break; - case 19: - p3P = l.readyState === F.MediaSource.Va.OPEN ? 18 : 22; - break; - case 8: - g = this.xl; - this.Ou = 0; - this.vKa(); - p3P = 14; - break; - case 2: - p3P = 1; - break; - case 14: - f = a.eE; - this.La.uc && this.La.uc.fE(f, this.wj.sessionId); - p3P = 12; - break; - case 18: - this.kp(t01); - this.Kf = l; - p3P = 16; - break; - case 16: - p3P = !l.kX(b) ? 15 : 27; - break; - case 27: - l.sourceBuffers.forEach(function(b) { - var x3P, c, Z01, X01, w01, v01, Y01; - x3P = 2; - while (x3P !== 14) { - Z01 = "mana"; - Z01 += "ger"; - Z01 += "d"; - Z01 += "ebugevent"; - X01 = "lo"; - X01 += "gda"; - X01 += "t"; - X01 += "a"; - w01 = "e"; - w01 += "r"; - w01 += "r"; - w01 += "o"; - w01 += "r"; - v01 = "request"; - v01 += "Ap"; - v01 += "pended"; - Y01 = "he"; - Y01 += "ade"; - Y01 += "rAppend"; - Y01 += "e"; - Y01 += "d"; - switch (x3P) { - case 1: - c = b.O; - b = new n(this.Wa.rb[c].V, c, g, l, b, this.Ge[c], a); - b.addEventListener(Y01, this.IHa.bind(this)); - b.addEventListener(v01, this.LHa.bind(this)); - b.addEventListener(w01, function(a) { - var J6P, H01; - J6P = 2; - while (J6P !== 1) { - H01 = "NFErr_MC_Str"; - H01 += "eamingF"; - H01 += "ai"; - H01 += "lure"; - switch (J6P) { - case 4: - this.Aj(a.errorstr, ""); - J6P = 0; - break; - J6P = 1; - break; - case 2: - this.Aj(a.errorstr, H01); - J6P = 1; - break; - } - } - }.bind(this)); - b.addEventListener(X01, function(a) { - var U6P; - U6P = 2; - while (U6P !== 1) { - switch (U6P) { - case 4: - D(this, a.type, a); - U6P = 7; - break; - U6P = 1; - break; - case 2: - D(this, a.type, a); - U6P = 1; - break; - } - } - }.bind(this)); - a.Zd && b.addEventListener(Z01, function(a) { - var W6P; - W6P = 2; - while (W6P !== 1) { - switch (W6P) { - case 4: - D(this, a.type, a); - W6P = 3; - break; - W6P = 1; - break; - case 2: - D(this, a.type, a); - W6P = 1; - break; - } - } - }.bind(this)); - x3P = 6; - break; - case 2: - x3P = 1; - break; - case 6: - this.Se[c] = b; - x3P = 14; - break; - } - } - }.bind(this)); - this.Kj && this.KIa(); - this.ec.l4a(); - p = function() { - var e6P, Q01; - e6P = 2; - while (e6P !== 5) { - Q01 = "shutdown detected"; - Q01 += " before st"; - Q01 += "artReque"; - Q01 += "sts"; - switch (e6P) { - case 2: - this.cJa(); - this.Kd() ? this.ba(Q01) : this.HKa(g); - e6P = 5; - break; - } - } - }.bind(this); - p3P = 23; - break; - case 5: - this.Aj(o01 + this.Li, B01); - p3P = 21; - break; - case 22: - this.wc(G01, l.error), this.Aj(r01, g01); - p3P = 21; - break; - } - } - }; - b.prototype.flush = function() { - var o6P, a, b, c, d, w6P, i01, e01, L01, U01, J01, E01, z01, d01; - o6P = 2; - while (o6P !== 11) { - i01 = "e"; - i01 += "n"; - i01 += "d"; - i01 += "p"; - i01 += "lay"; - e01 = "l"; - e01 += "ogda"; - e01 += "t"; - e01 += "a"; - L01 = "thr"; - L01 += "oughpu"; - L01 += "t-"; - L01 += "sw"; - U01 = "th"; - U01 += "r"; - U01 += "oughpu"; - U01 += "t"; - U01 += "-sw"; - J01 = "thro"; - J01 += "u"; - J01 += "gh"; - J01 += "put-sw"; - E01 = "e"; - E01 += "n"; - E01 += "dp"; - E01 += "lay"; - z01 = "l"; - z01 += "ogd"; - z01 += "at"; - z01 += "a"; - switch (o6P) { - case 3: - c = {}; - for (d in b) { - d01 = "n"; - d01 += "e"; - b.hasOwnProperty(d) && (c[d01 + d] = Number(b[d]).toFixed(6)); - } - evt = { - type: z01, - target: E01, - fields: c - }; - o6P = 7; - break; - case 2: - a = this.H; - b = this.La.Hb; - o6P = 4; - break; - case 4: - o6P = b && (b.flush(), b = b.nXa()) ? 3 : 6; - break; - case 7: - D(this, evt.type, evt); - o6P = 6; - break; - case 6: - a.lF && (b = this.La.Hb) && ((a = b.get(!0)) && a[J01] && this.Lq.QLa({ - avtp: a[U01].ta, - variance: a[L01].cg - }), a && a.avtp && a.Xi && a.Xi.ut && this.Lq.LLa({ - avtp: a.avtp.ta, - niqr: a.Xi.ut.toFixed(4) - }, a.avtp.wTa), a = this.Lq.ZWa(), d = this.Lq.EYa(), a && (a.n = d, a = { - type: e01, - target: i01, - fields: { - ibef: a - } - }, D(this, a.type, a), this.Lq.save())); - this.Kj && this.cea(); - o6P = 13; - break; - case 13: - o6P = this.Lk ? 12 : 11; - break; - case 12: - try { - w6P = 2; - while (w6P !== 1) { - switch (w6P) { - case 4: - this.XZ(h.xa.jy); - w6P = 2; - break; - w6P = 1; - break; - case 2: - this.XZ(h.xa.jy); - w6P = 1; - break; - } - } - } catch (ea) { - var x01; - x01 = "Hindsight: Error eva"; - x01 += "luating QoE at sto"; - x01 += "pping: "; - v7AA.W91(0); - this.lo(v7AA.s91(x01, ea)); - } - o6P = 11; - break; - } - } - }; - b.prototype.paused = function() { - var G6P; - G6P = 2; - while (G6P !== 1) { - switch (G6P) { - case 2: - this.Ib.value === h.xa.nf && this.Ib.set(h.xa.sn); - G6P = 1; - break; - } - } - }; - b.prototype.Csa = function() { - var H6P; - H6P = 2; - while (H6P !== 1) { - switch (H6P) { - case 2: - this.Ib.value === h.xa.sn && this.Ib.set(h.xa.nf); - H6P = 1; - break; - } - } - }; - b.prototype.close = function() { - var A6P, b, c, a, O01, F01, y01, P01; - A6P = 2; - while (A6P !== 18) { - O01 = "stream"; - O01 += "ere"; - O01 += "nd"; - F01 = "c"; - F01 += "l"; - F01 += "o"; - F01 += "s"; - F01 += "e"; - y01 = "end"; - y01 += "p"; - y01 += "la"; - y01 += "y"; - P01 = "l"; - P01 += "ogda"; - P01 += "ta"; - switch (A6P) { - case 14: - A6P = c < b.length ? 13 : 11; - break; - case 10: - D(this, b.type, b); - A6P = 20; - break; - case 11: - b = { - type: P01, - target: y01, - fields: { - bridgestat: b - } - }; - A6P = 10; - break; - case 4: - this.stop(); - this.emit(F01); - this.ev = !1; - A6P = 8; - break; - case 13: - b[c] = b[c] ? b[c].toFixed(1) : 0; - A6P = 12; - break; - case 6: - b = this.ML.cf([.25, .5, .75, .9, .95, .99]), c = 0; - A6P = 14; - break; - case 12: - c++; - A6P = 14; - break; - case 20: - !this.MV && this.La.uc && (this.La.uc.fE(!0, this.wj.sessionId, !0), this.MV = !0, a.d3 && (a = { - type: O01, - time: F.time.la() - }, D(this, a.type, a))); - this.La.ZJa(this); - A6P = 18; - break; - case 2: - a = this.H; - this.HJa = !0; - A6P = 4; - break; - case 8: - A6P = a.kN ? 7 : 20; - break; - case 7: - this.ML.Np(); - A6P = 6; - break; - } - } - }; - b.prototype.ze = function() { - var V6P, a, s01, f01; - V6P = 2; - while (V6P !== 11) { - s01 = "Err"; - s01 += "or o"; - s01 += "n MediaS"; - s01 += "ource des"; - s01 += "troy: "; - f01 = "in"; - f01 += "a"; - f01 += "cti"; - f01 += "v"; - f01 += "e"; - switch (V6P) { - case 4: - this.Gca(); - this.ja.ze(); - this.dHa(); - this.Ib.set(h.xa.iy); - this.NGa(); - V6P = 6; - break; - case 2: - this.ej.removeEventListener(f01, this.Zda); - this.ec.c4a(); - V6P = 4; - break; - case 6: - this.sf.clear(); - a = this.Kf; - delete this.Kf; - c.S(a) || a.ym() || this.ba(s01, a.error); - V6P = 11; - break; - } - } - }; - b.prototype.suspend = function() { - var K6P; - K6P = 2; - while (K6P !== 1) { - switch (K6P) { - case 4: - this.bfa = ~2; - K6P = 7; - break; - K6P = 1; - break; - case 2: - this.bfa = !0; - K6P = 1; - break; - } - } - }; - b.prototype.resume = function() { - var d6P; - d6P = 2; - while (d6P !== 5) { - switch (d6P) { - case 2: - this.bfa = !1; - this.vg(); - d6P = 5; - break; - } - } - }; - b.prototype.Kd = function() { - var r6P; - r6P = 2; - while (r6P !== 1) { - switch (r6P) { - case 4: - return this.HJa && this.ja.E_a; - break; - r6P = 1; - break; - case 2: - return this.HJa || this.ja.E_a; - break; - } - } - }; - b.prototype.tKa = function() { - var u6P, a; - u6P = 2; - while (u6P !== 7) { - switch (u6P) { - case 4: - this.Xr = setTimeout(this.$D.bind(this), a.MR); - this.zK || (this.zK = setInterval(this.dea.bind(this), a.ez)); - this.JL || (this.JL = setInterval(this.nJa.bind(this), a.F5)); - this.Kj && !this.xK && (this.xK = setInterval(this.cea.bind(this), a.BX)); - u6P = 7; - break; - case 2: - a = this.H; - this.Xr && clearTimeout(this.Xr); - u6P = 4; - break; - } - } - }; - b.prototype.vKa = function() { - var Q6P, a, b; - Q6P = 2; - while (Q6P !== 8) { - switch (Q6P) { - case 2: - a = this.H; - Q6P = 5; - break; - case 5: - Q6P = a.DQ ? 4 : 8; - break; - case 4: - this.lD && clearInterval(this.lD); - b = -1; - this.lD = setInterval(function() { - var n6P, a, W01; - n6P = 2; - while (n6P !== 4) { - W01 = "v"; - W01 += "b"; - switch (n6P) { - case 2: - a = this.Wa.rb[h.G.VIDEO]; - (a = a.jt && a.jt.J) && b !== a && (F.storage.set(W01, a), b = a); - n6P = 4; - break; - } - } - }.bind(this), a.DQ); - Q6P = 8; - break; - } - } - }; - b.prototype.Gca = function() { - var f6P; - f6P = 2; - while (f6P !== 7) { - switch (f6P) { - case 3: - this.qy && (clearTimeout(this.qy), delete this.qy); - this.xV && (clearTimeout(this.xV), delete this.xV); - this.lD && (clearInterval(this.lD), delete this.lD); - f6P = 7; - break; - case 2: - this.Xr && (clearTimeout(this.Xr), this.Xr = void 0); - this.zK && (clearInterval(this.zK), this.zK = void 0); - this.JL && (clearInterval(this.JL), this.JL = void 0); - this.xK && (clearInterval(this.xK), this.xK = void 0); - f6P = 3; - break; - } - } - }; - b.prototype.play = function() { - var h6P, l01, u01; - h6P = 2; - while (h6P !== 5) { - l01 = "p"; - l01 += "l"; - l01 += "a"; - l01 += "y"; - u01 = "play "; - u01 += "called after pipelines already s"; - u01 += "h"; - u01 += "utdown"; - switch (h6P) { - case 2: - this.hea++; - this.Kd() ? this.ba(u01) : (this.Ib.set(h.xa.nf), this.tKa(), this.Wa.rb.forEach(function(a) { - var k6P, k01; - k6P = 2; - while (k6P !== 1) { - k01 = "play: no"; - k01 += "t resuming bufferManager, audio track switch i"; - k01 += "n pro"; - k01 += "gress"; - switch (k6P) { - case 2: - a.Hx ? a.ba(k01) : this.Se[a.O].resume(); - k6P = 1; - break; - } - } - }.bind(this)), this.$D(), this.emit(l01)); - h6P = 5; - break; - } - } - }; - A3P = 76; - break; - case 200: - b.prototype.dea = function() { - var o79, a, b, c, d, g, j01; - o79 = 2; - while (o79 !== 11) { - j01 = "updateB"; - j01 += "ufferLev"; - j01 += "el"; - switch (o79) { - case 5: - o79 = !this.Kd() ? 4 : 11; - break; - case 7: - g = this.La.Hb.get(!1); - b = d.pv; - c = { - type: j01, - abuflbytes: c.Gh, - vbuflbytes: d.Gh, - totalabuflmsecs: c.pv, - totalvbuflmsecs: b, - predictedFutureRebuffers: 0, - currentBandwidth: g.$b ? g.ia.ta : 0 - }; - b > a.xna && this.La.uc && this.La.uc.fE(!0, this.wj.sessionId); - D(this, c.type, c); - o79 = 11; - break; - case 2: - a = this.H; - o79 = 5; - break; - case 4: - b = this.ja.Yd; - c = b[h.G.AUDIO]; - d = b[h.G.VIDEO]; - this.ec.FLa(c.Nd, d.Nd); - o79 = 7; - break; - } - } - }; - b.prototype.gIa = function(a) { - var w79, b, d, g, K41, D41, N41, p41, S41, a41; - w79 = 2; - while (w79 !== 13) { - K41 = ", syste"; - K41 += "mD"; - K41 += "el"; - K41 += "ta: "; - D41 = "memo"; - D41 += "ryUs"; - D41 += "age a"; - D41 += "t time"; - D41 += ": "; - N41 = ", o"; - N41 += "sAllo"; - N41 += "ca"; - N41 += "torDelt"; - N41 += "a: "; - p41 = ", jsH"; - p41 += "eapD"; - p41 += "el"; - p41 += "t"; - p41 += "a: "; - S41 = ", fastMa"; - S41 += "llocD"; - S41 += "e"; - S41 += "lta: "; - a41 = "memoryUsage at "; - a41 += "time:"; - a41 += " "; - switch (w79) { - case 2: - w79 = 1; - break; - case 4: - w79 = !c.S(this.Ey) ? 3 : 14; - break; - case 1: - w79 = !c.S(a) ? 5 : 13; - break; - case 5: - c.da(a.dI); - w79 = 4; - break; - case 3: - b = a.Ria - this.Ey.Ria; - d = a.Nka - this.Ey.Nka; - g = a.voa - this.Ey.voa; - (4194304 < b || 4194304 < g) && this.ba(a41 + F.time.la() + S41 + b + p41 + d + N41 + g); - w79 = 6; - break; - case 6: - c.da(a.dI) && c.da(this.Ey.dI) && (b = a.dI - this.Ey.dI, 4194304 < b && this.ba(D41 + F.time.la(), K41 + b)); - w79 = 14; - break; - case 14: - this.Ey = a; - w79 = 13; - break; - } - } - }; - b.prototype.KYa = function(a) { - var G79, b, c, d; - G79 = 2; - while (G79 !== 9) { - switch (G79) { - case 2: - b = this.ja.Ml(a); - c = this.Wa.rb[a]; - G79 = 4; - break; - case 4: - d = b.Yt; - return { - type: a, - availableMediaBuffer: this.La.ol[a] - d, - completeBuffer: b.Nd, - incompleteBuffer: b.Ia.Foa, - playbackBitrate: b.Uoa, - streamingBitrate: c.Im ? c.Im.J : 0, - streamingTime: b.Ka + this.ja.Ub, - usedMediaBuffer: d, - toappend: b.Pcb - }; - break; - } - } - }; - b.prototype.nJa = function() { - var H79, a, n41, h41, T41; - H79 = 2; - while (H79 !== 7) { - n41 = "stre"; - n41 += "a"; - n41 += "min"; - n41 += "gstat"; - h41 = "en"; - h41 += "dp"; - h41 += "lay"; - T41 = "l"; - T41 += "og"; - T41 += "data"; - switch (H79) { - case 8: - void 0 !== a && (a = { - type: T41, - target: h41, - fields: { - avtp2: a - } - }, D(this, a.type, a)); - H79 = 7; - break; - case 2: - this.H.h1a && F.memory.wXa(this.gIa.bind(this)); - a = { - type: n41, - time: F.time.la(), - playbackTime: this.Hg() - }; - H79 = 4; - break; - case 4: - this.ec.nVa(a); - D(this, a.type, a); - a = a.stat[0].avtp; - H79 = 8; - break; - } - } - }; - b.prototype.cea = function() { - var A79, a, M41; - A79 = 2; - while (A79 !== 4) { - M41 = "a"; - M41 += "s"; - M41 += "erep"; - M41 += "ort"; - switch (A79) { - case 2: - a = { - type: M41 - }; - this.Oea.lVa(a) && D(this, a.type, a); - A79 = 4; - break; - } - } - }; - b.prototype.KIa = function() { - var V79, a, q41; - V79 = 2; - while (V79 !== 4) { - q41 = "as"; - q41 += "ere"; - q41 += "p"; - q41 += "orte"; - q41 += "nabled"; - switch (V79) { - case 2: - a = { - type: q41 - }; - D(this, a.type, a); - V79 = 4; - break; - } - } - }; - b.prototype.XIa = function(a) { - var K79, b, c, d, g, h, f, m, l, p, c41; - K79 = 2; - while (K79 !== 14) { - c41 = "hind"; - c41 += "sight"; - c41 += "r"; - c41 += "epor"; - c41 += "t"; - switch (K79) { - case 3: - f = 0; - m = -1; - l = -1; - p = -1; - a && (a.forEach(function(a) { - var d79; - d79 = 2; - while (d79 !== 9) { - switch (d79) { - case 2: - void 0 === a.nd && (c += a.dlvdur, b += a.dltwbr * a.dlvdur); - f += a.pbdur; - d += a.pbtwbr * a.pbdur; - g = a.rr; - h = a.ra; - d79 = 9; - break; - } - } - }), 0 < c && (m = 1 * b / c), 0 < f && (p = 1 * d / f), 0 < c + f && (l = 1 * (b + d) / (c + f)), m = { - type: c41, - htwbr: l, - hptwbr: m, - pbtwbr: p - }, g && (m.rr = g, m.ra = h), this.uia && (m.report = a), D(this, m.type, m)); - K79 = 14; - break; - case 2: - b = 0; - c = 0; - d = 0; - K79 = 3; - break; - } - } - }; - b.prototype.SIa = function(a) { - var r79, b, R41, I41, b41; - r79 = 2; - while (r79 !== 5) { - R41 = "e"; - R41 += "ndOf"; - R41 += "Str"; - R41 += "eam"; - I41 = " "; - I41 += "le"; - I41 += "ngth"; - I41 += ":"; - I41 += " "; - b41 = "notifyEndOfStream "; - b41 += "ig"; - b41 += "nored, more manif"; - b41 += "ests, index: "; - switch (r79) { - case 2: - a.fu || (this.Bc + 1 < this.Ca.length ? a.ba(b41 + this.Bc + I41 + this.Ca.length) : (this.Se[a.O].a3(), b = { - type: R41, - mediaType: a.O - }, D(this, b.type, b), a.fu = !0)); - r79 = 5; - break; - } - } - }; - b.prototype.QIa = function(a) { - var u79, A41; - u79 = 2; - while (u79 !== 5) { - A41 = "createreq"; - A41 += "ues"; - A41 += "t"; - switch (u79) { - case 2: - a = { - type: A41, - mediaRequest: a - }; - D(this, a.type, a); - u79 = 5; - break; - } - } - }; - b.prototype.iqa = function() { - var Q79, a, V41; - Q79 = 2; - while (Q79 !== 4) { - V41 = "requ"; - V41 += "estGarbag"; - V41 += "e"; - V41 += "Collec"; - V41 += "tion"; - switch (Q79) { - case 2: - a = { - type: V41, - time: F.time.la() - }; - D(this, a.type, a); - Q79 = 4; - break; - } - } - }; - b.prototype.ug = function(a) { - var n79, m41, C41; - n79 = 2; - while (n79 !== 5) { - m41 = "m"; - m41 += "a"; - m41 += "nagerdebugeve"; - m41 += "nt"; - C41 = ","; - C41 += " "; - switch (n79) { - case 2: - a = "@" + F.time.la() + C41 + a; - D(this, m41, { - message: a - }); - n79 = 5; - break; - } - } - }; - b.prototype.Aj = function(a, b, d, g, h) { - var f79, t41; - f79 = 2; - while (f79 !== 1) { - t41 = "NFEr"; - t41 += "r_MC_StreamingFai"; - t41 += "l"; - t41 += "ure"; - switch (f79) { - case 2: - this.ev || (c.S(b) && (b = t41), this.ev = !0, this.lJa(b, a, d, g, h)); - f79 = 1; - break; - } - } - }; - b.prototype.NHa = function(a) { - var h79, b, c, d, g41, r41, G41, B41, o41, Q41, Z41, X41, H41, w41, v41, Y41; - h79 = 2; - while (h79 !== 7) { - g41 = " >"; - g41 += " Re"; - g41 += "setting fa"; - g41 += "ilure"; - g41 += "s"; - r41 = "NFE"; - r41 += "rr_MC_Str"; - r41 += "eamin"; - r41 += "gF"; - r41 += "ailure"; - G41 = "Temporary failure while"; - G41 += " b"; - G41 += "uffering"; - B41 = " > We a"; - B41 += "re buff"; - B41 += "ering, cal"; - B41 += "ling it!"; - o41 = "NFE"; - o41 += "rr"; - o41 += "_MC_Streamin"; - o41 += "gFailure"; - Q41 = "Perman"; - Q41 += "e"; - Q41 += "nt fa"; - Q41 += "ilu"; - Q41 += "re"; - Z41 = " > Per"; - Z41 += "manent failur"; - Z41 += "e, done"; - X41 = ", la"; - X41 += "st"; - X41 += " native "; - X41 += "c"; - X41 += "ode: "; - H41 = ","; - H41 += " "; - H41 += "last http c"; - H41 += "o"; - H41 += "de: "; - w41 = ", last"; - w41 += " err"; - w41 += "or code: "; - v41 = " i"; - v41 += "s p"; - v41 += "er"; - v41 += "manent: "; - Y41 = "Streaming"; - Y41 += " fai"; - Y41 += "lure"; - Y41 += ", state is"; - Y41 += " "; - switch (h79) { - case 2: - b = a.N_a; - c = a.z4a; - d = a.A4a; - a = a.B4a; - h79 = 9; - break; - case 9: - this.ba(Y41 + h.xa.name[this.Ib.value] + v41 + b + w41 + c + H41 + d + X41 + a); - b ? (this.ba(Z41), this.Aj(Q41, o41, c, d, a)) : this.hm(this.Ib.value) ? (this.ba(B41), this.Aj(G41, r41, a, d, a)) : (this.ba(g41), this.vz.Mz.fB()); - h79 = 7; - break; - } - } - }; - b.prototype.KHa = function() { - var k79, d41; - k79 = 2; - while (k79 !== 3) { - d41 = "Ne"; - d41 += "two"; - d41 += "rk failures re"; - d41 += "s"; - d41 += "et!"; - switch (k79) { - case 2: - this.ba(d41); - this.ev = !1; - this.QW(); - k79 = 4; - break; - case 4: - this.vg(); - k79 = 3; - break; - } - } - }; - b.prototype.TJa = function(a) { - var a79, b; - a79 = 2; - while (a79 !== 9) { - switch (a79) { - case 2: - b = this.H.Wqb.vnb; - void 0 === this.YL && (this.YL = []); - void 0 === this.YL[a] && (this.YL[a] = Math.floor(2 * Math.random() * b) - b); - return this.YL[a]; - break; - } - } - }; - b.prototype.Eda = function(a, b) { - var v79, h, c, d, g, f, y41, P41, x41, i41, e41, L41, U41, J41, E41, z41; - v79 = 2; - while (v79 !== 32) { - y41 = ", but no headers "; - y41 += "seen, "; - y41 += "ma"; - y41 += "rking pipeline drmR"; - y41 += "eady"; - P41 = "d"; - P41 += "rm hea"; - P41 += "der heade"; - P41 += "r: "; - x41 = "fil"; - x41 += "e"; - x41 += "toke"; - x41 += "n"; - i41 = "fra"; - i41 += "gmen"; - i41 += "t co"; - i41 += "unt:"; - e41 = "sy"; - e41 += "nthesized p"; - e41 += "er chunk vmafs: "; - L41 = ","; - L41 += " off"; - L41 += "se"; - L41 += "t:"; - L41 += " "; - U41 = ","; - U41 += " "; - U41 += "d"; - U41 += "uration"; - U41 += ": "; - J41 = ","; - J41 += " startP"; - J41 += "ts: "; - E41 = "f"; - E41 += "rag"; - E41 += "ment"; - E41 += ": "; - z41 = "par"; - z41 += "sed per chunk vmafs:"; - z41 += " "; - switch (v79) { - case 10: - a.wc(z41 + mediaRequest.en), d.en = mediaRequest.en; - v79 = 24; - break; - case 7: - v79 = h < g ? 6 : 12; - break; - case 20: - v79 = c.Moa.Msb ? 19 : 24; - break; - case 16: - v79 = h < g ? 15 : 26; - break; - case 6: - f = d.get(h); - a.wc(E41 + h + J41 + f.X + U41 + f.duration + L41 + f.offset); - v79 = 13; - break; - case 4: - v79 = c.oZ ? 3 : 12; - break; - case 13: - ++h; - v79 = 7; - break; - case 8: - h = 0; - v79 = 7; - break; - case 27: - ++h; - v79 = 16; - break; - case 26: - v7AA.u91(0); - a.wc(v7AA.f91(e41, c)); - v79 = 25; - break; - case 12: - v79 = c.Moa && c.Moa.enabled ? 11 : 24; - break; - case 19: - g = d.length; - c = []; - v79 = 17; - break; - case 5: - d = b.T; - v79 = 4; - break; - case 3: - g = d.length; - a.wc(i41, g); - v79 = 8; - break; - case 25: - d.en = c; - v79 = 24; - break; - case 24: - this.lca(a, b); - b.Ti && (a.Ti = b.Ti, this.LV(a, b.Da, a.Ti)); - b.DN && (d = { - type: x41, - filetoken: b.DN - }, D(this, d.type, d)); - b.Qv && !b.MTa && (a.ba(P41 + b.toString() + y41), this.GZ(this.Ca[b.Da].M), this.LV(a, b.Da)); - b.yB && (a.fR = void 0); - this.Se[b.O].t3a(); - v79 = 33; - break; - case 2: - c = this.H; - v79 = 5; - break; - case 11: - v79 = void 0 !== mediaRequest.en ? 10 : 20; - break; - case 33: - this.hda(); - v79 = 32; - break; - case 15: - c[h] = mediaRequest.stream.je + this.TJa(h), 0 > c[h] && (c[h] = 0); - v79 = 27; - break; - case 17: - h = 0; - v79 = 16; - break; - } - } - }; - b.prototype.wL = function(a, b, c, d, g, f) { - var b79, m, l, p, r, k, O41, F41; - b79 = 2; - while (b79 !== 13) { - O41 = "video"; - O41 += "_"; - O41 += "tracks"; - F41 = "au"; - F41 += "dio_tra"; - F41 += "c"; - F41 += "k"; - F41 += "s"; - switch (b79) { - case 9: - f == h.G.AUDIO && p.pop(); - k = !1; - b79 = 7; - break; - case 2: - m = this.H; - l = []; - p = [F41, O41]; - r = a[p[1]].length; - b79 = 9; - break; - case 7: - p.forEach(function(f, p) { - var c79, u, v, n, y, q; - c79 = 2; - while (c79 !== 13) { - switch (c79) { - case 7: - y.forEach(function(c, g) { - var O79; - O79 = 2; - while (O79 !== 1) { - switch (O79) { - case 2: - c.streams.forEach(function(c, f) { - var Y79, l, r, u, y, q, f41, g79; - Y79 = 2; - while (Y79 !== 17) { - f41 = "n"; - f41 += "o"; - f41 += "n"; - f41 += "e"; - switch (Y79) { - case 12: - Y79 = y < m.una || y > m.Tma ? 11 : 10; - break; - case 14: - Y79 = u < m.tna || u > m.Sma ? 13 : 12; - break; - case 19: - q.ma = c.ma, q.T = c.T, q.bc = c.bc, q.Ok = S(c.T, this.H.CG, this.La.ol[p]); - Y79 = 18; - break; - case 11: - q.inRange = !1; - Y79 = 10; - break; - case 8: - v7AA.u91(4); - g79 = v7AA.s91(16, 27, 11); - l = g79 == c.content_profile.indexOf(f41); - q.Ye = d && !l || !d && l; - q.Ye && this.vca && ja(this.rca(c.content_profile, c.bitrate, this.vca), q); - Y79 = 14; - break; - case 10: - k = k || l; - Y79 = 20; - break; - case 20: - Y79 = (c = v && v[r]) ? 19 : 18; - break; - case 18: - n[r] = O.pja(b, a, p, g, f, q, this.V); - Y79 = 17; - break; - case 9: - Y79 = p === h.G.VIDEO ? 8 : 20; - break; - case 13: - q.inRange = !1; - Y79 = 12; - break; - case 2: - r = c.downloadable_id; - u = c.bitrate; - y = c.vmaf; - q = { - Ye: !0 - }; - Y79 = 9; - break; - } - } - }, this); - O79 = 1; - break; - } - } - }, this); - y = q.streams.map(function(a) { - var E79; - E79 = 2; - while (E79 !== 1) { - switch (E79) { - case 4: - return n[a.downloadable_id]; - break; - E79 = 1; - break; - case 2: - return n[a.downloadable_id]; - break; - } - } - }); - l[p] = { - lj: f, - cs: f + (u ? r : 0), - Nc: y, - Xm: n, - Q8a: q, - le: void 0 - }; - c79 = 13; - break; - case 3: - y = a[f]; - f = c[p]; - q = y[f]; - c79 = 7; - break; - case 2: - u = p === h.G.AUDIO; - v = g ? g[p].Xm : void 0; - n = {}; - c79 = 3; - break; - } - } - }, this); - k && l[1] && l[1].Nc && l[1].Nc.forEach(function(a) { - var I79; - I79 = 2; - while (I79 !== 1) { - switch (I79) { - case 2: - a.FO || (a.ki = !0); - I79 = 1; - break; - } - } - }); - return l; - break; - } - } - }; - b.prototype.MHa = function(a, b) { - var j79; - j79 = 2; - while (j79 !== 1) { - switch (j79) { - case 2: - this.fV[a.O] = this.La.yja(b); - j79 = 1; - break; - } - } - }; - b.prototype.Iw = function(a) { - var i79, s41; - i79 = 2; - while (i79 !== 1) { - s41 = "requestError ignored, pipelines shut"; - s41 += "d"; - s41 += "own, "; - s41 += "mediaReque"; - s41 += "st:"; - switch (i79) { - case 2: - this.Kd() ? this.ba(s41, a) : (a.zc || this.Yna(a.yf, a.Da, a.ib, a.hb), this.$ea(a, a.location, a.Ec)); - i79 = 1; - break; - } - } - }; - b.prototype.xt = function(a) { - var B79, W41; - B79 = 2; - while (B79 !== 1) { - W41 = "onfirst"; - W41 += "by"; - W41 += "te ignored, pipelines shutdown, m"; - W41 += "ediaRequest:"; - switch (B79) { - case 2: - this.Kd() ? this.ba(W41, a) : a.oX || (this.Wa.rb[a.O].connected = !0); - B79 = 1; - break; - } - } - }; - b.prototype.TG = function(a) { - var M79, b, k41, u41; - M79 = 2; - while (M79 !== 7) { - k41 = "r"; - k41 += "e"; - k41 += "questProgres"; - k41 += "s"; - u41 = "onprogress"; - u41 += " ig"; - u41 += "nored, "; - u41 += "pipelines shutdown, med"; - u41 += "iaRequest:"; - switch (M79) { - case 2: - M79 = 1; - break; - case 1: - M79 = this.Kd() ? 5 : 4; - break; - case 5: - this.ba(u41, a); - M79 = 7; - break; - case 4: - b = this.Be; - this.ec.koa(this.Jc - this.Wj, a.Ul, b); - this.H.kN && this.ML.push(a.l1); - M79 = 8; - break; - case 8: - this.emit(k41, { - timestamp: b, - url: a.url - }); - M79 = 7; - break; - } - } - }; - b.prototype.wi = function(a) { - var S79, j41, l41; - S79 = 2; - while (S79 !== 1) { - j41 = "request"; - j41 += "Comple"; - j41 += "te"; - l41 = "oncomplete ig"; - l41 += "nored, pipelines shutdown"; - l41 += ","; - l41 += " mediaReques"; - l41 += "t:"; - switch (S79) { - case 2: - this.Kd() ? this.ba(l41, a) : (this.ev && (this.ev = !1, this.Ca[a.Da].Mz.fB(!0)), a.oX || (this.ec.koa(this.Jc - this.Wj, a.Ul, a.Be), a.zc || this.ec.o4a(a.O, a.gd, a.Jc, a.nA)), a.zc ? (this.JHa(a), this.iqa()) : this.Gda(a), this.H.kN && this.ML.push(a.l1), this.emit(j41, { - timestamp: a.Be, - mediaRequest: a - })); - S79 = 1; - break; - } - } - }; - A3P = 219; - break; - case 168: - b.prototype.RJa = function(a, b) { - var U5P, d; - U5P = 2; - while (U5P !== 3) { - switch (U5P) { - case 2: - d = this.Se[a.O]; - a = a.Ia.x6a(b, function(a) { - var W5P; - W5P = 2; - while (W5P !== 1) { - switch (W5P) { - case 2: - d.wH(a); - W5P = 1; - break; - case 4: - d.wH(a); - W5P = 7; - break; - W5P = 1; - break; - } - } - }); - c.S(a) || this.vg(); - U5P = 3; - break; - } - } - }; - b.prototype.FKa = function(a) { - var e5P, b, c, d; - e5P = 2; - while (e5P !== 7) { - switch (e5P) { - case 1: - e5P = !this.hm(this.Ib.value) && a.Hs && 0 !== a.Hs.length && !a.fR ? 5 : 7; - break; - case 2: - e5P = 1; - break; - case 3: - c = a.Nc[c]; - d = c.id; - !this.Ge[a.O][d] && c.Ye && (a.fR = d, b = this.RK(b, c.$k, c.ki), this.FD(a, this.xl, c, { - offset: 0, - ga: b, - yB: !0 - })); - e5P = 7; - break; - case 5: - b = a.O; - c = a.Hs.shift(); - e5P = 3; - break; - } - } - }; - b.prototype.tda = function(a) { - var Z5P, b, c, d; - Z5P = 2; - while (Z5P !== 14) { - switch (Z5P) { - case 7: - a && -1 == a.indexOf(N.cT) || c.push({ - type: N.cT, - openRange: !1, - pipeline: !0, - connections: 1, - socketBufferSize: b.p0 - }); - return c; - break; - case 8: - c.push({ - type: N.AUDIO, - openRange: !d, - pipeline: d, - connections: 1, - socketBufferSize: b.KX - }); - Z5P = 7; - break; - case 3: - Z5P = !a || -1 != a.indexOf(N.AUDIO) ? 9 : 7; - break; - case 2: - b = this.H; - c = []; - a && -1 == a.indexOf(N.VIDEO) || c.push({ - type: N.VIDEO, - openRange: !b.Pm, - pipeline: b.Pm, - connections: b.Pm ? b.qw : 1, - socketBufferSize: b.u6 - }); - Z5P = 3; - break; - case 9: - d = b.Pm && this.$s && b.rcb; - Z5P = 8; - break; - } - } - }; - b.prototype.Oca = function(a) { - var F5P, b, d, c21; - F5P = 2; - while (F5P !== 6) { - c21 = "cre"; - c21 += "a"; - c21 += "t"; - c21 += "eDlTracksStart"; - switch (F5P) { - case 3: - b.Ou += a.length; - a = a.map(function(a) { - var o5P, g, M21, K21, N21, S21, a21; - o5P = 2; - while (o5P !== 12) { - M21 = "tra"; - M21 += "nspo"; - M21 += "rt"; - M21 += "report"; - K21 = "e"; - K21 += "r"; - K21 += "r"; - K21 += "o"; - K21 += "r"; - N21 = "netwo"; - N21 += "rkf"; - N21 += "ailing"; - S21 = "c"; - S21 += "r"; - S21 += "eat"; - S21 += "e"; - S21 += "d"; - a21 = "d"; - a21 += "e"; - a21 += "s"; - a21 += "tro"; - a21 += "yed"; - switch (o5P) { - case 6: - g.on(a21, function() { - var V5P; - V5P = 2; - while (V5P !== 1) { - switch (V5P) { - case 4: - g.removeAllListeners(); - V5P = 6; - break; - V5P = 1; - break; - case 2: - g.removeAllListeners(); - V5P = 1; - break; - } - } - }); - c.S(g.Xc) || g.Xc(); - return g; - break; - case 3: - g.gE.on(g, S21, function() { - var w5P, p21; - w5P = 2; - while (w5P !== 5) { - p21 = "cr"; - p21 += "eateD"; - p21 += "l"; - p21 += "Tr"; - p21 += "acksEnd"; - switch (w5P) { - case 2: - --b.Ou; - 0 === b.Ou && b.kp(p21); - w5P = 5; - break; - } - } - }); - g.gE.on(g, N21, function() { - var G5P, D21; - G5P = 2; - while (G5P !== 5) { - D21 = "reportNetwo"; - D21 += "rkFailing"; - D21 += ": "; - switch (G5P) { - case 2: - d.Zd && b.ug(D21 + g.toString()); - g.YUa && (b.vz.Mz.Xk(void 0, g.Mj, g.Uk, g.tnb), b.QW()); - G5P = 5; - break; - } - } - }); - g.gE.on(g, K21, function() { - var H5P, n21, h21, T21; - H5P = 2; - while (H5P !== 5) { - n21 = "NFEr"; - n21 += "r_"; - n21 += "MC_"; - n21 += "StreamingFailure"; - h21 = "Dow"; - h21 += "nloadTrack fatal erro"; - h21 += "r"; - T21 = "Dow"; - T21 += "nlo"; - T21 += "adTrack fatal e"; - T21 += "rror: "; - switch (H5P) { - case 2: - d.Zd && b.ug(T21 + JSON.stringify(a)); - b.Aj(h21, n21, g.Mj, 0, g.Uk); - H5P = 5; - break; - } - } - }); - g.on(M21, function(a) { - var A5P, q21; - A5P = 2; - while (A5P !== 1) { - q21 = "tr"; - q21 += "anspo"; - q21 += "r"; - q21 += "treport"; - switch (A5P) { - case 4: - b.emit("", a); - A5P = 6; - break; - A5P = 1; - break; - case 2: - b.emit(q21, a); - A5P = 1; - break; - } - } - }); - o5P = 6; - break; - case 2: - g = new N(a, b.wj); - g.ph = b; - g.gE = new m(); - o5P = 3; - break; - } - } - }); - N.Pf(); - return a; - break; - case 2: - b = this; - d = b.H; - 0 === b.Ou && b.kp(c21); - F5P = 3; - break; - } - } - }; - b.prototype.dHa = function() { - var K5P, a; - K5P = 2; - while (K5P !== 9) { - switch (K5P) { - case 2: - a = []; - this.Wa.rb.forEach(function(b) { - var d5P; - d5P = 2; - while (d5P !== 5) { - switch (d5P) { - case 2: - c.S(b.Si) || a.push(b.Si); - delete b.Si; - d5P = 5; - break; - } - } - }); - this.xD && (a.push(this.xD), delete this.xD); - K5P = 3; - break; - case 3: - a.forEach(function(a) { - var r5P; - r5P = 2; - while (r5P !== 4) { - switch (r5P) { - case 2: - a.LM || --this.Ou; - a.gE.clear(); - a.ym(); - r5P = 4; - break; - } - } - }.bind(this)); - K5P = 9; - break; - } - } - }; - b.prototype.cHa = function(a) { - var u5P, b; - u5P = 2; - while (u5P !== 14) { - switch (u5P) { - case 4: - a = this.Wa.rb[b]; - b = a.Si; - b.LM || --this.Ou; - u5P = 8; - break; - case 2: - u5P = 1; - break; - case 1: - b = a.O; - b == h.G.AUDIO && (a.uQ = !0, this.ec.sB(null)); - u5P = 4; - break; - case 8: - b.gE.clear(); - b.ym(); - a.Si = void 0; - u5P = 14; - break; - } - } - }; - b.prototype.Iea = function(a) { - var Q5P, b, c, d, g, h, f; - Q5P = 2; - while (Q5P !== 11) { - switch (Q5P) { - case 2: - b = a.O; - c = this.Wa.rb[b]; - d = c.Si; - Q5P = 3; - break; - case 9: - h = []; - for (f in this.Ge[b]) { - (g = this.Ge[b][f]) && !g.T && g.track == d && (delete this.Ge[b][f], h.push({ - stream: g.stream, - offset: g.offset, - ga: g.ga, - Qv: g.Qv, - Da: g.Da, - Qs: g.Qs, - hq: g.hq - }), a.Ia.wH(g)); - } - this.cHa(a); - b = this.tda([b]); - Q5P = 14; - break; - case 3: - Q5P = d ? 9 : 11; - break; - case 14: - b = this.Oca([b[0]]); - c.Si = b[0]; - h.forEach(function(b) { - var n5P; - n5P = 2; - while (n5P !== 1) { - switch (n5P) { - case 2: - this.FD(a, this.xl, b.stream, b); - n5P = 1; - break; - } - } - }.bind(this)); - Q5P = 11; - break; - } - } - }; - b.prototype.kp = function(a) { - var f5P, b21; - f5P = 2; - while (f5P !== 5) { - b21 = "startEv"; - b21 += "en"; - b21 += "t"; - switch (f5P) { - case 2: - a = { - type: b21, - event: a, - time: F.time.la() - }; - D(this, a.type, a); - f5P = 5; - break; - } - } - }; - b.prototype.cJa = function() { - var h5P, a, I21; - h5P = 2; - while (h5P !== 4) { - I21 = "o"; - I21 += "p"; - I21 += "enCompl"; - I21 += "ete"; - switch (h5P) { - case 2: - a = { - type: I21 - }; - D(this, a.type, a); - h5P = 4; - break; - } - } - }; - b.prototype.dJa = function(a, b, c, d, g) { - var k5P, R21; - k5P = 2; - while (k5P !== 5) { - R21 = "ptsS"; - R21 += "ta"; - R21 += "rt"; - R21 += "s"; - switch (k5P) { - case 2: - a = { - type: R21, - manifestIndex: a, - mediaType: b, - movieId: d, - streamId: c, - ptsStarts: g.A$a() - }; - D(this, a.type, a); - k5P = 5; - break; - } - } - }; - b.prototype.RIa = function(a, b) { - var a5P, C21, V21, A21; - a5P = 2; - while (a5P !== 4) { - C21 = "emptyCo"; - C21 += "nten"; - C21 += "tId"; - V21 = "n"; - V21 += "o"; - V21 += "n"; - V21 += "e"; - A21 = "dr"; - A21 += "mH"; - A21 += "e"; - A21 += "a"; - A21 += "der"; - switch (a5P) { - case 2: - a = { - type: A21, - manifestIndex: a - }; - b ? (a.drmType = b.ii, a.source = b.source, a.contentId = b.jha, a.header = b.pi, a.prk = !!b.h6a, a.headers = b.headers) : (a.drmType = V21, a.contentId = C21); - D(this, a.type, a); - a5P = 4; - break; - } - } - }; - b.prototype.VIa = function(a, b) { - var v5P, m21; - v5P = 2; - while (v5P !== 5) { - m21 = "h"; - m21 += "eaderC"; - m21 += "a"; - m21 += "cheHi"; - m21 += "t"; - switch (v5P) { - case 2: - a = { - type: m21, - movieId: a, - streamId: b - }; - D(this, a.type, a); - v5P = 5; - break; - } - } - }; - b.prototype.UIa = function(a, b, c, d, g) { - var b5P, t21; - b5P = 2; - while (b5P !== 5) { - t21 = "heade"; - t21 += "rC"; - t21 += "acheDataHit"; - switch (b5P) { - case 2: - a = { - type: t21, - movieId: a, - audio: b, - audioFromMediaCache: d, - video: c, - videoFromMediaCache: g - }; - D(this, a.type, a); - b5P = 5; - break; - } - } - }; - b.prototype.bJa = function(a, b, c) { - var c5P, Y21; - c5P = 2; - while (c5P !== 5) { - Y21 = "max"; - Y21 += "Po"; - Y21 += "si"; - Y21 += "tion"; - switch (c5P) { - case 2: - a = { - type: Y21, - index: a, - maxPts: b, - endPts: c - }; - D(this, a.type, a); - c5P = 5; - break; - } - } - }; - b.prototype.lJa = function(a, b, c, d, g) { - var O5P, w21, v21; - O5P = 2; - while (O5P !== 4) { - w21 = "notify"; - w21 += "Streamin"; - w21 += "gError"; - w21 += ": "; - v21 = "e"; - v21 += "rr"; - v21 += "or"; - switch (O5P) { - case 2: - a = { - type: v21, - error: a, - errormsg: b, - networkErrorCode: c, - httpCode: d, - nativeCode: g - }; - this.Yb(w21 + JSON.stringify(a)); - D(this, a.type, a); - O5P = 4; - break; - } - } - }; - b.prototype.fea = function(a, b) { - var Y5P, H21; - Y5P = 2; - while (Y5P !== 5) { - H21 = "segm"; - H21 += "entStar"; - H21 += "tin"; - H21 += "g"; - switch (Y5P) { - case 2: - b = { - type: H21, - segmentId: a.id, - contentOffset: b - }; - a.Rw || D(this, b.type, b); - Y5P = 5; - break; - } - } - }; - b.prototype.fJa = function(a) { - var E5P, b, X21; - E5P = 2; - while (E5P !== 4) { - X21 = "segme"; - X21 += "ntAb"; - X21 += "o"; - X21 += "rte"; - X21 += "d"; - switch (E5P) { - case 2: - b = { - type: X21, - segmentId: a.id - }; - a.Rw || D(this, b.type, b); - E5P = 4; - break; - } - } - }; - b.prototype.HHa = function(a, b) { - var I5P, d, g, h, r21, G21, B21, o21, Q21, Z21; - I5P = 2; - while (I5P !== 20) { - r21 = "re"; - r21 += "se"; - r21 += "t"; - G21 = "s"; - G21 += "k"; - G21 += "i"; - G21 += "p"; - B21 = "l"; - B21 += "on"; - B21 += "g"; - o21 = "l"; - o21 += "o"; - o21 += "n"; - o21 += "g"; - Q21 = "seaml"; - Q21 += "e"; - Q21 += "ss"; - Z21 = "s"; - Z21 += "e"; - Z21 += "am"; - Z21 += "les"; - Z21 += "s"; - switch (I5P) { - case 11: - d.srcsegmentduration = this.ja.zYa(b.gR); - return d; - break; - case 7: - d.transitionType = g; - b.PSa || (d.delayToTransition = b.TM); - g = Z21 === g ? 0 : F.time.la() - b.startTime; - d.durationOfTransition = g; - d.atTransition = b.ssa; - I5P = 11; - break; - case 2: - d = { - segment: a, - srcsegment: b.gR, - srcoffset: b.Cra, - seamlessRequested: b.HQ, - atRequest: {}, - discard: {} - }; - h = b.Ac[a]; - h ? (g = h.weight, ja(h.sE, d.atRequest)) : g = this.ja.kka(b.gR, a); - d.atRequest.weight = g; - c.Kc(b.Ac, function(b, c) { - var j5P; - j5P = 2; - while (j5P !== 1) { - switch (j5P) { - case 2: - c != a && (d.discard[c] = { - weight: b.weight - }, ja(b.sE, d.discard[c])); - j5P = 1; - break; - } - } - }); - g = b.HQ ? b.lO ? Q21 : o21 : b.Qna ? B21 : b.Wm ? G21 : r21; - I5P = 7; - break; - } - } - }; - b.prototype.iJa = function(a, b, c) { - var i5P, g21; - i5P = 2; - while (i5P !== 4) { - g21 = "se"; - g21 += "g"; - g21 += "me"; - g21 += "ntPresenti"; - g21 += "ng"; - switch (i5P) { - case 2: - c = c ? this.HHa(a.id, c) : void 0; - b = { - type: g21, - segmentId: a.id, - contentOffset: b, - metrics: c - }; - a.Rw || D(this, b.type, b); - i5P = 4; - break; - } - } - }; - b.prototype.gJa = function(a, b) { - var B5P, d21; - B5P = 2; - while (B5P !== 5) { - d21 = "se"; - d21 += "gme"; - d21 += "ntAp"; - d21 += "pend"; - d21 += "ed"; - switch (B5P) { - case 2: - b = { - type: d21, - segmentId: a.id, - metrics: b - }; - a.Rw || D(this, b.type, b); - B5P = 5; - break; - } - } - }; - b.prototype.hJa = function(a, b, c) { - var M5P, z21; - M5P = 2; - while (M5P !== 5) { - z21 = "segme"; - z21 += "ntCom"; - z21 += "plete"; - switch (M5P) { - case 2: - a = { - type: z21, - mediaType: a, - manifestIndex: b, - segmentId: c.id - }; - c.Rw || D(this, a.type, a); - M5P = 5; - break; - } - } - }; - b.prototype.dW = function(a, b) { - var S5P, E21; - S5P = 2; - while (S5P !== 5) { - E21 = "l"; - E21 += "astS"; - E21 += "egmentPts"; - switch (S5P) { - case 1: - a.Rw || D(this, b.type, b); - S5P = 5; - break; - case 2: - b = { - type: E21, - segmentId: a.id, - pts: b - }; - S5P = 1; - break; - } - } - }; - A3P = 183; - break; - case 2: - c = a(10); - a(21); - h = a(13); - l = a(31); - g = l.EventEmitter; - m = l.kC; - p = a(178).TDigest; - a(79); - r = a(260); - k = a(476); - v = a(466); - n = a(462); - q = a(461); - G = a(460); - x = a(458); - y = a(271); - C = a(457); - F = a(9); - N = F.Lx; - T = F.Pa; - t = F.Promise; - A3P = 25; - break; - case 183: - b.prototype.$Ia = function(a, b, c, d, g) { - var N5P, J21; - N5P = 2; - while (N5P !== 5) { - J21 = "manife"; - J21 += "s"; - J21 += "tRange"; - switch (N5P) { - case 2: - a = { - type: J21, - index: a, - manifestOffset: b, - startPts: c, - endPts: d, - maxPts: g - }; - D(this, a.type, a); - N5P = 5; - break; - } - } - }; - b.prototype.aJa = function(a, b, c) { - var L5P, d, L21, U21; - L5P = 2; - while (L5P !== 7) { - L21 = "notifyManifest"; - L21 += "Selec"; - L21 += "te"; - L21 += "d"; - L21 += ": "; - U21 = "man"; - U21 += "if"; - U21 += "estSe"; - U21 += "lecte"; - U21 += "d"; - switch (L5P) { - case 2: - d = this.H; - b = { - type: U21, - index: a, - replace: b, - ptsStarts: c - }; - a = this.Ca[a]; - L5P = 3; - break; - case 3: - b.streamingOffset = a.X + a.Rl; - d.Zd && (a = L21 + JSON.stringify(b), d.Zd && this.ug(a)); - D(this, b.type, b); - L5P = 7; - break; - } - } - }; - b.prototype.ZIa = function(a, b, c) { - var g5P, d, e21; - g5P = 2; - while (g5P !== 9) { - e21 = "manifes"; - e21 += "tPre"; - e21 += "s"; - e21 += "enting"; - switch (g5P) { - case 1: - d = this.Ca[a]; - b = { - type: e21, - index: a, - pts: b, - movieId: d.M, - replace: d.replace, - contentOffset: c - }; - 0 < a && (b.previousMovieId = this.Ca[a - 1].M); - g5P = 3; - break; - case 3: - D(this, b.type, b); - g5P = 9; - break; - case 2: - g5P = 1; - break; - } - } - }; - b.prototype.Yna = function(a, b, c, d) { - var P5P, g, h, i21; - P5P = 2; - while (P5P !== 13) { - i21 = "stre"; - i21 += "a"; - i21 += "m"; - i21 += "Selected"; - switch (P5P) { - case 2: - g = a.O; - b = this.Ca[b].pe[g].Xm[c]; - h = this.Wa.rb[g]; - h.Nh || (h.Nh = {}); - h.Nh.id = b.id; - P5P = 8; - break; - case 8: - h.Nh.index = b.rh; - h.Nh.J = b.J; - h.Nh.location = b.location; - h.jt && h.jt === b || (a.EB.R$a(d, h.jt, b), h.jt = b, d = 0, b.ma && b.ma.$b && b.ma.ia && (d = b.ma.ia.ta), h = a.jc.Ub, a = { - type: i21, - nativetime: F.time.la(), - mediaType: g, - streamId: c, - manifestIndex: b.Da, - trackIndex: b.cs, - streamIndex: b.rh, - movieTime: a.Ka + h, - bandwidth: d, - longtermBw: d, - rebuffer: 0 - }, D(this, a.type, a)); - P5P = 13; - break; - } - } - }; - b.prototype.kJa = function(a, b, c, d, g, h) { - var z5P, x21; - z5P = 2; - while (z5P !== 5) { - x21 = "streamPresent"; - x21 += "i"; - x21 += "ng"; - switch (z5P) { - case 2: - a = { - type: x21, - startPts: b, - contentStartPts: c, - mediaType: a.O, - manifestIndex: d, - trackIndex: g, - streamIndex: h - }; - D(this, a.type, a); - z5P = 5; - break; - } - } - }; - b.prototype.oJa = function(a) { - var D5P, P21; - D5P = 2; - while (D5P !== 5) { - P21 = "vi"; - P21 += "de"; - P21 += "oL"; - P21 += "oo"; - P21 += "ped"; - switch (D5P) { - case 2: - a = { - type: P21, - offset: a - }; - D(this, a.type, a); - D5P = 5; - break; - } - } - }; - b.prototype.eea = function(a) { - var m5P, y21; - m5P = 2; - while (m5P !== 1) { - y21 = "lo"; - y21 += "cationSel"; - y21 += "ected"; - switch (m5P) { - case 4: - D(this, "", a); - m5P = 2; - break; - m5P = 1; - break; - case 2: - D(this, y21, a); - m5P = 1; - break; - } - } - }; - b.prototype.gea = function(a, b, c, d, g) { - var t5P, f, m, f21, O21, F21; - t5P = 2; - while (t5P !== 14) { - f21 = "se"; - f21 += "rverS"; - f21 += "witch"; - O21 = "au"; - O21 += "d"; - O21 += "i"; - O21 += "o"; - F21 = "vi"; - F21 += "de"; - F21 += "o"; - switch (t5P) { - case 6: - D(this, b.type, b); - t5P = 14; - break; - case 2: - a = a.O; - f = a == h.G.VIDEO ? F21 : O21; - m = this.La.Hb.get(!1); - t5P = 3; - break; - case 3: - b = { - type: f21, - mediatype: f, - server: b, - reason: c, - location: d, - bitrate: g, - confidence: m.$b - }; - m.$b && (b.throughput = m.ia.ta); - c = this.Wa.rb[a]; - c.kw && (b.oldserver = c.kw); - t5P = 6; - break; - } - } - }; - b.prototype.mJa = function(a, b, c) { - var l5P, s21; - l5P = 2; - while (l5P !== 5) { - s21 = "updateStr"; - s21 += "eaming"; - s21 += "Pts"; - switch (l5P) { - case 2: - a = { - type: s21, - manifestIndex: a, - trackIndex: b, - movieTime: c - }; - D(this, a.type, a); - l5P = 5; - break; - } - } - }; - b.prototype.TIa = function(a) { - var C5P, W21; - C5P = 2; - while (C5P !== 5) { - W21 = "firstReque"; - W21 += "stAppende"; - W21 += "d"; - switch (C5P) { - case 2: - a = { - type: W21, - mediatype: a.O, - time: F.time.la() - }; - D(this, a.type, a); - C5P = 5; - break; - } - } - }; - b.prototype.YIa = function() { - var s5P, a, b, l21, k21, u21; - s5P = 2; - while (s5P !== 3) { - l21 = "i"; - l21 += "n"; - l21 += "itialAudi"; - l21 += "oTra"; - l21 += "ck"; - k21 = "over number of tr"; - k21 += "acks"; - k21 += ":"; - u21 = "a"; - u21 += "udioTra"; - u21 += "ckIndex"; - u21 += ":"; - switch (s5P) { - case 2: - a = this.Er[h.G.AUDIO]; - b = this.Mr.audio_tracks; - a > b.length ? this.ba(u21, a, k21, b.length) : (a = { - type: l21, - trackId: b[a].track_id, - trackIndex: a - }, D(this, a.type, a)); - s5P = 3; - break; - } - } - }; - b.prototype.MIa = function(a, b, c) { - var R5P, j21; - R5P = 2; - while (R5P !== 9) { - j21 = "aud"; - j21 += "ioTrackSwitchSta"; - j21 += "rted"; - switch (R5P) { - case 2: - a = a.audio_tracks; - b = a[b]; - c = a[c]; - c = { - type: j21, - oldLangCode: b.language, - oldNumChannels: b.channels, - newLangCode: c.language, - newNumChannels: c.channels - }; - R5P = 3; - break; - case 3: - D(this, c.type, c); - R5P = 9; - break; - } - } - }; - b.prototype.LIa = function(a) { - var T5P; - T5P = 2; - while (T5P !== 1) { - switch (T5P) { - case 2: - setTimeout(function() { - var y5P, b, a61; - y5P = 2; - while (y5P !== 4) { - a61 = "aud"; - a61 += "ioTrackS"; - a61 += "w"; - a61 += "it"; - a61 += "chComplete"; - switch (y5P) { - case 2: - b = { - type: a61, - trackId: a.Ab, - trackIndex: a.lj - }; - D(this, b.type, b); - y5P = 4; - break; - } - } - }.bind(this), 0); - T5P = 1; - break; - } - } - }; - b.prototype.jJa = function(a, b) { - var X5P, S61; - X5P = 2; - while (X5P !== 5) { - S61 = "currentStreamI"; - S61 += "n"; - S61 += "feasi"; - S61 += "ble"; - switch (X5P) { - case 2: - a = { - type: S61, - oldBitrate: a, - newBitrate: b - }; - D(this, a.type, a); - X5P = 5; - break; - } - } - }; - b.prototype.IHa = function(a) { - var p5P, b; - p5P = 2; - while (p5P !== 8) { - switch (p5P) { - case 2: - p5P = 1; - break; - case 1: - b = a.mediaType; - a = this.Ca[a.manifestIndex].pe[b].Xm[a.streamId]; - this.qKa(this.ja.Ml(b), a); - this.H = this.qGa(a.le, this.H); - this.Ca.forEach(function(a, b) { - var q5P; - q5P = 2; - while (q5P !== 1) { - switch (q5P) { - case 2: - a.Lka || 0 === b || this.tW(a.M, b, a.pe); - q5P = 1; - break; - } - } - }.bind(this)); - p5P = 8; - break; - } - } - }; - b.prototype.LHa = function(a) { - var x5P, b; - x5P = 2; - while (x5P !== 6) { - switch (x5P) { - case 7: - a.Hm && this.hJa(b.O, a.Da, b.jc.na); - x5P = 6; - break; - case 2: - a = a.request; - b = a.yf; - b.Ia.xH(a); - x5P = 3; - break; - case 3: - b.l0a = a.toString(); - b.Bka = !0; - a.EN && this.TIa(a); - x5P = 7; - break; - } - } - }; - b.prototype.qKa = function(a, b) { - var J79; - J79 = 2; - while (J79 !== 1) { - switch (J79) { - case 2: - this.Wa.rb[a.O].Im = { - id: b.id, - index: b.rh, - J: b.J, - ia: b.ma && b.ma.$b && b.ma.ia ? b.ma.ia.ta : 0, - location: b.location - }; - J79 = 1; - break; - } - } - }; - b.prototype.LV = function(a, b, c) { - var U79; - U79 = 2; - while (U79 !== 6) { - switch (U79) { - case 2: - U79 = !c || c.h6a || c.pi && c.jha ? 1 : 6; - break; - case 4: - U79 = a.jia ? 3 : 9; - break; - case 3: - return; - break; - case 5: - a = this.Wa.rb[a.O]; - U79 = 4; - break; - case 1: - U79 = c ? 5 : 8; - break; - case 9: - a.jia = !0; - U79 = 8; - break; - case 8: - this.RIa(b, c); - this.Sy(this.Bc + 1); - U79 = 6; - break; - } - } - }; - b.prototype.PIa = function() { - var W79, a, N61, p61; - W79 = 2; - while (W79 !== 9) { - N61 = "s"; - N61 += "tar"; - N61 += "t"; - N61 += "Bufferin"; - N61 += "g"; - p61 = "bufferin"; - p61 += "g"; - p61 += "St"; - p61 += "ar"; - p61 += "ted"; - switch (W79) { - case 2: - a = { - type: p61, - time: F.time.la(), - percentage: 0 - }; - D(this, a.type, a); - this.emit(N61); - W79 = 3; - break; - case 3: - this.TV = 0; - W79 = 9; - break; - } - } - }; - b.prototype.NIa = function() { - var e79, a, b, c, d, D61; - e79 = 2; - while (e79 !== 7) { - D61 = "buffe"; - D61 += "r"; - D61 += "in"; - D61 += "g"; - switch (e79) { - case 2: - e79 = 1; - break; - case 1: - a = this.H; - b = F.time.la(); - c = this.ja.Ml(h.G.VIDEO); - d = c.Nd; - e79 = 9; - break; - case 9: - a = Math.min(Math.max(Math.round(100 * (c.oG ? (b - this.kV) / a.VA : c.Rh ? c.Rh : d / a.Ph)), this.TV), 99); - a != this.TV && (b = { - type: D61, - time: b, - percentage: a - }, D(this, b.type, b), this.TV = a); - e79 = 7; - break; - } - } - }; - b.prototype.OIa = function() { - var Z79, a, b, c, d, g, K61; - Z79 = 2; - while (Z79 !== 11) { - K61 = "buf"; - K61 += "feringComp"; - K61 += "lete"; - switch (Z79) { - case 2: - a = this.H; - b = this.Wa.rb[h.G.VIDEO]; - c = this.ja.Yd; - d = c[h.G.AUDIO]; - c = c[h.G.VIDEO]; - this.dea(); - Z79 = 7; - break; - case 7: - g = b.uE; - d = { - type: K61, - time: F.time.la(), - actualStartPts: g, - aBufferLevelMs: d.Nd, - vBufferLevelMs: c.Nd, - selector: c.R8a, - initBitrate: b.Nk, - skipbackBufferSizeBytes: this.La.BKa - }; - this.ec.mVa({ - initSelReason: b.Em, - initSelectionPredictedDelay: b.YF, - buffCompleteReason: b.rE, - hashindsight: !!this.Lk, - hasasereport: !!this.Kj - }); - D(this, d.type, d); - a.SM && (this.mW = !0); - Z79 = 11; - break; - } - } - }; - b.prototype.S0 = function(a) { - var F79, b, c, d, g; - F79 = 2; - while (F79 !== 13) { - switch (F79) { - case 6: - a && d && (a = d[h.G.VIDEO], d = d[h.G.AUDIO], a && d && (b.atoappend = JSON.stringify(a.Dh), b.vtoappend = JSON.stringify(d.Dh))); - F79 = 14; - break; - case 3: - F79 = c ? 9 : 14; - break; - case 9: - g = c[h.G.VIDEO]; - c = c[h.G.AUDIO]; - g && c && (b.vspts = g.Ka, b.aspts = c.Ka, b.vbuflbytes = g.Gh, b.abuflbytes = c.Gh, b.vbuflmsec = g.Nd, b.abuflmsec = c.Nd, a && (b.asent = c.Ia.bra.toJSON(), b.vsent = g.Ia.bra.toJSON())); - F79 = 6; - break; - case 14: - return b; - break; - case 2: - b = {}; - c = this.ja.Yd; - d = this.Se; - F79 = 3; - break; - } - } - }; - A3P = 200; - break; - case 122: - b.prototype.iKa = function(a, b) { - var d4P, c, d, g, T61; - d4P = 2; - while (d4P !== 8) { - T61 = "maxPts between streams is l"; - T61 += "argely different."; - T61 += " Choo"; - T61 += "sing"; - T61 += " lower maxPts:"; - switch (d4P) { - case 3: - g <= c.hP ? d = a.aj > b.aj ? a : b : g > c.hP && (d = a.aj < b.aj ? a : b, this.ba(T61, d)); - return d; - break; - case 2: - c = this.H; - d = b; - g = Math.abs(a.aj - b.aj); - d4P = 3; - break; - } - } - }; - b.prototype.vW = function(a, b) { - var r4P; - r4P = 2; - while (r4P !== 5) { - switch (r4P) { - case 2: - this.ja.xm.reset(!0, a, b); - (void 0 === b ? [h.G.AUDIO, h.G.VIDEO] : [b]).forEach(function(a) { - var u4P; - u4P = 2; - while (u4P !== 4) { - switch (u4P) { - case 2: - this.Se[a].reset(); - this.hKa(a); - this.ec.m4a(a); - u4P = 4; - break; - } - } - }.bind(this)); - r4P = 5; - break; - } - } - }; - b.prototype.hKa = function(a) { - var Q4P; - Q4P = 2; - while (Q4P !== 8) { - switch (Q4P) { - case 2: - a = this.Wa.rb[a]; - a.jt = void 0; - a.o1 = void 0; - a.Qm = 0; - Q4P = 3; - break; - case 3: - a.fH = 0; - a.connected = !1; - Q4P = 8; - break; - } - } - }; - b.prototype.zW = function(a, b) { - var n4P, d, h61; - n4P = 2; - while (n4P !== 3) { - h61 = "p"; - h61 += "tsc"; - h61 += "h"; - h61 += "a"; - h61 += "nged"; - switch (n4P) { - case 2: - d = this.Wa.rb[a]; - c.S(d.En) && (d.En = b, a === h.G.VIDEO && (a = this.Wa.rb[h.G.AUDIO], c.S(a.En) && (a = this.ja.Ml(h.G.AUDIO), a.yo(b)), this.emit(h61, b))); - c.S(d.uE) && (d.uE = b); - n4P = 3; - break; - } - } - }; - b.prototype.JHa = function(a) { - var f4P, b, c, M61, n61; - f4P = 2; - while (f4P !== 3) { - M61 = " ig"; - M61 += "nored"; - M61 += ", pipelines sh"; - M61 += "utdown"; - n61 = "He"; - n61 += "ade"; - n61 += "r reque"; - n61 += "s"; - n61 += "t "; - switch (f4P) { - case 2: - b = a.yf; - c = b.O; - f4P = 4; - break; - case 4: - this.Kd() ? this.ba(n61 + a + M61) : (a.Eoa > a.y4a && (this.Wa.rb[c].m1 = a.Eoa), this.Eda(b, a)); - f4P = 3; - break; - } - } - }; - b.prototype.Gda = function(a) { - var h4P, b, c, d; - h4P = 2; - while (h4P !== 9) { - switch (h4P) { - case 2: - b = this.H; - d = a.yf; - h4P = 4; - break; - case 4: - c = a.Da; - this.Ib.value != h.xa.jy && this.Ib.value != h.xa.iy && (this.mJa(c, d.cs, d.nz), this.Ku() || (c = this.ja.Ml(h.G.VIDEO), !c.Nn && c.pO && this.Wa.gO(c)), this.oV(d), this.pg && (a = this.pg.indexOf(a), -1 != a && this.pg.splice(a, 1), 0 === this.pg.length && (delete this.pg, b.eE || this.dV || this.UW())), this.pV(d) && this.vg()); - h4P = 9; - break; - } - } - }; - b.prototype.$D = function() { - var k4P, a, b, d, g, f, m, q61; - k4P = 2; - while (k4P !== 20) { - q61 = "n"; - q61 += "u"; - q61 += "mb"; - q61 += "er"; - switch (k4P) { - case 6: - b = this.ja.nYa(), q61 === typeof b && b - a.H2 <= f && (m = Math.min(m, a.PNa)); - k4P = 14; - break; - case 7: - k4P = a.jF || a.wia ? 6 : 14; - break; - case 14: - d.Km.aj - g <= a.xna && this.La.uc && this.La.uc.fE(!0, this.wj.sessionId); - this.Ib.value === h.xa.nf && ([h.G.VIDEO, h.G.AUDIO].forEach(function(a) { - var a4P, b, d, l, p, r, k, c61; - a4P = 2; - while (a4P !== 7) { - c61 = "Unable to fin"; - c61 += "d req"; - c61 += "ue"; - c61 += "st presen"; - c61 += "ting at playerPts:"; - switch (a4P) { - case 3: - (k = b.Ia.Ps(g)) ? (r = k.df - g, r < m && (m = r), p = this.Wa.rb[a], l = k.Da, r = k.yf, a === h.G.VIDEO && (this.ja.vt(k, k.mh), l > this.jL ? (this.jL = l, this.ZIa(l, g, k.mh), f = this.pz(l, g)) : this.ED && k.mh != p.m0a && this.oJa(k.mh)), r.vt(k), p.m0a = k.mh, d = k.ib, d != p.o1 && (p.o1 = d, a = this.Ca[l].pe[a].Xm, a = a[d], l = this.pz(l, k.hb), this.kJa(r, k.hb, l, a.Da, a.cs, a.rh)), k = k.J, c.S(k) || k == b.Uoa || (b.Uoa = k)) : b.ba(c61, g); - this.RJa(r, g); - this.ja.w6a(); - a4P = 7; - break; - case 2: - b = this.ja.Ml(a); - r = b; - this.oV(b, g); - a4P = 3; - break; - } - } - }.bind(this)), this.mW = !1, this.ja.cn(g, f)); - this.vg(); - this.Xr && clearTimeout(this.Xr); - k4P = 10; - break; - case 10: - this.Xr = setTimeout(this.$D.bind(this), m); - k4P = 20; - break; - case 2: - a = this.H; - b = this.WP; - d = this.Ca[b]; - g = this.Hg() || 0; - f = this.pz(b, g); - m = a.MR; - k4P = 7; - break; - } - } - }; - b.prototype.vg = function() { - var v4P, a; - v4P = 2; - while (v4P !== 4) { - switch (v4P) { - case 2: - a = this.H; - !this.uea || this.mW || this.av || this.ev || (this.av = setTimeout(function() { - var b4P; - b4P = 2; - while (b4P !== 4) { - switch (b4P) { - case 2: - clearTimeout(this.av); - delete this.av; - b4P = 5; - break; - case 5: - this.hda(); - b4P = 4; - break; - } - } - }.bind(this), a.y3), a.Kz && (this.tK || (this.tK = setTimeout(function() { - var c4P; - c4P = 2; - while (c4P !== 4) { - switch (c4P) { - case 5: - this.jca(this.ja.Ml(h.G.VIDEO)); - c4P = 4; - break; - case 2: - clearTimeout(this.tK); - delete this.tK; - c4P = 5; - break; - } - } - }.bind(this), a.DLa)))); - v4P = 4; - break; - } - } - }; - b.prototype.hda = function() { - var O4P, a, b, c, I61, b61; - O4P = 2; - while (O4P !== 14) { - I61 = "stream"; - I61 += "ere"; - I61 += "n"; - I61 += "d"; - b61 = "fi"; - b61 += "rstDr"; - b61 += "ive"; - b61 += "Strea"; - b61 += "ming"; - switch (O4P) { - case 5: - O4P = !this.bfa && !this.Kd() ? 4 : 14; - break; - case 4: - void 0 === this.eHa && (this.eHa = !0, this.kp(b61)); - b = this.ja.Yd; - c = b[h.G.VIDEO]; - b[h.G.AUDIO].fg && c.fg && (this.ED ? this.ja.gPa(this.Bc, c.fa) : !this.MV && this.La.uc && (b = a.eE, this.La.uc && this.La.uc.fE(b, this.wj.sessionId), this.MV = !0, a.d3 && (a = { - type: I61, - time: F.time.la() - }, D(this, a.type, a)))); - this.fda(this.ja.xm); - this.ja.Yd.forEach(function(a) { - var Y4P; - Y4P = 2; - while (Y4P !== 1) { - switch (Y4P) { - case 4: - this.FKa(a); - Y4P = 3; - break; - Y4P = 1; - break; - case 2: - this.FKa(a); - Y4P = 1; - break; - } - } - }.bind(this)); - O4P = 14; - break; - case 2: - a = this.H; - O4P = 5; - break; - } - } - }; - b.prototype.pV = function(a) { - var E4P; - E4P = 2; - while (E4P !== 1) { - switch (E4P) { - case 2: - return this.Kd() || this.Ib.value == h.xa.jy || this.Ib.value == h.xa.iy || this.Wa.rb[a.O].Hx || this.dV ? !1 : !0; - break; - } - } - }; - b.prototype.fda = function(a, b) { - var I4P, c, d, g, R61; - I4P = 2; - while (I4P !== 13) { - R61 = "S"; - R61 += "till in buff"; - R61 += "ering st"; - R61 += "ate while pipeline's are d"; - R61 += "one"; - switch (I4P) { - case 9: - I4P = !d.fg || !g.fg ? 8 : 6; - break; - case 8: - I4P = (this.gda(a, d, g), this.gda(a, g, d), !d.fg || !g.fg) ? 7 : 6; - break; - case 6: - this.hm(this.Ib.value) && (this.ba(R61), this.Ku()); - b || c.HB || this.Ii || !a.TOa() || ((b = this.hm(this.Ib.value)) && this.H.sZ && (this.AW(), b = !1), a.LN || this.ja.JZa(a, b), d.Bka && g.Bka && (d = Object.keys(a.children), 1 !== d.length || a.children[d[0]].active || this.ja.Mma(a, d[0]), this.gHa(a, c))); - I4P = 13; - break; - case 2: - c = a.na; - d = a.kb[h.G.VIDEO]; - g = a.kb[h.G.AUDIO]; - c.Y2 || this.ja.o3a(a, c, this.Ii && 0 === a.Da); - I4P = 9; - break; - case 7: - return; - break; - } - } - }; - b.prototype.gHa = function(a, b) { - var j4P, d, g, h, f, m, A61; - j4P = 2; - while (j4P !== 11) { - A61 = "No subbranch c"; - A61 += "andidate"; - A61 += "s"; - A61 += " to"; - A61 += " drive"; - switch (j4P) { - case 2: - d = this.H; - g = []; - h = []; - j4P = 3; - break; - case 3: - c.Kc(a.children, function(a, c) { - var i4P; - i4P = 2; - while (i4P !== 5) { - switch (i4P) { - case 2: - c = b.Jk[c].weight; - 0 !== c && (c = { - weight: c, - jc: a - }, a.lz(d.Ph, !0) || h.push(c), g.push(c)); - i4P = 5; - break; - } - } - }.bind(this)); - 0 === h.length ? h = g : 2 < h.length && (h.sort(function(a, b) { - var B4P; - B4P = 2; - while (B4P !== 1) { - switch (B4P) { - case 2: - return b.weight - a.weight; - break; - case 4: - return b.weight + a.weight; - break; - B4P = 1; - break; - } - } - }), h.length = 2); - j4P = 8; - break; - case 13: - 0 !== f && 0 !== m ? (c.Kc(h, function(a) { - var S4P; - S4P = 2; - while (S4P !== 4) { - switch (S4P) { - case 2: - a.Tcb = a.weight / f; - a.XNa = a.wna / m; - a.Qsa = a.XNa - a.Tcb; - S4P = 4; - break; - } - } - }), h.sort(function(a, b) { - var N4P; - N4P = 2; - while (N4P !== 1) { - switch (N4P) { - case 2: - return a.Qsa - b.Qsa; - break; - case 4: - return a.Qsa / b.Qsa; - break; - N4P = 1; - break; - } - } - })) : h.sort(function(a, b) { - var L4P; - L4P = 2; - while (L4P !== 4) { - switch (L4P) { - case 2: - a = Math.min.apply(null, a.jc.Yj); - b = Math.min.apply(null, b.jc.Yj); - v7AA.W91(3); - return v7AA.s91(b, a); - break; - } - } - }); - j4P = 12; - break; - case 7: - a = h.reduce(function(a, b) { - var M4P, P79; - M4P = 2; - while (M4P !== 4) { - switch (M4P) { - case 2: - b.Yj = b.jc.Yj; - b.wna = Math.min(b.Yj[0], b.Yj[1]); - v7AA.W91(5); - P79 = v7AA.f91(5, 13, 247, 14); - return [a[0] + b.weight, a[P79] + b.wna]; - break; - } - } - }, [0, 0]); - f = a[0]; - m = a[1]; - j4P = 13; - break; - case 8: - j4P = 1 < h.length ? 7 : 12; - break; - case 12: - 0 === h.length ? this.ba(A61) : (a = h[0].jc, a.Ac || (a.Ac = { - CO: F.time.la(), - $w: 0 - }), a.Ac.weight = h[0].weight, this.fda(a, !0)); - j4P = 11; - break; - } - } - }; - b.prototype.gda = function(a, b, d) { - var g4P, g, f, m, l, t61, m61, C61, V61; - g4P = 2; - while (g4P !== 33) { - t61 = "a"; - t61 += "u"; - t61 += "d"; - t61 += "io"; - m61 = "v"; - m61 += "i"; - m61 += "d"; - m61 += "e"; - m61 += "o"; - C61 = "l"; - C61 += "ocationS"; - C61 += "el"; - C61 += "ecte"; - C61 += "d"; - V61 = "drivePipeline, delaying audio until video"; - V61 += " actualStartPts determi"; - V61 += "ned"; - switch (g4P) { - case 9: - g4P = m.Si && (!b.zt || (b.yo(b.OP), !b.zt)) ? 8 : 33; - break; - case 21: - return; - break; - case 7: - g4P = l.Km && !c.S(l.Km.aj) ? 6 : 33; - break; - case 22: - g4P = !d ? 21 : 35; - break; - case 35: - g = d.rh; - g4P = 34; - break; - case 3: - m = this.Wa.rb[f]; - g4P = 9; - break; - case 12: - this.Ii && c.S(l.fa) || (b.fg || this.Yea(b), this.Bc < this.Ca.length - 1 && this.Sy(this.Bc + 1)); - g4P = 33; - break; - case 25: - g4P = (f = this.BHa(b, g)) ? 24 : 33; - break; - case 17: - g4P = c.S(g) ? 16 : 15; - break; - case 4: - g4P = !b.fg ? 3 : 33; - break; - case 23: - d = this.jIa(b, d); - g4P = 22; - break; - case 14: - b.ba(V61); - g4P = 33; - break; - case 11: - g4P = this.pV(b) ? 10 : 33; - break; - case 6: - g4P = g.Vm && f === h.G.AUDIO && c.S(this.Wa.rb[h.G.VIDEO].En) ? 14 : 13; - break; - case 34: - g = b.Nc[g]; - g4P = 25; - break; - case 2: - g = this.H; - f = b.O; - g4P = 4; - break; - case 24: - g.Wb && g.Wb != m.kw && (this.gea(b, g.Wb, g.QQ, g.location, g.J), m.kw = g.Wb), g.location && g.location !== m.dma && (this.eea({ - type: C61, - mediatype: b.O === h.G.VIDEO ? m61 : t61, - location: g.location, - locationlv: g.b1a, - serverid: g.Wb, - servername: g.HH, - selreason: g.QQ, - seldetail: g.hH - }), delete g.hH, m.dma = g.location), g.cma = g.location, g.pA = g.Wb, b.i0a = g.J, this.iIa(b, g, f, d.iB), a.Ac && ++a.Ac.$w; - g4P = 33; - break; - case 27: - g4P = this.Eca(b, g).FI ? 26 : 25; - break; - case 8: - l = this.Ca[this.Bc]; - g4P = 7; - break; - case 26: - return; - break; - case 10: - g4P = this.Fca(b, d) ? 20 : 23; - break; - case 15: - g = b.Nc[g]; - g4P = 27; - break; - case 20: - b.p1 = F.time.la(); - d = this.Wa.gO(b); - g = d.rh; - g4P = 17; - break; - case 13: - g4P = (c.S(b.ih) && (b.ih = b.wf ? b.wf.index : this.XK(f, a.Da, b.Ka)), b.Rk && b.ih > b.Rk.index) ? 12 : 11; - break; - case 16: - return; - break; - } - } - }; - b.prototype.oV = function(a, b) { - var P4P, d, g; - P4P = 2; - while (P4P !== 3) { - switch (P4P) { - case 2: - d = this.H; - g = a.jc; - !g.na.HB || this.ED || this.oW || (c.S(b) && (b = this.Hg() || 0), b -= g.Ub, a.fg && !a.fu && b + d.Sab >= a.fa && 0 === a.Ia.yt && 0 === a.Ia.LR && this.SIa(a)); - P4P = 3; - break; - } - } - }; - b.prototype.iIa = function(a, b, d, g) { - var z4P, f, m, l, p, r, B61, o61, Q61, Z61, X61, H61, w61, v61, Y61; - z4P = 2; - while (z4P !== 6) { - B61 = "NFEr"; - B61 += "r_M"; - B61 += "C_Streamin"; - B61 += "g"; - B61 += "Failure"; - o61 = "MediaRe"; - o61 += "quest "; - o61 += "open f"; - o61 += "ail"; - o61 += "ed (1)"; - Q61 = "mak"; - Q61 += "eRequest ca"; - Q61 += "ught:"; - Z61 = " "; - Z61 += "n"; - Z61 += "ati"; - Z61 += "ve: "; - X61 = "Me"; - X61 += "diaRequest.open er"; - X61 += "ror: "; - H61 = "!continueDriving in reque"; - H61 += "stC"; - H61 += "reated"; - w61 = "f"; - w61 += "ast"; - w61 += "play:"; - v61 = "pas"; - v61 += "t fr"; - v61 += "agments le"; - v61 += "ng"; - v61 += "th:"; - Y61 = "makeRequest nextFragmen"; - Y61 += "t"; - Y61 += "Index:"; - switch (z4P) { - case 8: - r = a.ih; - r >= d.length ? a.ba(Y61, r, v61, d.length, w61, this.Ii) : (d = this.AHa(a, b, d, r), this.hm(this.Ib.value) && ++a.bY, d.Hm && l === h.G.VIDEO && this.dW(f.na, d.fa), this.zW(l, d.X), l = f.Ub, d.lra(f.Ub), F.time.la(), g = a.Ia.KM(this, f, d, p.Si, b, g), g.open() ? (c.da(p.Nk) || (p.Em = b.O8a, p.YF = b.YF || -1, p.Nk = b.J, p.n_a = b.U4, c.S(b.U4) || this.ec.jra(b.U4, b.Qk, b.Qj)), m && (p.r1 = d.url), this.pV(a) || a.ba(H61), a.G9a(g.fa - l, d.index + 1), this.OGa(a), this.vg()) : (a.ba(X61 + g.Mj + Z61 + g.Uk), g.readyState !== T.Va.$l && (a.ba(Q61, g.Mj), this.Aj(o61, B61)))); - z4P = 6; - break; - case 2: - f = a.jc; - m = b.url; - l = a.O; - p = this.Wa.rb[l]; - d = d.T; - z4P = 8; - break; - } - } - }; - b.prototype.XW = function(a, b) { - var D4P; - D4P = 2; - while (D4P !== 1) { - switch (D4P) { - case 2: - return this.zr(this.ja.Ml(a.O), a, b); - break; - } - } - }; - b.prototype.zr = function(a, b, c) { - var m4P, d, g; - m4P = 2; - while (m4P !== 14) { - switch (m4P) { - case 2: - d = this.H; - g = b.abort(); - b.ze(); - b.sf && b.sf.clear(); - m4P = 9; - break; - case 9: - d.nv || a.Ia.wH(b); - this.Se[a.O].wH(b); - !0 === c && this.vg(); - return g; - break; - } - } - }; - b.prototype.PJa = function(a, b, c) { - var t4P; - t4P = 2; - while (t4P !== 3) { - switch (t4P) { - case 2: - a.Vob = c; - a.yo(b); - this.pg && 0 < this.pg.length && (this.pg.forEach(function(a) { - var l4P; - l4P = 2; - while (l4P !== 1) { - switch (l4P) { - case 2: - this.XW(a, !1); - l4P = 1; - break; - case 4: - this.XW(a, +6); - l4P = 8; - break; - l4P = 1; - break; - } - } - }.bind(this)), delete this.pg); - this.Iea(a); - t4P = 3; - break; - } - } - }; - b.prototype.GKa = function(a) { - var C4P, b, d, G61; - C4P = 2; - while (C4P !== 3) { - G61 = "no new"; - G61 += "Audi"; - G61 += "oT"; - G61 += "rack se"; - G61 += "t"; - switch (C4P) { - case 4: - c.S(d.MG) ? a.ba(G61) : (this.Se[b].pause(), d.Hx = !0, this.MIa(this.Mr, this.Er[h.G.AUDIO], d.MG.lj)); - C4P = 3; - break; - case 2: - b = a.O; - d = this.Wa.rb[b]; - C4P = 4; - break; - } - } - }; - b.prototype.QJa = function(a) { - var s4P, b, c, d, g, f, m, r61; - s4P = 2; - while (s4P !== 32) { - r61 = "audioTrackC"; - r61 += "h"; - r61 += "an"; - r61 += "ge"; - switch (s4P) { - case 14: - d.MG = void 0; - this.pg && 0 < this.pg.length && (this.pg = this.pg.filter(function(b) { - var R4P; - R4P = 2; - while (R4P !== 4) { - switch (R4P) { - case 8: - return -2; - break; - R4P = 4; - break; - case 1: - return !0; - break; - case 5: - this.zr(a, b, !1); - R4P = 4; - break; - case 2: - R4P = b.O === h.G.VIDEO ? 1 : 5; - break; - } - } - }.bind(this)), 0 === this.pg.length && (delete this.pg, b.eE || this.UW())); - s4P = 12; - break; - case 2: - b = this.H; - c = a.jc; - d = this.Wa.rb[a.O]; - this.Iu = d.MG; - g = this.Hg(); - s4P = 8; - break; - case 12: - this.Iea(a); - d.Im = void 0; - s4P = 10; - break; - case 27: - b = function(a) { - var T4P, b, c; - T4P = 2; - while (T4P !== 8) { - switch (T4P) { - case 1: - b = this.Ca[a]; - c = b.pe; - T4P = 4; - break; - case 4: - a = this.wL(b.Sa, a, this.Er, this.Ii, c, h.G.AUDIO); - a[h.G.VIDEO] = c[h.G.VIDEO]; - b.pe = a; - T4P = 8; - break; - case 2: - T4P = 1; - break; - } - } - }.bind(this); - s4P = 26; - break; - case 35: - a.yo(g); - a.Opa(g); - this.ja.xm.M0(this.Bc); - s4P = 32; - break; - case 8: - f = this.vz; - g = g - c.Ub; - this.Er[h.G.AUDIO] = this.Iu.lj; - s4P = 14; - break; - case 10: - d.Nh = void 0; - d.sF = void 0; - d.Nk = void 0; - this.vW(r61, h.G.AUDIO); - this.ja.hra(c, !0); - this.ja.nqa(c); - this.fV[h.G.AUDIO] = this.La.xja(this.Mr, this.Er, h.G.AUDIO)[h.G.AUDIO]; - s4P = 27; - break; - case 24: - b(c); - s4P = 23; - break; - case 21: - f.pe[h.G.AUDIO].Nc.some(function(a) { - var y4P; - y4P = 2; - while (y4P !== 1) { - switch (y4P) { - case 2: - return (m = this.Ge[h.G.AUDIO][a.id]) && m.T; - break; - } - } - }.bind(this)) ? (f.Vb[h.G.AUDIO] = m, delete a.wf, delete a.Rk, f.fQ = !1, this.oD(f, this.Bc)) : f.Vb[h.G.AUDIO].Jsa = !0; - s4P = 35; - break; - case 23: - ++c; - s4P = 25; - break; - case 25: - s4P = c < this.Ca.length ? 24 : 22; - break; - case 26: - c = this.Bc; - s4P = 25; - break; - case 22: - s4P = f.Vb && f.Vb[h.G.AUDIO] ? 21 : 35; - break; - } - } - }; - b.prototype.$ea = function(a, b, d) { - var X4P; - X4P = 2; - while (X4P !== 1) { - switch (X4P) { - case 2: - c.S(b) || c.S(d) || (a.location = b, a.Ec = d, this.La.Hb.UQ(b), this.ec.j4a(a.O, b)); - X4P = 1; - break; - } - } - }; - b.prototype.QW = function() { - var p4P, a, b, d, g, h, E61, z61; - p4P = 2; - while (p4P !== 20) { - E61 = "mani"; - E61 += "f"; - E61 += "est"; - E61 += "s"; - E61 += ":"; - z61 = "u"; - z61 += "pdateR"; - z61 += "equestUrls"; - z61 += ", no manifestEntry:"; - switch (p4P) { - case 2: - a = []; - b = 0; - d = this.vz; - p4P = 3; - break; - case 3: - p4P = !d ? 9 : 8; - break; - case 6: - p4P = 0 < a.length ? 14 : 10; - break; - case 8: - g = d.fo; - this.ja.Yd.forEach(function(b) { - var q4P, c, d61, g61; - q4P = 2; - while (q4P !== 3) { - d61 = "location "; - d61 += "selector is gone, sessio"; - d61 += "n "; - d61 += "has "; - d61 += "been closed"; - g61 = "location selector ret"; - g61 += "u"; - g61 += "rned null "; - g61 += "streamList"; - switch (q4P) { - case 1: - q4P = g ? 5 : 9; - break; - case 2: - q4P = 1; - break; - case 5: - c = this.Wa.BA(b); - g.NR(c, b.Nc) ? (b = b.Ia.hcb(b.Xm, this.$ea.bind(this)), 0 < b.length && a.push.apply(a, b)) : b.ba(g61); - q4P = 3; - break; - case 9: - b.ba(d61); - q4P = 3; - break; - } - } - }.bind(this)); - p4P = 6; - break; - case 9: - return this.Yb(z61, this.Bc, E61, this.Ca.length), !1; - break; - case 14: - h = {}; - a.forEach(function(a) { - var x4P, c; - x4P = 2; - while (x4P !== 4) { - switch (x4P) { - case 2: - c = a.Da; - a.zc && c > this.Bc && (h[a.Da] = !0, ++b); - x4P = 4; - break; - } - } - }.bind(this)); - c.Kc(h, function(a, b) { - var J5P; - J5P = 2; - while (J5P !== 5) { - switch (J5P) { - case 2: - a = this.Ca[b]; - this.tW(a.M, b, a.pe); - J5P = 5; - break; - } - } - }.bind(this)); - return b === a.length ? !0 : !1; - break; - case 10: - return !0; - break; - } - } - }; - A3P = 168; - break; - case 79: - b.prototype.Ps = function(a, b, c) { - var Z9P; - Z9P = 2; - while (Z9P !== 1) { - switch (Z9P) { - case 2: - return this.ja.yi.kb[b].Ia.Ps(a, void 0, c); - break; - } - } - }; - b.prototype.Cga = function(a) { - var F9P, b, c; - F9P = 2; - while (F9P !== 13) { - switch (F9P) { - case 4: - return !1; - break; - case 2: - b = this.ja.yi; - F9P = 5; - break; - case 5: - F9P = b.Ih ? 4 : 3; - break; - case 3: - c = 0 < Object.keys(b.na && b.na.Jk || {}).length ? b.df - this.H.Cna : b.df; - F9P = 9; - break; - case 9: - F9P = a < b.qc || a >= c ? 8 : 7; - break; - case 8: - return !1; - break; - case 7: - b = this.Ps(a, h.G.AUDIO, !0); - a = this.Ps(a, h.G.VIDEO, !0); - return b && a && b.complete && a.complete; - break; - } - } - }; - b.prototype.XZ = function(a, b) { - var o9P, c, d; - o9P = 2; - while (o9P !== 8) { - switch (o9P) { - case 2: - c = this.Wa; - o9P = 5; - break; - case 5: - a = c.i_(a, b); - d = this.ec.cQ; - a && !a.Zy && d.WZ(a); - b ? c.y4() : (b = d.KWa(), this.XIa(b)); - o9P = 8; - break; - } - } - }; - b.prototype.qda = function(a, b) { - var B93 = v7AA; - var w9P, c, d, g, U61, J61, z79; - w9P = 2; - while (w9P !== 14) { - U61 = " retu"; - U61 += "rnin"; - U61 += "g index: "; - J61 = "findNewStreamInd"; - J61 += "ex unable to "; - J61 += "find st"; - J61 += "ream for bitrate: "; - switch (w9P) { - case 1: - w9P = 0 <= g ? 5 : 7; - break; - case 4: - w9P = d.J <= b ? 3 : 9; - break; - case 5: - w9P = (d = a[g], d.Ye && !d.fh && d.inRange) ? 4 : 8; - break; - case 2: - B93.u91(2); - z79 = B93.f91(20, 20); - g = a.length - z79; - w9P = 1; - break; - case 3: - return g; - break; - case 9: - c = g; - w9P = 8; - break; - case 7: - B93.u91(6); - this.ba(B93.s91(J61, U61, c, b)); - return c; - break; - case 8: - --g; - w9P = 1; - break; - } - } - }; - b.prototype.OGa = function(a) { - var G9P, b; - G9P = 2; - while (G9P !== 3) { - switch (G9P) { - case 1: - b = this.Wa.rb[a.O]; - b.Nh && b.Nh.xM && delete b.Nh.xM; - a.uQ && (delete b.Im, delete b.Nh, delete b.sF, delete b.Nk, delete a.uQ); - G9P = 3; - break; - case 2: - G9P = 1; - break; - } - } - }; - b.prototype.nKa = function(a, b) { - var H9P, g, d; - H9P = 2; - while (H9P !== 19) { - switch (H9P) { - case 20: - return !1; - break; - case 4: - return a.Hs = b, !0; - break; - case 11: - return a.Hs = [g], !0; - break; - case 14: - g = 0; - H9P = 13; - break; - case 8: - H9P = a.Nd < d.D2 ? 7 : 6; - break; - case 12: - H9P = (d = b[g], d.Ye && d.inRange && !d.fh && c.S(this.Ge[a.O][d.id])) ? 11 : 10; - break; - case 7: - return !1; - break; - case 9: - return !0; - break; - case 13: - H9P = g < b.length ? 12 : 20; - break; - case 6: - b = a.Nc; - H9P = 14; - break; - case 5: - H9P = b ? 4 : 3; - break; - case 3: - H9P = a.Hs && 0 < a.Hs.length ? 9 : 8; - break; - case 10: - ++g; - H9P = 13; - break; - case 2: - d = this.H; - H9P = 5; - break; - } - } - }; - b.prototype.RK = function(a, b, d) { - var A9P, g; - A9P = 2; - while (A9P !== 4) { - switch (A9P) { - case 2: - g = this.H; - A9P = 5; - break; - case 5: - return d ? g.yN ? g.yN : g.tO : g.Xsa && b ? b.offset + b.size : !c.S(a) && (a = this.Wa.rb[a], a.m1) ? a.m1 + 128 : 2292 + 12 * Math.ceil(this.wd / 2E3); - break; - } - } - }; - b.prototype.AOa = function(a) { - var V9P, b, c; - V9P = 2; - while (V9P !== 9) { - switch (V9P) { - case 3: - return a; - break; - case 2: - b = this.Ca[0]; - c = h.G.VIDEO; - b && b.Vb && b.Vb[c] && b.Vb[c].T ? b.Wp && b.Wp[c] && b.Wp[c].X <= a && b.Wp[c].fa > a ? a = b.Wp[c].hb : (b = b.Vb[c].T, a = b.Ll(a, void 0, !0), void 0 == a && a < b.length - 1 && ++a, a = b.Nq(a)) : a = void 0; - V9P = 3; - break; - } - } - }; - b.prototype.DK = function(a, b, c, d, g) { - var K9P, f, m, l, p; - K9P = 2; - while (K9P !== 8) { - switch (K9P) { - case 2: - f = this.Ca[a]; - d && (l = d.kb[h.G.VIDEO].Rk.fa, p = d.kb[h.G.AUDIO].Rk, d = p.fa, m = d - l, g || (l = void 0), p = d - p.X); - b = this.pda(c.kb, f.Vb, b, l, m, p); - a === this.ja.Fha && (c.kb[h.G.VIDEO].wf = b[h.G.VIDEO], c.kb[h.G.AUDIO].wf = b[h.G.AUDIO]); - K9P = 9; - break; - case 9: - return { - $A: b.map(function(a) { - var d9P; - d9P = 2; - while (d9P !== 1) { - switch (d9P) { - case 4: - return a.X; - break; - d9P = 1; - break; - case 2: - return a.X; - break; - } - } - }), - Wp: b - }; - break; - } - } - }; - b.prototype.pz = function(a, b) { - var r9P, d, g; - r9P = 2; - while (r9P !== 14) { - switch (r9P) { - case 3: - d = g.Ub; - r9P = 9; - break; - case 4: - r9P = g ? 3 : 7; - break; - case 2: - void 0 === a && (a = this.WP); - g = this.ja.uVa(b, a); - r9P = 4; - break; - case 9: - c.da(d) || (d = this.Ca[a].Rl); - v7AA.W91(3); - return v7AA.f91(d, b); - break; - case 7: - r9P = (g = this.ja.Yia(a)) ? 6 : 9; - break; - case 6: - d = g.Ub; - r9P = 9; - break; - } - } - }; - b.prototype.MPa = function(a, b) { - var u9P, d, g; - u9P = 2; - while (u9P !== 14) { - switch (u9P) { - case 2: - void 0 === a && (a = this.WP); - g = this.ja.tVa(b, a); - u9P = 4; - break; - case 4: - u9P = g ? 3 : 7; - break; - case 9: - c.da(d) || (d = this.Ca[a].Rl); - v7AA.u91(0); - return v7AA.f91(b, d); - break; - case 7: - u9P = (g = this.ja.Yia(a)) ? 6 : 9; - break; - case 3: - d = g.Ub; - u9P = 9; - break; - case 6: - d = g.Ub; - u9P = 9; - break; - } - } - }; - b.prototype.aka = function(a, b, c) { - var Q9P; - Q9P = 2; - while (Q9P !== 9) { - switch (Q9P) { - case 2: - a = (c ? this.pda : this.sD).call(this, a.kb, this.bq(a.Da).Vb, b); - Q9P = 1; - break; - case 4: - b = a[h.G.VIDEO]; - return c ? b.X : b.fa; - break; - case 1: - Q9P = !a.length ? 5 : 4; - break; - case 5: - return b; - break; - } - } - }; - b.prototype.pda = function(a, b, c, d, g, f) { - var n9P; - n9P = 2; - while (n9P !== 1) { - switch (n9P) { - case 2: - return b && b[h.G.VIDEO] && b[h.G.VIDEO].T && b[h.G.AUDIO] && b[h.G.AUDIO].T ? [h.G.VIDEO, h.G.AUDIO].map(function(h) { - var f9P; - f9P = 2; - while (f9P !== 4) { - switch (f9P) { - case 2: - h = a[h].Zia(b[h].stream, c, d, g, f); - c = h.X; - return h; - break; - } - } - }.bind(this)).reverse() : []; - break; - } - } - }; - b.prototype.sD = function(a, b, c) { - var h9P; - h9P = 2; - while (h9P !== 1) { - switch (h9P) { - case 2: - return b && b[h.G.VIDEO] && b[h.G.VIDEO].T && b[h.G.AUDIO] && b[h.G.AUDIO].T ? [h.G.VIDEO, h.G.AUDIO].map(function(d) { - var k9P; - k9P = 2; - while (k9P !== 4) { - switch (k9P) { - case 2: - d = a[d].wVa(b[d].stream, c); - c = d.fa; - return d; - break; - } - } - }.bind(this)).reverse() : []; - break; - } - } - }; - b.prototype.AHa = function(a, b, c, d) { - var a9P, g; - a9P = 2; - while (a9P !== 14) { - switch (a9P) { - case 3: - ++d; - a9P = 9; - break; - case 2: - c = b.T; - g = d === a.Rk.index; - d === a.wf.index ? (b = b.Nja(a.wf), b.JH(a.wf.Ut)) : g ? (b = b.Nja(a.Rk), b.JH(a.Rk.Ut), b.Rma()) : b = b.Vi(d); - a9P = 3; - break; - case 9: - a9P = d < c.length && d < a.Rk.index && b.ga < a.E2a ? 8 : 6; - break; - case 8: - b.nMa(c.get(d)); - a9P = 7; - break; - case 7: - ++d; - a9P = 9; - break; - case 6: - return b; - break; - } - } - }; - b.prototype.Eca = function(a, b) { - var v9P, c, d, g, h, L61; - v9P = 2; - while (v9P !== 7) { - L61 = "abortUns"; - L61 += "ent"; - L61 += "Requests on s"; - L61 += "erver change"; - switch (v9P) { - case 2: - c = this.H; - d = !1; - v9P = 4; - break; - case 4: - g = function(b) { - var b9P; - b9P = 2; - while (b9P !== 1) { - switch (b9P) { - case 2: - 0 !== b.length && (b = b[0], b.Ri < a.Ka && (b = b.Ri, a.m8a(b)), d = !0); - b9P = 1; - break; - } - } - }.bind(this); - c.lm && a.Ia.L9a(this.Bc, b.J, g); - h = this.Wa.rb[a.O]; - return this.uea && b.Wb && b.Wb != h.kw && (c.lm && (a.Ia.rfa(this.Bc, g), c.Zd && this.ug(L61)), 0 < a.Ia.yt) ? { - FI: !0, - Dn: d - } : { - FI: !1, - Dn: d - }; - break; - } - } - }; - b.prototype.jca = function(a, b) { - var c9P, c, d, g, h; - c9P = 2; - while (c9P !== 8) { - switch (c9P) { - case 4: - g = d.Im; - h = d.jt; - g && h && (d = d.Si) && (this.hm(this.Ib.value) || this.ec.CLa(c, d, g.J, h.J, a.Qka.J, b)); - c9P = 8; - break; - case 2: - c = a.O; - d = this.Wa.rb[c]; - c9P = 4; - break; - } - } - }; - b.prototype.GHa = function(a) { - var O9P; - O9P = 2; - while (O9P !== 1) { - switch (O9P) { - case 2: - return this.ja.QNa.reduce(function(b, c) { - var Y9P; - Y9P = 2; - while (Y9P !== 1) { - switch (Y9P) { - case 2: - return b + c.tYa(a); - break; - case 4: - return b / c.tYa(a); - break; - Y9P = 1; - break; - } - } - }, 0); - break; - } - } - }; - b.prototype.Fca = function(a, b) { - var E9P, d, g, f, m, l, p, r, i61, e61; - E9P = 2; - while (E9P !== 24) { - i61 = "floor"; - i61 += "ed "; - i61 += "to 0"; - e61 = "negativ"; - e61 += "e "; - e61 += "scheduledBufferLevel:"; - switch (E9P) { - case 26: - return !1; - break; - case 12: - E9P = f >= d.DA || p && f > Math.max(p * d.k2 / 100, d.F2) ? 11 : 10; - break; - case 18: - l = this.ja.kbb(); - E9P = 17; - break; - case 19: - return !1; - break; - case 17: - E9P = !c.S(d.qG) && l >= d.qG || a.PB + f >= Math.max(d.i2, this.La.wra + d.h3 * m.h2[g]) ? 16 : 15; - break; - case 11: - return !1; - break; - case 20: - E9P = !b.fg && l >= d.o2 && r > d.Ph && (l = d.pcb ? b.WNa : b.VNa, void 0 === l || l < d.P1a) || d.lm && a.Ia.LR >= d.q2 || this.GHa(g) >= d.tw ? 19 : 18; - break; - case 25: - return 0 < d.qq && !m && a.Yt + b.Yt > d.qq || g === h.G.VIDEO && this.Ii && a.Nd > d.g2 && (b = this.La.Hb.get(!1), b.$b && b.ia && b.ia.ta * a.PB > d.f2) ? !1 : !0; - break; - case 4: - f = a.jc; - m = this.Ca[f.Da]; - l = b.Ka; - p = a.Nd; - E9P = 7; - break; - case 7: - r = this.Hg(); - E9P = 6; - break; - case 10: - l = a.Ka - l; - E9P = 20; - break; - case 6: - r = a.Ka + f.Ub - r; - 0 > r && (a.ba(e61, r, i61), r = 0); - f = a.Ia.Foa; - E9P = 12; - break; - case 16: - return !1; - break; - case 15: - E9P = (m = this.hm(this.Ib.value)) ? 27 : 25; - break; - case 27: - E9P = (f = 1, a.bY < d.rw && (f = d.rw), a.Ia.yt >= f) ? 26 : 25; - break; - case 2: - d = this.H; - g = a.O; - E9P = 4; - break; - } - } - }; - b.prototype.jIa = function(a, b) { - var I9P, d, g, h; - I9P = 2; - while (I9P !== 12) { - switch (I9P) { - case 5: - I9P = !(!d.qX && !d.lm || a.p1 + d.YW > F.time.la()) ? 4 : 12; - break; - case 4: - a.p1 = F.time.la(); - d = this.Wa.gO(a); - g = d.rh; - I9P = 8; - break; - case 2: - d = this.H; - I9P = 5; - break; - case 14: - I9P = h && h.T && (g = this.Eca(a, g), !g.FI && g.Dn && this.Fca(a, b)) ? 13 : 12; - break; - case 7: - g = a.Nc[g]; - h = this.Ge[a.O][g.id]; - I9P = 14; - break; - case 8: - I9P = !c.S(g) ? 7 : 12; - break; - case 13: - return d; - break; - } - } - }; - b.prototype.BHa = function(a, b) { - var j9P, c, d, g; - j9P = 2; - while (j9P !== 13) { - switch (j9P) { - case 7: - return g; - break; - case 9: - g.yB && (a.fR === d && delete a.fR, g.yB = !1); - j9P = 13; - break; - case 3: - j9P = g && !g.T ? 9 : 8; - break; - case 8: - j9P = g ? 7 : 6; - break; - case 2: - c = a.O; - d = b.id; - g = this.Ge[c][d]; - j9P = 3; - break; - case 6: - c = this.RK(c, b.$k, b.ki); - this.FD(a, this.xl, b, { - url: b.url, - offset: 0, - ga: c - }); - j9P = 13; - break; - } - } - }; - b.prototype.Ku = function() { - var i9P, a, b, c, d, g, f, m, s61, f61, O61, F61, y61, P61, x61; - i9P = 2; - while (i9P !== 24) { - s61 = " "; - s61 += "v"; - s61 += "i"; - s61 += "deo: "; - f61 = "Sess"; - f61 += "io"; - f61 += "n che"; - f61 += "ckBufferingCo"; - f61 += "mplete, audio: "; - O61 = " "; - O61 += "m"; - O61 += "s"; - F61 = " ms,"; - F61 += " video buffer"; - F61 += ": "; - y61 = ", aud"; - y61 += "i"; - y61 += "o b"; - y61 += "uff"; - y61 += "er: "; - P61 = " "; - P61 += ">"; - P61 += "="; - P61 += " "; - x61 = "bu"; - x61 += "ffering"; - x61 += " lo"; - x61 += "nger than limit:"; - x61 += " "; - switch (i9P) { - case 3: - return !0; - break; - case 15: - i9P = f >= a.Ph && g >= a.Ph && (b = F.time.la() - this.kV, b >= a.VA) ? 27 : 26; - break; - case 25: - return !1; - break; - case 17: - return this.AW(), !0; - break; - case 11: - return !1; - break; - case 4: - i9P = !b && !this.Iu ? 3 : 9; - break; - case 2: - a = this.H; - b = this.hm(this.Ib.value); - i9P = 4; - break; - case 7: - g = this.ja.Yd; - f = g[h.G.AUDIO].Nd; - g = g[h.G.VIDEO].Nd; - m = a.Ph; - i9P = 12; - break; - case 12: - i9P = d.Qm >= a.Ph && (a.V7a && (m = d.Qm + 1E3), a.W7a && (!c.connected || !d.connected)) ? 11 : 10; - break; - case 18: - i9P = c ? 17 : 16; - break; - case 27: - return this.ba(x61 + b + P61 + a.VA + y61 + f + F61 + g + O61), this.AW(), !0; - break; - case 16: - i9P = b ? 15 : 25; - break; - case 9: - c = this.Wa.rb[h.G.AUDIO]; - d = this.Wa.rb[h.G.VIDEO]; - i9P = 7; - break; - case 10: - a.Zd && this.ug(f61 + f + s61 + g); - c = this.ja.xm.lz(m); - this.Iu && (f >= a.Ph || c) && (this.gNa(), this.Iu = void 0); - i9P = 18; - break; - case 26: - this.NIa(); - i9P = 25; - break; - } - } - }; - A3P = 113; - break; - case 25: - Z = F.MediaSource; - O = a(270); - a(67); - B = a(88); - ja = a(44); - l = a(30); - V = l.iBa; - D = l.Ha; - l = a(41); - S = l.T_a; - A = l.UXa; - b.prototype = Object.create(B.prototype); - b.prototype.constructor = b; - Object.defineProperties(b.prototype, { - M: { - get: function() { - var Q3P; - Q3P = 2; - while (Q3P !== 1) { - switch (Q3P) { - case 2: - return this.xl; - break; - case 4: - return this.xl; - break; - Q3P = 1; - break; - } - } - } - }, - aa: { - get: function() { - var n3P; - n3P = 2; - while (n3P !== 1) { - switch (n3P) { - case 2: - return this.VW; - break; - case 4: - return this.VW; - break; - n3P = 1; - break; - } - } - } - }, - UA: { - get: function() { - var f3P; - f3P = 2; - while (f3P !== 1) { - switch (f3P) { - case 2: - return this.Ib; - break; - case 4: - return this.Ib; - break; - f3P = 1; - break; - } - } - } - }, - $s: { - get: function() { - var h3P; - h3P = 2; - while (h3P !== 1) { - switch (h3P) { - case 2: - return this.ja.$s; - break; - case 4: - return this.ja.$s; - break; - h3P = 1; - break; - } - } - } - }, - attributes: { - get: function() { - var k3P; - k3P = 2; - while (k3P !== 1) { - switch (k3P) { - case 2: - return this.fV; - break; - case 4: - return this.fV; - break; - k3P = 1; - break; - } - } - } - }, - x1: { - get: function() { - var a3P; - a3P = 2; - while (a3P !== 1) { - switch (a3P) { - case 2: - return this.sf; - break; - case 4: - return this.sf; - break; - a3P = 1; - break; - } - } - } - }, - Da: { - get: function() { - var v3P; - v3P = 2; - while (v3P !== 1) { - switch (v3P) { - case 2: - return this.Bc; - break; - case 4: - return this.Bc; - break; - v3P = 1; - break; - } - } - } - }, - WP: { - get: function() { - var b3P; - b3P = 2; - while (b3P !== 1) { - switch (b3P) { - case 2: - return 0 <= this.jL ? this.jL : 0; - break; - case 4: - return 5 >= this.jL ? this.jL : 7; - break; - b3P = 1; - break; - } - } - } - }, - vz: { - get: function() { - var c3P; - c3P = 2; - while (c3P !== 1) { - switch (c3P) { - case 4: - return this.Ca[this.Bc]; - break; - c3P = 1; - break; - case 2: - return this.Ca[this.Bc]; - break; - } - } - } - }, - ej: { - get: function() { - var O3P; - O3P = 2; - while (O3P !== 1) { - switch (O3P) { - case 4: - return this.La.ej; - break; - O3P = 1; - break; - case 2: - return this.La.ej; - break; - } - } - } - }, - Lq: { - get: function() { - var Y3P; - Y3P = 2; - while (Y3P !== 1) { - switch (Y3P) { - case 4: - return this.La.Lq; - break; - Y3P = 1; - break; - case 2: - return this.La.Lq; - break; - } - } - } - }, - dE: { - get: function() { - var E3P; - E3P = 2; - while (E3P !== 1) { - switch (E3P) { - case 4: - return this.ec; - break; - E3P = 1; - break; - case 2: - return this.ec; - break; - } - } - } - }, - P7a: { - get: function() { - var I3P; - I3P = 2; - while (I3P !== 1) { - switch (I3P) { - case 2: - return this.Oea; - break; - case 4: - return this.Oea; - break; - I3P = 1; - break; - } - } - } - } - }); - b.prototype.N1a = function() { - var j3P, a; - j3P = 2; - while (j3P !== 3) { - switch (j3P) { - case 2: - a = 0; - c.forEach(this.Mr.audio_tracks, function(b) { - var i3P; - i3P = 2; - while (i3P !== 1) { - switch (i3P) { - case 2: - c.forEach(b.streams, function(b) { - var B3P; - B3P = 2; - while (B3P !== 1) { - switch (B3P) { - case 2: - a = Math.max(a, b.bitrate); - B3P = 1; - break; - } - } - }); - i3P = 1; - break; - } - } - }); - return a; - break; - } - } - }; - b.prototype.Hg = function() { - var M3P; - M3P = 2; - while (M3P !== 1) { - switch (M3P) { - case 2: - return this.Hy.Hg(); - break; - case 4: - return this.Hy.Hg(); - break; - M3P = 1; - break; - } - } - }; - b.prototype.Bm = function(a) { - var S3P; - S3P = 2; - while (S3P !== 1) { - switch (S3P) { - case 4: - return this.ja.Bm(a); - break; - S3P = 1; - break; - case 2: - return this.ja.Bm(a); - break; - } - } - }; - b.prototype.bq = function(a) { - var N3P; - N3P = 2; - while (N3P !== 1) { - switch (N3P) { - case 2: - return this.Ca[a]; - break; - case 4: - return this.Ca[a]; - break; - N3P = 1; - break; - } - } - }; - b.prototype.EXa = function() { - var L3P, a; - L3P = 2; - while (L3P !== 4) { - switch (L3P) { - case 2: - a = this.Ca[0]; - return a.ki ? this.Ca[1] : a; - break; - } - } - }; - b.prototype.dG = function(a, b) { - var g3P; - g3P = 2; - while (g3P !== 9) { - switch (g3P) { - case 2: - g3P = a === b ? 1 : 5; - break; - case 5: - a = this.Ca[a]; - g3P = 4; - break; - case 1: - return !0; - break; - case 4: - b = this.Ca[b]; - return a.ki && b.vG || b.ki && a.vG; - break; - } - } - }; - b.prototype.Uz = function(a) { - var P3P; - P3P = 2; - while (P3P !== 1) { - switch (P3P) { - case 2: - return this.Ge[a]; - break; - case 4: - return this.Ge[a]; - break; - P3P = 1; - break; - } - } - }; - b.prototype.NWa = function(a) { - var z3P; - z3P = 2; - while (z3P !== 5) { - switch (z3P) { - case 2: - z3P = (a = this.ja.yi.children[a]) ? 1 : 5; - break; - case 1: - return { - Ub: a.Ub, - qc: a.qc, - df: a.df, - Ri: a.Ri, - Ij: a.Ij - }; - break; - } - } - }; - A3P = 54; - break; - case 219: - b.prototype.MA = function(a) { - var N79, b, l61, k61, u61, W61; - N79 = 2; - while (N79 !== 4) { - l61 = "NFErr_"; - l61 += "MC_Streami"; - l61 += "ngFailure"; - k61 = ", err"; - k61 += "orm"; - k61 += "sg"; - k61 += ": "; - u61 = "MP"; - u61 += "4 parsing error o"; - u61 += "n:"; - u61 += " "; - W61 = "requestError igno"; - W61 += "red, pipelin"; - W61 += "es shutdown, mediaRequest:"; - switch (N79) { - case 2: - b = a.Mj; - this.Kd() ? this.ba(W61, a) : a.zc && a.parseError ? (this.ba(u61 + a + k61, a.parseError), this.Aj(a.parseError)) : (this.H.gZa && b === T.dr.sT && 0 < a.Jc && (b = T.dr.lS), this.Ca[a.Da].Mz.Xk(a.status, b, a.Uk, { - url: a.url - }), this.QW() || this.Aj(a.c_, l61, b, a.status, a.Uk)); - N79 = 4; - break; - } - } - }; - f.P = b; - A3P = 217; - break; - } - } - }()); - }, function(f, c, a) { - var d, h, l, g, m, p; - - function b(a, b, c) { - m = c; - p = c.map(function(a, b) { - return a.Ye && a.inRange && !a.fh ? b : null; - }).filter(function(a) { - return null !== a; - }); - if (null === g) return a = h(c), g = c[a].J, new l(a); - if (!p.length) return null; - a = p.filter(function(a) { - return c[a].J == g; - })[0]; - return void 0 === a ? (d.log("Defaulting to first stream due to unvalid bitrate requested: " + g), new l(p[0])) : new l(a); - } - a(10); - a(13); - c = a(41); - a = a(9); - d = c.console; - h = c.m_; - l = c.gm; - g = null; - m = null; - p = null; - a.SOa && (a.SOa.EB = { - Xc: function() { - p = m = g = null; - }, - V4: function(a) { - g = a; - }, - job: function() { - return { - all: m, - Psa: p - }; - } - }); - f.P = { - STARTING: b, - BUFFERING: b, - REBUFFERING: b, - PLAYING: b, - PAUSED: b - }; - }, function(f, c, a) { - (function() { - var j61, b; - j61 = 2; - while (j61 !== 9) { - switch (j61) { - case 2: - j61 = 1; - break; - case 1: - a(10); - b = a(13); - a(41); - f.P = { - checkBuffering: function(a, c, f, g, m) { - var X93 = v7AA; - var a51, h, l, k, n, q, G, x, x3g, F3g, c3g, q3g, N51, D51, K51; - a51 = 2; - while (a51 !== 38) { - x3g = "m"; - x3g += "a"; - x3g += "xsi"; - x3g += "z"; - x3g += "e"; - F3g = "outo"; - F3g += "f"; - F3g += "ra"; - F3g += "nge"; - c3g = "h"; - c3g += "igh"; - c3g += "tp"; - q3g = "n"; - q3g += "ore"; - q3g += "bu"; - q3g += "ff"; - switch (a51) { - case 10: - a51 = !k ? 20 : 19; - break; - case 42: - --m; - a51 = 31; - break; - case 15: - a = c.T.Ll(h.Ka); - a51 = 27; - break; - case 25: - G = c.T.i3(a); - a51 = 24; - break; - case 41: - return { - complete: !0, - reason: q3g - }; - break; - case 24: - a51 = l >= n ? 23 : 40; - break; - case 1: - h = a.buffer; - l = a.Nd || h.Qi - h.me; - k = c.ia || 0; - n = 0; - a51 = 9; - break; - case 22: - return { - complete: !0, - reason: c3g - }; - break; - case 32: - --m; - a51 = 31; - break; - case 23: - a51 = k > c.J * m.zN ? 22 : 21; - break; - case 44: - return n = Math.min(f, l + x), { - complete: !1, - cx: n, - Rh: d(n) - }; - break; - case 16: - return k < c.J && (n = Math.min(f, Math.max(m.rH * (c.J / k - 1), n))), { - complete: !1, - cx: n, - Rh: (q - h.Mw) / (q + (n - (h.Ka - h.me)) * c.J / 8) - }; - break; - case 28: - a51 = 0 < x ? 44 : 43; - break; - case 40: - 0 < k && k < c.J && (n = Math.min(f, Math.max(m.rH * (c.J / k - 1), n))); - return { - complete: !1, - cx: n, - Rh: d(n) - }; - break; - case 6: - return { - complete: !1, - oG: !0 - }; - break; - case 26: - return { - complete: !0, - reason: F3g - }; - break; - case 8: - return { - complete: !0, - reason: x3g - }; - break; - case 31: - a51 = m > a ? 30 : 41; - break; - case 20: - return { - complete: !1, - cx: n - }; - break; - case 21: - n = c.T.hF(a); - m = Math.min(a + Math.floor(m.rH / n), c.T.length - 1); - x = c.T.i3(m); - a51 = 33; - break; - case 12: - g && (n += g.MM * m.mX); - n = f ? Math.min(f, n) : n; - a51 = 10; - break; - case 33: - X93.B3g(0); - N51 = X93.H3g(33, 23, 18); - n = N51 * G / k - h.me; - a51 = 32; - break; - case 27: - a51 = -1 === a ? 26 : 25; - break; - case 30: - g = c.T.get(m); - X93.f3g(1); - D51 = X93.X3g(37, 2, 15, 10, 72); - x = D51 * x / k - g.X - n; - a51 = 28; - break; - case 14: - X93.f3g(2); - K51 = X93.X3g(29, 10, 19); - n = m.Ph * (a.state === b.xa.qr ? m.g4 : K51); - m.mUa && c.ma && c.ma.he && c.ma.he.ta > m.L1 && (n += m.lX + c.ma.he.ta * m.r3); - a51 = 12; - break; - case 9: - a51 = l >= f ? 8 : 7; - break; - case 17: - a51 = !c.T || !c.T.length ? 16 : 15; - break; - case 7: - a51 = k <= m.R1 && (0 < k || !m.YZ) ? 6 : 14; - break; - case 43: - x = g.offset; - a51 = 42; - break; - case 19: - q = 0; - h.T.forEach(function(a) { - var p51; - p51 = 2; - while (p51 !== 1) { - switch (p51) { - case 2: - q += a.X + a.duration > h.me ? a.ga : 0; - p51 = 1; - break; - } - } - }); - a51 = 17; - break; - case 2: - a51 = 1; - break; - } - } - - function d(a) { - var S51; - S51 = 2; - while (S51 !== 5) { - switch (S51) { - case 2: - a = c.T.j_(h.me + a, void 0, !0); - return (q - h.Mw) / (q + (a.offset + a.ga) - G); - break; - } - } - } - } - }; - j61 = 9; - break; - } - } - }()); - }, function(f, c, a) { - (function() { - var P3g, c, h, l, g; - P3g = 2; - - function b(a, b, d, h) { - var Q3g, f, B2S, S2S, w3g; - Q3g = 2; - while (Q3g !== 11) { - B2S = "pl"; - B2S += "ayer m"; - B2S += "issing streamingIndex"; - S2S = "Must have at"; - S2S += " leas"; - S2S += "t one selected "; - S2S += "strea"; - S2S += "m"; - switch (Q3g) { - case 8: - f = d[h]; - Q3g = 7; - break; - case 2: - l(!c.S(h), S2S); - l(c.da(b.al), B2S); - b = g(h); - Q3g = 3; - break; - case 3: - v7AA.f2S(0); - w3g = v7AA.U2S(6, 12, 17); - h = d.length - w3g; - Q3g = 9; - break; - case 7: - Q3g = f.ma && f.ma.ia && f.J < f.ma.ia.ta - a.Oab ? 6 : 14; - break; - case 6: - return b.se = h, b; - break; - case 13: - b.se = 0; - return b; - break; - case 9: - Q3g = -1 < h ? 8 : 13; - break; - case 14: - --h; - Q3g = 9; - break; - } - } - } - while (P3g !== 14) { - switch (P3g) { - case 7: - h = a(133); - f.P = { - STARTING: h.STARTING, - BUFFERING: h.BUFFERING, - REBUFFERING: h.REBUFFERING, - PLAYING: b, - PAUSED: b - }; - P3g = 14; - break; - case 2: - c = a(10); - a(13); - h = a(41); - a(9); - l = h.assert; - P3g = 8; - break; - case 8: - g = h.gm; - P3g = 7; - break; - } - } - }()); - }, function(f, c, a) { - var d; - - function b(a, b, c) { - return new d(c.length - 1); - } - a(10); - d = a(41).gm; - f.P = { - STARTING: b, - BUFFERING: b, - REBUFFERING: b, - PLAYING: b, - PAUSED: b - }; - }, function(f, c, a) { - var d; - - function b() { - return new d(0); - } - a(10); - d = a(41).gm; - f.P = { - STARTING: b, - BUFFERING: b, - REBUFFERING: b, - PLAYING: b, - PAUSED: b - }; - }, function(f, c, a) { - var h; - - function b(a, b) { - if (!a) throw Error("Conv Net assertion failed" + (b ? " : " + b : "")); - } - - function d(a, b, c, d, h) { - this.UK = a; - this.VK = a[0].length; - this.tca = b; - this.GW = c; - this.uL = d; - this.bea = h; - } - a(10); - a(9); - h = a(35).tanh; - d.prototype.constructor = d; - d.prototype.forward = function(a) { - var c, d, f, l, k; - c = a.length; - b(0 === (a.length - this.VK + 2 * this.uL) % this.GW, "inputs' dimension does not fit into this conv layer"); - b(this.UK.length === this.tca.length, "the number of filters need to match the number of biases"); - if (0 < this.uL) { - f = []; - for (d = 0; d < this.uL; d++) f.push(0); - a = f.concat(a).concat(f); - } - f = []; - for (d = 0; d <= a.length - this.VK; d += this.GW) - for (var v = 0; v < this.UK.length; v++) l = this.UK[v], k = this.tca[v], l = this.u_a(a.slice(d, d + this.VK), l) + k, "tanh" === this.bea ? f.push(h(l)) : b(!1, "Unsupported NL type: " + this.bea); - b(f.length === this.UK.length * ((c - this.VK + 2 * this.uL) / this.GW + 1), "outputs dimension is wrong!"); - return f; - }; - d.prototype.u_a = function(a, c) { - b(a.length === c.length, ""); - for (var d = 0, g = 0; g < a.length; g++) d += a[g] * c[g]; - return d; - }; - f.P = d; - }, function(f, c, a) { - (function() { - var N2S, x, y, C, F, N, T, t, Z, O, B, ja, V, D, S, A; - - function c(a, b, c) { - var L93 = v7AA; - var v2S, X47, r47, q47, I47, P47, O8S, P8S, F8S, I8S, y8S, u8S, M8S; - v2S = 2; - while (v2S !== 4) { - X47 = "b"; - X47 += "itrate-l"; - X47 += "i"; - X47 += "ne"; - X47 += "ar"; - r47 = "vmaf-"; - r47 += "line"; - r47 += "ar"; - q47 = "bitrate-rec"; - q47 += "ip"; - q47 += "rocal"; - I47 = "b"; - I47 += "itra"; - I47 += "t"; - I47 += "e-lo"; - I47 += "g"; - P47 = "vm"; - P47 += "a"; - P47 += "f-reciprocal"; - switch (v2S) { - case 13: - v2S = a === P47 ? 12 : 11; - break; - case 7: - L93.t47(6); - O8S = L93.J47(25, 75); - a = b.je / O8S; - v2S = 5; - break; - case 3: - v2S = a === I47 ? 9 : 8; - break; - case 6: - v2S = a === q47 ? 14 : 13; - break; - case 8: - v2S = a === r47 ? 7 : 6; - break; - case 1: - L93.t47(1); - P8S = L93.J47(879937, 109993, 9); - a = b.J / P8S; - v2S = 5; - break; - case 10: - L93.t47(7); - F8S = L93.G47(1870000, 17, 357519, 4, 2); - a = b.J / F8S; - v2S = 5; - break; - case 9: - a = Math.log(b.J) / A; - v2S = 5; - break; - case 14: - L93.c47(8); - I8S = L93.J47(14, 7, 20, 18, 17); - L93.c47(6); - y8S = L93.J47(80, 20); - a = I8S / b.J * y8S; - v2S = 5; - break; - case 12: - L93.c47(9); - u8S = L93.J47(1); - L93.t47(10); - M8S = L93.J47(20, 15, 1, 5); - a = u8S / b.je * M8S; - v2S = 5; - break; - case 5: - return isFinite(a) ? c * a : 0; - break; - case 11: - v2S = 10; - break; - case 2: - v2S = a === X47 ? 1 : 3; - break; - } - } - } - - function b(a, b) { - var T2S, m, l, p, c, d, g, h, f, r; - T2S = 2; - while (T2S !== 21) { - switch (T2S) { - case 25: - a = {}; - a.Ysb = c; - a.ANa = d; - return a; - break; - case 19: - T2S = p < a.length ? 18 : 15; - break; - case 18: - r = Math.abs(f - a[p]); - r < l && (l = r, m = p); - T2S = 16; - break; - case 16: - p++; - T2S = 19; - break; - case 26: - void 0 !== m && (g[m] = !0, d[m] = h); - T2S = 10; - break; - case 20: - l = Number.POSITIVE_INFINITY, p = 0; - T2S = 19; - break; - case 13: - f = b[h]; - T2S = 12; - break; - case 10: - h++; - T2S = 14; - break; - case 3: - h = 0; - T2S = 9; - break; - case 12: - T2S = void 0 === f ? 11 : 20; - break; - case 6: - h = 0; - T2S = 14; - break; - case 11: - c[h] = void 0; - T2S = 10; - break; - case 14: - T2S = h < b.length ? 13 : 25; - break; - case 15: - g[m] && (m = void 0); - c[h] = m; - T2S = 26; - break; - case 4: - g = Array(a.length); - T2S = 3; - break; - case 7: - h++; - T2S = 9; - break; - case 8: - d[h] = void 0, g[h] = !1; - T2S = 7; - break; - case 9: - T2S = h < a.length ? 8 : 6; - break; - case 2: - c = []; - d = Array(a.length); - T2S = 4; - break; - } - } - } - - function G(a, d, f, l, u, v) { - var w8S, y, w, z, G, T, B, t, ca, O, D, V, X, ja, S, A, U, ea, da, H, ia, ba, ha, P, Y, aa, fa, C47, p47, V47, l47, Y47, D47, j47, i47, H47, k47, a47, n47, f47, o47, v47, e47, w47, s47, E47, g47, z47, m47, F47, S47, O47; - w8S = 2; - while (w8S !== 167) { - C47 = "Invalid mixWithProd value (min"; - C47 += "/max/undef"; - C47 += "ined support"; - C47 += "ed): "; - p47 = "m"; - p47 += "a"; - p47 += "x"; - V47 = "m"; - V47 += "i"; - V47 += "n"; - l47 = "s"; - l47 += "o"; - l47 += "f"; - l47 += "tm"; - l47 += "ax"; - Y47 = "m"; - Y47 += "a"; - Y47 += "x"; - D47 = "m"; - D47 += "i"; - D47 += "n"; - j47 = "Nee"; - j47 += "d to prov"; - j47 += "ide v"; - j47 += "alid"; - j47 += " number of throughput stats"; - i47 = "q"; - i47 += "ua"; - i47 += "dr"; - i47 += "a"; - i47 += "tic"; - H47 = "li"; - H47 += "n"; - H47 += "ear"; - k47 = "rl"; - k47 += " is not set up correctly. Fa"; - k47 += "ll back "; - k47 += "to original algorithm."; - a47 = "p"; - a47 += "s"; - a47 += "d"; - n47 = "Must hav"; - n47 += "e rlPara"; - n47 += "m specified!"; - f47 = "play"; - f47 += "er missing "; - f47 += "s"; - f47 += "treami"; - f47 += "ngIndex"; - o47 = "Must have at "; - o47 += "lea"; - o47 += "st one se"; - o47 += "lected stream"; - v47 = "pe"; - v47 += "rcen"; - v47 += "tile"; - e47 = "Invali"; - e47 += "d polic"; - e47 += "y"; - e47 += " mappin"; - e47 += "g!!"; - w47 = "quadrat"; - w47 += "i"; - w47 += "c"; - s47 = "f"; - s47 += "ix"; - s47 += "ed"; - E47 = "i"; - E47 += "q"; - E47 += "r"; - g47 = "f"; - g47 += "i"; - g47 += "x"; - g47 += "ed"; - z47 = "throug"; - z47 += "hp"; - z47 += "ut-s"; - z47 += "w"; - m47 = "t"; - m47 += "hroughput-"; - m47 += "sw"; - F47 = "Must sup"; - F47 += "ply rlPara"; - F47 += "m.bitrates!"; - S47 = "bas"; - S47 += "eN"; - S47 += "etw"; - S47 += "ork"; - O47 = "Must have rlPar"; - O47 += "am.repea"; - O47 += "tLen"; - O47 += "gth"; - switch (w8S) { - case 69: - w = a.Fa.discountPolicyMapping; - U = a.Fa.addInputsToPolicyNetwork; - z = q(z.ma, d.buffer, a.Fa.bandwidthManifold); - w8S = 66; - break; - case 64: - A.push(O ? O.time ? O.time : 0 : 0); - w8S = 63; - break; - case 63: - O = m(a, A, Y, D, G, ba, ha, da, ea, P, f[f.length - 1].J, z.J); - w8S = 62; - break; - case 73: - U = k(O, B, a.Fa.baseNetwork, a.Fa.policyNetwork, a.Fa.valueNetwork, t, void 0 !== a.Fa.bandwidthManifold); - D = U.E5a; - t = U.Dcb; - w8S = 70; - break; - case 113: - z = ia; - w8S = 99; - break; - case 127: - w8S = D < z.length ? 126 : 124; - break; - case 21: - ++U; - w8S = 22; - break; - case 122: - w8S = U < ia.length ? 121 : 152; - break; - case 60: - return w.iB = { - a1: !0, - state: O, - j6: !1, - Uc: { - Eo: T, - J: w.Lb.J, - YX: G, - al: ca - }, - tY: w.Lb.J, - uY: w.Lb.je, - gga: H - }, w; - break; - case 35: - ea = z.T ? z.T.length : void 0; - da = ea ? ea - ca : void 0; - S = a.Fa.bitrates; - H = f.map(function(a) { - var e8S; - e8S = 2; - while (e8S !== 1) { - switch (e8S) { - case 2: - return a.J; - break; - case 4: - return a.J; - break; - e8S = 1; - break; - } - } - }); - w8S = 31; - break; - case 70: - w8S = void 0 !== a.Fa.bandwidthManifold ? 69 : 150; - break; - case 62: - F(!x.S(a.Fa.repeatLength), O47); - w8S = 61; - break; - case 50: - w8S = ja && ja.length ? 49 : 45; - break; - case 104: - U++; - w8S = 79; - break; - case 56: - t = p(a.Fa.convLayerPars, a.Fa.convNetwork); - w8S = 55; - break; - case 103: - w8S = !a.Fa.useControl && a.Fa.randomizeAction ? 102 : 113; - break; - case 147: - B = ia.map(function(a) { - var n93 = v7AA; - var Y8S; - Y8S = 2; - while (Y8S !== 1) { - switch (Y8S) { - case 4: - n93.c47(4); - return n93.G47(a, 1); - break; - Y8S = 1; - break; - case 2: - n93.t47(5); - return n93.G47(a, 0); - break; - } - } - }); - w8S = 73; - break; - case 40: - w8S = U < ia.length ? 39 : 37; - break; - case 133: - U++; - w8S = 135; - break; - case 13: - w8S = !a.Fa.hasOwnProperty(S47) ? 12 : 11; - break; - case 81: - z = Number.NEGATIVE_INFINITY; - w8S = 80; - break; - case 146: - w8S = A.length < aa ? 145 : 64; - break; - case 47: - A.push(ja[U] || 0); - w8S = 46; - break; - case 129: - w8S = U < z.length ? 128 : 123; - break; - case 123: - U = 0; - w8S = 122; - break; - case 109: - U = 0; - w8S = 108; - break; - case 144: - w8S = U < aa ? 143 : 64; - break; - case 136: - U++; - w8S = 138; - break; - case 31: - F(!x.S(S), F47); - ia = b(S, H).ANa; - ba = h(a.Fa.qualityFunction, f, a.Fa.numOfChunkQualities, a.Fa.qualityRewardMultiplier, a.Fa.useProdSimulation, ia); - c(a.Fa.qualityFunction, z, a.Fa.qualityRewardMultiplier); - ha = g(a.Fa.chunkSizeFetchStyle, a.Fa.numOfChunkSizes, a.Fa.lookAhead || 1, f, ca); - w8S = 43; - break; - case 145: - U = A.length; - w8S = 144; - break; - case 39: - void 0 !== ia[U] && f[ia[U]] == aa.Lb ? P.push(1) : P.push(0); - w8S = 38; - break; - case 102: - U = Math.random(), z = ia = 0; - w8S = 101; - break; - case 92: - w.AN = !1; - w8S = 91; - break; - case 43: - P = void 0; - w8S = 42; - break; - case 97: - w8S = U < f.length ? 96 : 94; - break; - case 134: - z.push(O.pM[U]); - w8S = 133; - break; - case 79: - w8S = U < D.length ? 78 : 103; - break; - case 125: - D++; - w8S = 127; - break; - case 26: - V = 0; - S && S.Om && S.Om.jh && S.Om.Tf && S.Om.kh && (V = Number((S.Om.kh - S.Om.jh) / S.Om.Tf).toFixed(6)); - A = O && O[m47] ? O[z47].ta : 0; - w8S = 23; - break; - case 100: - z++; - w8S = 101; - break; - case 75: - B[U] = !0; - w8S = 74; - break; - case 87: - X = Math.abs(S[U] - z), X = Math.exp(-X * X / .1), D.push(X), ia += X; - w8S = 86; - break; - case 20: - ca = d.al; - O = z.ma; - D = O ? O.o8a : void 0; - V = O ? O.dk : void 0; - X = O ? O.Ht : void 0; - ja = V ? V.cf([0, .1, .2, .3, .4, .5, .6, .7, .8, .9, 1]) : void 0; - S = O ? O.Xi : void 0; - w8S = 26; - break; - case 80: - U = ia = 0; - w8S = 79; - break; - case 84: - w8S = U < S.length ? 83 : 81; - break; - case 66: - w8S = g47 === w ? 90 : 112; - break; - case 49: - U = 0; - w8S = 48; - break; - case 14: - T = z.ma.ia.ta; - w8S = 13; - break; - case 89: - U = ia = 0; - w8S = 88; - break; - case 61: - w8S = 0 != ca % a.Fa.repeatLength ? 60 : 59; - break; - case 93: - w = aa; - w8S = 92; - break; - case 23: - U = 0; - w8S = 22; - break; - case 150: - fa = n.call(this, D, a.Fa, S, ia, a, d, f, l, u, v); - z = fa.P8a; - w8S = 148; - break; - case 139: - A.push(X.Cp), U = 0; - w8S = 138; - break; - case 11: - B = d.buffer.X; - t = d.buffer.Ka; - w8S = 20; - break; - case 119: - aa = y.call(this, a, d, f, l, u, v); - w8S = 118; - break; - case 88: - w8S = U < S.length ? 87 : 85; - break; - case 48: - w8S = U < ja.length ? 47 : 45; - break; - case 96: - f[U].ma.fpa = S[z], f[U].ia = u(f[U].ma, d.buffer); - w8S = 95; - break; - case 124: - U++; - w8S = 129; - break; - case 57: - return w = y.call(this, a, d, f, l, u, v), w.AN = !0, w.iB = { - a1: !1, - j6: !0, - Uc: { - Eo: T, - J: w.Lb.J, - YX: G, - al: ca - }, - uY: w.Lb.je, - tY: w.Lb.J, - gga: H - }, w; - break; - case 169: - w8S = U === E47 ? 168 : 45; - break; - case 168: - A.push(V), Y = !1; - w8S = 45; - break; - case 115: - w.iB = { - a1: !1, - j6: !1, - state: O, - action: z, - frb: D, - value: t, - Qpb: B, - Uc: { - Eo: T, - J: w.Lb.J, - YX: G, - rga: fa && fa.value ? Number(fa.value).toFixed(3) : 0, - ut: V, - ega: fa ? Number(fa.ega).toFixed(6) : 0, - al: ca - }, - tY: w.Lb.J, - uY: w.Lb.je, - gga: H - }; - return w; - break; - case 143: - A.push(0); - w8S = 142; - break; - case 142: - U++; - w8S = 144; - break; - case 55: - w8S = a.Fa.useProdSimulation ? 77 : 147; - break; - case 148: - w.Lb = fa.Lb; - w8S = 92; - break; - case 120: - U++; - w8S = 122; - break; - case 99: - w8S = !a.Fa.useControl && (s47 !== w || a.Fa.randomizeAction) ? 98 : 94; - break; - case 128: - D = U; - w8S = 127; - break; - case 38: - U++; - w8S = 40; - break; - case 132: - w8S = w47 === w ? 131 : 152; - break; - case 82: - U++; - w8S = 84; - break; - case 111: - z = [z]; - w8S = 110; - break; - case 22: - w8S = U < d.buffer.T.length ? 21 : 35; - break; - case 59: - U = a.Fa.periodOfUseControl ? a.Fa.periodOfUseControl : 3E4; - w8S = 58; - break; - case 138: - w8S = U < X.z.length ? 137 : 170; - break; - case 110: - w8S = U ? 109 : 132; - break; - case 78: - X = D[U], X > z && (ia = U, z = X); - w8S = 104; - break; - case 94: - aa = y.call(this, a, d, f, l, u, v); - w8S = 93; - break; - case 77: - B = Array(S.length), U = 0; - w8S = 76; - break; - case 95: - U++; - w8S = 97; - break; - case 65: - A = A.slice(0, aa); - w8S = 64; - break; - case 126: - ia.push(z[U] * z[D]); - w8S = 125; - break; - case 151: - F(!1, e47); - w8S = 81; - break; - case 46: - U++; - w8S = 48; - break; - case 106: - U++; - w8S = 108; - break; - case 51: - w8S = U === v47 ? 50 : 141; - break; - case 91: - w8S = void 0 !== a.Fa.mixWithProd ? 119 : 115; - break; - case 2: - F(!x.S(l), o47); - F(x.da(d.al), f47); - F(!x.S(a.Fa), n47); - w8S = 3; - break; - case 117: - w = aa, w.AN = !0; - w8S = 116; - break; - case 131: - ia = []; - w8S = 130; - break; - case 140: - w8S = X && X.Cp && X.z ? 139 : 170; - break; - case 141: - w8S = U === a47 ? 140 : 169; - break; - case 76: - w8S = U < S.length ? 75 : 73; - break; - case 170: - Y = !1; - w8S = 45; - break; - case 130: - U = 0; - w8S = 129; - break; - case 121: - z.push(ia[U]); - w8S = 120; - break; - case 3: - y = Z.PLAYING; - w = N(); - w8S = 8; - break; - case 74: - U++; - w8S = 76; - break; - case 107: - z.push(O.BR[U]); - w8S = 106; - break; - case 41: - aa = y.call(this, a, d, f, l, u, v), aa.Lb, P = [], U = 0; - w8S = 40; - break; - case 45: - w8S = A.length > aa ? 65 : 146; - break; - case 12: - return C.error(k47), w = y.call(this, a, d, f, l, u, v), w.AN = !0, w.iB = { - a1: !1, - j6: !0, - uY: w.Lb.je, - tY: w.Lb.J, - Uc: { - Eo: T, - J: w.Lb.J, - YX: G - } - }, w; - break; - case 108: - w8S = U < O.BR.length ? 107 : 105; - break; - case 86: - U++; - w8S = 88; - break; - case 83: - D[U] /= ia; - w8S = 82; - break; - case 8: - z = f[l]; - w.Lb = z; - G = (d.buffer.Qi - d.buffer.me) / 1E3; - w8S = 14; - break; - case 112: - w8S = H47 === w || i47 === w ? 111 : 151; - break; - case 90: - D = []; - w8S = 89; - break; - case 58: - w8S = a.Fa.useControlEwmaMax && T > a.Fa.useControlEwmaMax || a.Fa.useControl || a.Fa.useControlAtStart && t <= B + U ? 57 : 56; - break; - case 42: - w8S = a.Fa.addProdOutput ? 41 : 37; - break; - case 37: - aa = a.Fa.numThroughputStats; - U = a.Fa.throughputStatsType; - F(aa && 1 <= aa, j47); - A = [T, A]; - Y = !0; - w8S = 51; - break; - case 118: - w8S = D47 === a.Fa.mixWithProd && w.Lb.J > aa.Lb.J || Y47 === a.Fa.mixWithProd && w.Lb.J < aa.Lb.J ? 117 : 116; - break; - case 137: - A.push(Number(X.z[U]).toFixed(6) / 1); - w8S = 136; - break; - case 98: - U = 0; - w8S = 97; - break; - case 101: - w8S = z < S.length && !(ia += D[z], U < ia) ? 100 : 99; - break; - case 85: - U = 0; - w8S = 84; - break; - case 152: - D = r(z, a.Fa.policyNetwork, B, l47); - w8S = 81; - break; - case 105: - U = 0; - w8S = 135; - break; - case 116: - V47 !== a.Fa.mixWithProd && p47 !== a.Fa.mixWithProd && F(!1, C47 + a.Fa.mixWithProd); - w8S = 115; - break; - case 135: - w8S = U < O.pM.length ? 134 : 132; - break; - } - } - } - - function v(a, b) { - var D2S, c, d, g, h; - D2S = 2; - while (D2S !== 3) { - switch (D2S) { - case 2: - c = Number.POSITIVE_INFINITY, h = 0; - D2S = 1; - break; - case 1: - D2S = h < a.length && !(d = Math.abs(a[h] - b), d < c && (c = d, g = h), a[h] > b) ? 5 : 4; - break; - case 4: - return g; - break; - case 5: - h++; - D2S = 1; - break; - case 6: - h--; - D2S = 3; - break; - D2S = 1; - break; - } - } - } - - function k(a, b, c, d, g, h, f) { - var b2S, N77, h77; - b2S = 2; - while (b2S !== 9) { - N77 = "s"; - N77 += "o"; - N77 += "f"; - N77 += "tm"; - N77 += "ax"; - h77 = "t"; - h77 += "a"; - h77 += "n"; - h77 += "h"; - switch (b2S) { - case 2: - null === h ? a = a.BR.concat(a.bsa).concat(a.pM).concat(a.Kga) : (h = h.forward(a.bsa), a = a.BR.concat(h).concat(a.pM).concat(a.Kga)); - b2S = 1; - break; - case 1: - c = r(a, c, void 0, h77); - b2S = 5; - break; - case 5: - b = f ? void 0 : r(c, d, b, N77); - g = r(c, g, void 0, void 0)[0]; - return { - E5a: b, - Dcb: g, - Xob: a - }; - break; - } - } - } - - function l(a, b, c, d) { - var a2S; - a2S = 2; - while (a2S !== 1) { - switch (a2S) { - case 2: - return a.T && 0 < a.T.length ? b < a.T.length ? a.T.Rja(b) / d : a.T.Rja(a.T.length - 1) / d : a.J * c / 8; - break; - } - } - } - - function g(a, b, c, d, g) { - var Q82 = v7AA; - var E2S, r, k, h, f, m, p, Q77, r8S; - E2S = 2; - while (E2S !== 30) { - Q77 = "ho"; - Q77 += "ri"; - Q77 += "zont"; - Q77 += "a"; - Q77 += "l"; - switch (E2S) { - case 9: - p = 0; - E2S = 8; - break; - case 15: - p++; - E2S = 17; - break; - case 1: - E2S = void 0 === b || 0 >= b ? 5 : 4; - break; - case 4: - h = 1; - E2S = 3; - break; - case 19: - E2S = Q77 === a ? 18 : 23; - break; - case 10: - p++; - E2S = 8; - break; - case 11: - h = m / d[p].J; - E2S = 20; - break; - case 7: - E2S = d[p].T && 0 < d[p].T.length ? 6 : 10; - break; - case 23: - a = Math.min(b, d.length), p = d.length - 1; - E2S = 22; - break; - case 25: - m.push(g); - E2S = 26; - break; - case 35: - E2S = k < c ? 34 : 32; - break; - case 22: - E2S = p >= d.length - a ? 21 : 27; - break; - case 18: - c = d[d.length - 1], m.push(c.J / 8), p = 0; - E2S = 17; - break; - case 3: - f = 2002; - E2S = 9; - break; - case 17: - E2S = p < b - 1 ? 16 : 27; - break; - case 31: - p--; - E2S = 22; - break; - case 34: - r += l(d[p], g + k, h, f); - E2S = 33; - break; - case 21: - r = 0, k = 0; - E2S = 35; - break; - case 27: - Q82.t47(1); - r8S = Q82.J47(179, 20, 9); - g = m[m.length - r8S]; - E2S = 26; - break; - case 26: - E2S = m.length < b ? 25 : 24; - break; - case 16: - m.push(l(c, g + p, h, f)); - E2S = 15; - break; - case 6: - f = d[p].T; - m = f.Rja(g); - f = f.Vnb(g); - Q82.t47(2); - m = Q82.J47(8, f, m); - E2S = 11; - break; - case 2: - E2S = 1; - break; - case 20: - m = []; - E2S = 19; - break; - case 32: - Q82.c47(3); - m.push(Q82.G47(c, r)); - E2S = 31; - break; - case 5: - return []; - break; - case 33: - k++; - E2S = 35; - break; - case 24: - return m; - break; - case 8: - E2S = p < d.length ? 7 : 20; - break; - } - } - } - N2S = 2; - - function q(a, b, c) { - var n2S, d, g, h, f, m, l, p; - n2S = 2; - while (n2S !== 12) { - switch (n2S) { - case 7: - a = Math.pow(Math.max(1 - (a[l] && a[l].ta || p) / f, 0), m); - b = b.Qi - b.me; - h ? g = D(h, b, a) * a : c ? (d = D(d, b, 1), g = D(g, b, 1), g = d * a + g * (1 - a)) : g = D(S(d, g, a), b, 1); - return g; - break; - case 2: - Array.isArray(c.curves) ? (d = V(c.curves[0], 0, 0, 1), g = V(c.curves[1], 0, 0, 1)) : h = V(c.curves, 0, 0, 1); - f = ja(c.threshold || 6E3, 1, 1E5); - m = ja(c.gamma || 1, .1, 10); - l = c.filter; - c = !!c.simpleScaling; - p = a.ia && a.ia.ta || 0; - n2S = 7; - break; - } - } - } - - function p(a, b) { - var J2S, h, f, m, l, c, d, g, R77, T77; - J2S = 2; - while (J2S !== 15) { - R77 = "Only 1 conv "; - R77 += "laye"; - R77 += "r currently supported!"; - T77 = "t"; - T77 += "a"; - T77 += "n"; - T77 += "h"; - switch (J2S) { - case 8: - b = b[0].W; - g = a[0].filter_size; - a = a[0].num_filters; - J2S = 14; - break; - case 12: - f = []; - J2S = 11; - break; - case 19: - l++; - J2S = 10; - break; - case 20: - f.push(b[l][0][m]); - J2S = 19; - break; - case 14: - h = [], m = 0; - J2S = 13; - break; - case 18: - h.push(f); - J2S = 17; - break; - case 1: - J2S = void 0 === a || void 0 === b || 0 === a.length || 0 === b.length ? 5 : 4; - break; - case 11: - l = 0; - J2S = 10; - break; - case 10: - J2S = l < g ? 20 : 18; - break; - case 16: - return new O(h, c, d, 0, T77); - break; - case 13: - J2S = m < a ? 12 : 16; - break; - case 5: - return null; - break; - case 4: - F(1 == a.length, R77); - c = b[0].b; - d = a[0].stride; - J2S = 8; - break; - case 17: - m++; - J2S = 13; - break; - case 2: - J2S = 1; - break; - } - } - } - while (N2S !== 27) { - switch (N2S) { - case 2: - x = a(10); - N2S = 5; - break; - case 10: - ja = a(35).FE; - V = a(35).Mga; - D = a(35).Hia; - a(35); - N2S = 17; - break; - case 7: - N = y.gm; - T = y.yX; - t = y.hja; - N2S = 13; - break; - case 9: - C = y.console; - F = y.assert; - N2S = 7; - break; - case 5: - a(13); - y = a(41); - a(9); - N2S = 9; - break; - case 17: - S = a(35).Gqa; - A = Math.log(110001); - f.P = { - STARTING: Z.STARTING, - BUFFERING: Z.BUFFERING, - REBUFFERING: Z.REBUFFERING, - PLAYING: G, - PAUSED: G - }; - N2S = 27; - break; - case 13: - Z = a(133); - O = a(483); - B = a(35).tanh; - N2S = 10; - break; - } - } - - function r(a, b, c, d) { - var p2S, r, g, h, f, m, l, p, k, u, v, b77, u77, y77, x77, U77, d77, A77, W77, B77, K77, L77, Z77, M77; - p2S = 2; - while (p2S !== 44) { - b77 = "U"; - b77 += "ns"; - b77 += "upported "; - b77 += "NL type: "; - u77 = "s"; - u77 += "oft"; - u77 += "max"; - y77 = "t"; - y77 += "a"; - y77 += "n"; - y77 += "h"; - x77 = "r"; - x77 += "e"; - x77 += "l"; - x77 += "u"; - U77 = "Mask should "; - U77 += "have same n"; - U77 += "um"; - U77 += "ber of "; - U77 += "elements as rows of mat!"; - d77 = "Masking only supported for softma"; - d77 += "x n"; - d77 += "o"; - d77 += "nline"; - d77 += "arity!"; - A77 = "soft"; - A77 += "m"; - A77 += "a"; - A77 += "x"; - W77 = ") as length of "; - W77 += "vec"; - W77 += " "; - W77 += "+ ("; - B77 = "mat"; - B77 += " should have same "; - B77 += "n"; - B77 += "umber of columns ("; - K77 = ") as len"; - K77 += "gth of bi"; - K77 += "as ("; - L77 = "mat should have "; - L77 += "s"; - L77 += "ame number of ro"; - L77 += "w"; - L77 += "s ("; - Z77 = "t"; - Z77 += "a"; - Z77 += "n"; - Z77 += "h"; - M77 = "s"; - M77 += "o"; - M77 += "f"; - M77 += "tm"; - M77 += "ax"; - switch (p2S) { - case 33: - p2S = g < r.length ? 32 : 30; - break; - case 21: - r[g] = void 0 === p || p[g] ? Math.exp(r[g]) : 0, h += r[g]; - p2S = 35; - break; - case 28: - return h; - break; - case 17: - p2S = v < f.length ? 16 : 27; - break; - case 29: - a++; - p2S = 3; - break; - case 20: - r = [], g = 0; - p2S = 19; - break; - case 31: - g++; - p2S = 33; - break; - case 19: - p2S = g < h.length ? 18 : 24; - break; - case 32: - r[g] /= h; - p2S = 31; - break; - case 16: - u += k[v] * f[v]; - p2S = 15; - break; - case 9: - h = b[a].W; - p2S = 8; - break; - case 34: - g = 0; - p2S = 33; - break; - case 24: - p2S = M77 === l ? 23 : 30; - break; - case 25: - ++g; - p2S = 19; - break; - case 2: - g = a; - h = a; - p2S = 4; - break; - case 8: - f = g; - m = b[a].b; - l = a === b.length - 1 ? d : Z77; - p = a === b.length - 1 ? c : void 0; - F(h.length === m.length, L77 + h.length + K77 + m.length + ")"); - F(f.length === h[0].length, B77 + h[0].length + W77 + f.length + ")"); - p2S = 11; - break; - case 35: - g++; - p2S = 22; - break; - case 22: - p2S = g < r.length ? 21 : 34; - break; - case 11: - F(void 0 === p || A77 === l, d77); - void 0 !== p && F(p.length === h.length, U77); - p2S = 20; - break; - case 30: - g = h = r; - p2S = 29; - break; - case 18: - k = h[g], u = m[g], v = 0; - p2S = 17; - break; - case 15: - ++v; - p2S = 17; - break; - case 23: - g = h = 0; - p2S = 22; - break; - case 3: - p2S = a < b.length ? 9 : 28; - break; - case 27: - x77 === l ? u = Math.max(0, u) : y77 === l ? u = B(u) : void 0 !== l && u77 !== l && F(!1, b77 + l); - r[g] = u; - p2S = 25; - break; - case 4: - a = 0; - p2S = 3; - break; - } - } + b = this; + this.Ha.removeEventListener(this.Yi.Ky, this.Le[this.Yi.Ky]); + this.Ha.removeEventListener("error", this.Le.error); + this.Ha.removeEventListener("seeking", this.Le.seeking); + this.Ha.removeEventListener("seeked", this.Le.seeked); + this.Ha.removeEventListener("timeupdate", this.Le.timeupdate); + this.Ha.removeEventListener("loadstart", this.Le.loadstart); + this.Ha.removeEventListener("volumechange", this.Le.volumechange); + this.Yi.Elb(this.Wja); + u.config.Do ? this.Yi.gxa().then(function() { + return a(); + }) : a(); + this.Yi.Gya && clearTimeout(this.Yi.Gya); + }; + b.prototype.oUa = function(a) { + return this.Yi.k8(a); + }; + b.prototype.iO = function() { + if (this.Ha) return this.Ha.getVideoPlaybackQuality && this.Ha.getVideoPlaybackQuality() || this.Ha.videoPlaybackQuality || this.Ha.playbackQuality; + }; + b.prototype.EVa = function() { + var a; + a = this.j.Ch; + return (a = a && a.errorCode) && 0 <= [D.I.cN, D.I.OM].indexOf(a); + }; + b.prototype.ARa = function() { + var a; + a = !1; + u.config.Xjb && this.EVa() && (a = !0); + u.config.q1 && !a && (this.Ha.removeAttribute("src"), this.Ha.load && this.Ha.load()); + URL.revokeObjectURL(this.$f); + u.config.fpa && this.Ha.removeEventListener("contextmenu", h); + !a && this.Ha && this.j.sf.removeChild(this.Ha); + this.Ha = this.ze = void 0; + this.$f = ""; + }; + b.prototype.yka = function() { + !0 === t.wd.hidden ? this.SN.forEach(function(a) { + a.refresh(); + a.Oob(); + }) : this.SN.forEach(function(a) { + a.refresh(); + a.dpb(); + }); + }; + b.prototype.TN = function(a) { + var b; + b = w.ca.get(F.Efa)(a); + this.SN.push(b); + return function() { + b.refresh(); + return b.A8a(); + }; + }; + b.prototype.NVa = function(a, b, c) { + var d; + switch (c) { + case f.gc.rg.VIDEO: + d = a; + break; + case f.gc.rg.AUDIO: + d = "AAC" == b.value.u1 ? r.ow : r.MJa; } + return d; + }; + b.prototype.KA = function(a, b) { + var f, c; + f = { + T: N.H.qg, + Ja: N.ad(b) + }; + try { + (c = b.message.match(/(?:[x\W\s]|^)([0-9a-f]{8})(?:[x\W\s]|$)/i)[1].toUpperCase()) && 8 == c.length && (f.ic = c); + } catch (va) {} + b = w.ca.get(m.Sj); + this.j.md(b(a, f)); + }; + b.prototype.Zka = function() { + this.SN.forEach(function(a) { + a.refresh(); + }); + }; + b.prototype.jSa = function() { + return this.Ha && this.Ha.msGraphicsTrustStatus; + }; + b.prototype.bl = function(a, b, f) { + var c; + c = w.ca.get(m.Sj); + this.j.md(c(a, b, f)); + }; + b.prototype.dWa = function(a) { + var f, c; - function n(a, b, c, d, g, h, f, m, l, p) { - var x2S, y, n, r, k, u, q, w, z, x, C, k2S, Z2S, F77, S77, O77, X77, r77, q77, I77, J77, G77; - x2S = 2; - while (x2S !== 45) { - F77 = "c"; - F77 += "los"; - F77 += "e"; - F77 += "s"; - F77 += "t"; - S77 = "dire"; - S77 += "c"; - S77 += "t"; - O77 = "re"; - O77 += "l"; - O77 += "at"; - O77 += "i"; - O77 += "ve"; - X77 = "ma"; - X77 += "p"; - X77 += "ping"; - r77 = "f"; - r77 += "act"; - r77 += "or"; - q77 = "hi"; - q77 += "ghestLowerTh"; - q77 += "an"; - I77 = "me"; - I77 += "a"; - I77 += "n"; - J77 = "Cannot us"; - J77 += "e "; - J77 += "mapping strategy when usin"; - J77 += "g mean!"; - G77 = "Invalid bitra"; - G77 += "teMapStrateg"; - G77 += "y config value: "; - switch (x2S) { - case 40: - F(!1, G77 + g.Fa.bitrateMapStrategy); - x2S = 25; - break; - case 27: - F(!g.Fa.useBitrateMean, J77); - x2S = 26; - break; - case 50: - u = k = 0; - x2S = 49; - break; - case 49: - y = a[0], n = 0; - x2S = 48; - break; - case 18: - z = u; - x2S = 13; - break; - case 13: - r.value = z; - t(f, function(a) { - var q2S, Q2S, P77, t77, c77; - q2S = 2; - while (q2S !== 11) { - P77 = "abs"; - P77 += "olut"; - P77 += "e"; - t77 = "f"; - t77 += "a"; - t77 += "ct"; - t77 += "o"; - t77 += "r"; - c77 = "r"; - c77 += "e"; - c77 += "l"; - c77 += "ativ"; - c77 += "e"; - switch (q2S) { - case 4: - w = 0 === w ? 1 : w; - a.ia = w; - q2S = 11; - break; - case 13: - w = z; - q2S = 4; - break; - case 7: - q2S = Q2S === c77 ? 6 : 14; - break; - case 9: - q2S = Q2S === t77 ? 8 : 7; - break; - case 8: - w = Math.floor(a.ma.ia.ta * z); - q2S = 4; - break; - case 12: - delete a.ia; - q2S = 11; - break; - case 5: - w = z; - q2S = 4; - break; - case 1: - Q2S = b.estimateType; - q2S = Q2S === P77 ? 5 : 9; - break; - case 6: - w = a.ia; - q2S = 4; - break; - case 2: - q2S = a.Ye && a.inRange && !a.fh && a.ma && a.ma.$b ? 1 : 12; - break; - case 14: - q2S = 13; - break; - } - } - }); - x = Z.PLAYING.call(this, g, h, f, m, l, p); - x2S = 10; - break; - case 47: - a[n] > y && (k = n, y = a[n]), u += a[n] * c[n]; - x2S = 46; - break; - case 19: - x2S = Z2S === I77 ? 18 : 17; - break; - case 42: - n++; - x2S = 44; - break; - case 2: - r = {}; - n = f[m].rga; - x2S = 4; - break; - case 17: - x2S = 16; - break; - case 21: - n = f.length - 1; - x2S = 35; - break; - case 36: - n = Math.random(); - q = 0; - x2S = 53; - break; - case 25: - r.Lb = f[C]; - x2S = 20; - break; - case 34: - x2S = streamBitrates[n] <= a ? 33 : 32; - break; - case 39: - x2S = b.randomizeAction ? 38 : 50; - break; - case 24: - x2S = k2S === q77 ? 23 : 31; - break; - case 48: - x2S = n < a.length ? 47 : 9; - break; - case 20: - return r; - break; - case 9: - r.P8a = k; - r.ega = y ? y : 0; - x2S = 7; - break; - case 4: - x2S = b.useControlAtTraining && !0 === b.useProdSimulation && r77 === b.estimateType ? 3 : 39; - break; - case 38: - x2S = Math.random() < (b.epsilon || 0) ? 37 : 36; - break; - case 7: - x2S = !0 === b.useProdSimulation ? 6 : 15; - break; - case 37: - k = Math.floor(Math.random() * Math.floor(c.length)); - x2S = 9; - break; - case 52: - x2S = k < a.length && !(q += a[k], n < q) ? 51 : 9; - break; - case 32: - n--; - x2S = 35; - break; - case 16: - z = c[k]; - x2S = 13; - break; - case 28: - n = C = 0; - x2S = 44; - break; - case 53: - k = 0; - x2S = 52; - break; - case 43: - d = Math.abs(streamBitrates[n] - a), d < c && (c = d, C = n); - x2S = 42; - break; - case 46: - n++; - x2S = 48; - break; - case 15: - k2S = b.bitrateMapStrategy; - x2S = k2S === X77 ? 27 : 24; - break; - case 10: - O77 === b.estimateType ? (m = T(f, function(a) { - var W2S; - W2S = 2; - while (W2S !== 1) { - switch (W2S) { - case 2: - return a.id === x.Lb.id; - break; - case 4: - return a.id !== x.Lb.id; - break; - W2S = 1; - break; - } - } - }), m += r.value, m = Math.max(0, m), m = Math.min(m, f.length - 1), r.Lb = f[m]) : r.Lb = x.Lb; - x2S = 20; - break; - case 26: - C = d[k]; - x2S = 25; - break; - case 44: - x2S = n < f.length ? 43 : 25; - break; - case 3: - k = v(c, n); - x2S = 9; - break; - case 51: - k++; - x2S = 52; - break; - case 6: - Z2S = b.actionStrategy; - x2S = Z2S === S77 ? 14 : 19; - break; - case 31: - x2S = k2S === F77 ? 30 : 41; - break; - case 23: - a = g.Fa.useBitrateMean ? u : baseBitrates[k]; - C = 0; - x2S = 21; - break; - case 33: - C = n; - x2S = 25; - break; - case 30: - a = g.Fa.useBitrateMean ? u : baseBitrates[k]; - c = Number.POSITIVE_INFINITY; - x2S = 28; - break; - case 41: - x2S = 40; - break; - case 35: - x2S = -1 < n ? 34 : 25; - break; - case 14: - z = c[k]; - x2S = 13; - break; - } - } + function b(c) { + b = N.Qb; + f.Pf(); + a(c); } - - function h(a, b, d, g, h, f) { - var z2S, m, o8S; - z2S = 2; - while (z2S !== 15) { - switch (z2S) { - case 11: - z2S = h < d ? 10 : 14; - break; - case 8: - h--; - z2S = 3; - break; - case 17: - d = f[h], void 0 !== d ? m.push(c(a, b[d], g)) : m.push(0); - z2S = 16; - break; - case 2: - m = []; - z2S = 5; - break; - case 5: - z2S = h ? 4 : 19; - break; - case 14: - return m; - break; - case 13: - z2S = m.length < d ? 12 : 14; - break; - case 6: - m = m.slice(0, d); - z2S = 14; - break; - case 3: - z2S = 0 <= h ? 9 : 7; - break; - case 7: - z2S = m.length > d ? 6 : 13; - break; - case 4: - v7AA.t47(0); - o8S = v7AA.J47(16, 15); - h = b.length - o8S; - z2S = 3; - break; - case 18: - z2S = h < f.length ? 17 : 14; - break; - case 9: - m.push(c(a, b[h], g)); - z2S = 8; - break; - case 19: - h = 0; - z2S = 18; - break; - case 16: - h++; - z2S = 18; - break; - case 10: - m.push(0); - z2S = 20; - break; - case 20: - h++; - z2S = 11; - break; - case 12: - h = m.length; - z2S = 11; - break; - } - } + f = w.ca.get(G.Gw)(500, function() { + b(); + }); + f.mp(); + try { + c = this.j.ie.value.vk.xGb.children.filter(function(a) { + return "pssh" == a.type && a.M4a == r.EGa; + })[0]; + new t.AF(this.Yi.Ad).createSession("video/mp4", c.raw, null).addEventListener(this.NW + "keyerror", function(a) { + a = k(a, D.fda); + b(a.qC); + }); + } catch (va) { + b(); } - - function m(a, b, c, d, g, h, f, m, l, p, r, k) { - var R2S, v, n, q, y, g77, z77, m77; - R2S = 2; - while (R2S !== 40) { - g77 = "Adding chunk sizes does "; - g77 += "not match the"; - g77 += " config!"; - z77 = "pro"; - z77 += "d outputs must be supp"; - z77 += "lied i"; - z77 += "f addProdOutpu"; - z77 += "t is turned on!"; - m77 = "Somet"; - m77 += "hing went wr"; - m77 += "ong w"; - m77 += "ith input vector!"; - switch (R2S) { - case 20: - F(c.length === a.Fa.numBToFeed, m77); - d = []; - R2S = 18; - break; - case 3: - c ? n.push(u(b[v])) : n.push(b[v]); - R2S = 9; - break; - case 24: - g.push(h[v]); - R2S = 23; - break; - case 23: - v++; - R2S = 25; - break; - case 43: - g.push(p[v]); - R2S = 42; - break; - case 26: - v = 0; - R2S = 25; - break; - case 4: - R2S = v < b.length - 1 ? 3 : 8; - break; - case 30: - a.Fa.addNumChunksLeft && (void 0 !== m && void 0 !== l && 0 <= m ? g.push(m / l) : g.push(1)); - R2S = 29; - break; - case 31: - v++; - R2S = 33; - break; - case 32: - g.push(f[v] / 25E6); - R2S = 31; - break; - case 28: - F(void 0 !== p, z77), v = 0; - R2S = 44; - break; - case 25: - R2S = v < h.length ? 24 : 22; - break; - case 33: - R2S = v < f.length ? 32 : 30; - break; - case 6: - v = 0; - R2S = 14; - break; - case 35: - R2S = a.Fa.numOfChunkSizes && 0 < a.Fa.numOfChunkSizes ? 34 : 30; - break; - case 22: - a.Fa.addTopBitrate && g.push(u(r)); - a.Fa.addHighEndSignal && (h = 0, a.Fa.HERatio && b[0] && b[0] > a.Fa.HERatio * r && (h = 1), g.push(h)); - R2S = 35; - break; - case 44: - R2S = v < p.length ? 43 : 41; - break; - case 41: - return { - BR: n, - bsa: c, - pM: d, - Kga: g - }; - break; - case 2: - n = [u(b[0])]; - R2S = 5; - break; - case 27: - R2S = a.Fa.addChunkQualities ? 26 : 22; - break; - case 14: - R2S = v < a.Fa.numBToFeed ? 13 : 20; - break; - case 18: - a.Fa.addBufferStats && d.push(g / 240); - g = []; - a.Fa.addLastBitrate && g.push(u(k)); - a.Fa.addAudioBitrate && g.push(u(0)); - R2S = 27; - break; - case 10: - v++; - R2S = 14; - break; - case 34: - F(f.length === a.Fa.numOfChunkSizes, g77), v = 0; - R2S = 33; - break; - case 42: - v++; - R2S = 44; - break; - case 13: - y = void 0 !== d ? d.length - 2 - v : -1; - 1 < y && (q = d[y]); - c.push(u(q)); - R2S = 10; - break; - case 29: - R2S = a.Fa.addProdOutput ? 28 : 41; - break; - case 8: - c = []; - q = 0; - R2S = 6; - break; - case 9: - v++; - R2S = 4; - break; - case 5: - v = 1; - R2S = 4; - break; - } + }; + b.prototype.tUa = function(a) { + var b, c, d, g, k, h, m; + if (this.Ha) { + a = a.PL; + b = this.jSa(); + b && (a.ConstrictionActive = b.constrictionActive, a.Status = b.status); + try { + a.readyState = "" + this.Ha.readyState; + a.currentTime = "" + this.Ha.currentTime; + a.pbRate = "" + this.Ha.playbackRate; + } catch (ib) {} + for (var b = this.Wo.length, f; b--;) { + f = this.Wo[b]; + c = ""; + f.type == r.OX ? c = "audio" : f.type == r.uF && (c = "video"); + N.La(a, f.AR(), { + prefix: c + }); + u.config.m5a && this.j.Ch && r.uF == f.type && (c = N.UK(f.Rw), 3E3 > (c.data && c.data.length) && (c.data = la.n0a(c.data).join(), N.La(a, c, { + prefix: f.type + }))); } - - function u(b) { - var G2S; - G2S = 2; - while (G2S !== 3) { - switch (G2S) { - case 1: - return 0; - break; - case 5: - a.Fa.takeLog ? (b = Math.log(1 + Math.max(0, b)), b /= A) : b /= 11E4; - return b; - break; - case 2: - G2S = 0 === b ? 1 : 5; - break; - case 7: - return 3; - break; - G2S = 3; - break; + this.ze && (b = this.ze.duration) && !isNaN(b) && (a.duration = b.toFixed(4)); + if (u.config.aeb) try { + d = this.j.dg; + g = d && d.Tta; + if (g) { + k = g.expiration; + isNaN(k) || (a.exp = k); + h = g.keyStatuses.entries(); + if (h.next) { + m = h.next().value; + m && (a.keyStatus = m[1]); } } - } - } - }()); - }, function(f, c, a) { - (function() { - var E77, p, r, k, v, n, q, G, x, y, C; - - function m(a, b, c, d) { - var H77; - H77 = 2; - while (H77 !== 1) { - switch (H77) { - case 2: - return !d && a > c.ow && (p.S(this.co) || this.rA > this.co || b - this.co > c.dP); - break; - } - } + } catch (ib) {} } - - function l(a, b, c, d) { - var o77; - o77 = 2; - while (o77 !== 1) { - switch (o77) { - case 2: - return g(a, b, c, d, !1); - break; - case 4: - return g(a, b, c, d, +2); - break; - o77 = 1; - break; - } - } + }; + b.prototype.Aka = function(a) { + this.OVa || (this.OVa = !0, this.Ii.Db(S.oh.wAa, a)); + }; + b.prototype.sUa = function() { + this.Ua.trace("Video element event: seeking"); + this.gl ? this.gl.ehb = !0 : (this.Ua.error("unexpected seeking event"), u.config.P6a && this.bl(D.I.LMa)); + }; + b.prototype.a_ = function() { + this.Ua.trace("Video element event: seeked"); + this.gl ? (q.sa(this.gl.ehb), this.gl.dhb = !0, this.tla()) : (this.Ua.error("unexpected seeked event"), u.config.O6a && this.bl(D.I.KMa)); + }; + b.prototype.uUa = function() { + this.gl && (this.gl.ghb = !0, this.tla()); + this.Ii.Db(S.oh.Fm); + }; + b.prototype.BO = function() { + this.Ua.trace("Video element event: loadstart"); + }; + b.prototype.vUa = function(a) { + this.Ua.trace("Video element event:", a.type); + try { + this.j.volume.set(this.Ha.volume); + this.j.muted.set(this.Ha.muted); + } catch (ja) { + this.Ua.error("error updating volume", ja); } - E77 = 2; - - function g(a, b, d, g, h) { - var f77, f, l, r, u, q, w, z, F, C, u2u, y2u, x2u, U2u, d2u, A2u, W2u, B2u, K2u, L2u, Z2u, M2u, R2u, T2u, Q2u, N2u, h2u, C77, p77, V77, l77, Y77, D77, j77; - f77 = 2; - while (f77 !== 42) { - u2u = "Must hav"; - u2u += "e at least one selected strea"; - u2u += "m"; - y2u = "m"; - y2u += "s"; - x2u = ", b"; - x2u += "uff"; - x2u += "er lev"; - x2u += "el = "; - U2u = ", las"; - U2u += "tUp"; - U2u += "switc"; - U2u += "hPts = "; - d2u = " "; - d2u += "Ups"; - d2u += "witch "; - d2u += "not allowed. lastDownswitchPts ="; - d2u += " "; - A2u = "new selected stream not al"; - A2u += "igned with last buffered fragmen"; - A2u += "t, stay on previous streamIndex"; - W2u = " "; - W2u += "k"; - W2u += "b"; - W2u += "p"; - W2u += "s"; - B2u = " "; - B2u += "kb"; - B2u += "ps "; - B2u += "> "; - K2u = "throughput "; - K2u += "for "; - K2u += "audio "; - L2u = "kbps,"; - L2u += " streamingPts "; - L2u += ":"; - Z2u = ", "; - Z2u += "audio th"; - Z2u += "roughput:"; - M2u = " k"; - M2u += "bps, pro"; - M2u += "f"; - M2u += "ile :"; - R2u = "selectAudioStr"; - R2u += "eam: selecte"; - R2u += "d stre"; - R2u += "am"; - R2u += " :"; - T2u = " "; - T2u += "k"; - T2u += "b"; - T2u += "p"; - T2u += "s"; - Q2u = " kbp"; - Q2u += "s"; - Q2u += ", to "; - N2u = "swit"; - N2u += "chin"; - N2u += "g au"; - N2u += "di"; - N2u += "o from "; - h2u = "d"; - h2u += "o"; - h2u += "w"; - h2u += "n"; - C77 = "u"; - C77 += "p"; - p77 = " kbps, try to down"; - p77 += "switc"; - p77 += "h"; - V77 = " "; - V77 += "kb"; - V77 += "ps "; - V77 += "<"; - V77 += " "; - l77 = "t"; - l77 += "hroughpu"; - l77 += "t for audi"; - l77 += "o "; - Y77 = ", stream"; - Y77 += "ingP"; - Y77 += "ts = "; - D77 = ", las"; - D77 += "tUpswitchPts ="; - D77 += " "; - j77 = " Upswitch allowed."; - j77 += " lastDownswi"; - j77 += "tchPts"; - j77 += " = "; - switch (f77) { - case 25: - f77 = w < r.length - 1 && z > F.Esa * q ? 24 : 10; - break; - case 26: - w--; - f77 = 16; - break; - case 6: - w = r.indexOf(g); - z = u.ia; - F = a.fNa; - f77 = 12; - break; - case 35: - f77 = m(C, q.Ka, F, h) ? 34 : 30; - break; - case 16: - f77 = 0 <= w ? 15 : 10; - break; - case 20: - f77 = (F = z.length) ? 19 : 29; - break; - case 31: - f = h; - f77 = 10; - break; - case 18: - f77 = w && z < F.gia * q ? 17 : 25; - break; - case 32: - f77 = (h = r[w], q = d[h], x(q) && z > F.Esa * q.J) ? 31 : 33; - break; - case 34: - v && k.log(j77 + this.co + D77 + this.rA + Y77 + q.Ka); - f77 = 33; - break; - case 17: - v && k.log(l77 + z + V77 + F.gia + "*" + q + p77), --w; - f77 = 16; - break; - case 12: - f77 = 0 > w ? 11 : 18; - break; - case 15: - f77 = (h = r[w], q = d[h], x(q) && (0 == w || q.J * F.gia < z)) ? 27 : 26; - break; - case 29: - z = d[f]; - f !== g && v && k.log((f > g ? C77 : h2u) + N2u + u.J + Q2u + z.J + T2u); - v && k.log(R2u + z.J + M2u + l + Z2u + z.ia + L2u + b.buffer.Ka); - return new y(f); - break; - case 10: - z = b.buffer.T; - f77 = 20; - break; - case 24: - v && k.log(K2u + z + B2u + F.Esa + "*" + q + W2u); - q = b.buffer; - C = q.Qi - q.me; - f77 = 21; - break; - case 8: - u = d[g]; - q = u.J; - f77 = 6; - break; - case 19: - z = z[F - 1], c(z, d[f]) || (v && k.log(A2u), z.stream && (f = z.stream.rh)); - f77 = 29; - break; - case 9: - f77 = r && 1 < r.length ? 8 : 29; - break; - case 33: - f77 = ++w < r.length ? 32 : 10; - break; - case 27: - f = h; - f77 = 10; - break; - case 21: - f77 = u.T && u.T.length ? 35 : 10; - break; - case 11: - f = 0; - f77 = 10; - break; - case 30: - v && k.log(d2u + this.co + U2u + this.rA + x2u + C + y2u); - f77 = 10; - break; - case 2: - n(!p.S(g), u2u); - f = g; - l = d[g].le; - a.M5.some(function(c) { - var n77, g, h, f, m; - n77 = 2; - while (n77 !== 6) { - switch (n77) { - case 3: - f = c.Lw.sP || a.sP; - m = b.buffer.Av; - n77 = 8; - break; - case 7: - return h; - break; - case 2: - g = c.profiles; - h = g && 0 <= g.indexOf(l); - n77 = 4; - break; - case 8: - r = d.filter(function(a) { - var a77; - a77 = 2; - while (a77 !== 1) { - switch (a77) { - case 2: - return 0 <= g.indexOf(a.le) && a.J * f / 8 < m; - break; - } - } - }).map(function(a) { - var k77; - k77 = 2; - while (k77 !== 1) { - switch (k77) { - case 4: - return a.rh; - break; - k77 = 1; - break; - case 2: - return a.rh; - break; - } - } - }); - n77 = 7; - break; - case 4: - n77 = h ? 3 : 7; - break; - } - } - }); - f77 = 9; - break; - } + }; + b.prototype.rG = function(a) { + a = k(a, D.mHa); + this.Ua.error("Video element event: error", a.$db); + this.bl(D.I.DMa, a.qC); + }; + b.prototype.tla = function() { + this.gl && this.gl.dhb && this.gl.ghb && (this.gl = void 0, this.Ii.Db(S.oh.KK)); + }; + na.Object.defineProperties(b.prototype, { + a$: { + configurable: !0, + enumerable: !0, + get: function() { + return u.config.Iob; } } + }); + d.uKa = b; + }, function(g, d, a) { + var r, u, l, v, n, w, D, z, q, P, F, la, N, O, t, U, ga; - function h(a, b, c, d) { - var v77; - v77 = 2; - while (v77 !== 1) { - switch (v77) { - case 4: - return g(a, b, c, d, +8); - break; - v77 = 1; - break; - case 2: - return g(a, b, c, d, !0); - break; - } - } - } - while (E77 !== 11) { - switch (E77) { - case 2: - p = a(10); - r = a(41); - k = r.console; - E77 = 3; - break; - case 12: - f.P = { - STARTING: function(a, c, d, g) { - var i77, h, f, J2u, G2u, b2u; - i77 = 2; - while (i77 !== 14) { - J2u = " "; - J2u += "kbps, profil"; - J2u += "e :"; - G2u = "selectAudio"; - G2u += "StreamSt"; - G2u += "arting: "; - G2u += "selected"; - G2u += " stream :"; - b2u = "se"; - b2u += "lect"; - b2u += "AudioStreamStarting: overriding confi"; - b2u += "g with "; - switch (i77) { - case 2: - i77 = 1; - break; - case 1: - h = a; - f = d[g || 0].le; - i77 = 4; - break; - case 3: - h = { - minInitAudioBitrate: a.BG, - minHCInitAudioBitrate: a.AG, - maxInitAudioBitrate: a.rG, - minRequiredAudioBuffer: a.sP - }, v && k.log(b2u + JSON.stringify(f)), q(f, h); - i77 = 9; - break; - case 4: - i77 = (f = b(f, a.M5) || b(f, a.cNa)) ? 3 : 9; - break; - case 9: - a = C[G.xa.name[G.xa.ng]](h, c, d, g); - d = d[a.se]; - v && k.log(G2u + d.J + J2u + d.le); - return a; - break; - } - } - }, - BUFFERING: h, - REBUFFERING: h, - PLAYING: l, - PAUSED: l - }; - E77 = 11; - break; - case 3: - v = r.debug; - n = r.assert; - q = a(44); - E77 = 7; - break; - case 7: - G = a(13); - x = r.iw; - y = r.gm; - C = a(258); - E77 = 12; - break; + function b() {} + + function c() {} + + function h() {} + + function k() {} + + function f() { + return z ? z : "0.0.0.0"; + } + + function p(a, b, f) { + a = F(a, b, f); + this.info = a.info.bind(a); + this.fatal = a.fatal.bind(a); + this.error = a.error.bind(a); + this.warn = a.warn.bind(a); + this.trace = a.trace.bind(a); + this.debug = a.debug.bind(a); + this.log = a.log.bind(a); + } + + function m(a) { + a({ + Qwa: 0, + mL: 0, + Dsa: 0, + gqa: 0 + }); + } + d = a(126); + c.prototype.constructor = c; + c.prototype.set = function(a, b) { + l[a] = b; + v.save(a, b); + }; + c.prototype.get = function(a, b) { + if (l.hasOwnProperty(a)) return l[a]; + D.trace("key: " + a + ", is not available in storage cache and needs to be retrieved asynchronously"); + v.load(a, function(f) { + f.S ? (l[a] = f.data, b && b(f.data)) : l[a] = void 0; + }); + }; + c.prototype.remove = function(a) { + v.remove(a); + }; + c.prototype.clear = function() { + D.info("WARNING: Calling unimplemented function Storage.clear()"); + }; + c.prototype.OH = d.Hr.OH; + c.prototype.hQ = d.Hr.hQ.bind(d.Hr); + c.prototype.kA = "NDA"; + h.prototype.now = function() { + return n(); + }; + h.prototype.da = function() { + return w(); + }; + h.prototype.MJ = function(a) { + return a + n() - w(); + }; + h.prototype.yT = function(a) { + return a + w() - n(); + }; + d = a(29).EventEmitter; + a(48)(d, k.prototype); + la = function() { + var a; + a = Promise; + a.prototype.fail = Promise.prototype["catch"]; + return a; + }(); + g.M = function(a) { + r = a.Zy; + F = a.zd; + v = a.storage; + l = a.cD; + n = a.R9a; + q = a.BI; + P = a.TI; + w = a.getTime; + D = a.QXa; + N = a.Eb; + ga = a.Eq; + O = a.Uz; + t = a.SourceBuffer; + U = a.MediaSource; + z = a.xFb; + u = a.Ln; + return { + name: "cadmium", + Ln: u, + Zy: r, + BI: q, + TI: P, + ready: b, + storage: new c(), + Storage: c, + time: new h(), + events: new k(), + console: new p("JS-ASE", void 0, "default"), + Console: p, + options: b, + Promise: la, + Eb: N, + Uz: O, + AKa: t, + MediaSource: U, + Eq: ga, + Ek: { + name: f + }, + memory: { + l9a: m + }, + lGb: void 0 + }; + }; + }, function(g, d, a) { + var b, c; + Object.defineProperty(d, "__esModule", { + value: !0 + }); + b = a(3); + c = a(34); + d.$Na = function() { + b.zd("ProbeDownloader"); + return { + tI: function(a) { + c.Ab.dkb({ + url: a.url, + akb: a + }); } - } + }; + }(); + }, function(g, d, a) { + var c, h, k, f, p, m, r; - function c(a, b) { - var e77, c; - e77 = 2; - while (e77 !== 4) { - switch (e77) { - case 2: - c = b.T; - return c ? (b = a.Ad, a = a.mi, (c = c.j_(b, b, !1)) && c.Ad == b && c.mi == a) : !0; - break; - } - } + function b() { + var a; + a = new h.Pj(); + this.addEventListener = a.addListener.bind(this); + this.removeEventListener = a.removeListener.bind(this); + this.emit = a.Db.bind(this); + this.cx = m++; + this.Ua = k.zd("ProbeRequest"); + this.Pka = c.$Na; + f.sa(void 0 !== this.Pka); + this.We = d.Eq.Fb.UNSENT; + } + Object.defineProperty(d, "__esModule", { + value: !0 + }); + c = a(557); + h = a(68); + k = a(3); + f = a(12); + p = a(17); + m = 0; + (function() { + function a() { + return JSON.stringify({ + url: this.$f, + id: this.cx, + affected: this.DN, + readystate: this.We + }); } - - function b(a, b) { - var s77, c; - s77 = 2; - while (s77 !== 3) { - switch (s77) { - case 2: - c = void 0; - b.some(function(b) { - var w77, d; - w77 = 2; - while (w77 !== 9) { - switch (w77) { - case 4: - c = b.Lw; - w77 = 3; - break; - case 5: - w77 = (d = d && 0 <= d.indexOf(a)) ? 4 : 3; - break; - case 3: - return d; - break; - case 2: - d = b.profiles; - w77 = 5; - break; - } - } - }); - return c; - break; + p.La(b.prototype, { + bj: function(a) { + a.affected = this.DN; + a.probed = { + requestId: this.cx, + url: this.$f, + cd: this.gla, + groupId: this.Ija + }; + this.emit(d.Eq.ed.CF, a); + }, + h8: function(a) { + this.VO = a.httpcode; + a.affected = this.DN; + a.probed = { + requestId: this.cx, + url: this.$f, + cd: this.gla, + groupId: this.Ija + }; + this.emit(d.Eq.ed.vw, a); + }, + open: function(a, b, f, c) { + if (!a) return !1; + this.$f = a; + this.DN = b; + this.gla = f; + this.We = d.Eq.Fb.OPENED; + this.SSa = c; + this.Pka.tI(this); + return !0; + }, + Ld: function() { + return !0; + }, + Vi: function() { + return this.cx; + }, + toString: a, + toJSON: a + }); + Object.defineProperties(b.prototype, { + readyState: { + get: function() { + return this.We; + }, + set: function() {} + }, + status: { + get: function() { + return this.VO; + } + }, + url: { + get: function() { + return this.$f; + } + }, + vBb: { + get: function() { + return this.DN; + } + }, + Vdb: { + get: function() { + return this.SSa; } } - } + }); }()); - }, function(f, c, a) { - var d, h, l, g; + (function(a) { + a.ed = { + CF: "pr0", + vw: "pr1" + }; + a.Fb = { + UNSENT: 0, + OPENED: 1, + kt: 2, + DONE: 3, + rq: 4, + name: ["UNSENT", "OPENED", "SENT", "DONE", "FAILED"] + }; + }(r || (r = {}))); + d.Eq = Object.assign(b, r); + }, function(g, d, a) { + var c, h, k; - function b(a, b, c) { - var f, m; - f = this.UV; - b = b.buffer.Ka; - m = "forward" === a.p8a; - if (d.S(f)) return f = m ? h(c) : h(c, c.length), this.VV = b, this.UV = f, new g(f); - l(c[f]) || (f = h(c, f), this.VV = b, this.UV = f); - if (0 > f) return null; - if (b > this.VV + a.Rab) { - a = c.map(function(a, b) { - return a.Ye && a.inRange && !a.fh ? b : null; - }).filter(function(a) { - return null !== a; - }); - if (!a.length) return null; - m ? f = (a.indexOf(f) + 1) % a.length : (f = a.indexOf(f) - 1, 0 > f && (f = a.length - 1)); - this.UV = a[f]; - this.VV = b; - return new g(a[f]); + function b(a) { + this.fy = a; + } + Object.defineProperty(d, "__esModule", { + value: !0 + }); + g = a(0); + c = a(119); + h = a(1); + b.prototype.create = function(b, c, d, g) { + return new(a(292)).DNa(b, c, d, g, this.fy); + }; + k = b; + k = g.__decorate([h.N(), g.__param(0, h.l(c.dA))], k); + d.CNa = k; + }, function(g, d) { + function a(a) { + this.j = a; + } + Object.defineProperty(d, "__esModule", { + value: !0 + }); + a.prototype.UBa = function() { + var a; + a = this.j.Ok && this.j.Ok.aj.get() || {}; + a.kg && (this.j.kg = a.kg.za); + a.pa && (this.j.pa = a.pa.za); + }; + a.prototype.Tn = function() { + -1 === this.j.pa && this.UBa(); + return this.j.pa; + }; + a.prototype.DZa = function(a) { + -1 !== this.j.kg && -1 !== this.j.pa || this.UBa(); + return -1 === this.j.kg || -1 === this.j.pa ? Number.MAX_VALUE : this.j.kg + 8 * a / this.j.pa; + }; + d.JDa = a; + }, function(g, d, a) { + var c, h, k, f, p, m; + + function b(a, b) { + this.app = a; + this.config = b; + } + Object.defineProperty(d, "__esModule", { + value: !0 + }); + g = a(0); + c = a(16); + h = a(295); + k = a(24); + f = a(1); + p = a(4); + a = a(20); + b.prototype.jC = function(a) { + var b; + a.AL = {}; + if (!a.XC() && a.Is && 0 < a.Is.length && (a.Hs = this.wra(a), a.Hs)) { + b = this.lob(a); + b() || (a.addEventListener(c.X.Hh, b), a.ie.addListener(b)); + } + }; + b.prototype.lob = function(a) { + var f; + + function b() { + var d, g; + if (!a.ie.value || !a.T$) return !1; + d = a.Hs; + g = d.Ee(); + return g === h.fm.LOADING ? !1 : g !== h.fm.LOADED && d.ws ? (d = f.Z$a(a)) ? (a.AL.offset = f.app.Pe().ma(p.Aa), a.Hs = d, d.download(), !0) : !1 : (a.removeEventListener(c.X.Hh, b), a.ie.removeListener(b), !1); } - return new g(f); + f = this; + return b; + }; + b.prototype.Z$a = function(a) { + var b, f; + b = this.config(); + f = a.lo.T4() < b.hrb; + b = (a.ie.value ? a.ie.value.O : 0) > b.grb; + return this.q$a(a, f && b); + }; + b.prototype.q$a = function(a, b) { + if (b && (b = this.wra(a), this.Tra(a, b.size))) return a.AL.Nya = "h", b; + b = this.E9a(a); + if (this.Tra(a, b.size)) return a.AL.Nya = "l", b; + }; + b.prototype.Tra = function(a, b) { + var f, c; + f = this.config(); + c = Math.min(a.VG(), a.OL()); + return a.JYa.DZa(b) * (1 + .01 * f.pXa[2]) < c * f.jrb; + }; + b.prototype.wra = function(a) { + return a.Is[a.Is.length - 1]; + }; + b.prototype.E9a = function(a) { + return a.Is[0]; + }; + m = b; + m = g.__decorate([f.N(), g.__param(0, f.l(k.Ue)), g.__param(1, f.l(a.je))], m); + d.eQa = m; + }, function(g, d, a) { + var c, h, k, f, p, m, r, u; + + function b(a, b, d, g, h, p, l, n) { + var v; + v = this; + this.j = a; + this.id = b; + this.height = d; + this.width = g; + this.Zib = h; + this.$ib = p; + this.size = l; + this.Qc = n; + this.type = c.Vf.Kaa; + this.ws = !0; + this.state = m.fm.$M; + this.If = {}; + this.GP = {}; + this.gkb = function(a) { + if (a.S) try { + v.data = f.xib(a.content); + v.state = m.fm.LOADED; + v.log.trace("TrickPlay parsed", { + Images: v.data.images.length + }, v.If); + v.j.fireEvent(r.X.zL); + } catch (N) { + v.state = m.fm.Gfa; + v.log.error("TrickPlay parse failed.", N); + } else v.state = m.fm.$M, v.log.error("TrickPlay download failed.", u.kn(a), v.If); + }; + this.log = k.qf(a, "TrickPlay"); } - d = a(10); - a(13); - c = a(41); - h = c.m_; - l = c.iw; - g = c.gm; - f.P = { - STARTING: b, - BUFFERING: b, - REBUFFERING: b, - PLAYING: b, - PAUSED: b + Object.defineProperty(d, "__esModule", { + value: !0 + }); + c = a(75); + h = a(9); + k = a(3); + f = a(296); + p = a(34); + m = a(295); + r = a(16); + u = a(2); + b.prototype.h9a = function(a) { + if (this.data && (a = Math.floor(a / this.data.vk.oBa), 0 <= a && a < this.data.images.length)) return { + image: this.data.images[a], + time: a * this.data.vk.oBa, + height: this.height, + width: this.width, + pixelAspectHeight: this.Zib, + pixelAspectWidth: this.$ib + }; + }; + b.prototype.JR = function() { + switch (this.state) { + case m.fm.LOADED: + return "downloaded"; + case m.fm.LOADING: + return "loading"; + case m.fm.qF: + return "downloadfailed"; + case m.fm.Gfa: + return "parsefailed"; + default: + return "notstarted"; + } }; - }, function(f, c, a) { - var d; + b.prototype.download = function() { + var a; + a = this.eab(); + a ? (this.state = m.fm.LOADING, this.y4a(a)) : this.ws = !1; + }; + b.prototype.Ee = function() { + return this.state; + }; + b.prototype.eab = function() { + var a, b, f; + a = this; + b = Object.keys(this.Qc).find(function(b) { + return (a.GP[a.Qc[b]] || 0) <= h.config.frb; + }); + if (b) { + f = this.Qc[b]; + f in this.GP ? this.GP[f]++ : this.GP[f] = 1; + return { + url: f, + mH: b + }; + } + }; + b.prototype.y4a = function(a) { + this.log.trace("Downloading", a.url, this.If); + a = { + responseType: p.OC, + Mb: this.Z3(a.mH), + url: a.url, + track: this + }; + this.j.NI.download(a, this.gkb); + }; + b.prototype.Z3 = function(a) { + return this.j.$h.find(function(b) { + return b && b.id === a; + }); + }; + d.cQa = b; + }, function(g, d, a) { + Object.defineProperty(d, "__esModule", { + value: !0 + }); + d.bQa = function(b, c, d, g, f, p, m, r) { + return new(a(562)).cQa(b, c, d, g, f, p, m, r); + }; + }, function(g, d, a) { + var h, k, f, p; - function b(a, b, c) { - a = c.map(function(a, b) { - return a.Ye && a.inRange && !a.fh ? b : null; - }).filter(function(a) { - return null !== a; + function b(a, b, f, c) { + this.ka = a; + this.amb = b; + this.ga = f; + this.app = c; + this.ud = {}; + } + + function c(a, b) { + this.af = a; + this.app = b; + this.Cc = {}; + this.ga = a.lb("PlaybackMilestoneStoreImpl"); + } + Object.defineProperty(d, "__esModule", { + value: !0 + }); + g = a(0); + h = a(1); + k = a(7); + f = a(24); + p = a(4); + c.prototype.ylb = function(a, f) { + this.Cc[a] && this.ga.warn("registerPlayback: xid " + a + " already registered, overriding"); + f = (f ? f : this.app.Pe()).ma(p.Aa); + this.ga.trace("registerPlayback: xid " + a + " at " + f); + this.Cc[a] = new b(a, f, this.ga, this.app); + return this.Cc[a]; + }; + c.prototype.$9a = function(a) { + this.Cc[a] || this.ga.warn("getPlaybackMilestones: xid " + a + " is not registered"); + return this.Cc[a]; + }; + c.prototype.Hlb = function(a) { + this.ga.trace("removePlayback: xid " + a); + delete this.Cc[a]; + }; + a = c; + a = g.__decorate([h.N(), g.__param(0, h.l(k.sb)), g.__param(1, h.l(f.Ue))], a); + d.GNa = a; + b.prototype.ll = function(a, b) { + b = b ? b.ma(p.Aa) : this.app.Pe().ma(p.Aa) - this.amb; + this.ga.trace("addMilestone: xid " + this.ka + " " + a + " at " + b); + this.ud[a] = b; + }; + }, function(g, d, a) { + var b, c, h, k, f, p, m, r, u, l; + Object.defineProperty(d, "__esModule", { + value: !0 + }); + g = a(1); + b = a(180); + c = a(564); + h = a(380); + k = a(563); + f = a(294); + p = a(561); + m = a(293); + r = a(560); + u = a(415); + l = a(559); + d.j = new g.Vb(function(a) { + a(b.tY).to(c.GNa).$(); + a(h.Rha).Ig(k.bQa); + a(f.Sha).to(p.eQa).$(); + a(u.Aga).to(l.CNa).$(); + a(m.Nba).ih(function() { + return function(a) { + return new r.JDa(a); + }; }); - return a.length ? new d(a[Math.floor(Math.random() * a.length)]) : null; + }); + }, function(g, d, a) { + var c, h; + + function b() { + this.cL = new h.Ei(); } - a(13); - d = a(41).gm; - f.P = { - STARTING: b, - BUFFERING: b, - REBUFFERING: b, - PLAYING: b, - PAUSED: b + Object.defineProperty(d, "__esModule", { + value: !0 + }); + g = a(0); + c = a(1); + h = a(87); + b.prototype.QD = function(a) { + this.cL.next(a); }; - }, function(f, c, a) { - var d, h, l, g; + na.Object.defineProperties(b.prototype, { + CK: { + configurable: !0, + enumerable: !0, + get: function() { + return this.cL; + } + } + }); + a = b; + a = g.__decorate([c.N()], a); + d.pNa = a; + }, function(g, d, a) { + var c, h, k; - function b(a, b, c, f) { - if (d.S(f)) a = h(c); - else if (l(c[f])) a = f; - else if (a = h(c, f), 0 > a) return null; - return new g(a); + function b(a, b) { + this.Gr = b; + this.log = a.lb("Pbo"); + this.links = {}; } - d = a(10); - a(13); - c = a(41); - h = c.m_; - l = c.iw; - g = c.gm; - f.P = { - STARTING: b, - BUFFERING: b, - REBUFFERING: b, - PLAYING: b, - PAUSED: b + Object.defineProperty(d, "__esModule", { + value: !0 + }); + g = a(0); + c = a(1); + h = a(7); + a = a(73); + b.prototype.vP = function(a) { + a && (this.links = Object.assign({}, this.links, a)); }; - }, function(f, c, a) { - (function() { - var c2u, c, h, l, g, m, p, r, k, v, n, q, D2u, j2u, i2u, H2u, k2u, a2u, n2u; - c2u = 2; + b.prototype.v4 = function(a) { + return this.links[a]; + }; + b.prototype.Ila = function(a) { + var b; + b = "playbackContextId=" + a.playbackContextId + "&esn=" + this.Gr().Df; + a = "drmContextId=" + a.drmContextId; + this.vP({ + events: { + rel: "events", + href: "/events?" + b + }, + license: { + rel: "license", + href: "/license?licenseType=standard&" + b + "&" + a + }, + ldl: { + rel: "ldl", + href: "/license?licenseType=limited&" + b + "&" + a + } + }); + }; + k = b; + k = g.__decorate([c.N(), g.__param(0, c.l(h.sb)), g.__param(1, c.l(a.oq))], k); + d.gNa = k; + }, function(g, d, a) { + var c, h, k, f, p; - function b(a, b, d, g) { - var t2u; - t2u = 2; - while (t2u !== 8) { - switch (t2u) { - case 2: - this.config = d; - this.events = a || h(l, {}); - g && (this.Su = g.Su, this.dL = g.dL); - b = b || d.kx; - this.dE = v.reduce(function(a, d) { - var P2u, g; - P2u = 2; - while (P2u !== 3) { - switch (P2u) { - case 5: - a[d] = ((n[g] || n[q[d]])[d] || n[q[d]][d]).bind(this); - return a; - break; - case 2: - g = c.Pd(b) ? b[d] || q[d] : b; - P2u = 5; - break; - } - } - }.bind(this), {}); - d.Tp && (this.n8a = n.rlabr); - t2u = 8; - break; - } + function b(a, b) { + a = h.Yd.call(this, a, "PboConfigImpl") || this; + a.config = b; + return a; + } + Object.defineProperty(d, "__esModule", { + value: !0 + }); + g = a(0); + c = a(1); + h = a(38); + k = a(26); + f = a(35); + a = a(20); + ia(b, h.Yd); + na.Object.defineProperties(b.prototype, { + Kz: { + configurable: !0, + enumerable: !0, + get: function() { + return this.config().Bg.Kz || ""; } - } - while (c2u !== 16) { - D2u = "checkd"; - D2u += "efa"; - D2u += "ult"; - j2u = "d"; - j2u += "e"; - j2u += "fa"; - j2u += "ul"; - j2u += "t"; - i2u = "de"; - i2u += "fau"; - i2u += "l"; - i2u += "t"; - H2u = "d"; - H2u += "ef"; - H2u += "a"; - H2u += "ul"; - H2u += "t"; - k2u = "de"; - k2u += "f"; - k2u += "a"; - k2u += "ult"; - a2u = "d"; - a2u += "e"; - a2u += "fa"; - a2u += "u"; - a2u += "lt"; - n2u = "checkB"; - n2u += "u"; - n2u += "ff"; - n2u += "ering"; - switch (c2u) { - case 3: - g = a(13); - m = a(41); - a(9); - c2u = 7; - break; - case 2: - c = a(10); - h = a(44); - l = a(31).EventEmitter; - c2u = 3; - break; - case 7: - p = m.console; - r = m.hja; - k = m.yX; - c2u = 13; - break; - case 13: - v = [g.xa.name[g.xa.ng], g.xa.name[g.xa.Yq], g.xa.name[g.xa.qr], g.xa.name[g.xa.nf], g.xa.name[g.xa.sn], n2u]; - n = { - first: a(488), - random: a(487), - optimized: a(133), - roundrobin: a(486), - selectaudio: a(258), - selectaudioadaptive: a(485), - "default": a(133), - rlabr: a(484), - lowest: a(482), - highest: a(481), - throughputthreshold: a(480), - checkdefault: a(479), - testscript: a(478) - }; - q = { - STARTING: a2u, - BUFFERING: k2u, - REBUFFERING: H2u, - PLAYING: i2u, - PAUSED: j2u, - checkBuffering: D2u - }; - b.prototype.constructor = b; - b.prototype.V4 = function(a, b, d, h, f, m, l) { - var I2u, u, v, n, q, y, w, z, x, F, C, N, G, T, t, A, q2u, l2u, Y2u; - I2u = 2; - while (I2u !== 60) { - l2u = "Stream s"; - l2u += "elector ca"; - l2u += "lled with"; - l2u += " invalid player state "; - Y2u = "r"; - Y2u += "l"; - Y2u += "a"; - Y2u += "br"; - switch (I2u) { - case 36: - I2u = !u || null === u.se ? 54 : 53; - break; - case 44: - t = u.Lb || b[u.se]; - t.ma && t.ma.ia && (F = t.ma.ia.ta || 0); - A = f.Lb; - A.ma && A.ma.ia && (G = A.ma.ia.ta || 0); - T = b[w].J || 0; - I2u = 39; - break; - case 12: - c.S(w) && (w = this.Su); - r(b, function(b) { - var X2u; - X2u = 2; - while (X2u !== 8) { - switch (X2u) { - case 1: - X2u = v !== b.ma || v && v.Dq !== a.Dq || v && v.Ht !== a.Ht ? 5 : 4; - break; - case 2: - X2u = b.Ye && b.inRange && !b.fh && b.ma && b.ma.$b ? 1 : 9; - break; - case 4: - b.ia = q; - b.rga = 1 * q / b.ma.ia.ta; - X2u = 8; - break; - case 5: - v = b.ma, v.Dq = a.Dq, v.Ht = a.Ht, a && a.Gm && b.ma && (b.ma.Gm = !0), n == g.xa.ng && y.kF && a.zO && (b.ma.ia.ta = a.zO), q = Math.floor(h(b.ma, a.buffer)), q = 0 === q ? 1 : q; - X2u = 4; - break; - case 9: - delete b.ia; - X2u = 8; - break; - } - } - }); - n === g.xa.ng && c.da(w) && (n = g.xa.Yq); - N = b.filter(function(a) { - var O2u; - O2u = 2; - while (O2u !== 1) { - switch (O2u) { - case 2: - return a && a.Ye && a.inRange && !a.fh; - break; - } - } - }); - N.length || (N = b.filter(function(a) { - var S2u; - S2u = 2; - while (S2u !== 1) { - switch (S2u) { - case 4: - return a || a.Ye || +a.fh; - break; - S2u = 1; - break; - case 2: - return a && a.Ye && !a.fh; - break; - } - } - }), N.forEach(function(a) { - var F2u; - F2u = 2; - while (F2u !== 1) { - switch (F2u) { - case 4: - a.inRange = ~8; - F2u = 0; - break; - F2u = 1; - break; - case 2: - a.inRange = !0; - F2u = 1; - break; - } - } - })); - I2u = 18; - break; - case 21: - I2u = y.Tp && Y2u !== y.kx && (n === g.xa.nf || n === g.xa.sn) && 0 === a.al % y.jB ? 35 : 36; - break; - case 23: - u = this.dE[g.xa.name[n]].call(this, y, a, N, z, h, f); - u.Lb ? (u.Mv = [], b.forEach(function(a, b) { - var E2u; - E2u = 2; - while (E2u !== 4) { - switch (E2u) { - case 2: - a === u.Lb && (u.se = b); - a.sR && u.Mv.push(b); - a.sR = !1; - E2u = 4; - break; - } - } - }), u.Mv.length || (u.Mv = void 0)) : (x = function(a) { - var s2u; - s2u = 2; - while (s2u !== 1) { - switch (s2u) { - case 2: - return k(b, function(b) { - var w2u; - w2u = 2; - while (w2u !== 1) { - switch (w2u) { - case 4: - return b == N[a]; - break; - w2u = 1; - break; - case 2: - return b === N[a]; - break; - } - } - }); - break; - case 4: - return k(b, function(b) { - return b == N[a]; - }); - break; - s2u = 1; - break; - } - } - }, u.se = x(u.se), u.Mv && (u.Mv = u.Mv.map(x))); - I2u = 21; - break; - case 15: - void 0 !== w && (z = k(N, function(a) { - var g2u; - g2u = 2; - while (g2u !== 1) { - switch (g2u) { - case 4: - return a.J >= b[w].J; - break; - g2u = 1; - break; - case 2: - return a.J > b[w].J; - break; - } - } - }), z = 0 < z ? z - 1 : 0 === z ? 0 : N.length - 1); - I2u = 27; - break; - case 62: - return p.error(l2u + g.xa.name[a.state]), null; - break; - case 35: - f = this.n8a[g.xa.name[n]].call(this, y, a, N, z, h, f); - b.forEach(function(a) { - var e2u; - e2u = 2; - while (e2u !== 1) { - switch (e2u) { - case 2: - a.sR = !1; - e2u = 1; - break; - case 4: - a.sR = +5; - e2u = 2; - break; - e2u = 1; - break; - } - } - }); - z = a.Nd || d.Qi - d.me; - I2u = 32; - break; - case 24: - this.dL = g.xJ.ng; - I2u = 23; - break; - case 46: - I2u = q2u === g.xa.Yq ? 45 : 65; - break; - case 13: - C = x[F - 1].ib, w = k(b, function(a) { - var r2u; - r2u = 2; - while (r2u !== 1) { - switch (r2u) { - case 4: - return a.id != C; - break; - r2u = 1; - break; - case 2: - return a.id === C; - break; - } - } - }), w = 0 <= w ? w : void 0; - I2u = 12; - break; - case 65: - I2u = q2u === g.xa.qr ? 45 : 64; - break; - case 54: - return null; - break; - case 48: - a.Kj && (u.Ka = d.Ka, u.gH = f.ia || 0, u.QG = f.ma && f.ma.ia && f.ma.ia.ta || 0, u.wE = d.Qi - d.me, u.vE = d.Yf, u.UA = n); - return u; - break; - case 63: - I2u = q2u === g.xa.sn ? 23 : 62; - break; - case 2: - d = a && a.buffer; - I2u = 5; - break; - case 14: - I2u = 0 < F ? 13 : 12; - break; - case 18: - x = N; - y.VH ? x = N.filter(function(a) { - var m2u; - m2u = 2; - while (m2u !== 1) { - switch (m2u) { - case 4: - return a.Ok; - break; - m2u = 1; - break; - case 2: - return a.Ok; - break; - } - } - }) : a.state !== g.xa.nf && a.state !== g.xa.sn && (x = N.filter(function(a) { - var z2u; - z2u = 2; - while (z2u !== 1) { - switch (z2u) { - case 4: - return ~a.ZQ; - break; - z2u = 1; - break; - case 2: - return !a.ZQ; - break; - } - } - })); - N = 0 < x.length ? x : N.slice(0, 1); - I2u = 15; - break; - case 26: - delete this.co; - delete this.rA; - I2u = 24; - break; - case 45: - this.dL = g.xJ.ng; - I2u = 23; - break; - case 37: - u.kB = { - current_tpt: x, - prod_tpt: F, - rl_tpt: G, - current_br: T, - prod_br: t, - rl_br: A, - blms: z, - fellBackToProd: f.AN - }; - I2u = 36; - break; - case 32: - G = F = x = 0; - T = 0; - t = 0; - A = 0; - b[w].ma && b[w].ma.ia && (x = b[w].ma.ia.ta || 0); - I2u = 44; - break; - case 27: - q2u = a.state; - I2u = q2u === g.xa.ng ? 26 : 46; - break; - case 5: - n = a && a.state; - y = this.config; - w = this.Su; - c.da(w) && a && a.state === g.xa.ng && (delete this.Su, w = void 0); - c.da(w) && w >= b.length && (delete this.Su, w = void 0); - x = d.T; - I2u = 6; - break; - case 53: - this.Su = u.se; - f = b[u.se]; - u.reason && (f.O8a = u.reason, f.U4 = u.Ws, f.YF = u.YF, f.Qk = u.Qk, f.Qj = u.Qj); - c.da(w) && f.J < b[w].J && (this.co = d.Ka); - a.state !== g.xa.nf && a.state !== g.xa.sn ? (m = this.lz(a, f, m, l), (u.Nn = m.complete) ? u.reason = m.reason : (u.Nn = !1, u.cx = m.cx, u.oG = m.oG, u.Rh = m.Rh)) : u.Nn = !0; - I2u = 48; - break; - case 39: - t = t.J || 0; - A = A.J || 0; - I2u = 37; - break; - case 64: - I2u = q2u === g.xa.nf ? 23 : 63; - break; - case 6: - F = x.length; - I2u = 14; - break; - } - } - }; - c2u = 19; - break; - case 19: - b.prototype.lz = function(a, b, c, d) { - var v2u; - v2u = 2; - while (v2u !== 1) { - switch (v2u) { - case 2: - return this.dE.checkBuffering.call(this, a, b, c, d, this.config); - break; - } - } - }; - b.prototype.R$a = function(a, b, d) { - var o2u; - o2u = 2; - while (o2u !== 1) { - switch (o2u) { - case 2: - c.S(b) ? (delete this.rA, delete this.co) : b.J < d.J && (this.rA = a); - o2u = 1; - break; - } - } - }; - c2u = 17; - break; - case 17: - f.P = b; - c2u = 16; - break; + }, + BV: { + configurable: !0, + enumerable: !0, + get: function() { + return this.config().Bg.BV || ""; + } + }, + version: { + configurable: !0, + enumerable: !0, + get: function() { + return 2; + } + }, + Pwa: { + configurable: !0, + enumerable: !0, + get: function() { + return "cadmium"; + } + }, + languages: { + configurable: !0, + enumerable: !0, + get: function() { + return this.config().Bg.bz; + } + }, + Xi: { + configurable: !0, + enumerable: !0, + get: function() { + return !1; + } + }, + kva: { + configurable: !0, + enumerable: !0, + get: function() { + return !1; + } + }, + mva: { + configurable: !0, + enumerable: !0, + get: function() { + return !1; + } + }, + Qza: { + configurable: !0, + enumerable: !0, + get: function() { + return { + logblob: { + service: "pbo_logblobs", + serviceNonMember: "pbo_nonmember", + version: "^1.0.0" + }, + manifest: { + service: "pbo_manifests", + serviceNonMember: "pbo_nonmember", + version: "^1.0.0" + }, + license: { + service: "pbo_licenses", + serviceNonMember: "pbo_nonmember", + version: "^1.0.0" + }, + events: { + service: "pbo_events", + serviceNonMember: "pbo_nonmember", + version: "^1.0.0" + }, + bind: { + service: "pbo_mdx", + serviceNonMember: "pbo_nonmember", + version: "^1.0.0" + }, + pair: { + service: "pbo_mdx", + serviceNonMember: "pbo_nonmember", + version: "^1.0.0" + } + }; } - } - }()); - }, function(f, c, a) { - (function() { - var V2u, k, v, n, q, G, x, U22, e22; - - function b(a) { - var p2u; - p2u = 2; - while (p2u !== 1) { - switch (p2u) { - case 2: - a.x6 = a.ma.$b >= x.Pc.gr && !a.ma.Xv ? a.ma.ia.ta * a.weight : 0; - p2u = 1; - break; - } + }, + q5: { + configurable: !0, + enumerable: !0, + get: function() { + return 10; } } + }); + p = b; + g.__decorate([f.config(f.string, "uiVersion")], p.prototype, "Kz", null); + g.__decorate([f.config(f.string, "uiPlatform")], p.prototype, "BV", null); + g.__decorate([f.config(f.Qv, "pboVersion")], p.prototype, "version", null); + g.__decorate([f.config(f.string, "pboOrganization")], p.prototype, "Pwa", null); + g.__decorate([f.config(f.aaa, "pboLanguages")], p.prototype, "languages", null); + g.__decorate([f.config(f.le, "hasLimitedPlaybackFunctionality")], p.prototype, "Xi", null); + g.__decorate([f.config(f.le, "mdxBindUsingNodeQuark")], p.prototype, "kva", null); + g.__decorate([f.config(f.le, "mdxPairUsingNodeQuark")], p.prototype, "mva", null); + g.__decorate([f.config(f.object(), "pboCommands")], p.prototype, "Qza", null); + g.__decorate([f.config(f.Qv, "pboHistorySize")], p.prototype, "q5", null); + p = g.__decorate([c.N(), g.__param(0, c.l(k.Fi)), g.__param(1, c.l(a.je))], p); + d.bNa = p; + }, function(g, d, a) { + var k, f, p, m, r, u, l, v, n, w, D, z, q, P, F; - function l(a) { - var T1u, b, c, d, L22, P22; - T1u = 2; - while (T1u !== 9) { - L22 = "TEM"; - L22 += "P "; - L22 += "fai"; - L22 += "lin"; - L22 += "g :"; - P22 = "PER"; - P22 += "M "; - P22 += "fai"; - P22 += "ling :"; - switch (T1u) { - case 1: - b = (a = a.parent) ? a.children : null; - c = !1; - d = {}; - T1u = 3; - break; - case 2: - T1u = 1; - break; - case 3: - a && b && (d[0] = [], d[2] = [], d[1] = [], b.forEach(function(a) { - var R1u; - R1u = 2; - while (R1u !== 1) { - switch (R1u) { - case 2: - d[a.Nb].push(a); - R1u = 1; - break; - case 4: - d[a.Nb].push(a); - R1u = 7; - break; - R1u = 1; - break; - } - } - }), 0 < d[0].length || (d[2].length == b.length ? 2 != a.Nb && (a.Nb = 2, G.error(P22, x.Fe.name[a.Vv] + " " + a.id), c = !0) : (0 == a.Nb && (a.Nb = 1, G.error(L22, x.Fe.name[a.Vv] + " " + a.id), c = !0), d[1].forEach(function(a) { - var M1u; - M1u = 2; - while (M1u !== 1) { - switch (M1u) { - case 4: - a.Nb = 8; - M1u = 0; - break; - M1u = 1; - break; - case 2: - a.Nb = 0; - M1u = 1; - break; - } - } - })), c && l(a))); - T1u = 9; - break; - } + function b(a) { + this.config = a; + this.pl = []; + } + + function c(a, b, f) { + this.Va = a; + this.CE = b; + this.context = f; + this.startTime = this.Va.Pe(); + } + + function h(a, f, c, d, g, k, h, m, p) { + this.xBa = f; + this.json = c; + this.Va = d; + this.uI = g; + this.rK = k; + this.ia = h; + this.jc = p; + this.log = a.lb("Pbo"); + this.pl = new b(m); + this.CE = this.xBa(); + } + Object.defineProperty(d, "__esModule", { + value: !0 + }); + g = a(0); + k = a(1); + f = a(4); + p = a(2); + m = a(298); + r = a(7); + u = a(39); + l = a(24); + v = a(52); + n = a(118); + w = a(30); + D = a(297); + z = a(108); + q = a(69); + P = a(16); + F = a(40); + h.prototype.send = function(a, b) { + var f; + f = new c(this.Va, this.CE, a); + this.pl.append(f); + return this.eE(a, b, f); + }; + h.prototype.eE = function(a, b, f) { + var c; + c = this; + return new Promise(function(d, g) { + c.ws(a, b).then(function(a) { + var b, k; + c.pnb(a); + b = za(c.nsb(a)); + k = b.next().value; + b = b.next().value; + k && (c.G_a(f), d(a)); + b && (c.Dna(f, b), g(b)); + })["catch"](function(a) { + var b; + b = c.Dna(f, a); + a.Ja && (a.Ja = [a.Ja, " ", b].join("")); + g(a); + }); + }); + }; + h.prototype.pnb = function(a) { + (a = a.serverTime) && this.jc.Db(P.mea.Pza, f.rb(a)); + }; + h.prototype.nsb = function(a) { + if (a.result) return [a.result, void 0]; + if (a.code) return this.log.error("Response did not contain a result or an error but did contain an error code", a), [, { + code: a.code, + detail: { + message: a.message } - } - V2u = 2; - - function c(a, b, c, d, g) { - var C2u, R22, l22, B22; - C2u = 2; - while (C2u !== 16) { - R22 = "c"; - R22 += "l"; - R22 += "ose"; - l22 = "und"; - l22 += "erf"; - l22 += "low"; - B22 = "net"; - B22 += "wo"; - B22 += "r"; - B22 += "k"; - switch (C2u) { - case 8: - this.npa = x.oU.dK; - this.Sf = {}; - this.Yk = {}; - this.ag = {}; - C2u = 13; - break; - case 13: - this.Db = {}; - a = []; - this.ee = { - id: B22, - Vv: x.Fe.Qo, - Nb: 0, - YM: !1, - Sf: a, - children: a - }; - this.DH = this.nL = null; - C2u = 20; - break; - case 2: - this.events = a || v(n, {}); - this.config = g; - this.ej = b; - this.C1 = c; - this.mode = 0; - this.uo = g.Lz && d; - C2u = 8; - break; - case 20: - this.PQ = x.Xo.dK; - this.events.on(l22, function() { - var h1u; - h1u = 2; - while (h1u !== 1) { - switch (h1u) { - case 4: - this.R7a(x.oU.YDa); - h1u = 9; - break; - h1u = 1; - break; - case 2: - this.R7a(x.oU.YDa); - h1u = 1; - break; - } - } - }.bind(this)); - C2u = 18; - break; - case 17: - this.events.on(R22, function() { - var N1u; - N1u = 2; - while (N1u !== 1) { - switch (N1u) { - case 2: - this.i5a(); - N1u = 1; - break; - case 4: - this.i5a(); - N1u = 2; - break; - N1u = 1; - break; - } - } - }.bind(this)); - C2u = 16; - break; - case 18: - C2u = g.a1a ? 17 : 16; - break; - } + }]; + this.log.error("Response did not contain a result or an error", a); + return [, { + code: "FAIL", + detail: { + message: "Response did contain a result or an error" + } + }]; + }; + h.prototype.sib = function(a) { + var b; + if (a) { + try { + b = this.json.parse(a); + } catch (O) { + throw { + Wy: !0, + code: "FAIL", + message: "Unable to parse the response body", + data: a + }; } + if (b.error) throw b.error; + if (b.result) return b; + throw { + Wy: !0, + code: "FAIL", + message: "There is no result property on the response" + }; + } + throw { + Wy: !0, + code: "FAIL", + message: "There is no body property on the response" + }; + }; + h.prototype.iYa = function(a, b, f) { + var c; + c = this; + this.Nrb(b, a); + this.CE = this.xBa(); + return this.CE.send(b, f).then(function(a) { + return { + ws: !1, + result: c.sib(a.body) + }; + })["catch"](function(f) { + var d, g; + g = f && f.ij && void 0 !== f.ij.maxRetries ? Math.min(f.ij.maxRetries, b.M9) : b.M9; + return c.TU(b, f, a, g) ? (d = c.KZa(f, a, g), c.log.warn("Method failed, retrying", Object.assign({ + Method: b.kk, + Attempt: a + 1, + WaitTime: d, + MaxRetries: g + }, c.k2(f))), Promise.resolve({ + ws: !0, + od: d, + error: f + })) : Promise.resolve({ + ws: !1, + error: f + }); + }); + }; + h.prototype.Nrb = function(a, b) { + var f; + f = a.url.searchParams; + f.set(F.yY.qOa, (b + 1).toString()); + f.set(F.yY.Wf, a.A9.toString()); + f.set(F.yY.rOa, a.z9); + }; + h.prototype.ws = function(a, b, f) { + var c; + f = void 0 === f ? 0 : f; + c = this; + return this.iYa(f++, a, b).then(async function(d) { + if (d.ws) return c.RL(d.od).then(function() { + return c.ws(a, b, f); + }); + if (d.error) throw d.error; + if (void 0 === d.result) throw { + pboc: !1, + code: "FAIL", + message: "The response was undefined" + }; + return d.result; + }); + }; + h.prototype.TU = function(a, b, f, c) { + var d; + d = this.uI.L9 || this.Ccb(b); + if (d && f < c) return !0; + d ? this.log.error("Method failed, retry limit exceeded, giving up", Object.assign({ + Method: a.kk, + Attempt: f + 1, + MaxRetries: c + }, this.k2(b))) : this.log.error("Method failed with an error that is not retriable, giving up", Object.assign({ + Method: a.kk + }, this.k2(b))); + return !1; + }; + h.prototype.Ccb = function(a) { + var b, f; + b = a && a.code; + f = a && (a.T || a.tc); + a = a.Ef !== p.DX.$fa; + f = !!f && f >= p.H.$z && f <= p.H.Zz && a; + return !(!b || "RETRY" !== b) || f; + }; + h.prototype.KZa = function(a, b, c) { + return a && a.ij && void 0 !== a.ij.retryAfterSeconds ? f.hh(a.ij.retryAfterSeconds) : f.rb(this.rK.e9(1E3, 1E3 * Math.pow(2, Math.min(b - 1, c)))); + }; + h.prototype.RL = function(a) { + var b; + b = this; + return new Promise(function(c) { + b.ia.Nf(a || f.Sf, c); + }); + }; + h.prototype.k2 = function(a) { + return D.ucb(a) ? a : { + message: a.message, + subCode: a.tc, + extCode: a.Ef, + mslCode: a.Ip, + data: a.data + }; + }; + h.prototype.G_a = function(a) { + a.Gpb(); + }; + h.prototype.Dna = function(a, b) { + var f; + a.Vx(b); + try { + f = this.json.stringify(this.pl); + this.log.error("PBO command history", this.json.parse(f)); + return f; + } catch (Y) { + return ""; } + }; + a = h; + a = g.__decorate([k.N(), g.__param(0, k.l(r.sb)), g.__param(1, k.l(m.Qha)), g.__param(2, k.l(u.Ys)), g.__param(3, k.l(l.Ue)), g.__param(4, k.l(v.$l)), g.__param(5, k.l(n.KF)), g.__param(6, k.l(w.Xf)), g.__param(7, k.l(z.qA)), g.__param(8, k.l(q.RW))], a); + d.cNa = a; + c.prototype.Gpb = function() { + this.S = !0; + this.elapsedTime = this.Va.Pe().Gd(this.startTime); + }; + c.prototype.Vx = function(a) { + this.S = !1; + this.elapsedTime = this.Va.Pe().Gd(this.startTime); + this.Bpb = a.tc || a.subCode; + this.A6a = a.Ef || a.extCode; + }; + c.prototype.toString = function() { + return JSON.stringify(this); + }; + c.prototype.toJSON = function() { + var a; + a = Object.assign({ + success: this.S, + method: this.context.kk, + profile: this.context.profile.id, + startTime: this.startTime.ma(f.Aa), + elapsedTime: this.elapsedTime ? this.elapsedTime.ma(f.Aa) : "in progress" + }, this.CE.H1()); + return this.S ? a : Object.assign({}, a, this.CE.H1(), { + subcode: this.Bpb, + extcode: this.A6a + }); + }; + b.prototype.append = function(a) { + this.pl.push(a); + 0 < this.config.q5 && this.pl.length > this.config.q5 && this.pl.shift(); + }; + b.prototype.toJSON = function() { + return this.pl; + }; + }, function(g, d, a) { + var b, c, h, k, f, p, m, r; + Object.defineProperty(d, "__esModule", { + value: !0 + }); + g = a(1); + b = a(299); + c = a(569); + h = a(108); + k = a(568); + f = a(107); + p = a(567); + m = a(142); + r = a(566); + d.Hib = new g.Vb(function(a) { + a(h.qA).to(k.bNa).$(); + a(b.dga).to(c.cNa); + a(f.hga).to(p.gNa); + a(f.rA).ih(function(a) { + return function() { + return a.Xb.get(f.hga); + }; + }); + a(m.fN).to(r.pNa).$(); + }); + }, function(g, d, a) { + var c, h, k, f, p; - function r(a) { - var d1u, K22, z22, Z22, u22; - d1u = 2; - while (d1u !== 13) { - K22 = "I"; - K22 += "NVA"; - K22 += "LI"; - K22 += "D"; - z22 = "FAILED PERMANEN"; - z22 += "T"; - z22 += "LY"; - Z22 = "O"; - Z22 += "K"; - u22 = "FAILED TE"; - u22 += "M"; - u22 += "PO"; - u22 += "RARI"; - u22 += "LY"; - switch (d1u) { - case 2: - d1u = a && k.Pd(a) && k.da(a.Nb) ? 1 : 5; - break; - case 1: - return r(a.Nb); - break; - case 5: - d1u = a === 0 ? 4 : 3; - break; - case 8: - d1u = a === 1 ? 7 : 6; - break; - case 3: - d1u = a === 2 ? 9 : 8; - break; - case 7: - return u22; - break; - case 4: - return Z22; - break; - case 9: - return z22; - break; - case 6: - return K22; - break; - } + function b(a) { + return h.Yd.call(this, a, "MseConfigImpl") || this; + } + Object.defineProperty(d, "__esModule", { + value: !0 + }); + g = a(0); + c = a(35); + h = a(38); + k = a(1); + f = a(26); + p = a(4); + ia(b, h.Yd); + na.Object.defineProperties(b.prototype, { + Lva: { + configurable: !0, + enumerable: !0, + get: function() { + return p.rb(5E3); + } + }, + Mwa: { + configurable: !0, + enumerable: !0, + get: function() { + return p.rb(1E3); + } + }, + Nwa: { + configurable: !0, + enumerable: !0, + get: function() { + return p.rb(1E3); } } - - function g(a) { - var Z1u, b, L1u, x22; - Z1u = 2; - while (Z1u !== 9) { - x22 = "<"; - x22 += "ur"; - x22 += "l for "; - switch (Z1u) { - case 2: - b = []; - Z1u = 1; + }); + a = b; + g.__decorate([c.config(c.Fg, "minDecoderBufferMilliseconds")], a.prototype, "Lva", null); + g.__decorate([c.config(c.Fg, "optimalDecoderBufferMilliseconds")], a.prototype, "Mwa", null); + g.__decorate([c.config(c.Fg, "optimalDecoderBufferMillisecondsBranching")], a.prototype, "Nwa", null); + a = g.__decorate([k.N(), g.__param(0, k.l(f.Fi))], a); + d.PKa = a; + }, function(g, d, a) { + var b, c; + Object.defineProperty(d, "__esModule", { + value: !0 + }); + g = a(1); + b = a(426); + c = a(571); + d.ggb = new g.Vb(function(a) { + a(b.jfa).to(c.PKa).$(); + }); + }, function(g, d, a) { + var c, h, k, f, p, m, r, u, l, v; + + function b(a, b, f, c, d, g) { + this.AP = a; + this.Ab = f; + this.Pa = c; + this.Va = d; + this.config = g; + this.log = b.lb("MediaHttp"); + } + Object.defineProperty(d, "__esModule", { + value: !0 + }); + g = a(0); + c = a(300); + h = a(83); + k = a(2); + f = a(7); + p = a(1); + m = a(81); + r = a(23); + u = a(24); + l = a(4); + a = a(20); + b.prototype.yI = function() { + return this.Va.Pe().ma(l.Aa); + }; + b.prototype.kwa = function(a, b) { + a.Ogb({ + mediaRequest: a, + timestamp: b + }); + }; + b.prototype.Dwa = function(a) { + var b; + b = a.mediaRequest.fo; + b.readyState = c.Bi.Fb.yw; + a = a.connect ? a : { + timestamp: this.yI(), + connect: !1 + }; + a.mediaRequest = b; + a.readyState = b.readyState; + b.f8(a); + }; + b.prototype.CT = function(a) { + this.kwa(a.mediaRequest.fo, a.timestamp); + }; + b.prototype.DT = function(a) { + var b, f; + b = a.mediaRequest.fo; + f = a.bytes; + "undefined" !== typeof b && (b.readyState === c.Bi.Fb.kt && this.Dwa(a), this.Pa.Af(f) && (a.mediaRequest = b, a.timestamp = this.yI(), f > b.Ae && (a.newBytes = f - b.Ae, a.bytesLoaded = f, b.Sgb(a)))); + }; + b.prototype.yD = function(a) { + var b, f, d, g; + b = a.mediaRequest; + f = a.errorcode; + d = a.httpcode; + g = c.Bi.Ss; + if ("undefined" !== typeof b && (b = b.fo, "undefined" !== typeof b && b.readyState !== c.Bi.Fb.rq)) + if (f === k.H.Vs) b.readyState = c.Bi.Fb.Uv, a.mediaRequest = b, a.readyState = b.readyState, b.Jgb(a); + else { + b.readyState = c.Bi.Fb.rq; + switch (f) { + case k.H.$z: + d = g.lW; break; - case 1: - Z1u = a ? 5 : 13; + case k.H.CX: + d = g.zX; break; - case 5: - L1u = a.Vv; - Z1u = L1u === x.Fe.Au ? 4 : 8; + case k.H.kF: + d = 400 < d && 500 > d ? g.MM : 500 <= d ? g.BX : g.zX; break; - case 4: - b.unshift(a.id + "(" + a.name + ")"); - Z1u = 3; + case k.H.Zz: + d = g.AX; break; - case 3: - a = a.parent; - Z1u = 1; + case k.H.jF: + d = g.Zba; break; - case 7: - b.unshift(a.id); - Z1u = 3; + case k.H.lF: + d = g.NM; break; - case 8: - Z1u = L1u === x.Fe.K9 ? 7 : 6; + case k.H.hw: + d = g.NM; break; - case 14: - b.unshift(x22 + a.stream.J + ">"); - Z1u = 3; + case k.H.yX: + d = g.zda; break; - case 6: - Z1u = L1u === x.Fe.URL ? 14 : 3; + case k.H.wda: + d = g.MM; break; - case 13: - return b.length ? "/" + b.join("/") : ""; + case k.H.dGa: + d = g.AX; break; + default: + d = g.NM; } - } + a.mediaRequest = b; + a.readyState = b.readyState; + a.errorcode = d; + a.nativecode = f; + b.h8(a); + } + }; + b.prototype.whb = function(a, b) { + var f, d; + f = b.request.fo; + if (f) + if (b.S) { + if (a.j && f.readyState !== c.Bi.Fb.DONE) { + switch (f.readyState) { + case c.Bi.Fb.Uv: + return; + case c.Bi.Fb.kt: + this.Dwa({ + mediaRequest: b.request + }); + } + f.readyState = c.Bi.Fb.DONE; + if (!f.Bc) { + d = { + mediaRequest: f, + readyState: f.readyState, + timestamp: this.yI(), + cadmiumResponse: b + }; + a.j.Baa += 1; + f.W$a(); + f.Bcb() && (a.j.J9 += 1, b.Zi.Mf = Math.ceil(f.m7a), b.Zi.Mk = Math.ceil(f.T_a), b.Zi.requestTime = Math.floor(f.Pdb)); + f.qH = d; + f.bj(d); + } + } + } else f.readyState !== c.Bi.Fb.Uv && (a = { + mediaRequest: b.request, + timestamp: this.yI(), + errorcode: b.T, + httpcode: b.Bh + }, this.yD(a)); + }; + b.prototype.download = function(a, b) { + var f, d; + f = this; + b = this.Ab.download(a, b); + if (a.fo) { + d = a.fo; - 1 < [c.Bi.Fb.OPENED, c.Bi.Fb.rq].indexOf(d.readyState) && (d.readyState = c.Bi.Fb.kt, this.config().sfb ? b.Pnb(function(a) { + f.CT(a); + }) : this.kwa(d, this.yI())); } + b.Jla(function(b) { + f.whb(a, b); + }); + b.Znb(function(a) { + f.DT(a); + }); + b.Nnb(function(a) { + f.yD(a); + }); + return b; + }; + v = b; + v = g.__decorate([p.N(), g.__param(0, p.l(h.ZV)), g.__param(1, p.l(f.sb)), g.__param(2, p.l(m.ct)), g.__param(3, p.l(r.ve)), g.__param(4, p.l(u.Ue)), g.__param(5, p.l(a.je))], v); + d.wKa = v; + }, function(g, d, a) { + var c, h, k, f, b; - function m(a, b) { - var K1u; - K1u = 2; - while (K1u !== 4) { - switch (K1u) { - case 5: - a.children && a.children.forEach(function(a) { - var B1u; - B1u = 2; - while (B1u !== 1) { - switch (B1u) { - case 2: - m(a, b); - B1u = 1; - break; - case 4: - m(a, b); - B1u = 9; - break; - B1u = 1; - break; - } - } - }); - K1u = 4; - break; - case 2: - K1u = 1 == a.Nb || 2 == a.Nb && b ? 1 : 5; - break; - case 1: - a.Nb = 0; - K1u = 5; - break; + function b(a) { + function b(b, c) { + this.K = b; + this.F6a = !1; + this.emit = f.prototype.emit; + this.addListener = f.prototype.addListener; + this.on = f.prototype.on; + this.once = f.prototype.once; + this.removeListener = f.prototype.removeListener; + this.removeAllListeners = f.prototype.removeAllListeners; + this.listeners = f.prototype.listeners; + this.listenerCount = f.prototype.listenerCount; + f.call(this); + this.Ua = a.lb("DownloadTrack"); + this.Kt = c.Gp; + } + b.prototype.Nn = function() { + this.gP = void 0; + this.emit("destroyed"); + }; + b.prototype.toString = function() { + return "id:" + this.gP + " config: " + JSON.stringify(this.K); + }; + b.prototype.toJSON = function() { + return "Download Track id:" + this.gP + " config: " + JSON.stringify(this.K); + }; + b.prototype.uya = function(a) { + var b; + b = a.connections; + this.K.connections !== b && (this.K = a, this.Kt.qIb(b)); + }; + b.prototype.Zn = function() { + return 1 < this.K.connections ? !0 : !1; + }; + na.Object.defineProperties(b.prototype, { + Tb: { + configurable: !0, + enumerable: !0, + get: function() { + return this.gP; + } + }, + lQ: { + configurable: !0, + enumerable: !0, + get: function() { + return void 0 === this.gP; + } + }, + config: { + configurable: !0, + enumerable: !0, + get: function() { + return this.K; + } + }, + Zy: { + configurable: !0, + enumerable: !0, + get: function() { + return this.Ua; + } + }, + Gp: { + configurable: !0, + enumerable: !0, + get: function() { + return this.Kt; } } - } + }); + this.Uz = Object.assign(b, new k.AGa()); + } + Object.defineProperty(d, "__esModule", { + value: !0 + }); + g = a(0); + c = a(1); + h = a(7); + k = a(144); + f = a(143).EventEmitter; + b = g.__decorate([c.N(), g.__param(0, c.l(h.sb))], b); + d.zGa = b; + }, function(g, d, a) { + var b, c, h, k; + Object.defineProperty(d, "__esModule", { + value: !0 + }); + g = a(1); + b = a(144); + c = a(574); + h = a(301); + k = a(573); + d.PXa = new g.Vb(function(a) { + a(b.Mca).to(c.zGa).$(); + a(h.bfa).to(k.wKa).$(); + }); + }, function(g, d, a) { + var c, h, k, f, p; - function p(a) { - var W1u, b, c; - W1u = 2; - while (W1u !== 3) { - switch (W1u) { - case 2: - b = (a = a.parent) ? a.children : null; - c = {}; - a && b && 0 !== a.Nb && (c[0] = [], c[2] = [], c[1] = [], b.forEach(function(a) { - var A1u; - A1u = 2; - while (A1u !== 1) { - switch (A1u) { - case 4: - c[a.Nb].push(a); - A1u = 9; - break; - A1u = 1; - break; - case 2: - c[a.Nb].push(a); - A1u = 1; - break; - } - } - }), 0 < c[0].length && (a.Nb = 0, p(a))); - W1u = 3; - break; - } + function b(a) { + return h.Yd.call(this, a, "PrefetchEventsConfigImpl") || this; + } + Object.defineProperty(d, "__esModule", { + value: !0 + }); + g = a(0); + c = a(1); + h = a(38); + k = a(26); + f = a(35); + p = a(4); + ia(b, h.Yd); + na.Object.defineProperties(b.prototype, { + Hza: { + configurable: !0, + enumerable: !0, + get: function() { + return !0; + } + }, + N6: { + configurable: !0, + enumerable: !0, + get: function() { + return p.K7(5); } } - while (V2u !== 35) { - U22 = "medi"; - U22 += "a|"; - U22 += "a"; - U22 += "sej"; - U22 += "s"; - e22 = "ASE"; - e22 += "JS_LOCATION_SELEC"; - e22 += "TOR"; - switch (V2u) { - case 2: - k = a(10); - v = a(44); - V2u = 4; - break; - case 9: - G = new q.Console(e22, U22); - x = a(13); - v(n, c.prototype); - c.prototype.dM = function(a) { - var U1u, o22; - U1u = 2; - while (U1u !== 11) { - o22 = "ma"; - o22 += "nifest"; - o22 += "Add"; - o22 += "ed"; - switch (U1u) { - case 13: - this.emit(o22); - this.dump(); - U1u = 11; - break; - case 7: - a.forEach(function(a) { - var P1u; - P1u = 2; - while (P1u !== 1) { - switch (P1u) { - case 2: - a.Yk.sort(function(a, b) { - var I1u; - I1u = 2; - while (I1u !== 1) { - switch (I1u) { - case 2: - return a.Fd - b.Fd; - break; - case 4: - return a.Fd + b.Fd; - break; - I1u = 1; - break; - } - } - }); - P1u = 1; - break; - } - } - }); - this.ee.Sf = a; - this.ee.children = a; - U1u = 13; - break; - case 2: - a.locations.forEach(function(a) { - var x1u, c, d, g; - x1u = 2; - while (x1u !== 14) { - switch (x1u) { - case 2: - c = a.key; - x1u = 5; - break; - case 4: - d = []; - g = this.C1.get(c); - a = { - id: c, - Fd: a.rank, - level: a.level, - weight: a.weight, - Vv: x.Fe.K9, - Nb: 0, - parent: this.ee, - Yk: d, - children: d, - Db: {}, - Cq: !1, - M3: !1, - ma: g, - x6: null - }; - x1u = 8; - break; - case 5: - x1u = !k.has(this.Sf, c) ? 4 : 14; - break; - case 8: - this.Sf[a.id] = a; - a.parent.children.push(a); - b(a); - x1u = 14; - break; - } - } - }, this); - this.nL = q.time.la(); - this.ee.Sf.sort(function(a, b) { - var y1u; - y1u = 2; - while (y1u !== 1) { - switch (y1u) { - case 2: - return a.level - b.level || a.Fd - b.Fd; - break; - } - } - }); - a.servers.forEach(function(a) { - var u1u, b, c; - u1u = 2; - while (u1u !== 7) { - switch (u1u) { - case 5: - b = this.Sf[a.key]; - c = []; - a = { - id: a.id, - name: a.name, - type: a.type, - Fd: a.rank, - Vv: x.Fe.Au, - Nb: 0, - parent: b, - location: b, - ag: c, - children: c - }; - this.Yk[a.id] = a; - u1u = 8; - break; - case 1: - u1u = !k.has(this.Yk, a.id) ? 5 : 7; - break; - case 2: - u1u = 1; - break; - case 8: - a.parent.children.push(a); - u1u = 7; - break; - } - } - }, this); - a.audio_tracks.forEach(function(a) { - var b1u; - b1u = 2; - while (b1u !== 1) { - switch (b1u) { - case 2: - this.opa(a); - b1u = 1; - break; - case 4: - this.opa(a); - b1u = 6; - break; - b1u = 1; - break; - } - } - }, this); - a.video_tracks.forEach(function(a) { - var G1u; - G1u = 2; - while (G1u !== 1) { - switch (G1u) { - case 4: - this.opa(a); - G1u = 2; - break; - G1u = 1; - break; - case 2: - this.opa(a); - G1u = 1; - break; - } - } - }, this); - a = this.ee.Sf.filter(function(a) { - var J1u, b; - J1u = 2; - while (J1u !== 3) { - switch (J1u) { - case 2: - b = a.Yk.every(function(a) { - var c1u, B3u; - c1u = 2; - while (c1u !== 1) { - switch (c1u) { - case 4: - v7AA.a22(0); - B3u = v7AA.H22(20, 20); - return B3u != a.ag.length; - break; - c1u = 1; - break; - case 2: - return 0 === a.ag.length; - break; - } - } - }); - b && (a.Yk.forEach(function(a) { - var t1u; - t1u = 2; - while (t1u !== 1) { - switch (t1u) { - case 2: - delete this.Yk[a.id]; - t1u = 1; - break; - case 4: - +this.Yk[a.id]; - t1u = 5; - break; - t1u = 1; - break; - } - } - }, this), delete this.Sf[a.id], delete a.parent, delete a.Yk, delete a.children, delete a.Db); - return !b; - break; - } - } - }, this); - U1u = 7; - break; - } - } - }; - V2u = 14; - break; - case 14: - c.prototype.opa = function(a) { - var q1u; - q1u = 2; - while (q1u !== 1) { - switch (q1u) { - case 2: - a.streams.forEach(function(a) { - var r1u, b, O22; - r1u = 2; - while (r1u !== 8) { - O22 = "n"; - O22 += "o"; - O22 += "n"; - O22 += "e"; - O22 += "-"; - switch (r1u) { - case 3: - k.Kc(b.PR, function(a) { - var O1u; - O1u = 2; - while (O1u !== 1) { - switch (O1u) { - case 2: - a.sort(function(a, b) { - var S1u; - S1u = 2; - while (S1u !== 1) { - switch (S1u) { - case 4: - return a.Wb.Fd * b.Wb.Fd; - break; - S1u = 1; - break; - case 2: - return a.Wb.Fd - b.Wb.Fd; - break; - } - } - }); - O1u = 1; - break; - } - } - }); - b.Sf = b.Sf.sort(function(a, b) { - var F1u; - F1u = 2; - while (F1u !== 1) { - switch (F1u) { - case 2: - return a.level - b.level || a.Fd - b.Fd; - break; - } - } - }); - r1u = 8; - break; - case 2: - b = this.Db[a.downloadable_id]; - k.S(b) && (b = { - id: a.downloadable_id, - J: a.bitrate, - je: a.vmaf, - type: a.type, - profile: a.content_profile, - clear: 0 === a.content_profile.indexOf(O22), - ag: [], - PR: {}, - Sf: [] - }, this.Db[b.id] = b); - a.urls.forEach(function(a) { - var X1u, c, d; - X1u = 2; - while (X1u !== 11) { - switch (X1u) { - case 2: - c = this.ag[a.url]; - X1u = 5; - break; - case 4: - c = this.Yk[a.cdn_id]; - d = c.location; - c = { - id: a.url, - url: a.url, - Vv: x.Fe.URL, - Nb: 0, - parent: c, - Wb: c, - stream: b - }; - this.ag[c.url] = c; - X1u = 7; - break; - case 5: - X1u = k.S(c) ? 4 : 11; - break; - case 7: - c.parent.children.push(c); - X1u = 6; - break; - case 12: - (a = b.PR[d.id]) ? a.push(c): b.PR[d.id] = [c]; - X1u = 11; - break; - case 6: - b.ag.push(c); - b.Sf.push(d); - d.Db[b.id] = b; - X1u = 12; - break; - } - } - }, this); - r1u = 3; - break; - } - } - }, this); - q1u = 1; - break; - } - } - }; - c.prototype.Xv = function() { - var m1u, W3u; - m1u = 2; - while (m1u !== 1) { - switch (m1u) { - case 2: - return 0 != this.ee.Nb; - break; - case 4: - v7AA.X22(1); - W3u = v7AA.n22(14, 13, 2366, 26); - return W3u == this.ee.Nb; - break; - m1u = 1; - break; - } - } - }; - c.prototype.NR = function(a, c) { - var z1u, d, g, f, m, l, p, r, s32, V32, E32, t32; - z1u = 2; - while (z1u !== 27) { - s32 = "(empty strea"; - s32 += "m lis"; - s32 += "t)"; - V32 = "D"; - V32 += "id no"; - V32 += "t find"; - V32 += " a URL"; - V32 += " for ANY stream..."; - E32 = "netwo"; - E32 += "rkFa"; - E32 += "i"; - E32 += "le"; - E32 += "d"; - t32 = "Network has fail"; - t32 += "ed, not updating s"; - t32 += "tream selection"; - switch (z1u) { - case 12: - r = this.Sf[this.ej.location]; - z1u = 11; - break; - case 17: - return this.Xk(x.Fe.Qo, !1), null; - break; - case 6: - p = x.Pc.gr; - z1u = 14; - break; - case 14: - d.LG && (p = x.Pc.ln); - z1u = 13; - break; - case 4: - m = this.uo; - l = 0; - q.Fl && q.Fl(); - z1u = 8; - break; - case 7: - return null; - break; - case 20: - this.DH = this.dcb(a); - z1u = 19; - break; - case 18: - z1u = !f || !f.length ? 17 : 16; - break; - case 16: - c.forEach(function(a, b) { - var g1u, c, F22, k22, c22, y22; - g1u = 2; - while (g1u !== 4) { - F22 = " K"; - F22 += "b"; - F22 += "p"; - F22 += "s"; - F22 += ")"; - k22 = " "; - k22 += "("; - c22 = "]"; - c22 += " "; - y22 = "F"; - y22 += "ai"; - y22 += "lin"; - y22 += "g s"; - y22 += "tream ["; - switch (g1u) { - case 2: - c = a.id; - f.some(function(b) { - var E1u, h, l; - E1u = 2; - while (E1u !== 8) { - switch (E1u) { - case 4: - return !1; - break; - case 2: - h = b.Db[c]; - E1u = 5; - break; - case 5: - E1u = !h ? 4 : 3; - break; - case 3: - l = h.Sf[0]; - return h.PR[b.id].some(function(c) { - var s1u, h, Q22, i22, G22, r22, M22, Y22, v22, C22, m22, T22, w22, N22, h22; - s1u = 2; - while (s1u !== 12) { - Q22 = "loc"; - Q22 += "ati"; - Q22 += "o"; - Q22 += "nfa"; - Q22 += "ilover"; - i22 = "serv"; - i22 += "e"; - i22 += "r"; - i22 += "failover"; - G22 = "perfor"; - G22 += "m"; - G22 += "anc"; - G22 += "e"; - r22 = "p"; - r22 += "r"; - r22 += "obe"; - M22 = "i"; - M22 += "n"; - M22 += "i"; - M22 += "t"; - Y22 = "bi"; - Y22 += "t"; - Y22 += "r"; - Y22 += "a"; - Y22 += "te"; - v22 = "loc"; - v22 += "s"; - v22 += "w"; - v22 += "itchb"; - v22 += "ack"; - C22 = "se"; - C22 += "rverswitch"; - C22 += "ba"; - C22 += "ck"; - m22 = "un"; - m22 += "kn"; - m22 += "o"; - m22 += "wn"; - T22 = "i"; - T22 += "n"; - T22 += "i"; - T22 += "t"; - w22 = "bitra"; - w22 += "t"; - w22 += "e"; - N22 = "serv"; - N22 += "ers"; - N22 += "witch"; - N22 += "awa"; - N22 += "y"; - h22 = "locsw"; - h22 += "i"; - h22 += "tchawa"; - h22 += "y"; - switch (s1u) { - case 1: - s1u = 0 != c.Wb.Nb ? 5 : 4; - break; - case 2: - s1u = 1; - break; - case 3: - return !1; - break; - case 5: - return 1 === c.Wb.Nb && (a.Nb = 1), d.so && a.Wb === c.Wb.id && c.Wb.hH && (a.hH = c.Wb.hH), !1; - break; - case 4: - s1u = 0 != c.Nb ? 3 : 9; - break; - case 9: - a.location !== b.id && (h = d.so ? b.id !== l.id || k.S(a.location) || a.location === b.id ? b.id !== l.id ? h22 : !k.S(a.pA) && a.pA !== c.Wb.id && a.Nb ? N22 : k.S(a.pA) || a.pA === c.Wb.id || void 0 !== a.Nb ? b.id === l.id && b !== f[0] ? w22 : void 0 === a.location ? T22 : m22 : C22 : v22 : b !== f[0] ? Y22 : void 0 === a.location ? M22 : m ? r22 : k.S(a.cma) || a.cma == b.id ? k.S(a.pA) || a.pA == c.Wb.id ? G22 : i22 : Q22, a.location = b.id, a.b1a = b.level, a.QQ = h); - a.url = c.url; - a.Wb = c.Wb.id; - s1u = 6; - break; - case 6: - a.HH = c.Wb.name; - a.ma = d.VX ? b.ma.$b >= x.Pc.ln ? b.ma : g.$b < p ? b.ma : g : g.$b == x.Pc.HAVE_NOTHING || b.ma.$b >= x.Pc.ln ? b.ma : g; - return !0; - break; - } - } - }); - break; - } - } - }) ? (delete a.fh, delete a.Nb, a.Ye && ++l) : a.Nb && 1 === a.Nb ? this.ee.Nb = 1 : a.fh || (G.warn(y22 + b + c22 + c + k22 + a.J + F22), h(a), a.fh = !0); - g1u = 4; - break; - } - } - }, this); - return 0 != this.ee.Nb ? (G.warn(t32), this.ee.YM = !0, this.emit(E32, 2 == this.ee.Nb), null) : l ? c : (G.warn(V32 + (c.length ? "" : s32)), this.Xk(x.Fe.Qo, !0), null); - break; - case 13: - z1u = this.ej.location && g.$b >= p ? 12 : 10; - break; - case 11: - r && (r.ma = g, b(r)); - z1u = 10; - break; - case 19: - f = this.DH; - z1u = 18; - break; - case 8: - z1u = 0 != this.ee.Nb ? 7 : 6; - break; - case 10: - z1u = k.Ja(this.DH) || m ? 20 : 19; - break; - case 2: - d = this.config; - g = this.ej.get(); - z1u = 4; - break; - } - } - }; - c.prototype.dcb = function(a) { - var w1u, b, c, d, g, h; - w1u = 2; - while (w1u !== 15) { - switch (w1u) { - case 2: - b = this; - c = this.config; - w1u = 4; - break; - case 6: - w1u = k.Ja(this.nL) || this.nL + c.E1 < q.time.la() ? 14 : 13; - break; - case 7: - return null; - break; - case 19: - c.Lz ? a.sort(function(a, c) { - var n1u; - n1u = 2; - while (n1u !== 1) { - switch (n1u) { - case 2: - return a.level - c.level || (b.uo && a.Cq && !c.Cq ? -1 : 0) || (b.uo && c.Cq && !a.Cq ? 1 : 0) || (b.uo && a.Cq && c.Cq ? a.Fd - c.Fd : 0) || c.KY - a.KY || c.x6 - a.x6 || a.Fd - c.Fd; - break; - } - } - }) : a.sort(function(a, b) { - var a1u; - a1u = 2; - while (a1u !== 1) { - switch (a1u) { - case 2: - return a.level - b.level || a.Fd - b.Fd; - break; - } - } - }); - this.cP || k.Ja(g) || (this.y3a(a[0], this.npa, g, this.Vqa), this.cP = !0); - return a; - break; - case 14: - a.forEach(function(a) { - var v1u; - v1u = 2; - while (v1u !== 1) { - switch (v1u) { - case 2: - a.id !== this.ej.location && (a.ma = this.C1.get(a.id)); - v1u = 1; - break; - } - } - }, this), this.nL = q.time.la(); - w1u = 13; - break; - case 4: - a = a.buffer; - d = a.Qi - a.me; - a = this.ee.Sf.filter(function(a) { - var e1u; - e1u = 2; - while (e1u !== 1) { - switch (e1u) { - case 4: - return 2 === a.Nb || 8 == a.level; - break; - e1u = 1; - break; - case 2: - return 0 == a.Nb && 0 !== a.level; - break; - } - } - }); - w1u = 8; - break; - case 12: - w1u = this.uo ? 11 : 16; - break; - case 13: - g = null; - w1u = 12; - break; - case 8: - w1u = 0 === a.length ? 7 : 6; - break; - case 11: - a.forEach(function(a) { - var o1u; - o1u = 2; - while (o1u !== 1) { - switch (o1u) { - case 2: - a.ma.$b >= x.Pc.ln ? (a.M3 = a.M3 || a.Cq, a.Cq = !1, a.KY = x.Pc.ln) : (a.Cq = !0, a.KY = a.ma.$b); - o1u = 1; - break; - } - } - }, this); - h = null; - w1u = 20; - break; - case 20: - a.every(function(a) { - var f1u; - f1u = 2; - while (f1u !== 5) { - switch (f1u) { - case 2: - k.Ja(h) && (h = a.level); - return h != a.level ? (this.uo = !1, g = x.Xo.U6, !1) : a.ma.$b < x.Pc.ln ? !1 : a.ma.ia.ta > c.xN ? (this.uo = !1, g = x.Xo.sxa, !1) : !0; - break; - } - } - }, this) && (this.uo = !1, g = x.Xo.U6); - w1u = 19; - break; - case 16: - c.Lz ? (g = x.Xo.Dza, 1 == this.mode && (this.uo = d > c.R5)) : g = this.PQ; - w1u = 19; - break; - } - } - }; - V2u = 10; - break; - case 10: - c.prototype.R7a = function(a) { - var k1u, b; - k1u = 2; - while (k1u !== 8) { - switch (k1u) { - case 2: - b = this.ej.location; - k1u = 5; - break; - case 5: - this.cP = !1; - this.uo = this.config.Lz && !0; - k1u = 3; - break; - case 3: - this.npa = a; - this.ee.Sf.forEach(function(a) { - var H1u; - H1u = 2; - while (H1u !== 1) { - switch (H1u) { - case 2: - a.id != b && a.ma && a.ma.$b > x.Pc.gr && (a.ma.$b = x.Pc.gr); - H1u = 1; - break; - } - } - }); - k1u = 8; - break; - } - } - }; - c.prototype.cra = function(a) { - var i1u; - i1u = 2; - while (i1u !== 5) { - switch (i1u) { - case 2: - i1u = (a = this.ag[a]) ? 1 : 5; - break; - case 3: - i1u = (a = this.ag[a]) ? 5 : 3; - break; - i1u = (a = this.ag[a]) ? 1 : 5; - break; - case 9: - return a.parent.id; - break; - i1u = 5; - break; - case 1: - return a.parent.id; - break; - } - } - }; - c.prototype.bP = function(a) { - var j1u; - j1u = 2; - while (j1u !== 5) { - switch (j1u) { - case 2: - j1u = (a = this.ag[a]) ? 1 : 5; - break; - case 9: - return a.parent.location; - break; - j1u = 5; - break; - case 1: - return a.parent.location; - break; - } - } - }; - V2u = 18; - break; - case 4: - n = a(31).EventEmitter; - q = a(9); - V2u = 9; - break; - case 25: - c.prototype.Dw = function(a) { - var T3u, f32; - T3u = 2; - while (T3u !== 1) { - f32 = "lo"; - f32 += "gd"; - f32 += "a"; - f32 += "ta"; - switch (T3u) { - case 4: - this.Ha("", a); - T3u = 7; - break; - T3u = 1; - break; - case 2: - this.Ha(f32, a); - T3u = 1; - break; - } - } - }; - V2u = 24; - break; - case 18: - c.prototype.Nra = function(a) { - var D1u; - D1u = 2; - while (D1u !== 5) { - switch (D1u) { - case 3: - D1u = (a = this.ag[a]) ? 3 : 9; - break; - D1u = (a = this.ag[a]) ? 1 : 5; - break; - case 2: - D1u = (a = this.ag[a]) ? 1 : 5; - break; - case 1: - return a.stream; - break; - case 9: - return a.stream; - break; - D1u = 5; - break; - } - } - }; - c.prototype.m9a = function(a, b) { - var Y1u, c, d; - Y1u = 2; - while (Y1u !== 9) { - switch (Y1u) { - case 3: - return c; - break; - case 2: - c = {}; - d = /^http(s?):\/\/([^\/:]+):?([0-9]*)/; - k.forEach(this.ag, function(g, h) { - var l1u, f, m, l, p, D32, d32, A3u; - l1u = 2; - while (l1u !== 14) { - D32 = "8"; - D32 += "0"; - d32 = "4"; - d32 += "4"; - d32 += "3"; - switch (l1u) { - case 9: - v7AA.a22(2); - A3u = v7AA.n22(21, 405, 14, 8); - l = "s" === m[A3u]; - p = m[2]; - l1u = 7; - break; - case 5: - f = c[g]; - m = h.match(d); - l1u = 3; - break; - case 3: - l1u = m && 4 === m.length ? 9 : 14; - break; - case 2: - g = g.parent.id; - l1u = 5; - break; - case 7: - m = m[3]; - k.oc(p) && k.oc(m) && (m.length || (m = l ? d32 : D32), p == a && m == b && (f ? f.push(h) : c[g] = [h])); - l1u = 14; - break; - } - } - }); - Y1u = 3; - break; - } - } - }; - c.prototype.Xk = function(a, b, c, d) { - var V1u, p1u, h, f, m, W32, j32, S32, I32, q32, p32, g32, b32, J32; - V1u = 2; - while (V1u !== 25) { - W32 = "n"; - W32 += "etworkFaile"; - W32 += "d"; - j32 = "Emitting networkF"; - j32 += "ailed, perm"; - j32 += "a"; - j32 += "nent"; - j32 += " ="; - S32 = "Inv"; - S32 += "alid f"; - S32 += "ailure s"; - S32 += "tate"; - I32 = "Unabl"; - I32 += "e to f"; - I32 += "ind failure entity for U"; - I32 += "RL "; - q32 = " : "; - q32 += "w"; - q32 += "a"; - q32 += "s"; - q32 += " "; - p32 = " "; - p32 += "a"; - p32 += "t"; - p32 += " "; - g32 = " fail"; - g32 += "ur"; - g32 += "e repo"; - g32 += "rted for "; - b32 = "T"; - b32 += "E"; - b32 += "M"; - b32 += "P"; - J32 = "P"; - J32 += "E"; - J32 += "R"; - J32 += "M"; - switch (V1u) { - case 9: - G.warn((b ? J32 : b32) + g32 + x.Fe.name[a] + p32 + g(h) + q32 + r(h.Nb)); - V1u = 8; - break; - case 5: - h = h.parent; - V1u = 1; - break; - case 4: - V1u = h ? 3 : 26; - break; - case 26: - v7AA.X22(3); - G.warn(v7AA.H22(I32, c)); - V1u = 25; - break; - case 27: - throw Error(S32); - V1u = 14; - break; - case 6: - V1u = p1u === 1 ? 14 : 16; - break; - case 8: - p1u = h.Nb; - V1u = p1u === 2 ? 7 : 6; - break; - case 16: - V1u = p1u === 0 ? 14 : 15; - break; - case 14: - h.Nb = m; - l(h); - this.ee.YM = this.ee.YM || 0 != this.ee.Nb; - a = this.ee.Nb; - V1u = 10; - break; - case 10: - a > f && (G.warn(j32, 2 == a), this.emit(W32, 2 == a)); - this.DH = null; - this.PQ = x.Xo.ERROR; - d && (this.PQ = x.Xo.HCa, this.Vqa = { - f5: d.pX, - ew: d.ew, - Mj: d.Mj, - wN: d.wN, - Uk: d.Uk - }, h.hH = d); - this.dump(); - V1u = 25; - break; - case 7: - return; - break; - case 3: - V1u = m != h.Nb ? 9 : 25; - break; - case 2: - h = a == x.Fe.Qo ? this.ee : this.ag[c], f = this.ee.Nb, m = b ? 2 : 1; - V1u = 1; - break; - case 15: - V1u = 27; - break; - case 1: - V1u = h && h.Vv != a ? 5 : 4; - break; - } - } - }; - c.prototype.pqa = function(a, b) { - var C1u; - C1u = 2; - while (C1u !== 9) { - switch (C1u) { - case 3: - this.Vqa = { - f5: a - }; - C1u = 9; - break; - case 2: - m(this.Yk[a], b); - p(this.Yk[a]); - this.DH = null; - this.PQ = x.Xo.ICa; - C1u = 3; - break; - } - } - }; - V2u = 27; - break; - case 21: - f.P = c; - V2u = 35; - break; - case 27: - c.prototype.fB = function(a) { - var h3u; - h3u = 2; - while (h3u !== 1) { - switch (h3u) { - case 2: - m(this.ee, a); - h3u = 1; - break; - case 4: - m(this.ee, a); - h3u = 4; - break; - h3u = 1; - break; - } - } - }; - c.prototype.i5a = function() { - var N3u; - N3u = 2; - while (N3u !== 1) { - switch (N3u) { - case 2: - this.ee.YM || this.ee.Sf.forEach(function(a) { - var Q3u; - Q3u = 2; - while (Q3u !== 1) { - switch (Q3u) { - case 2: - 1 == a.Nb && this.C1.fail(a.id, q.time.la()); - Q3u = 1; - break; - } - } - }, this); - N3u = 1; - break; - } - } - }; - V2u = 25; - break; - case 24: - c.prototype.y3a = function(a, b, c, d) { - var R3u, g, H32, A32; - R3u = 2; - while (R3u !== 4) { - H32 = "loc"; - H32 += "a"; - H32 += "ti"; - H32 += "onSel"; - H32 += "ected"; - A32 = "loc"; - A32 += "at"; - A32 += "ionSelected"; - switch (R3u) { - case 5: - this.Ha(A32, { - type: H32, - location: a.id, - locationlv: a.level, - serverid: a.Yk[0].id, - servername: a.Yk[0].name, - serverrtt: 0, - serverbw: a.ma && a.ma.ia ? a.ma.ia.ta : 0, - probedata: g, - testreason: x.oU.name[b], - selreason: x.Xo.name[c], - fastselthreshold: this.config.xN, - seldetail: d - }); - R3u = 4; - break; - case 2: - g = this.ee.Sf.filter(function(a) { - var M3u; - M3u = 2; - while (M3u !== 1) { - switch (M3u) { - case 4: - return a.M3; - break; - M3u = 1; - break; - case 2: - return a.M3; - break; - } - } - }).map(function(a) { - var Z3u, b; - Z3u = 2; - while (Z3u !== 3) { - switch (Z3u) { - case 2: - b = { - id: a.id, - locid: a.id - }; - a.ma && (a.ma.ia && (b.bw = a.ma.ia.ta), a.ma.he && (b.rtt = a.ma.he.ta)); - return b; - break; - } - } - }); - R3u = 5; - break; - } - } - }; - c.prototype.dump = function() {}; - c.prototype.ija = function(a) { - var L3u, b; - L3u = 2; - while (L3u !== 3) { - switch (L3u) { - case 1: - L3u = a ? 5 : 3; - break; - case 5: - b = a.bind(this); - k.forEach(this.ag, function(a) { - var K3u, c; - K3u = 2; - while (K3u !== 4) { - switch (K3u) { - case 2: - c = a.Wb; - b(c.location, c, a.stream, a); - K3u = 4; - break; - } - } - }); - L3u = 3; - break; - case 2: - L3u = 1; - break; - } + }); + a = b; + g.__decorate([f.config(f.le, "sendPrefetchEventLogs")], a.prototype, "Hza", null); + g.__decorate([f.config(f.Fg, "logsInterval")], a.prototype, "N6", null); + a = g.__decorate([c.N(), g.__param(0, c.l(k.Fi))], a); + d.VNa = a; + }, function(g, d, a) { + var c, h, k; + + function b(a, b) { + this.Pa = b; + this.ga = a.lb("PlayPredictionDeserializer"); + } + Object.defineProperty(d, "__esModule", { + value: !0 + }); + g = a(0); + c = a(1); + h = a(7); + a = a(23); + b.prototype.Z3a = function(a) { + var b; + b = this; + try { + return { + direction: a.direction, + ldb: a.layoutHasChanged, + wmb: a.rowInteractionIndex, + xa: a.lolomos.map(function(a) { + return b.U3a(a); + }) + }; + } catch (m) { + this.ga.error("Failed to deserialize update Payload: ", { + payload: JSON.stringify(a) + }); + } + }; + b.prototype.U3a = function(a) { + var b; + b = this; + return { + context: a.context, + list: a.list.map(function(a) { + return b.T3a(a); + }), + requestId: a.requestId, + rowIndex: a.rowIndex, + ymb: a.rowSegment + }; + }; + b.prototype.T3a = function(a) { + var b, f; + b = { + Jb: a.pts, + property: a.property, + Ie: a.viewableId, + index: a.index + }; + f = a.preplay; + this.Pa.Zg(f) && (b.ND = this.X3a(f)); + a = a.params; + this.Pa.Zg(a) && (b.cb = this.bpa(a)); + return b; + }; + b.prototype.X3a = function(a) { + var b; + b = { + Jb: a.pts, + Ie: a.viewableId, + Yy: a.pipelineNum, + index: a.index + }; + a = a.params; + this.Pa.Zg(a) && (b.cb = this.bpa(a)); + return b; + }; + b.prototype.bpa = function(a) { + return { + uc: a.uiLabel, + Qf: a.trackingId, + ri: a.sessionParams + }; + }; + b.prototype.cpa = function(a) { + var b; + b = this; + try { + return a.map(function(a) { + return b.V3a(a); + }); + } catch (m) { + this.ga.error("Failed to deserialize uprepareList", { + prepareList: JSON.stringify(a) + }); + } + }; + b.prototype.V3a = function(a) { + var b, f; + f = a.params; + this.Pa.Zg(f) && (b = this.W3a(f)); + return { + R: a.movieId, + Dd: a.priority, + force: a.force, + cb: b, + uc: a.uiLabel, + QIb: a.uiExpectedStartTime, + PIb: a.uiExpectedEndTime, + di: a.firstTimeAdded + }; + }; + b.prototype.W3a = function(a) { + var b, f; + b = void 0; + f = a.sessionParams; + this.Pa.Zg(f) && (b = this.Y3a(f)); + return { + CB: this.S3a(a.authParams), + ri: b, + Qf: a.trackingId, + U: a.startPts, + Fa: a.manifest, + Ze: a.isBranching + }; + }; + b.prototype.S3a = function(a) { + return { + ixa: (a || {}).pinCapableClient + }; + }; + b.prototype.Y3a = function(a) { + a.SIb = a.uiplaycontext; + return a; + }; + b.prototype.tnb = function(a) { + var b, f; + try { + b = ""; + this.Pa.Zg(a.Cxa) && (b = JSON.stringify(this.wnb(JSON.parse(a.Cxa)))); + f = ""; + this.Pa.Zg(a.Dxa) && (f = JSON.stringify(this.xnb(JSON.parse(a.Dxa)))); + return { + dest_id: a.AQ, + offset: a.offset, + predictions: a.Ixa.map(this.znb, this), + ppm_input: b, + ppm_output: f, + prepare_type: a.xHb + }; + } catch (r) { + this.ga.error("Failed to serialize serializeDestinyPrepareEvent", { + prepareList: JSON.stringify(a) + }); + } + }; + b.prototype.znb = function(a) { + return { + title_id: a.xo + }; + }; + b.prototype.wnb = function(a) { + return { + direction: a.direction, + layoutHasChanged: a.ldb, + rowInteractionIndex: a.wmb, + lolomos: a.xa.map(this.vnb, this) + }; + }; + b.prototype.vnb = function(a) { + return { + context: a.context, + list: a.list.map(this.unb, this), + requestId: a.requestId, + rowIndex: a.rowIndex, + rowSegment: a.ymb + }; + }; + b.prototype.unb = function(a) { + var b, f; + this.Pa.Zg(a.ND) && (b = this.Anb(a.ND)); + this.Pa.Zg(a.cb) && (f = this.q$(a.cb)); + return { + preplay: b, + pts: a.Jb, + viewableId: a.Ie, + params: f, + property: a.property, + index: a.index + }; + }; + b.prototype.Anb = function(a) { + var b; + this.Pa.Zg(a.cb) && (b = this.q$(a.cb)); + return { + pts: a.Jb, + viewableId: a.Ie, + params: b, + pipelineNum: a.Yy, + index: a.index + }; + }; + b.prototype.q$ = function(a) { + return { + uiLabel: a.uc, + trackingId: a.Qf, + sessionParams: a.ri + }; + }; + b.prototype.xnb = function(a) { + return a.map(this.ynb, this); + }; + b.prototype.ynb = function(a) { + var b; + this.Pa.Zg(a.cb) && (b = this.q$(a.cb)); + return { + movieId: a.R, + priority: a.Dd, + params: b, + uiLabel: a.uc, + firstTimeAdded: a.di, + viewableId: a.Ie, + pts: a.Jb + }; + }; + k = b; + k = g.__decorate([c.N(), g.__param(0, c.l(h.sb)), g.__param(1, c.l(a.ve))], k); + d.vNa = k; + }, function(g, d, a) { + var h, k, f, p, m, r, u, l, v; + + function b(a, b, c, f, d, g, k, h) { + this.Eg = a; + this.Ey = b; + this.ia = c; + this.tv = d; + this.config = g; + this.Y3 = k; + this.B8 = h; + this.hU = []; + this.k6 = []; + this.P8 = {}; + this.ga = f.lb("PrefetchEvents"); + } + + function c(a, b, c, f, d, g) { + this.Eg = a; + this.Ey = b; + this.ia = c; + this.af = f; + this.config = d; + this.B8 = g; + } + Object.defineProperty(d, "__esModule", { + value: !0 + }); + g = a(0); + h = a(114); + k = a(1); + f = a(4); + p = a(56); + m = a(112); + r = a(30); + u = a(7); + l = a(302); + a = a(181); + c.prototype.create = function(a, c) { + return new b(this.Eg, this.Ey, this.ia, this.af, a, this.config, c, this.B8); + }; + v = c; + v = g.__decorate([k.N(), g.__param(0, k.l(p.dt)), g.__param(1, k.l(m.eA)), g.__param(2, k.l(r.Xf)), g.__param(3, k.l(u.sb)), g.__param(4, k.l(l.Jga)), g.__param(5, k.l(a.rY))], v); + d.WNa = v; + b.prototype.uZa = function(a, b, c) { + this.ty(h.Xd.fw.aEa, a, b, void 0, c); + }; + b.prototype.wZa = function(a, b, c) { + this.ty(h.Xd.fw.bEa, a, b, void 0, c); + }; + b.prototype.sZa = function(a, b, c) { + this.ty(h.Xd.fw.$Da, a, b, void 0, c); + }; + b.prototype.qZa = function(a, b, c) { + this.ty(h.Xd.fw.YDa, a, b, void 0, c); + }; + b.prototype.jH = function(a, b, c) { + this.ty(h.Xd.fw.ZDa, a, b, void 0, c); + }; + b.prototype.kjb = function(a) { + this.ty(h.Xd.fw.MLa, void 0, a); + }; + b.prototype.Hk = function(a, b, c, f, d, g, k) { + this.rP() && (this.ty(h.Xd.fw.LOa, void 0, a), this.feb(a, b, c, f, d, g, k), this.Bqa(), this.rua()); + this.ycb(a) && this.dmb(); + }; + b.prototype.$3a = function(a) { + a = { + dest_id: a, + cache: this.p$(this.Y3()) + }; + this.OK("destiny_start", a); + }; + b.prototype.Ljb = function(a) { + (a = this.B8.tnb(a)) ? this.OK("destiny_prepare", a): this.ga.error("failed to serialize prepare event"); + }; + b.prototype.Bqa = function() { + 0 < this.hU.length && this.rP() && (this.OK("destiny_events", { + dest_id: this.tv.im, + events: this.hU + }), this.hU = []); + this.CU && (this.CU.cancel(), this.CU = void 0); + this.Wpa(); + }; + b.prototype.rua = function() { + var a; + if (this.vZa() && this.rP()) { + a = this.Y3(); + this.k6 = a; + a = { + dest_id: this.tv.im, + offset: this.tv.DR(), + cache: this.p$(a) + }; + this.OK("destiny_cachestate", a); + } + this.BU && (this.BU.cancel(), this.BU = void 0); + this.Vpa(); + }; + b.prototype.update = function(a) { + var b; + b = this; + a.xa.forEach(function(a) { + a.list.forEach(function(a) { + b.P8[a.Ie] = !0; + }); + }); + }; + b.prototype.ycb = function(a) { + return this.P8[a]; + }; + b.prototype.vZa = function() { + var a, b, c; + a = this; + b = this.Y3(); + if (b.length !== this.k6.length) return !0; + c = !1; + b.forEach(function(b, f) { + try { + JSON.stringify(b) !== JSON.stringify(a.k6[f]) && (c = !0); + } catch (P) { + a.ga.error("Failed to stringify cachedTitle", P); + } + }); + return c; + }; + b.prototype.ty = function(a, b, c, f, d) { + this.rP() && (a = { + offset: this.tv.DR(), + event_type: a, + title_id: c, + asset_type: b, + size: f, + reason: d + }, this.hU.push(a), this.Wpa(), this.Vpa()); + }; + b.prototype.Wpa = function() { + this.CU || (this.CU = this.ia.Nf(this.config.N6, this.Bqa.bind(this))); + }; + b.prototype.Vpa = function() { + this.BU || (this.BU = this.ia.Nf(this.config.N6, this.rua.bind(this))); + }; + b.prototype.feb = function(a, b, c, d, g, k, m) { + var p; + p = []; + c && p.push({ + xo: a, + jr: h.Xd.xi.oba, + state: h.Xd.XL.hM + }); + d && p.push({ + xo: a, + jr: h.Xd.xi.jw, + state: h.Xd.XL.hM + }); + g && p.push({ + xo: a, + jr: h.Xd.xi.gF, + state: h.Xd.XL.hM + }); + (0 < k.ma(f.Aa) || 0 < m.ma(f.Aa)) && p.push({ + xo: a, + jr: h.Xd.xi.MEDIA, + state: h.Xd.XL.hM, + qYa: k.ma(f.Aa), + Bsb: m.ma(f.Aa) + }); + a = { + dest_id: this.tv.im, + offset: this.tv.DR(), + xid: b, + cache: this.p$(p) + }; + this.OK("destiny_playback", a); + }; + b.prototype.OK = function(a, b) { + this.config.Hza && (a = this.Ey.ru(a, "info", b), this.Eg.Sb(a)); + }; + b.prototype.p$ = function(a) { + return a.map(function(a) { + return { + title_id: a.xo, + state: a.state, + asset_type: a.jr, + size: a.size, + audio_ms: a.qYa, + video_ms: a.Bsb + }; + }); + }; + b.prototype.rP = function() { + return 0 !== this.tv.im; + }; + b.prototype.dmb = function() { + this.tv.cmb(); + this.P8 = {}; + }; + }, function(g, d, a) { + var b, c, h, k, f, p; + Object.defineProperty(d, "__esModule", { + value: !0 + }); + g = a(1); + b = a(114); + c = a(578); + h = a(181); + k = a(577); + f = a(576); + p = a(302); + d.xsb = new g.Vb(function(a) { + a(p.Jga).to(f.VNa).$(); + a(b.Kga).to(c.WNa).$(); + a(h.rY).to(k.vNa).$(); + }); + }, function(g, d, a) { + var c, h, k, f; + + function b() {} + Object.defineProperty(d, "__esModule", { + value: !0 + }); + g = a(0); + c = a(1); + h = a(6); + k = a(182); + b.prototype.j$a = function() { + var a; + a = A.devicePixelRatio || 1; + return { + width: this.h_.CFa || h.xq.width * a, + height: this.h_.BFa || h.xq.height * a + }; + }; + na.Object.defineProperties(b.prototype, { + h_: { + configurable: !0, + enumerable: !0, + get: function() { + return a(33).wf; + } + } + }); + f = b; + g.__decorate([k.HS], f.prototype, "h_", null); + f = g.__decorate([c.N()], f); + d.FQa = f; + }, function(g, d, a) { + var c, h; + + function b() {} + Object.defineProperty(d, "__esModule", { + value: !0 + }); + g = a(0); + c = a(1); + h = a(123); + b.prototype.compare = function(a, b) { + var c; + c = []; + this.y1(a, b, "", c); + return c; + }; + b.prototype.y1 = function(a, b, c, d) { + var f; + f = this; + if (h.tq.Zt(a)) h.tq.Zt(b) && a.length === b.length ? a.forEach(function(g, k) { + f.y1(a[k], b[k], c + "[" + k + "]", d); + }) : d.push({ + a: a, + b: b, + path: c + }); + else if (h.tq.ux(a) && null != a) + if (h.tq.ux(b) && null != b) { + for (var g in a) this.y1(a[g], b[g], c + "." + g, d); + for (var k in b) k in a || void 0 === b[k] || d.push({ + a: void 0, + b: b[k], + path: c + "." + k + }); + } else d.push({ + a: a, + b: b, + path: c + }); + else a !== b && d.push({ + a: a, + b: b, + path: c + }); + }; + a = b; + a = g.__decorate([c.N()], a); + d.sLa = a; + }, function(g, d) { + Object.defineProperty(d, "__esModule", { + value: !0 + }); + d.tLa = "ObjectComparerSymbol"; + }, function(g, d, a) { + var c, h, k, f; + + function b(a) { + this.location = a; + h.zk(this, "location"); + } + Object.defineProperty(d, "__esModule", { + value: !0 + }); + g = a(0); + h = a(51); + k = a(39); + a = a(1); + b.KT = function(a) { + var b, d, g; + b = {}; + if (0 < a.length) { + a = a.split("&"); + for (var f = 0; f < a.length; f++) { + d = a[f].trim(); + g = d.indexOf("="); + 0 <= g ? b[decodeURIComponent(d.substr(0, g).replace(c.Wfa, "%20"))] = decodeURIComponent(d.substr(g + 1).replace(c.Wfa, "%20")) : b[d.toLowerCase()] = ""; + } + } + return b; + }; + na.Object.defineProperties(b.prototype, { + Bkb: { + configurable: !0, + enumerable: !0, + get: function() { + return this.data ? this.data : this.data = c.KT(this.Yxa); + } + }, + Yxa: { + configurable: !0, + enumerable: !0, + get: function() { + var a; + if (void 0 !== this.qK) return this.qK; + this.qK = this.location.search.substr(1); + a = this.qK.indexOf("#"); + 0 <= a && (this.qK = this.Yxa.substr(0, a)); + return this.qK; + } + } + }); + f = c = b; + f.Wfa = /[+]/g; + f = c = g.__decorate([a.N(), g.__param(0, a.l(k.Aea))], f); + d.dOa = f; + }, function(g, d, a) { + var c; + + function b() {} + Object.defineProperty(d, "__esModule", { + value: !0 + }); + g = a(0); + a = a(1); + b.prototype.S3 = function(a) { + var b; + b = this; + return a ? (a ^ 16 * Math.random() >> a / 4).toString(16) : "10000000-1000-4000-8000-100000000000".replace(/[018]/g, function(a) { + return b.S3(a); + }); + }; + c = b; + c = g.__decorate([a.N()], c); + d.rQa = c; + }, function(g, d, a) { + var c, h, k, f, p, m; + + function b(a, b) { + this.is = a; + this.json = b; + h.zk(this, "json"); + } + Object.defineProperty(d, "__esModule", { + value: !0 + }); + g = a(0); + h = a(51); + k = a(39); + f = a(1); + p = a(23); + m = a(136); + b.prototype.gya = function(a) { + var b; + b = this; + return c.read(a, function(a) { + return parseInt(a); + }, function(a) { + return b.is.g0(a); + }); + }; + b.prototype.i9 = function(a) { + var b; + b = this; + return c.read(a, function(a) { + return "true" == a ? !0 : "false" == a ? !1 : void 0; + }, function(a) { + return b.is.tB(a); + }); + }; + b.prototype.Ea = function(a) { + var b; + b = this; + return c.read(a, function(a) { + return parseInt(a); + }, function(a) { + return b.is.ap(a); + }); + }; + b.prototype.Lkb = function(a) { + var b; + b = this; + return c.read(a, function(a) { + return parseFloat(a); + }, function(a) { + return b.is.Af(a); + }); + }; + b.prototype.eya = function(a, b) { + return c.read(a, function(a) { + return c.b7a(a, b); + }, function(a) { + return void 0 !== a; + }); + }; + b.prototype.k9 = function(a, b) { + return c.read(a, function(a) { + return a; + }, function(a) { + return b ? b.test(a) : !0; + }); + }; + b.prototype.hya = function(a) { + var b, f; + b = void 0 === b ? function() { + return !0; + } : b; + f = this; + try { + return c.read(a, function(a) { + return f.json.parse(decodeURIComponent(a)); + }, function(a) { + return f.is.ux(a) && b(a); + }); + } catch (v) { + return new m.bm(); + } + }; + b.prototype.re = function(a, b, f) { + var d, g; + f = void 0 === f ? 1 : f; + d = this; + a = a.trim(); + g = b instanceof Function ? b : this.s2a(b, f); + b = a.indexOf("["); + f = a.lastIndexOf("]"); + if (0 != b || f != a.length - 1) return new m.bm(); + a = a.substring(b + 1, f); + try { + return c.pib(a).map(function(a) { + a = g(d, c.msb(a)); + if (a instanceof m.bm) throw a; + return a; + }); + } catch (w) { + return w instanceof m.bm ? w : new m.bm(); + } + }; + b.prototype.s2a = function(a, b) { + var f; + b = void 0 === b ? 1 : b; + f = this; + return function(d, g) { + d = c.V9a(a); + return 1 < b ? f.re(g, a, b - 1) : d(f, g); + }; + }; + b.b7a = function(a, b) { + var f; + for (var c in b) { + f = parseInt(c); + if (b[f] == a) return f; + } + }; + b.read = function(a, b, c) { + a = b(a); + return void 0 !== a && c(a) ? a : new m.bm(); + }; + b.V9a = function(a) { + switch (a) { + case "int": + return function(a, b) { + return a.gya(b); + }; + case "bool": + return function(a, b) { + return a.i9(b); + }; + case "uint": + return function(a, b) { + return a.Ea(b); + }; + case "float": + return function(a, b) { + return a.Lkb(b); + }; + case "string": + return function(a, b) { + return a.k9(b); + }; + case "object": + return function(a, b) { + return a.hya(b); + }; + } + }; + b.pib = function(a) { + var p; + for (var b = [ + ["[", "]"] + ], c = [], f = 0, d = 0, g = 0, k = [], h = {}; d < a.length; h = { + "char": h["char"] + }, ++d) { + h["char"] = a.charAt(d); + p = void 0; + "," == h["char"] && 0 == g ? (c.push(a.substr(f, d - f)), f = d + 1) : (p = b.find(function(a) { + return function(b) { + return b[0] == a["char"]; + }; + }(h))) ? (++g, k.push(p)) : 0 < k.length && k[k.length - 1][1] == h["char"] && (--g, k.pop()); + } + if (f != d) c.push(a.substr(f, d - f)); + else if (f == d && 0 < f) throw new m.bm(); + return c; + }; + b.msb = function(a) { + var b; + b = a.charAt(0); + if ('"' == b || "'" == b) { + if (a.charAt(a.length - 1) != b) throw new m.bm(); + return a.substring(1, a.length - 1); + } + return a; + }; + a = c = b; + a = c = g.__decorate([f.N(), g.__param(0, f.l(p.ve)), g.__param(1, f.l(k.Ys))], a); + d.vPa = a; + }, function(g, d, a) { + var b, c, h, k, f, p, m, r, l, x; + Object.defineProperty(d, "__esModule", { + value: !0 + }); + g = a(1); + b = a(585); + c = a(584); + h = a(583); + k = a(136); + f = a(461); + p = a(210); + m = a(582); + r = a(581); + l = a(303); + x = a(580); + d.Hd = new g.Vb(function(a) { + a(k.IY).to(b.vPa).$(); + a(f.xY).to(h.dOa).$(); + a(p.RY).to(c.rQa).$(); + a(m.tLa).to(r.sLa).$(); + a(l.gia).to(x.FQa).$(); + }); + }, function(g, d, a) { + var c, h; + + function b(a) { + this.Agb = a; + } + Object.defineProperty(d, "__esModule", { + value: !0 + }); + g = a(0); + c = a(304); + a = a(1); + b.prototype.kra = function() { + var a; + a = this.Agb.getDeviceId(); + return new Promise(function(b, c) { + a.oncomplete = function() { + b(a.result); + }; + a.onerror = function() { + c(a.error); + }; + }); + }; + h = b; + h = g.__decorate([a.N(), g.__param(0, a.l(c.wfa))], h); + d.$Ea = h; + }, function(g, d, a) { + var b, c, h, k, f; + Object.defineProperty(d, "__esModule", { + value: !0 + }); + g = a(1); + b = a(304); + c = a(336); + h = a(337); + k = a(587); + f = a(6); + d.crypto = new g.Vb(function(a) { + a(h.sca).to(k.$Ea).$(); + a(b.wfa).Ig(f.ht); + a(c.tca).Ig(f.aY); + }); + }, function(g, d, a) { + var c, h, k, f, p, m, r; + + function b(a, b, c) { + var f; + f = m.mN.call(this, a, b, "network") || this; + f.rQ = c; + f.FQ = p.BW.gKa; + f.Qeb = 30; + f.Phb = function(a) { + f.FQ = a.target.value; + f.refresh(); + }; + f.thb = function() { + f.data = {}; + f.refresh(); + }; + f.gza = function(a) { + a = JSON.stringify(f.data[f.FQ][Number(a.target.id)].value, null, 4); + f.foa(a); + }; + return f; + } + Object.defineProperty(d, "__esModule", { + value: !0 + }); + g = a(0); + c = a(1); + h = a(22); + k = a(23); + f = a(69); + p = a(148); + m = a(307); + r = a(106); + ia(b, m.mN); + b.prototype.Ac = function() { + var a; + a = this; + if (this.Nm) return Promise.resolve(); + A.addEventListener("keydown", function(b) { + b.ctrlKey && b.altKey && b.shiftKey && b.keyCode == r.Zs.TKa && a.toggle(); + }); + this.data = {}; + this.rQ.addListener(p.Gca.Tyb, function(b) { + var c; + a.data[b.type] || (a.data[b.type] = []); + c = a.data[b.type]; + c.length === a.Qeb && c.shift(); + c.push(b); + b.type === a.FQ && a.refresh(); + }); + this.Nm = !0; + return Promise.resolve(); + }; + b.prototype.m4 = function() { + return '' + ('#') + ('Name') + ('Value') + ('') + ""; + }; + b.prototype.H4 = function(a, b, c) { + var f; + f = a.toString(); + b = '"' + b + '"'; + c = this.cna.Fn(c); + return "" + ('' + f + "") + ('' + b + "") + ('
    ' + c + "
") + ('
') + ""; + }; + b.prototype.P4 = function() { + for (var a = '' + this.m4(), b = this.data[this.FQ], c = 0; c < b.length; ++c) a += this.H4(c, b[c].name, b[c].value); + return a + "
"; + }; + b.prototype.ira = function() { + var a; + a = this.mc.createElement("button", m.UE, "Clear", { + "class": this.prefix + "-display-btn" + }); + a.onclick = this.thb; + return [a, this.C2a(), this.v2a()]; + }; + b.prototype.C2a = function() { + var a; + a = this.mc.createElement("select", m.UE, Object.keys(p.BW).reduce(function(a, b) { + b = p.BW[b]; + return a + ('"); + }, ""), { + "class": this.prefix + "-display-select" + }); + a.onchange = this.Phb; + return a; + }; + b.prototype.v2a = function() { + var a, b, c, f; + a = this; + b = this.mc.createElement("input", "margin:3px;", void 0, { + id: "preventRefresh", + type: "checkbox", + title: "PreventRefresh" + }); + b.checked = this.lK; + b.onchange = function() { + return a.Gqb(); + }; + c = this.mc.createElement("label", void 0, "Prevent Refresh", { + "for": "preventRefresh" + }); + f = this.mc.createElement("div", void 0, void 0, { + "class": this.prefix + "-display-div" + }); + f.appendChild(b); + f.appendChild(c); + return f; + }; + b.prototype.vya = function() { + return Promise.resolve(this.P4()); + }; + a = b; + a = g.__decorate([c.N(), g.__param(0, c.l(h.Je)), g.__param(1, c.l(k.ve)), g.__param(2, c.l(f.XE))], a); + d.Uxb = a; + }, function(g, d, a) { + var k, f, p, m, r, l, x, v, n, w, q, z, E, P; + + function b(a, b, c, f, d, g, k, m, p) { + var r; + r = this; + this.Ma = a; + this.app = b; + this.mc = c; + this.ia = f; + this.kj = d; + this.config = g; + this.Gr = k; + this.eqb = m; + this.tf = p; + this.fqb = function() { + r.TBa.nb(function() { + r.update(); + }); + }; + this.clear = function() { + r.entries = []; + r.update(); + }; + this.Jva = function() { + r.dd.VC = !r.dd.VC; + r.cv && r.fv && (r.dd.VC ? (r.cv.style.display = "inline-block", r.fv.style.display = "none") : (r.fv.style.display = "inline-block", r.cv.style.display = "none")); + r.uz(!1); + }; + this.meb = function(a) { + var b; + r.entries.push(a); + b = r.config.eD; + 0 <= b && r.entries.length > b && r.entries.shift(); + void 0 === r.dd.yr[a.Cm] && (r.dd.yr[a.Cm] = !0, r.uz(!1)); + r.dd.Gl && !r.bBa ? r.fqb() : r.TBa.nb(); + }; + this.w4a = function() { + h.download("all", r.entries.map(function(a) { + return a.uL(!1, !1); + }))["catch"](function(a) { + console.error("Unable to download all logs to the file", a); + }); + }; + this.Nm = !1; + this.dd = { + Gl: !1, + VC: !0, + EQ: !0, + K6: n.Oh.EX, + yr: {} + }; + this.TBa = this.eqb(l.hh(1)); + this.entries = []; + } + + function c(a) { + var b; + this.elements = []; + b = document.createElementNS(c.kL, "svg"); + b.setAttribute("viewBox", a); + this.elements.push(b); + } + + function h() {} + Object.defineProperty(d, "__esModule", { + value: !0 + }); + g = a(0); + k = a(1); + f = a(22); + p = a(85); + m = a(30); + r = a(37); + l = a(4); + x = a(24); + v = a(73); + n = a(7); + w = a(84); + q = a(145); + z = a(305); + E = a(53); + P = a(106); + h.download = function(a, b) { + return h.e9a(a).then(function(a) { + return h.R$a(a, b.join("\r\n")).then(function(a) { + return h.v4a(a.filename, a.text); + }); + }); + }; + h.e9a = function(a) { + return new Promise(function(b, c) { + var f, d, g, k, h, m, p; + try { + f = new Date(); + d = f.getDate().toString(); + g = (f.getMonth() + 1).toString(); + k = f.getFullYear().toString(); + h = f.getHours().toString(); + m = f.getMinutes().toString(); + p = f.getSeconds().toString(); + 1 === d.length && (d = "0" + d); + 1 === g.length && (g = "0" + g); + 1 === h.length && (h = "0" + h); + 1 === m.length && (m = "0" + m); + 1 === p.length && (p = "0" + p); + b(k + g + d + h + m + p + "." + a + ".log"); + } catch (X) { + c(X); + } + }); + }; + h.R$a = function(a, b) { + return new Promise(function(c, f) { + try { + c({ + filename: a, + text: URL.createObjectURL(new Blob([b], { + type: "text/plain" + })) + }); + } catch (Y) { + f(Y); + } + }); + }; + h.v4a = function(a, b) { + var c; + try { + c = document.createElement("a"); + c.setAttribute("href", b); + c.setAttribute("download", a); + c.style.display = "none"; + document.body.appendChild(c); + c.click(); + document.body.removeChild(c); + return Promise.resolve(); + } catch (O) { + return Promise.reject(O); + } + }; + c.prototype.oE = function() { + var a; + a = document.createElementNS(c.kL, "g"); + a.setAttribute("stroke", "none"); + a.setAttribute("stroke-width", 1..toString()); + a.setAttribute("fill", "none"); + a.setAttribute("fill-rule", "evenodd"); + a.setAttribute("stroke-linecap", "round"); + this.addElement(a); + return this; + }; + c.prototype.pE = function(a, b, f) { + var d; + d = document.createElementNS(c.kL, "path"); + d.setAttribute("d", a); + b && d.setAttribute("fill", b); + f && d.setAttribute("fill-rule", f); + this.addElement(d); + return this; + }; + c.prototype.ZK = function(a, b, f, d, g) { + var k; + g = void 0 === g ? "#000000" : g; + k = document.createElementNS(c.kL, "rect"); + k.setAttribute("x", a.toString()); + k.setAttribute("y", b.toString()); + k.setAttribute("height", f.toString()); + k.setAttribute("width", d.toString()); + g && k.setAttribute("fill", g); + this.addElement(k); + return this; + }; + c.prototype.Vob = function() { + var a; + a = document.createElementNS(c.kL, "polygon"); + a.setAttribute("points", "0 0 24 0 24 24 0 24"); + a.setAttribute("transform", "translate(12.000000, 12.000000) scale(-1, 1) translate(-12.000000, -12.000000)"); + this.addElement(a); + return this; + }; + c.prototype.end = function() { + this.elements.pop(); + return this; + }; + c.prototype.Fn = function() { + if (1 < this.elements.length) throw new RangeError("Some item wasn't terminated correctly"); + if (0 === this.elements.length) throw new RangeError("Too many items were terminated"); + return this.elements[0]; + }; + c.prototype.addElement = function(a) { + if (0 === this.elements.length) throw new RangeError("Too many items were terminated"); + this.elements[this.elements.length - 1].appendChild(a); + this.elements.push(a); + }; + na.Object.defineProperties(c, { + background: { + configurable: !0, + enumerable: !0, + get: function() { + return "transparent"; + } + }, + Kx: { + configurable: !0, + enumerable: !0, + get: function() { + return "#000000"; + } + } + }); + c.kL = "http://www.w3.org/2000/svg"; + b.prototype.Ac = function() { + var a; + a = this; + this.ah || (this.ah = new Promise(function(b) { + A.addEventListener("keydown", function(b) { + b.ctrlKey && b.altKey && b.shiftKey && b.keyCode == P.Zs.eJa && a.toggle(); + }); + a.kj.SD(q.gA.DFa, a.meb); + b(); + })); + return this.ah; + }; + b.prototype.show = function() { + document.body && (this.element || (this.b2a(), this.Nm = !0), !this.dd.Gl && this.element && (document.body.appendChild(this.element), this.dd.Gl = !0, this.update(!0))); + }; + b.prototype.ey = function() { + this.Nm && this.dd.Gl && this.element && (document.body.removeChild(this.element), this.dd.Gl = !1); + }; + b.prototype.toggle = function() { + this.dd.Gl ? this.ey() : this.show(); + this.uz(!1); + }; + b.prototype.b2a = function() { + var a, b; + try { + a = this.createElement("DIV", "position:fixed;left:10px;top:30px;right:10px;z-index:10000;color:#000;bottom:10px;", void 0, { + "class": "player-log" + }); + b = this.createElement("style"); + b.type = "text/css"; + b.appendChild(document.createTextNode("button:focus { outline: none; }")); + a.appendChild(b); + a.appendChild(this.Pv = this.A2a()); + a.appendChild(this.B2a()); + a.appendChild(this.X1a()); + this.element = a; + } catch (N) { + console.error("Unable to create the log console", N); + } + }; + b.prototype.A2a = function() { + var a, b; + a = this; + b = this.createElement("TEXTAREA", "position:absolute;resize:none;box-sizing:border-box;width:100%;height:100%;margin:0;color:#040;font-size:11px;font-family:monospace;overflow:scroll;background-color:rgba(255,255,255,0.6)"); + b.setAttribute("wrap", "off"); + b.setAttribute("readonly", "readonly"); + b.addEventListener("focus", function() { + a.bBa = !0; + a.update(); + a.Pv && (a.Pv.style.cssText = "position:absolute;resize:none;box-sizing:border-box;width:100%;height:100%;margin:0;color:#040;font-size:11px;font-family:monospace;overflow:scroll;background-color:rgba(255,255,255,0.86)"); + }); + b.addEventListener("blur", function() { + a.bBa = !1; + a.update(); + a.Pv && (a.Pv.style.cssText = "position:absolute;resize:none;box-sizing:border-box;width:100%;height:100%;margin:0;color:#040;font-size:11px;font-family:monospace;overflow:scroll;background-color:rgba(255,255,255,0.6)"); + }); + return b; + }; + b.prototype.B2a = function() { + var a; + a = this.createElement("DIV", "float:right;opacity:0.8;background-color:white;display:flex;align-items:center;font-size:small;font-family:sans-serif"); + a.appendChild(this.n2a()); + a.appendChild(this.i2a()); + a.appendChild(this.e2a()); + a.appendChild(this.D2a()); + a.appendChild(this.$1a()); + a.appendChild(this.r2a()); + a.appendChild(this.q2a()); + a.appendChild(this.g2a()); + a.appendChild(this.a2a()); + return a; + }; + b.prototype.X1a = function() { + var a, b, c, f, d, g; + a = this; + b = this.createElement("DIV", "float:right;opacity:0.8;background-color:white;font-size:small;font-family:sans-serif"); + c = this.createElement("DIV", "padding:2px"); + f = this.createElement("SELECT", this.sp(22, 160, 1, 2), ""); + d = this.createElement("DIV", "height:500px;overflow-y:auto;display:none;border:1px #dadada solid"); + b.appendChild(c); + b.appendChild(d); + c.appendChild(f); + c.addEventListener("mousedown", function(a) { + a.preventDefault(); + }); + g = !1; + c.addEventListener("click", function() { + g ? d.style.display = "none" : (d.innerHTML = "", ["all", "none"].concat(Object.keys(a.dd.yr).sort()).forEach(function(b) { + d.appendChild(a.Y1a(b, c)); + }), d.style.display = "block"); + g = !g; + }); + return b; + }; + b.prototype.Y1a = function(a, b) { + var c, f, d; + c = this; + f = this.createElement("LABEL", "display: block;margin:1px"); + f.htmlFor = a; + d = this.createElement("INPUT", "margin:1px"); + d.type = "checkbox"; + d.id = a; + d.checked = this.dd.yr[a]; + d.addEventListener("click", function() { + "all" === a || "none" === a ? (Object.keys(c.dd.yr).forEach(function(b) { + c.dd.yr[b] = "all" === a; + }), b.click()) : c.dd.yr[a] = !c.dd.yr[a]; + c.uz(!0); + }); + f.appendChild(d); + f.insertAdjacentText("beforeend", 18 < a.length ? a.slice(0, 15) + "..." : a); + return f; + }; + b.prototype.n2a = function() { + var a, b; + a = this; + b = this.createElement("SELECT", this.sp(22, NaN, 1, 2), '' + ('') + ('') + ('') + ('')); + b.value = this.dd.K6.toString(); + b.addEventListener("change", function(b) { + a.dd.K6 = parseInt(b.target.value); + a.uz(!0); + }, !1); + return b; + }; + b.prototype.i2a = function() { + var b, c; + + function a(a) { + a = a.target.value; + b.dd.filter = a ? new RegExp(a) : void 0; + b.uz(!0); + } + b = this; + c = this.createElement("INPUT", this.sp(14, 150, 1, 2)); + c.value = this.dd.filter ? this.dd.filter.source : ""; + c.title = "Filter (RegEx)"; + c.placeholder = "Filter (RegEx)"; + c.addEventListener("keydown", a, !1); + c.addEventListener("change", a, !1); + return c; + }; + b.prototype.e2a = function() { + var a, b, c, f; + a = this; + b = this.createElement("div", this.sp(NaN, NaN)); + c = this.createElement("INPUT", "vertical-align: middle;margin: 0px 2px 0px 0px;"); + c.id = "details"; + c.type = "checkbox"; + c.title = "Details"; + c.checked = this.dd.EQ; + c.addEventListener("change", function(b) { + a.dd.EQ = b.target.checked; + a.uz(!0); + }, !1); + f = this.createElement("label", "vertical-align: middle;margin: 0px 0px 0px 2px;"); + f.setAttribute("for", "details"); + f.innerHTML = "View details"; + b.appendChild(c); + b.appendChild(f); + return b; + }; + b.prototype.D2a = function() { + var a, b, f; + a = this; + b = this.createElement("BUTTON", this.sp()); + f = new c("0 0 24 24").oE().Vob().end().pE("M20,12.3279071 L21.9187618,10.9573629 L23.0812382,12.5848299 L19,15.5 L14.9187618,12.5848299 L16.0812382,10.9573629 L18,12.3279071 L18,12 C18,8.13 14.87,5 11,5 C7.13,5 4,8.13 4,12 C4,15.87 7.13,19 11,19 C12.93,19 14.68,18.21 15.94,16.94 L17.36,18.36 C15.73,19.99 13.49,21 11,21 C6.03,21 2,16.97 2,12 C2,7.03 6.03,3 11,3 C15.97,3 20,7.03 20,12 L20,12.3279071 Z", c.Kx, "nonzero").end().end().Fn(); + b.appendChild(f); + b.addEventListener("click", function() { + a.update(); + }, !1); + b.setAttribute("title", "Refresh the log console"); + return b; + }; + b.prototype.$1a = function() { + var a, b; + a = this.createElement("BUTTON", this.sp()); + b = new c("0 0 24 24").oE().ZK(0, 0, 24, 24, c.background).end().pE("M19,4 L15.5,4 L14.5,3 L9.5,3 L8.5,4 L5,4 L5,6 L19,6 L19,4 Z M6,19 C6,20.1 6.9,21 8,21 L16,21 C17.1,21 18,20.1 18,19 L18,7 L6,7 L6,19 Z", c.Kx).end().end().Fn(); + a.appendChild(b); + a.addEventListener("click", this.clear, !1); + a.setAttribute("title", "Remove all log messages"); + return a; + }; + b.prototype.r2a = function() { + var a; + this.fv = this.createElement("BUTTON", this.sp()); + this.fv.style.display = this.dd.VC ? "none" : "inline-block"; + a = new c("0 0 24 24").oE().ZK(0, 0, 24, 24, c.background).end().pE("M3,3 L21,3 L21,21 L3,21 L3,3 Z M5,5 L5,19 L19,19 L19,5 L5,5 Z M6,6 L18,6 L18,12 L6,12 L6,6 Z", c.Kx, "nonzero").end().end().Fn(); + this.fv.addEventListener("click", this.Jva, !1); + this.fv.appendChild(a); + this.fv.setAttribute("title", "Shrink the log console"); + return this.fv; + }; + b.prototype.q2a = function() { + var a; + this.cv = this.createElement("BUTTON", this.sp()); + this.cv.style.display = this.dd.VC ? "inline-block" : "none"; + a = new c("0 0 24 24").oE().ZK(4, 4, 16, 16, c.background).end().pE("M5,5 L5,19 L19,19 L19,5 L5,5 Z M3,3 L21,3 L21,21 L3,21 L3,3 Z", c.Kx, "nonzero").end().end().Fn(); + this.cv.addEventListener("click", this.Jva, !1); + this.cv.appendChild(a); + this.cv.setAttribute("title", "Expand the log console"); + return this.cv; + }; + b.prototype.g2a = function() { + var a, b; + a = this.createElement("BUTTON", this.sp()); + b = new c("0 0 26 26").oE().ZK(0, 0, 24, 24, c.background).end().pE("M20,20 L20,22 L4,22 L4,20 L20,20 Z M7.8,12.85 L12,16 L16.2,12.85 L17.4,14.45 L12,18.5 L6.6,14.45 L7.8,12.85 Z M7.8,7.85 L12,11 L16.2,7.85 L17.4,9.45 L12,13.5 L6.6,9.45 L7.8,7.85 Z M7.8,2.85 L12,6 L16.2,2.85 L17.4,4.45 L12,8.5 L6.6,4.45 L7.8,2.85 Z", c.Kx, "nonzero").end().end().Fn(); + a.appendChild(b); + a.addEventListener("click", this.w4a, !1); + a.setAttribute("title", "Download all log messages"); + return a; + }; + b.prototype.a2a = function() { + var a, b, f; + a = this; + b = this.createElement("BUTTON", this.sp()); + f = new c("0 0 24 24").oE().ZK(0, 0, 24, 24, c.background).end().pE("M12,10.5857864 L19.2928932,3.29289322 L20.7071068,4.70710678 L13.4142136,12 L20.7071068,19.2928932 L19.2928932,20.7071068 L12,13.4142136 L4.70710678,20.7071068 L3.29289322,19.2928932 L10.5857864,12 L3.29289322,4.70710678 L4.70710678,3.29289322 L12,10.5857864 Z", c.Kx, "nonzero").end().end().Fn(); + b.appendChild(f); + b.addEventListener("click", function() { + a.ey(); + }, !1); + b.setAttribute("title", "Close the log console"); + return b; + }; + b.prototype.uz = function(a) { + (void 0 === a ? 0 : a) && this.update(!1); + }; + b.prototype.update = function(a) { + var b; + a = void 0 === a ? !1 : a; + b = this; + this.element && this.config.yK && Promise.resolve(this.jZa() + this.f9a().join("\r\n")).then(function(c) { + b.element && b.Pv && (b.Pv.value = c, b.element.style.cssText = b.dd.VC ? "position:fixed;left:10px;top:30px;right:10px;z-index:10000;color:#000;height:30%;" : "position:fixed;left:10px;top:30px;right:10px;z-index:10000;color:#000;bottom:10px;", a && b.ia.Nf(l.Sf, function() { + b.Pv.scrollTop = b.Pv.scrollHeight; + })); + })["catch"](function(a) { + console.error("Unable to update the log console", a); + }); + }; + b.prototype.f9a = function() { + var a, b; + a = this; + b = []; + this.entries.forEach(function(c) { + (c.level || c.level) <= a.dd.K6 && a.dd.yr[c.Cm] && (c = c.uL(!a.dd.EQ, !a.dd.EQ), a.dd.filter && !a.dd.filter.test(c) || b.push(c)); + }); + return b; + }; + b.prototype.jZa = function() { + var a; + a = this.Gr(); + return "Version: 6.0015.328.011 \n" + ((a ? "Esn: " + a.Df : "") + "\n") + ("JsSid: " + this.app.id + ", Epoch: " + this.Ma.eg.ma(l.em) + ", Start: " + this.app.bD.ma(l.em) + ", TimeZone: " + new Date().getTimezoneOffset() + "\n") + ("Href: " + location.href + "\n") + ("UserAgent: " + navigator.userAgent + "\n") + "--------------------------------------------------------------------------------\n"; + }; + b.prototype.createElement = function(a, b, c, f) { + return this.mc.createElement(a, b, c, f); + }; + b.prototype.sp = function(a, b, f, d) { + a = void 0 === a ? 26 : a; + b = void 0 === b ? 26 : b; + return "display:inline-block;border:" + (void 0 === f ? 0 : f) + "px solid " + c.Kx + ";padding:3px;" + (isNaN(a) ? "" : "height:" + a + "px") + ";" + (isNaN(b) ? "" : "width:" + b + "px") + ";margin:0px 3px;background-color:transparent;" + (d ? "border-radius:" + d + "px;" : ""); + }; + a = b; + a.npb = "logDxDisplay"; + a = g.__decorate([k.N(), g.__param(0, k.l(r.yi)), g.__param(1, k.l(x.Ue)), g.__param(2, k.l(f.Je)), g.__param(3, k.l(m.Xf)), g.__param(4, k.l(w.lw)), g.__param(5, k.l(z.Cea)), g.__param(6, k.l(v.oq)), g.__param(7, k.l(p.Ew)), g.__param(8, k.l(E.Xl))], a); + d.uJa = a; + }, function(g, d, a) { + var c, h, k, f, p; + + function b(a, b) { + a = k.Yd.call(this, a, "LogDisplayConfigImpl") || this; + a.wu = b; + return a; + } + Object.defineProperty(d, "__esModule", { + value: !0 + }); + g = a(0); + c = a(1); + h = a(35); + k = a(38); + f = a(26); + a = a(168); + ia(b, k.Yd); + na.Object.defineProperties(b.prototype, { + yK: { + configurable: !0, + enumerable: !0, + get: function() { + return !0; + } + }, + eD: { + configurable: !0, + enumerable: !0, + get: function() { + return this.wu.eD; + } + }, + tua: { + configurable: !0, + enumerable: !0, + get: function() { + return -1; + } + } + }); + p = b; + g.__decorate([h.config(h.le, "renderDomDiagnostics")], p.prototype, "yK", null); + g.__decorate([h.config(h.O5, "logDisplayMaxEntryCount")], p.prototype, "eD", null); + g.__decorate([h.config(h.O5, "logDisplayAutoshowLevel")], p.prototype, "tua", null); + p = g.__decorate([c.N(), g.__param(0, c.l(f.Fi)), g.__param(1, c.l(a.gN))], p); + d.tJa = p; + }, function(g, d, a) { + var c, h; + + function b() { + this.c$ = ""; + this.rCa = [ + [], + [] + ]; + this.Y = [ + [], + [] + ]; + } + Object.defineProperty(d, "__esModule", { + value: !0 + }); + g = a(0); + c = a(1); + a(4); + h = a(83); + b.prototype.downloadRequest = function(a) { + var b; + "" === this.c$ && (this.c$ = a.Ym); + if (!a.Bc) { + b = this.Aqb(a); + this.Y[a.P].push(b); + this.rCa[a.P].forEach(function(a) { + a.uBb(b); + }); + } + }; + b.prototype.Aqb = function(a) { + return { + id: this.o9a(a), + Ym: a.Ym, + P: a.P, + Jn: a.Jn, + startTime: a.rs, + endTime: a.PD, + offset: a.Kk, + iH: a.iH, + hH: a.hH, + duration: a.Jr, + O: a.O, + state: h.Fba.spa, + na: a.na, + XT: !1, + mFb: !1, + ssa: !1, + yDb: h.Dba.waiting + }; + }; + b.prototype.o9a = function(a) { + return a.Vi(); + }; + b.prototype.update = function(a) { + this.rCa[a.P].forEach(function(b) { + b.XIb(a); + }); + }; + na.Object.defineProperties(b.prototype, { + Ym: { + configurable: !0, + enumerable: !0, + get: function() { + return this.c$; + } + } + }); + a = b; + a = g.__decorate([c.N()], a); + d.jDa = a; + }, function(g, d, a) { + var c, h; + + function b(a) { + this.q4a = a; + } + Object.defineProperty(d, "__esModule", { + value: !0 + }); + g = a(0); + c = a(1); + a = a(308); + b.prototype.Ac = function() { + var a; + a = this; + this.ah || (this.ah = new Promise(function(b, c) { + var f; + f = []; + a.q4a.forEach(function(a) { + f.push(a.Ac()); + }); + Promise.all(f).then(function() { + b(); + })["catch"](function(a) { + c(a); + }); + })); + return this.ah; + }; + h = b; + h = g.__decorate([c.N(), g.__param(0, c.Iy(a.Rca))], h); + d.IGa = h; + }, function(g, d) { + function a(a) { + this.is = a; + this.Pcb = "#881391"; + this.upb = "#C41A16"; + this.WYa = this.Ygb = "#1C00CF"; + this.Ybb = "#D79BDB"; + this.xrb = this.Wgb = "#808080"; + } + Object.defineProperty(d, "__esModule", { + value: !0 + }); + a.prototype.Fn = function(a) { + return this.getValue("~~NONAME~~", a); + }; + a.prototype.Lu = function(a, c) { + return '' + a + ": "; + }; + a.prototype.Tqa = function(a, c) { + c = c || ""; + a = "" + ('
  • ' + this.Lu(a) + "Array[" + c.length + "]"); + a += "
      "; + for (var b = 0; b < c.length; ++b) a += this.getValue(b.toString(), c[b]); + a += this.getValue("length", c.length, !0); + return a + "
  • "; + }; + a.prototype.Ira = function(a, c) { + var b, d, f; + b = this; + if (c instanceof CryptoKey) return this.C8a(a, c); + d = Object.keys(c); + f = ""; + f = f + ('
  • ' + ("~~NONAME~~" !== a ? this.Lu(a) : "") + "Object"); + f = f + "
      "; + d.forEach(function(a) { + f = a.startsWith("$") ? f + b.getValue(a, "REMOVED") : f + b.getValue(a, c[a]); + }); + f += "
    "; + return f += "
  • "; + }; + a.prototype.C8a = function(a, c) { + a = "" + ('
  • ' + this.Lu(a) + "CryptoKey"); + a = a + "
      " + this.Ira("algorithm", c.algorithm); + a += this.Zqa("extractable", c.extractable); + a += this.Yra("type", c.type); + a += this.Tqa("usages", c.usages); + return a + "
  • "; + }; + a.prototype.T9a = function(a, c, d) { + return '
  • ' + this.Lu(a, void 0 === d ? !1 : d) + ('' + c.toString() + "") + "
  • "; + }; + a.prototype.Zqa = function(a, c, d) { + return '
  • ' + this.Lu(a, void 0 === d ? !1 : d) + ('' + c.toString() + "") + "
  • "; + }; + a.prototype.Yra = function(a, c, d) { + 128 < c.length && (c = c.substr(0, 128) + "..."); + return '
  • ' + this.Lu(a, void 0 === d ? !1 : d) + ('"' + c + '"') + "
  • "; + }; + a.prototype.S9a = function(a) { + return '
  • ' + this.Lu(a) + ('null') + "
  • "; + }; + a.prototype.dab = function(a, c) { + c = "undefined" === typeof c ? "" : c.toString(); + 255 < c.length && (c = c.substr(0, 255) + "..."); + return '
  • ' + this.Lu(a) + ('' + c + "") + "
  • "; + }; + a.prototype.getValue = function(a, c, d) { + d = void 0 === d ? !1 : d; + return null === c ? "" + this.S9a(a) : this.is.Zt(c) ? "" + this.Tqa(a, c) : this.is.ux(c) ? "" + this.Ira(a, c) : this.is.uh(c) ? "" + this.Yra(a, c, d) : this.is.Af(c) ? "" + this.T9a(a, c, d) : this.is.tB(c) ? "" + this.Zqa(a, c, d) : "" + this.dab(a, c); + }; + d.aQa = a; + }, function(g, d, a) { + var c, h, k, f, p, m; + + function b(a, b, c) { + var f; + f = p.mN.call(this, a, b, "idb") || this; + f.tf = c; + f.gza = function(a) { + f.M3a(a.target.id).then(function() { + return f.refresh(); + }); + }; + f.uhb = function() { + f.x_a().then(function() { + return f.refresh(); + }); + }; + f.Ghb = function() { + f.refresh(); + }; + f.xhb = function() { + f.p0a(); + }; + return f; + } + Object.defineProperty(d, "__esModule", { + value: !0 + }); + g = a(0); + c = a(1); + h = a(22); + k = a(23); + f = a(159); + p = a(307); + m = a(106); + ia(b, p.mN); + b.prototype.Ac = function() { + var a; + a = this; + if (this.Nm) return Promise.resolve(); + A.addEventListener("keydown", function(b) { + b.ctrlKey && b.altKey && b.shiftKey && b.keyCode == m.Zs.VHa && a.toggle(); + }); + return this.tf.create().then(function(b) { + a.storage = b; + a.Nm = !0; + }); + }; + b.prototype.m4 = function() { + return '' + ('#') + ('Name') + ('Value') + ('') + ""; + }; + b.prototype.H4 = function(a, b, c) { + var f; + a = a.toString(); + f = '"' + b + '"'; + c = this.cna.Fn({ + name: b, + data: c + }); + return "" + ('' + a + "") + ('' + f + "") + ('
      ' + c + "
    ") + ('
    ') + ""; + }; + b.prototype.P4 = function(a) { + for (var b = '' + this.m4(), c = Object.keys(a), f = 0; f < c.length; ++f) b += this.H4(f, c[f], a[c[f]]); + return b + "
    "; + }; + b.prototype.ira = function() { + var a, b, c; + a = this.mc.createElement("button", p.UE, "Clear", { + "class": this.prefix + "-display-btn" + }); + b = this.mc.createElement("button", p.UE, "Refresh", { + "class": this.prefix + "-display-btn" + }); + c = this.mc.createElement("button", p.UE, "Copy", { + "class": this.prefix + "-display-btn" + }); + a.onclick = this.uhb; + b.onclick = this.Ghb; + c.onclick = this.xhb; + return [a, b, c]; + }; + b.prototype.Ldb = function() { + var a; + a = this; + return this.storage.loadAll().then(function(b) { + a.Osa = b.reduce(function(a, b) { + a[b.key] = b.value; + return a; + }, {}); + return a.Osa; + }); + }; + b.prototype.M3a = function(a) { + return this.storage.remove(a); + }; + b.prototype.x_a = function() { + return this.storage.removeAll(); + }; + b.prototype.vya = function() { + var a; + a = this; + return this.Ldb().then(function(b) { + return a.P4(b); + }); + }; + b.prototype.p0a = function() { + var a; + a = JSON.stringify(this.Osa, null, 4); + this.foa(a); + }; + a = b; + a = g.__decorate([c.N(), g.__param(0, c.l(h.Je)), g.__param(1, c.l(k.ve)), g.__param(2, c.l(f.HX))], a); + d.Iwb = a; + }, function(g, d, a) { + var c, h, k, f, p, m, r, l; + + function b(a) { + return function() { + return new Promise(function(b, c) { + var f; + f = a.Xb.get(h.Tca); + f.Ac().then(function() { + b(f); + })["catch"](function(a) { + c(a); + }); + }); + }; + } + Object.defineProperty(d, "__esModule", { + value: !0 + }); + g = a(1); + c = a(308); + a(595); + h = a(306); + k = a(593); + f = a(83); + p = a(592); + m = a(305); + r = a(591); + l = a(590); + a(589); + d.Z4a = new g.Vb(function(a) { + a(m.Cea).to(r.tJa).$(); + a(c.Rca).to(l.uJa); + a(f.ZV).to(p.jDa).$(); + a(h.Tca).to(k.IGa).$(); + a(h.Sca).vL(b); + }); + }, function(g, d, a) { + var k, f, p, m; + + function b() {} + + function c(a) { + this.Iib = a; + } + + function h(a) { + this.Kib = a; + } + Object.defineProperty(d, "__esModule", { + value: !0 + }); + g = a(0); + k = a(1); + f = a(183); + p = a(45); + m = a(2); + h.prototype.Eo = function(a) { + a.map(this.Kib.Eo); + }; + a = h; + a = g.__decorate([k.N(), g.__param(0, k.l(f.oga))], a); + d.kNa = a; + c.prototype.Eo = function(a) { + this.Iib.Eo(a.data); + }; + a = c; + a = g.__decorate([k.N(), g.__param(0, k.l(f.lga))], a); + d.lNa = a; + b.prototype.Eo = function(a) { + if (!a.ka || "string" !== typeof a.ka) throw new p.Ub(m.I.Ws, m.H.Ps, void 0, void 0, void 0, "Xid value is corrupted.", void 0, a.ka); + }; + f = b; + f = g.__decorate([k.N()], f); + d.oNa = f; + }, function(g, d, a) { + var c, h, k, f; + + function b(a, b, c) { + this.pH = b; + this.er = c; + this.log = a.lb("PboEventSenderImpl"); + } + Object.defineProperty(d, "__esModule", { + value: !0 + }); + g = a(0); + c = a(65); + h = a(62); + k = a(7); + a = a(1); + b.prototype.n$ = function(a, b) { + var c; + c = this.pH(h.Nh.start); + return this.$pa(c, a, b); + }; + b.prototype.Lza = function(a) { + var b, c; + b = this; + c = this.pH(h.Nh.stop); + return this.er().then(function(f) { + return c.Cg(b.log, f.Nu(a.profileId), a); + }).then(function() {})["catch"](function(a) { + b.log.error("PBO stop event failed", a); + throw a; + }); + }; + b.prototype.NK = function(a, b, c) { + a = this.pH(a); + return this.$pa(a, b, c); + }; + b.prototype.$pa = function(a, b, c) { + var f; + f = this; + return this.er().then(function(d) { + return a.op(f.log, d.Nu(c.profileId), b.Fa.sy, c); + }).then(function() {})["catch"](function(a) { + f.log.error("PBO event failed", a); + throw a; + }); + }; + f = b; + f = g.__decorate([a.N(), g.__param(0, a.l(k.sb)), g.__param(1, a.l(h.OW)), g.__param(2, a.l(c.lq))], f); + d.dNa = f; + }, function(g, d, a) { + var c, h, k, f, p, m; + + function b(a, b) { + a = h.Yd.call(this, a, "PlaydataConfigImpl") || this; + a.config = b; + return a; + } + Object.defineProperty(d, "__esModule", { + value: !0 + }); + g = a(0); + c = a(1); + h = a(38); + k = a(26); + f = a(35); + p = a(4); + a = a(52); + ia(b, h.Yd); + na.Object.defineProperties(b.prototype, { + FD: { + configurable: !0, + enumerable: !0, + get: function() { + return this.config.Hm ? "unsentplaydatatest" : "unsentplaydata"; + } + }, + l$: { + configurable: !0, + enumerable: !0, + get: function() { + return !0; + } + }, + Fza: { + configurable: !0, + enumerable: !0, + get: function() { + return p.rb(1E4); + } + }, + w8: { + configurable: !0, + enumerable: !0, + get: function() { + return p.rb(4E3); + } + }, + Rta: { + configurable: !0, + enumerable: !0, + get: function() { + return p.K7(1); + } + }, + Sta: { + configurable: !0, + enumerable: !0, + get: function() { + return p.hh(30); + } + } + }); + m = b; + g.__decorate([f.config(f.string, "playdataPersistKey")], m.prototype, "FD", null); + g.__decorate([f.config(f.le, "sendPersistedPlaydata")], m.prototype, "l$", null); + g.__decorate([f.config(f.Fg, "playdataSendDelayMilliseconds")], m.prototype, "Fza", null); + g.__decorate([f.config(f.Fg, "playdataPersistIntervalMilliseconds")], m.prototype, "w8", null); + g.__decorate([f.config(f.Fg, "heartbeatCooldown")], m.prototype, "Rta", null); + g.__decorate([f.config(f.Fg, "keepAliveWindow")], m.prototype, "Sta", null); + m = g.__decorate([c.N(), g.__param(0, c.l(k.Fi)), g.__param(1, c.l(a.$l))], m); + d.JNa = m; + }, function(g, d, a) { + var k, f, p, m, r, l, x, v, n, w, q, z, E, P; + + function b(a, b, f, d, g, k, h, m) { + this.config = a; + this.ia = f; + this.cq = d; + this.$y = g; + this.VT = k; + this.hg = h; + this.qy = Promise.resolve(); + this.closed = !1; + this.log = b.lb("PlaydataServices"); + this.vv = []; + this.active = []; + this.qmb = new c(a, m); + } + + function c(a, b) { + this.config = a; + this.Ma = b; + } + + function h(a, b, c, f, d, g) { + this.log = a; + this.ia = b; + this.j = c; + this.Km = f; + this.cq = d; + this.djb = g; + this.kH = !1; + } + Object.defineProperty(d, "__esModule", { + value: !0 + }); + g = a(0); + k = a(1); + f = a(4); + p = a(7); + m = a(30); + r = a(225); + l = a(311); + x = a(16); + v = a(310); + n = a(2); + w = a(184); + q = a(309); + z = a(131); + E = a(37); + a = a(63); + h.prototype.nT = function(a, b) { + var f; + + function c() { + var a; + a = f.Km.qu(f.j, !1); + f.cq.Saa(a)["catch"](function(a) { + f.log.error("Unable to schedule playdata changes", a); + }); + } + f = this; + this.log.trace("Adding initial playdata", b); + this.cq.eXa(b).then(function() { + f.log.trace("Scheduling monitor", { + interval: a + }); + f.Tp = f.ia.sza(a, c); + })["catch"](function(d) { + f.log.error("Unable to add playdata", { + error: d, + playdata: new w.oY().encode(b) + }); + f.Tp = f.ia.sza(a, c); + }); + }; + h.prototype.stop = function(a) { + var b, c; + b = this; + if (this.kH) return Promise.resolve(); + this.Tp.cancel(); + c = this.Km.qu(this.j, !1); + return this.cq.Saa(c)["catch"](function(a) { + b.log.error("Unable to update playdata changes during stop", a); + }).then(function() { + if (a) { + if (b.j.background) return b.log.trace("Playback is currently in the background and never played, not sending the playdata", c), Promise.resolve(); + b.log.trace("Sending final playdata to the server", c); + return b.djb.Lza(c); + } + b.log.trace("Currently configured to not send play data, not sending the data to the server"); + }).then(function() { + if (a) return b.log.trace("Removing playdata from the persisted store", c), b.cq.Dya(c); + b.log.trace("Currently configured to not send play data, not removing the play data from IDB"); + }).then(function() { + b.log.info("Successfully stopped the playback", c.R); + })["catch"](function(a) { + b.log.error("Unable to remove playdata changes", a); + throw a; + }); + }; + h.prototype.cancel = function() { + this.kH = !0; + this.Tp.cancel(); + this.cq.Saa(this.Km.qu(this.j, !1)); + }; + na.Object.defineProperties(c.prototype, { + PZa: { + configurable: !0, + enumerable: !0, + get: function() { + var a; + a = this.Ma.eg; + return !this.qy || 0 <= a.Gd(this.qy).ql(this.config.Sta) ? (this.qy = a, !0) : !1; + } + } + }); + d.Uyb = c; + b.prototype.Ac = function() { + var a; + a = this; + this.ah || (this.log.trace("Starting playdata services"), this.ah = this.cq.Pkb().then(function() { + return a; + })["catch"](function(b) { + a.log.error("Unable to read the playdata, it will be deleted and not sent to the server", b); + return a; + })); + return this.ah; + }; + b.prototype.close = function() { + this.closed = !0; + this.vv.forEach(function(a) { + a.nT.cancel(); + }); + }; + b.prototype.send = function(a) { + var b; + if (this.closed) return Promise.resolve(); + b = this.config; + return b.FD && b.l$ ? this.jnb(a) : Promise.resolve(); + }; + b.prototype.Sob = function(a) { + this.closed || this.Tob(a); + }; + b.prototype.fpb = function(a) { + var b, c, f; + b = this; + if (this.closed) return Promise.resolve(); + c = []; + f = this.$y.qu(a, !1); + this.active = this.active.filter(function(a) { + return a !== f.ka; + }); + a = this.vv.filter(function(a) { + return a.key === f.ka.toString(); + }).map(function(a) { + c.push(a); + a.GAa = !0; + return a.nT.stop(b.config.l$); + }); + return Promise.all(a).then(function() { + c.forEach(function(a) { + return b.vv.splice(b.vv.indexOf(a), 1); + }); + }); + }; + b.prototype.Tob = function(a) { + var b; + b = this; + a.addEventListener(x.X.Hh, function() { + b.BAa(a); + }); + a.background || a.addEventListener(x.X.IS, function() { + b.BAa(a); + }); + a.addEventListener(x.X.Hh, function() { + b.n$(a); + }); + a.addEventListener(x.X.Hh, function() { + b.Pob(a); + }, 1); + a.addEventListener(x.X.Ce, function() { + b.epb(); + }); + a.addEventListener(x.X.iCa, function() { + b.onb(a); + }); + a.kc.addListener(function() { + a.Ta.D2 ? b.log.trace("stickiness is disabled for timedtext") : b.Kza(a); + }); + a.Ic.addListener(function() { + a.Ta.D2 ? b.log.trace("stickiness is disabled for audio") : b.Kza(a); + }); + }; + b.prototype.BAa = function(a) { + var b, c; + a.he("pdb"); + if (this.config.w8.zta()) { + b = this.$y.qu(a, !1); + c = b.ka; + 0 <= this.vv.findIndex(function(a) { + return a.key === c; + }) ? this.log.trace("Already collecting online playdata, ignoring", b) : (this.log.info("Starting to collect online playdata", b), this.active.push(c), this.vv.push({ + key: c, + nT: this.L9a(a, b), + vz: !1, + GAa: !1 + })); + } + }; + b.prototype.jnb = function(a) { + var b, c, f, d; + b = this; + c = this.cq.UT.filter(function(a) { + return 0 > b.active.indexOf(a.ka); + }); + f = void 0; + d = void 0; + a && Infinity === a ? f = c : (c = za(z.qv(function(b) { + return b.R === a; + }, c)), f = c.next().value, d = c.next().value); + d && 0 < d.length && this.ia.Nf(this.config.Fza, function() { + b.Jza(d); + }); + return f && 0 !== f.length ? this.Jza(f) : Promise.resolve(); + }; + b.prototype.Jza = function(a) { + var b; + b = this; + return a.map(function(a) { + return function() { + return b.VT.Lza(a).then(function() { + return b.Glb(a); + }); + }; + }).reduce(function(a, b) { + return a.then(function() { + return b(); + }); + }, Promise.resolve()); + }; + b.prototype.Glb = function(a) { + var b; + b = this; + return this.cq.Dya(a).then(function() {})["catch"](function(a) { + b.log.error("Unble to complete the stop lifecycle event", a); + throw a; + }); + }; + b.prototype.L9a = function(a, b) { + a = new h(this.log, this.ia, a, this.$y, this.cq, this.VT); + a.nT(this.config.w8, b); + return a; + }; + b.prototype.n$ = function(a) { + var b, c; + b = this; + c = this.$y.qu(a, !0); + this.VT.n$(a, c).then(function() { + b.vv.filter(function(b) { + return b.key === a.ka.toString(); + }).forEach(function(a) { + a.vz = !0; + }); + })["catch"](function(f) { + b.log.error("Start command failed", { + playdata: c, + error: f + }); + return a.md(b.hg(n.I.dha, f)); + }); + }; + b.prototype.onb = function(a) { + this.qmb.PZa && this.NK(q.nY.hJ, a, n.I.LX)["catch"](function() {}); + }; + b.prototype.Kza = function(a) { + this.NK(q.nY.splice, a, n.I.cha)["catch"](function() {}); + }; + b.prototype.NK = function(a, b, c) { + var d; + + function f(a) { + var b; + b = d.vv.filter(function(b) { + return b.key === a.ka.toString(); + }); + return 0 === b.length ? !0 : b.reduce(function(a, b) { + return a || b.GAa || !b.vz; + }, !1); + } + d = this; + return f(b) ? this.qy : this.qy = this.qy["catch"](function() { + return Promise.resolve(); + }).then(function() { + var c; + if (f(b)) return Promise.resolve(); + c = d.$y.qu(b, !1); + return d.VT.NK(a, b, c); + }).then(function(a) { + return a; + })["catch"](function(f) { + d.log.error("Failed to send event", { + eventKey: a, + xid: b.ka, + error: f + }); + f.xl && b.md(d.hg(c, f)); + f.Ip === n.XX.QY && b.md(d.hg(c, f)); + throw f; + }); + }; + b.prototype.Pob = function(a) { + this.vob(a) && this.Q$(this.y9a(a), a); + }; + b.prototype.Q$ = function(a, b) { + var c; + c = this; + this.o1(); + this.f6 = this.ia.Nf(a, function() { + c.o1(); + c.NK(q.nY.hJ, b, n.I.LX).then(function() { + c.Q$(a, b); + })["catch"](function(f) { + f.Ip === n.XX.QY && c.Q$(a, b); + }); + }); + }; + b.prototype.epb = function() { + this.o1(); + }; + b.prototype.vob = function(a) { + return a.state.value == x.ph.Fq; + }; + b.prototype.o1 = function() { + this.f6 && (this.f6.cancel(), this.f6 = void 0); + }; + b.prototype.y9a = function(a) { + return a.Ta.g5 ? f.rb(a.Ta.g5) : this.config.Rta; + }; + P = b; + P = g.__decorate([k.N(), g.__param(0, k.l(v.Bga)), g.__param(1, k.l(p.sb)), g.__param(2, k.l(m.Xf)), g.__param(3, k.l(l.cga)), g.__param(4, k.l(r.pY)), g.__param(5, k.l(q.ega)), g.__param(6, k.l(a.Sj)), g.__param(7, k.l(E.yi))], P); + d.nNa = P; + }, function(g, d, a) { + var k, f, p, m, r, l, x, v, n, w; + + function b() {} + + function c() {} + + function h(a, c, f, d, g) { + var k; + k = this; + this.is = a; + this.tf = c; + this.config = f; + this.Gr = d; + this.Jib = g; + this.aq = function() { + return new b().encode({ + version: k.version, + data: k.UT + }); + }; + this.Srb = function(a) { + a = k.Taa(a); + k.Jib.Eo(a); + return a; + }; + this.Taa = function(a) { + if (k.is.Oi(a)) return k.Urb(a); + if (void 0 != a.version && k.is.Af(a.version) && 1 == a.version) return k.Vrb(a); + if (void 0 != a.version && k.is.Af(a.version) && 2 == a.version) return new b().decode(a); + if (a.version && k.is.Af(a.version)) throw new r.Ub(p.I.Ws, p.H.Wba, void 0, void 0, void 0, "Version number is not supported. Version: " + a.version, void 0, a); + throw new r.Ub(p.I.Ws, p.H.Ps, void 0, void 0, void 0, "The format of the playdata is inconsistent with what is expected.", void 0, a); + }; + this.$m = new l.gea(2, this.config().uxa, "" !== this.config().uxa && 0 < this.config().ojb, this.tf, this.aq); + } + Object.defineProperty(d, "__esModule", { + value: !0 + }); + g = a(0); + k = a(1); + f = a(20); + p = a(2); + m = a(23); + r = a(45); + l = a(462); + x = a(53); + v = a(73); + n = a(184); + a = a(183); + h.prototype.Pkb = function() { + return this.$m.load(this.Srb)["catch"](function(a) { + throw new r.Ub(p.I.Ws, a.T || a.tc, void 0, void 0, void 0, "Unable to load persisted playdata.", void 0, a); + }); + }; + h.prototype.eXa = function(a) { + return this.$m.add(a); + }; + h.prototype.Dya = function(a) { + return this.$m.remove(a, function(a, b) { + return a.ka === b.ka; + }); + }; + h.prototype.Saa = function(a) { + return this.$m.update(a, function(a, b) { + return a.ka === b.ka; + }); + }; + h.prototype.toString = function() { + return JSON.stringify(this.aq(), null, " "); + }; + h.prototype.XBa = function(a) { + return a ? "/events?playbackContextId=" + a + "&esn=" + this.Gr().Df : ""; + }; + h.prototype.Uaa = function(a) { + return a.map(function(a) { + return { + pd: a.downloadableId, + duration: a.duration + }; + }); + }; + h.prototype.ZBa = function(a) { + return a ? { + total: a.playTimes.total, + audio: this.Uaa(a.playTimes.audio || []), + video: this.Uaa(a.playTimes.video || []), + text: this.Uaa(a.playTimes.timedtext || []) + } : { + total: 0, + audio: [], + video: [], + text: [] + }; + }; + h.prototype.Urb = function(a) { + var b, c, f; + b = this; + a = JSON.parse(a); + c = { + type: "online", + profileId: a.accountKey, + href: this.XBa(a.playbackContextId), + ka: a.xid ? a.xid.toString() : "", + R: a.movieId, + position: a.position, + nH: a.timestamp, + RK: a.playback ? 1E3 * a.playback.startEpoch : -1, + Cy: a.mediaId, + dK: this.ZBa(a.playback), + Tb: "", + ri: { + dummy: "dummy" + } + }; + f = JSON.stringify({ + keySessionIds: a.keySessionIds, + movieId: a.movieId, + xid: a.xid, + licenseContextId: a.licenseContextId, + profileId: a.profileId + }); + this.tf.create().then(function(a) { + a.save(b.config().VH, f, !1); + }); + if (!c.profileId || "" === c.href || "" === c.ka) throw new r.Ub(p.I.Ws, p.H.Ps); + return { + version: 2, + data: [c] + }; + }; + h.prototype.Vrb = function(a) { + var b; + b = this; + if (!a.playdata || !this.is.Zt(a.playdata)) throw new r.Ub(p.I.Ws, p.H.Ps, void 0, void 0, void 0, "The version 1 playdata is corrupted.", void 0, a); + return { + version: 2, + data: function(a) { + return a.map(function(a) { + return { + type: a.type, + profileId: a.profileId, + href: b.XBa(a.playbackContextId), + ka: a.xid ? a.xid.toString() : "", + R: a.movieId, + position: a.position, + nH: a.timestamp, + RK: a.playback ? 1E3 * a.playback.startEpoch : -1, + Cy: a.mediaId, + dK: b.ZBa(a.playback), + Tb: "", + ri: { + dummy: "dummy" } }; - V2u = 21; - break; + }); + }(a.playdata) + }; + }; + na.Object.defineProperties(h.prototype, { + version: { + configurable: !0, + enumerable: !0, + get: function() { + return this.$m.version; + } + }, + UT: { + configurable: !0, + enumerable: !0, + get: function() { + return this.$m.gp; + } + } + }); + w = h; + w = g.__decorate([k.N(), g.__param(0, k.l(m.ve)), g.__param(1, k.l(x.Xl)), g.__param(2, k.l(f.je)), g.__param(3, k.l(v.oq)), g.__param(4, k.l(a.mga))], w); + d.$Ma = w; + c.prototype.encode = function(a) { + var b; + b = new n.oY(); + return a.map(b.encode); + }; + c.prototype.decode = function(a) { + var b; + b = new n.oY(); + return a.map(b.decode); + }; + b.prototype.encode = function(a) { + return { + version: a.version, + data: new c().encode(a.data) + }; + }; + b.prototype.decode = function(a) { + return { + version: a.version, + data: new c().decode(a.data) + }; + }; + }, function(g, d, a) { + var c, h, k, f, p, m, r, l, x, v, n, w; + + function b(a) { + return function() { + return a.Xb.get(c.nga).Ac(); + }; + } + Object.defineProperty(d, "__esModule", { + value: !0 + }); + g = a(1); + c = a(127); + h = a(225); + k = a(184); + f = a(311); + p = a(601); + m = a(600); + r = a(310); + l = a(599); + x = a(309); + v = a(598); + n = a(183); + w = a(597); + d.UT = new g.Vb(function(a) { + a(r.Bga).to(l.JNa).$(); + a(h.pY).to(k.mNa).$(); + a(f.cga).to(p.$Ma).$(); + a(c.nga).to(m.nNa).$(); + a(c.eN).vL(b); + a(x.ega).to(v.dNa).$().SL(); + a(n.oga).to(w.oNa).$(); + a(n.lga).to(w.kNa).$(); + a(n.mga).to(w.lNa).$(); + }); + }, function(g, d, a) { + var c, h, k; + + function b(a) { + var b; + b = k.yM.call(this) || this; + b.mc = a; + return b; + } + Object.defineProperty(d, "__esModule", { + value: !0 + }); + g = a(0); + c = a(1); + h = a(22); + k = a(332); + ia(b, k.yM); + b.prototype.decode = function(a) { + return { + R: a.movieId, + dj: a.packageId, + ul: a.drmType, + N4a: a.drmVersion, + w6a: a.expiration, + b_a: this.Y2a(a.cdnResponseData), + media: this.f3a(a.media), + duration: a.duration, + df: a.playbackContextId, + Woa: this.a3a(a.defaultTrackOrderList), + Bj: a.drmContextId, + Nab: a.hasDrmProfile, + Lab: a.hasClearProfile, + nBa: this.l3a(a.timedtexttracks), + zBa: this.o3a(a.trickplays), + C0: this.X2a(a.audio_tracks), + OV: this.t3a(a.video_tracks), + bn: this.Noa(a.servers), + Gj: this.d3a(a.locations), + Hcb: a.isUsingLegacyBatchingAPI, + L0: a.bookmark, + qsa: a.hasDrmStreams, + Mab: a.hasClearStreams, + links: a.links, + r_a: this.Z2a(a.choiceMap), + ib: a.initialHeader, + Jsb: this.u3a(a.watermarkInfo), + Ze: a.isBranching, + G4a: a.dpsid, + Csb: a.viewableType, + XC: a.isSupplemental, + Ana: a.clientIpAddress + }; + }; + b.prototype.encode = function(a) { + return { + movieId: a.R, + packageId: a.dj, + drmType: a.ul, + drmVersion: a.N4a, + expiration: a.w6a, + cdnResponseData: this.B5a(a.b_a), + media: this.J5a(a.media), + duration: a.duration, + playbackContextId: a.df, + defaultTrackOrderList: this.E5a(a.Woa), + drmContextId: a.Bj, + timedtexttracks: this.P5a(a.nBa), + trickplays: this.T5a(a.zBa), + audio_tracks: this.A5a(a.C0), + video_tracks: this.Y5a(a.OV), + servers: this.Mpa(a.bn), + locations: this.H5a(a.Gj), + isUsingLegacyBatchingAPI: a.Hcb, + bookmark: a.L0, + hasDrmProfile: a.Nab, + hasClearProfile: a.Lab, + hasDrmStreams: a.qsa, + hasClearStreams: a.Mab, + links: a.links, + choiceMap: this.C5a(a.r_a), + initialHeader: a.ib, + watermarkInfo: this.Z5a(a.Jsb), + isBranching: a.Ze, + dpsid: a.G4a, + viewableType: a.Csb, + isSupplemental: a.XC, + clientIpAddress: a.Ana + }; + }; + b.prototype.u3a = function(a) { + return a && { + id: a.id, + opacity: a.opacity, + anchor: a.anchor + }; + }; + b.prototype.Z5a = function(a) { + return a && { + id: a.id, + opacity: a.opacity, + anchor: a.anchor + }; + }; + b.prototype.Z2a = function(a) { + var b; + b = this; + return a && { + XI: a.initialSegment, + type: a.type, + Ie: a.viewableId, + Se: this.kC(a.segments, function(a) { + return { + wo: a.startTimeMs, + lC: a.endTimeMs, + vQ: a.defaultNext, + next: b.kC(a.next, function(a) { + return { + weight: a.weight + }; + }) + }; + }) + }; + }; + b.prototype.C5a = function(a) { + var b; + b = this; + return a && { + initialSegment: a.XI, + type: a.type, + viewableId: a.Ie, + segments: this.kC(a.Se, function(a) { + return { + startTimeMs: a.wo, + endTimeMs: a.lC, + defaultNext: a.vQ, + next: b.kC(a.next, function(a) { + return { + weight: a.weight + }; + }) + }; + }) + }; + }; + b.prototype.Y2a = function(a) { + return { + MT: a.pbcid, + Cv: a.sessionABTestCell + }; + }; + b.prototype.B5a = function(a) { + return { + pbcid: a.MT, + sessionABTestCell: a.Cv + }; + }; + b.prototype.f3a = function(a) { + return this.Cf(a, this.e3a); + }; + b.prototype.J5a = function(a) { + return this.Cf(a, this.I5a); + }; + b.prototype.e3a = function(a) { + return { + Eaa: this.m3a(a.tracks), + id: a.id + }; + }; + b.prototype.I5a = function(a) { + return { + tracks: this.R5a(a.Eaa), + id: a.id + }; + }; + b.prototype.m3a = function(a) { + return { + AUDIO: a.AUDIO, + VIDEO: a.VIDEO, + Hha: a.TEXT + }; + }; + b.prototype.R5a = function(a) { + return { + AUDIO: a.AUDIO, + VIDEO: a.VIDEO, + TEXT: a.Hha + }; + }; + b.prototype.a3a = function(a) { + return this.Cf(a, this.$2a); + }; + b.prototype.E5a = function(a) { + return this.Cf(a, this.D5a); + }; + b.prototype.$2a = function(a) { + return { + BB: a.audioTrackId, + Cy: a.mediaId, + Asb: a.videoTrackId, + OAa: a.subtitleTrackId, + Ijb: a.preferenceOrder + }; + }; + b.prototype.D5a = function(a) { + return { + audioTrackId: a.BB, + mediaId: a.Cy, + videoTrackId: a.Asb, + subtitleTrackId: a.OAa, + preferenceOrder: a.Ijb + }; + }; + b.prototype.l3a = function(a) { + return this.Cf(a, this.k3a); + }; + b.prototype.P5a = function(a) { + return this.Cf(a, this.O5a); + }; + b.prototype.k3a = function(a) { + return this.mc.Dk(this.m2(a), { + type: a.type, + CBa: this.j3a(a.ttDownloadables), + iz: a.rawTrackType, + YC: a.languageDescription, + language: a.language, + id: a.id, + xS: a.isNoneTrack, + tS: a.isForcedNarrative, + rpa: a.downloadableIds, + ona: this.Noa(a.cdnlist), + fJ: a.isLanguageLeftToRight + }); + }; + b.prototype.O5a = function(a) { + return this.mc.Dk(this.U2(a), { + type: a.type, + ttDownloadables: this.N5a(a.CBa), + rawTrackType: a.iz, + languageDescription: a.YC, + language: a.language, + id: a.id, + isNoneTrack: a.xS, + isForcedNarrative: a.tS, + downloadableIds: a.rpa, + cdnlist: this.Mpa(a.ona), + trackType: a.vi, + new_track_id: a.jo, + isLanguageLeftToRight: a.fJ + }); + }; + b.prototype.j3a = function(a) { + return this.kC(a, this.i3a); + }; + b.prototype.N5a = function(a) { + return this.kC(a, this.M5a); + }; + b.prototype.i3a = function(a) { + return { + Ir: a.downloadUrls, + Rab: a.hashAlgo, + Sab: a.hashValue, + height: a.height, + width: a.width, + ncb: a.isImage, + GJ: a.midxOffset, + bT: a.midxSize, + size: a.size, + cqb: a.textKey + }; + }; + b.prototype.M5a = function(a) { + return { + downloadUrls: a.Ir, + hashAlgo: a.Rab, + hashValue: a.Sab, + height: a.height, + width: a.width, + isImage: a.ncb, + midxOffset: a.GJ, + midxSize: a.bT, + size: a.size, + textKey: a.cqb + }; + }; + b.prototype.o3a = function(a) { + if (a) return this.Cf(a, this.n3a); + }; + b.prototype.T5a = function(a) { + if (a) return this.Cf(a, this.S5a); + }; + b.prototype.n3a = function(a) { + return { + interval: a.interval, + nxa: a.pixelsAspectY, + mxa: a.pixelsAspectX, + width: a.width, + height: a.height, + size: a.size, + dC: a.downloadable_id, + Qc: a.urls, + id: a.id + }; + }; + b.prototype.S5a = function(a) { + return { + interval: a.interval, + pixelsAspectY: a.nxa, + pixelsAspectX: a.mxa, + width: a.width, + height: a.height, + size: a.size, + downloadable_id: a.dC, + urls: a.Qc, + id: a.id + }; + }; + b.prototype.X2a = function(a) { + return this.Cf(a, this.W2a); + }; + b.prototype.A5a = function(a) { + return this.Cf(a, this.z5a); + }; + b.prototype.W2a = function(a) { + return this.mc.Dk(this.m2(a), { + id: a.id, + qc: this.V2a(a.streams), + vi: a.trackType, + jk: a.channels, + language: a.language, + h1: a.channelsFormat, + faa: a.surroundFormatLabel, + YC: a.languageDescription, + isNative: a.isNative, + m4a: a.disallowedSubtitleTracks, + yL: a.track_id, + D3a: a.defaultTimedText, + X8: a.profileType, + type: a.type, + U$: a.stereo, + profile: a.profile, + u1: a.codecName, + iz: a.rawTrackType + }); + }; + b.prototype.z5a = function(a) { + return this.mc.Dk(this.U2(a), { + id: a.id, + streams: this.y5a(a.qc), + trackType: a.vi, + channels: a.jk, + language: a.language, + channelsFormat: a.h1, + surroundFormatLabel: a.faa, + languageDescription: a.YC, + isNative: a.isNative, + disallowedSubtitleTracks: a.m4a, + track_id: a.yL, + defaultTimedText: a.D3a, + profileType: a.X8, + type: a.type, + stereo: a.U$, + profile: a.profile, + codecName: a.u1, + rawTrackType: a.iz + }); + }; + b.prototype.t3a = function(a) { + return this.Cf(a, this.s3a); + }; + b.prototype.Y5a = function(a) { + return this.Cf(a, this.X5a); + }; + b.prototype.s3a = function(a) { + return this.mc.Dk(this.m2(a), { + type: a.type, + qc: this.r3a(a.streams), + Ne: a.drmHeader && this.Moa(a.drmHeader), + B2: a.dimensionsCount, + C2: a.dimensionsLabel, + vbb: a.ict, + Meb: a.maxCroppedHeight, + Neb: a.maxCroppedWidth, + Oeb: a.maxCroppedX, + Peb: a.maxCroppedY, + X8: a.profileType, + U$: a.stereo, + maxWidth: a.maxWidth, + maxHeight: a.maxHeight, + kxa: a.pixelAspectX, + lxa: a.pixelAspectY, + profile: a.profile, + bfb: a.max_framerate_value, + afb: a.max_framerate_scale, + Ofb: a.minCroppedHeight, + Pfb: a.minCroppedWidth, + Qfb: a.minCroppedX, + Rfb: a.minCroppedY, + minHeight: a.minHeight, + minWidth: a.minWidth, + T8: a.prkDrmHeaders && a.prkDrmHeaders.map(this.Moa), + mI: a.flavor, + yL: a.track_id + }); + }; + b.prototype.X5a = function(a) { + return this.mc.Dk(this.U2(a), { + type: a.type, + streams: this.W5a(a.qc), + drmHeader: a.Ne && this.Lpa(a.Ne), + dimensionsCount: a.B2, + dimensionsLabel: a.C2, + ict: a.vbb, + maxCroppedHeight: a.Meb, + maxCroppedWidth: a.Neb, + maxCroppedX: a.Oeb, + maxCroppedY: a.Peb, + profileType: a.X8, + stereo: a.U$, + maxWidth: a.maxWidth, + maxHeight: a.maxHeight, + pixelAspectX: a.kxa, + pixelAspectY: a.lxa, + profile: a.profile, + max_framerate_value: a.bfb, + max_framerate_scale: a.afb, + minCroppedHeight: a.Ofb, + minCroppedWidth: a.Pfb, + minCroppedX: a.Qfb, + minCroppedY: a.Rfb, + minHeight: a.minHeight, + minWidth: a.minWidth, + prkDrmHeaders: a.T8 && a.T8.map(this.Lpa), + flavor: a.mI, + track_id: a.yL + }); + }; + b.prototype.Moa = function(a) { + return { + Z: a.bytes, + o_a: a.checksum, + iJ: a.keyId + }; + }; + b.prototype.Lpa = function(a) { + return { + bytes: a.Z, + checksum: a.o_a, + keyId: a.iJ + }; + }; + b.prototype.m2 = function(a) { + return { + vi: a.trackType, + jo: a.new_track_id, + type: a.type + }; + }; + b.prototype.U2 = function(a) { + return { + trackType: a.vi, + new_track_id: a.jo, + type: a.type + }; + }; + b.prototype.V2a = function(a) { + return this.Cf(a, this.U2a); + }; + b.prototype.y5a = function(a) { + return this.Cf(a, this.x5a); + }; + b.prototype.U2a = function(a) { + return { + QB: a.content_profile, + vi: a.trackType, + O: a.bitrate, + size: a.size, + Fl: a.isDrm, + dC: a.downloadable_id, + type: a.type, + W7: a.new_stream_id, + Qc: this.Ooa(a.urls), + jk: a.channels, + h1: a.channelsFormat, + faa: a.surroundFormatLabel, + language: a.language, + lYa: a.audioKey + }; + }; + b.prototype.x5a = function(a) { + return { + content_profile: a.QB, + trackType: a.vi, + bitrate: a.O, + size: a.size, + isDrm: a.Fl, + downloadable_id: a.dC, + type: a.type, + new_stream_id: a.W7, + urls: this.Npa(a.Qc), + channels: a.jk, + channelsFormat: a.h1, + surroundFormatLabel: a.faa, + language: a.language, + audioKey: a.lYa + }; + }; + b.prototype.r3a = function(a) { + return this.Cf(a, this.q3a); + }; + b.prototype.W5a = function(a) { + return this.Cf(a, this.V5a); + }; + b.prototype.q3a = function(a) { + return { + QB: a.content_profile, + vi: a.trackType, + O: a.bitrate, + size: a.size, + Fl: a.isDrm, + dC: a.downloadable_id, + type: a.type, + W7: a.new_stream_id, + Qc: this.Ooa(a.urls), + Mib: a.peakBitrate, + B2: a.dimensionsCount, + C2: a.dimensionsLabel, + Yib: a.pix_w, + Xib: a.pix_h, + Pya: a.res_w, + Oya: a.res_h, + Nqa: a.framerate_value, + Mqa: a.framerate_scale, + Nob: a.startByteOffset, + oc: a.vmaf, + zoa: a.crop_x, + Aoa: a.crop_y, + xoa: a.crop_h, + yoa: a.crop_w + }; + }; + b.prototype.V5a = function(a) { + return { + content_profile: a.QB, + trackType: a.vi, + bitrate: a.O, + size: a.size, + isDrm: a.Fl, + downloadable_id: a.dC, + type: a.type, + new_stream_id: a.W7, + urls: this.Npa(a.Qc), + peakBitrate: a.Mib, + dimensionsCount: a.B2, + dimensionsLabel: a.C2, + pix_w: a.Yib, + pix_h: a.Xib, + res_w: a.Pya, + res_h: a.Oya, + framerate_value: a.Nqa, + framerate_scale: a.Mqa, + startByteOffset: a.Nob, + vmaf: a.oc, + crop_x: a.zoa, + crop_y: a.Aoa, + crop_h: a.xoa, + crop_w: a.yoa + }; + }; + b.prototype.Ooa = function(a) { + return this.Cf(a, this.p3a); + }; + b.prototype.Npa = function(a) { + return this.Cf(a, this.U5a); + }; + b.prototype.p3a = function(a) { + return { + url: a.url, + nna: a.cdn_id + }; + }; + b.prototype.U5a = function(a) { + return { + url: a.url, + cdn_id: a.nna + }; + }; + b.prototype.Noa = function(a) { + return this.Cf(a, this.h3a); + }; + b.prototype.Mpa = function(a) { + return this.Cf(a, this.L5a); + }; + b.prototype.h3a = function(a) { + return { + id: a.id, + key: a.key, + Eua: a.lowgrade, + name: a.name, + Qd: a.rank, + type: a.type, + u4a: this.b3a(a.dns) + }; + }; + b.prototype.L5a = function(a) { + return { + id: a.id, + key: a.key, + lowgrade: a.Eua, + name: a.name, + rank: a.Qd, + type: a.type, + dns: this.F5a(a.u4a) + }; + }; + b.prototype.b3a = function(a) { + if (a) return { + host: a.host, + acb: a.ipv4, + bcb: a.ipv6, + y7a: a.forceLookup + }; + }; + b.prototype.F5a = function(a) { + if (a) return { + host: a.host, + ipv4: a.acb, + ipv6: a.bcb, + forceLookup: a.y7a + }; + }; + b.prototype.d3a = function(a) { + return this.Cf(a, this.c3a); + }; + b.prototype.H5a = function(a) { + return this.Cf(a, this.G5a); + }; + b.prototype.c3a = function(a) { + return { + key: a.key, + Qd: a.rank, + weight: a.weight, + level: a.level + }; + }; + b.prototype.G5a = function(a) { + return { + key: a.key, + rank: a.Qd, + weight: a.weight, + level: a.level + }; + }; + a = b; + a = g.__decorate([c.N(), g.__param(0, c.l(h.Je))], a); + d.hKa = a; + }, function(g, d, a) { + var c, h, k, f, p, m, r, l; + + function b(a, b, c, d, f, g, k) { + this.LWa = a; + this.zlb = b; + this.Gr = d; + this.y6 = f; + this.Mya = g; + this.Yya = k; + this.ga = c.lb("LicenseProviderImpl"); + } + Object.defineProperty(d, "__esModule", { + value: !0 + }); + g = a(0); + c = a(1); + h = a(7); + k = a(316); + a(315); + f = a(73); + p = a(314); + m = a(107); + r = a(313); + a = a(312); + b.prototype.vB = function(a, b) { + var c, d; + c = this; + d = this.Mya.Pqb(a); + return this.LWa.op(this.ga, b.profile, this.U7a(a), d).then(function(a) { + a.map(function(a) { + return a.XFb; + }); + return c.Yya.Qqb(a); + })["catch"](function(a) { + c.ga.error("PBO license failed", a); + return Promise.reject(a); + }); + }; + b.prototype.release = function(a, b) { + var c; + c = this; + a = this.Mya.Sqb(a); + return this.zlb.Cg(this.ga, b.profile, a).then(function(a) { + return c.Yya.Tqb(a); + })["catch"](function(a) { + c.ga.error("PBO release license failed", a); + return Promise.reject(a); + }); + }; + b.prototype.U7a = function(a) { + var b; + b = this.y6(); + b.vP({ + ldl: { + href: this.ana(a, "limited"), + rel: "ldl" + }, + license: { + href: this.ana(a, "standard"), + rel: "license" } + }); + return b; + }; + b.prototype.ana = function(a, b) { + return "/license?licenseType=" + b + "&playbackContextId=" + a.df + "&esn=" + this.Gr().Df; + }; + l = b; + l = g.__decorate([c.N(), g.__param(0, c.l(k.aga)), g.__param(1, c.l(p.pga)), g.__param(2, c.l(h.sb)), g.__param(3, c.l(f.oq)), g.__param(4, c.l(m.rA)), g.__param(5, c.l(r.fga)), g.__param(6, c.l(a.gga))], l); + d.oJa = l; + }, function(g, d, a) { + var c, h, k, f, p, m; + + function b(a, b, c) { + this.Aeb = a; + this.er = c; + this.ga = b.lb("ManifestProviderImpl"); + } + Object.defineProperty(d, "__esModule", { + value: !0 + }); + g = a(0); + c = a(1); + h = a(15); + k = a(317); + f = a(7); + p = a(65); + m = a(18); + b.prototype.DC = function(a, b) { + var c; + c = this; + return this.er().then(function(d) { + return c.Aeb.op(c.ga, d.profile, b, a); + })["catch"](function(a) { + c.ga.error("PBO manifest failed", a); + return Promise.reject(a); + }); + }; + b.prototype.Gna = function(a, b) { + var c; + c = {}; + a && m.pc(a, function(a, b) { + c[a] = h.bd(b) ? b : JSON.stringify(b); + }); + b && m.pc(b, function(a, b) { + c[a] = h.bd(b) ? b : JSON.stringify(b); + }); + return c; + }; + a = b; + a = g.__decorate([c.N(), g.__param(0, c.l(k.jga)), g.__param(1, c.l(f.sb)), g.__param(2, c.l(p.lq))], a); + d.mKa = a; + }, function(g, d, a) { + var c, h, k; + + function b(a) { + this.y6 = a; + } + Object.defineProperty(d, "__esModule", { + value: !0 + }); + g = a(0); + c = a(1); + h = a(107); + k = a(212); + b.prototype.decode = function(a) { + var b; + b = this.B$a(a.cdns); + b = { + movieId: a.movieId, + packageId: a.packageId, + duration: a.runtime, + locations: this.w4(a.locations), + servers: b, + audio_tracks: this.getAudioTracks(a.audioTracks), + video_tracks: this.getVideoTracks(a.videoTracks, a.videoEncrypted ? a.psshb64 : void 0), + cdnResponseData: a.cdnResponseData, + isSupplemental: a.isSupplemental, + choiceMap: a.branchMap, + watermarkInfo: a.watermark, + drmVersion: 0, + playbackContextId: a.playbackContextId, + bookmark: a.bookmark.position / 1E3, + hasDrmProfile: !0, + hasDrmStreams: a.videoEncrypted, + hasClearProfile: !1, + hasClearStreams: !a.videoEncrypted, + defaultTrackOrderList: this.K8a(a), + timedtexttracks: this.U$a(a.textTracks, b), + media: this.EC(a.media), + trickplays: this.$$a(a.trickPlayTracks), + drmContextId: a.drmContextId, + dpsid: null, + isBranching: !!a.branchMap, + clientIpAddress: a.clientIpAddress, + drmType: "", + expiration: this.b9a(a), + initialHeader: void 0 + }; + b.oz = a.oz; + b.VD = a.VD; + b.sy = this.y6(); + b.sy.Ila(b); + return b; + }; + b.prototype.K8a = function(a) { + var b, c, d; + b = za(a.defaultMedia.split("|")); + c = b.next().value; + d = b.next().value; + b = b.next().value; + return [{ + mediaId: a.defaultMedia, + audioTrackId: c, + videoTrackId: d, + subtitleTrackId: b, + preferenceOrder: 0 + }]; + }; + b.prototype.w4 = function(a) { + return a ? a.map(function(a) { + return { + key: a.id, + rank: a.rank, + level: a.level, + weight: a.weight + }; + }) : []; + }; + b.prototype.B$a = function(a) { + return a ? a.map(function(a) { + return { + name: a.name, + type: a.type, + id: Number(a.id), + key: a.locationId, + rank: a.rank, + lowgrade: a.isLowgrade + }; + }) : []; + }; + b.prototype.gsa = function(a) { + return Object.keys(a).map(function(b) { + return { + cdn_id: Number(b), + url: a[b] + }; + }); + }; + b.prototype.getAudioTracks = function(a) { + var b; + b = this; + return a ? a.map(function(a) { + var c; + c = a.downloadables; + return { + type: 0, + channels: a.channels, + language: a.bcp47, + languageDescription: a.language, + trackType: a.trackType, + streams: b.a8a(c, a), + channelsFormat: a.channelsLabel, + surroundFormatLabel: a.channelsLabel, + profile: c && c.length ? c[0].contentProfile : void 0, + rawTrackType: a.trackType.toLowerCase(), + new_track_id: a.id, + track_id: a.id, + id: a.id, + disallowedSubtitleTracks: [], + defaultTimedText: null, + isNative: !1, + profileType: "", + stereo: !1, + codecName: "AAC" + }; + }) : []; + }; + b.prototype.a8a = function(a, b) { + var c; + c = this; + return a ? (a = a.map(function(a) { + return { + type: 0, + trackType: b.trackType, + content_profile: a.contentProfile, + downloadable_id: a.downloadableId, + bitrate: a.bitrate, + language: b.bcp47, + urls: c.gsa(a.urls), + isDrm: !!a.isEncrypted, + new_stream_id: a.id, + size: a.size, + channels: b.channels, + channelsFormat: "2.0", + surroundFormatLabel: "2.0", + audioKey: null + }; + }), a.sort(function(a, b) { + return a.bitrate - b.bitrate; + }), a) : []; + }; + b.prototype.getVideoTracks = function(a, b) { + var c; + c = this; + return a ? a.map(function(a) { + return { + type: 1, + trackType: "PRIMARY", + streams: c.hab(a.downloadables, a.trackType), + profile: "", + new_track_id: a.id, + track_id: a.id, + dimensionsCount: 2, + dimensionsLabel: "2D", + drmHeader: b && b.length ? { + bytes: b[0], + checksum: "", + keyId: b[0].substr(b.length - 25) + } : void 0, + prkDrmHeaders: void 0, + flavor: void 0, + ict: !1, + profileType: "", + stereo: !1, + maxWidth: 0, + maxHeight: 0, + pixelAspectX: 1, + pixelAspectY: 1, + max_framerate_value: 0, + max_framerate_scale: 256, + minCroppedWidth: 0, + minCroppedHeight: 0, + minCroppedX: 0, + minCroppedY: 0, + maxCroppedWidth: 0, + maxCroppedHeight: 0, + maxCroppedX: 0, + maxCroppedY: 0, + minWidth: 0, + minHeight: 0 + }; + }) : []; + }; + b.prototype.hab = function(a, b) { + var c; + c = this; + return a ? (a = a.map(function(a) { + return { + type: 1, + trackType: b, + content_profile: a.contentProfile, + downloadable_id: a.downloadableId, + bitrate: a.bitrate, + urls: c.gsa(a.urls), + pix_w: a.width, + pix_h: a.height, + res_w: a.width, + res_h: a.height, + hdcp: a.hdcpVersions, + vmaf: a.vmaf, + size: a.size, + isDrm: a.isEncrypted, + new_stream_id: "0", + peakBitrate: 0, + dimensionsCount: 2, + dimensionsLabel: "2D", + startByteOffset: 0, + framerate_value: a.framerate_value, + framerate_scale: a.framerate_scale, + crop_x: a.cropParamsX, + crop_y: a.cropParamsY, + crop_w: a.cropParamsWidth, + crop_h: a.cropParamsHeight + }; + }), a.sort(function(a, b) { + return a.bitrate - b.bitrate; + }), a) : []; + }; + b.prototype.U$a = function(a, b) { + var c; + c = this; + return a ? a.map(function(a) { + return { + type: "timedtext", + trackType: "SUBTITLES" === a.trackType ? "PRIMARY" : "ASSISTIVE", + rawTrackType: a.trackType.toLowerCase(), + language: a.bcp47 || null, + languageDescription: a.language, + new_track_id: a.id, + id: a.id, + isNoneTrack: a.isNone, + isForcedNarrative: a.isForced, + downloadableIds: c.P$a(a.downloadables), + ttDownloadables: c.Q$a(a.downloadables), + isLanguageLeftToRight: !!a.isLanguageLeftToRight, + cdnlist: b + }; + }) : []; + }; + b.prototype.P$a = function(a) { + return a ? a.reduce(function(a, b) { + a[b.contentProfile] = b.downloadableId; + return a; + }, {}) : {}; + }; + b.prototype.c$a = function(a) { + var b; + b = k.KY.C4(); + a = a.filter(function(a) { + return a.isImage; + }); + return 0 === a.length ? b : 0 < a.filter(function(a) { + return a.pixHeight === b; + }).length ? b : Math.min.apply(Math, [].concat(wb(a.map(function(a) { + return a.pixHeight; + })))); + }; + b.prototype.Q$a = function(a) { + var b; + if (a) { + b = this.c$a(a); + return a.reduce(function(a, c) { + c.isImage && c.pixHeight !== b || (a[c.contentProfile] = { + size: c.size, + textKey: null, + isImage: c.isImage, + midxOffset: c.offset, + height: c.pixHeight, + width: c.pixWidth, + downloadUrls: c.urls, + hashValue: "", + hashAlgo: "sha1", + midxSize: void 0 + }); + return a; + }, {}); } - - function h(a) { - var Q1u; - Q1u = 2; - while (Q1u !== 9) { - switch (Q1u) { - case 4: - delete a.ma; - delete a.ia; - Q1u = 9; - break; - case 2: - delete a.url; - delete a.location; - delete a.Wb; - Q1u = 4; - break; + return {}; + }; + b.prototype.EC = function(a) { + return a ? a.map(function(a) { + return { + id: a.mediaId, + tracks: { + AUDIO: a.tracks.find(function(a) { + return "AUDIO" === a.type; + }).id, + VIDEO: a.tracks.find(function(a) { + return "VIDEO" === a.type; + }).id, + TEXT: a.tracks.find(function(a) { + return "TEXT" === a.type; + }).id } - } + }; + }) : []; + }; + b.prototype.$$a = function(a) { + var b; + if (a) { + b = []; + a.map(function(a) { + a.downloadables.map(function(a) { + b.push({ + downloadable_id: a.downloadableId, + size: a.size, + urls: Object.keys(a.urls).map(function(b) { + return a.urls[b]; + }), + id: a.id, + interval: a.interval, + pixelsAspectY: a.pixWidth, + pixelsAspectX: a.pixHeight, + width: a.resWidth, + height: a.resHeight + }); + }); + }); + return b; } - }()); - }, function(f, c, a) { - var d; + return []; + }; + b.prototype.b9a = function(a) { + var b; + b = 0; + a.videoTracks.forEach(function(a) { + a.downloadables && a.downloadables.forEach(function(a) { + b = b ? Math.min(a.validFor, b) : a.validFor; + }); + }); + a.audioTracks.forEach(function(a) { + a.downloadables && a.downloadables.forEach(function(a) { + b = b ? Math.min(a.validFor, b) : a.validFor; + }); + }); + return a.clientGenesis + 1E3 * b; + }; + b.prototype.encode = function() { + throw Error("encode not supported"); + }; + a = b; + a = g.__decorate([c.N(), g.__param(0, c.l(h.rA))], a); + d.nKa = a; + }, function(g, d) { + Object.defineProperty(d, "__esModule", { + value: !0 + }); + d.CQa = "CAUSwwUKvQIIAxIQ5US6QAvBDzfTtjb4tU/7QxiH8c+TBSKOAjCCAQoCggEBAObzvlu2hZRsapAPx4Aa4GUZj4/GjxgXUtBH4THSkM40x63wQeyVxlEEo1D/T1FkVM/S+tiKbJiIGaT0Yb5LTAHcJEhODB40TXlwPfcxBjJLfOkF3jP6wIlqbb6OPVkDi6KMTZ3EYL6BEFGfD1ag/LDsPxG6EZIn3k4S3ODcej6YSzG4TnGD0szj5m6uj/2azPZsWAlSNBRUejmP6Tiota7g5u6AWZz0MsgCiEvnxRHmTRee+LO6U4dswzF3Odr2XBPD/hIAtp0RX8JlcGazBS0GABMMo2qNfCiSiGdyl2xZJq4fq99LoVfCLNChkn1N2NIYLrStQHa35pgObvhwi7ECAwEAAToQdGVzdC5uZXRmbGl4LmNvbRKAA4TTLzJbDZaKfozb9vDv5qpW5A/DNL9gbnJJi/AIZB3QOW2veGmKT3xaKNQ4NSvo/EyfVlhc4ujd4QPrFgYztGLNrxeyRF0J8XzGOPsvv9Mc9uLHKfiZQuy21KZYWF7HNedJ4qpAe6gqZ6uq7Se7f2JbelzENX8rsTpppKvkgPRIKLspFwv0EJQLPWD1zjew2PjoGEwJYlKbSbHVcUNygplaGmPkUCBThDh7p/5Lx5ff2d/oPpIlFvhqntmfOfumt4i+ZL3fFaObvkjpQFVAajqmfipY0KAtiUYYJAJSbm2DnrqP7+DmO9hmRMm9uJkXC2MxbmeNtJHAHdbgKsqjLHDiqwk1JplFMoC9KNMp2pUNdX9TkcrtJoEDqIn3zX9p+itdt3a9mVFc7/ZL4xpraYdQvOwP5LmXj9galK3s+eQJ7bkX6cCi+2X+iBmCMx4R0XJ3/1gxiM5LiStibCnfInub1nNgJDojxFA3jH/IuUcblEf/5Y0s1SzokBnR8V0KbA=="; + d.qHa = "MIIE2jCCA8KgAwIBAgIIBRGnbPd8z1YwDQYJKoZIhvcNAQEFBQAwfzELMAkGA1UEBhMCVVMxEzARBgNVBAoMCkFwcGxlIEluYy4xJjAkBgNVBAsMHUFwcGxlIENlcnRpZmljYXRpb24gQXV0aG9yaXR5MTMwMQYDVQQDDCpBcHBsZSBLZXkgU2VydmljZXMgQ2VydGlmaWNhdGlvbiBBdXRob3JpdHkwHhcNMTMwMzI3MjEyNjU2WhcNMTUwMzI4MjEyNjU2WjBjMQswCQYDVQQGEwJVUzEUMBIGA1UECgwLTmV0ZmxpeC5jb20xDDAKBgNVBAsMA0VEUzEwMC4GA1UEAwwnRlBTIEFwcGxpY2F0aW9uIENlcnRpZmljYXRlICgyMDEzIHYxLjApMIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDfaIdDptThILsQcAbDMvT5FpK4JNn/BnHAY++rS9OFfhg5R4pV7CI+UMZeC64TFJJZciq6dX4/Vh7JDDULooAeZxlOLqJB4v+KDMpFS6VsRPweeMRSCE5rQffF5HoRKx682Kw4Ltv2PTxE3M16ktYCOxq+/7fxevMt3uII+2V0tQIDAQABo4IB+DCCAfQwHQYDVR0OBBYEFDuQUJCSl+l2UeybrEfNbUR1JcwSMAwGA1UdEwEB/wQCMAAwHwYDVR0jBBgwFoAUY+RHVMuFcVlGLIOszEQxZGcDLL4wgeIGA1UdIASB2jCB1zCB1AYJKoZIhvdjZAUBMIHGMIHDBggrBgEFBQcCAjCBtgyBs1JlbGlhbmNlIG9uIHRoaXMgY2VydGlmaWNhdGUgYnkgYW55IHBhcnR5IGFzc3VtZXMgYWNjZXB0YW5jZSBvZiB0aGUgdGhlbiBhcHBsaWNhYmxlIHN0YW5kYXJkIHRlcm1zIGFuZCBjb25kaXRpb25zIG9mIHVzZSwgY2VydGlmaWNhdGUgcG9saWN5IGFuZCBjZXJ0aWZpY2F0aW9uIHByYWN0aWNlIHN0YXRlbWVudHMuMDUGA1UdHwQuMCwwKqAooCaGJGh0dHA6Ly9jcmwuYXBwbGUuY29tL2tleXNlcnZpY2VzLmNybDAOBgNVHQ8BAf8EBAMCBSAwLQYLKoZIhvdjZAYNAQMBAf8EGwGcLBpLUU8iNtuBsGfgldUUE/I42u6RKyl8uzBJBgsqhkiG92NkBg0BBAEB/wQ3AV+LX+Xo3O4lI5WzFXfxVrna5jJD1GHioNsMHMKUv97Kx9dCozZVRhmiGdTREdjOptDoUjj2ODANBgkqhkiG9w0BAQUFAAOCAQEAmkGc6tT450ENeFTTmvhyTHfntjWyEpEvsvoubGpqPnbPXhYsaz6U1RuoLkf5q4BkaXVE0yekfKiPa5lOSIYOebyWgDkWBuJDPrQFw8QYreq5T/rteSNQnJS1lAbg5vyLzexLMH7kq47OlCAnUlrI20mvGM71RuU6HlKJIlWIVlId5JZQF2ae0/A6BVZWh35+bQu+iPI1PXjrTVYqtmrV6N+vV8UaHRdKV6rCD648iJebynWZj4Gbgzqw7AX4RE6UwiX0Rgz9ZMM5Vzfgrgk8KxOmsuaP8Kgqf5KWeH/LDa+ocftU7zGz1jO5L999JptFIatsdPyZXnA3xM+QjzBW8w=="; + }, function(g, d, a) { + var c, h, k, f, p, m, r, l, x, v, n; - function b(a, c) { - var g, h, f; - g = []; - if (d.Pd(c)) { - h = {}; - f = {}; - f[a] = h; - g.push(f); - g = Object.keys(c).reduce(function(g, f) { - var m, l, p; - m = c[f]; - p = {}; - d.A_a(m) ? (l = a + ".__embed__." + f, p[l] = m, g.push(p)) : d.Pd(m) ? (l = a + ".__sub__." + f, m = b(l, m), h[f] = m[0][l], g = g.concat(m.slice(1))) : h[f] = m; - return g; - }, g); - } else f = {}, f[a] = c, g.push(f); - return g; + function b(a, b, c, d, f, g, k) { + this.mc = b; + this.ml = c; + this.JV = d; + this.Ab = f; + this.dua = g; + this.er = k; + this.ga = a.lb("DrmProvider"); } - d = a(116); - f.P = { - uTa: b, - v_a: function(a) { - var b, q; - b = Object.keys(a).map(function(a) { - return a.split("."); + Object.defineProperty(d, "__esModule", { + value: !0 + }); + g = a(0); + c = a(1); + h = a(22); + k = a(44); + f = a(99); + p = a(7); + m = a(81); + r = a(65); + l = a(167); + x = a(76); + v = a(607); + a = a(146); + b.prototype.$e = function(a) { + var b; + b = this; + return this.er().then(function(c) { + return b.mc.ou(a.ip[0].data, [8, 4]) ? { + Yb: [{ + id: "ddd", + Zu: "cert", + dD: void 0 + }], + pJ: [{ + sessionId: "ddd", + data: new Uint8Array(b.ml.decode(v.CQa)) + }] + } : b.mc.ou(a.ip[0].data, b.JV.decode("certificate")) ? { + Yb: [{ + id: "ddd", + Zu: "cert", + dD: void 0 + }], + pJ: [{ + sessionId: "ddd", + data: new Uint8Array(b.ml.decode(v.qHa)) + }] + } : b.dua.vB(b.G7a(a), b.DI(c)).then(function(a) { + return b.H7a(a); }); - b.sort(function(a, b) { - return a.length > b.length; + }); + }; + b.prototype.release = function(a) { + var b; + b = this; + return this.er().then(function(c) { + return b.dua.release(b.J7a(a), b.DI(c)).then(function(c) { + return b.K7a(c, a); }); - for (var c = b[0], d = c.length, c = a[c.join(".")], h = 1; h < b.length; h++) - for (var f = !1, k = !1, v = c, n = d; n < b[h].length; n++) { - q = b[h][n]; - switch (q) { - case "__metadata__": - break; - case "__sub__": - k = !0; - break; - case "__embed__": - f = !0; + }); + }; + b.prototype.G7a = function(a) { + var b; + b = this; + return { + ka: a.ka, + df: a.df, + JQ: a.JQ, + bh: x.fua(a.bh), + ul: l.hn[a.ul], + ip: a.ip.map(function(a) { + return { + sessionId: a.sessionId, + dataBase64: b.ml.encode(a.data) + }; + }), + CJ: a.CJ + }; + }; + b.prototype.J7a = function(a) { + var b; + b = {}; + a.hp && a.Yb[0].id && (b[a.Yb[0].id] = this.ml.encode(a.hp)); + return a && a.hp ? { + ka: a.ka, + Yb: a.Yb, + Umb: b + } : { + ka: a.ka, + Yb: a.Yb + }; + }; + b.prototype.H7a = function(a) { + return { + Yb: a.Yb, + pJ: a.pJ + }; + }; + b.prototype.K7a = function(a, b) { + return a && a.response && a.response.data && b.Yb[0].id && (a = a.response.data[b.Yb[0].id]) ? { + response: this.ml.decode(a) + } : {}; + }; + b.prototype.DI = function(a) { + return { + log: this.ga, + Ab: this.Ab, + profile: a.profile + }; + }; + n = b; + n = g.__decorate([c.N(), g.__param(0, c.l(p.sb)), g.__param(1, c.l(h.Je)), g.__param(2, c.l(k.nj)), g.__param(3, c.l(f.Iw)), g.__param(4, c.l(m.ct)), g.__param(5, c.l(a.sF)), g.__param(6, c.l(r.lq))], n); + d.CGa = n; + }, function(g, d, a) { + var c, h, k, f, p, m, r; + + function b(a, b, c, d) { + this.is = b; + this.Ab = c; + this.Yg = d; + this.log = a.lb("IdentityProvider"); + } + Object.defineProperty(d, "__esModule", { + value: !0 + }); + g = a(0); + c = a(1); + h = a(2); + k = a(7); + f = a(23); + p = a(45); + m = a(81); + a = a(318); + b.prototype.ping = function(a, b) { + var c; + c = this; + return this.Yg.npa ? new Promise(function(d, f) { + c.Yg.npa(c.DI(a, b)).then(function() { + d(); + })["catch"](function(a) { + f(new p.Ub(h.I.iY, a.T, a.ic, a.oC, a.Du, a.xl, a.Ja, a.Pn)); + }); + }) : Promise.reject(new p.Ub(h.I.iY, h.H.Yfa)); + }; + b.prototype.uy = function(a, b) { + var c; + c = this; + return this.Yg.uy ? new Promise(function(d, f) { + c.Yg.uy(c.DI(a, b)).then(function(a) { + d({ + Yt: a.Yt, + eh: a.eh, + Xi: a.Xi + }); + })["catch"](function(a) { + f(new p.Ub(h.I.rF, a.T, a.ic, a.oC, a.Du, a.xl, a.Ja, a.Pn)); + }); + }) : Promise.reject(new p.Ub(h.I.rF, h.H.Yfa)); + }; + b.prototype.DI = function(a, b) { + a = { + log: this.log, + Ab: this.Ab, + profile: a + }; + this.jcb(b) && (a.Sx = b.Sx, a.password = b.password); + this.is.tB(b) && (a.useNetflixUserAuthData = b); + this.is.Oi(b) && (a.eh = b); + return a; + }; + b.prototype.jcb = function(a) { + return void 0 === a ? !1 : this.is.pP(a) ? this.is.Oi(a.Sx) : !1; + }; + r = b; + r = g.__decorate([c.N(), g.__param(0, c.l(k.sb)), g.__param(1, c.l(f.ve)), g.__param(2, c.l(m.ct)), g.__param(3, c.l(a.qca))], r); + d.RIa = r; + }, function(g, d, a) { + var b, c, h, k, f, p, m, r, l, x, v, n; + Object.defineProperty(d, "__esModule", { + value: !0 + }); + g = a(1); + b = a(318); + c = a(437); + h = a(609); + k = a(436); + f = a(608); + p = a(606); + m = a(158); + r = a(605); + l = a(185); + x = a(146); + v = a(604); + n = a(603); + d.pkb = new g.Vb(function(a) { + a(b.qca).Gz(function() { + return A._cad_global.controlProtocol; + }); + a(c.hea).to(h.RIa).$(); + a(k.Oca).to(f.CGa).$(); + a(m.RX).to(p.nKa).$(); + a(m.Tea).to(n.hKa).$(); + a(l.QX).to(r.mKa).$(); + a(x.sF).to(v.oJa).$(); + }); + }, function(g, d) { + Object.defineProperty(d, "__esModule", { + value: !0 + }); + d.eGb = function(a) { + return a; + }; + d.zeb = function(a) { + return a; + }; + d.fGb = function(a) { + return Object.assign({}, a); + }; + }, function(g, d, a) { + var c, h, k, f, p, m, r, l, x; + + function b(a, b, c) { + this.Ma = a; + this.Tsb = b; + this.performance = c; + h.zk(this, "performance"); + } + Object.defineProperty(d, "__esModule", { + value: !0 + }); + g = a(0); + h = a(51); + k = a(611); + f = a(31); + p = a(39); + m = a(37); + r = a(1); + l = a(322); + x = a(4); + b.prototype.get = function(a, b, d) { + var g; + g = this; + return new Promise(function(k, h) { + var m, p, r; + try { + m = g.Tsb.create(); + "withCredentials" in m || h(Error("Missing CORS support")); + m.open("GET", a, !0); + b && (m.withCredentials = !0); + d && (m.timeout = d.ma(x.Aa)); + p = g.Ma.eg; + r = void 0; + m.onreadystatechange = function() { + var b; + switch (m.readyState) { + case XMLHttpRequest.HEADERS_RECEIVED: + r = g.Ma.eg.Gd(p); break; - default: - k ? (v = v[q], k = !1) : f && (v[q] = a[b[h].join(".")], f = !1); + case XMLHttpRequest.DONE: + b = g.Ma.eg.Gd(p); + k({ + body: m.responseText, + status: m.status, + headers: c.nib(m.getAllResponseHeaders()), + Oc: g.J9a(a, f.Z(m.responseText.length), b, r) + }); } - } - return c; - }, - J_a: function(a) { - return a && (0 <= a.indexOf("__sub__") || 0 <= a.indexOf("__embed__")); + }; + m.send(); + } catch (N) { + h(N); + } + }); + }; + b.nib = function(a) { + var b, d, f; + b = {}; + a = a.split("\r\n"); + for (var c = 0; c < a.length; c++) { + d = a[c]; + f = d.indexOf(": "); + 0 < f && (b[d.substring(0, f).toLowerCase()] = d.substring(f + 2)); } + return b; }; - }, function(f, c, a) { - function b(a) { - return a; + b.prototype.J9a = function(a, b, c, d) { + b = { + size: b, + duration: c, + saa: d + }; + if (!this.performance || !this.performance.getEntriesByName) return b; + c = this.performance.getEntriesByName(a); + if (0 == c.length && (c = this.performance.getEntriesByName(a + "/"), 0 == c.length)) return b; + a = c[c.length - 1]; + b = k.zeb(b); + a.v3a && (b.size = f.Z(a.v3a)); + 0 < a.duration ? b.duration = x.timestamp(a.duration) : 0 < a.startTime && 0 < a.responseEnd && (b.duration = x.timestamp(a.responseEnd - a.startTime)); + 0 < a.requestStart && (b.kpa = x.timestamp(a.domainLookupEnd - a.domainLookupStart), b.laa = x.timestamp(a.connectEnd - a.connectStart), b.saa = x.timestamp(a.responseStart - a.startTime), 0 === a.secureConnectionStart ? b.waa = x.timestamp(0) : void 0 !== a.secureConnectionStart && (c = a.connectEnd - a.secureConnectionStart, b.waa = x.timestamp(c), b.laa = x.timestamp(a.connectEnd - a.connectStart - c))); + return b; + }; + a = c = b; + a = c = g.__decorate([r.N(), g.__param(0, r.l(m.yi)), g.__param(1, r.l(l.hia)), g.__param(2, r.l(p.qY)), g.__param(2, r.optional())], a); + d.UHa = a; + }, function(g, d, a) { + var c, h, k, f, p; + + function b(a, b) { + this.is = a; + this.json = b; + h.zk(this, "json"); } + Object.defineProperty(d, "__esModule", { + value: !0 + }); + g = a(0); + c = a(1); + h = a(51); + k = a(39); + f = a(4); + a = a(23); + b.prototype.parse = function(a) { + var c; + a = this.json.parse(a); + if (!this.is.pP(a)) throw Error("FtlProbe: param: not an object"); + if (a.next && !this.is.uB(a.next)) throw Error("FtlProbe: param.next: not a positive integer"); + if (!this.is.uB(a.pulses)) throw Error("FtlProbe: param.pulses: not a positive integer"); + if (!this.is.uB(a.pulse_delay)) throw Error("FtlProbe: param.pulse_delay: not a positive integer"); + if (!this.is.uB(a.pulse_timeout)) throw Error("FtlProbe: param.pulse_timeout: not a positive integer"); + if (!this.is.Zt(a.urls)) throw Error("FtlProbe: param.urls: not an array"); + if (!this.is.Oi(a.logblob)) throw Error("FtlProbe: param.logblob: not a string"); + if (!this.is.ux(a.ctx)) throw Error("FtlProbe: param.ctx: not an object"); + for (var b = 0; b < a.urls.length; ++b) { + c = a.urls[b]; + if (!this.is.pP(c)) throw Error("FtlProbe: param.urls[" + b + "]: not an object"); + if (!this.is.uh(c.name)) throw Error("FtlProbe: param.urls[" + b + "].name: not a string"); + if (!this.is.uh(c.url)) throw Error("FtlProbe: param.urls[" + b + "].url: not a string"); + } + return { + zkb: a.pulses, + xkb: f.rb(a.pulse_delay), + ykb: f.rb(a.pulse_timeout), + Qta: a.next ? f.rb(a.next) : void 0, + Qc: a.urls, + M6: a.logblob, + context: a.ctx + }; + }; + p = b; + p = g.__decorate([c.N(), g.__param(0, c.l(a.ve)), g.__param(1, c.l(k.Ys))], p); + d.xHa = p; + }, function(g, d, a) { + var c, h, k, f, p, m; - function d() { - return b; + function b(a, b) { + this.Eg = a; + this.Ey = b; } - a(10); - f.P = { - DF: d, - b0: d + Object.defineProperty(d, "__esModule", { + value: !0 + }); + g = a(0); + h = a(1); + k = a(31); + f = a(4); + p = a(56); + a = a(112); + b.prototype.zK = function(a) { + a = this.Ey.ru("ftlProbeError", "info", c.Osb({ + url: a.url, + sc: a.status, + pf_err: a.z8 + }, a)); + this.Eg.Sb(a); }; - }, function(f, c, a) { - var b, d, h, l; - b = a(10); - d = a(116); - h = {}; - h[d.kl.cu] = function(a) { + b.Osb = function(a, b) { + b.Oc && (b = b.Oc, c.$o(a, "d", b.duration), c.$o(a, "dns", b.kpa), c.$o(a, "tcp", b.laa), c.$o(a, "tls", b.waa), c.$o(a, "ttfb", b.saa), a.sz = b.size.ma(k.Yl)); return a; }; - h[d.kl.eK] = function(a) { - a = a || new ArrayBuffer(0); - return String.fromCharCode.apply(null, new Uint8Array(a)); + b.$o = function(a, b, c) { + c && (a[b] = c.ma(f.Aa)); + return a; }; - h[d.kl.OBJECT] = function(a) { - a = a || new ArrayBuffer(0); - return JSON.parse(String.fromCharCode.apply(null, new Uint8Array(a))); + m = c = b; + m = c = g.__decorate([h.N(), g.__param(0, h.l(p.dt)), g.__param(1, h.l(a.eA))], m); + d.nOa = m; + }, function(g, d, a) { + var c, h, k, f, p, m; + + function b(a, b) { + this.Eg = a; + this.Ey = b; + } + Object.defineProperty(d, "__esModule", { + value: !0 + }); + g = a(0); + h = a(1); + k = a(31); + f = a(4); + p = a(56); + a = a(112); + b.prototype.zK = function(a) { + a = this.Ey.ru(a.M6, "info", { + ctx: a.context, + data: a.data.map(function(a) { + return { + name: a.name, + url: a.url, + data: a.data.map(function(a) { + return c.Psb({ + d: a.Oc.duration.ma(f.Aa), + sc: a.status, + sz: a.Oc.size.ma(k.Yl), + via: a.qsb, + cip: a.u_a, + err: a.Y2 + }, a); + }) + }; + }) + }); + this.Eg.Sb(a); }; - l = {}; - l[d.kl.cu] = function(a) { + b.Psb = function(a, b) { + c.$o(a, "dns", b.Oc.kpa); + c.$o(a, "tcp", b.Oc.laa); + c.$o(a, "tls", b.Oc.waa); + c.$o(a, "ttfb", b.Oc.saa); return a; }; - l[d.kl.eK] = function(a) { - for (var b = new ArrayBuffer(a.length), c = new Uint8Array(b), d = 0, g = a.length; d < g; d++) c[d] = a.charCodeAt(d); - return b; + b.$o = function(a, b, c) { + c && (a[b] = c.ma(f.Aa)); + return a; }; - l[d.kl.OBJECT] = function(a) { - return b.S(a) || b.Ja(a) ? a : l[d.kl.eK](JSON.stringify(a)); + m = c = b; + m = c = g.__decorate([h.N(), g.__param(0, h.l(p.dt)), g.__param(1, h.l(a.eA))], m); + d.oOa = m; + }, function(g, d, a) { + var c, h, k, f, p, m, r, l; + + function b(a, b, c, d, f, g, k) { + this.config = a; + this.Lsa = b; + this.ia = c; + this.u = d; + this.Ulb = f; + this.w9 = g; + this.Ncb = 0; + this.ga = k.lb("FTL"); + } + Object.defineProperty(d, "__esModule", { + value: !0 + }); + g = a(0); + h = a(1); + k = a(4); + f = a(30); + p = a(7); + m = a(320); + r = a(319); + a = a(165); + b.prototype.start = function() { + this.config.enabled && !this.Tp && (this.Tp = this.ia.Nf(this.config.AAa, this.ZD.bind(this))); }; - f.P = { - DF: function(a) { - return h[a] || h[d.kl.cu]; - }, - b0: function(a) { - return l[a] || l[d.kl.cu]; - } + b.prototype.stop = function() { + this.Tp && (this.Tp.cancel(), this.Tp = void 0); }; - }, function(f) { - function c(a) { - if (!(this instanceof c)) return new c(a); - if ("undefined" === typeof a) this.Gi = function(a, b) { - return a <= b; + b.prototype.ZD = function() { + var a, b; + a = this; + b = "" + this.config.endpoint + (-1 === this.config.endpoint.indexOf("?") ? "?" : "&") + "iter=" + this.Ncb++; + this.O$a(b).then(function(b) { + return Promise.all(b.Qc.map(function(c) { + return a.Jab(b, c.url, c.name); + })).then(function(c) { + 0 < c.length && a.Ulb.zK({ + data: c, + context: b.context, + M6: b.M6 + }); + }).then(function() { + return b; + }); + }).then(function(b) { + a.Tp && (b.Qta ? a.Tp = a.ia.Nf(b.Qta, a.ZD.bind(a)) : a.stop()); + })["catch"](function(b) { + return a.ga.error("FTL run failed", b); + }); + }; + b.prototype.O$a = function(a) { + var b; + b = this; + return this.Lsa.get(a, !1).then(function(c) { + var d; + if (200 != c.status || null == c.body) return b.w9.zK({ + url: a, + status: c.status, + z8: "FTL API request failed", + Oc: c.Oc + }), Promise.reject(Error("FTL API request failed: " + c.status)); + d = b.u.parse(c.body); + return d instanceof Error ? (b.w9.zK({ + url: a, + status: 4, + z8: "FTL Probe API JSON parsing error", + Oc: c.Oc + }), Promise.reject(d)) : Promise.resolve(d); + })["catch"](function(c) { + c instanceof Error && (b.w9.zK({ + url: a, + status: 0, + z8: c.message + }), b.ga.error("FTL API call failed", c.message)); + return Promise.reject(c); + }); + }; + b.prototype.Jab = function(a, b, d) { + var f; + f = this; + return new Promise(function(g, h) { + var x; + for (var m, p, r, l = [], u = {}, v = 0; v < a.zkb; u = { + od: u.od + }, ++v) { + u.od = 0 == v ? k.Sf : a.xkb; + x = function(d) { + return function() { + return new Promise(function(g, k) { + f.ia.Nf(d.od, function() { + c.ekb(f.Lsa, b, a.ykb).then(function(a) { + function b(a, b, c) { + a || (a = c.headers[b]); + return a; + } + m = b(m, "via", a); + p = b(p, "x-ftl-probe-data", a); + r = b(r, "x-ftl-error", a); + g({ + status: a.status, + Oc: a.Oc, + qsb: m || "", + u_a: p || "", + Y2: r || "" + }); + })["catch"](function(a) { + k(a); + }); + }); + }); + }; + }(u); + l.push(0 < v ? l[v - 1].then(x) : x()); + } + Promise.all(l).then(function(a) { + g({ + url: b, + name: d, + data: a + }); + })["catch"](function(a) { + h(a); + }); + }); + }; + b.ekb = function(a, b, c) { + return a.get(b, !1, c).then(function(a) { + return Object.assign({}, a); + }); + }; + l = c = b; + l = c = g.__decorate([h.N(), g.__param(0, h.l(a.oda)), g.__param(1, h.l(r.Bda)), g.__param(2, h.l(f.Xf)), g.__param(3, h.l(m.nda)), g.__param(4, h.l(a.Yga)), g.__param(5, h.l(a.Xga)), g.__param(6, h.l(p.sb))], l); + d.zHa = l; + }, function(g, d, a) { + var b, c, h, k, f, p, m, r; + Object.defineProperty(d, "__esModule", { + value: !0 + }); + g = a(1); + b = a(616); + c = a(615); + h = a(614); + k = a(613); + f = a(612); + p = a(320); + m = a(319); + r = a(165); + d.M7a = new g.Vb(function(a) { + a(r.pda).to(b.zHa).$(); + a(r.Yga).to(c.oOa).$(); + a(r.Xga).to(h.nOa).$(); + a(p.nda).to(k.xHa).$(); + a(m.Bda).to(f.UHa).$(); + }); + }, function(g, d) { + Object.defineProperty(d, "__esModule", { + value: !0 + }); + g = function() { + function a(a) { + this.bp = a; + } + a.prototype.Oy = function() { + var a, c, d; + a = this.bp.v9a(); + c = this.bp.w9a(); + d = this.bp.x9a(); + if ("number" === typeof a && "number" === typeof c && "number" === typeof d) return (d - a) / c; }; - else { - if ("function" !== typeof a) throw Error("heap comparator must be a function"); - this.Gi = a; + return a; + }(); + d.lLa = g; + }, function(g, d) { + Object.defineProperty(d, "__esModule", { + value: !0 + }); + g = function() { + function a(a, c) { + this.bp = a; + this.Oy = c; + } + a.prototype.v$ = function(a) { + return this.bp.v$(a); + }; + a.prototype.Tn = function() { + return this.bp.Tn(); + }; + a.prototype.Q9a = function() { + return this.Oy.Oy(); + }; + return a; + }(); + d.kLa = g; + }, function(g, d) { + Object.defineProperty(d, "__esModule", { + value: !0 + }); + g = function() { + function a(a) { + this.oua = a; + } + a.prototype.v$ = function(a) { + try { + this.oua.setItem("gtp", JSON.stringify(a)); + } catch (c) { + return !1; + } + return !0; + }; + a.prototype.vra = function() { + var a; + try { + a = this.oua.getItem("gtp"); + if (a) return JSON.parse(a); + } catch (c) {} + }; + a.prototype.Tn = function() { + var a; + a = this.vra(); + if (a && a.tp) return a.tp.a; + }; + a.prototype.v9a = function() { + var a; + a = this.s4(); + if (a) return a.p25; + }; + a.prototype.w9a = function() { + var a; + a = this.s4(); + if (a) return a.p50; + }; + a.prototype.x9a = function() { + var a; + a = this.s4(); + if (a) return a.p75; + }; + a.prototype.s4 = function() { + var a; + a = this.vra(); + if (a && (a = a.iqr)) return a; + }; + return a; + }(); + d.Aba = g; + }, function(g, d, a) { + var b, c, h; + Object.defineProperty(d, "__esModule", { + value: !0 + }); + b = a(620); + c = a(619); + h = a(618); + d["default"] = function(a) { + var d; + a = new b.Aba(a); + d = new h.lLa(a); + return new c.kLa(a, d); + }; + }, function(g, d, a) { + var c, h, k, f; + + function b(a, b, c) { + this.config = a; + this.Udb = b; + this.aj = c; + } + Object.defineProperty(d, "__esModule", { + value: !0 + }); + g = a(0); + c = a(460); + h = a(1); + k = a(160); + a = a(321); + b.prototype.P1 = function() { + if (this.config.dCa) return this.aj(this.Udb()); + }; + f = b; + f = g.__decorate([h.N(), g.__param(0, h.l(c.ufa)), g.__param(1, h.l(k.tfa)), g.__param(2, h.l(a.vfa))], f); + d.jLa = f; + }, function(g, d, a) { + var c; + + function b() {} + Object.defineProperty(d, "__esModule", { + value: !0 + }); + g = a(0); + a = a(1); + b.prototype.create = function() { + return new XMLHttpRequest(); + }; + c = b; + c = g.__decorate([a.N()], c); + d.HQa = c; + }, function(g, d, a) { + var b, c, h, k, f, p, m; + Object.defineProperty(d, "__esModule", { + value: !0 + }); + g = a(1); + b = a(623); + c = a(81); + h = a(322); + k = a(622); + f = a(186); + p = a(321); + m = a(621); + d.wgb = new g.Vb(function(a) { + a(h.hia).to(b.HQa).$(); + a(c.ct).Gz(function() { + return A._cad_global.http; + }); + a(f.aN).to(k.jLa).$(); + a(p.vfa).Ig(m["default"]); + }); + }, function(g, d) { + Object.defineProperty(d, "__esModule", { + value: !0 + }); + d.we = { + GCa: "aseexception", + HCa: "asereport", + qDa: "audioswitch", + ODa: "bitraterestriction", + PDa: "blockedautoplay", + IEa: "cdnsel", + KEa: "chgstrm", + wGa: "dlreport", + xGa: "dlreq", + gHa: "endplay", + $Ia: "intrplay", + IKa: "midplay", + zga: "playbackaborted", + mOa: "renderstrmswitch", + pOa: "repos", + tOa: "resumeplay", + bPa: "securestop", + gPa: "serversel", + pPa: "startplay", + qPa: "statechanged", + xPa: "subtitleerror", + zPa: "subtitleqoe", + QPa: "timedtextrebuffer", + RPa: "timedtextswitch", + YPa: "transition" + }; + }, function(g, d) { + Object.defineProperty(d, "__esModule", { + value: !0 + }); + d.Leb = function(a, b) { + var f, p; + if (0 !== a.length) { + if (1 === a.length) return a[0]; + for (var c = a[0], d = b(c), g = 1; g < a.length; g++) { + f = a[g]; + p = b(f); + p > d && (c = f, d = p); + } + return c; + } + }; + }, function(g, d, a) { + var c; + + function b(a, b, d) { + a = c.FW.call(this, a, b) || this; + a.mH = d; + return a; + } + Object.defineProperty(d, "__esModule", { + value: !0 + }); + c = a(326); + ia(b, c.FW); + d.GEa = b; + }, function(g, d, a) { + var c, h, k, f, p, m, r, l, x, v, n, w, q, z, E, P; + + function b(a, b, c, d, f, g, k, h, m, p, r, l, u, v) { + this.mqb = a; + this.UP = b; + this.Eg = c; + this.v7 = d; + this.j3 = f; + this.Sm = g; + this.Hd = k; + this.IQ = h; + this.Ab = m; + this.config = p; + this.Ma = r; + this.Va = l; + this.platform = u; + this.l0 = v; + } + Object.defineProperty(d, "__esModule", { + value: !0 + }); + g = a(0); + c = a(224); + h = a(411); + k = a(56); + f = a(22); + p = a(404); + m = a(220); + r = a(108); + l = a(1); + x = a(327); + v = a(324); + n = a(81); + w = a(20); + q = a(37); + z = a(24); + E = a(66); + a = a(219); + b.prototype.create = function(a) { + return new x.CJa(a, this.mqb, this.UP, this.Eg, this.v7, this.j3, this.Sm, this.Hd, this.IQ, this.Ab, this.config, this.Ma, this.Va, this.platform, this.l0); + }; + P = b; + P = g.__decorate([l.N(), g.__param(0, l.l(c.OY)), g.__param(1, l.l(h.ica)), g.__param(2, l.l(k.dt)), g.__param(3, l.l(p.Yea)), g.__param(4, l.l(m.hda)), g.__param(5, l.l(r.qA)), g.__param(6, l.l(f.Je)), g.__param(7, l.l(v.Lca)), g.__param(8, l.l(n.ct)), g.__param(9, l.l(w.je)), g.__param(10, l.l(q.yi)), g.__param(11, l.l(z.Ue)), g.__param(12, l.l(E.pn)), g.__param(13, l.l(a.Bba))], P); + d.BJa = P; + }, function(g, d, a) { + var c, h, k; + + function b(a) { + this.cg = a; + } + Object.defineProperty(d, "__esModule", { + value: !0 + }); + g = a(0); + c = a(1); + h = a(31); + a = a(73); + b.prototype.ceb = function() { + var a; + a = this.cg() ? this.cg().Df.length : 40; + return h.Z(a + 33); + }; + k = b; + k = g.__decorate([c.N(), g.__param(0, c.l(a.oq))], k); + d.zJa = k; + }, function(g, d, a) { + var h, k, f, p, m, r, l, x; + + function b(a, b, c, d, f, g, k, h, m, p, r) { + this.platform = b; + this.Y1 = c; + this.type = d; + this.severity = f; + this.timestamp = g; + this.data = k; + this.data.clver = this.platform.version; + a && a.Si && (a.Si.os && (this.data.osplatform = a.Si.os.name, this.data.osver = a.Si.os.version), this.data.browsername = a.Si.name, this.data.browserver = a.Si.version); + a.zS && (this.data.tester = !0); + a.xp && !this.data.groupname && (this.data.groupname = a.xp); + a.xr && (this.data.groupname = this.data.groupname ? this.data.groupname + "|" + a.xr : a.xr); + a.Ks && (this.data.uigroupname = a.Ks); + this.data.uigroupname && (this.data.groupname = this.data.groupname ? this.data.groupname + ("|" + this.data.uigroupname) : this.data.uigroupname); + this.data.appLogSeqNum = h; + this.data.uniqueLogId = p.S3(); + this.data.appId = m; + r && (this.data.soffms = r.by(), this.data.mid = r.R, this.data.lvpi = r.tJ, this.data.uiLabel = r.uc, this.data["startup" === d ? "playbackxid" : "xid"] = r.ka, r.Cv && (a = r.Cv, (r = r.Cv.split(".")) && 1 < r.length && "S" !== r[0][0] && (a = "SABTest" + r[0] + ".Cell" + r[1]), this.data.groupname = this.data.groupname ? this.data.groupname + "|" + a : a)); + } + + function c(a, b, c, d, f, g) { + this.Ma = a; + this.Y1 = b; + this.config = c; + this.Va = d; + this.jsb = f; + this.platform = g; + } + Object.defineProperty(d, "__esModule", { + value: !0 + }); + g = a(0); + h = a(31); + k = a(1); + f = a(37); + p = a(428); + m = a(52); + r = a(24); + l = a(210); + a = a(66); + c.prototype.ru = function(a, c, d, f) { + return new b(this.config, this.platform, this.Y1, a, c, this.Ma.eg, d, this.Va.Bra(), this.Va.id, this.jsb, f); + }; + x = c; + x = g.__decorate([k.N(), g.__param(0, k.l(f.yi)), g.__param(1, k.l(p.uca)), g.__param(2, k.l(m.$l)), g.__param(3, k.l(r.Ue)), g.__param(4, k.l(l.RY)), g.__param(5, k.l(a.pn))], x); + d.yJa = x; + na.Object.defineProperties(b.prototype, { + size: { + configurable: !0, + enumerable: !0, + get: function() { + this.hna || (this.hna = h.Z(this.Y1.encode(this.data).length)); + return this.hna; + } + } + }); + }, function(g, d, a) { + var c, h, k, f; + + function b(a) { + this.config = a; + this.Reb = c.Z(5E5); + this.knb = h.K7(1); + this.oza = h.hh(5); + this.Zua = c.Z(1E6); + } + Object.defineProperty(d, "__esModule", { + value: !0 + }); + g = a(0); + c = a(31); + h = a(4); + k = a(1); + a = a(20); + na.Object.defineProperties(b.prototype, { + tob: { + configurable: !0, + enumerable: !0, + get: function() { + return this.config().uob; + } + }, + L6: { + configurable: !0, + enumerable: !0, + get: function() { + return this.config().L6; + } + }, + X_: { + configurable: !0, + enumerable: !0, + get: function() { + return this.config().X_; + } } - this.vl = []; + }); + f = b; + f = g.__decorate([k.N(), g.__param(0, k.l(a.je))], f); + d.rJa = f; + }, function(g, d, a) { + var c, h, k, f; + + function b(a, b) { + this.Eg = a; + this.$_a = b(); + } + Object.defineProperty(d, "__esModule", { + value: !0 + }); + g = a(0); + c = a(1); + h = a(31); + k = a(56); + a = a(20); + b.prototype.Ac = function() { + this.Eg.Ac(); + }; + b.prototype.Sb = function(a) { + var b; + b = a; + this.$_a.eCa || (b = Object.assign({}, a, { + severity: a.data.sev, + size: h.Z(a.D8a().length) + })); + this.Eg.Sb(b); + }; + b.prototype.flush = function(a) { + return this.Eg.flush(a); + }; + f = b; + f = g.__decorate([c.N(), g.__param(0, c.l(k.dt)), g.__param(1, c.l(a.je))], f); + d.lJa = f; + }, function(g, d, a) { + var c, h, k; + + function b(a) { + this.config = a; } + Object.defineProperty(d, "__esModule", { + value: !0 + }); + g = a(0); + c = a(1); + h = a(188); + k = a(31); + b.prototype.measure = function(a) { + var b; + b = this; + return a.map(function(a) { + return a.size.add(b.config.ceb()); + }).reduce(function(a, b) { + return a.add(b); + }, k.Z(0)); + }; + a = b; + a = g.__decorate([c.N(), g.__param(0, c.l(h.Fea))], a); + d.AJa = a; + }, function(g, d, a) { + var h, k, f, p, m, r, l, x, v, n, w; - function a(c, h) { - var d, g, f, p, r, k, v; - d = c.vl; - g = c.Gi; - f = 2 * h + 1; - p = 2 * h + 2; - r = d[h]; - k = d[f]; - v = d[p]; - k && g(k.Vc, r.Vc) && (!v || g(k.Vc, v.Vc)) ? (b(d, h, f), a(c, f)) : v && g(v.Vc, r.Vc) && (b(d, h, p), a(c, p)); + function b(a, b, c, d, f, g, h, m) { + this.Va = a; + this.platform = c; + this.cg = d; + this.json = f; + this.mc = g; + this.Sm = h; + this.keb = m; + k.zk(this, "json"); + this.ga = b.lb("LogblobSender"); } - function b(a, b, c) { - var d; - d = a[b]; - a[b] = a[c]; - a[c] = d; + function c() { + this.entries = []; } - c.prototype.clear = function() { - this.vl = []; - }; - c.prototype.jA = function(a, c) { - this.vl.push({ - Vc: a, - value: c + Object.defineProperty(d, "__esModule", { + value: !0 + }); + g = a(0); + h = a(1); + k = a(51); + f = a(39); + p = a(4); + m = a(22); + r = a(24); + l = a(66); + x = a(73); + v = a(7); + n = a(331); + a = a(108); + b.prototype.send = function(a, b) { + var d; + d = this; + return new Promise(function(a, f) { + var g; + try { + g = b.reduce(function(a, b) { + a.entries.push(d.o2a(b)); + return a; + }, new c()); + a(d.Q7a(g)); + } catch (N) { + d.ga.error(N.message); + f(N); + } + }).then(function(b) { + return d.eE(b, a); }); - a = this.vl; - c = this.Gi; - for (var d = a.length - 1, g = 0 === d ? null : Math.floor((d - 1) / 2); null !== g && c(a[d].Vc, a[g].Vc);) b(a, d, g), d = g, g = 0 === d ? null : Math.floor((d - 1) / 2); - }; - c.prototype.remove = function() { - var c; - if (0 !== this.vl.length) { - c = this.vl[0]; - b(this.vl, 0, this.vl.length - 1); - this.vl.pop(); - a(this, 0); - return c.value; - } - }; - c.prototype.$G = function() { - if (0 !== this.vl.length) return this.vl[0].value; }; - c.prototype.enqueue = c.prototype.jA; - c.prototype.XSa = c.prototype.remove; - c.prototype.sx = function() { - return this.vl.map(function(a) { - return a.value; + b.prototype.o2a = function(a) { + return this.mc.Dk(this.mc.Dk({}, a.data), { + esn: this.cg().Df, + sev: a.severity, + type: a.type, + lver: this.platform.wua, + jssid: this.Va.id, + devmod: this.platform.y2, + jsoffms: a.timestamp.Gd(this.Va.bD).ma(p.Aa), + clienttime: a.timestamp.ma(p.Aa), + client_utc: a.timestamp.ma(p.em), + uiver: this.Sm.Kz }); }; - f.P = c; - }, function(f, c, a) { - var d, h, l, g, m; - - function b(a, c, f) { - var C, F; - - function p(a, b, c, d) { - a.info.call(a, function(a) { - var g; - try { - g = a.values[this.context].entries[b][c].size; - } catch (ja) { - g = -1; - } - 1 < g ? d(g) : this.o6(function(a) { - try { - g = a[c].size; - } catch (V) { - g = -1; - } - d(g); - }); - }.bind(a)); - } - - function r(a, c, d, g, f, m, l) { - m ? m.Ni || (m.Ni = {}) : m = { - Ni: {} - }; - C(g); - a.create(h.storage.Yx, c, d, function(d) { - d.K ? p(a, h.storage.Yx, c, function(a) { - F(a); - C(a); - m.Ni[b.JI.FT] = { - K: !0, - time: f, - El: a, - ft: c, - Bpa: d - }; - m.Lh = d.Lh; - l(null, m); - }) : (m.Ni[b.JI.FT] = { - K: !1, - ft: c, - error: d.error - }, l(null, m)); - }); - } - - function k(a, b, c, d, g, h) { - d.jA(c.time, c); - for (var f = c.time - 864E5, m = d.$G(); m && !isNaN(m.time) && m.time < f;) m = d.XSa(), C(0 - (m.ga || 0)), m = d.$G(); - d = d.sx().map(function(a) { - return a.time + ";" + a.ga; - }); - r(a, b, Array.prototype.join.call(d, "|"), c.ga, c.time, g, h); - } - - function u(a, c, d, g, h, f, m, r, u) { - a.create(d, g, h, function(h) { - var v; - if (h.K) { - v = h.Lh; - p(a, d, g, function(d) { - var l, p; - l = { - time: r, - ga: d || 0 - }; - p = { - Lh: v, - Ni: {} - }; - p.Ni[b.JI.REPLACE] = { - K: !0, - time: r, - El: d, - ft: g, - Bpa: h - }; - f ? k(a, c, l, m, p, u) : (C(d), u(null, p)); - }); - } else u(l.qK.Zl(h.error || "Failed to create item")); - }); - } - - function n(a, c, d, g, h, f, m, r, u) { - a.append(d, g, h, function(h) { - var v; - if (h.K) { - v = h.Lh; - p(a, d, g, function(d) { - var l, p; - l = { - time: r, - ga: d || 0 - }; - p = { - Lh: v, - Ni: {} - }; - p.Ni[b.JI.jEa] = { - K: !0, - time: r, - El: d, - ft: g, - Bpa: h - }; - f ? k(a, c, l, m, p, u) : (C(d), u(null, p)); - }); - } else u(l.qK.Zl(h.error || "Failed to save item")); - }); - } - - function q(a, b) { - a && d.wb(a.remove) && a.valid && a.remove(h.storage.Yx, b.Cy, function(c) { + b.prototype.Q7a = function(a) { + var b; + b = this; + try { + return this.json.stringify(a); + } catch (F) { + for (var c = {}, d = 0; d < a.entries.length; c = { + bL: c.bL, + Od: c.Od + }, ++d) { + c.Od = Object.assign({}, a.entries[d]); try { - c && (d.S(c.error) || c.error.some(function(a) { - return "NFErr_FileNotFound" === a.jnb; - })) && k(a, b.Cy, { - time: 0, - ga: 0 - }, b.RD, 0, function() {}); - } catch (Z) {} - }); - } - if (!a.valid) return m; - this.$ca = d.S(c) || d.Ja(c) ? 0 : c; - this.vV = a; - this.PV = this.nD = 0; - this.RD = new g(); - this.EJa = f || "default"; - this.Cy = this.EJa + ".NRDCACHEJOURNALKEY"; - C = function(a) { - isNaN(a) || (this.nD += a); - return this.nD; - }.bind(this); - F = function(a) { - isNaN(a) || (this.PV += a); - return this.PV; - }.bind(this); - this.Tja = function() { - return this.Cy; - }; - this.save = function(a, b, c, d) { - var g; - g = h.time.now(); - n(this.vV, this.Cy, a, b, c, 0 <= this.$ca, this.RD, g, d); - }; - this.replace = function(a, b, c, d) { - var g; - g = h.time.now(); - u(this.vV, this.Cy, a, b, c, 0 <= this.$ca, this.RD, g, d); - }; - this.Dja = function(a) { - var b, g; - b = this.nD; - a -= 864E5; - for (var c = this.RD.sx(), d = 0; d < c.length; d++) { - g = c[d]; - g.time < a && !isNaN(g.ga) && (b -= g.ga); - } - return b; - }; - (function(a) { - var b; - b = a.vV; - a.nD = 0; - b.read(h.storage.Yx, a.Cy, 0, -1, function(c) { - var d, g, f, l; - d = []; - g = 0; - f = !0; - if (c.K) { - c = String.fromCharCode.apply(null, new Uint8Array(c.value)); - c = String.prototype.split.call(c, "|"); - d = c.reduce(function(a, b) { - return a + (b.length + 40); - }, 0); - C(d); - d = c.map(function(a) { - a = a.split(";"); - return { - time: Number(a[0]), - ga: Number(a[1]) - }; - }); - try { - if (!isNaN(d.reduce(function(a, b) { - return a + b.ga; - }, 0))) - for (var f = !1, m = h.time.now() - 864E5; g < d.length; g++) { - l = d[g]; - l.time < m || (a.RD.jA(l.time, l), C(l.ga)); + this.json.stringify(c.Od); + } catch (la) { + c.bL = void 0; + this.mc.Cu(c.Od, function(a) { + return function(c, d) { + try { + b.json.stringify(d); + } catch (U) { + a.bL = U.message; + a.Od[c] = a.bL; } - } catch (D) {} + }; + }(c)); + c.Od.stringifyException = c.bL; + c.Od.originalType = c.Od.type; + c.Od.type = "debug"; + c.Od.sev = "error"; } - f && q(b, a); - }); - }(this)); - } - d = a(10); - h = a(100); - l = a(171); - g = a(494); - c = a(44); - new h.Console("DISKWRITEMANAGER", "media|asejs"); - c({ - JI: { - jEa: "saveitem", - REPLACE: "replaceitem", - FT: "journalupdate" - } - }, b); - m = { - save: function(a, b, c, d) { - d(l.c$); - }, - replace: function(a, b, c, d) { - d(l.c$); - }, - Tja: function() { - return ""; - }, - Dja: function() { - return 0; + } + return this.json.stringify(a); } }; - b.prototype.constructor = b; - f.P = { - create: function(a, c, d) { - return new b(a, c, d); - }, - Shb: m + b.prototype.eE = function(a, b) { + var c; + c = this; + return this.keb.Cg(this.ga, b, { + logblobs: a + }).then(function() {})["catch"](function(a) { + c.ga.error("PBO logblob failed", a); + return Promise.reject(a); + }); }; - }, function(f, c, a) { - var p, r, k, v, n, q, G, x; + w = b; + w = g.__decorate([h.N(), g.__param(0, h.l(r.Ue)), g.__param(1, h.l(v.sb)), g.__param(2, h.l(l.pn)), g.__param(3, h.l(x.oq)), g.__param(4, h.l(f.Ys)), g.__param(5, h.l(m.Je)), g.__param(6, h.l(a.qA)), g.__param(7, h.l(n.iga))], w); + d.DJa = w; + }, function(g, d, a) { + var c, h, k; function b() {} + Object.defineProperty(d, "__esModule", { + value: !0 + }); + g = a(0); + c = a(1); + h = a(4); + k = a(31); + b.prototype.decode = function(a) { + return { + data: a.data, + type: a.type, + severity: a.severity, + timestamp: h.rb(a.timestamp), + size: k.Z(a.size) + }; + }; + b.prototype.encode = function(a) { + return { + data: a.data, + type: a.type, + severity: a.severity, + timestamp: a.timestamp.ma(h.Aa), + size: a.size.ma(k.Yl) + }; + }; + a = b; + a = g.__decorate([c.N()], a); + d.xJa = a; + }, function(g, d, a) { + var c, h, k, f, p, m, r, l, x, v, n, w, q, z; - function d(c, g, f, m, k) { - var u; - u = p.wb(m) ? m : b; - this.Pr = c; - this.pl = f.Av; - this.sp = 0; - this.mHa = f.MUa || "NONE"; - this.ap = p.S(k) || p.Ja(k) ? 0 : k; - this.Ld = {}; - this.vn = f.Xpb || r.storage.Yx; - this.bp = g; - this.aE = n.create(this.bp, f.mSa * this.ap, this.Pr); - this.on = this.addEventListener = x.addEventListener; - this.removeEventListener = x.removeEventListener; - this.emit = this.Ha = x.Ha; - this.Fda = l(this, d.bd.REPLACE); - this.OHa = l(this, d.bd.dca); - this.bv; - this.bv = f.Vsa ? a(493) : a(492); - this.Wz(function(a) { - this.gQ(a.filter(function(a) { - return q.mA(a); - }), function(a, b) { - Object.keys(b).map(function(a) { - this.Ld[q.Oia(a)] = b[a]; - }.bind(this)); - h(this.bp, this.vn, this.Pr, function(a) { - this.sp = a; - u(this); - }.bind(this)); - }.bind(this)); - }.bind(this)); - } - - function h(a, c, d, g) { - var h; - h = p.wb(g) ? g : b; - a.query(c, d, function(a) { - var b; - b = Object.keys(a).reduce(function(b, c) { - return b + (a[c].size || 0); - }, 0); - h(b); + function b(a, b, c, d, f, g, k, m) { + var p; + p = this; + this.ia = a; + this.tf = b; + this.fy = d; + this.Hp = f; + this.config = g; + this.af = k; + this.json = m; + this.d2 = []; + h.zk(this, "json"); + this.ga = this.af.lb("MessageQueue"); + this.Bu = new w.EKa(this.Hp); + c().then(function(a) { + p.xg = a; + p.data = new n.FKa(p.Hp, a.profile); + p.Ndb(a); + })["catch"](function(a) { + p.ga.error("AccountManagerProvider threw an exception.", a); }); } - - function l(a, b) { - return function(c, f, m, l, k) { - return function(u, v) { - var n; - if (u) f || a.Ha(d.bd.ERROR, { - itemKey: c, - error: u - }), m(u); - else { - n = { - El: 0, - items: [], - time: r.time.now() - }; - Object.keys(v.Ni).map(function(b) { - var c; - c = v.Ni[b]; - b = { - key: a.wsa(c.ft), - fe: b - }; - c.K ? (n.El += c.El, b.LO = c.El) : b.error = c.error; - n.items.push(b); - }); - u = p.wb(l) ? l() : 0; - 0 < k && (n.wz = k - u); - h(a.bp, a.vn, a.Pr, function(c) { - a.sp = c; - n.Lh = a.pl - c; - f || a.Ha(b, g(n)); - m(null, n); - }); - } + Object.defineProperty(d, "__esModule", { + value: !0 + }); + g = a(0); + c = a(1); + h = a(51); + k = a(31); + f = a(119); + p = a(188); + m = a(30); + r = a(7); + l = a(65); + x = a(56); + v = a(53); + n = a(333); + w = a(333); + q = a(39); + z = a(2); + b.prototype.gr = function(a, b, c) { + var d; + try { + d = { + data: this.json.parse(this.json.stringify(a.data)), + severity: a.severity, + size: a.size, + timestamp: a.timestamp, + type: a.type }; - }; - } - - function g(a) { + this.data && c ? (this.data.gr(c.id, this.Fra(b), "logblobs", d), this.Upa()) : this.d2.push(d); + } catch (N) { + b = {}; + (c = a.data.debugMessage) && "string" === typeof c && (b.originalDebugMessage = c); + (a = a.data.debugCategory) && "string" === typeof a && (b.originalDebugCategory = a); + this.ga.error("JSON.stringify error: " + N.message, b); + } + }; + b.prototype.jz = function(a) { + this.data.jz(a); + this.Upa(); + }; + b.prototype.k8a = function() { + var a, b, c, l; + a = []; + if (this.data) { + b = this.config.Zua.to(k.Yl); + for (c in this.data.Pd) + for (var d = this.Nu(c), f = this.data.Pd[c], g = [], h = [], m = k.Z(0), p = 0; p < f.Pd.length; p++) { + l = f.Pd[p]; + g.push(l.message); + h.push(l.id); + m = m.add(this.Hp.measure([l.message])); + if (0 <= m.ql(b) || p + 1 === f.Pd.length) this.ga.trace("Batch_" + a.length + ": " + g.length + "/" + m, r.ew), a.push({ + profile: d, + Psa: h.slice(), + Pd: g.slice(), + size: m + }), g = [], h = [], m = k.Z(0); + } + } + return a; + }; + b.prototype.Ndb = function(a) { var b; - b = { - freeSize: a.Lh, - dailyBytesRemaining: a.wz, - bytesWritten: a.El, - time: a.time - }; - a.items && (b.items = a.items.map(function(a) { - return { - key: a.key, - operation: a.fe, - itemBytes: a.LO, - error: a.error - }; + b = this; + this.config.oza.zta() && (this.oma = this.tf.create(), this.oma.then(function(a) { + return a.load("messages"); + }).then(function(a) { + b.Mdb(a.value); + })["catch"](function(a) { + a.T === z.H.dm ? b.ga.info("No messages to load.") : b.ga.error("Failed to load messages.", a); })); - return b; - } - - function m(a, b) { - return 0 < b && a >= b ? !0 : !1; - } - p = a(10); - r = a(100); - k = a(171); - c = a(44); - v = new r.Console("MEDIACACHE", "media|asejs"); - n = a(495); - q = a(261); - G = a(116); - x = a(31).EventEmitter; - c({ - bd: { - dca: "writeitem", - REPLACE: "replaceitem", - FT: "journalupdate", - ERROR: "mediacache-error" + this.d2.forEach(function(c) { + b.data.gr(a.profile.id, b.Fra(!1), "logblobs", c); + }); + this.d2 = []; + }; + b.prototype.Mdb = function(a) { + var b, c, d; + b = this; + try { + c = this.Bu.decode(a); + d = this.xg.Nu(c.qP); + if (d && d.vh.id === this.data.qP) { + this.ga.trace("Loading messageQueue."); + a = {}; + for (var f in c.Pd) a.profileId = f, c.Pd[a.profileId].Pd.forEach(function(a) { + return function(c) { + c.message.data.loadedLogBlobFromPersistence = !0; + b.data.gr(a.profileId, c.id, c.url, c.message); + }; + }(a)), a = { + profileId: a.profileId + }; + } else this.ga.trace("AcountId does not match, ignoring persisted messages."); + } catch (O) { + this.ga.error("Load messageQueue failed.", O); } - }, d); - d.prototype.getName = function() { - return this.Pr; }; - d.prototype.wsa = function(a) { - return a.slice(this.Pr.length + 1); + b.prototype.Gmb = function() { + var a, b; + a = this; + b = this.Bu.encode(this.data); + this.oma.then(function(a) { + return a.save("messages", b, !1); + }).then(function() { + a.ga.info("MessageQueue: Saved", r.ew); + })["catch"](function(b) { + a.ga.error("Failed to save messages.", b); + }); }; - d.prototype.Pja = function() { - return Object.keys(this.Ld).filter(function(a) { - a = q.w_(this.Ld[a]); - return void 0 === a || 0 >= a.fha(); - }.bind(this)); + b.prototype.hpb = function() { + this.zU && (this.zU.cancel(), this.zU = void 0); }; - d.prototype.dYa = function() { - return Object.keys(this.Ld).reduce(function(a, b) { - var c; - c = this.Ld[b]; - return c && c.creationTime < a.creationTime ? { - resourceKey: b, - creationTime: c.creationTime - } : a; - }.bind(this), { - resourceKey: null, - creationTime: r.time.now() - }).isb; + b.prototype.Upa = function() { + this.config.tob && !this.zU && (this.zU = this.ia.Nf(this.config.oza, this.Jhb.bind(this))); }; - d.prototype.oXa = function() { - var a; - switch (this.mHa) { - case "FIFO": - a = this.dYa(); - } - return a; + b.prototype.Jhb = function() { + this.hpb(); + this.Gmb(); }; - d.prototype.USa = function(a) { - var c; - c = p.wb(a) ? a : b; - this.Wz(function(b) { - var d, g, h; - d = this.Ld; - g = Object.keys(d).reduce(function(a, b) { - b = d[b]; - b.resourceIndex && Object.keys(b.resourceIndex).forEach(function(b) { - a.push(b); - }); + b.prototype.Fra = function(a) { + return a ? this.fy.wH() : 0; + }; + b.prototype.Nu = function(a) { + return this.xg.Nu(a) || this.xg.profile; + }; + na.Object.defineProperties(b.prototype, { + size: { + configurable: !0, + enumerable: !0, + get: function() { + var a; + a = k.Z(0); + if (this.data) + for (var b in this.data.Pd) a = a.add(this.data.Pd[b].size); return a; - }, []); - if ((b = b.filter(function(a) { - return !q.mA(a) && 0 > g.indexOf(a); - })) && 0 < b.length) { - h = this; - r.Promise.all(b.map(function(a) { - return new r.Promise(function(b, c) { - h["delete"](a, function(a) { - a ? c(a) : b(); - }); - }); - })).then(function() { - c(void 0, { - j4: !0 - }); - }, function(a) { - c(a, { - j4: !1 - }); - }); - } else a(void 0, { - j4: !1 + } + } + }); + a = b; + a = g.__decorate([c.N(), g.__param(0, c.l(m.Xf)), g.__param(1, c.l(v.Xl)), g.__param(2, c.l(l.lq)), g.__param(3, c.l(f.dA)), g.__param(4, c.l(p.Gea)), g.__param(5, c.l(x.NX)), g.__param(6, c.l(r.sb)), g.__param(7, c.l(q.Ys))], a); + d.GKa = a; + }, function(g, d, a) { + var c, h, k, f, p, m, r, l, x, v, n; + + function b(a, b, c, d, f, g, k, m) { + var p; + p = this; + this.config = a; + this.json = c; + this.ia = d; + this.Zdb = f; + this.FJ = k; + this.rQ = m; + this.uS = this.wS = this.Nm = !1; + this.listeners = []; + h.zk(this, "json"); + this.ga = g.lb("LogBatcher"); + this.mp(); + b().then(function(a) { + p.xg = a; + p.xg.wS().subscribe(function(a) { + return p.wS = a; }); - }.bind(this)); + })["catch"](function(a) { + p.ga.error("Unable to initialize the account manager for the log batcher", a, r.ew); + }); + } + Object.defineProperty(d, "__esModule", { + value: !0 + }); + c = a(0); + g = a(1); + h = a(51); + k = a(39); + f = a(335); + p = a(65); + m = a(30); + r = a(7); + l = a(56); + x = a(334); + v = a(2); + n = a(69); + a(148); + d.Uwb = function(a, b, c) { + this.name = a; + this.message = void 0 === b ? a : b; + this.cause = c; }; - d.prototype.S6a = function(a, c, d) { - var g; - g = p.wb(c) ? c : b; - this.bp.read(this.vn, this.yw(a), 0, -1, function(b) { - var c; - if (b && b.K && b.value) { - p.wb(d) || (d = this.bv.DF(G.kl.cu), q.mA(a) ? d = this.bv.DF(G.kl.OBJECT) : (c = this.Ld[a], !p.S(c) && p.da(c.resourceIndex[a]) ? (c = c.resourceIndex[a], p.S(c) && (c = G.kl.cu), d = this.bv.DF(c)) : v.warn("Metadata is undefined or does not contain a resource format for key", a, ":", c))); - b = d(b.value); - g(null, b); - } else g(k.WC.Zl(b.error)); - }.bind(this)); + b.prototype.Ac = function() { + this.Nm = !0; }; - d.prototype.read = function(a, b, c) { - this.S6a(a, b, c); + b.prototype.Sb = function(a, b, c) { + var d; + b = void 0 === b ? !1 : b; + d = this; + 0 < a.size.ql(this.config.Reb) ? this.ga.error("Logblob is too large, dropping from the queue", { + logblobType: a.type, + logblobSize: a.size.toString() + }) : (!c && this.xg && (c = this.xg.profile), this.listeners.forEach(function(b) { + return b.wva(a); + }), b = b || 0 <= this.config.L6.indexOf(a.type), this.FJ.gr(a, b, c), this.ia.nb(function() { + d.l7a(); + })); }; - d.prototype.gQ = function(a, c, d) { - var g, h; - g = p.wb(c) ? c : b; - if ("[object Array]" !== Object.prototype.toString.call(a)) g(k.WC.Zl("item keys must be an array")); - else { - h = {}; - r.Promise.all(a.map(function(a) { - return new r.Promise(function(b, c) { - var g; - d && !p.S(d[a]) && (g = this.bv.DF(d[a])); - this.read(a, function(d, g) { - d ? (g = {}, g[a] = d, c(g)) : (h[a] = g, b()); - }, g); - }.bind(this)); - }.bind(this))).then(function() { - g(null, h); - }, function(a) { - g(a); + b.prototype.flush = function(a) { + var b; + a = void 0 === a ? !1 : a; + b = this; + return this.uS ? (this.ga.trace("LogBatcher is in error state, ignoring flush"), Promise.reject()) : new Promise(function(c, d) { + b.ga.trace("Flushing", r.ew); + b.Pf(); + b.ia.nb(function() { + b.k$(a).then(function() { + c(); + })["catch"](function() { + d(); + }); }); - } + }); }; - d.prototype.write = function(a, c, d, g, h) { - var f, l, r; - d = p.wb(d) ? d : b; - f = this.yw(a); - l = "function" === typeof h ? h() : 0; - r = G.i0(c); - r = this.bv.b0(r)(c); - r.byteLength + this.sp >= this.pl ? d(k.Kx) : m(r.byteLength + l, this.ap) ? d(k.rK) : this.aE.save(this.vn, f, c, this.OHa(a, g, d, h, this.ap), r.byteLength); + b.prototype.addListener = function(a) { + this.listeners.push(a); }; - d.prototype.replace = function(a, c, d, g, h) { - var f, l, r, u; - f = p.wb(d) ? d : b; - l = this.yw(a); - r = 0; - "function" === typeof h && (r = h()); - d = G.i0(c); - u = this.bv.b0(d)(c); - d = (this.Ld[a] || {}).size || 0; - 0 >= d && this.Ld[a] ? this.cka([a], function(b) { - v.trace("Replacing key", a, "which exists:", !!this.Ld[a], this.Ld[a] ? this.Ld[a] : void 0, "and has size", b, "with", c, "with size", u.byteLength, "plus _used", this.sp, "vs capacity", this.pl); - u.byteLength - b + this.sp >= this.pl ? f(k.Kx) : m(u.byteLength - b + r, this.ap) ? f(k.rK) : this.aE.replace(this.vn, l, c, this.Fda(a, g, f, h, this.ap), u.byteLength); - }.bind(this)) : (v.trace("Replacing key", a, "which exists:", !!this.Ld[a], this.Ld[a] ? this.Ld[a] : void 0, "and has size", d, "with", c, "with size", u.byteLength, "plus _used", this.sp, "vs capacity", this.pl), u.byteLength - d + this.sp >= this.pl ? f(k.Kx) : m(u.byteLength - d + r, this.ap) ? f(k.rK) : this.aE.replace(this.vn, l, c, this.Fda(a, g, f, h, this.ap), u.byteLength)); - }; - d.prototype.J7a = function(a, c, h, f) { - var m; - m = p.wb(c) ? c : b; - "[object Object]" !== Object.prototype.toString.call(a) ? m(k.qK.Zl("items must be a map of keys to objects")) : r.Promise.all(Object.keys(a).map(function(b) { - return new r.Promise(function(c) { - this.replace(b, a[b], function(a, d) { - a ? c({ - error: a, - key: b - }) : c(d); - }, !0, f); - }.bind(this)); - }.bind(this))).then(function(a) { - var b, c, l, k; - try { - b = Number.MAX_VALUE; - c = a.reduce(function(a, c) { - c.error || (a.El += c.El, !p.S(c.Lh) && c.Lh < b && (b = c.Lh), c.items.map(function(b) { - a.items.push({ - key: b.key, - fe: b.fe, - LO: b.LO, - o1a: b.o1a + b.prototype.removeListener = function(a) { + a = this.listeners.indexOf(a); + 0 <= a && this.listeners.splice(a, 1); + }; + b.prototype.k$ = function(a) { + a = void 0 === a ? !1 : a; + return c.__awaiter(this, void 0, void 0, function() { + var c, d, f, g, k, h, m, p, l, u, v; + + function b(b) { + for (;;) switch (c) { + case 0: + l = u; + if (u.Nm && u.wS) { + c = 1; + break; + } + c = -1; + return { + value: void 0, done: !0 + }; + case 1: + if (!u.uS) { + c = 2; + break; + } + u.ga.trace("LogBatcher is in error state, ignoring sendLogMessages"); + c = -1; + return { + value: void 0, done: !0 + }; + case 2: + p = u.FJ.k8a(); + m = !1; + if (!(0 < p.length || a)) { + c = 3; + break; + } + u.Pf(); + u.listeners.forEach(function(a) { + return a.Mza(); }); - }), b < Number.MAX_VALUE && (a.Lh = b)); - return a; - }, { - El: 0, - items: [], - time: r.time.now() - }); - 0 < this.ap && (c.wz = this.ap - f()); - l = null; - k = a.filter(function(a) { - return !p.S(a.error); - }); - 0 < k.length && (l = k.reduce(function(a, b) { - a[b.key] = b.error; - return a; - }, {})); - h || (l ? this.Ha(d.bd.ERROR, l) : this.Ha(d.bd.REPLACE, g(c))); - m(l, c); - } catch (V) { - m(V); + h = {}; + k = za(p); + g = k.next(); + case 4: + if (g.done) { + c = 6; + break; + } + h.pr = g.value; + try { + return u.jz(h.pr), u.ga.trace("Sending batch: " + h.pr.size, r.ew), c = 9, { + value: u.Zdb.send(h.pr.profile, h.pr.Pd), + done: !1 + }; + } catch (H) { + f = H; + c = 7; + break; + } + case 9: + try { + if (void 0 === b) { + c = 10; + break; + } + c = -1; + throw b; + } catch (H) { + f = H; + c = 7; + break; + } + case 10: + try { + c = 8; + break; + } catch (H) { + f = H; + c = 7; + break; + } + case 7: + d = f; + m = !0; + u.ga.warn("Failed to send logblobs.", d, r.ew); + u.oob(d) && (u.ga.trace("re-adding failed batch"), h.pr.Pd.forEach(function(a) { + return function(b, c) { + l.FJ.gr(b, 0 !== a.pr.Psa[c], a.pr.profile); + }; + }(h))); + if (!u.xob(d)) { + c = 11; + break; + } + u.uS = !0; + c = 6; + break; + case 11: + case 8: + case 5: + h = { + pr: h.pr + }; + g = k.next(); + c = 4; + break; + case 6: + case 3: + u.mp(); + if (!m) { + c = 12; + break; + } + c = -1; + throw Error("Send failure."); + case 12: + c = -1; + default: + return { + value: void 0, done: !0 + }; + } } - }.bind(this), function(a) { - h || this.Ha(d.bd.ERROR, a); - m(a); - }.bind(this)); - }; - d.prototype["delete"] = function(a, c) { - var d; - d = p.wb(c) ? c : b; - this.bp.remove(this.vn, this.yw(a), function(a) { - a && a.K ? h(this.bp, this.vn, this.yw(""), function(a) { - this.sp = a; - d(); - }.bind(this)) : d(k.Jva.Zl(a.error)); - }.bind(this)); - }; - d.prototype.Wz = function(a) { - this.query("", a); - }; - d.prototype.query = function(a, c) { - var d, g; - d = p.wb(c) ? c : b; - g = this.aE.Tja(); - this.bp.query(this.vn, this.yw(a), function(a) { - d(Object.keys(a).filter(function(a) { - return a !== g; - }).map(this.wsa.bind(this))); - }.bind(this)); + c = 0; + u = this; + v = { + next: function() { + return b(void 0); + }, + "throw": function(a) { + return b(a); + }, + "return": function() { + throw Error("Not yet implemented"); + } + }; + Ya(); + v[Symbol.iterator] = function() { + return this; + }; + return v; + }); }; - d.prototype.yw = function(a) { - return this.Pr + "." + a; + b.prototype.oob = function(a) { + return a.Ef === v.DX.$fa ? !1 : this.config.X_; }; - d.prototype.clear = function(a) { - var c; - c = p.wb(a) ? a : b; - this.Wz(function(a) { - r.Promise.all(a.map(function(a) { - return new r.Promise(function(b) { - a && this["delete"](a, function() { - b(); - }); - }.bind(this)); - }.bind(this))).then(function() { - c(a); - }, function(a) { - this.Ha(d.bd.ERROR, a); - c([], a); - }.bind(this)); - }.bind(this)); + b.prototype.xob = function(a) { + return a.tc === v.H.rda || a.tc === v.H.jF || a.tc === v.H.$z ? !0 : !1; }; - d.prototype.cka = function(a, c) { - var d, g; - d = p.wb(c) ? c : b; - g = (a || []).map(function(a) { - return this.yw(a); - }.bind(this)); - this.bp.query(this.vn, this.Pr, function(a) { - var b; - b = Object.keys(a).filter(function(a) { - return 0 <= g.indexOf(a); - }).reduce(function(b, c) { - return b + (a[c].size || 0); - }, 0); - d(b); - }.bind(this)); + b.prototype.l7a = function() { + var a; + a = this; + 0 < this.FJ.size.ql(this.config.Zua) ? this.k$()["catch"](function() { + return a.ga.warn("failed to send log messages on size threshold"); + }) : this.mp(); }; - d.prototype.IWa = function(a) { - return this.aE.Dja(a); + b.prototype.Pf = function() { + this.oy && (this.oy.cancel(), this.oy = void 0); }; - d.prototype.constructor = d; - f.P = d; - }, function(f, c, a) { - var b, d, h, l, g; - b = a(10); - d = a(100); - h = new d.Console("DISKCACHE", "media|asejs"); - l = { - context: "NULLCONTEXT", - read: function(a, b, c, d, g) { - g("MediaCache is not supported"); - }, - remove: function(a, b, c) { - c("MediaCache is not supported"); - }, - create: function(a, b, c, d) { - d("MediaCache is not supported"); - }, - append: function(a, b, c, d) { - d("MediaCache is not supported"); - }, - query: function(a, b, c) { - c([]); - } + b.prototype.mp = function() { + this.oy || (this.oy = this.ia.Nf(this.config.knb, this.js.bind(this))); }; - f.P = { - FRa: function(a) { - var c, f, m, k, n; - c = a.Nmb || "NRDMEDIADISKCACHE"; - g = a.Ez || 0; - 0 !== g || b.S(d.options) || b.S(d.options.oP) || (g = d.options.oP); - a = g; - try { - k = d.storage.dF; - if (!k || !b.Pd(k)) throw h.warn("Failed to get disk store contexts from platform"), "Platform does not support disk store"; - if (m = k[c]) h.warn("Disk store exists, returning"), f = m; - else { - if (b.S(d.storage) || !b.wb(d.storage.IM) || d.options && 0 === d.options.oP) throw h.warn("Platform doesn't support creating disk store contexts"), "Platform doesn't support creating disk store contexts"; - h.warn("Disk store context doesn't exist, creating with size " + a); - n = d.storage.IM({ - context: c, - size: a, - encrypted: !0, - signed: !0 - }); - if (!n) throw "Failed to create disk store context"; - f = n; - } - } catch (w) { - h.warn("Exception creating disk store context - returning NullContext (noops)", w); - f = l; - } - return f; - }, - gXa: function() { - return g; - } + b.prototype.js = function() { + var a; + a = this; + this.uS = !1; + this.Pf(); + this.k$()["catch"](function() { + return a.ga.warn("failed to send log messages on timer"); + }); }; - }, function(f, c, a) { - var b, d, h, l, g; - b = a(10); - h = []; - g = !1; - f.P = { - lla: function(c, f, r) { - var m; - if (g) b.wb(r) && (d.Wi || d.iA ? setTimeout(function() { - r(d); - }, 0) : h.push(r)); - else { - g = !0; - m = a(100); - m.UF(c); - l = new m.Console("MEDIACACHE", "media|asejs"); - d = new(a(262))(f, function(a) { - a && l.warn("Failed to initialize MediaCache", a); - b.wb(r) && setTimeout(function() { - r(d); - }, 0); - h.map(function(a) { - setTimeout(function() { - a(d); - }, 0); - }); - }); - } - return d; - }, - Jnb: function(c, g) { - d = new(a(262))(c, function(a, c) { - a && l.warn("Failed to initialize MediaCache", a); - b.wb(g) && setTimeout(function() { - g(c); - }, 0); - }); - } + b.prototype.jz = function(a) { + this.FJ.jz(a.Psa); + }; + b.prototype.stringify = function(a) { + var b; + b = ""; + try { + b = this.json.stringify(a.data, void 0, " "); + } catch (z) {} + return b; }; - }, function(f, c, a) { - var d, h, l, g, m, p, r, k; + a = b; + a = c.__decorate([g.N(), c.__param(0, g.l(l.NX)), c.__param(1, g.l(p.lq)), c.__param(2, g.l(k.Ys)), c.__param(3, g.l(m.Xf)), c.__param(4, g.l(f.Iea)), c.__param(5, g.l(r.sb)), c.__param(6, g.l(x.ffa)), c.__param(7, g.l(n.XE))], a); + d.sJa = a; + }, function(g, d, a) { + var c, h, k, f, p, m, r; - function b(a, b, c, f, p, r) { - m.call(this, a, c, f, r); - f = l.prototype.toString.call(this) + (p ? "(cache)" : ""); - this.push(new g(a, b, f + "(moof)", { - offset: c.offset, - ga: c.HG, - responseType: d.Ei.el - }, this, r)); - c = { - offset: this.offset + c.HG + 8, - ga: this.ga - (c.HG + 8), - responseType: d.Zg && !d.Zg.tQ.Yo ? d.Ei.el : d.Ei.Yo - }; - this.O === h.G.VIDEO && this.Lc && (this.Ad !== this.X ? (c.offset = this.offset + this.Lc.offset, c.ga = this.ga - this.Lc.offset) : this.mi > this.fa && (c.ga -= this.ga - this.Lc.offset)); - this.push(new g(a, b, f + "(mdat)", c, this, r)); + function b(a, b, d, f) { + var g; + g = this; + this.neb = a; + this.deb = b; + this.config = f; + this.o9 = []; + this.neb.SD(c.CCa, this.yab.bind(this)); + d().then(function(a) { + var b; + b = f().Bg.w7a; + g.Veb = b ? r.Oh[b.toUpperCase()] : r.Oh.ERROR; + g.Eg = a; + g.nnb(); + }); } - a(21); - d = a(9).Pa; - h = a(13); - l = a(67); - g = a(173); - m = a(172); - p = a(79).HJ; - r = a(79).X1; - k = a(30).Dv; - b.prototype = Object.create(m.prototype); - b.prototype.$y = function(a) { - var b, c; - if (this.Nf || !this.fw()) callback(!1); - else { - c = !1; - if (this.nja) c = a.appendBuffer(k(this.pia), this); - else if (this.yd && this.X != this.Ad) { - b = new p(this.stream, this.yb[0].response); - if (b = b.aqa(this.Lc.Rd, this.jb)) c = a.appendBuffer(k(b.Xp), this), this.yL(b.Xp); - this.SD(); - } else if (this.yd && this.fa != this.mi) { - b = new p(this.stream, this.yb[0].response); - if (b = b.bqa(this.Lc.Rd, this.jb)) c = a.appendBuffer(k(b.Xp), this), this.yL(b.Xp); - this.SD(); - } else c = a.append(this.yb[0].response, this); - c && (c = a.appendBuffer(r(this.yb[1].ga), this)) && (c = a.appendBuffer(this.yb[1].response, this)); - this.Nf = c; - this.z7a(); - return c; + Object.defineProperty(d, "__esModule", { + value: !0 + }); + g = a(0); + h = a(1); + k = a(20); + f = a(84); + p = a(56); + m = a(112); + r = a(7); + b.prototype.yab = function(a, b) { + this.Eg ? this.Zxa(a, b) : this.o9.push([a, b]); + }; + b.prototype.nnb = function() { + var a, b; + a = this; + b = this.o9; + this.o9 = []; + b.forEach(function(b) { + a.Zxa(b[0], b[1]); + }); + }; + b.prototype.Zxa = function(a, b) { + var c; + if (this.Eg && this.qob(a)) { + c = { + debugMessage: a.message, + debugCategory: a.Cm + }; + a.Uc.forEach(function(a) { + return c = Object.assign({}, c, a.value); + }); + c = Object.assign({}, c, { + prefix: "debug" + }); + a = this.deb.ru("debug", r.Oh[a.level].toLowerCase(), c, b); + this.Eg.Sb(a); } }; - f.P = b; - }, function(f, c, a) { - var h, l, g; - - function b(a, b, c) { - b.ga = c.byteLength; - l.call(this, a, b); - g.call(this, a, b); - h(c instanceof ArrayBuffer); - this.$u = c; - this.Ju = b.ga; - } + b.prototype.qob = function(a) { + var b; + b = this.Veb; + return void 0 !== b && a.level <= b && !a.Uc.find(function(a) { + return a.dI(r.ew); + }); + }; + a = c = b; + a.CCa = "adaptorAll"; + a = c = g.__decorate([h.N(), g.__param(0, h.l(f.lw)), g.__param(1, h.l(m.eA)), g.__param(2, h.l(p.Bea)), g.__param(3, h.l(k.je))], a); + d.bDa = a; + }, function(g, d, a) { + var b, c, h, k, f, p, m, r, l, x, v, n, q, D, z, E, P, F, t, N, O, Y, U, ga; + Object.defineProperty(d, "__esModule", { + value: !0 + }); + g = a(1); + b = a(101); + c = a(638); + h = a(637); + k = a(636); + f = a(634); + p = a(633); + m = a(632); + r = a(20); + l = a(631); + x = a(630); + v = a(629); + n = a(30); + q = a(73); + D = a(330); + z = a(334); + E = a(335); + P = a(329); + F = a(112); + t = a(188); + N = a(56); + O = a(328); + Y = a(628); + U = a(324); + ga = a(323); + d.leb = new g.Vb(function(a) { + a(N.dt).to(h.sJa).$(); + a(z.ffa).to(k.GKa).$(); + a(E.Iea).to(f.DJa).$(); + a(t.Gea).to(p.AJa).$(); + a(N.NX).to(l.rJa).$(); + a(F.eA).to(x.yJa).$(); + a(t.Fea).to(v.zJa).$(); + a(O.Hea).to(Y.BJa).$(); + a(U.Lca).to(ga.yGa).$(); + a(D.zba).to(c.bDa).$(); + a(N.Bea).vL(function(a) { + return function() { + return new Promise(function(c) { + var f, g, k, h; - function d() { - h(!1); - } - h = a(21); - c = a(71); - l = a(67); - g = a(117); - b.prototype = Object.create(l.prototype); - c(g.prototype, b.prototype); - Object.defineProperties(b.prototype, { - complete: { - get: function() { - return !0; - }, - set: d - }, - response: { - get: function() { - return this.$u; - }, - set: d - }, - Y0a: { - get: function() { - return !0; - }, - set: d - }, - Jc: { - get: function() { - return this.Ju; - }, - set: d - } + function d() { + g() && k() && h.rf ? c(a.Xb.get(N.dt)) : f.nb(d); + } + f = a.Xb.get(n.Xf); + g = a.Xb.get(r.je); + k = a.Xb.get(q.oq); + h = a.Xb.get(b.uw); + f.nb(d); + }); + }; + }); + a(P.wea).to(m.lJa).$(); }); - b.prototype.fw = function() { - return !0; + }, function(g, d) { + Object.defineProperty(d, "__esModule", { + value: !0 + }); + d.qGa = function(a, b, c, d) { + this.Df = a; + this.Im = b; + this.rC = c; + this.Nmb = d; }; - b.prototype.$y = function(a) { - return this.Nf = a.appendBuffer(this.response, this); - }; - b.prototype.oi = function() { - return -1; - }; - b.prototype.abort = function() {}; - b.prototype.ze = function() {}; - f.P = b; - }, function(f) { - f.P = { - "heaac-2-dash": { - profile: 53, - qpa: "heaac-2-dash", - kz: 2, - sampleRate: 24E3, - duration: 1024, - Qt: new Uint8Array([33, 17, 69, 0, 20, 80, 1, 70, 157, 188, 0, 0, 8, 28, 0, 0, 0, 14]).buffer - }, - "heaac-2-dash-alt": { - profile: 53, - qpa: "heaac-2-dash", - kz: 2, - sampleRate: 24E3, - duration: 1024, - Qt: new Uint8Array([33, 17, 69, 0, 20, 80, 1, 70, 240, 77, 251, 1, 60, 8, 64, 0, 0, 0, 0, 0, 0, 0, 0, 0, 7, 14, 0, 14]).buffer - }, - "ddplus-5.1-dash": { - profile: 54, - qpa: "ddplus-5.1-dash", - kz: 6, - sampleRate: 48E3, - duration: 1536, - Qt: new Uint8Array([11, 119, 1, 127, 63, 134, 255, 225, 6, 32, 0, 32, 0, 66, 10, 65, 0, 135, 216, 68, 3, 254, 202, 2, 88, 163, 1, 16, 177, 64, 146, 32, 160, 75, 20, 80, 37, 136, 35, 227, 36, 160, 152, 156, 165, 37, 38, 41, 37, 73, 74, 9, 201, 146, 130, 114, 82, 116, 160, 152, 152, 150, 136, 58, 125, 89, 245, 39, 207, 159, 63, 116, 150, 147, 242, 73, 95, 165, 171, 175, 253, 215, 126, 82, 21, 55, 188, 8, 165, 126, 249, 242, 100, 175, 255, 249, 73, 42, 255, 253, 215, 124, 246, 156, 23, 239, 108, 36, 134, 249, 211, 228, 181, 255, 246, 253, 205, 119, 176, 179, 86, 126, 166, 27, 231, 175, 225, 58, 255, 222, 170, 110, 127, 249, 215, 41, 232, 146, 73, 183, 0, 88, 211, 192, 0, 0, 31, 7, 178, 116, 62, 122, 114, 245, 8, 233, 196, 71, 223, 196, 18, 59, 202, 113, 248, 103, 242, 80, 250, 118, 15, 1, 60, 79, 251, 46, 14, 8, 9, 37, 4, 14, 183, 67, 131, 195, 103, 241, 250, 32, 124, 81, 61, 76, 9, 40, 161, 2, 1, 16, 64, 114, 219, 225, 217, 172, 140, 44, 12, 64, 147, 49, 210, 195, 206, 12, 52, 186, 196, 0, 107, 134, 202, 4, 9, 216, 72, 67, 11, 127, 185, 13, 125, 124, 124, 194, 90, 203, 69, 1, 209, 8, 129, 183, 36, 196, 101, 7, 248, 73, 181, 38, 181, 30, 232, 124, 27, 18, 222, 207, 92, 251, 85, 227, 78, 0, 70, 196, 59, 0, 207, 194, 0, 252, 226, 209, 111, 144, 239, 111, 148, 54, 39, 28, 176, 248, 160, 58, 88, 113, 9, 76, 65, 57, 180, 96, 82, 224, 115, 52, 208, 161, 184, 86, 120, 211, 212, 168, 13, 52, 217, 124, 121, 189, 237, 163, 53, 72, 52, 157, 245, 160, 110, 16, 182, 219, 180, 152, 180, 136, 47, 23, 151, 198, 192, 20, 62, 220, 249, 107, 82, 0, 0, 0, 234, 22, 24, 202, 252, 104, 154, 198, 95, 7, 98, 110, 113, 104, 187, 197, 110, 105, 201, 123, 18, 61, 45, 233, 135, 20, 0, 151, 155, 45, 131, 75, 174, 9, 228, 53, 214, 32, 19, 131, 131, 87, 146, 156, 22, 16, 160, 0, 0, 5, 169, 31, 241, 155, 119, 242, 21, 168, 176, 225, 35, 130, 186, 60, 97, 189, 244, 57, 5, 158, 124, 200, 224, 156, 74, 33, 48, 12, 75, 235, 252, 25, 83, 61, 12, 178, 134, 75, 92, 124, 56, 71, 63, 232, 35, 142, 23, 11, 179, 154, 25, 17, 254, 160, 55, 0, 28, 144, 253, 91, 117, 102, 221, 190, 135, 231, 10, 70, 30, 23, 176, 0, 0, 1, 176, 4, 8, 133, 150, 0, 255, 79, 159, 83, 83, 77, 46, 180, 197, 95, 161, 141, 13, 44, 47, 253, 61, 176, 86, 148, 52, 201, 148, 194, 126, 246, 155, 165, 78, 181, 18, 73, 32, 28, 45, 70, 221, 101, 80, 78, 20, 6, 206, 130, 30, 219, 0, 30, 251, 237, 127, 232, 113, 255, 107, 248, 25, 147, 2, 185, 140, 224, 224, 189, 152, 101, 89, 28, 152, 47, 182, 88, 216, 198, 90, 3, 213, 0, 64, 150, 89, 96, 5, 18, 73, 32, 18, 105, 56, 170, 112, 129, 132, 77, 233, 15, 190, 8, 58, 109, 254, 217, 232, 164, 181, 91, 34, 227, 8, 27, 140, 83, 141, 186, 71, 175, 110, 91, 83, 37, 82, 15, 247, 58, 112, 134, 42, 42, 18, 3, 0, 8, 18, 196, 44, 5, 18, 73, 32, 25, 234, 135, 27, 145, 161, 76, 95, 163, 44, 124, 140, 151, 13, 189, 174, 93, 108, 80, 63, 112, 61, 88, 28, 46, 219, 213, 65, 40, 74, 243, 69, 108, 141, 37, 80, 21, 72, 191, 2, 50, 88, 122, 3, 0, 0, 10, 36, 146, 64, 54, 170, 52, 196, 80, 163, 79, 142, 148, 81, 36, 46, 131, 66, 255, 221, 26, 128, 73, 23, 103, 49, 192, 55, 30, 59, 219, 161, 166, 249, 122, 141, 88, 62, 36, 228, 107, 116, 158, 14, 252, 92, 103, 226, 0, 0, 20, 73, 36, 128, 113, 105, 27, 109, 199, 165, 26, 100, 240, 30, 8, 113, 124, 175, 175, 166, 144, 115, 74, 138, 80, 24, 32, 117, 28, 206, 194, 21, 85, 40, 218, 254, 177, 100, 37, 127, 63, 131, 208, 68, 250, 76, 169, 40, 0, 0, 0, 0, 0, 0, 0, 95, 208, 40, 5]).buffer - } - }; - }, function(f, c, a) { - var h, l, g, m, p; - - function b(a, b, c) { - g.call(this, a, b, c); - this.Jha = []; - this.Sv = []; - } + }, function(g, d, a) { + var c, h, k, f, p, m, r, l, x, v, n, q, D; - function d(a, c) { - b.call(this, a, c); + function b(a, b, c, d, f, g, k, h, m) { + this.dpa = a; + this.tf = b; + this.Pa = d; + this.X1 = f; + this.Rd = g; + this.debug = k; + this.JL = h; + this.W1 = m; + this.bF = /^(SDK-|SLW32-|SLW64-|SLMAC-|.{10})([A-Z0-9-=]{4,})$/; + this.log = c.lb("Device"); } - a(21); - h = a(30).Dv; - l = a(175); - g = a(268).XT; - m = a(501); - a(68); - p = a(68).Mca; - a(68); - b.prototype = Object.create(g.prototype); - b.prototype.eZ = function(a, c, d) { - return new b(this.stream, { - data: this.data, - offset: c, - length: d - }, a); + Object.defineProperty(d, "__esModule", { + value: !0 + }); + g = a(0); + c = a(2); + h = a(23); + k = a(640); + f = a(7); + p = a(340); + m = a(44); + r = a(137); + l = a(22); + x = a(1); + v = a(53); + n = a(337); + q = a(336); + D = a(87); + b.prototype.dqa = function(a) { + try { + return a.match(this.bF)[2]; + } catch (E) {} }; - b.prototype.zj = function(a, b) { - this.Ky(a, void 0, b); + b.prototype.eqa = function(a) { + try { + return a.match(this.bF)[1]; + } catch (E) {} }; - b.prototype.Ky = function(a, b, c) { - c = void 0 !== c ? c : this.offset; - this.Wu ? this.Wu.Ky(a, b, c) : this.Sv.push({ - offset: c, - remove: a, - replace: b + b.prototype.create = function(a) { + var b; + b = this; + return new Promise(function(d, f) { + b.tf.create().then(function(g) { + var m, p, r, l, u, v; + + function h(g) { + b.Pa.Oi(g) && b.Pa.Oi(m) ? (p = new k.qGa(g, m, r, a.epa || "cadmium"), d(p)) : f({ + T: c.H.yca + }); + } + m = a.Im; + if (a.R3) { + u = a.Df; + if (b.Pa.Oi(u)) { + v = b.eqa(u); + v != a.Im && b.log.error("esn prefix from ui is different", { + ui: v, + cad: a.Im, + ua: a.userAgent + }); + } else a.I6 && b.log.error("esn from ui is missing"); + v = Promise.resolve({ + S: !1 + }); + a.vI && (v = b.Kdb(g, a)); + v.then(function(d) { + d.S && d.rC && d.deviceId ? (r = d.rC, h(m + d.deviceId)) : g.load(a.CQ).then(function(a) { + l = a.value; + b.Pa.Oi(l) && (b.Pa.Oi(u) ? (a = b.dqa(u), r = a === l ? "storage_matched_esn_in_config" : "storage_did_not_match_esn_in_config") : r = "storage_esn_not_in_config", h(m + l)); + })["catch"](function(d) { + var p; + + function k() { + g.save(a.CQ, p, !1).then(function() { + h(m + p); + })["catch"](function(a) { + f(a); + }); + } + d.T === c.H.dm ? (b.Pa.Oi(a.Df) ? (p = b.dqa(a.Df), b.Pa.Oi(p) ? r = "config_since_not_in_storage" : (r = "generated_since_invalid_in_config_and_not_in_storage", b.log.error("invalid esn passed from UI", a.Df), p = b.dpa.Qqa())) : (r = "generated_since_not_in_config_and_storage", p = b.dpa.Qqa()), k()) : f(d); + }); + })["catch"](f); + } else a.d4a && b.X1 && b.X1.getKeyByName ? b.X1.getKeyByName(a.rYa).then(function(a) { + a = a.id; + if (b.Pa.uh(a)) a = String.fromCharCode.apply(void 0, b.Rd.decode(a)), b.debug.assert("" != a), m = b.eqa(a), h(a); + else throw "ESN from getKeyByName is not a string"; + })["catch"](function(a) { + f({ + T: c.H.tW, + Ja: b.JL.ad(a) + }); + }) : a.c4a && b.W1 && b.W1.kra ? b.W1.kra().then(function(a) { + var c; + a = String.fromCharCode.apply(void 0, a); + c = m + a; + b.debug.assert(b.bF.test(a)); + h(c); + })["catch"](function() { + f({ + T: c.H.tW + }); + }) : h(); + })["catch"](function(a) { + f(a); + }); }); }; - b.prototype.oL = function(a, b) { - b = void 0 !== b ? b : this.offset; - this.Wu ? this.Wu.o.oL(a, b) : this.Jha.push({ - offset: b, - Ga: a + b.prototype.Kdb = function(a, b) { + var c; + c = this; + return new Promise(function(d, f) { + c.Odb(a, b).then(function(f) { + b.nsa ? c.vI(b.nsa).then(function(g) { + var k; + if (c.Pa.uh(g) && c.bF.test(b.Im + g)) { + k = Promise.resolve(); + c.m6a(f, g) && (k = c.Vqb(a, b)); + k.then(function() { + a.save(b.CQ, g, !1)["catch"](function(a) { + c.log.error("Failed to persist hardware esn", { + esn: g, + exception: c.JL.ad(a) + }); + }); + d({ + S: !0, + deviceId: g, + rC: "hardware_deviceid" + }); + })["catch"](function(a) { + c.log.error("Exception transitioning hesn", { + exception: c.JL.ad(a) + }); + d({ + S: !1 + }); + }); + } else c.log.error("Invalid Hardware ESN", { + deviceId: g + }), d({ + S: !1 + }); + })["catch"](function(a) { + c.log.error("Exception generating hardwareId", { + exception: c.JL.ad(a) + }); + d({ + S: !1 + }); + }) : (c.log.error("hardwareDeviceId not provided"), d({ + S: !1 + })); + })["catch"](f); }); }; - b.prototype.yy = function() { - var a, b, c, d; - if (0 < this.Sv.length) { - this.Jha.forEach(function(a) { - var b, c; - b = a.Ga + this.view.getUint32(a.offset); - c = this.Sv.reduce(function(c, d) { - return d.offset > a.Ga && d.offset < b ? c + (d.remove - (d.replace ? d.replace.byteLength : 0)) : c; - }, 0); - this.view.setUint32(a.offset, b - a.Ga - c); - }.bind(this)); - a = []; - this.Sv.sort(function(a, b) { - return a.offset - b.offset; + b.prototype.Odb = function(a, b) { + var d; + d = this; + return new Promise(function(f) { + a.load(b.CQ).then(function(a) { + a = a.value; + d.Pa.uh(a) && d.bF.test(b.Im + a) ? f(a) : (f(void 0), d.log.error("Invalid ESN Loaded", { + deviceId: a + })); + })["catch"](function(a) { + a.T !== c.H.dm && d.log.error("Error loading ESN", a); + f(void 0); }); - this.Sv = this.Sv.reduce(function(a, b) { - var c, d; - if (0 === a.length) return a.push(b), a; - c = a[a.length - 1]; - d = c.offset + c.remove; - b.offset >= d ? a.push(b) : b.offset + b.remove > d && (c.remove += b.offset + b.remove - d, b.replace && (c.replace = c.replace ? h(c.replace, b.replace) : b.replace)); - return a; - }, []); - b = 0; - c = this.data.byteLength; - d = 0; - this.Sv.filter(function(a) { - return a.offset < c; - }).forEach(function(c) { - c.offset > b && (a.push(this.data.slice(b, c.offset)), d += c.offset - b); - c.replace && (a.push(c.replace), d += c.replace.byteLength); - b = c.offset + c.remove; - }.bind(this)); - a.push(this.data.slice(b)); - d += c - b; - return { - Xp: a, - length: d, - OA: this.data.byteLength - }; - } - return { - Xp: [this.data], - length: this.data.byteLength, - OA: this.data.byteLength - }; - }; - d.prototype = Object.create(b.prototype); - d.prototype.aqa = function(a, b, c, d) { - return this.yd(a, b, !1, c, d); + }); }; - d.prototype.bqa = function(a, b, c, d) { - return this.yd(a, b, !0, c, d); + b.prototype.m6a = function(a, b) { + return a !== b; }; - d.prototype.yd = function(a, b, c, d, g) { - var f, p, r, k, u, v, n, q, z, w, t, V, D, A; - - function h(a) { - r = p[a]; - k = r.bn("traf"); - if (void 0 === k || void 0 === k.Fp) return !1; - u = k.bn("tfdt"); - if (void 0 === u) return !1; - v = k.bn("trun"); - return void 0 === v ? !1 : !0; - } - f = []; - if (!this.parse()) return !1; - p = this.ic.moof; - if (!p || 0 === p.length) return !1; - if (void 0 !== a) - for (n = a, a = 0; a < p.length; ++a) { - if (!h(a)) return !1; - if (v.$c > n || c && v.$c === n) break; - n -= v.$c; - } else if (a = c ? p.length - 1 : 0, !h(a)) return !1; - c && a < p.length - 1 ? (f = p[a + 1], this.zj(this.lZ - f.startOffset, f.startOffset)) : !c && 0 < a && this.zj(r.startOffset, 0); - f = k.bn("tfhd"); - if (void 0 === f) return !1; - u = k.bn("tfdt"); - q = v.$c; - z = k.bn("saiz"); - w = k.bn("saio"); - t = k.bn(l.Q$); - V = k.bn("sbgp"); - if (!(!z && !w || z && w)) return !1; - D = k.bn("sdtp"); - if (this.ic.mdat && a < this.ic.mdat.length) A = this.ic.mdat[a]; - else if (a !== p.length - 1) return !1; - void 0 === n && (n = c ? v.$c : 0); - if (v.yd(k, f, A || this, b, n, k.Fp, c)) v.oia && (!c && u && u.yd(v.k$a), z && w && (z.yd(v.wB, c), w.yd(t ? 0 : z.H4, k.Fp, c)), t && t.yd(v.wB, c), D && D.yd(v.wB, q, c), V && V.yd(v.wB, c)); - else if (!c) { - if (a === p.length - 1) return !1; - this.zj(p[a + 1].startOffset - r.startOffset, r.startOffset); - } else if (0 === v.wB) return !1; - d && m[g || this.profile] && v.K7a(k, f, A, c, d, m[g || this.profile]); - f = this.yy(); - v.oia && !A && (f.dB = k.Fp + v.dB, f.Gq = v.Gq); - return f; + b.prototype.Vqb = function(a, b) { + return a.remove(b.kgb); }; - f.P = { - HJ: d, - X1: function(a) { - var b, c; - b = new ArrayBuffer(8); - c = new DataView(b); - c.setUint32(0, a + 8); - c.setUint32(4, p("mdat")); - return b; - } + b.prototype.vI = function(a) { + var b; + b = this; + return new Promise(function(c, d) { + try { + D.ta.from(a.hardwareDeviceId).tE(1).subscribe(function(a) { + b.Pa.uh(a) ? c(a) : d("Hardware deviceId was not a string: " + a); + }, function(a) { + d(a); + }); + } catch (la) { + d(la); + } + }); }; - }, function(f, c, a) { - var h, l; + a = b; + a = g.__decorate([x.N(), g.__param(0, x.l(p.Ica)), g.__param(1, x.l(v.Xl)), g.__param(2, x.l(f.sb)), g.__param(3, x.l(h.ve)), g.__param(4, x.l(q.tca)), g.__param(5, x.l(m.nj)), g.__param(6, x.l(r.YE)), g.__param(7, x.l(l.Je)), g.__param(8, x.l(n.sca))], a); + d.rGa = a; + }, function(g, d, a) { + var c, h, k, f, p, m; - function b(a, b, c, d) { - var g; - g = a.reduce(function(a, b) { - return a + (b && b.length || 0); - }, 0); - this.If = c; - this.IKa = d; - this.Iy = new Uint16Array(a.length); - this.EL = new Uint16Array(g); - this.Uu = new Uint32Array(g); - for (var h = d = 0; d < a.length; ++d) this.Iy[d] = h, a[d] && (a[d].forEach(function(a, d) { - var g; - g = new l(a.timestamp, b); - this.EL[h + d] = g.Gz(c); - this.Uu[h + d] = a.offset; - }.bind(this)), h += a[d].length); + function b(a, b) { + this.Ma = a; + this.rK = b; } + Object.defineProperty(d, "__esModule", { + value: !0 + }); + g = a(0); + c = a(37); + h = a(4); + k = a(118); + f = a(339); + p = a(51); + a = a(1); + b.prototype.Qqa = function() { + for (var a = "", b = this.Ma.eg.ma(h.Aa), c = 6; c--;) a = "0123456789ACDEFGHJKLMNPQRTUVWXYZ" [b % 32] + a, b = Math.floor(b / 32); + for (; 30 > a.length;) a += "0123456789ACDEFGHJKLMNPQRTUVWXYZ" [this.rK.e9(new f.Vga(0, 31, p.Zgb))]; + return a; + }; + m = b; + m = g.__decorate([a.N(), g.__param(0, a.l(c.yi)), g.__param(1, a.l(k.KF))], m); + d.pGa = m; + }, function(g, d, a) { + var b, c, h, k, f; + Object.defineProperty(d, "__esModule", { + value: !0 + }); + g = a(1); + b = a(73); + c = a(340); + h = a(642); + k = a(338); + f = a(641); + d.cg = new g.Vb(function(a) { + a(b.oq).ih(function() { + return function() { + return A._cad_global.device; + }; + }); + a(k.Jca).to(f.rGa).$(); + a(c.Ica).to(h.pGa).$(); + }); + }, function(g, d, a) { + var c, h; - function d() { - h(!1); + function b(a) { + this.rf = a; + this.rU = 0; + this.S5 = !1; + this.pz = []; } - h = a(21); - new(a(9)).Console("FRAGMENTS", "media|asejs"); - l = a(72); - Object.defineProperties(b.prototype, { - length: { - get: function() { - return this.Iy.length; - }, - set: d - }, - i3: { - get: function() { - return this.Uu; - }, - set: d - } + Object.defineProperty(d, "__esModule", { + value: !0 }); - b.prototype.get = function(a) { - h(0 <= a); - if (a >= this.Iy.length) return []; - for (var b = [], c = a === this.Iy.length - 1 ? this.EL.length : this.Iy[a + 1], d = this.Iy[a]; d < c; ++d) b.push({ - Rd: this.EL[d], - Qb: this.IKa(a) + this.If.O2(this.EL[d]).hh, - offset: this.Uu[d] + g = a(0); + c = a(1); + a = a(101); + b.prototype.send = function(a) { + var b, c, d; + b = this; + c = !!a.eJ && 0 !== this.rU; + d = this.pz.some(function(a) { + return !!a.oT.eJ; + }); + return (c || this.S5 || d ? new Promise(function(c, d) { + b.pz.push({ + oT: a, + resolve: c, + reject: d + }); + }) : this.eE(a)).then(function(a) { + b.Gwa(); + return a; + })["catch"](function(a) { + b.Gwa(); + throw a; }); - return b; }; - f.P = b; - }, function(f, c, a) { - (function() { - var n32, F, N, t, ca, Z, O, B, A, V, D, S, H, X, U, ha, ba, ea, ia, ka, P, la, Y, aa, fa, ga, ma, na, oa, pa, c6u, o6u, P6u, Y3u; - - function q(a) { - var S42, b, c, d; - S42 = 2; - while (S42 !== 13) { - switch (S42) { - case 5: - S42 = a && a.data ? 4 : 13; - break; - case 2: - b = []; - S42 = 5; - break; - case 4: - for (c in a.data) { - d = a.data[c]; - 0 < d.length && (b[d[0].O] = { - ib: c, - pi: a.headers[c], - data: d - }); - } - b.Nk = a.Nk; - b.Em = a.Em; - b.Ol = a.Ol; - S42 = 7; - break; - case 7: - b.Qk = a.Qk; - b.Qj = a.Qj; - return b; - break; - } - } - } - - function v(a, b) { - var d42, c, V3u, d3u; - d42 = 2; - while (d42 !== 3) { - V3u = "me"; - V3u += "diaca"; - V3u += "c"; - V3u += "he"; - d3u = "medi"; - d3u += "a"; - d3u += "c"; - d3u += "ache-erro"; - d3u += "r"; - switch (d42) { - case 4: - c.on(a, d3u, function(a) { - var b42, r3u, n3u; - b42 = 2; - while (b42 !== 5) { - r3u = "med"; - r3u += "iac"; - r3u += "ac"; - r3u += "h"; - r3u += "e"; - n3u = "e"; - n3u += "r"; - n3u += "r"; - n3u += "o"; - n3u += "r"; - switch (b42) { - case 2: - a.type = n3u; - b.Ha(r3u, a); - b42 = 5; - break; - } - } - }); - d42 = 3; - break; - case 2: - c = new ka(); - c.on(a, V3u, function(a) { - var D42, X3u; - D42 = 2; - while (D42 !== 4) { - X3u = "me"; - X3u += "di"; - X3u += "a"; - X3u += "ca"; - X3u += "che"; - switch (D42) { - case 2: - D42 = a.keys || a.items ? 1 : 5; - break; - case 9: - D42 = a.keys && a.items ? 9 : 7; - break; - D42 = a.keys || a.items ? 1 : 5; - break; - case 1: - a.keys || a.items.map(function(a) { - var J42; - J42 = 2; - while (J42 !== 1) { - switch (J42) { - case 4: - return a.key; - break; - J42 = 1; - break; - case 2: - return a.key; - break; - } - } - }); - D42 = 5; - break; - case 5: - b.Ha(X3u, a); - D42 = 4; - break; - } - } - }); - d42 = 4; - break; - } - } - } - - function x(a) { - var W42, b; - W42 = 2; - while (W42 !== 8) { - switch (W42) { - case 4: - b.audioSampleRate = a.Mn; - b.audioFrameLength = a.Kn; - return b; - break; - case 2: - b = y(a); - b.fragmentsTimescale = a.T && a.T.jb || void 0; - W42 = 4; - break; - } - } - } - - function g(a) { - var u32, b; - u32 = 2; - while (u32 !== 3) { - switch (u32) { - case 2: - b = 0; - F.forEach(a, function(a) { - var Z32; - Z32 = 2; - while (Z32 !== 1) { - switch (Z32) { - case 2: - F.forEach(a.streams, function(a) { - var z32; - z32 = 2; - while (z32 !== 1) { - switch (z32) { - case 2: - b = Math.max(b, a.bitrate); - z32 = 1; - break; - } - } - }); - Z32 = 1; - break; - } - } - }); - return b; - break; - } - } + b.prototype.eE = function(a) { + this.rU++; + a.eJ && (this.S5 = !0); + return this.rf.send(a); + }; + b.prototype.Iza = function(a) { + this.eE(a.oT).then(function(b) { + a.resolve(b); + })["catch"](function(b) { + a.reject(b); + }); + }; + b.prototype.Gwa = function() { + var a; + this.rU--; + this.S5 = !1; + if (0 === this.rU && 0 < this.pz.length) { + a = this.pz.shift(); + this.Iza(a); + if (!a.oT.eJ) + for (; 0 < this.pz.length && !this.pz[0].oT.eJ;) this.Iza(this.pz.shift()); } + }; + h = b; + h = g.__decorate([c.N(), g.__param(0, c.l(a.uw))], h); + d.QKa = h; + }, function(g, d, a) { + var c, h, k, f, p, m, r, l, x, v, n, q, D, z, E, P, F, t, N; - function G(a) { - var j42; - j42 = 2; - while (j42 !== 1) { - switch (j42) { - case 2: - return { - priority: a.Vc, - movieId: a.M, - headers: Object.create(null), - saveToDisk: a.Sd, - stats: {}, - firstSelectedStreamBitrate: a.Nk, - initSelectionReason: a.Em, - histDiscountedThroughputValue: a.Ol, - histTdigest: a.Qj, - histAge: a.Qk - }; - break; - } - } - } - n32 = 2; + function b(a, b, c, d, f, g, h, m, p, r, l, u, v, x) { + this.platform = a; + this.config = b; + this.uI = c; + this.ndb = d; + this.Rd = f; + this.Va = g; + this.rf = h; + this.qnb = m; + this.sE = p; + this.Vl = r; + this.mc = l; + this.rK = u; + this.json = v; + this.j0 = x; + this.pl = []; + k.zk(this, "json"); + } + Object.defineProperty(d, "__esModule", { + value: !0 + }); + g = a(0); + h = a(1); + k = a(51); + f = a(66); + p = a(20); + m = a(52); + r = a(24); + l = a(44); + x = a(4); + v = a(101); + n = a(228); + q = a(99); + D = a(22); + z = a(2); + E = a(118); + P = a(81); + F = a(39); + t = a(88); + a = a(342); + b.prototype.send = function(a, b, d, f) { + var l, u, v, n; - function b(a, b) { - var a32; - a32 = 2; - while (a32 !== 1) { - switch (a32) { - case 4: - return b.Vc % a.Vc; - break; - a32 = 1; - break; - case 2: - return b.Vc - a.Vc; - break; - } - } - } + function g(b) { + return new Promise(function(c, d) { + function f(a) { + var d, f; - function n(a, b, c, d) { - var g42; - g42 = 2; - while (g42 !== 27) { - switch (g42) { - case 18: - this.Ji = this.ZV = void 0; - this.Zr && (this.H.Ez || (this.H.Ez = (N.options || {}).oP || 0), this.qL = new U(function(a, b) { - var p42; - p42 = 2; - while (p42 !== 1) { - switch (p42) { - case 2: - (void 0 !== d ? d.lla : function(a) { - var q42; - q42 = 2; - while (q42 !== 1) { - switch (q42) { - case 4: - return P.lla(N, this.H, a); - break; - q42 = 1; - break; - case 2: - return P.lla(N, this.H, a); - break; - } - } - }.bind(this))(function(c) { - var I42; - I42 = 2; - while (I42 !== 3) { - switch (I42) { - case 2: - this.Ji = c; - this.ZV = c.iA; - v(this.Ji, this); - this.ZV ? b(this.ZV) : a(); - I42 = 3; - break; - } - } - }.bind(this)); - p42 = 1; - break; - } - } - }.bind(this))); - g42 = 16; - break; - case 3: - this.ry = 0; - this.yn = []; - this.HD = b.RM; - this.gv = []; - g42 = 6; - break; - case 2: - this.La = a; - this.ul = Object.create(null); - this.H = b; - this.Gc = Object.create(null); - g42 = 3; - break; - case 6: - this.LK = !1; - this.vy = []; - this.My = {}; - this.on = this.addEventListener = ia.addEventListener; - g42 = 11; - break; - case 11: - this.removeEventListener = ia.removeEventListener; - this.emit = this.Ha = ia.Ha; - this.dIa = m.bind(this); - this.Zr = (this.H.Bx || this.H.Ssa) && 0 < (this.H.Ez || (N.options || {}).oP || 0); - g42 = 18; - break; - case 16: - this.wj = c; - H.call(this); - g42 = 27; - break; - } - } - } - while (n32 !== 69) { - c6u = "me"; - c6u += "di"; - c6u += "a|asej"; - c6u += "s"; - o6u = "M"; - o6u += "EDI"; - o6u += "ACACH"; - o6u += "E"; - P6u = "med"; - P6u += "i"; - P6u += "a|asejs"; - Y3u = "HE"; - Y3u += "ADE"; - Y3u += "RCACHE"; - switch (n32) { - case 20: - X = a(72); - U = N.Promise; - ha = new N.Console(Y3u, P6u); - ba = new N.Console(o6u, c6u); - ea = a(31); - ia = ea.EventEmitter; - ka = ea.kC; - n32 = 26; - break; - case 72: - n.prototype.gKa = function(a) { - var f82 = v7AA; - var R52, b, c, d, g, h, f, a6u, i6u, I6u, m6u, O6u; - R52 = 2; - while (R52 !== 17) { - a6u = "head"; - a6u += "e"; - a6u += "r"; - i6u = "."; - i6u += "h"; - i6u += "eade"; - i6u += "r"; - i6u += "Data"; - I6u = ".metada"; - I6u += "t"; - I6u += "a"; - m6u = ".f"; - m6u += "rag"; - m6u += "m"; - m6u += "en"; - m6u += "ts"; - O6u = ".d"; - O6u += "r"; - O6u += "mH"; - O6u += "eader"; - switch (R52) { - case 3: - R52 = !a.Sd || !this.Zr || a.GA[d] && a.GA[d].header ? 9 : 7; - break; - case 2: - b = this.H; - c = function() { - var u52; - u52 = 2; - while (u52 !== 1) { - switch (u52) { - case 2: - F.S(a.kqa) || this.CL(a, a.kqa, b); - u52 = 1; - break; - } - } - }.bind(this); - d = a.M + "." + a.ib; - R52 = 3; - break; - case 9: - c(); - R52 = 8; - break; - case 8: - b.QR || 0 !== Object.keys(this.ul).length || this.cda(); - R52 = 17; - break; - case 10: - g = a.Ti || a.W2; - F.S(g) || (f[d + O6u] = { - Jt: g, - Uc: ga - }); - f82.w3u(1); - f[f82.x3u(m6u, d)] = { - Jt: h, - Uc: ga - }; - R52 = 18; - break; - case 13: - f = {}; - f82.F3u(1); - f[f82.x3u(I6u, d)] = { - Jt: g, - Uc: ga - }; - f82.F3u(1); - f[f82.x3u(i6u, d)] = { - Jt: a.hq, - Uc: ga - }; - R52 = 10; - break; - case 18: - this.Ji.Fqa(f, c); - R52 = 8; - break; - case 7: - d = [a.M, a.ib, a6u].join("."); - g = x(a); - h = a.T && a.T.buffer || void 0; - R52 = 13; - break; - } - } - }; - n.prototype.mKa = function(a, b) { - var Z52, H6u; - Z52 = 2; - while (Z52 !== 4) { - H6u = "prebuff"; - H6u += "st"; - H6u += "ats"; - switch (Z52) { - case 2: - a.ad.eH = b; - a = { - type: H6u, - movieId: a.M, - stats: { - prebuffstarted: a.ad.WA, - prebuffcomplete: a.ad.eH - } - }; - this.Ha(a.type, a); - Z52 = 4; - break; - } - } - }; - f.P = n; - n32 = 69; - break; - case 56: - n.prototype.cKa = function(a) { - var H52, U6u; - H52 = 2; - while (H52 !== 1) { - U6u = "flushedB"; - U6u += "yt"; - U6u += "es"; - switch (H52) { - case 2: - 0 !== a && (a = { - type: U6u, - bytes: a - }, this.Ha(a.type, a)); - H52 = 1; - break; - } - } - }; - n.prototype.$Ja = function(a) { - var n52, k6u; - n52 = 2; - while (n52 !== 5) { - k6u = "cacheEv"; - k6u += "i"; - k6u += "ct"; - switch (n52) { - case 2: - a = { - type: k6u, - movieId: a - }; - this.Ha(a.type, a); - n52 = 5; - break; - } - } - }; - n.prototype.Iw = function(a) { - var a52, b; - a52 = 2; - while (a52 !== 4) { - switch (a52) { - case 2: - b = this.Gc[a.M]; - b && (a.zc ? F.S(b.ad.Mka) && (b.ad.Mka = a.Ed) : F.S(b.ad.WA) && (b.ad.WA = a.Ed)); - a52 = 4; - break; - } - } - }; - n.prototype.wi = function(a) { - var X52; - X52 = 2; - while (X52 !== 1) { - switch (X52) { - case 2: - a.zc ? this.v4a(a) : this.w4a(a); - X52 = 1; - break; - } - } - }; - n.prototype.v4a = function(a) { - var P52; - P52 = 2; - while (P52 !== 8) { - switch (P52) { - case 2: - a.Vab = a.Be; - this.kca(a); - a.rO(a.Vab); - this.gKa(a); - a.ww.sO--; - this.Ar(a); - P52 = 8; - break; + function c(a, c) { + u.error("Failed to send request", { + errorSubCode: a, + errorExternalCode: c, + request: JSON.stringify({ + method: b.method, + profile: b.cs.profile ? b.cs.profile.id : void 0, + nonReplayable: b.a8, + retryCount: b.Av, + userId: b.HL, + userTokens: JSON.stringify(l.rf.rf.getUserIdTokenKeys()) + }) + }); + return { + S: !1, + result: { + errorSubCode: a, + errorExternalCode: c } - } - }; - n.prototype.w4a = function(a) { - var L52, b, c, d, g, h, f, m, v6u, C6u, M6u, q6u, p6u, G6u, z6u, B6u, l6u; - L52 = 2; - while (L52 !== 17) { - v6u = "."; - v6u += "re"; - v6u += "spon"; - v6u += "se"; - C6u = ".drm"; - C6u += "Head"; - C6u += "er"; - M6u = ".he"; - M6u += "ader"; - M6u += "Da"; - M6u += "t"; - M6u += "a"; - q6u = "."; - q6u += "m"; - q6u += "et"; - q6u += "adata"; - p6u = "man"; - p6u += "ag"; - p6u += "erdebugevent"; - G6u = ","; - G6u += " rem"; - G6u += "aining: "; - z6u = ", "; - z6u += "p"; - z6u += "t"; - z6u += "s"; - z6u += ": "; - B6u = ", "; - B6u += "strea"; - B6u += "m"; - B6u += "Id"; - B6u += ": "; - l6u = ", h"; - l6u += "eaderCache d"; - l6u += "ataComplete: movieId:"; - l6u += " "; - switch (L52) { - case 3: - L52 = d ? 9 : 17; - break; - case 9: - L52 = (c.Zd && (b = "@" + N.time.la() + l6u + b + B6u + a.ib + z6u + a.X + G6u + (d.UE - 1), this.Ha(p6u, { - message: b - })), b = function() { - var B52; - B52 = 2; - while (B52 !== 5) { - switch (B52) { - case 2: - --d.UE; - this.Ar(a); - B52 = 5; - break; - } - } - }.bind(this), a.Sd && a.responseType === O.Ei.el && this.Zr) ? 8 : 18; - break; - case 6: - h = a.Ti; - f = [a.M, a.ib, a.hb].join("."); - L52 = 13; - break; - case 13: - m = {}; - v7AA.w3u(1); - m[v7AA.s3u(q6u, f)] = { - Jt: y(a), - Uc: ga + }; + } + d = l.json.parse(a); + if (2 != d.length) return u.trace("The MSL envelope did not have enough array items."), c(z.H.vF); + if (!d[1].payload) return u.trace("The MSL envelope did not have a payload."), c(z.H.vF); + if (!d[1].status) return u.trace("The MSL envelope did not have a status."), c(z.H.vF); + a = d[1].status; + f = parseInt(a, 10); + if (isNaN(f) && "ok" != a.toLowerCase() || !(200 <= f && 300 > f)) return d = d[1].payload.data, d = l.Rd.decode(d), u.error("The MSL status indicated an error", { + status: f + }, l.Vl.encode(d)), c(z.H.Pea, a); + d = d[1].payload.data; + d = l.Vl.encode(l.Rd.decode(d)); + if (!d) return u.trace("The MSL payload is missing."), c(z.H.Qea); + try { + return l.json.parse(d); + } catch (wd) { + return u.error("EDGE response this.json parse error: ", wd, d), c(z.H.Qea); + } + } + k(b, b.Av).then(function(g) { + var k, h; + if (g.body) + if (g = f(g.body), u.trace("Received EDGE response", { + Method: a.method + }), g.success) { + if (l.config().Bg.E6a && l.mcb(a)) { + k = a.RIb; + h = g.profileGuid; + if (k && h !== k) { + g = { + T: z.H.VMa, + Ja: JSON.stringify({ + serverGuid: h, + clientGuid: k + }) }; - F.S(g) || (m[f + M6u] = { - Jt: g, - Uc: ga - }); - L52 = 10; - break; - case 2: - b = a.M; - c = this.H; - d = this.Gc[b] || a.ww; - L52 = 3; - break; - case 8: - c = a.response; - g = a.hq; - L52 = 6; - break; - case 10: - F.S(h) || (m[f + C6u] = { - Jt: h, - Uc: ga - }); - F.S(c) || (m[f + v6u] = { - Jt: c, - Uc: ga - }); - this.Ji.Fqa(m, b); - L52 = 17; - break; - case 18: - b(); - L52 = 17; - break; - } - } - }; - n.prototype.MA = function(a) { - var l52, u6u; - l52 = 2; - while (l52 !== 5) { - u6u = "_"; - u6u += "onError"; - u6u += ": "; - switch (l52) { - case 2: - na(u6u, a.toString()); - this.Ar(a); - l52 = 5; - break; - } - } - }; - n32 = 72; - break; - case 44: - Object.defineProperties(n.prototype, { - cache: { - get: function() { - var n42; - n42 = 2; - while (n42 !== 1) { - switch (n42) { - case 4: - return this.Gc; - break; - n42 = 1; - break; - case 2: - return this.Gc; - break; - } + r(g, b); + d(g); + return; } } + n.success = !0; + n.profileId = b.HL; + n.elapsedtime = l.Va.Pe().ma(x.Aa) - n.starttime; + n.userTokens = JSON.stringify(l.rf.rf.getUserIdTokenKeys()); + c(g.result); + } else { + h = g.result; + g.__logs && (h.YAb = g.__logs); + try { + k = l.json.stringify(h.data); + } catch (Ma) {} + g = r(h, b); + d({ + T: h.errorSubCode, + ic: h.errorExternalCode, + oC: h.errorEdgeCode, + Ja: h.errorDetails ? [h.errorDetails, " ", g].join("") : void 0, + xl: h.errorDisplayMessage, + Pn: k + }); } + else d({ + T: z.H.vF, + Ja: r({ + T: z.H.vF + }, b) }); - n.prototype.wc = ea; - n.prototype.ba = na; - n.prototype.Yb = oa; - n.prototype.ym = function() { - var a42; - a42 = 2; - while (a42 !== 5) { - switch (a42) { - case 3: - this.flush(); - this.cda(); - a42 = 7; - break; - a42 = 5; - break; - case 2: - this.flush(); - this.cda(); - a42 = 5; - break; - } - } - }; - n.prototype.XGa = function() { - var X42, a; - X42 = 2; - while (X42 !== 9) { - switch (X42) { - case 1: - X42 = 0 === this.gv.length ? 5 : 9; - break; - case 5: - a = this; - a.gv = [{ - type: la.G.AUDIO, - openRange: !1, - pipeline: !1, - connections: 1 - }, { - type: la.G.VIDEO, - openRange: !1, - pipeline: !1, - connections: 1 - }].map(function(b) { - var P42, L6u; - P42 = 2; - while (P42 !== 3) { - L6u = "e"; - L6u += "r"; - L6u += "r"; - L6u += "o"; - L6u += "r"; - switch (P42) { - case 14: - return b; - break; - P42 = 3; - break; - case 2: - b = new fa(b, a.wj); - b.on(L6u, function() {}); - F.S(b.Xc) || b.Xc(); - P42 = 4; - break; - case 4: - return b; - break; - } - } - }); - fa.Pf(); - X42 = 9; - break; - case 2: - X42 = 1; - break; - } - } - }; - n.prototype.cda = function() { - var L42, a; - L42 = 2; - while (L42 !== 3) { - switch (L42) { - case 2: - a = this.gv; - this.gv = []; - a.forEach(function(a) { - var B42; - B42 = 2; - while (B42 !== 5) { - switch (B42) { - case 2: - a.removeAllListeners(); - a.ym(); - B42 = 5; - break; - case 3: - a.removeAllListeners(); - a.ym(); - B42 = 6; - break; - B42 = 5; - break; - } - } - }); - L42 = 3; - break; - } - } - }; - n32 = 37; - break; - case 26: - P = a(498); - la = a(13); - Y = a(260); - aa = a(259); - fa = N.Lx; - a(30); - ga = { - lifespan: 259200 - }; - n32 = 34; - break; - case 49: - n.prototype.A1a = function(a) { - var T42, b; - T42 = 2; - while (T42 !== 4) { - switch (T42) { - case 2: - b = F.S(a) ? "" : a.toString(); - return new U(function(a) { - var m42, C42; - m42 = 2; - while (m42 !== 4) { - switch (m42) { - case 2: - m42 = F.S(this.Ji) ? 1 : 5; - break; - case 1: - a({}); - m42 = 4; - break; - case 9: - m42 = F.S(this.Ji) ? 0 : 7; - break; - m42 = F.S(this.Ji) ? 1 : 5; - break; - case 8: - a({}); - m42 = 5; - break; - m42 = 4; - break; - case 5: - try { - C42 = 2; - while (C42 !== 1) { - switch (C42) { - case 2: - this.Ji.aB("", function(c) { - var v42; - v42 = 2; - while (v42 !== 5) { - switch (v42) { - case 2: - c = c.filter(function(a) { - var Y42, J6u; - Y42 = 2; - while (Y42 !== 5) { - J6u = "movie"; - J6u += "E"; - J6u += "n"; - J6u += "try"; - switch (Y42) { - case 2: - a = a.split("."); - return b && (b === a[0] || J6u === a[0] && b === a[1]); - break; - } - } - }.bind(this)).reduce(function(a, b) { - var M42, c, g6u; - M42 = 2; - while (M42 !== 3) { - g6u = "m"; - g6u += "o"; - g6u += "vie"; - g6u += "Entry"; - switch (M42) { - case 4: - return a; - break; - case 2: - c = b.split("."); - g6u !== c[0] && (b = c[0] + "." + c[1], c = c[2], F.S(a[b]) && (a[b] = {}), F.S(a[b][c]) && (a[b][c] = !0)); - M42 = 4; - break; - case 14: - return a; - break; - M42 = 3; - break; - } - } - }, {}); - a(c); - v42 = 5; - break; - } - } - }.bind(this)); - C42 = 1; - break; - } - } - } catch (Ya) { - a({}); - } - m42 = 4; - break; - } - } - }.bind(this)); - break; - } - } - }; - n.prototype.M1 = function(a, b) { - var r42; - r42 = 2; - while (r42 !== 4) { - switch (r42) { - case 2: - r42 = (a = this.Gc[a]) ? 1 : 4; - break; - case 5: - return b; - break; - case 7: - return b; - break; - r42 = 4; - break; - case 1: - r42 = (b = a.headers[b]) ? 5 : 4; - break; - } - } - }; - n.prototype.y1a = function(a) { - var G42, b; - G42 = 2; - while (G42 !== 4) { - switch (G42) { - case 2: - b = this.Gma(a); - return b || !this.Zr ? U.resolve(b) : this.dIa(a).then(function(a) { - var i42; - i42 = 2; - while (i42 !== 1) { - switch (i42) { - case 4: - return q(a); - break; - i42 = 1; - break; - case 2: - return q(a); - break; - } - } - }); - break; - } - } - }; - n.prototype.Gma = function(a) { - var Q42; - Q42 = 2; - while (Q42 !== 1) { - switch (Q42) { - case 4: - return q(this.Gc[a]); - break; - Q42 = 1; - break; - case 2: - return q(this.Gc[a]); - break; - } - } - }; - n.prototype.nw = function() { - var y42, a, f6u; - y42 = 2; - while (y42 !== 4) { - f6u = "M"; - f6u += "edia cach"; - f6u += "e is not enabled"; - switch (y42) { - case 2: - a = this.Ji; - return this.qL ? this.qL.then(function() { - var c42; - c42 = 2; - while (c42 !== 1) { - switch (c42) { - case 2: - return new U(function(b) { - var k42, y6u; - k42 = 2; - while (k42 !== 1) { - y6u = "m"; - y6u += "ovieE"; - y6u += "ntr"; - y6u += "y"; - switch (k42) { - case 2: - a.aB(y6u, function(a) { - var F42, c; - F42 = 2; - while (F42 !== 8) { - switch (F42) { - case 4: - c = []; - a.forEach(function(a) { - var t52; - t52 = 2; - while (t52 !== 1) { - switch (t52) { - case 2: - a && a.length && (a = a.split(".")) && 1 < a.length && c.push(parseInt(a[1], 10)); - t52 = 1; - break; - } - } - }); - b(c); - F42 = 8; - break; - case 1: - F42 = !a || 0 >= a.length ? 5 : 4; - break; - case 2: - F42 = 1; - break; - case 5: - b([]); - F42 = 8; - break; - } - } - }); - k42 = 1; - break; - } - } - }); - break; - } - } - }) : U.reject(f6u); - break; - } - } - }; - n.prototype.fja = function() { - var E52, c, d, g, h, f, D6u, A6u; + })["catch"](function(a) { + var c; + c = r(a, b); + a.Ja && (a.Ja = [a.Ja, " ", c].join("")); + d(a); + }); + }); + } + + function k(b, d) { + return new Promise(function(f, g) { + function k(b, d, p) { + return l.qnb.send(b).then(function(a) { + f(a); + })["catch"](function(f) { + var r, v; + v = f && f.ij && void 0 !== f.ij.maxRetries ? Math.min(f.ij.maxRetries, p) : p; + (l.uI.L9 || h(f)) && d <= v ? r = !0 : (u.error("Method failed, retry limit exceeded, giving up", { + Method: a.method, + Attempt: d, + MaxRetries: v + }, c.gda(f)), r = !1); + if (r) return r = f && f.ij && void 0 !== f.ij.retryAfterSeconds ? 1E3 * f.ij.retryAfterSeconds : l.rK.e9(1E3, 1E3 * Math.pow(2, Math.min(d - 1, v))), u.warn("Method failed, retrying", { + Method: a.method, + Attempt: d, + WaitTime: r, + MaxRetries: v + }, c.gda(f)), m(r).then(function() { + return k(b, d + 1, v); + }); + g(f); + }); + } + return k(b, 1, d); + }); + } + + function h(a) { + return (a = a && a.T) && a >= z.H.$z && a <= z.H.Zz; + } + + function m(a) { + return new Promise(function(b) { + setTimeout(function() { + b(); + }, a); + }); + } + + function p() { + var c, g; + c = ""; + d && (c += (0 < c.length ? "&" : "") + "logs=true"); + f && (c += (0 < c.length ? "&" : "") + "debug=true"); + a.languages = l.config().Bg.bz; + a.clientVersion = l.platform.version; + a.uiVersion = l.config().Bg.Kz; + g = {}; + l.config().Wva && (g["X-Netflix.request.expiry.timeout"] = l.config().Wva.toString()); + c = [{}, { + headers: g, + path: l.config().Bg.Bpa, + payload: { + data: l.json.stringify(a) + }, + query: c + }]; + l.config().Bg && (u.debug("Request payload", { + Method: a.method + }, l.sE.lV(c)), u.debug("Request parameters", { + Method: a.method + }, l.sE.lV(a))); + return { + cs: b, + method: a.method, + url: "" + (l.j0.endpoint + l.config().Bg.Qva) + l.platform.Im + "/cadmium/" + a.method, + body: l.json.stringify(c), + timeout: v.ma(x.Aa), + HL: b.profile ? b.profile.id : void 0, + Slb: !0, + a8: !1, + V2: !0, + Av: 3, + eJ: a.isExclusive + }; + } + + function r(a, b) { + n.success = !1; + n.profileId = b.HL; + n.elapsedtime = l.Va.Pe().ma(x.Aa) - n.starttime; + n.userTokens = JSON.stringify(l.rf.rf.getUserIdTokenKeys()); + n.subcode = a.errorSubCode || a.T; + n.extcode = a.errorExternalCode || a.ic; + u.error("BladeRunner command history", l.sE.lV(l.pl)); + return l.json.stringify(l.pl); + } + d = void 0 === d ? !1 : d; + f = void 0 === f ? !1 : f; + l = this; + b = this.mc.Dk({ + Ab: this.ndb + }, b); + u = b.log; + v = x.hh(59); + n = { + method: a.method, + starttime: this.Va.Pe().ma(x.Aa) + }; + this.pl.push(n); + this.pl.length > this.config().RYa && this.pl.shift(); + u.trace("Sending EDGE request", { + Method: a.method + }); + return new Promise(function(a, b) { + var c; + c = p(); + g(c).then(function(b) { + a(b); + })["catch"](function(a) { + var c; + c = { + S: !1 + }; + l.mc.Dk(c, a, { + Mp: !0 + }); + c.__logs && (c.__logs = a.__logs); + b(c); + }); + }); + }; + b.prototype.mcb = function(a) { + return 0 <= ["bind", "ping"].indexOf(a.method) ? !0 : !1; + }; + b.gda = function(a) { + var b, c, d; + b = {}; + c = a.errorExternalCode || a.ic; + d = a.errorDetails || a.Ja; + b.ErrorSubCode = a.errorSubCode || a.T || z.H.Sh; + c && (b.ErrorExternalCode = c); + d && (b.ErrorDetails = d); + return b; + }; + N = c = b; + N = c = g.__decorate([h.N(), g.__param(0, h.l(f.pn)), g.__param(1, h.l(p.je)), g.__param(2, h.l(m.$l)), g.__param(3, h.l(P.ct)), g.__param(4, h.l(l.nj)), g.__param(5, h.l(r.Ue)), g.__param(6, h.l(v.uw)), g.__param(7, h.l(a.kfa)), g.__param(8, h.l(n.JY)), g.__param(9, h.l(q.Iw)), g.__param(10, h.l(D.Je)), g.__param(11, h.l(E.KF)), g.__param(12, h.l(F.Ys)), g.__param(13, h.l(t.Ms))], N); + d.RKa = N; + }, function(g, d, a) { + var b, c, h, k, f; + Object.defineProperty(d, "__esModule", { + value: !0 + }); + g = a(1); + b = a(101); + c = a(645); + h = a(341); + k = a(342); + f = a(644); + d.$i = new g.Vb(function(a) { + a(b.uw).Gz(function() { + return A._cad_global.msl; + }); + a(h.lfa).to(c.RKa).$(); + a(k.kfa).to(f.QKa).$(); + }); + }, function(g, d) { + Object.defineProperty(d, "__esModule", { + value: !0 + }); + d.z2a = function(a, b, c) { + return { + Qra: function() { + return a.z4(); + }, + ga: b, + request: c, + Dg: !1 + }; + }; + }, function(g, d, a) { + var b, c, h; + Object.defineProperty(d, "__esModule", { + value: !0 + }); + b = a(2); + c = [b.I.pIa, b.I.Wda, b.I.Tda, b.I.Kda, b.I.Uda, b.I.Vda, b.I.Oda, b.I.aea, b.I.Pda, b.I.Mda, b.I.FX, b.I.cea, b.I.Qda, b.I.QM, b.I.Jda, b.I.Nda, b.I.Ws, b.I.Hda, b.I.bea, b.I.Lda, b.I.Yda, b.I.Zda, b.I.$da, b.I.qIa, b.I.sIa, b.I.wIa, b.I.uIa, b.I.tIa, b.I.rIa, b.I.vIa, b.I.Xda, b.I.Sda, b.I.Rda, b.I.Ida]; + (function(a) { + a.mLa = function(a) { + var f; + for (var c = {}, d = 0; d < a.length; d++) { + f = a[d]; + if (c[f.Gn]) return { + Gn: f.Gn, + Ona: b.H.LCa + }; + c[f.Gn] = 1; + } + }; + a.nLa = function(a) { + var f; + for (var d = 0; d < a.length; d++) { + f = a[d]; + if (-1 === c.indexOf(f.Gn)) return { + Gn: f.Gn, + Ona: b.H.MCa + }; + } + }; + }(h || (h = {}))); + d.Zjb = function(a) { + return new Promise(function(b, d) { + var f; + f = h.nLa(a); + f && d(f); + (f = h.mLa(a)) && d(f); + b(a.sort(function(a, b) { + return c.indexOf(a.Gn) - c.indexOf(b.Gn); + })); + }); + }; + }, function(g) { + g.M = { + gv: ["minInitVideoBitrate", -Infinity], + F7: ["minHCInitVideoBitrate", -Infinity], + zy: ["maxInitVideoBitrate", Infinity], + IJ: ["minInitAudioBitrate", -Infinity], + HJ: ["minHCInitAudioBitrate", -Infinity], + xJ: ["maxInitAudioBitrate", Infinity], + cT: ["minAcceptableVideoBitrate", -Infinity], + Eva: ["minAllowedVideoBitrate", -Infinity], + Rua: ["maxAllowedVideoBitrate", Infinity], + Fva: ["minAllowedVmaf", -Infinity], + Sua: ["maxAllowedVmaf", Infinity], + kV: ["streamFilteringRules", { + enabled: !1, + profiles: ["playready-h264mpl40-dash"], + action: "keepLowest" + }], + JJ: ["minRequiredBuffer", 2E4], + hT: ["minRequiredAudioBuffer", 0], + ki: ["minPrebufSize", 5800], + C9: ["requireDownloadDataAtBuffering", !1], + D9: ["requireSetupConnectionDuringBuffering", !1], + m9: ["rebufferingFactor", 1], + Zr: ["maxBufferingTime", 2E3], + Vaa: ["useMaxPrebufSize", !0], + mD: ["maxPrebufSize", 4E4], + p7: ["maxRebufSize", Infinity], + K6a: ["fastRebufferRecoveryThreshold", Infinity], + J6a: ["fastRebufferRecoverBwThrehold", 3E3], + iS: ["initialBitrateSelectionCurve", null], + bta: ["initSelectionLowerBound", -Infinity], + cta: ["initSelectionUpperBound", Infinity], + sV: ["throughputPercentForAudio", 15], + F0: ["bandwidthMargin", 0], + H0: ["bandwidthMarginCurve", [{ + m: 20, + b: 15E3 + }, { + m: 17, + b: 3E4 + }, { + m: 10, + b: 6E4 + }, { + m: 5, + b: 12E4 + }]], + GYa: ["bandwidthMarginCurveAudio", { + min: .7135376, + max: .85, + zr: 76376, + scale: 18862.4, + gamma: 3.0569 + }], + G0: ["bandwidthMarginContinuous", !1], + HYa: ["bandwidthMarginForAudio", !0], + gaa: ["switchConfigBasedOnInSessionTput", !0], + E1: ["conservBandwidthMargin", 20], + sH: ["conservBandwidthMarginTputThreshold", 6E3], + F1: ["conservBandwidthMarginCurve", [{ + m: 25, + b: 15E3 + }, { + m: 20, + b: 3E4 + }, { + m: 15, + b: 6E4 + }, { + m: 10, + b: 12E4 + }, { + m: 5, + b: 24E4 + }]], + UAa: ["switchAlgoBasedOnHistIQR", !1], + Mv: ["switchConfigBasedOnThroughputHistory", "iqr"], + o7: ["maxPlayerStateToSwitchConfig", -1], + Q6: ["lowEndMarkingCriteria", "iqr"], + GX: ["IQRThreshold", .5], + p5: ["histIQRCalcToUse", "simple"], + zm: ["bandwidthManifold", { + curves: [{ + min: .05, + max: .82, + zr: 7E4, + scale: 178E3, + gamma: 1.16 + }, { + min: 0, + max: .03, + zr: 15E4, + scale: 16E4, + gamma: 3.7 + }], + threshold: 14778, + gamma: 2.1, + niqrcurve: { + min: 1, + max: 1, + center: 2, + scale: 2, + gamma: 1 + }, + filter: "throughput-sw", + niqrfilter: "throughput-iqr", + simpleScaling: !0 + }], + $r: ["maxTotalBufferLevelPerSession", 0], + Esa: ["highWatermarkLevel", 3E4], + qBa: ["toStableThreshold", 3E4], + xV: ["toUnstableThreshold", 0], + L$: ["skipBitrateInUpswitch", !1], + cba: ["watermarkLevelForSkipStart", 8E3], + i5: ["highStreamRetentionWindow", 9E4], + R6: ["lowStreamTransitionWindow", 51E4], + k5: ["highStreamRetentionWindowUp", 5E5], + T6: ["lowStreamTransitionWindowUp", 1E5], + j5: ["highStreamRetentionWindowDown", 6E5], + S6: ["lowStreamTransitionWindowDown", 0], + h5: ["highStreamInfeasibleBitrateFactor", .5], + wy: ["lowestBufForUpswitch", 9E3], + MS: ["lockPeriodAfterDownswitch", 15E3], + V6: ["lowWatermarkLevel", 15E3], + xy: [ + ["lowestWaterMarkLevel", "lowestWatermarkLevel"], 3E4 + ], + Y6: ["lowestWaterMarkLevelBufferRelaxed", !1], + w7: ["mediaRate", 1.5], + r7: ["maxTrailingBufferLen", 15E3], + y0: ["audioBufferTargetAvailableSize", 262144], + $aa: ["videoBufferTargetAvailableSize", 1048576], + hva: ["maxVideoTrailingBufferSize", 8388608], + Vua: ["maxAudioTrailingBufferSize", 393216], + eR: ["fastUpswitchFactor", 3], + n3: ["fastDownswitchFactor", 3], + TS: ["maxMediaBufferAllowed", 27E4], + oD: ["maxMediaBufferAllowedInBytes", 0], + J$: ["simulatePartialBlocks", !0], + rAa: ["simulateBufferFull", !0], + G1: ["considerConnectTime", !0], + D1: ["connectTimeMultiplier", 1], + Bua: ["lowGradeModeEnterThreshold", 12E4], + Cua: ["lowGradeModeExitThreshold", 9E4], + Wua: ["maxDomainFailureWaitDuration", 3E4], + Tua: ["maxAttemptsOnFailure", 18], + aqa: ["exhaustAllLocationsForFailure", !0], + ava: ["maxNetworkErrorsDuringBuffering", 20], + j7: ["maxBufferingTimeAllowedWithNetworkError", 6E4], + m3: ["fastDomainSelectionBwThreshold", 2E3], + paa: ["throughputProbingEnterThreshold", 4E4], + fBa: ["throughputProbingExitThreshold", 34E3], + pua: ["locationProbingTimeout", 1E4], + kqa: ["finalLocationSelectionBwThreshold", 1E4], + dBa: ["throughputHighConfidenceLevel", .75], + eBa: ["throughputLowConfidenceLevel", .4], + F6: ["locationStatisticsUpdateInterval", 6E4], + Wdb: ["locationSelectorPersistFailures", !0], + iC: ["enablePerfBasedLocationSwitch", !1], + iGb: ["maxRateMaxFragmentGroups", 4500], + A8: ["pipelineScheduleTimeoutMs", 2], + Ay: ["maxPartialBuffersAtBufferingStart", 2], + G7: ["minPendingBufferLen", 3E3], + lD: ["maxPendingBufferLen", 6E3], + csb: ["usePtsUpdateAsSignal", !1], + TQ: ["enableRequestPacing", !1], + o5a: ["enableNginxRateLimit", !1], + wT: ["nginxSendingRate", 4E4], + r5a: ["enableRequestPacingToken", !1], + vfb: ["mediaRequestPacingSpeedBeforePlayback", .5], + ufb: ["mediaRequestPacingSpeed", 2], + L5: ["initialMediaRequestToken", 2E4], + PS: ["maxActiveRequestsSABCell100", 2], + VS: ["maxPendingBufferLenSABCell100", 500], + Qya: ["resetActiveRequestsAtSessionInit", !0], + q7: ["maxStreamingSkew", 2E3], + Heb: ["maxBufferOccupancyForSkewCheck", Infinity], + Zrb: ["useBufferOccupancySkipBack", !0], + n7: ["maxPendingBufferPercentage", 10], + By: ["maxRequestsInBuffer", 120], + ZR: ["headerRequestSize", 4096], + Vab: ["headerCacheEstimateHeaderSize", !1], + U7: ["neverWipeHeaderCache", !1], + hCa: ["useSidxInfoFromManifestForHeaderRequestSize", !1], + dR: ["fastPlayHeaderRequestSize", 0], + nD: ["maxRequestSize", 0], + E7: ["minBufferLenForHeaderDownloading", 1E4], + Vfb: ["minVideoBufferPoolSizeForSkipbackBuffer", 33554432], + sU: ["reserveForSkipbackBufferMs", 15E3], + i8: ["numExtraFragmentsAllowed", 2], + ko: ["pipelineEnabled", !0], + AJ: ["maxParallelConnections", 3], + tAa: ["socketReceiveBufferSize", 0], + B0: ["audioSocketReceiveBufferSize", 32768], + aba: ["videoSocketReceiveBufferSize", 65536], + f5: ["headersSocketReceiveBufferSize", 32768], + I7: ["minTimeBetweenHeaderRequests", void 0], + DV: ["updatePtsIntervalMs", 1E3], + Q0: ["bufferTraceDenominator", 0], + FB: ["bufferLevelNotifyIntervalMs", 2E3], + Hpa: ["enableAbortTesting", !1], + Fla: ["abortRequestFrequency", 8], + Z$: ["streamingStatusIntervalMs", 2E3], + LD: ["prebufferTimeLimit", 6E4], + fT: ["minBufferLevelForTrackSwitch", 2E3], + q5a: ["enablePenaltyForLongConnectTime", !1], + u8: ["penaltyFactorForLongConnectTime", 2], + O6: ["longConnectTimeThreshold", 200], + a0: ["additionalBufferingLongConnectTime", 2E3], + b0: ["additionalBufferingPerFailure", 8E3], + wK: ["rebufferCheckDuration", 6E4], + Kpa: ["enableLookaheadHints", !1], + yua: ["lookaheadFragments", 2], + lp: ["enableOCSideChannel", !0], + U8: ["probeRequestTimeoutMilliseconds", 3E4], + CHb: ["probeRequestConnectTimeoutMilliseconds", 8E3], + bN: ["OCSCBufferQuantizationConfig", { + lv: 5, + mx: 240 + }], + NBa: ["updateDrmRequestOnNetworkFailure", !0], + RS: ["maxDiffAudioVideoEndPtsMs", 1E3], + Geb: ["maxAudioFragmentOverlapMs", 80], + K3a: ["deferAseHeaderCache", !1], + yQ: ["deferAseScheduling", !1], + pqb: ["timeBeforeEndOfStreamBufferMark", 6E3], + m7: ["maxFastPlayBufferInMs", 2E4], + l7: ["maxFastPlayBitThreshold", 2E8], + Ieb: ["maxBufferingCompleteBufferInMs", Infinity], + dT: ["minAudioMediaRequestSizeBytes", 0], + kT: ["minVideoMediaRequestSizeBytes", 0], + tD: ["minAudioMediaRequestDuration", 0], + uD: ["minVideoMediaRequestDuration", 0], + gT: ["minMediaRequestDuration", 0], + Mfb: ["minAudioMediaRequestDurationCache", 0], + Yfb: ["minVideoMediaRequestDurationCache", 0], + n5a: ["enableMultiFragmentRequest", !1], + IE: [ + ["useHeaderCache", "usehc"], !0 + ], + GV: [ + ["useHeaderCacheData", "usehcd"], !0 + ], + uQ: ["defaultHeaderCacheSize", 4], + o2: ["defaultHeaderCacheDataCount", 4], + p2: ["defaultHeaderCacheDataPrefetchMs", 0], + c5: ["headerCacheMaxPendingData", 6], + d5: ["headerCachePriorityLimit", 5], + Uab: ["headerCacheAdoptBothAV", !1], + asb: ["usePipelineForBranchedAudio", !0], + Rhb: ["onlyDriveSingleChild", !1], + q_a: ["childBranchBatchedAmount", 1E4], + lT: ["minimumTimeBeforeBranchDecision", 2E3], + Zeb: ["maxRequestsToAttachOnBranchActivation", void 0], + J7: ["minimumJustInTimeBufferLevel", 3E3], + Jpa: ["enableJustInTimeAppends", !1], + YH: ["enableDelayedSeamless", !1], + YYa: ["branchEndPtsIntervalMs", 250], + zbb: ["ignorePtsJustBeforeCurrentSegment", !1], + Seb: ["maxFragsForFittableOnBranching", 300], + Dib: ["pausePlaylistAtEnd", !0], + PWa: ["adaptiveParallelTimeoutMs", 1E3], + hC: ["enableAdaptiveParallelStreaming", !1], + k4a: ["disableBitrateSelectionOnSingleConnection", !1], + NP: ["bufferThresholdToSwitchToSingleConnMs", 45E3], + P0: ["bufferThresholdToSwitchToParallelConnMs", 35E3], + S7: ["networkFailureResetWaitMs", 2E3], + R7: ["networkFailureAbandonMs", 6E4], + XS: ["maxThrottledNetworkFailures", 5], + rV: ["throttledNetworkFailureThresholdMs", 200], + dr: ["abortUnsentBlocks", !0], + P_: ["abortStreamSelectionPeriod", 2E3], + s7: ["maxUnsentBlocks", 2], + U6: ["lowThroughputThreshold", 400], + d3: ["excludeSessionWithoutHistoryFromLowThroughputThreshold", !1], + oqb: ["timeAtEachBitrateRoundRobin", 1E4], + vmb: ["roundRobinDirection", "forward"], + sab: ["hackForHttpsErrorCodes", !1], + tbb: ["httpsConnectErrorAsPerm", !1], + Ova: ["mp4ParsingInNative", !1], + Oe: ["enableManagerDebugTraces", !1], + Mua: ["managerDebugMessageInterval", 1E3], + Lua: ["managerDebugMessageCount", 20], + lwa: ["notifyManifestCacheEom", !0], + aI: ["enableUsingHeaderCount", !1], + uAa: ["sourceBufferInOrderAppend", !0], + Wm: ["requireAudioStreamToEncompassVideo", !1], + fma: ["allowAudioToStreamPastVideo", !1], + xB: ["allowReissueMediaRequestAfterAbort", !1], + goa: ["countGapInBuffer", !1], + f0: ["allowCallToStreamSelector", !1], + O0: ["bufferThresholdForAbort", 2E4], + X$: ["ase_stream_selector", "optimized"], + Cma: ["audiostreamSelectorAlgorithm", "selectaudioadaptive"], + I5: ["initBitrateSelectorAlgorithm", "default"], + S0: ["bufferingSelectorAlgorithm", "default"], + h2: ["ase_ls_failure_simulation", ""], + f2: ["ase_dump_fragments", !1], + g2: ["ase_location_history", 0], + i2: ["ase_throughput", 0], + Loa: ["ase_simulate_verbose", !1], + Ql: ["stallAtFrameCount", void 0], + f7: ["marginPredictor", "simple"], + qAa: ["simplePercentilePredictorPercentile", 25], + oAa: ["simplePercentilePredictorCalcToUse", "simple"], + pAa: ["simplePercentilePredictorMethod", "simple"], + Yrb: ["useBackupUnderflowTimer", !0], + ZIb: ["useManifestDrmHeader", !0], + $Ib: ["useOnlyManifestDrmHeader", !0], + fea: ["IQRBandwidthFactorConfig", { + iur: !0, + minr: 8E3, + maxr: 2E4, + rlaf: 60, + flb: .5, + fup: .85, + fmind: .75, + fmaxd: 1, + fmintp: .25, + fmindp: .75 + }], + T7: ["networkMeasurementGranularity", "video_location"], + ugb: ["netIntrStoreWindow", 36E3], + CGb: ["minNetIntrDuration", 8E3], + bSa: ["fastHistoricBandwidthExpirationTime", 10368E3], + BSa: ["bandwidthExpirationTime", 5184E3], + aSa: ["failureExpirationTime", 86400], + Ika: ["historyTimeOfDayGranularity", 4], + ZRa: ["expandDownloadTime", !0], + nTa: ["minimumMeasurementTime", 500], + mTa: ["minimumMeasurementBytes", 131072], + LUa: ["throughputMeasurementTimeout", 2E3], + KUa: ["initThroughputMeasureDataSize", 262144], + TSa: ["historicBandwidthUpdateInterval", 2E3], + lTa: ["minimumBufferToStopProbing", 1E4], + pBb: ["throughputPredictor", "ewma"], + W9: ["secondThroughputEstimator", "slidingwindow"], + wza: ["secondThroughputMeasureWindowInMs", 3E5], + oBb: ["throughputMeasureWindow", 5E3], + qBb: ["throughputWarmupTime", 5E3], + nBb: ["throughputIQRMeasureWindow", 1E3], + UAb: ["IQRBucketizerWindow", 15E3], + Yua: ["maxIQRSamples", 100], + Iva: ["minIQRSamples", 5], + kBb: ["connectTimeHalflife", 10], + eBb: ["responseTimeHalflife", 10], + dBb: ["historicThroughputHalflife", 14400], + cBb: ["historicResponseTimeHalflife", 100], + bBb: ["historicHttpResponseTimeHalflife", 100], + Ada: ["HistoricalTDigestConfig", { + maxc: 25, + rc: "ewma", + c: .5, + hl: 7200 + }], + nka: ["minReportedNetIntrDuration", 4E3], + mBb: ["throughputBucketMs", 500], + ZAb: ["bucketHoltWintersWindow", 2E3], + URa: ["enableFilters", "throughput-ewma throughput-sw throughput-iqr throughput-tdigest avtp entropy req-pacer".split(" ")], + DZ: ["filterDefinitionOverrides", {}], + IRa: ["defaultFilter", "throughput-ewma"], + rVa: ["secondaryFilter", "throughput-sw"], + OA: ["defaultFilterDefinitions", { + "throughput-ewma": { + type: "discontiguous-ewma", + mw: 5E3, + wt: 0 + }, + "throughput-sw": { + type: "slidingwindow", + mw: 3E5 + }, + "throughput-iqr": { + type: "iqr", + mx: 100, + mn: 5, + bw: 15E3, + iv: 1E3 + }, + "throughput-iqr-history": { + type: "iqr-history" + }, + "throughput-location-history": { + type: "discrete-ewma", + hl: 14400, + "in": 0 + }, + "respconn-location-history": { + type: "discrete-ewma", + hl: 100, + "in": 0 + }, + "throughput-tdigest": { + type: "tdigest", + maxc: 25, + c: .5, + b: 1E3, + w: 15E3, + mn: 6 + }, + "throughput-tdigest-history": { + type: "tdigest-history", + maxc: 25, + rc: "ewma", + c: .5, + hl: 7200 + }, + "respconn-ewma": { + type: "discrete-ewma", + hl: 10, + "in": 0 + }, + avtp: { + type: "avtp" + }, + entropy: { + type: "entropy", + mw: 2E3, + sw: 6E4, + mins: 1, + "in": "none", + hdl: [150, 230, 352, 539, 825, 1264, 1936, 2966, 4543, 6958], + uhdl: [150, 230, 352, 539, 825, 1264, 1936, 2966, 4543, 6958, 10657, 16322, 25E3] + }, + "req-pacer": { + type: "req-pacer", + sw: 1E3, + tb: 4E4, + mb: 3E4 + } + }], + Tx: ["enableHudsonFieldTest", !1], + u5: ["hudsonTitles", ["81127954"]], + Xeb: ["maxPartialBuffersAtHudson", 1], + j8: ["numberOfChunksPerSegment", 4], + XAa: ["targetContentLatency", 1E4], + $pb: ["targetLongContentLatency", 3E4], + dgb: ["minimumTimeDelay", 1], + $H: ["enableSessionHistoryReport", !1], + M2: ["earlyStageEstimatePeriod", 1E4], + $ta: ["lateStageEstimatePeriod", 3E4], + US: ["maxNumSessionHistoryStored", 30], + iT: ["minSessionHistoryDuration", 3E4], + ZH: ["enableInitThroughputEstimate", !1], + p0: ["applyInitThroughputEstimate", !1], + dta: ["initThroughputPredictor", { + bwThreshold: 3E4, + maxBwPredictionMap: { + 0: 3E3, + 1: 12E3, + 2: 24E3, + 3: 6E4 + }, + modelMap: { + 0: [500, 1500], + 1: [1500, 6E3], + 2: [6E3, 12E3], + 3: [12E3, 3E4] + }, + lrParams: { + 0: { + lrMeans: { + currentHour: 15.137936466264112, + currentMonoTime: 1.5533592424252495E12, + "ens-avtp-b": .38723147282714365, + "ens-avtp-last": 7.278636833881816, + "ens-avtp-mean": 7.645354650835756, + "ens-avtp-niqr": .9164307950209711, + "ens-avtp-p25": 7.206789836510741, + "ens-avtp-p50": 7.5392495750254085, + "ens-avtp-p75": 7.853195625145457, + "ens-avtp-std": 1890.0299065442302, + "fns-avtp-b": .5156471603720371, + "fns-avtp-last": 7.394898247043087, + "fns-avtp-mean": 7.720412581434043, + "fns-avtp-niqr": .7607496330326777, + "fns-avtp-p25": 7.401562072764315, + "fns-avtp-p50": 7.649474541536431, + "fns-avtp-p75": 7.887443054414084, + "fns-avtp-std": 1666.2825157466045, + "fns-niqr-b": .18747269665025967, + "fns-niqr-last": 1.86623885534261, + "fns-niqr-mean": 4020.0354386780873, + "fns-niqr-niqr": 1.1631461141579456, + "fns-niqr-p25": .53504898923602, + "fns-niqr-p50": .726225303229194, + "fns-niqr-p75": 1.242351052769756, + "fns-niqr-std": 1666.2825157466045, + intercept: 0, + "lns-avtp-b": .48094880098438736, + "lns-avtp-last": 7.359237053239481, + "lns-avtp-mean": 7.741498045478886, + "lns-avtp-niqr": .8066874950335725, + "lns-avtp-p25": 7.387733349631643, + "lns-avtp-p50": 7.66341466705797, + "lns-avtp-p75": 7.91817801557748, + "lns-avtp-std": 1793.4228677873018, + prevHour: 14.921344184825413, + prevMonoTime: 1.5533390440510566E12, + sessionCnt: 24.169388290889998, + timeSinceLastSession: 2.0198374192701496E7 + }, + lrStd: { + currentHour: 6.865640901500013, + currentMonoTime: 1.364004355437288E8, + "ens-avtp-b": .2584691537920595, + "ens-avtp-last": .9989894721766466, + "ens-avtp-mean": .9643206027819943, + "ens-avtp-niqr": 9.217134354074703, + "ens-avtp-p25": 1.0145221270034994, + "ens-avtp-p50": 1.0077653263765265, + "ens-avtp-p75": 1.014384099403048, + "ens-avtp-std": 3493.8569731733614, + "fns-avtp-b": .270872729744521, + "fns-avtp-last": .8922256527856904, + "fns-avtp-mean": .9631055373892473, + "fns-avtp-niqr": 9.794120412451006, + "fns-avtp-p25": .9696714991336701, + "fns-avtp-p50": .9882569618688472, + "fns-avtp-p75": 1.0192683122081063, + "fns-avtp-std": 3332.139780244572, + "fns-niqr-b": .3192946670619746, + "fns-niqr-last": 35.40213143776561, + "fns-niqr-mean": 6660.75906666252, + "fns-niqr-niqr": 8.550978136730766, + "fns-niqr-p25": 5.39412423399584, + "fns-niqr-p50": 8.615628045328721, + "fns-niqr-p75": 12.8578016592876, + "fns-niqr-std": 3332.139780244572, + intercept: 0, + "lns-avtp-b": .282072702345461, + "lns-avtp-last": .920183181440289, + "lns-avtp-mean": .9634177300825915, + "lns-avtp-niqr": 9.46277236908144, + "lns-avtp-p25": .9910526809941116, + "lns-avtp-p50": .9973895193027993, + "lns-avtp-p75": 1.0214924879508251, + "lns-avtp-std": 3386.49152949358, + prevHour: 6.8062106735450705, + prevMonoTime: 1.4676929801573658E8, + sessionCnt: 27.412941078734494, + timeSinceLastSession: 5.725906972259589E7 + }, + lrWeights: { + currentHour: -2.480219988909306E-4, + currentMonoTime: -.0019605601123065795, + "ens-avtp-b": .030002082172324713, + "ens-avtp-last": .006493992808811227, + "ens-avtp-mean": .02818971332256211, + "ens-avtp-niqr": -.02149596695008564, + "ens-avtp-p25": .025503939851905886, + "ens-avtp-p50": -.03973590637292906, + "ens-avtp-p75": .02654830002677231, + "ens-avtp-std": -.005364609238773057, + "fns-avtp-b": .003156990018105247, + "fns-avtp-last": .014293274537829968, + "fns-avtp-mean": .0669381230291235, + "fns-avtp-niqr": .03466791553613246, + "fns-avtp-p25": .003157582746026505, + "fns-avtp-p50": .0523956105905824, + "fns-avtp-p75": -.05674782509956824, + "fns-avtp-std": .03209560096833295, + "fns-niqr-b": -7.473002304028244E-4, + "fns-niqr-last": .0019568255931097633, + "fns-niqr-mean": -.08633242126981132, + "fns-niqr-niqr": -.004089335618740389, + "fns-niqr-p25": -.0021751031395086484, + "fns-niqr-p50": -.003122331768672313, + "fns-niqr-p75": .007288444327184066, + "fns-niqr-std": .03209560096833287, + intercept: 6.862875813114732, + "lns-avtp-b": -.0018938413688674922, + "lns-avtp-last": .06676606627335506, + "lns-avtp-mean": -.07603837147841763, + "lns-avtp-niqr": -.016328230093415195, + "lns-avtp-p25": .010303828813673513, + "lns-avtp-p50": -.03589513366624033, + "lns-avtp-p75": .056207400912909336, + "lns-avtp-std": -.04520109870414885, + prevHour: 2.301420369949928E-4, + prevMonoTime: .003685054780721308, + sessionCnt: .005283216038814869, + timeSinceLastSession: -.01411608956380438 + } + }, + 1: { + lrMeans: { + currentHour: 15.134456203928675, + currentMonoTime: 1.553360459127433E12, + "ens-avtp-b": .5283857099864471, + "ens-avtp-last": 8.262965687637706, + "ens-avtp-mean": 8.418902076257503, + "ens-avtp-niqr": .49412220616859004, + "ens-avtp-p25": 8.149357473011756, + "ens-avtp-p50": 8.390031248001916, + "ens-avtp-p75": 8.59957129630267, + "ens-avtp-std": 2111.808134194941, + "fns-avtp-b": .6226794650801935, + "fns-avtp-last": 8.40584007519461, + "fns-avtp-mean": 8.534636048829894, + "fns-avtp-niqr": .3857773226390544, + "fns-avtp-p25": 8.332989060781467, + "fns-avtp-p50": 8.515032240428152, + "fns-avtp-p75": 8.675880386526348, + "fns-avtp-std": 1845.8852285168682, + "fns-niqr-b": .21347933677439135, + "fns-niqr-last": 2.7647096219577483, + "fns-niqr-mean": 6495.223863385008, + "fns-niqr-niqr": 1.1972471971744498, + "fns-niqr-p25": .417754032656591, + "fns-niqr-p50": .5172058446238108, + "fns-niqr-p75": 1.0125653636288763, + "fns-niqr-std": 1845.8852285168682, + intercept: 0, + "lns-avtp-b": .6033453099237509, + "lns-avtp-last": 8.415812181647567, + "lns-avtp-mean": 8.562171619279262, + "lns-avtp-niqr": .41357537819056855, + "lns-avtp-p25": 8.345181430419174, + "lns-avtp-p50": 8.54253906247021, + "lns-avtp-p75": 8.711261794822105, + "lns-avtp-std": 1974.223790129235, + prevHour: 14.939649137256517, + prevMonoTime: 1.5533413406116138E12, + sessionCnt: 23.78952353498332, + timeSinceLastSession: 1.911851581933863E7 + }, + lrStd: { + currentHour: 6.915913563406681, + currentMonoTime: 1.3579546487519038E8, + "ens-avtp-b": .2293871112256882, + "ens-avtp-last": .7358412399626237, + "ens-avtp-mean": .6643093703588823, + "ens-avtp-niqr": 1.07169360267822, + "ens-avtp-p25": .745906641830048, + "ens-avtp-p50": .6979613612146783, + "ens-avtp-p75": .6885407945843879, + "ens-avtp-std": 3240.1297333061466, + "fns-avtp-b": .23637302256741258, + "fns-avtp-last": .6578310492721471, + "fns-avtp-mean": .6602179870987327, + "fns-avtp-niqr": 1.134081009617818, + "fns-avtp-p25": .7157365592980294, + "fns-avtp-p50": .6876929888153775, + "fns-avtp-p75": .6887095950016521, + "fns-avtp-std": 2989.2531011183996, + "fns-niqr-b": .3023989175947571, + "fns-niqr-last": 188.45413775718876, + "fns-niqr-mean": 6183.929502016268, + "fns-niqr-niqr": 33.95026131965199, + "fns-niqr-p25": 26.357261465915563, + "fns-niqr-p50": 26.380090045656182, + "fns-niqr-p75": 43.53044500310377, + "fns-niqr-std": 2989.2531011183996, + intercept: 0, + "lns-avtp-b": .24596048532404155, + "lns-avtp-last": .6833105090588518, + "lns-avtp-mean": .6607556120232774, + "lns-avtp-niqr": 1.6757909759512508, + "lns-avtp-p25": .7380275856301542, + "lns-avtp-p50": .6936783806450382, + "lns-avtp-p75": .6875117220276126, + "lns-avtp-std": 3048.1088543643054, + prevHour: 6.8482668340195705, + prevMonoTime: 1.4556118772689274E8, + sessionCnt: 53.32066201160346, + timeSinceLastSession: 5.547356497303553E7 + }, + lrWeights: { + currentHour: -.011871761229344389, + currentMonoTime: -.0036318600724213708, + "ens-avtp-b": 6.986789202868642E-4, + "ens-avtp-last": .011673758427760823, + "ens-avtp-mean": .13608518163448968, + "ens-avtp-niqr": .003289074114120798, + "ens-avtp-p25": .003191593712230237, + "ens-avtp-p50": -.0066247650633022084, + "ens-avtp-p75": -.02430342458063187, + "ens-avtp-std": -.04850809780387416, + "fns-avtp-b": .03459494981020932, + "fns-avtp-last": .045825189137544194, + "fns-avtp-mean": .002906185911093708, + "fns-avtp-niqr": -9.691590646234479E-4, + "fns-avtp-p25": .01551994942837314, + "fns-avtp-p50": .029373577658918765, + "fns-avtp-p75": .00768497254533149, + "fns-avtp-std": .05890409069070104, + "fns-niqr-b": -.008291354205495876, + "fns-niqr-last": 7.094688122632014E-4, + "fns-niqr-mean": -.16946963320808844, + "fns-niqr-niqr": -.005836423713579879, + "fns-niqr-p25": -.027958020496759037, + "fns-niqr-p50": .022488996225378338, + "fns-niqr-p75": .006740480962143502, + "fns-niqr-std": .058904090690701134, + intercept: 8.165078062192634, + "lns-avtp-b": -.01571675564523532, + "lns-avtp-last": .07645655650235457, + "lns-avtp-mean": .13252636589021868, + "lns-avtp-niqr": .001852705659582087, + "lns-avtp-p25": -.02287056515136447, + "lns-avtp-p50": -.02727017463885446, + "lns-avtp-p75": -.01678871891479746, + "lns-avtp-std": -.10684389586829764, + prevHour: .006312752532983602, + prevMonoTime: 7.922263883522697E-4, + sessionCnt: -.0014142078702796947, + timeSinceLastSession: -.010969324600447576 + } + }, + 2: { + lrMeans: { + currentHour: 14.916476965235244, + currentMonoTime: 1.5533558212926494E12, + "ens-avtp-b": .6033702623818743, + "ens-avtp-last": 9.07079977798437, + "ens-avtp-mean": 9.134353655661178, + "ens-avtp-niqr": .3623797220515198, + "ens-avtp-p25": 8.9438379108834, + "ens-avtp-p50": 9.126032949875686, + "ens-avtp-p75": 9.286393189864482, + "ens-avtp-std": 2788.9769968086775, + "fns-avtp-b": .6862725810071378, + "fns-avtp-last": 9.214723527939402, + "fns-avtp-mean": 9.257360798208294, + "fns-avtp-niqr": .2819938242222468, + "fns-avtp-p25": 9.113237238279646, + "fns-avtp-p50": 9.252704073743296, + "fns-avtp-p75": 9.376480490223058, + "fns-avtp-std": 2363.937261606417, + "fns-niqr-b": .3079747845775837, + "fns-niqr-last": 2.349342977897278, + "fns-niqr-mean": 11543.162025405922, + "fns-niqr-niqr": .8353830501136797, + "fns-niqr-p25": .539449003960107, + "fns-niqr-p50": .6120488613618988, + "fns-niqr-p75": 1.025142025238165, + "fns-niqr-std": 2363.937261606417, + intercept: 0, + "lns-avtp-b": .6777951321565386, + "lns-avtp-last": 9.242373955945844, + "lns-avtp-mean": 9.289167926920118, + "lns-avtp-niqr": .29268472756928093, + "lns-avtp-p25": 9.139640688653648, + "lns-avtp-p50": 9.285271169565624, + "lns-avtp-p75": 9.411428319974624, + "lns-avtp-std": 2495.2347425350476, + prevHour: 14.812242829285893, + prevMonoTime: 1.5533367650419763E12, + sessionCnt: 22.706325003650857, + timeSinceLastSession: 1.9056250672805835E7 + }, + lrStd: { + currentHour: 6.958159398444638, + currentMonoTime: 1.3765789914884326E8, + "ens-avtp-b": .20791212194940575, + "ens-avtp-last": .5237134368233782, + "ens-avtp-mean": .4313622313318821, + "ens-avtp-niqr": 1.0298500098014598, + "ens-avtp-p25": .5419803486741355, + "ens-avtp-p50": .4674794224249036, + "ens-avtp-p75": .44107618204776045, + "ens-avtp-std": 3099.6031967305125, + "fns-avtp-b": .2057216706261372, + "fns-avtp-last": .4473595901777174, + "fns-avtp-mean": .42416638003708, + "fns-avtp-niqr": .8234513220640112, + "fns-avtp-p25": .5178682322633591, + "fns-avtp-p50": .45902338903605194, + "fns-avtp-p75": .43391494044292445, + "fns-avtp-std": 2828.653607227709, + "fns-niqr-b": .29378765978740723, + "fns-niqr-last": 215.29091108169573, + "fns-niqr-mean": 6147.36771938347, + "fns-niqr-niqr": 20.95631794508829, + "fns-niqr-p25": 40.09143302784156, + "fns-niqr-p50": 40.0917059991872, + "fns-niqr-p75": 76.46454385633622, + "fns-niqr-std": 2828.653607227709, + intercept: 0, + "lns-avtp-b": .21393771099754127, + "lns-avtp-last": .46019047514559575, + "lns-avtp-mean": .42031282188319596, + "lns-avtp-niqr": .9217122900046908, + "lns-avtp-p25": .5307587654743611, + "lns-avtp-p50": .4595139882962286, + "lns-avtp-p75": .4282987444285461, + "lns-avtp-std": 2893.8796852190203, + prevHour: 6.865014634726103, + prevMonoTime: 1.469930475404992E8, + sessionCnt: 57.21379702338944, + timeSinceLastSession: 5.583272331188057E7 + }, + lrWeights: { + currentHour: -.005994421348964647, + currentMonoTime: -.00211070793241526, + "ens-avtp-b": -.02447232547732549, + "ens-avtp-last": .006628010901974464, + "ens-avtp-mean": .09653723410014291, + "ens-avtp-niqr": 9.295461659569376E-4, + "ens-avtp-p25": .0012695482222228938, + "ens-avtp-p50": -.006429946340265358, + "ens-avtp-p75": -.0018240666357782521, + "ens-avtp-std": -.04861802416956936, + "fns-avtp-b": .016168879730690602, + "fns-avtp-last": .017384784341611354, + "fns-avtp-mean": -.02557658926351166, + "fns-avtp-niqr": 3.2487392404244254E-4, + "fns-avtp-p25": .003054291672231475, + "fns-avtp-p50": .006524301521081224, + "fns-avtp-p75": -.0010225597375610623, + "fns-avtp-std": .018221004183639943, + "fns-niqr-b": .007301915471974063, + "fns-niqr-last": 7.425485364153301E-4, + "fns-niqr-mean": -.05147892802271394, + "fns-niqr-niqr": -.001940470217320524, + "fns-niqr-p25": .036234413553517725, + "fns-niqr-p50": -.03524862921191027, + "fns-niqr-p75": .0017027379253208021, + "fns-niqr-std": .018221004183641903, + intercept: 9.081622862978675, + "lns-avtp-b": -.03489939843656423, + "lns-avtp-last": .019705353504600828, + "lns-avtp-mean": .09344550455301621, + "lns-avtp-niqr": 4.5749884272222607E-4, + "lns-avtp-p25": -.011722568647814033, + "lns-avtp-p50": -.016087594727082558, + "lns-avtp-p75": -.010522910223392006, + "lns-avtp-std": -.04604219547608363, + prevHour: .0031101128704211474, + prevMonoTime: -9.098449270365904E-4, + sessionCnt: -.0016748630087899665, + timeSinceLastSession: -.0028086529149225895 + } + }, + 3: { + lrMeans: { + currentHour: 14.863185390555186, + currentMonoTime: 1.553353396059636E12, + "ens-avtp-b": .6515843728225397, + "ens-avtp-last": 9.835160560043459, + "ens-avtp-mean": 9.864626387517605, + "ens-avtp-niqr": .30287768062622433, + "ens-avtp-p25": 9.712383207744509, + "ens-avtp-p50": 9.860345560485248, + "ens-avtp-p75": 9.996033168898707, + "ens-avtp-std": 4643.022907790445, + "fns-avtp-b": .7193689607638848, + "fns-avtp-last": 9.907187981654845, + "fns-avtp-mean": 9.920454440962963, + "fns-avtp-niqr": .24505403012362392, + "fns-avtp-p25": 9.799839579276911, + "fns-avtp-p50": 9.917613535901424, + "fns-avtp-p75": 10.025731269663444, + "fns-avtp-std": 3732.2129640042217, + "fns-niqr-b": .4031678578759487, + "fns-niqr-last": 1.1753269491098228, + "fns-niqr-mean": 22052.618058988082, + "fns-niqr-niqr": 1.5068731631809027, + "fns-niqr-p25": .3996162353642051, + "fns-niqr-p50": .4644249735352749, + "fns-niqr-p75": 1.0193721160323532, + "fns-niqr-std": 3732.2129640042217, + intercept: 0, + "lns-avtp-b": .713092505873196, + "lns-avtp-last": 9.933609828473625, + "lns-avtp-mean": 9.945144121988752, + "lns-avtp-niqr": .257126639335263, + "lns-avtp-p25": 9.820890902912648, + "lns-avtp-p50": 9.94152946492105, + "lns-avtp-p75": 10.052128345697236, + "lns-avtp-std": 3896.5986547615607, + prevHour: 14.828444424077171, + prevMonoTime: 1.553332738875851E12, + sessionCnt: 21.279678298925372, + timeSinceLastSession: 2.0657183784891047E7 + }, + lrStd: { + currentHour: 6.947821212378729, + currentMonoTime: 1.3756061323794276E8, + "ens-avtp-b": .19834188857056692, + "ens-avtp-last": .4983372521531976, + "ens-avtp-mean": .4192327383097373, + "ens-avtp-niqr": .9075762835401722, + "ens-avtp-p25": .5329637320560067, + "ens-avtp-p50": .45584668612572893, + "ens-avtp-p75": .4210250409846772, + "ens-avtp-std": 4002.7954469984215, + "fns-avtp-b": .19090160405133458, + "fns-avtp-last": .4348713024155281, + "fns-avtp-mean": .40394998021486844, + "fns-avtp-niqr": 1.0660805112236655, + "fns-avtp-p25": .5038688154650198, + "fns-avtp-p50": .43801099282043815, + "fns-avtp-p75": .40338412512671645, + "fns-avtp-std": 3543.8600674276213, + "fns-niqr-b": .2743590168568854, + "fns-niqr-last": 141.1281274191549, + "fns-niqr-mean": 9470.610460587868, + "fns-niqr-niqr": 225.229351242605, + "fns-niqr-p25": 37.32547626585716, + "fns-niqr-p50": 37.325780629523, + "fns-niqr-p75": 89.23974801142606, + "fns-niqr-std": 3543.8600674276213, + intercept: 0, + "lns-avtp-b": .1943229807098331, + "lns-avtp-last": .4419652079817383, + "lns-avtp-mean": .39892829574083294, + "lns-avtp-niqr": 2.91956505002238, + "lns-avtp-p25": .5093223889354195, + "lns-avtp-p50": .43503232733698466, + "lns-avtp-p75": .39695315415773813, + "lns-avtp-std": 3599.9571758910874, + prevHour: 6.829137071943964, + prevMonoTime: 1.4742574746751267E8, + sessionCnt: 94.19446337605667, + timeSinceLastSession: 5.818167162809092E7 + }, + lrWeights: { + currentHour: -.004389543791532469, + currentMonoTime: -.0030344207819728818, + "ens-avtp-b": -.09240427960392844, + "ens-avtp-last": .010942277460710081, + "ens-avtp-mean": .20096895216357133, + "ens-avtp-niqr": .0032096847898172324, + "ens-avtp-p25": -.005856201042576917, + "ens-avtp-p50": .0017945703315946082, + "ens-avtp-p75": .013290135779755425, + "ens-avtp-std": -.10429624033817943, + "fns-avtp-b": .033335456564662004, + "fns-avtp-last": .03305046923296899, + "fns-avtp-mean": -.09090160395555649, + "fns-avtp-niqr": -.0010446812804401641, + "fns-avtp-p25": .004912076898000752, + "fns-avtp-p50": -.008494083146032963, + "fns-avtp-p75": -.002989850542529556, + "fns-avtp-std": .023336986139087093, + "fns-niqr-b": .0024504601144316397, + "fns-niqr-last": 7.643316521852407E-4, + "fns-niqr-mean": -.009119203062853156, + "fns-niqr-niqr": -.0012594157293897756, + "fns-niqr-p25": -.0422338795033952, + "fns-niqr-p50": .04250587013668825, + "fns-niqr-p75": .0017560870617061, + "fns-niqr-std": .023336986139088925, + intercept: 9.861278665882926, + "lns-avtp-b": -.0768634513815469, + "lns-avtp-last": .019981566044227083, + "lns-avtp-mean": .14111887010560764, + "lns-avtp-niqr": -4.600304100335705E-4, + "lns-avtp-p25": -.010343773714103076, + "lns-avtp-p50": -.017237539822589385, + "lns-avtp-p75": -.01599941028177654, + "lns-avtp-std": -.0740283506738119, + prevHour: .0018930816696335491, + prevMonoTime: -.003464250273737749, + sessionCnt: -.0016713463515894596, + timeSinceLastSession: .0016036476749273867 + } + } + } + }], + uP: ["addHeaderDataToNetworkMonitor", !0], + R$: ["startMonitorOnLoadStart", !1], + x9: ["reportFailedRequestsToNetworkMonitor", !1], + QT: ["periodicHistoryPersistMs", 0], + AU: ["saveVideoBitrateMs", 0], + OJ: ["needMinimumNetworkConfidence", !0], + J0: ["biasTowardHistoricalThroughput", !1], + Kxa: ["preferCurrentLocationThroughput", !1], + Jxa: ["preferCurrentLocationThreshold", 0], + beb: ["logMemoryUsage", !1], + Bsa: ["headerCacheTruncateHeaderAfterParsing", !0], + kYa: ["audioFragmentDurationMilliseconds", null], + tsb: ["videoFragmentDurationMilliseconds", null], + no: ["probeServerWhenError", !0], + ir: ["allowSwitchback", !0], + dz: ["probeDetailDenominator", 100], + QS: ["maxDelayToReportFailure", 300], + NG: ["allowParallelStreaming", !1], + rfb: ["mediaPrefetchDisabled", !1], + Hva: ["minBufferLevelToAllowPrefetch", 5E3], + Kr: ["editVideoFragments", !1], + Gm: ["editAudioFragments", !0], + EU: ["seamlessAudio", !1], + Omb: ["seamlessAudioProfiles", []], + Pmb: ["seamlessAudioProfilesAndTitles", {}], + V9: ["seamlessAudioMaximumSyncError", void 0], + ZI: ["insertSilentFrames", 0], + lta: ["insertSilentFramesOnExit", void 0], + kta: ["insertSilentFramesOnEntry", void 0], + jta: ["insertSilentFramesForProfile", void 0], + x7a: ["forceDiscontinuityAtTransition", !0], + Lv: ["supportAudioResetOnDiscontinuity", void 0], + Kv: ["supportAudioEasingOnDiscontinuity", void 0], + cp: ["audioCodecResetForProfiles", ["heaac-2-dash", "heaac-2hq-dash"]], + c5a: ["editCompleteFragments", !0], + $fb: ["minimumAudioFramesPerFragment", 1], + wx: ["applyProfileTimestampOffset", !1], + Cn: ["applyProfileStreamingOffset", !0], + mK: ["profileTimestampOffsets", { + "heaac-2-dash": { + 64: { + ticks: -3268, + timescale: 48E3 + }, + 96: { + ticks: -3352, + timescale: 48E3 + } + }, + "heaac-2hq-dash": { + 128: { + ticks: -3352, + timescale: 48E3 + } + } + }], + uva: ["mediaSourceSupportsNegativePts", !1], + eT: ["minAudioPtsGap", void 0], + RQ: ["enablePsd", !1], + b9: ["psdCallFrequency", 6E4], + c9: ["psdReturnToNormal", !1], + oK: ["psdThroughputThresh", 0], + NH: ["discardLastNPsdBins", 0], + Hg: ["psdPredictor", { + numB: 240, + bSizeMs: 1E3, + fillS: "last", + fillHl: 1E3, + bthresh: 100, + freqave: 5, + numfreq: 26, + beta: [-2.57382621685251, 1.00514098612371, -.369357559975733, .00999932810065489, .142934270516382, .162644679552085, -.0566219452189998, .022239120872481, -.0668887810950692, -.179565604901062, -.164944450316777, -.269160823754313, -.353934286812968, .127490861540904, -.30639082364227, -.21647101116447, -.0842995352796247, -.0103329141448779, -.12855537458795, .181738862222313, .263672043403025, .0755588656690725, .400401204107367, -.420677412792809, -1.09035458665828, 1.27111376831522, .561903634898845, -1.17759977644374], + thresh: .22, + tol: 1E-10, + tol2: 1E-4 + }], + SQ: ["enableRecordJSBridgePerf", !1], + pea: ["JSBridgeTDigestConfig", { + maxc: 25, + c: .5 + }], + lqb: ["throughputThresholdSelectorParam", 0], + Wrb: ["upswitchDuringBufferingFactor", 2], + AXa: ["allowUpswitchDuringBuffering", !1], + Zna: ["contentOverrides", void 0], + I1: ["contentProfileOverrides", void 0], + o5: ["hindsightDenominator", 0], + n5: ["hindsightDebugDenominator", 0], + KI: ["hindsightAlgorithmsEnabled", ["htwbr"]], + $R: ["hindsightParam", { + numB: Infinity, + bSizeMs: 1E3, + fillS: "last", + fillHl: 1E3 + }], + n0: ["appendMediaRequestOnComplete", !1], + QV: ["waitForDrmToAppendMedia", !1], + C3: ["forceAppendHeadersAfterDrm", !1], + vK: ["reappendRequestsOnSkip", !1], + j2: ["declareBufferingCompleteAtSegmentEnd", !1], + wJ: ["maxActiveRequestsPerSession", void 0], + x6: ["limitAudioDiscountByMaxAudioBitrate", !1], + m0: ["appendFirstHeaderOnComplete", !0], + aL: ["strictBufferCapacityCheck", !1], + AB: ["aseReportDenominator", 0], + u0: ["aseReportIntervalMs", 3E5], + Haa: ["translateToVp9Draft", !1], + mYa: ["audioProfilesOverride", [{ + profiles: ["ddplus-5.1-dash", "ddplus-5.1hq-dash"], + override: { + maxInitAudioBitrate: 192 + } + }, { + profiles: ["ddplus-atmos-dash"], + override: { + maxInitAudioBitrate: 448 + } + }]], + jaa: ["switchableAudioProfilesOverride", []], + nYa: ["audioSwitchConfig", { + upSwitchFactor: 5.02, + downSwitchFactor: 3.76, + lowestBufForUpswitch: 16E3, + lockPeriodAfterDownswitch: 16E3 + }], + gva: ["maxStartingVideoVMAF", 110], + H7: ["minStartingVideoVMAF", 1], + Hla: ["activateSelectStartingVMAF", !1], + JU: ["selectStartingVMAFTDigest", -1], + IU: ["selectStartingVMAFMethod", "fallback"], + Dza: ["selectStartingVMAFMethodCurve", { + log_p50: [6.0537, -.8612], + log_p40: [5.41, -.7576], + log_p20: [4.22, -.867], + sigmoid_1: [11.0925, -8.0793] + }], + aK: ["perFragmentVMAFConfig", { + enabled: !1, + simulatedFallback: !1, + fallbackBound: 12 + }], + l4a: ["disablePtsStartsEvent", !0], + n9: ["recordFirstFragmentOnSubBranchCreate", !0], + nfb: ["mediaCacheConvertToBinaryData", !1], + qfb: ["mediaCacheSaveOneObject", !1], + Qua: ["markRequestActiveOnFirstByte", !1], + L6a: ["fastplayOverwrite", !1], + OQ: ["earlyAppendSingleChildBranch", !0], + JE: ["useNativeDataViewMethods", !1] + }; + }, function(g) { + g.M = "4.1.13"; + }, function(g, d, a) { + var c, h, k, f, p, m; - function b(a, b) { - var s52; - s52 = 2; - while (s52 !== 1) { - switch (s52) { - case 2: - a.data[b].forEach(function(a) { - var f52; - f52 = 2; - while (f52 !== 5) { - switch (f52) { - case 2: - a.abort(pa); - c += a.Jc; - f52 = 5; - break; - } - } - }); - s52 = 1; - break; - } - } - } - E52 = 2; - while (E52 !== 3) { - switch (E52) { - case 2: - c = 0; - for (f in this.Gc) - if (g = this.Gc[f], g.data) { - d = !1; - for (var m in g.data) { - D6u = "i"; - D6u += "n e"; - D6u += "ntry:"; - A6u = "m"; - A6u += "issi"; - A6u += "ng headerEn"; - A6u += "try for st"; - A6u += "reamId:"; - (h = g.headers[m]) || oa(A6u, m, D6u, g); - F.S(void 0) || !h || void 0 === h.O ? ((F.S(void 0) || void 0 != m) && b(g, m), g.data[m].forEach(a), delete g.data[m]) : d = !0; - } - d || delete g.data; - } this.cKa(c); - E52 = 3; - break; - } + function b(a) { + var b; + b = nrdp.cg.wIb.match(/android-(\d*)/); + b ? 23 < b[1] ? (a.Lv = !1, a.Kv = !1, a.cp = void 0) : (b = nrdp.cg.rzb.uCb.platform.pHb.match(/(\d*)\.(\d*).(\d*)/)) ? 6 < b[1] || 6 == b[1] && 1 < b[2] || 6 == b[1] && 1 == b[2] && 1 <= b[3] ? (a.Lv = !0, a.Kv = !1, a.cp = void 0) : (a.Lv = !1, a.Kv = !1, a.cp = []) : (a.Lv = !1, a.Kv = !1, a.cp = []) : (a.Lv = !1, a.Kv = !1, a.cp = []); + } + c = a(14); + h = a(111); + k = a(8); + f = k.Eb; + p = k.MediaSource; + m = k.AKa; + g.M = function(a) { + var d, g, r, l, n, q; + new k.Console("ASEJSMONKEY", "media|asejs"); + if (!k.Eb.ec) { + d = m.prototype.appendBuffer; + if (a.n0) { + f.ec = { + XD: { + mba: !0, + Bw: !1, + sfa: !0 + } + }; + Object.defineProperties(f.prototype, { + dx: { + get: function() { + return this.KQa; + }, + set: function() {} + }, + Bc: { + get: function() { + return !this.U5; } - - function a(a) { - var V52; - V52 = 2; - while (V52 !== 1) { - switch (V52) { - case 4: - a.dPa(); - V52 = 8; - break; - V52 = 1; - break; - case 2: - a.dPa(); - V52 = 1; - break; + } + }); + g = f.prototype.bj; + f.prototype.bj = function(a) { + a.response && (this.KQa = a.response instanceof ArrayBuffer ? a.response : a.response.buffer); + return g.call(this, a); + }; + f.prototype.mU = function() { + this.response = void 0; + }; + k.MediaSource.ec || (k.MediaSource.ec = {}); + void 0 === k.MediaSource.ec.WP && (k.MediaSource.ec.WP = !0); + Object.defineProperty(p.prototype, "duration", { + get: function() { + return this.jm; + }, + set: function(a) { + var b; + this.jm = a || Infinity; + b = Math.floor(1E3 * a) || Infinity; + this.sourceBuffers.forEach(function(a) { + a.jm = b; + }); + } + }); + r = m.prototype.C$; + l = { + Bc: !1, + Vi: function() { + return this.requestId; + }, + vna: function() { + this.response = void 0; + }, + constructor: { + name: "MediaRequest" + }, + toJSON: function() { + var a; + a = { + requestId: this.requestId, + segmentId: this.Ym, + isHeader: this.Bc, + ptsStart: this.rs, + ptsOffset: this.Kk, + responseType: this.NO, + duration: this.Jr, + readystate: this.We + }; + this.stream && (a.bitrate = this.stream.O); + return JSON.stringify(a); + } + }; + m.prototype.appendBuffer = function(a, b) { + var c; + if (!b) return d.call(this, a); + c = Object.create(l); + h({ + P: this.P, + readyState: 5, + requestId: b.Vi(), + rs: b.U, + PD: b.U + b.duration, + Jr: b.duration, + Kk: this.Vja || 0, + Jn: b.Jn, + Ym: b.cf.Fc.qa.id, + Ya: b.Ya, + cd: b.cd, + location: b.location, + iH: b.offset, + hH: b.offset + b.Z - 1, + O: b.O, + response: a, + ssa: a && 0 < a.byteLength, + cf: { + Fc: { + qa: { + ea: this.jm - (this.Vja || 0) || Infinity } } } + }, c); + return this.yP(c); + }; + m.prototype.C$ = function(a, b) { + this.Vja = Math.floor(1E3 * a / b); + return r.call(this, a, b); + }; + } else { + n = function(a) { + this.fTa = a; + }; + k.MediaSource.ec || (k.MediaSource.ec = {}); + "undefined" !== typeof nrdp && nrdp.xBb && (b(k.MediaSource.ec), k.MediaSource.ec.WP = !1); + k.Eb.ec = { + XD: { + mba: !0, + Bw: !0, + sfa: !0 + } + }; + Object.defineProperty(f.prototype, "_response", { + get: function() { + return this.TVa || this.HRa; + }, + set: function(a) { + this.HRa = a; + } + }); + q = f.prototype.open; + f.prototype.open = function(a, b, c, d, f, g, k) { + 1 === c && (this.TVa = new n(this)); + return q.call(this, a, b, c, d, f, g, k); + }; + f.prototype.mU = function() { + this.dx = void 0; + }; + m.prototype.appendBuffer = function(a) { + if (a instanceof ArrayBuffer) return d.call(this, a); + if (a instanceof n) return this.yP(a.fTa); + c(!1); + }; + } + } + }; + }, function(g, d) { + Object.defineProperty(d, "__esModule", { + value: !0 + }); + d.ICa = function() { + return function(a, b) { + var c; + c = this; + this.yx = []; + this.kD = []; + this.sm = 1; + this.Kbb = function() { + c.sm++; + }; + this.z3a = function() { + c.sm--; + 0 >= c.sm && c.WRa(); + }; + this.id = a.movieId; + this.Fa = a; + this.WRa = b; + }; + }(); + }, function(g, d, a) { + var b; + Object.defineProperty(d, "__esModule", { + value: !0 + }); + b = a(652); + new(a(8)).Console("ASEVIEWABLECACHE", "media|asejs"); + g = function() { + function a() { + this.mP = {}; + } + a.prototype.jab = function(a) { + var c, d, g; + c = this; + d = a && (a.playbackContextId || a.movieId); + g = this.mP[d]; + g ? g.Kbb() : a && (g = new b.ICa(a, function() { + delete c.mP[d]; + }), d && (this.mP[d] = g)); + return g; + }; + a.prototype.clear = function() { + this.mP = {}; + }; + return a; + }(); + d.RXa = new g(); + }, function(g, d, a) { + var b; + Object.defineProperty(d, "__esModule", { + value: !0 + }); + g = a(47); + b = a(653); + a = function() { + function a(a, c, d, g, m, r, l, x, v) { + void 0 === c && (c = !1); + void 0 === g && (g = 0); + this.Pm = 0; + this.ib = []; + this.qx = b.RXa.jab(a); + this.replace = c; + this.ge = d; + this.U = g; + this.ea = m; + this.z6 = r; + this.bo = l; + this.nC = x; + this.Gs = v; + } + a.prototype.Ld = function() { + this.qx.z3a(); + }; + return a; + }(); + d.iKa = a; + g.ai(a.prototype, { + R: g.L({ + get: function() { + return this.qx.id; + } + }), + Fa: g.L({ + get: function() { + return this.qx.Fa; + } + }), + yx: { + get: function() { + return this.qx.yx; + }, + set: function(a) { + this.qx.yx = a; + } + }, + kD: { + get: function() { + return this.qx.kD; + }, + set: function(a) { + this.qx.kD = a; + } + } + }); + }, function(g, d, a) { + var c, h, k; + + function b(a) { + h.call(this); + this.cB = a; + this.Yf = new c(); + this.Yf.on(this, h.ed.CF, this.AO); + this.Yf.on(this, h.ed.vw, this.rG); + this.W = k; + this.Ija = a.groupId; + } + c = a(29).dF; + d = a(8); + h = d.Eq; + k = new d.Console("ASEJS", "media|asejs"); + b.prototype = Object.create(h.prototype); + b.prototype.constructor = b; + b.prototype.open = function(a, b, c) { + h.prototype.open.call(this, a, b, c); + }; + b.prototype.Ld = function() { + this.Yf && this.Yf.clear(); + h.prototype.Ld.call(this); + }; + b.prototype.AO = function(a) { + this.cB.ckb(a.probed, a.affected); + this.Ld(); + }; + b.prototype.rG = function(a) { + this.cB.$jb(a.probed, a.affected); + this.Ld(); + }; + g.M = b; + }, function(g, d, a) { + var c, h, k; + + function b(a, b) { + this.mG = a; + this.Zw = 0 === Math.floor(1E6 * Math.random()) % b.dz; + this.groupId = 1; + this.config = b; + this.Lr = {}; + this.yv = {}; + } + c = a(11); + h = a(655); + k = a(8); + new k.Console("ASEJS_PROBE_MANAGER", "asejs"); + b.prototype.constructor = b; + b.prototype.bkb = function(a, b) { + var d, f, g, h, p, l, n, q, z, E, P; + d = this.mG; + f = a.cd; + g = d.KAa(a.url); + h = d.LS(a.url); + p = this.config; + l = k.time.da(); + q = b; + z = []; + E = g.Gj[0]; + P = !1; + n = this.Lr[f]; + if (!n) n = this.Lr[f] = { + count: 0, + Qe: l, + us: !1, + error: b, + t$: [], + V8: {} + }; + else if (n.Qe >= l - p.rV) return; + n.us || (E && h.id === E.id && (a.isPrimary = !0), n.Qe = l, n.us = !1, n.error = b, ++n.count, g && g.Qc && 0 !== g.Qc.length && (c.forEach(g.Qc, function(b) { + var c, d, g; + c = b.Pb.id; + d = c + "-" + f; + g = this.yv[d]; + if (void 0 === g || void 0 === g.$T) g && g.Pk && clearTimeout(g.Pk), b = this.ooa(b.url, a, c), this.yv[d] = { + S: !1, + count: 0, + $T: b.Vi() + }, z.push(b.Vi()), P = !0; - 1 === n.t$.indexOf(c) && n.t$.push(c); + }, this), this.Zw && 0 < z.length && (g = { + type: "logdata", + target: "endplay", + fields: {} + }, b = q, q = { + ts: k.time.da(), + es: b.dma, + fc: b.pk, + fn: b.fqa, + nc: b.Il, + pb: z, + gid: this.groupId + }, b.MI && (q.hc = b.MI), g.fields.errpb = { + type: "array", + value: q, + adjust: ["ts"] + }, d.Py(g)), P && this.groupId++)); + }; + b.prototype.ooa = function(a, b, c) { + var d, f, g, k; + d = this.mG.LS(b.url); + d = d && d.Ga && d.Ga.Xn && d.Ga.Xn.za || 300 * Math.random(0, 1); + f = new h(this); + g = a.split("?"); + k = "random=" + parseInt(1E7 * Math.random(), 10); + f.open(1 < g.length ? a + "&" + k : a + "?" + k, b, c, d); + return f; + }; + b.prototype.ckb = function(a, b) { + var c, d, f, g, h, p, l, n; + c = this.mG; + d = this.config; + f = b.cd; + g = this.Lr[f]; + p = a.url; + l = this.yv[a.cd + "-" + f]; + if (g && (h = g.error, l)) { + l && l.Pk && clearTimeout(l.Pk); + l.S = !0; + l.count = 0; + l.$T = void 0; + g.V8[a.cd] = !0; + (l = this.Lr[a.cd]) && !0 === l.us && d.ir && (c.Uya(a.cd, l.error.CL[1]), this.Zw && (l = { + type: "logdata", + target: "endplay", + fields: {} + }, l.fields.errst = { + type: "array", + value: { + ts: k.time.da(), + id: a.requestId, + servid: b.cd, + gid: a.groupId ? a.groupId : -1 + }, + adjust: ["ts"] + }, c.Py(l)), this.Lr[a.cd] = void 0); + if (p !== b.url) { + n = this.yv[f + "-" + f]; + n && n.S || (f = (f = c.LS(p)) && f.Ga && f.Ga.Xn && f.Ga.Xn.za || Math.random(0, 1) * d.QS, f = Math.min(f, d.QS), setTimeout(function() { + var d; + if (!(!1 !== g.us || n && n.S) && (g.us = !0, c.Ll(h.CL[0], h.CL[1], b.url, h), this.Zw)) { + d = { + type: "logdata", + target: "endplay", + fields: {} + }; + d.fields.erep = { + type: "array", + value: { + ts: k.time.da(), + id: a.requestId, + servid: b.cd, + gid: a.groupId ? a.groupId : -1 + }, + adjust: ["ts"] + }; + c.Py(d); + } + }.bind(this), f)); + } + this.Zw && (l = { + type: "logdata", + target: "endplay", + fields: {} + }, l.fields.pbres = { + type: "array", + value: { + ts: k.time.da(), + id: a.requestId, + result: 1, + servid: a.cd, + gid: a.groupId ? a.groupId : -1 + }, + adjust: ["ts"] + }, c.Py(l)); + } + }; + b.prototype.$jb = function(a, b) { + var d, f, g, h, p, l, n, q, z, E; + d = this.mG; + f = parseInt(b.cd, 10); + g = this.Lr[f]; + h = parseInt(a.cd, 10); + p = this.yv[h + "-" + f]; + l = 0; + z = this.config; + if (p && g) { + p.S = !1; + p.$T = void 0; + g.V8[h] = !1; + q = g.t$; + if (z.ir && h === f && b.isPrimary) { + E = d.LS(b.url); + E = E && E.Ga && E.Ga.Xn && E.Ga.Xn.za || 300 * Math.random(0, 1); + E = E * Math.pow(2, p.count); + E = Math.min(E, 12E4); + E = E + Math.random(0, 1) * (1E4 > E ? 100 : 1E4); + p.Pk = setTimeout(function() { + var c; + p.Pk = void 0; + c = this.ooa(a.url, b, h); + p.$T = c.Vi(); + }.bind(this), E); + }++p.count; + h === f && (l = 0, q.forEach(function(a) { + !1 === g.V8[a] && l++; + }), q.length === l && g.count >= z.XS && (n = g.error, g.us = !0, c.forEach(d.KAa(b.url).Qc, function(a) { + var b; + d.Ll(n.CL[0], n.CL[1], a.url, n); + if (this.Zw) { + b = { + type: "logdata", + target: "endplay", + fields: {} }; - n.prototype.Rca = function(a) { - var d52, b; - d52 = 2; - while (d52 !== 6) { - switch (d52) { - case 2: - b = a.stream.O; - 2 > this.gv.length && this.XGa(); - d52 = 4; - break; - case 7: - return b; - break; - case 4: - b = void 0 === a.X ? new D(a.stream, this.H, this.gv[b], a, this, !0, this) : S.create(a.stream, this.gv[b], a, this, !0, this); - d52 = 3; - break; - case 3: - b.Sd = a.Sd; - b.Wab = N.time.la(); - b.qob = this; - d52 = 7; - break; - } - } - }; - n32 = 63; - break; - case 37: - n.prototype.fE = function(a, b, c) { - var l42, d, g; - l42 = 2; - while (l42 !== 7) { - switch (l42) { - case 9: - c && delete d[b]; - g ? (this.LK = !1, this.hIa()) : this.LK = !0; - l42 = 7; - break; - case 4: - l42 = (d[b] = a) ? 3 : 9; - break; - case 2: - d = this.My; - g = a; - l42 = 4; - break; - case 3: - for (var h in d) { - d.hasOwnProperty(h) && !1 === d[h] && (g = !1); - } - l42 = 9; - break; - } - } - }; - n.prototype.hIa = function() { - var R42; - R42 = 2; - while (R42 !== 1) { - switch (R42) { - case 2: - !this.LK && 0 < this.vy.length && (this.vy.forEach(function(a) { - var u42; - u42 = 2; - while (u42 !== 1) { - switch (u42) { - case 2: - this.CL(a.CZa, a.Qb, this.H); - u42 = 1; - break; - } - } - }.bind(this)), this.vy = []); - R42 = 1; - break; - } - } - }; - n.prototype.$5a = function(a, c) { - var Z42, d, g, h, f, b6u, e6u; - Z42 = 2; - while (Z42 !== 25) { - b6u = "); "; - b6u += "ignori"; - b6u += "ng "; - b6u += "prepare for m"; - b6u += "ovieId: "; - e6u = "PTS passed to HeaderC"; - e6u += "ache.prepareP is not undefined or a"; - e6u += " positive number ("; - switch (Z42) { - case 8: - Z42 = f.k2a ? 7 : 6; - break; - case 4: - h = c.Qb; - f = c.config ? c.config : this.H; - this.kra(f.RM); - Z42 = 8; - break; - case 7: - return U.reject(); - break; - case 2: - Z42 = 1; - break; - case 14: - return oa(e6u + h + b6u + d), U.reject(); - break; - case 13: - d = this.Gc[d]; - Z42 = 12; - break; - case 27: - return U.reject(); - break; - case 15: - Z42 = g > f.o0 || this.ry + 1 > this.HD && g > this.yn[0].Vc ? 27 : 26; - break; - case 1: - d = c.M; - g = c.Vc; - Z42 = 4; - break; - case 20: - Z42 = !F.S(h) ? 19 : 17; - break; - case 26: - return this.fKa(a, c); - break; - case 16: - Z42 = !c.Sd || !this.Zr ? 15 : 26; - break; - case 18: - for (var m in d.headers) { - !F.S(d.headers[m].url) && null !== d.headers[m].url && (void 0 === d.data || void 0 === d.data[m] || d.data[m].length < f.wZ) ? this.CL(d.headers[m], h, f) : (F.S(d.headers[m].url) || null === d.headers[m].url) && void 0 !== d.data && void 0 !== d.data[m] && 0 < d.data[m].length && delete d.headers[m]; - } - Z42 = 17; - break; - case 12: - Z42 = !F.S(d) && (2 <= d.cA || !f.mF) ? 11 : 16; - break; - case 19: - void 0 === d.data && (d.ad.WA = void 0); - Z42 = 18; - break; - case 6: - Z42 = !F.S(h) && (!F.da(h) || 0 > h) ? 14 : 13; - break; - case 17: - return U.resolve(); - break; - case 11: - d.Vc = g; - this.yn.sort(b); - Z42 = 20; - break; - } - } - }; - n.prototype.fKa = function(a, c) { - var z42, d, g, h, f, m, p, r, k, u, v, n, q, w; - z42 = 2; - while (z42 !== 23) { - switch (z42) { - case 2: - d = c.M; - g = c.Vc; - h = c.Qb; - f = c.Sd; - m = c.SXa(); - p = m.Sa; - z42 = 7; - break; - case 20: - z42 = !a ? 19 : 18; - break; - case 7: - r = m.ki; - m = m.LX; - k = c.config ? c.config : this.H; - z42 = 13; - break; - case 19: - return U.reject(); - break; - case 13: - k = Z(k, p); - a = { - stream: [new aa(void 0, k.Zfa, k), new aa(void 0, k.kx, k)], - location: new Y(null, a.Hb, a.Jf, !r, k), - cc: { - state: la.xa.ng, - V0: !0, - buffer: { - Av: a.ol[la.G.VIDEO], - X: 0, - me: 0, - Ka: 0, - Qi: 0, - Mw: 0, - T: [] - } - } - }; - a.location.dM(p); - a = l(a, p, m, r, k, ha); - z42 = 20; - break; - case 24: - return U.all(v).then(function(a) { - var e42; - e42 = 2; - while (e42 !== 1) { - switch (e42) { - case 2: - return new U(function(b) { - var U42, c, N6u, j6u; - U42 = 2; - while (U42 !== 3) { - N6u = "m"; - N6u += "ovi"; - N6u += "eEntry"; - j6u = "b"; - j6u += "i"; - j6u += "llb"; - j6u += "oard"; - switch (U42) { - case 1: - U42 = w && f ? 5 : 9; - break; - case 2: - U42 = 1; - break; - case 9: - b(a); - U42 = 3; - break; - case 5: - c = G(u); - q.save(j6u, [N6u, u.M].join("."), c, ga, function() { - var o42; - o42 = 2; - while (o42 !== 1) { - switch (o42) { - case 4: - b(a); - o42 = 0; - break; - o42 = 1; - break; - case 2: - b(a); - o42 = 1; - break; - } - } - }); - U42 = 3; - break; - } - } - }); - break; - } - } - }).then(function(a) { - var O42; - O42 = 2; - while (O42 !== 3) { - switch (O42) { - case 2: - a = Math.max.apply(Math, a); - u.ad.GN = u.ad.Mka; - u.ad.UO = a; - return { - firstheadersent: u.ad.GN, - lastheadercomplete: u.ad.UO - }; - break; - } - } - }); - break; - case 18: - u = this.Gc[d]; - u || (u = { - Vc: g, - M: d, - headers: Object.create(null), - cA: 0, - sO: 0, - UE: 0, - data: void 0, - Sd: f, - ad: {} - }, u.Sd || (this.Gc[d] = u), this.yn.push(u), this.yn.sort(b)); - v = []; - k.AZa && (n = 2292 + 12 * Math.ceil(p.duration / 2E3)); - a.forEach(function(a) { - var K42, b, c; - K42 = 2; - while (K42 !== 6) { - switch (K42) { - case 2: - b = n ? n : k.tO; - K42 = 5; - break; - case 5: - K42 = !k.mF || !u.headers[a.ib] ? 4 : 6; - break; - case 4: - F.S(u.Nk) && a.O === la.G.VIDEO && (u.Nk = a.J, u.Em = a.Em, u.Ol = a.Ol, u.Qk = a.FZa, u.Qj = a.uO); - r && a.O === la.G.VIDEO && k.yN ? b = k.yN : k.Xsa && a.$k && (b = a.$k.offset + a.$k.size); - c = { - stream: a, - url: a.url, - offset: 0, - ga: b, - Sd: f, - Fx: k.Fx, - tv: k.tv - }; - a = f ? this.A1a(d).then(function(a) { - var x42; - x42 = 2; - while (x42 !== 5) { - switch (x42) { - case 2: - c.GA = a || {}; - return this.Pea(c, h, u); - break; - } - } - }.bind(this)) : this.Pea(c, h, u); - v.push(a); - K42 = 6; - break; - } - } - }.bind(this)); - z42 = 26; - break; - case 26: - q = this.Ji; - w = this.Zr; - z42 = 24; - break; - } - } - }; - n.prototype.flush = function() { - var h42, a, T6u, S6u; - h42 = 2; - while (h42 !== 7) { - T6u = "ma"; - T6u += "nagerdebuge"; - T6u += "vent"; - S6u = ", headerC"; - S6u += "ache "; - S6u += "f"; - S6u += "lush:"; - S6u += " "; - switch (h42) { - case 2: - this.fja(); - for (var b in this.ul) { - a = this.ul[b]; - a.abort(pa); - } - h42 = 4; - break; - case 4: - this.Gc = Object.create(null); - this.ry = 0; - this.yn = []; - this.H.Zd && (a = "@" + N.time.la() + S6u, this.Ha(T6u, { - message: a - })); - h42 = 7; - break; - } - } - }; - n.prototype.list = function() { - var N42; - N42 = 2; - while (N42 !== 1) { - switch (N42) { - case 2: - return this.yn; - break; - case 4: - return this.yn; - break; - N42 = 1; - break; - } - } - }; - n.prototype.kra = function(a) { - var w42; - w42 = 2; - while (w42 !== 1) { - switch (w42) { - case 2: - this.HD != a && (this.HD = a, this.Bca()); - w42 = 1; - break; - } - } - }; - n32 = 49; - break; - case 7: - B = a(270); - a(67); - A = a(267); - V = a(500); - D = a(266); - S = a(263); - H = a(88); - n32 = 20; - break; - case 63: - n.prototype.Ar = function(a) { - var D52, b; - D52 = 2; - while (D52 !== 8) { - switch (D52) { - case 3: - b = this.Gc[a.M] || a.ww; - 0 === b.sO && 0 === b.UE && this.mKa(b, a.Be); - D52 = 8; - break; - case 2: - a.zc && delete this.ul[a.ib]; - delete a.response; - a.ze(); - D52 = 3; - break; - } - } - }; - n.prototype.Pea = function(a, b, c) { - var J52, d; - J52 = 2; - while (J52 !== 20) { - switch (J52) { - case 4: - d.ww = c; - d.GA = a.GA; - J52 = 9; - break; - case 7: - J52 = !d.open() ? 6 : 14; - break; - case 6: - return U.reject(); - break; - case 9: - d.Fx = a.Fx; - d.tv = a.tv; - J52 = 7; - break; - case 11: - d.rO = a.rO; - J52 = 20; - break; - case 14: - c.sO++; - this.ul[d.ib] = d; - J52 = 12; - break; - case 2: - d = this.Rca(a); - d.kqa = b; - J52 = 4; - break; - case 10: - return new U(function(a) { - var b52; - b52 = 2; - while (b52 !== 1) { - switch (b52) { - case 2: - d.rO = a; - b52 = 1; - break; - case 4: - d.rO = a; - b52 = 2; - break; - b52 = 1; - break; - } - } - }); - break; - case 12: - J52 = a.rO ? 11 : 10; - break; - } - } - }; - n.prototype.nIa = function(a, b, c) { - var g52, d, g; - g52 = 2; - while (g52 !== 7) { - switch (g52) { - case 2: - d = a.xZ; - b.Sd && this.Zr && (a.nP ? d = a.nP : a.bna && 0 < a.bna && (d = 2E3 * a.bna)); - g52 = 4; - break; - case 4: - g52 = 0 < d ? 3 : 9; - break; - case 3: - return function(a, b) { - var U93 = v7AA; - var p52; - p52 = 2; - while (p52 !== 1) { - switch (p52) { - case 2: - U93.w3u(2); - return U93.x3u(b, d); - break; - case 4: - U93.w3u(3); - return U93.s3u(d, b); - break; - p52 = 1; - break; - } - } - }; - break; - case 9: - g = c.length < a.wZ ? c.length : a.wZ; - return function(a) { - var W93 = v7AA; - var q52; - q52 = 2; - while (q52 !== 1) { - switch (q52) { - case 4: - W93.w3u(3); - return W93.s3u(g, a); - break; - q52 = 1; - break; - case 2: - W93.F3u(2); - return W93.x3u(a, g); - break; - } - } - }; - break; - } - } - }; - n.prototype.CL = function(a, b, c) { - var I52, d, g, h, f, m, l, p, k, r, u, x6u, s6u, h6u, E6u, t6u, Z6u; - I52 = 2; - while (I52 !== 30) { - x6u = "no proper f"; - x6u += "ra"; - x6u += "gment found to req"; - x6u += "uest data at pts"; - s6u = "man"; - s6u += "a"; - s6u += "ger"; - s6u += "d"; - s6u += "ebugevent"; - h6u = ", s"; - h6u += "t"; - h6u += "artP"; - h6u += "ts:"; - h6u += " "; - E6u = ","; - E6u += " "; - E6u += "pt"; - E6u += "s: "; - t6u = ", s"; - t6u += "t"; - t6u += "ream"; - t6u += "Id: "; - Z6u = ", "; - Z6u += "he"; - Z6u += "aderCache"; - Z6u += " requestData: movieId: "; - switch (I52) { - case 9: - this.vy.push({ - CZa: a, - Qb: b - }); - I52 = 8; - break; - case 2: - d = a.M; - g = a.ib; - c = c || this.H; - I52 = 3; - break; - case 32: - ++m; - I52 = 34; - break; - case 21: - b = h.data[g]; - I52 = 35; - break; - case 17: - I52 = -1 === m ? 16 : 15; - break; - case 14: - I52 = h ? 13 : 30; - break; - case 11: - h.zZ = a; - return; - break; - case 20: - b = h.En; - I52 = 19; - break; - case 8: - I52 = this.vy.length > c.n0 ? 7 : 30; - break; - case 15: - l = a.stream.Vi(m); - l.Sd = a.Sd; - p = a.O; - (p === la.G.VIDEO && c.Rv || p === la.G.AUDIO && c.Sp) && (p = l.l_(b)) && 0 < p.Qb && l.oq(p, !1); - c.Zd && (b = "@" + N.time.la() + Z6u + d + t6u + g + E6u + b + h6u + l.X, this.Ha(s6u, { - message: b - })); - void 0 === h.data && (h.data = Object.create(null)); - void 0 === h.data[g] && (h.data[g] = []); - I52 = 21; - break; - case 19: - f = a.T; - m = f.Ll(b); - I52 = 17; - break; - case 33: - void 0 === l && (l = a.stream.Vi(m), l.Sd = a.Sd), F.S(h.En) && (h.En = l.X), l.Sd && (l.responseType = O.Ei.el), k = d + "." + g, a.Sd && this.Zr && a.GA[k] && a.GA[k][l.X] || (k = this.Rca(l), k.Sd && (k.ww = a.ww), k.open(), ++h.UE, b.push(k)), ++u, r += l.duration, l = void 0; - I52 = 32; - break; - case 34: - I52 = m < f.length && !p(u, r) ? 33 : 31; - break; - case 13: - I52 = a.O === la.G.AUDIO ? 12 : 19; - break; - case 31: - h.zZ && (a = h.zZ, delete h.zZ, this.CL(a, h.En, c)); - I52 = 30; - break; - case 12: - I52 = void 0 === h.En ? 11 : 20; - break; - case 6: - h = this.Gc[d] || a.ww; - I52 = 14; - break; - case 3: - I52 = this.LK ? 9 : 6; - break; - case 7: - this.vy.shift(); - I52 = 8; - break; - case 16: - oa(x6u, b, a); - I52 = 30; - break; - case 35: - p = this.nIa(c, a, f), r = 0, u = 0; - I52 = 34; - break; - } - } - }; - n.prototype.kca = function(a) { - var S52, b, c; - S52 = 2; - while (S52 !== 3) { - switch (S52) { - case 2: - b = a.ib; - c = this.Gc[a.M] || a.ww; - c && (c.eMa || c.Sd || (c.eMa = !0, ++this.ry), c.headers || (c.headers = {}), c.headers[b] = a, this.H.mF && ++c.cA, this.Bca()); - S52 = 3; - break; - } - } + b.fields.erep = { + type: "array", + value: { + ts: k.time.da(), + id: -1, + servid: a.Pb.id + }, + adjust: ["ts"] }; - n.prototype.Bca = function() { - var j52, b, c, d; + d.Py(b); + } + }, this))); + this.Zw && (f = { + type: "logdata", + target: "endplay", + fields: {} + }, f.fields.pbres = { + type: "array", + value: { + ts: k.time.da(), + id: a.requestId, + result: 0, + servid: a.cd, + gid: a.groupId ? a.groupId : -1 + }, + adjust: ["ts"] + }, d.Py(f)); + } + }; + b.prototype.Raa = function(a) { + var b, c, d; + b = a.url || a.mediaRequest.url; + if (b) { + a = this.mG; + b = a.Oza(b); + c = this.Lr[b]; + d = this.yv[b + "-" + b]; + c && c.us && this.config.ir && (a.Uya(c.error.dma, !1), this.Zw && (c = { + type: "logdata", + target: "endplay", + fields: {} + }, c.fields.errst = { + type: "array", + value: { + ts: k.time.da(), + id: -1, + servid: b + }, + adjust: ["ts"] + }, a.Py(c)), this.Lr[b] = void 0, d && d.Pk && clearTimeout(d.Pk)); + } + }; + b.prototype.reset = function() { + var a, b, c; + a = this.yv; + for (c in a) a.hasOwnProperty(c) && (b = a[c + "-" + c]) && b.Pk && clearTimeout(b.Pk); + this.yv = {}; + this.Lr = {}; + }; + g.M = b; + }, function(g, d, a) { + var c, h, k, f, p, m, r, l, x, v, n, q, D, z, E, P; + + function b(a, b, c) { + var d, f; + this.bo = b; + this.config = c; + E[z.xX] = c.tbb ? v : D; + this.bo.on("networkFailed", this.Aab.bind(this)); + this.$C = k.time.da(); + this.mQ = 0; + d = this.Raa.bind(this); + f = this.rhb.bind(this); + a.on("underflow", this.o8.bind(this)); + a.on("requestProgress", d); + a.on("requestComplete", d); + a.on("startBuffering", f); + this.oaa = {}; + this.cB = new r(b, c); + this.Obb(); + } + d = a(48); + c = a(29).EventEmitter; + h = a(11); + k = a(8); + f = new k.Console("ASEJS_ERROR_DIRECTOR", "asejs"); + p = a(13); + m = k.Eb; + r = a(656); + a = [p.jf.vq, !1]; + l = [p.jf.vq, !0]; + x = [p.jf.Aw, !1]; + v = [p.jf.Aw, !0]; + n = [p.jf.URL, !0]; + q = []; + D = [p.jf.Aw, !1]; + z = m.Ss; + E = {}; + E[z.etb] = x; + E[z.NFa] = x; + E[z.Bca] = x; + E[z.ZFa] = x; + E[z.RFa] = v; + E[z.mEa] = v; + E[z.$ba] = D; + E[z.lW] = D; + E[z.nEa] = q; + E[z.oEa] = D; + E[z.pEa] = D; + E[z.jEa] = x; + E[z.lEa] = x; + E[z.Zba] = a; + E[z.kEa] = x; + E[z.iEa] = D; + E[z.nub] = v; + E[z.PHa] = D; + E[z.yda] = D; + E[z.xda] = D; + E[z.xX] = D; + E[z.vda] = D; + E[z.OHa] = n; + E[z.zX] = v; + E[z.MM] = n; + E[z.AX] = l; + E[z.BX] = v; + E[z.RHa] = n; + E[z.NM] = D; + E[z.zda] = v; + E[z.QHa] = v; + E[z.UFa] = v; + E[z.OFa] = x; + E[z.IOa] = x; + E[z.EFa] = x; + E[z.FFa] = x; + E[z.GFa] = x; + E[z.HFa] = x; + E[z.IFa] = x; + E[z.JFa] = x; + E[z.KFa] = x; + E[z.LFa] = x; + E[z.MFa] = x; + E[z.PFa] = x; + E[z.QFa] = x; + E[z.SFa] = x; + E[z.TFa] = x; + E[z.VFa] = x; + E[z.WFa] = x; + E[z.XFa] = x; + E[z.YFa] = x; + E[z.$Fa] = x; + E[z.aGa] = x; + E[z.HOa] = D; + E[z.TIMEOUT] = a; + P = {}; + P[z.$ba] = !0; + P[z.yda] = !0; + P[z.xda] = !0; + P[z.vda] = !0; + P[z.Bca] = !0; + d(c, b.prototype); + b.prototype.bob = function(a) { + this.Vo = a; + }; + b.prototype.Ll = function(a, b, c, d) { + var g, k, r, l, u, v, n; + g = m.Ss.name[b]; + k = E[b]; + v = this.config; + n = this.bo; + f.warn("Failure " + g + " on " + JSON.stringify(d) + " : critical error count = " + this.mQ); + this.DS = { + MI: a, + pk: b, + fqa: g, + Il: c + }; + P[b] && ++this.mQ; + if (!h.isArray(k)) f.error("Unmapped failure code in JSASE error director : " + b); + else if (k !== q) { + if (d.url) u = {}, u[n.Oza(d.url)] = [d.url]; + else if (d.host) u = n.Dnb(d.host, d.port); + else { + f.error("Invalid affected for network failure"); + return; + } + r = k[0]; + l = k[1]; + v.no ? h.forEach(u, function(f, h) { + k === D || k === x ? this.cB.bkb({ + url: d.url ? d.url : f[0], + cd: h + }, { + dma: h, + CL: k, + MI: a, + pk: b, + fqa: g, + Il: c + }) : f.some(function(a) { + n.Ll(r, l, a); + return r === p.jf.Aw; + }); + !v.lp || 0 !== a && void 0 !== a || (f = void 0 !== d.url ? d.url : f[0], this.Vo && f && this.Vo.j$("error", f)); + }, this) : h.forEach(u, function(b, c) { + if (k !== D || this.Tlb(c)) b.some(function(a) { + n.Ll(r, l, a); + return r === p.jf.Aw; + }), !v.lp || 0 !== a && void 0 !== a || (b = void 0 !== d.url ? d.url : b[0], this.Vo && b && this.Vo.j$("error", b)); + }, this); + } + }; + b.prototype.Tlb = function(a) { + var b, c, d; + b = k.time.da(); + d = this.config; + if (c = this.oaa[a]) + if (c.Qe < this.$C) c.Qe = b, c.count = 1; + else { + if (!(c.Qe >= b - d.rV || c.us || (c.Qe = b, ++c.count, c.count < d.XS))) return c.us = !0; + } + else this.oaa[a] = { + Qe: b, + count: 1 + }; + }; + b.prototype.Aab = function(a) { + var b, c, d, g, h, m; + b = k.time.da() - this.$C; + c = a; + m = this.config; + f.warn("Network has failed " + (a ? "permanently" : "temporarily") + " last success was " + b + " ms ago"); + !a && b > m.R7 && (c = !0); + c ? (this.WD && (clearTimeout(this.WD), this.WD = void 0), this.zna(), this.cB.reset(), this.DS && (d = this.DS.pk, g = this.DS.MI, h = this.DS.Il), this.emit("streamingFailure", { + vcb: a, + Vhb: d, + Whb: g, + Xhb: h + })) : this.WD || (this.WD = setTimeout(function() { + this.WD = void 0; + this.DK(); + }.bind(this), m.S7)); + }; + b.prototype.DK = function(a) { + this.WD || (this.bo.DK(!!a), this.oaa = {}, this.emit("networkFailureReset")); + }; + b.prototype.Raa = function(a) { + var b; + b = this.config; + this.$C = Math.max(a.timestamp || k.time.da(), this.$C); + this.zna(); + b.no && this.cB.Raa(a); + }; + b.prototype.rhb = function() { + this.mQ = 0; + }; + b.prototype.o8 = function(a) { + var b, c; + b = this.config; + c = b.j7; + this.$C = Math.max(a || k.time.da(), this.$C); + b.Yrb && !this.DL && (f.info("Setting underflow timeout in " + c + "ms"), this.DL = setTimeout(function() { + f.info("Forcing permanent network failure after " + c + "ms, since underflow with no success"); + this.DL = void 0; + this.bo.Ll(p.jf.vq, !0); + }.bind(this), c)); + }; + b.prototype.zna = function() { + this.DL && (clearTimeout(this.DL), this.DL = void 0, f.info("Cleared underflow timeout")); + }; + b.prototype.Obb = function() { + var b, c, d, g; + + function a(a) { + for (var b = a.length, c, d; b;) d = Math.floor(Math.random() * b--), c = a[b], a[b] = a[d], a[d] = c; + return a; + } + b = this.bo; + c = this; + d = this.config.h2; + g = {}; + switch (d) { + case "1": + b.on("manifestAdded", function() { + var d; + d = []; + g.n = g.n || 0; + b.Dqa(function(a, b, c, f) { + g[f.id] || (g[f.id] = !0, d.push(f.id)); + }); + a(d).forEach(function(a) { + setTimeout(function() { + c.Ll(m.Ss.BX, { + url: a + }); + }, 4E3 + g.n); + g.n += 1E3; + }); + }); + break; + case "2": + b.on("manifestAdded", function() { + var a; + a = []; + b.Dqa(function(b, c, d, f) { + g[f.id] || (g[f.id] = !0, a.push({ + O: d.O, + url: f.id + })); + }); + a.sort(function(a, b) { + return b.O - a.O; + }).map(function(a) { + return a.url; + }).forEach(function(a) { + setTimeout(function() { + b.Vx() || c.Ll(m.Ss.MM, { + url: a + }); + }, 5E3 * Math.random()); + }); + }); + break; + default: + return; + } + f.warn('Initialized network failure simulation "' + d + '"'); + }; + g.M = b; + }, function(g, d, a) { + var b, c; + Object.defineProperty(d, "__esModule", { + value: !0 + }); + b = a(28); + g = a(8); + c = g.Eb; + new g.Console("ASEJS_SIDECHANNEL", "media|asejs"); + g = function() { + function a(a, c, d) { + this.aa = d; + this.zWa = new b.GQa(a); + this.L_ = c.ka; + this.cRa = 1E3 * c.dfb / c.bZa; + this.PRa = c.ipa; + } + a.prototype.ru = function(a) { + var c; + c = { + aIb: this.L_, + wDb: this.PRa ? 1 : 0 + }; + a.Zd && (c.bs = b.MB(Math.floor(a.Zd / this.cRa) + 1, 1, 5)); + a.wT && (c.limit_rate = a.wT); + a.Qma && (c.bb_reason = a.Qma); + return this.jUa(c); + }; + a.prototype.j$ = function(a, b) { + var d, f; + try { + d = new c(void 0, "notification"); + f = this.ru({ + Qma: a + }); + b && f && d.open(b, void 0, 2, void 0, void 0, void 0, f); + } catch (r) { + this.aa.Jp("SideChannel: Error when sending sendBlackBoxNotification. Error: " + r); + } + }; + a.prototype.jUa = function(a) { + var b; + try { + b = this.tVa(a); + return this.zWa.encrypt(b); + } catch (p) { + this.aa.Jp("SideChannel: Error when obfuscating msg. Error: " + p); + } + }; + a.prototype.tVa = function(a) { + return Object.keys(a).map(function(b) { + return encodeURIComponent(b) + "=" + encodeURIComponent(JSON.stringify(a[b])); + }).join("&"); + }; + return a; + }(); + d.iPa = g; + }, function(g, d, a) { + var c; + + function b(a) { + this.jx = void 0; + this.gTa = a; + this.t_ = []; + this.Gb = []; + } + a(11); + a(13); + c = a(43).ny; + a(28); + b.prototype.reset = function(a) { + this.jx = void 0; + this.t_ = []; + a && (this.Gb = []); + }; + b.prototype.add = function(a, b) { + var d, g; + d = b.filter(function(b, d) { + return c(b) || d === a.Fd; + }); + g = d.map(function(a) { + return a.O; + }); + b = d.indexOf(b[a.Fd]); + this.jx && (this.jx.length !== g.length || this.jx.some(function(a, b) { + return a !== g[b]; + })) && (d = this.jra()) && (this.Gb.push(d), this.reset(!1)); + void 0 === this.jx && (this.jx = g); + this.t_.push([b, a.BBa, a.Ra, a.hZa, a.$ma, a.Gjb, a.fhb, a.xxa, a.Zo, a.Jn, a.bqb - a.BBa]); + }; + b.prototype.Q5a = function() { + for (var a = this.t_, b = [], c = [], d = 0; d < a.length; d++) { + for (var g = a[d], r = [], l = 0; l < g.length; l++) r.push(g[l] - (c[l] || 0)); + b.push(r); + c = g; + } + return b; + }; + b.prototype.jra = function() { + var a; + a = this.Q5a(); + if (0 !== a.length) return { + dltype: this.gTa, + bitrates: this.jx, + seltrace: a + }; + }; + b.prototype.get = function() { + var a, b; + a = this.jra(); + b = this.Gb; + a && b.push(a); + if (0 !== b.length) return b; + }; + g.M = b; + }, function(g, d, a) { + var c, h; + + function b() { + this.YO = []; + this.YO[c.G.VIDEO] = new h(c.G.VIDEO); + this.YO[c.G.AUDIO] = new h(c.G.AUDIO); + } + a(11); + c = a(13); + a(8); + a(28); + h = a(659); + b.prototype.jXa = function(a, b, c) { + this.YO[a].add(b, c); + }; + b.prototype.I$a = function() { + var a; + a = []; + this.YO.forEach(function(b) { + var c; + if (b) { + c = b.get(); + c && 0 < c.length && c.forEach(function(b) { + a.push(b); + }); + b.reset(!0); + } + }); + return a; + }; + b.prototype.T6a = function(a) { + var b; + b = this.I$a(); + a.strmsel = b; + return 0 < b.length; + }; + g.M = b; + }, function(g, d, a) { + var h, k, f, p, m, r; + + function b(a, b, d) { + this.$a = a; + this.aa = b; + this.K = d; + this.mB = []; + [k.G.AUDIO, k.G.VIDEO].forEach(function(a) { + b.WC(a) && (this.mB[a] = new c(b, a)); + }.bind(this)); + this.xt = void 0; + } + + function c(a, b) { + this.W = m(f, a.W, "[" + b + "]"); + this.Rb = this.W.error.bind(this.W); + this.fa = this.W.warn.bind(this.W); + this.Hb = this.W.trace.bind(this.W); + this.Ua = this.W.log.bind(this.W); + this.yt = this.W.debug.bind(this.W); + this.P = b; + this.zl = this.lI = this.ol = this.gH = this.wm = this.l6 = this.Aj = void 0; + this.iK = this.mo = 0; + this.connected = !1; + this.s6 = this.ry = this.ZC = this.p6 = this.Yu = this.ao = this.ii = void 0; + this.NE = this.upa = !1; + this.bv = this.Wma = this.Yn = void 0; + } + h = a(11); + k = a(13); + f = a(8); + p = a(43).ny; + m = a(28).vJ; + r = a(350); + Object.defineProperties(b.prototype, { + ob: { + get: function() { + return this.mB; + } + } + }); + b.prototype.jD = function(a) { + var b, c, d, g, m, p, r, l, u, n, q, t; + b = this.K; + c = this.aa; + d = a.P; + g = c.Ej()[d]; + m = a.Fc.na; + p = c.wa[m]; + r = this.mB[d]; + l = d === k.G.VIDEO ? b.y0 : b.$aa; + u = c.yb.value; + n = c.Nt.de(); + b = a.Oa.Sra(); + g = { + nu: g, + U: b.$b, + nf: n, + Ra: b.rjb || n, + rl: a.Fx || n, + en: b.en, + pv: b.pv, + nEb: b.Y.length, + Y: [] + }; + p = { + state: u, + ly: c.ly() && !c.uCa(), + Iv: a.fg, + buffer: g, + ep: p.yx[d], + H4a: l, + teb: c.WA, + SDb: c.$Ra, + vl: c.vl, + Zo: c.aj && c.aj.Zo + }; + void 0 === p.Iv && (p.Iv = c.eO(d, m, g.Ra)); + g.Y = b.Y; + if (p.state === k.Ca.xf && 0 === g.Y.length && !h.ja(a.rE.Yw)) { + a.G9 && (t = f.time.da() - a.G9.time, q = a.G9.reason); + a.Rb("makePlayerInfo, PLAYING with 0 fragments,", "lastStreamAppended:", r.ao, "lastStreamSelected:", r.ii, "last pipeline.reset:", q, "delta:", t); + } + h.ja(g.U) ? a.seeking && g.nf != g.U && (g.nf = g.U) : (g.U = 0, g.Ra = 0); + c.xd.l_a(p); + c.xd.fXa(p); + return p; + }; + b.prototype.k_a = function(a, b, c) { + var m, r; + a = this.mB[a]; + for (var d = a.bv, f = "manifest", g = this.aa, k = 0, h = b.length - 1; 0 <= h; h--) { + m = b[h]; + r = m.O; + if (p(m)) { + k = Math.max(k, r); + break; + } else !m.inRange && m.ZB && m.ZB.join ? f = m.ZB.join("|") : m.Al ? m.Fe ? m.Eh && (f = "hf") : f = "av" : f = "bc"; + } + if (void 0 === d || k !== d) { + a.bv = k; + if (g.On) try { + this.xt && this.zab(); + } catch (la) { + g.Jp("Hindsight: Error when handling maxbitrate chagned: " + la); + } + g.Pgb(d, k, f, c); + } + }; + b.prototype.FI = function(a) { + var b, c, d, f, g, m, p, r, l, u, n, q; + b = this.K; + c = this.aa; + d = a.P; + f = d == k.G.VIDEO; + g = 0; + p = this.mB[d]; + if (!p.Aj) return { + ef: void 0 + }; + r = this.jD(a); + l = p.ii; + u = a.Fc.na; + n = a.bc; + q = l ? l.index : p.lI; + if (l && (g = l.O, l.VP)) { + q = c.tja(n, g); + m = n[q]; + if (l.O !== m.O || !l.VP.replace && d === k.G.VIDEO) r.state = k.Ca.Og; + l.index = q; + l.O = m.O; + } + m = c.sk(u); + n = m.bo.EV(r, n); + if (!n) return a.Rb("location selector did not find any urls"), { + ef: void 0 + }; + if (!f) { + u = b.jaa; + if (!(u && u.length || a.FK) && q && n[q] && l && l.location === n[q].location) return { + ef: q, + tH: !0 + }; + a.FK && (r.state = k.Ca.Og, q = void 0); + } + if (f && b.hC && b.k4a && !p.Aj.Zn() && a.Zd > b.NP) return { + ef: a.$ab, + tH: !0 + }; + c.xd.kna(r.Iv, n); + r = a.rE.i$(r, n, q, c.xd.b$a(d), p.Aj.config.cf, b.Vaa && 0 === c.uka ? b.mD : b.p7, m.nC); + if (!r) return a.Rb("stream selector did not find a stream"), { + ef: void 0 + }; + c.vl && c.Vlb.jXa(a.P, r, n); + f && this.k_a(d, n, a.Ra); + c.xd.Nhb(r); + d = r.Fd; + n = n[d].O; + l = a.Zd; + r.K2a && l < b.O0 && n < g && c.dUa(g, n); + d != q && (f && b.hC && c.lia(a, n), f || c.xd.fE(n)); + h.ja(p.lI) || (p.lI = d); + a.fp || (r.fp ? (a.fp = !0, p.Wma = r.reason) : (a.uJ = r.uJ, a.qz = r.qz, a.oi = r.oi)); + c.tt(); + f && c.vVa(a, r.Nx) || (a.yu = void 0); + return { + ef: d, + tH: r.tH, + eza: r.eza + }; + }; + b.prototype.s3 = function(a, b) { + var c, d, f, g, h; + if (this.xt) { + c = this; + d = this.xt; + f = this.aa; + g = f.de(); + h = []; + b && (g = b.ea); + f.la.De.forEach(function(b) { + var d, m; + d = c.jD(b); + m = b.P; + d.P = m; + d.headers = f.BC(m); + d.nf = g; + a === k.Ca.jt && (d.nya = b.Oa.h0(g)); + h[m] = d; + }); + d.lqa || d.Y6a(h, a) || this.E9(); + return d; + } + }; + b.prototype.zab = function() { + var a, b, c, d, g; + a = this; + b = this.xt; + c = this.K; + d = this.aa; + g = []; + b && (this.s3(void 0), b && !b.yB && d.MG.fU.Z2(b)); + d.la.De.forEach(function(b) { + var c, d; + c = a.jD(b); + d = b.P; + c.ol = f.time.da(); + c.bc = b.bc; + c.P = d; + g[d] = c; + }); + b = d.Ej(); + b = { + HWa: b[k.G.AUDIO], + KE: b[k.G.VIDEO], + zJ: c.By + }; + this.xt = b = new r(g, f.time.da(), void 0, d.R2, b, c.KI); + }; + b.prototype.E9 = function() { + this.xt = void 0; + }; + b.prototype.Grb = function(a) { + var b, c, d, g, h, m; + b = this; + c = a.oldValue; + d = a.newValue; + g = this.xt; + a = this.K; + h = this.aa; + d === k.Ca.xf && c !== k.Ca.xf ? (g && h.W.warn("override an existing play segment!"), m = [], h.la.De.forEach(function(a) { + var c, d, f; + c = b.jD(a); + d = a.P; + f = b.ob[d]; + f.M$ ? (c.ol = f.M$, f.M$ = void 0) : c.ol = f.ol; + c.bc = a.bc; + c.P = d; + m[d] = c; + }), d = h.Ej(), d = { + HWa: d[k.G.AUDIO], + KE: d[k.G.VIDEO], + zJ: a.By + }, this.xt = g = new r(m, f.time.da(), c, h.R2, d, a.KI)) : d !== k.Ca.xf && c === k.Ca.xf && g && (this.s3(d), g && !g.yB && h.MG.fU.Z2(g), this.E9()); + }; + b.prototype.Bab = function(a) { + this.mB.forEach(function(b) { + b.ii || (b.ii = {}); + b.ii.VP = { + replace: a + }; + b.ii.location = void 0; + }.bind(this)); + }; + g.M = b; + }, function(g, d, a) { + var h, k, f, p, m, r; + + function b(a, b, c, d, f, g, k) { + this.om = c; + this.$j = b; + this.ze = d; + this.Yc = f; + this.Ve = g; + this.K = k; + this.W = a; + this.Rb = this.W.error.bind(this.W); + this.fa = this.W.warn.bind(this.W); + this.Hb = this.W.trace.bind(this.W); + this.on = this.addEventListener = m.addEventListener; + this.removeEventListener = m.removeEventListener; + this.emit = this.Ia = m.Ia; + this.reset(); + } + + function c(a) { + return a.Gd(h.cc.I7a(Math.floor(a.bf))); + } + h = a(74); + k = a(11); + f = a(8); + p = a(13); + m = a(29).EventEmitter; + r = a(347); + b.prototype.constructor = b; + Object.defineProperties(b.prototype, { + MP: { + get: function() { + return this.Yc ? this.Yc.MP : -1; + } + }, + Fsb: { + get: function() { + return this.Zh.length; + } + }, + Ycb: { + get: function() { + return this.Ft; + } + } + }); + b.prototype.reset = function(a) { + this.Tq = !1; + a || (this.Zh = []); + this.sO = this.Ft = this.GZ = this.MZ = void 0; + this.dB = h.cc.Sf; + this.xO = this.gB = this.Gt = void 0; + this.Nw = h.cc.Sf; + this.$O = 0; + this.WZ = this.SZ = h.cc.Sf; + this.xZ = !1; + this.RO(h.cc.Sf); + }; + b.prototype.lSa = function(a, b) { + void 0 === this.xO && ("object" === typeof this.K.V9 && this.K.V9[a] ? (a = new h.cc(this.K.V9[a], 1E3).yo(b.ha).add(new h.cc(1, b.ha)), this.xO = h.cc.min(b, a)) : this.xO = b); + return this.xO; + }; + b.prototype.RO = function(a) { + this.aWa = a; + this.Yc.C$(a.vd, a.ha); + }; + b.prototype.v7a = function() { + this.GZ = !0; + }; + b.prototype.pause = function() { + this.Tq = !0; + }; + b.prototype.resume = function() { + this.Tq = !1; + this.Mw(); + }; + b.prototype.A9a = function() { + return this.Ft && this.Ft.Md; + }; + b.prototype.B9a = function() { + return this.Ft && this.Ft.Cd; + }; + b.prototype.SZa = function(a, b) { + var d; + for (var c = 0; c < this.Zh.length; c++) { + d = this.Zh[c]; + d.cf.Fc.qa.id === a && d.Kc >= b && (d.abort(), this.Zh.splice(c, 1), c--); + } + }; + b.prototype.hYa = function(a) { + var b; + if (this.K.YH) { + b = a.cf.Fc; + if (a.Kc >= b.ea) return; + a.Kk != b.Jc && a.eAa(new h.cc(b.Jc, 1E3)); + } + this.Zh.push(a); + this.Mw(); + }; + b.prototype.Co = function() { + this.Mw(); + }; + b.prototype.BK = function(a) { + a = this.Zh.indexOf(a); - 1 !== a && this.Zh.splice(a, 1); + }; + b.prototype.Kgb = function() { + this.Mw(); + }; + b.prototype.d8 = function() { + this.xZ || (this.xZ = !0, this.Mw(), this.Yc.endOfStream()); + }; + b.prototype.Mw = function() { + var a, b, c, d, g, h; + b = this.K; + c = Object.getOwnPropertyNames(this.Ve); + b.m0 && k.V(this.MZ) && 1 === c.length && (a = this.Ve[c[0]], a.complete && !k.V(a.Ya) && this.ria(a)); + if (this.Zh.length) + if (this.Yc) + if (c = this.Zh[0], this.Tq) this.fB("@" + f.time.da() + ", bufferManager _append ignored, paused, nextRequest: " + JSON.stringify(c)); + else if (!c.complete && c.nta()) this.fa("aborted MediaRequest should not appear in the toAppend list"), this.fB("@" + f.time.da() + ", append: removing aborted request from toAppend: " + c.toString()), this.Zh.shift(); + else { + d = c.Ya; + if ((a = this.Ve[d]) && a.data) + if (this.GZ || d != this.MZ) this.GZ = !1, this.ria(a); + else if (!b.QV || c.te.JI()) { + a = c.cf; + g = c.$b - a.aa.de(); + if (!(this.$j === p.G.AUDIO && c.Cp && c.$c && !b.Wm && !this.xZ && 1 === this.Zh.length && g > b.J7)) { + if (b.YH || b.Jpa) { + d = a.Fc.Ag; + h = c.Md >= a.Fc.Am; + g = g > b.J7; + if (a.Fc.Am < a.Fc.ea && h && g && !d) return; + } + b.Dib && (b = c.te.sk(a.na)) && !b.vx ? this.pause() : (this.Zh.shift(), this.QQa(c)); + } + } + } else this.fB("@" + f.time.da() + ", append: not appending, sourceBuffer not ready"); + }; + b.prototype.MQa = function(a) { + this.K.wx && this.K.Gm && a.stream.Ik && (this.dB = a.stream.Ik); + }; + b.prototype.ria = function(a) { + if (this.Yc.appendBuffer(a.data)) this.fB("@" + f.time.da() + ", header appended, streamId: " + a.Ya), this.MZ = a.Ya, this.bVa(a.na || 0, a.Ya), this.MQa(a), this.Mw(); + else throw this.fa("appendHeader error: " + this.Yc.error), this.fB("@" + f.time.da() + ", appendHeader error: " + this.Yc.error), Error("appendHeaderError"); + }; + b.prototype.qVa = function(a) { + void 0 === this.gB && (this.gB = r.EU(this.K, a)); + return this.gB; + }; + b.prototype.QQa = function(a) { + var b, c, d, g, k, m, r, l, u; + b = a.Kk; + c = !1; + d = this.$j === p.G.AUDIO && a.$c && this.qVa(a.stream); + g = h.cc.Sf; + k = a.cf.Fc.qa; + k.ea && Infinity != k.ea && (k = (k.ea + b) / 1E3, Infinity == this.ze.duration || this.ze.duration < k) && (this.ze.duration = k); + if (b != this.sO) { + m = this.dB.add(this.Nw).add(new h.cc(b, 1E3)); + this.RO(m); + this.sO = b; + } + k = a.cf; + if (d) { + r = a.stream.Ka; + m = this.lSa(a.profile, r); + b = a.Nv + a.Kk; + if (a.Cp) c = new h.cc(a.ea - b, 1E3), c = this.Nw.add(c).QR(m); + else if (void 0 !== this.Gt) { + l = this.Gt; + u = a.WT; + new h.cc(b - a.U, 1E3); + b = this.Nw.add(l.Gd(u)); + if (u.add(r).odb(l) || b.QR(m)) c = !0, u.add(r), b = b.Gd(r); + b.xT(this.Nw) && (b.QR(h.cc.VJ.P7(-8)) ? (m = this.dB.add(b).add(new h.cc(this.sO, 1E3)), this.K.Wm || (g = this.lRa(a, m), g = this.NSa.Gd(g), g.QR(h.cc.VJ.P7(2)) ? (m = m.Gd(h.cc.VJ), ++this.$O) : this.$O && g.lessThan(h.cc.VJ) && (m = m.add(h.cc.VJ), --this.$O)), this.RO(m), this.SZ = h.cc.max(this.SZ, b), this.WZ = h.cc.min(this.WZ, b), this.dVa(this.SZ, this.WZ), g = b.Gd(this.Nw), this.Nw = b) : (c = d = !1, this.$O = 0, this.Nw = h.cc.Sf, m = this.dB.add(new h.cc(this.sO, 1E3)), this.RO(m), k.Rb("Unexpected seamless audio sync " + b.toString() + " at content pts " + a.Kc + " in stream " + a.stream.Ya + " following " + this.Ft.Md))); + } + } + if (a.zB(this.Yc, this.Ft, this.Zh[0], d, c)) void 0 === this.Gt || this.$j !== p.G.AUDIO || a.WT.equal(this.Gt.add(g)) || (this.XUa(a, this.Gt.add(g)), this.Gt = void 0), this.fB("@" + f.time.da() + ", request appended, type: " + a.P + ", streamId: " + a.Ya + ", pts: " + a.$b + "-" + a.Cd), this.Ft = a, a.Cp ? (this.Gt = a.vxa, this.NSa = this.kRa(a, this.aWa)) : this.Gt = void 0, this.cVa(a), this.Mw(); + else { + if (void 0 !== this.Yc.error) { + if ("done" == this.Yc.error) return; + this.Rb("failure to append queued mediaRequest: " + (a && a.toJSON()) + " err: " + this.Yc.error); + throw this.Yc.error; + } + a = Error("failure to append queued mediaRequest: " + (a && JSON.stringify(a)) + " err: " + this.Yc.error); + this.Rb(a.message); + throw a; + } + }; + b.prototype.lRa = function(a, b) { + var d; + d = a.aoa; + this.K.Cn && a.stream.Ik && (d = d.Gd(a.stream.Ik)); + return c(d).add(c(b)); + }; + b.prototype.kRa = function(a, b) { + var d, f; + d = a.stream.Ka; + f = a.Xna; + this.K.Cn && a.stream.Ik && (f = f.Gd(a.stream.Ik)); + return c(f.Gd(d)).add(c(d)).add(c(b)); + }; + b.prototype.bVa = function(a, b) { + a = { + type: "headerAppended", + mediaType: this.$j, + manifestIndex: a, + streamId: b + }; + this.Ia(a.type, a); + }; + b.prototype.cVa = function(a) { + a = { + type: "requestAppended", + mediaType: this.$j, + request: a + }; + this.Ia(a.type, a); + }; + b.prototype.fB = function(a) { + a = { + type: "managerdebugevent", + message: a + }; + this.Ia(a.type, a); + }; + b.prototype.XUa = function(a, b) { + var c; + c = a.Kc; + a = a.WT.Gd(b).bf; + c = { + type: "logdata", + target: "endplay", + fields: { + audiodisc: { + type: "array", + value: [c, a] + } + } + }; + this.Ia(c.type, c); + }; + b.prototype.dVa = function(a, b) { + a = { + type: "logdata", + target: "endplay", + fields: { + maxavsyncerror: a.bf, + minavsyncerror: b.bf + } + }; + this.Ia(a.type, a); + }; + g.M = b; + }, function(g, d) { + Object.defineProperty(d, "__esModule", { + value: !0 + }); + g = function() { + function a(a, c, d, g, f, p, m, r, l) { + this.id = a; + this.na = c; + this.U = d; + this.GH = f; + this.zj = p; + this.uE = m; + this.Am = r; + this.Uqb = l; + this.ea = g || Infinity; + this.Am = "number" === typeof r ? r : this.ea; + } + a.prototype.toString = function() { + return "segmentId: " + this.id + " manifestIndex: " + this.na + " pts: " + this.U + "-" + this.ea + " defaultKey: " + this.GH + " dests: " + JSON.stringify(this.zj) + " terminal: " + !!this.uE; + }; + a.prototype.toJSON = function() { + return { + id: this.id, + manifestIndex: this.na, + "startPts:": this.U, + endPts: this.ea, + defaultKey: this.GH, + "dests:": this.zj, + terminal: !!this.uE, + beginJITPts: this.Am + }; + }; + return a; + }(); + d.cPa = g; + }, function(g, d, a) { + var b, c, h, k, f; + Object.defineProperty(d, "__esModule", { + value: !0 + }); + b = a(0); + c = a(14); + g = a(47); + h = a(58); + k = a(363); + a = a(153); + f = function() { + function a(b, c) { + this.va = []; + this.gm = void 0; + this.Lb = 0; + this.W = b; + c && c.length && (Array.isArray(c) ? (this.va = c.slice(), this.UF(0, this.va.length)) : c instanceof a && (this.va = c.va.slice(), this.UF(0, this.va.length))); + } + a.prototype.get = function(a) { + 0 > a && (a += this.va.length); + return this.va[a]; + }; + a.prototype.push = function(a) { + this.va.push(a); + this.UF(this.va.length - 1); + return this.length; + }; + a.prototype.unshift = function(a) { + this.va.unshift(a); + this.UF(0, 1); + return this.length; + }; + a.prototype.pop = function() { + if (0 !== this.va.length) return this.n_(this.va.length - 1), this.va.pop(); + }; + a.prototype.shift = function() { + if (0 !== this.va.length) return this.n_(0), this.va.shift(); + }; + a.prototype.splice = function(a, b) { + for (var c, d = [], f = 2; f < arguments.length; f++) d[f - 2] = arguments[f]; + 0 > a && (a += this.va.length); + 0 > a && (a = 0); + a > this.va.length && (a = this.va.length); + if (void 0 === b || 0 > b) b = 0; + b = Math.min(b, this.va.length - a); + 0 < b && this.n_(a, a + b); + f = (c = this.va).splice.apply(c, [a, b].concat(d)); + 0 < d.length && this.UF(a, a + arguments.length - 2); + return f; + }; + a.prototype.slice = function(b, c) { + void 0 === b && (b = 0); + void 0 === c && (c = this.va.length); + 0 > b && (b += this.va.length); + if (b >= this.va.length) return new a(this.W); + c > this.va.length && (c = this.va.length); + 0 > c && (c += this.va.length); + return new a(this.W, this.va.slice(b, c)); + }; + a.prototype.El = function(a) { + if (0 === this.va.length || a.Ib >= this.Nb) this.push(a); + else if (a.Nb <= this.Ib) this.unshift(a); + else { + for (var b = 0, d = this.va.length - 1, f; b < d - 1;) f = Math.floor((d + b) / 2), c(f !== d && f !== b), a.Ib >= this.va[f].Nb ? b = f : d = f; + c(b !== d); + c(this.va[b].Nb <= a.Ib && this.va[d].Ib >= a.Nb); + this.splice(d, 0, a); + } + }; + a.prototype.remove = function(a) { + a = this.va.indexOf(a); + if (0 > a) return !1; + this.splice(a, 1); + return !0; + }; + a.prototype.concat = function() { + for (var b = [], c = 0; c < arguments.length; c++) b[c] = arguments[c]; + b = b.map(function(a) { + return a.va; + }); + return new a(this.W, Array.prototype.concat.apply(this.va, b)); + }; + a.prototype.forEach = function(a) { + var b; + b = this; + this.va.forEach(function(c, d) { + return a(c, d, b); + }); + }; + a.prototype.some = function(a) { + var b; + b = this; + return this.va.some(function(c, d) { + return a(c, d, b); + }); + }; + a.prototype.every = function(a) { + var b; + b = this; + return this.va.every(function(c, d) { + return a(c, d, b); + }); + }; + a.prototype.map = function(a) { + var b; + b = this; + return this.va.map(function(c, d) { + return a(c, d, b); + }); + }; + a.prototype.reduce = function(a, b) { + var c; + c = this; + return this.va.reduce(function(b, d, f) { + return a(b, d, f, c); + }, b); + }; + a.prototype.indexOf = function(a) { + return this.va.indexOf(a); + }; + a.prototype.find = function(a) { + var b, c; + b = this; + return this.va.some(function(d, f) { + c = f; + return a(d, f, b); + }) ? this.va[c] : void 0; + }; + a.prototype.findIndex = function(a) { + var b, c; + b = this; + return this.va.some(function(d, f) { + c = f; + return a(d, f, b); + }) ? c : -1; + }; + a.prototype.filter = function(b) { + var c; + c = this; + return new a(this.W, this.va.filter(function(a, d) { + return b(a, d, c); + })); + }; + a.prototype.nR = function(a) { + for (var b = this.va.length - 1; 0 <= b; --b) a(this.va[b], b, this); + }; + a.prototype.O$ = function(a) { + for (var b = this.va.length - 1; 0 <= b; --b) + if (a(this.va[b], b, this)) return !0; + return !1; + }; + a.prototype.gR = function(a) { + if (this.empty || a < this.Kc || a >= this.Md) return -1; + for (var b = 0, c = this.va.length - 1, d; c > b;) { + d = Math.floor((c + b) / 2); + if (a >= this.va[d].Kc && a < this.va[d].Md) { + c = d; + break; + } + a < this.va[d].Md ? c = d - 1 : b = d + 1; + } + return c; + }; + a.prototype.uC = function(a) { + if (this.empty || a < this.$b || a >= this.Cd) return -1; + for (var b = 0, c = this.va.length - 1, d; c > b;) { + d = Math.floor((c + b) / 2); + if (a >= this.va[d].$b && a < this.va[d].Cd) { + c = d; + break; + } + a < this.va[d].Cd ? c = d - 1 : b = d + 1; + } + return c; + }; + a.prototype.qqa = function(a) { + a = this.gR(a); + return 0 <= a ? this.va[a] : void 0; + }; + a.prototype.rqa = function(a) { + a = this.uC(a); + return 0 <= a ? this.va[a] : void 0; + }; + a.prototype.jP = function(a) { + var b; + b = this.va[a].Nb; + for (a += 1; a < this.va.length && b === this.va[a].Ib; ++a) b = this.va[a].Nb; + a < this.va.length ? void 0 === this.gm ? this.gm = new k.$L(this, { + Nb: b + }) : this.gm.Wza(b) : void 0 === this.gm ? this.gm = new k.$L(this, {}) : this.gm.wna(); + }; + a.prototype.CA = function(a, b) { + for (var c = a; c < b; ++c) this.Lb += this.va[c].Z; + void 0 === this.gm || 0 === a ? this.jP(0) : this.gm.Nb === this.Nb ? this.jP(a - 1) : this.va[a].Ib === this.gm.Nb && this.jP(a); + }; + a.prototype.Wq = function(a, b) { + var c; + if (0 === a) this.gm = void 0, b < this.length && this.jP(b); + else { + c = this.gm; + c.Nb > this.va[a - 1].Nb && (b < this.length ? c.Wza(this.va[a - 1].Nb) : c.wna()); + } + for (; a < b; ++a) this.Lb -= this.va[a].Z; + }; + a.prototype.UF = function(a, b) { + void 0 === b && (b = a + 1); + this.CA(a, b); + }; + a.prototype.n_ = function(a, b) { + void 0 === b && (b = a + 1); + this.Wq(a, b); + }; + return a; + }(); + d.aW = f; + (function(a) { + function c() { + return null !== a && a.apply(this, arguments) || this; + } + b.__extends(c, a); + return c; + }(f)); + g.ai(f.prototype, g.xXa({ + length: { + get: function() { + return this.va.length; + } + }, + first: { + get: function() { + return this.va[0]; + } + }, + Qe: { + get: function() { + return this.va[this.va.length - 1]; + } + }, + empty: { + get: function() { + return 0 === this.va.length; + } + }, + Ib: { + get: function() { + return this.first && this.first.Ib; + } + }, + Nb: { + get: function() { + return this.Qe && this.Qe.Nb; + } + }, + pu: { + get: function() { + return this.gm; + } + }, + Z: { + get: function() { + return this.Lb; + } + }, + ha: { + get: function() { + return this.first && this.first.ha; + } + }, + ro: { + get: function() { + return this.first && this.first.ro; + } + }, + Y: { + get: function() { + return this.va; + } + }, + DCb: { + get: function() { + return this.pu && this.pu.Nb; + } + }, + FCb: { + get: function() { + return this.pu && this.pu.HD; + } + }, + CCb: { + get: function() { + return this.pu && this.pu.Md; + } + }, + ECb: { + get: function() { + return this.pu && this.pu.Cd; + } + } + })); + h.Rk(a.aM, f); + }, function(g, d, a) { + var c; - function a(a) { - var W52; - W52 = 2; - while (W52 !== 5) { - switch (W52) { - case 1: - d += a.Jc; - W52 = 5; - break; - case 9: - d %= a.Jc; - W52 = 6; - break; - W52 = 5; - break; - case 2: - a.abort(); - W52 = 1; - break; - } - } - } - j52 = 2; - while (j52 !== 11) { - switch (j52) { - case 9: - b = c.M; - j52 = 8; - break; - case 5: - j52 = !(this.ry <= this.HD) ? 4 : 11; - break; - case 2: - d = 0; - j52 = 5; - break; - case 3: - j52 = (c = this.yn.shift()) ? 9 : 4; - break; - case 8: - j52 = c.data ? 7 : 6; - break; - case 6: - delete this.Gc[b]; - --this.ry; - j52 = 13; - break; - case 4: - j52 = this.ry > this.HD ? 3 : 12; - break; - case 7: - for (var g in c.data) { - c.data[g].forEach(a); - delete c.data[g]; - } - j52 = 6; - break; - case 13: - this.$Ja(b); - j52 = 4; - break; - case 12: - this.aKa(d); - j52 = 11; - break; - } - } - }; - n.prototype.aKa = function(a) { - var A52, F6u; - A52 = 2; - while (A52 !== 1) { - F6u = "di"; - F6u += "scardedByt"; - F6u += "e"; - F6u += "s"; - switch (A52) { - case 2: - 0 !== a && (a = { - type: F6u, - bytes: a - }, this.Ha(a.type, a)); - A52 = 1; - break; - } - } - }; - n32 = 56; - break; - case 2: - F = a(10); - N = a(9); - t = a(272); - ca = a(176); - Z = a(271); - O = N.Pa; - n32 = 7; - break; - case 34: - ea = ha.trace.bind(ha); - ma = ba.trace.bind(ba); - na = ha.warn.bind(ha); - oa = ha.error.bind(ha); - pa = { - onabort: function() {}, - onerror: function() {} - }; - n.prototype = Object.create(H.prototype); - n.prototype.constructor = n; - n32 = 44; + function b() { + c(!1); + } + Object.defineProperty(d, "__esModule", { + value: !0 + }); + c = a(14); + g = a(47); + a = function() { + function a(a, b) { + this.Hc = a; + this.JA = b; + this.Qq(); + } + a.prototype.L7a = function() { + return this.QA && this.QA.get(0); + }; + a.prototype.DYa = function() { + return this.DA && this.DA.get(this.DA.length - 1); + }; + a.prototype.get = function(a) { + 0 > a && (a += this.length); + for (var b = 0; b < this.Hc.length; ++b) + if (this.Zf[b + 1] > a) return this.Hc[b].get(a - this.Zf[b]); + }; + a.prototype.push = function(a) { + this.Hc[this.JA(a)].push(a); + this.Qq(); + return this.Ht; + }; + a.prototype.shift = function() { + var a; + if (this.QA) { + a = this.QA.shift(); + this.Qq(); + return a; + } + }; + a.prototype.pop = function() { + var a; + if (this.DA) { + a = this.DA.pop(); + this.Qq(); + return a; + } + }; + a.prototype.unshift = function(a) { + this.Hc[this.JA(a)].unshift(a); + this.Qq(); + return this.Ht; + }; + a.prototype.El = function(a) { + var b; + b = this.JA(a); + this.Hc[b].El(a); + this.Qq(); + }; + a.prototype.remove = function(a) { + var b; + b = this.Hc.some(function(b) { + return b.remove(a); + }); + b && this.Qq(); + return b; + }; + a.prototype.splice = function(a, b) { + var l, n, q, z; + for (var c, d = [], f = 2; f < arguments.length; f++) d[f - 2] = arguments[f]; + for (var f = [], g, k = a + Math.max(0, b), h = 0; h < this.Hc.length; ++h) { + l = this.Hc[h]; + n = this.Zf[h]; + q = this.Zf[h + 1]; + if (a < q) { + z = a - n; + n = Math.min(k - n, l.length); + void 0 === g && 0 < z && n < l.length ? Array.prototype.push.apply(f, l.splice.apply(l, [z, n - z].concat(d))) : (Array.prototype.push.apply(f, l.splice(z, n - z)), void 0 === g && (g = 0 < h && 0 === z ? h - 1 : h)); + a = q; + if (a >= k) break; + } + } + if (d.length && void 0 !== g) { + for (k = this.JA(d[0]); 0 < g && k < g && this.Hc[g].empty;) --g; + for (; d.length && k === g;) { + this.Hc[g].push(d.shift()); + if (!d.length) break; + k = this.JA(d[0]); + } + for (; d.length && ++g < this.Hc.length && this.Hc[g].empty;) + for (; d.length && k === g;) { + this.Hc[g].push(d.shift()); + if (!d.length) break; + k = this.JA(d[0]); + } + d.length && (c = this.Hc[g]).splice.apply(c, [0, 0].concat(d)); + } + this.Qq(); + return f; + }; + a.prototype.find = function(a) { + var b, c; + b = this; + return this.Hc.some(function(d, f) { + c = d.find(b.Wt(a, f)); + return void 0 !== c; + }) ? c : void 0; + }; + a.prototype.findIndex = function(a) { + var c; + for (var b = 0; b < this.Hc.length; ++b) { + c = this.Hc[b].findIndex(this.Wt(a, b)); + if (-1 !== c) return c + this.Zf[b]; + } + return -1; + }; + a.prototype.indexOf = function(a) { + var c; + for (var b = 0; b < this.Hc.length; ++b) { + c = this.Hc[b].indexOf(a); + if (-1 !== c) return c + this.Zf[b]; + } + return -1; + }; + a.prototype.map = function(a) { + var b, c; + b = this; + c = this.Hc.map(function(c, d) { + return c.map(b.Wt(a, d)); + }); + return Array.prototype.concat.apply([], c); + }; + a.prototype.reduce = function(a, b) { + var c; + c = this; + return this.Hc.reduce(function(b, d, f) { + return d.reduce(c.xWa(a, f), b); + }, b); + }; + a.prototype.forEach = function(a) { + var b; + b = this; + this.Hc.forEach(function(c, d) { + c.forEach(b.Wt(a, d)); + }); + }; + a.prototype.nR = function(a) { + for (var b = this.Hc.length - 1; 0 <= b; --b) this.Hc[b].nR(this.Wt(a, b)); + }; + a.prototype.some = function(a) { + var b; + b = this; + return this.Hc.some(function(c, d) { + return c.some(b.Wt(a, d)); + }); + }; + a.prototype.O$ = function(a) { + for (var b = this.Hc.length - 1; 0 <= b; --b) + if (this.Hc[b].O$(this.Wt(a, b))) return !0; + return !1; + }; + a.prototype.every = function(a) { + var b; + b = this; + return this.Hc.every(function(c, d) { + return c.every(b.Wt(a, d)); + }); + }; + a.prototype.move = function(a) { + return this.remove(a) ? (this.El(a), !0) : !1; + }; + a.prototype.nob = function() { + var a; + if (this.Hc[1].length) { + a = this.Hc[1].shift(); + this.Hc[0].push(a); + this.Qq(); + } + }; + a.prototype.sqa = function(a) { + for (var b = -1, c = 0; c < this.Hc.length; ++c) + if (b = a(this.Hc[c]), -1 !== b) { + b += this.Zf[c]; break; + } return b; + }; + a.prototype.toJSON = function() { + return this.map(function(a) { + return a.toJSON(); + }); + }; + a.prototype.Qq = function() { + var b; + this.Ht = 0; + this.Zf = [0]; + this.DA = this.QA = void 0; + for (var a = 0; a < this.Hc.length; ++a) { + b = this.Hc[a]; + this.Ht += b.length; + this.Zf.push(this.Zf[this.Zf.length - 1] + b.length); + !this.QA && b.length && (this.QA = b); + b.length && (this.DA = b); + } + }; + a.prototype.Wt = function(a, b) { + var c, d; + c = this; + d = this.Zf[b]; + return function(b, f) { + return a(b, d + f, c); + }; + }; + a.prototype.xWa = function(a, b) { + var c, d; + c = this; + d = this.Zf[b]; + return function(b, f, g) { + return a(b, f, d + g, c); + }; + }; + return a; + }(); + d.TEa = a; + g.ai(a.prototype, { + length: { + get: function() { + return this.Ht; + }, + set: b + }, + empty: { + get: function() { + return 0 === this.Ht; + }, + set: b + } + }); + }, function(g, d, a) { + var b, c, h, k, f; + Object.defineProperty(d, "__esModule", { + value: !0 + }); + b = a(0); + a(14); + c = a(665); + g = a(47); + h = a(664); + k = a(153); + f = a(96); + a = a(58); + c = function(a) { + function c(b, c) { + var d, g; + d = this; + g = [new h.aW(b), new h.aW(b), new h.aW(b)]; + d = a.call(this, g, function(a) { + return a.complete ? d.empty || a.Ib <= d.A1 ? 0 : 1 : a.active ? 1 : 2; + }) || this; + d.wb = g[0]; + d.Dc = g[1]; + d.An = g[2]; + d.fl = 0; + d.BN = 0; + d.W = b; + f.call(d, c); + return d; + } + b.__extends(c, a); + c.prototype.CA = function(a) { + a.kl ? ++this.BN : this.fl += a.Ae; + a.$nb(this); + }; + c.prototype.Wq = function(a) { + a.kl ? --this.BN : this.fl -= a.Ae; + a.yna(); + }; + c.prototype.push = function(b) { + this.CA(b); + return a.prototype.push.call(this, b); + }; + c.prototype.shift = function() { + var b; + b = a.prototype.shift.call(this); + b && this.Wq(b); + return b; + }; + c.prototype.pop = function() { + var b; + b = a.prototype.pop.call(this); + b && this.Wq(b); + return b; + }; + c.prototype.unshift = function(b) { + this.CA(b); + return a.prototype.unshift.call(this, b); + }; + c.prototype.El = function(b) { + this.CA(b); + a.prototype.El.call(this, b); + }; + c.prototype.remove = function(b) { + if (!a.prototype.remove.call(this, b)) return !1; + this.Wq(b); + return !0; + }; + c.prototype.splice = function(b, c) { + for (var d = [], f = 2; f < arguments.length; f++) d[f - 2] = arguments[f]; + f = a.prototype.splice.apply(this, [b, c].concat(d)); + d.forEach(this.CA.bind(this)); + f.forEach(this.Wq.bind(this)); + return f; + }; + c.prototype.qkb = function(a) { + var b; + b = this; + this.reduce(function(c, d, f) { + d.kl && (a && a(d, f, b), 0 === c.length || c[0].end !== f ? c.unshift({ + start: f, + end: f + 1 + }) : c[0].end += 1); + return c; + }, []).forEach(function(a) { + return b.splice(a.start, a.end - a.start); + }); + }; + c.prototype.gR = function(a) { + return this.sqa(function(b) { + return b.gR(a); + }); + }; + c.prototype.uC = function(a) { + return this.sqa(function(b) { + return b.uC(a); + }); + }; + c.prototype.qqa = function(a) { + a = this.gR(a); + return -1 !== a ? this.get(a) : void 0; + }; + c.prototype.rqa = function(a) { + a = this.uC(a); + return -1 !== a ? this.get(a) : void 0; + }; + c.prototype.Ty = function(a) { + this.move(a); + this.Yx(a); + }; + c.prototype.WJ = function(a) { + this.fl += a.Ae - a.ni; + this.wC(a); + }; + c.prototype.li = function(a) { + for (this.fl += a.Ae - a.ni; this.Dc.first && this.Dc.first.complete && (this.wb.empty ? this.Dc.first === this.$4a : this.Dc.first.Ib === this.wb.Nb);) this.nob(); + this.Gu(a); + }; + c.prototype.ET = function(a, b) { + this.fl -= a.Ae; + ++this.BN; + this.rR(a, b); + }; + return c; + }(c.TEa); + d.mDa = c; + a.Rk(f, c, !1); + a.Rk(k.aM, c); + g.ai(c.prototype, { + Z: g.L({ + get: function() { + return this.wb.Z + this.Dc.Z + this.An.Z; + } + }), + KBa: g.L({ + get: function() { + return this.An; + } + }), + active: g.L({ + get: function() { + return this.Dc; + } + }), + complete: g.L({ + get: function() { + return this.wb; + } + }), + Ukb: g.L({ + get: function() { + return this.fl; + } + }), + Mna: g.L({ + get: function() { + return this.wb.Z; + } + }), + pv: g.L({ + get: function() { + return this.wb.Z + this.Dc.Z - this.fl; + } + }), + VIb: g.L({ + get: function() { + return this.An.Z; + } + }), + RHb: g.L({ + get: function() { + return this.Z - this.fl; + } + }), + first: g.L({ + get: function() { + return this.L7a(); + } + }), + Qe: g.L({ + get: function() { + return this.DYa(); + } + }), + $4a: g.L({ + get: function() { + return !this.wb.empty || this.An.empty || this.Dc.empty ? this.first : this.Dc.Ib < this.An.Ib ? this.Dc.first : this.An.first; + } + }), + VFb: g.L({ + get: function() { + return this.An.empty || this.Dc.empty ? this.Qe : this.Dc.Nb < this.An.Nb ? this.An.Qe : this.Dc.Qe; + } + }), + yqa: g.L({ + get: function() { + return this.An.first; + } + }), + Ib: g.L({ + get: function() { + return this.first && this.first.Ib; + } + }), + Nb: g.L({ + get: function() { + return this.Qe && this.Qe.Nb; + } + }), + ha: g.L({ + get: function() { + return this.first && this.first.ha; + } + }), + ro: g.L({ + get: function() { + return this.first && this.first.ro; + } + }), + qCb: g.L({ + get: function() { + return this.wb.Ah; + } + }), + fHb: g.L({ + get: function() { + return this.Cib - this.A1 || 0; + } + }), + oFb: g.L({ + get: function() { + return this.Nb - this.A1 || 0; + } + }), + Q_a: g.L({ + get: function() { + return this.wb.duration; + } + }), + Bib: g.L({ + get: function() { + return this.Dc.duration; + } + }), + Jbb: g.L({ + get: function() { + return this.Md - this.P_a || 0; + } + }), + sCb: g.L({ + get: function() { + return this.wb.Qe; + } + }), + A1: g.L({ + get: function() { + return this.wb.empty ? this.Ib : this.wb.Nb; + } + }), + P_a: g.L({ + get: function() { + return this.wb.empty ? this.Kc : this.wb.Md; + } + }), + Kna: g.L({ + get: function() { + return this.wb.empty ? this.$b : this.wb.Cd; + } + }), + R_a: g.L({ + get: function() { + return this.wb.Z; } + }), + hHb: g.L({ + get: function() { + return this.Dc.Qe || this.wb.Qe; + } + }), + Cib: g.L({ + get: function() { + return this.Dc.Nb || this.wb.Nb; + } + }), + eHb: g.L({ + get: function() { + return this.Dc.Md || this.wb.Md; + } + }), + bxa: g.L({ + get: function() { + return this.Dc.Cd || this.wb.Cd; + } + }), + Bo: g.L({ + get: function() { + return this.An.length; + } + }), + Zo: g.L({ + get: function() { + return this.Dc.length; + } + }), + tCb: g.L({ + get: function() { + return this.wb.length; + } + }), + sBb: g.L({ + get: function() { + return this.BN; + } + }), + LU: g.L({ + get: function() { + return this.wb.concat(this.Dc); + } + }) + }); + }, function(g, d, a) { + var h, k, f, p, m, l; + + function b(a, c, d, f, g, h) { + f.responseType = 0; + k.call(this, a, f, g, h); + this.K = c; + this.$N = d; + this.Yj = void 0; + this.CZ = b.Yz.INIT; + this.jG = p.prototype.toString.call(this) + " multiple"; + this.jB(a.url, f.offset, 8, 0); + } + + function c() { + h(!1); + } + h = a(14); + d = a(111); + a(8); + k = a(200).$V; + f = a(203).ZL; + p = a(82).Tk; + a(13); + m = a(28).Br; + l = a(57).nZ; + b.prototype = Object.create(k.prototype); + d({ + Yz: { + INIT: 0, + Lea: 1, + Jea: 2, + name: ["INIT", "MOOF", "MDAT"] + } + }, b); + Object.defineProperties(b.prototype, { + data: { + get: function() { + return this.Yj; + }, + set: c + } + }); + b.prototype.jB = function(a, b, c, d) { + a = new f(this.$N, this.jG + " (" + this.oa.length + ")", { + R: this.R, + P: this.P, + Ya: this.Ya, + O: this.O, + offset: b, + Z: c, + url: a, + location: this.location, + cd: this.cd, + responseType: d + }, this, this.W); + this.push(a); + this.zia = this.oa.reduce(function(a, b) { + return a + b.Z; + }, 0); + }; + b.prototype.li = function(a) { + var d, f; + this.Yj = this.Yj ? m(this.Yj, a.response) : a.response; + a.response = void 0; + switch (this.CZ) { + case b.Yz.INIT: + d = new DataView(this.Yj); + f = d.getUint32(0); + d = d.getUint32(4); + l(d); + this.jB(a.url, a.offset + a.Z, f, 0); + k.prototype.li.call(this, this); + this.CZ = b.Yz.Lea; + break; + case b.Yz.Lea: + d = new DataView(this.Yj); + f = d.getUint32(this.zia - 8); + d = d.getUint32(this.zia - 4); + l(d); + this.jB(a.url, a.offset + a.Z, f - 8, 0); + this.CZ = b.Yz.Jea; + k.prototype.li.call(this, this); + break; + case b.Yz.Jea: + k.prototype.li.call(this, this); + break; + default: + c(); + } + }; + g.M = b; + }, function(g, d, a) { + var b, c, h, k, f, p; + Object.defineProperty(d, "__esModule", { + value: !0 + }); + b = a(0); + a(14); + g = a(58); + c = a(8); + h = a(82); + k = a(202); + f = a(129); + p = c.Eb; + a = function(a) { + function d(b, c, d, f, g, k, m) { + c = this; + c = ["cache", "edit"].filter(function(a, b) { + return [k, f.$c][b]; + }); + c = c.length ? "(" + c.join(",") + ")" : ""; + void 0 === f.responseType && (f.responseType = p.ec && !p.ec.XD.Bw ? 0 : 1); + c = a.call(this, b, d, c, f, g, m) || this; + h.Tk.call(c, b, f); + c.OSa = f.jdb; + c.Yf.on(c, p.ed.lyb, c.lUa); + c.Yf.on(c, p.ed.kyb, c.kUa); + return c; + } + b.__extends(d, a); + d.prototype.Ac = function(a, b) { + f.Wv.prototype.Ac.call(this, a, b); + this.Wa || !a.K.uP && this.Bc || (this.Wa = a.$a.Wa); + }; + d.prototype.nv = function() { + var a, b; + a = []; + b = { + start: this.offset, + end: this.offset + this.Z - 1 + }; + void 0 !== this.Kc && 0 <= this.Kc && void 0 !== this.Md && (b = this.oRa(this.Kc, this.Md - 1, this.OSa, this.te.K.dgb), a.push("ptsRange/" + this.Kc + "-" + (this.Md - 1)), 0 < b && a.push("timeDelay/" + b), b = { + start: 0, + end: -1 + }, this.AN = this.pTa(this.AN, a)); + return p.prototype.open.call(this, this.AN, b, this.zN, {}, void 0, void 0, this.iia); + }; + d.prototype.BO = function() { + this.Dc || (this.Dc = !0, this.Zn = this.track.Zn(), this.Yx(this), this.ni = 0, this.fj = this.rd); + }; + d.prototype.xka = function() { + var a; + a = this.rd; + this.cl = c.time.da() - this.rd; + this.Xx(this); + this.fj = a; + }; + d.prototype.zka = function() { + var a; + a = this.rd; + this.cl = c.time.da() - this.rd; + this.wC(this); + this.fj = a; + this.ni = this.Ae; + }; + d.prototype.lUa = function() { + var a; + a = this.cdb; + this.wg = !0; + this.Wa && (this.Wa.oU(a, this.Bt()), this.Wa.B9()); + }; + d.prototype.kUa = function() { + this.Wa && (this.Wa.sP(this.TFb, this.cdb, this.bdb), this.Wa.qU(this.bdb, this.wg, this.Bt())); + this.wg = !1; + }; + d.prototype.AO = function() { + var a; + a = this.rd; + this.cl = c.time.da() - this.rd; + this.Wa && this.wg && this.Wa.qU(c.time.da(), this.wg, this.Bt()); + this.wg = this.Dc = !1; + this.Gu(this); + this.fj = a; + this.ni = this.Ae; + this.Ld(); + }; + d.prototype.oRa = function(a, b, c, d) { + return void 0 === a || void 0 === b || void 0 === c ? 0 : b < c ? 0 : a < c ? d : a - c; + }; + d.prototype.pTa = function(a, b) { + a = a.split("?"); + for (var c = a[0], d = "", f = 0; f < b.length; f++) d += "/" + b[f]; + return a[1] ? c + (d + "?" + a[1]) : c + d; + }; + return d; + }(k.QE); + d.nDa = a; + g.Rk(h.Tk, a, !1); + }, function(g, d, a) { + var k, f, p, m, l, u, n, v, q, w; + + function b(a, c) { + var d; + d = a.pe ? b(a.pe, c) : []; + d.push({ + Fc: a.qa.id, + Ava: a.Sa[c].Oa + }); + return d; + } + + function c(a, b, c, d, f) { + this.aa = a; + this.Uq = c; + this.$j = d; + this.Kb = b; + this.K = f; + this.Vza(c.W); + this.on = this.addEventListener = m.addEventListener; + this.removeEventListener = m.removeEventListener; + this.emit = this.Ia = m.Ia; + this.bla(); + w.call(this, c); + } + + function h(a, b, c, d) { + for (var f, g = this; g && g.oa.length;) { + f = g.oa; + if ((f = b ? f.qqa(a) : f.rqa(a)) && (void 0 === c || c === f.na)) return f; + if (d) break; + g = g.Ih; + } + } + k = a(11); + a(14); + f = a(8); + p = a(13); + m = a(29).EventEmitter; + a(129); + l = a(361).Gba; + u = a(356).Eba; + n = a(668).nDa; + v = a(667); + q = a(666).mDa; + w = a(96); + c.prototype = Object.create(w.prototype); + c.prototype.constructor = c; + Object.defineProperties(c.prototype, { + vz: { + get: function() { + return 0 < this.nz; + } + }, + S$: { + get: function() { + return !this.Ww; + } + }, + nz: { + get: function() { + return this.oa.length; + } + }, + Bo: { + get: function() { + return this.oa.Bo; + } + }, + Fx: { + get: function() { + return this.oa.Kna || (this.Ih ? this.Ih.Fx : 0); + } + }, + Zd: { + get: function() { + return this.Aia(); + } + }, + gu: { + get: function() { + return this.gZ(); + } + }, + gj: { + get: function() { + return this.nRa(); + } + }, + fu: { + get: function() { + return this.hRa(); + } + }, + BE: { + get: function() { + return this.oa.Q_a; + } + }, + Fs: { + get: function() { + return this.Bia(); + } + }, + ov: { + get: function() { + return this.mSa(); + } + }, + axa: { + get: function() { + return this.HZa(); + } + }, + WR: { + get: function() { + return this.oa.length > this.oa.Bo; + } + }, + Zo: { + get: function() { + return this.oa.Zo; + } + }, + Ih: { + get: function() { + return this.Kb.pe && this.Kb.pe.Sa[this.$j].Oa; + } + }, + Nib: { + get: function() { + return this.oa.length - this.pm; + } + }, + Y: { + get: function() { + return this.oa; + } + } + }); + c.prototype.Vza = function(a) { + this.W = a; + this.Rb = this.W.error.bind(this.W); + this.fa = this.W.warn.bind(this.W); + this.Hb = this.W.trace.bind(this.W); + this.Ua = this.W.log.bind(this.W); + }; + c.prototype.mSa = function() { + return this.oa.Zo + (this.K.dr ? 0 : this.oa.Bo); + }; + c.prototype.nRa = function() { + return void 0 === this.oa.$b ? 0 : this.oa.Cd - this.oa.$b; + }; + c.prototype.hRa = function() { + var a, b; + a = this.gZ(!0); + b = this.Aia(0, !0); + return { + Z: a, + bf: b + }; + }; + c.prototype.Aia = function(a, b) { + void 0 === a && (a = this.aa.de()); + a = b ? Math.max(this.oa.$b, a) : a; + return Math.max(this.oa.Kna - a, 0) || 0; + }; + c.prototype.gZ = function(a) { + var b; + b = this.oa.R_a; + return a || !this.Ih ? b : b + (this.Ih.oa.rCb >= this.oa.$b ? this.Ih.gZ() : 0); + }; + c.prototype.Bia = function() { + return this.oa.Mna + (this.Ih ? this.Ih.Bia() : 0); + }; + c.prototype.HZa = function() { + return this.K.dr ? this.oa.Bib : this.oa.Jbb; + }; + c.prototype.Hja = function(a) { + return (this.Kb.pe && this.Kb.pe.Sa && this.Kb.pe.Sa[a] ? this.Kb.pe.Sa[a].Oa.Hja(a) : 0) + this.oa.Z; + }; + c.prototype.kQ = function(a, b, c, d, g) { + var h; + b = this.K; + this.K.nD && a.Ej()[this.$j] - this.Hja() < c.Z && (c.nD = this.K.nD); + k.V(g) || (c.location = g.location, c.cd = g.Pb, c.s$ = g.Nk); + if (b.lp) { + h = this.aa && this.aa.Vo; + h && (c.VU = h.ru({ + Zd: this.Uq.Zd, + wT: b.o5a ? b.wT : void 0 + })); + } + c.vk ? (c = new l(g, b, d, c, this, !1, this.Uq), c.addEventListener("headerRequestCancelled", function(a) { + this.PTa(a.request); + }.bind(this))) : c = b.n5a ? new v(g, b, d, c, this.oa, this.Uq) : a.S2(this.$j) ? new n(g, b, d, c, this.oa, !1, this.Uq) : u.create(g, b, d, c, this.oa, !1, this.Uq); + c.Ac(a, this.Uq); + this.wB(c); + c.sqb = f.time.da(); + a.JTa(c); + return c; + }; + c.prototype.vXa = function(a, b) { + var c; + c = this.Uq; + b.Ac(a, this.Uq); + b.d0 = !0; + this.wB(b); + b.complete ? (this.jZ(b), a.mwa(c, b.na, b.Ya, b.$b), this.DE(), this.Gu(b)) : (b.active && this.Yx(b), b.oya && this.Xx(b)); + }; + c.prototype.reset = function(a) { + function b(a) { + a.Ld(); + } + this.oa.forEach(b); + a || (this.lm = this.lm.forEach(b)); + this.bla(a); + }; + c.prototype.Vya = function() { + this.Ww = !1; + }; + c.prototype.bla = function(a) { + this.oa = new q(this.W, this); + this.pm = 0; + this.$b = null; + a || (this.lm = []); + this.Ww = !1; + }; + c.prototype.CWa = function(a) { + var b; + b = function(a) { + a.abort(); + }.bind(this); + this.oa.forEach(b); + this.reset(a); + }; + c.prototype.jZ = function(a) { + this.Ww ? a.jR = !1 : this.Ww = a.jR = !0; + }; + c.prototype.wB = function(a) { + a.Bc ? this.lm.push(a) : (this.oa.El(a), this.jZ(a), a.Cp && (this.Ww = !1)); + }; + c.prototype.DE = function() { + var a, b, c; + b = this.Uq.P; + a = this.Kb; + if (a.active && this.pm !== this.oa.length) { + if (a = a.pe) { + c = a.Jra(b); + if (0 != c && (a.Sa[b].UG(), c = a.Jra(b), 0 != c)) return; + } + for (var c = this.K.Zeb, d = 0; this.pm < this.oa.length;) { + if (a = this.oa.get(this.pm)) { + if (this.oa.yqa && this.oa.yqa.Ib < a.Ib) break; + if (!a.ky()) break; + this.aa.Ke[b].hYa(a); + ++d; + k.ja(this.$b) || (this.$b = a.$b); + }++this.pm; + if (!k.V(c) && d >= c) break; + } + } + }; + c.prototype.Skb = function(a) { + var d; + for (var b, c = 0; c < this.oa.length; ++c) { + d = this.oa.get(c); + d && a < d.Cd && (k.V(b) && (b = c), d.xh = !1); + } + k.V(b) || (this.pm = b, this.DE()); + }; + c.prototype.aob = function(a, b, c) { + var d; + d = this.K; + 0 !== this.oa.Bo && this.oa.KBa.first.O !== b && (d.Oe && this.th("setSelectedBitrate new bitrate: " + b), this.FWa(a, c)); + }; + c.prototype.pt = function(a, b) { + if (!a.abort()) return !1; + "function" == typeof b && b(a); + return !0; + }; + c.prototype.EWa = function(a) { + a = this.oa.uC(a); + if (-1 !== a) + for (; ++a < this.oa.length;) this.pt(this.oa.get(a)); + this.k_(); + this.DE(); + }; + c.prototype.k_ = function() { + var a; + a = 0; + this.oa.qkb(function(b, c) { + c < this.pm && ++a; + }.bind(this)); + this.pm -= a; + }; + c.prototype.FWa = function(a, b) { + var c, d; + c = []; + if (0 !== this.oa.Bo) { + d = this.oa.gHb; + this.oa.KBa.O$(function(b) { + if (!k.V(a) && b.na !== a || b.Cp || d > b.$b) return !0; + b.jR && (this.Ww = !1); + if (!this.pt(b)) return this.fa("request abort failed:", b.toString()), !0; + c.unshift(b); + }.bind(this)); + this.k_(); + c.length && "function" == typeof b && b(c); + } + }; + c.prototype.BK = function(a) { + var b; + a.Bc ? (b = this.lm.indexOf(a), -1 !== b ? this.lm.splice(b, 1) : this.fa("requestAborted: unknown header mediaRequest: " + (a && a.toJSON()))) : this.k_(); + }; + c.prototype.skb = function(a, c) { + var d, f, g, k; + d = this.K; + f = a; + g = this.aa.$a.sAa; + if (a > g) { + f = a - g; + k = function(a, b) { + var g, k, h; + g = !1; + k = 0; + h = b.some(function(b) { + if (f < b.Cd) return g && a.jZ(b), !0; + ++k; + b.xh || (a.fa("pruning unappended request:", b && b.toString()), d.Oe && a.th("prune pts:", f, "unappended request:", b && b.toString()), b.jR && (a.Ww = !1, g = !0), a.pt(b, c) || a.Rb("MediaRequest.abort error:", b.pk)); + }); + 0 < k && (b.splice(0, k), a.pm -= Math.min(k, a.pm)); + return h; + }; + b(this.Kb, this.$j).some(function(a) { + a = a.Ava; + return k(a, a.oa); + }.bind(this)); + return f; + } + }; + c.prototype.O9a = function() { + return this.oa.empty ? null : Math.min(this.oa.GCb, this.oa.bxa); + }; + c.prototype.Sra = function() { + var a, c, d, f, g, h; + a = this.K; + c = null; + d = null; + f = 0; + g = 0; + h = []; + b(this.Kb, this.$j).forEach(function(b) { + var m; + b = b.Ava.oa; + k.ja(b.$b) && (null === d || b.$b < d) && (d = b.$b); + m = a.dr ? b.bxa : b.Cd; + k.ja(m) && (null === c || m > c) && (c = m); + f += b.pv; + g = a.J$ ? g + b.Ukb : g + b.Mna; + Array.prototype.push.apply(h, b.LU.Y); + }.bind(this)); + return { + rjb: c, + $b: d, + pv: f, + en: g, + Y: h + }; + }; + c.prototype.vC = function(a, b, c) { + return h.call(this, a, !1, b, c); + }; + c.prototype.e7a = function(a) { + return h.call(this, a, !0, void 0, void 0); + }; + c.prototype.Orb = function(a, b) { + var c, d; + c = []; + d = function(d) { + var f; + f = d.Mrb(a, b); + 1 === f || 2 === f ? c.push(d) : 3 === f && this.bk("swapUrl failure"); + }.bind(this); + this.lm.forEach(d); + this.oa.forEach(d); + return c; + }; + c.prototype.Kj = function(a) { + this.K.vK && this.Skb(a); + }; + c.prototype.mv = function(a) { + a.U5 && a.ky() && this.DE(); + this.Xx(a); + }; + c.prototype.li = function(a) { + a.U5 && !a.xh && this.DE(); + this.Gu(a); + }; + c.prototype.PTa = function(a) { + a = { + type: "headerRequestCancelled", + request: a + }; + this.Ia(a.type, a); + }; + c.prototype.bk = function(a) { + a = { + type: "streamingFailure", + msg: a + }; + this.Ia(a.type, a); + }; + c.prototype.th = function(a) { + a = { + type: "managerdebugevent", + message: "@" + f.time.da() + ", " + a + }; + this.Ia(a.type, a); + }; + c.prototype.h0 = function(a) { + var b, c, d; + b = this.$j === p.G.VIDEO ? "v_" : "a_"; + c = this.oa; + d = c.uC(a); + a = 0 <= d ? c.get(d) : void 0; + return (c = 0 <= d && d + 1 < c.length ? c.get(d + 1) : void 0) && a ? a.Cd !== c.$b ? b + "rg" : a.complete && c.complete ? b + "uk" : b + "fd" : b + "rm"; + }; + g.M = c; + }, function(g, d, a) { + var b, c, h, k, f, p, m, l, u, n; + Object.defineProperty(d, "__esModule", { + value: !0 + }); + b = a(0); + c = a(14); + h = a(13); + g = a(96); + k = a(669); + f = a(8); + p = a(28); + m = p.Ia; + l = p.vJ; + u = a(347); + n = a(352); + a = function(a) { + function d(b, c, d, g, p, l, r) { + p = a.call(this, c) || this; + p.aa = b; + p.Fc = c; + p.P = d; + p.Ra = g; + p.Eza = l; + p.K = r; + p.jia = !1; + p.$a = b.$a; + p.$Sa(c.qa.id); + p.Ra = g; + p.rE = new n.Cw(0, l, r, c.pe ? c.pe.Sa[d].rE : void 0); + p.q6 = f.time.da(); + p.adb = void 0; + p.Oa = new k(b, c, p, d, r); + p.Oa.addEventListener("headerRequestCancelled", function(a) { + b.ASa(a.request); + }); + p.Oa.addEventListener("streamingFailure", function(a) { + b.bk(a.msg); + }); + r.Oe && p.Oa.addEventListener("managerdebugevent", function(a) { + m(b, a.type, a); + }); + p.Tfb = d === h.G.VIDEO ? r.kT : r.dT; + p.gT = (d === h.G.VIDEO ? r.uD : r.tD) || r.gT; + p.fp = !1; + p.R0 = 0; + p.Dy = r.L5; + p.Pxa = f.time.da(); + p.gB = !1; + r.Ql && (p.Sp = 0, p.Gx = 0); + return p; } - - function r(a) { - var y32, b, c, w6u, z52; - y32 = 2; - while (y32 !== 7) { - w6u = "h"; - w6u += "ea"; - w6u += "de"; - w6u += "r"; - switch (y32) { - case 2: - b = {}; - c = a[0].split("."); - y32 = 4; - break; - case 4: - b.movieId = c[0]; - b.streamId = c[1]; - v7AA.w3u(0); - z52 = v7AA.x3u(2, 18, 18); - b.isHeader = w6u === c[z52]; - return new U(function(c, d) { - var c32, Q6u; - c32 = 2; - while (c32 !== 1) { - Q6u = "bill"; - Q6u += "boar"; - Q6u += "d"; - switch (c32) { - case 2: - this.Ji.gQ(Q6u, a, function(a, g) { - var k32, h, F32; - k32 = 2; - while (k32 !== 5) { - switch (k32) { - case 2: - try { - F32 = 2; - while (F32 !== 4) { - switch (F32) { - case 1: - d(a); - F32 = 5; - break; - case 5: - c(h); - F32 = 4; - break; - case 2: - F32 = a ? 1 : 3; - break; - case 8: - h.T && (h.T = new ca(h.T, h.O, h.TVa, h.Mn && h.Kn ? new X(h.Kn, h.Mn) : void 0)); - F32 = 5; - break; - case 3: - Object.keys(g).map(function(a) { - var t42, c, h, E42, s42, R6u, d6u; - t42 = 2; - while (t42 !== 6) { - R6u = "f"; - R6u += "r"; - R6u += "agm"; - R6u += "e"; - R6u += "nts"; - d6u = "metad"; - d6u += "a"; - d6u += "ta"; - switch (t42) { - case 2: - c = a.substr(a.lastIndexOf(".") + 1); - t42 = 5; - break; - case 5: - t42 = d6u === c ? 4 : 9; - break; - case 4: - try { - E42 = 2; - while (E42 !== 1) { - switch (E42) { - case 2: - h = JSON.parse(String.fromCharCode.apply(null, new Uint8Array(g[a]))); - E42 = 1; - break; - } - } - } catch (Pe) { - h = g[a]; - } - Object.keys(h).map(function(a) { - var V42; - V42 = 2; - while (V42 !== 1) { - switch (V42) { - case 4: - b[a] = h[a]; - V42 = 5; - break; - V42 = 1; - break; - case 2: - b[a] = h[a]; - V42 = 1; - break; - } - } - }); - t42 = 6; - break; - case 7: - b[c] = g[a]; - t42 = 6; - break; - case 9: - t42 = R6u === c ? 8 : 7; - break; - case 8: - try { - s42 = 2; - while (s42 !== 1) { - switch (s42) { - case 4: - b[c] = g[a]; - s42 = 9; - break; - s42 = 1; - break; - case 2: - b[c] = g[a]; - s42 = 1; - break; - } - } - } catch (Pe) { - d(Pe); - } - t42 = 6; - break; - } - } - }); - h = C(b); - F32 = 8; - break; - } - } - } catch (hb) { - d(hb); - } - k32 = 5; - break; - } - } - }); - c32 = 1; - break; - } - } - }.bind(this)); - break; - } + b.__extends(d, a); + Object.defineProperties(d.prototype, { + vz: { + get: function() { + return this.Oa.vz; + }, + enumerable: !0, + configurable: !0 } - } - - function k(a) { - var f42, b, c; - f42 = 2; - while (f42 !== 9) { - switch (f42) { - case 4: - c = new B({ - M: a.M, - O: a.O, - ib: a.ib, - J: a.J, - T: a.T, - bc: a.Mn && a.Kn ? new X(a.Kn, a.Mn) : void 0 - }); - a.zc ? (b = new A(c, { - ga: a.ga, - offset: a.offset, - hq: a.hq, - Ti: a.Ti, - W2: void 0, - DN: void 0, - $m: !1 - }), this.kca(b)) : a.response instanceof ArrayBuffer && (a = new V(c, { - ga: a.ga, - offset: a.offset, - X: a.hb, - duration: a.Lg - a.hb - }, a.response), b.data || (b.data = {}), b.data[a.ib] || (b.data[a.ib] = []), b.data[a.ib].push(a)); - f42 = 9; - break; - case 2: - b = this.Gc[a.M]; - f42 = 5; - break; - case 5: - f42 = b ? 4 : 9; - break; - } + }); + Object.defineProperties(d.prototype, { + S$: { + get: function() { + return this.Oa.S$; + }, + enumerable: !0, + configurable: !0 } - } - - function y(a) { - var A42; - A42 = 2; - while (A42 !== 1) { - switch (A42) { - case 2: - return { - mediaType: a.O, - streamId: a.ib, - movieId: a.M, - bitrate: a.J, - location: a.location, - serverId: a.Ec, - saveToDisk: a.Sd, - avgFragmentDurationMs: a.Bp, - offset: a.offset, - bytes: a.ga, - ptsStart: a.X, - ptsEnd: a.fa, - fragmentsTimescale: a.T && a.T.jb || void 0, - audioSampleRate: a.stream.bc && a.stream.bc.jb, - audioFrameLength: a.stream.bc && a.stream.bc.Bf, - byteStart: a.offset, - byteEnd: a.offset + a.ga - 1 - }; - break; - } + }); + Object.defineProperties(d.prototype, { + Ym: { + get: function() { + return this.Fc.qa.id; + }, + enumerable: !0, + configurable: !0 } - } - - function p(a) { - var i32; - i32 = 2; - while (i32 !== 1) { - switch (i32) { - case 2: - return Object.keys(a).map(function(b) { - var Q32; - Q32 = 2; - while (Q32 !== 1) { - switch (Q32) { - case 2: - return U.resolve(a[b]).then(r.bind(this)).then(k.bind(this)); - break; - } - } - }.bind(this)); - break; - } + }); + Object.defineProperties(d.prototype, { + Fx: { + get: function() { + return this.Oa.Fx; + }, + enumerable: !0, + configurable: !0 } - } - - function C(a) { - var H42, b; - H42 = 2; - while (H42 !== 6) { - switch (H42) { - case 3: - b.T = a.fragments; - b.Ti = a.drmHeader; - b.response = a.response; - return b; - break; - case 2: - b = { - zc: a.isHeader, - M: a.movieId, - ib: a.streamId, - ga: void 0 !== a.bytes ? a.bytes : a.byteEnd - a.byteStart + 1, - offset: void 0 !== a.offset ? a.offset : a.byteStart, - hq: a.headerData, - T: a.fragments, - Ti: a.drmHeader, - response: a.response, - TVa: a.fragmentsTimescale, - Mn: void 0 !== a.audioSampleRate ? a.audioSampleRate : a.audioFrameRate, - Kn: a.audioFrameLength, - hb: a.ptsStart, - Lg: a.ptsEnd, - Bp: a.avgFragmentDurationMs - }; - F.S(a.params) ? (b.O = a.mediaType, b.J = a.bitrate, b.location = a.location, b.Ec = a.serverId, b.Sd = a.saveToDisk) : (b.O = a.params.mediaType, b.J = a.params.bitrate, b.location = a.params.location, b.Ec = a.params.serverId, b.Sd = a.params.saveToDisk); - b.hq = a.headerData; - H42 = 3; - break; - } + }); + Object.defineProperties(d.prototype, { + Zd: { + get: function() { + return this.Oa.Zd; + }, + enumerable: !0, + configurable: !0 } - } - - function h(a, b, d, g, h, f, m, l) { - var P32, p, r, k, u, v, r6u, n6u; - P32 = 2; - while (P32 !== 14) { - r6u = "vi"; - r6u += "deo"; - r6u += "_tr"; - r6u += "ack"; - r6u += "s"; - n6u = "au"; - n6u += "dio_"; - n6u += "t"; - n6u += "racks"; - switch (P32) { - case 2: - p = d === la.G.VIDEO; - r = []; - k = []; - a[[n6u, r6u][d]][g].streams.forEach(function(b, c) { - var L32, h; - L32 = 2; - while (L32 !== 14) { - switch (L32) { - case 2: - b = B.pja(void 0, a, d, g, c, l); - c = b.J; - h = b.je; - L32 = 3; - break; - case 6: - (b.FO ? k : r).push(b); - L32 = 14; - break; - case 7: - b.inRange = !1; - L32 = 6; - break; - case 3: - L32 = c < f.tna || c > f.Sma ? 9 : 8; - break; - case 9: - b.inRange = !1; - L32 = 8; - break; - case 8: - L32 = h < f.una || h > f.Tma ? 7 : 6; - break; - } - } - }); - P32 = 9; - break; - case 9: - u = []; - h && 0 !== r.length && (v = c(b, r, p, f, m)) && u.push(v); - v || (v = c(b, k, p, f, m)) && u.push(v); - return u; - break; - } + }); + Object.defineProperties(d.prototype, { + gu: { + get: function() { + return this.Oa.gu; + }, + enumerable: !0, + configurable: !0 } - } - - function l(a, b, c, d, f, m) { - var B32, l, p, r, k, W6u, V6u; - B32 = 2; - while (B32 !== 13) { - W6u = "Unable to "; - W6u += "find audio"; - W6u += " track in manifest:"; - V6u = "Unabl"; - V6u += "e to fi"; - V6u += "nd video "; - V6u += "track in"; - V6u += " manifest"; - switch (B32) { - case 9: - na(V6u); - B32 = 13; - break; - case 8: - b.audio_tracks.some(function(g, l) { - var R32; - R32 = 2; - while (R32 !== 5) { - switch (R32) { - case 3: - R32 = g.track_id !== c ? 2 : 2; - break; - R32 = g.track_id == c ? 1 : 5; - break; - case 1: - return k = h(b, a, la.G.AUDIO, l, d, f, p, m), !0; - break; - case 2: - R32 = g.track_id == c ? 1 : 5; - break; - } - } - }); - B32 = 7; - break; - case 2: - l = b.video_tracks; - p = g(b.audio_tracks); - B32 = 4; - break; - case 7: - B32 = F.S(k) ? 6 : 14; - break; - case 4: - l.some(function(c, g) { - var l32; - l32 = 2; - while (l32 !== 5) { - switch (l32) { - case 1: - return r = h(b, a, la.G.VIDEO, g, d, f, p, m), !0; - break; - case 2: - l32 = !c.stereo ? 1 : 5; - break; - } - } - }); - B32 = 3; - break; - case 6: - na(W6u, c); - B32 = 13; - break; - case 3: - B32 = F.S(r) ? 9 : 8; - break; - case 14: - return r.concat(k); - break; - } + }); + Object.defineProperties(d.prototype, { + gj: { + get: function() { + return this.Oa.gj; + }, + enumerable: !0, + configurable: !0 } - } - - function c(a, b, c, d, g) { - var X32, Y6u, X6u; - X32 = 2; - while (X32 !== 8) { - Y6u = "updateS"; - Y6u += "treamS"; - Y6u += "electio"; - Y6u += "n returned n"; - Y6u += "ull list"; - X6u = "selectStream"; - X6u += " re"; - X6u += "tur"; - X6u += "n"; - X6u += "ed null"; - switch (X32) { - case 1: - d = t(d, g); - X32 = 5; - break; - case 2: - X32 = (b = a.location.NR(a.cc, b)) ? 1 : 9; - break; - case 3: - na(X6u); - X32 = 8; - break; - case 9: - na(Y6u); - X32 = 8; - break; - case 5: - X32 = (a = a.stream[c ? 1 : 0].V4(a.cc, b, void 0, c ? d.hpa : d.gpa)) ? 4 : 3; - break; - case 4: - return c = b[a.se], c.Em = a.reason, c.Ol = a.Ws, c.FZa = a.Qk, c.uO = a.Qj, c; - break; - } + }); + Object.defineProperties(d.prototype, { + fu: { + get: function() { + return this.Oa.fu; + }, + enumerable: !0, + configurable: !0 + } + }); + Object.defineProperties(d.prototype, { + BE: { + get: function() { + return this.Oa.BE; + }, + enumerable: !0, + configurable: !0 + } + }); + Object.defineProperties(d.prototype, { + Fs: { + get: function() { + return this.Oa.Fs; + }, + enumerable: !0, + configurable: !0 + } + }); + Object.defineProperties(d.prototype, { + cZa: { + get: function() { + var a; + a = this.aa.Ej()[this.P]; + return this.Oa.Fs / a; + }, + enumerable: !0, + configurable: !0 + } + }); + Object.defineProperties(d.prototype, { + dZa: { + get: function() { + var a; + a = this.aa.Ej()[this.P]; + return this.Oa.Sra().en / a; + }, + enumerable: !0, + configurable: !0 + } + }); + Object.defineProperties(d.prototype, { + na: { + get: function() { + return this.Fc.na; + }, + enumerable: !0, + configurable: !0 + } + }); + Object.defineProperties(d.prototype, { + WR: { + get: function() { + return this.Oa.WR; + }, + enumerable: !0, + configurable: !0 + } + }); + Object.defineProperties(d.prototype, { + nz: { + get: function() { + return this.Oa.nz; + }, + enumerable: !0, + configurable: !0 + } + }); + Object.defineProperties(d.prototype, { + bc: { + get: function() { + return this.Fc.Xra(this.P); + }, + enumerable: !0, + configurable: !0 + } + }); + Object.defineProperties(d.prototype, { + Sl: { + get: function() { + return this.Fc.H$a(this.P); + }, + enumerable: !0, + configurable: !0 + } + }); + Object.defineProperties(d.prototype, { + pg: { + get: function() { + return this.aa.WC(this.P) ? this.jia : !0; + }, + set: function(a) { + this.jia = a; + }, + enumerable: !0, + configurable: !0 } + }); + d.prototype.reset = function(a, b, c) { + this.fp = !1; + this.seeking = void 0; + this.pg = !1; + this.Oa.reset(a); + b && (this.FK = !0); + this.G9 = { + reason: c, + time: f.time.da() + }; + }; + d.prototype.Kj = function(a) { + this.Oa.Kj(a); + this.Dy = this.K.L5; + }; + d.prototype.UG = function() { + this.Oa.DE(); + }; + d.prototype.Qnb = function(a, b) { + var c, d; + c = this.aa; + d = this.P; + this.uf = b.uf; + this.Yo = b.Yo; + b.bc.forEach(function(b) { + var f; + f = c.Ve[d][b.id]; + f && !b.Mc && (f.stream.Mc ? b.dQ(f.stream) : (f.XJ || (f.XJ = []), f.XJ.push(a))); + }); + d === h.G.AUDIO && (this.gB = u.EU(this.K, b.bc[0])); + c.xSa(this, b.inb); + this.FZa(b.bc); + this.yu = void 0; + this.pg = !1; + }; + d.prototype.Unb = function(a, b) { + var c; + if (this.K.xB) { + c = this.Oa.O9a(); + null !== c ? (this.Ra = c, this.fg = c === a ? b : this.aa.eO(this.P, this.Fc.na, this.Ra)) : (this.fa("nextPts from requestManager returns null,", "fall back to linear increasing streamingPts"), this.Ra = a, this.fg = b); + } else this.Ra = a, this.fg = b; + }; + d.prototype.Wp = function(a) { + var b, c, d; + if (this.pf && this.pf.U === a) b = this.pf.index, c = a; + else { + d = this.aa.sk(this.na); + b = d.ib[this.P]; + if (!b || !b.stream.Mc) { + this.rv = !0; + this.OT = a; + return; + } + c = b.Y; + this.pf = this.pqa(b.stream, a, void 0, void 0); + if (void 0 === this.pf) { + if (b = c.length - 1, c = c.Of(b), this.fa("setStreamingPts out of range of fragments, pts:", a, "last startPts:", c, "fragment index:", b, "fastplay:", d.ci), d.ci) { + this.rv = !0; + this.OT = a; + return; + } + } else b = this.pf.index, c = this.pf.U; + } + this.fg = b; + this.Ra = c; + delete this.rv; + }; + d.prototype.gmb = function(a) { + this.Wp(a); + this.pg = !1; + this.ea = void 0; + this.Oa.Vya(); + }; + d.prototype.fmb = function(a) { + this.pf = a; + this.pg = !1; + this.ea = void 0; + this.fg = this.pf.index; + this.Ra = this.pf.U; + delete this.rv; + this.Oa.Vya(); + }; + d.prototype.tmb = function(a) { + var b; + b = this.aa.sk(this.na).ib[this.P]; + if (b && b.stream.Mc) { + for (var c = b.Y; 0 < this.fg && this.Ra > a;) this.Ra = c.Of(--this.fg); + this.fg < this.pf.index && (this.pf = b.stream.$g(this.fg)); + this.rv = void 0; + } else this.rv = !0, this.OT = a; + }; + d.prototype.psb = function(a) { + var b, c; + b = this.Sl[a]; + c = "verifying streamId: " + a + " stream's track: " + (b ? b.uf : "unknown") + " currentTrack: " + this.uf; + if (!b) return this.aa.th("unknown streamId: " + a), !1; + b.uf !== this.uf && this.aa.th(c); + return b.uf === this.uf; + }; + d.prototype.FZa = function(a) { + this.Fsa = a.reduce(function(a, b) { + return b.inRange && b.Fe && !b.Eh && b.O > a.O ? b : a; + }, a[0]); + this.$ab = a.indexOf(this.Fsa); + }; + d.prototype.a6a = function(a) { + return this.P === h.G.VIDEO ? 0 : this.gB ? 0 : this.K.Wm ? a && a.bf || 0 : this.K.Gm && a ? -a.bf : 0; + }; + d.prototype.D$ = function() { + return this.P === h.G.VIDEO && this.K.Kr || this.P === h.G.AUDIO && this.K.Gm; + }; + d.prototype.pqa = function(a, b, d, f, g) { + var k, m, p, l, r, u, n; + c(b >= a.Y.Of(0)); + k = this.K; + m = this.D$(); + p = a.Y; + l = b + 0; + this.P === h.G.AUDIO && void 0 === f && m && k.Cn && !k.wx && a.Ik && (b = Math.max(a.Y.Of(0), b + a.Ik.bf)); + r = p.Dj(l, void 0, !0); + this.aa.S2(this.P) && (r = Math.floor(r / k.j8) * k.j8); + u = a.$g(r); + if (u.ea < b) return u; + if (m) { + l = this.P === h.G.VIDEO ? l : b; + n = u.hR(l); + n ? (0 < n.Vc && u.Ak(n, !1), this.P !== h.G.AUDIO || k.uva || n.Jb < (k.Cn && !k.wx && a.Ik ? Math.floor(a.Ik.bf) : 0) && u.vpa()) : l >= u.ea && r < p.length - 1 && (u = a.$g(r + 1)); + } + this.P === h.G.VIDEO && d && u.ea === d && r < p.length - 1 ? u = a.$g(r + 1) : this.P === h.G.AUDIO && !m && void 0 !== f && !k.Wm && (d = b + f, d - u.U > k.Geb || u.U < d - g) && (u = a.$g(r + 1)); + m && this.P === h.G.AUDIO && !u.$c && (k.ZI || k.lta || k.c5a) && void 0 !== f && u.Ak(); + u.SK(b); + return u; + }; + d.prototype.c7a = function(a, b) { + var c, d, f, g, k; + c = this.K; + d = a.Y; + f = d.Ka; + g = b ? b + this.a6a(f) : d.mC(d.length - 1); + d = d.Dj(g, void 0, !0); + f = a.$g(d); + 0 === d || f.U !== b || this.P !== h.G.VIDEO && c.Wm || (--d, f = a.$g(d)); + if (this.D$()) { + g = this.P === h.G.VIDEO ? g : b; + if (g < f.ea) { + k = f.g7a(g); + k && 0 !== k.Vc ? f.Ak(k, !0) : this.P === h.G.AUDIO && (k || g < f.U) && 0 !== d ? f = a.$g(d - 1) : this.P === h.G.VIDEO && k && 0 !== d && (f = a.$g(d - 1)); + } + this.P === h.G.AUDIO && (c.ZI || c.kta) && f.Ak(); + } else this.P === h.G.AUDIO && !c.Wm && b - f.U < f.duration / 2 && 0 !== d && (f = a.$g(d - 1)); + f.SK(b); + return f; + }; + d.prototype.PU = function(a) { + this.Fh = a; + this.ea = a.ea; + }; + d.prototype.Ty = function(a) { + a.ea && a.U && (this.Dy -= a.ea - a.U); + this.Yx(a); + }; + d.prototype.mv = function(a) { + this.Xx(a); + }; + d.prototype.li = function(a) { + this.Gu(a); + }; + d.prototype.Frb = function(a) { + var b; + b = f.time.da(); + this.Dy += a * (b - this.Pxa); + this.Pxa = b; + }; + d.prototype.Tya = function() { + this.Dy = this.K.L5; + }; + d.prototype.toJSON = function() { + return { + started: this.vz, + startOfSequence: this.S$, + segmentId: this.Ym, + requestedBufferLevel: this.gj, + manifestIndex: this.na, + hasFragments: this.WR + }; + }; + d.prototype.$Sa = function(a) { + a = a && a.length ? "{" + a + "} " : ""; + a += "[" + this.P + "]"; + this.W = l(f, this.aa.W, a); + this.Rb = this.W.error.bind(this.W); + this.fa = this.W.warn.bind(this.W); + this.Hb = this.W.trace.bind(this.W); + this.Ua = this.W.log.bind(this.W); + this.yt = this.W.debug.bind(this.W); + this.Oa && this.Oa.Vza(this.W); + }; + return d; + }(g); + d.rNa = a; + }, function(g, d, a) { + var b, c, h, k, f, p, m; + Object.defineProperty(d, "__esModule", { + value: !0 + }); + b = a(0); + c = a(48); + h = a(11); + k = a(670); + g = a(96); + f = a(13); + p = a(8); + m = a(28).vJ; + a = function(a) { + function d(b, c, d, g, l, r, u) { + var n, v, x; + n = a.call(this, b.aa) || this; + n.$a = b; + n.qa = d; + n.U = g; + n.na = l; + n.pe = r; + v = b.aa; + n.aa = v; + n.pe = r; + n.qa = d; + n.U = g; + n.Am = d.Am; + n.children = Object.create(null); + n.bq = []; + n.IUa = d.id && d.id.length ? "{" + d.id + "}" : void 0; + n.W = m(p, v.W, n.IUa); + n.Rb = n.W.error.bind(n.W); + n.fa = n.W.warn.bind(n.W); + n.Hb = n.W.trace.bind(n.W); + n.Ua = n.W.log.bind(n.W); + n.yt = n.W.debug.bind(n.W); + n.Jc = v.sk(l).Pm; + n.na = l; + n.Oc = void 0; + h.ja(u) || (u = g); + n.Sa = []; + x = c.qpb; + [f.G.AUDIO, f.G.VIDEO].forEach(function(a) { + var b; + if (v.WC(a)) { + b = new k.rNa(v, n, a, u, v, x[a], v.K); + n.Sa[a] = b; + } + }); + n.J5(l); + b.al.push(n); + return n; } - - function m(a) { - var K32, H9u; - K32 = 2; - while (K32 !== 1) { - H9u = "Me"; - H9u += "di"; - H9u += "a cache "; - H9u += "is not enab"; - H9u += "led"; - switch (K32) { - case 2: - return this.qL ? this.qL.then(function() { - var x32, b; - x32 = 2; - while (x32 !== 4) { - switch (x32) { - case 2: - b = function(a) { - var e32, b, c, d, O9u; - e32 = 2; - while (e32 !== 7) { - O9u = "mo"; - O9u += "vieE"; - O9u += "n"; - O9u += "try"; - switch (e32) { - case 8: - this.Ji.aB(a, c); - e32 = 7; - break; - case 3: - d = function(a) { - var o32, c9u, o9u, P9u, K6u; - o32 = 2; - while (o32 !== 1) { - c9u = "d"; - c9u += "e"; - c9u += "le"; - c9u += "te"; - o9u = "d"; - o9u += "e"; - o9u += "l"; - o9u += "ete"; - P9u = "bi"; - P9u += "ll"; - P9u += "b"; - P9u += "oard"; - K6u = "del"; - K6u += "e"; - K6u += "t"; - K6u += "e"; - switch (o32) { - case 2: - this.Ji[K6u](P9u, a); - o32 = 1; - break; - case 4: - this.Ji[o9u](c9u, a); - o32 = 7; - break; - o32 = 1; - break; - } - } - }.bind(this); - this.Ji.aB(b, c); - e32 = 8; - break; - case 2: - b = [O9u, a].join("."); - a = a.toString(); - c = function(a) { - var U32; - U32 = 2; - while (U32 !== 1) { - switch (U32) { - case 4: - a.map(d.bind(this)); - U32 = 2; - break; - U32 = 1; - break; - case 2: - a.map(d.bind(this)); - U32 = 1; - break; - } - } - }.bind(this); - e32 = 3; - break; - } - } - }.bind(this); - return new U(function(c) { - var O32, m9u; - O32 = 2; - while (O32 !== 1) { - m9u = "mov"; - m9u += "ieEntr"; - m9u += "y"; - switch (O32) { - case 2: - this.Ji.aB([m9u, a].join("."), function(d) { - var h32, g, h, a9u; - h32 = 2; - while (h32 !== 7) { - a9u = "bi"; - a9u += "l"; - a9u += "lboar"; - a9u += "d"; - switch (h32) { - case 4: - d = d[0]; - g = function() { - var N32; - N32 = 2; - while (N32 !== 1) { - switch (N32) { - case 2: - this.Ji.aB(a, function(b) { - var w32; - w32 = 2; - while (w32 !== 4) { - switch (w32) { - case 5: - U.all(b).then(function() { - var m32, I9u; - m32 = 2; - while (m32 !== 5) { - I9u = "N"; - I9u += "o content data found"; - I9u += " for "; - switch (m32) { - case 2: - this.Gc[a] && F.Pd(this.Gc[a].data) ? Object.keys(this.Gc[a].data).forEach(function(b) { - var C32; - C32 = 2; - while (C32 !== 1) { - switch (C32) { - case 2: - this.Gc[a].data[b].sort(function(a, b) { - var v32; - v32 = 2; - while (v32 !== 1) { - switch (v32) { - case 2: - return a.hb - b.hb; - break; - case 4: - return a.hb + b.hb; - break; - v32 = 1; - break; - } - } - }); - C32 = 1; - break; - } - } - }.bind(this)) : ma(I9u + a, this.Gc[a]); - c(this.Gc[a]); - m32 = 5; - break; - } - } - }.bind(this), function() { - var Y32; - Y32 = 2; - while (Y32 !== 1) { - switch (Y32) { - case 2: - c(); - Y32 = 1; - break; - case 4: - c(); - Y32 = 4; - break; - Y32 = 1; - break; - } - } - }); - w32 = 4; - break; - case 2: - b = b.reduce(function(a, b) { - var T32, c, i9u; - T32 = 2; - while (T32 !== 8) { - i9u = "dr"; - i9u += "mHeader.__emb"; - i9u += "ed_"; - i9u += "_"; - switch (T32) { - case 3: - a[c] ? a[c].push(b) : a[c] = [b]; - return a; - break; - case 2: - c = b.substr(0, b.lastIndexOf(".")); - T32 = 5; - break; - case 5: - T32 = -1 !== c.indexOf(i9u) ? 4 : 3; - break; - case 4: - return a; - break; - } - } - }, {}); - b = p.bind(this)(b); - w32 = 5; - break; - } - } - }.bind(this)); - N32 = 1; - break; - } - } - }.bind(this); - h = function(a) { - var M32; - M32 = 2; - while (M32 !== 1) { - switch (M32) { - case 2: - return !(F.S(a) || F.Ja(a) || F.S(a.ad) || F.Ja(a.ad) || F.S(a.M) || F.Ja(a.M) || F.S(a.Vc) || F.Ja(a.Vc)); - break; - } - } - }; - h32 = 8; - break; - case 1: - h32 = !d || 0 >= d.length ? 5 : 4; - break; - case 5: - c(); - h32 = 7; - break; - case 8: - h(this.Gc[a]) ? g() : this.Ji.read(a9u, d, function(d, f) { - var r32, m, l, G32; - r32 = 2; - while (r32 !== 9) { - switch (r32) { - case 3: - h(l) ? (this.Gc[a] = l, g()) : (b(a), c()); - r32 = 9; - break; - case 2: - try { - G32 = 2; - while (G32 !== 1) { - switch (G32) { - case 2: - m = JSON.parse(String.fromCharCode.apply(null, new Uint8Array(f))); - G32 = 1; - break; - } - } - } catch (Db) { - m = f; - } - F.S(m) || (l = { - Vc: m.priority, - M: m.movieId, - headers: m.headers, - cA: 0, - UE: 0, - sO: 0, - Sd: m.saveToDisk, - ad: m.stats, - Nk: m.firstSelectedStreamBitrate, - Em: m.initSelectionReason, - Ol: m.histDiscountedThroughputValue, - Qj: m.histTdigest, - Qk: m.histAge - }); - F.S(l) || F.Ja(l) || (l.ad = l.ad || {}, l.headers = l.headers || {}); - r32 = 3; - break; - } - } - }.bind(this)); - h32 = 7; - break; - case 2: - h32 = 1; - break; - } - } - }.bind(this)); - O32 = 1; - break; - } - } - }.bind(this)); - break; - } - } - }.bind(this)) : U.reject(H9u); - break; + b.__extends(d, a); + Object.defineProperties(d.prototype, { + gj: { + get: function() { + return [this.Sa[0].gj, this.Sa[1].gj]; + }, + enumerable: !0, + configurable: !0 + } + }); + Object.defineProperties(d.prototype, { + fu: { + get: function() { + return [this.Sa[0].fu, this.Sa[1].fu]; + }, + enumerable: !0, + configurable: !0 + } + }); + Object.defineProperties(d.prototype, { + Pm: { + get: function() { + return this.aa.wa[this.na].Pm; + }, + enumerable: !0, + configurable: !0 + } + }); + Object.defineProperties(d.prototype, { + Kc: { + get: function() { + return this.U; + }, + enumerable: !0, + configurable: !0 + } + }); + Object.defineProperties(d.prototype, { + Md: { + get: function() { + return this.ea; + }, + enumerable: !0, + configurable: !0 + } + }); + Object.defineProperties(d.prototype, { + ea: { + get: function() { + return h.ja(this.kja) ? this.kja : this.qa.ea; + }, + enumerable: !0, + configurable: !0 + } + }); + Object.defineProperties(d.prototype, { + $b: { + get: function() { + return this.U + this.Jc; + }, + enumerable: !0, + configurable: !0 + } + }); + Object.defineProperties(d.prototype, { + Cd: { + get: function() { + return this.ea + this.Jc; + }, + enumerable: !0, + configurable: !0 + } + }); + d.prototype.toJSON = function() { + return { + segment: this.qa.id, + active: this.active, + branchOffset: this.Jc, + manifestIndex: this.na, + contentStartPts: this.U, + contentEndPts: this.ea, + playerStartPts: this.$b, + playerEndPts: this.Cd, + pipelines: this.Sa, + previousBranch: this.pe + }; + }; + d.prototype.Rnb = function(a) { + this.na = a; + }; + d.prototype.fi = function(a) { + return this.Sa[a]; + }; + d.prototype.Xra = function(a) { + return (a = this.aa.sk(this.na).ge[a]) ? a.bc : void 0; + }; + d.prototype.H$a = function(a) { + return (a = this.aa.sk(this.na).ge[a]) ? a.Sl : void 0; + }; + d.prototype.k$a = function(a) { + return this.Sa[a].nz; + }; + d.prototype.xC = function(a) { + return this.Sa[a].Zd; + }; + d.prototype.J5 = function(a) { + var b; + b = this.aa.sk(a).ge; + this.Sa.forEach(function(c) { + var d; + d = b[c.P]; + d && c.Qnb(a, d); + }); + }; + d.prototype.UG = function() { + this.Sa.forEach(function(a) { + a.UG(); + }); + }; + d.prototype.Ld = function() { + this.pe && (this.pe = this.pe.children[this.qa.id] = void 0); + h.Lc(this.children, function(a) { + a && a.pe && (a.pe = void 0); + }); + this.children = Object.create(null); + this.IA = void 0; + }; + d.prototype.Jra = function(a) { + return this.Sa[a].Oa.Nib; + }; + d.prototype.EZa = function(a) { + var b, c; + b = this.gSa(); + b = this.Bja(a, b); + if (0 > b) return -1; + b = a.mC(b); + c = this.ea; + c = this.Bja(a, this.Am || c); + return 0 > c ? -1 : Math.max(b, a.Of(c)); + }; + d.prototype.tna = function() { + var a, b; + if (!("number" !== typeof this.Am || this.Am >= this.ea)) { + a = this.aa.sk(this.na).ib[f.G.VIDEO].Y; + b = this.EZa(a); + if (!(0 > b) && (b = a.Dj(b, 0, !0), !(0 > b) && (b = this.Cja(b, a), (a = b < a.length && a.mC(b)) && a < this.ea))) return a; + } + }; + d.prototype.Drb = function(a) { + this.Jc += a; + }; + d.prototype.OBa = function(a) { + var b, c, d; + b = this; + this.kja = a; + c = this.aa; + d = c.sk(this.na); + this.Sa.forEach(function(g) { + var k, h, m; + k = g.P; + h = d.ib[k]; + m = h.Y.Dj(a - 1, 0, !0); + h = h.stream.$g(m); + g.PU(h); + if (m = g.Oa.e7a(h.Kc)) m.g7(), k === f.G.VIDEO && c.ZZ(b.qa, h.ea); + g.Oa.EWa(a); + c.Ke[k].SZa(b.qa.id, a); + g.Ra > h.ea && g.Wp(h.ea); + }); + }; + d.prototype.KB = function(a, b) { + var c, d, g, k, h, m, p; + c = this.$a.K; + d = this.aa; + g = this.Sa[f.G.AUDIO]; + k = this.Sa[f.G.VIDEO]; + h = g ? b ? g.gj : g.Zd : 0; + b = k ? b ? k.gj : k.Zd : 0; + a || (a = c.ki); + m = !d.Rf || k.pg && 0 === k.Oa.ov; + m = (!d.Qi || g.pg && 0 === g.Oa.ov) && m; + p = !d.Qi || h >= c.ki; + a = !d.Rf || b >= a; + if (!(m || p && a)) return !1; + if (k && k.fp) return !0; + g = g ? g.Oa.Bo : 0; + k = k ? k.Oa.Bo : 0; + c = c.dr && (0 !== g || 0 !== k); + if (m && !c) + if (this.aa.EO && 0 === h && 0 === b) this.fa("playlist mode with nothing buffered, waiting for next manifest"); + else return !0; + return !1; + }; + d.prototype.$qa = function() { + var a, b; + a = !0; + b = {}; + this.Sa.map(function(c) { + var d; + d = c.P === f.G.VIDEO ? "v" : "a"; + c = c.fu; + b[d + "buflmsec"] = c.bf; + b[d + "buflbytes"] = c.Z; + a = a && 0 < c.bf; + }); + return { + SR: a, + fH: b + }; + }; + d.prototype.dV = function(a, b) { + var c, d, f; + c = this; + d = p.time.da(); + f = {}; + h.Lc(this.children, function(a) { + var b, g; + if (a) { + a.Oc ? (a.Oc.I4a = d - a.Oc.jS, a.Oc.jS = void 0, b = a.Oc.weight) : b = c.$a.Vra(c.qa.id, a.qa.id); + g = a.$qa(); + f[a.qa.id] = { + weight: b, + fH: g.fH, + SR: g.SR + }; } + }); + b = { + requestTime: d, + DU: a, + J3a: b, + bV: this.qa.id, + Oc: f + }; + a || (a = this.aa.de(), b.yAa = a - this.U + this.Jc, b.zQ = 0, b.startTime = d); + this.bq.unshift(b); + return b; + }; + d.prototype.U_a = function(a) { + var b, d; + b = this.bq[0]; + b.DU && (b.yAa = this.ea - this.U); + d = a.$qa(); + b.vBa = {}; + c(d.fH, b.vBa); + b.SR = a.fu.every(function(a) { + return 0 < a.bf; + }); + this.bq = []; + return b; + }; + d.prototype.Kj = function(a) { + var b; + b = this.qa; + a -= this.Jc; + if (b.U < a && a < b.ea) this.bq.shift(); + else if (b = this.bq[0]) b.Kj = !0; + }; + d.prototype.h_a = function() { + var a, b, c; + a = this.$a; + b = this.aa; + c = !0; + h.Lc(this.qa.zj, function(d, f) { + d = a.vj[f].na; + f = b.wa[d]; + f.ib[0] && f.ib[1] && f.ib[0].stream.Mc && f.ib[1].stream.Mc || (c = !1); + b.JI(f.R, d) || (c = !1); + }); + return c; + }; + d.prototype.reset = function(a, b, c) { + this.Sa.forEach(function(d) { + (h.V(c) || d.P === c) && d.reset(a, !1, b); + }); + this.pe && this.pe.reset(a, b, c); + }; + d.prototype.gSa = function() { + var a, b; + a = this.aa; + b = 0; + this.Sa.forEach(function(c) { + c = a.Ke[c.P].A9a() || 0; + c > b && (b = c); + }); + return b; + }; + d.prototype.Bja = function(a, b) { + return a.Dj(b - 1, 0, !0); + }; + d.prototype.Cja = function(a, b) { + var c, d; + c = this.qa.Uqb; + d = a >= b.length - 1; + if (!c || d) return d ? b.length - 1 : a; + this.HSa(c, b.mC(a)) && (a = this.Cja(a + 1, b)); + return a; + }; + d.prototype.HSa = function(a, b) { + var d, f; + if (!a) return !1; + for (var c = 0; c < a.length; c++) { + d = a[c][0]; + f = a[c][1]; + if (b < d) break; + if (b >= d && b < f) return !0; } - } - }()); - }, function(f, c, a) { - var h, l; - - function b() { - this.jp = this.rD = this.ZK = this.lL = this.QK = null; - } - - function d(a) { - this.H = a; - this.Vr = []; - this.ql = new b(); - this.CD(); - } - h = a(10); - a(13); - a(30); - l = a(9); - new l.Console("ASEJS_SESSION_HISTORY", "media|asejs"); - b.prototype.qh = function(a) { - var b; - b = !1; - a && h.has(a, "ens") && h.has(a, "lns") && h.has(a, "fns") && h.has(a, "d") && h.has(a, "t") && (this.QK = a.ens, this.lL = a.lns, this.ZK = a.fns, this.rD = a.d, this.jp = l.time.EP(a.t), b = !0); - return b; - }; - b.prototype.ae = function() { - var a; - if (h.Ja(this.QK) || h.Ja(this.lL) || h.Ja(this.ZK) || h.Ja(this.rD) || h.Ja(this.jp)) return null; - a = { - d: this.rD, - t: l.time.GG(this.jp) + return !1; }; - a.ens = this.QK; - a.lns = this.lL; - a.fns = this.ZK; - return a; - }; - b.prototype.get = function() { - var a, b; - a = this.ae(); - if (a) { - b = new Date(l.time.GG(this.jp)); - a.dateint = 1E4 * b.getFullYear() + 100 * (b.getMonth() + 1) + b.getDate(); - a.hour = b.getHours(); - } - return a; - }; - d.prototype.CD = function() { - var a; - a = l.storage.get("sth"); - a && this.VD(a); - }; - d.prototype.VD = function(a) { - var c, d; - c = null; - d = this.H; - a.forEach(function(a) { - var d; - d = new b(); - d.qh(a) ? (c = !0, this.Vr.push(d)) : h.Ja(c) && (c = !1); - }, this); - this.Vr = this.Vr.filter(function(a) { - return a.rD >= d.tP; + return d; + }(g); + d.fM = a; + }, function(g, d, a) { + var b, c, h, k, f, p, m, l, u; + b = a(14); + c = a(11); + h = a(13); + k = a(48); + f = a(8); + p = a(28).e$; + m = a(671); + l = a(663); + u = a(198); + d = function() { + function a(a, b, c, d, f) { + this.aa = a; + this.xd = b; + this.K = f; + this.W = a.W; + this.Rb = this.W.error.bind(this.W); + this.fa = this.W.warn.bind(this.W); + this.Hb = this.W.trace.bind(this.W); + this.Ua = this.W.log.bind(this.W); + this.al = []; + this.vj = {}; + c ? (this.eZ = !0, this.xUa(c, d)) : (this.Zj = this.oZ("", 0, 0, void 0, void 0, [], !0), this.Zj.b8 = !0, this.Zj.ea = Infinity, this.cP = [this.Zj]); + this.Kb = new m.fM(this, b, this.Zj, this.Zj.U, 0, void 0, d); + this.Kb.active = !0; + this.FO = this.qO = void 0; + } + Object.defineProperties(a.prototype, { + Xr: { + get: function() { + return !!this.eZ; + }, + enumerable: !0, + configurable: !0 + } }); - this.Vr.sort(function(a, b) { - return a.jp - b.jp; + Object.defineProperties(a.prototype, { + gcb: { + get: function() { + return 0 === this.Kb.Sa.length; + }, + enumerable: !0, + configurable: !0 + } }); - return h.Ja(c) ? !0 : c; - }; - d.prototype.JV = function() { - var a; - a = []; - this.Vr.forEach(function(b) { - a.push(b.ae()); - }, this); - return a; - }; - d.prototype.save = function() { - var a, c, d; - a = this.JV(); - c = this.H; - d = this.ql.ae(); - d && d.d >= c.tP && (a.push(d), this.Vr.push(this.ql)); - a.length > c.jP && (a = a.slice(a.length - c.jP, a.length)); - this.ql = new b(); - a && l.storage.set("sth", a); - }; - d.prototype.reset = function() { - this.ql = new b(); - }; - d.prototype.ZWa = function() { - return this.ql.get(); - }; - d.prototype.EYa = function() { - return this.Vr.length + 1; - }; - d.prototype.GLa = function(a) { - this.ql.QK = a; - this.ql.jp = l.time.la(); - }; - d.prototype.QLa = function(a) { - this.ql.lL = a; - this.ql.jp = l.time.la(); - }; - d.prototype.LLa = function(a, b) { - this.ql.ZK = a; - this.ql.jp = l.time.la(); - this.ql.rD = b; - }; - f.P = d; - }, function(f, c, a) { - var d, h; - - function b(a) { - this.H = a; - this.CD(); - } - d = a(10); - h = a(9); - new h.Console("ASEJS_NETWORK_HISTORY", "media|asejs"); - b.prototype.save = function() { - var a; - a = this.ae(); - h.storage.set("nh", a); - }; - b.prototype.z$a = function() { - this.dv || (this.dv = !0, this.np = h.time.la()); - }; - b.prototype.K$a = function() { - var a; - if (this.dv) { - a = h.time.la(); - this.qp += a - this.np; - this.np = a; - this.dv = !1; - this.zD = null; - } - }; - b.prototype.qla = function(a, b) { - this.dv && (b > this.np && (this.qp += b - this.np, this.np = b), null === this.zD || a > this.zD) && (a = b - a, this.Ay.push([this.qp - a, a]), this.TKa(), this.zD = b); - }; - b.prototype.TKa = function() { - var a; - a = this.qp - this.H.b3a; - this.Ay = this.Ay.filter(function(b) { - return b[0] > a; + Object.defineProperties(a.prototype, { + XI: { + get: function() { + return this.Zj; + }, + enumerable: !0, + configurable: !0 + } }); - }; - b.prototype.CD = function() { - var a; - a = h.storage.get("nh"); - this.VD(a) || (this.np = h.time.la(), this.qp = 0, this.dv = !1, this.zD = null, this.Ay = []); - }; - b.prototype.VD = function(a) { - if (!(a && d.has(a, "t") && d.has(a, "s") && d.has(a, "i") && d.da(a.t) && d.da(a.s) && d.isArray(a.i))) return !1; - this.np = h.time.EP(1E3 * a.t); - this.qp = 1E3 * a.s; - this.dv = !1; - this.Ay = a.i.map(function(a) { - return [1E3 * a[0], a[1]]; + Object.defineProperties(a.prototype, { + mk: { + get: function() { + return this.Kb.qa.id; + }, + enumerable: !0, + configurable: !0 + } }); - this.zD = null; - return !0; - }; - b.prototype.ae = function() { - return this.dv ? { - t: h.time.now() / 1E3 | 0, - s: (this.qp + (h.time.la() - this.np)) / 1E3 | 0, - i: this.Ay.map(function(a) { - return [a[0] / 1E3 | 0, a[1]]; - }) - } : { - t: h.time.GG(this.np) / 1E3 | 0, - s: this.qp / 1E3 | 0, - i: this.Ay.map(function(a) { - return [a[0] / 1E3 | 0, a[1]]; - }) - }; - }; - f.P = b; - }, function(f, c, a) { - var h, l, g, m, p, k, u; - - function b(a) { - var b; - if (!a.OW) { - b = a.tka(); - a.Jf.mv(b["default"].ta, a.qg); - a.Jf.zx(b.Xi ? b.Xi.Om : void 0, b.Xi ? b.Xi.gx : void 0); - h.Ja(a.zb) || (a.OW = !0); - } - } - - function d(a, b, c) { - var d; - this.H = c; - this.yk = {}; - this.wy = c.wy; - this.mda = new k(this.wy); - this.reset(); - this.Qr = a; - this.Jf = b; - this.Ida = l.ee.name(); - this.Jf.SQ(this.Ida); - this.ica = 0; - l.events.on("networkchange", function(a) { - this.Ida = a; - this.Jf.SQ(a); - }.bind(this)); - d = c.rZ; - d && (d = { - $b: g.Pc.nC, - ia: { - ta: parseInt(d, 10), - cg: 0 - }, - he: { - qNa: 0, - cg: 0 - }, - Dm: { - qNa: 0, - cg: 0 + Object.defineProperties(a.prototype, { + Coa: { + get: function() { + return this.Kb.na; + }, + enumerable: !0, + configurable: !0 } - }, this.get = function() { - return d; }); - } - h = a(10); - l = a(9); - g = a(13); - c = a(30); - m = a(31).EventEmitter; - p = c.cEa; - k = a(279).z8; - u = new l.Console("ASEJS_NETWORK_MONITOR", "media|asejs"); - d.prototype = Object.create(m); - Object.defineProperties(d.prototype, { - startTime: { - get: function() { - return this.vc; + Object.defineProperties(a.prototype, { + Bf: { + get: function() { + return this.Kb; + }, + enumerable: !0, + configurable: !0 } - }, - $b: { - get: function() { - return this.qg; + }); + Object.defineProperties(a.prototype, { + De: { + get: function() { + return this.Kb.Sa; + }, + enumerable: !0, + configurable: !0 } - } - }); - d.prototype.WGa = function() { - var a, b, c; - a = this.H; - b = a.EV; - c = this.mda; - return a.kHa.reduce(function(a, d) { - a[d] = c.create(d, b); - return a; - }, {}); - }; - d.prototype.reset = function() { - var a, c; - a = this.H.EV; - c = this.mda; - this.location = null; - this.yk = this.WGa(); - this.op = c.create("respconn-ewma", a); - this.gp = c.create("respconn-ewma", a); - this.qg = g.Pc.HAVE_NOTHING; - this.aLa = function() { - b(this); - }.bind(this); - this.VL = void 0; - this.Kr = this.pf = this.zb = this.vc = null; - this.yGa = this.RL = 0; - this.KJa = !1; - if (this.H.Tp || "rlabr" === this.H.kx) this.yk.wqa = new p(this.H.Fa.numB, this.H.Fa.bSizeMs, this.H); - }; - d.prototype.UQ = function(a) { - var b; - b = this.yk; - if (a !== this.location) { - h.S(this.VL) || (clearInterval(this.VL), this.VL = void 0); - h.Ja(this.location) && (this.RL = 0, this.vc = null); - if (!h.Ja(a)) { - this.qg = g.Pc.HAVE_NOTHING; - for (var c in b) b[c] && b[c].reset && b[c].reset(); - (this.H.Tp || "rlabr" === this.H.kx) && b.wqa.reset(); - this.op.reset(); - this.gp.reset(); + }); + Object.defineProperties(a.prototype, { + Vma: { + get: function() { + return this.al; + }, + enumerable: !0, + configurable: !0 } - h.Ja(this.vc) || (this.RL += (h.Ja(this.zb) ? l.time.la() : this.zb) - this.vc); - this.zb = this.vc = null; - this.pf = 0; - this.location = a; - this.Jf.UQ(a); - } - }; - d.prototype.SQ = function(a) { - this.Jf.SQ(a); - }; - d.prototype.KLa = function(a) { - this.yk.QoEEvaluator ? u.warn("monitor (QoEEvaluator) already existed.") : this.yk.QoEEvaluator = a; - }; - d.prototype.C7a = function() { - delete this.yk.QoEEvaluator; - }; - d.prototype.eX = function(a, c, d) { - var f, m; - f = this.H; - m = this.yk; - if (h.S(c)) u.warn("addDataReceived called with undefined start time"); - else { - f.nHa && 10 > d - c ? c = d - 10 : 0 === d - c && (c = d - 1); - for (var l in m) m[l] && m[l].add && m[l].add(a, c, d); - this.qg = Math.max(this.qg, g.Pc.gr); - h.Ja(this.vc) && (this.vc = c, this.zb = null, this.OW = !1, this.pf = 0); - h.Ja(this.zb) || (c > this.zb && (this.vc += c - this.zb), this.zb = null, this.OW = !1); - this.pf += a; - this.qg < g.Pc.ln && (d - this.vc > f.vIa || this.pf > f.uIa) && (this.qg = g.Pc.ln); - this.qg < g.Pc.nC && (d - this.vc > f.OJa || this.pf > f.NJa) && (!this.KJa || this.yGa > f.tIa) && (this.qg = g.Pc.nC, b(this), this.VL = setInterval(this.aLa, f.fIa)); - h.Ja(this.Kr) || (c - this.Kr > f.$da ? this.Qr.qla(this.Kr, c) : d - c > f.$da && this.Qr.qla(c, d)); - this.Kr = Math.max(d, this.Kr); - } - }; - d.prototype.yp = function(a) { - this.op.add(a); - this.Jf.yp(a); - }; - d.prototype.vp = function(a) { - this.gp.add(a); - this.Jf.vp(a); - }; - d.prototype.start = function(a) { - var b; - h.Ja(this.Kr) && !h.Ja(this.zb) && (this.Kr = a); - b = this.yk; - if (this.H.y5) - for (var c in b) b[c] && b[c].start && b[c].start(a); - }; - d.prototype.stop = function(a) { - var b, c; - b = this.yk; - for (c in b) b[c] && b[c].stop && b[c].stop(a); - this.zb = h.Ja(this.zb) ? a : Math.min(this.zb, a); - this.Kr = null; - }; - d.prototype.flush = function() { - var a, b; - a = this.yk; - for (b in a) a[b] && a[b].flush && a[b].flush(); - }; - d.prototype.fail = function() { - this.vc = null; - }; - d.prototype.nXa = function() { - var a, b; - a = this.yk.entropy; - a && (b = a.oOa(), a.reset()); - return b; - }; - d.prototype.tka = function() { - var a, b, c, d, g, h, f; - a = l.time.la(); - b = {}; - c = this.yk; - d = this.H; - g = d.ZGa; - h = d.lKa; - for (f in c) c[f] && c[f].get && (b[f] = c[f].get(a), "iqr" === c[f].type && (b.Xi = b[f]), "tdigest" === c[f].type && (b.dk = b[f])); - b["default"] = g && b[g] ? b[g] : b["throughput-ewma"]; - "none" !== d.M4 && "none" !== h && (b.Mqa = h && b[h] ? b[h] : b["throughput-sw"]); - return b; - }; - d.prototype.get = function() { - var a, b, c, d, g; - a = this.tka(); - b = a["default"]; - c = this.op.get(); - d = this.gp.get(); - if (a.Mqa) g = a.Mqa, b = h.da(b.ta) && h.da(g.ta) && b.ta > g.ta && 0 < g.ta ? g : b; - a.$b = this.qg; - a.ia = b; - a.he = c; - a.Dm = d; - if (this.H.Tp || "rlabr" === this.H.kx) a.o8a = this.yk.wqa.g0(); - b = this.RL + !h.Ja(this.vc) ? (h.Ja(this.zb) ? l.time.la() : this.zb) - this.vc : 0; - a.time = b; - return a; - }; - d.prototype.gqa = function(a) { - 1 === ++this.ica && (this.emit("active", a), this.start(a)); - }; - d.prototype.T7a = function() {}; - d.prototype.jqa = function(a) { - 0 === --this.ica && (this.stop(a), this.emit("inactive", a)); - }; - f.P = d; - }, function(f) { - (function() { - var U9u; - U9u = 2; - while (U9u !== 9) { - switch (U9u) { - case 4: - c.prototype.get = function() { - var G9u; - G9u = 2; - while (G9u !== 1) { - switch (G9u) { - case 2: - return { - ta: this.Sr ? Math.floor(8 * this.pf / this.Sr) : null, - wTa: this.Sr ? this.Sr : 0 - }; - break; - } - } - }; - f.P = c; - U9u = 9; - break; - case 2: - c.prototype.start = function(a) { - var l9u; - l9u = 2; - while (l9u !== 1) { - switch (l9u) { - case 2: - this.vc ? a < this.vc ? (this.Sr += this.vc - a, this.vc = a) : a > this.ya && (this.ya = this.vc = a) : this.ya = this.vc = a; - l9u = 1; - break; - } - } - }; - c.prototype.stop = function(a) { - var B9u; - B9u = 2; - while (B9u !== 1) { - switch (B9u) { - case 2: - this.ya && a > this.ya && (this.Sr += a - this.ya, this.ya = a); - B9u = 1; - break; - } - } - }; - c.prototype.add = function(a, b, c) { - var z9u; - z9u = 2; - while (z9u !== 4) { - switch (z9u) { - case 2: - this.start(b); - this.stop(c); - this.pf += a; - z9u = 4; - break; - } - } - }; - U9u = 4; - break; + }); + Object.defineProperties(a.prototype, { + Jc: { + get: function() { + return this.Kb.Jc; + }, + enumerable: !0, + configurable: !0 } - } - - function c() { - var k9u; - k9u = 2; - while (k9u !== 5) { - switch (k9u) { - case 2: - this.Sr = this.pf = 0; - this.ya = this.vc = void 0; - k9u = 5; - break; - } + }); + Object.defineProperties(a.prototype, { + Ke: { + get: function() { + return this.aa.Ke; + }, + enumerable: !0, + configurable: !0 } - } - }()); - }, function(f, c, a) { - var d; - - function b(a) { - var b, c; - b = a.sw; - c = a.mw; - this.TW = b; - this.iV = { - uhd: a.uhdl, - hd: a.hdl + }); + Object.defineProperties(a.prototype, { + ej: { + get: function() { + return this.qO ? this.qO : this.Vma[0]; + }, + enumerable: !0, + configurable: !0 + } + }); + a.prototype.I4 = function(a) { + return "m" + a; }; - this.wg = Math.max(Math.ceil(1 * b / c), 1); - this.wIa = a.mins || 1; - d.call(this, b, c); - this.reset(); - } - d = a(101); - new(a(9)).Console("ASEJS_NETWORK_ENTROPY", "media|asejs"); - b.prototype = Object.create(d.prototype); - b.prototype.flush = function() { - this.Xb.map(function(a, b) { - this.Gfa(a, this.B_(b)); - }, this); - }; - b.prototype.oOa = function() { - var a, b, c, d, f, k, u, G; - a = this.iV; - for (b in a) - if (a.hasOwnProperty(b)) { - c = a[b]; - d = this.LW[b]; - f = this.JW[b]; - if (d.first) { - k = d.first; - u = d.Tw; - void 0 !== u && (f[k][u] += 1); - d.first = void 0; + a.prototype.xC = function(a) { + return (a = this.Kb.Sa[a]) ? a.Zd : 0; + }; + a.prototype.Vra = function(a, b) { + var c; + c = this.vj[a]; + if (c) return (a = c.zj[b]) && a.weight; + this.fa("getSegmentWeight, unknown segment:", a); + }; + a.prototype.u$a = function(a) { + var b; + b = this.vj[a]; + if (b) return b.U; + this.fa("getSegmentStartPts, unknown segment:", a); + }; + a.prototype.d$a = function() { + var a; + a = this.ej.qa; + return a && ("number" === typeof a.Am ? a.Am : a.ea); + }; + a.prototype.t$a = function(a) { + var b; + b = this.vj[a]; + if (!b) this.fa("getSegmentDuration, unknown segment:", a); + else if (c.ja(b.ea) && isFinite(b.ea) && c.ja(b.U) && isFinite(b.U)) return b.ea - b.U; + }; + a.prototype.nqa = function(a) { + var c; + for (var b = 0; b < this.al.length; b++) { + c = this.Kb; + if (this.aa.pS(c.na, a)) return c; + } + }; + a.prototype.a7a = function(a, b) { + return this.qja(a, !1, b); + }; + a.prototype.$6a = function(a, b) { + return this.qja(a, !0, b); + }; + a.prototype.Olb = function(a, b) { + c.Lc(this.al, function(c) { + c.na === a && (c.na = b); + }); + c.Lc(this.vj, function(c) { + c.na === a && (c.na = b); + }); + }; + a.prototype.Sya = function() { + var a; + a = this; + c.Lc(this.al, function(b) { + b.Jc = a.aa.sk(b.na).Pm; + }); + }; + a.prototype.SU = function(a) { + var b; + b = this; + c.Lc(this.al, function(c) { + c.Xra(h.G.VIDEO).forEach(function(c) { + k(b.aa.sia(c.Me, c.O, a), c); + }); + }); + }; + a.prototype.Q2a = function() { + this.al.forEach(function(a) { + a.active = !1; + }); + }; + a.prototype.rkb = function() { + var a; + for (; 0 < this.al.length;) { + a = this.al[0]; + if (!a.active) break; + if (a === this.Kb) break; + if (!a.Sa.every(function(a) { + return 0 === a.nz; + })) break; + a.Ld(); + this.al.shift(); + } + }; + a.prototype.F_a = function(a, b) { + var c, d; + c = this.Kb; + if (c.Aua) a = c.Aua; + else { + d = this.Kb.Jc; + a = new m.fM(this, this.xd, c.qa, 0, a, c); + a.Sa.forEach(function(a) { + a.Wp(0); + a.PU(c.Sa[a.P].Fh); + }); + a.Jc = d + b; + c.Aua = a; + } + this.BA(a, c); + }; + a.prototype.gXa = function(a, b, c) { + var d, f; + if (!this.eZ) { + this.eZ = !0; + d = this.I4(0); + this.Zj.id = d; + this.vj[d] = this.Zj; + this.Zj.ea = this.aa.Fja(this.aa.q9a()); + this.Zj.JD = !0; + } + f = this.I4(a); + a = this.oZ(f, a, b, c, void 0, [], !0); + a.JD = !0; + this.cP.forEach(function(a) { + a.zj = {}; + a.zj[f] = { + weight: 100 + }; + a.GH = f; + a.uE = !1; + }); + this.cP = [a]; + }; + a.prototype.LB = function(a, b) { + var d, f, g, k; + d = this.ej; + f = d.dV(b); + g = d.qa; + k = d.children[a]; + if (b) { + if (!g.zj[a]) return this.Kb.fa("chooseNextSegment, invalid destination:", a, "for current segment:", g.id), !1; + if (d.Ag) return d.Ag === a; + d.Ag = a; + k && d.qR ? this.BA(k, d) : this.K.YH && (a = d.tna(), c.V(a) || d.OBa(a)); + return !0; + } + if (!k) return f.Xva = !0, !1; + b || (f.Xva = !k.KB()); + this.aa.p_("chooseNextSegment"); + d.qR = void 0; + d.Ag = a; + this.BA(k, d); + return !0; + }; + a.prototype.dbb = function(a, b) { + var d, f, g, k, h, m, p; + d = this; + k = a.qa; + b && !a.Ag && (a.Ag = k.GH, a.dV(!0, !0)); + a.children = Object.create(null); + if (this.K.Rhb) + if (a.Ag) f = this.vj[a.Ag], g = this.pZ(f, a), a.children[a.Ag] = g; + else { + c.Lc(k.zj, function(a, b) { + f = d.vj[b]; + a = f.weight; + if (c.V(p) || a > p) h = f, m = b, p = a; + }); + h && (g = this.pZ(h, a), a.children[m] = g); } - for (var d = [], k = 0, c = u = c.length + 1, v = 0; v < u; v++) { - for (var n = 0, q = 0; q < c; q++) n += f[q][v]; - k += n; - d.push(n); + else c.Lc(k.zj, function(b, c) { + a.Ag && c !== a.Ag || (f = d.vj[c], g = d.pZ(f, a), a.children[c] = g); + }); + a.Ag && (b = a.children[a.Ag]) && this.BA(b, a); + a.qR = !0; + }; + a.prototype.Kqb = function() { + var a; + a = 0; + c.Lc(this.al, function(b) { + b.Sa.forEach(function(b) { + a += b.Oa.Zo; + }); + }); + return a; + }; + a.prototype.Tpb = function(a, b) { + var c, d; + c = this.cSa(a, b); + if (c) { + c !== this.Kb.qa && (this.Q2a(), d = new m.fM(this, this.xd, c, a, b, this.Kb), d.pe = void 0, this.IQa(this.Kb), this.BA(d, this.Kb)); + c === this.ej.qa && (this.ej.bq.shift(), d && (d.bq = this.ej.bq, d.Ag = this.ej.Ag)); + this.aa.ska(c, this.Kb.Jc); + this.Kb.qR = void 0; + } else this.fa("findSegment no segment for manifestIndex:", b); + }; + a.prototype.Jua = function(a, b) { + var c; + c = a.qa; + b || (b = c.GH); + p(c.id); + a.Ag || (a.Ag = b, a.dV(!0, !0)); + (b = a.children[a.Ag]) && this.BA(b, a); + }; + a.prototype.Xza = function(a, b) { + if (this.Kb !== a) { + if (b) + for (b = this.Kb; b && b !== a;) b.active = !1, b = b.pe; + this.Kb = a; + } + }; + a.prototype.Rya = function(a) { + var b; + b = this; + c.Lc(a.children, function(a) { + var c; + if (a) { + c = a.Sa[h.G.AUDIO]; + c.reset(!0, !0, "audioTrackChange"); + c.Ra = c.gta; + c.fg = c.eta; + c.pf = void 0; + c.Fh = void 0; + b.Rya(a); } - n = -1; - if (k > this.wIa) { - for (v = n = 0; v < u; v++) - if (0 < d[v]) - for (q = 0; q < c; q++) { - G = f[q][v]; - 0 < G && (n -= G * Math.log(1 * G / d[v])); - } - n /= k * Math.log(2); + }); + }; + a.prototype.H9 = function(a) { + var b; + b = this; + c.Lc(a.children, function(c) { + c && (b.jVa(c, a), b.H9(c)); + }); + }; + a.prototype.Co = function(a, b) { + var c, d, f, g, k; + c = this; + if (this.Xr) { + d = this.K; + f = this.ej; + g = f.qa; + k = p(g.id); + !f.Ag && !g.uE && f.ea - b <= d.lT && (this.fa(k + "updatePts making fork decision at playerPts:", a, "contentPts:", b), this.Jua(f)); + } + this.Kb.Sa.forEach(function(a) { + c.aa.WC(a.P) && c.Ke[a.P].Co(b); + }); + }; + a.prototype.Tgb = function(a, b) { + var c, d; + if (this.Xr) { + c = this.qO; + if (this.K.zbb && a && this.FO && a.U === this.FO) this.Hb("Ignoring pts that wiggled back into previous segment", this.FO); + else if (a = a.cf.Fc, !c || a.qa.id !== c.qa.id) { + d = c && c.Sa[h.G.VIDEO].Fh; + this.FO = d && d.U; + this.qO = a; + this.bRa(c); + c = c && c.U_a(a); + this.aa.cUa(a.qa, b, c); } - this.AV[b] = n; - } return this.AV; - }; - b.prototype.Gfa = function(a, b) { - var c, f; - for (var c = this.wg, d = this.iV; this.MK.length >= c;) this.MK.shift(); - for (; this.NK.length >= c;) this.NK.shift(); - this.MK.push(a); - this.NK.push(b); - a = this.MK.reduce(function(a, b) { - return a + b; - }, 0); - b = this.NK.reduce(function(a, b) { - return a + b; - }, 0); - if (0 < b) { - a = 8 * a / b; - for (var h in d) - if (d.hasOwnProperty(h)) { - b = this.LW[h]; - c = this.JW[h]; - f = this.G6a(a, d[h]); - prev = b.Tw; - void 0 !== prev ? c[f][prev] += 1 : b.first = f; - b.Tw = f; + } + }; + a.prototype.Ld = function() { + this.LRa(this.Kb); + }; + a.prototype.Hgb = function(a, b, c) { + b.b8 || (b.U = this.aa.Hra(a, b.U, !0), c || (b.ea = this.aa.Hra(a, b.ea, !1)), b.b8 = !0); + }; + a.prototype.Qaa = function(a, b) { + var d; + p(a); + d = this.vj[a]; + d ? (c.Lc(d.zj, function(a, c) { + a.weight = b[c] || 0; + }), a = this.Aja(d.zj), d.Am = "number" === typeof a ? d.U + a : d.ea) : this.fa("updateChoiceMapEntry, unknown segment:", a); + }; + a.prototype.Rja = function(a, b, c) { + var d; + d = b ? c.Md : c.Cd; + return (b ? c.Kc : c.$b) <= a && a < d; + }; + a.prototype.qja = function(a, b, d) { + var h; + for (var f = this.aa, g = this.Kb; g;) { + if ((!c.ja(d) || f.pS(d, g.na)) && this.Rja(a, b, g)) return g; + g = g.pe; + } + if (b) + for (var g = Object.keys(this.Kb.children), k = 0; k < g.length; k++) { + h = this.Kb.children[g[k]]; + if ((!c.ja(d) || f.pS(d, h.na)) && this.Rja(a, b, h)) return h; } - } - }; - b.prototype.G6a = function(a, b) { - for (var c = 0; c < b.length && a > b[c];) c += 1; - return c; - }; - b.prototype.shift = function() { - this.Gfa(this.Xb[0], this.B_(0)); - d.prototype.shift.call(this); - }; - b.prototype.reset = function() { - var a, b; - this.LW = {}; - this.MK = []; - this.NK = []; - this.JW = {}; - this.AV = {}; - a = this.iV; - for (b in a) - if (a.hasOwnProperty(b)) { - for (var c = this.JW, f = b, p, k = void 0, u = Array(k), k = p = a[b].length + 1, v = 0; v < k; v++) { - u[v] = Array(p); - for (var n = 0; n < p; n++) u[v][n] = 0; + }; + a.prototype.pZ = function(a, b) { + var c, d, f, g, k; + c = a.na; + d = this.aa.sk(c); + f = u.RG(d.R, this.aa.R); + g = new m.fM(this, this.xd, a, a.U, c, b); + c = this.aa.$F(g.na, a.U, g, b, f); + k = c.fz; + c = c.Rn; + this.K.n9 && (g.Sa[h.G.VIDEO].pf = c[h.G.VIDEO], g.Sa[h.G.AUDIO].pf = c[h.G.AUDIO]); + d = this.aa.PA(g.Sa, d.ib, a.ea); + g.Sa[h.G.VIDEO].Fh = d[h.G.VIDEO]; + g.Sa[h.G.AUDIO].Fh = d[h.G.AUDIO]; + [h.G.VIDEO, h.G.AUDIO].forEach(function(a) { + var c, d; + c = g.Sa[a]; + d = b.Sa[a]; + a === h.G.VIDEO && (d = d.Ra + b.Jc, g.Jc = d - k[a], g.U = k[a]); + c.Wp(k[a]); + c.gta = c.Ra; + c.eta = c.fg; + }); + this.aa.ska(a, g.Jc); + return g; + }; + a.prototype.jVa = function(a, b) { + var c, d, f; + c = a.qa; + d = this.aa.sk(c.na); + f = u.RG(d.R, this.aa.R); + f = this.aa.$F(a.na, c.U, a, b, f); + b = f.fz; + a.Sa[h.G.AUDIO].pf = f.Rn[h.G.AUDIO]; + c = this.aa.PA(a.Sa, d.ib, c.ea); + a.Sa[h.G.AUDIO].Fh = c[h.G.AUDIO]; + a = a.Sa[h.G.AUDIO]; + a.Wp(b[h.G.AUDIO]); + a.gta = a.Ra; + a.eta = a.fg; + }; + a.prototype.IQa = function(a) { + for (var b = [a.qa.id]; a.pe;) a = a.pe, b.unshift(a.qa.id); + this.WY(a, !0); + }; + a.prototype.WY = function(a, b) { + var d, f, g; + d = this; + f = a.qa; + c.Lc(a.children, function(a) { + a && d.WY(a, b); + }); + a.Sa.forEach(function(a) { + a.Oa.CWa(b); + }); + a.active = !1; + a.Ld(); + g = -1; + this.al.some(function(b, c) { + return b === a ? (g = c, !0) : !1; + }); - 1 !== g ? this.al.splice(g, 1) : this.fa("Unable to find branch:", a, "in branches array"); + this.aa.$Ta(f); + }; + a.prototype.BA = function(a, b) { + var d, g, k, h, m, p; + d = this; + g = b.qa; + b.na !== a.na && this.aa.$ja(a.na); + a.active = !0; + if (this.K.YH && this.Kb.active) { + k = this.Kb.tna(); + if (!c.V(k)) { + h = this.Kb.ea; + this.Kb.OBa(k); + a.Drb(this.Kb.ea - h); } - c[f] = u; - this.LW[b] = { - first: void 0, - Tw: void 0 - }; - this.AV[b] = 0; - } d.prototype.reset.call(this); - }; - f.P = b; - }, function(f, c, a) { - var d, h, l, g, m, p, k, u, v; - - function b(a) { - this.$Ga = a; - } - c = a(278); - d = c.Hwa; - h = c.Fwa; - l = a(277).Gwa; - g = a(276); - m = a(275); - p = a(177); - k = a(273); - u = a(509); - v = a(508); - b.prototype.constructor = b; - b.prototype.create = function(a, b) { - var c, f, r, n; - f = this.$Ga[a]; - r = b[a]; - n = {}; - f && Object.keys(f).forEach(function(a) { - n[a] = f[a]; - }); - r && Object.keys(r).forEach(function(a) { - n[a] = r[a]; - }); - switch (n.type) { - case "slidingwindow": - c = new l(n.mw); - break; - case "discontiguous-ewma": - c = new h(n.mw, n.wt); - break; - case "iqr": - c = new g(n.mx, n.mn, n.bw, n.iv); - break; - case "tdigest": - c = new m(n); - break; - case "discrete-ewma": - c = new d(n.hl, n["in"]); - break; - case "tdigest-history": - c = new p(n); - break; - case "iqr-history": - c = new k(n); - break; - case "avtp": - c = new v(); - break; - case "entropy": - c = new u(n); - } - c && (c.type = n.type); - return c; - }; - f.P = b; - }, function(f, c, a) { - function b(a) { - this.data = a; - this.right = this.left = null; - } - - function d(a) { - this.Qc = null; - this.Gi = a; - this.size = 0; - } - c = a(274); - b.prototype.Ae = function(a) { - return a ? this.right : this.left; - }; - b.prototype.Zk = function(a, b) { - a ? this.right = b : this.left = b; - }; - d.prototype = new c(); - d.prototype.jA = function(a) { - if (null === this.Qc) return this.Qc = new b(a), this.size++, !0; - for (var c = 0, d = null, h = this.Qc;;) { - if (null === h) return h = new b(a), d.Zk(c, h), ret = !0, this.size++, !0; - if (0 === this.Gi(h.data, a)) return !1; - c = 0 > this.Gi(h.data, a); - d = h; - h = h.Ae(c); - } - }; - d.prototype.remove = function(a) { - var c, d, h, u, k; - if (null === this.Qc) return !1; - c = new b(void 0); - d = c; - d.right = this.Qc; - for (var h = null, f = null, k = 1; null !== d.Ae(k);) { - h = d; - d = d.Ae(k); - u = this.Gi(a, d.data); - k = 0 < u; - 0 === u && (f = d); - } - return null !== f ? (f.data = d.data, h.Zk(h.right === d, d.Ae(null === d.left)), this.Qc = c.right, this.size--, !0) : !1; - }; - f.P = d; - }, function(f, c, a) { - function b(a) { - this.data = a; - this.right = this.left = null; - this.red = !0; - } - - function d(a) { - this.Qc = null; - this.Gi = a; - this.size = 0; - } - - function h(a) { - return null !== a && a.red; + } + a.Sa.forEach(function(a) { + a.UG(); + }); + m = f.time.da(); + p = {}; + c.Lc(b.children, function(b) { + b && (b.Oc && (b.Oc.Zd = b.Sa.map(function(a) { + return a.fu.bf; + }), b.Oc.I4a = m - b.Oc.jS, b.Oc.jS = void 0, p[b.qa.id] = b.Oc), b.qa.id !== a.qa.id && d.WY(b)); + }); + b.children = Object.create(null); + b.children[a.qa.id] = a; + b.IA = void 0; + this.Xza(a); + this.aa.aUa(a.qa, p); + 1 < Object.keys(g.zj).length && a.KB(); + }; + a.prototype.LRa = function(a) { + var b; + b = this; + 0 !== a.Sa.length && (a.Sa.forEach(function(a) { + a.Oa.reset(); + a.rE = void 0; + a.active && (b.Rb("Destroying active pipeline!"), b.aa.jBb(f.time.da())); + }), a.Sa = [], a.Ld()); + }; + a.prototype.bRa = function(a) { + var b, c; + if (a) { + b = f.time.da(); + c = a.bq[0]; + c && void 0 === c.zQ ? c.zQ = b - c.requestTime : c || (this.fa("missing metrics for branch:", a.qa.id), c = { + bV: a.qa.id, + DU: !0, + zQ: 0, + Oc: {} + }, a.bq.unshift(c)); + void 0 === c.startTime && (c.startTime = b); + } + }; + a.prototype.cSa = function(a, d) { + var f, g, h, m; + b(0 <= a); + for (var k in this.vj) { + h = this.vj[k]; + if (this.aa.pS(h.na, d)) { + if (h.U <= a && (c.V(h.ea) || a < h.ea)) return h; + m = Math.min(Math.abs(a - h.U), Math.abs(a - h.ea)); + if (c.V(f) || m < f) f = m, g = h; + } + } + return g; + }; + a.prototype.oZ = function(a, b, c, d, f, g, k, h, m) { + b = new l.cPa(a, b, c, d, f, g, k, h, m); + return this.vj[a] = b; + }; + a.prototype.xUa = function(a, b) { + var d, f, g; + d = this; + this.Zj = void 0; + this.cP = []; + f = null; + g = null; + c.Lc(a.segments, function(a, k) { + var h, m, p, l, r, u; + h = a.startTimeMs; + m = a.endTimeMs; + p = {}; + c.Lc(a.next, function(b, c) { + p[c] = { + weight: b.weight || 0, + OIb: b.transitionHint || a.transitionHint, + a5a: "number" === typeof b.earliestSkipRequestOffset ? b.earliestSkipRequestOffset : a.earliestSkipRequestOffset + }; + }); + r = d.Aja(p); + "number" === typeof r && (l = h + r); + u = a.defaultNext; + c.V(u) && (u = Object.keys(p)[0]); + r = c.V(u); + l = d.oZ(k, 0, h, m, u, p, r, l, a.transitionDelayZones); + h <= b && (b < m || c.V(m)) ? d.Zj = l : h > b && (!f || h < g) && (f = k, g = h); + r && d.cP.push(l); + }); + this.Zj || (this.Zj = f ? this.vj[f] : this.vj[a.initialSegment]); + }; + a.prototype.Aja = function(a) { + var b, d; + d = 0; + c.Lc(a, function(a) { + var c, f; + c = a.weight || 0; + d += 0 < c ? 1 : 0; + f = a.earliestSkipRequestOffset; + 0 < c && a.transitionHint === h.AOa.xFa && "number" === typeof f && (void 0 === b || b > f) && (b = f); + }); + return 1 < d && b; + }; + return a; + }(); + g.M = d; + }, function(g) { + function d(a, b, d) { + var c, g; + c = []; + d.forEach(function(a) { + c.push(a[b].Z); + }); + d = c.filter(function(b) { + return b <= a; + }); + 0 < d.length ? (d = d[d.length - 1], g = c.lastIndexOf(d)) : (d = c[0], g = 0); + return { + Zm: d, + Fd: g + }; } - function l(a, b) { - var c; - c = a.Ae(!b); - a.Zk(!b, c.Ae(b)); - c.Zk(b, a); - a.red = !0; - c.red = !1; - return c; + function a(a, b, d) { + b = Math.min(a.length - 1, b); + b = Math.max(0, b); + return a[b] * d * 1 / 8; } - function g(a, b) { - a.Zk(!b, l(a.Ae(!b), !b)); - return l(a, b); + function b(a, b, d, f, g) { + var c, k, h, p, l, n; + c = a.mg; + k = d + c.U; + d = a.Mj[c.VI]; + a = a.N0; + h = { + KL: !0, + waitUntil: void 0, + bJ: !1 + }; + p = d.filter(function(a) { + return a && a.U <= k && a.U + a.duration > k; + })[0]; + if (void 0 === p) return { + bJ: !0 + }; + l = g - 1 - (p.index - 1); + f = c.ML + f; + n = 0; + n = p.index < c.ng ? n + d.slice(c.Bs, p.index).reduce(function(a, b) { + return a + b.Z; + }, 0) : n + c.ML; + n = n + b.slice(c.ng, p.index).reduce(function(a, b) { + return a + b.Zm; + }, 0); + f -= n; + if (l >= a.zJ || f >= a.KE) + for (h.KL = !1, p = p.index; p < g && (l >= a.zJ || f >= a.KE);) h.waitUntil = d[p].U + d[p].duration - c.U, f = p < c.ng ? f - d[p].Z : f - b[p].Zm, --l, p += 1; + return h; } - c = a(274); - b.prototype.Ae = function(a) { - return a ? this.right : this.left; - }; - b.prototype.Zk = function(a, b) { - a ? this.right = b : this.left = b; - }; - d.prototype = new c(); - d.prototype.jA = function(a) { - var c, d, f, m, k, n, q, x, y; - c = !1; - if (null === this.Qc) this.Qc = new b(a), c = !0, this.size++; - else { - d = new b(void 0); - f = 0; - m = 0; - k = null; - n = d; - q = null; - x = this.Qc; - for (n.right = this.Qc;;) { - null === x ? (x = new b(a), q.Zk(f, x), c = !0, this.size++) : h(x.left) && h(x.right) && (x.red = !0, x.left.red = !1, x.right.red = !1); - if (h(x) && h(q)) { - y = n.right === k; - x === q.Ae(m) ? n.Zk(y, l(k, !m)) : n.Zk(y, g(k, !m)); + g.M = { + Z4: function(c) { + var q, w, t, z, E, P, F, la, N, O, Y, U, ga; + for (var g, k = c.mg, f = c.nk, p = f.Cj, m = c.Mj, l = !0, u = [], n, v = p = Math.min(f.Ep, p); v >= k.ng; v--) { + g = c.Mj[0][v].U - c.mg.U; + v < p && (g = Math.min(u[v + 1].startTime, g)); + f = m[0][v].Z; + n = k.au * m[0][v].duration * 1 / 8; + a: { + q = void 0;E = f + n;n = c.zo;P = k.Um;F = n.trace;la = 1 * n.ik;w = g + P - n.timestamp;t = Math.floor(1 * w / la);z = 0 + (w - t * la) / la * a(F, t, la); + if (z >= E) q = w - 1 * E / z * (w - t * la); + else + for (w = t; z < E;) { + --w; + if (0 > w) { + q = -1; + break a; + } + t = a(F, w, la); + if (z + t >= E) { + q = 1 * (E - z) / t * la; + q = (w + 1) * la - q; + break; + } + z += t; + } + q = q + n.timestamp - P; } - y = this.Gi(x.data, a); - if (0 === y) break; - m = f; - f = 0 > y; - null !== k && (n = k); - k = q; - q = x; - x = x.Ae(f); - } - this.Qc = d.right; - } - this.Qc.red = !1; - return c; - }; - d.prototype.remove = function(a) { - var c, d, q, f, x, n, y; - if (null === this.Qc) return !1; - c = new b(void 0); - d = c; - d.right = this.Qc; - for (var f = null, m, k = null, n = 1; null !== d.Ae(n);) { - q = n; - m = f; - f = d; - d = d.Ae(n); - x = this.Gi(a, d.data); - n = 0 < x; - 0 === x && (k = d); - if (!h(d) && !h(d.Ae(n))) - if (h(d.Ae(!n))) m = l(d, n), f.Zk(q, m), f = m; - else if (!h(d.Ae(!n)) && (x = f.Ae(!q), null !== x)) - if (h(x.Ae(!q)) || h(x.Ae(q))) { - y = m.right === f; - h(x.Ae(q)) ? m.Zk(y, g(f, q)) : h(x.Ae(!q)) && m.Zk(y, l(f, q)); - q = m.Ae(y); - q.red = !0; - d.red = !0; - q.left.red = !1; - q.right.red = !1; - } else f.red = !1, x.red = !0, d.red = !0; + if (0 > q) { + l = !1; + break; + } + u[v] = { + startTime: q, + endTime: g, + pQ: g, + Zm: f, + Fd: 0 + }; + } + g = { + hi: l, + Yp: u, + zp: !1, + kv: 0 === u.length + }; + if (!1 === g.hi || !0 === g.kv) return g; + a: { + k = c.mg;p = c.nk;m = p.Cj;l = c.Mj;f = u = 0;g = g.Yp;q = v = 0;m = Math.min(p.Ep, m); + for (P = k.ng; P <= m; P++) { + z = g[P]; + E = z.Fd; + n = l[E][P].duration; + la = P === k.ng ? 0 : g[P - 1].endTime; + E = b(c, g, la, u, P); + if (E.bJ) { + g = { + hi: !1, + zp: !0 + }; + break a; + } + E.KL || (la = E.waitUntil); + t = z.pQ; + O = c.zo; + N = k.Um; + z = 0; + E = O.trace; + F = 1 * O.ik; + w = Math.max(0, la + N - O.timestamp); + O = t + N - O.timestamp; + if (!(la >= t)) { + Y = Math.max(0, Math.floor(1 * w / F)); + U = 1 * O / F; + if (Y === Math.floor(U)) z += (O - w) / F * a(E, Y, F); + else + for (U = Math.ceil(U), N = Y, t = U, Y * F < w && (N++, z += (Y * F + F - w) / F * a(E, Y, F)), U * F > O && (z += (O - t * F) / F * a(E, U, F), t--), w = N; w <= t; w++) z += a(E, w, F); + } + F = k.au * n * 1 / 8; + f += F; + E = d(z - F, P, l); + z = E.Zm; + E = E.Fd; + F = z + F; + N = c.zo; + t = w = 0; + O = N.trace; + U = Math.max(0, la + k.Um - N.timestamp); + N = 1 * N.ik; + ga = Y = Math.max(0, Math.floor(1 * U / N)); + for (ga * N < U && (Y += 1, U = ga * N + N - U, ga = U / N * a(O, ga, N), w = F - t < ga ? w + (F - t) / ga * 1 * U : w + U, t += ga); t < F;) U = a(O, Y, N), w = F - t < U ? w + (F - t) / U * 1 * N : w + N, t += U, Y += 1; + F = w; + g[P].startTime = la; + g[P].endTime = la + F; + g[P].Zm = z; + g[P].Fd = E; + P <= p.Cj && (u += z, q += n, v += n * c.bc[E].O); + } + g = { + hi: !0, + zp: !1, + Yp: g, + s4a: 0 < q ? 1 * v / q : 0, + G2: q, + F2: u, + E2: f + }; + } + return g; } - null !== k && (k.data = d.data, f.Zk(f.right === d, d.Ae(null === d.left)), this.size--); - this.Qc = c.right; - null !== this.Qc && (this.Qc.red = !1); - return null !== k; - }; - f.P = d; - }, function(f, c, a) { - f.P = { - XDa: a(512), - Mdb: a(511) }; - }, function(f) { - function c(a) { - this.ty = a; - this.Zb = 0; - this.Py = null; + }, function(g, d, a) { + function b(a, b) { + void 0 === a && (a = []); + void 0 === b && (b = c); + this.data = a; + this.length = this.data.length; + this.compare = b; + if (0 < this.length) + for (a = (this.length >> 1) - 1; 0 <= a; a--) this.fja(a); } - c.prototype.add = function(a, b, c) { - null !== this.Py && b > this.Py && (this.Zb += b - this.Py, this.Py = null); - this.ty.add(a, b - this.Zb, c - this.Zb, this.Zb); - }; - c.prototype.stop = function(a) { - null === this.Py && (this.Py = a); - }; - c.prototype.I3 = function(a, b) { - return this.ty.I3(a, b); - }; - c.prototype.get = function() { - return this.ty.get(); - }; - c.prototype.reset = function() { - this.ty.reset(); - }; - c.prototype.toString = function() { - return this.ty.toString(); - }; - f.P = c; - }, function(f) { - function c(a, b, c) { - this.Uy = a; - this.wg = Math.floor((a + b - 1) / b); - this.Mb = b; - this.WJa = c; - this.reset(); + + function c(a, b) { + return a < b ? -1 : a > b ? 1 : 0; } - c.prototype.shift = function() { - this.Xb.shift(); - this.Uu.shift(); + a(14); + b.prototype.constructor = b; + b.prototype.push = function(a) { + this.data.push(a); + this.length++; + this.kWa(this.length - 1); }; - c.prototype.update = function(a, b) { - this.Xb[a] += b; + b.prototype.pop = function() { + var a, b; + if (0 !== this.length) { + a = this.data[0]; + b = this.data.pop(); + this.length--; + 0 < this.length && (this.data[0] = b, this.fja(0)); + return a; + } }; - c.prototype.push = function(a) { - this.Xb.push(0); - this.Uu.push(a ? a : 0); - this.ya += this.Mb; + b.prototype.ED = function() { + return this.data[0]; }; - c.prototype.add = function(a, b, c, h) { - var d, g; - if (null === this.ya) { - d = Math.max(Math.floor((c - b + this.Mb - 1) / this.Mb), 1); - for (this.ya = b; this.Xb.length < d;) this.push(h); - } - for (; this.ya < c;) - if (this.push(h), this.WJa) - for (; 1 < this.Xb.length && c + h - (this.ya - this.Mb * this.Xb.length + this.Uu[0]) > this.Uy;) this.shift(); - else this.Xb.length > this.wg && this.shift(); - if (b > this.ya - this.Mb) this.update(this.Xb.length - 1, a); - else if (b == c) h = this.Xb.length - Math.max(Math.ceil((this.ya - c) / this.Mb), 1), 0 <= h && this.update(h, a); - else - for (h = 1; h <= this.Xb.length; ++h) { - d = this.ya - h * this.Mb; - g = d + this.Mb; - if (!(d > c)) { - if (g < b) break; - this.update(this.Xb.length - h, Math.round(a * (Math.min(g, c) - Math.max(d, b)) / (c - b))); - } - } - for (; this.Xb.length > this.wg;) this.shift(); + b.prototype.kWa = function(a) { + for (var b = this.data, c = this.compare, d = b[a], g, h; 0 < a;) { + g = a - 1 >> 1; + h = b[g]; + if (0 <= c(d, h)) break; + b[a] = h; + a = g; + } + b[a] = d; }; - c.prototype.reset = function() { - this.Xb = []; - this.Uu = []; - this.ya = null; + b.prototype.fja = function(a) { + for (var b = this.data, c = this.compare, d = this.length >> 1, g = b[a], h, l, n; a < d;) { + h = (a << 1) + 1; + l = b[h]; + n = h + 1; + n < this.length && 0 > c(b[n], l) && (h = n, l = b[n]); + if (0 <= c(l, g)) break; + b[a] = l; + a = h; + } + b[a] = g; }; - c.prototype.setInterval = function(a) { - this.wg = Math.floor((a + this.Mb - 1) / this.Mb); + g.M = { + ZNa: b }; - f.P = c; - }, function(f, c, a) { - var h, l, g, m; + }, function(g, d, a) { + var v, q, w, t; function b(a, b, c) { - h.call(this, a, b, c); + this.Pma = this.BRa(a, b, c); } - function d(a, c) { - l.call(this, new b(a, c, !1)); - } - h = a(515); - l = a(514); - g = a(35).xWa; - m = a(35).bZa; - b.prototype = Object.create(h.prototype); - b.prototype.ta = function() { - return Math.floor(8 * g(this.Xb) / this.Mb); - }; - b.prototype.cg = function() { - return Math.floor(64 * m(this.Xb) / (this.Mb * this.Mb)); - }; - b.prototype.get = function() { - return { - ta: this.ta(), - cg: this.cg(), - llb: this.Xb.length - }; - }; - b.prototype.toString = function() { - return "bsw(" + this.Uy + "," + this.Mb + "," + this.wg + ")"; - }; - d.prototype = Object.create(l.prototype); - d.prototype.setInterval = function(a) { - this.ty.setInterval(a); - }; - f.P = d; - }, function(f, c, a) { - var d; + function c() {} - function b(a) { - this.Nqa = a; + function h() {} + + function k() {} + + function f(a) { + this.s_a = a; } - d = new(a(9)).Console("ASEJS_XORCiper", "media|asejs"); - b.prototype.constructor = b; - b.prototype.Oqa = function(a) { - var b; - b = this.Nqa; - return b.charCodeAt(a % b.length); - }; - b.prototype.encrypt = function(a) { - var b; - b = ""; - if (void 0 === this.Nqa) d.warn("XORCiper.encrypt is called with undefined secret!"); - else { - for (var c = 0; c < a.length; c++) b += String.fromCharCode(this.Oqa(c) ^ a.charCodeAt(c)); - return encodeURIComponent(b); - } - }; - b.prototype.decrypt = function(a) { - var b; - b = ""; - a = decodeURIComponent(a); - for (var c = 0; c < a.length; c++) b += String.fromCharCode(this.Oqa(c) ^ a.charCodeAt(c)); - return b; - }; - f.P = b; - }, function(f) { - f.P = "function" === typeof Object.create ? function(c, a) { - c.pab = a; - c.prototype = Object.create(a.prototype, { - constructor: { - value: c, - enumerable: !1, - writable: !0, - configurable: !0 - } - }); - } : function(c, a) { - function b() {} - c.pab = a; - b.prototype = a.prototype; - c.prototype = new b(); - c.prototype.constructor = c; - }; - }, function(f) { - f.P = function(c) { - return c && "object" === typeof c && "function" === typeof c.SY && "function" === typeof c.fill && "function" === typeof c.Yrb; - }; - }, function(f, c, a) { - (function(b, d) { - var V, D, S, H; - function h(a, b) { - var d; - d = { - Q4: [], - Th: g - }; - 3 <= arguments.length && (d.depth = arguments[2]); - 4 <= arguments.length && (d.mz = arguments[3]); - x(b) ? d.o5 = b : b && c.pHa(d, b); - F(d.o5) && (d.o5 = !1); - F(d.depth) && (d.depth = 2); - F(d.mz) && (d.mz = !1); - F(d.Hha) && (d.Hha = !0); - d.mz && (d.Th = f); - return p(d, a, d.depth); - } + function p() {} - function f(a, b) { - return (b = h.cab[b]) ? "\u001b[" + h.mz[b][0] + "m" + a + "\u001b[" + h.mz[b][1] + "m" : a; - } + function m() {} - function g(a) { - return a; - } + function l() {} - function m(a) { - var b; - b = {}; - a.forEach(function(a) { - b[a] = !0; - }); - return b; - } + function u() { + this.A2 = {}; + } - function p(a, b, d) { - var g, h, f, l, r; - if (a.Hha && b && O(b.aG) && b.aG !== c.aG && (!b.constructor || b.constructor.prototype !== b)) { - g = b.aG(d, a); - C(g) || (g = p(a, g, d)); - return g; + function n(a) { + return Array.apply(0, Array(a)).map(function(a, b) { + return b + 1; + }); + } + v = a(14); + d = a(191).Uba; + q = a(348).LPa; + w = a(191).XDa; + new(a(8)).Console("ASEJS_QOE_EVAL", "media|asejs"); + t = a(150).bOa || a(150); + b.prototype.constructor = b; + b.prototype.BRa = function(a, b, c) { + v(a < b, "expect min_buffer_sec < max_buffer_sec but got " + a + " and " + b); + v(0 < c, "expect buffer_step_sec > 0. but got " + c); + for (var d = []; a < b; a += c) d.push(a); + d[d.length - 1] < b && d.push(b); + return d; + }; + b.prototype.Pu = function(a) { + return this.sSa(a, this.Pma); + }; + b.prototype.sSa = function(a, b) { + a = this.j4a(a, b); + if (0 === a) throw new c(); + if (a === b.length) throw new h(); + return a; + }; + b.prototype.j4a = function(a, b) { + v(0 < b.length, "expect bins.length > 0 but got " + b.length); + if (a < b[0]) return 0; + if (a >= b[b.length - 1]) return b.length; + for (var c = 1; c < b.length; c++) + if (b[c - 1] <= a && a < b[c]) return c; + v(!1, "expect not coming here in digitize()"); + }; + b.prototype.PR = function() { + return n(this.Pma.length - 1); + }; + c.prototype = Error(); + h.prototype = Error(); + k.prototype = Error(); + f.prototype.constructor = f; + f.prototype.VERSION = "0.5"; + f.prototype.tFa = -20; + f.prototype.sFa = 20; + f.prototype.rFa = void 0; + f.prototype.lFa = new d(void 0); + f.prototype.nFa = 0; + f.prototype.mFa = 1; + f.prototype.wFa = !1; + f.prototype.pFa = !0; + f.prototype.oFa = !0; + f.prototype.uFa = void 0; + f.prototype.jFa = !0; + f.prototype.kFa = 0; + f.prototype.ZD = function(a) { + v(void 0 !== a.iBa, "expect recipe.time_varying_bandwidth !== undefined"); + return this.lVa(this.s_a, a.iBa, void 0 !== a.Kva ? a.Kva : this.tFa, void 0 !== a.jva ? a.jva : this.sFa, void 0 !== a.iva ? a.iva : this.rFa, void 0 !== a.Nma ? a.Nma : this.lFa, void 0 !== a.Spa ? a.Spa : this.nFa, void 0 !== a.Yma ? a.Yma : this.mFa, void 0 !== a.Hob ? a.Hob : this.wFa, void 0 !== a.rab ? a.rab : this.pFa, void 0 !== a.jsa ? a.jsa : this.oFa, void 0 !== a.Xxa ? a.Xxa : this.uFa, void 0 !== a.gma ? a.gma : this.jFa, void 0 !== a.Fma ? a.Fma : this.kFa); + }; + f.prototype.lVa = function(a, d, f, g, r, n, x, y, D, ga, S, T, H, A) { + var E, F, Q, ja, ea, P, O, X, da, nb, ua, hb, Qa, cb, tb, Ta, Ua, Za, Kb, sc; + + function z(a) { + return a[P]; + } + t.u$("dp: "); + v(f <= n.gf, "expect min_buffer_sec <= bgn_buffer_queue.total_remain_sec"); + v(n.gf <= g, "expect bgn_buffer_queue.total_remain_sec <= max_buffer_sec"); + v(f <= x, "expect min_buffer_sec <= end_buffer_sec"); + v(x <= g, "expect end_buffer_sec <= max_buffer_sec"); + void 0 !== r && v(n.ti <= r, "Need bgn_buffer_queue.total_remain_kb <= max_buffer_kb but has got " + n.ti + " and " + r); + E = new b(f, g, y); + y = new u(); + F = 0; + Q = n; + y.put([0, E.Pu(n.gf)], [F, Q, void 0, void 0, d, void 0, void 0, void 0]); + ja = Q = 0; + d = a.lab(); + v(a.MC() == d.length, "expect chunk_map.get_n_epoch() == durations_sec.length"); + P = -1; + for (O in d) { + for (var P = P + 1, U = !0, N = a.zh.map(z), la = E.PR(), Y = 0; Y < la.length; Y++) { + X = la[Y]; + if (y.g6([P, X])) { + ea = y.get([P, X]); + for (var G = ea[0], R = ea[1], ca = ea[4], ba = 0; ba < N.length; ba++) { + d = N[ba]; + t.update("epoch-ibuf-chunk loop"); + n = void 0 !== T ? T(d.pK) : d.pK; + da = ca.jp(); + try { + ea = this.YRa(R, d, da, A); + nb = ea[0]; + ua = ea[1]; + hb = ea[2]; + Qa = ea[3]; + cb = ea[4]; + tb = ea[5]; + } catch (Ja) { + if (Ja instanceof q) continue; + else if (Ja instanceof c) { + Q += 1; + continue; + } else throw Ja; + } + Ta = F = !1; + try { + Ua = E.Pu(Qa.gf); + ga && E.Pu(nb); + S && E.Pu(ua); + if (void 0 !== r) + if (S) { + if (hb.ti > r) throw new k(); + } else if (Qa.ti > r) throw new k(); + } catch (Ja) { + if (Ja instanceof c) Ua = void 0, Q += 1; + else if (Ja instanceof h) H ? F = !0 : ja += 1, Ua = void 0; + else if (Ja instanceof k) H ? Ta = F = !0 : ja += 1, Ua = void 0; + else throw Ja; + } + try { + if (F && Ta) { + v(void 0 !== r, "expect max_buffer_kb !== undefined"); + Kb = S ? hb.ti - r : Qa.ti - r; + v(0 <= Kb, "pause dlnd kb cannot be -ve but is " + Kb); + try { + Za = Qa.gjb(Kb); + } catch (Ja) { + if (Ja instanceof w) throw new c(); + throw Ja; + } + da.cxa(Za); + cb += Za; + v(Qa.gf < g, "expect cur_buffer_queue.total_remain_sec < max_buffer_sec"); + Ua = E.Pu(Qa.gf); + } else if (F && !Ta) { + Za = S ? hb.gf - g + 1E-8 : Qa.gf - g + 1E-8; + v(0 <= Za, "pause dlnd kb cannot be -ve but is " + Za); + try { + Qa.pxa(Za); + } catch (Ja) { + if (Ja instanceof w) throw new c(); + throw Ja; + } + da.cxa(Za); + cb += Za; + v(f <= Qa.gf, "expect min_buffer_sec <= cur_buffer_queue.total_remain_sec"); + v(Qa.gf < g, "cur_buffer_queue.total_remain_sec < max_buffer_sec"); + Ua = E.Pu(Qa.gf); + } else Za = 0; + } catch (Ja) { + if (Ja instanceof c) Ua = void 0, Q += 1, Za = void 0; + else if (Ja instanceof q) continue; + else throw Ja; + } + F = y.g6([P + 1, Ua]) ? y.get([P + 1, Ua])[0] : -Infinity; + this.pWa(Qa, Ua, d, n, X, P + 1, F, y, G, ba, da, cb, tb, Za) && (U = !1); + } + } } - if (g = k(a, b)) return g; - h = Object.keys(b); - f = m(h); - a.o5 && (h = Object.getOwnPropertyNames(b)); - if (Z(b) && (0 <= h.indexOf("message") || 0 <= h.indexOf("description"))) return u(b); - if (0 === h.length) { - if (O(b)) return a.Th("[Function" + (b.name ? ": " + b.name : "") + "]", "special"); - if (N(b)) return a.Th(RegExp.prototype.toString.call(b), "regexp"); - if (ca(b)) return a.Th(Date.prototype.toString.call(b), "date"); - if (Z(b)) return u(b); + if (U) { + --P; + break; } - g = ""; - l = !1; - r = ["{", "}"]; - G(b) && (l = !0, r = ["[", "]"]); - O(b) && (g = " [Function" + (b.name ? ": " + b.name : "") + "]"); - N(b) && (g = " " + RegExp.prototype.toString.call(b)); - ca(b) && (g = " " + Date.prototype.toUTCString.call(b)); - Z(b) && (g = " " + u(b)); - if (0 === h.length && (!l || 0 == b.length)) return r[0] + g + r[1]; - if (0 > d) return N(b) ? a.Th(RegExp.prototype.toString.call(b), "regexp") : a.Th("[Object]", "special"); - a.Q4.push(b); - h = l ? n(a, b, d, f, h) : h.map(function(c) { - return q(a, b, d, f, c, l); - }); - a.Q4.pop(); - return w(h, g, r); - } - - function k(a, b) { - if (F(b)) return a.Th("undefined", "undefined"); - if (C(b)) return b = "'" + JSON.stringify(b).replace(/^"|"$/g, "").replace(/'/g, "\\'").replace(/\\"/g, '"') + "'", a.Th(b, "string"); - if (y(b)) return a.Th("" + b, "number"); - if (x(b)) return a.Th("" + b, "boolean"); - if (null === b) return a.Th("null", "null"); - } - - function u(a) { - return "[" + Error.prototype.toString.call(a) + "]"; - } - - function n(a, b, c, d, g) { - for (var h = [], f = 0, m = b.length; f < m; ++f) Object.prototype.hasOwnProperty.call(b, String(f)) ? h.push(q(a, b, c, d, String(f), !0)) : h.push(""); - g.forEach(function(g) { - g.match(/^\d+$/) || h.push(q(a, b, c, d, g, !0)); - }); - return h; } - - function q(a, b, c, d, g, h) { - var f, m; - b = Object.getOwnPropertyDescriptor(b, g) || { - value: b[g] - }; - b.get ? m = b.set ? a.Th("[Getter/Setter]", "special") : a.Th("[Getter]", "special") : b.set && (m = a.Th("[Setter]", "special")); - Object.prototype.hasOwnProperty.call(d, g) || (f = "[" + g + "]"); - m || (0 > a.Q4.indexOf(b.value) ? (m = null === c ? p(a, b.value, null) : p(a, b.value, c - 1), -1 < m.indexOf("\n") && (m = h ? m.split("\n").map(function(a) { - return " " + a; - }).join("\n").substr(2) : "\n" + m.split("\n").map(function(a) { - return " " + a; - }).join("\n"))) : m = a.Th("[Circular]", "special")); - if (F(f)) { - if (h && g.match(/^\d+$/)) return m; - f = JSON.stringify("" + g); - f.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/) ? (f = f.substr(1, f.length - 2), f = a.Th(f, "name")) : (f = f.replace(/'/g, "\\'").replace(/\\"/g, '"').replace(/(^"|"$)/g, "'"), f = a.Th(f, "string")); + try { + sc = this.uja(P + 1, E.Pu(x), y, D, E); + } catch (Ja) { + if (Ja instanceof p) try { + sc = this.uja(P + 1, E.Pu(x), y, !D, E); + } catch (tc) { + if (tc instanceof p) { + if (Q > ja) throw new m(); + throw new l(); + } + throw tc; + } else throw Ja; + } + X = sc; + for (f = []; - 1 < P; P--) ea = y.get([P + 1, X]), F = ea[0], Q = ea[1], g = ea[3], r = ea[5], x = ea[6], D = ea[7], ea = ea[2], d = a.zh[ea][P], ga = d.Rr(), n = d.pK, f.unshift({ + Nsa: P, + v5: ea, + info: { + QBb: ga, + pK: n, + XBb: Q.gf, + WBb: Q.ti, + ADb: r, + pa: x, + jHb: D + } + }), X = g; + return f; + }; + f.prototype.uja = function(a, b, c, d, f) { + var g, k; + g = !1; + k = f.PR()[0]; + for (f = f.PR()[f.PR().length - 1];;) { + if (b < k || b > f) { + g = !0; + break; } - return f + ": " + m; - } - - function w(a, b, c) { - var d; - d = 0; - return 60 < a.reduce(function(a, b) { - d++; - 0 <= b.indexOf("\n") && d++; - return a + b.replace(/\u001b\[\d\d?m/g, "").length + 1; - }, 0) ? c[0] + ("" === b ? "" : b + "\n ") + " " + a.join(",\n ") + " " + c[1] : c[0] + b + " " + a.join(", ") + " " + c[1]; - } - - function G(a) { - return Array.isArray(a); - } - - function x(a) { - return "boolean" === typeof a; - } - - function y(a) { - return "number" === typeof a; + if (c.g6([a, b])) break; + else b = d ? b - 1 : b + 1; } - - function C(a) { - return "string" === typeof a; + if (g) throw new p(); + return b; + }; + f.prototype.pWa = function(a, b, c, d, f, g, k, h, m, p, l, r, u, n) { + c = m + d * c.Xm; + return void 0 !== b && c > k ? (h.put([g, b], [c, a, p, f, l, r, u, n]), !0) : !1; + }; + f.prototype.YRa = function(a, b, d, f) { + var g, k, h; + f = (b.Rr() + f) * b.Xm; + d = d.D4a(f); + f /= d; + g = a.gf - d; + k = a.gf + b.Xm; + h = a.jp(); + h.add(b, void 0); + a = a.jp(); + a.add(b, void 0); + try { + a.pxa(d); + } catch (Y) { + if (Y instanceof w) throw new c(); + throw Y; } - - function F(a) { - return void 0 === a; + return [g, k, h, a, d, f]; + }; + p.prototype = Error(); + m.prototype = new p(); + l.prototype = new p(); + u.prototype = { + Maa: function(a) { + return a.join(","); + }, + put: function(a, b) { + this.A2[this.Maa(a)] = b; + }, + get: function(a) { + return this.A2[this.Maa(a)]; + }, + g6: function(a) { + return this.Maa(a) in this.A2; } + }; + g.M = { + JGa: f, + fub: b, + qtb: c, + rtb: h + }; + }, function(g, d, a) { + var w, t, z, E, P, F, la, N, O, Y; - function N(a) { - return t(a) && "[object RegExp]" === Object.prototype.toString.call(a); + function b(a) { + var b, c, d; + c = a.zo; + b = a.mg; + d = a.nk.ea - b.U; + c.timestamp > b.Um && O.error("expect playSegment.tput.timestamp <= playSegment.startState.playingStartTime but has " + c.timestamp + " and " + b.Um); + a = []; + for (var f, g = c.timestamp, k = 0; k < c.trace.length; k++) g >= b.Um && (a.push(c.trace[k]), f = c.trace[k]), g += c.ik, d -= c.ik; + for (; 0 < d;) a.push(f), d -= c.ik; + b = c.ik; + c = a.length; + if (0 === c) c = []; + else { + for (b = [b / 1E3]; 2 * b.length <= c;) b = b.concat(b); + b.length < c && (b = b.concat(b.slice(0, c - b.length))); + c = b; } + return new P(a, c, !1); + } - function t(a) { - return "object" === typeof a && null !== a; - } + function c(a, b) { + return a.yy < b.yy ? 1 : a.yy > b.yy ? -1 : 0; + } - function ca(a) { - return t(a) && "[object Date]" === Object.prototype.toString.call(a); + function h(a) { + for (var b = a.mg, c = a.nk, d = c.Cj, f = a.Mj, g = !0, k, h = [], m, p = d = Math.min(c.Ep, d); p >= b.ng; p--) { + Y.update("backward step loop"); + k = a.Mj[0][p].U - a.mg.U; + p < d && (w(void 0 !== h[p + 1], "expect solution[(fragIndex + 1)] !== undefined"), k = Math.min(h[p + 1].startTime, k)); + c = f[0][p].Z; + m = b.au * f[0][p].duration * 1 / 8; + m = v(c + m, k, a.zo, b.Um); + if (0 > m) { + g = !1; + break; + } + h[p] = { + startTime: m, + endTime: k, + pQ: k, + Zm: c, + Fd: 0 + }; } + return { + hi: g, + Yp: h, + zp: !1, + kv: 0 === h.length ? !0 : !1 + }; + } - function Z(a) { - return t(a) && ("[object Error]" === Object.prototype.toString.call(a) || a instanceof Error); + function k(a, b) { + var t, E, D, F, P, O, N; + for (var c = a.mg, d = a.nk, f = d.Cj, g = a.Mj, k = 0, h = 0, m = b.Yp, p, l, r = 0, v = 0, x, y, f = Math.min(d.Ep, f), z = c.ng; z <= f; z++) { + Y.update("forward step loop"); + p = m[z]; + b = p.Fd; + x = g[b][z].duration; + y = z === c.ng ? 0 : m[z - 1].endTime; + l = 0; + b = q(a, m, y, k, z); + if (b.bJ) return { + hi: !1, + zp: !0 + }; + b.KL || (l = b.waitUntil - y, y = b.waitUntil); + w(0 <= l, "expect waittime >= 0 but got " + l); + t = p.pQ; + D = a.zo; + E = c.Um; + p = 0; + b = D.trace; + l = 1 * D.ik; + F = Math.max(0, y + E - D.timestamp); + D = t + E - D.timestamp; + if (!(y >= t)) { + P = Math.max(0, Math.floor(1 * F / l)); + O = 1 * D / l; + if (P === Math.floor(O)) p += (D - F) / l * n(b, P, l); + else + for (O = Math.ceil(O), E = P, t = O, P * l < F && (E++, p += (P * l + l - F) / l * n(b, P, l)), O * l > D && (p += (D - t * l) / l * n(b, O, l), t--), F = E; F <= t; F++) p += n(b, F, l); + } + l = c.au * x * 1 / 8; + h += l; + b = u(p - l, z, g); + p = b.Zm; + b = b.Fd; + l = p + l; + E = a.zo; + t = F = 0; + D = E.trace; + O = Math.max(0, y + c.Um - E.timestamp); + E = 1 * E.ik; + N = P = Math.max(0, Math.floor(1 * O / E)); + for (N * E < O && (P += 1, O = N * E + E - O, N = O / E * n(D, N, E), F = l - t < N ? F + (l - t) / N * 1 * O : F + O, t += N); t < l;) Y.update("getDownloadTime"), O = n(D, P, E), F = l - t < O ? F + (l - t) / O * 1 * E : F + E, t += O, P += 1; + l = F; + m[z].startTime = y; + m[z].endTime = y + l; + m[z].Zm = p; + m[z].Fd = b; + z <= d.Cj && (k += p, v += x, r = void 0 != g[b][z].oc ? r + x * g[b][z].oc : r + x * a.bc[b].oc); } + return { + hi: !0, + zp: !1, + Yp: m, + jpa: 0 < v ? 1 * r / v : 0, + G2: v, + F2: k, + E2: h + }; + } - function O(a) { - return "function" === typeof a; - } + function f(a) { + a = a.mg.Y; + for (var b = [], c, d = 0; d < a.length; d++) Y.update("get prebuffered chunks loop"), c = a[d], w(void 0 !== c.oc, "expect frag.vmaf !== undefined"), c = new t(c.Z, c.duration / 1E3, c.oc), b.push(c); + return b; + } - function B(a) { - return 10 > a ? "0" + a.toString(10) : a.toString(10); + function p(a) { + var b, c, d, f; + b = a.Mj; + c = a.mg; + d = a.nk; + f = d.Cj; + a = a.bc; + for (var g = [], k, f = Math.min(d.Ep, f), h = 0; h < b.length; h++) { + for (var d = [], m = c.ng; m <= f; m++) Y.update("get chunk map from play segment"), k = b[h][m], k = new t(k.Z, k.duration / 1E3, void 0 !== k.oc ? k.oc : a[h].oc), d.push(k); + g.push(d); } + return new z(g, !1); + } - function A() { - var a, b; - a = new Date(); - b = [B(a.getHours()), B(a.getMinutes()), B(a.getSeconds())].join(":"); - return [a.getDate(), H[a.getMonth()], b].join(" "); - } - V = /%[sdj%]/g; - c.format = function(a) { - if (!C(a)) { - for (var b = [], c = 0; c < arguments.length; c++) b.push(h(arguments[c])); - return b.join(" "); - } - for (var c = 1, d = arguments, g = d.length, b = String(a).replace(V, function(a) { - if ("%%" === a) return "%"; - if (c >= g) return a; - switch (a) { - case "%s": - return String(d[c++]); - case "%d": - return Number(d[c++]); - case "%j": - try { - return JSON.stringify(d[c++]); - } catch (ua) { - return "[Circular]"; - } - default: - return a; - } - }), f = d[c]; c < g; f = d[++c]) b = null !== f && t(f) ? b + (" " + h(f)) : b + (" " + f); - return b; - }; - c.WSa = function(a, g) { - var h; - if (F(b.xrb)) return function() { - return c.WSa(a, g).apply(this, arguments); - }; - if (!0 === d.vqb) return a; - h = !1; - return function() { - if (!h) { - if (d.ltb) throw Error(g); - d.ptb ? console.trace(g) : console.error(g); - h = !0; - } - return a.apply(this, arguments); - }; - }; - D = {}; - c.ymb = function(a) { - var b; - F(S) && (S = d.DUa.Dhb || ""); - a = a.toUpperCase(); - if (!D[a]) - if (new RegExp("\\b" + a + "\\b", "i").test(S)) { - b = d.$qb; - D[a] = function() { - var d; - d = c.format.apply(c, arguments); - console.error("%s %d: %s", a, b, d); - }; - } else D[a] = function() {}; - return D[a]; - }; - c.aG = h; - h.mz = { - bold: [1, 22], - italic: [3, 23], - underline: [4, 24], - inverse: [7, 27], - white: [37, 39], - grey: [90, 39], - black: [30, 39], - blue: [34, 39], - cyan: [36, 39], - green: [32, 39], - magenta: [35, 39], - red: [31, 39], - yellow: [33, 39] - }; - h.cab = { - special: "cyan", - number: "yellow", - "boolean": "yellow", - undefined: "grey", - "null": "bold", - string: "green", - date: "magenta", - regexp: "red" - }; - c.isArray = G; - c.C_a = x; - c.Ja = function(a) { - return null === a; - }; - c.lpb = function(a) { - return null == a; - }; - c.da = y; - c.oc = C; - c.ppb = function(a) { - return "symbol" === typeof a; - }; - c.S = F; - c.Lla = N; - c.Pd = t; - c.cG = ca; - c.eG = Z; - c.wb = O; - c.Hla = function(a) { - return null === a || "boolean" === typeof a || "number" === typeof a || "string" === typeof a || "symbol" === typeof a || "undefined" === typeof a; - }; - c.isBuffer = a(519); - H = "Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" "); - c.log = function() { - console.log("%s - %s", A(), c.format.apply(c, arguments)); - }; - c.l_a = a(518); - c.pHa = function(a, b) { - if (b && t(b)) - for (var c = Object.keys(b), d = c.length; d--;) a[c[d]] = b[c[d]]; + function m(a, b) { + w(a.MC() >= b.length, "expect chunk_map.get_n_epoch() >= stream_choices.length"); + for (var c = 0, d = 0, f, g, k = 0; k < b.length; k++) Y.update("calculate twvmaf"), w(b[k].Nsa === k, "expect stream_choices[idx].i_epoch === idx"), g = a.zh[b[k].v5][k], f = g.pK, g = g.Xm, c += f * g, d += g; + return { + jpa: c / d, + G2: 1E3 * d }; - }.call(this, a(162), a(280))); - }, function(f, c, a) { - (function() { - var p9u, c, c52; - p9u = 2; - - function b(a, b, d) { - var q9u; - q9u = 2; - while (q9u !== 5) { - switch (q9u) { - case 2: - v7AA.K52(0); - c.call(this, v7AA.o52(a, b), b); - this.config = d; - q9u = 5; - break; - } - } - } - while (p9u !== 13) { - c52 = "RLTPUT"; - c52 += "_ASE"; - c52 += "JS"; - switch (p9u) { - case 9: - b.prototype.g0 = function() { - var C9u; - C9u = 2; - while (C9u !== 1) { - switch (C9u) { - case 2: - return this.get(this.config.Fa.fillS, this.config.Fa.fillHl); - break; - } - } - }; - b.prototype.stop = function(a) { - var v9u; - v9u = 2; - while (v9u !== 1) { - switch (v9u) { - case 2: - c.prototype.stop.call(this, a); - v9u = 1; - break; - } - } - }; - b.prototype.reset = function() { - var u9u; - u9u = 2; - while (u9u !== 1) { - switch (u9u) { - case 4: - c.prototype.reset.call(this); - u9u = 5; - break; - u9u = 1; - break; - case 2: - c.prototype.reset.call(this); - u9u = 1; - break; - } - } - }; - b.prototype.toString = function() { - var L9u, C52; - L9u = 2; - while (L9u !== 1) { - C52 = "r"; - C52 += "ltp"; - C52 += "ut("; - switch (L9u) { - case 4: - return (")" - this.Mb) / ")"; - break; - L9u = 1; - break; - case 2: - return C52 + this.Mb + ")"; - break; - } - } - }; - f.P = b; - p9u = 13; - break; - case 2: - new(a(9)).Console(c52); - c = a(101); - b.prototype = Object.create(c.prototype); - b.prototype.shift = function() { - var M9u; - M9u = 2; - while (M9u !== 1) { - switch (M9u) { - case 2: - c.prototype.shift.call(this); - M9u = 1; - break; - case 4: - c.prototype.shift.call(this); - M9u = 5; - break; - M9u = 1; - break; - } - } - }; - p9u = 9; - break; - } - } - }()); - }, function(f, c, a) { - var b; - b = 0; - f.P = function(c, h) { - var g, f, p, k; + } - function d(a, b) { - return (a["$ASE$order" + k] || 0) - (b["$ASE$order" + k] || 0); - } - g = a(44); - f = this; - p = h ? [h] : []; - k = "$op$" + b++; - g({ - value: c, - addListener: function(a, b) { - a["$ASE$order" + k] = b; - p = p.slice(); - p.push(a); - p.sort(d); - }, - removeListener: function(a) { - var b; - p = p.slice(); - 0 <= (b = p.indexOf(a)) && p.splice(b, 1); - }, - set: function(a, b) { - var c; - if (f.value !== a) { - c = { - oldValue: f.value, - newValue: a - }; - b && g(b, c); - f.value = a; - a = p; - b = a.length; - for (var d = 0; d < b; d++) a[d](c); - } - } - }, f); - }; - }, function(f) { - function c(a, b) { - this.ta = a; - this.cg = b; + function l(a, b, c) { + var d, f; + w(a.MC() >= b.length, "expect chunk_map.get_n_epoch() >= stream_choices.length"); + d = 0; + f = 0; + c = c.mg.au; + for (var g, k = 0; k < b.length; k++) Y.update("calculate Bytes"), w(b[k].Nsa === k, "expect stream_choices[idx].i_epoch === idx"), g = a.zh[b[k].v5][k], d += g.Z, f += c * g.Xm * 1E3 / 8; + return { + F2: d, + E2: f + }; } - c.prototype.G3 = function(a) { - a *= 2; - if (2 <= a) a = -100; - else if (0 >= a) a = 100; - else { - for (var b = 1 > a ? a : 2 - a, c = Math.sqrt(-2 * Math.log(b / 2)), c = -.70711 * ((2.30753 + .27061 * c) / (1 + c * (.99229 + .04481 * c)) - c), f = 0; 2 > f; f++) var l = Math.abs(c), - g = 1 / (1 + l / 2), - l = g * Math.exp(-l * l - 1.26551223 + g * (1.00002368 + g * (.37409196 + g * (.09678418 + g * (-.18628806 + g * (.27886807 + g * (-1.13520398 + g * (1.48851587 + g * (-.82215223 + .17087277 * g))))))))), - l = (0 <= c ? l : 2 - l) - b, - c = c + l / (1.1283791670955126 * Math.exp(-(c * c)) - c * l); - a = 1 > a ? c : -c; - } - return this.ta - Math.sqrt(2 * this.cg) * a; - }; - f.P = c; - }, function(f, c, a) { - var g, m, p, k, u, n; - function b(a) { - var b; - b = a.EV; - this.H = a; - this.qg = m.Pc.HAVE_NOTHING; - this.wy = a.wy; - a = new u(this.wy); - this.YD = a.create("throughput-location-history", b); - this.op = a.create("respconn-location-history", b); - this.gp = a.create("respconn-location-history", b); - this.NL = a.create("throughput-tdigest-history", b); - this.eL = a.create("throughput-iqr-history", b); - this.ya = null; - } - - function d(a, c, d, g, f) { - this.fp = new b(f); - this.Al = []; - this.rIa = p.time.la() - Date.now() % 864E5; - this.cp = null; - this.H = f; - for (a = 0; a < g; ++a) this.Al.push(new b(f)); + function u(a, b, c) { + var d, f; + d = []; + c.forEach(function(a) { + d.push(a[b].Z); + }); + c = d.filter(function(b) { + return b <= a; + }); + 0 < c.length ? (c = c[c.length - 1], f = d.lastIndexOf(c)) : (c = d[0], f = 0); + return { + Zm: c, + Fd: f + }; } - function h(a, b, c) { - return g.has(a, b) ? a[b] : a[b] = c; + function n(a, b, c) { + b = Math.min(a.length - 1, b); + b = Math.max(0, b); + return a[b] * c * 1 / 8; } - function l(a, c) { - var d; - this.H = a; - this.QL = c; - this.EUa(); - this.vD = new b(this.H); - this.CD(); - d = a.pZ; - d && (d = { - $b: m.Pc.nC, - ia: { - ta: parseInt(d, 10), - cg: 0 - }, - he: { - ta: 0, - cg: 0 - }, - Dm: { - ta: 0, - cg: 0 + function v(a, b, c, d) { + var f, g, k, h, m; + f = c.trace; + g = 1 * c.ik; + m = b + d - c.timestamp; + h = Math.floor(1 * m / g); + b = 0 + (m - h * g) / g * n(f, h, g); + if (b >= a) k = m - 1 * a / b * (m - h * g); + else + for (m = h; b < a;) { + Y.update("find download start time"); + --m; + if (0 > m) return -1; + h = n(f, m, g); + if (b + h >= a) { + a = 1 * (a - b) / h * g; + k = (m + 1) * g - a; + break; + } + b += h; } - }, this.get = function() { - return d; - }); + return k + c.timestamp - d; } - g = a(10); - m = a(13); - c = a(30); - p = a(9); - k = c.Axa; - u = a(279).z8; - new p.Console("ASEJS_LOCATION_HISTORY", "media|asejs"); - n = { - $b: m.Pc.HAVE_NOTHING - }; - b.prototype.mv = function(a, b) { - this.qg = b; - this.YD.add(a); - this.NL.add(a); - this.ya = p.time.la(); - }; - b.prototype.zx = function(a, b) { - this.eL.set(a, b); - }; - b.prototype.yp = function(a) { - this.op.add(a); - }; - b.prototype.vp = function(a) { - this.gp.add(a); - }; - b.prototype.ae = function() { - var a, b, c, d, f, h; - a = this.YD.ae(); - b = this.op.ae(); - c = this.gp.ae(); - d = this.eL.ae(); - f = this.NL.ae(); - if (g.Ja(a) && g.Ja(b) && g.Ja(c)) return null; + + function q(a, b, c, d, f) { + var g, k, h, m, p, l; + g = a.mg; + k = c + g.U; + c = a.Mj[g.VI]; + a = a.N0; h = { - c: this.qg, - t: p.time.GG(this.ya) - }; - g.Ja(a) || (h.tp = a); - g.Ja(b) || (h.rt = b); - g.Ja(c) || (h.hrt = c); - g.Ja(d) || (h.iqr = d); - g.Ja(f) || (h.td = f); + KL: !0, + waitUntil: void 0, + bJ: !1 + }; + m = c.filter(function(a) { + return a && a.U <= k && a.U + a.duration > k; + })[0]; + if (void 0 === m) return { + bJ: !0 + }; + p = f - 1 - (m.index - 1); + d = g.ML + d; + l = 0; + l = m.index < g.ng ? l + c.slice(g.Bs, m.index).reduce(function(a, b) { + return a + b.Z; + }, 0) : l + g.ML; + l = l + b.slice(g.ng, m.index).reduce(function(a, b) { + return a + b.Zm; + }, 0); + d -= l; + if (p >= a.zJ || d >= a.KE) + for (h.KL = !1, m = m.index; m < f && (p >= a.zJ || d >= a.KE);) Y.update("check buffer vacancy"), h.waitUntil = c[m].U + c[m].duration - g.U, d = m < g.ng ? d - c[m].Z : d - b[m].Zm, --p, m += 1; + h.$ma = d; + h.YBb = p; return h; + } + w = a(14); + t = a(349).NEa; + z = a(349).OEa; + E = a(675).JGa; + P = a(348).KPa; + F = a(191).Uba; + la = a(674).ZNa; + N = a(230).lja; + O = new(a(8)).Console("ASEJS_QOE_EVAL", "media|asejs"); + Y = a(150).bOa || a(150); + g.M = { + mdb: function(a) { + var b; + b = h(a); + return !1 === b.hi || !0 === b.kv ? b : k(a, b); + }, + Z4: function(a) { + var b, d, f, g, m, p, l, r, u, n, q, x, y, z, t, D; + Y.u$("greedy: "); + d = a.Mj; + b = a.Mj; + f = a.mg; + g = a.nk; + m = g.Cj; + p = a.bc; + m = Math.min(g.Ep, m); + for (x = f.ng; x <= m; x++) { + b[0][x].Bx = b[0][x].Z; + for (q = 1; q < b.length; q++) b[q][x].Bx = b[q][x].Z, b[q - 1][x].Bx === b[q][x].Bx && (b[q][x].Bx = b[q - 1][x].Bx + 1); + q = 0; + f = b[q][x]; + f.yy = Infinity; + f.ef = q; + for (q = 1; q < b.length; q++) f = b[q][x], g = b[q - 1][x], l = 8 * f.Bx / f.duration, r = 8 * g.Bx / g.duration, void 0 !== f.oc ? (u = f.oc, n = g.oc) : (u = p[q].oc, n = p[q - 1].oc), f.yy = (u - n) / (l - r), f.ef = q, w(void 0 !== g.yy && !isNaN(g.yy), "expect fragPrev.margUtil !== undefined && !isNaN(fragPrev.margUtil)"); + } + b = h(a); + if (!1 === b.hi || !0 === b.kv) return b; + m = a.Mj; + f = a.mg; + g = a.nk; + p = g.Cj; + p = Math.min(g.Ep, p); + g = []; + for (f = f.ng; f <= p; f++) g.push(m[1][f]); + for (m = new la(g, c); 0 < m.length;) { + Y.update("upgrade frags"); + p = m.pop(); + f = a; + g = b; + l = p; + r = f.Mj; + u = f.mg; + t = f.nk; + n = t.Cj; + q = !0; + x = JSON.parse(JSON.stringify(g.Yp)); + void 0 !== l.ef && w(x[l.index].Fd + 1 === l.ef, "expect solution[targetFrag.index].selectedStreamIndex + 1 === targetFrag.streamIndex"); + n = Math.min(t.Ep, n); + for (var E = l.index; E >= u.ng; E--) { + D = E === l.index ? x[E].Fd + 1 : x[E].Fd; + t = f.Mj[D][E].U - f.mg.U; + if (E < n) + if (w(void 0 !== x[E + 1], "expect solution[(fragIndex + 1)] !== undefined"), z = x[E + 1].startTime, z < t) t = z; + else if (E !== l.index) break; + z = r[D][E].Z; + y = u.au * r[D][E].duration * 1 / 8; + y = v(z + y, t, f.zo, u.Um); + if (0 > y) { + q = !1; + break; + } + x[E] = { + startTime: y, + endTime: t, + pQ: t, + Zm: z, + Fd: D + }; + } + f = { + hi: q, + Yp: x, + kv: g.kv + }; + !0 === f.hi && (b = f, p.ef + 1 < d.length && m.push(d[p.ef + 1][p.index])); + } + return k(a, b); + }, + dp: function(a) { + var c, d, g, k, r, u; + Y.u$("dp: "); + c = h(a); + if (!1 === c.hi || !0 === c.kv) return c; + d = p(a); + g = new E(d); + k = f(a); + k = { + iBa: b(a), + Fma: a.mg.au, + Kva: 0, + jva: 240, + iva: 8 * a.N0.KE / 1E3, + Yma: .5, + Nma: new F(k), + Spa: 0, + WEb: void 0, + jsa: void 0, + Xxa: void 0, + gma: !0 + }; + g = g.ZD(k); + k = m(d, g); + d = l(d, g, a); + r = []; + u = a.mg.ng; + g.forEach(function(a) { + r[u] = { + Fd: a.v5 + }; + u++; + }); + N(c, k); + N(c, d); + c.Yp = r; + return c; + } }; - b.prototype.qh = function(a) { + }, function(g, d, a) { + var c, h; + + function b() {} + c = a(676); + h = a(673); + b.prototype.constructor = b; + b.prototype.create = function(a) { var b; - b = p.time.now(); - if (!(a && g.has(a, "c") && g.has(a, "t") && g.has(a, "tp") && g.isFinite(a.c) && g.isFinite(a.t)) || 0 > a.c || a.c > m.Pc.nC || a.t > b || !this.YD.qh(a.tp)) return this.qg = m.Pc.HAVE_NOTHING, this.cp = this.ya = null, this.YD.qh(null), this.op.qh(null), this.gp.qh(null), !1; - this.qg = a.c; - this.ya = p.time.EP(a.t); - this.op.qh(g.has(a, "rt") ? a.rt : null); - this.gp.qh(g.has(a, "hrt") ? a.hrt : null); - g.has(a, "iqr") && this.eL.qh(a.iqr); - g.has(a, "td") && this.NL.qh(a.td); - return !0; - }; - b.prototype.get = function() { - var a, b, c, d, f, h; - a = this.H; - if (g.Ja(this.ya)) return n; - b = (p.time.la() - this.ya) / 1E3; - b > a.QHa ? this.qg = m.Pc.HAVE_NOTHING : b > a.rHa && (this.qg = Math.min(this.qg, m.Pc.gr)); - a = this.YD.get(); - c = this.op.get(); - d = this.gp.get(); - f = this.eL.get(); - h = this.NL.get(); - b = { - Cj: b, - $b: this.qg, - ia: a, - he: c, - Dm: d, - Xi: f, - dk: h - }; - a && (b.ktb = k.prototype.G3.bind(a)); - c && (b.jsb = k.prototype.G3.bind(c)); - d && (b.Nob = k.prototype.G3.bind(d)); + switch (a) { + case "htwbr": + b = h.Z4; + break; + case "hvmaftb": + b = c.mdb; + break; + case "hvmafgr": + b = c.Z4; + break; + case "hvmafdp": + b = c.dp; + } return b; }; - b.prototype.time = function() { - return this.ya; - }; - b.prototype.Fr = function() { - this.get(); - p.time.la(); - }; - d.prototype.wl = function() { - return ((p.time.la() - this.rIa) / 1E3 / 3600 / (24 / this.Al.length) | 0) % this.Al.length; + g.M = b; + }, function(g, d, a) { + var c, h; + + function b(a, b, d) { + this.aa = a; + this.W = a.W; + this.Rb = this.W.error.bind(this.W); + this.fa = this.W.warn.bind(this.W); + this.Hb = this.W.trace.bind(this.W); + this.Ua = this.W.log.bind(this.W); + this.PQa = new h(); + this.K = d; + this.DO = []; + this.ck = void 0; + a = d.$R; + c.call(this, a.numB * a.bSizeMs, a.bSizeMs); + } + a(13); + a(8); + c = a(130); + a(350); + h = a(677); + b.prototype = Object.create(c.prototype); + b.prototype.add = function(a, b, d) { + this.ck || (this.ck = b); + c.prototype.add.call(this, a, b, d); }; - d.prototype.ae = function() { + b.prototype.r8a = function() { var a; - a = { - g: this.fp.ae(), - h: this.Al.map(function(a) { - return a.ae(); - }) - }; - g.Ja(this.cp) || (a.f = p.time.GG(this.cp)); - return a; - }; - d.prototype.qh = function(a) { - var b, c; - if (!this.fp.qh(a.g)) return !1; - b = this.Al.length; - c = !1; - this.Al.forEach(function(d, g) { - c = !d.qh(a.h[g * a.h.length / b | 0]) || c; - }); - this.cp = g.has(a, "f") ? p.time.EP(a.f) : null; - return c; - }; - d.prototype.mv = function(a, b) { - this.fp.mv(a, b); - this.Al[this.wl()].mv(a, b); - this.cp = null; - }; - d.prototype.zx = function(a, b) { - this.fp.zx(a, b); - this.Al[this.wl()].zx(a, b); - }; - d.prototype.yp = function(a) { - this.fp.yp(a); - this.Al[this.wl()].yp(a); - }; - d.prototype.vp = function(a) { - this.fp.vp(a); - this.Al[this.wl()].vp(a); - }; - d.prototype.fail = function(a) { - this.cp = a; - }; - d.prototype.get = function() { - var a, b; - if (!g.Ja(this.cp)) { - if ((p.time.la() - this.cp) / 1E3 < this.H.qHa) return { - $b: m.Pc.HAVE_NOTHING, - Xv: !0 - }; - this.cp = null; + if (0 !== this.DO.length) { + a = []; + this.DO.forEach(function(b) { + b && b.yB && a.push(b.Qr()); + }); + return a; } - a = this.Al[this.wl()].get(); - b = this.fp.get(); - a = a.$b >= b.$b ? a : b; - a.Xv = !1; - return a; - }; - d.prototype.time = function() { - return this.fp.time(); - }; - d.prototype.Fr = function(a) { - this.fp.Fr(a + ": global"); - this.Al.forEach(function(b, c, d) { - g.Ja(b.time()) || (c = 24 * c / d.length, b.Fr(a + ": " + ((10 > c ? "0" : "") + c + "00") + "h")); - }); - }; - l.prototype.zda = function(a, b) { - var c; - c = this.H; - a = h(this.zy, a, {}); - return h(a, b, new d(0, 0, 0, c.tea || 4, c)); }; - l.prototype.CD = function() { - var a, b; - a = p.storage.get("lh"); - b = p.storage.get("gh"); - a && this.VD(a); - b && this.oKa(b); + b.prototype.Ld = function() { + this.DO = []; }; - l.prototype.JV = function() { - var a; - a = {}; - g.Kc(this.zy, function(b, c) { - g.Kc(b, function(b, d) { - h(a, c, {})[d] = b.ae(); - }, this); - }, this); + b.prototype.S$a = function() { + var a, b, d; + a = this.get(this.K.$R.fillS); + if (0 === a[0] || null === a[0]) { + a.some(function(a, c) { + if (a) return b = a, d = c, !0; + }); + if (b) + for (var g = 0; g < d; g++) a[g] = b; + } + a = { + trace: a, + timestamp: this.ck, + ik: this.dc + }; + c.prototype.reset.call(this); + this.ck = void 0; return a; }; - l.prototype.oKa = function(a) { - this.vD.qh(a); - }; - l.prototype.VD = function(a) { - var b, c; - b = null; - c = this.H; - g.Kc(a, function(a, f) { - g.Kc(a, function(a, m) { - var l; - l = new d(0, 0, 0, c.tea || 4, c); - l.qh(a) ? (h(this.zy, f, {})[m] = l, b = !0) : g.Ja(b) && (b = !1); - }, this); - }, this); - return g.Ja(b) ? !0 : b; - }; - l.prototype.save = function() { - var a; - a = this.JV(); - p.storage.set("lh", a); - p.storage.set("gh", this.vD.ae()); - this.QL && this.QL.h5(this.vD.ae()); - }; - l.prototype.EUa = function() { - this.zy = {}; - this.uy = this.Vca = ""; - this.Jf = null; - }; - l.prototype.UQ = function(a) { - this.Vca = a; - this.Jf = null; - }; - l.prototype.SQ = function(a) { - this.uy = a; - this.Jf = null; - }; - l.prototype.aL = function() { - g.Ja(this.Jf) && (this.Jf = this.zda(this.Vca, this.uy)); - return this.Jf; - }; - l.prototype.mv = function(a, b) { - this.aL().mv(a, b); - this.vD.mv(a, b); - }; - l.prototype.zx = function(a, b) { - a && a.jh && a.Tf && a.kh && (this.aL().zx(a, b), this.vD.zx(a, b)); - }; - l.prototype.yp = function(a) { - this.aL().yp(a); - }; - l.prototype.vp = function(a) { - this.aL().vp(a); - }; - l.prototype.fail = function(a, b) { - this.zda(a, this.uy).fail(b); - }; - l.prototype.get = function(a, b) { - var c, d, f, h; - a = (a = this.zy[a]) ? a[this.uy] : null; - c = null; - if (a && (c = a.get(), c.$b > m.Pc.HAVE_NOTHING)) return c; - if (!1 === b) return n; - d = c = null; - f = !1; - h = null; - g.Kc(this.zy, function(a) { - g.Kc(a, function(a, b) { - var g; - if (!f || b == this.uy) { - g = a.get(); - g && (!d || d <= g.$b) && (!h || d < g.$b || h < a.time()) && (d = g.$b, f = b == this.uy, h = a.time(), c = g); + b.prototype.Z2 = function(a) { + var b, c, d, g, k, h; + if (a && !a.yB) { + c = a.nk.Eta; + c && (a.l9 = this.h0(a), a.jU = !1); + if ((b = this.S$a()) && b.trace && b.trace.length) { + d = a.mg.Um; + g = b.timestamp; + if (g > d) { + k = b.ik; + h = b.trace[0]; + d = Math.ceil(1 * (g - d) / k); + b.timestamp = g - d * k; + for (g = 0; g < d; g++) b.trace.splice(0, 0, h); } - }, this); - }, this); - return c ? c : n; + b.trace.length && b.trace.pop(); + } + a.zo = b; + b.trace && 0 === b.trace.length || void 0 === b.timestamp || (b = this.AZa(a), a.Kwa = b, c && b && (a.jU = b.hi), a.yB = !0, this.DO.push(a)); + } }; - l.prototype.Fr = function() { - g.Kc(this.zy, function(a, b) { - g.Kc(a, function(a, c) { - a.Fr(b + ":" + c); - }); - }); + b.prototype.AZa = function(a) { + var g, k; + for (var b = this.K.KI, c = { + hi: !1, + zp: !1 + }, d = 0; d < b.length; d++) { + g = b[d]; + k = this.PQa.create(g); + k && (k = k(a), c[g] = k, c.hi = c.hi || k.hi, c.zp = c.zp || k.zp); + } + return c; }; - f.P = l; - }, function(f, c, a) { - f.P = { - kza: a(524), - XAa: a(507), - WAa: a(506), - $fb: a(273), - Djb: a(177), - VEa: a(505) + b.prototype.h0 = function(a) { + var b; + a = a.nk; + b = ""; + 1E3 > a.NL && (b += a.sCa); + 1E3 > a.Q_ && (b = b + ("" !== b ? "," : "") + a.tma); + 1E3 <= a.NL && 1E3 <= a.Q_ && (b = "media"); + return b; }; - }, function(f, c, a) { + g.M = b; + }, function(g, d, a) { (function() { - var Q52, c, h, l, g, m, p, k, u, n, q, w, G, x, y, C; - Q52 = 2; - while (Q52 !== 43) { - var z82 = "m"; - z82 += "edia|as"; - z82 += "ej"; - z82 += "s"; - var E82 = "AS"; - E82 += "E"; - E82 += "J"; - E82 += "S"; - switch (Q52) { - case 3: - g = a(525); - m = g.kza; - p = g.XAa; - k = g.WAa; - Q52 = 6; - break; - case 2: - c = a(10); - h = a(13); - l = a(31).EventEmitter; - Q52 = 3; - break; - case 6: - u = g.VEa; - n = a(504); - q = a(477); - w = a(9); - Q52 = 11; - break; - case 16: - g.error.bind(g); - b.prototype.constructor = b; - Object.defineProperties(b.prototype, { - ej: { - get: function() { - var T82; - T82 = 2; - while (T82 !== 1) { - switch (T82) { - case 2: - return this.Hb; - break; - case 4: - return this.Hb; - break; - T82 = 1; - break; - } - } - } - }, - Lq: { - get: function() { - var X82; - X82 = 2; - while (X82 !== 1) { - switch (X82) { - case 2: - return this.Xea; - break; - case 4: - return this.Xea; - break; - X82 = 1; - break; - } - } - } - }, - wra: { - get: function() { - var Z82; - Z82 = 2; - while (Z82 !== 1) { - switch (Z82) { - case 4: - return this.EW; - break; - Z82 = 1; - break; - case 2: - return this.EW; - break; - } - } - } - } - }); - b.prototype.Xc = function(a, b, c, d, g, f) { - var x82, h; - x82 = 2; - while (x82 !== 19) { - var i82 = "med"; - i82 += "i"; - i82 += "a"; - i82 += "ca"; - i82 += "che"; - var q82 = "cacheE"; - q82 += "v"; - q82 += "ict"; - var m82 = "flushe"; - m82 += "dB"; - m82 += "yt"; - m82 += "es"; - var W82 = "disc"; - W82 += "ard"; - W82 += "edBytes"; - var U82 = "pr"; - U82 += "eb"; - U82 += "uffs"; - U82 += "t"; - U82 += "ats"; - switch (x82) { - case 9: - this.BKa = g; - x82 = 8; - break; - case 8: - G(h); - this.Jf = new m(h, this.QL); - this.Qr = new k(h); - x82 = 14; - break; + var b5u, c, d, k, f, A45, Y45; + b5u = 2; + while (b5u !== 10) { + A45 = "IT"; + A45 += "E_A"; + A45 += "S"; + A45 += "EJ"; + A45 += "S"; + Y45 = "1S"; + Y45 += "IY"; + Y45 += "bZrNJCp9"; + switch (b5u) { + case 14: + b.prototype.ura = function() { + var K5u, a, b, c, r05, C05, X05, H05, I05, W05, P05, R05; + K5u = 2; + while (K5u !== 20) { + r05 = "n"; + r05 += "i"; + r05 += "q"; + r05 += "r"; + C05 = "f"; + C05 += "n"; + C05 += "s"; + X05 = "a"; + X05 += "v"; + X05 += "t"; + X05 += "p"; + H05 = "f"; + H05 += "n"; + H05 += "s"; + I05 = "a"; + I05 += "v"; + I05 += "t"; + I05 += "p"; + W05 = "l"; + W05 += "n"; + W05 += "s"; + P05 = "a"; + P05 += "v"; + P05 += "t"; + P05 += "p"; + R05 = "e"; + R05 += "n"; + R05 += "s"; + switch (K5u) { case 2: - h = this.H; - 0 < h.qq && (a > h.qq && (a = h.qq), b > h.qq && (b = h.qq)); - this.ol = [a, b]; - this.EW = d; - x82 = 9; - break; - case 11: - x82 = h.VB || h.QR ? 10 : 20; - break; - case 10: - b = new n(this, h, c, f), a = function(a) { - var r82; - r82 = 2; - while (r82 !== 1) { - switch (r82) { + a = new f(100); + b = {}; + [{ + XK: R05, + gq: P05 + }, { + XK: W05, + gq: I05 + }, { + XK: H05, + gq: X05 + }, { + XK: C05, + gq: r05 + }].forEach(function(c) { + var P58 = H4DD; + var F5u, d, f, U45, l45, t45, h45, Z45, n05, O05, T05, J05, w05, b05, u05, M05, N05, y05, k05, z05; + F5u = 2; + while (F5u !== 17) { + U45 = "m"; + U45 += "ea"; + U45 += "n"; + l45 = "p"; + l45 += "7"; + l45 += "5"; + t45 = "p"; + t45 += "5"; + t45 += "0"; + h45 = "p"; + h45 += "2"; + h45 += "5"; + Z45 = "l"; + Z45 += "a"; + Z45 += "s"; + Z45 += "t"; + n05 = "s"; + n05 += "t"; + n05 += "d"; + O05 = "m"; + O05 += "e"; + O05 += "a"; + O05 += "n"; + T05 = "s"; + T05 += "t"; + T05 += "d"; + J05 = "m"; + J05 += "e"; + J05 += "a"; + J05 += "n"; + w05 = "m"; + w05 += "e"; + w05 += "a"; + w05 += "n"; + b05 = "s"; + b05 += "t"; + b05 += "d"; + u05 = "p"; + u05 += "5"; + u05 += "0"; + M05 = "p"; + M05 += "2"; + M05 += "5"; + N05 = "p"; + N05 += "7"; + N05 += "5"; + y05 = "p"; + y05 += "5"; + y05 += "0"; + k05 = "n"; + k05 += "i"; + k05 += "q"; + k05 += "r"; + z05 = "s"; + z05 += "t"; + z05 += "d"; + switch (F5u) { case 4: - this.Ha(a.type, a); - r82 = 4; + f = this.Vp[d].get()[c.XK][c.gq]; + f && a.Y_(Number(f)); + F5u = 9; break; - r82 = 1; + case 1: + d = 0; + F5u = 5; break; case 2: - this.Ha(a.type, a); - r82 = 1; + F5u = 1; break; - } - } - }.bind(this), b.addEventListener(U82, a), b.addEventListener(W82, a), b.addEventListener(m82, a), b.addEventListener(q82, a), (h.Ssa || h.Bx) && b.addEventListener(i82, function(a) { - var v82; - v82 = 2; - while (v82 !== 1) { - var N82 = "m"; - N82 += "edia"; - N82 += "c"; - N82 += "ache"; - switch (v82) { - case 4: - this.Ha("", a); - v82 = 4; + case 9: + d++; + F5u = 5; break; - v82 = 1; + case 5: + F5u = d < this.Vp.length ? 4 : 8; break; - case 2: - this.Ha(N82, a); - v82 = 1; + case 11: + P58.e05(0); + b[P58.s05(z05, f)] = a.MZa(); + P58.a05(0); + b[P58.s05(k05, f)] = 0 < b[f + y05] ? (b[f + N05] - b[f + M05]) / b[f + u05] : 0; + P58.a05(0); + b[P58.s05("b", f)] = 0 < b[f + b05] || 0 < b[f + w05] ? (b[f + J05] - b[f + T05]) / (b[f + O05] + b[f + n05]) : 0; + P58.e05(0); + b[P58.D05(Z45, f)] = this.QG(c.gq, a.um[d - 1]); + a.um = []; + F5u = 17; break; - } - } - }.bind(this)), this.uc = b; - x82 = 20; - break; - case 14: - this.Hb = new p(this.Qr, this.Jf, h); - this.Xea = new u(h); - h.PP && !this.jKa && (this.jKa = setInterval(function() { - var B82; - B82 = 2; - while (B82 !== 5) { - switch (B82) { - case 2: - this.Jf.save(); - this.Qr.save(); - B82 = 5; + case 8: + d = a.HC(); + f = c.XK + "-" + c.gq + "-"; + P58.a05(0); + b[P58.D05(h45, f)] = this.QG(c.gq, a.lu(25)); + F5u = 14; + break; + case 14: + P58.a05(0); + b[P58.s05(t45, f)] = this.QG(c.gq, a.lu(50)); + P58.e05(0); + b[P58.s05(l45, f)] = this.QG(c.gq, a.lu(75)); + P58.a05(0); + b[P58.s05(U45, f)] = this.QG(c.gq, a.jna()); + F5u = 11; break; } } - }.bind(this), h.PP)); - x82 = 11; + }, this); + K5u = 3; break; - case 20: - this.Hda = !0; - x82 = 19; + case 14: + b.Boa = c.Boa; + b.a2 = c.a2; + K5u = 12; break; - } - } - }; - b.prototype.Cs = function(a, b, d, g, f, m, l, p) { - var M82; - M82 = 2; - while (M82 !== 4) { - var G82 = "open:"; - G82 += " st"; - G82 += "reamingMan"; - G82 += "ager not initted"; - var H82 = "b"; - H82 += "ra"; - H82 += "n"; - H82 += "chin"; - H82 += "g"; - switch (M82) { - case 1: - return p = p || this.H, this.Hb.reset(), this.Qr.z$a(), this.Xea.reset(), void 0 === m && (m = this.xja(a, b)), c.S(this.EW) && (this.EW = this.ol[h.G.VIDEO] <= p.G2a ? 0 : p.sQ), a && a.choiceMap && H82 === a.choiceMap.type && (f.Qf = !0), a = new q(this, a, b, d, g, f, m, l, p), this.My.push(a), a; + case 3: + c = this.Vp.length; + b.Enb = c; + b.AHb = this.Vp[c - 1].get().dFb; + K5u = 7; break; case 7: - C(""); - M82 = 6; - break; - M82 = 4; + b.Yjb = this.Vp[c - 1].get().t; + c = this.qp(); + K5u = 14; break; - case 5: - C(G82); - M82 = 4; - break; - case 2: - M82 = this.Hda ? 1 : 5; + case 12: + b.GIb = b.a2 - b.Yjb; + b.sFb = 1; + return b; break; } } }; - Q52 = 24; - break; - case 11: - G = a(454); - x = w.Promise; - g = new w.Console(E82, z82); - g.trace.bind(g); - g.log.bind(g); - C = g.warn.bind(g); - Q52 = 16; - break; - case 24: - b.prototype.M1 = function(a, b) { - var S82; - S82 = 2; - while (S82 !== 1) { - switch (S82) { - case 2: - return this.uc && (a = this.uc.M1(a, b)) ? a : !1; - break; + b.prototype.tra = function() { + var G5u, b, d, f, g, d45; + + function a(a, b) { + var T5u, c; + T5u = 2; + while (T5u !== 4) { + switch (T5u) { + case 2: + c = Object.keys(a).map(function(b) { + var W5u; + W5u = 2; + while (W5u !== 1) { + switch (W5u) { + case 4: + return a[b]; + break; + W5u = 1; + break; + case 2: + return a[b]; + break; + } + } + }); + return Object.keys(a).some(function(c) { + var j5u; + j5u = 2; + while (j5u !== 1) { + switch (j5u) { + case 2: + return a[c][0] > a[c][1] || 0 > a[c][0] || 0 > a[c][1] || a[c][0] > b || a[c][1] > b; + break; + } + } + }) || b != [].concat.apply([], c).reduce(function(a, b) { + var h5u; + h5u = 2; + while (h5u !== 1) { + switch (h5u) { + case 4: + return a < b ? a : b; + break; + h5u = 1; + break; + case 2: + return a > b ? a : b; + break; + } + } + }); + break; + } } } - }; - b.prototype.z1a = function(a) { - var Y82; - Y82 = 2; - while (Y82 !== 1) { - switch (Y82) { - case 2: - return this.uc && (a = this.uc.Gma(a)) ? a : !1; + G5u = 2; + while (G5u !== 11) { + d45 = "ge"; + d45 += "tPa"; + d45 += "rams:"; + switch (G5u) { + case 5: + return 0; break; - } - } - }; - b.prototype.nw = function() { - var y82; - y82 = 2; - while (y82 !== 1) { - switch (y82) { - case 2: - return this.uc ? this.uc.nw() : x.resolve([]); + case 3: + G5u = c.V(b) ? 9 : 8; break; - } - } - }; - b.prototype.ZJa = function(a) { - var g82, b; - g82 = 2; - while (g82 !== 3) { - var s82 = "can't find ses"; - s82 += "sion i"; - s82 += "n arr"; - s82 += "ay, mov"; - s82 += "ieId:"; - switch (g82) { - case 2: - this.Hb.UQ(null); - b = this.My.indexOf(a); - c.S(b) ? C(s82, a.xl) : (this.My.splice(b, 1), 0 === this.My.length && this.Qr.K$a(), this.Qr.save(), this.Jf.save()); - g82 = 3; + case 1: + G5u = 2 > this.Vp.length || this.zR() > this.dna || 0 > this.zR() || a(this.mT, this.dna) ? 5 : 4; break; - } - } - }; - b.prototype.yja = function(a) { - var e82, b; - e82 = 2; - while (e82 !== 3) { - switch (e82) { - case 5: - a.spoofedProfile && (b.originalProfile = a.profile); - return b; + case 8: + 0 & k.log(d45, JSON.stringify(b)); + d = this.ura(); + f = 0; + G5u = 14; break; - case 6: - a.spoofedProfile || (b.originalProfile = a.profile); - return b; + case 2: + G5u = 1; break; - e82 = 3; + case 9: + return 0; break; - case 2: - b = { - profile: a.spoofedProfile || a.profile, - VVa: a.max_framerate_value, - UVa: a.max_framerate_scale, - maxWidth: a.maxWidth, - maxHeight: a.maxHeight, - brb: a.pixelAspectX, - crb: a.pixelAspectY, - kz: a.channels, - sampleRate: 48E3 - }; - e82 = 5; + case 4: + b = this.W9a(); + G5u = 3; break; - } - } - }; - b.prototype.xja = function(a, b, c) { - var n82, d; - n82 = 2; - while (n82 !== 3) { - var o82 = "video_t"; - o82 += "rac"; - o82 += "ks"; - var P82 = "audio_t"; - P82 += "rac"; - P82 += "ks"; - var D82 = "aud"; - D82 += "io_"; - D82 += "t"; - D82 += "racks"; - switch (n82) { - case 2: - d = [{}, {}]; - (c === h.G.AUDIO ? [D82] : [P82, o82]).forEach(function(c, g) { - var k82; - k82 = 2; - while (k82 !== 1) { - switch (k82) { + case 14: + g = !Object.keys(d).some(function(a) { + var U5u, c45; + U5u = 2; + while (U5u !== 4) { + c45 = "nu"; + c45 += "mb"; + c45 += "er"; + switch (U5u) { + case 1: + f += (d[a] - b.Fua[a]) / b.Gua[a] * b.Hua[a]; + U5u = 4; + break; case 2: - a[c].some(function(a, c) { - var l82; - l82 = 2; - while (l82 !== 1) { - switch (l82) { - case 2: - return c === b[g] ? (d[g] = y.yja(a), !0) : !1; - break; - } - } - }); - k82 = 1; + U5u = b.Hua.hasOwnProperty(a) && b.Fua.hasOwnProperty(a) && b.Gua.hasOwnProperty(a) && c45 == typeof d[a] ? 1 : 5; + break; + case 5: + return !0; break; } } }); - return d; + f = Math.exp(f); + return 0 < f && f <= b.Jeb && g && 1 < d.Enb ? f : 0; break; } } }; - Q52 = 33; + g.M = b; + Y45; + b5u = 10; + break; + case 2: + c = a(11); + b5u = 5; break; - case 33: - b.prototype.Ksa = function(a) { - var d82; - d82 = 2; - while (d82 !== 1) { - switch (d82) { + case 5: + d = a(8); + k = new d.Console(A45); + f = a(208); + b.prototype.qp = function() { + var q5u, a; + q5u = 2; + while (q5u !== 4) { + switch (q5u) { case 2: - w.UF(a); - d82 = 1; - break; - case 4: - w.UF(a); - d82 = 7; - break; - d82 = 1; + a = d.time.now(); + return { + Boa: new Date(a).getHours(), a2: a + }; break; } } }; - b.prototype.tga = function(a, b) { - var F82; - F82 = 2; - while (F82 !== 1) { - switch (F82) { + b.prototype.zR = function() { + var v5u, a, b; + v5u = 2; + while (v5u !== 7) { + switch (v5u) { case 2: - this.uc && (a = this.uc.$5a(this, a), c.S(b) || a.then(b)); - F82 = 1; + v5u = 1 > this.Vp.length ? 1 : 5; break; - } - } - }; - b.prototype.gY = function() { - var w82; - w82 = 2; - while (w82 !== 1) { - switch (w82) { - case 2: - this.uc && this.uc.flush(); - w82 = 1; + case 1: + return 0; break; - } - } - }; - Q52 = 30; - break; - case 30: - b.prototype.hOa = function() { - var A82; - A82 = 2; - while (A82 !== 1) { - switch (A82) { - case 2: - this.uc && this.uc.fja(); - A82 = 1; + case 3: + a += this.Vp[b].get().HDb.JBb; + v5u = 9; break; - } - } - }; - b.prototype.tM = function() { - var J82; - J82 = 2; - while (J82 !== 1) { - switch (J82) { case 4: - return this.uc ? this.uc.list() : []; + v5u = b < this.Vp.length ? 3 : 8; + break; + case 9: + b++; + v5u = 4; break; - J82 = 1; + case 8: + return a / this.Vp.length; break; - case 2: - return this.uc ? this.uc.list() : []; + case 5: + a = 0, b = 0; + v5u = 4; break; } } }; - b.prototype.sga = function() { - var a82; - a82 = 2; - while (a82 !== 1) { - switch (a82) { + b.prototype.W9a = function() { + var Q5u, f, a, b, c, d; + Q5u = 2; + while (Q5u !== 14) { + switch (Q5u) { case 2: - this.uc && this.uc.ym(); - a82 = 1; + Q5u = 1; break; - } - } - }; - Q52 = 44; - break; - case 44: - f.P = b; - Q52 = 43; - break; - } - } - - function b(b, c) { - var L82, d; - L82 = 2; - while (L82 !== 12) { - var O82 = "DE"; - O82 += "B"; - O82 += "U"; - O82 += "G"; - O82 += ":"; - var t82 = "nf-ase versi"; - t82 += "o"; - t82 += "n:"; - switch (L82) { - case 4: - this.Hda = !1; - this.H = b; - this.My = []; - this.on = this.addEventListener = l.addEventListener; - L82 = 7; - break; - case 2: - d = a(453); - C(t82, d, O82, !1); - L82 = 4; - break; - case 7: - this.removeEventListener = l.removeEventListener; - this.emit = this.Ha = l.Ha; - this.QL = c; - L82 = 13; - break; - case 13: - y = this; - L82 = 12; - break; - } - } - } - }()); - }, function(f) { - f.P = { - JA: ["minInitVideoBitrate", -Infinity], - E2: ["minHCInitVideoBitrate", -Infinity], - CA: ["maxInitVideoBitrate", Infinity], - BG: ["minInitAudioBitrate", -Infinity], - AG: ["minHCInitAudioBitrate", -Infinity], - rG: ["maxInitAudioBitrate", Infinity], - qP: ["minAcceptableVideoBitrate", -Infinity], - tna: ["minAllowedVideoBitrate", -Infinity], - Sma: ["maxAllowedVideoBitrate", Infinity], - una: ["minAllowedVmaf", -Infinity], - Tma: ["maxAllowedVmaf", Infinity], - CG: ["minRequiredBuffer", 3E4], - sP: ["minRequiredAudioBuffer", 0], - Ph: ["minPrebufSize", 5800], - V7a: ["requireDownloadDataAtBuffering", !1], - W7a: ["requireSetupConnectionDuringBuffering", !1], - g4: ["rebufferingFactor", 1], - pq: ["maxBufferingTime", 2E3], - k6: ["useMaxPrebufSize", !0], - EA: ["maxPrebufSize", 4E4], - m2: ["maxRebufSize", Infinity], - BO: ["initialBitrateSelectionCurve", null], - hla: ["initSelectionLowerBound", -Infinity], - ila: ["initSelectionUpperBound", Infinity], - AR: ["throughputPercentForAudio", 15], - QX: ["bandwidthMargin", 0], - SX: ["bandwidthMarginCurve", [{ - m: 20, - b: 15E3 - }, { - m: 17, - b: 3E4 - }, { - m: 10, - b: 6E4 - }, { - m: 5, - b: 12E4 - }]], - vNa: ["bandwidthMarginCurveAudio", { - min: .1676072032, - max: .85, - Mp: 91975.78164233442, - scale: 229505.91382074592, - gamma: 2.185264623558083 - }], - RX: ["bandwidthMarginContinuous", !1], - wNa: ["bandwidthMarginForAudio", !0], - J5: ["switchConfigBasedOnInSessionTput", !0], - NY: ["conservBandwidthMargin", 20], - JE: ["conservBandwidthMarginTputThreshold", 6E3], - OY: ["conservBandwidthMarginCurve", [{ - m: 25, - b: 15E3 - }, { - m: 20, - b: 3E4 - }, { - m: 15, - b: 6E4 - }, { - m: 10, - b: 12E4 - }, { - m: 5, - b: 24E4 - }]], - Ura: ["switchAlgoBasedOnHistIQR", !1], - Tt: ["switchConfigBasedOnThroughputHistory", "iqr"], - l2: ["maxPlayerStateToSwitchConfig", -1], - N1: ["lowEndMarkingCriteria", "iqr"], - AT: ["IQRThreshold", .5], - A0: ["histIQRCalcToUse", "simple"], - Cl: ["bandwidthManifold", { - curves: [{ - min: .05, - max: .82, - Mp: 7E4, - scale: 178E3, - gamma: 1.16 - }, { - min: 0, - max: .03, - Mp: 15E4, - scale: 16E4, - gamma: 3.7 - }], - threshold: 14778, - gamma: 2.1, - niqrcurve: { - min: 1, - max: 1, - center: 2, - scale: 2, - gamma: 1 - }, - filter: "throughput-sw", - niqrfilter: "throughput-iqr", - simpleScaling: !0 - }], - qq: ["maxTotalBufferLevelPerSession", 0], - Pka: ["highWatermarkLevel", 3E4], - nsa: ["toStableThreshold", 3E4], - HR: ["toUnstableThreshold", 0], - t5: ["skipBitrateInUpswitch", !1], - w6: ["watermarkLevelForSkipStart", 8E3], - u0: ["highStreamRetentionWindow", 9E4], - O1: ["lowStreamTransitionWindow", 51E4], - w0: ["highStreamRetentionWindowUp", 5E5], - Q1: ["lowStreamTransitionWindowUp", 1E5], - v0: ["highStreamRetentionWindowDown", 6E5], - P1: ["lowStreamTransitionWindowDown", 0], - t0: ["highStreamInfeasibleBitrateFactor", .5], - ow: ["lowestBufForUpswitch", 9E3], - dP: ["lockPeriodAfterDownswitch", 15E3], - S1: ["lowWatermarkLevel", 15E3], - pw: [ - ["lowestWaterMarkLevel", "lowestWatermarkLevel"], 3E4 - ], - V1: ["lowestWaterMarkLevelBufferRelaxed", !1], - t2: ["mediaRate", 1.5], - p2: ["maxTrailingBufferLen", 15E3], - GX: ["audioBufferTargetAvailableSize", 262144], - r6: ["videoBufferTargetAvailableSize", 1048576], - hna: ["maxVideoTrailingBufferSize", 8388608], - Vma: ["maxAudioTrailingBufferSize", 393216], - zN: ["fastUpswitchFactor", 3], - d_: ["fastDownswitchFactor", 3], - i2: ["maxMediaBufferAllowed", 27E4], - $Q: ["simulatePartialBlocks", !0], - vra: ["simulateBufferFull", !0], - PY: ["considerConnectTime", !0], - LY: ["connectTimeMultiplier", 1], - Ima: ["lowGradeModeEnterThreshold", 12E4], - Jma: ["lowGradeModeExitThreshold", 9E4], - Xma: ["maxDomainFailureWaitDuration", 3E4], - Uma: ["maxAttemptsOnFailure", 18], - Jia: ["exhaustAllLocationsForFailure", !0], - cna: ["maxNetworkErrorsDuringBuffering", 20], - d2: ["maxBufferingTimeAllowedWithNetworkError", 6E4], - xN: ["fastDomainSelectionBwThreshold", 2E3], - R5: ["throughputProbingEnterThreshold", 4E4], - dsa: ["throughputProbingExitThreshold", 34E3], - uma: ["locationProbingTimeout", 1E4], - Via: ["finalLocationSelectionBwThreshold", 1E4], - asa: ["throughputHighConfidenceLevel", .75], - csa: ["throughputLowConfidenceLevel", .4], - E1: ["locationStatisticsUpdateInterval", 6E4], - a1a: ["locationSelectorPersistFailures", !0], - Lz: ["enablePerfBasedLocationSwitch", !1], - y3: ["pipelineScheduleTimeoutMs", 2], - rw: ["maxPartialBuffersAtBufferingStart", 2], - F2: ["minPendingBufferLen", 3E3], - DA: ["maxPendingBufferLen", 6E3], - fP: ["maxActiveRequestsSABCell100", 2], - kP: ["maxPendingBufferLenSABCell100", 500], - o2: ["maxStreamingSkew", 2E3], - P1a: ["maxBufferOccupancyForSkewCheck", Infinity], - pcb: ["useBufferOccupancySkipBack", !1], - k2: ["maxPendingBufferPercentage", 10], - tw: ["maxRequestsInBuffer", 120], - tO: ["headerRequestSize", 4096], - AZa: ["headerCacheEstimateHeaderSize", !1], - Xsa: ["useSidxInfoFromManifestForHeaderRequestSize", !1], - yN: ["fastPlayHeaderRequestSize", 0], - uG: ["maxRequestSize", 0], - D2: ["minBufferLenForHeaderDownloading", 1E4], - G2a: ["minVideoBufferPoolSizeForSkipbackBuffer", 33554432], - sQ: ["reserveForSkipbackBufferMs", 15E3], - h3: ["numExtraFragmentsAllowed", 2], - Pm: ["pipelineEnabled", !0], - rcb: ["usePipelineForBranchedAudio", !0], - qw: ["maxParallelConnections", 3], - xra: ["socketReceiveBufferSize", 0], - KX: ["audioSocketReceiveBufferSize", 32768], - u6: ["videoSocketReceiveBufferSize", 65536], - p0: ["headersSocketReceiveBufferSize", 32768], - MR: ["updatePtsIntervalMs", 1E3], - aY: ["bufferTraceDenominator", 0], - ez: ["bufferLevelNotifyIntervalMs", 2E3], - sia: ["enableAbortTesting", !1], - qfa: ["abortRequestFrequency", 8], - F5: ["streamingStatusIntervalMs", 2E3], - VA: ["prebufferTimeLimit", 6E4], - rP: ["minBufferLevelForTrackSwitch", 2E3], - mUa: ["enablePenaltyForLongConnectTime", !1], - r3: ["penaltyFactorForLongConnectTime", 2], - L1: ["longConnectTimeThreshold", 200], - lX: ["additionalBufferingLongConnectTime", 2E3], - mX: ["additionalBufferingPerFailure", 8E3], - rH: ["rebufferCheckDuration", 6E4], - xia: ["enableLookaheadHints", !1], - Fma: ["lookaheadFragments", 2], - Qn: ["enableOCSideChannel", !0], - K3: ["probeRequestTimeoutMilliseconds", 3E4], - wrb: ["probeRequestConnectTimeoutMilliseconds", 8E3], - PJ: ["OCSCBufferQuantizationConfig", { - lv: 5, - mx: 240 - }], - Gsa: ["updateDrmRequestOnNetworkFailure", !0], - hP: ["maxDiffAudioVideoEndPtsMs", 1E3], - O1a: ["maxAudioFragmentOverlapMs", 80], - QSa: ["deferAseHeaderCache", !1], - SM: ["deferAseScheduling", !1], - Sab: ["timeBeforeEndOfStreamBufferMark", 6E3], - g2: ["maxFastPlayBufferInMs", 2E4], - f2: ["maxFastPlayBitThreshold", 2E8], - C2: ["minAudioMediaRequestSizeBytes", 0], - G2: ["minVideoMediaRequestSizeBytes", 0], - kUa: ["enableMultiFragmentRequest", !1], - VB: [ - ["useHeaderCache", "usehc"], !0 - ], - QR: [ - ["useHeaderCacheData", "usehcd"], !0 - ], - RM: ["defaultHeaderCacheSize", 4], - wZ: ["defaultHeaderCacheDataCount", 4], - xZ: ["defaultHeaderCacheDataPrefetchMs", 0], - n0: ["headerCacheMaxPendingData", 6], - o0: ["headerCachePriorityLimit", 5], - zZa: ["headerCacheAdoptBothAV", !1], - Cna: ["minimumTimeBeforeBranchDecision", 3E3], - H2: ["minimumJustInTimeBufferLevel", 3E3], - wia: ["enableJustInTimeAppends", !1], - jF: ["enableDelayedSeamless", !1], - PNa: ["branchEndPtsIntervalMs", 250], - DLa: ["adaptiveParallelTimeoutMs", 1E3], - Kz: ["enableAdaptiveParallelStreaming", !1], - sTa: ["disableBitrateSelectionOnSingleConnection", !1], - qM: ["bufferThresholdToSwitchToSingleConnMs", 45E3], - $X: ["bufferThresholdToSwitchToParallelConnMs", 35E3], - S2: ["networkFailureResetWaitMs", 2E3], - R2: ["networkFailureAbandonMs", 6E4], - lP: ["maxThrottledNetworkFailures", 5], - zR: ["throttledNetworkFailureThresholdMs", 200], - lm: ["abortUnsentBlocks", !0], - YW: ["abortStreamSelectionPeriod", 2E3], - q2: ["maxUnsentBlocks", 2], - R1: ["lowThroughputThreshold", 400], - YZ: ["excludeSessionWithoutHistoryFromLowThroughputThreshold", !1], - Rab: ["timeAtEachBitrateRoundRobin", 1E4], - p8a: ["roundRobinDirection", "forward"], - gZa: ["hackForHttpsErrorCodes", !1], - $Za: ["httpsConnectErrorAsPerm", !1], - Fna: ["mp4ParsingInNative", !1], - Zd: ["enableManagerDebugTraces", !1], - Oma: ["managerDebugMessageInterval", 1E3], - Nma: ["managerDebugMessageCount", 20], - d3: ["notifyManifestCacheEom", !0], - mF: ["enableUsingHeaderCount", !1], - yra: ["sourceBufferInOrderAppend", !0], - Vm: ["requireAudioStreamToEncompassVideo", !1], - Hfa: ["allowAudioToStreamPastVideo", !1], - nv: ["allowReissueMediaRequestAfterAbort", !1], - TY: ["countGapInBuffer", !1], - qX: ["allowCallToStreamSelector", !1], - ZX: ["bufferThresholdForAbort", 2E4], - kx: ["ase_stream_selector", "optimized"], - Zfa: ["audiostreamSelectorAlgorithm", "selectaudioadaptive"], - L0: ["initBitrateSelectorAlgorithm", "default"], - cY: ["bufferingSelectorAlgorithm", "default"], - qZ: ["ase_ls_failure_simulation", ""], - oZ: ["ase_dump_fragments", !1], - pZ: ["ase_location_history", 0], - rZ: ["ase_throughput", 0], - Nha: ["ase_simulate_verbose", !1], - Y1: ["marginPredictor", "simple"], - ura: ["simplePercentilePredictorPercentile", 25], - sra: ["simplePercentilePredictorCalcToUse", "simple"], - tra: ["simplePercentilePredictorMethod", "simple"], - ocb: ["useBackupUnderflowTimer", !0], - Ctb: ["useManifestDrmHeader", !0], - Dtb: ["useOnlyManifestDrmHeader", !0], - w9: ["IQRBandwidthFactorConfig", { - iur: !0, - minr: 8E3, - maxr: 2E4, - rlaf: 60, - flb: .5, - fup: .85, - fmind: .75, - fmaxd: 1, - fmintp: .25, - fmindp: .75 - }], - b3a: ["netIntrStoreWindow", 36E3], - pqb: ["minNetIntrDuration", 8E3], - rHa: ["fastHistoricBandwidthExpirationTime", 10368E3], - QHa: ["bandwidthExpirationTime", 5184E3], - qHa: ["failureExpirationTime", 86400], - tea: ["historyTimeOfDayGranularity", 4], - nHa: ["expandDownloadTime", !0], - vIa: ["minimumMeasurementTime", 500], - uIa: ["minimumMeasurementBytes", 131072], - OJa: ["throughputMeasurementTimeout", 2E3], - NJa: ["initThroughputMeasureDataSize", 262144], - fIa: ["historicBandwidthUpdateInterval", 2E3], - tIa: ["minimumBufferToStopProbing", 1E4], - Ckb: ["throughputPredictor", "ewma"], - M4: ["secondThroughputEstimator", "slidingwindow"], - Lqa: ["secondThroughputMeasureWindowInMs", 3E5], - Bkb: ["throughputMeasureWindow", 5E3], - Dkb: ["throughputWarmupTime", 5E3], - Akb: ["throughputIQRMeasureWindow", 1E3], - gkb: ["IQRBucketizerWindow", 15E3], - $ma: ["maxIQRSamples", 100], - yna: ["minIQRSamples", 5], - xkb: ["connectTimeHalflife", 10], - qkb: ["responseTimeHalflife", 10], - pkb: ["historicThroughputHalflife", 14400], - okb: ["historicResponseTimeHalflife", 100], - nkb: ["historicHttpResponseTimeHalflife", 100], - O8: ["HistoricalTDigestConfig", { - maxc: 25, - rc: "ewma", - c: .5, - hl: 7200 - }], - $da: ["minReportedNetIntrDuration", 4E3], - zkb: ["throughputBucketMs", 500], - lkb: ["bucketHoltWintersWindow", 2E3], - kHa: ["enableFilters", "throughput-ewma throughput-sw throughput-iqr throughput-tdigest avtp entropy".split(" ")], - EV: ["filterDefinitionOverrides", {}], - ZGa: ["defaultFilter", "throughput-ewma"], - lKa: ["secondaryFilter", "throughput-sw"], - wy: ["defaultFilterDefinitions", { - "throughput-ewma": { - type: "discontiguous-ewma", - mw: 5E3, - wt: 0 - }, - "throughput-sw": { - type: "slidingwindow", - mw: 3E5 - }, - "throughput-iqr": { - type: "iqr", - mx: 100, - mn: 5, - bw: 15E3, - iv: 1E3 - }, - "throughput-iqr-history": { - type: "iqr-history" - }, - "throughput-location-history": { - type: "discrete-ewma", - hl: 14400, - "in": 0 - }, - "respconn-location-history": { - type: "discrete-ewma", - hl: 100, - "in": 0 - }, - "throughput-tdigest": { - type: "tdigest", - maxc: 25, - c: .5, - b: 1E3, - w: 15E3, - mn: 6 - }, - "throughput-tdigest-history": { - type: "tdigest-history", - maxc: 25, - rc: "ewma", - c: .5, - hl: 7200 - }, - "respconn-ewma": { - type: "discrete-ewma", - hl: 10, - "in": 0 - }, - avtp: { - type: "avtp" - }, - entropy: { - type: "entropy", - mw: 2E3, - sw: 3E4, - mins: 1, - "in": "none", - hdl: [150, 230, 352, 539, 825, 1264, 1936, 2966, 4543, 6958], - uhdl: [150, 230, 352, 539, 825, 1264, 1936, 2966, 4543, 6958, 10657, 16322, 25E3] - } - }], - lF: ["enableSessionHistoryReport", !1], - KZ: ["earlyStageEstimatePeriod", 1E4], - fma: ["lateStageEstimatePeriod", 3E4], - jP: ["maxNumSessionHistoryStored", 30], - tP: ["minSessionHistoryDuration", 3E4], - kF: ["enableInitThroughputEstimate", !1], - N0: ["initThroughputPredictor", { - bwThreshold: 4E3, - maxBwPrediction: 1E4, - lrWeights: { - "ens-avtp-p25": .007069755838185646, - "ens-avtp-p50": .0014759203002165067, - "ens-avtp-p75": .0012048710233565575, - "ens-avtp-mean": -.0684842120926241, - "ens-avtp-std": .09646338560636658, - "ens-avtp-niqr": 2.6500395825528322, - "ens-avtp-b": 1669.0650809596475, - "ens-avtp-last": -.004857563751533936, - "lns-avtp-p25": -.0042718366875048215, - "lns-avtp-p50": .004808364661181474, - "lns-avtp-p75": .015617017398377233, - "lns-avtp-mean": -.02620579063568642, - "lns-avtp-std": .04468915565921288, - "lns-avtp-niqr": -4.698146930128107, - "lns-avtp-b": 969.7348807867857, - "lns-avtp-last": .008545871259714845, - "fns-avtp-p25": -.007878093424826744, - "fns-avtp-p50": -.02861210261519133, - "fns-avtp-p75": -.027131434792881215, - "fns-avtp-mean": .059129072786609144, - "fns-avtp-std": -.04936720840108429, - "fns-avtp-niqr": -13.660396894822597, - "fns-avtp-b": -1159.3924447524219, - "fns-avtp-last": .024855300168582624, - "fns-niqr-p25": -131.08190389212535, - "fns-niqr-p50": -17.814966600277362, - "fns-niqr-p75": -1.5193876346035593, - "fns-niqr-mean": .052880316050808646, - "fns-niqr-std": -.04533189874532191, - "fns-niqr-niqr": 6.648137046899443, - "fns-niqr-b": -17.856967037364768, - "fns-niqr-last": .020566941518494242, - sessionCnt: .10494832296661184, - prevHour: 2.551508589545865, - prevMonoTime: -333.029563123041, - currentHour: -2.9659895755462435, - currentMonoTime: 333.02956319680015, - timeSinceLastSession: -333.02956343133275, - intercept: -112330.51405121207 - } - }], - hX: ["addHeaderDataToNetworkMonitor", !0], - y5: ["startMonitorOnLoadStart", !1], - t4: ["reportFailedRequestsToNetworkMonitor", !1], - PP: ["periodicHistoryPersistMs", 0], - DQ: ["saveVideoBitrateMs", 0], - LG: ["needMinimumNetworkConfidence", !0], - VX: ["biasTowardHistoricalThroughput", !1], - h1a: ["logMemoryUsage", !1], - Kka: ["headerCacheTruncateHeaderAfterParsing", !0], - tv: ["audioFragmentDurationMilliseconds", null], - Fx: ["videoFragmentDurationMilliseconds", null], - so: ["probeServerWhenError", !0], - zp: ["allowSwitchback", !0], - Uw: ["probeDetailDenominator", 100], - gP: ["maxDelayToReportFailure", 300], - eE: ["allowParallelStreaming", !1], - k2a: ["mediaPrefetchDisabled", !1], - xna: ["minBufferLevelToAllowPrefetch", 5E3], - Rv: ["editVideoFragments", !1], - Sp: ["editAudioFragments", !1], - L4: ["seamlessAudioProfiles", []], - Zs: ["insertSilentFrames", 0], - R0: ["insertSilentFramesOnExit", void 0], - Q0: ["insertSilentFramesOnEntry", void 0], - EO: ["insertSilentFramesForProfile", void 0], - bUa: ["editCompleteFragments", !0], - I2a: ["minimumAudioFramesPerFragment", 1], - Qfa: ["applyProfileTimestampOffset", !1], - xX: ["applyProfileStreamingOffset", !1], - ZP: ["profileTimestampOffsets", { - "heaac-2-dash": { - 64: { - ticks: -3268, - timescale: 48E3 - }, - 96: { - ticks: -3352, - timescale: 48E3 - } - } - }], - vna: ["minAudioPtsGap", void 0], - jN: ["enablePsd", !1], - S3: ["psdCallFrequency", 6E4], - T3: ["psdReturnToNormal", !1], - lH: ["psdThroughputThresh", 0], - cF: ["discardLastNPsdBins", 0], - Vf: ["psdPredictor", { - numB: 240, - bSizeMs: 1E3, - fillS: "last", - fillHl: 1E3, - bthresh: 100, - freqave: 5, - numfreq: 26, - beta: [-2.57382621685251, 1.00514098612371, -.369357559975733, .00999932810065489, .142934270516382, .162644679552085, -.0566219452189998, .022239120872481, -.0668887810950692, -.179565604901062, -.164944450316777, -.269160823754313, -.353934286812968, .127490861540904, -.30639082364227, -.21647101116447, -.0842995352796247, -.0103329141448779, -.12855537458795, .181738862222313, .263672043403025, .0755588656690725, .400401204107367, -.420677412792809, -1.09035458665828, 1.27111376831522, .561903634898845, -1.17759977644374], - thresh: .22, - tol: 1E-10, - tol2: 1E-4 - }], - kN: ["enableRecordJSBridgePerf", !1], - D9: ["JSBridgeTDigestConfig", { - maxc: 25, - c: .5 - }], - Tp: ["enableRl", !1], - jB: ["rlLogParam", 5], - Fa: ["rlParam", { - numThroughputStats: 1, - numOfChunkQualities: 0, - lookAhead: 5, - numBToFeed: 0, - baseNetwork: [], - qualityFunction: "vmaf-linear", - addChunkQualities: !1, - bufferTimeLimitSecs: 240, - chunkSizeFetchStyle: "horizontal", - addLastBitrate: !1, - numOfChunkSizes: 0, - qualityRewardMultiplier: .001, - fillHl: 1E3, - addNumChunksLeft: !1, - addBufferStats: !0, - convLayerPars: [], - useBitrateMean: !1, - bitrates: [0, .05, .1, .15, .2, .25, .3, .35, .4, .45, .5, .55, .6, .65, .7, .75, .8, .85, .9, .95, 1], - fillS: "average", - useProdSimulation: !0, - lockPeriodAfterDownswitch: 15E3, - takeLog: !1, - addTopBitrate: !1, - addProdOutput: !1, - numB: 100, - convNetwork: [], - epsilon: 0, - discountPolicyMapping: "quadratic", - HERatio: 2.5, - valueNetwork: [{ - b: [.05533123016357422, -.12677599489688873, -.37196388840675354, .43002787232398987, -.3278537392616272, .3157925009727478, .49705439805984497, .3623315989971161, .4049244821071625, .306795597076416, .023460865020751953, -.5374774932861328, -.27872857451438904, -.3958677351474762, -.44132015109062195, -.3485901951789856], - W: [ - [-.02745220810174942, -.09654457122087479], - [.05102335661649704, .20058313012123108], - [.10397858172655106, .03029954433441162], - [.44732457399368286, .1439521312713623], - [-.8370619416236877, -.016037840396165848], - [-.19805389642715454, -.37058570981025696], - [-.7537248134613037, .21142733097076416], - [.00784209556877613, 2.646312350407243E-4], - [.024667738005518913, .05554830655455589], - [-.15302683413028717, -.12483158707618713], - [-.022026509046554565, -.046648088842630386], - [.47357091307640076, -.08255043625831604], - [.2401454746723175, .2645523250102997], - [-1.1895869970321655, .16134504973888397], - [.13846588134765625, .1347809135913849], - [-.8497114777565002, -.02514016069471836] - ] - }, { - b: [.13616295158863068], - W: [ - [-.0059984177350997925, 5.688384044333361E-5, -.31482797861099243, .2679792642593384, -.26990222930908203, .24288281798362732, .33975696563720703, .24208010733127594, .20434308052062988, .17735609412193298, -.005353386979550123, -.2435941994190216, -.3793827295303345, -.5024093389511108, -.18502868711948395, -.25674858689308167] - ] - }], - randomizeAction: !1, - repeatLength: 1, - numChunkOffsets: 0, - useControlAtStart: !0, - qualityAlpha: 1, - policyNetwork: [{ - b: [-.412638783454895, -.3944492042064667, .361627995967865, -.20585310459136963, .15680213272571564, .16230282187461853, .2959774434566498, -.29338908195495605, -.3977995812892914, -.2826499044895172, .2839594781398773, -.378938764333725, -.28052815794944763, .29201599955558777, -.2694973349571228, .32858505845069885], - W: [ - [-.25744718313217163, -.2579941749572754], - [-.3987915813922882, -.3113815188407898], - [.3914099931716919, .1927962452173233], - [-.2907905876636505, -.3993949592113495], - [.3429926633834839, .5154353380203247], - [.46402043104171753, .3750675320625305], - [.3165140151977539, .3362429738044739], - [-.2831599712371826, -.33043336868286133], - [-.3665153682231903, -.36741551756858826], - [-.42878684401512146, -.3090651035308838], - [.21995356678962708, .2324381172657013], - [-.40021345019340515, -.2974157929420471], - [-.3892492949962616, -.21423658728599548], - [.4002467691898346, .4845951199531555], - [-.4312516748905182, -.4456460475921631], - [.30747276544570923, .40754443407058716] - ] - }, { - b: [.1032010167837143, .23244233429431915, -.01785256341099739, .17829757928848267, .03387175127863884, .03424593061208725, .10686955600976944, .11391088366508484, .1236717626452446, .12204533070325851, .09762528538703918, .22837036848068237, .2101789116859436, .1395697444677353, .0755317211151123, .05933607369661331, .020733339712023735, -.2973330318927765, -.5567834973335266, -.7997101545333862, -1.1866400241851807], - W: [ - [-.18243752419948578, -.18205209076404572, .12897171080112457, -.18163728713989258, .18924736976623535, .10615333169698715, -.06378988176584244, -.23385876417160034, -.11631970852613449, -.18195857107639313, .2122160941362381, -.14674511551856995, -.062984399497509, -.03046603314578533, -.042016394436359406, .059213291853666306], - [-.25253725051879883, -.05791608244180679, .22158899903297424, -.1807052493095398, .006767614278942347, .04307352378964424, .1975916475057602, -.2383284568786621, -.05942298099398613, -.1357770562171936, .1037694662809372, -.14311830699443817, .0012564989738166332, .2055424004793167, -.1739828735589981, .28440845012664795], - [-.2820572257041931, -.2243836224079132, -.009474185295403004, -.12801462411880493, .2770399749279022, .13915841281414032, .24947895109653473, -.0901138037443161, -.14535419642925262, -.06771376729011536, .13680143654346466, -.18201519548892975, -.2172870635986328, .11829230934381485, -.108485147356987, .22689661383628845], - [-.35503271222114563, -.0775824636220932, .12027252465486526, -.2573116421699524, .02839498780667782, .07367391139268875, .07984186708927155, -.10638942569494247, -.22296731173992157, -.05553358420729637, .05830622464418411, -.25039055943489075, -.2609282433986664, .08369264751672745, -.05966627597808838, .03639725223183632], - [-.018235042691230774, -.056563250720500946, .11467722803354263, -.059557829052209854, .2816635072231293, .02629885822534561, .03319495543837547, -.2324208915233612, -.21133288741111755, -.22949211299419403, .02839614637196064, -.06933751702308655, -.2568594515323639, .23111720383167267, -.07870880514383316, .14231324195861816], - [-.17236000299453735, -.24168795347213745, .18550589680671692, -.21688313782215118, .08988945186138153, .23491528630256653, -.014212478883564472, -.16345223784446716, -.101213738322258, -.08315055817365646, .3163166046142578, -.128215491771698, -.2556995749473572, .19001033902168274, -.13374188542366028, .23563364148139954], - [-.16922716796398163, -.23347386717796326, .11554708331823349, -.06031706556677818, .00787605531513691, .1717318296432495, .08365252614021301, -.19791926443576813, -.21750250458717346, -.10088957101106644, .07592057436704636, -.2526659071445465, -.16954083740711212, .21436604857444763, -.10623046010732651, .07676853984594345], - [-.07076448202133179, -.21048475801944733, .0519600510597229, -.03461375832557678, .27661260962486267, .19848895072937012, .2243914157152176, -.17512662708759308, -.10555917024612427, -.17998510599136353, .14169420301914215, -.049020566046237946, .02801593765616417, .13342608511447906, -.15784481167793274, .09766186773777008], - [-.14827829599380493, -.05338667333126068, -.014936452731490135, -.14944781363010406, .22573451697826385, .12348072230815887, .11484410613775253, -.004883829038590193, -.047992318868637085, -.1594856232404709, .2568851709365845, -.09031572192907333, -.05706582963466644, -4.983098478987813E-4, -.22049573063850403, .13852019608020782], - [-.13956879079341888, -.2400752156972885, .08272846043109894, -.3206534683704376, .0981164276599884, .12269225716590881, .13008926808834076, -.03977770730853081, -.17421235144138336, -.051229119300842285, -.015088572166860104, -.17017802596092224, .03453931212425232, .1788467913866043, -.2593126893043518, .13894088566303253], - [-.15852025151252747, -.13752885162830353, .18085233867168427, -.026975378394126892, .08118204027414322, .22511836886405945, .1578889936208725, -.11105726659297943, -.17974312603473663, -.045371219515800476, .09727480262517929, -.12441378831863403, .004754172172397375, .1462913453578949, -.20255130529403687, .2307319939136505], - [-.13445983827114105, -.14145679771900177, .12339618057012558, -.028057938441634178, .03399171307682991, .07780994474887848, .22680453956127167, -.10456500202417374, -.03876079246401787, -.24656173586845398, .09278947860002518, -.0888059139251709, -.1322716921567917, .08019872009754181, -.08939266204833984, .23991352319717407], - [-.2594526410102844, -.14361591637134552, .045561034232378006, -.04839532822370529, .11469841748476028, .0423651784658432, .0579223670065403, -.19615131616592407, -.148156076669693, -.061122845858335495, .12850065529346466, -.1314231902360916, -.06075485050678253, .15828271210193634, -.15889498591423035, -.01321683544665575], - [-.1502031683921814, -.18404962122440338, .16521699726581573, -.08913173526525497, .05336243659257889, -.027618568390607834, .11079095304012299, .08470268547534943, -.021151361986994743, -.06379488855600357, .12175280600786209, -.013277744874358177, -.034269627183675766, -.008312849327921867, -.03604540601372719, .12241926044225693], - [-.0744841918349266, -.1421520859003067, .18444211781024933, -.04605941101908684, .11995276063680649, .09755964577198029, .10934597253799438, -.021958131343126297, -.17636388540267944, -.12492060661315918, .07608187943696976, -.08557915687561035, -.2167670875787735, .095750592648983, -.0021581973414868116, -.009261039085686207], - [.06437303125858307, -.05704565346240997, .048856545239686966, -.08741368353366852, .016187647357583046, .1458374559879303, .08231929689645767, -.019222980365157127, -.05964486673474312, -.07991735637187958, .11003319174051285, .026625651866197586, .07264247536659241, -.06023328751325607, -.05094010382890701, .01619056798517704], - [.08831681311130524, -.07976476848125458, -.03673217073082924, -.15939712524414062, -.17922301590442657, -.16756311058998108, .14311327040195465, -.00514716561883688, .18524976074695587, -.011256037279963493, .1348915994167328, .03704274445772171, .04992883652448654, .04108894616365433, -.0028529949486255646, -.007784273941069841], - [.4063608944416046, .5422101020812988, -.5427196621894836, .41301098465919495, -.5999374389648438, -.34260493516921997, -.5859764218330383, .5120940208435059, .5512343645095825, .6822419166564941, -.3864021301269531, .5557493567466736, .4380606710910797, -.5522674918174744, .6156930923461914, -.4743066430091858], - [.785748302936554, .8619656562805176, -.6125167012214661, .5297011137008667, -.7045852541923523, -.7832399606704712, -.5993849635124207, .7085978388786316, .7993820309638977, .9091770052909851, -.6160148978233337, .6583526730537415, .7830554842948914, -.8268464803695679, .7583157420158386, -.7235265374183655], - [1.179926872253418, 1.2110354900360107, -1.0844197273254395, 1.119935393333435, -1.152762532234192, -1.3002325296401978, -1.128269910812378, 1.038150429725647, 1.1494382619857788, 1.1892924308776855, -.9371172189712524, 1.1270517110824585, .8690900802612305, -1.3279619216918945, 1.1718264818191528, -1.1779474020004272], - [1.5185304880142212, 1.5353447198867798, -1.2523194551467896, 1.4043301343917847, -1.6284000873565674, -1.4568737745285034, -1.3200061321258545, 1.1629387140274048, 1.6285243034362793, 1.267655372619629, -1.2686002254486084, 1.607189416885376, 1.225298523902893, -1.4611514806747437, 1.2336887121200562, -1.381975769996643] - ] - }], - rebufferPenalty: 10, - bSizeMs: 2E3, - bandwidthManifold: { - threshold: 6507.88, - filter: "throughput-sw", - simpleScaling: !0, - curves: [{ - max: 1.0054097175598145, - scale: 183973.15740585327, - center: 87446.38562202454, - gamma: 1.767388939857483, - min: .493443101644516 - }, { - max: -.0027726502157747746, - scale: 99630.0995349884, - center: 216892.07553863525, - gamma: 2.908198356628418, - min: 0 - }], - gamma: 1.81668775 - }, - dropoutKeepProb: 1, - estimateType: "factor", - bitrateMapStrategy: "mapping", - addAudioBitrate: !1, - addHighEndSignal: !1, - throughputStatsType: "percentile" - }], - Oab: ["throughputThresholdSelectorParam", 0], - ncb: ["upswitchDuringBufferingFactor", 2], - pMa: ["allowUpswitchDuringBuffering", !1], - kha: ["contentOverrides", void 0], - RY: ["contentProfileOverrides", void 0], - z0: ["hindsightDenominator", 0], - y0: ["hindsightDebugDenominator", 0], - OF: ["hindsightParam", { - numB: Infinity, - bSizeMs: 1E3, - fillS: "last", - fillHl: 1E3 - }], - wX: ["appendMediaRequestOnComplete", !1], - YR: ["waitForDrmToAppendMedia", !1], - s_: ["forceAppendHeadersAfterDrm", !1], - qH: ["reappendRequestsOnSkip", !1], - sZ: ["declareBufferingCompleteAtSegmentEnd", !1], - qG: ["maxActiveRequestsPerSession", void 0], - v1: ["limitAudioDiscountByMaxAudioBitrate", !1], - vX: ["appendFirstHeaderOnComplete", !0], - VH: ["strictBufferCapacityCheck", !1], - az: ["aseReportDenominator", 0], - BX: ["aseReportIntervalMs", 3E5], - d6: ["translateToVp9Draft", !1], - cNa: ["audioProfilesOverride", [{ - profiles: ["ddplus-5.1-dash", "ddplus-5.1hq-dash"], - override: { - maxInitAudioBitrate: 257, - minRequiredAudioBuffer: 7E4 + case 1: + a = this.zR(), b = void 0, c = Object.keys(this.mT), d = 0; + Q5u = 5; + break; + case 4: + f = c[d]; + Q5u = 3; + break; + case 5: + Q5u = d < c.length ? 4 : 7; + break; + case 3: + Q5u = a >= this.mT[f][0] && a <= this.mT[f][1] ? 9 : 8; + break; + case 6: + return { + Hua: this.Z6[b].lrWeights, Fua: this.Z6[b].lrMeans, Gua: this.Z6[b].lrStd, Jeb: this.Keb[b] + }; + break; + case 9: + b = f; + Q5u = 7; + break; + case 8: + d++; + Q5u = 5; + break; + case 7: + Q5u = b ? 6 : 14; + break; + } + } + }; + b.prototype.QG = function(a, b) { + var H5u, v45; + H5u = 2; + while (H5u !== 1) { + v45 = "av"; + v45 += "t"; + v45 += "p"; + switch (H5u) { + case 2: + return v45 == a ? 0 < b ? Math.log(b) : null : b; + break; + } + } + }; + b5u = 14; + break; } - }]], - M5: ["switchableAudioProfilesOverride", []], - fNa: ["audioSwitchConfig", { - upSwitchFactor: 23.7076576, - downSwitchFactor: 9.398858461, - lowestBufForUpswitch: 16E3, - lockPeriodAfterDownswitch: 16E3 - }], - Y1a: ["maxStartingVideoVMAF", 110], - Ana: ["minStartingVideoVMAF", 1], - sfa: ["activateSelectStartingVMAF", !1], - OQ: ["selectStartingVMAFTDigest", -1], - NQ: ["selectStartingVMAFMethod", "fallback"], - Uqa: ["selectStartingVMAFMethodCurve", { - log_p50: [6.0537, -.8612], - log_p40: [5.41, -.7576], - log_p20: [4.22, -.867], - sigmoid_1: [11.0925, -8.0793] - }], - Vqb: ["perFragmentVMAFConfig", { - enabled: !1, - simulatedFallback: !1, - fallbackBound: 12 - }] + } + + function b(a, b) { + var i5u; + i5u = 2; + while (i5u !== 7) { + switch (i5u) { + case 2: + this.config = a; + this.Vp = b; + a = a.initThroughputPredictor; + this.mT = a.modelMap; + this.Z6 = a.lrParams; + this.Keb = a.maxBwPredictionMap; + this.dna = a.bwThreshold; + i5u = 7; + break; + } + } + } + }()); + }, function(g, d, a) { + var b, c; + b = a(193); + c = a(192); + g.M = function(a) { + var l; + for (var d = [], f = a.length, g = 0; g < f; g++) { + d[g] = [0, 0]; + for (var h = 0; h < f; h++) { + l = c.g3(g * h, f); + l = b.multiply([a[h], 0], l); + d[g] = b.add(d[g], l); + } + } + return d; }; - }, function(f, c, a) { - f.P = { - Lv: a(527), - G1a: function(b) { - a(9).UF(b); - return a(526); + }, function(g, d, a) { + var b; + b = a(194).p3; + g.M = { + Qsa: function(a) { + for (var c = [], d = 0; d < a.length; d++) c[d] = [a[d][1], a[d][0]]; + a = b(c); + c = []; + for (d = 0; d < a.length; d++) c[d] = [a[d][1] / a.length, a[d][0] / a.length]; + return c; } }; - }, function(f) { - function c(a, c, h, f) { - a.trace(":", h, ":", f); - c(f); - } + }, function(g, d) { + var b; function a(a) { - this.listeners = []; - this.console = a; + var b; + b = 32; + (a &= -a) && b--; + a & 65535 && (b -= 16); + a & 16711935 && (b -= 8); + a & 252645135 && (b -= 4); + a & 858993459 && (b -= 2); + a & 1431655765 && --b; + return b; } - a.prototype.constructor = a; - a.prototype.addEventListener = function(a, d, h, f) { - h = f ? h.bind(f) : h; - f = !1; - if (a) { - this.console && (h = c.bind(null, this.console, h, d)); - if ("function" === typeof a.addEventListener) f = a.addEventListener(d, h); - else if ("function" === typeof a.addListener) f = a.addListener(d, h); - else throw Error("Emitter does not have a function to add listeners for '" + d + "'"); - this.listeners.push([a, d, h]); - } - return f; - }; - a.prototype.on = a.prototype.addEventListener; - a.prototype.clear = function() { - var a; - a = this.listeners.length; - this.listeners.forEach(function(a) { - var b, c; - b = a[0]; - c = a[1]; - a = a[2]; - "function" === typeof b.removeEventListener ? b.removeEventListener(c, a) : "function" === typeof b.removeListener && b.removeListener(c, a); - }); - this.listeners = []; - this.console && this.console.trace("removed", a, "listener(s)"); + "use restrict"; + d.FIa = 32; + d.ywb = 2147483647; + d.zwb = -2147483648; + d.sign = function(a) { + return (0 < a) - (0 > a); }; - f.P = a; - }, function(f) { - function c(a, c) { + d.abs = function(a) { var b; - if (void 0 === c || "function" !== typeof c || "string" !== typeof a) throw new TypeError("EventEmitter: addEventListener requires a string and a function as arguments"); - if (void 0 === this.uk) return this.uk = {}, this.uk[a] = [c], !0; - b = this.uk[a]; - return void 0 === b ? (this.uk[a] = [c], !0) : 0 > b.indexOf(c) ? (b.push(c), !0) : !1; - } - - function a(a, c) { - a = this.uk ? this.uk[a] : void 0; - if (!a) return !1; - a.forEach(function(a) { - a(c); - }); - return !0; - } - f.P = { - addEventListener: c, - on: c, - removeEventListener: function(a, c) { - var b; - if (void 0 === c || "function" !== typeof c || "string" !== typeof a) throw new TypeError("EventEmitter: removeEventListener requires a string and a function as arguments"); - if (void 0 === this.uk) return !1; - b = this.uk[a]; - if (void 0 === b) return !1; - c = b.indexOf(c); - if (0 > c) return !1; - if (1 === b.length) return delete this.uk[a], !0; - b.splice(c, 1); - return !0; - }, - Ha: a, - emit: a, - removeAllListeners: function(a) { - this.uk && (void 0 === a ? delete this.uk : delete this.uk[a]); - return this; - } + b = a >> 31; + return (a ^ b) - b; }; - }, function(f, c, a) { - var k, u, n, q, w, G, x, y, C, F, t, T, ca, Z, O, B, A; - - function b() {} - - function d() {} - - function h() {} - - function l() {} - - function g() { - return y ? y : "0.0.0.0"; - } - - function m(a, b, c) { - a = t(a, b, c); - this.info = a.info.bind(a); - this.fatal = a.fatal.bind(a); - this.error = a.error.bind(a); - this.warn = a.warn.bind(a); - this.trace = a.trace.bind(a); - this.debug = a.debug.bind(a); - this.log = a.log.bind(a); - } - - function p(a) { - a({ - voa: 0, - dI: 0, - Nka: 0, - Ria: 0 - }); - } - c = a(120); - d.prototype.constructor = d; - d.prototype.set = function(a, b) { - n[a] = b; - q.save(a, b); + d.min = function(a, b) { + return b ^ (a ^ b) & -(a < b); }; - d.prototype.get = function(a, b) { - if (n.hasOwnProperty(a)) return n[a]; - x.trace("key: " + a + ", is not available in storage cache and needs to be retrieved asynchronously"); - q.load(a, function(c) { - c.K ? (n[a] = c.data, b && b(c.data)) : n[a] = void 0; - }); + d.max = function(a, b) { + return a ^ (a ^ b) & -(a < b); }; - d.prototype.remove = function(a) { - q.remove(a); + d.JFb = function(a) { + return !(a & a - 1) && !!a; }; - d.prototype.clear = function() { - x.info("WARNING: Calling unimplemented function Storage.clear()"); + d.log2 = function(a) { + var b, c; + b = (65535 < a) << 4; + a >>>= b; + c = (255 < a) << 3; + a >>>= c; + b |= c; + c = (15 < a) << 2; + a >>>= c; + b |= c; + c = (3 < a) << 1; + return b | c | a >>> c >> 1; }; - d.prototype.dF = c.Rp.dF; - d.prototype.IM = c.Rp.IM.bind(c.Rp); - d.prototype.Yx = "NDA"; - h.prototype.now = function() { - return w(); + d.log10 = function(a) { + return 1E9 <= a ? 9 : 1E8 <= a ? 8 : 1E7 <= a ? 7 : 1E6 <= a ? 6 : 1E5 <= a ? 5 : 1E4 <= a ? 4 : 1E3 <= a ? 3 : 100 <= a ? 2 : 10 <= a ? 1 : 0; }; - h.prototype.la = function() { - return G(); + d.sHb = function(a) { + a -= a >>> 1 & 1431655765; + a = (a & 858993459) + (a >>> 2 & 858993459); + return 16843009 * (a + (a >>> 4) & 252645135) >>> 24; }; - h.prototype.GG = function(a) { - return a + w() - G(); + d.s0a = a; + d.FGb = function(a) { + a += 0 === a; + --a; + a |= a >>> 1; + a |= a >>> 2; + a |= a >>> 4; + a |= a >>> 8; + return (a | a >>> 16) + 1; }; - h.prototype.EP = function(a) { - return a + G() - w(); + d.BHb = function(a) { + a |= a >>> 1; + a |= a >>> 2; + a |= a >>> 4; + a |= a >>> 8; + a |= a >>> 16; + return a - (a >>> 1); }; - c = a(31).EventEmitter; - a(44)(c, l.prototype); - T = function() { - var a; - a = Promise; - a.prototype.fail = Promise.prototype["catch"]; - return a; - }(); - f.P = function(a) { - k = a.Qw; - t = a.Cc; - q = a.storage; - n = a.sA; - w = a.aYa; - C = a.HF; - F = a.WF; - G = a.getTime; - x = a.FMa; - ca = a.Pa; - A = a.Wo; - Z = a.Lx; - O = a.SourceBuffer; - B = a.MediaSource; - y = a.cpb; - u = a.Fl; - return { - name: "cadmium", - Fl: u, - Qw: k, - HF: C, - WF: F, - ready: b, - storage: new d(), - Storage: d, - time: new h(), - events: new l(), - console: new m("JS-ASE", void 0, "default"), - Console: m, - options: b, - Promise: T, - Pa: ca, - Lx: Z, - gAa: O, - MediaSource: B, - Wo: A, - ee: { - name: g - }, - memory: { - wXa: p - }, - Vpb: void 0 - }; + d.XGb = function(a) { + a ^= a >>> 16; + a ^= a >>> 8; + return 27030 >>> ((a ^ a >>> 4) & 15) & 1; }; - }, function(f, c, a) { - var b, d; - Object.defineProperty(c, "__esModule", { - value: !0 - }); - b = a(3); - d = a(28); - c.NDa = function() { - b.Cc("ProbeDownloader"); - return { - zF: function(a) { - d.Za.m6a({ - url: a.url, - j6a: a - }); - } - }; - }(); - }, function(f, c, a) { - var d, h, l, g, m, p, k; - - function b() { - var a; - a = new h.Ci(); - this.addEventListener = a.addListener.bind(this); - this.removeEventListener = a.removeListener.bind(this); - this.emit = a.mc.bind(this); - this.Zu = p++; - this.wa = l.Cc("ProbeRequest"); - this.zea = d.NDa; - g.ea(void 0 !== this.zea); - this.xe = c.Wo.Va.UNSENT; - } - Object.defineProperty(c, "__esModule", { - value: !0 - }); - d = a(532); - h = a(57); - l = a(3); - g = a(8); - m = a(14); - p = 0; - (function() { - function a() { - return JSON.stringify({ - url: this.Mf, - id: this.Zu, - affected: this.vK, - readystate: this.xe - }); - } - m.oa(b.prototype, { - vi: function(a) { - a.affected = this.vK; - a.probed = { - requestId: this.Zu, - url: this.Mf, - Ec: this.Wea, - groupId: this.Dda - }; - this.emit(c.Wo.bd.NC, a); - }, - e3: function(a) { - this.WD = a.httpcode; - a.affected = this.vK; - a.probed = { - requestId: this.Zu, - url: this.Mf, - Ec: this.Wea, - groupId: this.Dda - }; - this.emit(c.Wo.bd.uu, a); - }, - open: function(a, b, d, g) { - if (!a) return !1; - this.Mf = a; - this.vK = b; - this.Wea = d; - this.xe = c.Wo.Va.OPENED; - this.eIa = g; - this.zea.zF(this); - return !0; - }, - ze: function() { - return !0; - }, - oi: function() { - return this.Zu; - }, - toString: a, - toJSON: a - }); - Object.defineProperties(b.prototype, { - readyState: { - get: function() { - return this.xe; - }, - set: function() {} - }, - status: { - get: function() { - return this.WD; - } - }, - url: { - get: function() { - return this.Mf; - } - }, - Jkb: { - get: function() { - return this.vK; - } - }, - $0a: { - get: function() { - return this.eIa; - } - } - }); - }()); + b = Array(256); (function(a) { - a.bd = { - NC: "pr0", - uu: "pr1" - }; - a.Va = { - UNSENT: 0, - OPENED: 1, - ur: 2, - DONE: 3, - bm: 4, - name: ["UNSENT", "OPENED", "SENT", "DONE", "FAILED"] - }; - }(k || (k = {}))); - c.Wo = Object.assign(b, k); - }, function(f, c) { - Object.defineProperty(c, "__esModule", { - value: !0 - }); - c.$Ra = function(a, b, c) { - return { - hka: function() { - return a.V_(); - }, - ca: b, - request: c, - Ke: !1 - }; - }; - }, function(f, c, a) { - Object.defineProperty(c, "__esModule", { - value: !0 - }); - f = a(3); - a = a(341); - a = f.Z.get(a.K6); - a; - }, function(f, c) { - Object.defineProperty(c, "__esModule", { - value: !0 - }); - c.R1a = function(a, b) { - var g, m; - if (0 !== a.length) { - if (1 === a.length) return a[0]; - for (var c = a[0], f = b(c), l = 1; l < a.length; l++) { - g = a[l]; - m = b(g); - m > f && (c = g, f = m); - } - return c; + for (var b = 0; 256 > b; ++b) { + for (var c = b, d = b, g = 7, c = c >>> 1; c; c >>>= 1) d <<= 1, d |= c & 1, --g; + a[b] = d << g & 255; } + }(b)); + d.reverse = function(a) { + return b[a & 255] << 24 | b[a >>> 8 & 255] << 16 | b[a >>> 16 & 255] << 8 | b[a >>> 24 & 255]; }; - }, function(f, c, a) { - var d; - - function b(a, b, c) { - a = d.FS.call(this, a, b) || this; - a.iz = c; - return a; - } - Object.defineProperty(c, "__esModule", { - value: !0 - }); - d = a(287); - oa(b, d.FS); - c.jva = b; - }, function(f, c, a) { - var b, d, h, l, g, m, p, k, u, n, q, w, G, x; - Object.defineProperty(c, "__esModule", { - value: !0 - }); - b = a(18); - d = a(340); - h = a(119); - l = a(6); - g = a(4); - m = a(92); - p = a(16); - k = a(17); - f = a(2); - u = a(3); - n = a(95); - q = a(5); - w = a(32); - G = a(15); - b.Dd(f.v.f9, function(a) { - var f; - - function c() { - var a, c, d, l; - a = { - browserua: q.Ug, - browserhref: q.KJ.href, - initstart: b.YO, - initdelay: b.z1 - b.YO - }; - c = q.cd.documentMode; - c && (a.browserdm = "" + c); - "undefined" !== typeof t.nrdp && t.nrdp.device && (a.firmware_version = t.nrdp.device.firmwareVersion); - G.kq(g.config.Sia) && (a.fesn = g.config.Sia); - h.RAa(a); - d = q.cm && q.cm.timing; - d && g.config.k1a.map(function(b) { - var c; - c = d[b]; - c && (a["pt_" + b] = c - k.Rga()); - }); - l = f.Yja(); - Object.keys(l).forEach(function(b) { - return a["m_" + b] = l[b]; - }); - c = new m.Zx(p.ZJ && p.ZJ.L, "startup", "info", a); - x.Vl(c); - } - x = u.Z.get(d.L9); - t._cad_global.logBatcher = x; - f = u.Z.get(n.xr); - b.kG(function() { - x.Xc(); - w.Xa(c); - }); - a(l.cb); - }); - }, function(f, c, a) { - var b, d, h; - Object.defineProperty(c, "__esModule", { - value: !0 - }); - b = a(6); - d = a(4); - h = a(17); - c.aeb = function(a) { + d.tFb = function(a, b) { + a &= 65535; + a = (a | a << 8) & 16711935; + a = (a | a << 4) & 252645135; + a = (a | a << 2) & 858993459; + b &= 65535; + b = (b | b << 8) & 16711935; + b = (b | b << 4) & 252645135; + b = (b | b << 2) & 858993459; + return (a | a << 1) & 1431655765 | ((b | b << 1) & 1431655765) << 1; + }; + d.pDb = function(a, b) { + a = a >>> b & 1431655765; + a = (a | a >>> 1) & 858993459; + a = (a | a >>> 2) & 252645135; + a = (a | a >>> 4) & 16711935; + return ((a | a >>> 16) & 65535) << 16 >> 16; + }; + d.uFb = function(a, b, d) { + a &= 1023; + a = (a | a << 16) & 4278190335; + a = (a | a << 8) & 251719695; + a = (a | a << 4) & 3272356035; + b &= 1023; + b = (b | b << 16) & 4278190335; + b = (b | b << 8) & 251719695; + b = (b | b << 4) & 3272356035; + d &= 1023; + d = (d | d << 16) & 4278190335; + d = (d | d << 8) & 251719695; + d = (d | d << 4) & 3272356035; + return (a | a << 2) & 1227133513 | ((b | b << 2) & 1227133513) << 1 | ((d | d << 2) & 1227133513) << 2; + }; + d.qDb = function(a, b) { + a = a >>> b & 1227133513; + a = (a | a >>> 2) & 3272356035; + a = (a | a >>> 4) & 251719695; + a = (a | a >>> 8) & 4278190335; + return ((a | a >>> 16) & 1023) << 22 >> 22; + }; + d.EGb = function(b) { var c; - c = { - Hkb: a, - Kia: !0, - k4: !1, - hG: h.Ra(), - load: function(a) { - (a || b.Gb)(b.cb); - }, - save: function() { - c.Kia = !0; - }, - remove: function(a) { - c.Kia = !1; - (a || b.Gb)(b.cb); - }, - Ljb: d.config.Dg.Sw, - dpb: !0 - }; - return c; + c = b | b - 1; + return c + 1 | (~c & -~c) - 1 >>> a(b) + 1; }; - }, function(f, c, a) { - var l, g, m, p; - - function b(a, b, c, f) { - var k, r, u; - l.ea(p.Pd(a) && !p.isArray(a)); - f = f || ""; - k = ""; - r = a.hasOwnProperty(m.Vh) && a[m.Vh]; - r && g.Kb(r, function(a, b) { - k && (k += " "); - k += a + '="' + h(b) + '"'; - }); - c = (b ? b + ":" : "") + c; - r = f + "<" + c + (k ? " " + k : ""); - u = a.hasOwnProperty(m.Io) && a[m.Io].trim && "" !== a[m.Io].trim() && a[m.Io]; - if (u) return r + ">" + h(u) + ""; - a = d(a, b, f + " "); - return r + (a ? ">\n" + a + "\n" + f + "" : "/>"); - } - - function d(a, c, d) { - var f; - l.ea(p.Pd(a) && !p.isArray(a)); - d = d || ""; - f = ""; - g.Kb(a, function(a, m) { - var r; - if ("$" != a[0]) - for (var l = g.F1a(m), k = 0; k < l.length; k++) - if (m = l[k], f && (f += "\n"), p.Pd(m)) f += b(m, c, a, d); - else { - r = (c ? c + ":" : "") + a; - f += d + "<" + r + ">" + h(m) + ""; - } - }); - return f; - } - - function h(a) { - if (p.oc(a)) return g.C0(a); - if (p.da(a)) return l.OM(a, "Convert non-integer numbers to string for xml serialization."), "" + a; - if (null === a || void 0 === a) return ""; - l.ea(!1, "Invalid xml value."); - return ""; - } - Object.defineProperty(c, "__esModule", { - value: !0 - }); - l = a(8); - g = a(19); - m = a(122); - p = a(15); - c.spb = b; - c.tpb = d; - c.ntb = h; - }, function(f, c, a) { - var b, d, h, l; - Object.defineProperty(c, "__esModule", { - value: !0 - }); - b = a(28); - d = a(8); - h = a(14); - l = a(2); - c.Lob = function(a) { - var g, f, k, n; - - function c(a) { - var d; - c = h.Gb; - k.onload = null; - k.onabort = null; - k.onerror = null; - d = k.status; - !a && 200 <= d && 299 >= d ? (n.content = b.aGa(k, n), n.K = !0) : (n.R = a ? l.u.No : l.u.Ox, n.Fg = n.ub = d, n.K = !1); - } - g = /^[a-z]*:\/\/.*/i; - f = a.url; - k = new XMLHttpRequest(); - n = { - request: a, - type: a.responseType - }; - d.ea(h.oc(f) && !g.test(f), "Url must be relative"); - k.onload = function() { - c(); - }; - k.onerror = function() { - c(); - }; - k.onabort = function() { - c(!0); - }; - b.bGa(k, f, !0, a); - d.sSa(n.K); - return n; + }, function(g, d, a) { + g.M = { + p3: a(194).p3, + Qsa: a(681).Qsa, + iqa: a(194).iqa, + JL: a(192), + e4a: a(680) }; - }, function(f, c, a) { - var b, d; - Object.defineProperty(c, "__esModule", { - value: !0 - }); - f = a(18); - c = a(2); - b = a(3); - d = a(319); - f.Dd(c.v.Z8, function(a) { - b.Z.get(d.c8)().then(function() { - a({ - K: !0 - }); - })["catch"](function(c) { - b.log.error("error in initializing indexedDb debug tool", c); - a({ - K: !0 - }); - }); - }); - }, function(f, c, a) { - var b, d, h, l, g, m, p, k; - Object.defineProperty(c, "__esModule", { - value: !0 - }); - b = a(18); - d = a(25); - h = a(6); - l = a(4); - g = a(2); - m = a(414); - p = a(36); - k = a(5); - p.g$ && b.Dd(g.v.r9, function(a) { - k.Gl && k.Gl.generateKey && k.Gl.importKey && k.Gl.unwrapKey ? !p.Ne.F7 && l.config.jE != m.LI.LCa && l.config.jE != m.LI.Hza || k.cU ? (b.lG("wcs"), d.NA(k.Gl.generateKey({ - name: "AES-CBC", - length: 128 - }, !0, ["encrypt", "decrypt"])).then(function() { - b.lG("wcdone"); - a(h.cb); - }, function(b) { - var c; - b = "" + b; - 0 <= b.indexOf("missing crypto.subtle") ? c = g.u.$U : 0 <= b.indexOf("timeout waiting for iframe to load") && (c = g.u.XFa); - a({ - R: c, - za: b - }); - })) : a({ - R: g.u.WFa - }) : a({ - R: g.u.$U - }); - }); - }, function(f, c, a) { - var h, l, g, m, p, k, u, n, q, w, t, x, y, C, F, N, T, ca, Z; - - function b() { - try { - F.write(new w.B$([T])); - T = ""; - } catch (O) { - ca.lb(b); + }, function(g, d, a) { + (function() { + var L45, c, d, k, g6M; + L45 = 2; + while (L45 !== 13) { + g6M = "1SI"; + g6M += "YbZrN"; + g6M += "JCp"; + g6M += "9"; + switch (L45) { + case 2: + c = a(683).e4a; + d = a(59).L$a; + k = a(59).E$a; + b.prototype.yZa = function(a, b, c) { + var q45, f; + q45 = 2; + while (q45 !== 3) { + switch (q45) { + case 2: + f = function(a) { + var i45, b; + i45 = 2; + while (i45 !== 9) { + switch (i45) { + case 2: + b = []; + i45 = 5; + break; + case 5: + a.reduce(function(a, c) { + var x45; + x45 = 2; + while (x45 !== 4) { + switch (x45) { + case 2: + a.push(c); + c && (b.push(a.length), a = []); + return a; + break; + } + } + }, []); + b.shift(); + return b; + break; + } + } + }(a.map(function(a) { + var o45; + o45 = 2; + while (o45 !== 1) { + switch (o45) { + case 4: + return a > b ? 9 : 1; + break; + o45 = 1; + break; + case 2: + return a >= b ? 1 : 0; + break; + } + } + })); + q45 = 5; + break; + case 5: + q45 = 0 !== f.length ? 4 : 3; + break; + case 4: + return a = d(f) / f.length, f = k(f), (f - a) / (f + a + c); + break; + } + } + }; + b.prototype.vkb = function(a, b, g, k) { + var K45, f, h, m, p; + K45 = 2; + while (K45 !== 13) { + switch (K45) { + case 2: + f = c(a); + f = f.map(function(a) { + var C58 = H4DD; + var B45, j45, S45, E45; + B45 = 2; + while (B45 !== 1) { + switch (B45) { + case 2: + C58.G6M(0); + j45 = C58.H6M(2, 17, 17); + C58.S6M(1); + S45 = C58.H6M(21, 20); + C58.G6M(2); + E45 = C58.w6M(10, 20); + return (Math.pow(a[0], j45) + Math.pow(a[S45], E45)) / f.length; + break; + } + } + }); + a = []; + K45 = 3; + break; + case 3: + h = 0, m = 0, p = 0; + K45 = 9; + break; + case 7: + p += b; + K45 = 9; + break; + case 8: + a[h] = d(f.slice(p, p + b)), m += a[h], h += 1; + K45 = 7; + break; + case 9: + K45 = p < f.length ? 8 : 6; + break; + case 6: + a = a.splice(0, a.length - 1).map(function(a) { + var s88 = H4DD; + var f45; + f45 = 2; + while (f45 !== 1) { + switch (f45) { + case 2: + s88.S6M(3); + return s88.w6M(g, m, a); + break; + case 4: + s88.S6M(4); + return s88.w6M(g, m, a); + break; + f45 = 1; + break; + } + } + }); + return a.splice(0, k); + break; + } + } + }; + L45 = 8; + break; + case 8: + b.prototype.BZa = function(a, b, c, d, g, k, h) { + var g45; + g45 = 2; + while (g45 !== 7) { + switch (g45) { + case 4: + g45 = k < c.length ? 3 : 8; + break; + case 2: + b = this.yZa(a, b, h); + g45 = 1; + break; + case 5: + k = d = 0; + g45 = 4; + break; + case 3: + d += c[k] * g[k]; + g45 = 9; + break; + case 1: + g45 = void 0 !== b && (a = this.vkb(a, c, k, d), a = a.map(function(a) { + var m45; + m45 = 2; + while (m45 !== 5) { + switch (m45) { + case 2: + a += h; + return Math.log(a); + break; + } + } + }), c = [1].concat(a).concat(b), c.length === g.length) ? 5 : 7; + break; + case 9: + k++; + g45 = 4; + break; + case 8: + return { + p: Math.exp(d) / (1 + Math.exp(d)), bu: b, z: a + }; + break; + } + } + }; + b.prototype.O8 = function(a, b, c, d, g, k, h, l) { + var F45; + F45 = 2; + while (F45 !== 5) { + switch (F45) { + case 2: + b = (a = this.BZa(a, b, c, d, g, h, l)) ? a.p : void 0; + return { + p: b ? b : -1, bu: a ? a.bu : -1, r: b ? b <= k ? 1 : 0 : -1, z: a ? a.z : void 0 + }; + break; + } + } + }; + g.M = { + UNa: b + }; + g6M; + L45 = 13; + break; + } } - } - - function d(a) { - a.level <= C && (a = a.lI(!1, !0) + "\n", T += a, ca.lb(b)); - } - Object.defineProperty(c, "__esModule", { - value: !0 - }); - f = a(18); - h = a(192); - l = a(4); - g = a(6); - c = a(91); - m = a(17); - p = a(12); - k = a(84); - u = a(3); - n = a(2); - q = a(8); - w = a(5); - t = a(142); - x = a(90); - y = { - create: !0 - }; - C = p.wh.PU; - N = []; - T = ""; - ca = new c.dD(10); - Z = u.Z.get(k.ou); - Z.cB(t.Ux.JT, function(a) { - N.push(a); - }); - f.Dd(n.v.a9, function(a) { - var f, p, k, r; - - function c() { - var a; - Z.Dsa(t.Ux.JT); - if (F) { - F.seek(F.length); - a = "Version: 6.0011.853.011\n" + (x.Bg ? "Esn: " + x.Bg.$d + "\n" : "") + "JsSid: " + m.ir + ", Epoch: " + m.On() + ", Start: " + m.fPa() + ", TimeZone: " + new Date().getTimezoneOffset() + "\nHref: " + w.KJ.href + "\nUserAgent: " + w.Ug + "\n--------------------------------------------------------------------------------\n"; - T += a; - ca.lb(b); - for (a = 0; a < N.length; a++) d(N[a]); - N = void 0; - Z.cB(t.Ux.YFa, d); - } - } - q.ea(l.config); - if (h.CN) { - f = m.ir + ".log"; - p = function(a) { - F = a; - c(); - }; - k = function() { - q.ea(!1); - c(); - }; - r = function(a) { - a.createWriter(p, k); - }; - h.CN.root.getDirectory("netflix.player.logs", y, function(a) { - l.config.Xqb ? a.getFile(f, y, r, k) : (a.removeRecursively(g.Gb), c()); - }, k); - } else Z.Dsa(t.Ux.JT), N = void 0; - a(g.cb); - }); - }, function(f, c) { - Object.defineProperty(c, "__esModule", { - value: !0 - }); - c.Ojb = function(a) { - this.userAgent = a; - }; - }, function(f, c, a) { - Object.defineProperty(c, "__esModule", { - value: !0 - }); - a(18); - a(4); - a(6); - a(91); - a(3); - a(84); - a(142); - a(2); - }, function(f, c, a) { - var p, k, u, n, q; - function b(a) { - var b, g; - k.VE(a); - if (u.oc(a) && c.Kya.test(a)) { - b = a.split("."); - if (4 === b.length) { - for (var d = 0; d < b.length; d++) { - g = u.Zc(b[d]); - if (0 > g || !q.et(g, 0, 255) || 1 !== b[d].length && 0 === b[d].indexOf("0")) return; + function b(a) { + var p45; + p45 = 2; + while (p45 !== 1) { + switch (p45) { + case 4: + this.console = a; + p45 = 9; + break; + p45 = 1; + break; + case 2: + this.console = a; + p45 = 1; + break; } - return a; } } - } - - function d(a) { - var c; - c = 0; - if (b(a) === a) return a = a.split("."), c += u.Zc(a[0]) << 24, c += u.Zc(a[1]) << 16, c += u.Zc(a[2]) << 8, c + u.Zc(a[3]); - } - - function h(a) { - var b; - k.VE(a); - if (u.oc(a) && a.match(c.Lya)) { - b = a.split(":"); - 1 !== b[b.length - 1].indexOf(".") && (a = l(b[b.length - 1]), b.pop(), b.push(a[0]), b.push(a[1]), a = b.join(":")); - a = a.split("::"); - if (!(2 < a.length || 1 === a.length && 8 !== b.length) && (b = 1 < a.length ? g(a) : b, a = b.length, 8 === a)) { - for (; a--;) - if (!q.et(parseInt(b[a], 16), 0, p.Cza)) return; - return b.join(":"); + }()); + }, function(g, d, a) { + (function() { + var t6M, c, d, k, c32, K32; + t6M = 2; + while (t6M !== 10) { + c32 = "PS"; + c32 += "D_"; + c32 += "AS"; + c32 += "EJS"; + K32 = "1S"; + K32 += "IYbZr"; + K32 += "NJCp9"; + switch (t6M) { + case 9: + b.prototype.shift = function() { + var s6M; + s6M = 2; + while (s6M !== 1) { + switch (s6M) { + case 4: + d.prototype.shift.call(this); + s6M = 9; + break; + s6M = 1; + break; + case 2: + d.prototype.shift.call(this); + s6M = 1; + break; + } + } + }; + b.prototype.T$a = function() { + var y6M; + y6M = 2; + while (y6M !== 1) { + switch (y6M) { + case 2: + return this.get(this.config.Hg.fillS, this.config.Hg.fillHl); + break; + } + } + }; + b.prototype.f$a = function() { + var N6M, a; + N6M = 2; + while (N6M !== 9) { + switch (N6M) { + case 4: + N6M = a.length === this.config.Hg.numB ? 3 : 9; + break; + case 3: + return k.O8(a, this.aZa, this.E7a, this.ahb, this.beta, this.cBa, this.Hqb, this.Iqb); + break; + case 2: + a = this.T$a(); + this.config.NH && a.splice(a.length - this.config.NH); + N6M = 4; + break; + } + } + }; + b.prototype.stop = function(a) { + var n6M; + n6M = 2; + while (n6M !== 1) { + switch (n6M) { + case 2: + d.prototype.stop.call(this, a); + n6M = 1; + break; + } + } + }; + t6M = 14; + break; + case 14: + b.prototype.reset = function() { + var M6M; + M6M = 2; + while (M6M !== 1) { + switch (M6M) { + case 2: + d.prototype.reset.call(this); + M6M = 1; + break; + case 4: + d.prototype.reset.call(this); + M6M = 2; + break; + M6M = 1; + break; + } + } + }; + b.prototype.toString = function() { + var A6M, S32; + A6M = 2; + while (A6M !== 1) { + S32 = "p"; + S32 += "s"; + S32 += "d"; + S32 += "("; + switch (A6M) { + case 2: + return S32 + this.dc + ")"; + break; + case 4: + return ")" - this.dc - ")"; + break; + A6M = 1; + break; + } + } + }; + g.M = b; + K32; + t6M = 10; + break; + case 2: + c = new(a(8)).Console(c32); + d = a(130); + k = new(a(684)).UNa(c); + b.prototype = Object.create(d.prototype); + t6M = 9; + break; } } - } - - function l(a) { - var b; - a = d(a) >>> 0; - b = []; - b.push((a >>> 16 & 65535).toString(16)); - b.push((a & 65535).toString(16)); - return b; - } - - function g(a) { - var b, c, d; - b = a[0].split(":"); - a = a[1].split(":"); - 1 === b.length && "" === b[0] && (b = []); - 1 === a.length && "" === a[0] && (a = []); - c = 8 - (b.length + a.length); - if (1 > c) return []; - for (d = 0; d < c; d++) b.push("0"); - for (d = 0; d < a.length; d++) b.push(a[d]); - return b; - } - function m(a) { - return -1 << 32 - a; - } - Object.defineProperty(c, "__esModule", { - value: !0 - }); - p = a(6); - k = a(8); - u = a(14); - n = a(5); - q = a(15); - c.Kya = /^[0-9.]*$/; - c.Lya = /^([a-fA-F0-9]*:){2}[a-fA-F0-9:.]*$/; - c.Rx = "0000000000000000"; - c.Wfb = b; - c.Sfb = d; - c.Xfb = h; - c.Ufb = l; - c.Vfb = g; - c.Yfb = function(a, g, f) { - var l, p, k, r; - l = b(a); - p = h(a); - k = b(g); - r = h(g); - if (!l && !p || !k && !r || l && !k || p && !r) return !1; - if (a === l) return f = m(f), (d(a) & f) !== (d(g) & f) ? !1 : !0; - if (a === p) { - a = a.split(":"); - g = g.split(":"); - for (l = n.Xh(f / c.Rx.length); l--;) - if (a[l] !== g[l]) return !1; - f %= c.Rx.length; - if (0 !== f) - for (a = parseInt(a[l], 16).toString(2), g = parseInt(g[l], 16).toString(2), a = c.Rx.substring(0, c.Rx.length - a.length) + a, g = c.Rx.substring(0, c.Rx.length - g.length) + g, l = 0; l < f; l++) - if (a[l] !== g[l]) return !1; - return !0; + function b(a, b, c) { + var x6M; + x6M = 2; + while (x6M !== 14) { + switch (x6M) { + case 8: + this.cBa = c.Hg.thresh; + this.Hqb = c.Hg.tol; + this.Iqb = c.Hg.tol2; + x6M = 14; + break; + case 4: + this.E7a = c.Hg.freqave; + this.ahb = c.Hg.numfreq; + this.beta = c.Hg.beta; + x6M = 8; + break; + case 2: + H4DD.P72(0); + d.call(this, H4DD.e72(a, b), b); + this.config = c; + this.aZa = c.Hg.bthresh; + x6M = 4; + break; + } + } } - return !1; - }; - c.Tfb = m; - }, function(f, c, a) { - var b, d, h, l, g, m, p, k; - Object.defineProperty(c, "__esModule", { - value: !0 - }); - b = a(3); - d = a(8); - h = a(103); - a(19); - l = a(14); - g = a(2); - m = a(36); - p = a(32); - k = a(5); - a(15); - c.Cpb = function(a, c) { - var u, n, v; - - function f(a) { - var b; - b = c; - c = l.Gb; - b(a); + }()); + }, function(g, d, a) { + (function() { + var v32, c, d, k, f, p, m, l, m2t; + v32 = 2; + + function b(a, b, c, d, f, g) { + var m32, h, r, n, j32, E32; + m32 = 2; + while (m32 !== 26) { + switch (m32) { + case 7: + this.Hb = this.W.trace.bind(this.W); + this.Ua = this.W.log.bind(this.W); + this.VF = null; + m32 = 13; + break; + case 2: + this.K = d; + this.aa = a; + this.Wa = c; + this.W = a.W; + this.Rb = this.W.error.bind(this.W); + this.fa = this.W.warn.bind(this.W); + m32 = 7; + break; + case 15: + try { + j32 = 2; + while (j32 !== 3) { + switch (j32) { + case 2: + r = a.Ej(); + n = new l(a, { + bufferSize: r + }, d); + a.aj.VWa(n); + this.fU = n; + j32 = 3; + break; + } + } + } catch (F) { + var U9t; + U9t = "H"; + U9t += "indsight: Error when creatin"; + U9t += "g QoEEvaluator: "; + H4DD.j9t(0); + a.Jp(H4DD.B9t(U9t, F)); + } + m32 = 27; + break; + case 13: + H4DD.p9t(1); + E32 = H4DD.L9t(1000015, 15); + this.Xja = 0 === Math.floor(E32 * Math.random()) % d.Q0; + this.xVa(); + this.uG = k(d, f); + m32 = 10; + break; + case 16: + m32 = a.On ? 15 : 27; + break; + case 10: + c = this.Eja(b); + c && (h = (c.Gk - c.Fk) / c.cj); + this.UVa = [d.Cma, d.X$]; + f = d.OJ ? m.gd.Ho : m.gd.Us; + b && b.zc >= f && b.pa && this.FSa(b, c, h); + m32 = 16; + break; + case 27: + d.ZH && g && 1 < g.length && (this.WI = new p(d, g), this.hS = this.WI.tra()); + m32 = 26; + break; + } + } } - - function r(a) { - var b, c, h, m; - try { - b = JSON.parse(a.data); - c = b.method; - h = b.success; - m = b.payload; - d.ea("ready" == c); - "ready" == c && (n.removeEventListener("message", r), v.Og(), p.Xa(function() { - u.info("Plugin sent ready message"); - h ? f({ - success: !0, - pluginObject: n, - pluginVersion: m && m.version - }) : f({ - R: g.u.aaa, - ub: b.errorCode + while (v32 !== 28) { + m2t = "1"; + m2t += "S"; + m2t += "IYbZrNJ"; + m2t += "Cp9"; + switch (v32) { + case 3: + f = a(685); + p = a(679); + m = a(13); + l = a(678); + Object.defineProperties(b.prototype, { + qpb: { + get: function() { + var g32; + g32 = 2; + while (g32 !== 1) { + switch (g32) { + case 4: + return this.UVa; + break; + g32 = 1; + break; + case 2: + return this.UVa; + break; + } + } + } + } }); - })); - } catch (Z) { - u.error("Exception while parsing message from plugin", Z); - f({ - R: g.u.baa - }); + b.prototype.xVa = function() { + var H32; + H32 = 2; + while (H32 !== 5) { + switch (H32) { + case 2: + this.Lm = this.aS = this.Gsa = this.$P = this.$n = void 0; + this.X6 = this.iaa = this.XU = this.YU = this.haa = this.HT = this.IT = 0; + H32 = 5; + break; + } + } + }; + b.prototype.aAa = function(a, b, d) { + var s32; + s32 = 2; + while (s32 !== 4) { + switch (s32) { + case 2: + this.Lm = a; + c.V(b) || (this.Gsa = b); + c.V(d) || (this.aS = d); + s32 = 4; + break; + } + } + }; + v32 = 12; + break; + case 16: + b.prototype.QWa = function(a, b) { + var N32, c, f, g; + N32 = 2; + while (N32 !== 13) { + switch (N32) { + case 2: + c = this.K; + N32 = 5; + break; + case 5: + N32 = this.Xja ? 4 : 13; + break; + case 7: + N32 = void 0 === f || c > f ? 6 : 14; + break; + case 4: + void 0 === this.Hi && (this.Hi = { + startTime: d.time.da(), + kr: [], + Ls: [], + r6: void 0, + m6: void 0 + }); + c = Math.floor((d.time.da() - this.Hi.startTime) / c.FB); + f = this.Hi.m6; + g = this.Hi.r6 ? c - this.Hi.r6 - 1 : c; + N32 = 7; + break; + case 6: + this.Hi.kr[g] = a, this.Hi.Ls[g] = b; + N32 = 14; + break; + case 14: + this.Hi.m6 = c; + N32 = 13; + break; + } + } + }; + b.prototype.Chb = function() { + var w32; + w32 = 2; + while (w32 !== 1) { + switch (w32) { + case 2: + this.CVa(); + w32 = 1; + break; + case 4: + this.CVa(); + w32 = 8; + break; + w32 = 1; + break; + } + } + }; + v32 = 27; + break; + case 12: + b.prototype.KZ = function(a, b, d, f) { + var p32, g, w9t, g9t; + p32 = 2; + while (p32 !== 7) { + w9t = "a"; + w9t += "v"; + w9t += "g"; + g9t = "i"; + g9t += "q"; + g9t += "r"; + switch (p32) { + case 2: + g = this.K; + p32 = 5; + break; + case 4: + return b.pa && d && c.ja(f) && b.pa.za < g.sH && f > g.GX; + break; + case 5: + p32 = a === g9t ? 4 : 3; + break; + case 3: + p32 = a === w9t ? 9 : 8; + break; + case 9: + return b.pa ? b.pa.za < g.sH : !0; + break; + case 8: + return !1; + break; + } + } + }; + b.prototype.Eja = function(a) { + var y32, F32, S9t; + y32 = 2; + while (y32 !== 4) { + S9t = "t"; + S9t += "d"; + S9t += "i"; + S9t += "ge"; + S9t += "st"; + switch (y32) { + case 3: + y32 = 9; + break; + case 5: + return a; + break; + case 1: + a = a.Tl; + y32 = 5; + break; + case 2: + F32 = this.K.p5; + y32 = F32 === S9t ? 1 : 3; + break; + case 9: + a = a.xk && a.xk.PT; + y32 = 5; + break; + } + } + }; + b.prototype.FSa = function(a, b, c) { + var h32, d; + h32 = 2; + while (h32 !== 9) { + switch (h32) { + case 2: + d = this.K; + this.KZ(d.Mv, a, b, c) ? this.$n = !0 : this.$n = !1; + this.$P = 0; + this.KZ(d.Q6, a, b, c) && (this.qcb = !0); + h32 = 9; + break; + } + } + }; + b.prototype.b$a = function(a) { + var C32; + C32 = 2; + while (C32 !== 1) { + switch (C32) { + case 2: + return a === m.G.VIDEO ? this.uG.Hxa : this.uG.Gxa; + break; + } + } + }; + b.prototype.fE = function(a) { + var Z32; + Z32 = 2; + while (Z32 !== 5) { + switch (Z32) { + case 2: + this.uG.fE(a); + this.VF = a; + Z32 = 5; + break; + } + } + }; + b.prototype.kna = function(a, b) { + var a32; + a32 = 2; + while (a32 !== 1) { + switch (a32) { + case 2: + this.uG.THb && a && this.uG.kna(b, a); + a32 = 1; + break; + } + } + }; + b.prototype.OWa = function(a, b, c, d, f, g) { + var Y32, k; + Y32 = 2; + while (Y32 !== 4) { + switch (Y32) { + case 2: + k = this.K; + c && d && (c = g ? Math.min(c, d, g) : Math.min(c, d)) && (this.Wa.get(!1), a = this.aa.xC(a), b.Zn() && a > k.NP && c === f ? (b.uya({ + connections: 1, + openRange: !0 + }), this.haa++) : k.ko && !b.Zn() && (a < k.P0 || c !== f) && (b.uya({ + connections: k.AJ, + openRange: !1 + }), this.iaa++)); + Y32 = 4; + break; + } + } + }; + v32 = 16; + break; + case 2: + c = a(11); + d = a(8); + k = a(369); + v32 = 3; + break; + case 27: + b.prototype.shb = function() { + var t32, b32, a; + t32 = 2; + while (t32 !== 9) { + switch (t32) { + case 3: + try { + b32 = 2; + while (b32 !== 5) { + switch (b32) { + case 2: + a.$a.Wa.Dlb(); + this.fU.Ld(); + b32 = 5; + break; + } + } + } catch (x) { + var Q9t; + Q9t = "Hindsi"; + Q9t += "g"; + Q9t += "h"; + Q9t += "t: Error during clean up: "; + H4DD.j9t(0); + a.Jp(H4DD.B9t(Q9t, x)); + } + t32 = 9; + break; + case 2: + a = this.aa; + this.wG && (clearInterval(this.wG), this.wG = void 0); + t32 = 4; + break; + case 4: + t32 = a.On ? 3 : 9; + break; + } + } + }; + b.prototype.Dhb = function(a) { + var o32; + o32 = 2; + while (o32 !== 1) { + switch (o32) { + case 2: + this.K.hC && a === m.G.VIDEO && (this.iaa = this.haa = this.XU = this.YU = this.HT = this.IT = 0); + o32 = 1; + break; + } + } + }; + b.prototype.Ihb = function(a, b, c, d) { + var l32; + l32 = 2; + while (l32 !== 1) { + switch (l32) { + case 2: + this.K.hC && a === m.G.VIDEO && (d ? (this.IT += b, this.HT += c) : (this.YU += b, this.XU += c)); + l32 = 1; + break; + } + } + }; + b.prototype.Ahb = function(a, b) { + var n32; + n32 = 2; + while (n32 !== 1) { + switch (n32) { + case 2: + a === m.G.VIDEO && (this.usb = b); + n32 = 1; + break; + } + } + }; + v32 = 23; + break; + case 23: + b.prototype.Bhb = function(a) { + var T32; + T32 = 2; + while (T32 !== 1) { + switch (T32) { + case 2: + this.Hg && this.Hg.stop(a); + T32 = 1; + break; + } + } + }; + b.prototype.Cwa = function(a, b, c) { + var L32; + L32 = 2; + while (L32 !== 1) { + switch (L32) { + case 2: + this.Hg && this.Hg.add(a, b, c); + L32 = 1; + break; + } + } + }; + b.prototype.Nhb = function(a) { + var f32; + f32 = 2; + while (f32 !== 1) { + switch (f32) { + case 2: + this.X6 = a.X6; + f32 = 1; + break; + case 4: + this.X6 = a.X6; + f32 = 0; + break; + f32 = 1; + break; + } + } + }; + v32 = 35; + break; + case 35: + b.prototype.CVa = function() { + var r32, a; + r32 = 2; + while (r32 !== 4) { + switch (r32) { + case 2: + a = this.K; + a.RQ && (this.wG && clearInterval(this.wG), this.ez = void 0, this.Ska = 0, this.Hg = new f(a.Hg.numB + a.NH, a.Hg.bSizeMs, a), this.wG = setInterval(function() { + var V32, b, c, f, g; + V32 = 2; + while (V32 !== 12) { + switch (V32) { + case 4: + c = b.p; + f = b.bu; + V32 = 9; + break; + case 6: + V32 = (b = this.Wa.get(!0), 0 === a.oK || 0 < a.oK && b.pa.za < a.oK) ? 14 : 12; + break; + case 9: + g = b.r; + this.ez = { + t: d.time.da(), + p: Number(c).toFixed(2) / 1, + bu: Number(f).toFixed(2) / 1, + RBb: this.aa.xC(m.G.VIDEO), + z: b.z + }; + V32 = 7; + break; + case 14: + this.qs || this.Ska++, this.qs = !0; + V32 = 12; + break; + case 5: + V32 = b ? 4 : 12; + break; + case 2: + b = this.Hg.f$a(); + V32 = 5; + break; + case 13: + a.c9 && (this.qs = !1); + V32 = 12; + break; + case 7: + V32 = g ? 6 : 13; + break; + } + } + }.bind(this), a.b9)); + r32 = 4; + break; + } + } + }; + b.prototype.l_a = function(a) { + var D32, b, c, d, f, g, o2t, z2t; + D32 = 2; + while (D32 !== 7) { + o2t = "n"; + o2t += "o"; + o2t += "n"; + o2t += "e"; + z2t = "i"; + z2t += "q"; + z2t += "r"; + switch (D32) { + case 2: + b = this.K; + D32 = 5; + break; + case 4: + c = this.Wa.get(); + z2t === b.Mv && (d = this.Eja(c)) && (f = (d.Gk - d.Fk) / d.cj); + g = b.OJ ? m.gd.Ho : m.gd.Us; + c && c.zc >= g && this.KZ(b.Mv, c, d, f) && (this.$n = !0, this.$P = a.state); + D32 = 7; + break; + case 5: + D32 = o2t !== b.Mv && !0 !== this.$n && a.state <= b.o7 ? 4 : 7; + break; + } + } + }; + b.prototype.fXa = function(a) { + var u32; + u32 = 2; + while (u32 !== 3) { + switch (u32) { + case 4: + a.ez = this.ez; + u32 = 3; + break; + case 14: + a.ez = this.ez; + u32 = 5; + break; + u32 = 3; + break; + case 2: + a.$n = this.$n; + a.qs = this.qs; + a.hS = this.hS; + u32 = 4; + break; + } + } + }; + b.prototype.U6a = function(a) { + var x32, b, d, f, g, k, h, p, q2t, W2t; + x32 = 2; + while (x32 !== 23) { + q2t = "star"; + q2t += "tp"; + q2t += "la"; + q2t += "y"; + W2t = "l"; + W2t += "o"; + W2t += "gda"; + W2t += "t"; + W2t += "a"; + switch (x32) { + case 7: + k && k.pa && (k = k.pa.za); + g.actualbw = k; + g.isConserv = this.$n; + g.ccs = this.$P; + x32 = 12; + break; + case 12: + g.isLowEnd = this.qcb; + g.histdiscbw = this.Lm; + h = this.aS; + x32 = 20; + break; + case 2: + b = this.K; + d = this.aa; + f = { + type: W2t, + target: q2t, + fields: {} + }; + g = f.fields; + Object.keys(a).forEach(function(b) { + var B32; + B32 = 2; + while (B32 !== 1) { + switch (B32) { + case 4: + g[b] = a[b]; + B32 = 2; + break; + B32 = 1; + break; + case 2: + g[b] = a[b]; + B32 = 1; + break; + } + } + }); + k = this.Wa.get(); + x32 = 7; + break; + case 20: + x32 = h ? 19 : 27; + break; + case 15: + g.histtd = k; + x32 = 27; + break; + case 19: + p = function(a) { + var z32; + z32 = 2; + while (z32 !== 1) { + switch (z32) { + case 2: + return c.ja(a) ? Number(a).toFixed(2) : -1; + break; + } + } + }; + x32 = 18; + break; + case 18: + k = [p(h.min || void 0), p(h.p8 || void 0), p(h.Fk || void 0), p(h.cj || void 0), p(h.Gk || void 0), p(h.q8 || void 0), p(h.max || void 0)]; + h = c.isArray(h.ag) && h.ag.reduce(function(a, b) { + var I32, c; + I32 = 2; + while (I32 !== 9) { + switch (I32) { + case 2: + c = p(b.oe || void 0); + b = p(b.n || void 0); - 1 < c && -1 < b && a.push({ + mean: c, + n: b + }); + return a; + break; + } + } + }, []); + g.histtdc = h; + x32 = 15; + break; + case 27: + g.histage = this.Gsa; + x32 = 26; + break; + case 26: + b.ZH && this.WI && (g.histsessionstat = this.WI.ura(), g.initbwestimate = this.WI.tra(), g.avghistbw = this.WI.zR()); + d.$a && (b = d.Ej(), g.maxAudioBufferAllowedBytes = b[m.G.AUDIO], g.maxVideoBufferAllowedBytes = b[m.G.VIDEO]); + d.emit(f.type, f); + x32 = 23; + break; + } + } + }; + b.prototype.V6a = function(a) { + var J32, b, c, d, f, g, k, h, l2t; + J32 = 2; + while (J32 !== 19) { + l2t = "no"; + l2t += "n"; + l2t += "e"; + switch (J32) { + case 4: + d = this.Wa.get(!0); + f = []; + J32 = 9; + break; + case 9: + [m.G.VIDEO, m.G.AUDIO].forEach(function(a) { + var O32, g; + O32 = 2; + while (O32 !== 9) { + switch (O32) { + case 2: + O32 = 1; + break; + case 5: + g = this.aa.J$a(a); + a === m.G.VIDEO && (b.hC && (g.parallelDownloadMs = this.IT, g.parallelDownloadBytes = this.HT, g.singleDownloadMs = this.YU, g.singleDownloadBytes = this.XU, g.switchFromParallelToSingle = this.haa, g.switchFromSingleToParallel = this.iaa), d && d.zc && d.pa && (g.asetput = d.pa, g.aseiqr = d.xk, g.tdigest = d.Tl && d.Tl.Qr() || void 0), d && d.avtp && (g.avtp = d.avtp.za)); + O32 = 3; + break; + case 1: + O32 = c.WC(a) ? 5 : 9; + break; + case 3: + f.push(g); + O32 = 9; + break; + } + } + }.bind(this)); + J32 = 8; + break; + case 8: + a.stat = f; + g = 0; + k = 0; + h = 0; + d.zc && (g = d.pa ? d.pa.za : 0, k = d.kg ? d.kg.za : 0, h = d.Xn ? d.Xn.za : 0); + a.location = { + responseTime: k, + httpResponseTime: h, + bandwidth: g, + confidence: d.zc, + name: this.usb + }; + J32 = 11; + break; + case 2: + b = this.K; + c = this.aa; + J32 = 4; + break; + case 11: + this.Xja && (a.bt = { + startTime: this.Hi.startTime, + audioMs: this.Hi.kr, + videoMs: this.Hi.Ls + }, this.Hi.kr = [], this.Hi.Ls = [], this.Hi.r6 = this.Hi.m6); + b.RQ && (a.psdConservCount = this.Ska); + l2t !== b.Mv && (a.isConserv = this.$n, a.ccs = this.$P); + J32 = 19; + break; + } + } + }; + g.M = b; + m2t; + v32 = 28; + break; } } - u = b.Cc("Plugin"); - d.ea(a); - if (a) { - a = a[0].type; - u.info("Injecting plugin OBJECT", { - Type: a - }); - n = l.createElement("OBJECT", m.Ne.CCa, void 0, { - type: a, - "class": "netflix-plugin" - }); - n.addEventListener("message", r); - v = new h.my(8E3, function() { - u.error("Plugin load timeout"); - f({ - R: g.u.daa - }); - }); - k.cd.body.appendChild(n); - v.Sn(); - } else f({ - R: g.u.caa - }); - }; - c.Epb = function() {}; - c.Dpb = function(a) { - var c, d, f; - c = b.Cc("Plugin"); - d = 1; - f = {}; - a.addEventListener("message", function(a) { - var b, d, h, m; - try { - b = JSON.parse(a.data); - d = b.success; - h = b.payload; - m = f[b.idx]; - m && (d ? m({ - K: !0, - Okb: h - }) : m({ - K: !1, - R: g.u.ACa, - za: b.errorMessage, - ub: b.errorCode - })); - } catch (N) { - c.error("Exception while parsing message from plugin", N); + }()); + }, function(g, d, a) { + var b; + Object.defineProperty(d, "__esModule", { + value: !0 + }); + b = a(13); + (function() { + var I2t, k, f, p, m, l, n, q, v, y, w, t, z, E, P, F, la, N, O, Y, U, ga, S, T, H, A, G, R, Z, U01; + + function d(a) { + var F2t; + F2t = 2; + while (F2t !== 1) { + switch (F2t) { + case 2: + return a === b.Ca.Ns || a === b.Ca.jt; + break; + } } - }, !1); - return function(m, l, p) { - var r, u, n, v; + } - function k(a) { - a.K || c.info("Plugin called back with error", { - Method: m - }, b.jk(a)); - n.Og(); - delete f[r]; - p(a); + function c(a, c, d, f, g, h, l, r, u) { + var x2t, q, f71, R71, w71, e71, M71, v71; + x2t = 2; + while (x2t !== 84) { + f71 = "m"; + f71 += "ed"; + f71 += "ia|"; + f71 += "asej"; + f71 += "s"; + R71 = "ASE"; + R71 += "J"; + R71 += "S"; + w71 = "manag"; + w71 += "erdebuge"; + w71 += "vent"; + e71 = "med"; + e71 += "i"; + e71 += "a"; + e71 += "cach"; + e71 += "e"; + M71 = "in"; + M71 += "a"; + M71 += "c"; + M71 += "t"; + M71 += "ive"; + v71 = "SideChannel: pbcid is m"; + v71 += "i"; + v71 += "s"; + v71 += "sing."; + switch (x2t) { + case 37: + this.RZ = Object.create(null); + this.on = this.addEventListener = p.addEventListener; + this.removeEventListener = p.removeEventListener; + x2t = 53; + break; + case 49: + x2t = (u.cCa || u.Nz) && this.$a.Rc ? 48 : 47; + break; + case 87: + x2t = (this.vl = 0 === Math.floor(1E6 * Math.random()) % u.AB) ? 86 : 85; + break; + case 66: + this.Xa = new t(this.$a, this, u); + x2t = 90; + break; + case 89: + q = this; + x2t = 88; + break; + case 34: + this.yb = new R(b.Ca.Og); + this.Hi = void 0; + this.L_ = h.ka; + this.jm = c.duration; + this.FG = f || 0; + this.lO = this.kO = 0; + x2t = 28; + break; + case 14: + x2t = void 0 === this.Nt || void 0 === this.Nt.de ? 13 : 12; + break; + case 73: + d = this.UN(c, 0, g.ea, f, !1, d); + d.ci = g.ci; + d.Yab = !0; + d.DB = !0; + x2t = 69; + break; + case 42: + this.PO = this.lx = !1; + this.tn = d; + this.Kw = this.gG = void 0; + this.uka = 0; + this.rO = -1; + x2t = 37; + break; + case 47: + u.lp && (h && h.MT ? (h.bZa = u.bN.lv, h.dfb = u.bN.mx, this.Vo = new E(h.MT, h, this)) : this.Jp(v71)); + x2t = 46; + break; + case 64: + h && h.Ze && (this.On = !1); + this.R2 = this.On && 0 === a % u.n5; + this.vl = 0 === a % u.AB; + this.Ve = [Object.create(null), Object.create(null)]; + x2t = 60; + break; + case 51: + x2t = u.Oe && this.$a.Rc ? 50 : 49; + break; + case 56: + u.SQ && (this.aP = new n(u.pea.c, u.pea.maxc)); + this.XA = [0, 0]; + f = this.tG(c, 0, d, g.ci); + this.xd = new v(this, h, this.$a.Wa, u, this.Uua(), a); + this.mka = this.xd.Bhb.bind(this.xd); + this.aj.addEventListener(M71, this.mka); + x2t = 73; + break; + case 46: + u.Tx && (this.kO = this.FG + u.XAa, this.lO = O.time.da()); + a = Math.floor(1E6 * Math.random()); + this.On = 0 === a % u.o5 && 0 < u.KI.length; + x2t = 64; + break; + case 48: + this.Yf.on(this.$a.Rc, e71, function(a) { + var h2t, y71; + h2t = 2; + while (h2t !== 1) { + y71 = "me"; + y71 += "d"; + y71 += "iacache"; + switch (h2t) { + case 4: + Z(this, "", a); + h2t = 4; + break; + h2t = 1; + break; + case 2: + Z(this, y71, a); + h2t = 1; + break; + } + } + }.bind(this)); + x2t = 47; + break; + case 50: + this.Yf.on(this.$a.Rc, w71, function(a) { + var E2t; + E2t = 2; + while (E2t !== 1) { + switch (E2t) { + case 2: + Z(this, a.type, a); + E2t = 1; + break; + case 4: + Z(this, a.type, a); + E2t = 8; + break; + E2t = 1; + break; + } + } + }.bind(this)); + x2t = 49; + break; + case 28: + this.xn = c; + this.xc = 0; + this.$Y = l; + x2t = 42; + break; + case 85: + A.call(this); + x2t = 84; + break; + case 2: + this.W = new O.Console(R71, f71, "(" + h.sessionId + ")"); + this.Rb = this.W.error.bind(this.W); + this.fa = this.W.warn.bind(this.W); + x2t = 3; + break; + case 12: + u = this.RQa(c, u); + this.om = c.movieId + ""; + u.Tx && (k.V(u.u5) || 0 === u.u5.length || -1 === u.u5.indexOf(this.om)) && (u.Tx = !1); + this.K = u; + this.EO = g.G8; + x2t = 18; + break; + case 21: + this.ex = void 0; + this.$Ra = O.time.da() + g.RDb; + x2t = 34; + break; + case 90: + x2t = this.On ? 89 : 87; + break; + case 69: + d.vx = !0; + this.wa = [d]; + this.la = new y(this, this.xd, c.choiceMap, this.FG, u); + x2t = 66; + break; + case 3: + this.Hb = this.W.trace.bind(this.W); + this.Ua = this.W.log.bind(this.W); + this.$a = a; + this.Xj = h; + this.Nt = r; + x2t = 14; + break; + case 15: + this.qWa = g.IE; + this.rWa = g.GV; + this.WA = g.seb; + this.bB = g.RT; + this.KVa = g.uIb; + this.Li = [!0, !0]; + g.iJb ? this.Li[b.G.AUDIO] = !1 : g.FBb && (this.Li[b.G.VIDEO] = !1); + x2t = 21; + break; + case 88: + this.yb.addListener(function(a) { + var A2t, K2t; + A2t = 2; + while (A2t !== 1) { + switch (A2t) { + case 2: + try { + K2t = 2; + while (K2t !== 1) { + switch (K2t) { + case 2: + q.Xa.Grb.bind(q.Xa)(a); + K2t = 1; + break; + } + } + } catch (wd) { + var D71; + D71 = "Hindsight: "; + D71 += "Error when a"; + D71 += "dding u"; + D71 += "pdatePlaySegment Listener: "; + H4DD.q71(0); + q.Jp(H4DD.c71(D71, wd)); + } + A2t = 1; + break; + } + } + }); + x2t = 87; + break; + case 13: + this.Nt = { + path: h.Zb, + de: h.de, + x4: h.x4 + }; + x2t = 12; + break; + case 53: + this.emit = this.Ia = p.Ia; + this.Yf = new m(); + x2t = 51; + break; + case 60: + this.Ke = []; + h = this.Qia(c, this.Vh).G$a(); + a = null; + u.$H && (a = this.$a.ys.Qt); + x2t = 56; + break; + case 18: + this.Vh = g.ci; + this.lZ = g.NB; + this.ON = !1; + x2t = 15; + break; + case 86: + this.$ka = new z(this, u); + x2t = 85; + break; + } } - try { - r = d++; - u = { - idx: r, - method: m - }; - u.argsObj = l || {}; - n = new h.my(8E3, function() { - c.error("Plugin never called back", { - Method: m - }); - delete f[r]; - p({ - R: g.u.BCa + } + I2t = 2; + while (I2t !== 247) { + U01 = "1S"; + U01 += "IYb"; + U01 += "Z"; + U01 += "rNJCp9"; + switch (I2t) { + case 52: + c.prototype.pS = function(a, b) { + var s2t; + s2t = 2; + while (s2t !== 9) { + switch (s2t) { + case 2: + s2t = a === b ? 1 : 5; + break; + case 5: + a = this.wa[a]; + b = this.wa[b]; + s2t = 3; + break; + case 1: + return !0; + break; + case 3: + return a.ci && b.BJ || b.ci && a.BJ; + break; + } + } + }; + c.prototype.BC = function(a) { + var B2t; + B2t = 2; + while (B2t !== 1) { + switch (B2t) { + case 4: + return this.Ve[a]; + break; + B2t = 1; + break; + case 2: + return this.Ve[a]; + break; + } + } + }; + c.prototype.c4 = function(a) { + var L2t; + L2t = 2; + while (L2t !== 5) { + switch (L2t) { + case 1: + return { + Jc: a.Jc, $b: a.$b, Cd: a.Cd, Kc: a.Kc, Md: a.Md + }; + break; + case 2: + L2t = (a = this.la.ej.children[a]) ? 1 : 5; + break; + } + } + }; + c.prototype.Ora = function() { + var j2t, a; + j2t = 2; + while (j2t !== 4) { + switch (j2t) { + case 5: + return { + id: a.qa.id, Jc: a.Jc, $b: a.$b, Cd: a.Cd, Kc: a.Kc, Md: a.Md + }; + break; + case 2: + a = this.la.ej; + j2t = 5; + break; + } + } + }; + c.prototype.Ynb = function() { + var p2t; + p2t = 2; + while (p2t !== 5) { + switch (p2t) { + case 2: + this.EO = !1; + this.la.De.forEach(function(a) { + var U2t; + U2t = 2; + while (U2t !== 1) { + switch (U2t) { + case 4: + this.QN(a); + U2t = 2; + break; + U2t = 1; + break; + case 2: + this.QN(a); + U2t = 1; + break; + } + } + }.bind(this)); + p2t = 5; + break; + } + } + }; + c.prototype.Qaa = function(a, b) { + var g2t; + g2t = 2; + while (g2t !== 1) { + switch (g2t) { + case 4: + return this.la.Qaa(a, b); + break; + g2t = 1; + break; + case 2: + return this.la.Qaa(a, b); + break; + } + } + }; + c.prototype.RQa = function(a, b) { + var w2t, T71, P71, W71, J71, k71, N71, Z71, U71; + w2t = 2; + while (w2t !== 8) { + T71 = "u"; + T71 += "sing sab cell >"; + T71 += "= 100, pipelineEnabled: "; + P71 = "using"; + P71 += " sab cell >= 200, pip"; + P71 += "elineE"; + P71 += "nabled: "; + W71 = ", allow"; + W71 += "Swi"; + W71 += "tchb"; + W71 += "ack"; + J71 = ", probe"; + J71 += "DetailDenomina"; + J71 += "to"; + J71 += "r:"; + J71 += " "; + k71 = "using sab cell >= 3"; + k71 += "00, probeServ"; + k71 += "erWhenError: "; + N71 = ", a"; + N71 += "llow"; + N71 += "S"; + N71 += "wi"; + N71 += "tchback"; + Z71 = ", probeDetail"; + Z71 += "D"; + Z71 += "enomina"; + Z71 += "tor: "; + U71 = "using sab cel"; + U71 += "l >="; + U71 += " 400, probeServerWhenError: "; + switch (w2t) { + case 5: + w2t = !a ? 4 : 3; + break; + case 2: + b = P(b, a); + a = a.cdnResponseData; + w2t = 5; + break; + case 3: + (a = a.sessionABTestCell) && (a = a.split(".")) && 1 < a.length && (a = parseInt(a[1].replace(/cell/i, ""), 10), 400 <= a ? (b.set ? (b.set({ + probeServerWhenError: !0 + }), b.set({ + probeDetailDenominator: 1 + }), b.set({ + allowSwitchback: !0 + })) : (b.no = !0, b.dz = 1, b.ir = !0), this.Hb(U71 + b.no + Z71 + b.dz + N71 + b.ir)) : 300 <= a ? (b.set ? (b.set({ + probeServerWhenError: !0 + }), b.set({ + probeDetailDenominator: 1 + }), b.set({ + allowSwitchback: !1 + })) : (b.no = !0, b.dz = 1, b.ir = !1), this.Hb(k71 + b.no + J71 + b.dz + W71 + b.ir)) : 200 <= a ? (b.set ? b.set({ + pipelineEnabled: !1 + }) : b.ko = !1, this.Hb(P71 + b.ko)) : 100 <= a && (b.set ? (b.set({ + pipelineEnabled: !0 + }), b.set({ + maxParallelConnections: 1 + }), b.set({ + maxActiveRequestsPerSession: b.PS + }), b.set({ + maxPendingBufferLen: b.VS + })) : (b.ko = !0, b.AJ = 1, b.wJ = b.PS, b.lD = b.VS), this.Hb(T71 + b.ko))); + return b; + break; + case 4: + return b; + break; + } + } + }; + c.prototype.TQa = function(a, b) { + var S2t, d, f; + S2t = 2; + while (S2t !== 8) { + switch (S2t) { + case 2: + S2t = 1; + break; + case 1: + S2t = !b.I1 || a === this.LSa ? 5 : 4; + break; + case 4: + this.LSa = a; + for (var c in b.I1) + if (new RegExp(c).test(a)) { + d = b.I1[c]; + for (f in d) { + d.hasOwnProperty(f) && (b[f] = d[f]); + } + } return b; + break; + case 5: + return b; + break; + } + } + }; + c.prototype.UN = function(a, b, c, d, f, g) { + var Q2t, k, h, p, l, Q71, B71, s71; + Q2t = 2; + while (Q2t !== 9) { + Q71 = "networkFa"; + Q71 += "il"; + Q71 += "ureRese"; + Q71 += "t"; + B71 = "st"; + B71 += "rea"; + B71 += "min"; + B71 += "gFa"; + B71 += "ilure"; + s71 = "l"; + s71 += "og"; + s71 += "da"; + s71 += "t"; + s71 += "a"; + switch (Q2t) { + case 2: + k = this.K; + f ? (l = this.wa[this.wa.length - 1], h = l.z6, p = l.bo, l = l.nC, p.KG(a)) : (h = new m(), p = this.Qia(a, this.Vh), h.on(p, s71, function(a) { + var z5t; + z5t = 2; + while (z5t !== 1) { + switch (z5t) { + case 4: + Z(this, a.type, a); + z5t = 0; + break; + z5t = 1; + break; + case 2: + Z(this, a.type, a); + z5t = 1; + break; + } + } + }, this), l = new F(this, p, this.K), h.on(l, B71, this.ySa, this), h.on(l, Q71, this.vSa, this)); + k.lp && this.Vo && l.bob(this.Vo); + return new la(a, f, d, b, c, h, p, l, g); + break; + } + } + }; + c.prototype.zRa = function(a) { + var o5t; + o5t = 2; + while (o5t !== 1) { + switch (o5t) { + case 2: + return this.UN(a.Fa, a.U, a.ea, a.ge, a.replace, a.Gs); + break; + } + } + }; + c.prototype.nWa = function(a, b, c) { + var W5t; + W5t = 2; + while (W5t !== 4) { + switch (W5t) { + case 2: + a = a.P; + b.ib[a] = c; + c.Y && (b.yx[a] = c.Y.ep, b.kD[a] = c.Y.SS); + W5t = 4; + break; + } + } + }; + c.prototype.xRa = function() { + var q5t, a, b; + q5t = 2; + while (q5t !== 9) { + switch (q5t) { + case 2: + b = 0; + q5t = 1; + break; + case 3: + this.wa.length = 0; + q5t = 9; + break; + case 1: + q5t = b < this.wa.length ? 5 : 3; + break; + case 5: + a = this.wa[b], a.z6.clear(), a.Ld(); + q5t = 4; + break; + case 4: + ++b; + q5t = 1; + break; + } + } + }; + c.prototype.Qia = function(a, b) { + var l5t; + l5t = 2; + while (l5t !== 4) { + switch (l5t) { + case 2: + b = new q(this, this.$a.Wa, this.$a.ug, !b, this.K); + b.KG(a); + return b; + break; + } + } + }; + c.prototype.open = function() { + var m5t, a, c, d, f, g, h, m, p, l81, b81, p81, g81, Y81, n81, C71, r71, E71, L71; + m5t = 2; + while (m5t !== 44) { + l81 = "star"; + l81 += "t"; + l81 += "p"; + l81 += "la"; + l81 += "y"; + b81 = "logda"; + b81 += "t"; + b81 += "a"; + p81 = "Err"; + p81 += "o"; + p81 += "r:"; + g81 = "NFErr_MC_Str"; + g81 += "eam"; + g81 += "ingInitFailure"; + Y81 = "ex"; + Y81 += "c"; + Y81 += "eption "; + Y81 += "in"; + Y81 += " init"; + n81 = "Er"; + n81 += "r"; + n81 += "or"; + n81 += ":"; + C71 = "c"; + C71 += "reateMedi"; + C71 += "aSourceS"; + C71 += "tar"; + C71 += "t"; + r71 = "NFErr_MC"; + r71 += "_Stream"; + r71 += "ingIn"; + r71 += "itFail"; + r71 += "ure"; + E71 = "startPts mus"; + E71 += "t be"; + E71 += " a positive numb"; + E71 += "er, not "; + L71 = "cre"; + L71 += "ateMediaS"; + L71 += "ource"; + L71 += "End"; + switch (m5t) { + case 15: + m5t = m.readyState === O.MediaSource.Fb.OPEN ? 27 : 28; + break; + case 27: + this.Sq(L71); + m.ec || (m.ec = S.ec); + this.ze = m; + m5t = 24; + break; + case 5: + this.bk(E71 + this.FG, r71); + m5t = 44; + break; + case 8: + f = [Y.KM]; + this.Rf && (d.push(b.G.VIDEO), f.push(Y.VIDEO)); + this.Qi && (d.push(b.G.AUDIO), f.push(Y.AUDIO)); + f = this.yja(f); + m5t = 13; + break; + case 17: + this.Sq(C71); + m = new S(this.Nt); + m5t = 15; + break; + case 24: + m5t = !m.$_(d) ? 23 : 22; + break; + case 4: + a = this.K; + c = this.om; + d = []; + m5t = 8; + break; + case 32: + p = function() { + var K5t, m71; + K5t = 2; + while (K5t !== 5) { + m71 = "shutdo"; + m71 += "wn detected befo"; + m71 += "re "; + m71 += "startReque"; + m71 += "sts"; + switch (K5t) { + case 2: + this.XTa(); + this.ke() ? this.fa(m71) : this.RVa(c); + K5t = 5; + break; + } + } + }.bind(this); + m5t = 31; + break; + case 22: + m.sourceBuffers.forEach(function(b) { + var x5t, d, i71, z71, I71, j71, h71; + x5t = 2; + while (x5t !== 14) { + i71 = "managerde"; + i71 += "bug"; + i71 += "e"; + i71 += "v"; + i71 += "ent"; + z71 = "l"; + z71 += "o"; + z71 += "gda"; + z71 += "ta"; + I71 = "er"; + I71 += "r"; + I71 += "or"; + j71 = "req"; + j71 += "ues"; + j71 += "tAppende"; + j71 += "d"; + h71 = "h"; + h71 += "eader"; + h71 += "Appended"; + switch (x5t) { + case 2: + d = b.P; + b = new w(this.Xa.ob[d].W, d, c, m, b, this.Ve[d], a); + b.addEventListener(h71, this.tSa.bind(this)); + b.addEventListener(j71, this.wSa.bind(this)); + b.addEventListener(I71, function(a) { + var E5t, u71; + E5t = 2; + while (E5t !== 1) { + u71 = "NFErr_MC_St"; + u71 += "ream"; + u71 += "ingFai"; + u71 += "l"; + u71 += "ure"; + switch (E5t) { + case 4: + this.bk(a.errorstr, ""); + E5t = 3; + break; + E5t = 1; + break; + case 2: + this.bk(a.errorstr, u71); + E5t = 1; + break; + } + } + }.bind(this)); + b.addEventListener(z71, function(a) { + var h5t; + h5t = 2; + while (h5t !== 1) { + switch (h5t) { + case 4: + Z(this, a.type, a); + h5t = 7; + break; + h5t = 1; + break; + case 2: + Z(this, a.type, a); + h5t = 1; + break; + } + } + }.bind(this)); + x5t = 7; + break; + case 7: + a.Oe && b.addEventListener(i71, function(a) { + var A5t; + A5t = 2; + while (A5t !== 1) { + switch (A5t) { + case 2: + Z(this, a.type, a); + A5t = 1; + break; + case 4: + Z(this, a.type, a); + A5t = 6; + break; + A5t = 1; + break; + } + } + }.bind(this)); + this.Ke[d] = b; + x5t = 14; + break; + } + } + }.bind(this)); + this.vl && this.DTa(); + m5t = 35; + break; + case 13: + this.Tw = 0; + this.DVa(); + this.PO = !1; + g = a.NG; + this.$a.Rc && this.$a.Rc.OG(g, this.Xj.sessionId); + h = this.Pia(f); + f.forEach(function(a, b) { + var I5t; + I5t = 2; + while (I5t !== 1) { + switch (I5t) { + case 2: + a.type == Y.KM ? this.gG = h[b] : this.Xa.ob[a.type].Aj = h[b]; + I5t = 1; + break; + } + } + }.bind(this)); + m5t = 17; + break; + case 1: + m5t = !k.ja(this.FG) || 0 > this.FG ? 5 : 4; + break; + case 28: + this.Hb(n81, m.error), this.bk(Y81, g81); + m5t = 44; + break; + case 23: + throw this.Hb(p81, m.error), m.error; + m5t = 22; + break; + case 31: + a.K3a ? setTimeout(function() { + var F5t; + F5t = 2; + while (F5t !== 1) { + switch (F5t) { + case 4: + this.Eia(c).then(p); + F5t = 3; + break; + F5t = 1; + break; + case 2: + this.Eia(c).then(p); + F5t = 1; + break; + } + } + }.bind(this), 0) : this.Eia(c).then(function() { + var y5t; + y5t = 2; + while (y5t !== 1) { + switch (y5t) { + case 4: + setTimeout(p, 3); + y5t = 2; + break; + y5t = 1; + break; + case 2: + setTimeout(p, 0); + y5t = 1; + break; + } + } + }); + d = { + type: b81, + target: l81, + fields: { + audiogapconfig: a.eT, + audiogapdpi: this.ze.ec && this.ze.ec.eT + } + }; + this.emit(d.type, d); + m5t = 44; + break; + case 2: + m5t = 1; + break; + case 35: + this.xd.Chb(); + this.ON && (this.ON = !1, d = this.la.De[b.G.VIDEO], f = this.Xa.FI(d).ef, g = null, k.V(f) || (g = d.bc[f], g.pO && this.dja(!1)), (k.V(f) || k.V(g) || !g.pO) && this.dja(!0)); + this.VTa(); + m5t = 32; + break; + } + } + }; + c.prototype.dja = function(a) { + var P5t, c, o81, X81, F81, V81, O81, t81; + P5t = 2; + while (P5t !== 3) { + o81 = "ab"; + o81 += "o"; + o81 += "r"; + o81 += "ted"; + X81 = "s"; + X81 += "ucces"; + X81 += "s"; + F81 = "sk"; + F81 += "ipF"; + F81 += "ast"; + F81 += "p"; + F81 += "lay"; + V81 = "s"; + V81 += "kipF"; + V81 += "astpla"; + V81 += "y"; + O81 = "sta"; + O81 += "r"; + O81 += "tpl"; + O81 += "a"; + O81 += "y"; + t81 = "lo"; + t81 += "g"; + t81 += "da"; + t81 += "ta"; + switch (P5t) { + case 2: + c = { + type: t81, + target: O81, + fields: { + skipFastplayResult: "" + } + }; + this.KVa && !a && this.tn ? (this.emit(V81, { + type: F81 + }), this.Vh = !1, a = this.tG(this.xn, 0, this.tn, !1), a = this.UN(this.xn, this.su.U, this.su.ea, a), a.ci = !1, a.Yab = !0, a.Gs = this.tn, this.wa[this.xc] = a, c.Uc.Fob = X81) : (this.wa[this.xc].ge[b.G.VIDEO].bc.forEach(function(a) { + var H5t; + H5t = 2; + while (H5t !== 1) { + switch (H5t) { + case 2: + a.pO && a.Fe && (a.Fe = !1); + H5t = 1; + break; + } + } + }), c.Uc.Fob = o81); + Z(this, c.type, c); + P5t = 3; + break; + } + } + }; + c.prototype.flush = function() { + var a5t, R5t, a, c, d, f, g, c81, d81, G81, H81, x81, S81, A81, K81; + a5t = 2; + while (a5t !== 16) { + c81 = "en"; + c81 += "d"; + c81 += "p"; + c81 += "la"; + c81 += "y"; + d81 = "lo"; + d81 += "gda"; + d81 += "t"; + d81 += "a"; + G81 = "e"; + G81 += "ndp"; + G81 += "lay"; + H81 = "lo"; + H81 += "g"; + H81 += "d"; + H81 += "a"; + H81 += "ta"; + x81 = "t"; + x81 += "hroug"; + x81 += "hput"; + x81 += "-s"; + x81 += "w"; + S81 = "thr"; + S81 += "o"; + S81 += "ughput-"; + S81 += "sw"; + A81 = "thro"; + A81 += "ughp"; + A81 += "u"; + A81 += "t-sw"; + switch (a5t) { + case 12: + for (var k in f) { + K81 = "n"; + K81 += "e"; + f.hasOwnProperty(k) && (d[K81 + k] = Number(f[k]).toFixed(6)); + } + a5t = 11; + break; + case 20: + a.$H && c && ((f = c.get(!0)) && f[A81] && this.ys.$Wa({ + avtp: f[S81].za, + variance: f[x81].Kg + }), f && f.avtp && f.xk && f.xk.Oy && this.ys.WWa({ + avtp: f.avtp.za, + niqr: f.xk.Oy.toFixed(4) + }, f.avtp.hpa), a = this.ys.H8a(), c = this.ys.C$a(), a && (a.n = c, a = { + type: H81, + target: G81, + fields: { + ibef: a + } + }, Z(this, a.type, a), this.ys.save())); + this.vl && this.pka(); + a5t = 18; + break; + case 7: + c.flush(); + f = c.$8a(); + g = c.NWa; + a5t = 13; + break; + case 11: + g && g.length && (d.activeRequests = JSON.stringify(g)); + a5t = 10; + break; + case 13: + a5t = f ? 12 : 11; + break; + case 4: + a5t = c ? 3 : 20; + break; + case 10: + Object.keys(d).length && (d = { + type: d81, + target: c81, + fields: d + }, Z(this, d.type, d)); + a5t = 20; + break; + case 17: + try { + R5t = 2; + while (R5t !== 1) { + switch (R5t) { + case 2: + this.a3(b.Ca.yA); + R5t = 1; + break; + case 4: + this.a3(b.Ca.yA); + R5t = 0; + break; + R5t = 1; + break; + } + } + } catch (Ga) { + var q81; + q81 = "Hindsight: "; + q81 += "Error evaluating QoE at "; + q81 += "stopping: "; + H4DD.q71(0); + this.Jp(H4DD.c71(q81, Ga)); + } + a5t = 16; + break; + case 3: + d = {}; + f = c.get(!0); + f && f.avtp && f.avtp.za && (d.avtp = f.avtp.za, d.dltm = f.avtp.hpa); + a5t = 7; + break; + case 18: + a5t = this.On ? 17 : 16; + break; + case 2: + a = this.K; + c = this.$a.Wa; + a5t = 4; + break; + } + } + }; + c.prototype.paused = function() { + var u5t; + u5t = 2; + while (u5t !== 1) { + switch (u5t) { + case 2: + this.yb.value === b.Ca.xf && this.yb.set(b.Ca.Bq); + u5t = 1; + break; + } + } + }; + c.prototype.IBa = function() { + var J5t; + J5t = 2; + while (J5t !== 1) { + switch (J5t) { + case 2: + this.yb.value === b.Ca.Bq && this.yb.set(b.Ca.xf); + J5t = 1; + break; + } + } + }; + c.prototype.close = function() { + var v5t, a, b, M81, v81, a81; + v5t = 2; + while (v5t !== 17) { + M81 = "e"; + M81 += "nd"; + M81 += "p"; + M81 += "l"; + M81 += "ay"; + v81 = "l"; + v81 += "o"; + v81 += "gd"; + v81 += "a"; + v81 += "ta"; + a81 = "c"; + a81 += "l"; + a81 += "o"; + a81 += "s"; + a81 += "e"; + switch (v5t) { + case 13: + a[b] = a[b] ? a[b].toFixed(1) : 0; + v5t = 12; + break; + case 2: + a = this.K; + this.DUa = !0; + this.stop(); + this.emit(a81); + this.lx = !1; + v5t = 8; + break; + case 14: + v5t = b < a.length ? 13 : 11; + break; + case 7: + this.aP.Ar(); + v5t = 6; + break; + case 8: + v5t = a.SQ ? 7 : 20; + break; + case 6: + a = this.aP.gg([.25, .5, .75, .9, .95, .99]), b = 0; + v5t = 14; + break; + case 12: + b++; + v5t = 14; + break; + case 10: + Z(this, a.type, a); + v5t = 20; + break; + case 11: + a = { + type: v81, + target: M81, + fields: { + bridgestat: a + } + }; + v5t = 10; + break; + case 20: + this.$a.Rc && this.$a.Rc.OG(!0, this.Xj.sessionId, !0); + this.nwa(); + this.$a.WUa(this); + v5t = 17; + break; + } + } + }; + c.prototype.Ld = function() { + var Y5t, a, y81, e81; + Y5t = 2; + while (Y5t !== 11) { + y81 = "in"; + y81 += "a"; + y81 += "c"; + y81 += "tive"; + e81 = "Error "; + e81 += "on "; + e81 += "M"; + e81 += "edi"; + e81 += "aSource destroy: "; + switch (Y5t) { + case 4: + this.Jia(); + this.la.Ld(); + this.NRa(); + this.yb.set(b.Ca.xA); + this.xRa(); + this.Yf.clear(); + a = this.ze; + Y5t = 13; + break; + case 13: + this.ze = void 0; + k.V(a) || a.Nn() || this.fa(e81, a.error); + Y5t = 11; + break; + case 2: + this.aj.removeEventListener(y81, this.mka); + this.xd.shb(); + Y5t = 4; + break; + } + } + }; + c.prototype.suspend = function() { + var b5t; + b5t = 2; + while (b5t !== 1) { + switch (b5t) { + case 4: + this.ola = -5; + b5t = 4; + break; + b5t = 1; + break; + case 2: + this.ola = !0; + b5t = 1; + break; + } + } + }; + c.prototype.resume = function() { + var k5t; + k5t = 2; + while (k5t !== 5) { + switch (k5t) { + case 2: + this.ola = !1; + this.Yh(); + k5t = 5; + break; + } + } + }; + c.prototype.ke = function() { + var f5t; + f5t = 2; + while (f5t !== 1) { + switch (f5t) { + case 4: + return this.DUa && this.la.gcb; + break; + f5t = 1; + break; + case 2: + return this.DUa || this.la.gcb; + break; + } + } + }; + I2t = 73; + break; + case 2: + k = a(11); + a(14); + f = a(29); + p = f.EventEmitter; + m = f.dF; + l = a(74).cc; + n = a(207).TDigest; + q = a(353); + v = a(686); + y = a(672); + w = a(662); + t = a(661); + z = a(660); + E = a(658).iPa; + P = a(365); + F = a(657); + a(14); + la = a(654).iKa; + N = a(198); + O = a(8); + Y = O.Uz; + U = O.Eb; + I2t = 24; + break; + case 175: + c.prototype.bUa = function(a, b, c) { + var o31, w81; + o31 = 2; + while (o31 !== 5) { + w81 = "se"; + w81 += "gmentCompl"; + w81 += "e"; + w81 += "te"; + switch (o31) { + case 2: + a = { + type: w81, + mediaType: a, + manifestIndex: b, + segmentId: c.id + }; + Z(this, a.type, a); + o31 = 5; + break; + } + } + }; + c.prototype.ZZ = function(a, b) { + var W31, R81; + W31 = 2; + while (W31 !== 5) { + R81 = "la"; + R81 += "stSe"; + R81 += "gmentPts"; + switch (W31) { + case 2: + b = { + type: R81, + segmentId: a.id, + pts: Math.floor(b) + }; + a.JD || Z(this, b.type, b); + W31 = 5; + break; + } + } + }; + c.prototype.TTa = function(a, b, c, d, f) { + var q31, f81; + q31 = 2; + while (q31 !== 5) { + f81 = "m"; + f81 += "a"; + f81 += "ni"; + f81 += "festRange"; + switch (q31) { + case 2: + a = { + type: f81, + index: a, + manifestOffset: b, + startPts: Math.floor(c), + endPts: Math.floor(d), + maxPts: Math.floor(f) + }; + Z(this, a.type, a); + q31 = 5; + break; + } + } + }; + c.prototype.VTa = function() { + var l31, a, D81; + l31 = 2; + while (l31 !== 4) { + D81 = "ma"; + D81 += "x"; + D81 += "Bitrate"; + D81 += "s"; + switch (l31) { + case 1: + a = { + type: D81, + audio: this.XA[b.G.AUDIO], + video: this.XA[b.G.VIDEO] + }; + Z(this, a.type, a); + l31 = 4; + break; + case 2: + l31 = 1; + break; + } + } + }; + c.prototype.UTa = function(a, b, c) { + var m31, d, f, Z81, U81; + m31 = 2; + while (m31 !== 8) { + Z81 = "notif"; + Z81 += "yManifestSelect"; + Z81 += "e"; + Z81 += "d: "; + U81 = "manif"; + U81 += "est"; + U81 += "Sel"; + U81 += "ected"; + switch (m31) { + case 2: + d = this.K; + f = this.wa[a]; + a = { + type: U81, + index: a, + replace: b, + ptsStarts: c, + streamingOffset: f.U + f.Pm + }; + d.Oe && (b = Z81 + JSON.stringify(a), d.Oe && this.th(b)); + Z(this, a.type, a); + m31 = 8; + break; + } + } + }; + c.prototype.STa = function(a, b, c) { + var I31, d, N81; + I31 = 2; + while (I31 !== 9) { + N81 = "manif"; + N81 += "e"; + N81 += "stPr"; + N81 += "esenting"; + switch (I31) { + case 2: + d = this.wa[a]; + b = { + type: N81, + index: a, + pts: Math.floor(b), + movieId: d.R, + replace: d.replace, + contentOffset: c + }; + 0 < a && (b.previousMovieId = this.wa[a - 1].R); + Z(this, b.type, b); + I31 = 9; + break; + } + } + }; + c.prototype.mwa = function(a, b, c, d) { + var x31, f, g, k81; + x31 = 2; + while (x31 !== 13) { + k81 = "stre"; + k81 += "am"; + k81 += "Selecte"; + k81 += "d"; + switch (x31) { + case 2: + f = a.P; + b = this.wa[b].ge[f].Sl[c]; + g = this.Xa.ob[f]; + g.ii || (g.ii = {}); + x31 = 9; + break; + case 9: + g.ii.id = b.id; + g.ii.index = b.ef; + g.ii.O = b.O; + g.ii.location = b.location; + g.Yu && g.Yu === b || (a.rE.ppb(d, g.Yu, b), g.Yu = b, d = 0, b.Ga && b.Ga.zc && b.Ga.pa && (d = b.Ga.pa.za), g = a.Fc.Jc, a = { + type: k81, + nativetime: O.time.da(), + mediaType: f, + streamId: c, + manifestIndex: b.na, + trackIndex: b.Yo, + streamIndex: b.ef, + movieTime: Math.floor(a.Ra + g), + bandwidth: d, + longtermBw: d, + rebuffer: 0 + }, Z(this, a.type, a)); + x31 = 13; + break; + } + } + }; + c.prototype.eUa = function(a, b, c, d, f, g) { + var E31, J81; + E31 = 2; + while (E31 !== 5) { + J81 = "str"; + J81 += "eamPre"; + J81 += "sen"; + J81 += "ting"; + switch (E31) { + case 2: + a = { + type: J81, + startPts: Math.floor(b), + contentStartPts: Math.floor(c), + mediaType: a.P, + manifestIndex: d, + trackIndex: f, + streamIndex: g + }; + Z(this, a.type, a); + E31 = 5; + break; + } + } + }; + c.prototype.iUa = function(a) { + var h31, W81; + h31 = 2; + while (h31 !== 5) { + W81 = "vid"; + W81 += "e"; + W81 += "oLoop"; + W81 += "e"; + W81 += "d"; + switch (h31) { + case 2: + a = { + type: W81, + offset: a + }; + h31 = 1; + break; + case 1: + Z(this, a.type, a); + h31 = 5; + break; + } + } + }; + c.prototype.rka = function(a, c, d, f, g, k, h) { + var A31, B81, s81, T81, P81; + A31 = 2; + while (A31 !== 1) { + B81 = "a"; + B81 += "u"; + B81 += "di"; + B81 += "o"; + s81 = "v"; + s81 += "i"; + s81 += "de"; + s81 += "o"; + T81 = "lo"; + T81 += "c"; + T81 += "ati"; + T81 += "onSel"; + T81 += "ected"; + P81 = "locatio"; + P81 += "nSe"; + P81 += "lect"; + P81 += "ed"; + switch (A31) { + case 2: + Z(this, P81, { + type: T81, + mediatype: a === b.G.VIDEO ? s81 : B81, + location: c, + locationlv: d, + serverid: f, + servername: g, + selreason: k, + seldetail: h + }); + A31 = 1; + break; + } + } + }; + c.prototype.tka = function(a, c, d, f, g) { + var K31, k, h, E81, L81, Q81; + K31 = 2; + while (K31 !== 14) { + E81 = "ser"; + E81 += "verS"; + E81 += "witc"; + E81 += "h"; + L81 = "a"; + L81 += "u"; + L81 += "di"; + L81 += "o"; + Q81 = "v"; + Q81 += "i"; + Q81 += "d"; + Q81 += "e"; + Q81 += "o"; + switch (K31) { + case 2: + a = a.P; + k = a == b.G.VIDEO ? Q81 : L81; + h = this.$a.Wa.get(!1); + K31 = 3; + break; + case 3: + c = { + type: E81, + mediatype: k, + server: c, + reason: d, + location: f, + bitrate: g, + confidence: h.zc + }; + h.zc && (c.throughput = h.pa.za); + K31 = 8; + break; + case 8: + d = this.Xa.ob[a]; + d.ry && (c.oldserver = d.ry); + Z(this, c.type, c); + K31 = 14; + break; + } + } + }; + c.prototype.gUa = function(a, b, c) { + var F31, r81; + F31 = 2; + while (F31 !== 5) { + r81 = "updateStr"; + r81 += "e"; + r81 += "a"; + r81 += "mingPts"; + switch (F31) { + case 2: + a = { + type: r81, + manifestIndex: a, + trackIndex: b, + movieTime: Math.floor(c) + }; + Z(this, a.type, a); + F31 = 5; + break; + } + } + }; + c.prototype.MTa = function(a) { + var y31, C81; + y31 = 2; + while (y31 !== 5) { + C81 = "firstRequestAppe"; + C81 += "nd"; + C81 += "ed"; + switch (y31) { + case 2: + a = { + type: C81, + mediatype: a.P, + time: O.time.da() + }; + Z(this, a.type, a); + y31 = 5; + break; + } + } + }; + c.prototype.RTa = function() { + var P31, a, c, j81, h81, m81; + P31 = 2; + while (P31 !== 3) { + j81 = "ini"; + j81 += "tialA"; + j81 += "udio"; + j81 += "Tr"; + j81 += "ack"; + h81 = "over nu"; + h81 += "mber of track"; + h81 += "s:"; + m81 = "audioT"; + m81 += "rackIndex"; + m81 += ":"; + switch (P31) { + case 2: + a = this.tn[b.G.AUDIO]; + c = this.xn.audio_tracks; + a > c.length ? this.fa(m81, a, h81, c.length) : (a = { + type: j81, + trackId: c[a].track_id, + trackIndex: a + }, Z(this, a.type, a)); + P31 = 3; + break; + } + } + }; + c.prototype.FTa = function(a, b, c) { + var H31, I81; + H31 = 2; + while (H31 !== 9) { + I81 = "audio"; + I81 += "Tra"; + I81 += "ckSwi"; + I81 += "tch"; + I81 += "Started"; + switch (H31) { + case 2: + a = a.audio_tracks; + b = a[b]; + c = a[c]; + c = { + type: I81, + oldLangCode: b.language, + oldNumChannels: b.channels, + newLangCode: c.language, + newNumChannels: c.channels + }; + H31 = 3; + break; + case 3: + Z(this, c.type, c); + H31 = 9; + break; + } + } + }; + c.prototype.ETa = function(a) { + var a31; + a31 = 2; + while (a31 !== 1) { + switch (a31) { + case 2: + setTimeout(function() { + var R31, b, u81; + R31 = 2; + while (R31 !== 4) { + u81 = "au"; + u81 += "dioTrack"; + u81 += "Swi"; + u81 += "tchComplet"; + u81 += "e"; + switch (R31) { + case 2: + b = { + type: u81, + trackId: a.Tb, + trackIndex: a.uf + }; + R31 = 5; + break; + case 5: + Z(this, b.type, b); + R31 = 4; + break; + case 7: + Z(this, b.type, b); + R31 = 1; + break; + R31 = 4; + break; + } + } + }.bind(this), 0); + a31 = 1; + break; + } + } + }; + c.prototype.dUa = function(a, b) { + var u31, z81; + u31 = 2; + while (u31 !== 5) { + z81 = "cur"; + z81 += "re"; + z81 += "ntStreamInfeasibl"; + z81 += "e"; + switch (u31) { + case 2: + a = { + type: z81, + oldBitrate: a, + newBitrate: b + }; + Z(this, a.type, a); + u31 = 5; + break; + } + } + }; + c.prototype.tSa = function(a) { + var J31, b; + J31 = 2; + while (J31 !== 8) { + switch (J31) { + case 5: + a = this.wa[a.manifestIndex].ge[b].Sl[a.streamId]; + this.yVa(this.la.Bf.fi(b), a); + this.K = this.TQa(a.Me, this.K); + this.wa.forEach(function(a, b) { + var v31; + v31 = 2; + while (v31 !== 1) { + switch (v31) { + case 2: + a.e5 || 0 === b || this.MO(a.R, b, a.ge); + v31 = 1; + break; + } + } + }.bind(this)); + J31 = 8; + break; + case 2: + b = a.mediaType; + J31 = 5; + break; + } + } + }; + c.prototype.wSa = function(a) { + var Y31, b; + Y31 = 2; + while (Y31 !== 8) { + switch (Y31) { + case 2: + a = a.request; + b = a.cf; + b.osa = !0; + a.jR && this.MTa(a); + a.Cp && this.bUa(b.P, a.na, b.Fc.qa); + Y31 = 8; + break; + } + } + }; + c.prototype.yVa = function(a, b) { + var b31; + b31 = 2; + while (b31 !== 1) { + switch (b31) { + case 2: + this.Xa.ob[a.P].ao = { + id: b.id, + index: b.ef, + O: b.O, + pa: b.Ga && b.Ga.zc && b.Ga.pa ? b.Ga.pa.za : 0, + location: b.location + }; + b31 = 1; + break; + } + } + }; + c.prototype.IZ = function(a, b, c) { + var k31; + k31 = 2; + while (k31 !== 6) { + switch (k31) { + case 9: + a.upa = !0; + k31 = 8; + break; + case 5: + a = this.Xa.ob[a.P]; + k31 = 4; + break; + case 2: + k31 = !c || c.vk && c.Yna ? 1 : 6; + break; + case 1: + k31 = c ? 5 : 8; + break; + case 8: + this.KTa(b, c); + this.pB(this.xc + 1); + k31 = 6; + break; + case 4: + k31 = a.upa ? 3 : 9; + break; + case 3: + return; + break; + } + } + }; + c.prototype.ITa = function(a) { + var f31, b, n11, i81; + f31 = 2; + while (f31 !== 9) { + n11 = "s"; + n11 += "t"; + n11 += "artBu"; + n11 += "fferi"; + n11 += "ng"; + i81 = "b"; + i81 += "uffe"; + i81 += "r"; + i81 += "ingStarte"; + i81 += "d"; + switch (f31) { + case 2: + b = { + type: i81, + time: O.time.da(), + percentage: a || 0 + }; + Z(this, b.type, b); + this.emit(n11); + f31 = 3; + break; + case 3: + this.OZ = a || 0; + f31 = 9; + break; + } + } + }; + c.prototype.GTa = function() { + var C31, a, c, d, f, Y11; + C31 = 2; + while (C31 !== 6) { + Y11 = "buf"; + Y11 += "fe"; + Y11 += "ring"; + switch (C31) { + case 3: + d = this.Rf ? d.fi(b.G.VIDEO) : d.fi(b.G.AUDIO); + f = d.Zd; + a = Math.min(Math.max(Math.round(100 * (d.uJ ? (c - this.fZ) / a.LD : d.oi ? d.oi : f / a.ki)), this.OZ), 99); + a != this.OZ && (c = { + type: Y11, + time: c, + percentage: a + }, Z(this, c.type, c), this.OZ = a); + C31 = 6; + break; + case 2: + C31 = 1; + break; + case 1: + a = this.K; + c = O.time.da(); + d = this.la.Bf; + C31 = 3; + break; + } + } + }; + I2t = 191; + break; + case 191: + c.prototype.HTa = function() { + var e31, a, c, d, f, g, g11; + e31 = 2; + while (e31 !== 11) { + g11 = "bu"; + g11 += "fferi"; + g11 += "ng"; + g11 += "Complete"; + switch (e31) { + case 4: + d = c[b.G.AUDIO]; + f = c[b.G.VIDEO]; + this.qka(); + c = this.Rf ? this.Xa.ob[b.G.VIDEO] : this.Xa.ob[b.G.AUDIO]; + e31 = 7; + break; + case 7: + g = c.gH; + d = { + type: g11, + time: O.time.da(), + actualStartPts: g, + aBufferLevelMs: d ? d.Zd : 0, + vBufferLevelMs: f ? f.Zd : 0, + selector: f ? f.Eza : d.Eza, + initBitrate: c.zl, + skipbackBufferSizeBytes: this.$a.LVa + }; + this.xd.U6a({ + initSelReason: c.Yn, + initSelectionPredictedDelay: c.UI, + buffCompleteReason: c.Wma, + hashindsight: !!this.On, + hasasereport: !!this.vl + }); + e31 = 13; + break; + case 2: + a = this.K; + c = this.la.De; + e31 = 4; + break; + case 13: + Z(this, d.type, d); + a.yQ && (this.g_ = !0); + e31 = 11; + break; + } + } + }; + c.prototype.Q5 = function(a) { + var N31, c, d, f, g; + N31 = 2; + while (N31 !== 13) { + switch (N31) { + case 9: + g = d[b.G.VIDEO]; + d = d[b.G.AUDIO]; + g && d && (c.vspts = g.Ra, c.aspts = d.Ra, c.vbuflbytes = g.gu, c.abuflbytes = d.gu, c.vbuflmsec = g.Zd, c.abuflmsec = d.Zd, a && (c.a = d.Oa.Y.toJSON(), c.v = g.Oa.Y.toJSON())); + N31 = 6; + break; + case 3: + N31 = d ? 9 : 14; + break; + case 2: + c = {}; + d = this.la.De; + f = this.Ke; + N31 = 3; + break; + case 6: + a && f && (a = f[b.G.VIDEO], f = f[b.G.AUDIO], a && f && (c.atoappend = JSON.stringify(a.Zh), c.vtoappend = JSON.stringify(f.Zh))); + N31 = 14; + break; + case 14: + return c; + break; + } + } + }; + c.prototype.qka = function() { + var T31, a, c, d, f, g, k, p11; + T31 = 2; + while (T31 !== 10) { + p11 = "u"; + p11 += "pdateBuffe"; + p11 += "rLevel"; + switch (T31) { + case 4: + c = this.la.De; + d = c[b.G.AUDIO]; + T31 = 9; + break; + case 2: + a = this.K; + T31 = 5; + break; + case 6: + this.xd.QWa(g, c); + k = this.$a.Wa.get(!1); + d = { + type: p11, + abuflbytes: d ? d.gu : 0, + vbuflbytes: f ? f.gu : 0, + totalabuflmsecs: g, + totalvbuflmsecs: c, + predictedFutureRebuffers: 0, + currentBandwidth: k.zc ? k.pa.za : 0 + }; + T31 = 12; + break; + case 12: + c > a.Hva && this.$a.Rc && this.$a.Rc.OG(!0, this.Xj.sessionId); + Z(this, d.type, d); + T31 = 10; + break; + case 5: + T31 = !this.ke() ? 4 : 10; + break; + case 9: + f = c[b.G.VIDEO]; + g = d ? d.Zd : 0; + c = f ? f.Zd : 0; + T31 = 6; + break; + } + } + }; + c.prototype.USa = function(a) { + var D31, b, c, d, F11, V11, O11, t11, l11, b11; + D31 = 2; + while (D31 !== 13) { + F11 = ", sy"; + F11 += "stem"; + F11 += "De"; + F11 += "lta: "; + V11 = "memoryUsa"; + V11 += "ge a"; + V11 += "t time"; + V11 += ": "; + O11 = ", o"; + O11 += "sAllocat"; + O11 += "orDelta: "; + t11 = ", jsHea"; + t11 += "pDelt"; + t11 += "a: "; + l11 = ", fa"; + l11 += "st"; + l11 += "MallocDelta: "; + b11 = "memoryUsag"; + b11 += "e at tim"; + b11 += "e: "; + switch (D31) { + case 3: + b = a.gqa - this.YA.gqa; + c = a.Dsa - this.YA.Dsa; + d = a.Qwa - this.YA.Qwa; + (4194304 < b || 4194304 < d) && this.fa(b11 + O.time.da() + l11 + b + t11 + c + O11 + d); + D31 = 6; + break; + case 1: + D31 = !k.V(a) ? 5 : 13; + break; + case 5: + k.ja(a.mL); + D31 = 4; + break; + case 6: + k.ja(a.mL) && k.ja(this.YA.mL) && (b = a.mL - this.YA.mL, 4194304 < b && this.fa(V11 + O.time.da(), F11 + b)); + D31 = 14; + break; + case 14: + this.YA = a; + D31 = 13; + break; + case 4: + D31 = !k.V(this.YA) ? 3 : 14; + break; + case 2: + D31 = 1; + break; + } + } + }; + c.prototype.J$a = function(a) { + var d31, b, c, d, f, g, k; + d31 = 2; + while (d31 !== 13) { + switch (d31) { + case 2: + d31 = 1; + break; + case 1: + b = this.la.Bf.fi(a); + d31 = 5; + break; + case 4: + c = this.Xa.ob[a]; + d = b.Fs; + c = c.ao ? c.ao.O : 0; + f = b.Oa.axa; + g = this.la.Jc; + d31 = 6; + break; + case 5: + d31 = b ? 4 : 13; + break; + case 6: + k = this.Ej()[a]; + return { + type: a, availableMediaBuffer: k - d, completeBuffer: b.Zd, incompleteBuffer: f, playbackBitrate: b.rxa, streamingBitrate: c, streamingTime: b.Ra + g, usedMediaBuffer: d, toappend: b.Fsb + }; + break; + } + } + }; + c.prototype.hUa = function() { + var O31, a, X11; + O31 = 2; + while (O31 !== 9) { + X11 = "str"; + X11 += "eamin"; + X11 += "gs"; + X11 += "tat"; + switch (O31) { + case 2: + this.K.beb && O.memory.l9a(this.USa.bind(this)); + O31 = 5; + break; + case 5: + a = { + type: X11, + time: O.time.da(), + playbackTime: this.de() + }; + this.xd.V6a(a); + Z(this, a.type, a); + O31 = 9; + break; + } + } + }; + c.prototype.pka = function() { + var r31, a, o11; + r31 = 2; + while (r31 !== 4) { + o11 = "a"; + o11 += "ser"; + o11 += "eport"; + switch (r31) { + case 2: + a = { + type: o11 + }; + this.$ka.T6a(a) && Z(this, a.type, a); + r31 = 4; + break; + } + } + }; + c.prototype.DTa = function() { + var n31, a, K11; + n31 = 2; + while (n31 !== 4) { + K11 = "aserepo"; + K11 += "r"; + K11 += "tenab"; + K11 += "led"; + switch (n31) { + case 2: + a = { + type: K11 + }; + Z(this, a.type, a); + n31 = 4; + break; + } + } + }; + c.prototype.QTa = function(a) { + var t31, b, c, d, f, g, k, h, m, p, l, r, n, u, q, v, x, y, w, t, z, A11, G11, H11, x11, S11; + t31 = 2; + while (t31 !== 7) { + A11 = "hin"; + A11 += "ds"; + A11 += "ight"; + A11 += "report"; + switch (t31) { + case 2: + t31 = 1; + break; + case 1: + t31 = a ? 5 : 7; + break; + case 5: + b = { + type: A11 + }; + c = this.K.KI; + for (d in c) { + G11 = "h"; + G11 += "v"; + G11 += "mafdp"; + H11 = "h"; + H11 += "v"; + H11 += "ma"; + H11 += "f"; + H11 += "gr"; + x11 = "h"; + x11 += "vmaf"; + x11 += "tb"; + S11 = "h"; + S11 += "t"; + S11 += "w"; + S11 += "b"; + S11 += "r"; + f = c[d]; + g = 0; + k = 0; + h = 0; + m = 0; + p = 0; + l = 0; + u = !1; + q = -1; + v = -1; + x = -1; + y = -1; + w = -1; + t = -1; + for (z in a) { + n = a[z]; + void 0 === n.nd && (r = (r = n.sols) && r[f]) && (u = !0, h += r.dlvdur, g += r.dltwbr * r.dlvdur, k += r.dlvmaf * r.dlvdur); + l += n.pbdur; + m += n.pbtwbr * n.pbdur; + p += n.pbvmaf * n.pbdur; + r = n.rr; + n = n.ra; + } + 0 < l && (q = 1 * m / l, y = 1 * p / l); + u && (0 < h && (v = 1 * g / h, w = 1 * k / h), 0 < h + l && (x = 1 * (g + m) / (h + l), t = 1 * (k + p) / (h + l))); + switch (f) { + case S11: + b.htwbr = x; + b.hptwbr = v; + b.pbtwbr = q; + r && (b.rr = r, b.ra = n); + break; + case x11: + b.hvmaftb = t; + b.hpvmaftb = w; + b.pbvmaftb = y; + r && (b.rrvmaftb = r, b.ravmaftb = n); + break; + case H11: + b.hvmafgr = t; + b.hpvmafgr = w; + b.pbvmafgr = y; + r && (b.rrvmafgr = r, b.ravmafgr = n); + break; + case G11: + b.hvmafdp = t, b.hpvmafdp = w, b.pbvmafdp = y, r && (b.rrvmafdp = r, b.ravmafdp = n); + } + } + t31 = 9; + break; + case 9: + this.R2 && (b.report = a); + Z(this, b.type, b); + t31 = 7; + break; + } + } + }; + c.prototype.LTa = function(a) { + var c31, b, q11, c11, d11; + c31 = 2; + while (c31 !== 6) { + q11 = "e"; + q11 += "ndO"; + q11 += "f"; + q11 += "Stre"; + q11 += "am"; + c11 = " le"; + c11 += "ngth"; + c11 += ": "; + d11 = "notifyEndOfStre"; + d11 += "am i"; + d11 += "gn"; + d11 += "ored, "; + d11 += "more manifests, index: "; + switch (c31) { + case 1: + c31 = !a.qq ? 5 : 6; + break; + case 4: + a.fa(d11 + this.xc + c11 + this.wa.length); + c31 = 6; + break; + case 2: + c31 = 1; + break; + case 5: + c31 = this.xc + 1 < this.wa.length ? 4 : 3; + break; + case 9: + b = { + type: q11, + mediaType: a.P + }; + Z(this, b.type, b); + a.qq = !0; + c31 = 6; + break; + case 3: + this.Ke[a.P].d8(); + c31 = 9; + break; + } + } + }; + c.prototype.JTa = function(a) { + var Z31, a11; + Z31 = 2; + while (Z31 !== 5) { + a11 = "cr"; + a11 += "eatere"; + a11 += "q"; + a11 += "ues"; + a11 += "t"; + switch (Z31) { + case 2: + a = { + type: a11, + mediaRequest: a + }; + Z(this, a.type, a); + Z31 = 5; + break; + } + } + }; + c.prototype.Zlb = function() { + var V31, a, v11; + V31 = 2; + while (V31 !== 4) { + v11 = "requestGarba"; + v11 += "geC"; + v11 += "o"; + v11 += "llectio"; + v11 += "n"; + switch (V31) { + case 2: + a = { + type: v11, + time: O.time.da() + }; + Z(this, a.type, a); + V31 = 4; + break; + } + } + }; + c.prototype.th = function(a) { + var X31, e11, M11; + X31 = 2; + while (X31 !== 5) { + e11 = ","; + e11 += " "; + M11 = "ma"; + M11 += "nagerd"; + M11 += "ebugevent"; + switch (X31) { + case 2: + a = { + type: M11, + message: "@" + O.time.da() + e11 + a + }; + Z(this, a.type, a); + X31 = 5; + break; + } + } + }; + c.prototype.bk = function(a, b, c, d, f) { + var G31, y11; + G31 = 2; + while (G31 !== 1) { + y11 = "NF"; + y11 += "E"; + y11 += "rr_M"; + y11 += "C_"; + y11 += "StreamingFailure"; + switch (G31) { + case 2: + this.lx || (k.V(b) && (b = y11), this.lx = !0, this.fUa(b, a, c, d, f)); + G31 = 1; + break; + } + } + }; + c.prototype.ySa = function(a) { + var M31, c, f, g, T11, P11, W11, J11, k11, N11, Z11, U11, D11, f11, R11, w11; + M31 = 2; + while (M31 !== 7) { + T11 = " > "; + T11 += "Resetting fa"; + T11 += "ilures"; + P11 = "NFEr"; + P11 += "r_MC_St"; + P11 += "reamin"; + P11 += "gF"; + P11 += "ailure"; + W11 = "Temp"; + W11 += "or"; + W11 += "ar"; + W11 += "y failure while bufferin"; + W11 += "g"; + J11 = " >"; + J11 += " We are"; + J11 += " bufferi"; + J11 += "ng, call"; + J11 += "ing it!"; + k11 = "NFErr_MC_S"; + k11 += "tre"; + k11 += "amingFailure"; + N11 = "Pe"; + N11 += "r"; + N11 += "manent failu"; + N11 += "re"; + Z11 = " >"; + Z11 += " Permanent "; + Z11 += "f"; + Z11 += "ailure, don"; + Z11 += "e"; + U11 = ", l"; + U11 += "ast nat"; + U11 += "i"; + U11 += "ve code"; + U11 += ": "; + D11 = ", last "; + D11 += "ht"; + D11 += "t"; + D11 += "p c"; + D11 += "ode: "; + f11 = ", last erro"; + f11 += "r "; + f11 += "code: "; + R11 = " is perm"; + R11 += "ane"; + R11 += "nt: "; + w11 = "Stre"; + w11 += "aming fai"; + w11 += "lure, state is "; + switch (M31) { + case 2: + c = a.vcb; + f = a.Vhb; + g = a.Whb; + M31 = 3; + break; + case 3: + a = a.Xhb; + M31 = 9; + break; + case 9: + this.fa(w11 + b.Ca.name[this.yb.value] + R11 + c + f11 + f + D11 + g + U11 + a); + c ? (this.fa(Z11), this.bk(N11, k11, f, g, a)) : d(this.yb.value) ? (this.fa(J11), this.bk(W11, P11, a, g, a)) : (this.fa(T11), this.su.nC.DK()); + M31 = 7; + break; + } + } + }; + c.prototype.vSa = function() { + var i31, s11; + i31 = 2; + while (i31 !== 3) { + s11 = "Netw"; + s11 += "ork f"; + s11 += "ailure"; + s11 += "s reset!"; + switch (i31) { + case 2: + this.fa(s11); + this.lx = !1; + this.H_(); + this.Yh(); + i31 = 3; + break; + } + } + }; + c.prototype.QUa = function(a) { + var s31, b; + s31 = 2; + while (s31 !== 9) { + switch (s31) { + case 2: + b = this.K.aK.fallbackBound; + void 0 === this.nP && (this.nP = []); + s31 = 4; + break; + case 4: + void 0 === this.nP[a] && (this.nP[a] = Math.floor(2 * Math.random() * b) - b); + return this.nP[a]; + break; + } + } + }; + c.prototype.Jja = function(a, b) { + var B31, g, c, d, f, k, h11, m11, C11, r11, E11, L11, Q11, B11; + B31 = 2; + while (B31 !== 21) { + h11 = "fra"; + h11 += "gment co"; + h11 += "unt:"; + m11 = ", but no header"; + m11 += "s seen, marking pipe"; + m11 += "line drmRe"; + m11 += "ady"; + C11 = "drm "; + C11 += "heade"; + C11 += "r h"; + C11 += "eader: "; + r11 = ", off"; + r11 += "s"; + r11 += "et:"; + r11 += " "; + E11 = ", d"; + E11 += "ur"; + E11 += "a"; + E11 += "t"; + E11 += "ion: "; + L11 = ", sta"; + L11 += "rt"; + L11 += "Pt"; + L11 += "s: "; + Q11 = "frag"; + Q11 += "me"; + Q11 += "n"; + Q11 += "t:"; + Q11 += " "; + B11 = "syn"; + B11 += "thesized pe"; + B11 += "r chunk vmafs: "; + switch (B31) { + case 16: + H4DD.q71(0); + a.Hb(H4DD.c71(B11, c)); + B31 = 15; + break; + case 12: + B31 = c.aK && c.aK.enabled && void 0 === d.iq && c.aK.simulatedFallback ? 11 : 27; + break; + case 7: + B31 = g < f ? 6 : 12; + break; + case 15: + d.fob(c); + B31 = 27; + break; + case 19: + B31 = g < f ? 18 : 16; + break; + case 13: + ++g; + B31 = 7; + break; + case 14: + a.Hb(Q11 + g + L11 + k.U + E11 + k.duration + r11 + k.offset); + B31 = 13; + break; + case 11: + f = d.length; + c = []; + B31 = 20; + break; + case 4: + B31 = c.f2 ? 3 : 12; + break; + case 27: + this.mia(a, b); + b.Ne && (a.Ne = b.Ne, this.IZ(a, b.na, a.Ne)); + b.Qx && !b.K4a && (a.fa(C11 + b.toString() + m11), this.LQ(this.wa[b.na].R), this.IZ(a, b.na)); + b.nE && (a.aV = void 0); + this.Ke[b.P].Kgb(); + this.ija(); + B31 = 21; + break; + case 8: + g = 0; + B31 = 7; + break; + case 6: + k = d.get(g); + B31 = 14; + break; + case 18: + c[g] = Math.max(0, b.stream.oc + this.QUa(g)); + B31 = 17; + break; + case 17: + ++g; + B31 = 19; + break; + case 20: + g = 0; + B31 = 19; + break; + case 2: + c = this.K; + d = b.Y; + B31 = 4; + break; + case 3: + f = d.length; + a.Hb(h11, f); + B31 = 8; + break; + } + } + }; + c.prototype.tG = function(a, c, d, f, g, k) { + var L31, h, m, p, l, r, I11, j11; + L31 = 2; + while (L31 !== 13) { + I11 = "vide"; + I11 += "o_t"; + I11 += "rack"; + I11 += "s"; + j11 = "a"; + j11 += "udio"; + j11 += "_trac"; + j11 += "ks"; + switch (L31) { + case 2: + h = this.K; + m = []; + p = [j11, I11]; + L31 = 3; + break; + case 7: + p.forEach(function(k, p) { + var j31, n, u, q, v, x, y; + j31 = 2; + while (j31 !== 11) { + switch (j31) { + case 4: + j31 = this.Li[p] ? 3 : 11; + break; + case 14: + x.forEach(function(b, d) { + var p31, g, k, m; + p31 = 2; + while (p31 !== 8) { + switch (p31) { + case 3: + h.kV.enabled && h.kV.profiles && h.kV.profiles.forEach(function(a) { + var U31; + U31 = 2; + while (U31 !== 1) { + switch (U31) { + case 2: + m[a] = { + action: h.kV.action, + applied: !1 + }; + U31 = 1; + break; + } + } + }); + k.forEach(function(a, b) { + var g31, d, l, u, x, y, w, z11, u11, h61; + g31 = 2; + while (g31 !== 27) { + z11 = "n"; + z11 += "o"; + z11 += "n"; + z11 += "e"; + u11 = "ke"; + u11 += "e"; + u11 += "pLow"; + u11 += "es"; + u11 += "t"; + switch (g31) { + case 2: + l = a.downloadable_id; + g31 = 5; + break; + case 13: + g31 = u < h.Eva || u > h.Rua ? 12 : 11; + break; + case 5: + u = a.bitrate; + x = a.vmaf; + y = a.content_profile; + w = { + inRange: !0, + Fe: !0 + }; + g31 = 8; + break; + case 18: + f && h.L6a && 0 === c ? (x = 1, b < k.length - 1 && a.O == k[b + 1].O && x++, 0 < b && a.O == k[b - 1].O && x++, d && 1 == x && (this.ON = w.Fe = !0)) : this.ON = !1; + g31 = 17; + break; + case 10: + w.inRange = !1; + g31 = 20; + break; + case 12: + w.inRange = !1; + g31 = 11; + break; + case 11: + g31 = x < h.Fva || x > h.Sua ? 10 : 20; + break; + case 8: + g31 = n ? 7 : 17; + break; + case 20: + m.hasOwnProperty(y) && u11 === m[y].action && (m[y].applied ? w.inRange = !1 : m[y].applied = !0); + r = r || d; + g31 = 18; + break; + case 7: + H4DD.a71(1); + h61 = H4DD.c71(1, 3, 16, 19); + d = h61 == a.content_profile.indexOf(z11); + w.Fe = f && !d || !f && d; + w.Fe && this.xia && G(this.sia(a.content_profile, a.bitrate, this.xia), w); + g31 = 13; + break; + case 17: + w.inRange && w.Fe && u > this.XA[p] && (this.XA[p] = u); + v[l] = H.M3(g, b, w, this.K, this.W); + (a = q && q[l]) && a.Mc && (v[l].dQ(a), b = this.Ej()[p], v[l].Al = v[l].yS(a.Y, this.K.JJ, b)); + g31 = 27; + break; + } + } + }, this); + p31 = 8; + break; + case 2: + g = T.uR(c, a, p, d, void 0, this.W); + k = b.streams; + m = {}; + p31 = 3; + break; + } + } + }, this); + x = y.streams.map(function(a) { + var w31; + w31 = 2; + while (w31 !== 1) { + switch (w31) { + case 2: + return v[a.downloadable_id]; + break; + case 4: + return v[a.downloadable_id]; + break; + w31 = 1; + break; + } + } + }); + m[p] = { + uf: k, + Yo: k + (u ? l : 0), + bc: x, + Sl: v, + inb: y, + Me: void 0 + }; + j31 = 11; + break; + case 2: + n = p === b.G.VIDEO; + u = p === b.G.AUDIO; + j31 = 4; + break; + case 3: + q = g ? g[p].Sl : void 0; + v = {}; + x = a[k]; + k = d[p]; + y = x[k]; + j31 = 14; + break; + } + } + }, this); + r && m[1] && m[1].bc && m[1].bc.forEach(function(a) { + var S31; + S31 = 2; + while (S31 !== 1) { + switch (S31) { + case 2: + a.Fl || (a.ci = !0); + S31 = 1; + break; + } + } + }); + return m; + break; + case 3: + l = a[p[1]].length; + k === b.G.AUDIO && p.pop(); + r = !1; + L31 = 7; + break; + } + } + }; + c.prototype.xSa = function(a, b) { + var Q31; + Q31 = 2; + while (Q31 !== 1) { + switch (Q31) { + case 2: + this.$Y[a.P] = this.$a.Wqa(b); + Q31 = 1; + break; + } + } + }; + c.prototype.wRa = function(a, c, d, f) { + var z61, g, k, h, m, p, n51, i11; + z61 = 2; + while (z61 !== 20) { + n51 = "s"; + n51 += "t"; + n51 += "artpla"; + n51 += "y"; + i11 = "l"; + i11 += "o"; + i11 += "gdata"; + switch (z61) { + case 2: + g = a.P; + z61 = 5; + break; + case 7: + k = c.w4().filter(function(a) { + var o61, A61; + o61 = 2; + while (o61 !== 1) { + switch (o61) { + case 2: + return void 0 !== a.qc[h.id]; + break; + case 4: + H4DD.q71(2); + A61 = H4DD.c71(16, 24); + return ~A61 === a.qc[h.id]; + break; + o61 = 1; + break; + } + } + })[0], m = k.children.filter(function(a) { + var W61; + W61 = 2; + while (W61 !== 1) { + switch (W61) { + case 2: + return a.Qc.some(function(a) { + var q61; + q61 = 2; + while (q61 !== 1) { + switch (q61) { + case 2: + return a.stream.id === h.id; + break; + case 4: + return a.stream.id == h.id; + break; + q61 = 1; + break; + } + } + }); + break; + } + } + })[0], h.ZT = k.id, h.S8 = m.id; + z61 = 6; + break; + case 5: + k = this.wa[c]; + c = k.bo; + h = k.ge[g].Sl[d]; + d = this.Xa.ob[g]; + z61 = 8; + break; + case 8: + z61 = void 0 === h.ZT || void 0 === h.S8 ? 7 : 6; + break; + case 6: + k = h.location === h.ZT; + m = h.Pb === h.S8; + f && h.Pb && !d.ry ? (p = b.xe.mt, h.Nk = b.xe.name[p], this.tka(a, h.Pb, h.Nk, h.location, h.O), d.ry = h.Pb) : h.Pb && h.Pb !== d.ry && (p = h.Nk, p = m ? void 0 === d.ry ? b.xe.mt : c.dE === b.xe.mY ? b.xe.COa : b.xe.fW : b.xe.BOa, h.Nk = b.xe.name[p], this.tka(a, h.Pb, h.Nk, h.location, h.O), d.ry = h.Pb); + z61 = 12; + break; + case 12: + d.ZC || (m = { + type: i11, + target: n51, + fields: {} + }, g === b.G.AUDIO ? m.fields.alocid = h.location : g === b.G.VIDEO && (m.fields.locid = h.location), this.emit(m.type, m)); + f && h.location && !d.ZC ? (p = b.xe.mt, h.Nk = b.xe.name[p], this.rka(a.P, h.location, h.G6, h.Pb, h.tz, h.Nk, h.Np), d.ZC = h.location) : h.location && h.location !== d.ZC && (p = h.Nk, p = k ? void 0 === d.ZC ? b.xe.mt : c.dE === b.xe.mY ? b.xe.hJa : b.xe.fW : b.xe.gJa, h.Nk = b.xe.name[p], this.rka(a.P, h.location, h.G6, h.Pb, h.tz, h.Nk, h.Np), h.Np = void 0, d.ZC = h.location); + this.K.no || (h.Xta = h.location, h.Yta = h.Pb); + z61 = 20; + break; + } + } + }; + c.prototype.Ty = function(a) { + var l61, Y51; + l61 = 2; + while (l61 !== 1) { + Y51 = "req"; + Y51 += "ue"; + Y51 += "stErr"; + Y51 += "or ignored, pipelin"; + Y51 += "es shutdown, mediaRequest:"; + switch (l61) { + case 2: + this.ke() ? this.fa(Y51, a) : (a.Bc || this.mwa(a.cf, a.na, a.Ya, a.$b), this.wRa(a.cf, a.na, a.Ya, a.Bc), this.lla(a, a.location, a.cd)); + l61 = 1; + break; + } + } + }; + c.prototype.mv = function(a) { + var m61, g51; + m61 = 2; + while (m61 !== 1) { + g51 = "onfirstbyte"; + g51 += " ignored, pipeline"; + g51 += "s shutdown"; + g51 += ", mediaRequest:"; + switch (m61) { + case 2: + this.ke() ? this.fa(g51, a) : a.d0 || (this.Xa.ob[a.P].connected = !0); + m61 = 1; + break; + } + } + }; + I2t = 252; + break; + case 161: + c.prototype.NUa = function(a) { + var y1t, c, d, f, g, k, h, b51, p51; + y1t = 2; + while (y1t !== 32) { + b51 = "audioTra"; + b51 += "ck"; + b51 += "Change"; + p51 = "aud"; + p51 += "i"; + p51 += "oSwi"; + p51 += "t"; + p51 += "ch"; + switch (y1t) { + case 21: + a.Wp(h); + a.Tya(); + this.la.Bf.J5(this.xc); + y1t = 33; + break; + case 13: + k.Gs[b.G.AUDIO] = this.qt.uf; + this.kf && 0 < this.kf.length && (this.kf = this.kf.filter(function(c) { + var P1t; + P1t = 2; + while (P1t !== 4) { + switch (P1t) { + case 2: + P1t = c.P === b.G.VIDEO ? 1 : 5; + break; + case 1: + return !0; + break; + case 7: + this.pt(a, c, +9); + P1t = 6; + break; + P1t = 4; + break; + case 5: + this.pt(a, c, !1); + P1t = 4; + break; + } + } + }.bind(this)), 0 === this.kf.length && (this.kf = void 0, c.NG || this.iP(p51))); + this.Yka(a); + y1t = 10; + break; + case 10: + f.ao = void 0; + f.ii = void 0; + f.lI = void 0; + f.zl = void 0; + y1t = 17; + break; + case 7: + h = g - d.Jc; + this.tn[b.G.AUDIO] = this.qt.uf; + f.tT = void 0; + y1t = 13; + break; + case 2: + c = this.K; + d = a.Fc; + f = this.Xa.ob[a.P]; + y1t = 3; + break; + case 24: + y1t = d < this.wa.length ? 23 : 21; + break; + case 17: + this.p_(b51, b.G.AUDIO); + this.la.Xza(d, !0); + this.la.Rya(d); + this.$Y[b.G.AUDIO] = this.$a.Vqa(this.xn, this.tn, b.G.AUDIO)[b.G.AUDIO]; + y1t = 26; + break; + case 33: + k.ib[b.G.AUDIO] && k.ib[b.G.AUDIO].stream.Mc && this.la.H9(this.la.Bf); + y1t = 32; + break; + case 25: + d = this.xc; + y1t = 24; + break; + case 23: + c(d); + y1t = 22; + break; + case 26: + c = function(c) { + var H1t, d, f, g, k; + H1t = 2; + while (H1t !== 11) { + switch (H1t) { + case 9: + d.ge = g; + f = !1; + H1t = 7; + break; + case 12: + f ? (d.ib[b.G.AUDIO] = k, d.sK = !1, k.stream.Mc && this.MN(d, this.xc)) : (d.ib[b.G.AUDIO] = void 0, d.sK = !1, this.MO(d.R, c, d.ge, !0, b.G.AUDIO)); + H1t = 11; + break; + case 2: + d = this.wa[c]; + f = d.ge; + g = this.tG(d.Fa, c, this.tn, this.Vh, f, b.G.AUDIO); + g[b.G.VIDEO] = f[b.G.VIDEO]; + H1t = 9; + break; + case 7: + H1t = d.e5 ? 6 : 11; + break; + case 6: + f = d.ge[b.G.AUDIO].bc.some(function(a) { + var a1t; + a1t = 2; + while (a1t !== 4) { + switch (a1t) { + case 1: + a1t = !(k && h < k.stream.Y.Of(0)) ? 5 : 4; + break; + case 2: + k = this.Ve[b.G.AUDIO][a.id]; + a1t = 1; + break; + case 7: + return k; + break; + a1t = 4; + break; + case 5: + return k; + break; + } + } + }.bind(this)); + a.pf = void 0; + a.Fh = void 0; + H1t = 12; + break; + } + } + }.bind(this); + y1t = 25; + break; + case 22: + ++d; + y1t = 24; + break; + case 3: + this.qt = f.tT; + g = this.de(); + k = this.su; + y1t = 7; + break; + } + } + }; + c.prototype.lla = function(a, c, d) { + var R1t, f, t51, l51; + R1t = 2; + while (R1t !== 4) { + t51 = "vi"; + t51 += "d"; + t51 += "eo"; + t51 += "_location"; + l51 = "lo"; + l51 += "c"; + l51 += "ation"; + switch (R1t) { + case 1: + f = this.K.T7; + R1t = 5; + break; + case 2: + R1t = 1; + break; + case 5: + k.V(c) || k.V(d) || (a.location = c, a.cd = d, (l51 === f || t51 === f && a.P === b.G.VIDEO) && this.$a.Wa.QU(c), this.xd.Ahb(a.P, c)); + R1t = 4; + break; + case 8: + f = this.K.T7; + R1t = 6; + break; + R1t = 5; + break; + } + } + }; + c.prototype.H_ = function() { + var u1t, a, b, c, d, f, V51, O51; + u1t = 2; + while (u1t !== 20) { + V51 = "m"; + V51 += "anife"; + V51 += "s"; + V51 += "ts"; + V51 += ":"; + O51 = "update"; + O51 += "RequestUrls"; + O51 += ", no manifes"; + O51 += "tEn"; + O51 += "try:"; + switch (u1t) { + case 6: + u1t = 0 < a.length ? 14 : 10; + break; + case 2: + a = []; + u1t = 5; + break; + case 5: + b = 0; + c = this.su; + u1t = 3; + break; + case 9: + return this.Rb(O51, this.xc, V51, this.wa.length), !1; + break; + case 14: + f = {}; + a.forEach(function(a) { + var v1t, c; + v1t = 2; + while (v1t !== 4) { + switch (v1t) { + case 2: + c = a.na; + a.Bc && c > this.xc && (f[a.na] = !0, ++b); + v1t = 4; + break; + } + } + }.bind(this)); + k.Lc(f, function(a, b) { + var Y1t; + Y1t = 2; + while (Y1t !== 5) { + switch (Y1t) { + case 2: + a = this.wa[b]; + this.MO(a.R, b, a.ge); + Y1t = 5; + break; + } + } + }.bind(this)); + return b === a.length ? !0 : !1; + break; + case 3: + u1t = !c ? 9 : 8; + break; + case 8: + d = c.bo; + this.la.De.forEach(function(b) { + var J1t, c, X51, F51; + J1t = 2; + while (J1t !== 8) { + X51 = "l"; + X51 += "ocation selector returned null stream"; + X51 += "List"; + F51 = "lo"; + F51 += "cation selector i"; + F51 += "s gone, s"; + F51 += "ession has been"; + F51 += " closed"; + switch (J1t) { + case 2: + J1t = 1; + break; + case 1: + J1t = this.WC(b.P) ? 5 : 8; + break; + case 5: + J1t = d ? 4 : 9; + break; + case 9: + b.fa(F51); + J1t = 8; + break; + case 4: + c = this.Xa.jD(b); + d.EV(c, b.bc) ? (b = b.Oa.Orb(b.Sl, this.lla.bind(this)), 0 < b.length && a.push.apply(a, b)) : b.fa(X51); + J1t = 8; + break; + } + } + }.bind(this)); + u1t = 6; + break; + case 10: + return !0; + break; + } + } + }; + c.prototype.OUa = function(a, b) { + var b1t, c; + b1t = 2; + while (b1t !== 3) { + switch (b1t) { + case 2: + c = this.Ke[a.P]; + a = a.Oa.skb(b, function(a) { + var k1t; + k1t = 2; + while (k1t !== 1) { + switch (k1t) { + case 4: + c.BK(a); + k1t = 8; + break; + k1t = 1; + break; + case 2: + c.BK(a); + k1t = 1; + break; + } + } + }); + k.V(a) || this.Yh(); + b1t = 3; + break; + } + } + }; + c.prototype.PVa = function(a) { + var f1t, b, c, f; + f1t = 2; + while (f1t !== 7) { + switch (f1t) { + case 5: + b = a.P; + c = a.yu.shift(); + c = a.bc[c]; + f = c.id; + f1t = 8; + break; + case 2: + f1t = 1; + break; + case 8: + !this.Ve[a.P][f] && c.Fe && (a.aV = f, b = this.bO(b, c.Jj, c.ci), this.nG(a, this.om, c, { + offset: 0, + Z: b, + nE: !0 + })); + f1t = 7; + break; + case 1: + f1t = !d(this.yb.value) && a.yu && 0 !== a.yu.length && !a.aV ? 5 : 7; + break; + } + } + }; + c.prototype.yja = function(a) { + var C1t, b, c, d; + C1t = 2; + while (C1t !== 14) { + switch (C1t) { + case 2: + b = this.K; + C1t = 5; + break; + case 5: + c = []; + a && -1 == a.indexOf(Y.VIDEO) || c.push({ + type: Y.VIDEO, + openRange: !b.ko, + pipeline: b.ko, + connections: b.ko ? b.AJ : 1, + socketBufferSize: b.aba + }); + C1t = 3; + break; + case 3: + C1t = !a || -1 != a.indexOf(Y.AUDIO) ? 9 : 7; + break; + case 8: + c.push({ + type: Y.AUDIO, + openRange: !d, + pipeline: d, + connections: 1, + socketBufferSize: b.B0 + }); + C1t = 7; + break; + case 7: + a && -1 == a.indexOf(Y.KM) || c.push({ + type: Y.KM, + openRange: !1, + pipeline: !0, + connections: 1, + socketBufferSize: b.f5 + }); + C1t = 6; + break; + case 6: + return c; + break; + case 9: + d = b.ko && this.Xr && b.asb; + C1t = 8; + break; + } + } + }; + c.prototype.Pia = function(a) { + var e1t, b, c, o51; + e1t = 2; + while (e1t !== 6) { + o51 = "cr"; + o51 += "eateDlTracksS"; + o51 += "tart"; + switch (e1t) { + case 5: + c = b.K; + 0 === b.Tw && b.Sq(o51); + b.Tw += a.length; + a = a.map(function(a) { + var N1t, d, v51, q51, H51, S51, K51; + N1t = 2; + while (N1t !== 12) { + v51 = "d"; + v51 += "e"; + v51 += "stro"; + v51 += "yed"; + q51 = "tr"; + q51 += "ans"; + q51 += "portrep"; + q51 += "or"; + q51 += "t"; + H51 = "e"; + H51 += "r"; + H51 += "r"; + H51 += "o"; + H51 += "r"; + S51 = "n"; + S51 += "et"; + S51 += "workfail"; + S51 += "ing"; + K51 = "cre"; + K51 += "a"; + K51 += "te"; + K51 += "d"; + switch (N1t) { + case 4: + d.SG = new m(); + d.SG.on(d, K51, function() { + var T1t, A51; + T1t = 2; + while (T1t !== 5) { + A51 = "createD"; + A51 += "lT"; + A51 += "racksEnd"; + switch (T1t) { + case 2: + --b.Tw; + 0 === b.Tw && b.Sq(A51); + T1t = 5; + break; + } + } + }); + d.SG.on(d, S51, function() { + var D1t, x51; + D1t = 2; + while (D1t !== 5) { + x51 = "r"; + x51 += "epo"; + x51 += "rtNet"; + x51 += "workFailing"; + x51 += ": "; + switch (D1t) { + case 2: + c.Oe && b.th(x51 + d.toString()); + d.F6a && (b.su.nC.Ll(void 0, d.pk, d.Il, d.WDb), b.H_()); + D1t = 5; + break; + } + } + }); + d.SG.on(d, H51, function() { + var d1t, c51, d51, G51; + d1t = 2; + while (d1t !== 5) { + c51 = "NFErr_MC_Stream"; + c51 += "in"; + c51 += "gFai"; + c51 += "l"; + c51 += "ure"; + d51 = "DownloadTrack"; + d51 += " fatal err"; + d51 += "or"; + G51 = "DownloadTrack fat"; + G51 += "al "; + G51 += "error:"; + G51 += " "; + switch (d1t) { + case 2: + c.Oe && b.th(G51 + JSON.stringify(a)); + b.bk(d51, c51, d.pk, 0, d.Il); + d1t = 5; + break; + } + } + }); + d.on(q51, function(a) { + var O1t, a51; + O1t = 2; + while (O1t !== 1) { + a51 = "tra"; + a51 += "nsport"; + a51 += "r"; + a51 += "eport"; + switch (O1t) { + case 2: + b.emit(a51, a); + O1t = 1; + break; + case 4: + b.emit("", a); + O1t = 9; + break; + O1t = 1; + break; + } + } + }); + d.on(v51, function() { + var r1t; + r1t = 2; + while (r1t !== 1) { + switch (r1t) { + case 4: + d.removeAllListeners(); + r1t = 7; + break; + r1t = 1; + break; + case 2: + d.removeAllListeners(); + r1t = 1; + break; + } + } + }); + N1t = 14; + break; + case 2: + d = new Y(a, b.Xj); + d.te = b; + N1t = 4; + break; + case 14: + k.V(d.Ac) || d.Ac(); + return d; + break; + } + } + }); + e1t = 8; + break; + case 2: + b = this; + e1t = 5; + break; + case 8: + Y.Cg(); + return a; + break; + } + } + }; + c.prototype.NRa = function() { + var n1t, a; + n1t = 2; + while (n1t !== 9) { + switch (n1t) { + case 4: + this.gG && (a.push(this.gG), this.gG = void 0); + a.forEach(function(a) { + var c1t; + c1t = 2; + while (c1t !== 4) { + switch (c1t) { + case 2: + a.lQ || --this.Tw; + a.SG.clear(); + a.Nn(); + c1t = 4; + break; + } + } + }.bind(this)); + n1t = 9; + break; + case 2: + a = []; + this.Xa.ob.forEach(function(b) { + var t1t; + t1t = 2; + while (t1t !== 5) { + switch (t1t) { + case 2: + k.V(b.Aj) || a.push(b.Aj); + b.Aj = void 0; + t1t = 5; + break; + } + } + }); + n1t = 4; + break; + } + } + }; + c.prototype.MRa = function(a) { + var Z1t, c; + Z1t = 2; + while (Z1t !== 14) { + switch (Z1t) { + case 4: + a = this.Xa.ob[c]; + c = a.Aj; + c.lQ || --this.Tw; + c.SG.clear(); + c.Nn(); + a.Aj = void 0; + Z1t = 14; + break; + case 2: + c = a.P; + c == b.G.AUDIO && (a.FK = !0, this.xd.fE(null)); + Z1t = 4; + break; + } + } + }; + c.prototype.Yka = function(a) { + var V1t, b, c, d, f, g, k; + V1t = 2; + while (V1t !== 11) { + switch (V1t) { + case 2: + b = a.P; + c = this.Xa.ob[b]; + d = c.Aj; + V1t = 3; + break; + case 9: + g = []; + for (k in this.Ve[b]) { + (f = this.Ve[b][k]) && !f.Y && f.track == d && (this.Ve[b][k] = void 0, g.push({ + stream: f.stream, + offset: f.offset, + Z: f.Z, + Qx: f.Qx, + na: f.na, + Mr: f.Mr, + Wn: f.Wn + }), a.Oa.BK(f)); + } + this.MRa(a); + b = this.yja([b]); + V1t = 14; + break; + case 14: + b = this.Pia([b[0]]); + c.Aj = b[0]; + g.forEach(function(b) { + var X1t; + X1t = 2; + while (X1t !== 1) { + switch (X1t) { + case 2: + this.nG(a, this.om, b.stream, b, b.stream.na); + X1t = 1; + break; + } + } + }.bind(this)); + V1t = 11; + break; + case 3: + V1t = d ? 9 : 11; + break; + } + } + }; + c.prototype.Sq = function(a) { + var G1t, M51; + G1t = 2; + while (G1t !== 5) { + M51 = "s"; + M51 += "ta"; + M51 += "rtEvent"; + switch (G1t) { + case 2: + a = { + type: M51, + event: a, + time: O.time.da() + }; + Z(this, a.type, a); + G1t = 5; + break; + } + } + }; + c.prototype.XTa = function() { + var M1t, a, e51; + M1t = 2; + while (M1t !== 4) { + e51 = "op"; + e51 += "enCom"; + e51 += "plet"; + e51 += "e"; + switch (M1t) { + case 2: + a = { + type: e51 + }; + Z(this, a.type, a); + M1t = 4; + break; + } + } + }; + c.prototype.YTa = function(a, b, c, d, f) { + var i1t, y51; + i1t = 2; + while (i1t !== 1) { + y51 = "pts"; + y51 += "St"; + y51 += "ar"; + y51 += "t"; + y51 += "s"; + switch (i1t) { + case 2: + this.K.l4a || (a = { + type: y51, + manifestIndex: a, + mediaType: b, + movieId: d, + streamId: c, + ptsStarts: f.EAa() + }, Z(this, a.type, a)); + i1t = 1; + break; + } + } + }; + c.prototype.KTa = function(a, b) { + var s1t, f51, R51, w51; + s1t = 2; + while (s1t !== 4) { + f51 = "empty"; + f51 += "C"; + f51 += "ontentId"; + R51 = "n"; + R51 += "o"; + R51 += "n"; + R51 += "e"; + w51 = "dr"; + w51 += "m"; + w51 += "H"; + w51 += "eade"; + w51 += "r"; + switch (s1t) { + case 2: + a = { + type: w51, + manifestIndex: a, + drmType: b ? b.ul : R51, + contentId: b ? b.Yna : f51 + }; + b && (a.source = b.source, a.header = b.vk); + Z(this, a.type, a); + s1t = 4; + break; + } + } + }; + c.prototype.OTa = function(a, b) { + var B1t, D51; + B1t = 2; + while (B1t !== 5) { + D51 = "h"; + D51 += "ea"; + D51 += "derCache"; + D51 += "Hit"; + switch (B1t) { + case 2: + a = { + type: D51, + movieId: a, + streamId: b + }; + Z(this, a.type, a); + B1t = 5; + break; + } + } + }; + c.prototype.NTa = function(a, b, c, d, f) { + var L1t, g, U51; + L1t = 2; + while (L1t !== 9) { + U51 = "heade"; + U51 += "rCacheD"; + U51 += "at"; + U51 += "aHi"; + U51 += "t"; + switch (L1t) { + case 4: + a = { + type: U51, + movieId: a, + audio: b, + audioFromMediaCache: d, + video: c, + videoFromMediaCache: f, + actualStartPts: g && g.wm, + headerCount: g && g.Ur, + stats: g && g.ac + }; + Z(this, a.type, a); + L1t = 9; + break; + case 2: + g = this.Mja; + this.Mja = void 0; + L1t = 4; + break; + } + } + }; + c.prototype.WTa = function(a, b, c) { + var j1t, Z51; + j1t = 2; + while (j1t !== 5) { + Z51 = "ma"; + Z51 += "xPositio"; + Z51 += "n"; + switch (j1t) { + case 2: + a = { + type: Z51, + index: a, + maxPts: b, + endPts: c + }; + Z(this, a.type, a); + j1t = 5; + break; + } + } + }; + c.prototype.fUa = function(a, b, c, d, f) { + var p1t, k51, N51; + p1t = 2; + while (p1t !== 4) { + k51 = "notifyStre"; + k51 += "am"; + k51 += "ing"; + k51 += "Err"; + k51 += "or: "; + N51 = "e"; + N51 += "r"; + N51 += "r"; + N51 += "or"; + switch (p1t) { + case 2: + a = { + type: N51, + error: a, + errormsg: b, + networkErrorCode: c, + httpCode: d, + nativeCode: f + }; + this.Rb(k51 + JSON.stringify(a)); + Z(this, a.type, a); + p1t = 4; + break; + } + } + }; + c.prototype.ska = function(a, b) { + var U1t, J51; + U1t = 2; + while (U1t !== 5) { + J51 = "se"; + J51 += "gmentStarti"; + J51 += "ng"; + switch (U1t) { + case 2: + b = { + type: J51, + segmentId: a.id, + contentOffset: b + }; + a.JD || Z(this, b.type, b); + U1t = 5; + break; + } + } + }; + c.prototype.$Ta = function(a) { + var g1t, b, W51; + g1t = 2; + while (g1t !== 4) { + W51 = "se"; + W51 += "gm"; + W51 += "entA"; + W51 += "bo"; + W51 += "rted"; + switch (g1t) { + case 2: + b = { + type: W51, + segmentId: a.id + }; + a.JD || Z(this, b.type, b); + g1t = 4; + break; + } + } + }; + c.prototype.rSa = function(a, b) { + var w1t, c, d, f, L51, Q51, B51, s51, T51, P51; + w1t = 2; + while (w1t !== 20) { + L51 = "r"; + L51 += "e"; + L51 += "se"; + L51 += "t"; + Q51 = "s"; + Q51 += "k"; + Q51 += "i"; + Q51 += "p"; + B51 = "l"; + B51 += "o"; + B51 += "n"; + B51 += "g"; + s51 = "l"; + s51 += "o"; + s51 += "n"; + s51 += "g"; + T51 = "se"; + T51 += "amles"; + T51 += "s"; + P51 = "sea"; + P51 += "mle"; + P51 += "s"; + P51 += "s"; + switch (w1t) { + case 6: + b.J3a || (c.delayToTransition = b.zQ); + d = P51 === d ? 0 : O.time.da() - b.startTime; + c.durationOfTransition = d; + c.atTransition = b.vBa; + c.srcsegmentduration = this.la.t$a(b.bV); + return c; + break; + case 3: + c.atRequest.weight = d; + k.Lc(b.Oc, function(b, d) { + var S1t; + S1t = 2; + while (S1t !== 1) { + switch (S1t) { + case 2: + d != a && (c.discard[d] = { + weight: b.weight + }, G(b.fH, c.discard[d])); + S1t = 1; + break; + } + } + }); + d = b.DU ? b.SR ? T51 : s51 : b.Xva ? B51 : b.Kj ? Q51 : L51; + c.transitionType = d; + w1t = 6; + break; + case 2: + c = { + segment: a, + srcsegment: b.bV, + srcoffset: b.yAa, + seamlessRequested: b.DU, + atRequest: {}, + discard: {} + }; + f = b.Oc[a]; + f ? (d = f.weight, G(f.fH, c.atRequest)) : d = this.la.Vra(b.bV, a); + w1t = 3; + break; + } + } + }; + c.prototype.cUa = function(a, b, c) { + var Q1t, E51; + Q1t = 2; + while (Q1t !== 4) { + E51 = "segmen"; + E51 += "tPr"; + E51 += "e"; + E51 += "sen"; + E51 += "ting"; + switch (Q1t) { + case 2: + c = c ? this.rSa(a.id, c) : void 0; + b = { + type: E51, + segmentId: a.id, + contentOffset: b, + metrics: c + }; + a.JD || Z(this, b.type, b); + Q1t = 4; + break; + } + } + }; + c.prototype.aUa = function(a, b) { + var z31, r51; + z31 = 2; + while (z31 !== 5) { + r51 = "segm"; + r51 += "e"; + r51 += "ntApp"; + r51 += "ende"; + r51 += "d"; + switch (z31) { + case 2: + b = { + type: r51, + segmentId: a.id, + metrics: b + }; + a.JD || Z(this, b.type, b); + z31 = 5; + break; + } + } + }; + I2t = 175; + break; + case 149: + c.prototype.MN = function(a, c) { + var D4t, d, f, g; + D4t = 2; + while (D4t !== 16) { + switch (D4t) { + case 3: + D4t = !(this.Qi && !d || this.Rf && !f) ? 9 : 16; + break; + case 9: + this.G_(a, c); + d = [0, 0]; + 0 === c || a.BJ || a.replace || (g = N.RG(a.R, this.wa[c - 1].R), g = this.$F(c, a.U, this.la.Bf, this.la.Bf, g), d = g.fz); + D4t = 6; + break; + case 10: + a.sK = !0; + D4t = 20; + break; + case 18: + c = this.wa[a], c.sK = !1, this.MN(c, a); + D4t = 17; + break; + case 19: + D4t = a < this.wa.length ? 18 : 16; + break; + case 6: + a.U = d[b.G.VIDEO]; + a.fz = d; + a.Rn = g && g.Rn; + this.Cia(c); + this.TTa(c, a.Pm, a.U, a.Bk.ji, this.Rf ? a.ib[b.G.VIDEO].Bk.ji : a.ib[b.G.AUDIO].Bk.ji); + D4t = 10; + break; + case 20: + H4DD.q71(0); + a = H4DD.c71(c, 1); + D4t = 19; + break; + case 2: + D4t = 1; + break; + case 17: + ++a; + D4t = 19; + break; + case 5: + d = a.ib[0] && a.ib[0].stream.Mc; + f = a.ib[1] && a.ib[1].stream.Mc; + D4t = 3; + break; + case 1: + D4t = !a.sK ? 5 : 16; + break; + } + } + }; + c.prototype.Fja = function(a) { + var d4t; + d4t = 2; + while (d4t !== 1) { + switch (d4t) { + case 2: + return a.Bk ? a.Bk.ji : a.ea ? a.ea : a.Fa.duration; + break; + } + } + }; + c.prototype.Cia = function(a) { + var O4t, b; + O4t = 2; + while (O4t !== 4) { + switch (O4t) { + case 2: + b = this.wa[a]; + 0 === a || b.replace ? b.Pm = 0 : (a = this.wa[a - 1], b.Pm = a.Pm + this.Fja(a) - b.U); + O4t = 4; + break; + } + } + }; + c.prototype.G_ = function(a, c) { + var r4t, d, f, g, k, h, m; + r4t = 2; + while (r4t !== 19) { + switch (r4t) { + case 3: + r4t = (!this.Qi || f && f.stream.Mc) && (!this.Rf || g && g.stream.Mc) ? 9 : 19; + break; + case 9: + k = this.la.Bf; + h = a.ea || Infinity; + g = k.Sa; + f = this.PA(g, a.ib, h); + m = f.map(function(a) { + var n4t; + n4t = 2; + while (n4t !== 1) { + switch (n4t) { + case 2: + return { + ji: a.ea, ddb: a.U, lastIndex: a.index + }; + break; + } + } + }); + r4t = 13; + break; + case 2: + d = this.K; + f = a.ib[b.G.AUDIO]; + g = a.ib[b.G.VIDEO]; + r4t = 3; + break; + case 13: + f.length && (a.UFb = f); + d = this.Rf ? !d.Wm || d.Gm ? m[b.G.VIDEO] : this.kVa(m[b.G.AUDIO], m[b.G.VIDEO]) : m[b.G.AUDIO]; + a.Bk = d; + this.WTa(c, this.Rf ? a.ib[b.G.VIDEO].Bk.ji : a.ib[b.G.AUDIO].Bk.ji, d.ji); + c === this.la.Coa && ((c = k.qa.ea) && c < h && (f = this.PA(g, a.ib, c)), a = g[b.G.VIDEO], c = g[b.G.AUDIO], a && a.PU(f[b.G.VIDEO]), c && c.PU(f[b.G.AUDIO])); + r4t = 19; + break; + } + } + }; + c.prototype.kVa = function(a, b) { + var t4t, c, d, f, C51; + t4t = 2; + while (t4t !== 8) { + C51 = "maxPts between streams is largel"; + C51 += "y diff"; + C51 += "er"; + C51 += "ent. Choosing lower "; + C51 += "maxPts:"; + switch (t4t) { + case 4: + f = Math.abs(a.ji - b.ji); + f <= c.RS ? d = a.ji > b.ji ? a : b : f > c.RS && (d = a.ji < b.ji ? a : b, this.fa(C51, d)); + return d; + break; + case 2: + c = this.K; + d = b; + t4t = 4; + break; + } + } + }; + c.prototype.p_ = function(a, c) { + var c4t; + c4t = 2; + while (c4t !== 5) { + switch (c4t) { + case 2: + this.la.Bf.reset(!0, a, c); + (void 0 === c ? [b.G.AUDIO, b.G.VIDEO] : [c]).forEach(function(a) { + var Z4t; + Z4t = 2; + while (Z4t !== 4) { + switch (Z4t) { + case 2: + this.Ke[a].reset(); + this.iVa(a); + this.xd.Dhb(a); + Z4t = 4; + break; + } + } + }.bind(this)); + c4t = 5; + break; + } + } + }; + c.prototype.iVa = function(a) { + var V4t; + V4t = 2; + while (V4t !== 8) { + switch (V4t) { + case 2: + a = this.Xa.ob[a]; + a.Yu = void 0; + a.p6 = void 0; + a.mo = 0; + V4t = 3; + break; + case 3: + a.iK = 0; + a.connected = !1; + V4t = 8; + break; + } + } + }; + c.prototype.u_ = function(a, c) { + var X4t, d, f, m51; + X4t = 2; + while (X4t !== 8) { + m51 = "pt"; + m51 += "sch"; + m51 += "anged"; + switch (X4t) { + case 2: + d = this.la.Bf; + X4t = 5; + break; + case 5: + X4t = d.fi(a) ? 4 : 8; + break; + case 4: + f = this.Xa.ob[a]; + k.V(f.wm) && (f.wm = c, a === b.G.VIDEO && this.Qi && (a = this.Xa.ob[b.G.AUDIO], k.V(a.wm) && (d = d.fi(b.G.AUDIO), d.Wp(c)), this.emit(m51, c))); + k.V(f.gH) && (f.gH = c); + X4t = 8; + break; + } + } + }; + c.prototype.uSa = function(a) { + var G4t, b, c, j51, h51; + G4t = 2; + while (G4t !== 3) { + j51 = " ignored,"; + j51 += " pi"; + j51 += "pelines"; + j51 += " shutdown"; + h51 = "Header "; + h51 += "r"; + h51 += "eque"; + h51 += "s"; + h51 += "t "; + switch (G4t) { + case 2: + b = a.cf; + c = b.P; + this.ke() ? this.fa(h51 + a + j51) : (a.YJ > a.Uhb && (this.Xa.ob[c].l6 = a.YJ), this.Jja(b, a), this.Sja = O.time.da()); + G4t = 3; + break; + } + } + }; + c.prototype.Lja = function(a) { + var M4t, c, d, f, g, z51, u51, I51; + M4t = 2; + while (M4t !== 8) { + z51 = "all"; + z51 += "Comp"; + z51 += "leted"; + u51 = "t"; + u51 += "ota"; + u51 += "l frames:"; + I51 = "handl"; + I51 += "eRequestDone, adding "; + I51 += "frames:"; + switch (M4t) { + case 2: + c = this.K; + f = a.cf; + d = f.Fc; + g = a.na; + this.yb.value != b.Ca.yA && this.yb.value != b.Ca.xA && (this.gUa(g, f.Yo, f.Fx), c.Ql && (f.Gx += a.Sp, f.fa(I51, a.Sp, u51, f.Gx)), this.tt() || (d = d.fi(b.G.VIDEO)) && !d.fp && d.WR && this.Xa.FI(d), this.QN(f), this.kf && (a = this.kf.indexOf(a), -1 != a && this.kf.splice(a, 1), 0 === this.kf.length && (this.kf = void 0, c.NG || this.YY || this.iP(z51))), this.mZ(f) && this.Yh()); + M4t = 8; + break; + } + } + }; + c.prototype.IG = function() { + var i4t, a, c, d, f, g, h, m, n01; + i4t = 2; + while (i4t !== 17) { + n01 = "n"; + n01 += "umbe"; + n01 += "r"; + switch (i4t) { + case 1: + a = this.K; + c = this.kK; + d = this.wa[c]; + f = this.la.Bf; + g = this.de() || 0; + h = this.SB(c, g); + i4t = 7; + break; + case 7: + this.PO = !0; + m = a.DV; + i4t = 14; + break; + case 11: + this.yb.value === b.Ca.xf && ([b.G.VIDEO, b.G.AUDIO].forEach(function(a) { + var s4t, c, d, p, l, r, n, i51; + s4t = 2; + while (s4t !== 13) { + i51 = "Unab"; + i51 += "le to find request presenting"; + i51 += " at playerPts:"; + switch (s4t) { + case 5: + c = f.fi(a); + s4t = 4; + break; + case 1: + s4t = this.Li[a] ? 5 : 13; + break; + case 2: + s4t = 1; + break; + case 3: + r = c; + this.QN(c, g); + s4t = 8; + break; + case 8: + (n = c.Oa.vC(g)) && !n.xh && (n = this.Ke[a].Ycb); + n ? (r = n.Cd - g, r < m && (m = r), l = this.Xa.ob[a], p = n.na, r = n.cf, this.Rf && a !== b.G.VIDEO || (this.la.Tgb(n, n.Kk), p > this.rO ? (this.rO = p, this.STa(p, g, n.Kk), h = this.SB(p, g)) : this.WA && n.Kk != l.gdb && this.iUa(n.Kk)), l.gdb = n.Kk, d = n.Ya, d != l.p6 && (l.p6 = d, a = this.wa[p].ge[a].Sl, a = a[d], p = this.SB(p, n.$b), this.eUa(r, n.$b, p, a.na, a.Yo, a.ef)), n = n.O, k.V(n) || n == c.rxa || (c.rxa = n)) : c.fa(i51, g); + this.OUa(r, g); + s4t = 14; + break; + case 4: + s4t = c ? 3 : 13; + break; + case 14: + this.la.rkb(); + s4t = 13; + break; + } + } + }.bind(this)), this.g_ = !1, this.la.Co(g, h)); + this.Yh(); + m = Math.max(m, 1); + this.Tt && clearTimeout(this.Tt); + this.Tt = setTimeout(this.IG.bind(this), m); + i4t = 17; + break; + case 2: + i4t = 1; + break; + case 14: + i4t = a.YH || a.Jpa ? 13 : 12; + break; + case 13: + c = this.la.d$a(), n01 === typeof c && c - a.J7 <= h && (m = Math.min(m, a.YYa)); + i4t = 12; + break; + case 12: + this.$a.Rc && d.Bk && d.Bk.ji - g <= a.Hva && this.$a.Rc.OG(!0, this.Xj.sessionId); + i4t = 11; + break; + } + } + }; + c.prototype.Yh = function() { + var B4t, a; + B4t = 2; + while (B4t !== 4) { + switch (B4t) { + case 2: + a = this.K; + !this.Jka || this.g_ || this.ex || this.lx || (this.ex = setTimeout(function() { + var L4t; + L4t = 2; + while (L4t !== 4) { + switch (L4t) { + case 2: + clearTimeout(this.ex); + this.ex = void 0; + this.ija(); + L4t = 4; + break; + } + } + }.bind(this), a.A8), a.hC && this.Rf && (this.Kw || (this.Kw = setTimeout(function() { + var j4t, a; + j4t = 2; + while (j4t !== 9) { + switch (j4t) { + case 3: + a && this.lia(a); + j4t = 9; + break; + case 2: + clearTimeout(this.Kw); + this.Kw = void 0; + a = this.la.Bf.fi(b.G.VIDEO); + j4t = 3; + break; + } + } + }.bind(this), a.PWa)))); + B4t = 4; + break; + } + } + }; + c.prototype.ija = function() { + var p4t, a, c, d, Y01; + p4t = 2; + while (p4t !== 11) { + Y01 = "firstDriveSt"; + Y01 += "reamin"; + Y01 += "g"; + switch (p4t) { + case 1: + p4t = !this.ola && !this.ke() ? 5 : 11; + break; + case 3: + c = a[b.G.AUDIO]; + a = a[b.G.VIDEO]; + d = !a || a.pg; + p4t = 7; + break; + case 2: + p4t = 1; + break; + case 5: + void 0 === this.ORa && (this.ORa = !0, this.Sq(Y01)); + a = this.la.De; + p4t = 3; + break; + case 13: + this.gja(this.la.Bf); + this.la.De.forEach(function(a) { + var U4t; + U4t = 2; + while (U4t !== 1) { + switch (U4t) { + case 4: + this.PVa(a); + U4t = 0; + break; + U4t = 1; + break; + case 2: + this.PVa(a); + U4t = 1; + break; + } + } + }.bind(this)); + p4t = 11; + break; + case 7: + (!c || c.pg) && d && this.WA && this.la.F_a(this.xc, a ? a.ea : c.ea); + a = !a || a.qq; + c && !c.qq || !a || this.WA || (this.$a.Rc && this.$a.Rc.OG(!0, this.Xj.sessionId), this.nwa()); + p4t = 13; + break; + } + } + }; + c.prototype.mZ = function(a) { + var g4t; + g4t = 2; + while (g4t !== 1) { + switch (g4t) { + case 2: + return this.ke() || this.yb.value == b.Ca.yA || this.yb.value == b.Ca.xA || this.Xa.ob[a.P].NE || this.YY ? !1 : !0; + break; + } + } + }; + c.prototype.gja = function(a, c) { + var w4t, f, g, k, h, m, g01; + w4t = 2; + while (w4t !== 11) { + g01 = "Still in bufferi"; + g01 += "ng state whi"; + g01 += "le p"; + g01 += "ipeli"; + g01 += "ne's are done"; + switch (w4t) { + case 7: + w4t = !m || !h ? 6 : 13; + break; + case 8: + f.b8 || this.la.Hgb(a, f, this.Vh && 0 === a.na); + w4t = 7; + break; + case 13: + d(this.yb.value) && (this.fa(g01), this.tt()); + c || f.uE || this.Vh || !a.h_a() || ((c = d(this.yb.value)) && this.K.j2 && (this.QO(), c = !1), a.qR || this.la.dbb(a, c), a.UG(), g.osa && k.osa && (g = Object.keys(a.children), this.K.OQ && 1 === g.length && !a.children[g[0]].active && this.la.Jua(a, g[0]), this.QRa(a, f))); + w4t = 11; + break; + case 14: + return; + break; + case 6: + w4t = (this.Rf && this.hja(a, g, k), this.Qi && this.hja(a, k, g), h = !k || k.pg, m = !g || g.pg, !m || !h) ? 14 : 13; + break; + case 2: + f = a.qa; + g = a.Sa[b.G.VIDEO]; + k = a.Sa[b.G.AUDIO]; + h = !k || k.pg; + m = !g || g.pg; + w4t = 8; + break; + } + } + }; + c.prototype.QRa = function(a, b) { + var S4t, c, d, f, g, h, m, p, l, p01; + S4t = 2; + while (S4t !== 22) { + p01 = "No sub"; + p01 += "b"; + p01 += "ranch candidates "; + p01 += "t"; + p01 += "o drive"; + switch (S4t) { + case 14: + 0 === m.length ? m = h : 2 < m.length && (m.sort(function(a, b) { + var z1t; + z1t = 2; + while (z1t !== 1) { + switch (z1t) { + case 2: + return b.weight - a.weight; + break; + case 4: + return b.weight % a.weight; + break; + z1t = 1; + break; + } + } + }), m.length = 2); + S4t = 13; + break; + case 12: + c = m.reduce(function(a, b) { + var o1t; + o1t = 2; + while (o1t !== 4) { + switch (o1t) { + case 2: + b.gj = b.Fc.gj; + b.Gva = Math.min(b.gj[0], b.gj[1]); + return [a[0] + b.weight, a[1] + b.Gva]; + break; + } + } + }, [0, 0]); + S4t = 11; + break; + case 9: + S4t = !c ? 8 : 25; + break; + case 8: + h = []; + m = []; + k.Lc(a.children, function(a, c) { + var Q4t; + Q4t = 2; + while (Q4t !== 5) { + switch (Q4t) { + case 2: + c = b.zj[c].weight; + Q4t = 1; + break; + case 1: + 0 !== c && (c = { + weight: c, + Fc: a + }, a.KB(f.ki, !0) || m.push(c), h.push(c)); + Q4t = 5; + break; + } + } + }.bind(this)); + S4t = 14; + break; + case 4: + g = a.IA.gj; + S4t = 3; + break; + case 18: + this.fa(p01); + return; + break; + case 11: + p = c[0]; + l = c[1]; + S4t = 20; + break; + case 25: + c.Oc || (c.Oc = { + jS: O.time.da(), + nz: 0 + }); + c.Oc.weight = d; + this.gja(c, !0); + S4t = 22; + break; + case 19: + S4t = 0 === m.length ? 18 : 16; + break; + case 3: + Math.min(g[0] - a.Iia[0], g[1] - a.Iia[1]) >= f.q_a ? a.IA = void 0 : (c = a.IA, d = b.zj[c.qa.id].weight); + S4t = 9; + break; + case 13: + S4t = 1 < m.length ? 12 : 19; + break; + case 5: + S4t = this.bB && a.IA ? 4 : 9; + break; + case 2: + f = this.K; + S4t = 5; + break; + case 20: + 0 !== p && 0 !== l ? (k.Lc(m, function(a) { + var W1t; + W1t = 2; + while (W1t !== 4) { + switch (W1t) { + case 2: + a.Lsb = a.weight / p; + a.eZa = a.Gva / l; + a.aCa = a.eZa - a.Lsb; + W1t = 4; + break; + } + } + }), m.sort(function(a, b) { + var q1t; + q1t = 2; + while (q1t !== 1) { + switch (q1t) { + case 4: + return a.aCa + b.aCa; + break; + q1t = 1; + break; + case 2: + return a.aCa - b.aCa; + break; + } + } + })) : m.sort(function(a, b) { + var l1t; + l1t = 2; + while (l1t !== 4) { + switch (l1t) { + case 2: + a = Math.min.apply(null, a.Fc.gj); + b = Math.min.apply(null, b.Fc.gj); + H4DD.q71(2); + return H4DD.c71(b, a); + break; + } + } + }); + S4t = 19; + break; + case 16: + c = m[0].Fc; + d = m[0].weight; + a.IA = c; + S4t = 26; + break; + case 26: + a.Iia = c.gj; + S4t = 25; + break; + } + } + }; + c.prototype.hja = function(a, c, f) { + var m1t, g, h, m, b01; + m1t = 2; + while (m1t !== 33) { + b01 = "drivePipeline, d"; + b01 += "elaying audio unt"; + b01 += "il video actualStartPts determined"; + switch (m1t) { + case 14: + this.Vh && k.V(m.ea) && k.V(a.ea) || (c.pg || this.ila(c), this.xc < this.wa.length - 1 && this.pB(this.xc + 1)); + m1t = 33; + break; + case 26: + return; + break; + case 24: + c.adb = g.O, this.XSa(c, g, h, f.eza), a.Oc && ++a.Oc.nz; + m1t = 33; + break; + case 27: + m1t = this.Gia(c, g).RL ? 26 : 25; + break; + case 7: + c.fa(b01); + m1t = 33; + break; + case 17: + m1t = k.V(g) ? 16 : 15; + break; + case 3: + m = this.wa[this.xc]; + m1t = 9; + break; + case 13: + m1t = this.mZ(c) && !(g.TQ && !d(this.yb.value) && (m = this.$a.Wa) && (h = m.l$a(), (m = m.get()) && m.pa && h && !1 === h.RZa(m.pa.za))) ? 12 : 33; + break; + case 12: + m1t = g.r5a && !d(this.yb.value) && 0 >= c.Dy ? 11 : 10; + break; + case 10: + m1t = this.Hia(c, f) ? 20 : 23; + break; + case 11: + c.Frb(this.uCa() ? g.vfb : g.ufb); + m1t = 33; + break; + case 35: + g = f.ef; + m1t = 34; + break; + case 4: + m1t = !(c.pg || !this.Xa.ob[h].Aj || c.rv && (c.Wp(c.OT), c.rv)) ? 3 : 33; + break; + case 8: + m1t = g.Wm && h === b.G.AUDIO && k.V(this.Xa.ob[b.G.VIDEO].wm) ? 7 : 6; + break; + case 20: + c.q6 = O.time.da(); + f = this.Xa.FI(c); + g = f.ef; + m1t = 17; + break; + case 15: + g = c.bc[g]; + m1t = 27; + break; + case 9: + m1t = m.Bk && !k.V(m.Bk.ji) ? 8 : 33; + break; + case 2: + g = this.K; + h = c.P; + m1t = 4; + break; + case 21: + return; + break; + case 16: + return; + break; + case 23: + f = this.YSa(c, f); + m1t = 22; + break; + case 22: + m1t = !f ? 21 : 35; + break; + case 25: + m1t = (h = this.kSa(c, g)) ? 24 : 33; + break; + case 6: + m1t = (k.V(c.fg) && (c.fg = c.pf ? c.pf.index : this.eO(h, a.na, c.Ra)), c.Fh && c.fg > c.Fh.index) ? 14 : 13; + break; + case 34: + g = c.bc[g]; + m1t = 25; + break; + } + } + }; + c.prototype.QN = function(a, b) { + var I1t, c, d; + I1t = 2; + while (I1t !== 3) { + switch (I1t) { + case 2: + c = this.K; + d = a.Fc; + I1t = 4; + break; + case 4: + !d.qa.uE || this.WA || this.EO || (k.V(b) && (b = this.de() || 0), b -= d.Jc, a.pg && !a.qq && b + c.pqb >= a.ea && 0 === a.Oa.ov && 0 === a.Oa.Bo && this.LTa(a)); + I1t = 3; + break; + } + } + }; + c.prototype.XSa = function(a, c, f, g) { + var x1t, h, m, p, r, n, u, q, v, c01, d01, G01, H01, x01, S01, A01, K01, o01, X01, F01, V01, O01, t01, l01; + x1t = 2; + while (x1t !== 32) { + c01 = "f"; + c01 += "a"; + c01 += "stplay:"; + d01 = "past "; + d01 += "fragme"; + d01 += "nts l"; + d01 += "ength:"; + G01 = "makeRequest nextFragme"; + G01 += "n"; + G01 += "tIn"; + G01 += "dex:"; + H01 = "NFE"; + H01 += "r"; + H01 += "r_MC"; + H01 += "_St"; + H01 += "reamingFailure"; + x01 = "Media"; + x01 += "Re"; + x01 += "que"; + x01 += "st open failed (1)"; + S01 = "makeRequest"; + S01 += " "; + S01 += "caught:"; + A01 = " "; + A01 += "native:"; + A01 += " "; + K01 = "Media"; + K01 += "R"; + K01 += "equest.ope"; + K01 += "n"; + K01 += " error: "; + o01 = "!con"; + o01 += "tinueDriving "; + o01 += "in requ"; + o01 += "estCr"; + o01 += "eated"; + X01 = "ed"; + X01 += "itP"; + X01 += "ts:"; + F01 = "frameDur"; + F01 += "atio"; + F01 += "n:"; + V01 = "editing las"; + V01 += "t request "; + V01 += "to frame"; + V01 += ":"; + O01 = "makeRequest o"; + O01 += "ver stall po"; + O01 += "int:"; + t01 = "to pip"; + t01 += "e"; + t01 += "lin"; + t01 += "e.requestedFrames:"; + l01 = "mak"; + l01 += "eRe"; + l01 += "quest "; + l01 += "a"; + l01 += "dding:"; + switch (x1t) { + case 27: + x1t = (f = this.iSa(a, c, f, u), q = f.ypa.HQ(c.Ka), h.Ql) ? 26 : 10; + break; + case 26: + x1t = a.Sp + q > h.Ql ? 25 : 34; + break; + case 21: + f.Ak({ + Vc: q, + Jb: v + }, !0); + x1t = 35; + break; + case 33: + a.fa(l01, q, t01, a.Sp); + x1t = 10; + break; + case 11: + f = this.hSa(a, c, f, u); + x1t = 10; + break; + case 35: + f.g7(); + x1t = 34; + break; + case 4: + p = c.url; + r = a.P; + n = this.Xa.ob[r]; + x1t = 8; + break; + case 34: + a.Sp += q; + x1t = 33; + break; + case 2: + h = this.K; + m = a.Fc; + x1t = 4; + break; + case 25: + q = q - (a.Sp + q - h.Ql); + u = q * c.Ka.bf; + v = f.U + u; + a.fa(O01, h.Ql, V01, q, F01, u, X01, v); + x1t = 21; + break; + case 8: + f = f.Y; + u = a.fg; + x1t = 6; + break; + case 17: + O.time.da(); + g = a.Oa.kQ(this, m, f, n.Aj, c, g); + g.nv() ? (g.Sp = q, n.Zta = c.Pb, k.ja(n.zl) || (n.Yn = c.Nk, n.UI = c.UI || -1, n.zl = c.O, n.Rbb = c.h$, k.V(c.h$) || this.xd.aAa(c.h$, c.Dl, c.wk)), p && (n.s6 = f.url), h.TQ && this.$a.Wa.wB(O.time.da(), f.Z), this.mZ(a) || a.fa(o01), a.Unb(g.Md, f.PJ), this.yRa(a), this.Yh()) : (a.fa(K01 + g.pk + A01 + g.Il), g.readyState !== U.Fb.Uv && (a.fa(S01, g.pk), this.bk(x01, H01))); + x1t = 32; + break; + case 14: + a.fa(G01, u, d01, f.length, c01, this.Vh); + x1t = 32; + break; + case 12: + x1t = this.S2(r) ? 11 : 27; + break; + case 6: + x1t = u >= f.length ? 14 : 13; + break; + case 13: + q = 0; + x1t = 12; + break; + case 10: + d(this.yb.value) && ++a.R0; + f.Cp && r === b.G.VIDEO && this.ZZ(m.qa, f.ea); + this.u_(r, f.U); + f.eAa(new l(m.Jc, 1E3)); + x1t = 17; + break; + } + } + }; + c.prototype.O_ = function(a, b) { + var E1t; + E1t = 2; + while (E1t !== 1) { + switch (E1t) { + case 2: + return this.pt(a.cf, a, b); + break; + case 4: + return this.pt(a.cf, a, b); + break; + E1t = 1; + break; + } + } + }; + c.prototype.pt = function(a, b, c) { + var h1t, d, f; + h1t = 2; + while (h1t !== 14) { + switch (h1t) { + case 2: + d = this.K; + f = b.abort(); + b.Ld(); + h1t = 3; + break; + case 3: + b.Yf && b.Yf.clear(); + d.xB || a.Oa.BK(b); + h1t = 8; + break; + case 8: + this.Ke[a.P].BK(b); + !0 === c && this.Yh(); + return f; + break; + } + } + }; + c.prototype.MUa = function(a, b, c) { + var A1t, d; + A1t = 2; + while (A1t !== 6) { + switch (A1t) { + case 7: + this.Yka(a); + A1t = 6; + break; + case 4: + a.qFb = c; + a.Wp(b); + a.Tya(); + this.kf && 0 < this.kf.length && (this.kf.forEach(function(a) { + var K1t; + K1t = 2; + while (K1t !== 1) { + switch (K1t) { + case 4: + this.O_(a, ~3); + K1t = 4; + break; + K1t = 1; + break; + case 2: + this.O_(a, !1); + K1t = 1; + break; + } + } + }.bind(this)), this.kf = void 0); + A1t = 7; + break; + case 2: + A1t = 1; + break; + case 1: + d = this.K; + d.Tx && (this.kO = b + d.XAa, this.lO = O.time.da()); + A1t = 4; + break; + } + } + }; + c.prototype.QVa = function(a) { + var F1t, c, d, q01; + F1t = 2; + while (F1t !== 3) { + q01 = "no new"; + q01 += "AudioTrack se"; + q01 += "t"; + switch (F1t) { + case 2: + c = a.P; + d = this.Xa.ob[c]; + F1t = 4; + break; + case 4: + k.V(d.tT) ? a.fa(q01) : (this.Ke[c].pause(), d.NE = !0, this.FTa(this.xn, this.tn[b.G.AUDIO], d.tT.uf)); + F1t = 3; + break; + } + } + }; + I2t = 161; + break; + case 252: + c.prototype.WJ = function(a) { + var I61, b, v01, a01; + I61 = 2; + while (I61 !== 7) { + v01 = "onprogress ignored"; + v01 += ", pipelines"; + v01 += " shutdown, mediaRe"; + v01 += "quest:"; + a01 = "requ"; + a01 += "estProg"; + a01 += "re"; + a01 += "s"; + a01 += "s"; + switch (I61) { + case 4: + b = this.rd; + this.xd.Cwa(this.Ae - this.ni, a.fj, b); + this.K.SQ && this.aP.push(a.CS); + this.emit(a01, { + timestamp: b, + url: a.url + }); + I61 = 7; + break; + case 2: + I61 = 1; + break; + case 1: + I61 = this.ke() ? 5 : 4; + break; + case 5: + this.fa(v01, a); + I61 = 7; + break; + } + } + }; + c.prototype.li = function(a) { + var x61, e01, M01; + x61 = 2; + while (x61 !== 1) { + e01 = "request"; + e01 += "Co"; + e01 += "mp"; + e01 += "let"; + e01 += "e"; + M01 = "oncomplete ignored, pipeline"; + M01 += "s "; + M01 += "shutdown,"; + M01 += " mediaRequest:"; + switch (x61) { + case 2: + this.ke() ? this.fa(M01, a) : (this.lx && (this.lx = !1, this.wa[a.na].nC.DK(!0)), a.d0 || (this.xd.Cwa(this.Ae - this.ni, a.fj, a.rd), a.Bc || this.xd.Ihb(a.P, a.duration, a.Ae, a.Zn)), a.Bc ? (this.uSa(a), this.Zlb()) : this.Lja(a), this.K.SQ && this.aP.push(a.CS), this.emit(e01, { + timestamp: a.rd, + mediaRequest: a + })); + x61 = 1; + break; + } + } + }; + c.prototype.zD = function(a) { + var E61, b, D01, f01, R01, w01, y01; + E61 = 2; + while (E61 !== 4) { + D01 = "NFErr_MC_Stre"; + D01 += "a"; + D01 += "mingFailure"; + f01 = "unk"; + f01 += "n"; + f01 += "own"; + R01 = ", e"; + R01 += "rrorm"; + R01 += "sg: "; + w01 = "MP4 parsing er"; + w01 += "ror "; + w01 += "on: "; + y01 = "re"; + y01 += "quest"; + y01 += "Error ignored, pipelines shutdown,"; + y01 += " mediaRequest:"; + switch (E61) { + case 2: + b = a.pk; + E61 = 5; + break; + case 5: + this.ke() ? this.fa(y01, a) : a.Bc && a.parseError ? (this.fa(w01 + a + R01, a.parseError), this.bk(a.parseError)) : (this.K.sab && b === U.Ss.xX && 0 < a.Ae && (b = U.Ss.lW), this.wa[a.na].nC.Ll(a.status, b, a.Il, { + url: a.url + }), this.H_() || this.bk(a.cR || f01, D01, b, a.status, a.Il)); + E61 = 4; + break; + } + } + }; + g.M = c; + U01; + I2t = 247; + break; + case 24: + ga = O.Promise; + S = O.MediaSource; + T = a(204).cW; + H = a(364).Hba; + A = a(96); + G = a(48); + f = a(28); + R = f.uLa; + Z = f.Ia; + c.prototype = Object.create(A.prototype); + c.prototype.constructor = c; + Object.defineProperties(c.prototype, { + R: { + get: function() { + var y2t; + y2t = 2; + while (y2t !== 1) { + switch (y2t) { + case 2: + return this.om; + break; + case 4: + return this.om; + break; + y2t = 1; + break; + } + } + } + }, + ka: { + get: function() { + var P2t; + P2t = 2; + while (P2t !== 1) { + switch (P2t) { + case 2: + return this.L_; + break; + case 4: + return this.L_; + break; + P2t = 1; + break; + } + } + } + }, + xxa: { + get: function() { + var H2t; + H2t = 2; + while (H2t !== 1) { + switch (H2t) { + case 2: + return this.yb; + break; + case 4: + return this.yb; + break; + H2t = 1; + break; + } + } + } + }, + Xr: { + get: function() { + var a2t; + a2t = 2; + while (a2t !== 1) { + switch (a2t) { + case 4: + return this.la.Xr; + break; + a2t = 1; + break; + case 2: + return this.la.Xr; + break; + } + } + } + }, + dv: { + get: function() { + var R2t; + R2t = 2; + while (R2t !== 1) { + switch (R2t) { + case 4: + return this.ze.ec; + break; + R2t = 1; + break; + case 2: + return this.ze.ec; + break; + } + } + } + }, + Qi: { + get: function() { + var u2t; + u2t = 2; + while (u2t !== 1) { + switch (u2t) { + case 2: + return this.Li[b.G.AUDIO]; + break; + case 4: + return this.Li[b.G.AUDIO]; + break; + u2t = 1; + break; + } + } + } + }, + Rf: { + get: function() { + var J2t; + J2t = 2; + while (J2t !== 1) { + switch (J2t) { + case 2: + return this.Li[b.G.VIDEO]; + break; + case 4: + return this.Li[b.G.VIDEO]; + break; + J2t = 1; + break; + } + } + } + }, + attributes: { + get: function() { + var v2t; + v2t = 2; + while (v2t !== 1) { + switch (v2t) { + case 2: + return this.$Y; + break; + case 4: + return this.$Y; + break; + v2t = 1; + break; + } + } + } + }, + z6: { + get: function() { + var Y2t; + Y2t = 2; + while (Y2t !== 1) { + switch (Y2t) { + case 4: + return this.Yf; + break; + Y2t = 1; + break; + case 2: + return this.Yf; + break; + } + } + } + }, + na: { + get: function() { + var b2t; + b2t = 2; + while (b2t !== 1) { + switch (b2t) { + case 2: + return this.xc; + break; + case 4: + return this.xc; + break; + b2t = 1; + break; + } + } + } + }, + kK: { + get: function() { + var k2t; + k2t = 2; + while (k2t !== 1) { + switch (k2t) { + case 4: + return 1 >= this.rO ? this.rO : 2; + break; + k2t = 1; + break; + case 2: + return 0 <= this.rO ? this.rO : 0; + break; + } + } + } + }, + su: { + get: function() { + var f2t; + f2t = 2; + while (f2t !== 1) { + switch (f2t) { + case 4: + return this.wa[this.xc]; + break; + f2t = 1; + break; + case 2: + return this.wa[this.xc]; + break; + } + } + } + }, + aj: { + get: function() { + var C2t; + C2t = 2; + while (C2t !== 1) { + switch (C2t) { + case 4: + return this.$a.aj; + break; + C2t = 1; + break; + case 2: + return this.$a.aj; + break; + } + } + } + }, + ys: { + get: function() { + var e2t; + e2t = 2; + while (e2t !== 1) { + switch (e2t) { + case 4: + return this.$a.ys; + break; + e2t = 1; + break; + case 2: + return this.$a.ys; + break; + } + } + } + }, + MG: { + get: function() { + var N2t; + N2t = 2; + while (N2t !== 1) { + switch (N2t) { + case 2: + return this.xd; + break; + case 4: + return this.xd; + break; + N2t = 1; + break; + } + } + } + }, + Vlb: { + get: function() { + var T2t; + T2t = 2; + while (T2t !== 1) { + switch (T2t) { + case 2: + return this.$ka; + break; + case 4: + return this.$ka; + break; + T2t = 1; + break; + } + } + } + } }); - }); - n.Sn(); - v = JSON.stringify(u); - f[r] = k; - a.postMessage(v); - } catch (Z) { - c.error("Exception calling plugin", Z); - p({ - R: g.u.DCa - }); - } - }; - }; - }, function(f, c, a) { - var b, d, h; - Object.defineProperty(c, "__esModule", { - value: !0 - }); - b = a(94); - d = a(8); - h = a(5); - b.prototype.kta = function(a) { - a = new b(a); - for (var c, f;;) - if (c = a.Oj(), f = c >>> 14) f = h.ue(4, f), d.ea(1 <= f), this.A6(192 | f), this.II(a, 16384 * f); - else { - d.ea(16384 > c); - 128 > c ? this.A6(c) : this.lta(c | 32768, 2); - this.II(a, c); - break; - } - }; - b.prototype.Cpa = function() { - for (var a = [], c = new b(a), d;;) { - d = this.ef(); - if (d & 128) - if (128 == (d & 192)) d &= 63, d = (d << 8) + this.ef(), c.II(this, d); - else if (d &= 63, 0 < d && 4 >= d) { - c.II(this, 16384 * d); - continue; - } else throw Error("bad asn1"); - else c.II(this, d); - break; - } - return new Uint8Array(a); - }; - }, function(f, c, a) { - Object.defineProperty(c, "__esModule", { - value: !0 - }); - f = a(3); - c = a(84); - a = a(142); - f.Z.get(c.ou).cB(a.Ux.Rua, function(a) { - var b, c; - b = a.level; - if (!t._cad_global.config || b <= t._cad_global.config.p1a) { - a = a.lI(); - c = t.console; - 1 >= b ? c.error(a) : 2 >= b ? c.warn(a) : c.log(a); - } - }); - }, function(f) { - function c(a, b) { - return a.id === b.id && a.displayTime + a.duration === b.displayTime; - } - - function a(a) { - return a.duration; - } - - function b(a, b) { - return a + b; - } - f.P = { - oPa: function(a, b, c) { - for (var d = 0; d < a.length; d++) - if (a[d] !== b[d]) return c.error("indexId mismatch in sidx", { - sIndexId: a, - mIndexId: b - }), !1; - return !0; - }, - fZ: function(a, b, c) { - var d; - d = {}; - d.displayTime = a.Jh; - d.duration = a.duration; - d.originX = a.GP; - d.originY = a.HP; - d.sizeX = a.cR; - d.sizeY = a.dR; - d.imageData = b; - d.id = a.ao; - d.rootContainerExtentX = c.vQ; - d.rootContainerExtentY = c.wQ; - return d; - }, - hXa: function(a, b) { - return "o_" + a + "s_" + b; - }, - cta: function(a, b) { - b("P" == String.fromCharCode(a[1])); - b("N" == String.fromCharCode(a[2])); - b("G" == String.fromCharCode(a[3])); - }, - $a: function(a) { - return "undefined" !== typeof a; - }, - C8a: function(a, b) { - return a.some(function(a) { - return a.id === b; - }); - }, - XTa: function(d, f) { - return d.filter(c.bind(null, f)).map(a).reduce(b, 0); - }, - EF: function(a, b) { - var c, d; - c = Object.create({}); - for (d in a) c[d] = a[d]; - a instanceof Error && (c.message = a.message, c.stack = a.stack); - c.errorString = b; - return c; - }, - assert: function(a, b) { - if (!a) throw b && b.error(Error("Assertion Failed").stack), Error("Assertion Failed"); - } - }; - }, function(f, c, a) { - var T, ca, Z, O, B, A; - - function b(a) { - T.call(this); - this.XWa = p; - this.Mf = a.url; - this.TD = a.request; - this.AL = a.Qb || 0; - this.gL = a.Ke; - this.eb = a.ca; - this.di = this.sg = null; - this.qD = {}; - this.Cr = 0; - this.GD = a.bufferSize || 4194304; - this.jW = {}; - this.kfa = a.version || 1; - a.key && (this.Tca = a.crypto, this.Ru = this.Tca.importKey("raw", a.key, { - name: "AES-CTR" - }, !1, ["encrypt", "decrypt"])); - a.B2 ? this.sg = a.B2 : (this.Zb = a.offset, this.AKa = a.size); - } - - function d() {} - - function h() {} - - function l(a, b) { - var c, f, h, m, l, p, k, r; - if (a) this.emit(B.ERROR, O.EF(a, A.Iza)); - else try { - if (2 === this.kfa) { - f = new d(); - h = Z.a4(b)[0]; - m = h.$p("636F6D2E-6E65-7466-6C69-782E68696E66"); - l = h.$p("636F6D2E-6E65-7466-6C69-782E6D696478"); - f.xO = m.Ufa; - f.hi = m.hi; - f.oo = m.oo; - f.M = m.M; - f.vQ = m.vQ; - f.wQ = m.wQ; - f.language = m.h0a; - f.Hab = m.iab; - f.startOffset = l.M8a; - p = []; - k = 0; - for (a = 0; a < l.bk.length; a++) { - r = l.bk[a]; - b = {}; - b.duration = r.duration; - b.size = r.size; - p.push(b); - k += b.duration; - } - f.entries = p; - f.endTime = k; - c = f; - } else { - p = new ca(b); - k = new d(); - k.identifier = p.It(4); - O.assert("midx" === k.identifier); - k.version = p.qd(4); - O.assert(0 === k.version); - k.xO = p.re(36); - k.hi = p.ff(); - k.oo = p.ff(); - k.M = p.ff(); - k.vQ = p.xb(); - k.wQ = p.xb(); - k.language = p.re(16); - k.Hab = p.re(16); - k.startOffset = p.ff(); - k.Tn = p.xb(); - f = []; - for (r = l = 0; r < k.Tn; r++) a = {}, a.duration = p.qd(4), a.size = p.xb(), f.push(a), l += a.duration; - k.entries = f; - k.endTime = l; - c = k; - } - this.sg = c; - g.call(this); - } catch (ka) { - this.emit(B.ERROR, O.EF(ka, A.Jza)); - } - } - - function g() { - var a, b; - a = this.sg; - b = a.startOffset; - (a = a.entries.reduce(function(a, b) { - return a + b.size; - }, 0)) ? (b = { - url: this.Mf, - offset: b, - size: a - }, this.emit(B.Kza, this.sg), this.TD(b, m.bind(this))) : this.emit(B.ERROR, O.EF({}, A.HAa)); - } - - function m(a, b) { - var c, d, g, f; - c = this; - if (a) c.emit(B.ERROR, O.EF(a, A.pEa)); - else { - d = 0; - g = []; - f = 0; - try { - c.sg.entries.forEach(function(a) { - var m, l, p, k, r, n, v; - l = d; - p = c.sg.xO; - k = c.eb; - if (2 === c.kfa) { - m = new h(); - r = Z.a4(b); - m.entries = []; - m.images = []; - for (var u = 0; u < r.length; u++) - for (p = r[u], l = p.$p("636F6D2E-6E65-7466-6C69-782E73696478"), p = p.$p("636F6D2E-6E65-7466-6C69-782E73656E63"), k = 0; k < l.vo.length; k++) { - n = {}; - v = l.vo[k]; - n.Jh = v.Jh; - n.duration = v.duration; - n.GP = v.GP; - n.HP = v.HP; - n.cR = v.cR; - n.dR = v.dR; - n.ao = v.ao; - n.dA = v.dA; - if (v = p && p.vo[k]) n.zia = { - ht: v.ht.slice(0), - mode: v.Aia - }; - m.entries.push(n); + c.prototype.WC = function(a) { + var D2t; + D2t = 2; + while (D2t !== 1) { + switch (D2t) { + case 4: + return this.Li[a]; + break; + D2t = 1; + break; + case 2: + return this.Li[a]; + break; + } + } + }; + c.prototype.RT = function() { + var d2t; + d2t = 2; + while (d2t !== 1) { + switch (d2t) { + case 4: + this.bB = +2; + d2t = 7; + break; + d2t = 1; + break; + case 2: + this.bB = !0; + d2t = 1; + break; + } + } + }; + c.prototype.Ej = function() { + var O2t; + O2t = 2; + while (O2t !== 1) { + switch (O2t) { + case 2: + return this.$a.Ej(this.XA[b.G.AUDIO], this.XA[b.G.VIDEO]); + break; + } + } + }; + c.prototype.Uua = function() { + var r2t, a; + r2t = 2; + while (r2t !== 3) { + switch (r2t) { + case 2: + a = 0; + k.forEach(this.xn.audio_tracks, function(b) { + var n2t; + n2t = 2; + while (n2t !== 1) { + switch (n2t) { + case 2: + k.forEach(b.streams, function(b) { + var t2t; + t2t = 2; + while (t2t !== 1) { + switch (t2t) { + case 2: + a = Math.max(a, b.bitrate); + t2t = 1; + break; + } + } + }); + n2t = 1; + break; + } + } + }); + return a; + break; + } + } + }; + c.prototype.de = function() { + var c2t; + c2t = 2; + while (c2t !== 1) { + switch (c2t) { + case 2: + return this.Nt.de(); + break; + case 4: + return this.Nt.de(); + break; + c2t = 1; + break; + } + } + }; + c.prototype.ly = function() { + var Z2t, Z01; + Z2t = 2; + while (Z2t !== 1) { + Z01 = "f"; + Z01 += "un"; + Z01 += "cti"; + Z01 += "on"; + switch (Z2t) { + case 2: + return Z01 === typeof this.Nt.ly ? this.Nt.ly() : this.yb.value === b.Ca.xf; + break; + } + } + }; + c.prototype.uCa = function() { + var V2t; + V2t = 2; + while (V2t !== 1) { + switch (V2t) { + case 4: + return this.K.csb ? +this.PO : ~8; + break; + V2t = 1; + break; + case 2: + return this.K.csb ? !this.PO : !1; + break; + } + } + }; + c.prototype.S2 = function(a) { + var X2t; + X2t = 2; + while (X2t !== 1) { + switch (X2t) { + case 2: + return this.K.Tx && a === b.G.VIDEO; + break; + case 4: + return this.K.Tx || a != b.G.VIDEO; + break; + X2t = 1; + break; + } + } + }; + c.prototype.xC = function(a) { + var G2t; + G2t = 2; + while (G2t !== 1) { + switch (G2t) { + case 2: + return this.la.xC(a); + break; + case 4: + return this.la.xC(a); + break; + G2t = 1; + break; + } + } + }; + c.prototype.sk = function(a) { + var M2t; + M2t = 2; + while (M2t !== 1) { + switch (M2t) { + case 4: + return this.wa[a]; + break; + M2t = 1; + break; + case 2: + return this.wa[a]; + break; + } + } + }; + c.prototype.q9a = function() { + var i2t, a; + i2t = 2; + while (i2t !== 4) { + switch (i2t) { + case 2: + a = this.wa[0]; + return a.ci ? this.wa[1] : a; + break; + } + } + }; + I2t = 52; + break; + case 102: + c.prototype.SU = function(a) { + var y0t; + y0t = 2; + while (y0t !== 5) { + switch (y0t) { + case 2: + this.xia = a; + this.la.SU(a); + y0t = 5; + break; + } + } + }; + c.prototype.Jp = function(a) { + var P0t, k01, N01; + P0t = 2; + while (P0t !== 1) { + k01 = "aseex"; + k01 += "c"; + k01 += "ep"; + k01 += "tion"; + N01 = "a"; + N01 += "see"; + N01 += "x"; + N01 += "ception"; + switch (P0t) { + case 2: + this.emit(N01, { + type: k01, + msg: a + }); + P0t = 1; + break; + } + } + }; + c.prototype.Pgb = function(a, b, c, d) { + var H0t, W01, J01; + H0t = 2; + while (H0t !== 5) { + W01 = "ma"; + W01 += "xv"; + W01 += "ideobitratec"; + W01 += "ha"; + W01 += "nged"; + J01 = "maxvideobit"; + J01 += "ra"; + J01 += "techa"; + J01 += "nge"; + J01 += "d"; + switch (H0t) { + case 2: + a = { + type: J01, + time: O.time.da(), + spts: d, + maxvb_old: a, + maxvb: b, + reason: c + }; + H0t = 1; + break; + case 1: + this.emit(W01, a); + H0t = 5; + break; + } + } + }; + c.prototype.nwa = function() { + var a0t, a, P01; + a0t = 2; + while (a0t !== 9) { + P01 = "s"; + P01 += "t"; + P01 += "r"; + P01 += "eame"; + P01 += "rend"; + switch (a0t) { + case 2: + a0t = 1; + break; + case 1: + a0t = !this.VVa && this.K.lwa ? 5 : 9; + break; + case 5: + this.VVa = !0; + a = { + type: P01, + time: O.time.da() + }; + Z(this, a.type, a); + a0t = 9; + break; + } + } + }; + c.prototype.sia = function(a, b, c) { + var R0t, d, f; + R0t = 2; + while (R0t !== 3) { + switch (R0t) { + case 14: + return { + inRange: d, ZB: f + }; + break; + R0t = 3; + break; + case 4: + return { + inRange: d, ZB: f + }; + break; + case 2: + d = !0; + c.some(function(c) { + var u0t, g; + u0t = 2; + while (u0t !== 8) { + switch (u0t) { + case 5: + g = c.ranges; + d = k.V(g) ? b >= c.min && b <= c.max : g.some(function(a) { + var J0t; + J0t = 2; + while (J0t !== 1) { + switch (J0t) { + case 4: + return b <= a.min || b < a.max; + break; + J0t = 1; + break; + case 2: + return b >= a.min && b <= a.max; + break; + } + } + }); + !d && c.disallowed && c.disallowed.some(function(a) { + var v0t; + v0t = 2; + while (v0t !== 5) { + switch (v0t) { + case 9: + return f = a.disallowedBy, +7; + break; + v0t = 5; + break; + case 3: + v0t = a.stream.bitrate != b ? 7 : 6; + break; + v0t = a.stream.bitrate === b ? 1 : 5; + break; + case 2: + v0t = a.stream.bitrate === b ? 1 : 5; + break; + case 1: + return f = a.disallowedBy, !0; + break; + } + } + }); + u0t = 9; + break; + case 2: + u0t = 1; + break; + case 1: + u0t = a === c.profile ? 5 : 8; + break; + case 9: + return !0; + break; + } + } + }); + R0t = 4; + break; + } + } + }; + c.prototype.vC = function(a, b, c) { + var Y0t; + Y0t = 2; + while (Y0t !== 1) { + switch (Y0t) { + case 2: + return this.la.ej.Sa[b].Oa.vC(a, void 0, c); + break; + } + } + }; + c.prototype.SP = function(a) { + var b0t, c, d; + b0t = 2; + while (b0t !== 6) { + switch (b0t) { + case 4: + b0t = a < c.$b || a >= d ? 3 : 9; + break; + case 2: + c = this.la.ej; + d = 0 < Object.keys(c.qa && c.qa.zj || {}).length && !c.Ag ? c.Cd - this.K.lT : c.Cd; + b0t = 4; + break; + case 9: + c = this.vC(a, b.G.AUDIO, !0); + a = this.vC(a, b.G.VIDEO, !0); + return c && a && c.complete && a.complete; + break; + case 3: + return !1; + break; + } + } + }; + c.prototype.a3 = function(a, b) { + var k0t, c, d; + k0t = 2; + while (k0t !== 8) { + switch (k0t) { + case 4: + d = this.xd.fU; + a && !a.yB && d.Z2(a); + b ? c.E9() : (b = d.r8a(), this.QTa(b)); + k0t = 8; + break; + case 2: + c = this.Xa; + a = c.s3(a, b); + k0t = 4; + break; + } + } + }; + c.prototype.tja = function(a, b) { + var f0t, c, d, f, s01, T01; + f0t = 2; + while (f0t !== 14) { + s01 = "findNewStreamIndex un"; + s01 += "able to find stre"; + s01 += "am for bi"; + s01 += "trate: "; + T01 = " retu"; + T01 += "rni"; + T01 += "ng index: "; + switch (f0t) { + case 2: + f = a.length - 1; + f0t = 1; + break; + case 5: + f0t = (d = a[f], d.Fe && !d.Eh && d.inRange) ? 4 : 8; + break; + case 4: + f0t = d.O <= b ? 3 : 9; + break; + case 9: + c = f; + f0t = 8; + break; + case 3: + return f; + break; + case 8: + --f; + f0t = 1; + break; + case 1: + f0t = 0 <= f ? 5 : 7; + break; + case 7: + H4DD.q71(3); + this.fa(H4DD.d71(T01, s01, b, c)); + return c; + break; + } + } + }; + c.prototype.yRa = function(a) { + var C0t, b; + C0t = 2; + while (C0t !== 3) { + switch (C0t) { + case 2: + b = this.Xa.ob[a.P]; + b.ii && b.ii.VP && (b.ii.VP = void 0); + a.FK && (b.ao = void 0, b.ii = void 0, b.lI = void 0, b.zl = void 0, a.FK = void 0); + C0t = 3; + break; + } + } + }; + c.prototype.vVa = function(a, b) { + var e0t, c, d; + e0t = 2; + while (e0t !== 19) { + switch (e0t) { + case 4: + return a.yu = b, !0; + break; + case 10: + ++d; + e0t = 13; + break; + case 2: + c = this.K; + e0t = 5; + break; + case 3: + e0t = a.yu && 0 < a.yu.length ? 9 : 8; + break; + case 5: + e0t = b ? 4 : 3; + break; + case 8: + e0t = a.Zd < c.E7 ? 7 : 6; + break; + case 13: + e0t = d < b.length ? 12 : 20; + break; + case 12: + e0t = (c = b[d], c.Fe && c.inRange && !c.Eh && k.V(this.Ve[a.P][c.id])) ? 11 : 10; + break; + case 20: + return !1; + break; + case 14: + d = 0; + e0t = 13; + break; + case 7: + return !1; + break; + case 11: + return a.yu = [d], !0; + break; + case 6: + b = a.bc; + e0t = 14; + break; + case 9: + return !0; + break; + } + } + }; + c.prototype.bO = function(a, b, c) { + var N0t, d; + N0t = 2; + while (N0t !== 4) { + switch (N0t) { + case 2: + d = this.K; + return c ? d.dR ? d.dR : d.ZR : d.hCa && b ? b.offset + b.size : !k.V(a) && (a = this.Xa.ob[a], a.l6) ? a.l6 + 128 : 2292 + 12 * Math.ceil(this.jm / 2E3); + break; + } + } + }; + c.prototype.NZa = function(a, c) { + var T0t, d, f, g, k, h; + T0t = 2; + while (T0t !== 20) { + switch (T0t) { + case 2: + f = this.wa[0]; + g = b.G.VIDEO; + T0t = 4; + break; + case 3: + T0t = f.Rn && f.Rn[g] && f.Rn[g].U <= a && f.Rn[g].ea > a ? 9 : 7; + break; + case 4: + T0t = f && f.ib && f.ib[g] && f.ib[g].stream.Mc ? 3 : 10; + break; + case 9: + d = f.Rn[g].$b; + T0t = 8; + break; + case 8: + return d; + break; + case 7: + d = f.ib[g].Y; + k = d.Dj(a, void 0, !0); + void 0 == k && k < d.length - 1 && ++k; + c && (a = f.ib[g].stream.$g(k).hR(a)) && (h = a.Jb); + T0t = 12; + break; + case 12: + void 0 === h && (h = d.Of(k)); + T0t = 11; + break; + case 11: + d = h; + T0t = 8; + break; + case 10: + d = void 0; + T0t = 8; + break; + } + } + }; + c.prototype.$F = function(a, c, d, f, g) { + var D0t, k, h, m, p, l; + D0t = 2; + while (D0t !== 8) { + switch (D0t) { + case 9: + return { + fz: l.map(function(a) { + var O0t; + O0t = 2; + while (O0t !== 1) { + switch (O0t) { + case 4: + return a.U; + break; + O0t = 1; + break; + case 2: + return a.U; + break; + } + } + }), Rn: l + }; + break; + case 2: + k = this.wa[a]; + f && (m = f.Sa[b.G.VIDEO].Fh.ea, p = f.Sa[b.G.AUDIO].Fh, f = p.ea, h = f - m, g || (m = void 0), p = f - p.U); + l = this.sja(d.Sa, k.ib, c, m, h, p); + a === this.la.Coa && [b.G.VIDEO, b.G.AUDIO].forEach(function(a) { + var d0t, b; + d0t = 2; + while (d0t !== 4) { + switch (d0t) { + case 2: + b = d.fi(a); + b && (b.pf = l[a]); + d0t = 4; + break; + } + } + }); + D0t = 9; + break; + } + } + }; + c.prototype.SB = function(a, b) { + var r0t, c, d; + r0t = 2; + while (r0t !== 14) { + switch (r0t) { + case 4: + r0t = d ? 3 : 7; + break; + case 2: + void 0 === a && (a = this.kK); + d = this.la.a7a(b, a); + r0t = 4; + break; + case 9: + k.ja(c) || (c = this.wa[a].Pm); + H4DD.a71(2); + return H4DD.d71(c, b); + break; + case 3: + c = d.Jc; + r0t = 9; + break; + case 6: + c = d.Jc; + r0t = 9; + break; + case 7: + r0t = (d = this.la.nqa(a)) ? 6 : 9; + break; + } + } + }; + c.prototype.eoa = function(a, b) { + var n0t, c, d; + n0t = 2; + while (n0t !== 14) { + switch (n0t) { + case 2: + void 0 === a && (a = this.kK); + d = this.la.$6a(b, a); + n0t = 4; + break; + case 9: + k.ja(c) || (c = this.wa[a].Pm); + H4DD.a71(0); + return H4DD.c71(b, c); + break; + case 4: + n0t = d ? 3 : 7; + break; + case 7: + n0t = (d = this.la.nqa(a)) ? 6 : 9; + break; + case 3: + c = d.Jc; + n0t = 9; + break; + case 6: + c = d.Jc; + n0t = 9; + break; + } + } + }; + c.prototype.Hra = function(a, c, d) { + var t0t; + t0t = 2; + while (t0t !== 9) { + switch (t0t) { + case 2: + a = (d ? this.sja : this.PA).call(this, a.Sa, this.sk(a.na).ib, c); + t0t = 1; + break; + case 4: + c = a[b.G.VIDEO]; + return d ? c.U : c.ea; + break; + case 1: + t0t = !a.length ? 5 : 4; + break; + case 5: + return c; + break; + } + } + }; + c.prototype.xla = function(a) { + var c0t, c; + c0t = 2; + while (c0t !== 7) { + switch (c0t) { + case 1: + c0t = a ? 5 : 7; + break; + case 8: + return !0; + break; + case 2: + c0t = 1; + break; + case 9: + c0t = (!this.Li[b.G.VIDEO] || c && c.stream.Mc) && a ? 8 : 7; + break; + case 5: + c = a[b.G.VIDEO]; + a = a[b.G.AUDIO]; + a = !this.Li[b.G.AUDIO] || a && a.stream.Mc; + c0t = 9; + break; + } + } + }; + c.prototype.sja = function(a, c, d, f, g, k) { + var Z0t; + Z0t = 2; + while (Z0t !== 1) { + switch (Z0t) { + case 2: + return this.xla(c) ? [b.G.VIDEO, b.G.AUDIO].map(function(b) { + var V0t; + V0t = 2; + while (V0t !== 9) { + switch (V0t) { + case 1: + return {}; + break; + case 5: + b = a[b].pqa(c[b].stream, d, f, g, k); + d = b.U; + return b; + break; + case 2: + V0t = !this.Li[b] ? 1 : 5; + break; + } + } + }.bind(this)).reverse() : []; + break; + } + } + }; + c.prototype.PA = function(a, c, d) { + var X0t; + X0t = 2; + while (X0t !== 1) { + switch (X0t) { + case 2: + return this.xla(c) ? [b.G.VIDEO, b.G.AUDIO].map(function(b) { + var G0t; + G0t = 2; + while (G0t !== 9) { + switch (G0t) { + case 2: + G0t = !this.Li[b] ? 1 : 5; + break; + case 5: + b = a[b].c7a(c[b].stream, d); + d = b.ea; + return b; + break; + case 1: + return {}; + break; + } + } + }.bind(this)).reverse() : []; + break; + } + } + }; + c.prototype.iSa = function(a, b, c, d) { + var M0t, f; + M0t = 2; + while (M0t !== 12) { + switch (M0t) { + case 13: + return b; + break; + case 8: + ++d; + M0t = 7; + break; + case 9: + M0t = !b.$c && !this.Xr ? 8 : 13; + break; + case 7: + M0t = d < c.length && d < a.Fh.index && (b.Z < a.Tfb || b.duration < a.gT) ? 6 : 13; + break; + case 6: + b.e0(c.get(d)), b.PJ = d + 1; + M0t = 14; + break; + case 2: + c = b.Y; + f = d === a.pf.index; + d === a.Fh.index ? (b = b.sra(a.Fh), b.SK(a.Fh.Nv), b.g7()) : f ? (b = b.sra(a.pf), b.SK(a.pf.Nv)) : b = b.$g(d); + H4DD.a71(0); + b.PJ = H4DD.c71(d, 1); + M0t = 9; + break; + case 14: + ++d; + M0t = 7; + break; + } + } + }; + c.prototype.hSa = function(a, b, c, d) { + var i0t, f; + i0t = 2; + while (i0t !== 11) { + switch (i0t) { + case 3: + H4DD.q71(0); + b.PJ = H4DD.c71(d, 1); + i0t = 9; + break; + case 2: + i0t = 1; + break; + case 1: + f = this.K; + c = b.Y; + b = b.$g(d); + i0t = 3; + break; + case 7: + i0t = d < c.length && d < a.Fh.index && (b.duration < a.gT || 0 !== d % f.j8) ? 6 : 13; + break; + case 9: + i0t = !b.$c ? 8 : 13; + break; + case 8: + ++d; + i0t = 7; + break; + case 13: + b.jdb = this.kO + (O.time.da() - this.lO); + return b; + break; + case 6: + b.e0(c.get(d)), b.PJ = d + 1; + i0t = 14; + break; + case 14: + ++d; + i0t = 7; + break; + } + } + }; + c.prototype.Gia = function(a, b) { + var s0t, c, d, f; + s0t = 2; + while (s0t !== 7) { + switch (s0t) { + case 2: + c = this.K; + d = !1; + f = function(b) { + var B0t; + B0t = 2; + while (B0t !== 1) { + switch (B0t) { + case 2: + 0 !== b.length && (b = b[0], b.Kc < a.Ra && (b = b.Kc, a.tmb(b)), d = !0); + B0t = 1; + break; + } + } + }.bind(this); + c.dr && a.Oa.aob(this.xc, b.O, f); + c = this.Xa.ob[a.P]; + return this.Jka && b.Pb && c.Zta && b.Pb != c.Zta && (0 < a.Oa.ov || 0 < a.Oa.Bo) ? { + RL: !0, + kl: d + } : { + RL: !1, + kl: d + }; + break; + } + } + }; + I2t = 108; + break; + case 108: + c.prototype.lia = function(a, b) { + var L0t, c, f, g, k; + L0t = 2; + while (L0t !== 8) { + switch (L0t) { + case 9: + g && k && (f = f.Aj) && (d(this.yb.value) || this.xd.OWa(c, f, g.O, k.O, a.Fsa.O, b)); + L0t = 8; + break; + case 2: + c = a.P; + f = this.Xa.ob[c]; + g = f.ao; + k = f.Yu; + L0t = 9; + break; + } + } + }; + c.prototype.qSa = function(a) { + var j0t; + j0t = 2; + while (j0t !== 1) { + switch (j0t) { + case 2: + return this.la.Vma.reduce(function(b, c) { + var p0t; + p0t = 2; + while (p0t !== 1) { + switch (p0t) { + case 4: + return b % c.k$a(a); + break; + p0t = 1; + break; + case 2: + return b + c.k$a(a); + break; + } + } + }, 0); + break; + } + } + }; + c.prototype.Hia = function(a, c) { + var U0t, f, g, h, m, p, l, r, n, u, E01, L01, Q01, B01; + U0t = 2; + while (U0t !== 23) { + E01 = " "; + E01 += ">="; + E01 += " "; + L01 = "No vacancy, stalling due to m"; + L01 += "ax f"; + L01 += "ra"; + L01 += "meCount:"; + Q01 = "floore"; + Q01 += "d t"; + Q01 += "o 0"; + B01 = "n"; + B01 += "eg"; + B01 += "ative scheduledBufferLeve"; + B01 += "l:"; + switch (U0t) { + case 16: + U0t = !k.V(f.wJ) && p >= f.wJ || a.BE + h >= Math.max(f.TS, this.$a.sAa + f.i8 * m.kD[g]) ? 15 : 27; + break; + case 17: + p = this.la.Kqb(); + U0t = 16; + break; + case 18: + return !1; + break; + case 20: + h = a.Oa.axa; + U0t = 19; + break; + case 15: + return !1; + break; + case 19: + U0t = h >= f.lD || r === b.Ca.xf && a.Zd > f.Ieb && !this.Vh && !this.lZ && !this.JI() || p && h > Math.max(p * f.n7 / 100, f.G7) || c && (p = a.Ra - n, this.Li[c.P] && !c.pg && p >= f.q7 && l > f.ki && (this.$a.Gcb || void 0 === u || u < f.Heb)) || f.dr && a.Oa.Bo >= f.s7 || this.qSa(g) >= f.By ? 18 : 17; + break; + case 8: + l = this.de(); + r = this.yb.value; + l = a.Ra + h.Jc - l; + 0 > l && (a.fa(B01, l, Q01), l = 0); + n = c ? c.Ra : 0; + u = c ? f.Zrb ? c.dZa : c.cZa : void 0; + U0t = 11; + break; + case 2: + f = this.K; + g = a.P; + h = a.Fc; + m = this.wa[h.na]; + p = a.Zd; + U0t = 8; + break; + case 26: + U0t = (r = 1, a.R0 < f.Ay && (r = f.Ay), a.Oa.ov >= r) ? 25 : 24; + break; + case 10: + return a.fa(L01, a.Sp + E01 + f.Ql), !1; + break; + case 25: + return !1; + break; + case 11: + U0t = f.Ql && a.Sp >= f.Ql ? 10 : 20; + break; + case 27: + U0t = (m = d(r)) ? 26 : 24; + break; + case 24: + return f.Tx && a.Oa.ov >= f.Xeb || !m && 0 < f.oD && g === b.G.VIDEO && a.Fs > f.oD || 0 < f.$r && !m && a.Fs + (c ? c.Fs : 0) > f.$r || g === b.G.VIDEO && this.Vh && a.Zd > f.m7 && (c = this.$a.Wa.get(!1), c.zc && c.pa && c.pa.za * a.BE > f.l7) ? !1 : !0; + break; + } + } + }; + c.prototype.YSa = function(a, b) { + var g0t, c, d, f; + g0t = 2; + while (g0t !== 12) { + switch (g0t) { + case 7: + d = a.bc[d]; + g0t = 6; + break; + case 5: + g0t = !(!c.f0 && !c.dr || a.q6 + c.P_ > O.time.da()) ? 4 : 12; + break; + case 2: + c = this.K; + g0t = 5; + break; + case 4: + a.q6 = O.time.da(); + c = this.Xa.FI(a); + d = c.ef; + g0t = 8; + break; + case 8: + g0t = !k.V(d) ? 7 : 12; + break; + case 6: + f = this.Ve[a.P][d.id]; + g0t = 14; + break; + case 14: + g0t = f && f.Y && (d = this.Gia(a, d), !d.RL && d.kl && this.Hia(a, b)) ? 13 : 12; + break; + case 13: + return c; + break; + } + } + }; + c.prototype.kSa = function(a, b) { + var w0t, c, d, f, g; + w0t = 2; + while (w0t !== 12) { + switch (w0t) { + case 2: + c = this.K; + d = a.P; + f = b.id; + g = this.Ve[d][f]; + w0t = 9; + break; + case 7: + w0t = g ? 6 : 14; + break; + case 8: + g.nE && (a.aV === f && (a.aV = void 0), g.nE = !1); + w0t = 12; + break; + case 9: + w0t = g && !g.Y ? 8 : 7; + break; + case 13: + c = this.bO(d, b.Jj, b.ci), this.nG(a, this.om, b, { + url: b.url, + offset: 0, + Z: c + }), this.Tja = O.time.da(); + w0t = 12; + break; + case 14: + w0t = k.V(c.I7) || k.V(this.Sja) || k.V(this.Tja) || (f = O.time.da(), !(f - this.Sja < c.I7 || f - this.Tja < c.I7)) ? 13 : 12; + break; + case 6: + return g; + break; + } + } + }; + c.prototype.tt = function() { + var S0t, a, c, f, g, k, h, m, p, l, p41, g41, Y41, n41, i01, z01, u01, I01, j01, h01, m01, C01, r01; + S0t = 2; + while (S0t !== 30) { + p41 = "checkBuf"; + p41 += "feringComple"; + p41 += "te ignored because stallAtFrameCount already hit"; + g41 = "n"; + g41 += "/"; + g41 += "a"; + Y41 = "v"; + Y41 += "id"; + Y41 += "eo"; + Y41 += ":"; + n41 = "n"; + n41 += "/"; + n41 += "a"; + i01 = "a"; + i01 += "ud"; + i01 += "io:"; + z01 = "checkBufferingComplete with enough frames, dec"; + z01 += "lar"; + z01 += "e bufferingComple"; + z01 += "te"; + u01 = " "; + u01 += "m"; + u01 += "s"; + I01 = " ms,"; + I01 += " video"; + I01 += " b"; + I01 += "uffer: "; + j01 = ", aud"; + j01 += "io "; + j01 += "bu"; + j01 += "ffer: "; + h01 = " "; + h01 += ">"; + h01 += "="; + h01 += " "; + m01 = "buf"; + m01 += "f"; + m01 += "erin"; + m01 += "g "; + m01 += "longer than limit: "; + C01 = " vi"; + C01 += "d"; + C01 += "eo: "; + r01 = "Session "; + r01 += "checkB"; + r01 += "ufferingCompl"; + r01 += "ete, aud"; + r01 += "io: "; + switch (S0t) { + case 31: + return !1; + break; + case 4: + S0t = !f && !this.qt ? 3 : 9; + break; + case 3: + return !0; + break; + case 19: + a.Oe && this.th(r01 + h + C01 + p); + g = this.la.Bf.KB(l); + this.qt && (h >= a.ki || g) && (this.pYa(), this.qt = void 0); + S0t = 16; + break; + case 20: + return !1; + break; + case 32: + this.GTa(); + S0t = 31; + break; + case 11: + l = a.ki; + S0t = 10; + break; + case 34: + S0t = (!c || h > a.ki) && f && (c = O.time.da() - this.fZ, c >= a.LD) ? 33 : 32; + break; + case 16: + S0t = a.Ql && !g ? 15 : 23; + break; + case 9: + g = this.Xa.ob[b.G.AUDIO]; + k = this.Xa.ob[b.G.VIDEO]; + h = this.la.De; + c = h[b.G.AUDIO]; + m = h[b.G.VIDEO]; + h = c ? c.Zd : 0; + p = m ? m.Zd : 0; + S0t = 11; + break; + case 35: + f = !m || p > a.ki; + S0t = 34; + break; + case 25: + k = m && m.Gx < a.Ql; + S0t = 24; + break; + case 2: + a = this.K; + f = d(this.yb.value); + S0t = 4; + break; + case 22: + return this.QO(), !0; + break; + case 23: + S0t = g ? 22 : 21; + break; + case 33: + return this.fa(m01 + c + h01 + a.LD + j01 + h + I01 + p + u01), this.QO(), !0; + break; + case 10: + S0t = this.Rf && k.mo >= a.ki && (a.C9 && (l = k.mo + 1E3), a.D9 && (!g.connected || !k.connected)) ? 20 : 19; + break; + case 24: + c && c.Gx < a.Ql || k || (this.fa(z01, i01, c ? c.Gx : n41, Y41, m ? m.Gx : g41), this.gRa = g = !0); + S0t = 23; + break; + case 21: + S0t = f ? 35 : 31; + break; + case 27: + this.fa(p41); + return; + break; + case 15: + S0t = this.gRa ? 27 : 25; + break; + } + } + }; + c.prototype.QO = function() { + var Q0t, a; + Q0t = 2; + while (Q0t !== 6) { + switch (Q0t) { + case 7: + this.Yh(); + Q0t = 6; + break; + case 2: + a = this.K; + this.la.De.forEach(function(a) { + var z4t; + z4t = 2; + while (z4t !== 1) { + switch (z4t) { + case 2: + a.seeking = void 0; + z4t = 1; + break; + case 4: + a.seeking = ~4; + z4t = 5; + break; + z4t = 1; + break; + } + } + }); + d(this.yb.value) && (a.Oe && this.la.De.forEach(function(a) { + var o4t, b, A41, K41, o41, X41, F41, V41, O41, t41, l41, b41; + o4t = 2; + while (o4t !== 9) { + A41 = ", ne"; + A41 += "xt"; + A41 += "App"; + A41 += "e"; + A41 += "ndPts: "; + K41 = ", toAp"; + K41 += "p"; + K41 += "end:"; + K41 += " "; + o41 = ", fragme"; + o41 += "n"; + o41 += "ts"; + o41 += ": "; + X41 = ", c"; + X41 += "ompleteSt"; + X41 += "ream"; + X41 += "ingPts: "; + F41 = ","; + F41 += " streamingPts:"; + F41 += " "; + V41 = ","; + V41 += " parti"; + V41 += "a"; + V41 += "ls: "; + O41 = ","; + O41 += " t"; + O41 += "otalBufferByte"; + O41 += "s: "; + t41 = ", totalBuffer"; + t41 += "M"; + t41 += "s:"; + t41 += " "; + l41 = ", bufferL"; + l41 += "e"; + l41 += "v"; + l41 += "elByt"; + l41 += "es: "; + b41 = "bufferingC"; + b41 += "ompl"; + b41 += "et"; + b41 += "e: , mediaType: "; + switch (o4t) { + case 1: + o4t = a ? 5 : 9; + break; + case 5: + b = this.Ke[a.P] || {}; + a = b41 + a.P + l41 + a.gu + t41 + a.BE + O41 + a.Fs + V41 + a.Oa.ov + F41 + a.Ra + X41 + a.Fx + o41 + JSON.stringify(a.Oa.Y) + K41 + JSON.stringify(b.Zh) + A41 + b.BTa; + this.th(a); + o4t = 9; + break; + case 2: + o4t = 1; + break; + } + } + }.bind(this)), this.HTa()); + this.IG(); + this.FA && (clearTimeout(this.FA), this.FA = void 0); + this.yb.set(b.Ca.xf); + Q0t = 7; + break; + } + } + }; + c.prototype.ila = function(a, c) { + var W4t, q4t; + W4t = 2; + while (W4t !== 7) { + switch (W4t) { + case 8: + try { + q4t = 2; + while (q4t !== 1) { + switch (q4t) { + case 2: + this.a3(b.Ca.yA, { + ea: a.ea + }); + q4t = 1; + break; + } + } + } catch (ea) { + var S41; + S41 = "H"; + S41 += "in"; + S41 += "dsight: Error evaluating QoE at endOfStream: "; + H4DD.q71(0); + this.Jp(H4DD.c71(S41, ea)); + } + W4t = 7; + break; + case 9: + W4t = this.On && a.P === b.G.VIDEO ? 8 : 7; + break; + case 2: + a.pg = !0; + a.ea = k.ja(c) ? c : a.Ra; + a.qq = !1; + this.QN(a); + this.tt(); + W4t = 9; + break; + } + } + }; + c.prototype.$Ua = function() { + var l4t, a; + l4t = 2; + while (l4t !== 4) { + switch (l4t) { + case 2: + a = this.$a.Wa; + a && (a = a.get()) && a.avtp && this.ys.SWa({ + avtp: a.avtp.za + }); + l4t = 4; + break; + } + } + }; + c.prototype.RVa = function(a) { + var m4t, c, d, G41, H41, x41; + m4t = 2; + while (m4t !== 8) { + G41 = "s"; + G41 += "tartup, playerState no l"; + G41 += "onger STARTING:"; + H41 = "fa"; + H41 += "iled to start "; + H41 += "audio p"; + H41 += "ipeline"; + x41 = "failed"; + x41 += " to start"; + x41 += " vi"; + x41 += "deo pi"; + x41 += "peline"; + switch (m4t) { + case 4: + d = c[b.G.AUDIO]; + c = c[b.G.VIDEO]; + this.Rf && !this.nla(a, c) ? this.fa(x41) : this.Qi && !this.nla(a, d) ? this.fa(H41) : (this.Jka = !0, this.wa[0].e5 = !0, d = this.Xa.ob[b.G.VIDEO], c = this.Xa.ob[b.G.AUDIO], (d && 0 < d.mo || c && 0 < c.mo) && this.NTa(a, c ? c.mo : 0, d ? d.mo : 0, c ? c.iK : 0, d ? d.iK : 0), this.yb.value != b.Ca.Og ? this.fa(G41, this.yb.value) : (this.TO(0), this.Qi && this.RTa())); + m4t = 8; + break; + case 2: + this.yb.set(b.Ca.Og); + c = this.la.De; + m4t = 4; + break; + } + } + }; + c.prototype.nla = function(a, c) { + var I4t, d, f, g, c41, d41; + I4t = 2; + while (I4t !== 12) { + c41 = "NFErr_MC_Str"; + c41 += "ea"; + c41 += "mingInitFailure"; + d41 = "startPipeli"; + d41 += "ne fa"; + d41 += "iled"; + switch (I4t) { + case 2: + d = c.P; + f = this.Xa.FI(c).ef; + I4t = 4; + break; + case 3: + return this.ke() || this.bk(d41, c41), !1; + break; + case 9: + f = c.bc[f]; + I4t = 8; + break; + case 4: + I4t = k.V(f) ? 3 : 9; + break; + case 8: + I4t = this.Ve[d][f.id] ? 7 : 6; + break; + case 6: + g = this.bO(d, f.Jj, f.ci); + this.nG(c, a, f, { + offset: 0, + Z: g, + Qx: !this.Vh && !this.lZ && d === b.G.VIDEO, + Mr: !this.Xa.ob[d].n7a + }, f.na); + I4t = 13; + break; + case 13: + return !0; + break; + case 7: + return !0; + break; + } + } + }; + c.prototype.TO = function(a, c) { + var x4t, f, g, k; + x4t = 2; + while (x4t !== 10) { + switch (x4t) { + case 2: + f = this.K; + g = this.Xa.ob[b.G.AUDIO] || {}; + k = this.Xa.ob[b.G.VIDEO] || {}; + x4t = 3; + break; + case 12: + g.ol = k.ol = this.fZ; + x4t = 11; + break; + case 3: + g.gH = void 0; + k.gH = void 0; + this.PO = !1; + this.yb.set(2 === a ? b.Ca.jt : b.Ca.Ns); + this.ITa(c); + this.la.De.forEach(function(b) { + var E4t; + E4t = 2; + while (E4t !== 5) { + switch (E4t) { + case 2: + b.R0 = 0; + b.seeking = 0 === a || 1 === a; + E4t = 5; + break; + } + } + }); + this.fZ = O.time.da(); + x4t = 12; + break; + case 11: + 0 === a && (!this.Rf || 0 < k.mo) && (!this.Qi || 0 < g.mo) && (c = this.tt()) && f.yQ ? (this.ex && (clearTimeout(this.ex), this.ex = void 0), this.g_ = !0) : (f.$H && (this.wZ = setTimeout(function() { + var h4t; + h4t = 2; + while (h4t !== 1) { + switch (h4t) { + case 2: + this.$Ua(); + h4t = 1; + break; + case 4: + this.$Ua(); + h4t = 5; + break; + h4t = 1; + break; + } + } + }.bind(this), f.M2)), d(this.yb.value) && (this.FA = setTimeout(function() { + var A4t; + A4t = 2; + while (A4t !== 1) { + switch (A4t) { + case 4: + this.tt(); + A4t = 7; + break; + A4t = 1; + break; + case 2: + this.tt(); + A4t = 1; + break; + } + } + }.bind(this), f.LD)), this.Yh()); + x4t = 10; + break; + } + } + }; + c.prototype.iP = function(a) { + var K4t, b, q41; + K4t = 2; + while (K4t !== 4) { + q41 = "wip"; + q41 += "eHead"; + q41 += "erCache"; + q41 += ":"; + switch (K4t) { + case 2: + b = this.K; + b.U7 || (b.Oe && this.th(q41 + a), this.$a.fna(), this.kf && (this.kf = void 0)); + K4t = 4; + break; + } + } + }; + c.prototype.Eia = function(a) { + var F4t, c, d, f, g, h, f41, w41; + F4t = 2; + while (F4t !== 13) { + f41 = "c"; + f41 += "at"; + f41 += "c"; + f41 += "h"; + w41 = "chec"; + w41 += "kForHcd"; + w41 += "S"; + w41 += "tar"; + w41 += "t"; + switch (F4t) { + case 4: + F4t = !this.rWa || !this.$a.Rc ? 3 : 9; + break; + case 2: + c = this; + d = this.K; + F4t = 4; + break; + case 3: + return this.$a.tZa(), ga.resolve(); + break; + case 9: + f = function(a, c) { + var y4t, d, f, g, h, m, p, a41; + y4t = 2; + while (y4t !== 13) { + a41 = "adopt"; + a41 += "Pipeline no he"; + a41 += "ader"; + a41 += " for stre"; + a41 += "amId:"; + switch (y4t) { + case 6: + y4t = this.oia(a, this.xc, p.vk, m, !0) ? 14 : 13; + break; + case 7: + a.Rb(a41, f); + y4t = 13; + break; + case 2: + g = a.P; + h = this.Xa.ob[g]; + m = !this.Vh && !this.lZ && g === b.G.VIDEO; + p = c[g]; + y4t = 9; + break; + case 9: + y4t = p && (f = p.Ya, d = p.vk.stream, k.V(c.Lm) || this.xd.aAa(c.Lm, c.Dl, c.wk), h.Yn = c.Yn, h.zl = c.zl, h.Rbb = c.Lm, a.psb(f)) ? 8 : 13; + break; + case 8: + y4t = !p.vk ? 7 : 6; + break; + case 14: + return c = this.Ve[g][f].Y, c = c.Dj(a.Ra, void 0, !0), m = d.$g(c), d = m.U, a.D$() && (m = m.hR(a.Ra)) && 0 < m.Jb && (d = m.Jb), a.Ra !== d && (a.Ra = d, a.fg = c, this.u_(g, d)), this.NQa(a, p.data), h.n7a = !0, g === b.G.AUDIO && this.xd.fE(p.vk.O), f; + break; + } + } + }.bind(this); + g = function(a) { + var P4t, c, g, h, y41, e41, M41, v41; + P4t = 2; + while (P4t !== 10) { + y41 = "a"; + y41 += "doptHcd"; + y41 += "En"; + y41 += "d"; + e41 = "ado"; + e41 += "ptH"; + e41 += "cdSta"; + e41 += "r"; + e41 += "t"; + M41 = "headerCacheDataNo"; + M41 += "tFoun"; + M41 += "d"; + v41 = "checkF"; + v41 += "o"; + v41 += "rH"; + v41 += "c"; + v41 += "dEnd"; + switch (P4t) { + case 2: + this.Sq(v41); + P4t = 5; + break; + case 4: + d.NG || this.iP(M41); + P4t = 10; + break; + case 5: + P4t = k.V(a) ? 4 : 3; + break; + case 3: + c = this.la.De; + g = c[b.G.AUDIO]; + c = c[b.G.VIDEO]; + this.Sq(e41); + h = !0; + this.Rf && (h = f(c, a)); + !this.Qi || d.Uab && !h || f(g, a); + P4t = 12; + break; + case 12: + this.Mja = a; + this.Sq(y41); + P4t = 10; + break; + } + } + }.bind(this); + this.Sq(w41); + F4t = 6; + break; + case 6: + this.wa.forEach(function(b) { + var H4t; + H4t = 2; + while (H4t !== 1) { + switch (H4t) { + case 2: + N.RG(b.R, a) && (h = b); + H4t = 1; + break; + } + } + }); + return this.$a.Rc.qeb(a, h ? h.ge : {}).then(g).then(function() { + var a4t, R41; + a4t = 2; + while (a4t !== 1) { + R41 = "a"; + R41 += "d"; + R41 += "optedCompletedRequests"; + switch (a4t) { + case 2: + d.NG || c.kf && 0 !== c.kf.length || c.iP(R41); + a4t = 1; + break; + } + } + })[f41](function(a) { + var R4t, D41; + R4t = 2; + while (R4t !== 1) { + D41 = "headerC"; + D41 += "ache:lookupDataPromise c"; + D41 += "aught "; + D41 += "error:"; + switch (R4t) { + case 4: + this.fa("", a); + R4t = 7; + break; + R4t = 1; + break; + case 2: + this.fa(D41, a); + R4t = 1; + break; + } + } + }.bind(this)); + break; + } + } + }; + c.prototype.vRa = function(a, b, c, d, f) { + var u4t; + u4t = 2; + while (u4t !== 1) { + switch (u4t) { + case 2: + return this.qWa && this.$a.Rc && (c = this.$a.Rc.P6(c, d)) && this.oia(a, b, c, !1, f) ? !0 : !1; + break; + } + } + }; + c.prototype.oia = function(a, b, c, d, f) { + var J4t, g, k, U41; + J4t = 2; + while (J4t !== 11) { + U41 = "hea"; + U41 += "derca"; + U41 += "che"; + switch (J4t) { + case 8: + c.uXa(g[k]); + this.mia(a, c); + J4t = 6; + break; + case 9: + this.Ve[a.P][k] = c; + J4t = 8; + break; + case 2: + g = this.wa[b].ge[a.P].Sl; + J4t = 5; + break; + case 4: + J4t = d != !!c.Ne ? 3 : 9; + break; + case 5: + k = c.Ya; + J4t = 4; + break; + case 3: + return !1; + break; + case 6: + c.Ne && (c.Ne.source = U41, this.IZ(a, b, c.Ne)); + f && this.OTa(c.R, c.Ya); + a.rv && a.Wp(a.OT); + return !0; + break; + } + } + }; + c.prototype.NQa = function(a, c) { + var v4t, f, m, p, d, g, h, l, N41, Z41; + v4t = 2; + while (v4t !== 19) { + N41 = "adoptData"; + N41 += ", not adopting failed mediaReque"; + N41 += "st"; + N41 += ":"; + Z41 = "adoptD"; + Z41 += "ata, not adopt"; + Z41 += "ing aborted mediaReq"; + Z41 += "uest:"; + switch (v4t) { + case 20: + c = this.eO(f, a.Fc.na, a.Ra), void 0 !== c ? (a.fg = c, a.pf = d.ib[f].stream.$g(a.fg)) : a.fg = a.Fh ? a.Fh.index + 1 : a.fg + 1; + v4t = 19; + break; + case 12: + p && this.Lja(p); + this.YY = !1; + v4t = 10; + break; + case 7: + f = a.P, m = this.Xa.ob[f]; + v4t = 6; + break; + case 1: + v4t = 0 !== c.length ? 5 : 19; + break; + case 2: + v4t = 1; + break; + case 3: + g = f.qa; + h = Math.min(d.ea || Infinity, f.ea || Infinity); + this.YY = !0; + v4t = 7; + break; + case 13: + l.readyState === U.Fb.Uv ? a.fa(Z41, l.toString()) : l.readyState === U.Fb.rq ? (a.fa(N41, l.toString()), this.pt(a, l, !1)) : a.Ra >= l.Kc && a.Ra < l.Md && (a.Ra < h || !k.ja(h)) ? (this.OQa(a, l), a.Ra = l.Md, k.ja(h) && a.Ra >= h && this.ZZ(g, l.Md), f === b.G.AUDIO && this.xd.fE(l.O), l.complete ? (m.mo += l.duration, l.Rdb && (m.iK += l.duration), p = l) : (this.kf || (this.kf = []), this.kf.push(l))) : this.pt(a, l, !1); + v4t = 6; + break; + case 14: + l = c.shift(); + v4t = 13; + break; + case 5: + d = this.wa[0]; + f = a.Fc; + v4t = 3; + break; + case 6: + v4t = 0 < c.length ? 14 : 12; + break; + case 10: + v4t = p || this.kf && this.kf.length ? 20 : 19; + break; + } + } + }; + c.prototype.OQa = function(a, b) { + var Y4t, c, W41, J41, k41; + Y4t = 2; + while (Y4t !== 9) { + W41 = ","; + W41 += " "; + W41 += "pts"; + W41 += ": "; + J41 = ","; + J41 += " "; + J41 += "st"; + J41 += "ate"; + J41 += ": "; + k41 = "a"; + k41 += "doptM"; + k41 += "ediaReque"; + k41 += "st: type: "; + switch (Y4t) { + case 2: + c = a.P; + this.K.Oe && this.th(k41 + c + J41 + b.readyState + W41 + b.Kc); + this.u_(c, b.Kc); + Y4t = 3; + break; + case 3: + a.Oa.vXa(this, b); + Y4t = 9; + break; + } + } + }; + c.prototype.nG = function(a, b, c, d, f, g) { + var b4t, h, m, p, l, r, T41, P41; + b4t = 2; + while (b4t !== 18) { + T41 = "NFErr_MC_Str"; + T41 += "eami"; + T41 += "ngFailure"; + P41 = "Medi"; + P41 += "aRequest op"; + P41 += "en "; + P41 += "failed ("; + P41 += "2)"; + switch (b4t) { + case 9: + p = this.Xa.ob[b]; + l = !k.V(f) && f !== a.na; + g = !d.Mr || m || l || g ? this.gG : p.Aj; + c.url && (p.s6 = c.url); + b4t = 14; + break; + case 14: + p = this.Ve[b][h]; + b4t = 13; + break; + case 4: + b = a.P; + m = !!d.Qx; + b4t = 9; + break; + case 2: + h = c.id; + b4t = 5; + break; + case 13: + b4t = !p && (d.vk = !0, p = a.Oa.kQ(this, this.la.Bf, d, g, c), this.Ve[b][h] = p, !p.nv()) ? 12 : 10; + break; + case 5: + b4t = !this.vRa(a, c.na, b, h, d.Mr) ? 4 : 19; + break; + case 12: + this.bk(P41, T41); + return; + break; + case 10: + k.V(f) || (r = this.wa[f]); + b4t = 20; + break; + case 20: + d.Mr && r && (r.ib[b] = p); + b4t = 19; + break; + case 19: + this.Yh(); + b4t = 18; + break; + } + } + }; + c.prototype.MO = function(a, c, d, f, g) { + var k4t, h, m; + k4t = 2; + while (k4t !== 8) { + switch (k4t) { + case 3: + h.e5 = !0; + this.MN(h, c); + k4t = 8; + break; + case 2: + h = this.wa[c]; + m = h.bo; + this.la.De.forEach(function(p) { + var f4t, l, r, n, B41, s41; + f4t = 2; + while (f4t !== 6) { + B41 = "requestHeadersFromManifest, unab"; + B41 += "l"; + B41 += "e to "; + B41 += "update urls"; + s41 = "re"; + s41 += "qu"; + s41 += "estHeadersFromManife"; + s41 += "st, shu"; + s41 += "tdown detected"; + switch (f4t) { + case 2: + l = p.P; + f4t = 5; + break; + case 5: + f4t = this.Li[l] && (k.V(g) || l === g) ? 4 : 6; + break; + case 4: + r = d[l]; + f4t = 3; + break; + case 9: + this.fa(s41); + f4t = 6; + break; + case 3: + f4t = this.ke() ? 9 : 8; + break; + case 8: + n = this.Xa.jD(p); + (n = m.EV(n, r.bc)) ? (r.bc = n, n = this.Xa.ob[l], n = this.tja(r.bc, n.ao ? n.ao.O : 0), r = r.bc[n], (n = this.Ve[l][r.id]) && n.Y ? this.nWa(p, h, n) : (l = { + offset: 0, + Z: this.bO(l, r.Jj, r.ci), + nE: !1, + Qx: l === b.G.VIDEO, + Mr: !0 + }, this.nG(p, a, r, l, c, f))) : p.fa(B41); + f4t = 6; + break; + } + } + }.bind(this)); + k4t = 3; + break; } - } else { - m = new ca(b); - r = new h(); - u = 0; - m.position = l; - r.identifier = m.It(4); - O.assert("sidx" === r.identifier); - r.xO = m.re(36); - O.oPa(r.xO, p, k); - r.duration = m.qd(4); - r.Tn = m.xb(); - r.entries = []; - for (r.images = []; u < r.Tn;) l = {}, l.Jh = m.qd(4), l.duration = m.qd(4), l.GP = m.xb(), l.HP = m.xb(), l.cR = m.xb(), l.dR = m.xb(), l.ao = m.ff(), l.dA = m.qd(4), u++, r.entries.push(l); - m = r; - } - g.push(m); - a.p5 = m; - m.Y3 = f; - m.oH = f + a.duration; - f = m.oH; - r = m.entries; - r.length && (m.startTime = r[0].Jh, m.endTime = r[r.length - 1].Jh + r[r.length - 1].duration); - d += a.size; - }); - } catch (ha) { - c.emit(B.ERROR, O.EF(ha, A.qEa)); - return; - } - c.di = g; - c.emit(B.rEa, this.di); - a = k.call(c, c.AL, 2); - a.length ? w.call(c, a, c.AL, function(a) { - a && c.eb.error("initial sidx download failed"); - c.emit(B.Saa); - }) : c.emit(B.Saa); - } - } - - function p(a) { - var b, c, d, g, f; - b = k.call(this, a, 2); - c = (c = this.sg) ? c.endTime : void 0; - if (a > c) return []; - d = this.qD.$k; - g = this.qD.index; - c = []; - g = O.$a(g) && this.di[g + 1]; - if (!(g && g.entries.length || d && !(a > d.endTime))) return []; - b.length && w.call(this, b, a); - d && d.images.length && (c = n(d, a, [], this.sg)); - g && g.images.length && (b = n(g, a, c, this.sg), c.push.apply(c, b)); - b = q(c); - if (this.di && 0 != this.di.length) { - c = this.di[Math.floor(a / 6E4)]; - if (!(c.Y3 <= a && a <= c.oH)) a: { - c = this.di.length; - if (!this.GUa) { - this.GUa = !0; - b: { - try { - f = String.fromCharCode.apply(String, this.sg.language); - break b; - } catch (ha) {} - f = ""; - } - this.eb.error("bruteforce search for ", { - movieId: this.sg.M, - packageId: this.sg.oo, - lang: f - }); - } - for (f = 0; f < c; f++) - if (d = this.di[f], d.Y3 <= a && a <= d.oH) { - c = d; - break a; - } c = void 0; - } - f = c; - } else f = void 0; - if (c = f && 0 < f.entries.length && 0 === f.images.length) a: { - c = f.entries.length; - for (g = 0; g < c; g++) - if (d = f.entries[g], d.Jh <= a && d.Jh + d.duration >= a) { - c = !0; - break a; - } c = !1; - } - return c ? null : b; - } - - function k(a, b) { - var c, f; - c = []; - if (a = u.call(this, a)) this.qD = a; - else return this.qD = {}, c; - for (var d = 0, g = this.di ? this.di.length : 0; d < b && a.index + d < g;) { - f = this.di[a.index + d]; - f && !f.images.length && c.push(f); - d++; - } - return c; - } - - function u(a) { - var b, c, d, g, f, h, m; - c = this.qD; - d = c.$k; - g = c.index; - f = this.di; - this.Of(O.$a(a)); - d && (0 === g && a <= d.startTime ? (m = !0, b = c) : a >= d.startTime && a <= d.endTime ? (m = !0, b = c) : (h = f[g - 1], f = f[g + 1], h && a > h.endTime && a <= d.startTime ? (m = !0, b = c) : f && a >= d.endTime && a <= f.endTime && (m = !0, b = { - $k: f, - index: g + 1 - }))); - if (!m) - for (c = this.sg.entries, d = c.length, g = 0; g < d; g++) - if (h = c[g].p5, a <= h.startTime || a > h.startTime && a <= h.endTime) { - b = { - $k: c[g].p5, - index: g + } }; - break; - } return b; - } - - function n(a, b, c, d) { - var g, f, h, m, l, p; - g = a.entries; - f = g.length; - h = []; - l = 0; - if (!g.length) return h; - for (; l < f;) { - m = g[l]; - if (m.Jh <= b) m.Jh + m.duration >= b && h.push(O.fZ(m, a.images[l].data, d)); - else { - p = h.length && h[h.length - 1] || c.length && c[c.length - 1]; - if (p && p.Jh > b && p.Jh !== m.Jh) break; - p.ao !== m.ao && h.push(O.fZ(m, a.images[l].data, d)); - } - l++; - } - return h; - } - - function q(a) { - return a.map(function(b, c) { - b.duration += O.XTa(a.slice(c + 1), b); - return b; - }).reduce(function(a, b) { - O.C8a(a, b.id) || a.push(b); - return a; - }, []); - } - - function w(a, b, c) { - var d, g, f, h, m, l; - d = this; - g = a[0]; - f = a[a.length - 1]; - 0 < g.entries.length && (h = g.entries[0].ao, m = g.entries[g.entries.length - 1]); - 0 < f.entries.length && (O.$a(h) || (h = f.entries[0].ao), m = f.entries[f.entries.length - 1]); - if (h) { - g = m.ao + m.dA - h; - l = O.hXa(h, g); - d.jW[l] || (d.jW[l] = !0, t.call(d, a, b), d.TD({ - url: d.Mf, - offset: h, - size: g - }, function(b, g) { - var f, m, p, k; - setTimeout(function() { - delete d.jW[l]; - }, 1E3); - if (b) c && c(b); - else { - f = new ca(g); - m = 0; - k = []; - a.forEach(function(a) { - a.entries.forEach(function(b, c) { - var g, l; - f.position = b.ao - h; - g = { - data: f.re(b.dA) - }; - l = b.zia; - l && (g.ht = l.ht, g.Aia = l.mode, p = !0, k.push(g)); - a.images[c] = g; - !b.zia && O.cta(a.images[c].data, d.Of.bind(d)); - m += a.images[c].data.length; - }); - }); - d.Cr += m; - p ? d.Ru.then(function(a) { - return N.call(d, k, a); - }).then(function() { - c && c(null); - })["catch"](function(a) { - d.eb.error("decrypterror", a); - c && c({ - K: !1 - }); - }) : c && c(null); - } - })); - } else c && c(null); - } - - function t(a, b) { - var f, h, m, l, p, k; - - function c() { - return { - pts: b, - hasEnoughSpace: f.Cr + h <= f.GD, - required: h, - currentSize: f.Cr, - max: f.GD, - currentIndex: u.call(f, b).index, - sidxWithImages: y.call(f), - newSidxes: a.map(function(a) { - return f.di.indexOf(a); - }) - }; - } - - function d(a, b) { - f.gL && !a && f.eb.info("not done in iteration", b); - } - - function g(a) { - var b, c, d; - b = f.di[a]; - c = b.images && b.images.length; - if (0 < c) { - d = x([b]); - b.images = []; - f.Cr -= d; - f.gL && f.eb.info("cleaning up space from sidx", { - index: a, - start: b.startTime, - size: d, - images: c - }); - if (f.Cr + h <= f.GD) return !0; - } - } - f = this; - h = x(a); - f.eb.info("make space start:", c()); - if (!(f.Cr + h <= f.GD)) { - m = u.call(f, b).index; - l = !1; - p = 0; - k = f.di.length - 1; - if (0 > m) { - f.eb.error("inconsistent sidx index"); - return; - } - for (; !l && p < m - 2;) l = g(p), p++; - for (d(l, 1); !l && k > m + 2;) l = g(k), k--; - for (d(l, 2); !l && p < m;) l = g(p), p++; - for (d(l, 3); !l && k > m;) l = g(k), k--; - d(l, 4); - l || f.eb.error("could not make enough space", { - maxBuffer: this.GD - }); - } - f.eb.info("make space end", c()); - } - - function x(a) { - return a.reduce(function(a, b) { - return a + b.entries.reduce(function(a, b) { - return b.dA + a; - }, 0); - }, 0); - } - - function y() { - var a; - a = []; - this.sg && this.sg.entries && this.sg.entries.reduce(function(b, c, d) { - var g; - c = c.p5; - g = 0; - c && c.images.length && (a.push(d), g = c.images.reduce(function(a, b) { - return a + b.data.length; - }, 0)); - return b + g; - }, 0); - return a.join(", "); - } - - function C(a, b) { - return a && a.Y3 <= b && a.oH >= b; - } - - function F(a, b) { - var c, d, g, f, h, m; - c = this; - d = c.sg; - g = c.di; - f = g && g.length; - if (a > b || 0 > a) throw Error("invalid range startPts: " + a + ", endPts: " + b); - if (d && g) { - if (0 === f) return []; - d = g[0].duration; - if (O.$a(d) && 0 < d) d = Math.floor(a / d), h = d < f && C(g[d], a) ? g[d] : void 0; - else - for (c.gL && c.eb.warn("duration not defined, so use brute force to get starting sidx"), d = 0; d < f; d++) { - m = g[d]; - if (C(m, a)) { - h = m; - break; - } - } - if (O.$a(h)) { - h = []; - for (var l = function(c) { - var d; - d = c.Jh <= a && a <= c.Jh + c.duration; - return a <= c.Jh && c.Jh <= b || d; - }; d < f;) { - m = g[d]; - h = h.concat(m.entries.filter(l)); - if (b < m.oH) break; - d++; - } - h = h.map(function(a) { - return O.fZ(a, null, c.sg); - }); - return q(h); - } - } - } - - function N(a, b) { - var d, g; - - function c(a, b) { - var c, d; - c = this; - d = new Uint8Array(16); - d.set(a.ht); - return c.Tca.decrypt({ - name: "AES-CTR", - counter: d, - length: 128 - }, b, a.data).then(function(b) { - a.data.set(new Uint8Array(b)); - O.cta(a.data, c.Of.bind(c)); - }); - } - d = this; - try { - g = []; - a.forEach(function(a) { - a.ht && (a = c.call(d, a, b), g.push(a)); - }); - return (void 0).all(g); - } catch (U) { - return d.eb.error("decrypterror", U), (void 0).reject(U); - } - } - T = a(140).EventEmitter; - ca = a(94); - Z = a(309); - O = a(551); - B = b.events = { - Kza: "midxready", - rEa: "sidxready", - Saa: "ready", - ERROR: "error" - }; - A = b.inb = { - Iza: "midxdownloaderror", - Jza: "midxparseerror", - HAa: "nosidxfoundinmidx", - pEa: "sidxdownloaderror", - qEa: "sidxparseerror" - }; - b.prototype = Object.create(T.prototype); - b.prototype.constructor = b; - b.prototype.start = function() { - var a; - if (this.sg) this.eb.warn("midx was prefectched and provided"), g.call(this); - else { - a = { - url: this.Mf, - offset: this.Zb, - size: this.AKa, - responseType: "binary" - }; - this.eb.warn("downloading midx..."); - this.TD(a, l.bind(this)); - } - }; - b.prototype.close = function() {}; - b.prototype.Of = function(a) { - this.gL && O.assert(a, this.eb); - }; - b.prototype.Vs = function(a, b) { - return F.call(this, a, b); - }; - b.prototype.e0 = function(a, b) { - return (a = this.Vs(a, b)) ? a.length : a; - }; - f.P = b; - }, function(f, c, a) { - var h; - - function b(a, b) { - return b.reduce(d.bind(this, a), []); - } - - function d(a, b, c) { - var d, g; - d = c.displayTime - a; - a = c.displayTime + c.duration - a; - g = 0 < b.length ? b[0].timeout : Infinity; - return 0 < d && d < g ? [{ - timeout: d, - type: "showsubtitle", - Od: c - }] : d === g ? b.concat([{ - timeout: d, - type: "showsubtitle", - Od: c - }]) : 0 < a && a < g ? [{ - timeout: a, - type: "removesubtitle", - Od: c - }] : a === g ? b.concat([{ - timeout: a, - type: "removesubtitle", - Od: c - }]) : b; - } - h = a(140).EventEmitter; - c = a(308)({}); - a = function g(a, b, c) { - if (!(this instanceof g)) return new g(a, b, c); - h.call(this); - this.ep = a; - this.FHa = b; - this.pp = {}; - this.Ny = {}; - this.eb = c || console; - this.AK = !1; - }; - a.prototype = Object.create(h.prototype); - a.prototype.stop = function() { - var a; - a = this; - clearTimeout(a.Mi); - Object.keys(a.pp).forEach(function(b) { - a.emit("removesubtitle", a.pp[b]); - }); - a.pp = {}; - }; - a.prototype.pause = function() { - clearTimeout(this.Mi); - }; - a.prototype.cn = function(a, c) { - var d, g; - d = this; - g = d.ep(); - clearTimeout(this.Mi); - a = d.FHa(g); - null !== a && d.AK && (d.AK = !1, d.emit("bufferingComplete")); - c = "number" === typeof c ? c : 0; - Object.keys(d.pp).forEach(function(a) { - a = d.pp[a]; - a.displayTime <= g && g < a.displayTime + a.duration || (delete d.pp[a.id], d.emit("removesubtitle", a)); - }); - Object.keys(d.Ny).forEach(function(a) { - a = d.Ny[a]; - g >= a.displayTime + a.duration && delete d.Ny[a.id]; - }); - null !== a && 0 < a.length ? (c = a.length, d.eb.info("found " + c + " entries for pts " + g), a.forEach(function(a) { - a.displayTime <= g && g < a.displayTime + a.duration && !d.pp[a.id] && (d.emit("showsubtitle", a), d.pp[a.id] = a, delete d.Ny[a.id]); - }), c = a[a.length - 1], d.pp[c.id] || d.Ny[c.id] || (d.emit("stagesubtitle", c), d.Ny[c.id] = c), c = b(g, a), 0 < c.length ? d.FL(c[0].timeout) : d.FL(2E4)) : null === a ? (a = 250 * Math.pow(2, c), 2E3 < a && (a = 2E3), d.eb.warn("checking buffer again in " + a + "ms"), d.AK || (d.AK = !0, d.emit("underflow")), d.FL(a, c + 1)) : d.FL(2E4); - }; - a.prototype.FL = function(a, b) { - var c; - c = this; - c.eb.trace("Scheduling pts check."); - c.Mi = setTimeout(function() { - c.cn(c.ep(), b); - }, a); - }; - f.P = c(["function", "function", "object"], a); - }, function(f, c, a) { - var g, m, p; - - function b(a) { - var b; - b = 1; - "dfxp-ls-sdh" === this.Yu && (b = a.jlb.length); - this.eb.info("show subtitle called at " + this.ep() + " for displayTime " + a.displayTime); - this.emit("showsubtitle", a); - this.Jr[this.Jr.length - 1].WQ += b; - } - - function d(a) { - this.eb.info("remove subtitle called at " + this.ep() + " for remove time " + (a.displayTime + a.duration)); - this.emit("removesubtitle", a); - } - - function h() { - this.eb.info("underflow fired by the subtitle timer"); - this.emit("underflow"); - } - - function l() { - this.eb.info("bufferingComplete fired by the subtitle timer"); - this.emit("bufferingComplete"); - } - g = a(140).EventEmitter; - m = a(553); - c = a(308)(); - p = a(552); - a = function u(a, c) { - var f, k; - f = this; - k = a.Ke || !1; - if (!(f instanceof u)) return new u(a, c); - g.call(f); - f.eb = a.ca || console; - f.TD = a.request; - f.ep = a.hka; - f.Mi = null; - f.lp = !0; - f.Jr = []; - f.Yu = c.profile; - f.Mf = c.url; - f.AL = c.Qb; - f.LJa = c.T5a; - f.aHa = c.Lv; - a = { - url: f.Mf, - request: f.TD, - Qb: f.AL, - xml: c.xml, - T5a: f.LJa, - Lv: f.aHa, - ca: f.eb, - Ke: k, - bufferSize: c.bufferSize, - crypto: c.crypto, - key: c.key, - B2: c.B2 - }; - if ("nflx-cmisc" === f.Yu) a.offset = c.rna, a.size = c.sna, f.Hc = new p(a); - else if ("nflx-cmisc-enc" === f.Yu) a.version = 2, a.offset = c.rna, a.size = c.sna, f.Hc = new p(a); - else throw Error("SubtitleManager: " + f.Yu + " is an unsupported profile"); - f.Hc.on("ready", function() { - var a, g; - a = !!c.mNa; - f.eb.info("ready event fired by subtitle stream"); - f.emit("ready"); - g = f.Hc.XWa.bind(f.Hc); - f.Mi = new m(f.ep, g, f.eb); - f.Mi.on("showsubtitle", b.bind(f)); - f.Mi.on("removesubtitle", d.bind(f)); - f.Mi.on("underflow", h.bind(f)); - f.Mi.on("bufferingComplete", l.bind(f)); - a && (f.eb.info("autostarting subtitles"), setTimeout(function() { - f.cn(f.ep()); - }, 10)); - }); - f.Hc.on("error", f.emit.bind(f, "error")); - }; - a.prototype = Object.create(g.prototype); - a.prototype.start = function() { - this.Hc.start(); - }; - a.prototype.cn = function(a) { - this.lp && (this.lp = !1, this.eb.info("creating a new subtitle interval at " + a), this.Jr.push({ - X: a, - WQ: 0 - })); - null !== this.Mi && this.Mi.cn(a); - }; - a.prototype.stop = function() { - var a; - this.ep(); - this.eb.info("stop called"); - this.lp || this.pause(); - this.Hc.removeAllListeners(["ready"]); - null !== this.Mi && this.Mi.stop(); - a = this.Jr.reduce(function(a, b) { - a.rra += b.WQ; - a.Kl += b.Lia; - a.x_a.push(b); - return a; - }, { - rra: 0, - Kl: 0, - x_a: [] - }); - "object" === typeof this.Hc && this.Hc.close(); - this.eb.info("metrics: " + JSON.stringify(a)); - return a; - }; - a.prototype.pause = function() { - var a, b; - a = this.ep(); - if (this.lp) this.eb.warn("pause called on subtitle manager, but it was already paused!"); - else { - this.eb.info("pause called at " + a); - this.lp = !0; - this.eb.info("ending subtitle interval at " + a); - b = this.Jr[this.Jr.length - 1]; - b.fa = a; - b.fa < b.X && (this.eb.warn("correcting for interval where endPts is smaller than startPts"), b.X = 0 < b.fa ? b.fa - 1 : 0); - b.Lia = this.Hc.e0(b.X, b.fa); - this.eb.info("showed " + b.WQ + " during this interval"); - this.eb.info("expected " + b.Lia + " for this interval"); - } - null !== this.Mi && this.Mi.pause(); - }; - a.prototype.Vs = function(a, b) { - return this.Hc.Vs(a, b); - }; - a.prototype.e0 = function(a, b) { - return this.Hc.e0(a, b); - }; - a = c([{ - request: "function", - hka: "function", - ca: "object" - }, "object"], a); - f.P = a; - }, function(f, c, a) { - var d, h, l, g, m; - - function b(a, b) { - a = g.we.call(this, a) || this; - a.config = b; - a.Hj = "AppInfoConfigImpl"; - return a; - } - Object.defineProperty(c, "__esModule", { - value: !0 - }); - f = a(1); - d = a(0); - h = a(47); - l = a(54); - g = a(53); - a = a(39); - oa(b, g.we); - pa.Object.defineProperties(b.prototype, { - endpoint: { - configurable: !0, - enumerable: !0, - get: function() { - return this.host + "/api"; - } - }, - Bia: { - configurable: !0, - enumerable: !0, - get: function() { - return this.host + "/nq/msl_v1"; - } - }, - host: { - configurable: !0, - enumerable: !0, - get: function() { - var a; - switch (this.config.nF) { - case h.er.ZEa: - a = "www.stage"; - break; - case h.er.Gba: - a = "www-qa.test"; - break; - case h.er.A9: - a = "www-int.test"; - break; - default: - a = "www"; - } - return "https://" + a + ".netflix.com"; - } - } - }); - m = b; - f.__decorate([l.config(l.string, "apiEndpoint")], m.prototype, "endpoint", null); - f.__decorate([l.config(l.string, "nqEndpoint")], m.prototype, "Bia", null); - m = f.__decorate([d.N(), f.__param(0, d.j(a.nk)), f.__param(1, d.j(h.oj))], m); - c.Lta = m; - }, function(f, c, a) { - var b, d; - Object.defineProperty(c, "__esModule", { - value: !0 - }); - b = a(555); - d = a(27); - f = a(0); - c.uX = new f.dc(function(a) { - a(d.lf).to(b.Lta).Y(); - }); - }, function(f, c) { - Object.defineProperty(c, "__esModule", { - value: !0 - }); - c.Wjb = "VideoCache"; - c.OFa = "VideoCacheFactorySymbol"; - }, function(f, c, a) { - var b, d, h; - Object.defineProperty(c, "__esModule", { - value: !0 - }); - b = a(2); - d = [b.v.mya, b.v.l9, b.v.i9, b.v.X8, b.v.j9, b.v.k9, b.v.a9, b.v.r9, b.v.b9, b.v.Z8, b.v.zT, b.v.nya, b.v.t9, b.v.c9, b.v.DJ, b.v.e9, b.v.d9, b.v.f9, b.v.jl, b.v.V8, b.v.s9, b.v.Y8, b.v.o9, b.v.p9, b.v.q9, b.v.oya, b.v.qya, b.v.uya, b.v.sya, b.v.rya, b.v.pya, b.v.tya, b.v.n9, b.v.h9, b.v.g9, b.v.m9, b.v.W8]; - (function(a) { - a.bBa = function(a) { - var g; - for (var c = {}, d = 0; d < a.length; d++) { - g = a[d]; - if (c[g.vm]) return { - vm: g.vm, - dha: b.u.zta - }; - c[g.vm] = 1; - } - }; - a.cBa = function(a) { - var g; - for (var c = 0; c < a.length; c++) { - g = a[c]; - if (-1 === d.indexOf(g.vm)) return { - vm: g.vm, - dha: b.u.Ata - }; - } - }; - }(h || (h = {}))); - c.g6a = function(a) { - return new Promise(function(b, c) { - var g; - g = h.cBa(a); - g && c(g); - (g = h.bBa(a)) && c(g); - b(a.sort(function(a, b) { - return d.indexOf(a.vm) - d.indexOf(b.vm); - })); - }); - }; - }, function(f, c, a) { - var h, l, g, m, p, k, u, n, q, w, G, x, y, C, F, N; - - function b(b, c) { - this.Or = b; - this.Rb = c; - this.wa = g.Je(this.Rb, "LicenseBroker"); - this.BD = []; - this.H = a(4).config; - this.ce = this.H.ce; - this.dn = this.H.dn; - this.H.iH ? p.Jla() ? this.WL = !0 : this.wa.error("Promise based eme requested but platform does not support it", { - browserua: w.Ug - }) : this.WL = !1; - } - - function d(a) { - var b, c; - b = {}; - G.$a(a.code) ? b.R = g.t8(a.code) : b.R = l.u.te; - try { - c = a.message.match(/\((\d*)\)/)[1]; - b.ub = g.mM(c, 4); - } catch (O) {} - b.za = x.yc(a); - return b; - } - Object.defineProperty(c, "__esModule", { - value: !0 - }); - f = a(1); - h = a(126); - l = a(2); - g = a(3); - m = a(107); - p = a(25); - k = a(6); - u = a(114); - n = a(384); - q = a(7); - w = a(5); - G = a(15); - x = a(14); - y = a(0); - C = a(314); - b.prototype.YK = function() { - this.BD.forEach(function(a) { - return a(); - }); - }; - b.prototype.IV = function() { - return this.H.nma ? h.Oo.vC : h.Oo.vr; - }; - b.prototype.dd = function(b, c, d) { - var g; - g = a(51).rj; - this.Rb.Hh(new g(b, c, d)); - }; - b.prototype.Pca = function(a) { - return new this.mp.cr(a, this.Rb.dj.$v, this.Rb.dj.release, { - Ke: !1, - dt: !1 - }); - }; - b.prototype.cL = function(b) { - var c; - c = a(16).TT; - this.Rb.fireEvent(c, b); - }; - b.prototype.UGa = function(b) { - var c, d, f, h, p, k; - c = this; - h = a(17).Ra; - this.mp.cr || this.dd(l.v.mu, l.u.Wwa); - f = g.Je(this.Rb, "Eme"); - d = this.Pca(f); - p = g.Z.get(m.ky); - k = p.HM(); - p = p.QE(this.Rb.Ud.value.Db); - return this.mp.kn(f, b, function(a) { - return c.Rb.Yc(a); - }, { - Ke: !1, - dt: !1, - Mla: this.H.Sh, - Qqa: { - ona: this.H.Pqa, - Iga: this.H.O4 - }, - Na: { - getTime: h - }, - Ta: d, - $P: this.WL, - Ba: this.Or.Ba, - UB: this.H.UB, - Dx: this.H.QZ, - onerror: function(a, b, d) { - return c.dd(a, b, d); - }, - DP: function(a) { - return c.cL(a); - }, - B3: !0, - pB: this.H.m6 && this.H.pB, - SF: this.H.SF, - Yfa: k, - t6: p, - eA: this.H.eA - }); - }; - b.prototype.BW = function(a) { - var b; - b = this; - return this.WL ? new Promise(function(c, g) { - if (b.Or.Ba) b.Or.Ba.setMediaKeys(a).then(function() { - c({ - K: !0 - }); - })["catch"](function(a) { - var b; - b = d(a); - g({ - K: !1, - code: l.v.mU, - tb: b.R, - Sc: b.ub, - za: b.za, - message: "Set media keys is a failure", - cause: a - }); - }); - else return Promise.resolve({ - K: !0 - }); - }) : Promise.resolve({ - K: !0 - }); - }; - b.prototype.Zea = function(a, b) { - var d, g; - - function c() { - d.Rb.bh.cqa()["catch"](function(a) { - d.wa.error("Unable to set the license", { - code: a.code, - subCode: a.tb, - extCode: a.Sc, - edgeCode: a.Jj, - message: a.message, - errorDetails: a.za, - errorData: a.ji, - state: a.state - }); - a.cause && a.cause.za && (a.za = a.za ? a.za + a.cause.za : a.cause.za); - d.dd(a.code, a, a.Sc); - }); - } - d = this; - this.wa.info("Setting the license"); - g = this.Rb.bh; - return (b ? this.H.i5 ? g.Ofa().then(function() { - return d.BW(g.Oh); - }) : g.Ofa() : g.create(this.ce).then(function() { - return d.H.i5 ? d.BW(g.Oh).then(function() { - return g.kd(d.IV(), a); - }) : g.kd(d.IV(), a); - })).then(function() { - return d.H.i5 ? Promise.resolve({ - K: !0 - }) : d.BW(g.Oh); - }).then(function() { - d.wa.info("license set"); - d.YK(); - d.Or.ita.then(function() { - d.H.uA && (b || d.H.nma) && (d.dqa = setTimeout(c, d.H.uA)); - }); - })["catch"](function(a) { - d.wa.error("Unable to set the license", { - code: a.code, - subCode: a.tb, - extCode: a.Sc, - edgeCode: a.Jj, - message: a.message, - errorDetails: a.za, - errorData: a.ji, - state: a.state - }); - a.cause && a.cause.za && (a.za = a.za ? a.za + a.cause.za : a.cause.za); - if (b) throw Error(a && a.message ? a.message : "failed to set license"); - d.dd(a.code, a, a.Sc); - }); - }; - b.prototype.cIa = function() { - var h, m; - - function b(a) { - var b; - b = {}; - a.forEach(function(a) { - b[n.NTa(a.B2a)] = a.time.qa(q.Ma); - }); - return b; - } - - function c() { - var a, b, c; - a = { - next: function(a) { - var b; - b = g.Dp(a.NO); - h.wa.trace("Key status", { - keyId: b, - status: a.value - }); - }, - error: k.Gb, - complete: k.Gb - }; - b = { - next: function(a) { - h.dd(a.code, a, a.Sc); - }, - error: k.Gb, - complete: k.Gb - }; - c = { - next: function(a) { - h.cL(a); - }, - error: k.Gb, - complete: k.Gb - }; - g.Z.get(u.kJ)().then(function(d) { - var l; - l = { - ce: h.ce, - M: h.Rb.M, - aa: h.Rb.aa, - Dc: h.Rb.Dc, - Is: h.Rb.Is, - profileId: h.Rb.profile.id, - Ba: h.Or.Ba - }; - l = { - type: h.IV(), - dla: g.Pi(h.Rb.ZA[0]), - context: l - }; - F = d; - d.WO().subscribe(c); - h.Rb.Xmb = F; - F.kd(l).tF(function(c) { - h.Rb.fireEvent(m); - h.ida = c; - h.Rb.bh = c; - h.Rb.XO = c.XO; - c.Zla.subscribe(a); - c.oF().subscribe(b); - return c.iM(); - }).subscribe(function() { - h.wa.info("Finished a license"); - }, function(a) { - h.dd(a.code, a, a.Sc); - }, function() { - f(); - }); - })["catch"](function(a) { - h.dd(a.code, a, a.Sc); - }); - } - - function f() { - h.wa.info("Successfully applied license"); - try { - h.Or.Ba ? h.Or.Ba.setMediaKeys(h.Rb.bh.Oh).then(function() { - h.YK(); - })["catch"](function(a) { - a = d(a); - h.dd(l.v.mU, a, a.ub); - }) : h.YK(); - } catch (ja) { - h.dd(l.v.mU, ja); - } - } - h = this; - m = a(16).VC; - this.WV || (this.WV = !0, p.IO(this.H) && this.H.Rm && t._cad_global.videoPreparer ? t._cad_global.videoPreparer.Ui(this.Rb.M, "ldl").then(function(a) { - h.Rb.bh = a; - return a.iM().subscribe(function() { - h.wa.info("Finished a license"); - }, function(a) { - h.dd(a.code, a, a.Sc); - }, function() { - a.hma && h.cL(a.hma); - h.Rb.G0(b(a.de)); - h.Rb.uga = !0; - f(); - }); - })["catch"](function(a) { - h.wa.warn("eme not in cache", a); - c(); - }) : c()); - }; - b.prototype.PLa = function(a) { - -1 === this.BD.indexOf(a) && this.BD.push(a); - }; - b.prototype.E7a = function(a) { - a = this.BD.indexOf(a); - 0 <= a && this.BD.splice(a, 1); - }; - b.prototype.moa = function(b) { - var d, f, h; - - function c() { - var a; - d.Rb.bh = d.UGa(b.initDataType); - a = []; - d.Rb.ZA.forEach(function(b) { - a.push(g.Pi(b)); - }); - d.Zea(a); - } - d = this; - f = a(16).VC; - h = a(81).vh; - this.wa.trace("Received event: " + b.type); - this.Rb.ge ? h.iM().subscribe({ - error: function(a) { - d.wa.error("videoCache: setMediKeys failed", { - errorCode: a.errorCode, - errorSubCode: a.R - }); - d.dd(a.errorCode, a.R); - }, - complete: function() { - d.wa.info("VideoCache: setMediKeys"); - d.Rb.fireEvent(f); - d.YK(); - } - }) : this.H.dn ? this.cIa() : this.WV || (this.WV = !0, this.mp.kn ? this.Rb.ZA ? p.IO(this.H) && this.H.Rm && t._cad_global.videoPreparer ? t._cad_global.videoPreparer.Ui(this.Rb.M, "ldl").then(function(a) { - d.Rb.bh = a; - return a.hta.then(function() { - var b; - b = []; - d.Rb.ZA.forEach(function(a) { - b.push(g.Pi(a)); - }); - return d.Zea(b, !0).then(function() { - var b; - if (a.CY) d.dd(l.v.Ywa); - else { - b = g.Je(d.Rb, "Eme"); - a.gcb({ - log: b, - Vj: function(a) { - return d.Rb.Yc(a); + c.prototype.ASa = function(a) { + var C4t; + C4t = 2; + while (C4t !== 1) { + switch (C4t) { + case 2: + delete this.Ve[a.P][a.Ya]; + C4t = 1; + break; + } + } + }; + c.prototype.eO = function(a, b, c) { + var e4t, d; + e4t = 2; + while (e4t !== 6) { + switch (e4t) { + case 3: + e4t = (c = d.Y.Dj(c), -1 !== c) ? 9 : 6; + break; + case 9: + return c; + break; + case 4: + e4t = d && d.stream.Mc ? 3 : 8; + break; + case 2: + b = this.wa[b]; + d = b.ib[a]; + e4t = 4; + break; + case 8: + e4t = (a = b.yx[a]) ? 7 : 6; + break; + case 7: + H4DD.q71(4); + return Math.round(H4DD.c71(a, c)); + break; + } + } + }; + c.prototype.mia = function(a, c) { + var N4t, d, f, g, k, h, m, p, l, h41, m41, C41, r41, E41, L41, Q41; + N4t = 2; + while (N4t !== 23) { + h41 = "c"; + h41 += "o"; + h41 += "u"; + h41 += "nt:"; + m41 = "addFrag"; + m41 += "ments for sta"; + m41 += "le man"; + m41 += "ifestIn"; + m41 += "dex:"; + C41 = ","; + C41 += " "; + r41 = ", str"; + r41 += "e"; + r41 += "a"; + r41 += "m "; + E41 = "), expecte"; + E41 += "d"; + E41 += " track "; + L41 = ", stre"; + L41 += "amI"; + L41 += "d "; + Q41 = "first header received "; + Q41 += "for n"; + Q41 += "on-current track (index "; + switch (N4t) { + case 9: + N4t = f >= this.wa.length ? 8 : 7; + break; + case 27: + p.ib[d] && c !== p.ib[d] ? c.Mr && (h = p.ib[d], a.fa(Q41 + c.stream.uf + L41 + c.stream.Ya + E41 + (h && h.stream.uf) + r41 + (h && h.stream.Ya) + C41 + h)) : (p.ib[d] = c, 0 === f && (a = this.la.Bf, this.$F(f, this.Rf ? a.fi(b.G.VIDEO).Ra : a.fi(b.G.AUDIO).Ra, a)), p.sK = !1, this.MN(p, f), this.la.H9(this.la.Bf), this.pB(this.xc + 1)); + this.AZ(); + c.Js || this.YTa(f, d, g, p.R, k); + this.Yh(); + N4t = 23; + break; + case 8: + this.fa(m41, f, h41, this.wa.length); + N4t = 23; + break; + case 7: + h = c.Js ? 60 : k.length; + H4DD.a71(2); + m = k.get(H4DD.c71(1, h)); + p = this.wa[f]; + N4t = 13; + break; + case 2: + d = a.P; + f = c.na; + g = c.Ya; + k = c.Y; + N4t = 9; + break; + case 17: + a.P === b.G.VIDEO && 0 < this.K.oD && (l = Math.min(l, this.K.oD)); + m = h.yS(this.K.JJ, l, m); + this.K.aL ? h.Al = m : h.WU = !m; + N4t = 27; + break; + case 13: + c.Bk = { + ji: m.U + m.duration, + ddb: m.U, + lastIndex: h - 1 + }; + p.yx[d] = k.ep; + p.kD[d] = k.SS; + c.XJ && (c.XJ.forEach(function(a) { + var T4t; + T4t = 2; + while (T4t !== 5) { + switch (T4t) { + case 2: + a = this.wa[a].ge[d].Sl; + a[g] && a[g] !== c.stream && !a[g].Mc && a[g].dQ(c.stream); + T4t = 5; + break; + } + } + }.bind(this)), c.XJ = void 0); + h = p.ge[d].Sl[g]; + m = this.xn.choiceMap && this.K.Seb; + l = this.Ej()[a.P]; + N4t = 17; + break; } - }, { - Ta: d.Pca(b), - onerror: function(a, b, c) { - return d.dd(a, b, c); + } + }; + I2t = 149; + break; + case 73: + c.prototype.BVa = function() { + var C5t, a; + C5t = 2; + while (C5t !== 7) { + switch (C5t) { + case 2: + a = this.K; + this.Tt && clearTimeout(this.Tt); + this.Tt = setTimeout(this.IG.bind(this), a.DV); + C5t = 3; + break; + case 3: + this.HN || (this.HN = setInterval(this.qka.bind(this), a.FB)); + this.XO || (this.XO = setInterval(this.hUa.bind(this), a.Z$)); + this.vl && !this.FN && (this.FN = setInterval(this.pka.bind(this), a.u0)); + C5t = 7; + break; } - }); - (b = a.Koa) && d.cL(b); - d.Rb.G0(a.de || {}); - d.Rb.uga = !0; - } - }); - }); - })["catch"](function(a) { - d.wa.warn("eme not in cache", a); - c(); - }) : c() : (this.wa.error("Missing the PSSH on the video track, closing the player"), this.dd(l.v.qCa)) : this.dd(l.v.mu, l.u.Xwa)); - }; - b.prototype.f5a = function() { - var a; - a = this; - return F && this.ida ? new Promise(function(b) { - F.J$a(a.ida).tF(function(a) { - return a.yMa(); - }).tF(function(b) { - a.wa.trace("Fulfilled the last secure stop"); - a.H.Sh && a.Rb.KA.KQ({ - success: !0, - persisted: !1 - }); - return b.close(); - }).subscribe({ - error: function(c) { - a.wa.error("Unable to get/add secure stop data", c); - a.H.Sh && a.Rb.KA.KQ({ - success: c.K, - ErrorCode: c.code, - ErrorSubCode: c.tb, - ErrorExternalCode: c.Sc, - ErrorEdgeCode: c.Jj, - ErrorDetails: c.Nv - }); - b(); - }, - complete: function() { - b(); - } - }); - }) : Promise.resolve(); - }; - pa.Object.defineProperties(b.prototype, { - mp: { - configurable: !0, - enumerable: !0, - get: function() { - return a(36).Ne; - } - }, - KG: { - configurable: !0, - enumerable: !0, - get: function() { - return this.WL ? "encrypted" : this.Or.RS + "needkey"; - } - } - }); - N = b; - f.__decorate([C.t1], N.prototype, "mp", null); - f.__decorate([C.t1], N.prototype, "KG", null); - N = f.__decorate([y.N()], N); - c.gza = N; - }, function(f, c, a) { - var b, d; - Object.defineProperty(c, "__esModule", { - value: !0 - }); - f = a(0); - b = a(559); - d = a(310); - c.r0a = new f.dc(function(a) { - a(d.N9).lsa(b.gza); - }); - }, function(f, c, a) { - var d, h, l, g, m; - - function b(a, b) { - a = h.we.call(this, a) || this; - a.Lv = b; - a.Hj = "TransportConfigImpl"; - return a; - } - Object.defineProperty(c, "__esModule", { - value: !0 - }); - f = a(1); - d = a(0); - h = a(53); - l = a(39); - g = a(54); - a = a(161); - oa(b, h.we); - pa.Object.defineProperties(b.prototype, { - $sa: { - configurable: !0, - enumerable: !0, - get: function() { - return !0; - } - }, - Ina: { - configurable: !0, - enumerable: !0, - get: function() { - return this.Lv.kQ; + } + }; + c.prototype.DVa = function() { + var e5t, a, c; + e5t = 2; + while (e5t !== 8) { + switch (e5t) { + case 2: + a = this.K; + e5t = 5; + break; + case 5: + e5t = a.AU ? 4 : 8; + break; + case 4: + this.WF && clearInterval(this.WF); + c = -1; + this.WF = setInterval(function() { + var N5t, a, j41; + N5t = 2; + while (N5t !== 4) { + j41 = "v"; + j41 += "b"; + switch (N5t) { + case 2: + a = this.Xa.ob[b.G.VIDEO]; + (a = a.Yu && a.Yu.O) && c !== a && (O.storage.set(j41, a), c = a); + N5t = 4; + break; + } + } + }.bind(this), a.AU); + e5t = 8; + break; + } + } + }; + c.prototype.Jia = function() { + var T5t; + T5t = 2; + while (T5t !== 6) { + switch (T5t) { + case 4: + this.FN && (clearInterval(this.FN), this.FN = void 0); + this.FA && (clearTimeout(this.FA), this.FA = void 0); + T5t = 9; + break; + case 2: + this.Tt && (clearTimeout(this.Tt), this.Tt = void 0); + this.HN && (clearInterval(this.HN), this.HN = void 0); + this.XO && (clearInterval(this.XO), this.XO = void 0); + T5t = 4; + break; + case 9: + this.wZ && (clearTimeout(this.wZ), this.wZ = void 0); + this.WF && (clearInterval(this.WF), this.WF = void 0); + this.Kw && (clearTimeout(this.Kw), this.Kw = void 0); + T5t = 6; + break; + } + } + }; + c.prototype.play = function() { + var D5t, z41, I41; + D5t = 2; + while (D5t !== 5) { + z41 = "p"; + z41 += "l"; + z41 += "a"; + z41 += "y"; + I41 = "pl"; + I41 += "ay called after pipelines already shu"; + I41 += "tdown"; + switch (D5t) { + case 2: + this.uka++; + this.ke() ? this.fa(I41) : (this.yb.set(b.Ca.xf), this.BVa(), this.Xa.ob.forEach(function(a) { + var d5t, u41; + d5t = 2; + while (d5t !== 1) { + u41 = "play"; + u41 += ": not resuming bufferManag"; + u41 += "e"; + u41 += "r, audio track switc"; + u41 += "h in progress"; + switch (d5t) { + case 2: + this.Li[a.P] && (a.NE ? a.fa(u41) : this.Ke[a.P].resume()); + d5t = 1; + break; + } + } + }.bind(this)), this.IG(), this.emit(z41)); + D5t = 5; + break; + } + } + }; + c.prototype.stop = function() { + var O5t, a, i41; + O5t = 2; + while (O5t !== 6) { + i41 = "s"; + i41 += "t"; + i41 += "o"; + i41 += "p"; + switch (O5t) { + case 2: + a = this.yb.value; + this.yb.set(b.Ca.yA); + this.Jia(); + O5t = 3; + break; + case 3: + a !== b.Ca.yA && a !== b.Ca.xA && this.la.ej.dV(!1); + this.la.De.forEach(function(a) { + var r5t; + r5t = 2; + while (r5t !== 1) { + switch (r5t) { + case 4: + a.pg = +2; + r5t = 5; + break; + r5t = 1; + break; + case 2: + a.pg = !1; + r5t = 1; + break; + } + } + }); + [b.G.VIDEO, b.G.AUDIO].forEach(function(a) { + var n5t; + n5t = 2; + while (n5t !== 1) { + switch (n5t) { + case 2: + (a = this.Ke[a]) && a.pause(); + n5t = 1; + break; + } + } + }.bind(this)); + this.emit(i41); + O5t = 6; + break; + } + } + }; + c.prototype.HU = function(a, c) { + var t5t, d, f, g, h, m, p, l, c61, d61, G61, H61, S61, X61, V61, O61, t61, b61, p61, g61, Y61, n61; + t5t = 2; + while (t5t !== 36) { + c61 = "see"; + c61 += "k"; + c61 += "Dela"; + c61 += "ye"; + c61 += "d"; + d61 = "s"; + d61 += "ee"; + d61 += "k"; + G61 = "s"; + G61 += "ee"; + G61 += "k"; + G61 += "F"; + G61 += "ailed"; + H61 = "s"; + H61 += "eek, no "; + H61 += "manifest"; + H61 += " at ma"; + H61 += "nifestIndex:"; + S61 = "s"; + S61 += "e"; + S61 += "ek"; + X61 = "pt"; + X61 += "sch"; + X61 += "an"; + X61 += "ge"; + X61 += "d"; + V61 = "seekDe"; + V61 += "la"; + V61 += "y"; + V61 += "ed"; + O61 = "se"; + O61 += "ek"; + O61 += "Fai"; + O61 += "l"; + O61 += "ed"; + t61 = "after seeking, playe"; + t61 += "rState no longer ST"; + t61 += "ARTING: "; + b61 = " pl"; + b61 += "aye"; + b61 += "rSt"; + b61 += "ate: "; + p61 = " me"; + p61 += "dia.cu"; + p61 += "r"; + p61 += "rentPt"; + p61 += "s: "; + g61 = " curre"; + g61 += "nt"; + g61 += " manifest: "; + Y61 = " man"; + Y61 += "ifes"; + Y61 += "tInd"; + Y61 += "ex: "; + n61 = "s"; + n61 += "e"; + n61 += "e"; + n61 += "k"; + n61 += ": "; + switch (t5t) { + case 3: + m = a; + g.Oe && this.th(n61 + a + Y61 + c + g61 + this.xc + p61 + h + b61 + this.yb.value); + k.V(c) && (c = this.xc); + t5t = 7; + break; + case 6: + t5t = (g = this.wa[c]) ? 14 : 37; + break; + case 44: + this.fa(t61 + this.yb.value), this.emit(O61); + t5t = 36; + break; + case 38: + this.la.De.forEach(function(b) { + var V5t, c; + V5t = 2; + while (V5t !== 4) { + switch (V5t) { + case 2: + c = b.P; + this.Li[c] && this.MUa(b, l[c], a); + V5t = 4; + break; + } + } + }.bind(this)); + t5t = 28; + break; + case 29: + [b.G.AUDIO, b.G.VIDEO].forEach(function(a) { + var Z5t; + Z5t = 2; + while (Z5t !== 1) { + switch (Z5t) { + case 2: + d.Ke[a].reset(!0); + Z5t = 1; + break; + } + } + }); + t5t = 28; + break; + case 12: + t5t = c != this.xc ? 11 : 26; + break; + case 21: + this.ak = { + na: this.xc + 1, + Jn: a + }; + this.emit(V61); + return; + break; + case 43: + return this.emit(X61, m), this.emit(S61), this.Gla(c), c = h && this.tt() ? 100 : 0, this.TO(1, c), this.Yh(), m; + break; + case 30: + t5t = (h = this.xc === c && !this.ISa(c) && a === g.U) ? 29 : 42; + break; + case 27: + return; + break; + case 24: + t5t = a > h ? 23 : 32; + break; + case 26: + h = this.PA(this.la.De, g.ib, g.ea || Infinity); + h = this.Qi ? this.Rf ? Math.min(h[b.G.AUDIO].U, h[b.G.VIDEO].U) : h[b.G.AUDIO].U : h[b.G.VIDEO].U; + t5t = 24; + break; + case 22: + t5t = !this.pB(this.xc + 1) ? 21 : 32; + break; + case 33: + a = h, m = a + this.la.Jc; + t5t = 32; + break; + case 14: + !g.BJ && 0 < c && (m = this.eoa(c, a)); + this.yb.set(b.Ca.xA); + t5t = 12; + break; + case 37: + this.fa(H61, c), this.emit(G61); + t5t = 36; + break; + case 41: + p = this.la.Bf; + l = this.$F(p.na, a, p).fz; + this.G_(g, c); + t5t = 38; + break; + case 2: + d = this; + g = this.K; + h = this.de(); + t5t = 3; + break; + case 28: + t5t = this.yb.value != b.Ca.Og ? 44 : 43; + break; + case 11: + c < this.xc && g.replace && (g.replace = !1); + f = this.wa[this.xc]; + this.la.De.forEach(function(a) { + var c5t; + c5t = 2; + while (c5t !== 1) { + switch (c5t) { + case 2: + this.ila(a, f.Bk && f.Bk.ji); + c5t = 1; + break; + } + } + }.bind(this)); + t5t = 19; + break; + case 42: + this.p_(d61); + t5t = 41; + break; + case 19: + t5t = !this.Fia(c) ? 18 : 15; + break; + case 32: + this.yb.set(b.Ca.Og); + t5t = 31; + break; + case 18: + this.ak = { + na: c, + Jn: a + }; + this.emit(c61); + return; + break; + case 15: + t5t = this.LB(this.la.I4(c), !1, !0) ? 27 : 26; + break; + case 31: + this.la.Tpb(a, c); + t5t = 30; + break; + case 7: + this.la.Sya(); + t5t = 6; + break; + case 23: + t5t = this.Vh ? 22 : 33; + break; + } + } + }; + c.prototype.seek = function(a, b) { + var X5t, c; + X5t = 2; + while (X5t !== 8) { + switch (X5t) { + case 3: + this.wa[b].BJ || this.WA || (c = this.SB(b, a)); + return this.HU(c, b); + break; + case 2: + c = a; + k.V(b) && (b = this.xc); + this.la.Sya(); + X5t = 3; + break; + } + } + }; + c.prototype.urb = function(a) { + var G5t, c, d, f, s5t, s61, e61, M61, v61, a61; + G5t = 2; + while (G5t !== 18) { + s61 = "unde"; + s61 += "r"; + s61 += "f"; + s61 += "l"; + s61 += "ow"; + e61 = "branc"; + e61 += "hOffse"; + e61 += "t"; + e61 += ":"; + M61 = "entr"; + M61 += "y.manifestOffs"; + M61 += "et"; + M61 += ":"; + v61 = "c"; + v61 += "ont"; + v61 += "entPts"; + v61 += ":"; + a61 = "unde"; + a61 += "rflow: go"; + a61 += "ing to BUFFERING at player pts:"; + switch (G5t) { + case 2: + c = this.K; + d = this.SB(this.kK, a); + this.fa(a61, a, v61, d, M61, this.su.Pm, e61, this.la.Jc); + f = c.TS; + G5t = 9; + break; + case 9: + this.Ke.forEach(function(b) { + var M5t; + M5t = 2; + while (M5t !== 1) { + switch (M5t) { + case 2: + f = Math.max(0, Math.min(f, b.B9a - a)); + M5t = 1; + break; + } + } + }); + c.Tx && (this.kO = d + c.$pb, this.lO = O.time.da()); + this.la.De.forEach(function(b) { + var i5t, d, f, T61, P61, J61, k61, N61, Z61, U61, D61, f61, R61, w61, y61; + i5t = 2; + while (i5t !== 8) { + T61 = "reb"; + T61 += "u"; + T61 += "ff"; + T61 += "e"; + T61 += "r"; + P61 = ", ne"; + P61 += "xtAppend"; + P61 += "P"; + P61 += "ts: "; + J61 = ", t"; + J61 += "oAp"; + J61 += "p"; + J61 += "end: "; + k61 = ", "; + k61 += "fr"; + k61 += "a"; + k61 += "gments:"; + k61 += " "; + N61 = ", completeSt"; + N61 += "reamingPt"; + N61 += "s:"; + N61 += " "; + Z61 = ","; + Z61 += " strea"; + Z61 += "mingPts"; + Z61 += ": "; + U61 = ", partial"; + U61 += "s:"; + U61 += " "; + D61 = ", totalBuff"; + D61 += "erBy"; + D61 += "tes: "; + f61 = ", tot"; + f61 += "alB"; + f61 += "u"; + f61 += "fferMs:"; + f61 += " "; + R61 = ","; + R61 += " bufferLevelByt"; + R61 += "es: "; + w61 = ", "; + w61 += "med"; + w61 += "iaType"; + w61 += ":"; + w61 += " "; + y61 = "underfl"; + y61 += "ow"; + y61 += ": "; + switch (i5t) { + case 5: + c.Oe && (f = this.Ke[d], f = y61 + a + w61 + d + R61 + b.gu + f61 + b.BE + D61 + b.Fs + U61 + b.Oa.ov + Z61 + b.Ra + N61 + b.Fx + k61 + JSON.stringify(b.Oa.Y) + J61 + JSON.stringify(f.Zh) + P61 + f.BTa); + c.Oe && this.th(f); + b.fp = !1; + c.lp && this.Vo && (b = this.Vo, d = this.Xa.ob[d], b.j$(T61, d.s6)); + i5t = 8; + break; + case 2: + d = b.P; + i5t = 5; + break; + } + } + }.bind(this)); + this.emit(s61); + this.TO(2); + this.Yh(); + G5t = 12; + break; + case 12: + G5t = this.On ? 11 : 10; + break; + case 10: + d = this.$a.Wa.get(!1); + d = d.zc ? d.pa.za : 0; + f > c.K6a && d > c.J6a && this.QO(); + G5t = 18; + break; + case 11: + try { + s5t = 2; + while (s5t !== 1) { + switch (s5t) { + case 4: + this.a3(b.Ca.Ns); + s5t = 0; + break; + s5t = 1; + break; + case 2: + this.a3(b.Ca.Ns); + s5t = 1; + break; + } + } + } catch (va) { + var B61; + B61 = "Hindsight: "; + B61 += "Error when e"; + B61 += "v"; + B61 += "aluati"; + B61 += "ng QoE at Buffering: "; + H4DD.q71(0); + this.Jp(H4DD.c71(B61, va)); + } + G5t = 10; + break; + } + } + }; + c.prototype.Kj = function(a) { + var B5t, c, d, Q61; + B5t = 2; + while (B5t !== 6) { + Q61 = "s"; + Q61 += "ki"; + Q61 += "p"; + switch (B5t) { + case 7: + this.emit(Q61); + B5t = 6; + break; + case 2: + c = this.K; + this.la.ej.Kj(a); + d = function(a, b, c) { + var L5t, L61; + L5t = 2; + while (L5t !== 5) { + L61 = "skip: unexpected"; + L61 += " behaviour - a non-presenting branch doesn"; + L61 += "'t have a previous branch"; + switch (L5t) { + case 2: + a !== this.la.ej && (a.pe ? d(a.pe, b, c) : this.Rb(L61)); + a.Sa[b].Kj(c); + L5t = 5; + break; + } + } + }.bind(this); + [b.G.AUDIO, b.G.VIDEO].forEach(function(b) { + var j5t, f, r61; + j5t = 2; + while (j5t !== 8) { + r61 = "skip: not r"; + r61 += "esuming bufferManager, "; + r61 += "audio trac"; + r61 += "k switc"; + r61 += "h in progress"; + switch (j5t) { + case 1: + j5t = this.Li[b] ? 5 : 8; + break; + case 5: + f = this.Xa.ob[b]; + this.On && (f.M$ = O.time.da()); + c.vK ? this.Ke[b].reset() : f.NE ? f.fa(r61) : this.Ke[b].resume(); + d(this.la.Bf, b, a); + j5t = 8; + break; + case 2: + j5t = 1; + break; + } + } + }.bind(this)); + this.yb.set(b.Ca.xf); + this.IG(); + B5t = 7; + break; + } + } + }; + c.prototype.LB = function(a, c, d) { + var p5t, f, j61, C61; + p5t = 2; + while (p5t !== 8) { + j61 = "s"; + j61 += "e"; + j61 += "e"; + j61 += "k"; + C61 = "pts"; + C61 += "change"; + C61 += "d"; + switch (p5t) { + case 5: + p5t = c ? 4 : 3; + break; + case 2: + f = this.la.LB(a, c); + p5t = 5; + break; + case 4: + return f; + break; + case 3: + f ? (this.yb.set(b.Ca.xA), (a = this.la.ej.children[a]) && this.emit(C61, a.$b), this.yb.set(b.Ca.Og), this.emit(j61), a && this.Gla(a.na), this.TO(1), this.Yh(), this.tt()) : d || (a = this.la.u$a(a), this.HU(a)); + return f; + break; + } + } + }; + c.prototype.$ja = function(a) { + var U5t, b; + U5t = 2; + while (U5t !== 6) { + switch (U5t) { + case 2: + this.xc = a; + U5t = 5; + break; + case 4: + this.tn = b.Gs; + this.om = b.R; + this.xn = b.Fa; + this.UTa(a, b.replace, b.fz); + U5t = 7; + break; + case 5: + b = this.wa[a]; + U5t = 4; + break; + case 7: + this.Xa.Bab(b.replace); + U5t = 6; + break; + } + } + }; + c.prototype.KG = function(a, c) { + var g5t, d, f, g, h, m, p, l, r, n, u, O21, t21, l21, b21, p21, g21, Y21, n21, i61, u61; + g5t = 2; + while (g5t !== 41) { + O21 = "ad"; + O21 += "dManifest: pipelines alread"; + O21 += "y shutd"; + O21 += "own"; + t21 = "addManifest ignored, pipelines"; + t21 += " already set E"; + t21 += "OS:"; + l21 = "bo"; + l21 += "o"; + l21 += "l"; + l21 += "ea"; + l21 += "n"; + b21 = "addManifest in "; + b21 += "fastplay but not"; + b21 += " drm manifest, leaving space for it"; + p21 = ","; + p21 += " "; + g21 = ") lastS"; + g21 += "treamAppended"; + g21 += ": ("; + Y21 = ","; + Y21 += " "; + n21 = " "; + n21 += "stre"; + n21 += "am"; + n21 += "Count"; + n21 += ": ("; + i61 = " "; + i61 += "p"; + i61 += "layerSt"; + i61 += "at"; + i61 += "e: "; + u61 = "add"; + u61 += "Manifest, curren"; + u61 += "t"; + u61 += "Pts: "; + switch (g5t) { + case 29: + g5t = this.Qi && k.V(c) || this.Rf && k.V(a) ? 28 : 44; + break; + case 19: + p = c.ea; + c.replace && (l = this.wa[0].ge); + r = this.Ve[b.G.AUDIO]; + g5t = 16; + break; + case 7: + g5t = this.Qi && g.qq || this.Rf && f.qq ? 6 : 14; + break; + case 3: + f = this.la.De; + g = f[b.G.AUDIO]; + f = f[b.G.VIDEO]; + g5t = 7; + break; + case 31: + a = this.Xa.ob[b.G.VIDEO].ao; + d.Oe && this.th(u61 + this.de() + i61 + this.yb.value + n21 + l[0].bc.length + Y21 + l[1].bc.length + g21 + c + p21 + a + ")"); + g5t = 29; + break; + case 14: + c || (c = {}); + c.G8 && (this.EO = !0); + f = this.wa.length; + c.replace && 1 !== f ? f = 1 : this.Vh && !c.replace && 1 === f && (this.fa(b21), f = this.zRa(this.wa[0]), f.H6a = !0, this.wa.push(f), f = this.wa.length); + g5t = 10; + break; + case 5: + g5t = this.ke() ? 4 : 3; + break; + case 26: + a = this.UN(a, m, p, l, !!c.replace, g); + a.BJ = a.replace; + a.Gs = g; + g5t = 23; + break; + case 23: + a.NB = c.NB; + l21 === typeof c.DB ? (a.DB = c.DB, a.vx = c.DB) : (a.DB = !0, a.vx = !0); + this.wa[f] && this.wa[f].Ld(); + this.wa[f] = a; + this.Cia(f); + c.replace || this.la.gXa(f, m, p); + c = this.Xa.ob[b.G.AUDIO].ao; + g5t = 31; + break; + case 44: + this.MO(h, f, l); + this.pB(this.xc + 1); + return !0; + break; + case 16: + for (u in r) { + (n = r[u]) && n.Js && (n.Nlb() ? this.Jja(g, n) : this.zD(n)); + } + g = c.Gs ? c.Gs : this.tn; + l = this.tG(a, f, g, !1, l); + g5t = 26; + break; + case 10: + h = a.movieId + ""; + m = c.U || 0; + g5t = 19; + break; + case 2: + d = this.K; + g5t = 5; + break; + case 6: + this.fa(t21, g.qq, f.qq); + g5t = 41; + break; + case 28: + return !0; + break; + case 4: + this.fa(O21); + g5t = 41; + break; + } + } + }; + c.prototype.ISa = function(a) { + var w5t; + w5t = 2; + while (w5t !== 1) { + switch (w5t) { + case 4: + return +~this.wa[a].vx; + break; + w5t = 1; + break; + case 2: + return !!this.wa[a].vx; + break; + } + } + }; + c.prototype.Gla = function(a) { + var S5t; + S5t = 2; + while (S5t !== 5) { + switch (S5t) { + case 2: + a = this.wa[a]; + a.vx || (a.vx = !0, [b.G.VIDEO, b.G.AUDIO].forEach(function(a) { + var Q5t; + Q5t = 2; + while (Q5t !== 1) { + switch (Q5t) { + case 2: + this.Ke[a].resume(); + Q5t = 1; + break; + case 4: + this.Ke[a].resume(); + Q5t = 7; + break; + Q5t = 1; + break; + } + } + }.bind(this))); + S5t = 5; + break; + } + } + }; + c.prototype.LQ = function(a) { + var z0t, c, d, f, g, o21, X21, F21, V21; + z0t = 2; + while (z0t !== 13) { + o21 = " r"; + o21 += "eadySta"; + o21 += "te"; + o21 += ": "; + X21 = " f"; + X21 += "or"; + X21 += " "; + X21 += "movieId:"; + X21 += " "; + F21 = ","; + F21 += " "; + V21 = "d"; + V21 += "rmReady at stream"; + V21 += "ing pts: "; + switch (z0t) { + case 2: + d = this.K; + z0t = 5; + break; + case 7: + d.Oe && this.th(V21 + g.Ra + F21 + f.Ra + X21 + a + o21 + c); + z0t = 6; + break; + case 5: + z0t = !this.ke() ? 4 : 13; + break; + case 4: + k.V(c) && (c = !0); + f = this.la.De; + g = f[b.G.AUDIO]; + f = f[b.G.VIDEO]; + z0t = 7; + break; + case 6: + z0t = (this.RZ[a + ""] = c) ? 14 : 13; + break; + case 14: + this.Ke.forEach(function(a) { + var o0t; + o0t = 2; + while (o0t !== 5) { + switch (o0t) { + case 2: + d.C3 && a.v7a(); + d.QV && a.resume(); + o0t = 5; + break; + } + } + }), this.Vh && this.pB(this.ak ? this.ak.na : this.xc + 1), this.AZ(); + z0t = 13; + break; + } + } + }; + c.prototype.JI = function(a, b) { + var W0t; + W0t = 2; + while (W0t !== 5) { + switch (W0t) { + case 2: + a || (a = this.om); + return (b = b && 0 <= b ? this.wa[b] : this.wa[this.xc]) && b.NB || this.RZ[a]; + break; + } + } + }; + c.prototype.Fia = function(a) { + var q0t, c, d, f; + q0t = 2; + while (q0t !== 10) { + switch (q0t) { + case 5: + return !1; + break; + case 2: + q0t = 1; + break; + case 4: + c = this.la.De; + d = c[b.G.AUDIO]; + c = c[b.G.VIDEO]; + d = !d || d.pg; + f = !c || c.pg; + c = this.wa[a]; + q0t = 14; + break; + case 1: + q0t = a >= this.wa.length ? 5 : 4; + break; + case 14: + q0t = !(a === this.xc + 1 && c.replace || d && f) || !this.RZ[c.R] && !c.NB ? 13 : 12; + break; + case 13: + return !1; + break; + case 11: + return (!this.Qi || c.ib[b.G.AUDIO] && c.ib[b.G.AUDIO].stream.Mc) && a ? !0 : !1; + break; + case 12: + a = !this.Rf || c.ib[b.G.VIDEO] && c.ib[b.G.VIDEO].stream.Mc; + q0t = 11; + break; + } + } + }; + c.prototype.pB = function(a) { + var l0t, b; + l0t = 2; + while (l0t !== 14) { + switch (l0t) { + case 1: + l0t = !this.Fia(a) ? 5 : 4; + break; + case 2: + l0t = 1; + break; + case 5: + return !1; + break; + case 3: + l0t = b.H6a || !b.replace ? 9 : 8; + break; + case 4: + b = this.wa[a]; + l0t = 3; + break; + case 9: + return !1; + break; + case 8: + this.WVa(a); + this.Yh(); + return !0; + break; + } + } + }; + c.prototype.WVa = function(a) { + var m0t, c, d, f, g, S21, A21, K21; + m0t = 2; + while (m0t !== 15) { + S21 = ","; + S21 += " "; + A21 = ","; + A21 += " st"; + A21 += "reamingPts"; + A21 += ": "; + K21 = "switchMan"; + K21 += "ifest manifestIn"; + K21 += "de"; + K21 += "x: "; + switch (m0t) { + case 20: + [b.G.VIDEO, b.G.AUDIO].forEach(function(a) { + var x0t, b; + x0t = 2; + while (x0t !== 4) { + switch (x0t) { + case 2: + b = f.fi(a); + b && !d.replace && (d.Rn ? b.fmb(d.Rn[a]) : (a = d.fz[a], b.gmb(a))); + x0t = 4; + break; + } + } + }.bind(this)); + this.$ja(a); + this.G_(d, a); + this.AZ(); + this.Yh(); + m0t = 15; + break; + case 2: + d = this.wa[a]; + f = this.la.Bf; + g = f.fi(b.G.AUDIO); + m0t = 3; + break; + case 7: + g = this.Vh; + this.Vh = !1; + d.DB && (d.vx = !0); + d.IP && (c = this.tG(d.Fa, a, d.Gs, !1, d.ge, b.G.AUDIO), d.ge[b.G.AUDIO] = c[b.G.AUDIO], d.ge[b.G.AUDIO].bc.some(function(a) { + var I0t; + I0t = 2; + while (I0t !== 1) { + switch (I0t) { + case 2: + return a.Mc ? (d.ib[b.G.AUDIO] = { + stream: a, + Y: a.Y + }, !0) : !1; + break; + } + } + }), d.IP = void 0); + c = this.xc; + g ? this.la.Olb(c, a) : f.Rnb(a); + f.J5(a); + m0t = 20; + break; + case 3: + g = g ? g.Ra : void 0; + c = (c = f.fi(b.G.VIDEO)) ? c.Ra : void 0; + this.K.Oe && this.th(K21 + a + A21 + g + S21 + c); + m0t = 7; + break; + } + } + }; + c.prototype.AZ = function() { + var E0t, a, b; + E0t = 2; + while (E0t !== 9) { + switch (E0t) { + case 5: + a = this.ak.Jn; + E0t = 4; + break; + case 2: + E0t = 1; + break; + case 1: + E0t = this.ak ? 5 : 9; + break; + case 4: + b = this.ak.na; + this.wa[b] && (this.ak = void 0, this.HU(a, b)); + E0t = 9; + break; + } + } + }; + c.prototype.phb = function() { + var h0t, a, c, d, x21; + h0t = 2; + while (h0t !== 13) { + x21 = "o"; + x21 += "nAudioTrackSwitchStart"; + x21 += "e"; + x21 += "d ignored, no audio pipeline"; + switch (h0t) { + case 2: + a = this.la.Bf.fi(b.G.AUDIO); + h0t = 5; + break; + case 5: + h0t = a ? 4 : 14; + break; + case 4: + c = this.Xa.ob[a.P]; + d = this.de(); + (d = a.Oa.vC(d)) && d.cf != a && (a = d.cf); + h0t = 8; + break; + case 14: + this.fa(x21); + h0t = 13; + break; + case 8: + this.NUa(a); + c.NE = !1; + this.Yh(); + h0t = 13; + break; + } + } + }; + c.prototype.pYa = function() { + var A0t, a; + A0t = 2; + while (A0t !== 3) { + switch (A0t) { + case 2: + this.ETa(this.qt); + A0t = 1; + break; + case 8: + this.ETa(this.qt); + A0t = 4; + break; + A0t = 1; + break; + case 5: + A0t = a < this.wa.length ? 4 : 3; + break; + case 4: + this.wa[a++].IP = !0; + A0t = 5; + break; + case 1: + a = this.xc; + A0t = 5; + break; + } + } + }; + c.prototype.Vpb = function(a) { + var K0t, c, f, g, k, h, M21, v21, a21, q21, c21, d21, G21, H21; + K0t = 2; + while (K0t !== 23) { + M21 = "swit"; + M21 += "chTracks rejected, pre"; + M21 += "vious switch"; + M21 += " still in progress: "; + v21 = "swi"; + v21 += "tchTracks can't "; + v21 += "find trackI"; + v21 += "d:"; + a21 = "switchT"; + a21 += "racks rejected"; + a21 += ", previous switch still wa"; + a21 += "i"; + a21 += "ting to start"; + q21 = " "; + q21 += "to in"; + q21 += "dex: "; + c21 = "switc"; + c21 += "hT"; + c21 += "racks current: "; + d21 = "switchTr"; + d21 += "a"; + d21 += "cks rejected, bufferLevelMs"; + G21 = "swit"; + G21 += "chT"; + G21 += "racks r"; + G21 += "ejected, buffering"; + H21 = "s"; + H21 += "w"; + H21 += "itchTracks rejected, audio disa"; + H21 += "bl"; + H21 += "ed"; + switch (K0t) { + case 12: + g = this.la.xC(b.G.VIDEO); + K0t = 11; + break; + case 4: + return this.fa(H21), !1; + break; + case 8: + K0t = d(this.yb.value) ? 7 : 6; + break; + case 3: + K0t = this.qt ? 9 : 8; + break; + case 16: + K0t = h == a ? 15 : 27; + break; + case 19: + K0t = !this.xn.audio_tracks.some(function(a, b) { + var F0t; + F0t = 2; + while (F0t !== 1) { + switch (F0t) { + case 2: + return a.track_id == k ? (h = b, !0) : !1; + break; + } + } + }) ? 18 : 17; + break; + case 7: + return this.fa(G21), !1; + break; + case 17: + a = this.tn[b.G.AUDIO]; + K0t = 16; + break; + case 10: + return this.fa(d21, g, "<", c.fT), !1; + break; + case 11: + K0t = g < c.fT ? 10 : 20; + break; + case 27: + c.Oe && this.th(c21 + a + q21 + h); + f.tT = { + Tb: k, + uf: h + }; + this.QVa(this.la.Bf.fi(b.G.AUDIO)); + return !0; + break; + case 13: + return this.fa(a21), !1; + break; + case 20: + k = a.BB; + K0t = 19; + break; + case 6: + f = this.Xa.ob[b.G.AUDIO]; + K0t = 14; + break; + case 18: + return this.fa(v21, k), !1; + break; + case 5: + K0t = !this.Qi ? 4 : 3; + break; + case 14: + K0t = f.NE ? 13 : 12; + break; + case 15: + return !1; + break; + case 9: + return this.fa(M21 + JSON.stringify(this.qt)), !1; + break; + case 2: + c = this.K; + K0t = 5; + break; + } + } + }; + I2t = 102; + break; } } - }); - m = b; - f.__decorate([g.config(g.We, "usesMsl")], m.prototype, "$sa", null); - f.__decorate([g.config(g.We, "refreshCredentialsAfterManifestAuthError")], m.prototype, "Ina", null); - m = f.__decorate([d.N(), f.__param(0, d.j(l.nk)), f.__param(1, d.j(a.WJ))], m); - c.yFa = m; - }, function(f, c, a) { - var d; - - function b() {} - Object.defineProperty(c, "__esModule", { - value: !0 - }); - f = a(1); - a = a(0); - b.prototype.send = function() { - return Promise.reject("Not implemented"); - }; - b.prototype.QY = function() { - return {}; - }; - d = b; - d = f.__decorate([a.N()], d); - c.YEa = d; - }, function(f, c, a) { - var d, h, l, g, m, p, k, u; + }()); + }, function(g, d, a) { + var c, h, k, f, p, m; - function b(a, b, c, d) { - this.config = b; - this.Le = c; - this.receiver = d; - this.log = a.Bb("MslTransport"); - } - Object.defineProperty(c, "__esModule", { - value: !0 - }); - f = a(1); - d = a(0); - h = a(12); - l = a(2); - g = a(111); - m = a(311); - p = a(7); - a = a(197); - k = { - license: !0 - }; - b.prototype.send = function(a, b) { - var c, d; - c = this; - d = { - IG: { - Za: a.Za, - log: a.log, - profile: a.profile - }, - method: a.$g, - url: a.url, - body: JSON.stringify(b), - timeout: a.timeout.qa(p.Ma), - WB: a.profile.id, - M7a: !k[a.$g], - CP: !!k[a.$g], - mN: !0, - D4: a.ex, - headers: a.headers - }; - return this.Le.send(d).then(function(d) { - c.receiver.V3({ - $g: a.$g, - inputs: b, - outputs: d - }); - return d; - })["catch"](function(d) { - var g; - if (!d.error) throw d.tb = d.R || d.tb, c.receiver.V3({ - $g: a.$g, - inputs: b, - outputs: d - }), d; - g = d.error; - g.$j = d.$j; - c.log.error("Error sending MSL request", { - mslCode: g.sq, - subCode: g.tb, - data: g.data, - message: g.message - }); - "401" === g.Sc && (g.tb = l.u.HC, g.Sc = "4027", c.config.Ina && "manifest" === a.$g && c.Le.cla()); - c.receiver.V3({ - $g: a.$g, - inputs: b, - outputs: g - }); - throw g; - }); - }; - b.prototype.QY = function() { - return { - userTokens: this.Le.Le.getUserIdTokenKeys() - }; - }; - u = b; - u = f.__decorate([d.N(), f.__param(0, d.j(h.Jb)), f.__param(1, d.j(m.VU)), f.__param(2, d.j(g.Wx)), f.__param(3, d.j(a.sU))], u); - c.vAa = u; - }, function(f, c, a) { - var b, d, h, l, g; - Object.defineProperty(c, "__esModule", { - value: !0 - }); - f = a(0); - b = a(311); - d = a(312); - h = a(563); - l = a(562); - g = a(561); - c.Hbb = new f.dc(function(a) { - a(b.VU).to(g.yFa).Y(); - a(d.x$).to(h.vAa); - a(d.sba).to(l.YEa); - a(d.Qba).Yl(function(a) { - return function() { - return a.kc.get(b.VU).$sa ? a.kc.get(d.x$) : a.kc.get(d.sba); - }; + function b(a, b, d) { + p = d; + m = d.map(function(a, b) { + return a.Fe && a.inRange && !a.Eh ? b : null; + }).filter(function(a) { + return null !== a; }); - }); - }, function(f, c, a) { - var d, h, l, g, m, p, k, u, n, q, w, t; - - function b(a, b, c, d, g, f, h) { - this.platform = a; - this.xc = b; - this.Cg = c; - this.Za = d; - this.config = g; - this.Kk = f; - this.iq = h; - this.name = n.wr.events; + if (null === f) return a = h(d), f = d[a].O, new k(a); + if (!m.length) return null; + a = m.filter(function(a) { + return d[a].O == f; + })[0]; + return void 0 === a ? (c.log("Defaulting to first stream due to unvalid bitrate requested: " + f), new k(m[0])) : new k(a); } - Object.defineProperty(c, "__esModule", { - value: !0 + a(11); + a(13); + d = a(43); + a = a(8); + c = d.console; + h = d.v3; + k = d.No; + f = null; + p = null; + m = null; + a.e_a && (a.e_a.rE = { + Ac: function() { + m = p = f = null; + }, + i$: function(a) { + f = a; + }, + UEb: function() { + return { + all: p, + $Ba: m + }; + } }); - f = a(1); - d = a(0); - h = a(69); - l = a(2); - g = a(24); - m = a(27); - p = a(22); - k = a(23); - u = a(45); - n = a(82); - q = a(7); - w = a(37); - a = a(33); - b.prototype.Pf = function() { - return Promise.reject(Error("Links are required with DownloadEvent")); - }; - b.prototype.Am = function(a, b, c, d) { - var g; - g = this; - return this.Pk(a, b, c.GF("events").href, d).then(function(a) { - return g.Kk.send(a.context, a.request); - }).then(function() {})["catch"](function(a) { - throw h.Yp(l.v.qwa, a); - }); + g.M = { + STARTING: b, + BUFFERING: b, + REBUFFERING: b, + PLAYING: b, + PAUSED: b }; - b.prototype.Pk = function(a, b, c, d) { - var g, f; - try { - g = h.xE(this.iq.As(), c, this.Cg().$d, this.config, this.platform, d); - f = this.Ip(a, b, g); - return Promise.resolve({ - context: f, - request: g - }); - } catch (ca) { - return Promise.reject(ca); + }, function(g, d, a) { + (function() { + var e21, b, X57; + e21 = 2; + while (e21 !== 8) { + X57 = "1SI"; + X57 += "Y"; + X57 += "bZrNJC"; + X57 += "p9"; + switch (e21) { + case 2: + a(11); + b = a(13); + e21 = 4; + break; + case 4: + a(43); + g.M = { + checkBuffering: function(a, d, g, f, p) { + var q88 = H4DD; + var y21, k, h, l, n, q, w, t, o57, Y57, s57, K57, D21, U21; + y21 = 2; + + function c(a) { + var w21; + w21 = 2; + while (w21 !== 5) { + switch (w21) { + case 2: + a = d.Y.t3(k.nf + a, void 0, !0); + return (q - k.pv) / (q + (a.offset + a.Z) - w); + break; + } + } + } + while (y21 !== 38) { + o57 = "nor"; + o57 += "ebu"; + o57 += "ff"; + Y57 = "ou"; + Y57 += "tofra"; + Y57 += "ng"; + Y57 += "e"; + s57 = "m"; + s57 += "a"; + s57 += "xsi"; + s57 += "ze"; + K57 = "hig"; + K57 += "h"; + K57 += "t"; + K57 += "p"; + switch (y21) { + case 30: + f = d.Y.get(p); + t = 8 * t / l - f.U - n; + y21 = 28; + break; + case 10: + y21 = !l ? 20 : 19; + break; + case 22: + return { + complete: !0, reason: K57 + }; + break; + case 6: + return { + complete: !1, uJ: !0 + }; + break; + case 8: + return { + complete: !0, reason: s57 + }; + break; + case 14: + q88.Z57(0); + D21 = q88.J57(14, 18, 16, 12); + n = p.ki * (a.state === b.Ca.jt ? p.m9 : D21); + p.q5a && d.Ga && d.Ga.kg && d.Ga.kg.za > p.O6 && (n += p.a0 + d.Ga.kg.za * p.u8); + f && (n += f.mQ * p.b0); + n = g ? Math.min(g, n) : n; + y21 = 10; + break; + case 25: + w = d.Y.Jl(a); + y21 = 24; + break; + case 43: + t = f.offset; + y21 = 42; + break; + case 32: + --p; + y21 = 31; + break; + case 26: + return { + complete: !0, reason: Y57 + }; + break; + case 17: + y21 = !d.Y || !d.Y.length ? 16 : 15; + break; + case 40: + 0 < l && l < d.O && (n = Math.min(g, Math.max(p.wK * (d.O / l - 1), n))); + return { + complete: !1, qz: n, oi: c(n) + }; + break; + case 9: + y21 = h >= g ? 8 : 7; + break; + case 15: + a = d.Y.Dj(k.Ra); + y21 = 27; + break; + case 41: + return { + complete: !0, reason: o57 + }; + break; + case 24: + y21 = h >= n ? 23 : 40; + break; + case 23: + y21 = l > d.O * p.eR ? 22 : 21; + break; + case 18: + k.Y.forEach(function(a) { + var R21; + R21 = 2; + while (R21 !== 1) { + switch (R21) { + case 2: + q += a.U + a.duration > k.nf ? a.Z : 0; + R21 = 1; + break; + } + } + }); + y21 = 17; + break; + case 31: + y21 = p > a ? 30 : 41; + break; + case 28: + y21 = 0 < t ? 44 : 43; + break; + case 20: + return { + complete: !1, qz: n + }; + break; + case 42: + --p; + y21 = 31; + break; + case 2: + k = a.buffer; + h = a.Zd || k.rl - k.nf; + l = d.pa || 0; + n = 0; + y21 = 9; + break; + case 27: + y21 = -1 === a ? 26 : 25; + break; + case 44: + return n = Math.min(g, h + t), { + complete: !1, + qz: n, + oi: c(n) + }; + break; + case 7: + y21 = l <= p.U6 && (0 < l || !p.d3) ? 6 : 14; + break; + case 21: + n = d.Y.Sd(a); + p = Math.min(a + Math.floor(p.wK / n), d.Y.length - 1); + t = d.Y.Jl(p); + y21 = 33; + break; + case 16: + return l < d.O && (n = Math.min(g, Math.max(p.wK * (d.O / l - 1), n))), { + complete: !1, + qz: n, + oi: (q - k.pv) / (q + (n - (k.Ra - k.nf)) * d.O / 8) + }; + break; + case 33: + q88.Z57(1); + U21 = q88.J57(13, 5); + n = U21 * w / l - k.nf; + y21 = 32; + break; + case 19: + q = 0; + y21 = 18; + break; + } + } + } + }; + X57; + e21 = 8; + break; + } } - }; - b.prototype.Ip = function(a, b, c) { - return { - Za: this.Za, - log: a, - $g: this.name, - url: h.yE(this.xc, this.config, this.name), - profile: b, - ex: 3, - timeout: q.ij(59), - xQ: c.url, - headers: { - "Content-Type": "text/plain" + }()); + }, function(g, d, a) { + (function() { + var z57, c, d, k, f, w0X; + + function b(a, b, d, g) { + var O57, h, B0X, d0X, x57; + O57 = 2; + while (O57 !== 11) { + B0X = "playe"; + B0X += "r missing streamin"; + B0X += "gI"; + B0X += "ndex"; + d0X = "Must have at "; + d0X += "l"; + d0X += "east one selected stream"; + switch (O57) { + case 3: + H4DD.X0X(0); + x57 = H4DD.p0X(10, 23, 13); + g = d.length - x57; + O57 = 9; + break; + case 8: + h = d[g]; + O57 = 7; + break; + case 13: + b.Fd = 0; + return b; + break; + case 2: + k(!c.V(g), d0X); + k(c.ja(b.Iv), B0X); + b = f(g); + O57 = 3; + break; + case 9: + O57 = -1 < g ? 8 : 13; + break; + case 7: + O57 = h.Ga && h.Ga.pa && h.O < h.Ga.pa.za - a.lqb ? 6 : 14; + break; + case 14: + --g; + O57 = 9; + break; + case 6: + return b.Fd = g, b; + break; + } } - }; - }; - t = b; - t = f.__decorate([d.N(), f.__param(0, d.j(g.Pe)), f.__param(1, d.j(m.lf)), f.__param(2, d.j(p.Ee)), f.__param(3, d.j(a.hg)), f.__param(4, d.j(k.Oe)), f.__param(5, d.j(u.Di)), f.__param(6, d.j(w.Rg))], t); - c.Jwa = t; - }, function(f, c) { - Object.defineProperty(c, "__esModule", { - value: !0 - }); - c.gg = { - Ssb: "startDownload", - Vsb: "stopDownloadDueToError", - Klb: "completeDownload", - xlb: "cancelDownload", - esb: "reportProgress" - }; - c.Kwa = "DownloadEventPboCommandSymbol"; - }, function(f, c, a) { - var d, h, l, g, m, k, r, u, n, q, w, t; - - function b(a, b, c, d, g, f, h) { - a = w.or.call(this, a, b, c, d, g, f, h) || this; - a.name = t.wr.kd; - return a; - } - Object.defineProperty(c, "__esModule", { - value: !0 - }); - f = a(1); - d = a(0); - h = a(24); - l = a(27); - g = a(22); - m = a(45); - k = a(23); - r = a(33); - u = a(69); - n = a(2); - q = a(37); - w = a(139); - t = a(82); - oa(b, w.or); - b.prototype.Pf = function(a, b, c) { - var d; - d = this; - return this.Pk(a, b, c, "/syncDeactivateLinks").then(function(a) { - return d.Kk.send(a.context, a.request); - }).then(function(a) { - return a.result; - })["catch"](function(a) { - throw u.Yp(n.v.NEa, a); - }); - }; - b.prototype.Am = function() { - return Promise.reject(Error("executeWithLinks is not supported by syncDeactivateLinks")); - }; - a = b; - a = f.__decorate([d.N(), f.__param(0, d.j(h.Pe)), f.__param(1, d.j(l.lf)), f.__param(2, d.j(g.Ee)), f.__param(3, d.j(r.hg)), f.__param(4, d.j(k.Oe)), f.__param(5, d.j(m.Di)), f.__param(6, d.j(q.Rg))], a); - c.cDa = a; - }, function(f, c) { - Object.defineProperty(c, "__esModule", { - value: !0 - }); - c.dDa = "PboSyncDeactivateLinksCommandSymbol"; - }, function(f, c, a) { - var d, h, l, g, m, k, r, u, n, q, w; + } + z57 = 2; + while (z57 !== 13) { + w0X = "1SI"; + w0X += "YbZrNJCp"; + w0X += "9"; + switch (z57) { + case 4: + d = a(43); + a(8); + k = d.assert; + f = d.No; + z57 = 7; + break; + case 2: + c = a(11); + a(13); + z57 = 4; + break; + case 7: + d = a(195); + g.M = { + STARTING: d.STARTING, + BUFFERING: d.BUFFERING, + REBUFFERING: d.REBUFFERING, + PLAYING: b, + PAUSED: b + }; + w0X; + z57 = 13; + break; + } + } + }()); + }, function(g, d, a) { + var c; - function b(a, b, c, d, g, f, h) { - return n.Bi.call(this, a, b, c, d, g, f, h, u.v.k8, q.gg.Rn, 3) || this; + function b(a, b, d) { + return new c(d.length - 1); } - Object.defineProperty(c, "__esModule", { - value: !0 - }); - f = a(1); - d = a(0); - h = a(24); - l = a(27); - g = a(22); - m = a(33); - k = a(23); - r = a(45); - u = a(2); - n = a(93); - q = a(61); - a = a(37); - oa(b, n.Bi); - b.prototype.sM = function(a) { - return Object.assign({}, n.Bi.prototype.sM.call(this, a), { - action: a.action - }); + a(11); + c = a(43).No; + g.M = { + STARTING: b, + BUFFERING: b, + REBUFFERING: b, + PLAYING: b, + PAUSED: b }; - w = b; - w = f.__decorate([d.N(), f.__param(0, d.j(h.Pe)), f.__param(1, d.j(l.lf)), f.__param(2, d.j(g.Ee)), f.__param(3, d.j(m.hg)), f.__param(4, d.j(k.Oe)), f.__param(5, d.j(r.Di)), f.__param(6, d.j(a.Rg))], w); - c.jxa = w; - }, function(f, c, a) { - var d, h, l, g, m, k, r, u, n, q, w; - - function b(a, b, c, d, g, f, h) { - return n.Bi.call(this, a, b, c, d, g, f, h, u.v.uEa, q.gg.splice, 1) || this; - } - Object.defineProperty(c, "__esModule", { - value: !0 - }); - f = a(1); - d = a(0); - h = a(24); - l = a(27); - g = a(22); - m = a(33); - k = a(23); - r = a(45); - u = a(2); - n = a(93); - q = a(61); - a = a(37); - oa(b, n.Bi); - w = b; - w = f.__decorate([d.N(), f.__param(0, d.j(h.Pe)), f.__param(1, d.j(l.lf)), f.__param(2, d.j(g.Ee)), f.__param(3, d.j(m.hg)), f.__param(4, d.j(k.Oe)), f.__param(5, d.j(r.Di)), f.__param(6, d.j(a.Rg))], w); - c.XEa = w; - }, function(f, c, a) { - var d, h, l, g, m, k, r, u, n, q, w; - - function b(a, b, c, d, g, f, h) { - return n.Bi.call(this, a, b, c, d, g, f, h, u.v.Waa, q.gg.resume, 1) || this; - } - Object.defineProperty(c, "__esModule", { - value: !0 - }); - f = a(1); - d = a(0); - h = a(24); - l = a(27); - g = a(22); - m = a(33); - k = a(23); - r = a(45); - u = a(2); - n = a(93); - q = a(61); - a = a(37); - oa(b, n.Bi); - w = b; - w = f.__decorate([d.N(), f.__param(0, d.j(h.Pe)), f.__param(1, d.j(l.lf)), f.__param(2, d.j(g.Ee)), f.__param(3, d.j(m.hg)), f.__param(4, d.j(k.Oe)), f.__param(5, d.j(r.Di)), f.__param(6, d.j(a.Rg))], w); - c.iEa = w; - }, function(f, c, a) { - var d, h, l, g, m, k, r, u, n, q, w; - - function b(a, b, c, d, g, f, h) { - return n.Bi.call(this, a, b, c, d, g, f, h, u.v.P$, q.gg.pause, 1) || this; - } - Object.defineProperty(c, "__esModule", { - value: !0 - }); - f = a(1); - d = a(0); - h = a(24); - l = a(27); - g = a(22); - m = a(33); - k = a(23); - r = a(45); - u = a(2); - n = a(93); - q = a(61); - a = a(37); - oa(b, n.Bi); - w = b; - w = f.__decorate([d.N(), f.__param(0, d.j(h.Pe)), f.__param(1, d.j(l.lf)), f.__param(2, d.j(g.Ee)), f.__param(3, d.j(m.hg)), f.__param(4, d.j(k.Oe)), f.__param(5, d.j(r.Di)), f.__param(6, d.j(a.Rg))], w); - c.MCa = w; - }, function(f, c, a) { - var d, h, l, g, m, k, r, u, n, q, w; - - function b(a, b, c, d, g, f, h) { - return n.Bi.call(this, a, b, c, d, g, f, h, u.v.GT, q.gg.MO, 1) || this; - } - Object.defineProperty(c, "__esModule", { - value: !0 - }); - f = a(1); - d = a(0); - h = a(24); - l = a(27); - g = a(22); - m = a(33); - k = a(23); - r = a(45); - u = a(2); - n = a(93); - q = a(61); - a = a(37); - oa(b, n.Bi); - w = b; - w = f.__decorate([d.N(), f.__param(0, d.j(h.Pe)), f.__param(1, d.j(l.lf)), f.__param(2, d.j(g.Ee)), f.__param(3, d.j(m.hg)), f.__param(4, d.j(k.Oe)), f.__param(5, d.j(r.Di)), f.__param(6, d.j(a.Rg))], w); - c.aza = w; - }, function(f, c, a) { - var d, h, l, g, m, k, r, u, n, q, w; - - function b(a, b, c, d, g, f, h) { - return n.Bi.call(this, a, b, c, d, g, f, h, u.v.$C, q.gg.stop, 3) || this; - } - Object.defineProperty(c, "__esModule", { - value: !0 - }); - f = a(1); - d = a(0); - h = a(24); - l = a(27); - g = a(22); - m = a(33); - k = a(23); - r = a(45); - u = a(2); - n = a(93); - q = a(61); - a = a(37); - oa(b, n.Bi); - w = b; - w = f.__decorate([d.N(), f.__param(0, d.j(h.Pe)), f.__param(1, d.j(l.lf)), f.__param(2, d.j(g.Ee)), f.__param(3, d.j(m.hg)), f.__param(4, d.j(k.Oe)), f.__param(5, d.j(r.Di)), f.__param(6, d.j(a.Rg))], w); - c.aFa = w; - }, function(f, c, a) { - var d, h, l, g, m, k, r, u, n, q, w; - - function b(a, b, c, d, g, f, h) { - return n.Bi.call(this, a, b, c, d, g, f, h, u.v.HU, q.gg.start, 3) || this; - } - Object.defineProperty(c, "__esModule", { - value: !0 - }); - f = a(1); - d = a(0); - h = a(24); - l = a(27); - g = a(22); - m = a(33); - k = a(23); - r = a(45); - u = a(2); - n = a(93); - q = a(61); - a = a(37); - oa(b, n.Bi); - w = b; - w = f.__decorate([d.N(), f.__param(0, d.j(h.Pe)), f.__param(1, d.j(l.lf)), f.__param(2, d.j(g.Ee)), f.__param(3, d.j(m.hg)), f.__param(4, d.j(k.Oe)), f.__param(5, d.j(r.Di)), f.__param(6, d.j(a.Rg))], w); - c.$Ea = w; - }, function(f, c, a) { - var d, h, l; + }, function(g, d, a) { + var c; - function b(a, b) { - this.kf = a; - this.Ep = b; + function b() { + return new c(0); } - Object.defineProperty(c, "__esModule", { - value: !0 - }); - f = a(1); - d = a(0); - h = a(26); - a = a(62); - b.prototype.rbb = function(a) { - var b, c; - b = this; - c = a.map(function(a) { - return a.links.releaseLicense.href; - }).map(function(a) { - return b.kf.KP(a.substring(a.indexOf("?") + 1)); - }); - return { - K: !0, - Ob: a.map(function(a, b) { - return { - id: a.sessionId, - kt: c[b].drmlicensecontextid, - tA: c[b].licenseid - }; - }), - eo: a.map(function(a) { - return { - data: b.Ep.decode(a.licenseResponseBase64), - sessionId: a.sessionId - }; - }) - }; + a(11); + c = a(43).No; + g.M = { + STARTING: b, + BUFFERING: b, + REBUFFERING: b, + PLAYING: b, + PAUSED: b }; - b.prototype.ybb = function(a) { - return { - K: !0, - response: { - data: a.reduce(function(a, b) { - var c; - c = b.secureStopResponseBase64; - (b = b.sessionId) && c && (a[b] = c); - return a; - }, {}) + }, function(g, d, a) { + (function() { + var D0X, k, f, p, m, l, n, q, v, y, w, Y1X; + + function d(a, b, c, d) { + var z0X; + z0X = 2; + while (z0X !== 1) { + switch (z0X) { + case 2: + return d && a > c.wy && (k.V(this.Bp) || this.aD > this.Bp || b - this.Bp > c.MS); + break; + } } - }; - }; - l = b; - l = f.__decorate([d.N(), f.__param(0, d.j(h.Re)), f.__param(1, d.j(a.fl))], l); - c.VCa = l; - }, function(f, c, a) { - var d, h, l; + } - function b(a) { - this.Na = a; - } - Object.defineProperty(c, "__esModule", { - value: !0 - }); - f = a(1); - d = a(0); - h = a(52); - l = a(7); - b.prototype.qbb = function(a) { - var b; - b = this.Na.Eg.qa(l.Zo); - return { - inputs: a.Fj.map(function(c) { - return { - sessionId: c.sessionId, - clientTime: b, - challengeBase64: c.dataBase64, - xid: a.aa.toString(), - mdxControllerEsn: a.wG - }; - }), - v0a: "standard" === a.Rf.toLowerCase() ? "license" : "ldl" - }; - }; - b.prototype.xbb = function(a) { - var b, c, d, g; - b = this; - c = a.G8a || {}; - d = []; - g = a.Ob.map(function(g) { - var f; - d.push(g.id); - f = c[g.id]; - delete c[g.id]; - return { - url: b.pga(g.kt, g.tA), - echo: "sessionId", - params: { - sessionId: g.id, - secureStop: f, - secureStopId: f ? g.tA : void 0, - xid: a.aa.toString() + function c(a, b, c, f) { + var G0X, g, h, r, n, u, q, x, w, t, f1X, P1X, c1X, v1X, q1X, F1X, t1X, H1X, M1X, C0X, k0X, U0X, J0X, l0X, K0X, b0X, A0X, R0X, T0X, y0X, L0X, N0X, V0X; + G0X = 2; + while (G0X !== 30) { + f1X = "Must have at least one"; + f1X += " s"; + f1X += "elected strea"; + f1X += "m"; + P1X = " "; + P1X += "k"; + P1X += "b"; + P1X += "p"; + P1X += "s"; + c1X = " k"; + c1X += "b"; + c1X += "p"; + c1X += "s"; + c1X += " > "; + v1X = "throug"; + v1X += "hput for "; + v1X += "au"; + v1X += "dio "; + q1X = ", s"; + q1X += "trea"; + q1X += "ming"; + q1X += "P"; + q1X += "ts = "; + F1X = ", la"; + F1X += "stU"; + F1X += "p"; + F1X += "switchP"; + F1X += "ts = "; + t1X = " Upswitch allo"; + t1X += "wed. lastDow"; + t1X += "nswitchPts = "; + H1X = " kbps, t"; + H1X += "ry to d"; + H1X += "ownswitch"; + M1X = " kbp"; + M1X += "s"; + M1X += " "; + M1X += "< "; + C0X = "t"; + C0X += "hroughpu"; + C0X += "t for au"; + C0X += "dio "; + k0X = "k"; + k0X += "bps, stream"; + k0X += "i"; + k0X += "ngPts :"; + U0X = ", audio thr"; + U0X += "oughp"; + U0X += "ut:"; + J0X = " kbps"; + J0X += ", "; + J0X += "pro"; + J0X += "file "; + J0X += ":"; + l0X = "selectAudioS"; + l0X += "trea"; + l0X += "m: selected strea"; + l0X += "m :"; + K0X = " "; + K0X += "k"; + K0X += "b"; + K0X += "p"; + K0X += "s"; + b0X = " kb"; + b0X += "ps,"; + b0X += " t"; + b0X += "o "; + A0X = "switchin"; + A0X += "g"; + A0X += " audio f"; + A0X += "rom"; + A0X += " "; + R0X = "d"; + R0X += "o"; + R0X += "w"; + R0X += "n"; + T0X = "u"; + T0X += "p"; + y0X = "m"; + y0X += "s"; + L0X = ", "; + L0X += "b"; + L0X += "u"; + L0X += "ffer level"; + L0X += " = "; + N0X = ", l"; + N0X += "astUpswi"; + N0X += "tchP"; + N0X += "ts = "; + V0X = " Upsw"; + V0X += "itch not allowed. lastDownswitchPt"; + V0X += "s = "; + switch (G0X) { + case 21: + g = u; + G0X = 34; + break; + case 35: + m && p.log(V0X + this.Bp + N0X + this.aD + L0X + t + y0X); + G0X = 34; + break; + case 15: + g = u; + G0X = 34; + break; + case 34: + x = c[g]; + g !== f && m && p.log((g > f ? T0X : R0X) + A0X + n.O + b0X + x.O + K0X); + m && p.log(l0X + x.O + J0X + h + U0X + x.pa + k0X + b.buffer.Ra); + G0X = 31; + break; + case 20: + m && p.log(C0X + x + M1X + w.ppa + "*" + u + H1X), --q; + G0X = 19; + break; + case 24: + m && p.log(t1X + this.Bp + F1X + this.aD + q1X + u.Ra); + G0X = 23; + break; + case 19: + G0X = 0 <= q ? 18 : 34; + break; + case 18: + u = r[q]; + t = c[u]; + G0X = 16; + break; + case 16: + G0X = v(t) && (0 == q || t.O * w.ppa < x) ? 15 : 27; + break; + case 26: + G0X = q < r.length - 1 && x > w.LBa * u && (m && p.log(v1X + x + c1X + w.LBa + "*" + u + P1X), u = b.buffer, t = u.rl - u.nf, n.Y && n.Y.length) ? 25 : 34; + break; + case 2: + l(!k.V(f), f1X); + g = f; + h = c[f].Me; + a.jaa.some(function(d) { + var Q0X, f, g, k, m, p, l; + Q0X = 2; + while (Q0X !== 13) { + switch (Q0X) { + case 14: + return g; + break; + case 4: + Q0X = g ? 3 : 14; + break; + case 1: + f = d.profiles; + g = f && 0 <= f.indexOf(h); + Q0X = 4; + break; + case 6: + r = c.filter(function(a) { + var W0X, b; + W0X = 2; + while (W0X !== 4) { + switch (W0X) { + case 2: + b = a.O; + return b >= m && b <= p && 0 <= f.indexOf(a.Me) && b * k / 8 < l; + break; + } + } + }).map(function(a) { + var I0X; + I0X = 2; + while (I0X !== 1) { + switch (I0X) { + case 2: + return a.ef; + break; + case 4: + return a.ef; + break; + I0X = 1; + break; + } + } + }); + Q0X = 14; + break; + case 2: + Q0X = 1; + break; + case 3: + k = (d = d.CD) && d.hT || a.hT; + m = d && d.sGb || -Infinity; + p = d && d.Uua || Infinity; + l = b.buffer.nu; + Q0X = 6; + break; + } + } + }); + G0X = 9; + break; + case 9: + G0X = r && 1 < r.length ? 8 : 34; + break; + case 27: + q--; + G0X = 19; + break; + case 12: + G0X = 0 > q ? 11 : 10; + break; + case 25: + G0X = d(t, u.Ra, w, b.ly) ? 24 : 35; + break; + case 10: + G0X = q && x < w.ppa * u ? 20 : 26; + break; + case 11: + g = 0; + G0X = 34; + break; + case 22: + G0X = (u = r[q], t = c[u], v(t) && x > w.LBa * t.O) ? 21 : 23; + break; + case 31: + return new y(g); + break; + case 23: + G0X = ++q < r.length ? 22 : 34; + break; + case 8: + n = c[f]; + u = n.O; + q = r.indexOf(f); + x = n.pa; + w = a.nYa; + G0X = 12; + break; } - }; - }); - Object.keys(c).forEach(function(d) { - g.push({ - url: b.pga(a.Ob[0].kt), - echo: "sessionId", - params: { - sessionId: d, - secureStop: c[d], - secureStopId: void 0, - xid: a.aa.toString() + } + } + + function b(a, b) { + var m0X, c; + m0X = 2; + while (m0X !== 3) { + switch (m0X) { + case 2: + c = void 0; + b.some(function(b) { + var S0X, d; + S0X = 2; + while (S0X !== 3) { + switch (S0X) { + case 8: + d = b.profiles; + S0X = 6; + break; + S0X = 5; + break; + case 5: + (d = d && 0 <= d.indexOf(a)) && (c = b.override); + return d; + break; + case 2: + d = b.profiles; + S0X = 5; + break; + } + } + }); + return c; + break; } + } + } + D0X = 2; + while (D0X !== 10) { + Y1X = "1SI"; + Y1X += "YbZrNJCp"; + Y1X += "9"; + switch (D0X) { + case 2: + k = a(11); + f = a(43); + p = f.console; + m = f.debug; + l = f.assert; + D0X = 8; + break; + case 8: + n = a(48); + q = a(13); + v = f.ny; + y = f.No; + D0X = 13; + break; + case 13: + w = a(351); + g.M = { + STARTING: function(a, c, d, f) { + var e0X, g, k, a1X, E1X, o1X; + e0X = 2; + while (e0X !== 14) { + a1X = "selectAudioS"; + a1X += "tre"; + a1X += "amStarting: overr"; + a1X += "iding config with"; + a1X += " "; + E1X = " kbps"; + E1X += ", pr"; + E1X += "of"; + E1X += "il"; + E1X += "e :"; + o1X = "sele"; + o1X += "ctAudioStr"; + o1X += "eamStarting"; + o1X += ": selected stre"; + o1X += "am :"; + switch (e0X) { + case 9: + a = w[q.Ca.name[q.Ca.Og]](g, c, d, f); + d = d[a.Fd]; + m && p.log(o1X + d.O + E1X + d.Me); + return a; + break; + case 2: + g = a; + k = d[f || 0].Me; + e0X = 4; + break; + case 4: + e0X = (k = b(k, a.jaa) || b(k, a.mYa)) ? 3 : 9; + break; + case 3: + g = { + minInitAudioBitrate: a.IJ, + minHCInitAudioBitrate: a.HJ, + maxInitAudioBitrate: a.xJ, + minRequiredAudioBuffer: a.hT + }, m && p.log(a1X + JSON.stringify(k)), n(k, g); + e0X = 9; + break; + } + } + }, + BUFFERING: c, + REBUFFERING: c, + PLAYING: c, + PAUSED: c + }; + Y1X; + D0X = 10; + break; + } + } + }()); + }, function(g, d, a) { + var c, h, k, f; + + function b(a, b, d) { + var g, m; + g = this.PZ; + b = b.buffer.Ra; + m = "forward" === a.vmb; + if (c.V(g)) return g = m ? h(d) : h(d, d.length), this.QZ = b, this.PZ = g, new f(g); + k(d[g]) || (g = h(d, g), this.QZ = b, this.PZ = g); + if (0 > g) return null; + if (b > this.QZ + a.oqb) { + a = d.map(function(a, b) { + return a.Fe && a.inRange && !a.Eh ? b : null; + }).filter(function(a) { + return null !== a; }); - }); - return g; - }; - b.prototype.pga = function(a, b) { - return "/releaseLicense?drmLicenseContextId=" + a + (b ? "&licenseId=" + b : ""); - }; - a = b; - a = f.__decorate([d.N(), f.__param(0, d.j(h.mj))], a); - c.UCa = a; - }, function(f, c, a) { - var d, h, l, g, m, k, r, u, n, q, w, t; - - function b(a, b, c, d, g, f, h) { - a = w.or.call(this, a, b, c, d, g, f, h) || this; - a.name = t.wr.kd; - return a; + if (!a.length) return null; + m ? g = (a.indexOf(g) + 1) % a.length : (g = a.indexOf(g) - 1, 0 > g && (g = a.length - 1)); + this.PZ = a[g]; + this.QZ = b; + return new f(a[g]); + } + return new f(g); } - Object.defineProperty(c, "__esModule", { - value: !0 - }); - f = a(1); - d = a(0); - h = a(24); - l = a(27); - g = a(22); - m = a(45); - k = a(23); - r = a(33); - u = a(69); - n = a(2); - q = a(37); - w = a(139); - t = a(82); - oa(b, w.or); - b.prototype.Pf = function() { - return Promise.reject(Error("Links are required with deactivate")); - }; - b.prototype.Am = function(a, b, c, d) { - var g; - g = this; - c = c.GF("deactivate").href; - return this.Pk(a, b, d, c).then(function(a) { - return g.Kk.send(a.context, a.request); - }).then(function(a) { - return a.result; - })["catch"](function(a) { - throw u.Yp(n.v.Cva, a); - }); + c = a(11); + a(13); + d = a(43); + h = d.v3; + k = d.ny; + f = d.No; + g.M = { + STARTING: b, + BUFFERING: b, + REBUFFERING: b, + PLAYING: b, + PAUSED: b }; - a = b; - a = f.__decorate([d.N(), f.__param(0, d.j(h.Pe)), f.__param(1, d.j(l.lf)), f.__param(2, d.j(g.Ee)), f.__param(3, d.j(r.hg)), f.__param(4, d.j(k.Oe)), f.__param(5, d.j(m.Di)), f.__param(6, d.j(q.Rg))], a); - c.QCa = a; - }, function(f, c) { - Object.defineProperty(c, "__esModule", { - value: !0 - }); - c.RCa = "PboDeactivateLicenseCommandSymbol"; - }, function(f, c, a) { - var d, h, l, g, m, k, r, u, n, q, w, t; + }, function(g, d, a) { + var c; - function b(a, b, c, d, g, f, h) { - a = w.or.call(this, a, b, c, d, g, f, h) || this; - a.name = t.wr.kd; - return a; - } - Object.defineProperty(c, "__esModule", { - value: !0 - }); - f = a(1); - d = a(0); - h = a(24); - l = a(27); - g = a(22); - m = a(45); - k = a(23); - r = a(33); - u = a(69); - n = a(2); - q = a(37); - w = a(139); - t = a(82); - oa(b, w.or); - b.prototype.Pf = function(a, b, c) { - var d; - d = this; - return this.Pk(a, b, c, "/bundle").then(function(a) { - return d.Kk.send(a.context, a.request); - }).then(function(a) { - a = a.result; - a.forEach(function(a) { - if (d.eG(a)) throw a.error; - }); - return a; - })["catch"](function(a) { - throw u.Yp(n.v.GU, a); + function b(a, b, d) { + a = d.map(function(a, b) { + return a.Fe && a.inRange && !a.Eh ? b : null; + }).filter(function(a) { + return null !== a; }); - }; - b.prototype.Am = function() { - return Promise.reject(Error("Links are unsupported with release")); - }; - a = b; - a = f.__decorate([d.N(), f.__param(0, d.j(h.Pe)), f.__param(1, d.j(l.lf)), f.__param(2, d.j(g.Ee)), f.__param(3, d.j(r.hg)), f.__param(4, d.j(k.Oe)), f.__param(5, d.j(m.Di)), f.__param(6, d.j(q.Rg))], a); - c.bDa = a; - }, function(f, c, a) { - var d, h, l, g, m, k, r, u, n, q, w, t; - - function b(a, b, c, d, g, f, h) { - a = w.or.call(this, a, b, c, d, g, f, h) || this; - a.name = t.wr.kd; - return a; + return a.length ? new c(a[Math.floor(Math.random() * a.length)]) : null; } - Object.defineProperty(c, "__esModule", { - value: !0 - }); - f = a(1); - d = a(0); - h = a(24); - l = a(27); - g = a(22); - m = a(45); - k = a(23); - r = a(33); - u = a(69); - n = a(2); - q = a(37); - w = a(139); - t = a(82); - oa(b, w.or); - b.prototype.Pf = function() { - return Promise.reject(Error("Links are required with acquire command")); + a(13); + c = a(43).No; + g.M = { + STARTING: b, + BUFFERING: b, + REBUFFERING: b, + PLAYING: b, + PAUSED: b }; - b.prototype.Am = function(a, b, c, d) { - var g; - g = this; - c = c.GF(d.v0a).href; - return this.Pk(a, b, d.inputs, c, "sessionId").then(function(a) { - return g.Kk.send(a.context, a.request); - }).then(function(a) { - a = a.result; - a.forEach(function(a) { - if (g.eG(a)) throw a.error; - }); - return a; - })["catch"](function(a) { - throw u.Yp(n.v.mu, a); - }); + }, function(g, d, a) { + var c, h, k, f; + + function b(a, b, d, g) { + if (c.V(g)) a = h(d); + else if (k(d[g])) a = g; + else if (a = h(d, g), 0 > a) return null; + return new f(a); + } + c = a(11); + a(13); + d = a(43); + h = d.v3; + k = d.ny; + f = d.No; + g.M = { + STARTING: b, + BUFFERING: b, + REBUFFERING: b, + PLAYING: b, + PAUSED: b }; - a = b; - a = f.__decorate([d.N(), f.__param(0, d.j(h.Pe)), f.__param(1, d.j(l.lf)), f.__param(2, d.j(g.Ee)), f.__param(3, d.j(r.hg)), f.__param(4, d.j(k.Oe)), f.__param(5, d.j(m.Di)), f.__param(6, d.j(q.Rg))], a); - c.NCa = a; - }, function(f, c, a) { - var d, h, l, g, m, k, r, u, n, q, w, t, x, y, C, F, N, T, ca, Z, O; - - function b(a, b, c, d, g, f, h, m, l) { - this.xc = a; - this.Cg = b; - this.Za = c; - this.Nm = d; - this.Kk = g; - this.iq = f; - this.platform = h; - this.config = m; - this.dh = l; - this.name = q.wr.Sa; - } - Object.defineProperty(c, "__esModule", { + }, function(g, d, a) { + var b; + Object.defineProperty(d, "__esModule", { value: !0 }); - f = a(1); - d = a(0); - h = a(27); - l = a(22); - g = a(45); - m = a(23); - k = a(7); - r = a(33); - u = a(69); - n = a(2); - q = a(82); - w = a(37); - t = a(24); - x = a(322); - y = a(3); - C = a(29); - F = a(58); - N = a(5); - T = a(108); - ca = a(64); - Z = a(109); - a(317); - O = { - fps: "fairplay" - }; - b.prototype.Pf = function(a, b, c) { - var d; - d = this; - return this.RXa(c).then(function(c) { - return d.Pk(a, b, c); - }).then(function(a) { - return d.Kk.send(a.context, a.request); - }).then(function(a) { - return a.result; - })["catch"](function(a) { - throw u.Yp(n.v.y$, a); - }); - }; - b.prototype.Am = function(a, b, c, d) { - return this.Pf(a, b, d).then(function(a) { - c.bE(a.links); - a.mt = c; - return a; - }); - }; - b.prototype.Pk = function(a, b, c) { - var d, g; - try { - d = this.zE("/" + this.name, c); - g = this.Ip(a, b, d); - return Promise.resolve({ - context: g, - request: d - }); - } catch (da) { - return Promise.reject(da); - } - }; - b.prototype.zE = function(a, b) { - return u.xE(this.iq.As(), a, this.Cg().$d, this.Nm, this.platform, b); - }; - b.prototype.Ip = function(a, b, c) { - return { - Za: this.Za, - log: a, - $g: this.name, - url: u.yE(this.xc, this.Nm, this.name), - profile: b, - ex: 3, - timeout: k.ij(59), - xQ: c.url, - headers: { - "Content-Type": "text/plain" + b = a(13); + (function() { + var s1X, c, g, k, f, p, m, l, n, q, N1X, e1X, z1X, I1X, W1X, Q1X, G1X, S1X; + s1X = 2; + while (s1X !== 18) { + N1X = "1"; + N1X += "S"; + N1X += "I"; + N1X += "YbZrNJ"; + N1X += "Cp9"; + e1X = "c"; + e1X += "h"; + e1X += "eckdefault"; + z1X = "de"; + z1X += "f"; + z1X += "a"; + z1X += "u"; + z1X += "lt"; + I1X = "de"; + I1X += "f"; + I1X += "a"; + I1X += "ul"; + I1X += "t"; + W1X = "de"; + W1X += "faul"; + W1X += "t"; + Q1X = "d"; + Q1X += "ef"; + Q1X += "ault"; + G1X = "d"; + G1X += "e"; + G1X += "fault"; + S1X = "che"; + S1X += "ckB"; + S1X += "uffering"; + switch (s1X) { + case 2: + s1X = 1; + break; + case 7: + l = [b.Ca.name[b.Ca.Og], b.Ca.name[b.Ca.Ns], b.Ca.name[b.Ca.jt], b.Ca.name[b.Ca.xf], b.Ca.name[b.Ca.Bq], S1X]; + n = { + first: a(696), + random: a(695), + optimized: a(195), + roundrobin: a(694), + selectaudio: a(351), + selectaudioadaptive: a(693), + "default": a(195), + lowest: a(692), + highest: a(691), + throughputthreshold: a(690), + checkdefault: a(689), + testscript: a(688) + }; + q = { + STARTING: G1X, + BUFFERING: Q1X, + REBUFFERING: W1X, + PLAYING: I1X, + PAUSED: z1X, + checkBuffering: e1X + }; + d.Cw = function(a, b, c, d) { + var n1X, f; + n1X = 2; + while (n1X !== 8) { + switch (n1X) { + case 2: + f = this; + this.config = c; + d && (this.Yw = d.Yw, this.jO = d.jO); + n1X = 3; + break; + case 3: + b = b || c.X$; + this.MG = l.reduce(function(a, c) { + var Z1X; + Z1X = 2; + while (Z1X !== 5) { + switch (Z1X) { + case 2: + a[c] = ((n[b] || n[q[c]])[c] || n[q[c]][c]).bind(f); + return a; + break; + } + } + }, {}); + n1X = 8; + break; + } + } + }; + s1X = 12; + break; + case 12: + d.Cw.prototype.constructor = d.Cw; + d.Cw.prototype.i$ = function(a, d, g, h, l, r, n) { + var O1X, u, q, v, x, y, w, t, z, E, D, P, A, r1X, V1X; + O1X = 2; + while (O1X !== 37) { + V1X = "Stream selector called w"; + V1X += "ith invali"; + V1X += "d player state "; + switch (O1X) { + case 42: + O1X = r1X === b.Ca.jt ? 43 : 41; + break; + case 41: + O1X = r1X === b.Ca.xf ? 23 : 40; + break; + case 2: + g = a && a.buffer; + v = a && a.state; + O1X = 4; + break; + case 43: + this.jO = b.LM.Og; + O1X = 23; + break; + case 13: + O1X = 0 < D ? 12 : 11; + break; + case 35: + return null; + break; + case 20: + v === b.Ca.Og && c.ja(t) && (v = b.Ca.Ns); + A = d.filter(function(a) { + var h1X; + h1X = 2; + while (h1X !== 1) { + switch (h1X) { + case 2: + return a && a.Fe && a.inRange && !a.Eh; + break; + } + } + }); + A.length || (A = d.filter(function(a) { + var x1X; + x1X = 2; + while (x1X !== 1) { + switch (x1X) { + case 4: + return a || a.Fe || -a.Eh; + break; + x1X = 1; + break; + case 2: + return a && a.Fe && !a.Eh; + break; + } + } + }), A.forEach(function(a) { + var p1X; + p1X = 2; + while (p1X !== 1) { + switch (p1X) { + case 2: + a.inRange = !0; + p1X = 1; + break; + case 4: + a.inRange = -4; + p1X = 2; + break; + p1X = 1; + break; + } + } + })); + E = A; + w.aL ? E = A.filter(function(a) { + var i1X; + i1X = 2; + while (i1X !== 1) { + switch (i1X) { + case 4: + return a.Al; + break; + i1X = 1; + break; + case 2: + return a.Al; + break; + } + } + }) : a.state !== b.Ca.xf && a.state !== b.Ca.Bq && (E = A.filter(function(a) { + var u1X; + u1X = 2; + while (u1X !== 1) { + switch (u1X) { + case 2: + return !a.WU; + break; + case 4: + return -a.WU; + break; + u1X = 1; + break; + } + } + })); + A = 0 < E.length ? E : A.slice(0, 1); + void 0 !== t && (z = m(A, function(a) { + var X1X; + X1X = 2; + while (X1X !== 1) { + switch (X1X) { + case 4: + return a.O >= d[t].O; + break; + X1X = 1; + break; + case 2: + return a.O > d[t].O; + break; + } + } + }), z = 0 < z ? z - 1 : 0 === z ? 0 : A.length - 1); + O1X = 26; + break; + case 23: + u = this.MG[b.Ca.name[v]].call(this, w, a, A, z, h, l); + u.vo ? (u.Nx = [], d.forEach(function(a, b) { + var d1X; + d1X = 2; + while (d1X !== 4) { + switch (d1X) { + case 2: + a === u.vo && (u.Fd = b); + a.Y$ && u.Nx.push(b); + a.Y$ = !1; + d1X = 4; + break; + } + } + }), u.Nx.length || (u.Nx = void 0)) : (l = function(a) { + var B1X; + B1X = 2; + while (B1X !== 1) { + switch (B1X) { + case 4: + return m(d, function(b) { + return b != A[a]; + }); + break; + B1X = 1; + break; + case 2: + return m(d, function(b) { + var w1X; + w1X = 2; + while (w1X !== 1) { + switch (w1X) { + case 4: + return b == A[a]; + break; + w1X = 1; + break; + case 2: + return b === A[a]; + break; + } + } + }); + break; + } + } + }, u.Fd = l(u.Fd), u.Nx && (u.Nx = u.Nx.map(l))); + O1X = 21; + break; + case 8: + c.ja(t) && a && a.state === b.Ca.Og && (t = this.Yw = void 0); + c.ja(t) && t >= d.length && (t = this.Yw = void 0); + E = g.Y; + D = E.length; + O1X = 13; + break; + case 40: + O1X = r1X === b.Ca.Bq ? 23 : 39; + break; + case 30: + a.state !== b.Ca.xf && a.state !== b.Ca.Bq ? (r = this.KB(a, l, r, n), (u.fp = r.complete) ? u.reason = r.reason : (u.fp = !1, u.qz = r.qz, u.uJ = r.uJ, u.oi = r.oi)) : u.fp = !0; + a.vl && (u.Ra = g.Ra, r = a && a.Iv, n = l.Y, u.Jn = n && !isNaN(r) && 0 <= r && r < n.length ? n.Of(r) : g.Ra, u.Gjb = l.pa || 0, u.fhb = l.Ga && l.Ga.pa && l.Ga.pa.za || 0, u.hZa = g.rl - g.nf, u.$ma = g.en, u.xxa = v, u.Zo = a && a.Zo, u.BBa = x, u.bqb = k.time.da()); + return u; + break; + case 21: + O1X = !u || null === u.Fd ? 35 : 34; + break; + case 12: + P = E[D - 1].Ya, t = m(d, function(a) { + var j1X; + j1X = 2; + while (j1X !== 1) { + switch (j1X) { + case 2: + return a.id === P; + break; + case 4: + return a.id == P; + break; + j1X = 1; + break; + } + } + }), t = 0 <= t ? t : void 0; + O1X = 11; + break; + case 25: + this.aD = this.Bp = void 0; + O1X = 24; + break; + case 4: + x = k.time.da(); + w = this.config; + t = this.Yw; + O1X = 8; + break; + case 34: + this.Yw = u.Fd; + l = d[u.Fd]; + u.reason && (l.Nk = u.reason, l.h$ = u.Vr, l.UI = u.UI, l.Dl = u.Dl, l.wk = u.wk); + c.ja(t) && l.O < d[t].O && (this.Bp = g.Ra); + O1X = 30; + break; + case 11: + c.V(t) && (t = this.Yw); + p(d, function(c) { + var g1X; + g1X = 2; + while (g1X !== 9) { + switch (g1X) { + case 1: + g1X = q !== c.Ga || q && q.qs !== a.qs || q && q.ez !== a.ez ? 5 : 4; + break; + case 2: + g1X = c.Fe && c.inRange && !c.Eh && c.Ga && c.Ga.zc ? 1 : 3; + break; + case 3: + c.pa = void 0; + g1X = 9; + break; + case 5: + q = c.Ga, q.qs = a.qs, q.ez = a.ez, a && a.$n && c.Ga && (c.Ga.$n = !0), v === b.Ca.Og && w.ZH && a.hS && w.p0 && (c.Ga.pa.za = a.hS), y = Math.floor(h(c.Ga, a.buffer)), y = 0 === y ? 1 : y; + g1X = 4; + break; + case 4: + c.pa = y; + g1X = 9; + break; + } + } + }); + O1X = 20; + break; + case 26: + r1X = a.state; + O1X = r1X === b.Ca.Og ? 25 : 44; + break; + case 39: + return f.error(V1X + b.Ca.name[a.state]), null; + break; + case 24: + this.jO = b.LM.Og; + O1X = 23; + break; + case 44: + O1X = r1X === b.Ca.Ns ? 43 : 42; + break; + } + } + }; + d.Cw.prototype.KB = function(a, b, c, d) { + var D1X; + D1X = 2; + while (D1X !== 1) { + switch (D1X) { + case 2: + return this.MG.checkBuffering.call(this, a, b, c, d, this.config); + break; + } + } + }; + s1X = 20; + break; + case 20: + d.Cw.prototype.ppb = function(a, b, d) { + var m1X; + m1X = 2; + while (m1X !== 1) { + switch (m1X) { + case 2: + c.V(b) ? this.Bp = this.aD = void 0 : b.O < d.O && (this.aD = a); + m1X = 1; + break; + } + } + }; + N1X; + s1X = 18; + break; + case 1: + c = a(11); + g = a(43); + k = a(8); + f = g.console; + p = g.nR; + m = g.uma; + s1X = 7; + break; } - }; - }; - b.prototype.RXa = function(a) { - var b, c, d, g, f, h, m, l; - b = this; - c = a.jf || {}; - d = {}; - g = a.dg; - d[g] = { - unletterboxed: this.d1(c.preferUnletterboxed) - }; - f = x.PT.Tz(); - h = O[f] || f; - m = this.config().scb ? 30 : 25; - f = y.Sz(); - l = (a.Fm ? ca.$.F8 : f.OYa(g)).concat(f.NYa()).concat(this.config().LB).concat(["BIF240", "BIF320"]).filter(Boolean); - return Promise.all([a.Fm ? Promise.resolve(void 0) : f.Yz(), a.Fm ? Promise.resolve(void 0) : f.IF()]).then(function(f) { - var k, p; - k = Na(f); - f = k.next().value; - p = k.next().value; - k = p && void 0 !== p.SUPPORTS_SECURE_STOP ? !!p.SUPPORTS_SECURE_STOP : void 0; - p = p ? p.DEVICE_SECURITY_LEVEL : void 0; - return { - type: a.Fm ? "offline" : "standard", - viewableId: g, - profiles: profiles, - flavor: F.tc.oha(a.eja), - drmType: h, - drmVersion: m, - usePsshBox: !0, - isBranching: a.$s, - useHttpsStreams: !0, - imageSubtitleHeight: b.CXa(), - uiVersion: b.Nm.xx, - clientVersion: b.platform.version, - supportsPreReleasePin: b.config().Dg.qab, - supportsWatermark: b.config().Dg.rab, - showAllSubDubTracks: b.config().Dg.g$a || b.d1(c.showAllSubDubTracks), - packageId: a.oo ? Number(a.oo) : void 0, - deviceSupportsSecureStop: k, - deviceSecurityLevel: p, - videoOutputInfo: f, - titleSpecificData: d, - preferAssistiveAudio: b.d1(c.assistiveAudioPreferred), - preferredTextLocale: c.preferredTextLocale, - preferredAudioLocale: c.preferredAudioLocale, - oxid: a.n3 ? a.n3.toString() : void 0, - dxid: a.ZTa ? a.ZTa.toString() : void 0, - downloadQuality: a.Qmb, - isNonMember: b.Nm.Rj - }; - }); - }; - b.prototype.CXa = function() { - var a; - a = N.dm && N.dm.height; - return T.nn.ye(a) ? 1080 <= a ? 1080 : 720 : 720; - }; - b.prototype.d1 = function(a) { - return T.nn.Xg(a) ? "true" === a.toLowerCase() : !!a; - }; - a = b; - a = f.__decorate([d.N(), f.__param(0, d.j(h.lf)), f.__param(1, d.j(l.Ee)), f.__param(2, d.j(r.hg)), f.__param(3, d.j(m.Oe)), f.__param(4, d.j(g.Di)), f.__param(5, d.j(w.Rg)), f.__param(6, d.j(t.Pe)), f.__param(7, d.j(C.Ef)), f.__param(8, d.j(Z.CS))], a); - c.YCa = a; - }, function(f, c, a) { - var d, h, l, g, m, k, r, u, n, q, w; + } + }()); + }, function(g, d, a) { + var l, n, q, v, t, w, D, z; - function b(a, b, c, d, g, f) { - this.platform = a; - this.xc = b; - this.Cg = c; - this.Za = d; - this.config = g; - this.Kk = f; - this.name = w.wr.r1a; - } - Object.defineProperty(c, "__esModule", { - value: !0 - }); - f = a(1); - d = a(0); - h = a(24); - l = a(27); - g = a(22); - m = a(45); - k = a(23); - r = a(7); - u = a(33); - n = a(69); - q = a(2); - w = a(82); - b.prototype.Pf = function(a, b, c) { - var d; - d = this; - return this.Pk(a, b, c).then(function(a) { - return d.Kk.send(a.context, a.request); - }).then(function(a) { - return a.result; - })["catch"](function(a) { - throw n.Yp(q.v.dza, a); - }); - }; - b.prototype.Am = function() { - return Promise.reject(Error("Links are unsupported with logblobs")); - }; - b.prototype.Pk = function(a, b, c) { - var d, g; - try { - d = this.zE("/" + this.name, c); - g = this.Ip(a, b, d); - return Promise.resolve({ - context: g, - request: d + function b(a) { + var c, d, f; + a = a.parent; + c = !1; + if (a && a.children) { + d = {}; + d[w.Ci] = []; + d[w.Qh] = []; + d[w.TEMPORARY] = []; + f = a.children; + f.forEach(function(a) { + a && d[a.yd].push(a); }); - } catch (N) { - return Promise.reject(N); + 0 < d[w.Ci].length || (d[w.Qh].length === f.length ? a.yd !== w.Qh && (a.yd = w.Qh, t.error("PERM failing :", n.jf.name[a.Ux] + " " + a.id), c = !0) : (a.yd === w.Ci && (a.yd = w.TEMPORARY, t.error("TEMP failing :", n.jf.name[a.Ux] + " " + a.id), c = !0), d[w.TEMPORARY].forEach(function(a) { + a.yd = w.Ci; + })), c && b(a)); } - }; - b.prototype.zE = function(a, b) { - return n.xE(5, a, this.Cg().$d, this.config, this.platform, b); - }; - b.prototype.Ip = function(a, b, c) { - return { - Za: this.Za, - log: a, - $g: this.name, - url: n.yE(this.xc, this.config, this.name), - profile: b, - ex: 1, - timeout: r.ij(59), - xQ: c.url, - headers: { - "Content-Type": "text/plain" - } - }; - }; - a = b; - a = f.__decorate([d.N(), f.__param(0, d.j(h.Pe)), f.__param(1, d.j(l.lf)), f.__param(2, d.j(g.Ee)), f.__param(3, d.j(u.hg)), f.__param(4, d.j(k.Oe)), f.__param(5, d.j(m.Di))], a); - c.XCa = a; - }, function(f, c, a) { - var b, d, h, l, g, m, k, r, u, n, q, w, t, x, y, C, F, N, T, ca, Z, O, B, A, H, D, S, P; - Object.defineProperty(c, "__esModule", { - value: !0 - }); - f = a(0); - b = a(342); - d = a(583); - h = a(333); - l = a(582); - g = a(332); - m = a(581); - k = a(328); - r = a(580); - u = a(579); - n = a(578); - q = a(327); - w = a(577); - t = a(326); - x = a(576); - y = a(61); - C = a(575); - F = a(574); - N = a(48); - T = a(2); - ca = a(573); - Z = a(572); - O = a(571); - B = a(570); - A = a(569); - H = a(568); - D = a(567); - S = a(566); - P = a(565); - c.mPa = new f.dc(function(a) { - a(b.maa).to(d.XCa); - a(h.naa).to(l.YCa); - a(g.haa).to(m.NCa); - a(k.paa).to(r.bDa); - a(u.RCa).to(n.QCa); - a(H.dDa).to(D.cDa); - a(S.Kwa).to(P.Jwa); - a(q.jaa).to(w.UCa); - a(t.kaa).to(x.VCa); - a(y.tba).to(C.$Ea); - a(y.uba).to(F.aFa); - a(y.H9).to(ca.aza); - a(y.gaa).to(Z.MCa); - a(y.bba).to(O.iEa); - a(y.rba).to(B.XEa); - a(y.r8).to(A.jxa); - a(y.mJ).Yl(function(a) { - return function(b) { - switch (b) { - case y.gg.start: - return a.kc.get(y.tba); - case y.gg.stop: - return a.kc.get(y.uba); - case y.gg.MO: - return a.kc.get(y.H9); - case y.gg.pause: - return a.kc.get(y.gaa); - case y.gg.resume: - return a.kc.get(y.bba); - case y.gg.splice: - return a.kc.get(y.rba); - case y.gg.Rn: - return a.kc.get(y.r8); - } - throw new N.nb(T.v.uBa, void 0, void 0, void 0, void 0, "The event key was invalid - " + b); - }; - }); - }); - }, function(f, c, a) { - var d, h; - - function b() { - this.Bo = new h.yh(); } - Object.defineProperty(c, "__esModule", { - value: !0 - }); - f = a(1); - d = a(0); - h = a(77); - b.prototype.V3 = function(a) { - this.Bo.next(a); - }; - pa.Object.defineProperties(b.prototype, { - Ta: { - configurable: !0, - enumerable: !0, - get: function() { - return this.Bo; - } - } - }); - a = b; - a = f.__decorate([d.N()], a); - c.aDa = a; - }, function(f, c, a) { - var d, h, l; - function b(a, b) { - this.Cg = b; - this.log = a.Bb("Pbo"); - this.links = {}; + function c(a) { + var c; + for (var b = []; a; a = a.parent) switch (a.Ux) { + case n.jf.Aw: + c = a; + b.unshift(c.id + "(" + c.name + ")"); + break; + case n.jf.vea: + b.unshift(a.id); + break; + case n.jf.URL: + b.unshift(""); + } + return b.length ? "/" + b.join("/") : ""; } - Object.defineProperty(c, "__esModule", { - value: !0 - }); - f = a(1); - d = a(0); - h = a(12); - a = a(22); - b.prototype.bE = function(a) { - a && (this.links = Object.assign({}, this.links, a)); - }; - b.prototype.GF = function(a) { - return this.links[a]; - }; - b.prototype.ELa = function(a) { - var b; - b = "playbackContextId=" + a.playbackContextId + "&esn=" + this.Cg().$d; - a = "drmContextId=" + a.drmContextId; - this.bE({ - events: { - rel: "events", - href: "/events?" + b - }, - license: { - rel: "license", - href: "/license?licenseType=standard&" + b + "&" + a - }, - ldl: { - rel: "ldl", - href: "/license?licenseType=limited&" + b + "&" + a - } - }); - }; - l = b; - l = f.__decorate([d.N(), f.__param(0, d.j(h.Jb)), f.__param(1, d.j(a.Ee))], l); - c.WCa = l; - }, function(f, c, a) { - var d, h, l, g, m; - function b(a, b) { - a = h.we.call(this, a) || this; - a.config = b; - a.Hj = "PboConfigImpl"; - return a; + function h(a) { + var b; + if ((a = a.parent) && 0 < a.children.length && a.yd !== w.Ci) { + b = {}; + b[w.Ci] = []; + b[w.Qh] = []; + b[w.TEMPORARY] = []; + a.children.forEach(function(a) { + a && b[a.yd].push(a); + }); + 0 < b[w.Ci].length && (a.yd = w.Ci, h(a)); + } } - Object.defineProperty(c, "__esModule", { - value: !0 - }); - f = a(1); - d = a(0); - h = a(53); - l = a(39); - g = a(54); - a = a(29); - oa(b, h.we); - pa.Object.defineProperties(b.prototype, { - xx: { - configurable: !0, - enumerable: !0, - get: function() { - return this.config().Dg.xx || ""; - } - }, - version: { - configurable: !0, - enumerable: !0, - get: function() { - return 2; - } - }, - uoa: { - configurable: !0, - enumerable: !0, - get: function() { - return "cadmium"; - } - }, - languages: { - configurable: !0, - enumerable: !0, - get: function() { - return this.config().Dg.Sw; - } - }, - Rj: { - configurable: !0, - enumerable: !0, - get: function() { - return !1; - } - }, - oh: { - configurable: !0, - enumerable: !0, - get: function() { - return { - logblob: { - active: !0, - service: "pbo_logblobs", - serviceNonMember: "pbo_nonmember", - version: "^1.0.0" - }, - manifest: { - active: !0, - service: "pbo_manifests", - serviceNonMember: "pbo_nonmember", - version: "^1.0.0" - }, - license: { - active: !0, - service: "pbo_licenses", - serviceNonMember: "pbo_nonmember", - version: "^1.0.0" - }, - events: { - active: !0, - service: "pbo_events", - serviceNonMember: "pbo_nonmember", - version: "^1.0.0" - } - }; - } - }, - B0: { - configurable: !0, - enumerable: !0, - get: function() { - return 10; + + function k(a) { + return a.yd !== w.Ci; + } + + function f(a) { + switch (a.yd) { + case w.Ci: + return "OK"; + case w.Qh: + return "FAILED PERMANENTLY"; + case w.TEMPORARY: + return "FAILED TEMPORARILY"; + default: + return "INVALID"; + } + } + + function p(a) { + a.dba = a.Ga.zc >= n.gd.Us && !a.Ga.Vx ? a.Ga.pa.za * a.weight : 0; + } + + function m(a, b) { + if (a.yd === w.TEMPORARY || a.yd === w.Qh && b) a.yd = w.Ci; + a.children && a.children.forEach(function(a) { + a && m(a, b); + }); + } + l = a(11); + n = a(13); + d = a(58); + q = a(29); + v = a(8); + t = new v.Console("ASEJS_LOCATION_SELECTOR", "media|asejs"); + (function(a) { + a[a.Ci = 0] = "OK"; + a[a.TEMPORARY = 1] = "TEMPORARY"; + a[a.Qh = 2] = "PERMANENT"; + }(w || (w = {}))); + (function(a) { + a[a.qLa = 0] = "ORIGINAL"; + a[a.wEa = 1] = "CONTINUOUS"; + }(D || (D = {}))); + (function(a) { + a[a.mt = 0] = "STARTUP"; + a[a.kzb = 1] = "REBUFFER"; + a[a.vA = 2] = "SEEK"; + a[a.Svb = 3] = "FAILURE"; + a[a.tyb = 4] = "PERFORMANCE"; + }(z || (z = {}))); + a = function() { + var L1X; + L1X = 2; + while (L1X !== 27) { + switch (L1X) { + case 2: + a.prototype.G$a = function() { + var A1X; + A1X = 2; + while (A1X !== 1) { + switch (A1X) { + case 2: + return this.fs[0].Ga; + break; + case 4: + return this.fs[4].Ga; + break; + A1X = 1; + break; + } + } + }; + a.prototype.w4 = function() { + var b1X; + b1X = 2; + while (b1X !== 1) { + switch (b1X) { + case 2: + return this.fs; + break; + case 4: + return this.fs; + break; + b1X = 1; + break; + } + } + }; + a.prototype.Vx = function() { + var K1X; + K1X = 2; + while (K1X !== 1) { + switch (K1X) { + case 4: + return k(this.Ek); + break; + K1X = 1; + break; + case 2: + return k(this.Ek); + break; + } + } + }; + a.prototype.Oza = function(a) { + var l1X; + l1X = 2; + while (l1X !== 5) { + switch (l1X) { + case 2: + l1X = (a = this.Qc[a]) && a.parent ? 1 : 5; + break; + case 1: + return a.parent.id; + break; + } + } + }; + a.prototype.LS = function(a) { + var J1X; + J1X = 2; + while (J1X !== 5) { + switch (J1X) { + case 2: + J1X = (a = this.Qc[a]) && a.Pb ? 1 : 5; + break; + case 1: + return a.Pb.location; + break; + } + } + }; + L1X = 9; + break; + case 14: + a.prototype.Dnb = function(a, b) { + var Z2X, c, d; + Z2X = 2; + while (Z2X !== 9) { + switch (Z2X) { + case 2: + c = {}; + d = /^http(s?):\/\/([^\/:]+):?([0-9]*)/; + Z2X = 4; + break; + case 4: + l.forEach(this.Qc, function(f, g) { + var O2X, k, h, m, p, Q9W, y3W, L2X; + O2X = 2; + while (O2X !== 13) { + Q9W = "8"; + Q9W += "0"; + y3W = "4"; + y3W += "4"; + y3W += "3"; + switch (O2X) { + case 9: + H4DD.j3W(0); + L2X = H4DD.c3W(14, 15); + m = "s" === h[L2X]; + p = h[2]; + O2X = 7; + break; + case 2: + f = f.parent ? f.parent.id : ""; + k = c[f]; + h = g.match(d); + O2X = 3; + break; + case 3: + O2X = h && 4 === h.length ? 9 : 13; + break; + case 7: + h = h[3]; + h.length || (h = m ? y3W : Q9W); + l.bd(p) && l.bd(h) && p === a && h == b && (k ? k.push(g) : c[f] = [g]); + O2X = 13; + break; + } + } + }); + return c; + break; + } + } + }; + a.prototype.Ll = function(a, d, g, h) { + var r2X, j2X, m, p, l, Y9W, e9W, S9W, W9W, q9W, p9W, K9W, J9W, x9W; + r2X = 2; + while (r2X !== 25) { + Y9W = "net"; + Y9W += "work"; + Y9W += "Failed"; + e9W = "Emittin"; + e9W += "g network"; + e9W += "Failed, p"; + e9W += "ermanent ="; + S9W = "Un"; + S9W += "a"; + S9W += "ble to find failure entity for URL "; + W9W = " "; + W9W += ":"; + W9W += " wa"; + W9W += "s"; + W9W += " "; + q9W = " "; + q9W += "a"; + q9W += "t"; + q9W += " "; + p9W = " fa"; + p9W += "ilure reported"; + p9W += " for "; + K9W = "T"; + K9W += "E"; + K9W += "M"; + K9W += "P"; + J9W = "P"; + J9W += "E"; + J9W += "R"; + J9W += "M"; + x9W = "Invalid failure"; + x9W += " stat"; + x9W += "e"; + switch (r2X) { + case 8: + j2X = m.yd; + r2X = j2X === w.Qh ? 7 : 6; + break; + case 6: + r2X = j2X === w.TEMPORARY ? 14 : 16; + break; + case 27: + throw Error(x9W); + r2X = 14; + break; + case 4: + r2X = m ? 3 : 26; + break; + case 9: + t.warn((d ? J9W : K9W) + p9W + n.jf.name[a] + q9W + c(m) + W9W + f(m)); + r2X = 8; + break; + case 16: + r2X = j2X === w.Ci ? 14 : 15; + break; + case 18: + h && (this.dE = n.xe.TMa, m.Np = h); + this.dump(); + r2X = 25; + break; + case 7: + return; + break; + case 14: + m.yd = l; + b(m); + this.sT = this.sT || k(this.Ek); + a = this.Ek.yd; + r2X = 10; + break; + case 26: + H4DD.M3W(1); + t.warn(H4DD.c3W(S9W, g)); + r2X = 25; + break; + case 15: + r2X = 27; + break; + case 10: + a > p && (t.warn(e9W, a === w.Qh), this.emit(Y9W, a === w.Qh)); + this.cE = null; + this.dE = n.xe.ERROR; + r2X = 18; + break; + case 1: + r2X = m && m.parent && m.Ux !== a ? 5 : 4; + break; + case 5: + m = m.parent; + r2X = 1; + break; + case 3: + r2X = l !== m.yd ? 9 : 25; + break; + case 2: + m = a !== n.jf.vq && g ? this.Qc[g] : this.Ek, p = this.Ek.yd, l = d ? w.Qh : w.TEMPORARY; + r2X = 1; + break; + } + } + }; + L1X = 12; + break; + case 12: + a.prototype.Uya = function(a, b) { + var g2X; + g2X = 2; + while (g2X !== 3) { + switch (g2X) { + case 2: + g2X = (a = this.bn[a]) ? 1 : 5; + break; + case 8: + g2X = (a = this.bn[a]) ? 0 : 3; + break; + g2X = (a = this.bn[a]) ? 1 : 5; + break; + case 5: + this.cE = null; + this.dE = n.xe.mY; + g2X = 3; + break; + case 1: + m(a, b), h(a); + g2X = 5; + break; + } + } + }; + a.prototype.DK = function(a) { + var h2X; + h2X = 2; + while (h2X !== 1) { + switch (h2X) { + case 2: + m(this.Ek, a); + h2X = 1; + break; + case 4: + m(this.Ek, a); + h2X = 3; + break; + h2X = 1; + break; + } + } + }; + a.prototype.Py = function(a) { + var x2X, V9W; + x2X = 2; + while (x2X !== 1) { + V9W = "l"; + V9W += "og"; + V9W += "da"; + V9W += "t"; + V9W += "a"; + switch (x2X) { + case 4: + this.Ia("", a); + x2X = 9; + break; + x2X = 1; + break; + case 2: + this.Ia(V9W, a); + x2X = 1; + break; + } + } + }; + a.prototype.Sxa = function(a) { + var p2X, b; + p2X = 2; + while (p2X !== 4) { + switch (p2X) { + case 2: + b = this; + a.streams.forEach(function(a) { + var i2X, c, d, f, H9W; + i2X = 2; + while (i2X !== 13) { + H9W = "n"; + H9W += "o"; + H9W += "n"; + H9W += "e"; + H9W += "-"; + switch (i2X) { + case 4: + i2X = l.V(d) ? 3 : 7; + break; + case 3: + f = a.content_profile; + d = { + id: c, + O: a.bitrate, + oc: a.vmaf, + type: a.type, + profile: f, + clear: 0 === f.indexOf(H9W), + Fe: !0, + Qc: [], + FL: {}, + Gj: [] + }; + i2X = 8; + break; + case 2: + c = a.downloadable_id; + d = b.qc[c]; + i2X = 4; + break; + case 8: + b.qc[d.id] = d; + i2X = 7; + break; + case 7: + a.urls.forEach(function(a) { + var u2X, c, f, g; + u2X = 2; + while (u2X !== 11) { + switch (u2X) { + case 2: + c = a.url; + f = b.Qc[c]; + u2X = 4; + break; + case 8: + b.Qc[c] = f; + a.children.push(f); + d.Qc.push(f); + 0 === d.Gj.filter(function(a) { + var X2X; + X2X = 2; + while (X2X !== 1) { + switch (X2X) { + case 2: + return a.id === g.id; + break; + case 4: + return a.id == g.id; + break; + X2X = 1; + break; + } + } + }).length && d.Gj.push(g); + u2X = 13; + break; + case 4: + u2X = l.V(f) && (a = b.bn[a.cdn_id]) ? 3 : 11; + break; + case 3: + g = a.location; + f = { + id: c, + Ux: n.jf.URL, + yd: w.Ci, + Np: void 0, + parent: a, + children: [], + url: c, + Pb: a, + stream: d + }; + u2X = 8; + break; + case 13: + g.qc[d.id] = d; + (c = d.FL[g.id]) ? c.push(f): d.FL[g.id] = [f]; + u2X = 11; + break; + } + } + }); + l.Lc(d.FL, function(a) { + var d2X; + d2X = 2; + while (d2X !== 1) { + switch (d2X) { + case 2: + a.sort(function(a, b) { + var B2X; + B2X = 2; + while (B2X !== 1) { + switch (B2X) { + case 4: + return a.Pb.Qd % b.Pb.Qd; + break; + B2X = 1; + break; + case 2: + return a.Pb.Qd - b.Pb.Qd; + break; + } + } + }); + d2X = 1; + break; + } + } + }); + d.Gj = d.Gj.sort(function(a, b) { + var w2X; + w2X = 2; + while (w2X !== 1) { + switch (w2X) { + case 2: + return a.level - b.level || a.Qd - b.Qd; + break; + } + } + }); + i2X = 13; + break; + } + } + }); + p2X = 4; + break; + } + } + }; + a.prototype.Erb = function(a) { + var D2X, b, c, d, f, g, h; + D2X = 2; + while (D2X !== 27) { + switch (D2X) { + case 8: + D2X = 0 === a.length ? 7 : 6; + break; + case 13: + a.forEach(function(a) { + var S2X; + S2X = 2; + while (S2X !== 1) { + switch (S2X) { + case 2: + a.id !== b.aj.location && (a.Ga = b.D6.get(a.id)); + S2X = 1; + break; + } + } + }), this.vO = f; + D2X = 12; + break; + case 14: + D2X = null === this.vO || this.vO + c.F6 < f ? 13 : 12; + break; + case 7: + return null; + break; + case 12: + g = null; + D2X = 11; + break; + case 11: + D2X = this.oo ? 10 : 15; + break; + case 10: + a.forEach(function(a) { + var G2X; + G2X = 2; + while (G2X !== 1) { + switch (G2X) { + case 2: + a.Ga.zc >= n.gd.Ho ? (a.Qxa = a.Qxa || a.ns, a.ns = !1, a.ZP = n.gd.Ho) : (a.ns = !0, a.ZP = a.Ga.zc); + G2X = 1; + break; + } + } + }); + h = null; + D2X = 19; + break; + case 4: + a = a.buffer; + d = a.rl - a.nf; + a = this.fs.filter(function(a) { + var m2X; + m2X = 2; + while (m2X !== 1) { + switch (m2X) { + case 4: + return +k(a) || 1 != a.level; + break; + m2X = 1; + break; + case 2: + return !k(a) && 0 !== a.level; + break; + } + } + }); + D2X = 8; + break; + case 6: + f = v.time.da(); + D2X = 14; + break; + case 19: + a.every(function(a) { + var Q2X; + Q2X = 2; + while (Q2X !== 5) { + switch (Q2X) { + case 2: + l.Na(h) && (h = a.level); + return h !== a.level ? (b.oo = !1, g = n.xe.Jba, !1) : a.Ga.zc < n.gd.Ho ? !1 : a.Ga.pa.za > c.m3 ? (b.oo = !1, g = n.xe.rHa, !1) : !0; + break; + } + } + }) && (this.oo = !1, g = n.xe.Jba); + D2X = 18; + break; + case 15: + c.iC ? (g = n.xe.LJa, this.mode === D.wEa && (this.oo = d > c.paa)) : g = this.dE; + D2X = 18; + break; + case 2: + b = this; + c = this.config; + D2X = 4; + break; + case 18: + c.iC ? a.sort(function(a, c) { + var W2X; + W2X = 2; + while (W2X !== 1) { + switch (W2X) { + case 2: + return a.level - c.level || (b.oo && a.ns && !c.ns ? -1 : 0) || (b.oo && c.ns && !a.ns ? 1 : 0) || (b.oo && a.ns && c.ns ? a.Qd - c.Qd : 0) || c.ZP - a.ZP || c.dba - a.dba || a.Qd - c.Qd; + break; + } + } + }) : a.sort(function(a, b) { + var I2X; + I2X = 2; + while (I2X !== 1) { + switch (I2X) { + case 2: + return a.level - b.level || a.Qd - b.Qd; + break; + } + } + }); + this.av || l.Na(g) || (this.av = !0); + return a; + break; + } + } + }; + a.prototype.Ylb = function() { + var z2X, a; + z2X = 2; + while (z2X !== 9) { + switch (z2X) { + case 2: + a = this.aj.location; + this.av = !1; + this.oo = this.config.iC && !0; + this.fs.forEach(function(b) { + var e2X; + e2X = 2; + while (e2X !== 1) { + switch (e2X) { + case 2: + b.id !== a && b.Ga && b.Ga.zc > n.gd.Us && (b.Ga.zc = n.gd.Us); + e2X = 1; + break; + } + } + }); + z2X = 9; + break; + } + } + }; + a.prototype.Sib = function() { + var V2X, a; + V2X = 2; + while (V2X !== 4) { + switch (V2X) { + case 2: + a = this; + V2X = 5; + break; + case 5: + this.sT || this.fs.forEach(function(b) { + var N2X; + N2X = 2; + while (N2X !== 1) { + switch (N2X) { + case 2: + b.yd === w.TEMPORARY && a.D6.fail(b.id, v.time.da()); + N2X = 1; + break; + } + } + }); + V2X = 4; + break; + case 9: + a = this; + V2X = 1; + break; + V2X = 5; + break; + } + } + }; + L1X = 16; + break; + case 16: + a.prototype.dump = function() {}; + return a; + break; + case 9: + a.prototype.KAa = function(a) { + var U1X; + U1X = 2; + while (U1X !== 5) { + switch (U1X) { + case 2: + U1X = (a = this.Qc[a]) ? 1 : 5; + break; + case 1: + return a.stream; + break; + case 3: + U1X = (a = this.Qc[a]) ? 2 : 0; + break; + U1X = (a = this.Qc[a]) ? 1 : 5; + break; + } + } + }; + a.prototype.Dqa = function(a) { + var k1X, b; + k1X = 2; + while (k1X !== 3) { + switch (k1X) { + case 2: + k1X = 1; + break; + case 1: + k1X = a ? 5 : 3; + break; + case 5: + b = a.bind(this); + l.forEach(this.Qc, function(a) { + var C1X, c; + C1X = 2; + while (C1X !== 4) { + switch (C1X) { + case 2: + c = a.Pb; + b(c.location, c, a.stream, a); + C1X = 4; + break; + } + } + }); + k1X = 3; + break; + } + } + }; + a.prototype.KG = function(a) { + var M2X, b, a9W; + M2X = 2; + while (M2X !== 20) { + a9W = "m"; + a9W += "anifes"; + a9W += "tAdded"; + switch (M2X) { + case 3: + this.fs.sort(function(a, b) { + var t2X; + t2X = 2; + while (t2X !== 1) { + switch (t2X) { + case 2: + return a.level - b.level || a.Qd - b.Qd; + break; + } + } + }); + a.servers.forEach(function(a) { + var F2X, c, d, f; + F2X = 2; + while (F2X !== 14) { + switch (F2X) { + case 4: + d = b.Gj[a.key]; + F2X = 3; + break; + case 3: + F2X = d ? 9 : 14; + break; + case 7: + b.bn[a.id] = a; + d.children.push(a); + F2X = 14; + break; + case 2: + c = a.id; + F2X = 5; + break; + case 5: + F2X = !b.bn[c] ? 4 : 14; + break; + case 9: + f = []; + a = { + id: c, + Ux: n.jf.Aw, + yd: w.Ci, + Np: void 0, + parent: d, + children: f, + Qc: f, + name: a.name, + type: a.type, + Qd: a.rank, + location: d + }; + F2X = 7; + break; + } + } + }); + a.audio_tracks.forEach(function(a) { + var q2X; + q2X = 2; + while (q2X !== 1) { + switch (q2X) { + case 2: + b.Sxa(a); + q2X = 1; + break; + case 4: + b.Sxa(a); + q2X = 4; + break; + q2X = 1; + break; + } + } + }); + M2X = 7; + break; + case 14: + a.forEach(function(a) { + var o2X; + o2X = 2; + while (o2X !== 1) { + switch (o2X) { + case 2: + a.bn.sort(function(a, b) { + var E2X; + E2X = 2; + while (E2X !== 1) { + switch (E2X) { + case 2: + return a.Qd - b.Qd; + break; + case 4: + return a.Qd / b.Qd; + break; + E2X = 1; + break; + } + } + }); + o2X = 1; + break; + } + } + }); + this.fs = a; + this.Ek.children = a; + M2X = 11; + break; + case 2: + b = this; + a.locations.forEach(function(a) { + var H2X, c, d, f, g; + H2X = 2; + while (H2X !== 13) { + switch (H2X) { + case 5: + H2X = !b.Gj[c] ? 4 : 13; + break; + case 4: + d = []; + f = b.D6.get(c); + g = b.Ek; + a = { + id: c, + Ux: n.jf.vea, + yd: w.Ci, + Qd: a.rank, + level: a.level, + weight: a.weight, + Np: void 0, + parent: g, + children: d, + bn: d, + qc: {}, + ns: !1, + Qxa: !1, + Ga: f, + dba: null, + ZP: void 0 + }; + b.Gj[a.id] = a; + g.children.push(a); + p(a); + H2X = 13; + break; + case 1: + c = a.key; + H2X = 5; + break; + case 2: + H2X = 1; + break; + } + } + }); + this.vO = v.time.da(); + M2X = 3; + break; + case 7: + a.video_tracks.forEach(function(a) { + var v2X; + v2X = 2; + while (v2X !== 1) { + switch (v2X) { + case 2: + b.Sxa(a); + v2X = 1; + break; + case 4: + b.Sxa(a); + v2X = 4; + break; + v2X = 1; + break; + } + } + }); + a = this.fs.filter(function(a) { + var c2X, c; + c2X = 2; + while (c2X !== 3) { + switch (c2X) { + case 2: + c = a.bn.every(function(a) { + var P2X, y2X; + P2X = 2; + while (P2X !== 1) { + switch (P2X) { + case 4: + H4DD.M3W(2); + y2X = H4DD.c3W(18, 3, 15); + return y2X != a.Qc.length; + break; + P2X = 1; + break; + case 2: + return 0 === a.Qc.length; + break; + } + } + }); + c && (a.bn.forEach(function(a) { + var f2X; + f2X = 2; + while (f2X !== 1) { + switch (f2X) { + case 2: + b.bn[a.id] = void 0; + f2X = 1; + break; + } + } + }), b.Gj[a.id] = void 0, a.parent = void 0, a.children.length = 0, a.qc = {}); + return !c; + break; + } + } + }); + M2X = 14; + break; + case 11: + this.emit(a9W); + this.dump(); + M2X = 20; + break; + } + } + }; + a.prototype.EV = function(a, b) { + var a2X, c, d, f, g, h, m, r, u, q, s9W, d9W, L9W, h9W; + a2X = 2; + while (a2X !== 23) { + s9W = "(em"; + s9W += "pty"; + s9W += " strea"; + s9W += "m"; + s9W += " list)"; + d9W = "Di"; + d9W += "d not find a URL "; + d9W += "for ANY stream..."; + L9W = "n"; + L9W += "e"; + L9W += "twor"; + L9W += "k"; + L9W += "Failed"; + h9W = "Network has "; + h9W += "failed, not updating stream se"; + h9W += "lection"; + switch (a2X) { + case 6: + a2X = k(this.Ek) ? 14 : 13; + break; + case 16: + return this.Ll(n.jf.vq, !1), null; + break; + case 18: + this.cE = this.Erb(a); + a2X = 17; + break; + case 3: + g = this.oo; + h = a.buffer.rl - a.buffer.nf || 0; + m = 0; + v.Ln && v.Ln(); + a2X = 6; + break; + case 2: + c = this; + d = this.config; + f = this.aj.get(); + a2X = 3; + break; + case 11: + a2X = this.aj.location && f.zc >= r ? 10 : 19; + break; + case 25: + b.forEach(function(a, b) { + var Y2X, p, O9W, F9W, I9W, m9W; + Y2X = 2; + while (Y2X !== 4) { + O9W = " "; + O9W += "K"; + O9W += "bp"; + O9W += "s"; + O9W += ")"; + F9W = " "; + F9W += "("; + I9W = "]"; + I9W += " "; + m9W = "Failing stre"; + m9W += "a"; + m9W += "m ["; + switch (Y2X) { + case 2: + p = a.id; + q.some(function(b) { + var s2X, c, m; + s2X = 2; + while (s2X !== 7) { + switch (s2X) { + case 2: + c = b.qc[p]; + s2X = 5; + break; + case 5: + s2X = !c ? 4 : 3; + break; + case 3: + m = c.Gj[0]; + void 0 === a.ZT && (a.ZT = m.id, a.S8 = c.FL[m.id][0].Pb.id); + return c.FL[b.id].some(function(c) { + var n2X, p, N9W, Z9W, P9W, k9W, E9W; + n2X = 2; + while (n2X !== 11) { + N9W = "locat"; + N9W += "ionf"; + N9W += "ailove"; + N9W += "r"; + Z9W = "ser"; + Z9W += "verfa"; + Z9W += "ilover"; + P9W = "perfor"; + P9W += "manc"; + P9W += "e"; + k9W = "p"; + k9W += "ro"; + k9W += "be"; + E9W = "u"; + E9W += "nk"; + E9W += "n"; + E9W += "o"; + E9W += "wn"; + switch (n2X) { + case 1: + n2X = k(c.Pb) ? 5 : 4; + break; + case 2: + n2X = 1; + break; + case 3: + return !1; + break; + case 5: + return c.Pb.yd === w.TEMPORARY && (a.yd = w.TEMPORARY), d.no && a.Pb === c.Pb.id && c.Pb.Np && (a.Np = c.Pb.Np), !1; + break; + case 14: + a.tz = c.Pb.name; + a.Ga = d.J0 ? b.Ga.zc >= n.gd.Ho ? !d.Kxa || h < d.Jxa ? b.Ga : b.Ga.pa && b.Ga.pa.za && f.pa && f.pa.za && b.Ga.pa.za < f.pa.za ? f : b.Ga : f.zc < r ? b.Ga : f : f.zc === n.gd.HAVE_NOTHING || b.Ga.zc >= n.gd.Ho ? !d.Kxa || h < d.Jxa ? b.Ga : b.Ga.pa && b.Ga.pa.za && f.pa && f.pa.za && b.Ga.pa.za < f.pa.za ? f : b.Ga : f; + return !0; + break; + case 9: + p = E9W; + a.location !== b.id && (d.no ? a.NFb = b.id === m.id : p = b !== q[0] ? "" + n.xe.fW : void 0 === a.location ? "" + n.xe.mt : g ? k9W : l.V(a.Xta) || a.Xta === b.id ? l.V(a.Yta) || a.Yta === c.Pb.id ? P9W : Z9W : N9W, a.location = b.id, a.G6 = b.level, a.Nk = p); + a.url = c.url; + a.Pb = c.Pb.id; + n2X = 14; + break; + case 4: + n2X = k(c) ? 3 : 9; + break; + } + } + }); + break; + case 4: + return !1; + break; + } + } + }) ? (a.Eh = void 0, a.yd = void 0, a.Fe && ++m) : a.yd && a.yd === w.TEMPORARY ? c.Ek.yd = w.TEMPORARY : a.Eh || (t.warn(m9W + b + I9W + p + F9W + a.O + O9W), a.z_a(), a.Eh = !0); + Y2X = 4; + break; + } + } + }); + return k(this.Ek) ? (t.warn(h9W), this.sT = !0, this.emit(L9W, this.Ek.yd === w.Qh), null) : m ? b : (t.warn(d9W + (b.length ? "" : s9W)), this.Ll(n.jf.vq, !0), null); + break; + case 27: + a2X = !q.length ? 26 : 25; + break; + case 10: + u = this.Gj[this.aj.location]; + a2X = 20; + break; + case 20: + u && (u.Ga = f, p(u)); + a2X = 19; + break; + case 14: + return null; + break; + case 17: + a2X = !this.cE ? 16 : 15; + break; + case 13: + r = n.gd.Us; + d.OJ && (r = n.gd.Ho); + a2X = 11; + break; + case 26: + return this.Ll(n.jf.vq, !1), null; + break; + case 15: + q = this.cE; + a2X = 27; + break; + case 19: + a2X = l.Na(this.cE) || g ? 18 : 17; + break; + } + } + }; + L1X = 14; + break; } - }, - W3a: { - configurable: !0, - enumerable: !0, - get: function() { - return { - logblob: { - active: !0 - }, - manifest: { - active: !0 - }, - license: { - active: !0 - }, - events: { - active: !0 - } - }; + } + + function a(a, b, c, d, f) { + var y1X, g, D9W, u9W, r9W, U9W; + y1X = 2; + while (y1X !== 25) { + D9W = "1S"; + D9W += "IYbZ"; + D9W += "rNJC"; + D9W += "p"; + D9W += "9"; + u9W = "cl"; + u9W += "os"; + u9W += "e"; + r9W = "und"; + r9W += "erf"; + r9W += "l"; + r9W += "o"; + r9W += "w"; + U9W = "netw"; + U9W += "o"; + U9W += "rk"; + switch (y1X) { + case 2: + g = this; + this.events = a; + y1X = 4; + break; + case 14: + this.av = void 0; + this.Gj = {}; + this.bn = {}; + this.Qc = {}; + y1X = 10; + break; + case 4: + this.aj = b; + this.D6 = c; + this.oo = d; + y1X = 8; + break; + case 10: + this.qc = {}; + y1X = 20; + break; + case 8: + this.config = f; + this.oo = f.iC && d; + this.mode = D.qLa; + y1X = 14; + break; + case 20: + this.fs = []; + this.sT = !1; + this.Ek = { + id: U9W, + Ux: n.jf.vq, + yd: w.Ci, + Np: void 0, + parent: void 0, + children: this.fs + }; + y1X = 17; + break; + case 15: + y1X = a && (this.events.on(r9W, function() { + var T1X; + T1X = 2; + while (T1X !== 1) { + switch (T1X) { + case 2: + g.Ylb(); + T1X = 1; + break; + case 4: + g.Ylb(); + T1X = 2; + break; + T1X = 1; + break; + } + } + }), f.Wdb) ? 27 : 26; + break; + case 27: + this.events.on(u9W, function() { + var R1X; + R1X = 2; + while (R1X !== 1) { + switch (R1X) { + case 4: + g.Sib(); + R1X = 6; + break; + R1X = 1; + break; + case 2: + g.Sib(); + R1X = 1; + break; + } + } + }); + y1X = 26; + break; + case 17: + this.cE = this.vO = null; + this.dE = n.xe.mt; + y1X = 15; + break; + case 26: + D9W; + y1X = 25; + break; + } } } - }); - m = b; - f.__decorate([g.config(g.string, "uiVersion")], m.prototype, "xx", null); - f.__decorate([g.config(g.rI, "pboVersion")], m.prototype, "version", null); - f.__decorate([g.config(g.string, "pboOrganization")], m.prototype, "uoa", null); - f.__decorate([g.config(g.bab, "pboLanguages")], m.prototype, "languages", null); - f.__decorate([g.config(g.We, "hasLimitedPlaybackFunctionality")], m.prototype, "Rj", null); - f.__decorate([g.config(g.object(), "pboCommands")], m.prototype, "oh", null); - f.__decorate([g.config(g.rI, "pboHistorySize")], m.prototype, "B0", null); - f.__decorate([g.config(g.object(), "pboOfflineServices")], m.prototype, "W3a", null); - m = f.__decorate([d.N(), f.__param(0, d.j(l.nk)), f.__param(1, d.j(a.Ef))], m); - c.PCa = m; - }, function(f, c, a) { - var l, g, m, k, r, u, n, q, w, t, x, y; + }(); + d.Rk(q.EventEmitter, a); + g.M = a; + }, function(g, d, a) { + var k, f; - function b(a) { - this.config = a; - this.Fk = []; + function b(a, c, d) { + Object.keys(a).forEach(function(f) { + var g, h; + if (k.ne(a[f])) + if (a[f].oS) { + g = a[f]; + h = d + g.offset; + a[f] = c.slice(h, h + g.byteLength); + } else a[f] = b(a[f], c, d); + }); + return a; } - function d(a, b, c) { - this.gb = a; - this.nI = b; - this.context = c; - this.startTime = this.gb.oe(); + function c(a, b, d) { + Object.keys(a).forEach(function(f) { + var g; + if (k.oS(a[f])) { + g = a[f]; + b.push(g); + a[f] = { + oS: !0, + offset: d.Z1, + byteLength: g.byteLength + }; + d.Z1 += g.byteLength; + } else k.ne(a[f]) && c(a[f], b, d); + }); + return a; } - function h(a, c, d, g, f, h, m, l) { - this.json = d; - this.gb = g; - this.y_ = f; - this.nH = h; - this.ha = m; - this.log = a.Bb("Pbo"); - this.nI = c(); - this.Fk = new b(l); + function h() { + var a, b, c; + a = Array.prototype.concat.apply([], arguments); + b = a.reduce(function(a, b) { + return a + b.byteLength; + }, 0); + c = new Uint8Array(b); + a.reduce(function(a, b) { + c.set(new Uint8Array(b), a); + return a + b.byteLength; + }, 0); + return c.buffer; } - Object.defineProperty(c, "__esModule", { - value: !0 - }); - f = a(1); - l = a(0); - g = a(7); - m = a(2); - k = a(312); - r = a(12); - u = a(50); - n = a(38); - q = a(47); - w = a(110); - t = a(43); - x = a(69); - a = a(23); - h.prototype.send = function(a, b) { - var c; - c = new d(this.gb, this.nI, a); - this.Fk.append(c); - return this.nB(a, b, c); + k = a(109); + f = a(48); + g.M = { + k0a: function(a) { + var b, d, g; + b = f(a, {}); + a = []; + b = c(b, a, { + Z1: 0 + }); + b = JSON.stringify(b); + d = new ArrayBuffer(b.length + 4); + g = new DataView(d); + g.setUint32(0, b.length); + for (var k = 4, p = 0, l = b.length; p < l; p++) g.setUint8(k, b.charCodeAt(p)), k++; + a = [d].concat(a); + return h.apply(null, a); + }, + j0a: function(a) { + var c; + c = new DataView(a, 0, 4).getInt32(0); + for (var d = new Uint8Array(a, 4, c), f = "", g = 0; g < d.byteLength; g++) f += String.fromCharCode(d[g]); + c = 4 + c; + f = JSON.parse(f); + return b(f, a, c); + } }; - h.prototype.nB = function(a, b, c) { - var d; - d = this; - return new Promise(function(g, f) { - d.hB(a, b).then(function(a) { - var b, h; - b = Na(d.Bcb(a)); - h = b.next().value; - b = b.next().value; - h && (d.hPa(c), g(a)); - b && (d.Wga(c, b), f(b)); - })["catch"](function(a) { - var b; - b = d.Wga(c, a); - a.za && (a.za = [a.za, " ", b].join("")); - f(a); + }, function(g, d, a) { + var h; + + function b(a, b) { + return a.length > b.length ? 1 : b.length > a.length ? -1 : 0; + } + + function c(a, b) { + var d, f, g; + d = []; + if (h.ne(b)) { + f = {}; + g = {}; + g[a] = f; + d.push(g); + d = Object.keys(b).reduce(function(d, g) { + var k, m, p; + k = b[g]; + p = {}; + h.oS(k) ? (m = a + ".__embed__." + g, p[m] = k, d.push(p)) : h.ne(k) ? (m = a + ".__sub__." + g, k = c(m, k), f[g] = k[0][m], d = d.concat(k.slice(1))) : f[g] = k; + return d; + }, d); + } else g = {}, g[a] = b, d.push(g); + return d; + } + h = a(109); + g.M = { + o4a: c, + Vbb: function(a) { + var c, t; + c = Object.keys(a).map(function(a) { + return a.split("."); }); - }); - }; - h.prototype.Bcb = function(a) { - if (a.result) return [a.result, void 0]; - if (a.code) return this.log.error("Response did not contain a result or an error but did contain an error code", a), [, { - code: a.code, - detail: { - message: a.message - } - }]; - this.log.error("Response did not contain a result or an error", a); - return [, { - code: "FAIL", - detail: { - message: "Response did contain a result or an error" - } - }]; - }; - h.prototype.V4a = function(a) { - var b; - if (a) { - try { - b = this.json.parse(a); - } catch (N) { - throw { - Ow: !0, - code: "FAIL", - message: "Unable to parse the response body", - data: a - }; - } - if (b.error) throw b.error; - if (b.result) return b; - throw { - Ow: !0, - code: "FAIL", - message: "There is no result property on the response" - }; + c.sort(b); + for (var d = c[0], g = d.length, d = a[d.join(".")], k = 1; k < c.length; k++) + for (var h = !1, l = !1, n = d, q = g; q < c[k].length; q++) { + t = c[k][q]; + switch (t) { + case "__metadata__": + break; + case "__sub__": + l = !0; + break; + case "__embed__": + h = !0; + break; + default: + l ? (n = n[t], l = !1) : h && (n[t] = a[c[k].join(".")], h = !1); + } + } + return d; + }, + pcb: function(a) { + return a && (0 <= a.indexOf("__sub__") || 0 <= a.indexOf("__embed__")); } - throw { - Ow: !0, - code: "FAIL", - message: "There is no body property on the response" - }; }; - h.prototype.ZMa = function(a, b, c) { - var d; - d = this; - return this.nI.send(b, c).then(function(a) { - return { - hB: !1, - result: d.V4a(a.body) - }; - })["catch"](function(c) { - var g, f; - f = c && c.$j && void 0 !== c.$j.maxRetries ? Math.min(c.$j.maxRetries, b.ex) : b.ex; - return d.$9a(b, c, a, f) ? (g = d.yOa(c, a, f), d.log.warn("Method failed, retrying", Object.assign({ - Method: b.$g, - Attempt: a + 1, - WaitTime: g, - MaxRetries: f - }, d.tZ(c))), Promise.resolve({ - hB: !0, - Rc: g, - error: c - })) : Promise.resolve({ - hB: !1, - error: c - }); - }); + }, function(g, d, a) { + function b(a) { + return a; + } + + function c() { + return b; + } + a(11); + g.M = { + xI: c, + J4: c }; - h.prototype.hB = function(a, b, c) { - var d; - c = void 0 === c ? 0 : c; - d = this; - return this.ZMa(c++, a, b).then(function(g) { - if (g.hB) return d.FI(g.Rc).then(function() { - return d.hB(a, b, c); - }); - if (g.error) throw g.error; - if (void 0 === g.result) throw { - pboc: !1, - code: "FAIL", - message: "The response was undefined" - }; - return g.result; - }); + }, function(g, d, a) { + var b, c, h, k; + b = a(11); + c = a(109); + h = {}; + h[c.am.cw] = function(a) { + return a; }; - h.prototype.$9a = function(a, b, c, d) { - var g; - g = this.y_.C4 || this.S_a(b); - if (g && c < d) return !0; - g ? this.log.error("Method failed, retry limit exceeded, giving up", Object.assign({ - Method: a.$g, - Attempt: c + 1, - MaxRetries: d - }, this.tZ(b))) : this.log.error("Method failed with an error that is not retriable, giving up", Object.assign({ - Method: a.$g - }, this.tZ(b))); - return !1; + h[c.am.kN] = function(a) { + a = a || new ArrayBuffer(0); + return String.fromCharCode.apply(null, new Uint8Array(a)); }; - h.prototype.S_a = function(a) { + h[c.am.OBJECT] = function(a) { var b; - b = a && a.code; - a = a && (a.R || a.tb); - a = !!a && a >= m.u.sC && a <= m.u.Px; - return !(!b || "RETRY" !== b) || a; + b = a || new ArrayBuffer(0); + a = ""; + for (var b = new Uint8Array(b), c = 0; c < b.byteLength; c++) a += String.fromCharCode(b[c]); + return JSON.parse(a); }; - h.prototype.yOa = function(a, b, c) { - return a && a.$j && void 0 !== a.$j.retryAfterSeconds ? g.ij(a.$j.retryAfterSeconds) : g.Cb(this.nH.X3(1E3, 1E3 * Math.pow(2, Math.min(b - 1, c)))); + k = {}; + k[c.am.cw] = function(a) { + return a; }; - h.prototype.FI = function(a) { - var b; - b = this; - return new Promise(function(c) { - b.ha.Af(a || g.cl, c); - }); + k[c.am.kN] = function(a) { + for (var b = new ArrayBuffer(a.length), c = new Uint8Array(b), d = 0, f = a.length; d < f; d++) c[d] = a.charCodeAt(d); + return b; }; - h.prototype.tZ = function(a) { - return x.M_a(a) ? a : { - message: a.message, - subCode: a.tb, - extCode: a.Sc, - mslCode: a.sq, - data: a.data - }; + k[c.am.OBJECT] = function(a) { + return b.V(a) || b.Na(a) ? a : k[c.am.kN](JSON.stringify(a)); }; - h.prototype.hPa = function(a) { - a.jab(); + g.M = { + xI: function(a) { + return h[a] || h[c.am.cw]; + }, + J4: function(a) { + return k[a] || k[c.am.cw]; + } }; - h.prototype.Wga = function(a, b) { - var c; - a.Xv(b); - try { - c = this.json.stringify(this.Fk); - this.log.error("PBO command history", this.json.parse(c)); - return c; - } catch (T) { - return ""; + }, function(g) { + function d(a) { + if (!(this instanceof d)) return new d(a); + if ("undefined" === typeof a) this.sj = function(a, b) { + return a <= b; + }; + else { + if ("function" !== typeof a) throw Error("heap comparator must be a function"); + this.sj = a; } + this.mm = []; + } + + function a(c, d) { + var g, f, h, m, l, n, q; + g = c.mm; + f = c.sj; + h = 2 * d + 1; + m = 2 * d + 2; + l = g[d]; + n = g[h]; + q = g[m]; + n && f(n.Dd, l.Dd) && (!q || f(n.Dd, q.Dd)) ? (b(g, d, h), a(c, h)) : q && f(q.Dd, l.Dd) && (b(g, d, m), a(c, m)); + } + + function b(a, b, d) { + var c; + c = a[b]; + a[b] = a[d]; + a[d] = c; + } + d.prototype.clear = function() { + this.mm = []; }; - y = h; - y = f.__decorate([l.N(), f.__param(0, l.j(r.Jb)), f.__param(1, l.j(k.Qba)), f.__param(2, l.j(u.hr)), f.__param(3, l.j(n.eg)), f.__param(4, l.j(q.oj)), f.__param(5, l.j(w.XC)), f.__param(6, l.j(t.xh)), f.__param(7, l.j(a.Oe))], y); - c.SCa = y; - d.prototype.jab = function() { - this.K = !0; - this.elapsedTime = this.gb.oe().ie(this.startTime); + d.prototype.El = function(a, d) { + this.mm.push({ + Dd: a, + value: d + }); + a = this.mm; + d = this.sj; + for (var c = a.length - 1, f = 0 === c ? null : Math.floor((c - 1) / 2); null !== f && d(a[c].Dd, a[f].Dd);) b(a, c, f), c = f, f = 0 === c ? null : Math.floor((c - 1) / 2); }; - d.prototype.Xv = function(a) { - this.K = !1; - this.elapsedTime = this.gb.oe().ie(this.startTime); - this.dab = a.tb || a.subCode; - this.TUa = a.Sc || a.extCode; + d.prototype.remove = function() { + var c; + if (0 !== this.mm.length) { + c = this.mm[0]; + b(this.mm, 0, this.mm.length - 1); + this.mm.pop(); + a(this, 0); + return c.value; + } }; - d.prototype.toString = function() { - return JSON.stringify(this); + d.prototype.ED = function() { + if (0 !== this.mm.length) return this.mm[0].value; }; - d.prototype.toJSON = function() { - var a; - a = Object.assign({ - success: this.K, - method: this.context.$g, - profile: this.context.profile.id, - startTime: this.startTime.qa(g.Ma), - elapsedTime: this.elapsedTime ? this.elapsedTime.qa(g.Ma) : "in progress" - }, this.nI.QY()); - return this.K ? a : Object.assign({}, a, this.nI.QY(), { - subcode: this.dab, - extcode: this.TUa + d.prototype.enqueue = d.prototype.El; + d.prototype.R3a = d.prototype.remove; + d.prototype.Fz = function() { + return this.mm.map(function(a) { + return a.value; }); }; - b.prototype.append = function(a) { - this.Fk.push(a); - 0 < this.config.B0 && this.Fk.length > this.config.B0 && this.Fk.shift(); - }; - b.prototype.toJSON = function() { - return this.Fk; - }; - }, function(f, c, a) { - var b, d, h, l, g, m, k, r; - Object.defineProperty(c, "__esModule", { - value: !0 - }); - f = a(0); - b = a(45); - d = a(588); - h = a(23); - l = a(587); - g = a(104); - m = a(586); - k = a(197); - r = a(585); - c.c5a = new f.dc(function(a) { - a(h.Oe).to(l.PCa).Y(); - a(b.Di).to(d.SCa); - a(g.laa).to(m.WCa); - a(g.ey).Yl(function(a) { - return function() { - return a.kc.get(g.laa); + g.M = d; + }, function(g, d, a) { + var c, h, k, f, p, m, l, n; + + function b(a, d, g) { + var y, N; + + function r(a, b, c, d) { + a.info.call(a, function(a, f) { + var g; + if (a) d(a); + else { + try { + g = f.values[this.context].entries[b][c].size; + } catch (X) { + g = -1; + } - 1 < g ? d(null, g) : this.Eo(function(a, b) { + a ? d(a) : (b[c] && (g = b[c].size), d(null, g)); + }); + } + }.bind(a)); + } + + function u(a, c, d, f, g, k, m) { + var n; + k ? k.xj || (k.xj = {}) : k = { + xj: {} }; - }); - a(k.sU).to(r.aDa).Y(); - }); - }, function(f, c, a) { - var d, h, l, g, m; + y(f); + n = h.time.now(); + f = new l(function(b, f) { + a.create(h.storage.kA, c, d, function(a, c) { + a ? f(a) : b(c); + }); + }).then(function(d) { + d.S ? r(a, h.storage.kA, c, function(a, f) { + a ? m(a) : (N(f), y(f), k.xj[b.WL.JX] = { + S: !0, + time: g, + yh: f, + Wu: c, + aya: d, + duration: h.time.now() - n + }, k.ei = d.ei, m(null, k)); + }) : (k.xj[b.WL.JX] = { + S: !1, + Wu: c, + error: d.error + }, m(null, k)); + }, function(a) { + m(a); + }); + p.Op(f); + } - function b(a) { - a = h.we.call(this, a) || this; - a.Hj = "MseConfigImpl"; - return a; - } - Object.defineProperty(c, "__esModule", { - value: !0 - }); - f = a(1); - d = a(54); - h = a(53); - l = a(0); - g = a(39); - m = a(7); - oa(b, h.we); - pa.Object.defineProperties(b.prototype, { - Bna: { - configurable: !0, - enumerable: !0, - get: function() { - return m.Cb(5E3); - } - }, - soa: { - configurable: !0, - enumerable: !0, - get: function() { - return m.Cb(1E3); - } - }, - toa: { - configurable: !0, - enumerable: !0, - get: function() { - return m.Cb(1E3); - } + function q(a, b, c, d, f, g) { + d.El(c.time, c); + for (var k = c.time - 864E5, h = d.ED(); h && !isNaN(h.time) && h.time < k;) h = d.R3a(), y(0 - (h.Z || 0)), h = d.ED(); + d = d.Fz().map(function(a) { + return a.time + ";" + a.Z; + }); + u(a, b, Array.prototype.join.call(d, "|"), c.Z, c.time, f, g); } - }); - a = b; - f.__decorate([d.config(d.cj, "minDecoderBufferMilliseconds")], a.prototype, "Bna", null); - f.__decorate([d.config(d.cj, "optimalDecoderBufferMilliseconds")], a.prototype, "soa", null); - f.__decorate([d.config(d.cj, "optimalDecoderBufferMillisecondsBranching")], a.prototype, "toa", null); - a = f.__decorate([l.N(), f.__param(0, l.j(g.nk))], a); - c.sAa = a; - }, function(f, c, a) { - var b, d; - Object.defineProperty(c, "__esModule", { - value: !0 - }); - f = a(0); - b = a(379); - d = a(590); - c.O2a = new f.dc(function(a) { - a(b.v$).to(d.sAa).Y(); - }); - }, function(f, c, a) { - var d, h, l, g, b; - function b(a) { - function b(b, c) { - this.H = b; - this.YUa = !1; - this.emit = g.prototype.emit; - this.addListener = g.prototype.addListener; - this.on = g.prototype.on; - this.once = g.prototype.once; - this.removeListener = g.prototype.removeListener; - this.removeAllListeners = g.prototype.removeAllListeners; - this.listeners = g.prototype.listeners; - this.listenerCount = g.prototype.listenerCount; - g.call(this); - this.wa = a.Bb("DownloadTrack"); - this.Nr = c.Sk; - } - b.prototype.ym = function() { - this.SL = void 0; - this.emit("destroyed"); - }; - b.prototype.toString = function() { - return "id:" + this.SL + " config: " + JSON.stringify(this.H); + function v(a, c, d, f, g, p, l, n, u) { + var v; + v = h.time.now(); + a.create(d, f, g, function(g, x) { + var t; + if (g) m.error("Failed to replace item", f, g); + else if (x.S) { + t = x.ei; + r(a, d, f, function(d, g) { + var k, m; + if (d) u(d); + else { + d = { + time: n, + Z: g || 0 + }; + k = { + ei: t, + xj: {} + }; + m = h.time.now() - v; + k.xj[b.WL.REPLACE] = { + S: !0, + time: n, + yh: g, + Wu: f, + aya: x, + duration: m + }; + p ? q(a, c, d, l, k, u) : (y(g), u(null, k)); + } + }); + } else u(k.xN.Wl(x.error || "Failed to create item")); + }); + } + + function x(a, c, d, f, g, p, l, n, u) { + var v; + v = h.time.now(); + a.append(d, f, g, function(g, x) { + var t; + if (g) m.error("Failed to save item " + f, g), u(g); + else if (x.S) { + t = x.ei; + r(a, d, f, function(d, g) { + var k, m; + if (d) u(d); + else { + d = { + time: n, + Z: g || 0 + }; + k = { + ei: t, + xj: {} + }; + m = h.time.now() - v; + k.xj[b.WL.vOa] = { + S: !0, + time: n, + yh: g, + Wu: f, + aya: x, + duration: m + }; + p ? q(a, c, d, l, k, u) : (y(g), u(null, k)); + } + }); + } else u(k.xN.Wl(x.error || "Failed to save item")); + }); + } + + function t(a, b) { + a && c.qb(a.remove) && a.Th.valid && a.remove(h.storage.kA, b.VA, function(d, f) { + if (d) m.error("Failed to delete old journal key", d); + else try { + f && (c.V(f.error) || f.error.some(function(a) { + return "NFErr_FileNotFound" === a.ODb; + })) && q(a, b.VA, { + time: 0, + Z: 0 + }, b.BG, 0, function() {}); + } catch (S) {} + }); + } + if (!a.Th.valid) return n; + this.$ia = c.V(d) || c.Na(d) ? 0 : d; + this.tZ = a; + this.LZ = this.YF = 0; + this.BG = new f(); + this.AUa = g || "default"; + this.VA = this.AUa + ".NRDCACHEJOURNALKEY"; + y = function(a) { + isNaN(a) || (this.YF += a); + return this.YF; + }.bind(this); + N = function(a) { + isNaN(a) || (this.LZ += a); + return this.LZ; + }.bind(this); + this.t4 = function() { + return this.VA; }; - b.prototype.toJSON = function() { - return "Download Track id:" + this.SL + " config: " + JSON.stringify(this.H); + this.save = function(a, b, c, d) { + var f; + f = h.time.now(); + x(this.tZ, this.VA, a, b, c, 0 <= this.$ia, this.BG, f, d); }; - b.prototype.Upa = function(a) { - var b; - b = a.connections; - this.H.connections !== b && (this.H = a, this.Nr.Ksb(b)); + this.replace = function(a, b, c, d) { + var f; + f = h.time.now(); + v(this.tZ, this.VA, a, b, c, 0 <= this.$ia, this.BG, f, d); }; - b.prototype.nA = function() { - return 1 < this.H.connections ? !0 : !1; + this.bra = function(a) { + var b, f; + b = this.YF; + a -= 864E5; + for (var c = this.BG.Fz(), d = 0; d < c.length; d++) { + f = c[d]; + f.time < a && !isNaN(f.Z) && (b -= f.Z); + } + return b; }; - pa.Object.defineProperties(b.prototype, { - Ab: { - configurable: !0, - enumerable: !0, - get: function() { - return this.SL; - } - }, - LM: { - configurable: !0, - enumerable: !0, - get: function() { - return void 0 === this.SL; - } - }, - config: { - configurable: !0, - enumerable: !0, - get: function() { - return this.H; - } - }, - Qw: { - configurable: !0, - enumerable: !0, - get: function() { - return this.wa; - } - }, - Sk: { - configurable: !0, - enumerable: !0, - get: function() { - return this.Nr; + (function(a) { + var b; + b = a.tZ; + a.YF = 0; + b.read(h.storage.kA, a.VA, 0, -1, function(c, d) { + var f, g, k, l; + f = []; + g = 0; + k = !0; + if (c) m.error("Failed to compile records", c); + else if (d.S) { + c = String.fromCharCode.apply(null, new Uint8Array(d.value)); + c = String.prototype.split.call(c, "|"); + d = c.reduce(function(a, b) { + return a + (b.length + 40); + }, 0); + y(d); + f = c.map(function(a) { + a = a.split(";"); + return { + time: Number(a[0]), + Z: Number(a[1]) + }; + }); + try { + if (!isNaN(f.reduce(function(a, b) { + return a + b.Z; + }, 0))) + for (var k = !1, p = h.time.now() - 864E5; g < f.length; g++) { + l = f[g]; + l.time < p || (a.BG.El(l.time, l), y(l.Z)); + } + } catch (ra) {} } - } - }); - this.Lx = Object.assign(b, new l.Mwa()); - } - Object.defineProperty(c, "__esModule", { - value: !0 - }); - f = a(1); - d = a(0); - h = a(12); - l = a(141); - g = a(140).EventEmitter; - b = f.__decorate([d.N(), f.__param(0, d.j(h.Jb))], b); - c.Lwa = b; - }, function(f, c, a) { - var b, d; - Object.defineProperty(c, "__esModule", { - value: !0 - }); - f = a(0); - b = a(141); - d = a(592); - c.DMa = new f.dc(function(a) { - a(b.V7).to(d.Lwa).Y(); - }); - }, function(f, c, a) { - var d, h, l, g, m; - - function b(a) { - a = h.we.call(this, a) || this; - a.Hj = "PrefetchEventsConfigImpl"; - return a; + k && t(b, a); + }); + }(this)); } - Object.defineProperty(c, "__esModule", { - value: !0 - }); - f = a(1); - d = a(0); - h = a(53); - l = a(39); - g = a(54); - m = a(7); - oa(b, h.we); - pa.Object.defineProperties(b.prototype, { - Xqa: { - configurable: !0, - enumerable: !0, - get: function() { - return !0; - } + c = a(11); + h = a(110); + k = a(197); + f = a(703); + d = a(48); + p = a(196); + m = new h.Console("DISKWRITEMANAGER", "media|asejs"); + l = h.Promise; + d({ + WL: { + vOa: "saveitem", + REPLACE: "replaceitem", + JX: "journalupdate" + } + }, b); + n = { + save: function(a, b, c, d) { + d(k.Kea); }, - K1: { - configurable: !0, - enumerable: !0, - get: function() { - return m.I2(5); - } + replace: function(a, b, c, d) { + d(k.Kea); + }, + t4: function() { + return ""; + }, + bra: function() { + return 0; } - }); - a = b; - f.__decorate([g.config(g.We, "sendPrefetchEventLogs")], a.prototype, "Xqa", null); - f.__decorate([g.config(g.cj, "logsInterval")], a.prototype, "K1", null); - a = f.__decorate([d.N(), f.__param(0, d.j(l.nk))], a); - c.JDa = a; - }, function(f, c, a) { - var d, h, l; + }; + b.prototype.constructor = b; + g.M = { + create: function(a, c, d) { + return new b(a, c, d); + }, + Wxb: n + }; + }, function(g, d, a) { + var p, m, l, n, q, v, t, w, D; - function b(a, b) { - this.Oa = b; - this.ca = a.Bb("PlayPredictionDeserializer"); + function b() {} + + function c(d, f, g, l, r) { + var n; + n = p.qb(l) ? l : b; + this.Lt = d; + this.HA = g.nu; + this.br = 0; + this.XRa = g.r6a || "NONE"; + this.Iq = p.V(r) || p.Na(r) ? 0 : r; + this.Xc = {}; + this.un = g.mGb || m.storage.kA; + this.Qo = f; + this.sB = q.create(this.Qo, g.M2a * this.Iq, this.Lt); + this.on = this.addEventListener = D.addEventListener; + this.removeEventListener = D.removeEventListener; + this.emit = this.Ia = D.Ia; + this.Kja = k(this, c.ed.REPLACE); + this.zSa = k(this, c.ed.eia); + this.fx; + this.fx = g.fCa ? a(702) : a(701); + this.Qo.query(this.un, this.Hl(""), function(a, b) { + var c; + if (a) n(a); + else { + c = this.sB.t4(); + a = Object.keys(b).filter(function(a) { + return a !== c && v.UC(a); + }).map(this.Laa.bind(this)); + this.iU(a, function(a, c) { + Object.keys(c).map(function(a) { + var d, f; + d = c[a]; + this.Xc[v.bR(a)] = d; + if (d.I9 && 1 < Object.keys(d.I9).length) { + f = 0; + Object.keys(d.I9).forEach(function(a) { + b[this.Hl(a)] && p.ja(b[this.Hl(a)].size) && (f += b[this.Hl(a)].size); + }.bind(this)); + a = v.bR(a); + this.Xc[a].size = f; + } else a = v.bR(a), b[this.Hl(a)] && (this.Xc[a].size = b[this.Hl(a)].size); + }.bind(this)); + h(this.Qo, this.un, this.Lt, function(a, b) { + this.br = b; + a ? n(a) : n(null, this); + }.bind(this)); + }.bind(this)); + } + }.bind(this)); } - Object.defineProperty(c, "__esModule", { - value: !0 - }); - f = a(1); - d = a(0); - h = a(12); - a = a(20); - b.prototype.eTa = function(a) { - var b; - b = this; - try { - return { - direction: a.direction, - o0a: a.layoutHasChanged, - q8a: a.rowInteractionIndex, - sa: a.lolomos.map(function(a) { - return b.$Sa(a); - }) + + function h(a, c, d, f) { + var g; + g = p.qb(f) ? f : b; + a.query(c, d, function(a, b) { + a ? g(a) : (a = Object.keys(b).reduce(function(a, c) { + return a + (b[c].size || 0); + }, 0), g(null, a)); + }); + } + + function k(a, b) { + return function(d, f, g, k, l) { + return function(r, n) { + var u; + if (r) f || a.Ia(c.ed.ERROR, { + itemKey: d, + error: r + }), g(r); + else { + u = { + yh: 0, + duration: 0, + items: [], + time: m.time.now() + }; + Object.keys(n.xj).map(function(b) { + var c; + c = n.xj[b]; + b = { + key: a.Laa(c.Wu), + Re: b + }; + c.S ? (u.yh += c.yh, b.AS = c.yh, p.ja(c.duration) && (u.duration += c.duration)) : b.error = c.error; + u.items.push(b); + }); + r = p.qb(k) ? k() : 0; + 0 < l && (u.WB = l - r); + h(a.Qo, a.un, a.Lt, function(c, d) { + c ? g(c) : (a.br = d, u.ei = a.HA - d, f || a.Ia(b, w.fra(u)), g(null, u)); + }); + } }; - } catch (p) { - this.ca.error("Failed to deserialize update Payload: ", { - payload: JSON.stringify(a) - }); - } - }; - b.prototype.$Sa = function(a) { - var b; - b = this; - return { - context: a.context, - list: a.list.map(function(a) { - return b.ZSa(a); - }), - requestId: a.requestId, - rowIndex: a.rowIndex, - s8a: a.rowSegment - }; - }; - b.prototype.ZSa = function(a) { - var b, c; - b = { - Qb: a.pts, - property: a.property, - dg: a.viewableId, - index: a.index - }; - c = a.preplay; - this.Oa.uf(c) && (b.XA = this.cTa(c)); - a = a.params; - this.Oa.uf(a) && (b.mb = this.Wha(a)); - return b; - }; - b.prototype.cTa = function(a) { - var b; - b = { - Qb: a.pts, - dg: a.viewableId, - Pw: a.pipelineNum, - index: a.index - }; - a = a.params; - this.Oa.uf(a) && (b.mb = this.Wha(a)); - return b; - }; - b.prototype.Wha = function(a) { - return { - Oc: a.uiLabel, - Zf: a.trackingId, - jf: a.sessionParams }; - }; - b.prototype.Xha = function(a) { - var b; - b = this; - try { - return a.map(function(a) { - return b.aTa(a); - }); - } catch (p) { - this.ca.error("Failed to deserialize uprepareList", { - prepareList: JSON.stringify(a) - }); + } + + function f(a, b) { + return 0 < b && a >= b ? !0 : !1; + } + p = a(11); + m = a(110); + l = a(197); + d = a(48); + n = new m.Console("MEDIACACHE", "media|asejs"); + q = a(704); + v = a(354); + t = a(109); + w = a(196); + D = a(29).EventEmitter; + d({ + ed: { + eia: "writeitem", + REPLACE: "replaceitem", + JX: "journalupdate", + ERROR: "mediacache-error" } + }, c); + c.prototype.getName = function() { + return this.Lt; }; - b.prototype.aTa = function(a) { - var b, c; - c = a.params; - this.Oa.uf(c) && (b = this.bTa(c)); - return { - M: a.movieId, - Vc: a.priority, - mb: b, - Oc: a.uiLabel, - utb: a.uiExpectedStartTime, - ttb: a.uiExpectedEndTime, - Kh: a.firstTimeAdded - }; + c.prototype.Laa = function(a) { + return a.slice(this.Lt.length + 1); }; - b.prototype.bTa = function(a) { - var b, c; - b = void 0; - c = a.sessionParams; - this.Oa.uf(c) && (b = this.dTa(c)); - return { - pm: this.YSa(a.authParams), - jf: b, - Zf: a.trackingId, - X: a.startPts, - Sa: a.manifest, - Qf: a.isBranching - }; + c.prototype.k4 = function() { + return Object.keys(this.Xc).filter(function(a) { + a = v.O3(this.Xc[a]); + return void 0 === a || 0 >= a.Qna(); + }.bind(this)); }; - b.prototype.YSa = function(a) { - return { - Ooa: a.pinCapableClient - }; + c.prototype.U9a = function() { + return Object.keys(this.Xc).reduce(function(a, b) { + var c; + c = this.Xc[b]; + return c && c.creationTime < a.creationTime ? { + resourceKey: b, + creationTime: c.creationTime + } : a; + }.bind(this), { + resourceKey: null, + creationTime: m.time.now() + }).VHb; }; - b.prototype.dTa = function(a) { - a.wtb = a.uiplaycontext; + c.prototype.a9a = function() { + var a; + switch (this.XRa) { + case "FIFO": + a = this.U9a(); + } return a; }; - b.prototype.c9a = function(a) { - var b, c; - try { - b = ""; - this.Oa.uf(a.cpa) && (b = JSON.stringify(this.f9a(JSON.parse(a.cpa)))); - c = ""; - this.Oa.uf(a.dpa) && (c = JSON.stringify(this.g9a(JSON.parse(a.dpa)))); - return { - dest_id: a.UM, - offset: a.offset, - predictions: a.ipa.map(this.i9a, this), - ppm_input: b, - ppm_output: c, - prepare_type: a.orb - }; - } catch (r) { - this.ca.error("Failed to serialize serializeDestinyPrepareEvent", { - prepareList: JSON.stringify(a) + c.prototype.N3a = function(a) { + var c; + c = p.qb(a) ? a : b; + this.xra(function(b) { + var d, f, g; + d = this.Xc; + f = Object.keys(d).reduce(function(a, b) { + b = d[b]; + b.resourceIndex && Object.keys(b.resourceIndex).forEach(function(b) { + a.push(b); + }); + return a; + }, []); + if ((b = b.filter(function(a) { + return !v.UC(a) && 0 > f.indexOf(a); + })) && 0 < b.length) { + g = this; + b = m.Promise.all(b.map(function(a) { + return new m.Promise(function(b, c) { + g["delete"](a, function(a) { + a ? c(a) : b(); + }); + }); + })).then(function() { + c(void 0, { + p9: !0 + }); + }, function(a) { + c(a, { + p9: !1 + }); + }); + w.Op(b); + } else a(void 0, { + p9: !1 }); - } - }; - b.prototype.i9a = function(a) { - return { - title_id: a.Zm - }; + }.bind(this)); }; - b.prototype.f9a = function(a) { - return { - direction: a.direction, - layoutHasChanged: a.o0a, - rowInteractionIndex: a.q8a, - lolomos: a.sa.map(this.e9a, this) - }; + c.prototype.Qkb = function(a, c, d) { + var f, g; + f = p.qb(c) ? c : b; + c = this.Hl(a); + g = m.time.now(); + this.Qo.read(this.un, c, 0, -1, function(b, c) { + var k; + if (b) f(b); + else if (c && c.S && c.value) { + p.qb(d) || (d = this.fx.xI(t.am.cw), v.UC(a) ? d = this.fx.xI(t.am.OBJECT) : (b = this.Xc[a], !p.V(b) && p.ja(b.resourceIndex[a]) ? (b = b.resourceIndex[a], p.V(b) && (b = t.am.cw), d = this.fx.xI(b)) : n.warn("Metadata is undefined or does not contain a resource format for key", a, ":", b))); + try { + k = d(c.value); + } catch (U) { + return f(l.uA.Wl(U.message)); + } + c = { + duration: m.time.now() - g + }; + this.Xc[a] && p.ja(this.Xc[a].size) && (c.vr = p.ja(this.Xc[a].size) ? this.Xc[a].size : 0); + f(null, k, c); + } else f(l.uA.Wl(c.error)); + }.bind(this)); }; - b.prototype.e9a = function(a) { - return { - context: a.context, - list: a.list.map(this.d9a, this), - requestId: a.requestId, - rowIndex: a.rowIndex, - rowSegment: a.s8a - }; + c.prototype.read = function(a, b, c) { + this.Qkb(a, b, c); }; - b.prototype.d9a = function(a) { - var b, c; - this.Oa.uf(a.XA) && (b = this.j9a(a.XA)); - this.Oa.uf(a.mb) && (c = this.d5(a.mb)); - return { - preplay: b, - pts: a.Qb, - viewableId: a.dg, - params: c, - property: a.property, - index: a.index - }; + c.prototype.iU = function(a, c, d) { + var f, g, k; + f = p.qb(c) ? c : b; + if ("[object Array]" !== Object.prototype.toString.call(a)) f(l.uA.Wl("item keys must be an array")); + else { + g = {}; + k = []; + a = m.Promise.all(a.map(function(a) { + return new m.Promise(function(b, c) { + var f; + d && !p.V(d[a]) && (f = this.fx.xI(d[a])); + this.read(a, function(d, f, h) { + d ? (f = {}, f[a] = d, c(f)) : (g[a] = f, k.push({ + duration: h.duration, + vr: h.vr + }), b()); + }, f); + }.bind(this)); + }.bind(this))).then(function() { + var a; + a = {}; + 0 < k.length && (a = k.reduce(function(a, b) { + p.ja(b.duration) && (a.duration += b.duration); + p.ja(b.vr) && (a.vr += b.vr); + return a; + }, { + duration: 0, + vr: 0 + })); + f(null, g, a); + }, function(a) { + f(a); + }); + w.Op(a); + } }; - b.prototype.j9a = function(a) { - var b; - this.Oa.uf(a.mb) && (b = this.d5(a.mb)); - return { - pts: a.Qb, - viewableId: a.dg, - params: b, - pipelineNum: a.Pw, - index: a.index - }; + c.prototype.write = function(a, c, d, g, k) { + var h, m, r; + d = p.qb(d) ? d : b; + h = this.Hl(a); + m = "function" === typeof k ? k() : 0; + r = t.U4(c); + r = this.fx.J4(r)(c); + r.byteLength + this.br >= this.HA ? d(l.Sz) : f(r.byteLength + m, this.Iq) ? d(l.yN) : this.sB.save(this.un, h, c, this.zSa(a, g, d, k, this.Iq), r.byteLength); }; - b.prototype.d5 = function(a) { - return { - uiLabel: a.Oc, - trackingId: a.Zf, - sessionParams: a.jf - }; + c.prototype.replace = function(a, c, d, g, k) { + var h, m, r, u; + h = p.qb(d) ? d : b; + m = this.Hl(a); + r = 0; + "function" === typeof k && (r = k()); + d = t.U4(c); + u = this.fx.J4(d)(c); + d = (this.Xc[a] || {}).size || 0; + 0 >= d && this.Xc[a] ? this.Kra([a], function(b) { + n.trace("Replacing key", a, "which exists:", !!this.Xc[a], this.Xc[a] ? this.Xc[a] : void 0, "and has size", b, "with", c, "with size", u.byteLength, "plus _used", this.br, "vs capacity", this.HA); + u.byteLength - b + this.br >= this.HA ? h(l.Sz) : f(u.byteLength - b + r, this.Iq) ? h(l.yN) : this.sB.replace(this.un, m, c, this.Kja(a, g, h, k, this.Iq), u.byteLength); + }.bind(this)) : (n.trace("Replacing key", a, "which exists:", !!this.Xc[a], this.Xc[a] ? this.Xc[a] : void 0, "and has size", d, "with", c, "with size", u.byteLength, "plus _used", this.br, "vs capacity", this.HA), u.byteLength - d + this.br >= this.HA ? h(l.Sz) : f(u.byteLength - d + r, this.Iq) ? h(l.yN) : this.sB.replace(this.un, m, c, this.Kja(a, g, h, k, this.Iq), u.byteLength)); + }; + c.prototype.Plb = function(a, d, f, g) { + var k; + k = p.qb(d) ? d : b; + "[object Object]" !== Object.prototype.toString.call(a) ? k(l.xN.Wl("items must be a map of keys to objects")) : (d = m.Promise.all(Object.keys(a).map(function(b) { + return new m.Promise(function(c) { + this.replace(b, a[b], function(a, d) { + a ? c({ + error: a, + hj: b + }) : c(d); + }, !0, g); + }.bind(this)); + }.bind(this))).then(function(a) { + var b, d, h, l; + try { + b = Number.MAX_VALUE; + d = a.reduce(function(a, c) { + c.error || (a.yh += c.yh, p.ja(c.duration) && (a.duration += c.duration), !p.V(c.ei) && c.ei < b && (b = c.ei), c.items.map(function(b) { + a.items.push({ + key: b.key, + Re: b.Re, + AS: b.AS, + heb: b.heb, + duration: b.duration + }); + }), b < Number.MAX_VALUE && (a.ei = b)); + return a; + }, { + yh: 0, + items: [], + time: m.time.now(), + duration: 0 + }); + 0 < this.Iq && (d.WB = this.Iq - g()); + h = a.filter(function(a) { + return !p.V(a.error); + }); + l = w.isa(h); + f || (l ? l.forEach(function(a) { + this.Ia(c.ed.ERROR, a); + }.bind(this)) : this.Ia(c.ed.REPLACE, w.fra(d))); + k(l, d); + } catch (S) { + k(S); + } + }.bind(this), function(a) { + f || this.Ia(c.ed.ERROR, a); + k(a); + }.bind(this)), w.Op(d)); }; - b.prototype.g9a = function(a) { - return a.map(this.h9a, this); + c.prototype["delete"] = function(a, c) { + var d; + d = p.qb(c) ? c : b; + this.Qo.remove(this.un, this.Hl(a), function(a, b) { + a ? d(a) : b && b.S ? h(this.Qo, this.un, this.Hl(""), function(a, b) { + a ? d(a) : (this.br = b, d()); + }.bind(this)) : d(l.yFa.Wl(b.error)); + }.bind(this)); }; - b.prototype.h9a = function(a) { - var b; - this.Oa.uf(a.mb) && (b = this.d5(a.mb)); - return { - movieId: a.M, - priority: a.Vc, - params: b, - uiLabel: a.Oc, - firstTimeAdded: a.Kh, - viewableId: a.dg, - pts: a.Qb - }; + c.prototype.xra = function(a) { + this.query("", function(b, c) { + b ? (n.error("Failed to get keys", b), a([])) : a(c); + }); }; - l = b; - l = f.__decorate([d.N(), f.__param(0, d.j(h.Jb)), f.__param(1, d.j(a.rd))], l); - c.hDa = l; - }, function(f, c, a) { - var h, l, g, m, k, r, u, n, q; - - function b(a, b, c, d, g, f, h, m) { - this.Yi = a; - this.uw = b; - this.ha = c; - this.Bt = g; - this.config = f; - this.G_ = h; - this.z3 = m; - this.eQ = []; - this.k1 = []; - this.J3 = {}; - this.ca = d.Bb("PrefetchEvents"); - } - - function d(a, b, c, d, g, f) { - this.Yi = a; - this.uw = b; - this.ha = c; - this.si = d; - this.config = g; - this.z3 = f; - } - Object.defineProperty(c, "__esModule", { - value: !0 - }); - f = a(1); - h = a(106); - l = a(0); - g = a(7); - m = a(65); - k = a(105); - r = a(43); - u = a(12); - n = a(313); - a = a(198); - d.prototype.create = function(a, c) { - return new b(this.Yi, this.uw, this.ha, this.si, a, this.config, c, this.z3); + c.prototype.query = function(a, c) { + var d, f; + d = p.qb(c) ? c : b; + f = this.sB.t4(); + this.Qo.query(this.un, this.Hl(a), function(a, b) { + a ? d(a) : d(null, Object.keys(b).filter(function(a) { + return a !== f; + }).map(this.Laa.bind(this))); + }.bind(this)); }; - q = d; - q = f.__decorate([l.N(), f.__param(0, l.j(m.jr)), f.__param(1, l.j(k.Tx)), f.__param(2, l.j(r.xh)), f.__param(3, l.j(u.Jb)), f.__param(4, l.j(n.Laa)), f.__param(5, l.j(a.uU))], q); - c.KDa = q; - b.prototype.iOa = function(a, b, c) { - this.Uj(h.vd.gu.Cua, a, b, void 0, c); + c.prototype.Hl = function(a) { + return this.Lt + "." + a; }; - b.prototype.kOa = function(a, b, c) { - this.Uj(h.vd.gu.Dua, a, b, void 0, c); + c.prototype.clear = function(a) { + var d; + d = p.qb(a) ? a : b; + this.xra(function(a) { + var b; + b = m.Promise.all(a.map(function(a) { + return new m.Promise(function(b) { + a && this["delete"](a, function() { + b(); + }); + }.bind(this)); + }.bind(this))).then(function() { + d(a); + }, function(a) { + this.Ia(c.ed.ERROR, a); + d([], a); + }.bind(this)); + w.Op(b); + }.bind(this)); }; - b.prototype.gOa = function(a, b, c) { - this.Uj(h.vd.gu.Bua, a, b, void 0, c); + c.prototype.Kra = function(a, c) { + var d, f; + d = p.qb(c) ? c : b; + f = (a || []).map(function(a) { + return this.Hl(a); + }.bind(this)); + this.Qo.query(this.un, this.Lt, function(b, c) { + b ? (n.error("failed to get persisted size for keyset ", a, b), d(0)) : (b = Object.keys(c).filter(function(a) { + return 0 <= f.indexOf(a); + }).reduce(function(a, b) { + return a + (c[b].size || 0); + }, 0), d(b)); + }.bind(this)); }; - b.prototype.eOa = function(a, b, c) { - this.Uj(h.vd.gu.zua, a, b, void 0, c); + c.prototype.p8a = function(a) { + return this.sB.bra(a); }; - b.prototype.CE = function(a, b, c) { - this.Uj(h.vd.gu.Aua, a, b, void 0, c); + c.prototype.constructor = c; + g.M = c; + }, function(g, d, a) { + var c, h, k, f, p; + + function b(a) { + this.Th = a; + this.context = a.context; + this.gwa = "NULLCONTEXT" === a.context ? !0 : !1; + } + c = a(11); + h = a(110); + k = new h.Console("DISKCACHE", "media|asejs"); + f = { + context: "NULLCONTEXT", + read: function(a, b, c, d, f) { + f("MediaCache is not supported"); + }, + remove: function(a, b, c) { + c("MediaCache is not supported"); + }, + create: function(a, b, c, d) { + d("MediaCache is not supported"); + }, + append: function(a, b, c, d) { + d("MediaCache is not supported"); + }, + query: function(a, b, c) { + c([]); + } }; - b.prototype.v5a = function(a) { - this.Uj(h.vd.gu.ABa, void 0, a); + b.prototype.px = function() { + var a, b, c; + a = Array.prototype.slice.call(arguments); + b = a[0]; + c = a[a.length - 1]; + a = a.slice(1, a.length - 1); + a.push(function(a) { + c(null, a); + }); + try { + if (this.gwa) throw Error("Media Cache not supported"); + b.apply(this.Th, a); + } catch (x) { + c(x); + } }; - b.prototype.x5a = function(a, b, c, d, g, f, m) { - this.bM() && (this.Uj(h.vd.gu.yEa, void 0, a), this.l1a(a, b, c, d, g, f, m), this.gja(), this.wma()); - this.O_a(a) && this.Z7a(); + b.prototype.query = function(a, b, c, d) { + try { + if (this.gwa) throw Error("Media Cache not supported"); + this.Th.query(a, b, function(a) { + c(null, a); + }, d); + } catch (v) { + c(v); + } }; - b.prototype.fTa = function(a) { - a = { - dest_id: a, - cache: this.c5(this.G_()) - }; - this.EH("destiny_start", a); + b.prototype.read = function(a, b, c, d, f) { + this.px(this.Th.read, a, b, c, d, f); }; - b.prototype.V5a = function(a) { - (a = this.z3.c9a(a)) ? this.EH("destiny_prepare", a): this.ca.error("failed to serialize prepare event"); + b.prototype.remove = function(a, b, c) { + this.px(this.Th.remove, a, b, c); }; - b.prototype.gja = function() { - 0 < this.eQ.length && this.bM() && (this.EH("destiny_events", { - dest_id: this.Bt.sl, - events: this.eQ - }), this.eQ = []); - this.GQ && (this.GQ.cancel(), this.GQ = void 0); - this.Eia(); + b.prototype.create = function(a, b, c, d) { + this.px(this.Th.create, a, b, c, d); }; - b.prototype.wma = function() { - var a; - if (this.jOa() && this.bM()) { - a = this.G_(); - this.k1 = a; - a = { - dest_id: this.Bt.sl, - offset: this.Bt.$N(), - cache: this.c5(a) - }; - this.EH("destiny_cachestate", a); - } - this.FQ && (this.FQ.cancel(), this.FQ = void 0); - this.Dia(); + b.prototype.append = function(a, b, c, d) { + this.px(this.Th.append, a, b, c, d); }; - b.prototype.update = function(a) { - var b; - b = this; - a.sa.forEach(function(a) { - a.list.forEach(function(a) { - b.J3[a.dg] = !0; - }); - }); + b.prototype.info = function(a) { + this.px(this.Th.info, a); }; - b.prototype.O_a = function(a) { - return this.J3[a]; + b.prototype.Eo = function(a) { + this.px(this.Th.Eo, a); }; - b.prototype.jOa = function() { - var a, b, c; - a = this; - b = this.G_(); - if (b.length !== this.k1.length) return !0; - c = !1; - b.forEach(function(b, d) { + b.prototype.flush = function(a) { + this.px(this.Th.flush, a); + }; + b.prototype.clear = function() { + this.Th.clear(); + }; + g.M = { + f2a: function(a) { + var d, g, m, l, n; + d = a.vDb || "NRDMEDIADISKCACHE"; + p = a.aC || 0; + 0 !== p || c.V(h.options) || c.V(h.options.aT) || (p = h.options.aT); + a = p; try { - JSON.stringify(b) !== JSON.stringify(a.k1[d]) && (c = !0); - } catch (F) { - a.ca.error("Failed to stringify cachedTitle", F); + l = h.storage.OH; + if (!l || !c.ne(l)) throw k.warn("Failed to get disk store contexts from platform"), "Platform does not support disk store"; + if (m = l[d]) k.warn("Disk store exists, returning"), g = new b(m); + else { + if (c.V(h.storage) || !c.qb(h.storage.hQ) || h.options && 0 === h.options.aT) throw k.warn("Platform doesn't support creating disk store contexts"), "Platform doesn't support creating disk store contexts"; + k.warn("Disk store context doesn't exist, creating with size " + a); + n = h.storage.hQ({ + context: d, + size: a, + encrypted: !0, + signed: !0 + }); + if (!n || !n.valid) throw "Failed to create disk store context"; + g = new b(n); + } + } catch (w) { + k.warn("Exception creating disk store context - returning NullContext (noops)", w); + g = new b(f); } - }); - return c; + return g; + }, + O8a: function() { + return p; + }, + Vub: b }; - b.prototype.Uj = function(a, b, c, d, g) { - this.bM() && (a = { - offset: this.Bt.$N(), - event_type: a, - title_id: c, - asset_type: b, - size: d, - reason: g - }, this.eQ.push(a), this.Eia(), this.Dia()); + }, function(g, d, a) { + var b, c, h, k, f; + b = a(11); + h = []; + f = !1; + g.M = { + hta: function(d, g, l) { + var m; + if (f) b.qb(l) && (c.Nm || c.iy ? setTimeout(function() { + l(c); + }, 0) : h.push(l)); + else { + f = !0; + m = a(110); + m.SI(d); + k = new m.Console("MEDIACACHE", "media|asejs"); + c = new(a(355))(g, function(a) { + a && k.warn("Failed to initialize MediaCache", a); + b.qb(l) && setTimeout(function() { + l(c); + }, 0); + h.map(function(a) { + setTimeout(function() { + a(c); + }, 0); + }); + }); + } + return c; + }, + kEb: function(d, f) { + c = new(a(355))(d, function(a, c) { + a && k.warn("Failed to initialize MediaCache", a); + b.qb(f) && setTimeout(function() { + f(c); + }, 0); + }); + } }; - b.prototype.Eia = function() { - this.GQ || (this.GQ = this.ha.Af(this.config.K1, this.gja.bind(this))); + }, function(g, d, a) { + var b, c, h, k, f; + Object.defineProperty(d, "__esModule", { + value: !0 + }); + a(14); + b = a(13); + c = a(198); + h = a(199); + k = a(74); + f = a(28); + a(8); + g = function() { + var l9W; + l9W = 2; + while (l9W !== 13) { + switch (l9W) { + case 2: + a.prototype.Nia = function(a) { + var B9W; + B9W = 2; + while (B9W !== 1) { + switch (B9W) { + case 2: + return a && c.RG(a.R, this.R) && a.H3 === this.H3 ? !0 : !1; + break; + } + } + }; + a.prototype.pRa = function() { + var i9W, a, b, c, d; + i9W = 2; + while (i9W !== 7) { + switch (i9W) { + case 4: + c = void 0 !== a.Kv ? a.Kv : this.te.dv && this.te.dv.Kv; + d = this.te.dv && this.te.dv.cp; + Array.isArray(d) && Array.isArray(a.cp) ? d = d.filter(function(b) { + var L88 = H4DD; + var g9W, G9W, X9W; + g9W = 2; + while (g9W !== 1) { + switch (g9W) { + case 4: + L88.O7C(0); + G9W = L88.A5C(4, 17, 11); + return !G9W === a.cp.indexOf(b); + break; + g9W = 1; + break; + case 2: + L88.O7C(1); + X9W = L88.A5C(11, 11); + return X9W !== a.cp.indexOf(b); + break; + } + } + }) : Array.isArray(a.cp) ? d = a.cp : Array.isArray(d) || (d = []); + return -1 !== d.indexOf(this.profile) ? { + Eqa: !!b, + Wya: !b, + H$: !b || !c + } : { + Eqa: !1, + Wya: !1, + H$: !c + }; + break; + case 2: + a = this.te.K; + b = void 0 !== a.Lv ? a.Lv : this.te.dv && this.te.dv.Lv; + i9W = 4; + break; + } + } + }; + l9W = 5; + break; + case 5: + a.prototype.Dia = function(a, b) { + var t9W, c, d, f, g, o7C, c7C; + t9W = 2; + while (t9W !== 13) { + o7C = "de"; + o7C += "f"; + o7C += "ault"; + c7C = "d"; + c7C += "e"; + c7C += "f"; + c7C += "ault"; + switch (t9W) { + case 9: + d = a.name, c = void 0 !== a[b] ? a[b] : void 0 !== a[c7C] ? a[o7C] : c; + t9W = 8; + break; + case 3: + t9W = (c = (void 0 !== a ? a : f.ZI) || 0, a = f.jta && f.jta[this.stream.profile]) ? 9 : 8; + break; + case 2: + f = this.te.K; + g = this.pRa(); + t9W = 4; + break; + case 4: + t9W = void 0 !== f.ZI && null !== f.ZI ? 3 : 14; + break; + case 14: + g.H$ = !1; + t9W = 8; + break; + case 8: + g.Xp = g.H$ ? void 0 !== c ? c : 1 : 0; + g.F9 = void 0 !== d ? d : g.Wya; + return g; + break; + } + } + }; + a.prototype.qRa = function() { + var n9W, h7C; + n9W = 2; + while (n9W !== 1) { + h7C = "o"; + h7C += "nEn"; + h7C += "try"; + switch (n9W) { + case 4: + return this.Dia(this.te.K.kta, ""); + break; + n9W = 1; + break; + case 2: + return this.Dia(this.te.K.kta, h7C); + break; + } + } + }; + a.prototype.rRa = function() { + var w9W, p7C; + w9W = 2; + while (w9W !== 1) { + p7C = "onE"; + p7C += "x"; + p7C += "it"; + switch (w9W) { + case 4: + return this.Dia(this.te.K.lta, ""); + break; + w9W = 1; + break; + case 2: + return this.Dia(this.te.K.lta, p7C); + break; + } + } + }; + a.prototype.SQa = function(a, b) { + var T9W, d, f, g, h, m, p, l, r, n, q, t; + T9W = 2; + while (T9W !== 15) { + switch (T9W) { + case 2: + f = this.te.K; + g = !0; + d = !1; + T9W = 3; + break; + case 3: + h = f.eT; + m = this.te.dv && this.te.dv.eT; + m = void 0 !== h ? h : void 0 !== m ? m : 100; + p = this.Ka; + l = p.ha; + r = this.Ah; + T9W = 13; + break; + case 13: + h = this.Ah; + n = a ? a.gK : this.HD - 2 * p.vd; + q = n - this.Kqa; + b = f.x7a || b; + a && !b && (d = c(q), t = d.Nl, h = d.Ah, d = d.cwa); + !d && (t = n - k.cc.Pva(m, l), t = new k.cc(t - this.Kqa, l), a = c(t.vd), t = a.Nl, h = a.Ah, a = a.cwa) && (--t, h = p.vd * t); + this.Ak({ + Vc: t, + Jb: k.cc.xaa(this.Qw + h, l) + }, !0); + T9W = 17; + break; + case 17: + t < (f.$fb || 1) && (g = !1); + return { + pob: g, veb: d + }; + break; + } + } + + function c(a) { + var R9W, b, c; + R9W = 2; + while (R9W !== 9) { + switch (R9W) { + case 2: + a = Math.floor(Math.min(r, a) / p.vd); + b = p.vd * a; + H4DD.O7C(2); + c = H4DD.Q5C(b, q); + return { + Nl: a, Ah: b, xEb: c, cwa: 0 < a && c < l / 1E3 + }; + break; + } + } + } + }; + a.prototype.zB = function(a, c, d, g, k) { + var C9W, h; + C9W = 2; + while (C9W !== 6) { + switch (C9W) { + case 5: + C9W = this.xh ? 4 : 3; + break; + case 3: + a = this.Lqa ? a.appendBuffer(f.Br(this.Epa), this) : this.$c && !this.Cp ? this.SRa(a, c, g, k) : this.$c && this.Cp ? this.TRa(a, d, g, k) : this.P === b.G.AUDIO && h.Wm && c && this.Nv && c.Cd >= this.Cd && this.Md - this.Nv < this.Nv - this.Kc ? !0 : a.appendBuffer(this.response, this); + this.xh = !0; + C9W = 8; + break; + case 2: + h = this.te.K; + C9W = 5; + break; + case 4: + return !1; + break; + case 8: + this.mU(); + return a; + break; + } + } + }; + a.prototype.SRa = function(a, c, d, g) { + var A9W, k, m, p, z7C, g7C; + A9W = 2; + while (A9W !== 6) { + z7C = " from"; + z7C += " ["; + z7C += " "; + g7C = "AseFragmentMediaRequ"; + g7C += "est:"; + g7C += " Fragment edit f"; + g7C += "ailed for "; + switch (A9W) { + case 8: + p && (this.$b > this.Sn || m.Xp ? (c = this.ae && this.ae.Vc, k = new h.VM(this.stream, this.response), (c = k.Bya(c, this.Hy, m.Xp, m.F9)) ? (k = a.appendBuffer(f.Br(c.ce), this), this.KO(m), this.CO(c.ce)) : (this.W.Rb(g7C + this.toString() + z7C + this.Sn + "-" + this.Hu + "]"), k = !0)) : k = a.appendBuffer(this.response, this)); + return k; + break; + case 4: + p = !0; + this.P === b.G.AUDIO && c && (d ? g && this.vpa() : this.Nia(c) ? c.ae && this.ae && this.ae.Vc !== c.ae.Vc && this.Ak({ + Vc: c.ae.Vc, + Jb: c.Md + }, !1) : (m = this.qRa(), c.Cd === this.$b && (m.Xp = 0))); + 0 >= this.duration && (p = !1, k = !0); + A9W = 8; + break; + case 2: + m = { + Xp: 0 + }; + k = !1; + A9W = 4; + break; + } + } + }; + l9W = 6; + break; + case 6: + a.prototype.TRa = function(a, c, d, g) { + var f9W, k, m, p, a7C, w7C; + f9W = 2; + while (f9W !== 6) { + a7C = " "; + a7C += "fro"; + a7C += "m "; + a7C += "[ "; + w7C = "AseFragme"; + w7C += "ntMediaRequest: Fragment edit faile"; + w7C += "d for "; + switch (f9W) { + case 4: + m = !0; + this.P === b.G.AUDIO && (d ? g && (this.O4a(), m = 0 < this.ae.Vc) : this.Nia(c) ? c.ae && 0 != c.ae.Vc ? this.Ak({ + Vc: c.ae.Vc, + Jb: c.Kc + }, !0) : m = !1 : (p = this.rRa(), k.Wm || (c = this.SQa(c, p.Eqa), (m = c.pob) && c.veb && !p.F9 && (p.Xp = 0)))); + m && 0 === this.duration && (m = !1); + m ? this.Cd < this.Hu || p.Xp ? (c = this.ae && this.ae.Vc, m = new h.VM(this.stream, this.response), (m = m.Eya(c, this.ha, p.Xp, p.F9)) ? (a = a.appendBuffer(f.Br(m.ce), this), this.KO(p), this.CO(m.ce)) : (this.W.Rb(w7C + this.toString() + a7C + this.Sn + "-" + this.Hu + "]"), a = !0)) : a = a.appendBuffer(this.response, this) : a = !0; + f9W = 7; + break; + case 7: + return a; + break; + case 2: + k = this.te.K; + p = { + Xp: 0 + }; + f9W = 4; + break; + } + } + }; + return a; + break; + } + } + + function a() { + var z9W, T7C; + z9W = 2; + while (z9W !== 1) { + T7C = "1"; + T7C += "SI"; + T7C += "YbZrN"; + T7C += "JCp"; + T7C += "9"; + switch (z9W) { + case 2: + T7C; + z9W = 1; + break; + case 4: + ""; + z9W = 4; + break; + z9W = 1; + break; + } + } + } + }(); + d["default"] = new g(); + }, function(g) { + var d, a, b, c; + d = { + name: "heaac-2-dash reset sample", + profile: 53, + jk: 2, + sampleRate: 24E3, + duration: 1024, + As: new Uint8Array([33, 17, 69, 0, 20, 80, 1, 70, 157, 188, 0, 0, 8, 28, 0, 0, 0, 14]).buffer }; - b.prototype.Dia = function() { - this.FQ || (this.FQ = this.ha.Af(this.config.K1, this.wma.bind(this))); + a = { + name: "heaac-2-dase standard sample", + profile: 53, + jk: 2, + sampleRate: 24E3, + duration: 1024, + As: new Uint8Array([33, 17, 69, 0, 20, 80, 1, 70, 240, 77, 251, 1, 60, 8, 64, 0, 0, 0, 0, 0, 0, 0, 0, 0, 7, 14, 0, 14]).buffer + }; + b = { + name: "ddplus-5.1-dash standard sample", + profile: 54, + jk: 6, + sampleRate: 48E3, + duration: 1536, + As: new Uint8Array([11, 119, 1, 127, 63, 134, 255, 225, 6, 32, 0, 32, 0, 66, 10, 65, 0, 135, 216, 68, 3, 254, 202, 2, 88, 163, 1, 16, 177, 64, 146, 32, 160, 75, 20, 80, 37, 136, 35, 227, 36, 160, 152, 156, 165, 37, 38, 41, 37, 73, 74, 9, 201, 146, 130, 114, 82, 116, 160, 152, 152, 150, 136, 58, 125, 89, 245, 39, 207, 159, 63, 116, 150, 147, 242, 73, 95, 165, 171, 175, 253, 215, 126, 82, 21, 55, 188, 8, 165, 126, 249, 242, 100, 175, 255, 249, 73, 42, 255, 253, 215, 124, 246, 156, 23, 239, 108, 36, 134, 249, 211, 228, 181, 255, 246, 253, 205, 119, 176, 179, 86, 126, 166, 27, 231, 175, 225, 58, 255, 222, 170, 110, 127, 249, 215, 41, 232, 146, 73, 183, 0, 88, 211, 192, 0, 0, 31, 7, 178, 116, 62, 122, 114, 245, 8, 233, 196, 71, 223, 196, 18, 59, 202, 113, 248, 103, 242, 80, 250, 118, 15, 1, 60, 79, 251, 46, 14, 8, 9, 37, 4, 14, 183, 67, 131, 195, 103, 241, 250, 32, 124, 81, 61, 76, 9, 40, 161, 2, 1, 16, 64, 114, 219, 225, 217, 172, 140, 44, 12, 64, 147, 49, 210, 195, 206, 12, 52, 186, 196, 0, 107, 134, 202, 4, 9, 216, 72, 67, 11, 127, 185, 13, 125, 124, 124, 194, 90, 203, 69, 1, 209, 8, 129, 183, 36, 196, 101, 7, 248, 73, 181, 38, 181, 30, 232, 124, 27, 18, 222, 207, 92, 251, 85, 227, 78, 0, 70, 196, 59, 0, 207, 194, 0, 252, 226, 209, 111, 144, 239, 111, 148, 54, 39, 28, 176, 248, 160, 58, 88, 113, 9, 76, 65, 57, 180, 96, 82, 224, 115, 52, 208, 161, 184, 86, 120, 211, 212, 168, 13, 52, 217, 124, 121, 189, 237, 163, 53, 72, 52, 157, 245, 160, 110, 16, 182, 219, 180, 152, 180, 136, 47, 23, 151, 198, 192, 20, 62, 220, 249, 107, 82, 0, 0, 0, 234, 22, 24, 202, 252, 104, 154, 198, 95, 7, 98, 110, 113, 104, 187, 197, 110, 105, 201, 123, 18, 61, 45, 233, 135, 20, 0, 151, 155, 45, 131, 75, 174, 9, 228, 53, 214, 32, 19, 131, 131, 87, 146, 156, 22, 16, 160, 0, 0, 5, 169, 31, 241, 155, 119, 242, 21, 168, 176, 225, 35, 130, 186, 60, 97, 189, 244, 57, 5, 158, 124, 200, 224, 156, 74, 33, 48, 12, 75, 235, 252, 25, 83, 61, 12, 178, 134, 75, 92, 124, 56, 71, 63, 232, 35, 142, 23, 11, 179, 154, 25, 17, 254, 160, 55, 0, 28, 144, 253, 91, 117, 102, 221, 190, 135, 231, 10, 70, 30, 23, 176, 0, 0, 1, 176, 4, 8, 133, 150, 0, 255, 79, 159, 83, 83, 77, 46, 180, 197, 95, 161, 141, 13, 44, 47, 253, 61, 176, 86, 148, 52, 201, 148, 194, 126, 246, 155, 165, 78, 181, 18, 73, 32, 28, 45, 70, 221, 101, 80, 78, 20, 6, 206, 130, 30, 219, 0, 30, 251, 237, 127, 232, 113, 255, 107, 248, 25, 147, 2, 185, 140, 224, 224, 189, 152, 101, 89, 28, 152, 47, 182, 88, 216, 198, 90, 3, 213, 0, 64, 150, 89, 96, 5, 18, 73, 32, 18, 105, 56, 170, 112, 129, 132, 77, 233, 15, 190, 8, 58, 109, 254, 217, 232, 164, 181, 91, 34, 227, 8, 27, 140, 83, 141, 186, 71, 175, 110, 91, 83, 37, 82, 15, 247, 58, 112, 134, 42, 42, 18, 3, 0, 8, 18, 196, 44, 5, 18, 73, 32, 25, 234, 135, 27, 145, 161, 76, 95, 163, 44, 124, 140, 151, 13, 189, 174, 93, 108, 80, 63, 112, 61, 88, 28, 46, 219, 213, 65, 40, 74, 243, 69, 108, 141, 37, 80, 21, 72, 191, 2, 50, 88, 122, 3, 0, 0, 10, 36, 146, 64, 54, 170, 52, 196, 80, 163, 79, 142, 148, 81, 36, 46, 131, 66, 255, 221, 26, 128, 73, 23, 103, 49, 192, 55, 30, 59, 219, 161, 166, 249, 122, 141, 88, 62, 36, 228, 107, 116, 158, 14, 252, 92, 103, 226, 0, 0, 20, 73, 36, 128, 113, 105, 27, 109, 199, 165, 26, 100, 240, 30, 8, 113, 124, 175, 175, 166, 144, 115, 74, 138, 80, 24, 32, 117, 28, 206, 194, 21, 85, 40, 218, 254, 177, 100, 37, 127, 63, 131, 208, 68, 250, 76, 169, 40, 0, 0, 0, 0, 0, 0, 0, 95, 208, 40, 5]).buffer }; - b.prototype.l1a = function(a, b, c, d, f, m, l) { - var k; - k = []; - c && k.push({ - Zm: a, - Ap: h.vd.Wh.H6, - state: h.vd.KI.SI - }); - d && k.push({ - Zm: a, - Ap: h.vd.Wh.mu, - state: h.vd.KI.SI - }); - f && k.push({ - Zm: a, - Ap: h.vd.Wh.oC, - state: h.vd.KI.SI - }); - (0 < m.qa(g.Ma) || 0 < l.qa(g.Ma)) && k.push({ - Zm: a, - Ap: h.vd.Wh.MEDIA, - state: h.vd.KI.SI, - hNa: m.qa(g.Ma), - Ncb: l.qa(g.Ma) + c = { + name: "ddplus-2.0-dash standard sample", + profile: 57, + jk: 2, + sampleRate: 48E3, + duration: 1536, + As: new Uint8Array([11, 119, 0, 191, 52, 134, 255, 224, 4, 32, 24, 132, 33, 46, 136, 15, 236, 128, 165, 150, 32, 161, 69, 16, 65, 66, 33, 0, 160, 224, 136, 32, 48, 40, 56, 176, 233, 159, 62, 203, 176, 139, 218, 213, 221, 58, 124, 249, 83, 239, 245, 26, 179, 232, 106, 97, 174, 75, 74, 149, 104, 85, 223, 38, 74, 253, 242, 95, 253, 47, 117, 10, 116, 228, 206, 145, 61, 126, 153, 83, 169, 201, 146, 214, 124, 251, 202, 125, 62, 3, 184, 113, 105, 44, 145, 91, 107, 58, 206, 87, 7, 170, 74, 27, 187, 48, 217, 65, 241, 1, 161, 157, 113, 91, 21, 163, 111, 51, 104, 115, 118, 123, 44, 77, 110, 247, 112, 43, 8, 73, 76, 172, 73, 150, 207, 95, 153, 3, 182, 105, 124, 66, 2, 0, 118, 237, 94, 135, 88, 83, 124, 41, 205, 76, 76, 109, 131, 40, 166, 169, 150, 166, 233, 51, 26, 43, 143, 131, 162, 201, 227, 35, 146, 30, 46, 75, 41, 1, 28, 21, 124, 91, 11, 74, 112, 106, 170, 137, 88, 102, 81, 122, 90, 108, 154, 41, 64, 72, 81, 74, 40, 176, 29, 246, 45, 81, 141, 178, 47, 68, 210, 113, 129, 217, 48, 217, 176, 77, 157, 147, 211, 28, 106, 174, 210, 66, 110, 190, 228, 106, 249, 236, 107, 188, 90, 91, 41, 31, 191, 71, 149, 201, 40, 136, 209, 138, 100, 91, 53, 25, 18, 245, 27, 148, 208, 18, 20, 81, 70, 24, 7, 147, 116, 48, 233, 47, 145, 81, 32, 242, 74, 51, 50, 138, 85, 186, 6, 202, 227, 8, 169, 201, 206, 77, 68, 201, 80, 186, 57, 179, 90, 232, 234, 208, 230, 109, 96, 154, 4, 249, 38, 86, 153, 185, 81, 45, 38, 146, 243, 73, 117, 105, 140, 5, 34, 48, 227, 11, 10, 32, 130, 14, 49, 4, 40, 131, 127, 229, 199, 232, 95, 78, 126, 229, 243, 175, 254, 117, 124, 233, 83, 154, 239, 93, 63, 195, 190, 120, 247, 107, 232, 10, 68, 177, 11, 22, 24, 32, 66, 4, 99, 231, 207, 159, 7, 124, 241, 174, 215, 192, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 84, 40, 187, 227]).buffer + }; + g.M = { + zAa: { + "heaac-2-dash": a, + "heaac-2hq-dash": a, + "ddplus-5.1-dash": b, + "ddplus-5.1hq-dash": b, + "ddplus-2.0-dash": c + }, + reset: { + "heaac-2-dash": d, + "heaac-2hq-dash": d + }, + "heaac-2-dash": d, + "heaac-2-dash-alt": a, + "ddplus-5.1-dash": b, + "ddplus-2.0-dash": c + }; + }, function(g, d, a) { + var b, c, h, k, f, p, m, l, n, q; + Object.defineProperty(d, "__esModule", { + value: !0 + }); + b = a(0); + a(14); + c = a(13); + g = a(8); + h = a(28); + k = a(199); + f = a(199); + p = a(200); + m = a(82); + l = a(203); + n = g.Eb; + q = h.Br; + a = function(a) { + function d(b, d, f, g, k, h) { + var p; + g = a.call(this, b, f, g, h) || this; + k = m.Tk.prototype.toString.call(g) + (k ? "(cache)" : ""); + p = { + offset: f.offset, + Z: f.N7, + responseType: 0 + }; + g.push(new l.ZL(b, d, k + "(moof)", p, g, h)); + p = { + offset: f.offset + p.Z + 8, + Z: f.Z - (p.Z + 8), + responseType: n.ec && !n.ec.XD.Bw ? 0 : 1 + }; + g.P === c.G.VIDEO && g.ae && g.ae.offset && (g.Sn !== g.U ? (p.offset = f.offset + g.ae.offset, p.Z = f.Z - g.ae.offset) : g.Hu > g.ea && (p.Z -= f.Z - g.ae.offset)); + g.push(new l.ZL(b, d, k + "(mdat)", p, g, h)); + return g; + } + b.__extends(d, a); + d.prototype.zB = function(a) { + var b, c; + if (this.xh) return !0; + if (!this.ky()) return !1; + c = !1; + if (this.Lqa) c = a.appendBuffer(q(this.Epa), this); + else if (this.$c && this.U !== this.Sn && this.ae && void 0 !== this.ae.Vc) { + b = new k.VM(this.stream, this.oa[0].response); + if (b = b.Bya(this.ae.Vc, this.ha)) c = a.appendBuffer(q(b.ce), this), this.CO(b.ce); + this.KO(); + } else if (this.$c && this.ea !== this.Hu && this.ae && void 0 !== this.ae.Vc) { + b = new k.VM(this.stream, this.oa[0].response); + if (b = b.Eya(this.ae.Vc, this.ha)) c = a.appendBuffer(q(b.ce), this), this.CO(b.ce); + this.KO(); + } else c = a.appendBuffer(this.oa[0].response, this); + c && (c = a.appendBuffer(f.yeb(this.oa[1].Z), this)) && (c = a.appendBuffer(this.oa[1].response, this)); + this.xh = c; + this.Blb(); + return c; + }; + return d; + }(p.$V); + d.kDa = a; + }, function(g, d, a) { + var b, c; + Object.defineProperty(d, "__esModule", { + value: !0 + }); + b = a(0); + g = a(58); + c = a(82); + a = function(a) { + function d(b, d, g, k, h) { + k = a.call(this, b, d, k, h) || this; + d.Z = g.byteLength; + c.Tk.call(k, b, d); + k.dx = g; + k.Ow = d.Z; + return k; + } + b.__extends(d, a); + Object.defineProperties(d.prototype, { + Bc: { + get: function() { + return !1; + }, + enumerable: !0, + configurable: !0 + } }); - a = { - dest_id: this.Bt.sl, - offset: this.Bt.$N(), - xid: b, - cache: this.c5(k) + Object.defineProperties(d.prototype, { + Zn: { + get: function() { + return !1; + }, + enumerable: !0, + configurable: !0 + } + }); + Object.defineProperties(d.prototype, { + CS: { + get: function() {}, + enumerable: !0, + configurable: !0 + } + }); + Object.defineProperties(d.prototype, { + rd: { + get: function() { + return 0; + }, + enumerable: !0, + configurable: !0 + } + }); + Object.defineProperties(d.prototype, { + status: { + get: function() { + return 0; + }, + enumerable: !0, + configurable: !0 + } + }); + Object.defineProperties(d.prototype, { + Il: { + get: function() { + return 0; + }, + enumerable: !0, + configurable: !0 + } + }); + Object.defineProperties(d.prototype, { + pk: { + get: function() {}, + enumerable: !0, + configurable: !0 + } + }); + Object.defineProperties(d.prototype, { + complete: { + get: function() { + return !0; + }, + enumerable: !0, + configurable: !0 + } + }); + Object.defineProperties(d.prototype, { + response: { + get: function() { + return this.dx; + }, + enumerable: !0, + configurable: !0 + } + }); + Object.defineProperties(d.prototype, { + Rdb: { + get: function() { + return !0; + }, + enumerable: !0, + configurable: !0 + } + }); + Object.defineProperties(d.prototype, { + Ae: { + get: function() { + return this.Ow; + }, + enumerable: !0, + configurable: !0 + } + }); + d.prototype.ky = function() { + return !0; }; - this.EH("destiny_playback", a); - }; - b.prototype.EH = function(a, b) { - this.config.Xqa && (a = this.uw.Bs(a, "info", b), this.Yi.Vl(a)); - }; - b.prototype.c5 = function(a) { - return a.map(function(a) { - return { - title_id: a.Zm, - state: a.state, - asset_type: a.Ap, - size: a.size, - audio_ms: a.hNa, - video_ms: a.Ncb + d.prototype.zB = function(a) { + return this.xh = a.appendBuffer(this.response, this); + }; + d.prototype.Vi = function() { + return -1; + }; + d.prototype.abort = function() { + return !0; + }; + d.prototype.Ld = function() {}; + d.prototype.pV = function() { + return !1; + }; + return d; + }(a(129).Wv); + d.lDa = a; + g.Rk(c.Tk, a); + }, function(g, d, a) { + var b; + Object.defineProperty(d, "__esModule", { + value: !0 + }); + b = a(0); + g = function(a) { + function c() { + return null !== a && a.apply(this, arguments) || this; + } + b.__extends(c, a); + c.prototype.parse = function() { + var a, b, c, d, g; + this.He(); + a = this.Qp([{ + Caa: "int32" + }, { + Yoa: "int32" + }, { + Mx: "int32" + }, { + xQ: "int32" + }, { + wQ: "int32" + }]); + b = a.Caa; + c = a.Yoa; + d = a.Mx; + g = a.wQ; + a = a.xQ; + this.Uc = { + Tb: b, + C3a: c, + q2: d, + r2: g, + Voa: a }; - }); - }; - b.prototype.bM = function() { - return 0 !== this.Bt.sl; - }; - b.prototype.Z7a = function() { - this.Bt.Y7a(); - this.J3 = {}; - }; - }, function(f, c, a) { - var b, d, h, l, g, m; - Object.defineProperty(c, "__esModule", { + this.Caa = b; + this.Yoa = c; + this.Mx = d; + this.xQ = a; + this.wQ = g; + this.u.hx({ + Mx: this.Mx + }); + return !0; + }; + c.nl = "trex"; + return c; + }(a(36)["default"]); + d["default"] = g; + }, function(g, d, a) { + var b, c; + Object.defineProperty(d, "__esModule", { value: !0 }); - f = a(0); - b = a(106); - d = a(596); - h = a(198); - l = a(595); - g = a(594); - m = a(313); - c.Mcb = new f.dc(function(a) { - a(m.Laa).to(g.JDa).Y(); - a(b.Maa).to(d.KDa).Y(); - a(h.uU).to(l.hDa).Y(); - }); - }, function(f, c, a) { - var d; - - function b() {} - Object.defineProperty(c, "__esModule", { + b = a(0); + c = a(36); + g = function(a) { + function d() { + return null !== a && a.apply(this, arguments) || this; + } + b.__extends(d, a); + d.prototype.parse = function() { + var a; + this.WGa = this.u.lf(); + a = this.u.Sc(); + this.JAa = !!(a & 128); + this.Tha = !!(a & 64); + this.yfa = !!(a & 32); + this.opb = a & 31; + this.P3a = this.JAa ? this.u.lf() : void 0; + this.Tha && this.u.JO(this.u.Sc()); + this.oLa = this.yfa ? this.u.lf() : void 0; + c.nq && this.u.Hb("ES_Descriptor: ES_ID=" + this.WGa + ", streamDependenceFlag=" + this.JAa + ", URL_Flag=" + this.Tha + ", OCRstreamFlag=" + this.yfa + ", streamPriority=" + this.opb + ", dependsOn_ES_ID=" + this.P3a + ", OCR_ES_Id=" + this.oLa); + this.Wka(); + return !0; + }; + d.tag = 3; + return d; + }(a(151)["default"]); + d["default"] = g; + }, function(g, d, a) { + var b, c, h; + Object.defineProperty(d, "__esModule", { value: !0 }); - f = a(1); - a = a(0); - b.prototype.vZ = function(a) { - function b(a) { - var b, c; - b = a.type; - c = a.number; - a = a.name; - return b && "object" === typeof b && "number" === typeof c ? "" + b.prefix + c : 0 > c ? "W" + (4294967295 + c + 1).toString(16).toUpperCase() : "string" === typeof a ? a.substr(0, 2).toUpperCase() : "X999"; + b = a(0); + c = a(36); + g = a(151); + h = a(357); + a = function(a) { + function d() { + return null !== a && a.apply(this, arguments) || this; } - for (var c = []; a; a = a.cause) c.push(b(a)); - return c.join("-"); - }; - b.prototype.Ema = function(a) { - var d, f; - - function b(a) { - var g, f, h, m; - if (a) { - g = d.vZ(a); - f = a.name; - h = a.message; - (m = a.stack) ? (m = m.split("\n"), m = m.slice(1, Math.min(m.length, 6)).map(c).join("\n")) : m = void 0; - return { - code: g, - name: f, - message: h, - stack: m, - debug: a.debug, - cause: b(a.cause) - }; + b.__extends(d, a); + d.prototype.jya = function() { + var a; + a = this.u.yf(4); + return 15 !== a ? [96E3, 88200, 64E3, 48E3, 44100, 32E3, 24E3, 22050, 16E3, 12E3, 11025, 8E3, 7350][a] : this.u.yf(24); + }; + d.prototype.parse = function(a) { + if (this.hcb(a) && 64 === a.vwa) { + this.mr = this.cya(); + this.Fmb = this.jya(); + this.f_a = this.u.yf(4); + this.Hmb = this.h3 = 5 === this.mr || 29 === this.mr ? 5 : -1; + this.ukb = 29 === this.mr ? 1 : -1; + 0 < this.h3 && (this.C6a = this.jya(), this.mr = this.cya(), 22 === this.mr && (this.B6a = this.u.yf(4))); + switch (this.mr) { + case 1: + case 2: + case 3: + case 4: + case 6: + case 7: + case 17: + case 19: + case 20: + case 21: + case 22: + case 23: + this.I3 = this.u.yf(1), this.q0a = (this.O3a = this.u.yf(1)) ? this.u.yf(14) : void 0, this.u.yf(1), this.rI = 3 === this.mr ? 256 : 23 === this.mr ? this.I3 ? 480 : 512 : this.I3 ? 960 : 1024; + } + c.nq && this.u.Hb("AudioSpecificConfig: audioObjectType=" + this.mr + ", samplingFrequency=" + this.Fmb + ", channelConfiguration=" + this.f_a + ", extensionAudioObjectType=" + this.h3 + ", sbrPresentFlag=" + this.Hmb + ", psPresentFlag=" + this.ukb + ", extensionSamplingFrequency=" + this.C6a + ", extensionChannelConfiguration=" + this.B6a + ", frameLengthFlag=" + this.I3 + ", coreCoderDelay=" + this.q0a + ", frameLength=" + this.rI); } - } - - function c(a) { - return a.replace(f, "$2$4$6"); - } - d = this; - f = /(\s*at )(.+\()(.+\/)(.+.js\:.+\))|(\s*at )(.+\(native code\))/; - return b(a); - }; - d = b; - d = f.__decorate([a.N()], d); - c.ywa = d; - }, function(f, c, a) { - var d, h, l, g; - - function b() {} - Object.defineProperty(c, "__esModule", { + this.skip(); + return !0; + }; + d.prototype.cya = function() { + var a; + a = this.u.yf(5); + 31 === a && (a = 32 + this.u.yf(6)); + return a; + }; + d.prototype.hcb = function(a) { + return a.tag === h["default"].tag; + }; + d.tag = 5; + return d; + }(g["default"]); + d["default"] = a; + }, function(g, d, a) { + var b, c; + Object.defineProperty(d, "__esModule", { value: !0 }); - f = a(1); - d = a(0); - h = a(5); - l = a(314); - b.prototype.rYa = function() { - var a; - a = t.devicePixelRatio || 1; - return { - width: this.mp.Nva || h.dm.width * a, - height: this.mp.Mva || h.dm.height * a - }; - }; - pa.Object.defineProperties(b.prototype, { - mp: { - configurable: !0, - enumerable: !0, - get: function() { - return a(36).Ne; - } + b = a(0); + g = a(152); + a = a(36); + c = g.ZX; + a = function(a) { + function d() { + return null !== a && a.apply(this, arguments) || this; } + b.__extends(d, a); + d.prototype.parse = function() { + this.He(); + this.Uc = this.Qp([{ + zT: "int32" + }, { + LH: "int16" + }]); + return !0; + }; + d.nl = c; + return d; + }(a["default"]); + d["default"] = a; + }, function(g, d, a) { + var b, c; + Object.defineProperty(d, "__esModule", { + value: !0 }); - g = b; - f.__decorate([l.t1], g.prototype, "mp", null); - g = f.__decorate([d.N()], g); - c.$Fa = g; - }, function(f, c, a) { - var d, h; - - function b() {} - Object.defineProperty(c, "__esModule", { + b = a(0); + c = a(36); + g = function(a) { + function d() { + return null !== a && a.apply(this, arguments) || this; + } + b.__extends(d, a); + d.prototype.parse = function() { + this.He(); + c.nq && this.u.Hb("ESDBox"); + this.VGa = this.u.Vka(); + return !0; + }; + d.nl = "esds"; + return d; + }(c["default"]); + d["default"] = g; + }, function(g, d, a) { + var b; + Object.defineProperty(d, "__esModule", { value: !0 }); - f = a(1); - d = a(0); - h = a(108); - b.prototype.compare = function(a, b) { - var c; - c = []; - this.FY(a, b, "", c); + b = a(0); + g = function(a) { + function c() { + return null !== a && a.apply(this, arguments) || this; + } + b.__extends(c, a); + c.prototype.parse = function(b) { + var c; + if (b = a.prototype.parse.call(this, b) && this.Er(b, !0)) { + c = this.kI("esds"); + if (c = c && c.VGa.kI(5)) this.rI = c.rI; + } + return b; + }; + c.nl = "mp4a"; return c; - }; - b.prototype.FY = function(a, b, c, d) { - var g; - g = this; - if (h.nn.Gn(a)) h.nn.Gn(b) && a.length === b.length ? a.forEach(function(f, h) { - g.FY(a[h], b[h], c + "[" + h + "]", d); - }) : d.push({ - a: a, - b: b, - path: c - }); - else if (h.nn.ov(a) && null != a) - if (h.nn.ov(b) && null != b) { - for (var f in a) this.FY(a[f], b[f], c + "." + f, d); - for (var m in b) m in a || void 0 === b[m] || d.push({ - a: void 0, - b: b[m], - path: c + "." + m - }); - } else d.push({ - a: a, - b: b, - path: c - }); - else a !== b && d.push({ - a: a, - b: b, - path: c - }); - }; - a = b; - a = f.__decorate([d.N()], a); - c.gBa = a; - }, function(f, c) { - Object.defineProperty(c, "__esModule", { + }(a(358)["default"]); + d["default"] = g; + }, function(g, d, a) { + var b, c; + Object.defineProperty(d, "__esModule", { value: !0 }); - c.hBa = "ObjectComparerSymbol"; - }, function(f, c, a) { - var d, h, l, g; - - function b(a) { - this.location = a; - h.$i(this, "location"); - } - Object.defineProperty(c, "__esModule", { + b = a(0); + c = a(57); + g = function(a) { + function d() { + return null !== a && a.apply(this, arguments) || this; + } + b.__extends(d, a); + d.prototype.parse = function() { + this.He(); + this.Uc = this.Qp([{ + uHb: "int32" + }, { + msa: "int32" + }, { + offset: 96, + type: "offset" + }, { + name: "string" + }]); + this.Uc.msa = c.nZ(this.Uc.msa); + return !0; + }; + d.nl = "hdlr"; + return d; + }(a(36)["default"]); + d["default"] = g; + }, function(g, d, a) { + var b; + Object.defineProperty(d, "__esModule", { value: !0 }); - f = a(1); - h = a(49); - l = a(50); - a = a(0); - b.KP = function(a) { - var b, g, f; - b = {}; - if (0 < a.length) { - a = a.split("&"); - for (var c = 0; c < a.length; c++) { - g = a[c].trim(); - f = g.indexOf("="); - 0 <= f ? b[decodeURIComponent(g.substr(0, f).replace(d.eaa, "%20"))] = decodeURIComponent(g.substr(f + 1).replace(d.eaa, "%20")) : b[g.toLowerCase()] = ""; - } - } - return b; - }; - pa.Object.defineProperties(b.prototype, { - H6a: { - configurable: !0, - enumerable: !0, - get: function() { - return this.data ? this.data : this.data = d.KP(this.wpa); - } - }, - wpa: { - configurable: !0, - enumerable: !0, - get: function() { - var a; - if (void 0 !== this.mH) return this.mH; - this.mH = this.location.search.substr(1); - a = this.mH.indexOf("#"); - 0 <= a && (this.mH = this.wpa.substr(0, a)); - return this.mH; - } + b = a(0); + g = function(a) { + function c() { + return null !== a && a.apply(this, arguments) || this; } - }); - g = d = b; - g.eaa = /[+]/g; - g = d = f.__decorate([a.N(), f.__param(0, a.j(l.Q9))], g); - c.TDa = g; - }, function(f, c, a) { - var d; - - function b() {} - Object.defineProperty(c, "__esModule", { + b.__extends(c, a); + c.prototype.parse = function() { + this.Uc = this.Qp([{ + VBb: "int32" + }, { + bv: "int32" + }, { + Kma: "int32" + }]); + return !0; + }; + c.nl = "btrt"; + return c; + }(a(36)["default"]); + d["default"] = g; + }, function(g, d, a) { + var b; + Object.defineProperty(d, "__esModule", { value: !0 }); - f = a(1); - a = a(0); - b.prototype.A_ = function(a) { - var b; - b = this; - return a ? (a ^ 16 * Math.random() >> a / 4).toString(16) : "10000000-1000-4000-8000-100000000000".replace(/[018]/g, function(a) { - return b.A_(a); - }); - }; - d = b; - d = f.__decorate([a.N()], d); - c.MFa = d; - }, function(f, c, a) { - var d, h, l, g, m, k; - - function b(a, b) { - this.is = a; - this.json = b; - h.$i(this, "json"); - } - Object.defineProperty(c, "__esModule", { + b = a(0); + g = function(a) { + function c() { + return null !== a && a.apply(this, arguments) || this; + } + b.__extends(c, a); + c.prototype.parse = function() { + this.Uc = this.Qp([{ + cFb: "int32" + }, { + gJb: "int32" + }]); + return !0; + }; + c.nl = "pasp"; + return c; + }(a(36)["default"]); + d["default"] = g; + }, function(g, d, a) { + var b; + Object.defineProperty(d, "__esModule", { value: !0 }); - f = a(1); - h = a(49); - l = a(50); - g = a(0); - m = a(20); - k = a(127); - b.prototype.Hpa = function(a) { - var b; - b = this; - return d.read(a, function(a) { - return parseInt(a); - }, function(a) { - return b.is.rX(a); - }); - }; - b.prototype.b4 = function(a) { - var b; - b = this; - return d.read(a, function(a) { - return "true" == a ? !0 : "false" == a ? !1 : void 0; - }, function(a) { - return b.is.Vy(a); - }); - }; - b.prototype.Aa = function(a) { - var b; - b = this; - return d.read(a, function(a) { - return parseInt(a); - }, function(a) { - return b.is.Hn(a); - }); - }; - b.prototype.O6a = function(a) { - var b; - b = this; - return d.read(a, function(a) { - return parseFloat(a); - }, function(a) { - return b.is.ye(a); - }); - }; - b.prototype.Fpa = function(a, b) { - return d.read(a, function(a) { - return d.vVa(a, b); - }, function(a) { - return void 0 !== a; - }); - }; - b.prototype.e4 = function(a, b) { - return d.read(a, function(a) { + b = a(0); + g = function(a) { + function c() { + return null !== a && a.apply(this, arguments) || this; + } + b.__extends(c, a); + c.prototype.parse = function(a) { + this.He(); + this.Uc = this.Qp(1 === this.version ? [{ + Jqa: "int64" + }] : [{ + Jqa: "int32" + }]); + a = this.Er(a, !0); + this.u.Hb("Finished parsing mehd box"); return a; - }, function(a) { - return b ? b.test(a) : !0; - }); - }; - b.prototype.Ipa = function(a) { - var b, c; - b = void 0 === b ? function() { - return !0; - } : b; - c = this; - try { - return d.read(a, function(a) { - return c.json.parse(decodeURIComponent(a)); - }, function(a) { - return c.is.ov(a) && b(a); - }); - } catch (z) { - return new k.ml(); - } - }; - b.prototype.re = function(a, b, c) { - var g, f; - c = void 0 === c ? 1 : c; - g = this; - a = a.trim(); - f = b instanceof Function ? b : this.TRa(b, c); - b = a.indexOf("["); - c = a.lastIndexOf("]"); - if (0 != b || c != a.length - 1) return new k.ml(); - a = a.substring(b + 1, c); - try { - return d.U4a(a).map(function(a) { - a = f(g, d.Acb(a)); - if (a instanceof k.ml) throw a; - return a; - }); - } catch (G) { - return G instanceof k.ml ? G : new k.ml(); - } - }; - b.prototype.TRa = function(a, b) { - var c; - b = void 0 === b ? 1 : b; - c = this; - return function(g, f) { - g = d.eYa(a); - return 1 < b ? c.re(f, a, b - 1) : g(c, f); }; - }; - b.vVa = function(a, b) { - var d; - for (var c in b) { - d = parseInt(c); - if (b[d] == a) return d; - } - }; - b.read = function(a, b, c) { - a = b(a); - return void 0 !== a && c(a) ? a : new k.ml(); - }; - b.eYa = function(a) { - switch (a) { - case "int": - return function(a, b) { - return a.Hpa(b); - }; - case "bool": - return function(a, b) { - return a.b4(b); - }; - case "uint": - return function(a, b) { - return a.Aa(b); - }; - case "float": - return function(a, b) { - return a.O6a(b); - }; - case "string": - return function(a, b) { - return a.e4(b); - }; - case "object": - return function(a, b) { - return a.Ipa(b); - }; - } - }; - b.U4a = function(a) { - var l; - for (var b = [ - ["[", "]"] - ], c = [], d = 0, g = 0, f = 0, h = [], m = {}; g < a.length; m = { - "char": m["char"] - }, ++g) { - m["char"] = a.charAt(g); - l = void 0; - "," == m["char"] && 0 == f ? (c.push(a.substr(d, g - d)), d = g + 1) : (l = b.find(function(a) { - return function(b) { - return b[0] == a["char"]; - }; - }(m))) ? (++f, h.push(l)) : 0 < h.length && h[h.length - 1][1] == m["char"] && (--f, h.pop()); + c.nl = "mehd"; + return c; + }(a(36)["default"]); + d["default"] = g; + }, function(g, d, a) { + var b; + Object.defineProperty(d, "__esModule", { + value: !0 + }); + b = a(0); + g = function(a) { + function c() { + return null !== a && a.apply(this, arguments) || this; } - if (d != g) c.push(a.substr(d, g - d)); - else if (d == g && 0 < d) throw new k.ml(); + b.__extends(c, a); + c.prototype.parse = function() { + var a; + this.He(); + a = 1 === this.version ? [{ + yg: "int64" + }, { + modificationTime: "int64" + }, { + Tb: "int32" + }, { + offset: 32, + type: "offset" + }, { + duration: "int64" + }] : [{ + yg: "int32" + }, { + modificationTime: "int32" + }, { + Tb: "int32" + }, { + offset: 32, + type: "offset" + }, { + duration: "int32" + }]; + a = a.concat({ + offset: 64, + type: "offset" + }, { + kdb: "int16" + }, { + BXa: "int16" + }, { + volume: "int16" + }, { + offset: 16, + type: "offset" + }, { + offset: 288, + type: "offset" + }, { + width: "int32" + }, { + height: "int32" + }); + this.Uc = this.Qp(a); + this.Uc.JIb = !!(this.me & 1); + this.Uc.KIb = !!(this.me & 2); + this.Uc.LIb = !!(this.me & 4); + this.Uc.MIb = !!(this.me & 8); + this.u.Hb("Finished parsing track box"); + return !0; + }; + c.nl = "tkhd"; return c; - }; - b.Acb = function(a) { - var b; - b = a.charAt(0); - if ('"' == b || "'" == b) { - if (a.charAt(a.length - 1) != b) throw new k.ml(); - return a.substring(1, a.length - 1); + }(a(36)["default"]); + d["default"] = g; + }, function(g, d, a) { + var b; + Object.defineProperty(d, "__esModule", { + value: !0 + }); + b = a(0); + g = function(a) { + function c() { + return null !== a && a.apply(this, arguments) || this; } - return a; - }; - a = d = b; - a = d = f.__decorate([g.N(), f.__param(0, g.j(m.rd)), f.__param(1, g.j(l.hr))], a); - c.dFa = a; - }, function(f, c, a) { - var b, d, h, l, g, m, k, r, u, n, q, w; - Object.defineProperty(c, "__esModule", { + b.__extends(c, a); + c.prototype.parse = function(a) { + a = this.Er(a, !0); + this.u.Hb("Finished parsing track box"); + return a; + }; + c.nl = "trak"; + return c; + }(a(36)["default"]); + d["default"] = g; + }, function(g, d, a) { + var b; + Object.defineProperty(d, "__esModule", { value: !0 }); - f = a(0); - b = a(604); - d = a(603); - h = a(602); - l = a(127); - g = a(389); - m = a(206); - k = a(601); - r = a(600); - u = a(315); - n = a(599); - q = a(355); - w = a(598); - c.bg = new f.dc(function(a) { - a(l.NU).to(b.dFa).Y(); - a(g.FU).to(h.TDa).Y(); - a(m.YU).to(d.MFa).Y(); - a(k.hBa).to(r.gBa).Y(); - a(u.fca).to(n.$Fa).Y(); - a(q.R7).to(w.ywa).Y(); - }); - }, function(f, c, a) { - var d, h; + b = a(0); + g = function(a) { + function c() { + return null !== a && a.apply(this, arguments) || this; + } + b.__extends(c, a); + c.prototype.parse = function(a) { + this.He(); + this.Uc = 1 === this.version ? this.Qp([{ + yg: "int64" + }, { + modificationTime: "int64" + }, { + ha: "int32" + }, { + duration: "int64" + }]) : this.Qp([{ + yg: "int32" + }, { + modificationTime: "int32" + }, { + ha: "int32" + }, { + duration: "int32" + }]); + return this.Er(a); + }; + c.nl = "mvhd"; + return c; + }(a(36)["default"]); + d["default"] = g; + }, function(g, d, a) { + var ja, ea, ma, va, fa, ba, da, ha, ka, ia, na, oa, qa, ta, nb, ua, hb, Qa, cb, tb, Ta; - function b(a) { - this.i3a = a; + function b(a, b, c, d) { + this.Qa = fa; + this.Qa.call(this, a, b, c, d); } - Object.defineProperty(c, "__esModule", { - value: !0 - }); - f = a(1); - d = a(316); - a = a(0); - b.prototype.Kja = function() { - var a; - a = this.i3a.getDeviceId(); - return new Promise(function(b, c) { - a.oncomplete = function() { - b(a.result); - }; - a.onerror = function() { - c(a.error); - }; - }); - }; - h = b; - h = f.__decorate([a.N(), f.__param(0, a.j(d.I$))], h); - c.vva = h; - }, function(f, c, a) { - var b, d, h, l, g; - Object.defineProperty(c, "__esModule", { - value: !0 - }); - f = a(0); - b = a(316); - d = a(346); - h = a(347); - l = a(606); - g = a(5); - c.crypto = new f.dc(function(a) { - a(h.B7).to(l.vva).Y(); - a(b.I$).th(g.mr); - a(d.C7).th(g.cU); - }); - }, function(f, c, a) { - var d, h, l, g, m, k; - function b(a, b, c) { - var d; - d = k.gK.call(this, a, b, "network") || this; - d.dh = c; - d.d4a = function() { - d.data = []; - d.refresh(); - }; - d.yqa = function(a) { - a = JSON.stringify(d.data[Number(a.target.id)].value, null, 4); - d.qha(a); - }; - return d; + function c(a, b, c, d) { + this.Qa = fa; + this.Qa.call(this, a, b, c, d); } - Object.defineProperty(c, "__esModule", { - value: !0 - }); - f = a(1); - d = a(0); - h = a(26); - l = a(20); - g = a(109); - m = a(317); - k = a(320); - oa(b, k.gK); - b.prototype.Xc = function() { - var a; - a = this; - if (this.Wi) return Promise.resolve(); - t.addEventListener("keydown", function(b) { - b.ctrlKey && b.altKey && b.shiftKey && 78 == b.keyCode && a.toggle(); - }); - this.data = []; - this.dh.addListener(m.P7.tib, function(b) { - a.data.push(b); - a.refresh(); - }); - this.Wi = !0; - return Promise.resolve(); - }; - b.prototype.N_ = function() { - return '' + ('#') + ('Name') + ('Value') + ('') + ""; - }; - b.prototype.$_ = function(a, b, c) { - var d; - d = a.toString(); - b = '"' + b + '"'; - c = this.qga.sm(c); - return "" + ('' + d + "") + ('' + b + "") + ('
      ' + c + "
    ") + ('
    ') + ""; - }; - b.prototype.f0 = function() { - for (var a = '' + this.N_(), b = 0; b < this.data.length; ++b) a += this.$_(b, this.data[b].name, this.data[b].value); - return a + "
    "; - }; - b.prototype.Ija = function() { - var a; - a = this.kf.createElement("button", k.VI, "Clear", { - "class": this.prefix + "-display-btn" - }); - a.onclick = this.d4a; - return [a]; - }; - b.prototype.Xpa = function() { - return Promise.resolve(this.f0()); - }; - a = b; - a = f.__decorate([d.N(), f.__param(0, d.j(h.Re)), f.__param(1, d.j(l.rd)), f.__param(2, d.j(g.CS))], a); - c.Qhb = a; - }, function(f, c, a) { - var l, g, m, k, r, u, n, q, w, G, x, y, C, F; - function b(a, b, c, d, g, f, m, l, k) { - var p; - p = this; - this.Na = a; - this.app = b; - this.kf = c; - this.ha = d; - this.ck = g; - this.config = f; - this.Cg = m; - this.md = k; - this.Iab = function() { - p.Lsa.lb(function() { - p.update(); - }); - }; - this.clear = function() { - p.entries = []; - p.update(); - }; - this.zna = function() { - p.Mc.oA = !p.Mc.oA; - p.ot && p.qt && (p.Mc.oA ? (p.ot.style.display = "inline-block", p.qt.style.display = "none") : (p.qt.style.display = "inline-block", p.ot.style.display = "none")); - p.tB(!1); - }; - this.u1a = function(a) { - var b; - p.entries.push(a); - b = p.config.vA; - 0 <= b && p.entries.length > b && p.entries.shift(); - void 0 === p.Mc.Lp[a.Ck] && (p.Mc.Lp[a.Ck] = !0, p.tB(!1)); - p.Mc.Pl && !p.Yra ? p.Iab() : p.Lsa.lb(); - }; - this.ETa = function() { - h.download("all", p.entries.map(function(a) { - return a.lI(!1, !1); - }))["catch"](function(a) { - console.error("Unable to download all logs to the file", a); - }); - }; - this.Wi = !1; - this.Mc = { - Pl: !1, - oA: !0, - ZM: !0, - xA: w.wh.yT, - Lp: {} - }; - this.Lsa = l(u.ij(1)); - this.entries = []; + function h(a, b, c, d) { + this.Qa = fa; + this.Qa.call(this, a, b, c, d); } - function d(a) { - var b; - this.elements = []; - b = document.createElementNS(d.cI, "svg"); - b.setAttribute("viewBox", a); - this.elements.push(b); + function k(a, b, c, d) { + this.Qa = fa; + this.Qa.call(this, a, b, c, d); } - function h() {} - Object.defineProperty(c, "__esModule", { - value: !0 - }); - f = a(1); - l = a(0); - g = a(26); - m = a(378); - k = a(43); - r = a(52); - u = a(7); - n = a(38); - q = a(22); - w = a(12); - G = a(84); - x = a(142); - y = a(318); - a = a(56); - C = t.Windows && t.Windows.Storage; - h.download = function(a, b) { - return h.qXa(a).then(function(a) { - var c; - c = b.join("\r\n"); - return C ? h.DTa(a, c) : h.SYa(a, c).then(function(a) { - return h.CTa(a.filename, a.text); - }); - }); - }; - h.qXa = function(a) { - return new Promise(function(b, c) { - var d, g, f, h, m, l, k; - try { - d = new Date(); - g = d.getDate().toString(); - f = (d.getMonth() + 1).toString(); - h = d.getFullYear().toString(); - m = d.getHours().toString(); - l = d.getMinutes().toString(); - k = d.getSeconds().toString(); - 1 === g.length && (g = "0" + g); - 1 === f.length && (f = "0" + f); - 1 === m.length && (m = "0" + m); - 1 === l.length && (l = "0" + l); - 1 === k.length && (k = "0" + k); - b(h + f + g + m + l + k + "." + a + ".log"); - } catch (da) { - c(da); - } - }); - }; - h.SYa = function(a, b) { - return new Promise(function(c, d) { - try { - c({ - filename: a, - text: URL.createObjectURL(new Blob([b], { - type: "text/plain" - })) - }); - } catch (O) { - d(O); + function f(a, b, c, d) { + this.Qa = fa; + this.Qa.call(this, a, b, c, d); + } + + function p(a, b, c, d) { + this.Qa = fa; + this.Qa.call(this, a, b, c, d); + this.hE = a.config.hE; + this.bU = new ma(0, 1); + a.config.Cn && (b = a.config.mK[a.profile]) && (a = b[a.O]) && (this.bU = new ma(a)); + } + + function m(a, b, c, d) { + this.Qa = fa; + this.Qa.call(this, a, b, c, d); + } + + function l(a, b, c, d) { + this.Qa = fa; + this.Qa.call(this, a, b, c, d); + } + + function n(a, b, c, d) { + this.Qa = fa; + this.Qa.call(this, a, b, c, d); + } + + function q(a, b, c, d) { + qa.call(this, a, b, c, d); + } + + function v(a, b, c, d) { + fa.call(this, a, b, c, d); + } + + function t(a, b, c, d) { + fa.call(this, a, b, c, d); + } + + function w(a, b, c, d) { + oa.call(this, a, b, c, d); + } + + function D(a, b, c, d) { + fa.call(this, a, b, c, d); + } + + function z(a, b, c, d) { + fa.call(this, a, b, c, d); + } + + function E() { + for (var a = new DataView(this), b = "", c, d = 0; d < this.byteLength; d++) c = a.getUint8(d), b += ("00" + c.toString(16)).slice(-2); + return b; + } + + function P(a, b, c, d) { + this.Qa = fa; + this.Qa.call(this, a, b, c, d); + } + + function F(a, b, c, d) { + this.Qa = fa; + this.Qa.call(this, a, b, c, d); + } + + function A(a, b, c, d) { + this.Qa = fa; + this.Qa.call(this, a, b, c, d); + } + + function N(a, c, d, f) { + this.Qa = b; + this.Qa.call(this, a, c, d, f); + } + + function O(a, c, d, f) { + this.Qa = b; + this.Qa.call(this, a, c, d, f); + } + + function Y(a) { + function b(b, c, d, f) { + this.Qa = fa; + this.Qa.call(this, b, c, d, f); + this.Zva = a; + } + b.prototype = new fa(); + b.prototype.constructor = b; + Object.defineProperties(b.prototype, { + Cca: { + get: function() { + return this.Zva; + } } }); + b.prototype.parse = function() { + this.u.Hb("renaming '" + this.type + "' to draft type '" + this.Zva + "'"); + this.u.offset = this.startOffset + 4; + this.u.Bla(this.Cca); + this.type = this.Cca; + return !0; + }; + return b; + } + + function U(a, b, c, d) { + this.Qa = fa; + this.Qa.call(this, a, b, c, d); + } + + function G(a, b, c, d) { + this.Qa = fa; + this.Qa.call(this, a, b, c, d); + } + + function S(a, b, c, d) { + this.Qa = fa; + this.Qa.call(this, a, b, c, d); + } + + function T(a, b, c, d) { + this.Qa = fa; + this.Qa.call(this, a, b, c, d); + } + + function H(a, b, c, d) { + this.Qa = fa; + this.Qa.call(this, a, b, c, d); + } + + function R(a, b, c, d) { + this.Qa = fa; + this.Qa.call(this, a, b, c, d); + } + + function aa(a, b, c, d) { + this.Qa = fa; + this.Qa.call(this, a, b, c, d); + } + + function ca(a, b, c, d) { + this.Qa = fa; + this.Qa.call(this, a, b, c, d); + } + + function Z(a, b, c, d) { + this.Qa = fa; + this.Qa.call(this, a, b, c, d); + } + + function Q(a, b, c, d) { + this.Qa = fa; + this.Qa.call(this, a, b, c, d); + } + ja = a(14); + ea = a(152); + a(8); + ma = a(74).cc; + va = a(367); + a(57); + a(57); + a(57); + fa = a(36)["default"]; + d = a(724)["default"]; + ba = a(723)["default"]; + da = a(722)["default"]; + ha = a(721)["default"]; + ka = a(720)["default"]; + ia = a(719)["default"]; + na = a(718)["default"]; + oa = a(359)["default"]; + qa = a(358)["default"]; + ta = a(717)["default"]; + nb = a(716)["default"]; + ua = a(715)["default"]; + hb = a(151)["default"]; + Qa = a(357)["default"]; + cb = a(714)["default"]; + tb = a(713)["default"]; + a = a(712)["default"]; + b.prototype = new fa(); + b.prototype.constructor = b; + b.prototype.parse = function(a) { + return this.Er(a, !0); }; - h.CTa = function(a, b) { - var c; - try { - c = document.createElement("a"); - c.setAttribute("href", b); - c.setAttribute("download", a); - c.style.display = "none"; - document.body.appendChild(c); - c.click(); - document.body.removeChild(c); - return Promise.resolve(); - } catch (Z) { - return Promise.reject(Z); - } - }; - h.DTa = function(a, b) { - var c; - try { - c = t.Windows.Storage; - return c.DownloadsFolder.createFileAsync(a, c.CreationCollisionOption.generateUniqueName).then(function(a) { - return a.openTransactedWriteAsync(); - }).then(function(a) { - var d; - d = c.Streams.DataWriter(a.stream); - d.writeString(b); - return d.storeAsync().then(function() { - return a.commitAsync(); - }); - }); - } catch (Z) { - return Promise.reject(Z); - } + c.prototype = new fa(); + c.prototype.constructor = c; + c.prototype.parse = function(a) { + var b; + b = this.startOffset + this.length; + a = this.Er(a, !0); + this.u.Hb("marking orginal end of moov: 0x" + b.toString(16)); + this.u.NJ = b; + return a; }; - d.prototype.zB = function() { + h.prototype = new fa(); + h.prototype.constructor = h; + h.prototype.parse = function() { var a; - a = document.createElementNS(d.cI, "g"); - a.setAttribute("stroke", "none"); - a.setAttribute("stroke-width", 1..toString()); - a.setAttribute("fill", "none"); - a.setAttribute("fill-rule", "evenodd"); - a.setAttribute("stroke-linecap", "round"); - this.addElement(a); - return this; - }; - d.prototype.AB = function(a, b, c) { - var g; - g = document.createElementNS(d.cI, "path"); - g.setAttribute("d", a); - b && g.setAttribute("fill", b); - c && g.setAttribute("fill-rule", c); - this.addElement(g); - return this; + this.He(); + this.fileSize = this.u.rh(); + this.ha = this.u.rh(); + this.duration = this.u.rh(!1, !0); + this.xwa = this.u.rh(); + this.u.rh(); + this.ohb = this.u.rh(); + this.Bgb = this.u.fb(); + this.ywa = this.u.rh(); + this.xqa = this.u.fb(); + this.jqa = this.u.zG(); + a = { + moof: { + offset: this.xwa + }, + sidx: { + offset: this.ywa, + size: this.xqa + } + }; + a[ea.ofa] = { + offset: this.ohb, + size: this.Bgb + }; + this.u.offset - this.startOffset <= this.length - 24 && (this.nhb = this.u.rh(), this.sgb = this.u.fb(), this.mhb = this.u.rh(), this.qgb = this.u.fb(), a[ea.$X] = { + offset: this.nhb, + size: this.sgb + }, a[ea.YX] = { + offset: this.mhb, + size: this.qgb + }); + this.u.Hya(a); + return !0; }; - d.prototype.SH = function(a, b, c, g, f) { - var h; - f = void 0 === f ? "#000000" : f; - h = document.createElementNS(d.cI, "rect"); - h.setAttribute("x", a.toString()); - h.setAttribute("y", b.toString()); - h.setAttribute("height", c.toString()); - h.setAttribute("width", g.toString()); - f && h.setAttribute("fill", f); - this.addElement(h); - return this; + k.prototype = new fa(); + k.prototype.constructor = k; + k.prototype.parse = function() { + var a, d, f; + this.He(); + 1 <= this.version && (this.jqa = this.u.zG()); + a = this.u.fb(); + this.Wb = {}; + for (var b = this.startOffset + this.length, c = 0; c < a; ++c) { + d = this.u.xG(); + "uuid" === d && (d = this.u.zG()); + f = this.u.rh(); + this.Wb[d] = { + offset: b, + size: f + }; + b += f; + } + this.u.Hya(this.Wb); + return !0; }; - d.prototype.w$a = function() { + f.prototype = new fa(); + f.prototype.constructor = f; + f.prototype.parse = function() { var a; - a = document.createElementNS(d.cI, "polygon"); - a.setAttribute("points", "0 0 24 0 24 24 0 24"); - a.setAttribute("transform", "translate(12.000000, 12.000000) scale(-1, 1) translate(-12.000000, -12.000000)"); - this.addElement(a); - return this; - }; - d.prototype.end = function() { - this.elements.pop(); - return this; + this.He(); + 1 === this.version ? (this.u.rh(), this.u.rh(), this.ha = this.u.fb(), this.duration = this.u.rh()) : (this.u.fb(), this.u.fb(), this.ha = this.u.fb(), this.duration = this.u.fb()); + a = this.u.lf() & 32767; + this.language = String.fromCharCode(96 + (a >>> 10), 96 + (a >>> 5 & 31), 96 + (a & 31)); + this.u.hx({ + ha: this.ha + }); + return !0; }; - d.prototype.sm = function() { - if (1 < this.elements.length) throw new RangeError("Some item wasn't terminated correctly"); - if (0 === this.elements.length) throw new RangeError("Too many items were terminated"); - return this.elements[0]; + p.prototype = new fa(); + p.prototype.constructor = p; + p.prototype.yUa = function() { + this.He(); + this.u.fb(); + this.ha = this.u.fb(); + this.bU = this.bU.yo(this.ha); + 0 === this.version ? (this.L2 = this.u.fb(), this.y3 = this.u.fb()) : (this.L2 = this.u.rh(), this.y3 = this.u.rh()); + this.bmb = this.u.lf(); + this.q9 = this.u.lf(); + }; + p.prototype.parse = function(a) { + var b, c, d, f, g, k, h, m; + this.yUa(); + b = this.ha; + c = a.Ka && a.Ka.ha || b; + d = c / b; + f = this.startOffset + this.length + this.y3; + g = this.u.config.truncate && 60 < this.q9; + k = g ? 60 : this.q9; + h = this.u.IO(k, 12, !1); + m = 1 === d ? this.u.IO(k, 12, !1) : va.from(Uint32Array, { + length: k + }, function() { + var a; + a = Math.round(this.u.fb() * d); + this.u.offset += 8; + return a; + }, this); + if (this.hE) { + for (var p = this.hE * c / 1E3, l = 0, r = 1; r < k; r++) Math.abs(m[l] - p) > Math.abs(m[l] + m[r] - p) ? (m[l] += m[r], h[l] += h[r]) : (++l, l !== r && (m[l] = m[r], h[l] = h[r])); + ++l; + m = new Uint32Array(m.buffer.slice(0, 4 * l)); + h = new Uint32Array(h.buffer.slice(0, 4 * l)); + } + b = new ma(this.L2, b).add(this.bU); + k = { + ha: c, + Rl: b.yo(c).vd, + offset: f, + sizes: h, + Sd: m + }; + this.u.hx({ + Y: k, + Js: g + }); + a.Jj = this; + return !0; }; - d.prototype.addElement = function(a) { - if (0 === this.elements.length) throw new RangeError("Too many items were terminated"); - this.elements[this.elements.length - 1].appendChild(a); - this.elements.push(a); + m.prototype = new fa(); + m.prototype.constructor = m; + m.prototype.parse = function() { + for (var a = [], b = (this.length - 8) / 2, c = 0; c < b; c++) a.push(this.u.lf() / 100); + this.u.hx({ + iq: a + }); + return !0; }; - pa.Object.defineProperties(d, { - background: { - configurable: !0, - enumerable: !0, + l.prototype = new fa(); + l.prototype.constructor = l; + Object.defineProperties(l.prototype, { + ZKa: { get: function() { - return "transparent"; + return "e41f7029-c73c-344a-8c5b-ae90c7439a47"; } }, - Jv: { - configurable: !0, - enumerable: !0, + sMa: { get: function() { - return "#000000"; + return "79f0049a-4098-8642-ab92-e65be0885f95"; } } }); - d.cI = "http://www.w3.org/2000/svg"; - b.prototype.Xc = function() { - var a; - a = this; - this.Ig || (this.Ig = new Promise(function(b) { - t.addEventListener("keydown", function(b) { - b.ctrlKey && b.altKey && b.shiftKey && 76 == b.keyCode && a.toggle(); - }); - a.ck.cB(x.Ux.Ova, a.u1a); - b(); - })); - return this.Ig; - }; - b.prototype.show = function() { - document.body && (this.element || (this.CRa(), this.Wi = !0), !this.Mc.Pl && this.element && (document.body.appendChild(this.element), this.Mc.Pl = !0, this.update(!0))); - }; - b.prototype.dw = function() { - this.Wi && this.Mc.Pl && this.element && (document.body.removeChild(this.element), this.Mc.Pl = !1); - }; - b.prototype.toggle = function() { - this.Mc.Pl ? this.dw() : this.show(); + l.prototype.parse = function(a) { + var b, c; + this.He(); + b = this.u.zG(); + this.u.Hb("parsing pssh box ID = " + b); + c = this.u.fb(); + this.u.Hb("pssh size = 0x" + c.toString(16)); + c = this.u.data.slice(this.u.offset, this.u.offset + c); + a = { + ctxt: a, + header: c + }; + if (b == this.sMa) a.type = "drmheader", a.drmType = "PlayReady"; + else if (b == this.ZKa) a.type = "nflxheader"; + else return this.u.Hb("Unrecognized pssh systemID: " + b), !0; + this.u.Hb("Handling pssh type: " + a.type); + this.u.Ia(a.type, a); + return !0; }; - b.prototype.CRa = function() { - var a, b; - try { - a = this.createElement("DIV", "position:fixed;left:10px;top:30px;right:10px;z-index:10000;color:#000;bottom:10px;", void 0, { - "class": "player-log" - }); - b = this.createElement("style"); - b.type = "text/css"; - b.appendChild(document.createTextNode("button:focus { outline: none; }")); - a.appendChild(b); - a.appendChild(this.Wt = this.aSa()); - a.appendChild(this.cSa()); - a.appendChild(this.wRa()); - this.element = a; - } catch (ca) { - console.error("Unable to create the log console", ca); + n.prototype = new fa(); + n.prototype.constructor = n; + n.prototype.parse = function(a) { + var b, c; + this.He(); + this.u.fb(); + if (a = this.Er(a, !0)) { + b = { + type: "sampledescriptions", + boxes: this.Wb + }; + c = Object.keys(this.Wb); + c.length && this.Wb[c[0]].length && (this.Wb[c[0]][0] instanceof qa ? b.frameDuration = new ma(this.Wb[c[0]][0].rI, this.Wb[c[0]][0].nza) : this.Wb[c[0]][0] instanceof w && (c = this.Wb[c[0]][0].Wb[ea.ZX]) && c.length && (c = c[0].Uc, 1E3 !== c.LH && 1001 !== c.LH || 0 !== c.zT % 1E3 ? this.u.fa("Unexpected frame rate in NetflixFrameRateBox: " + c.zT + "/" + c.LH) : b.frameDuration = new ma(c.LH, c.zT))); + this.u.Ia(b.type, b); } - }; - b.prototype.aSa = function() { - var a, b; - a = this; - b = this.createElement("TEXTAREA", "position:absolute;resize:none;box-sizing:border-box;width:100%;height:100%;margin:0;color:#040;font-size:11px;font-family:monospace;overflow:scroll;background-color:rgba(255,255,255,0.6)"); - b.setAttribute("wrap", "off"); - b.setAttribute("readonly", "readonly"); - b.addEventListener("focus", function() { - a.Yra = !0; - a.update(); - a.Wt && (a.Wt.style.cssText = "position:absolute;resize:none;box-sizing:border-box;width:100%;height:100%;margin:0;color:#040;font-size:11px;font-family:monospace;overflow:scroll;background-color:rgba(255,255,255,0.86)"); - }); - b.addEventListener("blur", function() { - a.Yra = !1; - a.update(); - a.Wt && (a.Wt.style.cssText = "position:absolute;resize:none;box-sizing:border-box;width:100%;height:100%;margin:0;color:#040;font-size:11px;font-family:monospace;overflow:scroll;background-color:rgba(255,255,255,0.6)"); - }); - return b; - }; - b.prototype.cSa = function() { - var a; - a = this.createElement("DIV", "float:right;opacity:0.8;background-color:white;display:flex;align-items:center;font-size:small;font-family:sans-serif"); - a.appendChild(this.ORa()); - a.appendChild(this.IRa()); - a.appendChild(this.ERa()); - a.appendChild(this.dSa()); - a.appendChild(this.zRa()); - a.appendChild(this.SRa()); - a.appendChild(this.RRa()); - a.appendChild(this.GRa()); - a.appendChild(this.BRa()); return a; }; - b.prototype.wRa = function() { - var a, b, c, d, g, f; - a = this; - b = this.createElement("DIV", "float:right;opacity:0.8;background-color:white;font-size:small;font-family:sans-serif"); - c = this.createElement("DIV", "padding:2px"); - d = this.createElement("SELECT", this.Vn(22, 160, 1, 2), ""); - g = this.createElement("DIV", "height:500px;overflow-y:auto;display:none;border:1px #dadada solid"); - b.appendChild(c); - b.appendChild(g); - c.appendChild(d); - c.addEventListener("mousedown", function(a) { - a.preventDefault(); - }); - f = !1; - c.addEventListener("click", function() { - f ? g.style.display = "none" : (g.innerHTML = "", ["all", "none"].concat(Object.keys(a.Mc.Lp).sort()).forEach(function(b) { - g.appendChild(a.xRa(b, c)); - }), g.style.display = "block"); - f = !f; - }); - return b; - }; - b.prototype.xRa = function(a, b) { - var c, d, g; - c = this; - d = this.createElement("LABEL", "display: block;margin:1px"); - d.htmlFor = a; - g = this.createElement("INPUT", "margin:1px"); - g.type = "checkbox"; - g.id = a; - g.checked = this.Mc.Lp[a]; - g.addEventListener("click", function() { - "all" === a || "none" === a ? (Object.keys(c.Mc.Lp).forEach(function(b) { - c.Mc.Lp[b] = "all" === a; - }), b.click()) : c.Mc.Lp[a] = !c.Mc.Lp[a]; - c.tB(!0); - }); - d.appendChild(g); - d.insertAdjacentText("beforeend", 18 < a.length ? a.slice(0, 15) + "..." : a); - return d; - }; - b.prototype.ORa = function() { - var a, b; - a = this; - b = this.createElement("SELECT", this.Vn(22, NaN, 1, 2), '' + ('') + ('') + ('') + ('')); - b.value = this.Mc.xA.toString(); - b.addEventListener("change", function(b) { - a.Mc.xA = parseInt(b.target.value); - a.tB(!0); - }, !1); - return b; - }; - b.prototype.IRa = function() { - var b, c; - - function a(a) { - a = a.target.value; - b.Mc.filter = a ? new RegExp(a) : void 0; - b.tB(!0); - } - b = this; - c = this.createElement("INPUT", this.Vn(14, 150, 1, 2)); - c.value = this.Mc.filter ? this.Mc.filter.source : ""; - c.title = "Filter (RegEx)"; - c.placeholder = "Filter (RegEx)"; - c.addEventListener("keydown", a, !1); - c.addEventListener("change", a, !1); - return c; + q.prototype = Object.create(qa.prototype); + q.prototype.constructor = q; + q.prototype.parse = function(a) { + qa.prototype.parse.call(this, a); + if (a = this.Er(a, !0)) this.rI = 1536; + return a; }; - b.prototype.ERa = function() { - var a, b, c, d; - a = this; - b = this.createElement("div", this.Vn(NaN, NaN)); - c = this.createElement("INPUT", "vertical-align: middle;margin: 0px 2px 0px 0px;"); - c.id = "details"; - c.type = "checkbox"; - c.title = "Details"; - c.checked = this.Mc.ZM; - c.addEventListener("change", function(b) { - a.Mc.ZM = b.target.checked; - a.tB(!0); - }, !1); - d = this.createElement("label", "vertical-align: middle;margin: 0px 0px 0px 2px;"); - d.setAttribute("for", "details"); - d.innerHTML = "View details"; - b.appendChild(c); - b.appendChild(d); - return b; + v.prototype = Object.create(fa.prototype); + v.prototype.parse = function() { + this.u.yf(2); + this.u.yf(5); + this.u.yf(3); + this.u.yf(3); + this.u.JHb(1); + this.u.yf(5); + this.u.yf(5); + return !0; }; - b.prototype.dSa = function() { - var a, b, c; - a = this; - b = this.createElement("BUTTON", this.Vn()); - c = new d("0 0 24 24").zB().w$a().end().AB("M20,12.3279071 L21.9187618,10.9573629 L23.0812382,12.5848299 L19,15.5 L14.9187618,12.5848299 L16.0812382,10.9573629 L18,12.3279071 L18,12 C18,8.13 14.87,5 11,5 C7.13,5 4,8.13 4,12 C4,15.87 7.13,19 11,19 C12.93,19 14.68,18.21 15.94,16.94 L17.36,18.36 C15.73,19.99 13.49,21 11,21 C6.03,21 2,16.97 2,12 C2,7.03 6.03,3 11,3 C15.97,3 20,7.03 20,12 L20,12.3279071 Z", d.Jv, "nonzero").end().end().sm(); - b.appendChild(c); - b.addEventListener("click", function() { - a.update(); - }, !1); - b.setAttribute("title", "Refresh the log console"); - return b; + t.prototype = Object.create(fa.prototype); + t.prototype.parse = function() { + this.Xgb = this.u.lf() & 7; + for (var a = 0; a < this.Xgb; a++) this.u.yf(2), this.u.yf(5), this.u.yf(5), this.u.yf(3), this.u.Ikb(1), 0 < this.u.yf(4) ? this.u.Ikb(9) : this.u.yf(1); + return !0; }; - b.prototype.zRa = function() { - var a, b; - a = this.createElement("BUTTON", this.Vn()); - b = new d("0 0 24 24").zB().SH(0, 0, 24, 24, d.background).end().AB("M19,4 L15.5,4 L14.5,3 L9.5,3 L8.5,4 L5,4 L5,6 L19,6 L19,4 Z M6,19 C6,20.1 6.9,21 8,21 L16,21 C17.1,21 18,20.1 18,19 L18,7 L6,7 L6,19 Z", d.Jv).end().end().sm(); - a.appendChild(b); - a.addEventListener("click", this.clear, !1); - a.setAttribute("title", "Remove all log messages"); - return a; + w.prototype = Object.create(oa.prototype); + w.constructor = w; + w.prototype.parse = function(a) { + oa.prototype.parse.call(this, a); + this.Uc = this.Qp([{ + offset: 16, + type: "offset" + }, { + offset: 16, + type: "offset" + }, { + offset: 96, + type: "offset" + }, { + width: "int16" + }, { + height: "int16" + }, { + bFb: "int32" + }, { + fJb: "int32" + }, { + offset: 32, + type: "offset" + }, { + C7a: "int16" + }, { + W_a: { + type: "int8", + MXa: 32 + } + }, { + depth: "int16" + }, { + offset: 16, + type: "offset" + }]); + return this.Er(a, !0); }; - b.prototype.SRa = function() { - var a; - this.qt = this.createElement("BUTTON", this.Vn()); - this.qt.style.display = this.Mc.oA ? "none" : "inline-block"; - a = new d("0 0 24 24").zB().SH(0, 0, 24, 24, d.background).end().AB("M3,3 L21,3 L21,21 L3,21 L3,3 Z M5,5 L5,19 L19,19 L19,5 L5,5 Z M6,6 L18,6 L18,12 L6,12 L6,6 Z", d.Jv, "nonzero").end().end().sm(); - this.qt.addEventListener("click", this.zna, !1); - this.qt.appendChild(a); - this.qt.setAttribute("title", "Shrink the log console"); - return this.qt; - }; - b.prototype.RRa = function() { + D.prototype = Object.create(fa.prototype); + D.constructor = D; + D.prototype.parse = function() { var a; - this.ot = this.createElement("BUTTON", this.Vn()); - this.ot.style.display = this.Mc.oA ? "inline-block" : "none"; - a = new d("0 0 24 24").zB().SH(4, 4, 16, 16, d.background).end().AB("M5,5 L5,19 L19,19 L19,5 L5,5 Z M3,3 L21,3 L21,21 L3,21 L3,3 Z", d.Jv, "nonzero").end().end().sm(); - this.ot.addEventListener("click", this.zna, !1); - this.ot.appendChild(a); - this.ot.setAttribute("title", "Expand the log console"); - return this.ot; - }; - b.prototype.GRa = function() { - var a, b; - a = this.createElement("BUTTON", this.Vn()); - b = new d("0 0 26 26").zB().SH(0, 0, 24, 24, d.background).end().AB("M20,20 L20,22 L4,22 L4,20 L20,20 Z M7.8,12.85 L12,16 L16.2,12.85 L17.4,14.45 L12,18.5 L6.6,14.45 L7.8,12.85 Z M7.8,7.85 L12,11 L16.2,7.85 L17.4,9.45 L12,13.5 L6.6,9.45 L7.8,7.85 Z M7.8,2.85 L12,6 L16.2,2.85 L17.4,4.45 L12,8.5 L6.6,4.45 L7.8,2.85 Z", d.Jv, "nonzero").end().end().sm(); - a.appendChild(b); - a.addEventListener("click", this.ETa, !1); - a.setAttribute("title", "Download all log messages"); - return a; + this.u.Sc(); + this.YCa = this.u.Sc(); + this.u.Sc(); + this.u.Sc(); + this.u.Sc(); + this.xAa = this.l_(this.u.Sc() & 31); + this.l_(this.u.Sc()); + this.Y8 = this.xAa.length ? this.xAa[0][0] : this.YCa; + this.Rka = this.u.offset; + this.startOffset + this.length < this.u.offset && (100 === this.EHb || 110 === this.Y8 || 122 === this.Y8 || 144 === this.Y8) && (this.u.Sc(), this.u.Sc(), this.l_(this.u.Sc())); + a = this.startOffset + this.length - this.Rka; + 0 < a && this.uj(a, this.Rka); + return !0; }; - b.prototype.BRa = function() { - var a, b, c; - a = this; - b = this.createElement("BUTTON", this.Vn()); - c = new d("0 0 24 24").zB().SH(0, 0, 24, 24, d.background).end().AB("M12,10.5857864 L19.2928932,3.29289322 L20.7071068,4.70710678 L13.4142136,12 L20.7071068,19.2928932 L19.2928932,20.7071068 L12,13.4142136 L4.70710678,20.7071068 L3.29289322,19.2928932 L10.5857864,12 L3.29289322,4.70710678 L4.70710678,3.29289322 L12,10.5857864 Z", d.Jv, "nonzero").end().end().sm(); - b.appendChild(c); - b.addEventListener("click", function() { - a.dw(); - }, !1); - b.setAttribute("title", "Close the log console"); + D.prototype.l_ = function(a) { + var b, c, d; + b = []; + for (c = 0; c < a; ++c) d = this.u.lf(), b.push(this.u.JO(d)); return b; }; - b.prototype.tB = function(a) { - (void 0 === a ? 0 : a) && this.update(!1); + z.prototype = Object.create(fa.prototype); + z.constructor = z; + z.prototype.parse = function() { + this.He(); + this.Lmb = this.u.xG(); + "cenc" == this.Lmb && (this.u.offset -= 4, this.u.Bla("piff")); + this.u.fb(); + return !0; }; - b.prototype.update = function(a) { - var b; - a = void 0 === a ? !1 : a; - b = this; - this.element && this.config.tH && Promise.resolve(this.$Na() + this.rXa().join("\r\n")).then(function(c) { - b.element && b.Wt && (b.Wt.value = c, b.element.style.cssText = b.Mc.oA ? "position:fixed;left:10px;top:30px;right:10px;z-index:10000;color:#000;height:30%;" : "position:fixed;left:10px;top:30px;right:10px;z-index:10000;color:#000;bottom:10px;", a && b.ha.Af(u.cl, function() { - b.Wt.scrollTop = b.Wt.scrollHeight; - })); - })["catch"](function(a) { - console.error("Unable to update the log console", a); + P.prototype = new fa(); + P.prototype.constructor = P; + P.prototype.parse = function(a) { + var b, c; + this.He(); + this.u.offset += 4; + b = this.u.offset; + c = this.u.data.slice(b, b + 16); + c.toString = E; + this.u.Hb("read KID: " + c.toString()); + a = { + type: "keyid", + ctxt: a, + keyId: c, + offset: b, + flipped: !1 + }; + this.u.Ia(a.type, a); + return !0; + }; + F.prototype = new fa(); + F.prototype.constructor = F; + F.prototype.parse = function() { + this.He(); + this.wl = this.u.lf(); + this.efb = this.u.IO(this.wl, void 0, !0); + this.u.hx({ + jv: this.efb }); + return !0; }; - b.prototype.rXa = function() { - var a, b; - a = this; - b = []; - this.entries.forEach(function(c) { - (c.level || c.level) <= a.Mc.xA && a.Mc.Lp[c.Ck] && (c = c.lI(!a.Mc.ZM, !a.Mc.ZM), a.Mc.filter && !a.Mc.filter.test(c) || b.push(c)); + A.prototype = new fa(); + A.prototype.constructor = A; + A.prototype.parse = function(a) { + var b, c, d, f, g, k; + f = a.Jj; + ja(f); + a = a.Ka; + b = f.ha; + f = f.q9; + ja(a); + ja(b); + ja(f); + this.He(); + ja(2 > this.version); + this.wl = this.u.lf(); + this.KD = new Uint16Array(f + 1); + c = a.V$a(b); + g = c / b; + k = a.yo(c).vd; + if (0 === this.version) + for (this.$D = new Uint16Array(), this.Jl = new Uint32Array(), a = b = 0; a <= f; ++a) { + if (this.KD[a] = b, a < this.wl && (d = this.u.Sc(), 0 !== d)) + for (c = 0; c < d; ++c, ++b) this.$D[b] = Math.floor((this.u.fb() + 1) * g) / k, this.Jl[b] = this.u.fb(); + } else if (1 === this.version) + for (c = this.u.RUa(this.wl), this.u.offset += 4, this.Jl = this.u.IO(this.wl, 10, !1), this.u.offset -= 8, this.$D = va.from(Uint16Array, { + length: this.wl + }, function() { + var a; + a = Math.floor((this.u.fb() + 1) * g) / k; + this.u.offset += 6; + return a; + }, this), b = a = 0; a <= f; ++a) { + for (; b < c.length && c[b] < a;) ++b; + this.KD[a] = b; + } + this.u.hx({ + wh: { + KD: this.KD, + $D: this.$D, + Jl: this.Jl + } }); - return b; + return !0; }; - b.prototype.$Na = function() { - var a; - a = this.Cg(); - return "Version: 6.0011.853.011 \n" + ((a ? "Esn: " + a.$d : "") + "\n") + ("JsSid: " + this.app.id + ", Epoch: " + this.Na.Eg.qa(u.Zo) + ", Start: " + this.app.VO.qa(u.Zo) + ", TimeZone: " + new Date().getTimezoneOffset() + "\n") + ("Href: " + location.href + "\n") + ("UserAgent: " + navigator.userAgent + "\n") + "--------------------------------------------------------------------------------\n"; + N.prototype = Object.create(b.prototype); + N.prototype.constructor = N; + N.prototype.parse = function(a) { + return b.prototype.parse.call(this, a); }; - b.prototype.createElement = function(a, b, c, d) { - return this.kf.createElement(a, b, c, d); + O.prototype = Object.create(b.prototype); + O.prototype.constructor = O; + O.prototype.parse = function(a) { + if (!b.prototype.parse.call(this, a)) return !1; + if (a = this.Ao("tfhd")) this.or = a.Mma ? a.or : this.u.$w.startOffset; + return !0; }; - b.prototype.Vn = function(a, b, c, g) { - a = void 0 === a ? 26 : a; - b = void 0 === b ? 26 : b; - return "display:inline-block;border:" + (void 0 === c ? 0 : c) + "px solid " + d.Jv + ";padding:3px;" + (isNaN(a) ? "" : "height:" + a + "px") + ";" + (isNaN(b) ? "" : "width:" + b + "px") + ";margin:0px 3px;background-color:transparent;" + (g ? "border-radius:" + g + "px;" : ""); + U.prototype = new fa(); + U.prototype.constructor = U; + U.prototype.parse = function() { + var a, b, p, l, d, g; + a = this.u; + b = a.offset; + this.He(); + if (1 === this.version) { + this.u.Hb("translating vpcC box to draft equivalent"); + a.offset += 2; + for (var c = a.offset, d = a.Sc(), f = a.Sc(), g = a.Sc(), k = a.Sc(), h = a.lf(), m = [], p = 0; p < h; ++p) m = a.Sc(); + p = (d & 240) >>> 4; + l = (d & 14) >>> 1; + d = d & 1; + g = 16 === g ? 1 : 0; + f != k && this.u.fa("VP9: Has the VP9 spec for vpcC changed? colourPrimaries " + f + " and matrixCoefficients " + k + " should be the same value!"); + k = 2; + switch (f) { + case 1: + k = 2; + break; + case 6: + k = 1; + break; + case 9: + k = 5; + break; + default: + this.u.fa("VP9: Unknown colourPrimaries " + f + "! Falling back to default color space VP9_COLOR_SPACE_BT709_6 (2)"); + } + this.version = 0; + a.view.setUint8(b, this.version); + a.view.setUint8(c++, p << 4 | k); + a.view.setUint8(c++, l << 4 | g << 1 | d); + h += 2; + m.push(0, 0); + a.view.setUint16(c, h); + c += 2; + m.forEach(function(b) { + a.view.setUint8(c++, b); + }); + } + return !0; }; - F = b; - F.P$a = "logDxDisplay"; - F = f.__decorate([l.N(), f.__param(0, l.j(r.mj)), f.__param(1, l.j(n.eg)), f.__param(2, l.j(g.Re)), f.__param(3, l.j(k.xh)), f.__param(4, l.j(G.ou)), f.__param(5, l.j(y.S9)), f.__param(6, l.j(q.Ee)), f.__param(7, l.j(m.Iba)), f.__param(8, l.j(a.fk))], F); - c.oza = F; - }, function(f, c, a) { - var d, h, l, g, m; - - function b(a, b) { - a = l.we.call(this, a) || this; - a.Lv = b; - a.Hj = "LogDisplayConfigImpl"; - return a; - } - Object.defineProperty(c, "__esModule", { - value: !0 - }); - f = a(1); - d = a(0); - h = a(54); - l = a(53); - g = a(39); - a = a(161); - oa(b, l.we); - pa.Object.defineProperties(b.prototype, { - tH: { - configurable: !0, - enumerable: !0, + G.prototype = new fa(); + G.prototype.constructor = G; + G.nl = "tfhd"; + Object.defineProperties(G.prototype, { + Mma: { get: function() { - return !0; + return this.me & 1; } }, - vA: { - configurable: !0, - enumerable: !0, + Dmb: { get: function() { - return this.Lv.vA; + return this.me & 2; } }, - yma: { - configurable: !0, - enumerable: !0, + F3a: { get: function() { - return -1; + return this.me & 8; } - } - }); - m = b; - f.__decorate([h.config(h.We, "renderDomDiagnostics")], m.prototype, "tH", null); - f.__decorate([h.config(h.ola, "logDisplayMaxEntryCount")], m.prototype, "vA", null); - f.__decorate([h.config(h.ola, "logDisplayAutoshowLevel")], m.prototype, "yma", null); - m = f.__decorate([d.N(), f.__param(0, d.j(g.nk)), f.__param(1, d.j(a.WJ))], m); - c.nza = m; - }, function(f, c, a) { - var d, h; - - function b() { - this.R4 = ""; - this.fta = [ - [], - [] - ]; - this.T = [ - [], - [] - ]; - } - Object.defineProperty(c, "__esModule", { - value: !0 - }); - f = a(1); - d = a(0); - a(7); - h = a(83); - b.prototype.downloadRequest = function(a) { - var b; - "" === this.R4 && (this.R4 = a.wo); - if (!a.zc) { - b = this.bbb(a); - this.T[a.O].push(b); - this.fta[a.O].forEach(function(a) { - a.Ikb(b); - }); - } - }; - b.prototype.bbb = function(a) { - return { - id: this.zXa(a), - wo: a.wo, - O: a.O, - Gv: a.Gv, - startTime: a.hb, - endTime: a.Lg, - offset: a.mh, - BE: a.BE, - AE: a.AE, - duration: a.gd, - J: a.J, - state: h.R6.hia, - UP: !1, - Qob: !1, - Dka: !1, - Smb: h.Q6.waiting - }; - }; - b.prototype.zXa = function(a) { - return a.oi(); - }; - b.prototype.update = function(a) { - this.fta[a.O].forEach(function(b) { - b.Atb(a); - }); - }; - pa.Object.defineProperties(b.prototype, { - wo: { - configurable: !0, - enumerable: !0, + }, + I3a: { get: function() { - return this.R4; + return this.me & 16; } - } - }); - a = b; - a = f.__decorate([d.N()], a); - c.Tta = a; - }, function(f, c, a) { - var d, h; - - function b(a) { - this.vTa = a; - } - Object.defineProperty(c, "__esModule", { - value: !0 - }); - f = a(1); - d = a(0); - a = a(321); - b.prototype.Xc = function() { - var a; - a = this; - this.Ig || (this.Ig = new Promise(function(b, c) { - var d; - d = []; - a.vTa.forEach(function(a) { - d.push(a.Xc()); - }); - Promise.all(d).then(function() { - b(); - })["catch"](function(a) { - c(a); - }); - })); - return this.Ig; - }; - h = b; - h = f.__decorate([d.N(), f.__param(0, d.tt(a.b8))], h); - c.Uwa = h; - }, function(f, c) { - function a(a) { - this.is = a; - this.b0a = "#881391"; - this.W$a = "#C41A16"; - this.NNa = this.H3a = "#1C00CF"; - this.y_a = "#D79BDB"; - this.$bb = this.F3a = "#808080"; - } - Object.defineProperty(c, "__esModule", { - value: !0 - }); - a.prototype.sm = function(a) { - return this.getValue("~~NONAME~~", a); - }; - a.prototype.Ss = function(a, c) { - return '' + a + ": "; - }; - a.prototype.wja = function(a, c) { - c = c || ""; - a = "" + ('
  • ' + this.Ss(a) + "Array[" + c.length + "]"); - a += "
      "; - for (var b = 0; b < c.length; ++b) a += this.getValue(b.toString(), c[b]); - a += this.getValue("length", c.length, !0); - return a + "
  • "; - }; - a.prototype.bka = function(a, c) { - var b, d, g; - b = this; - if (c instanceof CryptoKey) return this.VWa(a, c); - d = Object.keys(c); - g = ""; - g = g + ('
  • ' + ("~~NONAME~~" !== a ? this.Ss(a) : "") + "Object"); - g = g + "
      "; - d.forEach(function(a) { - g += b.getValue(a, c[a]); - }); - g += "
    "; - return g += "
  • "; - }; - a.prototype.VWa = function(a, c) { - a = "" + ('
  • ' + this.Ss(a) + "CryptoKey"); - a = a + "
      " + this.bka("algorithm", c.algorithm); - a += this.Bja("extractable", c.extractable); - a += this.rka("type", c.type); - a += this.wja("usages", c.usages); - return a + "
  • "; - }; - a.prototype.cYa = function(a, c, f) { - return '
  • ' + this.Ss(a, void 0 === f ? !1 : f) + ('' + c.toString() + "") + "
  • "; - }; - a.prototype.Bja = function(a, c, f) { - return '
  • ' + this.Ss(a, void 0 === f ? !1 : f) + ('' + c.toString() + "") + "
  • "; - }; - a.prototype.rka = function(a, c, f) { - 128 < c.length && (c = c.substr(0, 128) + "..."); - return '
  • ' + this.Ss(a, void 0 === f ? !1 : f) + ('"' + c + '"') + "
  • "; - }; - a.prototype.bYa = function(a) { - return '
  • ' + this.Ss(a) + ('null') + "
  • "; - }; - a.prototype.aZa = function(a, c) { - c = "undefined" === typeof c ? "" : c.toString(); - 255 < c.length && (c = c.substr(0, 255) + "..."); - return '
  • ' + this.Ss(a) + ('' + c + "") + "
  • "; - }; - a.prototype.getValue = function(a, c, f) { - f = void 0 === f ? !1 : f; - return null === c ? "" + this.bYa(a) : this.is.Gn(c) ? "" + this.wja(a, c) : this.is.ov(c) ? "" + this.bka(a, c) : this.is.Xg(c) ? "" + this.rka(a, c, f) : this.is.ye(c) ? "" + this.cYa(a, c, f) : this.is.Vy(c) ? "" + this.Bja(a, c, f) : "" + this.aZa(a, c); - }; - c.zFa = a; - }, function(f, c, a) { - var d, h, l, g, m; - - function b(a, b, c) { - var d; - d = m.gK.call(this, a, b, "idb") || this; - d.md = c; - d.yqa = function(a) { - d.TSa(a.target.id).then(function() { - return d.refresh(); - }); - }; - d.e4a = function() { - d.cPa().then(function() { - return d.refresh(); - }); - }; - d.n4a = function() { - d.refresh(); - }; - d.f4a = function() { - d.QPa(); - }; - return d; - } - Object.defineProperty(c, "__esModule", { - value: !0 - }); - f = a(1); - d = a(0); - h = a(26); - l = a(20); - g = a(148); - m = a(320); - oa(b, m.gK); - b.prototype.Xc = function() { - var a; - a = this; - if (this.Wi) return Promise.resolve(); - t.addEventListener("keydown", function(b) { - b.ctrlKey && b.altKey && b.shiftKey && 73 == b.keyCode && a.toggle(); - }); - return this.md.create().then(function(b) { - a.storage = b; - a.Wi = !0; - }); - }; - b.prototype.N_ = function() { - return '' + ('#') + ('Name') + ('Value') + ('') + ""; - }; - b.prototype.$_ = function(a, b, c) { - var d; - a = a.toString(); - d = '"' + b + '"'; - c = this.qga.sm({ - name: b, - data: c - }); - return "" + ('' + a + "") + ('' + d + "") + ('
      ' + c + "
    ") + ('
    ') + ""; - }; - b.prototype.f0 = function(a) { - for (var b = '' + this.N_(), c = Object.keys(a), d = 0; d < c.length; ++d) b += this.$_(d, c[d], a[c[d]]); - return b + "
    "; - }; - b.prototype.Ija = function() { - var a, b, c; - a = this.kf.createElement("button", m.VI, "Clear", { - "class": this.prefix + "-display-btn" - }); - b = this.kf.createElement("button", m.VI, "Refresh", { - "class": this.prefix + "-display-btn" - }); - c = this.kf.createElement("button", m.VI, "Copy", { - "class": this.prefix + "-display-btn" - }); - a.onclick = this.e4a; - b.onclick = this.n4a; - c.onclick = this.f4a; - return [a, b, c]; - }; - b.prototype.S0a = function() { - var a; - a = this; - return this.storage.loadAll().then(function(b) { - a.Yka = b.reduce(function(a, b) { - a[b.key] = b.value; - return a; - }, {}); - return a.Yka; - }); - }; - b.prototype.TSa = function(a) { - return this.storage.remove(a); - }; - b.prototype.cPa = function() { - return this.storage.removeAll(); - }; - b.prototype.Xpa = function() { - var a; - a = this; - return this.S0a().then(function(b) { - return a.f0(b); - }); - }; - b.prototype.QPa = function() { - var a; - a = JSON.stringify(this.Yka, null, 4); - this.qha(a); - }; - a = b; - a = f.__decorate([d.N(), f.__param(0, d.j(h.Re)), f.__param(1, d.j(l.rd)), f.__param(2, d.j(g.CT))], a); - c.Zfb = a; - }, function(f, c, a) { - var d, h, l, g, m, k, r, u; - - function b(a) { - return function() { - return new Promise(function(b, c) { - var d; - d = a.kc.get(h.d8); - d.Xc().then(function() { - b(d); - })["catch"](function(a) { - c(a); - }); - }); - }; - } - Object.defineProperty(c, "__esModule", { - value: !0 - }); - f = a(0); - d = a(321); - a(614); - h = a(319); - l = a(612); - g = a(83); - m = a(611); - k = a(318); - r = a(610); - u = a(609); - a(608); - c.YTa = new f.dc(function(a) { - a(k.S9).to(r.nza).Y(); - a(d.b8).to(u.oza); - a(g.P6).to(m.Tta).Y(); - a(h.d8).to(l.Uwa).Y(); - a(h.c8).OB(b); - }); - }, function(f, c, a) { - var d, h, l, g, m; - - function b(a, b, c, d) { - this.Cv = b; - this.mm = c; - this.Wd = d; - this.log = a.Bb("OfflinePboEventSenderImpl"); - this.Wd.Fm.subscribe(this.Z0.bind(this)); - } - Object.defineProperty(c, "__esModule", { - value: !0 - }); - f = a(1); - d = a(63); - h = a(61); - l = a(12); - g = a(85); - a = a(0); - b.prototype.Z0 = function(a) { - this.Fm = a; - }; - b.prototype.oB = function() { - return Promise.resolve(); - }; - b.prototype.GH = function(a) { - var b, c; - b = this; - if (this.Fm) return Promise.reject("Not sending event offline"); - c = this.Cv(h.gg.stop); - return this.mm().then(function(d) { - return c.Pf(b.log, d.Xn(a.profileId), a); - }).then(function() {})["catch"](function(a) { - b.log.error("PBO event failed", a); - throw a; - }); - }; - b.prototype.Kq = function() { - return Promise.resolve(); - }; - m = b; - m = f.__decorate([a.N(), f.__param(0, a.j(l.Jb)), f.__param(1, a.j(h.mJ)), f.__param(2, a.j(d.gn)), f.__param(3, a.j(g.Wq))], m); - c.kBa = m; - }, function(f, c, a) { - var d, h, l, g; - - function b(a, b, c) { - this.Cv = b; - this.mm = c; - this.log = a.Bb("OfflinePboEventSenderImpl"); - } - Object.defineProperty(c, "__esModule", { - value: !0 - }); - f = a(1); - d = a(63); - h = a(61); - l = a(12); - a = a(0); - b.prototype.oB = function(a, b) { - var c; - c = this.Cv(h.gg.start); - return this.Iia(c, a, b); - }; - b.prototype.GH = function(a) { - var b, c; - b = this; - c = this.Cv(h.gg.stop); - return this.mm().then(function(d) { - return c.Pf(b.log, d.Xn(a.profileId), a); - }).then(function() {})["catch"](function(a) { - b.log.error("PBO event failed", a); - throw a; - }); - }; - b.prototype.Kq = function(a, b, c) { - a = this.Cv(a); - return this.Iia(a, b, c); - }; - b.prototype.Iia = function(a, b, c) { - var d; - d = this; - return this.mm().then(function(g) { - return a.Am(d.log, g.Xn(c.profileId), b.Sa.mt, c); - }).then(function() {})["catch"](function(a) { - d.log.error("PBO event failed", a); - throw a; - }); - }; - g = b; - g = f.__decorate([a.N(), f.__param(0, a.j(l.Jb)), f.__param(1, a.j(h.mJ)), f.__param(2, a.j(d.gn))], g); - c.mBa = g; - }, function(f, c, a) { - var d, h; - - function b(a, b) { - this.b5 = { - online: a, - offline: b - }; - } - Object.defineProperty(c, "__esModule", { - value: !0 + }, + G3a: { + get: function() { + return this.me & 32; + } + } }); - f = a(1); - d = a(199); - a = a(0); - b.prototype.oB = function(a, b) { - return this.b5[b.type].oB(a, b); + G.prototype.parse = function() { + this.He(); + this.Caa = this.u.fb(); + this.or = this.Mma ? this.u.rh() : void 0; + this.Dmb && this.u.fb(); + this.Mx = this.F3a ? this.u.fb() : void 0; + this.xQ = this.I3a ? this.u.fb() : void 0; + this.wQ = this.G3a ? this.u.fb() : void 0; + return !0; }; - b.prototype.GH = function(a) { - return this.b5[a.type].GH(a); + S.prototype = new fa(); + S.prototype.constructor = S; + S.prototype.parse = function() { + this.He(); + this.aH = 1 === this.version ? this.u.rh() : this.u.fb(); + return !0; }; - b.prototype.Kq = function(a, b, c) { - return this.b5[c.type].Kq(a, b, c); + S.prototype.$c = function(a) { + var b; + b = this.startOffset + 12; + this.aH += a; + 1 === this.version ? this.u.yWa(this.aH, b) : this.u.jl(this.aH, !1, b); }; - h = b; - h = f.__decorate([a.N(), f.__param(0, a.j(d.dy)), f.__param(0, a.yR("type", "online")), f.__param(1, a.j(d.dy)), f.__param(1, a.yR("type", "offline"))], h); - c.TCa = h; - }, function(f, c, a) { - var d, h, l, g, m, k; - - function b(a, b) { - a = h.we.call(this, a) || this; - a.config = b; - a.Hj = "PlaydataConfigImpl"; - return a; - } - Object.defineProperty(c, "__esModule", { - value: !0 - }); - f = a(1); - d = a(0); - h = a(53); - l = a(39); - g = a(54); - m = a(7); - a = a(47); - oa(b, h.we); - pa.Object.defineProperties(b.prototype, { - QA: { - configurable: !0, - enumerable: !0, + T.prototype = new fa(); + T.prototype.constructor = T; + Object.defineProperties(T.prototype, { + Hoa: { get: function() { - return this.config.Jl ? "unsentplaydatatest" : "unsentplaydata"; + return this.me & 1; } }, - Z4: { - configurable: !0, - enumerable: !0, + A3: { get: function() { - return !0; + return this.me & 4; } }, - Wqa: { - configurable: !0, - enumerable: !0, + xU: { get: function() { - return m.Cb(1E4); + return this.me & 256; } }, - t3: { - configurable: !0, - enumerable: !0, + yU: { get: function() { - return m.Cb(4E3); + return this.me & 512; } }, - Yla: { - configurable: !0, - enumerable: !0, + mza: { + get: function() { + return this.me & 1024; + } + }, + S9: { get: function() { - return m.Cb(1E4); + return this.me & 2048; } } }); - k = b; - f.__decorate([g.config(g.string, "playdataPersistKey")], k.prototype, "QA", null); - f.__decorate([g.config(g.We, "sendPersistedPlaydata")], k.prototype, "Z4", null); - f.__decorate([g.config(g.cj, "playdataSendDelayMilliseconds")], k.prototype, "Wqa", null); - f.__decorate([g.config(g.cj, "playdataPersistIntervalMilliseconds")], k.prototype, "t3", null); - f.__decorate([g.config(g.cj, "heartbeatCooldown")], k.prototype, "Yla", null); - k = f.__decorate([d.N(), f.__param(0, d.j(l.nk)), f.__param(1, d.j(a.oj))], k); - c.DDa = k; - }, function(f, c, a) { - var d, h, l, g, m; - - function b(a, b, c, d) { - this.log = a; - this.$v = b; - this.JQ = c; - this.context = d; - } - Object.defineProperty(c, "__esModule", { - value: !0 + T.prototype.parse = function() { + this.He(); + this.Uma = this.u.offset; + this.Ed = this.u.fb(); + this.Fr = this.Hoa ? this.u.m_() : 0; + this.A3 && this.u.fb(); + this.GK = (this.xU ? 4 : 0) + (this.yU ? 4 : 0) + (this.mza ? 4 : 0) + (this.S9 ? 4 : 0); + this.kR = this.u.offset; + ja(this.Hoa, "Expected data offset to be present in Track Run"); + ja(this.length - (this.u.offset - this.startOffset) === this.Ed * this.GK, "Expected remaining data in box to be sample information"); + return !0; + }; + T.prototype.yG = function(a, b, c) { + var d, f, g; + d = this.xU ? this.u.fb() : a.Mx; + f = this.yU ? this.u.fb() : a.xQ; + a = this.mza ? this.u.fb() : a.wQ; + g = 0 === this.version ? this.S9 ? this.u.fb() : 0 : this.S9 ? this.u.m_() : 0; + return { + Cmb: g, + jIb: a, + zHb: c + g - (void 0 !== b ? b : g), + xs: f, + HK: d + }; + }; + T.prototype.$c = function(a, b, c, d, f, g, k) { + var h, m, p, l; + h = 0; + m = 0; + this.u.offset = this.kR; + for (d = 0; d < f; ++d) l = this.yG(b, p, m), 0 == d && (p = l.Cmb), h += l.xs, m += l.HK; + d = f; + f = this.u.offset; + l = this.yG(b, p, m); + this.lE = d; + this.Gob = m; + if (k) { + if (this.TD = this.Fr + h, this.ss = 0, d === this.Ed) return !0; + } else if (this.TD = this.Fr, this.ss = h, 0 === d) return !0; + if (0 === d || d === this.Ed) return !1; + this.Dpa = !0; + if (k) { + this.ss += l.xs; + for (k = d + 1; k < this.Ed; ++k) l = this.yG(b, p, m), this.ss += l.xs; + this.u.offset = this.Uma; + this.Ed = d; + this.u.jl(this.Ed); + this.u.wO(g); + this.A3 && (this.u.offset += 4); + this.uj(this.length - (f - this.startOffset), f); + } else b = f - this.kR, this.u.offset = this.Uma, this.Ed -= d, this.u.jl(this.Ed), this.Fr += h, this.u.wO(g), this.u.Cla(this.Fr), this.A3 && (this.u.offset += 4), this.uj(b, this.u.offset); + c.uj(this.ss, a.or + this.TD); + return !0; + }; + T.prototype.Qlb = function(a, b, c, d, f, g) { + var h; + if (d) { + d = this.TD; + for (var k = this.Ed - 1; 0 <= k && this.Ed - k <= f; --k) { + this.u.offset = this.kR + k * this.GK; + h = this.yG(b); + if (h.HK != g.duration) { + this.u.fa("Could not replace sample of duration " + h.HK + " with silence of duration " + g.duration); + break; + } + if (this.yU) this.u.offset -= this.GK - (this.xU ? 4 : 0), this.u.jl(g.As.byteLength); + else if (g.As.byteLength !== h.xs) { + this.u.fa("Cannot replace sample with default size with silence of different size"); + break; + } + d -= h.xs; + c.eB(h.xs, g.As, a.or + d); + } + } else + for (d = this.TD + this.ss, k = 0; k < this.Ed && k < f; ++k) { + this.u.offset = this.kR + (k + this.lE) * this.GK; + h = this.yG(b); + if (h.HK != g.duration) { + this.u.fa("Could not replace sample of duration " + h.HK + " with silence of duration " + g.duration); + break; + } + if (this.yU) this.u.offset -= this.GK - (this.xU ? 4 : 0), this.u.jl(g.As.byteLength); + else if (g.As.byteLength !== h.xs) { + this.u.fa("Cannot replace sample with default size with silence of different size"); + break; + } + c.eB(h.xs, g.As, a.or + d); + d += h.xs; + } + }; + H.prototype = Object.create(fa.prototype); + H.prototype.constructor = H; + Object.defineProperties(H.prototype, { + xx: { + get: function() { + return this.me & 1; + } + } }); - d = a(3); - c = a(2); - h = a(26); - l = a(62); - g = a(335); - m = c.v; - b.prototype.kd = function(a) { - var b, c; - b = this; - (this.context.Ke || this.context.dt) && this.log.debug("Requesting a license", a); - d.Z.get(h.Re).ws([8, 4], a.Fj[0].data) ? (b.log.trace("Requesting WideVine attestation data."), c = Promise.resolve({ - eo: [{ - sessionId: a.Fj[0].sessionId, - data: new Uint8Array(d.Z.get(l.fl).decode(g.cca)) - }] - })) : c = function() { - b.log.trace("Requesting license", { - drmType: a.ii - }); - return b.$v(a)["catch"](function(a) { - b.log.error("Unable to get the Widevine license", a); - throw { - code: m.mu, - tb: a.tb, - Sc: a.Sc, - Jj: a.Jj, - ne: a.message || a.ne, - ji: a.data, - message: "Unable to send the Widevine license request. " + (a.message || a.ne), - cause: a - }; - }); - }(); - return c; + H.prototype.parse = function() { + this.He(); + this.xx && this.u.xG(); + this.xx && this.u.fb(); + this.H3a = this.u.Sc(); + this.Ed = this.u.fb(); + this.u.JO(this.Ed); + return !0; }; - b.prototype.stop = function(a) { - var b; - b = this; - this.log.trace("Releasing Widevine license"); - return this.JQ(a)["catch"](function(a) { - b.log.error("Unable to release the Widevine license.", { - code: a.code, - subCode: a.tb, - extCode: a.Sc, - edgeCode: a.Jj, - message: a.message || a.ne + H.prototype.$c = function(a, b) { + if (a && 0 === this.H3a) { + a = b ? this.Ed - a : a; + this.u.offset = this.startOffset + 13 + (this.xx ? 8 : 0); + this.Ed -= a; + this.u.jl(this.Ed); + this.Q9 = 0; + if (b) this.u.offset += this.Ed; + else { + for (b = 0; b < a; ++b) this.Q9 += this.u.Sc(); + this.u.offset -= a; + } + this.uj(a, this.u.offset); + } + return !0; + }; + R.prototype = Object.create(fa.prototype); + R.prototype.constructor = R; + Object.defineProperties(R.prototype, { + xx: { + get: function() { + return this.me & 1; + } + } + }); + R.prototype.parse = function() { + this.He(); + this.xx && this.u.xG(); + this.xx && this.u.fb(); + this.wl = this.u.fb(); + ja(1 === this.wl, "Expected a single entry in Sample Auxiliary Information Offsets box"); + this.Fr = 0 === this.version ? this.u.m_() : this.u.TUa(); + return !0; + }; + R.prototype.$c = function(a, b) { + this.Fr += a; + this.u.offset = this.startOffset + 16 + (this.xx ? 8 : 0) + (0 === this.version ? 0 : 4); + this.u.wO(b); + this.u.Cla(this.Fr); + return !0; + }; + aa.prototype = Object.create(fa.prototype); + aa.prototype.constructor = aa; + Object.defineProperties(aa.prototype, { + Wwa: { + get: function() { + return this.me & 1; + } + }, + esb: { + get: function() { + return this.me & 2; + } + } + }); + aa.prototype.parse = function() { + this.He(); + this.Wwa && (this.u.fb(), this.Vcb = this.u.JO(16)); + this.Ed = this.u.fb(); + return !0; + }; + aa.prototype.$c = function(a, b) { + var c, d; + c = b ? this.Ed - a : a; + this.u.offset = this.startOffset + 28 + (this.Wwa ? 20 : 0); + this.Ed -= c; + this.u.jl(this.Ed); + a = this.u.offset; + if (this.esb) + for (c = b ? this.Ed : c; 0 < c; --c) { + this.u.offset += 8; + d = this.u.lf(); + this.u.offset += 6 * d; + } else this.u.offset += 8 * (b ? this.Ed : c); + b ? this.uj(this.length - (this.u.offset - this.startOffset), this.u.offset) : this.uj(this.u.offset - a, a); + }; + ca.prototype = Object.create(fa.prototype); + ca.prototype.constructor = ca; + ca.prototype.parse = function() { + this.He(); + return !0; + }; + ca.prototype.$c = function(a, b, c) { + c ? this.uj(b - a, this.startOffset + 12 + a) : this.uj(a, this.startOffset + 12); + return !0; + }; + Z.prototype = Object.create(fa.prototype); + Z.prototype.constructor = Z; + Z.prototype.parse = function() { + this.He(); + this.u.xG(); + 1 === this.version && this.u.fb(); + this.wl = this.u.fb(); + this.IK = []; + for (var a = 0; a < this.wl; ++a) + for (var b = this.u.fb(), c = this.u.fb(), d = 0; d < b; ++d) this.IK.push(c); + return !0; + }; + Z.prototype.$c = function(a, b) { + this.IK = b ? this.IK.slice(0, a) : this.IK.slice(a); + a = this.IK.reduce(function(a, b) { + 0 !== a.length && a[a.length - 1].group === b || a.push({ + group: b, + count: 0 }); - throw { - K: !1, - code: m.GU, - tb: a.tb, - Sc: a.Sc, - Jj: a.Jj, - ne: a.message || a.ne, - message: "Unable to release the Widevine license. " + (a.message || a.ne), - cause: a - }; - }); + ++a[a.length - 1].count; + return a; + }, []); + this.u.offset = this.startOffset + 16 + (1 === this.version ? 4 : 0); + this.u.jl(a.length); + a.forEach(function(a) { + this.u.jl(a.count); + this.u.jl(a.group); + }.bind(this)); + this.wl > a.length && this.uj(8 * (this.wl - a.length)); + this.wl = a.length; + return !0; }; - f.P = b; - }, function(f, c, a) { - var q, w, t, x, y, C, F, N; - - function b(a, c, d, g) { - var f; - f = this; - this.log = a; - this.XF = c; - this.Vj = d || n.bind(this); - this.context = g; - this.Koa = this.Dk = this.pd = this.keySessionId = this.$e = this.Oh = void 0; - this.de = {}; - this.onMessage = k.bind(this); - this.h4a = r.bind(this); - this.QV = {}; - this.hta = new Promise(function(a, b) { - f.d8a = a; - f.Zpa = b; - }); - this.hta["catch"](function(a) { - f.log.error("wait for license rejected", a); - }); - this.fj = function(a, b) { - f.Zpa(a, b); - f.context.onerror(a, b); - }; - this.i4a = function() { - f.d8a(); - }; - if (!(this instanceof b)) throw new TypeError("EmeSession constructor not called correctly."); - } - - function d() { - return q.Z.get(x.fl); - } + Q.prototype = Object.create(fa.prototype); + Q.prototype.constructor = Q; + Q.prototype.parse = function() { + return !0; + }; + Ta = { + Wb: { + moov: c, + trak: b, + mdia: b, + mdhd: f, + minf: b, + pssh: l, + encv: w, + schi: b, + sidx: p, + sinf: b, + stbl: b, + stsd: n, + tenc: P, + mvex: b, + moof: N, + traf: O, + tfhd: G, + trun: T, + sbgp: Z, + sdtp: ca, + saiz: H, + saio: R, + tfdt: S, + mdat: Q, + vmaf: m + }, + brb: { + vpcC: U, + SmDm: Y("smdm"), + CoLL: Y("coll") + }, + Wqb: { + avcC: D, + schm: z + }, + R9: { + "ac-3": q, + "ec-3": q, + dac3: v, + dec3: t, + avc1: w, + avc3: w, + avc2: w, + avc4: w, + hvc1: w, + hev1: w + }, + xu: { + base: hb + } + }; + [na, ba, da, d, ha, ka, ia, a].forEach(function(a) { + Ta.Wb[a.nl] = a; + }); + [ta, nb].forEach(function(a) { + Ta.R9[a.nl] = a; + }); + [tb, Qa, cb].forEach(function(a) { + Ta.xu[a.tag] = a; + }); + Ta.Wb[ea.XKa] = h; + Ta.Wb[ea.YKa] = k; + Ta.Wb[ea.OLa] = P; + Ta.Wb[ea.$X] = F; + Ta.Wb[ea.YX] = A; + Ta.Wb[ea.Kfa] = aa; + Ta.R9[ea.ZX] = ua; + Ta.Sba = fa; + g.M = Ta; + }, function(g, d, a) { + (function() { + var x7C, F, A, N, O, Y, U, G, S, T, H, R, aa, ca, Z, Q, ja, ea, ma, va, fa, ba, da, ha, ka, ia, na, oa, qa, ta, f36, B26, e26, d26, M26; - function h() { - return q.Z.get(t.Re); - } + function b(a, b) { + var H7C; + H7C = 2; + while (H7C !== 1) { + switch (H7C) { + case 4: + return b.Dd / a.Dd; + break; + H7C = 1; + break; + case 2: + return b.Dd - a.Dd; + break; + } + } + } - function l(a, b, c) { - return { - K: !1, - code: b, - tb: F.aD.te, - message: c + " " + a.message, - za: h().yc(a), - cause: a, - Ifa: !0 - }; - } + function v(a, b, c, d) { + var h4C; + h4C = 2; + while (h4C !== 23) { + switch (h4C) { + case 6: + this.XN = !1; + this.NA = []; + this.gx = {}; + this.on = this.addEventListener = ma.addEventListener; + h4C = 11; + break; + case 11: + this.removeEventListener = ma.removeEventListener; + this.emit = this.Ia = ma.Ia; + h4C = 20; + break; + case 4: + this.Gb = Object.create(null); + this.st = 0; + this.vg = []; + this.pG = b.uQ; + this.ox = []; + h4C = 6; + break; + case 2: + this.$a = a; + this.lm = Object.create(null); + this.qm = b; + h4C = 4; + break; + case 20: + this.PSa = p.bind(this); + this.Vt = (this.qm.Nz || this.qm.cCa) && 0 < (this.qm.aC || (N.options || {}).aT || 0); + this.VRa = this.qm.GDb; + h4C = 17; + break; + case 17: + this.yn = this.qm.qfb; + this.dTa = this.qm.nfb; + this.dka = !1; + this.Rg = this.UZ = void 0; + this.Vt && (this.qm.aC || (this.qm.aC = (N.options || {}).aT || 0), this.Jt = new Z(function(a, b) { + var p4C; + p4C = 2; + while (p4C !== 1) { + switch (p4C) { + case 2: + (void 0 !== d ? d.hta : function(a) { + var g4C; + g4C = 2; + while (g4C !== 1) { + switch (g4C) { + case 4: + return fa.hta(N, this.qm, a); + break; + g4C = 1; + break; + case 2: + return fa.hta(N, this.qm, a); + break; + } + } + }.bind(this))(function(c) { + var z4C, G26; + z4C = 2; + while (z4C !== 4) { + G26 = "Media c"; + G26 += "ache did not initializ"; + G26 += "e"; + switch (z4C) { + case 2: + this.Rg = c; + this.dka = c.Nm; + (this.UZ = c.iy) ? b(this.UZ): this.dka ? (q(this.Rg, this), a()) : b(Error(G26)); + z4C = 4; + break; + } + } + }.bind(this)); + p4C = 1; + break; + } + } + }.bind(this))); + this.Xj = c; + h4C = 24; + break; + case 24: + aa.call(this); + h4C = 23; + break; + } + } + } - function g(a, b, c, d) { - return function(g) { - if (g && g.Ifa) return Promise.reject(g); - a.error(c, g); - if (!d) return Promise.resolve(); - g = l(g, b, c); - return Promise.reject(g); - }; - } + function P(a) { + var V4C, b; + V4C = 2; + while (V4C !== 3) { + switch (V4C) { + case 2: + b = { + Bc: a.isHeader, + P: a.mediaType, + R: a.movieId, + Ya: a.streamId, + O: a.bitrate, + location: a.location, + cd: a.serverId, + Z: a.bytes, + offset: a.offset, + Wn: a.headerData, + Y: a.fragments, + Ne: a.drmHeader, + response: a.response, + ha: a.timescale, + Ka: a.frameDuration, + Ib: a.startTicks, + Ah: a.durationTicks, + Nb: a.startTicks + a.durationTicks, + Vd: a.saveToDisk + }; + !b.Y || b.Y instanceof ArrayBuffer || (b.Y.Rl = b.Y.startTicks, b.Y.offset = b.Y.offset, b.Y.ha = b.Y.timescale, b.Y.sizes = new Uint32Array(a.sizes), b.Y.Sd = new Uint32Array(a.durations)); + return b; + break; + } + } + } - function m(a, b, c) { - a.ct() && a.log.trace("LICENSE: Got the response, calling update", { - sessionId: c.sessionId, - license: d().encode(b) - }); - return new Promise(function(d, g) { - c.update(b).then(function() { - a.ct() && a.log.trace("LICENSE: Update succeeded", { - sessionId: c.sessionId - }); - d(); - })["catch"](function(b) { - var c; - c = h().PWa(b); - c.code = F.nj.$$; - c.message = "Unable to update the EME."; - a.log.error("LICENSE: Unable to update the EME.", b); - g(c); - }); - }); - } + function m(a, b) { + var G7C, c; + G7C = 2; + while (G7C !== 4) { + switch (G7C) { + case 2: + c = Object.keys(a).map(function(c) { + var y7C; + y7C = 2; + while (y7C !== 1) { + switch (y7C) { + case 2: + return Z.resolve(a[c]).then(l.bind(this, b)); + break; + } + } + }.bind(this)); + return Z.all(c).then(function(a) { + var X7C; + X7C = 2; + while (X7C !== 1) { + switch (X7C) { + case 2: + a.sort(function(a, b) { + var e7C; + e7C = 2; + while (e7C !== 1) { + switch (e7C) { + case 2: + return a.Bc === b.Bc ? 0 : a.Bc ? -1 : 1; + break; + } + } + }).map(n.bind(this, b)); + X7C = 1; + break; + } + } + }.bind(this)); + break; + } + } + } - function k(a) { - var b, c, g; - b = this; - c = new Uint8Array(a.message); - g = { - sessionId: b.nka()[0], - messageType: a.messageType - }; - b.ct() && (g.message = d().encode(new Uint8Array(a.message))); - b.log.trace("Received event: " + a.type, g); - "license-renewal" === a.messageType ? (b.Vj("renew_lc"), a = { - Rf: y.tc.cza.vr, - pP: a.messageType, - ii: /clearkey/i.test(b.$e.keySystem) ? "clearkey" : "widevine", - Fj: [{ - data: c, - sessionId: b.nka()[0] - }] - }, b.context.Ta.kd(a).then(function(a) { - b.Vj("renew_lr"); - if (!b.CY) return m(b, a.eo[0].data, b.$e).then(function() { - b.Vj("renew_ld"); - })["catch"](function(a) { - b.Vj("renew_ld_failed"); - b.fj && b.fj(a.code, a); - }); - })["catch"](function(a) { - b.Vj("renew_lr_failed"); - b.fj && b.fj(a.code, a); - })) : b.log.error("unrecognized messageType", a.messageType); - } + function p(a, c) { + var F7C, D26; + F7C = 2; + while (F7C !== 1) { + D26 = "Media c"; + D26 += "ache is not enabl"; + D26 += "ed"; + switch (F7C) { + case 2: + return this.Jt ? this.Jt.then(function() { + var C7C, d, f; + C7C = 2; + while (C7C !== 3) { + switch (C7C) { + case 2: + d = N.time.da(); + f = function(a) { + var U7C, b, c, d, b26; + U7C = 2; + while (U7C !== 7) { + b26 = "m"; + b26 += "ov"; + b26 += "i"; + b26 += "eE"; + b26 += "ntry"; + switch (U7C) { + case 9: + this.Rg.gz(b, c); + this.Rg.gz(a, c); + U7C = 7; + break; + case 2: + b = [b26, a].join("."); + a = a.toString(); + c = function(a) { + var E7C; + E7C = 2; + while (E7C !== 1) { + switch (E7C) { + case 2: + a.map(d.bind(this)); + E7C = 1; + break; + case 4: + a.map(d.bind(this)); + E7C = 0; + break; + E7C = 1; + break; + } + } + }.bind(this); + d = function(a) { + var j7C, K26, P26, o26, J26; + j7C = 2; + while (j7C !== 1) { + K26 = "b"; + K26 += "il"; + K26 += "l"; + K26 += "b"; + K26 += "oard"; + P26 = "d"; + P26 += "e"; + P26 += "l"; + P26 += "ete"; + o26 = "b"; + o26 += "i"; + o26 += "l"; + o26 += "lbo"; + o26 += "ard"; + J26 = "b"; + J26 += "illbo"; + J26 += "ard"; + switch (j7C) { + case 4: + this.Rg[J26](o26, a); + j7C = 0; + break; + j7C = 1; + break; + case 2: + this.Rg[P26](K26, a); + j7C = 1; + break; + } + } + }.bind(this); + U7C = 9; + break; + } + } + }.bind(this); + return new Z(function(g) { + var N7C, y26; + N7C = 2; + while (N7C !== 1) { + y26 = "m"; + y26 += "o"; + y26 += "vie"; + y26 += "Entr"; + y26 += "y"; + switch (N7C) { + case 2: + this.Rg.gz([y26, a].join("."), function(k) { + var d7C, h, p, U26, R26; + d7C = 2; + while (d7C !== 7) { + U26 = "bill"; + U26 += "boa"; + U26 += "r"; + U26 += "d"; + R26 = "mediac"; + R26 += "a"; + R26 += "chelookup"; + switch (d7C) { + case 1: + d7C = !k || 0 >= k.length ? 5 : 4; + break; + case 2: + d7C = 1; + break; + case 4: + k = k[0]; + h = function() { + var D7C; + D7C = 2; + while (D7C !== 1) { + switch (D7C) { + case 2: + this.Rg.gz(a, function(b) { + var b7C; + b7C = 2; + while (b7C !== 5) { + switch (b7C) { + case 2: + b = b.reduce(function(a, b) { + var n7C, c, j26; + n7C = 2; + while (n7C !== 8) { + j26 = "drmHea"; + j26 += "de"; + j26 += "r.__"; + j26 += "embed_"; + j26 += "_"; + switch (n7C) { + case 5: + n7C = -1 !== c.indexOf(j26) ? 4 : 3; + break; + case 4: + return a; + break; + case 2: + c = b.substr(0, b.lastIndexOf(".")); + n7C = 5; + break; + case 3: + a[c] ? a[c].push(b) : a[c] = [b]; + return a; + break; + } + } + }, {}); + m.bind(this)(b, c).then(function() { + var r7C, b, c, m26, V26; + r7C = 2; + while (r7C !== 8) { + m26 = "mediacac"; + m26 += "hel"; + m26 += "ookup"; + V26 = "No"; + V26 += " content d"; + V26 += "a"; + V26 += "t"; + V26 += "a found for "; + switch (r7C) { + case 4: + this.Gb[a] && F.ne(this.Gb[a].data) ? (Object.keys(this.Gb[a].data).forEach(function(b) { + var L7C; + L7C = 2; + while (L7C !== 1) { + switch (L7C) { + case 2: + this.Gb[a].data[b].sort(function(a, b) { + var I7C; + I7C = 2; + while (I7C !== 1) { + switch (I7C) { + case 4: + return a.Ib / b.Ib; + break; + I7C = 1; + break; + case 2: + return a.Ib - b.Ib; + break; + } + } + }); + L7C = 1; + break; + } + } + }.bind(this)), c = !0) : na(V26 + a, this.Gb[a]); + this.hB(m26, { + OS: b, + oQ: c + }); + g(this.Gb[a]); + r7C = 8; + break; + case 2: + b = N.time.da() - d; + c = !1; + r7C = 4; + break; + } + } + }.bind(this), function() { + var J7C; + J7C = 2; + while (J7C !== 1) { + switch (J7C) { + case 4: + g(); + J7C = 0; + break; + J7C = 1; + break; + case 2: + g(); + J7C = 1; + break; + } + } + }); + b7C = 5; + break; + } + } + }.bind(this)); + D7C = 1; + break; + } + } + }.bind(this); + d7C = 9; + break; + case 5: + g(), this.hB(R26, { + OS: N.time.da() - d, + oQ: !1 + }); + d7C = 7; + break; + case 9: + p = function(a) { + var k7C; + k7C = 2; + while (k7C !== 1) { + switch (k7C) { + case 2: + return !(F.V(a) || F.Na(a) || F.V(a.ac) || F.Na(a.ac) || F.V(a.R) || F.Na(a.R) || F.V(a.Dd) || F.Na(a.Dd)); + break; + } + } + }; + p(this.Gb[a]) ? h() : this.Rg.read(U26, k, function(c, d) { + var u7C, k, m, f7C; + u7C = 2; + while (u7C !== 9) { + switch (u7C) { + case 3: + p(m) ? (this.Gb[a] = m, ++this.st, this.NN(), this.vg.push(m), this.vg.sort(b), h()) : (f(a), g()); + u7C = 9; + break; + case 2: + try { + f7C = 2; + while (f7C !== 1) { + switch (f7C) { + case 2: + k = JSON.parse(String.fromCharCode.apply(null, new Uint8Array(d))); + f7C = 1; + break; + } + } + } catch (tc) { + k = d; + } + F.V(k) || (m = D(k)); + F.V(m) || F.Na(m) || (m.ac = m.ac || {}, m.headers = m.headers || {}); + u7C = 3; + break; + } + } + }.bind(this)); + d7C = 7; + break; + } + } + }.bind(this)); + N7C = 1; + break; + } + } + }.bind(this)); + break; + } + } + }.bind(this)) : Z.reject(D26); + break; + } + } + } - function r(a) { - var b; - b = this; - b.log.trace("Received event: " + a.type); - try { - h().IZ(a, function(c, g) { - var f; - b.log.trace("key status: " + g); - f = b.QV[g]; - f || (f = b.QV[g] = []); - f.push(b.context.Na.getTime()); - b.ct() && b.log.trace("key status change", { - sessionId: a.target.sessionId, - keyId: d().encode(new Uint8Array(c)), - status: g - }); - b.fj && ("expired" == g && b.fj(F.nj.jU), "internal-error" == g && b.fj(F.nj.W$), "output-not-allowed" == g && (b.context.SF ? b.log.warn("ignoring keystatus: ", g) : b.fj(F.nj.kU)), "output-restricted" != g && "output-downscaled" != g || b.log.warn("output protection status", g)); - }); - } catch (Z) { - b.log.error("Exception in iterating keystatuses", Z); + function k(a, b, c, g, k, h, m) { + var P7C, p, l, r, n, u, k26, v26; + P7C = 2; + while (P7C !== 10) { + k26 = "Unable to f"; + k26 += "ind requested"; + k26 += " audio track in "; + k26 += "manifest:"; + v26 = "Una"; + v26 += "ble to"; + v26 += " find audio nor video tracks in manifest"; + v26 += ":"; + switch (P7C) { + case 5: + l = f(c.audio_tracks); + r = f(c.video_tracks); + a = a.Ej(l, r); + b.Zb.buffer.nu = a[ba.G.VIDEO]; + P7C = 8; + break; + case 2: + p = c.video_tracks; + P7C = 5; + break; + case 8: + p.some(function(a, f) { + var R7C; + R7C = 2; + while (R7C !== 5) { + switch (R7C) { + case 2: + R7C = !a.stereo ? 1 : 5; + break; + case 3: + R7C = +a.stereo ? 8 : 6; + break; + R7C = !a.stereo ? 1 : 5; + break; + case 1: + return n = d(c, b, ba.G.VIDEO, f, k, h, l, m), !0; + break; + } + } + }); + c.audio_tracks.some(function(a, f) { + var l7C; + l7C = 2; + while (l7C !== 5) { + switch (l7C) { + case 1: + return u = d(c, b, ba.G.AUDIO, f, k, h, l, m), !0; + break; + case 2: + l7C = a.track_id == g ? 1 : 5; + break; + case 3: + l7C = a.track_id === g ? 8 : 7; + break; + l7C = a.track_id == g ? 1 : 5; + break; + } + } + }); + P7C = 6; + break; + case 6: + P7C = F.V(n) && F.V(u) ? 14 : 13; + break; + case 14: + oa(v26, g); + P7C = 10; + break; + case 13: + P7C = F.V(u) && g ? 12 : 11; + break; + case 12: + oa(k26, g); + P7C = 10; + break; + case 11: + return [].concat(n || []).concat(u || []); + break; + } + } } - } - function u(a) { - var b; - b = h().Fja(a); - this.log.error("Received event: " + a.type); - this.fj && this.fj(F.nj.TJ, b); - this.$e = void 0; - } + function t(a) { + var w4C, b, c, d; + w4C = 2; + while (w4C !== 10) { + switch (w4C) { + case 5: + w4C = a && a.data ? 4 : 10; + break; + case 4: + for (c in a.data) { + d = a.data[c]; + 0 < d.length && (b[d[0].P] = { + Ya: c, + vk: a.headers[c], + data: d + }); + } + b.wm = a.wm; + b.Ur = a.Ur; + b.ac = a.ac; + b.zl = a.zl; + b.Yn = a.Yn; + b.Lm = a.Lm; + w4C = 13; + break; + case 2: + b = []; + w4C = 5; + break; + case 13: + b.Dl = a.Dl; + b.wk = a.wk; + return b; + break; + } + } + } - function n(a) { - this.context.Na && (this.de[a] = this.context.Na.getTime(), this.log.trace("Milestone: " + a + ", " + this.de[a])); - } - Object.defineProperty(c, "__esModule", { - value: !0 - }); - q = a(3); - c = a(2); - w = a(20); - t = a(26); - x = a(62); - y = a(58); - C = a(5); - F = {}; - F.nj = c.v; - F.aD = c.u; - N = q.Z.get(w.rd); - b.prototype.Vz = function() { - return this.pd; - }; - b.prototype.gcb = function(a, b) { - a.log && (this.log = a.log); - a.Vj && (this.Vj = a.Vj); - b.Ta && (this.context.Ta = b.Ta); - b.onerror && (this.context.onerror = b.onerror); - }; - b.prototype.nka = function() { - return this.$e ? [this.$e.sessionId] : this.keySessionId ? [this.keySessionId] : []; - }; - b.NE = function(a, b, c, f) { - return new Promise(function(h, m) { - var k, p, r, u; - p = g(c, F.nj.LS, "request mediaKeySystem access rejected:", !0); - r = g(c, F.nj.KS, "create media keys rejected:", !0); - u = g(c, null, "set servercertificate api failed:", !1); - C.Tg.requestMediaKeySystemAccess(b, [{ - initDataTypes: [a], - persistentState: "required", - audioCapabilities: [{ - contentType: 'audio/mp4; codecs="mp4a.40.5"', - robustness: "SW_SECURE_CRYPTO" - }], - videoCapabilities: [{ - contentType: 'video/mp4; codecs="avc1.640028"', - robustness: "HW_SECURE_DECODE" - }, { - contentType: 'video/mp4; codecs="avc1.640028"', - robustness: "SW_SECURE_DECODE" - }, { - contentType: 'video/mp4; codecs="avc1.640028"', - robustness: "SW_SECURE_CRYPTO" - }] - }, { - initDataTypes: [a], - persistentState: "required" - }]).then(function(a) { - c.trace("keysystemaccess config", JSON.stringify(a.getConfiguration(), null, " ")); - return a; - })["catch"](p).then(function(a) { - return a.createMediaKeys(); - })["catch"](r).then(function(a) { - var b; - k = a; - if (!f) return Promise.resolve(); - if (!N.Wy(a.setServerCertificate)) return c.error("mediaKeys setServerCertificate is not a function"), Promise.resolve(); - b = d().decode(f); - c.trace("calling setServerCertificate"); - return a.setServerCertificate(b.buffer); - })["catch"](u).then(function() { - c.trace("mediakeys resolved"); - h(k); - })["catch"](function(a) { - a && a.Ifa || (a = l(c, F.nj.axa, "generic mediakeys error")); - m(a); - }); - }); - }; - b.prototype.create = function(a, c) { - var g; + function c(a, b, c, d, f) { + var V7C, C26, N26; + V7C = 2; + while (V7C !== 8) { + C26 = "selectStr"; + C26 += "ea"; + C26 += "m retu"; + C26 += "rned "; + C26 += "null"; + N26 = "updat"; + N26 += "e"; + N26 += "StreamSelection returned null li"; + N26 += "st"; + switch (V7C) { + case 2: + V7C = (b = a.location.EV(a.Zb, b)) ? 1 : 9; + break; + case 4: + return c = b[a.Fd], c.Yn = a.reason, c.Lm = a.Vr, c.abb = a.Dl, c.aS = a.wk, c; + break; + case 1: + d = O(d, f); + V7C = 5; + break; + case 5: + V7C = (a = a.stream[c ? 1 : 0].i$(a.Zb, b, void 0, c ? d.Hxa : d.Gxa)) ? 4 : 3; + break; + case 9: + oa(N26); + V7C = 8; + break; + case 3: + oa(C26); + V7C = 8; + break; + } + } + } - function d(a) { - g.Oh = a; - return { - K: !0, - Oh: a - }; + function n(a, b) { + var A7C, c, d, c26, t26; + A7C = 2; + while (A7C !== 9) { + c26 = " m"; + c26 += "ov"; + c26 += "ie"; + c26 += "Id: "; + t26 = "Failed to load data from disk bec"; + t26 += "ause the AseStream was missing from t"; + t26 += "he stream map stre"; + t26 += "amId: "; + switch (A7C) { + case 2: + c = this.Gb[b.R]; + A7C = 5; + break; + case 4: + d = parseInt(b.P); + (a = a && a[d] ? a[d].Sl : {}) && a[b.Ya] ? (a = a[b.Ya], b.Y && a.BT(b.ha, b.Ka ? new ca(b.Ka, b.ha) : void 0, b.Y), b.Bc && a && a.Mc ? (c = new S(a, { + Z: b.Z, + offset: b.offset, + Wn: b.Wn, + Ne: b.Ne, + Ny: void 0, + Js: !1 + }, this), this.nia(c)) : b.response instanceof ArrayBuffer && (b = new H(a, b, b.response), c.data || (c.data = {}), c.data[b.Ya] || (c.data[b.Ya] = []), c.data[b.Ya].push(b))) : oa(t26 + b.Ya + c26 + b.R); + A7C = 9; + break; + case 5: + A7C = c ? 4 : 9; + break; + } + } } - g = this; - g.Vj("lg"); - g.log.trace("Creating the mediakeys: " + a); - g.pd = a; - g.context.$P ? c ? (g.log.trace("consuming pre-cached mediakeys instance"), a = Promise.resolve(d(c))) : a = b.NE(g.XF, a, g.log, g.context.pB).then(d) : a = function() { - return new Promise(function(a) { - a({ - K: !0, - Oh: null - }); - }); - }(); - return a; - }; - b.prototype.close = function() { - var a; - a = this; - if (!a.$e || this.CY) return Promise.resolve(); - a.log.trace("closing keysession", { - sessionId: a.$e.sessionId - }); - this.CY = !0; - return a.$e.close().then(function() { - a.log.trace("keysession closed"); - })["catch"](function(b) { - a.log.trace("error occurred while closing keysession", b); - }); - }; - b.prototype.kd = function(a, b) { - var g, f; + x7C = 2; + while (x7C !== 85) { + f36 = "1"; + f36 += "SI"; + f36 += "YbZrNJCp9"; + B26 = "m"; + B26 += "edi"; + B26 += "a"; + B26 += "|ase"; + B26 += "js"; + e26 = "ME"; + e26 += "D"; + e26 += "IACA"; + e26 += "CHE"; + d26 = "m"; + d26 += "ed"; + d26 += "i"; + d26 += "a|as"; + d26 += "ejs"; + M26 = "HE"; + M26 += "A"; + M26 += "DER"; + M26 += "CA"; + M26 += "CHE"; + switch (x7C) { + case 18: + Z = N.Promise; + Q = new N.Console(M26, d26); + ja = new N.Console(e26, B26); + ea = a(29); + ma = ea.EventEmitter; + va = ea.dF; + fa = a(707); + ba = a(13); + x7C = 23; + break; + case 70: + v.prototype.gVa = function(a, b) { + var E8C, c; + E8C = 2; + while (E8C !== 9) { + switch (E8C) { + case 4: + a.Vd && !this.yn ? this.mVa(a, b) : b(); + c.GV || 0 !== Object.keys(this.lm).length || this.bja(); + E8C = 9; + break; + case 2: + c = a.config; + F.V(a.Lya) || this.LO(a, a.Lya); + E8C = 4; + break; + } + } + }; + v.prototype.sVa = function(a, b) { + var j8C, A26; + j8C = 2; + while (j8C !== 4) { + A26 = "pre"; + A26 += "bu"; + A26 += "f"; + A26 += "f"; + A26 += "stats"; + switch (j8C) { + case 2: + a.ac.hK = b; + a = { + type: A26, + movieId: a.R, + stats: { + prebuffstarted: a.ac.MD, + prebuffcomplete: a.ac.hK + } + }; + this.Ia(a.type, a); + j8C = 4; + break; + } + } + }; + v.prototype.hB = function(a, b) { + var N8C, c, E26, r26, w26, s26; + N8C = 2; + while (N8C !== 8) { + E26 = "me"; + E26 += "di"; + E26 += "acac"; + E26 += "he"; + r26 = "medi"; + r26 += "acache"; + r26 += "looku"; + r26 += "p"; + w26 = "s"; + w26 += "avet"; + w26 += "odisk"; + s26 = "me"; + s26 += "diacach"; + s26 += "e"; + s26 += "stat"; + s26 += "s"; + switch (N8C) { + case 2: + c = { + type: s26, + operation: a + }; + w26 === a && (c.saveTime = b.qza); + r26 === a && (c.lookupTime = b.OS, c.dataFound = b.oQ); + N8C = 3; + break; + case 3: + c.oneObject = this.yn; + this.VRa && this.Ia(E26, c); + N8C = 8; + break; + } + } + }; + v.prototype.oVa = function(a) { + var d8C, b, c, d, f, g, k, p26; + d8C = 2; + while (d8C !== 16) { + p26 = "bil"; + p26 += "l"; + p26 += "bo"; + p26 += "ard"; + switch (d8C) { + case 2: + d8C = 1; + break; + case 3: + d = this.Gb[a]; + f = w(d); + c.movieEntry = f; + d8C = 7; + break; + case 7: + d8C = d.headers ? 6 : 12; + break; + case 5: + b = N.time.da(); + c = {}; + d8C = 3; + break; + case 11: + k = {}; + Object.keys(d.data).forEach(function(a) { + var b8C, b, c; + b8C = 2; + while (b8C !== 3) { + switch (b8C) { + case 2: + b = d.data[a]; + c = {}; + b && (b.forEach(function(a) { + var n8C, b; + n8C = 2; + while (n8C !== 3) { + switch (n8C) { + case 2: + b = E(a); + b.response = a.response; + c[a.Kc] = b; + n8C = 3; + break; + } + } + }), k[a] = c); + b8C = 3; + break; + } + } + }); + d8C = 20; + break; + case 6: + g = {}; + Object.keys(d.headers).forEach(function(a) { + var D8C, b, c, f; + D8C = 2; + while (D8C !== 6) { + switch (D8C) { + case 8: + b.stream.Mc && (f = { + timescale: b.stream.Y.ha, + startTicks: b.stream.Y.Rl, + offset: b.stream.Y.Jl(0) + }, b = b.stream.Y.iE, c.fragments = f, c.sizes = b.sizes.buffer, c.durations = b.Sd.buffer); + g[a] = c; + D8C = 6; + break; + case 9: + c.drmHeader = b.Ne || b.Ny; + D8C = 8; + break; + case 4: + b.Wn && (c.headerData = b.Wn); + D8C = 3; + break; + case 3: + D8C = b.Ne || b.Ny ? 9 : 8; + break; + case 2: + b = d.headers[a]; + c = z(b); + D8C = 4; + break; + } + } + }); + d8C = 13; + break; + case 13: + c.headers = g; + d8C = 12; + break; + case 1: + d8C = this.Gb[a] ? 5 : 16; + break; + case 19: + f = { + lifespan: 259200 + }; + this.dTa && (f.convertToBinaryData = !0); + this.Rg.save(p26, a, c, f, function(a) { + var r8C, a26; + r8C = 2; + while (r8C !== 1) { + a26 = "sa"; + a26 += "ve"; + a26 += "tod"; + a26 += "isk"; + switch (r8C) { + case 2: + a || this.hB(a26, { + qza: N.time.da() - b + }); + r8C = 1; + break; + } + } + }.bind(this)); + d8C = 16; + break; + case 12: + d8C = d.data ? 11 : 19; + break; + case 20: + c.data = k; + d8C = 19; + break; + } + } + }; + v.prototype.Qja = function(a) { + var L8C, q26; + L8C = 2; + while (L8C !== 1) { + q26 = "M"; + q26 += "edia cach"; + q26 += "e"; + q26 += " is not enabled"; + switch (L8C) { + case 2: + return this.Jt ? this.Jt.then(function() { + var I8C; + I8C = 2; + while (I8C !== 1) { + switch (I8C) { + case 2: + return new Z(function(b) { + var J8C; + J8C = 2; + while (J8C !== 1) { + switch (J8C) { + case 2: + this.Rg.gz(a.toString(), function(c) { + var k8C; + k8C = 2; + while (k8C !== 1) { + switch (k8C) { + case 2: + c && 0 !== c.length ? 1 === c.length && c[0] === a.toString() ? b(!0) : b(!1) : b(!1); + k8C = 1; + break; + } + } + }.bind(this)); + J8C = 1; + break; + } + } + }.bind(this)); + break; + } + } + }.bind(this)) : Z.reject(q26); + break; + } + } + }; + v.prototype.SUa = function(a, c, d) { + var u8C; + u8C = 2; + while (u8C !== 1) { + switch (u8C) { + case 2: + return new Z(function(f, g) { + var f8C, g26; + f8C = 2; + while (f8C !== 1) { + g26 = "bi"; + g26 += "ll"; + g26 += "boar"; + g26 += "d"; + switch (f8C) { + case 2: + this.Rg.read(g26, a, function(k, h) { + var G8C, l26; + G8C = 2; + while (G8C !== 1) { + l26 = "me"; + l26 += "dia"; + l26 += "cac"; + l26 += "helooku"; + l26 += "p"; + switch (G8C) { + case 2: + k ? g(k) : (h = h[a], h.movieEntry && (k = D(h.movieEntry), this.Gb[a] = k, ++this.st, this.NN(), this.vg.push(k), this.vg.sort(b), h.headers && Object.keys(h.headers).forEach(function(a) { + var y8C; + y8C = 2; + while (y8C !== 3) { + switch (y8C) { + case 14: + n.call(this, c, a); + y8C = 5; + break; + y8C = 3; + break; + case 4: + n.call(this, c, a); + y8C = 3; + break; + case 2: + a = h.headers[a]; + a.isHeader = !0; + a = P(a); + y8C = 4; + break; + } + } + }.bind(this)), h.data && Object.keys(h.data).forEach(function(a) { + var X8C; + X8C = 2; + while (X8C !== 1) { + switch (X8C) { + case 2: + Object.keys(h.data[a]).forEach(function(b) { + var e8C; + e8C = 2; + while (e8C !== 5) { + switch (e8C) { + case 2: + b = P(h.data[a][b]); + n.call(this, c, b); + e8C = 5; + break; + } + } + }.bind(this)); + X8C = 1; + break; + } + } + }.bind(this)), this.Gb[a] && F.ne(this.Gb[a].data) && Object.keys(this.Gb[a].data).forEach(function(b) { + var B8C; + B8C = 2; + while (B8C !== 1) { + switch (B8C) { + case 2: + this.Gb[a].data[b].sort(function(a, b) { + var s8C; + s8C = 2; + while (s8C !== 1) { + switch (s8C) { + case 2: + return a.Kc - b.Kc; + break; + case 4: + return a.Kc + b.Kc; + break; + s8C = 1; + break; + } + } + }); + B8C = 1; + break; + } + } + }.bind(this))), this.hB(l26, { + OS: N.time.da() - d, + oQ: !0 + }), f(this.Gb[a])); + G8C = 1; + break; + } + } + }.bind(this)); + f8C = 1; + break; + } + } + }.bind(this)); + break; + } + } + }; + v.prototype.QSa = function(a, b) { + var q8C, c, X26; + q8C = 2; + while (q8C !== 4) { + X26 = "M"; + X26 += "e"; + X26 += "dia cache is not en"; + X26 += "abled"; + switch (q8C) { + case 2: + q8C = 1; + break; + case 1: + c = N.time.da(); + return this.Jt ? this.Jt.then(function() { + var Y8C; + Y8C = 2; + while (Y8C !== 1) { + switch (Y8C) { + case 2: + return this.Qja(a); + break; + case 4: + return this.Qja(a); + break; + Y8C = 1; + break; + } + } + }.bind(this)).then(function(d) { + var v8C, i26; + v8C = 2; + while (v8C !== 5) { + i26 = "medi"; + i26 += "acac"; + i26 += "helo"; + i26 += "okup"; + switch (v8C) { + case 2: + v8C = d ? 1 : 4; + break; + case 4: + this.hB(i26, { + OS: N.time.da() - c, + oQ: !1 + }); + v8C = 5; + break; + case 1: + return this.SUa(a.toString(), b, c); + break; + } + } + }.bind(this)) : Z.reject(X26); + break; + } + } + }; + v.prototype.RSa = function(a) { + var W8C, b; + W8C = 2; + while (W8C !== 4) { + switch (W8C) { + case 2: + b = this.Gb[a]; + return b && b.headers && b.headers && 0 < Object.keys(b.headers).length && b.data ? new Z(function(b) { + var m8C, c, d; + m8C = 2; + while (m8C !== 8) { + switch (m8C) { + case 4: + d.headers && Object.keys(d.headers).forEach(function(a) { + var Q8C; + Q8C = 2; + while (Q8C !== 5) { + switch (Q8C) { + case 9: + c[a].header = +4; + Q8C = 8; + break; + Q8C = 5; + break; + case 1: + c[a].header = !0; + Q8C = 5; + break; + case 2: + c[a] || (c[a] = {}); + Q8C = 1; + break; + case 3: + c[a] && (c[a] = {}); + Q8C = 3; + break; + Q8C = 1; + break; + } + } + }); + d.data && Object.keys(d.data).forEach(function(a) { + var A8C; + A8C = 2; + while (A8C !== 5) { + switch (A8C) { + case 2: + c[a] || (c[a] = {}); + d.data[a].forEach(function(b) { + var i1C; + i1C = 2; + while (i1C !== 1) { + switch (i1C) { + case 2: + c[a][b.Kc] = !0; + i1C = 1; + break; + } + } + }); + A8C = 5; + break; + } + } + }); + m8C = 9; + break; + case 2: + c = {}; + d = this.Gb[a]; + m8C = 4; + break; + case 9: + return b(c); + break; + } + } + }.bind(this)) : this.Qja(a).then(function(b) { + var O1C; + O1C = 2; + while (O1C !== 1) { + switch (O1C) { + case 2: + return b ? new Z(function(b, c) { + var c1C, L36; + c1C = 2; + while (c1C !== 1) { + L36 = "bi"; + L36 += "llb"; + L36 += "oar"; + L36 += "d"; + switch (c1C) { + case 2: + this.Rg.read(L36, a, function(d, f) { + var o1C, g; + o1C = 2; + while (o1C !== 6) { + switch (o1C) { + case 7: + b(g); + o1C = 6; + break; + case 2: + f = f[a]; + o1C = 5; + break; + case 5: + o1C = d ? 4 : 3; + break; + case 4: + c(d); + o1C = 6; + break; + case 3: + g = {}; + f.headers && Object.keys(f.headers).forEach(function(a) { + var h1C; + h1C = 2; + while (h1C !== 5) { + switch (h1C) { + case 2: + g[a] || (g[a] = {}); + g[a].header = !0; + h1C = 5; + break; + } + } + }); + f.data && Object.keys(f.data).forEach(function(a) { + var p1C; + p1C = 2; + while (p1C !== 5) { + switch (p1C) { + case 2: + g[a] || (g[a] = {}); + Object.keys(f.data[a]).forEach(function(b) { + var g1C; + g1C = 2; + while (g1C !== 1) { + switch (g1C) { + case 4: + g[a][b] = ~7; + g1C = 9; + break; + g1C = 1; + break; + case 2: + g[a][b] = !0; + g1C = 1; + break; + } + } + }); + p1C = 5; + break; + } + } + }); + o1C = 7; + break; + } + } + }.bind(this)); + c1C = 1; + break; + } + } + }.bind(this)) : {}; + break; + } + } + }.bind(this)); + break; + } + } + }; + x7C = 87; + break; + case 39: + v.prototype.Nn = function() { + var S4C; + S4C = 2; + while (S4C !== 5) { + switch (S4C) { + case 2: + this.flush(); + this.bja(); + S4C = 5; + break; + } + } + }; + v.prototype.GRa = function() { + var P4C, a; + P4C = 2; + while (P4C !== 9) { + switch (P4C) { + case 1: + P4C = 0 === this.ox.length ? 5 : 9; + break; + case 2: + P4C = 1; + break; + case 5: + a = this; + P4C = 4; + break; + case 4: + a.ox = [{ + type: ba.G.AUDIO, + openRange: !1, + pipeline: !1, + connections: 1 + }, { + type: ba.G.VIDEO, + openRange: !1, + pipeline: !1, + connections: 1 + }].map(function(b) { + var R4C, Z36; + R4C = 2; + while (R4C !== 3) { + Z36 = "er"; + Z36 += "r"; + Z36 += "o"; + Z36 += "r"; + switch (R4C) { + case 2: + b = new ka(b, a.Xj); + b.on(Z36, function() {}); + F.V(b.Ac) || b.Ac(); + return b; + break; + } + } + }); + ka.Cg(); + P4C = 9; + break; + } + } + }; + v.prototype.bja = function() { + var l4C, a; + l4C = 2; + while (l4C !== 3) { + switch (l4C) { + case 2: + a = this.ox; + this.ox = []; + a.forEach(function(a) { + var t4C; + t4C = 2; + while (t4C !== 5) { + switch (t4C) { + case 2: + a.removeAllListeners(); + a.Nn(); + t4C = 5; + break; + case 3: + a.removeAllListeners(); + a.Nn(); + t4C = 2; + break; + t4C = 5; + break; + } + } + }); + l4C = 3; + break; + } + } + }; + v.prototype.OG = function(a, b, c) { + var K4C, d, f; + K4C = 2; + while (K4C !== 7) { + switch (K4C) { + case 1: + d = this.gx; + f = a; + K4C = 4; + break; + case 2: + K4C = 1; + break; + case 4: + K4C = (d[b] = a) ? 3 : 9; + break; + case 9: + c && delete d[b]; + f ? (this.XN = !1, this.WSa()) : this.XN = !0; + K4C = 7; + break; + case 3: + for (var g in d) { + d.hasOwnProperty(g) && !1 === d[g] && (f = !1); + } + K4C = 9; + break; + } + } + }; + v.prototype.WSa = function() { + var Z4C; + Z4C = 2; + while (Z4C !== 1) { + switch (Z4C) { + case 2: + !this.XN && 0 < this.NA.length && (this.NA.forEach(function(a) { + var F4C; + F4C = 2; + while (F4C !== 1) { + switch (F4C) { + case 2: + this.LO(a.Xab, a.Jb); + F4C = 1; + break; + } + } + }.bind(this)), this.NA = []); + Z4C = 1; + break; + } + } + }; + v.prototype.Qjb = function(a, c) { + var C4C, d, f, g, k, F36, Y36, W36; + C4C = 2; + while (C4C !== 25) { + F36 = "A config must b"; + F36 += "e pa"; + F36 += "ssed t"; + F36 += "o prepareP"; + Y36 = "); ignoring prep"; + Y36 += "are for"; + Y36 += " "; + Y36 += "movieId: "; + W36 = "PTS passed to HeaderCac"; + W36 += "he"; + W36 += ".prepareP is not undefined or a posit"; + W36 += "ive number ("; + switch (C4C) { + case 12: + d = this.Gb[d]; + C4C = 11; + break; + case 20: + C4C = (d.Dd = f, this.vg.sort(b), !F.V(g)) ? 19 : 17; + break; + case 11: + C4C = !F.V(d) && (2 <= d.Ur || !k.aI) ? 10 : 16; + break; + case 10: + C4C = !this.yn || !d.Vd ? 20 : 17; + break; + case 8: + this.bAa(k.uQ); + C4C = 7; + break; + case 16: + C4C = !c.Vd || !this.Vt || this.yn ? 15 : 26; + break; + case 27: + return Z.reject(); + break; + case 15: + C4C = f > k.d5 || this.st + 1 > this.pG && f > this.vg[0].Dd ? 27 : 26; + break; + case 19: + void 0 === d.data && (d.ac.MD = void 0); + C4C = 18; + break; + case 6: + return Z.reject(); + break; + case 18: + for (var h in d.headers) { + !F.V(d.headers[h].url) && null !== d.headers[h].url && (void 0 === d.data || void 0 === d.data[h] || d.data[h].length < k.o2) ? this.LO(d.headers[h], g) : (F.V(d.headers[h].url) || null === d.headers[h].url) && void 0 !== d.data && void 0 !== d.data[h] && 0 < d.data[h].length && delete d.headers[h]; + } + C4C = 17; + break; + case 26: + return this.eVa(a, c); + break; + case 14: + C4C = !F.V(g) && (!F.ja(g) || 0 > g) ? 13 : 12; + break; + case 17: + return Z.resolve(); + break; + case 13: + return qa(W36 + g + Y36 + d), Z.reject(); + break; + case 2: + d = c.R; + f = c.Dd; + g = c.Jb; + A(c.config, F36); + k = c.config; + C4C = 8; + break; + case 7: + C4C = k.rfb ? 6 : 14; + break; + } + } + }; + v.prototype.eVa = function(a, c) { + var U4C, d, f, g, h, m, p, l, r, n, u, q, v, x, t, h36; + U4C = 2; + while (U4C !== 23) { + h36 = "A con"; + h36 += "fig must be passed to _requ"; + h36 += "estHeader"; + switch (U4C) { + case 2: + d = c.R; + f = c.Dd; + g = c.Jb; + U4C = 3; + break; + case 3: + h = c.Vd; + m = c.G9a(); + p = m.Fa; + l = m.ci; + m = m.BB; + A(c.config, h36); + r = c.config; + U4C = 12; + break; + case 19: + U4C = !n ? 18 : 17; + break; + case 17: + u = this.Gb[d]; + u || (u = { + Dd: f, + R: d, + headers: Object.create(null), + Ur: 0, + YR: 0, + CH: 0, + data: void 0, + Vd: h, + ac: {} + }, !u.Vd || this.yn ? this.Gb[d] = u : u.ac.xL = 0, this.vg.push(u), this.vg.sort(b)); + q = []; + U4C = 27; + break; + case 12: + r = Y(r, p); + c = { + stream: [new ha(void 0, r.Cma, r), new ha(void 0, r.X$, r)], + location: new da(null, a.Wa, a.ug, !l, r), + Zb: { + state: ba.Ca.Og, + T5: !0, + buffer: { + nu: void 0, + U: 0, + nf: 0, + Ra: 0, + rl: 0, + pv: 0, + Y: [] + } + } + }; + c.location.KG(p); + n = k(a, c, p, m, l, r, Q); + U4C = 19; + break; + case 18: + return Z.reject(); + break; + case 27: + r.Vab && (v = 2292 + 12 * Math.ceil(p.duration / 2E3)); + x = this.Rg; + t = this.Vt; + return (h ? this.yn ? this.RSa(d) : this.VSa(d) : Z.resolve()).then(function(a) { + var E4C; + E4C = 2; + while (E4C !== 5) { + switch (E4C) { + case 2: + n.forEach(function(b) { + var j4C, c; + j4C = 2; + while (j4C !== 4) { + switch (j4C) { + case 5: + r.aI && u.headers[b.Ya] || (F.V(u.zl) && b.P === ba.G.VIDEO && (u.zl = b.O, u.Yn = b.Yn, u.Lm = b.Lm, u.Dl = b.abb, u.wk = b.aS), l && b.P === ba.G.VIDEO && r.dR ? c = r.dR : r.hCa && b.Jj && (c = b.Jj.offset + b.Jj.size), b = { + stream: b, + url: b.url, + offset: 0, + Z: c, + Vd: h + }, h && (u.ac.ofb = !F.V(a) && 0 < Object.keys(a).length, b.qD = a), b = this.fVa(b, g, u, r), q.push(b)); + j4C = 4; + break; + case 2: + c = v ? v : r.ZR; + j4C = 5; + break; + } + } + }.bind(this)); + return Z.all(q); + break; + } + } + }.bind(this)).then(function(a) { + var N4C; + N4C = 2; + while (N4C !== 1) { + switch (N4C) { + case 2: + return new Z(function(b) { + var d4C, c, n36, I36; + d4C = 2; + while (d4C !== 9) { + n36 = "m"; + n36 += "o"; + n36 += "vi"; + n36 += "eEntry"; + I36 = "bi"; + I36 += "l"; + I36 += "lbo"; + I36 += "ard"; + switch (d4C) { + case 1: + d4C = t && h && !this.yn ? 5 : 3; + break; + case 2: + d4C = 1; + break; + case 3: + b(a); + d4C = 9; + break; + case 5: + c = w(u); + x.save(I36, [n36, u.R].join("."), c, ia, function() { + var D4C; + D4C = 2; + while (D4C !== 1) { + switch (D4C) { + case 2: + b(a); + D4C = 1; + break; + case 4: + b(a); + D4C = 7; + break; + D4C = 1; + break; + } + } + }); + d4C = 9; + break; + } + } + }.bind(this)); + break; + } + } + }.bind(this)).then(function(a) { + var b4C; + b4C = 2; + while (b4C !== 3) { + switch (b4C) { + case 1: + u.ac.lR = u.ac.Csa; + u.ac.GS = a; + return { + firstheadersent: u.ac.lR, lastheadercomplete: u.ac.GS + }; + break; + case 2: + a = Math.max.apply(Math, a); + b4C = 1; + break; + } + } + }); + break; + } + } + }; + v.prototype.flush = function() { + var n4C, a, H36, u36; + n4C = 2; + while (n4C !== 7) { + H36 = "m"; + H36 += "anagerde"; + H36 += "bugevent"; + u36 = ", h"; + u36 += "eaderC"; + u36 += "ache flush: "; + switch (n4C) { + case 9: + this.vg = []; + this.qm.Oe && (a = "@" + N.time.da() + u36, this.Ia(H36, { + message: a + })); + n4C = 7; + break; + case 2: + this.Aqa(); + for (var b in this.lm) { + a = this.lm[b]; + a.abort(ta); + } + this.Gb = Object.create(null); + this.st = 0; + n4C = 9; + break; + } + } + }; + x7C = 50; + break; + case 87: + g.M = v; + f36; + x7C = 85; + break; + case 63: + v.prototype.Ria = function(a, b) { + var O8C, c; + O8C = 2; + while (O8C !== 6) { + switch (O8C) { + case 9: + b.sqb = N.time.da(); + b.ZEb = this; + return b; + break; + case 2: + c = a.stream.P; + 2 > this.ox.length && this.GRa(); + b = void 0 === a.U ? new T(a.stream, b, this.ox[c], a, this, !0, this) : R.create(a.stream, b, this.ox[c], a, this, !0, this); + b.Vd = a.Vd; + O8C = 9; + break; + } + } + }; + v.prototype.kZ = function(a) { + var c8C, b, O36; + c8C = 2; + while (c8C !== 8) { + O36 = "sa"; + O36 += "ve"; + O36 += "t"; + O36 += "odis"; + O36 += "k"; + switch (c8C) { + case 3: + b = this.Gb[a.R] || a.as; + 0 === b.YR && 0 === b.CH && (this.sVa(b, a.rd), b.Vd && (b.ac.ofb || (this.yn ? this.oVa(a.R) : this.hB(O36, { + qza: b.ac.xL + })))); + c8C = 8; + break; + case 2: + a.Bc && delete this.lm[a.Ya]; + delete a.response; + a.Ld(); + c8C = 3; + break; + } + } + }; + v.prototype.fVa = function(a, b, c, d) { + var o8C, f; + o8C = 2; + while (o8C !== 11) { + switch (o8C) { + case 9: + o8C = !f.nv() ? 8 : 7; + break; + case 7: + c.YR++; + o8C = 6; + break; + case 5: + f.Lya = b; + f.as = c; + f.qD = a.qD; + o8C = 9; + break; + case 2: + f = this.Ria(a, d); + o8C = 5; + break; + case 6: + this.lm[f.Ya] = f; + o8C = 14; + break; + case 8: + return Z.reject(); + break; + case 14: + o8C = a.XR ? 13 : 12; + break; + case 13: + f.XR = a.XR; + o8C = 11; + break; + case 12: + return new Z(function(a) { + var h8C; + h8C = 2; + while (h8C !== 1) { + switch (h8C) { + case 4: + f.XR = a; + h8C = 8; + break; + h8C = 1; + break; + case 2: + f.XR = a; + h8C = 1; + break; + } + } + }); + break; + } + } + }; + v.prototype.eTa = function(a, b, c) { + var p8C, d, f; + p8C = 2; + while (p8C !== 7) { + switch (p8C) { + case 4: + p8C = 0 < d ? 3 : 9; + break; + case 2: + d = a.p2; + b.Vd && this.Vt && (a.$S ? d = a.$S : a.$ua && 0 < a.$ua && (d = 2E3 * a.$ua)); + p8C = 4; + break; + case 3: + return function(a, b) { + var I88 = H4DD; + var g8C; + g8C = 2; + while (g8C !== 1) { + switch (g8C) { + case 2: + I88.S26(0); + return I88.Q26(d, b); + break; + case 4: + I88.z26(1); + return I88.T26(b, d); + break; + g8C = 1; + break; + } + } + }; + break; + case 9: + f = c.length < a.o2 ? c.length : a.o2; + return function(a) { + var H88 = H4DD; + var z8C; + z8C = 2; + while (z8C !== 1) { + switch (z8C) { + case 2: + H88.z26(0); + return H88.T26(f, a); + break; + case 4: + H88.z26(2); + return H88.T26(f, a); + break; + z8C = 1; + break; + } + } + }; + break; + } + } + }; + v.prototype.LO = function(a, b) { + var w8C, n, g, c, d, f, k, h, m, p, l, r, G36, S36, z36, Q36, T36, x36; + w8C = 2; + while (w8C !== 48) { + G36 = "m"; + G36 += "anagerde"; + G36 += "b"; + G36 += "ugevent"; + S36 = ", "; + S36 += "start"; + S36 += "Pts: "; + z36 = ","; + z36 += " pt"; + z36 += "s: "; + Q36 = ", str"; + Q36 += "e"; + Q36 += "amId:"; + Q36 += " "; + T36 = ", headerCa"; + T36 += "che"; + T36 += " requestData"; + T36 += ": movieId: "; + x36 = "no proper f"; + x36 += "ragment found to reques"; + x36 += "t data at "; + x36 += "pts"; + switch (w8C) { + case 41: + H4DD.S26(3); + r = H4DD.Q26(1, m); + w8C = 40; + break; + case 8: + this.NA.push({ + Xab: a, + Jb: b + }); + w8C = 7; + break; + case 27: + qa(x36, b); + w8C = 48; + break; + case 26: + p = a.stream.$g(m); + p.Vd = a.Vd; + l = a.P; + w8C = 23; + break; + case 10: + k.v2 = a; + return; + break; + case 40: + w8C = r < h.length && (p.Z < n || p.duration < g) ? 39 : 37; + break; + case 14: + k = this.Gb[c] || a.as; + w8C = 13; + break; + case 23: + w8C = l === ba.G.VIDEO && g.Kr || l === ba.G.AUDIO && g.Gm ? 22 : 35; + break; + case 42: + w8C = !p.$c ? 41 : 37; + break; + case 13: + w8C = k ? 12 : 48; + break; + case 43: + void 0 === p && (p = a.stream.$g(m), p.Vd = a.Vd); + w8C = 42; + break; + case 9: + w8C = this.XN ? 8 : 14; + break; + case 39: + p.e0(h.get(r)), p.PJ = r + 1, m = r; + w8C = 38; + break; + case 44: + w8C = m < h.length && !c(l, f) ? 43 : 49; + break; + case 37: + F.V(k.wm) && (k.wm = p.U); + w8C = 36; + break; + case 3: + g = a.config; + w8C = 9; + break; + case 35: + g.Oe && (b = "@" + N.time.da() + T36 + c + Q36 + d + z36 + b + S36 + p.U, this.Ia(G36, { + message: b + })); + void 0 === k.data && (k.data = Object.create(null)); + void 0 === k.data[d] && (k.data[d] = []); + b = k.data[d]; + w8C = 31; + break; + case 49: + k.v2 && (a = k.v2, delete k.v2, this.LO(a, k.wm)); + w8C = 48; + break; + case 28: + n = r === ba.G.VIDEO ? g.kT : g.dT, g = r === ba.G.VIDEO ? g.Yfb : g.Mfb; + w8C = 44; + break; + case 50: + ++m; + w8C = 44; + break; + case 2: + c = a.R; + d = a.Ya; + f = a.stream; + w8C = 3; + break; + case 7: + w8C = this.NA.length > g.c5 ? 6 : 48; + break; + case 12: + w8C = a.P === ba.G.AUDIO ? 11 : 18; + break; + case 19: + b = k.wm; + w8C = 18; + break; + case 22: + w8C = (l = p.hR(b)) ? 21 : 35; + break; + case 21: + p.P === ba.G.AUDIO && !g.uva && l.Jb < (g.Cn && !g.wx && f.Ik ? Math.floor(f.Ik.bf) : 0) && (++l.Vc, l.Jb += p.Ka.bf), 0 < l.Vc && p.Ak(l, !1); + w8C = 35; + break; + case 36: + p.Vd && (p.responseType = 0); + a.Vd && this.Vt && a.qD[d] && a.qD[d][p.U] || (r = this.Ria(p, a.config), r.Vd && (r.as = a.as), r.nv(), ++k.CH, b.push(r)); + ++l; + f += p.duration; + p = void 0; + w8C = 50; + break; + case 6: + this.NA.shift(); + w8C = 7; + break; + case 15: + w8C = -1 === m ? 27 : 26; + break; + case 18: + a.P === ba.G.AUDIO && g.Gm && g.Cn && !g.wx && f.Ik && (b = Math.max(f.Y.Of(0), b + f.Ik.bf)); + h = a.Y; + m = h.Dj(b); + w8C = 15; + break; + case 38: + ++r; + w8C = 40; + break; + case 31: + c = this.eTa(g, a, h); + l = f = 0; + r = p.P; + w8C = 28; + break; + case 11: + w8C = void 0 === k.wm ? 10 : 19; + break; + } + } + }; + v.prototype.nia = function(a) { + var a8C, b, c; + a8C = 2; + while (a8C !== 3) { + switch (a8C) { + case 2: + b = a.Ya; + c = this.Gb[a.R] || a.as; + c && (c.nXa || c.Vd && !this.yn || (c.nXa = !0, ++this.st), c.headers || (c.headers = {}), c.headers[b] = a, this.qm.aI && ++c.Ur, this.NN()); + a8C = 3; + break; + } + } + }; + v.prototype.NN = function() { + var T8C, b, c, d; + T8C = 2; - function c() { - g.ct() && g.log.trace("LICENSE: Setting license with promise based EME"); - return new Promise(function(c, l) { - var p; - - function k(a) { - g.$e && (g.$e.removeEventListener("message", p), g.$e.addEventListener("message", g.onMessage)); - a.state = f; - a.K ? c(a) : (g.close(), g.Zpa(a), l(a)); - } - if (!g.$e) { - g.log.trace("LICENSE: Creating the key session."); - try { - g.$e = g.Oh.createSession(); - } catch (da) { - k({ - K: !1, - code: F.nj.f8, - tb: F.aD.te, - message: "Unable to create a persisted key session", - za: h().yc(da), - cause: da - }); - } - } - p = function(b) { - var c, l, p; - c = new Uint8Array(b.message); - l = b.messageType; - p = 8 == c[0] && 4 == c[1]; - f = p ? 2 : 12; - p = { - sessionId: b.target.sessionId, - messageType: l, - isCertRequest: p + function a(a) { + var x8C; + x8C = 2; + while (x8C !== 5) { + switch (x8C) { + case 2: + a.abort(); + d += a.Ae; + x8C = 5; + break; + } + } + } + while (T8C !== 11) { + switch (T8C) { + case 4: + T8C = this.st > this.pG ? 3 : 12; + break; + case 5: + T8C = !(this.st <= this.pG) ? 4 : 11; + break; + case 2: + d = 0; + T8C = 5; + break; + case 7: + for (var f in c.data) { + c.data[f].forEach(a); + delete c.data[f]; + } + T8C = 6; + break; + case 3: + T8C = (c = this.vg.shift()) ? 9 : 4; + break; + case 9: + b = c.R; + T8C = 8; + break; + case 8: + T8C = c.data ? 7 : 6; + break; + case 6: + delete this.Gb[b]; + --this.st; + T8C = 13; + break; + case 12: + this.ZUa(d); + T8C = 11; + break; + case 13: + this.YUa(b); + T8C = 4; + break; + } + } }; - g.ct() && (p.message = d().encode(c)); - g.log.trace("LICENSE: Received event: " + b.type, p); - p = /clearkey/i.test(g.$e.keySystem) ? "clearkey" : "widevine"; - b = { - Rf: a, - pP: l, - ii: p, - Fj: [{ - data: c, - sessionId: b.target.sessionId - }] + v.prototype.ZUa = function(a) { + var H8C, b36; + H8C = 2; + while (H8C !== 1) { + b36 = "disca"; + b36 += "r"; + b36 += "dedByt"; + b36 += "es"; + switch (H8C) { + case 2: + 0 !== a && (a = { + type: b36, + bytes: a + }, this.Ia(a.type, a)); + H8C = 1; + break; + } + } }; - 12 === f && (g.Vj("lc"), c = { - data: c, - ii: p - }, g.context.B3 ? g.context.DP(c) : g.Koa = c); - g.context.Ta.kd(b).then(function(a) { - if (12 !== f || (g.Vj("lr"), g.i4a(), g.context.B3)) return a = m(g, a.eo[0].data, g.$e), 2 === f ? a : a.then(function() { - f = 30; - k({ - K: !0, - state: f - }); - }); - g.Loa = a.eo[0].data; - f = 13; - k({ - K: !0, - state: f - }); - })["catch"](function(a) { - k(h().st(a, { - state: f - })); - }); - }; - g.$e.addEventListener("message", p); - g.$e.addEventListener("keystatuseschange", g.h4a); - g.log.trace("LICENSE: Calling generateRequest", { - initDataType: g.XF, - initData: d().encode(b) - }); - g.$e.generateRequest(g.XF, b).then(function() { - g.ct() && g.log.trace("LICENSE: Generate succeeded", { - sessionId: g.$e.sessionId - }); - }, function(a) { - g.log.error("LICENSE: Unable to generate a license request", a); - k({ - K: !1, - code: F.nj.NS, - tb: F.aD.te, - state: f, - message: "Unable to generate request.", - za: h().yc(a), - cause: a - }); - }); - }); - } - if (0 === b.length) return Promise.reject({ - code: F.nj.pCa - }); - b = b[0]; - g = this; - f = 1; - return g.context.$P ? c() : function() { - g.ct() && g.log.trace("LICENSE: Setting license with prefixed EME"); - return new Promise(function(c, d) { - function m(b) { - var c, f; - c = b.sessionId; - f = b.message; - g.log.trace("Received event: " + b.type, { - sessionId: c - }); - g.keySessionId = c; - g.Dk = f; - b = { - Rf: a, - pP: "license-request", - ii: /clearkey/i.test(g.pd) ? "clearkey" : "widevine", - Fj: [{ - data: f, - sessionId: c - }] + x7C = 55; + break; + case 6: + G = a(364).Hba; + a(82); + S = a(362).bW; + T = a(361).Gba; + H = a(711).lDa; + R = a(356).Eba; + aa = a(96); + ca = a(74).cc; + x7C = 18; + break; + case 30: + qa = Q.error.bind(Q); + ta = { + onabort: function() {}, + onerror: function() {} }; - g.Vj("lc"); - g.context.Ta.kd(b).then(function(a) { - g.Vj("lr"); - g.context.Ba.webkitAddKey(g.pd, a.eo[0].data, g.Dk, g.keySessionId); - })["catch"](function(a) { - d(a); - }); - } - - function l(a) { - g.log.trace("Received event: " + a.type, { - keySystem: a.keySystem, - sessionId: g.keySessionId - }); - g.Dk && 2 < g.Dk.length && (g.context.Ba.removeEventListener("webkitkeyerror", k), g.context.Ba.removeEventListener("webkitkeymessage", m), g.context.Ba.removeEventListener("webkitkeyadded", l), c({ - K: !0 - }), g.context.Ba.addEventListener("webkitkeyerror", u.bind(g)), g.context.Ba.addEventListener("webkitkeymessage", function() { - g.log.error("renewal not supported in prefixed eme"); - g.fj(F.nj.Zwa); - })); - } - - function k(a) { - g.log.error("Received event: " + a.type, { - errorCode: F.aD.eu + a.errorCode.code - }); - a = h().Fja(a); - a.K = !1; - a.state = f; - a.code = F.nj.TJ; - a.message = "Received a key error"; - d(a); - g.$e = void 0; - } - g.context.Ba.addEventListener("webkitkeyerror", k); - g.context.Ba.addEventListener("webkitkeymessage", m); - g.context.Ba.addEventListener("webkitkeyadded", l); - try { - g.context.Ba.webkitGenerateKeyRequest(g.pd, b); - } catch (X) { - d({ - code: F.nj.Y$, - tb: F.aD.te + v.prototype = Object.create(aa.prototype); + v.prototype.constructor = v; + Object.defineProperties(v.prototype, { + cache: { + get: function() { + var M4C; + M4C = 2; + while (M4C !== 1) { + switch (M4C) { + case 4: + return this.Gb; + break; + M4C = 1; + break; + case 2: + return this.Gb; + break; + } + } + } + } }); - } - }); - }(); - }; - b.prototype.Ofa = function() { - var a; - a = this.Loa; - a || this.log.error("pending license must exist at this point"); - this.Loa = void 0; - return m(this, a, this.$e); - }; - b.prototype.cqa = function() { - return Promise.resolve({ - K: !0 - }); - }; - b.prototype.Mia = function(a) { - var b; - b = this; - b.log.trace("SECURE_STOP: Executing expedite"); - return new Promise(function(c, d) { - function g(a) { - b.close().then(function() { - (a.K ? c : d)(a); - }); - } - return b.context.Ta.stop.call(b.context.Ta, a).then(function() { - g({ - K: !0, - z2: void 0, - qB: void 0, - HY: void 0 - }); - })["catch"](function(a) { - b.log.error("SECURE_STOP: Server request failed", { - code: a.code, - subCode: a.tb, - extCode: a.Sc, - edgeCode: a.Jj, - message: a.ne - }); - g(a); - }); - }); - }; - b.prototype.RSa = function(a) { - this.log.trace("SECURE_STOP: Executing deferred"); - return this.Mia(a); - }; - b.prototype.ct = function() { - return this.context.Ke || this.context.dt; - }; - f.P = b; - }, function(f, c, a) { - var b, d, h; - Object.defineProperty(c, "__esModule", { - value: !0 - }); - b = a(3); - d = a(24); - h = a(161); - f = a(7); - a = a(42); - c.pta = !0; - c.Taa = !1; - d = b.Z.get(d.Pe); - b = b.Z.get(h.WJ); - c.NBa = b.ce; - c.Yh = {}; - c.g$ = d.Tk; - c.QS = d.zm; - c.lJ = d.HUa; - c.E8 = d.z_; - c.G7 = d.BZ; - c.yeb = d.WM; - c.zeb = d.BZ; - c.I7 = d.Zha; - c.dgb = d.e0a; - c.zAa = d.Dma; - c.Fhb = !1; - c.KAa = !0; - c.Ne = { - QS: d.zm, - kn: void 0, - cr: void 0, - Nva: void 0, - Mva: void 0, - CCa: void 0, - F7: void 0, - Lva: void 0 - }; - c.GBa = b.jE; - c.HBa = b.jNa; - c.VBa = b.a5; - c.FBa = b.kM; - c.dCa = b.DI; - c.ZBa = b.LB; - c.LBa = b.UZ; - c.MBa = b.pN; - c.QBa = b.Wma.qa(f.Ma); - c.PBa = b.c2.qa(a.gl); - c.DBa = b.AX.qa(a.gl); - c.EBa = b.DX.qa(a.gl); - c.RBa = b.e2.qa(f.Ma); - c.SBa = b.U1a.qa(a.gl); - c.OBa = b.vA; - c.bCa = b.IR; - c.eCa = b.z6; - c.IBa = b.kY; - c.JBa = b.yY; - c.KBa = b.Pga; - c.XBa = b.qR; - c.WBa = b.D5.qa(a.gl); - c.cCa = b.bta; - c.UBa = b.r4; - c.YBa = b.X5; - c.$Ba = b.DR.qa(a.gl); - c.TBa = b.kQ; - c.aCa = b.HR.qa(f.Ma); - c.R$ = void 0; - }, function(f, c, a) { - var h, l, g, m, k, r, u, n, q, w, t, x; - - function b(a, b, c, d, g, f, h) { - this.config = a; - this.ha = c; - this.De = d; - this.qo = g; - this.lTa = f; - this.TP = h; - this.PO = Promise.resolve(); - this.closed = !1; - this.log = b.Bb("PlaydataServices"); - this.Vk = []; - this.active = []; - } - - function d(a, b, c, d, g, f) { - this.log = a; - this.ha = b; - this.L = c; - this.Lj = d; - this.De = g; - this.r5a = f; - this.vs = !1; - } - Object.defineProperty(c, "__esModule", { - value: !0 - }); - f = a(1); - h = a(0); - l = a(12); - g = a(43); - m = a(217); - k = a(324); - r = a(46); - u = a(146); - n = a(323); - q = a(2); - w = a(200); - t = a(199); - d.prototype.rq = function(a, b) { - var d; - - function c() { - var a; - a = d.Lj.zs(d.L, !1); - d.De.Ax(a)["catch"](function(a) { - d.log.error("Unable to schedule playdata changes", a); - }); - } - d = this; - this.log.trace("Adding initial playdata", b); - this.De.iX(b).then(function() { - d.log.trace("Scheduling monitor", { - interval: a - }); - d.ak = d.ha.EQ(a, c); - })["catch"](function(g) { - d.log.error("Unable to add playdata", { - error: g, - playdata: new w.qU().encode(b) - }); - d.ak = d.ha.EQ(a, c); - }); - }; - d.prototype.stop = function(a) { - var b, c; - b = this; - if (this.vs) return Promise.resolve(); - this.ak.cancel(); - c = this.Lj.zs(this.L, !1); - return this.De.Ax(c)["catch"](function(a) { - b.log.error("Unable to update playdata changes during stop", a); - }).then(function() { - if (a) { - if (b.L.background) return b.log.trace("Playback is currently in the background and never played, not sending the playdata", c), Promise.resolve(); - b.log.trace("Sending final playdata to the server", c); - return b.r5a.GH(c); - } - b.log.trace("Currently configured to not send play data, not sending the data to the server"); - }).then(function() { - if (a) return b.log.trace("Removing playdata from the persisted store", c), b.De.sH(c); - b.log.trace("Currently configured to not send play data, not removing the play data from IDB"); - }).then(function() { - b.log.info("Successfully stopped the playback", c.M); - })["catch"](function(a) { - b.log.error("Unable to remove playdata changes", a); - throw a; - }); - }; - d.prototype.cancel = function() { - this.vs = !0; - this.ak.cancel(); - this.De.Ax(this.Lj.zs(this.L, !1)); - }; - b.prototype.Xc = function() { - var a; - a = this; - this.Ig || (this.log.trace("Starting playdata services"), this.Ig = this.De.d4().then(function() { - return a; - })["catch"](function(b) { - a.log.error("Unable to read the playdata, it will be deleted and not sent to the server", b); - return a; - })); - return this.Ig; - }; - b.prototype.close = function() { - this.closed = !0; - this.Vk.forEach(function(a) { - a.rq.cancel(); - }); - }; - b.prototype.send = function(a) { - var b; - if (this.closed) return Promise.resolve(); - b = this.config; - return b.QA && b.Z4 ? this.W4(a) : Promise.resolve(); - }; - b.prototype.jR = function(a) { - a.ge ? this.Gra(a, "offline") : this.closed || this.Gra(a, "online"); - }; - b.prototype.C5 = function(a) { - var b, c, d; - b = this; - if (this.closed) return Promise.resolve(); - c = []; - d = this.qo.zs(a, !1); - this.active = this.active.filter(function(a) { - return a !== d.aa; - }); - a = this.Vk.filter(function(a) { - return a.key === d.aa.toString(); - }).map(function(a) { - c.push(a); - a.Kra = !0; - return a.rq.stop(b.config.Z4); - }); - return Promise.all(a).then(function() { - c.forEach(function(a) { - return b.Vk.splice(b.Vk.indexOf(a), 1); - }); - }); - }; - b.prototype.Gra = function(a, b) { - var c; - c = this; - a.addEventListener(r.Ea.SP, function() { - c.Hra(a, b); - }); - a.background || a.addEventListener(r.Ea.mma, function() { - c.Hra(a, b); - }); - a.addEventListener(r.Ea.SP, function() { - c.oB(a); - }); - a.addEventListener(r.Ea.SP, function() { - c.r$a(a); - }, 1); - a.addEventListener(r.Ea.Vga, function() { - c.G$a(); - }); - a.addEventListener(r.Ea.Ysa, function() { - c.U8a(a); - }); - a.addEventListener(r.Ea.Zsa, function() { - c.X8a(a); - }); - a.Fc.addListener(function() { - a.Pb.Bz ? c.log.trace("stickiness is disabled for timedtext") : c.Zqa(a); - }); - a.gc.addListener(function() { - a.Pb.Bz ? c.log.trace("stickiness is disabled for audio") : c.Zqa(a); - }); - }; - b.prototype.Hra = function(a, b) { - var c, d; - a.Yc("pdb"); - if (this.config.t3.Fla()) { - c = this.qo.zs(a, !1); - d = c.aa; - 0 <= this.Vk.findIndex(function(a) { - return a.key === d; - }) ? this.log.trace("Already collecting " + b + " playdata, ignoring", c) : (this.log.info("Starting to collect " + b + " playdata", c), this.active.push(d), this.Vk.push({ - key: d, - rq: this.T_(a, c), - jx: !1, - Kra: !1 - })); - } - }; - b.prototype.W4 = function(a) { - var b, c, d, g; - b = this; - c = this.De.Qh.filter(function(a) { - return "online" === a.type; - }); - d = void 0; - g = void 0; - a && Infinity === a ? d = c.filter(function(a) { - return 0 > b.active.indexOf(a.aa); - }) : (d = a ? c.filter(function(c) { - return c.M === a && 0 > b.active.indexOf(c.aa); - }) : void 0, g = a ? c.filter(function(c) { - return c.M !== a && 0 > b.active.indexOf(c.aa); - }) : c.filter(function(a) { - return 0 > b.active.indexOf(a.aa); - })); - g && 0 < g.length && this.ha.Af(this.config.Wqa, function() { - b.FH(g); - }); - return d && 0 !== d.length ? this.FH(d) : Promise.resolve(); - }; - b.prototype.FH = function(a) { - var b; - b = this; - return a.map(function(a) { - return function() { - return b.TP.GH(a).then(function() { - return b.p4(a); - }); - }; - }).reduce(function(a, b) { - return a.then(function() { - return b(); - }); - }, Promise.resolve()); - }; - b.prototype.p4 = function(a) { - var b; - b = this; - return this.De.sH(a).then(function() {})["catch"](function(a) { - b.log.error("Unble to complete the stop lifecycle event", a); - throw a; - }); - }; - b.prototype.T_ = function(a, b) { - a = new d(this.log, this.ha, a, this.qo, this.De, this.TP); - a.rq(this.config.t3, b); - return a; - }; - b.prototype.oB = function(b) { - var c, d; - c = this; - d = this.qo.zs(b, !0); - this.TP.oB(b, d).then(function() { - c.Vk.filter(function(a) { - return a.key === b.aa.toString(); - }).forEach(function(a) { - a.jx = !0; - }); - })["catch"](function(g) { - var f; - c.log.error("Start command failed", { - playdata: d, - error: g - }); - f = a(51).rj; - return b.Hh(new f(q.v.HU, g)); - }); - }; - b.prototype.U8a = function(a) { - this.Kq(t.UJ.pause, a)["catch"](function() {}); - }; - b.prototype.X8a = function(a) { - this.Kq(t.UJ.resume, a)["catch"](function() {}); - }; - b.prototype.Zqa = function(a) { - this.Kq(t.UJ.splice, a)["catch"](function() {}); - }; - b.prototype.Kq = function(b, c) { - var g; - - function d(a) { - var b; - b = g.Vk.filter(function(b) { - return b.key === a.aa.toString(); - }); - return 0 === b.length ? !0 : b.reduce(function(a, b) { - return a || b.Kra || !b.jx; - }, !1); - } - g = this; - return d(c) ? this.PO : this.PO = this.PO["catch"](function() { - return Promise.resolve(); - }).then(function() { - var a; - if (d(c)) return Promise.resolve(); - a = g.qo.zs(c, !1); - return g.TP.Kq(b, c, a); - }).then(function(a) { - return a; - })["catch"](function(d) { - var f; - g.log.error("Failed to send event", { - eventKey: b, - xid: c.aa, - error: d - }); - if (d.ne) { - f = a(51).rj; - c.Hh(new f(q.v.GT, d)); - } - throw d; - }); - }; - b.prototype.r$a = function(a) { - this.c$a(a) && this.x5(this.MXa(), a); - }; - b.prototype.x5 = function(a, b) { - var c; - c = this; - this.wY(); - this.j1 = this.ha.Af(a, function() { - c.wY(); - c.Kq(t.UJ.MO, b).then(function() { - c.x5(a, b); - })["catch"](function() { - c.x5(a, b); - }); - }); - }; - b.prototype.G$a = function() { - this.wY(); - }; - b.prototype.c$a = function(a) { - return a.state.value == r.mk.Bu && !a.ge; - }; - b.prototype.wY = function() { - this.j1 && (this.j1.cancel(), this.j1 = void 0); - }; - b.prototype.MXa = function() { - var a, b; - a = this.config.Yla; - b = this.lTa.Oka; - return 0 <= a.Gk(b) ? a : b; - }; - x = b; - x = f.__decorate([h.N(), f.__param(0, h.j(n.Iaa)), f.__param(1, h.j(l.Jb)), f.__param(2, h.j(g.xh)), f.__param(3, h.j(k.iaa)), f.__param(4, h.j(m.rU)), f.__param(5, h.j(u.iJ)), f.__param(6, h.j(t.dy))], x); - c.$Ca = x; - }, function(f, c, a) { - var l, g, m, k, r, u, n, q, w; - - function b() {} + v.prototype.Hb = ea; + v.prototype.fa = oa; + v.prototype.Rb = qa; + x7C = 39; + break; + case 55: + v.prototype.aVa = function(a) { + var V8C, J36; + V8C = 2; + while (V8C !== 1) { + J36 = "flu"; + J36 += "sh"; + J36 += "edByte"; + J36 += "s"; + switch (V8C) { + case 2: + 0 !== a && (a = { + type: J36, + bytes: a + }, this.Ia(a.type, a)); + V8C = 1; + break; + } + } + }; + v.prototype.YUa = function(a) { + var M8C, o36; + M8C = 2; + while (M8C !== 5) { + o36 = "c"; + o36 += "a"; + o36 += "ch"; + o36 += "eEv"; + o36 += "ict"; + switch (M8C) { + case 2: + a = { + type: o36, + movieId: a + }; + this.Ia(a.type, a); + M8C = 5; + break; + } + } + }; + v.prototype.Ty = function(a) { + var S8C, b; + S8C = 2; + while (S8C !== 4) { + switch (S8C) { + case 2: + b = this.Gb[a.R]; + b && (a.Bc ? F.V(b.ac.Csa) && (b.ac.Csa = a.Hf) : F.V(b.ac.MD) && (b.ac.MD = a.Hf)); + S8C = 4; + break; + } + } + }; + v.prototype.li = function(a) { + var P8C; + P8C = 2; + while (P8C !== 1) { + switch (P8C) { + case 2: + a.Bc ? this.Qhb(a) : this.Shb(a); + P8C = 1; + break; + } + } + }; + v.prototype.Qhb = function(a) { + var R8C; + R8C = 2; + while (R8C !== 3) { + switch (R8C) { + case 2: + a.rqb = a.rd; + this.nia(a); + a.XR(a.rqb); + this.gVa(a, function() { + var l8C; + l8C = 2; + while (l8C !== 5) { + switch (l8C) { + case 1: + this.kZ(a); + l8C = 5; + break; + case 2: + a.as.YR--; + l8C = 1; + break; + case 3: + a.as.YR++; + l8C = 4; + break; + l8C = 1; + break; + } + } + }.bind(this)); + R8C = 3; + break; + } + } + }; + v.prototype.Shb = function(a) { + var t8C, b, c, d, f, g, k, h, m, D36, U36, R36, m36, V36, j36, y36, K36, P36; + t8C = 2; + while (t8C !== 15) { + D36 = "."; + D36 += "r"; + D36 += "esp"; + D36 += "ons"; + D36 += "e"; + U36 = ".d"; + U36 += "rmHea"; + U36 += "der"; + R36 = ".headerD"; + R36 += "a"; + R36 += "ta"; + m36 = "."; + m36 += "meta"; + m36 += "data"; + V36 = "managerdebugev"; + V36 += "e"; + V36 += "n"; + V36 += "t"; + j36 = ", "; + j36 += "r"; + j36 += "e"; + j36 += "maining: "; + y36 = ","; + y36 += " pt"; + y36 += "s: "; + K36 = ", "; + K36 += "streamI"; + K36 += "d: "; + P36 = ", headerCac"; + P36 += "he dat"; + P36 += "aComplete:"; + P36 += " movieId: "; + switch (t8C) { + case 16: + d(); + t8C = 15; + break; + case 2: + b = a.R; + c = this.Gb[b] || a.as; + t8C = 4; + break; + case 3: + this.qm.Oe && (b = "@" + N.time.da() + P36 + b + K36 + a.Ya + y36 + a.U + j36 + (c.CH - 1), this.Ia(V36, { + message: b + })); + d = function() { + var K8C; + K8C = 2; + while (K8C !== 5) { + switch (K8C) { + case 2: + --c.CH; + this.kZ(a); + K8C = 5; + break; + } + } + }.bind(this); + t8C = 8; + break; + case 4: + t8C = c ? 3 : 15; + break; + case 8: + t8C = a.Vd && 0 === a.responseType && this.Vt && !this.yn ? 7 : 16; + break; + case 12: + h = [a.R, a.Ya, a.Kc].join("."); + m = {}; + H4DD.z26(3); + m[H4DD.Q26(m36, h)] = { + hj: E(a), + Cc: ia + }; + F.V(f) || (m[h + R36] = { + hj: f, + Cc: ia + }); + t8C = 19; + break; + case 7: + b = a.response; + f = a.Wn; + g = a.Ne; + k = N.time.da(); + t8C = 12; + break; + case 19: + F.V(g) || (m[h + U36] = { + hj: g, + Cc: ia + }); + F.V(b) || (m[h + D36] = { + hj: b, + Cc: ia + }); + this.Rg.pza(m, function(a) { + var Z8C; + Z8C = 2; + while (Z8C !== 5) { + switch (Z8C) { + case 1: + d(); + Z8C = 5; + break; + case 2: + a || (a = N.time.da() - k, c.ac.xL += a); + Z8C = 1; + break; + } + } + }.bind(this)); + t8C = 15; + break; + } + } + }; + v.prototype.zD = function(a) { + var F8C, v36; + F8C = 2; + while (F8C !== 5) { + v36 = "_onE"; + v36 += "rr"; + v36 += "or: "; + switch (F8C) { + case 2: + oa(v36, a.toString()); + this.kZ(a); + F8C = 5; + break; + } + } + }; + v.prototype.mVa = function(a, b) { + var c88 = H4DD; + var C8C, c, d, f, g, k, d36, M36, c36, t36, C36, N36, k36; + C8C = 2; + while (C8C !== 16) { + d36 = ".du"; + d36 += "ra"; + d36 += "tions"; + M36 = "h"; + M36 += "e"; + M36 += "ad"; + M36 += "e"; + M36 += "r"; + c36 = "."; + c36 += "si"; + c36 += "z"; + c36 += "e"; + c36 += "s"; + t36 = "."; + t36 += "fra"; + t36 += "gme"; + t36 += "nts"; + C36 = ".dr"; + C36 += "mHe"; + C36 += "a"; + C36 += "der"; + N36 = "."; + N36 += "heade"; + N36 += "r"; + N36 += "Dat"; + N36 += "a"; + k36 = ".met"; + k36 += "ada"; + k36 += "ta"; + switch (C8C) { + case 1: + C8C = !a.Vd || !this.Vt || a.qD[a.Ya] && a.qD[a.Ya].header ? 5 : 4; + break; + case 2: + C8C = 1; + break; + case 7: + c88.S26(3); + g[c88.Q26(k36, c)] = { + hj: f, + Cc: ia + }; + c88.z26(3); + g[c88.Q26(N36, c)] = { + hj: a.Wn, + Cc: ia + }; + f = a.Ne || a.Ny; + F.V(f) || (g[c + C36] = { + hj: f, + Cc: ia + }); + C8C = 12; + break; + case 11: + f = { + timescale: a.stream.Y.ha, + startTicks: a.stream.Y.Rl, + offset: a.stream.Y.Jl(0) + }; + k = a.stream.Y.iE; + c88.S26(3); + g[c88.Q26(t36, c)] = { + hj: f, + Cc: ia + }; + c88.S26(3); + g[c88.Q26(c36, c)] = { + hj: k.sizes.buffer, + Cc: ia + }; + C8C = 18; + break; + case 4: + c = [a.R, a.Ya, M36].join("."); + d = N.time.da(); + f = z(a); + g = {}; + C8C = 7; + break; + case 5: + b(); + C8C = 16; + break; + case 12: + C8C = a.stream.Mc ? 11 : 17; + break; + case 18: + c88.z26(3); + g[c88.T26(d36, c)] = { + hj: k.Sd.buffer, + Cc: ia + }; + C8C = 17; + break; + case 17: + this.Rg.pza(g, function(c) { + var U8C; + U8C = 2; + while (U8C !== 5) { + switch (U8C) { + case 2: + c || (c = N.time.da() - d, a.as.ac.xL += c); + b(); + U8C = 5; + break; + } + } + }); + C8C = 16; + break; + } + } + }; + x7C = 70; + break; + case 50: + v.prototype.list = function() { + var r4C; + r4C = 2; + while (r4C !== 1) { + switch (r4C) { + case 2: + return this.vg; + break; + case 4: + return this.vg; + break; + r4C = 1; + break; + } + } + }; + v.prototype.bAa = function(a) { + var L4C; + L4C = 2; + while (L4C !== 1) { + switch (L4C) { + case 2: + this.pG != a && (this.pG = a, this.NN()); + L4C = 1; + break; + } + } + }; + v.prototype.VSa = function(a) { + var I4C, b; + I4C = 2; + while (I4C !== 4) { + switch (I4C) { + case 5: + return new Z(function(a) { + var J4C, k4C; + J4C = 2; + while (J4C !== 4) { + switch (J4C) { + case 1: + a({}); + J4C = 4; + break; + case 2: + J4C = F.V(this.Rg) ? 1 : 5; + break; + case 5: + try { + k4C = 2; + while (k4C !== 1) { + switch (k4C) { + case 2: + this.Rg.gz("", function(c) { + var u4C; + u4C = 2; + while (u4C !== 5) { + switch (u4C) { + case 2: + c = c.filter(function(a) { + var f4C, e36; + f4C = 2; + while (f4C !== 5) { + e36 = "mov"; + e36 += "ieE"; + e36 += "ntry"; + switch (f4C) { + case 2: + a = a.split("."); + return b && (b === a[0] || e36 === a[0] && b === a[1]); + break; + } + } + }.bind(this)).reduce(function(a, b) { + var G4C, c, B36; + G4C = 2; + while (G4C !== 3) { + B36 = "mov"; + B36 += "ieEn"; + B36 += "tr"; + B36 += "y"; + switch (G4C) { + case 2: + c = b.split("."); + B36 !== c[0] && (b = c[1], c = c[2], F.V(a[b]) && (a[b] = {}), F.V(a[b][c]) && (a[b][c] = !0)); + return a; + break; + } + } + }, {}); + a(c); + u4C = 5; + break; + } + } + }.bind(this)); + k4C = 1; + break; + } + } + } catch (Qa) { + a({}); + } + J4C = 4; + break; + } + } + }.bind(this)); + break; + case 2: + b = F.V(a) ? "" : a.toString(); + I4C = 5; + break; + } + } + }; + v.prototype.P6 = function(a, b) { + var y4C; + y4C = 2; + while (y4C !== 4) { + switch (y4C) { + case 5: + return b; + break; + case 1: + y4C = (b = a.headers[b]) ? 5 : 4; + break; + case 9: + y4C = (a = this.Gb[a]) ? 8 : 2; + break; + y4C = (a = this.Gb[a]) ? 1 : 4; + break; + case 2: + y4C = (a = this.Gb[a]) ? 1 : 4; + break; + } + } + }; + v.prototype.qeb = function(a, b) { + var X4C, c; + X4C = 2; + while (X4C !== 4) { + switch (X4C) { + case 2: + c = this.zua(a); + return c || !this.Vt ? Z.resolve(c) : (this.yn ? this.QSa(a, b) : this.PSa(a, b)).then(function(a) { + var e4C; + e4C = 2; + while (e4C !== 1) { + switch (e4C) { + case 2: + return t(a); + break; + case 4: + return t(a); + break; + e4C = 1; + break; + } + } + }); + break; + } + } + }; + v.prototype.zua = function(a) { + var B4C; + B4C = 2; + while (B4C !== 1) { + switch (B4C) { + case 4: + return t(this.Gb[a]); + break; + B4C = 1; + break; + case 2: + return t(this.Gb[a]); + break; + } + } + }; + v.prototype.vy = function() { + var s4C, s36; + s4C = 2; + while (s4C !== 1) { + s36 = "Med"; + s36 += "ia cach"; + s36 += "e is not enabl"; + s36 += "ed"; + switch (s4C) { + case 2: + return this.Jt ? this.Jt.then(function() { + var q4C; + q4C = 2; + while (q4C !== 1) { + switch (q4C) { + case 2: + return new Z(function(a) { + var Y4C, A36; + Y4C = 2; + while (Y4C !== 1) { + A36 = "mo"; + A36 += "vi"; + A36 += "e"; + A36 += "Entry"; + switch (Y4C) { + case 2: + this.Rg.gz(A36, function(b) { + var v4C, c; + v4C = 2; + while (v4C !== 8) { + switch (v4C) { + case 2: + v4C = 1; + break; + case 5: + a([]); + v4C = 8; + break; + case 4: + c = []; + b.forEach(function(a) { + var W4C; + W4C = 2; + while (W4C !== 1) { + switch (W4C) { + case 2: + a && a.length && (a = a.split(".")) && 1 < a.length && c.push(a[1]); + W4C = 1; + break; + } + } + }); + a(c); + v4C = 8; + break; + case 1: + v4C = !b || 0 >= b.length ? 5 : 4; + break; + } + } + }); + Y4C = 1; + break; + } + } + }.bind(this)); + break; + } + } + }.bind(this)) : Z.reject(s36); + break; + } + } + }; + v.prototype.Aqa = function() { + var m4C, c, d, f, g, k, r36, w36; + m4C = 2; + while (m4C !== 3) { + switch (m4C) { + case 2: + c = 0; + for (k in this.Gb) + if (f = this.Gb[k], f.data) { + d = !1; + for (var h in f.data) { + r36 = "in"; + r36 += " ent"; + r36 += "r"; + r36 += "y:"; + w36 = "missing"; + w36 += " headerEntry for stream"; + w36 += "Id"; + w36 += ":"; + (g = f.headers[h]) || qa(w36, h, r36, f); + F.V(void 0) || !g || void 0 === g.P ? ((F.V(void 0) || void 0 != h) && b(f, h), f.data[h].forEach(a), delete f.data[h]) : d = !0; + } + d || delete f.data; + } m4C = 4; + break; + case 4: + this.aVa(c); + m4C = 3; + break; + case 14: + this.aVa(c); + m4C = 5; + break; + m4C = 3; + break; + } + } - function d() {} + function b(a, b) { + var A4C; + A4C = 2; + while (A4C !== 1) { + switch (A4C) { + case 2: + a.data[b].forEach(function(a) { + var i8C; + i8C = 2; + while (i8C !== 5) { + switch (i8C) { + case 2: + a.abort(ta); + c += a.Ae; + i8C = 5; + break; + } + } + }); + A4C = 1; + break; + } + } + } - function h(a, c, d, g) { - var f; - f = this; - this.is = a; - this.md = c; - this.config = d; - this.Cg = g; - this.Gd = function() { - return new b().encode({ - version: f.version, - data: f.Qh - }); - }; - this.uI = function(a) { - if (f.is.Eh(a)) return f.lcb(a); - if (void 0 != a.version && f.is.ye(a.version) && 1 == a.version) return f.mcb(a); - if (void 0 != a.version && f.is.ye(a.version) && 2 == a.version) return new b().decode(a); - if (a.version && f.is.ye(a.version)) throw new r.nb(m.v.jl, m.u.kS, void 0, void 0, void 0, "Version number is not supported. Version: " + a.version, void 0, a); - throw new r.nb(m.v.jl, m.u.hn, void 0, void 0, void 0, "The format of the playdata is inconsistent with what is expected.", void 0, a); - }; - this.Ng = new u.BT(2, this.config().TA, "" !== this.config().TA && 0 < this.config().cH, this.md, this.Gd); - } - Object.defineProperty(c, "__esModule", { - value: !0 - }); - f = a(1); - l = a(0); - g = a(29); - m = a(2); - k = a(20); - r = a(48); - u = a(232); - n = a(56); - q = a(22); - w = a(200); - h.prototype.d4 = function() { - return this.Ng.load(this.uI)["catch"](function(a) { - throw new r.nb(m.v.jl, a.R || a.tb, void 0, void 0, void 0, "Unable to load persisted playdata.", void 0, a); - }); - }; - h.prototype.iX = function(a) { - return this.Ng.add(a); - }; - h.prototype.sH = function(a) { - return this.Ng.remove(a, function(a, b) { - return a.aa === b.aa; - }); - }; - h.prototype.Ax = function(a) { - return this.Ng.update(a, function(a, b) { - return a.aa === b.aa; - }); - }; - h.prototype.toString = function() { - return JSON.stringify(this.Gd(), null, " "); - }; - h.prototype.Nsa = function(a) { - return a ? "/events?playbackContextId=" + a + "&esn=" + this.Cg().$d : ""; - }; - h.prototype.i6 = function(a) { - return a.map(function(a) { - return { - ac: a.downloadableId, - duration: a.duration - }; - }); - }; - h.prototype.Osa = function(a) { - return a ? { - total: a.playTimes.total, - audio: this.i6(a.playTimes.audio || []), - video: this.i6(a.playTimes.video || []), - text: this.i6(a.playTimes.timedtext || []) - } : { - total: 0, - audio: [], - video: [], - text: [] - }; - }; - h.prototype.lcb = function(a) { - var b, c, d; - b = this; - a = JSON.parse(a); - c = { - type: "online", - profileId: a.accountKey, - href: this.Nsa(a.playbackContextId), - aa: a.xid ? a.xid.toString() : "", - M: a.movieId, - position: a.position, - GE: a.timestamp, - IH: a.playback ? 1E3 * a.playback.startEpoch : -1, - Jg: a.mediaId, - po: this.Osa(a.playback), - Ab: "", - jf: { - dummy: "dummy" - } - }; - d = JSON.stringify({ - keySessionIds: a.keySessionIds, - movieId: a.movieId, - xid: a.xid, - licenseContextId: a.licenseContextId, - profileId: a.profileId - }); - this.md.create().then(function(a) { - a.save(b.config().Iz, d, !1); - }); - if (!c.profileId || "" === c.href || "" === c.aa) throw new r.nb(m.v.jl, m.u.hn); - return { - version: 2, - data: [c] - }; - }; - h.prototype.mcb = function(a) { - var b; - b = this; - if (!a.playdata || !this.is.Gn(a.playdata)) throw new r.nb(m.v.jl, m.u.hn, void 0, void 0, void 0, "The version 1 playdata is corrupted.", void 0, a); - return { - version: 2, - data: function(a) { - return a.map(function(a) { - return { - type: a.type, - profileId: a.profileId, - href: b.Nsa(a.playbackContextId), - aa: a.xid ? a.xid.toString() : "", - M: a.movieId, - position: a.position, - GE: a.timestamp, - IH: a.playback ? 1E3 * a.playback.startEpoch : -1, - Jg: a.mediaId, - po: b.Osa(a.playback), - Ab: "", - jf: { - dummy: "dummy" + function a(a) { + var Q4C; + Q4C = 2; + while (Q4C !== 1) { + switch (Q4C) { + case 2: + a.yna(); + Q4C = 1; + break; + case 4: + a.yna(); + Q4C = 9; + break; + Q4C = 1; + break; + } + } } }; - }); - }(a.playdata) - }; - }; - pa.Object.defineProperties(h.prototype, { - version: { - configurable: !0, - enumerable: !0, - get: function() { - return this.Ng.version; - } - }, - Qh: { - configurable: !0, - enumerable: !0, - get: function() { - return this.Ng.um; + x7C = 63; + break; + case 2: + F = a(11); + A = a(14); + N = a(8); + O = a(369); + a(205); + Y = a(365); + U = a(204).cW; + x7C = 6; + break; + case 23: + da = a(353); + ha = a(352).Cw; + ka = N.Uz; + a(28); + ia = { + lifespan: 259200 + }; + ea = Q.trace.bind(Q); + na = ja.trace.bind(ja); + oa = Q.warn.bind(Q); + x7C = 30; + break; } } - }); - a = h; - a = f.__decorate([l.N(), f.__param(0, l.j(k.rd)), f.__param(1, l.j(n.fk)), f.__param(2, l.j(g.Ef)), f.__param(3, l.j(q.Ee))], a); - c.OCa = a; - d.prototype.encode = function(a) { - var b; - b = new w.qU(); - return a.map(b.encode); - }; - d.prototype.decode = function(a) { - var b; - b = new w.qU(); - return a.map(b.decode); - }; - b.prototype.encode = function(a) { - return { - version: a.version, - data: new d().encode(a.data) - }; - }; - b.prototype.decode = function(a) { - return { - version: a.version, - data: new d().decode(a.data) - }; - }; - }, function(f, c, a) { - var h, l, g, m, k, r, u, n, q; - - function b(a, b, c, d, g) { - this.config = a; - this.ha = c; - this.De = d; - this.R3 = g; - this.closed = this.Wi = !1; - this.log = b.Bb("PlaydataServices"); - this.Vk = []; - } - function d(a, b, c, d) { - this.log = a; - this.ha = b; - this.N3 = c; - this.De = d; - this.vs = !1; - } - Object.defineProperty(c, "__esModule", { - value: !0 - }); - f = a(1); - h = a(0); - l = a(29); - g = a(2); - m = a(48); - k = a(7); - r = a(12); - u = a(43); - n = a(334); - a = a(325); - d.prototype.rq = function(a, b) { - var d; - - function c() { - var a; - a = d.N3.FF(); - a.active = !0; - d.De.Ax(a)["catch"](function(a) { - d.log.error("Unable to persist playdata changes", a); - }); + function q(a, b) { + var i4C, c, q36, E36; + i4C = 2; + while (i4C !== 3) { + q36 = "me"; + q36 += "dia"; + q36 += "ca"; + q36 += "c"; + q36 += "he"; + E36 = "medi"; + E36 += "acache-e"; + E36 += "rro"; + E36 += "r"; + switch (i4C) { + case 4: + c.on(a, E36, function(a) { + var o4C, a36, p36; + o4C = 2; + while (o4C !== 5) { + a36 = "media"; + a36 += "c"; + a36 += "ache"; + p36 = "er"; + p36 += "r"; + p36 += "o"; + p36 += "r"; + switch (o4C) { + case 2: + a.type = p36; + b.Ia(a36, a); + o4C = 5; + break; + } + } + }); + i4C = 3; + break; + case 2: + c = new va(); + c.on(a, q36, function(a) { + var O4C, g36; + O4C = 2; + while (O4C !== 4) { + g36 = "me"; + g36 += "diac"; + g36 += "a"; + g36 += "c"; + g36 += "he"; + switch (O4C) { + case 2: + O4C = a.keys || a.items ? 1 : 5; + break; + case 5: + b.Ia(g36, a); + O4C = 4; + break; + case 1: + a.keys || a.items.map(function(a) { + var c4C; + c4C = 2; + while (c4C !== 1) { + switch (c4C) { + case 2: + return a.key; + break; + case 4: + return a.key; + break; + c4C = 1; + break; + } + } + }); + O4C = 5; + break; + } + } + }); + i4C = 4; + break; + } + } } - d = this; - this.log.trace("Adding initial playdata", JSON.stringify(b, null, " ")); - b.active = !0; - this.De.iX(b).then(function() { - d.log.trace("Scheduling monitor", { - interval: a - }); - d.ak = d.ha.EQ(a, c); - })["catch"](function() { - d.log.error("Unable to add playdata", JSON.stringify(b, null, " ")); - d.ak = d.ha.EQ(a, c); - }); - }; - d.prototype.stop = function(a, b) { - var c, d; - c = this; - if (this.vs) return Promise.resolve(); - this.ak.cancel(); - d = this.N3.FF(); - d.active = !1; - return new Promise(function(g, f) { - c.De.Ax(d)["catch"](function(a) { - c.log.error("Unable to persist playdata changes", a); - }).then(function() { - if (!b) return c.log.trace("Currently configured to not send play data, not sending the data to the server"), Promise.resolve(); - c.log.trace("Sending final playdata to the server", JSON.stringify(d)); - return c.B5(a, d); - }).then(function() { - if (!b) return c.log.trace("Currently configured to not send play data, not removing the play data from IDB"), Promise.resolve(); - c.log.trace("Removing playdata from the persisted store", JSON.stringify(d)); - return c.De.sH(d); - }).then(function() { - c.log.info("Successfully stopped the playback", d.M); - g(); - })["catch"](function(a) { - c.log.error("Unable to persist playdata changes", a); - f(a); - }); - }); - }; - d.prototype.cancel = function() { - this.vs = !0; - this.ak.cancel(); - this.De.Ax(this.N3.FF()); - }; - d.prototype.B5 = function(a, b) { - return new Promise(function(c, d) { - a.stop({ - Qh: [b] - }).then(function(a) { - (a = a.shift()) && a.then(function() { - c(); - })["catch"](d); - }); - }); - }; - b.prototype.Xc = function() { - var a, b; - a = this; - b = this.config(); - return void 0 === b || void 0 === b.TA || void 0 === b.Woa || void 0 === b.cH || void 0 === b.mB ? Promise.reject(new m.nb(g.v.fCa, g.u.G6)) : this.Wi ? Promise.resolve() : new Promise(function(b) { - a.De.d4().then(function() { - a.Wi = !0; - b(); - })["catch"](function(c) { - a.log.error("Unable to read the playdata, it will deleted and not sent to the server", c); - a.Wi = !0; - b(); - }); - }); - }; - b.prototype.close = function() { - this.closed = !0; - this.Vk.forEach(function(a) { - a.rq.cancel(); - }); - }; - b.prototype.send = function(a) { - var b; - if (this.closed) return Promise.resolve(); - b = this.config(); - return b.TA && b.mB ? this.W4(a) : Promise.resolve(); - }; - b.prototype.t$a = function(a) { - this.closed || this.jR(a, "online"); - }; - b.prototype.s$a = function(a) { - this.closed || this.jR(a, "offline"); - }; - b.prototype.C5 = function(a) { - var b, c, d; - b = this; - if (this.closed) return Promise.resolve(); - c = this.gka(a); - if (c) { - d = this.Vk.filter(function(b) { - return b.key === a.aa.toString(); - }).map(function(a) { - return a.rq.stop(c, b.config().mB); - }).shift(); - if (d) return d; + + function d(a, b, d, f, g, k, h, m) { + var M7C, p, l, r, n, u, i36, l36; + M7C = 2; + while (M7C !== 13) { + i36 = "vid"; + i36 += "eo_tr"; + i36 += "acks"; + l36 = "a"; + l36 += "udio_"; + l36 += "tr"; + l36 += "ac"; + l36 += "ks"; + switch (M7C) { + case 9: + a[[l36, i36][d]][f].streams.forEach(function(a, b) { + var S7C, c; + S7C = 2; + while (S7C !== 14) { + switch (S7C) { + case 3: + S7C = b < k.Eva || b > k.Rua ? 9 : 8; + break; + case 9: + a.inRange = !1; + S7C = 8; + break; + case 2: + a = G.M3(n, b, void 0, k, m); + b = a.O; + c = a.oc; + S7C = 3; + break; + case 8: + S7C = c < k.Fva || c > k.Sua ? 7 : 6; + break; + case 7: + a.inRange = !1; + S7C = 6; + break; + case 6: + (a.Fl ? r : l).push(a); + S7C = 14; + break; + } + } + }); + a = []; + g && 0 !== l.length && (u = c(b, l, p, k, h)) && a.push(u); + u || (u = c(b, r, p, k, h)) && a.push(u); + M7C = 14; + break; + case 2: + p = d === ba.G.VIDEO; + l = []; + r = []; + n = U.uR(void 0, a, d, f, void 0, m); + M7C = 9; + break; + case 14: + return a; + break; + } + } } - return Promise.resolve(); - }; - b.prototype.jR = function(a, b) { - var c, d; - if (0 < this.config().cH) { - c = a.FF(); - d = c.aa.toString(); - 0 <= this.Vk.findIndex(function(a) { - return a.key === d; - }) ? this.log.trace("Already collecting " + b + " playdata, ignoring", c) : (c.type = b, this.log.info("Starting to collect " + b + " playdata", c), this.Vk.push({ - key: d, - rq: this.T_(a, c) - })); + + function E(a) { + var H4C; + H4C = 2; + while (H4C !== 1) { + switch (H4C) { + case 2: + return { + mediaType: a.P, streamId: a.Ya, movieId: a.R, bitrate: a.O, location: a.location, serverId: a.cd, saveToDisk: a.Vd, offset: a.offset, bytes: a.Z, startTicks: a.Ib, durationTicks: a.Ah, timescale: a.ha + }; + break; + } + } } - }; - b.prototype.W4 = function(a) { - var b, c, d; - b = this; - c = void 0; - d = void 0; - a && Infinity === a ? c = this.De.Qh.filter(function(a) { - return !a.active; - }) : (c = a ? this.De.Qh.filter(function(b) { - return b.M === a && !b.active; - }) : void 0, d = a ? this.De.Qh.filter(function(b) { - return b.M !== a && !b.active; - }) : this.De.Qh.filter(function(a) { - return !a.active; - })); - d && this.ha.Af(k.Cb(this.config().Woa), function() { - b.FH(d); - }); - return c && 0 !== c.length ? this.FH(c) : Promise.resolve(); - }; - b.prototype.FH = function(a) { - var c; - function b(b) { - var d, g; - d = a.filter(function(a) { - return a.type === b; - }); - if (0 < d.length) { - g = c.gka(d[0]); - if (g) return g.stop({ - Qh: d - }); + function z(a) { + var x4C, b; + x4C = 2; + while (x4C !== 9) { + switch (x4C) { + case 2: + b = E(a); + b.timescale = a.ha; + b.frameDuration = a.stream.Ka && a.stream.Ka.vd; + return b; + break; + } } - return Promise.resolve([]); } - c = this; - return new Promise(function(a, d) { - Promise.all([b("online"), b("offline")]).then(function(b) { - b = b[0].concat(b[1]).map(function(a) { - return c.p4(a); - }); - Promise.all(b).then(function() { - a(); - })["catch"](d); - })["catch"](d); - }); - }; - b.prototype.p4 = function(a) { - var b; - b = this; - return new Promise(function(c, d) { - a.then(function(a) { - return b.De.sH(a); - }).then(function() { - c(); - })["catch"](function(a) { - b.log.error("Unble to complete the stop lifecycle event", a); - d(a); - }); - }); - }; - b.prototype.T_ = function(a, b) { - a = new d(this.log, this.ha, a, this.De); - a.rq(k.Cb(this.config().cH), b); - return a; - }; - b.prototype.gka = function(a) { - return this.R3.filter(function() { - return "online" === a.type && !0 || "offline" === a.type && !1; - }).shift(); - }; - q = b; - q = f.__decorate([h.N(), f.__param(0, h.j(l.Ef)), f.__param(1, h.j(r.Jb)), f.__param(2, h.j(u.xh)), f.__param(3, h.j(a.l7)), f.__param(4, h.tt(n.O9))], q); - c.FDa = q; - }, function(f, c, a) { - var d, h, l, g, m, k, r, u; - function b(a, b, c, d) { - var g; - g = this; - this.is = a; - this.md = b; - this.config = c; - this.qo = d; - this.Gd = function() { - return { - version: g.version, - playdata: g.Qh.map(function(a) { - return a.Gd(); - }) - }; - }; - this.uI = function(a) { - var b; - g.is.Eh(a) && (a = g.kcb(a)); - b = { - version: 1, - data: [] - }; - if (void 0 != a.version && g.is.ye(a.version) && 1 == a.version) { - b.version = a.version; - try { - b.data = a.playdata.map(function(a) { - return g.qo.load(a); - }); - } catch (F) { - throw new m.nb(l.v.jl, l.u.hn, void 0, void 0, void 0, "The format of the playdata is inconsistent with what is expected.", F); + function D(a) { + var T4C; + T4C = 2; + while (T4C !== 1) { + switch (T4C) { + case 2: + return { + Dd: a.priority, R: a.movieId, headers: a.headers, Ur: 0, CH: 0, YR: 0, Vd: a.saveToDisk, ac: a.stats, zl: a.firstSelectedStreamBitrate, Yn: a.initSelectionReason, Lm: a.histDiscountedThroughputValue, wk: a.histTdigest, Dl: a.histAge + }; + break; } - } else { - if (!a.version || !g.is.ye(a.version)) throw new m.nb(l.v.jl, l.u.hn, void 0, void 0, void 0, "The format of the playdata is inconsistent with what is expected."); - if (1 !== a.version) throw new m.nb(l.v.jl, l.u.kS, void 0, void 0, void 0, "Version number is not supported. Version: " + g.getVersion); } - return b; - }; - this.Ng = new k.BT(1, this.config().TA, "" !== this.config().TA && 0 < this.config().cH, this.md, this.Gd); - } - Object.defineProperty(c, "__esModule", { - value: !0 - }); - f = a(1); - d = a(0); - h = a(29); - l = a(2); - g = a(20); - m = a(48); - k = a(232); - r = a(56); - a = a(202); - b.prototype.d4 = function() { - var a; - a = this; - return new Promise(function(b, c) { - a.Ng.load(a.uI).then(function() { - b(); - })["catch"](function(a) { - a.R && a.cause ? c(new m.nb(l.v.jl, a.R, void 0, void 0, void 0, "Unable to load persisted playdata.", void 0, a)) : c(a); - }); - }); - }; - b.prototype.iX = function(a) { - return this.Ng.add(a); - }; - b.prototype.sH = function(a) { - return this.Ng.remove(a, function(a, b) { - return a.aa === b.aa; - }); - }; - b.prototype.Ax = function(a) { - return this.Ng.update(a, function(a, b) { - return a.aa === b.aa; - }); - }; - b.prototype.toString = function() { - return JSON.stringify(this.Gd(), null, " "); - }; - b.prototype.kcb = function(a) { - var b, c, d; - b = this; - a = JSON.parse(a); - c = this.qo.load({ - profileId: a.profileId, - type: "online", - xid: a.xid, - movieId: a.movieId, - mediaId: a.mediaId, - timestamp: a.timestamp, - position: a.position, - playback: a.playback, - playbackContextId: a.playbackContextId, - playbackSessionId: a.playbackSessionId - }); - d = JSON.stringify({ - keySessionIds: a.keySessionIds, - movieId: a.movieId, - xid: a.xid, - licenseContextId: a.licenseContextId, - profileId: a.profileId - }); - this.md.create().then(function(a) { - a.save(b.config().Iz, d, !1); - }); - if (!(c.profileId && c.Dc && c.aa && c.L && c.L.po && c.L.po.total)) throw new m.nb(l.v.jl, l.u.hn); - return { - version: 1, - playdata: [c.Gd()] - }; - }; - pa.Object.defineProperties(b.prototype, { - version: { - configurable: !0, - enumerable: !0, - get: function() { - return this.Ng.version; + } + + function w(a) { + var a4C; + a4C = 2; + while (a4C !== 1) { + switch (a4C) { + case 2: + return { + priority: a.Dd, movieId: a.R, headers: Object.create(null), saveToDisk: a.Vd, stats: {}, firstSelectedStreamBitrate: a.zl, initSelectionReason: a.Yn, histDiscountedThroughputValue: a.Lm, histTdigest: a.wk, histAge: a.Dl + }; + break; + } } - }, - Qh: { - configurable: !0, - enumerable: !0, - get: function() { - return this.Ng.um; + } + + function f(a) { + var t7C, b; + t7C = 2; + while (t7C !== 3) { + switch (t7C) { + case 1: + b = 0; + F.forEach(a, function(a) { + var K7C; + K7C = 2; + while (K7C !== 1) { + switch (K7C) { + case 2: + F.forEach(a.streams, function(a) { + var Z7C; + Z7C = 2; + while (Z7C !== 1) { + switch (Z7C) { + case 2: + b = Math.max(b, a.bitrate); + Z7C = 1; + break; + } + } + }); + K7C = 1; + break; + } + } + }); + return b; + break; + case 2: + t7C = 1; + break; + } } } - }); - u = b; - u = f.__decorate([d.N(), f.__param(0, d.j(g.rd)), f.__param(1, d.j(r.fk)), f.__param(2, d.j(h.Ef)), f.__param(3, d.j(a.CU))], u); - c.ava = u; - }, function(f, c, a) { - var r; - - function b() {} - - function d(a) { - this.active = !1; - this.type = "online"; - a ? this.ni(a) : this.L = new h(); - } - - function h(a) { - a ? this.ni(a) : this.po = new l(); - } - function l(a) { - a ? this.ni(a) : (this.total = 0, this.audio = [], this.video = [], this.text = []); - } - - function g(a) { - a && this.ni(a); - } + function l(a, b) { + var B7C, c, X36, z1C; + B7C = 2; + while (B7C !== 7) { + X36 = "he"; + X36 += "a"; + X36 += "d"; + X36 += "e"; + X36 += "r"; + switch (B7C) { + case 2: + c = {}; + a = b[0].split("."); + c.movieId = a[0]; + c.streamId = a[1]; + H4DD.S26(4); + z1C = H4DD.T26(19, 173, 18, 9); + c.isHeader = X36 === a[z1C]; + return new Z(function(a, d) { + var s7C, L46; + s7C = 2; + while (s7C !== 1) { + L46 = "bi"; + L46 += "l"; + L46 += "lb"; + L46 += "oar"; + L46 += "d"; + switch (s7C) { + case 2: + this.Rg.iU(L46, b, function(b, f) { + var q7C, g, Y7C, F46, Z46; + q7C = 2; + while (q7C !== 5) { + switch (q7C) { + case 2: + try { + Y7C = 2; + while (Y7C !== 4) { + F46 = "Missing o"; + F46 += "r invalid media "; + F46 += "data p"; + F46 += "arts "; + F46 += "for stream "; + Z46 = "Mi"; + Z46 += "ssing or invalid header d"; + Z46 += "ata p"; + Z46 += "arts for stream"; + Z46 += " "; + switch (Y7C) { + case 2: + Y7C = b ? 1 : 3; + break; + case 5: + a(g); + Y7C = 4; + break; + case 1: + d(b); + Y7C = 5; + break; + case 8: + Y7C = g.Bc ? 7 : 6; + break; + case 6: + Y7C = void 0 === g.Z || void 0 === g.offset || void 0 === g.ha || void 0 === g.Ib || void 0 === g.Ah ? 14 : 5; + break; + case 7: + g.Wn && g.ha && g.Y && void 0 !== g.Y.Rl && void 0 !== g.Y.offset && void 0 !== g.Y.Sd && g.Y.Sd.length && void 0 !== g.Y.sizes && g.Y.sizes.length || (b = Z46 + g.Ya, d(b)); + Y7C = 5; + break; + case 3: + Object.keys(f).map(function(a) { + var v7C, b, g, Q7C, W7C, Y46, W46; + v7C = 2; + while (v7C !== 6) { + Y46 = "m"; + Y46 += "etada"; + Y46 += "t"; + Y46 += "a"; + W46 = "fra"; + W46 += "gme"; + W46 += "n"; + W46 += "ts"; + switch (v7C) { + case 2: + b = a.substr(a.lastIndexOf(".") + 1); + v7C = 5; + break; + case 9: + v7C = W46 === b ? 8 : 7; + break; + case 8: + try { + Q7C = 2; + while (Q7C !== 1) { + switch (Q7C) { + case 2: + c[b] = f[a]; + Q7C = 1; + break; + case 4: + c[b] = f[a]; + Q7C = 0; + break; + Q7C = 1; + break; + } + } + } catch (Ja) { + d(Ja); + } + v7C = 6; + break; + case 4: + try { + W7C = 2; + while (W7C !== 1) { + switch (W7C) { + case 2: + g = JSON.parse(String.fromCharCode.apply(null, new Uint8Array(f[a]))); + W7C = 1; + break; + } + } + } catch (Ja) { + g = f[a]; + } + Object.keys(g).map(function(a) { + var m7C; + m7C = 2; + while (m7C !== 1) { + switch (m7C) { + case 2: + c[a] = g[a]; + m7C = 1; + break; + case 4: + c[a] = g[a]; + m7C = 6; + break; + m7C = 1; + break; + } + } + }); + v7C = 6; + break; + case 7: + c[b] = f[a]; + v7C = 6; + break; + case 5: + v7C = Y46 === b ? 4 : 9; + break; + } + } + }); + g = P(c); + Y7C = 8; + break; + case 14: + b = F46 + g.Ya, d(b); + Y7C = 5; + break; + } + } + } catch (Za) { + d(Za); + } + q7C = 5; + break; + } + } + }); + s7C = 1; + break; + } + } + }.bind(this)); + break; + } + } + } + }()); + }, function(g, d, a) { + var h, k; - function m(a) { - a && this.ni(a); + function b() { + this.Rq = this.cG = this.fO = this.tO = this.aO = null; } - function k(a) { - a && this.ni(a); + function c(a) { + this.K = a; + this.Qt = []; + this.hm = new b(); + this.lG(); } - Object.defineProperty(c, "__esModule", { - value: !0 - }); - f = a(1); - a = a(0); - k.prototype.ni = function(a) { - this.ac = a.downloadableId; - this.duration = a.duration; - this.J = a.bitrate; - }; - k.prototype.Gd = function() { - return { - downloadableId: this.ac, - duration: this.duration, - bitrate: this.J - }; - }; - m.prototype.ni = function(a) { - this.ac = a.downloadableId; - this.duration = a.duration; - this.J = a.bitrate; - this.je = a.vmaf; - }; - m.prototype.Gd = function() { - return { - downloadableId: this.ac, - duration: this.duration, - bitrate: this.J, - vmaf: this.je - }; - }; - g.prototype.ni = function(a) { - this.ac = a.downloadableId; - this.duration = a.duration; - }; - g.prototype.Gd = function() { - return { - downloadableId: this.ac, - duration: this.duration - }; - }; - l.prototype.ni = function(a) { - this.total = a.total || 0; - this.audio = a.audio ? a.audio.map(function(a) { - return new k(a); - }) : []; - this.video = a.video ? a.video.map(function(a) { - return new m(a); - }) : []; - this.text = a.timedtext ? a.timedtext.map(function(a) { - return new g(a); - }) : []; - }; - l.prototype.Gd = function() { - var a; - a = {}; - a.total = this.total; - this.audio.length && (a.audio = this.audio.map(function(a) { - return a.Gd(); - })); - this.video.length && (a.video = this.video.map(function(a) { - return a.Gd(); - })); - this.text.length && (a.timedtext = this.text.map(function(a) { - return a.Gd(); - })); - return a; - }; - h.prototype.ni = function(a) { - a && (this.kR = a.startPosition, this.Era = a.startEpoch, this.po = new l(a.playTimes)); + h = a(11); + a(13); + a(28); + k = a(8); + new k.Console("ASEJS_SESSION_HISTORY", "media|asejs"); + b.prototype.Lh = function(a) { + var b; + b = !1; + a && h.has(a, "ens") && h.has(a, "lns") && h.has(a, "fns") && h.has(a, "d") && h.has(a, "t") && (this.aO = a.ens, this.tO = a.lns, this.fO = a.fns, this.cG = a.d, this.Rq = k.time.yT(a.t), b = !0); + return b; }; - h.prototype.Gd = function() { + b.prototype.Ee = function() { var a; + if (h.Na(this.aO) || h.Na(this.tO) || h.Na(this.fO) || h.Na(this.cG) || h.Na(this.Rq)) return null; a = { - playTimes: this.po.Gd() + d: this.cG, + t: k.time.MJ(this.Rq) }; - this.Era && (a.startEpoch = this.Era); - this.kR && (a.startPosition = this.kR); + a.ens = this.aO; + a.lns = this.tO; + a.fns = this.fO; return a; }; - d.prototype.ni = function(a) { - this.profileId = a.profileId; - this.type = a.type; - this.Dc = a.playbackContextId; - this.xi = a.playbackSessionId; - this.aa = a.xid; - this.M = a.movieId; - this.Jg = a.mediaId; - this.L = new h(a.playback); - this.timestamp = a.timestamp; - this.position = a.position; - }; - d.prototype.Gd = function() { - return JSON.parse(JSON.stringify({ - profileId: this.profileId, - type: this.type, - playbackContextId: this.Dc, - playbackSessionId: this.xi, - xid: this.aa, - movieId: this.M, - mediaId: this.Jg, - timestamp: this.timestamp, - position: this.position, - playback: this.L.Gd() - })); - }; - c.Gib = d; - b.prototype.create = function() { - return new d(); + b.prototype.get = function() { + var a, b; + a = this.Ee(); + if (a) { + b = new Date(k.time.MJ(this.Rq)); + a.dateint = 1E4 * b.getFullYear() + 100 * (b.getMonth() + 1) + b.getDate(); + a.hour = b.getHours(); + } + return a; }; - b.prototype.load = function(a) { - return new d(a); + c.prototype.lG = function() { + var a; + a = k.storage.get("sth"); + a && this.EG(a); }; - r = b; - r = f.__decorate([a.N()], r); - c.EDa = r; - }, function(f, c, a) { - var h, l, g, m, k, r, n, q, z, w, t, x, y, C, F, N, T, A; - - function b(a) { - return function() { - return new Promise(function(b, c) { - var d; - d = a.kc.get(k.Jaa); - d.Xc().then(function() { - b(d); - })["catch"](function(a) { - c(a); - }); - }); - }; - } - - function d(a) { - return function() { - return a.kc.get(n.oaa).Xc(); - }; - } - Object.defineProperty(c, "__esModule", { - value: !0 - }); - f = a(0); - h = a(202); - l = a(627); - g = a(325); - m = a(626); - k = a(201); - r = a(625); - n = a(121); - q = a(217); - z = a(200); - w = a(324); - t = a(624); - x = a(623); - y = a(323); - C = a(619); - F = a(199); - N = a(618); - T = a(617); - A = a(616); - c.Qh = new f.dc(function(a) { - a(h.CU).to(l.EDa).Y(); - a(g.l7).to(m.ava).Y(); - a(k.Jaa).to(r.FDa).Y(); - a(k.DU).OB(b); - a(y.Iaa).to(C.DDa).Y(); - a(q.rU).to(z.ZCa).Y(); - a(w.iaa).to(t.OCa).Y(); - a(n.oaa).to(x.$Ca).Y(); - a(n.VJ).OB(d); - a(F.dy).to(N.TCa).Y().GI(); - a(F.dy).to(T.mBa).Y().ZB("type", "online"); - a(F.dy).to(A.kBa).Y().ZB("type", "offline"); - }); - }, function(f, c, a) { - var d, h, l, g, m, k, r, n; - - function b(a, b, c, d, g, f, h) { - this.yLa = a; - this.y7a = b; - this.Cg = d; - this.w1 = g; - this.lqa = f; - this.sqa = h; - this.ca = c.Bb("LicenseProviderImpl"); - } - Object.defineProperty(c, "__esModule", { - value: !0 - }); - f = a(1); - d = a(0); - h = a(12); - l = a(332); - a(331); - g = a(22); - m = a(328); - k = a(104); - r = a(327); - a = a(326); - b.prototype.Yy = function(a, b) { + c.prototype.EG = function(a) { var c, d; - c = this; - d = this.lqa.qbb(a); - return this.yLa.Am(this.ca, b.profile, this.nWa(a), d).then(function(a) { - a.map(function(a) { - return a.Apb; - }); - return c.sqa.rbb(a); - })["catch"](function(a) { - b.log.error("PBO license failed", a); - return Promise.reject(a); - }); - }; - b.prototype.release = function(a, b) { - var c; - c = this; - a = this.lqa.xbb(a); - return this.y7a.Pf(this.ca, b.profile, a).then(function(a) { - return c.sqa.ybb(a); - })["catch"](function(a) { - b.log.error("PBO release license failed", a); - return Promise.reject(a); + c = null; + d = this.K; + a.forEach(function(a) { + var d; + d = new b(); + d.Lh(a) ? (c = !0, this.Qt.push(d)) : h.Na(c) && (c = !1); + }, this); + this.Qt = this.Qt.filter(function(a) { + return a.cG >= d.iT; }); - }; - b.prototype.nWa = function(a) { - var b; - b = this.w1(); - b.bE({ - ldl: { - href: this.oga(a, "limited"), - rel: "ldl" - }, - license: { - href: this.oga(a, "standard"), - rel: "license" - } + this.Qt.sort(function(a, b) { + return a.Rq - b.Rq; }); - return b; + return h.Na(c) ? !0 : c; }; - b.prototype.oga = function(a, b) { - return "/license?licenseType=" + b + "&playbackContextId=" + a.Dc + "&esn=" + this.Cg().$d; - }; - n = b; - n = f.__decorate([d.N(), f.__param(0, d.j(l.haa)), f.__param(1, d.j(m.paa)), f.__param(2, d.j(h.Jb)), f.__param(3, d.j(g.Ee)), f.__param(4, d.j(k.ey)), f.__param(5, d.j(r.jaa)), f.__param(6, d.j(a.kaa))], n); - c.hza = n; - }, function(f, c, a) { - var d, h, l, g, m, k, r; - - function b(a, b, c, d) { - this.I1a = a; - this.mm = c; - this.K1a = d; - this.ca = b.Bb("ManifestProviderImpl"); - } - Object.defineProperty(c, "__esModule", { - value: !0 - }); - f = a(1); - d = a(0); - h = a(14); - l = a(15); - g = a(333); - m = a(12); - k = a(63); - a = a(144); - b.prototype.Xz = function(a, b) { - var c; - c = this; - return this.mm().then(function(d) { - return c.I1a.Am(c.ca, d.profile, b, a); - }).then(function(a) { - return c.K1a.encode(a); - })["catch"](function(a) { - c.ca.error("PBO manifest failed", a); - return Promise.reject(a); - }); + c.prototype.HZ = function() { + var a; + a = []; + this.Qt.forEach(function(b) { + a.push(b.Ee()); + }, this); + return a; }; - b.prototype.Zga = function(a, b) { - var c; - c = {}; - a && h.Kb(a, function(a, b) { - c[a] = l.oc(b) ? b : JSON.stringify(b); - }); - b && h.Kb(b, function(a, b) { - c[a] = l.oc(b) ? b : JSON.stringify(b); - }); - return c; + c.prototype.save = function() { + var a, c, d; + a = this.HZ(); + c = this.K; + d = this.hm.Ee(); + d && d.d >= c.iT && (a.push(d), this.Qt.push(this.hm)); + a.length > c.US && (a = a.slice(a.length - c.US, a.length)); + this.hm = new b(); + a && k.storage.set("sth", a); }; - r = b; - r = f.__decorate([d.N(), f.__param(0, d.j(g.naa)), f.__param(1, d.j(m.Jb)), f.__param(2, d.j(k.gn)), f.__param(3, d.j(a.BC))], r); - c.Xza = r; - }, function(f, c, a) { - var d, h, l; - - function b(a, b) { - this.Cg = a; - this.w1 = b; - } - Object.defineProperty(c, "__esModule", { - value: !0 - }); - f = a(1); - d = a(0); - h = a(22); - a = a(104); - b.prototype.decode = function(a) { - var b; - b = { - movieId: a.movieId, - packageId: a.packageId, - duration: a.runtime, - locations: this.PXa(a.locations), - servers: this.DYa(a.cdns), - audio_tracks: this.getAudioTracks(a.audioTracks), - video_tracks: this.getVideoTracks(a.videoTracks, a.videoEncrypted ? a.psshb64 : void 0), - cdnResponseData: a.cdnResponseData, - isSupplemental: a.isSupplemental, - choiceMap: a.branchMap, - watermarkInfo: a.watermark, - drmVersion: null, - playbackContextId: a.playbackContextId, - bookmark: a.bookmark.position / 1E3, - hasDrmProfile: !0, - hasDrmStreams: a.videoEncrypted, - hasClearProfile: !1, - hasClearStreams: !a.videoEncrypted, - defaultTrackOrderList: this.cXa(a.defaultMedia), - timedtexttracks: this.XYa(a.textTracks), - media: this.cq(a.media), - trickplays: this.$Ya(a.trickPlayTracks), - drmContextId: a.drmContextId, - version: 2, - dpsid: null, - isBranching: !!a.branchMap, - clientIpAddress: a.clientIpAddress, - esn: this.Cg().$d, - drmType: "", - expiration: 0, - initialHeader: void 0 - }; - b.ax = a.ax; - b.eB = a.eB; - b.mt = this.w1(); - b.mt.ELa(b); - return b; + c.prototype.reset = function() { + this.hm = new b(); }; - b.prototype.cXa = function(a) { - return [{ - mediaId: a, - audioTrackId: "", - videoTrackId: "", - subtitleTrackId: "", - preferenceOrder: 0 - }]; + c.prototype.H8a = function() { + return this.hm.get(); }; - b.prototype.PXa = function(a) { - return a ? a.map(function(a) { - return { - key: a.id, - rank: a.rank, - level: a.level, - weight: a.weight - }; - }) : []; + c.prototype.C$a = function() { + return this.Qt.length + 1; }; - b.prototype.DYa = function(a) { - return a ? a.map(function(a) { - return { - name: a.name, - type: a.type, - id: a.id, - key: a.locationId, - rank: a.rank, - lowgrade: a.isLowgrade - }; - }) : []; + c.prototype.SWa = function(a) { + this.hm.aO = a; + this.hm.Rq = k.time.da(); }; - b.prototype.uka = function(a) { - return Object.keys(a).map(function(b) { - return { - cdn_id: b, - url: a[b] - }; - }); + c.prototype.$Wa = function(a) { + this.hm.tO = a; + this.hm.Rq = k.time.da(); }; - b.prototype.getAudioTracks = function(a) { - var b; - b = this; - return a ? a.map(function(a) { - var c; - c = a.downloadables; - return { - type: 0, - channels: a.channels, - language: a.bcp47, - languageDescription: a.language, - trackType: a.trackType, - streams: b.rWa(c, a), - channelsFormat: a.channelsLabel, - surroundFormatLabel: a.channelsLabel, - profile: c && c.length ? c[0].contentProfile : void 0, - rawTrackType: a.trackType.toLowerCase(), - new_track_id: a.id, - track_id: a.id, - id: a.id, - disallowedSubtitleTracks: [], - defaultTimedText: null, - isNative: !1, - profileType: "", - stereo: !1, - codecName: "AAC" - }; - }) : []; + c.prototype.WWa = function(a, b) { + this.hm.fO = a; + this.hm.Rq = k.time.da(); + this.hm.cG = b; }; - b.prototype.rWa = function(a, b) { - var c; - c = this; - return a ? (a = a.map(function(a) { - return { - type: 0, - trackType: b.trackType, - content_profile: a.contentProfile, - downloadable_id: a.downloadableId, - bitrate: a.bitrate, - language: b.bcp47, - urls: c.uka(a.urls), - isDrm: !!a.isEncrypted, - new_stream_id: a.id, - size: a.size, - channels: b.channels, - channelsFormat: "2.0", - surroundFormatLabel: "2.0", - audioKey: null - }; - }), a.sort(function(a, b) { - return a.bitrate - b.bitrate; - }), a) : []; + g.M = c; + }, function(g, d, a) { + var c, h; + + function b(a) { + this.K = a; + this.lG(); + } + c = a(11); + h = a(8); + new h.Console("ASEJS_NETWORK_HISTORY", "media|asejs"); + b.prototype.save = function() { + var a; + a = this.Ee(); + h.storage.set("nh", a); }; - b.prototype.getVideoTracks = function(a, b) { - var c; - c = this; - return a ? a.map(function(a) { - return { - type: 1, - trackType: "PRIMARY", - streams: c.cZa(a.downloadables, a.trackType), - profile: "", - new_track_id: a.id, - track_id: a.id, - dimensionsCount: 2, - dimensionsLabel: "2D", - drmHeader: b && b.length ? { - bytes: b[0], - checksum: "", - systemType: "", - keyId: b[0].substr(b.length - 25) - } : void 0, - prkDrmHeaders: void 0, - ict: !1, - profileType: "", - stereo: !1, - maxWidth: 0, - maxHeight: 0, - pixelAspectX: 1, - pixelAspectY: 1, - max_framerate_value: 0, - max_framerate_scale: 256, - minCroppedWidth: 0, - minCroppedHeight: 0, - minCroppedX: 0, - minCroppedY: 0, - maxCroppedWidth: 0, - maxCroppedHeight: 0, - maxCroppedX: 0, - maxCroppedY: 0, - minWidth: 0, - minHeight: 0 - }; - }) : []; + b.prototype.Xob = function() { + this.kx || (this.kx = !0, this.Vq = h.time.da()); }; - b.prototype.cZa = function(a, b) { - var c; - c = this; - return a ? (a = a.map(function(a) { - return { - type: 1, - trackType: b, - content_profile: a.contentProfile, - downloadable_id: a.downloadableId, - bitrate: a.bitrate, - urls: c.uka(a.urls), - pix_w: a.width, - pix_h: a.height, - res_w: a.width, - res_h: a.height, - hdcp: a.hdcpVersions, - vmaf: a.vmaf, - size: a.size, - isDrm: a.isEncrypted, - new_stream_id: "0", - peakBitrate: 0, - dimensionsCount: 2, - dimensionsLabel: "2D", - startByteOffest: 0, - framerate_value: a.framerate_value, - framerate_scale: a.framerate_scale, - crop_x: a.cropParamsX, - crop_y: a.cropParamsY, - crop_w: a.cropParamsWidth, - crop_h: a.cropParamsHeight - }; - }), a.sort(function(a, b) { - return a.bitrate - b.bitrate; - }), a) : []; + b.prototype.jpb = function() { + var a; + if (this.kx) { + a = h.time.da(); + this.$q += a - this.Vq; + this.Vq = a; + this.kx = !1; + this.kG = null; + } }; - b.prototype.XYa = function(a) { - var b; - b = this; - return a ? a.map(function(a) { - return { - type: "timedtext", - trackType: "SUBTITLES" === a.trackType ? "PRIMARY" : "ASSISTIVE", - rawTrackType: a.trackType.toLowerCase(), - language: a.bcp47 || null, - languageDescription: a.language, - new_track_id: a.id, - id: a.id, - isNoneTrack: a.isNone, - isForcedNarrative: a.isForced, - downloadableIds: b.QYa(a.downloadables), - ttDownloadables: b.RYa(a.downloadables), - isLanguageLeftToRight: !!a.isLanguageLeftToRight, - cdnlist: [] - }; - }) : []; + b.prototype.mta = function(a, b) { + this.kx && (b > this.Vq && (this.$q += b - this.Vq, this.Vq = b), null === this.kG || a > this.kG) && (a = b - a, this.TA.push([this.$q - a, a]), this.B_(), this.kG = b); }; - b.prototype.QYa = function(a) { - return a ? a.reduce(function(a, b) { - a[b.contentProfile] = b.downloadableId; - return a; - }, {}) : {}; + b.prototype.B_ = function() { + var a; + a = this.$q - this.K.ugb; + this.TA = this.TA.filter(function(b) { + return b[0] > a; + }); }; - b.prototype.RYa = function(a) { - return a ? a.reduce(function(a, b) { - b.isImage && 720 !== b.pixHeight || (a[b.contentProfile] = { - size: b.size, - textKey: null, - isImage: b.isImage, - midxOffset: b.offset, - height: b.pixHeight, - width: b.pixWidth, - downloadUrls: b.urls, - hashValue: "", - hashAlgo: "sha1", - midxSize: void 0 - }); - return a; - }, {}) : {}; + b.prototype.lG = function() { + var a; + a = h.storage.get("nh"); + this.EG(a) || (this.Vq = h.time.da(), this.$q = 0, this.kx = !1, this.kG = null, this.TA = []); + }; + b.prototype.EG = function(a) { + if (!(a && c.has(a, "t") && c.has(a, "s") && c.has(a, "i") && c.ja(a.t) && c.ja(a.s) && c.isArray(a.i))) return !1; + this.Vq = h.time.yT(1E3 * a.t); + this.$q = 1E3 * a.s; + this.kx = !1; + this.TA = a.i.map(function(a) { + return [1E3 * a[0], a[1]]; + }); + this.kG = null; + return !0; }; - b.prototype.cq = function(a) { - return a ? a.map(function(a) { - return { - id: a.mediaId, - tracks: { - AUDIO: a.tracks.find(function(a) { - return "AUDIO" === a.type; - }).id, - VIDEO: a.tracks.find(function(a) { - return "VIDEO" === a.type; - }).id, - TEXT: a.tracks.find(function(a) { - return "TEXT" === a.type; - }).id - } - }; - }) : []; + b.prototype.Ee = function() { + return this.kx ? { + t: h.time.now() / 1E3 | 0, + s: (this.$q + (h.time.da() - this.Vq)) / 1E3 | 0, + i: this.TA.map(function(a) { + return [a[0] / 1E3 | 0, a[1]]; + }) + } : { + t: h.time.MJ(this.Vq) / 1E3 | 0, + s: this.$q / 1E3 | 0, + i: this.TA.map(function(a) { + return [a[0] / 1E3 | 0, a[1]]; + }) + }; }; - b.prototype.$Ya = function(a) { + g.M = b; + }, function(g, d, a) { + var h, k, f, p, m; + + function b(a) { var b; - if (a) { - b = []; - a.map(function(a) { - a.downloadables.map(function(a) { - b.push({ - downloadable_id: a.downloadableId, - size: a.size, - urls: Object.keys(a.urls).map(function(b) { - return a.urls[b]; - }), - id: a.id, - interval: a.interval, - pixelsAspectY: a.pixWidth, - pixelsAspectX: a.pixHeight, - width: a.resWidth, - height: a.resHeight - }); - }); - }); - return b; + if (!a.F_) { + b = a.dsa(); + a.ug.tx(b["default"].za, a.Pg); + a.ug.Mz(b.xk ? b.xk.PT : void 0, b.xk ? b.xk.aE : void 0); + h.Na(a.zb) || (a.F_ = !0); + } + } + + function c(a, b, c) { + var d; + this.K = c; + this.il = {}; + this.OA = c.OA; + this.oja = new p(this.OA); + this.reset(); + this.Mt = a; + this.ug = b; + this.Pja = k.Ek.name(); + this.ug.OU(this.Pja); + this.AG = this.Jw = 0; + this.TF = []; + k.events.on("networkchange", function(a) { + this.Pja = a; + this.ug.OU(a); + }.bind(this)); + d = c.i2; + d && (d = { + zc: f.gd.fF, + pa: { + za: parseInt(d, 10), + Kg: 0 + }, + kg: { + AYa: 0, + Kg: 0 + }, + Xn: { + AYa: 0, + Kg: 0 + } + }, this.get = function() { + return d; + }); + } + h = a(11); + k = a(8); + f = a(13); + a(28); + d = a(29).EventEmitter; + p = a(376).lda; + m = new k.Console("ASEJS_NETWORK_MONITOR", "media|asejs"); + c.prototype = Object.create(d); + Object.defineProperties(c.prototype, { + startTime: { + get: function() { + return this.Gc; + } + }, + zc: { + get: function() { + return this.Pg; + } + }, + Zo: { + get: function() { + return this.Jw; + } + }, + NWa: { + get: function() { + return this.TF; + } } - return []; - }; - b.prototype.encode = function(a) { - return { - audioEncrypted: !!a.audioEncrypted, - videoEncrypted: a.hasDrmStreams, - audioTracks: this.sbb(a.audio_tracks), - bookmark: { - position: 1E3 * a.bookmark, - timestamp: 0 - }, - cdns: this.tbb(a.servers), - timedTextCdns: this.Abb(a.timedtexttracks), - clientIpAddress: a.clientIpAddress, - defaultMedia: a.defaultTrackOrderList[0].mediaId, - drmContextId: a.drmContextId, - locations: this.ubb(a.locations), - media: this.vbb(a.media, a.duration), - movieId: a.movieId, - packageId: a.packageId, - playbackContextId: a.playbackContextId, - runtime: a.duration, - success: !0, - textTracks: this.zbb(a.timedtexttracks), - trickPlayTracks: this.Bbb(a.trickplays), - videoTracks: this.Cbb(a.video_tracks), - isSupplemental: "SUPPLEMENTAL" === a.viewableType, - psshb64: this.wbb(a.video_tracks), - watermark: a.watermarkInfo, - cdnResponseData: a.cdnResponseData, - branchMap: a.choiceMap, - pboExpiration: a.expiration - }; + }); + c.prototype.FRa = function() { + var a, b, c; + a = this.K; + b = a.DZ; + c = this.oja; + return a.URa.reduce(function(a, d) { + a[d] = c.create(d, b); + return a; + }, {}); }; - b.prototype.wbb = function(a) { - var b; - b = a.map(function(a) { - return a.prkDrmHeaders; - }).filter(Boolean); - b = [].concat.apply([], [].concat(Xc(b))).map(function(a) { - return a.bytes; - }); - a = a.map(function(a) { - return a.drmHeader; - }).filter(Boolean).map(function(a) { - return a.bytes; - }); - return 0 < b.length ? b : a; + c.prototype.reset = function() { + var a, c, d; + a = this.K.DZ; + c = this.oja; + d = this.K; + this.location = null; + this.il = this.FRa(); + this.Xq = c.create("respconn-ewma", a); + this.Nq = c.create("respconn-ewma", a); + this.Pg = f.gd.HAVE_NOTHING; + this.mWa = function() { + b(this); + }.bind(this); + this.kP = void 0; + this.Et = this.Lb = this.zb = this.Gc = null; + this.dRa = this.fP = 0; + this.GUa = !1; + d.Qya && (this.AG = this.Jw = 0, this.TF = []); }; - b.prototype.sbb = function(a) { + c.prototype.QU = function(a) { var b; - b = this; - return a.map(function(a) { - var c; - c = a.streams.map(function(a) { - return { - bitrate: a.bitrate, - contentProfile: a.content_profile, - downloadableId: a.downloadable_id, - id: a.new_stream_id, - isEncrypted: !!a.isDrm, - size: a.size, - urls: b.Vpa(a.urls), - validFor: 0 - }; - }); - return { - bcp47: a.language, - channels: a.channels, - channelsCount: a.channelCount || 2, - channelsLabel: a.channelsFormat, - id: a.new_track_id, - language: a.languageDescription, - trackType: a.trackType, - type: "AUDIO", - downloadables: c - }; - }); - }; - b.prototype.tbb = function(a) { - return a.map(this.rsa); + b = this.il; + if (a !== this.location) { + h.V(this.kP) || (clearInterval(this.kP), this.kP = void 0); + h.Na(this.location) && (this.fP = 0, this.Gc = null); + if (!h.Na(a)) { + this.Pg = f.gd.HAVE_NOTHING; + for (var c in b) b[c] && b[c].reset && b[c].reset(); + this.Xq.reset(); + this.Nq.reset(); + } + h.Na(this.Gc) || (this.fP += (h.Na(this.zb) ? k.time.da() : this.zb) - this.Gc); + this.zb = this.Gc = null; + this.Lb = 0; + this.location = a; + this.ug.QU(a); + } }; - b.prototype.Abb = function(a) { - var b, c; - b = this; - c = []; - a.forEach(function(a) { - a.cdnlist.forEach(function(a) { - c.find(function(b) { - return b.id === a.id + ""; - }) || c.push(b.rsa(a)); - }); - }); - c.sort(function(a, b) { - return a.rank - b.rank; - }); - return c; + c.prototype.OU = function(a) { + this.ug.OU(a); }; - b.prototype.rsa = function(a) { - return { - id: a.id + "", - isExclusive: !!a.isExclusive, - isLowgrade: a.lowgrade, - locationId: a.key + "", - name: a.name, - rank: a.rank, - type: a.type - }; + c.prototype.VWa = function(a) { + this.il.QoEEvaluator ? m.warn("monitor (QoEEvaluator) already existed.") : this.il.QoEEvaluator = a; }; - b.prototype.ubb = function(a) { - return a.map(function(a) { - return { - id: a.key, - level: a.level, - rank: a.rank, - weight: a.weight - }; - }); + c.prototype.Dlb = function() { + delete this.il.QoEEvaluator; }; - b.prototype.vbb = function(a, b) { + c.prototype.wB = function(a, b) { var c; - c = this; - return a.map(function(a) { - return { - mediaId: a.id, - runtime: b / 1E3 || 0, - score: 0, - tracks: c.LPa(a.tracks) - }; - }); + c = this.il["req-pacer"]; + c && c.wB(a, b); }; - b.prototype.jXa = function(a) { - return a.downloadableIds && Object.keys(a.downloadableIds).length ? Object.keys(a.downloadableIds).map(function(b) { - var c, d; - c = a.ttDownloadables && a.ttDownloadables[b]; - d = a.downloadableIds[b] || null; - b = { - contentProfile: b, - downloadableId: d, - id: d, - isImage: !(!c || !c.isImage), - type: "PRIMARY", - urls: c ? c.downloadUrls : {}, - validFor: 0 - }; - c && c.isImage && (b.offset = c.midxOffset || 0, b.size = c.midxSize || 0, b.pixHeight = c.height, b.pixWidth = c.width); - return b; - }) : null; + c.prototype.l$a = function() { + return this.il["req-pacer"]; }; - b.prototype.zbb = function(a) { + c.prototype.sP = function(a, c, d) { + var g, k; + g = this.K; + k = this.il; + if (h.V(c)) m.warn("addDataReceived called with undefined start time"); + else { + g.ZRa && 10 > d - c ? c = d - 10 : 0 === d - c && (c = d - 1); + for (var p in k) k[p] && k[p].add && k[p].add(a, c, d); + this.Pg = Math.max(this.Pg, f.gd.Us); + h.Na(this.Gc) && (this.Gc = c, this.zb = null, this.F_ = !1, this.Lb = 0); + h.Na(this.zb) || (c > this.zb && (this.Gc += c - this.zb), this.zb = null, this.F_ = !1); + this.Lb += a; + this.Pg < f.gd.Ho && (d - this.Gc > g.nTa || this.Lb > g.mTa) && (this.Pg = f.gd.Ho); + this.Pg < f.gd.fF && (d - this.Gc > g.LUa || this.Lb > g.KUa) && (!this.GUa || this.dRa > g.lTa) && (this.Pg = f.gd.fF, b(this), this.kP = setInterval(this.mWa, g.TSa)); + h.Na(this.Et) || (c - this.Et > g.nka ? this.Mt.mta(this.Et, c) : d - c > g.nka && this.Mt.mta(c, d)); + this.Et = Math.max(d, this.Et); + } + }; + c.prototype.hr = function(a) { + this.Xq.add(a); + this.ug.hr(a); + }; + c.prototype.fr = function(a) { + this.Nq.add(a); + this.ug.fr(a); + }; + c.prototype.start = function(a) { var b; - b = this; - return a.map(function(a) { - return { - bcp47: a.language || void 0, - id: a.new_track_id, - isForced: a.isForcedNarrative, - isNone: a.isNoneTrack, - language: a.languageDescription, - trackType: a.rawTrackType.toUpperCase(), - type: "TEXT", - downloadables: b.jXa(a), - isLanguageLeftToRight: a.isLanguageLeftToRight - }; - }); + h.Na(this.Et) && !h.Na(this.zb) && (this.Et = a); + b = this.il; + if (this.K.R$) + for (var c in b) b[c] && b[c].start && b[c].start(a); }; - b.prototype.Bbb = function(a) { - var b; - if (!a) return []; - a = a.reduce(function(a, b) { - a.push({ - downloadableId: b.downloadable_id, - id: b.id, - interval: b.interval, - pixHeight: b.pixelsAspectY, - pixWidth: b.pixelsAspectX, - resHeight: b.width, - resWidth: b.height, - size: b.size, - urls: { - unknown: b.urls[0] - }, - validFor: 0 - }); - return a; - }, []); - b = []; - 0 < a.length && b.push({ - downloadables: a, - id: "", - type: "TRICKPLAY" - }); - return b; + c.prototype.stop = function(a) { + var b, c; + b = this.il; + for (c in b) b[c] && b[c].stop && b[c].stop(a); + this.zb = h.Na(this.zb) ? a : Math.min(this.zb, a); + this.Et = null; }; - b.prototype.iXa = function(a) { - var b; - b = this; - return a.map(function(a) { - var c, d, g, f; - c = a.pix_h; - d = a.pix_w; - g = a.res_h; - f = a.res_w; - d > c ? f = Math.floor(f * d / c) : g = Math.floor(g * c / d); - return { - bitrate: a.bitrate, - contentProfile: a.content_profile, - downloadableId: a.downloadable_id, - hdcpVersions: a.hdcp, - height: g, - id: a.new_stream_id, - isEncrypted: !!a.isDrm, - size: a.size, - urls: b.Vpa(a.urls), - vmaf: a.vmaf, - width: f, - validFor: 0, - cropParamsX: a.crop_x, - cropParamsY: a.crop_y, - cropParamsWidth: a.crop_w, - cropParamsHeight: a.crop_h, - framerate_value: a.framerate_value, - framerate_scale: a.framerate_scale - }; - }); + c.prototype.flush = function() { + var a, b; + a = this.il; + for (b in a) a[b] && a[b].flush && a[b].flush(); }; - b.prototype.Cbb = function(a) { - var b; - b = this; - return a.map(function(a) { - return { - id: a.new_track_id, - trackType: a.trackType, - type: "VIDEO", - downloadables: b.iXa(a.streams) - }; - }); + c.prototype.fail = function() { + this.Gc = null; }; - b.prototype.Vpa = function(a) { - return a.reduce(function(a, b) { - a[b.cdn_id + ""] = b.url; - return a; - }, {}); + c.prototype.$8a = function() { + var a, b; + a = this.il.entropy; + a && (b = a.zZa(), a.reset()); + return b; }; - b.prototype.LPa = function(a) { - return Object.keys(a).map(function(b) { - var c; - c = {}; - return c.type = b, c.id = a[b], c; - }); + c.prototype.dsa = function() { + var a, b, c, d, f, g, h; + a = k.time.da(); + b = {}; + c = this.il; + d = this.K; + f = d.IRa; + g = d.rVa; + for (h in c) c[h] && c[h].get && (b[h] = c[h].get(a), "iqr" === c[h].type && (b.xk = b[h]), "tdigest" === c[h].type && (b.Tl = b[h])); + b["default"] = f && b[f] ? b[f] : b["throughput-ewma"]; + "none" !== d.W9 && "none" !== g && (b.xza = g && b[g] ? b[g] : b["throughput-sw"]); + return b; }; - l = b; - l = f.__decorate([d.N(), f.__param(0, d.j(h.Ee)), f.__param(1, d.j(a.ey))], l); - c.Yza = l; - }, function(f, c, a) { - var d; - - function b(a, b) { - return d.nb.call(this, a, b.R, b.ub, b.Wv, b.Ms, b.ne, b.za, b.ji) || this; - } - Object.defineProperty(c, "__esModule", { - value: !0 - }); - d = a(48); - oa(b, d.nb); - c.RDa = b; - }, function(f, c, a) { - var d, h, l, g, m, k, r, n; - - function b(a, b, c, d) { - this.Za = b; - this.ys = c; - this.mm = d; - this.log = a.Bb("LifecycleProvider"); - } - Object.defineProperty(c, "__esModule", { - value: !0 - }); - f = a(1); - d = a(0); - h = a(2); - l = a(12); - g = a(48); - m = a(33); - k = a(63); - r = a(204); - n = a(632); - b.prototype.stop = function(a) { - var b; - b = this; - return this.mm().then(function(c) { - return b.ys && b.ys.stop ? a.Qh.map(function(a) { - return b.B5(b.aw(c, a), b.ys, a); - }) : a.Qh.map(function() { - return Promise.reject(new g.nb(h.v.$C, h.u.pU)); - }); - }); + c.prototype.get = function() { + var a, b, c, d, f; + a = this.dsa(); + b = a["default"]; + c = this.Xq.get(); + d = this.Nq.get(); + if (a.xza) f = a.xza, b = h.ja(b.za) && h.ja(f.za) && b.za > f.za && 0 < f.za ? f : b; + a.zc = this.Pg; + a.pa = b; + a.kg = c; + a.Xn = d; + b = this.fP + !h.Na(this.Gc) ? (h.Na(this.zb) ? k.time.da() : this.zb) - this.Gc : 0; + a.time = b; + return a; }; - b.prototype.B5 = function(a, b, c) { - var d; - d = this; - return new Promise(function(f, m) { - d.bWa(c).then(function(c) { - return b.stop(a, c); - }).then(function() { - f(c); - })["catch"](function(a) { - var b; - if (a instanceof g.nb) m(a); - else if (void 0 !== a.R) m(new n.RDa(h.v.$C, a)); - else { - b = new g.nb(h.v.GU); - b.bF(a); - m(b); - } - }); - }); + c.prototype.oU = function(a, b) { + 1 === ++this.Jw && (this.emit("active", a), this.start(a)); + b && this.TF.push(b); }; - b.prototype.bWa = function(a) { - return a.Dc ? Promise.resolve({ - Dc: a.Dc, - xi: a.xi, - aa: a.aa, - Jg: a.Jg, - position: a.position, - L: a.L, - timestamp: a.timestamp - }) : Promise.reject(new g.nb(h.v.$C, h.u.KCa, void 0, void 0, void 0, "Playback context is missing")); + c.prototype.B9 = function() { + ++this.AG; }; - b.prototype.aw = function(a, b) { - return { - log: this.log, - Za: this.Za, - profile: a.Xn(b.profileId) - }; + c.prototype.qU = function(a, b, c) { + b && --this.AG; + --this.Jw; + this.K.Qya && (this.Jw = Math.max(this.Jw, 0), this.AG = Math.max(this.AG, 0)); + 0 === this.Jw && (this.stop(a), this.emit("inactive", a)); + c && (a = this.TF.indexOf(c), 0 <= a && this.TF.splice(a, 1)); }; - a = b; - a = f.__decorate([d.N(), f.__param(0, d.j(l.Jb)), f.__param(1, d.j(m.hg)), f.__param(2, d.j(r.sS)), f.__param(3, d.j(k.gn))], a); - c.iza = a; - }, function(f, c, a) { - var d, h, l, g, m, k, r, n, q, t, w, G; + g.M = c; + }, function(g) { + (function() { + var h46, O46; + h46 = 2; + while (h46 !== 8) { + O46 = "1SI"; + O46 += "YbZrNJCp"; + O46 += "9"; + switch (h46) { + case 2: + d.prototype.start = function(a) { + var n46; + n46 = 2; + while (n46 !== 1) { + switch (n46) { + case 2: + this.Gc ? a < this.Gc ? (this.Ot += this.Gc - a, this.Gc = a) : a > this.Da && (this.Da = this.Gc = a) : this.Da = this.Gc = a; + n46 = 1; + break; + } + } + }; + d.prototype.stop = function(a) { + var u46; + u46 = 2; + while (u46 !== 1) { + switch (u46) { + case 2: + this.Da && a > this.Da && (this.Ot += a - this.Da, this.Da = a); + u46 = 1; + break; + } + } + }; + d.prototype.add = function(a, b, c) { + var H46; + H46 = 2; + while (H46 !== 4) { + switch (H46) { + case 2: + this.start(b); + this.stop(c); + this.Lb += a; + H46 = 4; + break; + } + } + }; + d.prototype.get = function() { + var f46; + f46 = 2; + while (f46 !== 1) { + switch (f46) { + case 2: + return { + za: this.Ot ? Math.floor(8 * this.Lb / this.Ot) : null, hpa: this.Ot ? this.Ot : 0 + }; + break; + } + } + }; + h46 = 3; + break; + case 3: + g.M = d; + O46; + h46 = 8; + break; + } + } - function b(a, b, c, d, g, f, h, m) { - this.gb = a; - this.kf = c; - this.Ep = d; - this.wcb = g; - this.Za = f; - this.jma = h; - this.mm = m; - this.ca = b.Bb("DrmProvider"); - } - Object.defineProperty(c, "__esModule", { - value: !0 - }); - f = a(1); - d = a(0); - h = a(38); - l = a(26); - g = a(62); - m = a(152); - k = a(12); - r = a(33); - n = a(63); - q = a(223); - t = a(126); - w = a(335); - a = a(145); - b.prototype.kd = function(a) { + function d() { + var I46; + I46 = 2; + while (I46 !== 5) { + switch (I46) { + case 2: + this.Ot = this.Lb = 0; + this.Da = this.Gc = void 0; + I46 = 5; + break; + } + } + } + }()); + }, function(g, d, a) { + var c; + + function b(a) { var b, c; - b = this; - c = this.gb.oe(); - return this.mm().then(function(d) { - return b.kf.ws(a.Fj[0].data, [8, 4]) ? { - Ob: [{ - id: "ddd", - kt: "cert", - tA: void 0 - }], - eo: [{ - sessionId: "ddd", - data: new Uint8Array(b.Ep.decode(w.cca)) - }], - LZ: b.gb.oe().ie(c) - } : b.kf.ws(a.Fj[0].data, b.wcb.decode("certificate")) ? { - Ob: [{ - id: "ddd", - kt: "cert", - tA: void 0 - }], - eo: [{ - sessionId: "ddd", - data: new Uint8Array(b.Ep.decode(w.rxa)) - }], - LZ: b.gb.oe().ie(c) - } : b.jma.Yy(b.ZVa(a), b.aw(d)).then(function(a) { - return b.$Va(c, a); - }); + b = a.tb; + c = a.mb; + this.rx = a.sw || 4E3; + this.ZVa = b; + this.kTa = c; + this.reset(); + } + c = a(8); + new c.Console("ASEJS_REQUEST_PACER", "media|asejs"); + b.prototype.HO = function(a, b) { + this.Lb += b; + this.vg.push({ + t: a, + bu: b }); - }; - b.prototype.release = function(a) { - var b; - b = this; - return this.mm().then(function(c) { - return b.jma.release(b.cWa(a), b.aw(c)).then(function(c) { - return b.dWa(c, a); - }); + this.vg.sort(function(a, b) { + return a.t - b.t; }); }; - b.prototype.ZVa = function(a) { - var b; - b = this; - return { - aa: a.aa, - Dc: a.Dc, - cN: a.cN, - Rf: t.u0a(a.Rf), - ii: q.IS[a.ii], - Fj: a.Fj.map(function(a) { - return { - sessionId: a.sessionId, - dataBase64: b.Ep.encode(a.data) - }; - }), - wG: a.wG - }; + b.prototype.vG = function() { + var a; + if (null !== this.zt && null !== this.ck && 0 !== this.vg.length) + for (; this.zt - this.ck > this.rx && this.vg.length;) { + a = this.vg.shift(); + this.Lb -= a.bu; + this.ck = a.t; + } }; - b.prototype.cWa = function(a) { - var b; - b = {}; - a.Dk && a.Ob[0].id && (b[a.Ob[0].id] = this.Ep.encode(a.Dk)); - return a && a.Dk ? { - aa: a.aa, - Ob: a.Ob, - G8a: b - } : { - aa: a.aa, - Ob: a.Ob - }; + b.prototype.reset = function() { + this.vg = []; + this.ck = this.zt = null; + this.Lb = 0; }; - b.prototype.$Va = function(a, b) { - return { - Ob: b.Ob, - eo: b.eo, - LZ: this.gb.oe().ie(a) - }; + b.prototype.setInterval = function(a) { + this.rx = a; + this.vG(); }; - b.prototype.dWa = function(a, b) { - return a && a.response && a.response.data && b.Ob[0].id && (a = a.response.data[b.Ob[0].id]) ? { - response: this.Ep.decode(a) - } : {}; + b.prototype.n$a = function() { + var a; + a = c.time.da(); + return 8 * this.Lb / (a - this.ck); }; - b.prototype.aw = function(a) { - return { - log: this.ca, - Za: this.Za, - profile: a.profile - }; + b.prototype.RZa = function(a) { + return null === this.zt || null === this.ck ? !0 : a <= this.kTa ? !0 : this.n$a() <= this.ZVa; }; - G = b; - G = f.__decorate([d.N(), f.__param(0, d.j(h.eg)), f.__param(1, d.j(k.Jb)), f.__param(2, d.j(l.Re)), f.__param(3, d.j(g.fl)), f.__param(4, d.j(m.mK)), f.__param(5, d.j(r.hg)), f.__param(6, d.j(a.yC)), f.__param(7, d.j(n.gn))], G); - c.Pwa = G; - }, function(f, c, a) { - var d, h, l, g, m, k, r; + b.prototype.wB = function(a, b) { + null === this.zt && (this.zt = a); + null === this.ck && (this.ck = a); + a > this.zt && (this.zt = a); + a < this.zt - this.rx || (a < this.ck && (this.ck = a), this.HO(a, b), this.vG()); + }; + g.M = b; + }, function(g, d, a) { + var c; - function b(a, b, c, d) { - this.is = b; - this.Za = c; - this.ys = d; - this.log = a.Bb("IdentityProvider"); + function b(a) { + var b, d; + b = a.sw; + d = a.mw; + this.rx = b; + this.dZ = { + uhd: a.uhdl, + hd: a.hdl + }; + this.Vg = Math.max(Math.ceil(1 * b / d), 1); + this.oTa = a.mins || 1; + c.call(this, b, d); + this.reset(); } - Object.defineProperty(c, "__esModule", { - value: !0 - }); - f = a(1); - d = a(0); - h = a(2); - l = a(12); - g = a(20); - m = a(48); - k = a(33); - a = a(204); - b.prototype.ping = function(a, b) { - var c; - c = this; - return this.ys.eia ? new Promise(function(d, g) { - c.ys.eia(c.aw(a, b)).then(function() { - d(); - })["catch"](function(a) { - g(new m.nb(h.v.$T, a.R, a.ub, a.Wv, a.Ms, a.ne, a.za, a.ji)); - }); - }) : Promise.reject(new m.nb(h.v.$T, h.u.pU)); - }; - b.prototype.lw = function(a, b) { - var c; - c = this; - return this.ys.lw ? new Promise(function(d, g) { - c.ys.lw(c.aw(a, b)).then(function(a) { - d({ - ds: a.ds, - Kg: a.Kg, - Rj: a.Rj - }); - })["catch"](function(a) { - g(new m.nb(h.v.xC, a.R, a.ub, a.Wv, a.Ms, a.ne, a.za, a.ji)); - }); - }) : Promise.reject(new m.nb(h.v.xC, h.u.pU)); + c = a(130); + new(a(8)).Console("ASEJS_NETWORK_ENTROPY", "media|asejs"); + b.prototype = Object.create(c.prototype); + b.prototype.flush = function() { + this.wc.map(function(a, b) { + this.ama(a, this.U3(b)); + }, this); }; - b.prototype.aw = function(a, b) { - a = { - log: this.log, - Za: this.Za, - profile: a - }; - this.G_a(b) && (a.Tv = b.Tv, a.password = b.password); - this.is.Vy(b) && (a.useNetflixUserAuthData = b); - this.is.Eh(b) && (a.Kg = b); - return a; + b.prototype.zZa = function() { + var a, b, c, d, g, l, n, w; + a = this.dZ; + for (b in a) + if (a.hasOwnProperty(b)) { + c = a[b]; + d = this.A_[b]; + g = this.y_[b]; + if (d.first) { + l = d.first; + n = d.cz; + void 0 !== n && (g[l][n] += 1); + d.first = void 0; + } + for (var d = [], l = 0, c = n = c.length + 1, q = 0; q < n; q++) { + for (var v = 0, t = 0; t < c; t++) v += g[t][q]; + l += v; + d.push(v); + } + v = -1; + if (l > this.oTa) { + for (q = v = 0; q < n; q++) + if (0 < d[q]) + for (t = 0; t < c; t++) { + w = g[t][q]; + 0 < w && (v -= w * Math.log(1 * w / d[q])); + } + v /= l * Math.log(2); + } + this.zZ[b] = v; + } return this.zZ; + }; + b.prototype.ama = function(a, b) { + var c, k, h; + for (var c = this.Vg, d = this.dZ; this.YN.length >= c;) this.YN.shift(); + for (; this.ZN.length >= c;) this.ZN.shift(); + this.YN.push(a); + this.ZN.push(b); + a = this.YN.reduce(function(a, b) { + return a + b; + }, 0); + b = this.ZN.reduce(function(a, b) { + return a + b; + }, 0); + if (0 < b) { + a = 8 * a / b; + for (var g in d) + if (d.hasOwnProperty(g)) { + b = this.A_[g]; + c = this.y_[g]; + k = this.Akb(a, d[g]); + h = b.cz; + void 0 !== h ? c[k][h] += 1 : b.first = k; + b.cz = k; + } + } }; - b.prototype.G_a = function(a) { - return void 0 === a ? !1 : this.is.$L(a) ? this.is.Eh(a.Tv) : !1; + b.prototype.Akb = function(a, b) { + for (var c = 0; c < b.length && a > b[c];) c += 1; + return c; }; - r = b; - r = f.__decorate([d.N(), f.__param(0, d.j(l.Jb)), f.__param(1, d.j(g.rd)), f.__param(2, d.j(k.hg)), f.__param(3, d.j(a.sS))], r); - c.Pya = r; - }, function(f, c, a) { - var b, d, h, l, g, m, k, r, n, q, z, w, G; - Object.defineProperty(c, "__esModule", { - value: !0 - }); - f = a(0); - b = a(204); - d = a(387); - h = a(635); - l = a(386); - g = a(634); - m = a(334); - k = a(633); - r = a(631); - n = a(144); - q = a(630); - z = a(203); - w = a(145); - G = a(629); - c.R3 = new f.dc(function(a) { - a(b.sS).NB(function() { - return t._cad_global.controlProtocol; - }); - a(d.x9).to(h.Pya).Y(); - a(l.X7).to(g.Pwa).Y(); - a(m.O9).to(k.iza).Y(); - a(n.BC).to(r.Yza).Y(); - a(z.MT).to(q.Xza).Y(); - a(w.yC).to(G.hza).Y(); - }); - }, function(f, c) { - Object.defineProperty(c, "__esModule", { - value: !0 - }); - c.Lpb = function(a) { - return a; + b.prototype.shift = function() { + this.ama(this.wc[0], this.U3(0)); + c.prototype.shift.call(this); }; - c.H1a = function(a) { - return a; + b.prototype.reset = function() { + var a, b; + this.A_ = {}; + this.YN = []; + this.ZN = []; + this.y_ = {}; + this.zZ = {}; + a = this.dZ; + for (b in a) + if (a.hasOwnProperty(b)) { + for (var d = this.y_, g = b, m, l = void 0, n = Array(l), l = m = a[b].length + 1, q = 0; q < l; q++) { + n[q] = Array(m); + for (var v = 0; v < m; v++) n[q][v] = 0; + } + d[g] = n; + this.A_[b] = { + first: void 0, + cz: void 0 + }; + this.zZ[b] = 0; + } c.prototype.reset.call(this); }; - c.Mpb = function(a) { - return Object.assign({}, a); + g.M = b; + }, function(g, d, a) { + var c, h, k, f, p, m, l, n, q, v; + + function b(a) { + this.JRa = a; + } + d = a(375); + c = d.uGa; + h = d.sGa; + k = a(374).tGa; + f = a(373); + p = a(372); + m = a(206); + l = a(370); + n = a(732); + q = a(731); + v = a(730); + b.prototype.constructor = b; + b.prototype.create = function(a, b) { + var d, g, r, u; + g = this.JRa[a]; + r = b[a]; + u = {}; + g && Object.keys(g).forEach(function(a) { + u[a] = g[a]; + }); + r && Object.keys(r).forEach(function(a) { + u[a] = r[a]; + }); + switch (u.type) { + case "slidingwindow": + d = new k(u.mw); + break; + case "discontiguous-ewma": + d = new h(u.mw, u.wt); + break; + case "iqr": + d = new f(u.mx, u.mn, u.bw, u.iv); + break; + case "tdigest": + d = new p(u); + break; + case "discrete-ewma": + d = new c(u.hl, u["in"]); + break; + case "tdigest-history": + d = new m(u); + break; + case "iqr-history": + d = new l(u); + break; + case "avtp": + d = new v(); + break; + case "entropy": + d = new n(u); + break; + case "req-pacer": + d = new q(u); + } + d && (d.type = u.type); + return d; }; - }, function(f, c, a) { - var d, h, l, g, m, k, r, n, q; + g.M = b; + }, function(g, d, a) { + function b(a) { + this.data = a; + this.right = this.left = null; + } - function b(a, b, c) { - this.Na = a; - this.bdb = b; - this.performance = c; - h.$i(this, "performance"); + function c(a) { + this.ld = null; + this.sj = a; + this.size = 0; } - Object.defineProperty(c, "__esModule", { - value: !0 - }); - f = a(1); - h = a(49); - l = a(637); - g = a(42); - m = a(50); - k = a(52); - r = a(0); - n = a(339); - q = a(7); - b.prototype.get = function(a, b, c) { - var f; - f = this; - return new Promise(function(h, m) { - var l, k, p; - try { - l = f.bdb.create(); - "withCredentials" in l || m(Error("Missing CORS support")); - l.open("GET", a, !0); - b && (l.withCredentials = !0); - c && (l.timeout = c.qa(q.Ma)); - k = f.Na.Eg; - p = void 0; - l.onreadystatechange = function() { - var b; - switch (l.readyState) { - case XMLHttpRequest.HEADERS_RECEIVED: - p = f.Na.Eg.ie(k); - break; - case XMLHttpRequest.DONE: - b = f.Na.Eg.ie(k); - h({ - body: l.responseText, - status: l.status, - headers: d.Q4a(l.getAllResponseHeaders()), - Ac: f.VXa(a, g.ga(l.responseText.length), b, p) - }); - } - }; - l.send(); - } catch (ca) { - m(ca); - } - }); + d = a(371); + b.prototype.Xe = function(a) { + return a ? this.right : this.left; }; - b.Q4a = function(a) { - var b, d, g; - b = {}; - a = a.split("\r\n"); - for (var c = 0; c < a.length; c++) { - d = a[c]; - g = d.indexOf(": "); - 0 < g && (b[d.substring(0, g).toLowerCase()] = d.substring(g + 2)); + b.prototype.Ol = function(a, b) { + a ? this.right = b : this.left = b; + }; + c.prototype = new d(); + c.prototype.El = function(a) { + if (null === this.ld) return this.ld = new b(a), this.size++, !0; + for (var c = 0, d = null, g = this.ld;;) { + if (null === g) return g = new b(a), d.Ol(c, g), ret = !0, this.size++, !0; + if (0 === this.sj(g.data, a)) return !1; + c = 0 > this.sj(g.data, a); + d = g; + g = g.Xe(c); } - return b; }; - b.prototype.VXa = function(a, b, c, d) { - b = { - size: b, - duration: c, - U5: d - }; - if (!this.performance || !this.performance.getEntriesByName) return b; - c = this.performance.getEntriesByName(a); - if (0 == c.length && (c = this.performance.getEntriesByName(a + "/"), 0 == c.length)) return b; - a = c[c.length - 1]; - b = l.H1a(b); - a.xSa && (b.size = g.ga(a.xSa)); - 0 < a.duration ? b.duration = q.timestamp(a.duration) : 0 < a.startTime && 0 < a.responseEnd && (b.duration = q.timestamp(a.responseEnd - a.startTime)); - 0 < a.requestStart && (b.bia = q.timestamp(a.domainLookupEnd - a.domainLookupStart), b.O5 = q.timestamp(a.connectEnd - a.connectStart), b.U5 = q.timestamp(a.responseStart - a.startTime), 0 === a.secureConnectionStart ? b.Y5 = q.timestamp(0) : void 0 !== a.secureConnectionStart && (c = a.connectEnd - a.secureConnectionStart, b.Y5 = q.timestamp(c), b.O5 = q.timestamp(a.connectEnd - a.connectStart - c))); - return b; + c.prototype.remove = function(a) { + var c, d, g, n, l; + if (null === this.ld) return !1; + c = new b(void 0); + d = c; + d.right = this.ld; + for (var g = null, h = null, l = 1; null !== d.Xe(l);) { + g = d; + d = d.Xe(l); + n = this.sj(a, d.data); + l = 0 < n; + 0 === n && (h = d); + } + return null !== h ? (h.data = d.data, g.Ol(g.right === d, d.Xe(null === d.left)), this.ld = c.right, this.size--, !0) : !1; }; - a = d = b; - a = d = f.__decorate([r.N(), f.__param(0, r.j(k.mj)), f.__param(1, r.j(n.gca)), f.__param(2, r.j(m.tU)), f.__param(2, r.optional())], a); - c.Sxa = a; - }, function(f, c, a) { - var d, h, l, g, m; + g.M = c; + }, function(g, d, a) { + function b(a) { + this.data = a; + this.right = this.left = null; + this.red = !0; + } - function b(a, b) { - this.is = a; - this.json = b; - h.$i(this, "json"); + function c(a) { + this.ld = null; + this.sj = a; + this.size = 0; } - Object.defineProperty(c, "__esModule", { - value: !0 - }); - f = a(1); - d = a(0); - h = a(49); - l = a(50); - g = a(7); - a = a(20); - b.prototype.parse = function(a) { + + function h(a) { + return null !== a && a.red; + } + + function k(a, b) { var c; - a = this.json.parse(a); - if (!this.is.$L(a)) throw Error("FtlProbe: param: not an object"); - if (a.next && !this.is.Xy(a.next)) throw Error("FtlProbe: param.next: not a positive integer"); - if (!this.is.Xy(a.pulses)) throw Error("FtlProbe: param.pulses: not a positive integer"); - if (!this.is.Xy(a.pulse_delay)) throw Error("FtlProbe: param.pulse_delay: not a positive integer"); - if (!this.is.Xy(a.pulse_timeout)) throw Error("FtlProbe: param.pulse_timeout: not a positive integer"); - if (!this.is.Gn(a.urls)) throw Error("FtlProbe: param.urls: not an array"); - if (!this.is.Eh(a.logblob)) throw Error("FtlProbe: param.logblob: not a string"); - if (!this.is.ov(a.ctx)) throw Error("FtlProbe: param.ctx: not an object"); - for (var b = 0; b < a.urls.length; ++b) { - c = a.urls[b]; - if (!this.is.$L(c)) throw Error("FtlProbe: param.urls[" + b + "]: not an object"); - if (!this.is.Xg(c.name)) throw Error("FtlProbe: param.urls[" + b + "].name: not a string"); - if (!this.is.Xg(c.url)) throw Error("FtlProbe: param.urls[" + b + "].url: not a string"); - } - return { - F6a: a.pulses, - D6a: g.Cb(a.pulse_delay), - E6a: g.Cb(a.pulse_timeout), - Xla: a.next ? g.Cb(a.next) : void 0, - ag: a.urls, - J1: a.logblob, - context: a.ctx - }; - }; - m = b; - m = f.__decorate([d.N(), f.__param(0, d.j(a.rd)), f.__param(1, d.j(l.hr))], m); - c.xxa = m; - }, function(f, c, a) { - var d, h, l, g, m, k; + c = a.Xe(!b); + a.Ol(!b, c.Xe(b)); + c.Ol(b, a); + a.red = !0; + c.red = !1; + return c; + } - function b(a, b) { - this.Yi = a; - this.uw = b; + function f(a, b) { + a.Ol(!b, k(a.Xe(!b), !b)); + return k(a, b); } - Object.defineProperty(c, "__esModule", { - value: !0 - }); - f = a(1); - h = a(0); - l = a(42); - g = a(7); - m = a(65); - a = a(105); - b.prototype.uH = function(a) { - a = this.uw.Bs("ftlProbeError", "info", d.Xcb({ - url: a.url, - sc: a.status, - pf_err: a.x3 - }, a)); - this.Yi.Vl(a); + d = a(371); + b.prototype.Xe = function(a) { + return a ? this.right : this.left; }; - b.Xcb = function(a, b) { - b.Ac && (b = b.Ac, d.Fn(a, "d", b.duration), d.Fn(a, "dns", b.bia), d.Fn(a, "tcp", b.O5), d.Fn(a, "tls", b.Y5), d.Fn(a, "ttfb", b.U5), a.sz = b.size.qa(l.gl)); - return a; + b.prototype.Ol = function(a, b) { + a ? this.right = b : this.left = b; }; - b.Fn = function(a, b, c) { - c && (a[b] = c.qa(g.Ma)); - return a; + c.prototype = new d(); + c.prototype.El = function(a) { + var c, d, g, p, l, n, q, t, z; + c = !1; + if (null === this.ld) this.ld = new b(a), c = !0, this.size++; + else { + d = new b(void 0); + g = 0; + p = 0; + l = null; + n = d; + q = null; + t = this.ld; + for (n.right = this.ld;;) { + null === t ? (t = new b(a), q.Ol(g, t), c = !0, this.size++) : h(t.left) && h(t.right) && (t.red = !0, t.left.red = !1, t.right.red = !1); + if (h(t) && h(q)) { + z = n.right === l; + t === q.Xe(p) ? n.Ol(z, k(l, !p)) : n.Ol(z, f(l, !p)); + } + z = this.sj(t.data, a); + if (0 === z) break; + p = g; + g = 0 > z; + null !== l && (n = l); + l = q; + q = t; + t = t.Xe(g); + } + this.ld = d.right; + } + this.ld.red = !1; + return c; }; - k = d = b; - k = d = f.__decorate([h.N(), f.__param(0, h.j(m.jr)), f.__param(1, h.j(a.Tx))], k); - c.gEa = k; - }, function(f, c, a) { - var d, h, l, g, m, k; - - function b(a, b) { - this.Yi = a; - this.uw = b; + c.prototype.remove = function(a) { + var c, d, q, g, t, n, z; + if (null === this.ld) return !1; + c = new b(void 0); + d = c; + d.right = this.ld; + for (var g = null, p, l = null, n = 1; null !== d.Xe(n);) { + q = n; + p = g; + g = d; + d = d.Xe(n); + t = this.sj(a, d.data); + n = 0 < t; + 0 === t && (l = d); + if (!h(d) && !h(d.Xe(n))) + if (h(d.Xe(!n))) p = k(d, n), g.Ol(q, p), g = p; + else if (!h(d.Xe(!n)) && (t = g.Xe(!q), null !== t)) + if (h(t.Xe(!q)) || h(t.Xe(q))) { + z = p.right === g; + h(t.Xe(q)) ? p.Ol(z, f(g, q)) : h(t.Xe(!q)) && p.Ol(z, k(g, q)); + q = p.Xe(z); + q.red = !0; + d.red = !0; + q.left.red = !1; + q.right.red = !1; + } else g.red = !1, t.red = !0, d.red = !0; + } + null !== l && (l.data = d.data, g.Ol(g.right === d, d.Xe(null === d.left)), this.size--); + this.ld = c.right; + null !== this.ld && (this.ld.red = !1); + return null !== l; + }; + g.M = c; + }, function(g, d, a) { + g.M = { + hOa: a(735), + Ntb: a(734) + }; + }, function(g) { + var d, a, b; + d = Object.getOwnPropertySymbols; + a = Object.prototype.hasOwnProperty; + b = Object.prototype.propertyIsEnumerable; + g.M = function() { + var a, d; + try { + if (!Object.assign) return !1; + a = new String("abc"); + a[5] = "de"; + if ("5" === Object.getOwnPropertyNames(a)[0]) return !1; + for (var b = {}, a = 0; 10 > a; a++) b["_" + String.fromCharCode(a)] = a; + if ("0123456789" !== Object.getOwnPropertyNames(b).map(function(a) { + return b[a]; + }).join("")) return !1; + d = {}; + "abcdefghijklmnopqrst".split("").forEach(function(a) { + d[a] = a; + }); + return "abcdefghijklmnopqrst" !== Object.keys(Object.assign({}, d)).join("") ? !1 : !0; + } catch (f) { + return !1; + } + }() ? Object.assign : function(c, g) { + var k, f; + if (null === c || void 0 === c) throw new TypeError("Object.assign cannot be called with null or undefined"); + f = Object(c); + for (var h, m = 1; m < arguments.length; m++) { + k = Object(arguments[m]); + for (var l in k) a.call(k, l) && (f[l] = k[l]); + if (d) { + h = d(k); + for (var n = 0; n < h.length; n++) b.call(k, h[n]) && (f[h[n]] = k[h[n]]); + } + } + return f; + }; + }, function(g) { + function d(a) { + this.LA = a; + this.kd = 0; + this.kB = null; } - Object.defineProperty(c, "__esModule", { - value: !0 - }); - f = a(1); - h = a(0); - l = a(42); - g = a(7); - m = a(65); - a = a(105); - b.prototype.uH = function(a) { - a = this.uw.Bs(a.J1, "info", { - ctx: a.context, - data: a.data.map(function(a) { - return { - name: a.name, - url: a.url, - data: a.data.map(function(a) { - return d.Ycb({ - d: a.Ac.duration.qa(g.Ma), - sc: a.status, - sz: a.Ac.size.qa(l.gl), - via: a.Gcb, - cip: a.$Oa, - err: a.VZ - }, a); - }) - }; - }) - }); - this.Yi.Vl(a); + d.prototype.add = function(a, b, c) { + null !== this.kB && b > this.kB && (this.kd += b - this.kB, this.kB = null); + this.LA.add(a, b - this.kd, c - this.kd, this.kd); }; - b.Ycb = function(a, b) { - d.Fn(a, "dns", b.Ac.bia); - d.Fn(a, "tcp", b.Ac.O5); - d.Fn(a, "tls", b.Ac.Y5); - d.Fn(a, "ttfb", b.Ac.U5); - return a; + d.prototype.stop = function(a) { + null === this.kB && (this.kB = a); }; - b.Fn = function(a, b, c) { - c && (a[b] = c.qa(g.Ma)); - return a; + d.prototype.O8 = function(a, b) { + return this.LA.O8(a, b); }; - k = d = b; - k = d = f.__decorate([h.N(), f.__param(0, h.j(m.jr)), f.__param(1, h.j(a.Tx))], k); - c.hEa = k; - }, function(f, c, a) { - var d, h, l, g, m, k, r, n; - - function b(a, b, c, d, g, f, h) { - this.config = a; - this.Wka = b; - this.ha = c; - this.o = d; - this.O7a = g; - this.s4 = f; - this.$_a = 0; - this.ca = h.Bb("FTL"); - } - Object.defineProperty(c, "__esModule", { - value: !0 - }); - f = a(1); - h = a(0); - l = a(7); - g = a(43); - m = a(12); - k = a(337); - r = a(336); - a = a(155); - b.prototype.start = function() { - this.config.enabled && !this.ak && (this.ak = this.ha.Af(this.config.Dra, this.zQ.bind(this))); + d.prototype.get = function() { + return this.LA.get(); }; - b.prototype.stop = function() { - this.ak && (this.ak.cancel(), this.ak = void 0); + d.prototype.reset = function() { + this.LA.reset(); }; - b.prototype.zQ = function() { - var a, b; - a = this; - b = "" + this.config.endpoint + (-1 === this.config.endpoint.indexOf("?") ? "?" : "&") + "iter=" + this.$_a++; - this.PYa(b).then(function(b) { - return Promise.all(b.ag.map(function(c) { - return a.uZa(b, c.url, c.name); - })).then(function(c) { - 0 < c.length && a.O7a.uH({ - data: c, - context: b.context, - J1: b.J1 - }); - }).then(function() { - return b; - }); - }).then(function(b) { - a.ak && (b.Xla ? a.ak = a.ha.Af(b.Xla, a.zQ.bind(a)) : a.stop()); - })["catch"](function(b) { - return a.ca.error("FTL run failed", b); - }); + d.prototype.toString = function() { + return this.LA.toString(); }; - b.prototype.PYa = function(a) { - var b; - b = this; - return this.Wka.get(a, !1).then(function(c) { - var d; - if (200 != c.status || null == c.body) return b.s4.uH({ - url: a, - status: c.status, - x3: "FTL API request failed", - Ac: c.Ac - }), Promise.reject(Error("FTL API request failed: " + c.status)); - d = b.o.parse(c.body); - return d instanceof Error ? (b.s4.uH({ - url: a, - status: 4, - x3: "FTL Probe API JSON parsing error", - Ac: c.Ac - }), Promise.reject(d)) : Promise.resolve(d); - })["catch"](function(c) { - c instanceof Error && (b.s4.uH({ - url: a, - status: 0, - x3: c.message - }), b.ca.error("FTL API call failed", c.message)); - return Promise.reject(c); - }); + g.M = d; + }, function(g) { + function d(a, b, c) { + this.rB = a; + this.Vg = Math.floor((a + b - 1) / b); + this.dc = b; + this.UUa = c; + this.reset(); + } + d.prototype.shift = function() { + this.wc.shift(); + this.Zf.shift(); }; - b.prototype.uZa = function(a, b, c) { - var g; - g = this; - return new Promise(function(f, h) { - var q; - for (var m, k, p, r = [], n = {}, u = 0; u < a.F6a; n = { - Rc: n.Rc - }, ++u) { - n.Rc = 0 == u ? l.cl : a.D6a; - q = function(c) { - return function() { - return new Promise(function(f, h) { - g.ha.Af(c.Rc, function() { - d.n6a(g.Wka, b, a.E6a).then(function(a) { - function b(a, b, c) { - a || (a = c.headers[b]); - return a; - } - m = b(m, "via", a); - k = b(k, "x-ftl-probe-data", a); - p = b(p, "x-ftl-error", a); - f({ - status: a.status, - Ac: a.Ac, - Gcb: m || "", - $Oa: k || "", - VZ: p || "" - }); - })["catch"](function(a) { - h(a); - }); - }); - }); - }; - }(n); - r.push(0 < u ? r[u - 1].then(q) : q()); - } - Promise.all(r).then(function(a) { - f({ - url: b, - name: c, - data: a - }); - })["catch"](function(a) { - h(a); - }); - }); + d.prototype.update = function(a, b) { + this.wc[a] += b; }; - b.n6a = function(a, b, c) { - return a.get(b, !1, c).then(function(a) { - return Object.assign({}, a); - }); + d.prototype.push = function(a) { + this.wc.push(0); + this.Zf.push(a ? a : 0); + this.Da += this.dc; }; - n = d = b; - n = d = f.__decorate([h.N(), f.__param(0, h.j(a.C8)), f.__param(1, h.j(r.P8)), f.__param(2, h.j(g.xh)), f.__param(3, h.j(k.B8)), f.__param(4, h.j(a.aba)), f.__param(5, h.j(a.$aa)), f.__param(6, h.j(m.Jb))], n); - c.zxa = n; - }, function(f, c, a) { - var b, d, h, l, g, m, k, r; - Object.defineProperty(c, "__esModule", { - value: !0 - }); - f = a(0); - b = a(642); - d = a(641); - h = a(640); - l = a(639); - g = a(638); - m = a(337); - k = a(336); - r = a(155); - c.eWa = new f.dc(function(a) { - a(r.D8).to(b.zxa).Y(); - a(r.aba).to(d.hEa).Y(); - a(r.$aa).to(h.gEa).Y(); - a(m.B8).to(l.xxa).Y(); - a(k.P8).to(g.Sxa).Y(); - }); - }, function(f, c) { - Object.defineProperty(c, "__esModule", { - value: !0 - }); - f = function() { - function a(a) { - this.In = a; - } - a.prototype.ut = function() { - var a, c, f; - a = this.In.JXa(); - c = this.In.KXa(); - f = this.In.LXa(); - if ("number" === typeof a && "number" === typeof c && "number" === typeof f) return (f - a) / c; - }; - return a; - }(); - c.aBa = f; - }, function(f, c) { - Object.defineProperty(c, "__esModule", { - value: !0 - }); - f = function() { - function a(a, c) { - this.In = a; - this.ut = c; - } - a.prototype.h5 = function(a) { - return this.In.h5(a); - }; - a.prototype.Nl = function() { - return this.In.Nl(); - }; - a.prototype.$Xa = function() { - return this.ut.ut(); - }; - return a; - }(); - c.$Aa = f; - }, function(f, c) { - Object.defineProperty(c, "__esModule", { - value: !0 - }); - f = function() { - function a(a) { - this.tma = a; - } - a.prototype.h5 = function(a) { - try { - this.tma.setItem("gtp", JSON.stringify(a)); - } catch (d) { - return !1; + d.prototype.add = function(a, b, c, d) { + var g, f; + if (null === this.Da) { + g = Math.max(Math.floor((c - b + this.dc - 1) / this.dc), 1); + for (this.Da = b; this.wc.length < g;) this.push(d); + } + for (; this.Da < c;) + if (this.push(d), this.UUa) + for (; 1 < this.wc.length && c + d - (this.Da - this.dc * this.wc.length + this.Zf[0]) > this.rB;) this.shift(); + else this.wc.length > this.Vg && this.shift(); + if (b > this.Da - this.dc) this.update(this.wc.length - 1, a); + else if (b == c) d = this.wc.length - Math.max(Math.ceil((this.Da - c) / this.dc), 1), 0 <= d && this.update(d, a); + else + for (d = 1; d <= this.wc.length; ++d) { + g = this.Da - d * this.dc; + f = g + this.dc; + if (!(g > c)) { + if (f < b) break; + this.update(this.wc.length - d, Math.round(a * (Math.min(f, c) - Math.max(g, b)) / (c - b))); + } } - return !0; - }; - a.prototype.Sja = function() { - var a; - try { - a = this.tma.getItem("gtp"); - if (a) return JSON.parse(a); - } catch (d) {} - }; - a.prototype.Nl = function() { - var a; - a = this.Sja(); - if (a && a.tp) return a.tp.a; - }; - a.prototype.JXa = function() { - var a; - a = this.Q_(); - if (a) return a.p25; - }; - a.prototype.KXa = function() { - var a; - a = this.Q_(); - if (a) return a.p50; - }; - a.prototype.LXa = function() { - var a; - a = this.Q_(); - if (a) return a.p75; - }; - a.prototype.Q_ = function() { - var a; - a = this.Sja(); - if (a && (a = a.iqr)) return a; - }; - return a; - }(); - c.L6 = f; - }, function(f, c, a) { - var b, d, h; - Object.defineProperty(c, "__esModule", { - value: !0 - }); - b = a(646); - d = a(645); - h = a(644); - c["default"] = function(a) { - var c; - a = new b.L6(a); - c = new h.aBa(a); - return new d.$Aa(a, c); + for (; this.wc.length > this.Vg;) this.shift(); + }; + d.prototype.reset = function() { + this.wc = []; + this.Zf = []; + this.Da = null; }; - }, function(f, c, a) { - var d, h, l, g; + d.prototype.setInterval = function(a) { + this.Vg = Math.floor((a + this.dc - 1) / this.dc); + }; + g.M = d; + }, function(g, d, a) { + var h, k, f, p; function b(a, b, c) { - this.config = a; - this.Z0a = b; - this.ej = c; + h.call(this, a, b, c); } - Object.defineProperty(c, "__esModule", { - value: !0 - }); - f = a(1); - d = a(388); - h = a(0); - l = a(149); - a = a(338); - b.prototype.ZY = function() { - if (this.config.Tsa) return this.ej(this.Z0a()); - }; - g = b; - g = f.__decorate([h.N(), f.__param(0, h.j(d.G$)), f.__param(1, h.j(l.E$)), f.__param(2, h.j(a.H$))], g); - c.ZAa = g; - }, function(f, c, a) { - var d; - function b() {} - Object.defineProperty(c, "__esModule", { - value: !0 - }); - f = a(1); - a = a(0); - b.prototype.create = function() { - return new XMLHttpRequest(); + function c(a, c) { + k.call(this, new b(a, c, !1)); + } + h = a(739); + k = a(738); + f = a(59).f8a; + p = a(59).gab; + b.prototype = Object.create(h.prototype); + b.prototype.za = function() { + return Math.floor(8 * f(this.wc) / this.dc); + }; + b.prototype.Kg = function() { + return Math.floor(64 * p(this.wc) / (this.dc * this.dc)); + }; + b.prototype.get = function() { + return { + za: this.za(), + Kg: this.Kg(), + UBb: this.wc.length + }; + }; + b.prototype.toString = function() { + return "bsw(" + this.rB + "," + this.dc + "," + this.Vg + ")"; }; - d = b; - d = f.__decorate([a.N()], d); - c.dGa = d; - }, function(f, c, a) { - var b, d, h, l, g, m, k; - Object.defineProperty(c, "__esModule", { - value: !0 - }); - f = a(0); - b = a(649); - d = a(33); - h = a(339); - l = a(648); - g = a(205); - m = a(338); - k = a(647); - c.d3a = new f.dc(function(a) { - a(h.gca).to(b.dGa).Y(); - a(d.hg).NB(function() { - return t._cad_global.http; - }); - a(g.OJ).to(l.ZAa).Y(); - a(m.H$).th(k["default"]); - }); - }, function(f, c, a) { - var d, h; + c.prototype = Object.create(k.prototype); + c.prototype.setInterval = function(a) { + this.LA.setInterval(a); + }; + g.M = c; + }, function(g, d, a) { + var c; function b(a) { - this.config = a; + this.bE = new Uint16Array(a.length); + for (var b = 0; b < a.length; ++b) this.bE[b] = a.charCodeAt(b); } - Object.defineProperty(c, "__esModule", { - value: !0 - }); - f = a(1); - d = a(0); - a = a(29); - pa.Object.defineProperties(b.prototype, { - Qbb: { - configurable: !0, - enumerable: !0, - get: function() { - return this.config().q1a; + c = new(a(8)).Console("ASEJS_XORCiper", "media|asejs"); + b.prototype.constructor = b; + b.prototype.encrypt = function(a) { + var b, d; + b = this.bE.length; + if (void 0 === this.bE) c.warn("XORCiper.encrypt is called with undefined secret!"); + else { + d = ""; + for (var g = 0; g < a.length; ++g) d += String.fromCharCode(this.bE[g % b] ^ a.charCodeAt(g)); + return encodeURIComponent(d); + } + }; + b.prototype.decrypt = function(a) { + var b, c; + b = ""; + c = this.bE.length; + a = decodeURIComponent(a); + for (var d = 0; d < a.length; d++) b += String.fromCharCode(this.bE[d % c] ^ a.charCodeAt(d)); + return b; + }; + g.M = b; + }, function(g, d, a) { + var b; + b = 0; + g.M = function(c, d) { + var f, h, m, l; + + function g(a, b) { + return (a["$ASE$order" + l] || 0) - (b["$ASE$order" + l] || 0); + } + f = a(48); + h = this; + m = d ? [d] : []; + l = "$op$" + b++; + f({ + value: c, + addListener: function(a, b) { + a["$ASE$order" + l] = b; + m = m.slice(); + m.push(a); + m.sort(g); + }, + removeListener: function(a) { + var b; + m = m.slice(); + 0 <= (b = m.indexOf(a)) && m.splice(b, 1); + }, + set: function(a, b) { + var c; + if (h.value !== a) { + c = { + oldValue: h.value, + newValue: a + }; + b && f(b, c); + h.value = a; + a = m; + b = a.length; + for (var d = 0; d < b; d++) a[d](c); + } } + }, h); + }; + }, function(g) { + function d(a, b) { + this.za = a; + this.Kg = b; + } + d.prototype.L8 = function(a) { + a *= 2; + if (2 <= a) a = -100; + else if (0 >= a) a = 100; + else { + for (var b = 1 > a ? a : 2 - a, c = Math.sqrt(-2 * Math.log(b / 2)), c = -.70711 * ((2.30753 + .27061 * c) / (1 + c * (.99229 + .04481 * c)) - c), d = 0; 2 > d; d++) var g = Math.abs(c), + f = 1 / (1 + g / 2), + g = f * Math.exp(-g * g - 1.26551223 + f * (1.00002368 + f * (.37409196 + f * (.09678418 + f * (-.18628806 + f * (.27886807 + f * (-1.13520398 + f * (1.48851587 + f * (-.82215223 + .17087277 * f))))))))), + g = (0 <= c ? g : 2 - g) - b, + c = c + g / (1.1283791670955126 * Math.exp(-(c * c)) - c * g); + a = 1 > a ? c : -c; } - }); - h = b; - h = f.__decorate([d.N(), f.__param(0, d.j(a.Ef))], h); - c.tza = h; - }, function(f, c, a) { - var d, h, l; + return this.za - Math.sqrt(2 * this.Kg) * a; + }; + g.M = d; + }, function(g, d, a) { + g.M = { + qJa: a(377), + hLa: a(729), + gLa: a(728), + Kwb: a(370), + qAb: a(206), + hPa: a(727) + }; + }, function(g) { + function d(a, c, d, g) { + a.trace(":", d, ":", g); + c(g); + } - function b(a) { - this.Bg = a; + function a(a) { + this.listeners = []; + this.console = a; } - Object.defineProperty(c, "__esModule", { - value: !0 - }); - f = a(1); - d = a(0); - h = a(42); - a = a(22); - b.prototype.i1a = function() { + a.prototype.constructor = a; + a.prototype.addEventListener = function(a, c, g, k) { + g = k ? g.bind(k) : g; + k = !1; + if (a) { + this.console && (g = d.bind(null, this.console, g, c)); + if ("function" === typeof a.addEventListener) k = a.addEventListener(c, g); + else if ("function" === typeof a.addListener) k = a.addListener(c, g); + else throw Error("Emitter does not have a function to add listeners for '" + c + "'"); + this.listeners.push([a, c, g]); + } + return k; + }; + a.prototype.on = a.prototype.addEventListener; + a.prototype.clear = function() { var a; - a = this.Bg() ? this.Bg().$d.length : 40; - return h.ga(a + 33); + a = this.listeners.length; + this.listeners.forEach(function(a) { + var b, c; + b = a[0]; + c = a[1]; + a = a[2]; + "function" === typeof b.removeEventListener ? b.removeEventListener(c, a) : "function" === typeof b.removeListener && b.removeListener(c, a); + }); + this.listeners = []; + this.console && this.console.trace("removed", a, "listener(s)"); }; - l = b; - l = f.__decorate([d.N(), f.__param(0, d.j(a.Ee))], l); - c.vza = l; - }, function(f, c, a) { - var h, l, g, m, k, r, n, q, t; - - function b(a, b, c, d, g, f, h, l, k, p, r) { - this.platform = b; - this.iZ = c; - this.type = d; - this.severity = g; - this.timestamp = f; - this.data = h; - this.data.clver = this.platform.version; - a && a.fi && (a.fi.os && (this.data.osplatform = a.fi.os.name, this.data.osver = a.fi.os.version), this.data.browsername = a.fi.name, this.data.browserver = a.fi.version); - a.gG && (this.data.tester = !0); - a.Zn && !this.data.groupname && (this.data.groupname = a.Zn); - a.Kp && (this.data.groupname = this.data.groupname ? this.data.groupname + "|" + a.Kp : a.Kp); - a.Tq && (this.data.uigroupname = a.Tq); - this.data.uigroupname && (this.data.groupname = this.data.groupname ? this.data.groupname + ("|" + this.data.uigroupname) : this.data.uigroupname); - this.data.appLogSeqNum = l; - this.data.uniqueLogId = p.A_(); - this.data.appId = k; - r && (this.data.soffms = r.x7a.qa(m.Ma), this.data.mid = r.M, this.data.lvpi = r.nG, this.data.uiLabel = r.Oc, this.data["startup" === d ? "playbackxid" : "xid"] = r.aa, r.rB && (a = r.rB, (r = r.rB.split(".")) && 1 < r.length && "S" !== r[0][0] && (a = "SABTest" + r[0] + ".Cell" + r[1]), this.data.groupname = this.data.groupname ? this.data.groupname + "|" + a : a)); + g.M = a; + }, function(g) { + function d(a, c) { + var b; + if (void 0 === c || "function" !== typeof c || "string" !== typeof a) throw new TypeError("EventEmitter: addEventListener requires a string and a function as arguments"); + if (void 0 === this.dl) return this.dl = {}, this.dl[a] = [c], !0; + b = this.dl[a]; + return void 0 === b ? (this.dl[a] = [c], !0) : 0 > b.indexOf(c) ? (b.push(c), !0) : !1; } - function d(a, b, c, d, g, f) { - this.Na = a; - this.iZ = b; - this.config = c; - this.gb = d; - this.xcb = g; - this.platform = f; + function a(a, c) { + a = this.dl ? this.dl[a] : void 0; + if (!a) return !1; + a.forEach(function(a) { + a(c); + }); + return !0; } - Object.defineProperty(c, "__esModule", { - value: !0 - }); - f = a(1); - h = a(42); - l = a(0); - g = a(52); - m = a(7); - k = a(381); - r = a(47); - n = a(38); - q = a(206); - a = a(24); - d.prototype.Bs = function(a, c, d, g) { - return new b(this.config, this.platform, this.iZ, a, c, this.Na.Eg, d, this.gb.Xja(), this.gb.id, this.xcb, g); + g.M = { + addEventListener: d, + on: d, + removeEventListener: function(a, c) { + var b; + if (void 0 === c || "function" !== typeof c || "string" !== typeof a) throw new TypeError("EventEmitter: removeEventListener requires a string and a function as arguments"); + if (void 0 === this.dl) return !1; + b = this.dl[a]; + if (void 0 === b) return !1; + c = b.indexOf(c); + if (0 > c) return !1; + if (1 === b.length) return delete this.dl[a], !0; + b.splice(c, 1); + return !0; + }, + Ia: a, + emit: a, + removeAllListeners: function(a) { + this.dl && (void 0 === a ? delete this.dl : delete this.dl[a]); + return this; + } }; - t = d; - t = f.__decorate([l.N(), f.__param(0, l.j(g.mj)), f.__param(1, l.j(k.D7)), f.__param(2, l.j(r.oj)), f.__param(3, l.j(n.eg)), f.__param(4, l.j(q.YU)), f.__param(5, l.j(a.Pe))], t); - c.sza = t; - pa.Object.defineProperties(b.prototype, { - size: { - configurable: !0, - enumerable: !0, - get: function() { - this.vga || (this.vga = h.ga(this.iZ.encode(this.data).length)); - return this.vga; + }, function(g, d, a) { + (function() { + var x46, c, d, k, f, p, m, l, n, q, v, t, w, D, z, E, P; + + function b(b, c) { + var T46, d; + T46 = 2; + while (T46 !== 12) { + var s6A = "DE"; + s6A += "BUG"; + s6A += ":"; + var L6A = "nf"; + L6A += "-ase versi"; + L6A += "o"; + L6A += "n:"; + switch (T46) { + case 4: + this.bB = this.Oja = !1; + this.K = b; + this.gx = []; + this.on = this.addEventListener = k.addEventListener; + this.removeEventListener = k.removeEventListener; + this.emit = this.Ia = k.Ia; + T46 = 14; + break; + case 14: + this.eP = c; + z = this; + T46 = 12; + break; + case 2: + d = a(650); + P(L6A, d, s6A, !1); + T46 = 4; + break; + } + } + } + x46 = 2; + while (x46 !== 40) { + var Z88 = "1SIY"; + Z88 += "bZrNJC"; + Z88 += "p9"; + var P88 = "me"; + P88 += "d"; + P88 += "ia|"; + P88 += "asej"; + P88 += "s"; + var C88 = "A"; + C88 += "S"; + C88 += "E"; + C88 += "J"; + C88 += "S"; + switch (x46) { + case 9: + p = f.qJa; + m = f.hLa; + l = f.gLa; + n = f.hPa; + q = a(726); + v = a(687); + x46 = 12; + break; + case 2: + c = a(11); + d = a(13); + k = a(29).EventEmitter; + f = a(744); + x46 = 9; + break; + case 20: + f = new t.Console(C88, P88); + E = f.trace.bind(f); + f.log.bind(f); + x46 = 17; + break; + case 17: + P = f.warn.bind(f); + f.error.bind(f); + b.prototype.constructor = b; + Object.defineProperties(b.prototype, { + aj: { + get: function() { + var Q46; + Q46 = 2; + while (Q46 !== 1) { + switch (Q46) { + case 4: + return this.Wa; + break; + Q46 = 1; + break; + case 2: + return this.Wa; + break; + } + } + } + }, + ys: { + get: function() { + var z46; + z46 = 2; + while (z46 !== 1) { + switch (z46) { + case 4: + return this.hla; + break; + z46 = 1; + break; + case 2: + return this.hla; + break; + } + } + } + }, + sAa: { + get: function() { + var S46; + S46 = 2; + while (S46 !== 1) { + switch (S46) { + case 2: + return this.SO; + break; + case 4: + return this.SO; + break; + S46 = 1; + break; + } + } + } + }, + Gcb: { + get: function() { + var G46; + G46 = 2; + while (G46 !== 1) { + switch (G46) { + case 4: + return -c.V(this.WO); + break; + G46 = 1; + break; + case 2: + return !c.V(this.WO); + break; + } + } + } + } + }); + x46 = 26; + break; + case 12: + t = a(8); + w = a(651); + D = t.Promise; + x46 = 20; + break; + case 26: + b.prototype.Ac = function(a, b, d, f, g, k) { + var b46, h; + b46 = 2; + while (b46 !== 19) { + var t88 = "media"; + t88 += "c"; + t88 += "a"; + t88 += "c"; + t88 += "he"; + var F88 = "ca"; + F88 += "c"; + F88 += "he"; + F88 += "Ev"; + F88 += "ict"; + var K88 = "flus"; + K88 += "hedB"; + K88 += "yt"; + K88 += "es"; + var a88 = "discardedBy"; + a88 += "te"; + a88 += "s"; + var g88 = "pr"; + g88 += "ebuffs"; + g88 += "tats"; + switch (b46) { + case 3: + this.SO = f; + this.LVa = g; + w(h); + this.ug = new p(h, this.eP); + b46 = 6; + break; + case 6: + this.Mt = new l(h); + this.Wa = new m(this.Mt, this.ug, h); + this.hla = new n(h); + h.QT && !this.nVa && (this.nVa = setInterval(function() { + var J46; + J46 = 2; + while (J46 !== 5) { + switch (J46) { + case 2: + this.ug.save(); + this.Mt.save(); + J46 = 5; + break; + } + } + }.bind(this), h.QT)); + b46 = 11; + break; + case 11: + b46 = h.IE || h.GV ? 10 : 20; + break; + case 2: + h = this.K; + 0 < h.$r && (!c.V(a) && a > h.$r && (a = h.$r), b > h.$r && (b = h.$r)); + c.V(a) ? this.WO = b : this.fRa = [a, b]; + b46 = 3; + break; + case 10: + b = new q(this, h, d, k), a = function(a) { + var o46; + o46 = 2; + while (o46 !== 1) { + switch (o46) { + case 4: + this.Ia(a.type, a); + o46 = 6; + break; + o46 = 1; + break; + case 2: + this.Ia(a.type, a); + o46 = 1; + break; + } + } + }.bind(this), b.addEventListener(g88, a), b.addEventListener(a88, a), b.addEventListener(K88, a), b.addEventListener(F88, a), (h.cCa || h.Nz) && b.addEventListener(t88, function(a) { + var P46; + P46 = 2; + while (P46 !== 1) { + var k88 = "me"; + k88 += "di"; + k88 += "aca"; + k88 += "che"; + switch (P46) { + case 4: + this.Ia("", a); + P46 = 3; + break; + P46 = 1; + break; + case 2: + this.Ia(k88, a); + P46 = 1; + break; + } + } + }.bind(this)), this.Rc = b; + b46 = 20; + break; + case 20: + this.Oja = !0; + b46 = 19; + break; + } + } + }; + b.prototype.Ej = function(a, b) { + var K46, d; + K46 = 2; + while (K46 !== 7) { + switch (K46) { + case 1: + K46 = this.WO ? 5 : 8; + break; + case 2: + K46 = 1; + break; + case 8: + return this.fRa; + break; + case 5: + c.V(a) && (a = 192); + c.V(b) && (b = 5800); + H4DD.b6A(0); + d = H4DD.p6A(b, a); + return [Math.floor(this.WO * a / d), Math.floor(this.WO * b / d)]; + break; + } + } + }; + b.prototype.RT = function() { + var y46; + y46 = 2; + while (y46 !== 1) { + switch (y46) { + case 2: + this.bB || (this.bB = !0, this.gx.forEach(function(a) { + var j46; + j46 = 2; + while (j46 !== 1) { + switch (j46) { + case 4: + a.RT(); + j46 = 8; + break; + j46 = 1; + break; + case 2: + a.RT(); + j46 = 1; + break; + } + } + })); + y46 = 1; + break; + } + } + }; + x46 = 23; + break; + case 23: + b.prototype.Dr = function(a, b, f, g, k, h, m, p) { + var V46; + V46 = 2; + while (V46 !== 4) { + var x88 = "open: streamin"; + x88 += "gManage"; + x88 += "r not init"; + x88 += "te"; + x88 += "d"; + var d88 = "br"; + d88 += "a"; + d88 += "nc"; + d88 += "h"; + d88 += "ing"; + switch (V46) { + case 1: + return p = p || this.K, this.Wa.reset(), this.Mt.Xob(), this.hla.reset(), void 0 === h && (h = this.Vqa(a, b)), c.V(this.SO) && (this.Ej()[d.G.VIDEO] <= p.Vfb ? this.SO = 0 : this.SO = p.sU), a && a.choiceMap && d88 === a.choiceMap.type && (k.Ze = !0), g.RT = this.bB, a = new v(this, a, b, f, g, k, h, m, p), this.gx.push(a), a; + break; + case 2: + V46 = this.Oja ? 1 : 5; + break; + case 5: + P(x88); + V46 = 4; + break; + } + } + }; + b.prototype.P6 = function(a, b) { + var m46; + m46 = 2; + while (m46 !== 1) { + switch (m46) { + case 2: + return this.Rc && (a = this.Rc.P6(a, b)) ? a : !1; + break; + } + } + }; + b.prototype.reb = function(a) { + var R46; + R46 = 2; + while (R46 !== 1) { + switch (R46) { + case 2: + return this.Rc && (a = this.Rc.zua(a)) ? a : !1; + break; + } + } + }; + b.prototype.vy = function() { + var U46; + U46 = 2; + while (U46 !== 1) { + switch (U46) { + case 2: + return this.Rc ? this.Rc.vy() : D.resolve([]); + break; + } + } + }; + b.prototype.WUa = function(a) { + var D46, b; + D46 = 2; + while (D46 !== 3) { + var e88 = "c"; + e88 += "an't find session in array, movie"; + e88 += "Id:"; + switch (D46) { + case 2: + this.Wa.QU(null); + b = this.gx.indexOf(a); + D46 = 4; + break; + case 4: + c.V(b) ? P(e88, a.om) : (this.gx.splice(b, 1), 0 === this.gx.length && this.Mt.jpb(), this.Mt.save(), this.ug.save()); + D46 = 3; + break; + } + } + }; + b.prototype.Wqa = function(a) { + var v46, b; + v46 = 2; + while (v46 !== 3) { + switch (v46) { + case 2: + b = { + profile: a.spoofedProfile || a.profile, + K3: a.max_framerate_value, + J3: a.max_framerate_scale, + maxWidth: a.maxWidth, + maxHeight: a.maxHeight, + kxa: a.pixelAspectX, + lxa: a.pixelAspectY, + jk: a.channels, + sampleRate: 48E3 + }; + a.spoofedProfile && (b.originalProfile = a.profile); + return b; + break; + } + } + }; + x46 = 32; + break; + case 28: + b.prototype.tZa = function() { + var e46; + e46 = 2; + while (e46 !== 1) { + switch (e46) { + case 2: + this.Rc && this.Rc.Aqa(); + e46 = 1; + break; + } + } + }; + b.prototype.X0 = function() { + var B46; + B46 = 2; + while (B46 !== 1) { + switch (B46) { + case 2: + return this.Rc ? this.Rc.list() : []; + break; + case 4: + return this.Rc ? this.Rc.list() : []; + break; + B46 = 1; + break; + } + } + }; + b.prototype.fna = function() { + var A46; + A46 = 2; + while (A46 !== 1) { + switch (A46) { + case 2: + this.Rc && this.Rc.Nn(); + A46 = 1; + break; + } + } + }; + g.M = b; + Z88; + x46 = 40; + break; + case 32: + b.prototype.Vqa = function(a, b, c) { + var k46, f; + k46 = 2; + while (k46 !== 3) { + var i88 = "video_"; + i88 += "tr"; + i88 += "a"; + i88 += "ck"; + i88 += "s"; + var f88 = "au"; + f88 += "dio_"; + f88 += "tracks"; + var O88 = "audio_tra"; + O88 += "c"; + O88 += "ks"; + switch (k46) { + case 14: + return f; + break; + k46 = 3; + break; + case 4: + return f; + break; + case 2: + f = [{}, {}]; + (c === d.G.AUDIO ? [O88] : [f88, i88]).forEach(function(c, d) { + var N46; + N46 = 2; + while (N46 !== 1) { + switch (N46) { + case 2: + a[c].some(function(a, c) { + var C46; + C46 = 2; + while (C46 !== 1) { + switch (C46) { + case 2: + return c === b[d] ? (f[d] = z.Wqa(a), !0) : !1; + break; + } + } + }); + N46 = 1; + break; + } + } + }); + k46 = 4; + break; + } + } + }; + b.prototype.SBa = function(a) { + var t46; + t46 = 2; + while (t46 !== 1) { + switch (t46) { + case 4: + t.SI(a); + t46 = 0; + break; + t46 = 1; + break; + case 2: + t.SI(a); + t46 = 1; + break; + } + } + }; + b.prototype.gna = function(a, b) { + var c46; + c46 = 2; + while (c46 !== 1) { + var n88 = "ca"; + n88 += "t"; + n88 += "c"; + n88 += "h"; + switch (c46) { + case 2: + this.Rc && (a = this.Rc.Qjb(this, a), c.V(b) || a.then(b), a[n88](function(a) { + var M46; + M46 = 2; + while (M46 !== 1) { + var z88 = "cachePre"; + z88 += "pare"; + z88 += " caugh"; + z88 += "t erro"; + z88 += "r:"; + switch (M46) { + case 2: + E(z88, a); + M46 = 1; + break; + case 4: + E("", a); + M46 = 0; + break; + M46 = 1; + break; + } + } + })); + c46 = 1; + break; + } + } + }; + b.prototype.W0 = function() { + var d46; + d46 = 2; + while (d46 !== 1) { + switch (d46) { + case 2: + this.Rc && this.Rc.flush(); + d46 = 1; + break; + } + } + }; + x46 = 28; + break; } } + }()); + }, function(g, d) { + Object.defineProperty(d, "__esModule", { + value: !0 + }); + }, function(g, d, a) { + Object.defineProperty(d, "__esModule", { + value: !0 + }); + a(0).__exportStar(a(748), d); + }, function(g, d, a) { + var b, c, h; + Object.defineProperty(d, "__esModule", { + value: !0 }); - }, function(f, c, a) { - var d, h; - - function b(a) { - this.config = a; + b = a(3); + c = a(66); + h = a(168); + g = a(4); + a = a(31); + d.BCa = !0; + d.Sga = !1; + c = b.ca.get(c.pn); + b = b.ca.get(h.gN); + d.ZLa = b.Ad; + d.$La = b.i6; + d.ln = {}; + d.Oea = c.$i; + d.LW = c.Im; + d.UGa = c.pC; + d.qda = c.R3; + d.xca = c.y2; + d.Gub = c.x2; + d.Hub = c.y2; + d.zca = c.epa; + d.Pwb = c.Scb; + d.jJa = c.wua; + d.Lxb = !1; + d.dLa = !0; + d.wf = { + LW: c.Im, + Go: void 0, + Rs: void 0, + CFa: void 0, + BFa: void 0, + OMa: void 0, + wca: void 0, + AFa: void 0 + }; + d.SLa = b.YG; + d.TLa = b.sYa; + d.eMa = b.o$; + d.RLa = b.HP; + d.oMa = b.QL; + d.jMa = b.Ds; + d.XLa = b.X2; + d.YLa = b.VQ; + d.PLa = b.t0.ma(a.Yl); + d.QLa = b.v0.ma(a.Yl); + d.bMa = b.k7.ma(g.Aa); + d.cMa = b.Ueb.ma(a.Yl); + d.aMa = b.eD; + d.mMa = b.zV; + d.pMa = b.fba; + d.ULa = b.$0; + d.VLa = b.q1; + d.WLa = b.Bna; + d.hMa = b.iV; + d.gMa = b.V$.ma(a.Yl); + d.nMa = b.kCa; + d.dMa = b.UD; + d.iMa = b.taa; + d.kMa = b.yE.ma(a.Yl); + d.lMa = b.xV.ma(g.Aa); + d.fMa = void 0; + }, function(g, d) { + function a(a) { + this.Ob = a; + this.Ja = JSON.stringify(this.H9a()); } - Object.defineProperty(c, "__esModule", { + Object.defineProperty(d, "__esModule", { value: !0 }); - f = a(1); - d = a(0); - a = a(208); - b.prototype.Z9a = function(a) { - return !a.data.playbackoffline || 0 > this.config.Qbb.indexOf(a.type); + a.prototype.H9a = function() { + var a; + a = []; + (!this.Ob.$h || 0 >= this.Ob.$h.length) && a.push({ + error: "No CDN." + }); + this.Ob.n2 || a.push({ + error: "No default audio track.", + foundTracks: this.l4(this.Ob.xm) + }); + this.Ob.t2 || a.push({ + error: "No default video track.", + foundTracks: this.l4(this.Ob.hq) + }); + this.Ob.s2 || a.push({ + error: "No default subtitle track.", + foundTracks: this.l4(this.Ob.mj) + }); + return a; }; - h = b; - h = f.__decorate([d.N(), f.__param(0, d.j(a.V9))], h); - c.uza = h; - }, function(f, c, a) { - var d, h, l, g; + a.prototype.l4 = function(a) { + return a && 0 < a.length ? a.map(function(a) { + return a.Tb; + }) : "No tracks found."; + }; + d.oKa = a; + }, function(g, d, a) { + var c, h, k, f, p, m; - function b(a) { - this.config = a; - this.S1a = d.ga(5E5); - this.ana = d.ga(2E6); - this.T8a = h.I2(1); - this.Eqa = h.ij(5); + function b(a, b) { + a = h.Yd.call(this, a, "ManifestParserConfigImpl") || this; + a.wu = b; + return a; } - Object.defineProperty(c, "__esModule", { + Object.defineProperty(d, "__esModule", { value: !0 }); - f = a(1); - d = a(42); - h = a(7); - l = a(0); - a = a(29); - pa.Object.defineProperties(b.prototype, { - a$a: { + g = a(0); + c = a(1); + h = a(38); + k = a(26); + f = a(35); + p = a(168); + m = a(31); + ia(b, h.Yd); + na.Object.defineProperties(b.prototype, { + caa: { + configurable: !0, + enumerable: !0, + get: function() { + return []; + } + }, + D3: { + configurable: !0, + enumerable: !0, + get: function() { + return ""; + } + }, + e1: { + configurable: !0, + enumerable: !0, + get: function() { + return []; + } + }, + d1: { + configurable: !0, + enumerable: !0, + get: function() { + return []; + } + }, + F3: { + configurable: !0, + enumerable: !0, + get: function() { + return ""; + } + }, + x5: { configurable: !0, enumerable: !0, get: function() { - return this.config().b$a; + return 0; } }, - I1: { + yE: { configurable: !0, enumerable: !0, get: function() { - return this.config().I1; + return this.wu.yE.ma(m.Yl); } }, - gX: { + Ds: { configurable: !0, enumerable: !0, get: function() { - return this.config().gX; + return this.wu.Ds; } } }); - g = b; - g = f.__decorate([l.N(), f.__param(0, l.j(a.Ef))], g); - c.lza = g; - }, function(f, c, a) { - var d, h, l, g; + a = b; + g.__decorate([f.config(f.aaa, "supportedAudioTrackTypes")], a.prototype, "caa", null); + g.__decorate([f.config(f.string, "forceAudioTrack")], a.prototype, "D3", null); + g.__decorate([f.config(f.EBa, "cdnIdWhiteList")], a.prototype, "e1", null); + g.__decorate([f.config(f.EBa, "cdnIdBlackList")], a.prototype, "d1", null); + g.__decorate([f.config(f.string, "forceTimedTextTrack")], a.prototype, "F3", null); + g.__decorate([f.config(f.Qv, "imageSubsResolution")], a.prototype, "x5", null); + g.__decorate([f.config(f.Qv, "timedTextSimpleFallbackThreshold")], a.prototype, "yE", null); + g.__decorate([f.config(f.aaa, "timedTextProfiles")], a.prototype, "Ds", null); + a = g.__decorate([c.N(), g.__param(0, c.l(k.Fi)), g.__param(1, c.l(p.gN))], a); + d.jKa = a; + }, function(g, d, a) { + var c, h, k, f; function b(a, b) { - this.Yi = a; - this.xPa = b(); + return h.UM.call(this, a, b) || this; } - Object.defineProperty(c, "__esModule", { + Object.defineProperty(d, "__esModule", { value: !0 }); - f = a(1); - d = a(0); - h = a(42); - l = a(65); - a = a(29); - b.prototype.Xc = function() { - this.Yi.Xc(); + c = a(131); + h = a(383); + k = a(75); + f = a(156); + ia(b, h.UM); + b.prototype.zib = function(a) { + var b, d; + b = this; + a = za(c.qv(function(a) { + return a.qc && 0 < a.qc.length; + }, a)); + d = a.next().value; + a.next().value.forEach(function(a) { + return b.log.warn("Video track is missing streams", { + trackId: a.jo + }); + }); + a = d.map(function(a) { + var c; + c = a.vi; + c = { + type: k.Vf.video, + Tb: a.jo, + jy: a.yL, + vi: f.PY[c.toLowerCase()] || f.Oo.pA, + iz: c, + qc: [], + If: {} + }; + c.qc = b.uBa(a.qc, c); + b.log.trace("Transformed video track", { + StreamCount: c.qc.length + }); + return c; + }); + if (!a.length) throw Error("No valid video tracks"); + this.log.trace("Transformed video tracks", { + Count: a.length + }); + return a; }; - b.prototype.Vl = function(a) { + b.prototype.rib = function(a) { var b; - b = a; - this.xPa.Usa || (b = Object.assign({}, a, { - severity: a.data.sev, - size: h.ga(a.WWa().length) - })); - this.Yi.Vl(b); - }; - b.prototype.flush = function(a) { - return this.Yi.flush(a); + b = a.map(function(a) { + return a.T8; + }).filter(Boolean); + b = [].concat.apply([], [].concat(wb(b))).map(function(a) { + return a.Z; + }); + a = a.map(function(a) { + return a.Ne; + }).filter(Boolean).map(function(a) { + return a.Z; + }); + return 0 < b.length ? b : a; }; - g = b; - g = f.__decorate([d.N(), f.__param(0, d.j(l.jr)), f.__param(1, d.j(a.Ef))], g); - c.fza = g; - }, function(f, c, a) { - var d, h, l; - - function b(a) { - this.config = a; - } - Object.defineProperty(c, "__esModule", { + d.xQa = b; + }, function(g, d) { + Object.defineProperty(d, "__esModule", { value: !0 }); - f = a(1); - d = a(0); - h = a(207); - l = a(42); - b.prototype.measure = function(a) { - var b; - b = this; - return a.map(function(a) { - return a.size.add(b.config.i1a()); - }).reduce(function(a, b) { - return a.add(b); - }, l.ga(0)); + d.sDa = { + "playready-oggvorbis-2-piff": "OGG_VORBIS", + "playready-oggvorbis-2-dash": "OGG_VORBIS", + "heaac-2-piff": "AAC", + "heaac-2-dash": "AAC", + "heaac-5.1-dash": "AAC", + "playready-heaac-2-dash": "AAC", + "heaac-2-elem": "AAC", + "heaac-2-m2ts": "AAC", + "ddplus-5.1-piff": "DDPLUS", + "ddplus-2.0-dash": "DDPLUS", + "ddplus-5.1-dash": "DDPLUS", + "ddplus-atmos-dash": "DDPLUS", + "dd-5.1-elem": "DD", + "dd-5.1-m2ts": "DD" }; - a = b; - a = f.__decorate([d.N(), f.__param(0, d.j(h.X9))], a); - c.wza = a; - }, function(f, c, a) { - var l, g, m, k, r, n, q, t, w, G, x, y, C; - - function b(a, b, c, d, f, h, m, l, k, p) { - this.gb = a; - this.platform = c; - this.Bg = d; - this.json = f; - this.$Ta = h; - this.kf = m; - this.is = l; - this.Nm = k; - this.s1a = p; - g.$i(this, "json"); - this.ca = b.Bb("LogblobSender"); - } - - function d(a) { - this.method = "logblob"; - this.logblobs = a; - } + }, function(g, d, a) { + var c, h, k, f, p; - function h() { - this.entries = []; + function b(a, b, c, d) { + a = h.UM.call(this, a, d) || this; + a.config = b; + a.j = c; + return a; } - Object.defineProperty(c, "__esModule", { + Object.defineProperty(d, "__esModule", { value: !0 }); - f = a(1); - l = a(0); - g = a(49); - m = a(50); - k = a(7); - r = a(26); - n = a(20); - q = a(38); - t = a(24); - w = a(22); - G = a(12); - x = a(209); - y = a(342); - a = a(23); - b.prototype.send = function(a, b) { - var c; - c = this; - return new Promise(function(a, d) { - var g; - try { - g = b.reduce(function(a, b) { - a.entries.push(c.PRa(b)); - return a; - }, new h()); - a(c.hWa(g)); - } catch (B) { - c.ca.error(B.message); - d(B); - } - }).then(function(b) { - return c.nB(b, a); + c = a(754); + h = a(383); + k = a(131); + f = a(75); + p = a(156); + ia(b, h.UM); + b.prototype.bib = function(a, b, d) { + var g, h, m; + g = this; + a = za(k.qv(function(a) { + return a.qc && 0 < a.qc.length; + }, a)); + h = a.next().value; + a.next().value.forEach(function(a) { + return g.log.warn("Audio track is missing streams", g.esa(a)); + }); + m = this.config.caa; + a = za(k.qv(function(a) { + return 0 === m.length || 0 <= m.indexOf(a.vi); + }, h)); + h = a.next().value; + a.next().value.forEach(function(a) { + return g.log.warn("Audio track is not supported", g.esa(a)); + }); + a = h.map(function(a) { + var h; + h = a.vi; + h = { + type: f.Vf.audio, + Tb: a.jo, + jy: a.yL, + vi: p.PY[h.toLowerCase()] || p.Oo.pA, + iz: h, + yj: a.language, + displayName: a.YC, + jk: a.jk, + kCb: a.jk, + jCb: Number(a.jk[0]), + mj: g.Z7a(a.jo, b, d), + If: { + Bcp47: a.language, + TrackId: a.jo + }, + qc: [], + isNative: a.isNative + }; + h.qc = g.uBa(a.qc, h); + g.log.trace("Transformed audio track", h, { + StreamCount: h.qc.length, + AllowedTimedTextTracks: h.mj.length + }); + h.u1 = c.sDa[h.qc[0].Me]; + return h; }); - }; - b.prototype.PRa = function(a) { - return this.kf.st(this.kf.st({}, a.data), { - esn: this.Bg().$d, - sev: a.severity, - type: a.type, - lver: this.platform.Dma, - jssid: this.gb.id, - devmod: this.platform.BZ, - jsoffms: a.timestamp.ie(this.gb.VO).qa(k.Ma), - clienttime: a.timestamp.qa(k.Ma), - client_utc: a.timestamp.qa(k.Zo), - uiver: this.Nm.xx + if (!a.length) throw Error("no valid audio tracks"); + this.log.trace("Transformed audio tracks", { + Count: a.length }); + return a; }; - b.prototype.hWa = function(a) { - var b; + b.prototype.oYa = function(a) { + var b, c; b = this; - try { - return this.json.stringify(a); - } catch (Z) { - for (var c = {}, d = 0; d < a.entries.length; c = { - WH: c.WH, - Od: c.Od - }, ++d) { - c.Od = Object.assign({}, a.entries[d]); - try { - this.json.stringify(c.Od); - } catch (O) { - c.WH = void 0; - this.kf.Ls(c.Od, function(a) { - return function(c, d) { - try { - b.json.stringify(d); - } catch (D) { - a.WH = D.message; - a.Od[c] = a.WH; - } - }; - }(c)); - c.Od.stringifyException = c.WH; - c.Od.originalType = c.Od.type; - c.Od.type = "debug"; - c.Od.sev = "error"; - } - } - return this.json.stringify(a); - } - }; - b.prototype.nB = function(a, b) { - var c, g; - c = this; - g = { - log: this.ca, - profile: b, - Ke: !1, - dt: !1 - }; - return this.Nm.oh.logblob && this.Nm.oh.logblob.active ? this.s1a.Pf(this.ca, b, { - logblobs: a - }).then(function() {})["catch"](function(a) { - g.log.error("PBO logblob failed", a); - return Promise.reject(a); - }) : this.$Ta.send(new d(a), g).then(function() {})["catch"](function(a) { - var b, d; - try { - b = c.json.stringify(a.ji); - } catch (ja) {} - d = { - method: "logblob", - success: a.K - }; - c.is.ah(b) && (d.errorData = b); - c.is.ah(a.R) && (d.errorSubCode = a.R); - c.is.ah(a.ub) && (d.errorExternalCode = a.ub); - c.is.ah(a.za) && (d.errorDetails = a.za); - c.is.ah(a.ne) && (d.errorDisplayMessage = a.ne); - g.log.error("Processing EDGE response failed", d); - a.__logs && c.ca.error(a.__logs); - return Promise.reject(a); - }); - }; - C = b; - C = f.__decorate([l.N(), f.__param(0, l.j(q.eg)), f.__param(1, l.j(G.Jb)), f.__param(2, l.j(t.Pe)), f.__param(3, l.j(w.Ee)), f.__param(4, l.j(m.hr)), f.__param(5, l.j(x.ZT)), f.__param(6, l.j(r.Re)), f.__param(7, l.j(n.rd)), f.__param(8, l.j(a.Oe)), f.__param(9, l.j(y.maa))], C); - c.xza = C; - }, function(f, c, a) { - function b() {} - Object.defineProperty(c, "__esModule", { - value: !0 - }); - f = a(1); - a = a(0); - b = f.__decorate([a.N()], b); - c.q8 = b; - }, function(f, c, a) { - var d, h, l; - - function b() {} - Object.defineProperty(c, "__esModule", { - value: !0 - }); - f = a(1); - d = a(0); - h = a(7); - l = a(42); - b.prototype.decode = function(a) { + c = this.config.D3; + if (c) { + if (a = za(a.filter(function(a) { + return a.yj == c || a.Tb == c; + })).next().value) return a; + } else if (this.j.oR && (a = za(a.filter(function(a) { + return a.Tb == b.j.oR; + })).next().value)) return a; + }; + b.prototype.esa = function(a) { return { - data: a.data, - type: a.type, - severity: a.severity, - timestamp: h.Cb(a.timestamp), - size: l.ga(a.size) + language: a.YC, + bcp47: a.language, + type: a.vi }; }; - b.prototype.encode = function(a) { - return { - data: a.data, - type: a.type, - severity: a.severity, - timestamp: a.timestamp.qa(h.Ma), - size: a.size.qa(l.gl) - }; + b.prototype.Z7a = function(a, b, c) { + return b.filter(function(b) { + return b.Eaa.AUDIO === a; + }).map(function(a) { + return a.Eaa.Hha; + }).map(function(a) { + return c.find(function(b) { + return b.Tb === a; + }); + }).filter(Boolean); }; - a = b; - a = f.__decorate([d.N()], a); - c.rza = a; - }, function(f, c, a) { - var d, h, l, g, m, k, r, n, q, t, w, G, x, y; - - function b(a, b, c, d, g, f, m, l) { - var k; - k = this; - this.ha = a; - this.md = b; - this.iq = d; - this.jo = g; - this.config = f; - this.si = m; - this.json = l; - this.mZ = []; - h.$i(this, "json"); - this.ca = this.si.Bb("MessageQueue"); - this.Js = new G.kAa(this.jo); - c().then(function(a) { - k.He = a; - k.data = new w.lAa(k.jo, a.profile); - k.U0a(a); - })["catch"](function(a) { - k.ca.error("AccountManagerProvider threw an exception.", a); - }); + d.rDa = b; + }, function(g, d) { + function a(a, c, d) { + this.log = a; + this.j = c; + this.Jaa = d; } - Object.defineProperty(c, "__esModule", { + Object.defineProperty(d, "__esModule", { value: !0 }); - f = a(1); - d = a(0); - h = a(49); - l = a(42); - g = a(37); - m = a(207); - k = a(43); - r = a(12); - n = a(63); - q = a(65); - t = a(56); - w = a(343); - G = a(343); - x = a(50); - y = a(2); - b.prototype.wp = function(a, b, c) { - var d; - try { - d = { - data: this.json.parse(this.json.stringify(a.data)), - severity: a.severity, - size: a.size, - timestamp: a.timestamp, - type: a.type - }; - this.data && c ? (this.data.wp(c.id, this.$ja(b), "logblobs", d), this.Cia()) : this.mZ.push(d); - } catch (ca) { - this.ca.error("JSON.parse error: " + ca.message); - } - }; - b.prototype.Yw = function(a) { - this.data.Yw(a); - this.Cia(); - }; - b.prototype.DWa = function() { - var a, b, c, p; - a = []; - if (this.data) { - b = this.config.ana.to(l.gl); - for (c in this.data.ld) - for (var d = this.Xn(c), g = this.data.ld[c], f = [], h = [], m = l.ga(0), k = 0; k < g.ld.length; k++) { - p = g.ld[k]; - f.push(p.message); - h.push(p.id); - m = m.add(this.jo.measure([p.message])); - if (0 <= m.Gk(b) || k + 1 === g.ld.length) this.ca.trace("Batch_" + a.length + ": " + f.length + "/" + m, r.br), a.push({ - profile: d, - Zka: h.slice(), - ld: f.slice(), - size: m - }), f = [], h = [], m = l.ga(0); - } - } - return a; - }; - b.prototype.U0a = function(a) { + a.prototype.yib = function(a) { var b; b = this; - this.config.Eqa.Fla() && (this.Mfa = this.md.create(), this.Mfa.then(function(a) { - return a.load("messages"); - }).then(function(a) { - b.T0a(a.value); - })["catch"](function(a) { - a.R === y.u.sj ? b.ca.info("No messages to load.") : b.ca.error("Failed to load messages.", a); - })); - this.mZ.forEach(function(c) { - b.data.wp(a.profile.id, b.$ja(!1), "logblobs", c); + a = (a || []).filter(function(a) { + return a.Qc && 0 < a.Qc.length; + }).map(function(a) { + return b.Jaa(b.j, a.id, a.height, a.width, a.mxa, a.nxa, a.size, { + unknown: a.Qc[0] + }); }); - this.mZ = []; - }; - b.prototype.T0a = function(a) { - var b, c, d; - b = this; - try { - c = this.Js.decode(a); - d = this.He.Xn(c.aM); - if (d && d.Yg.id === this.data.aM) { - this.ca.trace("Loading messageQueue."); - a = {}; - for (var g in c.ld) a.profileId = g, c.ld[a.profileId].ld.forEach(function(a) { - return function(c) { - c.message.data.loadedLogBlobFromPersistence = !0; - b.data.wp(a.profileId, c.id, c.url, c.message); - }; - }(a)), a = { - profileId: a.profileId - }; - } else this.ca.trace("AcountId does not match, ignoring persisted messages."); - } catch (Z) { - this.ca.error("Load messageQueue failed.", Z); - } - }; - b.prototype.x8a = function() { - var a, b; - a = this; - b = this.Js.encode(this.data); - this.Mfa.then(function(a) { - return a.save("messages", b, !1); - }).then(function() { - a.ca.info("MessageQueue: Saved", r.br); - })["catch"](function(b) { - a.ca.error("Failed to save messages.", b); + 0 === a.length && this.log.warn("There are no trickplay tracks"); + a.sort(function(a, b) { + return a.size - b.size; }); + this.log.trace("Transformed trick play tracks", { + Count: a.length + }); + return a; }; - b.prototype.I$a = function() { - this.CQ && (this.CQ.cancel(), this.CQ = void 0); - }; - b.prototype.Cia = function() { - this.config.a$a && !this.CQ && (this.CQ = this.ha.Af(this.config.Eqa, this.p4a.bind(this))); - }; - b.prototype.p4a = function() { - this.I$a(); - this.x8a(); - }; - b.prototype.$ja = function(a) { - return a ? this.iq.As() : 0; - }; - b.prototype.Xn = function(a) { - return this.He.Xn(a) || this.He.profile; + d.dQa = a; + }, function(g, d) { + function a(a, c, d, g, f, p) { + this.d7 = a; + this.f1 = c; + this.aBa = d; + this.irb = g; + this.Ema = f; + this.qCa = p; + } + Object.defineProperty(d, "__esModule", { + value: !0 + }); + a.prototype.JT = function(a) { + var b, d, g, f, p, m, l, n, q, v, t, w, D, z, E, P; + a = this.d7.decode(a); + b = this.f1.Zwa(a.bn, a.Gj, !0); + d = this.aBa.wib(a.nBa); + g = this.irb.yib(a.zBa); + f = this.Ema.bib(a.C0, a.media, d); + p = this.qCa.zib(a.OV); + m = this.qib(a, f, d); + l = m[0]; + n = p[0]; + q = this.Ema.oYa(f) || l.Ic || f[0]; + l = this.aBa.vqb(q.mj) || l.kc || q.mj[0]; + v = this.qCa.rib(a.OV); + t = a.df; + w = a.Ana; + D = a.qsa; + z = a.Bj; + E = a.C0.findIndex(function(a) { + return a.jo == q.Tb; + }); + P = a.OV.findIndex(function(a) { + return a.jo == n.Tb; + }); + return { + qo: v, + $h: b, + xm: f, + hq: p, + mj: d, + Is: g, + df: t, + Fnb: w, + Vu: D, + Bj: z, + Toa: E, + Xoa: P, + YT: m, + t2: n, + n2: q, + s2: l, + tGb: a + }; + }; + a.prototype.qib = function(a, c, d) { + var b, f; + b = []; + f = a.Woa[0]; + b.push({ + Ic: c.find(function(a) { + return a.jy === f.BB; + }), + kc: d.find(function(a) { + return a.jy === f.OAa; + }), + vHb: 0 + }); + return b; }; - pa.Object.defineProperties(b.prototype, { - size: { - configurable: !0, - enumerable: !0, - get: function() { - var a; - a = l.ga(0); - if (this.data) - for (var b in this.data.ld) a = a.add(this.data.ld[b].size); - return a; - } - } - }); - a = b; - a = f.__decorate([d.N(), f.__param(0, d.j(k.xh)), f.__param(1, d.j(t.fk)), f.__param(2, d.j(n.gn)), f.__param(3, d.j(g.Rg)), f.__param(4, d.j(m.Y9)), f.__param(5, d.j(q.IT)), f.__param(6, d.j(r.Jb)), f.__param(7, d.j(x.hr))], a); - c.mAa = a; - }, function(f, c, a) { - var d, h, l, g, m, k, r, n, q, t, w, G; + d.lKa = a; + }, function(g, d, a) { + var c, h, k, f; - function b(a, b, c, d, g, f, m, l, k) { - var p; - p = this; - this.config = a; - this.json = c; - this.ha = d; - this.e1a = g; - this.Wd = m; - this.zG = l; - this.p2a = k; - this.HO = this.fG = this.Wi = !1; - this.listeners = []; - h.$i(this, "json"); - this.ca = f.Bb("LogBatcher"); - this.Wd.Fm.subscribe(this.Z0.bind(this)); - this.Sn(); - b().then(function(a) { - p.He = a; - p.He.fG().subscribe(function(a) { - return p.fG = a; - }); - })["catch"](function(a) { - p.ca.error("Unable to initialize the account manager for the log batcher", a, r.br); - }); + function b(a, b, c, d, f) { + this.log = a; + this.config = b; + this.j = c; + this.f1 = d; + this.F8 = f; } - Object.defineProperty(c, "__esModule", { + Object.defineProperty(d, "__esModule", { value: !0 }); - d = a(1); - f = a(0); - h = a(49); - l = a(50); - g = a(345); - m = a(63); - k = a(43); - r = a(12); - n = a(65); - q = a(344); - t = a(85); - w = a(208); - G = a(2); - c.lgb = function(a, b, c) { - this.name = a; - this.message = void 0 === b ? a : b; - this.cause = c; - }; - b.prototype.Xc = function() { - this.Wi = !0; - }; - b.prototype.Vl = function(a, b, c) { - var d; - b = void 0 === b ? !1 : b; - d = this; - 0 < a.size.Gk(this.config.S1a) ? this.ca.error("Logblob is too large, dropping from the queue", { - logblobType: a.type, - logblobSize: a.size.toString() - }) : this.p2a.Z9a(a) && (!c && this.He && (c = this.He.profile), this.listeners.forEach(function(b) { - return b.nna(a); - }), b = b || 0 <= this.config.I1.indexOf(a.type), this.zG.wp(a, b, c), this.ha.lb(function() { - d.EVa(); - })); - }; - b.prototype.flush = function(a) { + c = a(72); + h = a(6); + k = a(156); + f = a(212); + b.prototype.wib = function(a) { var b; - a = void 0 === a ? !1 : a; b = this; - return this.HO ? (this.ca.trace("LogBatcher is in error state, ignoring flush"), Promise.reject()) : new Promise(function(c, d) { - b.ca.trace("Flushing", r.br); - b.Og(); - b.ha.lb(function() { - b.Y4(a).then(function() { - c(); - })["catch"](function() { - d(); - }); - }); + a = a.map(function(a) { + var d, f, g; + d = b.Rqb(a); + !1 !== a.xS || d.length || b.log.error("track without downloadables", b.Ara(a)); + !0 !== a.tS || d.length || b.log.error("forced track without downloadables", b.Ara(a)); + f = {}; + g = []; + if (0 < d.length) { + f = d[0]; + g = f.profile; + if (g == c.Vj.iA || g == c.Vj.XM) f = b.hnb(d); + g = b.f1.Zwa(a.ona, void 0, !1); + } + a = b.F8(b.j, a.jo, a.id, f.pd, f.Qc || {}, g, a.language, a.YC, k.PY[a.vi.toLowerCase()] || k.Oo.pA, a.iz.toUpperCase(), f.profile, b.K9a(f) || {}, a.xS, a.tS, a.fJ); + b.log.trace("Transformed timed text track", a); + return a; }); + this.log.trace("Transformed timed text tracks", { + Count: a.length + }); + return a; }; - b.prototype.addListener = function(a) { - this.listeners.push(a); - }; - b.prototype.removeListener = function(a) { - a = this.listeners.indexOf(a); - 0 <= a && this.listeners.splice(a, 1); - }; - b.prototype.Y4 = function(a) { - a = void 0 === a ? !1 : a; - return d.__awaiter(this, void 0, void 0, function() { - var c, d, g, f, h, m, l, k, p, n, u; - - function b(b) { - for (;;) switch (c) { - case 0: - p = n; - if (n.Wi && n.fG && !n.Fm) { - c = 1; - break; - } - c = -1; - return { - value: void 0, - done: !0 - }; - case 1: - if (!n.HO) { - c = 2; - break; - } - n.ca.trace("LogBatcher is in error state, ignoring sendLogMessages"); - c = -1; - return { - value: void 0, - done: !0 - }; - case 2: - k = n.zG.DWa(); - l = !1; - if (!(0 < k.length || a)) { - c = 3; - break; - } - n.Og(); - n.listeners.forEach(function(a) { - return a.$qa(); - }); - m = {}; - h = Na(k); - f = h.next(); - case 4: - if (f.done) { - c = 6; - break; - } - m.Gp = f.value; - try { - return n.Yw(m.Gp), n.ca.trace("Sending batch: " + m.Gp.size, r.br), c = 9, { - value: n.e1a.send(m.Gp.profile, m.Gp.ld), - done: !1 - }; - } catch (da) { - g = da; - c = 7; - break; - } - case 9: - try { - if (void 0 === b) { - c = 10; - break; - } - c = -1; - throw b; - } catch (da) { - g = da; - c = 7; - break; - } - case 10: - try { - c = 8; - break; - } catch (da) { - g = da; - c = 7; - break; - } - case 7: - d = g; - l = !0; - n.ca.warn("Failed to send logblobs.", d, r.br); - n.config.gX && (n.ca.trace("re-adding failed batch"), m.Gp.ld.forEach(function(a) { - return function(b, c) { - p.zG.wp(b, 0 !== a.Gp.Zka[c], a.Gp.profile); - }; - }(m))); - if (d.tb !== G.u.HC) { - c = 11; - break; - } - n.HO = !0; - c = 6; - break; - case 11: - case 8: - case 5: - m = { - Gp: m.Gp - }; - f = h.next(); - c = 4; - break; - case 6: - case 3: - n.Sn(); - if (!l) { - c = 12; - break; - } - c = -1; - throw Error("Send failure."); - case 12: - c = -1; - default: - return { - value: void 0, - done: !0 - }; - } - } - c = 0; - n = this; - u = { - next: function() { - return b(void 0); - }, - "throw": function(a) { - return b(a); - }, - "return": function() { - throw Error("Not yet implemented"); - } - }; - Za(); - u[Symbol.iterator] = function() { - return this; + b.prototype.vqb = function(a) { + var b, c; + b = this; + c = this.config.F3; + if (c) { + if (a = za(a.filter(function(a) { + return a.yj == c || a.Tb == c; + })).next().value) return a; + } else if (this.j.pR && (a = za(a.filter(function(a) { + return a.Tb == b.j.pR; + })).next().value)) return a; + }; + b.prototype.Rqb = function(a) { + var b, c, d; + b = this; + c = a.CBa; + d = a.rpa; + a = Object.keys(c || {}).map(function(a) { + var f; + f = c[a]; + return { + pd: d[a], + profile: a, + size: f.size || 0, + Dd: b.U8a(a, f), + offset: f.GJ || 0, + Wib: f.width, + jxa: f.height, + Qc: f.Ir }; - return u; }); + a.sort(function(a, b) { + return a.Dd - b.Dd; + }); + return a; }; - b.prototype.EVa = function() { - var a; - a = this; - 0 < this.zG.size.Gk(this.config.ana) ? this.Y4()["catch"](function() { - return a.ca.warn("failed to send log messages on size threshold"); - }) : this.Sn(); - }; - b.prototype.Og = function() { - this.bo && (this.bo.cancel(), this.bo = void 0); + b.prototype.U8a = function(a, b) { + var d, f; + d = this.config.Ds.indexOf(a); + b = b.size; + f = this.config.yE; + return a === c.Vj.uW && 0 < f && b > f ? this.config.Ds.length + 1 : 0 <= d ? d : this.config.Ds.length; }; - b.prototype.Sn = function() { - this.Fm || this.bo || (this.bo = this.ha.Af(this.config.T8a, this.Hw.bind(this))); + b.prototype.K9a = function(a) { + if (a.profile === c.Vj.iA || a.profile === c.Vj.XM) return { + offset: a.offset, + length: a.size, + UHb: { + width: a.Wib, + height: a.jxa + } + }; }; - b.prototype.Hw = function() { - var a; - a = this; - this.HO = !1; - this.Og(); - this.Y4()["catch"](function() { - return a.ca.warn("failed to send log messages on timer"); + b.prototype.hnb = function(a) { + var b, d; + b = this.config.x5 || f.KY.C4(); + d = za(a.filter(function(a) { + return a.profile === c.Vj.iA || a.profile === c.Vj.XM; + }).filter(function(a) { + return a.jxa === b; + })).next().value; + if (d) return d; + this.log.warn("none of the downloadables match the intended resolution", { + screenHeight: h.xq.height, + intendedResolution: b }); + return a[0]; }; - b.prototype.Z0 = function(a) { - this.ca.trace("isOffline: " + a, r.br); - (this.Fm = a) ? this.bo && (this.bo.cancel(), this.bo = void 0): this.flush(); - }; - b.prototype.Yw = function(a) { - this.zG.Yw(a.Zka); + b.prototype.Ara = function(a) { + return { + isNone: a.xS, + isForced: a.tS, + bcp47: a.language, + id: a.jo + }; }; - b.prototype.stringify = function(a) { - var b; - b = ""; - try { - b = this.json.stringify(a.data, void 0, " "); - } catch (C) {} - return b; + d.GPa = b; + }, function(g) { + g.M = function(d) { + return function() { + return !d.apply(this, arguments); + }; }; - a = b; - a = d.__decorate([f.N(), d.__param(0, f.j(n.IT)), d.__param(1, f.j(m.gn)), d.__param(2, f.j(l.hr)), d.__param(3, f.j(k.xh)), d.__param(4, f.j(g.Z9)), d.__param(5, f.j(r.Jb)), d.__param(6, f.j(t.Wq)), d.__param(7, f.j(q.t$)), d.__param(8, f.j(w.W9))], a); - c.mza = a; - }, function(f, c, a) { - var d, h, l, g, m, k, r, n; + }, function(g, d, a) { + var b, c; + b = a(759); + d = a(49); + c = a(390); + a = d(function(a, d) { + return c(b(a), d); + }); + g.M = a; + }, function(g, d, a) { + d = a(216); + a = a(214); + a = d(a); + g.M = a; + }, function(g, d, a) { + d = a(49)(function(a, c) { + for (var b = 0; b < a.length;) { + if (null == c) return; + c = c[a[b]]; + b += 1; + } + return c; + }); + g.M = d; + }, function(g, d, a) { + var b; + d = a(49); + b = a(762); + a = d(function(a, d) { + return b([a], d); + }); + g.M = a; + }, function(g, d, a) { + var b, c; + d = a(49); + b = a(387); + c = function() { + function a(a, b) { + this.VL = b; + this.gI = a; + } + a.prototype["@@transducer/init"] = b.Ac; + a.prototype["@@transducer/result"] = b.result; + a.prototype["@@transducer/step"] = function(a, b) { + return this.VL["@@transducer/step"](a, this.gI(b)); + }; + return a; + }(); + a = d(function(a, b) { + return new c(a, b); + }); + g.M = a; + }, function(g, d, a) { + var b, c, h, k, f, p; + d = a(49); + b = a(389); + c = a(385); + h = a(214); + k = a(764); + f = a(384); + p = a(386); + a = d(b(["fantasy-land/map", "map"], k, function(a, b) { + switch (Object.prototype.toString.call(b)) { + case "[object Function]": + return f(b.length, function() { + return a.call(this, b.apply(this, arguments)); + }); + case "[object Object]": + return h(function(c, d) { + c[d] = a(b[d]); + return c; + }, {}, p(b)); + default: + return c(a, b); + } + })); + g.M = a; + }, function(g, d, a) { + var b, c; + d = a(49); + b = a(765); + c = a(763); + a = d(function(a, d) { + return b(c(a), d); + }); + g.M = a; + }, function(g, d, a) { + d = a(49)(function(a, c) { + return c > a ? c : a; + }); + g.M = d; + }, function(g, d, a) { + var c, h; - function b(a, b, c, g, f) { - var h; - h = this; - this.v1a = a; - this.j1a = b; - this.config = g; - this.i4 = []; - this.v1a.cB(d.qta, this.kZa.bind(this)); - c().then(function(a) { - var b; - b = g().Dg.QVa; - h.V1a = b ? n.wh[b.toUpperCase()] : f.xA; - h.Yi = a; - h.W8a(); - }); + function b(a, d, g) { + return function() { + var n; + for (var f = [], k = 0, p = a, l = 0; l < d.length || k < arguments.length;) { + l < d.length && (!h(d[l]) || k >= arguments.length) ? n = d[l] : (n = arguments[k], k += 1); + f[l] = n; + h(n) || --p; + l += 1; + } + return 0 >= p ? g.apply(this, f) : c(p, b(a, f, g)); + }; } - Object.defineProperty(c, "__esModule", { - value: !0 + c = a(213); + h = a(157); + g.M = b; + }, function(g, d, a) { + var b, c, h, k, f; + d = a(49); + b = a(385); + c = a(384); + h = a(767); + k = a(766); + f = a(761); + a = d(function(a, d) { + return c(f(h, 0, k("length", d)), function() { + var c, f; + c = arguments; + f = this; + return a.apply(f, b(function(a) { + return a.apply(f, c); + }, d)); + }); + }); + g.M = a; + }, function(g, d, a) { + var b; + d = a(113); + b = a(769); + a = d(function(a) { + return b(function() { + return Array.prototype.slice.call(arguments, 0); + }, a); }); - f = a(1); - h = a(0); - l = a(29); - g = a(84); - m = a(65); - k = a(146); - r = a(105); - n = a(12); - b.prototype.kZa = function(a, b) { - this.Yi ? this.xpa(a, b) : this.i4.push([a, b]); + g.M = a; + }, function(g, d, a) { + var b, c; + b = a(215); + c = Object.prototype.toString; + g.M = function() { + return "[object Arguments]" === c.call(arguments) ? function(a) { + return "[object Arguments]" === c.call(a); + } : function(a) { + return b("callee", a); + }; }; - b.prototype.W8a = function() { - var a, b; - a = this; - b = this.i4; - this.i4 = []; - b.forEach(function(b) { - a.xpa(b[0], b[1]); + }, function(g, d, a) { + var b, c; + d = a(49); + b = a(387); + c = function() { + function a(a, b) { + this.VL = b; + this.gI = a; + } + a.prototype["@@transducer/init"] = b.Ac; + a.prototype["@@transducer/result"] = b.result; + a.prototype["@@transducer/step"] = function(a, b) { + return this.gI(b) ? this.VL["@@transducer/step"](a, b) : a; + }; + return a; + }(); + a = d(function(a, b) { + return new c(a, b); + }); + g.M = a; + }, function(g, d, a) { + var b; + b = a(213); + d = a(49)(function(a, d) { + return b(a.length, function() { + return a.apply(d, arguments); }); - }; - b.prototype.xpa = function(a, b) { - var c, d; - if (this.Yi && this.W9a(a)) { - c = { - debugMessage: a.message, - debugCategory: a.Ck - }; - a.li.forEach(function(a) { - return c = Object.assign({}, c, a.value); - }); - c = Object.assign({}, c, { - prefix: "debug" - }); - d = this.L_a(a) ? "offline" : "debug"; - a = this.j1a.Bs(d, n.wh[a.level].toLowerCase(), c, b); - this.Yi.Vl(a); + }); + g.M = d; + }, function(g) { + var d; + d = function() { + function a(a) { + this.gI = a; } + a.prototype["@@transducer/init"] = function() { + throw Error("init not implemented on XWrap"); + }; + a.prototype["@@transducer/result"] = function(a) { + return a; + }; + a.prototype["@@transducer/step"] = function(a, c) { + return this.gI(a, c); + }; + return a; + }(); + g.M = function(a) { + return new d(a); }; - b.prototype.W9a = function(a) { - var b; - b = this.V1a; - return void 0 !== b && a.level <= b && !a.li.find(function(a) { - return a.qN(n.br); - }); - }; - b.prototype.L_a = function(a) { - return 0 <= this.config().V3a.indexOf(a.Ck); - }; - a = d = b; - a.qta = "adaptorAll"; - a = d = f.__decorate([h.N(), f.__param(0, h.j(g.ou)), f.__param(1, h.j(r.Tx)), f.__param(2, h.j(m.R9)), f.__param(3, h.j(l.Ef)), f.__param(4, h.j(k.iJ))], a); - c.Mta = a; - }, function(f, c, a) { - var b, d, h, l, g, m, k, r, n, q, t, w, G, x, y, C, F, N, T, A, Z, O, B; - Object.defineProperty(c, "__esModule", { - value: !0 - }); - f = a(0); - b = a(111); - d = a(663); - h = a(662); - l = a(661); - g = a(658); - m = a(657); - k = a(656); - r = a(29); - n = a(655); - q = a(654); - t = a(653); - w = a(652); - G = a(43); - x = a(651); - y = a(22); - C = a(341); - F = a(344); - N = a(345); - T = a(340); - A = a(105); - Z = a(207); - O = a(208); - B = a(65); - c.t1a = new f.dc(function(a) { - a(B.jr).to(h.mza).Y(); - a(F.t$).to(l.mAa).Y(); - a(N.Z9).to(g.xza).Y(); - a(Z.Y9).to(m.wza).Y(); - a(B.IT).to(n.lza).Y(); - a(A.Tx).to(t.sza).Y(); - a(Z.X9).to(w.vza).Y(); - a(C.K6).to(d.Mta).Y(); - a(B.R9).OB(function(a) { - return function() { - return new Promise(function(c) { - var g, f, h, m; - - function d() { - f() && h() && m.Le ? c(a.kc.get(B.jr)) : g.lb(d); - } - g = a.kc.get(G.xh); - f = a.kc.get(r.Ef); - h = a.kc.get(y.Ee); - m = a.kc.get(b.Wx); - g.lb(d); - }); - }; - }); - a(T.L9).to(k.fza).Y(); - a(O.W9).to(q.uza).Y(); - a(O.V9).to(x.tza).Y(); + }, function(g) { + g.M = function(d) { + return "[object String]" === Object.prototype.toString.call(d); + }; + }, function(g, d, a) { + var b, c; + d = a(113); + b = a(388); + c = a(775); + a = d(function(a) { + return b(a) ? !0 : !a || "object" !== typeof a || c(a) ? !1 : 1 === a.nodeType ? !!a.length : 0 === a.length ? !0 : 0 < a.length ? a.hasOwnProperty(0) && a.hasOwnProperty(a.length - 1) : !1; + }); + g.M = a; + }, function(g) { + g.M = function(d, a) { + for (var b = 0, c = a.length, g = []; b < c;) d(a[b]) && (g[g.length] = a[b]), b += 1; + return g; + }; + }, function(g) { + g.M = function(d) { + return "function" === typeof d["@@transducer/step"]; + }; + }, function(g, d, a) { + var b; + d = a(390); + b = a(770); + a = a(760); + a = b([d, a]); + g.M = a; + }, function(g, d, a) { + var b; + d = a(216); + b = a(215); + a = d(function(a, d, g) { + var c, k; + c = {}; + for (k in d) b(k, d) && (c[k] = b(k, g) ? a(k, d[k], g[k]) : d[k]); + for (k in g) b(k, g) && !b(k, c) && (c[k] = g[k]); + return c; }); - }, function(f, c) { - Object.defineProperty(c, "__esModule", { - value: !0 + g.M = a; + }, function(g, d, a) { + var b, c; + d = a(216); + b = a(391); + c = a(780); + a = d(function k(a, d, g) { + return c(function(c, d, f) { + return b(d) && b(f) ? k(a, d, f) : a(c, d, f); + }, d, g); + }); + g.M = a; + }, function(g, d, a) { + var b; + d = a(49); + b = a(781); + a = d(function(a, d) { + return b(function(a, b, c) { + return c; + }, a, d); }); - c.Cwa = function(a, b, c, f) { - this.$d = a; - this.zm = b; - this.Oz = c; - this.B8a = f; - }; - }, function(f, c, a) { - var d, h, l, g, m, k, r, n, q, t, w, G, x, y; + g.M = a; + }, function(g, d, a) { + var c; - function b(a, b, c, d, g, f, h, m, l, k) { - this.Yha = a; - this.md = b; - this.Oa = d; - this.hZ = g; - this.xg = f; - this.debug = h; - this.xI = m; - this.gZ = l; - this.Wd = k; - this.hC = /^(SDK-|SLW32-|SLW64-|SLMAC-|.{10})([A-Z0-9-=]{4,})$/; - this.log = c.Bb("Device"); + function b(a, b) { + this.log = a; + this.config = b; } - Object.defineProperty(c, "__esModule", { + Object.defineProperty(d, "__esModule", { value: !0 }); - f = a(1); - d = a(2); - h = a(20); - l = a(665); - g = a(12); - m = a(350); - k = a(62); - r = a(128); - n = a(26); - q = a(0); - t = a(56); - w = a(347); - G = a(346); - x = a(77); - a = a(85); - b.prototype.Nia = function(a) { - try { - return a.match(this.hC)[2]; - } catch (F) {} - }; - b.prototype.Pia = function(a) { - try { - return a.match(this.hC)[1]; - } catch (F) {} - }; - b.prototype.create = function(a) { - var b; - b = this; - return new Promise(function(c, g) { - b.md.create().then(function(f) { - var m, k, p, r, n, u; - - function h(f) { - b.Oa.Eh(f) && b.Oa.Eh(m) ? (k = new l.Cwa(f, m, p, a.Zha || "cadmium"), c(k)) : g({ - R: d.u.H7 - }); + c = a(131); + b.prototype.Zwa = function(a, b, d) { + var f, g, k, h, l; + f = this; + g = this.config.e1; + k = this.config.d1; + a = za(c.qv(function(a) { + return (!g.length || 0 <= g.indexOf(a.id)) && 0 > k.indexOf(a.id); + }, a || [])); + h = a.next().value; + a.next().value.forEach(function(a) { + return f.log.warn("Cdn is not allowed", { + Id: a.id + }); + }); + l = h.map(function(a) { + var c; + c = (b ? b.find(function(b) { + return b.key === a.key; + }) : void 0) || {}; + return { + id: a.id, + name: a.name, + Qd: a.Qd, + type: a.type, + E6: a.key, + HFb: a.Eua, + location: { + id: c.key, + Qd: c.Qd, + level: c.level, + weight: c.weight, + $h: [] } - m = a.zm; - if (a.z_) { - n = a.$d; - if (b.Oa.Eh(n)) { - u = b.Pia(n); - u != a.zm && b.log.error("esn prefix from ui is different", { - ui: u, - cad: a.zm, - ua: a.userAgent - }); - } else a.G1 && b.log.error("esn from ui is missing"); - u = Promise.resolve({ - K: !1 - }); - a.AF && (u = b.R0a(f, a)); - u.then(function(c) { - c.K && c.Oz && c.deviceId ? (p = c.Oz, h(m + c.deviceId)) : f.load(a.XM).then(function(a) { - r = a.value; - b.Oa.Eh(r) && (b.Oa.Eh(n) ? (a = b.Nia(n), p = a === r ? "storage_matched_esn_in_config" : "storage_did_not_match_esn_in_config") : p = "storage_esn_not_in_config", h(m + r)); - })["catch"](function(c) { - var k; - - function l() { - f.save(a.XM, k, !1).then(function() { - h(m + k); - })["catch"](function(a) { - g(a); - }); - } - c.R === d.u.sj ? (b.Oa.Eh(a.$d) ? (k = b.Nia(a.$d), b.Oa.Eh(k) ? p = "config_since_not_in_storage" : (p = "generated_since_invalid_in_config_and_not_in_storage", b.log.error("invalid esn passed from UI", a.$d), k = b.Yha.sja())) : (p = "generated_since_not_in_config_and_storage", k = b.Yha.sja()), l()) : g(c); - }); - })["catch"](g); - } else a.kTa && b.hZ && b.hZ.getKeyByName ? b.hZ.getKeyByName(a.iNa).then(function(a) { - a = a.id; - if (b.Oa.Xg(a)) a = String.fromCharCode.apply(void 0, b.xg.decode(a)), b.debug.assert("" != a), m = b.Pia(a), h(a); - else throw "ESN from getKeyByName is not a string"; - })["catch"](function(a) { - g({ - R: d.u.uS, - za: b.xI.yc(a) - }); - }) : a.jTa && b.gZ && b.gZ.Kja ? b.gZ.Kja().then(function(a) { - var c; - a = String.fromCharCode.apply(void 0, a); - c = m + a; - b.debug.assert(b.hC.test(a)); - h(c); - })["catch"](function() { - g({ - R: d.u.uS - }); - }) : h(); - })["catch"](function(a) { - g(a); - }); + }; }); - }; - b.prototype.R0a = function(a, b) { - var c; - c = this; - return new Promise(function(d, g) { - c.V0a(a, b).then(function(g) { - b.Aka ? c.AF(b.Aka).then(function(f) { - var h; - if (c.Oa.Xg(f) && c.hC.test(b.zm + f)) { - h = Promise.resolve(); - c.JUa(g, f) && (c.Wd.Ek.Uj("DebugEvent", { - kind: "playerEsn", - esnEvent: "transition", - oldEsn: g, - newEsn: f - }), h = c.Ebb(a, b)); - h.then(function() { - a.save(b.XM, f, !1)["catch"](function(a) { - c.log.error("Failed to persist hardware esn", { - esn: f, - exception: c.xI.yc(a) - }); - }); - d({ - K: !0, - deviceId: f, - Oz: "hardware_deviceid" - }); - })["catch"](function(a) { - c.log.error("Exception transitioning hesn", { - exception: c.xI.yc(a) - }); - d({ - K: !1 - }); - }); - } else c.log.error("Invalid Hardware ESN", { - deviceId: f - }), d({ - K: !1 - }); - })["catch"](function(a) { - c.log.error("Exception generating hardwareId", { - exception: c.xI.yc(a) - }); - d({ - K: !1 - }); - }) : (c.log.error("hardwareDeviceId not provided"), d({ - K: !1 - })); - })["catch"](g); + l.sort(function(a, b) { + return a.Qd - b.Qd; }); - }; - b.prototype.V0a = function(a, b) { - var c; - c = this; - return new Promise(function(g) { - a.load(b.XM).then(function(a) { - a = a.value; - c.Oa.Xg(a) && c.hC.test(b.zm + a) ? g(a) : (g(void 0), c.log.error("Invalid ESN Loaded", { - deviceId: a - })); - })["catch"](function(a) { - a.R !== d.u.sj && c.log.error("Error loading ESN", a); - g(void 0); + l.forEach(function(a) { + return a.location.$h = l.filter(function(b) { + return b.E6 === a.E6; }); }); - }; - b.prototype.JUa = function(a, b) { - return a !== b; - }; - b.prototype.Ebb = function(a, b) { - return a.remove(b.R2a); - }; - b.prototype.AF = function(a) { - var b; - b = this; - return new Promise(function(c, d) { - try { - x.pa.from(a.hardwareDeviceId).GB(1).subscribe(function(a) { - b.Oa.Xg(a) ? c(a) : d("Hardware deviceId was not a string: " + a); - }, function(a) { - d(a); - }); - } catch (ca) { - d(ca); - } + this.log.trace("Transformed cdns", { + Count: l.length }); + if (d && !l.length) throw Error("no valid cdns"); + return l; }; - y = b; - y = f.__decorate([q.N(), f.__param(0, q.j(m.S7)), f.__param(1, q.j(t.fk)), f.__param(2, q.j(g.Jb)), f.__param(3, q.j(h.rd)), f.__param(4, q.j(G.C7)), f.__param(5, q.j(k.fl)), f.__param(6, q.j(r.gJ)), f.__param(7, q.j(n.Re)), f.__param(8, q.j(w.B7)), f.__param(9, q.j(a.Wq))], y); - c.Ewa = y; - }, function(f, c, a) { - var d, h, l, g, m, k; + d.HEa = b; + }, function(g, d, a) { + var c, h, k, f, l, m, r, n, q, v, t, w, D; - function b(a, b) { - this.Na = a; - this.nH = b; + function b(a, b, c, d, f, g) { + this.af = a; + this.d7 = b; + this.config = c; + this.F8 = d; + this.Jaa = f; + this.yV = g; } - Object.defineProperty(c, "__esModule", { + Object.defineProperty(d, "__esModule", { value: !0 }); - f = a(1); - d = a(52); + g = a(0); + c = a(1); h = a(7); - l = a(110); - g = a(349); - m = a(49); - a = a(0); - b.prototype.sja = function() { - for (var a = "", b = this.Na.Eg.qa(h.Ma), c = 6; c--;) a = "0123456789ACDEFGHJKLMNPQRTUVWXYZ" [b % 32] + a, b = Math.floor(b / 32); - for (; 30 > a.length;) a += "0123456789ACDEFGHJKLMNPQRTUVWXYZ" [this.nH.X3(new g.Yaa(0, 31, m.I3a))]; - return a; + k = a(158); + f = a(392); + l = a(783); + m = a(758); + r = a(757); + n = a(756); + q = a(755); + v = a(753); + t = a(382); + w = a(381); + a = a(380); + b.prototype.create = function(a) { + var b, c; + b = this.af.lb("ManifestParser", a); + c = new l.HEa(b, this.config); + return new r.lKa(this.d7, c, new m.GPa(b, this.config, a, c, this.F8), new n.dQa(b, a, this.Jaa), new q.rDa(b, this.config, a, this.yV), new v.xQa(b, this.yV)); }; - k = b; - k = f.__decorate([a.N(), f.__param(0, a.j(d.mj)), f.__param(1, a.j(l.XC))], k); - c.Bwa = k; - }, function(f, c, a) { - var d, h; - - function b() { - this.xA = h.wh.ERROR; - this.f3 = void 0; - this.S8a = !0; - this.Oka = d.I2(1); - } - Object.defineProperty(c, "__esModule", { - value: !0 - }); - f = a(1); - d = a(7); - h = a(12); - a = a(0); - b = f.__decorate([a.N()], b); - c.Dwa = b; - }, function(f, c, a) { - var b, d, h, l, g, m, k; - Object.defineProperty(c, "__esModule", { + D = b; + D = g.__decorate([c.N(), g.__param(0, c.l(h.sb)), g.__param(1, c.l(k.Tea)), g.__param(2, c.l(f.Uea)), g.__param(3, c.l(t.Dga)), g.__param(4, c.l(a.Rha)), g.__param(5, c.l(w.Nha))], D); + d.kKa = D; + }, function(g, d, a) { + var b, c, h, k, f, l, m, r; + Object.defineProperty(d, "__esModule", { value: !0 }); - b = a(668); - f = a(0); - d = a(146); - h = a(22); - l = a(350); - g = a(667); - m = a(348); - k = a(666); - c.Bg = new f.dc(function(a) { - a(h.Ee).Yl(function() { - return function() { - return t._cad_global.device; + g = a(1); + b = a(393); + c = a(784); + h = a(392); + k = a(752); + f = a(382); + l = a(381); + m = a(379); + r = a(751); + d.Ceb = new g.Vb(function(d) { + d(h.Uea).to(k.jKa).$(); + d(b.Vea).to(c.kKa).$(); + d(f.Dga).Ig(function(b) { + for (var c = [], d = 0; d < arguments.length; ++d) c[d - 0] = arguments[d]; + d = a(211).OF; + return new(Function.prototype.bind.apply(d, [null].concat(wb(c))))(); + }); + d(l.Nha).Ig(function(b) { + for (var c = [], d = 0; d < arguments.length; ++d) c[d - 0] = arguments[d]; + d = a(343).BEa; + return new(Function.prototype.bind.apply(d, [null].concat(wb(c))))(); + }); + d(m.Wea).ih(function() { + return function(a) { + return new r.oKa(a); }; }); - a(m.T7).to(k.Ewa).Y(); - a(l.S7).to(g.Bwa).Y(); - a(d.iJ).to(b.Dwa).Y(); }); - }, function(f, c, a) { - var d, h; + }, function(g, d, a) { + var c, h, k, f, l, m, r, n, q; - function b(a) { - this.Le = a; - this.rQ = 0; - this.U0 = !1; - this.bx = []; + function b(a, b, c, d, f, g) { + this.eC = a; + this.Rd = b; + this.config = c; + this.$i = f; + this.er = g; + this.log = d.lb("CDMAttestedDescriptor"); + this.era(); } - Object.defineProperty(c, "__esModule", { + Object.defineProperty(d, "__esModule", { value: !0 }); - f = a(1); - d = a(0); - a = a(111); - b.prototype.send = function(a) { - var b, c, d; - b = this; - c = !!a.kA && 0 !== this.rQ; - d = this.bx.some(function(a) { - return !!a.wP.kA; - }); - return (c || this.U0 || d ? new Promise(function(c, d) { - b.bx.push({ - wP: a, - resolve: c, - reject: d - }); - }) : this.nB(a)).then(function(a) { - b.ooa(); - return a; - })["catch"](function(a) { - b.ooa(); - throw a; - }); - }; - b.prototype.nB = function(a) { - this.rQ++; - a.kA && (this.U0 = !0); - return this.Le.send(a); - }; - b.prototype.Yqa = function(a) { - this.nB(a.wP).then(function(b) { - a.resolve(b); - })["catch"](function(b) { - a.reject(b); - }); - }; - b.prototype.ooa = function() { + g = a(0); + c = a(1); + h = a(122); + k = a(44); + f = a(20); + l = a(7); + m = a(76); + r = a(101); + n = a(65); + q = a(241); + b.prototype.era = function() { var a; - this.rQ--; - this.U0 = !1; - if (0 === this.rQ && 0 < this.bx.length) { - a = this.bx.shift(); - this.Yqa(a); - if (!a.wP.kA) - for (; 0 < this.bx.length && !this.bx[0].wP.kA;) this.Yqa(this.bx.shift()); - } - }; - h = b; - h = f.__decorate([d.N(), f.__param(0, d.j(a.Wx))], h); - c.tAa = h; - }, function(f, c, a) { - var d, h, l, g, m, k, r, n, q, t, w, G, x, y, C, F, N, T, A, Z, O; - - function b(a, b, c, d, g, f, h, m, k, p, r, n, u, q) { - this.platform = a; - this.config = b; - this.y_ = c; - this.p0a = d; - this.xg = g; - this.gb = f; - this.Le = h; - this.Y8a = m; - this.FB = k; - this.Cx = p; - this.kf = r; - this.nH = n; - this.json = u; - this.uX = q; - this.Fk = []; - l.$i(this, "json"); - } - Object.defineProperty(c, "__esModule", { - value: !0 - }); - f = a(1); - h = a(0); - l = a(49); - g = a(24); - m = a(29); - k = a(47); - r = a(38); - n = a(62); - q = a(7); - t = a(111); - w = a(220); - G = a(152); - x = a(26); - y = a(2); - C = a(110); - F = a(33); - N = a(50); - T = a(58); - A = a(27); - a = a(351); - Z = { - license: !0 + a = this; + return this.config().g5a ? this.dra().then(function(b) { + if (b) return Promise.resolve(void 0); + a.bua || (a.bua = a.C9a()); + return a.bua; + }).then(function(b) { + return Promise.all([Promise.resolve(b), a.dra()]); + }).then(function(a) { + var b; + a = za(a); + b = a.next().value; + if (!a.next().value) return b; + }) : (this.$i.rf.removeServiceToken("cad"), Promise.resolve(void 0)); }; - b.prototype.send = function(a, b, c, g) { - var r, n, u, v; - - function f(b) { - return new Promise(function(c, d) { - function g(a) { - var d, g; - - function c(a, c) { - n.error("Failed to send request", { - errorSubCode: a, - errorExternalCode: c, - request: JSON.stringify({ - method: b.method, - profile: b.IG.profile ? b.IG.profile.id : void 0, - nonReplayable: b.CP, - retryCount: b.D4, - userId: b.WB, - userTokens: JSON.stringify(r.Le.Le.getUserIdTokenKeys()) - }) - }); - return { - K: !1, - result: { - errorSubCode: a, - errorExternalCode: c - } - }; - } - d = r.json.parse(a); - if (2 != d.length) return n.trace("The MSL envelope did not have enough array items."), c(y.u.AC); - if (!d[1].payload) return n.trace("The MSL envelope did not have a payload."), c(y.u.AC); - if (!d[1].status) return n.trace("The MSL envelope did not have a status."), c(y.u.AC); - a = d[1].status; - g = parseInt(a, 10); - if (isNaN(g) && "ok" != a.toLowerCase() || !(200 <= g && 300 > g)) return d = d[1].payload.data, d = r.xg.decode(d), n.error("The MSL status indicated an error", { - status: g - }, r.Cx.encode(d)), 401 === g ? c(y.u.HC, 4027) : c(y.u.KT, a); - d = d[1].payload.data; - d = r.Cx.encode(r.xg.decode(d)); - if (!d) return n.trace("The MSL payload is missing."), c(y.u.i$); - try { - return r.json.parse(d); - } catch (mb) { - return n.error("EDGE response this.json parse error: ", mb, d), c(y.u.i$); - } - } - h(b, b.D4).then(function(f) { - var h, m; - if (f.body) - if (f = g(f.body), n.trace("Received EDGE response", { - Method: a.method - }), f.success) { - if (r.config().Dg.XUa && r.H_a(a)) { - h = a.vtb; - m = f.profileGuid; - if (h && m !== h) { - f = { - R: y.u.JCa, - za: JSON.stringify({ - serverGuid: m, - clientGuid: h - }) - }; - p(f, b); - d(f); - return; - } - } - v.success = !0; - v.profileId = b.WB; - v.elapsedtime = r.gb.oe().qa(q.Ma) - v.starttime; - v.userTokens = JSON.stringify(r.Le.Le.getUserIdTokenKeys()); - c(f.result); - } else { - m = f.result; - f.__logs && (m.kkb = f.__logs); - try { - h = r.json.stringify(m.data); - } catch (yf) {} - f = p(m, b); - d({ - R: m.errorSubCode, - ub: m.errorExternalCode, - Wv: m.errorEdgeCode, - za: m.errorDetails ? [m.errorDetails, " ", f].join("") : void 0, - ne: m.errorDisplayMessage, - ji: h - }); - } - else d({ - R: y.u.AC, - za: p({ - R: y.u.AC - }, b) - }); - })["catch"](function(a) { - var c; - c = p(a, b); - a.za && (a.za = [a.za, " ", c].join("")); - d(a); - }); - }); - } - - function h(b, c) { - return new Promise(function(g, f) { - function h(b, c, k) { - return r.Y8a.send(b).then(function(a) { - var d, f; - if (d = r.config().kQ) { - try { - f = r.json.parse(a.body); - } catch (Ba) { - n.error("Failed to parse result in refreshCredentialsAfterManifestAuthError"); - } - d = f && 401 === parseInt(f[1].status, 10) ? !0 : !1; - } - if (d && 1 === c && "manifest" == b.method) throw r.Le.cla(), { - K: !1, - result: { - errorSubCode: y.u.HC, - errorExternalCode: 4027 - } - }; - g(a); - })["catch"](function(g) { - var p, u; - u = g && g.$j && void 0 !== g.$j.maxRetries ? Math.min(g.$j.maxRetries, k) : k; - (r.y_.C4 || m(g)) && c <= u ? p = !0 : (n.error("Method failed, retry limit exceeded, giving up", { - Method: a.method, - Attempt: c, - MaxRetries: u - }, d.u8(g)), p = !1); - if (p) return p = g && g.$j && void 0 !== g.$j.retryAfterSeconds ? 1E3 * g.$j.retryAfterSeconds : r.nH.X3(1E3, 1E3 * Math.pow(2, Math.min(c - 1, u))), n.warn("Method failed, retrying", { - Method: a.method, - Attempt: c, - WaitTime: p, - MaxRetries: u - }, d.u8(g)), l(p).then(function() { - return h(b, c + 1, u); - }); - f(g); - }); + b.prototype.C9a = function() { + var a; + a = this; + return this.eC().then(function(b) { + var c; + c = { + type: m.zi.$s, + gS: a.Rd.decode("AAAANHBzc2gAAAAA7e+LqXnWSs6jyCfc1R0h7QAAABQIARIQAAAAAAPSZ0kAAAAAAAAAAA=="), + context: { + Ad: a.config().Ad } - return h(b, 1, c); - }); - } - - function m(a) { - return (a = a && a.R) && a >= y.u.sC && a <= y.u.Px; - } - - function l(a) { - return new Promise(function(b) { - setTimeout(function() { - b(); - }, a); - }); - } - - function k() { - var d, f, h, m, l, k, p, v, t, w; - d = ""; - c && (d += (0 < d.length ? "&" : "") + "logs=true"); - g && (d += (0 < d.length ? "&" : "") + "debug=true"); - a.languages = r.config().Dg.Sw; - a.clientVersion = r.platform.version; - a.uiVersion = r.config().Dg.xx; - f = {}; - r.config().Pna && (f["X-Netflix.request.expiry.timeout"] = r.config().Pna.toString()); - h = [{}, { - headers: f, - path: r.config().Dg.nia, - payload: { - data: r.json.stringify(a) - }, - query: d - }]; - r.config().Dg && (n.debug("Request payload", { - Method: a.method - }, r.FB.uR(h)), n.debug("Request parameters", { - Method: a.method - }, r.FB.uR(a))); - d = b; - f = a.method; - m = "" + (r.uX.endpoint + r.config().Dg.Gna) + r.platform.zm + "/cadmium/" + a.method; - h = r.json.stringify(h); - l = u.qa(q.Ma); - k = b.profile ? b.profile.id : void 0; - p = !Z[a.method]; - v = !!Z[a.method]; - t = a.method; - w = a.type; - t = "pblifecycle" == t && w && "stop" != w ? 1 : "manifest" === t && a.flavor === T.tc.oha(T.tc.vu.faa) ? 0 : "logblob" === t ? 1 : 3; - return { - IG: d, - method: f, - url: m, - body: h, - timeout: l, - WB: k, - M7a: p, - CP: v, - mN: !0, - D4: t, - kA: a.isExclusive }; - } - - function p(a, b) { - v.success = !1; - v.profileId = b.WB; - v.elapsedtime = r.gb.oe().qa(q.Ma) - v.starttime; - v.userTokens = JSON.stringify(r.Le.Le.getUserIdTokenKeys()); - v.subcode = a.errorSubCode || a.R; - v.extcode = a.errorExternalCode || a.ub; - n.error("BladeRunner command history", r.FB.uR(r.Fk)); - return r.json.stringify(r.Fk); - } - c = void 0 === c ? !1 : c; - g = void 0 === g ? !1 : g; - r = this; - b = this.kf.st({ - Za: this.p0a - }, b); - n = b.log; - u = q.ij(59); - v = { - method: a.method, - starttime: this.gb.oe().qa(q.Ma) - }; - this.Fk.push(v); - this.Fk.length > this.config().GNa && this.Fk.shift(); - n.trace("Sending EDGE request", { - Method: a.method - }); - return new Promise(function(a, b) { + return b.P7a(c, new q.UX()); + }).then(function(b) { var c; - c = k(); - f(c).then(function(b) { - a(b); - })["catch"](function(a) { - var c; - c = { - K: !1 - }; - r.kf.st(c, a, { - no: !0 - }); - c.__logs && (c.__logs = a.__logs); - b(c); - }); + c = a.Rd.encode(b.v6.data); + a.log.trace("Challenge generated", c); + b.close().subscribe(); + return c; + })["catch"](function(b) { + a.log.error("Failed to generate challenge for CAD token", b); }); }; - b.prototype.H_a = function(a) { - return 0 <= "manifest license start pblifecycle bind ping".split(" ").indexOf(a.method) ? "pblifecycle" === a.method && a.type && "suspend" !== a.type && "resume" !== a.type ? !1 : !0 : !1; - }; - b.u8 = function(a) { - var b, c, d; - b = {}; - c = a.errorExternalCode || a.ub; - d = a.errorDetails || a.za; - b.ErrorSubCode = a.errorSubCode || a.R || y.u.Vg; - c && (b.ErrorExternalCode = c); - d && (b.ErrorDetails = d); - return b; + b.prototype.dra = function() { + var a; + a = this; + return this.er().then(function(b) { + return (b = a.$i.rf.getServiceTokens(b.profile.id)) && b.find(function(a) { + return "cad" === a.name; + }); + }); }; - O = d = b; - O = d = f.__decorate([h.N(), f.__param(0, h.j(g.Pe)), f.__param(1, h.j(m.Ef)), f.__param(2, h.j(k.oj)), f.__param(3, h.j(F.hg)), f.__param(4, h.j(n.fl)), f.__param(5, h.j(r.eg)), f.__param(6, h.j(t.Wx)), f.__param(7, h.j(a.w$)), f.__param(8, h.j(w.OU)), f.__param(9, h.j(G.mK)), f.__param(10, h.j(x.Re)), f.__param(11, h.j(C.XC)), f.__param(12, h.j(N.hr)), f.__param(13, h.j(A.lf))], O); - c.uAa = O; - }, function(f, c, a) { - var b, d, h, l, g; - Object.defineProperty(c, "__esModule", { + a = b; + a = g.__decorate([c.N(), g.__param(0, c.l(h.wM)), g.__param(1, c.l(k.nj)), g.__param(2, c.l(f.je)), g.__param(3, c.l(l.sb)), g.__param(4, c.l(r.uw)), g.__param(5, c.l(n.lq))], a); + d.dEa = a; + }, function(g, d, a) { + var b, c; + Object.defineProperty(d, "__esModule", { value: !0 }); - f = a(0); - b = a(111); - d = a(671); - h = a(209); - l = a(351); - g = a(670); - c.Tk = new f.dc(function(a) { - a(b.Wx).NB(function() { - return t._cad_global.msl; - }); - a(h.ZT).to(d.uAa).Y(); - a(l.w$).to(g.tAa).Y(); + g = a(1); + b = a(394); + c = a(786); + d.xZa = new g.Vb(function(a) { + a(b.Xba).to(c.dEa).$(); }); - }, function(f, c, a) { - var d, h, l; + }, function(g, d, a) { + var c, h, k; function b(a) { - this.Oa = a; + this.Pa = a; } - Object.defineProperty(c, "__esModule", { + Object.defineProperty(d, "__esModule", { value: !0 }); - f = a(1); - d = a(0); - h = a(20); - l = a(7); - b.prototype.Y$a = function(a, b) { + g = a(0); + c = a(1); + h = a(23); + k = a(4); + b.prototype.wpb = function(a, b) { var c, d; c = parseFloat(a); d = 0; - "%" === a[a.length - 1] && this.Oa.ye(c) ? d = Math.round(c * b.qa(l.Ma) / 100) : (a = parseInt(a), this.Oa.Hn(a) && (d = a)); - return l.Cb(Math.min(d, b.qa(l.Ma))); + "%" === a[a.length - 1] && this.Pa.Af(c) ? d = Math.round(c * b.ma(k.Aa) / 100) : (a = parseInt(a), this.Pa.ap(a) && (d = a)); + return k.rb(Math.min(d, b.ma(k.Aa))); }; a = b; - a = f.__decorate([d.N(), f.__param(0, d.j(h.rd))], a); - c.tua = a; - }, function(f, c, a) { - var d, h; + a = g.__decorate([c.N(), g.__param(0, c.l(h.ve))], a); + d.RDa = a; + }, function(g, d, a) { + var c, h; function b(a) { this.config = a; } - Object.defineProperty(c, "__esModule", { + Object.defineProperty(d, "__esModule", { value: !0 }); - f = a(1); - d = a(0); - a = a(29); - b.prototype.O_ = function() { - return this.Zp().JNa; - }; - b.prototype.P_ = function() { - return this.Zp().KNa; + g = a(0); + c = a(1); + a = a(20); + b.prototype.n4 = function() { + return this.Ju().TYa; }; - b.prototype.AXa = function() { - return this.Zp().LNa; + b.prototype.o4 = function() { + return this.Ju().UYa; }; - b.prototype.E_ = function() { - return this.Zp().jga; + b.prototype.p9a = function() { + return this.Ju().VYa; }; - b.prototype.BXa = function() { - return this.Zp().MNa; + b.prototype.X3 = function() { + return this.Ju().Rma; }; - b.prototype.Zp = function() { + b.prototype.Ju = function() { return this.config(); }; h = b; - h = f.__decorate([d.N(), f.__param(0, d.j(a.Ef))], h); - c.sua = h; - }, function(f, c, a) { - var d, h, l, g, m, k; + h = g.__decorate([c.N(), g.__param(0, c.l(a.je))], h); + d.QDa = h; + }, function(g, d, a) { + var c, h, k, f, l, m; function b(a, b, c, d) { - this.pE = b; - this.Oa = c; - this.INa = d; - this.ca = a.Bb("Bookmark"); + this.LP = b; + this.Pa = c; + this.SYa = d; + this.ga = a.lb("Bookmark"); } - Object.defineProperty(c, "__esModule", { + Object.defineProperty(d, "__esModule", { value: !0 }); - f = a(1); - d = a(0); - h = a(353); - l = a(352); - g = a(12); - m = a(20); - k = a(7); - b.prototype.nX = function(a) { + g = a(0); + c = a(1); + h = a(396); + k = a(395); + f = a(7); + l = a(23); + m = a(4); + b.prototype.c0 = function(a) { var b; - b = a.Pb.playbackState ? a.Pb.playbackState.currentTime : void 0; - b = void 0 !== b ? k.Cb(b) : this.RWa(a.M); - return this.Oa.uf(b) ? (this.ca.info("Overriding bookmark", { - From: a.TB.qa(k.Ma), - To: b.qa(k.Ma) - }), (a.Pb.Qf || this.pE.BXa()) && this.ala(a) ? (this.ca.trace("Ignoring override bookmark since its too close to end"), k.ij(0)) : b) : this.d_a(a) ? (this.ca.trace("Ignoring bookmark because it's too close to beginning"), k.ij(0)) : this.ala(a) ? (this.ca.trace("Ignoring bookmark because it's too close to end"), k.ij(0)) : a.TB; + b = a.Ta.playbackState ? a.Ta.playbackState.currentTime : void 0; + b = void 0 !== b ? m.rb(b) : this.y8a(a.R); + return this.Pa.Zg(b) ? (this.ga.info("Overriding bookmark", { + From: a.FE.ma(m.Aa), + To: b.ma(m.Aa) + }), a.Ta.Ze && this.Rsa(a) ? (this.ga.trace("Ignoring override bookmark since its too close to end"), m.hh(0)) : b) : this.ybb(a) ? (this.ga.trace("Ignoring bookmark because it's too close to beginning"), m.hh(0)) : this.Rsa(a) ? (this.ga.trace("Ignoring bookmark because it's too close to end"), m.hh(0)) : a.FE; }; - b.prototype.d_a = function(a) { - return 0 > a.TB.Gk(this.O_(a)); + b.prototype.ybb = function(a) { + return 0 > a.FE.ql(this.n4(a)); }; - b.prototype.O_ = function(a) { - return this.kga(this.pE.O_(), a.bH); + b.prototype.n4 = function(a) { + return this.Sma(this.LP.n4(), a.eK); }; - b.prototype.ala = function(a) { - return 0 < a.TB.Gk(this.P_(a)); + b.prototype.Rsa = function(a) { + return 0 < a.FE.ql(this.o4(a)); }; - b.prototype.P_ = function(a) { + b.prototype.o4 = function(a) { var b; - b = a.Pb.Qf ? this.pE.AXa() : this.pE.P_(); - return a.bH.ie(this.kga(b, a.bH)); + b = a.Ta.Ze ? this.LP.p9a() : this.LP.o4(); + return a.eK.Gd(this.Sma(b, a.eK)); }; - b.prototype.RWa = function(a) { + b.prototype.y8a = function(a) { var b; - a = this.pE.E_()[a]; + a = this.LP.X3()[a]; b = -1; - this.Oa.Xg(a) ? b = parseInt(a) : this.Oa.ye(a) && (b = a); - if (this.Oa.Hn(b)) return k.Cb(b); + this.Pa.uh(a) ? b = parseInt(a) : this.Pa.Af(a) && (b = a); + if (this.Pa.ap(b)) return m.rb(b); }; - b.prototype.kga = function(a, b) { - return this.INa.Y$a(a, b); + b.prototype.Sma = function(a, b) { + return this.SYa.wpb(a, b); }; a = b; - a = f.__decorate([d.N(), f.__param(0, d.j(g.Jb)), f.__param(1, d.j(h.c7)), f.__param(2, d.j(m.rd)), f.__param(3, d.j(l.b7))], a); - c.uua = a; - }, function(f, c, a) { - var b, d, h, l, g, m; - Object.defineProperty(c, "__esModule", { - value: !0 - }); - f = a(0); - b = a(147); - d = a(353); - h = a(352); - l = a(675); - g = a(674); - m = a(673); - c.HNa = new f.dc(function(a) { - a(b.QI).to(l.uua).Y(); - a(d.c7).to(g.sua).Y(); - a(h.b7).to(m.tua).Y(); - }); - }, function(f, c) { + a = g.__decorate([c.N(), g.__param(0, c.l(f.sb)), g.__param(1, c.l(h.Rba)), g.__param(2, c.l(l.ve)), g.__param(3, c.l(k.Qba))], a); + d.SDa = a; + }, function(g, d, a) { + var b, c, h, k, f, l; + Object.defineProperty(d, "__esModule", { + value: !0 + }); + g = a(1); + b = a(217); + c = a(396); + h = a(395); + k = a(790); + f = a(789); + l = a(788); + d.L0 = new g.Vb(function(a) { + a(b.eM).to(k.SDa).$(); + a(c.Rba).to(f.QDa).$(); + a(h.Qba).to(l.RDa).$(); + }); + }, function(g, d) { function a(a) { var b; b = Error.call(this); @@ -86571,237 +91489,237 @@ v7AA.H22 = function() { this.name = "InvalidOperationError"; this.message = a; } - Object.defineProperty(c, "__esModule", { + Object.defineProperty(d, "__esModule", { value: !0 }); - oa(a, Error); - c.B9 = a; - }, function(f, c, a) { - var d, h, l, g; + ia(a, Error); + d.nea = a; + }, function(g, d, a) { + var c, h, k, f; function b(a) { - this.Oa = a; - this.KW = {}; - this.Tea = {}; - for (var b in d.dC) this.Oa.ye(parseInt(b)) && (this.Tea[d.dC[b]] = 1); + this.Pa = a; + this.z_ = {}; + this.dla = {}; + for (var b in c.VE) this.Pa.Af(parseInt(b)) && (this.dla[c.VE[b]] = 1); } - Object.defineProperty(c, "__esModule", { + Object.defineProperty(d, "__esModule", { value: !0 }); - f = a(1); - d = a(210); - h = a(677); - l = a(0); - a = a(20); + g = a(0); + c = a(218); + h = a(792); + k = a(1); + a = a(23); b.prototype.track = function(a) { var b; - if (this.Oa.Xg(a)) { - if (!this.Tea[a]) throw new h.B9("Cast Interaction type " + a + " is undefined."); + if (this.Pa.uh(a)) { + if (!this.dla[a]) throw new h.nea("Cast Interaction type " + a + " is undefined."); } else { - if (!this.Oa.ah(d.dC[a])) throw new h.B9("Cast Interaction type " + a + " is undefined."); - a = d.dC[a]; + if (!this.Pa.tl(c.VE[a])) throw new h.nea("Cast Interaction type " + a + " is undefined."); + a = c.VE[a]; } - b = this.KW[a]; - this.KW[a] = b ? b + 1 : 1; + b = this.z_[a]; + this.z_[a] = b ? b + 1 : 1; }; - g = b; - g = f.__decorate([l.N(), f.__param(0, l.j(a.rd))], g); - c.iva = g; - }, function(f, c, a) { - var b, d; - Object.defineProperty(c, "__esModule", { + f = b; + f = g.__decorate([k.N(), g.__param(0, k.l(a.ve))], f); + d.FEa = f; + }, function(g, d, a) { + var b, c; + Object.defineProperty(d, "__esModule", { value: !0 }); - f = a(0); - b = a(210); - d = a(678); - c.wM = new f.dc(function(a) { - a(b.q7).to(d.iva); + g = a(1); + b = a(218); + c = a(793); + d.TP = new g.Vb(function(a) { + a(b.gca).to(c.FEa); }); - }, function(f, c, a) { - var h, l, g; + }, function(g, d, a) { + var h, k, f; function b(a, b, c) { var d; d = this; - this.ca = a; + this.ga = a; this.valid = !0; - this.mN = !1; + this.V2 = !1; this.context = c.context; this.size = c.size; - this.Ig = b.create().then(function(a) { + this.ah = b.create().then(function(a) { d.storage = a; - return a.mG("mediacache").then(function(a) { + return a.sJ("mediacache").then(function(a) { d.keys = a; }); }); } - function d(a, b) { - this.si = a; - this.md = b; - this.dF = {}; + function c(a, b) { + this.af = a; + this.tf = b; + this.OH = {}; } - Object.defineProperty(c, "__esModule", { + Object.defineProperty(d, "__esModule", { value: !0 }); - f = a(1); - h = a(0); - l = a(12); - a = a(56); - d.prototype.IM = function(a) { - this.dF[a.context] = new b(this.si.Bb("DiskStorageContext"), this.md, a); - return this.dF[a.context]; - }; - g = d; - g = f.__decorate([h.N(), f.__param(0, h.j(l.Jb)), f.__param(1, h.j(a.fk))], g); - c.Iwa = g; + g = a(0); + h = a(1); + k = a(7); + a = a(53); + c.prototype.hQ = function(a) { + this.OH[a.context] = new b(this.af.lb("DiskStorageContext"), this.tf, a); + return this.OH[a.context]; + }; + f = c; + f = g.__decorate([h.N(), g.__param(0, h.l(k.sb)), g.__param(1, h.l(a.Xl))], f); + d.vGa = f; b.prototype.create = function(a, b, c, d) { - var g, f, h; - g = this; - f = this.getKey(a, b); - h = Date.now(); - this.Ig.then(function() { - g.keys[f] = void 0; - return g.storage.save(f, c, !1).then(function() { - g.ca.trace("create succeeded for " + f + ", " + (Date.now() - h) + " ms"); - d(g.iO(a, b)); + var f, g, k; + f = this; + g = this.getKey(a, b); + k = Date.now(); + this.ah.then(function() { + f.keys[g] = void 0; + return f.storage.save(g, c, !1).then(function() { + f.ga.trace("create succeeded for " + g + ", " + (Date.now() - k) + " ms"); + d(f.LR(a, b)); }); })["catch"](function(c) { - g.ca.trace("create failed", c); - d(g.Rs(a, b, c)); + f.ga.trace("create failed", c); + d(f.Ku(a, b, c)); }); }; b.prototype.append = function(a, b, c, d) { c = this.getKey(a, b); - this.ca.trace("append " + c); - d(this.Rs(a, b, "append is not supported")); + this.ga.trace("append " + c); + d(this.Ku(a, b, "append is not supported")); }; b.prototype.remove = function(a, b, c) { - var d, g, f; + var d, f, g; d = this; - g = this.getKey(a, b); - f = Date.now(); - this.Ig.then(function() { - if (d.keys.hasOwnProperty(g)) return delete d.keys[g], d.storage.remove(g).then(function() { - d.ca.trace("remove succeeded for " + g + ", " + (Date.now() - f) + " ms"); - c(d.iO(a, b)); + f = this.getKey(a, b); + g = Date.now(); + this.ah.then(function() { + if (d.keys.hasOwnProperty(f)) return delete d.keys[f], d.storage.remove(f).then(function() { + d.ga.trace("remove succeeded for " + f + ", " + (Date.now() - g) + " ms"); + c(d.LR(a, b)); }); - c(d.iO(a, b)); - })["catch"](function(g) { - d.ca.trace("remove failed", g); - c(d.Rs(a, b, g)); + c(d.LR(a, b)); + })["catch"](function(f) { + d.ga.trace("remove failed", f); + c(d.Ku(a, b, f)); }); }; - b.prototype.read = function(a, b, c, d, g) { - var f, h, m; - f = this; - h = this.getKey(a, b); - m = Date.now(); - 0 !== c || -1 != d ? g(this.Rs(a, b, "byteStart/byteEnd combination is not supported")) : this.Ig.then(function() { - if (f.keys.hasOwnProperty(h)) return f.storage.load(h).then(function(l) { - f.ca.trace("read succeeded for " + h + ", " + (Date.now() - m) + " ms"); - g(Object.assign(f.iO(a, b), { - value: l.value, - hlb: c, + b.prototype.read = function(a, b, c, d, f) { + var g, k, h; + g = this; + k = this.getKey(a, b); + h = Date.now(); + 0 !== c || -1 != d ? f(this.Ku(a, b, "byteStart/byteEnd combination is not supported")) : this.ah.then(function() { + if (g.keys.hasOwnProperty(k)) return g.storage.load(k).then(function(m) { + g.ga.trace("read succeeded for " + k + ", " + (Date.now() - h) + " ms"); + f(Object.assign(g.LR(a, b), { + value: m.value, + OBb: c, end: d })); }); - g(f.Rs(a, b, "Item doesn't exist")); + f(g.Ku(a, b, "Item doesn't exist")); })["catch"](function(c) { - f.ca.trace("read failed", c); - g(f.Rs(a, b, c)); + g.ga.trace("read failed", c); + f(g.Ku(a, b, c)); }); }; b.prototype.info = function(a) { var b; b = this; - this.ca.trace("info "); - this.Ig.then(function() { + this.ga.trace("info "); + this.ah.then(function() { var c; c = { values: {} }; c.values[b.context] = { entries: Object.keys(b.keys).reduce(function(a, c) { - c = b.q3(c); - a[c.TE] || (a[c.TE] = {}); - a[c.TE][c.ft] = { + c = b.t8(c); + a[c.BH] || (a[c.BH] = {}); + a[c.BH][c.Wu] = { size: 0 }; return a; }, {}), total: b.size, - Ftb: 0 + aJb: 0 }; a(c); })["catch"](function(c) { - b.ca.trace("info failed", c); - a(b.Rs(void 0, void 0, c)); + b.ga.trace("info failed", c); + a(b.Ku(void 0, void 0, c)); }); }; b.prototype.query = function(a, b, c) { - var d, g; + var d, f; d = this; - g = this.getKey(a, b || ""); - this.Ig.then(function() { + f = this.getKey(a, b || ""); + this.ah.then(function() { var a; a = Object.keys(d.keys).filter(function(a) { - return 0 === a.indexOf(g); + return 0 === a.indexOf(f); }).reduce(function(a, b) { - a[d.q3(b).ft] = { + a[d.t8(b).Wu] = { size: 0 }; return a; }, {}); - d.ca.trace("query succeeded for prefix " + b, a); + d.ga.trace("query succeeded for prefix " + b, a); c(a); })["catch"](function(a) { - d.ca.trace("query failed", a); + d.ga.trace("query failed", a); c({}); }); }; - b.prototype.o6 = function(a) { + b.prototype.Eo = function(a) { var b; b = this; - this.ca.trace("validate"); - this.Ig.then(function() { + this.ga.trace("validate"); + this.ah.then(function() { var c; c = Object.keys(b.keys).reduce(function(a, c) { - a[b.q3(c).ft] = { + a[b.t8(c).Wu] = { size: 0 }; return a; }, {}); a(c); })["catch"](function(c) { - b.ca.trace("validate failed", c); - a(b.Rs(void 0, void 0, c)); + b.ga.trace("validate failed", c); + a(b.Ku(void 0, void 0, c)); }); }; b.prototype.getKey = function(a, b) { return ["mediacache", this.context, a, b].join("."); }; - b.prototype.iO = function(a, b) { + b.prototype.LR = function(a, b) { return { - K: !0, - TE: void 0 === a ? "" : a, + S: !0, + BH: void 0 === a ? "" : a, key: void 0 === b ? "" : b, - ucb: 0, - Lh: this.size + fsb: 0, + ei: this.size }; }; - b.prototype.Rs = function(a, b, c) { + b.prototype.Ku = function(a, b, c) { return { - K: !1, + S: !1, error: c, - TE: void 0 === a ? "" : a, + BH: void 0 === a ? "" : a, key: void 0 === b ? "" : b, - ucb: 0, - Lh: this.size + fsb: 0, + ei: this.size }; }; - b.prototype.q3 = function(a) { + b.prototype.t8 = function(a) { var b, c; a = a.slice(a.indexOf(".") + 1); b = a.slice(a.indexOf(".") + 1); @@ -86809,56 +91727,56 @@ v7AA.H22 = function() { a = b.slice(0, c); b = b.slice(c + 1); return { - TE: a, - ft: b + BH: a, + Wu: b }; }; - c.Peb = b; - }, function(f, c, a) { - var d, h; + d.Wub = b; + }, function(g, d, a) { + var c, h; function b(a) { var b; b = this; - this.md = a; - this.md.create().then(function(a) { + this.tf = a; + this.tf.create().then(function(a) { b.storage = a; }); } - Object.defineProperty(c, "__esModule", { + Object.defineProperty(d, "__esModule", { value: !0 }); - f = a(1); - d = a(0); - a = a(56); + g = a(0); + c = a(1); + a = a(53); b.prototype.getData = function() { var a; a = this.storage; - return a ? a.BYa() : {}; + return a ? a.w$a() : {}; }; h = b; - h = f.__decorate([d.N(), f.__param(0, d.j(a.fk))], h); - c.Ota = h; - }, function(f, c, a) { - var d, h, l; + h = g.__decorate([c.N(), g.__param(0, c.l(a.Xl))], h); + d.dDa = h; + }, function(g, d, a) { + var c, h, k; function b(a) { - this.si = a; - this.tq = {}; - this.ca = this.si.Bb("MemoryStorage"); + this.af = a; + this.ds = {}; + this.ga = this.af.lb("MemoryStorage"); } - Object.defineProperty(c, "__esModule", { + Object.defineProperty(d, "__esModule", { value: !0 }); - f = a(1); - d = a(0); + g = a(0); + c = a(1); h = a(2); - a = a(12); + a = a(7); b.prototype.load = function(a) { var b; - if (this.tq.hasOwnProperty(a)) { - b = this.tq[a]; - this.ca.debug("Storage entry loaded", { + if (this.ds.hasOwnProperty(a)) { + b = this.ds[a]; + this.ga.debug("Storage entry loaded", { key: a }); return Promise.resolve({ @@ -86866,127 +91784,106 @@ v7AA.H22 = function() { value: b }); } - this.ca.debug("Storage entry not found", { + this.ga.debug("Storage entry not found", { key: a }); return Promise.reject({ - R: h.u.sj + T: h.H.dm }); }; b.prototype.save = function(a, b, c) { - if (c && this.tq.hasOwnProperty(a)) return Promise.resolve(!1); - this.tq[a] = b; + if (c && this.ds.hasOwnProperty(a)) return Promise.resolve(!1); + this.ds[a] = b; return Promise.resolve(!0); }; b.prototype.remove = function(a) { - delete this.tq[a]; + delete this.ds[a]; return Promise.resolve(); }; b.prototype.loadAll = function() { var a, b; a = this; - b = Object.keys(this.tq).map(function(b) { + b = Object.keys(this.ds).map(function(b) { return { key: b, - value: a.tq[b] + value: a.ds[b] }; }); return Promise.resolve(b); }; - b.prototype.mG = function(a) { + b.prototype.sJ = function(a) { var b; - b = Object.keys(this.tq).reduce(function(b, c) { + b = Object.keys(this.ds).reduce(function(b, c) { a && 0 !== c.indexOf(a) || (b[c] = void 0); return b; }, {}); return Promise.resolve(b); }; b.prototype.removeAll = function() { - this.tq = {}; + this.ds = {}; return Promise.resolve(); }; - l = b; - l = f.__decorate([d.N(), f.__param(0, d.j(a.Jb))], l); - c.jAa = l; - }, function(f, c) { - Object.defineProperty(c, "__esModule", { + k = b; + k = g.__decorate([c.N(), g.__param(0, c.l(a.sb))], k); + d.DKa = k; + }, function(g, d) { + Object.defineProperty(d, "__esModule", { value: !0 }); - c.Hva = "__default_rule_key__"; - }, function(f, c, a) { - var h, l, g, m, k, r, n, q, t, w, G, x, y, C; + d.vFa = "__default_rule_key__"; + }, function(g, d, a) { + var h, k, f, l, m, r, n, q; - function b(a, b, c, d, g, f, h, m, l) { - this.ca = a; + function b(a, b, c, d) { + this.ga = a; this.config = b; - this.b_a = c; - this.x2 = d; - this.Wd = g; - this.Cf = f; - this.FZ = h; - this.is = m; - this.zz = l; - this.Gj = { + this.wbb = c; + this.A7 = d; + this.Hn = { mem: { - storage: this.x2, - ad: this.dZ(), + storage: this.A7, + ac: this.roa(), key: "mem" } }; - this.mna = !1; - this.zo = this.config.zo; + this.vva = !1; + this.Gv = this.config.Gv; } - function d(a, b, c, d, g, f, h, m, l) { - this.si = a; - this.md = b; - this.x2 = c; + function c(a, b, c, d) { + this.af = a; + this.tf = b; + this.A7 = c; this.config = d; - this.Wd = g; - this.Cf = f; - this.FZ = h; - this.is = m; - this.zz = l; } - Object.defineProperty(c, "__esModule", { + Object.defineProperty(d, "__esModule", { value: !0 }); - f = a(1); - h = a(0); - l = a(2); - g = a(148); - m = a(12); - k = a(356); - r = a(683); - n = a(211); - q = a(47); - t = a(85); - w = a(151); - G = a(95); - x = a(58); - y = a(20); - a = a(355); - d.prototype.create = function() { - this.PE || (this.PE = this.qz()); - return this.PE; - }; - d.prototype.qz = function() { - this.rMa = new b(this.si.Bb("AppStorage"), this.config, this.md, this.x2, this.Wd, this.Cf, this.FZ, this.is, this.zz); - return this.rMa.create(); - }; - C = d; - C = f.__decorate([h.N(), f.__param(0, h.j(m.Jb)), f.__param(1, h.j(g.CT)), f.__param(2, h.j(k.s$)), f.__param(3, h.j(q.oj)), f.__param(4, h.j(t.Wq)), f.__param(5, h.j(G.xr)), f.__param(6, h.j(w.jJ)), f.__param(7, h.j(y.rd)), f.__param(8, h.j(a.R7))], C); - c.Nta = C; + g = a(0); + h = a(1); + k = a(2); + f = a(159); + l = a(7); + m = a(398); + r = a(798); + n = a(219); + a = a(52); + c.prototype.create = function() { + this.yH || (this.yH = this.TB()); + return this.yH; + }; + c.prototype.TB = function() { + this.DXa = new b(this.af.lb("AppStorage"), this.config, this.tf, this.A7); + return this.DXa.create(); + }; + q = c; + q = g.__decorate([h.N(), g.__param(0, h.l(l.sb)), g.__param(1, h.l(f.HX)), g.__param(2, h.l(m.efa)), g.__param(3, h.l(a.$l))], q); + d.cDa = q; b.prototype.create = function() { var a; a = this; - return Promise.all([this.LRa(), this.fSa()]).then(function(b) { - var c; - c = Na(b); - b = c.next().value; - c = c.next().value; - a.ccb(c); - if (!a.FOa(b, c, a.config.F0)) throw a.m3a(b, c); + return this.l2a().then(function(b) { + if (!a.QZa(b, a.config.w5)) throw a.Fgb(b); return a; }); }; @@ -86994,14 +91891,14 @@ v7AA.H22 = function() { var b; b = this; return new Promise(function(c, d) { - var g, f; - g = b.I_(a); - f = Date.now(); - g.storage.load(a).then(function(a) { - b.uh(g.key, "load", !0, f); + var f, g; + f = b.d4(a); + g = Date.now(); + f.storage.load(a).then(function(a) { + b.Sk(f.key, "load", !0, g); c(a); })["catch"](function(a) { - b.uh(g.key, "load", (a && (a.R || a.errorSubCode)) === l.u.sj, f); + b.Sk(f.key, "load", (a && (a.T || a.errorSubCode)) === k.H.dm, g); d(a); }); }); @@ -87009,16 +91906,16 @@ v7AA.H22 = function() { b.prototype.save = function(a, b, c) { var d; d = this; - return new Promise(function(g, f) { - var h, m; - h = d.I_(a); - m = Date.now(); - h.storage.save(a, b, c).then(function(a) { - d.uh(h.key, "save", !0, m); - g(a); - })["catch"](function(a) { - d.uh(h.key, "save", !1, m); + return new Promise(function(f, g) { + var k, h; + k = d.d4(a); + h = Date.now(); + k.storage.save(a, b, c).then(function(a) { + d.Sk(k.key, "save", !0, h); f(a); + })["catch"](function(a) { + d.Sk(k.key, "save", !1, h); + g(a); }); }); }; @@ -87026,14 +91923,14 @@ v7AA.H22 = function() { var b; b = this; return new Promise(function(c, d) { - var g, f; - g = b.I_(a); - f = Date.now(); - g.storage.remove(a).then(function() { - b.uh(g.key, "remove", !0, f); + var f, g; + f = b.d4(a); + g = Date.now(); + f.storage.remove(a).then(function() { + b.Sk(f.key, "remove", !0, g); c(); })["catch"](function(a) { - b.uh(g.key, "remove", !1, f); + b.Sk(f.key, "remove", !1, g); d(a); }); }); @@ -87042,437 +91939,305 @@ v7AA.H22 = function() { var a; a = this; return new Promise(function(b, c) { - var d, g; - a.n4("mem").then(function() { + var d; + a.yya("mem").then(function() { d = Date.now(); - return a.n4("idb"); - })["catch"](function(b) { - a.uh("idb", "removeAll", !1, d); - return Promise.reject(b); - }).then(function() { - a.uh("idb", "removeAll", !0, d); - g = Date.now(); - return a.n4("winfs"); + return a.yya("idb"); })["catch"](function(b) { - a.uh("winfs", "removeAll", !1, g); + a.Sk("idb", "removeAll", !1, d); return Promise.reject(b); }).then(function() { - a.uh("winfs", "removeAll", !1, g); + a.Sk("idb", "removeAll", !0, d); b(); })["catch"](function(b) { - a.ca.error("remove all failed"); + a.ga.error("remove all failed"); c(b); }); }); }; b.prototype.loadAll = function() { - var a, b, c, d; + var a, b, c; a = this; b = []; - return this.y1("mem").then(function(d) { + return this.jua("mem").then(function(d) { b = b.concat(d); c = Date.now(); - return a.y1("idb"); + return a.jua("idb"); })["catch"](function(b) { - a.Ola(b) || (a.uh("idb", "loadAll", !1, c), a.ca.error("IndexedDb.LoadAll exception", b)); + a.Ecb(b) || (a.Sk("idb", "loadAll", !1, c), a.ga.error("IndexedDb.LoadAll exception", b)); return []; - }).then(function(g) { - a.Wd.Ek.mq({ - kind: "playerStorageLoadAll", - keys: a.Wz(g), - storage: "idb" - }); - a.uh("idb", "loadAll", !0, c); - b = b.concat(a.rVa(g)); - d = Date.now(); - return a.y1("winfs"); - })["catch"](function(b) { - if (a.Ola(b)) return []; - a.uh("winfs", "loadAll", !1, d); - throw b; - }).then(function(c) { - a.Wd.Ek.mq({ - kind: "playerStorageLoadAll", - keys: a.Wz(c), - storage: "win" - }); - a.uh("winfs", "loadAll", !0, d); - return b = b.concat(c); + }).then(function(d) { + b = b.concat(d); + a.Sk("idb", "loadAll", !0, c); + return b; })["catch"](function(b) { - a.ca.error("load all failed", b); + a.ga.error("load all failed", b); throw b; }); }; - b.prototype.mG = function(a) { + b.prototype.sJ = function(a) { var b; b = this; return new Promise(function(c, d) { - var g, f; - b.Gj.winfs && d("loadKeys is not supported on WINFS"); - g = Date.now(); - f = b.Gj.idb; - f ? f.storage.mG(a).then(function(a) { - b.uh("idb", "loadKeys", !0, g); + var f, g; + f = Date.now(); + g = b.Hn.idb; + g ? g.storage.sJ(a).then(function(a) { + b.Sk("idb", "loadKeys", !0, f); c(a); })["catch"](function(a) { - b.uh("idb", "loadKeys", !1, g); - b.ca.error("loadKeys failed", a); + b.Sk("idb", "loadKeys", !1, f); + b.ga.error("loadKeys failed", a); d(a); }) : d("Storage is not available"); }); }; - b.prototype.BYa = function() { + b.prototype.w$a = function() { var a; a = { - memSubs: this.mna + memSubs: this.vva }; - this.Gj.idb && (a.idb = this.lka("idb")); - this.Gj.winfs && (a.winfs = this.lka("winfs")); + this.Hn.idb && (a.idb = this.x$a()); return a; }; - b.prototype.LRa = function() { + b.prototype.l2a = function() { var a; a = this; - return this.b_a.create().then(function(b) { - a.Gj.idb = { + return this.wbb.create().then(function(b) { + a.Hn.idb = { storage: b, - ad: a.dZ(), + ac: a.roa(), key: "idb" }; - return a.bPa(b); - })["catch"](function(b) { - a.mna = !0; - a.ca.error("idb failed to load", b); - a.Ama(b); - return b || { - R: l.u.Vg - }; - }); - }; - b.prototype.bPa = function(a) { - var b; - b = this; - return "function" !== typeof this.Wd.md.create ? Promise.resolve() : a.load("migrationComplete").then(function() { - return a.loadAll().then(function(c) { - var d; - d = c.filter(function(a) { - return a.key.startsWith("migrationComplete") || a.key.startsWith("vInfo"); - }); - return d.map(function(b) { - return function() { - return a.remove(b.key); - }; - }).reduce(function(a, b) { - return a.then(function() { - return b(); - }); - }, Promise.resolve()).then(function() { - d.length && b.n1a(d.length); - }); - })["catch"](function(a) { - b.ca.error("cleanupIdb exception", a); - b.zma(a); - }); - })["catch"](function(a) { - (a && (a.R || a.errorSubCode)) !== l.u.sj && (b.ca.error("cleanupIdb check exception", a), b.zma(a)); - }); - }; - b.prototype.fSa = function() { - var a; - a = this; - return Promise.resolve().then(function() { - if ("function" === typeof a.Wd.md.create) return a.Cf.mark(x.og.uta), a.Wd.md.create().then(function(b) { - a.Cf.mark(x.og.vta); - a.Gj.winfs = { - storage: b, - ad: a.dZ(), - key: "winfs" - }; - }); })["catch"](function(b) { - a.Cf.mark(x.og.sta); - a.ca.error("winfs storage open failed", b); - a.Ama(b); + a.vva = !0; + a.ga.error("idb failed to load", b); return b || { - errorSubCode: l.u.Vg + T: k.H.Sh }; }); }; - b.prototype.ccb = function(a) { - var b, c; - b = !1; - a ? c = x.og.tta : (b = !0, this.zo.vInfo = ["winfs"]); - this.FZ.set(b); - c && this.Cf.mark(c); - }; - b.prototype.FOa = function(a, b, c) { - return !a && !b || a && c && !b ? !0 : !1; + b.prototype.QZa = function(a, b) { + return !a || a && b ? !0 : !1; }; - b.prototype.m3a = function(a, b) { - var c; - c = ""; - a && (c += a.R); - b && (c += "-w" + b.errorSubCode); + b.prototype.Fgb = function(a) { + var b; + b = ""; + a && (b += a.T); return { - R: c + T: b }; }; - b.prototype.lka = function(a) { - var b, c, d; - b = this; - d = this.Gj[a]; - d && (c = n.vba.reduce(function(a, c) { - a[c] = b.CYa(d.ad[c]); - return a; + b.prototype.x$a = function() { + var a, b, c; + a = this; + c = this.Hn.idb; + c && (b = n.wha.reduce(function(b, d) { + b[d] = a.y$a(c.ac[d]); + return b; }, {})); - return c; + return b; }; - b.prototype.CYa = function(a) { + b.prototype.y$a = function(a) { return { count: a.count, - succ: a.Ora, + succ: a.PAa, total: a.total, max: a.max }; }; - b.prototype.n4 = function(a) { - return (a = this.Gj[a]) ? a.storage.removeAll() : Promise.resolve(); + b.prototype.yya = function(a) { + return (a = this.Hn[a]) ? a.storage.removeAll() : Promise.resolve(); }; - b.prototype.y1 = function(a) { - return (a = this.Gj[a]) ? a.storage.loadAll() : Promise.resolve([]); + b.prototype.jua = function(a) { + return (a = this.Hn[a]) ? a.storage.loadAll() : Promise.resolve([]); }; - b.prototype.xVa = function(a) { - for (var b in this.zo) - if (a.startsWith(b)) return this.zo[b]; - return this.zo[r.Hva]; + b.prototype.d7a = function(a) { + for (var b in this.Gv) + if (a.startsWith(b)) return this.Gv[b]; + return this.Gv[r.vFa]; }; - b.prototype.I_ = function(a) { + b.prototype.d4 = function(a) { var b, c; b = this; - this.xVa(a).every(function(a) { - return b.Gj[a] ? (c = b.Gj[a], !1) : !0; - }); - c || (this.ca.error("component not found for storageKey", { - P$a: a, - Tkb: Object.keys(this.Gj), - rules: this.zo - }), c = this.Gj.mem); - this.ca.trace("component found for key", { + this.d7a(a).every(function(a) { + return b.Hn[a] ? (c = b.Hn[a], !1) : !0; + }); + c || (this.ga.error("component not found for storageKey", { + npb: a, + GBb: Object.keys(this.Hn), + rules: this.Gv + }), c = this.Hn.mem); + this.ga.trace("component found for key", { storageKey: a, componentKey: c.key }); return c; }; - b.prototype.dZ = function() { - return n.vba.reduce(function(a, b) { + b.prototype.roa = function() { + return n.wha.reduce(function(a, b) { a[b] = { count: 0, total: 0, - Ora: 0, + PAa: 0, max: 0 }; return a; }, {}); }; - b.prototype.uh = function(a, b, c, d) { + b.prototype.Sk = function(a, b, c, d) { d = Date.now() - d; - if (a = this.Gj[a]) b = a.ad[b], b.count++, c && (b.Ora++, b.total += d, d > b.max && (b.max = d)); - }; - b.prototype.Wz = function(a) { - return this.is.Gn(a) ? a.map(function(a) { - return a.key; - }) : void 0; - }; - b.prototype.Ola = function(a) { - return (a && (a.R || a.errorSubCode)) === l.u.sj; + if (a = this.Hn[a]) b = a.ac[b], b.count++, c && (b.PAa++, b.total += d, d > b.max && (b.max = d)); }; - b.prototype.rVa = function(a) { - return a && this.zo.Itb ? a.filter(function(a) { - return a && a.key && !a.key.startsWith("vInfo"); - }) : a; + b.prototype.Ecb = function(a) { + return (a && (a.T || a.errorSubCode)) === k.H.dm; }; - b.prototype.Ama = function(a) { - this.Wd.Ek.mq({ - kind: "playerStorageCreateError", - code: this.zz.vZ(a), - error: this.zz.Ema(a) - }); - }; - b.prototype.zma = function(a) { - this.Wd.Ek.mq({ - kind: "playerStorageCleanupError", - code: this.zz.vZ(a), - error: this.zz.Ema(a) - }); - }; - b.prototype.n1a = function(a) { - this.Wd.Ek.mq({ - kind: "playerStorageCleanupCountError", - count: a - }); - }; - c.L6 = b; - }, function(f, c, a) { - var d, h; + d.Aba = b; + }, function(g, d, a) { + var c, h; function b(a) { this.config = a; } - Object.defineProperty(c, "__esModule", { + Object.defineProperty(d, "__esModule", { value: !0 }); - f = a(1); - d = a(0); - a = a(47); - pa.Object.defineProperties(b.prototype, { + g = a(0); + c = a(1); + a = a(52); + na.Object.defineProperties(b.prototype, { timeout: { configurable: !0, enumerable: !0, get: function() { - return this.config.E5; + return this.config.W$; } }, enabled: { configurable: !0, enumerable: !0, get: function() { - return this.config.Xra; + return this.config.$Aa; } } }); h = b; - h = f.__decorate([d.N(), f.__param(0, d.j(a.oj))], h); - c.uva = h; - }, function(f, c, a) { - var d, h, l, g, m; + h = g.__decorate([c.N(), g.__param(0, c.l(a.$l))], h); + d.ZEa = h; + }, function(g, d, a) { + var c, h, k, f, l; function b(a, b) { - a = l.we.call(this, a) || this; + a = k.Yd.call(this, a, "IndexedDBConfigImpl") || this; a.config = b; a.version = 1; - a.Fw = "namedatapairs"; - a.Hj = "IndexedDBConfigImpl"; + a.Ry = "namedatapairs"; return a; } - Object.defineProperty(c, "__esModule", { + Object.defineProperty(d, "__esModule", { value: !0 }); - f = a(1); - d = a(0); - h = a(54); - l = a(53); - g = a(47); - a = a(39); - oa(b, l.we); - pa.Object.defineProperties(b.prototype, { + g = a(0); + c = a(1); + h = a(35); + k = a(38); + f = a(52); + a = a(26); + ia(b, k.Yd); + na.Object.defineProperties(b.prototype, { name: { configurable: !0, enumerable: !0, get: function() { - return "netflix.player" + (this.config.Jl ? "Test" : ""); + return "netflix.player" + (this.config.Hm ? "Test" : ""); } }, timeout: { configurable: !0, enumerable: !0, get: function() { - return this.config.E5; + return this.config.W$; } }, - RE: { + zP: { configurable: !0, enumerable: !0, get: function() { - return this.config.RE; + return this.config.zP; } }, - hM: { - configurable: !0, - enumerable: !0, - get: function() { - return this.config.hM; - } - }, - r5: { + I$: { configurable: !0, enumerable: !0, get: function() { return 0; } }, - OH: { + VK: { configurable: !0, enumerable: !0, get: function() { return 0; } }, - dja: { + zqa: { configurable: !0, enumerable: !0, get: function() { return !0; } - }, - jja: { - configurable: !0, - enumerable: !0, - get: function() { - return !1; - } } }); - m = b; - f.__decorate([h.config(h.rI, "simulateIdbOpenError")], m.prototype, "r5", null); - f.__decorate([h.config(h.rI, "simulateIdbLoadAllError")], m.prototype, "OH", null); - f.__decorate([h.config(h.We, "fixInvalidDatabase")], m.prototype, "dja", null); - f.__decorate([h.config(h.We, "forceDeleteCruftyDatabase")], m.prototype, "jja", null); - m = f.__decorate([d.N(), f.__param(0, d.j(a.nk)), f.__param(1, d.j(g.oj))], m); - c.Sya = m; - }, function(f, c, a) { - var h, l, g; + l = b; + g.__decorate([h.config(h.Qv, "simulateIdbOpenError")], l.prototype, "I$", null); + g.__decorate([h.config(h.Qv, "simulateIdbLoadAllError")], l.prototype, "VK", null); + g.__decorate([h.config(h.le, "fixInvalidDatabase")], l.prototype, "zqa", null); + l = g.__decorate([c.N(), g.__param(0, c.l(a.Fi)), g.__param(1, c.l(f.$l))], l); + d.UIa = l; + }, function(g, d, a) { + var h, k, f; function b(a, b, c) { this.config = a; - this.kH = b; - this.zq = c; + this.Jk = b; + this.ms = c; } - function d(a, b) { + function c(a, b) { this.reason = a; this.cause = b; } - Object.defineProperty(c, "__esModule", { + Object.defineProperty(d, "__esModule", { value: !0 }); h = a(2); - l = a(125); + k = a(70); (function(a) { - a[a.hU = 0] = "NoData"; + a[a.dY = 0] = "NoData"; a[a.Error = 1] = "Error"; - a[a.Du = 2] = "Timeout"; - }(g = c.fEa || (c.fEa = {}))); + a[a.Fw = 2] = "Timeout"; + }(f = d.lOa || (d.lOa = {}))); b.prototype.load = function(a) { var b; b = this; return new Promise(function(c, d) { - b.vN("get", !1, a).then(function(b) { + b.aR("get", !1, a).then(function(b) { c({ key: a, value: b }); })["catch"](function(a) { var b; - b = h.u.kba; + b = h.H.kha; switch (a.reason) { - case g.hU: - b = h.u.sj; + case f.dY: + b = h.H.dm; break; - case g.Du: - b = h.u.IEa; + case f.Fw: + b = h.H.TOa; } d({ - R: b, + T: b, cause: a.cause }); }); @@ -87481,21 +92246,21 @@ v7AA.H22 = function() { b.prototype.save = function(a, b, c) { var d; d = this; - return new Promise(function(f, m) { - d.vN(c ? "add" : "put", !0, { + return new Promise(function(g, k) { + d.aR(c ? "add" : "put", !0, { name: a, data: b }).then(function() { - f(!c); + g(!c); })["catch"](function(a) { var b; - b = h.u.nba; + b = h.H.nha; switch (a.reason) { - case g.Du: - b = h.u.LEa; + case f.Fw: + b = h.H.WOa; } - m({ - R: b, + k({ + T: b, cause: a.cause }); }); @@ -87505,17 +92270,17 @@ v7AA.H22 = function() { var b; b = this; return new Promise(function(c, d) { - b.vN("delete", !0, a).then(function() { + b.aR("delete", !0, a).then(function() { c(); })["catch"](function(a) { var b; - b = h.u.IU; + b = h.H.DY; switch (a.reason) { - case g.Du: - b = h.u.iba; + case f.Fw: + b = h.H.iha; } d({ - R: b, + T: b, cause: a.cause }); }); @@ -87525,17 +92290,17 @@ v7AA.H22 = function() { var a; a = this; return new Promise(function(b, c) { - a.vN("clear", !0, "").then(function() { + a.aR("clear", !0, "").then(function() { b(); })["catch"](function(a) { var b; - b = h.u.IU; + b = h.H.DY; switch (a.reason) { - case g.Du: - b = h.u.iba; + case f.Fw: + b = h.H.iha; } c({ - R: b, + T: b, cause: a.cause }); }); @@ -87544,159 +92309,157 @@ v7AA.H22 = function() { b.prototype.loadAll = function() { var a; a = this; - return this.kH.dx(this.config.timeout, new Promise(function(b, c) { - var f, h, m; - if (a.config.OH) c(new d(a.config.OH)); + return this.Jk.Ml(this.config.timeout, new Promise(function(b, d) { + var g, k, h; + if (a.config.VK) d(new c(a.config.VK)); else { - f = []; - h = a.zq.transaction(a.config.Fw, "readonly"); - m = h.objectStore(a.config.Fw).openCursor(); - h.onerror = function() { - c(new d(g.Error, m.error)); + g = []; + k = a.ms.transaction(a.config.Ry, "readonly"); + h = k.objectStore(a.config.Ry).openCursor(); + k.onerror = function() { + d(new c(f.Error, h.error)); }; - m.onsuccess = function(a) { + h.onsuccess = function(a) { if (a = a.target.result) try { - f.push({ + g.push({ key: a.value.name, value: a.value.data }); a["continue"](); - } catch (G) { - c(new d(g.Error, G)); - } else b(f); + } catch (w) { + d(new c(f.Error, w)); + } else b(g); }; - m.onerror = function() { - c(new d(g.Error, m.error)); + h.onerror = function() { + d(new c(f.Error, h.error)); }; } }))["catch"](function(a) { - return a instanceof l.ly ? Promise.reject(new d(g.Du, a)) : a instanceof d ? Promise.reject(a) : Promise.reject(new d(g.Error, a)); + return a instanceof k.sn ? Promise.reject(new c(f.Fw, a)) : a instanceof c ? Promise.reject(a) : Promise.reject(new c(f.Error, a)); }); }; - b.prototype.mG = function(a) { + b.prototype.sJ = function(a) { var b; b = this; - return this.kH.dx(this.config.timeout, new Promise(function(c, f) { - var h, m, l; - if (b.config.OH) f(new d(b.config.OH)); + return this.Jk.Ml(this.config.timeout, new Promise(function(d, g) { + var k, h, m; + if (b.config.VK) g(new c(b.config.VK)); else { - h = {}; - m = b.zq.transaction(b.config.Fw, "readonly"); - l = m.objectStore(b.config.Fw).openKeyCursor(a ? IDBKeyRange.lowerBound(a) : void 0); - m.onerror = function() { - f(new d(g.Error, l.error)); + k = {}; + h = b.ms.transaction(b.config.Ry, "readonly"); + m = h.objectStore(b.config.Ry).openKeyCursor(a ? IDBKeyRange.lowerBound(a) : void 0); + h.onerror = function() { + g(new c(f.Error, m.error)); }; - l.onsuccess = function(b) { - var m, l; + m.onsuccess = function(b) { + var h, m; try { - m = b.target.result; - if (m) { - l = m.key; - a && 0 !== l.indexOf(a) ? c(h) : (h[l] = void 0, m["continue"]()); - } else c(h); - } catch (C) { - f(new d(g.Error, C)); + h = b.target.result; + if (h) { + m = h.key; + a && 0 !== m.indexOf(a) ? d(k) : (k[m] = void 0, h["continue"]()); + } else d(k); + } catch (E) { + g(new c(f.Error, E)); } }; - l.onerror = function() { - f(new d(g.Error, l.error)); + m.onerror = function() { + g(new c(f.Error, m.error)); }; } }))["catch"](function(a) { - return a instanceof l.ly ? Promise.reject(new d(g.Du, a)) : a instanceof d ? Promise.reject(a) : Promise.reject(new d(g.Error, a)); + return a instanceof k.sn ? Promise.reject(new c(f.Fw, a)) : a instanceof c ? Promise.reject(a) : Promise.reject(new c(f.Error, a)); }); }; - b.prototype.vN = function(a, b, c) { - var f; - f = this; - return this.kH.dx(this.config.timeout, new Promise(function(h, m) { - var l, k; - l = f.zq.transaction(f.config.Fw, b ? "readwrite" : "readonly"); - k = l.objectStore(f.config.Fw)[a](c); - l.onerror = function() { - m(new d(g.Error, k.error)); + b.prototype.aR = function(a, b, d) { + var g; + g = this; + return this.Jk.Ml(this.config.timeout, new Promise(function(k, h) { + var m, l; + m = g.ms.transaction(g.config.Ry, b ? "readwrite" : "readonly"); + l = m.objectStore(g.config.Ry)[a](d); + m.onerror = function() { + h(new c(f.Error, l.error)); }; - k.onsuccess = function(b) { - var c; + l.onsuccess = function(b) { + var d; if ("get" == a) try { - c = b.target.result; - c ? h(c.data) : m(new d(g.hU)); - } catch (C) { - m(new d(g.hU, C)); - } else h(); + d = b.target.result; + d ? k(d.data) : h(new c(f.dY)); + } catch (E) { + h(new c(f.dY, E)); + } else k(); }; - k.onerror = function() { - m(new d(g.Error, k.error)); + l.onerror = function() { + h(new c(f.Error, l.error)); }; }))["catch"](function(a) { - return a instanceof l.ly ? Promise.reject(new d(g.Du, a)) : a instanceof d ? Promise.reject(a) : Promise.reject(new d(g.Error, a)); + return a instanceof k.sn ? Promise.reject(new c(f.Fw, a)) : a instanceof c ? Promise.reject(a) : Promise.reject(new c(f.Error, a)); }); }; - c.Rya = b; - }, function(f, c, a) { - var l, g, m, k, r, n, q, t, w, G, x, y, C; + d.TIa = b; + }, function(g, d, a) { + var k, f, l, m, r, n, q, v, t, w, D, z; - function b(a, b, c, d, g, f) { + function b(a, b, c, d, f, g) { this.config = b; - this.xz = c; - this.md = d; - this.Ccb = g; - this.Cf = f; - this.ca = a.Bb(n.MU); + this.DH = c; + this.tf = d; + this.osb = f; + this.Qk = g; + this.ga = a.lb(n.HY); } - function d(a, b) { + function c(a, b) { this.config = a; - this.Rq = b; + this.Es = b; } - function h(a, b, c, d, g, f) { + function h(a, b, c, d, f) { this.config = b; - this.Rq = c; - this.Cf = g; - this.Wd = f; - this.ca = a.Bb(n.MU); - this.xz = new Promise(function(a, b) { + this.Es = c; + this.Qk = f; + this.ga = a.lb(n.HY); + this.DH = new Promise(function(a, b) { var c; try { c = d(); c ? a(c) : b({ - R: r.u.S8 + T: r.H.Eda }); - } catch (D) { + } catch (ga) { b({ - R: r.u.CJ, - cause: D + T: r.H.PM, + cause: ga }); } }); } - Object.defineProperty(c, "__esModule", { + Object.defineProperty(d, "__esModule", { value: !0 }); - f = a(1); - l = a(0); - g = a(12); - m = a(687); - k = a(149); + g = a(0); + k = a(1); + f = a(7); + l = a(802); + m = a(160); r = a(2); - n = a(359); - q = a(360); - t = a(125); - w = a(56); - G = a(95); - x = a(148); - y = a(58); - a = a(85); + n = a(401); + q = a(402); + v = a(70); + t = a(53); + w = a(117); + D = a(159); + z = a(61); h.prototype.create = function() { - this.nZ || (this.nZ = this.qz()); - return this.nZ; + this.e2 || (this.e2 = this.TB()); + return this.e2; }; - h.prototype.ym = function(a) { + h.prototype.Nn = function(a) { var b; b = this; - this.nZ = null; - return this.Rq.dx(this.config.timeout, new Promise(function(c, d) { + this.e2 = null; + return this.Es.Ml(this.config.timeout, new Promise(function(c, d) { a.close(); b["delete"](a.name).then(function() { c(); @@ -87704,10 +92467,10 @@ v7AA.H22 = function() { d(a); }); }))["catch"](function(a) { - return a instanceof t.ly ? Promise.reject({ - R: r.u.CJ - }) : a.R ? Promise.reject(a) : Promise.reject({ - R: r.u.CJ, + return a instanceof v.sn ? Promise.reject({ + T: r.H.PM + }) : a.T ? Promise.reject(a) : Promise.reject({ + T: r.H.PM, cause: a }); }); @@ -87715,17 +92478,17 @@ v7AA.H22 = function() { h.prototype["delete"] = function(a) { var b; b = this; - return this.Rq.dx(this.config.timeout, new Promise(function(c, d) { - b.xz.then(function(b) { - var g; - g = b.deleteDatabase(a); - g.onsuccess = function() { + return this.Es.Ml(this.config.timeout, new Promise(function(c, d) { + b.DH.then(function(b) { + var f; + f = b.deleteDatabase(a); + f.onsuccess = function() { c(); }; - g.onerror = function() { + f.onerror = function() { d({ - R: r.u.CJ, - cause: g.error + T: r.H.PM, + cause: f.error }); }; })["catch"](function(a) { @@ -87733,146 +92496,140 @@ v7AA.H22 = function() { }); })); }; - h.prototype.qz = function() { + h.prototype.TB = function() { var a, b; a = this; - return this.Rq.dx(this.config.timeout, new Promise(function(c, d) { - a.config.r5 ? d({ - R: a.config.r5 - }) : a.xz.then(function(g) { - a.Cf.mark(y.og.cya); - (b = g.open(a.config.name, a.config.version)) ? (b.onblocked = function() { - a.Cf.mark(y.og.$xa); + return this.Es.Ml(this.config.timeout, new Promise(function(c, d) { + a.config.I$ ? d({ + T: a.config.I$ + }) : a.DH.then(function(f) { + a.Qk.mark(z.qj.fIa); + (b = f.open(a.config.name, a.config.version)) ? (b.onblocked = function() { + a.Qk.mark(z.qj.cIa); d({ - R: r.u.Wxa + T: r.H.ZHa }); }, b.onupgradeneeded = function() { var c; - a.Cf.mark(y.og.jya); - a.Wd.Ek.Uj("DebugEvent", { - kind: "playerStorageUpgradeNeeded" - }); + a.Qk.mark(z.qj.mIa); c = b.result; try { - c.createObjectStore(a.config.Fw, { + c.createObjectStore(a.config.Ry, { keyPath: "name" }); - } catch (B) { - a.ca.error("Exception while creating object store", B); + } catch (Y) { + a.ga.error("Exception while creating object store", Y); } - }, b.onsuccess = function(f) { - var h, m; - a.Cf.mark(y.og.iya); + }, b.onsuccess = function(g) { + var k, h; + a.Qk.mark(z.qj.lIa); try { - h = f.target.result; - m = h.objectStoreNames.length; - a.ca.trace("objectstorenames length ", m); - if (0 === m) { - a.ca.error("invalid indexedDb state, deleting"); - a.Cf.mark(y.og.bya); + k = g.target.result; + h = k.objectStoreNames.length; + a.ga.trace("objectstorenames length ", h); + if (0 === h) { + a.ga.error("invalid indexedDb state, deleting"); + a.Qk.mark(z.qj.eIa); try { - h.close(); - } catch (V) {} - g.deleteDatabase(a.config.name); + k.close(); + } catch (ga) {} + f.deleteDatabase(a.config.name); setTimeout(function() { d({ - R: r.u.Vxa + T: r.H.YHa }); }, 1); return; } - } catch (V) { - a.ca.error("Exception while inspecting indexedDb objectstorenames", V); + } catch (ga) { + a.ga.error("Exception while inspecting indexedDb objectstorenames", ga); } c(b.result); }, b.onerror = function() { - a.Cf.mark(y.og.aya); - a.ca.error("IndexedDB open error", b.error); + a.Qk.mark(z.qj.dIa); + a.ga.error("IndexedDB open error", b.error); d({ - R: r.u.Xxa, + T: r.H.$Ha, cause: b.error }); }) : d({ - R: r.u.T8 + T: r.H.Fda }); })["catch"](function(a) { d(a); }); }))["catch"](function(c) { - if (c instanceof t.ly) { + if (c instanceof v.sn) { try { - b && b.readyState && a.Cf.mark("readyState-" + b.readyState); - } catch (ca) {} - if (a.config.hM && b && "done" === b.readyState) { - if (a.ycb(b)) return a.Cf.mark(y.og.gya), Promise.resolve(b.result); - a.Cf.mark(y.og.fya); + b && b.readyState && a.Qk.mark("readyState-" + b.readyState); + } catch (la) {} + if (a.config.zP && b && "done" === b.readyState) { + if (a.ksb(b)) return a.Qk.mark(z.qj.jIa), Promise.resolve(b.result); + a.Qk.mark(z.qj.iIa); } - a.Cf.mark(y.og.eya); + a.Qk.mark(z.qj.hIa); return Promise.reject({ - R: r.u.Zxa + T: r.H.bIa }); } - if (c.R) return Promise.reject(c); - a.Cf.mark(y.og.dya); - a.ca.error("IndexedDB open exception occurred", c); + if (c.T) return Promise.reject(c); + a.Qk.mark(z.qj.gIa); + a.ga.error("IndexedDB open exception occurred", c); return Promise.reject({ - R: r.u.Yxa, + T: r.H.aIa, cause: c }); }); }; - h.prototype.ycb = function(a) { + h.prototype.ksb = function(a) { try { return 0 < a.result.objectStoreNames.length; - } catch (N) { - this.Cf.mark(y.og.hya); - this.ca.error("failed to check open request state", N); + } catch (P) { + this.Qk.mark(z.qj.kIa); + this.ga.error("failed to check open request state", P); } return !1; }; - C = h; - C = f.__decorate([l.N(), f.__param(0, l.j(g.Jb)), f.__param(1, l.j(q.EJ)), f.__param(2, l.j(t.aK)), f.__param(3, l.j(k.R8)), f.__param(4, l.j(G.xr)), f.__param(5, l.j(a.Wq))], C); - c.Txa = C; - d.prototype.create = function(a) { - return Promise.resolve(new m.Rya(this.config, this.Rq, a)); - }; - k = d; - k = f.__decorate([l.N(), f.__param(0, l.j(q.EJ)), f.__param(1, l.j(t.aK))], k); - c.Tya = k; + a = h; + a = g.__decorate([k.N(), g.__param(0, k.l(f.sb)), g.__param(1, k.l(q.RM)), g.__param(2, k.l(v.tA)), g.__param(3, k.l(m.Dda)), g.__param(4, k.l(w.Hw))], a); + d.WHa = a; + c.prototype.create = function(a) { + return Promise.resolve(new l.TIa(this.config, this.Es, a)); + }; + a = c; + a = g.__decorate([k.N(), g.__param(0, k.l(q.RM)), g.__param(1, k.l(v.tA))], a); + d.VIa = a; b.prototype.create = function() { if (this.storage) return Promise.resolve(this.storage); - this.PE || (this.PE = this.qz(this.Ccb)); - return this.PE; + this.yH || (this.yH = this.TB(this.osb)); + return this.yH; }; - b.prototype.qz = function(a) { + b.prototype.TB = function(a) { var b; a = void 0 === a ? [] : a; b = this; return new Promise(function(c, d) { - b.Cf.mark(y.og.BEa); - b.xz.create().then(function(g) { - b.md.create(g).then(function(f) { + b.Qk.mark(z.qj.NOa); + b.DH.create().then(function(f) { + b.tf.create(f).then(function(g) { Promise.all(a.map(function(a) { - return a.o6(f); + return a.Eo(g); })).then(function() { - b.storage = f; - b.config.jja && b.xz["delete"](b.config.RE)["catch"](function() { - b.ca.trace("Failed to force delete the crufty database: " + b.config.RE); - }); + b.storage = g; c(b.storage); })["catch"](function(a) { - b.ca.debug("DB validation failed, cause: " + a); - b.config.dja ? (b.ca.debug("Fixing corrupt DB"), b.xz.ym(g).then(function() { - b.ca.error("Invalid database deleted, creating new database."); - b.qz().then(function(a) { - b.ca.error("Invalid database successfully recreated."); + b.ga.debug("DB validation failed, cause: " + a); + b.config.zqa ? (b.ga.debug("Fixing corrupt DB"), b.DH.Nn(f).then(function() { + b.ga.error("Invalid database deleted, creating new database."); + b.TB().then(function(a) { + b.ga.error("Invalid database successfully recreated."); b.storage = a; c(b.storage); }); })["catch"](function(a) { - b.ca.error("Couldn't delete invalid database."); + b.ga.error("Couldn't delete invalid database."); d(a); - })) : (b.ca.debug("Ignoring invalid DB due to config"), b.storage = f, c(b.storage)); + })) : (b.ga.debug("Ignoring invalid DB due to config"), b.storage = g, c(b.storage)); }); })["catch"](function(a) { d(a); @@ -87882,45 +92639,45 @@ v7AA.H22 = function() { }); }); }; - k = b; - k = f.__decorate([l.N(), f.__param(0, l.j(g.Jb)), f.__param(1, l.j(q.EJ)), f.__param(2, l.j(x.Q8)), f.__param(3, l.j(x.y9)), f.__param(4, l.tt(w.wba)), f.__param(5, l.j(G.xr))], k); - c.Uya = k; - }, function(f, c, a) { - var d, h, l; + a = b; + a = g.__decorate([k.N(), g.__param(0, k.l(f.sb)), g.__param(1, k.l(q.RM)), g.__param(2, k.l(D.Cda)), g.__param(3, k.l(D.iea)), g.__param(4, k.Iy(t.xha)), g.__param(5, k.l(w.Hw))], a); + d.WIa = a; + }, function(g, d, a) { + var c, h, k; function b(a) { - this.zq = a; + this.ms = a; } - Object.defineProperty(c, "__esModule", { + Object.defineProperty(d, "__esModule", { value: !0 }); - f = a(1); - d = a(0); + g = a(0); + c = a(1); h = a(2); - a = a(149); + a = a(160); b.prototype.load = function(a) { var b; b = this; return new Promise(function(c, d) { - var g, f; + var f, g; try { - g = b.zq.getItem(a); - if (g) { - f = g; - if ("{" === g[0]) try { - f = JSON.parse(g) || g; - } catch (z) {} + f = b.ms.getItem(a); + if (f) { + g = f; + if ("{" === f[0]) try { + g = JSON.parse(f) || f; + } catch (v) {} c({ key: a, - value: f + value: g }); } else d({ - R: h.u.sj + T: h.H.dm }); - } catch (z) { + } catch (v) { d({ - R: h.u.kba, - cause: z + T: h.H.kha, + cause: v }); } }); @@ -87928,15 +92685,15 @@ v7AA.H22 = function() { b.prototype.save = function(a, b, c) { var d; d = this; - return new Promise(function(g, f) { - if (c && d.zq.getItem(a)) g(!1); + return new Promise(function(f, g) { + if (c && d.ms.getItem(a)) f(!1); else try { - "string" === typeof b ? d.zq.setItem(a, b) : d.zq.setItem(a, JSON.stringify(b)); - g(!0); - } catch (z) { - f({ - R: h.u.nba, - cause: z + "string" === typeof b ? d.ms.setItem(a, b) : d.ms.setItem(a, JSON.stringify(b)); + f(!0); + } catch (v) { + g({ + T: h.H.nha, + cause: v }); } }); @@ -87946,11 +92703,11 @@ v7AA.H22 = function() { b = this; return new Promise(function(c, d) { try { - b.zq.removeItem(a); + b.ms.removeItem(a); c(); } catch (u) { d({ - R: h.u.IU, + T: h.H.DY, cause: u }); } @@ -87959,47 +92716,47 @@ v7AA.H22 = function() { b.prototype.loadAll = function() { return Promise.reject("Not supported"); }; - b.prototype.mG = function() { + b.prototype.sJ = function() { return Promise.reject("Not supported"); }; b.prototype.removeAll = function() { return Promise.reject("Not supported"); }; - l = b; - l = f.__decorate([d.N(), f.__param(0, d.j(a.MAa))], l); - c.jza = l; - }, function(f, c, a) { - var d, h, l, g, m; + k = b; + k = g.__decorate([c.N(), g.__param(0, c.l(a.fLa))], k); + d.pJa = k; + }, function(g, d, a) { + var c, h, k, f, l; function b(a, b, c) { - this.kH = b; + this.Jk = b; this.config = c; - this.ca = a.Bb(g.MU); + this.ga = a.lb(f.HY); } - Object.defineProperty(c, "__esModule", { + Object.defineProperty(d, "__esModule", { value: !0 }); - f = a(1); - d = a(0); - h = a(12); - l = a(125); - g = a(359); - a = a(358); - b.prototype.o6 = function(a) { - return this.config.enabled ? this.config.timeout ? this.kH.dx(this.config.timeout, this.fia(a)) : this.fia(a) : Promise.resolve(); + g = a(0); + c = a(1); + h = a(7); + k = a(70); + f = a(401); + a = a(400); + b.prototype.Eo = function(a) { + return this.config.enabled ? this.config.timeout ? this.Jk.Ml(this.config.timeout, this.opa(a)) : this.opa(a) : Promise.resolve(); }; - b.prototype.fia = function(a) { + b.prototype.opa = function(a) { var b; b = this; return new Promise(function(c, d) { return a.save("indexdb-test", "true", !0).then(function() { - return a.load("indexdb-test").then(function(g) { - "true" !== g.value && d(); - b.ca.debug("save/load test passed"); + return a.load("indexdb-test").then(function(f) { + "true" !== f.value && d(); + b.ga.debug("save/load test passed"); a.remove("indexdb-test").then(function() { c(); })["catch"](function() { - b.ca.error("Failed to remove testValue"); + b.ga.error("Failed to remove testValue"); c(); }); }); @@ -88008,656 +92765,665 @@ v7AA.H22 = function() { }); }); }; - m = b; - m = f.__decorate([d.N(), f.__param(0, d.j(h.Jb)), f.__param(1, d.j(l.aK)), f.__param(2, d.j(a.A7))], m); - c.tva = m; - }, function(f, c, a) { - var b, d, h, l, g, m, k, r, n, q, z, w, G, x, y, C, F, A, T; - Object.defineProperty(c, "__esModule", { - value: !0 - }); - f = a(0); - b = a(360); - d = a(56); - h = a(149); - l = a(690); - g = a(357); - m = a(689); - k = a(358); - r = a(148); - n = a(688); - q = a(686); - z = a(685); - w = a(684); - G = a(56); - x = a(356); - y = a(682); - C = a(211); - F = a(681); - A = a(354); - T = a(680); - c.storage = new f.dc(function(a) { - a(h.E$).Yl(function() { + l = b; + l = g.__decorate([c.N(), g.__param(0, c.l(h.sb)), g.__param(1, c.l(k.tA)), g.__param(2, c.l(a.rca))], l); + d.YEa = l; + }, function(g, d, a) { + var b, c, h, k, f, l, m, r, n, q, v, t, w, D, z, E, P, F, G; + Object.defineProperty(d, "__esModule", { + value: !0 + }); + g = a(1); + b = a(402); + c = a(53); + h = a(160); + k = a(805); + f = a(399); + l = a(804); + m = a(400); + r = a(159); + n = a(803); + q = a(801); + v = a(800); + t = a(799); + w = a(53); + D = a(398); + z = a(797); + E = a(219); + P = a(796); + F = a(397); + G = a(795); + d.storage = new g.Vb(function(a) { + a(h.tfa).ih(function() { return function() { - return t.localStorage; + return A.localStorage; }; }); - a(h.R8).Yl(function() { + a(h.Dda).ih(function() { return function() { - return t.indexedDB; + return A.indexedDB; }; }); - a(C.M6).to(F.Ota).Y(); - a(x.s$).to(y.jAa).Y(); - a(G.fk).to(w.Nta).Y(); - a(g.P9).to(m.jza).Y(); - a(b.EJ).to(q.Sya).Y(); - a(r.y9).to(n.Tya).Y(); - a(d.wba).to(l.tva).Y(); - a(r.Q8).to(n.Txa).Y(); - a(r.CT).to(n.Uya).Y(); - a(k.A7).to(z.uva).Y(); - a(A.U7).to(T.Iwa).Y(); - }); - }, function(f, c, a) { - var d, h, l; + a(E.Bba).to(P.dDa).$(); + a(D.efa).to(z.DKa).$(); + a(w.Xl).to(t.cDa).$(); + a(f.zea).to(l.pJa).$(); + a(b.RM).to(q.UIa).$(); + a(r.iea).to(n.VIa).$(); + a(c.xha).to(k.YEa).$(); + a(r.Cda).to(n.WHa).$(); + a(r.HX).to(n.WIa).$(); + a(m.rca).to(v.ZEa).$(); + a(F.Kca).to(G.vGa).$(); + }); + }, function(g, d, a) { + var c, h, k; function b(a) { - this.a6a = a; + this.Sjb = a; } - Object.defineProperty(c, "__esModule", { + Object.defineProperty(d, "__esModule", { value: !0 }); - f = a(1); - d = a(0); - h = a(212); - a = a(361); - b.prototype.gVa = function() { + g = a(0); + c = a(1); + h = a(220); + a = a(403); + b.prototype.R6a = function() { var a, b; a = { - pF: h.iu.Unknown + fI: h.gw.Unknown }; - b = this.a6a.PresentationRequest; + b = this.Sjb.PresentationRequest; b && (new b("https://netflix.com").getAvailability() || Promise.reject()).then(function(b) { var c; - a.pF = b.value ? h.iu.Present : h.iu.Absent; - if (a.pF === h.iu.rdb) { + a.fI = b.value ? h.gw.Present : h.gw.Absent; + if (a.fI === h.gw.htb) { c = function() { - b.value && (a.pF = h.iu.Present); + b.value && (a.fI = h.gw.Present); b.removeEventListener("change", c); }; b.addEventListener("change", c); } })["catch"](function() { - a.pF = h.iu.Error; + a.fI = h.gw.Error; }); return a; }; - l = b; - l = f.__decorate([d.N(), f.__param(0, d.j(a.Naa))], l); - c.qxa = l; - }, function(f, c, a) { - var d, h, l; + k = b; + k = g.__decorate([c.N(), g.__param(0, c.l(a.Lga))], k); + d.pHa = k; + }, function(g, d, a) { + var c, h, k; function b(a, b) { - this.jna = a; - this.log = b.Bb("MediaCapabilities"); + this.nva = a; + this.log = b.lb("MediaCapabilities"); } - Object.defineProperty(c, "__esModule", { + Object.defineProperty(d, "__esModule", { value: !0 }); - f = a(1); - d = a(363); - h = a(12); - a = a(0); - b.prototype.e_ = function(a) { + g = a(0); + c = a(405); + h = a(7); + a = a(1); + b.prototype.o3 = function(a) { var b, c, d; b = this; c = { - Zg: void 0 + ec: void 0 }; - if (this.jna.kna) { + if (this.nva.ova) { d = { contentType: 'video/mp4;codecs="avc1.640028"', width: a.width, height: a.height, - J: 1E3 * a.J, - RN: "24" + O: 1E3 * a.O, + tR: "24" }; - this.jna.e_(d).then(function(a) { - return c.Zg = Object.assign({}, a, d); + this.nva.o3(d).then(function(a) { + return c.ec = Object.assign({}, a, d); })["catch"](function(a) { return b.log.error("Error calling MediaCapabilities API", a); }); } return c; }; - l = b; - l = f.__decorate([a.N(), f.__param(0, a.j(d.n$)), f.__param(1, a.j(h.Jb))], l); - c.aAa = l; - }, function(f, c, a) { - var d, h; + k = b; + k = g.__decorate([a.N(), g.__param(0, a.l(c.Zea)), g.__param(1, a.l(h.sb))], k); + d.sKa = k; + }, function(g, d, a) { + var c, h; function b(a) { this.navigator = a; - this.kna = "mediaCapabilities" in this.navigator && "decodingInfo" in this.navigator.mediaCapabilities; + this.ova = "mediaCapabilities" in this.navigator && "decodingInfo" in this.navigator.mediaCapabilities; } - Object.defineProperty(c, "__esModule", { + Object.defineProperty(d, "__esModule", { value: !0 }); - f = a(1); - d = a(0); - a = a(50); - b.prototype.e_ = function(a) { - return this.kna ? this.navigator.mediaCapabilities.decodingInfo({ + g = a(0); + c = a(1); + a = a(39); + b.prototype.o3 = function(a) { + return this.ova ? this.navigator.mediaCapabilities.decodingInfo({ type: "media-source", video: { contentType: a.contentType, width: a.width, height: a.height, - bitrate: a.J, - framerate: a.RN + bitrate: a.O, + framerate: a.tR } }).then(function(a) { return { - atb: a.supported, - l$a: a.smooth, - J5a: a.powerEfficient + AIb: a.supported, + Job: a.smooth, + yjb: a.powerEfficient }; }) : Promise.reject("MediaCapabilities not supported"); }; h = b; - h = f.__decorate([d.N(), f.__param(0, d.j(a.LC))], h); - c.$za = h; - }, function(f, c, a) { - var d, h; - - function b(a, b, c, f) { - a = d.ik.call(this, a, b, c) || this; - a.MZ = f; - a.type = h.Fi.pba; + h = g.__decorate([c.N(), g.__param(0, c.l(a.lA))], h); + d.rKa = h; + }, function(g, d, a) { + var c, h; + + function b(a, b, d, g) { + a = c.Zl.call(this, a, b, d) || this; + a.kp = g; + a.type = h.rj.qha; return a; } - Object.defineProperty(c, "__esModule", { + Object.defineProperty(d, "__esModule", { value: !0 }); - d = a(123); - h = a(34); - oa(b, d.ik); - b.prototype.IF = function() { + c = a(132); + h = a(27); + ia(b, c.Zl); + b.prototype.CI = function() { return Promise.resolve({ - SUPPORTS_SECURE_STOP: this.MZ.Sh.toString() + SUPPORTS_SECURE_STOP: this.kp.Kh.toString() }); }; - c.OEa = b; - }, function(f, c, a) { - var d, h, l; + d.YOa = b; + }, function(g, d, a) { + var c, h, k; - function b(a, b, c, f, l, k) { - a = d.ik.call(this, a, b, c) || this; - a.HZ = f; - a.wA = l; - a.Na = k; - a.type = h.Fi.qS; - a.log = a.wA.Bb("ChromeVideoCapabilityDetector"); + function b(a, b, d, g, k, l) { + a = c.Zl.call(this, a, b, d) || this; + a.Rm = g; + a.co = k; + a.Ma = l; + a.type = h.rj.pW; + a.log = a.co.lb("ChromeVideoCapabilityDetector"); return a; } - Object.defineProperty(c, "__esModule", { + Object.defineProperty(d, "__esModule", { value: !0 }); - d = a(123); - h = a(34); - l = a(7); - oa(b, d.ik); - b.prototype.Co = function(a) { + c = a(132); + h = a(27); + k = a(4); + ia(b, c.Zl); + b.prototype.Zp = function(a) { switch (a) { - case h.Qg.pn: - return this.vab; + case h.mh.Io: + return this.Qpb; default: return Promise.resolve(!1); } }; - b.prototype.Yz = function() { + b.prototype.FC = function() { var a; a = this; - return this.Co(h.Qg.pn).then(function(a) { - return a ? h.Qg.pn : void 0; + return this.Zp(h.mh.Io).then(function(a) { + return a ? h.mh.Io : void 0; }).then(function(b) { - return a.OE(b); + return a.xH(b); }); }; - b.prototype.fX = function(a) { - return this.At = a; + b.prototype.W_ = function(a) { + return this.sv = a; }; - b.prototype.tI = function() { + b.prototype.EL = function() { var a; - if (this.At) { - a = this.Hka && this.Ika && this.Hka.ie(this.Ika).qa(l.Ma); - this.At.itshdcp = JSON.stringify({ - hdcp1: this.fq, + if (this.sv) { + a = this.ysa && this.zsa && this.ysa.Gd(this.zsa).ma(k.Aa); + this.sv.itshdcp = JSON.stringify({ + hdcp1: this.Sr, time1: a }); } }; - pa.Object.defineProperties(b.prototype, { - Oh: { + na.Object.defineProperties(b.prototype, { + Ck: { configurable: !0, enumerable: !0, get: function() { - var a; - a = this; - this.lna || (this.lna = this.HZ().then(function(b) { - return b.Uja(a.config().ce).FR(); - }).then(function(a) { + this.qva || (this.qva = this.Rm.AI().then(function(a) { return a.createMediaKeys(); })); - return this.lna; + return this.qva; } }, - vab: { + Qpb: { configurable: !0, enumerable: !0, get: function() { var a; a = this; - this.H5 || (this.config().iUa ? this.H5 = this.Oh.then(function(b) { - if (b && b.getStatusForPolicy) return a.Ika = a.Na.Eg, b.getStatusForPolicy({ - minHdcpVersion: "hdcp-1.4" + this.eaa || (this.config().l5a ? this.eaa = this.Ck.then(function(b) { + if (b && b.getStatusForPolicy) return a.zsa = a.Ma.eg, b.getStatusForPolicy({ + minHdcpVersion: "1.4" }).then(function(b) { - a.Hka = a.Na.Eg; - a.fq = b; - a.log.trace("hdcpStatus: " + a.fq); - return "usable" === a.fq; + a.ysa = a.Ma.eg; + a.Sr = b; + a.log.trace("hdcpStatus: " + a.Sr); + return "usable" === a.Sr; }); - a.fq = "not available"; - a.log.trace("hdcpStatus: " + a.fq); + a.Sr = "not available"; + a.log.trace("hdcpStatus: " + a.Sr); return !1; })["catch"](function(b) { - a.fq = "exception"; + a.Sr = "exception"; a.log.error("Exception in supportsHdcpLevel", { - hdcpStatus: a.fq + hdcpStatus: a.Sr }, b); return !1; }).then(function(b) { - a.tI(); + a.EL(); return b; - }) : (this.fq = "not enabled", this.log.trace("hdcpStatus: " + this.fq), this.tI(), this.H5 = Promise.resolve(!1))); - return this.H5; - } - } - }); - c.mva = b; - }, function(f, c, a) { - var d, h, l, g, m, k, r, n, q, z, w, G, x, y, C, F, A, T, H; - - function b(a, b, c, d, g, f, m) { - a = h.ik.call(this, a, b, c) || this; - a.ha = d; - a.Na = g; - a.wA = f; - a.xg = m; - a.type = l.Fi.su; - a.cC = "hvc1"; - a.Iua = "avc1"; - a.Soa = {}; - a.log = a.wA.Bb("MicrosoftVideoCapabilityDetector"); - a.YB[l.Jd.Ff] = n.od.mC; - a.v$a(); - a.$H && a.config().q2a ? a.LTa = a.HRa() : (a.LTa = Promise.resolve(""), a.config().s2a ? a.KRa() : a.config().r2a && a.JRa()); + }) : (this.Sr = "not enabled", this.log.trace("hdcpStatus: " + this.Sr), this.EL(), this.eaa = Promise.resolve(!1))); + return this.eaa; + } + } + }); + d.MEa = b; + }, function(g, d, a) { + var c, h, k, f, l, m, r, n, q, v, t, w, D, z, E, P, F, G, N; + + function b(a, b, c, d, f, g, m) { + a = h.Zl.call(this, a, b, c) || this; + a.ia = d; + a.Ma = f; + a.co = g; + a.Rd = m; + a.type = k.rj.rw; + a.TE = "hvc1"; + a.hEa = "avc1"; + a.oxa = {}; + a.log = a.co.lb("MicrosoftVideoCapabilityDetector"); + a.ME[k.Jd.og] = n.vc.eF; + a.Uob(); + a.gL && a.config().yfb ? a.J4a = a.h2a() : (a.J4a = Promise.resolve(""), a.config().Afb ? a.k2a() : a.config().zfb && a.j2a()); return a; } - Object.defineProperty(c, "__esModule", { - value: !0 - }); - d = a(64); - h = a(123); - l = a(34); - f = a(96); - g = a(160); - m = a(77); - k = a(7); - r = a(221); - n = a(124); - q = a(213); - z = "decode-res-x=3840 decode-res-y=2160 decode-bpc=10 decode-bitrate=16000 decode-fps=30 display-res-x=2560 display-res-y=1440 display-bpc=8".split(" "); - w = "decode-res-x=3840 decode-res-y=2160 decode-bpc=10 decode-bitrate=16000 decode-fps=30 display-res-x=3840 display-res-y=2160 display-bpc=8".split(" "); - G = "decode-res-x=1920 decode-res-y=1080 decode-bpc=10 decode-bitrate=5800 decode-fps=30 display-res-x=1920 display-res-y=1080 display-bpc=8 hdr=1".split(" "); - x = "decode-res-x=3840 decode-res-y=2160 decode-bpc=10 decode-bitrate=16000 decode-fps=30 display-res-x=2560 display-res-y=1440 display-bpc=8 hdr=1".split(" "); - y = "decode-res-x=1920 decode-res-y=1080 decode-bpc=10 decode-bitrate=5800 decode-fps=30 display-res-x=1920 display-res-y=1080 display-bpc=8 hdr=1 ext-profile=dvhe.05".split(" "); - C = "decode-res-x=3840 decode-res-y=2160 decode-bpc=10 decode-bitrate=16000 decode-fps=30 display-res-x=2560 display-res-y=1440 display-bpc=8 hdr=1 ext-profile=dvhe.05".split(" "); - F = ["hdcp=1"]; - A = ["hdcp=2"]; - T = new f.Cu(); - H = new r.hS(); - oa(b, h.ik); - b.prototype.jO = function(a) { - var b; - a = void 0 === a ? 0 : a; - b = "undefined" !== typeof t && t._cad_global && t._cad_global.videoCache; - return b && (a = b.lob(a), (a = this.YRa(a)) && 0 < a.length) ? a : h.ik.prototype.jO.call(this); - }; - b.prototype.YRa = function(a) { - if (a && 1 === a.length) switch (a[0]) { - case d.$.fr: - return [d.$.fr]; - case d.$.ju: - return [d.$.fr, d.$.ju]; - case d.$.lC: - return [d.$.fr, d.$.ju, d.$.lC]; - } - return []; - }; - b.prototype.Co = function(a) { + Object.defineProperty(d, "__esModule", { + value: !0 + }); + c = a(72); + h = a(132); + k = a(27); + g = a(98); + f = a(138); + l = a(87); + m = a(4); + r = a(231); + n = a(133); + q = a(221); + v = "decode-res-x=3840 decode-res-y=2160 decode-bpc=10 decode-bitrate=16000 decode-fps=30 display-res-x=2560 display-res-y=1440 display-bpc=8".split(" "); + t = "decode-res-x=3840 decode-res-y=2160 decode-bpc=10 decode-bitrate=16000 decode-fps=30 display-res-x=3840 display-res-y=2160 display-bpc=8".split(" "); + w = "decode-res-x=1920 decode-res-y=1080 decode-bpc=10 decode-bitrate=5800 decode-fps=30 display-res-x=1920 display-res-y=1080 display-bpc=8 hdr=1".split(" "); + D = "decode-res-x=3840 decode-res-y=2160 decode-bpc=10 decode-bitrate=16000 decode-fps=30 display-res-x=2560 display-res-y=1440 display-bpc=8 hdr=1".split(" "); + z = "decode-res-x=1920 decode-res-y=1080 decode-bpc=10 decode-bitrate=5800 decode-fps=30 display-res-x=1920 display-res-y=1080 display-bpc=8 hdr=1 ext-profile=dvhe.05".split(" "); + E = "decode-res-x=3840 decode-res-y=2160 decode-bpc=10 decode-bitrate=16000 decode-fps=30 display-res-x=2560 display-res-y=1440 display-bpc=8 hdr=1 ext-profile=dvhe.05".split(" "); + P = ["hdcp=1"]; + F = ["hdcp=2"]; + G = new g.Dw(); + N = new r.hW(); + ia(b, h.Zl); + b.prototype.Zp = function(a) { switch (a) { - case l.Qg.pn: - return this.Rra(); - case l.Qg.nu: - return this.jH; + case k.mh.Io: + return this.RAa(); + case k.mh.kw: + return this.nK; default: return Promise.resolve(!1); } }; - b.prototype.Vz = function() { - return this.$H ? this.a_a ? this.Rra().then(function(a) { - return Promise.resolve(a ? g.Eb.Hd : g.Eb.TC); - }) : Promise.resolve(g.Eb.TC) : this.xab ? Promise.resolve(g.Eb.TC) : Promise.resolve(g.Eb.tn); + b.prototype.CC = function() { + return this.gL ? this.ubb ? this.RAa().then(function(a) { + return Promise.resolve(a ? f.bb.Wc : f.bb.HF); + }) : Promise.resolve(f.bb.HF) : this.Rpb ? Promise.resolve(f.bb.HF) : Promise.resolve(f.bb.Lo); }; - b.prototype.aI = function() { - return this.uab(); + b.prototype.hL = function() { + return this.Ppb(); }; - b.prototype.bI = function() { - return this.$H && this.Tra() ? this.jH : Promise.resolve(!1); + b.prototype.jL = function() { + return this.gL && this.TAa() ? this.nK : Promise.resolve(!1); }; - b.prototype.ZH = function() { - return this.sab(); + b.prototype.fL = function() { + return this.Opb(); }; - b.prototype.fX = function(a) { - this.At = a; - Object.assign(this.At, this.Soa); - a.itshwdrm = this.$H; - a.itsqhd = this.Sra(); - a.itshevc = this.Tra(); - a.itshdr = this.aI(); - a.itsdv = this.ZH(); + b.prototype.W_ = function(a) { + this.sv = a; + Object.assign(this.sv, this.oxa); + a.itshwdrm = this.gL; + a.itsqhd = this.SAa(); + a.itshevc = this.TAa(); + a.itshdr = this.hL(); + a.itsdv = this.fL(); return a; }; - b.prototype.cE = function(a, b) { - (this.At ? this.At : this.Soa)[a] = b; + b.prototype.LG = function(a, b) { + (this.sv ? this.sv : this.oxa)[a] = b; }; - b.prototype.Yz = function() { + b.prototype.FC = function() { var a; a = this; - return this.Co(l.Qg.nu).then(function(b) { - return b ? a.OE(l.Qg.nu) : a.Co(l.Qg.pn).then(function(b) { - return b ? a.OE(l.Qg.pn) : a.OE(void 0); + return this.Zp(k.mh.kw).then(function(b) { + return b ? a.xH(k.mh.kw) : a.Zp(k.mh.Io).then(function(b) { + return b ? a.xH(k.mh.Io) : a.xH(void 0); }); }); }; - b.prototype.IF = function() { - return this.Vz().then(function(a) { - return a === g.Eb.Hd ? { + b.prototype.CI = function() { + return this.CC().then(function(a) { + return a === f.bb.Wc ? { DEVICE_SECURITY_LEVEL: "3000" } : void 0; }); }; - b.prototype.h_ = function(a) { + b.prototype.r3 = function(a) { var b; b = this; return a.filter(function(a) { - var c, f; - for (var c = Na(b.Gt), d = c.next(); !d.done; d = c.next()) + var c, g; + for (var c = za(b.ps), d = c.next(); !d.done; d = c.next()) if (d.value.test(a)) return !0; - c = Na(b.Tm); + c = za(b.Vm); for (d = c.next(); !d.done; d = c.next()) if (d.value.test(a)) return !1; - a = b.O3[a]; + a = b.W8[a]; c = []; - f = g.Eb.tn; - if (a) return b.is.Xg(a) ? d = a : (c = a.zd, d = a.Xe, f = a.pd), b.us(f, d, c); + g = f.bb.Lo; + if (a) return b.is.uh(a) ? d = a : (c = a.Tc, d = a.$d, g = a.fe), b.mu(g, d, c); }); }; - b.prototype.Iv = function() { + b.prototype.Jx = function() { var a; - a = h.ik.prototype.Iv.call(this); - a[d.$.nK] = "vp09.00.11.08.02"; - a[d.$.oK] = "vp09.00.11.08.02"; - a[d.$.pK] = "vp09.00.11.08.02"; - a[d.$.eT] = { - Xe: "hev1.2.6.L90.B0", - pd: g.Eb.Hd, - zd: z - }; - a[d.$.gT] = { - Xe: "hev1.2.6.L93.B0", - pd: g.Eb.Hd, - zd: z - }; - a[d.$.iT] = { - Xe: "hev1.2.6.L120.B0", - pd: g.Eb.Hd, - zd: z - }; - a[d.$.kT] = { - Xe: "hev1.2.6.L123.B0", - pd: g.Eb.Hd, - zd: z - }; - a[d.$.pC] = { - Xe: "hev1.2.6.L150.B0", - pd: g.Eb.Hd, - zd: z - }; - a[d.$.qC] = { - Xe: "hev1.2.6.L153.B0", - pd: g.Eb.Hd, - zd: z - }; - a[d.$.sJ] = { - Xe: "hev1.2.6.L90.B0", - pd: g.Eb.Hd, - zd: G - }; - a[d.$.tJ] = { - Xe: "hev1.2.6.L93.B0", - pd: g.Eb.Hd, - zd: G - }; - a[d.$.uJ] = { - Xe: "hev1.2.6.L120.B0", - pd: g.Eb.Hd, - zd: G - }; - a[d.$.vJ] = { - Xe: "hev1.2.6.L123.B0", - pd: g.Eb.Hd, - zd: x - }; - a[d.$.ZS] = { - Xe: "hev1.2.6.L150.B0", - pd: g.Eb.Hd, - zd: x - }; - a[d.$.aT] = { - Xe: "hev1.2.6.L153.B0", - pd: g.Eb.Hd, - zd: x - }; - a[d.$.aJ] = { - Xe: "hev1.2.6.L90.B0", - pd: g.Eb.Hd, - zd: y - }; - a[d.$.bJ] = { - Xe: "hev1.2.6.L93.B0", - pd: g.Eb.Hd, - zd: y - }; - a[d.$.cJ] = { - Xe: "hev1.2.6.L120.B0", - pd: g.Eb.Hd, - zd: y - }; - a[d.$.dJ] = { - Xe: "hev1.2.6.L123.B0", - pd: g.Eb.Hd, - zd: C - }; - a[d.$.eJ] = { - Xe: "hev1.2.6.L150.B0", - pd: g.Eb.Hd, - zd: C - }; - a[d.$.BS] = { - Xe: "hev1.2.6.L153.B0", - pd: g.Eb.Hd, - zd: C + a = h.Zl.prototype.Jx.call(this); + a[c.ba.tN] = "vp09.00.11.08.02"; + a[c.ba.uN] = "vp09.00.11.08.02"; + a[c.ba.vN] = "vp09.00.11.08.02"; + a[c.ba.dX] = { + $d: "hev1.2.6.L90.B0", + fe: f.bb.Wc, + Tc: v + }; + a[c.ba.gX] = { + $d: "hev1.2.6.L93.B0", + fe: f.bb.Wc, + Tc: v + }; + a[c.ba.jX] = { + $d: "hev1.2.6.L120.B0", + fe: f.bb.Wc, + Tc: v + }; + a[c.ba.mX] = { + $d: "hev1.2.6.L123.B0", + fe: f.bb.Wc, + Tc: v + }; + a[c.ba.hF] = { + $d: "hev1.2.6.L150.B0", + fe: f.bb.Wc, + Tc: v + }; + a[c.ba.iF] = { + $d: "hev1.2.6.L153.B0", + fe: f.bb.Wc, + Tc: v + }; + a[c.ba.eX] = { + $d: "hev1.2.6.L90.B0", + fe: f.bb.Wc, + Tc: v + }; + a[c.ba.hX] = { + $d: "hev1.2.6.L93.B0", + fe: f.bb.Wc, + Tc: v + }; + a[c.ba.kX] = { + $d: "hev1.2.6.L120.B0", + fe: f.bb.Wc, + Tc: v + }; + a[c.ba.nX] = { + $d: "hev1.2.6.L123.B0", + fe: f.bb.Wc, + Tc: v + }; + a[c.ba.oX] = { + $d: "hev1.2.6.L150.B0", + fe: f.bb.Wc, + Tc: v + }; + a[c.ba.pX] = { + $d: "hev1.2.6.L153.B0", + fe: f.bb.Wc, + Tc: v + }; + a[c.ba.FM] = { + $d: "hev1.2.6.L90.B0", + fe: f.bb.Wc, + Tc: w + }; + a[c.ba.GM] = { + $d: "hev1.2.6.L93.B0", + fe: f.bb.Wc, + Tc: w + }; + a[c.ba.HM] = { + $d: "hev1.2.6.L120.B0", + fe: f.bb.Wc, + Tc: w + }; + a[c.ba.IM] = { + $d: "hev1.2.6.L123.B0", + fe: f.bb.Wc, + Tc: D + }; + a[c.ba.ZW] = { + $d: "hev1.2.6.L150.B0", + fe: f.bb.Wc, + Tc: D + }; + a[c.ba.aX] = { + $d: "hev1.2.6.L153.B0", + fe: f.bb.Wc, + Tc: D + }; + a[c.ba.pM] = { + $d: "hev1.2.6.L90.B0", + fe: f.bb.Wc, + Tc: z + }; + a[c.ba.qM] = { + $d: "hev1.2.6.L93.B0", + fe: f.bb.Wc, + Tc: z + }; + a[c.ba.rM] = { + $d: "hev1.2.6.L120.B0", + fe: f.bb.Wc, + Tc: z + }; + a[c.ba.sM] = { + $d: "hev1.2.6.L123.B0", + fe: f.bb.Wc, + Tc: E + }; + a[c.ba.tM] = { + $d: "hev1.2.6.L150.B0", + fe: f.bb.Wc, + Tc: E + }; + a[c.ba.AW] = { + $d: "hev1.2.6.L153.B0", + fe: f.bb.Wc, + Tc: E }; return a; }; - b.prototype.us = function(a, b, c) { - a = q.tu.JM(a, b, c); - return this.Jp(a); + b.prototype.mu = function(a, b, c) { + a = q.tw.jQ(a, b, c); + return this.wr(a); }; - b.prototype.Sra = function() { - return this.us(g.Eb.Hd, this.cC, z); + b.prototype.SAa = function() { + return this.mu(f.bb.Wc, this.TE, v); }; - b.prototype.uab = function() { - return this.us(g.Eb.Hd, this.cC, G); + b.prototype.Ppb = function() { + return this.mu(f.bb.Wc, this.TE, w); }; - b.prototype.sab = function() { - return this.us(g.Eb.Hd, this.cC, y); + b.prototype.Opb = function() { + return this.mu(f.bb.Wc, this.TE, z); }; - b.prototype.Tra = function() { - return this.us(g.Eb.Hd, this.cC, w); + b.prototype.TAa = function() { + return this.mu(f.bb.Wc, this.TE, t); }; - b.prototype.Rra = function() { + b.prototype.RAa = function() { var a; a = this; - return this.jH.then(function(b) { - return b ? Promise.resolve(b) : a.rpa; + return this.nK.then(function(b) { + return b ? Promise.resolve(b) : a.Vxa; }); }; - b.prototype.tI = function() { - this.At && (this.At.itshdcp = JSON.stringify({ - hdcp1: this.Fka, - time1: this.esa - this.Ira, - hdcp2: this.Gka, - time2: this.fsa - this.Jra + b.prototype.EL = function() { + this.sv && (this.sv.itshdcp = JSON.stringify({ + hdcp1: this.wsa, + time1: this.gBa - this.CAa, + hdcp2: this.xsa, + time2: this.hBa - this.DAa })); }; - b.prototype.v$a = function() { + b.prototype.Uob = function() { var a; a = this; - this.$H ? (this.E3 = new m.yh(), this.F3 = new m.yh(), this.rpa = m.pa.from(this.E3).FR().then(function(a) { + this.gL ? (this.I8 = new l.Ei(), this.J8 = new l.Ei(), this.Vxa = l.ta.from(this.I8).yaa().then(function(a) { return "probably" === a; - }), this.jH = m.pa.from(this.F3).FR().then(function(a) { + }), this.nK = l.ta.from(this.J8).yaa().then(function(a) { return "probably" === a; - }), this.qra(this.F3, this.config().u2a), this.Yoa(this.vXa.bind(this), this.F3), this.jH.then(function(b) { - b || (a.qra(a.E3, a.config().t2a), a.Yoa(a.uXa.bind(a), a.E3)); - })) : (this.rpa = Promise.resolve(!0), this.jH = Promise.resolve(!1)); + }), this.lAa(this.J8, this.config().Cfb), this.yxa(this.k9a.bind(this), this.J8), this.nK.then(function(b) { + b || (a.lAa(a.I8, a.config().Bfb), a.yxa(a.j9a.bind(a), a.I8)); + })) : (this.Vxa = Promise.resolve(!0), this.nK = Promise.resolve(!1)); }; - b.prototype.Yoa = function(a, b) { - m.pa.Rq(0, this.config().v2a).map(function() { + b.prototype.yxa = function(a, b) { + l.ta.Es(0, this.config().Dfb).map(function() { return a(); - }).QH(function(a) { + }).WK(function(a) { return "maybe" === a; }).map(function(a) { b.next(a); b.complete(); - }).gI(m.pa.from(b)).FR(); + }).pL(l.ta.from(b)).yaa(); }; - b.prototype.qra = function(a, b) { - this.ha.Af(k.Cb(b), function() { + b.prototype.lAa = function(a, b) { + this.ia.Nf(m.rb(b), function() { a.next("timeout"); a.complete(); }); }; - b.prototype.uXa = function() { + b.prototype.j9a = function() { var a; - a = q.tu.JM(g.Eb.TC, this.Iua, F).split("|"); - this.Fka = q.tu.G5(a[0], a[1]); - this.esa = this.Na.Eg.qa(k.Ma); - this.Ira = this.Ira || this.esa; - this.tI(); - return this.Fka; - }; - b.prototype.vXa = function() { + a = q.tw.jQ(f.bb.HF, this.hEa, P).split("|"); + this.wsa = q.tw.daa(a[0], a[1]); + this.gBa = this.Ma.eg.ma(m.Aa); + this.CAa = this.CAa || this.gBa; + this.EL(); + return this.wsa; + }; + b.prototype.k9a = function() { var a; - a = q.tu.JM(g.Eb.Hd, this.cC, A).split("|"); - this.Gka = q.tu.G5(a[0], a[1]); - this.fsa = this.Na.Eg.qa(k.Ma); - this.Jra = this.Jra || this.fsa; - this.tI(); - return this.Gka; - }; - b.prototype.HRa = function() { + a = q.tw.jQ(f.bb.Wc, this.TE, F).split("|"); + this.xsa = q.tw.daa(a[0], a[1]); + this.hBa = this.Ma.eg.ma(m.Aa); + this.DAa = this.DAa || this.hBa; + this.EL(); + return this.xsa; + }; + b.prototype.h2a = function() { var a; a = this; - return this.bZ(g.Eb.Hd, 'Q0hBSQAAAAEAAAUMAAAAAAAAAAJDRVJUAAAAAQAAAfwAAAFsAAEAAQAAAFhr+y4Ydms5rTmj6bCCteW2AAAAAAAAAAAAAAAJzZtwNxHterM9CAoJYOM3CF9Tj0d9KND413a+UtNzRTb/////AAAAAAAAAAAAAAAAAAAAAAABAAoAAABU8vU0ozkqocBJMVIX2K4dugAAADZodHRwOi8vbnJkcC5uY2NwLm5ldGZsaXguY29tL3Jtc2RrL3JpZ2h0c21hbmFnZXIuYXNteAAAAAABAAUAAAAMAAAAAAABAAYAAABcAAAAAQABAgAAAAAAglDQ2GehCoNSsOaaB8zstNK0cCnf1+9gX8wM+2xwLlqJ1kyokCjt3F8P2NqXHM4mEU/G1T0HBBSI3j6XpKqzgAAAAAEAAAACAAAABwAAAEgAAAAAAAAACE5ldGZsaXgAAAAAH1BsYXlSZWFkeSBNZXRlcmluZyBDZXJ0aWZpY2F0ZQAAAAAABjIwMjQ4AAAAAAEACAAAAJAAAQBAU73up7T8eJYVK4UHuKYgMQIRbo0yf27Y5EPZRPmzkx1ZDMor7Prs77CAOU9S9k0RxpxPnqUwAKRPIVCe0aX2+AAAAgBb65FSx1oKG2r8AxQjio+UrYGLhvA7KMlxJBbPXosAV/CJufnIdUMSA0DhxD2W3eRLh2vHukIL4VH9guUcEBXsQ0VSVAAAAAEAAAL8AAACbAABAAEAAABYyTlnSi+jZfRvYL0rk9sVfwAAAAAAAAAAAAAABFNh3USSkWi88BlSM6PZ2gMuceJFJ9hzz0WzuCiwF9qv/////wAAAAAAAAAAAAAAAAAAAAAAAQAFAAAADAAAAAAAAQAGAAAAYAAAAAEAAQIAAAAAAFvrkVLHWgobavwDFCOKj5StgYuG8DsoyXEkFs9eiwBX8Im5+ch1QxIDQOHEPZbd5EuHa8e6QgvhUf2C5RwQFewAAAACAAAAAQAAAAwAAAAHAAABmAAAAAAAAACATWljcm9zb2Z0AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACAUGxheVJlYWR5IFNMMCBNZXRlcmluZyBSb290IENBAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACAMS4wLjAuMQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAIAAAAkAABAECsAomwQgNY0bm6U6Au9JRvwjbNnRzmVkZi+kg7npnRQ2T+4LgyrePBdBRQ3qb/jxXkn++4sOFa7vjRpFBzV0MMAAACAIZNYc/yJW5CLFaLPCgAHPs+FSdlhYS6BSG3mxgo2TbeHYJqj8Pm5/p6kNXKKUbx9kou+59dz/5+Q060QpP6xas=').then(function(b) { + return this.R1(f.bb.Wc, 'Q0hBSQAAAAEAAAUMAAAAAAAAAAJDRVJUAAAAAQAAAfwAAAFsAAEAAQAAAFhr+y4Ydms5rTmj6bCCteW2AAAAAAAAAAAAAAAJzZtwNxHterM9CAoJYOM3CF9Tj0d9KND413a+UtNzRTb/////AAAAAAAAAAAAAAAAAAAAAAABAAoAAABU8vU0ozkqocBJMVIX2K4dugAAADZodHRwOi8vbnJkcC5uY2NwLm5ldGZsaXguY29tL3Jtc2RrL3JpZ2h0c21hbmFnZXIuYXNteAAAAAABAAUAAAAMAAAAAAABAAYAAABcAAAAAQABAgAAAAAAglDQ2GehCoNSsOaaB8zstNK0cCnf1+9gX8wM+2xwLlqJ1kyokCjt3F8P2NqXHM4mEU/G1T0HBBSI3j6XpKqzgAAAAAEAAAACAAAABwAAAEgAAAAAAAAACE5ldGZsaXgAAAAAH1BsYXlSZWFkeSBNZXRlcmluZyBDZXJ0aWZpY2F0ZQAAAAAABjIwMjQ4AAAAAAEACAAAAJAAAQBAU73up7T8eJYVK4UHuKYgMQIRbo0yf27Y5EPZRPmzkx1ZDMor7Prs77CAOU9S9k0RxpxPnqUwAKRPIVCe0aX2+AAAAgBb65FSx1oKG2r8AxQjio+UrYGLhvA7KMlxJBbPXosAV/CJufnIdUMSA0DhxD2W3eRLh2vHukIL4VH9guUcEBXsQ0VSVAAAAAEAAAL8AAACbAABAAEAAABYyTlnSi+jZfRvYL0rk9sVfwAAAAAAAAAAAAAABFNh3USSkWi88BlSM6PZ2gMuceJFJ9hzz0WzuCiwF9qv/////wAAAAAAAAAAAAAAAAAAAAAAAQAFAAAADAAAAAAAAQAGAAAAYAAAAAEAAQIAAAAAAFvrkVLHWgobavwDFCOKj5StgYuG8DsoyXEkFs9eiwBX8Im5+ch1QxIDQOHEPZbd5EuHa8e6QgvhUf2C5RwQFewAAAACAAAAAQAAAAwAAAAHAAABmAAAAAAAAACATWljcm9zb2Z0AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACAUGxheVJlYWR5IFNMMCBNZXRlcmluZyBSb290IENBAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACAMS4wLjAuMQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAIAAAAkAABAECsAomwQgNY0bm6U6Au9JRvwjbNnRzmVkZi+kg7npnRQ2T+4LgyrePBdBRQ3qb/jxXkn++4sOFa7vjRpFBzV0MMAAACAIZNYc/yJW5CLFaLPCgAHPs+FSdlhYS6BSG3mxgo2TbeHYJqj8Pm5/p6kNXKKUbx9kou+59dz/5+Q060QpP6xas=').then(function(b) { a.log.debug("DriverInfo: " + b); return b; })["catch"](function(b) { - a.cE("itsDriverInfo", "exception"); + a.LG("itsDriverInfo", "exception"); a.log.error("DriverInfo exception", b); throw b; }); }; - b.prototype.JRa = function() { + b.prototype.j2a = function() { var a; a = this; - this.bZ(g.Eb.tn, '').then(function(b) { + this.R1(f.bb.Lo, '').then(function(b) { var c; - c = String.fromCharCode.apply(void 0, a.xg.decode(b)); - a.cE("itsHardwareInfo", c); + c = String.fromCharCode.apply(void 0, a.Rd.decode(b)); + a.LG("itsHardwareInfo", c); a.log.debug("HardwareInfo: " + c); return b; })["catch"](function(b) { - a.cE("itsHardwareInfo", "exception"); + a.LG("itsHardwareInfo", "exception"); a.log.error("HardwareInfo exception", b); throw b; }); }; - b.prototype.KRa = function() { + b.prototype.k2a = function() { var a; a = this; - this.bZ(g.Eb.tn, '').then(function(b) { + this.R1(f.bb.Lo, '').then(function(b) { var c; - c = String.fromCharCode.apply(void 0, a.xg.decode(b)); - a.cE("itsHardwareReset", c); + c = String.fromCharCode.apply(void 0, a.Rd.decode(b)); + a.LG("itsHardwareReset", c); a.log.debug("ResetHardwareDRMDisabled: " + c); return b; })["catch"](function(b) { - a.cE("itsHardwareReset", "exception"); + a.LG("itsHardwareReset", "exception"); a.log.error("ResetHardwareDRMDisabled exception", b); throw b; }); }; - b.prototype.bZ = function(a, b) { + b.prototype.R1 = function(a, b) { var c; c = this; - return new Promise(function(d, g) { - var n, q, u; + return new Promise(function(d, f) { + var r, n, q; - function f(a) { + function g(a) { try { - l(a.target, "Unexpectedly got an mskeyerror event: 0x" + H.yF(a && a.target && a.target.error && a.target.error.gtb || 0, 4)); - } catch (ua) { - l(a.target, ua); + l(a.target, "Unexpectedly got an mskeyerror event: 0x" + N.sI(a && a.target && a.target.error && a.target.error.CIb || 0, 4)); + } catch (ma) { + l(a.target, ma); } } - function h(a) { + function k(a) { l(a.target, "Unexpectedly got an mskeyadded event"); } - function m(a) { + function h(a) { var b; try { - b = c.VUa(a.message, "PlayReadyKeyMessage", "Challenge"); + b = c.k3(a.message, "PlayReadyKeyMessage", "Challenge"); p(a.target); d(b); - } catch (la) { - l(a.target, la); + } catch (va) { + l(a.target, va); } } @@ -88666,780 +93432,793 @@ v7AA.H22 = function() { cdmData: b }); p(a); - g(d); + f(d); } function p(a) { - a.removeEventListener("mskeymessage", m); - a.removeEventListener("mskeyadded", h); - a.removeEventListener("mskeyerror", f); - n && n.cancel(); - } - - function r(a) { - a.addEventListener("mskeymessage", m); - a.addEventListener("mskeyadded", h); - a.addEventListener("mskeyerror", f); + a.removeEventListener("mskeymessage", h); + a.removeEventListener("mskeyadded", k); + a.removeEventListener("mskeyerror", g); + r && r.cancel(); } try { - q = new Uint8Array(T.X$a(b)); - u = new t.MSMediaKeys(a).createSession("video/mp4", new Uint8Array(0), q); - r(u); - n = c.ha.Af(k.Cb(1E3), function() { - l(u, Error("timeout")); + n = new Uint8Array(G.vpb(b)); + q = new A.MSMediaKeys(a).createSession("video/mp4", new Uint8Array(0), n); + q.addEventListener("mskeymessage", h); + q.addEventListener("mskeyadded", k); + q.addEventListener("mskeyerror", g); + r = c.ia.Nf(m.rb(1E3), function() { + l(q, Error("timeout")); }); - } catch (ka) { - g(ka); + } catch (ea) { + f(ea); } }); }; - b.prototype.VUa = function(a, b) { - var c, d, g, f; + b.prototype.k3 = function(a, b) { + var c, d, f, g; for (var c = 1; c < arguments.length; ++c); c = ""; - g = a.length; - for (d = 0; d < g; d++) f = a[d], 0 < f && (c += String.fromCharCode(f)); - g = "\\s*(.*)\\s*"; + f = a.length; + for (d = 0; d < f; d++) g = a[d], 0 < g && (c += String.fromCharCode(g)); + f = "\\s*(.*)\\s*"; for (d = arguments.length - 1; 0 < d; d--) { - f = arguments[d]; - if (0 > c.search(f)) return; - f = "(?:[^:].*:|)" + f; - g = "[\\s\\S]*<" + f + "[^>]*>" + g + "[\\s\\S]*"; + g = arguments[d]; + if (0 > c.search(g)) return; + g = "(?:[^:].*:|)" + g; + f = "[\\s\\S]*<" + g + "[^>]*>" + f + "[\\s\\S]*"; } - if (c = c.match(new RegExp(g))) return c[1]; + if (c = c.match(new RegExp(f))) return c[1]; }; - pa.Object.defineProperties(b.prototype, { - a_a: { + na.Object.defineProperties(b.prototype, { + ubb: { configurable: !0, enumerable: !0, get: function() { - return this.config().hUa && (!this.config().w2a || this.Sra()); + return this.config().k5a && (!this.config().Efb || this.SAa()); } }, - $H: { + gL: { configurable: !0, enumerable: !0, get: function() { try { - return this.Jp(g.Eb.Hd); - } catch (Z) { + return this.wr(f.bb.Wc); + } catch (O) { return !1; } } }, - xab: { + Rpb: { configurable: !0, enumerable: !0, get: function() { try { - return this.Jp(g.Eb.TC); - } catch (Z) { + return this.wr(f.bb.HF); + } catch (O) { return !1; } } } }); - b.SB = 'video/mp4;codecs="{0},mp4a";'; - c.Vza = b; - }, function(f, c, a) { - var d, h, l, g, m; + b.EE = 'video/mp4;codecs="{0},mp4a";'; + d.eKa = b; + }, function(g, d, a) { + var c, h, k, f, l; - function b(a, b, c, f) { - a = g.DS.call(this, a, b) || this; - a.is = c; - a.platform = f; - a.type = d.au.su; + function b(a, b, d, g) { + a = f.DW.call(this, a, b) || this; + a.is = d; + a.platform = g; + a.type = c.Yv.rw; return a; } - Object.defineProperty(c, "__esModule", { + Object.defineProperty(d, "__esModule", { value: !0 }); - d = a(34); - h = a(64); - l = a(160); - g = a(364); - m = a(213); - oa(b, g.DS); - b.prototype.YH = function() { - return this.config().iF && this.us(l.Eb.tn, "avc1,mp4a", ["audio-endpoint-codec=DD+JOC"]); + c = a(27); + h = a(72); + k = a(138); + f = a(406); + l = a(221); + ia(b, f.DW); + b.prototype.eL = function() { + return this.config().XH && this.mu(k.bb.Lo, "avc1,mp4a", ["audio-endpoint-codec=DD+JOC"]); }; - b.prototype.Iv = function() { + b.prototype.Jx = function() { var a; a = {}; - a[h.gk.wJ] = "mp4a.40.2"; - a[h.gk.bT] = "mp4a.40.5"; - "browser" === this.platform.WM ? this.config().iF && (a[h.gk.ZI] = { - Xe: "avc1", - pd: l.Eb.tn, - zd: ["audio-endpoint-codec=DD+JOC"] - }, a[h.gk.$I] = { - Xe: "avc1", - pd: l.Eb.tn, - zd: ["audio-endpoint-codec=DD+JOC"] - }) : (this.config().PZ && (a[h.gk.ZI] = "ec-3"), this.config().OZ && (a[h.gk.tS] = "ec-3"), this.config().iF && (a[h.gk.$I] = { - Xe: "avc1", - pd: l.Eb.tn, - zd: ["audio-endpoint-codec=DD+JOC"] + a[h.Uk.JM] = "mp4a.40.2"; + a[h.Uk.bX] = "mp4a.40.5"; + "browser" === this.platform.x2 ? this.config().XH && (a[h.Uk.nM] = { + $d: "avc1", + fe: k.bb.Lo, + Tc: ["audio-endpoint-codec=DD+JOC"] + }, a[h.Uk.oM] = { + $d: "avc1", + fe: k.bb.Lo, + Tc: ["audio-endpoint-codec=DD+JOC"] + }) : (this.config().P2 && (a[h.Uk.nM] = "ec-3"), this.config().O2 && (a[h.Uk.rW] = "ec-3"), this.config().XH && (a[h.Uk.oM] = { + $d: "avc1", + fe: k.bb.Lo, + Tc: ["audio-endpoint-codec=DD+JOC"] })); return a; }; - b.prototype.h_ = function(a) { + b.prototype.r3 = function(a) { var b; b = this; return a.filter(function(a) { - var c, g; - for (var c = Na(b.Gt), d = c.next(); !d.done; d = c.next()) + var c, f; + for (var c = za(b.ps), d = c.next(); !d.done; d = c.next()) if (d.value.test(a)) return !0; - c = Na(b.Tm); + c = za(b.Vm); for (d = c.next(); !d.done; d = c.next()) if (d.value.test(a)) return !1; - a = b.O3[a]; + a = b.W8[a]; c = []; - g = l.Eb.tn; - if (a) return b.is.Xg(a) ? d = a : (c = a.zd, d = a.Xe, g = a.pd), b.us(g, d, c); + f = k.bb.Lo; + if (a) return b.is.uh(a) ? d = a : (c = a.Tc, d = a.$d, f = a.fe), b.mu(f, d, c); }); }; - b.prototype.us = function(a, b, c) { - a = m.tu.JM(a, b, c); - return this.Jp(a); + b.prototype.mu = function(a, b, c) { + a = l.tw.jQ(a, b, c); + return this.wr(a); }; - c.nAa = b; - }, function(f, c, a) { - var d, h, l, g, m, k, r, n, q, t, w, G, x, y, C, F, A, T, H; + d.HKa = b; + }, function(g, d, a) { + var c, h, k, f, l, m, r, n, q, v, t, w, D, z, E, P, F, A, N; - function b(a, b, c, d, g, f, h, m, l, k, p) { - this.Pla = a; + function b(a, b, c, d, f, g, k, h, m, l, p) { + this.Jta = a; this.cast = b; this.config = c; - this.ha = d; - this.Na = g; - this.is = f; - this.HZ = h; - this.wA = m; - this.MZ = l; - this.platform = k; - this.xg = p; + this.ia = d; + this.Ma = f; + this.is = g; + this.Rm = k; + this.co = h; + this.kp = m; + this.platform = l; + this.Rd = p; } - Object.defineProperty(c, "__esModule", { + Object.defineProperty(d, "__esModule", { value: !0 }); - f = a(1); - d = a(0); - h = a(34); - l = a(215); - g = a(150); - m = a(214); - k = a(698); - r = a(697); - n = a(123); - q = a(364); - t = a(43); - w = a(52); - G = a(20); - x = a(696); - y = a(114); - C = a(12); - F = a(695); - A = a(131); - T = a(24); - a = a(62); - b.prototype.tRa = function(a) { + g = a(0); + c = a(1); + h = a(27); + k = a(223); + f = a(161); + l = a(222); + m = a(813); + r = a(812); + n = a(132); + q = a(406); + v = a(30); + t = a(37); + w = a(23); + D = a(811); + z = a(121); + E = a(7); + P = a(810); + F = a(64); + A = a(66); + a = a(44); + b.prototype.U1a = function(a) { var b; - b = this.Pla.xha(); + b = this.Jta.poa(); switch (a) { - case h.au.su: - return new k.nAa(this.config, b, this.is, this.platform); + case h.Yv.rw: + return new m.HKa(this.config, b, this.is, this.platform); default: - return new q.DS(this.config, b); + return new q.DW(this.config, b); } }; - b.prototype.eSa = function(a) { + b.prototype.E2a = function(a) { var b; - b = this.Pla.xha(); + b = this.Jta.poa(); switch (a) { - case h.Fi.oS: - a = new m.r7(this.config, b, this.is, this.cast); + case h.rj.nW: + a = new l.hca(this.config, b, this.is, this.cast); break; - case h.Fi.qS: - a = new x.mva(this.config, b, this.is, this.HZ, this.wA, this.Na); + case h.rj.pW: + a = new D.MEa(this.config, b, this.is, this.Rm, this.co, this.Ma); break; - case h.Fi.su: - a = new r.Vza(this.config, b, this.is, this.ha, this.Na, this.wA, this.xg); + case h.rj.rw: + a = new r.eKa(this.config, b, this.is, this.ia, this.Ma, this.co, this.Rd); break; - case h.Fi.pba: - a = new F.OEa(this.config, b, this.is, this.MZ); + case h.rj.qha: + a = new P.YOa(this.config, b, this.is, this.kp); break; default: - a = new n.ik(this.config, b, this.is); + a = new n.Zl(this.config, b, this.is); } return a; }; - H = b; - H = f.__decorate([d.N(), f.__param(0, d.j(l.C9)), f.__param(1, d.j(m.pS)), f.__param(2, d.j(g.hJ)), f.__param(3, d.j(t.xh)), f.__param(4, d.j(w.mj)), f.__param(5, d.j(G.rd)), f.__param(6, d.j(y.kJ)), f.__param(7, d.j(C.Jb)), f.__param(8, d.j(A.iC)), f.__param(9, d.j(T.Pe)), f.__param(10, d.j(a.fl))], H); - c.fva = H; - }, function(f, c, a) { - var d, h, l, g, m, k; + N = b; + N = g.__decorate([c.N(), g.__param(0, c.l(k.oea)), g.__param(1, c.l(l.oW)), g.__param(2, c.l(f.vM)), g.__param(3, c.l(v.Xf)), g.__param(4, c.l(t.yi)), g.__param(5, c.l(w.ve)), g.__param(6, c.l(z.qw)), g.__param(7, c.l(E.sb)), g.__param(8, c.l(F.jn)), g.__param(9, c.l(A.pn)), g.__param(10, c.l(a.nj))], N); + d.CEa = N; + }, function(g, d, a) { + var c, h, k, f, l, m; function b(a, b, c) { this.config = a; - this.Qha = b; + this.Uoa = b; this.cast = c; } - Object.defineProperty(c, "__esModule", { + Object.defineProperty(d, "__esModule", { value: !0 }); - f = a(1); - d = a(0); - h = a(215); - l = a(150); - g = a(34); - m = a(214); - k = a(213); - b.prototype.xha = function() { - switch (this.config().UR) { - case g.Fi.oS: - return m.r7.XY(this.Qha, this.cast); - case g.Fi.su: - return k.tu.XY(this.config); + g = a(0); + c = a(1); + h = a(223); + k = a(161); + f = a(27); + l = a(222); + m = a(221); + b.prototype.poa = function() { + switch (this.config().NV) { + case f.rj.nW: + return l.hca.N1(this.Uoa, this.cast); + case f.rj.rw: + return m.tw.N1(this.config); default: - return this.Qha; + return this.Uoa; } }; a = b; - a = f.__decorate([d.N(), f.__param(0, d.j(l.hJ)), f.__param(1, d.j(h.qaa)), f.__param(2, d.j(m.pS))], a); - c.Zya = a; - }, function(f, c, a) { - var d, h, l, g, m; + a = g.__decorate([c.N(), g.__param(0, c.l(k.vM)), g.__param(1, c.l(h.qga)), g.__param(2, c.l(l.oW))], a); + d.bJa = a; + }, function(g, d, a) { + var c, h, k, f, l; - function b(a, b, c) { - this.VM = a; - this.Oa = b; - this.FB = c; - this.iLa = "video/mp4;codecs={0}"; - this.rGa = "audio/mp4;codecs={0}"; - a = this.VM.YN(d.Jd.Ff); - this.hLa = l.od.zha(a); + function b(a, b, d) { + this.BQ = a; + this.Pa = b; + this.sE = d; + this.vWa = "video/mp4;codecs={0}"; + this.XQa = "audio/mp4;codecs={0}"; + a = this.BQ.CR(c.Jd.og); + this.uWa = k.vc.soa(a); } - Object.defineProperty(c, "__esModule", { + Object.defineProperty(d, "__esModule", { value: !0 }); - f = a(1); - d = a(34); - h = a(0); - l = a(124); - g = a(20); - a = a(220); - b.prototype.QE = function(a) { - a = this.VM.xXa(a); - a = this.Oa.ah(a) ? a : d.Jd.ZC; - return this.FB.format(this.iLa, this.hLa[a]); - }; - b.prototype.HM = function() { - return this.FB.format(this.rGa, l.od.bS); + g = a(0); + c = a(27); + h = a(1); + k = a(133); + f = a(23); + a = a(228); + b.prototype.zH = function(a) { + a = this.BQ.m9a(a); + a = this.Pa.tl(a) ? a : c.Jd.MF; + return this.sE.format(this.vWa, this.uWa[a]); + }; + b.prototype.gQ = function() { + return this.sE.format(this.XQa, k.vc.WV); }; - m = b; - m = f.__decorate([h.N(), f.__param(0, h.j(d.ES)), f.__param(1, h.j(g.rd)), f.__param(2, h.j(a.OU))], m); - c.WEa = m; - }, function(f, c, a) { - var d, h, l, g, m, k; + l = b; + l = g.__decorate([h.N(), g.__param(0, h.l(c.EW)), g.__param(1, h.l(f.ve)), g.__param(2, h.l(a.JY))], l); + d.kPa = l; + }, function(g, d, a) { + var c, h, k, f, l, m; function b(a, b, c) { this.config = a; - this.Dga = b; - this.o5a = c; - this.q6a = this.XRa(); + this.lna = b; + this.ajb = c; + this.ikb = this.w2a(); } - Object.defineProperty(c, "__esModule", { + Object.defineProperty(d, "__esModule", { value: !0 }); - f = a(1); - d = a(34); - h = a(150); - l = a(0); - g = a(64); - m = a(368); - a = a(367); - b.prototype.NYa = function() { - return this.zja().jO(); - }; - b.prototype.OYa = function(a) { - return this.Yn().jO(a); - }; - b.prototype.zja = function() { - this.HX && this.HX.type == this.config().IX || (this.HX = this.Dga.tRa(this.config().IX)); - return this.HX; - }; - b.prototype.Yn = function() { - this.TR && this.TR.type == this.config().UR || (this.TR = this.Dga.eSa(this.config().UR), this.TR.fX(this.o5a.pXa())); - return this.TR; - }; - b.prototype.xXa = function(a) { - var g; - if (!a || !a.length) return d.Jd.rJ; - a = this.AVa(a); - for (var b = [d.Jd.ZC, d.Jd.rJ, d.Jd.jK, d.Jd.Mo, d.Jd.Ff, d.Jd.yr], c = b.length; c--;) { - g = b[c]; - if ((0, this.q6a[g])(a)) return g; + g = a(0); + c = a(27); + h = a(161); + k = a(1); + f = a(72); + l = a(410); + a = a(409); + b.prototype.M$a = function() { + return this.Xqa().$ra(); + }; + b.prototype.N$a = function() { + return this.wp().$ra(); + }; + b.prototype.Xqa = function() { + this.z0 && this.z0.type == this.config().A0 || (this.z0 = this.lna.U1a(this.config().A0)); + return this.z0; + }; + b.prototype.wp = function() { + this.MV && this.MV.type == this.config().NV || (this.MV = this.lna.E2a(this.config().NV), this.MV.W_(this.ajb.c9a())); + return this.MV; + }; + b.prototype.m9a = function(a) { + var f; + if (!a || !a.length) return c.Jd.EM; + a = this.h7a(a); + for (var b = [c.Jd.MF, c.Jd.EM, c.Jd.qN, c.Jd.sq, c.Jd.og, c.Jd.ot, c.Jd.jh], d = b.length; d--;) { + f = b[d]; + if ((0, this.ikb[f])(a)) return f; } - return d.Jd.ZC; + return c.Jd.MF; }; - b.prototype.Co = function(a) { - return this.Yn().Co(a); + b.prototype.Zp = function(a) { + return this.wp().Zp(a); }; - b.prototype.Jp = function(a) { - return this.Yn().Jp(a); + b.prototype.wr = function(a) { + return this.wp().wr(a); }; - b.prototype.Vz = function() { - return this.Yn().Vz(); + b.prototype.CC = function() { + return this.wp().CC(); }; - b.prototype.aI = function() { - return this.Yn().aI(); + b.prototype.hL = function() { + return this.wp().hL(); }; - b.prototype.YH = function() { - return this.zja().YH(); + b.prototype.eL = function() { + return this.Xqa().eL(); }; - b.prototype.ZH = function() { - return this.Yn().ZH(); + b.prototype.fL = function() { + return this.wp().fL(); }; - b.prototype.bI = function() { - return this.Yn().bI(); + b.prototype.jL = function() { + return this.wp().jL(); }; - b.prototype.YN = function(a) { - return this.Yn().YN(a); + b.prototype.CR = function(a) { + return this.wp().CR(a); }; - b.prototype.Yz = function() { - return this.Yn().Yz(); + b.prototype.FC = function() { + return this.wp().FC(); }; - b.prototype.IF = function() { - return this.Yn().IF(); + b.prototype.CI = function() { + return this.wp().CI(); }; - b.prototype.AVa = function(a) { + b.prototype.h7a = function(a) { var b; b = {}; a.filter(function(a) { return "video" === a.type; }).forEach(function(a) { - b[a.le] = ""; + b[a.Me] = ""; }); return Object.keys(b); }; - b.prototype.XRa = function() { + b.prototype.w2a = function() { var a; a = {}; - a[d.Jd.yr] = function(a) { + a[c.Jd.jh] = function(a) { + return a.some(function(a) { + return -1 < a.indexOf("av1"); + }); + }; + a[c.Jd.ot] = function(a) { return a.some(function(a) { return -1 < a.indexOf("vp9"); }); }; - a[d.Jd.Ff] = function(a) { + a[c.Jd.og] = function(a) { return a.some(function(a) { return -1 < a.indexOf("hevc-dv"); }); }; - a[d.Jd.Mo] = function(a) { + a[c.Jd.sq] = function(a) { return a.some(function(a) { return -1 < a.indexOf("hevc-hdr"); }); }; - a[d.Jd.jK] = function(a) { + a[c.Jd.qN] = function(a) { return a.some(function(a) { return -1 < a.indexOf("hevc-main10-L") || -1 < a.indexOf("hevc-main-L"); }); }; - a[d.Jd.rJ] = function(a, b) { + a[c.Jd.EM] = function(a, b) { var c; c = {}; a.forEach(function(a) { return c[a] = 1; }); - a = Na(b); + a = za(b); for (b = a.next(); !b.done; b = a.next()) if (c[b.value]) return !0; - }.bind(null, [g.$.ju]); - a[d.Jd.ZC] = function() { + }.bind(null, [f.ba.DM]); + a[c.Jd.MF] = function() { return !0; }; return a; }; - k = b; - k = f.__decorate([l.N(), f.__param(0, l.j(h.hJ)), f.__param(1, l.j(a.n7)), f.__param(2, l.j(m.w8))], k); - c.Awa = k; - }, function(f, c, a) { - var b, d, h, l, g, m, k, r, n, q, z, w, G, x, y, C, F, A, T, H; - Object.defineProperty(c, "__esModule", { - value: !0 - }); - f = a(0); - b = a(34); - d = a(29); - h = a(702); - l = a(150); - g = a(107); - m = a(701); - k = a(215); - r = a(700); - n = a(368); - q = a(367); - z = a(699); - w = a(214); - G = a(5); - x = a(363); - y = a(694); - C = a(362); - F = a(693); - A = a(212); - T = a(692); - H = a(361); - c.VM = new f.dc(function(a) { - a(g.ky).to(m.WEa).Y(); - a(b.ES).to(h.Awa).Y(); - a(k.C9).to(r.Zya).Y(); - a(q.n7).to(z.fva).Y(); - a(k.qaa).th({ - isTypeSupported: G.JC && G.JC.isTypeSupported - }); - a(w.pS).th("undefined" !== typeof cast ? cast : null); - a(n.w8).NB(function() { + m = b; + m = g.__decorate([k.N(), g.__param(0, k.l(h.vM)), g.__param(1, k.l(a.dca)), g.__param(2, k.l(l.ida))], m); + d.oGa = m; + }, function(g, d, a) { + var b, c, h, k, f, l, m, n, q, t, v, y, w, D, z, E, P, F, G, N; + Object.defineProperty(d, "__esModule", { + value: !0 + }); + g = a(1); + b = a(27); + c = a(20); + h = a(817); + k = a(161); + f = a(115); + l = a(816); + m = a(223); + n = a(815); + q = a(410); + t = a(409); + v = a(814); + y = a(222); + w = a(6); + D = a(405); + z = a(809); + E = a(404); + P = a(808); + F = a(220); + G = a(807); + N = a(403); + d.BQ = new g.Vb(function(a) { + a(f.zA).to(l.kPa).$(); + a(b.EW).to(h.oGa).$(); + a(m.oea).to(n.bJa).$(); + a(t.dca).to(v.CEa).$(); + a(m.qga).Ig({ + isTypeSupported: w.jA && w.jA.isTypeSupported + }); + a(y.oW).Ig("undefined" !== typeof cast ? cast : null); + a(q.ida).Gz(function() { return { - pXa: function() { - return t._cad_global.platformExtraInfo; + c9a: function() { + return A._cad_global.platformExtraInfo; } }; }); - a(l.hJ).NB(function(a) { - return a.kc.get(d.Ef); + a(k.vM).Gz(function(a) { + return a.Xb.get(c.je); }); - a(x.n$).to(y.$za).Y(); - a(C.m$).to(F.aAa).Y(); - a(A.v8).to(T.qxa).Y(); - a(H.Naa).th(t); + a(D.Zea).to(z.rKa).$(); + a(E.Yea).to(P.sKa).$(); + a(F.hda).to(G.pHa).$(); + a(N.Lga).Ig(A); }); - }, function(f, c, a) { + }, function(g, d, a) { function b(a) { - this.HTa = void 0 === a ? 10 : a; + this.B4a = void 0 === a ? 10 : a; } - Object.defineProperty(c, "__esModule", { + Object.defineProperty(d, "__esModule", { value: !0 }); - f = a(1); - a = a(0); - b = f.__decorate([a.N()], b); - c.mFa = b; - }, function(f, c, a) { - var d, h; + g = a(0); + a = a(1); + b = g.__decorate([a.N()], b); + d.IPa = b; + }, function(g, d, a) { + var c, h; function b(a) { - this.mbb = a; - this.CR = {}; + this.Mqb = a; + this.tV = {}; } - Object.defineProperty(c, "__esModule", { + Object.defineProperty(d, "__esModule", { value: !0 }); - f = a(1); - d = a(0); - a = a(216); - b.prototype.LWa = function() { + g = a(0); + c = a(1); + a = a(224); + b.prototype.v8a = function() { var a, b, c; a = []; - for (b in this.CR) { - c = this.CR[b]; + for (b in this.tV) { + c = this.tV[b]; a.push({ - iz: b, - rx: c.Nl().rx, - DZ: c.Nl().DZ + mH: Number(b), + Bz: c.Tn().Bz, + J2: c.Tn().J2 }); } return a; }; - b.prototype.cM = function(a) { + b.prototype.tP = function(a) { var b, c; - b = a.iz; - c = this.CR[b]; - c || (c = this.mbb(), this.CR[b] = c); - c.cM(a); + b = a.mH; + c = this.tV[b]; + c || (c = this.Mqb(), this.tV[b] = c); + c.tP(a); }; h = b; - h = f.__decorate([d.N(), f.__param(0, d.j(a.RU))], h); - c.kva = h; - }, function(f, c, a) { - var d, h, l, g; + h = g.__decorate([c.N(), g.__param(0, c.l(a.OY))], h); + d.JEa = h; + }, function(g, d, a) { + var c, h, k, f; function b(a) { this.config = a; - this.s5 = h.cl; - this.xB = []; + this.K$ = h.Sf; + this.mE = []; } - Object.defineProperty(c, "__esModule", { + Object.defineProperty(d, "__esModule", { value: !0 }); - f = a(1); - d = a(0); - h = a(42); - l = a(7); - a = a(370); - b.prototype.Nl = function() { + g = a(0); + c = a(1); + h = a(31); + k = a(4); + a = a(412); + b.prototype.Tn = function() { var b; - for (var a; 0 < this.xB.length;) a = this.xB.shift(), this.vfa(a); - a = void 0 === this.gF || void 0 === this.Pv ? l.cl : this.Pv.ie(this.gF); - b = a.Sla() ? 0 : this.s5.qa(h.Ix) / a.qa(l.Ma); + for (var a; 0 < this.mE.length;) a = this.mE.shift(), this.Mla(a); + a = void 0 === this.UH || void 0 === this.Px ? k.Sf : this.Px.Gd(this.UH); + b = a.Mta() ? 0 : this.K$.ma(h.Qz) / a.ma(k.Aa); return { - rx: Math.floor(b), - DZ: a.qa(l.Ma) - }; - }; - b.prototype.cM = function(a) { - this.s5 = this.s5.add(a.size); - this.xB.push(a.GTa); - for (this.xB.sort(function(a, b) { - return a.start.Gk(b.start); - }); this.xB.length > this.config.HTa;) a = this.xB.shift(), this.vfa(a); - }; - b.prototype.vfa = function(a) { - void 0 === this.gF && (this.gF = a.start); - void 0 !== this.Pv && 0 > this.Pv.Gk(a.start) && (this.gF = this.gF.add(a.start.ie(this.Pv))); - if (void 0 === this.Pv || 0 > this.Pv.Gk(a.end)) this.Pv = a.end; - }; - g = b; - g = f.__decorate([d.N(), f.__param(0, d.j(a.Jba))], g); - c.nFa = g; - }, function(f, c, a) { - var b, d, h, l, g, m; - Object.defineProperty(c, "__esModule", { - value: !0 - }); - f = a(0); - b = a(706); - d = a(705); - h = a(704); - l = a(369); - g = a(370); - m = a(216); - c.Pab = new f.dc(function(a) { - a(m.Kba).to(b.nFa); - a(l.s7).to(d.kva).Y(); - a(g.Jba).th(new h.mFa()); - a(m.RU).Yl(function(a) { + Bz: Math.floor(b), + J2: a.ma(k.Aa) + }; + }; + b.prototype.tP = function(a) { + this.K$ = this.K$.add(a.size); + this.mE.push(a.A4a); + for (this.mE.sort(function(a, b) { + return a.start.ql(b.start); + }); this.mE.length > this.config.B4a;) a = this.mE.shift(), this.Mla(a); + }; + b.prototype.Mla = function(a) { + void 0 === this.UH && (this.UH = a.start); + void 0 !== this.Px && 0 > this.Px.ql(a.start) && (this.UH = this.UH.add(a.start.Gd(this.Px))); + if (void 0 === this.Px || 0 > this.Px.ql(a.end)) this.Px = a.end; + }; + f = b; + f = g.__decorate([c.N(), g.__param(0, c.l(a.Kha))], f); + d.JPa = f; + }, function(g, d, a) { + var b, c, h, k, f, l; + Object.defineProperty(d, "__esModule", { + value: !0 + }); + g = a(1); + b = a(821); + c = a(820); + h = a(819); + k = a(411); + f = a(412); + l = a(224); + d.Cz = new g.Vb(function(a) { + a(l.Lha).to(b.JPa); + a(k.ica).to(c.JEa).$(); + a(f.Kha).Ig(new h.IPa()); + a(l.OY).ih(function(a) { return function() { - return a.kc.get(m.Kba); + return a.Xb.get(l.Lha); }; }); }); - }, function(f, c, a) { - var d, h, l, g, m, k; + }, function(g, d, a) { + var c, h, k, f, l; - function b(a, b, c, g, f, h, m, k, p, n, q, t, A, H, O, B, P, V) { - var r; - r = this; - this.bg = a; - this.Oa = b; - this.gb = c; - this.dh = f; - this.Nm = m; - this.qo = k; - this.Cv = p; - this.xLa = n; - this.config = q; - this.Aq = A; - this.M = H; - d.$i(this, "playback"); - this.log = g.Bb("VideoPlayer", this.L); - this.U = t(H, P, O, B); - this.U.background = !0; - this.U.pe = V; - this.U.Oc = P; - this.Joa = []; + function b(a, b, c, d, f, g, k, l, p, n, q, t, A, N, O, G, U) { + var m; + m = this; + this.Hd = a; + this.Pa = b; + this.Va = c; + this.jc = f; + this.$y = k; + this.pH = l; + this.KWa = p; + this.config = n; + this.hg = t; + this.R = A; + this.j = q.create(A, G, N, O); + this.j.background = !0; + this.j.Fa = U; + this.j.uc = G; + this.log = d.lb("VideoPlayer", this.j); + this.fxa = []; this.ended = !1; - this.y6(); - this.element = this.U.Xf; - this.aa = this.U.aa; - this.ready = !1; - this.U.state.addListener(function(a) { - a.newValue === l.mk.Bu && (r.ready, r.Tc(l.Qa.$0, { - movieId: r.M - })); + this.eba(); + this.j.state.addListener(function(a) { + a.newValue === h.ph.Fq && m.qd(h.kb.X5, { + movieId: A + }); }); - this.U.Pb.Qf && (this.Lt = h.vRa(this, this.U, this.Aq), this.U.addEventListener(l.Ea.T4, function(a) { - r.Tc(l.Qa.MQ, { + this.j.Ta.Ze && (this.EB = g.W1a(this, this.j, this.hg), this.j.addEventListener(h.X.f$, function(a) { + m.qd(h.kb.gnb, { segmentId: a.segmentId }); })); } - Object.defineProperty(c, "__esModule", { + Object.defineProperty(d, "__esModule", { value: !0 }); - d = a(49); - h = a(2); - l = a(46); - g = a(7); - m = a(5); - k = a(61); - b.prototype.kYa = function() { - return this.U.UP.value; + c = a(2); + h = a(16); + k = a(4); + f = a(6); + l = a(62); + b.prototype.isReady = function() { + return this.j.state.value === h.ph.Fq; + }; + b.prototype.M9a = function() { + return this.j.R; + }; + b.prototype.V4 = function() { + return this.j.ka; }; - b.prototype.gYa = function() { - return this.U.paused.value; + b.prototype.$x = function() { + return this.j.sf; }; - b.prototype.lXa = function() { + b.prototype.ly = function() { + return this.j.XT.value; + }; + b.prototype.tcb = function() { + return this.j.paused.value; + }; + b.prototype.kcb = function() { return this.ended; }; - b.prototype.Nj = function() { + b.prototype.qk = function() { var a; - a = this.U.eY.value; + a = this.j.U0.value; return a ? { - networkStalled: !!a.hR, - stalled: !!a.hR, - progress: a.Rh, - progressRollback: !!a.t6a + networkStalled: !!a.cV, + stalled: !!a.cV, + progress: a.oi, + progressRollback: !!a.lkb } : null; }; b.prototype.getError = function() { var a; - a = this.U.Gg; - return a ? a.GR() : null; + a = this.j.Ch; + return a ? a.zaa() : null; }; - b.prototype.Un = function() { - return this.U.pc.value; + b.prototype.qp = function() { + return this.j.sd.value; }; - b.prototype.F_ = function() { - return this.U.F_(); + b.prototype.o8a = function() { + var a; + a = (this.EI() || 0) + this.j.ara(); + return Math.min(a, this.pra()); }; - b.prototype.fO = function() { - return this.U.Ts(); + b.prototype.EI = function() { + return this.j.ay(); }; - b.prototype.kXa = function() { - return this.U.duration; + b.prototype.pra = function() { + return this.j.Hx.ma(k.Aa); }; - b.prototype.dZa = function() { - return this.U.Gx ? { - width: this.U.Gx.width, - height: this.U.Gx.height + b.prototype.iab = function() { + return this.j.LE ? { + width: this.j.LE.width, + height: this.j.LE.height } : null; }; - b.prototype.UWa = function() { - var g; - if (this.U.EI) { - for (var a, b = 0; b < this.U.EI.length; b++) - for (var c = this.U.EI[b], d = 0; d < c.Db.length; d++) { - g = c.Db[d]; - this.Oa.ye(g.hSa) && this.Oa.ye(g.Dha) && this.Oa.ye(g.Cha) && this.Oa.ye(g.Bha) && 0 < g.Dha && (g = g.Bha / g.Cha, a = this.Oa.ye(a) ? Math.min(a, g) : g); + b.prototype.B8a = function() { + var f; + if (this.j.hq) { + for (var a, b = 0; b < this.j.hq.length; b++) + for (var c = this.j.hq[b], d = 0; d < c.qc.length; d++) { + f = c.qc[d]; + this.Pa.Af(f.G2a) && this.Pa.Af(f.woa) && this.Pa.Af(f.voa) && this.Pa.Af(f.uoa) && 0 < f.woa && (f = f.uoa / f.voa, a = this.Pa.Af(a) ? Math.min(a, f) : f); } return a; } }; - b.prototype.fXa = function() { + b.prototype.N8a = function() { var a; a = this; return { - addEventListener: this.U.CZ.addEventListener, - removeEventListener: this.U.CZ.removeEventListener, + addEventListener: this.j.z2.addEventListener, + removeEventListener: this.j.z2.removeEventListener, getModel: function() { - return a.U.CZ.eqb; + return a.j.z2.wGb; }, getTime: function() { - return a.gb.oe().qa(g.Ma); + return a.Va.Pe().ma(k.Aa); }, getGroups: function() { var b; - b = a.U.RP; - return b ? b.tXa() : []; + b = a.j.TT; + return b ? b.i9a() : []; } }; }; - b.prototype.tWa = function() { + b.prototype.c8a = function() { var a, c; a = []; - if (this.U.js) - for (var b = 0; b < this.U.js.length; b++) { - c = this.aA(this.U.js[b]); + if (this.j.xm) + for (var b = 0; b < this.j.xm.length; b++) { + c = this.JC(this.j.xm[b]); null !== c && a.push(c); } return a; }; - b.prototype.UYa = function() { + b.prototype.csa = function() { var a, d; a = []; - if (null !== this.U.gc.value) - for (var b = this.U.gc.value.Ym, c = 0; c < b.length; c++) { - d = this.aA(b[c]); + if (null !== this.j.Ic.value) + for (var b = this.j.Ic.value.mj, c = 0; c < b.length; c++) { + d = this.JC(b[c]); null !== d && a.push(d); } return a; }; - b.prototype.WXa = function() { - return this.U.muted.value; + b.prototype.scb = function() { + return this.j.muted.value; }; - b.prototype.eZa = function() { - return this.U.volume.value; + b.prototype.kab = function() { + return this.j.volume.value; }; - b.prototype.sWa = function() { - return this.aA(this.U.gc.value); + b.prototype.b8a = function() { + return this.JC(this.j.Ic.value); }; - b.prototype.TYa = function() { - return this.aA(this.U.Fc.value); + b.prototype.bsa = function() { + return this.JC(this.j.kc.value); }; - b.prototype.E9a = function(a) { - this.U.muted.set(!!a); + b.prototype.dcb = function() { + return !!this.j.background; }; - b.prototype.R9a = function(a) { - this.U.volume.set(this.coa(a, 1)); + b.prototype.Tnb = function(a) { + this.j.muted.set(!!a); }; - b.prototype.I9a = function(a) { - this.U.playbackRate.set(this.coa(a, 2)); + b.prototype.gob = function(a) { + this.j.volume.set(this.twa(a, 1)); }; - b.prototype.r9a = function(a) { - for (var b, c = 0; c < this.U.js.length; c++) - if (b = this.U.js[c], this.aA(b) == a) { - this.U.gc.set(b); - return; - } this.log.error("Invalid setAudioTrack call"); - }; - b.prototype.O9a = function(a) { - if (null != this.U.gc.value) { - for (var b = this.U.gc.value.Ym, c, d = 0; d < b.length; d++) { - c = b[d]; - if (!a && null == c) { - this.U.Fc.set(null); + b.prototype.Xnb = function(a) { + this.j.playbackRate.set(this.twa(a, 2)); + }; + b.prototype.Inb = function(a) { + var b, c; + b = this; + c = this.j.xm.find(function(c) { + return b.JC(c) === a; + }); + c ? this.j.Ic.set(c) : this.log.error("Invalid setAudioTrack call"); + }; + b.prototype.hAa = function(a) { + var d; + if (null !== this.j.Ic.value) { + for (var b = this.j.Ic.value.mj, c = 0; c < b.length; c++) { + d = b[c]; + if (!a && null === d) { + this.j.kc.set(null); return; } - if (this.aA(c) == a) { - this.log.info("Setting Timed Text, profile: " + c.Q2); - this.U.Fc.set(c); + if (this.JC(d) === a) { + this.log.info("Setting Timed Text, profile: " + d.profile); + this.j.kc.set(d); return; } } this.log.error("Invalid setTimedTextTrack call"); } }; - b.prototype.s9a = function() { - this.U.background = !1; + b.prototype.Sza = function(a) { + this.j.background = a; }; - b.prototype.iR = function() { - this.U.iR(); + b.prototype.YK = function() { + this.j.YK(); }; b.prototype.addEventListener = function(a, b, c) { - this.dh.addListener(a, b, c); + this.jc.addListener(a, b, c); }; b.prototype.removeEventListener = function(a, b) { - this.dh.removeListener(a, b); + this.jc.removeListener(a, b); }; - b.prototype.Dt = function() {}; + b.prototype.xv = function() {}; b.prototype.load = function() { var a; a = this; - this.loaded || (this.loaded = !0, this.U.load(function(b, c) { + this.loaded || (this.loaded = !0, this.j.load(function(b, d) { try { - a.Tc(l.Qa.aP, void 0, !0); - b.Sa && b.Sa.watermarkInfo && a.Tc(l.Qa.ZR, b.Sa.watermarkInfo, !0); - b.Sa.choiceMap && a.Tc(l.Qa.LQ, { - segmentMap: b.Sa.choiceMap - }, !0); - c({ - K: !0 + a.qd(h.kb.Tdb, void 0, !0); + b.Fa && (b.Fa.watermarkInfo && a.qd(h.kb.Isb, b.Fa.watermarkInfo, !0), b.Fa.choiceMap && a.qd(h.kb.fnb, { + segmentMap: b.Fa.choiceMap + }, !0)); + d({ + S: !0 }); - } catch (z) { - c({ - R: h.u.te, - za: a.bg.yc(z) + } catch (x) { + d({ + T: c.H.qg, + Ja: a.Hd.ad(x) }); } })); @@ -89447,151 +94226,141 @@ v7AA.H22 = function() { b.prototype.close = function(a) { var b; b = this; - this.Tga || (this.Tga = new Promise(function(c) { - a ? b.U.Hh(a, c) : b.U.close(c); + this.Cna || (this.Cna = new Promise(function(c) { + a ? b.j.md(a, c) : b.j.close(c); })); - return this.Tga; + return this.Cna; }; b.prototype.play = function() { - this.load(); - this.U.paused.value && (this.U.paused.set(!1), this.U.fireEvent(l.Ea.Zsa)); + this.j.En ? this.j.fireEvent(h.X.kza) : (this.load(), this.j.paused.value && (this.j.paused.set(!1), this.j.fireEvent(h.X.iCa))); }; b.prototype.pause = function() { this.load(); - this.U.paused.value || (this.U.paused.set(!0), this.U.fireEvent(l.Ea.Ysa)); - }; - b.prototype.seek = function(a, b) { - this.U.bf ? this.U.bf.seek(a, b) : this.U.rm = a; + this.j.paused.value || (this.j.paused.set(!0), this.j.fireEvent(h.X.hsb)); }; - b.prototype.t5a = function(a) { - return this.Lt ? (this.log.trace("Playing a segment", a), this.Lt.play(a)) : Promise.resolve(); + b.prototype.seek = function(a, b, c) { + this.j.Gh ? this.j.Gh.seek(a, b, c) : this.j.sr = a; }; - b.prototype.J6a = function(a) { - return this.Lt ? (this.log.trace("Queueing a segment", a), this.Lt.Eq(a)) : Promise.resolve(); + b.prototype.fjb = function(a) { + return this.EB ? (this.log.trace("Playing a segment", a), this.EB.play(a)) : Promise.resolve(); }; - b.prototype.Uq = function(a, b) { - return this.Lt ? (this.log.trace("Updating next segment weights", a, b), this.Lt.Uq(a, b)) : Promise.resolve(); + b.prototype.Ekb = function(a) { + return this.EB ? (this.log.trace("Queueing a segment", a), this.EB.pi(a)) : Promise.resolve(); }; - b.prototype.pI = function() { - this.U.pI(); + b.prototype.fq = function(a, b) { + return this.EB ? (this.log.trace("Updating next segment weights", a, b), this.EB.fq(a, b)) : Promise.resolve(); }; - b.prototype.KH = function(a) { - this.U.Xt && this.U.Xt.KH(a); - }; - b.prototype.LH = function(a) { - this.U.Xt && this.U.Xt.LH(a); + b.prototype.BL = function() { + this.j.BL(); }; - b.prototype.JF = function() { - return this.U.Xt ? this.U.Xt.JF() : !1; + b.prototype.MR = function() { + var a; + a = this.j.dn.MR(); + return { + bounds: a.dH, + margins: a.Qm, + size: a.size, + visibility: a.visibility + }; }; - b.prototype.MH = function(a) { - this.U.Xt && this.U.Xt.MH(a); + b.prototype.TK = function(a) { + var b, c, d; + b = a.bounds; + c = a.margins; + d = a.size; + a = a.visibility; + this.j.sL && (b && this.j.sL.y$(b), c && this.j.sL.z$(c), "boolean" === typeof a && this.j.sL.A$(a)); + this.j.dn && d && this.j.dn.cob(d); }; - b.prototype.l5 = function(a) { - this.U.l5(a); + b.prototype.RU = function(a) { + this.j.RU(a); }; - b.prototype.ZYa = function(a) { - return this.U.Go ? this.U.Go.sXa(a) : null; + b.prototype.Y$a = function(a) { + return this.j.Hs && this.j.Hs.h9a(a) || null; }; - b.prototype.pWa = function() { - return this.bg.st({ + b.prototype.X7a = function() { + return this.Hd.Dk({ playerver: this.config.version, - jssid: this.config.a0a, - groupName: this.config.config.Zn, - xid: this.U.aa, - pbi: this.U.index - }, this.config.p5a, { + jssid: this.config.Ocb, + groupName: this.config.config.xp, + xid: this.j.ka, + pbi: this.j.index + }, this.config.bjb, { prefix: "pi_" }); }; - b.prototype.k_a = function(a) { - this.U.Hh(this.Aq(h.v.dxa, h.u.Vg, a)); + b.prototype.Lbb = function(a) { + this.j.md(this.hg(c.I.YGa, c.H.Sh, a)); }; - b.prototype.P0a = function(a, b, c) { - if (!this.Oa.Lfa(a)) throw Error("invalid url"); - this.Joa.push({ + b.prototype.Idb = function(a, b, c) { + if (!this.Pa.jma(a)) throw Error("invalid url"); + this.fxa.push({ url: a, name: b, - lNa: c + tYa: c }); - this.ppa(); + this.Txa(); }; - b.prototype.oka = function() { - var a, b, c, d, g, f, h, l; + b.prototype.Wra = function() { + var a, b, c, d, f, g, k, h; a = {}; - b = this.U.Toa; + b = this.j.cK; try { - if (this.U.Gg && (a.errorCode = this.U.Gg.Fz, a.errorType = b ? "endplay" : "startplay"), a.playdelay = this.U.Toa, a.xid = this.U.aa, this.U.Sa && this.Oa.Xg(this.U.Sa.packageId) && (a.packageId = Number(this.U.Sa.packageId)), a.auth = this.U.vWa(), a.hdr = this.U.GXa(), b) { - a.totaltime = this.U.Sl ? this.RVa(this.U.Sl.h0()) : 0; - a.abrdel = this.U.Sl ? this.U.Sl.Aja() : 0; - c = this.U.bf; - d = c ? c.Zv() : null; - this.Oa.ye(d) && (a.totdfr = d); - d = c ? c.CF() : null; - this.Oa.ye(d) && (a.totcfr = d); - g = c ? c.HXa() : null; - g && (a.rbfrs_decoder = g.zSa, a.rbfrs_network = g.c3a); - a.rbfrs_delay = this.U.Sl ? this.U.Sl.IXa() : 0; - a.init_vbr = this.U.s_a; - f = this.eO(); - this.Oa.ah(f) && (a.pdltime = f); - h = this.U.Tl.value; - l = h && h.stream; - l && (a.vbr = l.J, a.vdlid = l.ac); - a.bufferedTime = this.U.HWa(); - } - } catch (C) { - this.log.error("error capturing session summary", C); + if (this.j.Ch && (a.errorCode = this.j.Ch.DQ, a.errorType = b ? "endplay" : "startplay"), a.playdelay = this.j.cK, a.xid = this.j.ka, this.j.Fa && this.Pa.uh(this.j.Fa.packageId) && (a.packageId = Number(this.j.Fa.packageId)), a.auth = this.j.e8a(), a.hdr = this.j.s9a(), b) { + a.totaltime = this.j.lo ? this.Wx(this.j.lo.T4()) : 0; + a.abrdel = this.j.lo ? this.j.lo.Yqa() : 0; + c = this.j.Gh; + d = c ? c.Zx() : null; + this.Pa.Af(d) && (a.totdfr = d); + d = c ? c.wI() : null; + this.Pa.Af(d) && (a.totcfr = d); + f = c ? c.t9a() : null; + f && (a.rbfrs_decoder = f.x3a, a.rbfrs_network = f.vgb); + a.rbfrs_delay = this.j.lo ? this.j.lo.u9a() : 0; + a.init_vbr = this.j.kS; + g = this.IR(); + this.Pa.tl(g) && (a.pdltime = g); + k = this.j.ig.value; + h = k && k.stream; + h && (a.vbr = h.O, a.vdlid = h.pd); + a.bufferedTime = this.j.ara(); + } + } catch (z) { + this.log.error("error capturing session summary", z); } return a; }; - b.prototype.ZN = function() { + b.prototype.f4 = function() { var a; a = this; return new Promise(function(b, c) { - a.U.ZN(function(a) { + a.j.f4(function(a) { a.success ? b(a) : c(a); }); }); }; - b.prototype.Rn = function(a) { + b.prototype.bI = function(a) { var b, c, d; b = this; - if (this.Oa.ye(this.U.pc.value)) { - if (this.Nm.oh.events && this.Nm.oh.events.active) { - c = Object.assign({}, this.qo.zs(this.U, !1), { - action: a - }); - d = this.Cv(k.gg.Rn); - return this.xLa().then(function(a) { - return d.Am(b.log, a.profile, b.U.Sa.mt, c); - }).then(function() { - return { - success: !0 - }; - })["catch"](function(a) { - return { - success: !1, - errorCode: a.code, - errorSubCode: a.tb, - errorExternalCode: a.Sc, - errorData: a.data, - errorDetails: a.Nv - }; - }); - } - if (this.U.xi && this.U.dj) return this.U.dj.Rn(a).then(function(a) { + if (this.Pa.Af(this.j.sd.value)) { + c = Object.assign({}, this.$y.qu(this.j, !1), { + action: a + }); + d = this.pH(l.Nh.bI); + return this.KWa().then(function(a) { + return d.op(b.log, a.profile, b.j.Fa.sy, c); + }).then(function() { return { - success: a.K + success: !0 }; })["catch"](function(a) { return { - success: a.K, - errorCode: h.v.k8, - errorSubCode: a.R, - errorExternalCode: a.ub, - errorData: a.ji, - errorDetails: a.za + success: !1, + errorCode: a.code, + errorSubCode: a.tc, + errorExternalCode: a.Ef, + errorData: a.data, + errorDetails: a.YB }; }); } @@ -89599,217 +94368,223 @@ v7AA.H22 = function() { success: !1 }); }; - b.prototype.aA = function(a) { - return null !== a ? (a.U3 = a.U3 || { - trackId: a.Ab, - bcp47: a.Dl, - displayName: a.displayName, - trackType: a.b6, - channels: a.kz - }, a.W0 && (a.U3.isImageBased = !0), a.U3) : null; + b.prototype.JC = function(a) { + var b; + if (null !== a) { + b = a.wkb = a.wkb || { + trackId: a.Tb, + bcp47: a.yj, + displayName: a.displayName, + trackType: a.vi, + channels: a.jk + }; + a.Ap && (b.isImageBased = !0); + this.wcb(a) && (b.isNative = a.isNative); + this.xcb(a) && (b.isNoneTrack = a.gJ(), b.isForcedNarrative = a.sS()); + return b; + } + return null; + }; + b.prototype.wcb = function(a) { + return "undefined" !== typeof a.isNative; }; - b.prototype.coa = function(a, b) { + b.prototype.xcb = function(a) { + return "undefined" !== typeof a.gJ && "undefined" !== typeof a.sS; + }; + b.prototype.twa = function(a, b) { return 0 <= a ? a <= b ? a : b : 0; }; - b.prototype.RVa = function(a) { - return this.Oa.ye(a) ? (a / 1E3).toFixed(0) : ""; + b.prototype.Wx = function(a) { + return this.Pa.Af(a) ? (a / 1E3).toFixed(0) : ""; }; - b.prototype.Tc = function(a, b, c) { + b.prototype.qd = function(a, b, c) { b = b || {}; b.target = this; - this.dh.mc(a, b, !c); + this.jc.Db(a, b, !c); }; - b.prototype.y6 = function() { + b.prototype.eba = function() { var a; a = this; - this.U.addEventListener(l.Ea.$ra, function() { - a.Tc(l.Qa.Ik); + this.j.addEventListener(h.X.naa, function() { + a.qd(h.kb.Fm); }); - this.U.addEventListener(l.OT.Hga, function() { - a.Tc(l.Qa.tE); + this.j.addEventListener(h.X.ZS, function() { + a.qd(h.kb.Zma); }); - this.U.addEventListener(l.Ea.oQ, function() { - a.Tc(l.Qa.tE); + this.j.addEventListener(h.X.Rp, function() { + a.qd(h.kb.Zma); }); - this.U.addEventListener(l.Ea.VF, function(b) { - a.Tc(l.Qa.VF, { + this.j.addEventListener(h.X.RC, function(b) { + a.qd(h.kb.RC, { errorCode: b }); }); - this.U.addEventListener(l.Ea.bga, function(b) { - a.Tc(l.Qa.NX, b); + this.j.addEventListener(h.X.Ima, function(b) { + a.qd(h.kb.uYa, b.j); }); - this.U.addEventListener(l.Ea.vv, function(b) { - a.Tc(l.Qa.OX, b); + this.j.addEventListener(h.X.En, function(b) { + a.qd(h.kb.vYa, b); }); - this.U.UP.addListener(function() { - a.Tc(l.Qa.D3); + this.j.XT.addListener(function() { + a.qd(h.kb.sjb); }); - this.U.paused.addListener(function() { - a.Tc(l.Qa.MP); + this.j.paused.addListener(function() { + a.qd(h.kb.Fib); }); - this.U.muted.addListener(function() { - a.Tc(l.Qa.xP); + this.j.muted.addListener(function() { + a.qd(h.kb.ngb); }); - this.U.volume.addListener(function() { - a.Tc(l.Qa.WR); + this.j.volume.addListener(function() { + a.qd(h.kb.Dsb); }); - this.U.Tb.addListener(function() { - a.Isa(); + this.j.Pc.addListener(function() { + a.PBa(); }); - this.U.state.addListener(function() { - a.Isa(); + this.j.state.addListener(function() { + a.PBa(); }); - this.U.eY.addListener(function(b) { - a.X0a || a.U.state.value != l.mk.Bu || b.newValue || (a.X0a = !0, a.Tc(l.Qa.loaded), setTimeout(function() { - a.log.debug.bind(a.log, "summary ", a.oka()); + this.j.U0.addListener(function(b) { + a.Qdb || a.j.state.value != h.ph.Fq || b.newValue || (a.Qdb = !0, a.qd(h.kb.loaded), setTimeout(function() { + a.log.debug.bind(a.log, "summary ", a.Wra()); })); - a.Tc(l.Qa.gz); + a.qd(h.kb.V0); }); - this.U.gc.addListener(function(b) { - a.Tc(l.Qa.hE); - b.oldValue && b.newValue && b.oldValue.Ym == b.newValue.Ym || a.Tc(l.Qa.Do); + this.j.Ic.addListener(function(b) { + a.qd(h.kb.JP); + b.oldValue && b.newValue && b.oldValue.mj == b.newValue.mj || a.qd(h.kb.Ez); setTimeout(function() { var b; - if (null !== a.U.gc.value && null !== a.U.Fc.value) { - b = a.U.gc.value.Ym; - 0 <= b.indexOf(a.U.Fc.value) || (a.log.info("Changing timed text track to match audio track"), a.U.Fc.set(b[0])); + if (null !== a.j.Ic.value && null !== a.j.kc.value) { + b = a.j.Ic.value.mj; + 0 <= b.indexOf(a.j.kc.value) || (a.log.info("Changing timed text track to match audio track"), a.j.kc.set(b[0])); } }, 0); }); - this.U.Fc.addListener(function(b) { - b.oldValue && b.newValue && b.oldValue.Ab == b.newValue.Ab || a.Tc(l.Qa.jI); + this.j.kc.addListener(function(b) { + b.oldValue && b.newValue && b.oldValue.Tb == b.newValue.Tb || a.qd(h.kb.zE); }); - this.U.addEventListener(l.Ea.Do, function() { - a.Tc(l.Qa.Do); + this.j.addEventListener(h.X.Ez, function() { + a.qd(h.kb.Ez); }); - this.U.addEventListener(l.Ea.Zt, function() { - a.Tc(l.Qa.Zt); + this.j.addEventListener(h.X.zL, function() { + a.qd(h.kb.zL); }); - this.U.state.addListener(function(b) { + this.j.state.addListener(function(b) { switch (b.newValue) { - case l.mk.Bu: - a.Tc(l.Qa.gN); - a.Tc(l.Qa.VR); - a.Tc(l.Qa.iE); - a.Tc(l.Qa.Do); - a.Tc(l.Qa.$O); - a.ppa(); - a.Wcb(); + case h.ph.Fq: + a.qd(h.kb.X4a); + a.qd(h.kb.ysb); + a.qd(h.kb.Dma); + a.qd(h.kb.Ez); + a.qd(h.kb.Sdb); + a.Txa(); + a.Nsb(); break; - case l.mk.hba: - a.U.Gg && a.Tc(l.Qa.error, a.U.Gg.GR()); + case h.ph.CY: + a.j.Ch && a.qd(h.kb.error, a.j.Ch.zaa()); break; - case l.mk.gba: - a.Tc(l.Qa.closed), a.dh.Ov(); + case h.ph.BY: + a.qd(h.kb.closed), a.jc.bC(); } }); }; - b.prototype.Wcb = function() { + b.prototype.Nsb = function() { var a; a = this; - this.U.Pq.addEventListener("showsubtitle", function(b) { - a.Tc(l.Qa.XQ, b, !0); + this.j.dn.addEventListener("showsubtitle", function(b) { + a.qd(h.kb.Aob, b, !0); }); - this.U.Pq.addEventListener("removesubtitle", function(b) { - a.Tc(l.Qa.mQ, b, !0); + this.j.dn.addEventListener("removesubtitle", function(b) { + a.qd(h.kb.Ilb, b, !0); }); }; - b.prototype.ppa = function() { - if (this.U.state.value == l.mk.Bu) { - for (var a, b, c; b = this.Joa.shift();) a = this.U.Pq.dX(b.url, b.name), b.lNa && (c = a); - c && this.U.Fc.set(c); + b.prototype.Txa = function() { + if (this.j.state.value == h.ph.Fq) { + for (var a, b, c; b = this.fxa.shift();) a = this.j.dn.V_(b.url, b.name), b.tYa && (c = a); + c && this.j.kc.set(c); } }; - b.prototype.Isa = function() { + b.prototype.PBa = function() { var a; - a = this.U.state.value == l.mk.Bu && this.U.Tb.value == l.fm.PS; - this.ended !== a && (this.ended = a, this.Tc(l.Qa.oN)); + a = this.j.state.value == h.ph.Fq && this.j.Pc.value == h.rn.KW; + this.ended !== a && (this.ended = a, this.qd(h.kb.b6a)); }; - b.prototype.eO = function() { + b.prototype.IR = function() { var a, b; try { a = /playercore.*js/; - b = m.cm.getEntriesByType("resource").filter(function(b) { + b = f.wq.getEntriesByType("resource").filter(function(b) { return null !== a.exec(b.name); }); if (b && 0 < b.length) return JSON.stringify(Math.round(b[0].duration)); - } catch (v) {} + } catch (u) {} }; - pa.Object.defineProperties(b.prototype, { - L: { - configurable: !0, - enumerable: !0, - get: function() { - return this.U; - } - } - }); - c.Wya = b; - }, function(f, c, a) { - var d, h, l, g, m, k, r, n, q, t, w, G, x; + d.YIa = b; + }, function(g, d, a) { + var c, h, k, f, l, m, n, q, t, v, y, w; function b(a) { - this.sb = a; + this.Nc = a; } - Object.defineProperty(c, "__esModule", { + Object.defineProperty(d, "__esModule", { value: !0 }); - f = a(1); - d = a(0); - h = a(236); - l = a(26); - g = a(20); - m = a(38); - k = a(12); - r = a(109); - n = a(218); - q = a(708); - t = a(23); - w = a(217); - G = a(61); - x = a(63); - b.prototype.WRa = function(a, b, c, d, f, h, p, u) { - return new q.Wya(this.sb.get(l.Re), this.sb.get(g.rd), this.sb.get(m.eg), this.sb.get(k.Jb), this.sb.get(r.nJ), this.sb.get(n.KU), this.sb.get(t.Oe), this.sb.get(w.rU), this.sb.get(G.mJ), this.sb.get(x.gn), a, b, c, d, f, h, p, u); + g = a(0); + c = a(1); + h = a(466); + k = a(22); + f = a(23); + l = a(24); + m = a(7); + n = a(69); + q = a(226); + t = a(823); + v = a(225); + y = a(62); + w = a(65); + b.prototype.t2a = function(a, b, c, d, g, h, p, r) { + return new t.YIa(this.Nc.get(k.Je), this.Nc.get(f.ve), this.Nc.get(l.Ue), this.Nc.get(m.sb), this.Nc.get(n.AM), this.Nc.get(q.FY), this.Nc.get(v.pY), this.Nc.get(y.OW), this.Nc.get(w.lq), a, b, c, d, g, h, p, r); }; a = b; - a = f.__decorate([d.N(), f.__param(0, d.j(h.DT))], a); - c.QFa = a; - }, function(f, c, a) { - var b, d; - Object.defineProperty(c, "__esModule", { + a = g.__decorate([c.N(), g.__param(0, c.l(h.jea))], a); + d.uQa = a; + }, function(g, d, a) { + var b, c; + Object.defineProperty(d, "__esModule", { value: !0 }); - f = a(0); - b = a(372); - d = a(709); - c.Lcb = new f.dc(function(a) { - a(b.aca).to(d.QFa).Y(); + g = a(1); + b = a(414); + c = a(824); + d.vsb = new g.Vb(function(a) { + a(b.cia).to(c.uQa).$(); }); - }, function(f, c, a) { - var d, h; + }, function(g, d, a) { + var c, h; function b(a) { this.config = a; } - Object.defineProperty(c, "__esModule", { + Object.defineProperty(d, "__esModule", { value: !0 }); - f = a(1); - d = a(0); - a = a(29); - b.prototype.p6a = function(a, b, c) { + g = a(0); + c = a(1); + a = a(20); + b.prototype.hkb = function(a, b, c) { var d; - if (this.config().$8a) { + if (this.config().snb) { d = a.metrics; - c || (void 0 === d ? b.KA.transition({ - srcxid: b.aa, - srcmid: b.M, + c || (void 0 === d ? b.fD.transition({ + isBranching: b.Ta.Ze || void 0, + srcxid: b.ka, + srcmid: b.R, segment: a.segmentId, dataerror: "missingMetrics" - }) : b.KA.transition({ - srcxid: b.aa, - srcmid: b.M, + }) : b.fD.transition({ + isBranching: b.Ta.Ze || void 0, + srcxid: b.ka, + srcmid: b.R, segment: a.segmentId, srcsegment: d.srcsegment, srcsegmentduration: d.srcsegmentduration, @@ -89825,201 +94600,195 @@ v7AA.H22 = function() { } }; h = b; - h = f.__decorate([d.N(), f.__param(0, d.j(a.Ef))], h); - c.xFa = h; - }, function(f, c, a) { + h = g.__decorate([c.N(), g.__param(0, c.l(a.je))], h); + d.ZPa = h; + }, function(g, d, a) { var h; function b() {} - function d(a, b, c, d, f) { + function c(a, b, c, d, g) { this.debug = a; this.version = b; - this.a0a = c; - this.p5a = d; - this.config = f; + this.Ocb = c; + this.bjb = d; + this.config = g; } - Object.defineProperty(c, "__esModule", { + Object.defineProperty(d, "__esModule", { value: !0 }); - f = a(1); - a = a(0); - d.prototype.E_ = function() { - return this.config.jga; + g = a(0); + a = a(1); + c.prototype.X3 = function() { + return this.config.Rma; }; - d.prototype.eka = function() { - return this.config.F5a; + c.prototype.Nra = function() { + return this.config.ujb; }; - b.prototype.Zp = function(a, b, c, f, h) { - return new d(a, b, c, f, h); + b.prototype.Ju = function(a, b, d, g, h) { + return new c(a, b, d, g, h); }; h = b; - h = f.__decorate([a.N()], h); - c.SEa = h; - }, function(f, c, a) { - var l, g, m, k; + h = g.__decorate([a.N()], h); + d.dPa = h; + }, function(g, d, a) { + var k, f, l, m; - function b(a, b, c, d, g, f, h, l, k) { + function b(a, b, c, d, f, g, k, h, m) { var p; p = this; - this.cc = b; - this.L = c; - this.L2 = d; - this.EG = g; - this.ha = f; - this.EMa = h; - this.Aq = l; - this.Fbb = k; - this.log = a.Bb("SegmentManager", this.L); - this.bk = new Map(); - this.xla = !0; - this.L.Pb.Qf && (this.L.addEventListener(m.Ea.T4, function(a) { - return p.r4a(a); - }), this.L.addEventListener(m.Ea.Tqa, function(a) { - return p.q4a(a); - })); + this.Zb = b; + this.j = c; + this.vD = d; + this.hv = f; + this.ia = g; + this.AP = k; + this.hg = h; + this.Faa = m; + this.kz = function() { + p.Kp && (p.Kp.closed || p.Kp.unsubscribe(), p.Kp = void 0); + }; + this.log = a.lb("SegmentManager", this.j); + this.Se = new Map(); + this.uta = !0; + this.j.Ta.Ze && (this.j.addEventListener(l.X.f$, function(a) { + return p.Khb(a); + }), this.j.addEventListener(l.X.closed, this.kz)); } - function d(a, b) { + function c(a, b) { this.id = a; - this.sY = b; + this.m1 = b; } function h(a, b, c, d) { - return g.nb.call(this, a, c, void 0, void 0, void 0, b, void 0, d) || this; + return f.Ub.call(this, a, c, void 0, void 0, void 0, b, void 0, d) || this; } - Object.defineProperty(c, "__esModule", { + Object.defineProperty(d, "__esModule", { value: !0 }); - l = a(2); - g = a(48); - m = a(46); - k = a(7); - oa(h, g.nb); + k = a(2); + f = a(45); + l = a(16); + m = a(4); + ia(h, f.Ub); h.prototype.toString = function() { - return this.code + "-" + this.tb + " : " + this.message + "\n" + JSON.stringify(this.data); + return this.code + "-" + this.tc + " : " + this.message + "\n" + JSON.stringify(this.data); }; - d.prototype.toJSON = function() { + c.prototype.toJSON = function() { return { id: this.id, - lastPts: this.SO, - contentStartPts: this.lR, - contentEndPts: this.yUa + contentStartPts: this.wo, + contentEndPts: this.lC }; }; - pa.Object.defineProperties(d.prototype, { - lR: { + na.Object.defineProperties(c.prototype, { + wo: { configurable: !0, enumerable: !0, get: function() { - return this.sY.startTimeMs; + return this.m1.startTimeMs; } }, - yUa: { + lC: { configurable: !0, enumerable: !0, get: function() { - return this.sY.endTimeMs; + return this.m1.endTimeMs; } }, - h3a: { + zgb: { configurable: !0, enumerable: !0, get: function() { - return Object.keys(this.sY.next); + return Object.keys(this.m1.next); } } }); - b.prototype.r4a = function(a) { - var b, c; + b.prototype.Khb = function(a) { + var b, d; b = this; - if (0 === this.bk.size) { - c = this.L.XN(); - Object.keys(c).forEach(function(a) { - b.bk.set(a, new d(a, c[a])); + if (0 === this.Se.size) { + d = this.j.BR(); + Object.keys(d).forEach(function(a) { + b.Se.set(a, new c(a, d[a])); }); } - this.Ag = this.bk.get(a.segmentId); - this.Fbb.p6a(a, this.L, this.xla); - this.xla = !1; - }; - b.prototype.q4a = function(a) { - var b; - b = this.bk.get(a.segmentId); - b && (b.SO = a.pts); - this.Gs && a.segmentId === this.Gs.Ag && (a = this.Gs.zpa, this.Gs = void 0, this.ypa(a)); + this.Ba = this.Se.get(a.segmentId); + this.Faa.hkb(a, this.j, this.uta); + this.uta = !1; }; b.prototype.play = function(a) { - this.Vw && (this.Vw = void 0); - this.Mm && (this.Mm.closed || this.Mm.unsubscribe(), this.Mm = void 0); + this.hz && (this.hz = void 0); + this.kz(); this.log.trace("Playing segment", a); - return this.Bla(a) ? this.s5a(a) : this.QP(a); + return this.wta(a) ? this.ejb(a) : this.ST(a); }; - b.prototype.Eq = function(a) { + b.prototype.pi = function(a) { this.log.trace("Queueing segment", a); - return this.Bla(a) ? this.I6a(a) : this.ypa(a); + return this.wta(a) ? this.Dkb(a) : this.Fkb(a); }; - b.prototype.Uq = function(a, b) { + b.prototype.fq = function(a, b) { var c, d; c = this; - d = this.L.bb; - if (!d) return Promise.reject(this.getError(l.v.X6, "ASE session manager is not yet initialized", l.u.gS, { + d = this.j.gb; + if (!d) return Promise.reject(this.getError(k.I.Lba, "ASE session manager is not yet initialized", k.H.gW, { segmentId: a, updates: b })); this.log.trace("Updating next segment weights", a, b); - return new Promise(function(g, f) { + return new Promise(function(f, g) { try { - d.g6(a, b); - c.L.fireEvent(m.Ea.Uq, { - wo: a, - icb: b + d.Qaa(a, b); + c.j.fireEvent(l.X.fq, { + Ym: a, + Rrb: b }); - g(); - } catch (x) { - f(c.getError(l.v.X6, "updateNextSegmentWeights threw an exception", l.u.cua, { + f(); + } catch (D) { + g(c.getError(k.I.Lba, "updateNextSegmentWeights threw an exception", k.H.DDa, { segmentId: a, updates: b, - error: x + error: D })); } }); }; - b.prototype.Bla = function(a) { - return this.Ag ? void 0 !== this.L.XN()[this.Ag.id].next[a] : !1; + b.prototype.wta = function(a) { + return this.Ba ? void 0 !== this.j.BR()[this.Ba.id].next[a] : !1; }; - b.prototype.mYa = function() { - if (this.L.bb) return this.L.bb.fka().Ub; + b.prototype.Pra = function() { + if (this.j.gb) return this.j.gb.Ora().Cd; }; - b.prototype.OWa = function(a) { - if (this.L.bb) return (a = this.L.bb.NWa(a)) && a.Ub; + b.prototype.x8a = function(a) { + if (this.j.gb) return (a = this.j.gb.c4(a)) && a.Jc; }; - b.prototype.s5a = function(a) { + b.prototype.ejb = function(a) { var b, c, d; b = this; - c = this.L.bb; - if (!c) return Promise.reject(this.getError(l.v.aC, "ASE session manager is not yet initialized", l.u.gS, { + c = this.j.gb; + if (!c) return Promise.reject(this.getError(k.I.RE, "ASE session manager is not yet initialized", k.H.gW, { id: a })); - if (this.Ag && 1 === this.Ag.h3a.length) return this.QP(a); - if (!this.L.bf) return this.log.warn("MediaPresenter is not initialized", a), Promise.reject(this.getError(l.v.aC, "MediaPresenter is not initialized", l.u.aua, { + if (this.Ba && 1 === this.Ba.zgb.length) return this.ST(a); + if (!this.j.Gh) return this.log.warn("MediaPresenter is not initialized", a), Promise.reject(this.getError(k.I.RE, "MediaPresenter is not initialized", k.H.ADa, { id: a })); - d = this.OWa(a); + d = this.x8a(a); return void 0 === d ? (this.log.error("playNextSegment: branchOffset missing", { segment: a - }), this.QP(a)) : new Promise(function(g, f) { - var q, u, v, t, w, z; + }), this.ST(a)) : new Promise(function(f, g) { + var q, u, t, v, x, w; function h() { - !v && u && q && (z.cancel(), v = !0, b.log.trace("Telling ASE to choose the next segment", { + !t && u && q && (w.cancel(), t = !0, b.log.trace("Telling ASE to choose the next segment", { id: a, stopped: u, repositioned: q, - completed: v - }), c.EE(a, !1, !0) ? (g(), v = !0) : (v = !0, b.log.error("playNextSegment: ASE chooseNextSegment failed. Falling back to full seek.", { + completed: t + }), c.LB(a, !1, !0) ? (f(), t = !0) : (t = !0, b.log.error("playNextSegment: ASE chooseNextSegment failed. Falling back to full seek.", { segment: a - }), b.QP(a).then(g)["catch"](f))); + }), b.ST(a).then(f)["catch"](g))); } function p() { @@ -90028,166 +94797,149 @@ v7AA.H22 = function() { id: a, stopped: u, repositioned: q, - completed: v + completed: t }); - b.L.removeEventListener(m.Ea.oQ, p); + b.j.removeEventListener(l.X.Rp, p); h(); } - function r() { - b.L.removeEventListener(m.Ea.v4, r); + function n() { + b.j.removeEventListener(l.X.mz, n); c.stop(); } - function n() { + function r() { u = !0; b.log.trace("ASE is stopped", { id: a, stopped: u, repositioned: q, - completed: v + completed: t }); - c.removeEventListener("stop", n); + c.removeEventListener("stop", r); h(); } q = !1; u = !1; - v = !1; - t = b.bk.get(a); - w = t.lR + (d || 0); + t = !1; + v = b.Se.get(a); + x = v.wo + (d || 0); b.log.trace("Seeking to next segment", JSON.stringify({ segmentId: a, - seekTo: w, - currentSegment: b.Ag, - nextSegment: t + seekTo: x, + currentSegment: b.Ba, + nextSegment: v }, null, " ")); - b.L.fireEvent(m.Ea.U2, { - Gha: b.Ag && b.Ag.id, - g3a: a - }); - c.addEventListener("stop", n); - b.L.addEventListener(m.Ea.v4, r); - b.L.addEventListener(m.Ea.oQ, p); - z = b.ha.Af(k.ij(10), function() { - v = !0; - z.cancel(); - f(b.getError(l.v.aC, "Timed out waiting for the player to be repositioned and ASE to be stopped", l.u.$ta, { + b.j.fireEvent(l.X.uT, { + mk: b.Ba && b.Ba.id, + vT: a + }); + c.addEventListener("stop", r); + b.j.addEventListener(l.X.mz, n); + b.j.addEventListener(l.X.Rp, p); + w = b.ia.Nf(m.hh(10), function() { + t = !0; + w.cancel(); + g(b.getError(k.I.RE, "Timed out waiting for the player to be repositioned and ASE to be stopped", k.H.zDa, { id: a, stopped: u, repositioned: q, - completed: v + completed: t })); }); - b.cc.seek(w, m.hy.Uaa); + b.Zb.seek(x, l.Ng.wA); }); }; - b.prototype.QP = function(a) { + b.prototype.ST = function(a) { var b; - b = this.bk.get(a); - return b ? this.Sqa(b, l.v.aC) : Promise.reject(this.getError(l.v.aC, "Unable to find the separated segment", l.u.W6, { + b = this.Se.get(a); + return b ? this.Bza(b, k.I.RE) : Promise.reject(this.getError(k.I.RE, "Unable to find the separated segment", k.H.Kba, { id: a })); }; - b.prototype.I6a = function(a) { + b.prototype.Dkb = function(a) { var b; - b = this.L.bb; - if (!b) return Promise.reject(this.getError(l.v.Xq, "ASE session manager is not yet initialized", l.u.gS, { + b = this.j.gb; + if (!b) return Promise.reject(this.getError(k.I.Zv, "ASE session manager is not yet initialized", k.H.gW, { id: a })); - if (b.EE(a, !0, !0)) return Promise.resolve(); + if (b.LB(a, !0, !0)) return Promise.resolve(); this.log.error("queueNextSegment: ASE chooseNextSegment failed", { segment: a }); - return Promise.reject(this.getError(l.v.Xq, "ASE chooseNextSegment failed", l.u.Xta, { + return Promise.reject(this.getError(k.I.Zv, "ASE chooseNextSegment failed", k.H.wDa, { id: a })); }; - b.prototype.ypa = function(a) { + b.prototype.Fkb = function(a) { var b, c; b = this; - if (this.Vw) return Promise.reject(this.getError(l.v.Xq, "Unable to queue a non-next segment because there is currently already a segment queued", l.u.V6, { - currentSegment: this.Ag ? this.Ag.id : void 0, - queuedSegment: this.Vw.id, + if (this.hz) return Promise.reject(this.getError(k.I.Zv, "Unable to queue a non-next segment because there is currently already a segment queued", k.H.CDa, { + currentSegment: this.Ba ? this.Ba.id : void 0, + queuedSegment: this.hz.id, failedSegment: a })); - if (!this.Ag) return Promise.reject(this.getError(l.v.Xq, "Unable to queue a non-next segment because there is no currently playing segment", l.u.Yta, { + if (!this.Ba) return Promise.reject(this.getError(k.I.Zv, "Unable to queue a non-next segment because there is no currently playing segment", k.H.xDa, { nextSegmentid: a })); - if (this.Gs) return Promise.reject(this.getError(l.v.Xq, "Unable to queue a non-next segment because there is currently already a segment queued", l.u.V6, { - currentSegment: this.Gs.Ag, - queuedSegment: this.Gs.zpa, - failedSegment: a - })); - if (!this.Ag.SO) return this.Gs = { - Ag: this.Ag.id, - zpa: a - }, Promise.resolve(); - c = this.bk.get(a); - if (!c) return Promise.reject(this.getError(l.v.Xq, "Unable to find the separated segment", l.u.W6, { + c = this.Se.get(a); + if (!c) return Promise.reject(this.getError(k.I.Zv, "Unable to find the separated segment", k.H.Kba, { nextSegmentid: a, - currentSegmentId: this.Ag.id + currentSegmentId: this.Ba.id })); - this.Vw = { + this.hz = { id: a, - P3: new Promise(function(d, g) { - var f, h, m; - f = b.L2.vha({ - eka: function() { + OD: new Promise(function(d, f) { + var g, h; + g = b.vD.noa({ + Nra: function() { return 100; } }, function() { - return b.cc.Un() || 0; + return b.Zb.qp() || 0; }); - h = b.mYa(); - m = b.Ag.SO + h - 500; + h = b.Pra() - 500; b.log.trace("Adding moment for queued segment", { segment: a, - pts: m + pts: h }); - f.zfa(b.EG.uha(a + ":lastPts", m)); - b.Mm = f.observe(); - b.Mm.subscribe(function() { + g.Tla(b.hv.moa(a + ":lastPts", h)); + b.Kp = g.observe().subscribe(function() { b.log.trace("Moment has arrived", { segment: a, - currentSegment: b.Ag.id, - branchOffset: h, - lastPts: b.Ag.SO, - pts: m - }); - b.Gs = void 0; - b.Vw = void 0; - b.Mm = void 0; - b.Sqa(c, l.v.Xq).then(function() { - d(); - })["catch"](function(a) { - g(a); + currentSegment: b.Ba.id, + playerEndPts: b.Pra(), + pts: h }); + b.hz = void 0; + b.kz(); + b.Bza(c, k.I.Zv).then(d)["catch"](f); }, function(c) { - b.Vw = void 0; - b.Mm = void 0; - g(b.getError(l.v.Xq, "ASE session manager is not yet initialized", l.u.Zta, { + b.hz = void 0; + b.kz(); + f(b.getError(k.I.Zv, "ASE session manager is not yet initialized", k.H.yDa, { id: a, error: c })); }); }) }; - this.Vw.P3["catch"](function(a) { - b.L.Hh(b.Aq(a.code, a)); + this.hz.OD["catch"](function(a) { + b.j.md(b.hg(a.code, a)); }); return Promise.resolve(); }; - b.prototype.Sqa = function(a, b) { + b.prototype.Bza = function(a, b) { var c; c = this; - return new Promise(function(d, g) { + return new Promise(function(d, f) { try { - c.cc.seek(a.lR, m.hy.Vaa); + c.Zb.seek(a.wo, l.Ng.vA); d(); - } catch (G) { - g(c.getError(b, "Seek threw an exception", l.u.bua, { + } catch (w) { + f(c.getError(b, "Seek threw an exception", k.H.BDa, { id: a.id, - error: G + error: w })); } }); @@ -90196,153 +94948,176 @@ v7AA.H22 = function() { this.log.warn(b, d); return new h(a, b, c, d); }; - c.yua = b; - }, function(f, c, a) { - var g, m, k; - - function b(a, b, c, d, f, h, l, m, k) { - this.gb = a; - this.EG = c; - this.L2 = d; - this.C3 = f; - this.config = h; - this.Aq = l; - this.A3 = m; - this.y6 = k; - this.Nt = []; - this.log = b.Bb("SegmentManager"); - new g.yh(); - this.q_ = !0; - } - - function d(a, b, c, d, f, l, m, k, p) { + d.WDa = b; + }, function(g, d, a) { + var f, l, m; + + function b(a, b, c, d, g, k, h, m, p) { + var n; + n = this; + this.Va = a; + this.hv = c; + this.vD = d; + this.E8 = g; + this.config = k; + this.hg = h; + this.fK = m; + this.q6a = Object.keys(l.kb).map(function(a) { + return { + event: l.kb[a], + Ru: function(b) { + return n.jc.Db(l.kb[a], b); + } + }; + }); + this.jc = p.create(); + this.Dv = []; + this.log = b.lb("SegmentManager"); + new f.Ei(); + this.z3 = !0; + } + + function c(a, b, c, d, g, k, l, m, p) { var n; n = this; this.log = a; this.config = b; - this.R3a = c; - this.EG = d; - this.C3 = f; - this.Aq = l; - this.A3 = m; - this.Lt = k; - this.na = p; + this.hhb = c; + this.hv = d; + this.E8 = g; + this.hg = k; + this.fK = l; + this.Up = m; + this.qa = p; + this.kz = function() { + n.Kp && (n.Kp.closed || n.Kp.unsubscribe(), n.Kp = void 0); + }; this.log.debug("Constructing session data", h(p)); - this.B1 = new g.yh(); - this.abb = new Promise(function(a) { - n.T6a = a; + this.C6 = new f.Ei(); + this.zqb = new Promise(function(a) { + n.Rkb = a; }); } function h(a) { return { - movieId: a.M, - uiLabel: a.Oc + movieId: a.R, + uiLabel: a.uc }; } - function l(a) { + function k(a) { return JSON.stringify({ - movieId: a.M, - nextStartPts: a.NG, - currentEndPts: a.uz, - uiLabel: a.Oc, - params: a.mb ? { - trackingId: a.mb.Zf, - authParams: a.mb.pm, - sessionParams: a.mb.jf, - disableTrackStickiness: a.mb.Bz, - uiPlayStartTime: a.mb.KR, - loadImmediately: a.mb.ZO, - playbackState: a.mb.playbackState ? { - currentTime: a.mb.playbackState.currentTime - } : void 0 + movieId: a.R, + nextStartPts: a.QJ, + currentEndPts: a.VB, + uiLabel: a.uc, + params: a.cb ? { + trackingId: a.cb.Qf, + authParams: a.cb.CB, + sessionParams: a.cb.ri, + disableTrackStickiness: a.cb.D2, + uiPlayStartTime: a.cb.CV, + loadImmediately: a.cb.KS, + playbackState: a.cb.playbackState ? { + currentTime: a.cb.playbackState.currentTime, + volume: a.cb.playbackState.volume, + muted: a.cb.playbackState.muted + } : void 0, + pin: a.cb.Xy, + heartbeatCooldown: a.cb.g5 } : void 0 }); } - Object.defineProperty(c, "__esModule", { + Object.defineProperty(d, "__esModule", { value: !0 }); - g = a(77); - m = a(46); - k = a(7); - d.prototype.load = function(a) { + f = a(87); + l = a(16); + m = a(4); + c.prototype.load = function(a) { var b; b = this; - this.log.trace("Loading new segment", h(this.na)); - this.cc = this.C3.WRa(this.config, this.A3, this.Aq, this.na.M, this.na.SA, this.na.mb, this.na.Oc, this.na.pe); - this.cc.addEventListener(m.Qa.VF, function(a) { - b.log.trace("Segment is inactive", h(b.na)); - b.Lt.close(b.Aq(a.errorCode)); - }); - a && (this.log.debug("Pausing background segment", h(this.na)), this.cc.addEventListener(m.Qa.$0, function(a) { - b.xka(a); - }), this.cc.pause()); - }; - d.prototype.observe = function() { - var a, b; + this.log.trace("Loading new segment", h(this.qa)); + this.Zb = this.E8.t2a(this.config, this.fK, this.hg, this.qa.R, this.qa.Tm, this.qa.cb, this.qa.uc, this.qa.ge); + this.Zb.addEventListener(l.kb.RC, function(a) { + b.log.trace("Segment is inactive", h(b.qa)); + b.Up.close(b.hg(a.errorCode)); + }); + this.Zb.addEventListener(l.kb.closed, this.kz); + a && (this.log.debug("Pausing background segment", h(this.qa)), this.Zb.addEventListener(l.kb.X5, function(a) { + b.ksa(a); + }), this.Zb.pause()); + }; + c.prototype.observe = function() { + var a, b, c; a = this; - this.log.trace("Observing segment", l(this.na)); - if (this.Mm) this.log.trace("Segment is currently observing", h(this.na)); - else if (this.na.mb && this.na.mb.ZO) this.B1.next(this); + this.log.trace("Observing segment", k(this.qa)); + if (this.Kp) this.log.trace("Segment is currently observing", h(this.qa)); + else if (this.qa.cb && this.qa.cb.KS) this.C6.next(this); else { - this.Mm = this.R3a.vha(this.config, function() { + b = this.hhb.noa(this.config, function() { var b; - if (a.cc) { - b = a.cc.Un(); + if (a.Zb) { + b = a.Zb.qp(); if (b) return b; } return 0; }); - b = this.EG.uha("LOAD", this.vOa(this.na)); + c = this.hv.moa("LOAD", this.GZa(this.qa)); this.log.trace("Adding a moment to watch", { - name: b.name, - time: b.time + name: c.name, + time: c.time }); - this.Mm.zfa(b); - this.Mm.observe().subscribe(function() { - a.log.trace("Segment has reached its loading point", h(a.na)); - a.B1.next(a); + b.Tla(c); + this.Kp = b.observe().subscribe(function() { + a.log.trace("Segment has reached its loading point", h(a.qa)); + a.C6.next(a); + a.kz(); }); } }; - d.prototype.close = function(a) { + c.prototype.close = function(a) { this.log.info("Closing segment", { - segment: l(this.na), + segment: k(this.qa), error: a }); - return this.cc ? (this.cc.removeEventListener(m.Qa.$0, this.xka), this.cc.close(a)) : Promise.resolve(); + return this.Zb ? (this.Zb.removeEventListener(l.kb.X5, this.ksa), this.Zb.close(a)) : Promise.resolve(); }; - d.prototype.vOa = function(a) { + c.prototype.GZa = function(a) { var b, c; - b = a.uz; - a = a.mb ? a.mb.ZO : !1; + b = a.VB; + a = a.cb ? a.cb.KS : !1; c = 0; - b && !a && (c = b - this.config.config.rma, c < this.config.config.Qma && (c = b - (b - this.config.config.Qma) / 2)); + b && !a && (c = b - this.config.config.mua, c < this.config.config.Pua && (c = b - (b - this.config.config.Pua) / 2)); return c; }; - d.prototype.xka = function(a) { + c.prototype.ksa = function(a) { this.log.trace("Received the transition event", { - movieId: a.M + movieId: a.R }); - this.T6a(l(this.na)); + this.Rkb(k(this.qa)); }; - b.prototype.qYa = function() { - return this.xd && this.xd.cc ? this.xd.cc.ready : !1; + b.prototype.F4 = function() { + return this.Nd && this.Nd.Zb ? this.Nd.Zb.isReady() : !1; }; - b.prototype.YLa = function(a) { - this.log.info("Adding segment", l(a)); - this.q_ ? (this.log.trace("First segment, loading", h(a)), a = this.qma(a), this.q_ = !1) : (this.log.trace("Subsequent segment, caching", h(a)), a = this.f8a(a)); - return a ? a.abb : null; + b.prototype.vp = function() { + if (!this.Nd || !this.Nd.Zb) throw Error("Player not ready"); + return this.Nd.Zb; + }; + b.prototype.Z_ = function(a) { + this.log.info("Adding segment", k(a)); + this.z3 ? (this.log.trace("First segment, loading", h(a)), a = this.lua(a), this.z3 = !1) : (this.log.trace("Subsequent segment, caching", h(a)), a = this.kmb(a)); + return a ? a.zqb : null; }; b.prototype.transition = function(a) { var b; - if (this.vq && this.vq.cc) { - b = this.vq; - this.vq = void 0; - this.log.info("Transitioning segment", l(b.na)); - b && b.cc && b.cc.l5(this.gb.oe().qa(k.Ma)); - return this.tsa(b, a); + if (this.gs && this.gs.Zb) { + b = this.gs; + this.gs = void 0; + this.log.info("Transitioning segment", k(b.qa)); + b && b.Zb && b.Zb.RU(this.Va.Pe().ma(m.Aa)); + return this.wBa(b, a); } return Promise.resolve(); }; @@ -90350,262 +95125,293 @@ v7AA.H22 = function() { var b, c; b = this; this.log.trace("Closing all segments", { - currSession: JSON.stringify(h(this.xd.na)), - nextSession: this.vq ? JSON.stringify(h(this.vq.na)) : void 0 + currSession: JSON.stringify(h(this.Nd.qa)), + nextSession: this.gs ? JSON.stringify(h(this.gs.qa)) : void 0 }); - c = [this.xd.close(a)]; - this.vq && c.push(this.vq.close()); + c = [this.Nd.close(a)]; + this.gs && c.push(this.gs.close()); return new Promise(function(a, d) { Promise.all(c).then(function() { - b.vq = void 0; - b.Nt = []; - b.q_ = !0; + b.gs = void 0; + b.Dv = []; + b.z3 = !0; a(); })["catch"](d); }); }; - b.prototype.qma = function(a) { + b.prototype.addListener = function(a, b, c) { + this.jc.addListener(a, b, c); + }; + b.prototype.removeListener = function(a, b) { + this.jc.removeListener(a, b); + }; + b.prototype.lua = function(a) { var b, c; b = this; this.log.info("Loading the next episode", h(a)); - this.xd && (this.config.E_()[a.M] = a.NG); - c = this.yVa(a); + this.Nd && (this.config.X3()[a.R] = a.QJ); + c = this.f7a(a); if (!c) return this.log.warn("Unable to find the session, make sure to add it before loading", h(a)), null; this.log.trace("Found the next session", h(a)); - c.B1.subscribe(function(a) { - b.Uab(a); + c.C6.subscribe(function(a) { + b.qqb(a); }); - this.xd ? (this.log.trace("Subsequent playback, caching player and pausing", h(a)), this.vq = c, c.load(!0)) : (this.log.trace("First playback transitioning immediately", h(a)), c.load(!1), this.tsa(c)); + this.Nd ? (this.log.trace("Subsequent playback, caching player and pausing", h(a)), this.gs = c, c.load(!0)) : (this.log.trace("First playback transitioning immediately", h(a)), c.load(!1), this.wBa(c)); return c; }; - b.prototype.tsa = function(a, b) { - var c, d, g; + b.prototype.wBa = function(a, b) { + var c, d, f; b = void 0 === b ? {} : b; - this.log.trace("Playing episode", h(a.na)); - c = this.xd; - this.xd = a; - if (this.xd.cc && (this.xd.cc.s9a(), this.y6(this.xd.cc, c ? c.cc : void 0), c && c.cc)) { - d = c.cc.element; - a = this.xd.cc.element; - g = d.parentElement; + this.log.trace("Playing episode", h(a.qa)); + c = this.Nd; + this.Nd = a; + if (this.Nd.Zb && (this.Nd.Zb.Sza(!1), this.eba(this.Nd.Zb, c ? c.Zb : void 0), c && c.Zb)) { + d = c.Zb.$x(); + a = this.Nd.Zb.$x(); + f = d.parentElement; d.style.display = "none"; c = c.close(); - g.appendChild(a); - this.xd.cc && (a.style.display = "block", this.xd.cc.getError() ? this.xd.cc.close() : (this.xd.cc.L.fcb(b), this.xd.cc.iR(), this.xd.cc.play())); + f.appendChild(a); + this.Nd.Zb && (a.style.display = "block", this.Nd.Zb.getError() ? this.Nd.Zb.close() : (this.Nd.Zb.j.Hrb(b), this.Nd.Zb.YK(), this.Nd.Zb.play())); c.then(function() { - g.removeChild(d); + d.parentElement && d.parentElement.removeChild(d); }); return c; } return Promise.resolve(); }; - b.prototype.Uab = function(a) { - var b, c, d, g; - if (this.Nt.length && a.cc) { - a = a.cc.Un(); - b = this.Nt[0]; - c = this.xd.na.uz; - d = this.xd.na.mb ? this.xd.na.mb.ZO : !1; + b.prototype.qqb = function(a) { + var b, c, d, f; + if (this.Dv.length && a.Zb) { + a = a.Zb.qp(); + b = this.Dv[0]; + c = this.Nd.qa.VB; + d = this.Nd.qa.cb ? this.Nd.qa.cb.KS : !1; if (c || d) { - d ? g = 0 : c && (g = c - this.config.config.rma); - null !== a && a >= g && (this.log.info("Got a time change, loading the next player", h(b.na)), this.qma(b.na), this.Nt.splice(0, 1)); + d ? f = 0 : c && (f = c - this.config.config.mua); + null !== a && a >= f && (this.log.info("Got a time change, loading the next player", h(b.qa)), this.lua(b.qa), this.Dv.splice(0, 1)); } } }; - b.prototype.yVa = function(a) { + b.prototype.f7a = function(a) { var b; b = null; - this.xd ? this.Nt.forEach(function(c) { - c.na.M === a.M && (b = c); - }) : b = this.Cs(a); + this.Nd ? this.Dv.forEach(function(c) { + c.qa.R === a.R && (b = c); + }) : b = this.Dr(a); return b; }; - b.prototype.f8a = function(a) { + b.prototype.kmb = function(a) { var c; - if (this.xd.na.M === a.M) return this.Boa(this.xd.na, a), this.log.trace("Overwrote the currently playing segment data", l(this.xd.na)), this.xd; - for (var b = 0; b < this.Nt.length; ++b) { - c = this.Nt[b]; - if (c.na.M === a.M) return this.Boa(c.na, a), this.log.trace("Overwrote the currently playing segment data", l(c.na)), c; - } - a = this.Cs(a); - this.Nt.push(a); - this.xd.observe(); + if (this.Nd.qa.R === a.R) return this.Xwa(this.Nd.qa, a), this.log.trace("Overwrote the currently playing segment data", k(this.Nd.qa)), this.Nd; + for (var b = 0; b < this.Dv.length; ++b) { + c = this.Dv[b]; + if (c.qa.R === a.R) return this.Xwa(c.qa, a), this.log.trace("Overwrote the currently playing segment data", k(c.qa)), c; + } + a = this.Dr(a); + this.Dv.push(a); + this.Nd.observe(); return a; }; - b.prototype.Boa = function(a, b) { - a.NG = b.NG || a.NG; - a.uz = b.uz || a.uz; - a.Oc = b.Oc || a.Oc; - a.mb = b.mb || a.mb; - a.pe = b.pe || a.pe; + b.prototype.Xwa = function(a, b) { + a.QJ = b.QJ || a.QJ; + a.VB = b.VB || a.VB; + a.uc = b.uc || a.uc; + a.cb = b.cb || a.cb; + a.ge = b.ge || a.ge; }; - b.prototype.Cs = function(a) { - return new d(this.log, this.config, this.L2, this.EG, this.C3, this.Aq, this.A3, this, a); + b.prototype.Dr = function(a) { + return new c(this.log, this.config, this.vD, this.hv, this.E8, this.hg, this.fK, this, a); }; - c.UEa = b; - }, function(f, c, a) { - var d, h, l, g, m, k, n, q, v, t, w, G; + b.prototype.eba = function(a, b) { + this.q6a.forEach(function(c) { + b && b.removeEventListener(c.event, c.Ru); + a.addEventListener(c.event, c.Ru); + }); + this.jc.Db(l.Fga.Cza); + }; + d.fPa = b; + }, function(g, d, a) { + var c, h, k, f, l, m, n, q, t, v, y, w, D, z; - function b(a) { - this.sb = a; + function b(a, b, c, d, f, g, k, h, l, m, p) { + this.Va = a; + this.af = b; + this.hv = c; + this.vD = d; + this.wsb = f; + this.fK = g; + this.ia = k; + this.AP = h; + this.Faa = l; + this.hg = m; + this.c3 = p; } - Object.defineProperty(c, "__esModule", { + Object.defineProperty(d, "__esModule", { value: !0 }); - f = a(1); - d = a(0); - h = a(236); - l = a(38); - g = a(12); - m = a(375); - k = a(374); - n = a(372); - q = a(714); - v = a(713); - t = a(83); - w = a(43); - G = a(371); - b.prototype.QRa = function(a, b, c, d) { - return new q.UEa(this.sb.get(l.eg), this.sb.get(g.Jb), this.sb.get(m.VT), this.sb.get(k.WT), this.sb.get(n.aca), a, b, c, d); - }; - b.prototype.vRa = function(a, b, c) { - return new v.yua(this.sb.get(g.Jb), a, b, this.sb.get(k.WT), this.sb.get(m.VT), this.sb.get(w.xh), this.sb.get(t.P6), c, this.sb.get(G.Pba)); - }; - a = b; - a = f.__decorate([d.N(), f.__param(0, d.j(h.DT))], a); - c.TEa = a; - }, function(f, c, a) { - var b, d, h, l, g, m; - Object.defineProperty(c, "__esModule", { - value: !0 - }); - f = a(0); - b = a(218); - d = a(373); - h = a(715); - l = a(712); - g = a(371); - m = a(711); - c.bk = new f.dc(function(a) { - a(b.KU).to(h.TEa).Y(); - a(d.qba).to(l.SEa).Y(); - a(g.Pba).to(m.xFa).Y(); - }); - }, function(f, c, a) { - var d; + g = a(0); + c = a(1); + h = a(24); + k = a(7); + f = a(418); + l = a(417); + m = a(63); + n = a(415); + q = a(414); + t = a(829); + v = a(828); + y = a(83); + w = a(30); + D = a(413); + a = a(420); + b.prototype.p2a = function(a) { + return new t.fPa(this.Va, this.af, this.hv, this.vD, this.wsb, a, this.hg, this.fK, this.c3); + }; + b.prototype.W1a = function(a, b, c) { + c = void 0 === c ? this.hg : c; + return new v.WDa(this.af, a, b, this.vD, this.hv, this.ia, this.AP, c, this.Faa); + }; + z = b; + z = g.__decorate([c.N(), g.__param(0, c.l(h.Ue)), g.__param(1, c.l(k.sb)), g.__param(2, c.l(f.hfa)), g.__param(3, c.l(l.ifa)), g.__param(4, c.l(q.cia)), g.__param(5, c.l(n.Aga)), g.__param(6, c.l(w.Xf)), g.__param(7, c.l(y.ZV)), g.__param(8, c.l(D.Oha)), g.__param(9, c.l(m.Sj)), g.__param(10, c.l(a.zM))], z); + d.ePa = z; + }, function(g, d, a) { + var b, c, h, k, f, l; + Object.defineProperty(d, "__esModule", { + value: !0 + }); + g = a(1); + b = a(226); + c = a(416); + h = a(830); + k = a(827); + f = a(413); + l = a(826); + d.Se = new g.Vb(function(a) { + a(b.FY).to(h.ePa).$(); + a(c.rha).to(k.dPa).$(); + a(f.Oha).to(l.ZPa).$(); + }); + }, function(g, d, a) { + var c; function b(a, b) { this.config = a; - this.pc = b; - this.FG = []; + this.sd = b; + this.LJ = []; } - Object.defineProperty(c, "__esModule", { + Object.defineProperty(d, "__esModule", { value: !0 }); - d = a(77); - b.prototype.zfa = function(a) { - 0 === this.FG.filter(function(b) { - return b.K2 === a; - }).length && this.FG.push({ - K2: a, - Lpa: !1 + c = a(87); + b.prototype.Tla = function(a) { + 0 === this.LJ.filter(function(b) { + return b.M7 === a; + }).length && this.LJ.push({ + M7: a, + lya: !1 }); }; b.prototype.observe = function() { var a; a = this; - this.Bo || (this.Bo = new d.yh(), d.pa.interval(this.config.eka()).subscribe(function() { - var b; - b = a.pc(); - a.FG.forEach(function(c) { - !c.Lpa && c.K2.time <= b && (c.Lpa = !0, a.Bo.closed || a.Bo.next(c.K2)); + return c.ta.interval(this.config.Nra()).Nr(function() { + var b, d; + b = a.sd(); + d = a.LJ.filter(function(a) { + return !a.lya && a.M7.time <= b; }); - })); - return this.Bo; + d.forEach(function(a) { + a.lya = !0; + }); + return c.ta.from(d.map(function(a) { + return a.M7; + })); + }); }; - c.rAa = b; - }, function(f, c, a) { - var d, h; + d.MKa = b; + }, function(g, d, a) { + var c, h; function b() {} - Object.defineProperty(c, "__esModule", { + Object.defineProperty(d, "__esModule", { value: !0 }); - f = a(1); - d = a(0); - h = a(717); - b.prototype.vha = function(a, b) { - return new h.rAa(a, b); + g = a(0); + c = a(1); + h = a(832); + b.prototype.noa = function(a, b) { + return new h.MKa(a, b); }; a = b; - a = f.__decorate([d.N()], a); - c.qAa = a; - }, function(f, c) { + a = g.__decorate([c.N()], a); + d.LKa = a; + }, function(g, d) { function a(a, c) { this.name = a; this.time = c; if (0 == a.length) throw new TypeError("'name' property is not valid: " + a); if (0 > c) throw new TypeError("'time' property is not valid: " + c); } - Object.defineProperty(c, "__esModule", { + Object.defineProperty(d, "__esModule", { value: !0 }); a.prototype.add = function(b, c) { return new a(b, this.time + c); }; - a.prototype.ie = function(b, c) { + a.prototype.Gd = function(b, c) { return new a(b, this.time - c); }; - c.pAa = a; - }, function(f, c, a) { - var d, h; + d.KKa = a; + }, function(g, d, a) { + var c, h; function b() {} - Object.defineProperty(c, "__esModule", { + Object.defineProperty(d, "__esModule", { value: !0 }); - f = a(1); - d = a(0); - h = a(719); - b.prototype.uha = function(a, b) { - return new h.pAa(a, b); + g = a(0); + c = a(1); + h = a(834); + b.prototype.moa = function(a, b) { + return new h.KKa(a, b); }; a = b; - a = f.__decorate([d.N()], a); - c.oAa = a; - }, function(f, c, a) { - var b, d, h, l; - Object.defineProperty(c, "__esModule", { + a = g.__decorate([c.N()], a); + d.JKa = a; + }, function(g, d, a) { + var b, c, h, k; + Object.defineProperty(d, "__esModule", { value: !0 }); - f = a(0); - b = a(375); - d = a(720); - h = a(374); - l = a(718); - c.FG = new f.dc(function(a) { - a(b.VT).to(d.oAa).Y(); - a(h.WT).to(l.qAa).Y(); + g = a(1); + b = a(418); + c = a(835); + h = a(417); + k = a(833); + d.LJ = new g.Vb(function(a) { + a(b.hfa).to(c.JKa).$(); + a(h.ifa).to(k.LKa).$(); }); - }, function(f, c) { - Object.defineProperty(c, "__esModule", { + }, function(g, d) { + Object.defineProperty(d, "__esModule", { value: !0 }); - c.reduce = function(a, b, c) { + d.reduce = function(a, b, c) { for (; void 0 !== a; a = a.cause) c = b(c, a); return c; }; - }, function(f, c, a) { - var t, w, G, x; + }, function(g, d, a) { + var v, y, w, D; function b(a, b) { - this.xg = a; - this.bg = b; - this.li = []; + this.Rd = a; + this.Hd = b; + this.Uc = []; } - function d(a) { - return v.call(this, a, function(a) { + function c(a) { + return t.call(this, a, function(a) { return { Details: a }; @@ -90613,48 +95419,48 @@ v7AA.H22 = function() { } function h(a) { - return v.call(this, a, function(a) { + return t.call(this, a, function(a) { return JSON.parse(a.toJSON()); }) || this; } - function l(a, b) { - b = v.call(this, b, function(b) { + function k(a, b) { + b = t.call(this, b, function(b) { return { Base64: a.encode(b) }; }) || this; - b.xg = a; + b.Rd = a; return b; } - function g(a, b) { - b = v.call(this, b, function(a) { + function f(a, b) { + b = t.call(this, b, function(a) { return a(); }) || this; - b.bg = a; + b.Hd = a; return b; } - function m(a, b) { + function l(a, b) { return n.call(this, a, b, function(a) { var b; - b = w.reduce(a, function(a, b) { + b = y.reduce(a, function(a, b) { var c; a.name = void 0 !== a.name ? a.name + ("-" + b.name) : b.name; c = ""; c = "undefined" !== typeof b.type && "undefined" !== typeof b.type.prefix ? c + b.type.prefix : c + b.name; "undefined" !== typeof b.number && (c += b.number); a.errorCode = void 0 !== a.errorCode ? a.errorCode + ("-" + c) : c; - m.kPa(b, a, "stack", "message"); + l.I_a(b, a, "stack", "message"); return a; }, {}); return Object.assign({}, a, b); }) || this; } - function k(a) { - return v.call(this, a, function(a) { + function m(a) { + return t.call(this, a, function(a) { return { Exception: a.message || "" + a, StackTrace: a.stack || "nostack" @@ -90663,164 +95469,164 @@ v7AA.H22 = function() { } function n(a, b, c) { - b = v.call(this, b, c) || this; - b.bg = a; + b = t.call(this, b, c) || this; + b.Hd = a; return b; } function q(a) { - return v.call(this, a, function(a) { + return t.call(this, a, function(a) { return { Details: a }; }) || this; } - function v(a, b) { - this.Um = a; + function t(a, b) { + this.so = a; this.value = b ? b(a) : a; } - Object.defineProperty(c, "__esModule", { + Object.defineProperty(d, "__esModule", { value: !0 }); - f = a(1); - t = a(0); - w = a(722); - G = a(26); - a = a(62); - v.prototype.qN = function(a) { - return this.Um === a; - }; - oa(q, v); - q.prototype.tx = function(a, b) { - return b ? "" : "\r\n" + this.Um; - }; - oa(n, v); - n.prototype.tx = function() { + g = a(0); + v = a(1); + y = a(837); + w = a(22); + a = a(44); + t.prototype.dI = function(a) { + return this.so === a; + }; + ia(q, t); + q.prototype.Hz = function(a, b) { + return b ? "" : "\r\n" + this.so; + }; + ia(n, t); + n.prototype.Hz = function() { var a; a = ""; - this.bg.Ls(this.value, function(b, c) { + this.Hd.Cu(this.value, function(b, c) { try { a += ", " + b + ": " + c; - } catch (N) { + } catch (F) { try { a += ", " + b + ": " + JSON.stringify(c); - } catch (T) { + } catch (la) { a += ", error stringifying " + b; } } }); return a.replace(/[\r\n]+ */g, " "); }; - oa(k, v); - k.prototype.tx = function(a) { + ia(m, t); + m.prototype.Hz = function(a) { var b; - b = "\r\n" + this.Um.message; - a || (b += "\r\n" + this.Um.stack); + b = "\r\n" + this.so.message; + a || (b += "\r\n" + this.so.stack); return b; }; - oa(m, n); - m.kPa = function(a, b, c) { - var f, h; - for (var d = [], g = 2; g < arguments.length; ++g) d[g - 2] = arguments[g]; - for (g = 0; g < d.length; ++g) { - f = a[d[g]]; - if (void 0 !== f) { - h = "" + d[g]; - b[h] = b[h] || []; - b[h].push(f); + ia(l, n); + l.I_a = function(a, b, c) { + var g, k; + for (var d = [], f = 2; f < arguments.length; ++f) d[f - 2] = arguments[f]; + for (f = 0; f < d.length; ++f) { + g = a[d[f]]; + if (void 0 !== g) { + k = "" + d[f]; + b[k] = b[k] || []; + b[k].push(g); } } }; - c.jfb = m; - oa(g, v); - g.prototype.tx = function() { + d.yvb = l; + ia(f, t); + f.prototype.Hz = function() { var a; a = ""; - this.bg.Ls(this.value, function(b, c) { + this.Hd.Cu(this.value, function(b, c) { a += ", " + b + ": " + c; }); return a.replace(/[\r\n]+ */g, " "); }; - oa(l, v); - l.prototype.tx = function(a, b) { - return this.Um && !b ? "\r\n" + this.xg.encode(this.Um) : ""; + ia(k, t); + k.prototype.Hz = function(a, b) { + return this.so && !b ? "\r\n" + this.Rd.encode(this.so) : ""; }; - oa(h, v); - h.prototype.tx = function() { - return this.Um ? this.Um.toJSON() : ""; + ia(h, t); + h.prototype.Hz = function() { + return this.so ? this.so.toJSON() : ""; }; - oa(d, v); - d.prototype.tx = function() { - return ", " + (this.Um.toString ? "" + this.Um.toString() : ""); + ia(c, t); + c.prototype.Hz = function() { + return ", " + (this.so.toString ? "" + this.so.toString() : ""); }; - b.prototype.bMa = function(a) { - this.li.push(new q(a)); + b.prototype.kXa = function(a) { + this.Uc.push(new q(a)); }; - b.prototype.TLa = function(a) { - this.li.push(new n(this.bg, a)); + b.prototype.bXa = function(a) { + this.Uc.push(new n(this.Hd, a)); }; - b.prototype.JLa = function(a) { - this.li.push(new k(a)); + b.prototype.UWa = function(a) { + this.Uc.push(new m(a)); }; - b.prototype.HLa = function(a) { - this.li.push(new m(this.bg, a)); + b.prototype.TWa = function(a) { + this.Uc.push(new l(this.Hd, a)); }; - b.prototype.MLa = function(a) { - this.li.push(new g(this.bg, a)); + b.prototype.XWa = function(a) { + this.Uc.push(new f(this.Hd, a)); }; - b.prototype.cMa = function(a) { - this.li.push(new l(this.xg, a)); + b.prototype.lXa = function(a) { + this.Uc.push(new k(this.Rd, a)); }; - b.prototype.RLa = function(a) { - this.li.push(new h(a)); + b.prototype.aXa = function(a) { + this.Uc.push(new h(a)); }; - b.prototype.dMa = function(a) { - this.li.push(new d(a)); + b.prototype.mXa = function(a) { + this.Uc.push(new c(a)); }; - b.prototype.sm = function() { - return this.li; + b.prototype.Fn = function() { + return this.Uc; }; - x = b; - x = f.__decorate([t.N(), f.__param(0, t.j(a.fl)), f.__param(1, t.j(G.Re))], x); - c.qza = x; - }, function(f, c, a) { - var d, h, l, g; + D = b; + D = g.__decorate([v.N(), g.__param(0, v.l(a.nj)), g.__param(1, v.l(w.Je))], D); + d.wJa = D; + }, function(g, d, a) { + var c, h, k, f; function b(a, b) { - this.xg = a; - this.bg = b; + this.Rd = a; + this.Hd = b; } - Object.defineProperty(c, "__esModule", { + Object.defineProperty(d, "__esModule", { value: !0 }); - f = a(1); - d = a(0); - h = a(723); - l = a(62); - a = a(26); - b.prototype.QXa = function() { - return new h.qza(this.xg, this.bg); + g = a(0); + c = a(1); + h = a(838); + k = a(44); + a = a(22); + b.prototype.D9a = function() { + return new h.wJa(this.Rd, this.Hd); }; - g = b; - g = f.__decorate([d.N(), f.__param(0, d.j(l.fl)), f.__param(1, d.j(a.Re))], g); - c.pza = g; - }, function(f, c, a) { - var d, h; + f = b; + f = g.__decorate([c.N(), g.__param(0, c.l(k.nj)), g.__param(1, c.l(a.Je))], f); + d.vJa = f; + }, function(g, d, a) { + var c, h; - function b(a, b, c, d, f, h, k) { + function b(a, b, c, d, g, h, l) { this.level = a; - this.Ck = b; + this.Cm = b; this.timestamp = c; this.message = d; - this.li = f; + this.Uc = g; this.prefix = h; - this.index = void 0 === k ? 0 : k; + this.index = void 0 === l ? 0 : l; } - Object.defineProperty(c, "__esModule", { + Object.defineProperty(d, "__esModule", { value: !0 }); - d = a(7); + c = a(4); h = { 0: "F", 1: "E", @@ -90829,30 +95635,30 @@ v7AA.H22 = function() { 4: "T", 5: "D" }; - b.prototype.lI = function(a, b) { - a = (this.prefix.length ? "" + this.prefix.join(" ") + " " : "") + this.message + (b ? "" : " " + this.aab(!!a)); - return (this.timestamp.qa(d.Ma) / 1E3).toFixed(3) + "|" + this.index + "|" + (h[this.level] || this.level) + "|" + this.Ck + "| " + a; + b.prototype.uL = function(a, b) { + a = (this.prefix.length ? "" + this.prefix.join(" ") + " " : "") + this.message + (b ? "" : " " + this.zpb(!!a)); + return (this.timestamp.ma(c.Aa) / 1E3).toFixed(3) + "|" + this.index + "|" + (h[this.level] || this.level) + "|" + this.Cm + "| " + a; }; - b.prototype.aab = function(a) { - var f; - for (var b = this.li.length, c = "", d = 0; d < b; ++d) { - f = this.li[d].Um; + b.prototype.zpb = function(a) { + var g; + for (var b = this.Uc.length, c = "", d = 0; d < b; ++d) { + g = this.Uc[d].so; d && c.length && (c += " "); - if ("object" === typeof f) - if (null === f) c += "null"; - else if (f instanceof Error) c += this.$$a(f, a); + if ("object" === typeof g) + if (null === g) c += "null"; + else if (g instanceof Error) c += this.ypb(g, a); else try { - c += JSON.stringify(f); + c += JSON.stringify(g); } catch (u) { - c += this.Z$a(f); - } else c += f; + c += this.xpb(g); + } else c += g; } return c; }; - b.prototype.$$a = function(a, b) { + b.prototype.ypb = function(a, b) { return a.toString() + (a.stack && !b ? "\n" + a.stack : "") + "\n"; }; - b.prototype.Z$a = function(a) { + b.prototype.xpb = function(a) { var b; b = []; return JSON.stringify(a, function(a, c) { @@ -90863,311 +95669,425 @@ v7AA.H22 = function() { return c; }); }; - c.Uta = b; - }, function(f, c, a) { - var d, h; + d.oDa = b; + }, function(g, d, a) { + var c, h; - function b(a, b, c, f, h, k) { - a = d.zC.call(this, a, b, c, f) || this; - Array.isArray(k) ? a.prefix = k : k && "string" === typeof k && (a.prefix = [], a.prefix.push(k)); + function b(a, b, d, g, h, l) { + a = c.tF.call(this, a, b, d, g) || this; + a.qab = h; + Array.isArray(l) ? a.prefix = l : l && "string" === typeof l && (a.prefix = [], a.prefix.push(l)); return a; } - Object.defineProperty(c, "__esModule", { + Object.defineProperty(d, "__esModule", { value: !0 }); - d = a(219); - h = a(725); - oa(b, d.zC); - b.prototype.as = function(a, b, c) { - a = new h.Uta(a, this.Ck, this.gb.oe(), b, c, this.prefix); - b = Na(this.ck.ck); + c = a(227); + h = a(840); + ia(b, c.tF); + b.prototype.Xt = function(a, b, c) { + a = new h.oDa(a, this.Cm, this.Va.Pe(), b, c, this.prefix); + b = za(this.kj.kj); for (c = b.next(); !c.done; c = b.next()) c = c.value, c(a); }; - c.Vta = b; - }, function(f, c, a) { - var d, h, k; + b.prototype.S1 = function(a) { + return new b(this.Va, this.ur, this.kj, a, this.qab, this.prefix); + }; + d.pDa = b; + }, function(g, d, a) { + var c, h, k; - function b(a, b, c, f, h) { - a = k.zC.call(this, a, b, c, h) || this; - a.L = f; - d.$i(a, "playback"); + function b(a, b, d, g, h) { + a = k.tF.call(this, a, b, d, h) || this; + a.j = g; + c.zk(a, "playback"); return a; } - Object.defineProperty(c, "__esModule", { + Object.defineProperty(d, "__esModule", { value: !0 }); - d = a(49); - h = a(376); - k = a(219); - oa(b, k.zC); - b.prototype.VRa = function() { - return new b(this.gb, this.zv, this.ck, this.L, "Playback"); + c = a(51); + h = a(419); + k = a(227); + ia(b, k.tF); + b.prototype.S1 = function(a) { + return new b(this.Va, this.ur, this.kj, this.j, a); }; - b.prototype.as = function(a, b, c) { - a = new h.T9(a, this.Ck, this.gb.oe(), b, c, this.L.index); - b = Na(this.ck.ck); - for (c = b.next(); !c.done; c = b.next()) c = c.value, c(a, this.L); + b.prototype.Xt = function(a, b, c) { + a = new h.Dea(a, this.Cm, this.Va.Pe(), b, c, this.j.index); + b = za(this.kj.kj); + for (c = b.next(); !c.done; c = b.next()) c = c.value, c(a, this.j); }; - c.ADa = b; - }, function(f, c) { - Object.defineProperty(c, "__esModule", { + d.FNa = b; + }, function(g, d) { + Object.defineProperty(d, "__esModule", { value: !0 }); - c.EnumeratedErrorBase = function(a, b, c, f) { + d.EnumeratedErrorBase = function(a, b, c, d) { this.type = a; this.name = a.name; this.number = b; "string" === typeof c ? this.message = c : void 0 !== c && (this.cause = c); - void 0 !== f && (this.message = f); + void 0 !== d && (this.message = d); }; - }, function(f, c, a) { + }, function(g, d, a) { var b; - Object.defineProperty(c, "__esModule", { + Object.defineProperty(d, "__esModule", { value: !0 }); - b = a(728); - c.fz = function(a, c, f) { - var d, h; - f = void 0 === f ? 1 : f; - for (a = a.QXa(); f < c.length; ++f) - if (void 0 != c[f] && null != c[f]) { - d = a; - h = c[f]; - h.Zi && (h = h.Zi); - h.constructor === Uint8Array ? d.cMa(h) : "MediaRequest" === h.constructor.name ? d.RLa(h) : "string" === typeof h ? d.bMa(h) : "function" === typeof h ? d.MLa(h) : h instanceof Error ? d.JLa(h) : h instanceof b.EnumeratedErrorBase ? d.HLa(h) : h instanceof Object ? d.TLa(h) : d.dMa(h); - } return a.sm(); + b = a(843); + d.HB = function(a, d) { + var f; + a = a.D9a(); + for (var c = 0; c < d.length; ++c) { + f = d[c]; + void 0 != f && null != f && (f.If && (f = f.If), f.constructor === Uint8Array ? a.lXa(f) : "MediaRequest" === f.constructor.name ? a.aXa(f) : "string" === typeof f ? a.kXa(f) : "function" === typeof f ? a.XWa(f) : f instanceof Error ? a.UWa(f) : f instanceof b.EnumeratedErrorBase ? a.TWa(f) : f instanceof Object ? a.bXa(f) : a.mXa(f)); + } + return a.Fn(); }; - }, function(f, c, a) { - var d, h, k, g, m, p, n, q; + }, function(g, d, a) { + var c, h, k, f, l, m, n; function b(a, b, c) { - this.gb = a; - this.ck = b; - this.H1 = c; + this.Va = a; + this.kj = b; + this.J6 = c; } - Object.defineProperty(c, "__esModule", { + Object.defineProperty(d, "__esModule", { value: !0 }); - f = a(1); - d = a(219); - h = a(0); - k = a(727); - g = a(38); - m = a(84); - p = a(12); - n = a(7); - q = a(726); - b.prototype.Bb = function(a, b, c, f, g) { - c = void 0 === c ? this.ck : c; - return b ? (b.x7a = this.gb.oe().ie(n.Cb(b.Ed)), new k.ADa(this.gb, this.H1, c, b, a)) : g ? new q.Vta(this.gb, this.H1, c, a, f || "", g) : new d.zC(this.gb, this.H1, c, a); + g = a(0); + c = a(227); + h = a(1); + k = a(842); + f = a(24); + l = a(84); + m = a(7); + n = a(841); + b.prototype.lb = function(a, b, d, f, g) { + d = void 0 === d ? this.kj : d; + return b ? new k.FNa(this.Va, this.J6, d, b, a) : g ? new n.pDa(this.Va, this.J6, d, a, f || "", g) : new c.tF(this.Va, this.J6, d, a); }; a = b; - a = f.__decorate([h.N(), f.__param(0, h.j(g.eg)), f.__param(1, h.j(m.ou)), f.__param(2, h.j(p.U9))], a); - c.yza = a; - }, function(f, c, a) { - var d; + a = g.__decorate([h.N(), g.__param(0, h.l(f.Ue)), g.__param(1, h.l(l.lw)), g.__param(2, h.l(m.Eea))], a); + d.EJa = a; + }, function(g, d, a) { + var c; function b() { - this.uB = {}; - this.ck = []; + this.jE = {}; + this.kj = []; } - Object.defineProperty(c, "__esModule", { + Object.defineProperty(d, "__esModule", { value: !0 }); - f = a(1); - a = a(0); - b.prototype.cB = function(a, b) { + g = a(0); + a = a(1); + b.prototype.SD = function(a, b) { var c; c = this; - b && (this.uB[a] = b, this.ck = Object.keys(this.uB).map(function(a) { - return c.uB[a]; + b && (this.jE[a] = b, this.kj = Object.keys(this.jE).map(function(a) { + return c.jE[a]; })); }; - b.prototype.Dsa = function(a) { + b.prototype.JBa = function(a) { var b; b = this; - delete this.uB[a]; - this.ck = Object.keys(this.uB).map(function(a) { - return b.uB[a]; + delete this.jE[a]; + this.kj = Object.keys(this.jE).map(function(a) { + return b.jE[a]; }); }; - d = b; - d = f.__decorate([a.N()], d); - c.zza = d; - }, function(f, c, a) { - var b, d, h, k, g; - Object.defineProperty(c, "__esModule", { + c = b; + c = g.__decorate([a.N()], c); + d.FJa = c; + }, function(g, d, a) { + var b, c, h, k, f; + Object.defineProperty(d, "__esModule", { value: !0 }); - b = a(731); - d = a(730); - f = a(0); + b = a(846); + c = a(845); + g = a(1); h = a(84); - k = a(12); - g = a(724); - c.w1a = new f.dc(function(a) { - a(k.Jb).to(d.yza).Y(); - a(h.ou).to(b.zza).Y(); - a(k.U9).to(g.pza).Y(); + k = a(7); + f = a(839); + d.oeb = new g.Vb(function(a) { + a(k.sb).to(c.EJa).$(); + a(h.lw).to(b.FJa).$(); + a(k.Eea).to(f.vJa).$(); }); - }, function(f, c, a) { - var d; + }, function(g, d, a) { + var c, h; + + function b(a, b) { + this.ia = a; + this.cQ = b; + } + Object.defineProperty(d, "__esModule", { + value: !0 + }); + g = a(0); + c = a(1); + a = a(30); + b.prototype.nb = function(a) { + this.bC(); + this.jj = this.ia.Nf(this.cQ, a); + }; + b.prototype.bC = function() { + this.jj && this.jj.cancel(); + this.jj = void 0; + }; + h = b; + h = g.__decorate([c.N(), g.__param(0, c.l(a.Xf))], h); + d.jGa = h; + }, function(g, d) { + Object.defineProperty(d, "__esModule", { + value: !0 + }); + d.iGa = "DebouncerFactorySymbol"; + }, function(g, d, a) { + var c, h, k; + + function b(a, b, c) { + this.ia = a; + this.yqb = b; + this.Ru = c; + } + Object.defineProperty(d, "__esModule", { + value: !0 + }); + g = a(0); + c = a(30); + h = a(1); + k = a(4); + b.prototype.mp = function() { + this.jj || (this.jj = this.ia.Nf(k.rb(this.yqb), this.Ru)); + }; + b.prototype.Pf = function() { + this.jj && this.jj.cancel(); + this.jj = void 0; + }; + a = b; + a = g.__decorate([h.N(), g.__param(0, h.l(c.Xf))], a); + d.TPa = a; + }, function(g, d, a) { + var c, h; + + function b(a) { + this.mc = a; + } + Object.defineProperty(d, "__esModule", { + value: !0 + }); + g = a(0); + c = a(1); + h = a(22); + a(6); + b = g.__decorate([c.N(), g.__param(0, c.l(h.Je))], b); + d.oQa = b; + }, function(g, d) { + Object.defineProperty(d, "__esModule", { + value: !0 + }); + d.pQa = "UserAgentUtilities"; + }, function(g, d) { + function a() { + this.searchParams = {}; + } + + function b(b) { + this.Qa = b; + this.searchParams = new a(); + } + Object.defineProperty(d, "__esModule", { + value: !0 + }); + b.prototype.toString = function() { + return this.href; + }; + na.Object.defineProperties(b.prototype, { + href: { + configurable: !0, + enumerable: !0, + get: function() { + return "" + this.Qa + this.searchParams.toString(); + } + } + }); + d.nQa = b; + a.prototype.get = function(a) { + return this.searchParams[a]; + }; + a.prototype.set = function(a, b) { + this.searchParams[a] = b; + }; + a.prototype.toString = function() { + var a, b; + a = this; + b = Object.keys(this.searchParams); + return 0 < b.length ? b.reduce(function(b, c, d) { + return "" + b + (0 == d ? "?" : "&") + c + "=" + a.searchParams[c]; + }, "") : ""; + }; + }, function(g, d, a) { + var c; function b(a) { - this.$Ha = void 0 === a ? !1 : a; - this.Qc = { + this.KSa = void 0 === a ? !1 : a; + this.ld = { 0: [] }; } - Object.defineProperty(c, "__esModule", { + Object.defineProperty(d, "__esModule", { value: !0 }); - f = a(1); - a = a(0); + g = a(0); + a = a(1); b.prototype.add = function(a, b) { var c; b = void 0 === b ? 0 : b; - c = this.Qc[b]; - c ? this.$Ha && -1 !== c.indexOf(a) || c.push(a) : this.Qc[b] = [a]; + c = this.ld[b]; + c ? this.KSa && -1 !== c.indexOf(a) || c.push(a) : this.ld[b] = [a]; }; b.prototype.remove = function(a, b) { - this.Kea(a, void 0 === b ? 0 : b); + this.Wq(a, void 0 === b ? 0 : b); }; b.prototype.removeAll = function(a) { - this.Kea(a); + this.Wq(a); }; - b.prototype.JVa = function() { + b.prototype.p7a = function() { var a; a = this; - return Object.keys(this.Qc).sort().reduce(function(b, c) { - return b.concat(a.Qc[c]); + return Object.keys(this.ld).sort().reduce(function(b, c) { + return b.concat(a.ld[c]); }, []); }; - b.prototype.Kea = function(a, b) { + b.prototype.Wq = function(a, b) { var c; c = this; - Object.keys(this.Qc).forEach(function(d) { + Object.keys(this.ld).forEach(function(d) { var f; if (void 0 === b || b === parseInt(d)) { - d = c.Qc[d]; - 1 < (f = d.indexOf(a)) && d.splice(f, 1); + d = c.ld[d]; - 1 < (f = d.indexOf(a)) && d.splice(f, 1); } }); }; - d = b; - d = f.__decorate([a.N()], d); - c.MDa = d; - }, function(f, c, a) { - var d, h, k, g; + c = b; + c = g.__decorate([a.N()], c); + d.YNa = c; + }, function(g, d, a) { + var c, h, k, f; function b(a, b, c) { var d; d = this; this.app = a; - this.ha = b; - this.pha = c; - this.Hw = function(a) { - d.hx = void 0; - d.Pbb(a || d.pha); + this.ia = b; + this.cQ = c; + this.js = function(a) { + d.jj = void 0; + d.nrb(a || d.cQ); }; - this.bma = k.Cb(-this.pha.qa(k.Ma)); + this.Wta = k.rb(-this.cQ.ma(k.Aa)); } - Object.defineProperty(c, "__esModule", { + Object.defineProperty(d, "__esModule", { value: !0 }); - f = a(1); - d = a(0); - h = a(38); - k = a(7); - a = a(43); - b.prototype.lb = function(a) { - this.K4 = a; - this.hx = this.hx || this.Xa(this.Hw); + g = a(0); + c = a(1); + h = a(24); + k = a(4); + a = a(30); + b.prototype.nb = function(a) { + this.U9 = a; + this.jj = this.jj || this.hb(this.js); }; - b.prototype.Ov = function() { - this.hx && this.hx.cancel(); - this.hx = void 0; + b.prototype.bC = function() { + this.jj && this.jj.cancel(); + this.jj = void 0; }; - b.prototype.Pbb = function(a) { + b.prototype.nrb = function(a) { var b, c; - b = this.app.oe(); - if (this.K4) { - c = a.ie(b.ie(this.bma)); - 0 >= c.Gk(k.cl) ? (a = this.K4, this.K4 = void 0, this.bma = b, a()) : this.hx = this.hx || this.ha.Af(c, this.Hw.bind(this, a)); + b = this.app.Pe(); + if (this.U9) { + c = a.Gd(b.Gd(this.Wta)); + 0 >= c.ql(k.Sf) ? (a = this.U9, this.U9 = void 0, this.Wta = b, a()) : this.jj = this.jj || this.ia.Nf(c, this.js.bind(this, a)); } }; - b.prototype.Xa = function(a) { - return this.ha.Af(k.cl, a); + b.prototype.hb = function(a) { + return this.ia.Nf(k.Sf, a); }; - g = b; - g = f.__decorate([d.N(), f.__param(0, d.j(h.eg)), f.__param(1, d.j(a.xh))], g); - c.lFa = g; - }, function(f, c, a) { - var d, h, k, g, m, p, n, q, v; + f = b; + f = g.__decorate([c.N(), g.__param(0, c.l(h.Ue)), g.__param(1, c.l(a.Xf))], f); + d.HPa = f; + }, function(g, d, a) { + var c, h, k, f, l, m, n, q, t; function b(a, b) { - this.gb = a; + this.Va = a; this.config = b; } - Object.defineProperty(c, "__esModule", { + Object.defineProperty(d, "__esModule", { value: !0 }); - f = a(1); - h = a(0); - k = a(38); - g = a(48); - m = a(2); - p = a(46); - n = a(7); - q = a(5); - a = a(379); - b.prototype.nTa = function(a) { - var b, c, f, h, k, l, r, q, u; + g = a(0); + h = a(1); + k = a(24); + f = a(45); + l = a(2); + m = a(16); + n = a(4); + q = a(6); + a = a(426); + b.prototype.f4a = function(a) { + var b, d, g, h, k, p, r, q, u; b = this; - k = a.pc.value; - l = a.Bl.value; - r = a.Tb.value; + k = a.sd.value; + p = a.ym.value; + r = a.Pc.value; q = a.state.value; h = { - segmentId: a.W_(), + segmentId: a.A4(), mediaTime: k, - segmentTime: a.Ts(), - bufferingState: d.ZNa[l], - presentingState: d.d6a[r], - playbackState: d.y5a[q], - mseBuffersBusy: this.FYa(a), - intBuffersBusy: this.FXa(a), - tabVisible: this.Dab(), - decodedFrameCount: this.ySa(a), - videoElementInDom: this.Jcb(a), - lastVideoSync: this.gb.oe().ie(n.Cb(a.Vra)).qa(n.Ma) - }; - u = r === p.fm.hD ? a.Pb.Qf ? this.config.toa : this.config.soa : this.config.Bna; - l !== p.RI.D$ ? (c = m.u.Eva, this.nga(h.mseBuffersBusy, h.intBuffersBusy) && (f = d.Y6)) : r !== p.fm.nf && (c = m.u.Fva, (a = a.bf) && a.Sb.sourceBuffers.forEach(function(a) { - var c, g; - c = d.n2a[a.O]; - h[c + "Ranges"] = a.WN(); + segmentTime: a.ay(), + bufferingState: c.gZa[p], + presentingState: c.Wjb[r], + playbackState: c.mjb[q], + mseBuffersBusy: this.D$a(a), + intBuffersBusy: this.r9a(a), + tabVisible: this.Ypb(), + decodedFrameCount: this.w3a(a), + videoElementInDom: this.ssb(a), + lastVideoSync: this.Va.Pe().Gd(n.rb(a.lL)).ma(n.Aa) + }; + u = r === m.rn.SF ? a.Ta.Ze ? this.config.Nwa : this.config.Mwa : this.config.Lva; + p !== m.gM.rfa ? (d = l.H.hFa, this.Xma(h.mseBuffersBusy, h.intBuffersBusy) && (g = c.Mba)) : r !== m.rn.xf && (d = l.H.iFa, (a = a.Gh) && a.jb.sourceBuffers.forEach(function(a) { + var d, f; + d = c.wfb[a.P]; + h[d + "Ranges"] = a.AR(); a = a.buffered(); - if (0 === a.length) h[c + "Undecoded"] = 0, f = d.jua; + if (0 === a.length) h[d + "Undecoded"] = 0, g = c.EDa; else { - g = 1E3 * a.end(0) - k; - h[c + "Undecoded"] = g; - 1 < a.length && (f = d.kua); - k < 1E3 * a.start(0) || k > 1E3 * a.end(0) ? f = d.lua : g < u.qa(n.Ma) ? f = d.mua : b.nga(h.mseBuffersBusy, h.intBuffersBusy) && (f = d.Y6); + f = 1E3 * a.end(0) - k; + h[d + "Undecoded"] = f; + 1 < a.length && (g = c.FDa); + k < 1E3 * a.start(0) || k > 1E3 * a.end(0) ? g = c.GDa : f < u.ma(n.Aa) ? g = c.HDa : b.Xma(h.mseBuffersBusy, h.intBuffersBusy) && (g = c.Mba); } })); a = ""; try { a = JSON.stringify(h); - } catch (Z) { - a = "Cannot stringify details: " + Z; + } catch (O) { + a = "Cannot stringify details: " + O; } - return new g.nb(m.v.V$, c, f, void 0, void 0, void 0, a, void 0); + return new f.Ub(l.I.Mfa, d, g, void 0, void 0, void 0, a, void 0); }; - b.prototype.FYa = function(a) { + b.prototype.D$a = function(a) { var b; - if (a.Sb) { + if (a.jb) { b = {}; - a.Sb.sourceBuffers.forEach(function(a) { + a.jb.sourceBuffers.forEach(function(a) { b[0 === a.type ? "audio" : "video"] = { updating: a.updating() }; @@ -91175,135 +96095,107 @@ v7AA.H22 = function() { return b; } }; - b.prototype.FXa = function(a) { + b.prototype.r9a = function(a) { var b; - if (a.Sb) { + if (a.jb) { b = {}; - a.Sb.sourceBuffers.forEach(function(a) { + a.jb.sourceBuffers.forEach(function(a) { b[0 === a.type ? "audio" : "video"] = { - updating: a.Nj() + updating: a.qk() }; }); return b; } }; - b.prototype.Dab = function() { - return !q.cd.hidden; + b.prototype.Ypb = function() { + return !q.wd.hidden; }; - b.prototype.ySa = function(a) { - return (a = a.bf) && (a = a.Sb.Ba) && void 0 !== a.webkitDecodedFrameCount ? a.webkitDecodedFrameCount : NaN; + b.prototype.w3a = function(a) { + return (a = a.Gh) && (a = a.jb.Ha) && void 0 !== a.webkitDecodedFrameCount ? a.webkitDecodedFrameCount : NaN; }; - b.prototype.Jcb = function(a) { - if (a = a.bf) - if (a = a.Sb.Ba) return q.cd.body.contains(a); + b.prototype.ssb = function(a) { + if (a = a.Gh) + if (a = a.jb.Ha) return q.wd.body.contains(a); return !1; }; - b.prototype.nga = function(a, b) { + b.prototype.Xma = function(a, b) { return !(a.audio.updating === b.audio.updating && a.video.updating === b.video.updating); }; - v = d = b; - v.jua = "1"; - v.kua = "2"; - v.lua = "3"; - v.Y6 = "4"; - v.mua = "5"; - v.n2a = ["Audio", "Video"]; - v.ZNa = ["", "NORMAL", "BUFFERING", "STALLED"]; - v.d6a = ["", "WAITING", "PLAYING ", "PAUSED", "ENDED"]; - v.y5a = ["STATE_NOTLOADED", "STATE_LOADING", "STATE_NORMAL", "STATE_CLOSING", "STATE_CLOSED"]; - v = d = f.__decorate([h.N(), f.__param(0, h.j(k.eg)), f.__param(1, h.j(a.v$))], v); - c.xwa = v; - }, function(f, c, a) { - var d, h; - - function b(a) { - this.Wd = a; - this.status = !0; - } - Object.defineProperty(c, "__esModule", { - value: !0 - }); - f = a(1); - d = a(0); - a = a(85); - b.prototype.get = function() { - return this.status; - }; - b.prototype.set = function(a) { - this.status = a; - this.Wd.Ek.mq({ - kind: this.status ? "playerDownloadsAvailability" : "playerDownloadsAvailabilityError", - status: this.status - }); - }; - h = b; - h = f.__decorate([d.N(), f.__param(0, d.j(a.Wq))], h); - c.Nwa = h; - }, function(f, c, a) { - var d, h, k, g; + t = c = b; + t.EDa = "1"; + t.FDa = "2"; + t.GDa = "3"; + t.Mba = "4"; + t.HDa = "5"; + t.wfb = ["Audio", "Video"]; + t.gZa = ["", "NORMAL", "BUFFERING", "STALLED"]; + t.Wjb = ["", "WAITING", "PLAYING ", "PAUSED", "ENDED"]; + t.mjb = ["STATE_NOTLOADED", "STATE_LOADING", "STATE_NORMAL", "STATE_CLOSING", "STATE_CLOSED"]; + t = c = g.__decorate([h.N(), g.__param(0, h.l(k.Ue)), g.__param(1, h.l(a.jfa))], t); + d.mGa = t; + }, function(g, d, a) { + var c, h, k, f; function b(a, b) { - this.gb = a; + this.Va = a; this.entries = []; - this.ca = b.Bb("TimingApi"); + this.ga = b.lb("TimingApi"); } - Object.defineProperty(c, "__esModule", { + Object.defineProperty(d, "__esModule", { value: !0 }); - f = a(1); - d = a(0); - h = a(38); - k = a(7); - a = a(12); + g = a(0); + c = a(1); + h = a(24); + k = a(4); + a = a(7); b.prototype.mark = function(a, b) { a = { name: a, - aa: b, - Xab: this.gb.oe() + ka: b, + tqb: this.Va.Pe() }; this.entries.push(a); return a; }; - b.prototype.TXa = function() { + b.prototype.I9a = function() { return this.entries.slice(); }; - b.prototype.Yja = function() { + b.prototype.Cra = function() { var a; a = {}; try { - a = this.TXa().filter(function(a) { - return !a.aa; + a = this.I9a().filter(function(a) { + return !a.ka; }).reduce(function(a, b) { - a[b.name] = b.Xab.qa(k.Ma); + a[b.name] = b.tqb.ma(k.Aa); return a; }, {}); - } catch (p) { - this.ca.error(" getMapOfCommonMarks exception", p); + } catch (m) { + this.ga.error(" getMapOfCommonMarks exception", m); } return a; }; - g = b; - g = f.__decorate([d.N(), f.__param(0, d.j(h.eg)), f.__param(1, d.j(a.Jb))], g); - c.vFa = g; - }, function(f, c, a) { - var d, h, k, g; + f = b; + f = g.__decorate([c.N(), g.__param(0, c.l(h.Ue)), g.__param(1, c.l(a.sb))], f); + d.VPa = f; + }, function(g, d, a) { + var c, h, k, f; function b(a) { - a = h.NI.call(this, a) || this; - a.Hj = "ClockConfigImpl"; - return a; + return h.cM.call(this, a, "ClockConfigImpl") || this; } - Object.defineProperty(c, "__esModule", { + Object.defineProperty(d, "__esModule", { value: !0 }); - f = a(1); - d = a(54); - h = a(53); - k = a(0); - a = a(39); - oa(b, h.NI); - pa.Object.defineProperties(b.prototype, { - Wsa: { + g = a(0); + c = a(35); + h = a(38); + k = a(1); + a = a(26); + ia(b, h.cM); + na.Object.defineProperties(b.prototype, { + gCa: { configurable: !0, enumerable: !0, get: function() { @@ -91311,32 +96203,31 @@ v7AA.H22 = function() { } } }); - g = b; - f.__decorate([d.config(d.We, "usePerformanceApi")], g.prototype, "Wsa", null); - g = f.__decorate([k.N(), f.__param(0, k.j(a.rS))], g); - c.nva = g; - }, function(f, c, a) { - var d, h, k, g; + f = b; + g.__decorate([c.config(c.le, "usePerformanceApi")], f.prototype, "gCa", null); + f = g.__decorate([k.N(), g.__param(0, k.l(a.qW))], f); + d.PEa = f; + }, function(g, d, a) { + var c, h, k, f; function b(a) { - a = h.NI.call(this, a) || this; - a.xmb = function() { + a = h.cM.call(this, a, "DebugConfigImpl") || this; + a.eDb = function() { debugger; }; - a.Hj = "DebugConfigImpl"; return a; } - Object.defineProperty(c, "__esModule", { + Object.defineProperty(d, "__esModule", { value: !0 }); - f = a(1); - d = a(54); - h = a(53); - k = a(0); - a = a(39); - oa(b, h.NI); - pa.Object.defineProperties(b.prototype, { - RNa: { + g = a(0); + c = a(35); + h = a(38); + k = a(1); + a = a(26); + ia(b, h.cM); + na.Object.defineProperties(b.prototype, { + $Ya: { configurable: !0, enumerable: !0, get: function() { @@ -91344,64 +96235,64 @@ v7AA.H22 = function() { } } }); - g = b; - f.__decorate([d.config(d.We, "breakOnError")], g.prototype, "RNa", null); - g = f.__decorate([k.N(), f.__param(0, k.j(a.rS))], g); - c.vwa = g; - }, function(f, c, a) { - var d, h, k, g; + f = b; + g.__decorate([c.config(c.le, "breakOnError")], f.prototype, "$Ya", null); + f = g.__decorate([k.N(), g.__param(0, k.l(a.qW))], f); + d.kGa = f; + }, function(g, d, a) { + var c, h, k, f; function b(a, b, c) { this.config = a; - this.Oa = b; - this.ca = c.Bb("General"); + this.Pa = b; + this.ga = c.lb("General"); } - Object.defineProperty(c, "__esModule", { + Object.defineProperty(d, "__esModule", { value: !0 }); - f = a(1); - d = a(0); - h = a(20); - k = a(128); - a = a(12); + g = a(0); + c = a(1); + h = a(23); + k = a(137); + a = a(7); b.prototype.assert = function() {}; - b.prototype.LMa = function(a, b) { - this.assert(this.Oa.ah(a), b); + b.prototype.VXa = function(a, b) { + this.assert(this.Pa.tl(a), b); }; - b.prototype.MMa = function(a, b) { - this.assert(this.Oa.uf(a), b); + b.prototype.WXa = function(a, b) { + this.assert(this.Pa.Zg(a), b); }; - b.prototype.RMa = function(a, b) { - this.assert(this.Oa.Xg(a), b); + b.prototype.aYa = function(a, b) { + this.assert(this.Pa.uh(a), b); }; - b.prototype.UMa = function(a, b) { - this.assert(this.Oa.Eh(a), b); + b.prototype.dYa = function(a, b) { + this.assert(this.Pa.Oi(a), b); }; - b.prototype.SMa = function(a, b) { - this.assert(this.Oa.Xg(a) || null === a || void 0 === a, b); + b.prototype.bYa = function(a, b) { + this.assert(this.Pa.uh(a) || null === a || void 0 === a, b); }; - b.prototype.PMa = function(a, b) { - this.assert(this.Oa.ye(a), b); + b.prototype.ZXa = function(a, b) { + this.assert(this.Pa.Af(a), b); }; - b.prototype.OMa = function(a, b) { - this.assert(this.Oa.rX(a), b); + b.prototype.YXa = function(a, b) { + this.assert(this.Pa.g0(a), b); }; - b.prototype.TMa = function(a, b) { - this.assert(this.Oa.Hn(a), b); + b.prototype.cYa = function(a, b) { + this.assert(this.Pa.ap(a), b); }; - b.prototype.QMa = function(a, b) { - this.assert(this.Oa.Xy(a), b); + b.prototype.$Xa = function(a, b) { + this.assert(this.Pa.uB(a), b); }; - b.prototype.JMa = function(a, b) { - this.assert(this.Oa.Vy(a), b); + b.prototype.TXa = function(a, b) { + this.assert(this.Pa.tB(a), b); }; - b.prototype.NMa = function(a, b) { - this.assert(this.Oa.Wy(a), b); + b.prototype.XXa = function(a, b) { + this.assert(this.Pa.JG(a), b); }; - b.prototype.z_a = function() { + b.prototype.$bb = function() { this.assert(!1, "invalid operation, this method should not be called"); }; - b.iob = function() { + b.TEb = function() { var a, b; a = Error.captureStackTrace; return b = a ? function(c) { @@ -91421,175 +96312,169 @@ v7AA.H22 = function() { } }; }; - g = b; - g = f.__decorate([d.N(), f.__param(0, d.j(k.O7)), f.__param(1, d.j(h.rd)), f.__param(2, d.j(a.Jb))], g); - c.wwa = g; - }, function(f, c, a) { - var d, h, k, g; + f = b; + f = g.__decorate([c.N(), g.__param(0, c.l(k.Fca)), g.__param(1, c.l(h.ve)), g.__param(2, c.l(a.sb))], f); + d.lGa = f; + }, function(g, d, a) { + var c, h, k, f; function b(a, b) { this.is = a; - this.bg = b; + this.Hd = b; } - Object.defineProperty(c, "__esModule", { + Object.defineProperty(d, "__esModule", { value: !0 }); - f = a(1); - h = a(0); - k = a(20); - a = a(26); + g = a(0); + h = a(1); + k = a(23); + a = a(22); b.prototype.encode = function(a) { var b, c; b = this; c = ""; - this.bg.Ls(a, function(a, d) { - a = b.yia(a) + "=" + b.yia(d); + this.Hd.Cu(a, function(a, d) { + a = b.Opa(a) + "=" + b.Opa(d); c = c ? c + ("," + a) : a; }); return c; }; - b.prototype.yia = function(a) { - return this.is.ah(a) ? this.is.ye(a) ? "" + a : this.is.Xg(a) ? (a = a.replace(d.Ypa, this.L1a.bind(this)), !d.K6a.test(a) && d.W2a.test(a) && (a = '"' + a + '"'), a) : this.is.Vy(a) ? "" + a : isNaN(a) ? "NaN" : "" : ""; + b.prototype.Opa = function(a) { + return this.is.tl(a) ? this.is.Af(a) ? "" + a : this.is.uh(a) ? (a = a.replace(c.wya, this.Eeb.bind(this)), !c.Gkb.test(a) && c.ogb.test(a) && (a = '"' + a + '"'), a) : this.is.tB(a) ? "" + a : this.is.N_(a) ? "NaN" : "" : ""; }; - b.prototype.L1a = function(a) { - return d.map[a]; + b.prototype.Eeb = function(a) { + return c.map[a]; }; - g = d = b; - g.map = { + f = c = b; + f.map = { '"': '""', "\r": "", "\n": " " }; - g.Ypa = /(?!^.+)["\r\n](?=.+$)/g; - g.K6a = /["].*["]/g; - g.W2a = /[", ]/; - g = d = f.__decorate([h.N(), f.__param(0, h.j(k.rd)), f.__param(1, h.j(a.Re))], g); - c.wva = g; - }, function(f, c, a) { - var d, h, k, g; + f.wya = /(?!^.+)["\r\n](?=.+$)/g; + f.Gkb = /["].*["]/g; + f.ogb = /[", ]/; + f = c = g.__decorate([h.N(), g.__param(0, h.l(k.ve)), g.__param(1, h.l(a.Je))], f); + d.aFa = f; + }, function(g, d, a) { + var c, h, k, f; function b(a, b) { - this.Na = a; - this.SN = this.Na.Eg.qa(k.Ma) - 1; - this.m1a = this.RO = 0; - this.id = "" + b.As(); + this.Ma = a; + this.wR = this.Ma.eg.ma(k.Aa) - 1; + this.geb = this.ES = 0; + this.id = "" + b.wH(); } - Object.defineProperty(c, "__esModule", { + Object.defineProperty(d, "__esModule", { value: !0 }); - f = a(1); - d = a(0); - h = a(52); - k = a(7); - a = a(37); - b.prototype.oe = function() { + g = a(0); + c = a(1); + h = a(37); + k = a(4); + a = a(119); + b.prototype.Pe = function() { var a, b; - a = this.Na.Eg.qa(k.Ma) - this.SN; - if (a < this.RO) { - b = this.RO + 1; - this.SN -= b - a; + a = this.Ma.eg.ma(k.Aa) - this.wR; + if (a < this.ES) { + b = this.ES + 1; + this.wR -= b - a; a = b; } - this.RO = a; - return k.Cb(this.RO); + this.ES = a; + return k.rb(this.ES); }; - b.prototype.Xja = function() { - return this.m1a++; + b.prototype.Bra = function() { + return this.geb++; }; - pa.Object.defineProperties(b.prototype, { - VO: { + na.Object.defineProperties(b.prototype, { + bD: { configurable: !0, enumerable: !0, get: function() { - return k.Cb(this.SN); + return k.rb(this.wR); } } }); - g = b; - g = f.__decorate([d.N(), f.__param(0, d.j(h.mj)), f.__param(1, d.j(a.Rg))], g); - c.Pta = g; - }, function(f, c, a) { - var d, h; + f = b; + f = g.__decorate([c.N(), g.__param(0, c.l(h.yi)), g.__param(1, c.l(a.dA))], f); + d.eDa = f; + }, function(g) { + g.M = "function" === typeof Object.create ? function(d, a) { + d.Lpb = a; + d.prototype = Object.create(a.prototype, { + constructor: { + value: d, + enumerable: !1, + writable: !0, + configurable: !0 + } + }); + } : function(d, a) { + function b() {} + d.Lpb = a; + b.prototype = a.prototype; + d.prototype = new b(); + d.prototype.constructor = d; + }; + }, function(g) { + g.M = function(d) { + return d && "object" === typeof d && "function" === typeof d.jp && "function" === typeof d.fill && "function" === typeof d.LHb; + }; + }, function(g, d, a) { + var c; - function b() { - this.Mk = {}; - this.id = "$es$" + d.TPa++; + function b(a) { + this.W7a = a; + this.UR = !1; + this.bS = this.wL = this.wE = 0; + this.RI = !1; + this.cS = 0; } - Object.defineProperty(c, "__esModule", { + Object.defineProperty(d, "__esModule", { value: !0 }); - f = a(1); - a = a(0); - b.prototype.addListener = function(a, b, c) { - var d, f; - d = "$netflix$player$order" + this.id + "$" + a; - if (this.Mk) { - f = this.Mk[a] ? this.Mk[a].slice() : []; - c && (b[d] = c); - 0 > f.indexOf(b) && (f.push(b), f.sort(function(a, b) { - return (a[d] || 0) - (b[d] || 0); - })); - this.Mk[a] = f; - } - }; - b.prototype.removeListener = function(a, b) { - if (this.Mk && this.Mk[a]) { - for (var c = this.Mk[a].slice(), d; 0 <= (d = c.indexOf(b));) c.splice(d, 1); - this.Mk[a] = c; - } + c = a(230); + b.prototype.cXa = function(a) { + a < this.wE && (this.wL += this.wE); + this.wE = a; + this.UR = !0; }; - b.prototype.mc = function(a, b, c) { - var d; - if (this.Mk) { - d = this.M_(a); - for (a = { - Mh: 0 - }; a.Mh < d.length; a = { - Mh: a.Mh - }, a.Mh++) c ? function(a) { - return function() { - var c; - c = d[a.Mh]; - setTimeout(function() { - c(b); - }, 0); - }; - }(a)() : d[a.Mh].call(this, b); - } + b.prototype.A8a = function() { + if (this.UR) return this.RI ? this.cS - this.bS : this.wL + this.wE - this.bS; }; - b.prototype.Ov = function() { - this.Mk = void 0; + b.prototype.refresh = function() { + var a; + a = this.W7a(); + c.ja(a) && this.cXa(a); }; - b.prototype.on = function(a, b, c) { - this.addListener(a, b, c); + b.prototype.Oob = function() { + this.RI || (this.UR && (this.cS = this.wL + this.wE), this.RI = !0); }; - b.prototype.M_ = function(a) { - return this.Mk && (this.Mk[a] || (this.Mk[a] = [])); + b.prototype.dpb = function() { + this.RI && (this.UR && (this.bS += this.wL + this.wE - this.cS), this.cS = 0, this.RI = !1); }; - h = d = b; - h.TPa = 0; - h = d = f.__decorate([a.N()], h); - c.Ci = h; - }, function(f, c, a) { - var d, h, k; + d.wLa = b; + }, function(g, d, a) { + var c, h, k; function b(a) { - this.ha = a; + this.ia = a; } - Object.defineProperty(c, "__esModule", { + Object.defineProperty(d, "__esModule", { value: !0 }); - f = a(1); - d = a(0); - h = a(43); - k = a(125); - b.prototype.dx = function(a, b) { + g = a(0); + c = a(1); + h = a(30); + k = a(70); + b.prototype.Ml = function(a, b) { var c; c = this; return new Promise(function(d, f) { var g; - g = c.ha.Af(a, function() { - f(new k.ly(a)); + g = c.ia.Nf(a, function() { + f(new k.sn(a)); }); b.then(function(a) { d(a); @@ -91601,42 +96486,42 @@ v7AA.H22 = function() { }); }; a = b; - a = f.__decorate([d.N(), f.__param(0, d.j(h.xh))], a); - c.QDa = a; - }, function(f, c, a) { - var d, h, k, g, m, p, n, q; + a = g.__decorate([c.N(), g.__param(0, c.l(h.Xf))], a); + d.cOa = a; + }, function(g, d, a) { + var c, h, k, f, l, m, n, q; function b() {} - Object.defineProperty(c, "__esModule", { + Object.defineProperty(d, "__esModule", { value: !0 }); - f = a(1); - a = a(0); + g = a(0); + a = a(1); h = Array.prototype.slice; k = h.call("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"); h = h.call("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"); - g = {}; + f = {}; + l = {}; m = {}; - p = {}; n = {}; q = /\s+/g; [k, h].forEach(function(a) { var c; for (var b = a.length; b--;) { c = a[b]; - g[c] = b << 18; - m[c] = b << 12; - p[c] = b << 6; + f[c] = b << 18; + l[c] = b << 12; + m[c] = b << 6; n[c] = b; } }); b.prototype.encode = function(a) { - return d.SZ(a, k, "="); + return c.T2(a, k, "="); }; b.prototype.decode = function(a) { - return d.uZ(a); + return c.l2(a); }; - b.uZ = function(a) { + b.l2 = function(a) { var b, c, d; a = a.replace(q, ""); b = a.length; @@ -91656,17 +96541,17 @@ v7AA.H22 = function() { case 1: throw Error("bad base64"); } - for (var b = new Uint8Array(c + d), f = 0, h = 0, k; h < c;) { - k = g[a[f++]] + m[a[f++]] + p[a[f++]] + n[a[f++]]; + for (var b = new Uint8Array(c + d), g = 0, h = 0, k; h < c;) { + k = f[a[g++]] + l[a[g++]] + m[a[g++]] + n[a[g++]]; if (!(0 <= k && 16777215 >= k)) throw Error("bad base64"); b[h++] = k >>> 16; b[h++] = k >>> 8 & 255; b[h++] = k & 255; } - if (0 < d && (k = g[a[f++]] + m[a[f++]], b[h++] = k >>> 16, 1 < d && (k += p[a[f++]], b[h++] = k >>> 8 & 255), !(0 <= k && 16776960 >= k && 0 === (k & (1 < d ? 255 : 65535))))) throw Error("bad base64"); + if (0 < d && (k = f[a[g++]] + l[a[g++]], b[h++] = k >>> 16, 1 < d && (k += m[a[g++]], b[h++] = k >>> 8 & 255), !(0 <= k && 16776960 >= k && 0 === (k & (1 < d ? 255 : 65535))))) throw Error("bad base64"); return b; }; - b.SZ = function(a, b, c) { + b.T2 = function(a, b, c) { for (var d = "", f = 0, g = a.length, h = g - 2, k; f < h;) { k = (a[f++] << 16) + (a[f++] << 8) + a[f++]; if (!(0 <= k && 16777215 >= k)) throw Error("not bytes"); @@ -91683,956 +96568,891 @@ v7AA.H22 = function() { } return d; }; - h = d = b; - h = d = f.__decorate([a.N()], h); - c.oua = h; - }, function(f, c, a) { - var d, h; + h = c = b; + h = c = g.__decorate([a.N()], h); + d.KDa = h; + }, function(g, d, a) { + var c, h; function b() {} - Object.defineProperty(c, "__esModule", { + Object.defineProperty(d, "__esModule", { value: !0 }); - f = a(1); - a = a(0); + g = a(0); + a = a(1); b.prototype.encode = function(a) { - return d.SZ(a); + return c.T2(a); }; b.prototype.decode = function(a) { - return d.uZ(a); + return c.l2(a); }; - b.SZ = function(a) { + b.T2 = function(a) { if (!a) throw new TypeError("Invalid byte array"); - for (var b = 0, c, d = a.length, f = ""; b < d;) { + for (var b = 0, c, d = a.length, g = ""; b < d;) { c = a[b++]; if (!(0 <= c && 255 >= c)) throw Error("bad utf8"); if (c & 128) if (192 === (c & 224)) c = ((c & 31) << 6) + (a[b++] & 63); else if (224 === (c & 240)) c = ((c & 15) << 12) + ((a[b++] & 63) << 6) + (a[b++] & 63); else throw Error("unsupported utf8 character"); - f += String.fromCharCode(c); + g += String.fromCharCode(c); } - return f; + return g; }; - b.uZ = function(a) { - var b, c, d, f, h; + b.l2 = function(a) { + var b, c, d, g, h; b = a.length; c = 0; - f = 0; + g = 0; if (!(0 <= b)) throw Error("bad string"); for (d = b; d--;) h = a.charCodeAt(d), 128 > h ? c++ : c = 2048 > h ? c + 2 : c + 3; c = new Uint8Array(c); - for (d = 0; d < b; d++) h = a.charCodeAt(d), 128 > h ? c[f++] = h : (2048 > h ? c[f++] = 192 | h >>> 6 : (c[f++] = 224 | h >>> 12, c[f++] = 128 | h >>> 6 & 63), c[f++] = 128 | h & 63); + for (d = 0; d < b; d++) h = a.charCodeAt(d), 128 > h ? c[g++] = h : (2048 > h ? c[g++] = 192 | h >>> 6 : (c[g++] = 224 | h >>> 12, c[g++] = 128 | h >>> 6 & 63), c[g++] = 128 | h & 63); return c; }; - h = d = b; - h = d = f.__decorate([a.N()], h); - c.LFa = h; - }, function(f, c, a) { - var d, h, k, g, m; + h = c = b; + h = c = g.__decorate([a.N()], h); + d.qQa = h; + }, function(g, d, a) { + var c, h, k, f, l, m, n; - function b(a, b, c) { + function b(a, b, d, f) { + var g; + g = this; this.config = a; - this.oSa = b; - this.performance = c; - d.$i(this, "date"); - d.$i(this, "performance"); - this.qMa = void 0 !== this.performance && void 0 !== this.performance.timing && void 0 !== this.performance.now; + this.O2a = b; + this.jc = d; + this.performance = f; + this.Lhb = function(a) { + g.Nza = a.Gd(g.eg); + }; + c.zk(this, "date"); + c.zk(this, "performance"); + this.CXa = void 0 !== this.performance && void 0 !== this.performance.timing && void 0 !== this.performance.now; + this.Nza = h.Sf; + this.jc.addListener(n.mea.Pza, this.Lhb); } - Object.defineProperty(c, "__esModule", { + Object.defineProperty(d, "__esModule", { value: !0 }); - f = a(1); - d = a(49); - h = a(7); - k = a(0); - g = a(50); - a = a(383); - pa.Object.defineProperties(b.prototype, { - Eg: { + g = a(0); + c = a(51); + h = a(4); + k = a(1); + f = a(39); + l = a(432); + m = a(69); + n = a(16); + na.Object.defineProperties(b.prototype, { + eg: { + configurable: !0, + enumerable: !0, + get: function() { + return this.Mva ? h.timestamp(this.performance.timing.navigationStart + this.performance.now()) : h.rb(this.O2a.now()); + } + }, + r$: { configurable: !0, enumerable: !0, get: function() { - return this.Dna ? h.timestamp(this.performance.timing.navigationStart + this.performance.now()) : h.Cb(this.oSa.now()); + return this.eg.add(this.Nza); } }, - Dna: { + Mva: { configurable: !0, enumerable: !0, get: function() { - return this.config.Wsa && this.qMa; + return this.config.gCa && this.CXa; } } }); - m = b; - m = f.__decorate([k.N(), f.__param(0, k.j(a.u7)), f.__param(1, k.j(g.N7)), f.__param(2, k.j(g.tU)), f.__param(2, k.optional())], m); - c.ova = m; - }, function(f, c, a) { - var d, h; + a = b; + a = g.__decorate([k.N(), g.__param(0, k.l(l.kca)), g.__param(1, k.l(f.Eca)), g.__param(2, k.l(m.RW)), g.__param(3, k.l(f.qY)), g.__param(3, k.optional())], a); + d.QEa = a; + }, function(g, d, a) { + var c, h; function b(a) { - this.Cab = a; + this.Xpb = a; } - Object.defineProperty(c, "__esModule", { + Object.defineProperty(d, "__esModule", { value: !0 }); - f = a(1); - d = a(0); - a = a(110); + g = a(0); + c = a(1); + a = a(118); b.prototype.random = function() { - return this.Cab.random(); + return this.Xpb.random(); }; - b.prototype.X3 = function(a, b) { + b.prototype.e9 = function(a, b) { if ("number" !== typeof a) b = a.end, a = a.start; else if ("undefined" === typeof b) throw Error("max must be provided for randomInteger API"); return Math.round(a + this.random() * (b - a)); }; h = b; - h = f.__decorate([d.N(), f.__param(0, d.j(a.zba))], h); - c.dEa = h; - }, function(f, c, a) { - var d, h, k, g, m; + h = g.__decorate([c.N(), g.__param(0, c.l(a.Aha))], h); + d.kOa = h; + }, function(g, d, a) { + var c, h, k, f, l; function b(a, b) { - this.Na = a; + this.Ma = a; this.random = b; } - Object.defineProperty(c, "__esModule", { + Object.defineProperty(d, "__esModule", { value: !0 }); - f = a(1); - h = a(0); - k = a(7); - g = a(52); - a = a(110); - b.prototype.As = function() { - return this.Na.Eg.qa(k.Zo) * d.i7 + Math.floor(this.random.random() * d.i7); - }; - m = d = b; - m.i7 = 1E4; - m = d = f.__decorate([h.N(), f.__param(0, h.j(g.mj)), f.__param(1, h.j(a.XC))], m); - c.Oya = m; - }, function(f, c, a) { - var h, k, g, m; + g = a(0); + h = a(1); + k = a(4); + f = a(37); + a = a(118); + b.prototype.wH = function() { + return this.Ma.eg.ma(k.em) * c.aca + Math.floor(this.random.random() * c.aca); + }; + l = c = b; + l.aca = 1E4; + l = c = g.__decorate([h.N(), g.__param(0, h.l(f.yi)), g.__param(1, h.l(a.KF))], l); + d.QIa = l; + }, function(g, d, a) { + var h, k, f, l; function b(a) { - this.MB = a; - k.$i(this, "timers"); + this.AE = a; + k.zk(this, "timers"); } - function d(a, b) { - this.MB = a; - this.HOa = b; + function c(a, b) { + this.AE = a; + this.TZa = b; } - Object.defineProperty(c, "__esModule", { + Object.defineProperty(d, "__esModule", { value: !0 }); - f = a(1); - h = a(0); - k = a(49); - g = a(50); - m = a(7); - d.prototype.cancel = function() { - this.HOa(this.MB); + g = a(0); + h = a(1); + k = a(51); + f = a(39); + l = a(4); + c.prototype.cancel = function() { + this.TZa(this.AE); }; - b.prototype.lb = function(a) { - return this.Af(m.cl, a); + b.prototype.nb = function(a) { + return this.Nf(l.Sf, a); }; - b.prototype.Af = function(a, b) { - var c; - c = this.MB.setTimeout(b, a.qa(m.Ma)); - return new d(this.MB, function(a) { - a.clearTimeout(c); + b.prototype.Nf = function(a, b) { + var d; + d = this.AE.setTimeout(b, a.ma(l.Aa)); + return new c(this.AE, function(a) { + a.clearTimeout(d); }); }; - b.prototype.EQ = function(a, b) { - var c; - c = this.MB.setInterval(b, a.qa(m.Ma)); - return new d(this.MB, function(a) { - a.clearInterval(c); + b.prototype.sza = function(a, b) { + var d; + d = this.AE.setInterval(b, a.ma(l.Aa)); + return new c(this.AE, function(a) { + a.clearInterval(d); }); }; a = b; - a = f.__decorate([h.N(), f.__param(0, h.j(g.eca))], a); - c.REa = a; - }, function(f, c, a) { - var b, d, h, k, g, m, p, n, q, v, z, w, G, x, y, C, F, A, H, ca, Z, O, B, P, V, D, S, Y, X, U, aa, ba, ea, ia, ka, ua, la, fa, ga, ma, oa, pa, na, ra, sa, ta; - Object.defineProperty(c, "__esModule", { - value: !0 - }); - f = a(0); - b = a(50); - d = a(52); - h = a(43); - k = a(37); - g = a(110); - m = a(750); - p = a(749); - n = a(748); - q = a(747); - v = a(152); - z = a(153); - w = a(62); - G = a(26); - x = a(20); - y = a(109); - C = a(125); - F = a(746); - A = a(221); - H = a(745); - ca = a(382); - Z = a(744); - O = a(108); - B = a(743); - P = a(220); - V = a(96); - D = a(742); - S = a(38); - Y = a(381); - X = a(741); - U = a(740); - aa = a(128); - ba = a(739); - ea = a(12); - ia = a(383); - ka = a(738); - ua = a(95); - la = a(737); - fa = a(736); - ga = a(151); - ma = a(380); - oa = a(735); - pa = a(734); - na = a(378); - ra = a(5); - sa = a(377); - ta = a(733); - c.nPa = new f.dc(function(a) { - a(b.hr).th(JSON); - a(b.eca).th(t); - a(g.zba).th(Math); - a(b.Q9).th(ra.KJ); - a(b.tU).th(ra.cm); - a(b.N7).th(Date); - a(b.LC).th(ra.Tg); - a(b.q$).th(ra.JC); - a(ia.u7).to(ka.nva).Y(); - a(S.eg).to(D.Pta).Y(); - a(d.mj).to(q.ova).Y(); - a(h.xh).to(m.REa).Y(); - a(k.Rg).to(p.Oya).Y(); - a(C.aK).to(Z.QDa).Y(); - a(g.XC).to(n.dEa).Y(); - a(aa.gJ).to(U.wwa).Y(); - a(aa.O7).to(ba.vwa).Y(); - a(v.mK).to(F.LFa).Y(); - a(z.MI).to(A.hS).Y(); - a(w.fl).to(H.oua).Y(); - a(G.Re).to(ca.Tba).Y(); - a(x.rd).th(O.nn); - a(y.nJ).to(B.Ci).I0(); - a(y.CS).to(B.Ci).Y(); - a(P.OU).to(V.Cu).Y(); - a(Y.D7).to(X.wva).Y(); - a(ua.xr).to(la.vFa).Y(); - a(ga.jJ).to(fa.Nwa).Y(); - a("Factory").cbb(ea.Jb); - a(ma.Q7).to(oa.xwa).Y(); - a(na.Iba).Yl(function(a) { + a = g.__decorate([h.N(), g.__param(0, h.l(f.fia))], a); + d.aPa = a; + }, function(g, d, a) { + var b, c, h, k, f, l, m, n, q, t, v, y, w, D, z, E, P, F, G, N, O, Y, U, R, S, T, H, X, aa, ba, Z, Q, ja, ea, ma, ca, fa, da, ha, ia, ka, na, oa, qa, ta, xa, za, ua, Ba, Ca, Fa, Ha, Ia, La, Oa, Ra, Va, Ja, Wa, Xa, Ya; + Object.defineProperty(d, "__esModule", { + value: !0 + }); + g = a(1); + b = a(39); + c = a(37); + h = a(30); + k = a(119); + f = a(118); + l = a(872); + m = a(871); + n = a(870); + q = a(869); + t = a(99); + v = a(100); + y = a(44); + w = a(22); + D = a(23); + z = a(69); + E = a(70); + P = a(431); + F = a(868); + G = a(231); + N = a(867); + O = a(430); + Y = a(866); + U = a(123); + R = a(429); + S = a(865); + T = a(228); + H = a(98); + X = a(862); + aa = a(24); + ba = a(428); + Z = a(861); + Q = a(860); + ja = a(137); + ea = a(859); + ma = a(7); + ca = a(432); + fa = a(858); + da = a(117); + ha = a(857); + ia = a(427); + ka = a(856); + na = a(855); + oa = a(85); + qa = a(6); + ta = a(425); + xa = a(854); + za = a(424); + ua = a(853); + Ba = a(423); + Ca = a(20); + Fa = a(66); + Ha = a(63); + Ia = a(422); + La = a(852); + Oa = a(851); + Ra = a(421); + Va = a(420); + Ja = a(116); + Wa = a(850); + Xa = a(849); + Ya = a(848); + d.M_a = new g.Vb(function(a) { + a(b.Ys).Ig(JSON); + a(b.fia).Ig(A); + a(f.Aha).Ig(Math); + a(b.Aea).Ig(qa.YM); + a(b.qY).Ig(qa.wq); + a(b.Eca).Ig(Date); + a(b.lA).Ig(qa.Ph); + a(b.cfa).Ig(qa.jA); + a(ca.kca).to(fa.PEa).$(); + a(aa.Ue).to(X.eDa).$(); + a(c.yi).to(q.QEa).$(); + a(h.Xf).to(l.aPa).$(); + a(k.dA).to(m.QIa).$(); + a(E.tA).to(Y.cOa).$(); + a(f.KF).to(n.kOa).$(); + a(ja.YE).to(Q.lGa).$(); + a(ja.Fca).to(ea.kGa).$(); + a(t.Iw).to(F.qQa).$(); + a(v.$v).to(G.hW).$(); + a(y.nj).to(N.KDa).$(); + a(w.Je).to(O.Vha).$(); + a(D.ve).Ig(U.tq); + a(Ra.zM).to(Va.nHa).$(); + a(z.AM).to(R.Pj).z5(); + a(z.XE).to(R.Pj).$(); + a(z.RW).to(R.Pj).$(); + a(T.JY).to(H.Dw).$(); + a(ba.uca).to(Z.aFa).$(); + a(da.Hw).to(ha.VPa).$(); + a("Factory").Bqb(ma.sb); + a(ia.Hca).to(ka.mGa).$(); + a(oa.Ew).ih(function(a) { return function(b) { - return new pa.lFa(a.kc.get(S.eg), a.kc.get(h.xh), b); + return new na.HPa(a.Xb.get(aa.Ue), a.Xb.get(h.Xf), b); }; }); - a(sa.EU).lsa(ta.MDa); - a(sa.LDa).Yl(function(a) { + a(Xa.iGa).ih(function(a) { + return function(b) { + return new Ya.jGa(a.Xb.get(h.Xf), b); + }; + }); + a(ta.vY).Cqb(xa.YNa); + a(ta.XNa).ih(function(a) { var b; - b = a.kc.get(sa.EU); + b = a.Xb.get(ta.vY); return function() { return new b(!1); }; }); - a(sa.Oaa).Yl(function(a) { + a(ta.Mga).ih(function(a) { var b; - b = a.kc.get(sa.EU); + b = a.Xb.get(ta.vY); return function() { return new b(!0); }; }); + a(za.Uha).ih(function() { + return function(a) { + return new ua.nQa(a); + }; + }); + a(Ha.Sj).ih(function(a) { + return function(b, c, d) { + var f, g, h; + f = a.Xb.get(ja.YE); + g = a.Xb.get(Ca.je); + h = a.Xb.get(Fa.pn); + return new Ba.MNa(f, g, h, Ia.$ea, b, c, d); + }; + }); + a(P.Efa).ih(function() { + return function(a) { + return new S.wLa(a); + }; + }); + a(La.pQa).to(Oa.oQa).$(); + a(Ja.Gw).ih(function(a) { + return function(b, c) { + return new Wa.TPa(a.Xb.get(h.Xf), b, c); + }; + }); }); - }, function(f, c, a) { - var b, d, h, k, g, m, p, n, q, t, z, w, G, x, y, C, F, A, H, ca, Z, O, B, P, V, D, S, Y, X; - Object.defineProperty(c, "__esModule", { - value: !0 - }); - b = a(751); - d = a(732); - h = a(721); - k = a(716); - g = a(710); - m = a(707); - p = a(703); - n = a(691); - q = a(679); - t = a(676); - z = a(672); - w = a(235); - G = a(669); - x = a(664); - y = a(650); - C = a(643); - F = a(636); - A = a(628); - H = a(615); - ca = a(234); - Z = a(607); - O = a(605); - B = a(597); - P = a(593); - V = a(591); - D = a(589); - S = a(584); - Y = a(564); - X = a(560); - c.O0a = function(a) { - a.load(b.nPa, m.Pab, d.w1a, p.VM, q.wM, h.FG, k.bk, g.Lcb, n.storage, t.HNa, z.Tk, w.Yg, G.Bg, x.t1a, y.d3a, C.eWa, F.R3, A.Qh, H.YTa, ca.eme, Z.crypto, O.bg, B.Mcb, P.DMa, V.O2a, D.c5a, S.mPa, Y.Hbb, X.r0a); - }; - }, function(f, c, a) { - var d, h, k, g, m, p, n; - - function b(a, b) { - this.U2a = a; - this.is = b; - k.$i(this, "nav"); - } - Object.defineProperty(c, "__esModule", { - value: !0 - }); - f = a(1); - h = a(0); - k = a(49); - g = a(2); - m = a(50); - p = a(20); - n = a(113); - b.prototype.Wn = function() { - if (this.ka) return this.ka.sessionId; - }; - b.prototype.S7a = function(a, b) { - return this.U2a.requestMediaKeySystemAccess(a, b); - }; - b.prototype.NE = function(a, b) { - return b.createMediaKeys(); - }; - b.prototype.Cs = function(a, b) { - this.ka = a.createSession(b); - }; - b.prototype.M9a = function(a, b) { - return this.is.Wy(a.setServerCertificate) ? a.setServerCertificate(b) : Promise.resolve(); - }; - b.prototype.kWa = function(a) { - return this.ka ? this.ka.generateRequest("cenc", a) : Promise.reject(new n.mf(g.v.NS, g.u.fC, void 0, "Unable to generate a license request, key session is not valid")); - }; - b.prototype.update = function(a) { - return this.ka ? this.ka.update(a) : Promise.reject(new n.mf(g.v.gC, g.u.fC, void 0, "Unable to update the EME with a response, key session is not valid")); - }; - b.prototype.load = function(a) { - return this.ka ? this.ka.load(a) : Promise.reject(new n.mf(g.v.$wa, g.u.fC, void 0, "Unable to load a key session, key session is not valid")); - }; - b.prototype.close = function() { - var a; - if (!this.ka) return Promise.reject(new n.mf(g.v.Vwa, g.u.fC, void 0, "Unable to close a key session, key session is not valid")); - a = this.ka.close(); - this.ka = void 0; - return a; - }; - b.prototype.remove = function() { - return this.ka ? this.ka.remove() : Promise.reject(new n.mf(g.v.j8, g.u.fC, void 0, "Unable to remove a key session, key session is not valid")); - }; - b.prototype.SLa = function(a) { - if (!this.ka) throw ReferenceError("Unable to add message handler, key session is not valid"); - this.ka.addEventListener(d.n8, a); - }; - b.prototype.OLa = function(a) { - if (!this.ka) throw ReferenceError("Unable to add key status handler, key session is not valid"); - this.ka.addEventListener(d.m8, a); - }; - b.prototype.ILa = function(a) { - if (!this.ka) throw ReferenceError("Unable to add error handler, key session is not valid"); - this.ka.addEventListener(d.l8, a); - }; - b.prototype.F7a = function(a) { - if (!this.ka) throw ReferenceError("Unable to remove message handler, key session is not valid"); - this.ka.removeEventListener(d.n8, a); - }; - b.prototype.D7a = function(a) { - if (!this.ka) throw ReferenceError("Unable to remove key status handler, key session is not valid"); - this.ka.removeEventListener(d.m8, a); - }; - b.prototype.B7a = function(a) { - if (!this.ka) throw ReferenceError("Unable to remove error handler, key session is not valid"); - this.ka.removeEventListener(d.l8, a); - }; - a = d = b; - a.n8 = "message"; - a.m8 = "keystatuseschange"; - a.l8 = "error"; - a = d = f.__decorate([h.N(), f.__param(0, h.j(m.LC)), f.__param(1, h.j(p.rd))], a); - c.PDa = a; - }, function(f, c, a) { - var d, h, k, g, m, p; - - function b(a, b) { - this.bg = a; - this.Ak = b; - } - Object.defineProperty(c, "__esModule", { - value: !0 - }); - f = a(1); - d = a(0); - h = a(2); - k = a(26); - g = a(153); - m = a(154); - p = a(113); - b.prototype.sYa = function() { - return [{ - initDataTypes: ["cenc"], - persistentState: "required", - audioCapabilities: [{ - contentType: m.Vx, - robustness: "SW_SECURE_CRYPTO" - }], - videoCapabilities: [{ - contentType: m.qn, - robustness: "HW_SECURE_DECODE" - }, { - contentType: m.qn, - robustness: "SW_SECURE_DECODE" - }] - }, { - initDataTypes: ["cenc"], - persistentState: "required" - }]; - }; - b.prototype.lA = function(a) { - return this.bg.ws(a.message, new Uint8Array([8, 4])); - }; - b.prototype.OPa = function(a) { - return { - type: a.type, - sessionId: a.target.sessionId, - message: new Uint8Array(a.message), - pP: a.messageType - }; - }; - b.prototype.NPa = function(a) { - return { - type: a.type, - sessionId: a.target.sessionId, - d0a: a.target.keyStatuses.entries() - }; - }; - b.prototype.Pp = function(a) { - var b, c, d; - b = new p.mf(h.v.TJ); - c = a.code; - null != c && void 0 !== c ? (c = parseInt(c, 10), b.tb = 1 <= c && 9 >= c ? h.u.eu + c : h.u.eu) : b.tb = h.u.te; - try { - d = a.message.match(/\((\d*)\)/)[1]; - b.Sc = this.Ak.yF(d, 4); - } catch (w) {} - b.bF(a); - return b; - }; - a = b; - a = f.__decorate([d.N(), f.__param(0, d.j(k.Re)), f.__param(1, d.j(g.MI))], a); - c.lva = a; - }, function(f, c, a) { + }, function(g, d, a) { + var b, c, h, k, f, l, m, n, q, t, v, y, w, D, z, E, P, F, A, N, O, G, U, R, S, T, H, X, aa, ba, Z, Q, ja; + Object.defineProperty(d, "__esModule", { + value: !0 + }); + b = a(873); + c = a(847); + h = a(836); + k = a(831); + f = a(825); + l = a(822); + m = a(818); + n = a(806); + q = a(794); + t = a(791); + v = a(787); + y = a(785); + w = a(646); + D = a(245); + z = a(643); + E = a(639); + P = a(624); + F = a(617); + A = a(610); + N = a(602); + O = a(596); + G = a(244); + U = a(588); + R = a(586); + S = a(579); + T = a(575); + H = a(572); + X = a(570); + aa = a(565); + ba = a(549); + Z = a(532); + Q = a(527); + ja = a(523); + d.Hdb = function(a) { + a.load(b.M_a, l.Cz, c.oeb, m.BQ, q.TP, h.LJ, k.Se, f.vsb, n.storage, t.L0, v.xZa, y.Ceb, w.$i, D.vh, z.cg, E.leb, P.wgb, F.M7a, A.pkb, N.UT, O.Z4a, G.eme, U.crypto, R.Hd, S.xsb, T.PXa, H.ggb, X.Hib, aa.j, ba.L_a, Z.crb, Q.Yi, ja.mi); + }; + }, function(g, d, a) { var h, k; - function b(a, b, c, d, f) { - this.gb = a; + function b(a, b, c, d, g) { + this.Va = a; this.config = b; - this.ha = c; - this.Hw = d; - this.name = f; + this.ia = c; + this.js = d; + this.name = g; } - function d(a, b, c, d) { + function c(a, b, c, d) { var f; f = this; - this.gb = a; - this.ha = b; + this.Va = a; + this.ia = b; this.timeout = c; - this.$ab = d; - this.tZa = function() { - f.vs = !0; - f.bo.cancel(); - f.$ab(); + this.xqb = d; + this.Iab = function() { + f.kH = !0; + f.oy.cancel(); + f.xqb(); }; - this.startTime = this.gb.oe(); - this.bo = this.ha.Af(this.timeout, function() { - f.tZa(); + this.startTime = this.Va.Pe(); + this.oy = this.ia.Nf(this.timeout, function() { + f.Iab(); }); - this.vs = !1; + this.kH = !1; } - Object.defineProperty(c, "__esModule", { + Object.defineProperty(d, "__esModule", { value: !0 }); h = a(2); - k = a(113); - d.prototype.stop = function() { - this.vs || (this.pR = this.gb.oe(), this.bo.cancel()); + k = a(89); + c.prototype.stop = function() { + this.kH || (this.gV = this.Va.Pe(), this.oy.cancel()); }; - pa.Object.defineProperties(d.prototype, { - qia: { + na.Object.defineProperties(c.prototype, { + Fpa: { configurable: !0, enumerable: !0, get: function() { - if (this.pR && this.startTime) return this.pR.ie(this.startTime); + if (this.gV && this.startTime) return this.gV.Gd(this.startTime); } } }); - b.prototype.NOa = function() { + b.prototype.ZZa = function() { var a; a = this; - this.jz = new d(this.gb, this.ha, this.config.H0, function() { - a.Hw(new k.mf(h.v.dba, h.u.cxa, void 0, "Eme " + a.name + " event expired with an expiry of " + a.config.H0 + "ms")); + this.JB = new c(this.Va, this.ia, this.config.y5, function() { + a.js(new k.hf(h.I.aha, h.H.SGa, void 0, "Eme " + a.name + " event expired with an expiry of " + a.config.y5 + "ms")); }); }; - b.prototype.MOa = function() { - this.jz && this.jz.stop(); + b.prototype.YZa = function() { + this.JB && this.JB.stop(); }; - b.prototype.k9a = function() { - this.qB = this.gb.oe(); + b.prototype.Bnb = function() { + this.QK = this.Va.Pe(); }; - b.prototype.OOa = function() { + b.prototype.$Za = function() { var a; a = this; - this.OR = new d(this.gb, this.ha, this.config.N4, function() { - a.Hw(new k.mf(h.v.dba, h.u.bxa, void 0, "Eme " + a.name + " event expired with an expiry of " + a.config.N4 + "ms")); + this.FV = new c(this.Va, this.ia, this.config.X9, function() { + a.js(new k.hf(h.I.aha, h.H.RGa, void 0, "Eme " + a.name + " event expired with an expiry of " + a.config.X9 + "ms")); }); }; - b.prototype.Ega = function() { - this.OR && this.OR.stop(); + b.prototype.mna = function() { + this.FV && this.FV.stop(); }; - pa.Object.defineProperties(b.prototype, { - de: { + na.Object.defineProperties(b.prototype, { + ud: { configurable: !0, enumerable: !0, get: function() { var a, b; a = {}; - if (this.jz) { - b = this.jz.qia; - b && (a.z2 = b); - this.qB && this.jz.pR && (a.qB = this.qB.ie(this.jz.pR)); + if (this.JB) { + b = this.JB.Fpa; + b && (a.xva = b); + this.QK && this.JB.gV && (a.QK = this.QK.Gd(this.JB.gV)); } - this.OR && (b = this.OR.qia) && (a.HY = b); + this.FV && (b = this.FV.Fpa) && (a.Lna = b); return a; } } }); - c.fxa = b; - }, function(f, c) { + d.bHa = b; + }, function(g, d) { function a() {} - Object.defineProperty(c, "__esModule", { + Object.defineProperty(d, "__esModule", { value: !0 }); - a.IZ = function(a, c) { + a.Apa = function(a, c) { for (var b = a.next(), d; b && !b.done && b.value;) d = b.value[0], b = b.value[1], c && c(d, b), b = a.next(); }; - c.hxa = a; - }, function(f, c) { - Object.defineProperty(c, "__esModule", { + d.eHa = a; + }, function(g, d) { + Object.defineProperty(d, "__esModule", { value: !0 }); - f = c.Lo || (c.Lo = {}); - f[f.Psa = 0] = "usable"; - f[f.RUa = 1] = "expired"; - f[f.A7a = 2] = "released"; - f[f.woa = 3] = "outputRestricted"; - f[f.E4a = 4] = "outputDownscaled"; - f[f.B$a = 5] = "statusPending"; - f[f.w_a = 6] = "internalError"; - }, function(f, c, a) { - var d, h, k, g, m, p, n, q, t, z, w, G, x, y, C, F, A, H, ca; + d.$Ga = "EmeApiSymbol"; + }, function(g, d) { + Object.defineProperty(d, "__esModule", { + value: !0 + }); + g = d.pq || (d.pq = {}); + g[g.$Ba = 0] = "usable"; + g[g.x6a = 1] = "expired"; + g[g.Clb = 2] = "released"; + g[g.Rwa = 3] = "outputRestricted"; + g[g.$hb = 4] = "outputDownscaled"; + g[g.$ob = 5] = "statusPending"; + g[g.Wbb = 6] = "internalError"; + }, function(g, d, a) { + var c, h, k, f, l, m, n, q, t, v, y, w, D, z, E, P, F, A, N, O, G; - function b(a, b, c, d, f, g, l, m) { - var p; - p = this; - this.gb = b; - this.Ep = c; + function b(a, b, c, d, g, l, m, p, n) { + var r; + r = this; + this.Va = b; + this.ml = c; this.config = d; - this.xc = f; - this.ek = g; - this.ii = l; - this.ha = m; + this.mf = g; + this.Mh = l; + this.ul = m; + this.ia = p; + this.Jk = n; this.onMessage = function(a) { - var b, c, d, f; - b = p.ek.OPa(a); + var b, c, d; + b = r.Mh.K1(a); c = b.message; - d = b.pP; - f = b.sessionId; - p.lA = p.ek.lA(b); - p.log.trace("Received " + a.type + " event", { - sessionId: f, + d = b.C7; + r.NU(b.sessionId); + r.Su = r.Mh.Su(b); + r.log.trace("Received " + a.type + " event", { messageType: d, - isIntermediateChallenge: p.lA - }); - p.sessionId || (p.sessionId = f); - "license-renewal" === d && (p.log.trace("Received a renewal request"), p.Rf = t.Oo.vr, p.fe = H.Zw); - p.fe !== H.kd || p.lA || (p.hma = { - ii: p.ii, - data: b.message, - aa: p.KF() - }, p.xp(z.jn.Qpa)); - p.fe === H.Zw && p.xp(z.jn.Rpa); - p.jG && (p.jG.next({ - Dk: c, - Gga: d, - Rf: p.Rf - }), p.Rf !== t.Oo.vr || p.lA || (p.jG.complete(), p.jG = void 0)); - p.fe === H.stop && (p.Og.MOa(), p.config.Sh && p.BH && (p.BH.next({ - Dk: c - }), p.BH.complete(), p.BH = void 0)); - }; - this.loa = function(a) { + isIntermediateChallenge: r.Su + }); + "license-renewal" === d && (r.log.trace("Received a renewal request"), r.bh = v.zi.cm, r.Re = O.lz); + r.Re !== O.$e || r.Su || (r.v6 = { + ul: r.ul, + data: c + }, r.ll(y.Fo.qya)); + r.Re === O.lz && r.ll(y.Fo.rya); + r.nJ && (r.nJ.next({ + hp: c, + qna: d, + bh: r.bh + }), r.bh !== v.zi.cm || r.Su || (r.nJ.complete(), r.nJ = void 0)); + r.Re === O.stop && (r.Pf.YZa(), r.config.Kh && r.JK && (r.JK.next({ + hp: c + }), r.JK.complete(), r.JK = void 0)); + }; + this.Ewa = function(a) { var b, c; - b = p.ek.NPa(a).d0a; - p.log.trace("Received event: " + a.type, { - keySystem: a.target.keySystem, - sessionId: a.target.sessionId + b = r.Mh.J1(a).h6; + r.NU(a.target.sessionId); + r.log.trace("Received event: " + a.type, { + keySystem: a.target.keySystem }); try { - F.hxa.IZ(b, function(a, b) { - p.log.trace("key status: " + b); - b = ca[b]; - p.Zla.next({ - NO: new Uint8Array(a), + F.eHa.Apa(b, function(a, b) { + r.log.trace("key status: " + b); + b = G[b]; + r.Uta.next({ + iJ: new Uint8Array(a), value: b.status }); - b.error && (c = new C.mf(b.error), p.Ula(c)); + b.error && (c = new P.hf(b.error), r.c6(c)); }); - } catch (ea) { - c = new C.mf(k.v.oCa); - c.bF(ea); + } catch (va) { + c = new P.hf(f.I.AMa); + c.MH(va); } - c ? p.h1(c) : p.Wla(); + c ? r.d6(c) : (r.Mh.YP() || r.Pta(), r.bh !== v.zi.$s || r.Mh.D0() || (r.log.info("Kicking off license renewal", { + timeout: r.config.$u + }), setTimeout(function() { + r.Fya(); + }, r.config.$u.ma(k.Aa)))); }; - this.fj = function(a) { + this.yD = function(a) { var b; - b = p.ek.Pp(a); - p.log.error("Received event: " + a.type, b); - p.lq(b); - p.h1(b); - p.eh || p.Tj || p.Ula(b); - }; - this.lq = function(a) { - p.eh && p.close().subscribe(void 0, function(b) { - p.log.error("EmeSession closed with an error.", p.ek.Pp(b)); - p.eh && (p.eh.error(a), p.eh = void 0); + b = r.Mh.Kn(a); + r.log.error("Received event: " + a.type, b); + r.Yr(b); + r.d6(b); + r.Dh || r.yk || r.c6(b); + }; + this.Yr = function(a) { + r.Dh && r.close().subscribe(void 0, function(b) { + r.log.error("EmeSession closed with an error.", r.Mh.Kn(b)); + r.Dh && (r.Dh.error(a), r.Dh = void 0); }, function() { - p.log.trace("Issuing a generate challenge error"); - p.eh && (p.eh.error(a), p.eh = void 0); + r.log.trace("Issuing a generate challenge error"); + r.Dh && (r.Dh.error(a), r.Dh = void 0); }); }; - this.Vla = function() { - p.eh && (p.eh.complete(), p.eh = void 0); + this.Ota = function() { + r.Dh && (r.Dh.complete(), r.Dh = void 0); }; - this.h1 = function(a) { - p.Tj && (p.log.error("Failed to add license", a), p.close().subscribe(void 0, function(b) { - p.log.error("EmeSession closed with an error.", p.ek.Pp(b)); - p.fe === H.Zw && p.xp(z.jn.Dfa); - p.eh = void 0; - p.Tj && (p.Tj.error(a), p.Tj = void 0); + this.d6 = function(a) { + r.yk && (r.log.error("Failed to add license", a), r.close().subscribe(void 0, function(b) { + r.log.error("EmeSession closed with an error.", r.Mh.Kn(b)); + r.Re === O.lz && r.ll(y.Fo.Yla); + r.Dh = void 0; + r.yk && (r.yk.error(a), r.yk = void 0); }, function() { - p.log.trace("Issuing a license error"); - p.eh = void 0; - p.Tj && (p.Tj.error(a), p.Tj = void 0); + r.log.trace("Issuing a license error"); + r.Dh = void 0; + r.yk && (r.yk.error(a), r.yk = void 0); })); }; - this.Wla = function() { - p.Tj && (p.log.info("Successfully added license"), p.fe === H.kd ? p.xp(z.jn.yfa) : p.fe === H.Zw && p.xp(z.jn.Cfa), p.Tj.complete(), p.Tj = void 0); + this.Pta = function() { + r.yk && (r.log.info("Successfully added license"), r.Re === O.$e ? r.ll(y.Fo.Rla) : r.Re === O.lz && r.ll(y.Fo.Xla), r.yk.complete(), r.yk = void 0); }; - this.Ula = function(a) { - p.Up && p.close().subscribe(void 0, function(b) { - p.log.error("EmeSession closed with an error.", p.ek.Pp(b)); - p.eh = void 0; - p.Tj = void 0; - p.Up && (p.Up.next(a), p.Up.complete(), p.Up = void 0); + this.c6 = function(a) { + r.Qn && r.close().subscribe(void 0, function(b) { + r.log.error("EmeSession closed with an error.", r.Mh.Kn(b)); + r.Dh = void 0; + r.yk = void 0; + r.Qn && (r.Qn.next(a), r.Qn.complete(), r.Qn = void 0); }, function() { - p.log.trace("Issuing a CDM error"); - p.eh = void 0; - p.Tj = void 0; - p.Up && (p.Up.next(a), p.Up.complete()); + r.log.trace("Issuing a CDM error"); + r.Dh = void 0; + r.yk = void 0; + r.Qn && (r.Qn.next(a), r.Qn.complete(), r.Qn = void 0); }); }; - this.xp = function(a) { - p.de.push({ - time: p.gb.oe(), - B2a: a + this.ll = function(a) { + r.ud.push({ + time: r.Va.Pe(), + Kfb: a }); }; - this.log = a.Bb("EmeSession"); - this.jG = new h.yh(); - this.config.Sh && (this.BH = new h.yh()); - this.Zla = new h.YC(); - this.Up = new h.yh(); - this.fe = H.Zbb; - this.de = []; + this.log = a.lb("EmeSession"); + this.nJ = new h.Ei(); + this.config.Kh && (this.JK = new h.Ei()); + this.Uta = new h.LF(); + this.Qn = new h.Ei(); + this.Re = O.wrb; + this.ud = []; } - Object.defineProperty(c, "__esModule", { + Object.defineProperty(d, "__esModule", { value: !0 }); - f = a(1); - d = a(0); - h = a(77); - k = a(2); - g = a(38); - m = a(12); - p = a(62); - n = a(43); - q = a(131); - t = a(126); - z = a(384); - w = a(757); - G = a(223); - x = a(154); - y = a(222); - C = a(113); - F = a(756); - A = a(755); + g = a(0); + c = a(1); + h = a(87); + k = a(4); + f = a(2); + l = a(24); + m = a(7); + n = a(44); + q = a(30); + t = a(64); + v = a(76); + y = a(433); + w = a(878); + D = a(167); + z = a(232); + E = a(877); + P = a(89); + F = a(876); + A = a(875); + N = a(70); (function(a) { - a[a.Zbb = 0] = "unknown"; + a[a.wrb = 0] = "unknown"; a[a.create = 1] = "create"; a[a.load = 2] = "load"; - a[a.kd = 3] = "license"; - a[a.Zw = 4] = "renewal"; + a[a.$e = 3] = "license"; + a[a.lz = 4] = "renewal"; a[a.stop = 5] = "stop"; a[a.closed = 6] = "closed"; - }(H || (H = {}))); - ca = { + }(O || (O = {}))); + G = { usable: { - status: w.Lo.Psa + status: w.pq.$Ba }, expired: { - status: w.Lo.RUa, - error: k.v.jU + status: w.pq.x6a, + error: f.I.Nfa }, released: { - status: w.Lo.A7a + status: w.pq.Clb }, "output-not-allowed": { - status: w.Lo.woa, - error: k.v.kU + status: w.pq.Rwa, + error: f.I.Ofa }, "output-restricted": { - status: w.Lo.woa + status: w.pq.Rwa }, "output-downscaled": { - status: w.Lo.E4a + status: w.pq.$hb }, "status-pending": { - status: w.Lo.B$a + status: w.pq.$ob }, "internal-error": { - status: w.Lo.w_a, - error: k.v.W$ + status: w.pq.Wbb, + error: f.I.zMa } }; - b.prototype.KF = function() { - return this.context.aa; + b.prototype.CC = function() { + return this.context.Ad; }; - b.prototype.Wn = function() { + b.prototype.Mu = function() { return this.sessionId; }; b.prototype.close = function() { var a; a = this; - this.fe = H.closed; - this.de = []; - return this.xc.Wn() ? (this.log.trace("Closing the session", { - sessionId: this.xc.Wn() - }), this.xc.F7a(this.onMessage), this.xc.D7a(this.loa), this.xc.B7a(this.fj), this.Oh = void 0, h.pa.create(function(b) { - a.xc.close().then(function() { + this.Re = O.closed; + this.ud = []; + return this.mf.Hta() ? (this.log.trace("Closing the session"), this.mf.Cya(this.onMessage), this.mf.Aya(this.Ewa), this.mf.zya(this.yD), this.Ck = void 0, h.ta.create(function(b) { + a.Jk.Ml(a.config.kma, a.mf.close()).then(function() { a.log.info("Closed the session"); b.complete(); })["catch"](function(c) { a.log.error("Close failed", c); - c = a.ek.Pp(c); - c.code = k.v.rCa; + c = a.Mh.Kn(c); + c.code = f.I.CMa; b.error(c); }); - })) : h.pa.empty(); + })) : h.ta.empty(); }; - b.prototype.oF = function() { - return this.Up; + b.prototype.Rcb = function() { + return this.Uta.s0(); }; - b.prototype.Tz = function() { - return this.ii; + b.prototype.eI = function() { + return this.Qn ? this.Qn.s0() : void 0; }; - b.prototype.qO = function() { - return void 0 !== this.kd; + b.prototype.rp = function() { + return this.ul; }; - b.prototype.Cs = function(a, b) { - var c; - c = this; - this.fe = H.create; + b.prototype.JI = function() { + return void 0 !== this.$e; + }; + b.prototype.Dr = function(a, b, c, d) { + var g; + g = this; + this.bh = d; + this.Re = O.create; this.context = a; - this.xp(z.jn.kma); - return h.pa.create(function(d) { - c.xc.NE(a, b).then(function(a) { - c.log.trace("Created media keys"); - c.Oh = a; - a = c.Ep.decode("Cr0CCAMSEOVEukALwQ8307Y2+LVP+0MYh/HPkwUijgIwggEKAoIBAQDm875btoWUbGqQD8eAGuBlGY+Pxo8YF1LQR+Ex0pDONMet8EHslcZRBKNQ/09RZFTP0vrYimyYiBmk9GG+S0wB3CRITgweNE15cD33MQYyS3zpBd4z+sCJam2+jj1ZA4uijE2dxGC+gRBRnw9WoPyw7D8RuhGSJ95OEtzg3Ho+mEsxuE5xg9LM4+Zuro/9msz2bFgJUjQUVHo5j+k4qLWu4ObugFmc9DLIAohL58UR5k0XnvizulOHbMMxdzna9lwTw/4SALadEV/CZXBmswUtBgATDKNqjXwokohncpdsWSauH6vfS6FXwizQoZJ9TdjSGC60rUB2t+aYDm74cIuxAgMBAAE6EHRlc3QubmV0ZmxpeC5jb20SgAOE0y8yWw2Win6M2/bw7+aqVuQPwzS/YG5ySYvwCGQd0Dltr3hpik98WijUODUr6PxMn1ZYXOLo3eED6xYGM7Riza8XskRdCfF8xjj7L7/THPbixyn4mULsttSmWFhexzXnSeKqQHuoKmerqu0nu39iW3pcxDV/K7E6aaSr5ID0SCi7KRcL9BCUCz1g9c43sNj46BhMCWJSm0mx1XFDcoKZWhpj5FAgU4Q4e6f+S8eX39nf6D6SJRb4ap7Znzn7preIvmS93xWjm75I6UBVQGo6pn4qWNCgLYlGGCQCUm5tg566j+/g5jvYZkTJvbiZFwtjMW5njbSRwB3W4CrKoyxw4qsJNSaZRTKAvSjTKdqVDXV/U5HK7SaBA6iJ981/aforXbd2vZlRXO/2S+Maa2mHULzsD+S5l4/YGpSt7PnkCe25F+nAovtl/ogZgjMeEdFyd/9YMYjOS4krYmwp3yJ7m9ZzYCQ6I8RQN4x/yLlHG5RH/+WNLNUs6JAZ0fFdCmw="); - return c.xc.M9a(c.Oh, a); - }).then(function(a) { - c.log.trace("Set the server certificate", { - result: a - }); + this.ll(y.Fo.eua); + return h.ta.create(function(h) { + (c.tsa() ? Promise.resolve() : g.Jk.Ml(g.config.lma, g.mf.iQ(a, b)).then(function(a) { + g.log.trace("Created media keys"); + c.gE(a); + return g.IXa(a); + })).then(function() { + g.Ck = c.Ck; try { - c.xc.Cs(c.Oh, c.config.Sh ? "persistent-license" : "temporary"); - c.xc.SLa(c.onMessage); - c.xc.OLa(c.loa); - c.xc.ILa(c.fj); - c.sessionId = c.xc.Wn(); - d.next(c); - d.complete(); - } catch (D) { - d.error(new C.mf(k.v.f8, k.u.te, void 0, "Unable to create a persisted key session", D)); + g.mf.Dr(g.Ck, g.Mh.K4(d)); + g.mf.Sla(g.onMessage); + g.mf.Pla(g.Ewa); + g.mf.Ola(g.yD); + g.NU(g.mf.Mu()); + h.next(g); + h.complete(); + } catch (aa) { + h.error(new P.hf(f.I.LGa, f.H.qg, void 0, "Unable to create a persisted key session", aa)); } })["catch"](function(a) { - a.code && a.tb ? d.error(a) : d.error(new C.mf(k.v.KS, k.u.te, void 0, "Unable to create MediaKeys. " + a.message, a)); + a.code && a.tc ? h.error(a) : h.error(new P.hf(f.I.Vca, a instanceof N.sn ? f.H.aF : f.H.qg, void 0, "Unable to create MediaKeys. " + a.message, a)); }); }); }; - b.prototype.iWa = function(a, b) { - var c; - c = this; - this.fe = H.kd; + b.prototype.Wnb = function(a) { + this.Gg = a; + this.log.Lla("xid", a.ka); + }; + b.prototype.vR = function(a) { + var b; + b = this; + this.Re = O.$e; this.log.trace("Generating a license challenge"); - this.Rf = a; - this.eh = new h.yh(); - if (!b) return this.AY(new C.mf(k.v.g8, k.u.OS)); - if (0 === b.length) return this.AY(new C.mf(k.v.g8, k.u.MS)); - this.xc.kWa(b).then(function() {})["catch"](function(a) { - var b; - b = new C.mf(k.v.NS, k.u.te); - b.message = "Unable to generate request."; - b.bF(a); - c.log.error("Unable to generate a license request", b); - c.lq(b); + this.Dh = new h.Ei(); + if (!a) return this.s1(new P.hf(f.I.Yca, f.H.JW)); + if (0 === a.length) return this.s1(new P.hf(f.I.Yca, f.H.IW)); + this.Jk.Ml(this.config.mma, this.mf.Rqa("cenc", a)).then(function() { + b.NU(b.mf.Mu()); + })["catch"](function(a) { + var c; + c = new P.hf(f.I.Xca, a instanceof N.sn ? f.H.aF : f.H.qg); + c.message = "Unable to generate request."; + c.MH(a); + b.log.error("Unable to generate a license request", c); + b.Yr(c); }); this.log.trace("Returning the challenge subject"); - return this.eh; + return this.Dh; }; - b.prototype.xfa = function(a) { + b.prototype.Qla = function(a) { var b; b = this; - a instanceof Uint8Array ? 0 === a.length ? (this.log.error("The license buffer is empty"), this.lq(new C.mf(k.v.h8, k.u.MS))) : this.lA ? this.xc.update(a).then(function() { + a instanceof Uint8Array ? 0 === a.length ? (this.log.error("The license buffer is empty"), this.Yr(new P.hf(f.I.Zca, f.H.IW))) : this.Su ? this.Jk.Ml(this.config.k0, this.mf.update(a)).then(function() { b.log.trace("Successfully updated CDM with intermediate server response"); })["catch"](function(a) { - a = b.ek.Pp(a); - a.code = k.v.gC; + a = b.Mh.Kn(a); + a.code = f.I.xM; a.message = "Unable to update the CDM intermediate challenge"; b.log.error("Unable to update the CDM intermediate challenge", a); - b.lq(a); - }) : (this.fe === H.kd && (this.xp(z.jn.Ppa), this.kd = a, this.Vla()), this.fe === H.Zw && (this.xp(z.jn.Spa), this.kd = a, this.iM())) : (this.fe === H.Zw && this.xp(z.jn.Tpa), this.lq(a)); + b.Yr(a); + }) : (this.Re === O.$e && (this.ll(y.Fo.pya), this.$e = a, this.Ota()), this.Re === O.lz && (this.ll(y.Fo.sya), this.$e = a, this.q0())) : this.Re === O.lz ? (this.ll(y.Fo.tya), this.c6(a)) : this.Yr(a); }; - b.prototype.iM = function() { + b.prototype.q0 = function() { var a, b; a = this; - if (!this.kd) return this.AY(new C.mf(k.v.h8, k.u.OS)); - this.Tj = new h.yh(); - b = this.kd; - this.kd = void 0; - this.xc.update(b).then(function() { - a.Wla(); + if (!this.$e) return this.s1(new P.hf(f.I.Zca, f.H.JW)); + this.yk = new h.Ei(); + b = this.$e; + this.$e = void 0; + this.Jk.Ml(this.config.k0, this.mf.update(b)).then(function() { + a.Mh.YP() && a.Pta(); })["catch"](function(b) { - b = a.ek.Pp(b); - b.code = k.v.gC; + b = a.Mh.Kn(b); + b.code = f.I.Rfa; b.message = "Unable to update the EME"; a.log.error(b.message, b); - a.h1(b); + a.d6(b); }); - return this.Tj; + return this.yk; }; - b.prototype.WO = function() { - return this.jG; + b.prototype.oJ = function() { + return this.nJ; }; - b.prototype.lWa = function() { + b.prototype.S7a = function() { var a; a = this; - if (this.fe === H.kd && this.Rf === t.Oo.vC) return h.pa.empty(); - this.fe = H.stop; + if (this.Re === O.$e && this.bh === v.zi.$s) return h.ta.empty(); + this.Re = O.stop; this.log.trace("Generating a secure stop challenge"); - this.log.trace("Calling 'remove' on key session", { - sessionId: this.xc.Wn() - }); - this.eh = new h.yh(); - this.Og = new A.fxa(this.gb, this.config, this.ha, function() { + this.Dh = new h.Ei(); + this.Pf = new A.bHa(this.Va, this.config, this.ia, function() { a.log.error("got a timeout error"); }, "non-persisted"); - this.Og.NOa(); - this.xc.remove().then(function() { + this.Pf.ZZa(); + this.mf.remove().then(function() { a.log.trace("Call to 'remove' on key session succeeded"); })["catch"](function(b) { var c; - c = a.ek.Pp(b); - c.code = k.v.j8; - c.tb = k.u.te; + c = a.Mh.Kn(b); + c.code = f.I.ada; + c.tc = f.H.qg; c.message = "Call to 'remove' on key session failed"; a.log.error("Call to 'remove' on key session failed", { - sessionId: a.xc.Wn(), error: b }); - a.lq(c); + a.Yr(c); }); - return this.eh; + return this.Dh; }; - b.prototype.Efa = function(a) { - a && a.constructor !== Uint8Array ? this.lq(a) : a ? 0 === a.length ? (this.log.error("The secure stop buffer is empty"), this.lq(new C.mf(k.v.i8, k.u.MS))) : (this.log.trace("Secure stop is ready to apply"), this.JQ = a, this.Og.k9a(), this.Vla()) : (this.log.error("The secure stop buffer is undefined"), this.lq(new C.mf(k.v.i8, k.u.OS))); + b.prototype.Zla = function(a) { + a && a.constructor !== Uint8Array ? this.Yr(a) : a ? 0 === a.length ? (this.log.error("The secure stop buffer is empty"), this.Yr(new P.hf(f.I.$ca, f.H.IW))) : (this.log.trace("Secure stop is ready to apply"), this.yza = a, this.Pf.Bnb(), this.Ota()) : (this.log.error("The secure stop buffer is undefined"), this.Yr(new P.hf(f.I.$ca, f.H.JW))); }; - b.prototype.yMa = function() { + b.prototype.JXa = function() { var a; a = this; - if (!this.JQ) return h.pa.from([this]); - this.log.trace("Setting the secure stop data", { - sessionId: this.Wn() - }); - return h.pa.create(function(b) { - a.Og.OOa(); - a.xc.update(a.JQ).then(function() { - a.Og.Ega(); + if (!this.yza) return h.ta.from([this]); + this.log.trace("Setting the secure stop data"); + return h.ta.create(function(b) { + a.Pf.$Za(); + a.mf.update(a.yza).then(function() { + a.Pf.mna(); a.log.info("Successfully released the license and securely removed the key session"); b.next(a); b.complete(); })["catch"](function(c) { var d; - a.Og.Ega(); - d = a.ek.Pp(c); - d.code = k.v.gC; - d.tb = k.u.te; + a.Pf.mna(); + d = a.Mh.Kn(c); + d.code = f.I.xM; + d.tc = f.H.qg; d.message = "Unable to update the EME with secure stop data"; a.log.error("Unable to update the EME", { - sessionId: a.xc.Wn(), error: c }); b.error(d); }); }); }; - b.prototype.cqa = function() { + b.prototype.IXa = function(a) { + var b, c; + b = this; + c = this.Mh.a4(); + return c ? (c = this.ml.decode(c), this.Jk.Ml(this.config.nma, this.mf.fAa(a, c)).then(function(a) { + b.log.trace("Set the server certificate", { + result: a + }); + })) : Promise.resolve(); + }; + b.prototype.NU = function(a) { + a && a !== this.sessionId && (this.sessionId && this.log.warn("sessionId changed from " + this.sessionId + " to " + a), this.sessionId = a, this.log.Lla("sessionId", a)); + }; + b.prototype.Fya = function() { this.log.trace("Initiating a renewal request"); - this.Rf = t.Oo.vr; - this.fe = H.Zw; + this.bh = v.zi.cm; + this.Re = O.lz; + this.Mh.N5(this.mf); }; - b.prototype.AY = function(a) { + b.prototype.s1 = function(a) { var b; b = this; - return h.pa.create(function(c) { + return h.ta.create(function(c) { b.close().subscribe(void 0, function() { c.error(a); }, function() { @@ -92640,297 +97460,995 @@ v7AA.H22 = function() { }); }); }; - pa.Object.defineProperties(b.prototype, { - pd: { - configurable: !0, - enumerable: !0, - get: function() { - return this.context.ce; + a = b; + a = g.__decorate([c.N(), g.__param(0, c.l(m.sb)), g.__param(1, c.l(l.Ue)), g.__param(2, c.l(n.nj)), g.__param(3, c.l(t.jn)), g.__param(4, c.l(E.$Ga)), g.__param(5, c.l(z.FGa)), g.__param(6, c.l(D.HGa)), g.__param(7, c.l(q.Xf)), g.__param(8, c.l(N.tA))], a); + d.dHa = a; + }, function(g, d, a) { + var c, h, k, f, l, m, n, q, t; + + function b(a, b, c, d, f, g, h) { + this.co = a; + this.Va = b; + this.Rd = c; + this.config = d; + this.ia = f; + this.Jk = g; + this.Rm = h; + } + Object.defineProperty(d, "__esModule", { + value: !0 + }); + g = a(0); + c = a(1); + h = a(7); + k = a(24); + f = a(44); + l = a(64); + m = a(30); + n = a(70); + q = a(879); + a = a(121); + b.prototype.create = function() { + var a; + a = this; + return Promise.all([this.Rm.Y8a(), this.Rm.X8a(), this.Rm.rp()]).then(function(b) { + var c, d; + c = za(b); + b = c.next().value; + d = c.next().value; + c = c.next().value; + return new q.dHa(a.co, a.Va, a.Rd, a.config, b, d, c, a.ia, a.Jk); + }); + }; + t = b; + t = g.__decorate([c.N(), g.__param(0, c.l(h.sb)), g.__param(1, c.l(k.Ue)), g.__param(2, c.l(f.nj)), g.__param(3, c.l(l.jn)), g.__param(4, c.l(m.Xf)), g.__param(5, c.l(n.tA)), g.__param(6, c.l(a.qw))], t); + d.cHa = t; + }, function(g, d) { + function a(a) { + this.tia = a; + this.Nja = 0; + } + Object.defineProperty(d, "__esModule", { + value: !0 + }); + a.prototype.next = function() { + return this.tia.length > this.Nja ? { + value: this.tia[this.Nja++], + done: !1 + } : { + done: !0 + }; + }; + d.hDa = a; + }, function(g, d, a) { + var c, h, k, f, l, m, n, q, t, v; + + function b(a, b, c, d) { + this.Hd = a; + this.Wg = b; + this.Vl = c; + this.config = d; + } + Object.defineProperty(d, "__esModule", { + value: !0 + }); + g = a(0); + c = a(1); + h = a(2); + k = a(22); + f = a(100); + l = a(99); + m = a(881); + n = a(89); + q = a(70); + t = a(76); + a = a(64); + b.prototype.YP = function() { + return !1; + }; + b.prototype.D0 = function() { + return !1; + }; + b.prototype.K4 = function(a) { + return this.config.Kh && a === t.zi.cm ? "persistent-usage-record" : "temporary"; + }; + b.prototype.a4 = function() {}; + b.prototype.G4 = function() { + return []; + }; + b.prototype.Su = function(a) { + return this.Hd.ou(a.message, this.Vl.decode("certificate")); + }; + b.prototype.N5 = function(a) { + a.update(this.Vl.decode("renew")).then(function() {}); + }; + b.prototype.K1 = function(a) { + return { + type: a.type, + sessionId: a.target.sessionId, + message: a.message, + C7: "license-request" + }; + }; + b.prototype.J1 = function(a) { + var b, c, d, f; + b = a.type; + a = a.target.sessionId; + c = m.hDa; + d = [1]; + f = new ArrayBuffer(d.length); + f = new Uint8Array(f); + f.set(d); + return { + type: b, + sessionId: a, + h6: new c([ + [f, "usable"] + ]) + }; + }; + b.prototype.Kn = function(a) { + var b, c, d; + b = a.target.error; + b && (c = b.systemCode, d = b.code); + b = new n.hf(h.I.dN, a instanceof q.sn ? h.H.aF : h.H.Vz, c ? this.Wg.sI(c, 4) : d, "", b); + b.MH(a); + return b; + }; + v = b; + v = g.__decorate([c.N(), g.__param(0, c.l(k.Je)), g.__param(1, c.l(f.$v)), g.__param(2, c.l(l.Iw)), g.__param(3, c.l(a.jn))], v); + d.XOa = v; + }, function(g, d, a) { + var c, h, k, f, l, m, n, q, t; + + function b(a, b, c, d) { + var f; + f = this; + this.mc = a; + this.JV = b; + this.ml = c; + this.tta = function(a) { + return /com.apple.fps/.test(a) && !/com.apple.fps.2_0/.test(a); + }; + this.x2a = function(a) { + var b; + a = function(a) { + var c, d; + + function b(a, b, c) { + var d, f; + d = new Uint8Array("piff" == a ? 88 : 72); + f = new h(d); + f.Tv(12); + f.Sv("frma"); + f.Sv("avc1"); + f.Tv(20); + f.Sv("schm"); + f.TV(0); + f.TV(0); + f.Sv(a); + f.Tv(b); + "piff" == a ? (f.Tv(56), f.Sv("schi"), f.Tv(48), f.Sv("uuid"), f.gba(new Uint8Array([137, 116, 219, 206, 123, 231, 76, 81, 132, 249, 113, 72, 249, 136, 37, 84]))) : (f.Tv(40), f.Sv("schi"), f.Tv(32), f.Sv("tenc")); + f.TV(0); + f.TV(0); + f.Tv(264); + f.gba(c); + return d; + } + c = b("piff", 65537, a); + c = f.JV.decode(f.ml.encode(c)); + a = b("cenc", 65536, a); + a = f.JV.decode(f.ml.encode(a)); + d = new Uint8Array(7 + c.length + 8 + a.length + 5); + d.set([91, 10, 32, 32, 32, 32, 34], 0); + d.set(c, 7); + d.set([34, 44, 10, 32, 32, 32, 32, 34], 7 + c.length); + d.set(a, 7 + c.length + 8); + d.set([34, 10, 32, 32, 93], 7 + c.length + 8 + a.length); + return d; + }(a); + b = new Uint8Array(13 + a.length + 2); + b.set([123, 10, 32, 32, 34, 115, 105, 110, 102, 34, 32, 58, 32]); + b.set(a, 13); + b.set([10, 125], 13 + a.length); + return b; + }; + this.z9a = function(a) { + var b; + a = a.subarray(14, 30); + a = f.ml.decode(String.fromCharCode.apply(null, a)); + a = a.subarray(4); + b = new Uint8Array(16); + b.set(a); + return b; + }; + this.hmb = function() { + f.Ji.forEach(function(a) { + f.aa && f.aa.addEventListener(a.name, a.Ru); + }); + f.Ji.length = 0; + }; + this.Ji = []; + this.log = d.lb("EmeFactory"); + } + Object.defineProperty(d, "__esModule", { + value: !0 + }); + g = a(0); + h = a(86); + k = a(1); + f = a(2); + l = a(22); + m = a(99); + n = a(44); + q = a(7); + t = a(6); + b.prototype.Mu = function() { + if (this.aa) return this.aa.sessionId; + }; + b.prototype.Kya = function(a) { + this.iG = a; + return Promise.resolve({}); + }; + b.prototype.iQ = function(a) { + var c; + + function b() { + var b, d; + b = c.mc.createElement("DIV", "position:relative;width:100%;height:100%;overflow:hidden", void 0, void 0); + d = b.lastChild; + c.ela = b; + a.Ha = t.wd.createElement("VIDEO"); + d ? c.ela.insertBefore(a.Ha, d) : c.ela.appendChild(a.Ha); + } + c = this; + return new Promise(function(d, g) { + function h() { + try { + c.Pq = new A.WebKitMediaKeys(c.iG); + a.Ha.webkitSetMediaKeys(c.Pq); + d(c.Pq); + } catch (P) { + c.log.error("CREATE: Exception on webkitSetMediaKeys", P); + g({ + S: !1, + code: f.I.zY, + Ja: c.mc.ad(P) + }); + } + } + if (c.tta(c.iG)) try { + c.Pq = new A.WebKitMediaKeys(c.iG); + a.Ha && a.Ha.webkitSetMediaKeys(c.Pq); + d(c.Pq); + } catch (P) { + g({ + S: !1, + code: f.I.zY, + Ja: c.mc.ad(P) + }); + } else { + try { + c.Pq = new A.WebKitMediaKeys(c.iG); + } catch (P) { + g({ + S: !1, + code: f.I.zY, + Ja: c.mc.ad(P) + }); + } + a.Ha ? a.Ha.webkitSetMediaKeys(c.Pq) : (b(), c.ze = new t.jA(), c.ze.addEventListener("sourceopen", h), c.$f = URL.createObjectURL(c.ze), a.Ha.src = c.$f); + d(c.Pq); } + }); + }; + b.prototype.Dr = function() {}; + b.prototype.Hta = function() { + return !!this.aa; + }; + b.prototype.fAa = function() { + return Promise.resolve(); + }; + b.prototype.Rqa = function(a, b) { + try { + return this.tta(this.iG) && (b = this.x2a(this.z9a(b))), this.aa = this.Pq.createSession("video/mp4", b, null), this.hmb(), Promise.resolve(); + } catch (w) { + return Promise.reject(w); + } + }; + b.prototype.update = function(a) { + if (!this.aa) throw ReferenceError("Unable to update the EME with a response, key session is not valid"); + try { + return this.aa.update(a), Promise.resolve(); + } catch (y) { + return Promise.reject(y); } + }; + b.prototype.load = function() { + return Promise.resolve(!0); + }; + b.prototype.close = function() { + if (!this.aa) throw ReferenceError("Unable to close a key session, key session is not valid"); + try { + return this.aa.close(), Promise.resolve(); + } catch (v) { + return Promise.reject(v); + } finally { + this.aa = void 0; + } + }; + b.prototype.remove = function() { + if (!this.aa) throw ReferenceError("Unable to remove a key session, key session is not valid"); + try { + return this.aa.close(), Promise.resolve(); + } catch (v) { + return Promise.reject(v); + } + }; + b.prototype.Sla = function(a) { + this.aa ? this.aa.addEventListener(c.Xz, a) : this.Ji.push({ + name: c.Xz, + Ru: a + }); + }; + b.prototype.Pla = function(a) { + this.aa ? this.aa.addEventListener(c.MW, a) : this.Ji.push({ + name: c.MW, + Ru: a + }); + }; + b.prototype.Ola = function(a) { + this.aa ? this.aa.addEventListener(c.Wz, a) : this.Ji.push({ + name: c.Wz, + Ru: a + }); + }; + b.prototype.Cya = function(a) { + if (!this.aa) throw ReferenceError("Unable to remove message handler, key session is not valid"); + this.aa.removeEventListener(c.Xz, a); + }; + b.prototype.Aya = function(a) { + if (!this.aa) throw ReferenceError("Unable to remove key status handler, key session is not valid"); + this.aa.removeEventListener(c.MW, a); + }; + b.prototype.zya = function(a) { + if (!this.aa) throw ReferenceError("Unable to remove error handler, key session is not valid"); + this.aa.removeEventListener(c.Wz, a); + }; + a = c = b; + a.Xz = "webkitkeymessage"; + a.MW = "webkitkeyadded"; + a.Wz = "webkitkeyerror"; + a = c = g.__decorate([k.N(), g.__param(0, k.l(l.Je)), g.__param(1, k.l(m.Iw)), g.__param(2, k.l(n.nj)), g.__param(3, k.l(q.sb))], a); + d.wHa = a; + }, function(g, d, a) { + var c, h, k, f, l, m, n, q, t; + + function b(a, b, c, d) { + this.Hd = a; + this.Wg = b; + this.kp = c; + this.config = d; + } + Object.defineProperty(d, "__esModule", { + value: !0 + }); + g = a(0); + c = a(1); + h = a(2); + k = a(22); + f = a(100); + l = a(232); + m = a(89); + n = a(70); + q = a(64); + a = a(20); + b.prototype.YP = function() { + return !0; + }; + b.prototype.D0 = function() { + return !0; + }; + b.prototype.K4 = function() { + return "temporary"; + }; + b.prototype.a4 = function() { + return "Cr0CCAMSEOVEukALwQ8307Y2+LVP+0MYh/HPkwUijgIwggEKAoIBAQDm875btoWUbGqQD8eAGuBlGY+Pxo8YF1LQR+Ex0pDONMet8EHslcZRBKNQ/09RZFTP0vrYimyYiBmk9GG+S0wB3CRITgweNE15cD33MQYyS3zpBd4z+sCJam2+jj1ZA4uijE2dxGC+gRBRnw9WoPyw7D8RuhGSJ95OEtzg3Ho+mEsxuE5xg9LM4+Zuro/9msz2bFgJUjQUVHo5j+k4qLWu4ObugFmc9DLIAohL58UR5k0XnvizulOHbMMxdzna9lwTw/4SALadEV/CZXBmswUtBgATDKNqjXwokohncpdsWSauH6vfS6FXwizQoZJ9TdjSGC60rUB2t+aYDm74cIuxAgMBAAE6EHRlc3QubmV0ZmxpeC5jb20SgAOE0y8yWw2Win6M2/bw7+aqVuQPwzS/YG5ySYvwCGQd0Dltr3hpik98WijUODUr6PxMn1ZYXOLo3eED6xYGM7Riza8XskRdCfF8xjj7L7/THPbixyn4mULsttSmWFhexzXnSeKqQHuoKmerqu0nu39iW3pcxDV/K7E6aaSr5ID0SCi7KRcL9BCUCz1g9c43sNj46BhMCWJSm0mx1XFDcoKZWhpj5FAgU4Q4e6f+S8eX39nf6D6SJRb4ap7Znzn7preIvmS93xWjm75I6UBVQGo6pn4qWNCgLYlGGCQCUm5tg566j+/g5jvYZkTJvbiZFwtjMW5njbSRwB3W4CrKoyxw4qsJNSaZRTKAvSjTKdqVDXV/U5HK7SaBA6iJ981/aforXbd2vZlRXO/2S+Maa2mHULzsD+S5l4/YGpSt7PnkCe25F+nAovtl/ogZgjMeEdFyd/9YMYjOS4krYmwp3yJ7m9ZzYCQ6I8RQN4x/yLlHG5RH/+WNLNUs6JAZ0fFdCmw="; + }; + b.prototype.G4 = function() { + var a, b; + a = [{ + contentType: l.Wk, + robustness: "HW_SECURE_DECODE" + }, { + contentType: l.Wk, + robustness: "SW_SECURE_DECODE" + }, { + contentType: l.Wk, + robustness: "SW_SECURE_CRYPTO" + }]; + b = [{ + contentType: l.Wk, + robustness: "SW_SECURE_CRYPTO" + }]; + return [{ + initDataTypes: ["cenc"], + persistentState: "required", + audioCapabilities: [{ + contentType: l.ow, + robustness: "SW_SECURE_CRYPTO" + }], + videoCapabilities: this.config().Fqa ? b : a + }, { + initDataTypes: ["cenc"], + persistentState: "required" + }]; + }; + b.prototype.Su = function(a) { + return this.Hd.ou(a.message, new Uint8Array([8, 4])); + }; + b.prototype.N5 = function() {}; + b.prototype.K1 = function(a) { + return { + type: a.type, + sessionId: a.target.sessionId, + message: new Uint8Array(a.message), + C7: a.messageType + }; + }; + b.prototype.J1 = function(a) { + return { + type: a.type, + sessionId: a.target.sessionId, + h6: a.target.keyStatuses.entries() + }; + }; + b.prototype.Kn = function(a) { + var b, c, d; + b = new m.hf(h.I.dN); + c = a.code; + null != c && void 0 !== c ? (c = parseInt(c, 10), b.tc = 1 <= c && 9 >= c ? h.H.Vz + c : h.H.Vz) : b.tc = a instanceof n.sn ? h.H.aF : h.H.qg; + try { + d = a.message.match(/\((\d*)\)/)[1]; + b.Ef = this.Wg.sI(d, 4); + } catch (z) {} + b.MH(a); + return b; + }; + t = b; + t = g.__decorate([c.N(), g.__param(0, c.l(k.Je)), g.__param(1, c.l(f.$v)), g.__param(2, c.l(q.jn)), g.__param(3, c.l(a.je))], t); + d.LEa = t; + }, function(g, d, a) { + var c, h; + + function b(a) { + return h.wY.apply(this, arguments) || this; + } + Object.defineProperty(d, "__esModule", { + value: !0 }); + g = a(0); + c = a(1); + h = a(434); + ia(b, h.wY); a = b; - a = f.__decorate([d.N(), f.__param(0, d.j(m.Jb)), f.__param(1, d.j(g.eg)), f.__param(2, d.j(p.fl)), f.__param(3, d.j(q.iC)), f.__param(4, d.j(y.SS)), f.__param(5, d.j(x.HS)), f.__param(6, d.j(G.a8)), f.__param(7, d.j(n.xh))], a); - c.gxa = a; - }, function(f, c, a) { - var d, h, k, g, m, p, n, q, t, z, w, G, x; + a = g.__decorate([c.N()], a); + d.TNa = a; + }, function(g, d, a) { + var c, h, k, f, l, m, n, q, t; - function b(a, b, c, d, f, g, k, m) { - var l; - l = this; - this.ha = b; - this.gj = c; + function b(a, b, c) { + this.Wg = a; + this.Rd = b; + this.config = c; + } + Object.defineProperty(d, "__esModule", { + value: !0 + }); + g = a(0); + c = a(1); + h = a(2); + k = a(100); + f = a(44); + l = a(232); + m = a(89); + n = a(76); + q = a(64); + t = a(70); + b.prototype.YP = function() { + return !0; + }; + b.prototype.D0 = function() { + return !1; + }; + b.prototype.K4 = function(a) { + return this.config.Kh && a === n.zi.cm ? "persistent-usage-record" : "temporary"; + }; + b.prototype.a4 = function() {}; + b.prototype.G4 = function() { + return [{ + initDataTypes: ["cenc"], + audioCapabilities: [{ + contentType: l.ow + }], + videoCapabilities: [{ + contentType: l.Wk + }], + sessionTypes: ["temporary", "persistent-usage-record"] + }]; + }; + b.prototype.Su = function() { + return !1; + }; + b.prototype.N5 = function() {}; + b.prototype.K1 = function(a) { + var b; + b = new Uint8Array(a.message); + b = this.k3(b, "PlayReadyKeyMessage", "Challenge"); + b = this.Rd.decode(b); + return { + type: a.type, + sessionId: a.target.sessionId, + message: b, + C7: a.messageType + }; + }; + b.prototype.J1 = function(a) { + return { + type: a.type, + sessionId: a.target.sessionId, + h6: a.target.keyStatuses.entries() + }; + }; + b.prototype.Kn = function(a) { + var b, c; + b = new m.hf(h.I.dN); + c = a.code; + null != c && void 0 !== c ? (c = parseInt(c, 10), b.tc = 1 <= c && 9 >= c ? h.H.Vz + c : h.H.Vz) : b.tc = a instanceof t.sn ? h.H.aF : h.H.qg; + try { + b.Ef = this.Wg.sI(a.target && a.target.error && a.target.error.systemCode, 4); + } catch (D) {} + b.MH(a); + return b; + }; + b.prototype.k3 = function(a, b) { + var c, d, f, g; + for (var c = 1; c < arguments.length; ++c); + for (c = 1; c < arguments.length; c++); + c = ""; + f = a.length; + for (d = 0; d < f; d++) g = a[d], 0 < g && (c += String.fromCharCode(g)); + f = "\\s*(.*)\\s*"; + for (d = arguments.length - 1; 0 < d; d--) { + g = arguments[d]; + if (0 > c.search(g)) return ""; + g = "(?:[^:].*:|)" + g; + f = "[\\s\\S]*<" + g + "[^>]*>" + f + "[\\s\\S]*"; + } + return (c = c.match(new RegExp(f))) ? c[1] : ""; + }; + a = b; + a = g.__decorate([c.N(), g.__param(0, c.l(k.$v)), g.__param(1, c.l(f.nj)), g.__param(2, c.l(q.jn))], a); + d.ZGa = a; + }, function(g, d, a) { + var c, h, k, f, l, m, n, q, t, v, y, w, D, z, E, P, F, A, N, G; + + function b(a, b, c, d, f, g, h, k, l) { + this.co = a; + this.Hd = b; + this.Vl = c; + this.Wg = d; + this.Rd = f; + this.is = g; + this.qT = h; + this.config = k; + this.kp = l; + this.log = this.co.lb("MediaKeySystemAccessServices"); + } + Object.defineProperty(d, "__esModule", { + value: !0 + }); + g = a(0); + c = a(1); + h = a(2); + k = a(7); + f = a(89); + l = a(167); + m = a(886); + n = a(885); + q = a(884); + t = a(434); + v = a(22); + y = a(100); + w = a(44); + D = a(23); + z = a(39); + E = a(883); + P = a(882); + F = a(99); + A = a(20); + N = a(138); + a = a(64); + b.prototype.AI = function() { + this.OD || (this.OD = this.zmb()); + return this.OD; + }; + b.prototype.m2a = function(a) { + var b; + b = this; + return new Promise(function(c, d) { + var g, k; + g = N.bb.g4(a); + k = b.rra(g); + g = b.nra(g); + k.Kya(a, g.G4()).then(function(d) { + b.log.trace("Created the media keys system access", { + keySystem: a, + supportedconfig: d.getConfiguration ? JSON.stringify(d.getConfiguration()) : void 0 + }); + c(d); + })["catch"](function(c) { + b.log.error("Unable to create the media key system access object", { + keySystem: a, + error: c.message + }); + d(new f.hf(h.I.Wca, h.H.qg, void 0, "Unable to create media keys system access. " + c.message, c)); + }); + }); + }; + b.prototype.rp = function() { + var a; + a = this; + return this.AI().then(function(b) { + return a.ora(b); + }); + }; + b.prototype.W8a = function() { + var a, b; + a = this; + b = this.config().i6 || [this.config().Ad]; + if (1 < b.length) return this.AI().then(function(b) { + return a.ora(b); + }).then(function(a) { + return N.bb.mra(a); + }); + b = N.bb.g4(b[0]); + return Promise.resolve(N.bb.mra(b)); + }; + b.prototype.X8a = function() { + var a; + a = this; + return this.rp().then(function(b) { + return a.nra(b); + }); + }; + b.prototype.Y8a = function() { + var a; + a = this; + return this.rp().then(function(b) { + return a.rra(b); + }); + }; + b.prototype.ora = function(a) { + return N.bb.g4(a.keySystem); + }; + b.prototype.nra = function(a) { + switch (a) { + case l.hn.az: + return new m.ZGa(this.Wg, this.Rd, this.kp); + case l.hn.tC: + return new P.XOa(this.Hd, this.Wg, this.Vl, this.kp); + default: + return new q.LEa(this.Hd, this.Wg, this.kp, this.config); + } + }; + b.prototype.rra = function(a) { + switch (a) { + case l.hn.az: + return new n.TNa(this.qT, this.is); + case l.hn.tC: + return new E.wHa(this.Hd, this.Vl, this.Rd, this.co); + default: + return new t.wY(this.qT, this.is); + } + }; + b.prototype.zmb = function() { + var a, b; + a = this; + b = (this.config().i6 || [this.config().Ad]).map(function(b) { + return function() { + return a.m2a(b); + }; + }); + return this.Amb(b); + }; + b.prototype.Amb = function(a) { + return a.reduce(function(a, b) { + return a.then(function(a) { + return Promise.resolve(a); + })["catch"](function() { + return b(); + }); + }, Promise.reject(Error("keySystem missing"))); + }; + G = b; + G = g.__decorate([c.N(), g.__param(0, c.l(k.sb)), g.__param(1, c.l(v.Je)), g.__param(2, c.l(F.Iw)), g.__param(3, c.l(y.$v)), g.__param(4, c.l(w.nj)), g.__param(5, c.l(D.ve)), g.__param(6, c.l(z.lA)), g.__param(7, c.l(A.je)), g.__param(8, c.l(a.jn))], G); + d.xKa = G; + }, function(g, d, a) { + var c, h, k, f, l, m, n, q, t, v, y, w, D; + + function b(a, b, c, d, f, g, k, l, p) { + var n; + n = this; + this.ia = b; + this.Hj = c; this.config = d; - this.Lj = f; - this.xc = g; - this.ek = k; - this.hz = m; - this.eab = function(a, b) { - b.WO().GB(1).subscribe(function(c) { - l.ima.next({ - aa: a.aa, - ii: b.Tz(), - data: c.Dk + this.uI = f; + this.e5a = g; + this.IB = k; + this.Rm = l; + this.tva = p; + this.Cpb = function(a, b) { + b.oJ().tE(1).subscribe(function(a) { + n.cua.next({ + ul: b.rp(), + data: a.hp }); }); - b.WO().map(function(c) { - return l.$v(a, b, c); - }).pt().eF(function(a) { - b.Ob = a.Ob[0]; - b.XO = a.LZ; - return b.xfa(a.eo[0].data); + b.oJ().map(function(c) { + return n.Pr(a, b, c); + }).ev().QH(function(a) { + b.Yb = a.Yb[0]; + return b.Qla(a.pJ[0].data); }).subscribe(void 0, function(a) { - b.xfa(a); + b.Qla(a); }, function() { - l.fOa(b); + n.rZa(b); }); }; - this.fab = function(a) { - a.BH.map(function(b) { - return l.ika(a, b); - }).pt().eF(function(b) { - return a.Efa(b.response); + this.Dpb = function(a) { + a.JK.map(function(b) { + return n.Rra(a, b); + }).ev().QH(function(b) { + return a.Zla(b.response); }).subscribe(void 0, function(b) { - a.Efa(b); + a.Zla(b); }); }; - this.log = a.Bb("DrmServices"); - this.$la = {}; - this.ima = new h.yh(); - this.hz.Epa().then(function() { - l.E$a(); + this.log = a.lb("DrmServices"); + this.cua = new h.Ei(); + this.uI().Do && this.IB.dya().then(function() { + n.cpb(); })["catch"](function(a) { - l.log.error("Unable to load the persisted DRM data", a); + n.log.error("Unable to load the persisted DRM data", a); + }); + this.config.lS && this.Rm.AI().then(function(a) { + return n.loa(a, { + Ad: a.keySystem + }, m.zi.cm, p()).Nr(function(a) { + return a.close(); + }).subscribe(); + }); + } + Object.defineProperty(d, "__esModule", { + value: !0 + }); + g = a(0); + c = a(1); + h = a(87); + k = a(7); + f = a(30); + l = a(436); + m = a(76); + n = a(64); + q = a(166); + t = a(243); + v = a(435); + y = a(20); + w = a(121); + a = a(242); + b.prototype.xv = function(a, b) { + var c; + c = this; + return new Promise(function(d, f) { + c.$e(a, b).subscribe(d, f); + }); + }; + b.prototype.P7a = function(a, b) { + var c; + c = this; + return new Promise(function(d, f) { + c.vR(a, b).subscribe(d, f); }); - } - Object.defineProperty(c, "__esModule", { - value: !0 - }); - f = a(1); - d = a(0); - h = a(77); - k = a(2); - g = a(12); - m = a(43); - p = a(386); - a(126); - n = a(131); - q = a(222); - t = a(154); - z = a(159); - w = a(233); - G = a(385); - x = a(113); - b.prototype.Dt = function(a) { - var b; - b = this; - return new Promise(function(c, d) { - b.kd(a).subscribe(function(a) { - c(a); - }, function(a) { - d(a); - }); + }; + b.prototype.$e = function(a, b) { + var c; + c = this; + this.log.info("Requesting challenges", this.zra(a, a.type)); + return this.vH(a.context, a.type, b).Nr(function(b) { + b.Wnb(a.Gg); + c.Cpb(a, b); + return c.Rna(b.vR(a.gS), b); }); }; - b.prototype.kd = function(a) { - var b; - b = this; - this.log.info("Licensing content"); - return this.Uja(a.context.ce).tF(function(c) { - return b.MRa(c, a.context).tF(function(c) { - b.eab(a.context, c); - return c.iWa(a.type, a.dla).concat(h.pa.of(c)).Sj(); - }); + b.prototype.ipb = function(a, b) { + var c, d; + c = this; + this.config.Kh ? (this.log.info("Releasing server license and EME license", this.L4(a)), this.Dpb(a), d = a.S7a()) : (this.log.info("Releasing server license", this.L4(a)), d = this.Rra(a)); + return this.Rna(d, a).QH(function() { + c.IB.u9(Object.assign({ + Ad: a.context.Ad, + Yb: [] + }, a.Gg)); + b.Flb(); }); }; - b.prototype.J$a = function(a) { - var b, c; - b = this; - this.config.Sh ? (this.log.info("Releasing server license and EME license"), this.fab(a), c = a.lWa()) : (this.log.info("Releasing server license"), c = this.ika(a)); - return h.pa.concat(c, h.pa.of(a)).Sj().eF(function() { - b.hz.o4(Object.assign({ - ce: a.context.ce, - Ob: [] - }, a.context)); - }); - }; - b.prototype.WO = function() { - return this.ima.CMa(); - }; - b.prototype.$v = function(a, b, c) { - return h.pa.Yv(this.gj.kd({ - aa: a.aa, - Dc: a.Dc, - cN: [a.Is], - Fj: [{ - sessionId: b.Wn() || "session", - data: c.Dk + b.prototype.oJ = function() { + return this.cua.s0(); + }; + b.prototype.zra = function(a, b) { + return { + movieId: a.Gg.R, + xid: a.Gg.ka, + type: m.fua(b) + }; + }; + b.prototype.L4 = function(a) { + return { + movieId: a.Gg ? a.Gg.R : void 0, + xid: a.Gg ? a.Gg.ka : void 0, + keySessionId: a.Mu() + }; + }; + b.prototype.Rna = function(a, b) { + return h.ta.concat(a, h.ta.of(b)).Qe(); + }; + b.prototype.Pr = function(a, b, c) { + this.log.info("Sending license request", this.zra(a, c.bh)); + return h.ta.Iu(this.Hj.$e({ + ka: a.Gg.ka, + df: a.Gg.df, + JQ: [a.Gg.Bj], + ip: [{ + sessionId: b.Mu() || "session", + data: c.hp }], - Rf: c.Rf, - ii: b.Tz(), - Gga: c.Gga, - wG: a.wG + bh: c.bh, + ul: b.rp(), + qna: c.qna, + CJ: a.Gg.CJ })); }; - b.prototype.ika = function(a, b) { - return b ? h.pa.Yv(this.gj.release({ - aa: a.KF(), - Ob: [a.Ob], - Dk: b.Dk - })) : h.pa.Yv(this.gj.release({ - aa: a.KF(), - Ob: [a.Ob] + b.prototype.Rra = function(a, b) { + this.log.info("Sending release request", this.L4(a)); + return b ? h.ta.Iu(this.Hj.release({ + ka: a.Gg.ka, + Yb: [a.Yb], + hp: b.hp + })) : h.ta.Iu(this.Hj.release({ + ka: a.Gg.ka, + Yb: [a.Yb] })); }; - b.prototype.Uja = function(a) { - var b; - b = this.$la[a]; - b || (b = this.NRa(a), this.$la[a] = b); - return h.pa.Yv(b); - }; - b.prototype.NRa = function(a) { - var b; - b = this; - return new Promise(function(c, d) { - b.xc.S7a(a, b.ek.sYa()).then(function(d) { - b.log.trace("Created the media keys system access", { - keySystem: a, - supportedconfig: d.getConfiguration ? JSON.stringify(d.getConfiguration()) : void 0 - }); - c(d); - })["catch"](function(c) { - b.log.error("Unable to create the media key system access object", { - keySystem: a, - error: c.message - }); - d(new x.mf(k.v.LS, k.u.te, void 0, "Unable to create media keys system access. " + c.message, c)); + b.prototype.vR = function(a, b) { + return this.vH(a.context, a.type, b).Nr(function(b) { + b.vR(a.gS); + return b.oJ().map(function() { + return b; }); }); }; - b.prototype.MRa = function(a, b) { - return this.Lj(b).Cs(b, a); + b.prototype.vH = function(a, b, c) { + var d; + d = this; + return h.ta.Iu(this.Rm.AI()).Nr(function(f) { + return d.loa(f, a, b, c); + }); }; - b.prototype.D$a = function(a) { + b.prototype.loa = function(a, b, c, d) { + return h.ta.Iu(this.e5a.create()).Nr(function(f) { + return f.Dr(b, a, d, c); + }); + }; + b.prototype.bpb = function(a) { var b; b = this; - return this.config.Sh ? h.pa.empty() : h.pa.Yv(this.gj.release({ - aa: a.aa, - Ob: a.Ob + return this.config.Kh ? h.ta.empty() : h.ta.Iu(this.Hj.release({ + ka: a.ka, + Yb: a.Yb }))["catch"](function(a) { b.log.error("Unable to send release data to the server", a); - return h.pa.empty(); + return h.ta.empty(); }).map(function() { return a; }); }; - b.prototype.E$a = function() { + b.prototype.cpb = function() { var a; a = this; - this.ha.Af(this.config.u3, function() { + this.ia.Nf(this.config.x8, function() { var b; a.log.trace("Removing cached sessions", { - "count:": a.hz.dN.length + "count:": a.IB.KQ.length }); - b = a.hz.dN.filter(function(a) { + b = a.IB.KQ.filter(function(a) { return !a.active; }).map(function(b) { - return a.D$a(b); + return a.bpb(b); }); - h.pa.concat.apply(h.pa, [].concat(Xc(b))).subscribe(function(b) { - a.hz.o4(b); + h.ta.concat.apply(h.ta, [].concat(wb(b))).subscribe(function(b) { + a.IB.u9(b); }); }); }; - b.prototype.fOa = function(a) { + b.prototype.rZa = function(a) { var b; - if (a.Wn()) { - b = new w.GS(); - b.ce = a.context.ce; - b.Ob = [a.Ob]; - b.profileId = a.context.profileId; - b.aa = a.context.aa; - b.M = a.context.M; - this.hz.wfa(b); - } - }; - a = b; - a = f.__decorate([d.N(), f.__param(0, d.j(g.Jb)), f.__param(1, d.j(m.xh)), f.__param(2, d.j(p.X7)), f.__param(3, d.j(n.iC)), f.__param(4, d.j(G.o8)), f.__param(5, d.j(q.SS)), f.__param(6, d.j(t.HS)), f.__param(7, d.j(z.mS))], a); - c.Qwa = a; - }, function(f, c, a) { - var b, d, h, k, g, m, p, n, q; - Object.defineProperty(c, "__esModule", { - value: !0 - }); - f = a(0); - b = a(223); - d = a(114); - h = a(759); - k = a(385); - g = a(758); - m = a(154); - p = a(754); - n = a(222); - q = a(753); - c.dUa = new f.dc(function(a) { - a(d.Y7).to(h.Qwa).Y(); - a(k.p8).to(g.gxa); - a(m.HS).to(p.lva).Y(); - a(n.SS).to(q.PDa); - a(b.a8).th(b.IS.Ucb); - a(k.o8).Yl(function(a) { - return function(b) { - var c; - c = a.kc.get(k.p8); - c.context = b; - return c; - }; - }); - }); - }, function(f, c, a) { - var d, h, k, g; + if (a.Mu() && a.Gg) { + b = new t.GW(); + b.Ad = a.context.Ad; + b.Yb = [a.Yb]; + b.profileId = a.Gg.profileId; + b.ka = a.Gg.ka; + b.R = a.Gg.R; + this.IB.Nla(b); + } + }; + D = b; + D = g.__decorate([c.N(), g.__param(0, c.l(k.sb)), g.__param(1, c.l(f.Xf)), g.__param(2, c.l(l.Oca)), g.__param(3, c.l(n.jn)), g.__param(4, c.l(y.je)), g.__param(5, c.l(v.cda)), g.__param(6, c.l(q.mW)), g.__param(7, c.l(w.qw)), g.__param(8, c.l(a.TX))], D); + d.DGa = D; + }, function(g, d, a) { + var b, c, h, k, f, l; + Object.defineProperty(d, "__esModule", { + value: !0 + }); + g = a(1); + b = a(122); + c = a(888); + h = a(121); + k = a(887); + f = a(435); + l = a(880); + d.d5a = new g.Vb(function(a) { + a(b.Pca).to(c.DGa).$(); + a(h.qw).to(k.xKa).$(); + a(f.cda).to(l.cHa); + }); + }, function(g, d, a) { + var c, h, k, f; - function b(a, b, c, d, f, g) { + function b(a, b, c, d, f) { this.platform = a; - this.Tk = b; + this.$i = b; this.config = c; - this.md = f; - this.Wd = g; - this.log = d.Bb("AccountManager"); + this.tf = f; + this.log = d.lb("AccountManager"); } - Object.defineProperty(c, "__esModule", { + Object.defineProperty(d, "__esModule", { value: !0 }); - f = a(1); - h = a(0); - k = a(48); - g = a(2); - b.prototype.Xn = function(a) { + g = a(0); + h = a(1); + k = a(45); + f = a(2); + b.prototype.Nu = function(a) { return this.profile.id === a ? this.profile : this.profiles[a]; }; b.prototype.load = function() { var a; a = this; this.log.trace("Loading accounts from storage"); - return new Promise(function(b, c) { - a.uI().then(function(b) { + return new Promise(function(b, d) { + a.Taa().then(function(b) { return b ? a.storage.load("accounts") : Promise.resolve(void 0); }).then(function(c) { - c && (a.log.trace("Persisted account data", JSON.stringify(c.value, null, " ")), a.YVa(c.value), a.Wd.Ek.Uj("DebugEvent", { - kind: "playerAccountManagerLoad", - profile: a.profile && a.profile.id - })); + c && (a.log.trace("Persisted account data", JSON.stringify(c.value, null, " ")), a.F7a(c.value)); b(); - })["catch"](function(f) { + })["catch"](function(g) { a.log.debug("Unable to load persisted account data", { - code: f.R, - cause: f.cause - }); - a.Wd.Ek.Uj("DebugEvent", { - kind: "playerAccountManagerLoadError", - errorCode: f.R, - cause: f.cause + code: g.T, + cause: g.cause }); - f.R === g.u.sj ? (a.log.trace("No persisted account data, creating default profile"), a.reset(), b()) : c(d.kI(g.v.DJ, f, "Unable to read IDB for account information.")); + g.T === f.H.dm ? (a.log.trace("No persisted account data, creating default profile"), a.reset(), b()) : d(c.tL(f.I.QM, g, "Unable to read IDB for account information.")); }); }); }; @@ -92940,7 +98458,7 @@ v7AA.H22 = function() { this.log.trace("Saving account data"); return new Promise(function(b, c) { var d; - d = a.dbb(); + d = a.Dqb(); a.log.trace("Account data to persist", JSON.stringify(d, null, " ")); a.storage.save("accounts", d, !1).then(function() { b(); @@ -92950,746 +98468,123 @@ v7AA.H22 = function() { }); }); }; - b.prototype.dbb = function() { + b.prototype.Dqb = function() { var a; a = this; return { version: "1.0", - account: this.profile.Yg.ER(), - profile: this.profile.ER(), + account: this.profile.vh.wV(), + profile: this.profile.wV(), profiles: Object.keys(this.profiles).map(function(b) { - return a.profiles[b].ER(); + return a.profiles[b].wV(); }) }; }; - b.prototype.YVa = function(a) { + b.prototype.F7a = function(a) { var b, c, d; b = this; c = a.account; if (c) { - d = this.GM(c); - if (c = a.profile) this.profile = this.Hv(d, c), this.ela(), (a = a.profiles) && Array.isArray(a) && a.forEach(function(a) { - a = b.Hv(d, a); - b.profile && a.id !== b.profile.id && b.Bfa(a); + d = this.fQ(c); + if (c = a.profile) this.profile = this.Ix(d, c), this.ata(), (a = a.profiles) && Array.isArray(a) && a.forEach(function(a) { + a = b.Ix(d, a); + b.profile && a.id !== b.profile.id && b.Wla(a); }); } }; - b.prototype.Bfa = function(a) { + b.prototype.Wla = function(a) { this.profiles[a.id] = a; }; - b.prototype.q4 = function(a) { + b.prototype.v9 = function(a) { delete this.profiles[a.id]; }; - b.prototype.ela = function() { + b.prototype.ata = function() { this.profiles = {}; }; b.prototype.reset = function(a) { - (void 0 === a ? 0 : a) && this.Tk.Le.clearUserIdTokens(); - this.profile = this.Hv(this.GM()); - this.ela(); + (void 0 === a ? 0 : a) && this.$i.rf.clearUserIdTokens(); + this.profile = this.Ix(this.fQ()); + this.ata(); }; - b.kI = function(a, b, c) { - return b.R && b.cause ? new k.nb(a, b.R, void 0, void 0, void 0, c, void 0, b.cause) : void 0 !== b.tb ? (c = (b.message ? b.message + " " : "") + (c ? c : ""), b.code = a, b.message = "" === c ? void 0 : c, b) : b instanceof Error ? new k.nb(a, g.u.te, void 0, void 0, void 0, c, b.stack, b) : new k.nb(a, g.u.Vg, void 0, void 0, void 0, c, void 0, b); + b.tL = function(a, b, c) { + return b.T && b.cause ? new k.Ub(a, b.T, void 0, void 0, void 0, c, void 0, b.cause) : void 0 !== b.tc ? (c = (b.message ? b.message + " " : "") + (c ? c : ""), b.code = a, b.message = "" === c ? void 0 : c, b) : b instanceof Error ? new k.Ub(a, f.H.qg, void 0, void 0, void 0, c, b.stack, b) : new k.Ub(a, f.H.Sh, void 0, void 0, void 0, c, void 0, b); }; - a = d = b; - a = d = f.__decorate([h.N()], a); - c.cS = a; - }, function(f, c, a) { - var d; + a = c = b; + a = c = g.__decorate([h.N()], a); + d.XV = a; + }, function(g, d, a) { + var c; - function b(a, b, c, f, k) { - f = void 0 === f ? d.Cb(0) : f; + function b(a, b, d, g, l) { + g = void 0 === g ? c.rb(0) : g; this.config = a; - this.Yg = b; - this.hG = f; - this.k4 = void 0 === k ? !1 : k; - this.id = void 0 !== c ? c : this.bXa(); - this.languages = (a = a()) && a.Dg && a.Dg.Sw || ["en-US"]; + this.vh = b; + this.jJ = g; + this.r9 = void 0 === l ? !1 : l; + this.id = void 0 !== d ? d : this.J8a(); + this.languages = (a = a()) && a.Bg && a.Bg.bz || ["en-US"]; } - Object.defineProperty(c, "__esModule", { + Object.defineProperty(d, "__esModule", { value: !0 }); - d = a(7); - b.prototype.ER = function() { + c = a(4); + b.prototype.wV = function() { return { id: this.id, - lastAccessTime: this.hG ? this.hG.qa(d.Ma) : 0, + lastAccessTime: this.jJ ? this.jJ.ma(c.Aa) : 0, languages: this.languages }; }; - b.prototype.v_ = function(a) { + b.prototype.N3 = function(a) { this.id = a.id.toString(); - this.hG = d.Cb(a.lastAccessTime || 0); - this.languages = a.languages || this.config().Dg.Sw; - this.k4 = !0; + this.jJ = c.rb(a.lastAccessTime || 0); + this.languages = a.languages || this.config().Bg.bz; + this.r9 = !0; }; - c.Paa = b; - }, function(f, c, a) { - var d; + d.Nga = b; + }, function(g, d, a) { + var c; - function b(a, b, c, f, k) { - return d.Paa.call(this, a, b, c, f, k) || this; + function b(a, b, d, g, l) { + return c.Nga.call(this, a, b, d, g, l) || this; } - Object.defineProperty(c, "__esModule", { + Object.defineProperty(d, "__esModule", { value: !0 }); - d = a(762); - oa(b, d.Paa); - b.prototype.F_a = function() { + c = a(891); + ia(b, c.Nga); + b.prototype.icb = function() { var a; a = this.config(); - return a && a.Jl ? "browsertest" === this.id : "browser" === this.id; + return a && a.Hm ? "browsertest" === this.id : "browser" === this.id; }; - b.prototype.bXa = function() { + b.prototype.J8a = function() { var a; a = this.config(); - return a && a.Jl ? "browsertest" : "browser"; + return a && a.Hm ? "browsertest" : "browser"; }; - c.Kaa = b; - }, function(f, c) { + d.Cga = b; + }, function(g, d) { function a(a, c) { this.id = void 0 === a ? "browser" : a; - this.Rj = void 0 === c ? !0 : c; + this.Xi = void 0 === c ? !0 : c; } - Object.defineProperty(c, "__esModule", { + Object.defineProperty(d, "__esModule", { value: !0 }); - a.prototype.ER = function() { + a.prototype.wV = function() { return { id: this.id, - isNonMember: this.Rj + isNonMember: this.Xi }; }; - a.prototype.v_ = function(a) { + a.prototype.N3 = function(a) { this.id = a.id.toString(); - this.Rj = a.isNonMember; - }; - c.I6 = a; - }, function(f, c, a) { - var d, h, k, g, m, p, n, q, t, z, w, G, x, y, C, F; - - function b(a, b, c, d, f, g, h) { - a = C.cS.call(this, a, b, c, d, f, h) || this; - a.gj = g; - a.log = d.Bb("AccountManager"); - a.zA = new k.YC(1); - return a; - } - Object.defineProperty(c, "__esModule", { - value: !0 - }); - f = a(1); - h = a(0); - k = a(77); - g = a(111); - m = a(24); - p = a(29); - n = a(12); - q = a(48); - t = a(2); - z = a(7); - w = a(56); - G = a(387); - x = a(764); - y = a(763); - C = a(761); - a = a(85); - oa(b, C.cS); - b.prototype.Xc = function() { - var a, b; - a = this; - b = this.config(); - if (!b || void 0 === b.Jl) return Promise.reject(new q.nb(t.v.DJ, t.u.G6)); - this.Ig || (this.reset(), this.Ig = new Promise(function(b, c) { - a.md.create().then(function(b) { - a.storage = b; - return a.load(); - }).then(function() { - a.zA.next(a.profile.Yg); - b(); - })["catch"](function(b) { - a.Ig = void 0; - c(b); - }); - })); - return this.Ig; - }; - b.prototype.lw = function(a, b) { - var c; - c = this; - if (this.Bv) return Promise.reject(new q.nb(t.v.xC, t.u.E6)); - this.Bv = !0; - this.log.info("Logging in account", { - authType: a ? "Email/Password" : "Cookies" - }); - a && this.reset(!0); - return new Promise(function(d, f) { - c.gj.ping(c.profile, void 0 === a ? !0 : { - Tv: a, - password: b - }).then(function() { - return c.gj.lw(c.profile, void 0); - }).then(function(a) { - c.e8a(a); - return c.save(); - }).then(function() { - c.Bv = !1; - c.zA.next(c.profile.Yg); - d(c.profile); - })["catch"](function(a) { - c.Bv = !1; - c.log.error("Unable to login user", a); - c.reset(!0); - f(C.cS.kI(t.v.xC, a)); - }); - }); - }; - b.prototype.x1a = function() { - this.log.info("logout"); - this.Wd.Ek.mq({ - kind: "playerAccountManagerLogout" - }); - this.profile = this.Hv(this.GM()); - this.profiles = {}; - this.Tk.Le.clearUserIdTokens(); - this.zA.next(this.profile.Yg); - return this.save(); - }; - b.prototype.zab = function(a) { - var b; - b = this; - if (this.Bv) return Promise.reject(new q.nb(t.v.fK, t.u.E6)); - this.Bv = !0; - this.log.info("Switching profiles", { - old: this.profile.id, - "new": a - }); - return this.gj.ping(this.profile, a).then(function() { - var c; - c = b.Hv(b.profile.Yg, { - id: a - }); - return b.gj.lw(c, void 0); - }).then(function(c) { - b.Bv = !1; - if (c.ds != b.profile.Yg.id) throw b.zA.next(b.profile.Yg), new q.nb(t.v.fK, t.u.ota, void 0, void 0, void 0, "The incoming server account GUID does not match the current account GUID"); - (c = b.profiles[c.Kg]) ? (b.profile = c, b.q4(b.profile)) : (b.Bfa(b.profile), b.profile = b.Hv(b.profile.Yg, { - ds: b.profile.Yg.id, - Kg: a, - Rj: b.profile.Yg.Rj - })); - return b.save(); - }).then(function() { - b.Wd.Ek.Uj("DebugEvent", { - kind: "playerAccountManagerSwitchProfile", - profile: b.profile.id - }); - return b.profile; - })["catch"](function(a) { - b.Wd.Ek.mq({ - kind: "playerAccountManagerSwitchProfileError", - code: a.code, - data: a.data, - details: a.Nv, - detailsFromException: a.bF, - edgeCode: a.Jj, - extCode: a.Sc, - message: a.message, - mslErrorCode: a.sq, - subCode: a.tb - }); - b.Bv = !1; - b.log.error("Unable to switch profiles", a); - b.reset(!0); - b.save(); - throw d.kI(t.v.fK, a); - }); - }; - b.prototype.Y_ = function() { - var a; - a = this; - return Object.keys(this.profiles).map(function(b) { - return a.profiles[b]; - }); - }; - b.prototype.kSa = function() { - return k.pa.from(this.zA); - }; - b.prototype.fG = function() { - return "windows_app" === this.platform.WM ? k.pa.from(this.zA).map(function(a) { - return !(a.Rj || "browser" === a.id); - }) : k.pa.of(!0); - }; - b.prototype.e8a = function(a) { - var b, c; - b = this; - this.profile && a.Kg && a.Kg !== this.profile.id && this.Tk.Le.rekeyUserIdToken(this.profile.id, a.Kg); - this.profile.Yg.id !== a.ds && this.reset(); - c = this.Xn(a.Kg); - c ? (this.profile = c, this.q4(c)) : this.profile.id !== a.Kg && (this.profile = this.Hv(this.GM(a), a)); - (a = Object.keys(this.profiles).filter(function(a) { - return b.profiles[a].F_a(); - }).pop()) && this.q4(this.profiles[a]); - }; - b.prototype.Hv = function(a, b) { - if (b && void 0 !== b.ds) return new y.Kaa(this.config, a, b.Kg, z.Cb(0), !1); - a = new y.Kaa(this.config, a); - b && a.v_(b); - return a; - }; - b.prototype.GM = function(a) { - var b; - if (a && void 0 !== a.ds) return new x.I6(a.ds, a.Rj); - b = new x.I6(); - a && b.v_(a); - return b; - }; - b.prototype.uI = function() { - return Promise.resolve(!0); - }; - F = d = b; - F = d = f.__decorate([h.N(), f.__param(0, h.j(m.Pe)), f.__param(1, h.j(g.Wx)), f.__param(2, h.j(p.Ef)), f.__param(3, h.j(n.Jb)), f.__param(4, h.j(w.fk)), f.__param(5, h.j(G.x9)), f.__param(6, h.j(a.Wq))], F); - c.GDa = F; - }, function(f, c, a) { - var b, d; - Object.defineProperty(c, "__esModule", { - value: !0 - }); - f = a(0); - b = a(63); - d = a(765); - c.Yg = new f.dc(function(a) { - a(b.J6).to(d.GDa).Y(); - }); - }, function(f, c, a) { - var d, h, k, g, m; - - function b(a) { - a = h.we.call(this, a) || this; - a.Hj = "EmeConfigImpl"; - return a; - } - Object.defineProperty(c, "__esModule", { - value: !0 - }); - f = a(1); - d = a(0); - h = a(53); - k = a(39); - g = a(7); - a = a(54); - oa(b, h.we); - pa.Object.defineProperties(b.prototype, { - iH: { - configurable: !0, - enumerable: !0, - get: function() { - return !1; - } - }, - Sh: { - configurable: !0, - enumerable: !0, - get: function() { - return !1; - } - }, - uA: { - configurable: !0, - enumerable: !0, - get: function() { - return g.cl; - } - }, - u3: { - configurable: !0, - enumerable: !0, - get: function() { - return g.ij(10); - } - }, - H0: { - configurable: !0, - enumerable: !0, - get: function() { - return g.Cb(2E3); - } - }, - N4: { - configurable: !0, - enumerable: !0, - get: function() { - return g.Cb(1E3); - } - }, - j5a: { - configurable: !0, - enumerable: !0, - get: function() { - return g.Cb(2500); - } - }, - Iz: { - configurable: !0, - enumerable: !0, - get: function() { - return "unsentDrmData"; - } - }, - t0a: { - configurable: !0, - enumerable: !0, - get: function() { - return g.cl; - } - }, - s0a: { - configurable: !0, - enumerable: !0, - get: function() { - return 0; - } - } - }); - m = b; - f.__decorate([a.config(a.We, "promiseBasedEme")], m.prototype, "iH", null); - f.__decorate([a.config(a.We, "secureStopEnabled")], m.prototype, "Sh", null); - f.__decorate([a.config(a.cj, "licenseRenewalRequestDelay")], m.prototype, "uA", null); - f.__decorate([a.config(a.cj, "persistedReleaseDelay")], m.prototype, "u3", null); - f.__decorate([a.config(a.cj, "secureStopKeyMessageTimeoutMilliseconds")], m.prototype, "H0", null); - f.__decorate([a.config(a.cj, "secureStopKeyAddedTimeoutMilliseconds")], m.prototype, "N4", null); - f.__decorate([a.config(a.cj, "secureStopPersistedKeyMessageTimeoutMilliseconds")], m.prototype, "j5a", null); - f.__decorate([a.config(a.string, "drmPersistKey")], m.prototype, "Iz", null); - f.__decorate([a.config(a.cj, "licenseChallengeTimeoutMilliseconds")], m.prototype, "t0a", null); - f.__decorate([a.config(a.rI, "licenseChallengeRetries")], m.prototype, "s0a", null); - m = f.__decorate([d.N(), f.__param(0, d.j(k.nk))], m); - c.exa = m; - }, function(f, c, a) { - var d, h, k, g, m, p, n; - - function b(a, b, c) { - a = g.we.call(this, a) || this; - a.xc = b; - a.Na = c; - a.Hj = "FtlProbeConfigImpl"; - return a; - } - Object.defineProperty(c, "__esModule", { - value: !0 - }); - f = a(1); - d = a(52); - h = a(0); - k = a(7); - g = a(53); - m = a(27); - p = a(54); - a = a(39); - oa(b, g.we); - pa.Object.defineProperties(b.prototype, { - enabled: { - configurable: !0, - enumerable: !0, - get: function() { - return !0; - } - }, - endpoint: { - configurable: !0, - enumerable: !0, - get: function() { - return "" + this.x_ + (-1 === this.x_.indexOf("?") ? "?" : "&") + "monotonic=" + this.Na.Dna; - } - }, - Dra: { - configurable: !0, - enumerable: !0, - get: function() { - return k.cl; - } - }, - u_: { - configurable: !0, - enumerable: !0, - get: function() { - return ""; - } - }, - x_: { - configurable: !0, - enumerable: !0, - get: function() { - return this.xc.endpoint + "/ftl/probe" + (this.u_ ? "?force=" + this.u_ : ""); - } - } - }); - n = b; - f.__decorate([p.config(p.We, "ftlEnabled")], n.prototype, "enabled", null); - f.__decorate([p.config(p.cj, "ftlStartDelay")], n.prototype, "Dra", null); - f.__decorate([p.config(p.string, "ftlEndpointForceParam")], n.prototype, "u_", null); - f.__decorate([p.config(p.url, "ftlEndpoint")], n.prototype, "x_", null); - n = f.__decorate([h.N(), f.__param(0, h.j(a.nk)), f.__param(1, h.j(m.lf)), f.__param(2, h.j(d.mj))], n); - c.yxa = n; - }, function(f, c, a) { - var d, h, k, g; - - function b(a) { - a = k.we.call(this, a) || this; - a.Hj = "NetworkMonitorConfigImpl"; - return a; - } - Object.defineProperty(c, "__esModule", { - value: !0 - }); - f = a(1); - d = a(0); - h = a(54); - k = a(53); - a = a(39); - oa(b, k.we); - pa.Object.defineProperties(b.prototype, { - Tsa: { - configurable: !0, - enumerable: !0, - get: function() { - return !0; - } - } - }); - g = b; - f.__decorate([h.config(h.We, "useNetworkMonitor")], g.prototype, "Tsa", null); - g = f.__decorate([d.N(), f.__param(0, d.j(a.nk))], g); - c.YAa = g; - }, function(f, c, a) { - var d, h, k, g, m, p, n; - - function b(a) { - a = g.we.call(this, a) || this; - a.Hj = "GeneralConfigImpl"; - return a; - } - Object.defineProperty(c, "__esModule", { - value: !0 - }); - f = a(1); - d = a(7); - h = a(0); - k = a(54); - g = a(53); - m = a(47); - a = a(39); - p = { - test: "Test", - stg: "Staging", - "int": "Int", - prod: "Prod" + this.Xi = a.isNonMember; }; - c.nF = function(a, b) { - return a.Fpa(p[b] || b, m.er); - }; - oa(b, g.we); - pa.Object.defineProperties(b.prototype, { - nF: { - configurable: !0, - enumerable: !0, - get: function() { - return m.er.ODa; - } - }, - E5: { - configurable: !0, - enumerable: !0, - get: function() { - return d.ij(8); - } - }, - Zn: { - configurable: !0, - enumerable: !0, - get: function() { - return ""; - } - }, - Kp: { - configurable: !0, - enumerable: !0, - get: function() { - return ""; - } - }, - Tq: { - configurable: !0, - enumerable: !0, - get: function() { - return ""; - } - }, - Xra: { - configurable: !0, - enumerable: !0, - get: function() { - return !1; - } - }, - RE: { - configurable: !0, - enumerable: !0, - get: function() { - return "netflix.player "; - } - }, - hM: { - configurable: !0, - enumerable: !0, - get: function() { - return !0; - } - }, - F0: { - configurable: !0, - enumerable: !0, - get: function() { - return !0; - } - }, - PUa: { - configurable: !0, - enumerable: !0, - get: function() { - return !1; - } - }, - fi: { - configurable: !0, - enumerable: !0, - get: function() { - return {}; - } - }, - C4: { - configurable: !0, - enumerable: !0, - get: function() { - return !1; - } - }, - gG: { - configurable: !0, - enumerable: !0, - get: function() { - return !1; - } - }, - vI: { - configurable: !0, - enumerable: !0, - get: function() { - return !0; - } - }, - XR: { - configurable: !0, - enumerable: !0, - get: function() { - return !1; - } - }, - zo: { - configurable: !0, - enumerable: !0, - get: function() { - return { - __default_rule_key__: ["idb", "mem"] - }; - } - }, - Jl: { - configurable: !0, - enumerable: !0, - get: function() { - return 0 <= [m.er.Gba, m.er.A9].indexOf(this.nF); - } - } - }); - n = b; - f.__decorate([k.config(c.nF, "environment")], n.prototype, "nF", null); - f.__decorate([k.config(k.cj, "storageTimeout")], n.prototype, "E5", null); - f.__decorate([k.config(k.string, "groupName")], n.prototype, "Zn", null); - f.__decorate([k.config(k.string, "canaryGroupName")], n.prototype, "Kp", null); - f.__decorate([k.config(k.string, "uiGroupName")], n.prototype, "Tq", null); - f.__decorate([k.config(k.We, "testIndexDBForCorruptedDatabase")], n.prototype, "Xra", null); - f.__decorate([k.config(k.string, "cruftyDatabaseName")], n.prototype, "RE", null); - f.__decorate([k.config(k.We, "applyIndexedDbOpenWorkaround")], n.prototype, "hM", null); - f.__decorate([k.config(k.We, "ignoreIdbOpenError")], n.prototype, "F0", null); - f.__decorate([k.config(k.We, "executeStorageMigration")], n.prototype, "PUa", null); - f.__decorate([k.config(k.object(), "browserInfo")], n.prototype, "fi", null); - f.__decorate([k.config(k.We, "retryAllMslRequestsOnError")], n.prototype, "C4", null); - f.__decorate([k.config(k.We, "isTestAccount")], n.prototype, "gG", null); - f.__decorate([k.config(k.We, "useEventSourceSetOfLists")], n.prototype, "vI", null); - f.__decorate([k.config(k.We, "vuiCommandLogging")], n.prototype, "XR", null); - f.__decorate([k.config(k.object, "storageRules")], n.prototype, "zo", null); - n = f.__decorate([h.N(), f.__param(0, h.j(a.nk))], n); - c.Bxa = n; - }, function(f, c, a) { - var k, g, m, p, n; - - function b() { - this.Ds = {}; - this.vqa = 0; - } - - function d(a, b, c, d, f) { - this.debug = a; - this.jq = b; - this.OG = c; - this.si = d; - this.dQ = f; - } - - function h(a, b, c) { - this.jq = a; - this.OG = b; - this.dQ = c; - } - Object.defineProperty(c, "__esModule", { - value: !0 - }); - f = a(1); - k = a(0); - g = a(128); - m = a(12); - p = a(127); - n = a(389); - a = a(39); - h = f.__decorate([k.N(), f.__param(0, k.j(a.uC)), f.__param(1, k.j(p.NU)), f.__param(2, k.j(n.FU))], h); - c.sva = h; - d = f.__decorate([k.N(), f.__param(0, k.j(g.gJ)), f.__param(1, k.j(a.uC)), f.__param(2, k.j(p.NU)), f.__param(3, k.j(m.Jb)), f.__param(4, k.j(n.FU))], d); - c.NFa = d; - pa.Object.defineProperties(b.prototype, { - data: { - configurable: !0, - enumerable: !0, - get: function() { - return this.Ds; - }, - set: function(a) { - this.Ds = a; - this.vqa++; - } - }, - uqa: { - configurable: !0, - enumerable: !0, - get: function() { - return this.vqa; - } - } - }); - a = b; - a = f.__decorate([k.N()], a); - c.Vya = a; - }, function(f, c, a) { - var b, d, h; + d.xba = a; + }, function(g, d, a) { + var b, c, h; b = this && this.__extends || function(a, b) { function c() { this.constructor = a; @@ -93697,193 +98592,193 @@ v7AA.H22 = function() { for (var d in b) b.hasOwnProperty(d) && (a[d] = b[d]); a.prototype = null === b ? Object.create(b) : (c.prototype = b.prototype, new c()); }; - f = a(11); - d = a(74); - a = a(75); - f = function(a) { + g = a(10); + c = a(77); + a = a(78); + g = function(a) { function c(b) { a.call(this); - this.N3a = b; + this.chb = b; } b(c, a); c.create = function(a) { return new c(a); }; - c.prototype.Ve = function(a) { - return new h(a, this.N3a); + c.prototype.zf = function(a) { + return new h(a, this.chb); }; return c; - }(f.pa); - c.zwa = f; + }(g.ta); + d.nGa = g; h = function(a) { - function c(b, c) { + function d(b, c) { a.call(this, b); - this.Lj = c; - this.Obb(); + this.Km = c; + this.mrb(); } - b(c, a); - c.prototype.Obb = function() { + b(d, a); + d.prototype.mrb = function() { try { - this.JGa(); - } catch (m) { - this.Yb(m); + this.sRa(); + } catch (p) { + this.Rb(p); } }; - c.prototype.JGa = function() { + d.prototype.sRa = function() { var a; - a = this.Lj(); - a && this.add(d.Oq(this, a)); + a = this.Km(); + a && this.add(c.Cs(this, a)); }; - return c; - }(a.So); - }, function(f, c, a) { - f = a(772); - c.defer = f.zwa.create; - }, function(f, c, a) { - f = a(11); - a = a(773); - f.pa.defer = a.defer; - }, function(f, c, a) { - f = a(11); - a = a(397); - f.pa.from = a.from; - }, function(f, c, a) { - var d, h, k, g, m, p, n, q, t, z, w; + return d; + }(a.Aq); + }, function(g, d, a) { + g = a(894); + d.defer = g.nGa.create; + }, function(g, d, a) { + g = a(10); + a = a(895); + g.ta.defer = a.defer; + }, function(g, d, a) { + g = a(10); + a = a(445); + g.ta.from = a.from; + }, function(g, d, a) { + var c, h, k, f, l, m, n, q, t, v, y; function b() { for (var a = [], b = 0; b < arguments.length; b++) a[b - 0] = arguments[b]; b = a[a.length - 1]; "function" === typeof b && a.pop(); - return new h.$t(a).af(new n(b)); + return new h.Vv(a).Gf(new n(b)); } - d = this && this.__extends || function(a, b) { + c = this && this.__extends || function(a, b) { function c() { this.constructor = a; } for (var d in b) b.hasOwnProperty(d) && (a[d] = b[d]); a.prototype = null === b ? Object.create(b) : (c.prototype = b.prototype, new c()); }; - h = a(97); - k = a(98); - f = a(55); - g = a(75); - m = a(74); - p = a(157); - c.D6 = function() { + h = a(102); + k = a(103); + g = a(50); + f = a(78); + l = a(77); + m = a(163); + d.jba = function() { for (var a = [], c = 0; c < arguments.length; c++) a[c - 0] = arguments[c]; return function(c) { - return c.af.call(b.apply(void 0, [c].concat(a))); + return c.Gf.call(b.apply(void 0, [c].concat(a))); }; }; - c.jdb = b; + d.$sb = b; n = function() { function a(a) { - this.zf = a; + this.jg = a; } a.prototype.call = function(a, b) { - return b.subscribe(new q(a, this.zf)); + return b.subscribe(new q(a, this.jg)); }; return a; }(); - c.ckb = n; + d.SAb = n; q = function(a) { function b(b, c, d) { void 0 === d && (d = Object.create(null)); a.call(this, b); - this.i1 = []; + this.e6 = []; this.active = 0; - this.zf = "function" === typeof c ? c : null; + this.jg = "function" === typeof c ? c : null; this.values = d; } - d(b, a); - b.prototype.tg = function(a) { + c(b, a); + b.prototype.Tg = function(a) { var b; - b = this.i1; - k.isArray(a) ? b.push(new z(a)) : "function" === typeof a[p.iterator] ? b.push(new t(a[p.iterator]())) : b.push(new w(this.destination, this, a)); + b = this.e6; + k.isArray(a) ? b.push(new v(a)) : "function" === typeof a[m.iterator] ? b.push(new t(a[m.iterator]())) : b.push(new y(this.destination, this, a)); }; - b.prototype.qf = function() { + b.prototype.wb = function() { var a, b, d; - a = this.i1; + a = this.e6; b = a.length; if (0 === b) this.destination.complete(); else { this.active = b; for (var c = 0; c < b; c++) { d = a[c]; - d.C$a ? this.add(d.subscribe(d, c)) : this.active--; + d.apb ? this.add(d.subscribe(d, c)) : this.active--; } } }; - b.prototype.u3a = function() { + b.prototype.Lgb = function() { this.active--; 0 === this.active && this.destination.complete(); }; - b.prototype.UOa = function() { + b.prototype.j_a = function() { var f, k; - for (var a = this.i1, b = a.length, c = this.destination, d = 0; d < b; d++) { + for (var a = this.e6, b = a.length, c = this.destination, d = 0; d < b; d++) { f = a[d]; - if ("function" === typeof f.Cm && !f.Cm()) return; + if ("function" === typeof f.Vn && !f.Vn()) return; } for (var g = !1, h = [], d = 0; d < b; d++) { f = a[d]; k = f.next(); - f.bA() && (g = !0); + f.NC() && (g = !0); if (k.done) { c.complete(); return; } h.push(k.value); } - this.zf ? this.MW(h) : c.next(h); + this.jg ? this.D_(h) : c.next(h); g && c.complete(); }; - b.prototype.MW = function(a) { + b.prototype.D_ = function(a) { var b; try { - b = this.zf.apply(this, a); - } catch (F) { - this.destination.error(F); + b = this.jg.apply(this, a); + } catch (P) { + this.destination.error(P); return; } this.destination.next(b); }; return b; - }(f.zh); - c.dkb = q; + }(g.Rh); + d.TAb = q; t = function() { function a(a) { this.iterator = a; - this.T2 = a.next(); + this.X7 = a.next(); } - a.prototype.Cm = function() { + a.prototype.Vn = function() { return !0; }; a.prototype.next = function() { var a; - a = this.T2; - this.T2 = this.iterator.next(); + a = this.X7; + this.X7 = this.iterator.next(); return a; }; - a.prototype.bA = function() { + a.prototype.NC = function() { var a; - a = this.T2; + a = this.X7; return a && a.done; }; return a; }(); - z = function() { + v = function() { function a(a) { - this.Jn = a; + this.Dn = a; this.length = this.index = 0; this.length = a.length; } - a.prototype[p.iterator] = function() { + a.prototype[m.iterator] = function() { return this; }; a.prototype.next = function() { var a, b; a = this.index++; - b = this.Jn; + b = this.Dn; return a < this.length ? { value: b[a], done: !1 @@ -93892,31 +98787,31 @@ v7AA.H22 = function() { done: !0 }; }; - a.prototype.Cm = function() { - return this.Jn.length > this.index; + a.prototype.Vn = function() { + return this.Dn.length > this.index; }; - a.prototype.bA = function() { - return this.Jn.length === this.index; + a.prototype.NC = function() { + return this.Dn.length === this.index; }; return a; }(); - w = function(a) { + y = function(a) { function b(b, c, d) { a.call(this, b); this.parent = c; this.observable = d; - this.C$a = !0; + this.apb = !0; this.buffer = []; - this.T0 = !1; + this.R5 = !1; } - d(b, a); - b.prototype[p.iterator] = function() { + c(b, a); + b.prototype[m.iterator] = function() { return this; }; b.prototype.next = function() { var a; a = this.buffer; - return 0 === a.length && this.T0 ? { + return 0 === a.length && this.R5 ? { value: null, done: !0 } : { @@ -93924,33 +98819,33 @@ v7AA.H22 = function() { done: !1 }; }; - b.prototype.Cm = function() { + b.prototype.Vn = function() { return 0 < this.buffer.length; }; - b.prototype.bA = function() { - return 0 === this.buffer.length && this.T0; + b.prototype.NC = function() { + return 0 === this.buffer.length && this.R5; }; - b.prototype.vi = function() { - 0 < this.buffer.length ? (this.T0 = !0, this.parent.u3a()) : this.destination.complete(); + b.prototype.bj = function() { + 0 < this.buffer.length ? (this.R5 = !0, this.parent.Lgb()) : this.destination.complete(); }; - b.prototype.Ew = function(a, b) { + b.prototype.Qy = function(a, b) { this.buffer.push(b); - this.parent.UOa(); + this.parent.j_a(); }; b.prototype.subscribe = function(a, b) { - return m.Oq(this, this.observable, this, b); + return l.Cs(this, this.observable, this, b); }; return b; - }(g.So); - }, function(f, c, a) { - f = a(776); - c.D6 = f.jdb; - }, function(f, c, a) { - f = a(11); - a = a(777); - f.pa.D6 = a.D6; - }, function(f, c, a) { - var b, d, h, k, g, m, p; + }(f.Aq); + }, function(g, d, a) { + g = a(898); + d.jba = g.$sb; + }, function(g, d, a) { + g = a(10); + a = a(899); + g.ta.jba = a.jba; + }, function(g, d, a) { + var b, c, h, k, f, l, m; b = this && this.__extends || function(a, b) { function c() { this.constructor = a; @@ -93958,102 +98853,102 @@ v7AA.H22 = function() { for (var d in b) b.hasOwnProperty(d) && (a[d] = b[d]); a.prototype = null === b ? Object.create(b) : (c.prototype = b.prototype, new c()); }; - d = a(97); - h = a(98); - f = a(75); - k = a(74); - g = {}; - c.EY = function() { - var c; + c = a(102); + h = a(103); + g = a(78); + k = a(77); + f = {}; + d.w1 = function() { + var d; for (var a = [], b = 0; b < arguments.length; b++) a[b - 0] = arguments[b]; - c = null; - "function" === typeof a[a.length - 1] && (c = a.pop()); + d = null; + "function" === typeof a[a.length - 1] && (d = a.pop()); 1 === a.length && h.isArray(a[0]) && (a = a[0].slice()); return function(b) { - return b.af.call(new d.$t([b].concat(a)), new m(c)); + return b.Gf.call(new c.Vv([b].concat(a)), new l(d)); }; }; - m = function() { + l = function() { function a(a) { - this.zf = a; + this.jg = a; } a.prototype.call = function(a, b) { - return b.subscribe(new p(a, this.zf)); + return b.subscribe(new m(a, this.jg)); }; return a; }(); - c.qva = m; - p = function(a) { + d.SEa = l; + m = function(a) { function c(b, c) { a.call(this, b); - this.zf = c; + this.jg = c; this.active = 0; this.values = []; - this.foa = []; + this.wwa = []; } b(c, a); - c.prototype.tg = function(a) { - this.values.push(g); - this.foa.push(a); + c.prototype.Tg = function(a) { + this.values.push(f); + this.wwa.push(a); }; - c.prototype.qf = function() { + c.prototype.wb = function() { var a, b, d; - a = this.foa; + a = this.wwa; b = a.length; if (0 === b) this.destination.complete(); else { - this.Z5 = this.active = b; + this.Aaa = this.active = b; for (var c = 0; c < b; c++) { d = a[c]; - this.add(k.Oq(this, d, d, c)); + this.add(k.Cs(this, d, d, c)); } } }; - c.prototype.vi = function() { + c.prototype.bj = function() { 0 === --this.active && this.destination.complete(); }; - c.prototype.Ew = function(a, b, c) { + c.prototype.Qy = function(a, b, c) { var d; a = this.values; d = a[c]; - d = this.Z5 ? d === g ? --this.Z5 : this.Z5 : 0; + d = this.Aaa ? d === f ? --this.Aaa : this.Aaa : 0; a[c] = b; - 0 === d && (this.zf ? this.MW(a) : this.destination.next(a.slice())); + 0 === d && (this.jg ? this.D_(a) : this.destination.next(a.slice())); }; - c.prototype.MW = function(a) { + c.prototype.D_ = function(a) { var b; try { - b = this.zf.apply(this, a); - } catch (w) { - this.destination.error(w); + b = this.jg.apply(this, a); + } catch (y) { + this.destination.error(y); return; } this.destination.next(b); }; return c; - }(f.So); - c.qeb = p; - }, function(f, c, a) { - var b, d, h, k; - b = a(112); - d = a(98); - h = a(97); - k = a(779); - c.EY = function() { - var f; - for (var a = [], c = 0; c < arguments.length; c++) a[c - 0] = arguments[c]; - f = c = null; - b.hw(a[a.length - 1]) && (f = a.pop()); - "function" === typeof a[a.length - 1] && (c = a.pop()); - 1 === a.length && d.isArray(a[0]) && (a = a[0]); - return new h.$t(a, f).af(new k.qva(c)); - }; - }, function(f, c, a) { - f = a(11); - a = a(780); - f.pa.EY = a.EY; - }, function(f, c, a) { - var b, d, h, k, g; + }(g.Aq); + d.vub = m; + }, function(g, d, a) { + var b, c, h, k; + b = a(120); + c = a(103); + h = a(102); + k = a(901); + d.w1 = function() { + var g; + for (var a = [], d = 0; d < arguments.length; d++) a[d - 0] = arguments[d]; + g = d = null; + b.my(a[a.length - 1]) && (g = a.pop()); + "function" === typeof a[a.length - 1] && (d = a.pop()); + 1 === a.length && c.isArray(a[0]) && (a = a[0]); + return new h.Vv(a, g).Gf(new k.SEa(d)); + }; + }, function(g, d, a) { + g = a(10); + a = a(902); + g.ta.w1 = a.w1; + }, function(g, d, a) { + var b, c, h, k, f; b = this && this.__extends || function(a, b) { function c() { this.constructor = a; @@ -94061,57 +98956,57 @@ v7AA.H22 = function() { for (var d in b) b.hasOwnProperty(d) && (a[d] = b[d]); a.prototype = null === b ? Object.create(b) : (c.prototype = b.prototype, new c()); }; - d = a(390); - f = a(11); - h = a(156); - k = a(112); - g = a(392); + c = a(438); + g = a(10); + h = a(162); + k = a(120); + f = a(440); a = function(a) { - function c(b, c, f) { + function d(b, d, g) { void 0 === b && (b = 0); a.call(this); - this.yq = -1; - this.mia = 0; - d.Dla(c) ? this.yq = 1 > Number(c) && 1 || Number(c) : k.hw(c) && (f = c); - k.hw(f) || (f = h.async); - this.ha = f; - this.mia = g.cG(b) ? +b - this.ha.now() : b; - } - b(c, a); - c.create = function(a, b, d) { + this.ls = -1; + this.xpa = 0; + c.xta(d) ? this.ls = 1 > Number(d) && 1 || Number(d) : k.my(d) && (g = d); + k.my(g) || (g = h.async); + this.ia = g; + this.xpa = f.cJ(b) ? +b - this.ia.now() : b; + } + b(d, a); + d.create = function(a, b, c) { void 0 === a && (a = 0); - return new c(a, b, d); + return new d(a, b, c); }; - c.Xa = function(a) { + d.hb = function(a) { var b, c, d; b = a.index; - c = a.yq; - d = a.Ce; + c = a.ls; + d = a.ff; d.next(b); if (!d.closed) { if (-1 === c) return d.complete(); a.index = b + 1; - this.lb(a, c); + this.nb(a, c); } }; - c.prototype.Ve = function(a) { - return this.ha.lb(c.Xa, this.mia, { + d.prototype.zf = function(a) { + return this.ia.nb(d.hb, this.xpa, { index: 0, - yq: this.yq, - Ce: a + ls: this.ls, + ff: a }); }; - return c; - }(f.pa); - c.uFa = a; - }, function(f, c, a) { - f = a(782); - c.Rq = f.uFa.create; - }, function(f, c, a) { - f = a(11); - a = a(783); - f.pa.Rq = a.Rq; - }, function(f, c, a) { + return d; + }(g.ta); + d.UPa = a; + }, function(g, d, a) { + g = a(904); + d.Es = g.UPa.create; + }, function(g, d, a) { + g = a(10); + a = a(905); + g.ta.Es = a.Es; + }, function(g, d, a) { var b; b = this && this.__extends || function(a, b) { function c() { @@ -94120,72 +99015,72 @@ v7AA.H22 = function() { for (var d in b) b.hasOwnProperty(d) && (a[d] = b[d]); a.prototype = null === b ? Object.create(b) : (c.prototype = b.prototype, new c()); }; - f = function(a) { + g = function(a) { function c(b, c) { a.call(this); this.error = b; - this.ha = c; + this.ia = c; } b(c, a); c.create = function(a, b) { return new c(a, b); }; - c.Xa = function(a) { - a.Ce.error(a.error); + c.hb = function(a) { + a.ff.error(a.error); }; - c.prototype.Ve = function(a) { + c.prototype.zf = function(a) { var b, d; b = this.error; - d = this.ha; - a.kj = !0; - if (d) return d.lb(c.Xa, 0, { + d = this.ia; + a.Lj = !0; + if (d) return d.nb(c.hb, 0, { error: b, - Ce: a + ff: a }); a.error(b); }; return c; - }(a(11).pa); - c.lxa = f; - }, function(f, c, a) { - f = a(785); - c.PKa = f.lxa.create; - }, function(f, c, a) { - f = a(11); - a = a(786); - f.pa["throw"] = a.PKa; - }, function(f, c, a) { - f = a(391); - c.Gw = f.g4a; - }, function(f, c, a) { - f = a(11); - a = a(788); - f.pa.Gw = a.Gw; - }, function(f, c, a) { - f = a(11); - a = a(398); - f.pa.of = a.of; - }, function(f, c, a) { - var b, d, h, k; - b = a(11); - d = a(97); - h = a(112); - k = a(224); - c.y2 = function() { - var c, f, l; - for (var a = [], c = 0; c < arguments.length; c++) a[c - 0] = arguments[c]; - c = Number.POSITIVE_INFINITY; - f = null; + }(a(10).ta); + d.kHa = g; + }, function(g, d, a) { + g = a(907); + d.$Va = g.kHa.create; + }, function(g, d, a) { + g = a(10); + a = a(908); + g.ta["throw"] = a.$Va; + }, function(g, d, a) { + g = a(439); + d.Sy = g.yhb; + }, function(g, d, a) { + g = a(10); + a = a(910); + g.ta.Sy = a.Sy; + }, function(g, d, a) { + g = a(10); + a = a(446); + g.ta.of = a.of; + }, function(g, d, a) { + var b, c, h, k; + b = a(10); + c = a(102); + h = a(120); + k = a(233); + d.B7 = function() { + var d, g, l; + for (var a = [], d = 0; d < arguments.length; d++) a[d - 0] = arguments[d]; + d = Number.POSITIVE_INFINITY; + g = null; l = a[a.length - 1]; - h.hw(l) ? (f = a.pop(), 1 < a.length && "number" === typeof a[a.length - 1] && (c = a.pop())) : "number" === typeof l && (c = a.pop()); - return null === f && 1 === a.length && a[0] instanceof b.pa ? a[0] : k.pt(c)(new d.$t(a, f)); + h.my(l) ? (g = a.pop(), 1 < a.length && "number" === typeof a[a.length - 1] && (d = a.pop())) : "number" === typeof l && (d = a.pop()); + return null === g && 1 === a.length && a[0] instanceof b.ta ? a[0] : k.ev(d)(new c.Vv(a, g)); }; - }, function(f, c, a) { - f = a(11); - a = a(791); - f.pa.y2 = a.y2; - }, function(f, c, a) { - var b, d, h; + }, function(g, d, a) { + g = a(10); + a = a(913); + g.ta.B7 = a.B7; + }, function(g, d, a) { + var b, c, h; b = this && this.__extends || function(a, b) { function c() { this.constructor = a; @@ -94193,71 +99088,71 @@ v7AA.H22 = function() { for (var d in b) b.hasOwnProperty(d) && (a[d] = b[d]); a.prototype = null === b ? Object.create(b) : (c.prototype = b.prototype, new c()); }; - d = a(390); - f = a(11); - h = a(156); + c = a(438); + g = a(10); + h = a(162); a = function(a) { - function c(b, c) { + function d(b, d) { void 0 === b && (b = 0); - void 0 === c && (c = h.async); + void 0 === d && (d = h.async); a.call(this); - this.yq = b; - this.ha = c; - if (!d.Dla(b) || 0 > b) this.yq = 0; - c && "function" === typeof c.lb || (this.ha = h.async); - } - b(c, a); - c.create = function(a, b) { + this.ls = b; + this.ia = d; + if (!c.xta(b) || 0 > b) this.ls = 0; + d && "function" === typeof d.nb || (this.ia = h.async); + } + b(d, a); + d.create = function(a, b) { void 0 === a && (a = 0); void 0 === b && (b = h.async); - return new c(a, b); + return new d(a, b); }; - c.Xa = function(a) { + d.hb = function(a) { var b, c; - b = a.Ce; - c = a.yq; + b = a.ff; + c = a.ls; b.next(a.index); - b.closed || (a.index += 1, this.lb(a, c)); + b.closed || (a.index += 1, this.nb(a, c)); }; - c.prototype.Ve = function(a) { + d.prototype.zf = function(a) { var b; - b = this.yq; - a.add(this.ha.lb(c.Xa, b, { + b = this.ls; + a.add(this.ia.nb(d.hb, b, { index: 0, - Ce: a, - yq: b + ff: a, + ls: b })); }; - return c; - }(f.pa); - c.Xya = a; - }, function(f, c, a) { - f = a(793); - c.interval = f.Xya.create; - }, function(f, c, a) { - f = a(11); - a = a(794); - f.pa.interval = a.interval; - }, function(f, c, a) { - f = a(395); - c.Yv = f.Qaa.create; - }, function(f, c, a) { - f = a(11); - a = a(796); - f.pa.Yv = a.Yv; - }, function(f, c, a) { - f = a(129); - c.empty = f.jC.create; - }, function(f, c, a) { - f = a(11); - a = a(798); - f.pa.empty = a.empty; - }, function(f, c, a) { - f = a(11); - a = a(130); - f.pa.concat = a.concat; - }, function(f, c, a) { - var b, d, h, k; + return d; + }(g.ta); + d.ZIa = a; + }, function(g, d, a) { + g = a(915); + d.interval = g.ZIa.create; + }, function(g, d, a) { + g = a(10); + a = a(916); + g.ta.interval = a.interval; + }, function(g, d, a) { + g = a(443); + d.Iu = g.Oga.create; + }, function(g, d, a) { + g = a(10); + a = a(918); + g.ta.Iu = a.Iu; + }, function(g, d, a) { + g = a(134); + d.empty = g.cF.create; + }, function(g, d, a) { + g = a(10); + a = a(920); + g.ta.empty = a.empty; + }, function(g, d, a) { + g = a(10); + a = a(135); + g.ta.concat = a.concat; + }, function(g, d, a) { + var b, c, h, k; b = this && this.__extends || function(a, b) { function c() { this.constructor = a; @@ -94265,173 +99160,173 @@ v7AA.H22 = function() { for (var d in b) b.hasOwnProperty(d) && (a[d] = b[d]); a.prototype = null === b ? Object.create(b) : (c.prototype = b.prototype, new c()); }; - f = a(75); - d = a(74); - c.xR = function(a, b) { + g = a(78); + c = a(77); + d.qV = function(a, b) { return function(c) { - return c.af(new h(a, b)); + return c.Gf(new h(a, b)); }; }; h = function() { function a(a, b) { - this.zf = a; - this.hj = b; + this.jg = a; + this.Ij = b; } a.prototype.call = function(a, b) { - return b.subscribe(new k(a, this.zf, this.hj)); + return b.subscribe(new k(a, this.jg, this.Ij)); }; return a; }(); k = function(a) { - function c(b, c, d) { + function d(b, c, d) { a.call(this, b); - this.zf = c; - this.hj = d; + this.jg = c; + this.Ij = d; this.index = 0; } - b(c, a); - c.prototype.tg = function(a) { + b(d, a); + d.prototype.Tg = function(a) { var b, c; c = this.index++; try { - b = this.zf(a, c); - } catch (v) { - this.destination.error(v); + b = this.jg(a, c); + } catch (x) { + this.destination.error(x); return; } - this.NV(b, a, c); + this.JZ(b, a, c); }; - c.prototype.NV = function(a, b, c) { + d.prototype.JZ = function(a, b, d) { var f; - f = this.DO; + f = this.mS; f && f.unsubscribe(); - this.add(this.DO = d.Oq(this, a, b, c)); + this.add(this.mS = c.Cs(this, a, b, d)); }; - c.prototype.qf = function() { + d.prototype.wb = function() { var b; - b = this.DO; - b && !b.closed || a.prototype.qf.call(this); + b = this.mS; + b && !b.closed || a.prototype.wb.call(this); }; - c.prototype.rp = function() { - this.DO = null; + d.prototype.ar = function() { + this.mS = null; }; - c.prototype.vi = function(b) { + d.prototype.bj = function(b) { this.remove(b); - this.DO = null; - this.Ze && a.prototype.qf.call(this); + this.mS = null; + this.Ff && a.prototype.wb.call(this); }; - c.prototype.Ew = function(a, b, c, d) { - this.hj ? this.WKa(a, b, c, d) : this.destination.next(b); + d.prototype.Qy = function(a, b, c, d) { + this.Ij ? this.fWa(a, b, c, d) : this.destination.next(b); }; - c.prototype.WKa = function(a, b, c, d) { + d.prototype.fWa = function(a, b, c, d) { var f; try { - f = this.hj(a, b, c, d); - } catch (w) { - this.destination.error(w); + f = this.Ij(a, b, c, d); + } catch (y) { + this.destination.error(y); return; } this.destination.next(f); }; - return c; - }(f.So); - }, function(f, c, a) { + return d; + }(g.Aq); + }, function(g, d, a) { var b; - b = a(801); - c.xR = function(a, c) { - return b.xR(a, c)(this); + b = a(923); + d.qV = function(a, d) { + return b.qV(a, d)(this); }; - }, function(f, c, a) { - f = a(11); - a = a(802); - f.pa.prototype.xR = a.xR; - }, function(f, c, a) { - var b, d; - b = a(404); - c.S2a = function(a, c) { + }, function(g, d, a) { + g = a(10); + a = a(924); + g.ta.prototype.qV = a.qV; + }, function(g, d, a) { + var b, c; + b = a(452); + d.lgb = function(a, d) { return function(f) { var g, h; g = "function" === typeof a ? a : function() { return a; }; - if ("function" === typeof c) return f.af(new d(g, c)); - h = Object.create(f, b.BPa); + if ("function" === typeof d) return f.Gf(new c(g, d)); + h = Object.create(f, b.d0a); h.source = f; - h.vR = g; + h.mV = g; return h; }; }; - d = function() { + c = function() { function a(a, b) { - this.vR = a; - this.Mt = b; + this.mV = a; + this.MK = b; } a.prototype.call = function(a, b) { var c, d; - c = this.Mt; - d = this.vR(); + c = this.MK; + d = this.mV(); a = c(d).subscribe(a); a.add(b.subscribe(d)); return a; }; return a; }(); - c.khb = d; - }, function(f, c, a) { - var b, d; - b = a(406); - d = a(804); - c.aQ = function(a, c, f, k) { - var g, h; - f && "function" !== typeof f && (k = f); - g = "function" === typeof f ? f : void 0; - h = new b.YC(a, c, k); + d.rxb = c; + }, function(g, d, a) { + var b, c; + b = a(454); + c = a(926); + d.dU = function(a, d, f, g) { + var h, k; + f && "function" !== typeof f && (g = f); + h = "function" === typeof f ? f : void 0; + k = new b.LF(a, d, g); return function(a) { - return d.S2a(function() { - return h; - }, g)(a); + return c.lgb(function() { + return k; + }, h)(a); }; }; - }, function(f, c, a) { + }, function(g, d, a) { var b; - b = a(805); - c.aQ = function(a, c, f, g) { - return b.aQ(a, c, f, g)(this); + b = a(927); + d.dU = function(a, d, g, f) { + return b.dU(a, d, g, f)(this); }; - }, function(f, c, a) { - f = a(11); - a = a(806); - f.pa.prototype.aQ = a.aQ; - }, function(f, c, a) { - var b, d, h, k, g; - b = a(97); - d = a(225); - h = a(129); - k = a(130); - g = a(112); - c.nR = function() { - for (var a = [], c = 0; c < arguments.length; c++) a[c - 0] = arguments[c]; - return function(c) { - var f, l; - f = a[a.length - 1]; - g.hw(f) ? a.pop() : f = null; + }, function(g, d, a) { + g = a(10); + a = a(928); + g.ta.prototype.dU = a.dU; + }, function(g, d, a) { + var b, c, h, k, f; + b = a(102); + c = a(234); + h = a(134); + k = a(135); + f = a(120); + d.eV = function() { + for (var a = [], d = 0; d < arguments.length; d++) a[d - 0] = arguments[d]; + return function(d) { + var g, l; + g = a[a.length - 1]; + f.my(g) ? a.pop() : g = null; l = a.length; - return 1 === l ? k.concat(new d.JU(a[0], f), c) : 1 < l ? k.concat(new b.$t(a, f), c) : k.concat(new h.jC(f), c); + return 1 === l ? k.concat(new c.EY(a[0], g), d) : 1 < l ? k.concat(new b.Vv(a, g), d) : k.concat(new h.cF(g), d); }; }; - }, function(f, c, a) { + }, function(g, d, a) { var b; - b = a(808); - c.nR = function() { - for (var a = [], c = 0; c < arguments.length; c++) a[c - 0] = arguments[c]; - return b.nR.apply(void 0, a)(this); + b = a(930); + d.eV = function() { + for (var a = [], d = 0; d < arguments.length; d++) a[d - 0] = arguments[d]; + return b.eV.apply(void 0, a)(this); }; - }, function(f, c, a) { - f = a(11); - a = a(809); - f.pa.prototype.nR = a.nR; - }, function() {}, function(f, c, a) { - var b, d, h, k; + }, function(g, d, a) { + g = a(10); + a = a(931); + g.ta.prototype.eV = a.eV; + }, function() {}, function(g, d, a) { + var b, c, h, k; b = this && this.__extends || function(a, b) { function c() { this.constructor = a; @@ -94439,46 +99334,46 @@ v7AA.H22 = function() { for (var d in b) b.hasOwnProperty(d) && (a[d] = b[d]); a.prototype = null === b ? Object.create(b) : (c.prototype = b.prototype, new c()); }; - f = a(75); - d = a(74); - c.gI = function(a) { + g = a(78); + c = a(77); + d.pL = function(a) { return function(b) { - return b.af(new h(a)); + return b.Gf(new h(a)); }; }; h = function() { function a(a) { - this.Vna = a; + this.hwa = a; } a.prototype.call = function(a, b) { - return b.subscribe(new k(a, this.Vna)); + return b.subscribe(new k(a, this.hwa)); }; return a; }(); k = function(a) { - function c(b, c) { + function d(b, d) { a.call(this, b); - this.Vna = c; - this.add(d.Oq(this, c)); + this.hwa = d; + this.add(c.Cs(this, d)); } - b(c, a); - c.prototype.Ew = function() { + b(d, a); + d.prototype.Qy = function() { this.complete(); }; - c.prototype.vi = function() {}; - return c; - }(f.So); - }, function(f, c, a) { + d.prototype.bj = function() {}; + return d; + }(g.Aq); + }, function(g, d, a) { var b; - b = a(812); - c.gI = function(a) { - return b.gI(a)(this); + b = a(934); + d.pL = function(a) { + return b.pL(a)(this); }; - }, function(f, c, a) { - f = a(11); - a = a(813); - f.pa.prototype.gI = a.gI; - }, function(f, c) { + }, function(g, d, a) { + g = a(10); + a = a(935); + g.ta.prototype.pL = a.pL; + }, function(g, d) { var a; a = this && this.__extends || function(a, c) { function b() { @@ -94487,7 +99382,7 @@ v7AA.H22 = function() { for (var d in c) c.hasOwnProperty(d) && (a[d] = c[d]); a.prototype = null === c ? Object.create(c) : (b.prototype = c.prototype, new b()); }; - f = function(b) { + g = function(b) { function c() { var a; a = b.call(this, "argument out of range"); @@ -94498,9 +99393,9 @@ v7AA.H22 = function() { a(c, b); return c; }(Error); - c.Rta = f; - }, function(f, c, a) { - var b, d, h, k, g; + d.fDa = g; + }, function(g, d, a) { + var b, c, h, k, f; b = this && this.__extends || function(a, b) { function c() { this.constructor = a; @@ -94508,51 +99403,51 @@ v7AA.H22 = function() { for (var d in b) b.hasOwnProperty(d) && (a[d] = b[d]); a.prototype = null === b ? Object.create(b) : (c.prototype = b.prototype, new c()); }; - f = a(55); - d = a(815); - h = a(129); - c.GB = function(a) { + g = a(50); + c = a(937); + h = a(134); + d.tE = function(a) { return function(b) { - return 0 === a ? new h.jC() : b.af(new k(a)); + return 0 === a ? new h.cF() : b.Gf(new k(a)); }; }; k = function() { function a(a) { this.total = a; - if (0 > this.total) throw new d.Rta(); + if (0 > this.total) throw new c.fDa(); } a.prototype.call = function(a, b) { - return b.subscribe(new g(a, this.total)); + return b.subscribe(new f(a, this.total)); }; return a; }(); - g = function(a) { + f = function(a) { function c(b, c) { a.call(this, b); this.total = c; this.count = 0; } b(c, a); - c.prototype.tg = function(a) { + c.prototype.Tg = function(a) { var b, c; b = this.total; c = ++this.count; c <= b && (this.destination.next(a), c === b && (this.destination.complete(), this.unsubscribe())); }; return c; - }(f.zh); - }, function(f, c, a) { + }(g.Rh); + }, function(g, d, a) { var b; - b = a(816); - c.GB = function(a) { - return b.GB(a)(this); + b = a(938); + d.tE = function(a) { + return b.tE(a)(this); }; - }, function(f, c, a) { - f = a(11); - a = a(817); - f.pa.prototype.GB = a.GB; - }, function(f, c, a) { - var b, d, h; + }, function(g, d, a) { + g = a(10); + a = a(939); + g.ta.prototype.tE = a.tE; + }, function(g, d, a) { + var b, c, h; b = this && this.__extends || function(a, b) { function c() { this.constructor = a; @@ -94560,90 +99455,90 @@ v7AA.H22 = function() { for (var d in b) b.hasOwnProperty(d) && (a[d] = b[d]); a.prototype = null === b ? Object.create(b) : (c.prototype = b.prototype, new c()); }; - f = a(55); - c.QH = function(a) { + g = a(50); + d.WK = function(a) { return function(b) { - return b.af(new d(a)); + return b.Gf(new c(a)); }; }; - d = function() { + c = function() { function a(a) { - this.Ct = a; + this.wv = a; } a.prototype.call = function(a, b) { - return b.subscribe(new h(a, this.Ct)); + return b.subscribe(new h(a, this.wv)); }; return a; }(); h = function(a) { function c(b, c) { a.call(this, b); - this.Ct = c; - this.v5 = !0; + this.wv = c; + this.N$ = !0; this.index = 0; } b(c, a); - c.prototype.tg = function(a) { + c.prototype.Tg = function(a) { var b; b = this.destination; - this.v5 && this.Nbb(a); - this.v5 || b.next(a); + this.N$ && this.lrb(a); + this.N$ || b.next(a); }; - c.prototype.Nbb = function(a) { + c.prototype.lrb = function(a) { try { - this.v5 = !!this.Ct(a, this.index++); - } catch (p) { - this.destination.error(p); + this.N$ = !!this.wv(a, this.index++); + } catch (m) { + this.destination.error(m); } }; return c; - }(f.zh); - }, function(f, c, a) { + }(g.Rh); + }, function(g, d, a) { var b; - b = a(819); - c.QH = function(a) { - return b.QH(a)(this); + b = a(941); + d.WK = function(a) { + return b.WK(a)(this); }; - }, function(f, c, a) { - f = a(11); - a = a(820); - f.pa.prototype.QH = a.QH; - }, function(f, c, a) { + }, function(g, d, a) { + g = a(10); + a = a(942); + g.ta.prototype.WK = a.WK; + }, function(g, d, a) { var b; - b = a(391); - c.Gw = function() { - for (var a = [], c = 0; c < arguments.length; c++) a[c - 0] = arguments[c]; - return b.Gw.apply(void 0, a)(this); + b = a(439); + d.Sy = function() { + for (var a = [], d = 0; d < arguments.length; d++) a[d - 0] = arguments[d]; + return b.Sy.apply(void 0, a)(this); }; - }, function(f, c, a) { - f = a(11); - a = a(822); - f.pa.prototype.Gw = a.Gw; - }, function(f, c, a) { + }, function(g, d, a) { + g = a(10); + a = a(944); + g.ta.prototype.Sy = a.Sy; + }, function(g, d, a) { var b; - b = a(393); - c.HA = function(a, c, f) { - void 0 === f && (f = Number.POSITIVE_INFINITY); - return b.HA(a, c, f)(this); + b = a(441); + d.rD = function(a, d, g) { + void 0 === g && (g = Number.POSITIVE_INFINITY); + return b.rD(a, d, g)(this); }; - }, function(f, c, a) { - f = a(11); - a = a(824); - f.pa.prototype.HA = a.HA; - f.pa.prototype.tF = a.HA; - }, function(f, c, a) { + }, function(g, d, a) { + g = a(10); + a = a(946); + g.ta.prototype.rD = a.rD; + g.ta.prototype.Nr = a.rD; + }, function(g, d, a) { var b; - b = a(224); - c.pt = function(a) { + b = a(233); + d.ev = function(a) { void 0 === a && (a = Number.POSITIVE_INFINITY); - return b.pt(a)(this); + return b.ev(a)(this); }; - }, function(f, c, a) { - f = a(11); - a = a(826); - f.pa.prototype.pt = a.pt; - }, function(f, c, a) { - var b, d, h; + }, function(g, d, a) { + g = a(10); + a = a(948); + g.ta.prototype.ev = a.ev; + }, function(g, d, a) { + var b, c, h; b = this && this.__extends || function(a, b) { function c() { this.constructor = a; @@ -94651,36 +99546,36 @@ v7AA.H22 = function() { for (var d in b) b.hasOwnProperty(d) && (a[d] = b[d]); a.prototype = null === b ? Object.create(b) : (c.prototype = b.prototype, new c()); }; - f = a(55); - c.map = function(a, b) { - return function(c) { + g = a(50); + d.map = function(a, b) { + return function(d) { if ("function" !== typeof a) throw new TypeError("argument is not a function. Are you looking for `mapTo()`?"); - return c.af(new d(a, b)); + return d.Gf(new c(a, b)); }; }; - d = function() { + c = function() { function a(a, b) { - this.zf = a; - this.P5 = b; + this.jg = a; + this.maa = b; } a.prototype.call = function(a, b) { - return b.subscribe(new h(a, this.zf, this.P5)); + return b.subscribe(new h(a, this.jg, this.maa)); }; return a; }(); - c.ahb = d; + d.kxb = c; h = function(a) { function c(b, c, d) { a.call(this, b); - this.zf = c; + this.jg = c; this.count = 0; - this.P5 = d || this; + this.maa = d || this; } b(c, a); - c.prototype.tg = function(a) { + c.prototype.Tg = function(a) { var b; try { - b = this.zf.call(this.P5, a, this.count++); + b = this.jg.call(this.maa, a, this.count++); } catch (r) { this.destination.error(r); return; @@ -94688,18 +99583,18 @@ v7AA.H22 = function() { this.destination.next(b); }; return c; - }(f.zh); - }, function(f, c, a) { + }(g.Rh); + }, function(g, d, a) { var b; - b = a(828); - c.map = function(a, c) { - return b.map(a, c)(this); + b = a(950); + d.map = function(a, d) { + return b.map(a, d)(this); }; - }, function(f, c, a) { - f = a(11); - a = a(829); - f.pa.prototype.map = a.map; - }, function(f, c) { + }, function(g, d, a) { + g = a(10); + a = a(951); + g.ta.prototype.map = a.map; + }, function(g, d) { var a; a = this && this.__extends || function(a, c) { function b() { @@ -94708,7 +99603,7 @@ v7AA.H22 = function() { for (var d in c) c.hasOwnProperty(d) && (a[d] = c[d]); a.prototype = null === c ? Object.create(c) : (b.prototype = c.prototype, new b()); }; - f = function(b) { + g = function(b) { function c() { var a; a = b.call(this, "no elements in sequence"); @@ -94719,9 +99614,9 @@ v7AA.H22 = function() { a(c, b); return c; }(Error); - c.ixa = f; - }, function(f, c, a) { - var b, d, h, k; + d.fHa = g; + }, function(g, d, a) { + var b, c, h, k; b = this && this.__extends || function(a, b) { function c() { this.constructor = a; @@ -94729,82 +99624,82 @@ v7AA.H22 = function() { for (var d in b) b.hasOwnProperty(d) && (a[d] = b[d]); a.prototype = null === b ? Object.create(b) : (c.prototype = b.prototype, new c()); }; - f = a(55); - d = a(831); - c.Sj = function(a, b, c) { + g = a(50); + c = a(953); + d.Qe = function(a, b, c) { return function(d) { - return d.af(new h(a, b, c, d)); + return d.Gf(new h(a, b, c, d)); }; }; h = function() { function a(a, b, c, d) { - this.Ct = a; - this.hj = b; + this.wv = a; + this.Ij = b; this.defaultValue = c; this.source = d; } a.prototype.call = function(a, b) { - return b.subscribe(new k(a, this.Ct, this.hj, this.defaultValue, this.source)); + return b.subscribe(new k(a, this.wv, this.Ij, this.defaultValue, this.source)); }; return a; }(); k = function(a) { - function c(b, c, d, f, g) { + function d(b, c, d, f, g) { a.call(this, b); - this.Ct = c; - this.hj = d; + this.wv = c; + this.Ij = d; this.defaultValue = f; this.source = g; - this.Cm = !1; + this.Vn = !1; this.index = 0; - "undefined" !== typeof f && (this.TO = f, this.Cm = !0); + "undefined" !== typeof f && (this.FS = f, this.Vn = !0); } - b(c, a); - c.prototype.tg = function(a) { + b(d, a); + d.prototype.Tg = function(a) { var b; b = this.index++; - this.Ct ? this.XKa(a, b) : this.hj ? this.ifa(a, b) : (this.TO = a, this.Cm = !0); + this.wv ? this.gWa(a, b) : this.Ij ? this.vla(a, b) : (this.FS = a, this.Vn = !0); }; - c.prototype.XKa = function(a, b) { + d.prototype.gWa = function(a, b) { var c; try { - c = this.Ct(a, b, this.source); - } catch (v) { - this.destination.error(v); + c = this.wv(a, b, this.source); + } catch (x) { + this.destination.error(x); return; } - c && (this.hj ? this.ifa(a, b) : (this.TO = a, this.Cm = !0)); + c && (this.Ij ? this.vla(a, b) : (this.FS = a, this.Vn = !0)); }; - c.prototype.ifa = function(a, b) { + d.prototype.vla = function(a, b) { var c; try { - c = this.hj(a, b); - } catch (v) { - this.destination.error(v); + c = this.Ij(a, b); + } catch (x) { + this.destination.error(x); return; } - this.TO = c; - this.Cm = !0; + this.FS = c; + this.Vn = !0; }; - c.prototype.qf = function() { + d.prototype.wb = function() { var a; a = this.destination; - this.Cm ? (a.next(this.TO), a.complete()) : a.error(new d.ixa()); + this.Vn ? (a.next(this.FS), a.complete()) : a.error(new c.fHa()); }; - return c; - }(f.zh); - }, function(f, c, a) { + return d; + }(g.Rh); + }, function(g, d, a) { var b; - b = a(832); - c.Sj = function(a, c, f) { - return b.Sj(a, c, f)(this); + b = a(954); + d.Qe = function(a, d, g) { + return b.Qe(a, d, g)(this); }; - }, function(f, c, a) { - f = a(11); - a = a(833); - f.pa.prototype.Sj = a.Sj; - }, function(f, c, a) { - var b, d, h, k; + }, function(g, d, a) { + g = a(10); + a = a(955); + g.ta.prototype.Qe = a.Qe; + }, function(g, d, a) { + var b, c, h, k; b = this && this.__extends || function(a, b) { function c() { this.constructor = a; @@ -94812,93 +99707,93 @@ v7AA.H22 = function() { for (var d in b) b.hasOwnProperty(d) && (a[d] = b[d]); a.prototype = null === b ? Object.create(b) : (c.prototype = b.prototype, new c()); }; - d = a(55); - c.Eab = function(a, b, c) { + c = a(50); + d.Zpb = function(a, b, c) { return function(d) { - return d.af(new h(a, b, c)); + return d.Gf(new h(a, b, c)); }; }; h = function() { function a(a, b, c) { - this.f3a = a; + this.ygb = a; this.error = b; this.complete = c; } a.prototype.call = function(a, b) { - return b.subscribe(new k(a, this.f3a, this.error, this.complete)); + return b.subscribe(new k(a, this.ygb, this.error, this.complete)); }; return a; }(); k = function(a) { - function c(b, c, f, g) { + function d(b, d, f, g) { a.call(this, b); - b = new d.zh(c, f, g); - b.kj = !0; + b = new c.Rh(d, f, g); + b.Lj = !0; this.add(b); - this.G4 = b; + this.P9 = b; } - b(c, a); - c.prototype.tg = function(a) { + b(d, a); + d.prototype.Tg = function(a) { var b; - b = this.G4; + b = this.P9; b.next(a); - b.ox ? this.destination.error(b.px) : this.destination.next(a); + b.yz ? this.destination.error(b.zz) : this.destination.next(a); }; - c.prototype.Yb = function(a) { + d.prototype.Rb = function(a) { var b; - b = this.G4; + b = this.P9; b.error(a); - b.ox ? this.destination.error(b.px) : this.destination.error(a); + b.yz ? this.destination.error(b.zz) : this.destination.error(a); }; - c.prototype.qf = function() { + d.prototype.wb = function() { var a; - a = this.G4; + a = this.P9; a.complete(); - a.ox ? this.destination.error(a.px) : this.destination.complete(); + a.yz ? this.destination.error(a.zz) : this.destination.complete(); }; - return c; - }(d.zh); - }, function(f, c, a) { + return d; + }(c.Rh); + }, function(g, d, a) { var b; - b = a(835); - c.wV = function(a, c, f) { - return b.Eab(a, c, f)(this); + b = a(957); + d.uZ = function(a, d, g) { + return b.Zpb(a, d, g)(this); }; - }, function(f, c, a) { - f = a(11); - a = a(836); - f.pa.prototype.eF = a.wV; - f.pa.prototype.wV = a.wV; - }, function(f, c, a) { + }, function(g, d, a) { + g = a(10); + a = a(958); + g.ta.prototype.QH = a.uZ; + g.ta.prototype.uZ = a.uZ; + }, function(g, d, a) { function b() { return function() { function a() { - this.Bj = []; + this.dk = []; } a.prototype.add = function(a) { - this.has(a) || this.Bj.push(a); + this.has(a) || this.dk.push(a); }; a.prototype.has = function(a) { - return -1 !== this.Bj.indexOf(a); + return -1 !== this.dk.indexOf(a); }; Object.defineProperty(a.prototype, "size", { get: function() { - return this.Bj.length; + return this.dk.length; }, enumerable: !0, configurable: !0 }); a.prototype.clear = function() { - this.Bj.length = 0; + this.dk.length = 0; }; return a; }(); } - f = a(76); - c.cqb = b; - c.Set = f.root.Set || b(); - }, function(f, c, a) { - var b, d, h, k, g; + g = a(79); + d.uGb = b; + d.Set = g.root.Set || b(); + }, function(g, d, a) { + var b, c, h, k, f; b = this && this.__extends || function(a, b) { function c() { this.constructor = a; @@ -94906,72 +99801,72 @@ v7AA.H22 = function() { for (var d in b) b.hasOwnProperty(d) && (a[d] = b[d]); a.prototype = null === b ? Object.create(b) : (c.prototype = b.prototype, new c()); }; - f = a(75); - d = a(74); - h = a(838); - c.aN = function(a, b) { + g = a(78); + c = a(77); + h = a(960); + d.GQ = function(a, b) { return function(c) { - return c.af(new k(a, b)); + return c.Gf(new k(a, b)); }; }; k = function() { function a(a, b) { - this.OO = a; - this.OVa = b; + this.BS = a; + this.u7a = b; } a.prototype.call = function(a, b) { - return b.subscribe(new g(a, this.OO, this.OVa)); + return b.subscribe(new f(a, this.BS, this.u7a)); }; return a; }(); - g = function(a) { - function c(b, c, f) { + f = function(a) { + function d(b, d, f) { a.call(this, b); - this.OO = c; + this.BS = d; this.values = new h.Set(); - f && this.add(d.Oq(this, f)); + f && this.add(c.Cs(this, f)); } - b(c, a); - c.prototype.Ew = function() { + b(d, a); + d.prototype.Qy = function() { this.values.clear(); }; - c.prototype.b3 = function(a) { - this.Yb(a); + d.prototype.e8 = function(a) { + this.Rb(a); }; - c.prototype.tg = function(a) { - this.OO ? this.fLa(a) : this.nda(a, a); + d.prototype.Tg = function(a) { + this.BS ? this.sWa(a) : this.pja(a, a); }; - c.prototype.fLa = function(a) { + d.prototype.sWa = function(a) { var b, c; c = this.destination; try { - b = this.OO(a); - } catch (z) { - c.error(z); + b = this.BS(a); + } catch (v) { + c.error(v); return; } - this.nda(b, a); + this.pja(b, a); }; - c.prototype.nda = function(a, b) { + d.prototype.pja = function(a, b) { var c; c = this.values; c.has(a) || (c.add(a), this.destination.next(b)); }; - return c; - }(f.So); - c.Reb = g; - }, function(f, c, a) { + return d; + }(g.Aq); + d.Yub = f; + }, function(g, d, a) { var b; - b = a(839); - c.aN = function(a, c) { - return b.aN(a, c)(this); + b = a(961); + d.GQ = function(a, d) { + return b.GQ(a, d)(this); }; - }, function(f, c, a) { - f = a(11); - a = a(840); - f.pa.prototype.aN = a.aN; - }, function(f, c, a) { - var b, d, h, k, g, m, p; + }, function(g, d, a) { + g = a(10); + a = a(962); + g.ta.prototype.GQ = a.GQ; + }, function(g, d, a) { + var b, c, h, k, f, l, m; b = this && this.__extends || function(a, b) { function c() { this.constructor = a; @@ -94979,105 +99874,105 @@ v7AA.H22 = function() { for (var d in b) b.hasOwnProperty(d) && (a[d] = b[d]); a.prototype = null === b ? Object.create(b) : (c.prototype = b.prototype, new c()); }; - d = a(156); - h = a(392); - f = a(55); - k = a(226); - c.Rc = function(a, b) { - var c; - void 0 === b && (b = d.async); - c = h.cG(a) ? +a - b.now() : Math.abs(a); + c = a(162); + h = a(440); + g = a(50); + k = a(235); + d.od = function(a, b) { + var d; + void 0 === b && (b = c.async); + d = h.cJ(a) ? +a - b.now() : Math.abs(a); return function(a) { - return a.af(new g(c, b)); + return a.Gf(new f(d, b)); }; }; - g = function() { + f = function() { function a(a, b) { - this.Rc = a; - this.ha = b; + this.od = a; + this.ia = b; } a.prototype.call = function(a, b) { - return b.subscribe(new m(a, this.Rc, this.ha)); + return b.subscribe(new l(a, this.od, this.ia)); }; return a; }(); - m = function(a) { + l = function(a) { function c(b, c, d) { a.call(this, b); - this.Rc = c; - this.ha = d; - this.Eq = []; - this.Gia = this.active = !1; + this.od = c; + this.ia = d; + this.pi = []; + this.Zpa = this.active = !1; } b(c, a); - c.Xa = function(a) { - for (var b = a.source, c = b.Eq, d = a.ha, f = a.destination; 0 < c.length && 0 >= c[0].time - d.now();) c.shift().notification.observe(f); - 0 < c.length ? (b = Math.max(0, c[0].time - d.now()), this.lb(a, b)) : b.active = !1; + c.hb = function(a) { + for (var b = a.source, c = b.pi, d = a.ia, f = a.destination; 0 < c.length && 0 >= c[0].time - d.now();) c.shift().notification.observe(f); + 0 < c.length ? (b = Math.max(0, c[0].time - d.now()), this.nb(a, b)) : (this.unsubscribe(), b.active = !1); }; - c.prototype.kKa = function(a) { + c.prototype.pVa = function(a) { this.active = !0; - this.add(a.lb(c.Xa, this.Rc, { + this.add(a.nb(c.hb, this.od, { source: this, destination: this.destination, - ha: a + ia: a })); }; - c.prototype.Jqa = function(a) { + c.prototype.uza = function(a) { var b; - if (!0 !== this.Gia) { - b = this.ha; - a = new p(b.now() + this.Rc, a); - this.Eq.push(a); - !1 === this.active && this.kKa(b); + if (!0 !== this.Zpa) { + b = this.ia; + a = new m(b.now() + this.od, a); + this.pi.push(a); + !1 === this.active && this.pVa(b); } }; - c.prototype.tg = function(a) { - this.Jqa(k.Notification.$Y(a)); + c.prototype.Tg = function(a) { + this.uza(k.Notification.Q1(a)); }; - c.prototype.Yb = function(a) { - this.Gia = !0; - this.Eq = []; + c.prototype.Rb = function(a) { + this.Zpa = !0; + this.pi = []; this.destination.error(a); }; - c.prototype.qf = function() { - this.Jqa(k.Notification.WY()); + c.prototype.wb = function() { + this.uza(k.Notification.M1()); }; return c; - }(f.zh); - p = function() { + }(g.Rh); + m = function() { return function(a, b) { this.time = a; this.notification = b; }; }(); - }, function(f, c, a) { - var b, d; - b = a(156); - d = a(842); - c.Rc = function(a, c) { - void 0 === c && (c = b.async); - return d.Rc(a, c)(this); - }; - }, function(f, c, a) { - f = a(11); - a = a(843); - f.pa.prototype.Rc = a.Rc; - }, function(f, c, a) { + }, function(g, d, a) { + var b, c; + b = a(162); + c = a(964); + d.od = function(a, d) { + void 0 === d && (d = b.async); + return c.od(a, d)(this); + }; + }, function(g, d, a) { + g = a(10); + a = a(965); + g.ta.prototype.od = a.od; + }, function(g, d, a) { var b; - b = a(394); - c.IE = function() { - return b.IE()(this); + b = a(442); + d.rH = function() { + return b.rH()(this); }; - }, function(f, c, a) { - f = a(11); - a = a(845); - f.pa.prototype.IE = a.IE; - }, function(f, c) { - c.c_a = function(a) { + }, function(g, d, a) { + g = a(10); + a = a(967); + g.ta.prototype.rH = a.rH; + }, function(g, d) { + d.xbb = function(a) { return a; }; - }, function(f, c, a) { - var b, d, h; + }, function(g, d, a) { + var b, c, h; b = this && this.__extends || function(a, b) { function c() { this.constructor = a; @@ -95085,47 +99980,47 @@ v7AA.H22 = function() { for (var d in b) b.hasOwnProperty(d) && (a[d] = b[d]); a.prototype = null === b ? Object.create(b) : (c.prototype = b.prototype, new c()); }; - f = a(11); - d = a(225); - h = a(129); + g = a(10); + c = a(234); + h = a(134); a = function(a) { - function c(b, c) { + function d(b, c) { a.call(this); - this.zX = b; - (this.ha = c) || 1 !== b.length || (this.hp = !0, this.value = b[0]); + this.r0 = b; + (this.ia = c) || 1 !== b.length || (this.Oq = !0, this.value = b[0]); } - b(c, a); - c.create = function(a, b) { + b(d, a); + d.create = function(a, b) { var f; f = a.length; - return 0 === f ? new h.jC() : 1 === f ? new d.JU(a[0], b) : new c(a, b); + return 0 === f ? new h.cF() : 1 === f ? new c.EY(a[0], b) : new d(a, b); }; - c.Xa = function(a) { + d.hb = function(a) { var b, c, d; - b = a.zX; + b = a.r0; c = a.index; - d = a.Ce; - d.closed || (c >= a.length ? d.complete() : (d.next(b[c]), a.index = c + 1, this.lb(a))); + d = a.ff; + d.closed || (c >= a.length ? d.complete() : (d.next(b[c]), a.index = c + 1, this.nb(a))); }; - c.prototype.Ve = function(a) { - var b, d, f; - b = this.zX; - d = this.ha; + d.prototype.zf = function(a) { + var b, c, f; + b = this.r0; + c = this.ia; f = b.length; - if (d) return d.lb(c.Xa, 0, { - zX: b, + if (c) return c.nb(d.hb, 0, { + r0: b, index: 0, length: f, - Ce: a + ff: a }); - for (d = 0; d < f && !a.closed; d++) a.next(b[d]); + for (c = 0; c < f && !a.closed; c++) a.next(b[c]); a.complete(); }; - return c; - }(f.pa); - c.Sta = a; - }, function(f, c, a) { - var b, d, h, k, g, m; + return d; + }(g.ta); + d.iDa = a; + }, function(g, d, a) { + var b, c, h, k, f, l; b = this && this.__extends || function(a, b) { function c() { this.constructor = a; @@ -95133,19 +100028,19 @@ v7AA.H22 = function() { for (var d in b) b.hasOwnProperty(d) && (a[d] = b[d]); a.prototype = null === b ? Object.create(b) : (c.prototype = b.prototype, new c()); }; - d = a(76); - f = a(11); - h = a(157); + c = a(79); + g = a(10); + h = a(163); a = function(a) { function c(b, c) { a.call(this); - this.ha = c; + this.ia = c; if (null == b) throw Error("iterator cannot be null."); if ((c = b[h.iterator]) || "string" !== typeof b) if (c || void 0 === b.length) { if (!c) throw new TypeError("object is not iterable"); b = b[h.iterator](); - } else b = new g(b); + } else b = new f(b); else b = new k(b); this.iterator = b; } @@ -95153,25 +100048,25 @@ v7AA.H22 = function() { c.create = function(a, b) { return new c(a, b); }; - c.Xa = function(a) { + c.hb = function(a) { var b, c, d, f; b = a.index; c = a.iterator; - d = a.Ce; - if (a.NF) d.error(a.error); + d = a.ff; + if (a.II) d.error(a.error); else { f = c.next(); - f.done ? d.complete() : (d.next(f.value), a.index = b + 1, d.closed ? "function" === typeof c["return"] && c["return"]() : this.lb(a)); + f.done ? d.complete() : (d.next(f.value), a.index = b + 1, d.closed ? "function" === typeof c["return"] && c["return"]() : this.nb(a)); } }; - c.prototype.Ve = function(a) { + c.prototype.zf = function(a) { var b, d; b = this.iterator; - d = this.ha; - if (d) return d.lb(c.Xa, 0, { + d = this.ia; + if (d) return d.nb(c.hb, 0, { index: 0, iterator: b, - Ce: a + ff: a }); do { d = b.next(); @@ -95186,23 +100081,23 @@ v7AA.H22 = function() { } while (1); }; return c; - }(f.pa); - c.$ya = a; + }(g.ta); + d.cJa = a; k = function() { function a(a, b, c) { void 0 === b && (b = 0); void 0 === c && (c = a.length); - this.St = a; - this.RF = b; - this.u1 = c; + this.Hv = a; + this.QI = b; + this.u6 = c; } a.prototype[h.iterator] = function() { return this; }; a.prototype.next = function() { - return this.RF < this.u1 ? { + return this.QI < this.u6 ? { done: !1, - value: this.St.charAt(this.RF++) + value: this.Hv.charAt(this.QI++) } : { done: !0, value: void 0 @@ -95210,28 +100105,28 @@ v7AA.H22 = function() { }; return a; }(); - g = function() { - function a(a, b, c) { + f = function() { + function a(a, b, d) { var f; void 0 === b && (b = 0); - if (void 0 === c) - if (c = +a.length, isNaN(c)) c = 0; - else if (0 !== c && "number" === typeof c && d.root.isFinite(c)) { - f = +c; - c = (0 === f || isNaN(f) ? f : 0 > f ? -1 : 1) * Math.floor(Math.abs(c)); - c = 0 >= c ? 0 : c > m ? m : c; + if (void 0 === d) + if (d = +a.length, isNaN(d)) d = 0; + else if (0 !== d && "number" === typeof d && c.root.isFinite(d)) { + f = +d; + d = (0 === f || isNaN(f) ? f : 0 > f ? -1 : 1) * Math.floor(Math.abs(d)); + d = 0 >= d ? 0 : d > l ? l : d; } - this.zMa = a; - this.RF = b; - this.u1 = c; + this.KXa = a; + this.QI = b; + this.u6 = d; } a.prototype[h.iterator] = function() { return this; }; a.prototype.next = function() { - return this.RF < this.u1 ? { + return this.QI < this.u6 ? { done: !1, - value: this.zMa[this.RF++] + value: this.KXa[this.QI++] } : { done: !0, value: void 0 @@ -95239,32 +100134,32 @@ v7AA.H22 = function() { }; return a; }(); - m = Math.pow(2, 53) - 1; - }, function(f, c, a) { + l = Math.pow(2, 53) - 1; + }, function(g, d, a) { var b; - b = a(130); - f = a(130); - c.uPa = f.concat; - c.concat = function() { - for (var a = [], c = 0; c < arguments.length; c++) a[c - 0] = arguments[c]; + b = a(135); + g = a(135); + d.X_a = g.concat; + d.concat = function() { + for (var a = [], d = 0; d < arguments.length; d++) a[d - 0] = arguments[d]; return function(c) { - return c.af.call(b.concat.apply(void 0, [c].concat(a))); + return c.Gf.call(b.concat.apply(void 0, [c].concat(a))); }; }; - }, function(f, c, a) { + }, function(g, d, a) { var b; - b = a(850); - f = a(130); - c.uPa = f.concat; - c.concat = function() { - for (var a = [], c = 0; c < arguments.length; c++) a[c - 0] = arguments[c]; + b = a(972); + g = a(135); + d.X_a = g.concat; + d.concat = function() { + for (var a = [], d = 0; d < arguments.length; d++) a[d - 0] = arguments[d]; return b.concat.apply(void 0, a)(this); }; - }, function(f, c, a) { - f = a(11); - a = a(851); - f.pa.prototype.concat = a.concat; - }, function(f, c, a) { + }, function(g, d, a) { + g = a(10); + a = a(973); + g.ta.prototype.concat = a.concat; + }, function(g, d, a) { var b; b = this && this.__extends || function(a, b) { function c() { @@ -95273,31 +100168,31 @@ v7AA.H22 = function() { for (var d in b) b.hasOwnProperty(d) && (a[d] = b[d]); a.prototype = null === b ? Object.create(b) : (c.prototype = b.prototype, new c()); }; - f = function(a) { + g = function(a) { function c(b, c, d) { a.call(this); this.parent = b; - this.D4a = c; - this.C4a = d; + this.Zhb = c; + this.Yhb = d; this.index = 0; } b(c, a); - c.prototype.tg = function(a) { - this.parent.Ew(this.D4a, a, this.C4a, this.index++, this); + c.prototype.Tg = function(a) { + this.parent.Qy(this.Zhb, a, this.Yhb, this.index++, this); }; - c.prototype.Yb = function(a) { - this.parent.b3(a, this); + c.prototype.Rb = function(a) { + this.parent.e8(a, this); this.unsubscribe(); }; - c.prototype.qf = function() { - this.parent.vi(this); + c.prototype.wb = function() { + this.parent.bj(this); this.unsubscribe(); }; return c; - }(a(55).zh); - c.z9 = f; - }, function(f, c, a) { - var b, d, h, k; + }(a(50).Rh); + d.kea = g; + }, function(g, d, a) { + var b, c, h, k; b = this && this.__extends || function(a, b) { function c() { this.constructor = a; @@ -95305,61 +100200,61 @@ v7AA.H22 = function() { for (var d in b) b.hasOwnProperty(d) && (a[d] = b[d]); a.prototype = null === b ? Object.create(b) : (c.prototype = b.prototype, new c()); }; - f = a(75); - d = a(74); - c.LOa = function(a) { + g = a(78); + c = a(77); + d.WZa = function(a) { return function(b) { var c; c = new h(a); - b = b.af(c); - return c.nY = b; + b = b.Gf(c); + return c.c1 = b; }; }; h = function() { function a(a) { - this.Mt = a; + this.MK = a; } a.prototype.call = function(a, b) { - return b.subscribe(new k(a, this.Mt, this.nY)); + return b.subscribe(new k(a, this.MK, this.c1)); }; return a; }(); k = function(a) { - function c(b, c, d) { + function d(b, c, d) { a.call(this, b); - this.Mt = c; - this.nY = d; + this.MK = c; + this.c1 = d; } - b(c, a); - c.prototype.error = function(b) { - var c; - if (!this.Ze) { - c = void 0; + b(d, a); + d.prototype.error = function(b) { + var d; + if (!this.Ff) { + d = void 0; try { - c = this.Mt(b, this.nY); + d = this.MK(b, this.c1); } catch (u) { a.prototype.error.call(this, u); return; } - this.$Ka(); - this.add(d.Oq(this, c)); + this.jWa(); + this.add(c.Cs(this, d)); } }; - return c; - }(f.So); - }, function(f, c, a) { + return d; + }(g.Aq); + }, function(g, d, a) { var b; - b = a(854); - c.mV = function(a) { - return b.LOa(a)(this); + b = a(976); + d.iZ = function(a) { + return b.WZa(a)(this); }; - }, function(f, c, a) { - f = a(11); - a = a(855); - f.pa.prototype["catch"] = a.mV; - f.pa.prototype.mV = a.mV; - }, function(f, c, a) { - var b, d; + }, function(g, d, a) { + g = a(10); + a = a(977); + g.ta.prototype["catch"] = a.iZ; + g.ta.prototype.iZ = a.iZ; + }, function(g, d, a) { + var b, c; b = this && this.__extends || function(a, b) { function c() { this.constructor = a; @@ -95367,73 +100262,73 @@ v7AA.H22 = function() { for (var d in b) b.hasOwnProperty(d) && (a[d] = b[d]); a.prototype = null === b ? Object.create(b) : (c.prototype = b.prototype, new c()); }; - f = a(228); + g = a(237); a = function(a) { - function c(b, c) { + function d(b, d) { var f; f = this; - void 0 === b && (b = d); - void 0 === c && (c = Number.POSITIVE_INFINITY); + void 0 === b && (b = c); + void 0 === d && (d = Number.POSITIVE_INFINITY); a.call(this, b, function() { return f.frame; }); - this.T1a = c; + this.Teb = d; this.frame = 0; this.index = -1; } - b(c, a); - c.prototype.flush = function() { - for (var a = this.Ni, b = this.T1a, c, d; - (d = a.shift()) && (this.frame = d.Rc) <= b && !(c = d.Pf(d.state, d.Rc));); + b(d, a); + d.prototype.flush = function() { + for (var a = this.xj, b = this.Teb, c, d; + (d = a.shift()) && (this.frame = d.od) <= b && !(c = d.Cg(d.state, d.od));); if (c) { for (; d = a.shift();) d.unsubscribe(); throw c; } }; - c.PN = 10; - return c; - }(a(227).fS); - c.VFa = a; - d = function(a) { + d.L3 = 10; + return d; + }(a(236).eW); + d.zQa = a; + c = function(a) { function c(b, c, d) { void 0 === d && (d = b.index += 1); a.call(this, b, c); - this.ha = b; - this.HI = c; + this.ia = b; + this.TL = c; this.index = d; this.active = !0; this.index = b.index = d; } b(c, a); - c.prototype.lb = function(b, d) { + c.prototype.nb = function(b, d) { var f; void 0 === d && (d = 0); - if (!this.id) return a.prototype.lb.call(this, b, d); + if (!this.id) return a.prototype.nb.call(this, b, d); this.active = !1; - f = new c(this.ha, this.HI); + f = new c(this.ia, this.TL); this.add(f); - return f.lb(b, d); + return f.nb(b, d); }; - c.prototype.pQ = function(a, b, d) { + c.prototype.pU = function(a, b, d) { void 0 === d && (d = 0); - this.Rc = a.frame + d; - a = a.Ni; + this.od = a.frame + d; + a = a.xj; a.push(this); - a.sort(c.n$a); + a.sort(c.Kob); return !0; }; - c.prototype.iQ = function() {}; - c.prototype.SK = function(b, c) { - if (!0 === this.active) return a.prototype.SK.call(this, b, c); + c.prototype.kU = function() {}; + c.prototype.cO = function(b, c) { + if (!0 === this.active) return a.prototype.cO.call(this, b, c); }; - c.n$a = function(a, b) { - return a.Rc === b.Rc ? a.index === b.index ? 0 : a.index > b.index ? 1 : -1 : a.Rc > b.Rc ? 1 : -1; + c.Kob = function(a, b) { + return a.od === b.od ? a.index === b.index ? 0 : a.index > b.index ? 1 : -1 : a.od > b.od ? 1 : -1; }; return c; - }(f.eS); - c.UFa = d; - }, function(f, c, a) { - var b, d, h; + }(g.dW); + d.yQa = c; + }, function(g, d, a) { + var b, c, h; b = this && this.__extends || function(a, b) { function c() { this.constructor = a; @@ -95441,42 +100336,42 @@ v7AA.H22 = function() { for (var d in b) b.hasOwnProperty(d) && (a[d] = b[d]); a.prototype = null === b ? Object.create(b) : (c.prototype = b.prototype, new c()); }; - d = a(158); - h = a(70); - f = a(403); - a = a(401); - d = function(a) { + c = a(164); + h = a(71); + g = a(451); + a = a(449); + c = function(a) { function c(b, c) { a.call(this); - this.ld = b; - this.XH = []; - this.ha = c; + this.Pd = b; + this.dL = []; + this.ia = c; } b(c, a); - c.prototype.Ve = function(b) { + c.prototype.zf = function(b) { var c, d; c = this; - d = c.Bma(); - b.add(new h.tj(function() { - c.Cma(d); + d = c.uua(); + b.add(new h.Uj(function() { + c.vua(d); })); - return a.prototype.Ve.call(this, b); + return a.prototype.zf.call(this, b); }; - c.prototype.V9a = function() { - for (var a = this, b = a.ld.length, c = 0; c < b; c++)(function() { + c.prototype.kob = function() { + for (var a = this, b = a.Pd.length, c = 0; c < b; c++)(function() { var b; - b = a.ld[c]; - a.ha.lb(function() { + b = a.Pd[c]; + a.ia.nb(function() { b.notification.observe(a); }, b.frame); }()); }; return c; - }(d.yh); - c.Ffb = d; - a.Pfa(d, [f.yba]); - }, function(f, c, a) { - var b, d, h; + }(c.Ei); + d.owb = c; + a.rma(c, [g.zha]); + }, function(g, d, a) { + var b, c, h; b = this && this.__extends || function(a, b) { function c() { this.constructor = a; @@ -95484,45 +100379,45 @@ v7AA.H22 = function() { for (var d in b) b.hasOwnProperty(d) && (a[d] = b[d]); a.prototype = null === b ? Object.create(b) : (c.prototype = b.prototype, new c()); }; - d = a(11); - h = a(70); - f = a(403); - a = a(401); - d = function(a) { + c = a(10); + h = a(71); + g = a(451); + a = a(449); + c = function(a) { function c(b, c) { a.call(this, function(a) { var b, c; b = this; - c = b.Bma(); - a.add(new h.tj(function() { - b.Cma(c); + c = b.uua(); + a.add(new h.Uj(function() { + b.vua(c); })); - b.y8a(a); + b.Jmb(a); return a; }); - this.ld = b; - this.XH = []; - this.ha = c; + this.Pd = b; + this.dL = []; + this.ia = c; } b(c, a); - c.prototype.y8a = function(a) { + c.prototype.Jmb = function(a) { var d; - for (var b = this.ld.length, c = 0; c < b; c++) { - d = this.ld[c]; - a.add(this.ha.lb(function(a) { - a.message.notification.observe(a.Ce); + for (var b = this.Pd.length, c = 0; c < b; c++) { + d = this.Pd[c]; + a.add(this.ia.nb(function(a) { + a.message.notification.observe(a.ff); }, d.frame, { message: d, - Ce: a + ff: a })); } }; return c; - }(d.pa); - c.pva = d; - a.Pfa(d, [f.yba]); - }, function(f, c, a) { - var b, d, h, k, g; + }(c.ta); + d.REa = c; + a.rma(c, [g.zha]); + }, function(g, d, a) { + var b, c, h, k, f; b = this && this.__extends || function(a, b) { function c() { this.constructor = a; @@ -95530,41 +100425,36 @@ v7AA.H22 = function() { for (var d in b) b.hasOwnProperty(d) && (a[d] = b[d]); a.prototype = null === b ? Object.create(b) : (c.prototype = b.prototype, new c()); }; - a(11); - d = a(226); - h = a(859); - a(858); - k = a(402); - g = a(857); - f = function(a) { - function c(b) { - a.call(this, g.UFa, 750); - this.KMa = b; - this.SZa = []; - this.MVa = []; + a(10); + c = a(235); + h = a(981); + a(980); + k = a(450); + f = a(979); + g = function(a) { + function d(b) { + a.call(this, f.yQa, 750); + this.UXa = b; + this.mbb = []; + this.s7a = []; } - b(c, a); - c.prototype.bSa = function(a) { - a = a.indexOf("|"); - if (-1 === a) throw Error('marble diagram for time should have a completion marker "|"'); - return a * c.PN; - }; - c.prototype.flush = function() { + b(d, a); + d.prototype.flush = function() { var c; - for (var b = this.SZa; 0 < b.length;) b.shift().V9a(); + for (var b = this.mbb; 0 < b.length;) b.shift().kob(); a.prototype.flush.call(this); - for (b = this.MVa.filter(function(a) { + for (b = this.s7a.filter(function(a) { return a.ready; }); 0 < b.length;) { c = b.shift(); - this.KMa(c.jv, c.Kl); + this.UXa(c.sx, c.Jm); } }; - c.Sqb = function(a) { + d.bHb = function(a) { var h, l; - if ("string" !== typeof a) return new k.bD(Number.POSITIVE_INFINITY); + if ("string" !== typeof a) return new k.NF(Number.POSITIVE_INFINITY); for (var b = a.length, c = -1, d = Number.POSITIVE_INFINITY, f = Number.POSITIVE_INFINITY, g = 0; g < b; g++) { - h = g * this.PN; + h = g * this.L3; l = a[g]; switch (l) { case "-": @@ -95588,402 +100478,1032 @@ v7AA.H22 = function() { throw Error("there can only be '^' and '!' markers in a subscription marble diagram. Found instead '" + l + "'."); } } - return 0 > f ? new k.bD(d) : new k.bD(d, f); + return 0 > f ? new k.NF(d) : new k.NF(d, f); }; - c.Rqb = function(a, b, c, f) { - var q, r, u; + d.aHb = function(a, b, d, f) { + var q, r, t; void 0 === f && (f = !1); if (-1 !== a.indexOf("!")) throw Error('conventional marble diagrams cannot have the unsubscription marker "!"'); - for (var g = a.length, k = [], l = a.indexOf("^"), l = -1 === l ? 0 : l * -this.PN, m = "object" !== typeof b ? function(a) { + for (var g = a.length, k = [], l = a.indexOf("^"), l = -1 === l ? 0 : l * -this.L3, m = "object" !== typeof b ? function(a) { return a; } : function(a) { - return f && b[a] instanceof h.pva ? b[a].ld : b[a]; - }, n = -1, p = 0; p < g; p++) { - q = p * this.PN + l; + return f && b[a] instanceof h.REa ? b[a].Pd : b[a]; + }, p = -1, n = 0; n < g; n++) { + q = n * this.L3 + l; r = void 0; - u = a[p]; - switch (u) { + t = a[n]; + switch (t) { case "-": case " ": break; case "(": - n = q; + p = q; break; case ")": - n = -1; + p = -1; break; case "|": - r = d.Notification.WY(); + r = c.Notification.M1(); break; case "^": break; case "#": - r = d.Notification.tha(c || "error"); + r = c.Notification.koa(d || "error"); break; default: - r = d.Notification.$Y(m(u)); + r = c.Notification.Q1(m(t)); } r && k.push({ - frame: -1 < n ? n : q, + frame: -1 < p ? p : q, notification: r }); } - return k; - }; - return c; - }(g.VFa); - c.Hba = f; - }, function(f, c, a) { - var b, d, h; - b = this && this.__extends || function(a, b) { - function c() { - this.constructor = a; - } - for (var d in b) b.hasOwnProperty(d) && (a[d] = b[d]); - a.prototype = null === b ? Object.create(b) : (c.prototype = b.prototype, new c()); - }; - f = a(55); - c.jQ = function() { - return function(a) { - return a.af(new d(a)); - }; - }; - d = function() { - function a(a) { - this.Hk = a; + return k; + }; + return d; + }(f.zQa); + d.Jha = g; + }, function(g, d, a) { + var b, c, h; + b = this && this.__extends || function(a, b) { + function c() { + this.constructor = a; + } + for (var d in b) b.hasOwnProperty(d) && (a[d] = b[d]); + a.prototype = null === b ? Object.create(b) : (c.prototype = b.prototype, new c()); + }; + g = a(50); + d.lU = function() { + return function(a) { + return a.Gf(new c(a)); + }; + }; + c = function() { + function a(a) { + this.sl = a; + } + a.prototype.call = function(a, b) { + var c; + c = this.sl; + c.sm++; + a = new h(a, c); + b = b.subscribe(a); + a.closed || (a.In = c.connect()); + return b; + }; + return a; + }(); + h = function(a) { + function c(b, c) { + a.call(this, b); + this.sl = c; + } + b(c, a); + c.prototype.ar = function() { + var a, b; + a = this.sl; + if (a) { + this.sl = null; + b = a.sm; + 0 >= b ? this.In = null : (a.sm = b - 1, 1 < b ? this.In = null : (b = this.In, a = a.ut, this.In = null, !a || b && a !== b || a.unsubscribe())); + } else this.In = null; + }; + return c; + }(g.Rh); + }, function(g, d) { + g = function() { + function a(b, c) { + void 0 === c && (c = a.now); + this.$Oa = b; + this.now = c; + } + a.prototype.nb = function(a, c, d) { + void 0 === c && (c = 0); + return new this.$Oa(this, a).nb(d, c); + }; + a.now = Date.now ? Date.now : function() { + return +new Date(); + }; + return a; + }(); + d.ZOa = g; + }, function(g, d, a) { + var b; + b = this && this.__extends || function(a, b) { + function c() { + this.constructor = a; + } + for (var d in b) b.hasOwnProperty(d) && (a[d] = b[d]); + a.prototype = null === b ? Object.create(b) : (c.prototype = b.prototype, new c()); + }; + g = function(a) { + function c() { + a.apply(this, arguments); + } + b(c, a); + return c; + }(a(236).eW); + d.gOa = g; + }, function(g, d, a) { + var b; + b = this && this.__extends || function(a, b) { + function c() { + this.constructor = a; + } + for (var d in b) b.hasOwnProperty(d) && (a[d] = b[d]); + a.prototype = null === b ? Object.create(b) : (c.prototype = b.prototype, new c()); + }; + g = function(a) { + function c() { + a.call(this); + } + b(c, a); + c.prototype.nb = function() { + return this; + }; + return c; + }(a(71).Uj); + d.ZCa = g; + }, function(g, d, a) { + var b; + b = this && this.__extends || function(a, b) { + function c() { + this.constructor = a; + } + for (var d in b) b.hasOwnProperty(d) && (a[d] = b[d]); + a.prototype = null === b ? Object.create(b) : (c.prototype = b.prototype, new c()); + }; + g = function(a) { + function c(b, c) { + a.call(this, b, c); + this.ia = b; + this.TL = c; + } + b(c, a); + c.prototype.nb = function(b, c) { + void 0 === c && (c = 0); + if (0 < c) return a.prototype.nb.call(this, b, c); + this.od = c; + this.state = b; + this.ia.flush(this); + return this; + }; + c.prototype.Cg = function(b, c) { + return 0 < c || this.closed ? a.prototype.Cg.call(this, b, c) : this.cO(b, c); + }; + c.prototype.pU = function(b, c, d) { + void 0 === d && (d = 0); + return null !== d && 0 < d || null === d && 0 < this.od ? a.prototype.pU.call(this, b, c, d) : b.flush(this); + }; + return c; + }(a(237).dW); + d.fOa = g; + }, function(g, d, a) { + g = a(987); + a = a(985); + d.pi = new a.gOa(g.fOa); + }, function(g, d) { + d.Egb = function() {}; + }, function(g, d, a) { + var c; + + function b(a) { + return a ? 1 === a.length ? a[0] : function(b) { + return a.reduce(function(a, b) { + return b(a); + }, b); + } : c.Egb; + } + c = a(989); + d.Uib = function() { + for (var a = [], c = 0; c < arguments.length; c++) a[c - 0] = arguments[c]; + return b(a); + }; + d.Vib = b; + }, function(g, d, a) { + var b, c, h; + b = a(50); + c = a(239); + h = a(240); + d.Fqb = function(a, d, g) { + if (a) { + if (a instanceof b.Rh) return a; + if (a[c.rz]) return a[c.rz](); + } + return a || d || g ? new b.Rh(a, d, g) : new b.Rh(h.empty); + }; + }, function(g, d) { + var a; + a = this && this.__extends || function(a, c) { + function b() { + this.constructor = a; + } + for (var d in c) c.hasOwnProperty(d) && (a[d] = c[d]); + a.prototype = null === c ? Object.create(c) : (b.prototype = c.prototype, new b()); + }; + g = function(b) { + function c(a) { + b.call(this); + this.eI = a; + a = Error.call(this, a ? a.length + " errors occurred during unsubscription:\n " + a.map(function(a, b) { + return b + 1 + ") " + a.toString(); + }).join("\n ") : ""); + this.name = a.name = "UnsubscriptionError"; + this.stack = a.stack; + this.message = a.message; + } + a(c, b); + return c; + }(Error); + d.sN = g; + }, function(g, d, a) { + var c, h; + + function b() { + try { + return h.apply(this, arguments); + } catch (k) { + return c.Eu.e = k, c.Eu; + } + } + c = a(457); + d.ABa = function(a) { + h = a; + return b; + }; + }, function(g, d, a) { + var c, h, k, f, l, m, n, q, t, v, y, w, D, z, E; + + function b(a, b, c, d, f, g) { + a = E.XV.call(this, a, b, c, d, f) || this; + a.Hj = g; + a.log = d.lb("AccountManager"); + a.hD = new k.LF(1); + return a; + } + Object.defineProperty(d, "__esModule", { + value: !0 + }); + g = a(0); + h = a(1); + k = a(87); + f = a(101); + l = a(66); + m = a(20); + n = a(7); + q = a(45); + t = a(2); + v = a(4); + y = a(53); + w = a(437); + D = a(893); + z = a(892); + E = a(890); + ia(b, E.XV); + b.prototype.Ac = function() { + var a, b; + a = this; + b = this.config(); + if (!b || void 0 === b.Hm) return Promise.reject(new q.Ub(t.I.QM, t.H.KCa)); + this.ah || (this.reset(), this.ah = new Promise(function(b, c) { + a.tf.create().then(function(b) { + a.storage = b; + return a.load(); + }).then(function() { + a.hD.next(a.profile.vh); + b(); + })["catch"](function(b) { + a.ah = void 0; + c(b); + }); + })); + return this.ah; + }; + b.prototype.uy = function(a, b) { + var c; + c = this; + if (this.Dx) return Promise.reject(new q.Ub(t.I.rF, t.H.kba)); + this.Dx = !0; + this.log.info("Logging in account", { + authType: a ? "Email/Password" : "Cookies" + }); + a && this.reset(!0); + return new Promise(function(d, f) { + c.Hj.ping(c.profile, void 0 === a ? !0 : { + Sx: a, + password: b + }).then(function() { + return c.Hj.uy(c.profile, void 0); + }).then(function(a) { + c.jmb(a); + return c.save(); + }).then(function() { + c.Dx = !1; + c.hD.next(c.profile.vh); + d(c.profile); + })["catch"](function(a) { + c.Dx = !1; + c.log.error("Unable to login user", a); + c.reset(!0); + f(E.XV.tL(t.I.rF, a)); + }); + }); + }; + b.prototype.peb = function() { + this.log.info("logout"); + this.profile = this.Ix(this.fQ()); + this.profiles = {}; + this.$i.rf.clearUserIdTokens(); + this.hD.next(this.profile.vh); + return this.save(); + }; + b.prototype.Upb = function(a) { + var b; + b = this; + if (this.Dx) return Promise.reject(new q.Ub(t.I.lN, t.H.kba)); + this.Dx = !0; + this.log.info("Switching profiles", { + old: this.profile.id, + "new": a + }); + return this.Hj.ping(this.profile, a).then(function() { + var c; + c = b.Ix(b.profile.vh, { + id: a + }); + return b.Hj.uy(c, void 0); + }).then(function(c) { + b.Dx = !1; + if (c.Yt != b.profile.vh.id) throw b.hD.next(b.profile.vh), new q.Ub(t.I.lN, t.H.ACa, void 0, void 0, void 0, "The incoming server account GUID does not match the current account GUID"); + (c = b.profiles[c.eh]) ? (b.profile = c, b.v9(b.profile)) : (b.Wla(b.profile), b.profile = b.Ix(b.profile.vh, { + Yt: b.profile.vh.id, + eh: a, + Xi: b.profile.vh.Xi + })); + return b.save(); + }).then(function() { + return b.profile; + })["catch"](function(a) { + b.Dx = !1; + b.log.error("Unable to switch profiles", a); + b.reset(!0); + b.save(); + throw c.tL(t.I.lN, a); + }); + }; + b.prototype.D4 = function() { + var a; + a = this; + return Object.keys(this.profiles).map(function(b) { + return a.profiles[b]; + }); + }; + b.prototype.J2a = function() { + return k.ta.from(this.hD); + }; + b.prototype.wS = function() { + return "windows_app" === this.platform.x2 ? k.ta.from(this.hD).map(function(a) { + return !(a.Xi || "browser" === a.id); + }) : k.ta.of(!0); + }; + b.prototype.jmb = function(a) { + var b, c; + b = this; + this.profile && a.eh && a.eh !== this.profile.id && this.$i.rf.rekeyUserIdToken(this.profile.id, a.eh); + this.profile.vh.id !== a.Yt && this.reset(); + c = this.Nu(a.eh); + c ? (this.profile = c, this.v9(c)) : this.profile.id !== a.eh && (this.profile = this.Ix(this.fQ(a), a)); + (a = Object.keys(this.profiles).filter(function(a) { + return b.profiles[a].icb(); + }).pop()) && this.v9(this.profiles[a]); + }; + b.prototype.Ix = function(a, b) { + if (b && void 0 !== b.Yt) return new z.Cga(this.config, a, b.eh, v.rb(0), !1); + a = new z.Cga(this.config, a); + b && a.N3(b); + return a; + }; + b.prototype.fQ = function(a) { + var b; + if (a && void 0 !== a.Yt) return new D.xba(a.Yt, a.Xi); + b = new D.xba(); + a && b.N3(a); + return b; + }; + b.prototype.Taa = function() { + return Promise.resolve(!0); + }; + a = c = b; + a = c = g.__decorate([h.N(), g.__param(0, h.l(l.pn)), g.__param(1, h.l(f.uw)), g.__param(2, h.l(m.je)), g.__param(3, h.l(n.sb)), g.__param(4, h.l(y.Xl)), g.__param(5, h.l(w.hea))], a); + d.KNa = a; + }, function(g, d, a) { + var b, c; + Object.defineProperty(d, "__esModule", { + value: !0 + }); + g = a(1); + b = a(65); + c = a(994); + d.vh = new g.Vb(function(a) { + a(b.yba).to(c.KNa).$(); + }); + }, function(g, d, a) { + var c, h, k, f, l; + + function b(a, b) { + return h.Yd.call(this, a, void 0 === b ? "EmeConfigImpl" : b) || this; + } + Object.defineProperty(d, "__esModule", { + value: !0 + }); + g = a(0); + c = a(1); + h = a(38); + k = a(26); + f = a(4); + a = a(35); + ia(b, h.Yd); + na.Object.defineProperties(b.prototype, { + lS: { + configurable: !0, + enumerable: !0, + get: function() { + return !1; + } + }, + Kh: { + configurable: !0, + enumerable: !0, + get: function() { + return !1; + } + }, + $u: { + configurable: !0, + enumerable: !0, + get: function() { + return f.Sf; + } + }, + x8: { + configurable: !0, + enumerable: !0, + get: function() { + return f.hh(10); + } + }, + y5: { + configurable: !0, + enumerable: !0, + get: function() { + return f.rb(2E3); + } + }, + X9: { + configurable: !0, + enumerable: !0, + get: function() { + return f.rb(1E3); + } + }, + Tib: { + configurable: !0, + enumerable: !0, + get: function() { + return f.rb(2500); + } + }, + VH: { + configurable: !0, + enumerable: !0, + get: function() { + return "unsentDrmData"; + } + }, + oI: { + configurable: !0, + enumerable: !0, + get: function() { + return !1; + } + }, + iL: { + configurable: !0, + enumerable: !0, + get: function() { + return !1; + } + }, + Kl: { + configurable: !0, + enumerable: !0, + get: function() { + return !0; + } + }, + kma: { + configurable: !0, + enumerable: !0, + get: function() { + return f.hh(30); + } + }, + lma: { + configurable: !0, + enumerable: !0, + get: function() { + return f.hh(30); + } + }, + nma: { + configurable: !0, + enumerable: !0, + get: function() { + return f.hh(30); + } + }, + mma: { + configurable: !0, + enumerable: !0, + get: function() { + return f.hh(30); + } + }, + k0: { + configurable: !0, + enumerable: !0, + get: function() { + return f.hh(30); + } + }, + isb: { + configurable: !0, + enumerable: !0, + get: function() { + return !1; + } + } + }); + l = b; + g.__decorate([a.config(a.le, "initializeKeySystemAtStartup")], l.prototype, "lS", null); + g.__decorate([a.config(a.le, "secureStopEnabled")], l.prototype, "Kh", null); + g.__decorate([a.config(a.Fg, "licenseRenewalRequestDelay")], l.prototype, "$u", null); + g.__decorate([a.config(a.Fg, "persistedReleaseDelay")], l.prototype, "x8", null); + g.__decorate([a.config(a.Fg, "secureStopKeyMessageTimeoutMilliseconds")], l.prototype, "y5", null); + g.__decorate([a.config(a.Fg, "secureStopKeyAddedTimeoutMilliseconds")], l.prototype, "X9", null); + g.__decorate([a.config(a.Fg, "secureStopPersistedKeyMessageTimeoutMilliseconds")], l.prototype, "Tib", null); + g.__decorate([a.config(a.string, "drmPersistKey")], l.prototype, "VH", null); + g.__decorate([a.config(a.le, "forceLimitedDurationLicense")], l.prototype, "oI", null); + g.__decorate([a.config(a.le, "supportsLimitedDurationLicense")], l.prototype, "iL", null); + g.__decorate([a.config(a.le, "prepareCadmium")], l.prototype, "Kl", null); + g.__decorate([a.config(a.Fg, "apiCloseTimeout")], l.prototype, "kma", null); + g.__decorate([a.config(a.Fg, "apiCreateMediaKeysTimeout")], l.prototype, "lma", null); + g.__decorate([a.config(a.Fg, "apiSetServerCertificateTimeout")], l.prototype, "nma", null); + g.__decorate([a.config(a.Fg, "apiGenerateRequestTimeout")], l.prototype, "mma", null); + g.__decorate([a.config(a.Fg, "apiUpdateTimeout")], l.prototype, "k0", null); + g.__decorate([a.config(a.le, "usesArmor")], l.prototype, "isb", null); + l = g.__decorate([c.N(), g.__param(0, c.l(k.Fi)), g.__param(1, c.l(k.Tz)), g.__param(1, c.optional())], l); + d.Oba = l; + }, function(g, d, a) { + var c, h, k, f; + + function b(a, b) { + return f.Oba.call(this, a, void 0 === b ? "ChromeEmeConfig" : b) || this; + } + Object.defineProperty(d, "__esModule", { + value: !0 + }); + g = a(0); + c = a(1); + h = a(26); + k = a(35); + f = a(996); + ia(b, f.Oba); + na.Object.defineProperties(b.prototype, { + lS: { + configurable: !0, + enumerable: !0, + get: function() { + return !0; + } + }, + iL: { + configurable: !0, + enumerable: !0, + get: function() { + return !0; + } } - a.prototype.call = function(a, b) { - var c; - c = this.Hk; - c.Tr++; - a = new h(a, c); - b = b.subscribe(a); - a.closed || (a.wm = c.connect()); - return b; - }; + }); + a = b; + g.__decorate([k.config(k.le, "initializeKeySystemAtStartup")], a.prototype, "lS", null); + g.__decorate([k.config(k.le, "supportsLimitedDurationLicense")], a.prototype, "iL", null); + a = g.__decorate([c.N(), g.__param(0, c.l(h.Fi)), g.__param(1, c.l(h.Tz)), g.__param(1, c.optional())], a); + d.aHa = a; + }, function(g, d, a) { + var c, h, k, f, l, m, n; + + function b(a, b, c, d) { + a = f.Yd.call(this, a, void 0 === d ? "FtlProbeConfigImpl" : d) || this; + a.mf = b; + a.Ma = c; return a; - }(); - h = function(a) { - function c(b, c) { - a.call(this, b); - this.Hk = c; - } - b(c, a); - c.prototype.rp = function() { - var a, b; - a = this.Hk; - if (a) { - this.Hk = null; - b = a.Tr; - 0 >= b ? this.wm = null : (a.Tr = b - 1, 1 < b ? this.wm = null : (b = this.wm, a = a.Br, this.wm = null, !a || b && a !== b || a.unsubscribe())); - } else this.wm = null; - }; - return c; - }(f.zh); - }, function(f, c) { - f = function() { - function a(b, c) { - void 0 === c && (c = a.now); - this.QEa = b; - this.now = c; + } + Object.defineProperty(d, "__esModule", { + value: !0 + }); + g = a(0); + c = a(37); + h = a(1); + k = a(4); + f = a(38); + l = a(88); + m = a(35); + a = a(26); + ia(b, f.Yd); + na.Object.defineProperties(b.prototype, { + enabled: { + configurable: !0, + enumerable: !0, + get: function() { + return !0; + } + }, + endpoint: { + configurable: !0, + enumerable: !0, + get: function() { + return "" + this.Q3 + (-1 === this.Q3.indexOf("?") ? "?" : "&") + "monotonic=" + this.Ma.Mva + "&device=web"; + } + }, + AAa: { + configurable: !0, + enumerable: !0, + get: function() { + return k.Sf; + } + }, + E3: { + configurable: !0, + enumerable: !0, + get: function() { + return ""; + } + }, + Q3: { + configurable: !0, + enumerable: !0, + get: function() { + return this.mf.endpoint + "/ftl/probe" + (this.E3 ? "?force=" + this.E3 : ""); + } } - a.prototype.lb = function(a, c, f) { - void 0 === c && (c = 0); - return new this.QEa(this, a).lb(f, c); - }; - a.now = Date.now ? Date.now : function() { - return +new Date(); - }; - return a; - }(); - c.PEa = f; - }, function(f, c, a) { - var b; - b = this && this.__extends || function(a, b) { - function c() { - this.constructor = a; + }); + n = b; + g.__decorate([m.config(m.le, "ftlEnabled")], n.prototype, "enabled", null); + g.__decorate([m.config(m.Fg, "ftlStartDelay")], n.prototype, "AAa", null); + g.__decorate([m.config(m.string, "ftlEndpointForceParam")], n.prototype, "E3", null); + g.__decorate([m.config(m.url, "ftlEndpoint")], n.prototype, "Q3", null); + n = g.__decorate([h.N(), g.__param(0, h.l(a.Fi)), g.__param(1, h.l(l.Ms)), g.__param(2, h.l(c.yi)), g.__param(3, h.l(a.Tz)), g.__param(3, h.optional())], n); + d.yHa = n; + }, function(g, d, a) { + var c, h, k, f; + + function b(a, b) { + return k.Yd.call(this, a, void 0 === b ? "NetworkMonitorConfigImpl" : b) || this; + } + Object.defineProperty(d, "__esModule", { + value: !0 + }); + g = a(0); + c = a(1); + h = a(35); + k = a(38); + a = a(26); + ia(b, k.Yd); + na.Object.defineProperties(b.prototype, { + dCa: { + configurable: !0, + enumerable: !0, + get: function() { + return !0; + } } - for (var d in b) b.hasOwnProperty(d) && (a[d] = b[d]); - a.prototype = null === b ? Object.create(b) : (c.prototype = b.prototype, new c()); + }); + f = b; + g.__decorate([h.config(h.le, "useNetworkMonitor")], f.prototype, "dCa", null); + f = g.__decorate([c.N(), g.__param(0, c.l(a.Fi)), g.__param(1, c.l(a.Tz)), g.__param(1, c.optional())], f); + d.iLa = f; + }, function(g, d) { + function a(a) { + this.value = a; + } + Object.defineProperty(d, "__esModule", { + value: !0 + }); + a.empty = function() { + return a.of(void 0); }; - f = function(a) { - function c() { - a.apply(this, arguments); - } - b(c, a); - return c; - }(a(227).fS); - c.WDa = f; - }, function(f, c, a) { - var b; - b = this && this.__extends || function(a, b) { - function c() { - this.constructor = a; - } - for (var d in b) b.hasOwnProperty(d) && (a[d] = b[d]); - a.prototype = null === b ? Object.create(b) : (c.prototype = b.prototype, new c()); + a.of = function(b) { + return new a(b); }; - f = function(a) { - function c() { - a.call(this); - } - b(c, a); - c.prototype.lb = function() { - return this; - }; - return c; - }(a(70).tj); - c.Jta = f; - }, function(f, c, a) { - var b; - b = this && this.__extends || function(a, b) { - function c() { - this.constructor = a; - } - for (var d in b) b.hasOwnProperty(d) && (a[d] = b[d]); - a.prototype = null === b ? Object.create(b) : (c.prototype = b.prototype, new c()); + a.prototype.Owa = function(a) { + return void 0 === this.value ? a instanceof Function ? a() : a : this.value; }; - f = function(a) { - function c(b, c) { - a.call(this, b, c); - this.ha = b; - this.HI = c; - } - b(c, a); - c.prototype.lb = function(b, c) { - void 0 === c && (c = 0); - if (0 < c) return a.prototype.lb.call(this, b, c); - this.Rc = c; - this.state = b; - this.ha.flush(this); - return this; - }; - c.prototype.Pf = function(b, c) { - return 0 < c || this.closed ? a.prototype.Pf.call(this, b, c) : this.SK(b, c); - }; - c.prototype.pQ = function(b, c, d) { - void 0 === d && (d = 0); - return null !== d && 0 < d || null === d && 0 < this.Rc ? a.prototype.pQ.call(this, b, c, d) : b.flush(this); - }; - return c; - }(a(228).eS); - c.VDa = f; - }, function(f, c, a) { - f = a(865); - a = a(863); - c.Eq = new a.WDa(f.VDa); - }, function(f, c) { - c.l3a = function() {}; - }, function(f, c, a) { - var d; + a.prototype.map = function(b) { + return void 0 === this.value ? a.empty() : a.of(b(this.value)); + }; + d.Ffa = a; + }, function(g, d, a) { + var c, h, k, f, l, m, n; - function b(a) { - return a ? 1 === a.length ? a[0] : function(b) { - return a.reduce(function(a, b) { - return b(a); - }, b); - } : d.l3a; + function b(a, b) { + return f.Yd.call(this, a, void 0 === b ? "GeneralConfigImpl" : b) || this; } - d = a(867); - c.l5a = function() { - for (var a = [], c = 0; c < arguments.length; c++) a[c - 0] = arguments[c]; - return b(a); - }; - c.m5a = b; - }, function(f, c, a) { - var b, d, h; - b = a(55); - d = a(230); - h = a(231); - c.gbb = function(a, c, f) { - if (a) { - if (a instanceof b.zh) return a; - if (a[d.fx]) return a[d.fx](); - } - return a || c || f ? new b.zh(a, c, f) : new b.zh(h.empty); + Object.defineProperty(d, "__esModule", { + value: !0 + }); + g = a(0); + c = a(4); + h = a(1); + k = a(35); + f = a(38); + l = a(52); + a = a(26); + m = { + test: "Test", + stg: "Staging", + "int": "Int", + prod: "Prod" }; - }, function(f, c) { - var a; - a = this && this.__extends || function(a, c) { - function b() { - this.constructor = a; - } - for (var d in c) c.hasOwnProperty(d) && (a[d] = c[d]); - a.prototype = null === c ? Object.create(c) : (b.prototype = c.prototype, new b()); + d.cI = function(a, b) { + return a.eya(m[b] || b, l.Ts); }; - f = function(b) { - function c(a) { - b.call(this); - this.oF = a; - a = Error.call(this, a ? a.length + " errors occurred during unsubscription:\n " + a.map(function(a, b) { - return b + 1 + ") " + a.toString(); - }).join("\n ") : ""); - this.name = a.name = "UnsubscriptionError"; - this.stack = a.stack; - this.message = a.message; + ia(b, f.Yd); + na.Object.defineProperties(b.prototype, { + cI: { + configurable: !0, + enumerable: !0, + get: function() { + return l.Ts.aOa; + } + }, + W$: { + configurable: !0, + enumerable: !0, + get: function() { + return c.hh(8); + } + }, + xp: { + configurable: !0, + enumerable: !0, + get: function() { + return ""; + } + }, + xr: { + configurable: !0, + enumerable: !0, + get: function() { + return ""; + } + }, + Ks: { + configurable: !0, + enumerable: !0, + get: function() { + return ""; + } + }, + $Aa: { + configurable: !0, + enumerable: !0, + get: function() { + return !1; + } + }, + zP: { + configurable: !0, + enumerable: !0, + get: function() { + return !0; + } + }, + w5: { + configurable: !0, + enumerable: !0, + get: function() { + return !0; + } + }, + u6a: { + configurable: !0, + enumerable: !0, + get: function() { + return !1; + } + }, + Si: { + configurable: !0, + enumerable: !0, + get: function() { + return {}; + } + }, + L9: { + configurable: !0, + enumerable: !0, + get: function() { + return !1; + } + }, + zS: { + configurable: !0, + enumerable: !0, + get: function() { + return !1; + } + }, + PV: { + configurable: !0, + enumerable: !0, + get: function() { + return !1; + } + }, + GL: { + configurable: !0, + enumerable: !0, + get: function() { + return ["baggins.prod.netflix.net", "cloudfront.net"]; + } + }, + Gv: { + configurable: !0, + enumerable: !0, + get: function() { + return { + __default_rule_key__: ["idb", "mem"] + }; + } + }, + Hm: { + configurable: !0, + enumerable: !0, + get: function() { + return 0 <= [l.Ts.Iha, l.Ts.lea].indexOf(this.cI); + } } - a(c, b); - return c; - }(Error); - c.lK = f; - }, function(f, c, a) { - var d, h; + }); + n = b; + g.__decorate([k.config(d.cI, "environment")], n.prototype, "cI", null); + g.__decorate([k.config(k.Fg, "storageTimeout")], n.prototype, "W$", null); + g.__decorate([k.config(k.string, "groupName")], n.prototype, "xp", null); + g.__decorate([k.config(k.string, "canaryGroupName")], n.prototype, "xr", null); + g.__decorate([k.config(k.string, "uiGroupName")], n.prototype, "Ks", null); + g.__decorate([k.config(k.le, "testIndexDBForCorruptedDatabase")], n.prototype, "$Aa", null); + g.__decorate([k.config(k.le, "applyIndexedDbOpenWorkaround")], n.prototype, "zP", null); + g.__decorate([k.config(k.le, "ignoreIdbOpenError")], n.prototype, "w5", null); + g.__decorate([k.config(k.le, "executeStorageMigration")], n.prototype, "u6a", null); + g.__decorate([k.config(k.object(), "browserInfo")], n.prototype, "Si", null); + g.__decorate([k.config(k.le, "retryAllMslRequestsOnError")], n.prototype, "L9", null); + g.__decorate([k.config(k.le, "isTestAccount")], n.prototype, "zS", null); + g.__decorate([k.config(k.le, "vuiCommandLogging")], n.prototype, "PV", null); + g.__decorate([k.config(k.Dn("string", 1))], n.prototype, "GL", null); + g.__decorate([k.config(k.object, "storageRules")], n.prototype, "Gv", null); + n = g.__decorate([h.N(), g.__param(0, h.l(a.Fi)), g.__param(1, h.l(a.Tz)), g.__param(1, h.optional())], n); + d.CHa = n; + }, function(g, d, a) { + var k, f, l, m, n; function b() { - try { - return h.apply(this, arguments); - } catch (l) { - return d.Ns.e = l, d.Ns; - } + this.uu = {}; + this.cza = 0; } - d = a(409); - c.xsa = function(a) { - h = a; - return b; - }; - }, function(f, c, a) { - var d, h, k, g; - function b(a) { - this.config = a; + function c(a, b, c, d, f) { + this.debug = a; + this.Wr = b; + this.RJ = c; + this.af = d; + this.gU = f; + } + + function h(a, b, c) { + this.Wr = a; + this.RJ = b; + this.gU = c; } - Object.defineProperty(c, "__esModule", { + Object.defineProperty(d, "__esModule", { value: !0 }); - f = a(1); - d = a(412); - h = a(77); - k = a(0); - a = a(29); - pa.Object.defineProperties(b.prototype, { - Fm: { + g = a(0); + k = a(1); + f = a(137); + l = a(7); + m = a(136); + n = a(461); + a = a(26); + h = g.__decorate([k.N(), g.__param(0, k.l(a.SM)), g.__param(1, k.l(m.IY)), g.__param(2, k.l(n.xY))], h); + d.VEa = h; + c = g.__decorate([k.N(), g.__param(0, k.l(f.YE)), g.__param(1, k.l(a.SM)), g.__param(2, k.l(m.IY)), g.__param(3, k.l(l.sb)), g.__param(4, k.l(n.xY))], c); + d.sQa = c; + na.Object.defineProperties(b.prototype, { + data: { configurable: !0, enumerable: !0, get: function() { - return d.PC.of(this.config().Vq).map(function(a) { - return h.pa.from(a.isInOfflineMode); - }).UG(h.pa.of(!1)); + return this.uu; + }, + set: function(a) { + this.uu = a; + this.cza++; } }, - Ek: { + bza: { configurable: !0, enumerable: !0, get: function() { - return d.PC.of(this.config().Vq).map(function(a) { - var b; - b = a.logger; - if (b) return { - y$a: b.startSession, - xUa: b.endSession, - Uj: b.logEvent, - mq: function(a) { - a && a.code && (a.code = String(a.code)); - return b.logEvent("DebugEvent", a); - } - }; - }).UG({ - y$a: function() { - return -1; - }, - xUa: function() {}, - Uj: function() { - return -1; - }, - mq: function() { - return -1; - } - }); + return this.cza; } - }, - md: { - configurable: !0, - enumerable: !0, - get: function() { - return d.PC.of(this.config().Vq).map(function(a) { - return a.storageFactory; - }).UG({}); - } - } - }); - g = b; - g = f.__decorate([k.N(), f.__param(0, k.j(a.Ef))], g); - c.Qta = g; - }, function(f, c, a) { - var b, d, h, k, g, m, n, q, u, v, z, w, A; - Object.defineProperty(c, "__esModule", { - value: !0 - }); - f = a(0); - b = a(872); - d = a(29); - h = a(85); - k = a(771); - g = a(39); - m = a(47); - n = a(770); - q = a(388); - u = a(769); - v = a(155); - z = a(768); - w = a(131); - A = a(767); - c.config = new f.dc(function(a) { - a(d.Ef).Yl(function() { + } + }); + a = b; + a = g.__decorate([k.N()], a); + d.XIa = a; + }, function(g, d, a) { + var b, c, h, k, f, l, m, n, q, t, v; + Object.defineProperty(d, "__esModule", { + value: !0 + }); + g = a(1); + b = a(20); + c = a(1002); + h = a(26); + k = a(52); + f = a(1001); + l = a(460); + m = a(999); + n = a(165); + q = a(998); + t = a(64); + v = a(997); + d.config = new g.Vb(function(a) { + a(b.je).ih(function() { return function() { - return t._cad_global.config; + return A._cad_global.config; }; }); - a(h.Wq).to(b.Qta).Y(); - a(g.rS).to(k.sva).Y(); - a(g.nk).to(k.NFa).Y(); - a(g.uC).to(k.Vya).Y(); - a(m.oj).to(n.Bxa).Y(); - a(q.G$).to(u.YAa).Y(); - a(v.C8).to(z.yxa).Y(); - a(w.iC).to(A.exa).Y(); + a(h.qW).to(c.VEa).$(); + a(h.Fi).to(c.sQa).$(); + a(h.SM).to(c.XIa).$(); + a(k.$l).to(f.CHa).$(); + a(l.ufa).to(m.iLa).$(); + a(n.oda).to(q.yHa).$(); + a(t.jn).to(v.aHa).$(); }); - }, function(f, c, a) { - var b, d, h, k, g; - Object.defineProperty(c, "__esModule", { + }, function(g, d, a) { + var b, c, h, k, f; + Object.defineProperty(d, "__esModule", { value: !0 }); b = a(2); - d = a(113); - h = a(114); - k = a(234); - c.v6a = function(a) { - k.NZ.parent = a.kc; + c = a(89); + h = a(122); + k = a(244); + d.okb = function(a) { + k.WH.parent = a.Xb; return function() { - g || (g = new Promise(function(a, c) { + f || (f = new Promise(function(a, d) { try { - a(k.NZ.get(h.Y7)); + a(k.WH.get(h.Pca)); } catch (u) { - c(new d.mf(b.v.lya, b.u.Gya, void 0, "Unable to extract the DRM services from the dependency injector", u)); + d(new c.hf(b.I.oIa, b.H.IIa, void 0, "Unable to extract the DRM services from the dependency injector", u)); } })); - return g; + return f; }; }; - }, function(f, c, a) { - var k, g, m, n, q, u, t, z; + }, function(g, d, a) { + var k, f, l, m, n, q, t, v; - function b(a, b, c) { + function b(a, b, d) { var f; f = this; this.is = a; - this.md = b; - this.config = c; - this.Gd = function() { + this.tf = b; + this.config = d; + this.aq = function() { return { version: f.version, - drmData: f.dN.map(function(a) { - return a.Gd(); + drmData: f.KQ.map(function(a) { + return a.aq(); }) }; }; - this.ni = function(a) { + this.P3 = function(a) { var b; - f.is.Eh(a) && (a = d(a)); + f.is.Oi(a) && (a = c(a)); 1 === a.version && (a = h(f.is, a)); b = { version: 2, @@ -95993,21 +101513,21 @@ v7AA.H22 = function() { b.version = a.version; try { b.data = a.drmData.map(function(a) { - return new z.GS(a); + return new v.GW(a); }); - } catch (N) { - throw new q.nb(m.v.Qx, m.u.hn, void 0, void 0, void 0, "The format of the DRM data is inconsistent with what is expected.", N); + } catch (F) { + throw new n.Ub(l.I.aA, l.H.Ps, void 0, void 0, void 0, "The format of the DRM data is inconsistent with what is expected.", F); } } else { - if (!a.version || !f.is.ye(a.version)) throw new q.nb(m.v.Qx, m.u.hn, void 0, void 0, void 0, "The format of the DRM data is inconsistent with what is expected."); - if (1 !== a.version) throw new q.nb(m.v.Qx, m.u.kS, void 0, void 0, void 0, "Version number is not supported. Version: " + f.getVersion); + if (!a.version || !f.is.Af(a.version)) throw new n.Ub(l.I.aA, l.H.Ps, void 0, void 0, void 0, "The format of the DRM data is inconsistent with what is expected."); + if (1 !== a.version) throw new n.Ub(l.I.aA, l.H.Wba, void 0, void 0, void 0, "Version number is not supported. Version: " + f.getVersion); } return b; }; - this.Ng = new u.BT(2, this.config.Iz, this.is.Eh(this.config.Iz), this.md, this.Gd); + this.$m = new q.gea(2, this.config.VH, this.is.Oi(this.config.VH), this.tf, this.aq); } - function d(a) { + function c(a) { a = JSON.parse(a); a = { profileId: a.profileId, @@ -96016,7 +101536,7 @@ v7AA.H22 = function() { keySessionIds: a.keySessionIds, licenseContextId: a.licenseContextId }; - if (!(a.profileId && a.licenseContextId && a.xid && a.movieId)) throw new q.nb(m.v.Qx, m.u.hn); + if (!(a.profileId && a.licenseContextId && a.xid && a.movieId)) throw new n.Ub(l.I.aA, l.H.Ps); return { version: 1, drmData: [a] @@ -96024,12 +101544,12 @@ v7AA.H22 = function() { } function h(a, b) { - if (a.Gn(b.drmData)) return { + if (a.Zt(b.drmData)) return { version: 2, drmData: b.drmData.map(function(a) { var b; b = a.keySessionIds; - return new z.GS({ + return new v.GW({ keySystemId: a.keySystemId, keySessionData: (b && 0 < b.length ? b : [void 0]).map(function(b) { return { @@ -96041,84 +101561,84 @@ v7AA.H22 = function() { profileId: a.profileId, xid: a.xid, movieId: a.movieId - }).Gd(); + }).aq(); }) }; - throw new q.nb(m.v.Qx, m.u.hn); + throw new n.Ub(l.I.aA, l.H.Ps); } - Object.defineProperty(c, "__esModule", { + Object.defineProperty(d, "__esModule", { value: !0 }); - f = a(1); - k = a(0); - g = a(131); - m = a(2); - n = a(20); - q = a(48); - u = a(232); - t = a(56); - z = a(233); - b.prototype.Epa = function() { - return this.x$a(); + g = a(0); + k = a(1); + f = a(64); + l = a(2); + m = a(23); + n = a(45); + q = a(462); + t = a(53); + v = a(243); + b.prototype.dya = function() { + return this.Wob(); }; - b.prototype.wfa = function(a) { - return this.Ng.add(a); + b.prototype.Nla = function(a) { + return this.$m.add(a); }; - b.prototype.o4 = function(a) { - return this.Ng.remove(a, function(a, b) { - return a.aa === b.aa; + b.prototype.u9 = function(a) { + return this.$m.remove(a, function(a, b) { + return a.ka === b.ka; }); }; b.prototype.toString = function() { - return JSON.stringify(this.Gd(), null, " "); + return JSON.stringify(this.aq(), null, " "); }; - b.prototype.x$a = function() { + b.prototype.Wob = function() { var a; a = this; - this.Jpa || (this.Jpa = new Promise(function(b, c) { - a.Ng.load(a.ni).then(function() { + this.iya || (this.iya = new Promise(function(b, c) { + a.$m.load(a.P3).then(function() { b(); })["catch"](function(a) { - a.R && a.cause ? c(new q.nb(m.v.Qx, a.R, void 0, void 0, void 0, "Unable to load persisted playdata.", void 0, a)) : c(a); + a.T && a.cause ? c(new n.Ub(l.I.aA, a.T, void 0, void 0, void 0, "Unable to load persisted playdata.", void 0, a)) : c(a); }); })); - return this.Jpa; + return this.iya; }; - pa.Object.defineProperties(b.prototype, { + na.Object.defineProperties(b.prototype, { version: { configurable: !0, enumerable: !0, get: function() { - return this.Ng.version; + return this.$m.version; } }, - dN: { + KQ: { configurable: !0, enumerable: !0, get: function() { - return this.Ng.um; + return this.$m.gp; } } }); a = b; - a = f.__decorate([k.N(), f.__param(0, k.j(n.rd)), f.__param(1, k.j(t.fk)), f.__param(2, k.j(g.iC))], a); - c.$ua = a; - }, function(f, c, a) { - var b, d, h; - Object.defineProperty(c, "__esModule", { + a = g.__decorate([k.N(), g.__param(0, k.l(m.ve)), g.__param(1, k.l(t.Xl)), g.__param(2, k.l(f.jn))], a); + d.AEa = a; + }, function(g, d, a) { + var b, c, h; + Object.defineProperty(d, "__esModule", { value: !0 }); - b = a(63); - d = a(235); - c.u6a = function(a) { + b = a(65); + c = a(245); + d.nkb = function(a) { return function() { - var c; + var d; if (!h) { - d.$W.parent = a.kc; - c = d.$W.get(b.J6); + c.R_.parent = a.Xb; + d = c.R_.get(b.yba); h = new Promise(function(a, b) { - c.Xc().then(function() { - a(c); + d.Ac().then(function() { + a(d); })["catch"](function(a) { b(a); }); @@ -96127,37 +101647,35 @@ v7AA.H22 = function() { return h; }; }; - }, function(f, c, a) { - var h, k, g, m, n, q, u, t, z, d, b; + }, function(g, d, a) { + var h, k, f, l, m, n, q, t, v, c; function b(a, b) { a = /CrOS/.test(a.userAgent); - this.jNa = this.jE = u.LI.E9; - this.a5 = !0; - this.kM = [t.gk.wJ]; - this.DI = [t.$.fr, t.$.ju, t.$.Cxa, t.$.Dxa]; - a && this.DI.push(t.$.lC, t.$.Exa); - this.LB = [t.uj.vS, t.uj.sEa, t.uj.Xx]; - this.ce = z.Eb.ZFa; - this.UZ = !0; - this.pN = !1; - this.Wma = m.Cb(232E3); - this.c2 = n.ga(0); - this.AX = n.ga(288E4); - this.DX = n.ga(335544320); - this.e2 = m.Cb(15E3); - this.U1a = n.ga(6291456); - this.vA = 1E3; - this.IR = !0; - this.z6 = !1; - this.kY = !!b; - this.yY = !0; - this.Pga = !b; - this.qR = "idb"; - this.D5 = n.ga(0); - this.bta = !1; - this.r4 = !0; - this.X5 = { + this.sYa = this.YG = q.bM.qea; + this.o$ = !0; + this.HP = [t.Uk.JM]; + this.QL = [t.ba.SW, t.ba.DM, t.ba.EHa, t.ba.FHa]; + a && this.QL.push(t.ba.TW, t.ba.GHa); + this.Ds = [t.Vj.uW, t.Vj.GOa, t.Vj.iA]; + this.Ad = v.bb.EQa; + this.X2 = !0; + this.VQ = !1; + this.t0 = m.Z(288E4); + this.v0 = m.Z(335544320); + this.k7 = l.rb(15E3); + this.Ueb = m.Z(6291456); + this.eD = 1E3; + this.zV = !0; + this.fba = !1; + this.$0 = !!b; + this.q1 = !0; + this.Bna = !b; + this.iV = "idb"; + this.V$ = m.Z(0); + this.kCa = !1; + this.UD = !0; + this.taa = { MONOSPACED_SERIF: "font-family:Courier New,Arial,Helvetica;font-weight:bolder", MONOSPACED_SANS_SERIF: "font-family:Consolas,Lucida Console,Menlo,Monaco,Arial,Helvetica;font-weight:bolder", PROPORTIONAL_SERIF: "font-family:Georgia,Times New Roman,Arial,Helvetica;font-weight:bolder", @@ -96166,393 +101684,392 @@ v7AA.H22 = function() { CURSIVE: "font-family:Lucida Handwriting,Brush Script MT,Segoe Script,Arial,Helvetica;font-weight:bolder", SMALL_CAPITALS: "font-family:Copperplate Gothic,Copperplate Gothic Bold,Copperplate,Arial,Helvetica;font-variant:small-caps;font-weight:bolder" }; - this.DR = n.ga(0); - this.kQ = !1; - this.HR = m.Cb(0); + this.yE = m.Z(0); + this.xV = l.rb(0); } - function d(a) { - var b, c; + function c(a) { + var b, c, d; a = a.userAgent; b = /CrOS/.test(a); c = /OPR/.test(a); - this.version = "6.0011.853.011"; - this.Tk = !0; - this.HUa = b ? "C" : c ? "O" : "M"; - this.zm = /OPR/.test(a) ? "NFCDOP-01-" : /Windows NT/.test(a) ? "NFCDCH-02-" : /Intel Mac OS X/.test(a) ? "NFCDCH-MC-" : /CrOS/.test(a) ? "NFCDCH-01-" : /Android.*Chrome\/[.0-9]* Mobile/.test(a) ? "NFCDCH-AP-" : "NFCDCH-LX-"; - this.z_ = !0; - this.BZ = b ? "chromeos-cadmium" : c ? "opera-cadmium" : "chrome-cadmium"; - this.WM = "browser"; - this.Dma = ""; - this.Zha = "cadmium"; - this.e0a = !0; - } - Object.defineProperty(c, "__esModule", { - value: !0 - }); - f = a(1); - h = a(0); - k = a(50); - g = a(24); - m = a(7); - n = a(42); - q = a(161); - u = a(414); - t = a(64); - z = a(160); - d = f.__decorate([h.N(), f.__param(0, h.j(k.LC))], d); - b = f.__decorate([h.N(), f.__param(0, h.j(k.LC)), f.__param(1, h.j(k.q$))], b); - c.platform = new h.dc(function(a) { - a(g.Pe).to(d); - a(q.WJ).to(b); - }); - }, function(f, c) { - Object.defineProperty(c, "__esModule", { + d = / Edg\//.test(a); + this.version = "6.0015.328.011"; + this.$i = !0; + this.pC = d ? "D" : b ? "C" : c ? "O" : "M"; + this.Im = d ? "NFCDIE-04-" : c ? "NFCDOP-01-" : /Windows NT/.test(a) ? "NFCDIE-03-" : /Intel Mac OS X/.test(a) ? "NFCDIE-04-" : b ? "NFCDCH-01-" : /Android.*Chrome\/[.0-9]* Mobile/.test(a) ? "NFCDCH-AP-" : /Android.*Chrome\/[.0-9]* /.test(a) ? "NFCDCH-AT-" : "NFCDCH-LX-"; + esnPrefix = this.Im; + this.R3 = !0; + this.y2 = b ? "chromeos-cadmium" : c ? "opera-cadmium" : "chrome-cadmium"; + this.x2 = "browser"; + this.wua = ""; + this.epa = "cadmium"; + this.Scb = !0; + } + Object.defineProperty(d, "__esModule", { value: !0 }); - c.Jna = function(a) { + g = a(0); + h = a(1); + k = a(39); + f = a(66); + l = a(4); + m = a(31); + n = a(168); + q = a(464); + t = a(72); + v = a(138); + c = g.__decorate([h.N(), g.__param(0, h.l(k.lA))], c); + d.tub = c; + b = g.__decorate([h.N(), g.__param(0, h.l(k.lA)), g.__param(1, h.l(k.cfa))], b); + d.platform = new h.Vb(function(a) { + a(f.pn).to(c); + a(n.gN).to(b); + }); + }, function(g, d) { + Object.defineProperty(d, "__esModule", { + value: !0 + }); + d.Sva = function(a) { return function(b) { return function() { - for (var c = [], f = 0; f < arguments.length; f++) c[f] = arguments[f]; + for (var c = [], d = 0; d < arguments.length; d++) c[d] = arguments[d]; return c.forEach(function(c) { - return a.bind(c).fbb(b); + return a.bind(c).Eqb(b); }); }; }; }; - }, function(f, c, a) { - var b, d, h; - Object.defineProperty(c, "__esModule", { + }, function(g, d, a) { + var b, c, h; + Object.defineProperty(d, "__esModule", { value: !0 }); - b = a(59); - d = a(40); - h = a(66); - c.bpa = function() { - return function(a, c) { - c = new h.Metadata(d.RC, c); - if (Reflect.m0(d.RC, a.constructor)) throw Error(b.Wza); - Reflect.yZ(d.RC, c, a.constructor); + b = a(54); + c = a(32); + h = a(67); + d.Bxa = function() { + return function(a, d) { + d = new h.Metadata(c.FF, d); + if (Reflect.b5(c.FF, a.constructor)) throw Error(b.fKa); + Reflect.u2(c.FF, d, a.constructor); }; }; - }, function(f, c, a) { - var b, d, h; - Object.defineProperty(c, "__esModule", { + }, function(g, d, a) { + var b, c, h; + Object.defineProperty(d, "__esModule", { value: !0 }); - b = a(40); - d = a(66); - h = a(86); - c.hI = function(a) { - return function(c, f, k) { - var g; - g = new d.Metadata(b.IJ, a); - h.qx(c, f, k, g); + b = a(32); + c = a(67); + h = a(90); + d.qL = function(a) { + return function(d, g, k) { + var f; + f = new c.Metadata(b.WM, a); + h.Az(d, g, k, f); }; }; - }, function(f, c, a) { - var b, d, h; - Object.defineProperty(c, "__esModule", { + }, function(g, d, a) { + var b, c, h; + Object.defineProperty(d, "__esModule", { value: !0 }); - b = a(40); - d = a(66); - h = a(86); - c.tt = function(a) { - return function(c, f, k) { - var g; - g = new d.Metadata(b.qu, a); - "number" === typeof k ? h.qx(c, f, k, g) : h.fI(c, f, g); + b = a(32); + c = a(67); + h = a(90); + d.Iy = function(a) { + return function(d, g, k) { + var f; + f = new c.Metadata(b.pw, a); + "number" === typeof k ? h.Az(d, g, k, f) : h.oL(d, g, f); }; }; - }, function(f, c, a) { - var b, d, h; - Object.defineProperty(c, "__esModule", { + }, function(g, d, a) { + var b, c, h; + Object.defineProperty(d, "__esModule", { value: !0 }); - b = a(40); - d = a(66); - h = a(86); - c.Uh = function() { - return function(a, c, f) { - var g; - g = new d.Metadata(b.eD, !0); - h.qx(a, c, f, g); + b = a(32); + c = a(67); + h = a(90); + d.Jg = function() { + return function(a, d, g) { + var f; + f = new c.Metadata(b.PF, !0); + h.Az(a, d, g, f); }; }; - }, function(f, c, a) { - var b, d, h; - Object.defineProperty(c, "__esModule", { + }, function(g, d, a) { + var b, c, h; + Object.defineProperty(d, "__esModule", { value: !0 }); - b = a(40); - d = a(66); - h = a(86); - c.optional = function() { - return function(a, c, f) { - var g; - g = new d.Metadata(b.N$, !0); - "number" === typeof f ? h.qx(a, c, f, g) : h.fI(a, c, g); + b = a(32); + c = a(67); + h = a(90); + d.optional = function() { + return function(a, d, g) { + var f; + f = new c.Metadata(b.Cfa, !0); + "number" === typeof g ? h.Az(a, d, g, f) : h.oL(a, d, f); }; }; - }, function(f, c, a) { - var b, d, h; - Object.defineProperty(c, "__esModule", { + }, function(g, d, a) { + var b, c, h; + Object.defineProperty(d, "__esModule", { value: !0 }); - b = a(40); - d = a(66); - h = a(86); - c.Kna = function(a) { - return function(c, f, k) { - var g; - g = new d.Metadata(b.kr, a); - "number" === typeof k ? h.qx(c, f, k, g) : h.fI(c, f, g); + b = a(32); + c = a(67); + h = a(90); + d.Uva = function(a) { + return function(d, g, k) { + var f; + f = new c.Metadata(b.ft, a); + "number" === typeof k ? h.Az(d, g, k, f) : h.oL(d, g, f); }; }; - }, function(f, c, a) { - var b, d; - Object.defineProperty(c, "__esModule", { + }, function(g, d, a) { + var b, c; + Object.defineProperty(d, "__esModule", { value: !0 }); - b = a(66); - d = a(86); - c.yR = function(a, c) { - return function(f, h, k) { - var g; - g = new b.Metadata(a, c); - "number" === typeof k ? d.qx(f, h, k, g) : d.fI(f, h, g); + b = a(67); + c = a(90); + d.VAa = function(a, d) { + return function(f, g, h) { + var k; + k = new b.Metadata(a, d); + "number" === typeof h ? c.Az(f, g, h, k) : c.oL(f, g, k); }; }; - }, function(f, c, a) { - var b, d; - Object.defineProperty(c, "__esModule", { + }, function(g, d, a) { + var b, c; + Object.defineProperty(d, "__esModule", { value: !0 }); - b = a(59); - d = a(40); - c.N = function() { + b = a(54); + c = a(32); + d.N = function() { return function(a) { - var c; - if (Reflect.m0(d.iU, a)) throw Error(b.rwa); - c = Reflect.getMetadata(d.Kva, a) || []; - Reflect.yZ(d.iU, c, a); + var d; + if (Reflect.b5(c.gY, a)) throw Error(b.eGa); + d = Reflect.getMetadata(c.zFa, a) || []; + Reflect.u2(c.gY, d, a); return a; }; }; - }, function(f, c, a) { + }, function(g, d, a) { var b; - Object.defineProperty(c, "__esModule", { + Object.defineProperty(d, "__esModule", { value: !0 }); - b = a(99); - c.dc = function() { + b = a(104); + d.Vb = function() { return function(a) { this.id = b.id(); - this.l4 = a; + this.s9 = a; }; }(); - c.S6 = function() { + d.Iba = function() { return function(a) { this.id = b.id(); - this.l4 = a; + this.s9 = a; }; }(); - }, function(f, c, a) { + }, function(g, d, a) { var b; - Object.defineProperty(c, "__esModule", { + Object.defineProperty(d, "__esModule", { value: !0 }); - b = a(59); - f = function() { + b = a(54); + g = function() { function a() { - this.Bh = new Map(); + this.Xh = new Map(); } a.prototype.add = function(a, c) { var d; - if (null === a || void 0 === a) throw Error(b.KC); - if (null === c || void 0 === c) throw Error(b.KC); - d = this.Bh.get(a); - void 0 !== d ? (d.push(c), this.Bh.set(a, d)) : this.Bh.set(a, [c]); + if (null === a || void 0 === a) throw Error(b.BF); + if (null === c || void 0 === c) throw Error(b.BF); + d = this.Xh.get(a); + void 0 !== d ? (d.push(c), this.Xh.set(a, d)) : this.Xh.set(a, [c]); }; a.prototype.get = function(a) { - if (null === a || void 0 === a) throw Error(b.KC); - a = this.Bh.get(a); + if (null === a || void 0 === a) throw Error(b.BF); + a = this.Xh.get(a); if (void 0 !== a) return a; - throw Error(b.G9); + throw Error(b.rea); }; a.prototype.remove = function(a) { - if (null === a || void 0 === a) throw Error(b.KC); - if (!this.Bh["delete"](a)) throw Error(b.G9); + if (null === a || void 0 === a) throw Error(b.BF); + if (!this.Xh["delete"](a)) throw Error(b.rea); }; - a.prototype.Cka = function(a) { - if (null === a || void 0 === a) throw Error(b.KC); - return this.Bh.has(a); + a.prototype.rsa = function(a) { + if (null === a || void 0 === a) throw Error(b.BF); + return this.Xh.has(a); }; a.prototype.clone = function() { var b; b = new a(); - this.Bh.forEach(function(a, c) { + this.Xh.forEach(function(a, c) { a.forEach(function(a) { return b.add(c, a.clone()); }); }); return b; }; - a.prototype.Ibb = function(a) { - this.Bh.forEach(function(b, c) { + a.prototype.drb = function(a) { + this.Xh.forEach(function(b, c) { a(c, b); }); }; return a; }(); - c.Aza = f; - }, function(f, c) { - Object.defineProperty(c, "__esModule", { + d.GJa = g; + }, function(g, d) { + Object.defineProperty(d, "__esModule", { value: !0 }); - f = function() { + g = function() { function a() {} a.of = function(b, c) { var d; d = new a(); - d.nE = b; - d.y2a = c; + d.bH = b; + d.Gfb = c; return d; }; return a; }(); - c.reb = f; - }, function(f, c, a) { - var b, d; - Object.defineProperty(c, "__esModule", { + d.xub = g; + }, function(g, d, a) { + var b, c; + Object.defineProperty(d, "__esModule", { value: !0 }); - b = a(78); - d = a(417); - f = function() { + b = a(80); + c = a(468); + g = function() { function a(a) { - this.ob = a; + this.ub = a; } - a.prototype.Y = function() { - this.ob.scope = b.am.LU; - return new d.bu(this.ob); + a.prototype.$ = function() { + this.ub.scope = b.gn.GY; + return new c.aw(this.ub); }; - a.prototype.I0 = function() { - this.ob.scope = b.am.iK; - return new d.bu(this.ob); + a.prototype.z5 = function() { + this.ub.scope = b.gn.pN; + return new c.aw(this.ub); }; return a; }(); - c.qua = f; - }, function(f, c, a) { - var b, d, h; - Object.defineProperty(c, "__esModule", { + d.MDa = g; + }, function(g, d, a) { + var b, c, h; + Object.defineProperty(d, "__esModule", { value: !0 }); - b = a(890); - d = a(238); - h = a(237); - f = function() { + b = a(1020); + c = a(247); + h = a(246); + g = function() { function a(a) { - this.ob = a; - this.kD = new h.jS(this.ob); - this.hV = new d.OI(this.ob); - this.uca = new b.qua(a); + this.ub = a; + this.cZ = new h.kW(this.ub); + this.bZ = new c.jW(this.ub); + this.wia = new b.MDa(a); } - a.prototype.Y = function() { - return this.uca.Y(); + a.prototype.$ = function() { + return this.wia.$(); }; - a.prototype.I0 = function() { - return this.uca.I0(); + a.prototype.z5 = function() { + return this.wia.z5(); }; - a.prototype.GI = function() { - return this.kD.GI(); + a.prototype.SL = function() { + return this.cZ.SL(); }; - a.prototype.ZB = function(a, b) { - return this.kD.ZB(a, b); - }; - a.prototype.mo = function(a) { - return this.hV.mo(a); + a.prototype.Lp = function(a) { + return this.bZ.Lp(a); }; return a; }(); - c.a7 = f; - }, function(f, c, a) { - var b, d, h, k; - Object.defineProperty(c, "__esModule", { + d.Pba = g; + }, function(g, d, a) { + var b, c, h, k; + Object.defineProperty(d, "__esModule", { value: !0 }); - b = a(59); - d = a(78); - h = a(891); - k = a(417); - f = function() { + b = a(54); + c = a(80); + h = a(1021); + k = a(468); + g = function() { function a(a) { - this.ob = a; + this.ub = a; } a.prototype.to = function(a) { - this.ob.type = d.Pg.ET; - this.ob.ri = a; - return new h.a7(this.ob); - }; - a.prototype.msa = function() { - if ("function" !== typeof this.ob.Td) throw Error("" + b.Jya); - this.to(this.ob.Td); - }; - a.prototype.th = function(a) { - this.ob.type = d.Pg.w7; - this.ob.cache = a; - this.ob.Jz = null; - this.ob.ri = null; - new k.bu(this.ob); - }; - a.prototype.NB = function(a) { - this.ob.type = d.Pg.e8; - this.ob.cache = null; - this.ob.Jz = a; - this.ob.ri = null; - new h.a7(this.ob); - }; - a.prototype.lsa = function(a) { - this.ob.type = d.Pg.x7; - this.ob.ri = a; - new k.bu(this.ob); - }; - a.prototype.Yl = function(a) { - this.ob.type = d.Pg.TS; - this.ob.Lj = a; - new k.bu(this.ob); - }; - a.prototype.cbb = function(a) { - this.ob.type = d.Pg.TS; - this.ob.Lj = function(b) { + this.ub.type = c.kh.IX; + this.ub.Wi = a; + return new h.Pba(this.ub); + }; + a.prototype.pBa = function() { + if ("function" !== typeof this.ub.se) throw Error("" + b.LIa); + this.to(this.ub.se); + }; + a.prototype.Ig = function(a) { + this.ub.type = c.kh.mca; + this.ub.cache = a; + this.ub.fC = null; + this.ub.Wi = null; + new k.aw(this.ub); + }; + a.prototype.Gz = function(a) { + this.ub.type = c.kh.Uca; + this.ub.cache = null; + this.ub.fC = a; + this.ub.Wi = null; + new h.Pba(this.ub); + }; + a.prototype.Cqb = function(a) { + this.ub.type = c.kh.nca; + this.ub.Wi = a; + new k.aw(this.ub); + }; + a.prototype.ih = function(a) { + this.ub.type = c.kh.QW; + this.ub.Km = a; + new k.aw(this.ub); + }; + a.prototype.Bqb = function(a) { + this.ub.type = c.kh.QW; + this.ub.Km = function(b) { return function() { - return b.kc.get(a); + return b.Xb.get(a); }; }; - new k.bu(this.ob); + new k.aw(this.ub); }; - a.prototype.OB = function(a) { - this.ob.type = d.Pg.Raa; - this.ob.gj = a; - new k.bu(this.ob); + a.prototype.vL = function(a) { + this.ub.type = c.kh.Pga; + this.ub.Hj = a; + new k.aw(this.ub); }; - a.prototype.fbb = function(a) { - this.NB(function(b) { - return b.kc.get(a); + a.prototype.Eqb = function(a) { + this.Gz(function(b) { + return b.Xb.get(a); }); }; return a; }(); - c.rua = f; - }, function(f, c, a) { - var h, k, g; + d.NDa = g; + }, function(g, d, a) { + var h, k, f; function b(a, b, c) { var d; b = b.filter(function(a) { - return null !== a.target && a.target.type === k.$o.t7; + return null !== a.target && a.target.type === k.Gq.jca; }); d = b.map(c); b.forEach(function(b, c) { @@ -96562,195 +102079,195 @@ v7AA.H22 = function() { return a; } - function d(a, b) { + function c(a, b) { var c; - if (Reflect.vZa(g.RC, a)) { - c = Reflect.getMetadata(g.RC, a); + if (Reflect.Oab(f.FF, a)) { + c = Reflect.getMetadata(f.FF, a); try { b[c.value](); } catch (u) { - throw Error(h.ECa(a.name, u.message)); + throw Error(h.QMa(a.name, u.message)); } } } - Object.defineProperty(c, "__esModule", { + Object.defineProperty(d, "__esModule", { value: !0 }); - h = a(59); - k = a(78); - g = a(40); - c.c8a = function(a, c, f) { + h = a(54); + k = a(80); + f = a(32); + d.imb = function(a, d, f) { var g; g = null; - 0 < c.length ? (g = c.filter(function(a) { - return null !== a.target && a.target.type === k.$o.y7; - }).map(f), g = new(a.bind.apply(a, [void 0].concat(g)))(), g = b(g, c, f)) : g = new a(); - d(a, g); + 0 < d.length ? (g = d.filter(function(a) { + return null !== a.target && a.target.type === k.Gq.oca; + }).map(f), g = new(a.bind.apply(a, [void 0].concat(g)))(), g = b(g, d, f)) : g = new a(); + c(a, g); return g; }; - }, function(f, c, a) { - var h, k, g, m, n; + }, function(g, d, a) { + var h, k, f, l, m; function b(a) { - return function(c) { - var f, g, l, p, q; - f = c.nE; - g = c.rY; - l = c.target && c.target.isArray(); - p = !c.xq || !c.xq.target || !c.target || !c.xq.target.M1a(c.target.Td); - if (l && p) return g.map(function(c) { + return function(d) { + var f, g, n, p, q; + f = d.bH; + g = d.l1; + n = d.target && d.target.isArray(); + p = !d.ks || !d.ks.target || !d.target || !d.ks.target.Feb(d.target.se); + if (n && p) return g.map(function(c) { return b(a)(c); }); - l = null; - if (!c.target.Ela() || 0 !== f.length) { + n = null; + if (!d.target.yta() || 0 !== f.length) { q = f[0]; - f = q.scope === k.am.LU; - p = q.scope === k.am.Request; - if (f && q.bX) return q.cache; + f = q.scope === k.gn.GY; + p = q.scope === k.gn.Request; + if (f && q.T_) return q.cache; if (p && null !== a && a.has(q.id)) return a.get(q.id); - if (q.type === k.Pg.w7) l = q.cache; - else if (q.type === k.Pg.Function) l = q.cache; - else if (q.type === k.Pg.x7) l = q.ri; - else if (q.type === k.Pg.e8 && null !== q.Jz) l = d("toDynamicValue", q.Td, function() { - return q.Jz(c.PA); + if (q.type === k.kh.mca) n = q.cache; + else if (q.type === k.kh.Function) n = q.cache; + else if (q.type === k.kh.nca) n = q.Wi; + else if (q.type === k.kh.Uca && null !== q.fC) n = c("toDynamicValue", q.se, function() { + return q.fC(d.DD); }); - else if (q.type === k.Pg.TS && null !== q.Lj) l = d("toFactory", q.Td, function() { - return q.Lj(c.PA); + else if (q.type === k.kh.QW && null !== q.Km) n = c("toFactory", q.se, function() { + return q.Km(d.DD); }); - else if (q.type === k.Pg.Raa && null !== q.gj) l = d("toProvider", q.Td, function() { - return q.gj(c.PA); + else if (q.type === k.kh.Pga && null !== q.Hj) n = c("toProvider", q.se, function() { + return q.Hj(d.DD); }); - else if (q.type === k.Pg.ET && null !== q.ri) l = n.c8a(q.ri, g, b(a)); - else throw g = m.$z(c.Td), Error(h.Eya + " " + g); - "function" === typeof q.mo && (l = q.mo(c.PA, l)); - f && (q.cache = l, q.bX = !0); - p && null !== a && !a.has(q.id) && a.set(q.id, l); - return l; + else if (q.type === k.kh.IX && null !== q.Wi) n = m.imb(q.Wi, g, b(a)); + else throw g = l.IC(d.se), Error(h.GIa + " " + g); + "function" === typeof q.Lp && (n = q.Lp(d.DD, n)); + f && (q.cache = n, q.T_ = !0); + p && null !== a && !a.has(q.id) && a.set(q.id, n); + return n; } }; } - function d(a, b, c) { + function c(a, b, c) { try { return c(); - } catch (z) { - if (g.Nla(z)) throw Error(h.Hua(a, b.toString())); - throw z; + } catch (v) { + if (f.Ita(v)) throw Error(h.gEa(a, b.toString())); + throw v; } } - Object.defineProperty(c, "__esModule", { + Object.defineProperty(d, "__esModule", { value: !0 }); - h = a(59); - k = a(78); - g = a(420); - m = a(132); - n = a(893); - c.resolve = function(a) { - return b(a.RA.E4.U7a)(a.RA.E4); - }; - }, function(f, c, a) { + h = a(54); + k = a(80); + f = a(471); + l = a(139); + m = a(1023); + d.resolve = function(a) { + return b(a.GD.N9.$lb)(a.GD.N9); + }; + }, function(g, d, a) { var b; - Object.defineProperty(c, "__esModule", { + Object.defineProperty(d, "__esModule", { value: !0 }); - b = a(99); - f = function() { - function a(a, c, d, f, k) { + b = a(104); + g = function() { + function a(a, c, d, g, l) { this.id = b.id(); - this.Td = a; - this.PA = c; - this.xq = d; - this.target = k; - this.rY = []; - this.nE = Array.isArray(f) ? f : [f]; - this.U7a = null === d ? new Map() : null; - } - a.prototype.ufa = function(b, c, d) { - b = new a(b, this.PA, this, c, d); - this.rY.push(b); + this.se = a; + this.DD = c; + this.ks = d; + this.target = l; + this.l1 = []; + this.bH = Array.isArray(g) ? g : [g]; + this.$lb = null === d ? new Map() : null; + } + a.prototype.Kla = function(b, c, d) { + b = new a(b, this.DD, this, c, d); + this.l1.push(b); return b; }; return a; }(); - c.Request = f; - }, function(f, c) { - Object.defineProperty(c, "__esModule", { + d.Request = g; + }, function(g, d) { + Object.defineProperty(d, "__esModule", { value: !0 }); - f = function() { + g = function() { function a(a) { - this.St = a; + this.Hv = a; } a.prototype.startsWith = function(a) { - return 0 === this.St.indexOf(a); + return 0 === this.Hv.indexOf(a); }; a.prototype.endsWith = function(a) { var b; b = a.split("").reverse().join(""); - a = this.St.split("").reverse().join(""); + a = this.Hv.split("").reverse().join(""); return this.startsWith.call({ - St: a + Hv: a }, b); }; a.prototype.contains = function(a) { - return -1 !== this.St.indexOf(a); + return -1 !== this.Hv.indexOf(a); }; a.prototype.equals = function(a) { - return this.St === a; + return this.Hv === a; }; a.prototype.value = function() { - return this.St; + return this.Hv; }; return a; }(); - c.UDa = f; - }, function(f, c, a) { - var g, m, n, q, u, t; - - function b(a, b, c, f) { - var h, l, u, v, x, w, z, A, G, H; - h = a.Gja(c); - l = h.bha; - if (void 0 === l) throw Error(m.Lza + " " + b + "."); - for (var h = h.vcb, p = Object.keys(h), q = 0 === c.length && 0 < p.length ? p.length : c.length, p = [], r = 0; r < q; r++) { + d.eOa = g; + }, function(g, d, a) { + var f, l, m, n, q, t; + + function b(a, b, d, g) { + var h, n, u, v, w, x, y, D, A, G; + h = a.gra(d); + n = h.Jna; + if (void 0 === n) throw Error(l.TJa + " " + b + "."); + for (var h = h.gsb, p = Object.keys(h), q = 0 === d.length && 0 < p.length ? p.length : d.length, p = [], r = 0; r < q; r++) { v = r; - x = f; - w = b; - z = l; + w = g; + x = b; + y = n; u = h[v.toString()] || []; - A = k(u); - G = !0 !== A.Uh; - z = z[v]; - H = A.j || A.tt; - z = H ? H : z; - z instanceof g.HT && (z = z.acb()); - if (G) { - G = z === Function; - G = z === Object || G || void 0 === z; - if (!x && G) throw Error(m.Mza + " argument " + v + " in class " + w + "."); - v = new t.hK(n.$o.y7, A.hI, z); - v.Uc = u; + D = k(u); + A = !0 !== D.Jg; + y = y[v]; + G = D.l || D.Iy; + y = G ? G : y; + y instanceof f.MX && (y = y.yrb()); + if (A) { + A = y === Function; + A = y === Object || A || void 0 === y; + if (!w && A) throw Error(l.UJa + " argument " + v + " in class " + x + "."); + v = new t.nN(m.Gq.oca, D.qL, y); + v.Cc = u; u = v; } else u = null; null !== u && p.push(u); } - a = d(a, c); + a = c(a, d); return p.concat(a); } - function d(a, b) { - var l, m, p; - for (var c = a.oYa(b), f = [], g = 0, h = Object.keys(c); g < h.length; g++) { + function c(a, b) { + var l, n, p; + for (var d = a.e$a(b), f = [], g = 0, h = Object.keys(d); g < h.length; g++) { l = h[g]; - m = c[l]; - p = k(c[l]); - l = new t.hK(n.$o.t7, p.hI || l, p.j || p.tt); - l.Uc = m; + n = d[l]; + p = k(d[l]); + l = new t.nN(m.Gq.jca, p.qL || l, p.l || p.Iy); + l.Cc = n; f.push(l); } b = Object.getPrototypeOf(b.prototype).constructor; - b !== Object && (a = d(a, b), f = f.concat(a)); + b !== Object && (a = c(a, b), f = f.concat(a)); return f; } @@ -96758,11 +102275,11 @@ v7AA.H22 = function() { var d, f; c = Object.getPrototypeOf(c.prototype).constructor; if (c !== Object) { - d = u.getFunctionName(c); + d = q.getFunctionName(c); d = b(a, d, c, !0); f = d.map(function(a) { - return a.Uc.filter(function(a) { - return a.key === q.eD; + return a.Cc.filter(function(a) { + return a.key === n.PF; }); }); f = [].concat.apply([], f).length; @@ -96779,116 +102296,116 @@ v7AA.H22 = function() { b[a.key.toString()] = a.value; }); return { - j: b[q.tC], - tt: b[q.qu], - hI: b[q.IJ], - Uh: b[q.eD] + l: b[n.nF], + Iy: b[n.pw], + qL: b[n.WM], + Jg: b[n.PF] }; } - Object.defineProperty(c, "__esModule", { + Object.defineProperty(d, "__esModule", { value: !0 }); - g = a(419); - m = a(59); - n = a(78); - q = a(40); - u = a(132); - c.getFunctionName = u.getFunctionName; - t = a(418); - c.dXa = function(a, c) { + f = a(470); + l = a(54); + m = a(80); + n = a(32); + q = a(139); + d.getFunctionName = q.getFunctionName; + t = a(469); + d.L8a = function(a, c) { var d; - d = u.getFunctionName(c); + d = q.getFunctionName(c); return b(a, d, c, !1); }; - c.CWa = h; - }, function(f, c) { - Object.defineProperty(c, "__esModule", { + d.j8a = h; + }, function(g, d) { + Object.defineProperty(d, "__esModule", { value: !0 }); - c.eDa = function() { + d.sNa = function() { return function(a, b) { - this.PA = a; - this.E4 = b; + this.DD = a; + this.N9 = b; }; }(); - }, function(f, c, a) { + }, function(g, d, a) { var b; - Object.defineProperty(c, "__esModule", { + Object.defineProperty(d, "__esModule", { value: !0 }); - b = a(99); - f = function() { + b = a(104); + g = function() { function a(a) { this.id = b.id(); - this.kc = a; + this.Xb = a; } - a.prototype.VLa = function(a) { - this.RA = a; + a.prototype.dXa = function(a) { + this.GD = a; }; return a; }(); - c.z7 = f; - }, function(f, c) { - Object.defineProperty(c, "__esModule", { + d.pca = g; + }, function(g, d) { + Object.defineProperty(d, "__esModule", { value: !0 }); - c.iS = { - lhb: 2, - J$: 0, - nBa: 1 + d.iW = { + sxb: 2, + xfa: 0, + xLa: 1 }; - }, function(f, c, a) { - var g, m, n, q, u, t, z, w, A, x, y, C; + }, function(g, d, a) { + var f, l, m, n, q, t, v, y, w, D, z, A; - function b(a, b, c, f, h) { + function b(a, b, d, g, h) { var l, m; - l = k(c.kc, h.Td); + l = k(d.Xb, h.se); m = []; - l.length === g.iS.J$ && c.kc.options.lE && "function" === typeof h.Td && a.Gja(h.Td).bha && (c.kc.bind(h.Td).msa(), l = k(c.kc, h.Td)); + l.length === f.iW.xfa && d.Xb.options.$G && "function" === typeof h.se && a.gra(h.se).Jna && (d.Xb.bind(h.se).pBa(), l = k(d.Xb, h.se)); m = b ? l : l.filter(function(a) { var b; - b = new y.Request(a.Td, c, f, a, h); - return a.Fv(b); + b = new z.Request(a.se, d, g, a, h); + return a.PB(b); }); - d(h.Td, m, h, c.kc); + c(h.se, m, h, d.Xb); return m; } - function d(a, b, c, d) { + function c(a, b, c, d) { switch (b.length) { - case g.iS.J$: - if (c.Ela()) break; - a = t.$z(a); - b = m.IAa; - b += t.w0a(a, c); - b += t.oma(d, a, k); + case f.iW.xfa: + if (c.yta()) break; + a = t.IC(a); + b = l.bLa; + b += t.pdb(a, c); + b += t.iua(d, a, k); throw Error(b); - case g.iS.nBa: + case f.iW.xLa: if (!c.isArray()) break; default: - if (!c.isArray()) throw a = t.$z(a), b = m.rta + " " + a, b += t.oma(d, a, k), Error(b); + if (!c.isArray()) throw a = t.IC(a), b = l.DCa + " " + a, b += t.iua(d, a, k), Error(b); } } function h(a, c, d, f, g, k) { - var l; - null === g ? (c = b(a, c, f, null, k), l = new y.Request(d, f, null, c, k), d = new A.eDa(f, l), f.VLa(d)) : (c = b(a, c, f, g, k), l = g.ufa(k.Td, c, k)); + var n; + null === g ? (c = b(a, c, f, null, k), n = new z.Request(d, f, null, c, k), d = new w.sNa(f, n), f.dXa(d)) : (c = b(a, c, f, g, k), n = g.Kla(k.se, c, k)); c.forEach(function(b) { var c, d, g; c = null; - if (k.isArray()) c = l.ufa(b.Td, b, k); + if (k.isArray()) c = n.Kla(b.se, b, k); else { if (b.cache) return; - c = l; + c = n; } - if (b.type === n.Pg.ET && null !== b.ri) { - d = x.dXa(a, b.ri); - if (!f.kc.options.PH) { - g = x.CWa(a, b.ri); - if (d.length < g) throw b = m.wta(x.getFunctionName(b.ri)), Error(b); + if (b.type === m.kh.IX && null !== b.Wi) { + d = D.L8a(a, b.Wi); + if (!f.Xb.options.Fv) { + g = D.j8a(a, b.Wi); + if (d.length < g) throw b = l.ECa(D.getFunctionName(b.Wi)), Error(b); } d.forEach(function(b) { - h(a, !1, b.Td, f, c, b); + h(a, !1, b.se, f, c, b); }); } }); @@ -96897,99 +102414,99 @@ v7AA.H22 = function() { function k(a, b) { var c, d; c = []; - d = a.py; - d.Cka(b) ? c = d.get(b) : null !== a.parent && (c = k(a.parent, b)); + d = a.EA; + d.rsa(b) ? c = d.get(b) : null !== a.parent && (c = k(a.parent, b)); return c; } - Object.defineProperty(c, "__esModule", { - value: !0 - }); - g = a(900); - m = a(59); - n = a(78); - q = a(40); - u = a(420); - t = a(132); - z = a(899); - w = a(66); - A = a(898); - x = a(897); - y = a(895); - C = a(418); - c.D_ = function(a) { - return a.py; - }; - c.RA = function(a, b, c, d, f, g, k, l) { + Object.defineProperty(d, "__esModule", { + value: !0 + }); + f = a(1030); + l = a(54); + m = a(80); + n = a(32); + q = a(471); + t = a(139); + v = a(1029); + y = a(67); + w = a(1028); + D = a(1027); + z = a(1025); + A = a(469); + d.W3 = function(a) { + return a.EA; + }; + d.GD = function(a, b, c, d, f, g, k, l) { void 0 === l && (l = !1); - b = new z.z7(b); - c = new w.Metadata(c ? q.qu : q.tC, f); - d = new C.hK(d, "", f, c); - void 0 !== g && (g = new w.Metadata(g, k), d.Uc.push(g)); + b = new v.pca(b); + c = new y.Metadata(c ? n.pw : n.nF, f); + d = new A.nN(d, "", f, c); + void 0 !== g && (g = new y.Metadata(g, k), d.Cc.push(g)); try { return h(a, l, f, b, null, d), b; - } catch (V) { - throw u.Nla(V) && b.RA && t.aPa(b.RA.E4), V; + } catch (S) { + throw q.Ita(S) && b.GD && t.v_a(b.GD.N9), S; } }; - c.jmb = function(a, b, c, d) { - c = new C.hK(n.$o.ZU, "", b, new w.Metadata(c, d)); - a = new z.z7(a); - return new y.Request(b, a, null, [], c); + d.PCb = function(a, b, c, d) { + c = new A.nN(m.Gq.SY, "", b, new y.Metadata(c, d)); + a = new v.pca(a); + return new z.Request(b, a, null, [], c); }; - }, function(f, c, a) { - var b, d; - Object.defineProperty(c, "__esModule", { + }, function(g, d, a) { + var b, c; + Object.defineProperty(d, "__esModule", { value: !0 }); - b = a(78); - d = a(99); - f = function() { - function a(a, c) { - this.id = d.id(); - this.bX = !1; - this.Td = a; - this.scope = c; - this.type = b.Pg.Yya; - this.Fv = function() { + b = a(80); + c = a(104); + g = function() { + function a(a, d) { + this.id = c.id(); + this.T_ = !1; + this.se = a; + this.scope = d; + this.type = b.kh.aJa; + this.PB = function() { return !0; }; - this.Jz = this.mo = this.gj = this.Lj = this.cache = this.ri = null; + this.fC = this.Lp = this.Hj = this.Km = this.cache = this.Wi = null; } a.prototype.clone = function() { var b; - b = new a(this.Td, this.scope); - b.bX = !1; - b.ri = this.ri; - b.Jz = this.Jz; + b = new a(this.se, this.scope); + b.T_ = !1; + b.Wi = this.Wi; + b.fC = this.fC; b.scope = this.scope; b.type = this.type; - b.Lj = this.Lj; - b.gj = this.gj; - b.Fv = this.Fv; - b.mo = this.mo; + b.Km = this.Km; + b.Hj = this.Hj; + b.PB = this.PB; + b.Lp = this.Lp; b.cache = this.cache; return b; }; return a; }(); - c.pua = f; - }, function(f, c, a) { - var b, d, h, k, g, m, n, q, u, t, z, w; + d.LDa = g; + }, function(g, d, a) { + var b, c, h, k, f, l, m, n, q, t, v, y; b = this && this.__awaiter || function(a, b, c, d) { return new(c || (c = Promise))(function(f, g) { function h(a) { try { l(d.next(a)); - } catch (B) { - g(B); + } catch (U) { + g(U); } } function k(a) { try { l(d["throw"](a)); - } catch (B) { - g(B); + } catch (U) { + g(U); } } @@ -97001,7 +102518,7 @@ v7AA.H22 = function() { l((d = d.apply(a, b || [])).next()); }); }; - d = this && this.jkb || function(a, b) { + c = this && this.XAb || function(a, b) { var f, g, h, k, l; function c(a) { @@ -97031,26 +102548,26 @@ v7AA.H22 = function() { c = [0]; continue; case 7: - c = f.Kw.pop(); - f.wx.pop(); + c = f.Vy.pop(); + f.Jz.pop(); continue; default: - if (!(k = f.wx, k = 0 < k.length && k[k.length - 1]) && (6 === c[0] || 2 === c[0])) { + if (!(k = f.Jz, k = 0 < k.length && k[k.length - 1]) && (6 === c[0] || 2 === c[0])) { f = 0; continue; } if (3 === c[0] && (!k || c[1] > k[0] && c[1] < k[3])) f.label = c[1]; else if (6 === c[0] && f.label < k[1]) f.label = k[1], k = c; - else if (k && f.label < k[2]) f.label = k[2], f.Kw.push(c); + else if (k && f.label < k[2]) f.label = k[2], f.Vy.push(c); else { - k[2] && f.Kw.pop(); - f.wx.pop(); + k[2] && f.Vy.pop(); + f.Jz.pop(); continue; } } c = b.call(a, f); - } catch (B) { - c = [6, B]; + } catch (U) { + c = [6, U]; h = 0; } finally { g = k = 0; @@ -97063,16 +102580,16 @@ v7AA.H22 = function() { } f = { label: 0, - ara: function() { + LU: function() { if (k[0] & 1) throw k[1]; return k[1]; }, - wx: [], - Kw: [] + Jz: [], + Vy: [] }; - Ua(); - Ua(); - Za(); + La(); + La(); + Ya(); return l = { next: c(0), "throw": c(1), @@ -97081,56 +102598,56 @@ v7AA.H22 = function() { return this; }), l; }; - Object.defineProperty(c, "__esModule", { + Object.defineProperty(d, "__esModule", { value: !0 }); - h = a(902); - k = a(59); - g = a(78); - a(40); - m = a(421); - n = a(901); - q = a(894); - u = a(892); - t = a(99); - z = a(132); - a(889); - w = a(888); - f = function() { + h = a(1032); + k = a(54); + f = a(80); + a(32); + l = a(472); + m = a(1031); + n = a(1024); + q = a(1022); + t = a(104); + v = a(139); + a(1019); + y = a(1018); + g = function() { function a(a) { a = a || {}; - if ("object" !== typeof a) throw Error("" + k.Vua); - if (void 0 === a.Kv) a.Kv = g.am.iK; - else if (a.Kv !== g.am.LU && a.Kv !== g.am.iK && a.Kv !== g.am.Request) throw Error("" + k.Tua); - if (void 0 === a.lE) a.lE = !1; - else if ("boolean" !== typeof a.lE) throw Error("" + k.Sua); - if (void 0 === a.PH) a.PH = !1; - else if ("boolean" !== typeof a.PH) throw Error("" + k.Uua); + if ("object" !== typeof a) throw Error("" + k.uEa); + if (void 0 === a.Lx) a.Lx = f.gn.pN; + else if (a.Lx !== f.gn.GY && a.Lx !== f.gn.pN && a.Lx !== f.gn.Request) throw Error("" + k.sEa); + if (void 0 === a.$G) a.$G = !1; + else if ("boolean" !== typeof a.$G) throw Error("" + k.rEa); + if (void 0 === a.Fv) a.Fv = !1; + else if ("boolean" !== typeof a.Fv) throw Error("" + k.tEa); this.options = { - lE: a.lE, - Kv: a.Kv, - PH: a.PH + $G: a.$G, + Lx: a.Lx, + Fv: a.Fv }; this.id = t.id(); - this.py = new w.Aza(); - this.CKa = []; - this.parent = this.$V = null; - this.qIa = new m.UT(); + this.EA = new y.GJa(); + this.MVa = []; + this.parent = this.VZ = null; + this.hTa = new l.WX(); } - a.y2 = function(b, c) { + a.B7 = function(b, c) { var f, g; function d(a, b) { - a.Ibb(function(a, c) { + a.drb(function(a, c) { c.forEach(function(a) { - b.add(a.Td, a.clone()); + b.add(a.se, a.clone()); }); }); } f = new a(); - g = n.D_(f); - b = n.D_(b); - c = n.D_(c); + g = m.W3(f); + b = m.W3(b); + c = m.W3(c); d(b, g); d(c, g); return f; @@ -97138,29 +102655,29 @@ v7AA.H22 = function() { a.prototype.load = function() { var d, f; for (var a = [], b = 0; b < arguments.length; b++) a[b] = arguments[b]; - for (var b = this.uda(), c = 0; c < a.length; c++) { + for (var b = this.zja(), c = 0; c < a.length; c++) { d = a[c]; f = b(d.id); - d.l4(f.fga, f.Asa, f.Tla, f.Mpa); + d.s9(f.Oma, f.GBa, f.Nta, f.mya); } }; - a.prototype.kG = function() { - for (var a = [], c = 0; c < arguments.length; c++) a[c] = arguments[c]; + a.prototype.qJ = function() { + for (var a = [], d = 0; d < arguments.length; d++) a[d] = arguments[d]; return b(this, void 0, void 0, function() { - var b, c, f, g, h; - return d(this, function(d) { - switch (d.label) { + var b, d, f, g, h; + return c(this, function(c) { + switch (c.label) { case 0: - b = this.uda(), c = 0, f = a, d.label = 1; + b = this.zja(), d = 0, f = a, c.label = 1; case 1: - if (!(c < f.length)) return [3, 4]; - g = f[c]; + if (!(d < f.length)) return [3, 4]; + g = f[d]; h = b(g.id); - return [4, g.l4(h.fga, h.Asa, h.Tla, h.Mpa)]; + return [4, g.s9(h.Oma, h.GBa, h.Nta, h.mya)]; case 2: - d.ara(), d.label = 3; + c.LU(), c.label = 3; case 3: - return c++, [3, 1]; + return d++, [3, 1]; case 4: return [2]; } @@ -97169,165 +102686,165 @@ v7AA.H22 = function() { }; a.prototype.bind = function(a) { var b; - b = new h.pua(a, this.options.Kv || g.am.iK); - this.py.add(a, b); - return new u.rua(b); + b = new h.LDa(a, this.options.Lx || f.gn.pN); + this.EA.add(a, b); + return new q.NDa(b); }; - a.prototype.V6a = function(a) { - this.zsa(a); + a.prototype.Tkb = function(a) { + this.FBa(a); return this.bind(a); }; - a.prototype.zsa = function(a) { + a.prototype.FBa = function(a) { try { - this.py.remove(a); - } catch (y) { - throw Error(k.Eua + " " + z.$z(a)); + this.EA.remove(a); + } catch (z) { + throw Error(k.cEa + " " + v.IC(a)); } }; - a.prototype.vla = function(a) { + a.prototype.rta = function(a) { var b; - b = this.py.Cka(a); - !b && this.parent && (b = this.parent.vla(a)); + b = this.EA.rsa(a); + !b && this.parent && (b = this.parent.rta(a)); return b; }; a.prototype.restore = function() { var a; - a = this.CKa.pop(); - if (void 0 === a) throw Error(k.JAa); - this.py = a.nE; - this.$V = a.y2a; + a = this.MVa.pop(); + if (void 0 === a) throw Error(k.cLa); + this.EA = a.bH; + this.VZ = a.Gfb; }; - a.prototype.yRa = function() { + a.prototype.Z1a = function() { var b; b = new a(this.options); b.parent = this; return b; }; a.prototype.get = function(a) { - return this.sda(!1, !1, g.$o.ZU, a); + return this.xja(!1, !1, f.Gq.SY, a); }; a.prototype.getAll = function(a) { - return this.sda(!0, !0, g.$o.ZU, a); + return this.xja(!0, !0, f.Gq.SY, a); }; a.prototype.resolve = function(a) { var b; - b = this.yRa(); - b.bind(a).msa(); + b = this.Z1a(); + b.bind(a).pBa(); return b.get(a); }; - a.prototype.uda = function() { + a.prototype.zja = function() { var f; function a(a) { return function(b) { - b = f.V6a.bind(f)(b); - b.ob.M2a = a; + b = f.Tkb.bind(f)(b); + b.ub.egb = a; return b; }; } function b() { return function(a) { - return f.vla.bind(f)(a); + return f.rta.bind(f)(a); }; } function c() { return function(a) { - f.zsa.bind(f)(a); + f.FBa.bind(f)(a); }; } function d(a) { return function(b) { b = f.bind.bind(f)(b); - b.ob.M2a = a; + b.ub.egb = a; return b; }; } f = this; return function(f) { return { - fga: d(f), - Tla: b(), - Mpa: a(f), - Asa: c() + Oma: d(f), + Nta: b(), + mya: a(f), + GBa: c() }; }; }; - a.prototype.sda = function(a, b, c, d) { + a.prototype.xja = function(a, b, c, d) { var f; f = null; a = { - rNa: a, - IPa: function(a) { + BYa: a, + h0a: function(a) { return a; }, - K_a: b, + rcb: b, key: void 0, - Td: d, - Fab: c, + se: d, + aqb: c, value: void 0 }; - if (this.$V) { - if (f = this.$V(a), void 0 === f || null === f) throw Error(k.Hya); - } else f = this.JJa()(a); + if (this.VZ) { + if (f = this.VZ(a), void 0 === f || null === f) throw Error(k.JIa); + } else f = this.FUa()(a); return f; }; - a.prototype.JJa = function() { + a.prototype.FUa = function() { var a; a = this; return function(b) { var c; - c = n.RA(a.qIa, a, b.K_a, b.Fab, b.Td, b.key, b.value, b.rNa); - c = b.IPa(c); - return q.resolve(c); + c = m.GD(a.hTa, a, b.rcb, b.aqb, b.se, b.key, b.value, b.BYa); + c = b.h0a(c); + return n.resolve(c); }; }; return a; }(); - c.eC = f; - }, function(f, c, a) { + d.WE = g; + }, function(g, d, a) { (function(a) { var b; (function(b) { - var aa, V, D, S, da, X, U, fa, ba; + var ba, S, T, H, X, aa, ca, Z, Q; function c(a, b, c) { var d; - d = ba.get(a); + d = Q.get(a); if (!d) { if (!c) return; - d = new U(); - ba.set(a, d); + d = new ca(); + Q.set(a, d); } a = d.get(b); if (!a) { if (!c) return; - a = new U(); + a = new ca(); d.set(b, a); } return a; } function d(a, b, c) { - if (f(a, b, c)) return !0; - b = y(b); + if (g(a, b, c)) return !0; + b = z(b); return null !== b ? d(a, b, c) : !1; } - function f(a, b, d) { + function g(a, b, d) { b = c(b, d, !1); return void 0 !== b && !!b.has(a); } function h(a, b, c) { - if (f(a, b, c)) return k(a, b, c); - b = y(b); + if (g(a, b, c)) return l(a, b, c); + b = z(b); return null !== b ? h(a, b, c) : void 0; } - function k(a, b, d) { + function l(a, b, d) { b = c(b, d, !1); return void 0 === b ? void 0 : b.get(a); } @@ -97335,50 +102852,50 @@ v7AA.H22 = function() { function n(a, b) { var c, f; c = q(a, b); - a = y(a); + a = z(a); if (null === a) return c; b = n(a, b); if (0 >= b.length) return c; if (0 >= c.length) return b; - a = new fa(); + a = new Z(); for (var d = 0; d < c.length; d++) { f = c[d]; a.add(f); } for (c = 0; c < b.length; c++) f = b[c], a.add(f); - return H(a); + return F(a); } function q(a, b) { var d; a = c(a, b, !1); d = []; - a && F(a, function(a, b) { + a && G(a, function(a, b) { return d.push(b); }); return d; } - function z(a) { + function t(a) { return void 0 === a; } - function w(a) { + function y(a) { return Array.isArray ? Array.isArray(a) : a instanceof Array || "[object Array]" === Object.prototype.toString.call(a); } - function A(a) { + function w(a) { return "object" === typeof a ? null !== a : "function" === typeof a; } - function x(a) { + function D(a) { return "symbol" === typeof a ? a : String(a); } - function y(a) { + function z(a) { var b, c; b = Object.getPrototypeOf(a); - if ("function" !== typeof a || a === X || b !== X) return b; + if ("function" !== typeof a || a === aa || b !== aa) return b; c = a.prototype; c = c && Object.getPrototypeOf(c); if (null == c || c === Object.prototype) return b; @@ -97386,18 +102903,18 @@ v7AA.H22 = function() { return "function" !== typeof c || c === a ? b : c; } - function C(a) { + function E(a) { a = a.next(); return a.done ? void 0 : a; } - function F(a, b) { + function G(a, b) { var c, d, f; c = a.entries; if ("function" === typeof c) { c = c.call(a); try { - for (; d = C(c);) { + for (; d = E(c);) { f = d.value; b.call(void 0, f[1], f[0], a); } @@ -97407,16 +102924,16 @@ v7AA.H22 = function() { } else c = a.forEach, "function" === typeof c && c.call(a, b, void 0); } - function H(a) { + function F(a) { var b; b = []; - F(a, function(a, c) { + G(a, function(a, c) { b.push(c); }); return b; } - function P(a, b, c) { + function R(a, b, c) { var d; d = 0; return { @@ -97427,18 +102944,15 @@ v7AA.H22 = function() { switch (c) { case "key": return { - value: a[f], - done: !1 + value: a[f], done: !1 }; case "value": return { - value: b[f], - done: !1 + value: b[f], done: !1 }; case "key+value": return { - value: [a[f], b[f]], - done: !1 + value: [a[f], b[f]], done: !1 }; } } @@ -97462,113 +102976,113 @@ v7AA.H22 = function() { }; } - function Y() { + function N() { var a; a = {}; return function() { function b() { - this.im = []; - this.Bj = []; - this.CK = a; - this.BK = -2; + this.wn = []; + this.dk = []; + this.LN = a; + this.KN = -2; } Object.defineProperty(b.prototype, "size", { get: function() { - return this.im.length; + return this.wn.length; }, enumerable: !0, configurable: !0 }); b.prototype.has = function(a) { - return 0 <= this.WK(a, !1); + return 0 <= this.dO(a, !1); }; b.prototype.get = function(a) { - a = this.WK(a, !1); - return 0 <= a ? this.Bj[a] : void 0; + a = this.dO(a, !1); + return 0 <= a ? this.dk[a] : void 0; }; b.prototype.set = function(a, b) { - a = this.WK(a, !0); - this.Bj[a] = b; + a = this.dO(a, !0); + this.dk[a] = b; return this; }; b.prototype["delete"] = function(b) { var c; - c = this.WK(b, !1); + c = this.dO(b, !1); if (0 <= c) { - b = this.im.length; - for (c += 1; c < b; c++) this.im[c - 1] = this.im[c], this.Bj[c - 1] = this.Bj[c]; - this.im.length--; - this.Bj.length--; - this.CK = a; - this.BK = -2; + b = this.wn.length; + for (c += 1; c < b; c++) this.wn[c - 1] = this.wn[c], this.dk[c - 1] = this.dk[c]; + this.wn.length--; + this.dk.length--; + this.LN = a; + this.KN = -2; return !0; } return !1; }; b.prototype.clear = function() { - this.im.length = 0; - this.Bj.length = 0; - this.CK = a; - this.BK = -2; + this.wn.length = 0; + this.dk.length = 0; + this.LN = a; + this.KN = -2; }; b.prototype.keys = function() { - return P(this.im, void 0, "key"); + return R(this.wn, void 0, "key"); }; b.prototype.values = function() { - return P(void 0, this.Bj, "value"); + return R(void 0, this.dk, "value"); }; b.prototype.entries = function() { - return P(this.im, this.Bj, "key+value"); + return R(this.wn, this.dk, "key+value"); }; - b.prototype.WK = function(a, b) { + b.prototype.dO = function(a, b) { var c; - if (this.CK === a) return this.BK; - c = this.im.indexOf(a); - 0 > c && b && (c = this.im.length, this.im.push(a), this.Bj.push(void 0)); - return this.CK = a, this.BK = c; + if (this.LN === a) return this.KN; + c = this.wn.indexOf(a); + 0 > c && b && (c = this.wn.length, this.wn.push(a), this.dk.push(void 0)); + return this.LN = a, this.KN = c; }; return b; }(); } - function Z() { + function O() { return function() { function a() { - this.Bh = new U(); + this.Xh = new ca(); } Object.defineProperty(a.prototype, "size", { get: function() { - return this.Bh.size; + return this.Xh.size; }, enumerable: !0, configurable: !0 }); a.prototype.has = function(a) { - return this.Bh.has(a); + return this.Xh.has(a); }; a.prototype.add = function(a) { - return this.Bh.set(a, a), this; + return this.Xh.set(a, a), this; }; a.prototype["delete"] = function(a) { - return this.Bh["delete"](a); + return this.Xh["delete"](a); }; a.prototype.clear = function() { - this.Bh.clear(); + this.Xh.clear(); }; a.prototype.keys = function() { - return this.Bh.keys(); + return this.Xh.keys(); }; a.prototype.values = function() { - return this.Bh.values(); + return this.Xh.values(); }; a.prototype.entries = function() { - return this.Bh.entries(); + return this.Xh.entries(); }; return a; }(); } - function O() { + function Y() { var d, f; function a(a) { @@ -97589,57 +103103,57 @@ v7AA.H22 = function() { c += g.toString(16).toLowerCase(); } b = "@@WeakMap@@" + c; - } while (da.has(d, b)); + } while (X.has(d, b)); d[b] = !0; return b; } function c(a, b) { - if (!aa.call(a, f)) { + if (!ba.call(a, f)) { if (!b) return; Object.defineProperty(a, f, { - value: S() + value: H() }); } return a[f]; } - d = S(); + d = H(); f = b(); return function() { function a() { - this.Ru = b(); + this.Xw = b(); } a.prototype.has = function(a) { a = c(a, !1); - return void 0 !== a ? da.has(a, this.Ru) : !1; + return void 0 !== a ? X.has(a, this.Xw) : !1; }; a.prototype.get = function(a) { a = c(a, !1); - return void 0 !== a ? da.get(a, this.Ru) : void 0; + return void 0 !== a ? X.get(a, this.Xw) : void 0; }; a.prototype.set = function(a, b) { - c(a, !0)[this.Ru] = b; + c(a, !0)[this.Xw] = b; return this; }; a.prototype["delete"] = function(a) { a = c(a, !1); - return void 0 !== a ? delete a[this.Ru] : !1; + return void 0 !== a ? delete a[this.Xw] : !1; }; a.prototype.clear = function() { - this.Ru = b(); + this.Xw = b(); }; return a; }(); } - function B(a) { - a.hkb = 1; - delete a.ikb; + function U(a) { + a.VAb = 1; + delete a.WAb; return a; } - aa = Object.prototype.hasOwnProperty; - V = "function" === typeof Object.create; - D = function() { + ba = Object.prototype.hasOwnProperty; + S = "function" === typeof Object.create; + T = function() { var b; function a() {} @@ -97647,274 +103161,251 @@ v7AA.H22 = function() { a.prototype = b; return new a().__proto__ === b; }(); - S = V ? function() { - return B(Object.create(null)); - } : D ? function() { - return B({ + H = S ? function() { + return U(Object.create(null)); + } : T ? function() { + return U({ __proto__: null }); } : function() { - return B({}); + return U({}); }; (function(a) { var b; - b = !V && !D; + b = !S && !T; a.has = b ? function(a, b) { - return aa.call(a, b); + return ba.call(a, b); } : function(a, b) { return b in a; }; a.get = b ? function(a, b) { - return aa.call(a, b) ? a[b] : void 0; + return ba.call(a, b) ? a[b] : void 0; } : function(a, b) { return a[b]; }; - }(da || (da = {}))); - X = Object.getPrototypeOf(Function); - U = "function" === typeof Map ? Map : Y(); - fa = "function" === typeof Set ? Set : Z(); - ba = new("function" === typeof WeakMap ? WeakMap : (O()))(); - b.Fs = function(a, b, c, d) { + }(X || (X = {}))); + aa = Object.getPrototypeOf(Function); + ca = "function" === typeof Map ? Map : N(); + Z = "function" === typeof Set ? Set : O(); + Q = new("function" === typeof WeakMap ? WeakMap : (Y()))(); + b.vu = function(a, b, c, d) { var g; - if (z(d)) { - if (z(c)) { - if (!w(a)) throw new TypeError(); + if (t(d)) { + if (t(c)) { + if (!y(a)) throw new TypeError(); if ("function" !== typeof b) throw new TypeError(); for (c = a.length - 1; 0 <= c; --c) - if (d = (0, a[c])(b), !z(d)) { + if (d = (0, a[c])(b), !t(d)) { if ("function" !== typeof d) throw new TypeError(); b = d; } return b; } - if (!w(a)) throw new TypeError(); - if (!A(b)) throw new TypeError(); - c = x(c); + if (!y(a)) throw new TypeError(); + if (!w(b)) throw new TypeError(); + c = D(c); for (d = a.length - 1; 0 <= d; --d)(0, a[d])(b, c); } else { - if (!w(a)) throw new TypeError(); - if (!A(b)) throw new TypeError(); - if (z(c)) throw new TypeError(); - if (!A(d)) throw new TypeError(); - c = x(c); + if (!y(a)) throw new TypeError(); + if (!w(b)) throw new TypeError(); + if (t(c)) throw new TypeError(); + if (!w(d)) throw new TypeError(); + c = D(c); for (var f = a.length - 1; 0 <= f; --f) { g = (0, a[f])(b, c, d); - if (!z(g)) { - if (!A(g)) throw new TypeError(); + if (!t(g)) { + if (!w(g)) throw new TypeError(); d = g; } } return d; } }; - b.Uc = function(a, b) { + b.Cc = function(a, b) { return function(d, f) { - if (z(f)) { + if (t(f)) { if ("function" !== typeof d) throw new TypeError(); c(d, void 0, !0).set(a, b); } else { - if (!A(d)) throw new TypeError(); - f = x(f); + if (!w(d)) throw new TypeError(); + f = D(f); c(d, f, !0).set(a, b); } }; }; - b.yZ = function(a, b, d) { + b.u2 = function(a, b, d) { var f; - if (!A(d)) throw new TypeError(); - z(f) || (f = x(f)); + if (!w(d)) throw new TypeError(); + t(f) || (f = D(f)); c(d, f, !0).set(a, b); }; - b.vZa = function(a, b) { + b.Oab = function(a, b) { var c; - if (!A(b)) throw new TypeError(); - z(c) || (c = x(c)); + if (!w(b)) throw new TypeError(); + t(c) || (c = D(c)); return d(a, b, c); }; - b.m0 = function(a, b) { + b.b5 = function(a, b) { var c; - if (!A(b)) throw new TypeError(); - z(c) || (c = x(c)); - return f(a, b, c); + if (!w(b)) throw new TypeError(); + t(c) || (c = D(c)); + return g(a, b, c); }; b.getMetadata = function(a, b, c) { - if (!A(b)) throw new TypeError(); - z(c) || (c = x(c)); + if (!w(b)) throw new TypeError(); + t(c) || (c = D(c)); return h(a, b, c); }; - b.aob = function(a, b, c) { - if (!A(b)) throw new TypeError(); - z(c) || (c = x(c)); - return k(a, b, c); + b.LEb = function(a, b, c) { + if (!w(b)) throw new TypeError(); + t(c) || (c = D(c)); + return l(a, b, c); }; - b.Ynb = function(a, b) { - if (!A(a)) throw new TypeError(); - z(b) || (b = x(b)); + b.JEb = function(a, b) { + if (!w(a)) throw new TypeError(); + t(b) || (b = D(b)); return n(a, b); }; - b.bob = function(a, b) { - if (!A(a)) throw new TypeError(); - z(b) || (b = x(b)); + b.MEb = function(a, b) { + if (!w(a)) throw new TypeError(); + t(b) || (b = D(b)); return q(a, b); }; - b.Jmb = function(a, b, d) { + b.rDb = function(a, b, d) { var f; - if (!A(b)) throw new TypeError(); - z(d) || (d = x(d)); + if (!w(b)) throw new TypeError(); + t(d) || (d = D(d)); f = c(b, d, !1); - if (z(f) || !f["delete"](a)) return !1; + if (t(f) || !f["delete"](a)) return !1; if (0 < f.size) return !0; - a = ba.get(b); + a = Q.get(b); a["delete"](d); if (0 < a.size) return !0; - ba["delete"](b); + Q["delete"](b); return !0; }; (function(a) { if ("undefined" !== typeof a.Reflect) { if (a.Reflect !== b) - for (var c in b) aa.call(b, c) && (a.Reflect[c] = b[c]); + for (var c in b) ba.call(b, c) && (a.Reflect[c] = b[c]); } else a.Reflect = b; - }("undefined" !== typeof t ? t : "undefined" !== typeof WorkerGlobalScope ? self : "undefined" !== typeof a ? a : Function("return this;")())); + }("undefined" !== typeof A ? A : "undefined" !== typeof WorkerGlobalScope ? self : "undefined" !== typeof a ? a : Function("return this;")())); }(b || (b = {}))); - }.call(this, a(162))); - }, function(f, c, a) { - Object.defineProperty(c, "__esModule", { + }.call(this, a(169))); + }, function(g, d, a) { + Object.defineProperty(d, "__esModule", { value: !0 }); - a(904); - t._cad_global = {}; - t.DEBUG = !1; - a(6); + a(1034); + A._cad_global = {}; + A.DEBUG = !1; a(5); + a(6); a(15); - a(19); - a(36); - a(25); - a(80); - a(307); - a(196); - a(32); - a(17); - a(8); - a(91); - a(57); - a(60); - a(550); - a(306); - a(305); - a(103); - a(549); - a(138); - a(51); a(18); - a(548); - a(547); - a(195); - a(546); - a(304); - a(545); - a(194); - a(193); - a(303); - a(302); - a(301); - a(300); - a(299); - a(298); - a(192); - a(297); - a(296); - a(295); - a(293); - a(120); - a(136); - a(544); - a(543); - a(4); - a(292); - a(542); - a(90); - a(28); - a(541); - a(291); - a(191); - a(122); - a(330); - a(329); - a(143); - a(540); + a(33); + a(25); + a(95); + a(281); + a(378); + a(42); + a(21); + a(12); + a(68); + a(55); + a(510); + a(509); + a(155); + a(423); + a(19); + a(508); + a(507); + a(173); + a(506); + a(253); a(190); - a(331); + a(346); + a(275); + a(268); + a(270); + a(269); + a(252); + a(251); + a(250); + a(291); a(290); - a(539); - a(89); - a(189); - a(102); - a(538); - a(535); a(288); - a(187); - a(184); - a(92); - a(119); - a(183); - a(285); - a(182); - a(247); - a(255); - a(134); - a(246); + a(126); + a(179); + a(505); + a(504); + a(9); + a(264); + a(503); + a(93); + a(34); + a(274); + a(128); + a(345); + a(344); + a(189); + a(502); + a(172); + a(315); + a(287); + a(501); + a(105); a(141); - a(135); - a(281); - a(118); + a(500); + a(499); + a(323); + a(177); + a(97); + a(327); + a(178); + a(292); + a(498); + a(140); + a(266); + a(144); + a(176); + a(280); + a(125); a(284); - a(450); + a(497); a(282); - a(87); - a(449); - a(448); - a(447); - a(446); - a(445); - a(244); - a(248); - a(16); - a(242); - a(444); - a(245); - a(251); - a(254); - a(73); - a(443); + a(94); + a(496); + a(495); + a(494); + a(493); + a(492); + a(267); + a(41); + a(491); + a(265); + a(272); + a(276); + a(343); a(283); - a(186); - a(253); - a(249); - a(442); - a(250); - a(252); - a(185); - a(441); - a(243); - a(188); - a(440); - a(439); - a(289); - a(286); - a(165); - a(241); - a(115); - a(438); - a(437); - a(436); - a(435); - a(434); - a(427); - a(424); - a(81); - a(167); - }, function(f, c, a) { - f.P = a(905); + a(271); + a(273); + a(263); + a(187); + a(490); + a(489); + a(325); + a(296); + a(258); + a(124); + a(488); + a(487); + a(486); + a(485); + a(484); + a(477); + a(474); + a(278); + }, function(g, d, a) { + g.M = a(1035); }])); }(window)); \ No newline at end of file diff --git a/src/content_script.js b/src/content_script.js index de2dada..2a4fcb9 100644 --- a/src/content_script.js +++ b/src/content_script.js @@ -1,20 +1,11 @@ // From EME Logger extension -script_urls = [ - 'https://cdn.rawgit.com/ricmoo/aes-js/master/index.js', - 'https://cdn.rawgit.com/Caligatio/jsSHA/master/src/sha.js' -] - urls = [ + 'aes.js', // https://cdn.rawgit.com/ricmoo/aes-js/master/index.js + 'sha.js', // https://cdn.rawgit.com/Caligatio/jsSHA/master/src/sha.js 'get_manifest.js' ] -for (var i = 0; i < script_urls.length; i++) { - var script = document.createElement('script'); - script.src = script_urls[i]; - document.documentElement.appendChild(script); -} - for (var i = 0; i < urls.length; i++) { var mainScriptUrl = chrome.extension.getURL(urls[i]); @@ -31,5 +22,5 @@ for (var i = 0; i < urls.length; i++) { } }; - xhr.send(); + xhr.send(); } diff --git a/src/get_manifest.js b/src/get_manifest.js index 2a4fa54..515f590 100644 --- a/src/get_manifest.js +++ b/src/get_manifest.js @@ -50,19 +50,14 @@ function generateEsn() { return text; } -var manifestUrl = "https://www.netflix.com/api/msl/cadmium/manifest"; +var manifestUrl = "https://www.netflix.com/nq/msl_v1/cadmium/pbo_manifests/^1.0.0/router"; +var licenseUrl = "https://www.netflix.com/nq/msl_v1/cadmium/pbo_licenses/^1.0.0/router"; var shaktiMetadataUrl = "https://www.netflix.com/api/shakti/d7cab521/metadata?movieid="; -var esn = "NFCDIE-02-" + generateEsn(); +var defaultEsn = "NFCDIE-04-" + generateEsn(); var profiles = [ "playready-h264mpl30-dash", "playready-h264mpl31-dash", "playready-h264mpl40-dash", - "playready-h264hpl30-dash", - "playready-h264hpl31-dash", - "playready-h264hpl40-dash", - "vp9-profile0-L30-dash-cenc", - "vp9-profile0-L31-dash-cenc", - "vp9-profile0-L40-dash-cenc", "heaac-2-dash", "simplesdh", "nflx-cmisc", @@ -71,28 +66,22 @@ var profiles = [ ]; -if(use6Channels) +if(window.use6Channels) profiles.push("heaac-5.1-dash"); var messageid = Math.floor(Math.random() * 2**52); var header = { - "sender": esn, - "handshake": true, - "nonreplayable": false, + "sender": defaultEsn, + "renewable": true, "capabilities": { - "languages": [ - "en-US" - ], + "languages": ["en-US"], "compressionalgos": [""] }, - "recipient": "Netflix", - "renewable": true, "messageid": messageid, - "timestamp": Math.round((new Date()).getTime() / 1000), }; async function getViewableId(viewableIdPath) { - console.log('Getting video metadata for ID ' + viewableIdPath); + console.log("Getting video metadata for ID " + viewableIdPath); var apiResp = await fetch( shaktiMetadataUrl + viewableIdPath, @@ -103,7 +92,7 @@ async function getViewableId(viewableIdPath) { ); var apiJson = await apiResp.json(); - console.log('Metadata response:'); + console.log("Metadata response:"); console.log(apiJson); var viewableId = apiJson.video.currentEpisode; @@ -115,6 +104,7 @@ async function getViewableId(viewableIdPath) { } async function performKeyExchange() { + delete header.userauthdata; var keyPair = await window.crypto.subtle.generateKey( { name: "RSA-OAEP", @@ -131,35 +121,46 @@ async function performKeyExchange() { keyPair.publicKey ); - header.handshake = true; - delete header.userauthdata; header.keyrequestdata = [ { "scheme": "ASYMMETRIC_WRAPPED", "keydata": { "publickey": arrayBufferToBase64(publicKey), "mechanism": "JWK_RSA", - "keypairid": "superKeyPair" + "keypairid": "rsaKeypairId" } } ]; - var request = { + var headerenvelope = { "entityauthdata": { "scheme": "NONE", "authdata": { - "identity": esn, + "identity": defaultEsn, } }, "signature": "", }; - request.headerdata = btoa(JSON.stringify(header)); + headerenvelope.headerdata = btoa(JSON.stringify(header)); + + var payload = { + "signature": "" + }; + + payload.payload = btoa(JSON.stringify({ + "sequencenumber": 1, + "messageid": messageid, + "endofmsg": true, + "data": "" + })); + + var request = JSON.stringify(headerenvelope) + JSON.stringify(payload); var handshakeResp = await fetch( manifestUrl, { - body: JSON.stringify(request), + body: request, method: "POST" } ); @@ -198,61 +199,17 @@ async function performKeyExchange() { }; } -async function getManifest() { - console.log('Performing key exchange'); - var keyExchangeData = await performKeyExchange(); - console.log('Key exchange data:'); - console.log(keyExchangeData); - - var headerdata = keyExchangeData.headerdata; - var encryptionKeyData = keyExchangeData.encryptionKeyData; - var signKeyData = keyExchangeData.signKeyData; - var mastertoken = headerdata.keyresponsedata.mastertoken; - var sequenceNumber = JSON.parse(atob(mastertoken.tokendata)).sequencenumber; - var viewableIdPath = window.location.pathname.substring(7, 15); - var viewableId = await getViewableId(viewableIdPath); - - var localeId = "en-US"; - try { - localeId = netflix.appContext.state.model.models.memberContext.data.geo.locale.id; - } catch (e) {} - - var manifestRequestData = { - "method": "manifest", - "lookupType": "STANDARD", - "viewableIds": [viewableId], - "profiles": profiles, - "drmSystem": "widevine", - "appId": "14673889385265", - "sessionParams": { - "pinCapableClient": false, - "uiplaycontext": "null" - }, - "sessionId": "14673889385265", - "trackId": 0, - "flavor": "STANDARD", - "secureUrls": true, - "supportPreviewContent": true, - "showAllSubDubTracks": false, - "forceClearStreams": false, - "languages": [localeId], - }; - - header.handshake = false; - header.userauthdata = { - "scheme": "NETFLIXID", - "authdata": {} - }; - +async function generateMslRequestData(data) { var iv = window.crypto.getRandomValues(new Uint8Array(16)); var aesCbc = new aesjs.ModeOfOperation.cbc( base64ToArrayBuffer(padBase64(encryptionKeyData.k)), iv ); + var textBytes = aesjs.utils.utf8.toBytes(JSON.stringify(header)); var encrypted = aesCbc.encrypt(aesjs.padding.pkcs7.pad(textBytes)); var encryptionEnvelope = { - "keyid": esn + "_" + sequenceNumber, + "keyid": defaultEsn + "_" + sequenceNumber, "sha256": "AA==", "iv": arrayBufferToBase64(iv), "ciphertext": arrayBufferToBase64(encrypted) @@ -269,20 +226,9 @@ async function getManifest() { encryptedHeader.headerdata = btoa(JSON.stringify(encryptionEnvelope)); - var serializedData = [{ - }, { - "headers": {}, - "path": "/cbp/cadmium-13", - "payload": { - "data": JSON.stringify(manifestRequestData).replace('"', '\"') - }, - "query": "" - }]; - var firstPayload = { "messageid": messageid, - "data": btoa(JSON.stringify(serializedData)), - "compressionalgos": [""], + "data": btoa(JSON.stringify(data)), "sequencenumber": 1, "endofmsg": true }; @@ -297,7 +243,7 @@ async function getManifest() { encrypted = aesCbc.encrypt(aesjs.padding.pkcs7.pad(textBytes)); encryptionEnvelope = { - "keyid": esn + "_" + sequenceNumber, + "keyid": defaultEsn + "_" + sequenceNumber, "sha256": "AA==", "iv": arrayBufferToBase64(iv), "ciphertext": arrayBufferToBase64(encrypted) @@ -312,26 +258,19 @@ async function getManifest() { "signature": signature, "payload": btoa(JSON.stringify(encryptionEnvelope)) }; - - var manifestResp = await fetch( - manifestUrl, - { - body: JSON.stringify(encryptedHeader) + JSON.stringify(firstPayloadChunk), - credentials: "same-origin", - method: "POST" - } - ); - manifestResp = await manifestResp.text(); + return JSON.stringify(encryptedHeader) + JSON.stringify(firstPayloadChunk); +} +async function decryptMslResponse(data) { try { - JSON.parse(manifestResp); - console.error(JSON.parse(atob(JSON.parse(manifestResp).errordata))); - throw("Error parsing manifest"); + JSON.parse(data); + console.error(JSON.parse(atob(JSON.parse(data).errordata))); + throw("Error parsing data"); } catch (e) {} var pattern = /,"signature":"[0-9A-Za-z/+=]+"}/; - var payloadsSplit = manifestResp.split("}}")[1].split(pattern); + var payloadsSplit = data.split("}}")[1].split(pattern); payloadsSplit.pop(); var payloadChunks = []; for (var i = 0; i < payloadsSplit.length; i++) { @@ -362,15 +301,135 @@ async function getManifest() { chunks += atob(plaintext.data); } - var manifest = JSON.parse(atob(JSON.parse(chunks)[1].payload.data)); + var decrypted = JSON.parse(chunks); - if (!manifest.success) { - console.error(manifest); - throw("Error parsing manifest"); + if (!decrypted.result) { + console.error(decrypted); + throw("Error parsing decrypted data"); } - console.log('Manifest:'); + return decrypted.result; +} + +async function getManifest(esn=defaultEsn) { + defaultEsn = esn; + console.log("Performing key exchange"); + keyExchangeData = await performKeyExchange(); + console.log("Key exchange data:"); + console.log(keyExchangeData); + + headerdata = keyExchangeData.headerdata; + encryptionKeyData = keyExchangeData.encryptionKeyData; + signKeyData = keyExchangeData.signKeyData; + mastertoken = headerdata.keyresponsedata.mastertoken; + sequenceNumber = JSON.parse(atob(mastertoken.tokendata)).sequencenumber; + viewableIdPath = window.location.pathname.substring(7, 15); + viewableId = await getViewableId(viewableIdPath); + + localeId = "en-US"; + try { + localeId = netflix.appContext.state.model.models.memberContext.data.geo.locale.id; + } catch (e) {} + + var manifestRequestData = { + "version": 2, + "url": "/manifest", + "id": Date.now(), + "esn": defaultEsn, + "languages": [localeId], + "uiVersion": "shakti-v4bf615c3", + "clientVersion": "6.0015.328.011", + "params": { + "type": "standard", + "viewableId": viewableId, + "profiles": profiles, + "flavor": "STANDARD", + "drmType": "widevine", + "drmVersion": 25, + "usePsshBox": true, + "isBranching": false, + "useHttpsStreams": true, + "imageSubtitleHeight": 720, + "uiVersion": "shakti-v4bf615c3", + "clientVersion": "6.0015.328.011", + "supportsPreReleasePin": true, + "supportsWatermark": true, + "showAllSubDubTracks": false, + "videoOutputInfo": [ + { + "type": "DigitalVideoOutputDescriptor", + "outputType": "unknown", + "supportedHdcpVersions": ['1.4'], + "isHdcpEngaged": true + } + ], + "preferAssistiveAudio": false, + "isNonMember": false + } + }; + + header.userauthdata = { + "scheme": "NETFLIXID", + "authdata": {} + }; + + var encryptedManifestRequest = await generateMslRequestData(manifestRequestData); + + var manifestResp = await fetch( + manifestUrl, + { + body: encryptedManifestRequest, + credentials: "same-origin", + method: "POST", + headers: {"Content-Type": "application/json"} + } + ); + + manifestResp = await manifestResp.text(); + var manifest = await decryptMslResponse(manifestResp); + + console.log("Manifest:"); console.log(manifest); + licensePath = manifest.links.license.href; + return manifest; } + +async function getLicense(challenge, sessionId) { + licenseRequestData = { + "version": 2, + "url": licensePath, + "id": Date.now(), + "esn": defaultEsn, + "languages": [localeId], + "uiVersion": "shakti-v4bf615c3", + "clientVersion": "6.0015.328.011", + "params": [{ + "sessionId": sessionId, + "clientTime": Math.floor(Date.now() / 1000), + "challengeBase64": challenge, + "xid": Math.floor((Math.floor(Date.now() / 1000) + 0.1612) * 1000) + }], + "echo": "sessionId" + }; + + var encryptedLicenseRequest = await generateMslRequestData(licenseRequestData); + var licenseResp = await fetch( + licenseUrl, + { + body: encryptedLicenseRequest, + credentials: "same-origin", + method: "POST", + headers: {"Content-Type": "application/json"} + } + ); + + licenseResp = await licenseResp.text(); + var license = await decryptMslResponse(licenseResp); + + console.log("License:"); + console.log(license); + + return license; +} \ No newline at end of file diff --git a/src/sha.js b/src/sha.js new file mode 100644 index 0000000..1ecd2e5 --- /dev/null +++ b/src/sha.js @@ -0,0 +1,43 @@ +/* + A JavaScript implementation of the SHA family of hashes, as + defined in FIPS PUB 180-4 and FIPS PUB 202, as well as the corresponding + HMAC implementation as defined in FIPS PUB 198a + + Copyright 2008-2018 Brian Turek, 1998-2009 Paul Johnston & Contributors + Distributed under the BSD License + See http://caligatio.github.com/jsSHA/ for more information +*/ +'use strict';(function(Y){function C(c,a,b){var e=0,h=[],n=0,g,l,d,f,m,q,u,r,I=!1,v=[],w=[],t,y=!1,z=!1,x=-1;b=b||{};g=b.encoding||"UTF8";t=b.numRounds||1;if(t!==parseInt(t,10)||1>t)throw Error("numRounds must a integer >= 1");if("SHA-1"===c)m=512,q=K,u=Z,f=160,r=function(a){return a.slice()};else if(0===c.lastIndexOf("SHA-",0))if(q=function(a,b){return L(a,b,c)},u=function(a,b,h,e){var k,f;if("SHA-224"===c||"SHA-256"===c)k=(b+65>>>9<<4)+15,f=16;else if("SHA-384"===c||"SHA-512"===c)k=(b+129>>>10<< +5)+31,f=32;else throw Error("Unexpected error in SHA-2 implementation");for(;a.length<=k;)a.push(0);a[b>>>5]|=128<<24-b%32;b=b+h;a[k]=b&4294967295;a[k-1]=b/4294967296|0;h=a.length;for(b=0;be;e+=1)c[e]=a[e].slice();return c};x=1;if("SHA3-224"=== +c)m=1152,f=224;else if("SHA3-256"===c)m=1088,f=256;else if("SHA3-384"===c)m=832,f=384;else if("SHA3-512"===c)m=576,f=512;else if("SHAKE128"===c)m=1344,f=-1,F=31,z=!0;else if("SHAKE256"===c)m=1088,f=-1,F=31,z=!0;else throw Error("Chosen SHA variant is not supported");u=function(a,c,e,b,h){e=m;var k=F,f,g=[],n=e>>>5,l=0,d=c>>>5;for(f=0;f=e;f+=n)b=D(a.slice(f,f+n),b),c-=e;a=a.slice(f);for(c%=e;a.length>>3;a[f>>2]^=k<=h)break;g.push(a.a);l+=1;0===64*l%e&&D(null,b)}return g}}else throw Error("Chosen SHA variant is not supported");d=M(a,g,x);l=A(c);this.setHMACKey=function(a,b,h){var k;if(!0===I)throw Error("HMAC key already set");if(!0===y)throw Error("Cannot set HMAC key after calling update");if(!0===z)throw Error("SHAKE is not supported for HMAC");g=(h||{}).encoding||"UTF8";b=M(b,g,x)(a);a=b.binLen;b=b.value;k=m>>>3;h=k/4-1;if(ka/8){for(;b.length<=h;)b.push(0);b[h]&=4294967040}for(a=0;a<=h;a+=1)v[a]=b[a]^909522486,w[a]=b[a]^1549556828;l=q(v,l);e=m;I=!0};this.update=function(a){var c,b,k,f=0,g=m>>>5;c=d(a,h,n);a=c.binLen;b=c.value;c=a>>>5;for(k=0;k>>5);n=a%m;y=!0};this.getHash=function(a,b){var k,g,d,m;if(!0===I)throw Error("Cannot call getHash after setting HMAC key");d=N(b);if(!0===z){if(-1===d.shakeLen)throw Error("shakeLen must be specified in options"); +f=d.shakeLen}switch(a){case "HEX":k=function(a){return O(a,f,x,d)};break;case "B64":k=function(a){return P(a,f,x,d)};break;case "BYTES":k=function(a){return Q(a,f,x)};break;case "ARRAYBUFFER":try{g=new ArrayBuffer(0)}catch(p){throw Error("ARRAYBUFFER not supported by this environment");}k=function(a){return R(a,f,x)};break;default:throw Error("format must be HEX, B64, BYTES, or ARRAYBUFFER");}m=u(h.slice(),n,e,r(l),f);for(g=1;g>>24-f%32),m=u(m,f, +0,A(c),f);return k(m)};this.getHMAC=function(a,b){var k,g,d,p;if(!1===I)throw Error("Cannot call getHMAC without first setting HMAC key");d=N(b);switch(a){case "HEX":k=function(a){return O(a,f,x,d)};break;case "B64":k=function(a){return P(a,f,x,d)};break;case "BYTES":k=function(a){return Q(a,f,x)};break;case "ARRAYBUFFER":try{k=new ArrayBuffer(0)}catch(v){throw Error("ARRAYBUFFER not supported by this environment");}k=function(a){return R(a,f,x)};break;default:throw Error("outputFormat must be HEX, B64, BYTES, or ARRAYBUFFER"); +}g=u(h.slice(),n,e,r(l),f);p=q(w,A(c));p=u(g,f,m,p,f);return k(p)}}function b(c,a){this.a=c;this.b=a}function O(c,a,b,e){var h="";a/=8;var n,g,d;d=-1===b?3:0;for(n=0;n>>2]>>>8*(d+n%4*b),h+="0123456789abcdef".charAt(g>>>4&15)+"0123456789abcdef".charAt(g&15);return e.outputUpper?h.toUpperCase():h}function P(c,a,b,e){var h="",n=a/8,g,d,p,f;f=-1===b?3:0;for(g=0;g>>2]:0,p=g+2>>2]:0,p=(c[g>>>2]>>>8*(f+g%4*b)&255)<<16|(d>>>8*(f+(g+1)%4*b)&255)<<8|p>>>8*(f+ +(g+2)%4*b)&255,d=0;4>d;d+=1)8*g+6*d<=a?h+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(p>>>6*(3-d)&63):h+=e.b64Pad;return h}function Q(c,a,b){var e="";a/=8;var h,d,g;g=-1===b?3:0;for(h=0;h>>2]>>>8*(g+h%4*b)&255,e+=String.fromCharCode(d);return e}function R(c,a,b){a/=8;var e,h=new ArrayBuffer(a),d,g;g=new Uint8Array(h);d=-1===b?3:0;for(e=0;e>>2]>>>8*(d+e%4*b)&255;return h}function N(c){var a={outputUpper:!1,b64Pad:"=",shakeLen:-1};c=c||{}; +a.outputUpper=c.outputUpper||!1;!0===c.hasOwnProperty("b64Pad")&&(a.b64Pad=c.b64Pad);if(!0===c.hasOwnProperty("shakeLen")){if(0!==c.shakeLen%8)throw Error("shakeLen must be a multiple of 8");a.shakeLen=c.shakeLen}if("boolean"!==typeof a.outputUpper)throw Error("Invalid outputUpper formatting option");if("string"!==typeof a.b64Pad)throw Error("Invalid b64Pad formatting option");return a}function M(c,a,b){switch(a){case "UTF8":case "UTF16BE":case "UTF16LE":break;default:throw Error("encoding must be UTF8, UTF16BE, or UTF16LE"); +}switch(c){case "HEX":c=function(a,c,d){var g=a.length,l,p,f,m,q,u;if(0!==g%2)throw Error("String of HEX type must be in byte increments");c=c||[0];d=d||0;q=d>>>3;u=-1===b?3:0;for(l=0;l>>1)+q;for(f=m>>>2;c.length<=f;)c.push(0);c[f]|=p<<8*(u+m%4*b)}return{value:c,binLen:4*g+d}};break;case "TEXT":c=function(c,h,d){var g,l,p=0,f,m,q,u,r,t;h=h||[0];d=d||0;q=d>>>3;if("UTF8"===a)for(t=-1=== +b?3:0,f=0;fg?l.push(g):2048>g?(l.push(192|g>>>6),l.push(128|g&63)):55296>g||57344<=g?l.push(224|g>>>12,128|g>>>6&63,128|g&63):(f+=1,g=65536+((g&1023)<<10|c.charCodeAt(f)&1023),l.push(240|g>>>18,128|g>>>12&63,128|g>>>6&63,128|g&63)),m=0;m>>2;h.length<=u;)h.push(0);h[u]|=l[m]<<8*(t+r%4*b);p+=1}else if("UTF16BE"===a||"UTF16LE"===a)for(t=-1===b?2:0,l="UTF16LE"===a&&1!==b||"UTF16LE"!==a&&1===b,f=0;f>>8);r=p+q;for(u=r>>>2;h.length<=u;)h.push(0);h[u]|=g<<8*(t+r%4*b);p+=2}return{value:h,binLen:8*p+d}};break;case "B64":c=function(a,c,d){var g=0,l,p,f,m,q,u,r,t;if(-1===a.search(/^[a-zA-Z0-9=+\/]+$/))throw Error("Invalid character in base-64 string");p=a.indexOf("=");a=a.replace(/\=/g,"");if(-1!==p&&p