@viewlift/player-backup 1.0.141-backup → 1.0.142-backup

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (138) hide show
  1. package/cjs/autoNextVideo-31f6fc5c.js +1 -0
  2. package/cjs/bundle.css +103 -269
  3. package/cjs/caption-settings-903072e9.js +1 -0
  4. package/cjs/dvr_skin-f7f770ae.js +1 -0
  5. package/cjs/features-3aeac1e6.js +1 -0
  6. package/cjs/generic-29557f14.js +1 -0
  7. package/cjs/icons-515b2da0.js +1 -0
  8. package/cjs/index.js +1 -1
  9. package/cjs/keyboardShortcuts-ac2bfc24.js +1 -0
  10. package/cjs/loader-393b838a.js +1 -0
  11. package/cjs/multicam-5218fef6.js +1 -0
  12. package/cjs/multicam-a41fe4a6.js +1 -0
  13. package/cjs/{multicamv2-7a86b517.js → multicamv2-76d8530b.js} +1 -1
  14. package/cjs/multicamv2-e9850465.js +1 -0
  15. package/cjs/mwebPotrait-3c11d7cf.js +1 -0
  16. package/cjs/mwebPotraitTray-a31b199f.js +1 -0
  17. package/cjs/nextEpisodeButton-8f9d591f.js +1 -0
  18. package/cjs/nondvr_skin-ef2cb3b2.js +1 -0
  19. package/cjs/playlist-90a943c3.js +1 -0
  20. package/cjs/renditions-2a68e55f.js +1 -0
  21. package/cjs/resolution-2507ae3f.js +1 -0
  22. package/cjs/series-7c676fab.js +1 -0
  23. package/cjs/series-v2-a794f025.js +1 -0
  24. package/cjs/series-v2-fd7485a5.js +1 -0
  25. package/cjs/settings-icon-fd361a36.js +1 -0
  26. package/cjs/skin-1f5a5ba7.js +1 -0
  27. package/cjs/skin-261515e4.js +1 -0
  28. package/cjs/skin-2a6e5efd.js +1 -0
  29. package/cjs/skin-59e1e9f8.js +1 -0
  30. package/cjs/skin-97230e22.js +1 -0
  31. package/cjs/skin-983a2ea7.js +1 -0
  32. package/cjs/skin-b41ed404.js +1 -0
  33. package/cjs/skin-c66e9b42.js +1 -0
  34. package/cjs/util-edad3d26.js +1 -0
  35. package/cjs/videoSelector-144e411f.js +1 -0
  36. package/esm/autoNextVideo-ae83ac79.js +1 -0
  37. package/esm/bundle.css +103 -269
  38. package/esm/caption-settings-286e1acf.js +1 -0
  39. package/esm/dvr_skin-9cc1b144.js +1 -0
  40. package/esm/features-27b875c1.js +1 -0
  41. package/esm/generic-3a4a5eee.js +1 -0
  42. package/esm/{icons-79ad4d7d.js → icons-3e9a1686.js} +1 -1
  43. package/esm/index.js +1 -1
  44. package/esm/keyboardShortcuts-48e91712.js +1 -0
  45. package/esm/loader-580278fe.js +1 -0
  46. package/esm/multicam-9b52f856.js +1 -0
  47. package/esm/multicam-de741974.js +1 -0
  48. package/esm/multicamv2-5eebf15d.js +1 -0
  49. package/esm/{multicamv2-1fb5149a.js → multicamv2-d006cffa.js} +1 -1
  50. package/esm/mwebPotrait-3c1805d8.js +1 -0
  51. package/esm/mwebPotraitTray-918b9c46.js +1 -0
  52. package/esm/nextEpisodeButton-4fda97dc.js +1 -0
  53. package/esm/nondvr_skin-64be70e5.js +1 -0
  54. package/esm/playlist-100a8a60.js +1 -0
  55. package/esm/renditions-e6a8fbb9.js +1 -0
  56. package/esm/resolution-5444c761.js +1 -0
  57. package/esm/series-5bdad7f3.js +1 -0
  58. package/esm/series-v2-3848a876.js +1 -0
  59. package/esm/series-v2-4cdbf9b1.js +1 -0
  60. package/esm/settings-icon-a9dfd1d7.js +1 -0
  61. package/esm/skin-1b9cdb94.js +1 -0
  62. package/esm/skin-60001dc5.js +1 -0
  63. package/esm/skin-96d2bdc5.js +1 -0
  64. package/esm/skin-c81400ed.js +1 -0
  65. package/esm/skin-cd537931.js +1 -0
  66. package/esm/skin-d2d14455.js +1 -0
  67. package/esm/skin-edc9cefb.js +1 -0
  68. package/esm/skin-fbc45594.js +1 -0
  69. package/esm/util-89ccc154.js +1 -0
  70. package/esm/videoSelector-feca34d2.js +1 -0
  71. package/package.json +7 -7
  72. package/cjs/autoNextVideo-e5a447fa.js +0 -1
  73. package/cjs/browser-77c57718.js +0 -1
  74. package/cjs/caption-settings-a355bdc9.js +0 -1
  75. package/cjs/captions-37b81672.js +0 -1
  76. package/cjs/features-44de3972.js +0 -1
  77. package/cjs/generic-39f8edfb.js +0 -1
  78. package/cjs/icons-0ea2e662.js +0 -1
  79. package/cjs/index-5948153c.js +0 -1
  80. package/cjs/multicamv2-065b74e3.js +0 -1
  81. package/cjs/multicamv2-cd36f826.js +0 -1
  82. package/cjs/multicamv2-e7a024e5.js +0 -1
  83. package/cjs/nextEpisodeButton-1d9211a2.js +0 -1
  84. package/cjs/playlist-984f40e2.js +0 -1
  85. package/cjs/renditions-fd408798.js +0 -1
  86. package/cjs/resolution-c59e995e.js +0 -1
  87. package/cjs/series-5a85b46d.js +0 -1
  88. package/cjs/series-v2-1a860a88.js +0 -1
  89. package/cjs/series-v2-232bef33.js +0 -1
  90. package/cjs/series-v2-baaacd4a.js +0 -1
  91. package/cjs/series-v2-e037e14e.js +0 -1
  92. package/cjs/settings-icon-bef54795.js +0 -1
  93. package/cjs/skin-2498b556.js +0 -1
  94. package/cjs/skin-41316779.js +0 -1
  95. package/cjs/skin-4209bc32.js +0 -1
  96. package/cjs/skin-58d2b848.js +0 -1
  97. package/cjs/skin-6f6cfba1.js +0 -1
  98. package/cjs/skin-76f51a09.js +0 -1
  99. package/cjs/skin-911819e6.js +0 -1
  100. package/cjs/skin-aef573bd.js +0 -1
  101. package/cjs/skin-ba38afdb.js +0 -1
  102. package/cjs/util-197a4f7c.js +0 -1
  103. package/cjs/videoSelector-3a80c852.js +0 -1
  104. package/cjs/videoSelector-45b638bf.js +0 -1
  105. package/cjs/videoSelector-6f1d15b2.js +0 -1
  106. package/esm/autoNextVideo-b462e12c.js +0 -1
  107. package/esm/browser-d4613b36.js +0 -1
  108. package/esm/caption-settings-ddfbca32.js +0 -1
  109. package/esm/captions-6cc39cdc.js +0 -1
  110. package/esm/features-2ecb0a40.js +0 -1
  111. package/esm/generic-7f222b1f.js +0 -1
  112. package/esm/index-2822e02d.js +0 -1
  113. package/esm/multicamv2-1e614d9b.js +0 -1
  114. package/esm/multicamv2-6f75cbd5.js +0 -1
  115. package/esm/multicamv2-92ab3e07.js +0 -1
  116. package/esm/nextEpisodeButton-d0bd769d.js +0 -1
  117. package/esm/playlist-8ddb2ba1.js +0 -1
  118. package/esm/renditions-c0f96578.js +0 -1
  119. package/esm/resolution-00449d8d.js +0 -1
  120. package/esm/series-97ad60dd.js +0 -1
  121. package/esm/series-v2-1cbb5dc9.js +0 -1
  122. package/esm/series-v2-87343239.js +0 -1
  123. package/esm/series-v2-c9e4a646.js +0 -1
  124. package/esm/series-v2-f4ad8c85.js +0 -1
  125. package/esm/settings-icon-23053add.js +0 -1
  126. package/esm/skin-2882ecc4.js +0 -1
  127. package/esm/skin-54fd9894.js +0 -1
  128. package/esm/skin-71be210e.js +0 -1
  129. package/esm/skin-7f4c0efb.js +0 -1
  130. package/esm/skin-8782db02.js +0 -1
  131. package/esm/skin-8928f65a.js +0 -1
  132. package/esm/skin-9f9b9216.js +0 -1
  133. package/esm/skin-c07bfa05.js +0 -1
  134. package/esm/skin-e2b55d7d.js +0 -1
  135. package/esm/util-6f289757.js +0 -1
  136. package/esm/videoSelector-182baa0d.js +0 -1
  137. package/esm/videoSelector-538a2e27.js +0 -1
  138. package/esm/videoSelector-56927a02.js +0 -1
