@clickview/reports 0.0.16 → 0.0.18-rc.0

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 (54) hide show
  1. package/dist/bundles.json +2 -2
  2. package/dist/css/{14-reports-59f5806135.chunk.css → 14-reports-aec474dd3c.chunk.css} +3 -1
  3. package/dist/css/{15-reports-9e20837cf6.chunk.css → 15-reports-d14d2db3c6.chunk.css} +3 -1
  4. package/dist/css/{2-reports-44b458cacf.chunk.css → 2-reports-1f8a87015e.chunk.css} +3 -1
  5. package/dist/css/{7-reports-4c3608aafe.chunk.css → 7-reports-9c7d507f1d.chunk.css} +3 -1
  6. package/dist/css/{9-reports-1b7fe9561e.chunk.css → 9-reports-a8d8b066bc.chunk.css} +4 -2
  7. package/dist/en.json +1 -1
  8. package/dist/scripts/{1-3c9acf906a-reports.chunk.js → 1-acb97f93f5-reports.chunk.js} +1 -1
  9. package/dist/scripts/10-4d45581396-reports.chunk.js +1 -0
  10. package/dist/scripts/11-25511b17ee-reports.chunk.js +1 -0
  11. package/dist/scripts/14-4aefe05f5c-reports.chunk.js +1 -0
  12. package/dist/scripts/15-362d3fe1dc-reports.chunk.js +1 -0
  13. package/dist/scripts/{16-30f7f6290e-reports.chunk.js → 16-54b3d26c0d-reports.chunk.js} +1 -1
  14. package/dist/scripts/17-d9cc346542-reports.chunk.js +1 -0
  15. package/dist/scripts/{19-9bbdaf7be7-reports.chunk.js → 18-2516a5c250-reports.chunk.js} +1 -1
  16. package/dist/scripts/{18-1060010972-reports.chunk.js → 19-a565104a79-reports.chunk.js} +1 -1
  17. package/dist/scripts/2-9545ff9f97-reports.chunk.js +1 -0
  18. package/dist/scripts/20-95a37d16c6-reports.chunk.js +1 -0
  19. package/dist/scripts/{21-f57b4a93a9-reports.chunk.js → 21-ed503c9254-reports.chunk.js} +1 -1
  20. package/dist/scripts/22-1e3375a566-reports.chunk.js +1 -0
  21. package/dist/scripts/{23-c2f20843ba-reports.chunk.js → 23-ff268678a0-reports.chunk.js} +1 -1
  22. package/dist/scripts/24-0a55ef8d9e-reports.chunk.js +1 -0
  23. package/dist/scripts/25-446633c24f-reports.chunk.js +1 -0
  24. package/dist/scripts/26-6c468e2ad3-reports.chunk.js +1 -0
  25. package/dist/scripts/{27-170a7cd495-reports.chunk.js → 27-42b39c5771-reports.chunk.js} +1 -1
  26. package/dist/scripts/{28-cdc7475a7d-reports.chunk.js → 28-6dff6b550d-reports.chunk.js} +1 -1
  27. package/dist/scripts/{3-d9cf89f972-reports.chunk.js → 3-d4bb9c2162-reports.chunk.js} +1 -1
  28. package/dist/scripts/{4-9937516fbc-reports.chunk.js → 4-4a4cf53074-reports.chunk.js} +15 -15
  29. package/dist/scripts/5-6fd78cbb74-reports.chunk.js +1 -0
  30. package/dist/scripts/{6-3d2d6d7279-reports.chunk.js → 6-5fd7cef585-reports.chunk.js} +1 -1
  31. package/dist/scripts/7-dd840538b5-reports.chunk.js +1 -0
  32. package/dist/scripts/8-2a94b5402a-reports.chunk.js +1 -0
  33. package/dist/scripts/9-e87d1e4e43-reports.chunk.js +1 -0
  34. package/dist/scripts/{bundle-92a35f8dfe.min.js → bundle-9c46a439c8.min.js} +2 -2
  35. package/dist/scripts/{polyfills-06a4a9ccf4.min.js → polyfills-62a32b62fd.min.js} +1 -1
  36. package/package.json +1 -1
  37. package/dist/scripts/10-018eedd517-reports.chunk.js +0 -1
  38. package/dist/scripts/11-48e9403120-reports.chunk.js +0 -1
  39. package/dist/scripts/14-1fdc33d8d5-reports.chunk.js +0 -1
  40. package/dist/scripts/15-f2f1be4a5b-reports.chunk.js +0 -1
  41. package/dist/scripts/17-caafb49166-reports.chunk.js +0 -1
  42. package/dist/scripts/2-fb80815428-reports.chunk.js +0 -1
  43. package/dist/scripts/20-feab289638-reports.chunk.js +0 -1
  44. package/dist/scripts/22-803d81c6f1-reports.chunk.js +0 -1
  45. package/dist/scripts/24-e7a21f2db0-reports.chunk.js +0 -1
  46. package/dist/scripts/25-897eb48bd0-reports.chunk.js +0 -1
  47. package/dist/scripts/26-2ecbd8b239-reports.chunk.js +0 -1
  48. package/dist/scripts/5-a627ee4ea0-reports.chunk.js +0 -1
  49. package/dist/scripts/7-4625d6162f-reports.chunk.js +0 -1
  50. package/dist/scripts/8-c0a18a4adb-reports.chunk.js +0 -1
  51. package/dist/scripts/9-8f1a87c569-reports.chunk.js +0 -1
  52. /package/dist/css/{19-reports-1b564b1b5c.chunk.css → 18-reports-1ff948ce90.chunk.css} +0 -0
  53. /package/dist/css/{18-reports-5101603969.chunk.css → 19-reports-5101603969.chunk.css} +0 -0
  54. /package/dist/css/{20-reports-0bfc7eb65b.chunk.css → 20-reports-82ce367dfd.chunk.css} +0 -0