@@ -1 +1 @@
1
- var n=function(n){return"<svg fill='".concat(n||"white","'\n class='icon icon-minimize'\n viewBox=\"0 0 70 70\"\n xmlns='http://www.w3.org/2000/svg'\n >\n <path fill='").concat(n||"white","' d='M40.397 37.511h6.971l-3.16-3.146h-9.593v9.714l3.146 3.077v-6.648l8.823 8.823 2.817-2.817-9.004-9.004z' />\n <path fill='").concat(n||"white","' d='M24.443 26.763h-6.971l3.16 3.146h9.593v-9.714l-3.146-3.077v6.648l-8.823-8.823-2.817 2.817 9.003 9.004z' />\n </svg>")},t=function(n){return"<svg fill='".concat(n||"white","'\n class='icon icon-maximize'\n viewBox=\"0 0 70 70\"\n xmlns='http://www.w3.org/2000/svg'\n >\n <path fill='").concat(n||"white","' d='M43.369 45.938h-6.971l3.16 3.146h9.593v-9.714l-3.146-3.077v6.648l-8.823-8.823-2.817 2.817 9.004 9.004z' />\n <path fill='").concat(n||"white","' d='M21.969 18.834h6.971l-3.16-3.146h-9.593v9.714l3.146 3.077v-6.648l8.823 8.823 2.817-2.817-9.003-9.003z' />\n </svg>")},e=function(n){return'<svg style="width:16px" class=\'rewindbtn\' viewBox="0 0 18 19" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path fill-rule="evenodd" clip-rule="evenodd" d="M7.88817 16.9913L7.72176 18.5762C9.58746 18.8613 11.4677 18.5376 13.1023 17.6161C17.1941 15.3094 18.4803 9.98978 15.9732 5.74243C13.47 1.50156 8.13865 -0.0590307 4.03665 2.25351C3.35173 2.64307 2.7379 3.12124 2.20384 3.67698L3.34087 4.82569C3.77642 4.37247 4.27773 3.98196 4.83679 3.66398C8.20452 1.76539 12.5901 3.04913 14.644 6.5288C16.6894 9.99402 15.6429 14.3223 12.3046 16.2043C10.9636 16.9602 9.42195 17.2257 7.88817 16.9913Z" fill=\''.concat(window.color||"white",'\' />\n <path fill-rule="evenodd" clip-rule="evenodd" d="M3.10742 0.462205L0.56205 5.24366L6.06202 5.79492L3.10742 0.462205Z" fill=\'').concat(window.color||"white",'\' />\n <path fill-rule="evenodd" clip-rule="evenodd" d="M9.80172 14.1769C10.1682 14.1769 10.5096 14.1082 10.8258 13.9708C11.142 13.8333 11.416 13.6241 11.6479 13.343C11.8798 13.0619 12.0615 12.7059 12.1928 12.275C12.3242 11.8441 12.3898 11.3368 12.3898 10.753C12.3898 10.1661 12.3242 9.65803 12.1928 9.22868C12.0615 8.79934 11.8798 8.44413 11.6479 8.16305C11.416 7.88197 11.142 7.6727 10.8258 7.53525C10.5096 7.3978 10.1682 7.32907 9.80172 7.32907C9.43524 7.32907 9.09551 7.3978 8.78254 7.53525C8.46956 7.6727 8.19794 7.88197 7.96767 8.16305C7.7374 8.44413 7.5574 8.79934 7.42767 9.22868C7.29794 9.65803 7.23308 10.1661 7.23308 10.753C7.23308 11.3368 7.29794 11.8441 7.42767 12.275C7.5574 12.7059 7.7374 13.0619 7.96767 13.343C8.19794 13.6241 8.46956 13.8333 8.78254 13.9708C9.09551 14.1082 9.43524 14.1769 9.80172 14.1769ZM6.54713 14.1028V13.2457H5.28226V7.39394H4.2947L2.14929 9.13139L2.52875 9.62714C2.5547 9.66112 2.59443 9.69123 2.64794 9.71749C2.70145 9.74374 2.76064 9.75687 2.82551 9.75687C2.86767 9.75687 2.91064 9.75069 2.95443 9.73834C2.99821 9.72598 3.04118 9.70282 3.08335 9.66884L4.09524 8.86266C4.08551 9.02946 4.08064 9.18853 4.08064 9.33988V13.2457H2.65524V14.1028H6.54713ZM9.30308 13.1136C9.46362 13.1893 9.62983 13.2271 9.80172 13.2271C9.97686 13.2271 10.1455 13.1893 10.3077 13.1136C10.4698 13.038 10.6133 12.9059 10.7382 12.7175C10.8631 12.5291 10.9628 12.2758 11.0374 11.9576C11.112 11.6395 11.1493 11.238 11.1493 10.753C11.1493 10.2681 11.112 9.86652 11.0374 9.54838C10.9628 9.23023 10.8631 8.97695 10.7382 8.78853C10.6133 8.60011 10.4698 8.46807 10.3077 8.39239C10.1455 8.31672 9.97686 8.27888 9.80172 8.27888C9.62983 8.27888 9.46362 8.31672 9.30308 8.39239C9.14254 8.46807 9.00064 8.60011 8.8774 8.78853C8.75416 8.97695 8.65605 9.23023 8.58308 9.54838C8.5101 9.86652 8.47362 10.2681 8.47362 10.753C8.47362 11.238 8.5101 11.6395 8.58308 11.9576C8.65605 12.2758 8.75416 12.5291 8.8774 12.7175C9.00064 12.9059 9.14254 13.038 9.30308 13.1136Z" fill=\'').concat(window.color||"white","' />\n </svg>")},C=function(){return'<svg class=\'rewindbtn\' width="21" height="20" viewBox="0 0 21 20" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path d="M1.22363 9.43675L3.152 11.3434L5.08151 9.43675M2.91616 10.8667C2.88115 10.5537 2.86319 10.2356 2.86319 9.91341C2.86319 5.17486 6.74945 1.3335 11.5434 1.3335C16.3374 1.3335 20.2236 5.17486 20.2236 9.91341C20.2236 14.652 16.3374 18.4933 11.5434 18.4933C8.8166 18.4933 6.38346 17.2505 4.79212 15.3067" stroke="white" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.3"/>\n <path d="M9.92694 13.0831V6.80067H8.94318C8.58633 7.20106 7.97871 7.53473 7.37109 7.64912V8.66918C7.68937 8.64058 8.22947 8.52618 8.51881 8.39272V13.0831H9.92694Z" fill="white"/>\n <path d="M13.6545 6.6958C11.8316 6.6958 11.1951 8.23065 11.1951 9.94664C11.1951 11.6817 11.7641 13.1975 13.6255 13.1975C15.5159 13.1975 16.0656 11.634 16.0656 9.9085C16.0656 8.12579 15.4291 6.6958 13.6545 6.6958ZM13.6545 7.78259C14.4839 7.78259 14.6382 8.69778 14.6382 9.91804C14.6382 11.1478 14.5225 12.1107 13.6448 12.1107C12.7479 12.1107 12.6128 11.0811 12.6128 9.92757C12.6128 8.57385 12.8443 7.78259 13.6545 7.78259Z" fill="white"/>\n </svg>'},i=function(){return'<svg width="16" height="16" viewBox="0 0 22 22" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path d="M11 14C12.6569 14 14 12.6569 14 11C14 9.34315 12.6569 8 11 8C9.34315 8 8 9.34315 8 11C8 12.6569 9.34315 14 11 14Z" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>\n <path d="M17.7273 13.7273C17.6063 14.0015 17.5702 14.3056 17.6236 14.6005C17.6771 14.8954 17.8177 15.1676 18.0273 15.3818L18.0818 15.4364C18.2509 15.6052 18.385 15.8057 18.4765 16.0265C18.568 16.2472 18.6151 16.4838 18.6151 16.7227C18.6151 16.9617 18.568 17.1983 18.4765 17.419C18.385 17.6397 18.2509 17.8402 18.0818 18.0091C17.913 18.1781 17.7124 18.3122 17.4917 18.4037C17.271 18.4952 17.0344 18.5423 16.7955 18.5423C16.5565 18.5423 16.3199 18.4952 16.0992 18.4037C15.8785 18.3122 15.678 18.1781 15.5091 18.0091L15.4545 17.9545C15.2403 17.745 14.9682 17.6044 14.6733 17.5509C14.3784 17.4974 14.0742 17.5335 13.8 17.6545C13.5311 17.7698 13.3018 17.9611 13.1403 18.205C12.9788 18.4489 12.8921 18.7347 12.8909 19.0273V19.1818C12.8909 19.664 12.6994 20.1265 12.3584 20.4675C12.0174 20.8084 11.5549 21 11.0727 21C10.5905 21 10.1281 20.8084 9.78708 20.4675C9.4461 20.1265 9.25455 19.664 9.25455 19.1818V19.1C9.24751 18.7991 9.15011 18.5073 8.97501 18.2625C8.79991 18.0176 8.55521 17.8312 8.27273 17.7273C7.99853 17.6063 7.69437 17.5702 7.39947 17.6236C7.10456 17.6771 6.83244 17.8177 6.61818 18.0273L6.56364 18.0818C6.39478 18.2509 6.19425 18.385 5.97353 18.4765C5.7528 18.568 5.51621 18.6151 5.27727 18.6151C5.03834 18.6151 4.80174 18.568 4.58102 18.4765C4.36029 18.385 4.15977 18.2509 3.99091 18.0818C3.82186 17.913 3.68775 17.7124 3.59626 17.4917C3.50476 17.271 3.45766 17.0344 3.45766 16.7955C3.45766 16.5565 3.50476 16.3199 3.59626 16.0992C3.68775 15.8785 3.82186 15.678 3.99091 15.5091L4.04545 15.4545C4.25503 15.2403 4.39562 14.9682 4.4491 14.6733C4.50257 14.3784 4.46647 14.0742 4.34545 13.8C4.23022 13.5311 4.03887 13.3018 3.79497 13.1403C3.55107 12.9788 3.26526 12.8921 2.97273 12.8909H2.81818C2.33597 12.8909 1.87351 12.6994 1.53253 12.3584C1.19156 12.0174 1 11.5549 1 11.0727C1 10.5905 1.19156 10.1281 1.53253 9.78708C1.87351 9.4461 2.33597 9.25455 2.81818 9.25455H2.9C3.2009 9.24751 3.49273 9.15011 3.73754 8.97501C3.98236 8.79991 4.16883 8.55521 4.27273 8.27273C4.39374 7.99853 4.42984 7.69437 4.37637 7.39947C4.3229 7.10456 4.18231 6.83244 3.97273 6.61818L3.91818 6.56364C3.74913 6.39478 3.61503 6.19425 3.52353 5.97353C3.43203 5.7528 3.38493 5.51621 3.38493 5.27727C3.38493 5.03834 3.43203 4.80174 3.52353 4.58102C3.61503 4.36029 3.74913 4.15977 3.91818 3.99091C4.08704 3.82186 4.28757 3.68775 4.50829 3.59626C4.72901 3.50476 4.96561 3.45766 5.20455 3.45766C5.44348 3.45766 5.68008 3.50476 5.9008 3.59626C6.12152 3.68775 6.32205 3.82186 6.49091 3.99091L6.54545 4.04545C6.75971 4.25503 7.03183 4.39562 7.32674 4.4491C7.62164 4.50257 7.9258 4.46647 8.2 4.34545H8.27273C8.54161 4.23022 8.77093 4.03887 8.93245 3.79497C9.09397 3.55107 9.18065 3.26526 9.18182 2.97273V2.81818C9.18182 2.33597 9.37338 1.87351 9.71435 1.53253C10.0553 1.19156 10.5178 1 11 1C11.4822 1 11.9447 1.19156 12.2856 1.53253C12.6266 1.87351 12.8182 2.33597 12.8182 2.81818V2.9C12.8193 3.19253 12.906 3.47834 13.0676 3.72224C13.2291 3.96614 13.4584 4.15749 13.7273 4.27273C14.0015 4.39374 14.3056 4.42984 14.6005 4.37637C14.8954 4.3229 15.1676 4.18231 15.3818 3.97273L15.4364 3.91818C15.6052 3.74913 15.8057 3.61503 16.0265 3.52353C16.2472 3.43203 16.4838 3.38493 16.7227 3.38493C16.9617 3.38493 17.1983 3.43203 17.419 3.52353C17.6397 3.61503 17.8402 3.74913 18.0091 3.91818C18.1781 4.08704 18.3122 4.28757 18.4037 4.50829C18.4952 4.72901 18.5423 4.96561 18.5423 5.20455C18.5423 5.44348 18.4952 5.68008 18.4037 5.9008C18.3122 6.12152 18.1781 6.32205 18.0091 6.49091L17.9545 6.54545C17.745 6.75971 17.6044 7.03183 17.5509 7.32674C17.4974 7.62164 17.5335 7.9258 17.6545 8.2V8.27273C17.7698 8.54161 17.9611 8.77093 18.205 8.93245C18.4489 9.09397 18.7347 9.18065 19.0273 9.18182H19.1818C19.664 9.18182 20.1265 9.37338 20.4675 9.71435C20.8084 10.0553 21 10.5178 21 11C21 11.4822 20.8084 11.9447 20.4675 12.2856C20.1265 12.6266 19.664 12.8182 19.1818 12.8182H19.1C18.8075 12.8193 18.5217 12.906 18.2778 13.0676C18.0339 13.2291 17.8425 13.4584 17.7273 13.7273Z" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>\n </svg>'},l=function(){return'<svg class=\'selected-stream\' width="25" height="25" viewBox="0 0 35 33" fill="none" xmlns="http://www.w3.org/2000/svg">\n <g clip-path="url(#clip0_319_60943)">\n <path d="M0 0H35V33H0V0Z" fill="#D2393B"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M15.8689 17.6541L22.3039 11.2898C22.6966 10.9014 23.3372 10.9054 23.7299 11.2937C24.1225 11.6821 24.1265 12.3157 23.7338 12.704L16.6345 19.7253C16.6189 19.743 16.6026 19.7604 16.5856 19.7772C16.5158 19.8463 16.4381 19.9032 16.3554 19.9479C15.9716 20.1587 15.4758 20.1009 15.1503 19.779C15.126 19.755 15.1032 19.73 15.0819 19.7042L12.2919 16.9449C11.8992 16.5565 11.9032 15.9229 12.2958 15.5346C12.6885 15.1462 13.3291 15.1423 13.7218 15.5306L15.8689 17.6541Z" fill="white"/>\n </g>\n <defs>\n <clipPath id="clip0_319_60943">\n <path d="M0 0H35V33H8C3.58172 33 0 29.4183 0 25V0Z" fill="white"/>\n </clipPath>\n </defs>\n </svg>\n '},o=function(){return'<svg width="21" height="20" viewBox="0 0 21 20" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path fill-rule="evenodd" clip-rule="evenodd" d="M20.7275 8.7189V11.2811L18.0174 11.7913C17.8497 12.5312 17.558 13.2374 17.1546 13.88L18.71 16.1626L16.8874 17.9721L14.6149 16.43C13.9694 16.8283 13.2636 17.1194 12.5249 17.2919L12.0143 20H9.43828L8.92846 17.2919C8.18971 17.1194 7.48385 16.8284 6.8384 16.43L4.56591 17.9721L2.74302 16.1626L4.28649 13.88C3.88787 13.2349 3.5965 12.5296 3.42371 11.7913L0.727539 11.2811V8.7189L3.42371 8.1968C3.59774 7.4568 3.89356 6.75083 4.29909 6.10771L2.74337 3.837L4.56626 2.02785L6.83875 3.57C7.48173 3.16673 8.18841 2.8752 8.92881 2.70777L9.43863 0H12.0147L12.5252 2.70777C13.2656 2.87529 13.9723 3.16682 14.6153 3.57L16.8878 2.02785L18.7103 3.837L17.1549 6.11996C17.5582 6.75838 17.85 7.46066 18.0177 8.1968L20.7275 8.7189ZM5.19864 10.0057C5.2018 13.0538 7.67684 15.5222 10.7268 15.5191C12.1916 15.5176 13.5957 14.9347 14.6304 13.8985C15.665 12.8624 16.2454 11.4579 16.2438 9.99405C16.2405 6.94597 13.7654 4.47766 10.7154 4.48088C7.6654 4.4841 5.19548 6.95764 5.19864 10.0057Z" fill="white"/>\n </svg>'},w=function(n){return'<svg style="width:16px" class=\'skipbtn\' viewBox="0 0 18 20" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path fill-rule="evenodd" clip-rule="evenodd" d="M9.99586 16.9937L10.1623 18.5786C8.29657 18.8638 6.41631 18.54 4.78178 17.6185C0.689955 15.3118 -0.596286 9.9922 1.9108 5.74486C4.41407 1.50398 9.74539 -0.0566045 13.8474 2.25594C14.5323 2.64549 15.1461 3.12366 15.6802 3.6794L14.5432 4.82812C14.1076 4.3749 13.6063 3.98438 13.0472 3.66641C9.67952 1.76782 5.29397 3.05156 3.24002 6.53123C1.1946 9.99645 2.24115 14.3247 5.57947 16.2067C6.92039 16.9626 8.46208 17.2281 9.99586 16.9937Z" fill=\''.concat(window.color?window.color:"white",'\' />\n <path fill-rule="evenodd" clip-rule="evenodd" d="M14.7766 0.464616L17.322 5.24607L11.822 5.79733L14.7766 0.464616Z" fill=\'').concat(window.color?window.color:"white",'\' />\n <path fill-rule="evenodd" clip-rule="evenodd" d="M13.0245 14.115C13.391 14.115 13.7323 14.0463 14.0486 13.9088C14.3648 13.7714 14.6388 13.5621 14.8707 13.281C15.1026 13 15.2842 12.644 15.4156 12.2131C15.5469 11.7822 15.6126 11.2749 15.6126 10.6911C15.6126 10.1042 15.5469 9.59609 15.4156 9.16675C15.2842 8.73741 15.1026 8.38219 14.8707 8.10111C14.6388 7.82003 14.3648 7.61076 14.0486 7.47331C13.7323 7.33586 13.391 7.26714 13.0245 7.26714C12.658 7.26714 12.3183 7.33586 12.0053 7.47331C11.6923 7.61076 11.4207 7.82003 11.1904 8.10111C10.9602 8.38219 10.7802 8.73741 10.6504 9.16675C10.5207 9.59609 10.4559 10.1042 10.4559 10.6911C10.4559 11.2749 10.5207 11.7822 10.6504 12.2131C10.7802 12.644 10.9602 13 11.1904 13.281C11.4207 13.5621 11.6923 13.7714 12.0053 13.9088C12.3183 14.0463 12.658 14.115 13.0245 14.115ZM9.76991 14.0409V13.1837H8.50504V7.332H7.51748L5.37207 9.06945L5.75153 9.56521C5.77748 9.59918 5.81721 9.6293 5.87072 9.65555C5.92423 9.68181 5.98342 9.69493 6.04829 9.69493C6.09045 9.69493 6.13342 9.68876 6.17721 9.6764C6.22099 9.66405 6.26396 9.64088 6.30612 9.6069L7.31802 8.80073C7.30829 8.96752 7.30342 9.1266 7.30342 9.27795V13.1837H5.87802V14.0409H9.76991ZM12.5259 13.0517C12.6864 13.1274 12.8526 13.1652 13.0245 13.1652C13.1996 13.1652 13.3683 13.1274 13.5304 13.0517C13.6926 12.976 13.8361 12.844 13.961 12.6556C14.0859 12.4671 14.1856 12.2139 14.2602 11.8957C14.3348 11.5776 14.3721 11.176 14.3721 10.6911C14.3721 10.2061 14.3348 9.80459 14.2602 9.48644C14.1856 9.16829 14.0859 8.91501 13.961 8.7266C13.8361 8.53818 13.6926 8.40613 13.5304 8.33046C13.3683 8.25478 13.1996 8.21694 13.0245 8.21694C12.8526 8.21694 12.6864 8.25478 12.5259 8.33046C12.3653 8.40613 12.2234 8.53818 12.1002 8.7266C11.9769 8.91501 11.8788 9.16829 11.8059 9.48644C11.7329 9.80459 11.6964 10.2061 11.6964 10.6911C11.6964 11.176 11.7329 11.5776 11.8059 11.8957C11.8788 12.2139 11.9769 12.4671 12.1002 12.6556C12.2234 12.844 12.3653 12.976 12.5259 13.0517Z" fill=\'').concat(window.color?window.color:"white","' />\n </svg>")},h=function(){return'<svg class=\'skipbtn\' width="21" height="20" viewBox="0 0 21 20" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path d="M19.7236 9.43675L17.7953 11.3434L15.8658 9.43675M18.0311 10.8667C18.0661 10.5537 18.0841 10.2356 18.0841 9.91341C18.0841 5.17486 14.1978 1.3335 9.40386 1.3335C4.6099 1.3335 0.723633 5.17486 0.723633 9.91341C0.723633 14.652 4.6099 18.4933 9.40386 18.4933C12.1307 18.4933 14.5638 17.2505 16.1551 15.3067" stroke="white" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.3"/>\n <path d="M7.80584 13.0831V6.80067H6.82209C6.46523 7.20106 5.85762 7.53473 5.25 7.64912V8.66918C5.56828 8.64058 6.10838 8.52618 6.39772 8.39272V13.0831H7.80584Z" fill="white"/>\n <path d="M11.5334 6.6958C9.71052 6.6958 9.07397 8.23065 9.07397 9.94664C9.07397 11.6817 9.64301 13.1975 11.5044 13.1975C13.3948 13.1975 13.9445 11.634 13.9445 9.9085C13.9445 8.12579 13.308 6.6958 11.5334 6.6958ZM11.5334 7.78259C12.3628 7.78259 12.5171 8.69778 12.5171 9.91804C12.5171 11.1478 12.4014 12.1107 11.5237 12.1107C10.6268 12.1107 10.4917 11.0811 10.4917 9.92757C10.4917 8.57385 10.7232 7.78259 11.5334 7.78259Z" fill="white"/>\n </svg>'},s=function(){return'<svg class=\'icon icon-episodes\' width="20" height="20" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path d="M1 11.7368C1 11.3299 1.32989 11 1.73684 11H16.2632C16.6701 11 17 11.3299 17 11.7368V21.2632C17 21.6701 16.6701 22 16.2632 22H1.73684C1.3299 22 1 21.6701 1 21.2632V11.7368Z" fill="white"/>\n <path d="M5 8H19.2632C19.6701 8 20 8.3299 20 8.73684V18" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>\n <path d="M8 4H22.2632C22.6701 4 23 4.3299 23 4.73684V13" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>\n </svg>'},d=function(){return'<svg width="18" height="16" viewBox="0 0 20 21" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path d="M5 6.5H10M5 10H13M7.68375 16H14.2C15.8802 16 16.7202 16 17.362 15.673C17.9265 15.3854 18.3854 14.9265 18.673 14.362C19 13.7202 19 12.8802 19 11.2V5.8C19 4.11984 19 3.27976 18.673 2.63803C18.3854 2.07354 17.9265 1.6146 17.362 1.32698C16.7202 1 15.8802 1 14.2 1H5.8C4.11984 1 3.27976 1 2.63803 1.32698C2.07354 1.6146 1.6146 2.07354 1.32698 2.63803C1 3.27976 1 4.11984 1 5.8V18.3355C1 18.8684 1 19.1348 1.10923 19.2716C1.20422 19.3906 1.34827 19.4599 1.50054 19.4597C1.67563 19.4595 1.88367 19.2931 2.29976 18.9602L4.68521 17.0518C5.17252 16.662 5.41617 16.4671 5.68749 16.3285C5.9282 16.2055 6.18443 16.1156 6.44921 16.0613C6.74767 16 7.0597 16 7.68375 16Z" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>\n </svg>'},r=function(){return'<svg width="21" height="18" viewBox="0 0 21 18" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path fill-rule="evenodd" clip-rule="evenodd" d="M20.4541 15.8369V2H0.454102V15.8369H11.992L17.7874 18V15.8369H20.4541ZM2.4541 4H18.4541V13.8614H15.9182L15.9179 15L11.9664 13.8614H2.4541V4Z" fill="white"/>\n <rect x="3.4541" y="6" width="9" height="2" fill="white"/>\n <rect x="14.4541" y="6" width="3" height="2" fill="white"/>\n <rect x="8.4541" y="10" width="9" height="2" fill="white"/>\n <rect x="3.4541" y="10" width="3" height="2" fill="white"/>\n </svg>\n '},c=function(n){return'<svg className=\'icon-play-next\' width="16" height="16" viewBox="0 0 25 25" fill='.concat(n,' xmlns="http://www.w3.org/2000/svg">\n <path d="M14.8837 9.99984L0 0V20L14.8837 9.99984Z" fill=').concat(n,' />\n <rect x="18" width="2" height="20" fill=').concat(n," />\n </svg>")},v=function(){return'<svg width="13" height="13" viewBox="0 0 19 20" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path fill-rule="evenodd" clip-rule="evenodd" d="M0.273985 2.30391C-0.124672 1.74341 -0.0882695 0.933084 0.383092 0.418212C0.893733 -0.139565 1.72148 -0.13938 2.23191 0.418626L9.25 8.09082L16.2681 0.418626C16.7785 -0.13938 17.6063 -0.139565 18.1169 0.418212C18.5883 0.933084 18.6247 1.74341 18.226 2.30391L18.1173 2.43852L11.1987 10.0029L18.1169 17.5611C18.5883 18.0759 18.6247 18.8863 18.226 19.4468L18.1173 19.5814C17.6461 20.0965 16.9046 20.1362 16.3916 19.7006L16.2685 19.5818L9.25 11.9155L2.23153 19.5818L2.10835 19.7006C1.59542 20.1362 0.853882 20.0965 0.382714 19.5814L0.273985 19.4468C-0.124672 18.8863 -0.0882694 18.0759 0.383092 17.5611L7.30134 10.0029L0.382714 2.43852L0.273985 2.30391Z" fill="white"/>\n </svg>\n \n '},a=function(){return'<svg width="22" height="20" viewBox="0 0 22 20" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path fill-rule="evenodd" clip-rule="evenodd" d="M3.01316 12.1667L0.25 10.5V15.5L3.01316 14.25V18H15.25V8H3.01316V12.1667ZM7.67057 10.7216C7.53806 10.6283 7.35547 10.7231 7.35547 10.8852V15.1146C7.35547 15.2766 7.53806 15.3714 7.67057 15.2781L10.6757 13.1634C10.7889 13.0838 10.7889 12.916 10.6757 12.8363L7.67057 10.7216Z" fill="white"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M7.25 2H20.25H21.25V3V10H20.25V3H7.25V2ZM17.25 5H4.25V6H17.25V13H18.25V6V5H17.25Z" fill="white"/>\n </svg>\n '},g=function(){return'<svg width="13" height="13" viewBox="0 0 11 20" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path fill-rule="evenodd" clip-rule="evenodd" d="M10.6169 0.418212C11.0883 0.933084 11.1247 1.74341 10.726 2.30391L10.6173 2.43852L3.69866 10.0029L10.6169 17.5611C11.0883 18.0759 11.1247 18.8863 10.726 19.4468L10.6173 19.5814C10.1461 20.0965 9.40458 20.1362 8.89165 19.7006L8.76847 19.5818L0 10.0039L8.76809 0.418626C9.27852 -0.13938 10.1063 -0.139565 10.6169 0.418212Z" fill="white"/>\n </svg>\n '},p=function(){return'<svg width="28" height="28" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 28 28">\n <path d="M21 10L11 20L7 16" stroke="white" stroke-width="2" fill="none"/>\n </svg>'},L=function(){return'<svg version="1.0" xmlns="http://www.w3.org/2000/svg"\n width="17" height="17" viewBox="0 0 512.000000 512.000000"\n preserveAspectRatio="xMidYMid meet">\n \n <g transform="translate(0.000000,512.000000) scale(0.100000,-0.100000)"\n fill="white" stroke="none">\n <path d="M340 4674 c-46 -20 -77 -50 -103 -99 -22 -40 -22 -45 -25 -754 -3\n -813 -5 -788 72 -859 69 -64 158 -77 238 -36 17 9 232 177 478 374 492 394\n 490 392 490 499 0 60 -23 112 -72 158 -62 60 -863 695 -900 714 -45 23 -128\n 25 -178 3z"/>\n <path d="M2045 4673 c-164 -86 -166 -300 -3 -384 37 -19 73 -19 1382 -17\n l1344 3 44 30 c138 97 118 306 -34 370 -33 13 -189 15 -1370 15 -1195 -1\n -1336 -2 -1363 -17z"/>\n <path d="M2045 3393 c-164 -86 -166 -300 -3 -384 37 -19 73 -19 1382 -17\n l1344 3 44 30 c138 97 118 306 -34 370 -33 13 -189 15 -1370 15 -1195 -1\n -1336 -2 -1363 -17z"/>\n <path d="M340 2114 c-173 -75 -161 -342 18 -394 26 -8 692 -10 2224 -8 l2186\n 3 44 30 c138 97 118 306 -34 370 -33 13 -272 15 -2220 15 -1927 -1 -2187 -3\n -2218 -16z"/>\n <path d="M340 834 c-173 -75 -161 -342 18 -394 26 -8 692 -10 2224 -8 l2186 3\n 44 30 c138 97 118 306 -34 370 -33 13 -272 15 -2220 15 -1927 -1 -2187 -3\n -2218 -16z"/>\n </g>\n </svg>'};export{g as B,r as C,s as E,n as M,d as N,c as P,e as R,i as S,p as T,t as a,w as b,h as c,C as d,L as e,v as f,o as g,a as h,l as i};
1
+ var n=function(n){return"<svg fill='".concat(n||"white","'\n class='icon icon-minimize'\n viewBox=\"0 0 70 70\"\n xmlns='http://www.w3.org/2000/svg'\n >\n <path fill='").concat(n||"white","' d='M40.397 37.511h6.971l-3.16-3.146h-9.593v9.714l3.146 3.077v-6.648l8.823 8.823 2.817-2.817-9.004-9.004z' />\n <path fill='").concat(n||"white","' d='M24.443 26.763h-6.971l3.16 3.146h9.593v-9.714l-3.146-3.077v6.648l-8.823-8.823-2.817 2.817 9.003 9.004z' />\n </svg>")},C=function(n){return"<svg fill='".concat(n||"white","'\n class='icon icon-maximize'\n viewBox=\"0 0 70 70\"\n xmlns='http://www.w3.org/2000/svg'\n >\n <path fill='").concat(n||"white","' d='M43.369 45.938h-6.971l3.16 3.146h9.593v-9.714l-3.146-3.077v6.648l-8.823-8.823-2.817 2.817 9.004 9.004z' />\n <path fill='").concat(n||"white","' d='M21.969 18.834h6.971l-3.16-3.146h-9.593v9.714l3.146 3.077v-6.648l8.823 8.823 2.817-2.817-9.003-9.003z' />\n </svg>")},e=function(n){return'<svg style="width:16px" class=\'rewindbtn\' viewBox="0 0 18 19" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path fill-rule="evenodd" clip-rule="evenodd" d="M7.88817 16.9913L7.72176 18.5762C9.58746 18.8613 11.4677 18.5376 13.1023 17.6161C17.1941 15.3094 18.4803 9.98978 15.9732 5.74243C13.47 1.50156 8.13865 -0.0590307 4.03665 2.25351C3.35173 2.64307 2.7379 3.12124 2.20384 3.67698L3.34087 4.82569C3.77642 4.37247 4.27773 3.98196 4.83679 3.66398C8.20452 1.76539 12.5901 3.04913 14.644 6.5288C16.6894 9.99402 15.6429 14.3223 12.3046 16.2043C10.9636 16.9602 9.42195 17.2257 7.88817 16.9913Z" fill=\''.concat(window.color||"white",'\' />\n <path fill-rule="evenodd" clip-rule="evenodd" d="M3.10742 0.462205L0.56205 5.24366L6.06202 5.79492L3.10742 0.462205Z" fill=\'').concat(window.color||"white",'\' />\n <path fill-rule="evenodd" clip-rule="evenodd" d="M9.80172 14.1769C10.1682 14.1769 10.5096 14.1082 10.8258 13.9708C11.142 13.8333 11.416 13.6241 11.6479 13.343C11.8798 13.0619 12.0615 12.7059 12.1928 12.275C12.3242 11.8441 12.3898 11.3368 12.3898 10.753C12.3898 10.1661 12.3242 9.65803 12.1928 9.22868C12.0615 8.79934 11.8798 8.44413 11.6479 8.16305C11.416 7.88197 11.142 7.6727 10.8258 7.53525C10.5096 7.3978 10.1682 7.32907 9.80172 7.32907C9.43524 7.32907 9.09551 7.3978 8.78254 7.53525C8.46956 7.6727 8.19794 7.88197 7.96767 8.16305C7.7374 8.44413 7.5574 8.79934 7.42767 9.22868C7.29794 9.65803 7.23308 10.1661 7.23308 10.753C7.23308 11.3368 7.29794 11.8441 7.42767 12.275C7.5574 12.7059 7.7374 13.0619 7.96767 13.343C8.19794 13.6241 8.46956 13.8333 8.78254 13.9708C9.09551 14.1082 9.43524 14.1769 9.80172 14.1769ZM6.54713 14.1028V13.2457H5.28226V7.39394H4.2947L2.14929 9.13139L2.52875 9.62714C2.5547 9.66112 2.59443 9.69123 2.64794 9.71749C2.70145 9.74374 2.76064 9.75687 2.82551 9.75687C2.86767 9.75687 2.91064 9.75069 2.95443 9.73834C2.99821 9.72598 3.04118 9.70282 3.08335 9.66884L4.09524 8.86266C4.08551 9.02946 4.08064 9.18853 4.08064 9.33988V13.2457H2.65524V14.1028H6.54713ZM9.30308 13.1136C9.46362 13.1893 9.62983 13.2271 9.80172 13.2271C9.97686 13.2271 10.1455 13.1893 10.3077 13.1136C10.4698 13.038 10.6133 12.9059 10.7382 12.7175C10.8631 12.5291 10.9628 12.2758 11.0374 11.9576C11.112 11.6395 11.1493 11.238 11.1493 10.753C11.1493 10.2681 11.112 9.86652 11.0374 9.54838C10.9628 9.23023 10.8631 8.97695 10.7382 8.78853C10.6133 8.60011 10.4698 8.46807 10.3077 8.39239C10.1455 8.31672 9.97686 8.27888 9.80172 8.27888C9.62983 8.27888 9.46362 8.31672 9.30308 8.39239C9.14254 8.46807 9.00064 8.60011 8.8774 8.78853C8.75416 8.97695 8.65605 9.23023 8.58308 9.54838C8.5101 9.86652 8.47362 10.2681 8.47362 10.753C8.47362 11.238 8.5101 11.6395 8.58308 11.9576C8.65605 12.2758 8.75416 12.5291 8.8774 12.7175C9.00064 12.9059 9.14254 13.038 9.30308 13.1136Z" fill=\'').concat(window.color||"white","' />\n </svg>")},t=function(){return'<svg class=\'rewindbtn\' width="21" height="20" viewBox="0 0 21 20" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path d="M1.22363 9.43675L3.152 11.3434L5.08151 9.43675M2.91616 10.8667C2.88115 10.5537 2.86319 10.2356 2.86319 9.91341C2.86319 5.17486 6.74945 1.3335 11.5434 1.3335C16.3374 1.3335 20.2236 5.17486 20.2236 9.91341C20.2236 14.652 16.3374 18.4933 11.5434 18.4933C8.8166 18.4933 6.38346 17.2505 4.79212 15.3067" stroke="white" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.3"/>\n <path d="M9.92694 13.0831V6.80067H8.94318C8.58633 7.20106 7.97871 7.53473 7.37109 7.64912V8.66918C7.68937 8.64058 8.22947 8.52618 8.51881 8.39272V13.0831H9.92694Z" fill="white"/>\n <path d="M13.6545 6.6958C11.8316 6.6958 11.1951 8.23065 11.1951 9.94664C11.1951 11.6817 11.7641 13.1975 13.6255 13.1975C15.5159 13.1975 16.0656 11.634 16.0656 9.9085C16.0656 8.12579 15.4291 6.6958 13.6545 6.6958ZM13.6545 7.78259C14.4839 7.78259 14.6382 8.69778 14.6382 9.91804C14.6382 11.1478 14.5225 12.1107 13.6448 12.1107C12.7479 12.1107 12.6128 11.0811 12.6128 9.92757C12.6128 8.57385 12.8443 7.78259 13.6545 7.78259Z" fill="white"/>\n </svg>'},i=function(){return'<svg width="16" height="16" viewBox="0 0 22 22" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path d="M11 14C12.6569 14 14 12.6569 14 11C14 9.34315 12.6569 8 11 8C9.34315 8 8 9.34315 8 11C8 12.6569 9.34315 14 11 14Z" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>\n <path d="M17.7273 13.7273C17.6063 14.0015 17.5702 14.3056 17.6236 14.6005C17.6771 14.8954 17.8177 15.1676 18.0273 15.3818L18.0818 15.4364C18.2509 15.6052 18.385 15.8057 18.4765 16.0265C18.568 16.2472 18.6151 16.4838 18.6151 16.7227C18.6151 16.9617 18.568 17.1983 18.4765 17.419C18.385 17.6397 18.2509 17.8402 18.0818 18.0091C17.913 18.1781 17.7124 18.3122 17.4917 18.4037C17.271 18.4952 17.0344 18.5423 16.7955 18.5423C16.5565 18.5423 16.3199 18.4952 16.0992 18.4037C15.8785 18.3122 15.678 18.1781 15.5091 18.0091L15.4545 17.9545C15.2403 17.745 14.9682 17.6044 14.6733 17.5509C14.3784 17.4974 14.0742 17.5335 13.8 17.6545C13.5311 17.7698 13.3018 17.9611 13.1403 18.205C12.9788 18.4489 12.8921 18.7347 12.8909 19.0273V19.1818C12.8909 19.664 12.6994 20.1265 12.3584 20.4675C12.0174 20.8084 11.5549 21 11.0727 21C10.5905 21 10.1281 20.8084 9.78708 20.4675C9.4461 20.1265 9.25455 19.664 9.25455 19.1818V19.1C9.24751 18.7991 9.15011 18.5073 8.97501 18.2625C8.79991 18.0176 8.55521 17.8312 8.27273 17.7273C7.99853 17.6063 7.69437 17.5702 7.39947 17.6236C7.10456 17.6771 6.83244 17.8177 6.61818 18.0273L6.56364 18.0818C6.39478 18.2509 6.19425 18.385 5.97353 18.4765C5.7528 18.568 5.51621 18.6151 5.27727 18.6151C5.03834 18.6151 4.80174 18.568 4.58102 18.4765C4.36029 18.385 4.15977 18.2509 3.99091 18.0818C3.82186 17.913 3.68775 17.7124 3.59626 17.4917C3.50476 17.271 3.45766 17.0344 3.45766 16.7955C3.45766 16.5565 3.50476 16.3199 3.59626 16.0992C3.68775 15.8785 3.82186 15.678 3.99091 15.5091L4.04545 15.4545C4.25503 15.2403 4.39562 14.9682 4.4491 14.6733C4.50257 14.3784 4.46647 14.0742 4.34545 13.8C4.23022 13.5311 4.03887 13.3018 3.79497 13.1403C3.55107 12.9788 3.26526 12.8921 2.97273 12.8909H2.81818C2.33597 12.8909 1.87351 12.6994 1.53253 12.3584C1.19156 12.0174 1 11.5549 1 11.0727C1 10.5905 1.19156 10.1281 1.53253 9.78708C1.87351 9.4461 2.33597 9.25455 2.81818 9.25455H2.9C3.2009 9.24751 3.49273 9.15011 3.73754 8.97501C3.98236 8.79991 4.16883 8.55521 4.27273 8.27273C4.39374 7.99853 4.42984 7.69437 4.37637 7.39947C4.3229 7.10456 4.18231 6.83244 3.97273 6.61818L3.91818 6.56364C3.74913 6.39478 3.61503 6.19425 3.52353 5.97353C3.43203 5.7528 3.38493 5.51621 3.38493 5.27727C3.38493 5.03834 3.43203 4.80174 3.52353 4.58102C3.61503 4.36029 3.74913 4.15977 3.91818 3.99091C4.08704 3.82186 4.28757 3.68775 4.50829 3.59626C4.72901 3.50476 4.96561 3.45766 5.20455 3.45766C5.44348 3.45766 5.68008 3.50476 5.9008 3.59626C6.12152 3.68775 6.32205 3.82186 6.49091 3.99091L6.54545 4.04545C6.75971 4.25503 7.03183 4.39562 7.32674 4.4491C7.62164 4.50257 7.9258 4.46647 8.2 4.34545H8.27273C8.54161 4.23022 8.77093 4.03887 8.93245 3.79497C9.09397 3.55107 9.18065 3.26526 9.18182 2.97273V2.81818C9.18182 2.33597 9.37338 1.87351 9.71435 1.53253C10.0553 1.19156 10.5178 1 11 1C11.4822 1 11.9447 1.19156 12.2856 1.53253C12.6266 1.87351 12.8182 2.33597 12.8182 2.81818V2.9C12.8193 3.19253 12.906 3.47834 13.0676 3.72224C13.2291 3.96614 13.4584 4.15749 13.7273 4.27273C14.0015 4.39374 14.3056 4.42984 14.6005 4.37637C14.8954 4.3229 15.1676 4.18231 15.3818 3.97273L15.4364 3.91818C15.6052 3.74913 15.8057 3.61503 16.0265 3.52353C16.2472 3.43203 16.4838 3.38493 16.7227 3.38493C16.9617 3.38493 17.1983 3.43203 17.419 3.52353C17.6397 3.61503 17.8402 3.74913 18.0091 3.91818C18.1781 4.08704 18.3122 4.28757 18.4037 4.50829C18.4952 4.72901 18.5423 4.96561 18.5423 5.20455C18.5423 5.44348 18.4952 5.68008 18.4037 5.9008C18.3122 6.12152 18.1781 6.32205 18.0091 6.49091L17.9545 6.54545C17.745 6.75971 17.6044 7.03183 17.5509 7.32674C17.4974 7.62164 17.5335 7.9258 17.6545 8.2V8.27273C17.7698 8.54161 17.9611 8.77093 18.205 8.93245C18.4489 9.09397 18.7347 9.18065 19.0273 9.18182H19.1818C19.664 9.18182 20.1265 9.37338 20.4675 9.71435C20.8084 10.0553 21 10.5178 21 11C21 11.4822 20.8084 11.9447 20.4675 12.2856C20.1265 12.6266 19.664 12.8182 19.1818 12.8182H19.1C18.8075 12.8193 18.5217 12.906 18.2778 13.0676C18.0339 13.2291 17.8425 13.4584 17.7273 13.7273Z" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>\n </svg>'},l=function(){return'<svg class=\'selected-stream\' width="35" height="33" viewBox="0 0 35 33" fill="none" xmlns="http://www.w3.org/2000/svg">\n <g clip-path="url(#clip0_319_60943)">\n <path d="M0 0H35V33H0V0Z" fill="#D2393B"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M15.8689 17.6541L22.3039 11.2898C22.6966 10.9014 23.3372 10.9054 23.7299 11.2937C24.1225 11.6821 24.1265 12.3157 23.7338 12.704L16.6345 19.7253C16.6189 19.743 16.6026 19.7604 16.5856 19.7772C16.5158 19.8463 16.4381 19.9032 16.3554 19.9479C15.9716 20.1587 15.4758 20.1009 15.1503 19.779C15.126 19.755 15.1032 19.73 15.0819 19.7042L12.2919 16.9449C11.8992 16.5565 11.9032 15.9229 12.2958 15.5346C12.6885 15.1462 13.3291 15.1423 13.7218 15.5306L15.8689 17.6541Z" fill="white"/>\n </g>\n <defs>\n <clipPath id="clip0_319_60943">\n <path d="M0 0H35V33H8C3.58172 33 0 29.4183 0 25V0Z" fill="white"/>\n </clipPath>\n </defs>\n </svg>\n '},o=function(){return'<svg width="21" height="20" viewBox="0 0 21 20" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path fill-rule="evenodd" clip-rule="evenodd" d="M20.7275 8.7189V11.2811L18.0174 11.7913C17.8497 12.5312 17.558 13.2374 17.1546 13.88L18.71 16.1626L16.8874 17.9721L14.6149 16.43C13.9694 16.8283 13.2636 17.1194 12.5249 17.2919L12.0143 20H9.43828L8.92846 17.2919C8.18971 17.1194 7.48385 16.8284 6.8384 16.43L4.56591 17.9721L2.74302 16.1626L4.28649 13.88C3.88787 13.2349 3.5965 12.5296 3.42371 11.7913L0.727539 11.2811V8.7189L3.42371 8.1968C3.59774 7.4568 3.89356 6.75083 4.29909 6.10771L2.74337 3.837L4.56626 2.02785L6.83875 3.57C7.48173 3.16673 8.18841 2.8752 8.92881 2.70777L9.43863 0H12.0147L12.5252 2.70777C13.2656 2.87529 13.9723 3.16682 14.6153 3.57L16.8878 2.02785L18.7103 3.837L17.1549 6.11996C17.5582 6.75838 17.85 7.46066 18.0177 8.1968L20.7275 8.7189ZM5.19864 10.0057C5.2018 13.0538 7.67684 15.5222 10.7268 15.5191C12.1916 15.5176 13.5957 14.9347 14.6304 13.8985C15.665 12.8624 16.2454 11.4579 16.2438 9.99405C16.2405 6.94597 13.7654 4.47766 10.7154 4.48088C7.6654 4.4841 5.19548 6.95764 5.19864 10.0057Z" fill="white"/>\n </svg>'},w=function(n){return'<svg style="width:16px" class=\'skipbtn\' viewBox="0 0 18 20" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path fill-rule="evenodd" clip-rule="evenodd" d="M9.99586 16.9937L10.1623 18.5786C8.29657 18.8638 6.41631 18.54 4.78178 17.6185C0.689955 15.3118 -0.596286 9.9922 1.9108 5.74486C4.41407 1.50398 9.74539 -0.0566045 13.8474 2.25594C14.5323 2.64549 15.1461 3.12366 15.6802 3.6794L14.5432 4.82812C14.1076 4.3749 13.6063 3.98438 13.0472 3.66641C9.67952 1.76782 5.29397 3.05156 3.24002 6.53123C1.1946 9.99645 2.24115 14.3247 5.57947 16.2067C6.92039 16.9626 8.46208 17.2281 9.99586 16.9937Z" fill=\''.concat(window.color?window.color:"white",'\' />\n <path fill-rule="evenodd" clip-rule="evenodd" d="M14.7766 0.464616L17.322 5.24607L11.822 5.79733L14.7766 0.464616Z" fill=\'').concat(window.color?window.color:"white",'\' />\n <path fill-rule="evenodd" clip-rule="evenodd" d="M13.0245 14.115C13.391 14.115 13.7323 14.0463 14.0486 13.9088C14.3648 13.7714 14.6388 13.5621 14.8707 13.281C15.1026 13 15.2842 12.644 15.4156 12.2131C15.5469 11.7822 15.6126 11.2749 15.6126 10.6911C15.6126 10.1042 15.5469 9.59609 15.4156 9.16675C15.2842 8.73741 15.1026 8.38219 14.8707 8.10111C14.6388 7.82003 14.3648 7.61076 14.0486 7.47331C13.7323 7.33586 13.391 7.26714 13.0245 7.26714C12.658 7.26714 12.3183 7.33586 12.0053 7.47331C11.6923 7.61076 11.4207 7.82003 11.1904 8.10111C10.9602 8.38219 10.7802 8.73741 10.6504 9.16675C10.5207 9.59609 10.4559 10.1042 10.4559 10.6911C10.4559 11.2749 10.5207 11.7822 10.6504 12.2131C10.7802 12.644 10.9602 13 11.1904 13.281C11.4207 13.5621 11.6923 13.7714 12.0053 13.9088C12.3183 14.0463 12.658 14.115 13.0245 14.115ZM9.76991 14.0409V13.1837H8.50504V7.332H7.51748L5.37207 9.06945L5.75153 9.56521C5.77748 9.59918 5.81721 9.6293 5.87072 9.65555C5.92423 9.68181 5.98342 9.69493 6.04829 9.69493C6.09045 9.69493 6.13342 9.68876 6.17721 9.6764C6.22099 9.66405 6.26396 9.64088 6.30612 9.6069L7.31802 8.80073C7.30829 8.96752 7.30342 9.1266 7.30342 9.27795V13.1837H5.87802V14.0409H9.76991ZM12.5259 13.0517C12.6864 13.1274 12.8526 13.1652 13.0245 13.1652C13.1996 13.1652 13.3683 13.1274 13.5304 13.0517C13.6926 12.976 13.8361 12.844 13.961 12.6556C14.0859 12.4671 14.1856 12.2139 14.2602 11.8957C14.3348 11.5776 14.3721 11.176 14.3721 10.6911C14.3721 10.2061 14.3348 9.80459 14.2602 9.48644C14.1856 9.16829 14.0859 8.91501 13.961 8.7266C13.8361 8.53818 13.6926 8.40613 13.5304 8.33046C13.3683 8.25478 13.1996 8.21694 13.0245 8.21694C12.8526 8.21694 12.6864 8.25478 12.5259 8.33046C12.3653 8.40613 12.2234 8.53818 12.1002 8.7266C11.9769 8.91501 11.8788 9.16829 11.8059 9.48644C11.7329 9.80459 11.6964 10.2061 11.6964 10.6911C11.6964 11.176 11.7329 11.5776 11.8059 11.8957C11.8788 12.2139 11.9769 12.4671 12.1002 12.6556C12.2234 12.844 12.3653 12.976 12.5259 13.0517Z" fill=\'').concat(window.color?window.color:"white","' />\n </svg>")},h=function(){return'<svg class=\'skipbtn\' width="21" height="20" viewBox="0 0 21 20" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path d="M19.7236 9.43675L17.7953 11.3434L15.8658 9.43675M18.0311 10.8667C18.0661 10.5537 18.0841 10.2356 18.0841 9.91341C18.0841 5.17486 14.1978 1.3335 9.40386 1.3335C4.6099 1.3335 0.723633 5.17486 0.723633 9.91341C0.723633 14.652 4.6099 18.4933 9.40386 18.4933C12.1307 18.4933 14.5638 17.2505 16.1551 15.3067" stroke="white" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.3"/>\n <path d="M7.80584 13.0831V6.80067H6.82209C6.46523 7.20106 5.85762 7.53473 5.25 7.64912V8.66918C5.56828 8.64058 6.10838 8.52618 6.39772 8.39272V13.0831H7.80584Z" fill="white"/>\n <path d="M11.5334 6.6958C9.71052 6.6958 9.07397 8.23065 9.07397 9.94664C9.07397 11.6817 9.64301 13.1975 11.5044 13.1975C13.3948 13.1975 13.9445 11.634 13.9445 9.9085C13.9445 8.12579 13.308 6.6958 11.5334 6.6958ZM11.5334 7.78259C12.3628 7.78259 12.5171 8.69778 12.5171 9.91804C12.5171 11.1478 12.4014 12.1107 11.5237 12.1107C10.6268 12.1107 10.4917 11.0811 10.4917 9.92757C10.4917 8.57385 10.7232 7.78259 11.5334 7.78259Z" fill="white"/>\n </svg>'},d=function(){return'<svg class=\'icon icon-episodes\' width="20" height="20" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path d="M1 11.7368C1 11.3299 1.32989 11 1.73684 11H16.2632C16.6701 11 17 11.3299 17 11.7368V21.2632C17 21.6701 16.6701 22 16.2632 22H1.73684C1.3299 22 1 21.6701 1 21.2632V11.7368Z" fill="white"/>\n <path d="M5 8H19.2632C19.6701 8 20 8.3299 20 8.73684V18" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>\n <path d="M8 4H22.2632C22.6701 4 23 4.3299 23 4.73684V13" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>\n </svg>'},s=function(){return'<svg width="18" height="16" viewBox="0 0 20 21" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path d="M5 6.5H10M5 10H13M7.68375 16H14.2C15.8802 16 16.7202 16 17.362 15.673C17.9265 15.3854 18.3854 14.9265 18.673 14.362C19 13.7202 19 12.8802 19 11.2V5.8C19 4.11984 19 3.27976 18.673 2.63803C18.3854 2.07354 17.9265 1.6146 17.362 1.32698C16.7202 1 15.8802 1 14.2 1H5.8C4.11984 1 3.27976 1 2.63803 1.32698C2.07354 1.6146 1.6146 2.07354 1.32698 2.63803C1 3.27976 1 4.11984 1 5.8V18.3355C1 18.8684 1 19.1348 1.10923 19.2716C1.20422 19.3906 1.34827 19.4599 1.50054 19.4597C1.67563 19.4595 1.88367 19.2931 2.29976 18.9602L4.68521 17.0518C5.17252 16.662 5.41617 16.4671 5.68749 16.3285C5.9282 16.2055 6.18443 16.1156 6.44921 16.0613C6.74767 16 7.0597 16 7.68375 16Z" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>\n </svg>'},r=function(){return'<svg width="21" height="18" viewBox="0 0 21 18" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path fill-rule="evenodd" clip-rule="evenodd" d="M20.4541 15.8369V2H0.454102V15.8369H11.992L17.7874 18V15.8369H20.4541ZM2.4541 4H18.4541V13.8614H15.9182L15.9179 15L11.9664 13.8614H2.4541V4Z" fill="white"/>\n <rect x="3.4541" y="6" width="9" height="2" fill="white"/>\n <rect x="14.4541" y="6" width="3" height="2" fill="white"/>\n <rect x="8.4541" y="10" width="9" height="2" fill="white"/>\n <rect x="3.4541" y="10" width="3" height="2" fill="white"/>\n </svg>\n '},c=function(n){return'<svg className=\'icon-play-next\' width="16" height="16" viewBox="0 0 25 25" fill='.concat(n,' xmlns="http://www.w3.org/2000/svg">\n <path d="M14.8837 9.99984L0 0V20L14.8837 9.99984Z" fill=').concat(n,' />\n <rect x="18" width="2" height="20" fill=').concat(n," />\n </svg>")},v=function(){return'<svg width="19" height="20" viewBox="0 0 19 20" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path fill-rule="evenodd" clip-rule="evenodd" d="M0.273985 2.30391C-0.124672 1.74341 -0.0882695 0.933084 0.383092 0.418212C0.893733 -0.139565 1.72148 -0.13938 2.23191 0.418626L9.25 8.09082L16.2681 0.418626C16.7785 -0.13938 17.6063 -0.139565 18.1169 0.418212C18.5883 0.933084 18.6247 1.74341 18.226 2.30391L18.1173 2.43852L11.1987 10.0029L18.1169 17.5611C18.5883 18.0759 18.6247 18.8863 18.226 19.4468L18.1173 19.5814C17.6461 20.0965 16.9046 20.1362 16.3916 19.7006L16.2685 19.5818L9.25 11.9155L2.23153 19.5818L2.10835 19.7006C1.59542 20.1362 0.853882 20.0965 0.382714 19.5814L0.273985 19.4468C-0.124672 18.8863 -0.0882694 18.0759 0.383092 17.5611L7.30134 10.0029L0.382714 2.43852L0.273985 2.30391Z" fill="white"/>\n </svg>\n \n '},a=function(){return'<svg width="22" height="20" viewBox="0 0 22 20" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path fill-rule="evenodd" clip-rule="evenodd" d="M3.01316 12.1667L0.25 10.5V15.5L3.01316 14.25V18H15.25V8H3.01316V12.1667ZM7.67057 10.7216C7.53806 10.6283 7.35547 10.7231 7.35547 10.8852V15.1146C7.35547 15.2766 7.53806 15.3714 7.67057 15.2781L10.6757 13.1634C10.7889 13.0838 10.7889 12.916 10.6757 12.8363L7.67057 10.7216Z" fill="white"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M7.25 2H20.25H21.25V3V10H20.25V3H7.25V2ZM17.25 5H4.25V6H17.25V13H18.25V6V5H17.25Z" fill="white"/>\n </svg>\n '},g=function(){return'<svg width="11" height="20" viewBox="0 0 11 20" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path fill-rule="evenodd" clip-rule="evenodd" d="M10.6169 0.418212C11.0883 0.933084 11.1247 1.74341 10.726 2.30391L10.6173 2.43852L3.69866 10.0029L10.6169 17.5611C11.0883 18.0759 11.1247 18.8863 10.726 19.4468L10.6173 19.5814C10.1461 20.0965 9.40458 20.1362 8.89165 19.7006L8.76847 19.5818L0 10.0039L8.76809 0.418626C9.27852 -0.13938 10.1063 -0.139565 10.6169 0.418212Z" fill="white"/>\n </svg>\n '},L=function(){return'<svg width="28" height="28" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 28 28">\n <path d="M21 10L11 20L7 16" stroke="white" stroke-width="2" fill="none"/>\n </svg>'};export{g as B,r as C,d as E,n as M,s as N,c as P,e as R,i as S,L as T,C as a,w as b,h as c,t as d,v as e,o as f,a as g,l as h};
package/esm/index.js CHANGED
@@ -1 +1 @@
1
- import"video.js/dist/video-js.min.css";import{s as e,g as n,a as t,l as o,b as i,c as l,h as r,d as a,e as s,f as u,i as d,j as c,p as v,k as p,r as m,m as f,n as g,o as h,q as y,t as w,u as b,v as k,w as O,x as j,y as I,z as T,A as P,B as S,C as x,D,E as C,F as E,G as R,H as A,I as V,J as _}from"./generic-7f222b1f.js";import H from"@babel/runtime/helpers/asyncToGenerator";import B from"@babel/runtime/helpers/defineProperty";import L from"@babel/runtime/regenerator";import N from"video.js";import{g as M,i as U,a as F}from"./skin-2882ecc4.js";import{d as q}from"./browser-d4613b36.js";import z from"@babel/runtime/helpers/typeof";import{o as J,g as G,a as K,s as X,b as Q}from"./util-6f289757.js";import{e as W,d as Y,g as Z,a as $}from"./captions-6cc39cdc.js";import{g as ee}from"./renditions-c0f96578.js";import{playSelectedResolution as ne}from"./resolution-00449d8d.js";import{s as te}from"./localisation-0bf399a1.js";import"axios";import"js-cookie";import"ua-parser-js";import"@babel/runtime/helpers/toConsumableArray";import"@babel/runtime/helpers/classCallCheck";import"@babel/runtime/helpers/createClass";import"@babel/runtime/helpers/assertThisInitialized";import"@babel/runtime/helpers/inherits";import"@babel/runtime/helpers/possibleConstructorReturn";import"@babel/runtime/helpers/getPrototypeOf";var oe,ie=function(e){return new Promise((function(n,t){if(le(e))t("".concat(e," is alread initialised"));else{var o=document.createElement("script");o.async=!0,o.src=e,o.onload=function(){n()},o.onerror=function(n){t("Error while loading script ".concat(e," : ").concat(n))},document.head.appendChild(o)}}))},le=function(e){return document.querySelectorAll('script[src="'.concat(e,'"]')).length>0},re=function(){var e=H(L.mark((function e(n){var t,o,i,l;return L.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(o=M(null==n?void 0:n.playerId),console.log(n),null!=n&&null!==(t=n.series)&&void 0!==t&&t.enable||null==n||!n.chromecastReceiverId){e.next=21;break}return e.next=5,import("@silvermine/videojs-chromecast");case 5:return l=e.sent,e.prev=6,e.next=9,ie("https://www.gstatic.com/cv/js/sender/v1/cast_sender.js?loadCastFramework=1");case 9:e.next=14;break;case 11:e.prev=11,e.t0=e.catch(6),console.log("Error",e.t0);case 14:return e.prev=14,l.default(N),e.finish(14);case 17:null!==(i=window)&&void 0!==i&&i.cast?null==o||o.chromecast({receiverAppID:null==n?void 0:n.chromecastReceiverId,addButtonToControlBar:"VL_ONE"==n.skin||"defaultV2"==n.skin,buttonPositionIndex:-5,addCastLabelToButton:!0}):window.__onGCastApiAvailable=function(){null==o||o.chromecast({receiverAppID:null==n?void 0:n.chromecastReceiverId,addButtonToControlBar:"VL_ONE"==n.skin||"defaultV2"==n.skin,buttonPositionIndex:-5,addCastLabelToButton:!0})},e.next=22;break;case 21:console.log("Chromecast plugin is not available");case 22:null!=n&&n.airplay&&"Safari"==q()?null==o||o.airPlay({addButtonToControlBar:"VL_ONE"==n.skin||"defaultV2"==n.skin,buttonPositionIndex:-5}):console.log("AirPlay plugin is not available");case 23:case"end":return e.stop()}}),e,null,[[6,11,14,17]])})));return function(n){return e.apply(this,arguments)}}(),ae=function(e,n){var t=M(e);t&&n&&t.controlBar&&t.controlBar.progressControl.seekBar.on("click",(function(n){var t,o,i,l,r,a=this.el(),s=N.dom.getPointerPosition(a,n).x;N.getPlayer(e).controlBar.durationDisplay.options_.playerOptions.disableRemotePlayback=!1;var u=window.cast&&window.cast.framework&&window.cast.framework.CastSession,d=null===(t=window)||void 0===t||null===(o=t.cast)||void 0===o||null===(i=o.framework)||void 0===i||null===(l=i.CastContext)||void 0===l||null===(r=l.getInstance())||void 0===r?void 0:r.S;if(console.log(u),u&&"CONNECTED"===d){window.cast.framework.RemotePlayer.canSeek=!0;var c=new window.cast.framework.RemotePlayerController(window.cast.framework.RemotePlayer),v=c.h.media[0].liveSeekableRange.end;c.getSeekPosition(),window.cast.framework.RemotePlayer.currentTime=v*s,c.seek()}}))};function se(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);n&&(o=o.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,o)}return t}function ue(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?se(Object(t),!0).forEach((function(n){B(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):se(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var de=[],ce=0,ve=null;function pe(t,o,i){var l,r,a,s,u,d=arguments.length>3&&void 0!==arguments[3]&&arguments[3];null==o||null===(l=o.watchHistory)||void 0===l||l.apiVersion;var c=null==o||null===(r=o.watchHistory)||void 0===r?void 0:r.profileId,v=Math.floor(t.currentTime()),p=Math.floor(t.duration());null==o||null===(a=o.watchHistory)||void 0===a||a.xapiKey;var m=(null==o||null===(s=o.video)||void 0===s?void 0:s.originalObjectId)||null,f=(null==o||null===(u=o.watchHistory)||void 0===u?void 0:u.saveOffline)||!1,g=Math.floor(t.currentTime()),h=d?100:Math.floor(v/p*100),y={};f?function(e,t,o){var i=t?"watchhistory-data-".concat(t):"watchhistory-data-guest-".concat(o),l=me(i),r=(new Date).getTime(),a=n(),s=(null==a?void 0:a.video)||{},u=["id","title","gist","categories","tags","status","publishDate","plans","isVerticalVideo","monetizationBadgeIdentifier","runtime"].reduce((function(e,n){return ue(ue({},e),{},B({},n,s[n]))}),{}),d=l.findIndex((function(e){var n;return(null==e||null===(n=e.content)||void 0===n?void 0:n.id)===oe}));d<0?l.push(ue(ue({content:u},e),{},{addedDate:r,updateDate:r})):l[d]=ue(ue(ue({},l[d]),e),{},{updateDate:r});localStorage.setItem("".concat(i),JSON.stringify(l))}(y={completed:d,watchedTime:g,watchedPercentage:h},c,o.siteOwner):(y=ue(ue({videoId:oe,watchedTime:g,watchedPercentage:h,doneWatching:d,profileId:c},ve&&{seriesId:ve}),m&&{originalObjectId:m}),e(y).then((function(e){})).catch((function(e){}))),ce=v+i}function me(e){var n=[];return e&&(n=JSON.parse(localStorage.getItem("".concat(e))||"[]")),n}function fe(e,n,t){var o=me(e?"watchhistory-data-".concat(e):"watchhistory-data-guest-".concat(t)),i=[];return o&&Array.isArray(o)&&(i=o.filter((function(e){var t;return(null==e||null===(t=e.content)||void 0===t?void 0:t.id)===n}))),i}var ge=function(e,n,t){var o=M(e);if(o)if(n>=0&&n<=100){o.muted()&&o.muted(!1);var i=parseFloat(n)/100;o.volume(i),t&&t({status:!0,msg:"Volume set to ".concat(n,"%")})}else t&&t({status:!1,msg:"Please enter a valid volume percentage (0 ≥ V ≤ 100)"});else t({status:!1,msg:"Cannot find player with id: '".concat(e,"'")})},he=function(e){var n=M(e);return n?parseInt(100*n.volume())+"%":"Cannot find player with id: '".concat(e,"'")},ye=!1,we=function(e,n){var i,l,r=(null==e?void 0:e.contentType)||"video";if(((null==e||null===(i=e[r])||void 0===i||null===(l=i.streamingInfo)||void 0===l?void 0:l.secondaryVideoAssets)||null)&&!ye){var a=be(e,"videoAssets","secondaryVideoAssets"),s=t(a,n);return s&&o(n,s),ye=!0,console.log("switching to secondary source"),!0}return console.log("secondary source is either corrupted / not available"),!1};function be(e,n,t){if(Array.isArray(e))return e.map((function(e){return be(e,n,t)}));if(null!==e&&"object"===z(e)){var o={};return Object.keys(e).forEach((function(i){i===n&&void 0!==e[t]?o[i]=e[t]:i===t&&void 0!==e[n]?o[i]=e[n]:o[i]=be(e[i],n,t)})),o}return e}function ke(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);n&&(o=o.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,o)}return t}function Oe(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?ke(Object(t),!0).forEach((function(n){B(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ke(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var je=function(e,t,o,s){var u,d,c=s.res,v=s.sres,p=M(e),m=(null==c?void 0:c.contentType)||"video",f=(null==c||null===(u=c[m])||void 0===u||null===(d=u.streamingInfo)||void 0===d?void 0:d.isLiveStream)||!1;i(c),p&&(p.on("loadstart",(function(){f?o.resolve({status:!0,msg:"Video Loaded",response:c}):o.resolve(Oe({status:!0,msg:"Player Initialised"},v?{seriesResponse:v,response:c}:{response:c}))})),p.on("loadeddata",(function(){var o,i,r;(null==p||!p.muted())&&ge(e,sessionStorage.getItem("volume")||"100");var a=n();if(l(),null!=t&&t.watchHistory&&null!=t&&null!==(o=t.watchHistory)&&void 0!==o&&o.enable&&(!t.isAnonymousUser||null!=t&&null!==(i=t.watchHistory)&&void 0!==i&&i.saveOffline)){var s,u,d=Oe(Oe({},t),c);!function(e,n,t){var o,i,l;null!=n&&n.series&&null!=n&&null!==(o=n.series)&&void 0!==o&&o.enable&&(ve=null==n||null===(i=n.series)||void 0===i?void 0:i.id),de=[],ce=0,oe=t;var r=(null==n||null===(l=n.watchHistory)||void 0===l?void 0:l.interval)||30,a=M(e);a&&(a.on("timeupdate",(function(){var e=Math.floor(a.currentTime());de.includes(ce)||(e==ce?(de.push(e),pe(a,n,r)):e>ce&&(ce=e+r))})),a.one("ended",(function(){pe(a,n,r,!0)})))}(e,d,null==a||null===(s=a.video)||void 0===s||null===(u=s.gist)||void 0===u?void 0:u.id)}if(null!=t&&null!==(r=t.analytics)&&void 0!==r&&r.muxKey&&null!=p&&p.mux){var v,m,f,g,h,y=(null===(v=n())||void 0===v?void 0:v.video)||(null==c?void 0:c.video),w=null==y?void 0:y.gist,b={env_key:null==t?void 0:t.muxKey,player_name:"vl-web-player",player_version:null===(m=window)||void 0===m?void 0:m.vl_player_version,video_id:null==w?void 0:w.id,video_title:null==w?void 0:w.title,video_series:null==y||null===(f=y.series)||void 0===f?void 0:f.title,video_stream_type:null!=y&&null!==(g=y.streamingInfo)&&void 0!==g&&g.isLiveStream?"live":"video",viewer_user_id:null==t||null===(h=t.analytics)||void 0===h?void 0:h.userId};p.mux({debug:!1,data:b})}})),p.textTracks().on("change",(function(e){var n=this.tracks_.filter((function(e){if(("subtitles"===e.kind||"captions"===e.kind)&&"showing"===e.mode)return!0}))[0];p.trigger("subtitlechanged",n)})),p.on("subtitlechanged",(function(e,n){var t,o,i,l,r,a,s,u,d,c,v=window.cast&&window.cast.framework&&window.cast.framework.CastSession,p=null===(t=window)||void 0===t||null===(o=t.cast)||void 0===o||null===(i=o.framework)||void 0===i||null===(l=i.CastContext)||void 0===l||null===(r=l.getInstance())||void 0===r?void 0:r.S,m=null===(a=window)||void 0===a||null===(s=a.cast)||void 0===s||null===(u=s.framework)||void 0===u||null===(d=u.CastContext)||void 0===d||null===(c=d.getInstance())||void 0===c?void 0:c.getCurrentSession();if(v&&"CONNECTED"===p){var f,g=m.getMediaSession(),h=g.media.tracks.filter((function(e){return"TEXT"==e.type}));f=n?new chrome.cast.media.EditTracksInfoRequest([h[0].trackId]):new chrome.cast.media.EditTracksInfoRequest([]),g.editTracksInfo(f)}})),p.tech_.on("retryplaylist",(function(){f&&we(c,e)})),p.on("error",(function(){var n,t;(console.log("ERROR",p.error(),p.error().code),4===p.error().code&&f)?we(c,e):(r(e,(null==p||null===(n=p.error())||void 0===n?void 0:n.message)||"Some error occured"),o.reject({status:!1,msg:(null==p||null===(t=p.error())||void 0===t?void 0:t.message)||"Some error occured",response:c}))})),p.one("play",(function(){var e;if(null!=t&&null!==(e=t.series)&&void 0!==e&&e.enable){var o,i,l,r=null===(o=n())||void 0===o||null===(i=o.video)||void 0===i||null===(l=i.gist)||void 0===l?void 0:l.id,s=a(),u=(null==s?void 0:s.get(r))||{t:0,p:0},d=u.t,c=u.p;d&&c<95&&setTimeout((function(){p.currentTime(d)}),0)}else null!=t&&t.watchHistoryResumeTime&&(null==t?void 0:t.watchedPercentage)<95&&setTimeout((function(){p.currentTime(null==t?void 0:t.watchHistoryResumeTime)}),0)})),p.on("volumechange",(function(){var e=100*p.volume().toFixed(2);p.muted()?sessionStorage.setItem("volume",0):sessionStorage.setItem("volume",e)})),p.on("chromecastDisconnected",(function(){if(f){p.currentSource();for(var e=p.textTracks(),n=e.length-1;n>=0;n--)p.removeRemoteTextTrack(e[n])}})))},Ie=function(e,n){var t=null==n?void 0:n.skin;"default"==t?import("./skin-9f9b9216.js").then((function(t){t.initialiseSkin(e,n)})):"carousel"==t?import("./skin-e2b55d7d.js").then((function(n){n.initaliseSkin(e)})):"defaultV2"==t?import("./skin-8928f65a.js").then((function(t){t.initialiseSkin(e,n)})):"multiplayer"==t?import("./skin-7f4c0efb.js").then((function(t){t.initialiseSkin(e,n)})):"minimalist"==t?import("./skin-c07bfa05.js").then((function(t){t.initaliseSkin(e,n)})):"VL_ONE"==t&&import("./skin-8782db02.js").then((function(t){t.initialiseSkin(e,n)}))};var Te,Pe=function(){var e=H(L.mark((function e(){return L.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Promise.all([import("videojs-contrib-ads"),import("ima"),ie("https://imasdk.googleapis.com/js/sdkloader/ima3.js").then((function(){})).catch((function(e){return console.log(e)}))]);case 2:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),Se=function(){var e=H(L.mark((function e(){return L.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,import("videojs-contrib-eme").then((function(e){N.getPlugin("eme")||N.registerPlugin("eme",e.default)}));case 2:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),xe=function(){var e=H(L.mark((function e(){var n;return L.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,import("videojs-mux");case 3:if(!(n=e.sent)||"function"!=typeof n.register){e.next=7;break}return n.register(N),e.abrupt("return");case 7:console.log("Mux registration failed"),e.next=13;break;case 10:e.prev=10,e.t0=e.catch(0),console.log("Failed to load Mux plugin:",e.t0);case 13:case"end":return e.stop()}}),e,null,[[0,10]])})));return function(){return e.apply(this,arguments)}}(),De=Object.freeze({__proto__:null,importChromecast:function(){import("@silvermine/videojs-chromecast").then((function(e){ie("https://www.gstatic.com/cv/js/sender/v1/cast_sender.js?loadCastFramework=1").then((function(){e.default(N)})).catch((function(e){console.log(e)}))}))},importAirplay:function(){import("@silvermine/videojs-airplay").then((function(e){e.default(N)}))},loadAdsLibrary:Pe,loadEMELibrary:Se,loadMuxPlugin:xe}),Ce=function(e,n){var t=new Map;s({videoId:e,token:n}).then((function(e){e.data.map((function(e){t.set(e.videoId,{t:e.watchedTime,p:e.watchedPercentage})})),u(t)})).catch((function(e){return console.log(e)}))};function Ee(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);n&&(o=o.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,o)}return t}function Re(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?Ee(Object(t),!0).forEach((function(n){B(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Ee(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var Ae=function(e,n,i,l){var a,s,u,d,c,v,p,m,f,g,h,y,b,k,O,j,I,T,P,S,E,R,A,V,_,U,q,z,J,G,K,X,Q,W=n.res,Y=void 0===W?null:W,Z=n.sres,ee=void 0===Z?null:Z;null===(a=window)||void 0===a||null===(s=a.cast)||void 0===s||null===(u=s.framework)||void 0===u||null===(d=u.CastContext)||void 0===d||null===(c=d.getInstance())||void 0===c||c.S;var ne=null!=i&&i.chromecastReceiverId?["chromecast","html5"]:["html5"],te=(null===(v=Y)||void 0===v?void 0:v.contentType)||"video",oe=F(null===(p=Y)||void 0===p||null===(m=p[te])||void 0===m||null===(f=m.gist)||void 0===f?void 0:f.videoImageUrl)||F(null===(g=Y)||void 0===g||null===(h=g[te])||void 0===h||null===(y=h.gist)||void 0===y||null===(b=y.imageGist)||void 0===b?void 0:b.r16x9),ie=(null===(k=Y)||void 0===k||null===(O=k[te])||void 0===O||null===(j=O.liveDetails)||void 0===j?void 0:j.isDvrEnabled)||!1,le=(null===(I=Y)||void 0===I||null===(T=I[te])||void 0===T||null===(P=T.streamingInfo)||void 0===P?void 0:P.isLiveStream)||!1,se=(null===(S=Y)||void 0===S||null===(E=S.ads)||void 0===E||null===(R=E.preRoll)||void 0===R||null===(A=R.adTags)||void 0===A||null===(V=A.web)||void 0===V?void 0:V.active)&&(null===(_=Y)||void 0===_||null===(U=_.ads)||void 0===U||null===(q=U.preRoll)||void 0===q||null===(z=q.adTags)||void 0===z||null===(J=z.web)||void 0===J?void 0:J.url);Y=Re(Re({},Y),{},{audioAssetSource:null==i?void 0:i.audioAssetSource});var ue=(Q={enableSmoothSeeking:!0,controls:0!=(null==i?void 0:i.controls),playsinline:!0,fluid:!0,aspectRatio:"16:9",muted:(null==i?void 0:i.muted)||!1,autoplay:(null==i?void 0:i.autoplay)||!1,controlBar:{volumePanel:{inline:!1},fullscreenToggle:!0,audioTrackButton:!0,pictureInPictureToggle:!0},muteToggle:"multiplayer"==i.skin,liveui:ie},B(Q,"autoplay",null==i?void 0:i.autoplay),B(Q,"normalizeAutoplay",(null==i?void 0:i.autoplay)&&!se),B(Q,"loop",(null==i?void 0:i.loop)||!1),B(Q,"audioPosterMode",null==i?void 0:i.audioPosterMode),B(Q,"html5",Re(Re({vhs:Re(Re({liveRangeSafeTimeDelta:0,maxPlaylistRetries:3,smoothQualityChange:!0,useDevicePixelRatio:!0,experimentalLLHLS:(null==i?void 0:i.lowLatency)||!1,limitRenditionByPlayerDimensions:!1,useNetworkInformationApi:!1},(null==i||null===(G=i.customData)||void 0===G?void 0:G.overrideNative)&&{overrideNative:!0}),{},{enableLowInitialPlaylist:!0,experimentalBufferBasedABR:!0})},0==(null==i||null===(K=i.customData)||void 0===K?void 0:K.nativeAudioTracks)&&{nativeAudioTracks:!1}),0==(null==i||null===(X=i.customData)||void 0===X?void 0:X.nativeVideoTracks)&&{nativeVideoTracks:!1})),B(Q,"poster",oe),B(Q,"techOrder",ne),B(Q,"chromecast",{requestCustomDataFn:function(n){var t=M(e),o=((null==t?void 0:t.textTracksJson_)||t.textTracks().tracks_).filter((function(e){return"captions"==e.kind||"subtitles"==e.kind}));return function(e,n,t){var o,i,l,r,a,s,u,d,c,v,p=(null==e?void 0:e.contentType)||"video",m={};if(e&&null!=e&&e[p]&&null!=e&&e[p].drmEnabled){m.isDrmEnabled=!0;var f=n.keySystemOptions&&n.keySystemOptions[0]&&n.keySystemOptions[0].options&&n.keySystemOptions[0].options.serverURL;m.licenseUrl=f;var g=n.keySystemOptions&&n.keySystemOptions[0]&&n.keySystemOptions[0].options&&n.keySystemOptions[0].options.httpRequestHeaders["X-AxDRM-Message"];m.licenseToken=g}var h=(null==e||null===(o=e[p])||void 0===o||null===(i=o.gist)||void 0===i?void 0:i.contentType)||"VIDEO";m.contentType=h;var y=null==e||null===(l=e[p])||void 0===l||null===(r=l.gist)||void 0===r?void 0:r.runtime;m.duration=y;var w=null==e||null===(a=e[p])||void 0===a||null===(s=a.gist)||void 0===s?void 0:s.title;m.mediaTitle=w;var b=null==e||null===(u=e[p])||void 0===u||null===(d=u.gist)||void 0===d?void 0:d.videoImageUrl;return m.mediaImage=b,m.subTitles=t,m.DVR=(null==e||null===(c=e[p])||void 0===c||null===(v=c.liveDetails)||void 0===v?void 0:v.isDvrEnabled)||!1,console.log(m),m}(Y,n,o)}}),Q);if(!N.getPlayers()[e])var de=N(e,ue,function(){var n=H(L.mark((function n(){var a,s,u,d,c,v,p,m,f,g,h,y,b,k,O,j,I,T,P,S,E,R,A,V;return L.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return console.log(de),console.log(N.VERSION),console.log(N.getPlugins()),n.next=5,re(i);case 5:if(null!=i&&null!==(a=i.analytics)&&void 0!==a&&a.muxKey&&xe(),le&&l.resolve(Re({status:!0,msg:"Player Initialised"},ee?{seriesResponse:ee,response:Y}:{response:Y})),C(e),/Android/i.test(navigator.userAgent)&&(N.options.vhs.overrideNative=!0),O=null===(s=Y)||void 0===s||null===(u=s[te])||void 0===u?void 0:u.drmEnabled,j=null===(d=Y)||void 0===d||null===(c=d[te])||void 0===c||null===(v=c.liveDetails)||void 0===v?void 0:v.startOverTime,!O){n.next=14;break}return n.next=14,Se();case 14:ie&&ae(e,j),!se||null!=i&&null!==(p=i.customData)&&void 0!==p&&p.disableAds||x(e,se,Y),I=t(Y,e),console.log(I),null!=i&&i.nearestClusterUrl&&(I=D(I,i.nearestClusterUrl)),I?o(e,I):(l.reject({status:!1,msg:"Incompatible Source, only hls,mp4,drm content is allowed",response:Y}),r(e,"Incompatible Source, only hls,mp4,drm content is allowed")),((null===(m=Y)||void 0===m||null===(f=m[te])||void 0===f||null===(g=f.contentDetails)||void 0===g||null===(h=g.closedCaptions)||void 0===h?void 0:h.length)>0||(null===(y=Y)||void 0===y||null===(b=y[te])||void 0===b||null===(k=b.closedCaptions)||void 0===k?void 0:k.length)>0)&&(V=(null===(P=Y)||void 0===P||null===(S=P[te])||void 0===S||null===(E=S.contentDetails)||void 0===E?void 0:E.closedCaptions)||(null===(R=Y)||void 0===R||null===(A=R[te])||void 0===A?void 0:A.closedCaptions),T=V.filter((function(e){return"VTT"===e.format})),$(e,T)),null!=i&&i.disableControls?w(e):Ie(e,Re(Re(Re({},i),ue),{},{liveVideo:le,isDvrEnabled:ie,res:Y,sres:ee})),je(e,Re(Re(Re({},i),ue),{},{liveVideo:le}),l,{res:Y,sres:ee});case 23:case"end":return n.stop()}}),n)})));return function(){return n.apply(this,arguments)}}())};function Ve(){return{loadVideoInstantly:d,onTimeUpdate:J,getVideoDuration:G,onVideoEnded:K,init:function(e){return console.log("%c VIDEOJS-8 ","background: #bdf369; color: #000"),new Promise(function(){var n=H(L.mark((function n(t,o){var l,r,a,s,u,d,c,v,p,m,g,h,y,w,b,x,D,C,H,B,N,M,F,z,J,G,K;return L.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(!f(null==e?void 0:e.playerId)){n.next=2;break}return n.abrupt("return");case 2:if(g=(null==e?void 0:e.videoSourceUrl)||!1,h=null==e?void 0:e.asat,y=(null==e||null===(l=e.epg)||void 0===l?void 0:l.enable)||!1,w=null==e?void 0:e.videoId,b=(null==e||null===(r=e.series)||void 0===r?void 0:r.enable)||!1,window.videoId=w,x=null==e?void 0:e.token,!T(e)){n.next=15;break}if(P().set(null==e?void 0:e.refreshToken),x&&!S(x)){n.next=14;break}return o({status:!1,msg:"".concat(x?"Token is expired !":"Missing Authorization Token"),response:{token:x}}),n.abrupt("return");case 14:Te=JSON.parse(atob(x.split(".")[1]));case 15:return e.isAnonymousUser=!(null===(a=Te)||void 0===a||!a.anonymousId),e.siteOwner=(null===(s=Te)||void 0===s?void 0:s.site)||null,e.userId=(null===(u=Te)||void 0===u?void 0:u.userId)||null,window.sessionStorage.setItem("uid",null===(d=Te)||void 0===d?void 0:d.userId),window.watchHistory=e.watchHistory||null,sessionStorage.setItem("vlp_token",x),D=null==e?void 0:e.playerId,e.chromecastReceiverId=null!=e&&null!==(c=e.series)&&void 0!==c&&c.enable?null:null==e?void 0:e.chromecastReceiverId,C=null==e?void 0:e.airplay,H=(null==e||null===(v=e.analytics)||void 0===v?void 0:v.gaId)||null,(B=null==e?void 0:e.errors)&&(window.customErrors=B),window.customData=null==e?void 0:e.customData,te(null==e||null===(p=e.customData)||void 0===p?void 0:p.localisation),I.set(e.apiBaseUrl),null!=e&&e.skin&&!U(e.skin)||(e.skin="VL_ONE"),n.next=33,Pe();case 33:C&&"Safari"==q()&&Promise.resolve().then((function(){return De})).then((function(e){e.importAirplay()})),H&&ie("https://www.googletagmanager.com/gtag/js?id=".concat(H)).then((function(){return E(H)})).catch((function(e){})),(N=null===(m=document)||void 0===m?void 0:m.getElementById("".concat(D)))&&N.addEventListener("contextmenu",(function(e){return e.preventDefault()})),g?(F={directPlaybackUrl:g,id:M="c09576ca-8202-4e8e-ba1e-06d1ab0ce063"},h?k(M,x).then((function(n){Ae(D,{res:Re(Re({},n),F)},e,{resolve:t,reject:o})})).catch((function(e){j(e,D,o,M)})):Ae(D,{res:F},e,{resolve:t,reject:o})):b?(J=sessionStorage.getItem("season-idx")||0,V.set(parseInt(J)),G=null==e||null===(z=e.series)||void 0===z?void 0:z.id,R(G,x).then((function(n){var l,r,a,s=n.data,u=n.data.seasons;_(u);var d=w||(null==u||null===(l=u[0])||void 0===l||null===(r=l.episodes)||void 0===r||null===(a=r[0])||void 0===a?void 0:a.id);Ce(G,x),k(d,x).then((function(n){var l,r,a;window.contentType=null==n||null===(l=n.data)||void 0===l||null===(r=l.video)||void 0===r||null===(a=r.gist)||void 0===a?void 0:a.contentType,i(n.data),Ae(D,{res:null==n?void 0:n.data,sres:s},e,{resolve:t,reject:o})})).catch((function(e){j(e,D,o,w)}))})).catch((function(e){j(e,D,o)}))):y?(K=null==e?void 0:e.epg,A(K,x).then((function(n){var i=null==n?void 0:n.data;i.contentType="linearchannel",i.channelId=null==K?void 0:K.channelId,Ae(D,{res:i},e,{resolve:t,reject:o})})).catch((function(e){j(e,D,o,w)}))):k(w,x).then((function(n){var l,r,a,s;window.contentType=null==n||null===(l=n.data)||void 0===l||null===(r=l.video)||void 0===r||null===(a=r.gist)||void 0===a?void 0:a.contentType,i(null==n?void 0:n.data);var u,d=null==n?void 0:n.data;if(null!=e&&e.watchHistory&&null!=e&&null!==(s=e.watchHistory)&&void 0!==s&&s.enable)if((null===(u=e.watchHistory)||void 0===u?void 0:u.saveOffline)||!1){var c,v,p,m=fe((null===(c=e.watchHistory)||void 0===c?void 0:c.profileId)||"",w,null==e?void 0:e.siteOwner);if(m&&m.length)e.watchHistoryResumeTime=(null===(v=m[0])||void 0===v?void 0:v.watchedTime)||null,e.watchedPercentage=(null===(p=m[0])||void 0===p?void 0:p.watchedPercentage)||null;d.contentType="video",Ae(D,{res:d},e,{resolve:t,reject:o})}else O(w,x).then((function(n){var i,l,r,a,s,u;null!==(i=window)&&void 0!==i&&null!==(l=i.watchHistory)&&void 0!==l&&l.cb&&(null===(r=window)||void 0===r||null===(a=r.watchHistory)||void 0===a||a.cb(null==n?void 0:n.data)),e.watchHistoryResumeTime=(null==n||null===(s=n.data)||void 0===s?void 0:s.watchedTime)||null,e.watchedPercentage=(null==n||null===(u=n.data)||void 0===u?void 0:u.watchedPercentage)||null,d.contentType="video",Ae(D,{res:d},e,{resolve:t,reject:o})})).catch((function(n){var i,l,r,a;null!==(i=window)&&void 0!==i&&null!==(l=i.watchHistory)&&void 0!==l&&l.cb&&(null===(r=window)||void 0===r||null===(a=r.watchHistory)||void 0===a||a.cb(n)),Ae(D,{res:d},e,{resolve:t,reject:o})}));else Ae(D,{res:d},e,{resolve:t,reject:o})})).catch((function(e){j(e,D,o,w)}));case 38:case"end":return n.stop()}}),n)})));return function(e,t){return n.apply(this,arguments)}}())},getRenditions:ee,skip:c,getPlayer:M,play:v,pause:p,detectBrowser:q,rewind:m,loadVideo:o,seekToTimeStamp:X,isPlayerInitialised:f,load:g,authenticateLC:h,dispose:y,enableCaptions:W,disableCaptions:Y,getCaptions:Z,playSelectedResolution:ne,getSource:t,setVolume:ge,getVolume:he,disableControls:w,setPlaybackSpeed:Q,getEntitlementData:b}}export{Ve as default};
1
+ import"video.js/dist/video-js.min.css";import{d as e,g as n,s as t,a as o,b as i,l,c as r,e as a,h as s,f as u,i as d,j as c,k as v,m,p,n as f,r as w,o as y,q as h,t as g,u as b,v as k,w as j,x as I,y as O,z as T,A as P,B as S,C as x,D as C,E as D,F as R,G as A,H as E,I as B,J as _,K as V,L as H,M as L,N as M,O as N,P as U}from"./generic-3a4a5eee.js";import F from"@babel/runtime/helpers/asyncToGenerator";import q from"@babel/runtime/helpers/defineProperty";import z from"@babel/runtime/regenerator";import K from"video.js";import J from"@babel/runtime/helpers/typeof";import{o as G,g as X,a as W,s as Y,b as Q}from"./util-89ccc154.js";import{g as Z}from"./renditions-e6a8fbb9.js";import{playSelectedResolution as $}from"./resolution-5444c761.js";import{s as ee}from"./localisation-0bf399a1.js";import"axios";import"js-cookie";import"ua-parser-js";import"@babel/runtime/helpers/toConsumableArray";import"@babel/runtime/helpers/classCallCheck";import"@babel/runtime/helpers/createClass";import"@babel/runtime/helpers/assertThisInitialized";import"@babel/runtime/helpers/inherits";import"@babel/runtime/helpers/possibleConstructorReturn";import"@babel/runtime/helpers/getPrototypeOf";var ne,te,oe=function(e){return new Promise((function(n,t){if(ie(e))t("".concat(e," is alread initialised"));else{var o=document.createElement("script");o.async=!0,o.src=e,o.onload=function(){n()},o.onerror=function(n){t("Error while loading script ".concat(e," : ").concat(n))},document.head.appendChild(o)}}))},ie=function(e){return document.querySelectorAll('script[src="'.concat(e,'"]')).length>0},le=function(){var t=F(z.mark((function t(o){var i,l,r,a;return z.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(l=n(null==o?void 0:o.playerId),null!=o&&null!==(i=o.series)&&void 0!==i&&i.enable||null==o||!o.chromecastReceiverId){t.next=20;break}return t.next=4,import("@silvermine/videojs-chromecast");case 4:return a=t.sent,t.prev=5,t.next=8,oe("https://www.gstatic.com/cv/js/sender/v1/cast_sender.js?loadCastFramework=1");case 8:t.next=13;break;case 10:t.prev=10,t.t0=t.catch(5),console.log("Error",t.t0);case 13:return t.prev=13,a.default(K),t.finish(13);case 16:null!==(r=window)&&void 0!==r&&r.cast?null==l||l.chromecast({receiverAppID:null==o?void 0:o.chromecastReceiverId,addButtonToControlBar:"default"==o.skin||"defaultV2"==o.skin,buttonPositionIndex:-5,addCastLabelToButton:!0}):window.__onGCastApiAvailable=function(){null==l||l.chromecast({receiverAppID:null==o?void 0:o.chromecastReceiverId,addButtonToControlBar:"default"==o.skin||"defaultV2"==o.skin,buttonPositionIndex:-5,addCastLabelToButton:!0})},t.next=21;break;case 20:console.log("Chromecast plugin is not available");case 21:null!=o&&o.airplay&&"Safari"==e()?null==l||l.airPlay({addButtonToControlBar:"default"==o.skin||"defaultV2"==o.skin,buttonPositionIndex:-5}):console.log("AirPlay plugin is not available");case 22:case"end":return t.stop()}}),t,null,[[5,10,13,16]])})));return function(e){return t.apply(this,arguments)}}(),re=function(e,t){var o=n(e);o&&t&&o.controlBar&&o.controlBar.progressControl.seekBar.on("click",(function(n){var t,o,i,l,r,a=this.el(),s=K.dom.getPointerPosition(a,n).x;K.getPlayer(e).controlBar.durationDisplay.options_.playerOptions.disableRemotePlayback=!1;var u=window.cast&&window.cast.framework&&window.cast.framework.CastSession,d=null===(t=window)||void 0===t||null===(o=t.cast)||void 0===o||null===(i=o.framework)||void 0===i||null===(l=i.CastContext)||void 0===l||null===(r=l.getInstance())||void 0===r?void 0:r.S;if(console.log(u),u&&"CONNECTED"===d){window.cast.framework.RemotePlayer.canSeek=!0;var c=new window.cast.framework.RemotePlayerController(window.cast.framework.RemotePlayer),v=c.h.media[0].liveSeekableRange.end;c.getSeekPosition(),window.cast.framework.RemotePlayer.currentTime=v*s,c.seek()}}))};function ae(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);n&&(o=o.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,o)}return t}function se(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?ae(Object(t),!0).forEach((function(n){q(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ae(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var ue=[],de=0,ce=null;function ve(e,n,i){var l,r,a,s,u,d=arguments.length>3&&void 0!==arguments[3]&&arguments[3];te=(null==n||null===(l=n.watchHistory)||void 0===l?void 0:l.apiVersion)||"v1";var c=null==n||null===(r=n.watchHistory)||void 0===r?void 0:r.profileId,v=Math.floor(e.currentTime()),m=Math.floor(e.duration()),p=null==n||null===(a=n.watchHistory)||void 0===a?void 0:a.xapiKey,f=(null==n||null===(s=n.video)||void 0===s?void 0:s.originalObjectId)||null,w=(null==n||null===(u=n.watchHistory)||void 0===u?void 0:u.saveOffline)||!1,y=Math.floor(e.currentTime()),h=d?100:Math.floor(v/m*100),g={};w?function(e,n,t){var i=n?"watchhistory-data-".concat(n):"watchhistory-data-guest-".concat(t),l=me(i),r=(new Date).getTime(),a=o(),s=(null==a?void 0:a.video)||{},u=["id","title","gist","categories","tags","status","publishDate","plans","isVerticalVideo","monetizationBadgeIdentifier","runtime"].reduce((function(e,n){return se(se({},e),{},q({},n,s[n]))}),{}),d=l.findIndex((function(e){var n;return(null==e||null===(n=e.content)||void 0===n?void 0:n.id)===ne}));d<0?l.push(se(se({content:u},e),{},{addedDate:r,updateDate:r})):l[d]=se(se(se({},l[d]),e),{},{updateDate:r});localStorage.setItem("".concat(i),JSON.stringify(l))}(g={completed:d,watchedTime:y,watchedPercentage:h},c,n.siteOwner):("v1"==te?g={videoId:ne,watchedTime:y,watchedPercentage:h,siteOwner:n.siteOwner,userId:n.userId,xApiKey:p}:"v2"==te&&(g=se(se({videoId:ne,watchedTime:y,watchedPercentage:h,doneWatching:d,profileId:c},ce&&{seriesId:ce}),f&&{originalObjectId:f})),t(g,te).then((function(e){})).catch((function(e){}))),de=v+i}function me(e){var n=[];return e&&(n=JSON.parse(localStorage.getItem("".concat(e))||"[]")),n}var pe=function(e,t,o){var i=n(e);if(i)if(t>=0&&t<=100){i.muted()&&i.muted(!1);var l=parseFloat(t)/100;i.volume(l),o&&o({status:!0,msg:"Volume set to ".concat(t,"%")})}else o&&o({status:!1,msg:"Please enter a valid volume percentage (0 ≥ V ≤ 100)"});else o({status:!1,msg:"Cannot find player with id: '".concat(e,"'")})},fe=function(e){var t=n(e);return t?parseInt(100*t.volume())+"%":"Cannot find player with id: '".concat(e,"'")},we=!1,ye=function(e,n){var t,o,r=(null==e?void 0:e.contentType)||"video";if(((null==e||null===(t=e[r])||void 0===t||null===(o=t.streamingInfo)||void 0===o?void 0:o.secondaryVideoAssets)||null)&&!we){var a=he(e,"videoAssets","secondaryVideoAssets"),s=i(a,n);return s&&l(n,s),we=!0,console.log("switching to secondary source"),!0}return console.log("secondary source is either corrupted / not available"),!1};function he(e,n,t){if(Array.isArray(e))return e.map((function(e){return he(e,n,t)}));if(null!==e&&"object"===J(e)){var o={};return Object.keys(e).forEach((function(i){i===n&&void 0!==e[t]?o[i]=e[t]:i===t&&void 0!==e[n]?o[i]=e[n]:o[i]=he(e[i],n,t)})),o}return e}function ge(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);n&&(o=o.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,o)}return t}function be(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?ge(Object(t),!0).forEach((function(n){q(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ge(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var ke=function(e,t,i,l){var d,c,v=l.res,m=l.sres,p=n(e),f=(null==v?void 0:v.contentType)||"video",w=(null==v||null===(d=v[f])||void 0===d||null===(c=d.streamingInfo)||void 0===c?void 0:c.isLiveStream)||!1;r(v),p&&(p.on("loadstart",(function(){w&&i.resolve({status:!0,msg:"Video Loaded",response:v})})),p.on("loadeddata",(function(){var l,r,s;(null==p||!p.muted())&&pe(e,sessionStorage.getItem("volume")||"100");var u=o();if(a(),i.resolve(be({status:!0,msg:"Player Initialised"},m?{seriesResponse:m,response:v}:{response:v})),null!=t&&t.watchHistory&&null!=t&&null!==(l=t.watchHistory)&&void 0!==l&&l.enable&&(!t.isAnonymousUser||null!=t&&null!==(r=t.watchHistory)&&void 0!==r&&r.saveOffline)){var d,c,f=be(be({},t),v);!function(e,t,o){var i,l,r;null!=t&&t.series&&null!=t&&null!==(i=t.series)&&void 0!==i&&i.enable&&(ce=null==t||null===(l=t.series)||void 0===l?void 0:l.id),ue=[],de=0,ne=o;var a=(null==t||null===(r=t.watchHistory)||void 0===r?void 0:r.interval)||30,s=n(e);s&&(s.on("timeupdate",(function(){var e=Math.floor(s.currentTime());ue.includes(de)||(e==de?(ue.push(e),ve(s,t,a)):e>de&&(de=e+a))})),s.one("ended",(function(){ve(s,t,a,!0)})))}(e,f,null==u||null===(d=u.video)||void 0===d||null===(c=d.gist)||void 0===c?void 0:c.id)}if(null!=t&&null!==(s=t.analytics)&&void 0!==s&&s.muxKey&&null!=p&&p.mux){var w,y,h,g,b,k=(null===(w=o())||void 0===w?void 0:w.video)||(null==v?void 0:v.video),j=null==k?void 0:k.gist,I={env_key:null==t?void 0:t.muxKey,player_name:"vl-web-player",player_version:null===(y=window)||void 0===y?void 0:y.vl_player_version,video_id:null==j?void 0:j.id,video_title:null==j?void 0:j.title,video_series:null==k||null===(h=k.series)||void 0===h?void 0:h.title,video_stream_type:null!=k&&null!==(g=k.streamingInfo)&&void 0!==g&&g.isLiveStream?"live":"video",viewer_user_id:null==t||null===(b=t.analytics)||void 0===b?void 0:b.userId};p.mux({debug:!1,data:I})}})),p.textTracks().on("change",(function(e){var n=this.tracks_.filter((function(e){if(("subtitles"===e.kind||"captions"===e.kind)&&"showing"===e.mode)return!0}))[0];p.trigger("subtitlechanged",n)})),p.on("subtitlechanged",(function(e,n){var t,o,i,l,r,a,s,u,d,c,v=window.cast&&window.cast.framework&&window.cast.framework.CastSession,m=null===(t=window)||void 0===t||null===(o=t.cast)||void 0===o||null===(i=o.framework)||void 0===i||null===(l=i.CastContext)||void 0===l||null===(r=l.getInstance())||void 0===r?void 0:r.S,p=null===(a=window)||void 0===a||null===(s=a.cast)||void 0===s||null===(u=s.framework)||void 0===u||null===(d=u.CastContext)||void 0===d||null===(c=d.getInstance())||void 0===c?void 0:c.getCurrentSession();if(v&&"CONNECTED"===m){var f,w=p.getMediaSession(),y=w.media.tracks.filter((function(e){return"TEXT"==e.type}));f=n?new chrome.cast.media.EditTracksInfoRequest([y[0].trackId]):new chrome.cast.media.EditTracksInfoRequest([]),w.editTracksInfo(f)}})),p.on("loadedmetadata",(function(){window.endFirstFrame(p)})),p.tech_.on("retryplaylist",(function(){w&&ye(v,e)})),p.on("error",(function(){var n,t;4===p.error().code&&w?ye(v,e):(s(e,(null==p||null===(n=p.error())||void 0===n?void 0:n.message)||"Some error occured"),i.reject({status:!1,msg:(null==p||null===(t=p.error())||void 0===t?void 0:t.message)||"Some error occured",response:v}))})),p.one("play",(function(){var e;if(null!=t&&null!==(e=t.series)&&void 0!==e&&e.enable){var n,i,l,r=null===(n=o())||void 0===n||null===(i=n.video)||void 0===i||null===(l=i.gist)||void 0===l?void 0:l.id,a=u().get(r)||{t:0,p:0},s=a.t,d=a.p;s&&d<95&&setTimeout((function(){p.currentTime(s)}),0)}else null!=t&&t.watchHistoryResumeTime&&(null==t?void 0:t.watchedPercentage)<95&&setTimeout((function(){p.currentTime(null==t?void 0:t.watchHistoryResumeTime)}),0)})),p.on("volumechange",(function(){var e=100*p.volume().toFixed(2);p.muted()?sessionStorage.setItem("volume",0):sessionStorage.setItem("volume",e)})),p.on("chromecastDisconnected",(function(){if(w){p.currentSource();for(var e=p.textTracks(),n=e.length-1;n>=0;n--)p.removeRemoteTextTrack(e[n])}})))},je=function(e,n){var t=null==n?void 0:n.skin;"live"==t?import("./skin-96d2bdc5.js").then((function(t){t.initialiseSkin(e,n)})):"default"==t?import("./skin-60001dc5.js").then((function(t){t.initialiseSkin(e,n)})):"carousel"==t?import("./skin-d2d14455.js").then((function(n){n.initaliseSkin(e)})):"defaultV2"==t?import("./skin-1b9cdb94.js").then((function(t){t.initialiseSkin(e,n)})):"multiplayer"==t?import("./skin-c81400ed.js").then((function(t){t.initialiseSkin(e,n)})):"minimalist"==t&&import("./skin-edc9cefb.js").then((function(t){t.initaliseSkin(e,n)}))},Ie=function(e,n){n.controlBar.el_.style.color=e,n.controlBar.el_.querySelector(".vjs-play-progress")&&(n.controlBar.el_.querySelector(".vjs-play-progress").style.backgroundColor=e),n.controlBar.el_.querySelector(".vjs-volume-level")&&(n.controlBar.el_.querySelector(".vjs-volume-level").style.backgroundColor=e)};var Oe,Te=function(){var e=F(z.mark((function e(){return z.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,import("videojs-contrib-dash");case 2:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),Pe=function(){var e=F(z.mark((function e(){return z.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,import("videojs-contrib-eme").then((function(e){K.getPlugin("eme")||K.registerPlugin("eme",e.default)}));case 2:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),Se=function(){var e=F(z.mark((function e(){var n;return z.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,import("videojs-mux");case 3:if(n=e.sent,K.getPlugin("mux")){e.next=7;break}return K.registerPlugin("mux",n),e.abrupt("return");case 7:console.log("Mux registration failed"),e.next=13;break;case 10:e.prev=10,e.t0=e.catch(0),console.log("Failed to load Mux plugin:",e.t0);case 13:case"end":return e.stop()}}),e,null,[[0,10]])})));return function(){return e.apply(this,arguments)}}(),xe=Object.freeze({__proto__:null,importChromecast:function(){import("@silvermine/videojs-chromecast").then((function(e){oe("https://www.gstatic.com/cv/js/sender/v1/cast_sender.js?loadCastFramework=1").then((function(){e.default(K)})).catch((function(e){console.log(e)}))}))},importAirplay:function(){import("@silvermine/videojs-airplay").then((function(e){e.default(K)}))},importIMA:function(){import("videojs-contrib-ads"),import("videojs-ima"),oe("https://imasdk.googleapis.com/js/sdkloader/ima3.js").then((function(){})).catch((function(e){return console.log(e)}))},loadDashLibrary:Te,loadEMELibrary:Pe,loadMuxPlugin:Se});function Ce(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);n&&(o=o.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,o)}return t}function De(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?Ce(Object(t),!0).forEach((function(n){q(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Ce(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var Re=function(t,o,r,a){var u,d,c,v,m,p,f,w,y,h,g,b,k,j,I,T,P,S,x,C,D,R,A,E,B,_,N,U,J,G,X,W,Y,Q=o.res,Z=void 0===Q?null:Q,$=o.sres,ee=void 0===$?null:$;null===(u=window)||void 0===u||null===(d=u.cast)||void 0===d||null===(c=d.framework)||void 0===c||null===(v=c.CastContext)||void 0===v||null===(m=v.getInstance())||void 0===m||m.S;var ne=null!=r&&r.chromecastReceiverId?["chromecast","html5"]:["html5"],te=(null===(p=Z)||void 0===p?void 0:p.contentType)||"video",oe=V(null===(f=Z)||void 0===f||null===(w=f[te])||void 0===w||null===(y=w.gist)||void 0===y?void 0:y.videoImageUrl)||V(null===(h=Z)||void 0===h||null===(g=h[te])||void 0===g||null===(b=g.gist)||void 0===b||null===(k=b.imageGist)||void 0===k?void 0:k.r16x9),ie=(null===(j=Z)||void 0===j||null===(I=j[te])||void 0===I||null===(T=I.liveDetails)||void 0===T?void 0:T.isDvrEnabled)||!1,ae=(null===(P=Z)||void 0===P||null===(S=P[te])||void 0===S||null===(x=S.streamingInfo)||void 0===x?void 0:x.isLiveStream)||!1,se=(null==r?void 0:r.drmLibrary)||!1,ue=(null===(C=Z)||void 0===C||null===(D=C.ads)||void 0===D||null===(R=D.preRoll)||void 0===R||null===(A=R.adTags)||void 0===A||null===(E=A.web)||void 0===E?void 0:E.active)&&(null===(B=Z)||void 0===B||null===(_=B.ads)||void 0===_||null===(N=_.preRoll)||void 0===N||null===(U=N.adTags)||void 0===U||null===(J=U.web)||void 0===J?void 0:J.url);Z=De(De({},Z),{},{audioAssetSource:null==r?void 0:r.audioAssetSource});var de=(Y={controls:0!=(null==r?void 0:r.controls),playsinline:!0,fluid:!0,aspectRatio:"16:9",muted:(null==r?void 0:r.muted)||!1,autoplay:(null==r?void 0:r.autoplay)||!1,controlBar:{volumePanel:("default"==r.skin||"defaultV2"==r.skin||"live"==(null==r?void 0:r.skin))&&{inline:!1},fullscreenToggle:"default"==r.skin||"defaultV2"==r.skin,audioTrackButton:!1,pictureInPictureToggle:(r.skin,!1)},muteToggle:"multiplayer"==r.skin,liveui:ie},q(Y,"autoplay",null==r?void 0:r.autoplay),q(Y,"normalizeAutoplay",(null==r?void 0:r.autoplay)&&!ue),q(Y,"loop",(null==r?void 0:r.loop)||!1),q(Y,"audioPosterMode",null==r?void 0:r.audioPosterMode),q(Y,"html5",De(De({dash:De(De({},!K.browser.IS_SAFARI&&{useTTML:!0}),{},{updateSettings:{streaming:{delay:{liveDelay:localStorage.getItem("LATENCY")||5},liveCatchup:{maxDrift:0,playbackRate:{min:-.1,max:.1}},abr:{additionalAbrRules:{insufficientBufferRule:!0,switchHistoryRule:!0,droppedFramesRule:!0}}}}},null==r?void 0:r.dash),vhs:De(De({experimentalLLHLS:(null==r?void 0:r.lowLatency)||!1,limitRenditionByPlayerDimensions:!0,useDevicePixelRatio:!0,useNetworkInformationApi:!0},(null==r||null===(G=r.customData)||void 0===G?void 0:G.overrideNative)&&{overrideNative:!0}),{},{enableLowInitialPlaylist:(null==r?void 0:r.enableLowInitialPlaylist)||!1,experimentalBufferBasedABR:(null==r?void 0:r.experimentalBufferBasedABR)||!1})},0==(null==r||null===(X=r.customData)||void 0===X?void 0:X.nativeAudioTracks)&&{nativeAudioTracks:!1}),0==(null==r||null===(W=r.customData)||void 0===W?void 0:W.nativeVideoTracks)&&{nativeVideoTracks:!1})),q(Y,"poster",oe),q(Y,"techOrder",ne),q(Y,"chromecast",{requestCustomDataFn:function(e){var o=n(t),i=((null==o?void 0:o.textTracksJson_)||o.textTracks().tracks_).filter((function(e){return"captions"==e.kind||"subtitles"==e.kind}));return function(e,n,t){var o,i,l,r,a,s,u,d,c,v,m=(null==e?void 0:e.contentType)||"video",p={};if(e&&null!=e&&e[m]&&null!=e&&e[m].drmEnabled){p.isDrmEnabled=!0;var f=n.keySystemOptions&&n.keySystemOptions[0]&&n.keySystemOptions[0].options&&n.keySystemOptions[0].options.serverURL;p.licenseUrl=f;var w=n.keySystemOptions&&n.keySystemOptions[0]&&n.keySystemOptions[0].options&&n.keySystemOptions[0].options.httpRequestHeaders["X-AxDRM-Message"];p.licenseToken=w}var y=(null==e||null===(o=e[m])||void 0===o||null===(i=o.gist)||void 0===i?void 0:i.contentType)||"VIDEO";p.contentType=y;var h=null==e||null===(l=e[m])||void 0===l||null===(r=l.gist)||void 0===r?void 0:r.runtime;p.duration=h;var g=null==e||null===(a=e[m])||void 0===a||null===(s=a.gist)||void 0===s?void 0:s.title;p.mediaTitle=g;var b=null==e||null===(u=e[m])||void 0===u||null===(d=u.gist)||void 0===d?void 0:d.videoImageUrl;return p.mediaImage=b,p.subTitles=t,p.DVR=(null==e||null===(c=e[m])||void 0===c||null===(v=c.liveDetails)||void 0===v?void 0:v.isDvrEnabled)||!1,console.log(p),p}(Z,e,i)}}),Y);if(!K.getPlayers()[t])var ce=K(t,de,function(){var n=F(z.mark((function n(){var o,u,d,c,v,m,p,f,w,y,h,g,b,k,j,I,T,P,S,x,C,D,R,A,E;return z.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,le(r);case 2:if(null!=r&&null!==(o=r.analytics)&&void 0!==o&&o.muxKey&&Se(),ae&&a.resolve(De({status:!0,msg:"Player Initialised"},ee?{seriesResponse:ee,response:Z}:{response:Z})),window.initialise(ce),window.firstFrame(ce),"white"!==window.controlsColor&&Ie(window.controlsColor,ce),/Android/i.test(navigator.userAgent)&&(K.options.vhs.overrideNative=!0),j=null===(u=Z)||void 0===u||null===(d=u[te])||void 0===d?void 0:d.drmEnabled,I=null===(c=Z)||void 0===c||null===(v=c[te])||void 0===v||null===(m=v.liveDetails)||void 0===m?void 0:m.startOverTime,!j&&!se){n.next=23;break}if("Safari"!==e()){n.next=16;break}return n.next=14,Pe();case 14:n.next=23;break;case 16:if("caliente"!=(null===(T=window)||void 0===T?void 0:T.siteName)){n.next=21;break}return n.next=19,Pe();case 19:n.next=23;break;case 21:return n.next=23,Te();case 23:if(null==r||!r.videoSourceUrl){n.next=26;break}return n.next=26,Te();case 26:ie&&re(t,I),!ue||null!=r&&null!==(p=r.customData)&&void 0!==p&&p.disableAds||H(t,ue,Z),P=i(Z,t),null!=r&&r.nearestClusterUrl&&(P=L(P,r.nearestClusterUrl)),P?l(t,P):(a.reject({status:!1,msg:"Incompatible Source, only hls,mp4,drm content is allowed",response:Z}),s(t,"Incompatible Source, only hls,mp4,drm content is allowed")),((null===(f=Z)||void 0===f||null===(w=f[te])||void 0===w||null===(y=w.contentDetails)||void 0===y||null===(h=y.closedCaptions)||void 0===h?void 0:h.length)>0||(null===(g=Z)||void 0===g||null===(b=g[te])||void 0===b||null===(k=b.closedCaptions)||void 0===k?void 0:k.length)>0)&&(E=(null===(x=Z)||void 0===x||null===(C=x[te])||void 0===C||null===(D=C.contentDetails)||void 0===D?void 0:D.closedCaptions)||(null===(R=Z)||void 0===R||null===(A=R[te])||void 0===A?void 0:A.closedCaptions),S=E.filter((function(e){return"VTT"===e.format})),M(t,S)),null!=r&&r.disableControls?O(t):je(t,De(De(De({},r),de),{},{liveVideo:ae,isDvrEnabled:ie,res:Z,sres:ee})),ke(t,De(De(De({},r),de),{},{liveVideo:ae}),a,{res:Z,sres:ee});case 34:case"end":return n.stop()}}),n)})));return function(){return n.apply(this,arguments)}}())};function Ae(){return{loadVideoInstantly:v,onTimeUpdate:G,getVideoDuration:X,onVideoEnded:W,init:function(n){return new Promise((function(t,o){var i,l,a,s,u,v,m,p,f,w,h;if(!y(null==n?void 0:n.playerId)){var g=(null==n?void 0:n.videoSourceUrl)||!1,b=null==n?void 0:n.asat,k=(null==n||null===(i=n.epg)||void 0===i?void 0:i.enable)||!1,j=null==n?void 0:n.videoId,I=(null==n||null===(l=n.series)||void 0===l?void 0:l.enable)||!1;window.videoId=j;var O=null==n?void 0:n.token;if(P(n)){if(S().set(null==n?void 0:n.refreshToken),!O||x(O))return void o({status:!1,msg:"".concat(O?"Token is expired !":"Missing Authorization Token"),response:{token:O}});Oe=JSON.parse(atob(O.split(".")[1]))}window.siteId=null===(a=Oe)||void 0===a?void 0:a.siteId,window.siteName=null===(s=Oe)||void 0===s?void 0:s.site,n.isAnonymousUser=!(null===(u=Oe)||void 0===u||!u.anonymousId),n.siteOwner=(null===(v=Oe)||void 0===v?void 0:v.site)||null,n.userId=(null===(m=Oe)||void 0===m?void 0:m.userId)||null,window.sessionStorage.setItem("uid",null===(p=Oe)||void 0===p?void 0:p.userId),window.watchHistory=n.watchHistory||null,sessionStorage.setItem("vlp_token",O);var T=null==n?void 0:n.playerId;n.chromecastReceiverId=null!=n&&n.series?null:null==n?void 0:n.chromecastReceiverId;var V=null==n?void 0:n.airplay,H=null==n?void 0:n.apiBaseUrl,L=(null==n||null===(f=n.analytics)||void 0===f?void 0:f.gaId)||null,M=null==n?void 0:n.errors;M&&(window.customErrors=M),window.customData=null==n?void 0:n.customData,ee(null==n||null===(w=n.customData)||void 0===w?void 0:w.localisation),H&&(window.playerEntitlementUrl=H),window.controlsColor=(null==n?void 0:n.controlsColor)||"white",null!=n&&n.skin&&!C(n.skin)||(n.skin="defaultV2"),Promise.resolve().then((function(){return xe})).then((function(e){e.importIMA()})),V&&"Safari"==e()&&Promise.resolve().then((function(){return xe})).then((function(e){e.importAirplay()})),L&&oe("https://www.googletagmanager.com/gtag/js?id=".concat(L)).then((function(){return D(L)})).catch((function(e){}));var F=null===(h=document)||void 0===h?void 0:h.getElementById("".concat(T));if(F&&F.addEventListener("contextmenu",(function(e){return e.preventDefault()})),g){var q="c09576ca-8202-4e8e-ba1e-06d1ab0ce063",z={directPlaybackUrl:g,id:q};b?R(q,O).then((function(e){Re(T,{res:De(De({},e),z)},n,{resolve:t,reject:o})})).catch((function(e){A(e,T,o,q)})):Re(T,{res:z},n,{resolve:t,reject:o})}else if(I){var K,J=sessionStorage.getItem("season-idx")||0;N.set(parseInt(J));var G=null==n||null===(K=n.series)||void 0===K?void 0:K.id;E(G,O).then((function(e){var i,l,a,s=e.data,u=e.data.seasons;U(u);var v=j||(null==u||null===(i=u[0])||void 0===i||null===(l=i.episodes)||void 0===l||null===(a=l[0])||void 0===a?void 0:a.id);!function(e,n){var t=new Map;d({videoId:e,token:n}).then((function(e){e.data.map((function(e){t.set(e.videoId,{t:e.watchedTime,p:e.watchedPercentage})})),c(t)})).catch((function(e){return console.log(e)}))}(G,O),R(v,O).then((function(e){var i,l,a;window.contentType=null==e||null===(i=e.data)||void 0===i||null===(l=i.video)||void 0===l||null===(a=l.gist)||void 0===a?void 0:a.contentType,r(e.data),Re(T,{res:null==e?void 0:e.data,sres:s},n,{resolve:t,reject:o})})).catch((function(e){A(e,T,o,j)}))})).catch((function(e){A(e,T,o)}))}else if(k){var X=null==n?void 0:n.epg;B(X,O).then((function(e){var i=null==e?void 0:e.data;i.contentType="linearchannel",i.channelId=null==X?void 0:X.channelId,Re(T,{res:i},n,{resolve:t,reject:o})})).catch((function(e){A(e,T,o,j)}))}else R(j,O).then((function(e){var i,l,a,s;window.contentType=null==e||null===(i=e.data)||void 0===i||null===(l=i.video)||void 0===l||null===(a=l.gist)||void 0===a?void 0:a.contentType,r(null==e?void 0:e.data);var u,d=null==e?void 0:e.data;if(null!=n&&n.watchHistory&&null!=n&&null!==(s=n.watchHistory)&&void 0!==s&&s.enable)if((null===(u=n.watchHistory)||void 0===u?void 0:u.saveOffline)||!1){var c,v,m,p=function(e,n,t){var o=me(e?"watchhistory-data-".concat(e):"watchhistory-data-guest-".concat(t)),i=[];return o&&Array.isArray(o)&&(i=o.filter((function(e){var t;return(null==e||null===(t=e.content)||void 0===t?void 0:t.id)===n}))),i}((null===(c=n.watchHistory)||void 0===c?void 0:c.profileId)||"",j,null==n?void 0:n.siteOwner);if(p&&p.length)n.watchHistoryResumeTime=(null===(v=p[0])||void 0===v?void 0:v.watchedTime)||null,n.watchedPercentage=(null===(m=p[0])||void 0===m?void 0:m.watchedPercentage)||null;d.contentType="video",Re(T,{res:d},n,{resolve:t,reject:o})}else _(j,O).then((function(e){var i,l,r,a,s,u;null!==(i=window)&&void 0!==i&&null!==(l=i.watchHistory)&&void 0!==l&&l.cb&&(null===(r=window)||void 0===r||null===(a=r.watchHistory)||void 0===a||a.cb(null==e?void 0:e.data)),n.watchHistoryResumeTime=(null==e||null===(s=e.data)||void 0===s?void 0:s.watchedTime)||null,n.watchedPercentage=(null==e||null===(u=e.data)||void 0===u?void 0:u.watchedPercentage)||null,d.contentType="video",Re(T,{res:d},n,{resolve:t,reject:o})})).catch((function(e){var i,l,r,a;null!==(i=window)&&void 0!==i&&null!==(l=i.watchHistory)&&void 0!==l&&l.cb&&(null===(r=window)||void 0===r||null===(a=r.watchHistory)||void 0===a||a.cb(e)),Re(T,{res:d},n,{resolve:t,reject:o})}));else Re(T,{res:d},n,{resolve:t,reject:o})})).catch((function(e){A(e,T,o,j)}))}}))},getRenditions:Z,skip:m,getPlayer:n,play:p,pause:f,detectBrowser:e,rewind:w,loadVideo:l,seekToTimeStamp:Y,isPlayerInitialised:y,load:h,authenticateLC:g,dispose:b,enableCaptions:k,disableCaptions:j,getCaptions:I,playSelectedResolution:$,getSource:i,setVolume:pe,getVolume:fe,disableControls:O,setPlaybackSpeed:Q,getEntitlementData:T}}export{Ae as default};
@@ -0,0 +1 @@
1
+ import{g as e,m as r,r as t}from"./generic-3a4a5eee.js";function o(o,u){var l,i,n=e(o),c=null==n||null===(l=n.controlBar)||void 0===l||null===(i=l.playToggle)||void 0===i?void 0:i.el_,a=document.getElementsByTagName("video")[0];a&&a.addEventListener("keydown",(function(e){switch(e.key){case" ":return e.preventDefault(),a&&a.focus(),void(c&&c.click());case"m":case"M":return e.preventDefault(),a&&a.focus(),void(n.muted()?n.muted(!1):n.muted(!0));case"f":e.preventDefault(),a&&a.focus();var l=document.querySelector(".vjs-fullscreen-control");return void(l&&l.click());case"F":e.preventDefault();var i=document.querySelector(".vjs-fullscreen-control");return void(i&&i.click());case"ArrowLeft":if((1==u.liveVideo||1==u.liveui)&&0==u.liveui)break;return e.preventDefault(),a&&a.focus(),void t(o,10);case"ArrowRight":if(1==u.liveVideo||1==u.liveui)break;return e.preventDefault(),a&&a.focus(),void r(o,10);default:return}}))}export{o as i};
@@ -0,0 +1 @@
1
+ var t=function(t){document.getElementById("".concat(t)).classList.add("vjs-waiting")};export{t as s};
@@ -0,0 +1 @@
1
+ import e from"@babel/runtime/helpers/classCallCheck";import t from"@babel/runtime/helpers/createClass";import i from"@babel/runtime/helpers/assertThisInitialized";import l from"@babel/runtime/helpers/inherits";import o from"@babel/runtime/helpers/possibleConstructorReturn";import n from"@babel/runtime/helpers/getPrototypeOf";import r from"@babel/runtime/helpers/defineProperty";import a from"video.js";import{s}from"./loader-580278fe.js";import{q as c,p as u}from"./generic-3a4a5eee.js";import"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/regenerator";import"axios";import"js-cookie";import"ua-parser-js";import"@babel/runtime/helpers/toConsumableArray";function m(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(m=function(){return!!e})()}var d=a.getComponent("Component"),p=function(){l(h,d);var p,v,f=(p=h,v=m(),function(){var e,t=n(p);if(v){var i=n(this).constructor;e=Reflect.construct(t,arguments,i)}else e=t.apply(this,arguments);return o(this,e)});function h(t){var l,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e(this,h),l=f.call(this,t,o),r(i(l),"multicamCssPositioning",(function(e,t){var o=document.getElementById(t);if(o){var n,r,a,s,c,u,m,d,p=window.getComputedStyle(o,null),v=p.getPropertyValue("height"),f=p.getPropertyValue("width"),h=v.slice(0,-2);if(f.slice(0,-2)-135<=135)e.style.bottom="290px",e.style.height="352px";else"live"==l.config.skin&&(null===(n=i(l))||void 0===n||null===(r=n.config)||void 0===r||!r.liveui)&&(null===(a=i(l))||void 0===a||null===(s=a.config)||void 0===s||!s.liveVideo)||null!==(c=i(l))&&void 0!==c&&null!==(u=c.config)&&void 0!==u&&u.liveui&&null!==(m=i(l))&&void 0!==m&&null!==(d=m.config)&&void 0!==d&&d.liveVideo?(e.style.bottom="".concat(h-135,"px"),e.style.height="".concat(h-85,"px")):(e.style.bottom="3rem",e.style.height="".concat(h-105,"px"))}})),l.playerId=o.playerId,l.streams=null==o?void 0:o.streams,l.config=null==o?void 0:o.config,l.createUI(null==o?void 0:o.streams),l}return t(h,[{key:"createEl",value:function(){return a.dom.createEl("div",{className:"multicamera-parent"})}},{key:"createUI",value:function(e){var t,i,l,o,n,r,a=this,s=this.el();null!=this&&null!==(t=this.config)&&void 0!==t&&t.liveui&&null!=this&&null!==(i=this.config)&&void 0!==i&&i.liveVideo||0==(null==this||null===(l=this.config)||void 0===l?void 0:l.liveui)&&0==(null==this||null===(o=this.config)||void 0===o?void 0:o.liveVideo)?null==s||null===(n=s.classList)||void 0===n||n.add("".concat(this.config.skin)):null==s||null===(r=s.classList)||void 0===r||r.add("default"),this.loadCSS();for(var c=0;c<e.length;c++)this.createTile(e[c],c);this.multicamCssPositioning(s,this.playerId),window.onresize=function(){a.multicamCssPositioning(s,a.playerId)}}},{key:"getOffset",value:function(e){var t=e.getBoundingClientRect();return{left:t.left+window.scrollX,top:t.top+window.scrollY}}},{key:"createTile",value:function(e,t){var i=this,l=this.el(),o=a.dom.createEl("div",{className:"tile ".concat(t)});return 0==t&&(o.style.border="2px solid red"),o.style.backgroundImage="url(".concat(e.img,")"),a.dom.appendContent(l,o),o.addEventListener("click",(function(t){s(i.playerId),i.removeSelectedTile();var l=document.getElementsByClassName("".concat(t.srcElement.className))[0];l&&(l.style.border="2px solid red"),c(i.playerId,e.id).then((function(e){u(i.playerId)}))})),l}},{key:"removeSelectedTile",value:function(){for(var e=document.getElementsByClassName("tile"),t=0;t<e.length;t++)e[t].style.border=0}},{key:"loadCSS",value:function(){import("./multicam-de741974.js").then((function(e){var t=document.createElement("style");t.id="multicam",t.append("".concat(e.default)),document.head.appendChild(t)}))}}]),h}();export{p as default};
@@ -0,0 +1 @@
1
+ var n="\n.video-js .multicamera-parent.default{\n height: 345px;\n position: absolute;\n right: 0;\n bottom: 6rem;\n width: 200px;\n right: 13px;\n opacity: 1;\n overflow: scroll;\n display: grid;\n justify-content: center;\n flex-direction: column;\n align-items: center;\n}\n\n.video-js .tile{\n height: 103px;\n width: 171px;\n margin-bottom: 1rem;\n background-size: cover !important;\n background-repeat: no-repeat;\n border-radius: 5px;\n}\n\n.video-js .tile:hover{\n cursor: pointer;\n}\n\n.video-js .multicamera-parent:hover{\n opacity: 1 !important;\n background: none;\n}\n\n\n.video-js .multicamera-parent {\n -ms-overflow-style: none; /* Internet Explorer 10+ */\n scrollbar-width: none; /* Firefox */\n}\n.video-js .multicamera-parent::-webkit-scrollbar { \n display: none; /* Safari and Chrome */\n}\n\n@media (max-width: 600px) {\n .video-js .multicamera-parent.live{\n display: none !important;\n }\n .video-js .multicamera-parent.default{\n display: none !important;\n }\n }\n\n\n@media (min-width:601px) and (max-width:900px) {\n .video-js .tile{\n height: 85px;\n width: 150px;\n } \n .video-js .multicamera-parent.live{\n justify-content: center ;\n }\n}\n\n\n.video-js .multicamera-parent.live{\n position: absolute;\n right: 0;\n width: 200px;\n right: 13px;\n opacity: 1;\n overflow: scroll;\n display: grid;\n flex-direction: column;\n align-items: center;\n position: relative;\n right: 0;\n align-content: baseline;\n}\n";export{n as default};
@@ -0,0 +1 @@
1
+ import e from"@babel/runtime/helpers/classCallCheck";import t from"@babel/runtime/helpers/createClass";import a from"@babel/runtime/helpers/inherits";import r from"@babel/runtime/helpers/possibleConstructorReturn";import n from"@babel/runtime/helpers/getPrototypeOf";import o from"video.js";import{g as s,e as l,h as i}from"./icons-3e9a1686.js";import{_ as c,g as m,q as d,p}from"./generic-3a4a5eee.js";import"@babel/runtime/helpers/defineProperty";import"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/regenerator";import"axios";import"js-cookie";import"ua-parser-js";import"@babel/runtime/helpers/toConsumableArray";function u(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(u=function(){return!!e})()}var h=o.getComponent("Component"),v=function(){a(g,h);var v,f,y=(v=g,f=u(),function(){var e,t=n(v);if(f){var a=n(this).constructor;e=Reflect.construct(t,arguments,a)}else e=t.apply(this,arguments);return r(this,e)});function g(t){var a,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e(this,g),(a=y.call(this,t,r)).playerId=r.playerId,a.seriesData=r.sres,a.streams=r.streams,a.currentVideoData=r.res,a.initialiseStructure(),a.loadCSS(),a}return t(g,[{key:"createEl",value:function(){var e=o.dom.createEl("div",{className:"stream-selection vjs-control vjs-button"});e.style.position="unset";var t=o.dom.createEl("div",{className:"stream-selector-icon",innerHTML:"".concat(s())});return o.dom.appendContent(e,t),e}},{key:"loadCSS",value:function(){import("./multicamv2-d006cffa.js").then((function(e){var t=document.createElement("style");t.id="multicam-v2",t.append("".concat(e.default)),document.head.appendChild(t)}))}},{key:"initialiseStructure",value:function(){var e=this.el(),t=o.dom.createEl("div",{className:"stream-container hidden"});o.dom.$(".stream-selector-icon",this.el()).onclick=function(){var a;null!==(a=t.classList)&&void 0!==a&&a.contains("hidden")?(c(),t.classList.remove("hidden"),e.classList.add("open"),t.style.right="0px"):(t.classList.add("hidden"),e.classList.remove("open"),t.style.right="-350px")};var a=document.getElementById(this.playerId);if(a){var r=window.getComputedStyle(a,null).getPropertyValue("height").slice(0,-2);t.style.height="".concat(r,"px"),a.style.overflow="hidden",o.dom.appendContent(e,t),this.addFunctionality(t)}}},{key:"addFunctionality",value:function(e){var t=this,a=this.el(),r=o.dom.createEl("div",{className:"stream-selector-head"}),n=o.dom.createEl("div",{className:"stream-selector-cross-icon",innerHTML:"".concat(l())});n.onclick=function(){e.classList.add("hidden"),a.classList.remove("open"),e.style.right="-350px"};for(var s=o.dom.createEl("div",{className:"stream-selector-title",innerHTML:"Streams"}),c=o.dom.createEl("div",{className:"stream-selector-content"}),u=o.dom.createEl("div",{className:"stream-tray"}),h=function(e){var a,r=o.dom.createEl("div",{className:"stream -".concat(e),innerHTML:"".concat(i())});0==e&&(r.classList.add("selected"),r.style.border="4px solid #D2393B"),r.onclick=function(){for(var a=o.dom.$$(".stream"),n=0;n<a.length;n++)a[n].style.border="none",a[n].classList.remove("selected");r.classList.add("selected"),r.style.border="4px solid #D2393B",d(t.playerId,t.streams[e].id).then((function(e){p(t.playerId),console.log(e)})).catch((function(e){console.log(e)}))},r.style.backgroundImage="url(".concat(t.streams[e].img,")");var n=document.createElement("img");n.className="stream-thumbnail-image",n.src="".concat(null==t||null===(a=t.streams[e])||void 0===a?void 0:a.img),n.alt="No Thumbnail Available",r.append(n),o.dom.appendContent(u,r),o.dom.appendContent(c,u)},v=0;v<this.streams.length;v++)h(v);o.dom.appendContent(r,n),o.dom.appendContent(r,s),o.dom.appendContent(e,r),o.dom.appendContent(e,c),m(this.playerId).on("fullscreenchange",(function(){var a=window.getComputedStyle(document.getElementById(t.playerId),null).getPropertyValue("height").slice(0,-2);e.style.height="".concat(a,"px")}))}}]),g}();export{v as default};
@@ -1 +1 @@
1
- var n=".stream-selection {\n display: flex;\n align-items: center;\n justify-content: center;\n}\n\n.stream-selector-icon {\n cursor: pointer;\n}\n\n.stream-container {\n position: absolute;\n width: 350px;\n right: -350px;\n bottom: 0px;\n\n background: #00000080 !important;\n z-index: -1;\n transition: right 300ms ease-out;\n}\n\n.stream-container.hidden {\n visibility: hidden;\n}\n\n.stream-selection.open {\n background: rgba(255, 255, 255, 0.20) !important;\n}\n\n.stream-tray {\n display: flex;\n justify-content: center;\n flex-direction: column;\n align-items: center;\n}\n\n.stream-selector-head {\n display: flex;\n align-items: center;\n padding-top: 18px;\n padding-left: 20px;\n margin-bottom: 20px;\n}\n\n.stream-selector-title {\n font-size: 18px;\n font-weight: 600;\n margin-left: 25px;\n user-select: none;\n}\n\n.stream-selector-cross-icon {\n cursor: pointer;\n}\n\n.stream-selector-content {\n height: 74%;\n overflow: scroll;\n /* background: yellowgreen; */\n}\n\n.stream-selector-content::-webkit-scrollbar {\n display: none;\n}\n\n/* Hide scrollbar for IE, Edge and Firefox */\n.stream-selector-content {\n -ms-overflow-style: none;\n /* IE and Edge */\n scrollbar-width: none;\n /* Firefox */\n}\n\n.stream-selector-content-video {\n height: 300px;\n margin-bottom: 30px;\n /* background: red; */\n}\n\n.stream {\n position: relative;\n height: 175px;\n width: 303px;\n background-repeat: no-repeat;\n background-size: contain;\n margin-bottom: 10px;\n}\n\n.stream>svg {\n display: none;\n}\n\n\n.stream.selected>svg {\n display: block;\n position: absolute;\n right: 0;\n top: -1px;\n}\n\n.parent {\n margin: 21px 52px 23px 34px;\n}\n\n.stream:hover {\n cursor: pointer;\n}\n\n.info {\n font-size: 15px;\n padding: 7px;\n}\n.stream-thumbnail-image{\n width: 100%;\n height: 100%;\n}\n\n@media (max-width:600px){\n .stream-selector-head{\n padding-top: 11px !important;\n padding-left: 8px !important;\n margin-bottom: 17px !important;\n }\n .stream-selector-cross-icon>svg{\n height: 12px;\n }\n .stream-selector-title{\n font-size: 14px;\n }\n .stream-selector-content{\n height: 52%;\n }\n .stream-container{\n width: 200px !important;\n }\n .stream{\n height: 89px !important;\n width: 167px !important;\n }\n .info {\n font-size: 9px !important;\n }\n .selected-stream{\n height: 18px;\n width: 20px;\n }\n .stream-selector-title{\n margin-left: 13px;\n }\n}";export{n as default};
1
+ var n=".stream-selection {\n display: flex;\n align-items: center;\n justify-content: center;\n}\n\n.stream-selector-icon {\n cursor: pointer;\n}\n\n.stream-container {\n position: absolute;\n width: 350px;\n right: -350px;\n bottom: 0px;\n\n background: #00000080 !important;\n z-index: -1;\n transition: right 300ms ease-out;\n}\n\n.stream-container.hidden {\n visibility: hidden;\n}\n\n.stream-selection.open {\n background: rgba(255, 255, 255, 0.20) !important;\n}\n\n.stream-tray {\n display: flex;\n justify-content: center;\n flex-direction: column;\n align-items: center;\n}\n\n.stream-selector-head {\n display: flex;\n align-items: center;\n padding-top: 18px;\n padding-left: 20px;\n margin-bottom: 20px;\n}\n\n.stream-selector-title {\n font-size: 18px;\n font-weight: 600;\n margin-left: 25px;\n user-select: none;\n}\n\n.stream-selector-cross-icon {\n cursor: pointer;\n}\n\n.stream-selector-content {\n height: 74%;\n overflow: scroll;\n /* background: yellowgreen; */\n}\n\n.stream-selector-content::-webkit-scrollbar {\n display: none;\n}\n\n/* Hide scrollbar for IE, Edge and Firefox */\n.stream-selector-content {\n -ms-overflow-style: none;\n /* IE and Edge */\n scrollbar-width: none;\n /* Firefox */\n}\n\n.stream-selector-content-video {\n height: 300px;\n margin-bottom: 30px;\n /* background: red; */\n}\n\n.stream {\n position: relative;\n height: 175px;\n width: 303px;\n background-repeat: no-repeat;\n background-size: contain;\n margin-bottom: 10px;\n}\n\n.stream>svg {\n display: none;\n}\n\n\n.stream.selected>svg {\n display: block;\n position: absolute;\n right: 0;\n}\n\n.parent {\n margin: 21px 52px 23px 34px;\n}\n\n.stream:hover {\n cursor: pointer;\n}\n\n.info {\n font-size: 15px;\n padding: 7px;\n}\n.stream-thumbnail-image{\n width: 100%;\n height: 100%;\n}\n\n@media (max-width:600px){\n .stream-selector-head{\n padding-top: 11px !important;\n padding-left: 8px !important;\n margin-bottom: 17px !important;\n }\n .stream-selector-cross-icon>svg{\n height: 12px;\n }\n .stream-selector-title{\n font-size: 14px;\n }\n .stream-selector-content{\n height: 52%;\n }\n .stream-container{\n width: 200px !important;\n }\n .stream{\n height: 89px !important;\n width: 167px !important;\n }\n .info {\n font-size: 9px !important;\n }\n .selected-stream{\n height: 18px;\n width: 20px;\n }\n .stream-selector-title{\n margin-left: 13px;\n }\n}";export{n as default};
@@ -0,0 +1 @@
1
+ var n=".video-js .mweb-potrait-parent.dvr {\n font-size: 10px;\n right: 1rem;\n top: 2.9rem;\n border-radius: 4px;\n display: flex;\n align-items: center;\n height: 22px;\n width: 4rem;\n justify-content: center;\n background: gray;\n position: absolute;\n}\n\n.video-js .mweb-potrait-parent.nondvr {\nfont-size: 10px;\nright: 3.2rem;\ntop: 0.6rem;\nborder-radius: 4px;\ndisplay: flex;\nalign-items: center;\nheight: 22px;\nwidth: 4rem;\njustify-content: center;\nbackground: gray;\nposition: absolute;\n}\n\n\n.video-js .potraittray.nondvr {\n z-index: 1;\n bottom: 2.4rem;\n position: absolute;\n height: 100px;\n left: -240px;\n background: transparent;\n display: flex;\n align-items: center;\n flex: 1 1;\n overflow: auto;\n}\n\n.video-js .potraittray.dvr {\n z-index: 1;\n bottom: 2.4rem;\n position: absolute;\n height: 100px;\n left: -270px;\n background: transparent;\n display: flex;\n align-items: center;\n flex: 1 1;\n overflow: auto;\n}\n\n \n\n\n\n/* Hide scrollbar for Chrome, Safari and Opera */\n.video-js .tray::-webkit-scrollbar {\n display: none;\n}\n\n/* Hide scrollbar for IE, Edge and Firefox */\n.video-js .tray {\n -ms-overflow-style: none;\n /* IE and Edge */\n scrollbar-width: none;\n /* Firefox */\n}\n\n.video-js .tilecontainer-potrait {\n display: flex;\n}\n\n.video-js .tile-potrait-mweb {\n height: 66px;\n width: 115px;\n margin-bottom: 1rem;\n background-size: contain !important;\n border-radius: 5px;\n margin: 0 13px;\n}\n\n.video-js .hideMWebTray {\n visibility: hidden;\n}\n\n.video-js .hide-controls {\n visibility: hidden;\n}\n\n\n\n@media (min-width:600px) {\n .video-js .mweb-potrait-parent {\n visibility: hidden !important;\n }\n}\n";export{n as default};
@@ -0,0 +1 @@
1
+ import e from"@babel/runtime/helpers/classCallCheck";import t from"@babel/runtime/helpers/createClass";import l from"@babel/runtime/helpers/inherits";import o from"@babel/runtime/helpers/possibleConstructorReturn";import r from"@babel/runtime/helpers/getPrototypeOf";import n from"video.js";import{s}from"./loader-580278fe.js";import{q as i,p as a}from"./generic-3a4a5eee.js";import"@babel/runtime/helpers/defineProperty";import"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/regenerator";import"axios";import"js-cookie";import"ua-parser-js";import"@babel/runtime/helpers/toConsumableArray";function c(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(c=function(){return!!e})()}var d=n.getComponent("Component"),u=function(){l(p,d);var u,m,v=(u=p,m=c(),function(){var e,t=r(u);if(m){var l=r(this).constructor;e=Reflect.construct(t,arguments,l)}else e=t.apply(this,arguments);return o(this,e)});function p(t){var l,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e(this,p),(l=v.call(this,t,o)).playerId=o.playerId,l.config=o.config,l.createUI(null==o?void 0:o.config.streams),l}return t(p,[{key:"createEl",value:function(){return n.dom.createEl("div",{className:"mweb-potrait-parent"})}},{key:"createUI",value:function(e){var t,l,o,r,s,i,a,c,d=this.el(),u=1==(null==this||null===(t=this.config)||void 0===t?void 0:t.liveui)&&1==(null==this||null===(l=this.config)||void 0===l?void 0:l.liveVideo)||!(null!=this&&null!==(o=this.config)&&void 0!==o&&o.liveui)&&!(null!=this&&null!==(r=this.config)&&void 0!==r&&r.liveVideo)||!1;u?null==d||null===(s=d.classList)||void 0===s||s.add("dvr"):null==d||null===(i=d.classList)||void 0===i||i.add("nondvr");var m=n.dom.createEl("div",{className:"broadcast"});m.innerHTML="Broadcasts";var v=n.dom.createEl("div",{className:"potraittray hideMWebTray"});u?null==v||null===(a=v.classList)||void 0===a||a.add("dvr"):null==v||null===(c=v.classList)||void 0===c||c.add("nondvr"),v.style.width="".concat(window.innerWidth-50,"px");var p=n.dom.createEl("div",{className:"tilecontainer-potrait"});n.dom.appendContent(d,m),n.dom.appendContent(d,v),n.dom.appendContent(v,p),m.addEventListener("click",(function(){null!=v&&v.classList.contains("hideMWebTray")?(v.classList.remove("hideMWebTray"),d.style.background="darkgray"):(null==v||v.classList.add("hideMWebTray"),d.style.background="gray")})),this.loadCSS();for(var h=0;h<e.length;h++)this.createTile(e[h],h)}},{key:"createTile",value:function(e,t){var l=this,o=this.el(),r=n.dom.createEl("div",{className:"tile-potrait-mweb ".concat(t)});0==t&&(r.style.border="2px solid red"),r.style.backgroundImage="url(".concat(e.img,")");var c=n.dom.$(".tilecontainer-potrait",this.contentEl());return n.dom.appendContent(c,r),r.addEventListener("click",(function(t){s(l.playerId),l.removeSelectedTile();var o=document.getElementsByClassName("".concat(t.srcElement.className))[0];o&&(o.style.border="2px solid red"),i(l.playerId,e.id).then((function(e){a(l.playerId)}))})),o}},{key:"removeSelectedTile",value:function(){for(var e=document.getElementsByClassName("tile-potrait-mweb"),t=0;t<e.length;t++)e[t].style.border=0}},{key:"loadCSS",value:function(){import("./mwebPotrait-3c1805d8.js").then((function(e){var t=document.createElement("style");t.className="mweb",t.append("".concat(e.default)),document.head.appendChild(t)}))}},{key:"toggleProgressControls",value:function(e){var t=document.querySelector(".vjs-progress-control.vjs-control"),l=document.querySelector(".vjs-play-control.vjs-control.vjs-button"),o=document.querySelector(".vjs-remaining-time.vjs-time-control.vjs-control"),r=document.querySelector(".vjs-seek-to-live-control.vjs-control");e?(null==t||t.classList.add("hide-controls"),null==l||l.classList.add("hide-controls"),null==o||o.classList.add("hide-controls"),null==r||r.classList.add("hide-controls")):(null!=t&&t.classList.contains("hide-controls")&&(null==t||t.classList.remove("hide-controls")),null!=l&&l.classList.contains("hide-controls")&&(null==l||l.classList.remove("hide-controls")),null!=o&&o.classList.contains("hide-controls")&&(null==o||o.classList.remove("hide-controls")),null!=r&&r.classList.contains("hide-controls")&&(null==r||r.classList.remove("hide-controls")))}}]),p}();export{u as default};
@@ -0,0 +1 @@
1
+ import e from"@babel/runtime/helpers/classCallCheck";import t from"@babel/runtime/helpers/createClass";import n from"@babel/runtime/helpers/inherits";import o from"@babel/runtime/helpers/possibleConstructorReturn";import i from"@babel/runtime/helpers/getPrototypeOf";import r from"video.js";import{P as l}from"./icons-3e9a1686.js";import{q as a,c as s,Z as d}from"./generic-3a4a5eee.js";import"@babel/runtime/helpers/defineProperty";import"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/regenerator";import"axios";import"js-cookie";import"ua-parser-js";import"@babel/runtime/helpers/toConsumableArray";function p(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(p=function(){return!!e})()}var u=r.getComponent("Component"),c=function(){n(c,u);var a,s,d=(a=c,s=p(),function(){var e,t=i(a);if(s){var n=i(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return o(this,e)});function c(t){var n,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e(this,c),(n=d.call(this,t,o)).playerId=o.playerId,n.seriesData=o.sres,n.currentVideoData=o.res,n.initialiseStructure(),n.loadCSS(),n}return t(c,[{key:"createEl",value:function(){var e=r.dom.createEl("div",{className:"play-next"}),t=r.dom.createEl("div",{className:"play-next-icon",innerHTML:"".concat(l(window.controlsColor?window.controlsColor:"white"))});return r.dom.appendContent(e,t),e}},{key:"loadCSS",value:function(){import("./nextEpisodeButton-a1556cdf.js").then((function(e){var t=document.createElement("style");t.id="multicam",t.append("".concat(e.default)),document.head.appendChild(t)}))}},{key:"initialiseStructure",value:function(){var e=this.el(),t=r.dom.createEl("div",{className:"next-eps nextepisode-hidden"}),n=r.dom.createEl("div",{className:"next",innerHTML:"Next Episode"}),o=r.dom.createEl("div",{className:"nextep-meta-details next-margin"}),i=r.dom.createEl("div",{className:"next-eps-image"}),l=r.dom.createEl("div",{className:"next-eps-description"});r.dom.appendContent(o,i),r.dom.appendContent(o,l),r.dom.appendContent(t,n),r.dom.appendContent(t,o),this.toggleContentOnHover(e,t),r.dom.appendContent(e,t)}},{key:"toggleContentOnHover",value:function(e,t){e.addEventListener("mouseover",(function(){r.dom.removeClass(t,"nextepisode-hidden")})),t.addEventListener("mouseover",(function(){r.dom.removeClass(t,"nextepisode-hidden")})),e.addEventListener("mouseout",(function(){r.dom.addClass(t,"nextepisode-hidden")})),t.addEventListener("mouseout",(function(){r.dom.addClass(t,"nextepisode-hidden")}))}}]),c}(),m=function(e,t){var n=v(e,t.video.gist.id),o=h(e[n],t.video.gist.id),i=f(e[n],o);x(i.nextEp)},v=function(e,t){for(var n=-1,o=0;o<e.length;o++)for(var i=0;i<e[o].episodes.length;i++)if(e[o].episodes[i].id===t){n=o;break}return n},f=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1?arguments[1]:void 0;if(!(e&&t>=0))return{prevEp:null,nextEp:null};var n=e.episodes.length,o=t-1>=0?t-1:n-1,i=(t+1)%n,r=n>1?e.episodes[o]:null,l=n>1?e.episodes[i]:null;return o===i&&(0===o?l=null:r=null),{prevEp:r,nextEp:l,prevEpIdx:o,nextEpIdx:i}},h=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1?arguments[1]:void 0,n=null;return e?(e.episodes.forEach((function(e,o){e.gist.id===t&&(n=o)})),n):null},x=function(e){var t,n;r.dom.$(".next-eps"),r.dom.$(".play-next").onclick=function(){var t;a("my-player",null==e||null===(t=e.gist)||void 0===t?void 0:t.id).then((function(e){s(e.response)}))};var o=r.dom.$(".next-eps-image"),i=d("<img src=".concat(null==e||null===(t=e.gist)||void 0===t?void 0:t.videoImageUrl," />")),l=null==i?void 0:i.firstChild;null==o||o.append(l);for(var p=r.dom.$(".next-eps-description"),u=d("<div class='next-eps-title'>".concat(null==e?void 0:e.title,"</div>\n <div class='next-eps-description-details'>").concat(null==e||null===(n=e.gist)||void 0===n?void 0:n.description,"</div>"));null!=u&&u.firstChild;)null==p||p.appendChild(u.firstChild)};export{c as default,m as initaliseFunctionality};
@@ -0,0 +1 @@
1
+ var n=".video-js button.vjs-fullscreen-control.vjs-control.vjs-button {\n position: absolute;\n right: 1rem;\n top: 0.6rem;\n width: 1.8rem;\n height: 1.8rem;\n}\n\n.video-js button.vjs-chromecast-button.vjs-control.vjs-button {\n position: absolute;\n top: 0.9rem;\n width: auto;\n right: 4rem;\n height: auto;\n}\n\n.hideoutsidecontrols{\n visibility: hidden !important; \n opacity: 0 !important;\n transition: visibility 1s, opacity 1s !important;\n }\n\n\n.vjs-fullscreen-control .vjs-icon-placeholder:before,\n.vjs-icon-fullscreen-enter:before {\n content: '' !important;\n}\n\n.vjs-fullscreen .icon-maximize,\n.icon-minimize {\n display: none;\n}\n\n.vjs-fullscreen .icon-minimize,\n.icon-maximize {\n display: block;\n}\n\n.videojs .vjs-load-progress {\n /* color: red; */\n background: red;\n}\n\n.video-js .vjs-play-progress:before {\n font-size: 1.2em;\n position: absolute;\n right: -0.5em;\n top: -0.34em;\n z-index: 1;\n display: none;\n}\n\n.video-js .setting-icon {\n display: flex;\n align-items: center;\n font-size: 14px;\n}\n\n.video-js .vjs-progress-control.vjs-control {\n height: 2rem;\n left: -1.3rem;\n top: 0.45rem;\n}\n\n.video-js .vjs-play-control {\n cursor: pointer;\n height: 2.5rem;\n font-size: 14px;\n top: 3px;\n}\n\n.video-js .container {\n display: flex !important;\n justify-content: center !important;\n align-items: center !important;\n width: max-content !important;\n position: absolute !important;\n z-index: 1;\n top: 2.6rem !important;\n padding: 6px !important;\n left: 14.6rem !important;\n cursor: pointer;\n}\n\n.video-js .content {\n bottom: 2.4rem !important;\n right: -4rem !important;\n border-radius: 5px;\n}\n\n.video-js .vjs-control-bar {\n height: 5rem !important;\n}\n\n\n.video-js .vjs-seek-to-live-control.vjs-control .vjs-icon-placeholder {\n display: none;\n}\n\n\n\n\n\n.video-js .vjs-play-progress.vjs-slider-bar {\n background: red;\n}\n\n\n.video-js button.vjs-control.vjs-button.vjs-slowmo-button {\n cursor: pointer;\n top: 2.8rem;\n left: 1.5rem;\n position: absolute;\n height: min-content;\n width: 6rem !important;\n border: 1px solid transparent;\n font-size: 13px;\n border-radius: 6px;\n padding: 4px;\n width: max-content;\n}\n\n.video-js .vjs-subs-caps-button.vjs-menu-button.vjs-menu-button-popup.vjs-control.vjs-button {\n position: absolute;\n top: 2.5rem;\n left: 16.5rem;\n height: 2rem;\n\n}\n\n.video-js .vjs-subs-caps-button.vjs-menu-button.vjs-menu-button-popup.vjs-control.vjs-button {\n display: flex;\n width: max-content;\n align-items: center;\n}\n\n.video-js div.vjs-volume-panel.vjs-control.vjs-volume-panel-vertical {\n cursor: pointer;\n height: 2.5rem;\n font-size: 12px;\n top: 1px;\n left: -1px\n}\n\n.video-js button.vjs-subs-caps-button.vjs-menu-button.vjs-menu-button-popup.vjs-button {\n width: 2rem;\n height: 2rem;\n margin-top: 0.2rem;\n}\n\n.video-js button.vjs-fullscreen-control.vjs-control.vjs-button {\n transform: rotate(90deg);\n}\n\n\n.video-js button.vjs-subs-caps-button .vjs-icon-placeholder:before {\n content: none !important;\n}\n\n.video-js .vjs-subs-caps-button.vjs-menu-button.vjs-menu-button-popup.vjs-control.vjs-button {\n font-size: 11px;\n width: 5rem;\n}\n\n.video-js .fs14 {\n font-size: 14px;\n}\n\n.video-js .vjs-subs-caps-button .vjs-menu {\n display: none;\n position: absolute;\n bottom: 0;\n width: 10em;\n left: -1em;\n height: 0;\n margin-bottom: 1.5em;\n border-top-color: rgba(43, 51, 63, .7);\n}\n\n.video-js .renditions {\n font-size: 12px !important;\n}\n\n\n.video-js .icon.icon-captions {\n width: 24px;\n top: 8px;\n}\n\n\n.video-js .video-js:lang(en) .vjs-subs-caps-button .vjs-icon-placeholder:before {\n content: \"\" !important;\n height: 17px;\n position: absolute;\n top: 5px;\n left: 7px;\n}\n\n.video-js .vjs-live-control.vjs-control {\n position: absolute;\n right: 1.6rem;\n height: 1.5rem;\n width: 5rem;\n display: flex;\n justify-content: flex-start;\n top: 0.6rem;\n\n}\n\n.video-js .vjs-live-display {\n border-radius: 7px;\n}\n\n.video-js .vjs-remaining-time.vjs-time-control.vjs-control {\n /* height: 2.5rem;\n left: -1rem;\n top: 0.45rem;\n font-size: 10px; */\n display: none !important;\n}\n\n.video-js ul.vjs-menu-content {\n border-radius: 6px;\n width: 7rem;\n padding: 5px 8px;\n border: 1px solid transparent;\n}\n\n.video-js button.vjs-airplay-button.vjs-control.vjs-button {\n position: absolute;\n top: 0.5rem;\n height: 2rem;\n right: 3.5rem;\n}\n\n\n.video-js button.vjs-control.vjs-button.vjs-slowmo-button {\n cursor: pointer;\n top: 0.5rem;\n left: 3.5rem;\n left: 7rem;\n position: absolute;\n height: -moz-min-content;\n height: min-content;\n width: 6rem !important;\n border: 1px solid transparent;\n font-size: 13px;\n border-radius: 4px;\n padding: 4px;\n width: -moz-max-content;\n width: max-content;\n}\n\n.video-js .container {\n display: flex !important;\n justify-content: center !important;\n align-items: center !important;\n width: -moz-max-content !important;\n width: max-content !important;\n position: absolute !important;\n z-index: 1;\n top: 0.37rem !important;\n padding: 6px !important;\n left: 14.6rem !important;\n cursor: pointer;\n}\n\n.video-js .vjs-subs-caps-button.vjs-menu-button.vjs-menu-button-popup.vjs-control.vjs-button {\n position: absolute;\n top: 0.3rem;\n height: 2rem;\n left: 21.5rem;\n}\n\n.video-js .vjs-control-bar {\n height: 2.5rem !important;\n}\n.video-js button.vjs-subs-caps-button.vjs-menu-button.vjs-menu-button-popup.vjs-button{\n outline: none;\n}\n.video-js .vjs-live .vjs-progress-control{\n display: none !important;\n}\n\n.video-js .vjs-live-display {\n background-color: red !important;\n padding: 0 5px !important;\n height: 20px !important;\n top: 1px !important;\n right: -1rem !important;\n width: 4rem !important;\n position: relative !important;\n display: flex;\n justify-content: center;\n align-items: center;\n border-radius: 4px;\n}\n\n\n/* .vjs-live-control.vjs-control{\n display: noe;\n} */\n\n.video-js .vjs-play-control {\n cursor: pointer;\n height: auto;\n font-size: 13px;\n top: 0px;\n}\n\n\n\n@media (max-width:600px) {\n\n .vjs-live-control.vjs-control{\n right: 0.2rem;\n width: min-content;\n margin-left: 0;\n }\n .video-js button.vjs-control.vjs-button.vjs-slowmo-button {\n display: none;\n height: 1.5rem;\n cursor: pointer;\n font-size: 0px;\n top: 0.5rem;\n left: 6.5rem;\n position: absolute;\n height: -moz-min-content;\n height: 22px;\n width: 4rem !important;\n border: 1px solid transparent;\n background: gray;\n font-size: 9px;\n border-radius: 4px;\n padding: 4px;\n width: -moz-max-content;\n width: max-content;\n }\n\n .video-js .container {\n display: none !important;\n }\n\n\n .video-js .vjs-subs-caps-button.vjs-menu-button.vjs-menu-button-popup.vjs-control.vjs-button {\n font-size: 10px;\n width: 5rem;\n position: absolute;\n top: 0.2rem;\n left: 6.5rem !important;\n height: 2rem;\n }\n\n .video-js .setting-icon {\n display: flex;\n align-items: center;\n font-size: 11px;\n }\n .video-js .fs14 {\n display: none;\n font-size: 12px;\n }\n .video-js .vjs-live-display {\n background-color: red;\n padding: 0 5px !important;\n height: 20px !important;\n top: 1px !important;\n right: -2rem !important;\n width: 2rem !important;\n left: 0;\n position: relative !important;\n }\n .video-js .vjs-progress-control.vjs-control {\n left: -0.3rem !important;\n }\n .video-js .vjs-live-control.vjs-control{\n right: 0.6rem;\n width: min-content;\n }\n}\n";export{n as default};
@@ -0,0 +1 @@
1
+ import e from"@babel/runtime/helpers/toConsumableArray";import t from"@babel/runtime/helpers/classCallCheck";import n from"@babel/runtime/helpers/createClass";import l from"@babel/runtime/helpers/inherits";import o from"@babel/runtime/helpers/possibleConstructorReturn";import a from"@babel/runtime/helpers/getPrototypeOf";import i from"video.js";import{E as s,e as r}from"./icons-3e9a1686.js";import{_ as c,g as d,q as p,X as m}from"./generic-3a4a5eee.js";import{a as u}from"./autoNextVideo-ae83ac79.js";import"@babel/runtime/helpers/defineProperty";import"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/regenerator";import"axios";import"js-cookie";import"ua-parser-js";import"./util-89ccc154.js";function v(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(v=function(){return!!e})()}var y=i.getComponent("Component"),h=function(){l(b,y);var h,f,g=(h=b,f=v(),function(){var e,t=a(h);if(f){var n=a(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return o(this,e)});function b(e){var n,l,o,a,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return t(this,b),(a=g.call(this,e,i)).playerId=i.playerId,a.seriesData=i.sres,a.videos=null==i||null===(n=i.playlist)||void 0===n?void 0:n.content,a.cb=(null==i||null===(l=i.playlist)||void 0===l?void 0:l.cb)||null,a.autoNext=(null==i||null===(o=i.playlist)||void 0===o?void 0:o.autoNext)||!1,a.currentVideoData=i.res,a.initialiseStructure(),a.loadCSS(),a.autoNext&&u({playerId:a.playerId,content:a.videos,cb:a.cb}),a}return n(b,[{key:"createEl",value:function(){var e=i.dom.createEl("div",{className:"playlist-selection vjs-control vjs-button"});e.style.position="unset";var t=i.dom.createEl("div",{className:"playlist-selector-icon",innerHTML:"".concat(s())});return i.dom.appendContent(e,t),e}},{key:"loadCSS",value:function(){import("./playlist-7ecf432a.js").then((function(e){var t=document.createElement("style");t.id="playlist-selection",t.append("".concat(e.default)),document.head.appendChild(t)}))}},{key:"initialiseStructure",value:function(){var e=this.el(),t=i.dom.createEl("div",{className:"selection-container hidden"});i.dom.$(".playlist-selector-icon",this.el()).onclick=function(){var n;null!==(n=t.classList)&&void 0!==n&&n.contains("hidden")?(c(),t.classList.remove("hidden"),e.classList.add("open"),t.style.right="0px"):(t.classList.add("hidden"),e.classList.remove("open"),t.style.right="-350px")};var n=document.getElementById(this.playerId);if(n){var l=window.getComputedStyle(n,null).getPropertyValue("height").slice(0,-2);t.style.height="".concat(l,"px"),i.dom.appendContent(e,t),n.style.overflow="hidden",this.addFunctionality(t)}}},{key:"addFunctionality",value:function(t){var n=this,l=this.el(),o=i.dom.createEl("div",{className:"playlist-selector-head"}),a=i.dom.createEl("div",{className:"playlist-selector-cross-icon",innerHTML:"".concat(r())});a.onclick=function(){t.classList.add("hidden"),l.classList.remove("open"),t.style.right="-350px"};for(var s=i.dom.createEl("div",{className:"playlist-selector-title",innerHTML:"Playlist"}),c=i.dom.createEl("div",{className:"playlist-selector-content"}),u=function(t){var l,o,a=i.dom.createEl("div",{className:"playlist-container"}),s=i.dom.createEl("div",{className:"playlist-section",index:t}),r=i.dom.createEl("div",{className:"playlist-title",innerHTML:"".concat((null===(l=n.videos[t])||void 0===l?void 0:l.title)||"")}),d=i.dom.createEl("div",{className:"playlist-progress-bar",innerHTML:"<div style='width:".concat(n.videos[t].watchedPercentage,"%' class='playlist-progress-bar-value'></div>")});i.dom.appendContent(s,r),i.dom.appendContent(s,d),i.dom.appendContent(a,s),i.dom.appendContent(c,a);var u=i.dom.createEl("div",{className:"playlist-section-expanded hidden"}),v=i.dom.createEl("div",{className:"playlist-description",innerHTML:"".concat((null===(o=n.videos[t])||void 0===o?void 0:o.description)||"")}),y=i.dom.createEl("div",{className:"playlist-image"});y.style.backgroundImage="url(".concat(n.videos[t].img,")"),i.dom.appendContent(u,y),i.dom.appendContent(u,v),i.dom.appendContent(a,u),i.dom.appendContent(c,a),u.onclick=function(e){e.stopPropagation(),m(t+1),p(n.playerId,n.videos[t].id).then((function(e){null!=n&&n.cb&&n.cb(e)})).catch((function(e){null!=n&&n.cb&&n.cb(e)}))},s.onclick=function(t){var n,l,o,i=document.getElementsByClassName("playlist-selector-content")[0].childNodes,s=(i=e(i))[t.target.index].getElementsByClassName("playlist-section-expanded")[0];null!=s&&null!==(n=s.classList)&&void 0!==n&&n.contains("hidden")?(a.style.backgroundColor="#0000007d",null==s||null===(l=s.classList)||void 0===l||l.remove("hidden")):(null==s||null===(o=s.classList)||void 0===o||o.add("hidden"),a.style.backgroundColor="unset")}},v=0;v<this.videos.length;v++)u(v);i.dom.appendContent(o,a),i.dom.appendContent(o,s),i.dom.appendContent(t,o),i.dom.appendContent(t,c),d(this.playerId).on("fullscreenchange",(function(){var e=document.getElementById(n.playerId);if(e){var l=window.getComputedStyle(e,null).getPropertyValue("height").slice(0,-2);t.style.height="".concat(l,"px")}}))}}]),b}();export{h as default};
@@ -0,0 +1 @@
1
+ import{g as l}from"./generic-3a4a5eee.js";var i=function(i){var n,o=l(i),t=[];if((null==o||null===(n=o.tech_)||void 0===n?void 0:n.vhs)||!1){var e,d,v=null==o||null===(e=o.tech_)||void 0===e||null===(d=e.vhs)||void 0===d?void 0:d.representations();(null==v?void 0:v.length)>0&&(t=null==v?void 0:v.sort((function(l,i){return(null==l?void 0:l.height)==(null==i?void 0:i.height)?(null==i?void 0:i.bandwidth)-(null==l?void 0:l.bandwidth):(null==i?void 0:i.height)-(null==l?void 0:l.height)})))}else{var u,h,r=null==o||null===(u=o.dash)||void 0===u||null===(h=u.mediaPlayer)||void 0===h?void 0:h.getBitrateInfoListFor("video");(null==r?void 0:r.length)>0&&(t=null==r?void 0:r.sort((function(l,i){return i.height-l.height})))}return t};export{i as g};
@@ -0,0 +1 @@
1
+ import e from"@babel/runtime/helpers/toConsumableArray";import t from"@babel/runtime/helpers/classCallCheck";import n from"@babel/runtime/helpers/createClass";import i from"@babel/runtime/helpers/assertThisInitialized";import o from"@babel/runtime/helpers/inherits";import a from"@babel/runtime/helpers/possibleConstructorReturn";import d from"@babel/runtime/helpers/getPrototypeOf";import l from"@babel/runtime/helpers/defineProperty";import r from"video.js";import{g as s,Q as c,d as u}from"./generic-3a4a5eee.js";import"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/regenerator";import"axios";import"js-cookie";import"ua-parser-js";function h(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(h=function(){return!!e})()}var m=r.getComponent("Component"),p=function(){o(f,m);var s,p,g=(s=f,p=h(),function(){var e,t=d(s);if(p){var n=d(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return a(this,e)});function f(n){var o,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return t(this,f),o=g.call(this,n,a),l(i(o),"masterRenditions",[]),l(i(o),"addCustomFont",(function(e){var t=r.dom.createEl("div",{className:"font hideCustomFonts"}),n=r.dom.createEl("p",{className:"customFontHeading",innerHTML:"Font Size"});r.dom.appendContent(t,n);var i=r.dom.createEl("div",{className:"font-options"});i.style.fontSize="12px",o.fontSizeOptions.map((function(e,t){var n=r.dom.createEl("div",{className:"options",innerHTML:'<div class="radio-item" >\n <input class=opt'.concat(t,' type="radio" id=').concat(e,' name="item" />\n <label class="radio-btn-lable" for=').concat(e,">").concat(e,"pt</label>\n </div>")});n.addEventListener("click",(function(e){var t=e.target.id;o.changeFontSize(t)})),r.dom.appendContent(i,n)})),r.dom.appendContent(t,i),r.dom.appendContent(e,t)})),l(i(o),"resetRenditions",(function(){e(document.getElementsByClassName("rendition")).map((function(e){r.dom.removeClass(e,"selected")}))})),o.playerId=null==a?void 0:a.playerId,o.skin=null==a?void 0:a.skin,o.icon=null==a?void 0:a.icon,o.masterRenditions=[],o.fontSizeOptions=[10,12,14],o.createRenditions(a.renditions),window.height=null,o}return n(f,[{key:"toggleContentOnHover",value:function(e,t){var n=r.dom.$(".setting-icon",e);n.addEventListener("mouseover",(function(){r.dom.removeClass(t,"hidden")})),t.addEventListener("mouseover",(function(){r.dom.removeClass(t,"hidden")})),n.addEventListener("mouseout",(function(){r.dom.addClass(t,"hidden")})),t.addEventListener("mouseout",(function(){r.dom.addClass(t,"hidden")}))}},{key:"changeFontSize",value:function(e){var t=r.dom.$(".renditions",this.contentEl()),n=r.dom.$(".font-options",this.contentEl());t.style.fontSize="".concat(e,"px"),n.style.fontSize="".concat(e,"px")}},{key:"createRenditions",value:function(e){var t=this,n=this.el(),i=r.dom.$(".setting-icon",this.el()),o=c(this.icon);if(i.append(o),"live"===this.skin){var a=document.createTextNode(" Settings");i.appendChild(a)}var d=r.dom.createEl("div",{className:"content hidden"}),l=r.dom.createEl("div",{innerHTML:"Quality",className:"title"}),s=r.dom.createEl("div",{className:"resolution"});r.dom.appendContent(s,l),this.toggleContentOnHover(n,d);var h=r.dom.createEl("div",{className:"renditions"});this.player_.tech_.vhs?(e.map((function(e,n){var i,o,a=r.dom.createEl("div",{className:"relative"}),d=(((null==e||null===(i=e.playlist)||void 0===i?void 0:i.attributes["AVERAGE-BANDWIDTH"])||(null==e||null===(o=e.playlist)||void 0===o?void 0:o.attributes.BANDWIDTH))/1048576).toFixed(1),l="".concat(e.height,"p ").concat(e.height>719&&e.height<1081?"<span>HD</span>":e.height>1081&&e.height<1500?"<span>2K (HD)</span>":e.height>1501?"<span>4K (HD)</span>":"");l="".concat(e.height,"p @ ").concat(d,"mbps ").concat(e.height>719&&e.height<1081?"<span>HD</span>":e.height>1081&&e.height<1500?"<span>2K (HD)</span>":e.height>1501?"<span>4K (HD)</span>":"");var s=r.dom.createEl("p",{innerHTML:l,className:"rendition",res:e.height,bandwidth:e.bandwidth});r.dom.appendContent(a,s),r.dom.appendContent(h,a),s.addEventListener("click",(function(e){window.height===e.target.res&&e.target.bandwidth==window.bandwidth||(t.resetRenditions(),window.height=e.target.res,window.bandwidth=parseInt(e.target.bandwidth),window.selectedVideo=e.target.video,v(t.playerId,e.target),r.dom.addClass(s,"selected"))}))})),this.addAutoRendition("nondrm",h),"Safari"!=u()&&this.addDynamicSwitchIfAuto()):(e.map((function(e,n){var i=r.dom.createEl("div",{className:"relative"}),o=(e.bitrate/1e6).toFixed(1),a="".concat(e.height,"p ").concat(e.height>719&&e.height<1081?"<span>HD</span>":e.height>1081&&e.height<1500?"<span>2K (HD)</span>":e.height>1501?"<span>4K (HD)</span>":"");window.enableResolutionsBitrate&&(a="".concat(e.height,"p @ ").concat(o,"mbps ").concat(e.height>719&&e.height<1081?"<span>HD</span>":e.height>1081&&e.height<1500?"<span>2K (HD)</span>":e.height>1501?"<span>4K (HD)</span>":""));var d=r.dom.createEl("p",{innerHTML:a,className:"rendition",res:e.height,qualityIndex:e.qualityIndex});r.dom.appendContent(i,d),r.dom.appendContent(h,i),d.addEventListener("click",(function(e){window.height===e.target.res&&e.target.bandwidth==window.bandwidth||(t.resetRenditions(),window.height=e.target.res,window.selectedVideo=e.target.video,window.qualityIndex=e.target.qualityIndex,v(t.playerId,e.target),r.dom.addClass(d,"selected"))}))})),this.addAutoRendition("drm",h)),r.dom.appendContent(s,h),r.dom.appendContent(d,s),r.dom.appendContent(n,d)}},{key:"addDynamicSwitchIfAuto",value:function(){for(var e,t=this.player_.textTracks(),n=0;n<t.length;n++)"segment-metadata"===t[n].label&&(e=t[n]);var i=null;e&&e.on("cuechange",(function(){var t,n,o=e.activeCues[0];if(console.log((null==o||null===(t=o.value)||void 0===t||null===(n=t.resolution)||void 0===n?void 0:n.height)+"p"),o&&document.querySelector(".auto.selected")){var a,d,l,r,s,c,u,h;if(null!=o&&null!==(a=o.value)&&void 0!==a&&null!==(d=a.resolution)&&void 0!==d&&d.height&&i!==(null==o||null===(l=o.value)||void 0===l||null===(r=l.resolution)||void 0===r?void 0:r.height))document.querySelector(".auto.selected").textContent="Auto ".concat(null==o||null===(u=o.value)||void 0===u||null===(h=u.resolution)||void 0===h?void 0:h.height,"p");i=null==o||null===(s=o.value)||void 0===s||null===(c=s.resolution)||void 0===c?void 0:c.height}}))}},{key:"createEl",value:function(){var e=r.dom.createEl("div",{className:"container"}),t=r.dom.createEl("div",{className:"setting-icon"});return r.dom.appendContent(e,t),e}},{key:"addAutoRendition",value:function(e,t){var n=this;if("nondrm"==e){var i,o,a,d,l=null===(i=this.player_)||void 0===i||null===(o=i.tech_)||void 0===o?void 0:o.vhs.selectPlaylist().attributes.RESOLUTION.height,s=null===(a=this.player_)||void 0===a||null===(d=a.tech_)||void 0===d?void 0:d.vhs.selectPlaylist().attributes.BANDWIDTH,c=r.dom.createEl("div",{className:"relative"}),u=r.dom.createEl("p",{innerHTML:"Auto ".concat(l,"p"),className:"rendition auto selected",bandwidth:s,res:l});u.addEventListener("click",(function(e){window.height!==e.target.res&&(n.resetRenditions(),r.dom.addClass(u,"selected"),window.height=e.target.res,window.bandwidth=parseInt(e.target.bandwidth),window.selectedVideo=e.target.video,v(n.playerId,null,!0))})),r.dom.appendContent(c,u),r.dom.appendContent(t,c)}else{var h=r.dom.createEl("div",{className:"relative"}),m=r.dom.createEl("p",{innerHTML:"Auto",className:"rendition selected",qualityIndex:"auto"});m.addEventListener("click",(function(e){n.resetRenditions(),r.dom.addClass(m,"selected"),window.qualityIndex=e.target.qualityIndex,window.selectedVideo=e.target.video,v(n.playerId,null,!0)})),r.dom.appendContent(h,m),r.dom.appendContent(t,h)}}}]),f}(),v=function(e,t,n){var i,o=s(e),a=null==t?void 0:t.bandwidth;if((null==o||null===(i=o.tech_)||void 0===i?void 0:i.vhs)||!1){o.tech_.vhs.representations().forEach((function(e){n||e.bandwidth===a?e.enabled(!0):e.enabled(!1)})),o.handleTechPlaying_();var d=o.currentTime();o.currentTime(0),setTimeout((function(){o.currentTime(d)}),100);var l=r.dom.$(".content");l&&r.dom.addClass(l,"hidden")}else{var c=null==t?void 0:t.qualityIndex;if(n){var u,h;null==o||null===(u=o.dash)||void 0===u||null===(h=u.mediaPlayer)||void 0===h||h.resetSettings()}else{var m,p,v,g;null==o||null===(m=o.dash)||void 0===m||null===(p=m.mediaPlayer)||void 0===p||p.updateSettings({streaming:{abr:{autoSwitchBitrate:!1}}}),null==o||null===(v=o.dash)||void 0===v||null===(g=v.mediaPlayer)||void 0===g||g.setQualityFor("video",c,!0);var f=o.currentTime();o.currentTime(0),setTimeout((function(){o.currentTime(f)}),100);var w=r.dom.$(".content");w&&r.dom.addClass(w,"hidden")}}};export{p as default,v as playSelectedResolution};
@@ -0,0 +1 @@
1
+ import e from"@babel/runtime/helpers/asyncToGenerator";import i from"@babel/runtime/helpers/classCallCheck";import t from"@babel/runtime/helpers/createClass";import n from"@babel/runtime/helpers/assertThisInitialized";import s from"@babel/runtime/helpers/inherits";import r from"@babel/runtime/helpers/possibleConstructorReturn";import a from"@babel/runtime/helpers/getPrototypeOf";import o from"@babel/runtime/helpers/defineProperty";import l from"@babel/runtime/regenerator";import c from"video.js";import{Z as d,i as p,n as u,q as v,c as m,p as f}from"./generic-3a4a5eee.js";import{s as h}from"./loader-580278fe.js";import{E as g}from"./icons-3e9a1686.js";import"axios";import"js-cookie";import"ua-parser-js";import"@babel/runtime/helpers/toConsumableArray";function b(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(b=function(){return!!e})()}var y,C=c.getComponent("Component"),w=function(){s(d,C);var e,l,c=(e=d,l=b(),function(){var i,t=a(e);if(l){var n=a(this).constructor;i=Reflect.construct(t,arguments,n)}else i=t.apply(this,arguments);return r(this,i)});function d(e){var t,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return i(this,d),t=c.call(this,e,s),o(n(t),"seriesData",[]),t.seriesData=s.seriesData,y=s.playerId,E(t.el(),t.seriesData),t.loadCSS(),t}return t(d,[{key:"createEl",value:function(){var e=document.createElement("div");return e.classList.add("vjs-season-list"),e}},{key:"loadCSS",value:function(){import("./series-041152aa.js").then((function(e){var i=document.createElement("style");i.id="series",i.append("".concat(e.default)),document.head.appendChild(i)}))}}]),d}();function L(){return(L=e(l.mark((function e(i,t,n,s){return l.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:u(y),h(y),v(y,t).then((function(e){m(e.response),f(y)}));case 3:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function k(e,i,t,n){var s=document.getElementById("season-list"),r=document.getElementById("episode-list"),a=document.getElementById("episode-container");e.id;for(var o=e.episodes.map((function(e,i){return'\n <div id="episode-wrapper" class="episode-wrapper">\n <div class="episode-title" id="episode-title">\n <div class="details-wrapper">\n <div id="title-wrapper" class="title-wrapper">'.concat(i+1," ").concat(e.title,' </div>\n <div class="progress-bar-div">\n <div id="progress-div" class="progress-div"></div>\n </div>\n </div>\n <div class="meta-details">\n <div class="episode-image lazy" style="width:124px; height: 70px;">\n <img src=').concat(e.gist.videoImageUrl,' alt="').concat(e.title,'\'s cover"></img>\n </div>\n <div class="description-wrapper">').concat(e.gist.description,"</div>\n </div>\n </div>\n </div>")})).join("");null!=a&&a.firstChild;)a.removeChild(a.firstChild);for(var l=d(o);null!=l&&l.firstChild;)a.appendChild(l.firstChild);!function(e){p(e).then((function(e){var i=e.data,t=document.querySelectorAll("#progress-div");t&&i.map((function(e,i){e&&e.watchedPercentage&&t[i]&&(t[i].style.width=e.watchedPercentage+"px")}))})).catch((function(e){}))}(n),s.classList.toggle("hide-container"),r.classList.toggle("hide-container");var c=document.querySelectorAll(".details-wrapper"),u=document.querySelectorAll("#episode-title"),v=document.querySelectorAll(".meta-details"),m=document.querySelector("#episodes-back-btn"),f=e.id,h=e.episodes;m.addEventListener("click",(function(){return function(e,i){e.classList.remove("hide-container"),i.classList.add("hide-container")}(s,r)}));for(var g=function(i){c[i].addEventListener("click",(function(){return function(e,i,t){var n=i.querySelector(".meta-details");i.classList.toggle("episode-active"),n.classList.toggle("metadetails-active"),t.forEach((function(i,n){n!==e&&(t[n].classList.remove("episode-active"),t[n].querySelector(".meta-details").classList.remove("metadetails-active"))}))}(i,u[i],u)})),v[i].addEventListener("click",(function(){return function(e,i,t,n){return L.apply(this,arguments)}(i,h[i].id,t,u)})),e.episodes[i].id==f&&u[i].classList.add("highlight-active-eps")},b=0;b<c.length;b++)g(b)}function E(e,i){for(var t='<div class="hover-div"></div>\n '.concat(g(),'\n <div class="player-season-list-container on-click-toggle">\n <div id="season-list" class="season-list">\n <div class="season-list-head">seasons</div>\n <div class="season-name-container">\n ').concat(function(e){return e.map((function(e,i){return'<div\n class="season-title-sdk"\n key='.concat("title-".concat(e.title),'\n > <div class="season-container">\n ',e.title,"\n </div>\n </div>\n ")})).join("")}(i),'\n </div>\n </div>\n <div id="episode-list" class="episode-list hide-container"><div id="episodes-back-btn" class="episodes-back-btn" >\n <svg class=\'icon icon-backward\' height="22px" width="22px" viewBox="0 0 18 18" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path fill-rule="evenodd" clip-rule="evenodd" d="M0.383092 19.5818C-0.0882695 19.0669 -0.124672 18.2566 0.273985 17.6961L0.382714 17.5615L7.30134 9.99714L0.383092 2.43893C-0.0882694 1.92406 -0.124672 1.11374 0.273985 0.553232L0.382714 0.418625C0.853882 -0.0964584 1.59542 -0.136236 2.10835 0.299398L2.23153 0.418213L11 9.99608L2.23191 19.5814C1.72148 20.1394 0.893733 20.1396 0.383092 19.5818Z" fill="white"/>\n </svg>\n <span>Episodes<span></div> <div id="episode-container" class="episode-container"> </div></div>\n </div>');null!=e&&e.firstChild;)e.removeChild(e.firstChild);for(var n=d(t);null!=n&&n.firstChild;)e.appendChild(n.firstChild)}export{E as customSeasonList,k as handleSeasonChange,w as seriesModule};
@@ -0,0 +1 @@
1
+ import e from"@babel/runtime/helpers/toConsumableArray";import t from"@babel/runtime/helpers/classCallCheck";import s from"@babel/runtime/helpers/createClass";import n from"@babel/runtime/helpers/assertThisInitialized";import o from"@babel/runtime/helpers/inherits";import i from"@babel/runtime/helpers/possibleConstructorReturn";import l from"@babel/runtime/helpers/getPrototypeOf";import a from"video.js";import{E as r,e as d,B as c}from"./icons-3e9a1686.js";import{f as u,a2 as m,a3 as p,_ as v,Q as h,g as f,T as C,O as g,q as y}from"./generic-3a4a5eee.js";import{a as b}from"./autoNextVideo-ae83ac79.js";import"@babel/runtime/helpers/defineProperty";import"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/regenerator";import"axios";import"js-cookie";import"ua-parser-js";import"./util-89ccc154.js";function N(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(N=function(){return!!e})()}var E=a.getComponent("Component"),k=function(){o(L,E);var k,S,x=(k=L,S=N(),function(){var e,t=l(k);if(S){var s=l(this).constructor;e=Reflect.construct(t,arguments,s)}else e=t.apply(this,arguments);return i(this,e)});function L(s){var o,i,l,a,r,d,c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(t(this,L),(d=x.call(this,s,c)).playerId=c.playerId,d.seriesData=c.sres,d.videos=null==c||null===(o=c.sres)||void 0===o?void 0:o.seasons,d.currentVideoData=c.res,d.initialiseStructure(),d.loadCSS(),d.selectedSeason=0,d.cb=null==c||null===(i=c.series)||void 0===i?void 0:i.cb,d.autoPlayNext=(null==c||null===(l=c.series)||void 0===l?void 0:l.autoPlayNext)||!1,sessionStorage.getItem("token"),d.watchMap=u(),null!==(a=n(d))&&void 0!==a&&a.autoPlayNext&&null!=c&&null!==(r=c.series)&&void 0!==r&&r.enable){var v,h,f,C,g=null==c||null===(v=c.sres)||void 0===v?void 0:v.seasons,y=[];g.map((function(t){y.push.apply(y,e(t.episodes))})),m(y),p(null===(h=d.options_)||void 0===h||null===(f=h.res)||void 0===f||null===(C=f.video)||void 0===C?void 0:C.id),b({playerId:d.playerId,content:y,cb:d.cb,series:null==c?void 0:c.sres})}return d}return s(L,[{key:"createEl",value:function(){var e=a.dom.createEl("div",{className:"series-selection vjs-control vjs-button"});e.style.position="unset";var t=a.dom.createEl("div",{className:"series-selector-icon",innerHTML:"".concat(r())});return a.dom.appendContent(e,t),e}},{key:"loadCSS",value:function(){import("./series-v2-4cdbf9b1.js").then((function(e){var t=document.createElement("style");t.id="series-v2",t.append("".concat(e.default)),document.head.appendChild(t)}))}},{key:"toggleOpenClose",value:function(e){var t,s=this.el();null!=e&&null!==(t=e.classList)&&void 0!==t&&t.contains("hidden")?(v(),e.classList.remove("hidden"),s.classList.add("open"),e.style.right="0px"):(e.classList.add("hidden"),s.classList.remove("open"),e.style.right="-350px")}},{key:"initialiseStructure",value:function(){var e=this,t=this.el(),s=a.dom.createEl("div",{className:"series-selection-container hidden"});a.dom.$(".series-selector-icon",this.el()).onclick=function(){return e.toggleOpenClose(s)};var n=document.getElementById(this.playerId);if(n){var o=window.getComputedStyle(n,null).getPropertyValue("height").slice(0,-2);s.style.height="".concat(o,"px"),a.dom.appendContent(t,s),n.style.overflow="hidden",this.addFunctionality(s)}}},{key:"addFunctionality",value:function(e){var t=this,s=this.el(),n=a.dom.createEl("div",{className:"series-selector-head"}),o=a.dom.createEl("div",{className:"series-selector-cross-icon",innerHTML:"".concat(d())});o.onclick=function(){if("series-selector-cross-icon"===o.className)e.classList.add("hidden"),s.classList.remove("open"),e.style.right="-350px";else if("series-selector-back-icon"===o.className){var n=a.dom.$(".series-selector-content",t.el());for(a.dom.$(".series-selector-cross-icon",t.el()),o.className="series-selector-cross-icon";null!=n&&n.firstChild;)n.removeChild(n.firstChild);var i=t.createSeasonLister();for(a.dom.appendContent(n,i),a.dom.$(".series-selector-title",t.el()).textContent="Seasons";null!=o&&o.firstChild;)o.removeChild(o.firstChild);var l=h(d());o.appendChild(l)}};var i=a.dom.createEl("div",{className:"series-selector-title",innerHTML:"Seasons"}),l=a.dom.createEl("div",{className:"series-selector-content"}),r=this.createSeasonLister();a.dom.appendContent(l,r),a.dom.appendContent(n,o),a.dom.appendContent(n,i),a.dom.appendContent(e,n),a.dom.appendContent(e,l),f(this.playerId).on("fullscreenchange",(function(){var s=document.getElementById(t.playerId);if(s){var n=window.getComputedStyle(s,null).getPropertyValue("height").slice(0,-2);e.style.height="".concat(n,"px")}}))}},{key:"createSeasonLister",value:function(){var e=this;f(this.playerId);for(var t=C(),s=a.dom.createEl("div",{className:"season-container"}),n=function(n){var o,i=document.createElement("label");i.className="season-holder",i.setAttribute("for","season-".concat(n));var l=document.createElement("div");l.className="season - ".concat(n),l.textContent=null===(o=t[n])||void 0===o?void 0:o.title;var r=a.dom.createEl("input",{className:"radio - ".concat(n),id:"season-".concat(n),name:"season-radio"});r.setAttribute("type","radio"),e.selectedSeason==n&&(r.checked=!0),r.onclick=function(t){g.set(n),e.showSeasonDetails(n)},a.dom.appendContent(i,r),a.dom.appendContent(i,l),a.dom.appendContent(s,i)},o=0;o<t.length;o++)n(o);return s}},{key:"getSeasonDetailsContainer",value:function(t,s){var n=this;t=t.map((function(e){var t,s,o,i,l;return{id:null==e?void 0:e.id,title:null==e?void 0:e.title,description:null==e||null===(t=e.gist)||void 0===t?void 0:t.description,img:null==e||null===(s=e.gist)||void 0===s||null===(o=s.imageGist)||void 0===o?void 0:o.r16x9,watchedPercentage:(null==n||null===(i=n.watchMap)||void 0===i||null===(l=i.get(null==e?void 0:e.id))||void 0===l?void 0:l.p)||0}}));for(var o=function(o){var i,l,r,d,c,u,m,v=a.dom.createEl("div",{className:"series-container"}),h=a.dom.createEl("div",{className:"series-section",index:o}),f=a.dom.createEl("div",{className:"series-title",innerHTML:"".concat((null===(i=t[o])||void 0===i?void 0:i.title)||"")}),C=a.dom.createEl("div",{className:"series-progress-bar",innerHTML:"<div style='width:".concat(t[o].watchedPercentage,"%' class='series-progress-bar-value'></div>")});a.dom.appendContent(h,f),a.dom.appendContent(h,C),a.dom.appendContent(v,h),a.dom.appendContent(s,v);var g=a.dom.createEl("div",{className:"series-section-expanded hidden"}),b=(null===(l=t[o])||void 0===l?void 0:l.description)||"";(null===(r=b)||void 0===r?void 0:r.length)>170&&(b=b.substr(0,170)+"...");var N=a.dom.createEl("div",{className:"series-description",innerHTML:"".concat(b||"")}),E=a.dom.createEl("img",{className:"series-image"});E.src="".concat((null===(d=t[o])||void 0===d?void 0:d.img)||(null===(c=window)||void 0===c||null===(u=c.customData)||void 0===u?void 0:u.fallbackImage)),E.alt="".concat(null===(m=t[o])||void 0===m?void 0:m.title),a.dom.appendContent(g,E),a.dom.appendContent(g,N),a.dom.appendContent(v,g),a.dom.appendContent(s,v),g.onclick=function(e){var s;e.stopPropagation(),p(null===(s=t[o])||void 0===s?void 0:s.id),y(n.playerId,t[o].id).then((function(e){null!=n&&n.cb&&n.cb(e)})).catch((function(e){null!=n&&n.cb&&n.cb(e)}))},h.onclick=function(t){var s,n,o,i=document.getElementsByClassName("series-selector-content")[0].childNodes,l=(i=e(i))[t.target.index].getElementsByClassName("series-section-expanded")[0];null!=l&&null!==(s=l.classList)&&void 0!==s&&s.contains("hidden")?(v.style.backgroundColor="#0000007d",null==l||null===(n=l.classList)||void 0===n||n.remove("hidden")):(null==l||null===(o=l.classList)||void 0===o||o.add("hidden"),v.style.backgroundColor="unset")}},i=0;i<t.length;i++)o(i);return parent}},{key:"showSeasonDetails",value:function(e){this.selectedSeason=e;for(var t=a.dom.$(".series-selector-content",this.el());null!=t&&t.firstChild;)t.removeChild(t.firstChild);var s=C()[e].episodes;this.getSeasonDetailsContainer(s,t);var n=a.dom.$(".series-selector-cross-icon",this.el());for(n.className="series-selector-back-icon";null!=n&&n.firstChild;)n.removeChild(n.firstChild);var o=h(c());n.appendChild(o),a.dom.$(".series-selector-title",this.el()).textContent="Season ".concat(e+1)}}]),L}();export{k as default};
@@ -0,0 +1 @@
1
+ var n=".series-selection {\n display: flex;\n align-items: center;\n justify-content: center;\n}\n\n.series-selector-icon {\n cursor: pointer;\n}\n\n.series-selection-container {\n position: absolute;\n width: 350px;\n bottom: 0px;\n right: -350px;\n background: #00000080 !important;\n z-index: -1;\n transition: right 200ms ease-out;\n}\n\n.series-container {\n display: flex;\n justify-content: center;\n align-items: center;\n flex-direction: column;\n margin-bottom:4px;\n padding: 8px 12px;\n}\n\n.series-selection.open {\n background: rgba(255, 255, 255, 0.20) !important;\n}\n\n.series-selector-head {\n display: flex;\n align-items: center;\n padding-top: 18px;\n padding-left: 20px;\n margin-bottom: 20px;\n}\n\n.series-selector-title {\n font-size: 18px;\n font-weight: 600;\n margin-left: 25px;\n user-select: none;\n}\n\n.series-selector-cross-icon {\n cursor: pointer;\n}\n\n.series-selector-back-icon {\n cursor: pointer;\n}\n\n.series-selector-content {\n height: 74%;\n overflow: scroll;\n}\n\n.series-selector-content::-webkit-scrollbar {\n display: none;\n}\n\n/* Hide scrollbar for IE, Edge and Firefox */\n.series-selector-content {\n -ms-overflow-style: none;\n /* IE and Edge */\n scrollbar-width: none;\n /* Firefox */\n}\n\n.series-selector-content-video {\n height: 300px;\n margin-bottom: 30px;\n}\n\n.recommended {\n height: 175px;\n width: 309px;\n background-repeat: no-repeat;\n background-size: contain;\n}\n\n.video {\n margin-bottom: 12px;\n}\n\n.parent {\n margin: 21px 52px 23px 34px;\n\n}\n\n.recommended:hover {\n cursor: pointer;\n}\n\n.info {\n font-size: 15px;\n padding: 7px;\n}\n\n\n.series-selector-content{\n padding: 0 18px;\n}\n\n.series-section{\n height: 3rem;\n display: flex;\n justify-content: space-between;\n align-items: center;\n margin-bottom: 6px;\n width: 100%;\n}\n\n.series-section-expanded{\n width: 100%;\n display: flex;\n transition: 300ms ease-in;\n}\n.series-section-expanded.hidden{\n visibility: hidden ;\n max-height: 0;\n}\n\n.series-title{\n font-size: 12px;\n font-weight: 800;\n text-align: start;\n pointer-events: none;\n width: 50%;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\n.series-title:hover{\n cursor: pointer;\n}\n.series-description{\n pointer-events: none;\n width: 50%;\n padding-left: 10px;\n text-align: start;\n max-height: 90px;\n overflow: hidden;\n}\n.series-image{\n width: 160px;\n height: 90px;\n background-repeat: no-repeat;\n background-size: contain;\n}\n\n\n.video-js .series-progress-bar {\n max-width: 100px;\n height: 3px;\n background-color: #7777777e;\n display: flex;\n width: 100%;\n}\n.video-js .series-progress-bar-value {\n background-color: white;\n height: 2px;\n margin: 0;\n}\n\n.series-section-expanded:hover{\n cursor: pointer;\n}\n\n\n.season-container-title {\n margin-left: 10px;\n font-size: 16px;\n text-align: left;\n font-weight: 600;\n margin-bottom: 10px;\n}\n\n.season-container {\n width: 100%;\n margin-bottom: 30px;\n}\n\n.season-holder {\n display: flex;\n width: 90%;\n height: 2.5rem;\n padding: 10px 10px;\n margin-bottom: 10px;\n margin-left: 6px;\n}\n\n.season-holder>input {\n margin: 1px 4px;\n visibility: hidden;\n}\n\n.season-holder>input[type='radio']:checked {\n background: black;\n}\n\n.season-selected {\n background: rgba(255, 255, 255, 0.2);\n}\n\n.season-holder:hover {\n cursor: pointer;\n}\n.season {\n display: flex;\n align-items: center;\n font-size: 14px;\n margin-left: 4px;\n}\n\n@media (max-width:600px){\n .series-selection{\n display: none;\n }\n}\n";export{n as default};
@@ -0,0 +1 @@
1
+ import e from"@babel/runtime/helpers/toConsumableArray";import t from"@babel/runtime/helpers/classCallCheck";import a from"@babel/runtime/helpers/createClass";import n from"@babel/runtime/helpers/inherits";import i from"@babel/runtime/helpers/possibleConstructorReturn";import o from"@babel/runtime/helpers/getPrototypeOf";import r from"video.js";import{f as l,e as d,T as s}from"./icons-3e9a1686.js";import{_ as c,$ as u,a0 as p,a1 as m,g as h,Z as v,Q as f}from"./generic-3a4a5eee.js";import{g}from"./renditions-e6a8fbb9.js";import{playSelectedResolution as y}from"./resolution-5444c761.js";import{g as b}from"./localisation-0bf399a1.js";import"@babel/runtime/helpers/defineProperty";import"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/regenerator";import"axios";import"js-cookie";import"ua-parser-js";import"@babel/runtime/helpers/assertThisInitialized";function C(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(C=function(){return!!e})()}var E=r.getComponent("Component"),N=function(){n(L,E);var N,k,I=(N=L,k=C(),function(){var e,t=o(N);if(k){var a=o(this).constructor;e=Reflect.construct(t,arguments,a)}else e=t.apply(this,arguments);return i(this,e)});function L(e){var a,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return t(this,L),(a=I.call(this,e,n)).playerId=n.playerId,a.seriesData=n.sres,a.currentVideoData=n.res,a.initialiseStructure(),a.loadCSS(),a.resolutionBitrateMap,a}return a(L,[{key:"fillResolutionBitrateMap",value:function(e){var t=this;this.resolutionBitrateMap=new Map,e.forEach((function(e){var a=(null==e?void 0:e.bandwidth)||(null==e?void 0:e.bitrate);if(a){var n=null==t?void 0:t.resolutionBitrateMap.get(null==e?void 0:e.height);t.resolutionBitrateMap.set(null==e?void 0:e.height,Math.min(a,n||1/0))}}))}},{key:"isEnhancedBitrate",value:function(e){var t,a=(null==e?void 0:e.bandwidth)||(null==e?void 0:e.bitrate),n=null==this||null===(t=this.resolutionBitrateMap)||void 0===t?void 0:t.get(null==e?void 0:e.height);return!(!a||!n)&&a>n}},{key:"createEl",value:function(){var e=r.dom.createEl("div",{className:"settings-selection vjs-control vjs-button"});e.style.position="unset";var t=r.dom.createEl("div",{className:"settings-selector-icon",innerHTML:"".concat(l())});return r.dom.appendContent(e,t),e}},{key:"loadCSS",value:function(){import("./settings-icon-1fbc99bc.js").then((function(e){var t=document.createElement("style");t.id="video-captions",t.append("".concat(e.default)),document.head.appendChild(t)}))}},{key:"initialiseStructure",value:function(){var e=this,t=this.el(),a=r.dom.createEl("div",{className:"selection-container hidden"});r.dom.$(".settings-selector-icon",this.el()).onclick=function(){var n;null!==(n=a.classList)&&void 0!==n&&n.contains("hidden")?(c(),a.classList.remove("hidden"),t.classList.add("open"),a.style.right="0px",u(e.playerId,a)):(a.classList.add("hidden"),t.classList.remove("open"),a.style.right="-350px")};var n=document.getElementById(this.playerId);if(n){var i=window.getComputedStyle(n,null).getPropertyValue("height");a.style.height="".concat(i),r.dom.appendContent(t,a),n.style.overflow="hidden",this.addFunctionality(a),p(this.playerId,a)}}},{key:"addFunctionality",value:function(e){var t=this.el(),a=r.dom.createEl("div",{className:"settings-selector-head"}),n=r.dom.createEl("div",{className:"settings-selector-cross-icon",innerHTML:"".concat(d())});n.onclick=function(){e.classList.add("hidden"),t.classList.remove("open"),e.style.right="-350px"};var i=r.dom.createEl("div",{className:"settings-selector-title",innerHTML:b("settingsTitle")||"Settings"}),o=r.dom.createEl("div",{className:"settings-selector-content"}),l=r.dom.createEl("div",{className:"settings-container"}),s=this.createVideoQualityContainer();r.dom.appendContent(l,s);var c=this.createAudioQualityContainer();r.dom.appendContent(l,c),r.dom.appendContent(a,n),r.dom.appendContent(a,i),r.dom.appendContent(e,a),r.dom.appendContent(e,o),r.dom.appendContent(o,l),m(this.playerId,e)}},{key:"createAudioQualityContainer",value:function(){var e=h(this.playerId),t=null==e?void 0:e.audioTracks().tracks_;if(!((null==t?void 0:t.length)<=1)){var a=r.dom.createEl("div",{className:"audio-language-container"}),n=r.dom.createEl("div",{className:"audio-language-container-title",innerHTML:b("audioLanguageText")||"Audio Language"});r.dom.appendContent(a,n);for(var i=function(e){var n,i=document.createElement("label");i.className="audio-language-holder",i.setAttribute("for","language-radio-".concat(e));var o=document.createElement("div");o.className="audio - ".concat(e),o.textContent=null==t||null===(n=t[e])||void 0===n?void 0:n.label;var l=r.dom.createEl("input",{className:"radio - ".concat(e),id:"language-radio-".concat(e),name:"audio-language-radio"});l.setAttribute("type","radio"),1==t[e].enabled&&(l.checked=!0),l.onchange=function(a){t.map((function(e){e.enabled=!1})),t[e].enabled=!0},r.dom.appendContent(i,l),r.dom.appendContent(i,o),r.dom.appendContent(a,i)},o=0;o<t.length;o++)i(o);return a}}},{key:"createVideoQualityContainer",value:function(){var t=this,a=r.dom.createEl("div",{className:"video-quality-container"}),n=r.dom.createEl("div",{className:"video-quality-container-title",innerHTML:b("videoQualityText")||"Video Quality"});r.dom.appendContent(a,n);var i=[].concat(e(g(this.playerId)),[{height:"Auto"}]).sort((function(e,t){return(null==t?void 0:t.qualityIndex)-(null==e?void 0:e.qualityIndex)}));this.fillResolutionBitrateMap(i),y(this.playerId,"raw",!0);for(var o=function(e){var n,o,l,d=document.createElement("label"),c=document.createElement("div"),u=document.createElement("div");u.className="video-quality-bitrate-label",c.className="video-quality-holder",d.className="video-quality-label-container",d.setAttribute("for","quality".concat(e));var p=document.createElement("div");p.className="video-quality - ".concat(e);var m=(null==i||null===(n=i[e])||void 0===n?void 0:n.height)+"".concat("Auto"==(null==i||null===(o=i[e])||void 0===o?void 0:o.height)?"":"p"),h=document.createTextNode(m),g="".concat(t.isEnhancedBitrate(i[e])?b("enhancedBitrateLabel")||"Enhanced Bitrate":""),C=document.createTextNode(g);if(u.appendChild(C),p.appendChild(h),(null==i||null===(l=i[e])||void 0===l?void 0:l.height)>=720)for(var E=v("<span class='hd-rendition'> HD </span>");null!=E&&E.firstChild;)p.appendChild(E.firstChild);var N=r.dom.createEl("input",{className:"radio - ".concat(e," radio-btn"),id:"quality".concat(e),name:"quality-radio",rendata:"".concat(i[e]),checked:"".concat(e==i.length-1)});N.setAttribute("type","radio"),N.onchange=function(a){var n=i[e];"true"=="".concat("Auto"==i[e].height)?y(t.playerId,n,!0):y(t.playerId,n)};var k=document.createElement("span");k.className=g?"check-mark center":"check-mark";var I=f(s());k.appendChild(I),c.appendChild(N),c.appendChild(k),c.appendChild(p),r.dom.appendContent(d,c),d.appendChild(u),r.dom.appendContent(a,d)},l=0;l<i.length;l++)o(l);return a}}]),L}();export{N as default};
@@ -0,0 +1 @@
1
+ import{i as e,j as t,k as n,g as l,h as i,d as r,l as o,m as a,n as u,o as s}from"./features-27b875c1.js";import{M as c,a as d,c as v,d as p}from"./icons-3e9a1686.js";import{g as m,S as f,T as h,a as g,x as y,U as b,R as x,d as w}from"./generic-3a4a5eee.js";import{g as E}from"./renditions-e6a8fbb9.js";import C from"@babel/runtime/helpers/toConsumableArray";import{s as N}from"./autoNextVideo-ae83ac79.js";import k from"@babel/runtime/helpers/typeof";import j from"video.js";import T from"@babel/runtime/helpers/asyncToGenerator";import B from"@babel/runtime/regenerator";import M from"@babel/runtime/helpers/slicedToArray";import"@babel/runtime/helpers/defineProperty";import"@babel/runtime/helpers/classCallCheck";import"@babel/runtime/helpers/createClass";import"@babel/runtime/helpers/inherits";import"@babel/runtime/helpers/possibleConstructorReturn";import"@babel/runtime/helpers/getPrototypeOf";import"./localisation-0bf399a1.js";import"axios";import"js-cookie";import"ua-parser-js";import"./util-89ccc154.js";var A,I,L,O,V=[],P=function(e,t){var n=m(e),l=Math.floor(n.currentTime());if(Math.floor(n.duration())!=l){n.pause(e);var i=f();N(i,e,V)}};function R(e){var t=e.split("\n"),n=[];return t.forEach((function(e){if((e=e.trim()).startsWith("#EXT-X-IMAGE-STREAM-INF")){var t=e.split(","),l={resolution:null,uri:null};t.forEach((function(e){e.includes("RESOLUTION")&&(l.resolution=e.split("=")[1]),e.includes("URI")&&(l.uri=e.split("=")[1].replace(/"/g,""))})),n.push(l)}})),n}function S(e){return X.apply(this,arguments)}function X(){return(X=T(B.mark((function e(t){return B.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise((function(e){var n=new Image;n.src=t.uri,n.crossOrigin="Anonymous";var l=[],i=t.layout.split("x"),r=M(i,2),o=r[0],a=r[1];n.onload=function(){var i=document.createElement("canvas");i.width=n.width,i.height=n.height,i.getContext("2d").drawImage(n,0,0,i.width,i.height);for(var r=i.width/a,u=i.height/o,s=0;s<o;s++)for(var c=0;c<a;c++){var d=document.createElement("canvas");d.width=r,d.height=u,d.getContext("2d").drawImage(i,c*r,s*u,r,u,0,0,r,u);var v=d.toDataURL("image/png");l.push({uri:v,duration:t.duration})}e(l)}})));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function F(e){return U.apply(this,arguments)}function U(){return(U=T(B.mark((function e(t){var n,l;return B.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,fetch(t);case 3:return n=e.sent,e.next=6,n.text();case 6:return l=e.sent,e.abrupt("return",R(l));case 10:e.prev=10,e.t0=e.catch(0),console.error("Error fetching the M3U8 manifest:",e.t0);case 13:case"end":return e.stop()}}),e,null,[[0,10]])})))).apply(this,arguments)}function D(e){return G.apply(this,arguments)}function G(){return(G=T(B.mark((function e(t){var n,l;return B.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Promise.all(t.map((function(e){return S(e)})));case 2:return n=e.sent.flat(),l={},n.map((function(e,t){var n=e.duration;l[n*t]={src:e.uri,style:{left:"-60px",height:"85px",width:"130px"}}})),e.abrupt("return",l);case 6:case"end":return e.stop()}}),e)})))).apply(this,arguments)}A={0:{src:"example-thumbnail.png"}},I=function e(){var t,n,l,i,r;for(l in n=(t=Array.prototype.slice.call(arguments)).shift()||{},t)for(r in i=t[l])i.hasOwnProperty(r)&&("object"===k(i[r])?n[r]=e(n[r],i[r]):n[r]=i[r]);return n},L=function(e,t){return function(n){return window.getComputedStyle?window.getComputedStyle(e,t)[n]:e.currentStyle[n]}},O=function e(t){return"HTML"!==t.nodeName&&"static"===L(t)("position")?e(t.offsetParent):t},j.registerPlugin("thumbnails",(function(e){var t,n,l,i,r,o,a,u;n=I({},A,e),i=this,function(){var e,t,n;-1!==navigator.userAgent.toLowerCase().indexOf("android")&&(t=function(){e.addClass("fake-active")},n=function(){e.removeClass("fake-active")},(e=i.controlBar.progressControl).on("touchstart",t),e.on("touchend",n),e.on("touchcancel",n))}(),(t=document.createElement("div")).className="vjs-thumbnail-holder",l=document.createElement("img"),t.appendChild(l),l.src=n[0].src,l.className="vjs-thumbnail",I(l.style,n[0].style),l.style.left||l.style.right||(l.onload=function(){l.style.left=-l.naturalWidth/2+"px"}),o=i.duration(),i.on("durationchange",(function(e){o=i.duration()})),i.on("loadedmetadata",(function(e){o=i.duration()})),(r=i.controlBar.progressControl).el().appendChild(t),a=function(e){var i,a,u,s,c,d,v,p,m,f;for(a in u=0,m=(window.pageXOffset?{x:window.pageXOffset,y:window.pageYOffset}:{x:document.documentElement.scrollLeft,y:document.documentElement.scrollTop}).x,v=((f=O(r.el()).getBoundingClientRect()).width||f.right)+m,d=e.pageX,e.changedTouches&&(d=e.changedTouches[0].pageX),s=d||e.clientX+document.body.scrollLeft+document.documentElement.scrollLeft,s-=O(r.el()).getBoundingClientRect().left+m,i=Math.floor((s-r.el().offsetLeft)/r.width()*o),n)i>a&&(u=Math.max(u,a));(c=n[u]).src&&l.src!=c.src&&(l.src=c.src),c.style&&l.style!=c.style&&I(l.style,c.style),s+(p=function(e,t){var n;return t?parseFloat(t):"auto"!==(n=L(e)("clip"))&&"inherit"!==n&&4===(n=n.split(/(?:\(|\))/)[1].split(/(?:,| )/)).length?parseFloat(n[1])-parseFloat(n[3]):0}(l,c.width||n[0].width)/2)>v?s-=s+p-v:s<p&&(s=p),t.style.left=s+"px"},r.on("mousemove",a),r.on("touchmove",a),u=function(e){t.style.left="-1000px"},r.on("mouseout",u),r.on("touchcancel",u),r.on("touchend",u),i.on("userinactive",u)}));var _=function(){var e=T(B.mark((function e(t,n){var l,i,r,o;return B.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,fetch(t+n);case 2:return l=e.sent,e.next=5,l.text();case 5:return i=e.sent,r=i.split("\n"),o=[],r.forEach((function(e,n){e=e.trim();var l={resolution:null,duration:null,uri:null,layout:null};n>0&&r[n-1].includes("#EXT-X-TILES")&&(r[n-1]=r[n-1].split(","),l.uri=t+e,r[n-1].forEach((function(e){(e.includes(":")?e.split(":")[1]:e).split(",").forEach((function(e){var t=e.split("="),n=M(t,2),i=n[0],r=n[1];i=i.toLowerCase(),l[i]=r}))})),o.push(l))})),e.abrupt("return",o);case 10:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}();function W(e){return $.apply(this,arguments)}function $(){return($=T(B.mark((function e(t){var n,l,i,r,o,a,u,s,c,d,v,p,m,f,h,y,b,x,w,E,C,N;return B.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.split("/").slice(0,t.split("/").indexOf("dash")+1).join("/")||t,e.prev=1,e.next=4,fetch(t);case 4:return r=e.sent,e.next=7,r.text();case 7:o=e.sent,a=new DOMParser,u=a.parseFromString(o,"application/xml"),s=null===(l=g())||void 0===l||null===(i=l.video)||void 0===i?void 0:i.runtime,c=u.getElementsByTagName("AdaptationSet"),d=0;case 13:if(!(d<c.length)){e.next=34;break}if("image"!==(v=c[d]).getAttribute("contentType")||"image/png"!==v.getAttribute("mimeType")){e.next=31;break}if(p=v.getElementsByTagName("SegmentTemplate")[0],m=v.getElementsByTagName("Representation")[0],f=m.getElementsByTagName("EssentialProperty")[0],h=f.getAttribute("value"),!p){e.next=31;break}for(p.getAttribute("media"),y=p.getAttribute("duration"),b=p.getAttribute("timescale"),x=y/b,w=Math.round(s/x),E=Math.ceil(w/9),C=p.getAttribute("media"),N=[],d=0;d<E;d++)N.push({duration:x,layout:h,uri:n+"/"+C.replace("$Number$",d)});return e.abrupt("return",N);case 31:d++,e.next=13;break;case 34:return console.log("No trickplay segment found."),e.abrupt("return",null);case 38:e.prev=38,e.t0=e.catch(1),console.error("Error fetching or parsing MPD:",e.t0);case 41:case"end":return e.stop()}}),e,null,[[1,38]])})))).apply(this,arguments)}function z(){return(z=T(B.mark((function e(t){var n,l,i,r,o,a,u,s,c,d,v,p,f,h,g,y,b,x,w,E,C;return B.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=m(t),l=n.currentSource(),null==(i=l.src)||!i.includes("m3u8")){e.next=18;break}return e.next=5,F(i);case 5:if(!((null==(r=e.sent)?void 0:r.length)>0)){e.next=16;break}return g=(null==r?void 0:r[0])||null,y=g.uri,b=(null==n||null===(o=n.tech())||void 0===o||null===(a=o.vhs)||void 0===a||null===(u=a.playlists)||void 0===u||null===(s=u.master)||void 0===s||null===(c=s.uri)||void 0===c?void 0:c.substring(0,null==n||null===(d=n.tech())||void 0===d||null===(v=d.vhs)||void 0===v||null===(p=v.playlists)||void 0===p||null===(f=p.master)||void 0===f||null===(h=f.uri)||void 0===h?void 0:h.lastIndexOf("/")))+"/",e.next=11,_(b,y);case 11:return x=e.sent,e.next=14,D(x);case 14:w=e.sent,n.thumbnails(w);case 16:e.next=27;break;case 18:if(null==i||!i.includes("mpd")){e.next=27;break}return e.next=21,W(i);case 21:if(!((null==(E=e.sent)?void 0:E.length)>0)){e.next=27;break}return e.next=25,D(E);case 25:C=e.sent,n.thumbnails(C);case 27:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function H(l,i){var r=m(l);r&&(r.on("loadeddata",(function(){var n,o,a,u,s,c,d;(null===(n=E(l))||void 0===n?void 0:n.length)>0&&e(l,i),(null===(o=y(l))||void 0===o?void 0:o.length)>0&&t(l,i),!(null!=i&&null!==(a=i.series)&&void 0!==a&&a.enable||null!==(u=window)&&void 0!==u&&null!==(s=u.app_data)&&void 0!==s&&null!==(c=s.appcmsMain)&&void 0!==c&&null!==(d=c.features)&&void 0!==d&&d.auto_play)||null!=i&&i.liveVideo||function(e,t){var n;if(null!=t&&null!==(n=t.series)&&void 0!==n&&n.enable){var l;V=[];var i=h();null==i||i.map((function(e){var t;return(t=V).push.apply(t,C(e.episodes))})),null==t||null===(l=t.series)||void 0===l||l.cb}else{var r,o;V=null==t||null===(r=t.relatedVideos)||void 0===r?void 0:r.content,null==t||null===(o=t.relatedVideos)||void 0===o||o.cb}var a=m(e);a.on("timeupdate",(function(){var e,t,n=Math.floor(a.currentTime()),l=a.duration(),i=null===(e=document.getElementsByClassName("next-ep-preview"))||void 0===e?void 0:e[0];l-n<=10&&f()<=(null===(t=V)||void 0===t?void 0:t.length)-1?i&&(i.style.visibility="visible"):i&&(i.style.visibility="hidden")}));var u,s=V.filter((function(e,t){return t==f()}));if((null==s?void 0:s.length)>0)if(null!==(u=document.getElementsByClassName("next-ep-preview"))&&void 0!==u&&u[0]){var c,d,v,p,g,y,b,x,w,E,N,k;(null===(c=document.getElementsByClassName("next-ep-preview"))||void 0===c?void 0:c[0]).style.visibility="hidden";var j=null===(d=document.getElementsByClassName("next-ep-title"))||void 0===d?void 0:d[0],T=null===(v=document.getElementsByClassName("next-ep-img"))||void 0===v?void 0:v[0],B=null===(p=document.getElementsByClassName("next-ep-content"))||void 0===p?void 0:p[0],M=null===(g=s[0])||void 0===g?void 0:g.title;(null===(y=M)||void 0===y?void 0:y.length)>60&&(M=M.substr(0,60)+"..."),j.textContent="".concat(M),T.src=(null===(b=s[0])||void 0===b||null===(x=b.gist)||void 0===x||null===(w=x.imageGist)||void 0===w?void 0:w.r16x9)||(null==s||null===(E=s[0])||void 0===E?void 0:E.img)||(null===(N=window)||void 0===N||null===(k=N.customData)||void 0===k?void 0:k.fallbackImage),B.onclick=function(){return P(e)}}else{var A,I,L,O,R,S,X,F,U=document.createElement("div");U.className="next-ep-preview",U.style.visibility="hidden",document.getElementById(e).append(U);var D=document.createElement("div");D.className="next-ep-header",D.textContent="Next up";var G=null===(A=s[0])||void 0===A?void 0:A.title,_=document.createElement("img");_.className="next-ep-img",_.src=(null===(I=s[0])||void 0===I||null===(L=I.gist)||void 0===L||null===(O=L.imageGist)||void 0===O?void 0:O.r16x9)||(null==s||null===(R=s[0])||void 0===R?void 0:R.img)||(null===(S=window)||void 0===S||null===(X=S.customData)||void 0===X?void 0:X.fallbackImage);var W=document.createElement("div");W.className="next-ep-title",(null===(F=G)||void 0===F?void 0:F.length)>60&&(G=G.substr(0,60)+"..."),W.textContent="".concat(G);var $=document.createElement("div");$.className="next-ep-content",$.append(_),$.append(W),$.onclick=function(){return P(e)},U.append(D),U.append($)}}(l,i),function(e,t){var n,l=Math.floor(e/60),i=null===(n=document.getElementsByClassName("vjs-progress-holder vjs-slider vjs-slider-horizontal"))||void 0===n?void 0:n[0];i&&(i.style.marginRight=l>60?"56px":"41px");var r=document.getElementsByClassName("vjs-live-control")[0],o=document.getElementsByClassName("vjs-time-control");t&&r.classList.value.includes("vjs-hidden")&&(o[0].style.display="block",i&&(i.style.marginRight="56px"))}(r.duration(),(null==i?void 0:i.liveVideo)||!1),null!=i&&i.liveVideo||b()||function(e){z.apply(this,arguments)}(l)})),r.one("play",(function(){var e,t,i,r;null!==(e=window)&&void 0!==e&&null!==(t=e.customData)&&void 0!==t&&t.iframeOverlayUrl&&n(l,null===(i=window)||void 0===i||null===(r=i.customData)||void 0===r?void 0:r.iframeOverlayUrl)})))}function Y(e,t){!function(){"Chrome"==w()&&import("./chromett-a3cbb2e1.js").then((function(e){var t=document.createElement("style");t.id="chromett",t.append("".concat(e.default)),document.head.appendChild(t)}));import("./skin-fbc45594.js").then((function(e){var t=document.createElement("style");t.id="default_v2",t.append("".concat(e.default)),document.head.appendChild(t)}))}(),H(e,t),function(e,t){var n,l,i,r,o,a,u=m(e);null==u||null===(n=u.controlBar)||void 0===n||null===(l=n.getChild("FullscreenToggle"))||void 0===l||null===(i=l.el())||void 0===i||i.appendChild(x(c(window.controlsColor))),null==u||null===(r=u.controlBar)||void 0===r||null===(o=r.getChild("FullscreenToggle"))||void 0===o||null===(a=o.el())||void 0===a||a.appendChild(x(d(window.controlsColor)));var s=document.getElementsByClassName("vjs-time-control");t.liveVideo&&s[0]&&(s[0].style.display="none")}(e,t),function(e,t){var n,c,d,m,f,h;0==(null==t?void 0:t.liveVideo)&&0==(null==t?void 0:t.liveui)&&l(e,"defaultV2",v());(0==(null==t?void 0:t.liveVideo)&&0==(null==t?void 0:t.liveui)||1==(null==t?void 0:t.liveui))&&i(e,"defaultV2",p());t.liveVideo||r(e);(null==t||null===(n=t.relatedVideos)||void 0===n||null===(c=n.content)||void 0===c?void 0:c.length)>0&&o(e,null==t?void 0:t.relatedVideos);(null==t||null===(d=t.streams)||void 0===d?void 0:d.length)>1&&a(e,null==t?void 0:t.streams);(null==t||null===(m=t.playlist)||void 0===m||null===(f=m.content)||void 0===f?void 0:f.length)>0&&u(e,null==t?void 0:t.playlist);null!=t&&null!==(h=t.series)&&void 0!==h&&h.enable&&s(e,t)}(e,t),function(e,t){var n=m(e),l=null==t?void 0:t.tvProviderLogoUrl;if(!l)return;var i=document.createElement("div");i.className="tvProviderImage";var r=document.createElement("img");r.src="".concat(l),r.alt="Provider Image",i.append(r),n.el().appendChild(i),n.on("useractive",(function(){i.classList.remove("vjs-fade")})),n.on("userinactive",(function(){n.paused()||i.classList.add("vjs-fade")})),n.on("fullscreenchange",(function(){n.isFullscreen_?i.style.top="3.2rem":i.style.top="1rem"}))}(e,t)}export{Y as initialiseSkin};
@@ -0,0 +1 @@
1
+ import{b as e,e as t,f as o,g as s,h as n}from"./features-27b875c1.js";import{i}from"./keyboardShortcuts-48e91712.js";import{S as r,M as l,a,N as d,b as m,R as u}from"./icons-3e9a1686.js";import{g as p,a as c,R as v}from"./generic-3a4a5eee.js";import"@babel/runtime/helpers/defineProperty";import"@babel/runtime/helpers/classCallCheck";import"@babel/runtime/helpers/createClass";import"@babel/runtime/helpers/inherits";import"@babel/runtime/helpers/possibleConstructorReturn";import"@babel/runtime/helpers/getPrototypeOf";import"video.js";import"./renditions-e6a8fbb9.js";import"./localisation-0bf399a1.js";import"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/regenerator";import"axios";import"js-cookie";import"ua-parser-js";import"@babel/runtime/helpers/toConsumableArray";function b(b,h){i(b,h),import("./skin-cd537931.js").then((function(e){var t=document.createElement("style");t.id="def_skin",t.append("".concat(e.default)),document.head.appendChild(t)})),function(e,t){0==t.liveVideo&&0==t.liveui&&s(e,"default",m());(0==t.liveVideo&&0==t.liveui||1==t.liveui)&&n(e,"default",u())}(b,h),function(s,n){var i=p(s),l=(null==n?void 0:n.sres)||null;i.on("loadeddata",(function(){e(s,"default",r()),l&&import("./nextEpisodeButton-4fda97dc.js").then((function(e){e.initaliseFunctionality(n.sres.seasons,c())}))})),i.one("loadedmetadata",(function(){var e;l&&(t(s,null==n||null===(e=n.sres)||void 0===e?void 0:e.seasons,n),o(n.sres,n.res,s))}))}(b,h),function(e,t){var o,s,n,i,r=p(e),m=document.getElementsByClassName("vjs-current-time")[0],u=document.getElementsByClassName("vjs-duration")[0],c=document.getElementsByClassName("vjs-time-divider")[0];t.liveVideo&&(m&&(m.style.display="none"),u&&(u.style.display="none"),c&&(c.style.display="none"));null===(o=r.controlBar.getChild("FullscreenToggle"))||void 0===o||null===(s=o.el())||void 0===s||s.appendChild(v(l(window.controlsColor))),null===(n=r.controlBar.getChild("FullscreenToggle"))||void 0===n||null===(i=n.el())||void 0===i||i.appendChild(v(a(window.controlsColor)));var b=r.controlBar.getChild("SubsCapsButton").el();document.getElementById(e).getElementsByClassName("vjs-subs-caps-button")[1].appendChild(v(d()));var h=document.createElement("div");h.classList.add("caption-header"),b.querySelector(".vjs-menu-content").insertBefore(h,b.querySelector(".vjs-menu-item"))}(b,h)}export{b as initialiseSkin};
@@ -0,0 +1 @@
1
+ import{a as e,b as t,c as n,d as o}from"./features-27b875c1.js";import{M as s,a as r,S as l,N as a}from"./icons-3e9a1686.js";import{g as i,d as c,R as u}from"./generic-3a4a5eee.js";import d from"@babel/runtime/helpers/defineProperty";import{i as m}from"./keyboardShortcuts-48e91712.js";import"@babel/runtime/helpers/classCallCheck";import"@babel/runtime/helpers/createClass";import"@babel/runtime/helpers/inherits";import"@babel/runtime/helpers/possibleConstructorReturn";import"@babel/runtime/helpers/getPrototypeOf";import"video.js";import"./renditions-e6a8fbb9.js";import"./localisation-0bf399a1.js";import"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/regenerator";import"axios";import"js-cookie";import"ua-parser-js";import"@babel/runtime/helpers/toConsumableArray";function p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function v(o,a){var m=i(o);m.one("play",(function(){var t,n,l,i;null!=a&&a.streams&&e(o,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?p(Object(n),!0).forEach((function(t){d(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},a)),null!=a&&a.airplay&&"Safari"==c()&&m.addChild("airPlayButton"),null!=a&&a.chromecastReceiverId&&m.addChild("chromecastButton"),m.addChild("FullscreenToggle"),null===(t=m.getChild("FullscreenToggle"))||void 0===t||null===(n=t.el())||void 0===n||n.appendChild(u(s(window.controlsColor))),null===(l=m.getChild("FullscreenToggle"))||void 0===l||null===(i=l.el())||void 0===i||i.appendChild(u(r(window.controlsColor))),h(o)})),m.on("loadedmetadata",(function(){window.endFirstFrame(m),"Safari"!==c()&&t(o,"live",l())})),m.one("loadedmetadata",(function(){var e;null!=a&&a.streams&&(null==a||null===(e=a.streams)||void 0===e?void 0:e.length)>=2&&n(o,a)}))}function f(e,t){var n;m(e,t),(null==(n=t)||!n.liveui)&&(null==n||!n.liveVideo)||null!=n&&n.liveui&&null!=n&&n.liveVideo?import("./dvr_skin-9cc1b144.js").then((function(e){var t=document.createElement("style");t.id="dvr_skin",t.append("".concat(e.default)),document.head.appendChild(t)})):import("./nondvr_skin-64be70e5.js").then((function(e){var t=document.createElement("style");t.id="nondvr_skin",t.append("".concat(e.default)),document.head.appendChild(t)})),function(e){o(e)}(e),function(e,t){var n=i(e),o=n.controlBar.getChild("SubsCapsButton").el();document.getElementsByClassName("vjs-subs-caps-button")[1].appendChild(u(a()));var s=document.createElement("div");s.classList.add("caption-header"),o.querySelector(".vjs-menu-content").insertBefore(s,o.querySelector(".vjs-menu-item"));var r=document.createElement("div");if(r.innerText="Captions",r.className="fs14",document.getElementsByClassName("vjs-subs-caps-button")[0].appendChild(r),"Safari"==c()){document.getElementsByClassName("vjs-subs-caps-button")[0].style.left="9.5rem"}null!=t&&t.liveui||null==t||!t.liveVideo||(document.getElementsByClassName("vjs-progress-control")[0].style.display="none")}(e,t),v(e,t)}var b;function h(e){var t=i(e);g(),t.on("pause",(function(){clearTimeout(b),y()})),t.on("play",(function(){g()}));var n=document.getElementById("".concat(e));n.addEventListener("mouseenter",(function(){y(),t.paused()||g()})),n.addEventListener("touchstart",(function(){y(),g()})),n.addEventListener("mousemove",(function(){y(),t.paused()||g()}))}function y(){var e=document.getElementsByClassName("vjs-chromecast-button")[0],t=document.getElementsByClassName("vjs-airplay-button")[0],n=document.getElementsByClassName("vjs-fullscreen-control")[0];null!=e&&e.classList.contains("hideoutsidecontrols")&&(null==e||e.classList.remove("hideoutsidecontrols")),n.classList.contains("hideoutsidecontrols")&&n.classList.remove("hideoutsidecontrols"),null!=t&&t.classList.contains("hideoutsidecontrols")&&t.classList.remove("hideoutsidecontrols")}function g(){var e=document.getElementsByClassName("vjs-chromecast-button")[0],t=document.getElementsByClassName("vjs-fullscreen-control")[0],n=document.getElementsByClassName("vjs-airplay-button")[0];clearTimeout(b),b=setTimeout((function(){null==e||e.classList.add("hideoutsidecontrols"),null==t||t.classList.add("hideoutsidecontrols"),null==n||n.classList.add("hideoutsidecontrols")}),2200)}export{h as hideControls,f as initialiseSkin};
@@ -0,0 +1 @@
1
+ import{g as e,Y as r}from"./generic-3a4a5eee.js";import{i as t,p as o}from"./features-27b875c1.js";import{g as i}from"./renditions-e6a8fbb9.js";import"@babel/runtime/helpers/defineProperty";import"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/regenerator";import"video.js";import"axios";import"js-cookie";import"ua-parser-js";import"@babel/runtime/helpers/toConsumableArray";import"@babel/runtime/helpers/classCallCheck";import"@babel/runtime/helpers/createClass";import"@babel/runtime/helpers/inherits";import"@babel/runtime/helpers/possibleConstructorReturn";import"@babel/runtime/helpers/getPrototypeOf";import"./localisation-0bf399a1.js";function n(n,a){import("./skin-271fa63f.js").then((function(e){var r=document.createElement("style");r.id="multiplayer_css",r.append("".concat(e.default)),document.head.appendChild(r)})),function(o,n){e(o).on("loadeddata",(function(){var e;(null===(e=i(o))||void 0===e?void 0:e.length)>0&&t(o,n),null!=n&&n.disableCaptions&&r(o)}))}(n,a),function(r){var t=e(r);t.controls(!1),o(r)}(n)}export{n as initialiseSkin};