@@ -1 +0,0 @@
1
- (window.webpackJsonp_clickview_reports=window.webpackJsonp_clickview_reports||[]).push([[7],Array(871).concat([function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(92),o=n(891),i={views:function(t,e,n,i,a,c){var u="video:views";e&&(u+=":".concat(e));var l=Object.assign({objectId:e},Object(o.a)(t));return n&&(l.sharerId=n),{url:r.a.urlBuilder("{gateway}/v1/analytics/views",l),key:Object(o.b)(u,t,n),normalize:!1,success:i,error:a,always:c}},individualEngagement:function(t,e,n,i,a,c){var u=Object.assign({objectId:t},Object(o.a)(e));return n&&(u.sharerId=n),{url:r.a.urlBuilder("{gateway}/v1/analytics/heat-map",u),key:Object(o.b)("engagement:".concat(t),e,n),formatData:function(t){var e;return Object.assign(Object.assign({},t),{data:null===(e=t.data)||void 0===e?void 0:e.map((function(t){var e;return Object.assign(Object.assign({},t),{heatMap:null!==(e=t.heatMap)&&void 0!==e?e:[]})}))})},normalize:!1,success:i,error:a,always:c}},aggregateEngagement:function(t,e,n,i,a,c){var u=Object.assign({objectId:t},Object(o.a)(e));return n&&(u.sharerId=n),{url:r.a.urlBuilder("{gateway}/v1/analytics/heat-map/aggregations",u),key:Object(o.b)("aggregate:engagement:".concat(t),e,n),formatData:function(t){var e;return Object.assign(Object.assign({},t),{heatMap:null!==(e=t.heatMap)&&void 0!==e?e:[]})},normalize:!1,success:i,error:a,always:c}},topVideos:function(t,e,n,i){return{url:r.a.urlBuilder("{gateway}/v1/analytics/top-videos",Object.assign({"query.video":"thumbnail","query.interactive":"video[thumbnail],clip[video[thumbnail]],thumbnail","query.clip":"video[thumbnail]"},Object(o.a)(t))),key:Object(o.b)("top:videos",t),normalize:!1,success:e,error:n,always:i}}}},function(t,e,n){"use strict";var r,o,i=n(0),a=n.n(i),c=n(889),u=n(879),l=n.n(u);function s(t){var e=t===r.Large?5.8:2,n=t===r.Large?.36:.2;return"".concat(e/2-2*n,"rem")}function f(t){return t>=c.a.HIGH?"text-success":t>=c.a.MODERATE?"text-warning":"text-danger"}function p(t,e){var n="d-inline-block ".concat(l.a.circleContainer);return t===r.Large&&(n+=" ".concat(l.a.lgCircleContainer)),y(e)&&(n+=" ".concat(l.a.pendingCircle)),n}function y(t){return"number"!=typeof t}function d(t){var e,n=a.a.useCallback((function(e){if(e){var n=e.r.baseVal.value,r=2*Math.PI*n,o=r-t.percentage*r;e.style.strokeDasharray="".concat(r," ").concat(r),e.style.strokeDashoffset=o.toString()}}),[]);return a.a.createElement("svg",null,a.a.createElement("circle",{r:s(t.size),className:l.a.backgroundCircle}),!y(t.percentage)&&a.a.createElement("circle",{ref:n,r:s(t.size),className:(e=t.percentage,e>=c.a.HIGH?l.a.circleSuccess:e>=c.a.MODERATE?l.a.circleWarning:l.a.circleDanger)}))}function h(t){var e,n,i=function(t){if(!y(t))return+t.toFixed(2)}(t.percentage),c=t.layout===o.LabelInside?r.Large:r.Small,u=t.customLabel||(y(n=i)?"--%":"".concat(Math.round(100*n),"%"));return t.layout===o.LabelOnly?a.a.createElement("span",{className:f(i)},u):a.a.createElement("div",{className:"d-flex align-items-center justify-content-between ".concat(null!==(e=t.className)&&void 0!==e?e:"")},t.layout===o.LabelBefore&&a.a.createElement("span",{className:"mr-2"},u),a.a.createElement("div",{className:p(c,i)},a.a.createElement(d,{percentage:i,size:c}),t.layout===o.LabelInside&&a.a.createElement("span",{className:l.a.centredPercentageText},u)))}!function(t){t.Small="small",t.Large="large"}(r||(r={})),n.d(e,"b",(function(){return o})),n.d(e,"a",(function(){return h})),function(t){t.CircleOnly="circle_only",t.LabelOnly="label_only",t.LabelBefore="label_before",t.LabelInside="label_inside"}(o||(o={})),h.defaultProps={layout:o.CircleOnly}},function(t,e,n){"use strict";n.d(e,"a",(function(){return u}));var r=n(0),o=n(27),i=n(256);function a(t){return function(t){if(Array.isArray(t))return c(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return c(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return c(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function c(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function u(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=r.useContext(i.a),c=n.setPageTitle;r.useEffect((function(){"boolean"!=typeof t&&o.a.isFunction(c)&&(t||(t=""),c(t))}),[t].concat(a(e)))}},function(t,e,n){"use strict";var r=n(0),o=n.n(r),i=n(890),a=n.n(i);function c(t){var e;return o.a.createElement("img",{alt:"",role:"presentation",src:t.src,className:"".concat(a.a.image," ").concat(null!==(e=t.className)&&void 0!==e?e:"")})}var u=n(3),l=n(27),s=n(215),f=n(40);function p(t){var e=t.className||"btn btn-dark";if(!t.icon){if(t.appLink&&!l.a.isFunction(t.onClick))return o.a.createElement(f.a,{appLink:t.appLink,className:e},t.text);return o.a.createElement("button",{onClick:function(){l.a.isFunction(t.onClick)&&t.onClick(),t.appLink&&u.a.AppLinkHelper.trigger(t.appLink)},className:e},t.text)}return o.a.createElement(s.a,{className:e,onClick:t.onClick,appLink:t.appLink,svgName:t.icon},t.text)}function y(t){var e;return o.a.createElement("div",{className:"text-center d-flex flex-column align-items-center ".concat(null!==(e=t.className)&&void 0!==e?e:"")},t.children)}n.d(e,"a",(function(){return y})),y.defaultProps={className:"pt-5"},y.Image=function(t){return o.a.createElement(c,Object.assign({},t))},y.Cta=function(t){return o.a.createElement(p,Object.assign({},t))},y.Heading=function(t){return o.a.createElement("h2",{className:t.className||"h6"},t.children)},y.Info=function(t){return o.a.createElement("p",{className:t.className||"mb-3 w-50"},t.children)}},function(t,e,n){"use strict";n.d(e,"a",(function(){return u}));var r=n(0),o=n(34),i=n(35);function a(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(t)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,c=t[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(t){o=!0,i=t}finally{try{r||null==c.return||c.return()}finally{if(o)throw i}}return n}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return c(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return c(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function c(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function u(t){var e,n=a(Object(o.a)(i.a.AUDIENCE_FILTER_SELECTED_COUNT),2)[1];Object(r.useEffect)((function(){t.data?n(t.data.count):n(null)}),[null===(e=t.data)||void 0===e?void 0:e.count])}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var r={EmptyStates:{Dashboard:{ComingSoon:"/images/empty-states/generic/coming-soon.png"},Interactives:{StudentInsights:"/images/empty-states/interactives/student-insights.png",SelectQuestion:"/images/empty-states/interactives/select-question.png",NoResponses:"/images/empty-states/interactives/no-responses.png"},Shared:{LoginCount:"/images/empty-states/logins/login-count.png",ViewCount:"/images/empty-states/videos/view-count.png",TypeaheadResults:"/images/empty-states/generic/typeahead-results.png"}},Errors:{SmallAvatar:"/images/error-avatars/small/error-{number}.png",TypeaheadError:"/images/errors/typeahead-error.png"}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return u}));var r=n(0),o=n(34),i=n(35);function a(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(t)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,c=t[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(t){o=!0,i=t}finally{try{r||null==c.return||c.return()}finally{if(o)throw i}}return n}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return c(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return c(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function c(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function u(t){var e=a(Object(o.a)(i.a.HEADER_TITLE),2)[1];Object(r.useEffect)((function(){return e(t),function(){e(null)}}),[t])}},function(t,e,n){"use strict";n.d(e,"a",(function(){return f}));var r=n(0),o=n.n(r),i=n(12),a=n(40),c=n(93),u=n(880),l=n.n(u);function s(t){var e="nav-link p-0 mb-0 mr-4 h6 text-dark";return"".concat(e,t?" active":" font-weight-normal")}function f(t){return o.a.createElement(i.Navbar,{className:"p-0 pb-3"},o.a.createElement(i.Nav,null,t.items.map((function(t,e){var n,r,u=t.appLink.action===(null===(r=null===(n=c.a.getCurrentRoute())||void 0===n?void 0:n.appLink)||void 0===r?void 0:r.action);return o.a.createElement(i.Nav.Item,{key:e},o.a.createElement(a.a,{appLink:t.appLink,className:s(u)},t.label),u&&o.a.createElement("div",{className:"mt-1 mr-4 ".concat(l.a.underline)}))}))))}},function(t,e,n){t.exports={circleContainer:"_3uMQG",backgroundCircle:"_29byp",circleSuccess:"_1leSx",circleWarning:"_1yreR",circleDanger:"_13evQ",lgCircleContainer:"_2gBnl",pendingCircle:"NTTU7",centredPercentageText:"_1wF3E"}},function(t,e,n){t.exports={underline:"_1eU3d"}},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e,n){"use strict";function r(t){var e=[];return Object.keys(t).forEach((function(n){var r=t[n];r&&e.push("".concat(n,":").concat(Array.isArray(r)?r.join(","):r))})),e.join(":")}n.d(e,"a",(function(){return r}))},function(t,e,n){"use strict";n.d(e,"a",(function(){return u})),n.d(e,"b",(function(){return l}));var r=n(1072),o=n(8),i=n(172),a=n(892),c=o.a.encloseNamespace("reportsShared.utils");function u(t,e){return e?Object(r.c)(function(t){var e=+"".concat(t.id).concat(Math.floor((new Date).getMinutes()/5));return{dictionaries:[r.b,r.a],separator:" ",length:2,style:"capital",seed:e}}(t)):i.a.getFullName(t)}function l(t){switch(t.toLowerCase()){case a.a.Learner:return c("student");case a.a.Staff:return c("staff");default:return t}}},function(t,e,n){"use strict";var r=n(0),o=n.n(r),i=n(15),a=n(8),c=n(47),u=n(871),l=n(171),s=n(214),f=n(875),p=n(899),y=n(897),d=n(874),h=n(876),v=a.a.encloseNamespace("shared.viewCountPieChartEmptyState");function b(t){return o.a.createElement(d.a,{className:"flex-grow-1 justify-content-center"},o.a.createElement(d.a.Image,{src:h.a.EmptyStates.Shared.ViewCount,className:"w-75 pb-0"}),o.a.createElement(d.a.Heading,null,v("heading")),o.a.createElement(d.a.Info,{className:"w-100"},v(t.singular?"descriptionSingular":"descriptionMultiple")))}n.d(e,"a",(function(){return g}));var m=a.a.encloseNamespace("shared.viewCountPieChartCard");function g(t){var e,n,r,a,d=Object(l.a)(),h=i.a.useBasicFetch(!!t.useSharerId&&c.a.currentUser()),v=i.a.useBasicFetch(t.useSharerId?!!h.data&&u.a.views(d,t.objectId,h.data.id):u.a.views(d,t.objectId)),g=i.a.useBasicFetch((null===(e=v.data)||void 0===e?void 0:e.data.length)&&s.a.getById(v.data.data.map((function(t){return t.userId}))));Object(f.a)(v);var w=(null===(n=v.data)||void 0===n?void 0:n.data.length)?!!g.data:!!v.data;return o.a.createElement("div",{className:"bg-white rounded p-3 position-relative d-flex flex-column ".concat(null!==(r=t.className)&&void 0!==r?r:"")},w?o.a.createElement(p.a,{events:v.data.data,users:null!==(a=g.data)&&void 0!==a?a:[],objectId:t.objectId,yearGroupTitle:m("totalStudentPlays"),userTypeTitle:m("totalPlays"),seriesName:m("plays"),emptyStateComponent:o.a.createElement(b,{singular:!!t.objectId})}):o.a.createElement(y.a,null))}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var r={HIGH:.75,MODERATE:.5}},function(t,e,n){t.exports={image:"_3T3Ux"}},function(t,e,n){"use strict";n.d(e,"b",(function(){return l})),n.d(e,"a",(function(){return s}));var r=n(49),o=n(896),i=n(99),a=n(886);function c(t){return function(t){if(Array.isArray(t))return u(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return u(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return u(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function u(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function l(t,e,n){var r=Object(a.a)(e),o=t;return r&&(o+=":".concat(r)),n&&(o+=":".concat(n)),o}function s(t){var e,n;return Object.assign({userId:t.users,groupId:[].concat(c(null!==(e=t.classrooms)&&void 0!==e?e:[]),c(null!==(n=t.classroomGroups)&&void 0!==n?n:[]))},function(t){var e=function(t){return Object(o.a)(r.a.startOf(t,"day"))},n=function(t){return Object(o.a)(r.a.endOf(t,"day"))},a=Object(i.g)(t.rangeName);if(a)return{start:e(Object(i.a)(a.startDate)),end:n(Object(i.a)(a.endDate))};if(t.from&&t.to)return{start:e(t.from),end:n(t.to)};var c=Object(i.c)();return{start:e(Object(i.a)(c.startDate)),end:n(Object(i.a)(c.endDate))}}(t))}},function(t,e,n){"use strict";var r;n.d(e,"a",(function(){return r})),function(t){t.Unknown="unknown",t.Staff="staff",t.Learner="learner"}(r||(r={}))},function(t,e,n){"use strict";var r=n(908);n.o(r,"InteractionTypeId")&&n.d(e,"InteractionTypeId",(function(){return r.InteractionTypeId}));var o=n(937);n.o(o,"InteractionTypeId")&&n.d(e,"InteractionTypeId",(function(){return o.InteractionTypeId}));var i=n(1014);n.o(i,"InteractionTypeId")&&n.d(e,"InteractionTypeId",(function(){return i.InteractionTypeId}));var a=n(1016);n.o(a,"InteractionTypeId")&&n.d(e,"InteractionTypeId",(function(){return a.InteractionTypeId}));var c=n(1029);n.o(c,"InteractionTypeId")&&n.d(e,"InteractionTypeId",(function(){return c.InteractionTypeId}));var u=n(1032);n.o(u,"InteractionTypeId")&&n.d(e,"InteractionTypeId",(function(){return u.InteractionTypeId}));n(1054);var l=n(1040);n.o(l,"InteractionTypeId")&&n.d(e,"InteractionTypeId",(function(){return l.InteractionTypeId}));var s=n(1041);n.o(s,"InteractionTypeId")&&n.d(e,"InteractionTypeId",(function(){return s.InteractionTypeId}));var f=n(1042);n.o(f,"InteractionTypeId")&&n.d(e,"InteractionTypeId",(function(){return f.InteractionTypeId}));var p=n(885);n.o(p,"InteractionTypeId")&&n.d(e,"InteractionTypeId",(function(){return p.InteractionTypeId}));var y=n(1043);n.o(y,"InteractionTypeId")&&n.d(e,"InteractionTypeId",(function(){return y.InteractionTypeId}));var d=n(1044);n.o(d,"InteractionTypeId")&&n.d(e,"InteractionTypeId",(function(){return d.InteractionTypeId})),n.o(p,"InteractionTypeId")&&n.d(e,"InteractionTypeId",(function(){return p.InteractionTypeId}));var h=n(1045);n.o(h,"InteractionTypeId")&&n.d(e,"InteractionTypeId",(function(){return h.InteractionTypeId}));var v=n(1046);n.o(v,"InteractionTypeId")&&n.d(e,"InteractionTypeId",(function(){return v.InteractionTypeId}));var b=n(1047);n.o(b,"InteractionTypeId")&&n.d(e,"InteractionTypeId",(function(){return b.InteractionTypeId}));var m=n(1048);n.o(m,"InteractionTypeId")&&n.d(e,"InteractionTypeId",(function(){return m.InteractionTypeId}));var g=n(1049);n.o(g,"InteractionTypeId")&&n.d(e,"InteractionTypeId",(function(){return g.InteractionTypeId}))},function(t,e,n){"use strict";n.d(e,"a",(function(){return u}));var r=n(0),o=n(34),i=n(35);function a(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(t)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,c=t[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(t){o=!0,i=t}finally{try{r||null==c.return||c.return()}finally{if(o)throw i}}return n}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return c(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return c(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function c(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function u(t){var e=a(Object(o.a)(i.a.HEADER_ACTIONS),2)[1];Object(r.useEffect)((function(){return e(t),function(){e(null)}}),[!!t])}},function(t,e,n){"use strict";var r=n(0),o=n.n(r),i=n(8),a=n(17),c=n(16),u=n(34);function l(t){return o.a.createElement("div",Object.assign({},t,{role:"button",tabIndex:0,className:"".concat(t.className?t.className:""," cursor-pointer"),onKeyDown:t.onKeyDown?t.onKeyDown:function(e){return"Enter"===e.key&&t.onClick(e)},onClick:t.onClick,style:t.style?t.style:{}}),t.children)}var s=n(86);function f(t){function e(){t.disabled||t.onClick.apply(t,arguments)}var n=t.disabled?"disabled":"",r=t.hideOutline?"outline-none":"",i=t.on?"on":"";t.disabled&&!t.showStateWhenDisabled&&(i="");var a="".concat("d-inline-block float-right align-top custom-toggle toggle-option"," ").concat(i," ").concat(n," ").concat(r);return t.tooltipText?o.a.createElement(s.a,{title:t.tooltipText,spanHack:!0},o.a.createElement(l,{onClick:e,className:a},o.a.createElement("span",{className:"handle"}))):o.a.createElement(l,{onClick:e,className:a},o.a.createElement("span",{className:"handle"}))}var p=n(35);function y(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(t)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,c=t[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(t){o=!0,i=t}finally{try{r||null==c.return||c.return()}finally{if(o)throw i}}return n}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return d(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return d(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function d(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var h=i.a.encloseNamespace("reportsShared.anonymiseAction");function v(){var t=y(Object(u.a)(p.a.ANONYMISE_USERS,!1),2),e=t[0],n=t[1];return o.a.createElement("div",{className:"d-flex align-items center justify-content-between",onClick:function(){return n(!e)}},o.a.createElement("span",{className:"mr-3"},h("hideNames")),o.a.createElement(f,{on:e,onClick:function(){}}))}var b=n(92),m=n(173),g=n(53),w=function(t,e){var n=t.primaryUrl;if(n){var r="";switch(e.typeId){case g.a.Video:r="/videos/".concat(e.id,"/").concat(m.a.slugify(e.name));break;case g.a.Interactive:r="/interactive/".concat(e.id,"/preview");break;case g.a.Clip:r="/clips/".concat(e.id,"/").concat(m.a.slugify(e.name));break;case g.a.Series:r="/series/".concat(e.id,"/").concat(m.a.slugify(e.name));break;case g.a.Playlist:r="/playlists/".concat(e.id,"/").concat(m.a.slugify(e.name))}if(r)return b.a.safeUrlConcat(n,r)}};n.d(e,"a",(function(){return O}));var C=i.a.encloseNamespace("reportsShared.utils");function O(t,e){if(t&&e){var n=[],r=w(t,e);return r&&n.push({label:function(){return o.a.createElement("span",{className:"d-flex justify-content-between align-items-center"},o.a.createElement("span",{className:"mr-2"},C("seeVideo")),o.a.createElement(a.a,{svgName:c.b.NewWindow}))},href:r,openInNewTab:!0}),n.push({label:function(){return o.a.createElement(v,null)}}),n}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(49);function o(t){var e=r.a.convertDateToUTC(t);return r.a.format(e,"YYYY-MM-DDTHH:mm:ss")}},function(t,e,n){"use strict";n.d(e,"a",(function(){return c}));var r=n(0),o=n.n(r),i=n(906),a=n.n(i);function c(){return o.a.createElement("div",{className:"d-flex align-items-start justify-content-between"},o.a.createElement("div",null,o.a.createElement("div",{className:"partial-loading-background mb-2 ".concat(a.a.partialHeading)}),o.a.createElement("div",{className:"partial-loading-background ".concat(a.a.partialCount)})),o.a.createElement("div",{className:"partial-loading-background rounded ".concat(a.a.partialSelector)}))}},,function(t,e,n){"use strict";var r=n(0),o=n.n(r),i=n(1058),a=n.n(i),c=n(1078),u=n.n(c),l=n(12),s=n(8),f=n(1062),p=n(52),y=n(892),d=n(172),h=n(887),v=n(1063),b={title:{text:null},credits:{enabled:!1},chart:{backgroundColor:"transparent",spacing:[0,0,0,0]},plotOptions:{pie:{allowPointSelect:!0,cursor:"pointer",dataLabels:{enabled:!1},showInLegend:!0}}},m=s.a.encloseNamespace("shared.userActivityPieChart");function g(t,e){return Object.assign(Object.assign({},b),{series:[{type:"pie",name:e,data:t}]})}var w=n(906),C=n.n(w);function O(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(t)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,c=t[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(t){o=!0,i=t}finally{try{r||null==c.return||c.return()}finally{if(o)throw i}}return n}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return I(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return I(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function I(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}n.d(e,"a",(function(){return j}));var T=s.a.encloseNamespace("shared.userActivityPieChart"),S=["yearGroup","userType"],_={yearGroup:"yearGroups",userType:"userType"};function k(t){return o.a.createElement(l.Dropdown,{alignRight:!0},o.a.createElement(l.Dropdown.Toggle,{id:"group-by-dropdown",variant:"outline-dark",className:"no-caret"},T("yearGroup"===t.selectedOption?"yearGroups":"userType")),o.a.createElement(l.Dropdown.Menu,null,S.map((function(e,n){return t.selectedOption!==e&&o.a.createElement(l.Dropdown.Item,{key:n,onSelect:function(){return t.onSelect(e)}},T(_[e]))}))))}function j(t){var e=O(o.a.useState("yearGroup"),2),n=e[0],r=e[1];Object(f.a)();var i,c,l,s,b="yearGroup"===n?(i=t.events,c=t.users,l=p.a.toObject(c,"id"),s={},i.forEach((function(t){var e,n,r,o,i=l[t.userId];if(d.a.getUserTypeString(i)===y.a.Learner){var a=null!==(r=null===(n=null===(e=null==i?void 0:i._yearGroup)||void 0===e?void 0:e.value)||void 0===n?void 0:n.name)&&void 0!==r?r:m("unknown");a&&(s[a]=null!==(o=s[a])&&void 0!==o?o:0,s[a]++)}})),Object(v.a)(p.a.sortBy(Object.keys(s).map((function(t){return{name:t,y:s[t],type:"pie"}})),"name"))):function(t,e){var n=p.a.toObject(e,"id"),r={};return t.forEach((function(t){var e,o,i=n[t.userId],a=null!==(e=d.a.getUserTypeString(i))&&void 0!==e?e:m("unknown");r[a]=null!==(o=r[a])&&void 0!==o?o:0,r[a]++})),Object(v.a)(p.a.sortBy(Object.keys(r).map((function(t){return{name:Object(h.b)(t),y:r[t],type:"pie"}})),"name"))}(t.events,t.users);return o.a.createElement(o.a.Fragment,null,o.a.createElement("div",{className:"d-flex align-items-start justify-content-between w-100"},o.a.createElement("div",null,o.a.createElement("h6",{className:"m-0"},"yearGroup"===n?t.yearGroupTitle:t.userTypeTitle),o.a.createElement("strong",{className:C.a.totalCount},function(t){return t.reduce((function(t,e){return t+e.y}),0)}(b))),o.a.createElement(k,{selectedOption:n,onSelect:r})),b.length?o.a.createElement(u.a,{highcharts:a.a,options:g(b,t.seriesName),containerProps:{className:"".concat(C.a.chartContainer," position-absolute w-100 h-75 flex-grow-1")}}):t.emptyStateComponent)}},,function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var r=n(0),o=n.n(r),i=n(872);function a(t){return o.a.createElement(i.a,{layout:t.layout,className:t.className,percentage:0,customLabel:"--%"})}},function(t,e,n){"use strict";n.d(e,"a",(function(){return c}));var r=n(0),o=n.n(r),i=n(1050),a=n.n(i);function c(t){var e,n;return o.a.createElement("div",{className:"bg-white rounded ".concat(a.a.table," ").concat(null!==(e=t.className)&&void 0!==e?e:"")},o.a.createElement("div",{className:"border-bottom ".concat(a.a.header," ").concat(null!==(n=t.headerClassName)&&void 0!==n?n:"")}),t.children)}},,function(t,e,n){"use strict";var r,o=n(0),i=n.n(o),a=n(903),c=n(17),u=n(16),l=n(1052),s=n.n(l);!function(t){t[t.Left=0]="Left",t[t.Right=1]="Right"}(r||(r={}));var f=o.memo((function(t){var e,n,i=t.direction===r.Left,a=i?u.b.ChevronLeft:u.b.ChevronRight,l=(t.contents,e=i,n=s.a.topPos,n+=e?" "+s.a.left:" "+s.a.right);return t.hide?o.createElement(o.Fragment,null):o.createElement(o.Fragment,null,o.createElement("div",{role:"button",className:"".concat(l," ").concat(s.a.button," ").concat(t.className||""),onClick:t.onClick},t.hoverText&&o.createElement("span",{className:"pl-3 pr-2 ".concat(s.a.hoverText)},t.hoverText),o.createElement(c.a,{svgName:a,size:c.b.Medium,className:"svg-container d-inline-block ".concat(s.a.chevron)})),t.useGradientBackdrop&&o.createElement("div",{className:i?s.a.gradientLeft:s.a.gradientRight}),!t.hideExtendedClickableArea&&o.createElement("div",{role:"button",onClick:t.onClick,className:i?s.a.extendedClickableAreaLeft:s.a.extendedClickableAreaRight}))})),p=n(40),y=n(27);function d(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(t)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,c=t[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(t){o=!0,i=t}finally{try{r||null==c.return||c.return()}finally{if(o)throw i}}return n}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return h(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return h(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function h(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function v(t){var e,n,r,o;return{canScrollLeft:(null===(e=t.current)||void 0===e?void 0:e.scrollLeft)>0,canScrollRight:(null===(n=t.current)||void 0===n?void 0:n.scrollLeft)<(null===(r=t.current)||void 0===r?void 0:r.scrollWidth)-(null===(o=t.current)||void 0===o?void 0:o.clientWidth)}}var b=n(1053),m=n.n(b);function g(t){return function(t){if(Array.isArray(t))return w(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return w(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return w(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function w(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}n.d(e,"a",(function(){return I}));var C=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(t);o<r.length;o++)e.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(t,r[o])&&(n[r[o]]=t[r[o]])}return n};function O(t){var e,n,r,o,l,s,f,y,d={columns:t.columns,data:t.data,disableSortBy:!t.enableSort,manualSortBy:t.manualSort};t.initialSelectedRowIds&&(d.initialState={selectedRowIds:(f=t.initialSelectedRowIds,y={},f.forEach((function(t){return y[t]=!0})),y)}),t.getRowId&&(d.getRowId=t.getRowId);var h=a.useTable.apply(void 0,[d].concat(g([a.useFlexLayout,a.useSortBy,a.useRowSelect]))),v=h.getTableProps,b=h.getTableBodyProps,w=h.headerGroups,C=h.rows,O=h.prepareRow,I=h.toggleAllRowsSelected,T=h.state.sortBy;return i.a.useEffect((function(){t.onSort&&t.onSort(T)}),[T]),i.a.createElement("div",Object.assign({},v(),{className:null!==(n=null===(e=t.theme)||void 0===e?void 0:e.table)&&void 0!==n?n:""}),i.a.createElement("div",{className:null!==(o=null===(r=t.theme)||void 0===r?void 0:r.header)&&void 0!==o?o:""},w.map((function(e){var n,r;return i.a.createElement("div",Object.assign({},e.getHeaderGroupProps(),{className:null!==(r=null===(n=t.theme)||void 0===n?void 0:n.headerRow)&&void 0!==r?r:""}),e.headers.map((function(e){var n,r,o,a;return i.a.createElement("div",Object.assign({},e.getHeaderProps(e.getSortByToggleProps()),{className:null!==(r=null===(n=t.theme)||void 0===n?void 0:n.headerCell)&&void 0!==r?r:""}),e.render("Header"),!!e.canSort&&i.a.createElement("span",{className:"".concat(m.a.sortIndicator,"\n ").concat(e.isSorted?"":"text-muted","\n ").concat(null!==(a=null===(o=t.theme)||void 0===o?void 0:o.sortIndicator)&&void 0!==a?a:"")},i.a.createElement(c.a,{svgName:e.isSortedDesc||!e.isSorted?u.b.ArrowRight:u.b.ArrowLeft,size:c.b.Small})))})))}))),i.a.createElement("div",Object.assign({},b(),{className:null!==(s=null===(l=t.theme)||void 0===l?void 0:l.body)&&void 0!==s?s:""}),C.map((function(e){var n,r,o,a;O(e);var c=null!==(r=null===(n=t.theme)||void 0===n?void 0:n.row)&&void 0!==r?r:"";e.isSelected&&(null===(o=t.theme)||void 0===o?void 0:o.selectedRow)&&(c+=" ".concat(null===(a=t.theme)||void 0===a?void 0:a.selectedRow)),t.onSelectRow&&(c+=" cursor-pointer");var u=!!t.getRowAppLink&&t.getRowAppLink(e);function l(){return e.cells.map((function(e){var n,r,o=null!==(r=null===(n=t.theme)||void 0===n?void 0:n.cell)&&void 0!==r?r:"";return t.onSelectCell&&(o+=" cursor-pointer"),i.a.createElement("div",Object.assign({},e.getCellProps(),{className:o,onClick:function(){t.onSelectCell&&t.onSelectCell(e)}}),e.render("Cell"))}))}return u?i.a.createElement(p.a,Object.assign({},e.getRowProps(),{className:c,appLink:u}),l()):i.a.createElement("div",Object.assign({},e.getRowProps(),{className:c,onClick:function(){t.onSelectRow&&(t.allowSelectMultipleRows||I(!1),t.onSelectRow(e),e.toggleRowSelected(!0))},onMouseOver:t.onRowMouseOver&&function(){return t.onRowMouseOver(e)},onMouseLeave:t.onRowMouseLeave&&function(){return t.onRowMouseLeave(e)}}),l())}))))}function I(t){var e=t.enableSlider,n=t.scrollIncrement,o=C(t,["enableSlider","scrollIncrement"]),a=function(){var t=i.a.useRef(),e=d(i.a.useState(v(t)),2),n=e[0],r=e[1];function o(){r(v(t))}return i.a.useEffect((function(){if(t.current){var e=y.a.throttle(o,200);return r(v(t)),t.current.addEventListener("scroll",e),function(){t.current.removeEventListener("scroll",e)}}}),[t.current]),{ref:t,scrollState:n,scroll:function(e){var n;null===(n=t.current)||void 0===n||n.scrollBy({left:e,top:0,behavior:"smooth"})}}}(),c=a.ref,u=a.scrollState,l=a.scroll;if(!e)return i.a.createElement(O,Object.assign({},o));function s(t){c.current&&l(n*("right"===t?1:-1))}return i.a.createElement("div",{className:"mx-n3 overflow-hidden-x"},i.a.createElement("div",{className:"px-3"},i.a.createElement("div",{className:"position-relative"},i.a.createElement(f,{direction:r.Left,onClick:function(){return s("left")},hide:!u.canScrollLeft}),i.a.createElement("div",{className:m.a.scrollContainer,ref:c},i.a.createElement(O,Object.assign({},o))),i.a.createElement(f,{direction:r.Right,onClick:function(){return s("right")},hide:!u.canScrollRight}))))}I.defaultProps={scrollIncrement:250}},,function(t,e,n){t.exports={totalCount:"_3a-8G",chartContainer:"_1QY5r",partialHeading:"l-ees",partialSelector:"_1Jzj5",partialCount:"_2mo-l"}},function(t,e,n){"use strict";n.d(e,"a",(function(){return y}));var r=n(0),o=n.n(r),i=n(15),a=n(8),c=n(47),u=n(171),l=n(871),s=n(872),f=n(901),p=a.a.encloseNamespace("shared.engagementOverviewCard");function y(t){var e,n,r=Object(u.a)(),a=!r.users&&!r.classrooms&&!r.classroomGroups,y=i.a.useBasicFetch(!!t.useSharerId&&c.a.currentUser()),d=i.a.useBasicFetch(t.useSharerId?!!y.data&&l.a.aggregateEngagement(t.objectId,r,y.data.id):l.a.aggregateEngagement(t.objectId,r)),h=(null===(e=d.data)||void 0===e?void 0:e.engagementRate)>0?d.data.engagementRate:null;return o.a.createElement("div",{className:"d-flex flex-column rounded bg-white p-3 ".concat(null!==(n=t.className)&&void 0!==n?n:"")},o.a.createElement("h6",{className:"mb-2"},p("heading")),o.a.createElement("div",{className:"d-flex align-items-center flex-grow-1\n ".concat("vertical"===t.layout?" flex-column justify-content-center text-center":"")},!!d.data&&o.a.createElement(o.a.Fragment,null,o.a.createElement(s.a,{percentage:h,layout:s.b.LabelInside}),o.a.createElement("p",{className:"horizontal"===t.layout?"ml-2":""},"number"==typeof h?p(a?"descriptionEveryone":"descriptionSome",{percentage:Math.round(100*d.data.engagementRate)}):p("descriptionNoData"))),!d.data&&o.a.createElement(o.a.Fragment,null,o.a.createElement(f.a,{layout:s.b.LabelInside}),"vertical"===t.layout&&o.a.createElement("p",null," "))))}},function(t,e,n){"use strict";var r=n(909);n.o(r,"InteractionTypeId")&&n.d(e,"InteractionTypeId",(function(){return r.InteractionTypeId}));var o=n(911);n.o(o,"InteractionTypeId")&&n.d(e,"InteractionTypeId",(function(){return o.InteractionTypeId}));var i=n(912);n.o(i,"InteractionTypeId")&&n.d(e,"InteractionTypeId",(function(){return i.InteractionTypeId}));var a=n(913);n.o(a,"InteractionTypeId")&&n.d(e,"InteractionTypeId",(function(){return a.InteractionTypeId}));var c=n(914);n.o(c,"InteractionTypeId")&&n.d(e,"InteractionTypeId",(function(){return c.InteractionTypeId}));var u=n(915);n.o(u,"InteractionTypeId")&&n.d(e,"InteractionTypeId",(function(){return u.InteractionTypeId}));var l=n(881);n.o(l,"InteractionTypeId")&&n.d(e,"InteractionTypeId",(function(){return l.InteractionTypeId}));var s=n(916);n.o(s,"InteractionTypeId")&&n.d(e,"InteractionTypeId",(function(){return s.InteractionTypeId}));var f=n(917);n.o(f,"InteractionTypeId")&&n.d(e,"InteractionTypeId",(function(){return f.InteractionTypeId}));var p=n(918);n.o(p,"InteractionTypeId")&&n.d(e,"InteractionTypeId",(function(){return p.InteractionTypeId}));var y=n(919);n.o(y,"InteractionTypeId")&&n.d(e,"InteractionTypeId",(function(){return y.InteractionTypeId}));var d=n(920);n.o(d,"InteractionTypeId")&&n.d(e,"InteractionTypeId",(function(){return d.InteractionTypeId}));var h=n(921);n.o(h,"InteractionTypeId")&&n.d(e,"InteractionTypeId",(function(){return h.InteractionTypeId})),n.o(l,"InteractionTypeId")&&n.d(e,"InteractionTypeId",(function(){return l.InteractionTypeId}));var v=n(922);n.o(v,"InteractionTypeId")&&n.d(e,"InteractionTypeId",(function(){return v.InteractionTypeId}));var b=n(923);n.o(b,"InteractionTypeId")&&n.d(e,"InteractionTypeId",(function(){return b.InteractionTypeId}));var m=n(924);n.o(m,"InteractionTypeId")&&n.d(e,"InteractionTypeId",(function(){return m.InteractionTypeId}));var g=n(925);n.o(g,"InteractionTypeId")&&n.d(e,"InteractionTypeId",(function(){return g.InteractionTypeId}));var w=n(926);n.o(w,"InteractionTypeId")&&n.d(e,"InteractionTypeId",(function(){return w.InteractionTypeId}));var C=n(927);n.o(C,"InteractionTypeId")&&n.d(e,"InteractionTypeId",(function(){return C.InteractionTypeId}));var O=n(928);n.o(O,"InteractionTypeId")&&n.d(e,"InteractionTypeId",(function(){return O.InteractionTypeId}));var I=n(929);n.o(I,"InteractionTypeId")&&n.d(e,"InteractionTypeId",(function(){return I.InteractionTypeId}));var T=n(930);n.o(T,"InteractionTypeId")&&n.d(e,"InteractionTypeId",(function(){return T.InteractionTypeId}));var S=n(931);n.o(S,"InteractionTypeId")&&n.d(e,"InteractionTypeId",(function(){return S.InteractionTypeId}));var _=n(932);n.o(_,"InteractionTypeId")&&n.d(e,"InteractionTypeId",(function(){return _.InteractionTypeId}));var k=n(933);n.o(k,"InteractionTypeId")&&n.d(e,"InteractionTypeId",(function(){return k.InteractionTypeId}));var j=n(934);n.o(j,"InteractionTypeId")&&n.d(e,"InteractionTypeId",(function(){return j.InteractionTypeId}));var E=n(935);n.o(E,"InteractionTypeId")&&n.d(e,"InteractionTypeId",(function(){return E.InteractionTypeId}));var P=n(936);n.o(P,"InteractionTypeId")&&n.d(e,"InteractionTypeId",(function(){return P.InteractionTypeId}))},function(t,e,n){"use strict";var r=n(910);n.o(r,"InteractionTypeId")&&n.d(e,"InteractionTypeId",(function(){return r.InteractionTypeId}))},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e,n){"use strict";var r=n(938);n.o(r,"InteractionTypeId")&&n.d(e,"InteractionTypeId",(function(){return r.InteractionTypeId}));var o=n(941);n.o(o,"InteractionTypeId")&&n.d(e,"InteractionTypeId",(function(){return o.InteractionTypeId}));var i=n(947);n.o(i,"InteractionTypeId")&&n.d(e,"InteractionTypeId",(function(){return i.InteractionTypeId}));var a=n(953);n.o(a,"InteractionTypeId")&&n.d(e,"InteractionTypeId",(function(){return a.InteractionTypeId}));var c=n(954);n.o(c,"InteractionTypeId")&&n.d(e,"InteractionTypeId",(function(){return c.InteractionTypeId}));var u=n(955);n.o(u,"InteractionTypeId")&&n.d(e,"InteractionTypeId",(function(){return u.InteractionTypeId}));var l=n(956);n.o(l,"InteractionTypeId")&&n.d(e,"InteractionTypeId",(function(){return l.InteractionTypeId}));var s=n(957);n.o(s,"InteractionTypeId")&&n.d(e,"InteractionTypeId",(function(){return s.InteractionTypeId}));var f=n(958);n.o(f,"InteractionTypeId")&&n.d(e,"InteractionTypeId",(function(){return f.InteractionTypeId}));var p=n(959);n.o(p,"InteractionTypeId")&&n.d(e,"InteractionTypeId",(function(){return p.InteractionTypeId}));n(960);var y=n(961);n.o(y,"InteractionTypeId")&&n.d(e,"InteractionTypeId",(function(){return y.InteractionTypeId}));var d=n(962);n.o(d,"InteractionTypeId")&&n.d(e,"InteractionTypeId",(function(){return d.InteractionTypeId}));var h=n(963);n.o(h,"InteractionTypeId")&&n.d(e,"InteractionTypeId",(function(){return h.InteractionTypeId}));var v=n(964);n.o(v,"InteractionTypeId")&&n.d(e,"InteractionTypeId",(function(){return v.InteractionTypeId}));var b=n(882);n.o(b,"InteractionTypeId")&&n.d(e,"InteractionTypeId",(function(){return b.InteractionTypeId}));var m=n(965);n.o(m,"InteractionTypeId")&&n.d(e,"InteractionTypeId",(function(){return m.InteractionTypeId}));var g=n(966);n.o(g,"InteractionTypeId")&&n.d(e,"InteractionTypeId",(function(){return g.InteractionTypeId}));var w=n(967);n.o(w,"InteractionTypeId")&&n.d(e,"InteractionTypeId",(function(){return w.InteractionTypeId}));var C=n(968);n.o(C,"InteractionTypeId")&&n.d(e,"InteractionTypeId",(function(){return C.InteractionTypeId}));var O=n(969);n.o(O,"InteractionTypeId")&&n.d(e,"InteractionTypeId",(function(){return O.InteractionTypeId}));var I=n(970);n.o(I,"InteractionTypeId")&&n.d(e,"InteractionTypeId",(function(){return I.InteractionTypeId}));var T=n(883);n.o(T,"InteractionTypeId")&&n.d(e,"InteractionTypeId",(function(){return T.InteractionTypeId}));var S=n(971);n.o(S,"InteractionTypeId")&&n.d(e,"InteractionTypeId",(function(){return S.InteractionTypeId})),n.o(T,"InteractionTypeId")&&n.d(e,"InteractionTypeId",(function(){return T.InteractionTypeId}));var _=n(972);n.o(_,"InteractionTypeId")&&n.d(e,"InteractionTypeId",(function(){return _.InteractionTypeId}));var k=n(973);n.o(k,"InteractionTypeId")&&n.d(e,"InteractionTypeId",(function(){return k.InteractionTypeId}));var j=n(974);n.o(j,"InteractionTypeId")&&n.d(e,"InteractionTypeId",(function(){return j.InteractionTypeId}));var E=n(975);n.o(E,"InteractionTypeId")&&n.d(e,"InteractionTypeId",(function(){return E.InteractionTypeId}));var P=n(976);n.o(P,"InteractionTypeId")&&n.d(e,"InteractionTypeId",(function(){return P.InteractionTypeId}));var R=n(884);n.o(R,"InteractionTypeId")&&n.d(e,"InteractionTypeId",(function(){return R.InteractionTypeId}));n(977);var x=n(978);n.o(x,"InteractionTypeId")&&n.d(e,"InteractionTypeId",(function(){return x.InteractionTypeId}));var L=n(979);n.o(L,"InteractionTypeId")&&n.d(e,"InteractionTypeId",(function(){return L.InteractionTypeId}));var A=n(980);n.o(A,"InteractionTypeId")&&n.d(e,"InteractionTypeId",(function(){return A.InteractionTypeId}));var B=n(981);n.o(B,"InteractionTypeId")&&n.d(e,"InteractionTypeId",(function(){return B.InteractionTypeId}));var N=n(982);n.o(N,"InteractionTypeId")&&n.d(e,"InteractionTypeId",(function(){return N.InteractionTypeId}));var M=n(983);n.o(M,"InteractionTypeId")&&n.d(e,"InteractionTypeId",(function(){return M.InteractionTypeId}));var U=n(984);n.o(U,"InteractionTypeId")&&n.d(e,"InteractionTypeId",(function(){return U.InteractionTypeId}));var D=n(985);n.o(D,"InteractionTypeId")&&n.d(e,"InteractionTypeId",(function(){return D.InteractionTypeId}));var F=n(986);n.o(F,"InteractionTypeId")&&n.d(e,"InteractionTypeId",(function(){return F.InteractionTypeId}));var z=n(987);n.o(z,"InteractionTypeId")&&n.d(e,"InteractionTypeId",(function(){return z.InteractionTypeId}));var V=n(988);n.o(V,"InteractionTypeId")&&n.d(e,"InteractionTypeId",(function(){return V.InteractionTypeId}));var H=n(989);n.o(H,"InteractionTypeId")&&n.d(e,"InteractionTypeId",(function(){return H.InteractionTypeId}));var W=n(990);n.o(W,"InteractionTypeId")&&n.d(e,"InteractionTypeId",(function(){return W.InteractionTypeId}));var q=n(991);n.o(q,"InteractionTypeId")&&n.d(e,"InteractionTypeId",(function(){return q.InteractionTypeId}));var G=n(992);n.o(G,"InteractionTypeId")&&n.d(e,"InteractionTypeId",(function(){return G.InteractionTypeId}));var Q=n(993);n.o(Q,"InteractionTypeId")&&n.d(e,"InteractionTypeId",(function(){return Q.InteractionTypeId}));var K=n(994);n.o(K,"InteractionTypeId")&&n.d(e,"InteractionTypeId",(function(){return K.InteractionTypeId}));var Z=n(995);n.o(Z,"InteractionTypeId")&&n.d(e,"InteractionTypeId",(function(){return Z.InteractionTypeId})),n.o(R,"InteractionTypeId")&&n.d(e,"InteractionTypeId",(function(){return R.InteractionTypeId}));var $=n(996);n.o($,"InteractionTypeId")&&n.d(e,"InteractionTypeId",(function(){return $.InteractionTypeId}));var X=n(997);n.o(X,"InteractionTypeId")&&n.d(e,"InteractionTypeId",(function(){return X.InteractionTypeId}));var Y=n(998);n.o(Y,"InteractionTypeId")&&n.d(e,"InteractionTypeId",(function(){return Y.InteractionTypeId}));var J=n(999);n.o(J,"InteractionTypeId")&&n.d(e,"InteractionTypeId",(function(){return J.InteractionTypeId})),n.o(b,"InteractionTypeId")&&n.d(e,"InteractionTypeId",(function(){return b.InteractionTypeId}));var tt=n(1e3);n.o(tt,"InteractionTypeId")&&n.d(e,"InteractionTypeId",(function(){return tt.InteractionTypeId}));var et=n(1001);n.o(et,"InteractionTypeId")&&n.d(e,"InteractionTypeId",(function(){return et.InteractionTypeId}));var nt=n(1002);n.o(nt,"InteractionTypeId")&&n.d(e,"InteractionTypeId",(function(){return nt.InteractionTypeId}));var rt=n(1003);n.o(rt,"InteractionTypeId")&&n.d(e,"InteractionTypeId",(function(){return rt.InteractionTypeId}));var ot=n(1004);n.o(ot,"InteractionTypeId")&&n.d(e,"InteractionTypeId",(function(){return ot.InteractionTypeId}));var it=n(1005);n.o(it,"InteractionTypeId")&&n.d(e,"InteractionTypeId",(function(){return it.InteractionTypeId}));var at=n(1006);n.o(at,"InteractionTypeId")&&n.d(e,"InteractionTypeId",(function(){return at.InteractionTypeId}));var ct=n(1007);n.o(ct,"InteractionTypeId")&&n.d(e,"InteractionTypeId",(function(){return ct.InteractionTypeId}));var ut=n(1008);n.o(ut,"InteractionTypeId")&&n.d(e,"InteractionTypeId",(function(){return ut.InteractionTypeId}));var lt=n(1009);n.o(lt,"InteractionTypeId")&&n.d(e,"InteractionTypeId",(function(){return lt.InteractionTypeId}));var st=n(1010);n.o(st,"InteractionTypeId")&&n.d(e,"InteractionTypeId",(function(){return st.InteractionTypeId}));var ft=n(1011);n.o(ft,"InteractionTypeId")&&n.d(e,"InteractionTypeId",(function(){return ft.InteractionTypeId}));var pt=n(1012);n.o(pt,"InteractionTypeId")&&n.d(e,"InteractionTypeId",(function(){return pt.InteractionTypeId}));var yt=n(1013);n.o(yt,"InteractionTypeId")&&n.d(e,"InteractionTypeId",(function(){return yt.InteractionTypeId}))},function(t,e,n){"use strict";var r=n(939);n.o(r,"InteractionTypeId")&&n.d(e,"InteractionTypeId",(function(){return r.InteractionTypeId}));var o=n(940);n.o(o,"InteractionTypeId")&&n.d(e,"InteractionTypeId",(function(){return o.InteractionTypeId}))},function(t,e){},function(t,e){},function(t,e,n){"use strict";var r=n(942);n.o(r,"InteractionTypeId")&&n.d(e,"InteractionTypeId",(function(){return r.InteractionTypeId}));var o=n(943);n.o(o,"InteractionTypeId")&&n.d(e,"InteractionTypeId",(function(){return o.InteractionTypeId}));var i=n(944);n.d(e,"InteractionTypeId",(function(){return i.a}));n(945),n(946)},function(t,e){},function(t,e){},function(t,e,n){"use strict";var r;n.d(e,"a",(function(){return r})),function(t){t[t.MultipleChoice=1]="MultipleChoice",t[t.ShortAnswer=2]="ShortAnswer",t[t.TrueOrFalse=3]="TrueOrFalse",t[t.Annotation=4]="Annotation",t[t.Image=5]="Image",t[t.MissingWord=6]="MissingWord"}(r||(r={}))},function(t,e){},function(t,e){},function(t,e,n){"use strict";var r=n(948);n.o(r,"InteractionTypeId")&&n.d(e,"InteractionTypeId",(function(){return r.InteractionTypeId}));var o=n(949);n.o(o,"InteractionTypeId")&&n.d(e,"InteractionTypeId",(function(){return o.InteractionTypeId}));var i=n(950);n.o(i,"InteractionTypeId")&&n.d(e,"InteractionTypeId",(function(){return i.InteractionTypeId}));var a=n(951);n.o(a,"InteractionTypeId")&&n.d(e,"InteractionTypeId",(function(){return a.InteractionTypeId}));var c=n(952);n.o(c,"InteractionTypeId")&&n.d(e,"InteractionTypeId",(function(){return c.InteractionTypeId}))},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e,n){"use strict";var r;!function(t){t.Pink="colour:0",t.Orange="colour:1",t.Green="colour:2",t.Blue="colour:3",t.Purple="colour:4",t.Indigo="colour:5"}(r||(r={}))},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e,n){"use strict";var r;!function(t){t[t.Row=0]="Row",t[t.LargeRow=1]="LargeRow",t[t.Hero=2]="Hero",t[t.ResourcesTile=3]="ResourcesTile"}(r||(r={}))},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e,n){"use strict";var r=n(1015);n.o(r,"InteractionTypeId")&&n.d(e,"InteractionTypeId",(function(){return r.InteractionTypeId}))},function(t,e){},function(t,e,n){"use strict";var r=n(1017);n.o(r,"InteractionTypeId")&&n.d(e,"InteractionTypeId",(function(){return r.InteractionTypeId}));var o=n(1018);n.o(o,"InteractionTypeId")&&n.d(e,"InteractionTypeId",(function(){return o.InteractionTypeId}));var i=n(1019);n.o(i,"InteractionTypeId")&&n.d(e,"InteractionTypeId",(function(){return i.InteractionTypeId}));var a=n(1020);n.o(a,"InteractionTypeId")&&n.d(e,"InteractionTypeId",(function(){return a.InteractionTypeId}));var c=n(1021);n.o(c,"InteractionTypeId")&&n.d(e,"InteractionTypeId",(function(){return c.InteractionTypeId}));var u=n(1022);n.o(u,"InteractionTypeId")&&n.d(e,"InteractionTypeId",(function(){return u.InteractionTypeId}));var l=n(1023);n.o(l,"InteractionTypeId")&&n.d(e,"InteractionTypeId",(function(){return l.InteractionTypeId}));var s=n(1024);n.o(s,"InteractionTypeId")&&n.d(e,"InteractionTypeId",(function(){return s.InteractionTypeId}));var f=n(1025);n.o(f,"InteractionTypeId")&&n.d(e,"InteractionTypeId",(function(){return f.InteractionTypeId}));var p=n(1026);n.o(p,"InteractionTypeId")&&n.d(e,"InteractionTypeId",(function(){return p.InteractionTypeId}));var y=n(1027);n.o(y,"InteractionTypeId")&&n.d(e,"InteractionTypeId",(function(){return y.InteractionTypeId}));n(1028)},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e,n){"use strict"},function(t,e,n){"use strict";var r=n(1030);n.o(r,"InteractionTypeId")&&n.d(e,"InteractionTypeId",(function(){return r.InteractionTypeId}));var o=n(1031);n.o(o,"InteractionTypeId")&&n.d(e,"InteractionTypeId",(function(){return o.InteractionTypeId}))},function(t,e){},function(t,e){},function(t,e,n){"use strict";var r=n(1033);n.o(r,"InteractionTypeId")&&n.d(e,"InteractionTypeId",(function(){return r.InteractionTypeId}));var o=n(1034);n.o(o,"InteractionTypeId")&&n.d(e,"InteractionTypeId",(function(){return o.InteractionTypeId}));var i=n(1035);n.o(i,"InteractionTypeId")&&n.d(e,"InteractionTypeId",(function(){return i.InteractionTypeId}));var a=n(1036);n.o(a,"InteractionTypeId")&&n.d(e,"InteractionTypeId",(function(){return a.InteractionTypeId}));var c=n(1037);n.o(c,"InteractionTypeId")&&n.d(e,"InteractionTypeId",(function(){return c.InteractionTypeId}));var u=n(1038);n.o(u,"InteractionTypeId")&&n.d(e,"InteractionTypeId",(function(){return u.InteractionTypeId}));var l=n(1039);n.o(l,"InteractionTypeId")&&n.d(e,"InteractionTypeId",(function(){return l.InteractionTypeId}))},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e,n){t.exports={table:"_3XPjZ",header:"_1hiMB"}},function(t,e,n){"use strict";n.d(e,"b",(function(){return b})),n.d(e,"a",(function(){return m}));var r=n(0),o=n.n(r),i=n(1141),a=n.n(i),c=n(1069),u=n(1065),l=n(1119),s=n.n(l);function f(t){return function(t){if(Array.isArray(t))return p(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return p(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return p(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function p(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var y=a.a.scale(["#daf07d","#08bd1a"]),d=[0,.01,.25,.5,.75,1];function h(t,e){return t?y(t/e).hex():"#f1f1f1"}function v(t,e){for(var n=[],r=0;r<t.length;r++){var o=r>0&&t[r-1],i=t[r],a=r<t.length-1&&t[r+1];i===o&&i===a||n.push("".concat(h(i,e)," ").concat(100/t.length*r,"%"))}return"linear-gradient(to right, ".concat(n.join(","),")")}function b(){var t=Math.max.apply(Math,d),e=100/d.length;return o.a.createElement("div",{className:"d-flex justify-content-between w-100"},o.a.createElement(c.a,{namespace:"shared.engagementHeatMap",phrase:"less"}),o.a.createElement("div",{className:"d-flex mx-1 flex-grow-1 ".concat(s.a.legend)},d.map((function(n,r){return o.a.createElement("div",{key:r,style:{width:"".concat(e,"%"),backgroundColor:h(n,t)}})}))),o.a.createElement(c.a,{namespace:"shared.engagementHeatMap",phrase:"more"}))}function m(t){var e,n,r=Object(u.a)(t.engagement),i=null!==(e=t.max)&&void 0!==e?e:Math.max.apply(Math,f(r));return o.a.createElement("div",{className:"border rounded ".concat(s.a.heatMap," ").concat(null!==(n=t.className)&&void 0!==n?n:""),style:{background:v(r,i)}})}},function(t,e,n){t.exports={left:"_789pr",right:"_1P8qt",button:"_24q_F",hoverText:"p-vNG",chevron:"_3M27X",gradientLeft:"_3fkiw",gradientRight:"_2RDDy",extendedClickableAreaRight:"_13dgy",extendedClickableAreaLeft:"_37LtK",videoTopPos:"_1XTRO",topPos:"_3_p_J"}},function(t,e,n){t.exports={sortIndicator:"_2fe85",scrollContainer:"_1CRya"}},function(t,e,n){"use strict"},function(t,e,n){"use strict";var r=n(0),o=n.n(r),i=n(893),a=n(1056);function c(t){if(t)return(t=function(t){if(t)return t.replace(/<a.*?>/g,"").replace("</a>","")}(t=function(t){if(t)return t.replace(/<p>/g,"").replace(/<\/p>/g,"<br>")}(t=function(t,e){if(t&&e)return e.forEach((function(e){t=t.replace("<"+e+">","").replace("</"+e+">","")})),t}(t,["b","i","u","ul","li","old"])))).split("<br>")[0]||"Annotation"}function u(t){var e=a.a.getTypeInfo(t.interaction.typeId),n=e.name,r=e.bgClassName,u=e.Svg,l=t.questionNumber?"".concat(t.questionNumber,". "):"",s="interaction-type-icon ".concat(r);return t.smallIcon&&(s+=" sm"),(t.showQuestion||t.showTypeName)&&(s+=t.smallIcon?" mr-1":" mr-2"),t.iconClassName&&(s+=" ".concat(t.iconClassName)),o.a.createElement(o.a.Fragment,null,!!t.showIcon&&o.a.createElement("span",{className:s},o.a.createElement(u,null)),!!t.showTypeName&&o.a.createElement("span",{className:t.typeNameClassName},o.a.createElement("strong",null,l,n)),!!t.showQuestion&&o.a.createElement("span",{className:t.questionClassName},t.interaction.typeId===i.InteractionTypeId.Annotation?o.a.createElement("span",{dangerouslySetInnerHTML:{__html:c(t.interaction.data.annotation)}}):t.interaction.name))}n.d(e,"a",(function(){return u})),u.defaultProps={showIcon:!0,showQuestion:!0}},function(t,e,n){"use strict";var r=n(3),o=n(8),i=n(0),a=n.n(i);function c(){return a.a.createElement("svg",{viewBox:"0 0 24 24"},a.a.createElement("g",{transform:"translate(1.000000, 1.000000)"},a.a.createElement("g",{transform:"translate(5.000000, 3.000000)"},a.a.createElement("path",{d:"M5.129,4.52970994e-14 C5.80434375,4.52970994e-14 6.35378125,0.5494375 6.35378125,1.22478125 L6.35378125,1.22478125 L6.35378125,4.12053125 C6.35378125,4.795875 5.80434375,5.3453125 5.129,5.3453125 L5.129,5.3453125 L5.01765625,5.3453125 L5.01765625,5.7625625 C5.14371875,5.7230625 5.2778125,5.70175 5.4166875,5.70175 C5.8579375,5.70175 6.24996875,5.9166875 6.4935,6.24740625 C6.6880625,6.13675 6.9129375,6.0735 7.15228125,6.0735 C7.61575,6.0735 8.024875,6.31059375 8.26471875,6.6699375 C8.450875,6.57140625 8.6629375,6.51559375 8.88784375,6.51559375 C9.6248125,6.51559375 10.2244688,7.11515625 10.2244688,7.85209375 L10.2244688,7.85209375 L10.2239688,11.0194063 C10.22375,12.719125 9.73003125,14.3683438 8.79625,15.7887188 C8.7095625,15.9205625 8.562375,15.9999688 8.4045625,15.9999688 L8.4045625,15.9999688 L3.1323125,15.9999688 C3.0124375,15.9999688 2.897125,15.9540625 2.8100625,15.8716563 C2.80745313,15.8691864 2.80274841,15.8647056 2.79608533,15.8582606 L2.73370254,15.7963915 C2.38498908,15.4434944 0.983540179,13.9211451 0.6698125,11.95725 L0.6698125,11.95725 L0.0538125,9.3209375 C-0.03209375,8.95328125 0.043625,8.5848125 0.261625,8.3100625 C0.46915625,8.04846875 0.78865625,7.89309375 1.14465625,7.8788125 C1.47575,7.8150625 1.81340625,7.8773125 2.10134375,8.0561875 C2.19071875,8.1116875 2.272125,8.17646875 2.34459375,8.24915625 L2.34459375,8.24915625 L2.34459375,5.34534375 L2.23325,5.34534375 C1.55790625,5.34534375 1.00846875,4.79590625 1.00846875,4.1205625 L1.00846875,4.1205625 L1.00846875,1.22478125 C1.00846875,0.5494375 1.55790625,4.52970994e-14 2.23325,4.52970994e-14 L2.23325,4.52970994e-14 Z M3.6810625,3.4381875 C3.46103125,3.4381875 3.282,3.61721875 3.282,3.83725 L3.282,3.83725 L3.282,11.2870938 C3.282,11.4215625 3.22428125,11.5495625 3.12346875,11.6385313 C3.02265625,11.7275 2.88853125,11.7689063 2.7550625,11.7522188 L2.7550625,11.7522188 L2.7175,11.7475313 C2.5228125,11.7231875 2.36390625,11.580125 2.31925,11.3890625 L2.31925,11.3890625 L1.78459375,9.10071875 C1.76034375,8.9969375 1.69715625,8.9088125 1.60659375,8.8525625 C1.51603125,8.7963125 1.407,8.78928125 1.30065625,8.79571875 C1.2585,8.79828125 1.23959375,8.8036875 1.194,8.80803125 C1.10340625,8.81665625 1.035625,8.84275 0.996,8.89271875 C0.956375,8.9426875 0.94596875,9.019 0.96665625,9.107625 L0.96665625,9.107625 L1.58653125,11.7605625 C1.5891875,11.7719063 1.59140625,11.7833438 1.59321875,11.794875 C1.83815625,13.3630313 2.95146875,14.6606563 3.32925,15.0625 L3.32925,15.0625 L8.1469375,15.0625 C8.893,13.8445 9.28625,12.4519688 9.2864375,11.0193125 L9.2864375,11.0193125 L9.2869375,7.85203125 C9.2869375,7.63209375 9.10790625,7.4530625 8.887875,7.4530625 C8.66784375,7.4530625 8.4888125,7.63209375 8.4888125,7.852125 L8.4888125,7.852125 L8.4888125,8.61359375 C8.4888125,8.87246875 8.2789375,9.08234375 8.0200625,9.08234375 C7.7611875,9.08234375 7.5513125,8.87246875 7.5513125,8.61359375 L7.5513125,8.61359375 L7.5513125,7.4100625 C7.5513125,7.19003125 7.3723125,7.011 7.15228125,7.011 C6.93225,7.011 6.75321875,7.19003125 6.75321875,7.4100625 L6.75321875,7.4100625 L6.75321875,8.28625 C6.75321875,8.545125 6.54334375,8.755 6.28446875,8.755 C6.02559375,8.755 5.81571875,8.545125 5.81571875,8.28625 L5.81571875,8.28625 L5.81571875,7.0383125 C5.81571875,6.81828125 5.6366875,6.63928125 5.41665625,6.63928125 C5.196625,6.63928125 5.017625,6.81828125 5.017625,7.0383125 L5.017625,7.0383125 L5.017625,8.232875 C5.017625,8.49175 4.80775,8.701625 4.548875,8.701625 C4.29,8.701625 4.080125,8.49175 4.080125,8.232875 L4.080125,8.232875 L4.080125,3.83725 C4.080125,3.61721875 3.90109375,3.4381875 3.6810625,3.4381875 Z M11.131,-1.59872116e-14 C11.8064063,-1.59872116e-14 12.3558125,0.5494375 12.3558125,1.22478125 L12.3558125,1.22478125 L12.3558125,4.1205625 C12.3558125,4.79590625 11.806375,5.34534375 11.131,5.34534375 L11.131,5.34534375 L8.23525,5.34534375 C7.55990625,5.34534375 7.01046875,4.79590625 7.01046875,4.1205625 L7.01046875,4.1205625 L7.01046875,1.22478125 C7.01046875,0.5494375 7.55990625,-1.59872116e-14 8.23525,-1.59872116e-14 L8.23525,-1.59872116e-14 Z M11.1310313,0.9375 L8.23528125,0.9375 C8.076875,0.9375 7.948,1.066375 7.948,1.22478125 L7.948,1.22478125 L7.948,4.1205625 C7.948,4.27896875 8.076875,4.40784375 8.23528125,4.40784375 L8.23528125,4.40784375 L11.1310313,4.40784375 C11.2894375,4.40784375 11.4183438,4.27896875 11.4183438,4.1205625 L11.4183438,4.1205625 L11.4183438,1.22478125 C11.4183438,1.066375 11.2894375,0.9375 11.1310313,0.9375 L11.1310313,0.9375 Z M5.129,0.9375 L2.23325,0.9375 C2.07484375,0.9375 1.94596875,1.066375 1.94596875,1.22478125 L1.94596875,1.22478125 L1.94596875,4.1205625 C1.94596875,4.27896875 2.07484375,4.40784375 2.2331875,4.40784375 L2.2331875,4.40784375 L2.34453125,4.40784375 L2.34453125,3.83721875 C2.34453125,3.10025 2.944125,2.50065625 3.68109375,2.50065625 C4.4180625,2.50065625 5.01765625,3.10025 5.01765625,3.83721875 L5.01765625,3.83721875 L5.01765625,4.40784375 L5.129,4.40784375 C5.28740625,4.40784375 5.41628125,4.27896875 5.41628125,4.1205625 L5.41628125,4.1205625 L5.41628125,1.22478125 C5.41628125,1.066375 5.28740625,0.9375 5.129,0.9375 L5.129,0.9375 Z"}))))}function u(){return a.a.createElement("svg",{viewBox:"0 0 24 24"},a.a.createElement("g",{transform:"translate(1.000000, 1.000000)"},a.a.createElement("path",{d:"M16.5547082,3.66666667 C17.0307547,3.66666667 17.4166667,4.10561087 17.4166667,4.65176211 L17.4166667,17.3482379 C17.4166667,17.8922911 17.0325905,18.3333333 16.5547082,18.3333333 L5.44529184,18.3333333 C4.9692453,18.3333333 4.58333333,17.8943891 4.58333333,17.3482379 L4.58333333,4.65176211 C4.58333333,4.10770892 4.96740951,3.66666667 5.44529184,3.66666667 L16.5547082,3.66666667 Z M6.64149485,4.58362946 L5.39188119,4.58333333 L5.39188119,4.58333333 L5.39140886,4.63124366 C5.39133174,4.64701901 5.39125542,4.66659213 5.39117991,4.68981696 L5.39052172,4.99349248 C5.39045096,5.0373129 5.39038099,5.08434682 5.39031181,5.13444817 L5.38951907,5.87355262 C5.38945612,5.94585631 5.38939393,6.02064317 5.38933252,6.09776711 L5.38846857,7.41164942 C5.38841476,7.50849255 5.38836171,7.60694243 5.3883094,7.706853 L5.38744819,9.63144592 C5.38740476,9.7436262 5.38736207,9.85639075 5.3873201,9.96959351 L5.38636125,13.0260679 C5.38633211,13.1353268 5.38630366,13.2437094 5.38627591,13.3510694 L5.38541667,17.4092786 L5.38541667,17.4092786 C5.38541667,17.4094727 5.40139773,17.4096625 5.43215374,17.4098483 L5.66621602,17.410657 C5.70239956,17.4107438 5.74182455,17.4108296 5.78434021,17.4109144 L6.24635879,17.4116506 C6.30606164,17.4117294 6.36840286,17.4118072 6.43323171,17.411884 L7.07978636,17.412549 C7.15818403,17.4126199 7.23861702,17.4126899 7.32093458,17.4127589 L8.38955516,17.4135407 C8.48453695,17.413602 8.58080025,17.4136624 8.67819428,17.4137218 L10.2050643,17.4145426 C10.3099966,17.4145926 10.4153058,17.4146418 10.5208411,17.41469 L12.7186143,17.4155682 C12.8199282,17.4156037 12.9204129,17.4156383 13.0199177,17.4156721 L16.5962838,17.4166643 C16.6041235,17.4166659 16.6081188,17.4166667 16.6081188,17.4166667 L16.6083574,17.404543 L16.6083574,17.404543 L16.6092636,17.1281822 C16.609336,17.0909349 16.6094075,17.0503279 16.6094783,17.0065075 L16.6102897,16.3357629 C16.6103542,16.2685716 16.610418,16.1987511 16.6104809,16.1264474 L16.6111995,15.1489598 C16.6112564,15.059128 16.6113124,14.9673972 16.6113678,14.8739137 L16.6122825,13.0334559 C16.6123288,12.924197 16.6123745,12.8140617 16.6124193,12.703196 L16.6132553,10.3177583 C16.6132901,10.2038252 16.6133242,10.0901843 16.6133575,9.97698153 L16.6143069,6.10515513 C16.6143225,6.02803119 16.6143373,5.95324434 16.6143515,5.88094064 L16.6145833,4.59072136 L16.6145833,4.59072136 L16.6027483,4.59043343 L16.6027483,4.59043343 L16.5107818,4.58987601 C16.4881671,4.58978515 16.4620094,4.5896953 16.4324595,4.58960647 L16.0789915,4.58883422 C16.0304453,4.58875142 15.9789591,4.58866963 15.9246838,4.58858883 L15.1491499,4.58766678 C15.0749737,4.58759388 14.9986113,4.58752196 14.9202136,4.58745101 L14.1637515,4.58683864 C14.0744988,4.5867735 13.983663,4.58670932 13.891395,4.58664609 L12.4188002,4.58576887 C12.3159787,4.5857151 12.2124787,4.58566226 12.108451,4.58561036 L10.2115288,4.58477559 C10.1065966,4.58473469 10.0020412,4.58469469 9.89801354,4.5846556 L6.8573146,4.58368638 C6.78313834,4.58366655 6.71114817,4.58364758 6.64149485,4.58362946 Z M9.80280172,11.9166667 C10.0210177,11.9166667 10.1979167,12.1218695 10.1979167,12.375 C10.1979167,12.6281305 10.0210177,12.8333333 9.80280172,12.8333333 L9.80280172,12.8333333 L7.38469828,12.8333333 C7.16648232,12.8333333 6.98958333,12.6281305 6.98958333,12.375 C6.98958333,12.1218695 7.16648232,11.9166667 7.38469828,11.9166667 L7.38469828,11.9166667 Z M14.5678761,9.16666667 C14.8122845,9.16666667 15.0104167,9.37186949 15.0104167,9.625 C15.0104167,9.87813051 14.8122845,10.0833333 14.5678761,10.0833333 L14.5678761,10.0833333 L7.4321239,10.0833333 C7.18771549,10.0833333 6.98958333,9.87813051 6.98958333,9.625 C6.98958333,9.37186949 7.18771549,9.16666667 7.4321239,9.16666667 L7.4321239,9.16666667 Z M14.5678761,6.41666667 C14.8122845,6.41666667 15.0104167,6.62186949 15.0104167,6.875 C15.0104167,7.12813051 14.8122845,7.33333333 14.5678761,7.33333333 L14.5678761,7.33333333 L7.4321239,7.33333333 C7.18771549,7.33333333 6.98958333,7.12813051 6.98958333,6.875 C6.98958333,6.62186949 7.18771549,6.41666667 7.4321239,6.41666667 L7.4321239,6.41666667 Z"})))}function l(){return a.a.createElement("svg",{viewBox:"0 0 24 24"},a.a.createElement("g",{transform:"translate(2.000000, 2.000000)"},a.a.createElement("g",{transform:"translate(3.500000, 2.000000)"},a.a.createElement("path",{d:"M10.78125,7.53125 C11.0285625,7.53125 11.2715937,7.59621875 11.4840312,7.71909375 C11.7963125,7.89971875 12.1875,7.6735625 12.1875,7.31334375 L12.1875,3.3125 C12.1875,3.053625 11.977625,2.84375 11.71875,2.84375 L8.38675,2.84375 C8.42015625,2.680125 8.4375,2.51184375 8.4375,2.34375 C8.4375,1.05140625 7.38609375,0 6.09375,0 C4.80140625,0 3.75,1.05140625 3.75,2.34375 C3.75,2.51184375 3.76734375,2.680125 3.80075,2.84375 L0.46875,2.84375 C0.209875,2.84375 0,3.053625 0,3.3125 L0,7.31334375 C0,7.674125 0.391625,7.899375 0.70346875,7.71909375 C0.91590625,7.59621875 1.1589375,7.53125 1.40625,7.53125 C2.18165625,7.53125 2.8125,8.16209375 2.8125,8.9375 C2.8125,9.71290625 2.18165625,10.34375 1.40625,10.34375 C1.1589375,10.34375 0.91590625,10.2787812 0.70346875,10.1559062 C0.3911875,9.9753125 0,10.2013437 0,10.5616563 L0,15.53125 C0,15.790125 0.209875,16 0.46875,16 L4.46959375,16 C4.8303125,16 5.05578125,15.608375 4.8753125,15.2965312 C4.7524375,15.0840937 4.6875,14.8410938 4.6875,14.59375 C4.6875,13.8183438 5.31834375,13.1875 6.09375,13.1875 C6.86915625,13.1875 7.5,13.8183438 7.5,14.59375 C7.5,14.8410938 7.4350625,15.0840937 7.31215625,15.2965312 C7.13146875,15.6087812 7.3576875,16 7.717875,16 L11.71875,16 C11.977625,16 12.1875,15.790125 12.1875,15.53125 L12.1875,10.5616563 C12.1875,10.2009375 11.7959375,9.97553125 11.4840312,10.1559063 C11.2715937,10.2787812 11.0285625,10.34375 10.78125,10.34375 C10.0058438,10.34375 9.375,9.71290625 9.375,8.9375 C9.375,8.16209375 10.0058438,7.53125 10.78125,7.53125 Z M10.78125,11.28125 C10.9393125,11.28125 11.096375,11.2652812 11.25,11.234 L11.25,15.0625 L8.39021875,15.0625 C8.42153125,14.9088438 8.4375,14.7518125 8.4375,14.59375 C8.4375,13.3014062 7.38609375,12.25 6.09375,12.25 C4.80140625,12.25 3.75,13.3014062 3.75,14.59375 C3.75,14.7518125 3.76596875,14.9088438 3.79728125,15.0625 L0.9375,15.0625 L0.9375,11.234 C1.091125,11.2652812 1.2481875,11.28125 1.40625,11.28125 C2.69859375,11.28125 3.75,10.2298438 3.75,8.9375 C3.75,7.64515625 2.69859375,6.59375 1.40625,6.59375 C1.2481875,6.59375 1.091125,6.60971875 0.9375,6.641 L0.9375,3.78125 L4.46959375,3.78125 C4.8303125,3.78125 5.05578125,3.389625 4.8753125,3.07778125 C4.75596875,2.87140625 4.6875,2.603875 4.6875,2.34375 C4.6875,1.56834375 5.31834375,0.9375 6.09375,0.9375 C6.86915625,0.9375 7.5,1.56834375 7.5,2.34375 C7.5,2.603875 7.43153125,2.87140625 7.31215625,3.07778125 C7.13146875,3.39003125 7.3576875,3.78125 7.717875,3.78125 L11.25,3.78125 L11.25,6.641 C11.096375,6.60971875 10.9393125,6.59375 10.78125,6.59375 C9.48890625,6.59375 8.4375,7.64515625 8.4375,8.9375 C8.4375,10.2298438 9.48890625,11.28125 10.78125,11.28125 Z"}))))}function s(){return a.a.createElement("svg",{viewBox:"0 0 24 24"},a.a.createElement("g",{transform:"translate(1.000000, 1.000000)"},a.a.createElement("path",{d:"M15.125,3.66666667 C16.8969136,3.66666667 18.3333333,5.10308643 18.3333333,6.875 L18.3333333,15.125 C18.3333333,16.8969136 16.8969136,18.3333333 15.125,18.3333333 L6.875,18.3333333 C5.10308643,18.3333333 3.66666667,16.8969136 3.66666667,15.125 L3.66666667,6.875 C3.66666667,5.10308643 5.10308643,3.66666667 6.875,3.66666667 L15.125,3.66666667 Z M15.125,4.58333333 L6.875,4.58333333 C5.60934745,4.58333333 4.58333333,5.60934745 4.58333333,6.875 L4.58333333,15.125 C4.58333333,16.3906526 5.60934745,17.4166667 6.875,17.4166667 L15.125,17.4166667 C16.3906526,17.4166667 17.4166667,16.3906526 17.4166667,15.125 L17.4166667,6.875 C17.4166667,5.60934745 16.3906526,4.58333333 15.125,4.58333333 Z M7.33333333,13.2916667 C7.83959435,13.2916667 8.25,13.7020723 8.25,14.2083333 C8.25,14.7145944 7.83959435,15.125 7.33333333,15.125 C6.82707231,15.125 6.41666667,14.7145944 6.41666667,14.2083333 C6.41666667,13.7020723 6.82707231,13.2916667 7.33333333,13.2916667 Z M15.0349223,13.75 C15.2880528,13.75 15.4932556,13.9552028 15.4932556,14.2083333 C15.4932556,14.4614638 15.2880528,14.6666667 15.0349223,14.6666667 L9.625,14.6666667 C9.37186949,14.6666667 9.16666667,14.4614638 9.16666667,14.2083333 C9.16666667,13.9552028 9.37186949,13.75 9.625,13.75 L15.0349223,13.75 Z M7.33333333,10.0833333 C7.83959435,10.0833333 8.25,10.493739 8.25,11 C8.25,11.506261 7.83959435,11.9166667 7.33333333,11.9166667 C6.82707231,11.9166667 6.41666667,11.506261 6.41666667,11 C6.41666667,10.493739 6.82707231,10.0833333 7.33333333,10.0833333 Z M15.125,10.5416667 C15.3781305,10.5416667 15.5833333,10.7468695 15.5833333,11 C15.5833333,11.2531305 15.3781305,11.4583333 15.125,11.4583333 L9.625,11.4583333 C9.37186949,11.4583333 9.16666667,11.2531305 9.16666667,11 C9.16666667,10.7468695 9.37186949,10.5416667 9.625,10.5416667 L15.125,10.5416667 Z M7.33333333,6.875 C7.83959435,6.875 8.25,7.28540565 8.25,7.79166667 C8.25,8.29792769 7.83959435,8.70833333 7.33333333,8.70833333 C6.82707231,8.70833333 6.41666667,8.29792769 6.41666667,7.79166667 C6.41666667,7.28540565 6.82707231,6.875 7.33333333,6.875 Z M15.125,7.33333333 C15.3781305,7.33333333 15.5833333,7.53853616 15.5833333,7.79166667 C15.5833333,8.04479718 15.3781305,8.25 15.125,8.25 L9.625,8.25 C9.37186949,8.25 9.16666667,8.04479718 9.16666667,7.79166667 C9.16666667,7.53853616 9.37186949,7.33333333 9.625,7.33333333 L15.125,7.33333333 Z"})))}function f(){return a.a.createElement("svg",{viewBox:"0 0 24 24"},a.a.createElement("path",{d:"M19,5 C19.5522847,5 20,5.44771525 20,6 L20,18 C20,18.5522847 19.5522847,19 19,19 L5,19 C4.44771525,19 4,18.5522847 4,18 L4,6 C4,5.44771525 4.44771525,5 5,5 L19,5 Z M19,6 L5,6 L5,18 L19,18 L19,6 Z M13.5270821,8.72788029 L17.419465,14.7278803 C17.5697525,14.9595444 17.5037838,15.2691774 17.2721197,15.419465 C17.0404556,15.5697525 16.7308226,15.5037838 16.580535,15.2721197 L13.0911139,9.89327406 L11.4091273,12.2874279 C11.2306031,12.5415408 10.866042,12.5731488 10.6464466,12.3535534 L10.0540971,11.7612039 L7.4,15.3 C7.23431458,15.5209139 6.9209139,15.5656854 6.7,15.4 C6.4790861,15.2343146 6.43431458,14.9209139 6.6,14.7 L9.6,10.7 C9.7825648,10.4565803 10.1383987,10.4312919 10.3535534,10.6464466 L10.9328729,11.2257661 L12.6984898,8.71257207 C12.9021272,8.42271292 13.3342903,8.43069712 13.5270821,8.72788029 Z M8,7.5 C8.82842712,7.5 9.5,8.17157288 9.5,9 C9.5,9.82842712 8.82842712,10.5 8,10.5 C7.17157288,10.5 6.5,9.82842712 6.5,9 C6.5,8.17157288 7.17157288,7.5 8,7.5 Z M8,8.5 C7.72385763,8.5 7.5,8.72385763 7.5,9 C7.5,9.27614237 7.72385763,9.5 8,9.5 C8.27614237,9.5 8.5,9.27614237 8.5,9 C8.5,8.72385763 8.27614237,8.5 8,8.5 Z"}))}function p(){return a.a.createElement("svg",{viewBox:"0 0 24 24"},a.a.createElement("g",{transform:"translate(1.000000, 1.000000)"},a.a.createElement("path",{d:"M15.0505278,14.68561 L15.4700891,14.1696106 C16.3000604,13.1488666 16.7599031,11.8782117 16.7599031,10.5341182 C16.7599031,7.34884269 14.1777271,4.76666667 10.9924516,4.76666667 C7.80717602,4.76666667 5.225,7.34884269 5.225,10.5341182 C5.225,13.7193938 7.80717602,16.3015698 10.9924516,16.3015698 C11.8841204,16.3015698 12.744766,16.0998293 13.5263257,15.7168631 L13.9796508,15.4947327 L15.7162646,16.2389957 L15.0505278,14.68561 Z M17.8106022,18.3333333 L14.0103444,16.7046514 C13.0994588,17.1509876 12.0752185,17.4015698 10.9924516,17.4015698 C7.1996628,17.4015698 4.125,14.326907 4.125,10.5341182 C4.125,6.74132946 7.1996628,3.66666667 10.9924516,3.66666667 C14.7852403,3.66666667 17.8599031,6.74132946 17.8599031,10.5341182 C17.8599031,12.175402 17.2841351,13.682208 16.3235621,14.8635731 L17.8106022,18.3333333 Z"})))}var y,d=n(893),h=n(26);function v(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}n.d(e,"a",(function(){return g}));var b=o.a.encloseNamespace("shared.interactionTypes"),m=(v(y={},d.InteractionTypeId.Annotation,(function(){return{name:b("annotationName"),bgClassName:"bg-pink",Svg:p,typeName:"annotation"}})),v(y,d.InteractionTypeId.Image,(function(){return{name:b("imageName"),bgClassName:"bg-orange",Svg:f,typeName:"image"}})),v(y,d.InteractionTypeId.MissingWord,(function(){return{name:b("missingWordName"),prompt:b("missingWordPrompt"),bgClassName:"bg-teal",Svg:l,typeName:"missing-word"}})),v(y,d.InteractionTypeId.MultipleChoice,(function(){return{name:b("multipleChoiceName"),prompt:b("multipleChoicePrompt"),bgClassName:"bg-blue",Svg:s,typeName:"multiple-choice"}})),v(y,d.InteractionTypeId.ShortAnswer,(function(){return{name:b("shortAnswerName"),prompt:b("shortAnswerPrompt"),bgClassName:"bg-green",Svg:u,typeName:"short-answer"}})),v(y,d.InteractionTypeId.TrueOrFalse,(function(){return{name:b("trueOrFalseName"),prompt:b("trueOrFalsePrompt"),bgClassName:"bg-purple",Svg:c,typeName:"true-or-false"}})),y),g={getTypeInfo:function(t){var e=m[t];if(e)return e();r.a.ErrorHelper.throw(new h.a("No type info defined for typeId: ".concat(t)))}}},function(t,e,n){"use strict";var r=n(0),o=n(3),i=n(126),a=n(177),c=n(127),u=n(8),l=n(84);function s(t){return(s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function f(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function p(t,e){return(p=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function y(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=h(t);if(e){var o=h(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return d(this,n)}}function d(t,e){return!e||"object"!==s(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function h(t){return(h=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var v="shared.privateResourceError",b=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&p(t,e)}(i,t);var e,n,r,o=y(i);function i(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i),o.call(this,u.a.getPhrase(v,"title"))}return e=i,(n=[{key:"name",get:function(){return"PrivateResourceError"}},{key:"heading",get:function(){return u.a.getPhrase(v,"heading")}},{key:"description",get:function(){return u.a.getPhrase(v,"description")}}])&&f(e.prototype,n),r&&f(e,r),i}(l.a);function m(t){return(m="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function g(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function w(t,e){return(w=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function C(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=I(t);if(e){var o=I(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return O(this,n)}}function O(t,e){return!e||"object"!==m(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function I(t){return(I=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var T=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&w(t,e)}(i,t);var e,n,r,o=C(i);function i(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i),o.call(this,u.a.getPhrase("shared.regionLockedResourceError","title"))}return e=i,(n=[{key:"name",get:function(){return"RegionLockedResourceError"}},{key:"heading",get:function(){return u.a.getPhrase("shared.regionLockedResourceError","heading")}},{key:"description",get:function(){return u.a.getPhrase("shared.regionLockedResourceError","description")}}])&&g(e.prototype,n),r&&g(e,r),i}(l.a),S={notFound:a.a,forbidden:{rating:b,yearLevel:b,region:T,privacy:b},badRequest:c.a};function _(t){var e,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=Object.assign(Object.assign({},S),n);if(t){var a=+(null===(e=null==t?void 0:t.toString())||void 0===e?void 0:e.substr(0,1));a!==i.b.ClientError&&a!==i.b.ServerError||(t!==i.a.NotFound?t!==i.a.Forbidden?o.a.ErrorHelper.throw(new r.badRequest):o.a.ErrorHelper.throw(new r.forbidden.privacy):o.a.ErrorHelper.throw(new r.notFound))}}var k=n(257);n.d(e,"a",(function(){return E}));var j={notFound:k.a};function E(t){var e,n;e=t,n=j,Object(r.useEffect)((function(){_(null==e?void 0:e.statusCode,n)}),[null==e?void 0:e.statusCode,n])}},,,,,function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(34),o=n(35);function i(){Object(r.a)(o.a.LEFT_NAV_STATE)}},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=["#FF9300","#38A2E8","#7A76E8","#B679C7","#F7847B","#D9584F","#FFCD52","#5DC786","#40BCC3","#40C2BB"];function o(t){return t.map((function(t,e){return Object.assign(Object.assign({},t),{color:r[e%r.length]})}))}},,function(t,e,n){"use strict";function r(t){return new Array(Math.ceil(t.videoDuration)).fill(null).map((function(e,n){return t.heatMap[n]||0}))}n.d(e,"a",(function(){return r}))},function(t,e,n){t.exports={playerContainer:"_1-TM0",playerPlaceholder:"_2Gd0W",heatMapContainer:"_2mepP",heatMap:"_3QIok",heatMapTimepointIndicator:"_3EouS",heatMapTimepointIndicatorVisible:"_1472A",partialLoadingContainer:"_1Z2fg"}},,,function(t,e,n){"use strict";n.d(e,"a",(function(){return u}));var r=n(0),o=n(8),i=n(30),a=n(173),c=r.createContext(""),u=r.memo((function(t){var e=t.phrase,n=t.namespace,i=t.options,u=r.useContext(c),l=n||u,s=a.a.escapeExpression(o.a.getPhrase(l,e,i));return r.createElement("span",{dangerouslySetInnerHTML:{__html:s}})}),(function(t,e){return t.namespace===e.namespace&&t.phrase===e.phrase&&i.a.isEqual(t.options,e.options)}))},function(t,e,n){"use strict";function r(t){return function(t){if(Array.isArray(t))return o(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return o(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return o(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}n.d(e,"a",(function(){return a}));var i={video:"thumbnail",clip:"video[thumbnail]",interactive:"video[thumbnail],thumbnail,clip[video[thumbnail]]"},a={video:function(t,e,n,r){return{url:"{gateway}/v1/objects/".concat(t),key:"video:".concat(t),success:e,error:n,always:r}},videoTypesById:function(t,e,n,o){t.sort();var a=t.map((function(t){return"id=".concat(t)})),c=Object.keys(i).map((function(t){return"query.".concat(t,"=").concat(i[t])}));return{url:"{gateway}/v1/objects?".concat([].concat(r(a),r(c)).join("&")),key:"video:types:".concat(t.join(",")),success:e,error:n,always:o}}}},,,,,,,,,function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(44),o={createViewKey:function(t,e,n){var o={mediaId:t.toString(),mediaIdType:e};return n&&(o.shareContextId=n),{url:"/api/player/create-view-key",key:"view:key:".concat(t,":").concat(e),type:r.a.POST,data:o}}}},function(t,e,n){"use strict";var r;n.d(e,"a",(function(){return r})),function(t){t.Share="share",t.MasterObject="masterobject"}(r||(r={}))},function(t){t.exports=JSON.parse('{"a":"0.0.18"}')},function(t,e,n){},function(t,e,n){},function(t,e,n){},function(t,e,n){},function(t,e,n){},function(t,e,n){},function(t,e,n){},function(t,e,n){},function(t,e,n){},function(t,e,n){},function(t,e,n){},function(t,e,n){},function(t,e,n){},function(t,e,n){},function(t,e,n){},function(t,e,n){},function(t,e,n){},function(t,e,n){},function(t,e,n){},function(t,e,n){},function(t,e,n){},function(t,e,n){},function(t,e,n){},function(t,e,n){},function(t,e,n){},function(t,e,n){},function(t,e,n){},function(t,e,n){},function(t,e,n){},function(t,e,n){},function(t){t.exports=JSON.parse('{"a":"1.0.34"}')},function(t,e,n){},function(t,e,n){},function(t,e,n){},function(t,e,n){},function(t,e,n){},function(t,e,n){},function(t,e,n){t.exports={heatMap:"_3eiuN",legend:"_2Ubvw"}},function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var r=n(0),o=n.n(r),i=n(8),a=n(1051),c=n(1066),u=n.n(c),l=i.a.encloseNamespace("shared.videoEngagementOverlay");function s(){return o.a.createElement("div",{className:"bg-white rounded d-flex flex-column justify-content-end p-2 ".concat(u.a.partialLoadingContainer)},o.a.createElement("div",{className:u.a.heatMapContainer},o.a.createElement("div",{className:"position-relative"},o.a.createElement(a.a,{engagement:{heatMap:[],videoDuration:0},className:u.a.heatMap}))),o.a.createElement("div",{className:"d-flex justify-content-between mt-2"},o.a.createElement("strong",null,l("engagement")),o.a.createElement("div",{className:"w-33"},o.a.createElement(a.b,null))))}},function(t,e,n){t.exports={heatMap:"_29m1b"}},function(t,e,n){"use strict";n.d(e,"a",(function(){return f}));var r=n(0),o=n(15),i=n(34),a=n(47),c=n(35),u=n(871);function l(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(t)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,c=t[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(t){o=!0,i=t}finally{try{r||null==c.return||c.return()}finally{if(o)throw i}}return n}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return s(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return s(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function f(t){var e=l(Object(i.a)(c.a.DATE_RANGE_QUERY_PARAMS),1)[0],n=o.a.useBasicFetch(a.a.currentUser()),s=o.a.useBasicFetch(!!n.data&&u.a.individualEngagement(t,e,n.data.id)),f=l(Object(i.a)(c.a.AUDIENCE_FILTER_SUGGESTIONS),2)[1];Object(r.useEffect)((function(){var t;s.data&&f("users",null===(t=s.data)||void 0===t?void 0:t.data.map((function(t){return t.userId})))}),[s.isFetching])}},,function(t,e,n){"use strict";var r=n(0),o=n.n(r),i=n(8),a=n(870),c=(n(1136),n(1081)),u="cv-persisttest",l=function(){try{return window.localStorage.setItem(u,"cv-player-storage-test"),window.localStorage.removeItem(u),!0}catch(t){return!1}},s=function(t){return window.localStorage.getItem(t)},f=function(t,e){window.localStorage.setItem(t,e)},p=function(t){window.localStorage.removeItem(t)};function y(t){return(y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function d(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function h(t,e){return(h=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function v(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=m(t);if(e){var o=m(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return b(this,n)}}function b(t,e){return!e||"object"!==y(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function m(t){return(m=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var g=a.a.getPlugin("plugin"),w="cvplayer-mute",C=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&h(t,e)}(i,t);var e,n,r,o=v(i);function i(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i),(e=o.call(this,t)).player.ready((function(){return e.initialize()})),e}return e=i,(n=[{key:"initialize",value:function(){var t=this;if(l()){this.saveVolumeState=this.saveVolumeState.bind(this),this.player.on("volumechange",this.saveVolumeState),this.one("dispose",(function(){t.player.off("volumechange",t.saveVolumeState)}));var e=s("cvplayer-volume"),n=s(w);e&&this.player.volume(+e),n&&this.player.muted("true"===n)}}},{key:"saveVolumeState",value:function(){f("cvplayer-volume",this.player.volume().toString()),f(w,this.player.muted().toString())}}])&&d(e.prototype,n),r&&d(e,r),i}(g);function O(t){return(O="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function I(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function T(t,e){return(T=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function S(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=j(t);if(e){var o=j(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return _(this,n)}}function _(t,e){return!e||"object"!==O(e)&&"function"!=typeof e?k(t):e}function k(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function j(t){return(j=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}a.a.registerPlugin("persistVolumePlugin",C);var E=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&T(t,e)}(i,t);var e,n,r,o=S(i);function i(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i),(e=o.call(this,t)).hasScreenOrientation()&&e.player.supportsFullScreen()?(e.onRotate=e.onRotate.bind(k(e)),e.onFullscreenChange=e.onFullscreenChange.bind(k(e)),e.player.ready((function(){return e.initialize()})),e):_(e)}return e=i,(n=[{key:"initialize",value:function(){var t=this;window.addEventListener("orientationchange",this.onRotate),this.hasScreenLock()&&this.player.on("fullscreenchange",this.onFullscreenChange),this.one("dispose",(function(){window.removeEventListener("orientationchange",t.onRotate),t.hasScreenLock()&&t.player.off("fullscreenchange",t.onFullscreenChange)}))}},{key:"onFullscreenChange",value:function(){!this.getAngle()&&this.player.isFullscreen()?window.screen.orientation.lock("portrait-primary"):window.screen.orientation.unlock()}},{key:"onRotate",value:function(){var t=this.getAngle();90===t||-90===t||270===t?this.player.requestFullscreen():this.player.isFullscreen()&&this.player.exitFullscreen()}},{key:"hasScreenOrientation",value:function(){var t,e;return"function"==typeof(null===(e=null===(t=window.screen)||void 0===t?void 0:t.orientation)||void 0===e?void 0:e.lock)}},{key:"hasScreenLock",value:function(){var t,e;return"function"==typeof(null===(e=null===(t=window.screen)||void 0===t?void 0:t.orientation)||void 0===e?void 0:e.lock)}},{key:"getAngle",value:function(){var t,e;return"number"==typeof(null===(e=null===(t=window.screen)||void 0===t?void 0:t.orientation)||void 0===e?void 0:e.angle)?window.screen.orientation.angle:0}}])&&I(e.prototype,n),r&&I(e,r),i}(a.a.getPlugin("plugin"));a.a.registerPlugin("fullscreenOnRotatePlugin",E);var P="\n <svg viewBox='0 0 434 71'>\n <g>\n <path fill='#FFFFFF' d='M114.44 56.57l3.5 3.5a32.87 32.87 0 0 1-25.16 11.26c-19.63 0-33.62-15.54-33.62-35.16C59.16 16.55 73.16 1 92.78 1a32.31 32.31 0 0 1 24.19 10.4l-3.6 3.3a27.32 27.32 0 0 0-20.59-8.74c-16.91 0-28.39 13.5-28.39 30.21s11.48 30.21 28.39 30.21a28.08 28.08 0 0 0 21.66-9.81zM126.64 1h4.55v70.22h-4.73L126.64 1zm17.3 10.6a3.7 3.7 0 1 1 0 7.4 3.7 3.7 0 0 1 0-7.4zm-2.41 15.07h4.81v44.56h-4.81V26.67zm48 33.15l3.33 3.15a21.8 21.8 0 0 1-17.31 8.61c-12.59 0-21.76-10-21.76-22.22 0-12.22 9.17-22.22 21.76-22.22a21.84 21.84 0 0 1 16.85 8l-3.43 3.06a17.15 17.15 0 0 0-13.42-6.3c-10.09 0-16.76 8.15-16.76 17.5s6.67 17.5 16.76 17.5a17.38 17.38 0 0 0 13.98-7.08zm14.99-9.33v20.74h-4.73V1.01h4.73v47.75l20.74-19.02h6.64l-21.56 19.84L234 71.23h-7.01l-22.47-20.74z'/>\n <path fill='#F8981D' d='M304.09 19.4a5.56 5.56 0 1 1 0-11.12 5.56 5.56 0 0 1 0 11.12zm-5.56 7.27h11.11v44.56h-11.11V26.67zm61.42 22.15c0 .81 0 2.42-.09 4h-31.75c.8 3.77 5.2 8.61 11.93 8.61a17.11 17.11 0 0 0 11.66-4.31l5.38 8.16a27.23 27.23 0 0 1-17 6.1c-12.92 0-22.88-9.87-22.88-22.34s9.06-22.33 21.35-22.33c11.62-.04 21.4 9.02 21.4 22.11zm-10.77-3.76c-.18-3.68-3.58-8.62-10.67-8.62-6.91 0-10.05 4.85-10.4 8.62h21.07zM385.92 71h-6.42l-19.64-44.37h13.97l9.16 23.98 9.72-23.98h8.31l9.63 23.98 9.16-23.98h13.97L414.24 71h-6.52l-10.85-23.7L385.92 71zm-120.22.35h-6L226.11 1.01h17.01l19.42 44.18 18.08-44.18h16.91L265.7 71.35zM0 1l41 35L0 71V1z'/>\n </g>\n </svg>\n";n(1082);function R(t){return(R="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function x(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function L(t,e){return(L=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function A(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=M(t);if(e){var o=M(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return B(this,n)}}function B(t,e){return!e||"object"!==R(e)&&"function"!=typeof e?N(t):e}function N(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function M(t){return(M=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var U=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&L(t,e)}(i,t);var e,n,r,o=A(i);function i(t,e){var n,r,a,c;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i),(n=o.call(this,t,e)).update=(r=n.update.bind(N(n)),a=1e3,c=window.performance.now(),function(){var t=window.performance.now();t-c>=a&&(r.apply(void 0,arguments),c=t)}),t.on("timeupdate",n.update),t.one("dispose",(function(){t.off("timeupdate",n.update),n.el_.removeEventListener("click",n.pause)})),n}return e=i,(n=[{key:"update",value:function(){var t=this.player_.currentTime();this.el_.href=this.options_.getExternalLink({currentTime:Math.round(t)})}},{key:"buildCSSClass",value:function(){return"cv-open-externally-button"}},{key:"createEl",value:function(){var t={innerHTML:P,className:this.buildCSSClass()},e={type:"button",href:this.options_.getExternalLink({currentTime:0}),target:"_blank"},n=a.a.dom.createEl("a",t,e);return this.createControlTextEl(n),n.addEventListener("click",this.pause.bind(this)),n}},{key:"pause",value:function(){this.player_.pause()}}])&&x(e.prototype,n),r&&x(e,r),i}(a.a.getComponent("Button"));function D(t){return(D="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function F(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function z(t,e){return(z=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function V(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=W(t);if(e){var o=W(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return H(this,n)}}function H(t,e){return!e||"object"!==D(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function W(t){return(W=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}U.prototype.controlText_="Open in ClickView",a.a.registerComponent("OpenExternallyButton",U);var q=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&z(t,e)}(i,t);var e,n,r,o=V(i);function i(t,e){var n;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i),(n=o.call(this,t,e)).options=e,t.ready((function(){return n.onReady()})),n}return e=i,(n=[{key:"onReady",value:function(){var t=this.player.getChild("collapserator"),e=t.getChild("customControlSpacer"),n=t.children_.indexOf(e);t.addChild("OpenExternallyButton",{getExternalLink:this.options.getExternalLink},n+1)}}])&&F(e.prototype,n),r&&F(e,r),i}(a.a.getPlugin("plugin"));a.a.registerPlugin("openExternallyPlugin",q);n(1083);function G(t){return(G="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Q(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function K(t,e,n){return(K="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=Y(t)););return t}(t,e);if(r){var o=Object.getOwnPropertyDescriptor(r,e);return o.get?o.get.call(n):o.value}})(t,e,n||t)}function Z(t,e){return(Z=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function $(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Y(t);if(e){var o=Y(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return X(this,n)}}function X(t,e){return!e||"object"!==G(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Y(t){return(Y=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var J=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Z(t,e)}(i,t);var e,n,r,o=$(i);function i(t,e){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i),o.call(this,t,e)}return e=i,(n=[{key:"buildCSSClass",value:function(){return"cv-touch-control-ui ".concat(K(Y(i.prototype),"buildCSSClass",this).call(this))}},{key:"createEl",value:function(t,e,n){return K(Y(i.prototype),"createEl",this).call(this,t,Object.assign(Object.assign({},e),{className:this.buildCSSClass()}),n)}},{key:"setUi",value:function(t,e){var n=this,r=t>0,o=r?"cv-touch-right":"cv-touch-left";this.el_.className=this.buildCSSClass()+" cv-ui-touch-active",this.el_.innerHTML="\n <div class='".concat(o,"'>\n <div class='cv-touch-text'>\n ").concat(r?"+":"").concat(10*t,"s\n </div>\n </div>\n "),window.clearTimeout(this.timeoutId),this.timeoutId=window.setTimeout((function(){n.removeText()}),e)}},{key:"removeText",value:function(){this.el_.className=this.buildCSSClass(),this.el_.innerHTML=""}}])&&Q(e.prototype,n),r&&Q(e,r),i}(a.a.getComponent("component"));function tt(t){return(tt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function et(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function nt(t,e,n){return(nt="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=at(t)););return t}(t,e);if(r){var o=Object.getOwnPropertyDescriptor(r,e);return o.get?o.get.call(n):o.value}})(t,e,n||t)}function rt(t,e){return(rt=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function ot(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=at(t);if(e){var o=at(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return it(this,n)}}function it(t,e){return!e||"object"!==tt(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function at(t){return(at=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}a.a.registerComponent("TouchControls",J);var ct=a.a.getPlugin("plugin"),ut=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&rt(t,e)}(i,t);var e,n,r,o=ot(i);function i(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i),(e=o.call(this,t)).doubleTouchCount=0,e.seekStartTime=0,e.directionModifier=0,e.bindFunctions(),e.player.ready((function(){return e.initialize()})),e}return e=i,(n=[{key:"bindFunctions",value:function(){this.onTouchStart=this.onTouchStart.bind(this),this.onTouchEnd=this.onTouchEnd.bind(this),this.reBindEventListeners=this.reBindEventListeners.bind(this)}},{key:"initialize",value:function(){var t=this;this.player.addChild("TouchControls"),this.touchControls=this.player.getChild("TouchControls"),this.player.on("ready",this.reBindEventListeners),this.one("dispose",(function(){t.player.off("ready",t.reBindEventListeners)})),this.reBindEventListeners()}},{key:"reBindEventListeners",value:function(){this.unBindEventListeners(),this.tech=this.player.tech(!0),"Html5"===this.tech.name()&&(this.on(this.tech,"touchstart",this.onTouchStart),this.on(this.tech,"touchend",this.onTouchEnd))}},{key:"unBindEventListeners",value:function(){this.tech&&(this.off(this.tech,"touchstart",this.onTouchStart),this.off(this.tech,"touchend",this.onTouchEnd))}},{key:"dispose",value:function(){nt(at(i.prototype),"dispose",this).call(this),this.unBindEventListeners()}},{key:"onTouchStart",value:function(t){this.touchStartTime=t.timeStamp}},{key:"onTouchEnd",value:function(t){var e=this;if(t.changedTouches.length){if(t.timeStamp-this.lastTouchTime<300)return this.onDoubleTouch(t),void(this.lastTouchTime=t.timeStamp);this.resetProperties(),this.lastTouchTime=t.timeStamp,t.timeStamp-this.touchStartTime<300&&window.setTimeout((function(){e.doubleTouchCount||(e.player.paused()?e.player.play():e.player.pause())}),300)}}},{key:"resetProperties",value:function(){this.doubleTouchCount=0,this.seekStartTime=0,this.directionModifier=0}},{key:"onDoubleTouch",value:function(t){var e=this.player.el().getBoundingClientRect(),n=e.left+e.width/2;if(0===this.doubleTouchCount&&(this.seekStartTime=this.player.currentTime(),t.changedTouches[0].pageX<n?this.directionModifier=-1:this.directionModifier=1),this.doubleTouchCount++,this.directionModifier<0){if(10*this.doubleTouchCount>this.seekStartTime+10)return;return this.touchControls.setUi(-this.doubleTouchCount,900),void this.player.currentTime(this.player.currentTime()-10)}var r=this.player.duration()-this.seekStartTime;10*this.doubleTouchCount>r+10||(this.touchControls.setUi(this.doubleTouchCount,900),this.player.currentTime(this.player.currentTime()+10))}}])&&et(e.prototype,n),r&&et(e,r),i}(ct);function lt(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}a.a.registerPlugin("touchControls",ut);var st=function(){function t(e,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.id=n.id,this.plugin=e,this.source=n,this.enabled=this.enabled.bind(this)}var e,n,r;return e=t,(n=[{key:"enabled",value:function(t){return void 0===t?this.plugin.currentSource===this.source:(t&&this.plugin.setSource(this.source.id),t)}}])&&lt(e.prototype,n),r&&lt(e,r),t}();function ft(t){return(ft="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function pt(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function yt(t,e){return(yt=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function dt(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=vt(t);if(e){var o=vt(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return ht(this,n)}}function ht(t,e){return!e||"object"!==ft(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function vt(t){return(vt=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var bt=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&yt(t,e)}(i,t);var e,n,r,o=dt(i);function i(t,e){var n;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i),(n=o.call(this,t)).options_=e,n.player.ready((function(){return n.initialize()})),n}return e=i,(n=[{key:"initialize",value:function(){this.sources=[],this.qualityLevels=this.player.qualityLevels(),this.populateSources(this.options_.sources)}},{key:"currentSource",get:function(){return this._currentSource}},{key:"setSource",value:function(t){var e=this,n=this.getSourceById(t);if(null===n)return this.currentSource;var r=this.player.currentTime(),o=!this.player.paused();return this._currentSource=n,this.player.src({src:n.url,type:n.mimeType}),this.player.one("loadedmetadata",(function(){e.player.currentTime()!==r&&e.player.currentTime(r),o&&e.player.play()})),this.trigger({event:"sourcechange",source:n}),this.sourceChangeUpdateQualityLevels(n),n}},{key:"getSourceById",value:function(t){return this.sources.find((function(e){return e.id===t}))}},{key:"sortSources",value:function(t){return t.sort((function(t,e){return t.id===e.id?0:+t.id>+e.id?-1:1}))}},{key:"populateSources",value:function(t){var e=this,n=null;(t=this.sortSources(t)).forEach((function(t){e.qualityLevels.addQualityLevel(new st(e,t)),e.sources.push(t),e.trigger({event:"addsource",source:t}),t.default&&(n=t)})),null===n&&(n=this.sources[0]),null!==n&&this.setSource(n.id)}},{key:"sourceChangeUpdateQualityLevels",value:function(t){for(var e=this.qualityLevels,n=-1,r=0;r<e.length;r++)if(e[r].id===t.id){n=r;break}e.selectedIndex_=n,e.trigger({selectedIndex:n,type:"change"})}}])&&pt(e.prototype,n),r&&pt(e,r),i}(a.a.getPlugin("plugin"));function mt(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}a.a.registerPlugin("progressiveFiles",bt);var gt=function(t,e,n,r){return new(n||(n=Promise))((function(o,i){function a(t){try{u(r.next(t))}catch(t){i(t)}}function c(t){try{u(r.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,c)}u((r=r.apply(t,e||[])).next())}))},wt=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.name=e.name,this.playbackProfile=e.playbackProfile,this.address=new URL(e.httpsAddress)}var e,n,r;return e=t,(n=[{key:"getUrl",value:function(t){return t?this.address+"cache?file="+encodeURIComponent(t):null}},{key:"ping",value:function(){return gt(this,void 0,void 0,regeneratorRuntime.mark((function t(){var e,n,r,o;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e=new AbortController,n=setTimeout((function(){return e.abort()}),1e3),t.prev=3,t.next=6,fetch(this.address+"ping",{method:"GET",mode:"cors",signal:e.signal});case 6:return r=t.sent,t.next=9,r.text();case 9:return o=t.sent,clearTimeout(n),t.abrupt("return","PONG"===o);case 14:return t.prev=14,t.t0=t.catch(3),t.abrupt("return",!1);case 17:case"end":return t.stop()}}),t,this,[[3,14]])})))}}])&&mt(e.prototype,n),r&&mt(e,r),t}();function Ct(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var Ot=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t)}var e,n,r;return e=t,r=[{key:"getKnownProfiles",value:function(){return["1080","720","480","360","240"]}},{key:"enableProfileOrNextBest",value:function(t,e){var n=t.getQualityLevelById(e);if(n||(n=this.getNextBestQuality(t,e)),!n)return null;for(var r=0;r<t.length;r++){var o=t[r];o.enabled=n.id===o.id}return n}},{key:"getNextBestQuality",value:function(t,e){var n=this.getKnownProfiles(),r=n.indexOf(e);if(r>=0){for(var o=r+1;o<n.length;o++){var i=n[o],a=t.getQualityLevelById(i);if(a)return a}for(var c=r-1;c>0;c--){var u=n[c],l=t.getQualityLevelById(u);if(l)return l}}return null}}],(n=null)&&Ct(e.prototype,n),r&&Ct(e,r),t}();function It(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var Tt=function(t,e,n,r){return new(n||(n=Promise))((function(o,i){function a(t){try{u(r.next(t))}catch(t){i(t)}}function c(t){try{u(r.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,c)}u((r=r.apply(t,e||[])).next())}))},St=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.player=e,this.logger=a.a.log.createLogger("localcache")}var e,n,r;return e=t,(n=[{key:"setSource",value:function(t,e){return Tt(this,void 0,void 0,regeneratorRuntime.mark((function n(){var r;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(!this.player.localCache||void 0===(null==t?void 0:t.src)){n.next=5;break}return n.next=3,this.player.localCache().getActiveLocalCache();case 3:null!==(r=n.sent)&&(this.logger.debug("Using Local Cache",r),t.src=r.getUrl(t.src));case 5:e(null,t);case 6:case"end":return n.stop()}}),n,this)})))}}])&&It(e.prototype,n),r&&It(e,r),t}();a.a.use("*",(function(t){return new St(t)}));n(1084);function _t(t){return(_t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function kt(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function jt(t,e,n){return(jt="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=Lt(t)););return t}(t,e);if(r){var o=Object.getOwnPropertyDescriptor(r,e);return o.get?o.get.call(n):o.value}})(t,e,n||t)}function Et(t,e){return(Et=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Pt(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Lt(t);if(e){var o=Lt(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Rt(this,n)}}function Rt(t,e){return!e||"object"!==_t(e)&&"function"!=typeof e?xt(t):e}function xt(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Lt(t){return(Lt=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var At=function(t,e,n,r){return new(n||(n=Promise))((function(o,i){function a(t){try{u(r.next(t))}catch(t){i(t)}}function c(t){try{u(r.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,c)}u((r=r.apply(t,e||[])).next())}))},Bt='<?xml version="1.0" encoding="UTF-8"?><svg width="24px" height="24px" viewBox="0 0 24 24" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><g id="Artboard" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd" opacity="0.9"><g id="Local-Cache" transform="translate(2.000000, 2.000000)"><rect id="Rectangle" fill="#FFFFFF" x="0" y="2.4" width="18.8" height="15.2"></rect><ellipse id="Oval" fill="#FFFFFF" cx="9.4" cy="2.4" rx="9.4" ry="2.4"></ellipse><ellipse id="Oval-Copy" fill="#FFFFFF" cx="9.4" cy="17.6" rx="9.4" ry="2.4"></ellipse><g id="Logo/Circle" transform="translate(2.500000, 3.000000)"><circle id="Oval" fill="#FFFFFF" cx="7" cy="7" r="7"></circle><polygon id="Fill-1" fill="#F8981D" points="4.66666667 2.33333333 4.66666667 11.4245258 10.0383286 6.87866667"></polygon></g></g></g></svg>',Nt=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Et(t,e)}(i,t);var e,n,r,o=Pt(i);function i(t,e){var n;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i),(n=o.call(this,t,e)).hide(),n.onLocalCacheChange=n.onLocalCacheChange.bind(xt(n)),t.ready((function(){n.initialize()})),n}return e=i,(n=[{key:"createEl",value:function(){return jt(Lt(i.prototype),"createEl",this).call(this,"div",{className:"vjs-local-cache-indicator",innerHTML:'<div class="vjs-local-cache-indicator-icon">'.concat(Bt,"</div>"),title:"Streaming from ClickView Local Cache"})}},{key:"initialize",value:function(){var t=this;this.localCachePlugin=this.player_.localCache(),this.localCachePlugin&&(this.localCachePlugin.on("localcachechanged",this.onLocalCacheChange),this.player_.on("dispose",(function(){t.localCachePlugin.off("localcachechanged",t.onLocalCacheChange)})),this.onLocalCacheChange())}},{key:"onLocalCacheChange",value:function(){return At(this,void 0,void 0,regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.localCachePlugin.getActiveLocalCache();case 2:t.sent?this.show():this.hide();case 4:case"end":return t.stop()}}),t,this)})))}}])&&kt(e.prototype,n),r&&kt(e,r),i}(a.a.getComponent("Component"));function Mt(t){return(Mt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Ut(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Dt(t,e,n){return(Dt="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=Wt(t)););return t}(t,e);if(r){var o=Object.getOwnPropertyDescriptor(r,e);return o.get?o.get.call(n):o.value}})(t,e,n||t)}function Ft(t,e){return(Ft=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function zt(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Wt(t);if(e){var o=Wt(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Vt(this,n)}}function Vt(t,e){return!e||"object"!==Mt(e)&&"function"!=typeof e?Ht(t):e}function Ht(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Wt(t){return(Wt=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}a.a.registerComponent("localCacheIndicator",Nt);var qt=function(t,e,n,r){return new(n||(n=Promise))((function(o,i){function a(t){try{u(r.next(t))}catch(t){i(t)}}function c(t){try{u(r.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,c)}u((r=r.apply(t,e||[])).next())}))},Gt=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Ft(t,e)}(i,t);var e,n,r,o=zt(i);function i(t,e){var n;if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i),(n=o.call(this,t)).logger_=a.a.log.createLogger("localcache"),void 0===e)throw Error("no options defined");return n.onPlayerError=n.onPlayerError.bind(Ht(n)),n.localCaches_=e.localCacheAddresses.map((function(t){return new wt(t)})),n.player.ready((function(){n.initialize(),e.enabled&&n.enable()})),n}return e=i,(n=[{key:"isEnabled",get:function(){return this.enabled_}},{key:"enable",value:function(){this.enabled_=!0,this.resetActiveLocalCache()}},{key:"disable",value:function(){this.enabled_=!1}},{key:"getActiveLocalCache",value:function(){return this.enabled_?this.activeLocalCache_:null}},{key:"resetActiveLocalCache",value:function(){this.clearActiveLocalCache(),this.activeLocalCache_=this.getActiveLocalCacheInternal()}},{key:"clearActiveLocalCache",value:function(){this.activeLocalCache_&&(this.activeLocalCache_=null,this.onLocalCacheChange(null))}},{key:"dispose",value:function(){this.player.off("error",this.onPlayerError),Dt(Wt(i.prototype),"dispose",this).call(this)}},{key:"initialize",value:function(){this.player.on("error",this.onPlayerError),this.player.controlBar.addChild("localCacheIndicator")}},{key:"onPlayerError",value:function(){var t;(null===(t=this.player.error())||void 0===t?void 0:t.code)===MediaError.MEDIA_ERR_NETWORK&&this.resetActiveLocalCache()}},{key:"getActiveLocalCacheInternal",value:function(){return qt(this,void 0,void 0,regeneratorRuntime.mark((function t(){var e,n,r,o=this;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e=[],n=function(t){return qt(o,void 0,void 0,regeneratorRuntime.mark((function n(){return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,t.ping();case 2:if(!n.sent){n.next=4;break}e.push(t);case 4:case"end":return n.stop()}}),n)})))},t.next=4,Promise.all(this.localCaches_.map((function(t){return n(t)})));case 4:if(!(e.length>0)){t.next=8;break}return r=e[0],this.onLocalCacheChange(r),t.abrupt("return",r);case 8:return t.abrupt("return",null);case 9:case"end":return t.stop()}}),t,this)})))}},{key:"onLocalCacheChange",value:function(t){this.logger_.debug("Local Cache changed",t),this.trigger("localcachechanged",{localCache:t});var e=!1;t&&t.playbackProfile&&(this.logger_.debug("Changing active profile for local cache",t.playbackProfile),Ot.enableProfileOrNextBest(this.player.qualityLevels(),t.playbackProfile),e=!0),e||this.player.src(this.player.src())}}])&&Ut(e.prototype,n),r&&Ut(e,r),i}(a.a.getPlugin("plugin"));function Qt(t){return(Qt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Kt(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Zt(t,e){return(Zt=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function $t(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Yt(t);if(e){var o=Yt(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Xt(this,n)}}function Xt(t,e){return!e||"object"!==Qt(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Yt(t){return(Yt=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}a.a.registerPlugin("localCache",Gt);var Jt=a.a.getPlugin("plugin"),te=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Zt(t,e)}(i,t);var e,n,r,o=$t(i);function i(t,e){var n;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i),(n=o.call(this,t)).options=e,n.initialize(),n}return e=i,(n=[{key:"initialize",value:function(){if(this.player.textTracks().length){this.bindEventListeners();var t=!!this.options.showSubtitles,e=this.safeGet("cvplayer-show-subtitles");if("true"===e&&(t=!0),"false"===e&&(t=!1),t){var n=this.guessWhichTrack();n&&(n.mode="showing")}var r=this.safeGet("cvplayer-subtitle-size");r||(r=this.options.subtitleSize),r&&this.player.textTrackSettings.setSizeSetting(r)}}},{key:"safeGet",value:function(t){if(l())return s(t)}},{key:"onSelectedLanguageChange",value:function(){for(var t=this.player.textTracks(),e=0;e<t.length;e++){var n=t[e];if("showing"===n.mode)return f("cvplayer-show-subtitles","true"),void f("cvplayer-selected-language",n.language)}f("cvplayer-show-subtitles","false"),p("cvplayer-selected-language")}},{key:"bindEventListeners",value:function(){var t=this;l()&&(this.onSelectedLanguageChange=this.onSelectedLanguageChange.bind(this),this.onChangeSubtitleSize=this.onChangeSubtitleSize.bind(this),this.player.on("cv:languageselected",this.onSelectedLanguageChange),this.player.on("changesubtitlesize",this.onChangeSubtitleSize),this.one("dispose",(function(){t.player.off("cv:languageselected",t.onSelectedLanguageChange),t.player.off("changesubtitlesize",t.onChangeSubtitleSize)})))}},{key:"onChangeSubtitleSize",value:function(){var t=this.player.textTrackSettings.getSizeSetting();f("cvplayer-subtitle-size",t)}},{key:"guessWhichTrack",value:function(){for(var t,e,n=this.safeGet("cvplayer-selected-language")||window.navigator.language,r=this.getLanguageParts(n),o=r.language,i=r.country,a=this.player.textTracks(),c=0;c<a.length;c++){var u=a[c],l=this.getLanguageParts(u.language),s=l.language,f=l.country;if(s===o&&(t=u,f||(e=u),f===i))return t}return e||t||null}},{key:"getLanguageParts",value:function(t){var e=t.toLowerCase().split("-");return{language:e[0],country:e[1]}}}])&&Kt(e.prototype,n),r&&Kt(e,r),i}(Jt);function ee(t){return(ee="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function ne(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function re(t,e){return(re=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function oe(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=ae(t);if(e){var o=ae(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return ie(this,n)}}function ie(t,e){return!e||"object"!==ee(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function ae(t){return(ae=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}a.a.registerPlugin("persistSubtitleSettingsPlugin",te);var ce=function(t,e,n,r){return new(n||(n=Promise))((function(o,i){function a(t){try{u(r.next(t))}catch(t){i(t)}}function c(t){try{u(r.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,c)}u((r=r.apply(t,e||[])).next())}))},ue=a.a.getPlugin("plugin"),le=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&re(t,e)}(i,t);var e,n,r,o=oe(i);function i(t,e){var n;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i),(n=o.call(this,t)).options=e,n.player.ready((function(){return n.initialize()})),n}return e=i,(n=[{key:"initialize",value:function(){return ce(this,void 0,void 0,regeneratorRuntime.mark((function t(){var e,n,r,o,i=this;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.getActiveLocalCache();case 2:if(e=t.sent,(n=e?this.options.playbackProfileLocalCache:this.options.playbackProfile)||(n="1080"),l()&&(r=s(this.getStorageKey(!!e)))&&(n=r),o=this.player.qualityLevels(),(null==e?void 0:e.playbackProfile)||Ot.enableProfileOrNextBest(o,n),l()){t.next=10;break}return t.abrupt("return");case 10:this.onQualityLevelsChange=this.onQualityLevelsChange.bind(this),o.on("change",this.onQualityLevelsChange),this.on("dispose",(function(){o.off("change",i.onQualityLevelsChange)}));case 13:case"end":return t.stop()}}),t,this)})))}},{key:"onQualityLevelsChange",value:function(){return ce(this,void 0,void 0,regeneratorRuntime.mark((function t(){var e,n,r;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.isLocalCacheActive();case 2:e=t.sent,n=this.player.qualityLevels(),r=n[n.selectedIndex],f(this.getStorageKey(e),r.id);case 6:case"end":return t.stop()}}),t,this)})))}},{key:"isLocalCacheActive",value:function(){return ce(this,void 0,void 0,regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.player.localCache().getActiveLocalCache();case 2:return t.abrupt("return",!!t.sent);case 3:case"end":return t.stop()}}),t,this)})))}},{key:"getActiveLocalCache",value:function(){return this.player.localCache().getActiveLocalCache()}},{key:"getStorageKey",value:function(t){return t?"cvplayer-localcache-playback-quality":"cvplayer-playback-quality"}}])&&ne(e.prototype,n),r&&ne(e,r),i}(ue);function se(t){return(se="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function fe(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function pe(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function ye(t,e){return(ye=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function de(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=ve(t);if(e){var o=ve(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return he(this,n)}}function he(t,e){return!e||"object"!==se(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function ve(t){return(ve=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}a.a.registerPlugin("persistQualitySettingsPlugin",le);var be=a.a.getPlugin("plugin"),me="play",ge="playing",we="pause",Ce="seeking",Oe="seekstart",Ie="seekend",Te="ended",Se="pausedseek",_e="timeupdate",ke=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&ye(t,e)}(i,t);var e,n,r,o=de(i);function i(t,e){var n;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i),(n=o.call(this,t,e)).eventBuffer=[],n.latestTime=0,n.lastPlayingTime=0,n.isPlaying=!1,n.isSeeking=!1,n.hasEnded=!1,n.shouldLogPlayOnTimeUpdate=!1,n.options=e,n.player.ready((function(){return n.initialize()})),n}return e=i,(n=[{key:"initialize",value:function(){this.validateOptions(),this.bindListeners(),this.startInterval()}},{key:"validateOptions",value:function(){if("function"!=typeof this.options.onFlush)throw new Error("Please provide the onFlush option")}},{key:"bindListeners",value:function(){var t,e=this,n=(fe(t={},me,(function(){return e.onPlay()})),fe(t,we,(function(){return e.onPause()})),fe(t,_e,(function(){return e.onTimeUpdate()})),fe(t,Ce,(function(){return e.onSeeking()})),fe(t,Te,(function(){return e.onEnded()})),t),r=Object.keys(n);r.forEach((function(t){return e.player.on(t,n[t])})),this.one("dispose",(function(){r.forEach((function(t){return e.player.off(t,n[t])}))}))}},{key:"startInterval",value:function(){var t=this,e=this.options.interval||5e3;setInterval((function(){return t.flushBuffer()}),e)}},{key:"onPlay",value:function(){return this.isPlaying=!0,this.isSeeking?(this.logEvent(Ie),void(this.isSeeking=!1)):this.hasEnded?(this.shouldLogPlayOnTimeUpdate=!0,void(this.hasEnded=!1)):void this.logEvent(me)}},{key:"onPause",value:function(){var t=this;this.isSeeking||(this.pauseTimeout=window.setTimeout((function(){t.isPlaying=!1,t.logEvent(we),delete t.pauseTimeout}),50))}},{key:"onTimeUpdate",value:function(){this.shouldLogPlayOnTimeUpdate&&(this.shouldLogPlayOnTimeUpdate=!1,this.logEvent(me)),this.isPlaying&&!this.isSeeking&&this.logEvent(ge)}},{key:"onSeeking",value:function(){this.pauseTimeout&&(this.latestTime=this.previousLatestTime,window.clearTimeout(this.pauseTimeout),delete this.pauseTimeout),this.isPlaying||this.logEvent(Se),!this.isSeeking&&this.isPlaying&&(this.isSeeking=!0,this.logEvent(Oe))}},{key:"onEnded",value:function(){this.hasEnded=!0,this.logEvent(Te)}},{key:"logEvent",value:function(t){if(this.player){var e=this.player.currentTime();t===Oe&&(e=this.latestTime),this.previousLatestTime=this.latestTime,this.latestTime=this.player.currentTime(),this.eventBuffer.push({time:e,type:t})}}},{key:"shouldUseCarriedOverTime",value:function(t){return this.lastPlayingTime&&(t===ge||t===me)}},{key:"shouldSaveCarriedOverTime",value:function(t){return t===ge||t===we}},{key:"shouldClearCarriedOverTime",value:function(t){return t===Te||t===Se}},{key:"flushBuffer",value:function(){for(var t,e=[],n={};this.eventBuffer.length;){var r=this.eventBuffer.shift();this.shouldClearCarriedOverTime(r.type)?delete this.lastPlayingTime:n.start?r.type===ge&&this.eventBuffer.length>0||(this.shouldSaveCarriedOverTime(r.type)&&(this.lastPlayingTime=r.time),n.end=r,e.push(n),n={}):(this.shouldUseCarriedOverTime(r.type)&&(r.time=this.lastPlayingTime,delete this.lastPlayingTime),n.start=r)}this.eventBuffer=[],e.length&&(this.options.onFlush(e),null===(t=this.player)||void 0===t||t.trigger("progressflush"))}}])&&pe(e.prototype,n),r&&pe(e,r),i}(be);a.a.registerPlugin("progressReporterPlugin",ke);n(1085);function je(t){return(je="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Ee(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Pe(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Re(t,e){return(Re=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function xe(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Ae(t);if(e){var o=Ae(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Le(this,n)}}function Le(t,e){return!e||"object"!==je(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Ae(t){return(Ae=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var Be=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Re(t,e)}(i,t);var e,n,r,o=xe(i);function i(){return Ee(this,i),o.apply(this,arguments)}return e=i,(n=[{key:"createEl",value:function(){return a.a.dom.createEl("span",{innerHTML:'<span class="vjs-icon-placeholder"></span>',className:"cv-drag-handle vjs-control vjs-button"},{})}}])&&Pe(e.prototype,n),r&&Pe(e,r),i}(a.a.getComponent("Component")),Ne=["top","left","right","bottom"],Me={top:"Top",left:"Left",right:"Right",bottom:"Bottom"};n(1086);function Ue(t){return(Ue="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function De(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Fe(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function ze(t,e,n){return e&&Fe(t.prototype,e),n&&Fe(t,n),t}function Ve(t,e,n){return(Ve="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=Qe(t)););return t}(t,e);if(r){var o=Object.getOwnPropertyDescriptor(r,e);return o.get?o.get.call(n):o.value}})(t,e,n||t)}function He(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&We(t,e)}function We(t,e){return(We=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function qe(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Qe(t);if(e){var o=Qe(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Ge(this,n)}}function Ge(t,e){return!e||"object"!==Ue(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Qe(t){return(Qe=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var Ke=a.a.getComponent("Component"),Ze=function(t){He(n,t);var e=qe(n);function n(t,r){var o;return De(this,n),(o=e.call(this,t,r)).bindEventListeners(),o}return ze(n,[{key:"createEl",value:function(){return Ve(Qe(n.prototype),"createEl",this).call(this,"div",{},{class:"cv-drop-target cv-drop-".concat(this.options_.side)})}},{key:"bindEventListeners",value:function(){var t=this,e=this.el(),n=function(e){e.preventDefault(),e.dataTransfer.dropEffect="move",t.addClass("cv-drag-over")},r=function(e){e.preventDefault(),t.removeClass("cv-drag-over"),t.player_.whiteboardModePlugin().setWhiteboardMode(t.options_.side)},o=function(){t.removeClass("cv-drag-over")};e.addEventListener("dragover",n),e.addEventListener("drop",r),e.addEventListener("dragleave",o),this.on("dispose",(function(){e.removeEventListener("dragover",n),e.removeEventListener("drop",r),e.removeEventListener("dragleave",o)}))}}]),n}(Ke),$e=function(t){He(n,t);var e=qe(n);function n(t,r){var o;return De(this,n),(o=e.call(this,t,r)).addChildren(),o}return ze(n,[{key:"addChildren",value:function(){var t=this;Ne.forEach((function(e){t.addChild(new Ze(t.player_,{side:e}))}))}}]),n}(Ke);function Xe(t){return(Xe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Ye(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Je(t,e,n){return(Je="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=rn(t)););return t}(t,e);if(r){var o=Object.getOwnPropertyDescriptor(r,e);return o.get?o.get.call(n):o.value}})(t,e,n||t)}function tn(t,e){return(tn=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function en(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=rn(t);if(e){var o=rn(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return nn(this,n)}}function nn(t,e){return!e||"object"!==Xe(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function rn(t){return(rn=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var on=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&tn(t,e)}(i,t);var e,n,r,o=en(i);function i(t,e){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i),o.call(this,t,e)}return e=i,(n=[{key:"createEl",value:function(){return a.a.dom.createEl("li",{className:"vjs-menu-item cv-collapsible-menu-heading cv-divider-after-menu-item",innerHTML:'<span class="vjs-menu-item-text">'.concat(this.localize(this.options_.label),"</span>"),tabIndex:-1})}},{key:"handleClick",value:function(t){var e=this;Je(rn(i.prototype),"handleClick",this).call(this,t),this.options_.onClickBack?this.options_.onClickBack():this.requestAnimationFrame((function(){e.player_.getChild("collapserator").getChild("cogButton").pressButton()}))}}])&&Ye(e.prototype,n),r&&Ye(e,r),i}(a.a.getComponent("MenuItem"));function an(t){return(an="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function cn(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function un(t,e){return(un=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function ln(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=fn(t);if(e){var o=fn(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return sn(this,n)}}function sn(t,e){return!e||"object"!==an(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function fn(t){return(fn=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var pn=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&un(t,e)}(i,t);var e,n,r,o=ln(i);function i(t,e){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i),o.call(this,t,e)}return e=i,(n=[{key:"handleClick",value:function(){this.player_.whiteboardModePlugin().setWhiteboardMode(this.options_.side)}}])&&cn(e.prototype,n),r&&cn(e,r),i}(a.a.getComponent("MenuItem"));function yn(t){return(yn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function dn(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function hn(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function vn(t,e,n){return(vn="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=wn(t)););return t}(t,e);if(r){var o=Object.getOwnPropertyDescriptor(r,e);return o.get?o.get.call(n):o.value}})(t,e,n||t)}function bn(t,e){return(bn=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function mn(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=wn(t);if(e){var o=wn(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return gn(this,n)}}function gn(t,e){return!e||"object"!==yn(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function wn(t){return(wn=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var Cn=a.a.getComponent("MenuButton"),On=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&bn(t,e)}(i,t);var e,n,r,o=mn(i);function i(){var t;return dn(this,i),(t=o.apply(this,arguments)).alwaysCollapsed=!0,t.isCollapsed=!1,t.isCollabsible=!0,t}return e=i,(n=[{key:"createItems",value:function(){var t=this,e=this.player_.whiteboardModePlugin().side,n=[new on(this.player_,{label:"Video Controls"})];return Ne.forEach((function(r){n.push(new pn(t.player_,{side:r,label:Me[r],selectable:!0,multiSelectable:!1,selected:r===e}))})),n}},{key:"buildWrapperCSSClass",value:function(){return"cv-menu-small cv-has-left-icons ".concat(vn(wn(i.prototype),"buildWrapperCSSClass",this).call(this))}},{key:"getCollabsibleName",value:function(){return"Video Controls"}},{key:"getCollabsibleValue",value:function(){var t=this.player_.whiteboardModePlugin().side;return Me[t]}},{key:"showInCollabsibleMenu",value:function(){return this.player_.isFullscreen()}},{key:"showCollapsibleMenu",value:function(){Cn.prototype.handleClick.apply(this)}}])&&hn(e.prototype,n),r&&hn(e,r),i}(Cn);n(1087);function In(t){return(In="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Tn(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Sn(t,e){return(Sn=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function _n(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=jn(t);if(e){var o=jn(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return kn(this,n)}}function kn(t,e){return!e||"object"!==In(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function jn(t){return(jn=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var En="cv-whiteboard-side",Pn=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Sn(t,e)}(i,t);var e,n,r,o=_n(i);function i(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i),(e=o.call(this,t)).side="bottom",e.player.ready((function(){e.initialize()})),e}return e=i,(n=[{key:"initialize",value:function(){if(l()){var t=s(En);t&&(this.side=t)}this.initCollapserator(),this.initDragTargets(),this.initFullscreenListener()}},{key:"initCollapserator",value:function(){var t=this,e=this.player.getChild("collapserator"),n=new Be(this.player);this.button=new On(this.player),e.addChild(n),e.addChild(this.button),this.player.trigger("cv-updatecog");var r=function(){e.el().setAttribute("draggable","true")},o=function(){e.el().setAttribute("draggable","false")},i=function(e){t.player.addClass("cv-dragging"),e.dataTransfer.setData("text/plain","handle")},a=function(){t.player.removeClass("cv-dragging"),e.el().setAttribute("draggable","false")};n.el().addEventListener("mousedown",r),n.el().addEventListener("mouseup",o),e.el().addEventListener("dragstart",i),e.el().addEventListener("dragend",a),this.on("dispose",(function(){n.el().removeEventListener("mousedown",r),n.el().removeEventListener("mouseup",o),e.el().removeEventListener("dragstart",i),e.el().removeEventListener("dragend",a)}))}},{key:"initDragTargets",value:function(){this.player.addChild(new $e(this.player))}},{key:"initFullscreenListener",value:function(){var t=this;this.update=this.update.bind(this),this.player.on("fullscreenchange",this.update),this.one("dispose",(function(){t.player.off("fullscreenchange",t.update)}))}},{key:"setWhiteboardMode",value:function(t){this.side=t,this.button.update(),l()&&f(En,t),this.player.trigger("cv-whiteboard-change"),this.update()}},{key:"update",value:function(){this.player.removeClass("cv-whiteboard-top"),this.player.removeClass("cv-whiteboard-left"),this.player.removeClass("cv-whiteboard-right"),this.player.trigger("resizemenus"),this.player.isFullscreen()&&"bottom"!==this.side&&this.player.addClass("cv-whiteboard-".concat(this.side))}}])&&Tn(e.prototype,n),r&&Tn(e,r),i}(a.a.getPlugin("plugin"));a.a.registerPlugin("whiteboardModePlugin",Pn);var Rn=n(1137);function xn(t){return(xn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Ln(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function An(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Bn(t,e,n){return(Bn="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=Dn(t)););return t}(t,e);if(r){var o=Object.getOwnPropertyDescriptor(r,e);return o.get?o.get.call(n):o.value}})(t,e,n||t)}function Nn(t,e){return(Nn=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Mn(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Dn(t);if(e){var o=Dn(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Un(this,n)}}function Un(t,e){return!e||"object"!==xn(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Dn(t){return(Dn=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var Fn=a.a.getComponent("Menu"),zn=Fn.prototype,Vn=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Nn(t,e)}(i,t);var e,n,r,o=Mn(i);function i(){return Ln(this,i),o.apply(this,arguments)}return e=i,(n=[{key:"createEl",value:function(){var t=Bn(Dn(i.prototype),"createEl",this).call(this);return this.simpleBar=new Rn.a(this.contentEl(),{autoHide:!1}),t}},{key:"contentEl",value:function(){return this.simpleBar?this.simpleBar.getContentElement():Bn(Dn(i.prototype),"contentEl",this).call(this)}},{key:"dispose",value:function(){this.simpleBar&&(this.simpleBar.unMount(),delete this.simpleBar),Bn(Dn(i.prototype),"dispose",this).call(this)}},{key:"addItem",value:function(t){Bn(Dn(i.prototype),"addItem",this).call(this,t),this.simpleBar.recalculate()}},{key:"lockShowing",value:function(){Bn(Dn(i.prototype),"lockShowing",this).call(this),this.simpleBar.recalculate()}},{key:"recalculateScrollBar",value:function(){this.simpleBar.recalculate()}},{key:"handleBlur",value:function(t){var e=t.relatedTarget||document.activeElement;this.el().contains(e)||zn.handleBlur.call(this,t)}}])&&An(e.prototype,n),r&&An(e,r),i}(Fn);function Hn(t){return(Hn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Wn(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function qn(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Gn(t,e){return(Gn=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Qn(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Zn(t);if(e){var o=Zn(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Kn(this,n)}}function Kn(t,e){return!e||"object"!==Hn(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Zn(t){return(Zn=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}Fn.prototype=Vn.prototype,a.a.registerComponent("Menu",Vn);var $n=a.a.getComponent("Component"),Xn=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Gn(t,e)}(i,t);var e,n,r,o=Qn(i);function i(){return Wn(this,i),o.apply(this,arguments)}return e=i,(n=[{key:"createMenu",value:function(){var t,e=new Vn(this.player_,{menuButton:this});if(this.hideThreshold_=0,this.options_.title){var n=a.a.dom.createEl("li",{className:"vjs-menu-title",innerHTML:(t=this.options_.title,"string"!=typeof t?t:t.replace(/./,(function(t){return t.toUpperCase()}))),tabIndex:-1});this.hideThreshold_+=1;var r=new $n(this.player_,{el:n});e.addItem(r)}if(this.items=this.createItems(),this.items)for(var o=0;o<this.items.length;o++)e.addItem(this.items[o]);return e}}])&&qn(e.prototype,n),r&&qn(e,r),i}(a.a.getComponent("MenuButton"));a.a.registerComponent("MenuButton",Xn);n(1088);function Yn(t){return(Yn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Jn(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function tr(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function er(t,e,n){return(er="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=ir(t)););return t}(t,e);if(r){var o=Object.getOwnPropertyDescriptor(r,e);return o.get?o.get.call(n):o.value}})(t,e,n||t)}function nr(t,e){return(nr=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function rr(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=ir(t);if(e){var o=ir(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return or(this,n)}}function or(t,e){return!e||"object"!==Yn(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function ir(t){return(ir=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var ar=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&nr(t,e)}(i,t);var e,n,r,o=rr(i);function i(){return Jn(this,i),o.apply(this,arguments)}return e=i,(n=[{key:"buildCSSClass",value:function(){return"cv-time-wrapper ".concat(er(ir(i.prototype),"buildCSSClass",this).call(this))}},{key:"createEl",value:function(t,e,n){return er(ir(i.prototype),"createEl",this).call(this,t,Object.assign(Object.assign({},e),{className:this.buildCSSClass()}),n)}}])&&tr(e.prototype,n),r&&tr(e,r),i}(a.a.getComponent("Component"));ar.prototype.options_={children:["currentTimeDisplay","remainingTimeDisplay"]},a.a.registerComponent("TimeWrapper",ar);n(1089);function cr(t){return(cr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function ur(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function lr(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function sr(t,e,n){return e&&lr(t.prototype,e),n&&lr(t,n),t}function fr(t,e,n){return(fr="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=vr(t)););return t}(t,e);if(r){var o=Object.getOwnPropertyDescriptor(r,e);return o.get?o.get.call(n):o.value}})(t,e,n||t)}function pr(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&yr(t,e)}function yr(t,e){return(yr=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function dr(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=vr(t);if(e){var o=vr(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return hr(this,n)}}function hr(t,e){return!e||"object"!==cr(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function vr(t){return(vr=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var br=function(t){pr(n,t);var e=dr(n);function n(t,r){return ur(this,n),e.call(this,t,r)}return sr(n,[{key:"handleClick",value:function(t){var e=this;fr(vr(n.prototype),"handleClick",this).call(this,t),this.requestAnimationFrame((function(){e.options_.item.showCollapsibleMenu()}))}},{key:"createEl",value:function(t,e,r){if(!this.options_.item)return fr(vr(n.prototype),"createEl",this).call(this,t,e,r);var o=this.options_.item.getCollabsibleName(),i=this.options_.item.getCollabsibleValue(),c='<span class="vjs-menu-item-text">'.concat(o,"</span>");this.valueHolder_=a.a.dom.createEl("span",{innerHTML:i});var u=fr(vr(n.prototype),"createEl",this).call(this,t,{className:"vjs-menu-item cv-cog-menu-item ".concat(i?"cv-has-cog-value":""),innerHTML:c},r);return u.appendChild(this.valueHolder_),u}},{key:"updateCollapsibleValue",value:function(){this.valueHolder_.innerHTML=this.options_.item.getCollabsibleValue()}}]),n}(a.a.getComponent("MenuItem")),mr=function(t){pr(n,t);var e=dr(n);function n(t,r){return ur(this,n),e.call(this,t,r)}return sr(n,[{key:"buildWrapperCSSClass",value:function(){return"cv-menu-small cv-cog-menu-button ".concat(fr(vr(n.prototype),"buildWrapperCSSClass",this).call(this))}},{key:"buildCSSClass",value:function(){return"cv-cog-button ".concat(fr(vr(n.prototype),"buildCSSClass",this).call(this))}},{key:"pressButton",value:function(){this.menu.children_.forEach((function(t){t.updateCollapsibleValue&&t.updateCollapsibleValue()})),fr(vr(n.prototype),"pressButton",this).call(this)}},{key:"createItems",value:function(){for(var t,e=this,n=[],r=0;r<this.options_.items.length;r++){var o=this.options_.items[r];o.isCollabsible&&(o.showInCollabsibleMenu()&&o.isCollapsed&&n.push(new br(this.player_,{item:o})))}return(null===(t=this.additionalItems)||void 0===t?void 0:t.length)&&this.additionalItems.forEach((function(t){var r,o=new t.ctor(e.player_,Object.assign(Object.assign({},e.options_),null!==(r=t.options)&&void 0!==r?r:{}));n.splice(t.index,0,o)})),n}},{key:"update",value:function(){fr(vr(n.prototype),"update",this).call(this),this.player_.trigger("resizemenus")}},{key:"addItem",value:function(t){this.additionalItems||(this.additionalItems=[]),this.additionalItems.some((function(e){return e.name===t.name}))||(this.additionalItems.push(t),this.update())}}]),n}(a.a.getComponent("MenuButton"));function gr(t){return(gr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function wr(t,e,n){return(wr="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=jr(t)););return t}(t,e);if(r){var o=Object.getOwnPropertyDescriptor(r,e);return o.get?o.get.call(n):o.value}})(t,e,n||t)}function Cr(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Or(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Ir(t,e,n){return e&&Or(t.prototype,e),n&&Or(t,n),t}function Tr(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Sr(t,e)}function Sr(t,e){return(Sr=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function _r(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=jr(t);if(e){var o=jr(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return kr(this,n)}}function kr(t,e){return!e||"object"!==gr(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function jr(t){return(jr=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}a.a.registerComponent("cogButton",mr);var Er=a.a.getComponent("MenuItem"),Pr=a.a.getComponent("MenuButton"),Rr=["large","medium","small"],xr=function(t){Tr(n,t);var e=_r(n);function n(t,r){return Cr(this,n),e.call(this,t,r)}return Ir(n,[{key:"handleClick",value:function(){this.player_.textTrackSettings.setSizeSetting(this.options_.value)}}]),n}(Er),Lr=function(t){Tr(n,t);var e=_r(n);function n(t,r){var o;return Cr(this,n),(o=e.call(this,t,r)).alwaysCollapsed=!0,o.isCollapsed=!1,o.isCollabsible=!0,o.player_.ready((function(){o.update()})),o}return Ir(n,[{key:"createItems",value:function(){var t=this,e=this.player_.textTrackSettings;if(e){var n=e.getSizeSetting(),r=[new on(this.player_,{label:"Caption Text Size",onClickBack:function(){t.requestAnimationFrame((function(){t.player_.getChild("collapserator").getChild("subsCapsButton").pressButton()}))}})];return Rr.map((function(e){r.push(new xr(t.player_,{label:e.charAt(0).toUpperCase()+e.substring(1),selectable:!0,multiSelectable:!1,selected:e===n,value:e}))})),r}}},{key:"buildWrapperCSSClass",value:function(){return"cv-menu-small cv-has-left-icons ".concat(wr(jr(n.prototype),"buildWrapperCSSClass",this).call(this))}},{key:"getCollabsibleName",value:function(){return"Subtitle Size"}},{key:"getCollabsibleValue",value:function(){return""}},{key:"showInCollabsibleMenu",value:function(){return!1}},{key:"showCollapsibleMenu",value:function(){Pr.prototype.handleClick.apply(this)}}]),n}(Pr);function Ar(t,e,n,r){t.kind===e&&(n&&t.label!==n||(t.loaded_?r(t):t.one("loadeddata",(function(){r(t)}))))}a.a.registerComponent("SubtitleSizeButton",Lr);var Br=function(t,e,n,r){var o=function(t){Ar(t.track,e,n,r)},i=t.textTracks(),a=function(t,e,n){if(t.length)for(var r=t.length-1;r>=0;r--){var o=t[r];if(o.kind===e){if(n&&o.label!==n)continue;return o}}}(i,e,n);a?Ar(a,e,n,r):(i.addEventListener("addtrack",o),t.one("dispose",(function(){i.removeEventListener("addtrack",o)})))},Nr=function(t){if(!t)return null;for(var e=t.textTracks(),n=0;n<e.length;n++){var r=e[n];if("showing"===r.mode)return r}return null};function Mr(t){return(Mr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Ur(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Dr(t,e){return(Dr=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Fr(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Vr(t);if(e){var o=Vr(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return zr(this,n)}}function zr(t,e){return!e||"object"!==Mr(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Vr(t){return(Vr=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var Hr=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Dr(t,e)}(i,t);var e,n,r,o=Fr(i);function i(t,e){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i),o.call(this,t,e)}return e=i,(n=[{key:"update",value:function(t,e){var n=this;if(null==t?void 0:t.length){var r=[],o=0;t.forEach((function(t){var i=n.options_.label.substr(o,t);i&&r.push(i),r.push('<span class="cv-highlight">'),r.push(n.options_.label.substr(t,e)),r.push("</span>"),o=t+e})),r.push(this.options_.label.substring(o,this.options_.label.length)),this.el().innerHTML='<span class="vjs-menu-item-text">'.concat(r.join(""),"</span>")}else this.el().innerHTML='<span class="vjs-menu-item-text">'.concat(this.options_.label,"</span>")}},{key:"handleClick",value:function(t){t.stopImmediatePropagation(),this.player_.currentTime(this.options_.cue.startTime)}}])&&Ur(e.prototype,n),r&&Ur(e,r),i}(a.a.getComponent("MenuItem"));function Wr(t){return(Wr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function qr(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Gr(t,e,n){return(Gr="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=Xr(t)););return t}(t,e);if(r){var o=Object.getOwnPropertyDescriptor(r,e);return o.get?o.get.call(n):o.value}})(t,e,n||t)}function Qr(t,e){return(Qr=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Kr(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Xr(t);if(e){var o=Xr(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Zr(this,n)}}function Zr(t,e){return!e||"object"!==Wr(e)&&"function"!=typeof e?$r(t):e}function $r(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Xr(t){return(Xr=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var Yr=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Qr(t,e)}(i,t);var e,n,r,o=Kr(i);function i(t,e){var n;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i),(n=o.call(this,t,e)).onChange=function(t,e,n){var r,o=this,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:window,a=function(){i.clearTimeout(r),r=null},c=function(){for(var a=arguments.length,c=new Array(a),u=0;u<a;u++)c[u]=arguments[u];var l=function(){r=null,l=null,n||t.apply(this,c)};!r&&n&&t.apply(o,c),i.clearTimeout(r),r=i.setTimeout(l,e)};return c.cancel=a,c}(n.onChange,100,!1,$r(n)),n.bindEventListeners(),n}return e=i,(n=[{key:"createEl",value:function(){return Gr(Xr(i.prototype),"createEl",this).call(this,"li",{innerHTML:'\n <div class="cv-subtitle-search-input">\n <span class="cv-search-icon">\n <svg viewBox="0 0 24 24">\n <path d="M15.803 14.306l3.917 3.954a1 1 0 0 1-.007 1.417l-.018.018-.018.018a.997.997 0 0 1-1.41 0l-3.918-3.953-.3.214c-1.14.713-2.323 1.07-3.549 1.07-1.796 0-3.328-.642-4.597-1.925C4.634 13.836 4 12.296 4 10.5c0-1.796.634-3.328 1.903-4.597C7.172 4.634 8.704 4 10.5 4c1.796 0 3.329.634 4.597 1.903 1.27 1.269 1.904 2.801 1.904 4.597a6.447 6.447 0 0 1-1.027 3.507l-.17.3zM10.5 5.368c-1.425 0-2.637.5-3.635 1.497-.998.998-1.497 2.21-1.497 3.635 0 1.426.5 2.637 1.497 3.635.998.998 2.21 1.497 3.635 1.497 1.426 0 2.637-.499 3.635-1.497 1.027-1.026 1.54-2.238 1.54-3.635 0-1.397-.513-2.608-1.54-3.635-.998-.998-2.21-1.497-3.635-1.497z"/>\n </svg>\n </span><input placeholder="Search" type="text" autocomplete="off" spellcheck="false" aria-label="Search" />\n </div>\n '})}},{key:"focus",value:function(){this.$("input").focus()}},{key:"handleClick",value:function(t){t.stopImmediatePropagation(),this.$("input").focus()}},{key:"handleKeyDown",value:function(){this.focus()}},{key:"bindEventListeners",value:function(){var t=this,e=this.$("input");this.onChange=this.onChange.bind(this),e.addEventListener("keyup",this.onChange),e.addEventListener("blur",(function(e){t.options_.menuButton.menu.handleBlur(e)}))}},{key:"onChange",value:function(t){var e=t.target;this.options_.menuButton.search(e.value)}}])&&qr(e.prototype,n),r&&qr(e,r),i}(a.a.getComponent("MenuItem"));n(1090);function Jr(t){return(Jr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function to(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function eo(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function no(t,e,n){return e&&eo(t.prototype,e),n&&eo(t,n),t}function ro(t,e,n){return(ro="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=lo(t)););return t}(t,e);if(r){var o=Object.getOwnPropertyDescriptor(r,e);return o.get?o.get.call(n):o.value}})(t,e,n||t)}function oo(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&io(t,e)}function io(t,e){return(io=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function ao(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=lo(t);if(e){var o=lo(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return co(this,n)}}function co(t,e){return!e||"object"!==Jr(e)&&"function"!=typeof e?uo(t):e}function uo(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function lo(t){return(lo=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var so=a.a.getComponent("MenuItem"),fo=a.a.getComponent("MenuButton"),po=function(t){oo(n,t);var e=ao(n);function n(){return to(this,n),e.apply(this,arguments)}return no(n,[{key:"createEl",value:function(t,e,r){return ro(lo(n.prototype),"createEl",this).call(this,t,Object.assign(Object.assign({},e),{className:"vjs-menu-item cv-no-results"}),r)}}]),n}(so),yo=function(t){oo(n,t);var e=ao(n);function n(t,r){var o;return to(this,n),(o=e.call(this,t,r)).alwaysCollapsed=!0,o.isCollapsed=!1,o.isCollabsible=!0,o.update=o.update.bind(uo(o)),o.player_.textTracks().addEventListener("selectedlanguagechange",o.update),o}return no(n,[{key:"bindTrackEvents",value:function(t){var e=this;t.removeEventListener("loadeddata",this.update),t.addEventListener("loadeddata",this.update),this.player_.one("dispose",(function(){t.removeEventListener("loadeddata",e.update)}))}},{key:"createItems",value:function(){var t,e=Nr(this.player_);if(e){if(null===(t=e.cues)||void 0===t?void 0:t.length){for(var n=[new Yr(this.player_,{menuButton:this})],r=0;r<e.cues.length;r++){var o=e.cues[r];n.push(new Hr(this.player_,{cue:o,label:o.text,selected:!1,multiSelectable:!1}))}var i=new po(this.player_,{label:"No matching results",selected:!1,selectable:!1,multiSelectable:!1});return i.hide(),n.push(i),n}this.bindTrackEvents(e)}}},{key:"search",value:function(t){var e;t=t.trim();var n=Nr(this.player_);if(null===(e=null==n?void 0:n.cues)||void 0===e?void 0:e.length){var r=this.findMatches(t,n);this.toggleItemVisibility(t,r),this.toggleNoResults(t,r)}}},{key:"findMatches",value:function(t,e){var n={};if(!t)return n;for(var r=new RegExp(t,"gi"),o=0;o<e.cues.length;o++){for(var i=e.cues[o].text,a=[],c=void 0;c=r.exec(i);)a.push(c.index);a.length&&(n[o]=a)}return n}},{key:"toggleItemVisibility",value:function(t,e){this.menu.children_.slice(1,this.menu.children_.length-1).forEach((function(n,r){!t||e[r]?n.show():n.hide(),n.update(e[r],t.length)}))}},{key:"toggleNoResults",value:function(t,e){var n=this.menu.children_[this.menu.children_.length-1];!t||Object.keys(e).length?n.hide():n.show()}},{key:"buildWrapperCSSClass",value:function(){return"cv-menu-big cv-subtitle-search-button ".concat(ro(lo(n.prototype),"buildWrapperCSSClass",this).call(this))}},{key:"update",value:function(){ro(lo(n.prototype),"update",this).call(this),this.player_.trigger("resizemenus")}},{key:"pressButton",value:function(){ro(lo(n.prototype),"pressButton",this).call(this);var t=this.menu.children_[0];(null==t?void 0:t.focus)&&(null==t||t.focus())}},{key:"getCollabsibleName",value:function(){return"Subtitle Size"}},{key:"getCollabsibleValue",value:function(){return""}},{key:"showInCollabsibleMenu",value:function(){return!1}},{key:"showCollapsibleMenu",value:function(){fo.prototype.handleClick.apply(this)}}]),n}(fo);a.a.registerComponent("subtitleSearchButton",yo);n(1091);function ho(t){return(ho="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function vo(t,e,n){return(vo="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=To(t)););return t}(t,e);if(r){var o=Object.getOwnPropertyDescriptor(r,e);return o.get?o.get.call(n):o.value}})(t,e,n||t)}function bo(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function mo(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function go(t,e,n){return e&&mo(t.prototype,e),n&&mo(t,n),t}function wo(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Co(t,e)}function Co(t,e){return(Co=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Oo(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=To(t);if(e){var o=To(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Io(this,n)}}function Io(t,e){return!e||"object"!==ho(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function To(t){return(To=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var So=a.a.getComponent("MenuItem"),_o=a.a.getComponent("MenuButton"),ko=[{label:"Play / Pause",type:"play-pause"},{label:"Volume",type:"volume"},{label:"Mute",type:"mute"},{label:"Toggle fullscreen",type:"fullscreen"},{label:"Exit fullscreen",type:"exit-fullscreen"}],jo=function(t){wo(n,t);var e=Oo(n);function n(t,r){return bo(this,n),e.call(this,t,r)}return go(n,[{key:"createEl",value:function(){return a.a.dom.createEl("li",{className:"vjs-menu-item",tabIndex:-1,innerHTML:'\n <span class="vjs-menu-item-text">'.concat(this.options_.label,"</span>\n <span>").concat(this.getDisplayHtml(this.options_.type),"\n ")})}},{key:"getDisplayHtml",value:function(t){switch(t){case"play-pause":return'<span class="cv-keyboard-button">Spacebar</span>';case"volume":return'<span class="cv-keyboard-button">Shift</span> + \n <span class="cv-keyboard-button cv-single-key">&uArr;</span> / \n <span class="cv-keyboard-button">Shift</span> +\n <span class="cv-keyboard-button cv-single-key">&dArr;</span>';case"mute":return'<span class="cv-keyboard-button cv-single-key">m</span>';case"fullscreen":return'<span class="cv-keyboard-button cv-single-key">f</span>';case"exit-fullscreen":return'<span class="cv-keyboard-button cv-single-key">esc</span>'}return""}}]),n}(So),Eo=function(t){wo(n,t);var e=Oo(n);function n(){var t;return bo(this,n),(t=e.apply(this,arguments)).alwaysCollapsed=!0,t.isCollapsed=!1,t.isCollabsible=!0,t}return go(n,[{key:"createItems",value:function(){var t=this,e=[];return e.push(new on(this.player_,{label:"Keyboard Shortcuts"})),ko.forEach((function(n){e.push(new jo(t.player_,n))})),e}},{key:"buildWrapperCSSClass",value:function(){return"cv-menu-small cv-keyboard-shortcuts ".concat(vo(To(n.prototype),"buildWrapperCSSClass",this).call(this))}},{key:"getCollabsibleName",value:function(){return"Keyboard Shortcuts"}},{key:"getCollabsibleValue",value:function(){return""}},{key:"showInCollabsibleMenu",value:function(){return!0}},{key:"showCollapsibleMenu",value:function(){_o.prototype.handleClick.apply(this)}}]),n}(_o);a.a.registerComponent("KeyboardShortcutsButton",Eo);n(1092),n(1093);function Po(t){return(Po="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Ro(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function xo(t,e,n){return(xo="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=Mo(t)););return t}(t,e);if(r){var o=Object.getOwnPropertyDescriptor(r,e);return o.get?o.get.call(n):o.value}})(t,e,n||t)}function Lo(t,e){return(Lo=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Ao(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Mo(t);if(e){var o=Mo(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Bo(this,n)}}function Bo(t,e){return!e||"object"!==Po(e)&&"function"!=typeof e?No(t):e}function No(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Mo(t){return(Mo=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var Uo=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Lo(t,e)}(i,t);var e,n,r,o=Ao(i);function i(t,e){var n;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i),(n=o.call(this,t,e)).addChild("cogButton",{items:n.children_},n.children_.length-1),n.update=n.update.bind(No(n)),n.player_.on("cv-updatecog",n.update),n.player_.on("playerresize",n.update),n.player_.on("dispose",(function(){n.player_.off("cv-updatecog",n.update),n.player_.off("playerresize",n.update)})),n}return e=i,(n=[{key:"togglehidden",value:function(t){for(var e=0;e<this.children_.length;e++){var n=this.children_[e];n.isCollabsible&&(n.alwaysCollapsed||t?(n.isCollapsed=!0,n.addClass("cv-collapsed")):(n.isCollapsed=!1,n.removeClass("cv-collapsed")))}this.getChild("cogButton").update()}},{key:"update",value:function(){var t=this.player_.el().getBoundingClientRect();0!==t.width&&(this.addClass("cv-collapsorator-ready"),this.togglehidden(t.width<600))}},{key:"buildCSSClass",value:function(){return"cv-collapsorator ".concat(xo(Mo(i.prototype),"buildCSSClass",this).call(this))}},{key:"createEl",value:function(t,e,n){return xo(Mo(i.prototype),"createEl",this).call(this,t,Object.assign(Object.assign({},e),{className:this.buildCSSClass()}),n)}}])&&Ro(e.prototype,n),r&&Ro(e,r),i}(a.a.getComponent("Component"));function Do(t){return(Do="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Fo(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function zo(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Vo(t,e){return(Vo=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Ho(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=qo(t);if(e){var o=qo(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Wo(this,n)}}function Wo(t,e){return!e||"object"!==Do(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function qo(t){return(qo=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}Uo.prototype.options_={children:["playToggle","volumePanel","customControlSpacer","playbackRateMenuButton","chaptersButton","qualityButton","keyboardShortcutsButton","subsCapsButton","whiteboardModeButton","subtitleSizeButton","subtitleSearchButton","fullscreenToggle"]},a.a.registerComponent("collapserator",Uo);var Go=a.a.getComponent("SeekBar"),Qo=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Vo(t,e)}(i,t);var e,n,r,o=Ho(i);function i(){return Fo(this,i),o.apply(this,arguments)}return e=i,(n=[{key:"handleMouseDown",value:function(t){Go.prototype.handleMouseDown.call(this,t),this.player_.addClass("cv-disable-play-pause-feedback")}},{key:"handleMouseUp",value:function(t){var e=this;Go.prototype.handleMouseUp.call(this,t),this.timeoutId&&window.clearTimeout(this.timeoutId),this.timeoutId=window.setTimeout((function(){e.player_.removeClass("cv-disable-play-pause-feedback")}),500)}}])&&zo(e.prototype,n),r&&zo(e,r),i}(Go);a.a.registerComponent("SeekBar",Qo);n(1094);function Ko(t){return(Ko="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Zo(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function $o(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Xo(t,e,n){return(Xo="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=ei(t)););return t}(t,e);if(r){var o=Object.getOwnPropertyDescriptor(r,e);return o.get?o.get.call(n):o.value}})(t,e,n||t)}function Yo(t,e){return(Yo=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Jo(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=ei(t);if(e){var o=ei(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return ti(this,n)}}function ti(t,e){return!e||"object"!==Ko(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function ei(t){return(ei=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var ni=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Yo(t,e)}(i,t);var e,n,r,o=Jo(i);function i(){return Zo(this,i),o.apply(this,arguments)}return e=i,(n=[{key:"buildCSSClass",value:function(){return"cv-chapter-bar-items ".concat(Xo(ei(i.prototype),"buildCSSClass",this).call(this))}},{key:"createEl",value:function(t,e,n){return Xo(ei(i.prototype),"createEl",this).call(this,t,Object.assign(Object.assign({},e),{className:this.buildCSSClass()}),n)}},{key:"update",value:function(){this.children_.forEach((function(t){t.update()}))}},{key:"updateBuffered",value:function(){var t=this;this.children_.forEach((function(e){e.updateBuffered(function(t){for(var e=t.buffered(),n=t.currentTime(),r=0,o=0;o<e.length;o++){var i=e.start(o),a=e.end(o);if(i<=n&&a>=n){r=a;break}}return r}(t.player_))}))}}])&&$o(e.prototype,n),r&&$o(e,r),i}(a.a.getComponent("Component"));function ri(t){return(ri="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function oi(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function ii(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function ai(t,e,n){return(ai="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=si(t)););return t}(t,e);if(r){var o=Object.getOwnPropertyDescriptor(r,e);return o.get?o.get.call(n):o.value}})(t,e,n||t)}function ci(t,e){return(ci=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function ui(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=si(t);if(e){var o=si(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return li(this,n)}}function li(t,e){return!e||"object"!==ri(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function si(t){return(si=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var fi=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&ci(t,e)}(i,t);var e,n,r,o=ui(i);function i(){return oi(this,i),o.apply(this,arguments)}return e=i,(n=[{key:"buildCSSClass",value:function(){return"cv-chapter-bar-load-progress ".concat(ai(si(i.prototype),"buildCSSClass",this).call(this))}},{key:"createEl",value:function(t,e,n){return ai(si(i.prototype),"createEl",this).call(this,t,Object.assign(Object.assign({},e),{className:this.buildCSSClass()}),n)}},{key:"update",value:function(t){this.el_.style.width=100*t+"%"}}])&&ii(e.prototype,n),r&&ii(e,r),i}(a.a.getComponent("Component"));function pi(t){return(pi="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function yi(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function di(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function hi(t,e,n){return(hi="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=gi(t)););return t}(t,e);if(r){var o=Object.getOwnPropertyDescriptor(r,e);return o.get?o.get.call(n):o.value}})(t,e,n||t)}function vi(t,e){return(vi=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function bi(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=gi(t);if(e){var o=gi(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return mi(this,n)}}function mi(t,e){return!e||"object"!==pi(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function gi(t){return(gi=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var wi=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&vi(t,e)}(i,t);var e,n,r,o=bi(i);function i(){return yi(this,i),o.apply(this,arguments)}return e=i,(n=[{key:"buildCSSClass",value:function(){return"cv-chapter-bar-play-progress ".concat(hi(gi(i.prototype),"buildCSSClass",this).call(this))}},{key:"createEl",value:function(t,e,n){return hi(gi(i.prototype),"createEl",this).call(this,t,Object.assign(Object.assign({},e),{className:this.buildCSSClass()}),n)}},{key:"update",value:function(t){t>0&&t<1?this.addClass("cv-current"):this.removeClass("cv-current"),this.el_.style.width=100*t+"%"}}])&&di(e.prototype,n),r&&di(e,r),i}(a.a.getComponent("Component"));function Ci(t){return(Ci="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Oi(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Ii(t,e,n){return(Ii="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=ki(t)););return t}(t,e);if(r){var o=Object.getOwnPropertyDescriptor(r,e);return o.get?o.get.call(n):o.value}})(t,e,n||t)}function Ti(t,e){return(Ti=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Si(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=ki(t);if(e){var o=ki(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return _i(this,n)}}function _i(t,e){return!e||"object"!==Ci(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function ki(t){return(ki=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var ji=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Ti(t,e)}(i,t);var e,n,r,o=Si(i);function i(t,e){var n;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i),(n=o.call(this,t,e)).playProgress=new wi(n.player_),n.addChild(n.playProgress),n.loadProgress=new fi(n.player_),n.addChild(n.loadProgress),n.update(),n.updateBuffered(0),n}return e=i,(n=[{key:"buildCSSClass",value:function(){return"cv-chapter-bar-item ".concat(Ii(ki(i.prototype),"buildCSSClass",this).call(this))}},{key:"createEl",value:function(t,e,n){return Ii(ki(i.prototype),"createEl",this).call(this,t,Object.assign(Object.assign({},e),{className:this.buildCSSClass()}),n)}},{key:"getCurrentTime",value:function(){return this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime()}},{key:"update",value:function(){var t=this.player_.duration()||3600,e=this.options_.endTime-this.options_.startTime;if(t!==this.duration_){var n=e/t;this.el_.style.width=100*n+"%";var r=this.options_.startTime/t;this.el_.style.left=100*r+"%",this.duration_=t}var o=this.getCurrentTime();o<this.options_.startTime?this.playProgress.update(0):o>this.options_.endTime?this.playProgress.update(1):this.playProgress.update((o-this.options_.startTime)/e)}},{key:"updateBuffered",value:function(t){var e=this.options_.endTime-this.options_.startTime;t<this.options_.startTime?this.loadProgress.update(0):t>this.options_.endTime?this.loadProgress.update(1):this.loadProgress.update((t-this.options_.startTime)/e)}}])&&Oi(e.prototype,n),r&&Oi(e,r),i}(a.a.getComponent("Component"));function Ei(t){return(Ei="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Pi(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Ri(t,e,n){return(Ri="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=Ni(t)););return t}(t,e);if(r){var o=Object.getOwnPropertyDescriptor(r,e);return o.get?o.get.call(n):o.value}})(t,e,n||t)}function xi(t,e){return(xi=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Li(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Ni(t);if(e){var o=Ni(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Ai(this,n)}}function Ai(t,e){return!e||"object"!==Ei(e)&&"function"!=typeof e?Bi(t):e}function Bi(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Ni(t){return(Ni=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var Mi=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&xi(t,e)}(i,t);var e,n,r,o=Li(i);function i(t,e){var n;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i),(n=o.call(this,t,e)).onDurationChange=n.onDurationChange.bind(Bi(n)),n.createChapterItems=n.createChapterItems.bind(Bi(n)),n.updateBuffered=n.updateBuffered.bind(Bi(n)),Br(n.player_,"chapters",null,n.createChapterItems),n.player_.on("durationchange",n.onDurationChange),n.player_.on("progress",n.updateBuffered),n.createChapterItems(),n.update(),n}return e=i,(n=[{key:"dispose",value:function(){this.player_.off("durationchange",this.onDurationChange),this.player_.off("progress",this.updateBuffered),Ri(Ni(i.prototype),"dispose",this).call(this)}},{key:"createEl",value:function(){return a.a.dom.createEl("div",{className:"vjs-progress-holder cv-chapter-seek-bar"},{"aria-label":this.localize("Progress Bar")})}},{key:"onDurationChange",value:function(){this.createChapterItems(),this.update()}},{key:"update",value:function(){var t=Ri(Ni(i.prototype),"update",this).call(this);return this.chapterBarItems&&this.chapterBarItems.update(),t}},{key:"updateBuffered",value:function(){this.chapterBarItems.updateBuffered()}},{key:"createChapterItems",value:function(t){var e,n;t&&(this.track_=t);var r=new ni(this.player_);if((null===(n=null===(e=this.track_)||void 0===e?void 0:e.cues)||void 0===n?void 0:n.length)&&!this.options_.ignoreChapters)for(var o=0;o<this.track_.cues.length;o++){var i=this.track_.cues[o],a=i.startTime,c=i.endTime,u=this.player_.duration();u&&(o===this.track_.cues.length-1&&i.endTime<this.player_.duration()&&(c=this.player_.duration()),c>u&&(c=u));var l=new ji(this.player_,{startTime:a,endTime:c});if(r.addChild(l),u&&c===u)break}else r.addChild(new ji(this.player_,{startTime:0,endTime:this.player_.duration()||3600}));this.chapterBarItems&&this.removeChild(this.chapterBarItems),this.chapterBarItems=r,this.addChild(this.chapterBarItems)}}])&&Pi(e.prototype,n),r&&Pi(e,r),i}(a.a.getComponent("SeekBar"));Mi.prototype.options_={children:["playProgressBar"],barName:"playProgressBar"},a.a.browser.IS_IOS||a.a.browser.IS_ANDROID||Mi.prototype.options_.children.splice(1,0,"mouseTimeDisplay"),a.a.registerComponent("ChapterSeekBar",Mi);n(1095);function Ui(t){return(Ui="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Di(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Fi(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function zi(t,e,n){return(zi="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=qi(t)););return t}(t,e);if(r){var o=Object.getOwnPropertyDescriptor(r,e);return o.get?o.get.call(n):o.value}})(t,e,n||t)}function Vi(t,e){return(Vi=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Hi(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=qi(t);if(e){var o=qi(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Wi(this,n)}}function Wi(t,e){return!e||"object"!==Ui(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function qi(t){return(qi=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var Gi=a.a.getComponent("ProgressControl"),Qi=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Vi(t,e)}(i,t);var e,n,r,o=Hi(i);function i(){var t;return Di(this,i),(t=o.apply(this,arguments)).seekBarName_="seekBar",t}return e=i,(n=[{key:"setSeekBarName",value:function(t){this.seekBarName_=t}},{key:"getChild",value:function(t){return(null==t?void 0:t.toLowerCase())==="seekBar".toLowerCase()&&(t=this.seekBarName_),zi(qi(i.prototype),"getChild",this).call(this,t)}}])&&Fi(e.prototype,n),r&&Fi(e,r),i}(Gi);function Ki(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t;t=t<0?0:t;var n=Math.floor(t%60),r=Math.floor(t/60%60),o=Math.floor(t/3600),i=Math.floor(e/60%60),a=Math.floor(e/3600);return(isNaN(t)||t===1/0)&&(o=r=n="-"),(o=o>0||a>0?o+":":"")+(r=((o||i>=10)&&r<10?"0"+r:r)+":")+(n=n<10?"0"+n:n)}Qi.prototype.options_={children:[]},a.a.registerComponent("ProgressControl",Qi);n(1096);function Zi(t){return(Zi="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function $i(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Xi(t,e,n){return(Xi="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=ea(t)););return t}(t,e);if(r){var o=Object.getOwnPropertyDescriptor(r,e);return o.get?o.get.call(n):o.value}})(t,e,n||t)}function Yi(t,e){return(Yi=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Ji(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=ea(t);if(e){var o=ea(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return ta(this,n)}}function ta(t,e){return!e||"object"!==Zi(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function ea(t){return(ea=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var na=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Yi(t,e)}(i,t);var e,n,r,o=Ji(i);function i(t,e){var n;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i),(n=o.call(this,t,e)).hasCustomChapterText=!1,Br(n.player_,"chapters",!1,(function(t){n.track_=t})),n}return e=i,(n=[{key:"createEl",value:function(){var t=Xi(ea(i.prototype),"createEl",this).call(this);return this.chapter_=a.a.dom.createEl("div"),t.appendChild(this.chapter_),this.time_=a.a.dom.createEl("div"),t.appendChild(this.time_),t}},{key:"updateTime",value:function(t){var e=this.player_.duration();if(a.a.dom.textContent(this.time_,Ki(t,e)),this.track_&&!this.hasCustomChapterText){for(var n=0;n<this.track_.cues.length;n++){var r=this.track_.cues[n],o=r.endTime||e;if(r.startTime<=t&&o>=t)return void a.a.dom.textContent(this.chapter_,r.text)}a.a.dom.textContent(this.chapter_,"")}}},{key:"setCustomChapterText",value:function(t){this.hasCustomChapterText=!!t,a.a.dom.textContent(this.chapter_,null!=t?t:"")}}])&&$i(e.prototype,n),r&&$i(e,r),i}(a.a.getComponent("TimeTooltip"));a.a.registerComponent("TimeTooltip",na);n(1097);function ra(t){return(ra="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function oa(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function ia(t,e,n){return(ia="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=la(t)););return t}(t,e);if(r){var o=Object.getOwnPropertyDescriptor(r,e);return o.get?o.get.call(n):o.value}})(t,e,n||t)}function aa(t,e){return(aa=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function ca(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=la(t);if(e){var o=la(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return ua(this,n)}}function ua(t,e){return!e||"object"!==ra(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function la(t){return(la=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var sa=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&aa(t,e)}(i,t);var e,n,r,o=ca(i);function i(t,e){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i),o.call(this,t,e)}return e=i,(n=[{key:"setTrack",value:function(t){this.track_=t}},{key:"createEl",value:function(){var t=ia(la(i.prototype),"createEl",this).call(this,"div",{className:"cv-thumbnail-display"});return this.img_=a.a.dom.createEl("img"),t.appendChild(this.img_),t}},{key:"enable",value:function(){this.addClass("cv-thumbnail-display-enabled")}},{key:"disable",value:function(){this.removeClass("cv-thumbnail-display-enabled")}},{key:"parseImageLink",value:function(t){var e=t.indexOf("#");if(-1===e)return{src:t,w:0,h:0,x:0,y:0};var n=t.substr(0,e),r=t.substr(e+1);if("xywh="!==r.substr(0,5))return{src:t,w:0,h:0,x:0,y:0};var o=this.getScale(),i=r.substr(5).split(",");return{src:n,w:parseInt(i[2])*o,h:parseInt(i[3])*o,x:parseInt(i[0])*o,y:parseInt(i[1])*o}}},{key:"getScale",value:function(){var t=this.options_.scaleFactor,e=this.player_.whiteboardModePlugin().side;return this.player_.isFullscreen()&&"bottom"!==e&&(t*=2),t}},{key:"update",value:function(t){var e,n;if(null===(n=null===(e=this.track_)||void 0===e?void 0:e.cues)||void 0===n?void 0:n.length){for(var r,o=t,i=0;i<this.track_.cues.length;){var a=this.track_.cues[i];if(a.startTime<=o&&a.endTime>=o){r=this.parseImageLink(a.text);break}i++}if(null==r?void 0:r.src){this.enable();var c=r,u=c.src,l=c.w,s=c.h,f=c.x,p=c.y,y=this.getScale();this.img_.src=u,this.img_.style.left=-f+"px",this.img_.style.top=-p+"px",this.img_.style.transformOrigin="0 0",this.img_.style.transform="scale(".concat(y,")"),this.el_.style.width=l+"px",this.el_.style.height=s+"px"}else this.disable()}}}])&&oa(e.prototype,n),r&&oa(e,r),i}(a.a.getComponent("Component"));sa.prototype.options_={scaleFactor:1},a.a.registerComponent("ThumbnailDisplay",sa);n(1098);function fa(t){return(fa="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function pa(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function ya(t,e){return(ya=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function da(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=ba(t);if(e){var o=ba(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return ha(this,n)}}function ha(t,e){return!e||"object"!==fa(e)&&"function"!=typeof e?va(t):e}function va(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function ba(t){return(ba=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var ma=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&ya(t,e)}(i,t);var e,n,r,o=da(i);function i(t,e){var n;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i),n=o.call(this,t,e),Br(n.player_,"metadata","thumbnails",(function(t){n.getChild("ThumbnailDisplay").setTrack(t)})),n.update=n.update.bind(va(n)),n.player_.on("durationchange",n.update),n.player_.one("dispose",(function(){n.player_.off("durationchange",n.update)})),n}return e=i,(n=[{key:"update",value:function(t,e){var n=this;this.requestAnimationFrame((function(){var r=e*n.player_.duration();n.getChild("ThumbnailDisplay").update(r),n.getChild("TimeTooltip").updateTime(r);var o=n.el_.getBoundingClientRect();n.el_.style.marginLeft=-o.width/2+"px";var i=t.width*e;i<o.width/2?n.el_.style.left=o.width/2+"px":i>t.width-o.width/2?n.el_.style.left=t.width-o.width/2+"px":n.el_.style.left=t.width*e+"px"}))}},{key:"forceShow",value:function(){this.addClass("cv-mouse-time-display-force-show")}},{key:"removeForceShow",value:function(){this.removeClass("cv-mouse-time-display-force-show")}}])&&pa(e.prototype,n),r&&pa(e,r),i}(a.a.getComponent("MouseTimeDisplay"));ma.prototype.options_={children:["ThumbnailDisplay","TimeTooltip"]},a.a.registerComponent("MouseTimeDisplay",ma);n(1099);function ga(t){return(ga="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function wa(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Ca(t,e,n){return(Ca="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=Sa(t)););return t}(t,e);if(r){var o=Object.getOwnPropertyDescriptor(r,e);return o.get?o.get.call(n):o.value}})(t,e,n||t)}function Oa(t,e){return(Oa=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Ia(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Sa(t);if(e){var o=Sa(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Ta(this,n)}}function Ta(t,e){return!e||"object"!==ga(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Sa(t){return(Sa=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var _a=a.a.getComponent("ChaptersTrackMenuItem"),ka=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Oa(t,e)}(i,t);var e,n,r,o=Ia(i);function i(t,e){var n;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i),(n=o.call(this,t,e)).nonIconControl=!1,n.thumbnailDisplay=new sa(n.player_,{scaleFactor:.5}),n.el().insertBefore(n.thumbnailDisplay.el(),n.el().firstChild),Br(n.player_,"metadata","thumbnails",(function(t){n.addClass("cv-has-thumbnails"),n.thumbnailDisplay.setTrack(t),n.thumbnailDisplay.update(n.options_.cue.startTime)})),n}return e=i,(n=[{key:"update",value:function(){this.player_&&_a.prototype.update.call(this)}},{key:"buildCSSClass",value:function(){return"vjs-menu-item cv-chapter-menu-item"}},{key:"createEl",value:function(t,e,n){return this.nonIconControl=!0,Ca(Sa(i.prototype),"createEl",this).call(this,"li",Object.assign({className:this.buildCSSClass(),innerHTML:this.getInnerHTML(),tabIndex:-1},e),n)}},{key:"getInnerHTML",value:function(){var t=this.player_.duration();return'<span class="vjs-menu-item-text cv-chapter-menu-item-text">'+"<p>".concat(this.localize(this.options_.label),"</p>")+"<p>(".concat(Ki(this.options_.cue.startTime,t),")</p>")+"</span>"}}])&&wa(e.prototype,n),r&&wa(e,r),i}(_a);n(1100);function ja(t){return(ja="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Ea(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Pa(t,e,n){return(Pa="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=Ba(t)););return t}(t,e);if(r){var o=Object.getOwnPropertyDescriptor(r,e);return o.get?o.get.call(n):o.value}})(t,e,n||t)}function Ra(t,e){return(Ra=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function xa(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Ba(t);if(e){var o=Ba(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return La(this,n)}}function La(t,e){return!e||"object"!==ja(e)&&"function"!=typeof e?Aa(t):e}function Aa(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Ba(t){return(Ba=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var Na=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Ra(t,e)}(i,t);var e,n,r,o=xa(i);function i(t,e,n){var r;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i),(r=o.call(this,t,e,n)).alwaysCollapsed=!1,r.isCollapsed=!1,r.isCollabsible=!0,r.update=r.update.bind(Aa(r)),r.player_.on("cv-whiteboard-change",r.update),r.player_.on("fullscreenchange",r.update),r.player_.on("dispose",(function(){r.player_.off("cv-whiteboard-change",r.update),r.player_.off("fullscreenchange",r.update)})),r}return e=i,(n=[{key:"buildCSSClass",value:function(){return"cv-chapters-button ".concat(Pa(Ba(i.prototype),"buildCSSClass",this).call(this))}},{key:"buildWrapperCSSClass",value:function(){return"cv-menu-big ".concat(Pa(Ba(i.prototype),"buildWrapperCSSClass",this).call(this))}},{key:"createItems",value:function(){var t=[];if(!this.track_)return t;var e=this.track_.cues;if(!e)return t;for(var n=0,r=e.length;n<r;n++){var o=e[n],i=new ka(this.player_,{track:this.track_,cue:o});t.push(i)}return t}},{key:"setTrack",value:function(t){var e=this;Pa(Ba(i.prototype),"setTrack",this).call(this,t),this.track_&&"chapters"===this.track_.kind&&t.one("loadeddata",(function(){e.update()}))}},{key:"update",value:function(t){Pa(Ba(i.prototype),"update",this).call(this,t)}},{key:"getCollabsibleName",value:function(){return"Chapters"}},{key:"getCollabsibleValue",value:function(){var t=this.track_.activeCues[0];return(null==t?void 0:t.text)||""}},{key:"showInCollabsibleMenu",value:function(){if(!this.track_)return!1;var t=this.track_.cues;return!(!t||!t.length)}},{key:"showCollapsibleMenu",value:function(){this.handleClick(null)}}])&&Ea(e.prototype,n),r&&Ea(e,r),i}(a.a.getComponent("ChaptersButton"));function Ma(t){return(Ma="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Ua(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Da(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Fa(t,e){return(Fa=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function za(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Ha(t);if(e){var o=Ha(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Va(this,n)}}function Va(t,e){return!e||"object"!==Ma(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Ha(t){return(Ha=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}a.a.registerComponent("ChaptersButton",Na);var Wa=a.a.getComponent("OffTextTrackMenuItem"),qa=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Fa(t,e)}(i,t);var e,n,r,o=za(i);function i(){return Ua(this,i),o.apply(this,arguments)}return e=i,(n=[{key:"handleClick",value:function(t){Wa.prototype.handleClick.call(this,t),this.player_.trigger("cv:languageselected")}}])&&Da(e.prototype,n),r&&Da(e,r),i}(Wa);function Ga(t){return(Ga="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Qa(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Ka(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Za(t,e){return(Za=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function $a(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Ya(t);if(e){var o=Ya(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Xa(this,n)}}function Xa(t,e){return!e||"object"!==Ga(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Ya(t){return(Ya=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}a.a.registerComponent("OffTextTrackMenuItem",qa);var Ja=a.a.getComponent("TextTrackButton"),tc=a.a.getComponent("TextTrackMenuItem"),ec=a.a.getComponent("OffTextTrackMenuItem"),nc=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Za(t,e)}(i,t);var e,n,r,o=$a(i);function i(){return Qa(this,i),o.apply(this,arguments)}return e=i,(n=[{key:"createItems",value:function(){var t,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:tc;this.label_&&(t="".concat(this.label_," off")),e.push(new ec(this.player_,{kinds:this.kinds_,kind:this.kind_,label:t})),this.hideThreshold_+=1;var r=this.player_.textTracks();Array.isArray(this.kinds_)||(this.kinds_=[this.kind_]);for(var o=0;o<r.length;o++){var i=r[o];if(this.kinds_.indexOf(i.kind)>-1){var a=new n(this.player_,{track:i,kinds:this.kinds_,kind:this.kind_,selectable:!0,multiSelectable:!1});a.addClass("vjs-".concat(i.kind,"-menu-item")),e.push(a)}}return e}}])&&Ka(e.prototype,n),r&&Ka(e,r),i}(Ja);function rc(t){return(rc="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function oc(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function ic(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function ac(t,e){return(ac=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function cc(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=lc(t);if(e){var o=lc(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return uc(this,n)}}function uc(t,e){return!e||"object"!==rc(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function lc(t){return(lc=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}a.a.registerComponent("TextTrackButton",nc);var sc=a.a.getComponent("SubsCapsMenuItem"),fc=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&ac(t,e)}(i,t);var e,n,r,o=cc(i);function i(){return oc(this,i),o.apply(this,arguments)}return e=i,(n=[{key:"handleClick",value:function(t){sc.prototype.handleClick.call(this,t),this.player_.trigger("cv:languageselected")}}])&&ic(e.prototype,n),r&&ic(e,r),i}(sc);function pc(t){return(pc="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function yc(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function dc(t,e){return(dc=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function hc(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=bc(t);if(e){var o=bc(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return vc(this,n)}}function vc(t,e){return!e||"object"!==pc(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function bc(t){return(bc=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var mc=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&dc(t,e)}(i,t);var e,n,r,o=hc(i);function i(t){var e;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i);var n={};return n.track={player:t,kind:"subtitle",label:"Caption Text Size",selectable:!1,default:!1,mode:"disabled"},n.selectable=!1,n.name="SubtitleSizeMenuItem",(e=o.call(this,t,n)).addClass("vjs-texttrack-settings"),e.addClass("cv-divider-after-menu-item"),e.addClass("cv-subtitle-size-menu-item"),e.controlText(", opens subtitle size settings"),e}return e=i,(n=[{key:"handleClick",value:function(){var t=this;this.requestAnimationFrame((function(){t.player_.getChild("collapserator").getChild("subtitleSizeButton").showCollapsibleMenu()}))}}])&&yc(e.prototype,n),r&&yc(e,r),i}(a.a.getComponent("TextTrackMenuItem"));function gc(t){return(gc="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function wc(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Cc(t,e){return(Cc=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Oc(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Sc(t);if(e){var o=Sc(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Ic(this,n)}}function Ic(t,e){return!e||"object"!==gc(e)&&"function"!=typeof e?Tc(t):e}function Tc(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Sc(t){return(Sc=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var _c=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Cc(t,e)}(i,t);var e,n,r,o=Oc(i);function i(t){var e;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i);var n={};n.track={player:t,kind:"subtitle",label:"Search Captions",selectable:!1,default:!1,mode:"disabled"},n.selectable=!1,n.name="SubtitleSearchMenuItem",(e=o.call(this,t,n)).addClass("vjs-texttrack-settings"),e.addClass("cv-subtitle-search-menu-item"),e.controlText(", opens subtitle search"),e.toggleEnabled=e.toggleEnabled.bind(Tc(e));var r=e.player_.textTracks();return r.addEventListener("selectedlanguagechange",e.toggleEnabled),e.player_.one("dispose",(function(){r.removeEventListener("selectedlanguagechange",e.toggleEnabled)})),e.toggleEnabled(),e}return e=i,(n=[{key:"toggleEnabled",value:function(){var t;if(this.player_){var e=Nr(this.player_);e?(null===(t=e.cues)||void 0===t?void 0:t.length)?this.removeClass("vjs-disabled"):(this.bindTrackEvents(e),this.addClass("vjs-disabled")):this.addClass("vjs-disabled")}}},{key:"bindTrackEvents",value:function(t){var e=this;t.removeEventListener("loadeddata",this.toggleEnabled),t.addEventListener("loadeddata",this.toggleEnabled),this.player_.one("dispose",(function(){t.removeEventListener("loadeddata",e.toggleEnabled)}))}},{key:"handleClick",value:function(){var t,e=this,n=Nr(this.player_);(null===(t=null==n?void 0:n.cues)||void 0===t?void 0:t.length)&&this.requestAnimationFrame((function(){e.player_.getChild("collapserator").getChild("subtitleSearchButton").showCollapsibleMenu()}))}}])&&wc(e.prototype,n),r&&wc(e,r),i}(a.a.getComponent("TextTrackMenuItem"));function kc(t){return(kc="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function jc(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Ec(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Pc(t,e,n){return(Pc="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=Ac(t)););return t}(t,e);if(r){var o=Object.getOwnPropertyDescriptor(r,e);return o.get?o.get.call(n):o.value}})(t,e,n||t)}function Rc(t,e){return(Rc=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function xc(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Ac(t);if(e){var o=Ac(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Lc(this,n)}}function Lc(t,e){return!e||"object"!==kc(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Ac(t){return(Ac=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var Bc=a.a.getComponent("OffTextTrackMenuItem"),Nc=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Rc(t,e)}(i,t);var e,n,r,o=xc(i);function i(){return jc(this,i),o.apply(this,arguments)}return e=i,(n=[{key:"createEl",value:function(t,e,n){return Pc(Ac(i.prototype),"createEl",this).call(this,"li",Object.assign(Object.assign({className:"vjs-menu-item",tabIndex:-1},e),{innerHTML:'<span class="vjs-menu-item-text">Off</span>'}),n)}}])&&Ec(e.prototype,n),r&&Ec(e,r),i}(Bc);Bc.prototype=Nc.prototype,a.a.registerComponent("OffTextTrackMenuItem",Nc);n(1101);function Mc(t){return(Mc="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Uc(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Dc(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Fc(t,e,n){return(Fc="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=Wc(t)););return t}(t,e);if(r){var o=Object.getOwnPropertyDescriptor(r,e);return o.get?o.get.call(n):o.value}})(t,e,n||t)}function zc(t,e){return(zc=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Vc(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Wc(t);if(e){var o=Wc(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Hc(this,n)}}function Hc(t,e){return!e||"object"!==Mc(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Wc(t){return(Wc=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var qc=a.a.getComponent("TextTrackButton"),Gc=a.a.getComponent("SubsCapsButton"),Qc=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&zc(t,e)}(i,t);var e,n,r,o=Vc(i);function i(){var t;return Uc(this,i),(t=o.apply(this,arguments)).alwaysCollapsed=!1,t.isCollapsed=!1,t.isCollabsible=!0,t}return e=i,(n=[{key:"buildWrapperCSSClass",value:function(){return"cv-menu-small cv-has-left-icons ".concat(Fc(Wc(i.prototype),"buildWrapperCSSClass",this).call(this))}},{key:"createItems",value:function(){var t=[new _c(this.player_),new mc(this.player_)];return this.hideThreshold_=this.hideThreshold_+2,qc.prototype.createItems.call(this,t,fc)}},{key:"getCollabsibleName",value:function(){return"Subtitles"}},{key:"getCollabsibleValue",value:function(){for(var t=this.player_.textTracks(),e=0;e<t.length;e++){var n=t[e];if(this.kinds_.indexOf(n.kind)>-1&&"showing"===n.mode)return n.label}return"Off"}},{key:"showInCollabsibleMenu",value:function(){for(var t=this.player_.textTracks(),e=0;e<t.length;e++){var n=t[e];if(this.kinds_.indexOf(n.kind)>-1)return!0}return!1}},{key:"showCollapsibleMenu",value:function(){Gc.prototype.handleClick.apply(this)}}])&&Dc(e.prototype,n),r&&Dc(e,r),i}(Gc);function Kc(t){return(Kc="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Zc(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function $c(t,e){return($c=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Xc(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=tu(t);if(e){var o=tu(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Yc(this,n)}}function Yc(t,e){return!e||"object"!==Kc(e)&&"function"!=typeof e?Jc(t):e}function Jc(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function tu(t){return(tu=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}a.a.registerComponent("SubsCapsButton",Qc);var eu=function(t,e,n,r){return new(n||(n=Promise))((function(o,i){function a(t){try{u(r.next(t))}catch(t){i(t)}}function c(t){try{u(r.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,c)}u((r=r.apply(t,e||[])).next())}))},nu="<span class='vjs-local-cache-indicator-icon' title='Streaming from ClickView Local Cache'>".concat(Bt,"</span>"),ru=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&$c(t,e)}(i,t);var e,n,r,o=Xc(i);function i(t,e){var n;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i),(n=o.call(this,t,e)).qualityId=e.qualityId;var r=t.qualityLevels(),a=n.handleQualityChange.bind(Jc(n));return r.on("change",a),t.one("dispose",(function(){r.off("change",a)})),n.handleLocalCacheChange=n.handleLocalCacheChange.bind(Jc(n)),n.player_.ready((function(){n.player_&&(n.player_.on("localcachechanged",n.handleLocalCacheChange),n.player_.one("dispose",(function(){var t;null===(t=n.player_)||void 0===t||t.off("localcachechanged",n.handleLocalCacheChange)})),n.handleLocalCacheChange())})),n}return e=i,(n=[{key:"handleLocalCacheChange",value:function(){return eu(this,void 0,void 0,regeneratorRuntime.mark((function t(){var e,n;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e=this.player_.localCache(),t.next=3,e.getActiveLocalCache();case 3:if(null==(n=t.sent)?void 0:n.playbackProfile){t.next=9;break}return this.show(),this.enable(),this.setLabel(this.options_.label),t.abrupt("return");case 9:n.playbackProfile!==this.qualityId?this.disable():this.setLabel(this.options_.label+nu);case 10:case"end":return t.stop()}}),t,this)})))}},{key:"setLabel",value:function(t){var e=this.$(".vjs-menu-item-text");e&&(e.innerHTML=t)}},{key:"buildCSSClass",value:function(){return"vjs-menu-item cv-quality-menu-item"}},{key:"handleClick",value:function(){for(var t=this.player_.qualityLevels(),e=0;e<t.length;e++){var n=t[e];n.enabled=n.id===this.qualityId}}},{key:"handleQualityChange",value:function(){if(this.player_){var t=this.player_.qualityLevels(),e=t[t.selectedIndex],n=e&&e.id===this.qualityId;n!==this.isSelected_&&this.selected(n)}}}])&&Zc(e.prototype,n),r&&Zc(e,r),i}(a.a.getComponent("MenuItem"));n(1102);function ou(t){return(ou="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function iu(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function au(t,e,n){return(au="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=fu(t)););return t}(t,e);if(r){var o=Object.getOwnPropertyDescriptor(r,e);return o.get?o.get.call(n):o.value}})(t,e,n||t)}function cu(t,e){return(cu=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function uu(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=fu(t);if(e){var o=fu(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return lu(this,n)}}function lu(t,e){return!e||"object"!==ou(e)&&"function"!=typeof e?su(t):e}function su(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function fu(t){return(fu=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var pu={240:"240p",360:"360p",480:"480p",720:"720p",1080:"1080p"},yu=a.a.getComponent("MenuButton"),du=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&cu(t,e)}(i,t);var e,n,r,o=uu(i);function i(t,e){var n;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i),(n=o.call(this,t,e)).alwaysCollapsed=!0,n.isCollapsed=!1,n.isCollabsible=!0;var r=n.player_.qualityLevels(),a=n.update.bind(su(n));return r.on("addqualitylevel",a),r.on("removequalitylevel",a),t.one("dispose",(function(){r.removeEventListener("addqualitylevel",a),r.removeEventListener("removequalitylevel",a)})),n}return e=i,(n=[{key:"buildCSSClass",value:function(){return"cv-quality-button ".concat(au(fu(i.prototype),"buildCSSClass",this).call(this))}},{key:"buildWrapperCSSClass",value:function(){return"cv-menu-small vjs-quality-button cv-has-left-icons ".concat(au(fu(i.prototype),"buildWrapperCSSClass",this).call(this))}},{key:"createItems",value:function(){var t=[],e=this.player_.qualityLevels();t.push(new on(this.player_,{label:"Quality"}));for(var n=0;n<e.length;n++){var r=e[n];if(r){var o=pu[r.id];o&&t.push(new ru(this.player_,{qualityId:r.id,label:o,selectable:!0,multiSelectable:!1}))}}return t}},{key:"getCollabsibleName",value:function(){return"Quality"}},{key:"getCollabsibleValue",value:function(){var t=this.player_.qualityLevels(),e=t[t.selectedIndex];return e?pu[e.id]:""}},{key:"showInCollabsibleMenu",value:function(){return!!this.player_.qualityLevels().length}},{key:"showCollapsibleMenu",value:function(){yu.prototype.handleClick.apply(this)}}])&&iu(e.prototype,n),r&&iu(e,r),i}(yu);a.a.registerComponent("QualityButton",du);n(1103);function hu(t){return(hu="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function vu(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function bu(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function mu(t,e,n){return(mu="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=Ou(t)););return t}(t,e);if(r){var o=Object.getOwnPropertyDescriptor(r,e);return o.get?o.get.call(n):o.value}})(t,e,n||t)}function gu(t,e){return(gu=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function wu(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Ou(t);if(e){var o=Ou(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Cu(this,n)}}function Cu(t,e){return!e||"object"!==hu(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Ou(t){return(Ou=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var Iu=a.a.getComponent("Menu"),Tu=a.a.getComponent("MenuButton"),Su=a.a.getComponent("PlaybackRateMenuItem"),_u=a.a.getComponent("PlaybackRateMenuButton"),ku=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&gu(t,e)}(i,t);var e,n,r,o=wu(i);function i(){var t;return vu(this,i),(t=o.apply(this,arguments)).alwaysCollapsed=!0,t.isCollapsed=!1,t.isCollabsible=!0,t}return e=i,(n=[{key:"createEl",value:function(){for(var t,e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return(t=Tu.prototype.createEl).apply.apply(t,[this].concat(n))}},{key:"buildWrapperCSSClass",value:function(){return"cv-menu-small cv-has-left-icons ".concat(mu(Ou(i.prototype),"buildWrapperCSSClass",this).call(this))}},{key:"createMenu",value:function(){var t=new Iu(this.player(),{menuButton:this});t.addItem(new on(this.player_,{label:"Playback Speed"}));var e=this.playbackRates();if(e)for(var n=0;n<e.length;n++){var r=e[n]+"x";1===e[n]&&(r+=" (Normal)"),t.addItem(new Su(this.player(),{rate:r}))}return t}},{key:"handleClick",value:function(){for(var t,e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return(t=Tu.prototype.handleClick).apply.apply(t,[this].concat(n))}},{key:"updateLabel",value:function(){var t;this.setupLabelEl();for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return(t=_u.prototype.updateLabel).apply.apply(t,[this].concat(n))}},{key:"setupLabelEl",value:function(){if(!this.labelEl_){var t=this.$("button");t&&(this.labelEl_=a.a.dom.createEl("div",{className:"vjs-playback-rate-value",innerHTML:"1x"}),t.appendChild(this.labelEl_))}}},{key:"getCollabsibleName",value:function(){return"Playback Speed"}},{key:"getCollabsibleValue",value:function(){return this.player().playbackRate()+"x"}},{key:"showInCollabsibleMenu",value:function(){return!!this.playbackRates()}},{key:"showCollapsibleMenu",value:function(){this.handleClick(null)}}])&&bu(e.prototype,n),r&&bu(e,r),i}(_u);function ju(t){return(ju="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Eu(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Pu(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Ru(t,e){return(Ru=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function xu(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Au(t);if(e){var o=Au(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Lu(this,n)}}function Lu(t,e){return!e||"object"!==ju(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Au(t){return(Au=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}a.a.registerComponent("PlaybackRateMenuButton",ku);var Bu=a.a.getComponent("TextTrackSettings"),Nu={backgroundColor:"#000",backgroundOpacity:"1",color:"#FFF",edgeStyle:void 0,fontFamily:"proportionalSansSerif",fontPercent:1,textOpacity:"1",windowColor:"#000",windowOpacity:"0"},Mu={small:Nu,medium:Object.assign(Object.assign({},Nu),{fontPercent:1.5}),large:Object.assign(Object.assign({},Nu),{fontPercent:2})},Uu=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Ru(t,e)}(i,t);var e,n,r,o=xu(i);function i(){return Eu(this,i),o.apply(this,arguments)}return e=i,(n=[{key:"setSizeSetting",value:function(t){this.size_=t,this.player_.getChild("textTrackDisplay").updateDisplay(),this.player_.getChild("collapserator").getChild("subtitleSizeButton").update(),this.player_.trigger("resizemenus"),this.player_.trigger("changesubtitlesize",this.size_)}},{key:"getSizeSetting",value:function(){return this.size_||"small"}},{key:"getValues",value:function(){return Mu[this.size_]?Mu[this.size_]:Nu}}])&&Pu(e.prototype,n),r&&Pu(e,r),i}(Bu);a.a.registerComponent("TextTrackSettings",Uu);n(1104);function Du(t){return(Du="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Fu(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function zu(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Vu(t,e,n){return(Vu="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=Gu(t)););return t}(t,e);if(r){var o=Object.getOwnPropertyDescriptor(r,e);return o.get?o.get.call(n):o.value}})(t,e,n||t)}function Hu(t,e){return(Hu=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Wu(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Gu(t);if(e){var o=Gu(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return qu(this,n)}}function qu(t,e){return!e||"object"!==Du(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Gu(t){return(Gu=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var Qu=window.navigator&&window.navigator.userAgent||"",Ku=(/iPod/i.test(Qu),/Android/i.test(Qu),a.a.getComponent("Player")),Zu=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Hu(t,e)}(i,t);var e,n,r,o=Wu(i);function i(){return Fu(this,i),o.apply(this,arguments)}return e=i,(n=[{key:"lock",value:function(t){this.callback_=t}},{key:"unlock",value:function(){delete this.callback_}},{key:"currentTime",value:function(t,e){var n=this;if("number"!=typeof t||!this.callback_||e)return Vu(Gu(i.prototype),"currentTime",this).call(this,t);this.callback_((function(){n.unlock(),n.currentTime(t)}))}},{key:"play",value:function(){var t=this;if(!this.callback_)return Vu(Gu(i.prototype),"play",this).call(this);this.callback_((function(){t.unlock(),t.play()}))}},{key:"updateStyleEl_",value:function(){if(Ku.prototype.updateStyleEl_.call(this),this.options_.fluid){var t=this.el_.parentNode;if(t&&this.options_.setMaxHeight){var e=this.aspectRatio();void 0!==e&&"auto"!==e||(e=this.videoWidth()>0?this.videoWidth()+":"+this.videoHeight():"16:9");var n=e.split(":"),r=+n[1]/+n[0];t.style.maxWidth=85/r+"vh",t.style.margin="0 auto"}}}},{key:"listenForUserActivity_",value:function(){var t=this;Ku.prototype.listenForUserActivity_.call(this);var e=this.getChild("collapserator");e.on("mouseenter",(function(){t.player().cache_.inactivityTimeout=t.player().options_.inactivityTimeout,t.player().options_.inactivityTimeout=0})),e.on("mouseleave",(function(){t.player().options_.inactivityTimeout=t.player().cache_.inactivityTimeout}))}}])&&zu(e.prototype,n),r&&zu(e,r),i}(Ku);Zu.prototype.options_=Object.assign(Object.assign({},Ku.prototype.options_),{setMaxHeight:!0}),a.a.registerComponent("player",Zu);n(1105);function $u(t){return($u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Xu(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Yu(t,e){return(Yu=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Ju(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=nl(t);if(e){var o=nl(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return tl(this,n)}}function tl(t,e){return!e||"object"!==$u(e)&&"function"!=typeof e?el(t):e}function el(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function nl(t){return(nl=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var rl=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Yu(t,e)}(i,t);var e,n,r,o=Ju(i);function i(t,e){var n;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i),(n=o.call(this,t,e)).player_.addClass("cv-disable-play-pause-feedback"),n.onFirstPlay=n.onFirstPlay.bind(el(n)),n.player_.one("firstplay",n.onFirstPlay),n}return e=i,(n=[{key:"dispose",value:function(){this.player_.off("firstplay",this.onFirstPlay)}},{key:"onFirstPlay",value:function(){var t=this;window.setTimeout((function(){t.player_.isDisposed()||t.player_.removeClass("cv-disable-play-pause-feedback")}),500)}},{key:"createEl",value:function(){return a.a.dom.createEl("div",{className:"cv-play-pause-feedback"})}}])&&Xu(e.prototype,n),r&&Xu(e,r),i}(a.a.getComponent("Component"));a.a.registerComponent("PlayPauseFeedback",rl);n(1106);function ol(t){return(ol="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function il(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function al(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function cl(t,e){return(cl=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function ul(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=sl(t);if(e){var o=sl(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return ll(this,n)}}function ll(t,e){return!e||"object"!==ol(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function sl(t){return(sl=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var fl=a.a.getComponent("PlayToggle"),pl=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&cl(t,e)}(i,t);var e,n,r,o=ul(i);function i(){return il(this,i),o.apply(this,arguments)}return e=i,(n=[{key:"handleClick",value:function(t){var e=this;fl.prototype.handleClick.call(this,t),this.player_.addClass("cv-disable-play-pause-feedback"),this.timeoutId&&window.clearTimeout(this.timeoutId),this.timeoutId=window.setTimeout((function(){e.player_.removeClass("cv-disable-play-pause-feedback")}),500)}}])&&al(e.prototype,n),r&&al(e,r),i}(fl);a.a.registerComponent("PlayToggle",pl);n(1107),n(1108),n(1109),n(1110),n(1111);var yl,dl=n(1127),hl=n.n(dl);function vl(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function bl(t){t.paused()?t.play():t.pause()}function ml(t,e){t.currentTime(t.currentTime()+e)}function gl(t,e){t.volume(t.volume()+e)}var wl=(vl(yl={},"f",(function(t){document[t.fsApi_.fullscreenEnabled]&&(t.isFullscreen()?t.exitFullscreen():t.requestFullscreen())})),vl(yl,"m",(function(t){var e=t.volume(),n=t.lastVolume_();if(0===e){var r=n<.1?.1:n;t.volume(r),t.muted(!1)}else t.muted(!t.muted())})),vl(yl,"k",bl),vl(yl,"space",bl),vl(yl,"left",(function(t){return ml(t,-5)})),vl(yl,"right",(function(t){return ml(t,5)})),vl(yl,"j",(function(t){return ml(t,-10)})),vl(yl,"l",(function(t){return ml(t,10)})),vl(yl,"up",(function(t){return gl(t,.05)})),vl(yl,"down",(function(t){return gl(t,-.05)})),yl);function Cl(t){var e=hl()(t);wl[e]&&(["space"].includes(e)&&(t.preventDefault(),t.stopPropagation()),wl[e](this,t))}function Ol(t){return(Ol="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Il(t,e){return!e||"object"!==Ol(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Tl(t){var e="function"==typeof Map?new Map:void 0;return(Tl=function(t){if(null===t||(n=t,-1===Function.toString.call(n).indexOf("[native code]")))return t;var n;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==e){if(e.has(t))return e.get(t);e.set(t,r)}function r(){return Sl(t,arguments,jl(this).constructor)}return r.prototype=Object.create(t.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),kl(r,t)})(t)}function Sl(t,e,n){return(Sl=_l()?Reflect.construct:function(t,e,n){var r=[null];r.push.apply(r,e);var o=new(Function.bind.apply(t,r));return n&&kl(o,n.prototype),o}).apply(null,arguments)}function _l(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}function kl(t,e){return(kl=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function jl(t){return(jl=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var El=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&kl(t,e)}(o,t);var e,n,r=(e=o,n=_l(),function(){var t,r=jl(e);if(n){var o=jl(this).constructor;t=Reflect.construct(r,arguments,o)}else t=r.apply(this,arguments);return Il(this,t)});function o(t,e){var n;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,o),(n=r.call(this,t)).url=e,n}return o}(Tl(Error));function Pl(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var Rl=function(t,e,n,r){return new(n||(n=Promise))((function(o,i){function a(t){try{u(r.next(t))}catch(t){i(t)}}function c(t){try{u(r.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,c)}u((r=r.apply(t,e||[])).next())}))},xl=new(function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.tokens={gateway:null}}var e,n,r;return e=t,(n=[{key:"get",value:function(t,e){return Rl(this,void 0,void 0,regeneratorRuntime.mark((function n(){return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.t0=this,n.next=3,fetch(t,{method:"GET",mode:"cors",headers:this.getHeaders(e)});case 3:return n.t1=n.sent,n.next=6,n.t0.parseResponse.call(n.t0,n.t1);case 6:return n.abrupt("return",n.sent);case 7:case"end":return n.stop()}}),n,this)})))}},{key:"delete",value:function(t,e){return Rl(this,void 0,void 0,regeneratorRuntime.mark((function n(){return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,fetch(t,{method:"DELETE",headers:this.getHeaders(e)});case 2:case"end":return n.stop()}}),n,this)})))}},{key:"post",value:function(t,e,n){return Rl(this,void 0,void 0,regeneratorRuntime.mark((function r(){return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.t0=this,r.next=3,fetch(t,{method:"POST",headers:this.getHeaders(n),body:e,mode:"cors"});case 3:return r.t1=r.sent,r.next=6,r.t0.parseResponse.call(r.t0,r.t1);case 6:return r.abrupt("return",r.sent);case 7:case"end":return r.stop()}}),r,this)})))}},{key:"put",value:function(t,e,n){return Rl(this,void 0,void 0,regeneratorRuntime.mark((function r(){return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.t0=this,r.next=3,fetch(t,{method:"PUT",headers:this.getHeaders(n),body:e,mode:"cors"});case 3:return r.t1=r.sent,r.next=6,r.t0.parseResponse.call(r.t0,r.t1);case 6:return r.abrupt("return",r.sent);case 7:case"end":return r.stop()}}),r,this)})))}},{key:"setToken",value:function(t,e){this.tokens[t]=e}},{key:"getHeaders",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e={"Content-Type":"application/json"};return this.tokens[t.tokenName]&&(e.authorization="Bearer ".concat(this.tokens[t.tokenName])),e}},{key:"parseResponse",value:function(t){return Rl(this,void 0,void 0,regeneratorRuntime.mark((function e(){var n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(404!==t.status){e.next=2;break}return e.abrupt("return",null);case 2:if(t.ok){e.next=4;break}throw new El("Ajax error",t.url);case 4:return e.next=6,t.json();case 6:return n=e.sent,e.abrupt("return",n);case 8:case"end":return e.stop()}}),e)})))}}])&&Pl(e.prototype,n),r&&Pl(e,r),t}()),Ll=n(195),Al=(n(1138),n(1139)),Bl=n.n(Al),Nl=n(1112);function Ml(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(t)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,c=t[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(t){o=!0,i=t}finally{try{r||null==c.return||c.return()}finally{if(o)throw i}}return n}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return Ul(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ul(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ul(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var Dl={mobileDevice:/Mobi/i,iphone:/iphone/i,ipad:/ipad/i,android:/android/i,blackberry:/blackberry/i,windowsPhone:/windows phone/i,iosVersion:/OS\s+([\d_.-:]+)\s/i,androidVersion:/android\s+([\d_.-\/]+)[\s;:,\)]/i,blackberryVersion:/(blackberry|version)\s?\d*\/([\d.]+)/i,windowsPhoneVersion:/windows\sphone.*?([\d_.-\/]+)[\s;:,\)]/i,mac:/Mac/i,unix:/X11/i,linux:/Linux/i,windows:/Win/i,win2000:/nt 5.0/i,winXP:/nt 5.1/i,winVista:/nt 6.0/i,win7:/nt 6.1/i,win8:/nt 6.2/i,win81:/nt 6.3/i,win10:/nt 10.0/i,osxVersion:/OS\sX\s([\d_.]+)/i,chrome:/^(?!.*Edge).*Chrome/i,safari:/^(?!.*(?:Chrome|Edge)).*Safari/i,edge:/edge/i,ie:/(msie|trident)/i,opera:/(opr|opera)/i,firefox:/firefox/i,generalVersion:/(chrome|firefox|version)\/(\d+.*?)(\s|$)/i,operaVersion:/(opr|opera)\/(\d+).*?(\s|$)/i,ieVersion:/MSIE\s+(\d+).*?/i,edgeVersion:/(edge)\/(\d+).*?(\s|$)/i};function Fl(t,e,n){var r=Ml(e.exec(n)||[],1)[0];return r||(r="Unknown"),{name:t,version:r}}function zl(t,e,n){if(!e)return{name:t,version:"Unknown"};var r=e.exec(n);return{name:t,version:r&&r.length?r[0].trim():"Unknown"}}var Vl=function(){var t=window.navigator.userAgent;return Dl.android.test(t)?zl("Android",Dl.androidVersion,t):Dl.iphone.test(t)||Dl.ipad.test(t)?zl("iOS",Dl.iosVersion,t):Dl.linux.test(t)?zl("Linux",null,t):Dl.unix.test(t)?zl("Unix",null,t):Dl.mac.test(t)?zl("Macintosh",Dl.osxVersion,t):Dl.windows.test(t)?function(t,e){var n={name:t,version:null};return Dl.win2000.test(e)&&(n.version="2000"),Dl.winXP.test(e)&&(n.version="XP"),Dl.winVista.test(e)&&(n.version="Vista"),Dl.win7.test(e)&&(n.version="7"),Dl.win8.test(e)&&(n.version="8"),Dl.win81.test(e)&&(n.version="8.1"),Dl.win10.test(e)&&(n.version="10"),n.version||(n.version="Unknown"),n}("Windows",t):Dl.blackberry.test(t)?zl("BlackBerry",Dl.blackberryVersion,t):Dl.windowsPhone.test(t)?zl("Windows Phone",Dl.windowsPhoneVersion,t):{name:"Unknown",version:"Unknown"}},Hl=function(){var t=window.navigator.userAgent;return Dl.chrome.test(t)?Fl("Chrome",Dl.generalVersion,t):Dl.firefox.test(t)?Fl("Firefox",Dl.generalVersion,t):Dl.safari.test(t)?Fl("Safari",Dl.generalVersion,t):Dl.ie.test(t)?Fl("Internet Explorer",Dl.ieVersion,t):Dl.edge.test(t)?Fl("Edge",Dl.edgeVersion,t):Dl.opera.test(t)?Fl("Opera",Dl.operaVersion,t):{name:"Unknown",version:"Unknown"}};function Wl(t){return(Wl="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var ql,Gl=function(t){var e=Wl(t);return"function"===e||"object"===e&&!!t},Ql=function(t){return"function"==typeof t},Kl=n(266),Zl=n(258);!function(t){t.CvApSoutheast1="cv-ap-southeast-1",t.CvApSoutheast2="cv-ap-southeast-2",t.CvEuWest1="cv-eu-west-1",t.CvNaWest1="cv-na-west-1"}(ql||(ql={}));var $l={CvApSoutheast1:{systemName:ql.CvApSoutheast1},CvApSoutheast2:{systemName:ql.CvApSoutheast2},CvEuWest1:{systemName:ql.CvEuWest1},CvNaWest1:{systemName:ql.CvNaWest1}};function Xl(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var Yl=function(t,e,n,r){return new(n||(n=Promise))((function(o,i){function a(t){try{u(r.next(t))}catch(t){i(t)}}function c(t){try{u(r.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,c)}u((r=r.apply(t,e||[])).next())}))},Jl=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.options=e,this.initialize()}var e,n,r;return e=t,(n=[{key:"initialize",value:function(){this.validateOptions()}},{key:"name",get:function(){return"CollectionApiClient"}},{key:"log",value:function(t){return Yl(this,void 0,void 0,regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!Array.isArray(t)){e.next=2;break}return e.abrupt("return",this.logBulk(t));case 2:if(this.shouldLog(t)){e.next=4;break}return e.abrupt("return");case 4:return this.validateEvent(t),e.t0=this,e.next=8,this.formatData(t);case 8:return e.t1=e.sent,e.next=11,e.t0.postData.call(e.t0,e.t1);case 11:case"end":return e.stop()}}),e,this)})))}},{key:"logBulk",value:function(t){return Yl(this,void 0,void 0,regeneratorRuntime.mark((function e(){var n,r,o=this;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if((n=t.filter((function(t){return o.shouldLog(t)}))).length){e.next=3;break}return e.abrupt("return");case 3:return n.forEach((function(t){return o.validateEvent(t)})),e.next=6,Promise.all(n.map((function(t){return o.formatData(t)})));case 6:return r=e.sent,e.next=9,this.postData(r);case 9:case"end":return e.stop()}}),e,this)})))}},{key:"validateOptions",value:function(){if(!Ql(this.options.getUser))throw new Error("getUser option is required.")}},{key:"shouldLog",value:function(t){return!Ql(this.options.shouldLog)||this.options.shouldLog(t)}},{key:"postData",value:function(t){return Yl(this,void 0,void 0,regeneratorRuntime.mark((function e(){var n,r,o,i,a;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.getRegionalUrl(this.options.collectionApiUrls);case 2:return n=e.sent,r=JSON.stringify(t),o=Object.assign({"Content-Type":"application/json"},this.getSignatureHeader(r)),i=Kl.a.safeUrlConcat(n,"/v1/ingest"),Array.isArray(t)&&(i=Kl.a.safeUrlConcat(i,"/bulk")),e.prev=7,e.next=10,fetch(i,{method:"POST",mode:"cors",headers:o,body:r});case 10:(a=e.sent).ok||this.logError(new Error("CollectionApiClient failed to log event. Status: ".concat(a.status," ").concat(a.statusText))),e.next=17;break;case 14:e.prev=14,e.t0=e.catch(7),this.logError(e.t0);case 17:case"end":return e.stop()}}),e,this,[[7,14]])})))}},{key:"getSignatureHeader",value:function(t){var e=new Bl.a("SHA-1","TEXT",{hmacKey:{value:"zXJL9nOHxzDlMUDjiP41",format:"TEXT",encoding:"UTF8"}});return e.update(t),{"cv-analytics-signature":"".concat(this.options.collectionApiClientId,".").concat(e.getHash("B64"))}}},{key:"getRegionalUrl",value:function(t){return Yl(this,void 0,void 0,regeneratorRuntime.mark((function e(){var n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.getRegion();case 2:n=e.sent,e.t0=n.systemName,e.next=e.t0===ql.CvEuWest1?6:e.t0===ql.CvApSoutheast2?7:e.t0===ql.CvNaWest1?8:(e.t0,ql.CvApSoutheast1,9);break;case 6:return e.abrupt("return",t.cvEuWest1);case 7:return e.abrupt("return",t.cvApSoutheast2);case 8:return e.abrupt("return",t.cvNaWest1);case 9:return e.abrupt("return",t.cvApSoutheast1);case 10:case"end":return e.stop()}}),e,this)})))}},{key:"validateEvent",value:function(t){"string"!=typeof t.type&&this.logError(new Error("Event type is required."),!0),Gl(t.actionContext)||this.logError(new Error("Event actionContext is required."),!0),t.actionContext.entity||this.logError(new Error("Event actionContext entity is required."),!0)}},{key:"formatData",value:function(t){return Yl(this,void 0,void 0,regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.t0=t.type,e.next=3,this.getEventData(t);case 3:return e.t1=e.sent,e.t2=this.getEventMetadata(t),e.abrupt("return",{type:e.t0,data:e.t1,metadata:e.t2});case 6:case"end":return e.stop()}}),e,this)})))}},{key:"getEventData",value:function(t){return Yl(this,void 0,void 0,regeneratorRuntime.mark((function e(){var n,r,o,i,a,c,u=this;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.actionContext,e.next=3,this.getUserData();case 3:return r=e.sent,o={user:r,action:n,platform:this.getPlatformMetadata(),product:{name:this.options.productName,version:this.options.productVersion}},i=this.extractData(t),a=Object.keys(o).map((function(t){return t.toLowerCase()})),c=Object.keys(i).map((function(t){return t.toLowerCase()})),a.forEach((function(t){c.includes(t)&&u.logError(new Error("".concat(t," is a reserved key.")),!0)})),e.abrupt("return",Object.assign(Object.assign({},o),i));case 10:case"end":return e.stop()}}),e,this)})))}},{key:"extractData",value:function(t){return Ql(this.options.formatData)?this.options.formatData(t):(e={},n=t.actionContext.entity,r=t.data,n in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e);var e,n,r}},{key:"getUserData",value:function(){var t,e;return Yl(this,void 0,void 0,regeneratorRuntime.mark((function n(){var r;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.prev=0,n.next=3,this.options.getUser();case 3:if(null==(r=n.sent)?void 0:r.id){n.next=6;break}return n.abrupt("return");case 6:return n.t0=r.id,n.t1=(null===(t=r.role)||void 0===t?void 0:t.toLowerCase())||"unknown",n.t2=(null===(e=r.userGroup)||void 0===e?void 0:e.toLowerCase())||Zl.a.Unknown,n.t3=this.normalizeYearGroup(r.yearGroup),n.t4=r.customerId,n.t5=r.customerName,n.t6=r.customerGuid,n.t7=r.crmId,n.t8=r.countryCode,n.next=17,this.getRegion();case 17:return n.t9=n.sent,n.t10=r.isOpenCustomer,n.t11={id:n.t4,name:n.t5,customerGuid:n.t6,crmId:n.t7,country:n.t8,region:n.t9,openCustomer:n.t10},n.abrupt("return",{id:n.t0,role:n.t1,userGroup:n.t2,yearGroup:n.t3,customer:n.t11});case 23:n.prev=23,n.t12=n.catch(0),this.logError(n.t12);case 26:case"end":return n.stop()}}),n,this,[[0,23]])})))}},{key:"getRegion",value:function(){return Yl(this,void 0,void 0,regeneratorRuntime.mark((function t(){var e,n;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e=this.options.regionName,t.prev=1,t.next=4,this.options.getUser();case 4:(null==(n=t.sent)?void 0:n.instanceRegion)&&(e=n.instanceRegion),t.next=11;break;case 8:t.prev=8,t.t0=t.catch(1),this.logError(t.t0);case 11:return e||this.logError(new Error("RegionName is not set."),!0),t.abrupt("return",this.getRegionByName(e.toLowerCase()));case 13:case"end":return t.stop()}}),t,this,[[1,8]])})))}},{key:"getPlatformMetadata",value:function(){return{browser:Hl(),os:Vl(),request:{url:window.location.href,referrer:document.referrer},screenResolution:"".concat(window.screen.width,"x").concat(window.screen.height)}}},{key:"getEventMetadata",value:function(t){return{client:{name:"".concat(this.name,".ts"),version:Nl.a,region:this.getRegionByName(this.options.regionName)},timestamp:(new Date).toISOString(),eventVersion:t.eventVersion}}},{key:"getRegionByName",value:function(t){var e;return Object.values($l).forEach((function(n){n.systemName===t&&(e=n)})),e}},{key:"normalizeYearGroup",value:function(t){return t?t.toLowerCase().split(" ").join("_"):"unknown"}},{key:"logError",value:function(t,e){if(this.options.logError&&this.options.logError(t),e)throw t}}])&&Xl(e.prototype,n),r&&Xl(e,r),t}(),ts=n(31),es=function(){return!0},ns=function(){return!1};var rs,os,is,as,cs=function(t){return t},us={getUploadData:function(t,e){var n=e.actionContext.entity;if(n===ts.EntityType.Video)return us.formatVideoUpload(t,e);if(n===ts.EntityType.Resource||n===ts.EntityType.Subtitle)return us.formatResourceUpload(t);if(n===ts.EntityType.Banner||n===ts.EntityType.Thumbnail)return t;throw new Error("Upload data event not correctly formatted.")},formatVideoUpload:function(t,e){var n=e.actionContext.workflowPhase;return n===ts.WorkflowPhase.Start?us.getStartVideoUploadData(t):n===ts.WorkflowPhase.Discard?us.getDiscardVideoUploadData(t):n===ts.WorkflowPhase.Complete?us.getCompleteUploadData(t):void 0},getStartVideoUploadData:function(t){return t&&t.length?(t instanceof FileList&&(t=Array.from(t)),t.map((function(e){return{fileName:e.name,size:e.size,type:e.type,count:t.length}}))):[]},getDiscardVideoUploadData:function(t){var e=function(e){var n=e.file,r=n.type,o=n.name,i=n.status,a=n.cvUpload,c={fileName:o,count:Array.isArray(t)?t.length:1,type:r,status:i};return e.progress&&(c.progress=e.progress.toFixed(2)),a&&(c.uploadId=a.uploadId),c};return Array.isArray(t)?t.map((function(t){return e(t)})):[e(t)]},getCompleteUploadData:function(t){return t&&t.length?t.map((function(e){return{fileName:e.fileName,libraryId:e.libraryId,folderId:e.folderId,autoCaption:e.autoCaption,count:t.length}})):[]},formatResourceUpload:function(t){var e={id:t.id,name:t.name};return Gl(t.metadata)&&(e.type=t.metadata.type),e}},ls=function(t){var e,n,r,o,i={id:t.id};return(null===(e=t.video)||void 0===e?void 0:e.id)&&(i.video={id:t.video.id}),(null===(n=t.clip)||void 0===n?void 0:n.id)&&(i.clip={id:t.clip.id},(null===(r=t.clip.video)||void 0===r?void 0:r.id)&&(i.video={id:null===(o=t.clip.video)||void 0===o?void 0:o.id})),void 0!==t.shareCount&&(i.shareCount=t.shareCount),t.embedDetails&&(i.embedDetails=i.embedDetails),i};function ss(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var fs=(ss(rs={},ts.UserAction.Navigate,ns),ss(rs,ts.UserAction.Click,es),ss(rs,ts.UserAction.Search,es),ss(rs,ts.UserAction.InstantSearch,es),ss(rs,ts.UserAction.Play,es),ss(rs,ts.UserAction.Stream,es),ss(rs,ts.UserAction.WebPlayerStream,es),ss(rs,ts.UserAction.StreamProgress,es),ss(rs,ts.UserAction.Rename,es),ss(rs,ts.UserAction.Move,es),ss(rs,ts.UserAction.Create,es),ss(rs,ts.UserAction.Delete,es),ss(rs,ts.UserAction.Associate,es),ss(rs,ts.UserAction.Dissociate,es),ss(rs,ts.UserAction.Filter,es),ss(rs,ts.UserAction.Sort,es),ss(rs,ts.UserAction.Approve,es),ss(rs,ts.UserAction.Reject,es),ss(rs,ts.UserAction.Disable,es),ss(rs,ts.UserAction.Upload,es),ss(rs,ts.UserAction.Download,ns),ss(rs,ts.UserAction.SetAccess,es),ss(rs,ts.UserAction.AddToLocalCache,ns),ss(rs,ts.UserAction.Share,es),ss(rs,ts.UserAction.Unshare,es),ss(rs,ts.UserAction.Edit,es),ss(rs,ts.UserAction.Suggest,es),ss(rs,ts.UserAction.Favourite,es),ss(rs,ts.UserAction.ResolveWarning,es),ss(rs,ts.UserAction.DismissWarning,es),ss(rs,ts.UserAction.EditAssoc,es),ss(rs,ts.UserAction.Follow,es),ss(rs,ts.UserAction.Print,es),ss(rs,ts.UserAction.Copy,es),ss(rs,ts.UserAction.Activate,es),ss(rs,ts.UserAction.VerifyEmail,es),ss(rs,ts.UserAction.ChangePassword,es),ss(rs,ts.UserAction.Export,es),ss(rs,ts.UserAction.SendEmail,es),ss(rs,ts.UserAction.Publish,es),ss(rs,ts.UserAction.Answer,es),ss(rs,ts.UserAction.Complete,es),rs),ps=(ss(os={},ts.UserAction.Search,cs),ss(os,ts.UserAction.InstantSearch,cs),ss(os,ts.UserAction.Play,cs),ss(os,ts.UserAction.Stream,cs),ss(os,ts.UserAction.StreamProgress,cs),ss(os,ts.UserAction.Click,cs),ss(os,ts.UserAction.Filter,cs),ss(os,ts.UserAction.Sort,cs),ss(os,ts.UserAction.SetAccess,cs),ss(os,ts.UserAction.Approve,cs),ss(os,ts.UserAction.Reject,cs),ss(os,ts.UserAction.Create,cs),ss(os,ts.UserAction.Delete,cs),ss(os,ts.UserAction.Rename,cs),ss(os,ts.UserAction.Move,cs),ss(os,ts.UserAction.Edit,cs),ss(os,ts.UserAction.Share,ls),ss(os,ts.UserAction.Disable,cs),ss(os,ts.UserAction.Suggest,cs),ss(os,ts.UserAction.Upload,us.getUploadData),ss(os,ts.UserAction.ResolveWarning,cs),ss(os,ts.UserAction.DismissWarning,cs),ss(os,ts.UserAction.Follow,cs),ss(os,ts.UserAction.Print,cs),ss(os,ts.UserAction.Copy,cs),os),ys=(ss(is={},ts.UserAction.Search,(function(){return"search"})),ss(is,ts.UserAction.InstantSearch,(function(){return"search"})),ss(is,ts.UserAction.Filter,(function(){return"filter"})),ss(is,ts.UserAction.Stream,(function(){return ts.EntityType.Video})),is),ds={user:"target_user"},hs=(ss(as={},ts.UserAction.StreamProgress,!0),ss(as,ts.UserAction.WebPlayerStream,!0),as),vs={shouldLog:function(t){return!!fs[t.type](t)},formatData:function(t){var e=ps[t.type],n=Ql(e)?e(t.data,t):t.data;if(hs[t.type])return n;var r=t.actionContext.entity;return Ql(ys[t.type])&&(r=ys[t.type](t)),ds[r]&&(r=ds[r]),ss({},r,n)}};function bs(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var ms=function(t,e,n,r){return new(n||(n=Promise))((function(o,i){function a(t){try{u(r.next(t))}catch(t){i(t)}}function c(t){try{u(r.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,c)}u((r=r.apply(t,e||[])).next())}))},gs=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.options=e,this.initialize()}var e,n,r;return e=t,(n=[{key:"logStream",value:function(){var t="v:".concat(this.options.videoId);Ll.a.cacheExists(t)||(this.collectionApiClient.log({type:ts.UserAction.WebPlayerStream,actionContext:this.getActionContext(),data:this.getAnalyticsData(),eventVersion:ts.EventVersion.V2}),Ll.a&&Ll.a.cacheSet(t,null,300))}},{key:"logVideoProgress",value:function(t){var e=this,n=this.getAnalyticsData();this.collectionApiClient.log(t.map((function(t){return{type:ts.UserAction.StreamProgress,actionContext:e.getActionContext(),data:Object.assign(Object.assign({},n),{progress:t}),eventVersion:ts.EventVersion.V1}})))}},{key:"logUserAction",value:function(t,e){var n=Object.assign(Object.assign({},this.getAnalyticsData()),t);this.collectionApiClient.log({type:e.actionType,data:n,actionContext:{productArea:e.productArea,location:this.getLocationContext(),entity:e.entity,descriptor:e.descriptor,workflowPhase:e.workflowPhase},eventVersion:ts.EventVersion.V1})}},{key:"getAnalyticsData",value:function(){var t=Object.assign({video:{id:this.options.videoId},flags:{isUsingLocalCache:this.options.isUsingLocalCache}},this.options.additionalAnalyticsData||{});this.options.shareId&&(t.video.shareId=this.options.shareId);var e=this.getEntityType();return e===ts.EntityType.Interactive?t.interactive={id:+this.options.mediaId}:e===ts.EntityType.Clip&&(t.clip={id:+this.options.mediaId}),t}},{key:"initialize",value:function(){this.setupCollectionApiClient()}},{key:"setupCollectionApiClient",value:function(){var t=this;this.collectionApiClient=new Jl({productName:"player.web",productVersion:this.options.productVersion,regionName:this.options.regionName,collectionApiUrls:this.options.collectionApiUrls,collectionApiClientId:this.options.collectionApiClientId,getUser:function(){return t.getCurrentUser()},shouldLog:vs.shouldLog,formatData:vs.formatData})}},{key:"getCurrentUser",value:function(){return ms(this,void 0,void 0,regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",{id:this.options.userId,customerId:this.options.customerId});case 1:case"end":return t.stop()}}),t,this)})))}},{key:"getActionContext",value:function(){return{entity:this.getEntityType(),location:this.getLocationContext(),productArea:void 0,descriptor:this.options.isEmbedded?ts.PlayerDescriptor.Embedded:void 0,workflowPhase:void 0}}},{key:"getEntityType",value:function(){switch(this.options.mediaType){case"MasterVideo":return ts.EntityType.Video;case"MasterInteractive":return ts.EntityType.Interactive;case"MasterClip":return ts.EntityType.Clip}}},{key:"getLocationContext",value:function(){switch(this.options.playerType){case"player":return ts.LocationContext.Player;case"interactive-player":return ts.LocationContext.InteractivePlayer;case"create-clip-player":return ts.LocationContext.CreateClipPlayer}}}])&&bs(e.prototype,n),r&&bs(e,r),t}();function ws(t){return(ws="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Cs(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Os(t,e,n){return(Os="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=_s(t)););return t}(t,e);if(r){var o=Object.getOwnPropertyDescriptor(r,e);return o.get?o.get.call(n):o.value}})(t,e,n||t)}function Is(t,e){return(Is=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Ts(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=_s(t);if(e){var o=_s(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Ss(this,n)}}function Ss(t,e){return!e||"object"!==ws(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function _s(t){return(_s=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var ks=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Is(t,e)}(i,t);var e,n,r,o=Ts(i);function i(t,e){var n;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i),(n=o.call(this,t,e)).options_=e,n}return e=i,(n=[{key:"createEl",value:function(t,e,n){var r="<h1>".concat(this.options_.title,"</h1>");if(!this.options_.seriesName)return Os(_s(i.prototype),"createEl",this).call(this,t,Object.assign(Object.assign({},e),{innerHTML:r}),n);var o=this.buildSeasonEpisodeString();return o?(r="<div class='cv-series-text'>".concat(this.options_.seriesName.toUpperCase()," ").concat(o,"</div>")+r,Os(_s(i.prototype),"createEl",this).call(this,t,Object.assign(Object.assign({},e),{innerHTML:r}),n)):(r="<div class='cv-series-text'>".concat(this.options_.seriesName.toUpperCase(),"</div>")+r,Os(_s(i.prototype),"createEl",this).call(this,t,Object.assign(Object.assign({},e),{innerHTML:r}),n))}},{key:"buildSeasonEpisodeString",value:function(){if(!this.options_.seasonNumber||!this.options_.episodeNumber)return"";var t=this.padNumber(this.options_.seasonNumber,2),e=this.padNumber(this.options_.episodeNumber,2);return"S".concat(t," • E").concat(e)}},{key:"padNumber",value:function(t,e){var n=t.toString();if(n.length>=e)return n;for(e-=n.length;e>0;)n="0"+n,e--;return n}}])&&Cs(e.prototype,n),r&&Cs(e,r),i}(a.a.getComponent("Component"));function js(t){return(js="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Es(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Ps(t,e,n){return(Ps="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=As(t)););return t}(t,e);if(r){var o=Object.getOwnPropertyDescriptor(r,e);return o.get?o.get.call(n):o.value}})(t,e,n||t)}function Rs(t,e){return(Rs=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function xs(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=As(t);if(e){var o=As(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Ls(this,n)}}function Ls(t,e){return!e||"object"!==js(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function As(t){return(As=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var Bs=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Rs(t,e)}(i,t);var e,n,r,o=xs(i);function i(t,e){var n;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i),(n=o.call(this,t,e)).options_=e,n}return e=i,(n=[{key:"buildCSSClass",value:function(){return"cv-splash-warning-container ".concat(Ps(As(i.prototype),"buildCSSClass",this).call(this))}},{key:"createEl",value:function(t,e,n){var r=Ps(As(i.prototype),"createEl",this).call(this,t,Object.assign(Object.assign({},e),{className:this.buildCSSClass()}),n);if(!this.options_.ratingCode)return r;var o=this.mapCodeToColourClass(this.options_.ratingCode);return r.appendChild(a.a.dom.createEl("div",{className:"cv-splash-rating badge rating-badge ".concat(o),innerHTML:this.options_.ratingCode})),this.options_.warning&&r.appendChild(a.a.dom.createEl("div",{className:"cv-splash-warning",innerHTML:this.options_.warning})),r}},{key:"mapCodeToColourClass",value:function(t){switch(t){case"E":return"bg-purple";case"G":return"bg-green";case"PG":return"bg-info";case"M":return"bg-red";case"MA15+":return"bg-pink";case"R18+":return"bg-yellow"}}}])&&Es(e.prototype,n),r&&Es(e,r),i}(a.a.getComponent("Component"));function Ns(t){return(Ns="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Ms(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Us(t,e){return(Us=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Ds(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=zs(t);if(e){var o=zs(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Fs(this,n)}}function Fs(t,e){return!e||"object"!==Ns(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function zs(t){return(zs=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var Vs=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Us(t,e)}(i,t);var e,n,r,o=Ds(i);function i(t,e){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i),o.call(this,t,e)}return e=i,(n=[{key:"createEl",value:function(){var t=a.a.dom.createEl("div",{className:"cv-splash-metadata ".concat(this.options_.embed?"cv-embed-splash-metadata":"")});return this.options_.embed&&t.appendChild(new ks(this.player_,{title:this.options_.title,seriesName:this.options_.seriesName,seasonNumber:this.options_.seasonNumber,episodeNumber:this.options_.episodeNumber}).el()),t.appendChild(new Bs(this.player_,{warning:this.options_.warning,ratingCode:this.options_.ratingCode}).el()),t}}])&&Ms(e.prototype,n),r&&Ms(e,r),i}(a.a.getComponent("Component"));n(1113);function Hs(t){return(Hs="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Ws(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function qs(t,e,n){return(qs="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=Zs(t)););return t}(t,e);if(r){var o=Object.getOwnPropertyDescriptor(r,e);return o.get?o.get.call(n):o.value}})(t,e,n||t)}function Gs(t,e){return(Gs=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Qs(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Zs(t);if(e){var o=Zs(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Ks(this,n)}}function Ks(t,e){return!e||"object"!==Hs(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Zs(t){return(Zs=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var $s=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Gs(t,e)}(i,t);var e,n,r,o=Qs(i);function i(t,e){var n;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i),(n=o.call(this,t,e)).addChild(new Vs(n.player_,n.options_)),n}return e=i,(n=[{key:"createEl",value:function(t,e,n){var r="<div class='cv-player-mask'></div>";return this.options_.embed&&(r+="<div class='cv-embed-logo'>".concat(P,"</div>")),qs(Zs(i.prototype),"createEl",this).call(this,t,Object.assign(Object.assign({},e),{className:this.buildCSSClass(),innerHTML:r}),n)}}])&&Ws(e.prototype,n),r&&Ws(e,r),i}(a.a.getComponent("Component"));function Xs(t){return function(t){if(Array.isArray(t))return Ys(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return Ys(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ys(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ys(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function Js(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var tf,ef=function(t,e,n,r){return new(n||(n=Promise))((function(o,i){function a(t){try{u(r.next(t))}catch(t){i(t)}}function c(t){try{u(r.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,c)}u((r=r.apply(t,e||[])).next())}))},nf=a.a.getComponent("Player"),rf=450,of=function(){function t(e,n){var r=this;if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.streamLogged=!1,this.options=a.a.mergeOptions({},t.options_,n),null===this.options.playerApi)throw new Error("PlayerApi required");this.initialize(),this.createEl(e),this.buildVideoJs(),this.bindEventListeners(),this.setupSeekBar(),this.fetchConfig(),this.logStream=this.logStream.bind(this),this.player.ready((function(){r._configurePlugins(),r.options.setup&&r.options.setup(r.options,r.player),r.fetch().catch((function(t){r.player.error(t.message),r.options.onError&&r.options.onError(t)}))}))}var e,n,r;return e=t,(n=[{key:"initialize",value:function(){}},{key:"_configurePlugins",value:function(){this.player.progressReporterPlugin({onFlush:this.onFlushProgress=this.onFlushProgress.bind(this)}),this.player.persistVolumePlugin(),this.player.fullscreenOnRotatePlugin(),this.player.touchControls(),this.options.getExternalLink&&this.player.openExternallyPlugin({getExternalLink:this.options.getExternalLink}),this.configurePlugins()}},{key:"configurePlugins",value:function(){}},{key:"onFlushProgress",value:function(t){var e;null===(e=this.analyticsService)||void 0===e||e.logVideoProgress(t)}},{key:"buildVideoJs",value:function(){return this.player=Object(a.a)(this.el,this.getPlayerOptions())}},{key:"getPlayerOptions",value:function(){var t=nf.prototype.options_.children;return t=t.filter((function(t){return"bigPlayButton"!==t&&"posterImage"!==t})),{controls:this.options.controls,fluid:!this.options.embed,fill:!!this.options.embed,inactivityTimeout:500,controlBar:{children:["timeWrapper","progressControl"]},children:[].concat(Xs(t),["collapserator","playPauseFeedback"]),userActions:{hotkeys:Cl},playbackRates:this.options.playbackRates,techOrder:["html5"],html5:{nativeTextTracks:!1},playsinline:!0}}},{key:"fetch",value:function(){var t,e,n;return ef(this,void 0,void 0,regeneratorRuntime.mark((function r(){var o,i,a,c=this;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(o=this.options.fetch,void 0===this.options.fetch&&(o=function(t){var e="".concat(c.options.playerApi.origin,"/api/playback?viewKey=").concat(t);return xl.get(e)}),this.options.viewKey){r.next=4;break}throw new Error("Please specify a viewKey or a fetch function");case 4:return r.next=6,o(this.options.viewKey);case 6:if(i=r.sent){r.next=9;break}throw new Error("Error fetching playback object");case 9:i.chapters.list.length>0&&(a=this.player.addTextTrack("chapters"),i.chapters.list.forEach((function(t){a.addCue({startTime:t.timestamp,endTime:t.endTimestamp,text:t.name})})),a.trigger({type:"loadeddata",target:a})),this.player.localCache({localCacheAddresses:i.localCacheAddresses,enabled:null===(t=this.options.enableLocalCache)||void 0===t||t}),this.player.progressiveFiles({sources:i.files.progressive.map((function(t){return{id:t.profile,mimeType:t.mimeType,url:t.url}}))}),i.subtitles.list.length>0&&(i.subtitles.list.forEach((function(t){"text/vtt"===t.mimeType&&c.player.addRemoteTextTrack({kind:"subtitles",src:t.url,language:t.language,label:t.label},!0)})),this.player.persistSubtitleSettingsPlugin({showSubtitles:null===(e=i.settings)||void 0===e?void 0:e.showSubtitles,subtitleSize:null===(n=i.settings)||void 0===n?void 0:n.playbackSubtitleSizeDefault})),i.posterUrl&&this.player.poster(i.posterUrl),this.options.autoplay||this.setupSplash(i),this.additionalSetup(i),this.options.autoplay&&this.player.ready((function(){c.player.play().catch((function(){c.setupSplash(i)}))})),this.options.startTime&&this.player.currentTime(this.options.startTime);case 18:case"end":return r.stop()}}),r,this)})))}},{key:"fetchConfig",value:function(){var t=this;if(!tf&&!this.options.fetch){var e="".concat(this.options.playerApi.origin,"/api/config");xl.get(e).then((function(e){tf=e,t.trigger("config:loaded")}))}}},{key:"additionalSetup",value:function(t){var e,n,r,o=this;this.player.persistQualitySettingsPlugin({playbackProfile:null===(e=t.settings)||void 0===e?void 0:e.playbackProfile,playbackProfileLocalCache:null===(n=t.settings)||void 0===n?void 0:n.playbackProfileLocalCache}),this.player.whiteboardModePlugin();var i=this.options.enableLocalCache&&!!(null===(r=t.localCacheAddresses)||void 0===r?void 0:r.length);tf?this.setupAnalyticsService(t,i):this.one("config:loaded",(function(){return o.setupAnalyticsService(t,i)}))}},{key:"setupAnalyticsService",value:function(t,e){this.analyticsService=new gs({collectionApiUrls:tf.collectionApi.urls,collectionApiClientId:tf.collectionApi.clientId,productVersion:c.a,regionName:"cv-ap-southeast-1",videoId:t.videoId,mediaId:t.mediaId,userId:t.viewerId,shareId:t.shareId,customerId:t.viewerCustomerId,mediaType:t.mediaType,playerType:this.getAnalyticsPlayerType(),isEmbedded:!!this.options.embed,isUsingLocalCache:e,additionalAnalyticsData:this.getAdditionalAnalyticsData(t)}),this.on("timeupdate",this.logStream)}},{key:"getAdditionalAnalyticsData",value:function(t){return{}}},{key:"logStream",value:function(){this.player.currentTime()<3||this.streamLogged||(this.analyticsService.logStream(),this.streamLogged=!0,this.off("timeupdate",this.logStream))}},{key:"getAnalyticsPlayerType",value:function(){return"player"}},{key:"createEl",value:function(t){var e;"string"==typeof t?(t=function(t){return 0===t.indexOf("#")?t.slice(1):t}(t),e=a.a.dom.$("#"+t)):e=t;var n="video-js";return this.getPlayerClassName()&&(n+=" ".concat(this.getPlayerClassName())),this.el=a.a.dom.createEl("video",{},{class:n}),e.appendChild(this.el),this.el}},{key:"getPlayerClassName",value:function(){return""}},{key:"on",value:function(t,e){this.player.on(t,e)}},{key:"one",value:function(t,e){this.player.one(t,e)}},{key:"off",value:function(t,e){this.player.off(t,e)}},{key:"trigger",value:function(t,e){return this.player.trigger(t,e)}},{key:"dispose",value:function(){this.player.dispose()}},{key:"ready",value:function(t){this.player.ready(t)}},{key:"isDisposed",value:function(){return this.player.isDisposed()}},{key:"play",value:function(){this.player.play()}},{key:"currentTime",value:function(t){return this.player.currentTime(t)}},{key:"bindEventListeners",value:function(){var t=this,e=function(){return t.configureMenuDimensions()};if(this.player.ready(e),this.on("resize",e),this.on("fullscreenchange",e),this.one("play",e),this.on("resizemenus",e),this.player.one("dispose",(function(){t.off("resize",e),t.off("fullscreenchange",e),t.off("resizemenus",e)})),this.options.hotkeyElQuerySelector){var n=a.a.dom.$(this.options.hotkeyElQuerySelector);n&&(this.player.on(n,"keydown",this.player.handleKeyDown),this.player.one("dispose",(function(){t.player.off(n,"keydown",t.player.handleKeyDown)})))}}},{key:"setupSeekBar",value:function(){var t=this.getSeekBarName(),e=this.player.controlBar.getChild("progressControl");e.addChild(t,this.getSeekBarOptions()),e.setSeekBarName(t)}},{key:"setupSplash",value:function(t){var e=this.player.addChild("posterImage");this.player.addChild("bigPlayButton");var n=new $s(this.player,{embed:this.options.embed,posterUrl:t.posterUrl,title:t.title,ratingCode:t.ratingCode,seriesName:t.seriesName,seasonNumber:t.seasonNumber,episodeNumber:t.episodeNumber});e.addChild(n),e.show()}},{key:"getSeekBarOptions",value:function(){return{}}},{key:"getSeekBarName",value:function(){return"ChapterSeekBar"}},{key:"configureMenuDimensions",value:function(){var t=this;if(this.player.isFullscreen()){var e=this.player.whiteboardModePlugin().side;if("top"===e){var n=this.player.getChild("collapserator"),r=n.getChild("volumePanel"),o=n.children_.indexOf(r);n.removeChild(r),n.addChild("volumePanel",{inline:!1},o)}else{var i=this.player.getChild("collapserator"),a=i.getChild("volumePanel"),c=i.children_.indexOf(a);i.removeChild(a),i.addChild("volumePanel",{inline:!0},c)}if("left"===e||"right"===e||"top"===e){var u=this.player.currentWidth();return void this.player.el().querySelectorAll(".vjs-menu").forEach((function(t){t.style.paddingTop=null,t.style.marginBottom=null,t.style.width="calc(".concat(u,"px - 4em)")}))}}var l=this.player.currentWidth(),s=this.player.currentHeight()/l*100,f=this.player.el().querySelector(".cv-collapsorator"),p=this.player.el().querySelectorAll(".vjs-menu"),y=f&&f.offsetHeight;y?("CreateClipSeekBar"===this.getSeekBarName()&&(y+=22),p&&p.length&&p.forEach((function(e){e.style.paddingTop="calc(".concat(s,"% - ").concat(y,"px)"),e.style.marginBottom="".concat(y,"px"),e.style.width=null,e.querySelector(".vjs-menu-content")&&(l<=rf?t.player.addClass("cv-player-small"):t.player.removeClass("cv-player-small"))}))):this.one("play",(function(){return t.configureMenuDimensions()}))}}])&&Js(e.prototype,n),r&&Js(e,r),t}();of.options_={viewKey:null,controls:!0,playbackRates:[.25,.5,.75,1,1.25,1.5,1.75,2],playerApi:new URL("http://localhost:52000"),enableLocalCache:!0};var af=n(1058),cf=n.n(af),uf=n(1140),lf=n.n(uf),sf=n(1055);function ff(t){var e,n=t.interactive.timepoints.find((function(e){var n=e.visibleAt/1e3;return Math.floor(t.time)===Math.floor(n)||Math.ceil(t.time)===Math.ceil(n)}));if(!(null===(e=null==n?void 0:n.interactions)||void 0===e?void 0:e.length))return o.a.createElement(o.a.Fragment,null);var r=n.interactions.length>3?n.interactions.slice(0,2):n.interactions,i=n.interactions.length-r.length;return o.a.createElement("div",{className:"d-flex justify-content-end ml-2"},r.map((function(t,e){return o.a.createElement(sf.a,{key:e,interaction:t,showQuestion:!1,iconClassName:"ml-1"})})),!!i&&o.a.createElement("div",{className:"interaction-type-icon d-flex justify-content-center align-items-center border border-dark text-body ml-1"},"+".concat(i)))}function pf(t){return function(t){if(Array.isArray(t))return yf(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return yf(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return yf(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function yf(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var df={title:{text:null},xAxis:{visible:!1,minPadding:0,maxPadding:0},legend:{enabled:!1},credits:{enabled:!1},defs:{gradient:{tagName:"linearGradient",id:"area-gradient",x1:0,y1:1,x2:0,y2:0,children:[{tagName:"stop",offset:0},{tagName:"stop",offset:1}]}}};function hf(t,e){return{styledMode:!0,spacing:[15,0,0,0],width:t,height:e}}function vf(t){return{formatter:function(){var e=t?function(t,e){return lf.a.renderToStaticMarkup(o.a.createElement(ff,{time:e,interactive:t}))}(t,this.x):"";return'<div class="cv-engagement-tooltip bg-white rounded"><div class="d-flex justify-content-between">'+"<strong>".concat(Ki(this.x),"</strong>")+"".concat(e)+'</div><div class="d-flex justify-content-between rounded bg-light cv-view-count-container">'+'<strong>Views</strong> <span class="cv-view-count">'.concat(this.y,"</span>")+"</div></div>"},positioner:function(t,e,n){var r=this.chart.plotWidth-t,o=n.plotX-t/2;return{x:Math.min(Math.max(o,0),r),y:this.chart.plotTop}},useHTML:!0,padding:0}}n(1114);function bf(t){return(bf="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function mf(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function gf(t,e,n){return(gf="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=If(t)););return t}(t,e);if(r){var o=Object.getOwnPropertyDescriptor(r,e);return o.get?o.get.call(n):o.value}})(t,e,n||t)}function wf(t,e){return(wf=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Cf(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=If(t);if(e){var o=If(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Of(this,n)}}function Of(t,e){return!e||"object"!==bf(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function If(t){return(If=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var Tf=a.a.getComponent("Component");cf.a.AST.allowedTags.push("g"),cf.a.AST.allowedAttributes.push("viewBox","transform");var Sf=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&wf(t,e)}(i,t);var e,n,r,o=Cf(i);function i(t,e){var n;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i),(n=o.call(this,t,e)).initialize(),n.bindListeners(),n}return e=i,(n=[{key:"initialize",value:function(){var t=this;this.player().ready((function(){return t.buildChart()}))}},{key:"buildCSSClass",value:function(){return"cv-engagement-overlay"}},{key:"createEl",value:function(t,e,n){return gf(If(i.prototype),"createEl",this).call(this,t,Object.assign(Object.assign({},e),{className:this.buildCSSClass(),innerHTML:'<div class="cv-engagement-chart"></div><div class="cv-engagement-timepoint-indicator"></div>'}),n)}},{key:"toggleChart",value:function(t){t?this.buildChart():this.destroyChart()}},{key:"bindListeners",value:function(){var t=this;this.handleClick=this.handleClick.bind(this),this.resizeChart=this.resizeChart.bind(this),this.player().on("playerresize",this.resizeChart),this.on(this.el(),"mouseup",this.handleClick),this.player().on("dispose",(function(){t.player().off("playerresize",t.resizeChart),t.off(t.el(),"mouseup",t.handleClick)}))}},{key:"handleClick",value:function(t){a.a.dom.isSingleLeftClick(t)&&(this.player().paused()?this.player().play():this.player().pause())}},{key:"buildChart",value:function(){var t=this;if(!this.chart){var e=this.getChartDimensions();if(e){var n=this.el().querySelector(".cv-engagement-chart");this.chart=cf.a.chart(n,this.getHighchartOptions(e))}else this.player().one("play",(function(){return t.buildChart()}))}}},{key:"resizeChart",value:function(){var t=this.getChartDimensions();this.chart&&t&&this.chart.setSize(t.width,t.height)}},{key:"destroyChart",value:function(){var t;null===(t=this.chart)||void 0===t||t.destroy(),this.chart=null}},{key:"getChartDimensions",value:function(){var t=this.player().getChild("collapserator"),e=null==t?void 0:t.currentHeight(),n=this.el().clientWidth;return e&&n?{width:n,height:this.player().currentDimensions().height-e}:null}},{key:"getHighchartOptions",value:function(t){var e,n,r=t.width,o=t.height;return Object.assign(Object.assign({},df),{chart:hf(r,o),yAxis:(n=this.options_.heatMap,{max:1.05*Math.max.apply(Math,pf(n)),min:0,minPadding:0,maxPadding:0,allowDecimals:!0,startOnTick:!1,endOnTick:!1,visible:!1}),tooltip:vf(this.options_.interactive),plotOptions:(e=this.moveTimepointIndicator.bind(this),{area:{point:{events:{mouseOver:function(){e(this.x)},mouseOut:function(){e(null)}}}}}),series:[{type:"area",data:this.options_.heatMap}]})}},{key:"moveTimepointIndicator",value:function(t){this.options_.onTimepointHover&&this.options_.onTimepointHover(t);var e=this.el().querySelector(".cv-engagement-timepoint-indicator");null!==t?(a.a.dom.addClass(e,"cv-engagement-timepoint-indicator-visible"),e.style.left="".concat(t/this.options_.heatMap.length*100,"%")):a.a.dom.removeClass(e,"cv-engagement-timepoint-indicator-visible")}}])&&mf(e.prototype,n),r&&mf(e,r),i}(Tf);function _f(t){return(_f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function kf(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function jf(t,e,n){return(jf="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=xf(t)););return t}(t,e);if(r){var o=Object.getOwnPropertyDescriptor(r,e);return o.get?o.get.call(n):o.value}})(t,e,n||t)}function Ef(t,e){return(Ef=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Pf(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=xf(t);if(e){var o=xf(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Rf(this,n)}}function Rf(t,e){return!e||"object"!==_f(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function xf(t){return(xf=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}a.a.registerComponent("EngagementOverlay",Sf);var Lf=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Ef(t,e)}(i,t);var e,n,r,o=Pf(i);function i(t,e){var n;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i),(n=o.call(this,t,e)).overlayVisible=e.overlayVisible,n.toggle(n.overlayVisible),n}return e=i,(n=[{key:"handleToggle",value:function(){this.toggle(!this.overlayVisible)}},{key:"toggle",value:function(t){t?this.toggleOn():this.toggleOff()}},{key:"toggleOn",value:function(){a.a.dom.addClass(this.toggleEl,"on"),this.overlayVisible=!0,this.player().engagementOverlayPlugin().toggleOverlay(this.overlayVisible),this.player().addClass("cv-reports-player-overlay-visible")}},{key:"toggleOff",value:function(){a.a.dom.removeClass(this.toggleEl,"on"),this.overlayVisible=!1,this.player().engagementOverlayPlugin().toggleOverlay(this.overlayVisible),this.player().removeClass("cv-reports-player-overlay-visible")}},{key:"handleClick",value:function(t){t.stopImmediatePropagation()}},{key:"createEl",value:function(t,e,n){this.handlerBound||(this.handleToggle=this.handleToggle.bind(this),this.handlerBound=!0),this.toggleEl&&this.toggleEl.removeEventListener("click",this.handleToggle),this.toggleEl=a.a.dom.createEl("div",{className:"custom-toggle toggle-option float-right",innerHTML:'<span class="handle"></span></div>'}),this.toggleEl.addEventListener("click",this.handleToggle);var r=jf(xf(i.prototype),"createEl",this).call(this,t,{className:"vjs-menu-item cv-cog-menu-item",innerHTML:'\n <span class="vjs-menu-item-text">Heat Map</span>\n <span class="cv-toggle-container"></span>'},n);return r.children[1].appendChild(this.toggleEl),r}}])&&kf(e.prototype,n),r&&kf(e,r),i}(a.a.getComponent("MenuItem"));function Af(t){return(Af="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Bf(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Nf(t,e){return(Nf=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Mf(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Df(t);if(e){var o=Df(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Uf(this,n)}}function Uf(t,e){return!e||"object"!==Af(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Df(t){return(Df=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}a.a.registerComponent("EngagementOverlayMenuItem",Lf);var Ff=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Nf(t,e)}(i,t);var e,n,r,o=Mf(i);function i(t,e){var n;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i),(n=o.call(this,t,e)).options=e,t.ready((function(){n.initialize()})),n}return e=i,(n=[{key:"initialize",value:function(){var t;this.hasHeatMapData()&&(this.player.addChild("engagementOverlay",{heatMap:this.options.heatMap,interactive:this.options.interactive,onTimepointHover:this.options.onTimepointHover}),(null===(t=this.player.getChild("collapserator"))||void 0===t?void 0:t.getChild("cogButton")).addItem({index:0,ctor:Lf,name:"EngagementOverlayMenuItem",options:{overlayVisible:!0}}))}},{key:"toggleOverlay",value:function(t){var e=this.player.getChild("engagementOverlay");null==e||e.toggleChart(t)}},{key:"hasHeatMapData",value:function(){var t;return(null===(t=this.options.heatMap)||void 0===t?void 0:t.reduce((function(t,e){return t+e}),0))>0}}])&&Bf(e.prototype,n),r&&Bf(e,r),i}(a.a.getPlugin("plugin"));function zf(t){return(zf="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Vf(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Hf(t,e,n){return(Hf="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=Kf(t)););return t}(t,e);if(r){var o=Object.getOwnPropertyDescriptor(r,e);return o.get?o.get.call(n):o.value}})(t,e,n||t)}function Wf(t,e){return(Wf=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function qf(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Kf(t);if(e){var o=Kf(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Gf(this,n)}}function Gf(t,e){return!e||"object"!==zf(e)&&"function"!=typeof e?Qf(t):e}function Qf(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Kf(t){return(Kf=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}a.a.registerPlugin("engagementOverlayPlugin",Ff);var Zf=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Wf(t,e)}(i,t);var e,n,r,o=qf(i);function i(t,e){var n;if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i),n=o.call(this,t),void 0===e.startTime)throw Error("Invalid clip start");if(void 0===e.endTime)throw Error("Invalid clip end");if(e.startTime>e.endTime)throw Error("Clip start cannot be greater than clip end");return n._clipStart=e.startTime,n._clipEnd=e.endTime,n.playerEndedFn=n.player.ended.bind(t),n.playerDurationFn=n.player.duration.bind(t),n.playerCurrentTimeFn=n.player.currentTime.bind(t),n.playerbufferedFn=n.player.buffered.bind(t),n.player.ended=n.ended.bind(Qf(n)),n.player.duration=n.duration.bind(Qf(n)),n.player.currentTime=n.currentTime.bind(Qf(n)),n.player.buffered=n.buffered.bind(Qf(n)),n.initialize(),n.player.ready((function(){n.player.trigger("durationchange")})),n}return e=i,(n=[{key:"clipStart",get:function(){var t=this.playerDurationFn();return this._clipStart>t?t:this._clipStart}},{key:"clipEnd",get:function(){var t=this.playerDurationFn();return this._clipEnd>t?t:this._clipEnd}},{key:"dispose",value:function(){this.player.off("timeupdate",this.onTimeUpdate),this.player.off("play",this.onPlay),this.player.ended=this.playerEndedFn,this.player.duration=this.playerDurationFn,this.player.currentTime=this.playerCurrentTimeFn,this.player.buffered=this.playerbufferedFn,this.player.trigger("durationchange"),Hf(Kf(i.prototype),"dispose",this).call(this)}},{key:"initialize",value:function(){this.onTimeUpdate=this.onTimeUpdate.bind(this),this.onPlay=this.onPlay.bind(this),this.player.on("timeupdate",this.onTimeUpdate),this.player.on("play",this.onPlay)}},{key:"onPlay",value:function(){this._isEnded&&this.player.currentTime(0)}},{key:"onTimeUpdate",value:function(){var t=this.getCurrentTime(!1);t>this.clipEnd?this._isEnded||(this.player.pause(),this.player.trigger("ended"),this._isEnded=!0):(this._isEnded=!1,t<this.clipStart&&this.playerCurrentTimeFn(this.clipStart,!0))}},{key:"ended",value:function(){return this.getCurrentTime(!1)>this.clipEnd}},{key:"duration",value:function(t){return void 0!==t&&this.playerDurationFn(t),this.clipEnd-this.clipStart}},{key:"currentTime",value:function(t){if(void 0===t)return this.getCurrentTime(!0);for(var e=t+this.clipStart,n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];this.playerCurrentTimeFn.apply(this,[e].concat(r))}},{key:"getCurrentTime",value:function(t){var e=this.playerCurrentTimeFn(),n=0;return e>=this.clipStart&&(n=e-this.clipStart),this.player.getCache().currentTime=n,t?n:e}},{key:"buffered",value:function(){for(var t=this.playerbufferedFn(),e=[],n=0;n<t.length;n++)e[n]=[Math.max(0,t.start(n)-this.clipStart),Math.min(Math.max(0,t.end(n)-this.clipStart),this.player.duration())];return a.a.createTimeRanges(e)}}])&&Vf(e.prototype,n),r&&Vf(e,r),i}(a.a.getPlugin("plugin"));a.a.registerPlugin("clipPlugin",Zf);var $f=n(1056);n(1115);function Xf(t){return(Xf="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Yf(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Jf(t,e,n){return(Jf="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=rp(t)););return t}(t,e);if(r){var o=Object.getOwnPropertyDescriptor(r,e);return o.get?o.get.call(n):o.value}})(t,e,n||t)}function tp(t,e){return(tp=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function ep(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=rp(t);if(e){var o=rp(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return np(this,n)}}function np(t,e){return!e||"object"!==Xf(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function rp(t){return(rp=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var op=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&tp(t,e)}(i,t);var e,n,r,o=ep(i);function i(t,e){var n;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i),(n=o.call(this,t,e)).timepoint_=e.timepoint,n.time_=e.timepoint.visibleAt/1e3;var r=e.timepoint.interactions[0];r||n.hide();var a=$f.a.getTypeInfo(r.typeId).bgClassName;return n.$(".vjs-icon-placeholder").classList.add(a),n.controlText(r.name),n.update(),n}return e=i,(n=[{key:"buildCSSClass",value:function(){return"cv-interactive-bar-item ".concat(Jf(rp(i.prototype),"buildCSSClass",this).call(this))}},{key:"createEl",value:function(t,e,n){return Jf(rp(i.prototype),"createEl",this).call(this,t,Object.assign(Object.assign({},e),{className:this.buildCSSClass()}),Object.assign(Object.assign({},n),{tabIndex:0}))}},{key:"update",value:function(){var t=this.player_.duration(),e=this.time_/t;this.el().style.left=100*e+"%",e>100||e<0?this.hide():this.show()}},{key:"handleClick",value:function(t){t.stopPropagation(),this.player_.currentTime(this.time_)}}])&&Yf(e.prototype,n),r&&Yf(e,r),i}(a.a.getComponent("Button"));n(1116);function ip(t){return(ip="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function ap(t){return function(t){if(Array.isArray(t))return cp(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return cp(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return cp(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function cp(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function up(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function lp(t,e,n){return(lp="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=dp(t)););return t}(t,e);if(r){var o=Object.getOwnPropertyDescriptor(r,e);return o.get?o.get.call(n):o.value}})(t,e,n||t)}function sp(t,e){return(sp=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function fp(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=dp(t);if(e){var o=dp(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return pp(this,n)}}function pp(t,e){return!e||"object"!==ip(e)&&"function"!=typeof e?yp(t):e}function yp(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function dp(t){return(dp=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var hp=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&sp(t,e)}(i,t);var e,n,r,o=fp(i);function i(t,e){var n;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i),(n=o.call(this,t,e)).track_=e.track,n.interactive_=e.interactive,n.onDurationChange=n.onDurationChange.bind(yp(n)),n.createInteractionItems=n.createInteractionItems.bind(yp(n)),n.createInteractionItems(),n.track_.on("cv:cuechange",n.createInteractionItems),n.player_.on("durationchange",n.onDurationChange),n.player_.on("dispose",(function(){n.track_.off("cv:cuechange"),n.player_.off("durationchange",n.onDurationChange)})),n}return e=i,(n=[{key:"buildCSSClass",value:function(){return"cv-interactive-bar-items ".concat(lp(dp(i.prototype),"buildCSSClass",this).call(this))}},{key:"createEl",value:function(t,e,n){return lp(dp(i.prototype),"createEl",this).call(this,t,Object.assign(Object.assign({},e),{className:this.buildCSSClass()}),n)}},{key:"update",value:function(){this.children_.forEach((function(t){t.update()}))}},{key:"createInteractionItems",value:function(){var t,e=this;if(this.track_){ap(this.children_).forEach((function(t){e.removeChild(t)}));for(var n=0;n<this.track_.cues.length;n++){var r=this.track_.cues[n],o=this.getTimepointById(r.text);o&&(null===(t=o.interactions)||void 0===t?void 0:t.length)&&this.addChild(new op(this.player_,{timepoint:o}))}}}},{key:"onDurationChange",value:function(){this.update()}},{key:"getTimepointById",value:function(t){var e;return null===(e=this.interactive_.timepoints)||void 0===e?void 0:e.find((function(e){return e.id.toString()===t.toString()}))}}])&&up(e.prototype,n),r&&up(e,r),i}(a.a.getComponent("Component"));n(1117);function vp(t){return(vp="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function bp(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function mp(t,e){return(mp=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function gp(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Op(t);if(e){var o=Op(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return wp(this,n)}}function wp(t,e){return!e||"object"!==vp(e)&&"function"!=typeof e?Cp(t):e}function Cp(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Op(t){return(Op=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var Ip=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&mp(t,e)}(i,t);var e,n,r,o=gp(i);function i(t,e){var n;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i),(n=o.call(this,t)).options=e,n.player.one("loadedmetadata",(function(){return n.player.ready(n.initialize.bind(Cp(n)))})),n}return e=i,(n=[{key:"initialize",value:function(){Br(this.player,"metadata","interactive",this.onTrackLoaded.bind(this)),this.player.addClass("cv-interactive-plugin")}},{key:"onTrackLoaded",value:function(t){this.addChildren(t)}},{key:"addChildren",value:function(t){this.player.controlBar.getChild("progressControl").getChild("SeekBar").addChild(new hp(this.player,{interactive:this.options.interactive,track:t}))}}])&&bp(e.prototype,n),r&&bp(e,r),i}(a.a.getPlugin("plugin"));a.a.registerPlugin("interactiveSeekBarPlugin",Ip);var Tp=function(t,e){var n,r=t.addTextTrack("metadata","interactive"),o=e.additionalData.interactive,i=null===(n=e.additionalData.clipData)||void 0===n?void 0:n.startTime;return o.timepoints.forEach((function(t){var e,n=t.visibleAt/1e3,o=t.visibleFor?n+t.visibleFor/1e3:n+1;i&&(n+=i,o+=i),(null===(e=t.interactions)||void 0===e?void 0:e.length)&&r.addCue({startTime:n-.001,endTime:o,text:t.id})})),r};n(1118);function Sp(t){return(Sp="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function _p(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function kp(t,e,n){return(kp="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=Rp(t)););return t}(t,e);if(r){var o=Object.getOwnPropertyDescriptor(r,e);return o.get?o.get.call(n):o.value}})(t,e,n||t)}function jp(t,e){return(jp=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Ep(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Rp(t);if(e){var o=Rp(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Pp(this,n)}}function Pp(t,e){return!e||"object"!==Sp(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Rp(t){return(Rp=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var xp=function(t,e,n,r){return new(n||(n=Promise))((function(o,i){function a(t){try{u(r.next(t))}catch(t){i(t)}}function c(t){try{u(r.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,c)}u((r=r.apply(t,e||[])).next())}))},Lp=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&jp(t,e)}(i,t);var e,n,r,o=Ep(i);function i(t,e){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i),o.call(this,t,e)}return e=i,(n=[{key:"getPlayerClassName",value:function(){return"cv-reports-player"}},{key:"getAnalyticsPlayerType",value:function(){return"reports-player"}},{key:"additionalSetup",value:function(t){var e=this,n=Object.create(null,{additionalSetup:{get:function(){return kp(Rp(i.prototype),"additionalSetup",e)}}});return xp(this,void 0,void 0,regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n.additionalSetup.call(this,t),this.setupEngagementOverlayPlugin(t),this.setupUpClipPlugin(t),this.setupInteractiveSeekBarPlugin(t);case 4:case"end":return e.stop()}}),e,this)})))}},{key:"setupEngagementOverlayPlugin",value:function(t){var e;this.player.engagementOverlayPlugin({heatMap:this.options.heatMap,interactive:null===(e=t.additionalData)||void 0===e?void 0:e.interactive,onTimepointHover:this.options.onTimepointHover})}},{key:"setupUpClipPlugin",value:function(t){if("MasterClip"===t.mediaType){var e=t.additionalData;if(null===e)throw Error("Invalid clip data");this.player.clipPlugin({startTime:e.startTime,endTime:e.endTime})}}},{key:"setupInteractiveSeekBarPlugin",value:function(t){var e,n,r=null===(e=t.additionalData)||void 0===e?void 0:e.interactive;(null===(n=t.additionalData)||void 0===n?void 0:n.interactive)&&(this.track=Tp(this.player,t),this.player.interactiveSeekBarPlugin({interactive:r}))}},{key:"getSeekBarOptions",value:function(){return{ignoreChapters:!0}}}])&&_p(e.prototype,n),r&&_p(e,r),i}(of);function Ap(t){var e=o.a.useRef(),n=o.a.useRef();return o.a.useEffect((function(){n.current=new Lp(e.current,t)}),[]),o.a.createElement("div",{ref:e})}var Bp=n(1065),Np=n(1051),Mp=n(1066),Up=n.n(Mp);n.d(e,"a",(function(){return Fp}));var Dp=i.a.encloseNamespace("shared.videoEngagementOverlay");function Fp(t){var e=o.a.useRef(),n=Object(Bp.a)(t.engagement);return o.a.createElement("div",{className:"bg-white rounded p-2 h-100"},o.a.createElement("div",{className:"mb-2 position-relative"},o.a.createElement("div",{className:Up.a.playerPlaceholder}),o.a.createElement("div",{className:Up.a.playerContainer},o.a.createElement(Ap,{viewKey:t.viewKey,playerApi:new URL(t.playerApiUrl),hotkeyElQuerySelector:"body",heatMap:n,onTimepointHover:function(t){var r=e.current;r&&(null!==t?(r.classList.add(Up.a.heatMapTimepointIndicatorVisible),r.style.left="".concat(t/n.length*100,"%")):r.classList.remove(Up.a.heatMapTimepointIndicatorVisible))}}))),o.a.createElement("div",{className:Up.a.heatMapContainer},o.a.createElement("div",{className:"position-relative"},o.a.createElement(Np.a,{engagement:t.engagement,className:Up.a.heatMap}),o.a.createElement("div",{ref:e,className:Up.a.heatMapTimepointIndicator}))),o.a.createElement("div",{className:"d-flex justify-content-between mt-2"},o.a.createElement("strong",null,Dp("engagement")),o.a.createElement("div",{className:"w-33"},o.a.createElement(Np.b,null))))}},function(t,e,n){"use strict";var r=n(0),o=n.n(r),i=n(904),a=n(8),c=n(34),u=n(35),l=n(887),s=n(872),f=n(1051),p=n(1121),y=n.n(p);function d(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(t)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,c=t[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(t){o=!0,i=t}finally{try{r||null==c.return||c.return()}finally{if(o)throw i}}return n}(t,e)||v(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function h(t){return function(t){if(Array.isArray(t))return b(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||v(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function v(t,e){if(t){if("string"==typeof t)return b(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?b(t,e):void 0}}function b(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var m=a.a.encloseNamespace("shared.engagementTable");function g(t){var e;return o.a.createElement("div",{className:"p-2 ".concat(null!==(e=t.className)&&void 0!==e?e:"")},t.children)}function w(t){return o.a.createElement(g,{className:"d-inline-block ".concat(t.column.isSorted?"font-weight-bold":"")},m(t.phraseKey))}function C(t){var e=d(Object(c.a)(u.a.ANONYMISE_USERS),1)[0];return o.a.useMemo((function(){var n=function(t){var e=0;return t.forEach((function(t){var n=Math.max.apply(Math,h(t.heatMap));n>e&&(e=n)})),e}(t);return[{Header:function(t){var e=t.column;return o.a.createElement(w,{column:e,phraseKey:"name"})},width:8,accessor:"user",sortType:function(t,n){return Object(l.a)(t.values.user,e)>Object(l.a)(n.values.user,e)?1:-1},Cell:function(t){var n=t.value;return o.a.createElement(g,{className:"text-truncate"},Object(l.a)(n,e))}},{Header:function(t){var e=t.column;return o.a.createElement(w,{column:e,phraseKey:"views"})},accessor:"viewCount",width:4,sortType:"basic",sortDescFirst:!0,Cell:function(t){var e=t.value;return o.a.createElement(g,null,e)}},{Header:function(t){var e=t.column;return o.a.createElement(w,{column:e,phraseKey:"engagement"})},accessor:"engagementRate",width:8,sortType:"basic",sortDescFirst:!0,Cell:function(t){var e=t.value;return o.a.createElement(g,{className:"w-33"},o.a.createElement(s.a,{percentage:e,layout:s.b.LabelBefore}))}},{Header:function(t){var e=t.column;return o.a.createElement(w,{column:e,phraseKey:"heatMap"})},accessor:"heatMap",width:15,disableSortBy:!0,Cell:function(t){var e=t.row.original;return o.a.createElement(g,{className:"d-flex align-items-center h-100"},o.a.createElement(f.a,{engagement:e,max:n,className:"".concat(y.a.heatMap," flex-grow-1")}))}}]}),[e])}n.d(e,"a",(function(){return I}));var O={table:"bg-white rounded",header:"border-bottom"};function I(t){var e,n,r=C(t.engagement),a=(e=t.engagement,n=t.users,o.a.useMemo((function(){return e.map((function(t){return Object.assign(Object.assign({},t),{user:n.find((function(e){return e.id===t.userId}))})}))}),[]));return o.a.createElement(i.a,{columns:r,data:a,theme:O,enableSort:!0})}},,,,,,,,,function(t,e){},function(t,e){},,,,,,,,,,,,function(t,e,n){"use strict";n.d(e,"a",(function(){return f}));var r=n(0),o=n.n(r),i=n(8),a=n(6),c=n(18),u=n(878),l=n(171),s=i.a.encloseNamespace("reportsVideos.videoNav");function f(t){var e,n,r,i=Object(l.a)(),f=(e=t.id,n=i,r=[e],[{label:s("overview"),appLink:{application:a.a.VIDEOS,action:c.a.Videos.OVERVIEW,args:r,params:n}},{label:s("engagement"),appLink:{application:a.a.VIDEOS,action:c.a.Videos.ENGAGEMENT,args:r,params:n}}]);return o.a.createElement(u.a,{items:f})}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e,n){t.exports={viewCountContainer:"_2Zg9j",engagementPercentageContainer:"_1rMYQ",engagementGraphContainer:"_2C1c5",partialTable:"_2R4lj"}},,,,,,,,,,,function(t,e,n){"use strict";n.r(e),n.d(e,"VideoEngagementView",(function(){return B}));var r=n(0),o=n.n(r),i=n(15),a=n(8),c=n(873),u=n(1079),l=n(123),s=n(47),f=n(1080),p=n(184),y=n(129),d=n(1070),h=n(877),v=n(214),b=n(1057),m=n(871),g=n(171),w=n(886),C=n(888),O=n(875),I=n(894),T=n(902),S=n(907),_=n(1124),k=n(1120),j=n(1125),E=n(895),P=n(1122),R=n(1147),x=n(1246),L=n.n(x),A=a.a.encloseNamespace("reportsVideos.videoEngagement");function B(t){var e,n,r=Object(g.a)(),a=!(0,Object(p.a)().hasPermissions)(y.a.ViewCustomerAnalytics),x=i.a.useBasicFetch(a&&s.a.currentUser()),B=i.a.useBasicFetch(d.a.video(t.id)),N=i.a.useBasicFetch(a?!!x.data&&m.a.aggregateEngagement(t.id,r,x.data.id):m.a.aggregateEngagement(t.id,r)),M=i.a.useBasicFetch(a?!!x.data&&m.a.individualEngagement(t.id,r,x.data.id):m.a.individualEngagement(t.id,r)),U=i.a.useBasicFetch((null===(e=M.data)||void 0===e?void 0:e.data.length)&&v.a.getById(M.data.data.map((function(t){return t.userId})))),D=i.a.useBasicFetch(u.a.createViewKey(t.id,f.a.MasterObject)),F=i.a.useBasicFetch(l.a.config());Object(c.a)(B.data?A("pageTitle",{video:B.data.name}):""),Object(h.a)(null===(n=B.data)||void 0===n?void 0:n.name),Object(I.a)(Object(E.a)(F.data,B.data)),Object(P.a)(t.id),Object(O.a)(M),Object(b.a)(B);var z=!!(B.data&&N.data&&D.data&&F.data);return o.a.createElement("div",null,o.a.createElement(R.a,{id:t.id}),o.a.createElement("div",{className:"d-flex pb-3"},o.a.createElement("div",{className:"pr-2 ".concat(L.a.viewCountContainer)},o.a.createElement(C.a,{objectId:t.id,useSharerId:a,className:"h-100"})),o.a.createElement("div",{className:"px-2 ".concat(L.a.engagementPercentageContainer)},o.a.createElement(S.a,{objectId:t.id,useSharerId:a,className:"h-100",layout:"vertical"})),o.a.createElement("div",{className:"pl-2 ".concat(L.a.engagementGraphContainer)},z?o.a.createElement(_.a,{key:Object(w.a)(r),engagement:N.data,viewKey:D.data.viewKey,imageCdnUrl:F.data.imageCdnUrl,playerApiUrl:F.data.playerApiUrl}):o.a.createElement(k.a,null))),o.a.createElement("div",{className:"pb-3"},M.data&&U.data?o.a.createElement(j.a,{key:Object(w.a)(r),engagement:M.data.data,users:U.data}):o.a.createElement(T.a,{className:L.a.partialTable})))}}])]);